antdv-next 1.6.0 → 1.7.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/dist/_util/ContextIsolator.js +12 -3
- package/dist/_util/hooks/useAllowClear.d.ts +22 -6
- package/dist/_util/hooks/useAllowClear.js +24 -6
- package/dist/_util/hooks/useClosable.js +1 -1
- package/dist/_util/tools.d.ts +3 -1
- package/dist/_util/tools.js +6 -1
- package/dist/_util/vueNode.d.ts +17 -3
- package/dist/_util/vueNode.js +17 -1
- package/dist/affix/index.js +12 -9
- package/dist/alert/Alert.js +4 -1
- package/dist/alert/style/index.d.ts +3 -3
- package/dist/alert/style/index.js +3 -3
- package/dist/anchor/Anchor.js +11 -6
- package/dist/anchor/style/index.js +2 -3
- package/dist/antd-with-locales.esm.js +16276 -17343
- package/dist/antd-with-locales.js +81 -88
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +14015 -15728
- package/dist/antd.js +82 -89
- package/dist/auto-complete/index.js +1 -0
- package/dist/avatar/Avatar.js +3 -5
- package/dist/avatar/AvatarGroup.js +3 -5
- 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/breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/breadcrumb/index.d.ts +8 -1
- package/dist/calendar/generateCalendar.d.ts +10 -10
- package/dist/calendar/index.d.ts +1 -1
- package/dist/card/index.d.ts +8 -1
- package/dist/card/style/index.js +5 -9
- package/dist/cascader/Panel.js +3 -3
- package/dist/cascader/hooks/useIcons.js +3 -2
- package/dist/cascader/index.d.ts +2 -0
- package/dist/cascader/index.js +12 -5
- package/dist/checkbox/Checkbox.js +6 -4
- package/dist/checkbox/Group.d.ts +19 -1
- package/dist/checkbox/Group.js +38 -9
- package/dist/checkbox/GroupContext.d.ts +3 -0
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/color-picker/ColorPicker.js +1 -1
- package/dist/color-picker/style/input.js +7 -12
- package/dist/components.d.ts +24 -24
- package/dist/components.js +1 -2
- package/dist/config-provider/context.d.ts +3 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +24 -6
- package/dist/date-picker/generatePicker/generateSinglePicker.js +24 -6
- package/dist/date-picker/generatePicker/interface.d.ts +21 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +1 -14
- 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 +8 -2
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/descriptions/style/index.js +11 -13
- package/dist/divider/style/index.js +1 -1
- package/dist/drawer/DrawerPanel.js +1 -1
- package/dist/dropdown/dropdown.d.ts +2 -0
- package/dist/dropdown/dropdown.js +9 -2
- package/dist/dropdown/style/index.js +1 -7
- package/dist/empty/index.js +2 -1
- package/dist/float-button/BackTop.js +2 -1
- package/dist/form/ErrorList.js +1 -1
- package/dist/form/Form.js +9 -8
- package/dist/form/FormItem/ItemHolder.js +1 -1
- package/dist/form/FormItem/index.js +11 -9
- package/dist/form/FormItemInput.js +1 -1
- package/dist/form/FormItemLabel.js +2 -2
- package/dist/form/context.d.ts +2 -2
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/grid/hooks/useBreakpoint.js +12 -6
- package/dist/image/PreviewGroup.d.ts +9 -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 +7 -7
- package/dist/image/index.d.ts +3 -3
- package/dist/index.d.ts +26 -24
- package/dist/index.js +1 -2
- 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.js +3 -16
- package/dist/input-number/index.d.ts +3 -6
- package/dist/input-number/index.js +8 -3
- package/dist/input-number/style/index.js +1 -5
- package/dist/listy/index.d.ts +1 -1
- package/dist/listy/index.js +9 -7
- package/dist/listy/interface.d.ts +29 -5
- package/dist/listy/style/index.js +5 -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 +6 -1
- 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/mentions/index.d.ts +2 -3
- package/dist/mentions/index.js +9 -4
- package/dist/mentions/style/index.js +1 -1
- package/dist/menu/MenuContext.d.ts +2 -0
- package/dist/menu/MenuItem.js +23 -6
- 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.js +2 -1
- package/dist/modal/ConfirmDialog.js +14 -7
- package/dist/modal/PurePanel.js +2 -2
- package/dist/modal/style/confirm.js +1 -1
- package/dist/notification/PurePanel.js +7 -12
- package/dist/notification/interface.d.ts +8 -0
- package/dist/notification/style/index.d.ts +3 -0
- package/dist/notification/style/index.js +4 -5
- 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.js +12 -4
- package/dist/pagination/useShowSizeChanger.d.ts +3 -0
- package/dist/pagination/useShowSizeChanger.js +1 -1
- package/dist/popconfirm/index.js +6 -5
- package/dist/popconfirm/style/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/popover/style/index.js +2 -2
- package/dist/progress/Circle.js +0 -8
- package/dist/progress/Line.js +3 -10
- package/dist/progress/Steps.js +0 -8
- package/dist/progress/progress.js +3 -15
- package/dist/qrcode/QrcodeStatus.js +2 -1
- package/dist/qrcode/index.js +4 -4
- 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/result/index.js +3 -3
- package/dist/result/noFound.js +120 -140
- package/dist/result/serverError.js +132 -147
- package/dist/result/unauthorized.js +115 -129
- package/dist/segmented/index.js +1 -1
- package/dist/select/index.js +10 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +1 -1
- package/dist/select/useIcons.d.ts +6 -2
- package/dist/select/usePopupRender.js +4 -1
- package/dist/slider/index.d.ts +6 -4
- package/dist/slider/index.js +7 -5
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/Item.d.ts +1 -0
- package/dist/space/Item.js +6 -2
- package/dist/space/index.js +1 -0
- package/dist/spin/Indicator/index.js +5 -1
- package/dist/splitter/SplitBar.js +9 -3
- package/dist/splitter/Splitter.js +8 -2
- package/dist/splitter/interface.d.ts +6 -1
- package/dist/statistic/Statistic.d.ts +3 -0
- package/dist/statistic/Statistic.js +2 -1
- package/dist/steps/index.js +9 -7
- 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/index.js +8 -2
- package/dist/table/ExpandIcon.d.ts +9 -4
- package/dist/table/ExpandIcon.js +42 -20
- package/dist/table/InternalTable.js +41 -20
- package/dist/table/hooks/useLazyKVMap.js +1 -1
- package/dist/table/hooks/useSelection.js +54 -9
- package/dist/table/index.d.ts +2 -2
- package/dist/table/interface.d.ts +8 -0
- package/dist/table/style/index.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.js +3 -7
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/time-picker/index.d.ts +10 -9
- package/dist/time-picker/index.js +54 -83
- package/dist/timeline/Timeline.js +1 -1
- package/dist/tooltip/style/index.js +1 -2
- package/dist/tour/panelRender.js +3 -2
- package/dist/transfer/Section.js +2 -1
- package/dist/transfer/Transfer.js +1 -1
- package/dist/tree/DirectoryTree.d.ts +19 -7
- package/dist/tree/Tree.d.ts +73 -58
- package/dist/tree/index.d.ts +8 -5
- package/dist/tree/index.js +4 -3
- package/dist/tree/style/index.js +1 -1
- package/dist/tree-select/index.js +14 -8
- 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.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/utils.js +8 -3
- package/dist/version/token-meta.json +1 -1
- package/dist/version/token.json +1 -1
- package/dist/watermark/index.js +1 -1
- package/package.json +24 -24
- package/web-tags.json +79 -15
- package/web-types.json +196 -24
- package/dist/_util/getAllowClear.d.ts +0 -6
- package/dist/_util/getAllowClear.js +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import Col, { ColProps, ColSize } from "./grid/col.js";
|
|
|
4
4
|
import Row, { RowProps } from "./grid/row.js";
|
|
5
5
|
import { useBreakpoint } from "./grid/index.js";
|
|
6
6
|
import UniqueProvider from "./tooltip/UniqueProvider/index.js";
|
|
7
|
-
import _default$
|
|
7
|
+
import _default$17, { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots } from "./tooltip/index.js";
|
|
8
8
|
import { Rule, RuleObject, RuleRender, RuleType } from "./form/types.js";
|
|
9
9
|
import InternalForm, { FormEmits, FormInstance, FormProps, FormSlots } from "./form/Form.js";
|
|
10
10
|
import InternalFormItem, { FormItemEmits, FormItemProps, FormItemSlots } from "./form/FormItem/index.js";
|
|
11
11
|
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
12
|
-
import _default$
|
|
13
|
-
import _default$
|
|
14
|
-
import _default$
|
|
12
|
+
import _default$16, { TimePickerEmits, TimePickerLocale, TimePickerProps, TimePickerSlots, TimeRangePicker, TimeRangePickerEmits, TimeRangePickerProps, TimeRangePickerSlots } from "./time-picker/index.js";
|
|
13
|
+
import _default$7, { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps } from "./date-picker/index.js";
|
|
14
|
+
import _default$8, { EmptyProps, EmptyRef, EmptySlots } from "./empty/index.js";
|
|
15
15
|
import { ModalEmits, ModalSlots } from "./modal/interface.js";
|
|
16
16
|
import Select, { SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectSlots, SelectValue } from "./select/index.js";
|
|
17
17
|
import { PaginationClassNamesType, PaginationComponents, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationSizeChangerProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
@@ -19,7 +19,8 @@ import Pagination from "./pagination/Pagination.js";
|
|
|
19
19
|
import { PaginationProps } from "./pagination/index.js";
|
|
20
20
|
import Popover, { PopoverEmits, PopoverProps, PopoverRef, PopoverSlots } from "./popover/index.js";
|
|
21
21
|
import Popconfirm, { PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./popconfirm/index.js";
|
|
22
|
-
import
|
|
22
|
+
import { SplitterEmits, SplitterSlots } from "./splitter/interface.js";
|
|
23
|
+
import _default$13, { SpinProps, SpinRef, SpinSlots } from "./spin/index.js";
|
|
23
24
|
import InternalCheckbox, { CheckboxEmits, CheckboxProps, CheckboxSlots } from "./checkbox/Checkbox.js";
|
|
24
25
|
import CheckboxGroup, { CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
25
26
|
import { MenuItemProps } from "./menu/MenuItem.js";
|
|
@@ -27,14 +28,14 @@ import { MenuEmits, MenuSlots } from "./menu/menu.js";
|
|
|
27
28
|
import MenuItemGroup, { MenuItemGroupProps } from "./menu/MenuItemGroup.js";
|
|
28
29
|
import SubMenu, { SubMenuProps } from "./menu/SubMenu.js";
|
|
29
30
|
import MenuDivider from "./menu/MenuDivider.js";
|
|
30
|
-
import _default$
|
|
31
|
+
import _default$10, { MenuInfo, MenuItem, MenuItemType, MenuProps, MenuRef, SelectInfo } from "./menu/index.js";
|
|
31
32
|
import { DropdownArrowOptions, DropdownEmits, DropdownProps, DropdownSlots } from "./dropdown/dropdown.js";
|
|
32
33
|
import Dropdown from "./dropdown/index.js";
|
|
33
|
-
import { ColumnType, ColumnsType, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
34
|
+
import { ColumnType, ColumnsType, FilterDropdownProps, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
34
35
|
import { TableClassNamesType, TableEmits, TableProps, TableSlots, TableStylesType } from "./table/InternalTable.js";
|
|
35
36
|
import Column from "./table/Column.js";
|
|
36
37
|
import ColumnGroup from "./table/ColumnGroup.js";
|
|
37
|
-
import _default$
|
|
38
|
+
import _default$15, { DataIndex, Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
38
39
|
import { TourEmits, TourLocale, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
39
40
|
import Tour, { TourProps, TourStepItem } from "./tour/index.js";
|
|
40
41
|
import { KeyWise, KeyWiseTransferItem, ListStyle, PaginationType, RenderResult, RenderResultObject, SelectAllLabel, TransferClassNamesType, TransferCustomListBodyProps, TransferDirection, TransferEmits, TransferItem, TransferKey, TransferListBodyProps, TransferListProps, TransferLocale, TransferRender, TransferSearchOption, TransferSlots, TransferStylesType } from "./transfer/interface.js";
|
|
@@ -45,21 +46,21 @@ import InternalTransfer, { TransferProps } from "./transfer/index.js";
|
|
|
45
46
|
import Progress, { ProgressProps } from "./progress/progress.js";
|
|
46
47
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadSlots } from "./upload/interface.js";
|
|
47
48
|
import { useExportConfig } from "./config-provider/hooks/useConfig.js";
|
|
48
|
-
import _default$
|
|
49
|
+
import _default$6, { ConfigProviderProps } from "./config-provider/index.js";
|
|
49
50
|
import Alert, { AlertEmits, AlertProps, AlertSemanticType, AlertSlots } from "./alert/Alert.js";
|
|
50
51
|
import { Affix, AffixEmits, AffixProps, AffixRef } from "./affix/index.js";
|
|
51
52
|
import { AnchorLinkProps } from "./anchor/AnchorLink.js";
|
|
52
53
|
import Anchor, { AnchorEmits, AnchorProps, AnchorSlots } from "./anchor/Anchor.js";
|
|
53
54
|
import { RibbonProps, RibbonRef } from "./badge/Ribbon.js";
|
|
54
55
|
import Badge, { BadgeProps, BadgeRibbon, BadgeSlots } from "./badge/index.js";
|
|
55
|
-
import _default$
|
|
56
|
-
import _default$
|
|
57
|
-
import
|
|
56
|
+
import _default$2, { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
57
|
+
import _default$3 from "./breadcrumb/BreadcrumbSeparator.js";
|
|
58
|
+
import { BreadcrumbEmits, BreadcrumbProps, BreadcrumbRef, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
58
59
|
import { CalendarMode, CalendarProps, CalendarRef } from "./calendar/generateCalendar.js";
|
|
59
|
-
import _default$
|
|
60
|
+
import _default$4 from "./calendar/index.js";
|
|
60
61
|
import TabPane, { TabPaneProps } from "./tabs/TabPane.js";
|
|
61
62
|
import Tabs, { TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
62
|
-
import
|
|
63
|
+
import { CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
63
64
|
import CardMeta, { CardMetaProps, CardMetaRef } from "./card/CardMeta.js";
|
|
64
65
|
import CascaderPanel, { CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots } from "./cascader/Panel.js";
|
|
65
66
|
import Cascader, { CascaderEmits, CascaderProps, CascaderSlots } from "./cascader/index.js";
|
|
@@ -93,7 +94,7 @@ import staticMethods$1 from "./notification/index.js";
|
|
|
93
94
|
import { QRCodeEmits } from "./qrcode/interface.js";
|
|
94
95
|
import QRCode, { QRCodeProps, QRCodeRef } from "./qrcode/index.js";
|
|
95
96
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupSlots, RadioSlots } from "./radio/interface.js";
|
|
96
|
-
import _default$
|
|
97
|
+
import _default$12, { ResultProps, ResultRef, ResultSlots, ResultStatusType } from "./result/index.js";
|
|
97
98
|
import Segmented, { SegmentedEmits, SegmentedOptions, SegmentedProps, SegmentedSlots } from "./segmented/index.js";
|
|
98
99
|
import SkeletonAvatar from "./skeleton/Avatar.js";
|
|
99
100
|
import SkeletonButton from "./skeleton/Button.js";
|
|
@@ -104,11 +105,10 @@ import SkeletonWithSubComponents, { SkeletonProps, SkeletonRef } from "./skeleto
|
|
|
104
105
|
import Slider, { SliderEmits, SliderProps, SliderRef } from "./slider/index.js";
|
|
105
106
|
import { SpaceCompactProps, SpaceCompactRef } from "./space/Compact.js";
|
|
106
107
|
import Space, { SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } from "./space/index.js";
|
|
107
|
-
import { SplitterEmits, SplitterSlots } from "./splitter/interface.js";
|
|
108
108
|
import Splitter, { SplitterRef } from "./splitter/Splitter.js";
|
|
109
109
|
import { SplitterPanel, SplitterProps } from "./splitter/index.js";
|
|
110
110
|
import { StatisticRef } from "./statistic/Statistic.js";
|
|
111
|
-
import _default$
|
|
111
|
+
import _default$14, { StatisticProps, StatisticTimer, StatisticTimerProps } from "./statistic/index.js";
|
|
112
112
|
import Steps, { StepItem, StepsEmits, StepsProps, StepsSlots } from "./steps/index.js";
|
|
113
113
|
import Switch, { SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
114
114
|
import CheckableTag, { CheckableTagProps } from "./tag/CheckableTag.js";
|
|
@@ -117,8 +117,8 @@ import Tag, { TagProps, TagSlots } from "./tag/index.js";
|
|
|
117
117
|
import Timeline, { TimelineItemType, TimelineProps } from "./timeline/Timeline.js";
|
|
118
118
|
import { TimelineItem, TimelineItemProps, TimelineItemSlots } from "./timeline/TimelineItem.js";
|
|
119
119
|
import { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeEmits, TreeProps, TreeSlots } from "./tree/Tree.js";
|
|
120
|
-
import
|
|
121
|
-
import Tree, { BasicDataNode, DataNode, TreeInstance, UseTreeConfig, useTree } from "./tree/index.js";
|
|
120
|
+
import { DirectoryTreeEmits, DirectoryTreeProps, DirectoryTreeSlots, ExpandAction } from "./tree/DirectoryTree.js";
|
|
121
|
+
import Tree, { BasicDataNode, DataNode, DirectoryTree, TreeInstance, UseTreeConfig, useTree } from "./tree/index.js";
|
|
122
122
|
import TreeSelect, { TreeSelectEmits, TreeSelectNode, TreeSelectProps, TreeSelectSlots } from "./tree-select/index.js";
|
|
123
123
|
import { BlockProps } from "./typography/interface.js";
|
|
124
124
|
import { ThemeConfig } from "./config-provider/context.js";
|
|
@@ -134,20 +134,22 @@ import AvatarGroup, { AvatarGroupProps, AvatarGroupRef } from "./avatar/AvatarGr
|
|
|
134
134
|
import Avatar from "./avatar/index.js";
|
|
135
135
|
import { BorderBeamColor, BorderBeamGradient } from "./border-beam/util.js";
|
|
136
136
|
import BorderBeam, { BorderBeamProps } from "./border-beam/BorderBeam.js";
|
|
137
|
+
import _default$1 from "./breadcrumb/index.js";
|
|
137
138
|
import CardGrid, { CardGridProps, CardGridRef } from "./card/CardGrid.js";
|
|
139
|
+
import _default$5 from "./card/index.js";
|
|
138
140
|
import Carousel, { CarouselEmits, CarouselProps, CarouselRef, CarouselSlots } from "./carousel/index.js";
|
|
139
141
|
import { FormHookInstance, useForm, useFormInstance } from "./form/hooks/useForm.js";
|
|
140
142
|
import { InputGroupProps } from "./input/Group.js";
|
|
141
143
|
import CompoundedInput, { InputGroup, InputOTP, InputPassword, InputSearch } from "./input/index.js";
|
|
142
144
|
import Layout, { BasicProps } from "./layout/layout.js";
|
|
143
145
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
144
|
-
import _default$
|
|
146
|
+
import _default$9 from "./masonry/index.js";
|
|
145
147
|
import Mentions, { MentionPlacement, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
|
|
146
148
|
import useMessage from "./message/useMessage.js";
|
|
147
149
|
import staticMethods from "./message/index.js";
|
|
148
|
-
import _default$
|
|
150
|
+
import _default$11, { ModalProps } from "./modal/index.js";
|
|
149
151
|
import { version as _version2 } from "./package.json.js";
|
|
150
|
-
import _default$
|
|
152
|
+
import _default$19 from "./theme/index.js";
|
|
151
153
|
import InternalRadio from "./radio/radio.js";
|
|
152
154
|
import { RadioButton, RadioGroup, RadioGroupProps, RadioOptionType, RadioProps } from "./radio/index.js";
|
|
153
155
|
import Rate, { RateEmits, RateProps } from "./rate/index.js";
|
|
@@ -166,6 +168,6 @@ import { StyleProvider } from "@antdv-next/cssinjs";
|
|
|
166
168
|
//#region src/index.d.ts
|
|
167
169
|
declare function setPrefix(newPrefix: string): void;
|
|
168
170
|
declare function install(app: App): void;
|
|
169
|
-
declare const _default$
|
|
171
|
+
declare const _default$18: Plugin;
|
|
170
172
|
//#endregion
|
|
171
|
-
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, Breadcrumb, type BreadcrumbEmits, _default$1 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$2 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$3 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$4 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$5 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$6 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$7 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$8 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$9 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$10 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$11 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$12 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$13 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$14 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$15 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkProps, type WatermarkRef, type WeekPickerProps, _default$16 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$17 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
|
173
|
+
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkProps, type WatermarkRef, type WeekPickerProps, _default$18 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$19 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
package/dist/index.js
CHANGED
|
@@ -90,8 +90,7 @@ import Steps from "./steps/index.js";
|
|
|
90
90
|
import Switch from "./switch/index.js";
|
|
91
91
|
import Column from "./table/Column.js";
|
|
92
92
|
import ColumnGroup from "./table/ColumnGroup.js";
|
|
93
|
-
import DirectoryTree from "./tree/
|
|
94
|
-
import Tree, { useTree } from "./tree/index.js";
|
|
93
|
+
import Tree, { DirectoryTree, useTree } from "./tree/index.js";
|
|
95
94
|
import InternalTable, { Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
96
95
|
import CheckableTag from "./tag/CheckableTag.js";
|
|
97
96
|
import CheckableTagGroup from "./tag/CheckableTagGroup.js";
|
package/dist/input/Group.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
+
import { useFormItemInputContext, useFormItemInputContextProvider } from "../form/context.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
4
|
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
|
-
import { useFormItemInputContext, useFormItemInputContextProvider } from "../form/context.js";
|
|
6
6
|
import style_default, { useSharedStyle } from "./style/index.js";
|
|
7
7
|
import { SpaceCompact } from "../space/index.js";
|
|
8
8
|
import { computed, createVNode, defineComponent, mergeProps } from "vue";
|
package/dist/input/Input.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
6
|
+
import { AllowClear } from "../_util/hooks/useAllowClear.js";
|
|
6
7
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
7
8
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
9
|
import { InputProps as InputProps$1, InputRef as InputRef$1 } from "@v-c/input";
|
|
@@ -44,7 +45,7 @@ interface BaseVcInputProps {
|
|
|
44
45
|
components?: InputProps$1['components'];
|
|
45
46
|
prefix?: VueNode;
|
|
46
47
|
suffix?: VueNode;
|
|
47
|
-
allowClear?:
|
|
48
|
+
allowClear?: AllowClear;
|
|
48
49
|
changeOnComposing?: InputProps$1['changeOnComposing'];
|
|
49
50
|
autoFocus?: boolean;
|
|
50
51
|
inputMode?: string;
|
package/dist/input/Input.js
CHANGED
|
@@ -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 { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
5
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
@@ -8,10 +9,9 @@ import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
|
8
9
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
10
11
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
11
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
12
12
|
import useVariant from "../form/hooks/useVariant.js";
|
|
13
13
|
import style_default, { useSharedStyle } from "./style/index.js";
|
|
14
|
-
import
|
|
14
|
+
import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
|
|
15
15
|
import useRemovePasswordTimeout from "./hooks/useRemovePasswordTimeout.js";
|
|
16
16
|
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
17
17
|
import { clsx } from "@v-c/util";
|
|
@@ -83,9 +83,12 @@ const InternalInput = /* @__PURE__ */ defineComponent((props, { slots, expose, e
|
|
|
83
83
|
const mergedStatus = computed(() => getMergedStatus(contextStatus.value, customStatus.value));
|
|
84
84
|
const [mergedVariant, enableVariantCls] = useVariant("input", customVariant, bordered);
|
|
85
85
|
const removePasswordTimeout = useRemovePasswordTimeout(inputRef, true);
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
const getClearLabel = useAllowClearLabel();
|
|
87
|
+
const mergedAllowClear = computed(() => useAllowClear({
|
|
88
|
+
allowClear: props.allowClear,
|
|
89
|
+
contextAllowClear: contextAllowClear.value,
|
|
90
|
+
defaultLabel: getClearLabel()
|
|
91
|
+
}));
|
|
89
92
|
const mergedAutoComplete = computed(() => props.autoComplete ?? props.autocomplete ?? contextAutoComplete.value ?? contextAutocomplete.value);
|
|
90
93
|
const mergedChangeOnComposing = computed(() => props.changeOnComposing ?? contextChangeOnComposing.value);
|
|
91
94
|
expose({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit } from "../../_util/type.js";
|
|
2
|
-
import { InputProps } from "../Input.js";
|
|
2
|
+
import { InputEmits, InputProps } from "../Input.js";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
//#region src/input/OTP/OTPInput.d.ts
|
|
5
5
|
interface OTPInputProps extends Omit<InputProps, 'onChange'> {
|
|
@@ -8,6 +8,7 @@ interface OTPInputProps extends Omit<InputProps, 'onChange'> {
|
|
|
8
8
|
value?: string;
|
|
9
9
|
onChange: (index: number, value: string) => void;
|
|
10
10
|
onActiveChange: (nextIndex: number) => void;
|
|
11
|
+
onFocus?: InputEmits['focus'];
|
|
11
12
|
mask?: boolean | string;
|
|
12
13
|
}
|
|
13
14
|
declare const OTPInput: import("vue").DefineSetupFnComponent<OTPInputProps, EmptyEmit, SlotsType<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import InternalInput from "../Input.js";
|
|
3
|
-
import { createVNode, defineComponent, mergeProps, shallowRef } from "vue";
|
|
3
|
+
import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
|
|
4
4
|
import { clsx } from "@v-c/util";
|
|
5
5
|
import raf from "@v-c/util/dist/raf";
|
|
6
6
|
import { omit } from "es-toolkit";
|
|
@@ -11,7 +11,7 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
11
11
|
expose({
|
|
12
12
|
focus: (...args) => inputRef.value?.focus?.(...args),
|
|
13
13
|
blur: () => inputRef.value?.blur?.(),
|
|
14
|
-
input: inputRef
|
|
14
|
+
input: computed(() => inputRef.value?.input ?? null)
|
|
15
15
|
});
|
|
16
16
|
const syncSelection = () => {
|
|
17
17
|
raf(() => {
|
|
@@ -22,6 +22,10 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
22
22
|
const handleChange = (e) => {
|
|
23
23
|
props.onChange(props.index, e?.target?.value ?? "");
|
|
24
24
|
};
|
|
25
|
+
const handleInternalFocus = (e) => {
|
|
26
|
+
props.onFocus?.(e);
|
|
27
|
+
syncSelection();
|
|
28
|
+
};
|
|
25
29
|
const handleKeyDown = (event) => {
|
|
26
30
|
const { key, ctrlKey, metaKey } = event;
|
|
27
31
|
if (key === "ArrowLeft") props.onActiveChange(props.index - 1);
|
|
@@ -36,6 +40,7 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
36
40
|
"index",
|
|
37
41
|
"onChange",
|
|
38
42
|
"onActiveChange",
|
|
43
|
+
"onFocus",
|
|
39
44
|
"mask"
|
|
40
45
|
]);
|
|
41
46
|
return () => createVNode("span", {
|
|
@@ -53,7 +58,7 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
53
58
|
"onChange": handleChange,
|
|
54
59
|
"htmlSize": 1,
|
|
55
60
|
"onKeydown": handleKeyDown,
|
|
56
|
-
"onFocus":
|
|
61
|
+
"onFocus": handleInternalFocus,
|
|
57
62
|
"onMousedown": () => syncSelection(),
|
|
58
63
|
"onMouseup": () => syncSelection(),
|
|
59
64
|
"aria-label": `OTP Input ${props.index + 1}`
|
|
@@ -80,6 +85,10 @@ const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
80
85
|
type: Function,
|
|
81
86
|
required: true
|
|
82
87
|
},
|
|
88
|
+
onFocus: {
|
|
89
|
+
type: Function,
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
83
92
|
mask: {
|
|
84
93
|
type: [Boolean, String],
|
|
85
94
|
required: false,
|
|
@@ -18,7 +18,7 @@ interface OTPSemanticStyles {
|
|
|
18
18
|
}
|
|
19
19
|
type OTPClassNamesType = SemanticClassNamesType<OTPProps, OTPSemanticClassNames>;
|
|
20
20
|
type OTPStylesType = SemanticStylesType<OTPProps, OTPSemanticStyles>;
|
|
21
|
-
interface OTPProps extends ComponentBaseProps, Omit<HTMLAttributes, 'onChange' | 'onInput'>, OTPEmitsProps {
|
|
21
|
+
interface OTPProps extends ComponentBaseProps, Omit<HTMLAttributes, 'onChange' | 'onInput' | 'onFocus'>, OTPEmitsProps {
|
|
22
22
|
length?: number;
|
|
23
23
|
variant?: Variant;
|
|
24
24
|
size?: SizeType;
|
|
@@ -39,9 +39,11 @@ interface OTPEmits {
|
|
|
39
39
|
'change': (value: string) => void;
|
|
40
40
|
'input': (cells: string[]) => void;
|
|
41
41
|
'update:value': (value: string) => void;
|
|
42
|
+
'focus': (ev: FocusEvent) => void;
|
|
42
43
|
}
|
|
43
44
|
interface OTPEmitsProps {
|
|
44
45
|
onChange?: OTPEmits['change'];
|
|
46
|
+
onFocus?: OTPEmits['focus'];
|
|
45
47
|
onInput?: OTPEmits['input'];
|
|
46
48
|
'onUpdate:value'?: OTPEmits['update:value'];
|
|
47
49
|
}
|
package/dist/input/OTP/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { devUseWarning, isDev } from "../../_util/warning.js";
|
|
2
|
+
import { useFormItemInputContext, useFormItemInputContextProvider } from "../../form/context.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../../config-provider/context.js";
|
|
3
4
|
import { useSize } from "../../config-provider/hooks/useSize.js";
|
|
4
5
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../../_util/hooks/useMergeSemantic.js";
|
|
5
6
|
import { toPropsRefs } from "../../_util/tools.js";
|
|
7
|
+
import { isRenderable } from "../../_util/is.js";
|
|
6
8
|
import { getMergedStatus } from "../../_util/statusUtils.js";
|
|
7
|
-
import { useFormItemInputContext, useFormItemInputContextProvider } from "../../form/context.js";
|
|
8
9
|
import useVariant from "../../form/hooks/useVariant.js";
|
|
9
10
|
import otp_default from "../style/otp.js";
|
|
10
11
|
import OTPInput from "./OTPInput.js";
|
|
@@ -55,7 +56,6 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
55
56
|
for (let i = 0; i < index; i += 1) if (!nextCells[i]) nextCells[i] = "";
|
|
56
57
|
if (txt.length <= 1) nextCells[index] = txt;
|
|
57
58
|
else nextCells = nextCells.slice(0, index).concat(strToArr(txt));
|
|
58
|
-
nextCells = nextCells.slice(0, mergedLength.value);
|
|
59
59
|
for (let i = nextCells.length - 1; i >= 0; i -= 1) {
|
|
60
60
|
if (nextCells[i]) break;
|
|
61
61
|
nextCells.pop();
|
|
@@ -64,21 +64,28 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
64
64
|
return strToArr(formattedValue).map((cell, i) => {
|
|
65
65
|
if (cell === " " && !nextCells[i]) return nextCells[i];
|
|
66
66
|
return cell;
|
|
67
|
-
});
|
|
67
|
+
}).slice(0, mergedLength.value);
|
|
68
68
|
};
|
|
69
69
|
const handleInputChange = (index, txt) => {
|
|
70
70
|
const nextCells = patchValue(index, txt);
|
|
71
|
+
triggerValueCellsChange(nextCells);
|
|
71
72
|
const nextIndex = Math.min(index + txt.length, mergedLength.value - 1);
|
|
72
73
|
if (nextIndex !== index && nextCells[index] !== void 0) inputRefs.value[nextIndex]?.focus?.();
|
|
73
|
-
triggerValueCellsChange(nextCells);
|
|
74
74
|
};
|
|
75
75
|
const handleActiveChange = (nextIndex) => {
|
|
76
76
|
inputRefs.value[nextIndex]?.focus?.();
|
|
77
77
|
};
|
|
78
|
+
const handleInputFocus = (event, index) => {
|
|
79
|
+
for (let i = 0; i < index; i += 1) if (!valueCells.value[i]) {
|
|
80
|
+
inputRefs.value[i]?.focus();
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
emit("focus", event);
|
|
84
|
+
};
|
|
78
85
|
const renderSeparator = (index) => {
|
|
79
86
|
const separator = slots.separator || props.separator;
|
|
80
87
|
const separatorNode = typeof separator === "function" ? separator({ index }) : separator;
|
|
81
|
-
if (!separatorNode) return null;
|
|
88
|
+
if (!isRenderable(separatorNode)) return null;
|
|
82
89
|
return createVNode("span", {
|
|
83
90
|
"key": `otp-sep-${index}`,
|
|
84
91
|
"class": clsx(`${prefixCls.value}-separator`, mergedClassNames.value.separator),
|
|
@@ -105,6 +112,7 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
105
112
|
"value": valueCells.value[index] || "",
|
|
106
113
|
"onChange": handleInputChange,
|
|
107
114
|
"onActiveChange": handleActiveChange,
|
|
115
|
+
"onFocus": (event) => handleInputFocus(event, index),
|
|
108
116
|
"autoFocus": index === 0 ? props.autoFocus : void 0,
|
|
109
117
|
"mask": props.mask,
|
|
110
118
|
"type": props.type,
|
|
@@ -202,7 +210,8 @@ const OTP = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots }) => {
|
|
|
202
210
|
emits: [
|
|
203
211
|
"change",
|
|
204
212
|
"input",
|
|
205
|
-
"update:value"
|
|
213
|
+
"update:value",
|
|
214
|
+
"focus"
|
|
206
215
|
],
|
|
207
216
|
name: "AInputOtp",
|
|
208
217
|
inheritAttrs: false
|
package/dist/input/Password.js
CHANGED
|
@@ -21,10 +21,10 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
21
21
|
const inputRef = shallowRef();
|
|
22
22
|
const removePasswordTimeout = useRemovePasswordTimeout(inputRef);
|
|
23
23
|
const visibilityToggle = computed(() => props.visibilityToggle ?? true);
|
|
24
|
-
const visibilityControlled = computed(() => typeof visibilityToggle.value === "object" && visibilityToggle.value.visible !== void 0);
|
|
25
|
-
const visible = shallowRef(visibilityControlled.value ? Boolean(visibilityToggle.value.visible) : false);
|
|
26
|
-
watch(visibilityToggle, (
|
|
27
|
-
if (visibilityControlled.value) visible.value = Boolean(
|
|
24
|
+
const visibilityControlled = computed(() => props.iconVisible !== void 0 || typeof visibilityToggle.value === "object" && visibilityToggle.value.visible !== void 0);
|
|
25
|
+
const visible = shallowRef(props.iconVisible ?? (visibilityControlled.value ? Boolean(visibilityToggle.value.visible) : false));
|
|
26
|
+
watch([visibilityToggle, () => props.iconVisible], ([toggle, iconVisible]) => {
|
|
27
|
+
if (visibilityControlled.value) visible.value = iconVisible ?? Boolean(toggle.visible);
|
|
28
28
|
});
|
|
29
29
|
const triggerVisibleChange = () => {
|
|
30
30
|
if (mergedDisabled.value || visibilityToggle.value === false) return;
|
|
@@ -32,6 +32,7 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
32
32
|
const next = !visible.value;
|
|
33
33
|
if (!visibilityControlled.value) visible.value = next;
|
|
34
34
|
if (typeof visibilityToggle.value === "object") visibilityToggle.value.onVisibleChange?.(next);
|
|
35
|
+
emit("update:iconVisible", next);
|
|
35
36
|
};
|
|
36
37
|
const action = computed(() => props.action ?? "click");
|
|
37
38
|
const iconRender = (visible) => {
|
|
@@ -84,7 +85,8 @@ const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
84
85
|
"suffix",
|
|
85
86
|
"inputPrefixCls",
|
|
86
87
|
"rootClass",
|
|
87
|
-
"prefixCls"
|
|
88
|
+
"prefixCls",
|
|
89
|
+
"iconVisible"
|
|
88
90
|
]);
|
|
89
91
|
const suffixSlot = getSlotPropsFnRun(slots, props, "suffix");
|
|
90
92
|
const visibilityIcon = getIcon();
|
package/dist/input/Search.js
CHANGED
|
@@ -2,6 +2,7 @@ import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
|
2
2
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
3
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
4
4
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
|
+
import fallbackProp from "../_util/fallbackProp.js";
|
|
5
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
6
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
7
8
|
import button_default from "../button/index.js";
|
|
@@ -31,7 +32,7 @@ const omitInputKeys = [
|
|
|
31
32
|
const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, expose }) => {
|
|
32
33
|
const composedRef = shallowRef(false);
|
|
33
34
|
const inputRef = shallowRef();
|
|
34
|
-
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPrefixCls } = useComponentBaseConfig("inputSearch", props,
|
|
35
|
+
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, searchIcon: contextSearchIcon, getPrefixCls } = useComponentBaseConfig("inputSearch", props, ["searchIcon"], "input-search");
|
|
35
36
|
const inputPrefixCls = computed(() => getPrefixCls("input", props.inputPrefixCls));
|
|
36
37
|
const { classes, styles, size: customizeSize, disabled: customDisabled, variant: customizeVariant, bordered } = toPropsRefs(props, "classes", "styles", "size", "disabled", "variant", "bordered");
|
|
37
38
|
const contextDisabled = useDisabledContext();
|
|
@@ -102,7 +103,7 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
102
103
|
const enterButtonValue = props.enterButton ?? false;
|
|
103
104
|
const isBooleanEnterButton = typeof enterButtonValue === "boolean";
|
|
104
105
|
const searchIconFromSlot = getSlotPropsFnRun(slots, props, "searchIcon", false);
|
|
105
|
-
const searchIcon = isBooleanEnterButton ? searchIconFromSlot
|
|
106
|
+
const searchIcon = isBooleanEnterButton ? fallbackProp(searchIconFromSlot, contextSearchIcon.value, createVNode(SearchOutlined, null, null)) : null;
|
|
106
107
|
const buttonChildren = isBooleanEnterButton ? void 0 : enterButtonValue;
|
|
107
108
|
let buttonNode;
|
|
108
109
|
const enterButtonNode = buttonChildren;
|
|
@@ -140,6 +141,7 @@ const InternalSearch = /* @__PURE__ */ defineComponent((props, { slots, attrs, e
|
|
|
140
141
|
"class": mergedClassName,
|
|
141
142
|
"style": mergedRootStyle
|
|
142
143
|
}, { hidden: props.hidden }, rootAttrs, { "size": mergedSize.value }), { default: () => [createVNode(InternalInput, mergeProps(inputAttrs, restInputProps, {
|
|
144
|
+
"type": "search",
|
|
143
145
|
"ref": inputRef,
|
|
144
146
|
"prefixCls": inputPrefixCls.value,
|
|
145
147
|
"size": mergedSize.value,
|
package/dist/input/TextArea.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import "../_util/hooks/index.js";
|
|
3
3
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
5
|
+
import { AllowClear } from "../_util/hooks/useAllowClear.js";
|
|
5
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.js";
|
|
6
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
8
|
import { InputProps } from "@v-c/input";
|
|
@@ -25,7 +26,7 @@ interface TextAreaRef extends Pick<TextAreaRef$1, 'focus' | 'blur'> {
|
|
|
25
26
|
nativeElement: TextAreaRef$1['nativeElement'] | null;
|
|
26
27
|
}
|
|
27
28
|
type InputTextAreaRef = TextAreaRef;
|
|
28
|
-
interface TextAreaProps extends ComponentBaseProps, Omit<TextAreaProps$1, 'classNames' | 'styles' | 'onChange' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd' | 'onKeydown' | 'onPressEnter' | 'onResize' | 'maxLength' | 'readOnly' | 'minLength'>, TextAreaEmitsProps {
|
|
29
|
+
interface TextAreaProps extends ComponentBaseProps, Omit<TextAreaProps$1, 'classNames' | 'styles' | 'onChange' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd' | 'onKeydown' | 'onPressEnter' | 'onResize' | 'maxLength' | 'readOnly' | 'minLength' | 'allowClear'>, TextAreaEmitsProps {
|
|
29
30
|
/** @deprecated Use `variant` instead */
|
|
30
31
|
bordered?: boolean;
|
|
31
32
|
size?: SizeType;
|
|
@@ -38,6 +39,7 @@ interface TextAreaProps extends ComponentBaseProps, Omit<TextAreaProps$1, 'class
|
|
|
38
39
|
minlength?: number;
|
|
39
40
|
readonly?: boolean;
|
|
40
41
|
showCount?: InputProps['showCount'];
|
|
42
|
+
allowClear?: AllowClear;
|
|
41
43
|
}
|
|
42
44
|
interface TextAreaEmits {
|
|
43
45
|
'pressEnter': NonNullable<TextAreaProps$1['onPressEnter']>;
|
package/dist/input/TextArea.js
CHANGED
|
@@ -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 { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
5
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
@@ -7,10 +8,9 @@ import { toPropsRefs } from "../_util/tools.js";
|
|
|
7
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
8
9
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
9
10
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
10
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
11
11
|
import useVariant from "../form/hooks/useVariant.js";
|
|
12
12
|
import { useSharedStyle } from "./style/index.js";
|
|
13
|
-
import
|
|
13
|
+
import useAllowClear, { useAllowClearLabel } from "../_util/hooks/useAllowClear.js";
|
|
14
14
|
import textarea_default from "./style/textarea.js";
|
|
15
15
|
import { computed, createVNode, defineComponent, mergeProps, onBeforeUnmount, shallowRef } from "vue";
|
|
16
16
|
import { clsx } from "@v-c/util";
|
|
@@ -56,7 +56,12 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
56
56
|
const hasFeedback = computed(() => formItemInputContext.value.hasFeedback);
|
|
57
57
|
const feedbackIcon = computed(() => formItemInputContext.value.feedbackIcon);
|
|
58
58
|
const [mergedVariant, enableVariantCls] = useVariant("textArea", customVariant, bordered);
|
|
59
|
-
const
|
|
59
|
+
const getClearLabel = useAllowClearLabel();
|
|
60
|
+
const mergedAllowClear = computed(() => useAllowClear({
|
|
61
|
+
allowClear: props.allowClear,
|
|
62
|
+
contextAllowClear: contextAllowClear.value,
|
|
63
|
+
defaultLabel: getClearLabel()
|
|
64
|
+
}));
|
|
60
65
|
const mergedChangeOnComposing = computed(() => props.changeOnComposing ?? contextChangeOnComposing.value);
|
|
61
66
|
const isMouseDown = shallowRef(false);
|
|
62
67
|
const resizeDirty = shallowRef(false);
|
|
@@ -202,6 +207,11 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
202
207
|
required: false,
|
|
203
208
|
default: void 0
|
|
204
209
|
},
|
|
210
|
+
allowClear: {
|
|
211
|
+
type: [Boolean, Object],
|
|
212
|
+
required: false,
|
|
213
|
+
default: void 0
|
|
214
|
+
},
|
|
205
215
|
rootClass: {
|
|
206
216
|
type: String,
|
|
207
217
|
required: false
|
|
@@ -222,11 +232,6 @@ const InternalTextArea = /* @__PURE__ */ defineComponent((props, { attrs, emit,
|
|
|
222
232
|
required: false,
|
|
223
233
|
default: void 0
|
|
224
234
|
},
|
|
225
|
-
allowClear: {
|
|
226
|
-
type: [Boolean, Object],
|
|
227
|
-
required: false,
|
|
228
|
-
default: void 0
|
|
229
|
-
},
|
|
230
235
|
suffix: {
|
|
231
236
|
type: [
|
|
232
237
|
Object,
|
|
@@ -93,7 +93,7 @@ const genInputGroupStyle = (token) => {
|
|
|
93
93
|
position: "relative",
|
|
94
94
|
padding: `0 ${unit(token.paddingInline)}`,
|
|
95
95
|
color: token.colorText,
|
|
96
|
-
fontWeight:
|
|
96
|
+
fontWeight: 400,
|
|
97
97
|
fontSize: token.inputFontSize,
|
|
98
98
|
textAlign: "center",
|
|
99
99
|
borderRadius: token.borderRadius,
|
|
@@ -106,15 +106,6 @@ const genInputGroupStyle = (token) => {
|
|
|
106
106
|
border: `${unit(token.lineWidth)} ${token.lineType} transparent`,
|
|
107
107
|
boxShadow: "none"
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
[`${antCls}-cascader-picker`]: {
|
|
111
|
-
margin: `-9px ${unit(token.calc(token.paddingInline).mul(-1).equal())}`,
|
|
112
|
-
backgroundColor: "transparent",
|
|
113
|
-
[`${antCls}-cascader-input`]: {
|
|
114
|
-
textAlign: "start",
|
|
115
|
-
border: 0,
|
|
116
|
-
boxShadow: "none"
|
|
117
|
-
}
|
|
118
109
|
}
|
|
119
110
|
}
|
|
120
111
|
},
|
|
@@ -192,7 +183,6 @@ const genInputGroupStyle = (token) => {
|
|
|
192
183
|
[componentCls]: { float: "none" },
|
|
193
184
|
[`& > ${antCls}-select,
|
|
194
185
|
& > ${antCls}-select-auto-complete ${componentCls},
|
|
195
|
-
& > ${antCls}-cascader-picker ${componentCls},
|
|
196
186
|
& > ${componentCls}-group-wrapper ${componentCls}`]: {
|
|
197
187
|
borderInlineEndWidth: token.lineWidth,
|
|
198
188
|
borderRadius: 0,
|
|
@@ -202,15 +192,12 @@ const genInputGroupStyle = (token) => {
|
|
|
202
192
|
[`& > ${antCls}-select > ${antCls}-select-arrow`]: { zIndex: 1 },
|
|
203
193
|
[`& > *:first-child,
|
|
204
194
|
& > ${antCls}-select:first-child,
|
|
205
|
-
& > ${antCls}-select-auto-complete:first-child ${componentCls}
|
|
206
|
-
& > ${antCls}-cascader-picker:first-child ${componentCls}`]: {
|
|
195
|
+
& > ${antCls}-select-auto-complete:first-child ${componentCls}`]: {
|
|
207
196
|
borderStartStartRadius: token.borderRadius,
|
|
208
197
|
borderEndStartRadius: token.borderRadius
|
|
209
198
|
},
|
|
210
199
|
[`& > *:last-child,
|
|
211
|
-
& > ${antCls}-select:last-child
|
|
212
|
-
& > ${antCls}-cascader-picker:last-child ${componentCls},
|
|
213
|
-
& > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {
|
|
200
|
+
& > ${antCls}-select:last-child`]: {
|
|
214
201
|
borderInlineEndWidth: token.lineWidth,
|
|
215
202
|
borderStartEndRadius: token.borderRadius,
|
|
216
203
|
borderEndEndRadius: token.borderRadius
|