x-next 0.0.0-alpha.14 → 0.0.0-alpha.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_utils/config.d.ts +1 -1
- package/dist/_utils/is.d.ts +2 -0
- package/dist/_utils/vue-eco.d.ts +1 -1
- package/dist/components/button/index.d.ts +25 -25
- package/dist/icons/animation/animation-loading.d.ts +5 -1
- package/dist/index.d.ts +1 -181
- package/dist/index.es.js +186 -173
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +2 -2
package/dist/_utils/config.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const COMPONENT_INSTALLED_KEY: unique symbol;
|
2
2
|
export declare const getClassPrefix: (name?: string) => string;
|
3
|
-
export declare const getComponentPrefix: (name: string) => string
|
3
|
+
export declare const getComponentPrefix: (name: string) => `X${string}`;
|
4
4
|
export declare const getClassNameMixin: (name: string) => {
|
5
5
|
block: string;
|
6
6
|
element: (className: string) => string;
|
package/dist/_utils/is.d.ts
CHANGED
@@ -5,6 +5,8 @@ export declare function isNull(obj: any): obj is null;
|
|
5
5
|
export declare function isBoolean(obj: unknown): obj is boolean;
|
6
6
|
export declare function isObject<T>(obj: T): obj is Extract<T, Record<string, any>>;
|
7
7
|
export declare const isPromise: <T>(obj: unknown) => obj is Promise<T>;
|
8
|
+
export declare const isAsync: (fn: unknown) => boolean;
|
9
|
+
export declare const isAsyncOrPromise: (fn: unknown) => boolean;
|
8
10
|
export declare function isString(obj: any): obj is string;
|
9
11
|
export declare function isNumber(obj: any): obj is number;
|
10
12
|
export declare function isRegExp(obj: any): boolean;
|
package/dist/_utils/vue-eco.d.ts
CHANGED
@@ -27,5 +27,5 @@ export declare const getAllElements: (children: VNode[] | undefined, includeText
|
|
27
27
|
}>[];
|
28
28
|
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
|
29
29
|
export declare const generateComponent: <T extends Component | DefineComponent>(name: string, component: T) => T & {
|
30
|
-
install
|
30
|
+
install(app: App): void;
|
31
31
|
};
|
@@ -12,7 +12,7 @@ export declare const XButton: {
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
shape: {
|
15
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
15
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
16
16
|
default: undefined;
|
17
17
|
};
|
18
18
|
link: {
|
@@ -20,11 +20,11 @@ export declare const XButton: {
|
|
20
20
|
default: boolean;
|
21
21
|
};
|
22
22
|
type: {
|
23
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
23
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
24
24
|
default: undefined;
|
25
25
|
};
|
26
26
|
status: {
|
27
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
27
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
28
28
|
default: undefined;
|
29
29
|
};
|
30
30
|
plain: {
|
@@ -32,7 +32,7 @@ export declare const XButton: {
|
|
32
32
|
default: boolean;
|
33
33
|
};
|
34
34
|
size: {
|
35
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
35
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
36
36
|
default: string;
|
37
37
|
};
|
38
38
|
border: {
|
@@ -42,16 +42,16 @@ export declare const XButton: {
|
|
42
42
|
}>> & Readonly<{
|
43
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
44
44
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
|
45
|
-
size: import('./props').ButtonSize;
|
45
|
+
size: import('./props.ts').ButtonSize;
|
46
46
|
disabled: boolean;
|
47
47
|
block: boolean;
|
48
48
|
loading: boolean;
|
49
49
|
loadingFill: boolean;
|
50
50
|
debounce: number;
|
51
|
-
shape: import('./props').ButtonShape;
|
51
|
+
shape: import('./props.ts').ButtonShape;
|
52
52
|
link: boolean;
|
53
|
-
type: import('./props').ButtonType;
|
54
|
-
status: import('./props').ButtonStatus;
|
53
|
+
type: import('./props.ts').ButtonType;
|
54
|
+
status: import('./props.ts').ButtonStatus;
|
55
55
|
plain: boolean;
|
56
56
|
border: boolean;
|
57
57
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
@@ -74,7 +74,7 @@ export declare const XButton: {
|
|
74
74
|
default: number;
|
75
75
|
};
|
76
76
|
shape: {
|
77
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
77
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
78
78
|
default: undefined;
|
79
79
|
};
|
80
80
|
link: {
|
@@ -82,11 +82,11 @@ export declare const XButton: {
|
|
82
82
|
default: boolean;
|
83
83
|
};
|
84
84
|
type: {
|
85
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
85
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
86
86
|
default: undefined;
|
87
87
|
};
|
88
88
|
status: {
|
89
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
89
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
90
90
|
default: undefined;
|
91
91
|
};
|
92
92
|
plain: {
|
@@ -94,7 +94,7 @@ export declare const XButton: {
|
|
94
94
|
default: boolean;
|
95
95
|
};
|
96
96
|
size: {
|
97
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
97
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
98
98
|
default: string;
|
99
99
|
};
|
100
100
|
border: {
|
@@ -104,16 +104,16 @@ export declare const XButton: {
|
|
104
104
|
}>> & Readonly<{
|
105
105
|
onClick?: ((...args: any[]) => any) | undefined;
|
106
106
|
}>, () => any, {}, {}, {}, {
|
107
|
-
size: import('./props').ButtonSize;
|
107
|
+
size: import('./props.ts').ButtonSize;
|
108
108
|
disabled: boolean;
|
109
109
|
block: boolean;
|
110
110
|
loading: boolean;
|
111
111
|
loadingFill: boolean;
|
112
112
|
debounce: number;
|
113
|
-
shape: import('./props').ButtonShape;
|
113
|
+
shape: import('./props.ts').ButtonShape;
|
114
114
|
link: boolean;
|
115
|
-
type: import('./props').ButtonType;
|
116
|
-
status: import('./props').ButtonStatus;
|
115
|
+
type: import('./props.ts').ButtonType;
|
116
|
+
status: import('./props.ts').ButtonStatus;
|
117
117
|
plain: boolean;
|
118
118
|
border: boolean;
|
119
119
|
}>;
|
@@ -133,7 +133,7 @@ export declare const XButton: {
|
|
133
133
|
default: number;
|
134
134
|
};
|
135
135
|
shape: {
|
136
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
136
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
137
137
|
default: undefined;
|
138
138
|
};
|
139
139
|
link: {
|
@@ -141,11 +141,11 @@ export declare const XButton: {
|
|
141
141
|
default: boolean;
|
142
142
|
};
|
143
143
|
type: {
|
144
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
144
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
145
145
|
default: undefined;
|
146
146
|
};
|
147
147
|
status: {
|
148
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
148
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
149
149
|
default: undefined;
|
150
150
|
};
|
151
151
|
plain: {
|
@@ -153,7 +153,7 @@ export declare const XButton: {
|
|
153
153
|
default: boolean;
|
154
154
|
};
|
155
155
|
size: {
|
156
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
156
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
157
157
|
default: string;
|
158
158
|
};
|
159
159
|
border: {
|
@@ -163,19 +163,19 @@ export declare const XButton: {
|
|
163
163
|
}>> & Readonly<{
|
164
164
|
onClick?: ((...args: any[]) => any) | undefined;
|
165
165
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
|
166
|
-
size: import('./props').ButtonSize;
|
166
|
+
size: import('./props.ts').ButtonSize;
|
167
167
|
disabled: boolean;
|
168
168
|
block: boolean;
|
169
169
|
loading: boolean;
|
170
170
|
loadingFill: boolean;
|
171
171
|
debounce: number;
|
172
|
-
shape: import('./props').ButtonShape;
|
172
|
+
shape: import('./props.ts').ButtonShape;
|
173
173
|
link: boolean;
|
174
|
-
type: import('./props').ButtonType;
|
175
|
-
status: import('./props').ButtonStatus;
|
174
|
+
type: import('./props.ts').ButtonType;
|
175
|
+
status: import('./props.ts').ButtonStatus;
|
176
176
|
plain: boolean;
|
177
177
|
border: boolean;
|
178
178
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
179
|
-
install
|
179
|
+
install(app: import('vue').App): void;
|
180
180
|
};
|
181
181
|
export { XButton as default };
|
@@ -1,2 +1,6 @@
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
2
|
+
cls: StringConstructor;
|
3
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
4
|
+
cls: StringConstructor;
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
6
|
export default _default;
|
package/dist/index.d.ts
CHANGED
@@ -5,188 +5,8 @@ import { default as MessageBox } from './components/message-box/warp';
|
|
5
5
|
import { default as Notification } from './components/notification/warp';
|
6
6
|
export * from './components';
|
7
7
|
export { Dialog, Message, MessageBox, Notification };
|
8
|
-
export declare const install: (app: App) => void;
|
9
8
|
declare const XNext: {
|
10
|
-
XButton: {
|
11
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
12
|
-
disabled: BooleanConstructor;
|
13
|
-
block: BooleanConstructor;
|
14
|
-
loading: BooleanConstructor;
|
15
|
-
loadingFill: {
|
16
|
-
type: BooleanConstructor;
|
17
|
-
default: boolean;
|
18
|
-
};
|
19
|
-
debounce: {
|
20
|
-
type: NumberConstructor;
|
21
|
-
default: number;
|
22
|
-
};
|
23
|
-
shape: {
|
24
|
-
type: import('vue').PropType<import('./components/button/props').ButtonShape>;
|
25
|
-
default: undefined;
|
26
|
-
};
|
27
|
-
link: {
|
28
|
-
type: BooleanConstructor;
|
29
|
-
default: boolean;
|
30
|
-
};
|
31
|
-
type: {
|
32
|
-
type: import('vue').PropType<import('./components/button/props').ButtonType>;
|
33
|
-
default: undefined;
|
34
|
-
};
|
35
|
-
status: {
|
36
|
-
type: import('vue').PropType<import('./components/button/props').ButtonStatus>;
|
37
|
-
default: undefined;
|
38
|
-
};
|
39
|
-
plain: {
|
40
|
-
type: BooleanConstructor;
|
41
|
-
default: boolean;
|
42
|
-
};
|
43
|
-
size: {
|
44
|
-
type: import('vue').PropType<import('./components/button/props').ButtonSize>;
|
45
|
-
default: string;
|
46
|
-
};
|
47
|
-
border: {
|
48
|
-
type: BooleanConstructor;
|
49
|
-
default: boolean;
|
50
|
-
};
|
51
|
-
}>> & Readonly<{
|
52
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
53
|
-
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
|
54
|
-
size: import('./components/button/props').ButtonSize;
|
55
|
-
disabled: boolean;
|
56
|
-
block: boolean;
|
57
|
-
loading: boolean;
|
58
|
-
loadingFill: boolean;
|
59
|
-
debounce: number;
|
60
|
-
shape: import('./components/button/props').ButtonShape;
|
61
|
-
link: boolean;
|
62
|
-
type: import('./components/button/props').ButtonType;
|
63
|
-
status: import('./components/button/props').ButtonStatus;
|
64
|
-
plain: boolean;
|
65
|
-
border: boolean;
|
66
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
67
|
-
P: {};
|
68
|
-
B: {};
|
69
|
-
D: {};
|
70
|
-
C: {};
|
71
|
-
M: {};
|
72
|
-
Defaults: {};
|
73
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
74
|
-
disabled: BooleanConstructor;
|
75
|
-
block: BooleanConstructor;
|
76
|
-
loading: BooleanConstructor;
|
77
|
-
loadingFill: {
|
78
|
-
type: BooleanConstructor;
|
79
|
-
default: boolean;
|
80
|
-
};
|
81
|
-
debounce: {
|
82
|
-
type: NumberConstructor;
|
83
|
-
default: number;
|
84
|
-
};
|
85
|
-
shape: {
|
86
|
-
type: import('vue').PropType<import('./components/button/props').ButtonShape>;
|
87
|
-
default: undefined;
|
88
|
-
};
|
89
|
-
link: {
|
90
|
-
type: BooleanConstructor;
|
91
|
-
default: boolean;
|
92
|
-
};
|
93
|
-
type: {
|
94
|
-
type: import('vue').PropType<import('./components/button/props').ButtonType>;
|
95
|
-
default: undefined;
|
96
|
-
};
|
97
|
-
status: {
|
98
|
-
type: import('vue').PropType<import('./components/button/props').ButtonStatus>;
|
99
|
-
default: undefined;
|
100
|
-
};
|
101
|
-
plain: {
|
102
|
-
type: BooleanConstructor;
|
103
|
-
default: boolean;
|
104
|
-
};
|
105
|
-
size: {
|
106
|
-
type: import('vue').PropType<import('./components/button/props').ButtonSize>;
|
107
|
-
default: string;
|
108
|
-
};
|
109
|
-
border: {
|
110
|
-
type: BooleanConstructor;
|
111
|
-
default: boolean;
|
112
|
-
};
|
113
|
-
}>> & Readonly<{
|
114
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
115
|
-
}>, () => any, {}, {}, {}, {
|
116
|
-
size: import('./components/button/props').ButtonSize;
|
117
|
-
disabled: boolean;
|
118
|
-
block: boolean;
|
119
|
-
loading: boolean;
|
120
|
-
loadingFill: boolean;
|
121
|
-
debounce: number;
|
122
|
-
shape: import('./components/button/props').ButtonShape;
|
123
|
-
link: boolean;
|
124
|
-
type: import('./components/button/props').ButtonType;
|
125
|
-
status: import('./components/button/props').ButtonStatus;
|
126
|
-
plain: boolean;
|
127
|
-
border: boolean;
|
128
|
-
}>;
|
129
|
-
__isFragment?: never;
|
130
|
-
__isTeleport?: never;
|
131
|
-
__isSuspense?: never;
|
132
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
133
|
-
disabled: BooleanConstructor;
|
134
|
-
block: BooleanConstructor;
|
135
|
-
loading: BooleanConstructor;
|
136
|
-
loadingFill: {
|
137
|
-
type: BooleanConstructor;
|
138
|
-
default: boolean;
|
139
|
-
};
|
140
|
-
debounce: {
|
141
|
-
type: NumberConstructor;
|
142
|
-
default: number;
|
143
|
-
};
|
144
|
-
shape: {
|
145
|
-
type: import('vue').PropType<import('./components/button/props').ButtonShape>;
|
146
|
-
default: undefined;
|
147
|
-
};
|
148
|
-
link: {
|
149
|
-
type: BooleanConstructor;
|
150
|
-
default: boolean;
|
151
|
-
};
|
152
|
-
type: {
|
153
|
-
type: import('vue').PropType<import('./components/button/props').ButtonType>;
|
154
|
-
default: undefined;
|
155
|
-
};
|
156
|
-
status: {
|
157
|
-
type: import('vue').PropType<import('./components/button/props').ButtonStatus>;
|
158
|
-
default: undefined;
|
159
|
-
};
|
160
|
-
plain: {
|
161
|
-
type: BooleanConstructor;
|
162
|
-
default: boolean;
|
163
|
-
};
|
164
|
-
size: {
|
165
|
-
type: import('vue').PropType<import('./components/button/props').ButtonSize>;
|
166
|
-
default: string;
|
167
|
-
};
|
168
|
-
border: {
|
169
|
-
type: BooleanConstructor;
|
170
|
-
default: boolean;
|
171
|
-
};
|
172
|
-
}>> & Readonly<{
|
173
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
174
|
-
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
|
175
|
-
size: import('./components/button/props').ButtonSize;
|
176
|
-
disabled: boolean;
|
177
|
-
block: boolean;
|
178
|
-
loading: boolean;
|
179
|
-
loadingFill: boolean;
|
180
|
-
debounce: number;
|
181
|
-
shape: import('./components/button/props').ButtonShape;
|
182
|
-
link: boolean;
|
183
|
-
type: import('./components/button/props').ButtonType;
|
184
|
-
status: import('./components/button/props').ButtonStatus;
|
185
|
-
plain: boolean;
|
186
|
-
border: boolean;
|
187
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
188
|
-
install: (app: App) => void;
|
189
|
-
};
|
190
9
|
install: (app: App) => void;
|
191
10
|
};
|
192
11
|
export default XNext;
|
12
|
+
export type {} from './types';
|