x-next 0.0.0-alpha.1 → 0.0.0-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/README.md +24 -2
  2. package/dist/_hooks/use-overflow.d.ts +5 -0
  3. package/dist/_hooks/use-popup-manager.d.ts +11 -0
  4. package/dist/_props/css.d.ts +13 -0
  5. package/dist/_props/global.d.ts +1 -0
  6. package/dist/_utils/config.d.ts +9 -0
  7. package/dist/_utils/convert-case.d.ts +3 -0
  8. package/dist/_utils/dom.d.ts +10 -0
  9. package/dist/_utils/helpers.d.ts +12 -0
  10. package/dist/_utils/icon.d.ts +59 -0
  11. package/{framework/es/util.d.ts → dist/_utils/is.d.ts} +22 -36
  12. package/dist/_utils/keyboard.d.ts +24 -0
  13. package/dist/_utils/number.d.ts +0 -0
  14. package/dist/_utils/vue-eco.d.ts +28 -0
  15. package/dist/components.d.ts +1 -0
  16. package/dist/componets/button/index.vue.d.ts +162 -0
  17. package/dist/componets/button/install.d.ts +4 -0
  18. package/dist/componets/button/props.d.ts +45 -0
  19. package/dist/componets/dialog/index.vue.d.ts +221 -0
  20. package/dist/componets/dialog/props.d.ts +83 -0
  21. package/dist/componets/dialog/use-props.d.ts +33 -0
  22. package/dist/componets/dialog/use.d.ts +3 -0
  23. package/dist/componets/dialog/warp.d.ts +2 -0
  24. package/dist/componets/message/index.vue.d.ts +387 -0
  25. package/dist/componets/message/props.d.ts +31 -0
  26. package/dist/componets/message/warp.d.ts +3 -0
  27. package/dist/componets/message-box/index.d.ts +3 -0
  28. package/dist/componets/message-box/props.d.ts +52 -0
  29. package/dist/componets/message-box/warp.d.ts +2 -0
  30. package/dist/componets/notification/index.vue.d.ts +160 -0
  31. package/dist/componets/notification/props.d.ts +54 -0
  32. package/dist/componets/notification/warp.d.ts +3 -0
  33. package/dist/componets/space/index.d.ts +42 -0
  34. package/dist/componets/tag-cloud/index.d.ts +0 -0
  35. package/dist/componets/trend-chart/components/trend-chart-curve.d.ts +114 -0
  36. package/dist/componets/trend-chart/components/trend-chart-grid.d.ts +55 -0
  37. package/dist/componets/trend-chart/components/trend-chart-labels.d.ts +22 -0
  38. package/dist/componets/trend-chart/components/trend-chart.d.ts +270 -0
  39. package/dist/componets/trend-chart/helpers/genPath.d.ts +8 -0
  40. package/dist/componets/trend-chart/helpers/genPoints.d.ts +3 -0
  41. package/dist/componets/trend-chart/helpers/getPadding.d.ts +7 -0
  42. package/dist/componets/trend-chart/helpers/validatePadding.d.ts +2 -0
  43. package/dist/componets/trend-chart/index.d.ts +2 -0
  44. package/dist/componets/trend-chart/props.d.ts +206 -0
  45. package/dist/directives/clipboard/cache.d.ts +8 -0
  46. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  47. package/dist/directives/clipboard/convert.d.ts +3 -0
  48. package/dist/directives/clipboard/index.d.ts +3 -0
  49. package/dist/directives/clipboard/plugin.d.ts +2 -0
  50. package/dist/directives/clipboard/textarea.d.ts +3 -0
  51. package/dist/icons/animation/animation-loading.vue.d.ts +55 -0
  52. package/dist/icons/default/check-circle-fill.vue.d.ts +55 -0
  53. package/dist/icons/default/close-circle-fill.vue.d.ts +55 -0
  54. package/dist/icons/default/exclamation-circle-fill.vue.d.ts +55 -0
  55. package/dist/icons/default/info-circle-fill.vue.d.ts +55 -0
  56. package/dist/icons/default/minus-circle-fill.vue.d.ts +55 -0
  57. package/dist/icons/index.d.ts +7 -0
  58. package/dist/index.d.ts +12 -0
  59. package/dist/index.es.js +1431 -0
  60. package/dist/index.umd.js +1 -0
  61. package/dist/style.css +1 -0
  62. package/global.d.ts +8 -0
  63. package/package.json +68 -62
  64. package/LICENSE +0 -21
  65. package/framework/es/client.io.js +0 -2
  66. package/framework/es/client.io.js.map +0 -1
  67. package/framework/es/exception.d.ts +0 -25
  68. package/framework/es/index.d.ts +0 -2
  69. package/framework/es/types.d.ts +0 -33
  70. package/framework/es/websocket.d.ts +0 -118
  71. package/framework/umd/client.io.js +0 -2
  72. package/framework/umd/client.io.js.map +0 -1
  73. package/framework/umd/exception.d.ts +0 -25
  74. package/framework/umd/index.d.ts +0 -2
  75. package/framework/umd/types.d.ts +0 -33
  76. package/framework/umd/util.d.ts +0 -36
  77. package/framework/umd/websocket.d.ts +0 -118
  78. package/index.d.ts +0 -159
