@simsustech/quasar-components 0.1.3 → 0.3.0

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 (85) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang.1d0c06eb.js → QSubmitButton.vue_vue_type_script_setup_true_lang-b5f452c6.js} +11 -4
  3. package/dist/authentication.js +53 -27
  4. package/dist/en-US-6cc72154.js +226 -0
  5. package/dist/flags.js +5 -215
  6. package/dist/form.js +543 -0
  7. package/dist/general.js +364 -14
  8. package/dist/icons.js +5 -3
  9. package/dist/nl-38cb2607.js +134 -0
  10. package/dist/{nl.6b0aedb7.js → nl-710ec15d.js} +1 -1
  11. package/dist/nl-ea9ab282.js +38 -0
  12. package/dist/style.css +2 -2
  13. package/dist/types/ui/authentication/ConsentList.vue.d.ts +2 -58
  14. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +20 -112
  15. package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +13 -131
  16. package/dist/types/ui/authentication/LoginButton.vue.d.ts +9 -54
  17. package/dist/types/ui/authentication/LoginForm.vue.d.ts +20 -118
  18. package/dist/types/ui/authentication/OtpInput.vue.d.ts +4 -56
  19. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +31 -140
  20. package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +13 -131
  21. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +33 -167
  22. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +18 -100
  23. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +11 -64
  24. package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +4 -60
  25. package/dist/types/ui/form/BooleanItem.vue.d.ts +15 -0
  26. package/dist/types/ui/form/BooleanSelect.vue.d.ts +18 -0
  27. package/dist/types/ui/form/DateInput.vue.d.ts +19 -0
  28. package/dist/types/ui/form/EmailInput.vue.d.ts +24 -0
  29. package/dist/types/ui/form/FormInput.vue.d.ts +18 -0
  30. package/dist/types/ui/form/FormItem.vue.d.ts +25 -0
  31. package/dist/types/ui/form/GenderItem.vue.d.ts +15 -0
  32. package/dist/types/ui/form/GenderSelect.vue.d.ts +18 -0
  33. package/dist/types/ui/form/PostalCodeInput.vue.d.ts +19 -0
  34. package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +17 -0
  35. package/dist/types/ui/form/index.d.ts +10 -0
  36. package/dist/types/ui/form/lang/en-US.d.ts +3 -0
  37. package/dist/types/ui/form/lang/index.d.ts +74 -0
  38. package/dist/types/ui/form/lang/nl.d.ts +3 -0
  39. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +16 -0
  40. package/dist/types/ui/general/QStyledCard.vue.d.ts +13 -58
  41. package/dist/types/ui/general/QStyledLayout.vue.d.ts +9 -54
  42. package/dist/types/ui/general/QSubmitButton.vue.d.ts +29 -114
  43. package/dist/types/ui/general/ResourcePage.vue.d.ts +61 -0
  44. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +37 -0
  45. package/dist/types/ui/general/index.d.ts +3 -0
  46. package/dist/types/virtualModules.d.ts +1 -0
  47. package/dist/virtualModules.d.ts +1 -0
  48. package/dist/virtualModules.js +3 -2
  49. package/dist/vite-plugin.js +26 -5
  50. package/package.json +28 -23
  51. package/src/ui/authentication/EmailChangeStepper.vue +2 -2
  52. package/src/ui/authentication/PasswordChangeStepper.vue +2 -2
  53. package/src/ui/authentication/lang/en-US.ts +1 -2
  54. package/src/ui/authentication/lang/nl.ts +1 -2
  55. package/src/ui/flags/README.md +1 -1
  56. package/src/ui/form/BooleanItem.vue +34 -0
  57. package/src/ui/form/BooleanSelect.vue +55 -0
  58. package/src/ui/form/DateInput.vue +70 -0
  59. package/src/ui/form/EmailInput.vue +50 -0
  60. package/src/ui/form/FormInput.vue +44 -0
  61. package/src/ui/form/FormItem.vue +50 -0
  62. package/src/ui/form/GenderItem.vue +35 -0
  63. package/src/ui/form/GenderSelect.vue +59 -0
  64. package/src/ui/form/PostalCodeInput.vue +47 -0
  65. package/src/ui/form/TelephoneNumberInput.vue +35 -0
  66. package/src/ui/form/index.ts +10 -0
  67. package/src/ui/form/lang/en-US.ts +39 -0
  68. package/src/ui/form/lang/index.ts +73 -0
  69. package/src/ui/form/lang/nl.ts +39 -0
  70. package/src/ui/general/QLanguageSelect.vue +86 -0
  71. package/src/ui/general/QStyledCard.vue +1 -1
  72. package/src/ui/general/QSubmitButton.vue +6 -1
  73. package/src/ui/general/ResourcePage.vue +121 -0
  74. package/src/ui/general/ResponsiveDialog.vue +94 -0
  75. package/src/ui/general/index.ts +3 -0
  76. package/src/ui/icons/README.md +2 -0
  77. package/src/virtualModules.ts +48 -5
  78. package/src/vite-plugin.ts +26 -6
  79. package/vite.config.ts +30 -30
  80. package/dist/nl.b1ad9de9.js +0 -134
  81. package/dist/types/ui/index.d.ts +0 -1
  82. package/src/ui/index.ts +0 -1
  83. /package/dist/{nl.7787ff31.js → nl-022c8c63.js} +0 -0
  84. /package/dist/types/ui/icons/{icons.d.ts → labels.d.ts} +0 -0
  85. /package/src/ui/icons/{icons.ts → labels.ts} +0 -0
