vuiii 1.0.0-beta.6 → 1.0.0-beta.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 (35) hide show
  1. package/dist/components/Breadcrumbs.vue.d.ts +79 -15
  2. package/dist/components/Button.vue.d.ts +94 -69
  3. package/dist/components/Checkbox.vue.d.ts +91 -25
  4. package/dist/components/CheckboxGroup.vue.d.ts +92 -57
  5. package/dist/components/Form.vue.d.ts +184 -82
  6. package/dist/components/FormFields.vue.d.ts +99 -50
  7. package/dist/components/FormGroup.vue.d.ts +85 -45
  8. package/dist/components/Icon.vue.d.ts +59 -14
  9. package/dist/components/Input.vue.d.ts +109 -55
  10. package/dist/components/Radio.vue.d.ts +91 -61
  11. package/dist/components/Select.vue.d.ts +147 -82
  12. package/dist/components/Table.vue.d.ts +69 -48
  13. package/dist/components/Textarea.vue.d.ts +77 -18
  14. package/dist/components/modal/ModalLayout.vue.d.ts +1 -1
  15. package/dist/components/modal/ModalStack.vue.d.ts +2 -2
  16. package/dist/hooks/useOnClickOutside.d.ts +2 -0
  17. package/dist/hooks/useOnKeyPress.d.ts +1 -0
  18. package/dist/hooks/useRouteQuery.d.ts +17 -0
  19. package/dist/hooks/useSubmitAction.d.ts +1 -7
  20. package/dist/icons/mail.vue.d.ts +2 -0
  21. package/dist/index.d.ts +7 -6
  22. package/dist/stories/Button.stories.d.ts +449 -0
  23. package/dist/stories/Icon.stories.d.ts +128 -0
  24. package/dist/stories/Input.stories.d.ts +422 -0
  25. package/dist/stories/icons.d.ts +1 -0
  26. package/dist/style.css +1 -1
  27. package/dist/types.d.ts +51 -4
  28. package/dist/utils/generateId.d.ts +1 -0
  29. package/dist/utils/iconsResolver.d.ts +5 -0
  30. package/dist/utils/normalizeOptions.d.ts +11 -8
  31. package/dist/validations/validator.d.ts +2 -0
  32. package/dist/vuiii.mjs +1488 -0
  33. package/dist/vuiii.umd.js +1 -1
  34. package/package.json +24 -9
  35. package/dist/vuiii.es.js +0 -1882
@@ -1,87 +1,189 @@
1
- export declare type FormStructure<T = any> = {
2
- title?: string;
3
- separator?: boolean;
4
- fields: FormFieldsStructure<T>;
5
- }[];
6
- import { PropType } from 'vue';
7
1
  import { RouteLocationRaw } from 'vue-router';
