@solfacil/girassol 0.8.1 → 0.9.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/dist/components.d.ts +3 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2769 -2536
- 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/inputs/input-password/InputPassword.vue.d.ts +17 -5
- 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/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/index.d.ts +434 -66
- package/package.json +23 -22
|
@@ -4,8 +4,8 @@ declare const _default: {
|
|
|
4
4
|
$data: {};
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
onColor: boolean;
|
|
7
|
-
size: 'small' | 'medium' | 'large';
|
|
8
7
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
8
|
+
size: 'small' | 'medium' | 'large';
|
|
9
9
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
id: string;
|
|
11
11
|
loading?: boolean | undefined;
|
|
@@ -17,7 +17,7 @@ declare const _default: {
|
|
|
17
17
|
variant: string;
|
|
18
18
|
size: string;
|
|
19
19
|
onColor: boolean;
|
|
20
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "onColor" | "
|
|
20
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "onColor" | "variant" | "size">;
|
|
21
21
|
$attrs: {
|
|
22
22
|
[x: string]: unknown;
|
|
23
23
|
};
|
|
@@ -44,8 +44,8 @@ declare const _default: {
|
|
|
44
44
|
onColor: boolean;
|
|
45
45
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
46
46
|
onColor: boolean;
|
|
47
|
-
size: 'small' | 'medium' | 'large';
|
|
48
47
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
48
|
+
size: 'small' | 'medium' | 'large';
|
|
49
49
|
}> & {
|
|
50
50
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
51
51
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -94,8 +94,8 @@ declare const _default: {
|
|
|
94
94
|
onColor: boolean;
|
|
95
95
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
96
96
|
onColor: boolean;
|
|
97
|
-
size: 'small' | 'medium' | 'large';
|
|
98
97
|
variant: 'primary' | 'secondary' | 'tertiary';
|
|
98
|
+
size: 'small' | 'medium' | 'large';
|
|
99
99
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
100
100
|
$slots: {
|
|
101
101
|
'icon-left': (_: {}) => any;
|
|
@@ -26,7 +26,9 @@ declare const _default: {
|
|
|
26
26
|
name: string;
|
|
27
27
|
required: boolean;
|
|
28
28
|
placeholder: string;
|
|
29
|
-
}>>> &
|
|
29
|
+
}>>> & {
|
|
30
|
+
"onUpdate:modelValue"?: ((event: string) => any) | undefined;
|
|
31
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "name" | "placeholder">;
|
|
30
32
|
$attrs: {
|
|
31
33
|
[x: string]: unknown;
|
|
32
34
|
};
|
|
@@ -38,7 +40,7 @@ declare const _default: {
|
|
|
38
40
|
}>;
|
|
39
41
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
40
42
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
41
|
-
$emit: (event:
|
|
43
|
+
$emit: (event: "update:modelValue", event: string) => void;
|
|
42
44
|
$el: any;
|
|
43
45
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
44
46
|
id: InputType['id'];
|
|
@@ -58,7 +60,11 @@ declare const _default: {
|
|
|
58
60
|
name: string;
|
|
59
61
|
required: boolean;
|
|
60
62
|
placeholder: string;
|
|
61
|
-
}
|
|
63
|
+
}>>> & {
|
|
64
|
+
"onUpdate:modelValue"?: ((event: string) => any) | undefined;
|
|
65
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
"update:modelValue": (event: string) => void;
|
|
67
|
+
}, string, {
|
|
62
68
|
required: boolean;
|
|
63
69
|
name: InputType['name'];
|
|
64
70
|
placeholder: string;
|
|
@@ -100,7 +106,9 @@ declare const _default: {
|
|
|
100
106
|
name: string;
|
|
101
107
|
required: boolean;
|
|
102
108
|
placeholder: string;
|
|
103
|
-
}>>> &
|
|
109
|
+
}>>> & {
|
|
110
|
+
"onUpdate:modelValue"?: ((event: string) => any) | undefined;
|
|
111
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
104
112
|
__isFragment?: undefined;
|
|
105
113
|
__isTeleport?: undefined;
|
|
106
114
|
__isSuspense?: undefined;
|
|
@@ -122,7 +130,11 @@ declare const _default: {
|
|
|
122
130
|
name: string;
|
|
123
131
|
required: boolean;
|
|
124
132
|
placeholder: string;
|
|
125
|
-
}
|
|
133
|
+
}>>> & {
|
|
134
|
+
"onUpdate:modelValue"?: ((event: string) => any) | undefined;
|
|
135
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
"update:modelValue": (event: string) => void;
|
|
137
|
+
}, string, {
|
|
126
138
|
required: boolean;
|
|
127
139
|
name: InputType['name'];
|
|
128
140
|
placeholder: string;
|
|
@@ -5,8 +5,8 @@ declare const _default: {
|
|
|
5
5
|
$props: Partial<{
|
|
6
6
|
text: string;
|
|
7
7
|
type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
|
|
8
|
-
size: 'small' | 'medium';
|
|
9
8
|
variant: 'fill' | 'outline';
|
|
9
|
+
size: 'small' | 'medium';
|
|
10
10
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
id: string;
|
|
12
12
|
text?: string | undefined;
|
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
variant: string;
|
|
19
19
|
size: string;
|
|
20
20
|
type: string;
|
|
21
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "type" | "
|
|
21
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "type" | "variant" | "size">;
|
|
22
22
|
$attrs: {
|
|
23
23
|
[x: string]: unknown;
|
|
24
24
|
};
|
|
@@ -46,8 +46,8 @@ declare const _default: {
|
|
|
46
46
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
47
47
|
text: string;
|
|
48
48
|
type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
|
|
49
|
-
size: 'small' | 'medium';
|
|
50
49
|
variant: 'fill' | 'outline';
|
|
50
|
+
size: 'small' | 'medium';
|
|
51
51
|
}> & {
|
|
52
52
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
53
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -97,8 +97,8 @@ declare const _default: {
|
|
|
97
97
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
98
98
|
text: string;
|
|
99
99
|
type: 'positive' | 'warning' | 'negative' | 'informative' | 'neutral';
|
|
100
|
-
size: 'small' | 'medium';
|
|
101
100
|
variant: 'fill' | 'outline';
|
|
101
|
+
size: 'small' | 'medium';
|
|
102
102
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
103
103
|
$slots: {
|
|
104
104
|
default: (_: {}) => any;
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type { Args, Codes, UseNavigateArgs } from './types';
|
|
2
|
-
interface NavigateInsideRow {
|
|
3
|
-
to: 'RIGHT' | 'LEFT';
|
|
4
|
-
query: string | string[];
|
|
5
|
-
}
|
|
1
|
+
import type { Args, Codes, NavigateGenericElement, NavigateInsideRow, UseNavigateArgs } from './types';
|
|
6
2
|
export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
|
|
7
3
|
navigate: ({ code }: KeyboardEvent) => void;
|
|
8
4
|
};
|
|
@@ -11,6 +7,7 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
11
7
|
id: string;
|
|
12
8
|
index: number;
|
|
13
9
|
rowIndex: number;
|
|
10
|
+
genericIndex: number;
|
|
14
11
|
};
|
|
15
12
|
isItemFocused: (arg: {
|
|
16
13
|
index?: number;
|
|
@@ -23,5 +20,5 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
23
20
|
focusOnFirstItem: () => void;
|
|
24
21
|
focusOnLastItem: (dataLength: number) => void;
|
|
25
22
|
focusInsideRow: ({ query, to }: NavigateInsideRow) => void;
|
|
23
|
+
focusGenericElement: ({ query, to }: NavigateGenericElement) => void;
|
|
26
24
|
};
|
|
27
|
-
export {};
|
|
@@ -16,4 +16,12 @@ export declare type Args = {
|
|
|
16
16
|
target: Ref<VNodeRef> | undefined;
|
|
17
17
|
query?: string;
|
|
18
18
|
};
|
|
19
|
+
export interface NavigateInsideRow {
|
|
20
|
+
to: 'RIGHT' | 'LEFT';
|
|
21
|
+
query: string | string[];
|
|
22
|
+
}
|
|
23
|
+
export interface NavigateGenericElement {
|
|
24
|
+
to: 'NEXT' | 'PREVIOUS';
|
|
25
|
+
query: string | string[];
|
|
26
|
+
}
|
|
19
27
|
export {};
|