@halo-dev/components 0.0.0-alpha.2 → 0.0.0-alpha.4

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 (47) hide show
  1. package/dist/components/alert/Alert.vue.d.ts +65 -0
  2. package/dist/components/avatar/Avatar.vue.d.ts +86 -0
  3. package/dist/components/avatar/index.d.ts +1 -0
  4. package/dist/components/avatar/interface.d.ts +1 -0
  5. package/dist/components/button/Button.vue.d.ts +112 -0
  6. package/dist/components/card/Card.vue.d.ts +7 -4
  7. package/dist/components/checkbox/CheckBox.vue.d.ts +65 -0
  8. package/dist/components/checkbox/CheckBoxGroup.vue.d.ts +137 -0
  9. package/dist/components/codemirror/Codemirror.vue.d.ts +75 -0
  10. package/dist/components/codemirror/index.d.ts +1 -0
  11. package/dist/components/dialog/Dialog.vue.d.ts +149 -0
  12. package/dist/components/dialog/DialogProvider.vue.d.ts +162 -0
  13. package/dist/components/dialog/interface.d.ts +2 -0
  14. package/dist/components/empty/Empty.vue.d.ts +30 -0
  15. package/dist/components/empty/index.d.ts +1 -0
  16. package/dist/components/entity/Entity.vue.d.ts +67 -0
  17. package/dist/components/entity/EntityField.vue.d.ts +42 -0
  18. package/dist/components/entity/index.d.ts +2 -0
  19. package/dist/components/header/PageHeader.vue.d.ts +3 -1
  20. package/dist/components/input/Input.vue.d.ts +62 -0
  21. package/dist/components/menu/Menu.vue.d.ts +16 -0
  22. package/dist/components/menu/MenuItem.vue.d.ts +55 -0
  23. package/dist/components/menu/MenuLabel.vue.d.ts +2 -0
  24. package/dist/components/menu/RoutesMenu.d.ts +2 -0
  25. package/dist/components/modal/Modal.vue.d.ts +110 -0
  26. package/dist/components/radio/Radio.vue.d.ts +53 -0
  27. package/dist/components/radio/RadioGroup.vue.d.ts +121 -0
  28. package/dist/components/select/Option.vue.d.ts +3 -1
  29. package/dist/components/select/Select.vue.d.ts +62 -0
  30. package/dist/components/space/Space.vue.d.ts +47 -0
  31. package/dist/components/status/StatusDot.vue.d.ts +48 -0
  32. package/dist/components/status/index.d.ts +1 -0
  33. package/dist/components/status/interface.d.ts +1 -0
  34. package/dist/components/switch/Switch.vue.d.ts +28 -0
  35. package/dist/components/tabs/TabItem.vue.d.ts +28 -0
  36. package/dist/components/tabs/Tabbar.vue.d.ts +90 -0
  37. package/dist/components/tabs/Tabs.vue.d.ts +174 -0
  38. package/dist/components/tag/Tag.vue.d.ts +49 -0
  39. package/dist/components/textarea/Textarea.vue.d.ts +15 -1
  40. package/dist/components.d.ts +5 -0
  41. package/dist/halo-components.es.js +14172 -5153
  42. package/dist/halo-components.es.js.map +1 -1
  43. package/dist/halo-components.iife.js +13 -2
  44. package/dist/halo-components.iife.js.map +1 -1
  45. package/dist/icons/icons.d.ts +12 -1
  46. package/dist/style.css +1 -1
  47. package/package.json +14 -7
