@simsustech/quasar-components 0.4.6 → 0.4.8

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 (56) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang-62670a79.js → QSubmitButton.vue_vue_type_script_setup_true_lang-3DA1OTeA.js} +19 -14
  3. package/dist/authentication.js +13 -30
  4. package/dist/en-US-Ub0VDpRf.js +227 -0
  5. package/dist/flags.js +5 -224
  6. package/dist/form.js +7 -8
  7. package/dist/general.js +2 -3
  8. package/dist/icons.js +1 -1
  9. package/dist/{nl-710ec15d.js → nl-Y-pHriZy.js} +3 -0
  10. package/dist/types/ui/authentication/ConsentList.vue.d.ts +1 -1
  11. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +1 -1
  12. package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +1 -1
  13. package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
  14. package/dist/types/ui/authentication/LoginForm.vue.d.ts +1 -1
  15. package/dist/types/ui/authentication/OtpInput.vue.d.ts +1 -1
  16. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +2 -4
  17. package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +1 -5
  18. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +1 -1
  19. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -4
  20. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +1 -1
  21. package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +1 -1
  22. package/dist/types/ui/authentication/lang/index.d.ts +6 -0
  23. package/dist/types/ui/form/BooleanItem.vue.d.ts +2 -2
  24. package/dist/types/ui/form/BooleanSelect.vue.d.ts +1 -1
  25. package/dist/types/ui/form/DateInput.vue.d.ts +1 -1
  26. package/dist/types/ui/form/DatePicker.vue.d.ts +1 -1
  27. package/dist/types/ui/form/EmailInput.vue.d.ts +1 -1
  28. package/dist/types/ui/form/FormInput.vue.d.ts +1 -1
  29. package/dist/types/ui/form/FormItem.vue.d.ts +1 -1
  30. package/dist/types/ui/form/GenderItem.vue.d.ts +1 -1
  31. package/dist/types/ui/form/GenderSelect.vue.d.ts +1 -1
  32. package/dist/types/ui/form/PostalCodeInput.vue.d.ts +1 -1
  33. package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +1 -1
  34. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +1 -1
  35. package/dist/types/ui/general/QStyledCard.vue.d.ts +1 -1
  36. package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
  37. package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
  38. package/dist/types/ui/general/ResourcePage.vue.d.ts +1 -1
  39. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +1 -1
  40. package/package.json +24 -24
  41. package/src/ui/authentication/PasswordChangeForm.vue +1 -4
  42. package/src/ui/authentication/PasswordChangeStepper.vue +8 -16
  43. package/src/ui/authentication/RequestOtpForm.vue +1 -2
  44. package/src/ui/authentication/lang/en-US.ts +3 -0
  45. package/src/ui/authentication/lang/index.ts +3 -0
  46. package/src/ui/authentication/lang/nl.ts +3 -0
  47. package/src/ui/form/BooleanItem.vue +2 -2
  48. package/src/ui/form/EmailInput.vue +2 -0
  49. package/src/ui/general/QSubmitButton.vue +13 -9
  50. package/tsconfig.build.plugin.json +2 -1
  51. package/tsconfig.json +1 -1
  52. package/tsconfig.node.json +1 -1
  53. package/tsconfig.types.json +1 -1
  54. /package/dist/{nl-fa466587.js → nl-VodfMDVb.js} +0 -0
  55. /package/dist/{nl-f499b5cb.js → nl-ddFMi2cz.js} +0 -0
  56. /package/dist/{nl-38cb2607.js → nl-w63lODNM.js} +0 -0
package/dist/form.js CHANGED
@@ -45,10 +45,11 @@ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
45
45
  __proto__: null,
46
46
  default: lang$1
47
47
  }, Symbol.toStringTag, { value: "Module" }));
48
+ var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
48
49
  const lang = ref(lang$1);
