@koumoul/vjsf 3.15.4 → 3.15.6
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/package.json +1 -1
- package/src/compat/v2.js +1 -3
- package/types/compat/v2.d.ts.map +1 -1
package/package.json
CHANGED
package/src/compat/v2.js
CHANGED
|
@@ -127,7 +127,6 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
if (schema['x-fromData']) {
|
|
130
|
-
layout.comp = layout.comp ?? 'select'
|
|
131
130
|
layout.getItems = fixExpression(schema['x-fromData'])
|
|
132
131
|
delete schema['x-fromData']
|
|
133
132
|
}
|
|
@@ -138,7 +137,6 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
|
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
if (schema['x-fromUrl']) {
|
|
141
|
-
/** @type string */
|
|
142
140
|
const url = schema['x-fromUrl']
|
|
143
141
|
layout.getItems = { url: fixExpression(url, 'js-tpl') }
|
|
144
142
|
delete schema['x-fromUrl']
|
|
@@ -163,7 +161,7 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
|
|
|
163
161
|
layout.if = '!summary'
|
|
164
162
|
}
|
|
165
163
|
|
|
166
|
-
if (schema.type === 'array' && schema.items) {
|
|
164
|
+
if (schema.type === 'array' && schema.items && !layout.getItems) {
|
|
167
165
|
if (!Array.isArray(schema.items)) {
|
|
168
166
|
layout.comp = 'list'
|
|
169
167
|
if (schema['x-itemTitle']) layout.itemTitle = `data["${schema['x-itemTitle']}"]`
|
package/types/compat/v2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"AAuOA;;;;;;GAMG;AACH,kCALW,MAAM,2CAEN,MAAM,0BAoBhB;sBA/PqB,KAAK"}
|