@@ -0,0 +1,149 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ type: {
3
+ type: any;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ title: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ description: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ confirmText: {
18
+ type: StringConstructor;
19
+ required: false;
20
+ default: string;
21
+ };
22
+ confirmType: {
23
+ type: any;
24
+ required: false;
25
+ default: string;
26
+ };
27
+ cancelText: {
28
+ type: StringConstructor;
29
+ required: false;
30
+ default: string;
31
+ };
32
+ visible: {
33
+ type: BooleanConstructor;
34
+ required: false;
35
+ default: boolean;
36
+ };
37
+ onConfirm: {
38
+ type: FunctionConstructor;
39
+ required: false;
40
+ default: () => void;
41
+ };
42
+ onCancel: {
43
+ type: FunctionConstructor;
44
+ required: false;
45
+ default: () => void;
46
+ };
47
+ }, {
48
+ props: {
49
+ type: Type;
50
+ title: string;
51
+ description: string;
52
+ confirmText: string;
53
+ confirmType: ButtonType;
54
+ cancelText: string;
55
+ visible: boolean;
56
+ onConfirm: () => void;
57
+ onCancel: () => void;
58
+ };
59
+ emit: {
60
+ (event: "update:visible", visible: boolean): void;
61
+ (event: "close"): void;
62
+ };
63
+ icons: {
64
+ success: {
65
+ icon: any;
66
+ color: string;
67
+ };
68
+ info: {
69
+ icon: any;
70
+ color: string;
71
+ };
72
+ warning: {
73
+ icon: any;
74
+ color: string;
75
+ };
76
+ error: {
77
+ icon: any;
78
+ color: string;
79
+ };
80
+ };
81
+ icon: import("vue").ComputedRef<any>;
82
+ loading: import("vue").Ref<boolean>;
83
+ handleCancel: () => void;
84
+ handleConfirm: () => Promise<void>;
85
+ handleClose: () => void;
86
+ VModal: any;
87
+ VButton: any;
88
+ IconClose: any;
89
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:visible")[], "close" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
90
+ type: {
91
+ type: any;
92
+ required: false;
93
+ default: string;
94
+ };
95
+ title: {
96
+ type: StringConstructor;
97
+ required: false;
98
+ default: string;
99
+ };
100
+ description: {
101
+ type: StringConstructor;
102
+ required: false;
103
+ default: string;
104
+ };
105
+ confirmText: {
106
+ type: StringConstructor;
107
+ required: false;
108
+ default: string;
109
+ };
110
+ confirmType: {
111
+ type: any;
112
+ required: false;
113
+ default: string;
114
+ };
115
+ cancelText: {
116
+ type: StringConstructor;
117
+ required: false;
118
+ default: string;
119
+ };
120
+ visible: {
121
+ type: BooleanConstructor;
122
+ required: false;
123
+ default: boolean;
124
+ };
125
+ onConfirm: {
126
+ type: FunctionConstructor;
127
+ required: false;
128
+ default: () => void;
129
+ };
130
+ onCancel: {
131
+ type: FunctionConstructor;
132
+ required: false;
133
+ default: () => void;
134
+ };
135
+ }>> & {
136
+ onClose?: (...args: any[]) => any;
137
+ "onUpdate:visible"?: (...args: any[]) => any;
138
+ }, {
139
+ type: any;
140
+ title: string;
141
+ description: string;
142
+ confirmText: string;
143
+ confirmType: any;
144
+ cancelText: string;
145
+ visible: boolean;
146
+ onConfirm: Function;
147
+ onCancel: Function;
148
+ }>;
149
+ export default _sfc_main;
@@ -0,0 +1,162 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ options: import("vue").Ref<{
3
+ type?: import("./interface").Type;
4
+ visible: boolean;
5
+ title: string;
6
+ description?: string;
7
+ confirmType?: any;
8
+ confirmText?: string;
9
+ cancelText?: string;
10
+ onConfirm?: () => void;
11
+ onCancel?: () => void;
12
+ }>;
13
+ VDialog: import("vue").DefineComponent<{
14
+ type: {
15
+ type: any;
16
+ required: false;
17
+ default: string;
18
+ };
19
+ title: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: string;
23
+ };
24
+ description: {
25
+ type: StringConstructor;
26
+ required: false;
27
+ default: string;
28
+ };
29
+ confirmText: {
30
+ type: StringConstructor;
31
+ required: false;
32
+ default: string;
33
+ };
34
+ confirmType: {
35
+ type: any;
36
+ required: false;
37
+ default: string;
38
+ };
39
+ cancelText: {
40
+ type: StringConstructor;
41
+ required: false;
42
+ default: string;
43
+ };
44
+ visible: {
45
+ type: BooleanConstructor;
46
+ required: false;
47
+ default: boolean;
48
+ };
49
+ onConfirm: {
50
+ type: FunctionConstructor;
51
+ required: false;
52
+ default: () => void;
53
+ };
54
+ onCancel: {
55
+ type: FunctionConstructor;
56
+ required: false;
57
+ default: () => void;
58
+ };
59
+ }, {
60
+ props: {
61
+ type: Type;
62
+ title: string;
63
+ description: string;
64
+ confirmText: string;
65
+ confirmType: ButtonType;
66
+ cancelText: string;
67
+ visible: boolean;
68
+ onConfirm: () => void;
69
+ onCancel: () => void;
70
+ };
71
+ emit: {
72
+ (event: "update:visible", visible: boolean): void;
73
+ (event: "close"): void;
74
+ };
75
+ icons: {
76
+ success: {
77
+ icon: any;
78
+ color: string;
79
+ };
80
+ info: {
81
+ icon: any;
82
+ color: string;
83
+ };
84
+ warning: {
85
+ icon: any;
86
+ color: string;
87
+ };
88
+ error: {
89
+ icon: any;
90
+ color: string;
91
+ };
92
+ };
93
+ icon: import("vue").ComputedRef<any>;
94
+ loading: import("vue").Ref<boolean>;
95
+ handleCancel: () => void;
96
+ handleConfirm: () => Promise<void>;
97
+ handleClose: () => void;
98
+ VModal: any;
99
+ VButton: any;
100
+ IconClose: any;
101
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:visible")[], "close" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
102
+ type: {
103
+ type: any;
104
+ required: false;
105
+ default: string;
106
+ };
107
+ title: {
108
+ type: StringConstructor;
109
+ required: false;
110
+ default: string;
111
+ };
112
+ description: {
113
+ type: StringConstructor;
114
+ required: false;
115
+ default: string;
116
+ };
117
+ confirmText: {
118
+ type: StringConstructor;
119
+ required: false;
120
+ default: string;
121
+ };
122
+ confirmType: {
123
+ type: any;
124
+ required: false;
125
+ default: string;
126
+ };
127
+ cancelText: {
128
+ type: StringConstructor;
129
+ required: false;
130
+ default: string;
131
+ };
132
+ visible: {
133
+ type: BooleanConstructor;
134
+ required: false;
135
+ default: boolean;
136
+ };
137
+ onConfirm: {
138
+ type: FunctionConstructor;
139
+ required: false;
140
+ default: () => void;
141
+ };
142
+ onCancel: {
143
+ type: FunctionConstructor;
144
+ required: false;
145
+ default: () => void;
146
+ };
147
+ }>> & {
148
+ onClose?: (...args: any[]) => any;
149
+ "onUpdate:visible"?: (...args: any[]) => any;
150
+ }, {
151
+ type: any;
152
+ title: string;
153
+ description: string;
154
+ confirmText: string;
155
+ confirmType: any;
156
+ cancelText: string;
157
+ visible: boolean;
158
+ onConfirm: Function;
159
+ onCancel: Function;
160
+ }>;
161
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
162
+ export default _sfc_main;
@@ -1,10 +1,12 @@
1
1
  export declare type Type = "success" | "info" | "warning" | "error";
