@openg2p/registry-widgets 1.1.6 → 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 (114) hide show
  1. package/dist/assets/index.d.ts +1 -3
  2. package/dist/assets/index.d.ts.map +1 -1
  3. package/dist/components/FilePreviewModal.d.ts +7 -0
  4. package/dist/components/FilePreviewModal.d.ts.map +1 -0
  5. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +11 -6
  6. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
  7. package/dist/components/SectionBuilder/PropertyEditor.d.ts +0 -3
  8. package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -1
  9. package/dist/components/SectionBuilder/SearchableSelect.d.ts +11 -0
  10. package/dist/components/SectionBuilder/SearchableSelect.d.ts.map +1 -0
  11. package/dist/components/SectionBuilder/SectionBuilder.d.ts +2 -4
  12. package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -1
  13. package/dist/components/SectionBuilder/SectionTree.d.ts +7 -4
  14. package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -1
  15. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +7 -5
  16. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
  17. package/dist/components/SectionBuilder/index.d.ts +1 -1
  18. package/dist/components/SectionBuilder/index.d.ts.map +1 -1
  19. package/dist/components/SectionBuilder/schemas.d.ts +6 -286
  20. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
  21. package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts +14 -0
  22. package/dist/components/SectionBuilder/validate/parseJsoncSyntax.d.ts.map +1 -0
  23. package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts +12 -0
  24. package/dist/components/SectionBuilder/validate/parseSectionJson.d.ts.map +1 -0
  25. package/dist/components/SectionBuilder/validate/validateSection.d.ts +7 -0
  26. package/dist/components/SectionBuilder/validate/validateSection.d.ts.map +1 -0
  27. package/dist/components/SectionRenderer/SectionRenderer.d.ts.map +1 -1
  28. package/dist/components/SectionRenderer/components/EditSectionPortal.d.ts.map +1 -1
  29. package/dist/components/SectionRenderer/components/IntakeFormLayout.d.ts.map +1 -1
  30. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +1 -7
  31. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -1
  32. package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -1
  33. package/dist/components/SectionRenderer/components/index.d.ts +0 -1
  34. package/dist/components/SectionRenderer/components/index.d.ts.map +1 -1
  35. package/dist/components/SectionRenderer/hooks/index.d.ts +0 -1
  36. package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -1
  37. package/dist/components/SectionRenderer/hooks/useCrViewData.d.ts.map +1 -1
  38. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +2 -2
  39. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -1
  40. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +1 -2
  41. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -1
  42. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts +6 -0
  43. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts.map +1 -0
  44. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +12 -1
  45. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -1
  46. package/dist/components/SectionRenderer/utils/index.d.ts +1 -0
  47. package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -1
  48. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +5 -0
  49. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -1
  50. package/dist/components/SectionRenderer/utils/sectionSnapshot.d.ts.map +1 -1
  51. package/dist/components/SectionRenderer.d.ts +61 -0
  52. package/dist/components/SectionRenderer.d.ts.map +1 -0
  53. package/dist/components/WidgetProvider.d.ts.map +1 -1
  54. package/dist/hooks/useBaseWidget.d.ts.map +1 -1
  55. package/dist/hooks/useGeoHierarchy.d.ts +5 -3
  56. package/dist/hooks/useGeoHierarchy.d.ts.map +1 -1
  57. package/dist/hooks/useGeoWidgetCascade.d.ts +12 -0
  58. package/dist/hooks/useGeoWidgetCascade.d.ts.map +1 -0
  59. package/dist/hooks/useWidgetTheme.d.ts +7 -10
  60. package/dist/hooks/useWidgetTheme.d.ts.map +1 -1
  61. package/dist/hooks/useWidgetTranslation.d.ts +16 -0
  62. package/dist/hooks/useWidgetTranslation.d.ts.map +1 -0
  63. package/dist/i18n/config.d.ts +21 -0
  64. package/dist/i18n/config.d.ts.map +1 -0
  65. package/dist/index.d.ts +48 -35
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.esm.js +8126 -1861
  68. package/dist/index.esm.js.map +1 -1
  69. package/dist/index.js +8132 -1860
  70. package/dist/index.js.map +1 -1
  71. package/dist/registry/widgetTypes.d.ts +6 -0
  72. package/dist/registry/widgetTypes.d.ts.map +1 -0
  73. package/dist/store/widgetSlice.d.ts +1 -1
  74. package/dist/store/widgetSlice.d.ts.map +1 -1
  75. package/dist/theme/index.d.ts +11 -13
  76. package/dist/theme/index.d.ts.map +1 -1
  77. package/dist/utils/buildSectionChanges.d.ts +11 -0
  78. package/dist/utils/buildSectionChanges.d.ts.map +1 -0
  79. package/dist/utils/geoHierarchy.d.ts +43 -3
  80. package/dist/utils/geoHierarchy.d.ts.map +1 -1
  81. package/dist/utils/pathUtils.d.ts +4 -1
  82. package/dist/utils/pathUtils.d.ts.map +1 -1
  83. package/dist/utils/schemaNamespace.d.ts +12 -0
  84. package/dist/utils/schemaNamespace.d.ts.map +1 -0
  85. package/dist/utils/sectionRevert.d.ts.map +1 -1
  86. package/dist/utils/sectionValidate.d.ts.map +1 -1
  87. package/dist/utils/tSchema.d.ts +1 -0
  88. package/dist/utils/tSchema.d.ts.map +1 -1
  89. package/dist/utils/validation.d.ts +3 -1
  90. package/dist/utils/validation.d.ts.map +1 -1
  91. package/dist/widgets/ArrayWidget.d.ts +29 -0
  92. package/dist/widgets/ArrayWidget.d.ts.map +1 -0
  93. package/dist/widgets/CurrencyInputWidget.d.ts +24 -0
  94. package/dist/widgets/CurrencyInputWidget.d.ts.map +1 -0
  95. package/dist/widgets/DateInputWidget.d.ts.map +1 -1
  96. package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
  97. package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
  98. package/dist/widgets/DocsWidget.d.ts.map +1 -1
  99. package/dist/widgets/FileInputWidget.d.ts.map +1 -1
  100. package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -1
  101. package/dist/widgets/IterableAccordionWidget.d.ts +30 -0
  102. package/dist/widgets/IterableAccordionWidget.d.ts.map +1 -0
  103. package/dist/widgets/MultiSelectWidget.d.ts.map +1 -1
  104. package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
  105. package/dist/widgets/ParentLookupWidget.d.ts.map +1 -1
  106. package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
  107. package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -1
  108. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  109. package/dist/widgets/SimpleTableWidget.d.ts +32 -0
  110. package/dist/widgets/SimpleTableWidget.d.ts.map +1 -0
  111. package/dist/widgets/TableWidget.d.ts.map +1 -1
  112. package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
  113. package/dist/widgets/TextInputWidget.d.ts.map +1 -1
  114. package/package.json +6 -2
