@openg2p/registry-widgets 1.1.6-dev.4 → 1.1.6-dev.5

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 (44) 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/SectionRenderer/SectionRenderer.d.ts.map +1 -1
  4. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +1 -7
  5. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -1
  6. package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -1
  7. package/dist/components/SectionRenderer/components/index.d.ts +0 -1
  8. package/dist/components/SectionRenderer/components/index.d.ts.map +1 -1
  9. package/dist/components/SectionRenderer/hooks/index.d.ts +0 -1
  10. package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -1
  11. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +2 -2
  12. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -1
  13. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +1 -2
  14. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -1
  15. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts +4 -0
  16. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts.map +1 -0
  17. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +12 -1
  18. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -1
  19. package/dist/components/SectionRenderer/utils/index.d.ts +1 -0
  20. package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -1
  21. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +5 -0
  22. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -1
  23. package/dist/hooks/useBaseWidget.d.ts.map +1 -1
  24. package/dist/hooks/useGeoHierarchy.d.ts.map +1 -1
  25. package/dist/index.d.ts +8 -2
  26. package/dist/index.esm.js +575 -266
  27. package/dist/index.esm.js.map +1 -1
  28. package/dist/index.js +578 -265
  29. package/dist/index.js.map +1 -1
  30. package/dist/store/widgetSlice.d.ts +1 -1
  31. package/dist/store/widgetSlice.d.ts.map +1 -1
  32. package/dist/utils/geoHierarchy.d.ts +2 -0
  33. package/dist/utils/geoHierarchy.d.ts.map +1 -1
  34. package/dist/utils/pathUtils.d.ts +4 -1
  35. package/dist/utils/pathUtils.d.ts.map +1 -1
  36. package/dist/utils/sectionRevert.d.ts.map +1 -1
  37. package/dist/utils/sectionValidate.d.ts.map +1 -1
  38. package/dist/utils/validation.d.ts +3 -1
  39. package/dist/utils/validation.d.ts.map +1 -1
  40. package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
  41. package/dist/widgets/DocsWidget.d.ts.map +1 -1
  42. package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -1
  43. package/dist/widgets/TableWidget.d.ts.map +1 -1
  44. package/package.json +1 -1
@@ -6,8 +6,6 @@ import uploadIcon from './upload_icon.png';
6
6
  import closeSign from './close_sign.png';
7
7
  import dummyDoc from './dummy_doc.png';
8
8
  import downArrowIcon from './down_arrow.png';
9
- import personIcon from './person.png';
10
- import calendarIcon from './calendar.png';
11
9
  import rightArrowIcon from './right_arrow.png';
12
10
  import arrowUpIcon from './arrow_up.png';
13
11
  import arrowDownIcon from './arrow_down.png';
@@ -19,5 +17,5 @@ import maximizeIcon from './maximize_icon.png';
19
17
  import minimizeIcon from './minimize_icon.png';
20
18
  import attachmentIcon from './attached_doc.png';
21
19
  import remove from './remove.png';
22
- export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, personIcon, calendarIcon, rightArrowIcon, arrowUpIcon, arrowDownIcon, arrowLeftIcon, arrowRightIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, searchIcon, closeIcon, remove, attachmentIcon, };
20
+ export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, rightArrowIcon, arrowUpIcon, arrowDownIcon, arrowLeftIcon, arrowRightIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, searchIcon, closeIcon, remove, attachmentIcon, };
23
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACZ,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EACH,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,GACjB,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"SectionRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/SectionRenderer/SectionRenderer.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAmB/C,eAAO,MAAM,eAAe,GAAI,6YAuB7B,oBAAoB,4CAgNtB,CAAC"}
@@ -12,15 +12,9 @@ export interface RegistryViewLayoutProps {
12
12
  onValueChange?: UseBaseWidgetOptions['onValueChange'];
13
13
  changeRequestType?: 'new' | 'old';
14
14
  showChangeRequestLabel?: boolean;
15
- crViewData: {
16
- createdBy?: unknown;
17
- createdDate?: unknown;
18
- approvedBy?: unknown;
19
- approvedDate?: unknown;
20
- } | null;
21
15
  effectiveHideEditButton: boolean;
22
16
  isEditMode: boolean;
23
17
  onEdit: () => void;
24
18
  }
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;
19
+ export declare const RegistryViewLayout: ({ mode, section, gridId, editableSection, dataSourceRequestHandler, schemaData, onValueChange, changeRequestType, showChangeRequestLabel, effectiveHideEditButton, isEditMode, onEdit, }: RegistryViewLayoutProps) => import("react/jsx-runtime").JSX.Element;
26
20
  //# sourceMappingURL=RegistryViewLayout.d.ts.map
@@ -1 +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"}
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;AAMtD,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,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,GAAI,0LAahC,uBAAuB,4CAmGzB,CAAC"}
@@ -1 +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"}
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,4CAwLpB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export { PanelGrid } from './PanelGrid';
2
2
  export { SupportingDocuments } from './SupportingDocuments';
3
3
  export { SectionEditControls } from './SectionEditControls';
4
- export { CRViewFooter } from './CRViewFooter';
5
4
  export { SectionStyles } from './SectionStyles';
6
5
  export { EditSectionPortal } from './EditSectionPortal';
7
6
  export { IntakeFormLayout } from './IntakeFormLayout';