@@ -2,66 +2,16 @@ import { QCardActionsProps } from 'quasar';
2
2
  export interface Props {
3
3
  actions?: QCardActionsProps;
4
4
  }
5
- declare const _default: {
6
- new (...args: any[]): {
7
- $: import("vue").ComponentInternalInstance;
8
- $data: {};
9
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
10
- $attrs: {
11
- [x: string]: unknown;
12
- };
13
- $refs: {
14
- [x: string]: unknown;
15
- };
16
- $slots: Readonly<{
17
- [name: string]: import("vue").Slot | undefined;
18
- }>;
19
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
20
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
21
- $emit: (event: string, ...args: any[]) => void;
22
- $el: any;
23
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {
24
- variables: import("vue").Ref<{}>;
25
- functions: import("vue").Ref<{}>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
27
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
28
- created?: ((() => void) | (() => void)[]) | undefined;
29
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
30
- mounted?: ((() => void) | (() => void)[]) | undefined;
31
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
32
- updated?: ((() => void) | (() => void)[]) | undefined;
33
- activated?: ((() => void) | (() => void)[]) | undefined;
34
- deactivated?: ((() => void) | (() => void)[]) | undefined;
35
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
36
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
37
- destroyed?: ((() => void) | (() => void)[]) | undefined;
38
- unmounted?: ((() => void) | (() => void)[]) | undefined;
39
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
40
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
41
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
42
- };
43
- $forceUpdate: () => void;
44
- $nextTick: typeof import("vue").nextTick;
45
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
46
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").ShallowUnwrapRef<{
47
- variables: import("vue").Ref<{}>;
48
- functions: import("vue").Ref<{}>;
49
- }> & {} & import("vue").ComponentCustomProperties & {};
50
- __isFragment?: undefined;
51
- __isTeleport?: undefined;
52
- __isSuspense?: undefined;
53
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
54
6
  variables: import("vue").Ref<{}>;
55
7
  functions: import("vue").Ref<{}>;
56
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
57
- $slots: {
58
- image: (_: {}) => any;
59
- title: (_: {}) => any;
60
- subtitle: (_: {}) => any;
61
- default: (_: {}) => any;
62
- actions: (_: {}) => any;
63
- };
64
- });
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>>>, {}>, {
9
+ image?(_: {}): any;
10
+ title?(_: {}): any;
11
+ subtitle?(_: {}): any;
12
+ default?(_: {}): any;
13
+ actions?(_: {}): any;
14
+ }>;
65
15
  export default _default;
66
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
67
17
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -72,3 +22,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
72
22
  required: true;
73
23
  };
74
24
  };
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -1,62 +1,12 @@
1
1
  export interface Props {
2
2
  title: string;
3
3
  }
