@halo-dev/components 0.0.0-alpha.4 → 0.0.0-alpha.6
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/alert/Alert.vue.d.ts +2 -7
- package/dist/components/avatar/Avatar.vue.d.ts +8 -14
- package/dist/components/button/Button.vue.d.ts +1 -11
- package/dist/components/checkbox/CheckBox.vue.d.ts +1 -6
- package/dist/components/checkbox/CheckBoxGroup.vue.d.ts +3 -14
- package/dist/components/codemirror/Codemirror.vue.d.ts +11 -14
- package/dist/components/dialog/Dialog.vue.d.ts +6 -16
- package/dist/components/dialog/dialog-manager.d.ts +12 -0
- package/dist/components/dialog/index.d.ts +1 -2
- package/dist/components/dialog/interface.d.ts +11 -0
- package/dist/components/empty/Empty.vue.d.ts +1 -1
- package/dist/components/entity/Entity.vue.d.ts +6 -12
- package/dist/components/input/Input.vue.d.ts +1 -7
- package/dist/components/menu/Menu.vue.d.ts +1 -3
- package/dist/components/menu/MenuItem.vue.d.ts +2 -6
- package/dist/components/menu/index.d.ts +0 -1
- package/dist/components/modal/Modal.vue.d.ts +14 -10
- package/dist/components/pagination/Pagination.vue.d.ts +79 -0
- package/dist/components/radio/Radio.vue.d.ts +1 -6
- package/dist/components/radio/RadioGroup.vue.d.ts +2 -7
- package/dist/components/select/Select.vue.d.ts +1 -7
- package/dist/components/space/Space.vue.d.ts +3 -8
- package/dist/components/status/StatusDot.vue.d.ts +1 -6
- package/dist/components/switch/Switch.vue.d.ts +1 -3
- package/dist/components/tabs/TabItem.vue.d.ts +1 -4
- package/dist/components/tabs/Tabbar.vue.d.ts +1 -9
- package/dist/components/tabs/Tabs.vue.d.ts +3 -17
- package/dist/components/tag/Tag.vue.d.ts +1 -7
- package/dist/components/toast/Toast.vue.d.ts +125 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/interface.d.ts +10 -0
- package/dist/components/toast/toast-manager.d.ts +17 -0
- package/dist/components.d.ts +1 -0
- package/dist/halo-components.es.js +8427 -4467
- package/dist/halo-components.es.js.map +1 -1
- package/dist/halo-components.iife.js +25 -12
- package/dist/halo-components.iife.js.map +1 -1
- package/dist/icons/icons.d.ts +5 -1
- package/dist/style.css +1 -1
- package/package.json +16 -12
- package/dist/components/dialog/DialogProvider.vue.d.ts +0 -162
- package/dist/components/dialog/use-dialog.d.ts +0 -9
- package/dist/components/menu/RoutesMenu.d.ts +0 -16
- package/dist/components/menu/interface.d.ts +0 -12
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Direction, Type } from "./interface";
|
|
2
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
2
|
activeId: {
|
|
4
3
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -31,14 +30,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
31
30
|
default: string;
|
|
32
31
|
};
|
|
33
32
|
}, {
|
|
34
|
-
props:
|
|
35
|
-
activeId: number | string;
|
|
36
|
-
items: Array<Record<string, string>>;
|
|
37
|
-
type: Type;
|
|
38
|
-
direction: Direction;
|
|
39
|
-
idKey: string;
|
|
40
|
-
labelKey: string;
|
|
41
|
-
};
|
|
33
|
+
props: any;
|
|
42
34
|
emit: {
|
|
43
35
|
(event: "update:activeId", value: number | string): void;
|
|
44
36
|
(event: "change", value: number | string): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ComputedRef } from "vue";
|
|
2
|
-
import type { Direction, Type } from "./interface";
|
|
3
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
3
|
activeId: {
|
|
5
4
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -27,13 +26,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
27
26
|
default: string;
|
|
28
27
|
};
|
|
29
28
|
}, {
|
|
30
|
-
props:
|
|
31
|
-
activeId: number | string;
|
|
32
|
-
type: Type;
|
|
33
|
-
direction: Direction;
|
|
34
|
-
idKey: string;
|
|
35
|
-
labelKey: string;
|
|
36
|
-
};
|
|
29
|
+
props: any;
|
|
37
30
|
emit: {
|
|
38
31
|
(event: "update:activeId", value: number | string): void;
|
|
39
32
|
(event: "change", value: number | string): void;
|
|
@@ -47,7 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
47
40
|
}[]>;
|
|
48
41
|
classes: ComputedRef<string[]>;
|
|
49
42
|
handleChange: (id: string | number) => void;
|
|
50
|
-
VTabbar: import("vue").DefineComponent<{
|
|
43
|
+
readonly VTabbar: import("vue").DefineComponent<{
|
|
51
44
|
activeId: {
|
|
52
45
|
type: (StringConstructor | NumberConstructor)[];
|
|
53
46
|
required: false;
|
|
@@ -79,14 +72,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
79
72
|
default: string;
|
|
80
73
|
};
|
|
81
74
|
}, {
|
|
82
|
-
props:
|
|
83
|
-
activeId: string | number;
|
|
84
|
-
items: Record<string, string>[];
|
|
85
|
-
type: Type;
|
|
86
|
-
direction: Direction;
|
|
87
|
-
idKey: string;
|
|
88
|
-
labelKey: string;
|
|
89
|
-
};
|
|
75
|
+
props: any;
|
|
90
76
|
emit: {
|
|
91
77
|
(event: "update:activeId", value: string | number): void;
|
|
92
78
|
(event: "change", value: string | number): void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from "vue";
|
|
2
|
-
import type { Theme } from "./interface";
|
|
3
1
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
2
|
theme: {
|
|
5
3
|
type: any;
|
|
@@ -17,11 +15,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
15
|
default: () => {};
|
|
18
16
|
};
|
|
19
17
|
}, {
|
|
20
|
-
props:
|
|
21
|
-
theme: Theme;
|
|
22
|
-
rounded: boolean;
|
|
23
|
-
styles: CSSProperties;
|
|
24
|
-
};
|
|
18
|
+
props: any;
|
|
25
19
|
classes: import("vue").ComputedRef<(string | {
|
|
26
20
|
"tag-rounded": boolean;
|
|
27
21
|
})[]>;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
content: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
duration: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
closable: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
frozenOnHover: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
count: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
onClose: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
default: any;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
props: any;
|
|
39
|
+
timer: import("vue").Ref<any>;
|
|
40
|
+
emit: (event: "close") => void;
|
|
41
|
+
icons: {
|
|
42
|
+
success: {
|
|
43
|
+
icon: any;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
info: {
|
|
47
|
+
icon: any;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
warning: {
|
|
51
|
+
icon: any;
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
error: {
|
|
55
|
+
icon: any;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
icon: import("vue").ComputedRef<{
|
|
60
|
+
icon: any;
|
|
61
|
+
color: string;
|
|
62
|
+
} | {
|
|
63
|
+
icon: any;
|
|
64
|
+
color: string;
|
|
65
|
+
} | {
|
|
66
|
+
icon: any;
|
|
67
|
+
color: string;
|
|
68
|
+
} | {
|
|
69
|
+
icon: any;
|
|
70
|
+
color: string;
|
|
71
|
+
}>;
|
|
72
|
+
createTimer: () => void;
|
|
73
|
+
clearTimer: () => void;
|
|
74
|
+
close: () => void;
|
|
75
|
+
handleMouseEnter: () => void;
|
|
76
|
+
handleMouseLeave: () => void;
|
|
77
|
+
readonly IconClose: any;
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
type: {
|
|
80
|
+
type: any;
|
|
81
|
+
required: false;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
content: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
duration: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
required: false;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
closable: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
required: false;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
frozenOnHover: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
required: false;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
count: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
required: false;
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
onClose: {
|
|
110
|
+
type: FunctionConstructor;
|
|
111
|
+
required: false;
|
|
112
|
+
default: any;
|
|
113
|
+
};
|
|
114
|
+
}>> & {
|
|
115
|
+
onClose?: (...args: any[]) => any;
|
|
116
|
+
}, {
|
|
117
|
+
type: any;
|
|
118
|
+
onClose: Function;
|
|
119
|
+
closable: boolean;
|
|
120
|
+
content: string;
|
|
121
|
+
duration: number;
|
|
122
|
+
frozenOnHover: boolean;
|
|
123
|
+
count: number;
|
|
124
|
+
}>;
|
|
125
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toast } from "./toast-manager";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type VNode } from "vue";
|
|
2
|
+
import type { ToastProps } from "./interface";
|
|
3
|
+
export declare type ToastApiProps = Omit<ToastProps, "type" | "content">;
|
|
4
|
+
export interface ToastInstance {
|
|
5
|
+
id: string;
|
|
6
|
+
vnode: VNode;
|
|
7
|
+
}
|
|
8
|
+
export declare type ToastApi = (content: string, props?: ToastApiProps) => ToastInstance;
|
|
9
|
+
export interface ToastEntry {
|
|
10
|
+
(props: ToastProps): ToastInstance;
|
|
11
|
+
info: ToastApi;
|
|
12
|
+
success: ToastApi;
|
|
13
|
+
error: ToastApi;
|
|
14
|
+
warning: ToastApi;
|
|
15
|
+
}
|
|
16
|
+
declare const toast: ToastEntry;
|
|
17
|
+
export { toast as Toast };
|
package/dist/components.d.ts
CHANGED