x-next 0.0.0-alpha.3 → 0.0.0-alpha.30

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.
Files changed (96) hide show
  1. package/README.md +1 -1
  2. package/{x-next → dist}/_utils/config.d.ts +1 -1
  3. package/dist/_utils/constant.d.ts +17 -0
  4. package/{x-next → dist}/_utils/is.d.ts +2 -0
  5. package/{x-next → dist}/_utils/vue-eco.d.ts +4 -1
  6. package/{x-next/componets/button/index.vue.d.ts → dist/components/button/Button.d.ts} +5 -70
  7. package/dist/components/button/index.d.ts +181 -0
  8. package/{x-next/componets/dialog/index.vue.d.ts → dist/components/dialog/Dialog.d.ts} +13 -46
  9. package/dist/components/dialog/index.d.ts +334 -0
  10. package/{x-next/componets → dist/components}/dialog/props.d.ts +5 -5
  11. package/dist/components/index.d.ts +7 -0
  12. package/dist/components/message/Message.d.ts +108 -0
  13. package/{x-next/componets/message/index.vue.d.ts → dist/components/message/MessageVue.vue.d.ts} +22 -47
  14. package/dist/components/message/index.d.ts +193 -0
  15. package/dist/components/message-box/index.d.ts +4 -0
  16. package/dist/components/message-box/warp.d.ts +2 -0
  17. package/dist/components/notification/Notification.d.ts +89 -0
  18. package/dist/components/notification/index.d.ts +166 -0
  19. package/dist/components/scrollbar/props.d.ts +16 -0
  20. package/{x-next/componets/space/index.d.ts → dist/components/space/Space.d.ts} +1 -1
  21. package/dist/components/space/index.d.ts +82 -0
  22. package/dist/components/tag-cloud/index.d.ts +0 -0
  23. package/dist/components/trend-chart/components/trend-chart-curve.d.ts +111 -0
  24. package/dist/components/trend-chart/components/trend-chart-grid.d.ts +55 -0
  25. package/dist/components/trend-chart/components/trend-chart-labels.d.ts +22 -0
  26. package/dist/components/trend-chart/components/trend-chart.d.ts +277 -0
  27. package/dist/components/trend-chart/helpers/genPath.d.ts +8 -0
  28. package/dist/components/trend-chart/helpers/genPoints.d.ts +3 -0
  29. package/dist/components/trend-chart/helpers/getPadding.d.ts +7 -0
  30. package/dist/components/trend-chart/helpers/validatePadding.d.ts +2 -0
  31. package/dist/components/trend-chart/index.d.ts +536 -0
  32. package/dist/components/trend-chart/props.d.ts +203 -0
  33. package/dist/components/trend-chart/themes.d.ts +128 -0
  34. package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/components/trend-chart-curve.d.ts +2 -5
  35. package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/components/trend-chart.d.ts +19 -15
  36. package/dist/components/trend-chart.bak/index.d.ts +530 -0
  37. package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/props.d.ts +10 -5
  38. package/dist/components/trend-chart.bak/themes.d.ts +152 -0
  39. package/dist/directives/clipboard/cache.d.ts +8 -0
  40. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  41. package/dist/directives/clipboard/convert.d.ts +3 -0
  42. package/dist/directives/clipboard/index.d.ts +3 -0
  43. package/dist/directives/clipboard/plugin.d.ts +2 -0
  44. package/dist/directives/clipboard/textarea.d.ts +3 -0
  45. package/{x-next/icons/default/exclamation-circle-fill.vue.d.ts → dist/icons/animation/animation-loading.d.ts} +4 -9
  46. package/{x-next/icons/animation/animation-loading.vue.d.ts → dist/icons/default/check-circle-fill.d.ts} +4 -9
  47. package/{x-next/icons/default/close-circle-fill.vue.d.ts → dist/icons/default/close-circle-fill.d.ts} +4 -9
  48. package/{x-next/icons/default/check-circle-fill.vue.d.ts → dist/icons/default/exclamation-circle-fill.d.ts} +4 -9
  49. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  50. package/dist/icons/default/logo-simple.d.ts +50 -0
  51. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  52. package/dist/icons/icon.d.ts +51 -0
  53. package/{x-next → dist}/icons/index.d.ts +8 -7
  54. package/dist/index.d.ts +13 -0
  55. package/dist/index.es.js +2064 -0
  56. package/dist/index.umd.js +1 -0
  57. package/dist/style.css +1 -0
  58. package/dist/types.d.ts +12 -0
  59. package/package.json +23 -13
  60. package/volar.d.ts +13 -0
  61. package/x-next/_utils/icon.d.ts +0 -59
  62. package/x-next/componets/message-box/warp.d.ts +0 -2
  63. package/x-next/componets/notification/index.vue.d.ts +0 -160
  64. package/x-next/componets/trend-chart/index.d.ts +0 -2
  65. package/x-next/icons/default/info-circle-fill.vue.d.ts +0 -55
  66. package/x-next/icons/default/minus-circle-fill.vue.d.ts +0 -55
  67. package/x-next/style.css +0 -1
  68. package/x-next/ui.d.ts +0 -5
  69. package/x-next/ui.js +0 -1357
  70. package/x-next/ui.umd.cjs +0 -1
  71. /package/{x-next → dist}/_hooks/use-overflow.d.ts +0 -0
  72. /package/{x-next → dist}/_hooks/use-popup-manager.d.ts +0 -0
  73. /package/{x-next → dist}/_props/css.d.ts +0 -0
  74. /package/{x-next → dist}/_props/global.d.ts +0 -0
  75. /package/{x-next → dist}/_utils/convert-case.d.ts +0 -0
  76. /package/{x-next → dist}/_utils/dom.d.ts +0 -0
  77. /package/{x-next → dist}/_utils/helpers.d.ts +0 -0
  78. /package/{x-next → dist}/_utils/keyboard.d.ts +0 -0
  79. /package/{x-next → dist}/_utils/number.d.ts +0 -0
  80. /package/{x-next/componets → dist/components}/button/props.d.ts +0 -0
  81. /package/{x-next/componets → dist/components}/dialog/use-props.d.ts +0 -0
  82. /package/{x-next/componets → dist/components}/dialog/use.d.ts +0 -0
  83. /package/{x-next/componets → dist/components}/dialog/warp.d.ts +0 -0
  84. /package/{x-next/componets → dist/components}/message/props.d.ts +0 -0
  85. /package/{x-next/componets → dist/components}/message/warp.d.ts +0 -0
  86. /package/{x-next/componets/message-box/index.d.ts → dist/components/message-box/MessageBox.d.ts} +0 -0
  87. /package/{x-next/componets → dist/components}/message-box/props.d.ts +0 -0
  88. /package/{x-next/componets → dist/components}/notification/props.d.ts +0 -0
  89. /package/{x-next/componets → dist/components}/notification/warp.d.ts +0 -0
  90. /package/{x-next/componets/tag-cloud → dist/components/scrollbar}/index.d.ts +0 -0
  91. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/components/trend-chart-grid.d.ts +0 -0
  92. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/components/trend-chart-labels.d.ts +0 -0
  93. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/helpers/genPath.d.ts +0 -0
  94. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/helpers/genPoints.d.ts +0 -0
  95. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/helpers/getPadding.d.ts +0 -0
  96. /package/{x-next/componets/trend-chart → dist/components/trend-chart.bak}/helpers/validatePadding.d.ts +0 -0
