@simsustech/quasar-components 0.12.0 → 0.12.2

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 (106) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/LocaleSelect-BtwfPrmu.js +461 -0
  3. package/dist/QSubmitButton-CDKwJhmF.js +102 -0
  4. package/dist/authentication.js +1936 -2031
  5. package/dist/de-C-vWIfjC.js +12 -0
  6. package/dist/de-DC33TYVA.js +354 -0
  7. package/dist/de-DO8EeJ0Q.js +4 -0
  8. package/dist/de-Kz_vvc9w.js +106 -0
  9. package/dist/form.js +1092 -1226
  10. package/dist/general.js +319 -361
  11. package/dist/md3.js +407 -395
  12. package/dist/nl-DIfqXZG_.js +354 -0
  13. package/dist/nl-DWmQiCdO.js +12 -0
  14. package/dist/nl-DbV07Lx7.js +106 -0
  15. package/dist/nl-ZpgX9FUw.js +4 -0
  16. package/dist/quasar-components.css +5 -4
  17. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  18. package/dist/types/{ui → src/ui}/authentication/LoginForm.vue.d.ts +5 -0
  19. package/dist/types/src/ui/form/lang/nl.d.ts +3 -0
  20. package/dist/types/src/ui/general/lang/nl.d.ts +3 -0
  21. package/dist/types/src/ui/md3/lang/de.d.ts +3 -0
  22. package/dist/types/src/ui/md3/lang/en-US.d.ts +3 -0
  23. package/dist/types/src/ui/md3/lang/nl.d.ts +3 -0
  24. package/dist/virtualModules.js +62 -2
  25. package/dist/vite-plugin.js +50 -101
  26. package/package.json +33 -33
  27. package/src/ui/authentication/LoginForm.vue +9 -4
  28. package/src/ui/authentication/lang/de.ts +118 -0
  29. package/src/ui/authentication/lang/en-US.ts +1 -1
  30. package/src/ui/flags/lang/de.ts +384 -0
  31. package/src/ui/form/lang/de.ts +211 -0
  32. package/src/ui/general/lang/de.ts +13 -0
  33. package/src/ui/md3/lang/de.ts +7 -0
  34. package/tsconfig.json +1 -0
  35. package/tsconfig.node.json +2 -1
  36. package/tsconfig.types.json +2 -1
  37. package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-e2EDOyzk.js +0 -353
  38. package/dist/QSubmitButton.vue_vue_type_script_setup_true_lang-D-I0Gws4.js +0 -109
  39. package/dist/nl-BRjDNoaR.js +0 -209
  40. package/dist/nl-CneFq5NZ.js +0 -112
  41. package/dist/nl-NLgZUAKl.js +0 -6
  42. package/dist/nl-X50pmfG-.js +0 -12
  43. package/eslint.config.js +0 -29
  44. package/dist/types/{ui → src/ui}/authentication/AccountsTable.vue.d.ts +0 -0
  45. package/dist/types/{ui → src/ui}/authentication/ConsentList.vue.d.ts +0 -0
  46. package/dist/types/{ui → src/ui}/authentication/EmailChangeForm.vue.d.ts +0 -0
  47. package/dist/types/{ui → src/ui}/authentication/EmailChangeStepper.vue.d.ts +0 -0
  48. package/dist/types/{ui → src/ui}/authentication/LoginButton.vue.d.ts +0 -0
  49. package/dist/types/{ui → src/ui}/authentication/LogoutButton.vue.d.ts +0 -0
  50. package/dist/types/{ui → src/ui}/authentication/LogoutForm.vue.d.ts +0 -0
  51. package/dist/types/{ui → src/ui}/authentication/OtpInput.vue.d.ts +0 -0
  52. package/dist/types/{ui → src/ui}/authentication/PasswordChangeForm.vue.d.ts +0 -0
  53. package/dist/types/{ui → src/ui}/authentication/PasswordChangeStepper.vue.d.ts +0 -0
  54. package/dist/types/{ui → src/ui}/authentication/RegisterForm.vue.d.ts +0 -0
  55. package/dist/types/{ui → src/ui}/authentication/RequestOtpForm.vue.d.ts +0 -0
  56. package/dist/types/{ui → src/ui}/authentication/UserMenuButton.vue.d.ts +0 -0
  57. package/dist/types/{ui → src/ui}/authentication/VerificationSlider.vue.d.ts +0 -0
  58. package/dist/types/{ui → src/ui}/authentication/index.d.ts +0 -0
  59. package/dist/types/{ui/authentication/lang/en-US.d.ts → src/ui/authentication/lang/de.d.ts} +0 -0
  60. package/dist/types/{ui/flags → src/ui/authentication}/lang/en-US.d.ts +0 -0
  61. package/dist/types/{ui → src/ui}/authentication/lang/index.d.ts +0 -0
  62. package/dist/types/{ui → src/ui}/authentication/lang/nl.d.ts +0 -0
  63. package/dist/types/{ui → src/ui}/flags/index.d.ts +0 -0
  64. package/dist/types/{ui/flags/lang/nl.d.ts → src/ui/flags/lang/de.d.ts} +0 -0
  65. package/dist/types/{ui/general → src/ui/flags}/lang/en-US.d.ts +0 -0
  66. package/dist/types/{ui → src/ui}/flags/lang/index.d.ts +0 -0
  67. package/dist/types/{ui/general → src/ui/flags}/lang/nl.d.ts +0 -0
  68. package/dist/types/{ui → src/ui}/form/BooleanItem.vue.d.ts +0 -0
  69. package/dist/types/{ui → src/ui}/form/BooleanSelect.vue.d.ts +0 -0
  70. package/dist/types/{ui → src/ui}/form/CountrySelect.vue.d.ts +0 -0
  71. package/dist/types/{ui → src/ui}/form/CronScheduleInput.vue.d.ts +0 -0
  72. package/dist/types/{ui → src/ui}/form/CurrencySelect.vue.d.ts +0 -0
  73. package/dist/types/{ui → src/ui}/form/DateInput.vue.d.ts +1 -1
  74. package/dist/types/{ui → src/ui}/form/DatePicker.vue.d.ts +0 -0
  75. package/dist/types/{ui → src/ui}/form/EmailInput.vue.d.ts +0 -0
  76. package/dist/types/{ui → src/ui}/form/FilteredModelSelect.vue.d.ts +0 -0
  77. package/dist/types/{ui → src/ui}/form/FormInput.vue.d.ts +0 -0
  78. package/dist/types/{ui → src/ui}/form/FormItem.vue.d.ts +0 -0
  79. package/dist/types/{ui → src/ui}/form/GenderItem.vue.d.ts +0 -0
  80. package/dist/types/{ui → src/ui}/form/GenderSelect.vue.d.ts +0 -0
  81. package/dist/types/{ui → src/ui}/form/LocaleSelect.vue.d.ts +0 -0
  82. package/dist/types/{ui → src/ui}/form/PostalCodeInput.vue.d.ts +0 -0
  83. package/dist/types/{ui → src/ui}/form/TelephoneNumberInput.vue.d.ts +0 -0
  84. package/dist/types/{ui → src/ui}/form/index.d.ts +0 -0
  85. package/dist/types/{ui/form/lang/en-US.d.ts → src/ui/form/lang/de.d.ts} +0 -0
  86. package/dist/types/{ui/form/lang/nl.d.ts → src/ui/form/lang/en-US.d.ts} +0 -0
  87. package/dist/types/{ui → src/ui}/form/lang/index.d.ts +2 -2
  88. package/dist/types/{ui → src/ui}/general/QDrawerList.vue.d.ts +0 -0
  89. package/dist/types/{ui → src/ui}/general/QLanguageSelect.vue.d.ts +0 -0
  90. package/dist/types/{ui → src/ui}/general/QStyledCard.vue.d.ts +0 -0
  91. package/dist/types/{ui → src/ui}/general/QStyledLayout.vue.d.ts +0 -0
  92. package/dist/types/{ui → src/ui}/general/QSubmitButton.vue.d.ts +1 -1
  93. package/dist/types/{ui → src/ui}/general/ResourcePage.vue.d.ts +1 -1
  94. /package/dist/types/{ui → src/ui}/general/ResponsiveDialog.vue.d.ts +0 -0
  95. /package/dist/types/{ui → src/ui}/general/index.d.ts +0 -0
  96. /package/dist/types/{ui/md3/lang/en-US.d.ts → src/ui/general/lang/de.d.ts} +0 -0
  97. /package/dist/types/{ui/md3/lang/nl.d.ts → src/ui/general/lang/en-US.d.ts} +0 -0
  98. /package/dist/types/{ui → src/ui}/general/lang/index.d.ts +0 -0
  99. /package/dist/types/{ui → src/ui}/icons/index.d.ts +0 -0
  100. /package/dist/types/{ui → src/ui}/icons/labels.d.ts +0 -0
  101. /package/dist/types/{ui → src/ui}/md3/Md3Layout.vue.d.ts +0 -0
  102. /package/dist/types/{ui → src/ui}/md3/NavigationRailFabs.vue.d.ts +0 -0
  103. /package/dist/types/{ui → src/ui}/md3/index.d.ts +0 -0
  104. /package/dist/types/{ui → src/ui}/md3/lang/index.d.ts +0 -0
  105. /package/dist/types/{virtualModules.d.ts → src/virtualModules.d.ts} +0 -0
  106. /package/dist/types/{vite-plugin.d.ts → src/vite-plugin.d.ts} +0 -0
