@suluk/panel - v0.3.1
    Preparing search index...

    Interface Field

    @suluk/panel — contract-first admin panels, in the spirit of Payload but projected from ONE OpenAPI v4 document. Payload makes you configure collections in a framework-coupled DSL; @suluk/panel INFERS the same field types (text/textarea/richtext/number/boolean/select/date/email/url/json/relationship) straight from the contract's component schemas, renders shadcn/theme-aware forms + data tables, and mounts a role-aware admin — pass a per-role PROJECTED document and you get a per-role dashboard for free. No DB coupling (it drives the contract's REST), no config drift (the contract is the single source). CANDIDATE tooling.

    interface Field {
        name: string;
        label: string;
        type: FieldType;
        required: boolean;
        nullable: boolean;
        readOnly: boolean;
        description?: string;
        options?: string[];
        optionType?: "string" | "number" | "boolean";
        relationTo?: string;
        relationLabelField?: string;
    }
    Index

    Properties

    name: string
    label: string
    type: FieldType
    required: boolean
    nullable: boolean
    readOnly: boolean
    description?: string
    options?: string[]
    optionType?: "string" | "number" | "boolean"
    relationTo?: string
    relationLabelField?: string