@simsustech/quasar-components 0.1.2 → 0.2.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 (89) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang.fe90878f.js → QSubmitButton.vue_vue_type_script_setup_true_lang.65d6ac94.js} +7 -3
  3. package/dist/authentication.js +26 -8
  4. package/dist/en-US.d5751f99.js +217 -0
  5. package/dist/flags.js +5 -215
  6. package/dist/form.js +492 -0
  7. package/dist/general.js +341 -12
  8. package/dist/icons.js +2 -2
  9. package/dist/{nl.6b0aedb7.js → nl.1df15493.js} +1 -1
  10. package/dist/nl.7a710ba4.js +35 -0
  11. package/dist/style.css +2 -2
  12. package/dist/types/ui/authentication/ConsentList.vue.d.ts +2 -2
  13. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +3 -3
  14. package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +2 -2
  15. package/dist/types/ui/authentication/LoginButton.vue.d.ts +2 -2
  16. package/dist/types/ui/authentication/LoginForm.vue.d.ts +3 -3
  17. package/dist/types/ui/authentication/OtpInput.vue.d.ts +2 -2
  18. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +10 -10
  19. package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +2 -2
  20. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +10 -10
  21. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +3 -3
  22. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +2 -2
  23. package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +2 -2
  24. package/dist/types/ui/form/BooleanItem.vue.d.ts +57 -0
  25. package/dist/types/ui/form/BooleanSelect.vue.d.ts +66 -0
  26. package/dist/types/ui/form/DateInput.vue.d.ts +61 -0
  27. package/dist/types/ui/form/FormInput.vue.d.ts +60 -0
  28. package/dist/types/ui/form/FormItem.vue.d.ts +64 -0
  29. package/dist/types/ui/form/GenderItem.vue.d.ts +57 -0
  30. package/dist/types/ui/form/GenderSelect.vue.d.ts +66 -0
  31. package/dist/types/ui/form/PostalCodeInput.vue.d.ts +67 -0
  32. package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +65 -0
  33. package/dist/types/ui/form/index.d.ts +9 -0
  34. package/dist/types/ui/form/lang/en-US.d.ts +3 -0
  35. package/dist/types/ui/form/lang/index.d.ts +68 -0
  36. package/dist/types/ui/form/lang/nl.d.ts +3 -0
  37. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +58 -0
  38. package/dist/types/ui/general/QStyledCard.vue.d.ts +2 -2
  39. package/dist/types/ui/general/QStyledLayout.vue.d.ts +2 -2
  40. package/dist/types/ui/general/QSubmitButton.vue.d.ts +21 -1
  41. package/dist/types/ui/general/ResourcePage.vue.d.ts +159 -0
  42. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +108 -0
  43. package/dist/types/ui/general/index.d.ts +3 -0
  44. package/dist/types/virtualModules.d.ts +3 -0
  45. package/dist/types/vite-plugin.d.ts +3 -1
  46. package/dist/virtualModules.d.ts +3 -0
  47. package/dist/virtualModules.js +3 -0
  48. package/dist/vite-plugin.d.ts +3 -1
  49. package/dist/vite-plugin.js +61 -25
  50. package/package.json +13 -5
  51. package/src/ui/authentication/EmailChangeForm.vue +7 -2
  52. package/src/ui/authentication/EmailChangeStepper.vue +4 -0
  53. package/src/ui/authentication/LoginForm.vue +7 -2
  54. package/src/ui/authentication/PasswordChangeForm.vue +7 -2
  55. package/src/ui/authentication/PasswordChangeStepper.vue +4 -0
  56. package/src/ui/authentication/RegisterForm.vue +7 -2
  57. package/src/ui/authentication/RequestOtpForm.vue +2 -2
  58. package/src/ui/authentication/lang/en-US.ts +1 -2
  59. package/src/ui/authentication/lang/nl.ts +1 -2
  60. package/src/ui/flags/README.md +1 -1
  61. package/src/ui/form/BooleanItem.vue +34 -0
  62. package/src/ui/form/BooleanSelect.vue +55 -0
  63. package/src/ui/form/DateInput.vue +70 -0
  64. package/src/ui/form/FormInput.vue +44 -0
  65. package/src/ui/form/FormItem.vue +50 -0
  66. package/src/ui/form/GenderItem.vue +35 -0
  67. package/src/ui/form/GenderSelect.vue +59 -0
  68. package/src/ui/form/PostalCodeInput.vue +47 -0
  69. package/src/ui/form/TelephoneNumberInput.vue +35 -0
  70. package/src/ui/form/index.ts +9 -0
  71. package/src/ui/form/lang/en-US.ts +36 -0
  72. package/src/ui/form/lang/index.ts +70 -0
  73. package/src/ui/form/lang/nl.ts +36 -0
  74. package/src/ui/general/QLanguageSelect.vue +86 -0
  75. package/src/ui/general/QStyledCard.vue +1 -1
  76. package/src/ui/general/QSubmitButton.vue +7 -2
  77. package/src/ui/general/ResourcePage.vue +121 -0
  78. package/src/ui/general/ResponsiveDialog.vue +94 -0
  79. package/src/ui/general/index.ts +3 -0
  80. package/src/ui/icons/README.md +2 -0
  81. package/src/virtualModules.ts +113 -0
  82. package/src/vite-plugin.ts +60 -17
  83. package/tsconfig.build.plugin.json +1 -1
  84. package/tsconfig.node.json +1 -1
  85. package/vite.config.ts +93 -93
  86. package/dist/types/ui/index.d.ts +0 -2
  87. package/src/ui/index.ts +0 -2
  88. /package/dist/types/ui/icons/{icons.d.ts → labels.d.ts} +0 -0
  89. /package/src/ui/icons/{icons.ts → labels.ts} +0 -0