8
- import { FormFieldsStructure } from './FormFields.vue';
9
- declare const _default: import("vue").DefineComponent<{
10
- structure: {
11
- type: PropType<FormStructure<any>>;
12
- default: () => {};
13
- };
14
- modelValue: {
15
- type: PropType<any>;
16
- default: () => undefined;
17
- };
18
- errors: {
19
- type: PropType<Record<string, string | boolean | string[]>>;
20
- default: () => {};
21
- };
22
- submit: {
23
- type: PropType<(modelValue: any) => void>;
24
- default: undefined;
25
- };
26
- submitLabel: {
27
- type: PropType<string>;
28
- default: string;
29
- };
30
- cancel: {
31
- type: PropType<RouteLocationRaw | (() => void)>;
32
- default: undefined;
33
- };
34
- cancelLabel: {
35
- type: PropType<string>;
36
- default: string;
37
- };
38
- submitting: BooleanConstructor;
39
- }, unknown, unknown, {}, {
40
- handleSubmit(): void;
41
- handleCancel(): void;
42
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "submit" | "cancel")[], "update:modelValue" | "change" | "submit" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
- structure: {
44
- type: PropType<FormStructure<any>>;
45
- default: () => {};
46
- };
47
- modelValue: {
48
- type: PropType<any>;
49
- default: () => undefined;
50
- };
51
- errors: {
52
- type: PropType<Record<string, string | boolean | string[]>>;
53
- default: () => {};
54
- };
55
- submit: {
56
- type: PropType<(modelValue: any) => void>;
57
- default: undefined;
58
- };
59
- submitLabel: {
60
- type: PropType<string>;
61
- default: string;
62
- };
63
- cancel: {
64
- type: PropType<RouteLocationRaw | (() => void)>;
65
- default: undefined;
66
- };
67
- cancelLabel: {
68
- type: PropType<string>;
69
- default: string;
70
- };
71
- submitting: BooleanConstructor;
72
- }>> & {
73
- onChange?: ((...args: any[]) => any) | undefined;
74
- onSubmit?: ((...args: any[]) => any) | undefined;
75
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
76
- onCancel?: ((...args: any[]) => any) | undefined;
77
- }, {
78
- modelValue: any;
79
- errors: Record<string, string | boolean | string[]>;
80
- submit: (modelValue: any) => void;
81
- cancel: RouteLocationRaw | (() => void);
2
+ import { FormStructure } from '@/types';
3
+ declare const _default: {
4
+ new (...args: any[]): {
5
+ $: import("vue").ComponentInternalInstance;
6
+ $data: {};
7
+ $props: Partial<{
8
+ errors: Record<string, any>;
9
+ structure: FormStructure<any>;
10
+ submit: (modelValue: any) => void;
11
+ submitLabel: string;
12
+ cancel: (() => void) | RouteLocationRaw;
13
+ cancelLabel: string;
14
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ structure: FormStructure<any>;
16
+ modelValue: unknown;
17
+ errors?: Record<string, any> | undefined;
18
+ submit?: ((modelValue: any) => void) | undefined;
19
+ submitLabel?: string | undefined;
20
+ cancel?: RouteLocationRaw | (() => void) | undefined;
21
+ cancelLabel: string;
22
+ submitting: boolean;
23
+ }>, {
24
+ structure: () => never[];
25
+ errors: () => {};
26
+ submit: undefined;
27
+ submitLabel: string;
28
+ cancel: undefined;
29
+ cancelLabel: string;
30
+ }>>> & {
31
+ onChange?: ((change: Record<string, unknown>) => any) | undefined;
32
+ onSubmit?: (() => any) | undefined;
33
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
34
+ onCancel?: (() => any) | undefined;
35
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "errors" | "structure" | "submit" | "submitLabel" | "cancel" | "cancelLabel">;
36
+ $attrs: {
37
+ [x: string]: unknown;
38
+ };
39
+ $refs: {
40
+ [x: string]: unknown;
41
+ };
42
+ $slots: Readonly<{
43
+ [name: string]: import("vue").Slot | undefined;
44
+ }>;
45
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
46
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
47
+ $emit: ((event: "update:modelValue", value: unknown) => void) & ((event: "submit") => void) & ((event: "cancel") => void) & ((event: "change", change: Record<string, unknown>) => void);
48
+ $el: any;
49
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
50
+ structure: FormStructure<any>;
51
+ modelValue: unknown;
52
+ errors?: Record<string, any> | undefined;
53
+ submit?: ((modelValue: any) => void) | undefined;
54
+ submitLabel?: string | undefined;
55
+ cancel?: RouteLocationRaw | (() => void) | undefined;
56
+ cancelLabel: string;
57
+ submitting: boolean;
58
+ }>, {
59
+ structure: () => never[];
60
+ errors: () => {};
61
+ submit: undefined;
62
+ submitLabel: string;
63
+ cancel: undefined;
64
+ cancelLabel: string;
65
+ }>>> & {
66
+ onChange?: ((change: Record<string, unknown>) => any) | undefined;
67
+ onSubmit?: (() => any) | undefined;
68
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
69
+ onCancel?: (() => any) | undefined;
70
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
71
+ "update:modelValue": (value: unknown) => void;
72
+ } & {
73
+ change: (change: Record<string, unknown>) => void;
74
+ } & {
75
+ submit: () => void;
76
+ } & {
77
+ cancel: () => void;
78
+ }, string, {
79
+ errors: Record<string, any>;
80
+ structure: FormStructure<any>;
81
+ submit: (modelValue: any) => void;
82
+ submitLabel: string;
83
+ cancel: (() => void) | RouteLocationRaw;
84
+ cancelLabel: string;
85
+ }, {}, string> & {
86
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
87
+ created?: ((() => void) | (() => void)[]) | undefined;
88
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
89
+ mounted?: ((() => void) | (() => void)[]) | undefined;
90
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
91
+ updated?: ((() => void) | (() => void)[]) | undefined;
92
+ activated?: ((() => void) | (() => void)[]) | undefined;
93
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
94
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
95
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
96
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
97
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
98
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
99
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
100
+ 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;
101
+ };
102
+ $forceUpdate: () => void;
103
+ $nextTick: typeof import("vue").nextTick;
104
+ $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;
105
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
106
+ structure: FormStructure<any>;
107
+ modelValue: unknown;
108
+ errors?: Record<string, any> | undefined;
109
+ submit?: ((modelValue: any) => void) | undefined;
110
+ submitLabel?: string | undefined;
111
+ cancel?: RouteLocationRaw | (() => void) | undefined;
112
+ cancelLabel: string;
113
+ submitting: boolean;
114
+ }>, {
115
+ structure: () => never[];
116
+ errors: () => {};
117
+ submit: undefined;
118
+ submitLabel: string;
119
+ cancel: undefined;
120
+ cancelLabel: string;
121
+ }>>> & {
122
+ onChange?: ((change: Record<string, unknown>) => any) | undefined;
123
+ onSubmit?: (() => any) | undefined;
124
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
125
+ onCancel?: (() => any) | undefined;
126
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
127
+ __isFragment?: undefined;
128
+ __isTeleport?: undefined;
129
+ __isSuspense?: undefined;
130
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
82
131
  structure: FormStructure<any>;
83
- submitLabel: string;
132
+ modelValue: unknown;
133
+ errors?: Record<string, any> | undefined;
134
+ submit?: ((modelValue: any) => void) | undefined;
135
+ submitLabel?: string | undefined;
136
+ cancel?: RouteLocationRaw | (() => void) | undefined;
84
137
  cancelLabel: string;
85
138
  submitting: boolean;
86
- }>;
139
+ }>, {
140
+ structure: () => never[];
141
+ errors: () => {};
142
+ submit: undefined;
143
+ submitLabel: string;
144
+ cancel: undefined;
145
+ cancelLabel: string;
146
+ }>>> & {
147
+ onChange?: ((change: Record<string, unknown>) => any) | undefined;
148
+ onSubmit?: (() => any) | undefined;
149
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
150
+ onCancel?: (() => any) | undefined;
151
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
152
+ "update:modelValue": (value: unknown) => void;
153
+ } & {
154
+ change: (change: Record<string, unknown>) => void;
155
+ } & {
156
+ submit: () => void;
157
+ } & {
158
+ cancel: () => void;
159
+ }, string, {
160
+ errors: Record<string, any>;
161
+ structure: FormStructure<any>;
162
+ submit: (modelValue: any) => void;
163
+ submitLabel: string;
164
+ cancel: (() => void) | RouteLocationRaw;
165
+ cancelLabel: string;
166
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
167
+ $slots: {
168
+ buttons: (_: {
169
+ cancel: RouteLocationRaw | (() => void) | undefined;
170
+ submit: ((modelValue: any) => void) | undefined;
171
+ submitting: boolean;
172
+ }) => any;
173
+ };
174
+ });
87
175
  export default _default;
