@koumoul/vjsf 3.0.0-beta.24 → 3.0.0-beta.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.25",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"vuetify": "^3.6.8"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@json-layout/core": "0.21.
|
|
79
|
+
"@json-layout/core": "0.21.1",
|
|
80
80
|
"@vueuse/core": "^10.5.0",
|
|
81
81
|
"debug": "^4.3.4",
|
|
82
82
|
"ejs": "^3.1.9"
|
package/src/compat/v2.js
CHANGED
|
@@ -123,6 +123,10 @@ const processFragment = (/** @type {import("ajv").SchemaObject} */schema) => {
|
|
|
123
123
|
delete schema['x-itemsProp']
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
if (schema['x-cols']) {
|
|
127
|
+
layout.cols = schema['x-cols']
|
|
128
|
+
}
|
|
129
|
+
|
|
126
130
|
// compact the layout keyword if possible
|
|
127
131
|
if (Object.keys(layout).length === 1 && 'comp' in layout) {
|
|
128
132
|
schema.layout = layout.comp
|