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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/README.md +15 -84
  2. package/dist/index.umd.js +1 -0
  3. package/package.json +35 -48
  4. package/LICENSE +0 -21
  5. package/dist/favicon.ico +0 -0
  6. package/dist/index.d.ts +0 -0
  7. package/dist/types/_hooks/use-overflow.d.ts +0 -5
  8. package/dist/types/_hooks/use-popup-manager.d.ts +0 -11
  9. package/dist/types/_props/css.d.ts +0 -13
  10. package/dist/types/_props/global.d.ts +0 -1
  11. package/dist/types/_utils/config.d.ts +0 -9
  12. package/dist/types/_utils/convert-case.d.ts +0 -3
  13. package/dist/types/_utils/dom.d.ts +0 -10
  14. package/dist/types/_utils/helpers.d.ts +0 -12
  15. package/dist/types/_utils/icon.d.ts +0 -59
  16. package/dist/types/_utils/is.d.ts +0 -25
  17. package/dist/types/_utils/keyboard.d.ts +0 -24
  18. package/dist/types/_utils/number.d.ts +0 -0
  19. package/dist/types/_utils/vue-eco.d.ts +0 -32
  20. package/dist/types/componets/button/index.vue.d.ts +0 -107
  21. package/dist/types/componets/button/props.d.ts +0 -45
  22. package/dist/types/componets/dialog/index.vue.d.ts +0 -221
  23. package/dist/types/componets/dialog/props.d.ts +0 -83
  24. package/dist/types/componets/dialog/use-props.d.ts +0 -33
  25. package/dist/types/componets/dialog/use.d.ts +0 -3
  26. package/dist/types/componets/dialog/warp.d.ts +0 -2
  27. package/dist/types/componets/message/index.vue.d.ts +0 -116
  28. package/dist/types/componets/message/props.d.ts +0 -31
  29. package/dist/types/componets/message/warp.d.ts +0 -3
  30. package/dist/types/componets/message-box/index.d.ts +0 -3
  31. package/dist/types/componets/message-box/props.d.ts +0 -52
  32. package/dist/types/componets/message-box/warp.d.ts +0 -2
  33. package/dist/types/componets/notification/index.vue.d.ts +0 -160
  34. package/dist/types/componets/notification/props.d.ts +0 -54
  35. package/dist/types/componets/notification/warp.d.ts +0 -3
  36. package/dist/types/componets/space/index.d.ts +0 -42
  37. package/dist/types/componets/tag-cloud/index.d.ts +0 -0
  38. package/dist/types/componets/trend-chart/components/trend-chart-curve.d.ts +0 -114
  39. package/dist/types/componets/trend-chart/components/trend-chart-grid.d.ts +0 -55
  40. package/dist/types/componets/trend-chart/components/trend-chart-labels.d.ts +0 -22
  41. package/dist/types/componets/trend-chart/components/trend-chart.d.ts +0 -270
  42. package/dist/types/componets/trend-chart/helpers/genPath.d.ts +0 -8
  43. package/dist/types/componets/trend-chart/helpers/genPoints.d.ts +0 -3
  44. package/dist/types/componets/trend-chart/helpers/getPadding.d.ts +0 -7
  45. package/dist/types/componets/trend-chart/helpers/validatePadding.d.ts +0 -2
  46. package/dist/types/componets/trend-chart/index.d.ts +0 -2
  47. package/dist/types/componets/trend-chart/props.d.ts +0 -206
  48. package/dist/types/icons/animation/animation-loading.vue.d.ts +0 -55
  49. package/dist/types/icons/default/check-circle-fill.vue.d.ts +0 -55
  50. package/dist/types/icons/default/close-circle-fill.vue.d.ts +0 -55
  51. package/dist/types/icons/default/exclamation-circle-fill.vue.d.ts +0 -55
  52. package/dist/types/icons/default/info-circle-fill.vue.d.ts +0 -55
  53. package/dist/types/icons/default/minus-circle-fill.vue.d.ts +0 -55
  54. package/dist/types/icons/index.d.ts +0 -7
  55. package/dist/types/ui.d.ts +0 -5
  56. package/dist/ui.cjs.js +0 -2
  57. package/dist/ui.es.js +0 -1395
  58. package/dist/ui.umd.js +0 -3