@@ -0,0 +1,65 @@
1
+ export interface Props {
2
+ modelValue: string;
3
+ required?: boolean;
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>>> & {
10
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
12
+ $attrs: {
13
+ [x: string]: unknown;
14
+ };
15
+ $refs: {
16
+ [x: string]: unknown;
17
+ };
18
+ $slots: Readonly<{
19
+ [name: string]: import("vue").Slot | undefined;
20
+ }>;
21
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
22
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
23
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
24
+ $el: any;
25
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
26
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {}, {}, string> & {
28
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
29
+ created?: ((() => void) | (() => void)[]) | undefined;
30
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
31
+ mounted?: ((() => void) | (() => void)[]) | undefined;
32
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
33
+ updated?: ((() => void) | (() => void)[]) | undefined;
34
+ activated?: ((() => void) | (() => void)[]) | undefined;
35
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
38
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
39
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
40
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
41
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
42
+ 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;
43
+ };
44
+ $forceUpdate: () => void;
45
+ $nextTick: typeof import("vue").nextTick;
46
+ $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;
47
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
48
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
50
+ __isFragment?: undefined;
51
+ __isTeleport?: undefined;
52
+ __isSuspense?: undefined;
53
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
54
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
55
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
56
+ export default _default;
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToRuntimeProps<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
@@ -0,0 +1,9 @@
1
+ export { default as GenderSelect } from './GenderSelect.vue';
2
+ export { default as GenderItem } from './GenderItem.vue';
3
+ export { default as PostalCodeInput } from './PostalCodeInput.vue';
4
+ export { default as FormItem } from './FormItem.vue';
5
+ export { default as FormInput } from './FormInput.vue';
6
+ export { default as TelephoneNumberInput } from './TelephoneNumberInput.vue';
7
+ export { default as DateInput } from './DateInput.vue';
8
+ export { default as BooleanSelect } from './BooleanSelect.vue';
9
+ export { default as BooleanItem } from './BooleanItem.vue';
@@ -0,0 +1,3 @@
1
+ import type { Language } from '../lang';
2
+ declare const lang: Language;
3
+ export default lang;
@@ -0,0 +1,68 @@
1
+ export interface Language {
2
+ isoName: string;
3
+ yes: string;
4
+ no: string;
5
+ buttons: {
6
+ close: string;
7
+ };
8
+ fields: {
9
+ name: string;
10
+ firstName: string;
11
+ surname: string;
12
+ address: string;
13
+ postalCode: string;
14
+ city: string;
15
+ telephoneNumber: string;
16
+ };
17
+ validations: {
18
+ fieldRequired: string;
19
+ };
20
+ gender: {
21
+ gender: string;
22
+ male: string;
23
+ female: string;
24
+ other: string;
25
+ };
26
+ postalCode: {
27
+ postalCode: string;
28
+ validations: {
29
+ invalidPostalCode: string;
30
+ };
31
+ };
32
+ }
33
+ import type { Ref } from 'vue';
34
+ export declare const lang: Ref<{
35
+ isoName: string;
36
+ yes: string;
37
+ no: string;
38
+ buttons: {
39
+ close: string;
40
+ };
41
+ fields: {
42
+ name: string;
43
+ firstName: string;
44
+ surname: string;
45
+ address: string;
46
+ postalCode: string;
47
+ city: string;
48
+ telephoneNumber: string;
49
+ };
50
+ validations: {
51
+ fieldRequired: string;
52
+ };
53
+ gender: {
54
+ gender: string;
55
+ male: string;
56
+ female: string;
57
+ other: string;
58
+ };
59
+ postalCode: {
60
+ postalCode: string;
61
+ validations: {
62
+ invalidPostalCode: string;
63
+ };
64
+ };
65
+ }>;
66
+ export declare const defineLang: (lang: Language) => Language;
67
+ export declare const useLang: () => Ref<Language>;
68
+ export declare const loadLang: (isoName: string) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import type { Language } from '../lang';
2
+ declare const lang: Language;
3
+ export default lang;
@@ -0,0 +1,58 @@
1
+ import { QuasarLanguage } from 'quasar';
2
+ export interface Props {
3
+ modelValue: string;
4
+ languageImports: Record<string, () => Promise<QuasarLanguage>>;
5
+ }
6
+ declare const _default: {
7
+ new (...args: any[]): {
8
+ $: import("vue").ComponentInternalInstance;
9
+ $data: {};
10
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
11
+ $attrs: {
12
+ [x: string]: unknown;
13
+ };
14
+ $refs: {
15
+ [x: string]: unknown;
16
+ };
17
+ $slots: Readonly<{
18
+ [name: string]: import("vue").Slot | undefined;
19
+ }>;
20
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
21
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
22
+ $emit: (event: string, ...args: any[]) => void;
23
+ $el: any;
24
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
25
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
26
+ created?: ((() => void) | (() => void)[]) | undefined;
27
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
28
+ mounted?: ((() => void) | (() => void)[]) | undefined;
29
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
30
+ updated?: ((() => void) | (() => void)[]) | undefined;
31
+ activated?: ((() => void) | (() => void)[]) | undefined;
32
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
33
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
34
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
35
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
36
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
37
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
38
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
39
+ 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;
40
+ };
41
+ $forceUpdate: () => void;
42
+ $nextTick: typeof import("vue").nextTick;
43
+ $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;
44
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
45
+ __isFragment?: undefined;
46
+ __isTeleport?: undefined;
47
+ __isSuspense?: undefined;
48
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
49
+ export default _default;
50
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
+ type __VLS_TypePropsToRuntimeProps<T> = {
52
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
53
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
+ } : {
55
+ type: import('vue').PropType<T[K]>;
56
+ required: true;
57
+ };
58
+ };
@@ -63,8 +63,8 @@ declare const _default: {
63
63
  };
64
64
  });
