x-next 1.7.0 → 1.8.0
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.
- package/AI_USAGE.md +129 -4
- package/CHANGELOG.md +38 -0
- package/dist/_hooks/use-chart-size.d.ts +25 -0
- package/dist/_utils/chart/index.d.ts +6 -0
- package/dist/_utils/chart/padding.d.ts +15 -0
- package/dist/_utils/chart/path.d.ts +34 -0
- package/dist/_utils/chart/scale.d.ts +55 -0
- package/dist/components/_components/chart/ChartAxis.d.ts +85 -0
- package/dist/components/_components/chart/ChartLegend.d.ts +26 -0
- package/dist/components/_components/chart/ChartTooltip.d.ts +76 -0
- package/dist/components/_components/chart/colors.d.ts +10 -0
- package/dist/components/_components/chart/interface.d.ts +38 -0
- package/dist/components/bar-chart/BarChart.d.ts +278 -0
- package/dist/components/bar-chart/helpers/layout.d.ts +55 -0
- package/dist/components/bar-chart/index.d.ts +600 -0
- package/dist/components/bar-chart/interface.d.ts +74 -0
- package/dist/components/bar-chart/props.d.ts +145 -0
- package/dist/components/heatmap/Heatmap.d.ts +10 -0
- package/dist/components/heatmap/index.d.ts +30 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/line-chart/LineChart.d.ts +295 -0
- package/dist/components/line-chart/helpers/layout.d.ts +74 -0
- package/dist/components/line-chart/index.d.ts +614 -0
- package/dist/components/line-chart/interface.d.ts +76 -0
- package/dist/components/line-chart/props.d.ts +173 -0
- package/dist/components/pie-chart/PieChart.d.ts +219 -0
- package/dist/components/pie-chart/index.d.ts +470 -0
- package/dist/components/pie-chart/interface.d.ts +58 -0
- package/dist/components/pie-chart/props.d.ts +107 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +19 -96
- package/dist/components/trend-chart/index.d.ts +33 -187
- package/dist/components/trend-chart/props.d.ts +9 -78
- package/dist/components/trend-chart/themes.d.ts +0 -1
- package/dist/es/_hooks/use-chart-size.js +25 -0
- package/dist/es/_styles/palette-aliases.js +5 -0
- package/dist/es/_utils/chart/padding.js +22 -0
- package/dist/es/_utils/chart/path.js +69 -0
- package/dist/es/_utils/chart/scale.js +77 -0
- package/dist/es/components/_components/chart/ChartAxis.js +79 -0
- package/dist/es/components/_components/chart/ChartLegend.js +53 -0
- package/dist/es/components/_components/chart/ChartTooltip.js +64 -0
- package/dist/es/components/_components/chart/colors.js +12 -0
- package/dist/es/components/bar-chart/BarChart.js +470 -0
- package/dist/es/components/bar-chart/helpers/layout.js +53 -0
- package/dist/es/components/bar-chart/index.js +8 -0
- package/dist/es/components/bar-chart/props.js +148 -0
- package/dist/es/components/heatmap/Heatmap.js +244 -169
- package/dist/es/components/index.js +132 -126
- package/dist/es/components/line-chart/LineChart.js +532 -0
- package/dist/es/components/line-chart/helpers/layout.js +80 -0
- package/dist/es/components/line-chart/index.js +8 -0
- package/dist/es/components/line-chart/props.js +178 -0
- package/dist/es/components/pie-chart/PieChart.js +397 -0
- package/dist/es/components/pie-chart/index.js +8 -0
- package/dist/es/components/pie-chart/props.js +104 -0
- package/dist/es/components/trend-chart/components/TrendChart.js +143 -183
- package/dist/es/components/trend-chart/components/trend-chart-curve.js +85 -81
- package/dist/es/components/trend-chart/props.js +28 -74
- package/dist/es/components/trend-chart/themes.js +30 -31
- package/dist/es/index.js +193 -187
- package/dist/es/locale/en-US.js +8 -1
- package/dist/es/locale/zh-CN.js +8 -1
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +13 -0
- package/dist/style/bar-chart.css +1 -0
- package/dist/style/bar-chart.js +2 -0
- package/dist/style/base.css +1 -1
- package/dist/style/heatmap.css +1 -1
- package/dist/style/line-chart.css +1 -0
- package/dist/style/line-chart.js +2 -0
- package/dist/style/pie-chart.css +1 -0
- package/dist/style/pie-chart.js +2 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
- package/volar.d.ts +3 -0
- package/dist/components/trend-chart/components/trend-chart-grid.d.ts +0 -55
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +0 -26
- package/dist/components/trend-chart/helpers/genPath.d.ts +0 -8
- package/dist/components/trend-chart/helpers/getPadding.d.ts +0 -8
- package/dist/components/trend-chart/helpers/validatePadding.d.ts +0 -2
- package/dist/es/components/trend-chart/components/trend-chart-grid.js +0 -62
- package/dist/es/components/trend-chart/components/trend-chart-labels.js +0 -75
- package/dist/es/components/trend-chart/helpers/genPath.js +0 -22
- package/dist/es/components/trend-chart/helpers/getPadding.js +0 -21
- package/dist/es/components/trend-chart/helpers/validatePadding.js +0 -7
|
@@ -3,12 +3,12 @@ import { Button as p, ButtonGroup as m } from "./button/index.js";
|
|
|
3
3
|
import { ConfigProvider as x } from "./config-provider/index.js";
|
|
4
4
|
import { Dialog as n } from "./dialog/index.js";
|
|
5
5
|
import { Drawer as u } from "./drawer/index.js";
|
|
6
|
-
import { Dropdown as c, DropdownButton as d, DropdownGroup as T, DropdownOption as
|
|
6
|
+
import { Dropdown as c, DropdownButton as d, DropdownGroup as T, DropdownOption as P, DropdownSubmenu as S } from "./dropdown/index.js";
|
|
7
7
|
import { Empty as I } from "./empty/index.js";
|
|
8
|
-
import { DatePicker as
|
|
9
|
-
import { Form as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Input as
|
|
8
|
+
import { DatePicker as L, MonthPicker as b, QuarterPicker as s, RangePicker as w, WeekPicker as C, YearPicker as h } from "./date-picker/index.js";
|
|
9
|
+
import { Form as y, FormItem as G } from "./form/index.js";
|
|
10
|
+
import { Checkbox as B, CheckboxGroup as M } from "./form-checkbox/index.js";
|
|
11
|
+
import { Input as A, InputGroup as E, InputPassword as _, InputSearch as N } from "./form-input/index.js";
|
|
12
12
|
import { InputNumber as j } from "./form-input-number/index.js";
|
|
13
13
|
import { InputTag as H } from "./form-input-tag/index.js";
|
|
14
14
|
import { Radio as W, RadioGroup as U } from "./form-radio/index.js";
|
|
@@ -17,152 +17,158 @@ import { Slider as V } from "./form-slider/index.js";
|
|
|
17
17
|
import { Switch as $ } from "./form-switch/index.js";
|
|
18
18
|
import { Textarea as ro } from "./form-textarea/index.js";
|
|
19
19
|
import { ColorPicker as to } from "./color-picker/index.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import { default as Zr } from "./table/table-
|
|
59
|
-
import { default as Jr } from "./table/table-
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
20
|
+
import { BarChart as mo } from "./bar-chart/index.js";
|
|
21
|
+
import { Draggable as xo } from "./draggable/index.js";
|
|
22
|
+
import { Col as no, Grid as io, GridItem as uo, Row as lo } from "./grid/index.js";
|
|
23
|
+
import { Heatmap as To } from "./heatmap/index.js";
|
|
24
|
+
import { Image as So, ImagePreview as go, ImagePreviewAction as Io, ImagePreviewGroup as ko } from "./image/index.js";
|
|
25
|
+
import { Layout as bo, LayoutContent as so, LayoutFooter as wo, LayoutHeader as Co, LayoutSidebar as ho } from "./layout/index.js";
|
|
26
|
+
import { LineChart as yo } from "./line-chart/index.js";
|
|
27
|
+
import { Link as vo } from "./link/index.js";
|
|
28
|
+
import { Menu as Mo, MenuItem as Ro, MenuItemGroup as Ao, MenuSubMenu as Eo } from "./menu/index.js";
|
|
29
|
+
import { Message as No } from "./message/index.js";
|
|
30
|
+
import { Network as jo } from "./network/index.js";
|
|
31
|
+
import { Notification as Ho } from "./notification/index.js";
|
|
32
|
+
import { Pagination as Wo } from "./pagination/index.js";
|
|
33
|
+
import { PieChart as zo } from "./pie-chart/index.js";
|
|
34
|
+
import { Popconfirm as Yo } from "./popconfirm/index.js";
|
|
35
|
+
import { Popover as qo } from "./popover/index.js";
|
|
36
|
+
import { Popup as Vo } from "./popup/index.js";
|
|
37
|
+
import { Progress as $o } from "./progress/index.js";
|
|
38
|
+
import { Rate as rr } from "./rate/index.js";
|
|
39
|
+
import { ResizeBox as tr } from "./resize-box/index.js";
|
|
40
|
+
import { Scrollbar as mr } from "./scrollbar-v2/index.js";
|
|
41
|
+
import { Skeleton as xr, SkeletonLine as ar, SkeletonShape as nr } from "./skeleton/index.js";
|
|
42
|
+
import { Space as ur } from "./space/index.js";
|
|
43
|
+
import { Spin as cr } from "./spin/index.js";
|
|
44
|
+
import { Step as Tr, Steps as Pr } from "./steps/index.js";
|
|
45
|
+
import { Table as gr, TableColumn as Ir } from "./table/index.js";
|
|
46
|
+
import { TabPane as Lr, Tabs as br } from "./tabs/index.js";
|
|
47
|
+
import { Tag as wr } from "./tag/index.js";
|
|
48
|
+
import { TimePicker as hr } from "./time-picker/index.js";
|
|
49
|
+
import { TimeRangeSelector as yr } from "./time-range-selector/index.js";
|
|
50
|
+
import { Timeline as vr } from "./timeline/index.js";
|
|
51
|
+
import { TimelineItem as Mr } from "./timeline-item/index.js";
|
|
52
|
+
import { Tooltip as Ar } from "./tooltip/index.js";
|
|
53
|
+
import { TrendChart as _r } from "./trend-chart/index.js";
|
|
54
|
+
import { Trigger as Or } from "./trigger/index.js";
|
|
55
|
+
import { Upload as Fr } from "./upload/index.js";
|
|
56
|
+
import { Watermark as Kr } from "./watermark/index.js";
|
|
57
|
+
import { TABLE_LOCALE_EN_US as Ur, TABLE_LOCALE_ZH_CN as zr, formatLocaleText as Qr } from "./table/locale.js";
|
|
58
|
+
import { default as Zr } from "./table/table-tbody.js";
|
|
59
|
+
import { default as Jr } from "./table/table-td.js";
|
|
60
|
+
import { default as Xr } from "./table/table-th.js";
|
|
61
|
+
import { default as oe } from "./table/table-thead.js";
|
|
62
|
+
import { default as ee } from "./table/table-tr.js";
|
|
63
|
+
import { configProviderInjectionKey as pe } from "./config-provider/context.js";
|
|
64
|
+
import { formInjectionKey as fe, formItemInjectionKey as xe } from "./form/context.js";
|
|
65
|
+
import { vDraggable as ne } from "./draggable/directive.js";
|
|
66
|
+
import { vWatermark as ue } from "./watermark/directive.js";
|
|
64
67
|
export {
|
|
65
68
|
e as Alert,
|
|
69
|
+
mo as BarChart,
|
|
66
70
|
p as Button,
|
|
67
71
|
m as ButtonGroup,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
B as Checkbox,
|
|
73
|
+
M as CheckboxGroup,
|
|
74
|
+
no as Col,
|
|
71
75
|
to as ColorPicker,
|
|
72
76
|
x as ConfigProvider,
|
|
73
|
-
|
|
77
|
+
L as DatePicker,
|
|
74
78
|
n as Dialog,
|
|
75
|
-
|
|
79
|
+
xo as Draggable,
|
|
76
80
|
u as Drawer,
|
|
77
81
|
c as Dropdown,
|
|
78
82
|
d as DropdownButton,
|
|
79
83
|
T as DropdownGroup,
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
P as DropdownOption,
|
|
85
|
+
S as DropdownSubmenu,
|
|
82
86
|
I as Empty,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
y as Form,
|
|
88
|
+
G as FormItem,
|
|
89
|
+
io as Grid,
|
|
90
|
+
uo as GridItem,
|
|
91
|
+
To as Heatmap,
|
|
92
|
+
So as Image,
|
|
93
|
+
go as ImagePreview,
|
|
94
|
+
Io as ImagePreviewAction,
|
|
95
|
+
ko as ImagePreviewGroup,
|
|
96
|
+
A as Input,
|
|
93
97
|
E as InputGroup,
|
|
94
98
|
j as InputNumber,
|
|
95
99
|
_ as InputPassword,
|
|
96
100
|
N as InputSearch,
|
|
97
101
|
H as InputTag,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
102
|
+
bo as Layout,
|
|
103
|
+
so as LayoutContent,
|
|
104
|
+
wo as LayoutFooter,
|
|
105
|
+
Co as LayoutHeader,
|
|
106
|
+
ho as LayoutSidebar,
|
|
107
|
+
yo as LineChart,
|
|
108
|
+
vo as Link,
|
|
109
|
+
Mo as Menu,
|
|
110
|
+
Ro as MenuItem,
|
|
111
|
+
Ao as MenuItemGroup,
|
|
112
|
+
Eo as MenuSubMenu,
|
|
113
|
+
No as Message,
|
|
114
|
+
b as MonthPicker,
|
|
115
|
+
jo as Network,
|
|
116
|
+
Ho as Notification,
|
|
117
|
+
Wo as Pagination,
|
|
118
|
+
zo as PieChart,
|
|
119
|
+
Yo as Popconfirm,
|
|
120
|
+
qo as Popover,
|
|
121
|
+
Vo as Popup,
|
|
122
|
+
$o as Progress,
|
|
123
|
+
s as QuarterPicker,
|
|
118
124
|
W as Radio,
|
|
119
125
|
U as RadioGroup,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
w as RangePicker,
|
|
127
|
+
rr as Rate,
|
|
128
|
+
tr as ResizeBox,
|
|
129
|
+
lo as Row,
|
|
130
|
+
mr as Scrollbar,
|
|
125
131
|
Q as Select,
|
|
126
132
|
Y as SelectDropdown,
|
|
127
133
|
Z as SelectOption,
|
|
128
134
|
q as SelectOptionGroup,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
xr as Skeleton,
|
|
136
|
+
ar as SkeletonLine,
|
|
137
|
+
nr as SkeletonShape,
|
|
132
138
|
V as Slider,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
ur as Space,
|
|
140
|
+
cr as Spin,
|
|
141
|
+
Tr as Step,
|
|
142
|
+
Pr as Steps,
|
|
137
143
|
$ as Switch,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
Ur as TABLE_LOCALE_EN_US,
|
|
145
|
+
zr as TABLE_LOCALE_ZH_CN,
|
|
146
|
+
Lr as TabPane,
|
|
147
|
+
gr as Table,
|
|
148
|
+
Ir as TableColumn,
|
|
149
|
+
br as Tabs,
|
|
150
|
+
wr as Tag,
|
|
151
|
+
Zr as Tbody,
|
|
152
|
+
Jr as Td,
|
|
147
153
|
ro as Textarea,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
Xr as Th,
|
|
155
|
+
oe as Thead,
|
|
156
|
+
hr as TimePicker,
|
|
157
|
+
yr as TimeRangeSelector,
|
|
158
|
+
vr as Timeline,
|
|
159
|
+
Mr as TimelineItem,
|
|
160
|
+
Ar as Tooltip,
|
|
161
|
+
ee as Tr,
|
|
162
|
+
_r as TrendChart,
|
|
163
|
+
Or as Trigger,
|
|
164
|
+
Fr as Upload,
|
|
165
|
+
Kr as Watermark,
|
|
160
166
|
C as WeekPicker,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
h as YearPicker,
|
|
168
|
+
pe as configProviderInjectionKey,
|
|
169
|
+
fe as formInjectionKey,
|
|
170
|
+
xe as formItemInjectionKey,
|
|
171
|
+
Qr as formatLocaleText,
|
|
172
|
+
ne as vDraggable,
|
|
173
|
+
ue as vWatermark
|
|
168
174
|
};
|