@@ -1,52 +0,0 @@
1
- import type { 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;
@@ -1,2 +0,0 @@
1
- import MessageBox from './';
2
- export default MessageBox;
@@ -1,160 +0,0 @@
1
- declare const _sfc_main: 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<"success" | "error" | "warning" | "strong" | "info">;
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: string]: 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
- color: string;
104
- rotate: number;
105
- spin: boolean;
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<"success" | "error" | "warning" | "strong" | "info">;
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
- position: import("./props").NotificationPosition;
151
- offset: number;
152
- message: string;
153
- title: string;
154
- type: "success" | "error" | "warning" | "strong" | "info";
155
- showClose: boolean;
156
- onClose: () => void;
157
- duration: number;
158
- renderToBody: boolean;
159
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
160
- export default _sfc_main;
@@ -1,54 +0,0 @@
1
- import type { 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<"error" | "strong" | "success" | "warning" | "info">;
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>;
@@ -1,3 +0,0 @@
1
- import type { NotificationOptions } from './props';
2
- declare const Notification: (options: NotificationOptions) => void;
3
- export default Notification;
@@ -1,42 +0,0 @@
1
- import type { PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- direction: {
4
- type: PropType<"horizontal" | "vertical">;
5
- default: string;
6
- };
7
- size: {
8
- type: PropType<number | "small" | "medium" | "large" | "mini">;
9
- default: string;
10
- };
11
- align: {
12
- type: PropType<"center" | "end" | "start" | "baseline">;
13
- default: string;
14
- };
15
- fill: {
16
- type: BooleanConstructor;
17
- default: boolean;
18
- };
19
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
- direction: {
21
- type: PropType<"horizontal" | "vertical">;
22
- default: string;
23
- };
24
- size: {
25
- type: PropType<number | "small" | "medium" | "large" | "mini">;
26
- default: string;
27
- };
28
- align: {
29
- type: PropType<"center" | "end" | "start" | "baseline">;
30
- default: string;
31
- };
32
- fill: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- }>> & Readonly<{}>, {
37
- fill: boolean;
38
- direction: "horizontal" | "vertical";
39
- size: number | "small" | "medium" | "large" | "mini";
40
- align: "center" | "end" | "start" | "baseline";
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
- export default _default;
File without changes
@@ -1,114 +0,0 @@
1
- import { VNode } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- boundary: {
4
- required: boolean;
5
- type: import("vue").PropType<import("../props").Boundary>;
6
- default: () => void;
7
- };
8
- minValue: {
9
- required: boolean;
10
- type: NumberConstructor;
11
- };
12
- maxValue: {
13
- required: boolean;
14
- type: NumberConstructor;
15
- };
16
- maxAmount: {
17
- required: boolean;
18
- type: NumberConstructor;
19
- };
20
- activeLineParams: {
21
- type: ObjectConstructor;
22
- };
23
- data: {
24
- required: boolean;
25
- type: import("vue").PropType<import("../props").PointValue[]>;
26
- default: () => never[];
27
- };
28
- className: {
29
- type: import("vue").PropType<string>;
30
- };
31
- smooth: {
32
- default: boolean;
33
- type: BooleanConstructor;
34
- };
35
- stroke: {
36
- default: boolean;
37
- type: BooleanConstructor;
38
- };
39
- fill: {
40
- default: boolean;
41
- type: BooleanConstructor;
42
- };
43
- showPoints: {
44
- default: boolean;
45
- type: BooleanConstructor;
46
- };
47
- theme: {
48
- type: import("vue").PropType<import("../props").CurveTheme>;
49
- };
50
- mainTheme: {
51
- type: import("vue").PropType<import("../props").CurveTheme>;
52
- };
53
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
- [key: string]: any;
55
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
- boundary: {
57
- required: boolean;
58
- type: import("vue").PropType<import("../props").Boundary>;
59
- default: () => void;
60
- };
61
- minValue: {
62
- required: boolean;
63
- type: NumberConstructor;
64
- };
65
- maxValue: {
66
- required: boolean;
67
- type: NumberConstructor;
68
- };
69
- maxAmount: {
70
- required: boolean;
71
- type: NumberConstructor;
72
- };
73
- activeLineParams: {
74
- type: ObjectConstructor;
75
- };
76
- data: {
77
- required: boolean;
78
- type: import("vue").PropType<import("../props").PointValue[]>;
79
- default: () => never[];
80
- };
81
- className: {
82
- type: import("vue").PropType<string>;
83
- };
84
- smooth: {
85
- default: boolean;
86
- type: BooleanConstructor;
87
- };
88
- stroke: {
89
- default: boolean;
90
- type: BooleanConstructor;
91
- };
92
- fill: {
93
- default: boolean;
94
- type: BooleanConstructor;
95
- };
96
- showPoints: {
97
- default: boolean;
98
- type: BooleanConstructor;
99
- };
100
- theme: {
101
- type: import("vue").PropType<import("../props").CurveTheme>;
102
- };
103
- mainTheme: {
104
- type: import("vue").PropType<import("../props").CurveTheme>;
105
- };
106
- }>> & Readonly<{}>, {
107
- fill: boolean;
108
- data: import("../props").PointValue[];
109
- smooth: boolean;
110
- stroke: boolean;
111
- boundary: import("../props").Boundary;
112
- showPoints: boolean;
113
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
114
- export default _default;
@@ -1,55 +0,0 @@
1
- import { VNode } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- boundary: {
4
- required: boolean;
5
- type: import("vue").PropType<import("../props").Boundary>;
6
- default: () => void;
7
- };
8
- verticalLines: {
9
- default: boolean;
10
- type: BooleanConstructor;
11
- };
12
- verticalLinesNumber: {
13
- default: number;
14
- type: NumberConstructor;
15
- };
16
- horizontalLines: {
17
- default: boolean;
18
- type: BooleanConstructor;
19
- };
20
- horizontalLinesNumber: {
21
- default: number;
22
- type: NumberConstructor;
23
- };
24
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
- [key: string]: any;
26
- }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
- boundary: {
28
- required: boolean;
29
- type: import("vue").PropType<import("../props").Boundary>;
30
- default: () => void;
31
- };
32
- verticalLines: {
33
- default: boolean;
34
- type: BooleanConstructor;
35
- };
36
- verticalLinesNumber: {
37
- default: number;
38
- type: NumberConstructor;
39
- };
40
- horizontalLines: {
41
- default: boolean;
42
- type: BooleanConstructor;
43
- };
44
- horizontalLinesNumber: {
45
- default: number;
46
- type: NumberConstructor;
47
- };
48
- }>> & Readonly<{}>, {
49
- boundary: import("../props").Boundary;
50
- verticalLines: boolean;
51
- verticalLinesNumber: number;
52
- horizontalLines: boolean;
53
- horizontalLinesNumber: number;
54
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
- export default _default;
@@ -1,22 +0,0 @@
1
- import { VNode } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- boundary: import("../props").Boundary;
4
- yLabelsTextFormatter: Function;
5
- minValue?: number | undefined;
6
- maxValue?: number | undefined;
7
- xLabels?: unknown[] | undefined;
8
- yLabels?: number | undefined;
9
- }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
10
- [key: string]: any;
11
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
- boundary: import("../props").Boundary;
13
- yLabelsTextFormatter: Function;
14
- minValue?: number | undefined;
15
- maxValue?: number | undefined;
16
- xLabels?: unknown[] | undefined;
17
- yLabels?: number | undefined;
18
- }> & Readonly<{}>, {
19
- boundary: import("../props").Boundary;
20
- yLabelsTextFormatter: Function;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
- export default _default;