@openg2p/registry-widgets 1.1.7 → 1.1.8-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/components/FilePreviewModal.d.ts +7 -0
  2. package/dist/components/FilePreviewModal.d.ts.map +1 -0
  3. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +11 -6
  4. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
  5. package/dist/components/SectionBuilder/PropertyEditor.d.ts +0 -3
  6. package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -1
  7. package/dist/components/SectionBuilder/SearchableSelect.d.ts +11 -0
  8. package/dist/components/SectionBuilder/SearchableSelect.d.ts.map +1 -0
  9. package/dist/components/SectionBuilder/SectionBuilder.d.ts +2 -4
  10. package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -1
  11. package/dist/components/SectionBuilder/SectionTree.d.ts +7 -4
  12. package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -1
  13. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +7 -5
  14. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
  15. package/dist/components/SectionBuilder/index.d.ts +1 -1
  16. package/dist/components/SectionBuilder/index.d.ts.map +1 -1
  17. package/dist/components/SectionBuilder/schemas.d.ts +6 -286
  18. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
  19. package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts +14 -0
  20. package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts.map +1 -0
  21. package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts +12 -0
  22. package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts.map +1 -0
  23. package/dist/components/SectionBuilder/validate/validateSection.d.ts +7 -0
  24. package/dist/components/SectionBuilder/validate/validateSection.d.ts.map +1 -0
  25. package/dist/components/SectionRenderer/components/CRViewFooter.d.ts +8 -0
  26. package/dist/components/SectionRenderer/components/CRViewFooter.d.ts.map +1 -0
  27. package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts.map +1 -1
  28. package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts.map +1 -1
  29. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -1
  30. package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -1
  31. package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts +8 -0
  32. package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts.map +1 -0
  33. package/dist/components/SectionRenderer.d.ts +61 -0
  34. package/dist/components/SectionRenderer.d.ts.map +1 -0
  35. package/dist/components/WidgetProvider.d.ts.map +1 -1
  36. package/dist/hooks/useGeoWidgetCascade.d.ts +12 -0
  37. package/dist/hooks/useGeoWidgetCascade.d.ts.map +1 -0
  38. package/dist/hooks/useWidgetTheme.d.ts +7 -10
  39. package/dist/hooks/useWidgetTheme.d.ts.map +1 -1
  40. package/dist/hooks/useWidgetTranslation.d.ts +16 -0
  41. package/dist/hooks/useWidgetTranslation.d.ts.map +1 -0
  42. package/dist/i18n/config.d.ts +21 -0
  43. package/dist/i18n/config.d.ts.map +1 -0
  44. package/dist/index.d.ts +41 -34
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.esm.js +7172 -1462
  47. package/dist/index.esm.js.map +1 -1
  48. package/dist/index.js +7174 -1461
  49. package/dist/index.js.map +1 -1
  50. package/dist/registry/widgetTypes.d.ts +6 -0
  51. package/dist/registry/widgetTypes.d.ts.map +1 -0
  52. package/dist/theme/index.d.ts +11 -13
  53. package/dist/theme/index.d.ts.map +1 -1
  54. package/dist/utils/buildSectionChanges.d.ts +11 -0
  55. package/dist/utils/buildSectionChanges.d.ts.map +1 -0
  56. package/dist/utils/schemaNamespace.d.ts +12 -0
  57. package/dist/utils/schemaNamespace.d.ts.map +1 -0
  58. package/dist/utils/tSchema.d.ts +1 -0
  59. package/dist/utils/tSchema.d.ts.map +1 -1
  60. package/dist/widgets/ArrayWidget.d.ts +29 -0
  61. package/dist/widgets/ArrayWidget.d.ts.map +1 -0
  62. package/dist/widgets/CurrencyInputWidget.d.ts +24 -0
  63. package/dist/widgets/CurrencyInputWidget.d.ts.map +1 -0
  64. package/dist/widgets/DateInputWidget.d.ts.map +1 -1
  65. package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
  66. package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
  67. package/dist/widgets/FileInputWidget.d.ts.map +1 -1
  68. package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -1
  69. package/dist/widgets/IterableAccordionWidget.d.ts +30 -0
  70. package/dist/widgets/IterableAccordionWidget.d.ts.map +1 -0
  71. package/dist/widgets/MultiSelectWidget.d.ts.map +1 -1
  72. package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
  73. package/dist/widgets/ParentLookupWidget.d.ts.map +1 -1
  74. package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
  75. package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -1
  76. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  77. package/dist/widgets/SimpleTableWidget.d.ts +32 -0
  78. package/dist/widgets/SimpleTableWidget.d.ts.map +1 -0
  79. package/dist/widgets/TableWidget.d.ts.map +1 -1
  80. package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
  81. package/dist/widgets/TextInputWidget.d.ts.map +1 -1
  82. package/package.json +6 -2