@@ -1 +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"}
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,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"}
@@ -1,4 +1,3 @@
1
- export { useCrViewData } from './useCrViewData';
2
1
  export { useIntakeFormAccordion } from './useIntakeFormAccordion';
3
2
  export { useSectionEditPortal } from './useSectionEditPortal';
4
3
  export { useSectionDirty } from './useSectionDirty';
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/index.ts"],"names":[],"mappings":"AAAA,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"}
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  import { SectionConfig } from '../../../types';
3
3
  import { SectionEditSnapshot } from '../../../utils/sectionRevert';
4
4
  import { SectionMode } from '../../SectionsContainer';
@@ -19,7 +19,7 @@ export declare const useSectionActions: ({ section, originalSectionId, sectionId
19
19
  onSectionDirtyChange?: (sectionId: string, isDirty: boolean) => void;
20
20
  onSectionSaveSuccess?: (index: number) => void;
21
21
  sectionIndex?: number;
22
- editEntrySnapshotRef: MutableRefObject<SectionEditSnapshot | null>;
22
+ editEntrySnapshotRef: RefObject<SectionEditSnapshot | null>;
23
23
  enterEditMode: () => void;
24
24
  exitEditMode: () => void;
25
25
  captureEditEntrySnapshot: () => void;
@@ -1 +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"}
1
+ {"version":3,"file":"useSectionActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/hooks/useSectionActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,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,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAC5D,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;;;;;CA4IA,CAAC"}
@@ -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,4 @@
1
+ export declare function diffSectionChangeRecords(baselineRecords: unknown[], currentRecords: unknown[], { isTable }: {
2
+ isTable: boolean;
3
+ }): unknown[];
4
+ //# 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":"AAoHA,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,OAAO,EAAE,EAC1B,cAAc,EAAE,OAAO,EAAE,EACzB,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAChC,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,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;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,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;AAwGD,eAAO,MAAM,kBAAkB,GAAU,qIAUtC,wBAAwB,KAAG,OAAO,CAAC,wBAAwB,CAwD7D,CAAC"}
1
+ {"version":3,"file":"executeSectionSave.d.ts","sourceRoot":"","sources":["../../../../src/components/SectionRenderer/utils/executeSectionSave.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK1C,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;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;AAwGD,eAAO,MAAM,kBAAkB,GAAU,sKAYtC,wBAAwB,KAAG,OAAO,CAAC,wBAAwB,CA0E7D,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":"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;;;;;;;;;;yBAoK5C,GAAG,aAAY,OAAO;;uBAqSd,MAAM,EAAE;;;;;;;0BA1LpB,MAAM;;;CA+LhB,CAAC"}
@@ -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,EAQf,gBAAgB,EAUjB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AA+BD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB;;;;;;;;;;;;;;;oCA6Y3C,MAAM,aAAa,MAAM,GAAG,SAAS;iCAuF3B,MAAM;;;;;;;;;;;;;;;;;;;;;;;EAGtC"}
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[];
@@ -770,6 +771,8 @@ declare const getValueByPath: (obj: any, path: string) => any;
770
771
  * Safely creates nested objects as needed
771
772
  */
772
773
  declare const setValueByPath: (obj: any, path: string, value: any) => any;
774
+ /** Remove a nested path (used when reverting to empty schema data). */
775
+ declare const deleteValueByPath: (obj: any, path: string) => any;
773
776
  /**
774
777
  * Parse widget data path (can be string or object)
775
778
  */
@@ -777,15 +780,18 @@ declare const parseDataPath: (dataPath: string | Record<string, string> | undefi
777
780
  declare const resolveWidgetIdValue: (values: Record<string, any>, ref: string) => any;
778
781
  declare const getWidgetValue: (values: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string) => any;
779
782
  /**
780
- * Set value in widget state using data path
783
+ * Set value in widget state using data path.
784
+ * Pass `undefined` to clear the path(s) and widgetId entry.
781
785
  */
782
786
  declare const setWidgetValue: (currentValues: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string, value: any) => Record<string, any>;
783
787
 
788
+ declare const isWidgetValueEmpty: (value: unknown) => boolean;
784
789
  /**
785
790
  * @param skipRequired - Skip required checks for per-section Save/Next navigation;
786
791
  * format and range validation still run.
787
792
  */
788
793
  declare const validateWidget: (value: any, validation: WidgetValidation | undefined, required?: boolean, skipRequired?: boolean) => string[];
794
+ declare const validateDocsWidget: (value: unknown, documents: DocsWidgetDocumentConfig[] | undefined, skipRequired?: boolean) => string[];
789
795
  declare const createZodSchema: (validation: WidgetValidation | undefined, required?: boolean) => z.ZodSchema | null;
790
796
 
791
797
  declare const formatDate: (value: any, format: WidgetFormat | undefined) => string;
@@ -872,5 +878,5 @@ declare const translateWidgetConfig: (widgetConfig: BaseWidgetConfig, translate:
872
878
  declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string, options?: any) => string) => PanelConfig;
873
879
  declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
874
880
 
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 };
881
+ 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, deleteValueByPath, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, hasVisibilityRules, isAllowedKey, isGeoHierarchyDataSource, isWidgetValueEmpty, normalizeNumericDefault, normalizeOptionRules, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, replaceValues, resetAll, resetWidget, resolveTheme, resolveWidgetIdValue, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, validateDocsWidget, validateNumericValue, validateWidget, widgetRegistry };
876
882
  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 };