176
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
177
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
178
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
179
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
180
+ } : {
181
+ type: import('vue').PropType<T[K]>;
182
+ required: true;
183
+ };
184
+ };
185
+ declare type __VLS_WithDefaults<P, D> = {
186
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
187
+ default: D[K];
188
+ } : P[K];
189
+ };
@@ -1,52 +1,101 @@
1
- import { AsyncComponentLoader, Component, PropType } from 'vue';
2
- export declare type FormFieldValue = {
3
- getter: (modelValue: any) => unknown;
4
- setter: (value: unknown, modelValue: any) => void;
5
- };
6
- export declare type FormField = {
7
- label?: string;
8
- description?: string;
9
- hint?: string;
10
- required?: boolean;
11
- component: string | Component | AsyncComponentLoader;
12
- props?: Record<string, unknown>;
13
- value?: FormFieldValue;
14
- };
15
- export declare type FormFieldsStructure<T extends any = any> = Record<keyof T | string, FormField>;
16
- declare const _default: import("vue").DefineComponent<{
17
- fields: {
18
- type: PropType<FormFieldsStructure<any>>;
19
- default: () => {};
20
- };
21
- modelValue: {
22
- type: PropType<any>;
23
- default: () => {};
24
- };
25
- errors: {
26
- type: PropType<Record<string, string | boolean | string[]>>;
27
- default: () => {};
28
- };
29
- }, unknown, unknown, {}, {
30
- getFieldValue(name: string): unknown;
31
- setFieldValue(name: string, value: unknown): void;
32
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- fields: {
34
- type: PropType<FormFieldsStructure<any>>;
35
- default: () => {};
36
- };
37
- modelValue: {
38
- type: PropType<any>;
39
- default: () => {};
40
- };
41
- errors: {
42
- type: PropType<Record<string, string | boolean | string[]>>;
43
- default: () => {};
44
- };
45
- }>> & {
46
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
- }, {
1
+ import { FormFieldsStructure } from '@/types';
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ errors: Record<string, any>;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ fields: FormFieldsStructure;
10
+ modelValue: any;
11
+ errors?: Record<string, any> | undefined;
12
+ }>, {
13
+ errors: () => {};
14
+ }>>> & {
15
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "errors">;
17
+ $attrs: {
18
+ [x: string]: unknown;
19
+ };
20
+ $refs: {
21
+ [x: string]: unknown;
22
+ };
23
+ $slots: Readonly<{
24
+ [name: string]: import("vue").Slot | undefined;
25
+ }>;
26
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
27
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
28
+ $emit: (event: "update:modelValue", value: any) => void;
29
+ $el: any;
30
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
31
+ fields: FormFieldsStructure;
32
+ modelValue: any;
33
+ errors?: Record<string, any> | undefined;
34
+ }>, {
35
+ errors: () => {};
36
+ }>>> & {
37
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
38
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ "update:modelValue": (value: any) => void;
40
+ }, string, {
41
+ errors: Record<string, any>;
42
+ }, {}, string> & {
43
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
44
+ created?: ((() => void) | (() => void)[]) | undefined;
45
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
46
+ mounted?: ((() => void) | (() => void)[]) | undefined;
47
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
48
+ updated?: ((() => void) | (() => void)[]) | undefined;
49
+ activated?: ((() => void) | (() => void)[]) | undefined;
50
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
51
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
52
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
53
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
54
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
55
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
56
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
57
+ 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;
58
+ };
59
+ $forceUpdate: () => void;
60
+ $nextTick: typeof import("vue").nextTick;
61
+ $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;
62
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
63
+ fields: FormFieldsStructure;
64
+ modelValue: any;
65
+ errors?: Record<string, any> | undefined;
66
+ }>, {
67
+ errors: () => {};
68
+ }>>> & {
69
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
70
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
71
+ __isFragment?: undefined;
72
+ __isTeleport?: undefined;
73
+ __isSuspense?: undefined;
74
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
75
+ fields: FormFieldsStructure;
48
76
  modelValue: any;
49
- fields: FormFieldsStructure<any>;
50
- errors: Record<string, string | boolean | string[]>;
51
- }>;
77
+ errors?: Record<string, any> | undefined;
78
+ }>, {
79
+ errors: () => {};
80
+ }>>> & {
81
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
82
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
+ "update:modelValue": (value: any) => void;
84
+ }, string, {
85
+ errors: Record<string, any>;
86
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
52
87
  export default _default;
88
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
89
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
90
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
91
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
92
+ } : {
93
+ type: import('vue').PropType<T[K]>;
94
+ required: true;
95
+ };
96
+ };
97
+ declare type __VLS_WithDefaults<P, D> = {
98
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
99
+ default: D[K];
100
+ } : P[K];
101
+ };
@@ -1,47 +1,87 @@
1
- import { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- label: {
4
- type: StringConstructor;
5
- default: string;
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ label?: string | undefined;
7
+ for?: string | undefined;
8
+ required?: boolean | undefined;
9
+ error?: string | boolean | undefined;
10
+ description?: string | undefined;
11
+ hint?: string | 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: string, ...args: any[]) => void;
25
+ $el: any;
26
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
27
+ label?: string | undefined;
28
+ for?: string | undefined;
29
+ required?: boolean | undefined;
30
+ error?: string | boolean | undefined;
31
+ description?: string | undefined;
32
+ hint?: string | undefined;
33
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
34
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
35
+ created?: ((() => void) | (() => void)[]) | undefined;
36
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
37
+ mounted?: ((() => void) | (() => void)[]) | undefined;
38
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
39
+ updated?: ((() => void) | (() => void)[]) | undefined;
40
+ activated?: ((() => void) | (() => void)[]) | undefined;
41
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
43
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
44
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
45
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
46
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
48
+ 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;
49
+ };
50
+ $forceUpdate: () => void;
51
+ $nextTick: typeof import("vue").nextTick;
52
+ $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;
53
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
54
+ label?: string | undefined;
55
+ for?: string | undefined;
56
+ required?: boolean | undefined;
57
+ error?: string | boolean | undefined;
58
+ description?: string | undefined;
59
+ hint?: string | undefined;
60
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
61
+ __isFragment?: undefined;
62
+ __isTeleport?: undefined;
63
+ __isSuspense?: undefined;
64
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
65
+ label?: string | undefined;
66
+ for?: string | undefined;
67
+ required?: boolean | undefined;
68
+ error?: string | boolean | undefined;
69
+ description?: string | undefined;
70
+ hint?: string | undefined;
71
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
72
+ $slots: {
73
+ description: (_: {}) => any;
74
+ default: (_: {}) => any;
75
+ hint: (_: {}) => any;
6
76
  };
