@koumoul/vjsf 3.18.0 → 3.19.1
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 +3 -3
- package/src/components/node.vue +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.1",
|
|
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,8 +71,8 @@
|
|
|
71
71
|
"vuetify": "^3.8.12"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@json-layout/core": "~1.
|
|
75
|
-
"@json-layout/vocabulary": "~2.
|
|
74
|
+
"@json-layout/core": "~1.14.0",
|
|
75
|
+
"@json-layout/vocabulary": "~2.8.0",
|
|
76
76
|
"@vueuse/core": "^12.5.0",
|
|
77
77
|
"debug": "^4.3.4"
|
|
78
78
|
},
|
package/src/components/node.vue
CHANGED
|
@@ -65,7 +65,7 @@ const nodeClasses = computed(() => {
|
|
|
65
65
|
return classes
|
|
66
66
|
})
|
|
67
67
|
|
|
68
|
-
if (props.modelValue.layout.comp !== 'none' && !props.modelValue.slots?.component && !props.statefulLayout.options.nodeComponents[props.modelValue.layout.comp]) {
|
|
68
|
+
if (props.modelValue.layout.comp !== 'none' && !props.modelValue.slots?.component && !props.modelValue.slots?.compositeComponent && !props.statefulLayout.options.nodeComponents[props.modelValue.layout.comp]) {
|
|
69
69
|
console.error(`vjsf: missing component to render vjsf node "${props.modelValue.layout.comp}", maybe you forgot to register a component from a plugin ?`)
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -98,6 +98,13 @@ if (props.modelValue.layout.comp !== 'none' && !props.modelValue.slots?.componen
|
|
|
98
98
|
:node="modelValue"
|
|
99
99
|
:stateful-layout="statefulLayout"
|
|
100
100
|
/>
|
|
101
|
+
<node-slot
|
|
102
|
+
v-else-if="modelValue.slots?.compositeComponent"
|
|
103
|
+
key="compositeComponent"
|
|
104
|
+
:layout-slot="modelValue.slots?.compositeComponent"
|
|
105
|
+
:node="modelValue"
|
|
106
|
+
:stateful-layout="statefulLayout"
|
|
107
|
+
/>
|
|
101
108
|
<component
|
|
102
109
|
:is="props.statefulLayout.options.nodeComponents[modelValue.layout.comp]"
|
|
103
110
|
v-else
|