@openg2p/registry-widgets 1.1.0-dev.4 → 1.1.0-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.
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/index.esm.js +106 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +106 -23
- package/dist/index.js.map +1 -1
- package/dist/utils/buildSectionChanges.d.ts.map +1 -1
- package/dist/utils/extractTableRecordsFromSnapshot.d.ts +11 -0
- package/dist/utils/extractTableRecordsFromSnapshot.d.ts.map +1 -0
- package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildSectionChanges.d.ts","sourceRoot":"","sources":["../../src/utils/buildSectionChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"buildSectionChanges.d.ts","sourceRoot":"","sources":["../../src/utils/buildSectionChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,cAAc,CAuEhB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseWidgetConfig } from '../types';
|
|
2
|
+
/** Table-style widgets that bind to an array path in the store / schema. */
|
|
3
|
+
export declare function isTableLikeWidget(widget: BaseWidgetConfig): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Resolve `records` for section save payloads.
|
|
6
|
+
* - Back-compat: path ending in `.records` (e.g. `regId.records`)
|
|
7
|
+
* - Else: first array snapshot at a string `widget-data-path` on a table-like widget
|
|
8
|
+
* (e.g. `household.members` for dialog-table)
|
|
9
|
+
*/
|
|
10
|
+
export declare function extractTableRecordsFromSnapshot(snapshot: Record<string, unknown>, sectionWidgets: BaseWidgetConfig[]): unknown[];
|
|
11
|
+
//# sourceMappingURL=extractTableRecordsFromSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractTableRecordsFromSnapshot.d.ts","sourceRoot":"","sources":["../../src/utils/extractTableRecordsFromSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAWnE;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,cAAc,EAAE,gBAAgB,EAAE,GACjC,OAAO,EAAE,CA6BX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DialogTableWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DialogTableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/DialogTableWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO5C,UAAU,sBAAsB;IAC9B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAeD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,sBAAsB,4CAybnE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openg2p/registry-widgets",
|
|
3
|
-
"version": "1.1.0-dev.
|
|
3
|
+
"version": "1.1.0-dev.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Complete React widget library with generic form widgets, data binding, validation, and conditional logic",
|
|
6
6
|
"main": "dist/index.js",
|