x-next 0.0.0-alpha.16 → 0.0.0-alpha.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/components/button/Button.d.ts +2 -2
  2. package/dist/components/button/index.d.ts +6 -6
  3. package/dist/components/dialog/{index.vue.d.ts → Dialog.d.ts} +4 -37
  4. package/dist/components/dialog/index.d.ts +334 -0
  5. package/dist/components/index.d.ts +5 -0
  6. package/dist/components/message/Message.d.ts +102 -0
  7. package/dist/components/message/index.d.ts +184 -0
  8. package/dist/components/message-box/MessageBox.d.ts +3 -0
  9. package/dist/components/message-box/index.d.ts +4 -3
  10. package/dist/components/message-box/warp.d.ts +1 -1
  11. package/dist/components/notification/Notification.d.ts +89 -0
  12. package/dist/components/notification/index.d.ts +166 -0
  13. package/dist/components/space/Space.d.ts +42 -0
  14. package/dist/components/space/index.d.ts +65 -25
  15. package/dist/icons/animation/animation-loading.d.ts +48 -4
  16. package/dist/icons/default/{exclamation-circle-fill.vue.d.ts → check-circle-fill.d.ts} +2 -7
  17. package/dist/icons/{animation/animation-loading.vue.d.ts → default/close-circle-fill.d.ts} +2 -7
  18. package/dist/icons/default/{check-circle-fill.vue.d.ts → exclamation-circle-fill.d.ts} +2 -7
  19. package/dist/icons/default/{close-circle-fill.vue.d.ts → info-circle-fill.d.ts} +2 -7
  20. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  21. package/dist/icons/icon.d.ts +50 -0
  22. package/dist/icons/index.d.ts +6 -6
  23. package/dist/index.es.js +787 -944
  24. package/dist/index.umd.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types.d.ts +5 -0
  27. package/package.json +2 -2
  28. package/dist/_utils/icon.d.ts +0 -59
  29. package/dist/components/message/index.vue.d.ts +0 -387
  30. package/dist/components/notification/index.vue.d.ts +0 -160
  31. package/dist/icons/default/info-circle-fill.vue.d.ts +0 -55
  32. package/dist/icons/default/minus-circle-fill.vue.d.ts +0 -55
  33. package/dist/web-types.json +0 -11
@@ -82,14 +82,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
82
  onClick?: ((...args: any[]) => any) | undefined;
83
83
  }>, {
84
84
  size: import('./props').ButtonSize;
85
+ type: import('./props').ButtonType;
86
+ link: boolean;
85
87
  disabled: boolean;
86
88
  block: boolean;
87
89
  loading: boolean;
88
90
  loadingFill: boolean;
89
91
  debounce: number;
90
92
  shape: import('./props').ButtonShape;
91
- link: boolean;
92
- type: import('./props').ButtonType;
93
93
  status: import('./props').ButtonStatus;
94
94
  plain: boolean;
95
95
  border: boolean;
@@ -43,14 +43,14 @@ export declare const XButton: {
43
43
  onClick?: ((...args: any[]) => any) | undefined;
44
44
  }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
45
45
  size: import('./props.ts').ButtonSize;
46
+ type: import('./props.ts').ButtonType;
47
+ link: boolean;
46
48
  disabled: boolean;
47
49
  block: boolean;
48
50
  loading: boolean;
49
51
  loadingFill: boolean;
50
52
  debounce: number;
51
53
  shape: import('./props.ts').ButtonShape;
52
- link: boolean;
53
- type: import('./props.ts').ButtonType;
54
54
  status: import('./props.ts').ButtonStatus;
55
55
  plain: boolean;
56
56
  border: boolean;
@@ -105,14 +105,14 @@ export declare const XButton: {
105
105
  onClick?: ((...args: any[]) => any) | undefined;
106
106
  }>, () => any, {}, {}, {}, {
107
107
  size: import('./props.ts').ButtonSize;
108
+ type: import('./props.ts').ButtonType;
109
+ link: boolean;
108
110
  disabled: boolean;
109
111
  block: boolean;
110
112
  loading: boolean;
111
113
  loadingFill: boolean;
112
114
  debounce: number;
113
115
  shape: import('./props.ts').ButtonShape;
114
- link: boolean;
115
- type: import('./props.ts').ButtonType;
116
116
  status: import('./props.ts').ButtonStatus;
117
117
  plain: boolean;
118
118
  border: boolean;
@@ -164,14 +164,14 @@ export declare const XButton: {
164
164
  onClick?: ((...args: any[]) => any) | undefined;
165
165
  }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
166
166
  size: import('./props.ts').ButtonSize;
167
+ type: import('./props.ts').ButtonType;
168
+ link: boolean;
167
169
  disabled: boolean;
168
170
  block: boolean;
169
171
  loading: boolean;
170
172
  loadingFill: boolean;
171
173
  debounce: number;
172
174
  shape: import('./props.ts').ButtonShape;
173
- link: boolean;
174
- type: import('./props.ts').ButtonType;
175
175
  status: import('./props.ts').ButtonStatus;
176
176
  plain: boolean;
177
177
  border: boolean;
@@ -78,40 +78,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
78
78
  type: BooleanConstructor;
79
79
  default: boolean;
80
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<{
81
+ }>, () => any, {}, {}, {}, 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
82
  renderTo: {
116
83
  type: import('vue').PropType<string | HTMLElement>;
117
84
  default: string;
@@ -198,15 +165,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
198
165
  onOpened?: ((...args: any[]) => any) | undefined;
199
166
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
200
167
  }>, {
201
- top: string | number;
202
- disabled: boolean;
203
168
  title: string;
204
- center: boolean;
169
+ disabled: boolean;
205
170
  height: string | number;
206
171
  minHeight: string | number;
207
172
  minWidth: string | number;
173
+ top: string | number;
208
174
  width: string | number;
209
175
  mask: boolean;
176
+ center: boolean;
210
177
  renderTo: string | HTMLElement;
211
178
  modelValue: boolean;
212
179
  destroyOnClosed: boolean;
@@ -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 +1,6 @@
1
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';
@@ -0,0 +1,102 @@
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
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "destroy"[], "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
46
+ id: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ message: {
51
+ type: PropType<IMessage>;
52
+ default: string;
53
+ };
54
+ type: {
55
+ type: PropType<IMessageType>;
56
+ default: string;
57
+ };
58
+ duration: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ center: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ onClose: {
67
+ type: PropType<() => void>;
68
+ default: () => void;
69
+ };
70
+ offset: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ zIndex: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ showClose: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ useHTML: BooleanConstructor;
83
+ popupClass: {
84
+ type: StringConstructor;
85
+ default: undefined;
86
+ };
87
+ }>> & Readonly<{
88
+ onDestroy?: ((...args: any[]) => any) | undefined;
89
+ }>, {
90
+ type: "success" | "warning" | "strong" | "info" | "error";
91
+ message: IMessage;
92
+ zIndex: number;
93
+ offset: number;
94
+ center: boolean;
95
+ popupClass: string;
96
+ showClose: boolean;
97
+ onClose: () => void;
98
+ useHTML: boolean;
99
+ id: string;
100
+ duration: number;
101
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
102
+ export default _default;