x-next 1.7.0 → 1.8.1

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 (88) hide show
  1. package/AI_USAGE.md +129 -4
  2. package/CHANGELOG.md +47 -0
  3. package/dist/_hooks/use-chart-size.d.ts +25 -0
  4. package/dist/_utils/chart/index.d.ts +6 -0
  5. package/dist/_utils/chart/padding.d.ts +15 -0
  6. package/dist/_utils/chart/path.d.ts +34 -0
  7. package/dist/_utils/chart/scale.d.ts +55 -0
  8. package/dist/components/_components/chart/ChartAxis.d.ts +85 -0
  9. package/dist/components/_components/chart/ChartLegend.d.ts +26 -0
  10. package/dist/components/_components/chart/ChartTooltip.d.ts +76 -0
  11. package/dist/components/_components/chart/colors.d.ts +10 -0
  12. package/dist/components/_components/chart/interface.d.ts +38 -0
  13. package/dist/components/bar-chart/BarChart.d.ts +278 -0
  14. package/dist/components/bar-chart/helpers/layout.d.ts +55 -0
  15. package/dist/components/bar-chart/index.d.ts +600 -0
  16. package/dist/components/bar-chart/interface.d.ts +74 -0
  17. package/dist/components/bar-chart/props.d.ts +145 -0
  18. package/dist/components/heatmap/Heatmap.d.ts +10 -1
  19. package/dist/components/heatmap/index.d.ts +30 -3
  20. package/dist/components/index.d.ts +3 -0
  21. package/dist/components/line-chart/LineChart.d.ts +295 -0
  22. package/dist/components/line-chart/helpers/layout.d.ts +74 -0
  23. package/dist/components/line-chart/index.d.ts +614 -0
  24. package/dist/components/line-chart/interface.d.ts +76 -0
  25. package/dist/components/line-chart/props.d.ts +173 -0
  26. package/dist/components/pie-chart/PieChart.d.ts +219 -0
  27. package/dist/components/pie-chart/index.d.ts +470 -0
  28. package/dist/components/pie-chart/interface.d.ts +58 -0
  29. package/dist/components/pie-chart/props.d.ts +107 -0
  30. package/dist/components/trend-chart/components/TrendChart.d.ts +19 -96
  31. package/dist/components/trend-chart/index.d.ts +33 -187
  32. package/dist/components/trend-chart/props.d.ts +9 -78
  33. package/dist/components/trend-chart/themes.d.ts +0 -1
  34. package/dist/es/_hooks/use-chart-size.js +25 -0
  35. package/dist/es/_styles/palette-aliases.js +5 -0
  36. package/dist/es/_utils/chart/padding.js +22 -0
  37. package/dist/es/_utils/chart/path.js +69 -0
  38. package/dist/es/_utils/chart/scale.js +77 -0
  39. package/dist/es/components/_components/chart/ChartAxis.js +79 -0
  40. package/dist/es/components/_components/chart/ChartLegend.js +53 -0
  41. package/dist/es/components/_components/chart/ChartTooltip.js +64 -0
  42. package/dist/es/components/_components/chart/colors.js +12 -0
  43. package/dist/es/components/bar-chart/BarChart.js +470 -0
  44. package/dist/es/components/bar-chart/helpers/layout.js +53 -0
  45. package/dist/es/components/bar-chart/index.js +8 -0
  46. package/dist/es/components/bar-chart/props.js +148 -0
  47. package/dist/es/components/heatmap/Heatmap.js +249 -172
  48. package/dist/es/components/index.js +132 -126
  49. package/dist/es/components/line-chart/LineChart.js +532 -0
  50. package/dist/es/components/line-chart/helpers/layout.js +80 -0
  51. package/dist/es/components/line-chart/index.js +8 -0
  52. package/dist/es/components/line-chart/props.js +178 -0
  53. package/dist/es/components/pie-chart/PieChart.js +397 -0
  54. package/dist/es/components/pie-chart/index.js +8 -0
  55. package/dist/es/components/pie-chart/props.js +104 -0
  56. package/dist/es/components/trend-chart/components/TrendChart.js +143 -183
  57. package/dist/es/components/trend-chart/components/trend-chart-curve.js +85 -81
  58. package/dist/es/components/trend-chart/props.js +28 -74
  59. package/dist/es/components/trend-chart/themes.js +30 -31
  60. package/dist/es/index.js +193 -187
  61. package/dist/es/locale/en-US.js +8 -1
  62. package/dist/es/locale/zh-CN.js +8 -1
  63. package/dist/es/style.css +1 -1
  64. package/dist/index.cjs +4 -4
  65. package/dist/index.umd.js +4 -4
  66. package/dist/locale/interface.d.ts +13 -0
  67. package/dist/style/bar-chart.css +1 -0
  68. package/dist/style/bar-chart.js +2 -0
  69. package/dist/style/base.css +1 -1
  70. package/dist/style/heatmap.css +1 -1
  71. package/dist/style/line-chart.css +1 -0
  72. package/dist/style/line-chart.js +2 -0
  73. package/dist/style/pie-chart.css +1 -0
  74. package/dist/style/pie-chart.js +2 -0
  75. package/dist/style.css +1 -1
  76. package/dist/types.d.ts +3 -0
  77. package/package.json +1 -1
  78. package/volar.d.ts +3 -0
  79. package/dist/components/trend-chart/components/trend-chart-grid.d.ts +0 -55
  80. package/dist/components/trend-chart/components/trend-chart-labels.d.ts +0 -26
  81. package/dist/components/trend-chart/helpers/genPath.d.ts +0 -8
  82. package/dist/components/trend-chart/helpers/getPadding.d.ts +0 -8
  83. package/dist/components/trend-chart/helpers/validatePadding.d.ts +0 -2
  84. package/dist/es/components/trend-chart/components/trend-chart-grid.js +0 -62
  85. package/dist/es/components/trend-chart/components/trend-chart-labels.js +0 -75
  86. package/dist/es/components/trend-chart/helpers/genPath.js +0 -22
  87. package/dist/es/components/trend-chart/helpers/getPadding.js +0 -21
  88. 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 S, DropdownSubmenu as g } from "./dropdown/index.js";
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 b, MonthPicker as s, QuarterPicker as w, RangePicker as L, WeekPicker as C, YearPicker as D } from "./date-picker/index.js";
9
- import { Form as G, FormItem as h } from "./form/index.js";
10
- import { Checkbox as M, CheckboxGroup as R } from "./form-checkbox/index.js";
11
- import { Input as B, InputGroup as E, InputPassword as _, InputSearch as N } from "./form-input/index.js";
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 { Draggable as mo } from "./draggable/index.js";
21
- import { Col as xo, Grid as ao, GridItem as no, Row as io } from "./grid/index.js";
22
- import { Heatmap as lo } from "./heatmap/index.js";
23
- import { Image as To, ImagePreview as So, ImagePreviewAction as go, ImagePreviewGroup as Po } from "./image/index.js";
24
- import { Layout as ko, LayoutContent as bo, LayoutFooter as so, LayoutHeader as wo, LayoutSidebar as Lo } from "./layout/index.js";
25
- import { Link as Do } from "./link/index.js";
26
- import { Menu as Go, MenuItem as ho, MenuItemGroup as vo, MenuSubMenu as Mo } from "./menu/index.js";
27
- import { Message as Ao } from "./message/index.js";
28
- import { Network as Eo } from "./network/index.js";
29
- import { Notification as No } from "./notification/index.js";
30
- import { Pagination as jo } from "./pagination/index.js";
31
- import { Popconfirm as Ho } from "./popconfirm/index.js";
32
- import { Popover as Wo } from "./popover/index.js";
33
- import { Popup as zo } from "./popup/index.js";
34
- import { Progress as Yo } from "./progress/index.js";
35
- import { Rate as qo } from "./rate/index.js";
36
- import { ResizeBox as Vo } from "./resize-box/index.js";
37
- import { Scrollbar as $o } from "./scrollbar-v2/index.js";
38
- import { Skeleton as rr, SkeletonLine as er, SkeletonShape as tr } from "./skeleton/index.js";
39
- import { Space as mr } from "./space/index.js";
40
- import { Spin as xr } from "./spin/index.js";
41
- import { Step as nr, Steps as ir } from "./steps/index.js";
42
- import { Table as lr, TableColumn as cr } from "./table/index.js";
43
- import { TabPane as Tr, Tabs as Sr } from "./tabs/index.js";
44
- import { Tag as Pr } from "./tag/index.js";
45
- import { TimePicker as kr } from "./time-picker/index.js";
46
- import { TimeRangeSelector as sr } from "./time-range-selector/index.js";
47
- import { Timeline as Lr } from "./timeline/index.js";
48
- import { TimelineItem as Dr } from "./timeline-item/index.js";
49
- import { Tooltip as Gr } from "./tooltip/index.js";
50
- import { TrendChart as vr } from "./trend-chart/index.js";
51
- import { Trigger as Rr } from "./trigger/index.js";
52
- import { Upload as Br } from "./upload/index.js";
53
- import { Watermark as _r } from "./watermark/index.js";
54
- import { TABLE_LOCALE_EN_US as Or, TABLE_LOCALE_ZH_CN as jr, formatLocaleText as Fr } from "./table/locale.js";
55
- import { default as Kr } from "./table/table-tbody.js";
56
- import { default as Ur } from "./table/table-td.js";
57
- import { default as Qr } from "./table/table-th.js";
58
- import { default as Zr } from "./table/table-thead.js";
59
- import { default as Jr } from "./table/table-tr.js";
60
- import { configProviderInjectionKey as Xr } from "./config-provider/context.js";
61
- import { formInjectionKey as oe, formItemInjectionKey as re } from "./form/context.js";
62
- import { vDraggable as te } from "./draggable/directive.js";
63
- import { vWatermark as me } from "./watermark/directive.js";
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
- M as Checkbox,
69
- R as CheckboxGroup,
70
- xo as Col,
72
+ B as Checkbox,
73
+ M as CheckboxGroup,
74
+ no as Col,
71
75
  to as ColorPicker,