7
- error: {
8
- type: PropType<string | boolean | string[]>;
9
- default: string;
10
- };
11
- description: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- hint: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- required: BooleanConstructor;
20
- }, unknown, unknown, {
21
- errorMessage(): string;
22
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
- label: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- error: {
28
- type: PropType<string | boolean | string[]>;
29
- default: string;
30
- };
31
- description: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- hint: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
- required: BooleanConstructor;
40
- }>>, {
41
- description: string;
42
- required: boolean;
43
- label: string;
44
- error: string | boolean | string[];
45
- hint: string;
46
- }>;
77
+ });
47
78
  export default _default;
79
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
80
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
81
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
82
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
83
+ } : {
84
+ type: import('vue').PropType<T[K]>;
85
+ required: true;
86
+ };
87
+ };
@@ -1,16 +1,61 @@
1
- import { AsyncComponentLoader, Component } from 'vue';
2
- declare type IconComponent = string | Component | AsyncComponentLoader | undefined;
3
- declare type IconResolver = (name: string) => IconComponent;
4
- export declare function registerCustomIconResolver(resolver: IconResolver): void;
5
- declare const _default: import("vue").DefineComponent<{
6
- name: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
- name: {
12
- type: StringConstructor;
1
+ declare const _default: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ name: string;
7
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
8
+ $attrs: {
9
+ [x: string]: unknown;
10
+ };
11
+ $refs: {
12
+ [x: string]: unknown;
13
+ };
14
+ $slots: Readonly<{
15
+ [name: string]: import("vue").Slot | undefined;
16
+ }>;
17
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
18
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
19
+ $emit: (event: string, ...args: any[]) => void;
20
+ $el: any;
21
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
22
+ name: string;
23
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
24
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
25
+ created?: ((() => void) | (() => void)[]) | undefined;
26
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
27
+ mounted?: ((() => void) | (() => void)[]) | undefined;
28
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
29
+ updated?: ((() => void) | (() => void)[]) | undefined;
30
+ activated?: ((() => void) | (() => void)[]) | undefined;
31
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
32
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
33
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
34
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
35
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
36
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
37
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
38
+ 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;
39
+ };
40
+ $forceUpdate: () => void;
41
+ $nextTick: typeof import("vue").nextTick;
42
+ $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;
43
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
44
+ name: string;
45
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
46
+ __isFragment?: undefined;
47
+ __isTeleport?: undefined;
48
+ __isSuspense?: undefined;
49
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
50
+ name: string;
51
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
52
+ export default _default;
53
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
13
59
  required: true;
14
60
  };
15
- }>>, {}>;
16
- export default _default;
61
+ };