@simsustech/quasar-components 0.3.3 → 0.3.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 7f5b036: fix(components): await loadLang in GenderSelect
8
+
3
9
  ## 0.3.3
4
10
 
5
11
  ### Patch Changes
package/dist/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref, defineComponent, useAttrs, watch, openBlock, createBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, computed, useSlots, renderSlot, createCommentVNode, resolveDirective, createElementVNode, withDirectives, createElementBlock, Fragment } from "vue";
1
+ import { ref, defineComponent, useAttrs, withAsyncContext, watch, openBlock, createBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, computed, useSlots, renderSlot, createCommentVNode, resolveDirective, createElementVNode, withDirectives, createElementBlock, Fragment } from "vue";
2
2
  import { useQuasar, QSelect, QItem, QItemSection, QItemLabel, QInput, QIcon, QBtn, QDate, QPopupProxy, QEditor } from "quasar";
3
3
  const lang$1 = {
4
4
  isoName: "en-US",
@@ -73,13 +73,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
73
73
  required: { type: Boolean }
74
74
  },
75
75
  emits: ["update:modelValue"],
76
- setup(__props) {
76
+ async setup(__props) {
77
+ let __temp, __restore;
77
78
  const props = __props;
78
79
  const attrs = useAttrs();
79
80
  const lang2 = useLang();
80
81
  const $q = useQuasar();
81
82
  if (lang2.value.isoName !== $q.lang.isoName)
82
- loadLang($q.lang.isoName);
83
+ [__temp, __restore] = withAsyncContext(() => loadLang($q.lang.isoName)), await __temp, __restore();
83
84
  watch($q.lang, (val) => {
84
85
  loadLang($q.lang.isoName);
85
86
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@ const attrs = useAttrs()
28
28
  const lang = useLang()
29
29
 
30
30
  const $q = useQuasar()
31
- if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName)
31
+ if (lang.value.isoName !== $q.lang.isoName) await loadLang($q.lang.isoName)
32
32
  watch($q.lang, (val) => {
33
33
  loadLang($q.lang.isoName)
34
34
  })