antdv-next 1.4.1 → 1.4.2
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/dist/_util/hooks/useClosable.d.ts +5 -5
- package/dist/_util/vueNode.d.ts +2 -2
- package/dist/alert/Alert.d.ts +7 -7
- package/dist/antd-with-locales.esm.js +13320 -11032
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +11449 -10208
- package/dist/antd.js +74 -74
- package/dist/auto-complete/index.d.ts +4 -4
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/badge/Ribbon.d.ts +2 -2
- package/dist/badge/index.d.ts +3 -3
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -4
- package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/style/index.js +13 -0
- package/dist/calendar/generateCalendar.d.ts +8 -8
- package/dist/card/Card.d.ts +9 -9
- package/dist/card/CardMeta.d.ts +4 -4
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.js +26 -2
- package/dist/cascader/index.d.ts +53 -21
- package/dist/cascader/index.js +33 -5
- package/dist/checkbox/Checkbox.d.ts +1 -1
- package/dist/checkbox/Checkbox.js +4 -4
- package/dist/checkbox/Group.d.ts +2 -2
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/collapse/CollapsePanel.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
- package/dist/color-picker/interface.d.ts +2 -2
- package/dist/config-provider/context.d.ts +20 -14
- package/dist/config-provider/index.js +1 -1
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/util.d.ts +10 -1
- package/dist/descriptions/Item.d.ts +3 -3
- package/dist/descriptions/hooks/useItems.d.ts +11 -11
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/descriptions/style/index.js +2 -3
- package/dist/drawer/DrawerPanel.d.ts +5 -5
- package/dist/empty/index.d.ts +3 -3
- package/dist/float-button/FloatButton.d.ts +5 -5
- package/dist/float-button/FloatButton.js +1 -1
- package/dist/float-button/FloatButtonGroup.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +2 -2
- package/dist/image/index.d.ts +2 -2
- package/dist/input/Input.d.ts +5 -5
- package/dist/input/OTP/index.d.ts +2 -2
- package/dist/input/Password.d.ts +2 -2
- package/dist/input/Search.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/style/search.js +1 -0
- package/dist/input-number/index.d.ts +8 -8
- package/dist/input-number/index.js +0 -4
- package/dist/layout/layout.js +54 -48
- package/dist/locale/ar_EG.js +18 -4
- package/dist/locale/az_AZ.js +2 -1
- package/dist/locale/bg_BG.js +44 -3
- package/dist/locale/bn_BD.js +20 -4
- package/dist/locale/by_BY.js +17 -3
- package/dist/locale/ca_ES.js +22 -4
- package/dist/locale/cs_CZ.js +6 -3
- package/dist/locale/da_DK.js +34 -3
- package/dist/locale/de_DE.js +14 -4
- package/dist/locale/el_GR.js +4 -2
- package/dist/locale/en_GB.js +6 -3
- package/dist/locale/en_US.js +2 -1
- package/dist/locale/es_ES.js +17 -3
- package/dist/locale/et_EE.js +17 -3
- package/dist/locale/eu_ES.js +8 -4
- package/dist/locale/fa_IR.js +2 -1
- package/dist/locale/fi_FI.js +35 -4
- package/dist/locale/fr_BE.js +20 -3
- package/dist/locale/fr_CA.js +20 -3
- package/dist/locale/fr_FR.js +20 -3
- package/dist/locale/ga_IE.js +24 -5
- package/dist/locale/gl_ES.js +36 -5
- package/dist/locale/he_IL.js +30 -5
- package/dist/locale/hi_IN.js +20 -4
- package/dist/locale/hr_HR.js +21 -4
- package/dist/locale/hu_HU.js +43 -3
- package/dist/locale/hy_AM.js +33 -4
- package/dist/locale/id_ID.js +2 -1
- package/dist/locale/is_IS.js +44 -3
- package/dist/locale/it_IT.js +6 -3
- package/dist/locale/ja_JP.js +2 -1
- package/dist/locale/ka_GE.js +20 -4
- package/dist/locale/kk_KZ.js +22 -5
- package/dist/locale/km_KH.js +35 -4
- package/dist/locale/kmr_IQ.js +45 -4
- package/dist/locale/kn_IN.js +18 -3
- package/dist/locale/ko_KR.js +8 -4
- package/dist/locale/ku_IQ.js +45 -4
- package/dist/locale/lt_LT.js +8 -4
- package/dist/locale/lv_LV.js +45 -4
- package/dist/locale/mk_MK.js +36 -4
- package/dist/locale/ml_IN.js +20 -4
- package/dist/locale/mn_MN.js +17 -3
- package/dist/locale/mr_IN.js +13 -1
- package/dist/locale/ms_MY.js +8 -4
- package/dist/locale/my_MM.js +18 -5
- package/dist/locale/ne_NP.js +2 -1
- package/dist/locale/nl_BE.js +20 -4
- package/dist/locale/nl_NL.js +20 -4
- package/dist/locale/pl_PL.js +17 -3
- package/dist/locale/pt_BR.js +6 -3
- package/dist/locale/pt_PT.js +2 -1
- package/dist/locale/ro_RO.js +20 -4
- package/dist/locale/ru_RU.js +4 -2
- package/dist/locale/si_LK.js +17 -3
- package/dist/locale/sk_SK.js +17 -3
- package/dist/locale/sl_SI.js +45 -4
- package/dist/locale/sr_RS.js +20 -4
- package/dist/locale/sv_SE.js +14 -4
- package/dist/locale/ta_IN.js +23 -5
- package/dist/locale/th_TH.js +2 -1
- package/dist/locale/tk_TK.js +21 -5
- package/dist/locale/tr_TR.js +17 -2
- package/dist/locale/uk_UA.js +12 -3
- package/dist/locale/ur_PK.js +20 -4
- package/dist/locale/uz_UZ.js +14 -4
- package/dist/locale/vi_VN.js +2 -1
- package/dist/locale/zh_CN.js +2 -1
- package/dist/locale/zh_HK.js +4 -2
- package/dist/locale/zh_TW.js +4 -2
- package/dist/masonry/Masonry.d.ts +18 -10
- package/dist/masonry/MasonryItem.d.ts +2 -2
- package/dist/mentions/index.d.ts +4 -4
- package/dist/mentions/index.js +62 -1
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/MenuItem.js +1 -1
- package/dist/menu/MenuItemGroup.d.ts +2 -2
- package/dist/menu/OverrideContext.d.ts +2 -2
- package/dist/menu/SubMenu.d.ts +2 -2
- package/dist/message/PureList.d.ts +3 -1
- package/dist/message/PureList.js +4 -0
- package/dist/message/interface.d.ts +3 -3
- package/dist/modal/ConfirmDialog.d.ts +5 -1
- package/dist/modal/ConfirmDialog.js +40 -19
- package/dist/modal/Modal.d.ts +12 -3
- package/dist/modal/Modal.js +24 -7
- package/dist/modal/interface.d.ts +14 -14
- package/dist/notification/PureList.d.ts +3 -1
- package/dist/notification/PureList.js +4 -0
- package/dist/notification/interface.d.ts +8 -8
- package/dist/notification/util.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/interface.d.ts +7 -7
- package/dist/pagination/style/index.js +1 -1
- package/dist/popconfirm/index.d.ts +6 -6
- package/dist/popover/index.d.ts +4 -4
- package/dist/radio/radio.js +4 -4
- package/dist/radio/radioButton.js +4 -4
- package/dist/result/index.d.ts +5 -5
- package/dist/segmented/index.d.ts +38 -20
- package/dist/segmented/index.js +5 -10
- package/dist/select/index.d.ts +4 -4
- package/dist/select/style/select-input-customize.js +1 -0
- package/dist/slider/index.js +1 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/index.d.ts +2 -2
- package/dist/spin/index.d.ts +5 -5
- package/dist/splitter/SplitBar.js +12 -1
- package/dist/splitter/interface.d.ts +6 -6
- package/dist/statistic/Statistic.d.ts +4 -4
- package/dist/steps/index.d.ts +6 -6
- package/dist/style/motion/util.js +2 -2
- package/dist/switch/index.d.ts +4 -4
- package/dist/switch/index.js +7 -7
- package/dist/switch/style/index.js +3 -1
- package/dist/table/InternalTable.js +8 -25
- package/dist/table/Table.d.ts +20 -9
- package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
- package/dist/table/hooks/useColumnTitleProps.js +16 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
- package/dist/table/hooks/useSpinProps.d.ts +7 -0
- package/dist/table/hooks/useSpinProps.js +14 -0
- package/dist/table/util.d.ts +5 -2
- package/dist/table/util.js +10 -1
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tag/CheckableTag.d.ts +2 -2
- package/dist/tag/index.d.ts +3 -3
- package/dist/time-picker/index.d.ts +2 -2
- package/dist/time-picker/index.js +211 -19
- package/dist/timeline/Timeline.d.ts +9 -9
- package/dist/tooltip/PurePanel.js +1 -1
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tour/interface.d.ts +4 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/index.d.ts +27 -6
- package/dist/transfer/interface.d.ts +17 -17
- package/dist/transfer/search.d.ts +2 -2
- package/dist/tree/Tree.d.ts +6 -6
- package/dist/tree-select/index.d.ts +57 -28
- package/dist/tree-select/index.js +4 -3
- package/dist/typography/Base/Ellipsis.d.ts +2 -2
- package/dist/typography/Editable.d.ts +2 -2
- package/dist/typography/interface.d.ts +8 -8
- package/dist/upload/UploadList/index.js +1 -1
- package/package.json +10 -10
- package/web-tags.json +1674 -1662
- package/web-types.json +4801 -4762
|
@@ -109,7 +109,19 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
109
109
|
type: [String, Object],
|
|
110
110
|
required: false
|
|
111
111
|
},
|
|
112
|
-
separator: {
|
|
112
|
+
separator: {
|
|
113
|
+
type: [
|
|
114
|
+
Object,
|
|
115
|
+
Function,
|
|
116
|
+
String,
|
|
117
|
+
Number,
|
|
118
|
+
null,
|
|
119
|
+
Boolean,
|
|
120
|
+
Array
|
|
121
|
+
],
|
|
122
|
+
required: false,
|
|
123
|
+
default: void 0
|
|
124
|
+
},
|
|
113
125
|
value: {
|
|
114
126
|
type: [Array, null],
|
|
115
127
|
required: false
|
|
@@ -192,14 +204,50 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
192
204
|
type: String,
|
|
193
205
|
required: false
|
|
194
206
|
},
|
|
195
|
-
prefix: {
|
|
196
|
-
|
|
207
|
+
prefix: {
|
|
208
|
+
type: [
|
|
209
|
+
Object,
|
|
210
|
+
Function,
|
|
211
|
+
String,
|
|
212
|
+
Number,
|
|
213
|
+
null,
|
|
214
|
+
Boolean,
|
|
215
|
+
Array
|
|
216
|
+
],
|
|
217
|
+
required: false,
|
|
218
|
+
default: void 0
|
|
219
|
+
},
|
|
220
|
+
suffixIcon: {
|
|
221
|
+
type: [
|
|
222
|
+
Object,
|
|
223
|
+
Function,
|
|
224
|
+
String,
|
|
225
|
+
Number,
|
|
226
|
+
null,
|
|
227
|
+
Boolean,
|
|
228
|
+
Array
|
|
229
|
+
],
|
|
230
|
+
required: false,
|
|
231
|
+
default: void 0
|
|
232
|
+
},
|
|
197
233
|
allowClear: {
|
|
198
234
|
type: [Boolean, Object],
|
|
199
235
|
required: false,
|
|
200
236
|
default: void 0
|
|
201
237
|
},
|
|
202
|
-
clearIcon: {
|
|
238
|
+
clearIcon: {
|
|
239
|
+
type: [
|
|
240
|
+
Object,
|
|
241
|
+
Function,
|
|
242
|
+
String,
|
|
243
|
+
Number,
|
|
244
|
+
null,
|
|
245
|
+
Boolean,
|
|
246
|
+
Array
|
|
247
|
+
],
|
|
248
|
+
required: false,
|
|
249
|
+
default: void 0
|
|
250
|
+
},
|
|
203
251
|
inputReadOnly: {
|
|
204
252
|
type: Boolean,
|
|
205
253
|
required: false,
|
|
@@ -236,12 +284,18 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
236
284
|
required: false,
|
|
237
285
|
default: void 0
|
|
238
286
|
},
|
|
239
|
-
popupAlign: {
|
|
287
|
+
popupAlign: {
|
|
288
|
+
type: Object,
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
240
291
|
getPopupContainer: {
|
|
241
292
|
type: Function,
|
|
242
293
|
required: false
|
|
243
294
|
},
|
|
244
|
-
builtinPlacements: {
|
|
295
|
+
builtinPlacements: {
|
|
296
|
+
type: Object,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
245
299
|
needConfirm: {
|
|
246
300
|
type: Boolean,
|
|
247
301
|
required: false,
|
|
@@ -1183,10 +1237,58 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
1183
1237
|
type: Function,
|
|
1184
1238
|
required: false
|
|
1185
1239
|
},
|
|
1186
|
-
prevIcon: {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1240
|
+
prevIcon: {
|
|
1241
|
+
type: [
|
|
1242
|
+
Object,
|
|
1243
|
+
Function,
|
|
1244
|
+
String,
|
|
1245
|
+
Number,
|
|
1246
|
+
null,
|
|
1247
|
+
Boolean,
|
|
1248
|
+
Array
|
|
1249
|
+
],
|
|
1250
|
+
required: false,
|
|
1251
|
+
default: void 0
|
|
1252
|
+
},
|
|
1253
|
+
nextIcon: {
|
|
1254
|
+
type: [
|
|
1255
|
+
Object,
|
|
1256
|
+
Function,
|
|
1257
|
+
String,
|
|
1258
|
+
Number,
|
|
1259
|
+
null,
|
|
1260
|
+
Boolean,
|
|
1261
|
+
Array
|
|
1262
|
+
],
|
|
1263
|
+
required: false,
|
|
1264
|
+
default: void 0
|
|
1265
|
+
},
|
|
1266
|
+
superPrevIcon: {
|
|
1267
|
+
type: [
|
|
1268
|
+
Object,
|
|
1269
|
+
Function,
|
|
1270
|
+
String,
|
|
1271
|
+
Number,
|
|
1272
|
+
null,
|
|
1273
|
+
Boolean,
|
|
1274
|
+
Array
|
|
1275
|
+
],
|
|
1276
|
+
required: false,
|
|
1277
|
+
default: void 0
|
|
1278
|
+
},
|
|
1279
|
+
superNextIcon: {
|
|
1280
|
+
type: [
|
|
1281
|
+
Object,
|
|
1282
|
+
Function,
|
|
1283
|
+
String,
|
|
1284
|
+
Number,
|
|
1285
|
+
null,
|
|
1286
|
+
Boolean,
|
|
1287
|
+
Array
|
|
1288
|
+
],
|
|
1289
|
+
required: false,
|
|
1290
|
+
default: void 0
|
|
1291
|
+
},
|
|
1190
1292
|
showHour: {
|
|
1191
1293
|
type: Boolean,
|
|
1192
1294
|
required: false,
|
|
@@ -1459,14 +1561,50 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1459
1561
|
type: String,
|
|
1460
1562
|
required: false
|
|
1461
1563
|
},
|
|
1462
|
-
prefix: {
|
|
1463
|
-
|
|
1564
|
+
prefix: {
|
|
1565
|
+
type: [
|
|
1566
|
+
Object,
|
|
1567
|
+
Function,
|
|
1568
|
+
String,
|
|
1569
|
+
Number,
|
|
1570
|
+
null,
|
|
1571
|
+
Boolean,
|
|
1572
|
+
Array
|
|
1573
|
+
],
|
|
1574
|
+
required: false,
|
|
1575
|
+
default: void 0
|
|
1576
|
+
},
|
|
1577
|
+
suffixIcon: {
|
|
1578
|
+
type: [
|
|
1579
|
+
Object,
|
|
1580
|
+
Function,
|
|
1581
|
+
String,
|
|
1582
|
+
Number,
|
|
1583
|
+
null,
|
|
1584
|
+
Boolean,
|
|
1585
|
+
Array
|
|
1586
|
+
],
|
|
1587
|
+
required: false,
|
|
1588
|
+
default: void 0
|
|
1589
|
+
},
|
|
1464
1590
|
allowClear: {
|
|
1465
1591
|
type: [Boolean, Object],
|
|
1466
1592
|
required: false,
|
|
1467
1593
|
default: void 0
|
|
1468
1594
|
},
|
|
1469
|
-
clearIcon: {
|
|
1595
|
+
clearIcon: {
|
|
1596
|
+
type: [
|
|
1597
|
+
Object,
|
|
1598
|
+
Function,
|
|
1599
|
+
String,
|
|
1600
|
+
Number,
|
|
1601
|
+
null,
|
|
1602
|
+
Boolean,
|
|
1603
|
+
Array
|
|
1604
|
+
],
|
|
1605
|
+
required: false,
|
|
1606
|
+
default: void 0
|
|
1607
|
+
},
|
|
1470
1608
|
inputReadOnly: {
|
|
1471
1609
|
type: Boolean,
|
|
1472
1610
|
required: false,
|
|
@@ -1494,12 +1632,18 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1494
1632
|
required: false,
|
|
1495
1633
|
default: void 0
|
|
1496
1634
|
},
|
|
1497
|
-
popupAlign: {
|
|
1635
|
+
popupAlign: {
|
|
1636
|
+
type: Object,
|
|
1637
|
+
required: false
|
|
1638
|
+
},
|
|
1498
1639
|
getPopupContainer: {
|
|
1499
1640
|
type: Function,
|
|
1500
1641
|
required: false
|
|
1501
1642
|
},
|
|
1502
|
-
builtinPlacements: {
|
|
1643
|
+
builtinPlacements: {
|
|
1644
|
+
type: Object,
|
|
1645
|
+
required: false
|
|
1646
|
+
},
|
|
1503
1647
|
needConfirm: {
|
|
1504
1648
|
type: Boolean,
|
|
1505
1649
|
required: false,
|
|
@@ -2441,10 +2585,58 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
2441
2585
|
type: Function,
|
|
2442
2586
|
required: false
|
|
2443
2587
|
},
|
|
2444
|
-
prevIcon: {
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2588
|
+
prevIcon: {
|
|
2589
|
+
type: [
|
|
2590
|
+
Object,
|
|
2591
|
+
Function,
|
|
2592
|
+
String,
|
|
2593
|
+
Number,
|
|
2594
|
+
null,
|
|
2595
|
+
Boolean,
|
|
2596
|
+
Array
|
|
2597
|
+
],
|
|
2598
|
+
required: false,
|
|
2599
|
+
default: void 0
|
|
2600
|
+
},
|
|
2601
|
+
nextIcon: {
|
|
2602
|
+
type: [
|
|
2603
|
+
Object,
|
|
2604
|
+
Function,
|
|
2605
|
+
String,
|
|
2606
|
+
Number,
|
|
2607
|
+
null,
|
|
2608
|
+
Boolean,
|
|
2609
|
+
Array
|
|
2610
|
+
],
|
|
2611
|
+
required: false,
|
|
2612
|
+
default: void 0
|
|
2613
|
+
},
|
|
2614
|
+
superPrevIcon: {
|
|
2615
|
+
type: [
|
|
2616
|
+
Object,
|
|
2617
|
+
Function,
|
|
2618
|
+
String,
|
|
2619
|
+
Number,
|
|
2620
|
+
null,
|
|
2621
|
+
Boolean,
|
|
2622
|
+
Array
|
|
2623
|
+
],
|
|
2624
|
+
required: false,
|
|
2625
|
+
default: void 0
|
|
2626
|
+
},
|
|
2627
|
+
superNextIcon: {
|
|
2628
|
+
type: [
|
|
2629
|
+
Object,
|
|
2630
|
+
Function,
|
|
2631
|
+
String,
|
|
2632
|
+
Number,
|
|
2633
|
+
null,
|
|
2634
|
+
Boolean,
|
|
2635
|
+
Array
|
|
2636
|
+
],
|
|
2637
|
+
required: false,
|
|
2638
|
+
default: void 0
|
|
2639
|
+
},
|
|
2448
2640
|
showHour: {
|
|
2449
2641
|
type: Boolean,
|
|
2450
2642
|
required: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { StepItem, StepsProps, StepsSemanticClassNames, StepsSemanticName, StepsSemanticStyles } from "../steps/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
@@ -21,15 +21,15 @@ interface TimelineItemType {
|
|
|
21
21
|
position?: ItemPosition;
|
|
22
22
|
loading?: boolean;
|
|
23
23
|
key?: string | number;
|
|
24
|
-
title?: VueNode
|
|
25
|
-
content?: VueNode
|
|
24
|
+
title?: VueNode;
|
|
25
|
+
content?: VueNode;
|
|
26
26
|
/** @deprecated Please use `title` instead */
|
|
27
|
-
label?: VueNode
|
|
27
|
+
label?: VueNode;
|
|
28
28
|
/** @deprecated Please use `content` instead */
|
|
29
|
-
children?: VueNode
|
|
30
|
-
icon?: VueNode
|
|
29
|
+
children?: VueNode;
|
|
30
|
+
icon?: VueNode;
|
|
31
31
|
/** @deprecated Please use `icon` instead */
|
|
32
|
-
dot?: VueNode
|
|
32
|
+
dot?: VueNode;
|
|
33
33
|
}
|
|
34
34
|
type TimelineSemanticName = StepsSemanticName;
|
|
35
35
|
type TimelineSemanticClassNames = StepsSemanticClassNames;
|
|
@@ -37,8 +37,8 @@ type TimelineSemanticStyles = StepsSemanticStyles;
|
|
|
37
37
|
type TimelineClassNamesType = SemanticClassNamesType<TimelineProps, TimelineSemanticClassNames>;
|
|
38
38
|
type TimelineMode = ItemPosition | 'alternate';
|
|
39
39
|
interface TimelineProps extends ComponentBaseProps {
|
|
40
|
-
pending?: VueNode
|
|
41
|
-
pendingDot?: VueNode
|
|
40
|
+
pending?: VueNode;
|
|
41
|
+
pendingDot?: VueNode;
|
|
42
42
|
reverse?: boolean;
|
|
43
43
|
mode?: 'left' | 'alternate' | 'right' | 'start' | 'end';
|
|
44
44
|
items?: TimelineItemType[];
|
|
@@ -7,7 +7,7 @@ import { parseColor } from "./util.js";
|
|
|
7
7
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
9
|
import { Popup } from "@v-c/tooltip";
|
|
10
|
-
import { omit } from "es-toolkit";
|
|
10
|
+
import { omit } from "es-toolkit/compat";
|
|
11
11
|
//#region src/tooltip/PurePanel.tsx
|
|
12
12
|
function _isSlot(s) {
|
|
13
13
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { PresetColorType } from "../_util/colors.js";
|
|
4
4
|
import { AdjustOverflow } from "../_util/placements.js";
|
|
@@ -71,8 +71,8 @@ interface TriggerCommonApi extends ComponentBaseProps {
|
|
|
71
71
|
interface TooltipProps extends TriggerCommonApi, TooltipEmitsProps {
|
|
72
72
|
afterOpenChange?: (open: boolean) => void;
|
|
73
73
|
builtinPlacements?: typeof placements;
|
|
74
|
-
title?: VueNode
|
|
75
|
-
overlay?: VueNode
|
|
74
|
+
title?: VueNode;
|
|
75
|
+
overlay?: VueNode;
|
|
76
76
|
openClass?: string;
|
|
77
77
|
unique?: boolean;
|
|
78
78
|
}
|
package/dist/tour/interface.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
4
4
|
import { CSSProperties } from "vue";
|
|
@@ -84,15 +84,15 @@ interface TourSlots {
|
|
|
84
84
|
}) => any;
|
|
85
85
|
}
|
|
86
86
|
interface TourStepProps extends Omit<TourStepProps$1, 'className'> {
|
|
87
|
-
cover?: VueNode
|
|
87
|
+
cover?: VueNode;
|
|
88
88
|
nextButtonProps?: {
|
|
89
|
-
children?: VueNode
|
|
89
|
+
children?: VueNode;
|
|
90
90
|
onClick?: () => void;
|
|
91
91
|
class?: string;
|
|
92
92
|
style?: CSSProperties;
|
|
93
93
|
};
|
|
94
94
|
prevButtonProps?: {
|
|
95
|
-
children?: VueNode
|
|
95
|
+
children?: VueNode;
|
|
96
96
|
onClick?: () => void;
|
|
97
97
|
class?: string;
|
|
98
98
|
style?: CSSProperties;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { DirectionType } from "../config-provider/context.js";
|
|
3
3
|
import { CSSProperties } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/transfer/Actions.d.ts
|
|
6
6
|
interface TransferOperationProps {
|
|
7
7
|
class?: string;
|
|
8
|
-
actions: VueNode
|
|
8
|
+
actions: VueNode[];
|
|
9
9
|
moveToLeft?: (event: MouseEvent) => void;
|
|
10
10
|
moveToRight?: (event: MouseEvent) => void;
|
|
11
11
|
leftActive?: boolean;
|
|
@@ -2,7 +2,7 @@ import { TransferEmits, TransferProps, TransferSlots } from "./interface.js";
|
|
|
2
2
|
import { SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/transfer/Transfer.d.ts
|
|
5
|
-
interface InternalTransferProps extends TransferProps
|
|
5
|
+
interface InternalTransferProps<RecordType = any> extends TransferProps<RecordType>, TransferEmitsProps {}
|
|
6
6
|
interface TransferEmitsProps {
|
|
7
7
|
onChange?: TransferEmits['change'];
|
|
8
8
|
onSelectChange?: TransferEmits['selectChange'];
|
|
@@ -11,6 +11,6 @@ interface TransferEmitsProps {
|
|
|
11
11
|
'onUpdate:targetKeys'?: TransferEmits['update:targetKeys'];
|
|
12
12
|
'onUpdate:selectedKeys'?: TransferEmits['update:selectedKeys'];
|
|
13
13
|
}
|
|
14
|
-
declare const Transfer: import("vue").DefineSetupFnComponent<InternalTransferProps
|
|
14
|
+
declare const Transfer: import("vue").DefineSetupFnComponent<InternalTransferProps<any>, TransferEmits, SlotsType<TransferSlots<any>>, InternalTransferProps<any>, import("vue").PublicProps>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { InternalTransferProps, TransferEmitsProps, Transfer as default };
|
package/dist/transfer/index.d.ts
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType } from "./interface.js";
|
|
2
|
-
import
|
|
2
|
+
import { InternalTransferProps } from "./Transfer.js";
|
|
3
3
|
import Actions, { TransferOperationProps } from "./Actions.js";
|
|
4
4
|
import Search, { TransferSearchEmits, TransferSearchProps, TransferSearchSlots } from "./search.js";
|
|
5
5
|
import TransferSection from "./Section.js";
|
|
6
|
-
import { App } from "vue";
|
|
6
|
+
import { App, PublicProps } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/transfer/index.d.ts
|
|
9
|
-
type TransferProps = InternalTransferProps
|
|
10
|
-
|
|
9
|
+
type TransferProps<RecordType = any> = InternalTransferProps<RecordType>;
|
|
10
|
+
interface TransferInstance<RecordType = any> {
|
|
11
|
+
$props: InternalTransferProps<RecordType> & PublicProps;
|
|
12
|
+
$emit: {
|
|
13
|
+
(event: 'change', ...args: Parameters<TransferEmits['change']>): void;
|
|
14
|
+
(event: 'selectChange', ...args: Parameters<TransferEmits['selectChange']>): void;
|
|
15
|
+
(event: 'search', ...args: Parameters<TransferEmits['search']>): void;
|
|
16
|
+
(event: 'scroll', ...args: Parameters<TransferEmits['scroll']>): void;
|
|
17
|
+
(event: 'update:targetKeys', ...args: Parameters<TransferEmits['update:targetKeys']>): void;
|
|
18
|
+
(event: 'update:selectedKeys', ...args: Parameters<TransferEmits['update:selectedKeys']>): void;
|
|
19
|
+
};
|
|
20
|
+
$slots: TransferSlots<RecordType>;
|
|
21
|
+
}
|
|
22
|
+
interface TransferConstructor {
|
|
23
|
+
new <RecordType = any>(props: InternalTransferProps<RecordType>): TransferInstance<RecordType>;
|
|
24
|
+
/**
|
|
25
|
+
* Non-generic fallback signature. TypeScript infers from the last overload,
|
|
26
|
+
* so this keeps render-function usage like `h(Transfer, props)` resolvable
|
|
27
|
+
* against Vue's `Constructor<P>` overload of `h` (see #634), while the
|
|
28
|
+
* generic signature above still drives template/Volar inference.
|
|
29
|
+
*/
|
|
30
|
+
new (props: InternalTransferProps<any>): TransferInstance<any>;
|
|
11
31
|
install: (app: App) => void;
|
|
12
32
|
List: typeof TransferSection;
|
|
13
33
|
Search: typeof Search;
|
|
14
34
|
Operation: typeof Actions;
|
|
15
|
-
}
|
|
35
|
+
}
|
|
36
|
+
declare const InternalTransfer: TransferConstructor;
|
|
16
37
|
//#endregion
|
|
17
|
-
export { type KeyWise, type KeyWiseTransferItem, type ListStyle, type PaginationType, type RenderResult, type RenderResultObject, type SelectAllLabel, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, TransferProps, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, InternalTransfer as default };
|
|
38
|
+
export { type KeyWise, type KeyWiseTransferItem, type ListStyle, type PaginationType, type RenderResult, type RenderResultObject, type SelectAllLabel, type TransferClassNamesType, TransferConstructor, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, TransferProps, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, InternalTransfer as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VueNode
|
|
2
|
-
import {
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
|
+
import { Resolvable } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
@@ -14,10 +14,10 @@ type PaginationType = boolean | {
|
|
|
14
14
|
};
|
|
15
15
|
type TransferDirection = 'left' | 'right';
|
|
16
16
|
interface RenderResultObject {
|
|
17
|
-
label: VueNode
|
|
17
|
+
label: VueNode;
|
|
18
18
|
value: string;
|
|
19
19
|
}
|
|
20
|
-
type RenderResult = VueNode
|
|
20
|
+
type RenderResult = VueNode | RenderResultObject | string | null;
|
|
21
21
|
interface TransferItem {
|
|
22
22
|
key?: TransferKey;
|
|
23
23
|
title?: string;
|
|
@@ -33,13 +33,13 @@ type TransferRender<RecordType> = (item: RecordType) => RenderResult;
|
|
|
33
33
|
interface ListStyle {
|
|
34
34
|
direction: TransferDirection;
|
|
35
35
|
}
|
|
36
|
-
type SelectAllLabel = VueNode
|
|
36
|
+
type SelectAllLabel = VueNode | ((info: {
|
|
37
37
|
selectedCount: number;
|
|
38
38
|
totalCount: number;
|
|
39
|
-
}) => VueNode
|
|
39
|
+
}) => VueNode);
|
|
40
40
|
interface TransferLocale {
|
|
41
|
-
titles?: VueNode
|
|
42
|
-
notFoundContent?: VueNode
|
|
41
|
+
titles?: VueNode[];
|
|
42
|
+
notFoundContent?: VueNode | VueNode[];
|
|
43
43
|
searchPlaceholder: string;
|
|
44
44
|
itemUnit: string;
|
|
45
45
|
itemsUnit: string;
|
|
@@ -113,14 +113,14 @@ interface TransferSemanticStyles {
|
|
|
113
113
|
source?: TransferSectionSemanticStyles;
|
|
114
114
|
target?: TransferSectionSemanticStyles;
|
|
115
115
|
}
|
|
116
|
-
type TransferClassNamesType =
|
|
117
|
-
type TransferStylesType =
|
|
116
|
+
type TransferClassNamesType = Resolvable<Readonly<TransferSemanticClassNames>, TransferProps>;
|
|
117
|
+
type TransferStylesType = Resolvable<Readonly<TransferSemanticStyles>, TransferProps>;
|
|
118
118
|
interface TransferListProps<RecordType> extends TransferLocale {
|
|
119
119
|
prefixCls: string;
|
|
120
120
|
style?: CSSProperties;
|
|
121
121
|
classes?: TransferSemanticClassNames;
|
|
122
122
|
styles?: TransferSemanticStyles;
|
|
123
|
-
titleText: VueNode
|
|
123
|
+
titleText: VueNode;
|
|
124
124
|
dataSource: RecordType[];
|
|
125
125
|
filterOption?: (filterText: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
126
126
|
checkedKeys: TransferKey[];
|
|
@@ -143,11 +143,11 @@ interface TransferListProps<RecordType> extends TransferLocale {
|
|
|
143
143
|
selectAllLabel?: SelectAllLabel;
|
|
144
144
|
showRemove?: boolean;
|
|
145
145
|
pagination?: PaginationType;
|
|
146
|
-
selectionsIcon?: VueNode
|
|
146
|
+
selectionsIcon?: VueNode;
|
|
147
147
|
}
|
|
148
148
|
interface RenderedItem<RecordType> {
|
|
149
149
|
renderedText: string;
|
|
150
|
-
renderedEl: VueNode
|
|
150
|
+
renderedEl: VueNode;
|
|
151
151
|
item: RecordType;
|
|
152
152
|
}
|
|
153
153
|
declare const OmitProps: readonly ["handleFilter", "handleClear", "checkedKeys"];
|
|
@@ -172,10 +172,10 @@ interface TransferProps<RecordType = any> extends ComponentBaseProps {
|
|
|
172
172
|
selectedKeys?: TransferKey[];
|
|
173
173
|
render?: TransferRender<RecordType>;
|
|
174
174
|
labelRender?: (item: RecordType) => any;
|
|
175
|
-
titles?: VueNode
|
|
175
|
+
titles?: VueNode[];
|
|
176
176
|
/** @deprecated Please use `actions` instead. */
|
|
177
|
-
operations?: VueNode
|
|
178
|
-
actions?: VueNode
|
|
177
|
+
operations?: VueNode[];
|
|
178
|
+
actions?: VueNode[];
|
|
179
179
|
showSearch?: boolean | TransferSearchOption;
|
|
180
180
|
filterOption?: (inputValue: string, item: RecordType, direction: TransferDirection) => boolean;
|
|
181
181
|
locale?: Partial<TransferLocale>;
|
|
@@ -188,7 +188,7 @@ interface TransferProps<RecordType = any> extends ComponentBaseProps {
|
|
|
188
188
|
oneWay?: boolean;
|
|
189
189
|
pagination?: PaginationType;
|
|
190
190
|
status?: InputStatus;
|
|
191
|
-
selectionsIcon?: VueNode
|
|
191
|
+
selectionsIcon?: VueNode;
|
|
192
192
|
}
|
|
193
193
|
interface TransferEmits {
|
|
194
194
|
'change': (targetKeys: TransferKey[], direction: TransferDirection, moveKeys: TransferKey[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SlotsType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/transfer/search.d.ts
|
|
@@ -17,7 +17,7 @@ interface TransferSearchEmitsProps {
|
|
|
17
17
|
onClear?: TransferSearchEmits['clear'];
|
|
18
18
|
}
|
|
19
19
|
interface TransferSearchSlots {
|
|
20
|
-
prefix?: () => VueNode
|
|
20
|
+
prefix?: () => VueNode;
|
|
21
21
|
}
|
|
22
22
|
declare const Search: import("vue").DefineSetupFnComponent<TransferSearchProps, TransferSearchEmits, SlotsType<TransferSearchSlots>, TransferSearchProps, import("vue").PublicProps>;
|
|
23
23
|
//#endregion
|
package/dist/tree/Tree.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
import { BasicDataNode, DataNode, TreeProps as TreeProps$1, TreeRef } from "@v-c/tree";
|
|
@@ -16,8 +16,8 @@ interface AntdTreeNodeAttribute {
|
|
|
16
16
|
selected: boolean;
|
|
17
17
|
checked: boolean;
|
|
18
18
|
halfChecked: boolean;
|
|
19
|
-
title: VueNode
|
|
20
|
-
children: VueNode
|
|
19
|
+
title: VueNode;
|
|
20
|
+
children: VueNode;
|
|
21
21
|
pos: string;
|
|
22
22
|
dragOver: boolean;
|
|
23
23
|
dragOverGapTop: boolean;
|
|
@@ -42,7 +42,7 @@ interface AntTreeNodeProps {
|
|
|
42
42
|
selected?: boolean;
|
|
43
43
|
selectable?: boolean;
|
|
44
44
|
icon?: TreeIcon;
|
|
45
|
-
children?: VueNode
|
|
45
|
+
children?: VueNode;
|
|
46
46
|
[customProp: string]: any;
|
|
47
47
|
}
|
|
48
48
|
type AntTreeNode = AntTreeNodeProps;
|
|
@@ -81,7 +81,7 @@ interface AntTreeNodeDropEvent {
|
|
|
81
81
|
type TreeNodeNormal = DataNode;
|
|
82
82
|
type DraggableFn = (node: DataNode) => boolean;
|
|
83
83
|
interface DraggableConfig {
|
|
84
|
-
icon?: VueNode
|
|
84
|
+
icon?: VueNode;
|
|
85
85
|
nodeDraggable?: DraggableFn;
|
|
86
86
|
}
|
|
87
87
|
type TreeSemanticName = keyof TreeSemanticClassNames & keyof TreeSemanticStyles;
|
|
@@ -146,7 +146,7 @@ interface TreeProps<T extends BasicDataNode = DataNode> extends Omit<TreeProps$1
|
|
|
146
146
|
showIcon?: boolean;
|
|
147
147
|
icon?: TreeIcon;
|
|
148
148
|
switcherIcon?: SwitcherIcon;
|
|
149
|
-
switcherLoadingIcon?: VueNode
|
|
149
|
+
switcherLoadingIcon?: VueNode;
|
|
150
150
|
prefixCls?: string;
|
|
151
151
|
blockNode?: boolean;
|
|
152
152
|
tabindex?: number;
|