@@ -0,0 +1,7 @@
1
+ export interface FilePreviewModalProps {
2
+ file: File | string | null;
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare const FilePreviewModal: ({ file, isOpen, onClose, }: FilePreviewModalProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ //# sourceMappingURL=FilePreviewModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../src/components/FilePreviewModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAkCD,eAAO,MAAM,gBAAgB,GAAI,4BAI9B,qBAAqB,mDA0JvB,CAAC"}
@@ -1,14 +1,19 @@
1
1
  import React from 'react';
2
2
  import { SectionConfig } from '../../types';
3
+ export type BuilderNotifyType = 'success' | 'error' | 'info' | 'warn';
3
4
  interface JSONEditorPanelProps {
4
- section: SectionConfig;
5
+ initialText: string;
5
6
  onChange: (section: SectionConfig) => void;
6
- onReset?: () => void;
7
- context?: 'section' | 'panel' | 'widget';
7
+ onRawDraftChange?: (next: string) => void;
8
+ onRawValidationChange?: (next: {
9
+ isValid: boolean;
10
+ errors: string[];
11
+ jsonSyntaxValid: boolean;
12
+ }) => void;
13
+ onNotify?: (message: string, type: BuilderNotifyType) => void;
14
+ isMaximized?: boolean;
15
+ onToggleMaximize?: () => void;
8
16
  }
9
- /**
10
- * JSON Editor Panel - Left side of Section Builder
11
- */
12
17
  export declare const JSONEditorPanel: React.FC<JSONEditorPanelProps>;
13
18
  export {};
14
19
  //# sourceMappingURL=JSONEditorPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAiD5C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgqB1D,CAAC"}
1
+ {"version":3,"file":"JSONEditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/JSONEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAM5C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAMtE,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACzG,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8b1D,CAAC"}
@@ -7,9 +7,6 @@ interface PropertyEditorProps {
7
7
  onDelete: (node: TreeNode) => void;
8
8
  onDuplicate: (node: TreeNode) => void;
9
9
  }
10
- /**
11
- * Property editor component for editing selected node properties
12
- */
13
10
  export declare const PropertyEditor: React.FC<PropertyEditorProps>;
14
11
  export {};
15
12
  //# sourceMappingURL=PropertyEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/PropertyEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAGvD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,GAAG,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrG,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACvC;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqxBxD,CAAC"}
1
+ {"version":3,"file":"PropertyEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/PropertyEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAMvD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,GAAG,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrG,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiyBxD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface SearchableSelectProps {
3
+ options: readonly string[];
4
+ value: string;
5
+ onChange: (value: string) => void;
6
+ placeholder?: string;
7
+ id?: string;
8
+ }
9
+ export declare const SearchableSelect: React.FC<SearchableSelectProps>;
10
+ export {};
11
+ //# sourceMappingURL=SearchableSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchableSelect.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SearchableSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,UAAU,qBAAqB;IAC7B,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwH5D,CAAC"}
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
2
  import { SectionConfig } from '../../types';
3
+ export type BuilderNotifyType = 'success' | 'error' | 'info' | 'warn';
3
4
  export interface SectionBuilderProps {
4
5
  initialSection?: SectionConfig;
5
6
  onChange?: (section: SectionConfig) => void;
6
7
  onSave?: (section: SectionConfig) => void;
8
+ onNotify?: (message: string, type: BuilderNotifyType) => void;
7
9
  }
8
- /**
9
- * Main Section Builder Component
10
- * Provides dual-panel interface for editing section JSON
11
- */
12
10
  export declare const SectionBuilder: React.FC<SectionBuilderProps>;
13
11
  //# sourceMappingURL=SectionBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAK3E,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+TxD,CAAC"}
1
+ {"version":3,"file":"SectionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAY3E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/D;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuqBxD,CAAC"}
@@ -14,13 +14,16 @@ interface SectionTreeProps {
14
14
  selectedNode?: TreeNode | null;
15
15
  onSelectNode: (node: TreeNode | null) => void;
16
16
  onAddPanel: (parentId: string, parentType: TreeNodeType) => void;
17
- onAddWidget: (parentId: string) => void;
17
+ onAddWidget: (parentId: string, widgetType?: string) => void;
18
18
  onDeleteNode: (node: TreeNode) => void;
19
19
  onDuplicateNode: (node: TreeNode) => void;
20
+ onMoveNode?: (args: {
21
+ kind: 'panel' | 'widget';
22
+ parentPanelId: string | null;
23
+ activeId: string;
24
+ overId: string;
25
+ }) => void;
20
26
  }
21
- /**
22
- * Tree view component for section structure
23
- */
24
27
  export declare const SectionTree: React.FC<SectionTreeProps>;
25
28
  export {};
26
29
  //# sourceMappingURL=SectionTree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionTree.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/SectionTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,GAAG,WAAW,GAAG,gBAAgB,CAAC;IACrD,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI,CAAC;IACjE,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,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,CAAC;QACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;CACZ;AAwED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkJlD,CAAC"}
@@ -7,16 +7,18 @@ interface VisualBuilderPanelProps {
7
7
  onSelectNode: (node: TreeNode | null) => void;
8
8
  onSectionChange: (section: SectionConfig) => void;
9
9
  onAddPanel: (parentId: string, parentType: 'section' | 'panel' | 'widget') => void;
10
- onAddWidget: (parentId: string) => void;
10
+ onAddWidget: (parentId: string, widgetType?: string) => void;
11
11
  onDeleteNode: (node: TreeNode) => void;
12
12
  onDuplicateNode: (node: TreeNode) => void;
13
- onSave?: (section: SectionConfig) => void;
13
+ onMoveNode?: (args: {
14
+ kind: 'panel' | 'widget';
15
+ parentPanelId: string | null;
16
+ activeId: string;
17
+ overId: string;
18
+ }) => void;
14
19
  isMaximized?: boolean;
15
20
  onToggleMaximize?: () => void;
16
21
  }
17
- /**
18
- * Visual Builder Panel - Right side of Section Builder
19
- */
20
22
  export declare const VisualBuilderPanel: React.FC<VisualBuilderPanelProps>;
21
23
  export {};
22
24
  //# sourceMappingURL=VisualBuilderPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VisualBuilderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/VisualBuilderPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAiC,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;AAItD,UAAU,uBAAuB;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK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EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;QAClB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;QACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8RhE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export { SectionBuilder } from './SectionBuilder';
2
- export type { SectionBuilderProps } from './SectionBuilder';
2
+ export type { SectionBuilderProps, BuilderNotifyType } from './SectionBuilder';
3
3
  export { JSONEditorPanel } from './JSONEditorPanel';
4
4
  export { VisualBuilderPanel } from './VisualBuilderPanel';
5
5
  export { SectionTree } from './SectionTree';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,cAAc,WAAW,CAAC"}
@@ -1,8 +1,5 @@
1
- /**
2
- * JSON Schema definitions for Section Builder validation
3
- * These schemas are used by json-edit-react to provide validation and constraints
4
- */
5
- export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
1
+ export { WIDGET_TYPES } from '../../registry/widgetTypes';
2
+ export type { WidgetType } from '../../registry/widgetTypes';
6
3
  export declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
7
4
  export declare const CONDITION_OPERATORS: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
8
5
  export declare const DATA_SOURCE_TYPES: readonly ["static", "api", "schema"];
@@ -12,9 +9,6 @@ export declare const CASE_CONTROLS: readonly ["none", "lowercase", "uppercase",
12
9
  export declare const NUMERIC_TYPES: readonly ["integer", "decimal"];
13
10
  export declare const BOOLEAN_REPRESENTATIONS: readonly ["true-false", "yes-no", "on-off", "custom"];
14
11
  export declare const BOOLEAN_CONTROL_TYPES: readonly ["checkbox", "radio", "toggle"];
15
- /**
16
- * Panel schema
17
- */
18
12
  export declare const panelSchema: {
19
13
  type: "object";
20
14
  properties: {
@@ -47,7 +41,7 @@ export declare const panelSchema: {
47
41
  properties: {
48
42
  widget: {
49
43
  type: "string";
50
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
44
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "dialog-table", "phone", "display", "profile", "header-section", "scores-display", "id-authentication", "register-lookup", "parent-lookup", "multi-select", "geo-hierarchy", "docs"];
51
45
  description: string;
52
46
  };
53
47
  'widget-type': {
@@ -351,34 +345,6 @@ export declare const panelSchema: {
351
345
  type: "string";
352
346
  enum: string[];
353
347
  };
354
- actions: {
355
- type: "array";
356
- description: string;
357
- items: {
358
- type: "object";
359
- properties: {
360
- action: {
361
- type: "string";
362
- enum: string[];
363
- };
364
- condition: {
365
- type: "object";
366
- properties: {
367
- field: {
368
- type: "string";
369
- };
370
- operator: {
371
- type: "string";
372
- enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
373
- };
374
- value: {};
375
- };
376
- required: string[];
377
- };
378
- };
379
- required: string[];
380
- };
381
- };
382
348
  condition: {
383
349
  type: "object";
384
350
  properties: {
@@ -399,18 +365,6 @@ export declare const panelSchema: {
399
365
  maxDate: {
400
366
  type: "string";
401
367
  };
402
- minDateField: {
403
- type: "string";
404
- };
405
- maxDateField: {
406
- type: "string";
407
- };
408
- minDateMessage: {
409
- type: "string";
410
- };
411
- maxDateMessage: {
412
- type: "string";
413
- };
414
368
  showCalendar: {
415
369
  type: "boolean";
416
370
  };
@@ -437,10 +391,6 @@ export declare const panelSchema: {
437
391
  'column-key': {
438
392
  type: "string";
439
393
  };
440
- 'column-group': {
441
- type: "string";
442
- description: string;
443
- };
444
394
  'widget-label': {
445
395
  type: "string";
446
396
  };
@@ -504,29 +454,6 @@ export declare const panelSchema: {
504
454
  minimum: number;
505
455
  description: string;
506
456
  };
507
- 'widget-lookup-config': {
508
- type: "object";
509
- properties: {
510
- search_placeholder: {
511
- type: "string";
512
- description: string;
513
- };
514
- page_size: {
515
- type: "number";
516
- minimum: number;
517
- description: string;
518
- };
519
- action_label: {
520
- type: "string";
521
- description: string;
522
- };
523
- select_record_label: {
524
- type: "string";
525
- description: string;
526
- };
527
- };
528
- description: string;
529
- };
530
457
  'widget-item': {
531
458
  type: "object";
532
459
  description: string;
@@ -578,7 +505,7 @@ export declare const panelSchema: {
578
505
  properties: {
579
506
  widget: {
580
507
  type: "string";
581
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
508
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "dialog-table", "phone", "display", "profile", "header-section", "scores-display", "id-authentication", "register-lookup", "parent-lookup", "multi-select", "geo-hierarchy", "docs"];
582
509
  description: string;
583
510
  };
584
511
  'widget-type': {
@@ -882,34 +809,6 @@ export declare const panelSchema: {
882
809
  type: "string";
883
810
  enum: string[];
884
811
  };
885
- actions: {
886
- type: "array";
887
- description: string;
888
- items: {
889
- type: "object";
890
- properties: {
891
- action: {
892
- type: "string";
893
- enum: string[];
894
- };
895
- condition: {
896
- type: "object";
897
- properties: {
898
- field: {
899
- type: "string";
900
- };
901
- operator: {
902
- type: "string";
903
- enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
904
- };
905
- value: {};
906
- };
907
- required: string[];
908
- };
909
- };
910
- required: string[];
911
- };
912
- };
913
812
  condition: {
914
813
  type: "object";
915
814
  properties: {
@@ -930,18 +829,6 @@ export declare const panelSchema: {
930
829
  maxDate: {
931
830
  type: "string";
932
831
  };
933
- minDateField: {
934
- type: "string";
935
- };
936
- maxDateField: {
937
- type: "string";
938
- };
939
- minDateMessage: {
940
- type: "string";
941
- };
942
- maxDateMessage: {
943
- type: "string";
944
- };
945
832
  showCalendar: {
946
833
  type: "boolean";
947
834
  };
@@ -968,10 +855,6 @@ export declare const panelSchema: {
968
855
  'column-key': {
969
856
  type: "string";
970
857
  };
971
- 'column-group': {
972
- type: "string";
973
- description: string;
974
- };
975
858
  'widget-label': {
976
859
  type: "string";
977
860
  };
@@ -1035,29 +918,6 @@ export declare const panelSchema: {
1035
918
  minimum: number;
1036
919
  description: string;
1037
920
  };
1038
- 'widget-lookup-config': {
1039
- type: "object";
1040
- properties: {
1041
- search_placeholder: {
1042
- type: "string";
1043
- description: string;
1044
- };
1045
- page_size: {
1046
- type: "number";
1047
- minimum: number;
1048
- description: string;
1049
- };
1050
- action_label: {
1051
- type: "string";
1052
- description: string;
1053
- };
1054
- select_record_label: {
1055
- type: "string";
1056
- description: string;
1057
- };
1058
- };
1059
- description: string;
1060
- };
1061
921
  'widget-item': {
1062
922
  type: "object";
1063
923
  description: string;
@@ -1082,9 +942,6 @@ export declare const panelSchema: {
1082
942
  };
1083
943
  };
1084
944
  };
1085
- /**
1086
- * Section schema
1087
- */
1088
945
  export declare const sectionSchema: {
1089
946
  type: "object";
1090
947
  properties: {
@@ -1172,7 +1029,7 @@ export declare const sectionSchema: {
1172
1029
  properties: {
1173
1030
  widget: {
1174
1031
  type: "string";
1175
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
1032
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "dialog-table", "phone", "display", "profile", "header-section", "scores-display", "id-authentication", "register-lookup", "parent-lookup", "multi-select", "geo-hierarchy", "docs"];
1176
1033
  description: string;
1177
1034
  };
1178
1035
  'widget-type': {
@@ -1476,34 +1333,6 @@ export declare const sectionSchema: {
1476
1333
  type: "string";
1477
1334
  enum: string[];
1478
1335
  };
1479
- actions: {
1480
- type: "array";
1481
- description: string;
1482
- items: {
1483
- type: "object";
1484
- properties: {
1485
- action: {
1486
- type: "string";
1487
- enum: string[];
1488
- };
1489
- condition: {
1490
- type: "object";
1491
- properties: {
1492
- field: {
1493
- type: "string";
1494
- };
1495
- operator: {
1496
- type: "string";
1497
- enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
1498
- };
1499
- value: {};
1500
- };
1501
- required: string[];
1502
- };
1503
- };
1504
- required: string[];
1505
- };
1506
- };
1507
1336
  condition: {
1508
1337
  type: "object";
1509
1338
  properties: {
@@ -1524,18 +1353,6 @@ export declare const sectionSchema: {
1524
1353
  maxDate: {
1525
1354
  type: "string";
1526
1355
  };
1527
- minDateField: {
1528
- type: "string";
1529
- };
1530
- maxDateField: {
1531
- type: "string";
1532
- };
1533
- minDateMessage: {
1534
- type: "string";
1535
- };
1536
- maxDateMessage: {
1537
- type: "string";
1538
- };
1539
1356
  showCalendar: {
1540
1357
  type: "boolean";
1541
1358
  };
@@ -1562,10 +1379,6 @@ export declare const sectionSchema: {
1562
1379
  'column-key': {
1563
1380
  type: "string";
1564
1381
  };
1565
- 'column-group': {
1566
- type: "string";
1567
- description: string;
1568
- };
1569
1382
  'widget-label': {
1570
1383
  type: "string";
1571
1384
  };
@@ -1629,29 +1442,6 @@ export declare const sectionSchema: {
1629
1442
  minimum: number;
1630
1443
  description: string;
1631
1444
  };
1632
- 'widget-lookup-config': {
1633
- type: "object";
1634
- properties: {
1635
- search_placeholder: {
1636
- type: "string";
1637
- description: string;
1638
- };
1639
- page_size: {
1640
- type: "number";
1641
- minimum: number;
1642
- description: string;
1643
- };
1644
- action_label: {
1645
- type: "string";
1646
- description: string;
1647
- };
1648
- select_record_label: {
1649
- type: "string";
1650
- description: string;
1651
- };
1652
- };
1653
- description: string;
1654
- };
1655
1445
  'widget-item': {
1656
1446
  type: "object";
1657
1447
  description: string;
@@ -1703,7 +1493,7 @@ export declare const sectionSchema: {
1703
1493
  properties: {
1704
1494
  widget: {
1705
1495
  type: "string";
1706
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
1496
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "dialog-table", "phone", "display", "profile", "header-section", "scores-display", "id-authentication", "register-lookup", "parent-lookup", "multi-select", "geo-hierarchy", "docs"];
1707
1497
  description: string;
1708
1498
  };
1709
1499
  'widget-type': {
@@ -2007,34 +1797,6 @@ export declare const sectionSchema: {
2007
1797
  type: "string";
2008
1798
  enum: string[];
2009
1799
  };
2010
- actions: {
2011
- type: "array";
2012
- description: string;
2013
- items: {
2014
- type: "object";
2015
- properties: {
2016
- action: {
2017
- type: "string";
2018
- enum: string[];
2019
- };
2020
- condition: {
2021
- type: "object";
2022
- properties: {
2023
- field: {
2024
- type: "string";
2025
- };
2026
- operator: {
2027
- type: "string";
2028
- enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
2029
- };
2030
- value: {};
2031
- };
2032
- required: string[];
2033
- };
2034
- };
2035
- required: string[];
2036
- };
2037
- };
2038
1800
  condition: {
2039
1801
  type: "object";
2040
1802
  properties: {
@@ -2055,18 +1817,6 @@ export declare const sectionSchema: {
2055
1817
  maxDate: {
2056
1818
  type: "string";
2057
1819
  };
2058
- minDateField: {
2059
- type: "string";
2060
- };
2061
- maxDateField: {
2062
- type: "string";
2063
- };
2064
- minDateMessage: {
2065
- type: "string";
2066
- };
2067
- maxDateMessage: {
2068
- type: "string";
2069
- };
2070
1820
  showCalendar: {
2071
1821
  type: "boolean";
2072
1822
  };
@@ -2093,10 +1843,6 @@ export declare const sectionSchema: {
2093
1843
  'column-key': {
2094
1844
  type: "string";
2095
1845
  };
2096
- 'column-group': {
2097
- type: "string";
2098
- description: string;
2099
- };
2100
1846
  'widget-label': {
2101
1847
  type: "string";
2102
1848
  };
@@ -2160,29 +1906,6 @@ export declare const sectionSchema: {
2160
1906
  minimum: number;
2161
1907
  description: string;
2162
1908
  };
2163
- 'widget-lookup-config': {
2164
- type: "object";
2165
- properties: {
2166
- search_placeholder: {
2167
- type: "string";
2168
- description: string;
2169
- };
2170
- page_size: {
2171
- type: "number";
2172
- minimum: number;
2173
- description: string;
2174
- };
2175
- action_label: {
2176
- type: "string";
2177
- description: string;
2178
- };
2179
- select_record_label: {
2180
- type: "string";
2181
- description: string;
2182
- };
2183
- };
2184
- description: string;
2185
- };
2186
1909
  'widget-item': {
2187
1910
  type: "object";
2188
1911
  description: string;
@@ -2212,8 +1935,5 @@ export declare const sectionSchema: {
2212
1935
  };
2213
1936
  required: string[];
2214
1937
  };
2215
- /**
2216
- * Get schema for a specific context (section, panel, or widget)
2217
- */
2218
1938
  export declare function getSchemaForContext(context: 'section' | 'panel' | 'widget'): any;
2219
1939
  //# sourceMappingURL=schemas.d.ts.map