@simsustech/quasar-components 0.11.9 → 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 (75) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js +573 -0
  3. package/dist/authentication.js +218 -106
  4. package/dist/form.js +164 -305
  5. package/dist/general.js +51 -95
  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/AccountsTable.vue.d.ts +5 -0
  11. package/dist/types/ui/authentication/ConsentList.vue.d.ts +3 -0
  12. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +2 -2
  13. package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
  14. package/dist/types/ui/authentication/LoginForm.vue.d.ts +6 -2
  15. package/dist/types/ui/authentication/LogoutButton.vue.d.ts +12 -0
  16. package/dist/types/ui/authentication/LogoutForm.vue.d.ts +18 -0
  17. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +10 -2
  18. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +10 -2
  19. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -2
  20. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +4 -1
  21. package/dist/types/ui/authentication/index.d.ts +2 -0
  22. package/dist/types/ui/authentication/lang/index.d.ts +12 -0
  23. package/dist/types/ui/form/DateInput.vue.d.ts +19 -1
  24. package/dist/types/ui/form/FormInput.vue.d.ts +2 -15
  25. package/dist/types/ui/form/FormItem.vue.d.ts +2 -19
  26. package/dist/types/ui/form/LocaleSelect.vue.d.ts +6 -4
  27. package/dist/types/ui/form/lang/index.d.ts +1131 -0
  28. package/dist/types/ui/general/QDrawerList.vue.d.ts +2 -7
  29. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +7 -4
  30. package/dist/types/ui/general/QStyledCard.vue.d.ts +9 -5
  31. package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
  32. package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
  33. package/dist/types/ui/general/ResourcePage.vue.d.ts +17 -5
  34. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +9 -4
  35. package/dist/types/ui/md3/Md3Layout.vue.d.ts +31 -0
  36. package/dist/types/ui/md3/NavigationRailFabs.vue.d.ts +14 -0
  37. package/dist/types/ui/md3/index.d.ts +3 -0
  38. package/dist/types/ui/md3/lang/en-US.d.ts +3 -0
  39. package/dist/types/ui/md3/lang/index.d.ts +12 -0
  40. package/dist/types/ui/md3/lang/nl.d.ts +3 -0
  41. package/package.json +21 -14
  42. package/src/ui/authentication/AccountsTable.vue +18 -9
  43. package/src/ui/authentication/ConsentList.vue +13 -18
  44. package/src/ui/authentication/LoginForm.vue +12 -3
  45. package/src/ui/authentication/LogoutButton.vue +31 -0
  46. package/src/ui/authentication/LogoutForm.vue +49 -0
  47. package/src/ui/authentication/PasswordChangeForm.vue +11 -3
  48. package/src/ui/authentication/RegisterForm.vue +11 -3
  49. package/src/ui/authentication/UserMenuButton.vue +9 -3
  50. package/src/ui/authentication/index.ts +2 -0
  51. package/src/ui/authentication/lang/en-US.ts +4 -0
  52. package/src/ui/authentication/lang/index.ts +4 -0
  53. package/src/ui/authentication/lang/nl.ts +4 -0
  54. package/src/ui/form/DateInput.vue +53 -26
  55. package/src/ui/form/LocaleSelect.vue +29 -43
  56. package/src/ui/form/lang/en-US.ts +377 -0
  57. package/src/ui/form/lang/index.ts +377 -0
  58. package/src/ui/form/lang/nl.ts +377 -0
  59. package/src/ui/general/QLanguageSelect.vue +30 -105
  60. package/src/ui/general/QLanguageSelectBtn.vue.bak +99 -0
  61. package/src/ui/general/QStyledCard.vue +2 -2
  62. package/src/ui/general/ResourcePage.vue +13 -5
  63. package/src/ui/general/ResponsiveDialog.vue +23 -6
  64. package/src/ui/general/index.ts +1 -0
  65. package/src/ui/md3/Md3Layout.vue +139 -0
  66. package/src/ui/md3/NavigationRailFabs.vue +68 -0
  67. package/src/ui/md3/index.ts +3 -0
  68. package/src/ui/md3/lang/en-US.ts +7 -0
  69. package/src/ui/md3/lang/index.ts +41 -0
  70. package/src/ui/md3/lang/nl.ts +7 -0
  71. package/vite.config.ts +4 -73
  72. package/dist/flags.js +0 -255
  73. package/dist/icons.js +0 -25
  74. package/dist/index-DnmJt2wP.js +0 -7921
  75. package/dist/nl-BL9hHEHL.js +0 -76
