@simsustech/quasar-components 0.11.10 → 0.11.12

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 (69) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js +573 -0
  3. package/dist/authentication.js +152 -66
  4. package/dist/form.js +155 -300
  5. package/dist/general.js +44 -195
  6. package/dist/md3.js +459 -0
  7. package/dist/{nl-BTgHOvpQ.js → nl-BJwNz421.js} +70 -0
  8. package/dist/{nl-jHKPHlmh.js → nl-CneFq5NZ.js} +4 -0
  9. package/dist/nl-NLgZUAKl.js +6 -0
  10. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +2 -2
  11. package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
  12. package/dist/types/ui/authentication/LoginForm.vue.d.ts +2 -2
  13. package/dist/types/ui/authentication/LogoutButton.vue.d.ts +12 -0
  14. package/dist/types/ui/authentication/LogoutForm.vue.d.ts +18 -0
  15. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +2 -2
  16. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +2 -2
  17. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -2
  18. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +1 -1
  19. package/dist/types/ui/authentication/index.d.ts +2 -0
  20. package/dist/types/ui/authentication/lang/index.d.ts +12 -0
  21. package/dist/types/ui/form/DateInput.vue.d.ts +11 -1
  22. package/dist/types/ui/form/FormInput.vue.d.ts +2 -15
  23. package/dist/types/ui/form/FormItem.vue.d.ts +2 -19
  24. package/dist/types/ui/form/LocaleSelect.vue.d.ts +6 -4
  25. package/dist/types/ui/form/lang/index.d.ts +1131 -0
  26. package/dist/types/ui/general/QDrawerList.vue.d.ts +2 -7
  27. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +7 -4
  28. package/dist/types/ui/general/QStyledCard.vue.d.ts +9 -5
  29. package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
  30. package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
  31. package/dist/types/ui/general/ResourcePage.vue.d.ts +9 -5
  32. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +3 -2
  33. package/dist/types/ui/general/index.d.ts +0 -1
  34. package/dist/types/ui/md3/Md3Layout.vue.d.ts +31 -0
  35. package/dist/types/ui/md3/NavigationRailFabs.vue.d.ts +15 -0
  36. package/dist/types/ui/md3/index.d.ts +3 -0
  37. package/dist/types/ui/md3/lang/en-US.d.ts +3 -0
  38. package/dist/types/ui/md3/lang/index.d.ts +12 -0
  39. package/dist/types/ui/md3/lang/nl.d.ts +3 -0
  40. package/package.json +21 -14
  41. package/src/ui/authentication/LogoutButton.vue +31 -0
  42. package/src/ui/authentication/LogoutForm.vue +49 -0
  43. package/src/ui/authentication/UserMenuButton.vue +1 -1
  44. package/src/ui/authentication/index.ts +2 -0
  45. package/src/ui/authentication/lang/en-US.ts +4 -0
  46. package/src/ui/authentication/lang/index.ts +4 -0
  47. package/src/ui/authentication/lang/nl.ts +4 -0
  48. package/src/ui/form/DateInput.vue +42 -23
  49. package/src/ui/form/LocaleSelect.vue +29 -43
  50. package/src/ui/form/lang/en-US.ts +377 -0
  51. package/src/ui/form/lang/index.ts +377 -0
  52. package/src/ui/form/lang/nl.ts +377 -0
  53. package/src/ui/general/QLanguageSelect.vue +30 -106
  54. package/src/ui/general/{QLanguageSelectBtn.vue → QLanguageSelectBtn.vue.bak} +1 -1
  55. package/src/ui/general/QStyledCard.vue +2 -2
  56. package/src/ui/general/ResponsiveDialog.vue +14 -4
  57. package/src/ui/general/index.ts +1 -1
  58. package/src/ui/md3/Md3Layout.vue +142 -0
  59. package/src/ui/md3/NavigationRailFabs.vue +89 -0
  60. package/src/ui/md3/index.ts +3 -0
  61. package/src/ui/md3/lang/en-US.ts +7 -0
  62. package/src/ui/md3/lang/index.ts +41 -0
  63. package/src/ui/md3/lang/nl.ts +7 -0
  64. package/vite.config.ts +4 -3
  65. package/dist/flags.js +0 -255
  66. package/dist/icons.js +0 -25
  67. package/dist/index-DnmJt2wP.js +0 -7921
  68. package/dist/nl-BL9hHEHL.js +0 -76
  69. package/dist/types/ui/general/QLanguageSelectBtn.vue.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 911f1ce: feat(components): make UserMenuButton round
