x-next 0.0.0-alpha.2 → 0.0.0-alpha.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/README.md +15 -84
  2. package/dist/{types/_hooks → _hooks}/use-overflow.d.ts +1 -1
  3. package/dist/{types/_hooks → _hooks}/use-popup-manager.d.ts +1 -1
  4. package/dist/{types/_utils → _utils}/config.d.ts +1 -1
  5. package/dist/{types/_utils → _utils}/dom.d.ts +1 -1
  6. package/dist/{types/_utils → _utils}/is.d.ts +5 -6
  7. package/dist/{types/_utils → _utils}/keyboard.d.ts +1 -1
  8. package/dist/{types/_utils → _utils}/vue-eco.d.ts +10 -11
  9. package/dist/{types/componets/button/index.vue.d.ts → components/button/Button.d.ts} +18 -28
  10. package/dist/components/button/index.d.ts +181 -0
  11. package/dist/{types/componets → components}/button/props.d.ts +4 -4
  12. package/dist/{types/componets/dialog/index.vue.d.ts → components/dialog/Dialog.d.ts} +9 -42
  13. package/dist/components/dialog/index.d.ts +334 -0
  14. package/dist/{types/componets → components}/dialog/props.d.ts +7 -7
  15. package/dist/{types/componets → components}/dialog/use-props.d.ts +1 -1
  16. package/dist/{types/componets → components}/dialog/use.d.ts +1 -1
  17. package/dist/components/dialog/warp.d.ts +2 -0
  18. package/dist/components/index.d.ts +6 -0
  19. package/dist/{types/componets/message/index.vue.d.ts → components/message/Message.d.ts} +19 -27
  20. package/dist/components/message/MessageVue.vue.d.ts +362 -0
  21. package/dist/components/message/index.d.ts +193 -0
  22. package/dist/{types/componets → components}/message/props.d.ts +1 -1
  23. package/dist/{types/componets → components}/message/warp.d.ts +1 -1
  24. package/dist/{types/componets/message-box/index.d.ts → components/message-box/MessageBox.d.ts} +1 -1
  25. package/dist/components/message-box/index.d.ts +4 -0
  26. package/dist/{types/componets → components}/message-box/props.d.ts +1 -1
  27. package/dist/components/message-box/warp.d.ts +2 -0
  28. package/dist/components/notification/Notification.d.ts +89 -0
  29. package/dist/components/notification/index.d.ts +166 -0
  30. package/dist/{types/componets → components}/notification/props.d.ts +2 -2
  31. package/dist/{types/componets → components}/notification/warp.d.ts +1 -1
  32. package/dist/{types/componets/space/index.d.ts → components/space/Space.d.ts} +9 -9
  33. package/dist/components/space/index.d.ts +82 -0
  34. package/dist/{types/componets → components}/trend-chart/components/trend-chart-curve.d.ts +17 -17
  35. package/dist/{types/componets → components}/trend-chart/components/trend-chart-grid.d.ts +7 -7
  36. package/dist/{types/componets → components}/trend-chart/components/trend-chart-labels.d.ts +7 -7
  37. package/dist/{types/componets → components}/trend-chart/components/trend-chart.d.ts +47 -47
  38. package/dist/{types/componets → components}/trend-chart/helpers/genPoints.d.ts +1 -1
  39. package/dist/components/trend-chart/index.d.ts +2 -0
  40. package/dist/{types/componets → components}/trend-chart/props.d.ts +2 -2
  41. package/dist/directives/clipboard/cache.d.ts +8 -0
  42. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  43. package/dist/directives/clipboard/convert.d.ts +3 -0
  44. package/dist/directives/clipboard/index.d.ts +3 -0
  45. package/dist/directives/clipboard/plugin.d.ts +2 -0
  46. package/dist/directives/clipboard/textarea.d.ts +3 -0
  47. package/dist/{types/icons/default/exclamation-circle-fill.vue.d.ts → icons/animation/animation-loading.d.ts} +5 -10
  48. package/dist/{types/icons/default/close-circle-fill.vue.d.ts → icons/default/check-circle-fill.d.ts} +5 -10
  49. package/dist/{types/icons/animation/animation-loading.vue.d.ts → icons/default/close-circle-fill.d.ts} +5 -10
  50. package/dist/{types/icons/default/check-circle-fill.vue.d.ts → icons/default/exclamation-circle-fill.d.ts} +5 -10
  51. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  52. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  53. package/dist/icons/icon.d.ts +51 -0
  54. package/dist/icons/index.d.ts +7 -0
  55. package/dist/index.d.ts +12 -0
  56. package/dist/index.es.js +1368 -0
  57. package/dist/index.umd.js +1 -0
  58. package/dist/style.css +1 -0
  59. package/dist/types.d.ts +11 -0
  60. package/package.json +45 -48
  61. package/volar.d.ts +12 -0
  62. package/LICENSE +0 -21
  63. package/dist/favicon.ico +0 -0
  64. package/dist/types/_utils/icon.d.ts +0 -59
  65. package/dist/types/componets/dialog/warp.d.ts +0 -2
  66. package/dist/types/componets/message-box/warp.d.ts +0 -2
  67. package/dist/types/componets/notification/index.vue.d.ts +0 -160
  68. package/dist/types/componets/trend-chart/index.d.ts +0 -2
  69. package/dist/types/icons/default/info-circle-fill.vue.d.ts +0 -55
  70. package/dist/types/icons/default/minus-circle-fill.vue.d.ts +0 -55
  71. package/dist/types/icons/index.d.ts +0 -7
  72. package/dist/types/ui.d.ts +0 -5
  73. package/dist/ui.cjs.js +0 -2
  74. package/dist/ui.es.js +0 -1395
  75. package/dist/ui.umd.js +0 -3
  76. /package/dist/{types/_props → _props}/css.d.ts +0 -0
  77. /package/dist/{types/_props → _props}/global.d.ts +0 -0
  78. /package/dist/{types/_utils → _utils}/convert-case.d.ts +0 -0
  79. /package/dist/{types/_utils → _utils}/helpers.d.ts +0 -0
  80. /package/dist/{types/_utils → _utils}/number.d.ts +0 -0
  81. /package/dist/{types/componets → components}/tag-cloud/index.d.ts +0 -0
  82. /package/dist/{types/componets → components}/trend-chart/helpers/genPath.d.ts +0 -0
  83. /package/dist/{types/componets → components}/trend-chart/helpers/getPadding.d.ts +0 -0
  84. /package/dist/{types/componets → components}/trend-chart/helpers/validatePadding.d.ts +0 -0
