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,387 @@
1
+ import { PropType } from 'vue';
2
+ import { IMessageType, IMessage } from './props';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ id: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ message: {
9
+ type: PropType<IMessage>;
10
+ default: string;
11
+ };
12
+ type: {
13
+ type: PropType<IMessageType>;
14
+ default: string;
15
+ };
16
+ duration: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ center: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ onClose: {
25
+ type: PropType<() => void>;
26
+ default: () => void;
27
+ };
28
+ offset: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ zIndex: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ showClose: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ useHTML: BooleanConstructor;
41
+ popupClass: {
42
+ type: StringConstructor;
43
+ default: undefined;
44
+ };
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<{
60
+ id: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ message: {
65
+ type: PropType<IMessage>;
66
+ default: string;
67
+ };
68
+ type: {
69
+ type: PropType<IMessageType>;
70
+ default: string;
71
+ };
72
+ duration: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ center: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ onClose: {
81
+ type: PropType<() => void>;
82
+ default: () => void;
83
+ };
84
+ offset: {
85
+ type: NumberConstructor;
86
+ default: number;
87
+ };
88
+ zIndex: {
89
+ type: NumberConstructor;
90
+ default: number;
91
+ };
92
+ showClose: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ useHTML: BooleanConstructor;
97
+ popupClass: {
98
+ type: StringConstructor;
99
+ default: undefined;
100
+ };
101
+ }>> & Readonly<{
102
+ onDestroy?: ((...args: any[]) => any) | undefined;
103
+ }>, {
104
+ type: "success" | "warning" | "strong" | "info" | "error";
105
+ message: IMessage;
106
+ zIndex: number;
107
+ offset: number;
108
+ center: boolean;
109
+ popupClass: string;
110
+ showClose: boolean;
111
+ onClose: () => void;
112
+ useHTML: boolean;
113
+ id: string;
114
+ duration: number;
115
+ }, {}, {
116
+ CloseCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
117
+ size: {
118
+ type: (NumberConstructor | StringConstructor)[];
119
+ default: undefined;
120
+ };
121
+ rotate: {
122
+ type: NumberConstructor;
123
+ default: undefined;
124
+ };
125
+ spin: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ color: {
130
+ type: StringConstructor;
131
+ default: undefined;
132
+ };
133
+ fillColor: {
134
+ type: ArrayConstructor;
135
+ default: undefined;
136
+ };
137
+ }>, {
138
+ cls: import('vue').ComputedRef<(string | {
139
+ "x-icon-loading": boolean;
140
+ })[]>;
141
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
142
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
143
+ size: {
144
+ type: (NumberConstructor | StringConstructor)[];
145
+ default: undefined;
146
+ };
147
+ rotate: {
148
+ type: NumberConstructor;
149
+ default: undefined;
150
+ };
151
+ spin: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ color: {
156
+ type: StringConstructor;
157
+ default: undefined;
158
+ };
159
+ fillColor: {
160
+ type: ArrayConstructor;
161
+ default: undefined;
162
+ };
163
+ }>> & Readonly<{}>, {
164
+ size: string | number;
165
+ rotate: number;
166
+ spin: boolean;
167
+ color: string;
168
+ fillColor: unknown[];
169
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
170
+ CheckCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
171
+ size: {
172
+ type: (NumberConstructor | StringConstructor)[];
173
+ default: undefined;
174
+ };
175
+ rotate: {
176
+ type: NumberConstructor;
177
+ default: undefined;
178
+ };
179
+ spin: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ color: {
184
+ type: StringConstructor;
185
+ default: undefined;
186
+ };
187
+ fillColor: {
188
+ type: ArrayConstructor;
189
+ default: undefined;
190
+ };
191
+ }>, {
192
+ cls: import('vue').ComputedRef<(string | {
193
+ "x-icon-loading": boolean;
194
+ })[]>;
195
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
196
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
197
+ size: {
198
+ type: (NumberConstructor | StringConstructor)[];
199
+ default: undefined;
200
+ };
201
+ rotate: {
202
+ type: NumberConstructor;
203
+ default: undefined;
204
+ };
205
+ spin: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ color: {
210
+ type: StringConstructor;
211
+ default: undefined;
212
+ };
213
+ fillColor: {
214
+ type: ArrayConstructor;
215
+ default: undefined;
216
+ };
217
+ }>> & Readonly<{}>, {
218
+ size: string | number;
219
+ rotate: number;
220
+ spin: boolean;
221
+ color: string;
222
+ fillColor: unknown[];
223
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
224
+ ExclamationCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
225
+ size: {
226
+ type: (NumberConstructor | StringConstructor)[];
227
+ default: undefined;
228
+ };
229
+ rotate: {
230
+ type: NumberConstructor;
231
+ default: undefined;
232
+ };
233
+ spin: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ color: {
238
+ type: StringConstructor;
239
+ default: undefined;
240
+ };
241
+ fillColor: {
242
+ type: ArrayConstructor;
243
+ default: undefined;
244
+ };
245
+ }>, {
246
+ cls: import('vue').ComputedRef<(string | {
247
+ "x-icon-loading": boolean;
248
+ })[]>;
249
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
250
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
251
+ size: {
252
+ type: (NumberConstructor | StringConstructor)[];
253
+ default: undefined;
254
+ };
255
+ rotate: {
256
+ type: NumberConstructor;
257
+ default: undefined;
258
+ };
259
+ spin: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ color: {
264
+ type: StringConstructor;
265
+ default: undefined;
266
+ };
267
+ fillColor: {
268
+ type: ArrayConstructor;
269
+ default: undefined;
270
+ };
271
+ }>> & Readonly<{}>, {
272
+ size: string | number;
273
+ rotate: number;
274
+ spin: boolean;
275
+ color: string;
276
+ fillColor: unknown[];
277
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
278
+ InfoCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
279
+ size: {
280
+ type: (NumberConstructor | StringConstructor)[];
281
+ default: undefined;
282
+ };
283
+ rotate: {
284
+ type: NumberConstructor;
285
+ default: undefined;
286
+ };
287
+ spin: {
288
+ type: BooleanConstructor;
289
+ default: boolean;
290
+ };
291
+ color: {
292
+ type: StringConstructor;
293
+ default: undefined;
294
+ };
295
+ fillColor: {
296
+ type: ArrayConstructor;
297
+ default: undefined;
298
+ };
299
+ }>, {
300
+ cls: import('vue').ComputedRef<(string | {
301
+ "x-icon-loading": boolean;
302
+ })[]>;
303
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
304
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
305
+ size: {
306
+ type: (NumberConstructor | StringConstructor)[];
307
+ default: undefined;
308
+ };
309
+ rotate: {
310
+ type: NumberConstructor;
311
+ default: undefined;
312
+ };
313
+ spin: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ color: {
318
+ type: StringConstructor;
319
+ default: undefined;
320
+ };
321
+ fillColor: {
322
+ type: ArrayConstructor;
323
+ default: undefined;
324
+ };
325
+ }>> & Readonly<{}>, {
326
+ size: string | number;
327
+ rotate: number;
328
+ spin: boolean;
329
+ color: string;
330
+ fillColor: unknown[];
331
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
332
+ MinusCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
333
+ size: {
334
+ type: (NumberConstructor | StringConstructor)[];
335
+ default: undefined;
336
+ };
337
+ rotate: {
338
+ type: NumberConstructor;
339
+ default: undefined;
340
+ };
341
+ spin: {
342
+ type: BooleanConstructor;
343
+ default: boolean;
344
+ };
345
+ color: {
346
+ type: StringConstructor;
347
+ default: undefined;
348
+ };
349
+ fillColor: {
350
+ type: ArrayConstructor;
351
+ default: undefined;
352
+ };
353
+ }>, {
354
+ cls: import('vue').ComputedRef<(string | {
355
+ "x-icon-loading": boolean;
356
+ })[]>;
357
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
358
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
359
+ size: {
360
+ type: (NumberConstructor | StringConstructor)[];
361
+ default: undefined;
362
+ };
363
+ rotate: {
364
+ type: NumberConstructor;
365
+ default: undefined;
366
+ };
367
+ spin: {
368
+ type: BooleanConstructor;
369
+ default: boolean;
370
+ };
371
+ color: {
372
+ type: StringConstructor;
373
+ default: undefined;
374
+ };
375
+ fillColor: {
376
+ type: ArrayConstructor;
377
+ default: undefined;
378
+ };
379
+ }>> & Readonly<{}>, {
380
+ size: string | number;
381
+ rotate: number;
382
+ spin: boolean;
383
+ color: string;
384
+ fillColor: unknown[];
385
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
386
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
387
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { RenderFunction, VNode } from 'vue';
2
+ export declare const messageTypes: readonly ["success", "warning", "error", "strong", "info"];
3
+ export type IMessageType = (typeof messageTypes)[number];
4
+ export type IMessage = string | number | VNode | RenderFunction;
5
+ export interface IMessageOptions {
6
+ id?: string;
7
+ message?: IMessage;
8
+ type?: IMessageType;
9
+ duration?: number;
10
+ center?: boolean;
11
+ onClose?: (vm?: VNode) => void;
12
+ offset?: number;
13
+ renderTo?: string | HTMLElement;
14
+ showClose?: Boolean;
15
+ useHTML?: Boolean;
16
+ popupClass?: string;
17
+ }
18
+ export interface IMessageHandler {
19
+ close: () => void;
20
+ }
21
+ export interface IMessageCaller {
22
+ (options: IMessageParams): IMessageHandler;
23
+ }
24
+ export interface IMessageMethods extends IMessageCaller {
25
+ success(message: IMessage | IMessageOptions): IMessageHandler;
26
+ error(message: IMessage | IMessageOptions): IMessageHandler;
27
+ warning(message: IMessage | IMessageOptions): IMessageHandler;
28
+ strong(message: IMessage | IMessageOptions): IMessageHandler;
29
+ info(message: IMessage | IMessageOptions): IMessageHandler;
30
+ }
31
+ export type IMessageParams = IMessageOptions | string;
@@ -0,0 +1,3 @@
1
+ import { IMessageMethods } from './props';
2
+ declare const _default: IMessageMethods;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { MessageBoxMethods } from './props';
2
+ declare const _default: MessageBoxMethods;
3
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { RenderFunction, VNode } from 'vue';
2
+ export declare const messageBoxStaticMethods: readonly ["info", "success", "warning", "strong", "error"];
3
+ export type MessageBoxStaticMethod = (typeof messageBoxStaticMethods)[number];
4
+ export type MessageBoxBeforeAction = () => boolean | Promise<boolean>;
5
+ export type MessageBoxContent = string | number | VNode | RenderFunction;
6
+ export interface MessageBoxOptions {
7
+ title?: MessageBoxContent;
8
+ type?: MessageBoxStaticMethod;
9
+ content?: MessageBoxContent;
10
+ footer?: boolean | ((scoped: MessageBoxFooterScoped) => VNode);
11
+ okText?: string;
12
+ cancelText?: string;
13
+ mask?: boolean;
14
+ maskToClose?: boolean;
15
+ onOk?: (e: Event) => void;
16
+ beforeOnOk?: MessageBoxBeforeAction;
17
+ onCancel?: (e: Event) => void;
18
+ beforeOnCancel?: MessageBoxBeforeAction;
19
+ width?: number | string;
20
+ height?: number | string;
21
+ top?: number | string;
22
+ center?: boolean;
23
+ renderTo?: string | HTMLElement;
24
+ hideCancel?: boolean;
25
+ hideOk?: boolean;
26
+ popupClass?: string;
27
+ }
28
+ export type MessageBoxFooterAction = 'cancel' | 'ok';
29
+ export interface MessageBoxFooterScoped {
30
+ cancel(): void;
31
+ ok(): void;
32
+ loadingObj?: {
33
+ ok: boolean;
34
+ cancel: boolean;
35
+ };
36
+ }
37
+ export interface MessageBoxCaller {
38
+ (options: MessageBoxOptions): void;
39
+ }
40
+ export type MessageBoxChainArgs = [() => boolean | Promise<boolean>, () => void] | [() => void];
41
+ export interface MessageBoxMethodReturn {
42
+ ok(...args: MessageBoxChainArgs): any;
43
+ cancel(...args: MessageBoxChainArgs): any;
44
+ }
45
+ export interface MessageBoxMethods extends MessageBoxCaller {
46
+ info(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
47
+ success(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
48
+ warning(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
49
+ strong(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
50
+ error(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
51
+ }
52
+ export type MessageBoxMethodOption = string | MessageBoxOptions;
@@ -0,0 +1,2 @@
1
+ import { default as MessageBox } from './';
2
+ export default MessageBox;
@@ -0,0 +1,160 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ position: {
3
+ type: import('vue').PropType<import('./props').NotificationPosition>;
4
+ default: string;
5
+ };
6
+ offset: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ title: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ type: {
15
+ type: import('vue').PropType<import('./props').NotificationType>;
16
+ default: string;
17
+ };
18
+ message: {
19
+ type: StringConstructor;
20
+ default: undefined;
21
+ };
22
+ duration: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ showClose: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ onClose: {
31
+ type: import('vue').PropType<() => void>;
32
+ default: () => void;
33
+ };
34
+ renderToBody: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }>, {
39
+ ns: string;
40
+ cn: {
41
+ block: string;
42
+ element: (className: string) => string;
43
+ modifier: (className: string) => string;
44
+ is: (className: string) => string;
45
+ };
46
+ cls: import('vue').ComputedRef<string[]>;
47
+ animationClsName: import('vue').ComputedRef<string>;
48
+ positionStyle: import('vue').ComputedRef<import('vue').CSSProperties>;
49
+ visible: import('vue').Ref<boolean, boolean>;
50
+ positionPropMap: import('vue').ComputedRef<{
51
+ hor: string;
52
+ ver: string;
53
+ }>;
54
+ currentIcon: import('vue').ComputedRef<"" | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
55
+ size: {
56
+ type: (NumberConstructor | StringConstructor)[];
57
+ default: undefined;
58
+ };
59
+ rotate: {
60
+ type: NumberConstructor;
61
+ default: undefined;
62
+ };
63
+ spin: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ color: {
68
+ type: StringConstructor;
69
+ default: undefined;
70
+ };
71
+ fillColor: {
72
+ type: ArrayConstructor;
73
+ default: undefined;
74
+ };
75
+ }>, {
76
+ cls: import('vue').ComputedRef<(string | {
77
+ "x-icon-loading": boolean;
78
+ })[]>;
79
+ styles: import('vue').ComputedRef<import('vue').CSSProperties>;
80
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
81
+ size: {
82
+ type: (NumberConstructor | StringConstructor)[];
83
+ default: undefined;
84
+ };
85
+ rotate: {
86
+ type: NumberConstructor;
87
+ default: undefined;
88
+ };
89
+ spin: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ color: {
94
+ type: StringConstructor;
95
+ default: undefined;
96
+ };
97
+ fillColor: {
98
+ type: ArrayConstructor;
99
+ default: undefined;
100
+ };
101
+ }>> & Readonly<{}>, {
102
+ size: string | number;
103
+ rotate: number;
104
+ spin: boolean;
105
+ color: string;
106
+ fillColor: unknown[];
107
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
108
+ handleClose: () => void;
109
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "destroy")[], "close" | "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
110
+ position: {
111
+ type: import('vue').PropType<import('./props').NotificationPosition>;
112
+ default: string;
113
+ };
114
+ offset: {
115
+ type: NumberConstructor;
116
+ default: number;
117
+ };
118
+ title: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ type: {
123
+ type: import('vue').PropType<import('./props').NotificationType>;
124
+ default: string;
125
+ };
126
+ message: {
127
+ type: StringConstructor;
128
+ default: undefined;
129
+ };
130
+ duration: {
131
+ type: NumberConstructor;
132
+ default: number;
133
+ };
134
+ showClose: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ onClose: {
139
+ type: import('vue').PropType<() => void>;
140
+ default: () => void;
141
+ };
142
+ renderToBody: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ }>> & Readonly<{
147
+ onClose?: ((...args: any[]) => any) | undefined;
148
+ onDestroy?: ((...args: any[]) => any) | undefined;
149
+ }>, {
150
+ type: "success" | "warning" | "strong" | "info" | "error";
151
+ title: string;
152
+ message: string;
153
+ position: import('./props').NotificationPosition;
154
+ offset: number;
155
+ showClose: boolean;
156
+ onClose: () => void;
157
+ duration: number;
158
+ renderToBody: boolean;
159
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
160
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { ExtractPropTypes, PropType, RenderFunction, VNode } from 'vue';
2
+ export declare const types: readonly ["success", "strong", "warning", "error", "info"];
3
+ export type NotificationType = (typeof types)[number];
4
+ export interface NotificationOptions {
5
+ title?: string;
6
+ message: string | number | RenderFunction | VNode;
7
+ type?: NotificationType;
8
+ duration?: number;
9
+ position?: NotificationPosition;
10
+ offset?: number;
11
+ renderTo?: string | HTMLElement;
12
+ showClose?: boolean;
13
+ onClose?: (vm?: VNode) => void;
14
+ }
15
+ export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
16
+ export declare const notificationProps: {
17
+ position: {
18
+ type: PropType<NotificationPosition>;
19
+ default: string;
20
+ };
21
+ offset: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ title: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ type: {
30
+ type: PropType<NotificationType>;
31
+ default: string;
32
+ };
33
+ message: {
34
+ type: StringConstructor;
35
+ default: undefined;
36
+ };
37
+ duration: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ showClose: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ onClose: {
46
+ type: PropType<() => void>;
47
+ default: () => void;
48
+ };
49
+ renderToBody: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ };
54
+ export type NotificationProps = ExtractPropTypes<typeof notificationProps>;
@@ -0,0 +1,3 @@
1
+ import { NotificationOptions } from './props';
2
+ declare const Notification: (options: NotificationOptions) => void;
3
+ export default Notification;