@halo-dev/components 1.2.0 → 1.4.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/alert/interface.d.ts +1 -1
- package/dist/components/avatar/interface.d.ts +1 -1
- package/dist/components/button/interface.d.ts +2 -2
- package/dist/components/description/Description.vue.d.ts +2 -0
- package/dist/components/description/DescriptionItem.vue.d.ts +35 -0
- package/dist/components/description/index.d.ts +2 -0
- package/dist/components/dialog/dialog-manager.d.ts +2 -2
- package/dist/components/dialog/interface.d.ts +2 -2
- package/dist/components/dropdown/Dropdown.vue.d.ts +43 -0
- package/dist/components/dropdown/DropdownDivider.vue.d.ts +2 -0
- package/dist/components/dropdown/DropdownItem.vue.d.ts +27 -0
- package/dist/components/dropdown/index.d.ts +4 -0
- package/dist/components/entity/Entity.vue.d.ts +25 -24
- package/dist/components/pagination/Pagination.vue.d.ts +22 -0
- package/dist/components/space/interface.d.ts +3 -3
- package/dist/components/status/interface.d.ts +1 -1
- package/dist/components/switch/Switch.vue.d.ts +11 -0
- package/dist/components/tabs/interface.d.ts +2 -2
- package/dist/components/tag/interface.d.ts +1 -1
- package/dist/components/toast/Toast.vue.d.ts +1 -1
- package/dist/components/toast/interface.d.ts +1 -1
- package/dist/components/toast/toast-manager.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components.d.ts +3 -0
- package/dist/halo-components.es.js +11280 -7663
- package/dist/halo-components.es.js.map +1 -1
- package/dist/halo-components.iife.js +24 -16
- package/dist/halo-components.iife.js.map +1 -1
- package/dist/icons/icons.d.ts +2 -1
- package/dist/style.css +9 -1
- package/package.json +4 -3
- package/LICENSE +0 -674
- package/dist/components/dialog/Dialog.vue.d.ts +0 -364
- package/dist/components/modal/Modal.vue.d.ts +0 -127
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Type = "default" | "success" | "info" | "warning" | "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Size = "lg" | "md" | "sm" | "xs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Type = "default" | "primary" | "secondary" | "danger";
|
|
2
|
+
export type Size = "lg" | "md" | "sm" | "xs";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
content: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: false;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
verticalCenter: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
label: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
content: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
verticalCenter: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
content: string;
|
|
33
|
+
verticalCenter: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
export default _sfc_main;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DialogProps } from "./interface";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type DialogApiProps = Omit<DialogProps, "type" | "visible">;
|
|
3
|
+
export type DialogApi = (props?: DialogApiProps) => void;
|
|
4
4
|
export interface DialogEntry {
|
|
5
5
|
(props: DialogProps): void;
|
|
6
6
|
info: DialogApi;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Type = "success" | "info" | "warning" | "error";
|
|
2
2
|
export declare const DialogProviderProvideKey = "DIALOG_PROVIDER_PROVIDE_KEY";
|
|
3
3
|
import type { Type as ButtonType } from '../../components/button/interface';
|
|
4
4
|
export interface useDialogOptions {
|
|
@@ -23,4 +23,4 @@ export interface DialogProps {
|
|
|
23
23
|
onConfirm?: () => void;
|
|
24
24
|
onCancel?: () => void;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type useDialogUserOptions = Omit<useDialogOptions, "type" | "visible">;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
placement: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
triggers: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: () => string[];
|
|
11
|
+
};
|
|
12
|
+
classes: {
|
|
13
|
+
type: ArrayConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
emit: (event: "show") => void;
|
|
19
|
+
readonly FloatingDropdown: any;
|
|
20
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "show"[], "show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
placement: {
|
|
22
|
+
type: any;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
triggers: {
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
default: () => string[];
|
|
30
|
+
};
|
|
31
|
+
classes: {
|
|
32
|
+
type: ArrayConstructor;
|
|
33
|
+
required: false;
|
|
34
|
+
default: () => any[];
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
onShow?: (...args: any[]) => any;
|
|
38
|
+
}, {
|
|
39
|
+
placement: any;
|
|
40
|
+
triggers: unknown[];
|
|
41
|
+
classes: unknown[];
|
|
42
|
+
}>;
|
|
43
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
selected: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
type: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
selected: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
type: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
type: string;
|
|
25
|
+
selected: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
export default _sfc_main;
|
|
@@ -7,48 +7,49 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7
7
|
}, {
|
|
8
8
|
props: any;
|
|
9
9
|
classes: import("vue").ComputedRef<any[]>;
|
|
10
|
-
readonly
|
|
11
|
-
|
|
10
|
+
readonly IconMore: any;
|
|
11
|
+
readonly VDropdown: import("vue").DefineComponent<{
|
|
12
|
+
placement: {
|
|
12
13
|
type: any;
|
|
13
14
|
required: false;
|
|
14
15
|
default: string;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
-
type:
|
|
17
|
+
triggers: {
|
|
18
|
+
type: ArrayConstructor;
|
|
18
19
|
required: false;
|
|
19
|
-
default: string;
|
|
20
|
+
default: () => string[];
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
type:
|
|
22
|
+
classes: {
|
|
23
|
+
type: ArrayConstructor;
|
|
23
24
|
required: false;
|
|
24
|
-
default:
|
|
25
|
+
default: () => any[];
|
|
25
26
|
};
|
|
26
27
|
}, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
spacing: {
|
|
28
|
+
emit: (event: "show") => void;
|
|
29
|
+
readonly FloatingDropdown: any;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "show"[], "show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
placement: {
|
|
32
32
|
type: any;
|
|
33
33
|
required: false;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
type:
|
|
36
|
+
triggers: {
|
|
37
|
+
type: ArrayConstructor;
|
|
38
38
|
required: false;
|
|
39
|
-
default: string;
|
|
39
|
+
default: () => string[];
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
type:
|
|
41
|
+
classes: {
|
|
42
|
+
type: ArrayConstructor;
|
|
43
43
|
required: false;
|
|
44
|
-
default:
|
|
44
|
+
default: () => any[];
|
|
45
45
|
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
}>> & {
|
|
47
|
+
onShow?: (...args: any[]) => any;
|
|
48
|
+
}, {
|
|
49
|
+
placement: any;
|
|
50
|
+
triggers: unknown[];
|
|
51
|
+
classes: unknown[];
|
|
50
52
|
}>;
|
|
51
|
-
readonly IconMore: any;
|
|
52
53
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
54
|
isSelected: {
|
|
54
55
|
type: BooleanConstructor;
|
|
@@ -19,6 +19,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
19
19
|
required: false;
|
|
20
20
|
default: () => number[];
|
|
21
21
|
};
|
|
22
|
+
pageLabel: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
sizeLabel: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
22
32
|
}, {
|
|
23
33
|
props: any;
|
|
24
34
|
page: import("vue").Ref<number>;
|
|
@@ -66,6 +76,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
66
76
|
required: false;
|
|
67
77
|
default: () => number[];
|
|
68
78
|
};
|
|
79
|
+
pageLabel: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
sizeLabel: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: false;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
69
89
|
}>> & {
|
|
70
90
|
onChange?: (...args: any[]) => any;
|
|
71
91
|
"onUpdate:page"?: (...args: any[]) => any;
|
|
@@ -75,5 +95,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
75
95
|
page: number;
|
|
76
96
|
total: number;
|
|
77
97
|
sizeOptions: unknown[];
|
|
98
|
+
pageLabel: string;
|
|
99
|
+
sizeLabel: string;
|
|
78
100
|
}>;
|
|
79
101
|
export default _sfc_main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type Spacing = "xs" | "sm" | "md" | "lg";
|
|
2
|
+
export type Direction = "row" | "column";
|
|
3
|
+
export type Align = "start" | "end" | "center" | "stretch";
|
|
4
4
|
export declare const SpacingSize: Record<string, number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type State = "default" | "success" | "warning" | "error";
|
|
@@ -4,6 +4,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
4
4
|
required: false;
|
|
5
5
|
default: boolean;
|
|
6
6
|
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
7
12
|
}, {
|
|
8
13
|
props: any;
|
|
9
14
|
emit: {
|
|
@@ -17,10 +22,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
17
22
|
required: false;
|
|
18
23
|
default: boolean;
|
|
19
24
|
};
|
|
25
|
+
disabled: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
20
30
|
}>> & {
|
|
21
31
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
22
32
|
onChange?: (...args: any[]) => any;
|
|
23
33
|
}, {
|
|
34
|
+
disabled: boolean;
|
|
24
35
|
modelValue: boolean;
|
|
25
36
|
}>;
|
|
26
37
|
export default _sfc_main;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Type = "default" | "pills" | "outline";
|
|
2
|
+
export type Direction = "row" | "column";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Theme = "default" | "primary" | "secondary" | "danger";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type VNode } from "vue";
|
|
2
2
|
import type { ToastProps } from "./interface";
|
|
3
|
-
export
|
|
3
|
+
export type ToastApiProps = Omit<ToastProps, "type" | "content">;
|
|
4
4
|
export interface ToastInstance {
|
|
5
5
|
id: string;
|
|
6
6
|
vnode: VNode;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type ToastApi = (content: string, props?: ToastApiProps) => ToastInstance;
|
|
9
9
|
export interface ToastEntry {
|
|
10
10
|
(props: ToastProps): ToastInstance;
|
|
11
11
|
info: ToastApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VTooltip } from "floating-vue";
|
package/dist/components.d.ts
CHANGED
|
@@ -17,3 +17,6 @@ export * from "./components/status";
|
|
|
17
17
|
export * from "./components/entity";
|
|
18
18
|
export * from "./components/toast";
|
|
19
19
|
export * from "./components/loading";
|
|
20
|
+
export * from "./components/dropdown";
|
|
21
|
+
export * from "./components/tooltip";
|
|
22
|
+
export * from "./components/description";
|