@rjsf/utils 6.2.5 → 6.3.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/index.cjs +88 -4
- package/dist/index.cjs.map +3 -3
- package/dist/utils.esm.js +84 -0
- package/dist/utils.esm.js.map +3 -3
- package/dist/utils.umd.js +84 -0
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +1 -0
- package/lib/constants.js.map +1 -1
- package/lib/createSchemaUtils.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/parser/ParserValidator.js.map +1 -1
- package/lib/resolveUiSchema.d.ts +32 -0
- package/lib/resolveUiSchema.js +119 -0
- package/lib/resolveUiSchema.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types.d.ts +18 -0
- package/package.json +3 -3
- package/src/constants.ts +1 -0
- package/src/createSchemaUtils.ts +5 -3
- package/src/index.ts +3 -0
- package/src/parser/ParserValidator.ts +5 -3
- package/src/resolveUiSchema.ts +156 -0
- package/src/types.ts +23 -2
package/dist/utils.umd.js
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
var UI_WIDGET_KEY = "ui:widget";
|
|
84
84
|
var UI_OPTIONS_KEY = "ui:options";
|
|
85
85
|
var UI_GLOBAL_OPTIONS_KEY = "ui:globalOptions";
|
|
86
|
+
var UI_DEFINITIONS_KEY = "ui:definitions";
|
|
86
87
|
var JSON_SCHEMA_DRAFT_2019_09 = "https://json-schema.org/draft/2019-09/schema";
|
|
87
88
|
var JSON_SCHEMA_DRAFT_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
88
89
|
|
|
@@ -3056,6 +3057,86 @@
|
|
|
3056
3057
|
};
|
|
3057
3058
|
}
|
|
3058
3059
|
|
|
3060
|
+
// src/resolveUiSchema.ts
|
|
3061
|
+
var SAME_KEY_KEYWORDS = [ITEMS_KEY, ADDITIONAL_PROPERTIES_KEY];
|
|
3062
|
+
var ARRAY_KEYWORDS = [ONE_OF_KEY, ANY_OF_KEY, ALL_OF_KEY];
|
|
3063
|
+
function expandUiSchemaDefinitions(currentSchema, uiSchema, registry, visited = /* @__PURE__ */ new Set()) {
|
|
3064
|
+
const { rootSchema, uiSchemaDefinitions: definitions } = registry;
|
|
3065
|
+
let result = { ...uiSchema };
|
|
3066
|
+
let resolvedSchema = currentSchema;
|
|
3067
|
+
const ref = currentSchema[REF_KEY];
|
|
3068
|
+
const isRecursive = ref && visited.has(ref);
|
|
3069
|
+
if (ref) {
|
|
3070
|
+
visited.add(ref);
|
|
3071
|
+
if (definitions && ref in definitions) {
|
|
3072
|
+
result = mergeObjects(definitions[ref], result);
|
|
3073
|
+
}
|
|
3074
|
+
if (isRecursive) {
|
|
3075
|
+
return result;
|
|
3076
|
+
}
|
|
3077
|
+
try {
|
|
3078
|
+
resolvedSchema = findSchemaDefinition(ref, rootSchema);
|
|
3079
|
+
} catch {
|
|
3080
|
+
resolvedSchema = currentSchema;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
const properties = resolvedSchema[PROPERTIES_KEY];
|
|
3084
|
+
if (properties && isObject(properties)) {
|
|
3085
|
+
for (const [propName, propSchema] of Object.entries(properties)) {
|
|
3086
|
+
const propUiSchema = result[propName] || {};
|
|
3087
|
+
const expanded = expandUiSchemaDefinitions(propSchema, propUiSchema, registry, new Set(visited));
|
|
3088
|
+
if (Object.keys(expanded).length > 0) {
|
|
3089
|
+
result[propName] = expanded;
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
for (const keyword of SAME_KEY_KEYWORDS) {
|
|
3094
|
+
const subSchema = resolvedSchema[keyword];
|
|
3095
|
+
if (subSchema && isObject(subSchema) && !Array.isArray(subSchema)) {
|
|
3096
|
+
const currentUiSchema = result[keyword];
|
|
3097
|
+
if (typeof currentUiSchema !== "function") {
|
|
3098
|
+
const subUiSchema = currentUiSchema || {};
|
|
3099
|
+
const expanded = expandUiSchemaDefinitions(subSchema, subUiSchema, registry, new Set(visited));
|
|
3100
|
+
if (Object.keys(expanded).length > 0) {
|
|
3101
|
+
result[keyword] = expanded;
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
for (const keyword of ARRAY_KEYWORDS) {
|
|
3107
|
+
const schemaOptions = resolvedSchema[keyword];
|
|
3108
|
+
if (Array.isArray(schemaOptions) && schemaOptions.length > 0) {
|
|
3109
|
+
const currentUiSchemaArray = result[keyword];
|
|
3110
|
+
const uiSchemaArray = Array.isArray(currentUiSchemaArray) ? [...currentUiSchemaArray] : [];
|
|
3111
|
+
let hasExpanded = false;
|
|
3112
|
+
for (let i = 0; i < schemaOptions.length; i++) {
|
|
3113
|
+
const optionSchema = schemaOptions[i];
|
|
3114
|
+
const optionUiSchema = uiSchemaArray[i] || {};
|
|
3115
|
+
const expanded = expandUiSchemaDefinitions(optionSchema, optionUiSchema, registry, new Set(visited));
|
|
3116
|
+
if (Object.keys(expanded).length > 0) {
|
|
3117
|
+
uiSchemaArray[i] = expanded;
|
|
3118
|
+
hasExpanded = true;
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
if (hasExpanded) {
|
|
3122
|
+
result[keyword] = uiSchemaArray;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
return result;
|
|
3127
|
+
}
|
|
3128
|
+
function resolveUiSchema(schema, localUiSchema, registry) {
|
|
3129
|
+
const ref = schema[REF_KEY];
|
|
3130
|
+
const definitionUiSchema = ref ? registry.uiSchemaDefinitions?.[ref] : void 0;
|
|
3131
|
+
if (!definitionUiSchema) {
|
|
3132
|
+
return localUiSchema || {};
|
|
3133
|
+
}
|
|
3134
|
+
if (!localUiSchema || Object.keys(localUiSchema).length === 0) {
|
|
3135
|
+
return { ...definitionUiSchema };
|
|
3136
|
+
}
|
|
3137
|
+
return mergeObjects(definitionUiSchema, localUiSchema);
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3059
3140
|
// src/schemaRequiresTrueValue.ts
|
|
3060
3141
|
function schemaRequiresTrueValue(schema) {
|
|
3061
3142
|
if (schema.const) {
|
|
@@ -3651,6 +3732,7 @@
|
|
|
3651
3732
|
exports.SCHEMA_KEY = SCHEMA_KEY;
|
|
3652
3733
|
exports.SUBMIT_BTN_OPTIONS_KEY = SUBMIT_BTN_OPTIONS_KEY;
|
|
3653
3734
|
exports.TranslatableString = TranslatableString;
|
|
3735
|
+
exports.UI_DEFINITIONS_KEY = UI_DEFINITIONS_KEY;
|
|
3654
3736
|
exports.UI_FIELD_KEY = UI_FIELD_KEY;
|
|
3655
3737
|
exports.UI_GLOBAL_OPTIONS_KEY = UI_GLOBAL_OPTIONS_KEY;
|
|
3656
3738
|
exports.UI_OPTIONS_KEY = UI_OPTIONS_KEY;
|
|
@@ -3676,6 +3758,7 @@
|
|
|
3676
3758
|
exports.enumOptionsValueForIndex = enumOptionsValueForIndex;
|
|
3677
3759
|
exports.errorId = errorId;
|
|
3678
3760
|
exports.examplesId = examplesId;
|
|
3761
|
+
exports.expandUiSchemaDefinitions = expandUiSchemaDefinitions;
|
|
3679
3762
|
exports.findFieldInSchema = findFieldInSchema;
|
|
3680
3763
|
exports.findSchemaDefinition = findSchemaDefinition;
|
|
3681
3764
|
exports.findSelectedOptionInXxxOf = findSelectedOptionInXxxOf;
|
|
@@ -3727,6 +3810,7 @@
|
|
|
3727
3810
|
exports.parseDateString = parseDateString;
|
|
3728
3811
|
exports.rangeSpec = rangeSpec;
|
|
3729
3812
|
exports.replaceStringParameters = replaceStringParameters;
|
|
3813
|
+
exports.resolveUiSchema = resolveUiSchema;
|
|
3730
3814
|
exports.retrieveSchema = retrieveSchema;
|
|
3731
3815
|
exports.sanitizeDataForNewSchema = sanitizeDataForNewSchema;
|
|
3732
3816
|
exports.schemaParser = schemaParser;
|
package/lib/constants.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const UI_FIELD_KEY = "ui:field";
|
|
|
44
44
|
export declare const UI_WIDGET_KEY = "ui:widget";
|
|
45
45
|
export declare const UI_OPTIONS_KEY = "ui:options";
|
|
46
46
|
export declare const UI_GLOBAL_OPTIONS_KEY = "ui:globalOptions";
|
|
47
|
+
export declare const UI_DEFINITIONS_KEY = "ui:definitions";
|
|
47
48
|
/** The JSON Schema version strings
|
|
48
49
|
*/
|
|
49
50
|
export declare const JSON_SCHEMA_DRAFT_2019_09 = "https://json-schema.org/draft/2019-09/schema";
|
package/lib/constants.js
CHANGED
|
@@ -44,6 +44,7 @@ export const UI_FIELD_KEY = 'ui:field';
|
|
|
44
44
|
export const UI_WIDGET_KEY = 'ui:widget';
|
|
45
45
|
export const UI_OPTIONS_KEY = 'ui:options';
|
|
46
46
|
export const UI_GLOBAL_OPTIONS_KEY = 'ui:globalOptions';
|
|
47
|
+
export const UI_DEFINITIONS_KEY = 'ui:definitions';
|
|
47
48
|
/** The JSON Schema version strings
|
|
48
49
|
*/
|
|
49
50
|
export const JSON_SCHEMA_DRAFT_2019_09 = 'https://json-schema.org/draft/2019-09/schema';
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,uBAAuB,CAAC;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC;AAClC,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AACjC,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CA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AiB,CAKvC,SAAiC,EACjC,UAAa,EACb,qCAAqC,GAAG,EAAE,EAC1C,6BAAgE;IAEhE,OAAO,IAAI,WAAW,CACpB,SAAS,EACT,UAAU,EACV,qCAAqC,EACrC,6BAA6B,CAC9B,CAAC;AACJ,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import pad from './pad.js';
|
|
|
48
48
|
import parseDateString from './parseDateString.js';
|
|
49
49
|
import rangeSpec from './rangeSpec.js';
|
|
50
50
|
import replaceStringParameters from './replaceStringParameters.js';
|
|
51
|
+
import resolveUiSchema, { expandUiSchemaDefinitions } from './resolveUiSchema.js';
|
|
51
52
|
import schemaRequiresTrueValue from './schemaRequiresTrueValue.js';
|
|
52
53
|
import shouldRender, { ComponentUpdateStrategy } from './shouldRender.js';
|
|
53
54
|
import shouldRenderOptionalField from './shouldRenderOptionalField.js';
|
|
@@ -70,4 +71,4 @@ export * from './constants.js';
|
|
|
70
71
|
export * from './parser/index.js';
|
|
71
72
|
export * from './schema/index.js';
|
|
72
73
|
export type { ComponentUpdateStrategy, DateElementFormat, DateElementProp, DateElementProps, FileInfoType, UseAltDateWidgetResult, UseFileWidgetPropsResult, };
|
|
73
|
-
export { allowAdditionalItems, ariaDescribedByIds, asNumber, buttonId, canExpand, createErrorHandler, createSchemaUtils, DateElement, dataURItoBlob, dateRangeOptions, deepEquals, descriptionId, englishStringTranslator, enumOptionsDeselectValue, enumOptionsIndexForValue, enumOptionsIsSelected, enumOptionsSelectValue, enumOptionsValueForIndex, errorId, examplesId, ErrorSchemaBuilder, findSchemaDefinition, getChangedFields, getDateElementProps, getDiscriminatorFieldFromSchema, getInputProps, getOptionMatchingSimpleDiscriminator, getSchemaType, getSubmitButtonOptions, getTemplate, getTestIds, getUiOptions, getWidget, guessType, hasWidget, hashForSchema, hashObject, hashString, helpId, isConstant, isCustomWidget, isFixedItems, isFormDataAvailable, isObject, isRootSchema, labelValue, localToUTC, lookupFromFormContext, mergeDefaultsWithFormData, mergeObjects, mergeSchemas, optionalControlsId, optionId, optionsList, orderProperties, pad, parseDateString, rangeSpec, replaceStringParameters, schemaRequiresTrueValue, shallowEquals, shouldRender, shouldRenderOptionalField, sortedJSONStringify, titleId, toConstant, toDateString, toErrorList, toErrorSchema, toFieldPathId, unwrapErrorHandler, useAltDateWidgetProps, useDeepCompareMemo, useFileWidgetProps, utcToLocal, validationDataMerge, withIdRefPrefix, bracketNameGenerator, dotNotationNameGenerator, };
|
|
74
|
+
export { allowAdditionalItems, ariaDescribedByIds, asNumber, buttonId, canExpand, createErrorHandler, createSchemaUtils, DateElement, dataURItoBlob, dateRangeOptions, deepEquals, descriptionId, englishStringTranslator, enumOptionsDeselectValue, enumOptionsIndexForValue, enumOptionsIsSelected, enumOptionsSelectValue, enumOptionsValueForIndex, errorId, examplesId, ErrorSchemaBuilder, findSchemaDefinition, getChangedFields, getDateElementProps, getDiscriminatorFieldFromSchema, getInputProps, getOptionMatchingSimpleDiscriminator, getSchemaType, getSubmitButtonOptions, getTemplate, getTestIds, getUiOptions, getWidget, guessType, hasWidget, hashForSchema, hashObject, hashString, helpId, isConstant, isCustomWidget, isFixedItems, isFormDataAvailable, isObject, isRootSchema, labelValue, localToUTC, lookupFromFormContext, mergeDefaultsWithFormData, mergeObjects, mergeSchemas, optionalControlsId, optionId, optionsList, orderProperties, pad, parseDateString, rangeSpec, replaceStringParameters, resolveUiSchema, expandUiSchemaDefinitions, schemaRequiresTrueValue, shallowEquals, shouldRender, shouldRenderOptionalField, sortedJSONStringify, titleId, toConstant, toDateString, toErrorList, toErrorSchema, toFieldPathId, unwrapErrorHandler, useAltDateWidgetProps, useDeepCompareMemo, useFileWidgetProps, utcToLocal, validationDataMerge, withIdRefPrefix, bracketNameGenerator, dotNotationNameGenerator, };
|
package/lib/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import pad from './pad.js';
|
|
|
48
48
|
import parseDateString from './parseDateString.js';
|
|
49
49
|
import rangeSpec from './rangeSpec.js';
|
|
50
50
|
import replaceStringParameters from './replaceStringParameters.js';
|
|
51
|
+
import resolveUiSchema, { expandUiSchemaDefinitions } from './resolveUiSchema.js';
|
|
51
52
|
import schemaRequiresTrueValue from './schemaRequiresTrueValue.js';
|
|
52
53
|
import shouldRender from './shouldRender.js';
|
|
53
54
|
import shouldRenderOptionalField from './shouldRenderOptionalField.js';
|
|
@@ -69,5 +70,5 @@ export * from './enums.js';
|
|
|
69
70
|
export * from './constants.js';
|
|
70
71
|
export * from './parser/index.js';
|
|
71
72
|
export * from './schema/index.js';
|
|
72
|
-
export { allowAdditionalItems, ariaDescribedByIds, asNumber, buttonId, canExpand, createErrorHandler, createSchemaUtils, DateElement, dataURItoBlob, dateRangeOptions, deepEquals, descriptionId, englishStringTranslator, enumOptionsDeselectValue, enumOptionsIndexForValue, enumOptionsIsSelected, enumOptionsSelectValue, enumOptionsValueForIndex, errorId, examplesId, ErrorSchemaBuilder, findSchemaDefinition, getChangedFields, getDateElementProps, getDiscriminatorFieldFromSchema, getInputProps, getOptionMatchingSimpleDiscriminator, getSchemaType, getSubmitButtonOptions, getTemplate, getTestIds, getUiOptions, getWidget, guessType, hasWidget, hashForSchema, hashObject, hashString, helpId, isConstant, isCustomWidget, isFixedItems, isFormDataAvailable, isObject, isRootSchema, labelValue, localToUTC, lookupFromFormContext, mergeDefaultsWithFormData, mergeObjects, mergeSchemas, optionalControlsId, optionId, optionsList, orderProperties, pad, parseDateString, rangeSpec, replaceStringParameters, schemaRequiresTrueValue, shallowEquals, shouldRender, shouldRenderOptionalField, sortedJSONStringify, titleId, toConstant, toDateString, toErrorList, toErrorSchema, toFieldPathId, unwrapErrorHandler, useAltDateWidgetProps, useDeepCompareMemo, useFileWidgetProps, utcToLocal, validationDataMerge, withIdRefPrefix, bracketNameGenerator, dotNotationNameGenerator, };
|
|
73
|
+
export { allowAdditionalItems, ariaDescribedByIds, asNumber, buttonId, canExpand, createErrorHandler, createSchemaUtils, DateElement, dataURItoBlob, dateRangeOptions, deepEquals, descriptionId, englishStringTranslator, enumOptionsDeselectValue, enumOptionsIndexForValue, enumOptionsIsSelected, enumOptionsSelectValue, enumOptionsValueForIndex, errorId, examplesId, ErrorSchemaBuilder, findSchemaDefinition, getChangedFields, getDateElementProps, getDiscriminatorFieldFromSchema, getInputProps, getOptionMatchingSimpleDiscriminator, getSchemaType, getSubmitButtonOptions, getTemplate, getTestIds, getUiOptions, getWidget, guessType, hasWidget, hashForSchema, hashObject, hashString, helpId, isConstant, isCustomWidget, isFixedItems, isFormDataAvailable, isObject, isRootSchema, labelValue, localToUTC, lookupFromFormContext, mergeDefaultsWithFormData, mergeObjects, mergeSchemas, optionalControlsId, optionId, optionsList, orderProperties, pad, parseDateString, rangeSpec, replaceStringParameters, resolveUiSchema, expandUiSchemaDefinitions, schemaRequiresTrueValue, shallowEquals, shouldRender, shouldRenderOptionalField, sortedJSONStringify, titleId, toConstant, toDateString, toErrorList, toErrorSchema, toFieldPathId, unwrapErrorHandler, useAltDateWidgetProps, useDeepCompareMemo, useFileWidgetProps, utcToLocal, validationDataMerge, withIdRefPrefix, bracketNameGenerator, dotNotationNameGenerator, };
|
|
73
74
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,uBAAuB,MAAM,2BAA2B,CA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ExB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAYzB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,+BAA+B,EAC/B,aAAa,EACb,oCAAoC,EACpC,aAAa,EACb,sBAAsB,EACtB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,UAAU,EACV,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,qBAAqB,EACrB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,GAAG,EACH,eAAe,EACf,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GACzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,QAAQ,MAAM,YAAY,CAA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AuB,EACvB,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParserValidator.js","sourceRoot":"","sources":["../../src/parser/ParserValidator.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAa7C,OAAO,UAAU,MAAM,eAAe,CAAC;AAQvC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;
|
|
1
|
+
{"version":3,"file":"ParserValidator.js","sourceRoot":"","sources":["../../src/parser/ParserValidator.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAa7C,OAAO,UAAU,MAAM,eAAe,CAAC;AAQvC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAWlC;;;;OAIG;IACH,YAAY,UAAa;QARzB,4DAA4D;QAC5D,cAAS,GAAiB,EAAE,CAAC;QAQ3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,CAAI,UAAU,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED;OACG;IACH,KAAK;QACH,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAS,EAAE,IAAY;QAC/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CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,YAA6B,EAAE,UAAqB;QAC9D,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;OAQG;IACH,gBAAgB,CACd,SAAY,EACZ,OAAU,EACV,eAA0C,EAC1C,gBAA4C,EAC5C,SAA6B;QAE7B,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FormContextType, Registry, RJSFSchema, StrictRJSFSchema, UiSchema } from './types.js';
|
|
2
|
+
/** Expands `ui:definitions` into the uiSchema by walking the schema tree and finding all `$ref`s.
|
|
3
|
+
* Called once at form initialization to pre-expand definitions into the uiSchema structure.
|
|
4
|
+
*
|
|
5
|
+
* For recursive schemas, expansion stops at recursion points to avoid infinite loops.
|
|
6
|
+
* Runtime resolution via `resolveUiSchema` handles these cases using registry definitions.
|
|
7
|
+
*
|
|
8
|
+
* @param currentSchema - The current schema node being processed
|
|
9
|
+
* @param uiSchema - The uiSchema at the current path
|
|
10
|
+
* @param registry - The registry containing rootSchema and uiSchemaDefinitions
|
|
11
|
+
* @param visited - Set of $refs already visited (to detect recursion)
|
|
12
|
+
* @returns - The expanded uiSchema with definitions merged in
|
|
13
|
+
*/
|
|
14
|
+
export declare function expandUiSchemaDefinitions<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(currentSchema: S, uiSchema: UiSchema<T, S, F>, registry: Registry<T, S, F>, visited?: Set<string>): UiSchema<T, S, F>;
|
|
15
|
+
/** Resolves the uiSchema for a given schema, considering `ui:definitions` stored in the registry.
|
|
16
|
+
*
|
|
17
|
+
* This function is called at runtime for each field. It handles recursive schemas where the
|
|
18
|
+
* pre-expansion in `expandUiSchemaDefinitions` couldn't go deeper.
|
|
19
|
+
*
|
|
20
|
+
* When the schema contains a `$ref`, this function looks up the corresponding uiSchema definition
|
|
21
|
+
* from `registry.uiSchemaDefinitions` and merges it with any local uiSchema overrides.
|
|
22
|
+
*
|
|
23
|
+
* Resolution order (later sources override earlier):
|
|
24
|
+
* 1. `ui:definitions[$ref]` - base definition from registry
|
|
25
|
+
* 2. `localUiSchema` - local overrides at current path
|
|
26
|
+
*
|
|
27
|
+
* @param schema - The JSON schema (may still contain `$ref` for recursive schemas)
|
|
28
|
+
* @param localUiSchema - The uiSchema at the current path (local overrides)
|
|
29
|
+
* @param registry - The registry containing `uiSchemaDefinitions`
|
|
30
|
+
* @returns - The resolved uiSchema with definitions merged in
|
|
31
|
+
*/
|
|
32
|
+
export default function resolveUiSchema<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(schema: S, localUiSchema: UiSchema<T, S, F> | undefined, registry: Registry<T, S, F>): UiSchema<T, S, F>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { ADDITIONAL_PROPERTIES_KEY, ALL_OF_KEY, ANY_OF_KEY, ITEMS_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, } from './constants.js';
|
|
2
|
+
import findSchemaDefinition from './findSchemaDefinition.js';
|
|
3
|
+
import isObject from './isObject.js';
|
|
4
|
+
import mergeObjects from './mergeObjects.js';
|
|
5
|
+
// Keywords where child schemas map to uiSchema at the SAME key
|
|
6
|
+
const SAME_KEY_KEYWORDS = [ITEMS_KEY, ADDITIONAL_PROPERTIES_KEY];
|
|
7
|
+
// Keywords where child schemas are in an array, each mapping to uiSchema[keyword][i]
|
|
8
|
+
const ARRAY_KEYWORDS = [ONE_OF_KEY, ANY_OF_KEY, ALL_OF_KEY];
|
|
9
|
+
/** Expands `ui:definitions` into the uiSchema by walking the schema tree and finding all `$ref`s.
|
|
10
|
+
* Called once at form initialization to pre-expand definitions into the uiSchema structure.
|
|
11
|
+
*
|
|
12
|
+
* For recursive schemas, expansion stops at recursion points to avoid infinite loops.
|
|
13
|
+
* Runtime resolution via `resolveUiSchema` handles these cases using registry definitions.
|
|
14
|
+
*
|
|
15
|
+
* @param currentSchema - The current schema node being processed
|
|
16
|
+
* @param uiSchema - The uiSchema at the current path
|
|
17
|
+
* @param registry - The registry containing rootSchema and uiSchemaDefinitions
|
|
18
|
+
* @param visited - Set of $refs already visited (to detect recursion)
|
|
19
|
+
* @returns - The expanded uiSchema with definitions merged in
|
|
20
|
+
*/
|
|
21
|
+
export function expandUiSchemaDefinitions(currentSchema, uiSchema, registry, visited = new Set()) {
|
|
22
|
+
const { rootSchema, uiSchemaDefinitions: definitions } = registry;
|
|
23
|
+
let result = { ...uiSchema };
|
|
24
|
+
let resolvedSchema = currentSchema;
|
|
25
|
+
const ref = currentSchema[REF_KEY];
|
|
26
|
+
const isRecursive = ref && visited.has(ref);
|
|
27
|
+
if (ref) {
|
|
28
|
+
visited.add(ref);
|
|
29
|
+
if (definitions && ref in definitions) {
|
|
30
|
+
result = mergeObjects(definitions[ref], result);
|
|
31
|
+
}
|
|
32
|
+
if (isRecursive) {
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
resolvedSchema = findSchemaDefinition(ref, rootSchema);
|
|
37
|
+
}
|
|
38
|
+
catch (_a) {
|
|
39
|
+
resolvedSchema = currentSchema;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Process properties (each property maps to uiSchema[propName] - flattened)
|
|
43
|
+
const properties = resolvedSchema[PROPERTIES_KEY];
|
|
44
|
+
if (properties && isObject(properties)) {
|
|
45
|
+
for (const [propName, propSchema] of Object.entries(properties)) {
|
|
46
|
+
const propUiSchema = (result[propName] || {});
|
|
47
|
+
const expanded = expandUiSchemaDefinitions(propSchema, propUiSchema, registry, new Set(visited));
|
|
48
|
+
if (Object.keys(expanded).length > 0) {
|
|
49
|
+
result[propName] = expanded;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Process keywords where child maps to same key in uiSchema (items, additionalProperties)
|
|
54
|
+
for (const keyword of SAME_KEY_KEYWORDS) {
|
|
55
|
+
const subSchema = resolvedSchema[keyword];
|
|
56
|
+
if (subSchema && isObject(subSchema) && !Array.isArray(subSchema)) {
|
|
57
|
+
const currentUiSchema = result[keyword];
|
|
58
|
+
if (typeof currentUiSchema !== 'function') {
|
|
59
|
+
const subUiSchema = (currentUiSchema || {});
|
|
60
|
+
const expanded = expandUiSchemaDefinitions(subSchema, subUiSchema, registry, new Set(visited));
|
|
61
|
+
if (Object.keys(expanded).length > 0) {
|
|
62
|
+
result[keyword] = expanded;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
// Process array keywords (oneOf, anyOf, allOf) - each option maps to uiSchema[keyword][i]
|
|
68
|
+
for (const keyword of ARRAY_KEYWORDS) {
|
|
69
|
+
const schemaOptions = resolvedSchema[keyword];
|
|
70
|
+
if (Array.isArray(schemaOptions) && schemaOptions.length > 0) {
|
|
71
|
+
const currentUiSchemaArray = result[keyword];
|
|
72
|
+
const uiSchemaArray = Array.isArray(currentUiSchemaArray) ? [...currentUiSchemaArray] : [];
|
|
73
|
+
let hasExpanded = false;
|
|
74
|
+
for (let i = 0; i < schemaOptions.length; i++) {
|
|
75
|
+
const optionSchema = schemaOptions[i];
|
|
76
|
+
const optionUiSchema = (uiSchemaArray[i] || {});
|
|
77
|
+
const expanded = expandUiSchemaDefinitions(optionSchema, optionUiSchema, registry, new Set(visited));
|
|
78
|
+
if (Object.keys(expanded).length > 0) {
|
|
79
|
+
uiSchemaArray[i] = expanded;
|
|
80
|
+
hasExpanded = true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (hasExpanded) {
|
|
84
|
+
result[keyword] = uiSchemaArray;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
/** Resolves the uiSchema for a given schema, considering `ui:definitions` stored in the registry.
|
|
91
|
+
*
|
|
92
|
+
* This function is called at runtime for each field. It handles recursive schemas where the
|
|
93
|
+
* pre-expansion in `expandUiSchemaDefinitions` couldn't go deeper.
|
|
94
|
+
*
|
|
95
|
+
* When the schema contains a `$ref`, this function looks up the corresponding uiSchema definition
|
|
96
|
+
* from `registry.uiSchemaDefinitions` and merges it with any local uiSchema overrides.
|
|
97
|
+
*
|
|
98
|
+
* Resolution order (later sources override earlier):
|
|
99
|
+
* 1. `ui:definitions[$ref]` - base definition from registry
|
|
100
|
+
* 2. `localUiSchema` - local overrides at current path
|
|
101
|
+
*
|
|
102
|
+
* @param schema - The JSON schema (may still contain `$ref` for recursive schemas)
|
|
103
|
+
* @param localUiSchema - The uiSchema at the current path (local overrides)
|
|
104
|
+
* @param registry - The registry containing `uiSchemaDefinitions`
|
|
105
|
+
* @returns - The resolved uiSchema with definitions merged in
|
|
106
|
+
*/
|
|
107
|
+
export default function resolveUiSchema(schema, localUiSchema, registry) {
|
|
108
|
+
var _a;
|
|
109
|
+
const ref = schema[REF_KEY];
|
|
110
|
+
const definitionUiSchema = ref ? (_a = registry.uiSchemaDefinitions) === null || _a === void 0 ? void 0 : _a[ref] : undefined;
|
|
111
|
+
if (!definitionUiSchema) {
|
|
112
|
+
return localUiSchema || {};
|
|
113
|
+
}
|
|
114
|
+
if (!localUiSchema || Object.keys(localUiSchema).length === 0) {
|
|
115
|
+
return { ...definitionUiSchema };
|
|
116
|
+
}
|
|
117
|
+
return mergeObjects(definitionUiSchema, localUiSchema);
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=resolveUiSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveUiSchema.js","sourceRoot":"","sources":["../src/resolveUiSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,OAAO,GACR,MAAM,aAAa,CAAC;AACrB,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,QAAQ,MAAM,Y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