@openg2p/registry-widgets 1.1.3-dev.1 → 1.1.4-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 (174) hide show
  1. package/README.md +100 -0
  2. package/dist/components/FilePreviewModal.d.ts +2 -4
  3. package/dist/components/FilePreviewModal.d.ts.map +1 -1
  4. package/dist/components/PanelRenderer.d.ts +0 -7
  5. package/dist/components/PanelRenderer.d.ts.map +1 -1
  6. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
  7. package/dist/components/SectionBuilder/schemas.d.ts +5 -5
  8. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
  9. package/dist/components/SectionRenderer/SectionRenderer.d.ts +3 -0
  10. package/dist/components/SectionRenderer/SectionRenderer.d.ts.map +1 -0
  11. package/dist/components/SectionRenderer/components/CRViewFooter.d.ts +8 -0
  12. package/dist/components/SectionRenderer/components/CRViewFooter.d.ts.map +1 -0
  13. package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts +30 -0
  14. package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts.map +1 -0
  15. package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts +23 -0
  16. package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts.map +1 -0
  17. package/dist/components/SectionRenderer/components/PanelGrid.d.ts +17 -0
  18. package/dist/components/SectionRenderer/components/PanelGrid.d.ts.map +1 -0
  19. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +26 -0
  20. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -0
  21. package/dist/components/SectionRenderer/components/SectionEditControls.d.ts +7 -0
  22. package/dist/components/SectionRenderer/components/SectionEditControls.d.ts.map +1 -0
  23. package/dist/components/SectionRenderer/components/SectionStyles.d.ts +11 -0
  24. package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -0
  25. package/dist/components/SectionRenderer/components/SupportingDocuments.d.ts +13 -0
  26. package/dist/components/SectionRenderer/components/SupportingDocuments.d.ts.map +1 -0
  27. package/dist/components/SectionRenderer/components/index.d.ts +9 -0
  28. package/dist/components/SectionRenderer/components/index.d.ts.map +1 -0
  29. package/dist/components/SectionRenderer/hooks/index.d.ts +6 -0
  30. package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -0
  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/hooks/useIntakeFormAccordion.d.ts +6 -0
  34. package/dist/components/SectionRenderer/hooks/useIntakeFormAccordion.d.ts.map +1 -0
  35. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +34 -0
  36. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -0
  37. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +25 -0
  38. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -0
  39. package/dist/components/SectionRenderer/hooks/useSectionEditPortal.d.ts +15 -0
  40. package/dist/components/SectionRenderer/hooks/useSectionEditPortal.d.ts.map +1 -0
  41. package/dist/components/SectionRenderer/index.d.ts +3 -0
  42. package/dist/components/SectionRenderer/index.d.ts.map +1 -0
  43. package/dist/components/SectionRenderer/types/index.d.ts +3 -0
  44. package/dist/components/SectionRenderer/types/index.d.ts.map +1 -0
  45. package/dist/components/SectionRenderer/types/sectionChanges.d.ts +8 -0
  46. package/dist/components/SectionRenderer/types/sectionChanges.d.ts.map +1 -0
  47. package/dist/components/SectionRenderer/types/sectionRendererProps.d.ts +30 -0
  48. package/dist/components/SectionRenderer/types/sectionRendererProps.d.ts.map +1 -0
  49. package/dist/components/SectionRenderer/utils/documentWidgetConfig.d.ts +17 -0
  50. package/dist/components/SectionRenderer/utils/documentWidgetConfig.d.ts.map +1 -0
  51. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +24 -0
  52. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -0
  53. package/dist/components/SectionRenderer/utils/index.d.ts +10 -0
  54. package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -0
  55. package/dist/components/SectionRenderer/utils/makePanelsEditable.d.ts +4 -0
  56. package/dist/components/SectionRenderer/utils/makePanelsEditable.d.ts.map +1 -0
  57. package/dist/components/SectionRenderer/utils/panelLayout.d.ts +10 -0
  58. package/dist/components/SectionRenderer/utils/panelLayout.d.ts.map +1 -0
  59. package/dist/components/SectionRenderer/utils/readonlyStyles.d.ts +9 -0
  60. package/dist/components/SectionRenderer/utils/readonlyStyles.d.ts.map +1 -0
  61. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +16 -0
  62. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -0
  63. package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts +25 -0
  64. package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts.map +1 -0
  65. package/dist/components/SectionsContainer.d.ts +1 -23
  66. package/dist/components/SectionsContainer.d.ts.map +1 -1
  67. package/dist/components/WidgetFieldLabel.d.ts +2 -5
  68. package/dist/components/WidgetFieldLabel.d.ts.map +1 -1
  69. package/dist/components/WidgetProvider.d.ts +4 -5
  70. package/dist/components/WidgetProvider.d.ts.map +1 -1
  71. package/dist/components/WidgetRenderer.d.ts +2 -2
  72. package/dist/components/WidgetRenderer.d.ts.map +1 -1
  73. package/dist/events/WidgetEventBus.d.ts +0 -22
  74. package/dist/events/WidgetEventBus.d.ts.map +1 -1
  75. package/dist/hooks/useBaseWidget.d.ts +0 -1
  76. package/dist/hooks/useBaseWidget.d.ts.map +1 -1
  77. package/dist/hooks/useGeoHierarchy.d.ts +47 -0
  78. package/dist/hooks/useGeoHierarchy.d.ts.map +1 -0
  79. package/dist/hooks/useWidgetCascade.d.ts.map +1 -1
  80. package/dist/hooks/useWidgetEventBus.d.ts +0 -3
  81. package/dist/hooks/useWidgetEventBus.d.ts.map +1 -1
  82. package/dist/hooks/useWidgetTheme.d.ts +0 -8
  83. package/dist/hooks/useWidgetTheme.d.ts.map +1 -1
  84. package/dist/index.d.ts +83 -1102
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.esm.js +4280 -5834
  87. package/dist/index.esm.js.map +1 -1
  88. package/dist/index.js +4280 -5858
  89. package/dist/index.js.map +1 -1
  90. package/dist/registry/WidgetRegistry.d.ts +0 -24
  91. package/dist/registry/WidgetRegistry.d.ts.map +1 -1
  92. package/dist/registry/defaultWidgets.d.ts +0 -4
  93. package/dist/registry/defaultWidgets.d.ts.map +1 -1
  94. package/dist/store/index.d.ts.map +1 -1
  95. package/dist/store/widgetSlice.d.ts.map +1 -1
  96. package/dist/theme/index.d.ts +3 -51
  97. package/dist/theme/index.d.ts.map +1 -1
  98. package/dist/types/index.d.ts +50 -118
  99. package/dist/types/index.d.ts.map +1 -1
  100. package/dist/utils/dataSource.d.ts +2 -8
  101. package/dist/utils/dataSource.d.ts.map +1 -1
  102. package/dist/utils/dateInput.d.ts +0 -33
  103. package/dist/utils/dateInput.d.ts.map +1 -1
  104. package/dist/utils/datetimeInput.d.ts +1 -28
  105. package/dist/utils/datetimeInput.d.ts.map +1 -1
  106. package/dist/utils/extractTableRecordsFromSnapshot.d.ts.map +1 -1
  107. package/dist/utils/filePreview.d.ts +0 -6
  108. package/dist/utils/filePreview.d.ts.map +1 -1
  109. package/dist/utils/fileSerialization.d.ts +1 -25
  110. package/dist/utils/fileSerialization.d.ts.map +1 -1
  111. package/dist/utils/formatting.d.ts +0 -12
  112. package/dist/utils/formatting.d.ts.map +1 -1
  113. package/dist/utils/geoHierarchy.d.ts +67 -109
  114. package/dist/utils/geoHierarchy.d.ts.map +1 -1
  115. package/dist/utils/numberInput.d.ts +0 -18
  116. package/dist/utils/numberInput.d.ts.map +1 -1
  117. package/dist/utils/pathUtils.d.ts +0 -7
  118. package/dist/utils/pathUtils.d.ts.map +1 -1
  119. package/dist/utils/schemaTranslation.d.ts +0 -18
  120. package/dist/utils/schemaTranslation.d.ts.map +1 -1
  121. package/dist/utils/sectionRevert.d.ts +0 -6
  122. package/dist/utils/sectionRevert.d.ts.map +1 -1
  123. package/dist/utils/sectionValidate.d.ts +4 -8
  124. package/dist/utils/sectionValidate.d.ts.map +1 -1
  125. package/dist/utils/tSchema.d.ts +5 -0
  126. package/dist/utils/tSchema.d.ts.map +1 -0
  127. package/dist/utils/textInput.d.ts +0 -12
  128. package/dist/utils/textInput.d.ts.map +1 -1
  129. package/dist/utils/validation.d.ts +2 -8
  130. package/dist/utils/validation.d.ts.map +1 -1
  131. package/dist/utils/validationPatterns.d.ts +0 -10
  132. package/dist/utils/validationPatterns.d.ts.map +1 -1
  133. package/dist/widgets/BooleanWidget.d.ts +0 -28
  134. package/dist/widgets/BooleanWidget.d.ts.map +1 -1
  135. package/dist/widgets/CheckboxWidget.d.ts +0 -49
  136. package/dist/widgets/CheckboxWidget.d.ts.map +1 -1
  137. package/dist/widgets/DateInputWidget.d.ts +0 -40
  138. package/dist/widgets/DateInputWidget.d.ts.map +1 -1
  139. package/dist/widgets/DateTimeInputWidget.d.ts +0 -35
  140. package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
  141. package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
  142. package/dist/widgets/DisplayWidget.d.ts +0 -4
  143. package/dist/widgets/DisplayWidget.d.ts.map +1 -1
  144. package/dist/widgets/DocsWidget.d.ts +15 -0
  145. package/dist/widgets/DocsWidget.d.ts.map +1 -0
  146. package/dist/widgets/FileInputWidget.d.ts +0 -17
  147. package/dist/widgets/FileInputWidget.d.ts.map +1 -1
  148. package/dist/widgets/GeoHierarchyWidget.d.ts +7 -0
  149. package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -0
  150. package/dist/widgets/HeaderSectionWidget.d.ts.map +1 -1
  151. package/dist/widgets/IdAuthenticationWidget.d.ts.map +1 -1
  152. package/dist/widgets/MultiSelectWidget.d.ts.map +1 -1
  153. package/dist/widgets/NumberInputWidget.d.ts +0 -42
  154. package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
  155. package/dist/widgets/PhoneInputWidget.d.ts +0 -15
  156. package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
  157. package/dist/widgets/ProfileWidget.d.ts +0 -43
  158. package/dist/widgets/ProfileWidget.d.ts.map +1 -1
  159. package/dist/widgets/RadioWidget.d.ts +0 -37
  160. package/dist/widgets/RadioWidget.d.ts.map +1 -1
  161. package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -1
  162. package/dist/widgets/ScoresDisplayWidget.d.ts +0 -11
  163. package/dist/widgets/ScoresDisplayWidget.d.ts.map +1 -1
  164. package/dist/widgets/SelectWidget.d.ts +0 -16
  165. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  166. package/dist/widgets/TableWidget.d.ts +0 -39
  167. package/dist/widgets/TableWidget.d.ts.map +1 -1
  168. package/dist/widgets/TextAreaWidget.d.ts +0 -33
  169. package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
  170. package/dist/widgets/TextInputWidget.d.ts +0 -41
  171. package/dist/widgets/TextInputWidget.d.ts.map +1 -1
  172. package/dist/widgets/index.d.ts +2 -4
  173. package/dist/widgets/index.d.ts.map +1 -1
  174. package/package.json +11 -14
