@genesislcap/foundation-forms 14.488.1-FUI-2571.1 → 14.488.1

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 (37) hide show
  1. package/dist/custom-elements.json +2 -630
  2. package/dist/dts/form.d.ts +0 -77
  3. package/dist/dts/form.d.ts.map +1 -1
  4. package/dist/dts/form.styles.d.ts.map +1 -1
  5. package/dist/dts/form.template.d.ts.map +1 -1
  6. package/dist/dts/index.d.ts +0 -3
  7. package/dist/dts/index.d.ts.map +1 -1
  8. package/dist/dts/jsonforms/renderers/CategorizationWrapperRenderer.d.ts.map +1 -1
  9. package/dist/dts/react.d.ts +0 -10
  10. package/dist/dts/utils/index.d.ts +0 -1
  11. package/dist/dts/utils/index.d.ts.map +1 -1
  12. package/dist/dts/utils/schema-utils.d.ts +0 -12
  13. package/dist/dts/utils/schema-utils.d.ts.map +1 -1
  14. package/dist/esm/form.js +1 -120
  15. package/dist/esm/form.styles.js +2 -9
  16. package/dist/esm/form.template.js +24 -58
  17. package/dist/esm/index.js +0 -3
  18. package/dist/esm/jsonforms/renderers/CategorizationWrapperRenderer.js +45 -1
  19. package/dist/esm/utils/index.js +0 -1
  20. package/dist/esm/utils/schema-utils.js +0 -48
  21. package/dist/foundation-forms.api.json +13 -1044
  22. package/dist/foundation-forms.d.ts +0 -181
  23. package/dist/react.cjs +0 -7
  24. package/dist/react.mjs +0 -6
  25. package/package.json +15 -15
  26. package/dist/dts/review.d.ts +0 -34
  27. package/dist/dts/review.d.ts.map +0 -1
  28. package/dist/dts/review.styles.d.ts +0 -3
  29. package/dist/dts/review.styles.d.ts.map +0 -1
  30. package/dist/dts/review.template.d.ts +0 -6
  31. package/dist/dts/review.template.d.ts.map +0 -1
  32. package/dist/dts/utils/review-utils.d.ts +0 -55
  33. package/dist/dts/utils/review-utils.d.ts.map +0 -1
  34. package/dist/esm/review.js +0 -63
  35. package/dist/esm/review.styles.js +0 -93
  36. package/dist/esm/review.template.js +0 -38
  37. package/dist/esm/utils/review-utils.js +0 -205
@@ -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": "*",
@@ -2341,365 +2067,11 @@
2341
2067
  "declarations": [],
2342
2068
  "exports": []
2343
2069
  },