@@ -0,0 +1,334 @@
1
+ export declare const XDialog: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
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
+ }>> & Readonly<{
83
+ onClose?: ((...args: any[]) => any) | undefined;
84
+ onOpen?: ((...args: any[]) => any) | undefined;
85
+ onClosed?: ((...args: any[]) => any) | undefined;
86
+ onOpened?: ((...args: any[]) => any) | undefined;
87
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
88
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "open" | "closed" | "opened" | "update:modelValue")[], import('vue').PublicProps, {
89
+ title: string;
90
+ disabled: boolean;
91
+ height: string | number;
92
+ minHeight: string | number;
93
+ minWidth: string | number;
94
+ top: string | number;
95
+ width: string | number;
96
+ mask: boolean;
97
+ center: boolean;
98
+ renderTo: string | HTMLElement;
99
+ modelValue: boolean;
100
+ destroyOnClosed: boolean;
101
+ maskToClose: boolean;
102
+ escToClose: boolean;
103
+ fullscreen: boolean;
104
+ messageBox: boolean;
105
+ popupClass: string;
106
+ showClose: boolean;
107
+ showHeaderBottomLine: boolean;
108
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
109
+ P: {};
110
+ B: {};
111
+ D: {};
112
+ C: {};
113
+ M: {};
114
+ Defaults: {};
115
+ }, Readonly<import('vue').ExtractPropTypes<{
116
+ renderTo: {
117
+ type: import('vue').PropType<string | HTMLElement>;
118
+ default: string;
119
+ };
120
+ disabled: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ modelValue: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ top: {
129
+ type: (NumberConstructor | StringConstructor)[];
130
+ default: string;
131
+ };
132
+ center: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ width: {
137
+ type: (NumberConstructor | StringConstructor)[];
138
+ default: number;
139
+ };
140
+ height: {
141
+ type: (NumberConstructor | StringConstructor)[];
142
+ default: number;
143
+ };
144
+ minWidth: {
145
+ type: (NumberConstructor | StringConstructor)[];
146
+ default: number;
147
+ };
148
+ minHeight: {
149
+ type: (NumberConstructor | StringConstructor)[];
150
+ default: number;
151
+ };
152
+ title: {
153
+ type: StringConstructor;
154
+ default: string;
155
+ };
156
+ mask: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ destroyOnClosed: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ onBeforeCancel: {
165
+ type: FunctionConstructor;
166
+ };
167
+ maskToClose: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ escToClose: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ fullscreen: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ messageBox: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ popupClass: {
184
+ type: StringConstructor;
185
+ default: undefined;
186
+ };
187
+ showClose: {
188
+ type: BooleanConstructor;
189
+ default: boolean;
190
+ };
191
+ showHeaderBottomLine: {
192
+ type: BooleanConstructor;
193
+ default: boolean;
194
+ };
195
+ }>> & Readonly<{
196
+ onClose?: ((...args: any[]) => any) | undefined;
197
+ onOpen?: ((...args: any[]) => any) | undefined;
198
+ onClosed?: ((...args: any[]) => any) | undefined;
199
+ onOpened?: ((...args: any[]) => any) | undefined;
200
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
201
+ }>, () => any, {}, {}, {}, {
202
+ title: string;
203
+ disabled: boolean;
204
+ height: string | number;
205
+ minHeight: string | number;
206
+ minWidth: string | number;
207
+ top: string | number;
208
+ width: string | number;
209
+ mask: boolean;
210
+ center: boolean;
211
+ renderTo: string | HTMLElement;
212
+ modelValue: boolean;
213
+ destroyOnClosed: boolean;
214
+ maskToClose: boolean;
215
+ escToClose: boolean;
216
+ fullscreen: boolean;
217
+ messageBox: boolean;
218
+ popupClass: string;
219
+ showClose: boolean;
220
+ showHeaderBottomLine: boolean;
221
+ }>;
222
+ __isFragment?: never;
223
+ __isTeleport?: never;
224
+ __isSuspense?: never;
225
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
226
+ renderTo: {
227
+ type: import('vue').PropType<string | HTMLElement>;
228
+ default: string;
229
+ };
230
+ disabled: {
231
+ type: BooleanConstructor;
232
+ default: boolean;
233
+ };
234
+ modelValue: {
235
+ type: BooleanConstructor;
236
+ default: boolean;
237
+ };
238
+ top: {
239
+ type: (NumberConstructor | StringConstructor)[];
240
+ default: string;
241
+ };
242
+ center: {
243
+ type: BooleanConstructor;
244
+ default: boolean;
245
+ };
246
+ width: {
247
+ type: (NumberConstructor | StringConstructor)[];
248
+ default: number;
249
+ };
250
+ height: {
251
+ type: (NumberConstructor | StringConstructor)[];
252
+ default: number;
253
+ };
254
+ minWidth: {
255
+ type: (NumberConstructor | StringConstructor)[];
256
+ default: number;
257
+ };
258
+ minHeight: {
259
+ type: (NumberConstructor | StringConstructor)[];
260
+ default: number;
261
+ };
262
+ title: {
263
+ type: StringConstructor;
264
+ default: string;
265
+ };
266
+ mask: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
270
+ destroyOnClosed: {
271
+ type: BooleanConstructor;
272
+ default: boolean;
273
+ };
274
+ onBeforeCancel: {
275
+ type: FunctionConstructor;
276
+ };
277
+ maskToClose: {
278
+ type: BooleanConstructor;
279
+ default: boolean;
280
+ };
281
+ escToClose: {
282
+ type: BooleanConstructor;
283
+ default: boolean;
284
+ };
285
+ fullscreen: {
286
+ type: BooleanConstructor;
287
+ default: boolean;
288
+ };
289
+ messageBox: {
290
+ type: BooleanConstructor;
291
+ default: boolean;
292
+ };
293
+ popupClass: {
294
+ type: StringConstructor;
295
+ default: undefined;
296
+ };
297
+ showClose: {
298
+ type: BooleanConstructor;
299
+ default: boolean;
300
+ };
301
+ showHeaderBottomLine: {
302
+ type: BooleanConstructor;
303
+ default: boolean;
304
+ };
305
+ }>> & Readonly<{
306
+ onClose?: ((...args: any[]) => any) | undefined;
307
+ onOpen?: ((...args: any[]) => any) | undefined;
308
+ onClosed?: ((...args: any[]) => any) | undefined;
309
+ onOpened?: ((...args: any[]) => any) | undefined;
310
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
311
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "open" | "closed" | "opened" | "update:modelValue")[], "close" | "open" | "closed" | "opened" | "update:modelValue", {
312
+ title: string;
313
+ disabled: boolean;
314
+ height: string | number;
315
+ minHeight: string | number;
316
+ minWidth: string | number;
317
+ top: string | number;
318
+ width: string | number;
319
+ mask: boolean;
320
+ center: boolean;
321
+ renderTo: string | HTMLElement;
322
+ modelValue: boolean;
323
+ destroyOnClosed: boolean;
324
+ maskToClose: boolean;
325
+ escToClose: boolean;
326
+ fullscreen: boolean;
327
+ messageBox: boolean;
328
+ popupClass: string;
329
+ showClose: boolean;
330
+ showHeaderBottomLine: boolean;
331
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
332
+ install(app: import('vue').App): void;
333
+ };
334
+ export { XDialog as default };
@@ -1,7 +1,7 @@
1
- import type { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  export declare const dialogProps: {
3
3
  renderTo: {
4
- type: import("vue").PropType<string | HTMLElement>;
4
+ type: import('vue').PropType<string | HTMLElement>;
5
5
  default: string;
6
6
  };
7
7
  disabled: {
@@ -13,7 +13,7 @@ export declare const dialogProps: {
13
13
  default: boolean;
14
14
  };
15
15
  top: {
16
- type: (StringConstructor | NumberConstructor)[];
16
+ type: (NumberConstructor | StringConstructor)[];
17
17
  default: string;
18
18
  };
19
19
  center: {
@@ -21,19 +21,19 @@ export declare const dialogProps: {
21
21
  default: boolean;
22
22
  };
23
23
  width: {
24
- type: (StringConstructor | NumberConstructor)[];
24
+ type: (NumberConstructor | StringConstructor)[];
25
25
  default: number;
26
26
  };
27
27
  height: {
28
- type: (StringConstructor | NumberConstructor)[];
28
+ type: (NumberConstructor | StringConstructor)[];
29
29
  default: number;
30
30
  };
31
31
  minWidth: {
32
- type: (StringConstructor | NumberConstructor)[];
32
+ type: (NumberConstructor | StringConstructor)[];
33
33
  default: number;
34
34
  };
35
35
  minHeight: {
36
- type: (StringConstructor | NumberConstructor)[];
36
+ type: (NumberConstructor | StringConstructor)[];
37
37
  default: number;
38
38
  };
39
39
  title: {
@@ -1,4 +1,4 @@
1
- import type { RenderFunction, VNode } from 'vue';
1
+ import { RenderFunction, VNode } from 'vue';
2
2
  export type DialogBeforeAction = () => boolean | Promise<boolean>;
3
3
  export type DialogContent = string | number | VNode | RenderFunction;
4
4
  export interface DialogOptions {
@@ -1,3 +1,3 @@
1
- import type { DialogOptions } from './use-props';
1
+ import { DialogOptions } from './use-props';
2
2
  declare const _default: (options: DialogOptions) => void;
3
3
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as Dialog } from './use';
2
+ export default Dialog;
@@ -0,0 +1,6 @@
1
+ export * from './button';
2
+ export * from './dialog';
3
+ export * from './message';
4
+ export * from './message-box';
5
+ export * from './notification';
6
+ export * from './space';
@@ -1,6 +1,6 @@
1
- import type { PropType } from 'vue';
2
- import type { IMessage } from './props';
3
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ import { PropType } from 'vue';
2
+ import { IMessageType, IMessage } from './props';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  id: {
5
5
  type: StringConstructor;
6
6
  default: string;
@@ -10,7 +10,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
10
10
  default: string;
11
11
  };
12
12
  type: {
13
- type: PropType<"success" | "error" | "warning" | "strong" | "info">;
13
+ type: PropType<IMessageType>;
14
14
  default: string;
15
15
  };
16
16
  duration: {
@@ -37,26 +37,15 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
37
37
  type: BooleanConstructor;
38
38
  default: boolean;
39
39
  };
40
- useHTML: BooleanConstructor;
40
+ useHTML: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
41
44
  popupClass: {
42
45
  type: StringConstructor;
43
46
  default: undefined;
44
47
  };
45
- }>, {
46
- cn: {
47
- block: string;
48
- element: (className: string) => string;
49
- modifier: (className: string) => string;
50
- is: (className: string) => string;
51
- };
52
- cls: import("vue").ComputedRef<(string | false | undefined)[]>;
53
- styles: import("vue").ComputedRef<{
54
- top: string;
55
- zIndex: number;
56
- }>;
57
- visible: import("vue").Ref<boolean, boolean>;
58
- handleClose: () => void;
59
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "destroy"[], "destroy", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "destroy"[], "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
60
49
  id: {
61
50
  type: StringConstructor;
62
51
  default: string;
@@ -66,7 +55,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
66
55
  default: string;
67
56
  };
68
57
  type: {
69
- type: PropType<"success" | "error" | "warning" | "strong" | "info">;
58
+ type: PropType<IMessageType>;
70
59
  default: string;
71
60
  };
72
61
  duration: {
@@ -93,7 +82,10 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
93
82
  type: BooleanConstructor;
94
83
  default: boolean;
95
84
  };
96
- useHTML: BooleanConstructor;
85
+ useHTML: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
97
89
  popupClass: {
98
90
  type: StringConstructor;
99
91
  default: undefined;
@@ -101,16 +93,16 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
101
93
  }>> & Readonly<{
102
94
  onDestroy?: ((...args: any[]) => any) | undefined;
103
95
  }>, {
96
+ type: "success" | "warning" | "strong" | "info" | "error";
97
+ message: IMessage;
104
98
  zIndex: number;
105
99
  offset: number;
106
100
  center: boolean;
107
- message: IMessage;
108
- type: "success" | "error" | "warning" | "strong" | "info";
109
101
  popupClass: string;
110
102
  showClose: boolean;
111
103
  onClose: () => void;
112
- useHTML: boolean;
113
104
  id: string;
114
105
  duration: number;
115
- }, {}, Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
116
- export default _sfc_main;
106
+ useHTML: boolean;
107
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
108
+ export default _default;