@@ -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;
@@ -0,0 +1,277 @@
1
+ import { MouseMoveEvent, CurveTheme } from '../props';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ dataset: {
4
+ required: boolean;
5
+ type: import('vue').PropType<import('../props').DataSet>;
6
+ default: () => never[];
7
+ };
8
+ status: {
9
+ type: import('vue').PropType<import('../props').TrendChartStatus>;
10
+ default: undefined;
11
+ };
12
+ grid: {
13
+ default: null;
14
+ type: import('vue').PropType<import('../props').Grid>;
15
+ };
16
+ labels: {
17
+ default: null;
18
+ type: import('vue').PropType<import('../props').Labels>;
19
+ };
20
+ max: {
21
+ type: NumberConstructor;
22
+ };
23
+ min: {
24
+ type: NumberConstructor;
25
+ };
26
+ padding: {
27
+ default: string;
28
+ type: StringConstructor;
29
+ validator(val: string): boolean;
30
+ };
31
+ interactive: {
32
+ default: boolean;
33
+ type: BooleanConstructor;
34
+ };
35
+ theme: {
36
+ type: import('vue').PropType<import('../props').Theme>;
37
+ default: () => {
38
+ activeLineColor: string;
39
+ };
40
+ };
41
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ 'mouse-move': (event: MouseMoveEvent) => boolean;
43
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
44
+ dataset: {
45
+ required: boolean;
46
+ type: import('vue').PropType<import('../props').DataSet>;
47
+ default: () => never[];
48
+ };
49
+ status: {
50
+ type: import('vue').PropType<import('../props').TrendChartStatus>;
51
+ default: undefined;
52
+ };
53
+ grid: {
54
+ default: null;
55
+ type: import('vue').PropType<import('../props').Grid>;
56
+ };
57
+ labels: {
58
+ default: null;
59
+ type: import('vue').PropType<import('../props').Labels>;
60
+ };
61
+ max: {
62
+ type: NumberConstructor;
63
+ };
64
+ min: {
65
+ type: NumberConstructor;
66
+ };
67
+ padding: {
68
+ default: string;
69
+ type: StringConstructor;
70
+ validator(val: string): boolean;
71
+ };
72
+ interactive: {
73
+ default: boolean;
74
+ type: BooleanConstructor;
75
+ };
76
+ theme: {
77
+ type: import('vue').PropType<import('../props').Theme>;
78
+ default: () => {
79
+ activeLineColor: string;
80
+ };
81
+ };
82
+ }>> & Readonly<{
83
+ "onMouse-move"?: ((event: MouseMoveEvent) => any) | undefined;
84
+ }>, {
85
+ status: import('../props').TrendChartStatus;
86
+ grid: import('../props').Grid;
87
+ padding: string;
88
+ theme: import('../props').Theme;
89
+ dataset: import('../props').DataSet;
90
+ labels: import('../props').Labels;
91
+ interactive: boolean;
92
+ }, {}, {
93
+ TrendChartGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
94
+ boundary: {
95
+ required: boolean;
96
+ type: import('vue').PropType<import('../props').Boundary>;
97
+ default: () => void;
98
+ };
99
+ verticalLines: {
100
+ default: boolean;
101
+ type: BooleanConstructor;
102
+ };
103
+ verticalLinesNumber: {
104
+ default: number;
105
+ type: NumberConstructor;
106
+ };
107
+ horizontalLines: {
108
+ default: boolean;
109
+ type: BooleanConstructor;
110
+ };
111
+ horizontalLinesNumber: {
112
+ default: number;
113
+ type: NumberConstructor;
114
+ };
115
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
116
+ [key: string]: any;
117
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
118
+ boundary: {
119
+ required: boolean;
120
+ type: import('vue').PropType<import('../props').Boundary>;
121
+ default: () => void;
122
+ };
123
+ verticalLines: {
124
+ default: boolean;
125
+ type: BooleanConstructor;
126
+ };
127
+ verticalLinesNumber: {
128
+ default: number;
129
+ type: NumberConstructor;
130
+ };
131
+ horizontalLines: {
132
+ default: boolean;
133
+ type: BooleanConstructor;
134
+ };
135
+ horizontalLinesNumber: {
136
+ default: number;
137
+ type: NumberConstructor;
138
+ };
139
+ }>> & Readonly<{}>, {
140
+ boundary: import('../props').Boundary;
141
+ verticalLines: boolean;
142
+ verticalLinesNumber: number;
143
+ horizontalLines: boolean;
144
+ horizontalLinesNumber: number;
145
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
146
+ TrendChartLabels: import('vue').DefineComponent<{
147
+ boundary: import('../props').Boundary;
148
+ yLabelsTextFormatter: Function;
149
+ minValue?: number | undefined;
150
+ maxValue?: number | undefined;
151
+ xLabels?: unknown[] | undefined;
152
+ yLabels?: number | undefined;
153
+ }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
154
+ [key: string]: any;
155
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
156
+ boundary: import('../props').Boundary;
157
+ yLabelsTextFormatter: Function;
158
+ minValue?: number | undefined;
159
+ maxValue?: number | undefined;
160
+ xLabels?: unknown[] | undefined;
161
+ yLabels?: number | undefined;
162
+ }> & Readonly<{}>, {
163
+ boundary: import('../props').Boundary;
164
+ yLabelsTextFormatter: Function;
165
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
166
+ TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
167
+ boundary: {
168
+ required: boolean;
169
+ type: import('vue').PropType<import('../props').Boundary>;
170
+ default: () => void;
171
+ };
172
+ minValue: {
173
+ required: boolean;
174
+ type: NumberConstructor;
175
+ };
176
+ maxValue: {
177
+ required: boolean;
178
+ type: NumberConstructor;
179
+ };
180
+ maxAmount: {
181
+ required: boolean;
182
+ type: NumberConstructor;
183
+ };
184
+ activeLineParams: {
185
+ type: ObjectConstructor;
186
+ };
187
+ data: {
188
+ required: boolean;
189
+ type: import('vue').PropType<number[]>;
190
+ default: () => never[];
191
+ };
192
+ className: {
193
+ type: import('vue').PropType<string>;
194
+ };
195
+ smooth: {
196
+ default: boolean;
197
+ type: BooleanConstructor;
198
+ };
199
+ stroke: {
200
+ default: boolean;
201
+ type: BooleanConstructor;
202
+ };
203
+ fill: {
204
+ default: boolean;
205
+ type: BooleanConstructor;
206
+ };
207
+ showPoints: {
208
+ default: boolean;
209
+ type: BooleanConstructor;
210
+ };
211
+ theme: {
212
+ type: import('vue').PropType<CurveTheme>;
213
+ };
214
+ mainTheme: {
215
+ type: import('vue').PropType<CurveTheme>;
216
+ };
217
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
218
+ boundary: {
219
+ required: boolean;
220
+ type: import('vue').PropType<import('../props').Boundary>;
221
+ default: () => void;
222
+ };
223
+ minValue: {
224
+ required: boolean;
225
+ type: NumberConstructor;
226
+ };
227
+ maxValue: {
228
+ required: boolean;
229
+ type: NumberConstructor;
230
+ };
231
+ maxAmount: {
232
+ required: boolean;
233
+ type: NumberConstructor;
234
+ };
235
+ activeLineParams: {
236
+ type: ObjectConstructor;
237
+ };
238
+ data: {
239
+ required: boolean;
240
+ type: import('vue').PropType<number[]>;
241
+ default: () => never[];
242
+ };
243
+ className: {
244
+ type: import('vue').PropType<string>;
245
+ };
246
+ smooth: {
247
+ default: boolean;
248
+ type: BooleanConstructor;
249
+ };
250
+ stroke: {
251
+ default: boolean;
252
+ type: BooleanConstructor;
253
+ };
254
+ fill: {
255
+ default: boolean;
256
+ type: BooleanConstructor;
257
+ };
258
+ showPoints: {
259
+ default: boolean;
260
+ type: BooleanConstructor;
261
+ };
262
+ theme: {
263
+ type: import('vue').PropType<CurveTheme>;
264
+ };
265
+ mainTheme: {
266
+ type: import('vue').PropType<CurveTheme>;
267
+ };
268
+ }>> & Readonly<{}>, {
269
+ fill: boolean;
270
+ data: number[];
271
+ stroke: boolean;
272
+ smooth: boolean;
273
+ boundary: import('../props').Boundary;
274
+ showPoints: boolean;
275
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
276
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
277
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { Point } from '../props';
2
+ declare const _default: (points: Point[], smooth: boolean, { maxY }: {
3
+ maxY: any;
4
+ }) => {
5
+ linePath: string;
6
+ fillPath: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Boundary, Point, PointValue } from '../props';
2
+ declare const _default: (points: PointValue[], boundary: Boundary, max: number, min: number, maxAmount: number) => Point[];
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Padding } from '../props';
2
+ /**
3
+ * 获取padding
4
+ * @param paddingString
5
+ */
6
+ declare const _default: (paddingString: string) => Padding;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (padding: string) => boolean;
2
+ export default _default;