@koumoul/vjsf 3.0.0-beta.33 → 3.0.0-beta.35

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.
Files changed (34) hide show
  1. package/package.json +3 -3
  2. package/src/components/fragments/help-message.vue +3 -1
  3. package/src/components/fragments/section-header.vue +1 -1
  4. package/src/components/fragments/select-item-icon.vue +1 -1
  5. package/src/components/fragments/select-item.vue +2 -1
  6. package/src/components/fragments/selection-group.vue +5 -1
  7. package/src/components/fragments/text-field-menu.vue +2 -1
  8. package/src/components/node.vue +2 -1
  9. package/src/components/nodes/autocomplete.vue +1 -1
  10. package/src/components/nodes/card.vue +2 -1
  11. package/src/components/nodes/checkbox.vue +1 -1
  12. package/src/components/nodes/color-picker.vue +1 -1
  13. package/src/components/nodes/combobox.vue +1 -1
  14. package/src/components/nodes/expansion-panels.vue +3 -1
  15. package/src/components/nodes/file-input.vue +1 -1
  16. package/src/components/nodes/list.vue +7 -1
  17. package/src/components/nodes/number-combobox.vue +1 -1
  18. package/src/components/nodes/number-field.vue +1 -1
  19. package/src/components/nodes/one-of-select.vue +2 -1
  20. package/src/components/nodes/radio-group.vue +3 -1
  21. package/src/components/nodes/section.vue +1 -1
  22. package/src/components/nodes/select.vue +1 -1
  23. package/src/components/nodes/slider.vue +1 -1
  24. package/src/components/nodes/stepper.vue +4 -1
  25. package/src/components/nodes/switch.vue +1 -1
  26. package/src/components/nodes/tabs.vue +5 -1
  27. package/src/components/nodes/text-field.vue +1 -1
  28. package/src/components/nodes/textarea.vue +1 -1
  29. package/src/components/nodes/vertical-tabs.vue +5 -1
  30. package/src/components/tree.vue +1 -1
  31. package/types/components/fragments/selection-group.vue.d.ts.map +1 -1
  32. package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -1
  33. package/types/components/nodes/radio-group.vue.d.ts.map +1 -1
  34. package/types/components/vjsf.vue.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.0.0-beta.33",
3
+ "version": "3.0.0-beta.35",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test": "vitest",
@@ -73,10 +73,10 @@
73
73
  },
74
74
  "peerDependencies": {
75
75
  "vue": "^3.4.3",
76
- "vuetify": "^3.6.8"
76
+ "vuetify": "^3.6.13"
77
77
  },
