@simsustech/quasar-components 0.11.10 → 0.11.11

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 (68) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js +573 -0
  3. package/dist/authentication.js +148 -65
  4. package/dist/form.js +155 -300
  5. package/dist/general.js +44 -195
  6. package/dist/md3.js +435 -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 +14 -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/index.ts +2 -0
  44. package/src/ui/authentication/lang/en-US.ts +4 -0
  45. package/src/ui/authentication/lang/index.ts +4 -0
  46. package/src/ui/authentication/lang/nl.ts +4 -0
  47. package/src/ui/form/DateInput.vue +42 -23
  48. package/src/ui/form/LocaleSelect.vue +29 -43
  49. package/src/ui/form/lang/en-US.ts +377 -0
  50. package/src/ui/form/lang/index.ts +377 -0
  51. package/src/ui/form/lang/nl.ts +377 -0
  52. package/src/ui/general/QLanguageSelect.vue +30 -106
  53. package/src/ui/general/{QLanguageSelectBtn.vue → QLanguageSelectBtn.vue.bak} +1 -1
  54. package/src/ui/general/QStyledCard.vue +2 -2
  55. package/src/ui/general/ResponsiveDialog.vue +14 -4
  56. package/src/ui/general/index.ts +1 -1
  57. package/src/ui/md3/Md3Layout.vue +139 -0
  58. package/src/ui/md3/NavigationRailFabs.vue +68 -0
  59. package/src/ui/md3/index.ts +3 -0
  60. package/src/ui/md3/lang/en-US.ts +7 -0
  61. package/src/ui/md3/lang/index.ts +41 -0
  62. package/src/ui/md3/lang/nl.ts +7 -0
  63. package/vite.config.ts +4 -3
  64. package/dist/flags.js +0 -255
  65. package/dist/icons.js +0 -25
  66. package/dist/index-DnmJt2wP.js +0 -7921
  67. package/dist/nl-BL9hHEHL.js +0 -76
  68. package/dist/types/ui/general/QLanguageSelectBtn.vue.d.ts +0 -11
package/dist/general.js CHANGED
@@ -1,13 +1,13 @@
1
- import { u as useLang, l as loadLang, _ as _sfc_main$6 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
2
- import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QLayout, QHeader, QToolbar, QBtn, QToolbarTitle, QPageContainer, QPage, QPageSticky, QSpace, QSelect, QItem, QItemSection, QItemLabel, QMenu, QList } from "quasar";
3
- import { defineComponent, watch, ref, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, toRefs, createElementBlock, useAttrs, computed, mergeProps, resolveDynamicComponent, createTextVNode, toDisplayString, resolveDirective, Fragment, renderList, withDirectives } from "vue";
4
- import { u as useLang$1, f as flags } from "./index-DnmJt2wP.js";
5
- const _hoisted_1$3 = { class: "text-h6" };
1
+ import { u as useLang, l as loadLang, _ as _sfc_main$5 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
2
+ import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QLayout, QHeader, QToolbar, QBtn, QToolbarTitle, QPageContainer, QPage, QPageSticky, QSpace, QList } from "quasar";
3
+ import { defineComponent, watch, ref, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, normalizeClass, createElementBlock } from "vue";
4
+ import { _ as _sfc_main$6 } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js";
5
+ const _hoisted_1$1 = { class: "text-h6" };
6
6
  const _hoisted_2$1 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
8
8
  name: "QStyledCard"
9
9
  };
10
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
11
11
  ...__default__$2,
