@genesislcap/foundation-forms 14.488.2-FUI-2571.3 → 14.488.2-GENC-1351.2

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 +1115 -1775
  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 +112 -1227
  22. package/dist/foundation-forms.d.ts +0 -200
  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 -73
  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 -269
@@ -93,54 +93,6 @@ export function isBulkUiSchema(uischema) {
93
93
  var _a;
94
94
  return (_a = uischema === null || uischema === void 0 ? void 0 : uischema.elements) === null || _a === void 0 ? void 0 : _a.some((element) => element.scope === '#/properties/items' && element.type === 'Control');
95
95
  }
96
- /**
97
- * Converts AJV validation errors to the JSON Schema scope strings they correspond to
98
- * (e.g. `#/properties/ADDRESS/properties/STREET`). Used to match errors back to UI
99
- * schema controls for features like categorization-tab error indicators.
100
- */
101
- export function extractErrorScopes(errors) {
102
- var _a;
103
- const scopes = new Set();
104
- for (const error of errors) {
105
- if (error.keyword === 'required' && ((_a = error.params) === null || _a === void 0 ? void 0 : _a.missingProperty)) {
106
- const basePath = error.instancePath || '';
107
- const prop = error.params.missingProperty;
108
- const fullPath = basePath === '' ? `#/properties/${prop}` : `#${basePath}/properties/${prop}`;
109
- scopes.add(fullPath);
110
- }
111
- else if (error.instancePath) {
112
- // Convert JSON Pointer /ADDRESS/STREET → #/properties/ADDRESS/properties/STREET
113
- const instancePath = `#${error.instancePath.replace(/\//g, '/properties/')}`;
114
- scopes.add(instancePath);
115
- }
116
- }
117
- return Array.from(scopes);
118
- }
119
- /**
120
- * Returns true when `uiSchema` (or any of its descendants) has a scope that appears
121
- * in `errorScopes`. Walks both `elements` and `options.childElements`.
122
- */
123
- export function uiSchemaHasAnyError(uiSchema, errorScopes) {
124
- var _a;
125
- if (typeof uiSchema.scope === 'string' &&
126
- errorScopes.includes(uiSchema.scope)) {
127
- return true;
128
- }
129
- const childElements = (_a = uiSchema.options) === null || _a === void 0 ? void 0 : _a.childElements;
130
- if (Array.isArray(childElements)) {
131
- for (const child of childElements) {
132
- if (uiSchemaHasAnyError(child, errorScopes))
133
- return true;
134
- }
135
- }
136
- if (Array.isArray(uiSchema.elements)) {
137
- for (const el of uiSchema.elements) {
138
- if (uiSchemaHasAnyError(el, errorScopes))
139
- return true;
140
- }
141
- }
142
- return false;
143
- }
144
96
  /**
145
97
  * Generates a UI schema suitable for bulk insert mode with array control.
146
98
  * @param userProvidedUiSchema - Optional user-provided UI schema to use as childUiSchema