72
76
  x as ConfigProvider,
73
- b as DatePicker,
77
+ L as DatePicker,
74
78
  n as Dialog,
75
- mo as Draggable,
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
- S as DropdownOption,
81
- g as DropdownSubmenu,
84
+ P as DropdownOption,
85
+ S as DropdownSubmenu,
82
86
  I as Empty,
83
- G as Form,
84
- h as FormItem,
85
- ao as Grid,
86
- no as GridItem,
87
- lo as Heatmap,
88
- To as Image,
89
- So as ImagePreview,
90
- go as ImagePreviewAction,
91
- Po as ImagePreviewGroup,
92
- B as Input,
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
- ko as Layout,
99
- bo as LayoutContent,
100
- so as LayoutFooter,
101
- wo as LayoutHeader,
102
- Lo as LayoutSidebar,
103
- Do as Link,
104
- Go as Menu,
105
- ho as MenuItem,
106
- vo as MenuItemGroup,
107
- Mo as MenuSubMenu,
108
- Ao as Message,
109
- s as MonthPicker,
110
- Eo as Network,
111
- No as Notification,
112
- jo as Pagination,
113
- Ho as Popconfirm,
114
- Wo as Popover,
115
- zo as Popup,
116
- Yo as Progress,
117
- w as QuarterPicker,
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
- L as RangePicker,
121
- qo as Rate,
122
- Vo as ResizeBox,
123
- io as Row,
124
- $o as Scrollbar,
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
- rr as Skeleton,
130
- er as SkeletonLine,
131
- tr as SkeletonShape,
135
+ xr as Skeleton,
136
+ ar as SkeletonLine,
137
+ nr as SkeletonShape,
132
138
  V as Slider,
133
- mr as Space,
134
- xr as Spin,
135
- nr as Step,
136
- ir as Steps,
139
+ ur as Space,
140
+ cr as Spin,
141
+ Tr as Step,
142
+ Pr as Steps,
137
143
  $ as Switch,
138
- Or as TABLE_LOCALE_EN_US,
139
- jr as TABLE_LOCALE_ZH_CN,
140
- Tr as TabPane,
141
- lr as Table,
142
- cr as TableColumn,
143
- Sr as Tabs,
144
- Pr as Tag,
145
- Kr as Tbody,
146
- Ur as Td,
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
- Qr as Th,
149
- Zr as Thead,
150
- kr as TimePicker,
151
- sr as TimeRangeSelector,
152
- Lr as Timeline,
153
- Dr as TimelineItem,
154
- Gr as Tooltip,
155
- Jr as Tr,
156
- vr as TrendChart,
157
- Rr as Trigger,
158
- Br as Upload,
159
- _r as Watermark,
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
- D as YearPicker,
162
- Xr as configProviderInjectionKey,
163
- oe as formInjectionKey,
164
- re as formItemInjectionKey,
165
- Fr as formatLocaleText,
166
- te as vDraggable,
167
- me as vWatermark
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
  };