@genesislcap/foundation-forms 14.496.2-alpha-da9ccbd.0 → 14.496.2-alpha-2c4a633.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.
Files changed (38) hide show
  1. package/dist/custom-elements.json +341 -1
  2. package/dist/dts/filters/filters.d.ts.map +1 -1
  3. package/dist/dts/form.d.ts +99 -1
  4. package/dist/dts/form.d.ts.map +1 -1
  5. package/dist/dts/form.styles.d.ts.map +1 -1
  6. package/dist/dts/form.template.d.ts.map +1 -1
  7. package/dist/dts/index.d.ts +3 -0
  8. package/dist/dts/index.d.ts.map +1 -1
  9. package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts.map +1 -1
  10. package/dist/dts/react.d.ts +10 -0
  11. package/dist/dts/review.d.ts +34 -0
  12. package/dist/dts/review.d.ts.map +1 -0
  13. package/dist/dts/review.styles.d.ts +3 -0
  14. package/dist/dts/review.styles.d.ts.map +1 -0
  15. package/dist/dts/review.template.d.ts +6 -0
  16. package/dist/dts/review.template.d.ts.map +1 -0
  17. package/dist/dts/utils/index.d.ts +1 -0
  18. package/dist/dts/utils/index.d.ts.map +1 -1
  19. package/dist/dts/utils/review-utils.d.ts +82 -0
  20. package/dist/dts/utils/review-utils.d.ts.map +1 -0
  21. package/dist/dts/utils/schema-utils.d.ts +12 -0
  22. package/dist/dts/utils/schema-utils.d.ts.map +1 -1
  23. package/dist/esm/form.js +132 -3
  24. package/dist/esm/form.styles.js +9 -2
  25. package/dist/esm/form.template.js +63 -25
  26. package/dist/esm/index.js +3 -0
  27. package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +1 -45
  28. package/dist/esm/review.js +63 -0
  29. package/dist/esm/review.styles.js +93 -0
  30. package/dist/esm/review.template.js +39 -0
  31. package/dist/esm/utils/index.js +1 -0
  32. package/dist/esm/utils/review-utils.js +241 -0
  33. package/dist/esm/utils/schema-utils.js +48 -0
  34. package/dist/foundation-forms.api.json +428 -0
  35. package/dist/foundation-forms.d.ts +229 -1
  36. package/dist/react.cjs +7 -0
  37. package/dist/react.mjs +6 -0
  38. 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/schema-utils.ts",
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",
@@ -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,eAAO,MAAM,aAAa,iDAAqC,CAAC;AAchE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAc5B,CAAC;;;;;;;;kBAwB+C,CAAC;;;;;;;;8BAsDxB,CAAA,cAChB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAyCsB,CAAC;4IAIS,CAAC;wFAQzC,CAAC;+IAGwC,CAAC;2FAGrC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyCL,CAAJ;;;;;;;;;;;;;;;;;;;;;;;mBAkFU,CAAL;;;;;;;;;;;;;6BAgCO,CAAJ;8BAGoB,CAAC;kBAMtB,CAAC;;oBAE+B,CAAC;;sBAM/B,CAAC;oBAGS,CAAC;;;;;;;;gDAaC,CAAC;;;;;;;;;;;;;;;;;;uBA0BhB,CAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAOrB,UAAU;IA0CV,YAAY;IA4BZ,iBAAiB;IAQjB,mBAAmB;IAsBzB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAW9C,cAAc,CAAC,SAAS,EAAE,MAAM;CAcvC"}
@@ -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
@@ -258,7 +260,11 @@ declare const Form_base: (new (...args: any[]) => {
258
260
  querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
259
261
  querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
260
262
  querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
261
- replaceChildren(...nodes: (Node | string)[]): void;
263
+ replaceChildren(... /**
264
+ * Tracks the submission status for each row in bulk insert mode.
265
+ * Key is the row index, value is the status object.
266
+ * @public
267
+ */nodes: (Node | string)[]): void;
262
268
  readonly assignedSlot: HTMLSlotElement | null;
263
269
  readonly attributeStyleMap: StylePropertyMap;
264
270
  get style(): CSSStyleDeclaration;
@@ -451,6 +457,16 @@ export declare class Form extends Form_base {
451
457
  * @internal
452
458
  */
453
459
  serverFieldErrors: ErrorObject[];
460
+ /**
461
+ * Reference to the json-forms child element — used to read live validation
462
+ * errors at submit time so review mode never activates when the form is invalid.
463
+ * @internal
464
+ */
465
+ jsonFormsEl: {
466
+ jsonforms?: {
467
+ core?: JsonFormsCore;
468
+ };
469
+ };
454
470
  /**
455
471
  * Stores the approval message entered by the user.
456
472
  * @internal
@@ -574,6 +590,24 @@ export declare class Form extends Form_base {
574
590
  * @public
575
591
  */
576
592
  bulkInsert: boolean;
593
+ /**
594
+ * Text to appear on submit button
595
+ * @default Submit
596
+ * @public
597
+ */
598
+ submitButtonText: string;
599
+ /**
600
+ * Text to appear on submit button in bulk insert mode
601
+ * @default Submit AllS
602
+ * @public
603
+ */
604
+ bulkSubmitButtonText: string;
605
+ /**
606
+ * Text to appear on reset button
607
+ * @default Submit
608
+ * @public
609
+ */
610
+ resetButtonText: string;
577
611
  /**
578
612
  * Minimum number of items required in bulk insert mode.
579
613
  * @public
@@ -594,16 +628,80 @@ export declare class Form extends Form_base {
594
628
  * @internal
595
629
  */
596
630
  private userProvidedUiSchema;
631
+ /**
632
+ * When enabled, clicking submit with no validation errors shows a read-only preview
633
+ * of the form data before the final submission.
634
+ * @public
635
+ */
636
+ showSubmitReview: boolean;
637
+ /**
638
+ * Text to appear on reset button
639
+ * @public
640
+ */
641
+ reviewButtonText: string;
642
+ /**
643
+ * Heading shown at the top of the review panel.
644
+ * @public
645
+ */
646
+ reviewHeading: string;
647
+ /**
648
+ * Name of a top-level data field whose value is shown as an identifier next to the
649
+ * review heading (e.g. a record's primary key). No identifier is shown when unset.
650
+ * @public
651
+ */
652
+ reviewIdField: string;
597
653
  /**
598
654
  * Tracks the submission status for each row in bulk insert mode.
599
655
  * Key is the row index, value is the status object.
600
656
  * @public
601
657
  */
602
658
  rowSubmitStatuses: Map<number, BulkRowStatus>;
659
+ /**
660
+ * Whether the form is currently showing the submit-review preview panel.
661
+ * @internal
662
+ */
663
+ reviewMode: boolean;
664
+ /**
665
+ * Field label/value pairs rendered in the review panel, grouped into sections.
666
+ * @internal
667
+ */
668
+ reviewSections: ReviewSection[];
669
+ /**
670
+ * Value of `reviewIdField` resolved from the current form data, if set.
671
+ * @internal
672
+ */
673
+ get reviewRecordId(): string | undefined;
603
674
  /**
604
675
  * @internal
605
676
  */
606
677
  _submit(): Promise<void>;
678
+ /**
679
+ * Called from the review panel to go back to the form.
680
+ * @internal
681
+ */
682
+ backFromReview(): void;
683
+ /**
684
+ * Called from the review panel submit button to perform the actual submission.
685
+ * Intentionally skips `confirmationMessage` — that gate already ran once in `_submit()`
686
+ * before review mode was entered, and re-confirming here would ask the user twice.
687
+ * @internal
688
+ */
689
+ _submitFromReview(): Promise<void>;
690
+ /**
691
+ * Whether the form currently has validation errors. Reads live errors directly from the
692
+ * json-forms element when it's mounted, so we always use the current validation state
693
+ * (this.errors can lag in edge cases such as required fields with empty-string values not
694
+ * yet reported via data-change). Falls back to this.errors when json-forms isn't mounted
695
+ * (e.g. while the read-only review panel is showing), which is safe since no interactive
696
+ * editing happens during review.
697
+ * @internal
698
+ */
699
+ private hasValidationErrors;
700
+ /**
701
+ * Performs the actual API submission after review (or directly when review is disabled).
702
+ * @internal
703
+ */
704
+ private _performSubmit;
607
705
  /**
608
706
  * Handles bulk insert submission by iterating through items and submitting each separately.
609
707
  * Updates rowSubmitStatuses to provide row-level feedback.
@@ -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;AA2BjB;;;GAGG;AACH,eAAO,MAAM,SAAS,OAwBrB,CAAC;;;;;;;;kBArCS,CAAC;;;;;;;;8BAgDC,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAWpB,CAAC;4IAQK,CAAC;wFAGgD,CAAA;+IAO7D,CAAC;2FAGmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BZ,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAuES,CAAC;;;;;;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;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;IAYtB;;;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,iDAoIhC,CAAC"}
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;AAiBnC,gBAAgB;AAChB,eAAO,MAAM,eAAe,GAAI,WAAM,8DAkHrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,2DAElC,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"}
@@ -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,
@@ -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;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"}
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"}
@@ -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