x-next 0.0.0-alpha.4 → 0.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_container/client-only.d.ts +4 -0
- package/dist/_container/parent-scroll-observer.d.ts +6 -0
- package/dist/_container/resize-observer.d.ts +6 -0
- package/dist/_container/utils.d.ts +12 -0
- package/dist/_hooks/_types.d.ts +4 -0
- package/dist/_hooks/use-first-element.d.ts +5 -0
- package/dist/_hooks/use-index.d.ts +9 -0
- package/dist/_hooks/use-overflow.d.ts +5 -0
- package/dist/_hooks/use-popup-manager.d.ts +11 -0
- package/dist/_hooks/use-resize-observer.d.ts +8 -0
- package/dist/_props/css.d.ts +13 -0
- package/dist/_props/global.d.ts +1 -0
- package/dist/_utils/click.d.ts +13 -0
- package/dist/_utils/config.d.ts +9 -0
- package/dist/_utils/constant.d.ts +17 -0
- package/dist/_utils/convert-case.d.ts +3 -0
- package/dist/_utils/dom.d.ts +10 -0
- package/dist/_utils/helpers.d.ts +12 -0
- package/dist/_utils/is.d.ts +25 -0
- package/dist/_utils/keyboard.d.ts +24 -0
- package/dist/_utils/number.d.ts +0 -0
- package/dist/_utils/vue-eco.d.ts +38 -0
- package/dist/components/button/Button.d.ts +97 -0
- package/dist/components/button/index.d.ts +181 -0
- package/dist/components/button/props.d.ts +45 -0
- package/dist/components/dialog/Dialog.d.ts +188 -0
- package/dist/components/dialog/index.d.ts +334 -0
- package/dist/components/dialog/props.d.ts +83 -0
- package/dist/components/dialog/use-props.d.ts +33 -0
- package/dist/components/dialog/use.d.ts +3 -0
- package/dist/components/dialog/warp.d.ts +2 -0
- package/dist/components/form/constants.d.ts +4 -0
- package/dist/components/form/form-item.d.ts +31 -0
- package/dist/components/form/form.d.ts +39 -0
- package/dist/components/form/hooks.d.ts +4 -0
- package/dist/components/form/types.d.ts +31 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/input/Input.d.ts +220 -0
- package/dist/components/input/index.d.ts +394 -0
- package/dist/components/input/props.d.ts +95 -0
- package/dist/components/input/utils.d.ts +6 -0
- package/dist/components/message/Message.d.ts +108 -0
- package/dist/components/message/MessageVue.vue.d.ts +362 -0
- package/dist/components/message/index.d.ts +193 -0
- package/dist/components/message/props.d.ts +31 -0
- package/dist/components/message/warp.d.ts +3 -0
- package/dist/components/message-box/MessageBox.d.ts +3 -0
- package/dist/components/message-box/index.d.ts +4 -0
- package/dist/components/message-box/props.d.ts +52 -0
- package/dist/components/message-box/warp.d.ts +2 -0
- package/dist/components/notification/Notification.d.ts +89 -0
- package/dist/components/notification/index.d.ts +166 -0
- package/dist/components/notification/props.d.ts +54 -0
- package/dist/components/notification/warp.d.ts +3 -0
- package/dist/components/popconfirm/index.d.ts +193 -0
- package/dist/components/popconfirm/src/Popconfirm.d.ts +104 -0
- package/dist/components/popconfirm/src/popup.vue.d.ts +407 -0
- package/dist/components/popconfirm/src/props.d.ts +45 -0
- package/dist/components/popconfirm/src/types.d.ts +3 -0
- package/dist/components/scrollbar/index.d.ts +0 -0
- package/dist/components/scrollbar/props.d.ts +16 -0
- package/dist/components/space/Space.d.ts +42 -0
- package/dist/components/space/index.d.ts +82 -0
- package/dist/components/tag-cloud/index.d.ts +0 -0
- package/dist/components/timeline/index.d.ts +58 -0
- package/dist/components/timeline/src/context.d.ts +12 -0
- package/dist/components/timeline/src/props.d.ts +31 -0
- package/dist/components/timeline/src/timeline-item.d.ts +12 -0
- package/dist/components/timeline/src/timeline.d.ts +24 -0
- package/dist/components/timeline/src/types.d.ts +9 -0
- package/dist/components/timeline-item/index.d.ts +34 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +277 -0
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +111 -0
- package/dist/components/trend-chart/components/trend-chart-grid.d.ts +55 -0
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +22 -0
- package/dist/components/trend-chart/helpers/genPath.d.ts +8 -0
- package/dist/components/trend-chart/helpers/genPoints.d.ts +3 -0
- package/dist/components/trend-chart/helpers/getPadding.d.ts +7 -0
- package/dist/components/trend-chart/helpers/validatePadding.d.ts +2 -0
- package/dist/components/trend-chart/index.d.ts +535 -0
- package/dist/components/trend-chart/props.d.ts +203 -0
- package/dist/components/trend-chart/themes.d.ts +128 -0
- package/dist/components/trend-chart.bak/components/trend-chart-curve.d.ts +111 -0
- package/dist/components/trend-chart.bak/components/trend-chart-grid.d.ts +55 -0
- package/dist/components/trend-chart.bak/components/trend-chart-labels.d.ts +22 -0
- package/dist/components/trend-chart.bak/components/trend-chart.d.ts +274 -0
- package/dist/components/trend-chart.bak/helpers/genPath.d.ts +8 -0
- package/dist/components/trend-chart.bak/helpers/genPoints.d.ts +3 -0
- package/dist/components/trend-chart.bak/helpers/getPadding.d.ts +7 -0
- package/dist/components/trend-chart.bak/helpers/validatePadding.d.ts +2 -0
- package/dist/components/trend-chart.bak/index.d.ts +530 -0
- package/dist/components/trend-chart.bak/props.d.ts +211 -0
- package/dist/components/trend-chart.bak/themes.d.ts +152 -0
- package/dist/components/trigger/index.d.ts +487 -0
- package/dist/components/trigger/src/_trigger.d.ts +217 -0
- package/dist/components/trigger/src/constant.d.ts +8 -0
- package/dist/components/trigger/src/trigger.d.ts +288 -0
- package/dist/components/trigger/src/utils.d.ts +50 -0
- package/dist/directives/clipboard/cache.d.ts +8 -0
- package/dist/directives/clipboard/clipboard.d.ts +18 -0
- package/dist/directives/clipboard/convert.d.ts +3 -0
- package/dist/directives/clipboard/index.d.ts +3 -0
- package/dist/directives/clipboard/plugin.d.ts +2 -0
- package/dist/directives/clipboard/textarea.d.ts +3 -0
- package/dist/icons/animation/animation-loading.d.ts +50 -0
- package/dist/icons/default/check-circle-fill.d.ts +50 -0
- package/dist/icons/default/close-circle-fill.d.ts +50 -0
- package/dist/icons/default/exclamation-circle-fill.d.ts +50 -0
- package/dist/icons/default/info-circle-fill.d.ts +50 -0
- package/dist/icons/default/logo-simple.d.ts +50 -0
- package/dist/icons/default/minus-circle-fill.d.ts +50 -0
- package/dist/icons/icon.d.ts +51 -0
- package/dist/icons/index.d.ts +8 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es.js +3166 -0
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -0
- package/dist/types.d.ts +13 -0
- package/package.json +25 -11
- package/volar.d.ts +17 -0
@@ -0,0 +1,193 @@
|
|
1
|
+
export declare const XMessage: {
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
3
|
+
id: {
|
4
|
+
type: StringConstructor;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
message: {
|
8
|
+
type: import('vue').PropType<import('./props').IMessage>;
|
9
|
+
default: string;
|
10
|
+
};
|
11
|
+
type: {
|
12
|
+
type: import('vue').PropType<import('./props').IMessageType>;
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
duration: {
|
16
|
+
type: NumberConstructor;
|
17
|
+
default: number;
|
18
|
+
};
|
19
|
+
center: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
onClose: {
|
24
|
+
type: import('vue').PropType<() => void>;
|
25
|
+
default: () => void;
|
26
|
+
};
|
27
|
+
offset: {
|
28
|
+
type: NumberConstructor;
|
29
|
+
default: number;
|
30
|
+
};
|
31
|
+
zIndex: {
|
32
|
+
type: NumberConstructor;
|
33
|
+
default: number;
|
34
|
+
};
|
35
|
+
showClose: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
useHTML: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
popupClass: {
|
44
|
+
type: StringConstructor;
|
45
|
+
default: undefined;
|
46
|
+
};
|
47
|
+
}>> & Readonly<{
|
48
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
49
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "destroy"[], import('vue').PublicProps, {
|
50
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
51
|
+
message: import('./props').IMessage;
|
52
|
+
zIndex: number;
|
53
|
+
offset: number;
|
54
|
+
center: boolean;
|
55
|
+
popupClass: string;
|
56
|
+
showClose: boolean;
|
57
|
+
onClose: () => void;
|
58
|
+
id: string;
|
59
|
+
duration: number;
|
60
|
+
useHTML: boolean;
|
61
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
62
|
+
P: {};
|
63
|
+
B: {};
|
64
|
+
D: {};
|
65
|
+
C: {};
|
66
|
+
M: {};
|
67
|
+
Defaults: {};
|
68
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
69
|
+
id: {
|
70
|
+
type: StringConstructor;
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
message: {
|
74
|
+
type: import('vue').PropType<import('./props').IMessage>;
|
75
|
+
default: string;
|
76
|
+
};
|
77
|
+
type: {
|
78
|
+
type: import('vue').PropType<import('./props').IMessageType>;
|
79
|
+
default: string;
|
80
|
+
};
|
81
|
+
duration: {
|
82
|
+
type: NumberConstructor;
|
83
|
+
default: number;
|
84
|
+
};
|
85
|
+
center: {
|
86
|
+
type: BooleanConstructor;
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
onClose: {
|
90
|
+
type: import('vue').PropType<() => void>;
|
91
|
+
default: () => void;
|
92
|
+
};
|
93
|
+
offset: {
|
94
|
+
type: NumberConstructor;
|
95
|
+
default: number;
|
96
|
+
};
|
97
|
+
zIndex: {
|
98
|
+
type: NumberConstructor;
|
99
|
+
default: number;
|
100
|
+
};
|
101
|
+
showClose: {
|
102
|
+
type: BooleanConstructor;
|
103
|
+
default: boolean;
|
104
|
+
};
|
105
|
+
useHTML: {
|
106
|
+
type: BooleanConstructor;
|
107
|
+
default: boolean;
|
108
|
+
};
|
109
|
+
popupClass: {
|
110
|
+
type: StringConstructor;
|
111
|
+
default: undefined;
|
112
|
+
};
|
113
|
+
}>> & Readonly<{
|
114
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
115
|
+
}>, () => any, {}, {}, {}, {
|
116
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
117
|
+
message: import('./props').IMessage;
|
118
|
+
zIndex: number;
|
119
|
+
offset: number;
|
120
|
+
center: boolean;
|
121
|
+
popupClass: string;
|
122
|
+
showClose: boolean;
|
123
|
+
onClose: () => void;
|
124
|
+
id: string;
|
125
|
+
duration: number;
|
126
|
+
useHTML: boolean;
|
127
|
+
}>;
|
128
|
+
__isFragment?: never;
|
129
|
+
__isTeleport?: never;
|
130
|
+
__isSuspense?: never;
|
131
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
132
|
+
id: {
|
133
|
+
type: StringConstructor;
|
134
|
+
default: string;
|
135
|
+
};
|
136
|
+
message: {
|
137
|
+
type: import('vue').PropType<import('./props').IMessage>;
|
138
|
+
default: string;
|
139
|
+
};
|
140
|
+
type: {
|
141
|
+
type: import('vue').PropType<import('./props').IMessageType>;
|
142
|
+
default: string;
|
143
|
+
};
|
144
|
+
duration: {
|
145
|
+
type: NumberConstructor;
|
146
|
+
default: number;
|
147
|
+
};
|
148
|
+
center: {
|
149
|
+
type: BooleanConstructor;
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
onClose: {
|
153
|
+
type: import('vue').PropType<() => void>;
|
154
|
+
default: () => void;
|
155
|
+
};
|
156
|
+
offset: {
|
157
|
+
type: NumberConstructor;
|
158
|
+
default: number;
|
159
|
+
};
|
160
|
+
zIndex: {
|
161
|
+
type: NumberConstructor;
|
162
|
+
default: number;
|
163
|
+
};
|
164
|
+
showClose: {
|
165
|
+
type: BooleanConstructor;
|
166
|
+
default: boolean;
|
167
|
+
};
|
168
|
+
useHTML: {
|
169
|
+
type: BooleanConstructor;
|
170
|
+
default: boolean;
|
171
|
+
};
|
172
|
+
popupClass: {
|
173
|
+
type: StringConstructor;
|
174
|
+
default: undefined;
|
175
|
+
};
|
176
|
+
}>> & Readonly<{
|
177
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
178
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "destroy"[], "destroy", {
|
179
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
180
|
+
message: import('./props').IMessage;
|
181
|
+
zIndex: number;
|
182
|
+
offset: number;
|
183
|
+
center: boolean;
|
184
|
+
popupClass: string;
|
185
|
+
showClose: boolean;
|
186
|
+
onClose: () => void;
|
187
|
+
id: string;
|
188
|
+
duration: number;
|
189
|
+
useHTML: boolean;
|
190
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
191
|
+
install(app: import('vue').App): void;
|
192
|
+
};
|
193
|
+
export { XMessage as 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,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,89 @@
|
|
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
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "destroy")[], "close" | "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
39
|
+
position: {
|
40
|
+
type: import('vue').PropType<import('./props').NotificationPosition>;
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
offset: {
|
44
|
+
type: NumberConstructor;
|
45
|
+
default: number;
|
46
|
+
};
|
47
|
+
title: {
|
48
|
+
type: StringConstructor;
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
type: {
|
52
|
+
type: import('vue').PropType<import('./props').NotificationType>;
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
message: {
|
56
|
+
type: StringConstructor;
|
57
|
+
default: undefined;
|
58
|
+
};
|
59
|
+
duration: {
|
60
|
+
type: NumberConstructor;
|
61
|
+
default: number;
|
62
|
+
};
|
63
|
+
showClose: {
|
64
|
+
type: BooleanConstructor;
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
onClose: {
|
68
|
+
type: import('vue').PropType<() => void>;
|
69
|
+
default: () => void;
|
70
|
+
};
|
71
|
+
renderToBody: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: boolean;
|
74
|
+
};
|
75
|
+
}>> & Readonly<{
|
76
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
77
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
78
|
+
}>, {
|
79
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
80
|
+
title: string;
|
81
|
+
message: string;
|
82
|
+
position: import('./props').NotificationPosition;
|
83
|
+
offset: number;
|
84
|
+
showClose: boolean;
|
85
|
+
onClose: () => void;
|
86
|
+
duration: number;
|
87
|
+
renderToBody: boolean;
|
88
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
89
|
+
export default _default;
|
@@ -0,0 +1,166 @@
|
|
1
|
+
export declare const XNotification: {
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
3
|
+
position: {
|
4
|
+
type: import('vue').PropType<import('./props').NotificationPosition>;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
offset: {
|
8
|
+
type: NumberConstructor;
|
9
|
+
default: number;
|
10
|
+
};
|
11
|
+
title: {
|
12
|
+
type: StringConstructor;
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
type: {
|
16
|
+
type: import('vue').PropType<import('./props').NotificationType>;
|
17
|
+
default: string;
|
18
|
+
};
|
19
|
+
message: {
|
20
|
+
type: StringConstructor;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
duration: {
|
24
|
+
type: NumberConstructor;
|
25
|
+
default: number;
|
26
|
+
};
|
27
|
+
showClose: {
|
28
|
+
type: BooleanConstructor;
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
onClose: {
|
32
|
+
type: import('vue').PropType<() => void>;
|
33
|
+
default: () => void;
|
34
|
+
};
|
35
|
+
renderToBody: {
|
36
|
+
type: BooleanConstructor;
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
}>> & Readonly<{
|
40
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
41
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
42
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "destroy")[], import('vue').PublicProps, {
|
43
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
44
|
+
title: string;
|
45
|
+
message: string;
|
46
|
+
position: import('./props').NotificationPosition;
|
47
|
+
offset: number;
|
48
|
+
showClose: boolean;
|
49
|
+
onClose: () => void;
|
50
|
+
duration: number;
|
51
|
+
renderToBody: boolean;
|
52
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
53
|
+
P: {};
|
54
|
+
B: {};
|
55
|
+
D: {};
|
56
|
+
C: {};
|
57
|
+
M: {};
|
58
|
+
Defaults: {};
|
59
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
60
|
+
position: {
|
61
|
+
type: import('vue').PropType<import('./props').NotificationPosition>;
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
offset: {
|
65
|
+
type: NumberConstructor;
|
66
|
+
default: number;
|
67
|
+
};
|
68
|
+
title: {
|
69
|
+
type: StringConstructor;
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
type: {
|
73
|
+
type: import('vue').PropType<import('./props').NotificationType>;
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
message: {
|
77
|
+
type: StringConstructor;
|
78
|
+
default: undefined;
|
79
|
+
};
|
80
|
+
duration: {
|
81
|
+
type: NumberConstructor;
|
82
|
+
default: number;
|
83
|
+
};
|
84
|
+
showClose: {
|
85
|
+
type: BooleanConstructor;
|
86
|
+
default: boolean;
|
87
|
+
};
|
88
|
+
onClose: {
|
89
|
+
type: import('vue').PropType<() => void>;
|
90
|
+
default: () => void;
|
91
|
+
};
|
92
|
+
renderToBody: {
|
93
|
+
type: BooleanConstructor;
|
94
|
+
default: boolean;
|
95
|
+
};
|
96
|
+
}>> & Readonly<{
|
97
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
98
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
99
|
+
}>, () => any, {}, {}, {}, {
|
100
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
101
|
+
title: string;
|
102
|
+
message: string;
|
103
|
+
position: import('./props').NotificationPosition;
|
104
|
+
offset: number;
|
105
|
+
showClose: boolean;
|
106
|
+
onClose: () => void;
|
107
|
+
duration: number;
|
108
|
+
renderToBody: boolean;
|
109
|
+
}>;
|
110
|
+
__isFragment?: never;
|
111
|
+
__isTeleport?: never;
|
112
|
+
__isSuspense?: never;
|
113
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
114
|
+
position: {
|
115
|
+
type: import('vue').PropType<import('./props').NotificationPosition>;
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
offset: {
|
119
|
+
type: NumberConstructor;
|
120
|
+
default: number;
|
121
|
+
};
|
122
|
+
title: {
|
123
|
+
type: StringConstructor;
|
124
|
+
default: string;
|
125
|
+
};
|
126
|
+
type: {
|
127
|
+
type: import('vue').PropType<import('./props').NotificationType>;
|
128
|
+
default: string;
|
129
|
+
};
|
130
|
+
message: {
|
131
|
+
type: StringConstructor;
|
132
|
+
default: undefined;
|
133
|
+
};
|
134
|
+
duration: {
|
135
|
+
type: NumberConstructor;
|
136
|
+
default: number;
|
137
|
+
};
|
138
|
+
showClose: {
|
139
|
+
type: BooleanConstructor;
|
140
|
+
default: boolean;
|
141
|
+
};
|
142
|
+
onClose: {
|
143
|
+
type: import('vue').PropType<() => void>;
|
144
|
+
default: () => void;
|
145
|
+
};
|
146
|
+
renderToBody: {
|
147
|
+
type: BooleanConstructor;
|
148
|
+
default: boolean;
|
149
|
+
};
|
150
|
+
}>> & Readonly<{
|
151
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
152
|
+
onDestroy?: ((...args: any[]) => any) | undefined;
|
153
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "destroy")[], "close" | "destroy", {
|
154
|
+
type: "success" | "warning" | "strong" | "info" | "error";
|
155
|
+
title: string;
|
156
|
+
message: string;
|
157
|
+
position: import('./props').NotificationPosition;
|
158
|
+
offset: number;
|
159
|
+
showClose: boolean;
|
160
|
+
onClose: () => void;
|
161
|
+
duration: number;
|
162
|
+
renderToBody: boolean;
|
163
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
164
|
+
install(app: import('vue').App): void;
|
165
|
+
};
|
166
|
+
export { XNotification as 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>;
|