@@ -1,4 +1,3 @@
1
- import { MutableRefObject } from 'react';
2
1
  import { SectionConfig } from '../../../types';
3
2
  import { SectionEditSnapshot } from '../../../utils/sectionRevert';
4
3
  import { SectionMode } from '../../SectionsContainer';
@@ -17,7 +16,7 @@ export declare const useSectionDirty: ({ mode, isDraft, isEditMode, section, sec
17
16
  }) => {
18
17
  isDirty: boolean;
19
18
  intakeFormSectionStatus: "saved" | "modified" | null;
20
- editEntrySnapshotRef: MutableRefObject<SectionEditSnapshot | null>;
19
+ editEntrySnapshotRef: import("react").RefObject<SectionEditSnapshot | null>;
21
20
  captureEditEntrySnapshot: () => void;
22
21
  markIntakeFormSaved: (currentSchemaData: Record<string, unknown>) => void;
23
22
  markIntakeFormSavedWithoutData: () => void;
@@ -1 +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"}
1
+ {"version":3,"file":"useSectionDirty.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useSectionDirty.ts"],"names":[],"mappings":"AAEA,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;;;;;6CA6D6D,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;CAkBpF,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare function diffSectionChangeRecords(baselineRecords: unknown[], currentRecords: unknown[], { isTable, internalRecordId, tableColumnKeys }: {
2
+ isTable: boolean;
3
+ internalRecordId?: string;
4
+ tableColumnKeys?: string[];
5
+ }): unknown[];
6
+ //# sourceMappingURL=diffSectionChangeRecords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diffSectionChangeRecords.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/diffSectionChangeRecords.ts"],"names":[],"mappings":"AAyJA,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,OAAO,EAAE,EAC1B,cAAc,EAAE,OAAO,EAAE,EACzB,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAC1H,OAAO,EAAE,CAIX"}
@@ -12,6 +12,17 @@ export interface ExecuteSectionSaveParams {
12
12
  hasSupportingDocuments: boolean;
13
13
  dbSectionId?: string;
14
14
  sectionRegisterId?: string;
15
+ /**
16
+ * Registry / CR: skip no-op saves. Form sections emit every section field
17
+ * (once anything changed). Table sections emit only touched rows.
18
+ * Intake keeps full records.
19
+ */
20
+ sectionFieldsOnly?: boolean;
21
+ /**
22
+ * Intake Save/Next can skip required checks so drafts can be stored.
23
+ * RegistryView change-request save must validate required fields.
24
+ */
25
+ skipRequired?: boolean;
15
26
  onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
16
27
  }