@@ -1,6 +1,6 @@
1
1
  import { useQuasar, QForm, QInput, QStepper, QStep, QStepperNavigation, QIcon, QBtn, QSlider, QList, QItem, QItemSection, QMenu, QTable, QTr, QTd, QItemLabel, QSelect, QTh } from "quasar";
2
- import { ref, defineComponent, watch, computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot, toRef, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, toRefs, createElementVNode } from "vue";
3
- import { _ as _sfc_main$d } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
2
+ import { ref, defineComponent, watch, computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot, toRef, createCommentVNode, toRefs, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode } from "vue";
3
+ import { _ as _sfc_main$f } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
4
4
  const lang$1 = {
5
5
  isoName: "en-US",
6
6
  myAccount: "Account",
@@ -104,6 +104,10 @@ const lang$1 = {
104
104
  addRole: ({ email }) => `Select the role which you want to add to ${email}.`,
105
105
  removeRole: ({ email }) => `Select the role which you want to remove from ${email}.`
106
106
  }
107
+ },
108
+ logout: {
109
+ confirmation: "Are you sure you want to log out?",
110
+ logout: "Log out"
107
111
  }
108
112
  };
109
113
  const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -113,7 +117,7 @@ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
113
117
  const lang = ref(lang$1);
114
118
  const locales = /* @__PURE__ */ Object.assign({
115
119
  "./en-US.ts": () => Promise.resolve().then(() => enUS),
116
- "./nl.ts": () => import("./nl-jHKPHlmh.js")
120
+ "./nl.ts": () => import("./nl-CneFq5NZ.js")
117
121
  });
118
122
  const useLang = () => {
119
123
  return lang;
@@ -391,11 +395,11 @@ function isEmail(str, options) {
391
395
  }
392
396
  return true;
393
397
  }
394
- const __default__$a = {
398
+ const __default__$c = {
395
399
  name: "RequestOtpForm"
396
400
  };
397
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
398
- ...__default__$a,
401
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
402
+ ...__default__$c,
399
403
  props: {
400
404
  form: {},
401
405
  input: {}
@@ -464,7 +468,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
464
468
  };
465
469
  }
466
470
  });
467
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
471
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
468
472
  __name: "OtpInput",
469
473
  props: {
470
474
  modelValue: {}
@@ -489,11 +493,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
489
493
  };
490
494
  }
491
495
  });
