@koumoul/vjsf 3.17.1 → 3.17.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.17.1",
3
+ "version": "3.17.3",
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,7 +71,7 @@
71
71
  "vuetify": "^3.8.12"
72
72
  },
73
73
  "dependencies": {
74
- "@json-layout/core": "~1.12.1",
74
+ "@json-layout/core": "~1.12.4",
75
75
  "@json-layout/vocabulary": "~2.6.0",
76
76
  "@vueuse/core": "^12.5.0",
77
77
  "debug": "^4.3.4"
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { defineComponent, h, computed, toRef, watch } from 'vue'
2
+ import { defineComponent, h, computed, toRef } from 'vue'
3
3
  import { VNumberInput } from 'vuetify/components/VNumberInput'
4
4
  import useNode from '../../composables/use-node.js'
5
5
  import { useDefaults } from 'vuetify'
@@ -24,8 +24,6 @@ export default defineComponent({
24
24
  toRef(props, 'modelValue'), props.statefulLayout, { layoutPropsMap: ['step', 'min', 'max', 'precision', 'placeholder'] }
25
25
  )
26
26
 
27
- watch(localData, () => console.log('data', localData))
28
-
29
27
  const fullProps = computed(() => {
30
28
  const fullProps = { ...inputProps.value }
31
29
  fullProps.modelValue = localData.value
@@ -91,8 +91,8 @@ export const useVjsf = (schema, modelValue, options, nodeComponents, emit, compi
91
91
  */
92
92
  const onDataUpdate = async (data) => {
93
93
  debug('onDataUpdate', data)
94
- debug(' -> emit update:modelValue')
95
94
  await nextTick() // necessary for form validation to be applied before emitting new data
95
+ debug(' -> emit update:modelValue', data)
96
96
  emit('update:modelValue', data)
97
97
  }
98
98
  const onAutofocus = () => {