78
78
  "dependencies": {
79
- "@json-layout/core": "0.28.1",
79
+ "@json-layout/core": "0.28.2",
80
80
  "@vueuse/core": "^10.5.0",
81
81
  "debug": "^4.3.4",
82
82
  "ejs": "^3.1.9"
@@ -23,7 +23,9 @@
23
23
  </template>
24
24
 
25
25
  <script setup>
26
- import { VAlert, VBtn, VSlideXReverseTransition } from 'vuetify/components'
26
+ import { VSlideXReverseTransition } from 'vuetify/components/transitions'
27
+ import { VAlert} from 'vuetify/components/VAlert'
28
+ import { VBtn } from 'vuetify/components/VBtn'
27
29
  import { ref } from 'vue'
28
30
 
29
31
  defineProps({
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VAlert } from 'vuetify/components'
2
+ import { VAlert } from 'vuetify/components/VAlert'
3
3
  import { computed } from 'vue'
4
4
 
5
5
  const props = defineProps({
@@ -2,7 +2,7 @@
2
2
  // cf https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VSelect/VSelect.tsx#L374
3
3
 
4
4
  import { defineComponent, h, computed } from 'vue'
5
- import { VIcon } from 'vuetify/components'
5
+ import { VIcon } from 'vuetify/components/VIcon'
6
6
 
7
7
  export default defineComponent({
8
8
  props: {
@@ -1,7 +1,8 @@
1
1
  <script setup>
2
2
  // cf https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VSelect/VSelect.tsx#L374
3
3
 
4
- import { VListItem, VCheckboxBtn } from 'vuetify/components'
4
+ import { VCheckboxBtn } from 'vuetify/components/VCheckbox'
5
+ import { VListItem } from 'vuetify/components/VList'
5
6
  import VSelectItemIcon from './select-item-icon.vue'
6
7
 
7
8
  defineProps({
@@ -1,5 +1,9 @@
1
1
  <script>
2
- import { VInput, VLabel, VCheckbox, VSwitch, VSkeletonLoader } from 'vuetify/components'
2
+ import { VSkeletonLoader } from 'vuetify/components/VSkeletonLoader'
3
+ import { VInput } from 'vuetify/components/VInput'
4
+ import { VLabel } from 'vuetify/components/VLabel'
5
+ import { VCheckbox } from 'vuetify/components/VCheckbox'
6
+ import { VSwitch } from 'vuetify/components/VSwitch'
3
7
  import { defineComponent, h, computed } from 'vue'
4
8
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
9
  import useGetItems from '../../composables/use-get-items.js'
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
- import { VMenu, VTextField } from 'vuetify/components'
2
+ import { VMenu } from 'vuetify/components/VMenu'
3
+ import { VTextField } from 'vuetify/components/VTextField'
3
4
  import { computed, ref } from 'vue'
4
5
  import { getCompProps, getInputProps } from '../../utils/index.js'
5
6
 
@@ -1,7 +1,8 @@
1
1
  <script setup>
2
2
  import { computed } from 'vue'
3
3
  import { useTheme, useDefaults } from 'vuetify'
4
- import { VCol, VDefaultsProvider } from 'vuetify/components'
4
+ import { VCol } from 'vuetify/components/VGrid'
5
+ import { VDefaultsProvider } from 'vuetify/components/VDefaultsProvider'
5
6
  import NodeSlot from './fragments/node-slot.vue'
6
7
  import HelpMessage from './fragments/help-message.vue'
7
8
 
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { VAutocomplete } from 'vuetify/components'
2
+ import { VAutocomplete } from 'vuetify/components/VAutocomplete'
3
3
  import { useDefaults } from 'vuetify'
4
4
  import { defineComponent, computed, h } from 'vue'
5
5
  import { getInputProps, getCompSlots } from '../../utils/index.js'
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
- import { VCard, VContainer, VRow } from 'vuetify/components'
2
+ import { VCard } from 'vuetify/components/VCard'
3
+ import { VContainer, VRow } from 'vuetify/components/VGrid'
3
4
  import Node from '../node.vue'
4
5
  import SectionHeader from '../fragments/section-header.vue'
5
6
  import { useDefaults } from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VCheckbox } from 'vuetify/components'
2
+ import { VCheckbox } from 'vuetify/components/VCheckbox'
3
3
  import { computed } from 'vue'
4
4
  import { getInputProps } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import TextFieldMenu from '../fragments/text-field-menu.vue'
3
- import { VColorPicker } from 'vuetify/components'
3
+ import { VColorPicker } from 'vuetify/components/VColorPicker'
4
4
  import { computed } from 'vue'
5
5
  import { getCompProps } from '../../utils/index.js'
6
6
  import { useDefaults } from 'vuetify'
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed, shallowRef, ref } from 'vue'
3
- import { VCombobox } from 'vuetify/components'
3
+ import { VCombobox } from 'vuetify/components/VCombobox'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
- import { VExpansionPanels, VExpansionPanel, VExpansionPanelTitle, VExpansionPanelText, VContainer, VRow, VIcon } from 'vuetify/components'
2
+ import { VExpansionPanels, VExpansionPanel, VExpansionPanelTitle, VExpansionPanelText } from 'vuetify/components/VExpansionPanel'
3
+ import { VContainer, VRow } from 'vuetify/components/VGrid'
4
+ import { VIcon } from 'vuetify/components/VIcon'
3
5
  import { isSection } from '@json-layout/core'
4
6
  import Node from '../node.vue'
5
7
  import SectionHeader from '../fragments/section-header.vue'
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed } from 'vue'
3
- import { VFileInput } from 'vuetify/components'
3
+ import { VFileInput } from 'vuetify/components/VFileInput'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,7 +1,13 @@
1
1
  <script setup>
2
2
  import { watch, computed, ref } from 'vue'
3
3
  import { useDefaults, useTheme } from 'vuetify'
4
- import { VList, VListItem, VListItemAction, VBtn, VMenu, VIcon, VSheet, VSpacer, VDivider, VRow, VListSubheader } from 'vuetify/components'
4
+ import { VList, VListItem, VListItemAction, VListSubheader } from 'vuetify/components/VList'
5
+ import { VRow, VSpacer } from 'vuetify/components/VGrid'
6
+ import { VSheet } from 'vuetify/components/VSheet'
7
+ import { VDivider } from 'vuetify/components/VDivider'
8
+ import { VIcon } from 'vuetify/components/VIcon'
9
+ import { VBtn } from 'vuetify/components/VBtn'
10
+ import { VMenu } from 'vuetify/components/VMenu'
5
11
  import { isSection, clone } from '@json-layout/core'
6
12
  import Node from '../node.vue'
7
13
  import { moveArrayItem } from '../../utils/index.js'
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed, shallowRef, ref } from 'vue'
3
- import { VCombobox } from 'vuetify/components'
3
+ import { VCombobox } from 'vuetify/components/VCombobox'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed } from 'vue'
3
- import { VTextField } from 'vuetify/components'
3
+ import { VTextField } from 'vuetify/components/VTextField'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,5 +1,6 @@
1
1
  <script setup>
2
- import { VSelect, VRow, VCol } from 'vuetify/components'
2
+ import { VRow, VCol } from 'vuetify/components/VGrid'
3
+ import { VSelect } from 'vuetify/components/VSelect'
3
4
  import { ref, watch, computed, h } from 'vue'
4
5
  import { isSection } from '@json-layout/core'
5
6
  import { isCompObject } from '@json-layout/vocabulary'
@@ -1,5 +1,7 @@
1
1
  <script>
2
- import { VRadioGroup, VRadio, VSkeletonLoader } from 'vuetify/components'
2
+ import { VRadio } from 'vuetify/components/VRadio'
3
+ import { VRadioGroup } from 'vuetify/components/VRadioGroup'
4
+ import { VSkeletonLoader } from 'vuetify/components/VSkeletonLoader'
3
5
  import { defineComponent, h, computed } from 'vue'
4
6
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
7
  import useGetItems from '../../composables/use-get-items.js'
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VRow } from 'vuetify/components'
2
+ import { VRow } from 'vuetify/components/VGrid'
3
3
  import Node from '../node.vue'
4
4
  import SectionHeader from '../fragments/section-header.vue'
5
5
  import { useDefaults } from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { VSelect } from 'vuetify/components'
2
+ import { VSelect } from 'vuetify/components/VSelect'
3
3
  import { defineComponent, h, computed } from 'vue'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import useGetItems from '../../composables/use-get-items.js'
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VSlider } from 'vuetify/components'
2
+ import { VSlider } from 'vuetify/components/VSlider'
3
3
  import { computed } from 'vue'
4
4
  import { getInputProps } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
@@ -1,6 +1,9 @@
1
1
  <script setup>
2
2
  import { ref, computed } from 'vue'
3
- import { VStepper, VStepperHeader, VStepperItem, VStepperWindow, VStepperWindowItem, VStepperActions, VContainer, VRow, VSpacer, VBtn, VDivider } from 'vuetify/components'
3
+ import { VStepper, VStepperHeader, VStepperItem, VStepperWindow, VStepperWindowItem, VStepperActions } from 'vuetify/components/VStepper'
4
+ import { VContainer, VRow, VSpacer } from 'vuetify/components/VGrid'
5
+ import { VBtn } from 'vuetify/components/VBtn'
6
+ import { VDivider } from 'vuetify/components/VDivider'
4
7
  import { isSection } from '@json-layout/core'
5
8
  import Node from '../node.vue'
6
9
  import SectionHeader from '../fragments/section-header.vue'
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VSwitch } from 'vuetify/components'
2
+ import { VSwitch } from 'vuetify/components/VSwitch'
3
3
  import { computed } from 'vue'
4
4
  import { getInputProps } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
@@ -1,5 +1,9 @@
1
1
  <script setup>
2
- import { VTabs, VTab, VContainer, VSheet, VWindow, VWindowItem, VRow, VIcon } from 'vuetify/components'
2
+ import { VTabs, VTab } from 'vuetify/components/VTabs'
3
+ import { VContainer, VRow } from 'vuetify/components/VGrid'
4
+ import { VIcon } from 'vuetify/components/VIcon'
5
+ import { VSheet } from 'vuetify/components/VSheet'
6
+ import { VWindow, VWindowItem } from 'vuetify/components/VWindow'
3
7
  import { useDefaults } from 'vuetify'
4
8
  import { ref } from 'vue'
5
9
  import { isSection } from '@json-layout/core'
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed } from 'vue'
3
- import { VTextField } from 'vuetify/components'
3
+ import { VTextField } from 'vuetify/components/VTextField'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { defineComponent, h, computed, ref, watch } from 'vue'
3
- import { VTextarea } from 'vuetify/components'
3
+ import { VTextarea } from 'vuetify/components/VTextarea'
4
4
  import { getInputProps, getCompSlots } from '../../utils/index.js'
