@simsustech/quasar-components 0.3.3 → 0.3.5

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/StandardComponent.vue +19 -24
  3. package/dist/authentication.js +87 -87
  4. package/dist/flags.js +224 -5
  5. package/dist/form.js +59 -57
  6. package/dist/general.js +15 -24
  7. package/dist/types/ui/authentication/ConsentList.vue.d.ts +35 -10
  8. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +29 -12
  9. package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +15 -12
  10. package/dist/types/ui/authentication/LoginButton.vue.d.ts +10 -11
  11. package/dist/types/ui/authentication/LoginForm.vue.d.ts +33 -12
  12. package/dist/types/ui/authentication/OtpInput.vue.d.ts +12 -15
  13. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +42 -29
  14. package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +15 -12
  15. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +56 -31
  16. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +21 -12
  17. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +13 -12
  18. package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +11 -12
  19. package/dist/types/ui/form/BooleanItem.vue.d.ts +18 -9
  20. package/dist/types/ui/form/BooleanSelect.vue.d.ts +24 -11
  21. package/dist/types/ui/form/DateInput.vue.d.ts +33 -10
  22. package/dist/types/ui/form/EmailInput.vue.d.ts +21 -12
  23. package/dist/types/ui/form/FormInput.vue.d.ts +27 -10
  24. package/dist/types/ui/form/FormItem.vue.d.ts +21 -10
  25. package/dist/types/ui/form/GenderItem.vue.d.ts +10 -9
  26. package/dist/types/ui/form/GenderSelect.vue.d.ts +18 -11
  27. package/dist/types/ui/form/PostalCodeInput.vue.d.ts +26 -11
  28. package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +18 -11
  29. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +18 -9
  30. package/dist/types/ui/general/QStyledCard.vue.d.ts +10 -11
  31. package/dist/types/ui/general/QStyledLayout.vue.d.ts +12 -11
  32. package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
  33. package/dist/types/ui/general/ResourcePage.vue.d.ts +25 -30
  34. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +11 -12
  35. package/dist/types/virtualModules.d.ts +0 -1
  36. package/dist/virtualModules.d.ts +0 -1
  37. package/dist/virtualModules.js +34 -1
  38. package/dist/vite-plugin.js +1 -1
  39. package/package.json +21 -21
  40. package/src/ui/form/BooleanItem.vue +1 -1
  41. package/src/ui/form/BooleanSelect.vue +1 -1
  42. package/src/ui/form/DateInput.vue +5 -2
  43. package/src/ui/form/EmailInput.vue +3 -6
  44. package/src/ui/form/FormInput.vue +1 -1
  45. package/src/ui/form/FormItem.vue +1 -1
  46. package/src/ui/form/GenderItem.vue +1 -1
  47. package/src/ui/form/GenderSelect.vue +2 -2
  48. package/src/ui/form/TelephoneNumberInput.vue +1 -1
  49. package/src/ui/general/QLanguageSelect.vue +2 -2
  50. package/src/ui/general/ResourcePage.vue +2 -2
  51. package/src/ui/general/ResponsiveDialog.vue +1 -2
  52. package/src/virtualModules.ts +34 -34
  53. package/src/vite-plugin.ts +1 -1
  54. package/dist/en-US-6cc72154.js +0 -226