65
65
  export default _default;
66
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
67
- declare type __VLS_TypePropsToRuntimeProps<T> = {
66
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
67
+ type __VLS_TypePropsToRuntimeProps<T> = {
68
68
  [K in keyof T]-?: {} extends Pick<T, K> ? {
69
69
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
70
70
  } : {
@@ -58,8 +58,8 @@ declare const _default: {
58
58
  };
59
59
  });
60
60
  export default _default;
61
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
- declare type __VLS_TypePropsToRuntimeProps<T> = {
61
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
+ type __VLS_TypePropsToRuntimeProps<T> = {
63
63
  [K in keyof T]-?: {} extends Pick<T, K> ? {
64
64
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
65
65
  } : {
@@ -2,12 +2,14 @@ export interface Props {
2
2
  loading?: boolean;
3
3
  useForm?: boolean;
4
4
  isNextButton?: boolean;
5
+ color?: string;
5
6
  }
6
7
  declare const _default: {
7
8
  new (...args: any[]): {
8
9
  $: import("vue").ComponentInternalInstance;
9
10
  $data: {};
10
11
  $props: Partial<{
12
+ color: string;
11
13
  loading: boolean;
12
14
  useForm: boolean;
13
15
  isNextButton: boolean;
@@ -22,12 +24,16 @@ declare const _default: {
22
24
  isNextButton: {
23
25
  type: BooleanConstructor;
24
26
  };
27
+ color: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
25
31
  }>> & {
26
32
  onSubmit?: ((args_0: {
27
33
  value?: string | undefined;
28
34
  done: () => void;
29
35
  }) => any) | undefined;
30
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "useForm" | "isNextButton">;
36
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "color" | "loading" | "useForm" | "isNextButton">;
31
37
  $attrs: {
32
38
  [x: string]: unknown;
33
39
  };
@@ -55,6 +61,10 @@ declare const _default: {
55
61
  isNextButton: {
56
62
  type: BooleanConstructor;
57
63
  };
64
+ color: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
58
68
  }>> & {
59
69
  onSubmit?: ((args_0: {
60
70
  value?: string | undefined;
@@ -66,6 +76,7 @@ declare const _default: {
66
76
  done: () => void;
67
77
  }) => void;
68
78
  }, string, {
79
+ color: string;
69
80
  loading: boolean;
70
81
  useForm: boolean;
71
82
  isNextButton: boolean;
@@ -100,6 +111,10 @@ declare const _default: {
100
111
  isNextButton: {
101
112
  type: BooleanConstructor;
102
113
  };
114
+ color: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
103
118
  }>> & {
104
119
  onSubmit?: ((args_0: {
105
120
  value?: string | undefined;
@@ -120,6 +135,10 @@ declare const _default: {
120
135
  isNextButton: {
121
136
  type: BooleanConstructor;
122
137
  };
138
+ color: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
123
142
  }>> & {
124
143
  onSubmit?: ((args_0: {
125
144
  value?: string | undefined;
@@ -131,6 +150,7 @@ declare const _default: {
131
150
  done: () => void;
132
151
  }) => void;
133
152
  }, string, {
153
+ color: string;
134
154
  loading: boolean;
135
155
  useForm: boolean;
136
156
  isNextButton: boolean;
@@ -0,0 +1,159 @@
1
+ export interface Props {
2
+ type?: 'create' | 'update';
3
+ disabled?: boolean;
4
+ }
5
+ declare const _default: {
6
+ new (...args: any[]): {
7
+ $: import("vue").ComponentInternalInstance;
8
+ $data: {};
9
+ $props: Partial<{
10
+ type: "create" | "update";
11
+ disabled: boolean;
12
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ type: string;
14
+ disabled: boolean;
15
+ }>>> & {
16
+ onCreate?: ((args_0: {
17
+ data?: any;
18
+ done: (success?: boolean) => void;
19
+ }) => any) | undefined;
20
+ onUpdate?: ((args_0: {
21
+ data?: any;
22
+ done: (success?: boolean) => void;
23
+ }) => any) | undefined;
24
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled">;
25
+ $attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ $refs: {
29
+ [x: string]: unknown;
30
+ };
31
+ $slots: Readonly<{
32
+ [name: string]: import("vue").Slot | undefined;
33
+ }>;
34
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
35
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
36
+ $emit: ((event: "create", args_0: {
37
+ data?: any;
38
+ done: (success?: boolean) => void;
39
+ }) => void) & ((event: "update", args_0: {
40
+ data?: any;
41
+ done: (success?: boolean) => void;
42
+ }) => void);
43
+ $el: any;
44
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
45
+ type: string;
46
+ disabled: boolean;
47
+ }>>> & {
48
+ onCreate?: ((args_0: {
49
+ data?: any;
50
+ done: (success?: boolean) => void;
51
+ }) => any) | undefined;
52
+ onUpdate?: ((args_0: {
53
+ data?: any;
54
+ done: (success?: boolean) => void;
55
+ }) => any) | undefined;
56
+ }, {
57
+ variables: import("vue").Ref<{}>;
58
+ functions: import("vue").Ref<{}>;
59
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
+ create: (payload_0: {
61
+ data?: any;
62
+ done: (success?: boolean) => void;
63
+ }) => void;
64
+ } & {
65
+ update: (payload_0: {
66
+ data?: any;
67
+ done: (success?: boolean) => void;
68
+ }) => void;
69
+ }, string, {
70
+ type: "create" | "update";
71
+ disabled: 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<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
93
+ type: string;
94
+ disabled: boolean;
95
+ }>>> & {
96
+ onCreate?: ((args_0: {
97
+ data?: any;
98
+ done: (success?: boolean) => void;
99
+ }) => any) | undefined;
100
+ onUpdate?: ((args_0: {
101
+ data?: any;
102
+ done: (success?: boolean) => void;
103
+ }) => any) | undefined;
104
+ } & import("vue").ShallowUnwrapRef<{
105
+ variables: import("vue").Ref<{}>;
106
+ functions: import("vue").Ref<{}>;
107
+ }> & {} & import("vue").ComponentCustomProperties & {};
108
+ __isFragment?: undefined;
109
+ __isTeleport?: undefined;
110
+ __isSuspense?: undefined;
111
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
112
+ type: string;
113
+ disabled: boolean;
114
+ }>>> & {
115
+ onCreate?: ((args_0: {
116
+ data?: any;
117
+ done: (success?: boolean) => void;
118
+ }) => any) | undefined;
119
+ onUpdate?: ((args_0: {
120
+ data?: any;
121
+ done: (success?: boolean) => void;
122
+ }) => any) | undefined;
123
+ }, {
124
+ variables: import("vue").Ref<{}>;
125
+ functions: import("vue").Ref<{}>;
126
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
127
+ create: (payload_0: {
128
+ data?: any;
129
+ done: (success?: boolean) => void;
130
+ }) => void;
131
+ } & {
132
+ update: (payload_0: {
133
+ data?: any;
134
+ done: (success?: boolean) => void;
135
+ }) => void;
136
+ }, string, {
137
+ type: "create" | "update";
138
+ disabled: boolean;
139
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
140
+ $slots: {
141
+ default: (_: {}) => any;
142
+ header: (_: {}) => any;
143
+ };
144
+ });
145
+ export default _default;
146
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
147
+ type __VLS_TypePropsToRuntimeProps<T> = {
148
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
149
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
150
+ } : {
151
+ type: import('vue').PropType<T[K]>;
152
+ required: true;
153
+ };
154
+ };
155
+ type __VLS_WithDefaults<P, D> = {
156
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
157
+ default: D[K];
158
+ } : P[K];
159
+ };
@@ -0,0 +1,108 @@
1
+ export interface Props {
2
+ display?: boolean;
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>>> & {
9
+ onSubmit?: ((args_0: {
10
+ done: (success?: boolean) => void;
11
+ }) => any) | undefined;
12
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import("vue").Slot | undefined;
21
+ }>;
22
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
23
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
24
+ $emit: (event: "submit", args_0: {
25
+ done: (success?: boolean) => void;
26
+ }) => void;
27
+ $el: any;
28
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
29
+ onSubmit?: ((args_0: {
30
+ done: (success?: boolean) => void;
31
+ }) => any) | undefined;
32
+ }, {
33
+ variables: import("vue").Ref<{}>;
34
+ functions: import("vue").Ref<{
35
+ open: () => boolean;
36
+ close: () => boolean;
37
+ toggle: () => boolean;
38
+ }>;
39
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ submit: (payload_0: {
41
+ done: (success?: boolean) => void;
42
+ }) => void;
43
+ }, string, {}, {}, string> & {
44
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
45
+ created?: ((() => void) | (() => void)[]) | undefined;
46
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
47
+ mounted?: ((() => void) | (() => void)[]) | undefined;
48
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
49
+ updated?: ((() => void) | (() => void)[]) | undefined;
50
+ activated?: ((() => void) | (() => void)[]) | undefined;
51
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
52
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
53
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
54
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
55
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
56
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
57
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
58
+ 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;
59
+ };
60
+ $forceUpdate: () => void;
61
+ $nextTick: typeof import("vue").nextTick;
62
+ $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;
63
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
64
+ onSubmit?: ((args_0: {
65
+ done: (success?: boolean) => void;
66
+ }) => any) | undefined;
67
+ } & import("vue").ShallowUnwrapRef<{
68
+ variables: import("vue").Ref<{}>;
69
+ functions: import("vue").Ref<{
70
+ open: () => boolean;
71
+ close: () => boolean;
72
+ toggle: () => boolean;
73
+ }>;
74
+ }> & {} & import("vue").ComponentCustomProperties & {};
75
+ __isFragment?: undefined;
76
+ __isTeleport?: undefined;
77
+ __isSuspense?: undefined;
78
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
79
+ onSubmit?: ((args_0: {
80
+ done: (success?: boolean) => void;
81
+ }) => any) | undefined;
82
+ }, {
83
+ variables: import("vue").Ref<{}>;
84
+ functions: import("vue").Ref<{
85
+ open: () => boolean;
86
+ close: () => boolean;
87
+ toggle: () => boolean;
88
+ }>;
89
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
+ submit: (payload_0: {
91
+ done: (success?: boolean) => void;
92
+ }) => void;
93
+ }, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
94
+ $slots: {
95
+ title: (_: {}) => any;
96
+ default: (_: {}) => any;
97
+ };
98
+ });
99
+ export default _default;
100
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
101
+ type __VLS_TypePropsToRuntimeProps<T> = {
102
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
103
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
104
+ } : {
105
+ type: import('vue').PropType<T[K]>;
106
+ required: true;
107
+ };
108
+ };
@@ -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';
@@ -0,0 +1,3 @@
1
+ export declare const FlagIcon: (locale: string) => string;
2
+ export declare const Icon: (icon: string) => string;
3
+ export declare const FormItem: (field: string) => string;
@@ -1,2 +1,4 @@
1
1
  import type { Plugin } from 'vite';
2
- export default function (): Promise<Plugin>;
2
+ export default function ({ buildFromSrc }?: {
3
+ buildFromSrc?: boolean;
4
+ }): Promise<Plugin>;
@@ -0,0 +1,3 @@
1
+ export declare const FlagIcon: (locale: string) => string;
2
+ export declare const Icon: (icon: string) => string;
3
+ export declare const FormItem: (field: string) => string;
@@ -0,0 +1,3 @@
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"); };
@@ -1,2 +1,4 @@
1
1
  import type { Plugin } from 'vite';
2
- export default function (): Promise<Plugin>;
2
+ export default function ({ buildFromSrc }?: {
3
+ buildFromSrc?: boolean;
4
+ }): Promise<Plugin>;