4
- declare const _default: {
5
- new (...args: any[]): {
6
- $: import("vue").ComponentInternalInstance;
7
- $data: {};
8
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
9
- $attrs: {
10
- [x: string]: unknown;
11
- };
12
- $refs: {
13
- [x: string]: unknown;
14
- };
15
- $slots: Readonly<{
16
- [name: string]: import("vue").Slot | undefined;
17
- }>;
18
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
19
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
20
- $emit: (event: string, ...args: any[]) => void;
21
- $el: any;
22
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {
23
- variables: import("vue").Ref<{}>;
24
- functions: import("vue").Ref<{}>;
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
26
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
27
- created?: ((() => void) | (() => void)[]) | undefined;
28
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
29
- mounted?: ((() => void) | (() => void)[]) | undefined;
30
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
31
- updated?: ((() => void) | (() => void)[]) | undefined;
32
- activated?: ((() => void) | (() => void)[]) | undefined;
33
- deactivated?: ((() => void) | (() => void)[]) | undefined;
34
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
35
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
36
- destroyed?: ((() => void) | (() => void)[]) | undefined;
37
- unmounted?: ((() => void) | (() => void)[]) | undefined;
38
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
39
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
40
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
41
- };
42
- $forceUpdate: () => void;
43
- $nextTick: typeof import("vue").nextTick;
44
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
45
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").ShallowUnwrapRef<{
46
- variables: import("vue").Ref<{}>;
47
- functions: import("vue").Ref<{}>;
48
- }> & {} & import("vue").ComponentCustomProperties & {};
49
- __isFragment?: undefined;
50
- __isTeleport?: undefined;
51
- __isSuspense?: undefined;
52
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
53
5
  variables: import("vue").Ref<{}>;
54
6
  functions: import("vue").Ref<{}>;
55
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
56
- $slots: {
57
- leftDrawerItems: (_: {}) => any;
58
- };
59
- });
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>>>, {}>, {
8
+ leftDrawerItems?(_: {}): any;
9
+ }>;
60
10
  export default _default;
61
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -67,3 +17,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
67
17
  required: true;
68
18
  };
69
19
  };
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -2,114 +2,9 @@ export interface Props {
2
2
  loading?: boolean;
3
3
  useForm?: boolean;
4
4
  isNextButton?: boolean;
5
+ color?: string;
5
6
  }