package/dist/flags.js CHANGED
@@ -1,7 +1,226 @@
1
- import { e, n } from "./en-US-6cc72154.js";
2
- import "vue";
3
- import "quasar";
1
+ import { ref, watch, computed, h } from "vue";
2
+ import { useQuasar, QIcon } from "quasar";
3
+ const lang$1 = {
4
+ isoName: "en-US",
5
+ countries: {
6
+ "ar-TN": "العربية (تونس)",
7
+ ar: "العربية",
8
+ "az-Latn": "Azerbaijan",
9
+ bg: "български език",
10
+ bn: "বাংলা",
11
+ ca: "Català",
12
+ cs: "Čeština",
13
+ da: "Denmark",
14
+ de: "Germany",
15
+ el: "ελληνικά",
16
+ "en-GB": "United Kingdom",
17
+ "en-US": "United States of America",
18
+ eo: "Esperanto",
19
+ es: "Spain",
20
+ et: "Eesti",
21
+ eu: "Euskara",
22
+ "fa-IR": "فارسی",
23
+ fa: "فارسی",
24
+ fi: "Suomi",
25
+ fr: "France",
26
+ gn: "Avañe'ẽ",
27
+ he: "עברית",
28
+ hr: "Hrvatski jezik",
29
+ hu: "Magyar",
30
+ id: "Bahasa Indonesia",
31
+ is: "Íslenska",
32
+ it: "Italy",
33
+ ja: "Japan",
34
+ km: "ខ្មែរ",
35
+ "ko-KR": "한국어",
36
+ "kur-CKB": "کوردی سۆرانی",
37
+ kz: "Қазақша",
38
+ lt: "Lithuanian",
39
+ lu: "Kiluba",
40
+ lv: "Latviešu valoda",
41
+ ml: "മലയാളം",
42
+ mm: "မြန်မာ(ဗမာ)",
43
+ ms: "Bahasa Melayu",
44
+ my: "Malaysia",
45
+ "nb-NO": "Norsk",
46
+ nl: "the Netherlands",
47
+ pl: "Poland",
48
+ "pt-BR": "Portugal",
49
+ pt: "Portugal",
50
+ ro: "Romania",
51
+ ru: "Russia",
52
+ sk: "Slovenčina",
53
+ sl: "Slovenski Jezik",
54
+ sm: "Fa'asāmoa",
55
+ "sr-CYR": "српски језик",
56
+ sr: "srpski jezik",
57
+ sv: "Sweden",
58
+ ta: "தமிழ்",
59
+ th: "ไทย",
60
+ tr: "Türkçe",
61
+ ug: "ئۇيغۇرچە",
62
+ uk: "Українська",
63
+ "uz-Cyrl": "Ўзбекча (Кирил)",
64
+ "uz-Latn": "O'zbekcha (Lotin)",
65
+ vi: "Vietnam",
66
+ "zh-CN": "中文(简体)",
67
+ "zh-TW": "中文(繁體)"
68
+ },
69
+ languages: {
70
+ "ar-TN": "العربية (تونس)",
71
+ ar: "العربية",
72
+ "az-Latn": "Azerbaijani (latin)",
73
+ bg: "български език",
74
+ bn: "বাংলা",
75
+ ca: "Català",
76
+ cs: "Čeština",
77
+ da: "Dansk",
78
+ de: "Deutsch",
79
+ el: "ελληνικά",
80
+ "en-GB": "English (UK)",
81
+ "en-US": "English (US)",
82
+ eo: "Esperanto",
83
+ es: "Español",
84
+ et: "Eesti",
85
+ eu: "Euskara",
86
+ "fa-IR": "فارسی",
87
+ fa: "فارسی",
88
+ fi: "Suomi",
89
+ fr: "Français",
90
+ gn: "Avañe'ẽ",
91
+ he: "עברית",
92
+ hr: "Hrvatski jezik",
93
+ hu: "Magyar",
94
+ id: "Bahasa Indonesia",
95
+ is: "Íslenska",
96
+ it: "Italiano",
97
+ ja: "日本語 (にほんご)",
98
+ km: "ខ្មែរ",
99
+ "ko-KR": "한국어",
100
+ "kur-CKB": "کوردی سۆرانی",
101
+ kz: "Қазақша",
102
+ lt: "Lithuanian",
103
+ lu: "Kiluba",
104
+ lv: "Latviešu valoda",
105
+ ml: "മലയാളം",
106
+ mm: "မြန်မာ(ဗမာ)",
107
+ ms: "Bahasa Melayu",
108
+ my: "Malaysia",
109
+ "nb-NO": "Norsk",
110
+ nl: "Dutch",
111
+ pl: "Polski",
112
+ "pt-BR": "Português (BR)",
113
+ pt: "Português",
114
+ ro: "Română",
115
+ ru: "русский",
116
+ sk: "Slovenčina",
117
+ sl: "Slovenski Jezik",
118
+ sm: "Fa'asāmoa",
119
+ "sr-CYR": "српски језик",
120
+ sr: "srpski jezik",
121
+ sv: "Svenska",
122
+ ta: "தமிழ்",
123
+ th: "ไทย",
124
+ tr: "Türkçe",
125
+ ug: "ئۇيغۇرچە",
126
+ uk: "Українська",
127
+ "uz-Cyrl": "Ўзбекча (Кирил)",
128
+ "uz-Latn": "O'zbekcha (Lotin)",
129
+ vi: "Tiếng Việt",
130
+ "zh-CN": "中文(简体)",
131
+ "zh-TW": "中文(繁體)"
132
+ }
133
+ };
134
+ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
135
+ __proto__: null,
136
+ default: lang$1
137
+ }, Symbol.toStringTag, { value: "Module" }));
138
+ const lang = ref(lang$1);
139
+ const locales = /* @__PURE__ */ Object.assign({
140
+ "./en-US.ts": () => Promise.resolve().then(() => enUS),
141
+ "./nl.ts": () => import("./nl-38cb2607.js")
142
+ });
143
+ const useLang = () => {
144
+ return lang;
145
+ };
146
+ let loadingLanguage = false;
147
+ const loadLang = async (isoName) => {
148
+ if (!loadingLanguage) {
149
+ loadingLanguage = true;
150
+ try {
151
+ const data = (await locales[`./${isoName}.ts`]()).default;
152
+ if (data) {
153
+ lang.value = data;
154
+ }
155
+ } catch (e) {
156
+ if ({}.DEBUG)
157
+ console.error(e);
158
+ throw new Error(
159
+ `[quasar-components] Failed to load ${isoName} language file.`
160
+ );
161
+ }
162
+ loadingLanguage = false;
163
+ }
164
+ };
165
+ const icon$1 = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8c3ZnCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgogIDxyZWN0IHk9Ijg1LjMzNyIgc3R5bGU9ImZpbGw6I0YwRjBGMDsiIHdpZHRoPSI1MTIiIGhlaWdodD0iMzQxLjMyNiIvPgogIDxyZWN0IHk9Ijg1LjMzNyIgc3R5bGU9ImZpbGw6I0EyMDAxRDsiIHdpZHRoPSI1MTIiIGhlaWdodD0iMTEzLjc3NSIvPgogIDxyZWN0IHk9IjMxMi44ODgiIHN0eWxlPSJmaWxsOiMwMDUyQjQ7IiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjExMy43NzUiLz4KPC9zdmc+Cg==";
166
+ const nl = {
167
+ setup(props, context) {
168
+ const $q = useQuasar();
169
+ const lang2 = useLang();
170
+ if (lang2.value.isoName !== $q.lang.isoName)
171
+ loadLang($q.lang.isoName);
172
+ watch($q.lang, (val) => {
173
+ loadLang($q.lang.isoName);
174
+ });
175
+ const country = computed(
176
+ () => lang2.value.countries["nl"]
177
+ );
178
+ const language = computed(() => lang2.value.languages["nl"]);
179
+ const variables = ref({
180
+ country,
181
+ language
182
+ // header: lang.value.some.nested.prop
183
+ });
184
+ const functions = ref({
185
+ // submit
186
+ });
187
+ context.expose({
188
+ variables,
189
+ functions
190
+ });
191
+ return () => h(QIcon, { name: `img:${icon$1}` });
192
+ }
193
+ };
194
+ const icon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/PjxzdmcKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CiAgPHJlY3QgeT0iODUuMzMxIiBzdHlsZT0iZmlsbDojRjBGMEYwOyIgd2lkdGg9IjUxMiIgaGVpZ2h0PSIzNDEuMzM3Ii8+CiAgPGc+CiAgICA8cmVjdCB5PSIxMjcuOTk0IiBzdHlsZT0iZmlsbDojRDgwMDI3OyIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI0Mi42NjMiLz4KICAgIDxyZWN0IHk9IjIxMy4zMzEiIHN0eWxlPSJmaWxsOiNEODAwMjc7IiB3aWR0aD0iNTEyIiBoZWlnaHQ9IjQyLjY2MyIvPgogICAgPHJlY3QgeT0iMjk4L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DE0OC4wNTQgMTYyLjg0NiwxMzUuMzcxIDE3My42MzcsMTI3LjUzNSAxNjAuMzAxLDEyNy41MzUgICIvPgogICAgPHBvbHlnb24gc3R5bGU9ImZpbGw6I0YwRjBGMDsiIHBvaW50cz0iMjEyLjU0NiwxMTQuODUgMjA4LjQyMywxMjcuNTM1IDE5NS4wODgsMTI3LjUzNSAyMDUuODc3LDEzNS4zNzEgMjAxLjc1NSwxNDguMDU0ICAgIDIxMi41NDYsMTQwLjIxOCAyMjMuMzMxLDE0OC4wNTQgMjE5LjIwOCwxMzUuMzcxIDIyOS45OTksMTI3LjUzNSAyMTYuNjYzLDEyNy41MzUgICIvPgogIDwvZz4KPC9zdmc+Cg==";
195
+ const enUs = {
196
+ setup(props, context) {
197
+ const $q = useQuasar();
198
+ const lang2 = useLang();
199
+ if (lang2.value.isoName !== $q.lang.isoName)
200
+ loadLang($q.lang.isoName);
201
+ watch($q.lang, (val) => {
202
+ loadLang($q.lang.isoName);
203
+ });
204
+ const country = computed(
205
+ () => lang2.value.countries["en-US"]
206
+ );
207
+ const language = computed(() => lang2.value.languages["en-US"]);
208
+ const variables = ref({
209
+ country,
210
+ language
211
+ // header: lang.value.some.nested.prop
212
+ });
213
+ const functions = ref({
214
+ // submit
215
+ });
216
+ context.expose({
217
+ variables,
218
+ functions
219
+ });
220
+ return () => h(QIcon, { name: `img:${icon}` });
221
+ }
222
+ };
4
223
  export {
5
- e as enUs,
6
- n as nl
224
+ enUs,
225
+ nl
7
226
  };
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",
@@ -69,18 +69,19 @@ const loadLang = async (isoName) => {
69
69
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
70
70
  __name: "GenderSelect",
71
71
  props: {
72
- modelValue: null,
72
+ modelValue: {},
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
- watch($q.lang, (val) => {
83
+ [__temp, __restore] = withAsyncContext(() => loadLang($q.lang.isoName)), await __temp, __restore();
84
+ watch($q.lang, () => {
84
85
  loadLang($q.lang.isoName);
85
86
  });
86
87
  const genderOptions = ref([
@@ -105,9 +106,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
105
106
  return (_ctx, _cache) => {
106
107
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
107
108
  rules: validations.value,
108
- "model-value": __props.modelValue,
109
+ "model-value": _ctx.modelValue,
109
110
  options: genderOptions.value,
110
- label: `${unref(lang2).gender.gender}${__props.required ? "*" : ""}`,
111
+ label: `${unref(lang2).gender.gender}${_ctx.required ? "*" : ""}`,
111
112
  "emit-value": "",
112
113
  "map-options": "",
113
114
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
@@ -118,7 +119,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
118
119
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
119
120
  __name: "GenderItem",
120
121
  props: {
121
- modelValue: null
122
+ modelValue: {}
122
123
  },
123
124
  setup(__props) {
124
125
  const attrs = useAttrs();
@@ -126,7 +127,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
126
127
  const $q = useQuasar();
127
128
  if (lang2.value.isoName !== $q.lang.isoName)
128
129
  loadLang($q.lang.isoName);
129
- watch($q.lang, (val) => {
130
+ watch($q.lang, () => {
130
131
  loadLang($q.lang.isoName);
131
132
  });
132
133
  return (_ctx, _cache) => {
@@ -142,7 +143,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
142
143
  }),
143
144
  createVNode(unref(QItemLabel), null, {
144
145
  default: withCtx(() => [
145
- createTextVNode(toDisplayString(__props.modelValue ? unref(lang2).gender[__props.modelValue] : ""), 1)
146
+ createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang2).gender[_ctx.modelValue] : ""), 1)
146
147
  ]),
147
148
  _: 1
148
149
  })
@@ -158,8 +159,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
158
159
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
159
160
  __name: "PostalCodeInput",
160
161
  props: {
161
- modelValue: null,
162
- locale: null,
162
+ modelValue: {},
163
+ locale: {},
163
164
  required: { type: Boolean }
164
165
  },
165
166
  emits: ["update:modelValue"],
@@ -184,10 +185,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
184
185
  });
185
186
  return (_ctx, _cache) => {
186
187
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
187
- mask: masks.value[__props.locale],
188
- rules: unref(computedValidations),
189
- "model-value": __props.modelValue,
190
- label: `${unref(lang2).postalCode.postalCode}${__props.required ? "*" : ""}`,
188
+ mask: masks.value[_ctx.locale],
189
+ rules: computedValidations.value,
190
+ "model-value": _ctx.modelValue,
191
+ label: `${unref(lang2).postalCode.postalCode}${_ctx.required ? "*" : ""}`,
191
192
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
192
193
  }), null, 16, ["mask", "rules", "model-value", "label"]);
193
194
  };
@@ -196,9 +197,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
196
197
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
197
198
  __name: "FormItem",
198
199
  props: {
199
- modelValue: null,
200
- label: null,
201
- field: null
200
+ modelValue: {},
201
+ label: {},
202
+ field: {}
202
203
  },
203
204
  setup(__props) {
204
205
  const attrs = useAttrs();
@@ -207,7 +208,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
207
208
  const $q = useQuasar();
208
209
  if (lang2.value.isoName !== $q.lang.isoName)
209
210
  loadLang($q.lang.isoName);
210
- watch($q.lang, (val) => {
211
+ watch($q.lang, () => {
211
212
  loadLang($q.lang.isoName);
212
213
  });
213
214
  return (_ctx, _cache) => {
@@ -226,13 +227,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
226
227
  default: withCtx(() => [
227
228
  createVNode(unref(QItemLabel), { overline: "" }, {
228
229
  default: withCtx(() => [
229
- createTextVNode(toDisplayString(__props.label ? __props.label : __props.field ? unref(lang2).fields[__props.field] : ""), 1)
230
+ createTextVNode(toDisplayString(_ctx.label ? _ctx.label : _ctx.field ? unref(lang2).fields[_ctx.field] : ""), 1)
230
231
  ]),
231
232
  _: 1
232
233
  }),
233
234
  createVNode(unref(QItemLabel), null, {
234
235
  default: withCtx(() => [
235
- createTextVNode(toDisplayString(__props.modelValue || "-"), 1)
236
+ createTextVNode(toDisplayString(_ctx.modelValue || "-"), 1)
236
237
  ]),
237
238
  _: 1
238
239
  })
@@ -257,9 +258,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
257
258
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
258
259
  __name: "FormInput",
259
260
  props: {
260
- modelValue: null,
261
- field: null,
262
- label: null,
261
+ modelValue: {},
262
+ field: {},
263
+ label: {},
263
264
  required: { type: Boolean }
264
265
  },
265
266
  setup(__props) {
@@ -269,7 +270,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
269
270
  const $q = useQuasar();
270
271
  if (lang2.value.isoName !== $q.lang.isoName)
271
272
  loadLang($q.lang.isoName);
272
- watch($q.lang, (val) => {
273
+ watch($q.lang, () => {
273
274
  loadLang($q.lang.isoName);
274
275
  });
275
276
  const validations = ref([]);
@@ -280,8 +281,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
280
281
  return (_ctx, _cache) => {
281
282
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
282
283
  rules: validations.value,
283
- "model-value": __props.modelValue,
284
- label: `${__props.field ? unref(lang2).fields[__props.field] : __props.label ? __props.label : ""}${__props.required ? "*" : ""}`,
284
+ "model-value": _ctx.modelValue,
285
+ label: `${_ctx.field ? unref(lang2).fields[_ctx.field] : _ctx.label ? _ctx.label : ""}${_ctx.required ? "*" : ""}`,
285
286
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
286
287
  }), null, 16, ["rules", "model-value", "label"]);
287
288
  };
@@ -290,7 +291,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
290
291
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
291
292
  __name: "TelephoneNumberInput",
292
293
  props: {
293
- modelValue: null,
294
+ modelValue: {},
294
295
  required: { type: Boolean }
295
296
  },
296
297
  emits: ["update:modelValue"],
@@ -306,8 +307,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
306
307
  return (_ctx, _cache) => {
307
308
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
308
309
  rules: validations.value,
309
- "model-value": __props.modelValue,
310
- label: `${unref(lang2).fields.telephoneNumber}${__props.required ? "*" : ""}`,
310
+ "model-value": _ctx.modelValue,
311
+ label: `${unref(lang2).fields.telephoneNumber}${_ctx.required ? "*" : ""}`,
311
312
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
312
313
  }), null, 16, ["rules", "model-value", "label"]);
313
314
  };
@@ -317,11 +318,11 @@ const _hoisted_1 = { class: "row items-center justify-end" };
317
318
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
318
319
  __name: "DateInput",
319
320
  props: {
320
- modelValue: null,
321
- label: null,
321
+ modelValue: {},
322
+ label: {},
322
323
  required: { type: Boolean },
323
324
  clearable: { type: Boolean },
324
- date: null
325
+ date: {}
325
326
  },
326
327
  setup(__props) {
327
328
  const props = __props;
@@ -330,10 +331,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
330
331
  const $q = useQuasar();
331
332
  if (lang2.value.isoName !== $q.lang.isoName)
332
333
  loadLang($q.lang.isoName);
333
- watch($q.lang, (val) => {
334
+ watch($q.lang, () => {
334
335
  loadLang($q.lang.isoName);
335
336
  });
336
- const validations = ref([]);
337
+ const validations = ref([
338
+ (v) => /^\d{4}\/(0?[1-9]|1[012])\/(0?[1-9]|[12][0-9]|3[01])$/.test(v)
339
+ ]);
337
340
  if (props.required)
338
341
  validations.value.push(
339
342
  (val) => !!val || lang2.value.validations.fieldRequired
@@ -346,14 +349,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
346
349
  const _directive_close_popup = resolveDirective("close-popup");
347
350
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
348
351
  rules: validations.value,
349
- "model-value": __props.modelValue,
350
- label: `${__props.label}${__props.required ? "*" : ""}`,
352
+ "model-value": _ctx.modelValue,
353
+ label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
354
+ placeholder: "YYYY/MM/DD",
351
355
  mask: "date",
352
356
  class: "q-pr-md",
353
357
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event))
354
358
  }), {
355
359
  append: withCtx(() => [
356
- __props.clearable ? (openBlock(), createBlock(_component_q_icon, {
360
+ _ctx.clearable ? (openBlock(), createBlock(_component_q_icon, {
357
361
  key: 0,
358
362
  name: "clear",
359
363
  class: "cursor-pointer",
@@ -370,8 +374,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
370
374
  "transition-hide": "scale"
371
375
  }, {
372
376
  default: withCtx(() => [
373
- createVNode(_component_q_date, mergeProps(__props.date, {
374
- "model-value": __props.modelValue,
377
+ createVNode(_component_q_date, mergeProps(_ctx.date, {
378
+ "model-value": _ctx.modelValue,
375
379
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event))
376
380
  }), {
377
381
  default: withCtx(() => [
@@ -403,7 +407,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
403
407
  __name: "BooleanSelect",
404
408
  props: {
405
409
  modelValue: { type: Boolean },
406
- label: null,
410
+ label: {},
407
411
  required: { type: Boolean }
408
412
  },
409
413
  emits: ["update:modelValue"],
@@ -414,7 +418,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
414
418
  const $q = useQuasar();
415
419
  if (lang2.value.isoName !== $q.lang.isoName)
416
420
  loadLang($q.lang.isoName);
417
- watch($q.lang, (val) => {
421
+ watch($q.lang, () => {
418
422
  loadLang($q.lang.isoName);
419
423
  });
420
424
  const booleanOptions = ref([
@@ -435,9 +439,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
435
439
  return (_ctx, _cache) => {
436
440
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
437
441
  rules: validations.value,
438
- "model-value": __props.modelValue,
442
+ "model-value": _ctx.modelValue,
439
443
  options: booleanOptions.value,
440
- label: `${__props.label}${__props.required ? "*" : ""}`,
444
+ label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
441
445
  "emit-value": "",
442
446
  "map-options": "",
443
447
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
@@ -449,7 +453,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
449
453
  __name: "BooleanItem",
450
454
  props: {
451
455
  modelValue: { type: Boolean },
452
- label: null
456
+ label: {}
453
457
  },
454
458
  setup(__props) {
455
459
  const attrs = useAttrs();
@@ -457,7 +461,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
457
461
  const $q = useQuasar();
458
462
  if (lang2.value.isoName !== $q.lang.isoName)
459
463
  loadLang($q.lang.isoName);
460
- watch($q.lang, (val) => {
464
+ watch($q.lang, () => {
461
465
  loadLang($q.lang.isoName);
462
466
  });
463
467
  return (_ctx, _cache) => {
@@ -467,13 +471,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
467
471
  default: withCtx(() => [
468
472
  createVNode(unref(QItemLabel), { overline: "" }, {
469
473
  default: withCtx(() => [
470
- createTextVNode(toDisplayString(__props.label), 1)
474
+ createTextVNode(toDisplayString(_ctx.label), 1)
471
475
  ]),
472
476
  _: 1
473
477
  }),
474
478
  createVNode(unref(QItemLabel), null, {
475
479
  default: withCtx(() => [
476
- createTextVNode(toDisplayString(__props.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
480
+ createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
477
481
  ]),
478
482
  _: 1
479
483
  })
@@ -492,13 +496,11 @@ const __default__ = {
492
496
  const _sfc_main = /* @__PURE__ */ defineComponent({
493
497
  ...__default__,
494
498
  props: {
495
- subject: null,
496
- body: null
499
+ subject: {},
500
+ body: {}
497
501
  },
498
502
  emits: ["update:subject", "update:body"],
499
- setup(__props, { expose, emit }) {
500
- useAttrs();
501
- useQuasar();
503
+ setup(__props, { expose: __expose, emit }) {
502
504
  const lang2 = useLang();
503
505
  const variables = ref({
504
506
  // header: lang.value.some.nested.prop
@@ -506,7 +508,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
506
508
  const functions = ref({
507
509
  // submit
508
510
  });
509
- expose({
511
+ __expose({
510
512
  variables,
511
513
  functions
512
514
  });
@@ -517,12 +519,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
517
519
  createVNode(_component_q_input, {
518
520
  outlined: "",
519
521
  placeholder: unref(lang2).email.subject,
520
- "model-value": __props.subject,
522
+ "model-value": _ctx.subject,
521
523
  type: "text",
522
524
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:subject", $event))
523
525
  }, null, 8, ["placeholder", "model-value"]),
524
526
  createVNode(_component_q_editor, {
525
- "model-value": __props.body,
527
+ "model-value": _ctx.body,
526
528
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emit("update:body", $event))
527
529
  }, null, 8, ["model-value"])
528
530
  ], 64);