@openg2p/registry-widgets 1.1.2-dev.0 → 1.1.2-dev.10
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/assets/index.d.ts +3 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/components/SectionBuilder/schemas.d.ts +204 -0
- package/dist/components/SectionBuilder/schemas.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/WidgetFieldLabel.d.ts +11 -0
- package/dist/components/WidgetFieldLabel.d.ts.map +1 -0
- package/dist/hooks/useBaseWidget.d.ts +2 -0
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/hooks/useGeoWidgetCascade.d.ts.map +1 -1
- package/dist/index.d.ts +117 -28
- package/dist/index.esm.js +2203 -883
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2228 -881
- package/dist/index.js.map +1 -1
- package/dist/registry/defaultWidgets.d.ts.map +1 -1
- package/dist/types/index.d.ts +11 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/conditions.d.ts +17 -11
- package/dist/utils/conditions.d.ts.map +1 -1
- package/dist/utils/dataSource.d.ts +6 -0
- package/dist/utils/dataSource.d.ts.map +1 -1
- package/dist/utils/geoHierarchy.d.ts +65 -0
- package/dist/utils/geoHierarchy.d.ts.map +1 -1
- package/dist/utils/pathUtils.d.ts +5 -0
- package/dist/utils/pathUtils.d.ts.map +1 -1
- package/dist/utils/schemaNamespace.d.ts.map +1 -1
- package/dist/utils/schemaTranslation.d.ts.map +1 -1
- package/dist/utils/sectionRevert.d.ts +24 -0
- package/dist/utils/sectionRevert.d.ts.map +1 -0
- package/dist/utils/sectionValidate.d.ts.map +1 -1
- package/dist/widgets/ArrayWidget.d.ts.map +1 -1
- package/dist/widgets/BooleanWidget.d.ts.map +1 -1
- package/dist/widgets/CheckboxWidget.d.ts.map +1 -1
- package/dist/widgets/CurrencyInputWidget.d.ts.map +1 -1
- package/dist/widgets/DateInputWidget.d.ts.map +1 -1
- package/dist/widgets/DateTimeInputWidget.d.ts.map +1 -1
- package/dist/widgets/DialogTableWidget.d.ts +0 -13
- package/dist/widgets/DialogTableWidget.d.ts.map +1 -1
- package/dist/widgets/FileInputWidget.d.ts.map +1 -1
- package/dist/widgets/HeaderSectionWidget.d.ts.map +1 -1
- package/dist/widgets/IterableAccordionWidget.d.ts.map +1 -1
- package/dist/widgets/MultiSelectWidget.d.ts +7 -0
- package/dist/widgets/MultiSelectWidget.d.ts.map +1 -0
- package/dist/widgets/NumberInputWidget.d.ts.map +1 -1
- package/dist/widgets/PhoneInputWidget.d.ts.map +1 -1
- package/dist/widgets/RadioWidget.d.ts.map +1 -1
- package/dist/widgets/RegisterLookupWidget.d.ts +5 -0
- package/dist/widgets/RegisterLookupWidget.d.ts.map +1 -0
- package/dist/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/widgets/TableWidget.d.ts.map +1 -1
- package/dist/widgets/TextAreaWidget.d.ts.map +1 -1
- package/dist/widgets/TextInputWidget.d.ts.map +1 -1
- package/dist/widgets/index.d.ts +2 -0
- package/dist/widgets/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/assets/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import dummyProfile from './dummy_profile.png';
|
|
2
|
+
import searchIcon from './search_icon.png';
|
|
3
|
+
import closeIcon from './close.png';
|
|
2
4
|
import fileIcon from './file_icon.png';
|
|
3
5
|
import uploadIcon from './upload_icon.png';
|
|
4
6
|
import closeSign from './close_sign.png';
|
|
@@ -15,5 +17,5 @@ import resetIcon from './reset_icon.png';
|
|
|
15
17
|
import previewIcon from './preview_icon.png';
|
|
16
18
|
import maximizeIcon from './maximize_icon.png';
|
|
17
19
|
import minimizeIcon from './minimize_icon.png';
|
|
18
|
-
export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, personIcon, calendarIcon, rightArrowIcon, arrowUpIcon, arrowDownIcon, arrowLeftIcon, arrowRightIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, };
|
|
20
|
+
export { dummyProfile, fileIcon, uploadIcon, closeSign, dummyDoc, downArrowIcon, personIcon, calendarIcon, rightArrowIcon, arrowUpIcon, arrowDownIcon, arrowLeftIcon, arrowRightIcon, resetIcon, previewIcon, maximizeIcon, minimizeIcon, searchIcon, closeIcon, };
|
|
19
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,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;AAE/C,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,
|
|
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;AAE/C,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,GACZ,CAAC"}
|
|
@@ -351,6 +351,34 @@ export declare const panelSchema: {
|
|
|
351
351
|
type: "string";
|
|
352
352
|
enum: string[];
|
|
353
353
|
};
|
|
354
|
+
actions: {
|
|
355
|
+
type: "array";
|
|
356
|
+
description: string;
|
|
357
|
+
items: {
|
|
358
|
+
type: "object";
|
|
359
|
+
properties: {
|
|
360
|
+
action: {
|
|
361
|
+
type: "string";
|
|
362
|
+
enum: string[];
|
|
363
|
+
};
|
|
364
|
+
condition: {
|
|
365
|
+
type: "object";
|
|
366
|
+
properties: {
|
|
367
|
+
field: {
|
|
368
|
+
type: "string";
|
|
369
|
+
};
|
|
370
|
+
operator: {
|
|
371
|
+
type: "string";
|
|
372
|
+
enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
|
|
373
|
+
};
|
|
374
|
+
value: {};
|
|
375
|
+
};
|
|
376
|
+
required: string[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
required: string[];
|
|
380
|
+
};
|
|
381
|
+
};
|
|
354
382
|
condition: {
|
|
355
383
|
type: "object";
|
|
356
384
|
properties: {
|
|
@@ -472,6 +500,29 @@ export declare const panelSchema: {
|
|
|
472
500
|
minimum: number;
|
|
473
501
|
description: string;
|
|
474
502
|
};
|
|
503
|
+
'widget-lookup-config': {
|
|
504
|
+
type: "object";
|
|
505
|
+
properties: {
|
|
506
|
+
search_placeholder: {
|
|
507
|
+
type: "string";
|
|
508
|
+
description: string;
|
|
509
|
+
};
|
|
510
|
+
page_size: {
|
|
511
|
+
type: "number";
|
|
512
|
+
minimum: number;
|
|
513
|
+
description: string;
|
|
514
|
+
};
|
|
515
|
+
action_label: {
|
|
516
|
+
type: "string";
|
|
517
|
+
description: string;
|
|
518
|
+
};
|
|
519
|
+
select_record_label: {
|
|
520
|
+
type: "string";
|
|
521
|
+
description: string;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
description: string;
|
|
525
|
+
};
|
|
475
526
|
'widget-item': {
|
|
476
527
|
type: "object";
|
|
477
528
|
description: string;
|
|
@@ -827,6 +878,34 @@ export declare const panelSchema: {
|
|
|
827
878
|
type: "string";
|
|
828
879
|
enum: string[];
|
|
829
880
|
};
|
|
881
|
+
actions: {
|
|
882
|
+
type: "array";
|
|
883
|
+
description: string;
|
|
884
|
+
items: {
|
|
885
|
+
type: "object";
|
|
886
|
+
properties: {
|
|
887
|
+
action: {
|
|
888
|
+
type: "string";
|
|
889
|
+
enum: string[];
|
|
890
|
+
};
|
|
891
|
+
condition: {
|
|
892
|
+
type: "object";
|
|
893
|
+
properties: {
|
|
894
|
+
field: {
|
|
895
|
+
type: "string";
|
|
896
|
+
};
|
|
897
|
+
operator: {
|
|
898
|
+
type: "string";
|
|
899
|
+
enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
|
|
900
|
+
};
|
|
901
|
+
value: {};
|
|
902
|
+
};
|
|
903
|
+
required: string[];
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
required: string[];
|
|
907
|
+
};
|
|
908
|
+
};
|
|
830
909
|
condition: {
|
|
831
910
|
type: "object";
|
|
832
911
|
properties: {
|
|
@@ -948,6 +1027,29 @@ export declare const panelSchema: {
|
|
|
948
1027
|
minimum: number;
|
|
949
1028
|
description: string;
|
|
950
1029
|
};
|
|
1030
|
+
'widget-lookup-config': {
|
|
1031
|
+
type: "object";
|
|
1032
|
+
properties: {
|
|
1033
|
+
search_placeholder: {
|
|
1034
|
+
type: "string";
|
|
1035
|
+
description: string;
|
|
1036
|
+
};
|
|
1037
|
+
page_size: {
|
|
1038
|
+
type: "number";
|
|
1039
|
+
minimum: number;
|
|
1040
|
+
description: string;
|
|
1041
|
+
};
|
|
1042
|
+
action_label: {
|
|
1043
|
+
type: "string";
|
|
1044
|
+
description: string;
|
|
1045
|
+
};
|
|
1046
|
+
select_record_label: {
|
|
1047
|
+
type: "string";
|
|
1048
|
+
description: string;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
description: string;
|
|
1052
|
+
};
|
|
951
1053
|
'widget-item': {
|
|
952
1054
|
type: "object";
|
|
953
1055
|
description: string;
|
|
@@ -1366,6 +1468,34 @@ export declare const sectionSchema: {
|
|
|
1366
1468
|
type: "string";
|
|
1367
1469
|
enum: string[];
|
|
1368
1470
|
};
|
|
1471
|
+
actions: {
|
|
1472
|
+
type: "array";
|
|
1473
|
+
description: string;
|
|
1474
|
+
items: {
|
|
1475
|
+
type: "object";
|
|
1476
|
+
properties: {
|
|
1477
|
+
action: {
|
|
1478
|
+
type: "string";
|
|
1479
|
+
enum: string[];
|
|
1480
|
+
};
|
|
1481
|
+
condition: {
|
|
1482
|
+
type: "object";
|
|
1483
|
+
properties: {
|
|
1484
|
+
field: {
|
|
1485
|
+
type: "string";
|
|
1486
|
+
};
|
|
1487
|
+
operator: {
|
|
1488
|
+
type: "string";
|
|
1489
|
+
enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
|
|
1490
|
+
};
|
|
1491
|
+
value: {};
|
|
1492
|
+
};
|
|
1493
|
+
required: string[];
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
required: string[];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1369
1499
|
condition: {
|
|
1370
1500
|
type: "object";
|
|
1371
1501
|
properties: {
|
|
@@ -1487,6 +1617,29 @@ export declare const sectionSchema: {
|
|
|
1487
1617
|
minimum: number;
|
|
1488
1618
|
description: string;
|
|
1489
1619
|
};
|
|
1620
|
+
'widget-lookup-config': {
|
|
1621
|
+
type: "object";
|
|
1622
|
+
properties: {
|
|
1623
|
+
search_placeholder: {
|
|
1624
|
+
type: "string";
|
|
1625
|
+
description: string;
|
|
1626
|
+
};
|
|
1627
|
+
page_size: {
|
|
1628
|
+
type: "number";
|
|
1629
|
+
minimum: number;
|
|
1630
|
+
description: string;
|
|
1631
|
+
};
|
|
1632
|
+
action_label: {
|
|
1633
|
+
type: "string";
|
|
1634
|
+
description: string;
|
|
1635
|
+
};
|
|
1636
|
+
select_record_label: {
|
|
1637
|
+
type: "string";
|
|
1638
|
+
description: string;
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
description: string;
|
|
1642
|
+
};
|
|
1490
1643
|
'widget-item': {
|
|
1491
1644
|
type: "object";
|
|
1492
1645
|
description: string;
|
|
@@ -1842,6 +1995,34 @@ export declare const sectionSchema: {
|
|
|
1842
1995
|
type: "string";
|
|
1843
1996
|
enum: string[];
|
|
1844
1997
|
};
|
|
1998
|
+
actions: {
|
|
1999
|
+
type: "array";
|
|
2000
|
+
description: string;
|
|
2001
|
+
items: {
|
|
2002
|
+
type: "object";
|
|
2003
|
+
properties: {
|
|
2004
|
+
action: {
|
|
2005
|
+
type: "string";
|
|
2006
|
+
enum: string[];
|
|
2007
|
+
};
|
|
2008
|
+
condition: {
|
|
2009
|
+
type: "object";
|
|
2010
|
+
properties: {
|
|
2011
|
+
field: {
|
|
2012
|
+
type: "string";
|
|
2013
|
+
};
|
|
2014
|
+
operator: {
|
|
2015
|
+
type: "string";
|
|
2016
|
+
enum: readonly ["equals", "notEquals", "notEmpty", "empty", "greaterThan", "lessThan", "contains", "notContains"];
|
|
2017
|
+
};
|
|
2018
|
+
value: {};
|
|
2019
|
+
};
|
|
2020
|
+
required: string[];
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
required: string[];
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
1845
2026
|
condition: {
|
|
1846
2027
|
type: "object";
|
|
1847
2028
|
properties: {
|
|
@@ -1963,6 +2144,29 @@ export declare const sectionSchema: {
|
|
|
1963
2144
|
minimum: number;
|
|
1964
2145
|
description: string;
|
|
1965
2146
|
};
|
|
2147
|
+
'widget-lookup-config': {
|
|
2148
|
+
type: "object";
|
|
2149
|
+
properties: {
|
|
2150
|
+
search_placeholder: {
|
|
2151
|
+
type: "string";
|
|
2152
|
+
description: string;
|
|
2153
|
+
};
|
|
2154
|
+
page_size: {
|
|
2155
|
+
type: "number";
|
|
2156
|
+
minimum: number;
|
|
2157
|
+
description: string;
|
|
2158
|
+
};
|
|
2159
|
+
action_label: {
|
|
2160
|
+
type: "string";
|
|
2161
|
+
description: string;
|
|
2162
|
+
};
|
|
2163
|
+
select_record_label: {
|
|
2164
|
+
type: "string";
|
|
2165
|
+
description: string;
|
|
2166
|
+
};
|
|
2167
|
+
};
|
|
2168
|
+
description: string;
|
|
2169
|
+
};
|
|
1966
2170
|
'widget-item': {
|
|
1967
2171
|
type: "object";
|
|
1968
2172
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,yNAmBf,CAAC;AAEX,eAAO,MAAM,YAAY,qCAAsC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,6GAStB,CAAC;AAEX,eAAO,MAAM,iBAAiB,sCAAuC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,oCAAqC,CAAC;AAEnE,eAAO,MAAM,eAAe,wFAOlB,CAAC;AAEX,eAAO,MAAM,aAAa,2DAA4D,CAAC;AAEvF,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,eAAO,MAAM,uBAAuB,uDAAwD,CAAC;AAE7F,eAAO,MAAM,qBAAqB,0CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/components/SectionBuilder/schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,yNAmBf,CAAC;AAEX,eAAO,MAAM,YAAY,qCAAsC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,6GAStB,CAAC;AAEX,eAAO,MAAM,iBAAiB,sCAAuC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,oCAAqC,CAAC;AAEnE,eAAO,MAAM,eAAe,wFAOlB,CAAC;AAEX,eAAO,MAAM,aAAa,2DAA4D,CAAC;AAEvF,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,eAAO,MAAM,uBAAuB,uDAAwD,CAAC;AAE7F,eAAO,MAAM,q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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.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;
|
|
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;IAClB,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,aAAa,CAAC;IACvB,wBAAwB,CAAC,EAAE,oBAAoB,CAAC,0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AM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,iGAAiG;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAGD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,saAyB7B,oBAAoB,4CAqlDtB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface WidgetFieldLabelProps {
|
|
2
|
+
label: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Field label: long text truncates with ellipsis; required asterisk always stays visible.
|
|
9
|
+
*/
|
|
10
|
+
export declare const WidgetFieldLabel: ({ label, required, className, title, }: WidgetFieldLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=WidgetFieldLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetFieldLabel.d.ts","sourceRoot":"","sources":["../../src/components/WidgetFieldLabel.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,wCAK9B,qBAAqB,4CAevB,CAAC"}
|
|
@@ -8,12 +8,14 @@ export interface UseBaseWidgetOptions {
|
|
|
8
8
|
export declare const useBaseWidget: (options: UseBaseWidgetOptions) => {
|
|
9
9
|
widgetId: string;
|
|
10
10
|
value: any;
|
|
11
|
+
geoDisplayLabel: string | undefined;
|
|
11
12
|
formattedValue: any;
|
|
12
13
|
error: string[];
|
|
13
14
|
touched: boolean;
|
|
14
15
|
loading: boolean;
|
|
15
16
|
isVisible: boolean;
|
|
16
17
|
isEnabled: boolean;
|
|
18
|
+
isRequired: boolean;
|
|
17
19
|
onChange: (newValue: any, validate?: boolean) => void;
|
|
18
20
|
onBlur: () => void;
|
|
19
21
|
setError: (errors: string[]) => {
|
|
@@ -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;
|
|
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;AAwBtE,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;AAMD,eAAO,MAAM,aAAa,GAAI,SAAS,oBAAoB;;;;;;;;;;;yBAyO5C,GAAG,aAAY,OAAO;;uBAwWd,MAAM,EAAE;;;;;;;0BAhPpB,MAAM;;;CAqPhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGeoWidgetCascade.d.ts","sourceRoot":"","sources":["../../src/hooks/useGeoWidgetCascade.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,
|
|
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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ options?: {
|
|
|
40
40
|
/**
|
|
41
41
|
* API data source configuration
|
|
42
42
|
*/
|
|
43
|
-
interface ApiDataSource {
|
|
43
|
+
interface ApiDataSource$1 {
|
|
44
44
|
type: 'api';
|
|
45
45
|
service: string;
|
|
46
46
|
endpoint: string;
|
|
@@ -61,7 +61,7 @@ interface SchemaDataSource {
|
|
|
61
61
|
valueKey?: string;
|
|
62
62
|
labelKey?: string;
|
|
63
63
|
}
|
|
64
|
-
type DataSource = StaticDataSource | ApiDataSource | SchemaDataSource;
|
|
64
|
+
type DataSource = StaticDataSource | ApiDataSource$1 | SchemaDataSource;
|
|
65
65
|
/**
|
|
66
66
|
* Allowed character types for text input
|
|
67
67
|
*/
|
|
@@ -167,12 +167,22 @@ interface WidgetCondition {
|
|
|
167
167
|
operator: ConditionOperator;
|
|
168
168
|
value?: any;
|
|
169
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Single conditional action rule (used in widget-data-options.actions list)
|
|
172
|
+
*/
|
|
173
|
+
interface WidgetOptionRule {
|
|
174
|
+
action: 'show' | 'hide' | 'enable' | 'disable' | 'require';
|
|
175
|
+
condition?: WidgetCondition;
|
|
176
|
+
}
|
|
170
177
|
/**
|
|
171
178
|
* Widget options for conditional behavior
|
|
172
179
|
*/
|
|
173
180
|
interface WidgetOptions {
|
|
174
|
-
|
|
181
|
+
/** @deprecated Prefer `actions` for multiple sequential rules */
|
|
182
|
+
action?: 'show' | 'hide' | 'enable' | 'disable' | 'require';
|
|
175
183
|
condition?: WidgetCondition;
|
|
184
|
+
/** Sequential rules: enable/disable/show/hide first, then require */
|
|
185
|
+
actions?: WidgetOptionRule[];
|
|
176
186
|
minDate?: string;
|
|
177
187
|
maxDate?: string;
|
|
178
188
|
minDateField?: string;
|
|
@@ -387,12 +397,14 @@ interface UseBaseWidgetOptions {
|
|
|
387
397
|
declare const useBaseWidget: (options: UseBaseWidgetOptions) => {
|
|
388
398
|
widgetId: string;
|
|
389
399
|
value: any;
|
|
400
|
+
geoDisplayLabel: string | undefined;
|
|
390
401
|
formattedValue: any;
|
|
391
402
|
error: string[];
|
|
392
403
|
touched: boolean;
|
|
393
404
|
loading: boolean;
|
|
394
405
|
isVisible: boolean;
|
|
395
406
|
isEnabled: boolean;
|
|
407
|
+
isRequired: boolean;
|
|
396
408
|
onChange: (newValue: any, validate?: boolean) => void;
|
|
397
409
|
onBlur: () => void;
|
|
398
410
|
setError: (errors: string[]) => {
|
|
@@ -1388,19 +1400,6 @@ interface DialogTableWidgetProps {
|
|
|
1388
1400
|
* Dialog table widget:
|
|
1389
1401
|
* - Table displays a subset of columns (n out of x)
|
|
1390
1402
|
* - Add/Edit happens in a modal dialog that shows ALL columns as a form
|
|
1391
|
-
*
|
|
1392
|
-
* Usage in schema:
|
|
1393
|
-
* {
|
|
1394
|
-
* "widget": "dialog-table",
|
|
1395
|
-
* "widget-type": "table",
|
|
1396
|
-
* "widget-label": "Household Members",
|
|
1397
|
-
* "widget-id": "householdMembers",
|
|
1398
|
-
* "widget-data-path": "household.members",
|
|
1399
|
-
* "widget-data-columns": [ ...all columns... ],
|
|
1400
|
-
* "widget-data-visible-columns": ["firstName", "lastName", "dob"], // optional override; default = by column flag
|
|
1401
|
-
* // Per-column control (recommended): set "column-visible-in-table": false to hide it in the table
|
|
1402
|
-
* "widget-data-operations": { "add": true, "edit": true, "remove": true }
|
|
1403
|
-
* }
|
|
1404
1403
|
*/
|
|
1405
1404
|
declare const DialogTableWidget: ({ config }: DialogTableWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
1406
1405
|
|
|
@@ -1518,6 +1517,15 @@ interface IdAuthenticationWidgetProps {
|
|
|
1518
1517
|
}
|
|
1519
1518
|
declare const IdAuthenticationWidget: ({ config, schemaData: propSchemaData }: IdAuthenticationWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
1520
1519
|
|
|
1520
|
+
declare const RegisterLookupWidget: ({ config }: {
|
|
1521
|
+
config: BaseWidgetConfig;
|
|
1522
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1523
|
+
|
|
1524
|
+
interface MultiSelectWidgetProps {
|
|
1525
|
+
config: BaseWidgetConfig;
|
|
1526
|
+
}
|
|
1527
|
+
declare const MultiSelectWidget: ({ config }: MultiSelectWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
1528
|
+
|
|
1521
1529
|
/**
|
|
1522
1530
|
* Get value from object using dot notation path
|
|
1523
1531
|
* Safely handles nested paths like "person.name" or "address.street.number"
|
|
@@ -1535,6 +1543,11 @@ declare const parseDataPath: (dataPath: string | Record<string, string> | undefi
|
|
|
1535
1543
|
/**
|
|
1536
1544
|
* Get value from widget state using data path
|
|
1537
1545
|
*/
|
|
1546
|
+
/**
|
|
1547
|
+
* Resolve a widget-id reference in Redux values.
|
|
1548
|
+
* Supports namespaced ids (e.g. "rv-section-0__region_code" when ref is "region_code").
|
|
1549
|
+
*/
|
|
1550
|
+
declare const resolveWidgetIdValue: (values: Record<string, any>, ref: string) => any;
|
|
1538
1551
|
declare const getWidgetValue: (values: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string) => any;
|
|
1539
1552
|
/**
|
|
1540
1553
|
* Set value in widget state using data path
|
|
@@ -1576,20 +1589,31 @@ declare const formatValue: (value: any, format: WidgetFormat | undefined, widget
|
|
|
1576
1589
|
*/
|
|
1577
1590
|
declare const evaluateCondition: (condition: WidgetCondition, allValues: Record<string, any>) => boolean;
|
|
1578
1591
|
/**
|
|
1579
|
-
*
|
|
1592
|
+
* Normalize widget-data-options into a sequential list of action rules.
|
|
1593
|
+
* Supports legacy single { action, condition } and new { actions: [...] }.
|
|
1580
1594
|
*/
|
|
1581
|
-
declare const
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1595
|
+
declare const normalizeOptionRules: (options?: WidgetOptions) => WidgetOptionRule[];
|
|
1596
|
+
declare const hasVisibilityRules: (options?: WidgetOptions) => boolean;
|
|
1597
|
+
interface WidgetConditionState {
|
|
1598
|
+
visible: boolean;
|
|
1599
|
+
enabled: boolean;
|
|
1600
|
+
required: boolean;
|
|
1601
|
+
}
|
|
1585
1602
|
/**
|
|
1586
|
-
*
|
|
1603
|
+
* Evaluate widget-data-options rules sequentially.
|
|
1604
|
+
* show/hide and enable/disable only affect visibility and enabled state.
|
|
1605
|
+
* require is independent: required = widget-required OR require-condition-match.
|
|
1587
1606
|
*/
|
|
1588
|
-
declare const
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1607
|
+
declare const evaluateWidgetConditions: (options: WidgetOptions | undefined, allValues: Record<string, any>, baseRequired?: boolean) => WidgetConditionState;
|
|
1608
|
+
declare const shouldShowWidget: (options: WidgetOptions | undefined, allValues: Record<string, any>) => boolean;
|
|
1609
|
+
declare const shouldEnableWidget: (options: WidgetOptions | undefined, allValues: Record<string, any>) => boolean;
|
|
1610
|
+
declare const shouldRequireWidget: (options: WidgetOptions | undefined, allValues: Record<string, any>, baseRequired?: boolean) => boolean;
|
|
1592
1611
|
|
|
1612
|
+
type ApiDataSource = Extract<DataSource, {
|
|
1613
|
+
type: 'api';
|
|
1614
|
+
}>;
|
|
1615
|
+
/** Return cached API options when already fetched (e.g. duplicate table cells). */
|
|
1616
|
+
declare function getCachedApiDataSource(dataSource: ApiDataSource, allValues: Record<string, any>, levelId?: string): any[] | undefined;
|
|
1593
1617
|
/**
|
|
1594
1618
|
* Get static data source options
|
|
1595
1619
|
*/
|
|
@@ -1677,6 +1701,19 @@ interface GeoLevelData {
|
|
|
1677
1701
|
level_value_id: string;
|
|
1678
1702
|
level_value_mnemonic: string;
|
|
1679
1703
|
}
|
|
1704
|
+
interface GeoLevelConfig {
|
|
1705
|
+
level: string;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* Resolve the display value for a geo level widget.
|
|
1709
|
+
* When widgetId is explicitly set in Redux (including cleared undefined/null), do not
|
|
1710
|
+
* fall back to shared hierarchy dataPath — that stale path was keeping grandchildren visible.
|
|
1711
|
+
*/
|
|
1712
|
+
declare function resolveGeoWidgetLevelValue(values: Record<string, any>, widgetId: string, dataPath: string | Record<string, string> | undefined, geoConfig: GeoLevelConfig): any;
|
|
1713
|
+
/**
|
|
1714
|
+
* Write the in-memory geo hierarchy builder state into Redux at the shared dataPath.
|
|
1715
|
+
*/
|
|
1716
|
+
declare function applySharedGeoHierarchyToValues(baseValues: Record<string, any>, groupId: string, dataPath: string | Record<string, string> | undefined, widgetId: string): Record<string, any>;
|
|
1680
1717
|
declare class GeoHierarchyBuilder {
|
|
1681
1718
|
private hierarchies;
|
|
1682
1719
|
/**
|
|
@@ -1719,6 +1756,58 @@ declare class GeoHierarchyBuilder {
|
|
|
1719
1756
|
getLevels(groupId?: string): GeoLevelData[];
|
|
1720
1757
|
}
|
|
1721
1758
|
declare const geoHierarchyBuilder: GeoHierarchyBuilder;
|
|
1759
|
+
/** Sentinel written to Redux when a geo level is cleared by cascade (distinct from "never set"). */
|
|
1760
|
+
declare const GEO_LEVEL_CLEARED: null;
|
|
1761
|
+
interface GeoWidgetRegistration {
|
|
1762
|
+
widgetId: string;
|
|
1763
|
+
parentWidgetId: string | null;
|
|
1764
|
+
level: string;
|
|
1765
|
+
geoConfig: GeoLevelConfig;
|
|
1766
|
+
dataPath: string;
|
|
1767
|
+
groupId: string;
|
|
1768
|
+
}
|
|
1769
|
+
declare function registerGeoWidgetParent(widgetId: string, parentWidgetId: string | null): void;
|
|
1770
|
+
declare function unregisterGeoWidgetParent(widgetId: string): void;
|
|
1771
|
+
declare function registerGeoWidget(widgetId: string, geoConfig: GeoLevelConfig & {
|
|
1772
|
+
parentWidgetId?: string | null;
|
|
1773
|
+
}, dataPath: string): void;
|
|
1774
|
+
declare function unregisterGeoWidget(widgetId: string): void;
|
|
1775
|
+
declare function orderGeoWidgetRegistrations(registrations: GeoWidgetRegistration[]): GeoWidgetRegistration[];
|
|
1776
|
+
/** Resolve display mnemonic from cached dropdown options, then stored hierarchy. */
|
|
1777
|
+
declare function createGeoLevelMnemonicResolver(values: Record<string, any>, dataSources: Record<string, Array<{
|
|
1778
|
+
value: any;
|
|
1779
|
+
label: string;
|
|
1780
|
+
}>>): (registration: GeoWidgetRegistration, valueId: string) => string | undefined;
|
|
1781
|
+
/** Rebuild group hierarchy from widget values in parent→child order; stop at first missing level. */
|
|
1782
|
+
declare function rebuildGeoHierarchyFromRegistrations(groupId: string, values: Record<string, any>, registrations: GeoWidgetRegistration[], resolveMnemonic?: (registration: GeoWidgetRegistration, valueId: string) => string | undefined): boolean;
|
|
1783
|
+
declare function collectGeoWidgetRegistrationsFromWidgets(widgets: Array<{
|
|
1784
|
+
'widget-id': string;
|
|
1785
|
+
'widget-data-path'?: string | Record<string, string>;
|
|
1786
|
+
'widget-geo-config'?: GeoLevelConfig & {
|
|
1787
|
+
parentWidgetId?: string | null;
|
|
1788
|
+
};
|
|
1789
|
+
}>, namespace?: string): GeoWidgetRegistration[];
|
|
1790
|
+
/** Reconcile all geo groups in section values before save. */
|
|
1791
|
+
declare function reconcileGeoHierarchiesInValues(values: Record<string, any>, registrations: GeoWidgetRegistration[], dataSources?: Record<string, Array<{
|
|
1792
|
+
value: any;
|
|
1793
|
+
label: string;
|
|
1794
|
+
}>>): Record<string, any>;
|
|
1795
|
+
declare function getGeoWidgetRegistrationsInGroup(groupId: string): GeoWidgetRegistration[];
|
|
1796
|
+
/** True when changedWidgetId is any upstream geo parent of widgetId (not only immediate parent). */
|
|
1797
|
+
declare function isUpstreamGeoAncestor(changedWidgetId: string, widgetId: string, immediateParentWidgetId: string | null): boolean;
|
|
1798
|
+
/** Group id for geo widgets sharing the same register prefix (e.g. `{registerId}`). */
|
|
1799
|
+
declare function getGeoGroupId(dataPath: string | Record<string, string> | undefined): string;
|
|
1800
|
+
/**
|
|
1801
|
+
* Resolve the human-readable label for a geo level from persisted hierarchy JSON.
|
|
1802
|
+
* Used in readonly mode when API options are not loaded.
|
|
1803
|
+
*/
|
|
1804
|
+
declare function resolveGeoWidgetLevelLabel(values: Record<string, any>, widgetId: string, dataPath: string | Record<string, string> | undefined, geoConfig: GeoLevelConfig): string | undefined;
|
|
1805
|
+
/** All registered geo widgets that are descendants of ancestorWidgetId. */
|
|
1806
|
+
declare function getGeoDescendantWidgetIds(ancestorWidgetId: string): string[];
|
|
1807
|
+
/** Seed in-memory builder from persisted hierarchy JSON (edit-mode rehydration). */
|
|
1808
|
+
declare function seedGeoHierarchyFromValues(values: Record<string, any>, dataPath: string | Record<string, string> | undefined, widgetId: string, groupId: string): void;
|
|
1809
|
+
/** Force-clear builder for a group, then seed from Redux/schema values (e.g. after Cancel). */
|
|
1810
|
+
declare function resetAndSeedGeoHierarchyFromValues(values: Record<string, any>, dataPath: string, widgetId: string, groupId: string): void;
|
|
1722
1811
|
|
|
1723
1812
|
type ResolvedTheme = ReturnType<typeof resolveTheme>;
|
|
1724
1813
|
/**
|
|
@@ -1788,5 +1877,5 @@ declare const translatePanelConfig: (panel: PanelConfig, translate: (key: string
|
|
|
1788
1877
|
*/
|
|
1789
1878
|
declare const translateUISchema: (schema: UISchema, translate: (key: string, options?: any) => string) => UISchema;
|
|
1790
1879
|
|
|
1791
|
-
export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, FileInputWidget, HeaderSectionWidget, IdAuthenticationWidget, IterableAccordionWidget, JSONEditorPanel, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, SimpleTableWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, geoHierarchyBuilder, getApiDataSource, getFormattedNumberLength, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, initI18n, isAllowedKey, normalizeNumericDefault, parseDataPath, parseNumber, registerDefaultWidgets, removeMask, resetAll, resetWidget, resolveTheme, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, useBaseWidget, useGeoWidgetCascade, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, useWidgetTranslation, validateNumericValue, validateWidget, widgetRegistry };
|
|
1792
|
-
export type { ApiAdapter, ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, GeoLevelData, InputMask, NumericType, PanelConfig, RoundingMode, SchemaDataSource, SectionBuilderProps, SectionChanges, SectionConfig, SectionMode, SectionRendererProps, SectionsContainerProps, SectionsFormHandle, StaticDataSource, SupportingDocumentConfig, TextAlign, TreeNode, TreeNodeType, UISchema, UseBaseWidgetOptions, ValidationType, WidgetCascadeConfig, WidgetCondition, WidgetContextValue, WidgetDataPath, WidgetDispatch, WidgetEvent, WidgetEventType, WidgetFormat, WidgetGeoConfig, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetValidation, WidgetValue };
|
|
1880
|
+
export { ArrayWidget, BooleanWidget, CheckboxWidget, CurrencyInputWidget, DateInputWidget, DateTimeInputWidget, DialogTableWidget, DisplayWidget, FileInputWidget, GEO_LEVEL_CLEARED, HeaderSectionWidget, IdAuthenticationWidget, IterableAccordionWidget, JSONEditorPanel, MultiSelectWidget, NumberInputWidget, PanelRenderer, PhoneInputWidget, ProfileWidget, PropertyEditor, RadioWidget, RegisterLookupWidget, ScoresDisplayWidget, SectionBuilder, SectionRenderer, SectionTree, SectionsContainer, SelectWidget, SimpleTableWidget, TableWidget, TextAreaWidget, TextInputWidget, VisualBuilderPanel, WidgetEventBus, WidgetProvider, WidgetRenderer, applyCaseControl, applyDecimalPrecision, applyMask, applySharedGeoHierarchyToValues, collectGeoWidgetRegistrationsFromWidgets, createGeoLevelMnemonicResolver, createWidgetStore, createZodSchema, defaultTheme, evaluateCondition, evaluateWidgetConditions, filterByCharacterType, formatCurrency, formatDate, formatNumber, formatPhone, formatValue, geoHierarchyBuilder, getApiDataSource, getCachedApiDataSource, getFormattedNumberLength, getGeoDescendantWidgetIds, getGeoGroupId, getGeoWidgetRegistrationsInGroup, getSchemaDataSource, getStaticDataSource, getValueByPath, getWidgetValue, hasVisibilityRules, initI18n, isAllowedKey, isUpstreamGeoAncestor, normalizeNumericDefault, normalizeOptionRules, orderGeoWidgetRegistrations, parseDataPath, parseNumber, rebuildGeoHierarchyFromRegistrations, reconcileGeoHierarchiesInValues, registerDefaultWidgets, registerGeoWidget, registerGeoWidgetParent, removeMask, resetAll, resetAndSeedGeoHierarchyFromValues, resetWidget, resolveGeoWidgetLevelLabel, resolveGeoWidgetLevelValue, resolveTheme, resolveWidgetIdValue, seedGeoHierarchyFromValues, setDataSource, setError, setLoading, setTouched, setValue, setValueByPath, setValues, setWidgetValue, shouldEnableWidget, shouldRequireWidget, shouldShowWidget, transformDataSourceOptions, translatePanelConfig, translateUISchema, translateWidgetConfig, unregisterGeoWidget, unregisterGeoWidgetParent, useBaseWidget, useGeoWidgetCascade, useWidgetCascade, useWidgetContext, useWidgetEventBus, useWidgetTheme, useWidgetTranslation, validateNumericValue, validateWidget, widgetRegistry };
|
|
1881
|
+
export type { ApiAdapter, ApiDataSource$1 as ApiDataSource, BaseWidgetConfig, BooleanControlType, BooleanRepresentation, CaseControl, CharacterType, ConditionOperator, DataSource, DataSourceRequestHandler, DataSourceType, GeoLevelConfig, GeoLevelData, GeoWidgetRegistration, 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, WidgetGeoConfig, WidgetOptionRule, WidgetOptions, WidgetRegistryEntry, WidgetRenderFunction, WidgetRootState, WidgetState, WidgetStore, WidgetTheme, WidgetThemeButton, WidgetThemeColors, WidgetThemePanel, WidgetThemeSection, WidgetThemeWidget, WidgetValidation, WidgetValue };
|