@genesislcap/foundation-forms 14.492.0-FUI-2571.4 → 14.492.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 +1 -341
- package/dist/dts/form.d.ts +0 -87
- 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 +0 -3
- 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 +0 -10
- package/dist/dts/utils/index.d.ts +0 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/schema-utils.d.ts +0 -12
- package/dist/dts/utils/schema-utils.d.ts.map +1 -1
- package/dist/esm/form.js +2 -129
- package/dist/esm/form.styles.js +2 -9
- package/dist/esm/form.template.js +25 -59
- package/dist/esm/index.js +0 -3
- package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +45 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/schema-utils.js +0 -48
- package/dist/foundation-forms.api.json +0 -428
- package/dist/foundation-forms.d.ts +0 -217
- package/dist/react.cjs +0 -7
- package/dist/react.mjs +0 -6
- package/package.json +15 -15
- package/dist/dts/review.d.ts +0 -34
- package/dist/dts/review.d.ts.map +0 -1
- package/dist/dts/review.styles.d.ts +0 -3
- package/dist/dts/review.styles.d.ts.map +0 -1
- package/dist/dts/review.template.d.ts +0 -6
- package/dist/dts/review.template.d.ts.map +0 -1
- package/dist/dts/utils/review-utils.d.ts +0 -82
- package/dist/dts/utils/review-utils.d.ts.map +0 -1
- package/dist/esm/review.js +0 -63
- package/dist/esm/review.styles.js +0 -93
- package/dist/esm/review.template.js +0 -38
- package/dist/esm/utils/review-utils.js +0 -241
|
@@ -191,36 +191,6 @@
|
|
|
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
|
-
},
|
|
224
194
|
{
|
|
225
195
|
"kind": "field",
|
|
226
196
|
"name": "bulkInsertMinItems",
|
|
@@ -240,44 +210,6 @@
|
|
|
240
210
|
"description": "Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.",
|
|
241
211
|
"privacy": "public"
|
|
242
212
|
},
|
|
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
|
-
},
|
|
281
213
|
{
|
|
282
214
|
"kind": "field",
|
|
283
215
|
"name": "rowSubmitStatuses",
|
|
@@ -675,33 +607,6 @@
|
|
|
675
607
|
"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.",
|
|
676
608
|
"fieldName": "bulkInsert"
|
|
677
609
|
},
|
|
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
|
-
},
|
|
705
610
|
{
|
|
706
611
|
"name": "bulk-insert-min-items",
|
|
707
612
|
"type": {
|
|
@@ -718,40 +623,6 @@
|
|
|
718
623
|
},
|
|
719
624
|
"description": "Maximum number of items allowed in bulk insert mode. If not set, no maximum is enforced.",
|
|
720
625
|
"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"
|
|
755
626
|
}
|
|
756
627
|
],
|
|
757
628
|
"mixins": [
|
|
@@ -832,30 +703,6 @@
|
|
|
832
703
|
"package": "./form.template"
|
|
833
704
|
}
|
|
834
705
|
},
|
|
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
|
-
},
|
|
859
706
|
{
|
|
860
707
|
"kind": "js",
|
|
861
708
|
"name": "MulticolumnDropdownControlRendererEntry",
|
|
@@ -1028,119 +875,6 @@
|
|
|
1028
875
|
}
|
|
1029
876
|
]
|
|
1030
877
|
},
|
|
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
|
-
},
|
|
1144
878
|
{
|
|
1145
879
|
"kind": "javascript-module",
|
|
1146
880
|
"path": "src/types.ts",
|
|
@@ -2277,14 +2011,6 @@
|
|
|
2277
2011
|
"package": "./csv-parser"
|
|
2278
2012
|
}
|
|
2279
2013
|
},
|
|
2280
|
-
{
|
|
2281
|
-
"kind": "js",
|
|
2282
|
-
"name": "*",
|
|
2283
|
-
"declaration": {
|
|
2284
|
-
"name": "*",
|
|
2285
|
-
"package": "./review-utils"
|
|
2286
|
-
}
|
|
2287
|
-
},
|
|
2288
2014
|
{
|
|
2289
2015
|
"kind": "js",
|
|
2290
2016
|
"name": "*",
|
|
@@ -2343,76 +2069,10 @@
|
|
|
2343
2069
|
},
|
|
2344
2070
|
{
|
|
2345
2071
|
"kind": "javascript-module",
|
|
2346
|
-
"path": "src/utils/
|
|
2072
|
+
"path": "src/utils/schema-utils.ts",
|
|
2347
2073
|
"declarations": [],
|
|
2348
2074
|
"exports": []
|
|
2349
2075
|
},
|
|
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
|
-
},
|
|
2416
2076
|
{
|
|
2417
2077
|
"kind": "javascript-module",
|
|
2418
2078
|
"path": "src/utils/server-errors.ts",
|
package/dist/dts/form.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
2
2
|
import { ErrorObject } from 'ajv';
|
|
3
3
|
import { JSONSchema7 } from 'json-schema';
|
|
4
4
|
import { BulkRowStatus, FormDataChangeEventDetail, RendererEntry, UiSchema } from './types';
|
|
5
|
-
import { ReviewSection } from './utils';
|
|
6
5
|
/**
|
|
7
6
|
* Set of default renderers used by the foundation-forms.
|
|
8
7
|
* @public
|
|
@@ -451,12 +450,6 @@ export declare class Form extends Form_base {
|
|
|
451
450
|
* @internal
|
|
452
451
|
*/
|
|
453
452
|
serverFieldErrors: ErrorObject[];
|
|
454
|
-
/**
|
|
455
|
-
* Reference to the json-forms child element — used to read live validation
|
|
456
|
-
* errors at submit time so review mode never activates when the form is invalid.
|
|
457
|
-
* @internal
|
|
458
|
-
*/
|
|
459
|
-
jsonFormsEl: any;
|
|
460
453
|
/**
|
|
461
454
|
* Stores the approval message entered by the user.
|
|
462
455
|
* @internal
|
|
@@ -580,24 +573,6 @@ export declare class Form extends Form_base {
|
|
|
580
573
|
* @public
|
|
581
574
|
*/
|
|
582
575
|
bulkInsert: boolean;
|
|
583
|
-
/**
|
|
584
|
-
* Text to appear on submit button
|
|
585
|
-
* @default Submit
|
|
586
|
-
* @public
|
|
587
|
-
*/
|
|
588
|
-
submitButtonText: string;
|
|
589
|
-
/**
|
|
590
|
-
* Text to appear on submit button in bulk insert mode
|
|
591
|
-
* @default Submit AllS
|
|
592
|
-
* @public
|
|
593
|
-
*/
|
|
594
|
-
bulkSubmitButtonText: string;
|
|
595
|
-
/**
|
|
596
|
-
* Text to appear on reset button
|
|
597
|
-
* @default Submit
|
|
598
|
-
* @public
|
|
599
|
-
*/
|
|
600
|
-
resetButtonText: string;
|
|
601
576
|
/**
|
|
602
577
|
* Minimum number of items required in bulk insert mode.
|
|
603
578
|
* @public
|
|
@@ -618,78 +593,16 @@ export declare class Form extends Form_base {
|
|
|
618
593
|
* @internal
|
|
619
594
|
*/
|
|
620
595
|
private userProvidedUiSchema;
|
|
621
|
-
/**
|
|
622
|
-
* When enabled, clicking submit with no validation errors shows a read-only preview
|
|
623
|
-
* of the form data before the final submission.
|
|
624
|
-
* @public
|
|
625
|
-
*/
|
|
626
|
-
showSubmitReview: boolean;
|
|
627
|
-
/**
|
|
628
|
-
* Text to appear on reset button
|
|
629
|
-
* @public
|
|
630
|
-
*/
|
|
631
|
-
reviewButtonText: string;
|
|
632
|
-
/**
|
|
633
|
-
* Heading shown at the top of the review panel.
|
|
634
|
-
* @public
|
|
635
|
-
*/
|
|
636
|
-
reviewHeading: string;
|
|
637
|
-
/**
|
|
638
|
-
* Name of a top-level data field whose value is shown as an identifier next to the
|
|
639
|
-
* review heading (e.g. a record's primary key). No identifier is shown when unset.
|
|
640
|
-
* @public
|
|
641
|
-
*/
|
|
642
|
-
reviewIdField: string;
|
|
643
596
|
/**
|
|
644
597
|
* Tracks the submission status for each row in bulk insert mode.
|
|
645
598
|
* Key is the row index, value is the status object.
|
|
646
599
|
* @public
|
|
647
600
|
*/
|
|
648
601
|
rowSubmitStatuses: Map<number, BulkRowStatus>;
|
|
649
|
-
/**
|
|
650
|
-
* Whether the form is currently showing the submit-review preview panel.
|
|
651
|
-
* @internal
|
|
652
|
-
*/
|
|
653
|
-
reviewMode: boolean;
|
|
654
|
-
/**
|
|
655
|
-
* Field label/value pairs rendered in the review panel, grouped into sections.
|
|
656
|
-
* @internal
|
|
657
|
-
*/
|
|
658
|
-
reviewSections: ReviewSection[];
|
|
659
|
-
/**
|
|
660
|
-
* Value of `reviewIdField` resolved from the current form data, if set.
|
|
661
|
-
* @internal
|
|
662
|
-
*/
|
|
663
|
-
get reviewRecordId(): string | undefined;
|
|
664
602
|
/**
|
|
665
603
|
* @internal
|
|
666
604
|
*/
|
|
667
605
|
_submit(): Promise<void>;
|
|
668
|
-
/**
|
|
669
|
-
* Called from the review panel to go back to the form.
|
|
670
|
-
* @internal
|
|
671
|
-
*/
|
|
672
|
-
backFromReview(): void;
|
|
673
|
-
/**
|
|
674
|
-
* Called from the review panel submit button to perform the actual submission.
|
|
675
|
-
* @internal
|
|
676
|
-
*/
|
|
677
|
-
_submitFromReview(): Promise<void>;
|
|
678
|
-
/**
|
|
679
|
-
* Whether the form currently has validation errors. Reads live errors directly from the
|
|
680
|
-
* json-forms element when it's mounted, so we always use the current validation state
|
|
681
|
-
* (this.errors can lag in edge cases such as required fields with empty-string values not
|
|
682
|
-
* yet reported via data-change). Falls back to this.errors when json-forms isn't mounted
|
|
683
|
-
* (e.g. while the read-only review panel is showing), which is safe since no interactive
|
|
684
|
-
* editing happens during review.
|
|
685
|
-
* @internal
|
|
686
|
-
*/
|
|
687
|
-
private hasValidationErrors;
|
|
688
|
-
/**
|
|
689
|
-
* Performs the actual API submission after review (or directly when review is disabled).
|
|
690
|
-
* @internal
|
|
691
|
-
*/
|
|
692
|
-
private _performSubmit;
|
|
693
606
|
/**
|
|
694
607
|
* Handles bulk insert submission by iterating through items and submitting each separately.
|
|
695
608
|
* 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":"AAYA,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;
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/form.ts"],"names":[],"mappings":"AAYA,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;AA2BjB;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;kBA9Da,CAAC;;;;;;;;8BA2Dd,CAAD,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgB6C,CAAC;4IAEpC,CAAC;wFAC2B,CAAA;+IAEC,CAAC;2FACgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAiCzE,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAoET,CAAA;;;;;;;;;;;;;6BAyBsB,CAAC;8BAG1B,CAAC;kBAA4D,CAAC;;oBAGN,CAAC;;sBAGa,CAAC;oBAGzC,CAAC;;;;;;;;gDAmBM,CAAC;;;;;;;;;;;;;;;;;;uBAgChC,CAAJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAkHH,CAAA;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AI7B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,yBAAyB,CAAC;IAmBtD;;OAEG;IACH,oBAAoB;IAKpB;;;;OAIG;IACH,kBAAkB,IAAI,IAAI;IAK1B;;;OAGG;IACH,KAAK,CAAC,SAAS,UAAO;IAUtB;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAW9B;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAQlC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAOzB;;;OAGG;IACH,kBAAkB;IAQlB;;;OAGG;IACG,kBAAkB;IAmCxB;;;;;OAKG;IACG,qBAAqB,CAAC,KAAK,EAAE,KAAK;IA4FxC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;;;OAKG;IACH,mBAAmB;CA+BpB"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,iDAoIhC,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;AAiBnC,gBAAgB;AAChB,eAAO,MAAM,eAAe,GAAI,WAAM,8DAkHrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DAElC,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ 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';
|
|
8
5
|
export { MulticolumnDropdownControlRendererEntry, MulticolumnDropdownControlRendererTemplate, } from './jsonforms/renderers/MulticolumnDropdownControlRenderer';
|
|
9
6
|
export { LayoutVerticalCategorizationRendererEntry } from './jsonforms/renderers/LayoutVerticalCategorizationRenderer';
|
|
10
7
|
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,
|
|
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 +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;AAGjC,OAAO,EAA2C,eAAe,EAAE,MAAM,aAAa,CAAC;AAEvF;;;;;;;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,7 +15,6 @@ 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';
|
|
19
18
|
import type { BulkSubmitResult, CsvImportedEventDetail, CsvParseErrorEventDetail, CsvTemplateDownloadedEventDetail, CsvTemplateErrorEventDetail, FormDataChangeEventDetail, RowStatusChangedEventDetail, RowSubmitFailureEventDetail, RowSubmitSuccessEventDetail, SubmitFailureEventDetail, SubmitPartialSuccessEventDetail } from '@genesislcap/foundation-forms';
|
|
20
19
|
|
|
21
20
|
/** @internal Maps a web component class to its public props only.
|
|
@@ -69,15 +68,6 @@ export declare const Form: React.ForwardRefExoticComponent<
|
|
|
69
68
|
>;
|
|
70
69
|
export type FormRef = FormWC;
|
|
71
70
|
|
|
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
|
-
|
|
81
71
|
export declare const Filters: React.ForwardRefExoticComponent<
|
|
82
72
|
React.PropsWithChildren<
|
|
83
73
|
Omit<PublicOf<FiltersWC>, 'children' | 'style'> &
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ErrorObject } from 'ajv';
|
|
2
1
|
import type { UiSchema, UiSchemaElement } from '../types';
|
|
3
2
|
/**
|
|
4
3
|
* Extracted control info for grid layout rendering.
|
|
@@ -37,17 +36,6 @@ export declare function withGridView(uiSchema: UiSchema): UiSchema;
|
|
|
37
36
|
* @internal
|
|
38
37
|
*/
|
|
39
38
|
export declare function isBulkUiSchema(uischema: UiSchema): boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Converts AJV validation errors to the JSON Schema scope strings they correspond to
|
|
42
|
-
* (e.g. `#/properties/ADDRESS/properties/STREET`). Used to match errors back to UI
|
|
43
|
-
* schema controls for features like categorization-tab error indicators.
|
|
44
|
-
*/
|
|
45
|
-
export declare function extractErrorScopes(errors: ErrorObject[]): string[];
|
|
46
|
-
/**
|
|
47
|
-
* Returns true when `uiSchema` (or any of its descendants) has a scope that appears
|
|
48
|
-
* in `errorScopes`. Walks both `elements` and `options.childElements`.
|
|
49
|
-
*/
|
|
50
|
-
export declare function uiSchemaHasAnyError(uiSchema: UiSchemaElement | UiSchema, errorScopes: string[]): boolean;
|
|
51
39
|
/**
|
|
52
40
|
* Generates a UI schema suitable for bulk insert mode with array control.
|
|
53
41
|
* @param userProvidedUiSchema - Optional user-provided UI schema to use as childUiSchema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/schema-utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/schema-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,QAAQ,EAAE,eAAe,CAAC;IAC1B,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,SAAS,EAAE,MAAM,CAAC;CACnB;AAaD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,GAAG,gBAAgB,EAAE,CA6ClF;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAiBzD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAK1D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,oBAAoB,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAoBrF"}
|