@@ -1,353 +0,0 @@
1
- import { QSelect, QItem, QItemSection, QIcon, QItemLabel } from "quasar";
2
- import { ref, defineComponent, toRefs, useAttrs, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, createElementBlock, createCommentVNode } from "vue";
3
- const lang$1 = {
4
- isoName: "en-US",
5
- yes: "Yes",
6
- no: "No",
7
- selectMultiple: "Select one or multiple",
8
- noResultsAvailable: "No results available.",
9
- buttons: {
10
- close: "Close"
11
- },
12
- email: {
13
- subject: "Subject"
14
- },
15
- fields: {
16
- name: "Name",
17
- firstName: "First name",
18
- lastName: "Last name",
19
- address: "Address",
20
- postalCode: "Postal code",
21
- city: "City",
22
- telephoneNumber: "Telephone number"
23
- },
24
- validations: {
25
- fieldRequired: "Field is required."
26
- },
27
- gender: {
28
- gender: "Gender",
29
- male: "Male",
30
- female: "Female",
31
- other: "Other"
32
- },
33
- postalCode: {
34
- postalCode: "Postal code",
35
- validations: {
36
- invalidPostalCode: "Invalid postal code"
37
- }
38
- },
39
- datePicker: {
40
- date: "Date",
41
- placeholder: "YYYY/MM/DD",
42
- YYYY: "YYYY",
43
- MM: "MM",
44
- DD: "DD",
45
- validations: {
46
- unavailableRange: "The selected period contains unavailable dates."
47
- }
48
- },
49
- currency: {
50
- currency: "Currency",
51
- EUR: "Euro",
52
- USD: "USD"
53
- },
54
- locale: {
55
- locale: "Locale"
56
- },
57
- cron: {
58
- name: "Repeat",
59
- minute: "Minute",
60
- hour: "Hour",
61
- dayOfMonth: "Day of month",
62
- month: "Month",
63
- dayOfWeek: "Day of week",
64
- every: {
65
- minute: "Every minute",
66
- hour: "Every hour",
67
- dayOfMonth: "Every day",
68
- month: "Every month",
69
- dayOfWeek: "Every day of the week"
70
- },
71
- validations: {
72
- invalidCron: "Cron rule is invalid."
73
- }
74
- },
75
- countries: {
76
- SA: "Saudi Arabia",
77
- BD: "Bangladesh",
78
- IN: "India",
79
- CZ: "Czech Republic",
80
- DK: "Denmark",
81
- AT: "Austria",
82
- CH: "Switzerland",
83
- DE: "Germany",
84
- GR: "Greece",
85
- AU: "Australia",
86
- CA: "Canada",
87
- GB: "United Kingdom",
88
- IE: "Ireland",
89
- NZ: "New Zealand",
90
- US: "United States",
91
- ZA: "South Africa",
92
- AR: "Argentina",
93
- CL: "Chile",
94
- CO: "Colombia",
95
- ES: "Spain",
96
- MX: "Mexico",
97
- FI: "Finland",
98
- BE: "Belgium",
99
- FR: "France",
100
- IL: "Israel",
101
- HU: "Hungarian",
102
- ID: "Indonesia",
103
- IT: "Italy",
104
- JP: "Japan",
105
- KR: "Republic of Korea",
106
- NL: "The Netherlands",
107
- NO: "Norway",
108
- PL: "Polish",
109
- BR: "Brazil",
110
- PT: "Portugal",
111
- RO: "Romania",
112
- RU: "Russian Federation",
113
- SK: "Slovakia",
114
- SE: "Sweden",
115
- LK: "Sri Lanka",
116
- TH: "Thai",
117
- TR: "Turkey",
118
- CN: "China",
119
- HK: "Hong Kong",
120
- TW: "Taiwan"
121
- },
122
- languages: {
123
- ar: "Arabic",
124
- bn: "Bangla",
125
- cs: "Czech",
126
- da: "Danish",
127
- de: "German",
128
- el: "Greek",
129
- en: "English",
130
- es: "Spanish",
131
- fi: "Finnish",
132
- fr: "French",
133
- he: "Hebrew",
134
- hi: "Hindi",
135
- hu: "Hungarian",
136
- id: "Indonesian",
137
- it: "Italian",
138
- ja: "Japanese",
139
- ko: "Korean",
140
- nl: "Dutch",
141
- no: "Norwegian",
142
- pl: "Polish",
143
- pt: "Portuguese",
144
- ro: "Romanian",
145
- ru: "Russian",
146
- sk: "Slovak",
147
- sv: "Swedish",
148
- ta: "Tamil",
149
- th: "Thai",
150
- tr: "Turkish",
151
- zh: "Chinese"
152
- },
153
- bcp47: {
154
- "ar-SA": { language: "Arabic", country: "Saudi Arabia" },
155
- "bn-BD": { language: "Bangla", country: "Bangladesh" },
156
- "bn-IN": { language: "Bangla", country: "India" },
157
- "cs-CZ": { language: "Czech", country: "Czech Republic" },
158
- "da-DK": { language: "Danish", country: "Denmark" },
159
- "de-AT": { language: "German", country: "Austria" },
160
- "de-CH": { language: "German", country: "Switzerland" },
161
- "de-DE": { language: "German", country: "Germany" },
162
- "el-GR": { language: "Greek", country: "Greece" },
163
- "en-AU": { language: "English", country: "Australia" },
164
- "en-CA": { language: "English", country: "Canada" },
165
- "en-GB": { language: "English", country: "United Kingdom" },
166
- "en-IE": { language: "English", country: "Ireland" },
167
- "en-IN": { language: "English", country: "India" },
168
- "en-NZ": { language: "English", country: "New Zealand" },
169
- "en-US": { language: "English", country: "United States" },
170
- "en-ZA": { language: "English", country: "South Africa" },
171
- "es-AR": { language: "Spanish", country: "Argentina" },
172
- "es-CL": { language: "Spanish", country: "Chile" },
173
- "es-CO": { language: "Spanish", country: "Colombia" },
174
- "es-ES": { language: "Spanish", country: "Spain" },
175
- "es-MX": { language: "Spanish", country: "Mexico" },
176
- "es-US": { language: "Spanish", country: "United States" },
177
- "fi-FI": { language: "Finnish", country: "Finland" },
178
- "fr-BE": { language: "French", country: "Belgium" },
179
- "fr-CA": { language: "French", country: "Canada" },
180
- "fr-CH": { language: "French", country: "Switzerland" },
181
- "fr-FR": { language: "French", country: "France" },
182
- "he-IL": { language: "Hebrew", country: "Israel" },
183
- "hi-IN": { language: "Hindi", country: "India" },
184
- "hu-HU": { language: "Hungarian", country: "Hungary" },
185
- "id-ID": { language: "Indonesian", country: "Indonesia" },
186
- "it-CH": { language: "Italian", country: "Switzerland" },
187
- "it-IT": { language: "Italian", country: "Italy" },
188
- "ja-JP": { language: "Japanese", country: "Japan" },
189
- "ko-KR": { language: "Korean", country: "Republic of Korea" },
190
- "nl-BE": { language: "Dutch", country: "Belgium" },
191
- "nl-NL": { language: "Dutch", country: "The Netherlands" },
192
- "no-NO": { language: "Norwegian", country: "Norway" },
193
- "pl-PL": { language: "Polish", country: "Poland" },
194
- "pt-BR": { language: "Portuguese", country: "Brazil" },
195
- "pt-PT": { language: "Portuguese", country: "Portugal" },
196
- "ro-RO": { language: "Romanian", country: "Romania" },
197
- "ru-RU": { language: "Russian", country: "Russian Federation" },
198
- "sk-SK": { language: "Slovak", country: "Slovakia" },
199
- "sv-SE": { language: "Swedish", country: "Sweden" },
200
- "ta-IN": { language: "Tamil", country: "India" },
201
- "ta-LK": { language: "Tamil", country: "Sri Lanka" },
202
- "th-TH": { language: "Thai", country: "Thailand" },
203
- "tr-TR": { language: "Turkish", country: "Turkey" },
204
- "zh-CN": { language: "Chinese", country: "China" },
205
- "zh-HK": { language: "Chinese", country: "Hong Kong" },
206
- "zh-TW": { language: "Chinese", country: "Taiwan" }
207
- }
208
- };
209
- const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
210
- __proto__: null,
211
- default: lang$1
212
- }, Symbol.toStringTag, { value: "Module" }));
213
- const lang = ref(lang$1);
214
- const locales = /* @__PURE__ */ Object.assign({
215
- "./en-US.ts": () => Promise.resolve().then(() => enUS),
216
- "./nl.ts": () => import("./nl-BRjDNoaR.js")
217
- });
218
- const useLang = () => {
219
- return lang;
220
- };
221
- let loadingLanguage = false;
222
- const loadLang = async (isoName) => {
223
- if (!loadingLanguage) {
224
- loadingLanguage = true;
225
- try {
226
- const data = (await locales[`./${isoName}.ts`]()).default;
227
- if (data) {
228
- lang.value = data;
229
- }
230
- } catch (e) {
231
- throw new Error(
232
- `[quasar-components] Failed to load ${isoName} language file.`
233
- );
234
- }
235
- loadingLanguage = false;
236
- }
237
- };
238
- const _hoisted_1 = { key: 1 };
239
- const _sfc_main = /* @__PURE__ */ defineComponent({
240
- __name: "LocaleSelect",
241
- props: {
242
- modelValue: {},
243
- locales: {},
244
- isItem: { type: Boolean }
245
- },
246
- emits: ["update:modelValue"],
247
- setup(__props, { expose: __expose, emit: __emit }) {
248
- const props = __props;
249
- const emit = __emit;
250
- const { modelValue, locales: locales2 } = toRefs(props);
251
- const lang2 = useLang();
252
- const attrs = useAttrs();
253
- const localeOptions = computed(() => {
254
- const options = locales2.value.map((locale) => ({
255
- label: getLanguageLabel(locale.bcp47),
256
- value: locale.bcp47,
257
- icon: locale.icon
258
- }));
259
- return options;
260
- });
261
- const getCountryLabel = (v) => lang2.value.bcp47[v]?.country;
262
- const getLanguageLabel = (v) => lang2.value.bcp47[v]?.language;
263
- const variables = ref({
264
- //
265
- });
266
- const functions = ref({
267
- getCountryLabel,
268
- getLanguageLabel
269
- });
270
- __expose({
271
- variables,
272
- functions
273
- });
274
- return (_ctx, _cache) => {
275
- const _component_q_icon = QIcon;
276
- const _component_q_item_section = QItemSection;
277
- const _component_q_item_label = QItemLabel;
278
- const _component_q_item = QItem;
279
- return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
280
- options: localeOptions.value,
281
- "model-value": unref(modelValue),
282
- filled: false,
283
- "emit-value": "",
284
- "map-options": "",
285
- "onUpdate:modelValue": _cache[0] || (_cache[0] = (val) => emit("update:modelValue", val))
286
- }), {
287
- "selected-item": withCtx((scope) => [
288
- scope.opt && __props.isItem ? (openBlock(), createBlock(_component_q_item, { key: 0 }, {
289
- default: withCtx(() => [
290
- createVNode(_component_q_item_section, { avatar: "" }, {
291
- default: withCtx(() => [
292
- createVNode(_component_q_icon, {
293
- name: scope.opt.icon
294
- }, null, 8, ["name"])
295
- ]),
296
- _: 2
297
- }, 1024),
298
- createVNode(_component_q_item_section, null, {
299
- default: withCtx(() => [
300
- createVNode(_component_q_item_label, null, {
301
- default: withCtx(() => [
302
- createTextVNode(toDisplayString(scope.opt.label), 1)
303
- ]),
304
- _: 2
305
- }, 1024)
306
- ]),
307
- _: 2
308
- }, 1024)
309
- ]),
310
- _: 2
311
- }, 1024)) : scope.opt ? (openBlock(), createElementBlock("div", _hoisted_1, [
312
- createVNode(_component_q_icon, {
313
- name: scope.opt.icon
314
- }, null, 8, ["name"]),
315
- createTextVNode(" " + toDisplayString(scope.opt.label), 1)
316
- ])) : createCommentVNode("", true)
317
- ]),
318
- option: withCtx((scope) => [
319
- createVNode(_component_q_item, normalizeProps(guardReactiveProps(scope.itemProps)), {
320
- default: withCtx(() => [
321
- createVNode(_component_q_item_section, { avatar: "" }, {
322
- default: withCtx(() => [
323
- createVNode(_component_q_icon, {
324
- name: scope.opt.icon
325
- }, null, 8, ["name"])
326
- ]),
327
- _: 2
328
- }, 1024),
329
- createVNode(_component_q_item_section, null, {
330
- default: withCtx(() => [
331
- createVNode(_component_q_item_label, null, {
332
- default: withCtx(() => [
333
- createTextVNode(toDisplayString(scope.opt.label), 1)
334
- ]),
335
- _: 2
336
- }, 1024)
337
- ]),
338
- _: 2
339
- }, 1024)
340
- ]),
341
- _: 2
342
- }, 1040)
343
- ]),
344
- _: 1
345
- }, 16, ["options", "model-value"]);
346
- };
347
- }
348
- });
349
- export {
350
- _sfc_main as _,
351
- loadLang as l,
352
- useLang as u
353
- };
@@ -1,109 +0,0 @@
1
- import { useQuasar, debounce, QBtn } from "quasar";
2
- import { ref, defineComponent, toRefs, useAttrs, watch, computed, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
3
- const lang$1 = {
4
- isoName: "en-US",
5
- submit: "Submit",
6
- next: "Next",
7
- back: "Back",
8
- send: "Send",
9
- add: "Add",
10
- edit: "Edit"
11
- };
12
- const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
- __proto__: null,
14
- default: lang$1
15
- }, Symbol.toStringTag, { value: "Module" }));
16
- const lang = ref(lang$1);
17
- const locales = /* @__PURE__ */ Object.assign({
18
- "./en-US.ts": () => Promise.resolve().then(() => enUS),
19
- "./nl.ts": () => import("./nl-X50pmfG-.js")
20
- });
21
- const useLang = () => {
22
- return lang;
23
- };
24
- let loadingLanguage = false;
25
- const loadLang = async (isoName) => {
26
- if (!loadingLanguage) {
27
- loadingLanguage = true;
28
- try {
29
- const data = (await locales[`./${isoName}.ts`]()).default;
30
- if (data) {
31
- lang.value = data;
32
- }
33
- } catch (e) {
34
- throw new Error(
35
- `[quasar-components] Failed to load ${isoName} language file.`
36
- );
37
- }
38
- loadingLanguage = false;
39
- }
40
- };
41
- const __default__ = {
42
- name: "QSubmitButton",
43
- inheritAttrs: false
44
- };
45
- const _sfc_main = /* @__PURE__ */ defineComponent({
46
- ...__default__,
47
- props: {
48
- loading: { type: Boolean, default: void 0 },
49
- useForm: { type: Boolean },
50
- type: { default: "submit" },
51
- isNextButton: { type: Boolean },
52
- color: { default: "primary" }
53
- },
54
- emits: ["submit"],
55
- setup(__props, { emit: __emit }) {
56
- const props = __props;
57
- const { type, isNextButton } = toRefs(props);
58
- const attrs = useAttrs();
59
- const emit = __emit;
60
- const $q = useQuasar();
61
- const lang2 = useLang();
62
- if (lang2.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
63
- watch($q.lang, (val) => {
64
- loadLang($q.lang.isoName);
65
- });
66
- let loadingInternal = ref(false);
67
- const submit = debounce(
68
- () => {
69
- if (props.loading === void 0) loadingInternal.value = true;
70
- new Promise((resolve, reject) => {
71
- emit("submit", { done: () => resolve(true) });
72
- }).finally(() => {
73
- if (props.loading === void 0) loadingInternal.value = false;
74
- });
75
- },
76
- 1e3,
77
- true
78
- );
79
- const label = computed(() => {
80
- const labels = {
81
- submit: lang2.value.submit,
82
- send: lang2.value.send,
83
- next: lang2.value.next
84
- };
85
- return isNextButton.value ? lang2.value.next : labels[type.value];
86
- });
87
- return (_ctx, _cache) => {
88
- const _component_q_btn = QBtn;
89
- return openBlock(), createBlock(_component_q_btn, mergeProps(unref(attrs), {
90
- color: __props.color,
91
- loading: __props.loading || unref(loadingInternal),
92
- type: "submit",
93
- onClick: unref(submit)
94
- }), {
95
- default: withCtx(() => [
96
- renderSlot(_ctx.$slots, "default", {}, () => [
97
- createTextVNode(toDisplayString(label.value), 1)
98
- ])
99
- ]),
100
- _: 3
101
- }, 16, ["color", "loading", "onClick"]);
102
- };
103
- }
104
- });
105
- export {
106
- _sfc_main as _,
107
- loadLang as l,
108
- useLang as u
109
- };
@@ -1,209 +0,0 @@
1
- const lang = {
2
- isoName: "nl",
3
- yes: "Ja",
4
- no: "Nee",
5
- selectMultiple: "Selecteer één of meerdere",
6
- noResultsAvailable: "Geen resultaten beschikbaar.",
7
- buttons: {
8
- close: "Sluiten"
9
- },
10
- email: {
11
- subject: "Onderwerp"
12
- },
13
- fields: {
14
- name: "Naam",
15
- firstName: "Voornaam",
16
- lastName: "Achternaam",
17
- address: "Adres",
18
- postalCode: "Postcode",
19
- city: "Woonplaats",
20
- telephoneNumber: "Telefoonnummer"
21
- },
22
- validations: {
23
- fieldRequired: "Veld is vereist."
24
- },
25
- gender: {
26
- gender: "Geslacht",
27
- male: "Mannelijk",
28
- female: "Vrouwelijk",
29
- other: "Anders"
30
- },
31
- postalCode: {
32
- postalCode: "Postcode",
33
- validations: {
34
- invalidPostalCode: "Ongeldige postcode"
35
- }
36
- },
37
- datePicker: {
38
- date: "Datum",
39
- placeholder: "JJJJ/MM/DD",
40
- YYYY: "JJJJ",
41
- MM: "MM",
42
- DD: "DD",
43
- validations: {
44
- unavailableRange: "De geselecteerde periode bevat ongeschikbare datums."
45
- }
46
- },
47
- currency: {
48
- currency: "Valuta",
49
- EUR: "Euro",
50
- USD: "USD"
51
- },
52
- locale: {
53
- locale: "Regio"
54
- },
55
- cron: {
56
- name: "Herhaling",
57
- minute: "Minuut",
58
- hour: "Uur",
59
- dayOfMonth: "Dag van maand",
60
- month: "Maand",
61
- dayOfWeek: "Dag van week",
62
- every: {
63
- minute: "Iedere minuut",
64
- hour: "Ieder uur",
65
- dayOfMonth: "Iedere dag",
66
- month: "Iedere maand",
67
- dayOfWeek: "Iedere dag van de week"
68
- },
69
- validations: {
70
- invalidCron: "Cron regel is ongeldig."
71
- }
72
- },
73
- countries: {
74
- SA: "Saudi-Arabië",
75
- BD: "Bangladesh",
76
- IN: "India",
77
- CZ: "Tsjechië",
78
- DK: "Denemarken",
79
- AT: "Oostenrijk",
80
- CH: "Zwitserland",
81
- DE: "Duitsland",
82
- GR: "Griekenland",
83
- AU: "Australië",
84
- CA: "Canada",
85
- GB: "Verenigd Koninkrijk",
86
- IE: "Ierland",
87
- NZ: "Nieuw-Zeeland",
88
- US: "Verenigde Staten",
89
- ZA: "Zuid-Afrika",
90
- AR: "Argentinië",
91
- CL: "Chili",
92
- CO: "Colombia",
93
- ES: "Spanje",
94
- MX: "Mexico",
95
- FI: "Finland",
96
- BE: "België",
97
- FR: "Frankrijk",
98
- IL: "Israël",
99
- HU: "Hongarije",
100
- ID: "Indonesië",
101
- IT: "Italië",
102
- JP: "Japan",
103
- KR: "Zuid-Korea",
104
- NL: "Nederland",
105
- NO: "Noorwegen",
106
- PL: "Polen",
107
- BR: "Brazilië",
108
- PT: "Portugal",
109
- RO: "Roemenië",
110
- RU: "Rusland",
111
- SK: "Slowakije",
112
- SE: "Zweden",
113
- LK: "Sri Lanka",
114
- TH: "Thailand",
115
- TR: "Turkije",
116
- CN: "China",
117
- HK: "Hongkong",
118
- TW: "Taiwan"
119
- },
120
- languages: {
121
- ar: "Arabisch",
122
- bn: "Bengaals",
123
- cs: "Tsjechisch",
124
- da: "Deens",
125
- de: "Duits",
126
- el: "Grieks",
127
- en: "Engels",
128
- es: "Spaans",
129
- fi: "Fins",
130
- fr: "Frans",
131
- he: "Hebreeuws",
132
- hi: "Hindi",
133
- hu: "Hongaars",
134
- id: "Indonesisch",
135
- it: "Italiaans",
136
- ja: "Japans",
137
- ko: "Koreaans",
138
- nl: "Nederlands",
139
- no: "Noors",
140
- pl: "Pools",
141
- pt: "Portugees",
142
- ro: "Roemeens",
143
- ru: "Russisch",
144
- sk: "Slowaaks",
145
- sv: "Zweeds",
146
- ta: "Tamil",
147
- th: "Thais",
148
- tr: "Turks",
149
- zh: "Chinees"
150
- },
151
- bcp47: {
152
- "ar-SA": { language: "Arabisch", country: "Saoedi-Arabië" },
153
- "bn-BD": { language: "Bengaals", country: "Bangladesh" },
154
- "bn-IN": { language: "Bengaals", country: "India" },
155
- "cs-CZ": { language: "Tsjechisch", country: "Tsjechië" },
156
- "da-DK": { language: "Deens", country: "Denemarken" },
157
- "de-AT": { language: "Duits", country: "Oostenrijk" },
158
- "de-CH": { language: "Duits", country: "Zwitserland" },
159
- "de-DE": { language: "Duits", country: "Duitsland" },
160
- "el-GR": { language: "Grieks", country: "Griekenland" },
161
- "en-AU": { language: "Engels", country: "Australië" },
162
- "en-CA": { language: "Engels", country: "Canada" },
163
- "en-GB": { language: "Engels", country: "Verenigd Koninkrijk" },
164
- "en-IE": { language: "Engels", country: "Ierland" },
165
- "en-IN": { language: "Engels", country: "India" },
166
- "en-NZ": { language: "Engels", country: "Nieuw-Zeeland" },
167
- "en-US": { language: "Engels", country: "Verenigde Staten" },
168
- "en-ZA": { language: "Engels", country: "Zuid-Afrika" },
169
- "es-AR": { language: "Spaans", country: "Argentinië" },
170
- "es-CL": { language: "Spaans", country: "Chili" },
171
- "es-CO": { language: "Spaans", country: "Colombia" },
172
- "es-ES": { language: "Spaans", country: "Spanje" },
173
- "es-MX": { language: "Spaans", country: "Mexico" },
174
- "es-US": { language: "Spaans", country: "Verenigde Staten" },
175
- "fi-FI": { language: "Fins", country: "Finland" },
176
- "fr-BE": { language: "Frans", country: "België" },
177
- "fr-CA": { language: "Frans", country: "Canada" },
178
- "fr-CH": { language: "Frans", country: "Zwitserland" },
179
- "fr-FR": { language: "Frans", country: "Frankrijk" },
180
- "he-IL": { language: "Hebreeuws", country: "Israël" },
181
- "hi-IN": { language: "Hindi", country: "India" },
182
- "hu-HU": { language: "Hongaars", country: "Hongarije" },
183
- "id-ID": { language: "Indonesisch", country: "Indonesië" },
184
- "it-CH": { language: "Italiaans", country: "Zwitserland" },
185
- "it-IT": { language: "Italiaans", country: "Italië" },
186
- "ja-JP": { language: "Japans", country: "Japan" },
187
- "ko-KR": { language: "Koreaans", country: "Zuid-Korea" },
188
- "nl-BE": { language: "Nederlands", country: "België" },
189
- "nl-NL": { language: "Nederlands", country: "Nederland" },
190
- "no-NO": { language: "Noors", country: "Noorwegen" },
191
- "pl-PL": { language: "Pools", country: "Polen" },
192
- "pt-BR": { language: "Portugees", country: "Brazilië" },
193
- "pt-PT": { language: "Portugees", country: "Portugal" },
194
- "ro-RO": { language: "Roemeens", country: "Roemenië" },
195
- "ru-RU": { language: "Russisch", country: "Russische Federatie" },
196
- "sk-SK": { language: "Slowaaks", country: "Slowakije" },
197
- "sv-SE": { language: "Zweeds", country: "Zweden" },
198
- "ta-IN": { language: "Tamil", country: "India" },
199
- "ta-LK": { language: "Tamil", country: "Sri Lanka" },
200
- "th-TH": { language: "Thais", country: "Thailand" },
201
- "tr-TR": { language: "Turks", country: "Turkije" },
202
- "zh-CN": { language: "Chinees", country: "China" },
203
- "zh-HK": { language: "Chinees", country: "Hongkong" },
204
- "zh-TW": { language: "Chinees", country: "Taiwan" }
205
- }
206
- };
207
- export {
208
- lang as default
209
- };