5
5
  import { useDefaults } from 'vuetify'
6
6
 
@@ -1,6 +1,10 @@
1
1
  <script setup>
2
2
  import { isSection } from '@json-layout/core'
3
- import { VTabs, VTab, VContainer, VSheet, VWindow, VWindowItem, VRow, VIcon } from 'vuetify/components'
3
+ import { VTabs, VTab} from 'vuetify/components/VTabs'
4
+ import { VContainer, VRow } from 'vuetify/components/VGrid'
5
+ import { VIcon } from 'vuetify/components/VIcon'
6
+ import { VSheet } from 'vuetify/components/VSheet'
7
+ import { VWindow, VWindowItem } from 'vuetify/components/VWindow'
4
8
  import { ref } from 'vue'
5
9
  import Node from '../node.vue'
6
10
  import SectionHeader from '../fragments/section-header.vue'
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VRow } from 'vuetify/components'
2
+ import { VRow } from 'vuetify/components/VGrid'
3
3
  import Node from './node.vue'
4
4
 
5
5
  defineProps({
@@ -1 +1 @@
1
- {"version":3,"file":"selection-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/selection-group.vue.js"],"names":[],"mappings":";;QAUM,mFAAmF;cAAzE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;;;;QAKhF,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;;;;;QAL7E,mFAAmF;cAAzE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;;;;QAKhF,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
1
+ {"version":3,"file":"selection-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/selection-group.vue.js"],"names":[],"mappings":";;QAcM,mFAAmF;cAAzE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;;;;QAKhF,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;;;;;QAL7E,mFAAmF;cAAzE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,qBAAqB,CAAC;;;;QAKhF,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/text-field-menu.vue.js"],"names":[],"mappings":";;;;;;;;;;6BAsIsC,GAAG;;;QACX,GAAG"}
1
+ {"version":3,"file":"text-field-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/text-field-menu.vue.js"],"names":[],"mappings":";;;;;;;;;;6BAuIsC,GAAG;;;QACX,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/radio-group.vue.js"],"names":[],"mappings":";;QAWM,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;QAL7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
1
+ {"version":3,"file":"radio-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/radio-group.vue.js"],"names":[],"mappings":";;QAaM,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;QAL7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- $emit: ((event: "update:modelValue", data: any) => void) & ((event: "update:state", state: import("../types.js").VjsfStatefulLayout) => void);
3
- modelValue: any;
4
- options: Partial<Omit<import("../types.js").VjsfOptions, "width" | "onData" | "onUpdate" | "onAutofocus" | "vjsfSlots">> | null;
2
+ $emit: ((event: "update:state", state: import("../types.js").VjsfStatefulLayout) => void) & ((event: "update:modelValue", data: any) => void);
3
+ options: Partial<Omit<import("../types.js").VjsfOptions, "width" | "vjsfSlots" | "onData" | "onUpdate" | "onAutofocus">> | null;
5
4
  schema: Record<string, any>;
5
+ modelValue: any;
6
6
  precompiledLayout: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout;
7
7
  $props: {
8
- readonly modelValue?: any;
9
- readonly options?: Partial<Omit<import("../types.js").VjsfOptions, "width" | "onData" | "onUpdate" | "onAutofocus" | "vjsfSlots">> | null | undefined;
8
+ readonly options?: Partial<Omit<import("../types.js").VjsfOptions, "width" | "vjsfSlots" | "onData" | "onUpdate" | "onAutofocus">> | null | undefined;
10
9
  readonly schema?: Record<string, any> | undefined;
10
+ readonly modelValue?: any;
11
11
  readonly precompiledLayout?: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout | undefined;
12
12
  };
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;