12
12
  props: {
13
13
  actions: {}
@@ -35,13 +35,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
35
35
  const _component_q_card_actions = QCardActions;
36
36
  return openBlock(), createBlock(unref(QCard), {
37
37
  ref_key: "qCardRef",
38
- ref: qCardRef
38
+ ref: qCardRef,
39
+ style: { "max-width": "300px" }
39
40
  }, {
40
41
  default: withCtx(() => [
41
42
  renderSlot(_ctx.$slots, "image"),
42
43
  createVNode(_component_q_card_section, null, {
43
44
  default: withCtx(() => [
44
- createElementVNode("div", _hoisted_1$3, [
45
+ createElementVNode("div", _hoisted_1$1, [
45
46
  renderSlot(_ctx.$slots, "title")
46
47
  ]),
47
48
  createElementVNode("div", _hoisted_2$1, [
@@ -71,7 +72,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
71
72
  const __default__$1 = {
72
73
  name: "ResponsiveDialog"
73
74
  };
74
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
75
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
75
76
  ...__default__$1,
76
77
  props: {
77
78
  display: { type: Boolean },
@@ -141,16 +142,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
141
142
  createVNode(_component_q_layout, {
142
143
  view: "LHh lpR fff",
143
144
  container: "",
144
- class: normalizeClass(unref($q).dark.isActive ? "bg-dark" : "bg-white"),
145
+ class: "bg-light-surface dark:bg-dark-surface",
145
146
  style: { "min-width": "85vw" }
146
147
  }, {
147
148
  default: withCtx(() => [
148
- createVNode(_component_q_header, { class: "bg-primary" }, {
149
+ createVNode(_component_q_header, { class: "bg-light-surface-container-high dark:bg-dark-surface-container-high" }, {
149
150
  default: withCtx(() => [
150
151
  createVNode(_component_q_toolbar, null, {
151
152
  default: withCtx(() => [
152
153
  createVNode(_component_q_btn, {
153
154
  icon: _ctx.icons.close,
155
+ class: "text-light-on-surface dark:text-dark-on-surface",
154
156
  flat: "",
155
157
  round: "",
156
158
  dense: "",
@@ -162,9 +164,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
162
164
  ]),
163
165
  _: 3
164
166
  }),
165
- !_ctx.display ? (openBlock(), createBlock(_sfc_main$6, {
167
+ !_ctx.display ? (openBlock(), createBlock(_sfc_main$5, {
166
168
  key: 0,
167
- color: "accent",
169
+ flat: "",
170
+ class: "text-light-primary dark:text-dark-primary",
168
171
  type: _ctx.buttonType,
169
172
  onSubmit: submit
170
173
  }, null, 8, ["type"])) : createCommentVNode("", true)
@@ -190,20 +193,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
190
193
  })
191
194
  ]),
192
195
  _: 3
193
- }, 8, ["class"])
196
+ })
194
197
  ]),
195
198
  _: 3
196
199
  }, 8, ["maximized"]);
197
200
  };
198
201
  }
199
202
  });
200
- const _hoisted_1$2 = { style: { "margin-top": "80px" } };
203
+ const _hoisted_1 = { style: { "margin-top": "80px" } };
201
204
  const _hoisted_2 = { key: 0 };
202
205
  const _hoisted_3 = { key: 1 };
203
206
  const __default__ = {
204
207
  name: "ResourcePage"
205
208
  };
206
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
209
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
207
210
  ...__default__,
208
211
  props: {
209
212
  type: { default: void 0 },
@@ -238,7 +241,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
238
241
  const _component_q_page = QPage;
239
242
  return openBlock(), createBlock(_component_q_page, { class: "q-ma-md" }, {
240
243
  default: withCtx(() => [
241
- createElementVNode("div", _hoisted_1$2, [
244
+ createElementVNode("div", _hoisted_1, [
242
245
  renderSlot(_ctx.$slots, "default")
243
246
  ]),
244
247
  createVNode(_component_q_page_sticky, {
@@ -314,188 +317,35 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
314
317
  };
315
318
  }
316
319
  });
317
- const _hoisted_1$1 = { key: 0 };
318
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
319
- __name: "QLanguageSelect",
320
- props: {
321
- modelValue: {},
322
- languageImports: {},
323
- allowedCodes: { default: () => ["en-US", "nl"] }
324
- },
325
- setup(__props) {
326
- const $q = useQuasar();
327
- const attrs = useAttrs();
328
- const flagsLang = useLang$1();
329
- const languageOptions = computed(() => {
330
- const options = [];
331
- for (let lang of Object.keys(flagsLang.value.languages)) {
332
- if (!__props.allowedCodes.length || __props.allowedCodes.includes(lang)) {
333
- options.push({
334
- label: flagsLang.value.languages[lang],
335
- value: lang
336
- });
337
- }
338
- }
339
- return options;
340
- });
341
- watch(
342
- () => __props.modelValue,
343
- (langIso) => {
344
- try {
345
- __props.languageImports[langIso]().then(
346
- // langList[`../../../node_modules/quasar/lang/${langIso}.mjs`]().then(
347
- (lang) => {
348
- $q.lang.set(lang.default);
349
- }
350
- );
351
- } catch (e) {
352
- console.error(e);
353
- }
354
- }
355
- );
356
- return (_ctx, _cache) => {
357
- const _component_q_item_section = QItemSection;
358
- const _component_q_item_label = QItemLabel;
359
- const _component_q_item = QItem;
360
- return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
361
- options: languageOptions.value,
362
- "model-value": _ctx.modelValue,
363
- borderless: "",
364
- "emit-value": "",
365
- "map-options": ""
366
- }), {
367
- selected: withCtx(() => [
368
- _ctx.modelValue ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
369
- (openBlock(), createBlock(resolveDynamicComponent(flags[_ctx.modelValue.slice(-2).toLowerCase()])))
370
- ])) : createCommentVNode("", true)
371
- ]),
372
- option: withCtx((scope) => [
373
- createVNode(_component_q_item, normalizeProps(guardReactiveProps(scope.itemProps)), {
374
- default: withCtx(() => [
375
- createVNode(_component_q_item_section, { avatar: "" }, {
376
- default: withCtx(() => [
377
- (openBlock(), createBlock(resolveDynamicComponent(
378
- flags[scope.opt.value.slice(-2).toLowerCase()]
379
- )))
380
- ]),
381
- _: 2
382
- }, 1024),
383
- createVNode(_component_q_item_section, null, {
384
- default: withCtx(() => [
385
- createVNode(_component_q_item_label, null, {
386
- default: withCtx(() => [
387
- createTextVNode(toDisplayString(scope.opt.label), 1)
388
- ]),
389
- _: 2
390
- }, 1024)
391
- ]),
392
- _: 2
393
- }, 1024)
394
- ]),
395
- _: 2
396
- }, 1040)
397
- ]),
398
- _: 1
399
- }, 16, ["options", "model-value"]);
400
- };
401
- }
402
- });
403
- const _hoisted_1 = { key: 0 };
404
320
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
405
- __name: "QLanguageSelectBtn",
321
+ __name: "QLanguageSelect",
406
322
  props: {
407
323
  modelValue: {},
408
324
  languageImports: {},
409
- allowedCodes: { default: () => ["en-US", "nl"] }
325
+ locales: {}
410
326
  },
411
327
  setup(__props) {
328
+ const props = __props;
329
+ const { modelValue, languageImports, locales } = toRefs(props);
412
330
  const $q = useQuasar();
413
- const flagsLang = useLang$1();
414
- const languageOptions = computed(() => {
415
- const options = [];
416
- for (let lang of Object.keys(flagsLang.value.languages)) {
417
- if (!__props.allowedCodes.length || __props.allowedCodes.includes(lang)) {
418
- options.push({
419
- label: flagsLang.value.languages[lang],
420
- value: lang
421
- });
422
- }
331
+ watch(modelValue, (langIso) => {
332
+ try {
333
+ languageImports.value[langIso]().then(
334
+ // langList[`../../../node_modules/quasar/lang/${langIso}.mjs`]().then(
335
+ (lang) => {
336
+ $q.lang.set(lang.default);
337
+ }
338
+ );
339
+ } catch (e) {
340
+ console.error(e);
423
341
  }
424
- return options;
425
342
  });
426
- watch(
427
- () => __props.modelValue,
428
- (langIso) => {
429
- try {
430
- __props.languageImports[langIso]().then(
431
- // langList[`../../../node_modules/quasar/lang/${langIso}.mjs`]().then(
432
- (lang) => {
433
- $q.lang.set(lang.default);
434
- }
435
- );
436
- } catch (e) {
437
- console.error(e);
438
- }
439
- }
440
- );
441
343
  return (_ctx, _cache) => {
442
- const _component_q_item_section = QItemSection;
443
- const _component_q_item_label = QItemLabel;
444
- const _component_q_item = QItem;
445
- const _component_q_list = QList;
446
- const _component_q_menu = QMenu;
447
- const _component_q_btn = QBtn;
448
- const _directive_close_popup = resolveDirective("close-popup");
449
- return openBlock(), createBlock(_component_q_btn, null, {
450
- default: withCtx(() => [
451
- _ctx.modelValue ? (openBlock(), createElementBlock("div", _hoisted_1, [
452
- (openBlock(), createBlock(resolveDynamicComponent(flags[_ctx.modelValue.slice(-2).toLowerCase()])))
453
- ])) : createCommentVNode("", true),
454
- createVNode(_component_q_menu, null, {
455
- default: withCtx(() => [
456
- createVNode(_component_q_list, null, {
457
- default: withCtx(() => [
458
- (openBlock(true), createElementBlock(Fragment, null, renderList(languageOptions.value, (option) => {
459
- return withDirectives((openBlock(), createBlock(_component_q_item, {
460
- key: option.value,
461
- clickable: "",
462
- onClick: ($event) => _ctx.$emit("update:model-value", option.value)
463
- }, {
464
- default: withCtx(() => [
465
- createVNode(_component_q_item_section, { avatar: "" }, {
466
- default: withCtx(() => [
467
- (openBlock(), createBlock(resolveDynamicComponent(
468
- flags[option.value.slice(-2).toLowerCase()]
469
- )))
470
- ]),
471
- _: 2
472
- }, 1024),
473
- createVNode(_component_q_item_section, null, {
474
- default: withCtx(() => [
475
- createVNode(_component_q_item_label, null, {
476
- default: withCtx(() => [
477
- createTextVNode(toDisplayString(option.label), 1)
478
- ]),
479
- _: 2
480
- }, 1024)
481
- ]),
482
- _: 2
483
- }, 1024)
484
- ]),
485
- _: 2
486
- }, 1032, ["onClick"])), [
487
- [_directive_close_popup]
488
- ]);
489
- }), 128))
490
- ]),
491
- _: 1
492
- })
493
- ]),
494
- _: 1
495
- })
496
- ]),
497
- _: 1
498
- });
344
+ return openBlock(), createBlock(_sfc_main$6, {
345
+ "model-value": unref(modelValue),
346
+ locales: unref(locales),
347
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = (val) => _ctx.$emit("update:model-value", val))
348
+ }, null, 8, ["model-value", "locales"]);
499
349
  };
500
350
  }
501
351
  });
@@ -514,12 +364,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
514
364
  });
515
365
  export {
516
366
  _sfc_main as QDrawerList,
517
- _sfc_main$2 as QLanguageSelect,
518
- _sfc_main$1 as QLanguageSelectBtn,
519
- _sfc_main$5 as QStyledCard,
520
- _sfc_main$6 as QSubmitButton,
521
- _sfc_main$3 as ResourcePage,
522
- _sfc_main$4 as ResponsiveDialog,
367
+ _sfc_main$1 as QLanguageSelect,
368
+ _sfc_main$4 as QStyledCard,
369
+ _sfc_main$5 as QSubmitButton,
370
+ _sfc_main$2 as ResourcePage,
371
+ _sfc_main$3 as ResponsiveDialog,
523
372
  loadLang,
524
373
  useLang
525
374
  };