2
2
  export declare const DialogProviderProvideKey = "DIALOG_PROVIDER_PROVIDE_KEY";
3
+ import type { Type as ButtonType } from '../../components/button/interface';
3
4
  export interface useDialogOptions {
4
5
  type?: Type;
5
6
  visible: boolean;
6
7
  title: string;
7
8
  description?: string;
9
+ confirmType?: ButtonType;
8
10
  confirmText?: string;
9
11
  cancelText?: string;
10
12
  onConfirm?: () => void;
@@ -0,0 +1,30 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ };
6
+ message: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ };
10
+ image: {
11
+ type: StringConstructor;
12
+ required: false;
13
+ };
14
+ }, {
15
+ Empty: string;
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ title: {
18
+ type: StringConstructor;
19
+ required: false;
20
+ };
21
+ message: {
22
+ type: StringConstructor;
23
+ required: false;
24
+ };
25
+ image: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ };
29
+ }>>, {}>;
30
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ export { default as VEmpty } from "./Empty.vue";
@@ -0,0 +1,67 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ isSelected: {
3
+ type: BooleanConstructor;
4
+ required: false;
5
+ default: boolean;
6
+ };
7
+ }, {
8
+ props: {
9
+ isSelected: boolean;
10
+ };
11
+ classes: import("vue").ComputedRef<any[]>;
12
+ VSpace: import("vue").DefineComponent<{
13
+ spacing: {
14
+ type: any;
15
+ required: false;
16
+ default: string;
17
+ };
18
+ direction: {
19
+ type: any;
20
+ required: false;
21
+ default: string;
22
+ };
23
+ align: {
24
+ type: any;
25
+ required: false;
26
+ default: string;
27
+ };
28
+ }, {
29
+ props: {
30
+ spacing: import("../space/interface").Spacing;
31
+ direction: import("../space/interface").Direction;
32
+ align: import("../space/interface").Align;
33
+ };
34
+ wrapperClasses: import("vue").ComputedRef<string[]>;
35
+ SpacingSize: Record<string, number>;
36
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ spacing: {
38
+ type: any;
39
+ required: false;
40
+ default: string;
41
+ };
42
+ direction: {
43
+ type: any;
44
+ required: false;
45
+ default: string;
46
+ };
47
+ align: {
48
+ type: any;
49
+ required: false;
50
+ default: string;
51
+ };
52
+ }>>, {
53
+ spacing: any;
54
+ direction: any;
55
+ align: any;
56
+ }>;
57
+ IconMore: any;
58
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
+ isSelected: {
60
+ type: BooleanConstructor;
61
+ required: false;
62
+ default: boolean;
63
+ };
64
+ }>>, {
65
+ isSelected: boolean;
66
+ }>;
67
+ export default _sfc_main;
@@ -0,0 +1,42 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: any;
6
+ };
7
+ description: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: any;
11
+ };
12
+ route: {
13
+ type: any;
14
+ required: false;
15
+ default: any;
16
+ };
17
+ }, {
18
+ emit: (event: "click") => void;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ title: {
21
+ type: StringConstructor;
22
+ required: false;
23
+ default: any;
24
+ };
25
+ description: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ default: any;
29
+ };
30
+ route: {
31
+ type: any;
32
+ required: false;
33
+ default: any;
34
+ };
35
+ }>> & {
36
+ onClick?: (...args: any[]) => any;
37
+ }, {
38
+ title: string;
39
+ description: string;
40
+ route: any;
41
+ }>;
42
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ export { default as VEntity } from "./Entity.vue";
2
+ export { default as VEntityField } from "./EntityField.vue";
@@ -1,10 +1,12 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{
2
2
  title: {
3
3
  type: StringConstructor;
4
+ required: false;
4
5
  };
5
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
7
  title: {
7
8
  type: StringConstructor;
9
+ required: false;
8
10
  };
9
11
  }>>, {}>;
