@solfacil/girassol 0.7.0 → 0.8.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.
- package/cli/build/cli.js +68 -0
- package/cli/build/commands/create:component.js +136 -0
- package/cli/build/commands/generate:plugin.js +109 -0
- package/cli/build/commands/generate:types.js +76 -0
- package/cli/build/commands/girassol-cli.js +52 -0
- package/cli/build/extensions/cli-extension.js +17 -0
- package/cli/build/templates/components.d.ts.ejs +1 -0
- package/cli/build/templates/nuxt-plugin.ejs +8 -0
- package/cli/build/templates/vitesse-plugin.ejs +8 -0
- package/cli/build/templates/vue-plugin.ejs +5 -0
- package/cli/build/templates/windi.config.ts.ejs +3 -0
- package/cli/build/types/cli.d.ts +1 -0
- package/cli/build/types/commands/create:component.d.ts +1 -0
- package/cli/build/types/commands/generate:plugin.d.ts +1 -0
- package/cli/build/types/commands/generate:types.d.ts +7 -0
- package/cli/build/types/commands/girassol-cli.d.ts +1 -0
- package/cli/build/types/extensions/cli-extension.d.ts +1 -0
- package/cli/build/types/types.d.ts +0 -0
- package/cli/build/types.js +2 -0
- package/dist/components.d.ts +4 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2953 -2628
- package/dist/girassol.umd.js +9 -9
- package/dist/style.css +1 -1
- package/dist/types/components/empty-state/EmptyState.vue.d.ts +97 -0
- package/dist/types/components/empty-state/empty-state.spec.d.ts +1 -0
- package/dist/types/components/empty-state/index.d.ts +2 -0
- package/dist/types/components/empty-state/types.d.ts +7 -0
- package/dist/types/components/filters/chip/removable-chip/RemovableChip.vue.d.ts +4 -4
- package/dist/types/components/forms/button/button/Button.vue.d.ts +4 -4
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +81 -13
- package/dist/types/components/forms/checkbox/checkbox-group/CheckboxGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +91 -15
- package/dist/types/components/forms/inputs/input-password/InputPassword.vue.d.ts +107 -21
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +121 -33
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +78 -12
- package/dist/types/components/forms/radio/radio-group/RadioGroup.vue.d.ts +4 -20
- package/dist/types/components/forms/select/ListOption.vue.d.ts +16 -60
- package/dist/types/components/forms/select/Select.vue.d.ts +23 -21
- package/dist/types/components/forms/select/types.d.ts +2 -2
- package/dist/types/components/forms/switch/Switch.vue.d.ts +107 -20
- package/dist/types/components/informations/tag/Tag.vue.d.ts +4 -4
- package/dist/types/components/list/ListItem.vue.d.ts +17 -9
- package/dist/types/components/list/types.d.ts +2 -2
- package/dist/types/components/loader/CircleLoader.vue.d.ts +72 -10
- package/dist/types/components/pagination/Pagination.vue.d.ts +190 -0
- package/dist/types/components/pagination/index.d.ts +2 -0
- package/dist/types/components/pagination/pagination.spec.d.ts +1 -0
- package/dist/types/components/pagination/types.d.ts +14 -0
- package/dist/types/components/tabs/TabItem.vue.d.ts +83 -0
- package/dist/types/components/tabs/Tabs.vue.d.ts +133 -0
- package/dist/types/components/tabs/index.d.ts +2 -0
- package/dist/types/components/tabs/tabs.spec.d.ts +1 -0
- package/dist/types/components/tabs/types.d.ts +13 -0
- package/dist/types/composables/use-navigate/index.d.ts +3 -6
- package/dist/types/composables/use-navigate/types.d.ts +8 -0
- package/dist/types/composables/use-validate-field/index.d.ts +3 -3
- package/dist/types/composables/use-validate-field/types.d.ts +4 -8
- package/dist/types/index.d.ts +2119 -847
- package/package.json +41 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListItem } from './types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -16,7 +16,9 @@ declare const _default: {
|
|
|
16
16
|
fallbackValue: ListItem['fallbackValue'];
|
|
17
17
|
setFixedColumnSize: ListItem['setFixedColumnSize'];
|
|
18
18
|
sortPositions: ListItem['sortPositions'];
|
|
19
|
-
}>>> &
|
|
19
|
+
}>>> & {
|
|
20
|
+
"onListitem:click"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
20
22
|
$attrs: {
|
|
21
23
|
[x: string]: unknown;
|
|
22
24
|
};
|
|
@@ -28,7 +30,7 @@ declare const _default: {
|
|
|
28
30
|
}>;
|
|
29
31
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
30
32
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
31
|
-
$emit: (event:
|
|
33
|
+
$emit: (event: "listitem:click", ...args: any[]) => void;
|
|
32
34
|
$el: any;
|
|
33
35
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
34
36
|
id: ListItem['id'];
|
|
@@ -43,7 +45,9 @@ declare const _default: {
|
|
|
43
45
|
fallbackValue: ListItem['fallbackValue'];
|
|
44
46
|
setFixedColumnSize: ListItem['setFixedColumnSize'];
|
|
45
47
|
sortPositions: ListItem['sortPositions'];
|
|
46
|
-
}
|
|
48
|
+
}>>> & {
|
|
49
|
+
"onListitem:click"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "listitem:click"[], string, {}> & {
|
|
47
51
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
48
52
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
49
53
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -76,7 +80,9 @@ declare const _default: {
|
|
|
76
80
|
fallbackValue: ListItem['fallbackValue'];
|
|
77
81
|
setFixedColumnSize: ListItem['setFixedColumnSize'];
|
|
78
82
|
sortPositions: ListItem['sortPositions'];
|
|
79
|
-
}>>> &
|
|
83
|
+
}>>> & {
|
|
84
|
+
"onListitem:click"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
80
86
|
__isFragment?: undefined;
|
|
81
87
|
__isTeleport?: undefined;
|
|
82
88
|
__isSuspense?: undefined;
|
|
@@ -93,11 +99,13 @@ declare const _default: {
|
|
|
93
99
|
fallbackValue: ListItem['fallbackValue'];
|
|
94
100
|
setFixedColumnSize: ListItem['setFixedColumnSize'];
|
|
95
101
|
sortPositions: ListItem['sortPositions'];
|
|
96
|
-
}
|
|
102
|
+
}>>> & {
|
|
103
|
+
"onListitem:click"?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "listitem:click"[], "listitem:click", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
97
105
|
$slots: Record<string, {
|
|
98
106
|
data: {
|
|
99
107
|
key: string;
|
|
100
|
-
value:
|
|
108
|
+
value: unknown;
|
|
101
109
|
};
|
|
102
110
|
index: number;
|
|
103
111
|
columnIndex: number;
|
|
@@ -106,7 +114,7 @@ declare const _default: {
|
|
|
106
114
|
}> & Record<string, {
|
|
107
115
|
data: {
|
|
108
116
|
key: string;
|
|
109
|
-
value:
|
|
117
|
+
value: unknown;
|
|
110
118
|
};
|
|
111
119
|
index: number;
|
|
112
120
|
columnIndex: number;
|
|
@@ -115,7 +123,7 @@ declare const _default: {
|
|
|
115
123
|
}> & Record<string, {
|
|
116
124
|
data: {
|
|
117
125
|
key: string;
|
|
118
|
-
value:
|
|
126
|
+
value: unknown;
|
|
119
127
|
};
|
|
120
128
|
index: number;
|
|
121
129
|
columnIndex: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare type DataValue =
|
|
2
|
-
export declare type Data = Record<string,
|
|
1
|
+
export declare type DataValue = unknown;
|
|
2
|
+
export declare type Data = Record<string, unknown>;
|
|
3
3
|
export interface HeaderOptions {
|
|
4
4
|
highlight?: boolean;
|
|
5
5
|
align?: 'left' | 'right';
|
|
@@ -1,21 +1,83 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
title: string;
|
|
7
|
+
size: 'small' | 'medium' | 'large';
|
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
size: 'small' | 'medium' | 'large';
|
|
10
|
+
dark?: boolean | undefined;
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
size: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size">;
|
|
16
|
+
$attrs: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
};
|
|
19
|
+
$refs: {
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
$slots: Readonly<{
|
|
23
|
+
[name: string]: import("vue").Slot | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
27
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
28
|
+
$el: any;
|
|
29
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
size: 'small' | 'medium' | 'large';
|
|
31
|
+
dark?: boolean | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
size: string;
|
|
35
|
+
title: string;
|
|
36
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
37
|
+
title: string;
|
|
38
|
+
size: 'small' | 'medium' | 'large';
|
|
39
|
+
}> & {
|
|
40
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
45
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
46
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
47
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
48
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
49
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
50
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
51
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
53
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
54
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
55
|
+
};
|
|
56
|
+
$forceUpdate: () => void;
|
|
57
|
+
$nextTick: typeof import("vue").nextTick;
|
|
58
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
59
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
60
|
+
size: 'small' | 'medium' | 'large';
|
|
61
|
+
dark?: boolean | undefined;
|
|
62
|
+
title?: string | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
size: string;
|
|
65
|
+
title: string;
|
|
66
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
67
|
+
__isFragment?: undefined;
|
|
68
|
+
__isTeleport?: undefined;
|
|
69
|
+
__isSuspense?: undefined;
|
|
70
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
71
|
size: 'small' | 'medium' | 'large';
|
|
3
72
|
dark?: boolean | undefined;
|
|
4
73
|
title?: string | undefined;
|
|
5
74
|
}>, {
|
|
6
75
|
size: string;
|
|
7
76
|
title: string;
|
|
8
|
-
}
|
|
9
|
-
size: 'small' | 'medium' | 'large';
|
|
10
|
-
dark?: boolean | undefined;
|
|
11
|
-
title?: string | undefined;
|
|
12
|
-
}>, {
|
|
13
|
-
size: string;
|
|
14
|
-
title: string;
|
|
15
|
-
}>>>, {
|
|
77
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
16
78
|
title: string;
|
|
17
79
|
size: 'small' | 'medium' | 'large';
|
|
18
|
-
}
|
|
80
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
19
81
|
export default _default;
|
|
20
82
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
83
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type { Pagination } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
size: "small" | "medium";
|
|
8
|
+
openMenuPosition: "top" | "dynamic";
|
|
9
|
+
totalPages: Pagination['totalPages'];
|
|
10
|
+
current: number;
|
|
11
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
id: Pagination['id'];
|
|
13
|
+
size?: Pagination['size'];
|
|
14
|
+
openMenuPosition?: Pagination['openMenuPosition'];
|
|
15
|
+
totalPages: Pagination['totalPages'];
|
|
16
|
+
current?: Pagination['current'];
|
|
17
|
+
nextPageData?: Pagination['nextPageData'];
|
|
18
|
+
previousPageData?: Pagination['previousPageData'];
|
|
19
|
+
}>, {
|
|
20
|
+
openMenuPosition: string;
|
|
21
|
+
size: string;
|
|
22
|
+
current: number;
|
|
23
|
+
totalPages: number;
|
|
24
|
+
}>>> & {
|
|
25
|
+
"onUpdate:current"?: ((page: number | undefined) => any) | undefined;
|
|
26
|
+
onPage?: ((page: number | undefined) => any) | undefined;
|
|
27
|
+
"onPage:next"?: ((value: (Record<string, unknown> & {
|
|
28
|
+
page: number;
|
|
29
|
+
}) | undefined) => any) | undefined;
|
|
30
|
+
"onPage:previous"?: ((value: (Record<string, unknown> & {
|
|
31
|
+
page: number;
|
|
32
|
+
}) | undefined) => any) | undefined;
|
|
33
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "openMenuPosition" | "totalPages" | "current">;
|
|
34
|
+
$attrs: {
|
|
35
|
+
[x: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
$refs: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
$slots: Readonly<{
|
|
41
|
+
[name: string]: import("vue").Slot | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
44
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
45
|
+
$emit: ((event: "update:current", page: number | undefined) => void) & ((event: "page", page: number | undefined) => void) & ((event: "page:next", value: (Record<string, unknown> & {
|
|
46
|
+
page: number;
|
|
47
|
+
}) | undefined) => void) & ((event: "page:previous", value: (Record<string, unknown> & {
|
|
48
|
+
page: number;
|
|
49
|
+
}) | undefined) => void);
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
52
|
+
id: Pagination['id'];
|
|
53
|
+
size?: Pagination['size'];
|
|
54
|
+
openMenuPosition?: Pagination['openMenuPosition'];
|
|
55
|
+
totalPages: Pagination['totalPages'];
|
|
56
|
+
current?: Pagination['current'];
|
|
57
|
+
nextPageData?: Pagination['nextPageData'];
|
|
58
|
+
previousPageData?: Pagination['previousPageData'];
|
|
59
|
+
}>, {
|
|
60
|
+
openMenuPosition: string;
|
|
61
|
+
size: string;
|
|
62
|
+
current: number;
|
|
63
|
+
totalPages: number;
|
|
64
|
+
}>>> & {
|
|
65
|
+
"onUpdate:current"?: ((page: number | undefined) => any) | undefined;
|
|
66
|
+
onPage?: ((page: number | undefined) => any) | undefined;
|
|
67
|
+
"onPage:next"?: ((value: (Record<string, unknown> & {
|
|
68
|
+
page: number;
|
|
69
|
+
}) | undefined) => any) | undefined;
|
|
70
|
+
"onPage:previous"?: ((value: (Record<string, unknown> & {
|
|
71
|
+
page: number;
|
|
72
|
+
}) | undefined) => any) | undefined;
|
|
73
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
"update:current": (page: number | undefined) => void;
|
|
75
|
+
} & {
|
|
76
|
+
page: (page: number | undefined) => void;
|
|
77
|
+
} & {
|
|
78
|
+
"page:next": (value: (Record<string, unknown> & {
|
|
79
|
+
page: number;
|
|
80
|
+
}) | undefined) => void;
|
|
81
|
+
} & {
|
|
82
|
+
"page:previous": (value: (Record<string, unknown> & {
|
|
83
|
+
page: number;
|
|
84
|
+
}) | undefined) => void;
|
|
85
|
+
}, string, {
|
|
86
|
+
size: "small" | "medium";
|
|
87
|
+
openMenuPosition: "top" | "dynamic";
|
|
88
|
+
totalPages: Pagination['totalPages'];
|
|
89
|
+
current: number;
|
|
90
|
+
}> & {
|
|
91
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
104
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
105
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
106
|
+
};
|
|
107
|
+
$forceUpdate: () => void;
|
|
108
|
+
$nextTick: typeof import("vue").nextTick;
|
|
109
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
110
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
111
|
+
id: Pagination['id'];
|
|
112
|
+
size?: Pagination['size'];
|
|
113
|
+
openMenuPosition?: Pagination['openMenuPosition'];
|
|
114
|
+
totalPages: Pagination['totalPages'];
|
|
115
|
+
current?: Pagination['current'];
|
|
116
|
+
nextPageData?: Pagination['nextPageData'];
|
|
117
|
+
previousPageData?: Pagination['previousPageData'];
|
|
118
|
+
}>, {
|
|
119
|
+
openMenuPosition: string;
|
|
120
|
+
size: string;
|
|
121
|
+
current: number;
|
|
122
|
+
totalPages: number;
|
|
123
|
+
}>>> & {
|
|
124
|
+
"onUpdate:current"?: ((page: number | undefined) => any) | undefined;
|
|
125
|
+
onPage?: ((page: number | undefined) => any) | undefined;
|
|
126
|
+
"onPage:next"?: ((value: (Record<string, unknown> & {
|
|
127
|
+
page: number;
|
|
128
|
+
}) | undefined) => any) | undefined;
|
|
129
|
+
"onPage:previous"?: ((value: (Record<string, unknown> & {
|
|
130
|
+
page: number;
|
|
131
|
+
}) | undefined) => any) | undefined;
|
|
132
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
133
|
+
__isFragment?: undefined;
|
|
134
|
+
__isTeleport?: undefined;
|
|
135
|
+
__isSuspense?: undefined;
|
|
136
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
137
|
+
id: Pagination['id'];
|
|
138
|
+
size?: Pagination['size'];
|
|
139
|
+
openMenuPosition?: Pagination['openMenuPosition'];
|
|
140
|
+
totalPages: Pagination['totalPages'];
|
|
141
|
+
current?: Pagination['current'];
|
|
142
|
+
nextPageData?: Pagination['nextPageData'];
|
|
143
|
+
previousPageData?: Pagination['previousPageData'];
|
|
144
|
+
}>, {
|
|
145
|
+
openMenuPosition: string;
|
|
146
|
+
size: string;
|
|
147
|
+
current: number;
|
|
148
|
+
totalPages: number;
|
|
149
|
+
}>>> & {
|
|
150
|
+
"onUpdate:current"?: ((page: number | undefined) => any) | undefined;
|
|
151
|
+
onPage?: ((page: number | undefined) => any) | undefined;
|
|
152
|
+
"onPage:next"?: ((value: (Record<string, unknown> & {
|
|
153
|
+
page: number;
|
|
154
|
+
}) | undefined) => any) | undefined;
|
|
155
|
+
"onPage:previous"?: ((value: (Record<string, unknown> & {
|
|
156
|
+
page: number;
|
|
157
|
+
}) | undefined) => any) | undefined;
|
|
158
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
|
+
"update:current": (page: number | undefined) => void;
|
|
160
|
+
} & {
|
|
161
|
+
page: (page: number | undefined) => void;
|
|
162
|
+
} & {
|
|
163
|
+
"page:next": (value: (Record<string, unknown> & {
|
|
164
|
+
page: number;
|
|
165
|
+
}) | undefined) => void;
|
|
166
|
+
} & {
|
|
167
|
+
"page:previous": (value: (Record<string, unknown> & {
|
|
168
|
+
page: number;
|
|
169
|
+
}) | undefined) => void;
|
|
170
|
+
}, string, {
|
|
171
|
+
size: "small" | "medium";
|
|
172
|
+
openMenuPosition: "top" | "dynamic";
|
|
173
|
+
totalPages: Pagination['totalPages'];
|
|
174
|
+
current: number;
|
|
175
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
176
|
+
export default _default;
|
|
177
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
178
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
179
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
180
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
181
|
+
} : {
|
|
182
|
+
type: import('vue').PropType<T[K]>;
|
|
183
|
+
required: true;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
187
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
188
|
+
default: D[K];
|
|
189
|
+
} : P[K];
|
|
190
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare type PageProps = Record<string, unknown> & {
|
|
2
|
+
page: number;
|
|
3
|
+
};
|
|
4
|
+
declare type OpenMenuPosition = 'top' | 'dynamic';
|
|
5
|
+
export interface Pagination {
|
|
6
|
+
id: string;
|
|
7
|
+
size?: 'small' | 'medium';
|
|
8
|
+
openMenuPosition?: OpenMenuPosition;
|
|
9
|
+
totalPages: number;
|
|
10
|
+
current?: number;
|
|
11
|
+
nextPageData?: PageProps;
|
|
12
|
+
previousPageData?: PageProps;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { TabItem } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
id: TabItem['id'];
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
disabled?: TabItem['disabled'];
|
|
10
|
+
active?: TabItem['active'];
|
|
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, {}>> | null;
|
|
22
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
23
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
24
|
+
$el: any;
|
|
25
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
26
|
+
id: TabItem['id'];
|
|
27
|
+
label?: string | undefined;
|
|
28
|
+
disabled?: TabItem['disabled'];
|
|
29
|
+
active?: TabItem['active'];
|
|
30
|
+
}>, {}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
|
|
31
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
46
|
+
};
|
|
47
|
+
$forceUpdate: () => void;
|
|
48
|
+
$nextTick: typeof import("vue").nextTick;
|
|
49
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
50
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
51
|
+
id: TabItem['id'];
|
|
52
|
+
label?: string | undefined;
|
|
53
|
+
disabled?: TabItem['disabled'];
|
|
54
|
+
active?: TabItem['active'];
|
|
55
|
+
}>, {}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
56
|
+
__isFragment?: undefined;
|
|
57
|
+
__isTeleport?: undefined;
|
|
58
|
+
__isSuspense?: undefined;
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
60
|
+
id: TabItem['id'];
|
|
61
|
+
label?: string | undefined;
|
|
62
|
+
disabled?: TabItem['disabled'];
|
|
63
|
+
active?: TabItem['active'];
|
|
64
|
+
}>, {}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
65
|
+
$slots: {
|
|
66
|
+
icon: (_: {}) => any;
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
export default _default;
|
|
70
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
71
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
72
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
73
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
74
|
+
} : {
|
|
75
|
+
type: import('vue').PropType<T[K]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
80
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
81
|
+
default: D[K];
|
|
82
|
+
} : P[K];
|
|
83
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { Tabs } from './types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
tabList: Tabs['tabList'];
|
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
id: Tabs['id'];
|
|
10
|
+
tabList?: import("./types").TabList[] | undefined;
|
|
11
|
+
onlyLine?: Tabs['onlyLine'];
|
|
12
|
+
}>, {
|
|
13
|
+
tabList: () => ({
|
|
14
|
+
label: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
active?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
label: string;
|
|
19
|
+
active: boolean;
|
|
20
|
+
disabled?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
}>>> & {
|
|
23
|
+
"onUpdate:tabList"?: ((tab: import("./types").TabList[]) => any) | undefined;
|
|
24
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "tabList">;
|
|
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, {}>> | null;
|
|
35
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
36
|
+
$emit: (event: "update:tabList", tab: import("./types").TabList[]) => void;
|
|
37
|
+
$el: any;
|
|
38
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
39
|
+
id: Tabs['id'];
|
|
40
|
+
tabList?: import("./types").TabList[] | undefined;
|
|
41
|
+
onlyLine?: Tabs['onlyLine'];
|
|
42
|
+
}>, {
|
|
43
|
+
tabList: () => ({
|
|
44
|
+
label: string;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
active?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
label: string;
|
|
49
|
+
active: boolean;
|
|
50
|
+
disabled?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
}>>> & {
|
|
53
|
+
"onUpdate:tabList"?: ((tab: import("./types").TabList[]) => any) | undefined;
|
|
54
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
55
|
+
"update:tabList": (tab: import("./types").TabList[]) => void;
|
|
56
|
+
}, string, {
|
|
57
|
+
tabList: Tabs['tabList'];
|
|
58
|
+
}> & {
|
|
59
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
72
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
73
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
74
|
+
};
|
|
75
|
+
$forceUpdate: () => void;
|
|
76
|
+
$nextTick: typeof import("vue").nextTick;
|
|
77
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
78
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
79
|
+
id: Tabs['id'];
|
|
80
|
+
tabList?: import("./types").TabList[] | undefined;
|
|
81
|
+
onlyLine?: Tabs['onlyLine'];
|
|
82
|
+
}>, {
|
|
83
|
+
tabList: () => ({
|
|
84
|
+
label: string;
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
active?: undefined;
|
|
87
|
+
} | {
|
|
88
|
+
label: string;
|
|
89
|
+
active: boolean;
|
|
90
|
+
disabled?: undefined;
|
|
91
|
+
})[];
|
|
92
|
+
}>>> & {
|
|
93
|
+
"onUpdate:tabList"?: ((tab: import("./types").TabList[]) => any) | undefined;
|
|
94
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
95
|
+
__isFragment?: undefined;
|
|
96
|
+
__isTeleport?: undefined;
|
|
97
|
+
__isSuspense?: undefined;
|
|
98
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
99
|
+
id: Tabs['id'];
|
|
100
|
+
tabList?: import("./types").TabList[] | undefined;
|
|
101
|
+
onlyLine?: Tabs['onlyLine'];
|
|
102
|
+
}>, {
|
|
103
|
+
tabList: () => ({
|
|
104
|
+
label: string;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
active?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
label: string;
|
|
109
|
+
active: boolean;
|
|
110
|
+
disabled?: undefined;
|
|
111
|
+
})[];
|
|
112
|
+
}>>> & {
|
|
113
|
+
"onUpdate:tabList"?: ((tab: import("./types").TabList[]) => any) | undefined;
|
|
114
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
115
|
+
"update:tabList": (tab: import("./types").TabList[]) => void;
|
|
116
|
+
}, string, {
|
|
117
|
+
tabList: Tabs['tabList'];
|
|
118
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
119
|
+
export default _default;
|
|
120
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
121
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
122
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
123
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
124
|
+
} : {
|
|
125
|
+
type: import('vue').PropType<T[K]>;
|
|
126
|
+
required: true;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
130
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
131
|
+
default: D[K];
|
|
132
|
+
} : P[K];
|
|
133
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|