@koumoul/vjsf 3.1.1 → 3.2.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/package.json +2 -2
- package/src/compat/v2.js +4 -0
- package/types/compat/v2.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vuetify": "^3.6.13"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@json-layout/core": "0.
|
|
73
|
+
"@json-layout/core": "0.35.0",
|
|
74
74
|
"@vueuse/core": "^10.5.0",
|
|
75
75
|
"debug": "^4.3.4"
|
|
76
76
|
},
|
package/src/compat/v2.js
CHANGED
|
@@ -140,6 +140,10 @@ const processFragment = (schema, getJSONRef, schemaId, processed) => {
|
|
|
140
140
|
layout.cols = schema['x-cols']
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
if (schema['x-options']?.hideInArrayItem && !layout.if) {
|
|
144
|
+
layout.if = '!summary'
|
|
145
|
+
}
|
|
146
|
+
|
|
143
147
|
// compact the layout keyword if possible
|
|
144
148
|
if (Object.keys(layout).length === 1 && 'comp' in layout) {
|
|
145
149
|
schema.layout = layout.comp
|
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":"AAyMA;;;;;;GAMG;AACH,kCALW,MAAM,+CAEN,MAAM,0BAoBhB;sBAjOqB,KAAK"}
|