@koumoul/vjsf 3.15.5 → 3.15.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.15.5",
3
+ "version": "3.15.7",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test": "vitest run",
@@ -71,7 +71,7 @@
71
71
  "vuetify": "^3.6.13"
72
72
  },
73
73
  "dependencies": {
74
- "@json-layout/core": "~1.10.4",
74
+ "@json-layout/core": "~1.10.9",
75
75
  "@json-layout/vocabulary": "~2.3.3",
76
76
  "@vueuse/core": "^12.5.0",
77
77
  "debug": "^4.3.4"
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
- layout.comp = layout.comp ?? 'select'
142
140
  const url = schema['x-fromUrl']
143
141
  layout.getItems = { url: fixExpression(url, 'js-tpl') }
144
142
  delete schema['x-fromUrl']
@@ -165,7 +163,7 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
165
163
 
166
164
  if (schema.type === 'array' && schema.items && !layout.getItems) {
167
165
  if (!Array.isArray(schema.items)) {
168
- layout.comp = 'list'
166
+ layout.comp = layout.comp ?? 'list'
169
167
  if (schema['x-itemTitle']) layout.itemTitle = `data["${schema['x-itemTitle']}"]`
170
168
  else {
171
169
  // vjsf 2 implicitly used a title property as an item title in lists
@@ -1 +1 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"AAyOA;;;;;;GAMG;AACH,kCALW,MAAM,2CAEN,MAAM,0BAoBhB;sBAjQqB,KAAK"}
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"}