@@ -0,0 +1,221 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ renderTo: {
3
+ type: import('vue').PropType<string | HTMLElement>;
4
+ default: string;
5
+ };
6
+ disabled: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ modelValue: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ top: {
15
+ type: (NumberConstructor | StringConstructor)[];
16
+ default: string;
17
+ };
18
+ center: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ width: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ height: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: number;
29
+ };
30
+ minWidth: {
31
+ type: (NumberConstructor | StringConstructor)[];
32
+ default: number;
33
+ };
34
+ minHeight: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: number;
37
+ };
38
+ title: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ mask: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ destroyOnClosed: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ onBeforeCancel: {
51
+ type: FunctionConstructor;
52
+ };
53
+ maskToClose: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ escToClose: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ fullscreen: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ messageBox: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ popupClass: {
70
+ type: StringConstructor;
71
+ default: undefined;
72
+ };
73
+ showClose: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ showHeaderBottomLine: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ }>, {
82
+ cls: import('vue').ComputedRef<(string | false | undefined)[]>;
83
+ ns: string;
84
+ cn: {
85
+ block: string;
86
+ element: (className: string) => string;
87
+ modifier: (className: string) => string;
88
+ is: (className: string) => string;
89
+ };
90
+ cnOMB: {
91
+ block: string;
92
+ element: (className: string) => string;
93
+ modifier: (className: string) => string;
94
+ is: (className: string) => string;
95
+ };
96
+ messageBoxNs: string;
97
+ containerStyle: import('vue').ComputedRef<import('vue').CSSProperties>;
98
+ dialogStyle: import('vue').ComputedRef<import('vue').CSSProperties>;
99
+ dialogRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
100
+ teleportContainer: import('vue').ComputedRef<HTMLElement | undefined>;
101
+ teleportDisabled: import('vue').ComputedRef<boolean>;
102
+ modelVisible: import('vue').ComputedRef<boolean>;
103
+ mergeVisible: import('vue').ComputedRef<boolean>;
104
+ interceptClose: (action: "cancel" | "ok", e?: Event) => void;
105
+ afterLeave: () => void;
106
+ afterEnter: () => void;
107
+ handleMaskClick: () => void;
108
+ handleCancel: (e: Event) => void;
109
+ handleOk: (e: Event) => void;
110
+ loadingObj: {
111
+ ok: boolean;
112
+ cancel: boolean;
113
+ };
114
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "open" | "closed" | "opened" | "update:modelValue")[], "close" | "open" | "closed" | "opened" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
115
+ renderTo: {
116
+ type: import('vue').PropType<string | HTMLElement>;
117
+ default: string;
118
+ };
119
+ disabled: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ modelValue: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ top: {
128
+ type: (NumberConstructor | StringConstructor)[];
129
+ default: string;
130
+ };
131
+ center: {
132
+ type: BooleanConstructor;
133
+ default: boolean;
134
+ };
135
+ width: {
136
+ type: (NumberConstructor | StringConstructor)[];
137
+ default: number;
138
+ };
139
+ height: {
140
+ type: (NumberConstructor | StringConstructor)[];
141
+ default: number;
142
+ };
143
+ minWidth: {
144
+ type: (NumberConstructor | StringConstructor)[];
145
+ default: number;
146
+ };
147
+ minHeight: {
148
+ type: (NumberConstructor | StringConstructor)[];
149
+ default: number;
150
+ };
151
+ title: {
152
+ type: StringConstructor;
153
+ default: string;
154
+ };
155
+ mask: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ destroyOnClosed: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ onBeforeCancel: {
164
+ type: FunctionConstructor;
165
+ };
166
+ maskToClose: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ escToClose: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ fullscreen: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ messageBox: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ popupClass: {
183
+ type: StringConstructor;
184
+ default: undefined;
185
+ };
186
+ showClose: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
190
+ showHeaderBottomLine: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ }>> & Readonly<{
195
+ onClose?: ((...args: any[]) => any) | undefined;
196
+ onOpen?: ((...args: any[]) => any) | undefined;
197
+ onClosed?: ((...args: any[]) => any) | undefined;
198
+ onOpened?: ((...args: any[]) => any) | undefined;
199
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
200
+ }>, {
201
+ title: string;
202
+ mask: boolean;
203
+ disabled: boolean;
204
+ height: string | number;
205
+ minHeight: string | number;
206
+ minWidth: string | number;
207
+ top: string | number;
208
+ width: string | number;
209
+ center: boolean;
210
+ renderTo: string | HTMLElement;
211
+ modelValue: boolean;
212
+ destroyOnClosed: boolean;
213
+ maskToClose: boolean;
214
+ escToClose: boolean;
215
+ fullscreen: boolean;
216
+ messageBox: boolean;
217
+ popupClass: string;
218
+ showClose: boolean;
219
+ showHeaderBottomLine: boolean;
220
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
221
+ export default _default;
@@ -0,0 +1,83 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const dialogProps: {
3
+ renderTo: {
4
+ type: import('vue').PropType<string | HTMLElement>;
5
+ default: string;
6
+ };
7
+ disabled: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ modelValue: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ top: {
16
+ type: (NumberConstructor | StringConstructor)[];
17
+ default: string;
18
+ };
19
+ center: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ width: {
24
+ type: (NumberConstructor | StringConstructor)[];
25
+ default: number;
26
+ };
27
+ height: {
28
+ type: (NumberConstructor | StringConstructor)[];
29
+ default: number;
30
+ };
31
+ minWidth: {
32
+ type: (NumberConstructor | StringConstructor)[];
33
+ default: number;
34
+ };
35
+ minHeight: {
36
+ type: (NumberConstructor | StringConstructor)[];
37
+ default: number;
38
+ };
39
+ title: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ mask: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ destroyOnClosed: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ onBeforeCancel: {
52
+ type: FunctionConstructor;
53
+ };
54
+ maskToClose: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ escToClose: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ fullscreen: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ messageBox: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ popupClass: {
71
+ type: StringConstructor;
72
+ default: undefined;
73
+ };
74
+ showClose: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ showHeaderBottomLine: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ };
83
+ export type DialogProps = ExtractPropTypes<typeof dialogProps>;
@@ -0,0 +1,33 @@
1
+ import { RenderFunction, VNode } from 'vue';
2
+ export type DialogBeforeAction = () => boolean | Promise<boolean>;
3
+ export type DialogContent = string | number | VNode | RenderFunction;
4
+ export interface DialogOptions {
5
+ title?: DialogContent;
6
+ content?: DialogContent;
7
+ footer?: boolean | ((scoped: DialogFooterScoped) => VNode);
8
+ okText?: string;
9
+ cancelText?: string;
10
+ mask?: boolean;
11
+ maskToClose?: boolean;
12
+ onOk?: (e: Event) => void;
13
+ beforeOnOk?: DialogBeforeAction;
14
+ onCancel?: (e: Event) => void;
15
+ beforeOnCancel?: DialogBeforeAction;
16
+ width?: number | string;
17
+ height?: number | string;
18
+ top?: number | string;
19
+ center?: boolean;
20
+ renderTo?: string | HTMLElement;
21
+ hideCancel?: boolean;
22
+ hideOk?: boolean;
23
+ popupClass?: string;
24
+ }
25
+ export type DialogFooterAction = 'cancel' | 'ok';
26
+ export interface DialogFooterScoped {
27
+ cancel(): void;
28
+ ok(): void;
29
+ loadingObj?: {
30
+ ok: boolean;
31
+ cancel: boolean;
32
+ };
33
+ }
@@ -0,0 +1,3 @@
1
+ import { DialogOptions } from './use-props';
2
+ declare const _default: (options: DialogOptions) => void;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as Dialog } from './use';
2
+ export default Dialog;