10
12
  export default _sfc_main;
@@ -0,0 +1,62 @@
1
+ import type { Size } from "./interface";
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: StringConstructor;
5
+ required: false;
6
+ default: any;
7
+ };
8
+ size: {
9
+ type: any;
10
+ required: false;
11
+ default: string;
12
+ };
13
+ disabled: {
14
+ type: BooleanConstructor;
15
+ required: false;
16
+ default: boolean;
17
+ };
18
+ placeholder: {
19
+ type: StringConstructor;
20
+ required: false;
21
+ default: any;
22
+ };
23
+ }, {
24
+ props: {
25
+ modelValue: string;
26
+ size: Size;
27
+ disabled: boolean;
28
+ placeholder: string;
29
+ };
30
+ emit: (event: "update:modelValue", value: string) => void;
31
+ classes: import("vue").ComputedRef<string[]>;
32
+ handleInput: (e: Event) => void;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ modelValue: {
35
+ type: StringConstructor;
36
+ required: false;
37
+ default: any;
38
+ };
39
+ size: {
40
+ type: any;
41
+ required: false;
42
+ default: string;
43
+ };
44
+ disabled: {
45
+ type: BooleanConstructor;
46
+ required: false;
47
+ default: boolean;
48
+ };
49
+ placeholder: {
50
+ type: StringConstructor;
51
+ required: false;
52
+ default: any;
53
+ };
54
+ }>> & {
55
+ "onUpdate:modelValue"?: (...args: any[]) => any;
56
+ }, {
57
+ size: any;
58
+ disabled: boolean;
59
+ modelValue: string;
60
+ placeholder: string;
61
+ }>;
62
+ export default _sfc_main;
@@ -0,0 +1,16 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ openIds: {
3
+ type: ArrayConstructor;
4
+ required: false;
5
+ };
6
+ }, {
7
+ props: {
8
+ openIds?: string[];
9
+ };
10
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ openIds: {
12
+ type: ArrayConstructor;
13
+ required: false;
14
+ };
15
+ }>>, {}>;
16
+ export default _sfc_main;
@@ -0,0 +1,55 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ id: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ title: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ active: {
13
+ type: BooleanConstructor;
14
+ required: false;
15
+ default: boolean;
16
+ };
17
+ }, {
18
+ props: {
19
+ id: string;
20
+ title: string;
21
+ active: boolean;
22
+ };
23
+ emit: (event: "select", id: string) => void;
24
+ slots: Readonly<{
25
+ [name: string]: import("vue").Slot;
26
+ }>;
27
+ open: import("vue").Ref<boolean>;
28
+ openIds: string[];
29
+ hasSubmenus: import("vue").ComputedRef<boolean>;
30
+ handleClick: () => void;
31
+ IconArrowRight: any;
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ id: {
34
+ type: StringConstructor;
35
+ required: false;
36
+ default: string;
37
+ };
38
+ title: {
39
+ type: StringConstructor;
40
+ required: false;
41
+ default: string;
42
+ };
43
+ active: {
44
+ type: BooleanConstructor;
45
+ required: false;
46
+ default: boolean;
47
+ };
48
+ }>> & {
49
+ onSelect?: (...args: any[]) => any;
50
+ }, {
51
+ title: string;
52
+ id: string;
53
+ active: boolean;
54
+ }>;
55
+ 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;
@@ -3,10 +3,12 @@ import type { MenuGroupType } from "./interface";
3
3
  declare const VRoutesMenu: import("vue").DefineComponent<{
4
4
  menus: {
5
5
  type: PropType<MenuGroupType[]>;
6
+ required: true;
6
7
  };
7
8
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
9
  menus: {
9
10
  type: PropType<MenuGroupType[]>;
11
+ required: true;
10
12
  };
11
13
  }>> & {
12
14
  onSelect?: (...args: any[]) => any;