@simsustech/quasar-components 0.3.2 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - e1538f5: fix(components): make genderOptions reactive; fix(components): make booleanOptions reactive
8
+
3
9
  ## 0.3.2
4
10
 
5
11
  ### Patch Changes
package/dist/form.js CHANGED
@@ -83,7 +83,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
83
83
  watch($q.lang, (val) => {
84
84
  loadLang($q.lang.isoName);
85
85
  });
86
- const genderOptions = [
86
+ const genderOptions = ref([
87
87
  {
88
88
  label: lang2.value.gender.male,
89
89
  value: "male"
@@ -96,7 +96,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
96
96
  label: lang2.value.gender.other,
97
97
  value: "other"
98
98
  }
99
- ];
99
+ ]);
100
100
  const validations = ref([]);
101
101
  if (props.required)
102
102
  validations.value.push(
@@ -106,12 +106,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
106
106
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
107
107
  rules: validations.value,
108
108
  "model-value": __props.modelValue,
109
- options: genderOptions,
109
+ options: genderOptions.value,
110
110
  label: `${unref(lang2).gender.gender}${__props.required ? "*" : ""}`,
111
111
  "emit-value": "",
112
112
  "map-options": "",
113
113
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
114
- }), null, 16, ["rules", "model-value", "label"]);
114
+ }), null, 16, ["rules", "model-value", "options", "label"]);
115
115
  };
116
116
  }
117
117
  });
@@ -417,7 +417,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
417
417
  watch($q.lang, (val) => {
418
418
  loadLang($q.lang.isoName);
419
419
  });
420
- const booleanOptions = [
420
+ const booleanOptions = ref([
421
421
  {
422
422
  label: lang2.value.yes,
423
423
  value: true
@@ -426,7 +426,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
426
426
  label: lang2.value.no,
427
427
  value: false
428
428
  }
429
- ];
429
+ ]);
430
430
  const validations = ref([]);
431
431
  if (props.required)
432
432
  validations.value.push(
@@ -436,12 +436,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
436
436
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
437
437
  rules: validations.value,
438
438
  "model-value": __props.modelValue,
439
- options: booleanOptions,
439
+ options: booleanOptions.value,
440
440
  label: `${__props.label}${__props.required ? "*" : ""}`,
441
441
  "emit-value": "",
442
442
  "map-options": "",
443
443
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
444
- }), null, 16, ["rules", "model-value", "label"]);
444
+ }), null, 16, ["rules", "model-value", "options", "label"]);
445
445
  };
446
446
  }
447
447
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@ watch($q.lang, (val) => {
33
33
  loadLang($q.lang.isoName)
34
34
  })
35
35
 
36
- const booleanOptions = [
36
+ const booleanOptions = ref([
37
37
  {
38
38
  label: lang.value.yes,
39
39
  value: true
@@ -42,7 +42,7 @@ const booleanOptions = [
42
42
  label: lang.value.no,
43
43
  value: false
44
44
  }
45
- ]
45
+ ])
46
46
 
47
47
  const validations = ref<ValidationRule[]>([])
48
48
 
@@ -33,7 +33,7 @@ watch($q.lang, (val) => {
33
33
  loadLang($q.lang.isoName)
34
34
  })
35
35
 
36
- const genderOptions = [
36
+ const genderOptions = ref([
37
37
  {
38
38
  label: lang.value.gender.male,
39
39
  value: 'male'
@@ -46,7 +46,7 @@ const genderOptions = [
46
46
  label: lang.value.gender.other,
47
47
  value: 'other'
48
48
  }
49
- ]
49
+ ])
50
50
 
51
51
  const validations = ref<ValidationRule[]>([])
52
52