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,203 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { CSSColor } from '../../_props/css';
3
+ export type TrendChartStatus = 'primary' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
4
+ export type Padding = {
5
+ top: number | string;
6
+ right: number | string;
7
+ bottom: number | string;
8
+ left: number | string;
9
+ };
10
+ export type Point = {
11
+ x: number;
12
+ y: number;
13
+ };
14
+ export type PointValue = number;
15
+ export type MouseMoveEvent = {
16
+ index: number;
17
+ data: PointValue;
18
+ } | null;
19
+ export type Boundary = {
20
+ minX: number;
21
+ maxX: number;
22
+ minY: number;
23
+ maxY: number;
24
+ };
25
+ export type DataSetTheme = {};
26
+ export type DataSet = number[];
27
+ export type Grid = {
28
+ verticalLines?: boolean;
29
+ verticalLinesNumber?: number;
30
+ horizontalLines?: boolean;
31
+ horizontalLinesNumber?: number;
32
+ };
33
+ export type Labels = {
34
+ xLabels: string[];
35
+ yLabels: number;
36
+ yLabelsTextFormatter: (value: number) => string;
37
+ };
38
+ export type CurveTheme = {
39
+ stroke?: {
40
+ width?: number;
41
+ color?: CSSColor;
42
+ opacity?: number;
43
+ };
44
+ fill?: {
45
+ color?: CSSColor;
46
+ opacity?: number;
47
+ };
48
+ point?: {
49
+ width?: number;
50
+ color?: CSSColor;
51
+ opacity?: number;
52
+ };
53
+ };
54
+ export interface Theme extends CurveTheme {
55
+ color?: CSSColor;
56
+ axisLine?: {
57
+ color?: CSSColor;
58
+ width?: number;
59
+ opacity?: number;
60
+ };
61
+ }
62
+ export declare const trendChartProps: {
63
+ dataset: {
64
+ required: boolean;
65
+ type: PropType<DataSet>;
66
+ default: () => never[];
67
+ };
68
+ status: {
69
+ type: PropType<TrendChartStatus>;
70
+ default: undefined;
71
+ };
72
+ grid: {
73
+ default: null;
74
+ type: PropType<Grid>;
75
+ };
76
+ labels: {
77
+ default: null;
78
+ type: PropType<Labels>;
79
+ };
80
+ max: {
81
+ type: NumberConstructor;
82
+ };
83
+ min: {
84
+ type: NumberConstructor;
85
+ };
86
+ padding: {
87
+ default: string;
88
+ type: StringConstructor;
89
+ validator(val: string): boolean;
90
+ };
91
+ interactive: {
92
+ default: boolean;
93
+ type: BooleanConstructor;
94
+ };
95
+ theme: {
96
+ type: PropType<Theme>;
97
+ default: () => {
98
+ activeLineColor: string;
99
+ };
100
+ };
101
+ };
102
+ export declare const trendChartCurveProps: {
103
+ boundary: {
104
+ required: boolean;
105
+ type: PropType<Boundary>;
106
+ default: () => void;
107
+ };
108
+ minValue: {
109
+ required: boolean;
110
+ type: NumberConstructor;
111
+ };
112
+ maxValue: {
113
+ required: boolean;
114
+ type: NumberConstructor;
115
+ };
116
+ maxAmount: {
117
+ required: boolean;
118
+ type: NumberConstructor;
119
+ };
120
+ activeLineParams: {
121
+ type: ObjectConstructor;
122
+ };
123
+ data: {
124
+ required: boolean;
125
+ type: PropType<number[]>;
126
+ default: () => never[];
127
+ };
128
+ className: {
129
+ type: PropType<string>;
130
+ };
131
+ smooth: {
132
+ default: boolean;
133
+ type: BooleanConstructor;
134
+ };
135
+ stroke: {
136
+ default: boolean;
137
+ type: BooleanConstructor;
138
+ };
139
+ fill: {
140
+ default: boolean;
141
+ type: BooleanConstructor;
142
+ };
143
+ showPoints: {
144
+ default: boolean;
145
+ type: BooleanConstructor;
146
+ };
147
+ theme: {
148
+ type: PropType<CurveTheme>;
149
+ };
150
+ mainTheme: {
151
+ type: PropType<CurveTheme>;
152
+ };
153
+ };
154
+ export declare const trendChartGridProps: {
155
+ boundary: {
156
+ required: boolean;
157
+ type: PropType<Boundary>;
158
+ default: () => void;
159
+ };
160
+ verticalLines: {
161
+ default: boolean;
162
+ type: BooleanConstructor;
163
+ };
164
+ verticalLinesNumber: {
165
+ default: number;
166
+ type: NumberConstructor;
167
+ };
168
+ horizontalLines: {
169
+ default: boolean;
170
+ type: BooleanConstructor;
171
+ };
172
+ horizontalLinesNumber: {
173
+ default: number;
174
+ type: NumberConstructor;
175
+ };
176
+ };
177
+ export declare const trendChartLabelsProps: {
178
+ boundary: {
179
+ required: boolean;
180
+ type: PropType<Boundary>;
181
+ default: () => void;
182
+ };
183
+ minValue: {
184
+ type: NumberConstructor;
185
+ required: boolean;
186
+ };
187
+ maxValue: {
188
+ type: NumberConstructor;
189
+ required: boolean;
190
+ };
191
+ xLabels: {
192
+ type: ArrayConstructor;
193
+ };
194
+ yLabels: {
195
+ type: NumberConstructor;
196
+ required: boolean;
197
+ };
198
+ yLabelsTextFormatter: {
199
+ default: (value: any) => any;
200
+ type: FunctionConstructor;
201
+ };
202
+ };
203
+ export type TrendChartLabelsProps = ExtractPropTypes<typeof trendChartLabelsProps>;
@@ -0,0 +1,128 @@
1
+ export declare const TrendChartTheme: {
2
+ DANGER: {
3
+ color: string;
4
+ point: {
5
+ width: number;
6
+ color: string;
7
+ };
8
+ stroke: {
9
+ width: number;
10
+ color: string;
11
+ opacity: number;
12
+ };
13
+ fill: {
14
+ color: string;
15
+ opacity: number;
16
+ };
17
+ axisLine: {
18
+ color: string;
19
+ width: number;
20
+ opacity: number;
21
+ };
22
+ };
23
+ STRONG: {
24
+ color: string;
25
+ point: {
26
+ width: number;
27
+ color: string;
28
+ };
29
+ stroke: {
30
+ width: number;
31
+ color: string;
32
+ opacity: number;
33
+ };
34
+ fill: {
35
+ color: string;
36
+ opacity: number;
37
+ };
38
+ axisLine: {
39
+ color: string;
40
+ width: number;
41
+ opacity: number;
42
+ };
43
+ };
44
+ WARNING: {
45
+ color: string;
46
+ point: {
47
+ width: number;
48
+ color: string;
49
+ };
50
+ stroke: {
51
+ width: number;
52
+ color: string;
53
+ opacity: number;
54
+ };
55
+ fill: {
56
+ color: string;
57
+ opacity: number;
58
+ };
59
+ axisLine: {
60
+ color: string;
61
+ width: number;
62
+ opacity: number;
63
+ };
64
+ };
65
+ SUCCESS: {
66
+ color: string;
67
+ point: {
68
+ width: number;
69
+ color: string;
70
+ };
71
+ stroke: {
72
+ width: number;
73
+ color: string;
74
+ opacity: number;
75
+ };
76
+ fill: {
77
+ color: string;
78
+ opacity: number;
79
+ };
80
+ axisLine: {
81
+ color: string;
82
+ width: number;
83
+ opacity: number;
84
+ };
85
+ };
86
+ INFO: {
87
+ color: string;
88
+ point: {
89
+ width: number;
90
+ color: string;
91
+ };
92
+ stroke: {
93
+ width: number;
94
+ color: string;
95
+ opacity: number;
96
+ };
97
+ fill: {
98
+ color: string;
99
+ opacity: number;
100
+ };
101
+ axisLine: {
102
+ color: string;
103
+ width: number;
104
+ opacity: number;
105
+ };
106
+ };
107
+ PRIMARY: {
108
+ color: string;
109
+ point: {
110
+ width: number;
111
+ color: string;
112
+ };
113
+ stroke: {
114
+ width: number;
115
+ color: string;
116
+ opacity: number;
117
+ };
118
+ fill: {
119
+ color: string;
120
+ opacity: number;
121
+ };
122
+ axisLine: {
123
+ color: string;
124
+ width: number;
125
+ opacity: number;
126
+ };
127
+ };
128
+ };
@@ -1,4 +1,3 @@
1
- import { VNode } from 'vue';
2
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
2
  boundary: {
4
3
  required: boolean;
@@ -50,9 +49,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
49
  mainTheme: {
51
50
  type: import('vue').PropType<import('../props').CurveTheme>;
52
51
  };
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<{
52
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
56
53
  boundary: {
57
54
  required: boolean;
58
55
  type: import('vue').PropType<import('../props').Boundary>;
@@ -105,8 +102,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
105
102
  };
106
103
  }>> & Readonly<{}>, {
107
104
  fill: boolean;
108
- stroke: boolean;
109
105
  data: import('../props').PointValue[];
106
+ stroke: boolean;
110
107
  smooth: boolean;
111
108
  boundary: import('../props').Boundary;
112
109
  showPoints: boolean;
@@ -1,10 +1,13 @@
1
- import { VNode } from 'vue';
2
- import { MouseMoveEvent, PointValue } from '../props';
1
+ import { MouseMoveEvent, PointValue, CurveTheme } from '../props';
3
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
3
  datasets: {
5
4
  required: boolean;
6
5
  type: import('vue').PropType<import('../props').DataSets>;
7
6
  };
7
+ status: {
8
+ type: import('vue').PropType<import('../props').TrendChartStatus>;
9
+ default: undefined;
10
+ };
8
11
  grid: {
9
12
  default: null;
10
13
  type: import('vue').PropType<import('../props').Grid>;
@@ -34,15 +37,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
37
  activeLineColor: string;
35
38
  };
36
39
  };
37
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
38
- [key: string]: any;
39
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
40
41
  'mouse-move': (event: MouseMoveEvent) => boolean;
41
42
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
43
  datasets: {
43
44
  required: boolean;
44
45
  type: import('vue').PropType<import('../props').DataSets>;
45
46
  };
47
+ status: {
48
+ type: import('vue').PropType<import('../props').TrendChartStatus>;
49
+ default: undefined;
50
+ };
46
51
  grid: {
47
52
  default: null;
48
53
  type: import('vue').PropType<import('../props').Grid>;
@@ -75,6 +80,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
75
80
  }>> & Readonly<{
76
81
  "onMouse-move"?: ((event: MouseMoveEvent) => any) | undefined;
77
82
  }>, {
83
+ status: import('../props').TrendChartStatus;
78
84
  grid: import('../props').Grid;
79
85
  padding: string;
80
86
  theme: import('../props').Theme;
@@ -103,7 +109,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
103
109
  default: number;
104
110
  type: NumberConstructor;
105
111
  };
106
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
112
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
107
113
  [key: string]: any;
108
114
  }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
