@genesislcap/foundation-forms 14.496.2-alpha-da9ccbd.0 → 14.497.0
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/custom-elements.json +341 -1
- package/dist/dts/filters/filters.d.ts +0 -1
- package/dist/dts/filters/filters.d.ts.map +1 -1
- package/dist/dts/form.d.ts +94 -1
- package/dist/dts/form.d.ts.map +1 -1
- package/dist/dts/form.styles.d.ts.map +1 -1
- package/dist/dts/form.template.d.ts.map +1 -1
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts.map +1 -1
- package/dist/dts/react.d.ts +10 -0
- package/dist/dts/review.d.ts +34 -0
- package/dist/dts/review.d.ts.map +1 -0
- package/dist/dts/review.styles.d.ts +3 -0
- package/dist/dts/review.styles.d.ts.map +1 -0
- package/dist/dts/review.template.d.ts +6 -0
- package/dist/dts/review.template.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/review-utils.d.ts +82 -0
- package/dist/dts/utils/review-utils.d.ts.map +1 -0
- package/dist/dts/utils/schema-utils.d.ts +12 -0
- package/dist/dts/utils/schema-utils.d.ts.map +1 -1
- package/dist/esm/form.js +132 -3
- package/dist/esm/form.styles.js +9 -2
- package/dist/esm/form.template.js +63 -25
- package/dist/esm/index.js +3 -0
- package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +1 -45
- package/dist/esm/review.js +63 -0
- package/dist/esm/review.styles.js +93 -0
- package/dist/esm/review.template.js +39 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/review-utils.js +241 -0
- package/dist/esm/utils/schema-utils.js +48 -0
- package/dist/foundation-forms.api.json +428 -0
- package/dist/foundation-forms.d.ts +224 -2
- package/dist/react.cjs +7 -0
- package/dist/react.mjs +6 -0
- package/package.json +15 -15
|
@@ -191,6 +191,36 @@
|
|
|
191
191
|
"description": "When enabled, transforms the form into bulk insert mode where multiple records can be added.\nThe JSON schema will be wrapped as an array, and each item will be submitted separately.",
|
|
192
192
|
"privacy": "public"
|
|
193
193
|
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "field",
|
|
196
|
+
"name": "submitButtonText",
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "string"
|
|
199
|
+
},
|
|
200
|
+
"default": "'Submit'",
|
|
201
|
+
"description": "Text to appear on submit button",
|
|
202
|
+
"privacy": "public"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "field",
|
|
206
|
+
"name": "bulkSubmitButtonText",
|
|
207
|
+
"type": {
|
|
208
|
+
"text": "string"
|
|
209
|
+
},
|
|
210
|
+
"default": "'Submit All'",
|
|
211
|
+
"description": "Text to appear on submit button in bulk insert mode",
|
|
212
|
+
"privacy": "public"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "field",
|
|
216
|
+
"name": "resetButtonText",
|
|
217
|
+
"type": {
|
|
218
|
+
"text": "string"
|
|
219
|
+
},
|
|
220
|
+
"default": "'Reset'",
|
|
221
|
+
"description": "Text to appear on reset button",
|
|
222
|
+
"privacy": "public"
|
|
223
|
+
},
|
|
194
224
|
{
|
|
195
225
|
"kind": "field",
|
|
196
226
|
"name": "bulkInsertMinItems",
|
|
@@ -210,6 +240,44 @@
|
|
|
210
240
|
"description": "Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.",
|
|
211
241
|
"privacy": "public"
|
|
212
242
|
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "field",
|
|
245
|
+
"name": "showSubmitReview",
|
|
246
|
+
"type": {
|
|
247
|
+
"text": "boolean"
|
|
248
|
+
},
|
|
249
|
+
"description": "When enabled, clicking submit with no validation errors shows a read-only preview\nof the form data before the final submission.",
|
|
250
|
+
"privacy": "public"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"kind": "field",
|
|
254
|
+
"name": "reviewButtonText",
|
|
255
|
+
"type": {
|
|
256
|
+
"text": "string"
|
|
257
|
+
},
|
|
258
|
+
"default": "'Review'",
|
|
259
|
+
"description": "Text to appear on reset button",
|
|
260
|
+
"privacy": "public"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"kind": "field",
|
|
264
|
+
"name": "reviewHeading",
|
|
265
|
+
"type": {
|
|
266
|
+
"text": "string"
|
|
267
|
+
},
|
|
268
|
+
"default": "'Review'",
|
|
269
|
+
"description": "Heading shown at the top of the review panel.",
|
|
270
|
+
"privacy": "public"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"kind": "field",
|
|
274
|
+
"name": "reviewIdField",
|
|
275
|
+
"type": {
|
|
276
|
+
"text": "string"
|
|
277
|
+
},
|
|
278
|
+
"description": "Name of a top-level data field whose value is shown as an identifier next to the\nreview heading (e.g. a record's primary key). No identifier is shown when unset.",
|
|
279
|
+
"privacy": "public"
|
|
280
|
+
},
|
|
213
281
|
{
|
|
214
282
|
"kind": "field",
|
|
215
283
|
"name": "rowSubmitStatuses",
|
|
@@ -607,6 +675,33 @@
|
|
|
607
675
|
"description": "When enabled, transforms the form into bulk insert mode where multiple records can be added.\nThe JSON schema will be wrapped as an array, and each item will be submitted separately.",
|
|
608
676
|
"fieldName": "bulkInsert"
|
|
609
677
|
},
|
|
678
|
+
{
|
|
679
|
+
"name": "submit-button-text",
|
|
680
|
+
"type": {
|
|
681
|
+
"text": "string"
|
|
682
|
+
},
|
|
683
|
+
"default": "'Submit'",
|
|
684
|
+
"description": "Text to appear on submit button",
|
|
685
|
+
"fieldName": "submitButtonText"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "bulk-submit-button-text",
|
|
689
|
+
"type": {
|
|
690
|
+
"text": "string"
|
|
691
|
+
},
|
|
692
|
+
"default": "'Submit All'",
|
|
693
|
+
"description": "Text to appear on submit button in bulk insert mode",
|
|
694
|
+
"fieldName": "bulkSubmitButtonText"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "reset-button-text",
|
|
698
|
+
"type": {
|
|
699
|
+
"text": "string"
|
|
700
|
+
},
|
|
701
|
+
"default": "'Reset'",
|
|
702
|
+
"description": "Text to appear on reset button",
|
|
703
|
+
"fieldName": "resetButtonText"
|
|
704
|
+
},
|
|
610
705
|
{
|
|
611
706
|
"name": "bulk-insert-min-items",
|
|
612
707
|
"type": {
|
|
@@ -623,6 +718,40 @@
|
|
|
623
718
|
},
|
|
624
719
|
"description": "Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.",
|
|
625
720
|
"fieldName": "bulkInsertMaxItems"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "show-submit-review",
|
|
724
|
+
"type": {
|
|
725
|
+
"text": "boolean"
|
|
726
|
+
},
|
|
727
|
+
"description": "When enabled, clicking submit with no validation errors shows a read-only preview\nof the form data before the final submission.",
|
|
728
|
+
"fieldName": "showSubmitReview"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "review-button-text",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "string"
|
|
734
|
+
},
|
|
735
|
+
"default": "'Review'",
|
|
736
|
+
"description": "Text to appear on reset button",
|
|
737
|
+
"fieldName": "reviewButtonText"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "review-heading",
|
|
741
|
+
"type": {
|
|
742
|
+
"text": "string"
|
|
743
|
+
},
|
|
744
|
+
"default": "'Review'",
|
|
745
|
+
"description": "Heading shown at the top of the review panel.",
|
|
746
|
+
"fieldName": "reviewHeading"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"name": "review-id-field",
|
|
750
|
+
"type": {
|
|
751
|
+
"text": "string"
|
|
752
|
+
},
|
|
753
|
+
"description": "Name of a top-level data field whose value is shown as an identifier next to the\nreview heading (e.g. a record's primary key). No identifier is shown when unset.",
|
|
754
|
+
"fieldName": "reviewIdField"
|
|
626
755
|
}
|
|
627
756
|
],
|
|
628
757
|
"mixins": [
|
|
@@ -703,6 +832,30 @@
|
|
|
703
832
|
"package": "./form.template"
|
|
704
833
|
}
|
|
705
834
|
},
|
|
835
|
+
{
|
|
836
|
+
"kind": "js",
|
|
837
|
+
"name": "*",
|
|
838
|
+
"declaration": {
|
|
839
|
+
"name": "*",
|
|
840
|
+
"package": "./review"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "js",
|
|
845
|
+
"name": "*",
|
|
846
|
+
"declaration": {
|
|
847
|
+
"name": "*",
|
|
848
|
+
"package": "./review.styles"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "js",
|
|
853
|
+
"name": "*",
|
|
854
|
+
"declaration": {
|
|
855
|
+
"name": "*",
|
|
856
|
+
"package": "./review.template"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
706
859
|
{
|
|
707
860
|
"kind": "js",
|
|
708
861
|
"name": "MulticolumnDropdownControlRendererEntry",
|
|
@@ -875,6 +1028,119 @@
|
|
|
875
1028
|
}
|
|
876
1029
|
]
|
|
877
1030
|
},
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "javascript-module",
|
|
1033
|
+
"path": "src/review.styles.ts",
|
|
1034
|
+
"declarations": [],
|
|
1035
|
+
"exports": []
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "javascript-module",
|
|
1039
|
+
"path": "src/review.template.ts",
|
|
1040
|
+
"declarations": [],
|
|
1041
|
+
"exports": []
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"kind": "javascript-module",
|
|
1045
|
+
"path": "src/review.ts",
|
|
1046
|
+
"declarations": [
|
|
1047
|
+
{
|
|
1048
|
+
"kind": "class",
|
|
1049
|
+
"description": "Read-only preview panel shown by `<foundation-form>` when `show-submit-review` is enabled.\nRenders the reviewed data grouped into sections with a header and a filter field.",
|
|
1050
|
+
"name": "Review",
|
|
1051
|
+
"members": [
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "field",
|
|
1054
|
+
"name": "prefix",
|
|
1055
|
+
"type": {
|
|
1056
|
+
"text": "string"
|
|
1057
|
+
},
|
|
1058
|
+
"default": "'rapid'"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "field",
|
|
1062
|
+
"name": "heading",
|
|
1063
|
+
"type": {
|
|
1064
|
+
"text": "string"
|
|
1065
|
+
},
|
|
1066
|
+
"default": "'Review'",
|
|
1067
|
+
"description": "Title shown in the review header.",
|
|
1068
|
+
"privacy": "public"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "field",
|
|
1072
|
+
"name": "recordId",
|
|
1073
|
+
"type": {
|
|
1074
|
+
"text": "string"
|
|
1075
|
+
},
|
|
1076
|
+
"description": "Optional identifier shown next to the heading, e.g. a record's primary key.",
|
|
1077
|
+
"privacy": "public"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "field",
|
|
1081
|
+
"name": "sections",
|
|
1082
|
+
"type": {
|
|
1083
|
+
"text": "ReviewSection[]"
|
|
1084
|
+
},
|
|
1085
|
+
"default": "[]",
|
|
1086
|
+
"description": "Sections of label/value pairs to render, grouped by their nearest UI schema `Group`.",
|
|
1087
|
+
"privacy": "public"
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"attributes": [
|
|
1091
|
+
{
|
|
1092
|
+
"name": "design-system-prefix",
|
|
1093
|
+
"type": {
|
|
1094
|
+
"text": "string"
|
|
1095
|
+
},
|
|
1096
|
+
"default": "'rapid'",
|
|
1097
|
+
"fieldName": "prefix"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "heading",
|
|
1101
|
+
"type": {
|
|
1102
|
+
"text": "string"
|
|
1103
|
+
},
|
|
1104
|
+
"default": "'Review'",
|
|
1105
|
+
"description": "Title shown in the review header.",
|
|
1106
|
+
"fieldName": "heading"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "record-id",
|
|
1110
|
+
"type": {
|
|
1111
|
+
"text": "string"
|
|
1112
|
+
},
|
|
1113
|
+
"description": "Optional identifier shown next to the heading, e.g. a record's primary key.",
|
|
1114
|
+
"fieldName": "recordId"
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"superclass": {
|
|
1118
|
+
"name": "FASTElement",
|
|
1119
|
+
"package": "@microsoft/fast-element"
|
|
1120
|
+
},
|
|
1121
|
+
"tagName": "foundation-form-review",
|
|
1122
|
+
"customElement": true
|
|
1123
|
+
}
|
|
1124
|
+
],
|
|
1125
|
+
"exports": [
|
|
1126
|
+
{
|
|
1127
|
+
"kind": "js",
|
|
1128
|
+
"name": "Review",
|
|
1129
|
+
"declaration": {
|
|
1130
|
+
"name": "Review",
|
|
1131
|
+
"module": "src/review.ts"
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"kind": "custom-element-definition",
|
|
1136
|
+
"name": "foundation-form-review",
|
|
1137
|
+
"declaration": {
|
|
1138
|
+
"name": "Review",
|
|
1139
|
+
"module": "src/review.ts"
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
},
|
|
878
1144
|
{
|
|
879
1145
|
"kind": "javascript-module",
|
|
880
1146
|
"path": "src/types.ts",
|
|
@@ -2011,6 +2277,14 @@
|
|
|
2011
2277
|
"package": "./csv-parser"
|
|
2012
2278
|
}
|
|
2013
2279
|
},
|
|
2280
|
+
{
|
|
2281
|
+
"kind": "js",
|
|
2282
|
+
"name": "*",
|
|
2283
|
+
"declaration": {
|
|
2284
|
+
"name": "*",
|
|
2285
|
+
"package": "./review-utils"
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2014
2288
|
{
|
|
2015
2289
|
"kind": "js",
|
|
2016
2290
|
"name": "*",
|
|
@@ -2069,10 +2343,76 @@
|
|
|
2069
2343
|
},
|
|
2070
2344
|
{
|
|
2071
2345
|
"kind": "javascript-module",
|
|
2072
|
-
"path": "src/utils/
|
|
2346
|
+
"path": "src/utils/review-utils.ts",
|
|
2073
2347
|
"declarations": [],
|
|
2074
2348
|
"exports": []
|
|
2075
2349
|
},
|
|
2350
|
+
{
|
|
2351
|
+
"kind": "javascript-module",
|
|
2352
|
+
"path": "src/utils/schema-utils.ts",
|
|
2353
|
+
"declarations": [
|
|
2354
|
+
{
|
|
2355
|
+
"kind": "function",
|
|
2356
|
+
"name": "extractErrorScopes",
|
|
2357
|
+
"return": {
|
|
2358
|
+
"type": {
|
|
2359
|
+
"text": "string[]"
|
|
2360
|
+
}
|
|
2361
|
+
},
|
|
2362
|
+
"parameters": [
|
|
2363
|
+
{
|
|
2364
|
+
"name": "errors",
|
|
2365
|
+
"type": {
|
|
2366
|
+
"text": "ErrorObject[]"
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
],
|
|
2370
|
+
"description": "Converts AJV validation errors to the JSON Schema scope strings they correspond to\n(e.g. `#/properties/ADDRESS/properties/STREET`). Used to match errors back to UI\nschema controls for features like categorization-tab error indicators."
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"kind": "function",
|
|
2374
|
+
"name": "uiSchemaHasAnyError",
|
|
2375
|
+
"return": {
|
|
2376
|
+
"type": {
|
|
2377
|
+
"text": "boolean"
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
"parameters": [
|
|
2381
|
+
{
|
|
2382
|
+
"name": "uiSchema",
|
|
2383
|
+
"type": {
|
|
2384
|
+
"text": "UiSchemaElement | UiSchema"
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"name": "errorScopes",
|
|
2389
|
+
"type": {
|
|
2390
|
+
"text": "string[]"
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
],
|
|
2394
|
+
"description": "Returns true when `uiSchema` (or any of its descendants) has a scope that appears\nin `errorScopes`. Walks both `elements` and `options.childElements`."
|
|
2395
|
+
}
|
|
2396
|
+
],
|
|
2397
|
+
"exports": [
|
|
2398
|
+
{
|
|
2399
|
+
"kind": "js",
|
|
2400
|
+
"name": "extractErrorScopes",
|
|
2401
|
+
"declaration": {
|
|
2402
|
+
"name": "extractErrorScopes",
|
|
2403
|
+
"module": "src/utils/schema-utils.ts"
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
"kind": "js",
|
|
2408
|
+
"name": "uiSchemaHasAnyError",
|
|
2409
|
+
"declaration": {
|
|
2410
|
+
"name": "uiSchemaHasAnyError",
|
|
2411
|
+
"module": "src/utils/schema-utils.ts"
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2076
2416
|
{
|
|
2077
2417
|
"kind": "javascript-module",
|
|
2078
2418
|
"path": "src/utils/server-errors.ts",
|
|
@@ -15,7 +15,6 @@ declare const Filters_base: (new (...args: any[]) => {
|
|
|
15
15
|
#_hasFirstLoaded: boolean;
|
|
16
16
|
#_cleanupTimeout: NodeJS.Timeout;
|
|
17
17
|
#_shouldForceLifecycle: boolean;
|
|
18
|
-
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
19
18
|
cloneNode(deep?: boolean): Node;
|
|
20
19
|
deepClone(): Node;
|
|
21
20
|
get shouldRunDisconnect(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAOnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa1C,OAAO,EAA2B,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAM5E,gBAAgB;AAChB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;CAcvC"}
|
package/dist/dts/form.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { JsonFormsCore } from '@jsonforms/core';
|
|
1
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
3
|
import { ErrorObject } from 'ajv';
|
|
3
4
|
import { JSONSchema7 } from 'json-schema';
|
|
4
5
|
import { BulkRowStatus, FormDataChangeEventDetail, RendererEntry, UiSchema } from './types';
|
|
6
|
+
import { ReviewSection } from './utils';
|
|
5
7
|
/**
|
|
6
8
|
* Set of default renderers used by the foundation-forms.
|
|
7
9
|
* @public
|
|
@@ -13,7 +15,6 @@ declare const Form_base: (new (...args: any[]) => {
|
|
|
13
15
|
#_hasFirstLoaded: boolean;
|
|
14
16
|
#_cleanupTimeout: NodeJS.Timeout;
|
|
15
17
|
#_shouldForceLifecycle: boolean;
|
|
16
|
-
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
17
18
|
cloneNode(deep?: boolean): Node;
|
|
18
19
|
deepClone(): Node;
|
|
19
20
|
get shouldRunDisconnect(): boolean;
|
|
@@ -451,6 +452,16 @@ export declare class Form extends Form_base {
|
|
|
451
452
|
* @internal
|
|
452
453
|
*/
|
|
453
454
|
serverFieldErrors: ErrorObject[];
|
|
455
|
+
/**
|
|
456
|
+
* Reference to the json-forms child element — used to read live validation
|
|
457
|
+
* errors at submit time so review mode never activates when the form is invalid.
|
|
458
|
+
* @internal
|
|
459
|
+
*/
|
|
460
|
+
jsonFormsEl: {
|
|
461
|
+
jsonforms?: {
|
|
462
|
+
core?: JsonFormsCore;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
454
465
|
/**
|
|
455
466
|
* Stores the approval message entered by the user.
|
|
456
467
|
* @internal
|
|
@@ -574,6 +585,24 @@ export declare class Form extends Form_base {
|
|
|
574
585
|
* @public
|
|
575
586
|
*/
|
|
576
587
|
bulkInsert: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Text to appear on submit button
|
|
590
|
+
* @default Submit
|
|
591
|
+
* @public
|
|
592
|
+
*/
|
|
593
|
+
submitButtonText: string;
|
|
594
|
+
/**
|
|
595
|
+
* Text to appear on submit button in bulk insert mode
|
|
596
|
+
* @default Submit AllS
|
|
597
|
+
* @public
|
|
598
|
+
*/
|
|
599
|
+
bulkSubmitButtonText: string;
|
|
600
|
+
/**
|
|
601
|
+
* Text to appear on reset button
|
|
602
|
+
* @default Submit
|
|
603
|
+
* @public
|
|
604
|
+
*/
|
|
605
|
+
resetButtonText: string;
|
|
577
606
|
/**
|
|
578
607
|
* Minimum number of items required in bulk insert mode.
|
|
579
608
|
* @public
|
|
@@ -594,16 +623,80 @@ export declare class Form extends Form_base {
|
|
|
594
623
|
* @internal
|
|
595
624
|
*/
|
|
596
625
|
private userProvidedUiSchema;
|
|
626
|
+
/**
|
|
627
|
+
* When enabled, clicking submit with no validation errors shows a read-only preview
|
|
628
|
+
* of the form data before the final submission.
|
|
629
|
+
* @public
|
|
630
|
+
*/
|
|
631
|
+
showSubmitReview: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Text to appear on reset button
|
|
634
|
+
* @public
|
|
635
|
+
*/
|
|
636
|
+
reviewButtonText: string;
|
|
637
|
+
/**
|
|
638
|
+
* Heading shown at the top of the review panel.
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
reviewHeading: string;
|
|
642
|
+
/**
|
|
643
|
+
* Name of a top-level data field whose value is shown as an identifier next to the
|
|
644
|
+
* review heading (e.g. a record's primary key). No identifier is shown when unset.
|
|
645
|
+
* @public
|
|
646
|
+
*/
|
|
647
|
+
reviewIdField: string;
|
|
597
648
|
/**
|
|
598
649
|
* Tracks the submission status for each row in bulk insert mode.
|
|
599
650
|
* Key is the row index, value is the status object.
|
|
600
651
|
* @public
|
|
601
652
|
*/
|
|
602
653
|
rowSubmitStatuses: Map<number, BulkRowStatus>;
|
|
654
|
+
/**
|
|
655
|
+
* Whether the form is currently showing the submit-review preview panel.
|
|
656
|
+
* @internal
|
|
657
|
+
*/
|
|
658
|
+
reviewMode: boolean;
|
|
659
|
+
/**
|
|
660
|
+
* Field label/value pairs rendered in the review panel, grouped into sections.
|
|
661
|
+
* @internal
|
|
662
|
+
*/
|
|
663
|
+
reviewSections: ReviewSection[];
|
|
664
|
+
/**
|
|
665
|
+
* Value of `reviewIdField` resolved from the current form data, if set.
|
|
666
|
+
* @internal
|
|
667
|
+
*/
|
|
668
|
+
get reviewRecordId(): string | undefined;
|
|
603
669
|
/**
|
|
604
670
|
* @internal
|
|
605
671
|
*/
|
|
606
672
|
_submit(): Promise<void>;
|
|
673
|
+
/**
|
|
674
|
+
* Called from the review panel to go back to the form.
|
|
675
|
+
* @internal
|
|
676
|
+
*/
|
|
677
|
+
backFromReview(): void;
|
|
678
|
+
/**
|
|
679
|
+
* Called from the review panel submit button to perform the actual submission.
|
|
680
|
+
* Intentionally skips `confirmationMessage` — that gate already ran once in `_submit()`
|
|
681
|
+
* before review mode was entered, and re-confirming here would ask the user twice.
|
|
682
|
+
* @internal
|
|
683
|
+
*/
|
|
684
|
+
_submitFromReview(): Promise<void>;
|
|
685
|
+
/**
|
|
686
|
+
* Whether the form currently has validation errors. Reads live errors directly from the
|
|
687
|
+
* json-forms element when it's mounted, so we always use the current validation state
|
|
688
|
+
* (this.errors can lag in edge cases such as required fields with empty-string values not
|
|
689
|
+
* yet reported via data-change). Falls back to this.errors when json-forms isn't mounted
|
|
690
|
+
* (e.g. while the read-only review panel is showing), which is safe since no interactive
|
|
691
|
+
* editing happens during review.
|
|
692
|
+
* @internal
|
|
693
|
+
*/
|
|
694
|
+
private hasValidationErrors;
|
|
695
|
+
/**
|
|
696
|
+
* Performs the actual API submission after review (or directly when review is disabled).
|
|
697
|
+
* @internal
|
|
698
|
+
*/
|
|
699
|
+
private _performSubmit;
|
|
607
700
|
/**
|
|
608
701
|
* Handles bulk insert submission by iterating through items and submitting each separately.
|
|
609
702
|
* Updates rowSubmitStatuses to provide row-level feedback.
|
package/dist/dts/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,aAAa,EAGd,MAAM,iBAAiB,CAAC;AASzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAyB1C,OAAO,EACL,aAAa,EAOb,yBAAyB,EACzB,aAAa,EAOb,QAAQ,EACT,MAAM,SAAS,CAAC;AACjB,OAAO,EAWL,aAAa,EACd,MAAM,SAAS,CAAC;AAiBjB;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;kBAlEI,CAAC;;;;;;;;8BA4DH,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAkB4D,CAAC;4IAEpC,CAAC;wFAC6B,CAAC;+IAET,CAAC;2FAEnE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCe,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBA+D6B,CAAC;;;;;;;;;;;;;6BA8BnC,CAAC;8BACC,CAAC;kBAA4D,CAAC;;oBAGH,CAAC;;sBAIpE,CAAC;oBAE+C,CAAC;;;;;;;;gDAmBzC,CAAC;;;;;;;;;;;;;;;;;;uBA4BP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAmHN,CAAD;yBAE2D,CAAC;UAG/B,GAAG;WAI7B,GAAG;;gBAGH,GAAE;;;;;;;WAcF,GAAG;YAAiD,GACxD;;;;;;;;;;;oBA4CE,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;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gB;AAChB,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"form.styles.d.ts","sourceRoot":"","sources":["../../src/form.styles.ts"],"names":[],"mappings":"AAMA,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,GAAI,SAAQ,MAAe,WAK7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,iDA2IhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"form.template.d.ts","sourceRoot":"","sources":["../../src/form.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAmBnC,gBAAgB;AAChB,eAAO,MAAM,eAAe,GAAI,WAAM,8DAoKrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DAElC,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ export * from './filters';
|
|
|
2
2
|
export * from './form';
|
|
3
3
|
export * from './form.styles';
|
|
4
4
|
export * from './form.template';
|
|
5
|
+
export * from './review';
|
|
6
|
+
export * from './review.styles';
|
|
7
|
+
export * from './review.template';
|
|
5
8
|
export { MulticolumnDropdownControlRendererEntry, MulticolumnDropdownControlRendererTemplate, } from './jsonforms/renderers/MulticolumnDropdownControlRenderer';
|
|
6
9
|
export { LayoutVerticalCategorizationRendererEntry } from './jsonforms/renderers/LayoutVerticalCategorizationRenderer';
|
|
7
10
|
export { controlWrapperTemplate, controlWrapperStyles,
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,uCAAuC,EACvC,0CAA0C,GAC3C,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,yCAAyC,EAAE,MAAM,4DAA4D,CAAC;AACvH,OAAO,EACL,sBAAsB,EACtB,oBAAoB;AACpB,8DAA8D;AAC9D,cAAc;AACd,8DAA8D;AAC9D,8BAA8B,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB;AACrB,6DAA6D;AAC7D,aAAa,GACd,MAAM,sCAAsC,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,uCAAuC,EACvC,0CAA0C,GAC3C,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,yCAAyC,EAAE,MAAM,4DAA4D,CAAC;AACvH,OAAO,EACL,sBAAsB,EACtB,oBAAoB;AACpB,8DAA8D;AAC9D,cAAc;AACd,8DAA8D;AAC9D,8BAA8B,GAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB;AACrB,6DAA6D;AAC7D,aAAa,GACd,MAAM,sCAAsC,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"CategorizationWrapperRenderer.d.ts","sourceRoot":"","sources":["../../../../src/jsonforms/renderers/CategorizationWrapperRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,WAAW,EAIZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,QAAQ,EAAE,eAAe,EAAE,GAC1B,MAAM,CAKR;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,GAAG,GAAG,MAAM,CAMrF;AAED,eAAO,MAAM,oBAAoB,iDAKhC,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,eAAe,+EA6DhB,CAAC;AAkBF,qBAQa,qBAAsB,SAAQ,WAAW;IACxC,IAAI,MAAC;IACL,OAAO,MAAC;IACR,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAgB;IACxC,cAAc,EAAE,MAAM,CAAK;IAEvC;;;;;;;OAOG;IACH,OAAO,CAAC,wBAAwB,CAAS;IAEzC,cAAc;IAUd,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIjC,eAAe,CAAC,KAAK,EAAE,KAAK;IAQ5B,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;CAQjD"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import type { StepperWrapper as StepperWrapperWC } from './jsonforms/renderers/S
|
|
|
15
15
|
import type { VerticalCategorizationWrapper as VerticalCategorizationWrapperWC } from './jsonforms/renderers/VerticalCategorizationWrapperRenderer';
|
|
16
16
|
import type { DispatchRenderer as DispatchRendererWC } from './jsonforms/renderers/dispatch-renderer';
|
|
17
17
|
import type { FoundationReactSlot as FoundationReactSlotWC } from './jsonforms/renderers/foundation-react-slot';
|
|
18
|
+
import type { Review as ReviewWC } from './review';
|
|
18
19
|
import type { BulkSubmitResult, CsvImportedEventDetail, CsvParseErrorEventDetail, CsvTemplateDownloadedEventDetail, CsvTemplateErrorEventDetail, FormDataChangeEventDetail, RowStatusChangedEventDetail, RowSubmitFailureEventDetail, RowSubmitSuccessEventDetail, SubmitFailureEventDetail, SubmitPartialSuccessEventDetail } from '@genesislcap/foundation-forms';
|
|
19
20
|
|
|
20
21
|
/** @internal Maps a web component class to its public props only.
|
|
@@ -68,6 +69,15 @@ export declare const Form: React.ForwardRefExoticComponent<
|
|
|
68
69
|
>;
|
|
69
70
|
export type FormRef = FormWC;
|
|
70
71
|
|
|
72
|
+
export declare const Review: React.ForwardRefExoticComponent<
|
|
73
|
+
React.PropsWithChildren<
|
|
74
|
+
Omit<PublicOf<ReviewWC>, 'children' | 'style'> &
|
|
75
|
+
HTMLWCProps & {
|
|
76
|
+
}
|
|
77
|
+
> & React.RefAttributes<ReviewWC>
|
|
78
|
+
>;
|
|
79
|
+
export type ReviewRef = ReviewWC;
|
|
80
|
+
|
|
71
81
|
export declare const Filters: React.ForwardRefExoticComponent<
|
|
72
82
|
React.PropsWithChildren<
|
|
73
83
|
Omit<PublicOf<FiltersWC>, 'children' | 'style'> &
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { type ReviewSection } from './utils/review-utils';
|
|
3
|
+
/**
|
|
4
|
+
* Read-only preview panel shown by `<foundation-form>` when `show-submit-review` is enabled.
|
|
5
|
+
* Renders the reviewed data grouped into sections with a header and a filter field.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class Review extends FASTElement {
|
|
9
|
+
prefix: string;
|
|
10
|
+
/**
|
|
11
|
+
* Title shown in the review header.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
heading: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional identifier shown next to the heading, e.g. a record's primary key.
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
recordId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Sections of label/value pairs to render, grouped by their nearest UI schema `Group`.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
sections: ReviewSection[];
|
|
25
|
+
/**
|
|
26
|
+
* Free-text query filtering fields by label or value. Sections with no matching
|
|
27
|
+
* fields are hidden.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
filterText: string;
|
|
31
|
+
/** @internal */
|
|
32
|
+
get filteredSections(): ReviewSection[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=review.d.ts.map
|