49
50
  const locales = /* @__PURE__ */ Object.assign({
50
51
  "./en-US.ts": () => Promise.resolve().then(() => enUS),
51
- "./nl.ts": () => import("./nl-fa466587.js")
52
+ "./nl.ts": () => import("./nl-VodfMDVb.js")
52
53
  });
53
54
  const useLang = () => {
54
55
  return lang;
@@ -63,7 +64,7 @@ const loadLang = async (isoName) => {
63
64
  lang.value = data;
64
65
  }
65
66
  } catch (e) {
66
- if ({}.DEBUG)
67
+ if (define_import_meta_env_default.DEBUG)
67
68
  console.error(e);
68
69
  throw new Error(
69
70
  `[quasar-components] Failed to load ${isoName} language file.`
@@ -479,7 +480,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
479
480
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
480
481
  __name: "BooleanItem",
481
482
  props: {
482
- modelValue: { type: Boolean },
483
+ modelValue: { type: [Boolean, null] },
483
484
  label: {}
484
485
  },
485
486
  setup(__props) {
@@ -504,7 +505,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
504
505
  }),
505
506
  createVNode(unref(QItemLabel), null, {
506
507
  default: withCtx(() => [
507
- createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
508
+ createTextVNode(toDisplayString(_ctx.modelValue === null ? "-" : _ctx.modelValue ? unref(lang2).yes : unref(lang2).no), 1)
508
509
  ]),
509
510
  _: 1
510
511
  })
@@ -541,17 +542,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
541
542
  functions
542
543
  });
