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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/dist/_hooks/use-overflow.d.ts +5 -0
  2. package/dist/_hooks/use-popup-manager.d.ts +11 -0
  3. package/dist/_props/css.d.ts +13 -0
  4. package/dist/_props/global.d.ts +1 -0
  5. package/dist/_utils/config.d.ts +9 -0
  6. package/dist/_utils/convert-case.d.ts +3 -0
  7. package/dist/_utils/dom.d.ts +10 -0
  8. package/dist/_utils/helpers.d.ts +12 -0
  9. package/dist/_utils/icon.d.ts +59 -0
  10. package/dist/_utils/is.d.ts +22 -0
  11. package/dist/_utils/keyboard.d.ts +24 -0
  12. package/dist/_utils/number.d.ts +0 -0
  13. package/dist/_utils/vue-eco.d.ts +28 -0
  14. package/dist/components.d.ts +1 -0
  15. package/dist/componets/button/index.vue.d.ts +162 -0
  16. package/dist/componets/button/install.d.ts +4 -0
  17. package/dist/componets/button/props.d.ts +45 -0
  18. package/dist/componets/dialog/index.vue.d.ts +221 -0
  19. package/dist/componets/dialog/props.d.ts +83 -0
  20. package/dist/componets/dialog/use-props.d.ts +33 -0
  21. package/dist/componets/dialog/use.d.ts +3 -0
  22. package/dist/componets/dialog/warp.d.ts +2 -0
  23. package/dist/componets/message/index.vue.d.ts +387 -0
  24. package/dist/componets/message/props.d.ts +31 -0
  25. package/dist/componets/message/warp.d.ts +3 -0
  26. package/dist/componets/message-box/index.d.ts +3 -0
  27. package/dist/componets/message-box/props.d.ts +52 -0
  28. package/dist/componets/message-box/warp.d.ts +2 -0
  29. package/dist/componets/notification/index.vue.d.ts +160 -0
  30. package/dist/componets/notification/props.d.ts +54 -0
  31. package/dist/componets/notification/warp.d.ts +3 -0
  32. package/dist/componets/space/index.d.ts +42 -0
  33. package/dist/componets/tag-cloud/index.d.ts +0 -0
  34. package/dist/componets/trend-chart/components/trend-chart-curve.d.ts +114 -0
  35. package/dist/componets/trend-chart/components/trend-chart-grid.d.ts +55 -0
  36. package/dist/componets/trend-chart/components/trend-chart-labels.d.ts +22 -0
  37. package/dist/componets/trend-chart/components/trend-chart.d.ts +270 -0
  38. package/dist/componets/trend-chart/helpers/genPath.d.ts +8 -0
  39. package/dist/componets/trend-chart/helpers/genPoints.d.ts +3 -0
  40. package/dist/componets/trend-chart/helpers/getPadding.d.ts +7 -0
  41. package/dist/componets/trend-chart/helpers/validatePadding.d.ts +2 -0
  42. package/dist/componets/trend-chart/index.d.ts +2 -0
  43. package/dist/componets/trend-chart/props.d.ts +206 -0
  44. package/dist/icons/animation/animation-loading.vue.d.ts +55 -0
  45. package/dist/icons/default/check-circle-fill.vue.d.ts +55 -0
  46. package/dist/icons/default/close-circle-fill.vue.d.ts +55 -0
  47. package/dist/icons/default/exclamation-circle-fill.vue.d.ts +55 -0
  48. package/dist/icons/default/info-circle-fill.vue.d.ts +55 -0
  49. package/dist/icons/default/minus-circle-fill.vue.d.ts +55 -0
  50. package/dist/icons/index.d.ts +7 -0
  51. package/dist/index.d.ts +8 -0
  52. package/dist/index.es.js +1428 -0
  53. package/dist/index.umd.js +1 -1
  54. package/dist/style.css +1 -0
  55. package/package.json +7 -5
@@ -0,0 +1,160 @@
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
+ }>, {
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-icon-loading": 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
+ rotate: number;
104
+ spin: boolean;
105
+ color: string;
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<import('./props').NotificationType>;
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
+ type: "success" | "warning" | "strong" | "info" | "error";
151
+ title: string;
152
+ message: string;
153
+ position: import('./props').NotificationPosition;
154
+ offset: number;
155
+ showClose: boolean;
156
+ onClose: () => void;
157
+ duration: number;
158
+ renderToBody: boolean;
159
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
160
+ export default _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>;
@@ -0,0 +1,3 @@
1
+ import { NotificationOptions } from './props';
2
+ declare const Notification: (options: NotificationOptions) => void;
3
+ export default Notification;
@@ -0,0 +1,42 @@
1
+ import { 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 | "mini" | "small" | "medium" | "large">;
9
+ default: string;
10
+ };
11
+ align: {
12
+ type: PropType<"start" | "end" | "center" | "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 | "mini" | "small" | "medium" | "large">;
26
+ default: string;
27
+ };
28
+ align: {
29
+ type: PropType<"start" | "end" | "center" | "baseline">;
30
+ default: string;
31
+ };
32
+ fill: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ size: number | "mini" | "small" | "medium" | "large";
38
+ fill: boolean;
39
+ direction: "horizontal" | "vertical";
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
+ stroke: boolean;
110
+ smooth: 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;