109
115
  boundary: {
@@ -141,7 +147,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
141
147
  maxValue?: number | undefined;
142
148
  xLabels?: unknown[] | undefined;
143
149
  yLabels?: number | undefined;
144
- }, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
150
+ }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
145
151
  [key: string]: any;
146
152
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
147
153
  boundary: import('../props').Boundary;
@@ -200,14 +206,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
200
206
  type: BooleanConstructor;
201
207
  };
202
208
  theme: {
203
- type: import('vue').PropType<import('../props').CurveTheme>;
209
+ type: import('vue').PropType<CurveTheme>;
204
210
  };
205
211
  mainTheme: {
206
- type: import('vue').PropType<import('../props').CurveTheme>;
212
+ type: import('vue').PropType<CurveTheme>;
207
213
  };
208
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
209
- [key: string]: any;
210
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
214
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
211
215
  boundary: {
212
216
  required: boolean;
213
217
  type: import('vue').PropType<import('../props').Boundary>;
@@ -253,15 +257,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
253
257
  type: BooleanConstructor;
254
258
  };
255
259
  theme: {
256
- type: import('vue').PropType<import('../props').CurveTheme>;
260
+ type: import('vue').PropType<CurveTheme>;
257
261
  };
258
262
  mainTheme: {
259
- type: import('vue').PropType<import('../props').CurveTheme>;
263
+ type: import('vue').PropType<CurveTheme>;
260
264
  };
261
265
  }>> & Readonly<{}>, {
262
266
  fill: boolean;
263
- stroke: boolean;
264
267
  data: PointValue[];
268
+ stroke: boolean;
265
269
  smooth: boolean;
266
270
  boundary: import('../props').Boundary;
267
271
  showPoints: boolean;