17
28
  export interface ExecuteSectionSaveResult {
@@ -20,5 +31,5 @@ export interface ExecuteSectionSaveResult {
20
31
  saveFailed?: boolean;
21
32
  currentSchemaData: Record<string, unknown>;
22
33
  }
23
- export declare const executeSectionSave: ({ store, dispatch, section, schemaData, contextSchemaData, hasSupportingDocuments, dbSectionId, sectionRegisterId, onSectionSave, }: ExecuteSectionSaveParams) => Promise<ExecuteSectionSaveResult>;
34
+ export declare const executeSectionSave: ({ store, dispatch, section, schemaData, contextSchemaData, hasSupportingDocuments, dbSectionId, sectionRegisterId, sectionFieldsOnly, skipRequired, onSectionSave, }: ExecuteSectionSaveParams) => Promise<ExecuteSectionSaveResult>;
24
35
  //# sourceMappingURL=executeSectionSave.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeSectionSave.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/executeSectionSave.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBA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A;KAAE,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,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;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CACnE;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C;AAqHD,eAAO,MAAM,kBAAkB,GAAU,sKAYtC,wBAAwB,KAAG,OAAO,CAAC,wBAAwB,CA6F7D,CAAC"}
@@ -4,6 +4,7 @@ export { makePanelsEditable, buildEditableSection } from './makePanelsEditable';
4
4
  export { createDocumentWidgetConfig } from './documentWidgetConfig';
5
5
  export { trackSectionChanges, buildSectionSnapshot, buildSectionChanges, buildSectionRecords } from './sectionSnapshot';
6
6
  export type { BuildSectionRecordsOptions, SectionRecordsEditAction, SectionRecordsWhenEmpty } from './sectionSnapshot';
7
+ export { diffSectionChangeRecords } from './diffSectionChangeRecords';
7
8
  export { revertSectionValues } from './revertSectionValues';
8
9
  export { executeSectionSave } from './executeSectionSave';
9
10
  export type { ExecuteSectionSaveParams, ExecuteSectionSaveResult } from './executeSectionSave';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,+BAA+B,EAC/B,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxH,YAAY,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACvH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,+BAA+B,EAC/B,sCAAsC,EACtC,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxH,YAAY,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACvH,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,6 +1,11 @@
1
1
  import { Dispatch } from '@reduxjs/toolkit';
2
2
  import { SectionConfig } from '../../../types';
3
3
  import { SectionEditSnapshot } from '../../../utils/sectionRevert';
4
+ /**
5
+ * Restore section widget values after cancel/save from schemaData
6
+ * (approved register data). Uses replaceValues — setValues merges and would
7
+ * keep deleted table rows / cleared fields.
8
+ */
4
9
  export declare const revertSectionValues: ({ section, store, dispatch, schemaData, contextSchemaData, hasSupportingDocuments, sectionId, editEntrySnapshot, }: {
5
10
  section: SectionConfig;
6
11
  store: {
@@ -1 +1 @@
1
- {"version":3,"file":"revertSectionValues.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/revertSectionValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAA4B,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAI7F,eAAO,MAAM,mBAAmB,GAAI,oHASjC;IACD,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,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,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC/C,SA4DA,CAAC"}
1
+ {"version":3,"file":"revertSectionValues.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/revertSectionValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAA4B,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAyC7F;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,oHASjC;IACD,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;IACnB,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,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC/C,SA2CA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sectionSnapshot.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/sectionSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAKhE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,eAAe,GAAG,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AAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,cAAc,CAkBhB"}
@@ -0,0 +1,61 @@
1
+ import { SectionConfig } from '../types';
2
+ import { UseBaseWidgetOptions } from '../hooks/useBaseWidget';
3
+ import { SectionMode } from './SectionsContainer';
4
+ export interface SectionChanges {
5
+ section_id?: string;
6
+ section_register_id?: string;
7
+ records: unknown[];
8
+ files?: unknown[];
9
+ image?: File | null;
10
+ }
11
+ export interface SectionRendererProps {
12
+ section: SectionConfig;
13
+ dataSourceRequestHandler?: UseBaseWidgetOptions['dataSourceRequestHandler'];
14
+ schemaData?: UseBaseWidgetOptions['schemaData'];
15
+ onValueChange?: UseBaseWidgetOptions['onValueChange'];
16
+ gridColumnSpan?: number;
17
+ onSectionSave?: (changes: SectionChanges) => Promise<void> | void;
18
+ hideEditButton?: boolean;
19
+ mode?: SectionMode;
20
+ namespace?: string;
21
+ changeRequestType?: 'new' | 'old';
22
+ showChangeRequestLabel?: boolean;
23
+ dbSectionId?: string;
24
+ sectionRegisterId?: string;
25
+ /** Called when the section's dirty (has unsaved changes) status changes. Only fires while in edit mode. */
26
+ onSectionDirtyChange?: (sectionId: string, isDirty: boolean) => void;
27
+ /** IntakeForm mode: 0-based index of this section within the form */
28
+ sectionIndex?: number;
29
+ /** IntakeForm mode: total number of sections in the form */
30
+ sectionCount?: number;
31
+ /** IntakeForm mode: index of the currently expanded section (null = all collapsed) */
32
+ expandedSectionIndex?: number | null;
33
+ /** IntakeForm mode: called when user requests to expand a section (e.g. clicks accordion header) */
34
+ onExpandSection?: (index: number) => void;
35
+ /** IntakeForm mode: called when section save completes successfully (collapse current, expand next) */
36
+ onSectionSaveSuccess?: (index: number) => void;
37
+ /** IntakeForm mode: called when user clicks Previous (collapse current, expand previous) */
38
+ onPreviousSection?: (index: number) => void;
39
+ /** IntakeForm mode: when true or undefined, sections are editable; when false, sections are readonly */
40
+ isDraft?: boolean;
41
+ /**
42
+ * IntakeForm mode: when true the accordion header is clickable so the user can open/close this
43
+ * section freely. False (default) locks the header — navigation is only via Next/Previous.
44
+ * SectionsContainer sets this to true for every visited section plus the one immediately after.
45
+ */
46
+ isAccessible?: boolean;
47
+ /** RegistryView: called when this section enters or exits edit mode. Used by SectionsContainer to enforce single-edit. */
48
+ onEditModeChange?: (sectionId: string, editing: boolean) => void;
49
+ /** RegistryView: when true, forces this section out of edit mode (another section took over). */
50
+ forceExitEdit?: boolean;
51
+ }
52
+ /**
53
+ * Renders a section with its panels
54
+ *
55
+ * Layout behavior:
56
+ * - Section width is based on max 3 panels (or more on high resolution)
57
+ * - Panels wrap when they exceed available width
58
+ * - Sections can sit side-by-side if there's space
59
+ */
60
+ export declare const SectionRenderer: ({ section, dataSourceRequestHandler: propDataSourceRequestHandler, schemaData, onValueChange, gridColumnSpan, onSectionSave, hideEditButton, mode, namespace, changeRequestType, showChangeRequestLabel, dbSectionId, sectionRegisterId, onSectionDirtyChange, sectionIndex, sectionCount, expandedSectionIndex, onExpandSection, onSectionSaveSuccess, onPreviousSection, isDraft, isAccessible, onEditModeChange, forceExitEdit, }: SectionRendererProps) => import("react/jsx-runtime").JSX.Element;
61
+ //# sourceMappingURL=SectionRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionRenderer.d.ts","sourceRoot":"","sources":["../../src/components/SectionRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAyC,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQ9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAuDlD,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;IA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,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM;CAU3C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mFAQ5B,mBAAmB,4CAoDrB,CAAC"}
1
+ {"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/components/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAqB,WAAW,EAAE,MAAM,UAAU,CAAC;AAI1D,OAAO,EAAE,WAAW,EAAyC,MAAM,UAAU,CAAC;AAG9E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;IAC3C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAcD,eAAO,MAAM,gBAAgB;+BAXA,wBAAwB;iBACtC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;kBAClB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5C,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM;CAU3C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mFAQ5B,mBAAmB,4CAmErB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBaseWidget.d.ts","sourceRoot":"","sources":["../../src/hooks/useBaseWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAiBtE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACxD;AAKD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;;yBAqJ5C,GAAG,aAAY,OAAO;;uBA6Rd,MAAM,EAAE;;;;;;;0BA1LpB,MAAM;;;CA+LhB,CAAC"}
1
+ {"version":3,"file":"useBaseWidget.d.ts","sourceRoot":"","sources":["../../src/hooks/useBaseWidget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAiBtE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACxD;AAKD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;;yBA8J5C,GAAG,aAAY,OAAO;;uBA4Sd,MAAM,EAAE;;;;;;;0BAjMpB,MAAM;;;CAsMhB,CAAC"}
@@ -12,14 +12,16 @@ export declare function useGeoHierarchy({ config }: UseGeoHierarchyOptions): {
12
12
  columnSpan: number;
13
13
  visibleColumns: {
14
14
  index: number;
15
- levels: GeoLevel[];
15
+ steps: NonNullable<import("../utils/geoHierarchy").GeoFormStep | undefined>[];
16
16
  }[];
17
17
  loadingLevels: boolean;
18
18
  loadingLevelId: string | null;
19
19
  geoError: string | null;
20
20
  readonlyPath: string;
21
- handleLevelChange: (levelIndex: number, nextValue: string | undefined) => Promise<void>;
22
- isLevelEnabled: (levelIndex: number) => boolean;
21
+ handleValueChange: (levelId: string, nextValue: string | undefined) => Promise<void>;
22
+ isComplete: boolean;
23
+ selectedPath: GeoLevel[];
24
+ formSteps: import("../utils/geoHierarchy").GeoFormStep[];
23
25
  formatLevelLabel: typeof formatLevelLabel;
24
26
  widgetId: string;
25
27
  value: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useGeoHierarchy.d.ts","sourceRoot":"","sources":["../../src/hooks/useGeoHierarchy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAA4B,MAAM,UAAU,CAAC;AAKtE,OAAO,EACL,QAAQ,EAER,eAAe,EAQf,gBAAgB,EASjB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA+BD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB;;;;;;;;;;;;;;;oCA0V3C,MAAM,aAAa,MAAM,GAAG,SAAS;iCAuF3B,MAAM;;;;;;;;;;;;;;;;;;;;;;;EAGtC"}
1
+ {"version":3,"file":"useGeoHierarchy.d.ts","sourceRoot":"","sources":["../../src/hooks/useGeoHierarchy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAA4B,MAAM,UAAU,CAAC;AAKtE,OAAO,EACL,QAAQ,EAER,eAAe,EAUf,gBAAgB,EAWjB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA+BD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB;;;;;;;;;;;;;;;iCA0Z9C,MAAM,aAAa,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;EAsJxD"}
@@ -0,0 +1,12 @@
1
+ import { BaseWidgetConfig, DataSourceRequestHandler } from '../types';
2
+ export interface UseGeoWidgetCascadeOptions {
3
+ config: BaseWidgetConfig;
4
+ dataSourceRequestHandler?: DataSourceRequestHandler;
5
+ values: Record<string, any>;
6
+ }
7
+ /**
8
+ * Hook for geo widget cascade functionality
9
+ * Handles geo hierarchy building and cascade behavior
10
+ */
11
+ export declare const useGeoWidgetCascade: (options: UseGeoWidgetCascadeOptions) => void;
12
+ //# sourceMappingURL=useGeoWidgetCascade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGeoWidgetCascade.d.ts","sourceRoot":"","sources":["../../src/hooks/useGeoWidgetCascade.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAmBtE,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAGD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,0BAA0B,SAwMtE,CAAC"}
@@ -1,11 +1,8 @@
1
- import { resolveTheme } from '../theme';
2
- export type ResolvedTheme = ReturnType<typeof resolveTheme>;
3
- export declare const ThemeContext: import("react").Context<Required<{
4
- colors: Required<import("../theme").WidgetThemeColors>;
5
- section: Required<import("../theme").WidgetThemeSection>;
6
- panel: Required<import("../theme").WidgetThemePanel>;
7
- button: Required<import("../theme").WidgetThemeButton>;
8
- widget: Required<import("../theme").WidgetThemeWidget>;
9
- }>>;
10
- export declare function useWidgetTheme(): ResolvedTheme;
1
+ import type { WidgetTheme } from '../theme';
2
+ export declare const ThemeContext: import("react").Context<WidgetTheme | undefined>;
3
+ export declare function useWidgetTheme(): WidgetTheme | undefined;
4
+ export declare function useOwtThemeRootProps(): {
5
+ className: string;
6
+ style: React.CSSProperties;
7
+ };
11
8
  //# sourceMappingURL=useWidgetTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWidgetTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useWidgetTheme.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,YAAY,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE5D,eAAO,MAAM,YAAY;;;;;;GAA6C,CAAC;AAEvE,wBAAgB,cAAc,IAAI,aAAa,CAE9C"}
1
+ {"version":3,"file":"useWidgetTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useWidgetTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,eAAO,MAAM,YAAY,kDAAoD,CAAC;AAE9E,wBAAgB,cAAc,IAAI,WAAW,GAAG,SAAS,CAExD;AAED,wBAAgB,oBAAoB;;;EAGnC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Custom hook for widget translations
3
+ * Provides translation function with widget-specific namespace and fallback support
4
+ */
5
+ export declare const useWidgetTranslation: () => {
6
+ t: (keyOrString: string | undefined | null, options?: {
7
+ defaultValue?: string;
8
+ [key: string]: any;
9
+ }) => string;
10
+ translate: (keyOrString: string | undefined | null, options?: {
11
+ defaultValue?: string;
12
+ [key: string]: any;
13
+ }) => string;
14
+ translateConfig: (value: string | undefined | null, fallback?: string) => string;
15
+ };
16
+ //# sourceMappingURL=useWidgetTranslation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWidgetTranslation.d.ts","sourceRoot":"","sources":["../../src/hooks/useWidgetTranslation.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,oBAAoB;qBAoBhB,MAAM,GAAG,SAAS,GAAG,IAAI,YAC5B;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,KACA,MAAM;6BALM,MAAM,GAAG,SAAS,GAAG,IAAI,YAC5B;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,KACA,MAAM;6BA0BA,MAAM,GAAG,SAAS,GAAG,IAAI,aACrB,MAAM,KAChB,MAAM;CAqDV,CAAC"}
@@ -0,0 +1,21 @@
1
+ import i18n from 'i18next';
2
+ /**
3
+ * Initialize i18n for the widget library
4
+ * Can be customized by passing custom resources or configuration
5
+ *
6
+ * If no resources are provided, it will attempt to automatically load translations
7
+ * from the consuming project's locale directory.
8
+ *
9
+ * If options are provided and the default instance is already initialized,
10
+ * creates a new i18n instance to avoid reinitialization issues.
11
+ */
12
+ export declare const initI18n: (options?: {
13
+ resources?: Record<string, any>;
14
+ lng?: string;
15
+ fallbackLng?: string;
16
+ debug?: boolean;
17
+ loadPath?: string | string[];
18
+ autoLoad?: boolean;
19
+ }) => Promise<import("i18next").i18n>;
20
+ export default i18n;
21
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/i18n/config.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AA6C3B;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,GAAU,UAAU;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,oCAuEA,CAAC;AAwBF,eAAe,IAAI,CAAC"}
package/dist/index.d.ts CHANGED
@@ -298,6 +298,7 @@ declare const setValue: _reduxjs_toolkit.ActionCreatorWithPayload<{
298
298
  value: WidgetValue;
299
299
  }, "widget/setValue">;
300
300
  declare const setValues: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "widget/setValues">;
301
+ declare const replaceValues: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "widget/replaceValues">;
301
302
  declare const setError: _reduxjs_toolkit.ActionCreatorWithPayload<{
302
303
  widgetId: string;
303
304
  errors: string[];
@@ -450,14 +451,12 @@ interface WidgetTheme {
450
451
  button?: WidgetThemeButton;
451
452
  widget?: WidgetThemeWidget;
452
453
  }
453
- declare const defaultTheme: Required<{
454
- colors: Required<WidgetThemeColors>;
455
- section: Required<WidgetThemeSection>;
456
- panel: Required<WidgetThemePanel>;
457
- button: Required<WidgetThemeButton>;
458
- widget: Required<WidgetThemeWidget>;
459
- }>;
460
- declare function resolveTheme(theme?: WidgetTheme): typeof defaultTheme;
454
+ declare function themeToCSSVariables(theme?: WidgetTheme): React$1.CSSProperties;
455
+ declare function owtFieldInputClass({ error, disabled, className, }?: {
456
+ error?: boolean;
457
+ disabled?: boolean;
458
+ className?: string;
459
+ }): string;
461
460
 
462
461
  interface WidgetProviderProps {
463
462
  store?: WidgetStore;
@@ -544,26 +543,29 @@ interface SectionRendererProps {
544
543
 
545
544
  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) => react_jsx_runtime.JSX.Element;
546
545
 
546
+ type BuilderNotifyType$1 = 'success' | 'error' | 'info' | 'warn';
547
547
  interface SectionBuilderProps {
548
548
  initialSection?: SectionConfig;
549
549
  onChange?: (section: SectionConfig) => void;
550
550
  onSave?: (section: SectionConfig) => void;
551
+ onNotify?: (message: string, type: BuilderNotifyType$1) => void;
551
552
  }
552
- /**
553
- * Main Section Builder Component
554
- * Provides dual-panel interface for editing section JSON
555
- */
556
553
  declare const SectionBuilder: React$1.FC<SectionBuilderProps>;
557
554
 
555
+ type BuilderNotifyType = 'success' | 'error' | 'info' | 'warn';
558
556
  interface JSONEditorPanelProps {
559
- section: SectionConfig;
557
+ initialText: string;
560
558
  onChange: (section: SectionConfig) => void;
561
- onReset?: () => void;
562
- context?: 'section' | 'panel' | 'widget';
559
+ onRawDraftChange?: (next: string) => void;
560
+ onRawValidationChange?: (next: {
561
+ isValid: boolean;
562
+ errors: string[];
563
+ jsonSyntaxValid: boolean;
564
+ }) => void;
565
+ onNotify?: (message: string, type: BuilderNotifyType) => void;
566
+ isMaximized?: boolean;
567
+ onToggleMaximize?: () => void;
563
568
  }
564
- /**
565
- * JSON Editor Panel - Left side of Section Builder
566
- */
567
569
  declare const JSONEditorPanel: React$1.FC<JSONEditorPanelProps>;
568
570
 
569
571
  type TreeNodeType = 'section' | 'panel' | 'widget';
@@ -580,13 +582,16 @@ interface SectionTreeProps {
580
582
  selectedNode?: TreeNode | null;
581
583
  onSelectNode: (node: TreeNode | null) => void;
582
584
  onAddPanel: (parentId: string, parentType: TreeNodeType) => void;
583
- onAddWidget: (parentId: string) => void;
585
+ onAddWidget: (parentId: string, widgetType?: string) => void;
584
586
  onDeleteNode: (node: TreeNode) => void;
585
587
  onDuplicateNode: (node: TreeNode) => void;
588
+ onMoveNode?: (args: {
589
+ kind: 'panel' | 'widget';
590
+ parentPanelId: string | null;
591
+ activeId: string;
592
+ overId: string;
593
+ }) => void;
586
594
  }
587
- /**
588
- * Tree view component for section structure
589
- */
590
595
  declare const SectionTree: React$1.FC<SectionTreeProps>;
591
596
 
592
597
  interface VisualBuilderPanelProps {
@@ -595,16 +600,18 @@ interface VisualBuilderPanelProps {
595
600
  onSelectNode: (node: TreeNode | null) => void;
596
601
  onSectionChange: (section: SectionConfig) => void;
597
602
  onAddPanel: (parentId: string, parentType: 'section' | 'panel' | 'widget') => void;
598
- onAddWidget: (parentId: string) => void;
603
+ onAddWidget: (parentId: string, widgetType?: string) => void;
599
604
  onDeleteNode: (node: TreeNode) => void;
600
605
  onDuplicateNode: (node: TreeNode) => void;
601
- onSave?: (section: SectionConfig) => void;
606
+ onMoveNode?: (args: {
607
+ kind: 'panel' | 'widget';
608
+ parentPanelId: string | null;
609
+ activeId: string;
610
+ overId: string;
611
+ }) => void;
602
612
  isMaximized?: boolean;
603
613
  onToggleMaximize?: () => void;
604
614
  }
605
- /**
606
- * Visual Builder Panel - Right side of Section Builder
607
- */
608
615
  declare const VisualBuilderPanel: React$1.FC<VisualBuilderPanelProps>;
609
616
 
610
617
  interface PropertyEditorProps {
@@ -613,11 +620,13 @@ interface PropertyEditorProps {
613
620
  onDelete: (node: TreeNode) => void;
614
621
  onDuplicate: (node: TreeNode) => void;
615
622
  }
616
- /**
617
- * Property editor component for editing selected node properties
618
- */
619
623
  declare const PropertyEditor: React$1.FC<PropertyEditorProps>;
620
624
 
625
+ declare const WIDGET_TYPES: 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"];
626
+ type WidgetType = (typeof WIDGET_TYPES)[number];
627
+ declare function getWidgetCategory(widget: string): 'input' | 'layout' | 'table' | 'group';
628
+ declare function createDefaultWidgetConfig(widgetType: string): BaseWidgetConfig;
629
+
621
630
  declare const registerDefaultWidgets: () => void;
622
631
 
623
632
  declare class WidgetRegistry {
@@ -770,6 +779,8 @@ declare const getValueByPath: (obj: any, path: string) => any;
770
779
  * Safely creates nested objects as needed
771
780
  */
772
781
  declare const setValueByPath: (obj: any, path: string, value: any) => any;
782
+ /** Remove a nested path (used when reverting to empty schema data). */
783
+ declare const deleteValueByPath: (obj: any, path: string) => any;
773
784
  /**
774
785
  * Parse widget data path (can be string or object)
775
786
  */
@@ -777,15 +788,18 @@ declare const parseDataPath: (dataPath: string | Record<string, string> | undefi
777
788
  declare const resolveWidgetIdValue: (values: Record<string, any>, ref: string) => any;
778
789
  declare const getWidgetValue: (values: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string) => any;
779
790
  /**
780
- * Set value in widget state using data path
791
+ * Set value in widget state using data path.
792
+ * Pass `undefined` to clear the path(s) and widgetId entry.
781
793
  */
782
794
  declare const setWidgetValue: (currentValues: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string, value: any) => Record<string, any>;
783
795
 
796
+ declare const isWidgetValueEmpty: (value: unknown) => boolean;
784
797
  /**
785
798
  * @param skipRequired - Skip required checks for per-section Save/Next navigation;
786
799
  * format and range validation still run.
787
800
  */
788
801
  declare const validateWidget: (value: any, validation: WidgetValidation | undefined, required?: boolean, skipRequired?: boolean) => string[];
802
+ declare const validateDocsWidget: (value: unknown, documents: DocsWidgetDocumentConfig[] | undefined, skipRequired?: boolean) => string[];
789
803
  declare const createZodSchema: (validation: WidgetValidation | undefined, required?: boolean) => z.ZodSchema | null;
790
804
 
791
805
  declare const formatDate: (value: any, format: WidgetFormat | undefined) => string;
@@ -865,12 +879,11 @@ declare const isAllowedKey: (key: string, format: WidgetFormat | undefined, curr
865
879
  declare const getFormattedNumberLength: (value: number | string | null, format: WidgetFormat | undefined) => number;
866
880
  declare const normalizeNumericDefault: (defaultValue: unknown, format: WidgetFormat | undefined) => number | null | undefined;
867
881
 
868
- type ResolvedTheme = ReturnType<typeof resolveTheme>;
869
- declare function useWidgetTheme(): ResolvedTheme;
882
+ declare function useWidgetTheme(): WidgetTheme | undefined;
870
883
 
871
884
  declare const translateWidgetConfig: (widgetConfig: BaseWidgetConfig, translate: (key: string, options?: any) => string) => BaseWidgetConfig;
872
885
  declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string, options?: any) => string) => PanelConfig;
873
886
  declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
874
887
 
875
- export { BooleanWidget, CheckboxWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, DocsWidget, FileInputWidget, GeoHierarchyWidget, HeaderSectionWidget, IdAuthenticationWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, ParentLookupWidget, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, RegisterLookupWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, hasVisibilityRules, isAllowedKey, isGeoHierarchyDataSource, normalizeNumericDefault, normalizeOptionRules, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, resolveTheme, resolveWidgetIdValue, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, validateNumericValue, validateWidget, widgetRegistry };
876
- export type { ApiAdapter, ApiDataSource$1 as ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, DocsWidgetDocumentConfig, GeoHierarchyDataPath, GeoHierarchyDataSource, GeoHierarchyLayout, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetConditionState, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetOptionRule, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetValidation, WidgetValue };
888
+ export { BooleanWidget, CheckboxWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, DocsWidget, FileInputWidget, GeoHierarchyWidget, HeaderSectionWidget, IdAuthenticationWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, ParentLookupWidget, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, RegisterLookupWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WIDGET_TYPES, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createDefaultWidgetConfig, createWidgetStore, createZodSchema, deleteValueByPath, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetCategory, getWidgetValue, hasVisibilityRules, isAllowedKey, isGeoHierarchyDataSource, isWidgetValueEmpty, normalizeNumericDefault, normalizeOptionRules, owtFieldInputClass, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, replaceValues, resetAll, resetWidget, resolveWidgetIdValue, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, themeToCSSVariables, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, validateDocsWidget, validateNumericValue, validateWidget, widgetRegistry };
889
+ export type { ApiAdapter, ApiDataSource$1 as ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, BuilderNotifyType$1 as BuilderNotifyType, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, DocsWidgetDocumentConfig, GeoHierarchyDataPath, GeoHierarchyDataSource, GeoHierarchyLayout, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetConditionState, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetOptionRule, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetType, WidgetValidation, WidgetValue };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC5E,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE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