6
- declare const _default: {
7
- new (...args: any[]): {
8
- $: import("vue").ComponentInternalInstance;
9
- $data: {};
10
- $props: Partial<{
11
- loading: boolean;
12
- useForm: boolean;
13
- isNextButton: boolean;
14
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
- loading: {
16
- type: BooleanConstructor;
17
- default: undefined;
18
- };
19
- useForm: {
20
- type: BooleanConstructor;
21
- };
22
- isNextButton: {
23
- type: BooleanConstructor;
24
- };
25
- }>> & {
26
- onSubmit?: ((args_0: {
27
- value?: string | undefined;
28
- done: () => void;
29
- }) => any) | undefined;
30
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "useForm" | "isNextButton">;
31
- $attrs: {
32
- [x: string]: unknown;
33
- };
34
- $refs: {
35
- [x: string]: unknown;
36
- };
37
- $slots: Readonly<{
38
- [name: string]: import("vue").Slot | undefined;
39
- }>;
40
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
41
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
42
- $emit: (event: "submit", args_0: {
43
- value?: string | undefined;
44
- done: () => void;
45
- }) => void;
46
- $el: any;
47
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
48
- loading: {
49
- type: BooleanConstructor;
50
- default: undefined;
51
- };
52
- useForm: {
53
- type: BooleanConstructor;
54
- };
55
- isNextButton: {
56
- type: BooleanConstructor;
57
- };
58
- }>> & {
59
- onSubmit?: ((args_0: {
60
- value?: string | undefined;
61
- done: () => void;
62
- }) => any) | undefined;
63
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
- submit: (payload_0: {
65
- value?: string | undefined;
66
- done: () => void;
67
- }) => void;
68
- }, string, {
69
- loading: boolean;
70
- useForm: boolean;
71
- isNextButton: boolean;
72
- }, {}, string> & {
73
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
74
- created?: ((() => void) | (() => void)[]) | undefined;
75
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
76
- mounted?: ((() => void) | (() => void)[]) | undefined;
77
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
78
- updated?: ((() => void) | (() => void)[]) | undefined;
79
- activated?: ((() => void) | (() => void)[]) | undefined;
80
- deactivated?: ((() => void) | (() => void)[]) | undefined;
81
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
82
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
83
- destroyed?: ((() => void) | (() => void)[]) | undefined;
84
- unmounted?: ((() => void) | (() => void)[]) | undefined;
85
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
86
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
87
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
88
- };
89
- $forceUpdate: () => void;
90
- $nextTick: typeof import("vue").nextTick;
91
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
92
- } & Readonly<import("vue").ExtractPropTypes<{
93
- loading: {
94
- type: BooleanConstructor;
95
- default: undefined;
96
- };
97
- useForm: {
98
- type: BooleanConstructor;
99
- };
100
- isNextButton: {
101
- type: BooleanConstructor;
102
- };
103
- }>> & {
104
- onSubmit?: ((args_0: {
105
- value?: string | undefined;
106
- done: () => void;
107
- }) => any) | undefined;
108
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
109
- __isFragment?: undefined;
110
- __isTeleport?: undefined;
111
- __isSuspense?: undefined;
112
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
7
+ declare const _default: import("vue").DefineComponent<{
113
8
  loading: {
114
9
  type: BooleanConstructor;
115
10
  default: undefined;
@@ -120,19 +15,39 @@ declare const _default: {
120
15
  isNextButton: {
121
16
  type: BooleanConstructor;
122
17
  };
123
- }>> & {
124
- onSubmit?: ((args_0: {
125
- value?: string | undefined;
126
- done: () => void;
127
- }) => any) | undefined;
18
+ color: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
128
22
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
129
23
  submit: (payload_0: {
130
24
  value?: string | undefined;
131
25
  done: () => void;
132
26
  }) => void;
133
- }, string, {
27
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ loading: {
29
+ type: BooleanConstructor;
30
+ default: undefined;
31
+ };
32
+ useForm: {
33
+ type: BooleanConstructor;
34
+ };
35
+ isNextButton: {
36
+ type: BooleanConstructor;
37
+ };
38
+ color: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ }>> & {
43
+ onSubmit?: ((args_0: {
44
+ value?: string | undefined;
45
+ done: () => void;
46
+ }) => any) | undefined;
47
+ }, {
48
+ color: string;
134
49
  loading: boolean;
135
50
  useForm: boolean;
136
51
  isNextButton: boolean;
137
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
52
+ }>;
138
53
  export default _default;
@@ -0,0 +1,61 @@
1
+ export interface Props {
2
+ type?: 'create' | 'update';
3
+ disabled?: boolean;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
6
+ type: string;
7
+ disabled: boolean;
8
+ }>, {
9
+ variables: import("vue").Ref<{}>;
10
+ functions: import("vue").Ref<{}>;
11
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ create: (payload_0: {
13
+ data?: any;
14
+ done: (success?: boolean) => void;
15
+ }) => void;
16
+ update: (payload_0: {
17
+ data?: any;
18
+ done: (success?: boolean) => void;
19
+ }) => void;
20
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
21
+ type: string;
22
+ disabled: boolean;
23
+ }>>> & {
24
+ onCreate?: ((args_0: {
25
+ data?: any;
26
+ done: (success?: boolean) => void;
27
+ }) => any) | undefined;
28
+ onUpdate?: ((args_0: {
29
+ data?: any;
30
+ done: (success?: boolean) => void;
31
+ }) => any) | undefined;
32
+ }, {
33
+ type: "create" | "update";
34
+ disabled: boolean;
35
+ }>, {
36
+ default?(_: {}): any;
37
+ header?(_: {}): any;
38
+ }>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_WithTemplateSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
@@ -0,0 +1,37 @@
1
+ export interface Props {
2
+ display?: boolean;
3
+ }
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
5
+ variables: import("vue").Ref<{}>;
6
+ functions: import("vue").Ref<{
7
+ open: () => void | undefined;
8
+ close: () => void | undefined;
9
+ toggle: () => void | undefined;
10
+ }>;
11
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ submit: (payload_0: {
13
+ done: (success?: boolean) => void;
14
+ }) => void;
15
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
16
+ onSubmit?: ((args_0: {
17
+ done: (success?: boolean) => void;
18
+ }) => any) | undefined;
19
+ }, {}>, {
20
+ title?(_: {}): any;
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -1,2 +1,5 @@
1
1
  export { default as QSubmitButton } from './QSubmitButton.vue';
2
2
  export { default as QStyledCard } from './QStyledCard.vue';
3
+ export { default as ResponsiveDialog } from './ResponsiveDialog.vue';
4
+ export { default as ResourcePage } from './ResourcePage.vue';
5
+ export { default as QLanguageSelect } from './QLanguageSelect.vue';
@@ -1,2 +1,3 @@
1
1
  export declare const FlagIcon: (locale: string) => string;
2
2
  export declare const Icon: (icon: string) => string;
3
+ export declare const FormItem: (field: string) => string;
@@ -1,2 +1,3 @@
1
1
  export declare const FlagIcon: (locale: string) => string;
2
2
  export declare const Icon: (icon: string) => string;
3
+ export declare const FormItem: (field: string) => string;
@@ -1,2 +1,3 @@
1
- export var FlagIcon = function (locale) { return "\n import { computed, ref, watch, h } from 'vue'\n import { QuasarLanguageCodes, useQuasar, QIcon } from 'quasar'\n import { useLang, loadLang } from '".concat(new URL("../src/ui/flags/lang", import.meta.url).pathname, "'\n import icon from '").concat(new URL("../src/ui/flags/assets/".concat(locale, ".svg"), import.meta.url).pathname, "'\n export default {\n setup(props, context) {\n const $q = useQuasar()\n const lang = useLang()\n if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName)\n watch($q.lang, (val) => {\n loadLang($q.lang.isoName)\n })\n \n const country = computed(\n () => lang.value.countries['").concat(locale, "']\n )\n // @ts-ignore\n const language = computed(() => lang.value.languages['").concat(locale, "'])\n const variables = ref({\n country,\n language\n // header: lang.value.some.nested.prop\n })\n const functions = ref({\n // submit\n })\n\n context.expose({\n variables,\n functions\n })\n\n // return the render function\n return () => h(QIcon, { name: `img:${icon}` })\n }}\n"); };
2
- export var Icon = function (icon) { return "\n import { computed, ref, watch, h } from 'vue'\n import { QuasarLanguageCodes, useQuasar, QIcon } from 'quasar'\n import icon from '".concat(new URL("../src/ui/icons/assets/".concat(icon, ".svg"), import.meta.url).pathname, "'\n import icons from '").concat(new URL("../src/ui/icons/icons.ts", import.meta.url).pathname, "'\n export default {\n setup(props, context) {\n const $q = useQuasar()\n\n const variables = ref(icons['").concat(icon, "'])\n\n const functions = ref({\n // submit\n })\n\n context.expose({\n variables,\n functions\n })\n\n // return the render function\n return () => h(QIcon, { name: `img:${icon}` })\n }}\n"); };
1
+ export var FlagIcon = function (locale) { return "\n import { computed, ref, watch, h } from 'vue'\n import { useQuasar, QIcon } from 'quasar'\n import { useLang, loadLang } from '".concat(new URL("../src/ui/flags/lang", import.meta.url).pathname, "'\n import icon from '").concat(new URL("../src/ui/flags/assets/".concat(locale, ".svg"), import.meta.url).pathname, "'\n export default {\n setup(props, context) {\n const $q = useQuasar()\n const lang = useLang()\n if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName)\n watch($q.lang, (val) => {\n loadLang($q.lang.isoName)\n })\n \n const country = computed(\n () => lang.value.countries['").concat(locale, "']\n )\n // @ts-ignore\n // const language = computed(() => lang.value.languages['").concat(locale, "'])\n const language = computed(() => lang.value.languages['").concat(locale, "'])\n const variables = ref({\n country,\n language\n // header: lang.value.some.nested.prop\n })\n const functions = ref({\n // submit\n })\n\n context.expose({\n variables,\n functions\n })\n\n // return the render function\n return () => h(QIcon, { name: `img:${icon}` })\n }}\n"); };
2
+ export var Icon = function (icon) { return "\n import { computed, ref, watch, h } from 'vue'\n import { useQuasar, QIcon } from 'quasar'\n import icon from '".concat(new URL("../src/ui/icons/assets/".concat(icon, ".svg"), import.meta.url).pathname, "'\n import labels from '").concat(new URL("../src/ui/icons/labels.ts", import.meta.url).pathname, "'\n export default {\n setup(props, context) {\n const $q = useQuasar()\n\n const variables = ref(labels['").concat(icon, "'])\n\n const functions = ref({\n // submit\n })\n\n context.expose({\n variables,\n functions\n })\n\n // return the render function\n return () => h(QIcon, { name: `img:${icon}` })\n }}\n"); };
3
+ export var FormItem = function (field) { return "\nimport { ref, watch, useAttrs, h } from 'vue'\nimport { QItem, QItemLabel, QItemSection, useQuasar } from 'quasar'\nimport { useLang, loadLang } from '".concat(new URL("../src/ui/form/lang/index.ts", import.meta.url).pathname, "'\n\nexport default {\n setup(props, context) {\n const $q = useQuasar()\n const attrs = useAttrs()\n\n const lang = useLang()\n\n if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName)\n watch($q.lang, (val) => {\n loadLang($q.lang.isoName)\n })\n\n const variables = ref({})\n\n const functions = ref({\n // submit\n })\n\n context.expose({\n variables,\n functions\n })\n\n // return the render function\n return () =>\n h(QItem, { attrs }, [\n h(QItemSection, {}, [\n h(QItemLabel, { overline: true }, 'field'),\n h(QItemLabel, {}, 'field')\n ])\n ])\n }\n}\n"); };
@@ -35,6 +35,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  }
36
36
  };
37
37
  import { promises } from 'fs';
38
+ import { Icon, FlagIcon } from './virtualModules.js';
38
39
  var readFile = promises.readFile;
39
40
  export default function (_a) {
40
41
  var _b = _a === void 0 ? {} : _a, buildFromSrc = _b.buildFromSrc;
@@ -51,20 +52,40 @@ export default function (_a) {
51
52
  name = pkgJson.name;
52
53
  return [2 /*return*/, {
53
54
  name: "".concat(name, "-plugin"),
55
+ enforce: 'pre',
56
+ resolveId: function (id) {
57
+ if (id.includes('.flag'))
58
+ return id;
59
+ else if (id.includes('.icon'))
60
+ return id;
61
+ },
62
+ load: function (id) {
63
+ if (id.includes('.flag')) {
64
+ var locale = id.slice(0, -5);
65
+ var flag = FlagIcon(locale);
66
+ return flag;
67
+ }
68
+ else if (id.includes('.icon')) {
69
+ var iconId = id.slice(0, -5);
70
+ var icon = Icon(iconId);
71
+ return icon;
72
+ }
73
+ },
54
74
  config: function (config, _a) {
55
75
  var mode = _a.mode;
56
76
  if (mode === 'development' || buildFromSrc) {
57
77
  var alias = Object.entries(exports)
78
+ .filter(function (_a) {
79
+ var key = _a[0], val = _a[1];
80
+ return val.src;
81
+ })
58
82
  .map(function (_a) {
59
83
  var key = _a[0], val = _a[1];
60
84
  return {
61
- find: name + key.slice(1),
85
+ find: new RegExp("^".concat(name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + key.slice(1), "$")),
86
+ // name: name + key.slice(1),
62
87
  replacement: new URL('.' + val.src, import.meta.url).pathname
63
88
  };
64
- })
65
- .sort(function (a, b) {
66
- return (b.find.match(/\//g) || []).length -
67
- (a.find.match(/\//g) || []).length;
68
89
  });
69
90
  return {
70
91
  resolve: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.1.3",
3
+ "version": "0.3.0",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -27,6 +27,11 @@
27
27
  "import": "./dist/icons.js",
28
28
  "src": "./src/ui/icons/index.ts"
29
29
  },
30
+ "./form": {
31
+ "types": "./dist/types/ui/form/index.d.ts",
32
+ "import": "./dist/form.js",
33
+ "src": "./src/ui/form/index.ts"
34
+ },
30
35
  "./css": {
31
36
  "import": "./dist/style.css"
32
37
  },
@@ -41,34 +46,34 @@
41
46
  },
42
47
  "bugs": "https://github.com/simsusech/quasar-components/issues",
43
48
  "dependencies": {
44
- "validator": "^13.7.0"
49
+ "validator": "^13.9.0"
45
50
  },
46
51
  "peerDependencies": {
47
52
  "quasar": "^2.9.2"
48
53
  },
49
54
  "devDependencies": {
50
- "@types/node": "^18.7.13",
51
- "@types/validator": "^13.7.5",
52
- "@types/ws": "^8.5.3",
53
- "@typescript-eslint/eslint-plugin": "^5.34.0",
54
- "@typescript-eslint/parser": "^5.34.0",
55
- "@vitejs/plugin-vue": "^3.2.0-beta.0",
56
- "@vue/server-renderer": "^3.2.37",
57
- "eslint": "^8.22.0",
58
- "eslint-config-prettier": "^8.5.0",
55
+ "@types/node": "^18.16.3",
56
+ "@types/validator": "^13.7.15",
57
+ "@types/ws": "^8.5.4",
58
+ "@typescript-eslint/eslint-plugin": "^5.59.2",
59
+ "@typescript-eslint/parser": "^5.59.2",
60
+ "@vitejs/plugin-vue": "^4.2.1",
61
+ "@vue/server-renderer": "^3.2.47",
62
+ "eslint": "^8.39.0",
63
+ "eslint-config-prettier": "^8.8.0",
59
64
  "eslint-plugin-prettier-vue": "^4.2.0",
60
- "eslint-plugin-vue": "^9.6.0",
61
- "glob": "^8.0.3",
62
- "local-pkg": "^0.4.2",
63
- "prettier": "^2.7.1",
64
- "quasar": "^2.9.2",
65
- "rimraf": "^3.0.2",
66
- "typescript": "^4.7.4",
67
- "unplugin-vue-components": "^0.22.8",
68
- "vite": "^3.2.0-beta.0",
69
- "vue": "^3.2.37",
70
- "vue-router": "^4.1.4",
71
- "vue-tsc": "^1.0.8"
65
+ "eslint-plugin-vue": "^9.11.0",
66
+ "glob": "^10.2.2",
67
+ "local-pkg": "^0.4.3",
68
+ "prettier": "^2.8.8",
69
+ "quasar": "^2.11.10",
70
+ "rimraf": "^5.0.0",
71
+ "typescript": "^5.0.4",
72
+ "unplugin-vue-components": "^0.24.1",
73
+ "vite": "^4.3.4",
74
+ "vue": "^3.2.47",
75
+ "vue-router": "^4.1.6",
76
+ "vue-tsc": "^1.6.4"
72
77
  },
73
78
  "scripts": {
74
79
  "build:plugin": "vite build",
@@ -100,7 +100,7 @@ watch($q.lang, (val) => {
100
100
  })
101
101
 
102
102
  const steps = ['requestOtp', 'changeEmail'] as const
103
- const step = ref<typeof steps[number]>('requestOtp')
103
+ const step = ref<(typeof steps)[number]>('requestOtp')
104
104
  const email = ref('')
105
105
  const header = computed(() => lang.value.email.changeEmail)
106
106
  const emailChanged = computed(() => lang.value.email.emailChanged)
@@ -148,7 +148,7 @@ const variables = ref({
148
148
  steps
149
149
  })
150
150
  const functions = ref({
151
- goToStep: (newStep: typeof steps[number]) => (step.value = newStep)
151
+ goToStep: (newStep: (typeof steps)[number]) => (step.value = newStep)
152
152
  })
153
153
  defineExpose({
154
154
  variables,
@@ -100,7 +100,7 @@ watch($q.lang, (val) => {
100
100
  })
101
101
 
102
102
  const steps = ['requestOtp', 'changePassword'] as const
103
- const step = ref<typeof steps[number]>('requestOtp')
103
+ const step = ref<(typeof steps)[number]>('requestOtp')
104
104
  const email = ref('')
105
105
  const header = computed(() => lang.value.password.changePassword)
106
106
  const passwordChanged = computed(() => lang.value.password.passwordChanged)
@@ -148,7 +148,7 @@ const variables = ref({
148
148
  steps
149
149
  })
150
150
  const functions = ref({
151
- goToStep: (newStep: typeof steps[number]) => (step.value = newStep)
151
+ goToStep: (newStep: (typeof steps)[number]) => (step.value = newStep)
152
152
  })
153
153
  defineExpose({
154
154
  variables,
@@ -86,8 +86,7 @@ const lang: Language = {
86
86
  alreadyRegistered: 'Email address is already registered.'
87
87
  },
88
88
  verification: {
89
- slider:
90
- 'Sleep a.u.b. de onderstaande balk helemaal naar rechts tot deze groen wordt.'
89
+ slider: 'Please drag the slider below all the way to the right.'
91
90
  }
92
91
  }
93
92
 
@@ -86,8 +86,7 @@ const lang: Language = {
86
86
  alreadyRegistered: 'Email adres is al geregistreerd.'
87
87
  },
88
88
  verification: {
89
- slider:
90
- 'Please drag the slider all the way to the right until it turns green.'
89
+ slider: 'Sleep a.u.b. het onderstaande bolletje helemaal naar rechts.'
91
90
  }
92
91
  }
93
92