UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

395 lines (394 loc) 15.6 kB
declare const _default: { edit: import('../types').EditFormDefinition<{ type: "selectboxes"; id: string; key: string; label: string; description?: string | undefined; tooltip?: string | undefined; faqItems?: import('@open-formulieren/types').FAQItem[] | undefined; showInSummary?: boolean | undefined; showInEmail?: boolean | undefined; showInPDF?: boolean | undefined; hidden?: boolean | undefined; clearOnHide?: boolean | undefined; isSensitiveData?: boolean | undefined; defaultValue?: Record<string, boolean> | undefined; values: import('@open-formulieren/types').Option[]; conditional?: { show?: boolean; when?: string; eq?: string | number | boolean; } | undefined; validate?: { required?: boolean | undefined; plugins?: string[] | undefined; minSelectedCount?: number | undefined; maxSelectedCount?: number | undefined; } | undefined; translatedErrors?: { en?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; nl?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; } | undefined; readonly errors?: { readonly required?: string | undefined; readonly minSelectedCount?: string | undefined; readonly maxSelectedCount?: string | undefined; } | undefined; registration?: { attribute: string; } | undefined; openForms: { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "manual"; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "variable"; itemsExpression: import('@open-formulieren/types/dist/options').JsonLogicExpression; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "referenceLists"; service: string; code: string; }; }>; editSchema: import('../types').EditSchema; preview: { panel: React.FC<import('../types').ComponentPreviewProps<{ type: "selectboxes"; id: string; key: string; label: string; description?: string | undefined; tooltip?: string | undefined; faqItems?: import('@open-formulieren/types').FAQItem[] | undefined; showInSummary?: boolean | undefined; showInEmail?: boolean | undefined; showInPDF?: boolean | undefined; hidden?: boolean | undefined; clearOnHide?: boolean | undefined; isSensitiveData?: boolean | undefined; defaultValue?: Record<string, boolean> | undefined; values: import('@open-formulieren/types').Option[]; conditional?: { show?: boolean; when?: string; eq?: string | number | boolean; } | undefined; validate?: { required?: boolean | undefined; plugins?: string[] | undefined; minSelectedCount?: number | undefined; maxSelectedCount?: number | undefined; } | undefined; translatedErrors?: { en?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; nl?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; } | undefined; readonly errors?: { readonly required?: string | undefined; readonly minSelectedCount?: string | undefined; readonly maxSelectedCount?: string | undefined; } | undefined; registration?: { attribute: string; } | undefined; openForms: { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "manual"; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "variable"; itemsExpression: import('@open-formulieren/types/dist/options').JsonLogicExpression; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "referenceLists"; service: string; code: string; }; }>>; designer: React.FC<import('../types').ComponentPreviewProps<{ type: "selectboxes"; id: string; key: string; label: string; description?: string | undefined; tooltip?: string | undefined; faqItems?: import('@open-formulieren/types').FAQItem[] | undefined; showInSummary?: boolean | undefined; showInEmail?: boolean | undefined; showInPDF?: boolean | undefined; hidden?: boolean | undefined; clearOnHide?: boolean | undefined; isSensitiveData?: boolean | undefined; defaultValue?: Record<string, boolean> | undefined; values: import('@open-formulieren/types').Option[]; conditional?: { show?: boolean; when?: string; eq?: string | number | boolean; } | undefined; validate?: { required?: boolean | undefined; plugins?: string[] | undefined; minSelectedCount?: number | undefined; maxSelectedCount?: number | undefined; } | undefined; translatedErrors?: { en?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; nl?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; } | undefined; readonly errors?: { readonly required?: string | undefined; readonly minSelectedCount?: string | undefined; readonly maxSelectedCount?: string | undefined; } | undefined; registration?: { attribute: string; } | undefined; openForms: { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "manual"; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "variable"; itemsExpression: import('@open-formulieren/types/dist/options').JsonLogicExpression; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "referenceLists"; service: string; code: string; }; }>>; }; formDesigner: { label: { description: string; defaultMessage: string; }; }; builderInfo: { title: string; icon: string; schema: { label: string; description?: string | undefined; tooltip?: string | undefined; openForms: { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "manual"; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "variable"; itemsExpression: import('@open-formulieren/types/dist/options').JsonLogicExpression; } | { translations?: { en?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; nl?: { label?: string | undefined; description?: string | undefined; tooltip?: string | undefined; } | undefined; } | undefined; dataSrc: "referenceLists"; service: string; code: string; }; validate?: { required?: boolean | undefined; plugins?: string[] | undefined; minSelectedCount?: number | undefined; maxSelectedCount?: number | undefined; } | undefined; key: string; faqItems?: import('@open-formulieren/types').FAQItem[] | undefined; showInSummary?: boolean | undefined; showInEmail?: boolean | undefined; showInPDF?: boolean | undefined; hidden?: boolean | undefined; clearOnHide?: boolean | undefined; isSensitiveData?: boolean | undefined; conditional?: { show?: boolean; when?: string; eq?: string | number | boolean; } | undefined; translatedErrors?: { en?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; nl?: { required?: string | undefined; minSelectedCount?: string | undefined; maxSelectedCount?: string | undefined; } | undefined; } | undefined; errors?: { readonly required?: string | undefined; readonly minSelectedCount?: string | undefined; readonly maxSelectedCount?: string | undefined; } | undefined; registration?: { attribute: string; } | undefined; defaultValue?: Record<string, boolean> | undefined; values: import('@open-formulieren/types').Option[]; id: string; type: "selectboxes"; }; }; defaultValue: {}; holdsData: true; }; export default _default;