package/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # @openg2p/registry-widgets
2
+
3
+ Schema-driven React widget library for the OpenG2P Registry platform. Renders sections, panels, and widgets from UI JSON, with Redux-backed form state, validation, conditional logic, API data sources, and theming.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @openg2p/registry-widgets json-edit-react
9
+ ```
10
+
11
+ Peer dependencies: `react`, `react-dom`, `@reduxjs/toolkit`, `react-redux`, `zod`.
12
+
13
+ ## Quick start
14
+
15
+ ```tsx
16
+ import { Provider } from 'react-redux';
17
+ import {
18
+ createWidgetStore,
19
+ WidgetProvider,
20
+ SectionsContainer,
21
+ } from '@openg2p/registry-widgets';
22
+ import type { SectionConfig } from '@openg2p/registry-widgets';
23
+
24
+ const store = createWidgetStore();
25
+ const sections: SectionConfig[] = [];
26
+ const schemaData = { };
27
+
28
+ function App() {
29
+ return (
30
+ <Provider store={store}>
31
+ <WidgetProvider
32
+ store={store}
33
+ schemaData={schemaData}
34
+ dataSourceRequestHandler={async (service, endpoint, method, params) => {
35
+ return [];
36
+ }}
37
+ t={(key) => key}
38
+ >
39
+ <SectionsContainer
40
+ sections={sections}
41
+ schemaData={schemaData}
42
+ mode="RegistryView"
43
+ onSectionSave={async (changes) => console.log(changes)}
44
+ />
45
+ </WidgetProvider>
46
+ </Provider>
47
+ );
48
+ }
49
+ ```
50
+
51
+ ## Core concepts
52
+
53
+ - **UI schema** — Sections contain panels and widgets. Each widget has a `widget-data-path` (e.g. `register-id.birth_date`) resolved against `schemaData`.
54
+ - **WidgetProvider** — Supplies `schemaData`, optional `dataSourceRequestHandler` for API/static selects, and a `t` translation function.
55
+ - **SectionsContainer** — Renders one or more sections. Modes: `RegistryView` (read/edit per section) or `IntakeForm` (accordion flow).
56
+ - **SectionBuilder** — Visual + JSON editor for authoring section schemas at runtime.
57
+
58
+ ## Widgets
59
+
60
+ Input: `text`, `textarea`, `number`, `boolean`, `date`, `datetime`, `select`, `radio`, `checkbox`, `multi-select`, `phone`, `file`, `display`.
61
+
62
+ Collections: `table`, `dialog-table`.
63
+
64
+ Special: `profile`, `header-section`, `scores-display`, `id-authentication`, `register-lookup`.
65
+
66
+ Custom widgets can be registered via `widgetRegistry`.
67
+
68
+ ## Theming
69
+
70
+ Pass a `theme` prop to `WidgetProvider` or read resolved tokens with `useWidgetTheme()`. See the **Theme** tab in the example app.
71
+
72
+ ## Example app
73
+
74
+ Interactive demos (Section Builder, Register Sections, Change Request, Intake Form, Special Sections, Widgets, Theme):
75
+
76
+ ```bash
77
+ npm run example:setup # first time
78
+ npm run example:dev
79
+ ```
80
+
81
+ Details: [examples/README.md](https://github.com/OpenG2P/registry-platform/blob/develop/ui/ui-widgets/examples/README.md)
82
+
83
+ Sample section schemas and widget snippets live in [example-ui-schema/](https://github.com/OpenG2P/registry-platform/tree/develop/ui/ui-widgets/example-ui-schema).
84
+
85
+ ## Development
86
+
87
+ ```bash
88
+ npm install
89
+ npm run build # library → dist/
90
+ npm run type-check
91
+ npm run lint
92
+ npm run example:build # example app → dist-examples/
93
+ ```
94
+
95
+ - `tsconfig.json` — type-check for `src/` and `examples/`
96
+ - `tsconfig.build.json` — Rollup library build (`src/` only)
97
+
98
+ ## License
99
+
100
+ MPL-2.0
@@ -1,9 +1,7 @@
1
- import React from 'react';
2
- interface FilePreviewModalProps {
1
+ export interface FilePreviewModalProps {
3
2
  file: File | string | null;
4
3
  isOpen: boolean;
5
4
  onClose: () => void;
6
5
  }
7
- export declare const FilePreviewModal: React.FC<FilePreviewModalProps>;
8
- export {};
6
+ export declare const FilePreviewModal: ({ file, isOpen, onClose, }: FilePreviewModalProps) => import("react/jsx-runtime").JSX.Element | null;
9
7
  //# sourceMappingURL=FilePreviewModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilePreviewModal.d.ts","sourceRoot":"","sources":["../../src/components/FilePreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAsCD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsL5D,CAAC"}
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"}
@@ -7,12 +7,5 @@ export interface PanelRendererProps {
7
7
  onValueChange?: UseBaseWidgetOptions['onValueChange'];
8
8
  isEditMode?: boolean;
9
9
  }
10
- /**
11
- * Renders a panel with its nested panels or widgets
12
- *
13
- * Panels can contain:
14
- * - Nested panels (for layout composition)
15
- * - Widgets (for actual form inputs/controls)
16
- */
17
10
  export declare const PanelRenderer: ({ panel, dataSourceRequestHandler, schemaData, onValueChange, isEditMode, }: PanelRendererProps) => import("react/jsx-runtime").JSX.Element;
18
11
  //# sourceMappingURL=PanelRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanelRenderer.d.ts","sourceRoot":"","sources":["../../src/components/PanelRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,6EAM3B,kBAAkB,4CAuKpB,CAAC"}
1
+ {"version":3,"file":"PanelRenderer.d.ts","sourceRoot":"","sources":["../../src/components/PanelRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,6EAM3B,kBAAkB,4CAiIpB,CAAC"}
@@ -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,CAmqB1D,CAAC"}
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"}
@@ -2,7 +2,7 @@
2
2
  * JSON Schema definitions for Section Builder validation
3
3
  * These schemas are used by json-edit-react to provide validation and constraints
4
4
  */
5
- export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "simple-table", "table", "array-widget", "iterable-accordion", "phone", "currency", "display", "profile"];
5
+ export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
6
6
  export declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
7
7
  export declare const CONDITION_OPERATORS: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
8
8
  export declare const DATA_SOURCE_TYPES: readonly ["static", "api", "schema"];
@@ -47,7 +47,7 @@ export declare const panelSchema: {
47
47
  properties: {
48
48
  widget: {
49
49
  type: "string";
50
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "simple-table", "table", "array-widget", "iterable-accordion", "phone", "currency", "display", "profile"];
50
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
51
51
  description: string;
52
52
  };
53
53
  'widget-type': {
@@ -578,7 +578,7 @@ export declare const panelSchema: {
578
578
  properties: {
579
579
  widget: {
580
580
  type: "string";
581
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "simple-table", "table", "array-widget", "iterable-accordion", "phone", "currency", "display", "profile"];
581
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
582
582
  description: string;
583
583
  };
584
584
  'widget-type': {
@@ -1172,7 +1172,7 @@ export declare const sectionSchema: {
1172
1172
  properties: {
1173
1173
  widget: {
1174
1174
  type: "string";
1175
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "simple-table", "table", "array-widget", "iterable-accordion", "phone", "currency", "display", "profile"];
1175
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
1176
1176
  description: string;
1177
1177
  };
1178
1178
  'widget-type': {
@@ -1703,7 +1703,7 @@ export declare const sectionSchema: {
1703
1703
  properties: {
1704
1704
  widget: {
1705
1705
  type: "string";
1706
- enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "simple-table", "table", "array-widget", "iterable-accordion", "phone", "currency", "display", "profile"];
1706
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy"];
1707
1707
  description: string;
1708
1708
  };
1709
1709
  'widget-type': {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,yNAmBf,CAAC;AAEX,eAAO,MAAM,YAAY,qCAAsC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,6GAStB,CAAC;AAEX,eAAO,MAAM,iBAAiB,sCAAuC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,oCAAqC,CAAC;AAEnE,eAAO,MAAM,eAAe,wFAOlB,CAAC;AAEX,eAAO,MAAM,aAAa,2DAA4D,CAAC;AAEvF,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,eAAO,MAAM,uBAAuB,uDAAwD,CAAC;AAE7F,eAAO,MAAM,qBAAqB,0CAA2C,CAAC;AAoW9E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,GAAG,CAWhF"}
@@ -0,0 +1,3 @@
1
+ import { SectionRendererProps } from './types';
2
+ export declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, changeRequestType, showChangeRequestLabel, dbSectionId, sectionRegisterId, onSectionDirtyChange, sectionIndex, expandedSectionIndex, onExpandSection, onSectionSaveSuccess, onPreviousSection, isDraft, isAccessible, onEditModeChange, forceExitEdit, }: SectionRendererProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=SectionRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/SectionRenderer/SectionRenderer.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAoB/C,eAAO,MAAM,eAAe,GAAI,6YAuB7B,oBAAoB,4CAwNtB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface CRViewFooterProps {
2
+ createdBy?: unknown;
3
+ createdDate?: unknown;
4
+ approvedBy?: unknown;
5
+ approvedDate?: unknown;
6
+ }
7
+ export declare const CRViewFooter: ({ createdBy, createdDate, approvedBy, approvedDate, }: CRViewFooterProps) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=CRViewFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CRViewFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/CRViewFooter.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,GAAI,uDAK1B,iBAAiB,4CAoInB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { SectionConfig, SupportingDocumentConfig } from '../../../types';
3
+ import { UseBaseWidgetOptions } from '../../../hooks/useBaseWidget';
4
+ import { DataSourceRequestHandler } from '../../../types';
5
+ import { SectionMode } from '../../SectionsContainer';
6
+ export interface EditSectionPortalProps {
7
+ mode: SectionMode;
8
+ isEditMode: boolean;
9
+ editSectionPosition: {
10
+ top: number;
11
+ left: number;
12
+ width: number;
13
+ } | null;
14
+ sectionClassId: string;
15
+ sectionId: string;
16
+ gridId: string;
17
+ sectionTitle?: string;
18
+ portalCSSVariables: CSSProperties;
19
+ editableSection: SectionConfig;
20
+ dataSourceRequestHandler?: DataSourceRequestHandler;
21
+ schemaData?: UseBaseWidgetOptions['schemaData'];
22
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
23
+ supportingDocuments: SupportingDocumentConfig[];
24
+ hasSupportingDocuments: boolean;
25
+ isDirty: boolean;
26
+ onCancel: () => void;
27
+ onSave: () => void;
28
+ }
29
+ export declare const EditSectionPortal: ({ mode, isEditMode, editSectionPosition, sectionClassId, sectionId, gridId, sectionTitle, portalCSSVariables, editableSection, dataSourceRequestHandler, schemaData, onValueChange, supportingDocuments, hasSupportingDocuments, isDirty, onCancel, onSave, }: EditSectionPortalProps) => import("react").ReactPortal | null;
30
+ //# sourceMappingURL=EditSectionPortal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditSectionPortal.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/EditSectionPortal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOtD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,mBAAmB,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACzE,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,aAAa,CAAC;IAClC,eAAe,EAAE,aAAa,CAAC;IAC/B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,sBAAsB,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,GAAI,+PAkB/B,sBAAsB,uCA6HxB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { SectionConfig, SupportingDocumentConfig, DataSourceRequestHandler } from '../../../types';
2
+ import { UseBaseWidgetOptions } from '../../../hooks/useBaseWidget';
3
+ export interface IntakeFormLayoutProps {
4
+ section: SectionConfig;
5
+ sectionId: string;
6
+ gridId: string;
7
+ sectionIndex?: number;
8
+ isExpanded: boolean;
9
+ isAccessible: boolean;
10
+ isDraft?: boolean;
11
+ intakeFormSectionStatus: 'saved' | 'modified' | null;
12
+ editableSection: SectionConfig;
13
+ supportingDocuments: SupportingDocumentConfig[];
14
+ hasSupportingDocuments: boolean;
15
+ dataSourceRequestHandler?: DataSourceRequestHandler;
16
+ schemaData?: UseBaseWidgetOptions['schemaData'];
17
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
18
+ onAccordionToggle: () => void;
19
+ onPreviousSection?: (index: number) => void;
20
+ onSave: () => void;
21
+ }
22
+ export declare const IntakeFormLayout: ({ section, sectionId, gridId, sectionIndex, isExpanded, isAccessible, isDraft, intakeFormSectionStatus, editableSection, supportingDocuments, hasSupportingDocuments, dataSourceRequestHandler, schemaData, onValueChange, onAccordionToggle, onPreviousSection, onSave, }: IntakeFormLayoutProps) => import("react/jsx-runtime").JSX.Element;
23
+ //# sourceMappingURL=IntakeFormLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntakeFormLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/IntakeFormLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAEnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAMpE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;IACrD,eAAe,EAAE,aAAa,CAAC;IAC/B,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,sBAAsB,EAAE,OAAO,CAAC;IAChC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,4QAkB9B,qBAAqB,4CAqLvB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { PanelConfig } from '../../../types';
2
+ import { UseBaseWidgetOptions } from '../../../hooks/useBaseWidget';
3
+ import { DataSourceRequestHandler } from '../../../types';
4
+ export interface PanelGridProps {
5
+ gridId?: string;
6
+ panels: PanelConfig[];
7
+ dataSourceRequestHandler?: DataSourceRequestHandler;
8
+ schemaData?: UseBaseWidgetOptions['schemaData'];
9
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
10
+ isEditMode?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ getPanelWrapperClassName?: (index: number, total: number) => string;
14
+ wrapInContainer?: boolean;
15
+ }
16
+ export declare const PanelGrid: ({ gridId, panels, dataSourceRequestHandler, schemaData, onValueChange, isEditMode, className, style, getPanelWrapperClassName, wrapInContainer, }: PanelGridProps) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=PanelGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PanelGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/PanelGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS,GAAI,mJAWvB,cAAc,4CAyBhB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { SectionConfig } from '../../../types';
2
+ import { UseBaseWidgetOptions } from '../../../hooks/useBaseWidget';
3
+ import { DataSourceRequestHandler } from '../../../types';
4
+ import { SectionMode } from '../../SectionsContainer';
5
+ export interface RegistryViewLayoutProps {
6
+ mode: SectionMode;
7
+ section: SectionConfig;
8
+ gridId: string;
9
+ editableSection: SectionConfig;
10
+ dataSourceRequestHandler?: DataSourceRequestHandler;
11
+ schemaData?: UseBaseWidgetOptions['schemaData'];
12
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
13
+ changeRequestType?: 'new' | 'old';
14
+ showChangeRequestLabel?: boolean;
15
+ crViewData: {
16
+ createdBy?: unknown;
17
+ createdDate?: unknown;
18
+ approvedBy?: unknown;
19
+ approvedDate?: unknown;
20
+ } | null;
21
+ effectiveHideEditButton: boolean;
22
+ isEditMode: boolean;
23
+ onEdit: () => void;
24
+ }
25
+ export declare const RegistryViewLayout: ({ mode, section, gridId, editableSection, dataSourceRequestHandler, schemaData, onValueChange, changeRequestType, showChangeRequestLabel, crViewData, effectiveHideEditButton, isEditMode, onEdit, }: RegistryViewLayoutProps) => import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=RegistryViewLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegistryViewLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/RegistryViewLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOtD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,aAAa,CAAC;IAC/B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IACtD,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE;QACV,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;IACT,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,GAAI,sMAchC,uBAAuB,4CAoGzB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface SectionEditControlsProps {
2
+ onCancel: () => void;
3
+ onSave: () => void;
4
+ isDirty: boolean;
5
+ }
6
+ export declare const SectionEditControls: ({ onCancel, onSave, isDirty, }: SectionEditControlsProps) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=SectionEditControls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionEditControls.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/SectionEditControls.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,GAAI,gCAIjC,wBAAwB,4CAoC1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface SectionStylesProps {
2
+ sectionClassId: string;
3
+ gridId: string;
4
+ columnSpan: number;
5
+ hasTableWidget: boolean;
6
+ readonlyValueRowRootsCss: string;
7
+ readonlyValueRowFlex1Css: string;
8
+ readonlySingleLineValueTextCss: string;
9
+ }
10
+ export declare const SectionStyles: ({ sectionClassId, gridId, columnSpan, hasTableWidget, readonlyValueRowRootsCss, readonlyValueRowFlex1Css, readonlySingleLineValueTextCss, }: SectionStylesProps) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=SectionStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/SectionStyles.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,8BAA8B,EAAE,MAAM,CAAC;CACxC;AAED,eAAO,MAAM,aAAa,GAAI,6IAQ3B,kBAAkB,4CAkLpB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { SupportingDocumentConfig } from '../../../types';
2
+ import { SectionMode } from '../../SectionsContainer';
3
+ export interface SupportingDocumentsProps {
4
+ sectionId: string;
5
+ documents: SupportingDocumentConfig[];
6
+ mode: SectionMode;
7
+ isDraft?: boolean;
8
+ expanded?: boolean;
9
+ onToggleExpanded?: () => void;
10
+ collapsible?: boolean;
11
+ }
12
+ export declare const SupportingDocuments: ({ sectionId, documents, mode, isDraft, expanded, onToggleExpanded, collapsible, }: SupportingDocumentsProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ //# sourceMappingURL=SupportingDocuments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupportingDocuments.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/SupportingDocuments.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAKtD,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,wBAAwB,EAAE,CAAC;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB,GAAI,mFAQjC,wBAAwB,mDA2C1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { PanelGrid } from './PanelGrid';
2
+ export { SupportingDocuments } from './SupportingDocuments';
3
+ export { SectionEditControls } from './SectionEditControls';
4
+ export { CRViewFooter } from './CRViewFooter';
5
+ export { SectionStyles } from './SectionStyles';
6
+ export { EditSectionPortal } from './EditSectionPortal';
7
+ export { IntakeFormLayout } from './IntakeFormLayout';
8
+ export { RegistryViewLayout } from './RegistryViewLayout';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { useCrViewData } from './useCrViewData';
2
+ export { useIntakeFormAccordion } from './useIntakeFormAccordion';
3
+ export { useSectionEditPortal } from './useSectionEditPortal';
4
+ export { useSectionDirty } from './useSectionDirty';
5
+ export { useSectionActions } from './useSectionActions';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { SectionMode } from '../../SectionsContainer';
2
+ export declare const useCrViewData: (mode: SectionMode, currentSchemaData: Record<string, unknown>, storeValues: Record<string, unknown>) => {
3
+ createdBy: any;
4
+ createdDate: any;
5
+ approvedBy: any;
6
+ approvedDate: any;
7
+ } | null;
8
+ //# sourceMappingURL=useCrViewData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrViewData.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useCrViewData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,aAAa,GACxB,MAAM,WAAW,EACjB,mBAAmB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,aAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;QAaM,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { SectionMode } from '../../SectionsContainer';
2
+ export declare const useIntakeFormAccordion: (mode: SectionMode, sectionIndex?: number, expandedSectionIndex?: number | null, isAccessible?: boolean, onExpandSection?: (index: number) => void) => {
3
+ isExpanded: boolean;
4
+ handleAccordionToggle: () => void;
5
+ };
6
+ //# sourceMappingURL=useIntakeFormAccordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIntakeFormAccordion.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useIntakeFormAccordion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,GACjC,MAAM,WAAW,EACjB,eAAe,MAAM,EACrB,uBAAuB,MAAM,GAAG,IAAI,EACpC,sBAAoB,EACpB,kBAAkB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;CAoB1C,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { SectionConfig } from '../../../types';
3
+ import { SectionEditSnapshot } from '../../../utils/sectionRevert';
4
+ import { SectionMode } from '../../SectionsContainer';
5
+ import { SectionChanges } from '../types';
6
+ export declare const useSectionActions: ({ section, originalSectionId, sectionId, mode, isDraft, schemaData, contextSchemaData, hasSupportingDocuments, dbSectionId, sectionRegisterId, onSectionSave, onEditModeChange, onSectionDirtyChange, onSectionSaveSuccess, sectionIndex, editEntrySnapshotRef, enterEditMode, exitEditMode, captureEditEntrySnapshot, markIntakeFormSaved, markIntakeFormSavedWithoutData, }: {
7
+ section: SectionConfig;
8
+ originalSectionId: string;
9
+ sectionId: string;
10
+ mode: SectionMode;
11
+ isDraft?: boolean;
12
+ schemaData?: Record<string, unknown>;
13
+ contextSchemaData?: Record<string, unknown>;
14
+ hasSupportingDocuments: boolean;
15
+ dbSectionId?: string;
16
+ sectionRegisterId?: string;
17
+ onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
18
+ onEditModeChange?: (sectionId: string, editing: boolean) => void;
19
+ onSectionDirtyChange?: (sectionId: string, isDirty: boolean) => void;
20
+ onSectionSaveSuccess?: (index: number) => void;
21
+ sectionIndex?: number;
22
+ editEntrySnapshotRef: MutableRefObject<SectionEditSnapshot | null>;
23
+ enterEditMode: () => void;
24
+ exitEditMode: () => void;
25
+ captureEditEntrySnapshot: () => void;
26
+ markIntakeFormSaved: (currentSchemaData: Record<string, unknown>) => void;
27
+ markIntakeFormSavedWithoutData: () => void;
28
+ }) => {
29
+ handleEdit: () => void;
30
+ handleCancel: () => void;
31
+ handleSave: () => Promise<void>;
32
+ handleIntakeFormSave: () => Promise<void>;
33
+ };
34
+ //# sourceMappingURL=useSectionActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSectionActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useSectionActions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,iBAAiB,GAAI,+WAsB/B;IACD,OAAO,EAAE,aAAa,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,sBAAsB,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClE,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,gBAAgB,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnE,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,mBAAmB,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAC1E,8BAA8B,EAAE,MAAM,IAAI,CAAC;CAC5C;;;;;CAyIA,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { SectionConfig } from '../../../types';
3
+ import { SectionEditSnapshot } from '../../../utils/sectionRevert';
4
+ import { SectionMode } from '../../SectionsContainer';
5
+ export declare const useSectionDirty: ({ mode, isDraft, isEditMode, section, sectionId, hasSupportingDocuments, storeValues, schemaData, contextSchemaData, onSectionDirtyChange, sectionRegisterId, }: {
6
+ mode: SectionMode;
7
+ isDraft?: boolean;
8
+ isEditMode: boolean;
9
+ section: SectionConfig;
10
+ sectionId: string;
11
+ hasSupportingDocuments: boolean;
12
+ storeValues: Record<string, unknown>;
13
+ schemaData?: Record<string, unknown>;
14
+ contextSchemaData?: Record<string, unknown>;
15
+ onSectionDirtyChange?: (sectionId: string, isDirty: boolean) => void;
16
+ sectionRegisterId?: string;
17
+ }) => {
18
+ isDirty: boolean;
19
+ intakeFormSectionStatus: "saved" | "modified" | null;
20
+ editEntrySnapshotRef: MutableRefObject<SectionEditSnapshot | null>;
21
+ captureEditEntrySnapshot: () => void;
22
+ markIntakeFormSaved: (currentSchemaData: Record<string, unknown>) => void;
23
+ markIntakeFormSavedWithoutData: () => void;
24
+ };
25
+ //# sourceMappingURL=useSectionDirty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSectionDirty.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useSectionDirty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAA8B,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAE/F,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,eAAO,MAAM,eAAe,GAAI,iKAY7B;IACD,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,OAAO,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;;;0BA0EiD,gBAAgB,CAAC,mBAAmB,GAAG,IAAI,CAAC;;6CAbhC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;CAkBpF,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useSectionEditPortal: (forceExitEdit?: boolean) => {
3
+ isEditMode: boolean;
4
+ setIsEditMode: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ sectionRef: RefObject<HTMLDivElement>;
6
+ sectionHeight: number | null;
7
+ editSectionPosition: {
8
+ top: number;
9
+ left: number;
10
+ width: number;
11
+ } | null;
12
+ enterEditMode: () => void;
13
+ exitEditMode: () => void;
14
+ };
15
+ //# sourceMappingURL=useSectionEditPortal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSectionEditPortal.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useSectionEditPortal.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,OAAO;;;gBAyD9B,SAAS,CAAC,cAAc,CAAC;;;aApD9C,MAAM;cACL,MAAM;eACL,MAAM;;;;CAwDhB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { SectionRenderer } from './SectionRenderer';
2
+ export type { SectionChanges, SectionRendererProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionRenderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { SectionChanges } from './sectionChanges';
2
+ export type { SectionRendererProps } from './sectionRendererProps';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface SectionChanges {
2
+ section_id?: string;
3
+ section_register_id?: string;
4
+ records: unknown[];
5
+ files?: unknown[];
6
+ image?: File | null;
7
+ }
8
+ //# sourceMappingURL=sectionChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionChanges.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/types/sectionChanges.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACrB"}
@@ -0,0 +1,30 @@
1
+ import { UseBaseWidgetOptions } from '../../../hooks/useBaseWidget';
2
+ import { SectionConfig } from '../../../types';
3
+ import { SectionMode } from '../../SectionsContainer';
4
+ import { SectionChanges } from './sectionChanges';
5
+ export interface SectionRendererProps {
6
+ section: SectionConfig;
7
+ dataSourceRequestHandler?: UseBaseWidgetOptions['dataSourceRequestHandler'];
8
+ schemaData?: UseBaseWidgetOptions['schemaData'];
9
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
10
+ gridColumnSpan?: number;
11
+ onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
12
+ hideEditButton?: boolean;
13
+ mode?: SectionMode;
14
+ changeRequestType?: 'new' | 'old';
15
+ showChangeRequestLabel?: boolean;
16
+ dbSectionId?: string;
17
+ sectionRegisterId?: string;
18
+ onSectionDirtyChange?: (sectionId: string, isDirty: boolean) => void;
19
+ sectionIndex?: number;
20
+ sectionCount?: number;
21
+ expandedSectionIndex?: number | null;
22
+ onExpandSection?: (index: number) => void;
23
+ onSectionSaveSuccess?: (index: number) => void;
24
+ onPreviousSection?: (index: number) => void;
25
+ isDraft?: boolean;
26
+ isAccessible?: boolean;
27
+ onEditModeChange?: (sectionId: string, editing: boolean) => void;
28
+ forceExitEdit?: boolean;
29
+ }
30
+ //# sourceMappingURL=sectionRendererProps.d.ts.map