glib-web 3.4.0 → 3.4.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.
@@ -1,6 +1,7 @@
1
1
  import { reactive, watchEffect } from "vue";
2
2
  import jsonLogic from 'json-logic-js';
3
3
 
4
+ // TODO: support multiple form
4
5
  const fieldModels = reactive({});
5
6
 
6
7
  const watchFieldModels = (logic, cb) => watchEffect(() => {
@@ -3,9 +3,8 @@
3
3
  <v-textarea v-model="fieldModel" :label="spec.label" :name="fieldName" :hint="spec.hint"
4
4
  :placeholder="spec.placeholder" :maxlength="spec.maxLength || 255" :disabled="spec.readOnly" :height="height"
5
5
  :rules="$validation()" counter :outlined="$classes().includes('outlined')"
6
- :no-resize="$classes().includes('no-resize')" validate-on="blur" :variant="variant"
7
- :density="density"
8
- persistent-placeholder></v-textarea>
6
+ :no-resize="$classes().includes('no-resize')" validate-on="blur" :variant="variant" :density="density"
7
+ @update:modelValue="onChange()" persistent-placeholder></v-textarea>
9
8
  <input v-if="spec.readOnly" type="hidden" :name="fieldName" :value="fieldModel" />
10
9
  </div>
11
10
  </template>
@@ -28,7 +27,7 @@ export default {
28
27
  },
29
28
  computed: {
30
29
  density() {
31
- return determineDensity(this.spec.styleClasses)
30
+ return determineDensity(this.spec.styleClasses);
32
31
  }
33
32
  },
34
33
  methods: {
@@ -216,7 +216,7 @@ export default {
216
216
  [this.spec.paramNameForFormData]: formData
217
217
  }
218
218
  : formData;
219
- const data = Object.assign({}, onChange, params);
219
+ const data = Object.assign({}, onChange, { formData: params });
220
220
  GLib.action.execute(data, this);
221
221
  });
222
222
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {