@openg2p/registry-widgets 1.1.6-dev.3 → 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 (55) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/index.d.ts +1 -3
  3. package/dist/assets/index.d.ts.map +1 -1
  4. package/dist/components/SectionBuilder/schemas.d.ts +5 -5
  5. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
  6. package/dist/components/SectionRenderer/SectionRenderer.d.ts.map +1 -1
  7. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts +1 -7
  8. package/dist/components/SectionRenderer/components/RegistryViewLayout.d.ts.map +1 -1
  9. package/dist/components/SectionRenderer/components/SectionStyles.d.ts.map +1 -1
  10. package/dist/components/SectionRenderer/components/index.d.ts +0 -1
  11. package/dist/components/SectionRenderer/components/index.d.ts.map +1 -1
  12. package/dist/components/SectionRenderer/hooks/index.d.ts +0 -1
  13. package/dist/components/SectionRenderer/hooks/index.d.ts.map +1 -1
  14. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts +2 -2
  15. package/dist/components/SectionRenderer/hooks/useSectionActions.d.ts.map +1 -1
  16. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts +1 -2
  17. package/dist/components/SectionRenderer/hooks/useSectionDirty.d.ts.map +1 -1
  18. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts +4 -0
  19. package/dist/components/SectionRenderer/utils/diffSectionChangeRecords.d.ts.map +1 -0
  20. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts +12 -1
  21. package/dist/components/SectionRenderer/utils/executeSectionSave.d.ts.map +1 -1
  22. package/dist/components/SectionRenderer/utils/index.d.ts +1 -0
  23. package/dist/components/SectionRenderer/utils/index.d.ts.map +1 -1
  24. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts +5 -0
  25. package/dist/components/SectionRenderer/utils/revertSectionValues.d.ts.map +1 -1
  26. package/dist/components/WidgetProvider.d.ts +3 -1
  27. package/dist/components/WidgetProvider.d.ts.map +1 -1
  28. package/dist/hooks/useBaseWidget.d.ts.map +1 -1
  29. package/dist/hooks/useGeoHierarchy.d.ts.map +1 -1
  30. package/dist/index.d.ts +22 -3
  31. package/dist/index.esm.js +1075 -308
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/index.js +1079 -307
  34. package/dist/index.js.map +1 -1
  35. package/dist/registry/defaultWidgets.d.ts.map +1 -1
  36. package/dist/store/widgetSlice.d.ts +1 -1
  37. package/dist/store/widgetSlice.d.ts.map +1 -1
  38. package/dist/utils/geoHierarchy.d.ts +2 -0
  39. package/dist/utils/geoHierarchy.d.ts.map +1 -1
  40. package/dist/utils/pathUtils.d.ts +4 -1
  41. package/dist/utils/pathUtils.d.ts.map +1 -1
  42. package/dist/utils/sectionRevert.d.ts.map +1 -1
  43. package/dist/utils/sectionValidate.d.ts.map +1 -1
  44. package/dist/utils/validation.d.ts +3 -1
  45. package/dist/utils/validation.d.ts.map +1 -1
  46. package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
  47. package/dist/widgets/DocsWidget.d.ts.map +1 -1
  48. package/dist/widgets/GeoHierarchyWidget.d.ts.map +1 -1
  49. package/dist/widgets/ParentLookupWidget.d.ts +12 -0
  50. package/dist/widgets/ParentLookupWidget.d.ts.map +1 -0
  51. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  52. package/dist/widgets/TableWidget.d.ts.map +1 -1
  53. package/dist/widgets/index.d.ts +1 -0
  54. package/dist/widgets/index.d.ts.map +1 -1
  55. package/package.json +1 -1