2344
- {
2345
- "kind": "javascript-module",
2346
- "path": "src/utils/review-utils.ts",
2347
- "declarations": [
2348
- {
2349
- "kind": "function",
2350
- "name": "buildReviewFields",
2351
- "return": {
2352
- "type": {
2353
- "text": "ReviewField[]"
2354
- }
2355
- },
2356
- "parameters": [
2357
- {
2358
- "name": "data",
2359
- "type": {
2360
- "text": "Record<string, any>"
2361
- }
2362
- },
2363
- {
2364
- "name": "uiSchema",
2365
- "type": {
2366
- "text": "any"
2367
- }
2368
- },
2369
- {
2370
- "name": "schema",
2371
- "type": {
2372
- "text": "any"
2373
- }
2374
- }
2375
- ],
2376
- "description": "Flattens `buildReviewSections` output into a single ordered list.\nSection titles are prepended to field labels as \"Title — Field\"."
2377
- },
2378
- {
2379
- "kind": "function",
2380
- "name": "buildReviewSections",
2381
- "return": {
2382
- "type": {
2383
- "text": "ReviewSection[]"
2384
- }
2385
- },
2386
- "parameters": [
2387
- {
2388
- "name": "data",
2389
- "type": {
2390
- "text": "Record<string, any>"
2391
- }
2392
- },
2393
- {
2394
- "name": "uiSchema",
2395
- "type": {
2396
- "text": "any"
2397
- }
2398
- },
2399
- {
2400
- "name": "schema",
2401
- "type": {
2402
- "text": "any"
2403
- }
2404
- }
2405
- ],
2406
- "description": "Builds the review panel's fields grouped into sections by their nearest `Group` layout.\nUngrouped fields are collected into a single section with a `null` title (rendered with\na placeholder heading). Falls back to a flat, single ungrouped section when no UI schema\nis available."
2407
- },
2408
- {
2409
- "kind": "function",
2410
- "name": "filterReviewSections",
2411
- "return": {
2412
- "type": {
2413
- "text": "ReviewSection[]"
2414
- }
2415
- },
2416
- "parameters": [
2417
- {
2418
- "name": "sections",
2419
- "type": {
2420
- "text": "ReviewSection[]"
2421
- }
2422
- },
2423
- {
2424
- "name": "query",
2425
- "type": {
2426
- "text": "string"
2427
- }
2428
- }
2429
- ],
2430
- "description": "Filters review sections down to fields whose label or value contains `query`\n(case-insensitive). Sections left with no matching fields are dropped entirely.\nReturns `sections` unchanged when `query` is blank."
2431
- },
2432
- {
2433
- "kind": "function",
2434
- "name": "collectReviewFields",
2435
- "return": {
2436
- "type": {
2437
- "text": "void"
2438
- }
2439
- },
2440
- "parameters": [
2441
- {
2442
- "name": "element",
2443
- "type": {
2444
- "text": "any"
2445
- }
2446
- },
2447
- {
2448
- "name": "data",
2449
- "type": {
2450
- "text": "any"
2451
- }
2452
- },
2453
- {
2454
- "name": "out",
2455
- "type": {
2456
- "text": "ReviewField[]"
2457
- }
2458
- },
2459
- {
2460
- "name": "groupLabel",
2461
- "type": {
2462
- "text": "string | undefined"
2463
- }
2464
- },
2465
- {
2466
- "name": "schema",
2467
- "type": {
2468
- "text": "any"
2469
- }
2470
- }
2471
- ],
2472
- "description": "Recursively walks a UI schema element, collecting visible Control fields into `out`.\nPasses the nearest Group label down so children are labelled \"Group — Field\"."
2473
- },
2474
- {
2475
- "kind": "function",
2476
- "name": "resolveOptionLabel",
2477
- "return": {
2478
- "type": {
2479
- "text": "string | null"
2480
- }
2481
- },
2482
- "parameters": [
2483
- {
2484
- "name": "raw",
2485
- "type": {
2486
- "text": "any"
2487
- }
2488
- },
2489
- {
2490
- "name": "options",
2491
- "type": {
2492
- "text": "any"
2493
- }
2494
- }
2495
- ],
2496
- "description": "Looks up the display label for a raw value from `options.data` (used by segmented,\nradio group, and enum-with-explicit-data renderers). Returns `null` when no match found."
2497
- },
2498
- {
2499
- "kind": "function",
2500
- "name": "resolveEnumLabel",
2501
- "return": {
2502
- "type": {
2503
- "text": "string | null"
2504
- }
2505
- },
2506
- "parameters": [
2507
- {
2508
- "name": "raw",
2509
- "type": {
2510
- "text": "any"
2511
- }
2512
- },
2513
- {
2514
- "name": "fieldName",
2515
- "type": {
2516
- "text": "string"
2517
- }
2518
- },
2519
- {
2520
- "name": "schema",
2521
- "type": {
2522
- "text": "any"
2523
- }
2524
- }
2525
- ],
2526
- "description": "For plain enum combobox fields (no options.data), applies the same `capitalCase`\ntransform the renderer uses — e.g. `SEMI_ANNUAL` → `Semi Annual`.\nNavigates the JSON schema via the fieldName path to confirm the field is an enum\nbefore transforming. Returns `null` for non-enum fields."
2527
- },
2528
- {
2529
- "kind": "function",
2530
- "name": "getDataValueAtPath",
2531
- "return": {
2532
- "type": {
2533
- "text": "any"
2534
- }
2535
- },
2536
- "parameters": [
2537
- {
2538
- "name": "data",
2539
- "type": {
2540
- "text": "any"
2541
- }
2542
- },
2543
- {
2544
- "name": "fieldName",
2545
- "type": {
2546
- "text": "string"
2547
- }
2548
- }
2549
- ],
2550
- "description": "Navigates a `/properties/`-separated path in data to support nested object scopes\nsuch as `ADDRESS/properties/STREET` produced by Group layout UI schemas."
2551
- },
2552
- {
2553
- "kind": "function",
2554
- "name": "formatValueForReview",
2555
- "return": {
2556
- "type": {
2557
- "text": "string"
2558
- }
2559
- },
2560
- "parameters": [
2561
- {
2562
- "name": "value",
2563
- "type": {
2564
- "text": "any"
2565
- }
2566
- }
2567
- ],
2568
- "description": "Converts a raw field value to a display string for the review panel.\nArrays of primitives are comma-joined; arrays of objects and plain objects\nare rendered as readable `key: value` lines."
2569
- }
2570
- ],
2571
- "exports": [
2572
- {
2573
- "kind": "js",
2574
- "name": "buildReviewFields",
2575
- "declaration": {
2576
- "name": "buildReviewFields",
2577
- "module": "src/utils/review-utils.ts"
2578
- }
2579
- },
2580
- {
2581
- "kind": "js",
2582
- "name": "buildReviewSections",
2583
- "declaration": {
2584
- "name": "buildReviewSections",
2585
- "module": "src/utils/review-utils.ts"
2586
- }
2587
- },
2588
- {
2589
- "kind": "js",
2590
- "name": "filterReviewSections",
2591
- "declaration": {
2592
- "name": "filterReviewSections",
2593
- "module": "src/utils/review-utils.ts"
2594
- }
2595
- },
2596
- {
2597
- "kind": "js",
2598
- "name": "collectReviewFields",
2599
- "declaration": {
2600
- "name": "collectReviewFields",
2601
- "module": "src/utils/review-utils.ts"
2602
- }
2603
- },
2604
- {
2605
- "kind": "js",
2606
- "name": "resolveOptionLabel",
2607
- "declaration": {
2608
- "name": "resolveOptionLabel",
2609
- "module": "src/utils/review-utils.ts"
2610
- }
2611
- },
2612
- {
2613
- "kind": "js",
2614
- "name": "resolveEnumLabel",
2615
- "declaration": {
2616
- "name": "resolveEnumLabel",
2617
- "module": "src/utils/review-utils.ts"
2618
- }
2619
- },
2620
- {
2621
- "kind": "js",
2622
- "name": "getDataValueAtPath",
2623
- "declaration": {
2624
- "name": "getDataValueAtPath",
2625
- "module": "src/utils/review-utils.ts"
2626
- }
2627
- },
2628
- {
2629
- "kind": "js",
2630
- "name": "formatValueForReview",
2631
- "declaration": {
2632
- "name": "formatValueForReview",
2633
- "module": "src/utils/review-utils.ts"
2634
- }
2635
- }
2636
- ]
2637
- },
2638
2070
  {
2639
2071
  "kind": "javascript-module",
2640
2072
  "path": "src/utils/schema-utils.ts",
2641
- "declarations": [
2642
- {
2643
- "kind": "function",
2644
- "name": "extractErrorScopes",
2645
- "return": {
2646
- "type": {
2647
- "text": "string[]"
2648
- }
2649
- },
2650
- "parameters": [
2651
- {
2652
- "name": "errors",
2653
- "type": {
2654
- "text": "ErrorObject[]"
2655
- }
2656
- }
2657
- ],
2658
- "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."
2659
- },
2660
- {
2661
- "kind": "function",
2662
- "name": "uiSchemaHasAnyError",
2663
- "return": {
2664
- "type": {
2665
- "text": "boolean"
2666
- }
2667
- },
2668
- "parameters": [
2669
- {
2670
- "name": "uiSchema",
2671
- "type": {
2672
- "text": "UiSchemaElement | UiSchema"
2673
- }
2674
- },
2675
- {
2676
- "name": "errorScopes",
2677
- "type": {
2678
- "text": "string[]"
2679
- }
2680
- }
2681
- ],
2682
- "description": "Returns true when `uiSchema` (or any of its descendants) has a scope that appears\nin `errorScopes`. Walks both `elements` and `options.childElements`."
2683
- }
2684
- ],
2685
- "exports": [
2686
- {
2687
- "kind": "js",
2688
- "name": "extractErrorScopes",
2689
- "declaration": {
2690
- "name": "extractErrorScopes",
2691
- "module": "src/utils/schema-utils.ts"
2692
- }
2693
- },
2694
- {
2695
- "kind": "js",
2696
- "name": "uiSchemaHasAnyError",
2697
- "declaration": {
2698
- "name": "uiSchemaHasAnyError",
2699
- "module": "src/utils/schema-utils.ts"
2700
- }
2701
- }
2702
- ]
2073
+ "declarations": [],
2074
+ "exports": []
2703
2075
  },
2704
2076
  {
2705
2077
  "kind": "javascript-module",