492
- const __default__$9 = {
496
+ const __default__$b = {
493
497
  name: "EmailChangeForm"
494
498
  };
495
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
496
- ...__default__$9,
499
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
500
+ ...__default__$b,
497
501
  props: {
498
502
  email: {},
499
503
  form: {},
@@ -558,7 +562,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
558
562
  onSubmit: _cache[3] || (_cache[3] = (e) => submit)
559
563
  }), {
560
564
  default: withCtx(() => [
561
- createVNode(_sfc_main$b, mergeProps(_ctx.input, {
565
+ createVNode(_sfc_main$d, mergeProps(_ctx.input, {
562
566
  modelValue: otp.value,
563
567
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
564
568
  }), null, 16, ["modelValue"]),
@@ -589,11 +593,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
589
593
  };
590
594
  }
591
595
  });
592
- const __default__$8 = {
596
+ const __default__$a = {
593
597
  name: "EmailChangeStepper"
594
598
  };
595
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
596
- ...__default__$8,
599
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
600
+ ...__default__$a,
597
601
  props: {
598
602
  input: {}
599
603
  },
@@ -674,13 +678,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
674
678
  default: withCtx(() => {
675
679
  var _a, _b;
676
680
  return [
677
- step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$d, {
681
+ step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$f, {
678
682
  key: 0,
679
683
  "is-next-button": "",
680
684
  form: "requestOtpForm",
681
685
  onSubmit: (_a = requestOtpFormRef.value) == null ? void 0 : _a.functions.submit
682
686
  }, null, 8, ["onSubmit"])) : createCommentVNode("", true),
683
- step.value === "changeEmail" ? (openBlock(), createBlock(_sfc_main$d, {
687
+ step.value === "changeEmail" ? (openBlock(), createBlock(_sfc_main$f, {
684
688
  key: 1,
685
689
  form: "emailChangeForm",
686
690
  onSubmit: (_b = emailChangeFormRef.value) == null ? void 0 : _b.functions.submit
@@ -696,7 +700,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
696
700
  title: requestOtpHeader.value
697
701
  }, {
698
702
  default: withCtx(() => [
699
- createVNode(_sfc_main$c, {
703
+ createVNode(_sfc_main$e, {
700
704
  ref_key: "requestOtpFormRef",
701
705
  ref: requestOtpFormRef,
702
706
  form: { id: "requestOtpForm" },
@@ -711,7 +715,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
711
715
  title: emailChangeHeader.value
712
716
  }, {
713
717
  default: withCtx(() => [
714
- createVNode(_sfc_main$a, {
718
+ createVNode(_sfc_main$c, {
715
719
  ref_key: "emailChangeFormRef",
716
720
  ref: emailChangeFormRef,
717
721
  form: { id: "emailChangeForm" },
@@ -732,16 +736,20 @@ function equals(str, comparison) {
732
736
  assertString(str);
733
737
  return str === comparison;
734
738
  }
735
- const __default__$7 = {
739
+ const __default__$9 = {
736
740
  name: "PasswordChangeForm"
737
741
  };
738
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
739
- ...__default__$7,
742
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
743
+ ...__default__$9,
740
744
  props: {
741
745
  email: {},
742
746
  minimumPasswordLength: { default: 8 },
743
747
  form: { default: void 0 },
744
- input: { default: void 0 }
748
+ input: { default: void 0 },
749
+ icons: { default: () => ({
750
+ visibility: "visibility",
751
+ visibilityOff: "visibility_off"
752
+ }) }
745
753
  },
746
754
  emits: ["submit"],
747
755
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -805,7 +813,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
805
813
  onSubmit: _cache[5] || (_cache[5] = (e) => submit)
806
814
  }), {
807
815
  default: withCtx(() => [
808
- createVNode(_sfc_main$b, mergeProps(_ctx.input, {
816
+ createVNode(_sfc_main$d, mergeProps(_ctx.input, {
809
817
  modelValue: otp.value,
810
818
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
811
819
  }), null, 16, ["modelValue"]),
@@ -822,7 +830,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
822
830
  }), {
823
831
  append: withCtx(() => [
824
832
  createVNode(_component_q_icon, {
825
- name: showPassword.value ? "visibility" : "visibility_off",
833
+ name: showPassword.value ? _ctx.icons.visibility : _ctx.icons.visibilityOff,
826
834
  class: "cursor-pointer",
827
835
  onClick: _cache[1] || (_cache[1] = ($event) => showPassword.value = !showPassword.value)
828
836
  }, null, 8, ["name"])
@@ -842,7 +850,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
842
850
  }), {
843
851
  append: withCtx(() => [
844
852
  createVNode(_component_q_icon, {
845
- name: showRepeatPassword.value ? "visibility" : "visibility_off",
853
+ name: showRepeatPassword.value ? _ctx.icons.visibility : _ctx.icons.visibilityOff,
846
854
  class: "cursor-pointer",
847
855
  onClick: _cache[3] || (_cache[3] = ($event) => showRepeatPassword.value = !showRepeatPassword.value)
848
856
  }, null, 8, ["name"])
@@ -856,12 +864,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
856
864
  };
857
865
  }
858
866
  });
859
- const __default__$6 = {
867
+ const __default__$8 = {
860
868
  name: "PasswordChangeStepper",
861
869
  useLang
862
870
  };
863
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
864
- ...__default__$6,
871
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
872
+ ...__default__$8,
865
873
  props: {
866
874
  input: {}
867
875
  },
@@ -924,13 +932,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
924
932
  default: withCtx(() => {
925
933
  var _a, _b;
926
934
  return [
927
- step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$d, {
935
+ step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$f, {
928
936
  key: 0,
929
937
  "is-next-button": "",
930
938
  form: "requestOtpForm",
931
939
  onSubmit: (_a = requestOtpFormRef.value) == null ? void 0 : _a.functions.submit
932
940
  }, null, 8, ["onSubmit"])) : createCommentVNode("", true),
933
- step.value === "changePassword" ? (openBlock(), createBlock(_sfc_main$d, {
941
+ step.value === "changePassword" ? (openBlock(), createBlock(_sfc_main$f, {
934
942
  key: 1,
935
943
  form: "passwordChangeForm",
936
944
  onSubmit: (_b = passwordChangeFormRef.value) == null ? void 0 : _b.functions.submit
@@ -946,7 +954,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
946
954
  title: requestOtpHeader.value
947
955
  }, {
948
956
  default: withCtx(() => [
949
- createVNode(_sfc_main$c, {
957
+ createVNode(_sfc_main$e, {
950
958
  ref_key: "requestOtpFormRef",
951
959
  ref: requestOtpFormRef,
952
960
  form: { id: "requestOtpForm" },
@@ -961,7 +969,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
961
969
  title: passwordChangeHeader.value
962
970
  }, {
963
971
  default: withCtx(() => [
964
- createVNode(_sfc_main$8, {
972
+ createVNode(_sfc_main$a, {
965
973
  ref_key: "passwordChangeFormRef",
966
974
  ref: passwordChangeFormRef,
967
975
  form: { id: "passwordChangeForm" },
@@ -978,19 +986,23 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
978
986
  };
979
987
  }
980
988
  });
981
- const __default__$5 = {
989
+ const __default__$7 = {
982
990
  name: "LoginForm"
983
991
  };
984
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
985
- ...__default__$5,
992
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
993
+ ...__default__$7,
986
994
  props: {
987
995
  useUsername: { type: Boolean },
988
996
  passwordForgotUrl: {},
989
997
  form: {},
990
- input: {}
998
+ input: {},
999
+ icons: {}
991
1000
  },
992
1001
  emits: ["submit"],
993
1002
  setup(__props, { expose: __expose, emit: __emit }) {
1003
+ var _a, _b;
1004
+ const props = __props;
1005
+ const { icons } = toRefs(props);
994
1006
  const emit = __emit;
995
1007
  const $q = useQuasar();
996
1008
  const lang2 = useLang();
@@ -1016,8 +1028,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1016
1028
  password: [(val) => !!val || lang2.value.login.validations.fieldRequired]
1017
1029
  }));
1018
1030
  const submit = (evt) => {
1019
- var _a;
1020
- (_a = formRef.value) == null ? void 0 : _a.validate().then((success) => {
1031
+ var _a2;
1032
+ (_a2 = formRef.value) == null ? void 0 : _a2.validate().then((success) => {
1021
1033
  if (success) {
1022
1034
  emit("submit", {
1023
1035
  email: email.value.trim(),
@@ -1028,6 +1040,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1028
1040
  } else evt.done();
1029
1041
  });
1030
1042
  };
1043
+ const visibilityIcon = ((_a = icons.value) == null ? void 0 : _a.visibility) ?? "visibility";
1044
+ const visibilityOffIcon = ((_b = icons.value) == null ? void 0 : _b.visibilifyOff) ?? "visibility_off";
1031
1045
  const variables = ref({
1032
1046
  header,
1033
1047
  createAccount,
@@ -1091,7 +1105,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1091
1105
  }), {
1092
1106
  append: withCtx(() => [
1093
1107
  createVNode(_component_q_icon, {
1094
- name: showPassword.value ? "visibility" : "visibility_off",
1108
+ name: showPassword.value ? unref(visibilityIcon) : unref(visibilityOffIcon),
1095
1109
  class: "cursor-pointer",
1096
1110
  onClick: _cache[2] || (_cache[2] = ($event) => showPassword.value = !showPassword.value)
1097
1111
  }, null, 8, ["name"])
@@ -1196,17 +1210,21 @@ function isAlphanumeric(_str) {
1196
1210
  }
1197
1211
  throw new Error("Invalid locale '".concat(locale, "'"));
1198
1212
  }
1199
- const __default__$4 = {
1213
+ const __default__$6 = {
1200
1214
  name: "RegisterForm"
1201
1215
  };
1202
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1203
- ...__default__$4,
1216
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1217
+ ...__default__$6,
1204
1218
  props: {
1205
1219
  useUsername: { type: Boolean },
1206
1220
  extraFields: { default: void 0 },
1207
1221
  minimumPasswordLength: { default: 8 },
1208
1222
  form: { default: void 0 },
1209
- input: { default: void 0 }
1223
+ input: { default: void 0 },
1224
+ icons: { default: () => ({
1225
+ visibility: "visibility",
1226
+ visibilityOff: "visibility_off"
1227
+ }) }
1210
1228
  },
1211
1229
  emits: ["submit"],
1212
1230
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -1335,7 +1353,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1335
1353
  }), {
1336
1354
  append: withCtx(() => [
1337
1355
  createVNode(_component_q_icon, {
1338
- name: showPassword.value ? "visibility" : "visibility_off",
1356
+ name: showPassword.value ? _ctx.icons.visibility : _ctx.icons.visibilityOff,
1339
1357
  class: "cursor-pointer",
1340
1358
  onClick: _cache[2] || (_cache[2] = ($event) => showPassword.value = !showPassword.value)
1341
1359
  }, null, 8, ["name"])
@@ -1355,7 +1373,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1355
1373
  }, {
1356
1374
  append: withCtx(() => [
1357
1375
  createVNode(_component_q_icon, {
1358
- name: showPassword.value ? "visibility" : "visibility_off",
1376
+ name: showPassword.value ? _ctx.icons.visibility : _ctx.icons.visibilityOff,
1359
1377
  class: "cursor-pointer",
1360
1378
  onClick: _cache[4] || (_cache[4] = ($event) => showPassword.value = !showPassword.value)
1361
1379
  }, null, 8, ["name"])
@@ -1369,11 +1387,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1369
1387
  };
1370
1388
  }
1371
1389
  });
1372
- const __default__$3 = {
1390
+ const __default__$5 = {
1373
1391
  name: "VerificationSlider"
1374
1392
  };
1375
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1376
- ...__default__$3,
1393
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1394
+ ...__default__$5,
1377
1395
  props: {
1378
1396
  useVerificationSlider: { type: Boolean }
1379
1397
  },
@@ -1423,17 +1441,21 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1423
1441
  };
1424
1442
  }
1425
1443
  });
1426
- const __default__$2 = {
1444
+ const __default__$4 = {
1427
1445
  name: "ConsentList"
1428
1446
  };
1429
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1430
- ...__default__$2,
1447
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1448
+ ...__default__$4,
1431
1449
  props: {
1432
1450
  scopes: {},
1433
1451
  claims: {},
1434
- resourceScopes: {}
1452
+ resourceScopes: {},
1453
+ icons: {}
1435
1454
  },
1436
1455
  setup(__props, { expose: __expose }) {
1456
+ var _a;
1457
+ const props = __props;
1458
+ const { icons } = toRefs(props);
1437
1459
  const $q = useQuasar();
1438
1460
  const lang2 = useLang();
1439
1461
  if (lang2.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
@@ -1443,6 +1465,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1443
1465
  const message = computed(() => lang2.value.consent.message);
1444
1466
  const allow = computed(() => lang2.value.consent.allow);
1445
1467
  const deny = computed(() => lang2.value.consent.deny);
1468
+ const checkIcon = ((_a = icons.value) == null ? void 0 : _a.check) ?? "check";
1446
1469
  const variables = ref({
1447
1470
  message,
1448
1471
  allow,
@@ -1471,8 +1494,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1471
1494
  default: withCtx(() => [
1472
1495
  createVNode(_component_q_icon, {
1473
1496
  color: "green",
1474
- name: "check"
1475
- })
1497
+ name: unref(checkIcon)
1498
+ }, null, 8, ["name"])
1476
1499
  ]),
1477
1500
  _: 1
1478
1501
  }),
@@ -1495,8 +1518,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1495
1518
  default: withCtx(() => [
1496
1519
  createVNode(_component_q_icon, {
1497
1520
  color: "green",
1498
- name: "check"
1499
- })
1521
+ name: unref(checkIcon)
1522
+ }, null, 8, ["name"])
1500
1523
  ]),
1501
1524
  _: 1
1502
1525
  }),
@@ -1519,8 +1542,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1519
1542
  default: withCtx(() => [
1520
1543
  createVNode(_component_q_icon, {
1521
1544
  color: "green",
1522
- name: "check"
1523
- })
1545
+ name: unref(checkIcon)
1546
+ }, null, 8, ["name"])
1524
1547
  ]),
1525
1548
  _: 1
1526
1549
  }),
@@ -1540,16 +1563,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1540
1563
  };
1541
1564
  }
1542
1565
  });
1543
- const __default__$1 = {
1566
+ const __default__$3 = {
1544
1567
  name: "UserMenuButton"
1545
1568
  };
1546
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1547
- ...__default__$1,
1569
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1570
+ ...__default__$3,
1548
1571
  props: {
1549
- userRoute: {}
1572
+ userRoute: {},
1573
+ icons: {}
1550
1574
  },
1551
1575
  emits: ["signOut"],
1552
1576
  setup(__props, { expose: __expose, emit: __emit }) {
1577
+ var _a;
1578
+ const props = __props;
1579
+ const { icons } = toRefs(props);
1553
1580
  const emit = __emit;
1554
1581
  const $q = useQuasar();
1555
1582
  const lang2 = useLang();
@@ -1557,6 +1584,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1557
1584
  watch($q.lang, (val) => {
1558
1585
  loadLang($q.lang.isoName);
1559
1586
  });
1587
+ const personIcon = ((_a = icons.value) == null ? void 0 : _a.person) ?? "person";
1560
1588
  const variables = ref({
1561
1589
  // header: lang.value.some.nested.prop
1562
1590
  });
@@ -1573,7 +1601,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1573
1601
  const _component_q_list = QList;
1574
1602
  const _component_q_menu = QMenu;
1575
1603
  const _component_q_btn = QBtn;
1576
- return openBlock(), createBlock(_component_q_btn, { icon: "person" }, {
1604
+ return openBlock(), createBlock(_component_q_btn, { icon: unref(personIcon) }, {
1577
1605
  default: withCtx(() => [
1578
1606
  createVNode(_component_q_menu, null, {
1579
1607
  default: withCtx(() => [
@@ -1613,17 +1641,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1613
1641
  })
1614
1642
  ]),
1615
1643
  _: 3
1616
- });
1644
+ }, 8, ["icon"]);
1617
1645
  };
1618
1646
  }
1619
1647
  });
1620
- const _hoisted_1$1 = { key: 0 };
1648
+ const _hoisted_1$2 = { key: 0 };
1621
1649
  const _hoisted_2 = { key: 1 };
1622
- const __default__ = {
1650
+ const __default__$2 = {
1623
1651
  name: "LoginButton"
1624
1652
  };
1625
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1626
- ...__default__,
1653
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1654
+ ...__default__$2,
1627
1655
  props: {
1628
1656
  withNetwork: {}
1629
1657
  },
@@ -1635,31 +1663,33 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1635
1663
  loadLang($q.lang.isoName);
1636
1664
  });
1637
1665
  return (_ctx, _cache) => {
1638
- return openBlock(), createBlock(_sfc_main$d, null, {
1666
+ return openBlock(), createBlock(_sfc_main$f, null, {
1639
1667
  default: withCtx(() => [
1640
1668
  renderSlot(_ctx.$slots, "icon"),
1641
- _ctx.withNetwork ? (openBlock(), createElementBlock("div", _hoisted_1$1, toDisplayString(unref(lang2).login.loginWith) + " " + toDisplayString(_ctx.withNetwork), 1)) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(lang2).login.login), 1))
1669
+ _ctx.withNetwork ? (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(unref(lang2).login.loginWith) + " " + toDisplayString(_ctx.withNetwork), 1)) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(lang2).login.login), 1))
1642
1670
  ]),
1643
1671
  _: 3
1644
1672
  });
1645
1673
  };
1646
1674
  }
1647
1675
  });
1648
- const _hoisted_1 = { class: "q-pa-sm" };
1649
- const _sfc_main = /* @__PURE__ */ defineComponent({
1676
+ const _hoisted_1$1 = { class: "q-pa-sm" };
1677
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1650
1678
  __name: "AccountsTable",
1651
1679
  props: {
1652
1680
  modelValue: {},
1653
1681
  count: {},
1654
1682
  pagination: {},
1655
1683
  mappedRoles: {},
1656
- columns: {}
1684
+ columns: {},
1685
+ icons: {}
1657
1686
  },
1658
1687
  emits: ["update:pagination", "update:criteria", "addRole", "removeRole"],
1659
1688
  setup(__props, { emit: __emit }) {
1689
+ var _a, _b, _c;
1660
1690
  const props = __props;
1661
1691
  const emit = __emit;
1662
- const { modelValue, count, mappedRoles, columns } = toRefs(props);
1692
+ const { modelValue, count, mappedRoles, columns, icons } = toRefs(props);
1663
1693
  const lang2 = useLang();
1664
1694
  const $q = useQuasar();
1665
1695
  const sortBy = ref(props.pagination.sortBy);
@@ -1768,13 +1798,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1768
1798
  });
1769
1799
  };
1770
1800
  const openRemoveRoleDialog = (account) => {
1771
- var _a;
1801
+ var _a2;
1772
1802
  $q.dialog({
1773
1803
  message: lang2.value.account.messages.removeRole(account),
1774
1804
  options: {
1775
1805
  type: "radio",
1776
1806
  model: "role",
1777
- items: (_a = account.roles) == null ? void 0 : _a.map((role) => ({
1807
+ items: (_a2 = account.roles) == null ? void 0 : _a2.map((role) => ({
1778
1808
  label: mappedRoles.value[role],
1779
1809
  value: role
1780
1810
  }))
@@ -1785,6 +1815,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1785
1815
  emit("removeRole", { id: account.id, role });
1786
1816
  });
1787
1817
  };
1818
+ const searchIcon = ((_a = icons.value) == null ? void 0 : _a.search) ?? "search";
1819
+ const cancelIcon = ((_b = icons.value) == null ? void 0 : _b.cancel) ?? "cancel";
1820
+ const moreVertIcon = ((_c = icons.value) == null ? void 0 : _c.moreVert) ?? "more_vert";
1788
1821
  return (_ctx, _cache) => {
1789
1822
  const _component_q_th = QTh;
1790
1823
  const _component_q_tr = QTr;
@@ -1829,13 +1862,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1829
1862
  ]),
1830
1863
  "top-right": withCtx(() => [
1831
1864
  createVNode(_component_q_btn, {
1832
- icon: "search",
1865
+ icon: unref(searchIcon),
1833
1866
  flat: ""
1834
1867
  }, {
1835
1868
  default: withCtx(() => [
1836
1869
  createVNode(_component_q_menu, null, {
1837
1870
  default: withCtx(() => [
1838
- createElementVNode("div", _hoisted_1, [
1871
+ createElementVNode("div", _hoisted_1$1, [
1839
1872
  createVNode(_component_q_input, {
1840
1873
  modelValue: name.value,
1841
1874
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => name.value = $event),
@@ -1844,11 +1877,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1844
1877
  append: withCtx(() => [
1845
1878
  name.value ? (openBlock(), createBlock(_component_q_icon, {
1846
1879
  key: 0,
1847
- name: "cancel",
1848
- onClick: _cache[0] || (_cache[0] = ($event) => name.value = ""),
1849
1880
  class: "q-field__focusable-action",
1850
- role: "button"
1851
- })) : createCommentVNode("", true)
1881
+ role: "button",
1882
+ name: unref(cancelIcon),
1883
+ onClick: _cache[0] || (_cache[0] = ($event) => name.value = "")
1884
+ }, null, 8, ["name"])) : createCommentVNode("", true)
1852
1885
  ]),
1853
1886
  _: 1
1854
1887
  }, 8, ["modelValue", "label"]),
@@ -1860,11 +1893,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1860
1893
  append: withCtx(() => [
1861
1894
  email.value ? (openBlock(), createBlock(_component_q_icon, {
1862
1895
  key: 0,
1863
- name: "cancel",
1864
- onClick: _cache[2] || (_cache[2] = ($event) => email.value = ""),
1865
1896
  class: "q-field__focusable-action",
1866
- role: "button"
1867
- })) : createCommentVNode("", true)
1897
+ role: "button",
1898
+ name: unref(cancelIcon),
1899
+ onClick: _cache[2] || (_cache[2] = ($event) => email.value = "")
1900
+ }, null, 8, ["name"])) : createCommentVNode("", true)
1868
1901
  ]),
1869
1902
  _: 1
1870
1903
  }, 8, ["modelValue", "label"]),
@@ -1881,11 +1914,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1881
1914
  append: withCtx(() => [
1882
1915
  roles.value.length ? (openBlock(), createBlock(_component_q_icon, {
1883
1916
  key: 0,
1884
- name: "cancel",
1885
- onClick: _cache[4] || (_cache[4] = ($event) => roles.value = []),
1886
1917
  class: "q-field__focusable-action",
1887
- role: "button"
1888
- })) : createCommentVNode("", true)
1918
+ role: "button",
1919
+ name: unref(cancelIcon),
1920
+ onClick: _cache[4] || (_cache[4] = ($event) => roles.value = [])
1921
+ }, null, 8, ["name"])) : createCommentVNode("", true)
1889
1922
  ]),
1890
1923
  _: 1
1891
1924
  }, 8, ["modelValue", "label", "options"])
@@ -1895,7 +1928,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1895
1928
  })
1896
1929
  ]),
1897
1930
  _: 1
1898
- })
1931
+ }, 8, ["icon"])
1899
1932
  ]),
1900
1933
  body: withCtx((props2) => [
1901
1934
  createVNode(_component_q_tr, { props: props2 }, {
@@ -1917,7 +1950,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1917
1950
  size: "sm",
1918
1951
  round: "",
1919
1952
  flat: "",
1920
- icon: "more_vert"
1953
+ icon: unref(moreVertIcon)
1921
1954
  }, {
1922
1955
  default: withCtx(() => [
1923
1956
  createVNode(_component_q_menu, null, {
@@ -1970,7 +2003,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1970
2003
  }, 1024)
1971
2004
  ]),
1972
2005
  _: 2
1973
- }, 1024)
2006
+ }, 1032, ["icon"])
1974
2007
  ]),
1975
2008
  _: 2
1976
2009
  }, 1024)
@@ -1983,20 +2016,99 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1983
2016
  };
1984
2017
  }
1985
2018
  });
2019
+ const _hoisted_1 = ["value"];
2020
+ const __default__$1 = {
2021
+ name: "LoginForm"
2022
+ };
2023
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2024
+ ...__default__$1,
2025
+ props: {
2026
+ form: {},
2027
+ action: {},
2028
+ xsrfSecret: {}
2029
+ },
2030
+ setup(__props, { expose: __expose }) {
2031
+ const $q = useQuasar();
2032
+ const lang2 = useLang();
2033
+ if (lang2.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
2034
+ watch($q.lang, (val) => {
2035
+ loadLang($q.lang.isoName);
2036
+ });
2037
+ const formRef = ref();
2038
+ const variables = ref({});
2039
+ const functions = ref({});
2040
+ __expose({
2041
+ variables,
2042
+ functions
2043
+ });
2044
+ return (_ctx, _cache) => {
2045
+ return openBlock(), createElementBlock(Fragment, null, [
2046
+ createTextVNode(toDisplayString(unref(lang2).logout.confirmation) + " ", 1),
2047
+ createVNode(unref(QForm), mergeProps({
2048
+ ref_key: "formRef",
2049
+ ref: formRef,
2050
+ "data-allow-mismatch": "props",
2051
+ class: "q-gutter-md"
2052
+ }, _ctx.form, {
2053
+ method: "post",
2054
+ action: _ctx.action
2055
+ }), {
2056
+ default: withCtx(() => [
2057
+ createElementVNode("input", {
2058
+ type: "hidden",
2059
+ name: "xsrf",
2060
+ value: _ctx.xsrfSecret
2061
+ }, null, 8, _hoisted_1),
2062
+ renderSlot(_ctx.$slots, "default")
2063
+ ]),
2064
+ _: 3
2065
+ }, 16, ["action"])
2066
+ ], 64);
2067
+ };
2068
+ }
2069
+ });
2070
+ const __default__ = {
2071
+ name: "LogoutButton"
2072
+ };
2073
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2074
+ ...__default__,
2075
+ props: {
2076
+ withNetwork: {}
2077
+ },
2078
+ setup(__props) {
2079
+ const $q = useQuasar();
2080
+ const lang2 = useLang();
2081
+ if (lang2.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
2082
+ watch($q.lang, (val) => {
2083
+ loadLang($q.lang.isoName);
2084
+ });
2085
+ return (_ctx, _cache) => {
2086
+ return openBlock(), createBlock(_sfc_main$f, null, {
2087
+ default: withCtx(() => [
2088
+ renderSlot(_ctx.$slots, "icon"),
2089
+ createTextVNode(" " + toDisplayString(unref(lang2).logout.logout), 1)
2090
+ ]),
2091
+ _: 3
2092
+ });
2093
+ };
2094
+ }
2095
+ });
1986
2096
  export {
1987
- _sfc_main as AccountsTable,
1988
- _sfc_main$3 as ConsentList,
1989
- _sfc_main$a as EmailChangeForm,
1990
- _sfc_main$9 as EmailChangeStepper,
1991
- _sfc_main$1 as LoginButton,
1992
- _sfc_main$6 as LoginForm,
1993
- _sfc_main$b as OtpInput,
1994
- _sfc_main$8 as PasswordChangeForm,
1995
- _sfc_main$7 as PasswordChangeStepper,
1996
- _sfc_main$5 as RegisterForm,
1997
- _sfc_main$c as RequestOtpForm,
1998
- _sfc_main$2 as UserMenuButton,
1999
- _sfc_main$4 as VerificationSlider,
2097
+ _sfc_main$2 as AccountsTable,
2098
+ _sfc_main$5 as ConsentList,
2099
+ _sfc_main$c as EmailChangeForm,
2100
+ _sfc_main$b as EmailChangeStepper,
2101
+ _sfc_main$3 as LoginButton,
2102
+ _sfc_main$8 as LoginForm,
2103
+ _sfc_main as LogoutButton,
2104
+ _sfc_main$1 as LogoutForm,
2105
+ _sfc_main$d as OtpInput,
2106
+ _sfc_main$a as PasswordChangeForm,
2107
+ _sfc_main$9 as PasswordChangeStepper,
2108
+ _sfc_main$7 as RegisterForm,
2109
+ _sfc_main$e as RequestOtpForm,
2110
+ _sfc_main$4 as UserMenuButton,
2111
+ _sfc_main$6 as VerificationSlider,
2000
2112
  loadLang,
2001
2113
  useLang
2002
2114
  };