package/README.md CHANGED
@@ -61,7 +61,7 @@ Input: `text`, `textarea`, `number`, `boolean`, `date`, `datetime`, `select`, `r
61
61
 
62
62
  Collections: `table`, `dialog-table`.
63
63
 
64
- Special: `profile`, `header-section`, `scores-display`, `id-authentication`, `register-lookup`.
64
+ Special: `profile`, `header-section`, `scores-display`, `id-authentication`, `register-lookup`, `parent-lookup`.
65
65
 
66
66
  Custom widgets can be registered via `widgetRegistry`.
67
67
 
@@ -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,CA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;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"}
@@ -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", "table", "phone", "display", "profile", "geo-hierarchy"];
5
+ export declare const WIDGET_TYPES: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
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", "table", "phone", "display", "profile", "geo-hierarchy"];
50
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
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", "table", "phone", "display", "profile", "geo-hierarchy"];
581
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
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", "table", "phone", "display", "profile", "geo-hierarchy"];
1175
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
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", "table", "phone", "display", "profile", "geo-hierarchy"];
1706
+ enum: readonly ["text", "textarea", "number", "boolean", "date", "datetime", "select", "radio", "checkbox", "file", "table", "phone", "display", "profile", "geo-hierarchy", "register-lookup", "parent-lookup"];
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzB,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,GAAG,CAWhF"}
@@ -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,MA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}
@@ -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"}
@@ -6,6 +6,7 @@ export interface WidgetProviderProps {
6
6
  store?: WidgetStore;
7
7
  dataSourceRequestHandler?: DataSourceRequestHandler;
8
8
  schemaData?: Record<string, any>;
9
+ hostContext?: Record<string, string | undefined>;
9
10
  t?: (key: string, options?: any) => string;
10
11
  theme?: WidgetTheme;
11
12
  children: ReactNode;
@@ -13,7 +14,8 @@ export interface WidgetProviderProps {
13
14
  export declare const useWidgetContext: () => {
14
15
  dataSourceRequestHandler?: DataSourceRequestHandler;
15
16
  schemaData?: Record<string, any>;
17
+ hostContext?: Record<string, string | undefined>;
16
18
  t?: (key: string, options?: any) => string;
17
19
  };
18
- export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, t, theme, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, hostContext, t, theme, children, }: WidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
19
21
  //# sourceMappingURL=WidgetProvider.d.ts.map
@@ -1 +1 @@
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,EAAqC,MAAM,UAAU,CAAC;AAG1E,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,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;AAYD,eAAO,MAAM,gBAAgB;+BATA,wBAAwB;iBACtC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;QAC5B,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM;CAS3C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,sEAO5B,mBAAmB,4CAmDrB,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,EAAqC,MAAM,UAAU,CAAC;AAG1E,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,4CAoDrB,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;;uBA4Rd,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[];
@@ -463,6 +464,7 @@ interface WidgetProviderProps {
463
464
  store?: WidgetStore;
464
465
  dataSourceRequestHandler?: DataSourceRequestHandler;
465
466
  schemaData?: Record<string, any>;
467
+ hostContext?: Record<string, string | undefined>;
466
468
  t?: (key: string, options?: any) => string;
467
469
  theme?: WidgetTheme;
468
470
  children: ReactNode;
@@ -470,9 +472,10 @@ interface WidgetProviderProps {
470
472
  declare const useWidgetContext: () => {
471
473
  dataSourceRequestHandler?: DataSourceRequestHandler;
472
474
  schemaData?: Record<string, any>;
475
+ hostContext?: Record<string, string | undefined>;
473
476
  t?: (key: string, options?: any) => string;
474
477
  };
475
- declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, t, theme, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
478
+ declare const WidgetProvider: ({ store, dataSourceRequestHandler, schemaData, hostContext, t, theme, children, }: WidgetProviderProps) => react_jsx_runtime.JSX.Element;
476
479
 
477
480
  interface PanelRendererProps {
478
481
  panel: PanelConfig;
@@ -732,6 +735,17 @@ declare const RegisterLookupWidget: ({ config }: {
732
735
  config: BaseWidgetConfig;
733
736
  }) => react_jsx_runtime.JSX.Element;
734
737
 
738
+ declare const ParentLookupWidget: ({ config, value: valueProp, error: errorProp, touched: touchedProp, isEnabled: isEnabledProp, isRequired: isRequiredProp, onChange: onChangeProp, onBlur: onBlurProp, }: {
739
+ config: BaseWidgetConfig;
740
+ value?: any;
741
+ error?: string[];
742
+ touched?: boolean;
743
+ isEnabled?: boolean;
744
+ isRequired?: boolean;
745
+ onChange?: (value: any, validate?: boolean) => void;
746
+ onBlur?: () => void;
747
+ }) => react_jsx_runtime.JSX.Element;
748
+
735
749
  interface MultiSelectWidgetProps {
736
750
  config: BaseWidgetConfig;
737
751
  }
@@ -757,6 +771,8 @@ declare const getValueByPath: (obj: any, path: string) => any;
757
771
  * Safely creates nested objects as needed
758
772
  */
759
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;
760
776
  /**
761
777
  * Parse widget data path (can be string or object)
762
778
  */
@@ -764,15 +780,18 @@ declare const parseDataPath: (dataPath: string | Record<string, string> | undefi
764
780
  declare const resolveWidgetIdValue: (values: Record<string, any>, ref: string) => any;
765
781
  declare const getWidgetValue: (values: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string) => any;
766
782
  /**
767
- * 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.
768
785
  */
769
786
  declare const setWidgetValue: (currentValues: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string, value: any) => Record<string, any>;
770
787
 
788
+ declare const isWidgetValueEmpty: (value: unknown) => boolean;
771
789
  /**
772
790
  * @param skipRequired - Skip required checks for per-section Save/Next navigation;
773
791
  * format and range validation still run.
774
792
  */
775
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[];
776
795
  declare const createZodSchema: (validation: WidgetValidation | undefined, required?: boolean) => z.ZodSchema | null;
777
796
 
778
797
  declare const formatDate: (value: any, format: WidgetFormat | undefined) => string;
@@ -859,5 +878,5 @@ declare const translateWidgetConfig: (widgetConfig: BaseWidgetConfig, translate:
859
878
  declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string, options?: any) => string) => PanelConfig;
860
879
  declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
861
880
 
862
- export { BooleanWidget, CheckboxWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, DocsWidget, FileInputWidget, GeoHierarchyWidget, HeaderSectionWidget, IdAuthenticationWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, 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 };
863
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 };