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

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 (120) hide show
  1. package/dist/_container/client-only.d.ts +4 -0
  2. package/dist/_container/parent-scroll-observer.d.ts +6 -0
  3. package/dist/_container/resize-observer.d.ts +6 -0
  4. package/dist/_container/utils.d.ts +12 -0
  5. package/dist/_hooks/_types.d.ts +4 -0
  6. package/dist/_hooks/use-first-element.d.ts +5 -0
  7. package/dist/_hooks/use-index.d.ts +9 -0
  8. package/dist/_hooks/use-overflow.d.ts +5 -0
  9. package/dist/_hooks/use-popup-manager.d.ts +11 -0
  10. package/dist/_hooks/use-resize-observer.d.ts +8 -0
  11. package/dist/_props/css.d.ts +13 -0
  12. package/dist/_props/global.d.ts +1 -0
  13. package/dist/_utils/click.d.ts +13 -0
  14. package/dist/_utils/config.d.ts +9 -0
  15. package/dist/_utils/constant.d.ts +17 -0
  16. package/dist/_utils/convert-case.d.ts +3 -0
  17. package/dist/_utils/dom.d.ts +10 -0
  18. package/dist/_utils/helpers.d.ts +12 -0
  19. package/dist/_utils/is.d.ts +25 -0
  20. package/dist/_utils/keyboard.d.ts +24 -0
  21. package/dist/_utils/number.d.ts +0 -0
  22. package/dist/_utils/vue-eco.d.ts +38 -0
  23. package/dist/components/button/Button.d.ts +97 -0
  24. package/dist/components/button/index.d.ts +181 -0
  25. package/dist/components/button/props.d.ts +45 -0
  26. package/dist/components/dialog/Dialog.d.ts +188 -0
  27. package/dist/components/dialog/index.d.ts +334 -0
  28. package/dist/components/dialog/props.d.ts +83 -0
  29. package/dist/components/dialog/use-props.d.ts +33 -0
  30. package/dist/components/dialog/use.d.ts +3 -0
  31. package/dist/components/dialog/warp.d.ts +2 -0
  32. package/dist/components/form/constants.d.ts +4 -0
  33. package/dist/components/form/form-item.d.ts +31 -0
  34. package/dist/components/form/form.d.ts +39 -0
  35. package/dist/components/form/hooks.d.ts +4 -0
  36. package/dist/components/form/types.d.ts +31 -0
  37. package/dist/components/index.d.ts +10 -0
  38. package/dist/components/input/Input.d.ts +220 -0
  39. package/dist/components/input/index.d.ts +394 -0
  40. package/dist/components/input/props.d.ts +95 -0
  41. package/dist/components/input/utils.d.ts +6 -0
  42. package/dist/components/message/Message.d.ts +108 -0
  43. package/dist/components/message/MessageVue.vue.d.ts +362 -0
  44. package/dist/components/message/index.d.ts +193 -0
  45. package/dist/components/message/props.d.ts +31 -0
  46. package/dist/components/message/warp.d.ts +3 -0
  47. package/dist/components/message-box/MessageBox.d.ts +3 -0
  48. package/dist/components/message-box/index.d.ts +4 -0
  49. package/dist/components/message-box/props.d.ts +52 -0
  50. package/dist/components/message-box/warp.d.ts +2 -0
  51. package/dist/components/notification/Notification.d.ts +89 -0
  52. package/dist/components/notification/index.d.ts +166 -0
  53. package/dist/components/notification/props.d.ts +54 -0
  54. package/dist/components/notification/warp.d.ts +3 -0
  55. package/dist/components/popconfirm/index.d.ts +193 -0
  56. package/dist/components/popconfirm/src/Popconfirm.d.ts +104 -0
  57. package/dist/components/popconfirm/src/popup.vue.d.ts +407 -0
  58. package/dist/components/popconfirm/src/props.d.ts +45 -0
  59. package/dist/components/popconfirm/src/types.d.ts +3 -0
  60. package/dist/components/scrollbar/index.d.ts +0 -0
  61. package/dist/components/scrollbar/props.d.ts +16 -0
  62. package/dist/components/space/Space.d.ts +42 -0
  63. package/dist/components/space/index.d.ts +82 -0
  64. package/dist/components/tag-cloud/index.d.ts +0 -0
  65. package/dist/components/timeline/index.d.ts +58 -0
  66. package/dist/components/timeline/src/context.d.ts +12 -0
  67. package/dist/components/timeline/src/props.d.ts +31 -0
  68. package/dist/components/timeline/src/timeline-item.d.ts +12 -0
  69. package/dist/components/timeline/src/timeline.d.ts +24 -0
  70. package/dist/components/timeline/src/types.d.ts +9 -0
  71. package/dist/components/timeline-item/index.d.ts +34 -0
  72. package/dist/components/trend-chart/components/TrendChart.d.ts +277 -0
  73. package/dist/components/trend-chart/components/trend-chart-curve.d.ts +111 -0
  74. package/dist/components/trend-chart/components/trend-chart-grid.d.ts +55 -0
  75. package/dist/components/trend-chart/components/trend-chart-labels.d.ts +22 -0
  76. package/dist/components/trend-chart/helpers/genPath.d.ts +8 -0
  77. package/dist/components/trend-chart/helpers/genPoints.d.ts +3 -0
  78. package/dist/components/trend-chart/helpers/getPadding.d.ts +7 -0
  79. package/dist/components/trend-chart/helpers/validatePadding.d.ts +2 -0
  80. package/dist/components/trend-chart/index.d.ts +535 -0
  81. package/dist/components/trend-chart/props.d.ts +203 -0
  82. package/dist/components/trend-chart/themes.d.ts +128 -0
  83. package/dist/components/trend-chart.bak/components/trend-chart-curve.d.ts +111 -0
  84. package/dist/components/trend-chart.bak/components/trend-chart-grid.d.ts +55 -0
  85. package/dist/components/trend-chart.bak/components/trend-chart-labels.d.ts +22 -0
  86. package/dist/components/trend-chart.bak/components/trend-chart.d.ts +274 -0
  87. package/dist/components/trend-chart.bak/helpers/genPath.d.ts +8 -0
  88. package/dist/components/trend-chart.bak/helpers/genPoints.d.ts +3 -0
  89. package/dist/components/trend-chart.bak/helpers/getPadding.d.ts +7 -0
  90. package/dist/components/trend-chart.bak/helpers/validatePadding.d.ts +2 -0
  91. package/dist/components/trend-chart.bak/index.d.ts +530 -0
  92. package/dist/components/trend-chart.bak/props.d.ts +211 -0
  93. package/dist/components/trend-chart.bak/themes.d.ts +152 -0
  94. package/dist/components/trigger/index.d.ts +487 -0
  95. package/dist/components/trigger/src/_trigger.d.ts +217 -0
  96. package/dist/components/trigger/src/constant.d.ts +8 -0
  97. package/dist/components/trigger/src/trigger.d.ts +288 -0
  98. package/dist/components/trigger/src/utils.d.ts +50 -0
  99. package/dist/directives/clipboard/cache.d.ts +8 -0
  100. package/dist/directives/clipboard/clipboard.d.ts +18 -0
  101. package/dist/directives/clipboard/convert.d.ts +3 -0
  102. package/dist/directives/clipboard/index.d.ts +3 -0
  103. package/dist/directives/clipboard/plugin.d.ts +2 -0
  104. package/dist/directives/clipboard/textarea.d.ts +3 -0
  105. package/dist/icons/animation/animation-loading.d.ts +50 -0
  106. package/dist/icons/default/check-circle-fill.d.ts +50 -0
  107. package/dist/icons/default/close-circle-fill.d.ts +50 -0
  108. package/dist/icons/default/exclamation-circle-fill.d.ts +50 -0
  109. package/dist/icons/default/info-circle-fill.d.ts +50 -0
  110. package/dist/icons/default/logo-simple.d.ts +50 -0
  111. package/dist/icons/default/minus-circle-fill.d.ts +50 -0
  112. package/dist/icons/icon.d.ts +51 -0
  113. package/dist/icons/index.d.ts +8 -0
  114. package/dist/index.d.ts +13 -0
  115. package/dist/index.es.js +3166 -0
  116. package/dist/index.umd.js +1 -1
  117. package/dist/style.css +1 -0
  118. package/dist/types.d.ts +13 -0
  119. package/package.json +25 -11
  120. package/volar.d.ts +17 -0