543
544
  return (_ctx, _cache) => {
544
- const _component_q_input = QInput;
545
- const _component_q_editor = QEditor;
546
545
  return openBlock(), createElementBlock(Fragment, null, [
547
- createVNode(_component_q_input, {
546
+ createVNode(unref(QInput), {
548
547
  outlined: "",
549
548
  placeholder: unref(lang2).email.subject,
550
549
  "model-value": _ctx.subject,
551
550
  type: "text",
552
551
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:subject", $event))
553
552
  }, null, 8, ["placeholder", "model-value"]),
554
- createVNode(_component_q_editor, {
553
+ createVNode(unref(QEditor), {
555
554
  "model-value": _ctx.body,
556
555
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emit("update:body", $event))
557
556
  }, null, 8, ["model-value"])
package/dist/general.js CHANGED
@@ -1,7 +1,7 @@
1
- import { l as loadLang, u as useLang, _ as _sfc_main$4 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-62670a79.js";
1
+ import { l as loadLang, u as useLang, _ as _sfc_main$4 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-3DA1OTeA.js";
2
2
  import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QBtn, QToolbarTitle, QToolbar, QHeader, QPage, QPageContainer, QLayout, QSpace, QPageSticky, QSelect, QItemSection, QItemLabel, QItem } from "quasar";
3
3
  import { defineComponent, watch, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, toRefs, useAttrs, computed, mergeProps, createTextVNode, toDisplayString } from "vue";
4
- import { enUs, nl } from "./flags.js";
4
+ import { e as enUs, n as nl } from "./en-US-Ub0VDpRf.js";
5
5
  const _hoisted_1$1 = { class: "text-h6" };
6
6
  const _hoisted_2 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
@@ -70,7 +70,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
70
70
  };
71
71
  }
72
72
  });
73
- const QStyledCard_vue_vue_type_style_index_0_scoped_302df27a_lang = "";
74
73
  const _export_sfc = (sfc, props) => {
75
74
  const target = sfc.__vccOpts || sfc;
76
75
  for (const [key, val] of props) {
package/dist/icons.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ref, h } from "vue";
2
2
  import { useQuasar, QIcon } from "quasar";
3
- const icon = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCmFyaWEtbGFiZWw9Ik1pY3Jvc29mdCIgcm9sZT0iaW1nIgp2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHJlY3QKd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiCnJ4PSIxNSUiCmZpbGw9IiNmZmYiLz48cGF0aApkPSJNNzUgNzV2MTcxaDE3MXYtMTcxeiIgZmlsbD0iI2YyNTAyMiIvPjxwYXRoCmQ9Ik0yNjYgNzV2MTcxaDE3MXYtMTcxeiIgZmlsbD0iIzdmYmEwMCIvPjxwYXRoCmQ9Ik03NSAyNjZ2MTcxaDE3MXYtMTcxeiIgZmlsbD0iIzAwYTRlZiIvPjxwYXRoCmQ9Ik0yNjYgMjY2djE3MWgxNzF2LTE3MXoiIGZpbGw9IiNmZmI5MDAiLz48L3N2Zz4=";
3
+ const icon = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Microsoft'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%23fff'/%3e%3cpath%20d='M75%2075v171h171v-171z'%20fill='%23f25022'/%3e%3cpath%20d='M266%2075v171h171v-171z'%20fill='%237fba00'/%3e%3cpath%20d='M75%20266v171h171v-171z'%20fill='%2300a4ef'/%3e%3cpath%20d='M266%20266v171h171v-171z'%20fill='%23ffb900'/%3e%3c/svg%3e";
4
4
  const labels = {
5
5
  microsoft: {
6
6
  name: "Microsoft"
@@ -30,6 +30,9 @@ const lang = {
30
30
  fieldRequired: "Veld is vereist.",
31
31
  invalidEmail: "Het email adres is ongeldig."
32
32
  },
33
+ messages: {
34
+ unknownEmail: "Email adres is niet geregistreerd."
35
+ },
33
36
  request: "Vraag een eenmalig wachtwoord aan.",
34
37
  checkEmail: "U ontvangt een verificatie code in uw mailbox. Gebruik deze code in de volgende stap.",
35
38
  verificationCode: "Verificatie code"
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
16
16
  deny: string;
17
17
  }>;
18
18
  functions: import("vue").Ref<{}>;
19
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
20
20
  export default _default;
21
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
22
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  otp: string;
24
24
  done: () => void;
25
25
  }) => void;
26
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
27
27
  onSubmit?: ((args_0: {
28
28
  email: string;
29
29
  newEmail: string;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
26
26
  otp: string;
27
27
  done: () => void;
28
28
  }) => void;
29
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
29
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
30
30
  onChangeEmail?: ((args_0: {
31
31
  email: string;
32
32
  newEmail: string;
@@ -1,7 +1,7 @@
1
1
  export interface Props {
2
2
  withNetwork?: string;
3
3
  }
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
5
5
  icon?(_: {}): any;
6
6
  }>;
7
7
  export default _default;
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
27
  username?: string | undefined;
28
28
  done: () => void;
29
29
  }) => void;
30
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
30
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
31
31
  onSubmit?: ((args_0: {
32
32
  email?: string | undefined;
33
33
  password: string;
@@ -2,7 +2,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
2
2
  modelValue: string;
3
3
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  "update:modelValue": (...args: any[]) => void;
5
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
6
  modelValue: string;
7
7
  }>>> & {
8
8
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -12,9 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  form: undefined;
13
13
  input: undefined;
14
14
  }>, {
15
- variables: import("vue").Ref<{
16
- header: string;
17
- }>;
15
+ variables: import("vue").Ref<{}>;
18
16
  functions: import("vue").Ref<{
19
17
  submit: (args_0: {
20
18
  value?: string | undefined;
@@ -28,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
26
  otp: string;
29
27
  done: () => void;
30
28
  }) => void;
31
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
29
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
32
30
  minimumPasswordLength: number;
33
31
  form: undefined;
34
32
  input: undefined;
@@ -6,10 +6,6 @@ export interface Props {
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
8
8
  variables: import("vue").Ref<{
9
- header: string;
10
- passwordChanged: string;
11
- unprocessableRequest: string;
12
- checkEmail: string;
13
9
  steps: readonly ["requestOtp", "changePassword"];
14
10
  }>;
15
11
  functions: import("vue").Ref<{
@@ -26,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
26
22
  otp: string;
27
23
  done: () => void;
28
24
  }) => void;
29
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
30
26
  onRequestOtp?: ((args_0: {
31
27
  email: string;
32
28
  done: () => void;
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
39
39
  extraFields?: Record<string, string> | undefined;
40
40
  done: () => void;
41
41
  }) => void;
42
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
43
43
  minimumPasswordLength: number;
44
44
  extraFields: undefined;
45
45
  form: undefined;
@@ -6,9 +6,7 @@ export interface Props {
6
6
  })>;
7
7
  }
8
8
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
9
- variables: import("vue").Ref<{
10
- header: string;
11
- }>;
9
+ variables: import("vue").Ref<{}>;
12
10
  functions: import("vue").Ref<{
13
11
  submit: (args_0: {
14
12
  value?: string | undefined;
@@ -20,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
20
18
  email: string;
21
19
  done: () => void;
22
20
  }) => void;
23
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
24
22
  onSubmit?: ((args_0: {
25
23
  email: string;
26
24
  done: () => void;
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  functions: import("vue").Ref<{}>;
8
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  signOut: () => void;
10
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
11
11
  onSignOut?: (() => any) | undefined;
12
12
  }, {}, {}>, {
13
13
  default?(_: {}): any;
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
6
6
  functions: import("vue").Ref<{}>;
7
7
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  verified: () => void;
9
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
10
10
  onVerified?: (() => any) | undefined;
11
11
  }, {}, {}>;
12
12
  export default _default;
@@ -46,6 +46,9 @@ export interface Language {
46
46
  fieldRequired: string;
47
47
  invalidEmail: string;
48
48
  };
49
+ messages: {
50
+ unknownEmail: string;
51
+ };
49
52
  request: string;
50
53
  checkEmail: string;
51
54
  verificationCode: string;
@@ -133,6 +136,9 @@ export declare const lang: Ref<{
133
136
  fieldRequired: string;
134
137
  invalidEmail: string;
135
138
  };
139
+ messages: {
140
+ unknownEmail: string;
141
+ };
136
142
  request: string;
137
143
  checkEmail: string;
138
144
  verificationCode: string;
@@ -1,8 +1,8 @@
1
1
  export interface Props {
2
- modelValue: boolean;
2
+ modelValue: boolean | null;
3
3
  label: string;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
6
6
  export default _default;
7
7
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
8
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -5,7 +5,7 @@ export interface Props {
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (...args: any[]) => void;
8
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
9
9
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
10
10
  }, {}, {}>;
11
11
  export default _default;
@@ -8,7 +8,7 @@ export interface Props {
8
8
  }
9
9
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  "update:modelValue": (val: string | null) => void;
11
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
12
12
  "onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
13
13
  }, {}, {}>;
14
14
  export default _default;
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
16
16
  from: string;
17
17
  to: string;
18
18
  }) => void;
19
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
20
20
  modelValue: string | null | undefined | {
21
21
  from: string;
22
22
  to: string;
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
8
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:subject": (value: string | number | null) => void;
10
10
  "update:body": (value: string | null) => void;
11
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
12
12
  "onUpdate:subject"?: ((value: string | number | null) => any) | undefined;
13
13
  "onUpdate:body"?: ((value: string | null) => any) | undefined;
14
14
  }, {}, {}>;
@@ -5,7 +5,7 @@ export interface Props {
5
5
  label?: string;
6
6
  required?: boolean;
7
7
  }
8
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
8
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
9
9
  export default _default;
10
10
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
11
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -4,7 +4,7 @@ export interface Props {
4
4
  label?: string;
5
5
  field?: FormItems;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
8
8
  avatar?(_: {}): any;
9
9
  side?(_: {}): any;
10
10
  }>;
@@ -2,7 +2,7 @@ import type { Gender } from './GenderSelect.vue';
2
2
  export interface Props {
3
3
  modelValue: Gender;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
6
6
  export default _default;
7
7
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
8
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -6,7 +6,7 @@ export interface Props {
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (...args: any[]) => void;
9
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
10
10
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
11
  }, {}, {}>;
12
12
  export default _default;
@@ -6,7 +6,7 @@ export interface Props {
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  "update:modelValue": (...args: any[]) => void;
9
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
10
10
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
11
  }, {}, {}>;
12
12
  export default _default;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  }
5
5
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  "update:modelValue": (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
8
8
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
9
9
  }, {}, {}>;
10
10
  export default _default;
@@ -3,7 +3,7 @@ export interface Props {
3
3
  modelValue: string;
4
4
  languageImports: Record<string, () => Promise<QuasarLanguage>>;
5
5
  }
6
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
6
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -5,7 +5,7 @@ export interface Props {
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
6
6
  variables: import("vue").Ref<{}>;
7
7
  functions: import("vue").Ref<{}>;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
8
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
9
9
  image?(_: {}): any;
10
10
  title?(_: {}): any;
11
11
  subtitle?(_: {}): any;
@@ -4,7 +4,7 @@ export interface Props {
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
5
5
  variables: import("vue").Ref<{}>;
6
6
  functions: import("vue").Ref<{}>;
7
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
7
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
8
8
  leftDrawerItems?(_: {}): any;
9
9
  }>;
10
10
  export default _default;
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
24
  value?: string | undefined;
25
25
  done: () => void;
26
26
  }) => void;
27
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
28
  loading: {
29
29
  type: BooleanConstructor;
30
30
  default: undefined;
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
17
  data?: unknown;
18
18
  done: (success?: boolean) => void;
19
19
  }) => void;
20
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
21
21
  type: string;
22
22
  disabled: boolean;
23
23
  }>>> & {
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  submit: (args_0: {
13
13
  done: (success?: boolean) => void;
14
14
  }) => void;
15
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
15
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
16
16
  onSubmit?: ((args_0: {
17
17
  done: (success?: boolean) => void;
18
18
  }) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -46,34 +46,34 @@
46
46
  },
47
47
  "bugs": "https://github.com/simsusech/quasar-components/issues",
48
48
  "dependencies": {
49
- "validator": "^13.9.0"
49
+ "validator": "^13.11.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "quasar": "^2.9.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@types/node": "^20.4.5",
56
- "@types/validator": "^13.9.0",
57
- "@types/ws": "^8.5.5",
58
- "@typescript-eslint/eslint-plugin": "^6.2.1",
59
- "@typescript-eslint/parser": "^6.2.1",
60
- "@vitejs/plugin-vue": "^4.2.3",
61
- "@vue/server-renderer": "^3.3.4",
62
- "eslint": "^8.46.0",
63
- "eslint-config-prettier": "^8.9.0",
64
- "eslint-plugin-prettier-vue": "^4.2.0",
65
- "eslint-plugin-vue": "^9.16.1",
66
- "glob": "^10.3.3",
67
- "local-pkg": "^0.4.3",
68
- "prettier": "^3.0.0",
69
- "quasar": "^2.12.3",
70
- "rimraf": "^5.0.1",
71
- "typescript": "^5.1.6",
72
- "unplugin-vue-components": "^0.25.1",
73
- "vite": "^4.4.8",
74
- "vue": "^3.3.4",
75
- "vue-router": "^4.2.4",
76
- "vue-tsc": "^1.8.8"
55
+ "@types/node": "^20.11.16",
56
+ "@types/validator": "^13.11.8",
57
+ "@types/ws": "^8.5.10",
58
+ "@typescript-eslint/eslint-plugin": "^6.20.0",
59
+ "@typescript-eslint/parser": "^6.20.0",
60
+ "@vitejs/plugin-vue": "^5.0.3",
61
+ "@vue/server-renderer": "^3.4.15",
62
+ "eslint": "^8.56.0",
63
+ "eslint-config-prettier": "^9.1.0",
64
+ "eslint-plugin-prettier-vue": "^5.0.0",
65
+ "eslint-plugin-vue": "^9.21.1",
66
+ "glob": "^10.3.10",
67
+ "local-pkg": "^0.5.0",
68
+ "prettier": "^3.2.4",
69
+ "quasar": "^2.14.3",
70
+ "rimraf": "^5.0.5",
71
+ "typescript": "^5.3.3",
72
+ "unplugin-vue-components": "^0.26.0",
73
+ "vite": "^5.0.12",
74
+ "vue": "^3.4.15",
75
+ "vue-router": "^4.2.5",
76
+ "vue-tsc": "^1.8.27"
77
77
  },
78
78
  "scripts": {
79
79
  "build:plugin": "vite build",
@@ -116,7 +116,6 @@ const newPassword = ref('')
116
116
  const repeatNewPassword = ref('')
117
117
  const showPassword = ref(false)
118
118
  const showRepeatPassword = ref(false)
119
- const header = computed(() => lang.value.password.changePassword)
120
119
 
121
120
  const formRef = ref<QForm>()
122
121
  const validations = computed<
@@ -153,9 +152,7 @@ const submit: InstanceType<typeof QSubmitButton>['$props']['onSubmit'] = (
153
152
  })
154
153
  }
155
154
 
156
- const variables = ref({
157
- header
158
- })
155
+ const variables = ref({})
159
156
  const functions = ref({
160
157
  submit
161
158
  })
@@ -38,15 +38,17 @@
38
38
  </template>
39
39
 
40
40
  <script lang="ts">
41
+ import { useLang, loadLang } from './lang'
42
+
41
43
  export default {
42
- name: 'PasswordChangeStepper'
44
+ name: 'PasswordChangeStepper',
45
+ useLang: useLang
43
46
  }
44
47
  </script>
45
48
 
46
49
  <script setup lang="ts">
47
50
  import { ref, computed, watch } from 'vue'
48
51
  import { useQuasar, QInputProps } from 'quasar'
49
- import { useLang, loadLang } from './lang'
50
52
  import QSubmitButton from '../general/QSubmitButton.vue'
51
53
  import RequestOtpForm from './RequestOtpForm.vue'
52
54
  import PasswordChangeForm from './PasswordChangeForm.vue'
@@ -102,20 +104,14 @@ watch($q.lang, (val) => {
102
104
  const steps = ['requestOtp', 'changePassword'] as const
103
105
  const step = ref<(typeof steps)[number]>('requestOtp')
104
106
  const email = ref('')
105
- const header = computed(() => lang.value.password.changePassword)
106
- const passwordChanged = computed(() => lang.value.password.passwordChanged)
107
- const unprocessableRequest = computed(() => lang.value.unprocessableRequest)
108
- const checkEmail = computed(() => lang.value.otp.checkEmail)
109
107
 
110
108
  const requestOtpFormRef = ref<typeof RequestOtpForm>()
111
109
  const passwordChangeFormRef = ref<typeof PasswordChangeForm>()
112
110
 
113
- const requestOtpHeader = computed(
114
- () => requestOtpFormRef.value?.variables.header || ''
115
- )
116
- const passwordChangeHeader = computed(
117
- () => passwordChangeFormRef.value?.variables.header || ''
118
- )
111
+ const requestOtpHeader = computed(() => lang.value.otp.request)
112
+
113
+ const passwordChangeHeader = computed(() => lang.value.password.changePassword)
114
+
119
115
  const requestOtp: InstanceType<typeof RequestOtpForm>['$props']['onSubmit'] = ({
120
116
  email: emittedEmail,
121
117
  done
@@ -141,10 +137,6 @@ const changePassword: InstanceType<
141
137
  }
142
138
 
143
139
  const variables = ref({
144
- header,
145
- passwordChanged,
146
- unprocessableRequest,
147
- checkEmail,
148
140
  steps
149
141
  })
150
142
  const functions = ref({