@koumoul/vjsf 3.24.0 → 3.25.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 +3 -3
- package/src/components/nodes/card.vue +10 -2
- package/src/components/nodes/stepper.vue +8 -1
- package/src/components/nodes/tabs.vue +10 -3
- package/src/components/nodes/vertical-tabs.vue +10 -3
- package/types/components/nodes/card.vue.d.ts +2 -2
- package/types/components/nodes/tabs.vue.d.ts +2 -2
- package/types/components/nodes/vertical-tabs.vue.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test-tz1": "TZ=Europe/Paris vitest run",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"vuetify": "^3.8.12"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@json-layout/core": "~2.
|
|
76
|
-
"@json-layout/vocabulary": "~2.
|
|
75
|
+
"@json-layout/core": "~2.3.0",
|
|
76
|
+
"@json-layout/vocabulary": "~2.11.0",
|
|
77
77
|
"@vueuse/core": "^12.5.0",
|
|
78
78
|
"debug": "^4.3.4"
|
|
79
79
|
},
|
|
@@ -3,11 +3,12 @@ import { VCard } from 'vuetify/components/VCard'
|
|
|
3
3
|
import { VContainer, VRow } from 'vuetify/components/VGrid'
|
|
4
4
|
import Node from '../node.vue'
|
|
5
5
|
import SectionHeader from '../fragments/section-header.vue'
|
|
6
|
+
import { computed } from 'vue'
|
|
6
7
|
import { useDefaults } from 'vuetify'
|
|
7
8
|
|
|
8
9
|
useDefaults({}, 'VjsfCard')
|
|
9
10
|
|
|
10
|
-
defineProps({
|
|
11
|
+
const { modelValue, statefulLayout } = defineProps({
|
|
11
12
|
modelValue: {
|
|
12
13
|
/** @type import('vue').PropType<import('../../types.js').VjsfCardNode> */
|
|
13
14
|
type: Object,
|
|
@@ -20,10 +21,17 @@ defineProps({
|
|
|
20
21
|
}
|
|
21
22
|
})
|
|
22
23
|
|
|
24
|
+
const nodeProps = computed(() => {
|
|
25
|
+
return {
|
|
26
|
+
title: modelValue.layout.title || undefined,
|
|
27
|
+
...modelValue.props,
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
23
31
|
</script>
|
|
24
32
|
|
|
25
33
|
<template>
|
|
26
|
-
<v-card
|
|
34
|
+
<v-card v-bind="nodeProps">
|
|
27
35
|
<v-container fluid>
|
|
28
36
|
<section-header
|
|
29
37
|
:node="modelValue"
|
|
@@ -25,6 +25,10 @@ const props = defineProps({
|
|
|
25
25
|
}
|
|
26
26
|
})
|
|
27
27
|
|
|
28
|
+
const nodeProps = computed(() => {
|
|
29
|
+
return props.modelValue.props
|
|
30
|
+
})
|
|
31
|
+
|
|
28
32
|
const step = ref(0)
|
|
29
33
|
|
|
30
34
|
const firstErrorIndex = computed(() => {
|
|
@@ -41,7 +45,10 @@ const goNext = () => {
|
|
|
41
45
|
|
|
42
46
|
<template>
|
|
43
47
|
<section-header :node="modelValue" />
|
|
44
|
-
<v-stepper
|
|
48
|
+
<v-stepper
|
|
49
|
+
v-model="step"
|
|
50
|
+
v-bind="nodeProps"
|
|
51
|
+
>
|
|
45
52
|
<v-stepper-header>
|
|
46
53
|
<template
|
|
47
54
|
v-for="(child, i) of modelValue.children"
|
|
@@ -5,7 +5,7 @@ import { VIcon } from 'vuetify/components/VIcon'
|
|
|
5
5
|
import { VSheet } from 'vuetify/components/VSheet'
|
|
6
6
|
import { VWindow, VWindowItem } from 'vuetify/components/VWindow'
|
|
7
7
|
import { useDefaults } from 'vuetify'
|
|
8
|
-
import { ref } from 'vue'
|
|
8
|
+
import { ref, computed } from 'vue'
|
|
9
9
|
import { isSection } from '@json-layout/core/state'
|
|
10
10
|
import Node from '../node.vue'
|
|
11
11
|
import SectionHeader from '../fragments/section-header.vue'
|
|
@@ -15,7 +15,7 @@ import useCompDefaults from '../../composables/use-comp-defaults.js'
|
|
|
15
15
|
useDefaults({}, 'VjsfTabs')
|
|
16
16
|
const vSheetProps = useCompDefaults('VjsfTabs-VSheet', { border: true })
|
|
17
17
|
|
|
18
|
-
defineProps({
|
|
18
|
+
const { modelValue, statefulLayout } = defineProps({
|
|
19
19
|
modelValue: {
|
|
20
20
|
/** @type import('vue').PropType<import('../../types.js').VjsfTabsNode> */
|
|
21
21
|
type: Object,
|
|
@@ -28,6 +28,13 @@ defineProps({
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
const nodeProps = computed(() => {
|
|
32
|
+
return {
|
|
33
|
+
...modelValue.props,
|
|
34
|
+
directory: 'horizontal'
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
|
|
31
38
|
const tab = ref(0)
|
|
32
39
|
</script>
|
|
33
40
|
|
|
@@ -36,7 +43,7 @@ const tab = ref(0)
|
|
|
36
43
|
<v-sheet v-bind="vSheetProps">
|
|
37
44
|
<v-tabs
|
|
38
45
|
v-model="tab"
|
|
39
|
-
|
|
46
|
+
v-bind="nodeProps"
|
|
40
47
|
>
|
|
41
48
|
<v-tab
|
|
42
49
|
v-for="(child, i) of modelValue.children"
|
|
@@ -5,7 +5,7 @@ import { VContainer, VRow } from 'vuetify/components/VGrid'
|
|
|
5
5
|
import { VIcon } from 'vuetify/components/VIcon'
|
|
6
6
|
import { VSheet } from 'vuetify/components/VSheet'
|
|
7
7
|
import { VWindow, VWindowItem } from 'vuetify/components/VWindow'
|
|
8
|
-
import { ref } from 'vue'
|
|
8
|
+
import { ref, computed } from 'vue'
|
|
9
9
|
import Node from '../node.vue'
|
|
10
10
|
import SectionHeader from '../fragments/section-header.vue'
|
|
11
11
|
import ChildSubtitle from '../fragments/child-subtitle.vue'
|
|
@@ -15,7 +15,7 @@ import useCompDefaults from '../../composables/use-comp-defaults.js'
|
|
|
15
15
|
useDefaults({}, 'VjsfVerticalTabs')
|
|
16
16
|
const vSheetProps = useCompDefaults('VjsfVerticalTabs-VSheet', { border: true })
|
|
17
17
|
|
|
18
|
-
defineProps({
|
|
18
|
+
const { modelValue, statefulLayout } = defineProps({
|
|
19
19
|
modelValue: {
|
|
20
20
|
/** @type import('vue').PropType<import('../../types.js').VjsfVerticalTabsNode> */
|
|
21
21
|
type: Object,
|
|
@@ -28,6 +28,13 @@ defineProps({
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
const nodeProps = computed(() => {
|
|
32
|
+
return {
|
|
33
|
+
...modelValue.props,
|
|
34
|
+
directory: 'vertical'
|
|
35
|
+
}
|
|
36
|
+
})
|
|
37
|
+
|
|
31
38
|
const tab = ref(0)
|
|
32
39
|
</script>
|
|
33
40
|
|
|
@@ -37,7 +44,7 @@ const tab = ref(0)
|
|
|
37
44
|
<div class="d-flex flex-row">
|
|
38
45
|
<v-tabs
|
|
39
46
|
v-model="tab"
|
|
40
|
-
|
|
47
|
+
v-bind="nodeProps"
|
|
41
48
|
>
|
|
42
49
|
<v-tab
|
|
43
50
|
v-for="(child, i) of modelValue.children"
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
2
2
|
modelValue: import("../../types.js").VjsfCardNode;
|
|
3
3
|
statefulLayout: import("../../types.js").VjsfStatefulLayout;
|
|
4
4
|
$props: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
modelValue?: import("../../types.js").VjsfCardNode | undefined;
|
|
6
|
+
statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
|
|
7
7
|
};
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
2
2
|
modelValue: import("../../types.js").VjsfTabsNode;
|
|
3
3
|
statefulLayout: import("../../types.js").VjsfStatefulLayout;
|
|
4
4
|
$props: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
modelValue?: import("../../types.js").VjsfTabsNode | undefined;
|
|
6
|
+
statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
|
|
7
7
|
};
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
2
2
|
modelValue: import("../../types.js").VjsfVerticalTabsNode;
|
|
3
3
|
statefulLayout: import("../../types.js").VjsfStatefulLayout;
|
|
4
4
|
$props: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
modelValue?: import("../../types.js").VjsfVerticalTabsNode | undefined;
|
|
6
|
+
statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
|
|
7
7
|
};
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
export default _default;
|