@@ -0,0 +1,211 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { CSSColor } from '../../_props/css';
3
+ export type TrendChartStatus = '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
+ value: number;
16
+ };
17
+ export type MouseMoveEvent = {
18
+ index: number;
19
+ data: PointValue[];
20
+ } | null;
21
+ export type Boundary = {
22
+ minX: number;
23
+ maxX: number;
24
+ minY: number;
25
+ maxY: number;
26
+ };
27
+ export type DataSetTheme = {};
28
+ export type DataSets = {
29
+ data: number[] | {
30
+ value: number;
31
+ }[];
32
+ fill: boolean;
33
+ stroke: boolean;
34
+ smooth: boolean;
35
+ showPoints: boolean;
36
+ className: string;
37
+ theme?: DataSetTheme;
38
+ }[];
39
+ export type Grid = {
40
+ verticalLines?: boolean;
41
+ verticalLinesNumber?: number;
42
+ horizontalLines?: boolean;
43
+ horizontalLinesNumber?: number;
44
+ };
45
+ export type Labels = {
46
+ xLabels: string[];
47
+ yLabels: number;
48
+ yLabelsTextFormatter: (value: number) => string;
49
+ };
50
+ export type CurveTheme = {
51
+ stroke?: {
52
+ width?: number;
53
+ color?: CSSColor;
54
+ opacity?: number;
55
+ };
56
+ fill?: {
57
+ color?: CSSColor;
58
+ opacity?: number;
59
+ };
60
+ point?: {};
61
+ };
62
+ export type MainTheme = {};
63
+ export interface Theme extends CurveTheme {
64
+ color?: CSSColor;
65
+ axisLine?: {
66
+ color?: CSSColor;
67
+ width?: number;
68
+ opacity?: number;
69
+ };
70
+ }
71
+ export declare const trendChartProps: {
72
+ datasets: {
73
+ required: boolean;
74
+ type: PropType<DataSets>;
75
+ };
76
+ status: {
77
+ type: PropType<TrendChartStatus>;
78
+ default: undefined;
79
+ };
80
+ grid: {
81
+ default: null;
82
+ type: PropType<Grid>;
83
+ };
84
+ labels: {
85
+ default: null;
86
+ type: PropType<Labels>;
87
+ };
88
+ max: {
89
+ type: NumberConstructor;
90
+ };
91
+ min: {
92
+ type: NumberConstructor;
93
+ };
94
+ padding: {
95
+ default: string;
96
+ type: StringConstructor;
97
+ validator(val: string): boolean;
98
+ };
99
+ interactive: {
100
+ default: boolean;
101
+ type: BooleanConstructor;
102
+ };
103
+ theme: {
104
+ type: PropType<Theme>;
105
+ default: () => {
106
+ activeLineColor: string;
107
+ };
108
+ };
109
+ };
110
+ export declare const trendChartCurveProps: {
111
+ boundary: {
112
+ required: boolean;
113
+ type: PropType<Boundary>;
114
+ default: () => void;
115
+ };
116
+ minValue: {
117
+ required: boolean;
118
+ type: NumberConstructor;
119
+ };
120
+ maxValue: {
121
+ required: boolean;
122
+ type: NumberConstructor;
123
+ };
124
+ maxAmount: {
125
+ required: boolean;
126
+ type: NumberConstructor;
127
+ };
128
+ activeLineParams: {
129
+ type: ObjectConstructor;
130
+ };
131
+ data: {
132
+ required: boolean;
133
+ type: PropType<PointValue[]>;
134
+ default: () => never[];
135
+ };
136
+ className: {
137
+ type: PropType<string>;
138
+ };
139
+ smooth: {
140
+ default: boolean;
141
+ type: BooleanConstructor;
142
+ };
143
+ stroke: {
144
+ default: boolean;
145
+ type: BooleanConstructor;
146
+ };
147
+ fill: {
148
+ default: boolean;
149
+ type: BooleanConstructor;
150
+ };
151
+ showPoints: {
152
+ default: boolean;
153
+ type: BooleanConstructor;
154
+ };
155
+ theme: {
156
+ type: PropType<CurveTheme>;
157
+ };
158
+ mainTheme: {
159
+ type: PropType<CurveTheme>;
160
+ };
161
+ };
162
+ export declare const trendChartGridProps: {
163
+ boundary: {
164
+ required: boolean;
165
+ type: PropType<Boundary>;
166
+ default: () => void;
167
+ };
168
+ verticalLines: {
169
+ default: boolean;
170
+ type: BooleanConstructor;
171
+ };
172
+ verticalLinesNumber: {
173
+ default: number;
174
+ type: NumberConstructor;
175
+ };
176
+ horizontalLines: {
177
+ default: boolean;
178
+ type: BooleanConstructor;
179
+ };
180
+ horizontalLinesNumber: {
181
+ default: number;
182
+ type: NumberConstructor;
183
+ };
184
+ };
185
+ export declare const trendChartLabelsProps: {
186
+ boundary: {
187
+ required: boolean;
188
+ type: PropType<Boundary>;
189
+ default: () => void;
190
+ };
191
+ minValue: {
192
+ type: NumberConstructor;
193
+ required: boolean;
194
+ };
195
+ maxValue: {
196
+ type: NumberConstructor;
197
+ required: boolean;
198
+ };
199
+ xLabels: {
200
+ type: ArrayConstructor;
201
+ };
202
+ yLabels: {
203
+ type: NumberConstructor;
204
+ required: boolean;
205
+ };
206
+ yLabelsTextFormatter: {
207
+ default: (value: any) => any;
208
+ type: FunctionConstructor;
209
+ };
210
+ };
211
+ export type TrendChartLabelsProps = ExtractPropTypes<typeof trendChartLabelsProps>;
@@ -0,0 +1,152 @@
1
+ export declare const TrendChartTheme: {
2
+ DANGER: {
3
+ color: string;
4
+ point: {
5
+ radius: number;
6
+ borderWidth: number;
7
+ borderColor: string;
8
+ backgroundColor: string;
9
+ opacity: number;
10
+ hoverRadius: number;
11
+ hoverColor: string;
12
+ hoverBorderWidth: number;
13
+ hoverBorderColor: string;
14
+ hoverBackgroundColor: string;
15
+ hoverOpacity: number;
16
+ };
17
+ stroke: {
18
+ width: number;
19
+ color: string;
20
+ opacity: number;
21
+ };
22
+ fill: {
23
+ color: string;
24
+ opacity: number;
25
+ };
26
+ };
27
+ STRONG: {
28
+ color: string;
29
+ point: {
30
+ radius: number;
31
+ borderWidth: number;
32
+ borderColor: string;
33
+ backgroundColor: string;
34
+ opacity: number;
35
+ hoverRadius: number;
36
+ hoverColor: string;
37
+ hoverBorderWidth: number;
38
+ hoverBorderColor: string;
39
+ hoverBackgroundColor: string;
40
+ hoverOpacity: number;
41
+ };
42
+ stroke: {
43
+ width: number;
44
+ color: string;
45
+ opacity: number;
46
+ };
47
+ fill: {
48
+ color: string;
49
+ opacity: number;
50
+ };
51
+ };
52
+ WARNING: {
53
+ color: string;
54
+ point: {
55
+ radius: number;
56
+ borderWidth: number;
57
+ borderColor: string;
58
+ backgroundColor: string;
59
+ opacity: number;
60
+ hoverRadius: number;
61
+ hoverColor: string;
62
+ hoverBorderWidth: number;
63
+ hoverBorderColor: string;
64
+ hoverBackgroundColor: string;
65
+ hoverOpacity: number;
66
+ };
67
+ stroke: {
68
+ width: number;
69
+ color: string;
70
+ opacity: number;
71
+ };
72
+ fill: {
73
+ color: string;
74
+ opacity: number;
75
+ };
76
+ };
77
+ SUCCESS: {
78
+ color: string;
79
+ point: {
80
+ radius: number;
81
+ borderWidth: number;
82
+ borderColor: string;
83
+ backgroundColor: string;
84
+ opacity: number;
85
+ hoverRadius: number;
86
+ hoverColor: string;
87
+ hoverBorderWidth: number;
88
+ hoverBorderColor: string;
89
+ hoverBackgroundColor: string;
90
+ hoverOpacity: number;
91
+ };
92
+ stroke: {
93
+ width: number;
94
+ color: string;
95
+ opacity: number;
96
+ };
97
+ fill: {
98
+ color: string;
99
+ opacity: number;
100
+ };
101
+ };
102
+ INFO: {
103
+ color: string;
104
+ point: {
105
+ radius: number;
106
+ borderWidth: number;
107
+ borderColor: string;
108
+ backgroundColor: string;
109
+ opacity: number;
110
+ hoverRadius: number;
111
+ hoverColor: string;
112
+ hoverBorderWidth: number;
113
+ hoverBorderColor: string;
114
+ hoverBackgroundColor: string;
115
+ hoverOpacity: number;
116
+ };
117
+ stroke: {
118
+ width: number;
119
+ color: string;
120
+ opacity: number;
121
+ };
122
+ fill: {
123
+ color: string;
124
+ opacity: number;
125
+ };
126
+ };
127
+ PRIMARY: {
128
+ color: string;
129
+ point: {
130
+ radius: number;
131
+ borderWidth: number;
132
+ borderColor: string;
133
+ backgroundColor: string;
134
+ opacity: number;
135
+ hoverRadius: number;
136
+ hoverColor: string;
137
+ hoverBorderWidth: number;
138
+ hoverBorderColor: string;
139
+ hoverBackgroundColor: string;
140
+ hoverOpacity: number;
141
+ };
142
+ stroke: {
143
+ width: number;
144
+ color: string;
145
+ opacity: number;
146
+ };
147
+ fill: {
148
+ color: string;
149
+ opacity: number;
150
+ };
151
+ };
152
+ };