@koumoul/vjsf 3.6.0 → 3.6.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 CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
- "test": "vitest",
6
+ "test": "vitest run",
7
+ "test-watch": "vitest",
7
8
  "build": "vue-tsc",
8
9
  "watch:build": "vue-tsc --watch",
9
10
  "prepublishOnly": "npm run build && cp ../README.md README.md && cp ../LICENSE LICENSE"
@@ -25,7 +25,10 @@ defineProps({
25
25
  <template>
26
26
  <v-card :title="modelValue.layout.title ?? ''">
27
27
  <v-container fluid>
28
- <section-header :node="modelValue" hide-title />
28
+ <section-header
29
+ :node="modelValue"
30
+ hide-title
31
+ />
29
32
  <v-row :dense="modelValue.options?.density === 'compact' || modelValue.options?.density === 'comfortable'">
30
33
  <node
31
34
  v-for="child of modelValue.children"
@@ -47,6 +47,10 @@ const onChange = (/** @type {string} */childTree) => {
47
47
  const fieldProps = computed(() => {
48
48
  const fieldProps = { ...inputProps.value }
49
49
  fieldProps['onUpdate:modelValue'] = onChange
50
+ if (!props.modelValue.options.readOnly) {
51
+ // vuetify zIndex stacking is buggy (for example https://github.com/vuetifyjs/vuetify/issues/16251)
52
+ fieldProps.menuProps = { zIndex: 3000 }
53
+ }
50
54
  const items = []
51
55
  for (const childTreePointer of skeleton.value.childrenTrees || []) {
52
56
  const childTree = props.statefulLayout.compiledLayout.skeletonTrees[childTreePointer]