8
+ - 08f4c9d: feat(components): add seekAttention prop to NavigationRailFabs
9
+ - 76e1484: fix(components): fix Md3Layout onMounted set mini state
10
+
11
+ ## 0.11.11
12
+
13
+ ### Patch Changes
14
+
15
+ - b684799: fix(components): fix LocaleSelect and QLanguageSelectButton
16
+ - 3de15ab: feat(components): add LogoutForm and LogoutButton
17
+ - 8a559fd: fix(components): add QField slots to DateInput
18
+
3
19
  ## 0.11.10
4
20
 
5
21
  ### Patch Changes
@@ -0,0 +1,573 @@
1
+ import { QSelect, QItem, QItemSection, QIcon, QItemLabel } from "quasar";
2
+ import { ref, defineComponent, toRefs, useAttrs, computed, createBlock, openBlock, 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
+ "ar-TN": "العربية (تونس)",
77
+ ar: "العربية",
78
+ "az-Latn": "Azerbaijan",
79
+ bg: "български език",
80
+ bn: "বাংলা",
81
+ ca: "Català",
82
+ cs: "Čeština",
83
+ da: "Denmark",
84
+ de: "Germany",
85
+ el: "ελληνικά",
86
+ "en-GB": "United Kingdom",
87
+ "en-US": "United States of America",
88
+ eo: "Esperanto",
89
+ es: "Spain",
90
+ et: "Eesti",
91
+ eu: "Euskara",
92
+ "fa-IR": "فارسی",
93
+ fa: "فارسی",
94
+ fi: "Suomi",
95
+ fr: "France",
96
+ gn: "Avañe'ẽ",
97
+ he: "עברית",
98
+ hr: "Hrvatski jezik",
99
+ hu: "Magyar",
100
+ id: "Bahasa Indonesia",
101
+ is: "Íslenska",
102
+ it: "Italy",
103
+ ja: "Japan",
104
+ km: "ខ្មែរ",
105
+ "ko-KR": "한국어",
106
+ "kur-CKB": "کوردی سۆرانی",
107
+ kz: "Қазақша",
108
+ lt: "Lithuanian",
109
+ lu: "Kiluba",
110
+ lv: "Latviešu valoda",
111
+ ml: "മലയാളം",
112
+ mm: "မြန်မာ(ဗမာ)",
113
+ ms: "Bahasa Melayu",
114
+ my: "Malaysia",
115
+ "nb-NO": "Norsk",
116
+ nl: "the Netherlands",
117
+ pl: "Poland",
118
+ "pt-BR": "Portugal",
119
+ pt: "Portugal",
120
+ ro: "Romania",
121
+ ru: "Russia",
122
+ sk: "Slovenčina",
123
+ sl: "Slovenski Jezik",
124
+ sm: "Fa'asāmoa",
125
+ "sr-CYR": "српски језик",
126
+ sr: "srpski jezik",
127
+ sv: "Sweden",
128
+ ta: "தமிழ்",
129
+ th: "ไทย",
130
+ tr: "Türkçe",
131
+ ug: "ئۇيغۇرچە",
132
+ uk: "Українська",
133
+ "uz-Cyrl": "Ўзбекча (Кирил)",
134
+ "uz-Latn": "O'zbekcha (Lotin)",
135
+ vi: "Vietnam",
136
+ "zh-CN": "中文(简体)",
137
+ "zh-TW": "中文(繁體)",
138
+ AF: "Afghanistan",
139
+ AL: "Albania",
140
+ DZ: "Algeria",
141
+ AS: "American Samoa",
142
+ AD: "Andorra",
143
+ AO: "Angola",
144
+ AI: "Anguilla",
145
+ AQ: "Antarctica",
146
+ AG: "Antigua and Barbuda",
147
+ AR: "Argentina",
148
+ AM: "Armenia",
149
+ AW: "Aruba",
150
+ AU: "Australia",
151
+ AT: "Austria",
152
+ AZ: "Azerbaijan",
153
+ BS: "Bahamas",
154
+ BH: "Bahrain",
155
+ BD: "Bangladesh",
156
+ BB: "Barbados",
157
+ BY: "Belarus",
158
+ BE: "Belgium",
159
+ BZ: "Belize",
160
+ BJ: "Benin",
161
+ BM: "Bermuda",
162
+ BT: "Bhutan",
163
+ BO: "Bolivia, Plurinational State of",
164
+ BQ: "Bonaire, Sint Eustatius and Saba",
165
+ BA: "Bosnia and Herzegovina",
166
+ BW: "Botswana",
167
+ BV: "Bouvet Island",
168
+ BR: "Brazil",
169
+ IO: "British Indian Ocean Territory",
170
+ BN: "Brunei Darussalam",
171
+ BG: "Bulgaria",
172
+ BF: "Burkina Faso",
173
+ BI: "Burundi",
174
+ KH: "Cambodia",
175
+ CM: "Cameroon",
176
+ CA: "Canada",
177
+ CV: "Cape Verde",
178
+ KY: "Cayman Islands",
179
+ CF: "Central African Republic",
180
+ TD: "Chad",
181
+ CL: "Chile",
182
+ CN: "China",
183
+ CX: "Christmas Island",
184
+ CC: "Cocos (Keeling) Islands",
185
+ CO: "Colombia",
186
+ KM: "Comoros",
187
+ CG: "Congo",
188
+ CD: "Congo, the Democratic Republic of the",
189
+ CK: "Cook Islands",
190
+ CR: "Costa Rica",
191
+ HR: "Croatia",
192
+ CU: "Cuba",
193
+ CW: "Curaçao",
194
+ CY: "Cyprus",
195
+ CZ: "Czech Republic",
196
+ CI: "Côte d'Ivoire",
197
+ DK: "Denmark",
198
+ DJ: "Djibouti",
199
+ DM: "Dominica",
200
+ DO: "Dominican Republic",
201
+ EC: "Ecuador",
202
+ EG: "Egypt",
203
+ SV: "El Salvador",
204
+ GQ: "Equatorial Guinea",
205
+ ER: "Eritrea",
206
+ EE: "Estonia",
207
+ SZ: "Eswatini",
208
+ ET: "Ethiopia",
209
+ FK: "Falkland Islands (Malvinas)",
210
+ FO: "Faroe Islands",
211
+ FJ: "Fiji",
212
+ FI: "Finland",
213
+ FR: "France",
214
+ GF: "French Guiana",
215
+ PF: "French Polynesia",
216
+ TF: "French Southern Territories",
217
+ GA: "Gabon",
218
+ GM: "Gambia",
219
+ GE: "Georgia",
220
+ DE: "Germany",
221
+ GH: "Ghana",
222
+ GI: "Gibraltar",
223
+ GR: "Greece",
224
+ GL: "Greenland",
225
+ GD: "Grenada",
226
+ GP: "Guadeloupe",
227
+ GU: "Guam",
228
+ GT: "Guatemala",
229
+ GG: "Guernsey",
230
+ GN: "Guinea",
231
+ GW: "Guinea-Bissau",
232
+ GY: "Guyana",
233
+ HT: "Haiti",
234
+ HM: "Heard Island and McDonald Islands",
235
+ VA: "Holy See (Vatican City State)",
236
+ HN: "Honduras",
237
+ HK: "Hong Kong",
238
+ HU: "Hungary",
239
+ IS: "Iceland",
240
+ IN: "India",
241
+ ID: "Indonesia",
242
+ IR: "Iran, Islamic Republic of",
243
+ IQ: "Iraq",
244
+ IE: "Ireland",
245
+ IM: "Isle of Man",
246
+ IL: "Israel",
247
+ IT: "Italy",
248
+ JM: "Jamaica",
249
+ JP: "Japan",
250
+ JE: "Jersey",
251
+ JO: "Jordan",
252
+ KZ: "Kazakhstan",
253
+ KE: "Kenya",
254
+ KI: "Kiribati",
255
+ KP: "Korea, Democratic People's Republic of",
256
+ KR: "Korea, Republic of",
257
+ KW: "Kuwait",
258
+ KG: "Kyrgyzstan",
259
+ LA: "Lao People's Democratic Republic",
260
+ LV: "Latvia",
261
+ LB: "Lebanon",
262
+ LS: "Lesotho",
263
+ LR: "Liberia",
264
+ LY: "Libya",
265
+ LI: "Liechtenstein",
266
+ LT: "Lithuania",
267
+ LU: "Luxembourg",
268
+ MO: "Macao",
269
+ MK: "Macedonia, the Former Yugoslav Republic of",
270
+ MG: "Madagascar",
271
+ MW: "Malawi",
272
+ MY: "Malaysia",
273
+ MV: "Maldives",
274
+ ML: "Mali",
275
+ MT: "Malta",
276
+ MH: "Marshall Islands",
277
+ MQ: "Martinique",
278
+ MR: "Mauritania",
279
+ MU: "Mauritius",
280
+ YT: "Mayotte",
281
+ MX: "Mexico",
282
+ FM: "Micronesia, Federated States of",
283
+ MD: "Moldova, Republic of",
284
+ MC: "Monaco",
285
+ MN: "Mongolia",
286
+ ME: "Montenegro",
287
+ MS: "Montserrat",
288
+ MA: "Morocco",
289
+ MZ: "Mozambique",
290
+ MM: "Myanmar",
291
+ NA: "Namibia",
292
+ NR: "Nauru",
293
+ NP: "Nepal",
294
+ NL: "Netherlands",
295
+ NC: "New Caledonia",
296
+ NZ: "New Zealand",
297
+ NI: "Nicaragua",
298
+ NE: "Niger",
299
+ NG: "Nigeria",
300
+ NU: "Niue",
301
+ NF: "Norfolk Island",
302
+ MP: "Northern Mariana Islands",
303
+ NO: "Norway",
304
+ OM: "Oman",
305
+ PK: "Pakistan",
306
+ PW: "Palau",
307
+ PS: "Palestine, State of",
308
+ PA: "Panama",
309
+ PG: "Papua New Guinea",
310
+ PY: "Paraguay",
311
+ PE: "Peru",
312
+ PH: "Philippines",
313
+ PN: "Pitcairn",
314
+ PL: "Poland",
315
+ PT: "Portugal",
316
+ PR: "Puerto Rico",
317
+ QA: "Qatar",
318
+ RO: "Romania",
319
+ RU: "Russian Federation",
320
+ RW: "Rwanda",
321
+ RE: "Réunion",
322
+ BL: "Saint Barthélemy",
323
+ SH: "Saint Helena, Ascension and Tristan da Cunha",
324
+ KN: "Saint Kitts and Nevis",
325
+ LC: "Saint Lucia",
326
+ MF: "Saint Martin (French part)",
327
+ PM: "Saint Pierre and Miquelon",
328
+ VC: "Saint Vincent and the Grenadines",
329
+ WS: "Samoa",
330
+ SM: "San Marino",
331
+ ST: "Sao Tome and Principe",
332
+ SA: "Saudi Arabia",
333
+ SN: "Senegal",
334
+ RS: "Serbia",
335
+ SC: "Seychelles",
336
+ SL: "Sierra Leone",
337
+ SG: "Singapore",
338
+ SX: "Sint Maarten (Dutch part)",
339
+ SK: "Slovakia",
340
+ SI: "Slovenia",
341
+ SB: "Solomon Islands",
342
+ SO: "Somalia",
343
+ ZA: "South Africa",
344
+ GS: "South Georgia and the South Sandwich Islands",
345
+ SS: "South Sudan",
346
+ ES: "Spain",
347
+ LK: "Sri Lanka",
348
+ SD: "Sudan",
349
+ SR: "Suriname",
350
+ SJ: "Svalbard and Jan Mayen",
351
+ SE: "Sweden",
352
+ CH: "Switzerland",
353
+ SY: "Syrian Arab Republic",
354
+ TW: "Taiwan, Province of China",
355
+ TJ: "Tajikistan",
356
+ TZ: "Tanzania, United Republic of",
357
+ TH: "Thailand",
358
+ TL: "Timor-Leste",
359
+ TG: "Togo",
360
+ TK: "Tokelau",
361
+ TO: "Tonga",
362
+ TT: "Trinidad and Tobago",
363
+ TN: "Tunisia",
364
+ TR: "Turkey",
365
+ TM: "Turkmenistan",
366
+ TC: "Turks and Caicos Islands",
367
+ TV: "Tuvalu",
368
+ UG: "Uganda",
369
+ UA: "Ukraine",
370
+ AE: "United Arab Emirates",
371
+ GB: "United Kingdom",
372
+ US: "United States",
373
+ UM: "United States Minor Outlying Islands",
374
+ UY: "Uruguay",
375
+ UZ: "Uzbekistan",
376
+ VU: "Vanuatu",
377
+ VE: "Venezuela, Bolivarian Republic of",
378
+ VN: "Viet Nam",
379
+ VG: "Virgin Islands, British",
380
+ VI: "Virgin Islands, U.S.",
381
+ WF: "Wallis and Futuna",
382
+ EH: "Western Sahara",
383
+ YE: "Yemen",
384
+ ZM: "Zambia",
385
+ ZW: "Zimbabwe",
386
+ AX: "Åland Islands"
387
+ },
388
+ languages: {
389
+ "ar-TN": "العربية (تونس)",
390
+ ar: "العربية",
391
+ "az-Latn": "Azerbaijani (latin)",
392
+ bg: "български език",
393
+ bn: "বাংলা",
394
+ ca: "Català",
395
+ cs: "Čeština",
396
+ da: "Dansk",
397
+ de: "Deutsch",
398
+ el: "ελληνικά",
399
+ "en-GB": "English (UK)",
400
+ "en-US": "English (US)",
401
+ eo: "Esperanto",
402
+ es: "Español",
403
+ et: "Eesti",
404
+ eu: "Euskara",
405
+ "fa-IR": "فارسی",
406
+ fa: "فارسی",
407
+ fi: "Suomi",
408
+ fr: "Français",
409
+ gn: "Avañe'ẽ",
410
+ he: "עברית",
411
+ hr: "Hrvatski jezik",
412
+ hu: "Magyar",
413
+ id: "Bahasa Indonesia",
414
+ is: "Íslenska",
415
+ it: "Italiano",
416
+ ja: "日本語 (にほんご)",
417
+ km: "ខ្មែរ",
418
+ "ko-KR": "한국어",
419
+ "kur-CKB": "کوردی سۆرانی",
420
+ kz: "Қазақша",
421
+ lt: "Lithuanian",
422
+ lu: "Kiluba",
423
+ lv: "Latviešu valoda",
424
+ ml: "മലയാളം",
425
+ mm: "မြန်မာ(ဗမာ)",
426
+ ms: "Bahasa Melayu",
427
+ my: "Malaysia",
428
+ "nb-NO": "Norsk",
429
+ nl: "Dutch",
430
+ pl: "Polski",
431
+ "pt-BR": "Português (BR)",
432
+ pt: "Português",
433
+ ro: "Română",
434
+ ru: "русский",
435
+ sk: "Slovenčina",
436
+ sl: "Slovenski Jezik",
437
+ sm: "Fa'asāmoa",
438
+ "sr-CYR": "српски језик",
439
+ sr: "srpski jezik",
440
+ sv: "Svenska",
441
+ ta: "தமிழ்",
442
+ th: "ไทย",
443
+ tr: "Türkçe",
444
+ ug: "ئۇيغۇرچە",
445
+ uk: "Українська",
446
+ "uz-Cyrl": "Ўзбекча (Кирил)",
447
+ "uz-Latn": "O'zbekcha (Lotin)",
448
+ vi: "Tiếng Việt",
449
+ "zh-CN": "中文(简体)",
450
+ "zh-TW": "中文(繁體)"
451
+ }
452
+ };
453
+ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
454
+ __proto__: null,
455
+ default: lang$1
456
+ }, Symbol.toStringTag, { value: "Module" }));
457
+ const lang = ref(lang$1);
458
+ const locales = /* @__PURE__ */ Object.assign({
459
+ "./en-US.ts": () => Promise.resolve().then(() => enUS),
460
+ "./nl.ts": () => import("./nl-BJwNz421.js")
461
+ });
462
+ const useLang = () => {
463
+ return lang;
464
+ };
465
+ let loadingLanguage = false;
466
+ const loadLang = async (isoName) => {
467
+ if (!loadingLanguage) {
468
+ loadingLanguage = true;
469
+ try {
470
+ const data = (await locales[`./${isoName}.ts`]()).default;
471
+ if (data) {
472
+ lang.value = data;
473
+ }
474
+ } catch (e) {
475
+ throw new Error(
476
+ `[quasar-components] Failed to load ${isoName} language file.`
477
+ );
478
+ }
479
+ loadingLanguage = false;
480
+ }
481
+ };
482
+ const _hoisted_1 = { key: 0 };
483
+ const _sfc_main = /* @__PURE__ */ defineComponent({
484
+ __name: "LocaleSelect",
485
+ props: {
486
+ modelValue: {},
487
+ locales: {}
488
+ },
489
+ setup(__props) {
490
+ const props = __props;
491
+ const { modelValue, locales: locales2 } = toRefs(props);
492
+ const lang2 = useLang();
493
+ const attrs = useAttrs();
494
+ const languageOptions = computed(() => {
495
+ const options = locales2.value.map((locale) => ({
496
+ label: lang2.value.languages[locale.isoName],
497
+ value: locale.isoName,
498
+ icon: locale.icon
499
+ }));
500
+ return options;
501
+ });
502
+ return (_ctx, _cache) => {
503
+ const _component_q_icon = QIcon;
504
+ const _component_q_item_section = QItemSection;
505
+ const _component_q_item = QItem;
506
+ const _component_q_item_label = QItemLabel;
507
+ return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
508
+ options: languageOptions.value,
509
+ "model-value": unref(modelValue),
510
+ filled: false,
511
+ borderless: "",
512
+ "emit-value": "",
513
+ "map-options": ""
514
+ }), {
515
+ "selected-item": withCtx((scope) => [
516
+ scope.opt ? (openBlock(), createElementBlock("div", _hoisted_1, [
517
+ createVNode(_component_q_item, null, {
518
+ default: withCtx(() => [
519
+ createVNode(_component_q_item_section, { avatar: "" }, {
520
+ default: withCtx(() => [
521
+ createVNode(_component_q_icon, {
522
+ name: scope.opt.icon
523
+ }, null, 8, ["name"])
524
+ ]),
525
+ _: 2
526
+ }, 1024),
527
+ createVNode(_component_q_item_section, { label: "" }, {
528
+ default: withCtx(() => [
529
+ createTextVNode(toDisplayString(scope.opt.label), 1)
530
+ ]),
531
+ _: 2
532
+ }, 1024)
533
+ ]),
534
+ _: 2
535
+ }, 1024)
536
+ ])) : createCommentVNode("", true)
537
+ ]),
538
+ option: withCtx((scope) => [
539
+ createVNode(_component_q_item, normalizeProps(guardReactiveProps(scope.itemProps)), {
540
+ default: withCtx(() => [
541
+ createVNode(_component_q_item_section, { avatar: "" }, {
542
+ default: withCtx(() => [
543
+ createVNode(_component_q_icon, {
544
+ name: scope.opt.icon
545
+ }, null, 8, ["name"])
546
+ ]),
547
+ _: 2
548
+ }, 1024),
549
+ createVNode(_component_q_item_section, null, {
550
+ default: withCtx(() => [
551
+ createVNode(_component_q_item_label, null, {
552
+ default: withCtx(() => [
553
+ createTextVNode(toDisplayString(scope.opt.label), 1)
554
+ ]),
555
+ _: 2
556
+ }, 1024)
557
+ ]),
558
+ _: 2
559
+ }, 1024)
560
+ ]),
561
+ _: 2
562
+ }, 1040)
563
+ ]),
564
+ _: 1
565
+ }, 16, ["options", "model-value"]);
566
+ };
567
+ }
568
+ });
569
+ export {
570
+ _sfc_main as _,
571
+ loadLang as l,
572
+ useLang as u
573
+ };