antdv-next 1.5.6 → 1.7.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/dist/_util/ContextIsolator.js +12 -3
- package/dist/_util/PurePanel.js +17 -14
- package/dist/_util/fallbackProp.d.ts +13 -0
- package/dist/_util/fallbackProp.js +15 -0
- package/dist/_util/hooks/useAllowClear.d.ts +35 -0
- package/dist/_util/hooks/useAllowClear.js +34 -0
- package/dist/_util/hooks/useClosable.js +1 -1
- package/dist/_util/hooks/useMergeSemantic.js +3 -2
- package/dist/_util/omitUndefined.d.ts +13 -0
- package/dist/_util/omitUndefined.js +20 -0
- package/dist/_util/tools.d.ts +3 -1
- package/dist/_util/tools.js +6 -1
- package/dist/_util/wave/index.js +4 -2
- package/dist/_util/wave/style.d.ts +5 -1
- package/dist/_util/wave/useWave.d.ts +2 -1
- package/dist/_util/wave/useWave.js +4 -3
- package/dist/affix/style/index.d.ts +5 -1
- package/dist/alert/Alert.d.ts +6 -2
- package/dist/alert/Alert.js +135 -129
- package/dist/alert/style/index.d.ts +7 -4
- package/dist/alert/style/index.js +12 -9
- package/dist/anchor/style/index.d.ts +5 -1
- package/dist/antd-with-locales.esm.js +21947 -18522
- package/dist/antd-with-locales.js +82 -82
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +19553 -16771
- package/dist/antd.js +82 -82
- package/dist/app/style/index.d.ts +5 -1
- package/dist/auto-complete/index.js +1 -0
- package/dist/avatar/Avatar.js +2 -4
- package/dist/avatar/AvatarContext.d.ts +2 -2
- package/dist/avatar/style/index.d.ts +5 -1
- package/dist/badge/index.js +1 -1
- package/dist/badge/style/index.d.ts +5 -1
- package/dist/badge/style/index.js +2 -9
- package/dist/badge/style/ribbon.d.ts +5 -1
- package/dist/border-beam/BorderBeam.d.ts +8 -1
- package/dist/border-beam/BorderBeam.js +28 -14
- package/dist/border-beam/index.d.ts +2 -2
- package/dist/border-beam/style/index.d.ts +5 -1
- package/dist/breadcrumb/BreadcrumbItem.js +2 -2
- package/dist/breadcrumb/style/index.d.ts +5 -1
- package/dist/button/style/index.d.ts +5 -1
- package/dist/calendar/style/index.d.ts +4 -1
- package/dist/card/Card.js +1 -1
- package/dist/card/style/index.d.ts +5 -1
- package/dist/card/style/index.js +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style/index.d.ts +5 -1
- package/dist/carousel/style/index.js +1 -1
- package/dist/cascader/Panel.js +3 -3
- package/dist/cascader/index.js +14 -6
- package/dist/cascader/style/index.d.ts +5 -1
- package/dist/cascader/style/panel.d.ts +5 -1
- package/dist/checkbox/Checkbox.js +6 -4
- package/dist/checkbox/Group.d.ts +19 -1
- package/dist/checkbox/Group.js +34 -5
- package/dist/checkbox/GroupContext.d.ts +3 -0
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/checkbox/style/index.d.ts +4 -1
- package/dist/collapse/style/index.d.ts +4 -1
- package/dist/color-picker/ColorPicker.js +8 -12
- package/dist/color-picker/style/index.d.ts +5 -1
- package/dist/color-picker/style/input.js +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/config-provider/context.d.ts +16 -21
- package/dist/config-provider/context.js +32 -38
- package/dist/config-provider/define.d.ts +3 -1
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +3 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +4 -3
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/config-provider/index.js +24 -1
- package/dist/date-picker/generatePicker/generateRangePicker.js +29 -4
- package/dist/date-picker/generatePicker/generateSinglePicker.js +32 -6
- package/dist/date-picker/generatePicker/interface.d.ts +4 -0
- package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
- package/dist/date-picker/style/index.d.ts +5 -1
- package/dist/date-picker/style/panel.js +1 -1
- package/dist/date-picker/style/util.js +1 -1
- package/dist/date-picker/util.d.ts +10 -12
- package/dist/date-picker/util.js +14 -7
- package/dist/descriptions/Cell.js +80 -75
- package/dist/descriptions/Row.js +14 -11
- package/dist/descriptions/hooks/useItems.d.ts +10 -10
- package/dist/descriptions/style/index.d.ts +5 -1
- package/dist/descriptions/style/index.js +11 -13
- package/dist/divider/style/index.d.ts +5 -1
- package/dist/divider/style/index.js +1 -1
- package/dist/drawer/DrawerPanel.js +7 -7
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/index.js +0 -1
- package/dist/drawer/style/index.d.ts +5 -1
- package/dist/dropdown/dropdown.d.ts +2 -0
- package/dist/dropdown/dropdown.js +11 -3
- package/dist/dropdown/style/index.d.ts +5 -1
- package/dist/dropdown/style/index.js +1 -1
- package/dist/empty/style/index.d.ts +5 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex/style/index.d.ts +5 -1
- package/dist/float-button/FloatButtonGroup.js +1 -1
- package/dist/float-button/style/index.d.ts +5 -1
- package/dist/form/ErrorList.js +1 -1
- package/dist/form/Form.js +1 -1
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +38 -18
- package/dist/form/FormItemInput.js +1 -1
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/form/style/index.d.ts +5 -1
- package/dist/grid/style/index.d.ts +5 -2
- package/dist/image/hooks/useMergedPreviewConfig.d.ts +1 -0
- package/dist/image/hooks/useMergedPreviewConfig.js +2 -1
- package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
- package/dist/image/style/index.d.ts +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/input/Group.js +1 -1
- package/dist/input/Input.d.ts +2 -1
- package/dist/input/Input.js +8 -5
- package/dist/input/OTP/OTPInput.d.ts +2 -1
- package/dist/input/OTP/OTPInput.js +12 -3
- package/dist/input/OTP/index.d.ts +3 -1
- package/dist/input/OTP/index.js +15 -6
- package/dist/input/Password.js +7 -5
- package/dist/input/Search.js +4 -2
- package/dist/input/TextArea.d.ts +3 -1
- package/dist/input/TextArea.js +13 -8
- package/dist/input/style/index.d.ts +5 -2
- package/dist/input/style/index.js +1 -1
- package/dist/input/style/otp.d.ts +5 -1
- package/dist/input/style/search.d.ts +5 -1
- package/dist/input/style/textarea.d.ts +5 -1
- package/dist/input-number/index.d.ts +3 -6
- package/dist/input-number/index.js +8 -3
- package/dist/input-number/style/index.d.ts +5 -1
- package/dist/input-number/style/index.js +1 -5
- package/dist/layout/style/index.d.ts +5 -1
- package/dist/layout/style/sider.d.ts +5 -1
- package/dist/listy/index.d.ts +1 -1
- package/dist/listy/index.js +9 -7
- package/dist/listy/interface.d.ts +6 -1
- package/dist/listy/style/index.d.ts +5 -1
- package/dist/listy/style/index.js +4 -2
- package/dist/locale/ar_EG.js +9 -0
- package/dist/locale/az_AZ.js +9 -0
- package/dist/locale/bg_BG.js +9 -0
- package/dist/locale/bn_BD.js +9 -0
- package/dist/locale/by_BY.js +9 -0
- package/dist/locale/ca_ES.js +9 -0
- package/dist/locale/cs_CZ.js +9 -0
- package/dist/locale/da_DK.js +9 -0
- package/dist/locale/de_DE.js +9 -0
- package/dist/locale/el_GR.js +9 -0
- package/dist/locale/en_GB.js +11 -1
- package/dist/locale/en_US.js +11 -1
- package/dist/locale/es_ES.js +9 -0
- package/dist/locale/et_EE.js +9 -0
- package/dist/locale/eu_ES.js +9 -0
- package/dist/locale/fa_IR.js +9 -0
- package/dist/locale/fi_FI.js +10 -1
- package/dist/locale/fr_BE.js +9 -0
- package/dist/locale/fr_CA.js +9 -0
- package/dist/locale/fr_FR.js +9 -0
- package/dist/locale/ga_IE.js +9 -0
- package/dist/locale/gl_ES.js +9 -0
- package/dist/locale/he_IL.js +9 -0
- package/dist/locale/hi_IN.js +9 -0
- package/dist/locale/hr_HR.js +9 -0
- package/dist/locale/hu_HU.js +9 -0
- package/dist/locale/hy_AM.js +9 -0
- package/dist/locale/id_ID.js +9 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/is_IS.js +9 -0
- package/dist/locale/it_IT.js +9 -0
- package/dist/locale/ja_JP.js +9 -0
- package/dist/locale/ka_GE.js +9 -0
- package/dist/locale/kk_KZ.js +9 -0
- package/dist/locale/km_KH.js +9 -0
- package/dist/locale/kmr_IQ.js +9 -0
- package/dist/locale/kn_IN.js +9 -0
- package/dist/locale/ko_KR.js +9 -0
- package/dist/locale/ku_IQ.js +9 -0
- package/dist/locale/lt_LT.js +9 -0
- package/dist/locale/lv_LV.js +9 -0
- package/dist/locale/mk_MK.js +9 -0
- package/dist/locale/ml_IN.js +9 -0
- package/dist/locale/mn_MN.js +9 -0
- package/dist/locale/mr_IN.js +9 -0
- package/dist/locale/ms_MY.js +9 -0
- package/dist/locale/my_MM.js +9 -0
- package/dist/locale/nb_NO.js +9 -0
- package/dist/locale/ne_NP.js +9 -0
- package/dist/locale/nl_BE.js +9 -0
- package/dist/locale/nl_NL.js +9 -0
- package/dist/locale/pl_PL.js +9 -0
- package/dist/locale/pt_BR.js +9 -0
- package/dist/locale/pt_PT.js +9 -0
- package/dist/locale/ro_RO.js +19 -10
- package/dist/locale/ru_RU.js +9 -0
- package/dist/locale/si_LK.js +9 -0
- package/dist/locale/sk_SK.js +9 -0
- package/dist/locale/sl_SI.js +9 -0
- package/dist/locale/sq_AL.js +9 -0
- package/dist/locale/sr_RS.js +9 -0
- package/dist/locale/sv_SE.js +9 -0
- package/dist/locale/ta_IN.js +10 -1
- package/dist/locale/th_TH.js +9 -0
- package/dist/locale/tk_TK.js +9 -0
- package/dist/locale/tr_TR.js +9 -0
- package/dist/locale/uk_UA.js +9 -0
- package/dist/locale/ur_PK.js +9 -0
- package/dist/locale/useLocale.d.ts +7 -2
- package/dist/locale/useLocale.js +12 -1
- package/dist/locale/uz_UZ.js +9 -0
- package/dist/locale/vi_VN.js +9 -0
- package/dist/locale/zh_CN.js +13 -3
- package/dist/locale/zh_HK.js +11 -1
- package/dist/locale/zh_TW.js +11 -1
- package/dist/masonry/Masonry.js +1 -1
- package/dist/masonry/style/index.d.ts +4 -1
- package/dist/mentions/index.d.ts +2 -3
- package/dist/mentions/index.js +10 -5
- package/dist/mentions/style/index.d.ts +5 -1
- package/dist/mentions/style/index.js +1 -1
- package/dist/menu/MenuContext.d.ts +2 -0
- package/dist/menu/MenuItem.js +25 -7
- package/dist/menu/index.js +5 -0
- package/dist/menu/menu.d.ts +3 -0
- package/dist/menu/menu.js +7 -0
- package/dist/message/style/index.d.ts +5 -1
- package/dist/modal/ConfirmDialog.js +14 -7
- package/dist/modal/style/index.d.ts +3 -1
- package/dist/notification/PurePanel.js +7 -12
- package/dist/notification/interface.d.ts +8 -0
- package/dist/notification/style/index.d.ts +4 -1
- package/dist/notification/style/index.js +1 -1
- package/dist/notification/style/placement.js +10 -7
- package/dist/notification/useNotification.js +5 -15
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +2 -2
- package/dist/pagination/style/index.d.ts +5 -1
- package/dist/pagination/useShowSizeChanger.d.ts +3 -0
- package/dist/pagination/useShowSizeChanger.js +1 -1
- package/dist/popconfirm/index.js +5 -5
- package/dist/popconfirm/style/index.d.ts +5 -1
- package/dist/popconfirm/style/index.js +1 -1
- package/dist/popover/index.js +5 -4
- package/dist/popover/style/index.d.ts +5 -1
- package/dist/popover/style/index.js +2 -2
- package/dist/progress/Circle.js +0 -8
- package/dist/progress/Line.js +1 -9
- package/dist/progress/Steps.js +0 -8
- package/dist/progress/progress.js +2 -14
- package/dist/progress/style/index.d.ts +5 -1
- package/dist/qrcode/index.js +4 -25
- package/dist/qrcode/interface.d.ts +1 -1
- package/dist/qrcode/style/index.d.ts +5 -1
- package/dist/radio/group.js +40 -7
- package/dist/radio/index.d.ts +2 -2
- package/dist/radio/interface.d.ts +19 -1
- package/dist/radio/radio.js +5 -3
- package/dist/radio/style/index.d.ts +5 -1
- package/dist/rate/style/index.d.ts +5 -1
- package/dist/result/index.js +3 -3
- package/dist/result/noFound.js +120 -140
- package/dist/result/serverError.js +132 -147
- package/dist/result/style/index.d.ts +5 -1
- package/dist/result/unauthorized.js +115 -129
- package/dist/segmented/index.js +1 -1
- package/dist/segmented/style/index.d.ts +5 -1
- package/dist/select/index.js +12 -5
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/index.d.ts +5 -1
- package/dist/select/style/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +1 -1
- package/dist/select/usePopupRender.js +4 -1
- package/dist/skeleton/style/index.d.ts +5 -1
- package/dist/slider/index.d.ts +0 -3
- package/dist/slider/index.js +2 -2
- package/dist/slider/style/index.d.ts +5 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/style/addon.d.ts +5 -1
- package/dist/space/style/compact.d.ts +5 -1
- package/dist/space/style/index.d.ts +5 -1
- package/dist/spin/style/index.d.ts +5 -1
- package/dist/splitter/SplitBar.js +9 -3
- package/dist/splitter/interface.d.ts +5 -1
- package/dist/splitter/style/index.d.ts +5 -1
- package/dist/statistic/style/index.d.ts +5 -1
- package/dist/steps/style/index.d.ts +5 -1
- package/dist/steps/style/index.js +1 -1
- package/dist/steps/style/inline.js +1 -1
- package/dist/style/motion/collapse.js +4 -10
- package/dist/switch/style/index.d.ts +5 -1
- package/dist/table/ExpandIcon.d.ts +9 -4
- package/dist/table/ExpandIcon.js +42 -20
- package/dist/table/InternalTable.js +72 -62
- package/dist/table/hooks/useLazyKVMap.js +1 -1
- package/dist/table/hooks/useSelection.js +73 -15
- package/dist/table/interface.d.ts +8 -0
- package/dist/table/style/index.d.ts +5 -1
- package/dist/table/style/index.js +1 -1
- package/dist/table/style/selection.js +1 -1
- package/dist/table/style/sorter.js +2 -2
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +9 -2
- package/dist/tabs/style/index.d.ts +5 -1
- package/dist/tabs/style/index.js +1 -1
- package/dist/tag/CheckableTagGroup.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/style/index.d.ts +5 -1
- package/dist/theme/context.js +2 -1
- package/dist/theme/useToken.d.ts +6 -2
- package/dist/theme/useToken.js +46 -14
- package/dist/theme/util/genStyleUtils.d.ts +13 -3
- package/dist/theme/util/genStyleUtils.js +42 -28
- package/dist/time-picker/index.js +34 -0
- package/dist/timeline/Timeline.js +1 -1
- package/dist/timeline/style/index.d.ts +5 -1
- package/dist/timeline/useItems.d.ts +2 -2
- package/dist/timeline/useItems.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tooltip/style/index.js +1 -1
- package/dist/tour/panelRender.js +3 -2
- package/dist/tour/style/index.d.ts +5 -1
- package/dist/transfer/Section.js +2 -1
- package/dist/transfer/Transfer.js +3 -1
- package/dist/transfer/style/index.d.ts +5 -1
- package/dist/tree/DirectoryTree.js +1 -1
- package/dist/tree/style/index.d.ts +4 -1
- package/dist/tree/style/index.js +1 -1
- package/dist/tree-select/index.js +15 -9
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/Base/index.js +23 -2
- package/dist/typography/Link.js +5 -0
- package/dist/typography/Paragraph.js +5 -0
- package/dist/typography/Text.js +5 -0
- package/dist/typography/Title.js +5 -0
- package/dist/typography/hooks/useMergedConfig.js +1 -1
- package/dist/typography/interface.d.ts +8 -1
- package/dist/typography/style/index.d.ts +5 -1
- package/dist/typography/style/index.js +2 -1
- package/dist/typography/style/mixins.d.ts +2 -1
- package/dist/typography/style/mixins.js +26 -3
- package/dist/upload/Upload.d.ts +1 -0
- package/dist/upload/Upload.js +10 -3
- package/dist/upload/UploadList/ListItem.js +8 -3
- package/dist/upload/interface.d.ts +1 -0
- package/dist/upload/style/index.d.ts +5 -1
- package/dist/version/token-meta.json +1 -1
- package/dist/version/token.json +1 -1
- package/dist/watermark/index.js +1 -1
- package/global.d.ts +5 -0
- package/package.json +17 -17
- package/web-tags.json +5053 -3004
- package/web-types.json +13207 -7299
- package/dist/_util/getAllowClear.d.ts +0 -6
- package/dist/_util/getAllowClear.js +0 -11
|
@@ -105,6 +105,10 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
105
105
|
type: [Object, Function],
|
|
106
106
|
required: false
|
|
107
107
|
},
|
|
108
|
+
autocomplete: {
|
|
109
|
+
type: String,
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
108
112
|
id: {
|
|
109
113
|
type: [String, Object],
|
|
110
114
|
required: false
|
|
@@ -266,6 +270,19 @@ const RangePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expos
|
|
|
266
270
|
required: false,
|
|
267
271
|
default: void 0
|
|
268
272
|
},
|
|
273
|
+
name: {
|
|
274
|
+
type: String,
|
|
275
|
+
required: false
|
|
276
|
+
},
|
|
277
|
+
required: {
|
|
278
|
+
type: Boolean,
|
|
279
|
+
required: false,
|
|
280
|
+
default: void 0
|
|
281
|
+
},
|
|
282
|
+
autoComplete: {
|
|
283
|
+
type: String,
|
|
284
|
+
required: false
|
|
285
|
+
},
|
|
269
286
|
order: {
|
|
270
287
|
type: Boolean,
|
|
271
288
|
required: false,
|
|
@@ -1500,6 +1517,10 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1500
1517
|
type: String,
|
|
1501
1518
|
required: false
|
|
1502
1519
|
},
|
|
1520
|
+
autocomplete: {
|
|
1521
|
+
type: String,
|
|
1522
|
+
required: false
|
|
1523
|
+
},
|
|
1503
1524
|
use12Hours: {
|
|
1504
1525
|
type: Boolean,
|
|
1505
1526
|
required: false,
|
|
@@ -1665,6 +1686,19 @@ const TimePicker = /* @__PURE__ */ defineComponent((props, { slots, emit, expose
|
|
|
1665
1686
|
required: false,
|
|
1666
1687
|
default: void 0
|
|
1667
1688
|
},
|
|
1689
|
+
name: {
|
|
1690
|
+
type: String,
|
|
1691
|
+
required: false
|
|
1692
|
+
},
|
|
1693
|
+
required: {
|
|
1694
|
+
type: Boolean,
|
|
1695
|
+
required: false,
|
|
1696
|
+
default: void 0
|
|
1697
|
+
},
|
|
1698
|
+
autoComplete: {
|
|
1699
|
+
type: String,
|
|
1700
|
+
required: false
|
|
1701
|
+
},
|
|
1668
1702
|
order: {
|
|
1669
1703
|
type: Boolean,
|
|
1670
1704
|
required: false,
|
|
@@ -3,8 +3,8 @@ import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
|
3
3
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
|
-
import isNonNullable from "../_util/isNonNullable.js";
|
|
7
6
|
import { resolveSlotsNode } from "../_util/vnode/index.js";
|
|
7
|
+
import isNonNullable from "../_util/isNonNullable.js";
|
|
8
8
|
import { provideInternalContext } from "../steps/context.js";
|
|
9
9
|
import Steps from "../steps/index.js";
|
|
10
10
|
import style_default from "./style/index.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/timeline/style/index.d.ts
|
|
4
8
|
interface ComponentToken {
|
|
@@ -39,6 +43,6 @@ interface TimelineToken extends FullToken<'Timeline'> {
|
|
|
39
43
|
paddingInlineEnd: number;
|
|
40
44
|
}
|
|
41
45
|
declare const prepareComponentToken: GetDefaultToken<'Timeline'>;
|
|
42
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
46
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
43
47
|
//#endregion
|
|
44
48
|
export { ComponentToken, TimelineToken, _default as default, prepareComponentToken };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TimelineItemType, TimelineMode, TimelineProps } from "./Timeline.js";
|
|
2
|
-
import { ComputedRef } from "vue";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
3
|
//#region src/timeline/useItems.d.ts
|
|
4
4
|
interface TimelineItemRenders {
|
|
5
5
|
dotRender?: TimelineProps['dotRender'];
|
|
6
6
|
labelRender?: TimelineProps['labelRender'];
|
|
7
7
|
contentRender?: TimelineProps['contentRender'];
|
|
8
8
|
}
|
|
9
|
-
declare function useItems(rootPrefixCls:
|
|
9
|
+
declare function useItems(rootPrefixCls: Ref<string>, prefixCls: Ref<string>, mode: ComputedRef<TimelineMode>, items?: ComputedRef<TimelineItemType[] | undefined>, pending?: ComputedRef<TimelineProps['pending']>, pendingDot?: ComputedRef<TimelineProps['pendingDot']>, renders?: ComputedRef<TimelineItemRenders>): ComputedRef<TimelineItemType[]>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { TimelineItemRenders, useItems as default };
|
|
@@ -24,7 +24,7 @@ function useItems(rootPrefixCls, prefixCls, mode, items, pending, pendingDot, re
|
|
|
24
24
|
].includes(color)) mergedClass = classNames(className, `${itemCls.value}-color-${color}`);
|
|
25
25
|
else mergedStyle = {
|
|
26
26
|
[varName("item-icon-dot-color")]: color,
|
|
27
|
-
...normalizeStyle$1(style)
|
|
27
|
+
...normalizeStyle$1(style)
|
|
28
28
|
};
|
|
29
29
|
const mergedPlacement = placement ?? position ?? (mode.value === "alternate" ? index % 2 === 0 ? "start" : "end" : mode.value);
|
|
30
30
|
mergedClass = classNames(mergedClass, `${itemCls.value}-placement-${mergedPlacement}`);
|
package/dist/tooltip/index.js
CHANGED
|
@@ -106,7 +106,7 @@ const InternalTooltip = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
106
106
|
"form": true
|
|
107
107
|
}, _isSlot(memoOverlay) ? memoOverlay : { default: () => [memoOverlay] });
|
|
108
108
|
let child = filterEmpty(slots.default?.())?.[0];
|
|
109
|
-
child = isVNode(child) ? child : createVNode("span", null, [child]);
|
|
109
|
+
child = isVNode(child) && typeof child.type !== "symbol" ? child : createVNode("span", null, [child]);
|
|
110
110
|
const childProps = child?.props ?? {};
|
|
111
111
|
const childCls = !childProps?.class || typeof childProps?.class === "string" ? clsx(childProps.class, openClass || `${prefixCls.value}-open`) : childProps.class;
|
|
112
112
|
const colorInfo = parseColor(rootPrefixCls.value, prefixCls.value, color);
|
|
@@ -2,7 +2,7 @@ import { ArrowToken } from "../../style/roundedArrow.js";
|
|
|
2
2
|
import { ArrowOffsetToken } from "../../style/placementArrow.js";
|
|
3
3
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
4
4
|
import "../../theme/internal.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Ref } from "vue";
|
|
6
6
|
//#region src/tooltip/style/index.d.ts
|
|
7
7
|
interface ComponentToken extends ArrowOffsetToken, ArrowToken {
|
|
8
8
|
/**
|
|
@@ -17,6 +17,6 @@ interface ComponentToken extends ArrowOffsetToken, ArrowToken {
|
|
|
17
17
|
zIndexPopup: number;
|
|
18
18
|
}
|
|
19
19
|
declare const prepareComponentToken: GetDefaultToken<'Tooltip'>;
|
|
20
|
-
declare const _default: (prefixCls:
|
|
20
|
+
declare const _default: (prefixCls: Ref<string>, rootCls: Ref<string>, injectStyle?: boolean) => readonly [Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
21
21
|
//#endregion
|
|
22
22
|
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -60,7 +60,7 @@ const genTooltipStyle = (token) => {
|
|
|
60
60
|
`&-placement-right`,
|
|
61
61
|
`&-placement-rightTop`,
|
|
62
62
|
`&-placement-rightBottom`
|
|
63
|
-
].join(",")]: { [`${componentCls}-
|
|
63
|
+
].join(",")]: { [`${componentCls}-container`]: { borderRadius: token.min(tooltipBorderRadius, 8) } },
|
|
64
64
|
[`${componentCls}-content`]: { position: "relative" },
|
|
65
65
|
...genPresetColor(token, (colorKey, { darkColor }) => ({ [`&${componentCls}-${colorKey}`]: {
|
|
66
66
|
[`${componentCls}-container`]: { backgroundColor: darkColor },
|
package/dist/tour/panelRender.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
2
|
-
import isNonNullable from "../_util/isNonNullable.js";
|
|
3
2
|
import localeValues from "../locale/en_US.js";
|
|
4
3
|
import useLocale from "../locale/useLocale.js";
|
|
5
4
|
import button_default from "../button/index.js";
|
|
5
|
+
import isNonNullable from "../_util/isNonNullable.js";
|
|
6
6
|
import { Fragment, createVNode, defineComponent, mergeProps } from "vue";
|
|
7
7
|
import { clsx } from "@v-c/util";
|
|
8
8
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
@@ -17,13 +17,14 @@ const TourPanel = /* @__PURE__ */ defineComponent((props) => {
|
|
|
17
17
|
const { prefixCls, total = 1, title, onClose, onPrev, onNext, onFinish, cover, description, nextButtonProps, prevButtonProps, type: stepType, closable, classes = {}, styles = {} } = stepProps;
|
|
18
18
|
const ariaProps = pickAttrs(closable ?? {}, true);
|
|
19
19
|
const mergedType = stepType ?? type;
|
|
20
|
+
const resolvedCloseIcon = getSlotPropsFnRun({}, { closeIcon: closable?.closeIcon }, "closeIcon");
|
|
20
21
|
const mergedCloseIcon = createVNode("button", mergeProps({
|
|
21
22
|
"type": "button",
|
|
22
23
|
"onClick": onClose,
|
|
23
24
|
"class": clsx(`${prefixCls}-close`, classes.close),
|
|
24
25
|
"style": styles.close,
|
|
25
26
|
"aria-label": contextLocaleGlobal?.value.close
|
|
26
|
-
}, ariaProps), [
|
|
27
|
+
}, ariaProps), [resolvedCloseIcon || createVNode(CloseOutlined, { "class": `${prefixCls}-close-icon` }, null)]);
|
|
27
28
|
const isLastStep = current === total - 1;
|
|
28
29
|
const prevBtnClick = (e) => {
|
|
29
30
|
onPrev?.();
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ArrowToken } from "../../style/roundedArrow.js";
|
|
2
4
|
import { ArrowOffsetToken } from "../../style/placementArrow.js";
|
|
5
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
3
6
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
7
|
+
import "../../theme/interface/index.js";
|
|
4
8
|
import "../../theme/internal.js";
|
|
5
9
|
//#region src/tour/style/index.d.ts
|
|
6
10
|
interface ComponentToken extends ArrowOffsetToken, ArrowToken {
|
|
@@ -26,6 +30,6 @@ interface ComponentToken extends ArrowOffsetToken, ArrowToken {
|
|
|
26
30
|
primaryNextBtnHoverBg: string;
|
|
27
31
|
}
|
|
28
32
|
declare const prepareComponentToken: GetDefaultToken<'Tour'>;
|
|
29
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
33
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
30
34
|
//#endregion
|
|
31
35
|
export { ComponentToken, _default as default, prepareComponentToken };
|
package/dist/transfer/Section.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
|
|
2
|
+
import { isRenderable } from "../_util/is.js";
|
|
2
3
|
import Dropdown from "../dropdown/index.js";
|
|
3
4
|
import checkbox_default from "../checkbox/index.js";
|
|
4
5
|
import Search from "./search.js";
|
|
@@ -130,7 +131,7 @@ const TransferSection = /* @__PURE__ */ defineComponent((props) => {
|
|
|
130
131
|
}, [search, bodyNode]);
|
|
131
132
|
};
|
|
132
133
|
const getSelectAllLabel = (selectedCount, totalCount) => {
|
|
133
|
-
if (props.selectAllLabel) return typeof props.selectAllLabel === "function" ? props.selectAllLabel({
|
|
134
|
+
if (isRenderable(props.selectAllLabel)) return typeof props.selectAllLabel === "function" ? props.selectAllLabel({
|
|
134
135
|
selectedCount,
|
|
135
136
|
totalCount
|
|
136
137
|
}) : props.selectAllLabel;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
4
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
5
|
import { useMultipleSelect } from "../_util/hooks/useMultipleSelect.js";
|
|
@@ -9,7 +10,6 @@ import localeValues from "../locale/en_US.js";
|
|
|
9
10
|
import useLocale from "../locale/useLocale.js";
|
|
10
11
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
11
12
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
12
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
13
13
|
import Actions from "./Actions.js";
|
|
14
14
|
import { groupDisabledKeysMap, groupKeysMap } from "../_util/transKeys.js";
|
|
15
15
|
import TransferSection from "./Section.js";
|
|
@@ -178,7 +178,9 @@ const Transfer = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, e
|
|
|
178
178
|
onItemSelect("right", selectedKey, checked, e?.shiftKey, filteredItems);
|
|
179
179
|
};
|
|
180
180
|
const onRightItemRemove = (keys) => {
|
|
181
|
+
const hasTargetSelected = targetSelectedKeys.value.length > 0;
|
|
181
182
|
setStateKeys("right", []);
|
|
183
|
+
if (hasTargetSelected) handleSelectChange("right", []);
|
|
182
184
|
emitSelectedKeysUpdate(sourceSelectedKeys.value, []);
|
|
183
185
|
const nextTargetKeys = targetKeys.value.filter((key) => !keys.includes(key));
|
|
184
186
|
emit("update:targetKeys", nextTargetKeys);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/transfer/style/index.d.ts
|
|
4
8
|
interface ComponentToken {
|
|
@@ -34,6 +38,6 @@ interface ComponentToken {
|
|
|
34
38
|
headerHeight: number | string;
|
|
35
39
|
}
|
|
36
40
|
declare const prepareComponentToken: GetDefaultToken<'Transfer'>;
|
|
37
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
41
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
38
42
|
//#endregion
|
|
39
43
|
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -30,7 +30,7 @@ const DirectoryTree = /* @__PURE__ */ defineComponent((props, { slots, emit, exp
|
|
|
30
30
|
children: _children
|
|
31
31
|
}), { fieldNames: props.fieldNames });
|
|
32
32
|
let initExpandedKeys;
|
|
33
|
-
if (defaultExpandAll) initExpandedKeys = Object.
|
|
33
|
+
if (defaultExpandAll) initExpandedKeys = Object.values(keyEntities).map(({ key }) => key);
|
|
34
34
|
else if (defaultExpandParent) initExpandedKeys = conductExpandParent(props.expandedKeys || props?.defaultExpandedKeys || [], keyEntities);
|
|
35
35
|
else initExpandedKeys = props?.expandedKeys || props?.defaultExpandedKeys || [];
|
|
36
36
|
return initExpandedKeys;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
1
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
3
6
|
import { CSSUtil } from "../../theme/internal.js";
|
|
4
7
|
import { CSSInterpolation, CSSObject } from "@antdv-next/cssinjs";
|
|
5
8
|
//#region src/tree/style/index.d.ts
|
|
@@ -67,6 +70,6 @@ declare function genTreeStyle(prefixCls: string, token: AliasToken & TreeSharedT
|
|
|
67
70
|
enableDirectory?: boolean): CSSInterpolation;
|
|
68
71
|
declare function initComponentToken(token: AliasToken): TreeSharedToken;
|
|
69
72
|
declare const prepareComponentToken: GetDefaultToken<'Tree'>;
|
|
70
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
73
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
71
74
|
//#endregion
|
|
72
75
|
export { ComponentToken, TreeSharedToken, TreeToken, _default as default, genBaseStyle, genTreeStyle, initComponentToken, prepareComponentToken };
|
package/dist/tree/style/index.js
CHANGED
|
@@ -43,7 +43,7 @@ function genBaseStyle(prefixCls, token) {
|
|
|
43
43
|
const { treeCls, treeNodeCls, treeNodePadding, titleHeight, indentSize, switcherSize, motionDurationMid, nodeSelectedBg, nodeHoverBg, colorTextQuaternary, controlItemBgActiveDisabled } = token;
|
|
44
44
|
return { [treeCls]: {
|
|
45
45
|
...resetComponent(token),
|
|
46
|
-
["--
|
|
46
|
+
["--vc-virtual-list-scrollbar-bg"]: token.colorSplit,
|
|
47
47
|
background: token.colorBgContainer,
|
|
48
48
|
borderRadius: token.borderRadius,
|
|
49
49
|
transition: `background-color ${token.motionDurationSlow}`,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
2
3
|
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
3
4
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
5
|
import useToken from "../theme/useToken.js";
|
|
5
6
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
6
|
-
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
7
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
7
8
|
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
8
9
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
9
10
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
10
11
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
12
|
+
import { useLocaleGetter } from "../locale/useLocale.js";
|
|
11
13
|
import genPurePanel from "../_util/PurePanel.js";
|
|
12
14
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
13
15
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
14
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
15
16
|
import useVariant from "../form/hooks/useVariant.js";
|
|
16
17
|
import mergedBuiltinPlacements from "../select/mergedBuiltinPlacements.js";
|
|
17
18
|
import style_default from "../select/style/index.js";
|
|
@@ -71,7 +72,8 @@ const omitKeys = [
|
|
|
71
72
|
"classes"
|
|
72
73
|
];
|
|
73
74
|
const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expose, emit, attrs }) => {
|
|
74
|
-
const { prefixCls: treeSelectPrefixCls, getPopupContainer: getContextPopupContainer, direction, styles: contextStyles, classes: contextClassNames, switcherIcon, virtual, getPrefixCls, rootPrefixCls } = useComponentBaseConfig("treeSelect", props, ["switcherIcon"], "tree-select");
|
|
75
|
+
const { prefixCls: treeSelectPrefixCls, getPopupContainer: getContextPopupContainer, direction, class: contextClassName, style: contextStyle, styles: contextStyles, classes: contextClassNames, switcherIcon, virtual, getPrefixCls, rootPrefixCls } = useComponentBaseConfig("treeSelect", props, ["switcherIcon"], "tree-select");
|
|
76
|
+
const getGlobalLocale = useLocaleGetter("global");
|
|
75
77
|
const configCtx = useConfig();
|
|
76
78
|
const { prefixCls: customizePrefixCls, variant: customVariant, size: customizeSize, disabled: customDisabled, status: customStatus, classes, styles } = toPropsRefs(props, "prefixCls", "variant", "size", "disabled", "status", "classes", "styles");
|
|
77
79
|
const bordered = computed(() => props?.bordered ?? true);
|
|
@@ -114,7 +116,8 @@ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expo
|
|
|
114
116
|
status: mergedStatus.value,
|
|
115
117
|
variant: variant.value
|
|
116
118
|
}));
|
|
117
|
-
const
|
|
119
|
+
const contextStyleRoot = useSemanticRootStyle(contextStyle);
|
|
120
|
+
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps), computed(() => {
|
|
118
121
|
return { popup: { _default: "root" } };
|
|
119
122
|
}));
|
|
120
123
|
const mergedOnOpenChange = (open) => {
|
|
@@ -142,7 +145,7 @@ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expo
|
|
|
142
145
|
const { popupClassName, dropdownClassName, rootClass, popupRender, dropdownRender, popupMatchSelectWidth, dropdownMatchSelectWidth, treeCheckable, multiple, allowClear, treeLine, listHeight, builtinPlacements, switcherIcon: customSwitcherIcon, treeIcon, getPopupContainer, choiceTransitionName, transitionName, treeExpandAction, showCheckedStrategy, treeCheckStrictly } = props;
|
|
143
146
|
const restProps = omit(props, omitKeys);
|
|
144
147
|
const treeTitleRender = slots?.treeTitleRender ?? props.treeTitleRender;
|
|
145
|
-
const mergedPopupClassName = clsx(popupClassName || dropdownClassName, `${treeSelectPrefixCls.value}-dropdown`, { [`${treeSelectPrefixCls.value}-dropdown-rtl`]: direction.value === "rtl" }, rootClass, mergedClassNames.value.
|
|
148
|
+
const mergedPopupClassName = clsx(popupClassName || dropdownClassName, `${treeSelectPrefixCls.value}-dropdown`, { [`${treeSelectPrefixCls.value}-dropdown-rtl`]: direction.value === "rtl" }, rootClass, mergedClassNames.value.popup?.root, cssVarCls.value, rootCls.value, treeSelectRootCls.value, hashId.value);
|
|
146
149
|
const { style, className, restAttrs } = getAttrStyleAndClass(attrs);
|
|
147
150
|
const mergedPopupRender = usePopupRender(popupRender || dropdownRender);
|
|
148
151
|
const customSuffixIcon = getSlotPropsFnRun(slots, props, "suffixIcon", false);
|
|
@@ -160,11 +163,15 @@ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expo
|
|
|
160
163
|
prefixCls: prefixCls.value,
|
|
161
164
|
componentName: "TreeSelect"
|
|
162
165
|
});
|
|
163
|
-
const mergedAllowClear = allowClear
|
|
166
|
+
const mergedAllowClear = allowClear ? {
|
|
167
|
+
clearIcon,
|
|
168
|
+
label: getGlobalLocale().clear,
|
|
169
|
+
...typeof allowClear === "object" ? allowClear : {}
|
|
170
|
+
} : allowClear;
|
|
164
171
|
const notFoundContent = getSlotPropsFnRun(slots, props, "notFoundContent", false);
|
|
165
172
|
let mergedNotFound;
|
|
166
173
|
if (notFoundContent !== void 0) mergedNotFound = notFoundContent;
|
|
167
|
-
else mergedNotFound = configCtx?.value?.renderEmpty?.("
|
|
174
|
+
else mergedNotFound = configCtx?.value?.renderEmpty?.("TreeSelect") || createVNode(DefaultRenderEmpty, { "componentName": "TreeSelect" }, null);
|
|
168
175
|
const onAttrs = {
|
|
169
176
|
onFocus(e) {
|
|
170
177
|
emit("focus", e);
|
|
@@ -211,7 +218,7 @@ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expo
|
|
|
211
218
|
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
212
219
|
[`${prefixCls.value}-${variant.value}`]: enableVariantCls.value,
|
|
213
220
|
[`${prefixCls.value}-in-form-item`]: isFormItemInput
|
|
214
|
-
}, getStatusClassNames(prefixCls.value, mergedStatus.value, hasFeedback), compactItemClassnames.value, className, rootClass, mergedClassNames?.value?.root, cssVarCls.value, rootCls.value, treeSelectRootCls.value, hashId.value);
|
|
221
|
+
}, getStatusClassNames(prefixCls.value, mergedStatus.value, hasFeedback), compactItemClassnames.value, contextClassName.value, className, rootClass, mergedClassNames?.value?.root, cssVarCls.value, rootCls.value, treeSelectRootCls.value, hashId.value);
|
|
215
222
|
const mergedSwitcherIcon = slots?.switcherIcon ?? customSwitcherIcon ?? switcherIcon.value;
|
|
216
223
|
const renderSwitcherIcon = (nodeProps) => createVNode(SwitcherIconCom, {
|
|
217
224
|
"prefixCls": treePrefixCls.value,
|
|
@@ -252,7 +259,6 @@ const InternalTreeSelect = /* @__PURE__ */ defineComponent((props, { slots, expo
|
|
|
252
259
|
"treeMotion": null,
|
|
253
260
|
"popupClassName": mergedPopupClassName,
|
|
254
261
|
"popupStyle": {
|
|
255
|
-
...mergedStyles.value.root,
|
|
256
262
|
...mergedStyles.value.popup?.root,
|
|
257
263
|
zIndex: zIndex.value
|
|
258
264
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TreeSharedToken } from "../../tree/style/index.js";
|
|
2
2
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
3
|
import "../../theme/internal.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ref } from "vue";
|
|
5
5
|
//#region src/tree-select/style/index.d.ts
|
|
6
6
|
interface ComponentToken extends TreeSharedToken {}
|
|
7
7
|
declare const prepareComponentToken: GetDefaultToken<'TreeSelect'>;
|
|
8
|
-
declare function useTreeSelectStyle(prefixCls:
|
|
8
|
+
declare function useTreeSelectStyle(prefixCls: Ref<string>, treePrefixCls: Ref<string>, rootCls: Ref<string>): readonly [Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ComponentToken, useTreeSelectStyle as default, prepareComponentToken };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useComponentBaseConfig } from "../../config-provider/context.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
3
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../../_util/hooks/useMergeSemantic.js";
|
|
3
4
|
import { toPropsRefs as toPropsRefs$1 } from "../../_util/tools.js";
|
|
4
5
|
import InternalTooltip from "../../tooltip/index.js";
|
|
@@ -22,6 +23,8 @@ import useDelayState from "@v-c/util/dist/hooks/useDelayState";
|
|
|
22
23
|
import ResizeObserver from "@v-c/resize-observer";
|
|
23
24
|
//#region src/typography/Base/index.tsx
|
|
24
25
|
const ELLIPSIS_STR = "...";
|
|
26
|
+
const DEFAULT_SHIMMER_DURATION = 1;
|
|
27
|
+
const DEFAULT_SHIMMER_CONFIG = { duration: DEFAULT_SHIMMER_DURATION };
|
|
25
28
|
const DECORATION_PROPS = [
|
|
26
29
|
"delete",
|
|
27
30
|
"mark",
|
|
@@ -54,7 +57,7 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
54
57
|
return val;
|
|
55
58
|
});
|
|
56
59
|
const editIconRef = shallowRef();
|
|
57
|
-
const { prefixCls, direction: contextDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("typography", props);
|
|
60
|
+
const { prefixCls, rootPrefixCls, direction: contextDirection, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("typography", props);
|
|
58
61
|
const mergedDirection = computed(() => props.direction ?? contextDirection.value);
|
|
59
62
|
const { classes, styles } = toPropsRefs$1(props, "classes", "styles");
|
|
60
63
|
const mergedProps = computed(() => {
|
|
@@ -97,6 +100,7 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
97
100
|
triggerEdit(false);
|
|
98
101
|
};
|
|
99
102
|
const [enableCopy, copyConfig] = useMergedConfig(computed(() => props.copyable));
|
|
103
|
+
const [enableShimmer, shimmerConfig] = useMergedConfig(computed(() => props.shimmer), DEFAULT_SHIMMER_CONFIG);
|
|
100
104
|
const childrenNodes = shallowRef([]);
|
|
101
105
|
const { copied, copyLoading, onClick: onCopyClick } = useCopyClick({
|
|
102
106
|
copyConfig,
|
|
@@ -240,7 +244,7 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
240
244
|
"aria-label": ariaLabel,
|
|
241
245
|
"tabindex": tabIndex,
|
|
242
246
|
"style": mergedStyles.value.action
|
|
243
|
-
}, [icon || createVNode(EditOutlined,
|
|
247
|
+
}, [icon || createVNode(EditOutlined, null, null)])] }) : null;
|
|
244
248
|
};
|
|
245
249
|
const renderCopy = () => {
|
|
246
250
|
if (!enableCopy.value) return null;
|
|
@@ -281,6 +285,7 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
281
285
|
const componentCls = computed(() => classNames({
|
|
282
286
|
[`${prefixCls.value}-${props.type}`]: props.type,
|
|
283
287
|
[`${prefixCls.value}-disabled`]: props.disabled,
|
|
288
|
+
[`${prefixCls.value}-shimmer`]: enableShimmer.value && !props.disabled,
|
|
284
289
|
[`${prefixCls.value}-ellipsis`]: enableEllipsis.value,
|
|
285
290
|
[`${prefixCls.value}-ellipsis-single-line`]: cssTextOverflow.value,
|
|
286
291
|
[`${prefixCls.value}-ellipsis-multiple-line`]: cssLineClamp.value,
|
|
@@ -296,6 +301,15 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
296
301
|
};
|
|
297
302
|
const mergedClassName = classNames(componentCls.value, attrClass);
|
|
298
303
|
const mergedStyle = [
|
|
304
|
+
enableShimmer.value ? (() => {
|
|
305
|
+
const [varName] = genCssVar(rootPrefixCls.value, "typography");
|
|
306
|
+
const duration = shimmerConfig.value?.duration;
|
|
307
|
+
const [motionTime = DEFAULT_SHIMMER_DURATION, waitTime = 1] = Array.isArray(duration) ? duration : [duration];
|
|
308
|
+
return {
|
|
309
|
+
[varName("shimmer-motion-time")]: motionTime,
|
|
310
|
+
[varName("shimmer-wait-time")]: waitTime
|
|
311
|
+
};
|
|
312
|
+
})() : null,
|
|
299
313
|
mergedStyles.value.root,
|
|
300
314
|
cssLineClamp.value ? { WebkitLineClamp: rows.value } : null,
|
|
301
315
|
attrStyle
|
|
@@ -337,6 +351,8 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
337
351
|
"onClick": clickHandler,
|
|
338
352
|
"title": props.title,
|
|
339
353
|
"aria-label": topAriaLabel.value,
|
|
354
|
+
"aria-busy": enableShimmer.value ? !props.disabled : void 0,
|
|
355
|
+
"aria-disabled": enableShimmer.value && props.disabled ? true : void 0,
|
|
340
356
|
"rootClass": props.rootClass
|
|
341
357
|
}, restAttrs), { default: () => [createVNode(Ellipsis, mergeProps({
|
|
342
358
|
"enableMeasure": mergedEnableEllipsis.value && !cssEllipsis.value,
|
|
@@ -396,6 +412,11 @@ const Base = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
396
412
|
required: false,
|
|
397
413
|
default: void 0
|
|
398
414
|
},
|
|
415
|
+
shimmer: {
|
|
416
|
+
type: [Boolean, Object],
|
|
417
|
+
required: false,
|
|
418
|
+
default: void 0
|
|
419
|
+
},
|
|
399
420
|
actions: {
|
|
400
421
|
type: Object,
|
|
401
422
|
required: false
|
package/dist/typography/Link.js
CHANGED
|
@@ -76,6 +76,11 @@ const Link = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
76
76
|
required: false,
|
|
77
77
|
default: void 0
|
|
78
78
|
},
|
|
79
|
+
shimmer: {
|
|
80
|
+
type: [Boolean, Object],
|
|
81
|
+
required: false,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
79
84
|
actions: {
|
|
80
85
|
type: Object,
|
|
81
86
|
required: false
|
|
@@ -57,6 +57,11 @@ const Paragraph = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }
|
|
|
57
57
|
required: false,
|
|
58
58
|
default: void 0
|
|
59
59
|
},
|
|
60
|
+
shimmer: {
|
|
61
|
+
type: [Boolean, Object],
|
|
62
|
+
required: false,
|
|
63
|
+
default: void 0
|
|
64
|
+
},
|
|
60
65
|
actions: {
|
|
61
66
|
type: Object,
|
|
62
67
|
required: false
|
package/dist/typography/Text.js
CHANGED
|
@@ -73,6 +73,11 @@ const Text = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
73
73
|
required: false,
|
|
74
74
|
default: void 0
|
|
75
75
|
},
|
|
76
|
+
shimmer: {
|
|
77
|
+
type: [Boolean, Object],
|
|
78
|
+
required: false,
|
|
79
|
+
default: void 0
|
|
80
|
+
},
|
|
76
81
|
actions: {
|
|
77
82
|
type: Object,
|
|
78
83
|
required: false
|
package/dist/typography/Title.js
CHANGED
|
@@ -77,6 +77,11 @@ const Title = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
77
77
|
required: false,
|
|
78
78
|
default: void 0
|
|
79
79
|
},
|
|
80
|
+
shimmer: {
|
|
81
|
+
type: [Boolean, Object],
|
|
82
|
+
required: false,
|
|
83
|
+
default: void 0
|
|
84
|
+
},
|
|
80
85
|
actions: {
|
|
81
86
|
type: Object,
|
|
82
87
|
required: false
|
|
@@ -5,7 +5,7 @@ function useMergedConfig(propConfig, templateConfig) {
|
|
|
5
5
|
return [support, computed(() => {
|
|
6
6
|
const current = unref(propConfig);
|
|
7
7
|
return {
|
|
8
|
-
...templateConfig,
|
|
8
|
+
...support.value ? templateConfig : null,
|
|
9
9
|
...support.value && typeof current === "object" ? current : null
|
|
10
10
|
};
|
|
11
11
|
})];
|
|
@@ -63,6 +63,9 @@ interface TypographySemanticStyles {
|
|
|
63
63
|
}
|
|
64
64
|
type TypographyClassNamesType = SemanticClassNamesType<BlockProps, TypographySemanticClassNames>;
|
|
65
65
|
type TypographyStylesType = SemanticStylesType<BlockProps, TypographySemanticStyles>;
|
|
66
|
+
interface ShimmerConfig {
|
|
67
|
+
duration?: number | [motionTime: number, waitTime: number];
|
|
68
|
+
}
|
|
66
69
|
interface BlockProps extends ComponentBaseProps {
|
|
67
70
|
title?: string;
|
|
68
71
|
editable?: boolean | EditConfig;
|
|
@@ -70,6 +73,10 @@ interface BlockProps extends ComponentBaseProps {
|
|
|
70
73
|
type?: BaseType;
|
|
71
74
|
disabled?: boolean;
|
|
72
75
|
ellipsis?: boolean | EllipsisConfig;
|
|
76
|
+
/**
|
|
77
|
+
* @since 1.7.0
|
|
78
|
+
*/
|
|
79
|
+
shimmer?: boolean | ShimmerConfig;
|
|
73
80
|
/**
|
|
74
81
|
* @since 1.3.0
|
|
75
82
|
*/
|
|
@@ -110,4 +117,4 @@ interface TypographyBaseProps extends ComponentBaseProps {
|
|
|
110
117
|
title?: string;
|
|
111
118
|
}
|
|
112
119
|
//#endregion
|
|
113
|
-
export { ActionsConfig, BaseType, BlockProps, CopyConfig, EditConfig, EllipsisConfig, TypographyBaseEmits, TypographyBaseProps, TypographyClassNamesType, TypographySemanticClassNames, TypographySemanticStyles, TypographySlots, TypographyStylesType };
|
|
120
|
+
export { ActionsConfig, BaseType, BlockProps, CopyConfig, EditConfig, EllipsisConfig, ShimmerConfig, TypographyBaseEmits, TypographyBaseProps, TypographyClassNamesType, TypographySemanticClassNames, TypographySemanticStyles, TypographySlots, TypographyStylesType };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/typography/style/index.d.ts
|
|
4
8
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -16,6 +20,6 @@ interface ComponentToken {
|
|
|
16
20
|
}
|
|
17
21
|
type TypographyToken = FullToken<'Typography'>;
|
|
18
22
|
declare const prepareComponentToken: GetDefaultToken<'Typography'>;
|
|
19
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
23
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
20
24
|
//#endregion
|
|
21
25
|
export { ComponentToken, TypographyToken, _default as default, prepareComponentToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { operationUnit } from "../../style/index.js";
|
|
2
2
|
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
3
|
-
import { getCopyableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getTitleStyles } from "./mixins.js";
|
|
3
|
+
import { getCopyableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getShimmerStyles, getTitleStyles } from "./mixins.js";
|
|
4
4
|
//#region src/typography/style/index.ts
|
|
5
5
|
const genTypographyStyle = (token) => {
|
|
6
6
|
const { componentCls, titleMarginTop } = token;
|
|
@@ -64,6 +64,7 @@ const genTypographyStyle = (token) => {
|
|
|
64
64
|
...getEditableStyles(token),
|
|
65
65
|
...getCopyableStyles(token),
|
|
66
66
|
...getEllipsisStyles(),
|
|
67
|
+
[`&${componentCls}-shimmer`]: getShimmerStyles(token),
|
|
67
68
|
"&-rtl": { direction: "rtl" }
|
|
68
69
|
} };
|
|
69
70
|
};
|
|
@@ -9,5 +9,6 @@ declare const getResetStyles: GenerateStyle<TypographyToken, CSSObject>;
|
|
|
9
9
|
declare const getEditableStyles: GenerateStyle<TypographyToken, CSSObject>;
|
|
10
10
|
declare const getCopyableStyles: GenerateStyle<TypographyToken, CSSObject>;
|
|
11
11
|
declare function getEllipsisStyles(): CSSObject;
|
|
12
|
+
declare function getShimmerStyles(token: TypographyToken): CSSObject;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { getCopyableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getTitleStyles };
|
|
14
|
+
export { getCopyableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getShimmerStyles, getTitleStyles };
|