x-next 1.9.0 → 1.10.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.
- package/AI_USAGE.md +69 -7
- package/CHANGELOG.md +36 -0
- package/dist/_utils/chart/scale.d.ts +1 -1
- package/dist/components/_components/chart/axis-labels.d.ts +8 -0
- package/dist/components/_components/select-view/select-view.d.ts +9 -0
- package/dist/components/form-select/Select.d.ts +18 -5
- package/dist/components/form-select/SelectOptionGroup.vue.d.ts +1 -0
- package/dist/components/form-select/hooks/use-options.d.ts +1 -1
- package/dist/components/form-select/hooks/use-select.d.ts +1 -1
- package/dist/components/form-select/index.d.ts +42 -11
- package/dist/components/form-select/interface.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +1 -1
- package/dist/components/link/index.d.ts +3 -3
- package/dist/components/pagination/page-options.vue.d.ts +60 -32
- package/dist/components/trigger/interface.d.ts +2 -0
- package/dist/components/virtual-list-v2/interface.d.ts +3 -0
- package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +336 -1
- package/dist/es/_hooks/use-component-ref.js +9 -9
- package/dist/es/_utils/chart/scale.js +44 -39
- package/dist/es/components/_components/chart/ChartAxis.js +61 -36
- package/dist/es/components/_components/chart/axis-labels.js +26 -0
- package/dist/es/components/_components/select-view/select-view.js +89 -78
- package/dist/es/components/button/Button.js +23 -23
- package/dist/es/components/form-input-tag/InputTag.js +1 -1
- package/dist/es/components/form-select/Select.js +367 -318
- package/dist/es/components/form-select/SelectOption.vue.js +5 -3
- package/dist/es/components/form-select/SelectOption.vue2.js +54 -49
- package/dist/es/components/form-select/SelectOptionGroup.vue.js +17 -13
- package/dist/es/components/form-select/SelectOptionGroup.vue2.js +8 -5
- package/dist/es/components/form-select/hooks/use-options.js +40 -40
- package/dist/es/components/form-select/hooks/use-select.js +76 -71
- package/dist/es/components/trigger/Trigger.js +174 -183
- package/dist/es/components/virtual-list-v2/virtual-list.vue.js +22 -23
- package/dist/es/components/virtual-list-v2/virtual-list.vue2.js +67 -53
- package/dist/es/icons/icon.js +37 -36
- package/dist/es/icons/index.js +6 -8
- package/dist/es/icons/public/lucide-names.js +167 -0
- package/dist/es/icons/public/lucide.js +75 -188
- package/dist/es/index.js +152 -148
- package/dist/es/style.css +1 -1
- package/dist/icons/index.d.ts +3 -3
- package/dist/icons/names.d.ts +2 -2
- package/dist/icons/public/lucide-names.d.ts +32 -0
- package/dist/icons/public/lucide.d.ts +2 -2
- package/dist/index.cjs +3 -62
- package/dist/index.umd.js +3 -62
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/es/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import * as
|
|
2
|
+
import * as r from "./components/index.js";
|
|
3
3
|
import { Icon as m } from "./icons/index.js";
|
|
4
4
|
import { setupDirectives as p } from "./directives/index.js";
|
|
5
5
|
import { default as c } from "./components/dialog/use.js";
|
|
6
6
|
import { default as u } from "./components/message/warp.js";
|
|
7
7
|
import { default as g } from "./components/message-box/MessageBox.js";
|
|
8
8
|
import { default as P } from "./components/notification/warp.js";
|
|
9
|
-
import { Dialog as
|
|
9
|
+
import { Dialog as S } from "./components/dialog/index.js";
|
|
10
10
|
import { Message as C } from "./components/message/index.js";
|
|
11
11
|
import { Notification as k } from "./components/notification/index.js";
|
|
12
12
|
import { useResizeObserver as D } from "./_hooks/use-resize-observer.js";
|
|
13
13
|
import { useFormItem as y } from "./_hooks/use-form-item.js";
|
|
14
|
-
import { applyThemeColor as M, generatePalette as
|
|
15
|
-
import { LOCALES as
|
|
14
|
+
import { applyThemeColor as M, generatePalette as N } from "./_utils/palette.js";
|
|
15
|
+
import { LOCALES as A, formatMessage as B, getGlobalLocale as E, setGlobalLocale as O, useLocale as R } from "./locale/index.js";
|
|
16
16
|
import { useDraggable as F } from "./components/draggable/useDraggable.js";
|
|
17
17
|
import { vDraggable as z } from "./components/draggable/directive.js";
|
|
18
18
|
import { Watermark as K } from "./components/watermark/index.js";
|
|
@@ -21,73 +21,74 @@ import { default as X } from "./locale/zh-CN.js";
|
|
|
21
21
|
import { Alert as Z } from "./components/alert/index.js";
|
|
22
22
|
import { BarChart as J } from "./components/bar-chart/index.js";
|
|
23
23
|
import { Button as $, ButtonGroup as oo } from "./components/button/index.js";
|
|
24
|
-
import { Checkbox as
|
|
25
|
-
import { Col as po, Grid as
|
|
24
|
+
import { Checkbox as ro, CheckboxGroup as to } from "./components/form-checkbox/index.js";
|
|
25
|
+
import { Col as po, Grid as ao, GridItem as fo, Row as no } from "./components/grid/index.js";
|
|
26
26
|
import { ColorPicker as io } from "./components/color-picker/index.js";
|
|
27
27
|
import { ConfigProvider as co } from "./components/config-provider/index.js";
|
|
28
|
-
import { DatePicker as uo, MonthPicker as go, QuarterPicker as Io, RangePicker as Po, WeekPicker as
|
|
28
|
+
import { DatePicker as uo, MonthPicker as go, QuarterPicker as Io, RangePicker as Po, WeekPicker as bo, YearPicker as So } from "./components/date-picker/index.js";
|
|
29
29
|
import { Draggable as Co } from "./components/draggable/index.js";
|
|
30
30
|
import { Drawer as ko } from "./components/drawer/index.js";
|
|
31
31
|
import { Dropdown as Do, DropdownButton as wo, DropdownGroup as yo, DropdownOption as Go, DropdownSubmenu as Mo } from "./components/dropdown/index.js";
|
|
32
|
-
import { Empty as
|
|
33
|
-
import { Form as
|
|
34
|
-
import { Heatmap as
|
|
32
|
+
import { Empty as vo } from "./components/empty/index.js";
|
|
33
|
+
import { Form as Bo, FormItem as Eo } from "./components/form/index.js";
|
|
34
|
+
import { Heatmap as Ro } from "./components/heatmap/index.js";
|
|
35
35
|
import { Image as Fo, ImagePreview as jo, ImagePreviewAction as zo, ImagePreviewGroup as Ho } from "./components/image/index.js";
|
|
36
36
|
import { Input as Uo, InputGroup as Wo, InputPassword as Qo, InputSearch as Xo } from "./components/form-input/index.js";
|
|
37
37
|
import { InputNumber as Zo } from "./components/form-input-number/index.js";
|
|
38
38
|
import { InputTag as Jo } from "./components/form-input-tag/index.js";
|
|
39
|
-
import { Layout as $o, LayoutContent as
|
|
40
|
-
import { LineChart as
|
|
41
|
-
import { Link as
|
|
42
|
-
import { Menu as
|
|
43
|
-
import { Network as
|
|
44
|
-
import { Pagination as
|
|
45
|
-
import { PieChart as
|
|
46
|
-
import { Popconfirm as
|
|
47
|
-
import { Popover as
|
|
48
|
-
import { Popup as
|
|
49
|
-
import { Progress as
|
|
50
|
-
import { Radio as
|
|
51
|
-
import { Rate as
|
|
52
|
-
import { ResizeBox as
|
|
53
|
-
import { Scrollbar as
|
|
54
|
-
import { Select as
|
|
55
|
-
import { Skeleton as
|
|
56
|
-
import { Slider as
|
|
57
|
-
import { Space as
|
|
58
|
-
import { Spin as
|
|
59
|
-
import { Step as
|
|
60
|
-
import { Switch as
|
|
61
|
-
import { TABLE_LOCALE_EN_US as
|
|
62
|
-
import { TabPane as
|
|
63
|
-
import { Table as
|
|
64
|
-
import { Tag as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { Textarea as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { TimePicker as
|
|
71
|
-
import { TimeRangeSelector as
|
|
72
|
-
import { Timeline as
|
|
73
|
-
import { TimelineItem as
|
|
74
|
-
import { Tooltip as
|
|
75
|
-
import { default as
|
|
76
|
-
import { TrendChart as
|
|
77
|
-
import { Trigger as
|
|
78
|
-
import { Upload as
|
|
79
|
-
import { addIcon as
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
39
|
+
import { Layout as $o, LayoutContent as oe, LayoutFooter as ee, LayoutHeader as re, LayoutSidebar as te } from "./components/layout/index.js";
|
|
40
|
+
import { LineChart as pe } from "./components/line-chart/index.js";
|
|
41
|
+
import { Link as fe } from "./components/link/index.js";
|
|
42
|
+
import { Menu as xe, MenuItem as ie, MenuItemGroup as se, MenuSubMenu as ce } from "./components/menu/index.js";
|
|
43
|
+
import { Network as ue } from "./components/network/index.js";
|
|
44
|
+
import { Pagination as ge } from "./components/pagination/index.js";
|
|
45
|
+
import { PieChart as Pe } from "./components/pie-chart/index.js";
|
|
46
|
+
import { Popconfirm as Se } from "./components/popconfirm/index.js";
|
|
47
|
+
import { Popover as Ce } from "./components/popover/index.js";
|
|
48
|
+
import { Popup as ke } from "./components/popup/index.js";
|
|
49
|
+
import { Progress as De } from "./components/progress/index.js";
|
|
50
|
+
import { Radio as ye, RadioGroup as Ge } from "./components/form-radio/index.js";
|
|
51
|
+
import { Rate as Ne } from "./components/rate/index.js";
|
|
52
|
+
import { ResizeBox as Ae } from "./components/resize-box/index.js";
|
|
53
|
+
import { Scrollbar as Ee } from "./components/scrollbar-v2/index.js";
|
|
54
|
+
import { Select as Re, SelectDropdown as _e, SelectOption as Fe, SelectOptionGroup as je } from "./components/form-select/index.js";
|
|
55
|
+
import { Skeleton as He, SkeletonLine as Ke, SkeletonShape as Ue } from "./components/skeleton/index.js";
|
|
56
|
+
import { Slider as Qe } from "./components/form-slider/index.js";
|
|
57
|
+
import { Space as Ye } from "./components/space/index.js";
|
|
58
|
+
import { Spin as qe } from "./components/spin/index.js";
|
|
59
|
+
import { Step as Ve, Steps as $e } from "./components/steps/index.js";
|
|
60
|
+
import { Switch as er } from "./components/form-switch/index.js";
|
|
61
|
+
import { TABLE_LOCALE_EN_US as tr, TABLE_LOCALE_ZH_CN as mr, formatLocaleText as pr } from "./components/table/locale.js";
|
|
62
|
+
import { TabPane as fr, Tabs as nr } from "./components/tabs/index.js";
|
|
63
|
+
import { Table as ir, TableColumn as sr } from "./components/table/index.js";
|
|
64
|
+
import { Tag as lr } from "./components/tag/index.js";
|
|
65
|
+
import { default as dr } from "./components/table/table-tbody.js";
|
|
66
|
+
import { default as Ir } from "./components/table/table-td.js";
|
|
67
|
+
import { Textarea as br } from "./components/form-textarea/index.js";
|
|
68
|
+
import { default as Tr } from "./components/table/table-th.js";
|
|
69
|
+
import { default as Lr } from "./components/table/table-thead.js";
|
|
70
|
+
import { TimePicker as hr } from "./components/time-picker/index.js";
|
|
71
|
+
import { TimeRangeSelector as wr } from "./components/time-range-selector/index.js";
|
|
72
|
+
import { Timeline as Gr } from "./components/timeline/index.js";
|
|
73
|
+
import { TimelineItem as Nr } from "./components/timeline-item/index.js";
|
|
74
|
+
import { Tooltip as Ar } from "./components/tooltip/index.js";
|
|
75
|
+
import { default as Er } from "./components/table/table-tr.js";
|
|
76
|
+
import { TrendChart as Rr } from "./components/trend-chart/index.js";
|
|
77
|
+
import { Trigger as Fr } from "./components/trigger/index.js";
|
|
78
|
+
import { Upload as zr } from "./components/upload/index.js";
|
|
79
|
+
import { addIcon as Kr, hasIcon as Ur, registerIcons as Wr, removeIcon as Qr } from "./icons/registry.js";
|
|
80
|
+
import { canonicalIconNames as Yr, publicIconAliases as Zr, publicIconNames as qr, searchPublicIcons as Jr } from "./icons/public/lucide-names.js";
|
|
81
|
+
import { configProviderInjectionKey as $r } from "./components/config-provider/context.js";
|
|
82
|
+
import { finiconCategories as et, finiconIconsMeta as rt } from "./icons/public/finicon-meta.js";
|
|
83
|
+
import { finiconIconNames as mt, finiconIcons as pt, registerFiniconIcons as at } from "./icons/public/finicon.js";
|
|
84
|
+
import { formInjectionKey as nt, formItemInjectionKey as xt } from "./components/form/context.js";
|
|
85
|
+
import { registerPublicIcons as st } from "./icons/public/lucide.js";
|
|
86
|
+
import { vWatermark as lt } from "./components/watermark/directive.js";
|
|
86
87
|
const x = {
|
|
87
88
|
install: function(o) {
|
|
88
|
-
p(o), o.use(m), Object.keys(
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
p(o), o.use(m), Object.keys(r).forEach((t) => {
|
|
90
|
+
const e = r[t];
|
|
91
|
+
e.install && o.use(e);
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
94
|
};
|
|
@@ -96,14 +97,14 @@ export {
|
|
|
96
97
|
J as BarChart,
|
|
97
98
|
$ as Button,
|
|
98
99
|
oo as ButtonGroup,
|
|
99
|
-
|
|
100
|
+
ro as Checkbox,
|
|
100
101
|
to as CheckboxGroup,
|
|
101
102
|
po as Col,
|
|
102
103
|
io as ColorPicker,
|
|
103
104
|
co as ConfigProvider,
|
|
104
105
|
uo as DatePicker,
|
|
105
106
|
c as Dialog,
|
|
106
|
-
|
|
107
|
+
S as DialogComponent,
|
|
107
108
|
Co as Draggable,
|
|
108
109
|
ko as Drawer,
|
|
109
110
|
Do as Dropdown,
|
|
@@ -111,12 +112,12 @@ export {
|
|
|
111
112
|
yo as DropdownGroup,
|
|
112
113
|
Go as DropdownOption,
|
|
113
114
|
Mo as DropdownSubmenu,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
vo as Empty,
|
|
116
|
+
Bo as Form,
|
|
117
|
+
Eo as FormItem,
|
|
118
|
+
ao as Grid,
|
|
119
|
+
fo as GridItem,
|
|
120
|
+
Ro as Heatmap,
|
|
120
121
|
m as Icon,
|
|
121
122
|
Fo as Image,
|
|
122
123
|
jo as ImagePreview,
|
|
@@ -128,103 +129,106 @@ export {
|
|
|
128
129
|
Qo as InputPassword,
|
|
129
130
|
Xo as InputSearch,
|
|
130
131
|
Jo as InputTag,
|
|
131
|
-
|
|
132
|
+
A as LOCALES,
|
|
132
133
|
$o as Layout,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
oe as LayoutContent,
|
|
135
|
+
ee as LayoutFooter,
|
|
136
|
+
re as LayoutHeader,
|
|
137
|
+
te as LayoutSidebar,
|
|
138
|
+
pe as LineChart,
|
|
139
|
+
fe as Link,
|
|
140
|
+
xe as Menu,
|
|
141
|
+
ie as MenuItem,
|
|
142
|
+
se as MenuItemGroup,
|
|
143
|
+
ce as MenuSubMenu,
|
|
143
144
|
u as Message,
|
|
144
145
|
g as MessageBox,
|
|
145
146
|
C as MessageComponent,
|
|
146
147
|
go as MonthPicker,
|
|
147
|
-
|
|
148
|
+
ue as Network,
|
|
148
149
|
P as Notification,
|
|
149
150
|
k as NotificationComponent,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
ge as Pagination,
|
|
152
|
+
Pe as PieChart,
|
|
153
|
+
Se as Popconfirm,
|
|
154
|
+
Ce as Popover,
|
|
155
|
+
ke as Popup,
|
|
156
|
+
De as Progress,
|
|
156
157
|
Io as QuarterPicker,
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
ye as Radio,
|
|
159
|
+
Ge as RadioGroup,
|
|
159
160
|
Po as RangePicker,
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
Ne as Rate,
|
|
162
|
+
Ae as ResizeBox,
|
|
162
163
|
no as Row,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
$
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
164
|
+
Ee as Scrollbar,
|
|
165
|
+
Re as Select,
|
|
166
|
+
_e as SelectDropdown,
|
|
167
|
+
Fe as SelectOption,
|
|
168
|
+
je as SelectOptionGroup,
|
|
169
|
+
He as Skeleton,
|
|
170
|
+
Ke as SkeletonLine,
|
|
171
|
+
Ue as SkeletonShape,
|
|
172
|
+
Qe as Slider,
|
|
173
|
+
Ye as Space,
|
|
174
|
+
qe as Spin,
|
|
175
|
+
Ve as Step,
|
|
176
|
+
$e as Steps,
|
|
177
|
+
er as Switch,
|
|
178
|
+
tr as TABLE_LOCALE_EN_US,
|
|
179
|
+
mr as TABLE_LOCALE_ZH_CN,
|
|
180
|
+
fr as TabPane,
|
|
181
|
+
ir as Table,
|
|
182
|
+
sr as TableColumn,
|
|
183
|
+
nr as Tabs,
|
|
184
|
+
lr as Tag,
|
|
185
|
+
dr as Tbody,
|
|
186
|
+
Ir as Td,
|
|
187
|
+
br as Textarea,
|
|
188
|
+
Tr as Th,
|
|
189
|
+
Lr as Thead,
|
|
190
|
+
hr as TimePicker,
|
|
191
|
+
wr as TimeRangeSelector,
|
|
192
|
+
Gr as Timeline,
|
|
193
|
+
Nr as TimelineItem,
|
|
194
|
+
Ar as Tooltip,
|
|
195
|
+
Er as Tr,
|
|
196
|
+
Rr as TrendChart,
|
|
197
|
+
Fr as Trigger,
|
|
198
|
+
zr as Upload,
|
|
198
199
|
K as Watermark,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
bo as WeekPicker,
|
|
201
|
+
So as YearPicker,
|
|
202
|
+
Kr as addIcon,
|
|
202
203
|
M as applyThemeColor,
|
|
203
|
-
|
|
204
|
+
Yr as canonicalIconNames,
|
|
205
|
+
$r as configProviderInjectionKey,
|
|
204
206
|
x as default,
|
|
205
207
|
W as enUS,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
208
|
+
et as finiconCategories,
|
|
209
|
+
mt as finiconIconNames,
|
|
210
|
+
pt as finiconIcons,
|
|
211
|
+
rt as finiconIconsMeta,
|
|
212
|
+
nt as formInjectionKey,
|
|
213
|
+
xt as formItemInjectionKey,
|
|
214
|
+
pr as formatLocaleText,
|
|
215
|
+
B as formatMessage,
|
|
216
|
+
N as generatePalette,
|
|
217
|
+
E as getGlobalLocale,
|
|
218
|
+
Ur as hasIcon,
|
|
219
|
+
Zr as publicIconAliases,
|
|
220
|
+
qr as publicIconNames,
|
|
221
|
+
at as registerFiniconIcons,
|
|
222
|
+
Wr as registerIcons,
|
|
223
|
+
st as registerPublicIcons,
|
|
224
|
+
Qr as removeIcon,
|
|
225
|
+
Jr as searchPublicIcons,
|
|
226
|
+
O as setGlobalLocale,
|
|
223
227
|
F as useDraggable,
|
|
224
228
|
y as useFormItem,
|
|
225
|
-
|
|
229
|
+
R as useLocale,
|
|
226
230
|
D as useResizeObserver,
|
|
227
231
|
z as vDraggable,
|
|
228
|
-
|
|
232
|
+
lt as vWatermark,
|
|
229
233
|
X as zhCN
|
|
230
234
|
};
|