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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +93 -2
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.d.ts +0 -0
  5. package/dist/types/_hooks/use-overflow.d.ts +5 -0
  6. package/dist/types/_hooks/use-popup-manager.d.ts +11 -0
  7. package/dist/types/_props/css.d.ts +13 -0
  8. package/dist/types/_props/global.d.ts +1 -0
  9. package/dist/types/_utils/config.d.ts +9 -0
  10. package/dist/types/_utils/convert-case.d.ts +3 -0
  11. package/dist/types/_utils/dom.d.ts +10 -0
  12. package/dist/types/_utils/helpers.d.ts +12 -0
  13. package/dist/types/_utils/icon.d.ts +59 -0
  14. package/dist/types/_utils/is.d.ts +25 -0
  15. package/dist/types/_utils/keyboard.d.ts +24 -0
  16. package/dist/types/_utils/number.d.ts +0 -0
  17. package/dist/types/_utils/vue-eco.d.ts +32 -0
  18. package/dist/types/componets/button/index.vue.d.ts +107 -0
  19. package/dist/types/componets/button/props.d.ts +45 -0
  20. package/dist/types/componets/dialog/index.vue.d.ts +221 -0
  21. package/dist/types/componets/dialog/props.d.ts +83 -0
  22. package/dist/types/componets/dialog/use-props.d.ts +33 -0
  23. package/dist/types/componets/dialog/use.d.ts +3 -0
  24. package/dist/types/componets/dialog/warp.d.ts +2 -0
  25. package/dist/types/componets/message/index.vue.d.ts +116 -0
  26. package/dist/types/componets/message/props.d.ts +31 -0
  27. package/dist/types/componets/message/warp.d.ts +3 -0
  28. package/dist/types/componets/message-box/index.d.ts +3 -0
  29. package/dist/types/componets/message-box/props.d.ts +52 -0
  30. package/dist/types/componets/message-box/warp.d.ts +2 -0
  31. package/dist/types/componets/notification/index.vue.d.ts +160 -0
  32. package/dist/types/componets/notification/props.d.ts +54 -0
  33. package/dist/types/componets/notification/warp.d.ts +3 -0
  34. package/dist/types/componets/space/index.d.ts +42 -0
  35. package/dist/types/componets/tag-cloud/index.d.ts +0 -0
  36. package/dist/types/componets/trend-chart/components/trend-chart-curve.d.ts +114 -0
  37. package/dist/types/componets/trend-chart/components/trend-chart-grid.d.ts +55 -0
  38. package/dist/types/componets/trend-chart/components/trend-chart-labels.d.ts +22 -0
  39. package/dist/types/componets/trend-chart/components/trend-chart.d.ts +270 -0
  40. package/dist/types/componets/trend-chart/helpers/genPath.d.ts +8 -0
  41. package/dist/types/componets/trend-chart/helpers/genPoints.d.ts +3 -0
  42. package/dist/types/componets/trend-chart/helpers/getPadding.d.ts +7 -0
  43. package/dist/types/componets/trend-chart/helpers/validatePadding.d.ts +2 -0
  44. package/dist/types/componets/trend-chart/index.d.ts +2 -0
  45. package/dist/types/componets/trend-chart/props.d.ts +206 -0
  46. package/dist/types/icons/animation/animation-loading.vue.d.ts +55 -0
  47. package/dist/types/icons/default/check-circle-fill.vue.d.ts +55 -0
  48. package/dist/types/icons/default/close-circle-fill.vue.d.ts +55 -0
  49. package/dist/types/icons/default/exclamation-circle-fill.vue.d.ts +55 -0
  50. package/dist/types/icons/default/info-circle-fill.vue.d.ts +55 -0
  51. package/dist/types/icons/default/minus-circle-fill.vue.d.ts +55 -0
  52. package/dist/types/icons/index.d.ts +7 -0
  53. package/dist/types/ui.d.ts +5 -0
  54. package/dist/ui.cjs.js +2 -0
  55. package/dist/ui.es.js +1395 -0
  56. package/dist/ui.umd.js +3 -0
  57. package/package.json +64 -63
  58. package/framework/es/client.io.js +0 -2
  59. package/framework/es/client.io.js.map +0 -1
  60. package/framework/es/exception.d.ts +0 -25
  61. package/framework/es/index.d.ts +0 -2
  62. package/framework/es/types.d.ts +0 -33
  63. package/framework/es/util.d.ts +0 -36
  64. package/framework/es/websocket.d.ts +0 -118
  65. package/framework/umd/client.io.js +0 -2
  66. package/framework/umd/client.io.js.map +0 -1
  67. package/framework/umd/exception.d.ts +0 -25
  68. package/framework/umd/index.d.ts +0 -2
  69. package/framework/umd/types.d.ts +0 -33
  70. package/framework/umd/util.d.ts +0 -36
  71. package/framework/umd/websocket.d.ts +0 -118
  72. package/index.d.ts +0 -159
@@ -0,0 +1,160 @@
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;
@@ -0,0 +1,54 @@
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>;
@@ -0,0 +1,3 @@
1
+ import type { NotificationOptions } from './props';
2
+ declare const Notification: (options: NotificationOptions) => void;
3
+ export default Notification;
@@ -0,0 +1,42 @@
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
@@ -0,0 +1,114 @@
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;
@@ -0,0 +1,55 @@
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;
@@ -0,0 +1,22 @@
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;