@simsustech/quasar-components 0.3.4 → 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 +7 -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 +55 -54
  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 +1 -1
  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
@@ -69,7 +69,7 @@ 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"],
@@ -81,7 +81,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
81
81
  const $q = useQuasar();
82
82
  if (lang2.value.isoName !== $q.lang.isoName)
83
83
  [__temp, __restore] = withAsyncContext(() => loadLang($q.lang.isoName)), await __temp, __restore();
84
- watch($q.lang, (val) => {
84
+ watch($q.lang, () => {
85
85
  loadLang($q.lang.isoName);
86
86
  });
87
87
  const genderOptions = ref([
@@ -106,9 +106,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
106
106
  return (_ctx, _cache) => {
107
107
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
108
108
  rules: validations.value,
109
- "model-value": __props.modelValue,
109
+ "model-value": _ctx.modelValue,
110
110
  options: genderOptions.value,
111
- label: `${unref(lang2).gender.gender}${__props.required ? "*" : ""}`,
111
+ label: `${unref(lang2).gender.gender}${_ctx.required ? "*" : ""}`,
112
112
  "emit-value": "",
113
113
  "map-options": "",
114
114
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
@@ -119,7 +119,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
119
119
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
120
120
  __name: "GenderItem",
121
121
  props: {
122
- modelValue: null
122
+ modelValue: {}
123
123
  },
124
124
  setup(__props) {
125
125
  const attrs = useAttrs();
@@ -127,7 +127,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
127
127
  const $q = useQuasar();
128
128
  if (lang2.value.isoName !== $q.lang.isoName)
129
129
  loadLang($q.lang.isoName);
130
- watch($q.lang, (val) => {
130
+ watch($q.lang, () => {
131
131
  loadLang($q.lang.isoName);
132
132
  });
133
133
  return (_ctx, _cache) => {
@@ -143,7 +143,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
143
143
  }),
144
144
  createVNode(unref(QItemLabel), null, {
145
145
  default: withCtx(() => [
146
- createTextVNode(toDisplayString(__props.modelValue ? unref(lang2).gender[__props.modelValue] : ""), 1)
146
+ createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang2).gender[_ctx.modelValue] : ""), 1)
147
147
  ]),
148
148
  _: 1
149
149
  })
@@ -159,8 +159,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
159
159
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
160
160
  __name: "PostalCodeInput",
161
161
  props: {
162
- modelValue: null,
163
- locale: null,
162
+ modelValue: {},
163
+ locale: {},
164
164
  required: { type: Boolean }
165
165
  },
166
166
  emits: ["update:modelValue"],
@@ -185,10 +185,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
185
185
  });
186
186
  return (_ctx, _cache) => {
187
187
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
188
- mask: masks.value[__props.locale],
189
- rules: unref(computedValidations),
190
- "model-value": __props.modelValue,
191
- 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 ? "*" : ""}`,
192
192
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
193
193
  }), null, 16, ["mask", "rules", "model-value", "label"]);
194
194
  };
@@ -197,9 +197,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
197
197
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
198
198
  __name: "FormItem",
199
199
  props: {
200
- modelValue: null,
201
- label: null,
202
- field: null
200
+ modelValue: {},
201
+ label: {},
202
+ field: {}
203
203
  },
204
204
  setup(__props) {
205
205
  const attrs = useAttrs();
@@ -208,7 +208,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
208
208
  const $q = useQuasar();
209
209
  if (lang2.value.isoName !== $q.lang.isoName)
210
210
  loadLang($q.lang.isoName);
211
- watch($q.lang, (val) => {
211
+ watch($q.lang, () => {
212
212
  loadLang($q.lang.isoName);
213
213
  });
214
214
  return (_ctx, _cache) => {
@@ -227,13 +227,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
227
227
  default: withCtx(() => [
228
228
  createVNode(unref(QItemLabel), { overline: "" }, {
229
229
  default: withCtx(() => [
230
- 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)
231
231
  ]),
232
232
  _: 1
233
233
  }),
234
234
  createVNode(unref(QItemLabel), null, {
235
235
  default: withCtx(() => [
236
- createTextVNode(toDisplayString(__props.modelValue || "-"), 1)
236
+ createTextVNode(toDisplayString(_ctx.modelValue || "-"), 1)
237
237
  ]),
238
238
  _: 1
239
239
  })
@@ -258,9 +258,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
258
258
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
259
259
  __name: "FormInput",
260
260
  props: {
261
- modelValue: null,
262
- field: null,
263
- label: null,
261
+ modelValue: {},
262
+ field: {},
263
+ label: {},
264
264
  required: { type: Boolean }
265
265
  },
266
266
  setup(__props) {
@@ -270,7 +270,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
270
270
  const $q = useQuasar();
271
271
  if (lang2.value.isoName !== $q.lang.isoName)
272
272
  loadLang($q.lang.isoName);
273
- watch($q.lang, (val) => {
273
+ watch($q.lang, () => {
274
274
  loadLang($q.lang.isoName);
275
275
  });
276
276
  const validations = ref([]);
@@ -281,8 +281,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
281
281
  return (_ctx, _cache) => {
282
282
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
283
283
  rules: validations.value,
284
- "model-value": __props.modelValue,
285
- 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 ? "*" : ""}`,
286
286
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
287
287
  }), null, 16, ["rules", "model-value", "label"]);
288
288
  };
@@ -291,7 +291,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
291
291
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
292
292
  __name: "TelephoneNumberInput",
293
293
  props: {
294
- modelValue: null,
294
+ modelValue: {},
295
295
  required: { type: Boolean }
296
296
  },
297
297
  emits: ["update:modelValue"],
@@ -307,8 +307,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
307
307
  return (_ctx, _cache) => {
308
308
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
309
309
  rules: validations.value,
310
- "model-value": __props.modelValue,
311
- label: `${unref(lang2).fields.telephoneNumber}${__props.required ? "*" : ""}`,
310
+ "model-value": _ctx.modelValue,
311
+ label: `${unref(lang2).fields.telephoneNumber}${_ctx.required ? "*" : ""}`,
312
312
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
313
313
  }), null, 16, ["rules", "model-value", "label"]);
314
314
  };
@@ -318,11 +318,11 @@ const _hoisted_1 = { class: "row items-center justify-end" };
318
318
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
319
319
  __name: "DateInput",
320
320
  props: {
321
- modelValue: null,
322
- label: null,
321
+ modelValue: {},
322
+ label: {},
323
323
  required: { type: Boolean },
324
324
  clearable: { type: Boolean },
325
- date: null
325
+ date: {}
326
326
  },
327
327
  setup(__props) {
328
328
  const props = __props;
@@ -331,10 +331,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
331
331
  const $q = useQuasar();
332
332
  if (lang2.value.isoName !== $q.lang.isoName)
333
333
  loadLang($q.lang.isoName);
334
- watch($q.lang, (val) => {
334
+ watch($q.lang, () => {
335
335
  loadLang($q.lang.isoName);
336
336
  });
337
- 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
+ ]);
338
340
  if (props.required)
339
341
  validations.value.push(
340
342
  (val) => !!val || lang2.value.validations.fieldRequired
@@ -347,14 +349,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
347
349
  const _directive_close_popup = resolveDirective("close-popup");
348
350
  return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
349
351
  rules: validations.value,
350
- "model-value": __props.modelValue,
351
- label: `${__props.label}${__props.required ? "*" : ""}`,
352
+ "model-value": _ctx.modelValue,
353
+ label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
354
+ placeholder: "YYYY/MM/DD",
352
355
  mask: "date",
353
356
  class: "q-pr-md",
354
357
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event))
355
358
  }), {
356
359
  append: withCtx(() => [
357
- __props.clearable ? (openBlock(), createBlock(_component_q_icon, {
360
+ _ctx.clearable ? (openBlock(), createBlock(_component_q_icon, {
358
361
  key: 0,
359
362
  name: "clear",
360
363
  class: "cursor-pointer",
@@ -371,8 +374,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
371
374
  "transition-hide": "scale"
372
375
  }, {
373
376
  default: withCtx(() => [
374
- createVNode(_component_q_date, mergeProps(__props.date, {
375
- "model-value": __props.modelValue,
377
+ createVNode(_component_q_date, mergeProps(_ctx.date, {
378
+ "model-value": _ctx.modelValue,
376
379
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event))
377
380
  }), {
378
381
  default: withCtx(() => [
@@ -404,7 +407,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
404
407
  __name: "BooleanSelect",
405
408
  props: {
406
409
  modelValue: { type: Boolean },
407
- label: null,
410
+ label: {},
408
411
  required: { type: Boolean }
409
412
  },
410
413
  emits: ["update:modelValue"],
@@ -415,7 +418,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
415
418
  const $q = useQuasar();
416
419
  if (lang2.value.isoName !== $q.lang.isoName)
417
420
  loadLang($q.lang.isoName);
418
- watch($q.lang, (val) => {
421
+ watch($q.lang, () => {
419
422
  loadLang($q.lang.isoName);
420
423
  });
421
424
  const booleanOptions = ref([
@@ -436,9 +439,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
436
439
  return (_ctx, _cache) => {
437
440
  return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
438
441
  rules: validations.value,
439
- "model-value": __props.modelValue,
442
+ "model-value": _ctx.modelValue,
440
443
  options: booleanOptions.value,
441
- label: `${__props.label}${__props.required ? "*" : ""}`,
444
+ label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
442
445
  "emit-value": "",
443
446
  "map-options": "",
444
447
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
@@ -450,7 +453,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
450
453
  __name: "BooleanItem",
451
454
  props: {
452
455
  modelValue: { type: Boolean },
453
- label: null
456
+ label: {}
454
457
  },
455
458
  setup(__props) {
456
459
  const attrs = useAttrs();
@@ -458,7 +461,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
458
461
  const $q = useQuasar();
459
462
  if (lang2.value.isoName !== $q.lang.isoName)
460
463
  loadLang($q.lang.isoName);
461
- watch($q.lang, (val) => {
464
+ watch($q.lang, () => {
462
465
  loadLang($q.lang.isoName);
463
466
  });
464
467
  return (_ctx, _cache) => {
@@ -468,13 +471,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
468
471
  default: withCtx(() => [
469
472
  createVNode(unref(QItemLabel), { overline: "" }, {
470
473
  default: withCtx(() => [
471
- createTextVNode(toDisplayString(__props.label), 1)
474
+ createTextVNode(toDisplayString(_ctx.label), 1)
472
475
  ]),
473
476
  _: 1
474
477
  }),
475
478
  createVNode(unref(QItemLabel), null, {
476
479
  default: withCtx(() => [
477
- createTextVNode(toDisplayString(__props.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
480
+ createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
478
481
  ]),
479
482
  _: 1
480
483
  })
@@ -493,13 +496,11 @@ const __default__ = {
493
496
  const _sfc_main = /* @__PURE__ */ defineComponent({
494
497
  ...__default__,
495
498
  props: {
496
- subject: null,
497
- body: null
499
+ subject: {},
500
+ body: {}
498
501
  },
499
502
  emits: ["update:subject", "update:body"],
500
- setup(__props, { expose, emit }) {
501
- useAttrs();
502
- useQuasar();
503
+ setup(__props, { expose: __expose, emit }) {
503
504
  const lang2 = useLang();
504
505
  const variables = ref({
505
506
  // header: lang.value.some.nested.prop
@@ -507,7 +508,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
507
508
  const functions = ref({
508
509
  // submit
509
510
  });
510
- expose({
511
+ __expose({
511
512
  variables,
512
513
  functions
513
514
  });
@@ -518,12 +519,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
518
519
  createVNode(_component_q_input, {
519
520
  outlined: "",
520
521
  placeholder: unref(lang2).email.subject,
521
- "model-value": __props.subject,
522
+ "model-value": _ctx.subject,
522
523
  type: "text",
523
524
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:subject", $event))
524
525
  }, null, 8, ["placeholder", "model-value"]),
525
526
  createVNode(_component_q_editor, {
526
- "model-value": __props.body,
527
+ "model-value": _ctx.body,
527
528
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emit("update:body", $event))
528
529
  }, null, 8, ["model-value"])
529
530
  ], 64);