tdesign-react 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/_chunks/{dep-5a0f8455.js → dep-17022fc3.js} +3 -3
- package/cjs/_chunks/{dep-5a0f8455.js.map → dep-17022fc3.js.map} +1 -1
- package/cjs/_chunks/{dep-37182cc2.js → dep-1d87ce38.js} +5 -5
- package/cjs/_chunks/{dep-37182cc2.js.map → dep-1d87ce38.js.map} +1 -1
- package/cjs/_chunks/{dep-cf433d12.js → dep-213765c2.js} +5 -5
- package/cjs/_chunks/{dep-cf433d12.js.map → dep-213765c2.js.map} +1 -1
- package/cjs/_chunks/{dep-9b9c0bdc.js → dep-21a4ea13.js} +3 -3
- package/cjs/_chunks/{dep-9b9c0bdc.js.map → dep-21a4ea13.js.map} +1 -1
- package/cjs/_chunks/{dep-35429fb7.js → dep-23a0863c.js} +5 -5
- package/cjs/_chunks/{dep-35429fb7.js.map → dep-23a0863c.js.map} +1 -1
- package/cjs/_chunks/{dep-b7fa187c.js → dep-26d8057f.js} +3 -3
- package/cjs/_chunks/{dep-b7fa187c.js.map → dep-26d8057f.js.map} +1 -1
- package/cjs/_chunks/{dep-9a470f87.js → dep-2bf84a94.js} +3 -3
- package/cjs/_chunks/{dep-9a470f87.js.map → dep-2bf84a94.js.map} +1 -1
- package/cjs/_chunks/{dep-1fca660d.js → dep-2c1076fc.js} +5 -5
- package/cjs/_chunks/{dep-1fca660d.js.map → dep-2c1076fc.js.map} +1 -1
- package/cjs/_chunks/{dep-99de493b.js → dep-3303f27e.js} +4 -4
- package/cjs/_chunks/{dep-99de493b.js.map → dep-3303f27e.js.map} +1 -1
- package/cjs/_chunks/{dep-79833567.js → dep-3690810b.js} +2 -2
- package/cjs/_chunks/{dep-79833567.js.map → dep-3690810b.js.map} +1 -1
- package/cjs/_chunks/{dep-31c1e318.js → dep-39714d3a.js} +3 -3
- package/cjs/_chunks/{dep-31c1e318.js.map → dep-39714d3a.js.map} +1 -1
- package/cjs/_chunks/{dep-30d6be99.js → dep-3a707dd3.js} +2 -2
- package/cjs/_chunks/{dep-30d6be99.js.map → dep-3a707dd3.js.map} +1 -1
- package/cjs/_chunks/{dep-f3958d67.js → dep-3e8d1212.js} +2 -2
- package/{esm/_chunks/dep-776ae9a7.js.map → cjs/_chunks/dep-3e8d1212.js.map} +1 -1
- package/cjs/_chunks/{dep-852077f1.js → dep-45c93631.js} +4 -4
- package/cjs/_chunks/{dep-852077f1.js.map → dep-45c93631.js.map} +1 -1
- package/cjs/_chunks/{dep-8c1b656d.js → dep-4a7d4d19.js} +87 -74
- package/cjs/_chunks/dep-4a7d4d19.js.map +1 -0
- package/cjs/_chunks/{dep-6f4cae41.js → dep-4ad44dd8.js} +5 -5
- package/cjs/_chunks/{dep-6f4cae41.js.map → dep-4ad44dd8.js.map} +1 -1
- package/cjs/_chunks/{dep-69ded822.js → dep-4eb371ce.js} +3 -3
- package/cjs/_chunks/{dep-69ded822.js.map → dep-4eb371ce.js.map} +1 -1
- package/cjs/_chunks/{dep-936920bd.js → dep-5226ed24.js} +6 -6
- package/cjs/_chunks/{dep-936920bd.js.map → dep-5226ed24.js.map} +1 -1
- package/cjs/_chunks/{dep-8971659a.js → dep-5ba782c6.js} +4 -4
- package/cjs/_chunks/{dep-8971659a.js.map → dep-5ba782c6.js.map} +1 -1
- package/cjs/_chunks/{dep-d9914aba.js → dep-6c7c7494.js} +5 -5
- package/cjs/_chunks/{dep-d9914aba.js.map → dep-6c7c7494.js.map} +1 -1
- package/cjs/_chunks/{dep-0649ba1d.js → dep-7555b3cd.js} +3 -3
- package/cjs/_chunks/{dep-0649ba1d.js.map → dep-7555b3cd.js.map} +1 -1
- package/cjs/_chunks/{dep-1f96439e.js → dep-7649e4c5.js} +2 -2
- package/cjs/_chunks/{dep-1f96439e.js.map → dep-7649e4c5.js.map} +1 -1
- package/cjs/_chunks/{dep-e6130b80.js → dep-76f334ae.js} +2 -2
- package/cjs/_chunks/{dep-e6130b80.js.map → dep-76f334ae.js.map} +1 -1
- package/cjs/_chunks/{dep-19d271ac.js → dep-78fa7073.js} +3 -3
- package/cjs/_chunks/{dep-19d271ac.js.map → dep-78fa7073.js.map} +1 -1
- package/cjs/_chunks/{dep-6c3918ff.js → dep-7a3bfc35.js} +2 -2
- package/cjs/_chunks/{dep-d6aa70dc.js.map → dep-7a3bfc35.js.map} +1 -1
- package/cjs/_chunks/dep-8fc609bb.js +197 -0
- package/cjs/_chunks/dep-8fc609bb.js.map +1 -0
- package/cjs/_chunks/{dep-da91b7c5.js → dep-90dd4b65.js} +4 -4
- package/cjs/_chunks/{dep-da91b7c5.js.map → dep-90dd4b65.js.map} +1 -1
- package/cjs/_chunks/{dep-cee0950d.js → dep-95812a03.js} +3 -3
- package/cjs/_chunks/{dep-cee0950d.js.map → dep-95812a03.js.map} +1 -1
- package/cjs/_chunks/{dep-ac507a9f.js → dep-aa6874cb.js} +5 -5
- package/cjs/_chunks/{dep-ac507a9f.js.map → dep-aa6874cb.js.map} +1 -1
- package/cjs/_chunks/{dep-777aec82.js → dep-acdae713.js} +8 -8
- package/cjs/_chunks/{dep-777aec82.js.map → dep-acdae713.js.map} +1 -1
- package/cjs/_chunks/{dep-1cd6fd78.js → dep-bfe5e12b.js} +4 -4
- package/cjs/_chunks/{dep-1cd6fd78.js.map → dep-bfe5e12b.js.map} +1 -1
- package/cjs/_chunks/{dep-9809040d.js → dep-c1d8e954.js} +4 -4
- package/cjs/_chunks/{dep-9809040d.js.map → dep-c1d8e954.js.map} +1 -1
- package/cjs/_chunks/{dep-245c1c30.js → dep-c66ba301.js} +7 -7
- package/cjs/_chunks/{dep-245c1c30.js.map → dep-c66ba301.js.map} +1 -1
- package/cjs/_chunks/{dep-edf226b0.js → dep-cd4964a2.js} +4 -4
- package/cjs/_chunks/{dep-edf226b0.js.map → dep-cd4964a2.js.map} +1 -1
- package/cjs/_chunks/{dep-6cfb645c.js → dep-cf70bbeb.js} +7 -7
- package/cjs/_chunks/{dep-6cfb645c.js.map → dep-cf70bbeb.js.map} +1 -1
- package/cjs/_chunks/{dep-00f12a3e.js → dep-cfa0c25c.js} +2 -2
- package/{es/_chunks/dep-766ddb96.js.map → cjs/_chunks/dep-cfa0c25c.js.map} +1 -1
- package/cjs/_chunks/{dep-6ab8175f.js → dep-d0bc53f1.js} +5 -5
- package/cjs/_chunks/{dep-6ab8175f.js.map → dep-d0bc53f1.js.map} +1 -1
- package/cjs/_chunks/{dep-d6aa70dc.js → dep-d2731646.js} +2 -2
- package/cjs/_chunks/{dep-6c3918ff.js.map → dep-d2731646.js.map} +1 -1
- package/cjs/_chunks/{dep-75ddac9a.js → dep-d3e9cd11.js} +3 -3
- package/cjs/_chunks/{dep-75ddac9a.js.map → dep-d3e9cd11.js.map} +1 -1
- package/cjs/_chunks/{dep-2b037b72.js → dep-d3f123c2.js} +6 -6
- package/cjs/_chunks/{dep-2b037b72.js.map → dep-d3f123c2.js.map} +1 -1
- package/cjs/_chunks/{dep-d1640c2c.js → dep-d3f303fd.js} +8 -8
- package/cjs/_chunks/{dep-d1640c2c.js.map → dep-d3f303fd.js.map} +1 -1
- package/cjs/_chunks/{dep-f0e8dd27.js → dep-d527c393.js} +2 -2
- package/cjs/_chunks/{dep-f0e8dd27.js.map → dep-d527c393.js.map} +1 -1
- package/cjs/_chunks/{dep-ec28b004.js → dep-dedf3e86.js} +2 -2
- package/cjs/_chunks/{dep-ec28b004.js.map → dep-dedf3e86.js.map} +1 -1
- package/cjs/_chunks/{dep-6675bbdd.js → dep-ec553228.js} +12 -12
- package/cjs/_chunks/{dep-6675bbdd.js.map → dep-ec553228.js.map} +1 -1
- package/cjs/_chunks/{dep-37c7b065.js → dep-f2a18e02.js} +2 -2
- package/cjs/_chunks/{dep-37c7b065.js.map → dep-f2a18e02.js.map} +1 -1
- package/cjs/_common/js/common.js +1 -1
- package/cjs/_common/js/tree/tree-node-model.js +18 -18
- package/cjs/_common/js/tree/tree-node.js +23 -23
- package/cjs/_common/js/tree/tree-store.d.ts +4 -0
- package/cjs/_common/js/tree/tree-store.js +29 -29
- package/cjs/_common/js/tree/types.js +1 -1
- package/cjs/_type/ControlledProps.js +1 -1
- package/cjs/_type/StyledProps.js +1 -1
- package/cjs/_type/common.js +1 -1
- package/cjs/_type/components/affix/index.js +1 -1
- package/cjs/_type/components/alert/index.js +1 -1
- package/cjs/_type/components/anchor/index.js +1 -1
- package/cjs/_type/components/anchor-item/index.js +1 -1
- package/cjs/_type/components/anchor-target/index.js +1 -1
- package/cjs/_type/components/badge/index.js +1 -1
- package/cjs/_type/components/breadcrumb/index.js +1 -1
- package/cjs/_type/components/button/index.js +1 -1
- package/cjs/_type/components/calendar/index.d.ts +5 -0
- package/cjs/_type/components/calendar/index.js +1 -1
- package/cjs/_type/components/cascader/index.js +1 -1
- package/cjs/_type/components/checkbox/index.js +1 -1
- package/cjs/_type/components/comment/index.js +1 -1
- package/cjs/_type/components/date-picker/index.js +1 -1
- package/cjs/_type/components/dialog/index.js +1 -1
- package/cjs/_type/components/divider/index.js +1 -1
- package/cjs/_type/components/drawer/index.js +1 -1
- package/cjs/_type/components/dropdown/index.js +1 -1
- package/cjs/_type/components/form/index.js +1 -1
- package/cjs/_type/components/grid/index.js +1 -1
- package/cjs/_type/components/icon/index.js +1 -1
- package/cjs/_type/components/icon-svg/index.js +1 -1
- package/cjs/_type/components/iconfont/index.js +1 -1
- package/cjs/_type/components/input/index.js +1 -1
- package/cjs/_type/components/input-number/index.js +1 -1
- package/cjs/_type/components/layout/index.js +1 -1
- package/cjs/_type/components/list/index.js +1 -1
- package/cjs/_type/components/loading/index.js +1 -1
- package/cjs/_type/components/menu/index.js +1 -1
- package/cjs/_type/components/message/index.js +1 -1
- package/cjs/_type/components/notification/index.js +1 -1
- package/cjs/_type/components/pagination/index.js +1 -1
- package/cjs/_type/components/popconfirm/index.js +1 -1
- package/cjs/_type/components/popup/index.js +1 -1
- package/cjs/_type/components/progress/index.js +1 -1
- package/cjs/_type/components/radio/index.js +1 -1
- package/cjs/_type/components/select/index.d.ts +62 -17
- package/cjs/_type/components/select/index.js +1 -1
- package/cjs/_type/components/slider/index.js +1 -1
- package/cjs/_type/components/steps/index.js +1 -1
- package/cjs/_type/components/swiper/index.js +1 -1
- package/cjs/_type/components/switch/index.js +1 -1
- package/cjs/_type/components/table/index.js +1 -1
- package/cjs/_type/components/tabs/index.js +1 -1
- package/cjs/_type/components/tag/index.d.ts +1 -1
- package/cjs/_type/components/tag/index.js +1 -1
- package/cjs/_type/components/textarea/index.js +1 -1
- package/cjs/_type/components/time-picker/index.js +1 -1
- package/cjs/_type/components/tooltip/index.js +1 -1
- package/cjs/_type/components/transfer/index.js +1 -1
- package/cjs/_type/components/tree/index.js +1 -1
- package/cjs/_type/components/tree-select/index.d.ts +16 -3
- package/cjs/_type/components/tree-select/index.js +1 -1
- package/cjs/_type/components/upload/index.js +1 -1
- package/cjs/_type/index.js +1 -1
- package/cjs/_type/util.js +1 -1
- package/cjs/_util/callBoth.js +1 -1
- package/cjs/_util/composeRefs.js +1 -1
- package/cjs/_util/dom.js +6 -6
- package/cjs/_util/easing.js +1 -1
- package/cjs/_util/forwardRefWithStatics.js +1 -1
- package/cjs/_util/getScrollbarWidth.js +1 -1
- package/cjs/_util/hasScrollBar.js +1 -1
- package/cjs/_util/helper.js +14 -14
- package/cjs/_util/injectValue.js +1 -1
- package/cjs/_util/insertCSS.js +1 -1
- package/cjs/_util/isCallable.js +1 -1
- package/cjs/_util/linearGradient.js +2 -2
- package/cjs/_util/noop.js +1 -1
- package/cjs/_util/number.js +1 -1
- package/cjs/_util/setStyle.js +1 -1
- package/cjs/_util/useClickOutside.js +1 -1
- package/cjs/_util/useCommonClassName.js +1 -1
- package/cjs/_util/useConfig.js +1 -1
- package/cjs/_util/useDefault.js +3 -3
- package/cjs/_util/useDefaultValue.js +5 -5
- package/cjs/_util/usePersistFn.js +1 -1
- package/cjs/_util/usePrevious.js +1 -1
- package/cjs/_util/useRefAndForward.js +1 -1
- package/cjs/_util/useRipple.js +1 -1
- package/cjs/_util/useSetState.js +4 -4
- package/cjs/_util/useUpdateEffect.js +1 -1
- package/cjs/addon/Addon.js +3 -3
- package/cjs/addon/index.js +3 -3
- package/cjs/affix/Affix.js +11 -11
- package/cjs/affix/index.js +11 -11
- package/cjs/alert/Alert.js +5 -5
- package/cjs/alert/index.js +5 -5
- package/cjs/anchor/Anchor.js +22 -18
- package/cjs/anchor/Anchor.js.map +1 -1
- package/cjs/anchor/AnchorContext.js +1 -1
- package/cjs/anchor/AnchorItem.js +2 -2
- package/cjs/anchor/AnchorTarget.js +16 -4
- package/cjs/anchor/AnchorTarget.js.map +1 -1
- package/cjs/anchor/_util/clipboard.js +1 -1
- package/cjs/anchor/_util/dom.js +1 -1
- package/cjs/anchor/index.js +22 -18
- package/cjs/anchor/index.js.map +1 -1
- package/cjs/badge/Badge.js +3 -3
- package/cjs/badge/index.js +3 -3
- package/cjs/breadcrumb/Breadcrumb.js +3 -3
- package/cjs/breadcrumb/BreadcrumbItem.js +3 -3
- package/cjs/breadcrumb/BreadcrumbProps.js +1 -1
- package/cjs/breadcrumb/index.js +3 -3
- package/cjs/button/Button.js +13 -12
- package/cjs/button/Button.js.map +1 -1
- package/cjs/button/index.js +11 -11
- package/cjs/calendar/Calendar.js +58 -35
- package/cjs/calendar/Calendar.js.map +1 -1
- package/cjs/calendar/_util.js +1 -1
- package/cjs/calendar/_util.js.map +1 -1
- package/cjs/calendar/index.js +27 -17
- package/cjs/calendar/index.js.map +1 -1
- package/cjs/cascader/Cascader.js +43 -36
- package/cjs/cascader/Cascader.js.map +1 -1
- package/cjs/cascader/components/InputContent.js +9 -9
- package/cjs/cascader/components/Item.js +32 -17
- package/cjs/cascader/components/Item.js.map +1 -1
- package/cjs/cascader/components/Panel.js +29 -16
- package/cjs/cascader/components/Panel.js.map +1 -1
- package/cjs/cascader/index.js +43 -36
- package/cjs/cascader/index.js.map +1 -1
- package/cjs/cascader/interface.js +23 -23
- package/cjs/cascader/utils/cascader.js +4 -4
- package/cjs/cascader/utils/helper.js +2 -2
- package/cjs/cascader/utils/inputContent.js +6 -6
- package/cjs/cascader/utils/item.js +4 -4
- package/cjs/cascader/utils/panel.js +9 -9
- package/cjs/checkbox/Checkbox.js +22 -29
- package/cjs/checkbox/Checkbox.js.map +1 -1
- package/cjs/checkbox/CheckboxGroup.js +26 -98
- package/cjs/checkbox/CheckboxGroup.js.map +1 -1
- package/cjs/checkbox/index.js +19 -12
- package/cjs/checkbox/index.js.map +1 -1
- package/cjs/comment/Comment.js +1 -1
- package/cjs/comment/index.js +1 -1
- package/cjs/common/Check.js +16 -6
- package/cjs/common/Check.js.map +1 -1
- package/cjs/common/FakeArrow.js +2 -2
- package/cjs/common/Portal.js +4 -4
- package/cjs/config-provider/ConfigContext.d.ts +1 -0
- package/cjs/config-provider/ConfigContext.js +1 -1
- package/cjs/config-provider/ConfigProvider.js +3 -3
- package/cjs/config-provider/index.js +3 -3
- package/cjs/date-picker/DatePicker.js +27 -27
- package/cjs/date-picker/base/CalendarPresets.js +11 -11
- package/cjs/date-picker/base/Cell.js +2 -2
- package/cjs/date-picker/base/Header.js +11 -11
- package/cjs/date-picker/base/Table.js +4 -4
- package/cjs/date-picker/index.js +27 -27
- package/cjs/date-picker/panel/Date.js +23 -23
- package/cjs/date-picker/panel/DateRange.js +23 -23
- package/cjs/date-picker/utils.js +19 -19
- package/cjs/dialog/Dialog.js +11 -11
- package/cjs/dialog/RenderDialog.js +5 -5
- package/cjs/dialog/index.js +11 -11
- package/cjs/dialog/plugin.js +11 -11
- package/cjs/divider/Divider.js +3 -3
- package/cjs/divider/index.js +3 -3
- package/cjs/drawer/Drawer.js +11 -11
- package/cjs/drawer/DrawerWrapper.js +4 -4
- package/cjs/drawer/_util.js +1 -1
- package/cjs/drawer/index.js +11 -11
- package/cjs/dropdown/Dropdown.js +6 -6
- package/cjs/dropdown/DropdownItem.js +3 -3
- package/cjs/dropdown/DropdownMenu.js +6 -6
- package/cjs/dropdown/index.js +6 -6
- package/cjs/form/Form.js +32 -33
- package/cjs/form/Form.js.map +1 -1
- package/cjs/form/FormContext.js +1 -1
- package/cjs/form/FormItem.js +31 -32
- package/cjs/form/FormItem.js.map +1 -1
- package/cjs/form/formModel.js +25 -25
- package/cjs/form/index.js +32 -33
- package/cjs/form/index.js.map +1 -1
- package/cjs/grid/Col.js +5 -5
- package/cjs/grid/Row.js +7 -7
- package/cjs/grid/index.js +7 -7
- package/cjs/icon/type.js +1 -1
- package/cjs/index.js +52 -49
- package/cjs/index.js.map +1 -1
- package/cjs/input/Input.js +9 -9
- package/cjs/input/InputGroup.js +3 -3
- package/cjs/input/index.js +9 -9
- package/cjs/input-number/InputNumber.js +13 -13
- package/cjs/input-number/StepHandler.js +11 -11
- package/cjs/input-number/index.js +13 -13
- package/cjs/input-number/utils/numberUtils.js +1 -1
- package/cjs/layout/Layout.js +5 -5
- package/cjs/layout/Sider.js +3 -3
- package/cjs/layout/index.js +5 -5
- package/cjs/list/List.js +20 -4
- package/cjs/list/List.js.map +1 -1
- package/cjs/list/ListItem.js +1 -1
- package/cjs/list/ListItemMeta.js +1 -1
- package/cjs/list/index.js +17 -3
- package/cjs/list/index.js.map +1 -1
- package/cjs/loading/index.js +10 -10
- package/cjs/loading/loading.d.ts +1 -0
- package/cjs/loading/loading.js +61 -14
- package/cjs/loading/loading.js.map +1 -1
- package/cjs/locale/LocalReceiver.js +2 -2
- package/cjs/locale/type.js +1 -1
- package/cjs/locale/zh_CN.d.ts +1 -0
- package/cjs/locale/zh_CN.js +2 -1
- package/cjs/locale/zh_CN.js.map +1 -1
- package/cjs/menu/HeadMenu.js +7 -7
- package/cjs/menu/Menu.js +7 -7
- package/cjs/menu/MenuContext.js +1 -1
- package/cjs/menu/MenuGroup.js +1 -1
- package/cjs/menu/MenuItem.js +2 -2
- package/cjs/menu/SubMenu.js +4 -4
- package/cjs/menu/_util/cacularPaddingLeft.js +1 -1
- package/cjs/menu/_util/checkMenuType.js +1 -1
- package/cjs/menu/_util/checkSubMenuActive.js +1 -1
- package/cjs/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/cjs/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/cjs/menu/_util/constant.js +1 -1
- package/cjs/menu/_util/getSubMenuChildStyle.js +1 -1
- package/cjs/menu/_util/type.js +1 -1
- package/cjs/menu/hooks/useMenuContext.js +5 -5
- package/cjs/menu/index.js +7 -7
- package/cjs/message/Message.js +16 -4
- package/cjs/message/Message.js.map +1 -1
- package/cjs/message/MessageClose.js +1 -1
- package/cjs/message/MessageComponent.js +17 -4
- package/cjs/message/MessageComponent.js.map +1 -1
- package/cjs/message/MessageIcon.js +29 -2
- package/cjs/message/MessageIcon.js.map +1 -1
- package/cjs/message/const.js +1 -1
- package/cjs/message/index.js +16 -4
- package/cjs/message/index.js.map +1 -1
- package/cjs/message/useMessageClass.js +1 -1
- package/cjs/notification/Notification.js +7 -7
- package/cjs/notification/NotificationList.js +7 -7
- package/cjs/notification/index.js +7 -7
- package/cjs/pagination/Pagination.js +29 -16
- package/cjs/pagination/Pagination.js.map +1 -1
- package/cjs/pagination/index.js +29 -16
- package/cjs/pagination/index.js.map +1 -1
- package/cjs/pagination/validators.js +1 -1
- package/cjs/popconfirm/PopConfirm.js +12 -12
- package/cjs/popconfirm/PopContent.js +11 -11
- package/cjs/popconfirm/index.js +12 -12
- package/cjs/popup/Popup.js +4 -4
- package/cjs/popup/Portal.js +1 -1
- package/cjs/popup/index.js +4 -4
- package/cjs/popup/useTriggerProps.js +1 -1
- package/cjs/progress/Progress.js +3 -3
- package/cjs/progress/index.js +3 -3
- package/cjs/radio/Radio.js +16 -6
- package/cjs/radio/Radio.js.map +1 -1
- package/cjs/radio/RadioGroup.js +16 -6
- package/cjs/radio/RadioGroup.js.map +1 -1
- package/cjs/radio/index.js +16 -6
- package/cjs/radio/index.js.map +1 -1
- package/cjs/select/base/Option.d.ts +5 -2
- package/cjs/select/base/Option.js +40 -28
- package/cjs/select/base/Option.js.map +1 -1
- package/cjs/select/base/OptionGroup.d.ts +1 -0
- package/cjs/select/base/OptionGroup.js +7 -4
- package/cjs/select/base/OptionGroup.js.map +1 -1
- package/cjs/select/base/PopupContent.d.ts +2 -1
- package/cjs/select/base/PopupContent.js +57 -19
- package/cjs/select/base/PopupContent.js.map +1 -1
- package/cjs/select/base/Select.d.ts +2 -1
- package/cjs/select/base/Select.js +111 -70
- package/cjs/select/base/Select.js.map +1 -1
- package/cjs/select/index.js +30 -17
- package/cjs/select/index.js.map +1 -1
- package/cjs/select/util/helper.d.ts +4 -5
- package/cjs/select/util/helper.js +14 -25
- package/cjs/select/util/helper.js.map +1 -1
- package/cjs/slider/Slider.js +13 -13
- package/cjs/slider/SliderHandleButton.js +6 -6
- package/cjs/slider/index.js +13 -13
- package/cjs/slider/utils/handleNumber.js +1 -1
- package/cjs/steps/StepItem.js +2 -2
- package/cjs/steps/Steps.js +2 -2
- package/cjs/steps/StepsContext.js +1 -1
- package/cjs/steps/index.js +2 -2
- package/cjs/swiper/Swiper.js +4 -4
- package/cjs/swiper/SwiperItem.js +1 -1
- package/cjs/swiper/index.js +4 -4
- package/cjs/switch/Switch.js +22 -7
- package/cjs/switch/Switch.js.map +1 -1
- package/cjs/switch/index.js +18 -6
- package/cjs/switch/index.js.map +1 -1
- package/cjs/table/base/Table.js +27 -27
- package/cjs/table/base/TableAsyncLoadingBody.js +12 -12
- package/cjs/table/base/TableBody.js +17 -17
- package/cjs/table/base/TableCell.js +4 -4
- package/cjs/table/base/TableColGroup.js +1 -1
- package/cjs/table/base/TableContext.js +1 -1
- package/cjs/table/base/TableEmptyBody.js +1 -1
- package/cjs/table/base/TableFooter.js +1 -1
- package/cjs/table/base/TableHeader.js +10 -10
- package/cjs/table/base/TableLoadingBody.js +5 -5
- package/cjs/table/base/TableRow.js +17 -17
- package/cjs/table/hooks/useColumns.js +4 -4
- package/cjs/table/index.js +37 -34
- package/cjs/table/index.js.map +1 -1
- package/cjs/table/primary/FilterButton.js +22 -16
- package/cjs/table/primary/FilterButton.js.map +1 -1
- package/cjs/table/primary/SorterButton.js +6 -6
- package/cjs/table/primary/Table.js +37 -34
- package/cjs/table/primary/Table.js.map +1 -1
- package/cjs/table/primary/expand-box.js +2 -2
- package/cjs/table/primary/useExpand.js +17 -17
- package/cjs/table/primary/useFilter.js +22 -16
- package/cjs/table/primary/useFilter.js.map +1 -1
- package/cjs/table/primary/useSelect.js +22 -15
- package/cjs/table/primary/useSelect.js.map +1 -1
- package/cjs/table/primary/useSorter.js +18 -18
- package/cjs/table/util/getRowKeyFromRowKey.js +1 -1
- package/cjs/table/util/index.js +1 -1
- package/cjs/tabs/TabBar.js +4 -4
- package/cjs/tabs/TabNav.js +4 -4
- package/cjs/tabs/TabNavItem.js +1 -1
- package/cjs/tabs/TabPanel.js +1 -1
- package/cjs/tabs/Tabs.js +4 -4
- package/cjs/tabs/index.js +4 -4
- package/cjs/tabs/useTabClass.js +1 -1
- package/cjs/tag/CheckTag.js +14 -8
- package/cjs/tag/CheckTag.js.map +1 -1
- package/cjs/tag/Tag.js +7 -6
- package/cjs/tag/Tag.js.map +1 -1
- package/cjs/tag/index.js +5 -5
- package/cjs/textarea/Textarea.js +5 -5
- package/cjs/textarea/index.js +5 -5
- package/cjs/time-picker/InputItems.js +17 -17
- package/cjs/time-picker/TimePicker.js +27 -27
- package/cjs/time-picker/TimeRangePicker.js +27 -27
- package/cjs/time-picker/consts.js +4 -4
- package/cjs/time-picker/index.js +27 -27
- package/cjs/time-picker/interfaces.js +1 -1
- package/cjs/time-picker/panel/SinglePanel.js +23 -23
- package/cjs/time-picker/panel/TimePickerPanel.js +26 -26
- package/cjs/time-picker/panel/TimePickerRangePanel.js +26 -26
- package/cjs/tooltip/Tooltip.js +6 -6
- package/cjs/tooltip/index.js +6 -6
- package/cjs/tree/Tree.d.ts +1 -2
- package/cjs/tree/Tree.js +44 -35
- package/cjs/tree/Tree.js.map +1 -1
- package/cjs/tree/TreeItem.js +28 -13
- package/cjs/tree/TreeItem.js.map +1 -1
- package/cjs/tree/index.js +44 -35
- package/cjs/tree/index.js.map +1 -1
- package/cjs/tree/interface.js +1 -1
- package/cjs/tree/useControllable.js +3 -3
- package/cjs/tree/useStore.js +30 -30
- package/cjs/tree/useTreeConfig.js +1 -1
- package/cjs/tree-select/TreeSelect.js +95 -190
- package/cjs/tree-select/TreeSelect.js.map +1 -1
- package/cjs/tree-select/TreeSelectInput.d.ts +11 -0
- package/cjs/tree-select/TreeSelectInput.js +138 -0
- package/cjs/tree-select/TreeSelectInput.js.map +1 -0
- package/cjs/tree-select/TreeSelectSuffix.d.ts +9 -0
- package/cjs/tree-select/TreeSelectSuffix.js +85 -0
- package/cjs/tree-select/TreeSelectSuffix.js.map +1 -0
- package/cjs/tree-select/TreeSelectTags.d.ts +6 -0
- package/cjs/tree-select/TreeSelectTags.js +85 -0
- package/cjs/tree-select/TreeSelectTags.js.map +1 -0
- package/cjs/tree-select/index.js +57 -46
- package/cjs/tree-select/index.js.map +1 -1
- package/cjs/tree-select/useTreeSelectConfig.d.ts +10 -0
- package/cjs/tree-select/useTreeSelectConfig.js +58 -0
- package/cjs/tree-select/useTreeSelectConfig.js.map +1 -0
- package/cjs/upload/dragger.js +12 -12
- package/cjs/upload/hooks/useDefaultValue.js +6 -6
- package/cjs/upload/index.js +21 -21
- package/cjs/upload/themes/dragger-progress.js +12 -12
- package/cjs/upload/themes/image-card.js +12 -12
- package/cjs/upload/themes/single-file.js +10 -10
- package/cjs/upload/tips.js +1 -1
- package/cjs/upload/types.js +1 -1
- package/cjs/upload/upload-trigger.js +11 -11
- package/cjs/upload/upload.js +21 -21
- package/cjs/upload/util.js +3 -3
- package/cjs/upload/utils/request.js +1 -1
- package/dist/tdesign.css +4704 -4678
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +22305 -21993
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +4 -4
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-79c7181c.js → dep-016d27a7.js} +2 -2
- package/{esm/_chunks/dep-79c7181c.js.map → es/_chunks/dep-016d27a7.js.map} +1 -1
- package/{esm/_chunks/dep-4adf27fa.js → es/_chunks/dep-039ac0dd.js} +6 -6
- package/{esm/_chunks/dep-4adf27fa.js.map → es/_chunks/dep-039ac0dd.js.map} +1 -1
- package/es/_chunks/{dep-ce96caf9.js → dep-0c106052.js} +3 -3
- package/es/_chunks/{dep-ce96caf9.js.map → dep-0c106052.js.map} +1 -1
- package/es/_chunks/{dep-6d4c74ed.js → dep-1189939f.js} +2 -2
- package/es/_chunks/{dep-45dee455.js.map → dep-1189939f.js.map} +1 -1
- package/es/_chunks/{dep-0e364f89.js → dep-11b4e1d1.js} +4 -4
- package/es/_chunks/{dep-0e364f89.js.map → dep-11b4e1d1.js.map} +1 -1
- package/{esm/_chunks/dep-1d2d6811.js → es/_chunks/dep-1b2238b1.js} +4 -4
- package/{esm/_chunks/dep-1d2d6811.js.map → es/_chunks/dep-1b2238b1.js.map} +1 -1
- package/{lib/_chunks/dep-222f3011.js → es/_chunks/dep-2eeaa58b.js} +3 -3
- package/{esm/_chunks/dep-222f3011.js.map → es/_chunks/dep-2eeaa58b.js.map} +1 -1
- package/{lib/_chunks/dep-24340815.js → es/_chunks/dep-2f008905.js} +3 -3
- package/es/_chunks/{dep-24340815.js.map → dep-2f008905.js.map} +1 -1
- package/{esm/_chunks/dep-7fd82250.js → es/_chunks/dep-32b70135.js} +7 -7
- package/es/_chunks/{dep-7fd82250.js.map → dep-32b70135.js.map} +1 -1
- package/{esm/_chunks/dep-cb44c6cb.js → es/_chunks/dep-3959464c.js} +8 -8
- package/es/_chunks/{dep-cb44c6cb.js.map → dep-3959464c.js.map} +1 -1
- package/es/_chunks/{dep-ee70bc2c.js → dep-3f11cde6.js} +2 -2
- package/es/_chunks/{dep-ee70bc2c.js.map → dep-3f11cde6.js.map} +1 -1
- package/{esm/_chunks/dep-f18dfb6c.js → es/_chunks/dep-43869d17.js} +7 -7
- package/{esm/_chunks/dep-f18dfb6c.js.map → es/_chunks/dep-43869d17.js.map} +1 -1
- package/es/_chunks/{dep-cbd5adc9.js → dep-462edfd5.js} +5 -5
- package/{esm/_chunks/dep-cbd5adc9.js.map → es/_chunks/dep-462edfd5.js.map} +1 -1
- package/es/_chunks/dep-47afb0bc.js +8 -0
- package/es/_chunks/dep-47afb0bc.js.map +1 -0
- package/es/_chunks/{dep-d0224a4e.js → dep-4901f712.js} +6 -6
- package/{esm/_chunks/dep-d0224a4e.js.map → es/_chunks/dep-4901f712.js.map} +1 -1
- package/es/_chunks/dep-4e491803.js +8 -0
- package/es/_chunks/dep-4e491803.js.map +1 -0
- package/es/_chunks/{dep-4758c2cb.js → dep-4e5953fc.js} +15 -15
- package/{esm/_chunks/dep-4758c2cb.js.map → es/_chunks/dep-4e5953fc.js.map} +1 -1
- package/{esm/_chunks/dep-b78554de.js → es/_chunks/dep-504203df.js} +4 -4
- package/es/_chunks/{dep-b78554de.js.map → dep-504203df.js.map} +1 -1
- package/{esm/_chunks/dep-96dea3bb.js → es/_chunks/dep-5e5c403a.js} +4 -4
- package/es/_chunks/{dep-96dea3bb.js.map → dep-5e5c403a.js.map} +1 -1
- package/{esm/_chunks/dep-bc117952.js → es/_chunks/dep-5ec09fbd.js} +4 -4
- package/es/_chunks/{dep-bc117952.js.map → dep-5ec09fbd.js.map} +1 -1
- package/{esm/_chunks/dep-45dee455.js → es/_chunks/dep-65c183dc.js} +2 -2
- package/es/_chunks/{dep-6d4c74ed.js.map → dep-65c183dc.js.map} +1 -1
- package/{esm/_chunks/dep-d056abc2.js → es/_chunks/dep-6a5b1968.js} +2 -2
- package/es/_chunks/{dep-d056abc2.js.map → dep-6a5b1968.js.map} +1 -1
- package/{esm/_chunks/dep-7500c6cf.js → es/_chunks/dep-6b58dff4.js} +6 -6
- package/es/_chunks/{dep-7500c6cf.js.map → dep-6b58dff4.js.map} +1 -1
- package/{esm/_chunks/dep-9a4e0e54.js → es/_chunks/dep-7100b11f.js} +7 -7
- package/{esm/_chunks/dep-9a4e0e54.js.map → es/_chunks/dep-7100b11f.js.map} +1 -1
- package/{esm/_chunks/dep-cd8b9911.js → es/_chunks/dep-744f52b3.js} +11 -11
- package/{esm/_chunks/dep-cd8b9911.js.map → es/_chunks/dep-744f52b3.js.map} +1 -1
- package/es/_chunks/dep-74a044dc.js +8 -0
- package/es/_chunks/dep-74a044dc.js.map +1 -0
- package/es/_chunks/{dep-8d2e5702.js → dep-8037ad24.js} +5 -5
- package/{esm/_chunks/dep-8d2e5702.js.map → es/_chunks/dep-8037ad24.js.map} +1 -1
- package/es/_chunks/{dep-53a5fcb7.js → dep-83646039.js} +6 -6
- package/es/_chunks/{dep-53a5fcb7.js.map → dep-83646039.js.map} +1 -1
- package/{esm/_chunks/dep-bbdfa874.js → es/_chunks/dep-8faed49a.js} +8 -8
- package/es/_chunks/{dep-bbdfa874.js.map → dep-8faed49a.js.map} +1 -1
- package/{esm/_chunks/dep-d039e373.js → es/_chunks/dep-90c49b9c.js} +6 -6
- package/es/_chunks/{dep-bd19faa8.js.map → dep-90c49b9c.js.map} +1 -1
- package/es/_chunks/{dep-9144317e.js → dep-9135789f.js} +9 -9
- package/{esm/_chunks/dep-9144317e.js.map → es/_chunks/dep-9135789f.js.map} +1 -1
- package/{esm/_chunks/dep-776ae9a7.js → es/_chunks/dep-9ad4f4b7.js} +3 -3
- package/{cjs/_chunks/dep-f3958d67.js.map → es/_chunks/dep-9ad4f4b7.js.map} +1 -1
- package/{esm/_chunks/dep-bf9ecece.js → es/_chunks/dep-9bab9f6f.js} +4 -4
- package/es/_chunks/{dep-bf9ecece.js.map → dep-9bab9f6f.js.map} +1 -1
- package/{esm/_chunks/dep-420a010b.js → es/_chunks/dep-9c56e17c.js} +9 -9
- package/{esm/_chunks/dep-420a010b.js.map → es/_chunks/dep-9c56e17c.js.map} +1 -1
- package/es/_chunks/{dep-0a958aee.js → dep-9d2e7b62.js} +6 -6
- package/{esm/_chunks/dep-0a958aee.js.map → es/_chunks/dep-9d2e7b62.js.map} +1 -1
- package/es/_chunks/{dep-99336593.js → dep-b44aec31.js} +88 -75
- package/es/_chunks/dep-b44aec31.js.map +1 -0
- package/es/_chunks/{dep-2fdea8b5.js → dep-b6158110.js} +4 -4
- package/es/_chunks/{dep-2fdea8b5.js.map → dep-b6158110.js.map} +1 -1
- package/es/_chunks/{dep-2f74dba2.js → dep-b6ff8559.js} +4 -4
- package/es/_chunks/{dep-2f74dba2.js.map → dep-b6ff8559.js.map} +1 -1
- package/es/_chunks/{dep-766ddb96.js → dep-bb05ae7d.js} +3 -3
- package/{cjs/_chunks/dep-00f12a3e.js.map → es/_chunks/dep-bb05ae7d.js.map} +1 -1
- package/{esm/_chunks/dep-9052d175.js → es/_chunks/dep-cb80da27.js} +2 -2
- package/es/_chunks/dep-cb80da27.js.map +1 -0
- package/es/_chunks/{dep-8bc12c0f.js → dep-e507e9db.js} +7 -7
- package/{esm/_chunks/dep-8bc12c0f.js.map → es/_chunks/dep-e507e9db.js.map} +1 -1
- package/es/_chunks/{dep-ac24e8fd.js → dep-e83a1558.js} +8 -8
- package/es/_chunks/{dep-ac24e8fd.js.map → dep-e83a1558.js.map} +1 -1
- package/es/_chunks/{dep-9c3437dc.js → dep-ed9505a3.js} +3 -3
- package/es/_chunks/{dep-9c3437dc.js.map → dep-ed9505a3.js.map} +1 -1
- package/es/_chunks/dep-edb4c08f.js +190 -0
- package/es/_chunks/dep-edb4c08f.js.map +1 -0
- package/es/_chunks/{dep-eb51ffd0.js → dep-ee3e1923.js} +6 -6
- package/{esm/_chunks/dep-eb51ffd0.js.map → es/_chunks/dep-ee3e1923.js.map} +1 -1
- package/es/_chunks/{dep-b5420e42.js → dep-efa4ba54.js} +5 -5
- package/{esm/_chunks/dep-b5420e42.js.map → es/_chunks/dep-efa4ba54.js.map} +1 -1
- package/es/_chunks/{dep-b05711f1.js → dep-efe7433b.js} +2 -2
- package/es/_chunks/{dep-b05711f1.js.map → dep-efe7433b.js.map} +1 -1
- package/es/_chunks/{dep-7e897399.js → dep-f3eac264.js} +4 -4
- package/es/_chunks/{dep-7e897399.js.map → dep-f3eac264.js.map} +1 -1
- package/es/_chunks/{dep-40f6ccc8.js → dep-f7d3ea79.js} +3 -3
- package/es/_chunks/{dep-40f6ccc8.js.map → dep-f7d3ea79.js.map} +1 -1
- package/es/_common/js/common.js +1 -1
- package/es/_common/js/tree/tree-node-model.js +22 -22
- package/es/_common/js/tree/tree-node.js +27 -27
- package/es/_common/js/tree/tree-store.d.ts +4 -0
- package/es/_common/js/tree/tree-store.js +33 -33
- package/es/_common/js/tree/types.js +1 -1
- package/es/_type/ControlledProps.js +1 -1
- package/es/_type/StyledProps.js +1 -1
- package/es/_type/common.js +1 -1
- package/es/_type/components/affix/index.js +1 -1
- package/es/_type/components/alert/index.js +1 -1
- package/es/_type/components/anchor/index.js +1 -1
- package/es/_type/components/anchor-item/index.js +1 -1
- package/es/_type/components/anchor-target/index.js +1 -1
- package/es/_type/components/badge/index.js +1 -1
- package/es/_type/components/breadcrumb/index.js +1 -1
- package/es/_type/components/button/index.js +1 -1
- package/es/_type/components/calendar/index.d.ts +5 -0
- package/es/_type/components/calendar/index.js +1 -6
- package/es/_type/components/calendar/index.js.map +1 -1
- package/es/_type/components/cascader/index.js +1 -1
- package/es/_type/components/checkbox/index.js +1 -1
- package/es/_type/components/comment/index.js +1 -1
- package/es/_type/components/date-picker/index.js +1 -1
- package/es/_type/components/dialog/index.js +1 -1
- package/es/_type/components/divider/index.js +1 -1
- package/es/_type/components/drawer/index.js +1 -1
- package/es/_type/components/dropdown/index.js +1 -1
- package/es/_type/components/form/index.js +1 -1
- package/es/_type/components/grid/index.js +1 -1
- package/es/_type/components/icon/index.js +1 -1
- package/es/_type/components/icon-svg/index.js +1 -1
- package/es/_type/components/iconfont/index.js +1 -1
- package/es/_type/components/input/index.js +1 -1
- package/es/_type/components/input-number/index.js +1 -1
- package/es/_type/components/layout/index.js +1 -1
- package/es/_type/components/list/index.js +1 -1
- package/es/_type/components/loading/index.js +1 -1
- package/es/_type/components/menu/index.js +1 -1
- package/es/_type/components/message/index.js +1 -1
- package/es/_type/components/notification/index.js +1 -1
- package/es/_type/components/pagination/index.js +1 -1
- package/es/_type/components/popconfirm/index.js +1 -1
- package/es/_type/components/popup/index.js +1 -1
- package/es/_type/components/progress/index.js +1 -1
- package/es/_type/components/radio/index.js +1 -1
- package/es/_type/components/select/index.d.ts +62 -17
- package/es/_type/components/select/index.js +1 -1
- package/es/_type/components/slider/index.js +1 -1
- package/es/_type/components/steps/index.js +1 -1
- package/es/_type/components/swiper/index.js +1 -1
- package/es/_type/components/switch/index.js +1 -1
- package/es/_type/components/table/index.js +1 -1
- package/es/_type/components/tabs/index.js +1 -1
- package/es/_type/components/tag/index.d.ts +1 -1
- package/es/_type/components/tag/index.js +1 -1
- package/es/_type/components/textarea/index.js +1 -1
- package/es/_type/components/time-picker/index.js +1 -1
- package/es/_type/components/tooltip/index.js +1 -1
- package/es/_type/components/transfer/index.js +1 -1
- package/es/_type/components/tree/index.js +1 -1
- package/es/_type/components/tree-select/index.d.ts +16 -3
- package/es/_type/components/tree-select/index.js +3 -1
- package/es/_type/components/tree-select/index.js.map +1 -1
- package/es/_type/components/upload/index.js +1 -1
- package/es/_type/index.js +1 -1
- package/es/_type/util.js +1 -1
- package/es/_util/callBoth.js +1 -1
- package/es/_util/composeRefs.js +1 -1
- package/es/_util/dom.js +8 -8
- package/es/_util/easing.js +1 -1
- package/es/_util/forwardRefWithStatics.js +1 -1
- package/es/_util/getScrollbarWidth.js +1 -1
- package/es/_util/hasScrollBar.js +1 -1
- package/es/_util/helper.js +16 -16
- package/es/_util/injectValue.js +1 -1
- package/es/_util/insertCSS.js +1 -1
- package/es/_util/isCallable.js +1 -1
- package/es/_util/linearGradient.js +2 -2
- package/es/_util/noop.js +1 -1
- package/es/_util/number.js +1 -1
- package/es/_util/setStyle.js +1 -1
- package/es/_util/useClickOutside.js +1 -1
- package/es/_util/useCommonClassName.js +1 -1
- package/es/_util/useConfig.js +1 -1
- package/es/_util/useDefault.js +3 -3
- package/es/_util/useDefaultValue.js +5 -5
- package/es/_util/usePersistFn.js +1 -1
- package/es/_util/usePrevious.js +1 -1
- package/es/_util/useRefAndForward.js +1 -1
- package/es/_util/useRipple.js +1 -1
- package/es/_util/useSetState.js +4 -4
- package/es/_util/useUpdateEffect.js +1 -1
- package/es/addon/Addon.js +3 -3
- package/es/addon/index.js +3 -3
- package/es/affix/Affix.js +14 -14
- package/es/affix/index.js +14 -14
- package/es/affix/style/index.css +106 -106
- package/es/affix/style/index.js +1 -1
- package/es/alert/Alert.js +5 -5
- package/es/alert/index.js +5 -5
- package/es/alert/style/index.css +107 -107
- package/es/alert/style/index.js +1 -1
- package/es/anchor/Anchor.js +27 -22
- package/es/anchor/Anchor.js.map +1 -1
- package/es/anchor/AnchorContext.js +1 -1
- package/es/anchor/AnchorItem.js +2 -2
- package/es/anchor/AnchorTarget.js +19 -4
- package/es/anchor/AnchorTarget.js.map +1 -1
- package/es/anchor/_util/clipboard.js +1 -1
- package/es/anchor/_util/dom.js +1 -1
- package/es/anchor/index.js +27 -22
- package/es/anchor/index.js.map +1 -1
- package/es/anchor/style/index.css +106 -106
- package/es/anchor/style/index.js +1 -1
- package/es/badge/Badge.js +3 -3
- package/es/badge/index.js +3 -3
- package/es/badge/style/index.css +106 -106
- package/es/badge/style/index.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +3 -3
- package/es/breadcrumb/BreadcrumbItem.js +3 -3
- package/es/breadcrumb/BreadcrumbProps.js +1 -1
- package/es/breadcrumb/index.js +3 -3
- package/es/breadcrumb/style/index.css +114 -114
- package/es/breadcrumb/style/index.js +1 -1
- package/es/button/Button.js +15 -14
- package/es/button/Button.js.map +1 -1
- package/es/button/index.js +13 -13
- package/es/button/style/index.css +116 -114
- package/es/button/style/index.js +1 -1
- package/es/calendar/Calendar.js +62 -38
- package/es/calendar/Calendar.js.map +1 -1
- package/es/calendar/_util.js +1 -1
- package/es/calendar/_util.js.map +1 -1
- package/es/calendar/index.js +31 -20
- package/es/calendar/index.js.map +1 -1
- package/es/calendar/style/index.css +114 -114
- package/es/calendar/style/index.js +1 -1
- package/es/cascader/Cascader.js +49 -41
- package/es/cascader/Cascader.js.map +1 -1
- package/es/cascader/components/InputContent.js +11 -11
- package/es/cascader/components/Item.js +36 -19
- package/es/cascader/components/Item.js.map +1 -1
- package/es/cascader/components/Panel.js +34 -19
- package/es/cascader/components/Panel.js.map +1 -1
- package/es/cascader/components/style/index.js +1 -1
- package/es/cascader/index.js +48 -40
- package/es/cascader/index.js.map +1 -1
- package/es/cascader/interface.js +27 -27
- package/es/cascader/style/index.css +124 -135
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/utils/cascader.js +4 -4
- package/es/cascader/utils/helper.js +2 -2
- package/es/cascader/utils/inputContent.js +8 -8
- package/es/cascader/utils/item.js +4 -4
- package/es/cascader/utils/panel.js +11 -11
- package/es/checkbox/Checkbox.js +23 -29
- package/es/checkbox/Checkbox.js.map +1 -1
- package/es/checkbox/CheckboxGroup.js +27 -97
- package/es/checkbox/CheckboxGroup.js.map +1 -1
- package/es/checkbox/index.js +20 -12
- package/es/checkbox/index.js.map +1 -1
- package/es/checkbox/style/index.css +107 -107
- package/es/checkbox/style/index.js +1 -1
- package/es/comment/Comment.js +1 -1
- package/es/comment/index.js +1 -1
- package/es/comment/style/index.css +106 -106
- package/es/comment/style/index.js +1 -1
- package/es/common/Check.js +18 -6
- package/es/common/Check.js.map +1 -1
- package/es/common/FakeArrow.js +2 -2
- package/es/common/Portal.js +4 -4
- package/es/config-provider/ConfigContext.d.ts +1 -0
- package/es/config-provider/ConfigContext.js +1 -1
- package/es/config-provider/ConfigProvider.js +3 -3
- package/es/config-provider/index.js +3 -3
- package/es/date-picker/DatePicker.js +31 -31
- package/es/date-picker/base/CalendarPresets.js +13 -13
- package/es/date-picker/base/Cell.js +2 -2
- package/es/date-picker/base/Header.js +13 -13
- package/es/date-picker/base/Table.js +5 -5
- package/es/date-picker/base/style/index.js +1 -1
- package/es/date-picker/index.js +31 -31
- package/es/date-picker/panel/Date.js +27 -27
- package/es/date-picker/panel/DateRange.js +27 -27
- package/es/date-picker/panel/style/index.js +1 -1
- package/es/date-picker/style/index.css +113 -113
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/utils.js +22 -22
- package/es/dialog/Dialog.js +13 -13
- package/es/dialog/RenderDialog.js +5 -5
- package/es/dialog/index.js +13 -13
- package/es/dialog/plugin.js +13 -13
- package/es/dialog/style/index.css +107 -106
- package/es/dialog/style/index.js +1 -1
- package/es/divider/Divider.js +3 -3
- package/es/divider/index.js +3 -3
- package/es/divider/style/index.css +107 -109
- package/es/divider/style/index.js +1 -1
- package/es/drawer/Drawer.js +13 -13
- package/es/drawer/DrawerWrapper.js +4 -4
- package/es/drawer/_util.js +1 -1
- package/es/drawer/index.js +13 -13
- package/es/drawer/style/index.css +106 -106
- package/es/drawer/style/index.js +1 -1
- package/es/dropdown/Dropdown.js +6 -6
- package/es/dropdown/DropdownItem.js +3 -3
- package/es/dropdown/DropdownMenu.js +6 -6
- package/es/dropdown/index.js +6 -6
- package/es/dropdown/style/index.css +109 -107
- package/es/dropdown/style/index.js +1 -1
- package/es/form/Form.js +38 -39
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.js +1 -1
- package/es/form/FormItem.js +35 -36
- package/es/form/FormItem.js.map +1 -1
- package/es/form/formModel.js +29 -29
- package/es/form/index.js +36 -37
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +106 -106
- package/es/form/style/index.js +1 -1
- package/es/grid/Col.js +6 -6
- package/es/grid/Row.js +8 -8
- package/es/grid/index.js +8 -8
- package/es/grid/style/index.css +106 -106
- package/es/grid/style/index.js +1 -1
- package/es/icon/type.js +1 -1
- package/es/index.js +56 -53
- package/es/index.js.map +1 -1
- package/es/input/Input.js +11 -11
- package/es/input/InputGroup.js +3 -3
- package/es/input/index.js +11 -11
- package/es/input/style/index.css +111 -106
- package/es/input/style/index.js +1 -1
- package/es/input-number/InputNumber.js +16 -16
- package/es/input-number/StepHandler.js +13 -13
- package/es/input-number/index.js +16 -16
- package/es/input-number/style/index.css +106 -107
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/utils/numberUtils.js +1 -1
- package/es/layout/Layout.js +5 -5
- package/es/layout/Sider.js +3 -3
- package/es/layout/index.js +5 -5
- package/es/layout/style/index.css +106 -106
- package/es/layout/style/index.js +1 -1
- package/es/list/List.js +24 -4
- package/es/list/List.js.map +1 -1
- package/es/list/ListItem.js +1 -1
- package/es/list/ListItemMeta.js +1 -1
- package/es/list/index.js +20 -3
- package/es/list/index.js.map +1 -1
- package/es/list/style/index.css +106 -106
- package/es/list/style/index.js +1 -1
- package/es/loading/index.js +12 -12
- package/es/loading/loading.d.ts +1 -0
- package/es/loading/loading.js +64 -17
- package/es/loading/loading.js.map +1 -1
- package/es/loading/style/index.css +107 -107
- package/es/loading/style/index.js +1 -1
- package/es/locale/LocalReceiver.js +3 -3
- package/es/locale/type.js +1 -1
- package/es/locale/zh_CN.d.ts +1 -0
- package/es/locale/zh_CN.js +2 -1
- package/es/locale/zh_CN.js.map +1 -1
- package/es/menu/HeadMenu.js +8 -8
- package/es/menu/Menu.js +8 -8
- package/es/menu/MenuContext.js +1 -1
- package/es/menu/MenuGroup.js +1 -1
- package/es/menu/MenuItem.js +2 -2
- package/es/menu/SubMenu.js +4 -4
- package/es/menu/_util/cacularPaddingLeft.js +1 -1
- package/es/menu/_util/checkMenuType.js +1 -1
- package/es/menu/_util/checkSubMenuActive.js +1 -1
- package/es/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/es/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/es/menu/_util/constant.js +1 -1
- package/es/menu/_util/getSubMenuChildStyle.js +1 -1
- package/es/menu/_util/type.js +1 -1
- package/es/menu/hooks/useMenuContext.js +5 -5
- package/es/menu/index.js +8 -8
- package/es/menu/style/index.css +107 -107
- package/es/menu/style/index.js +1 -1
- package/es/message/Message.js +20 -4
- package/es/message/Message.js.map +1 -1
- package/es/message/MessageClose.js +1 -1
- package/es/message/MessageComponent.js +21 -4
- package/es/message/MessageComponent.js.map +1 -1
- package/es/message/MessageIcon.js +34 -3
- package/es/message/MessageIcon.js.map +1 -1
- package/es/message/const.js +1 -1
- package/es/message/index.js +19 -4
- package/es/message/index.js.map +1 -1
- package/es/message/style/index.css +106 -106
- package/es/message/style/index.js +1 -1
- package/es/message/useMessageClass.js +1 -1
- package/es/notification/Notification.js +7 -7
- package/es/notification/NotificationList.js +7 -7
- package/es/notification/index.js +7 -7
- package/es/notification/style/index.css +107 -107
- package/es/notification/style/index.js +1 -1
- package/es/pagination/Pagination.js +35 -20
- package/es/pagination/Pagination.js.map +1 -1
- package/es/pagination/index.js +34 -19
- package/es/pagination/index.js.map +1 -1
- package/es/pagination/style/index.css +106 -106
- package/es/pagination/style/index.js +1 -1
- package/es/pagination/validators.js +1 -1
- package/es/popconfirm/PopConfirm.js +14 -14
- package/es/popconfirm/PopContent.js +13 -13
- package/es/popconfirm/index.js +14 -14
- package/es/popconfirm/style/index.css +106 -106
- package/es/popconfirm/style/index.js +1 -1
- package/es/popup/Popup.js +4 -4
- package/es/popup/Portal.js +1 -1
- package/es/popup/index.js +4 -4
- package/es/popup/style/index.css +160 -158
- package/es/popup/style/index.js +1 -1
- package/es/popup/useTriggerProps.js +1 -1
- package/es/progress/Progress.js +3 -3
- package/es/progress/index.js +3 -3
- package/es/progress/style/index.css +115 -109
- package/es/progress/style/index.js +1 -1
- package/es/radio/Radio.js +18 -6
- package/es/radio/Radio.js.map +1 -1
- package/es/radio/RadioGroup.js +18 -6
- package/es/radio/RadioGroup.js.map +1 -1
- package/es/radio/index.js +18 -6
- package/es/radio/index.js.map +1 -1
- package/es/radio/style/index.css +106 -106
- package/es/radio/style/index.js +1 -1
- package/es/select/base/Option.d.ts +5 -2
- package/es/select/base/Option.js +44 -30
- package/es/select/base/Option.js.map +1 -1
- package/es/select/base/OptionGroup.d.ts +1 -0
- package/es/select/base/OptionGroup.js +6 -4
- package/es/select/base/OptionGroup.js.map +1 -1
- package/es/select/base/PopupContent.d.ts +2 -1
- package/es/select/base/PopupContent.js +61 -22
- package/es/select/base/PopupContent.js.map +1 -1
- package/es/select/base/Select.d.ts +2 -1
- package/es/select/base/Select.js +117 -74
- package/es/select/base/Select.js.map +1 -1
- package/es/select/base/style/index.js +1 -1
- package/es/select/index.js +35 -20
- package/es/select/index.js.map +1 -1
- package/es/select/style/index.css +132 -124
- package/es/select/style/index.js +1 -1
- package/es/select/util/helper.d.ts +4 -5
- package/es/select/util/helper.js +15 -26
- package/es/select/util/helper.js.map +1 -1
- package/es/slider/Slider.js +16 -16
- package/es/slider/SliderHandleButton.js +7 -7
- package/es/slider/index.js +16 -16
- package/es/slider/style/index.css +106 -106
- package/es/slider/style/index.js +1 -1
- package/es/slider/utils/handleNumber.js +1 -1
- package/es/steps/StepItem.js +2 -2
- package/es/steps/Steps.js +2 -2
- package/es/steps/StepsContext.js +1 -1
- package/es/steps/index.js +2 -2
- package/es/steps/style/index.css +142 -138
- package/es/steps/style/index.js +1 -1
- package/es/style/index.js +1 -1
- package/es/swiper/Swiper.js +4 -4
- package/es/swiper/SwiperItem.js +1 -1
- package/es/swiper/index.js +4 -4
- package/es/swiper/style/index.css +107 -107
- package/es/swiper/style/index.js +1 -1
- package/es/switch/Switch.js +26 -7
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/index.js +21 -6
- package/es/switch/index.js.map +1 -1
- package/es/switch/style/index.css +106 -106
- package/es/switch/style/index.js +1 -1
- package/es/table/base/Table.js +32 -32
- package/es/table/base/TableAsyncLoadingBody.js +15 -15
- package/es/table/base/TableBody.js +21 -21
- package/es/table/base/TableCell.js +4 -4
- package/es/table/base/TableColGroup.js +1 -1
- package/es/table/base/TableContext.js +1 -1
- package/es/table/base/TableEmptyBody.js +1 -1
- package/es/table/base/TableFooter.js +1 -1
- package/es/table/base/TableHeader.js +12 -12
- package/es/table/base/TableLoadingBody.js +7 -7
- package/es/table/base/TableRow.js +21 -21
- package/es/table/base/style/index.js +1 -1
- package/es/table/hooks/useColumns.js +4 -4
- package/es/table/index.js +42 -39
- package/es/table/index.js.map +1 -1
- package/es/table/primary/FilterButton.js +25 -19
- package/es/table/primary/FilterButton.js.map +1 -1
- package/es/table/primary/SorterButton.js +7 -7
- package/es/table/primary/Table.js +43 -40
- package/es/table/primary/Table.js.map +1 -1
- package/es/table/primary/expand-box.js +3 -3
- package/es/table/primary/style/index.js +1 -1
- package/es/table/primary/useExpand.js +22 -22
- package/es/table/primary/useFilter.js +25 -19
- package/es/table/primary/useFilter.js.map +1 -1
- package/es/table/primary/useSelect.js +25 -17
- package/es/table/primary/useSelect.js.map +1 -1
- package/es/table/primary/useSorter.js +22 -22
- package/es/table/style/index.css +122 -118
- package/es/table/style/index.js +1 -1
- package/es/table/util/getRowKeyFromRowKey.js +1 -1
- package/es/table/util/index.js +1 -1
- package/es/tabs/TabBar.js +4 -4
- package/es/tabs/TabNav.js +4 -4
- package/es/tabs/TabNavItem.js +1 -1
- package/es/tabs/TabPanel.js +1 -1
- package/es/tabs/Tabs.js +4 -4
- package/es/tabs/index.js +4 -4
- package/es/tabs/style/index.css +113 -111
- package/es/tabs/style/index.js +1 -1
- package/es/tabs/useTabClass.js +1 -1
- package/es/tag/CheckTag.js +14 -8
- package/es/tag/CheckTag.js.map +1 -1
- package/es/tag/Tag.js +7 -6
- package/es/tag/Tag.js.map +1 -1
- package/es/tag/index.js +5 -5
- package/es/tag/style/index.css +121 -122
- package/es/tag/style/index.js +1 -1
- package/es/textarea/Textarea.js +5 -5
- package/es/textarea/index.js +5 -5
- package/es/textarea/style/index.css +106 -106
- package/es/textarea/style/index.js +1 -1
- package/es/time-picker/InputItems.js +21 -21
- package/es/time-picker/TimePicker.js +31 -31
- package/es/time-picker/TimeRangePicker.js +31 -31
- package/es/time-picker/consts.js +5 -5
- package/es/time-picker/index.js +31 -31
- package/es/time-picker/interfaces.js +1 -1
- package/es/time-picker/panel/SinglePanel.js +28 -28
- package/es/time-picker/panel/TimePickerPanel.js +30 -30
- package/es/time-picker/panel/TimePickerRangePanel.js +30 -30
- package/es/time-picker/panel/style/index.js +1 -1
- package/es/time-picker/style/index.css +112 -112
- package/es/time-picker/style/index.js +1 -1
- package/es/tooltip/Tooltip.js +7 -7
- package/es/tooltip/index.js +7 -7
- package/es/tooltip/style/index.css +109 -109
- package/es/tooltip/style/index.js +1 -1
- package/es/tree/Tree.d.ts +1 -2
- package/es/tree/Tree.js +50 -40
- package/es/tree/Tree.js.map +1 -1
- package/es/tree/TreeItem.js +33 -16
- package/es/tree/TreeItem.js.map +1 -1
- package/es/tree/index.js +50 -40
- package/es/tree/index.js.map +1 -1
- package/es/tree/interface.js +1 -1
- package/es/tree/style/index.css +120 -118
- package/es/tree/style/index.js +1 -1
- package/es/tree/useControllable.js +3 -3
- package/es/tree/useStore.js +34 -34
- package/es/tree/useTreeConfig.js +1 -1
- package/es/tree-select/TreeSelect.js +101 -194
- package/es/tree-select/TreeSelect.js.map +1 -1
- package/es/tree-select/TreeSelectInput.d.ts +11 -0
- package/es/tree-select/TreeSelectInput.js +136 -0
- package/es/tree-select/TreeSelectInput.js.map +1 -0
- package/es/tree-select/TreeSelectSuffix.d.ts +9 -0
- package/es/tree-select/TreeSelectSuffix.js +82 -0
- package/es/tree-select/TreeSelectSuffix.js.map +1 -0
- package/es/tree-select/TreeSelectTags.d.ts +6 -0
- package/es/tree-select/TreeSelectTags.js +79 -0
- package/es/tree-select/TreeSelectTags.js.map +1 -0
- package/es/tree-select/index.js +63 -51
- package/es/tree-select/index.js.map +1 -1
- package/es/tree-select/style/index.js +1 -1
- package/es/tree-select/useTreeSelectConfig.d.ts +10 -0
- package/es/tree-select/useTreeSelectConfig.js +50 -0
- package/es/tree-select/useTreeSelectConfig.js.map +1 -0
- package/es/upload/dragger.js +14 -14
- package/es/upload/hooks/useDefaultValue.js +7 -7
- package/es/upload/index.js +25 -25
- package/es/upload/style/index.css +119 -114
- package/es/upload/style/index.js +1 -1
- package/es/upload/themes/dragger-progress.js +14 -14
- package/es/upload/themes/image-card.js +14 -14
- package/es/upload/themes/single-file.js +12 -12
- package/es/upload/themes/style/index.js +1 -1
- package/es/upload/tips.js +1 -1
- package/es/upload/types.js +1 -1
- package/es/upload/upload-trigger.js +13 -13
- package/es/upload/upload.js +25 -25
- package/es/upload/util.js +3 -3
- package/es/upload/utils/request.js +1 -1
- package/esm/_chunks/{dep-79c7181c.js → dep-016d27a7.js} +2 -2
- package/{es/_chunks/dep-79c7181c.js.map → esm/_chunks/dep-016d27a7.js.map} +1 -1
- package/{es/_chunks/dep-4adf27fa.js → esm/_chunks/dep-039ac0dd.js} +6 -6
- package/{es/_chunks/dep-4adf27fa.js.map → esm/_chunks/dep-039ac0dd.js.map} +1 -1
- package/esm/_chunks/{dep-ce96caf9.js → dep-0c106052.js} +3 -3
- package/esm/_chunks/{dep-ce96caf9.js.map → dep-0c106052.js.map} +1 -1
- package/esm/_chunks/{dep-6d4c74ed.js → dep-1189939f.js} +2 -2
- package/esm/_chunks/{dep-45dee455.js.map → dep-1189939f.js.map} +1 -1
- package/esm/_chunks/{dep-0e364f89.js → dep-11b4e1d1.js} +4 -4
- package/esm/_chunks/{dep-0e364f89.js.map → dep-11b4e1d1.js.map} +1 -1
- package/{es/_chunks/dep-1d2d6811.js → esm/_chunks/dep-1b2238b1.js} +4 -4
- package/{es/_chunks/dep-1d2d6811.js.map → esm/_chunks/dep-1b2238b1.js.map} +1 -1
- package/esm/_chunks/{dep-222f3011.js → dep-2eeaa58b.js} +3 -3
- package/{es/_chunks/dep-222f3011.js.map → esm/_chunks/dep-2eeaa58b.js.map} +1 -1
- package/{es/_chunks/dep-24340815.js → esm/_chunks/dep-2f008905.js} +3 -3
- package/esm/_chunks/{dep-24340815.js.map → dep-2f008905.js.map} +1 -1
- package/{es/_chunks/dep-7fd82250.js → esm/_chunks/dep-32b70135.js} +7 -7
- package/esm/_chunks/{dep-7fd82250.js.map → dep-32b70135.js.map} +1 -1
- package/{es/_chunks/dep-cb44c6cb.js → esm/_chunks/dep-3959464c.js} +8 -8
- package/esm/_chunks/{dep-cb44c6cb.js.map → dep-3959464c.js.map} +1 -1
- package/esm/_chunks/{dep-ee70bc2c.js → dep-3f11cde6.js} +2 -2
- package/esm/_chunks/{dep-ee70bc2c.js.map → dep-3f11cde6.js.map} +1 -1
- package/{es/_chunks/dep-f18dfb6c.js → esm/_chunks/dep-43869d17.js} +7 -7
- package/{es/_chunks/dep-f18dfb6c.js.map → esm/_chunks/dep-43869d17.js.map} +1 -1
- package/esm/_chunks/{dep-cbd5adc9.js → dep-462edfd5.js} +5 -5
- package/{es/_chunks/dep-cbd5adc9.js.map → esm/_chunks/dep-462edfd5.js.map} +1 -1
- package/esm/_chunks/dep-47afb0bc.js +8 -0
- package/esm/_chunks/dep-47afb0bc.js.map +1 -0
- package/esm/_chunks/{dep-d0224a4e.js → dep-4901f712.js} +6 -6
- package/{es/_chunks/dep-d0224a4e.js.map → esm/_chunks/dep-4901f712.js.map} +1 -1
- package/esm/_chunks/dep-4e491803.js +8 -0
- package/esm/_chunks/dep-4e491803.js.map +1 -0
- package/esm/_chunks/{dep-4758c2cb.js → dep-4e5953fc.js} +15 -15
- package/{es/_chunks/dep-4758c2cb.js.map → esm/_chunks/dep-4e5953fc.js.map} +1 -1
- package/{es/_chunks/dep-b78554de.js → esm/_chunks/dep-504203df.js} +4 -4
- package/esm/_chunks/{dep-b78554de.js.map → dep-504203df.js.map} +1 -1
- package/{es/_chunks/dep-96dea3bb.js → esm/_chunks/dep-5e5c403a.js} +4 -4
- package/esm/_chunks/{dep-96dea3bb.js.map → dep-5e5c403a.js.map} +1 -1
- package/{es/_chunks/dep-bc117952.js → esm/_chunks/dep-5ec09fbd.js} +4 -4
- package/esm/_chunks/{dep-bc117952.js.map → dep-5ec09fbd.js.map} +1 -1
- package/{es/_chunks/dep-45dee455.js → esm/_chunks/dep-65c183dc.js} +2 -2
- package/esm/_chunks/{dep-6d4c74ed.js.map → dep-65c183dc.js.map} +1 -1
- package/{es/_chunks/dep-d056abc2.js → esm/_chunks/dep-6a5b1968.js} +2 -2
- package/esm/_chunks/{dep-d056abc2.js.map → dep-6a5b1968.js.map} +1 -1
- package/{es/_chunks/dep-7500c6cf.js → esm/_chunks/dep-6b58dff4.js} +6 -6
- package/esm/_chunks/{dep-7500c6cf.js.map → dep-6b58dff4.js.map} +1 -1
- package/{es/_chunks/dep-9a4e0e54.js → esm/_chunks/dep-7100b11f.js} +7 -7
- package/{es/_chunks/dep-9a4e0e54.js.map → esm/_chunks/dep-7100b11f.js.map} +1 -1
- package/{es/_chunks/dep-cd8b9911.js → esm/_chunks/dep-744f52b3.js} +11 -11
- package/{es/_chunks/dep-cd8b9911.js.map → esm/_chunks/dep-744f52b3.js.map} +1 -1
- package/esm/_chunks/dep-74a044dc.js +8 -0
- package/esm/_chunks/dep-74a044dc.js.map +1 -0
- package/esm/_chunks/{dep-8d2e5702.js → dep-8037ad24.js} +5 -5
- package/{es/_chunks/dep-8d2e5702.js.map → esm/_chunks/dep-8037ad24.js.map} +1 -1
- package/esm/_chunks/{dep-53a5fcb7.js → dep-83646039.js} +6 -6
- package/esm/_chunks/{dep-53a5fcb7.js.map → dep-83646039.js.map} +1 -1
- package/{es/_chunks/dep-bbdfa874.js → esm/_chunks/dep-8faed49a.js} +8 -8
- package/esm/_chunks/{dep-bbdfa874.js.map → dep-8faed49a.js.map} +1 -1
- package/esm/_chunks/{dep-9144317e.js → dep-9135789f.js} +9 -9
- package/{es/_chunks/dep-9144317e.js.map → esm/_chunks/dep-9135789f.js.map} +1 -1
- package/{es/_chunks/dep-776ae9a7.js → esm/_chunks/dep-9ad4f4b7.js} +3 -3
- package/{es/_chunks/dep-776ae9a7.js.map → esm/_chunks/dep-9ad4f4b7.js.map} +1 -1
- package/{es/_chunks/dep-bf9ecece.js → esm/_chunks/dep-9bab9f6f.js} +4 -4
- package/esm/_chunks/{dep-bf9ecece.js.map → dep-9bab9f6f.js.map} +1 -1
- package/{es/_chunks/dep-420a010b.js → esm/_chunks/dep-9c56e17c.js} +9 -9
- package/{es/_chunks/dep-420a010b.js.map → esm/_chunks/dep-9c56e17c.js.map} +1 -1
- package/esm/_chunks/{dep-0a958aee.js → dep-9d2e7b62.js} +6 -6
- package/{es/_chunks/dep-0a958aee.js.map → esm/_chunks/dep-9d2e7b62.js.map} +1 -1
- package/esm/_chunks/{dep-99336593.js → dep-b44aec31.js} +88 -75
- package/esm/_chunks/dep-b44aec31.js.map +1 -0
- package/esm/_chunks/{dep-2fdea8b5.js → dep-b6158110.js} +4 -4
- package/esm/_chunks/{dep-2fdea8b5.js.map → dep-b6158110.js.map} +1 -1
- package/esm/_chunks/{dep-2f74dba2.js → dep-b6ff8559.js} +4 -4
- package/esm/_chunks/{dep-2f74dba2.js.map → dep-b6ff8559.js.map} +1 -1
- package/{es/_chunks/dep-bd19faa8.js → esm/_chunks/dep-b926b443.js} +6 -6
- package/esm/_chunks/{dep-d039e373.js.map → dep-b926b443.js.map} +1 -1
- package/esm/_chunks/{dep-766ddb96.js → dep-bb05ae7d.js} +3 -3
- package/esm/_chunks/{dep-766ddb96.js.map → dep-bb05ae7d.js.map} +1 -1
- package/{es/_chunks/dep-9052d175.js → esm/_chunks/dep-cb80da27.js} +2 -2
- package/esm/_chunks/dep-cb80da27.js.map +1 -0
- package/esm/_chunks/{dep-8bc12c0f.js → dep-e507e9db.js} +7 -7
- package/{es/_chunks/dep-8bc12c0f.js.map → esm/_chunks/dep-e507e9db.js.map} +1 -1
- package/esm/_chunks/{dep-ac24e8fd.js → dep-e83a1558.js} +8 -8
- package/esm/_chunks/{dep-ac24e8fd.js.map → dep-e83a1558.js.map} +1 -1
- package/esm/_chunks/{dep-9c3437dc.js → dep-ed9505a3.js} +3 -3
- package/esm/_chunks/{dep-9c3437dc.js.map → dep-ed9505a3.js.map} +1 -1
- package/esm/_chunks/dep-edb4c08f.js +190 -0
- package/esm/_chunks/dep-edb4c08f.js.map +1 -0
- package/esm/_chunks/{dep-eb51ffd0.js → dep-ee3e1923.js} +6 -6
- package/{es/_chunks/dep-eb51ffd0.js.map → esm/_chunks/dep-ee3e1923.js.map} +1 -1
- package/esm/_chunks/{dep-b5420e42.js → dep-efa4ba54.js} +5 -5
- package/{es/_chunks/dep-b5420e42.js.map → esm/_chunks/dep-efa4ba54.js.map} +1 -1
- package/esm/_chunks/{dep-b05711f1.js → dep-efe7433b.js} +2 -2
- package/esm/_chunks/{dep-b05711f1.js.map → dep-efe7433b.js.map} +1 -1
- package/esm/_chunks/{dep-7e897399.js → dep-f3eac264.js} +4 -4
- package/esm/_chunks/{dep-7e897399.js.map → dep-f3eac264.js.map} +1 -1
- package/esm/_chunks/{dep-40f6ccc8.js → dep-f7d3ea79.js} +3 -3
- package/esm/_chunks/{dep-40f6ccc8.js.map → dep-f7d3ea79.js.map} +1 -1
- package/esm/_common/js/common.js +1 -1
- package/esm/_common/js/tree/tree-node-model.js +22 -22
- package/esm/_common/js/tree/tree-node.js +27 -27
- package/esm/_common/js/tree/tree-store.d.ts +4 -0
- package/esm/_common/js/tree/tree-store.js +33 -33
- package/esm/_common/js/tree/types.js +1 -1
- package/esm/_common/style/web/_global.less +0 -3
- package/esm/_common/style/web/_reset.less +1 -0
- package/esm/_common/style/web/_variables.less +52 -32
- package/esm/_common/style/web/components/_docs.less +23 -0
- package/esm/_common/style/web/components/_index.less +45 -0
- package/esm/_common/style/web/components/a-template/_index.less +2 -1
- package/esm/_common/style/web/components/affix/_index.less +0 -1
- package/esm/_common/style/web/components/alert/_docs.less +1 -1
- package/esm/_common/style/web/components/alert/_index.less +5 -3
- package/esm/_common/style/web/components/alert/_var.less +1 -1
- package/esm/_common/style/web/components/anchor/_docs.less +4 -2
- package/esm/_common/style/web/components/anchor/_index.less +3 -1
- package/esm/_common/style/web/components/anchor/_mixin.less +1 -1
- package/esm/_common/style/web/components/avatar/_index.less +6 -4
- package/esm/_common/style/web/components/avatar/_mixin.less +3 -1
- package/esm/_common/style/web/components/avatar/_var.less +2 -4
- package/esm/_common/style/web/components/badge/_docs.less +2 -0
- package/esm/_common/style/web/components/badge/_index.less +3 -1
- package/esm/_common/style/web/components/breadcrumb/_index.less +10 -11
- package/esm/_common/style/web/components/breadcrumb/_mixin.less +2 -4
- package/esm/_common/style/web/components/breadcrumb/_var.less +0 -3
- package/esm/_common/style/web/components/button/_docs.less +5 -2
- package/esm/_common/style/web/components/button/_index.less +25 -19
- package/esm/_common/style/web/components/button/_var.less +7 -2
- package/esm/_common/style/web/components/calendar/_index.less +16 -16
- package/esm/_common/style/web/components/calendar/_var.less +5 -6
- package/esm/_common/style/web/components/cascader/_index.less +41 -54
- package/esm/_common/style/web/components/cascader/_var.less +0 -1
- package/esm/_common/style/web/components/checkbox/_index.less +11 -2
- package/esm/_common/style/web/components/checkbox/_var.less +1 -1
- package/esm/_common/style/web/components/comment/_index.less +3 -2
- package/esm/_common/style/web/components/comment/_var.less +0 -7
- package/esm/_common/style/web/components/date-picker/_docs.less +1 -1
- package/esm/_common/style/web/components/date-picker/_index.less +38 -30
- package/esm/_common/style/web/components/dialog/_animate.less +7 -15
- package/esm/_common/style/web/components/dialog/_docs.less +0 -2
- package/esm/_common/style/web/components/dialog/_index.less +5 -4
- package/esm/_common/style/web/components/divider/_index.less +5 -7
- package/esm/_common/style/web/components/divider/_mixin.less +1 -1
- package/esm/_common/style/web/components/drawer/_index.less +3 -3
- package/esm/_common/style/web/components/dropdown/_index.less +10 -5
- package/esm/_common/style/web/components/dropdown/_var.less +1 -1
- package/esm/_common/style/web/components/form/_docs.less +0 -1
- package/esm/_common/style/web/components/form/_index.less +15 -4
- package/esm/_common/style/web/components/form/_mixin.less +4 -1
- package/esm/_common/style/web/components/form/_var.less +2 -2
- package/esm/_common/style/web/components/grid/_docs.less +2 -1
- package/esm/_common/style/web/components/grid/_index.less +2 -0
- package/esm/_common/style/web/components/grid/_mixin.less +12 -0
- package/esm/_common/style/web/components/icon/_index.less +3 -0
- package/esm/_common/style/web/components/input/_index.less +35 -2
- package/esm/_common/style/web/components/input/_mixin.less +16 -2
- package/esm/_common/style/web/components/input/_var.less +11 -4
- package/esm/_common/style/web/components/input-number/_docs.less +1 -0
- package/esm/_common/style/web/components/input-number/_index.less +21 -6
- package/esm/_common/style/web/components/layout/_docs.less +6 -11
- package/esm/_common/style/web/components/layout/_index.less +2 -0
- package/esm/_common/style/web/components/list/_index.less +11 -4
- package/esm/_common/style/web/components/loading/_index.less +3 -3
- package/esm/_common/style/web/components/loading/_var.less +0 -1
- package/esm/_common/style/web/components/menu/_docs.less +15 -13
- package/esm/_common/style/web/components/menu/_index.less +43 -25
- package/esm/_common/style/web/components/menu/_transition.less +23 -5
- package/esm/_common/style/web/components/menu/_var.less +1 -2
- package/esm/_common/style/web/components/message/_docs.less +1 -1
- package/esm/_common/style/web/components/message/_index.less +7 -1
- package/esm/_common/style/web/components/message/_var.less +0 -1
- package/esm/_common/style/web/components/notification/_index.less +2 -7
- package/esm/_common/style/web/components/pagination/_docs.less +3 -3
- package/esm/_common/style/web/components/pagination/_index.less +8 -1
- package/esm/_common/style/web/components/popconfirm/_docs.less +5 -3
- package/esm/_common/style/web/components/popconfirm/_index.less +6 -4
- package/esm/_common/style/web/components/popconfirm/_var.less +2 -2
- package/esm/_common/style/web/components/popup/_index.less +15 -5
- package/esm/_common/style/web/components/popup/_mixin.less +33 -17
- package/esm/_common/style/web/components/popup/_var.less +4 -3
- package/esm/_common/style/web/components/progress/_index.less +23 -5
- package/esm/_common/style/web/components/progress/_var.less +1 -1
- package/esm/_common/style/web/components/radio/_index.less +22 -3
- package/esm/_common/style/web/components/select/_index.less +28 -9
- package/esm/_common/style/web/components/select/_var.less +2 -2
- package/esm/_common/style/web/components/slider/_index.less +42 -40
- package/esm/_common/style/web/components/slider/_var.less +41 -10
- package/esm/_common/style/web/components/steps/_docs.less +1 -2
- package/esm/_common/style/web/components/steps/_index.less +12 -4
- package/esm/_common/style/web/components/steps/_mixin.less +30 -28
- package/esm/_common/style/web/components/steps/_var.less +10 -11
- package/esm/_common/style/web/components/swiper/_docs.less +1 -1
- package/esm/_common/style/web/components/swiper/_index.less +3 -1
- package/esm/_common/style/web/components/swiper/_var.less +1 -1
- package/esm/_common/style/web/components/switch/_docs.less +1 -0
- package/esm/_common/style/web/components/switch/_index.less +26 -2
- package/esm/_common/style/web/components/switch/_var.less +0 -1
- package/esm/_common/style/web/components/table/_docs.less +3 -6
- package/esm/_common/style/web/components/table/_index.less +44 -50
- package/esm/_common/style/web/components/table/_var.less +2 -1
- package/esm/_common/style/web/components/tabs/_index.less +14 -10
- package/esm/_common/style/web/components/tabs/_var.less +1 -1
- package/esm/_common/style/web/components/tag/_index.less +28 -16
- package/esm/_common/style/web/components/tag/_mixin.less +1 -1
- package/esm/_common/style/web/components/tag/_var.less +1 -1
- package/esm/_common/style/web/components/textarea/_index.less +2 -1
- package/esm/_common/style/web/components/time-picker/_index.less +15 -11
- package/esm/_common/style/web/components/time-picker/_var.less +1 -1
- package/esm/_common/style/web/components/tooltip/_docs.less +4 -2
- package/esm/_common/style/web/components/tooltip/_index.less +5 -3
- package/esm/_common/style/web/components/tooltip/_var.less +4 -5
- package/esm/_common/style/web/components/transfer/_index.less +23 -4
- package/esm/_common/style/web/components/transfer/_var.less +2 -2
- package/esm/_common/style/web/components/tree/_docs.less +15 -16
- package/esm/_common/style/web/components/tree/_index.less +28 -13
- package/esm/_common/style/web/components/upload/_docs.less +2 -5
- package/esm/_common/style/web/components/upload/_index.less +37 -21
- package/esm/_common/style/web/components/upload/_mixin.less +1 -1
- package/esm/_common/style/web/docs.less +9 -6
- package/esm/_common/style/web/mixins/_clearfix.less +1 -2
- package/esm/_common/style/web/mixins/_index.less +3 -0
- package/esm/_common/style/web/theme/_dark.less +69 -77
- package/esm/_common/style/web/theme/_index.less +2 -1
- package/esm/_common/style/web/theme/_light.less +68 -80
- package/esm/_common/style/web/utilities/_animation.less +2 -17
- package/esm/_common/style/web/utilities/_float.less +1 -1
- package/esm/_common/style/web/utilities/_index.less +1 -0
- package/esm/_type/ControlledProps.js +1 -1
- package/esm/_type/StyledProps.js +1 -1
- package/esm/_type/common.js +1 -1
- package/esm/_type/components/affix/index.js +1 -1
- package/esm/_type/components/alert/index.js +1 -1
- package/esm/_type/components/anchor/index.js +1 -1
- package/esm/_type/components/anchor-item/index.js +1 -1
- package/esm/_type/components/anchor-target/index.js +1 -1
- package/esm/_type/components/badge/index.js +1 -1
- package/esm/_type/components/breadcrumb/index.js +1 -1
- package/esm/_type/components/button/index.js +1 -1
- package/esm/_type/components/calendar/index.d.ts +5 -0
- package/esm/_type/components/calendar/index.js +1 -6
- package/esm/_type/components/calendar/index.js.map +1 -1
- package/esm/_type/components/cascader/index.js +1 -1
- package/esm/_type/components/checkbox/index.js +1 -1
- package/esm/_type/components/comment/index.js +1 -1
- package/esm/_type/components/date-picker/index.js +1 -1
- package/esm/_type/components/dialog/index.js +1 -1
- package/esm/_type/components/divider/index.js +1 -1
- package/esm/_type/components/drawer/index.js +1 -1
- package/esm/_type/components/dropdown/index.js +1 -1
- package/esm/_type/components/form/index.js +1 -1
- package/esm/_type/components/grid/index.js +1 -1
- package/esm/_type/components/icon/index.js +1 -1
- package/esm/_type/components/icon-svg/index.js +1 -1
- package/esm/_type/components/iconfont/index.js +1 -1
- package/esm/_type/components/input/index.js +1 -1
- package/esm/_type/components/input-number/index.js +1 -1
- package/esm/_type/components/layout/index.js +1 -1
- package/esm/_type/components/list/index.js +1 -1
- package/esm/_type/components/loading/index.js +1 -1
- package/esm/_type/components/menu/index.js +1 -1
- package/esm/_type/components/message/index.js +1 -1
- package/esm/_type/components/notification/index.js +1 -1
- package/esm/_type/components/pagination/index.js +1 -1
- package/esm/_type/components/popconfirm/index.js +1 -1
- package/esm/_type/components/popup/index.js +1 -1
- package/esm/_type/components/progress/index.js +1 -1
- package/esm/_type/components/radio/index.js +1 -1
- package/esm/_type/components/select/index.d.ts +62 -17
- package/esm/_type/components/select/index.js +1 -1
- package/esm/_type/components/slider/index.js +1 -1
- package/esm/_type/components/steps/index.js +1 -1
- package/esm/_type/components/swiper/index.js +1 -1
- package/esm/_type/components/switch/index.js +1 -1
- package/esm/_type/components/table/index.js +1 -1
- package/esm/_type/components/tabs/index.js +1 -1
- package/esm/_type/components/tag/index.d.ts +1 -1
- package/esm/_type/components/tag/index.js +1 -1
- package/esm/_type/components/textarea/index.js +1 -1
- package/esm/_type/components/time-picker/index.js +1 -1
- package/esm/_type/components/tooltip/index.js +1 -1
- package/esm/_type/components/transfer/index.js +1 -1
- package/esm/_type/components/tree/index.js +1 -1
- package/esm/_type/components/tree-select/index.d.ts +16 -3
- package/esm/_type/components/tree-select/index.js +3 -1
- package/esm/_type/components/tree-select/index.js.map +1 -1
- package/esm/_type/components/upload/index.js +1 -1
- package/esm/_type/index.js +1 -1
- package/esm/_type/util.js +1 -1
- package/esm/_util/callBoth.js +1 -1
- package/esm/_util/composeRefs.js +1 -1
- package/esm/_util/dom.js +8 -8
- package/esm/_util/easing.js +1 -1
- package/esm/_util/forwardRefWithStatics.js +1 -1
- package/esm/_util/getScrollbarWidth.js +1 -1
- package/esm/_util/hasScrollBar.js +1 -1
- package/esm/_util/helper.js +16 -16
- package/esm/_util/injectValue.js +1 -1
- package/esm/_util/insertCSS.js +1 -1
- package/esm/_util/isCallable.js +1 -1
- package/esm/_util/linearGradient.js +2 -2
- package/esm/_util/noop.js +1 -1
- package/esm/_util/number.js +1 -1
- package/esm/_util/setStyle.js +1 -1
- package/esm/_util/useClickOutside.js +1 -1
- package/esm/_util/useCommonClassName.js +1 -1
- package/esm/_util/useConfig.js +1 -1
- package/esm/_util/useDefault.js +3 -3
- package/esm/_util/useDefaultValue.js +5 -5
- package/esm/_util/usePersistFn.js +1 -1
- package/esm/_util/usePrevious.js +1 -1
- package/esm/_util/useRefAndForward.js +1 -1
- package/esm/_util/useRipple.js +1 -1
- package/esm/_util/useSetState.js +4 -4
- package/esm/_util/useUpdateEffect.js +1 -1
- package/esm/addon/Addon.js +3 -3
- package/esm/addon/index.js +3 -3
- package/esm/affix/Affix.js +14 -14
- package/esm/affix/index.js +14 -14
- package/esm/alert/Alert.js +5 -5
- package/esm/alert/index.js +5 -5
- package/esm/anchor/Anchor.js +28 -22
- package/esm/anchor/Anchor.js.map +1 -1
- package/esm/anchor/AnchorContext.js +1 -1
- package/esm/anchor/AnchorItem.js +2 -2
- package/esm/anchor/AnchorTarget.js +20 -4
- package/esm/anchor/AnchorTarget.js.map +1 -1
- package/esm/anchor/_util/clipboard.js +1 -1
- package/esm/anchor/_util/dom.js +1 -1
- package/esm/anchor/index.js +28 -22
- package/esm/anchor/index.js.map +1 -1
- package/esm/badge/Badge.js +3 -3
- package/esm/badge/index.js +3 -3
- package/esm/breadcrumb/Breadcrumb.js +3 -3
- package/esm/breadcrumb/BreadcrumbItem.js +3 -3
- package/esm/breadcrumb/BreadcrumbProps.js +1 -1
- package/esm/breadcrumb/index.js +3 -3
- package/esm/button/Button.js +15 -14
- package/esm/button/Button.js.map +1 -1
- package/esm/button/index.js +13 -13
- package/esm/calendar/Calendar.js +62 -38
- package/esm/calendar/Calendar.js.map +1 -1
- package/esm/calendar/_util.js +1 -1
- package/esm/calendar/_util.js.map +1 -1
- package/esm/calendar/index.js +31 -20
- package/esm/calendar/index.js.map +1 -1
- package/esm/cascader/Cascader.js +49 -40
- package/esm/cascader/Cascader.js.map +1 -1
- package/esm/cascader/components/InputContent.js +11 -11
- package/esm/cascader/components/Item.js +36 -18
- package/esm/cascader/components/Item.js.map +1 -1
- package/esm/cascader/components/Panel.js +34 -18
- package/esm/cascader/components/Panel.js.map +1 -1
- package/esm/cascader/index.js +49 -40
- package/esm/cascader/index.js.map +1 -1
- package/esm/cascader/interface.js +27 -27
- package/esm/cascader/utils/cascader.js +4 -4
- package/esm/cascader/utils/helper.js +2 -2
- package/esm/cascader/utils/inputContent.js +8 -8
- package/esm/cascader/utils/item.js +4 -4
- package/esm/cascader/utils/panel.js +11 -11
- package/esm/checkbox/Checkbox.js +23 -29
- package/esm/checkbox/Checkbox.js.map +1 -1
- package/esm/checkbox/CheckboxGroup.js +27 -97
- package/esm/checkbox/CheckboxGroup.js.map +1 -1
- package/esm/checkbox/index.js +20 -12
- package/esm/checkbox/index.js.map +1 -1
- package/esm/comment/Comment.js +1 -1
- package/esm/comment/index.js +1 -1
- package/esm/common/Check.js +18 -6
- package/esm/common/Check.js.map +1 -1
- package/esm/common/FakeArrow.js +2 -2
- package/esm/common/Portal.js +4 -4
- package/esm/config-provider/ConfigContext.d.ts +1 -0
- package/esm/config-provider/ConfigContext.js +1 -1
- package/esm/config-provider/ConfigProvider.js +3 -3
- package/esm/config-provider/index.js +3 -3
- package/esm/date-picker/DatePicker.js +31 -31
- package/esm/date-picker/base/CalendarPresets.js +13 -13
- package/esm/date-picker/base/Cell.js +2 -2
- package/esm/date-picker/base/Header.js +13 -13
- package/esm/date-picker/base/Table.js +5 -5
- package/esm/date-picker/index.js +31 -31
- package/esm/date-picker/panel/Date.js +27 -27
- package/esm/date-picker/panel/DateRange.js +27 -27
- package/esm/date-picker/utils.js +22 -22
- package/esm/dialog/Dialog.js +13 -13
- package/esm/dialog/RenderDialog.js +5 -5
- package/esm/dialog/index.js +13 -13
- package/esm/dialog/plugin.js +13 -13
- package/esm/divider/Divider.js +3 -3
- package/esm/divider/index.js +3 -3
- package/esm/drawer/Drawer.js +13 -13
- package/esm/drawer/DrawerWrapper.js +4 -4
- package/esm/drawer/_util.js +1 -1
- package/esm/drawer/index.js +13 -13
- package/esm/dropdown/Dropdown.js +6 -6
- package/esm/dropdown/DropdownItem.js +3 -3
- package/esm/dropdown/DropdownMenu.js +6 -6
- package/esm/dropdown/index.js +6 -6
- package/esm/form/Form.js +38 -39
- package/esm/form/Form.js.map +1 -1
- package/esm/form/FormContext.js +1 -1
- package/esm/form/FormItem.js +35 -36
- package/esm/form/FormItem.js.map +1 -1
- package/esm/form/formModel.js +29 -29
- package/esm/form/index.js +36 -37
- package/esm/form/index.js.map +1 -1
- package/esm/grid/Col.js +6 -6
- package/esm/grid/Row.js +8 -8
- package/esm/grid/index.js +8 -8
- package/esm/icon/type.js +1 -1
- package/esm/index.js +56 -53
- package/esm/index.js.map +1 -1
- package/esm/input/Input.js +11 -11
- package/esm/input/InputGroup.js +3 -3
- package/esm/input/index.js +11 -11
- package/esm/input-number/InputNumber.js +16 -16
- package/esm/input-number/StepHandler.js +13 -13
- package/esm/input-number/index.js +16 -16
- package/esm/input-number/utils/numberUtils.js +1 -1
- package/esm/layout/Layout.js +5 -5
- package/esm/layout/Sider.js +3 -3
- package/esm/layout/index.js +5 -5
- package/esm/list/List.js +24 -4
- package/esm/list/List.js.map +1 -1
- package/esm/list/ListItem.js +1 -1
- package/esm/list/ListItemMeta.js +1 -1
- package/esm/list/index.js +21 -3
- package/esm/list/index.js.map +1 -1
- package/esm/loading/index.js +12 -12
- package/esm/loading/loading.d.ts +1 -0
- package/esm/loading/loading.js +64 -17
- package/esm/loading/loading.js.map +1 -1
- package/esm/locale/LocalReceiver.js +3 -3
- package/esm/locale/type.js +1 -1
- package/esm/locale/zh_CN.d.ts +1 -0
- package/esm/locale/zh_CN.js +2 -1
- package/esm/locale/zh_CN.js.map +1 -1
- package/esm/menu/HeadMenu.js +8 -8
- package/esm/menu/Menu.js +8 -8
- package/esm/menu/MenuContext.js +1 -1
- package/esm/menu/MenuGroup.js +1 -1
- package/esm/menu/MenuItem.js +2 -2
- package/esm/menu/SubMenu.js +4 -4
- package/esm/menu/_util/cacularPaddingLeft.js +1 -1
- package/esm/menu/_util/checkMenuType.js +1 -1
- package/esm/menu/_util/checkSubMenuActive.js +1 -1
- package/esm/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/esm/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/esm/menu/_util/constant.js +1 -1
- package/esm/menu/_util/getSubMenuChildStyle.js +1 -1
- package/esm/menu/_util/type.js +1 -1
- package/esm/menu/hooks/useMenuContext.js +5 -5
- package/esm/menu/index.js +8 -8
- package/esm/message/Message.js +20 -4
- package/esm/message/Message.js.map +1 -1
- package/esm/message/MessageClose.js +1 -1
- package/esm/message/MessageComponent.js +21 -4
- package/esm/message/MessageComponent.js.map +1 -1
- package/esm/message/MessageIcon.js +34 -3
- package/esm/message/MessageIcon.js.map +1 -1
- package/esm/message/const.js +1 -1
- package/esm/message/index.js +20 -4
- package/esm/message/index.js.map +1 -1
- package/esm/message/useMessageClass.js +1 -1
- package/esm/notification/Notification.js +7 -7
- package/esm/notification/NotificationList.js +7 -7
- package/esm/notification/index.js +7 -7
- package/esm/pagination/Pagination.js +35 -19
- package/esm/pagination/Pagination.js.map +1 -1
- package/esm/pagination/index.js +35 -19
- package/esm/pagination/index.js.map +1 -1
- package/esm/pagination/validators.js +1 -1
- package/esm/popconfirm/PopConfirm.js +14 -14
- package/esm/popconfirm/PopContent.js +13 -13
- package/esm/popconfirm/index.js +14 -14
- package/esm/popup/Popup.js +4 -4
- package/esm/popup/Portal.js +1 -1
- package/esm/popup/index.js +4 -4
- package/esm/popup/useTriggerProps.js +1 -1
- package/esm/progress/Progress.js +3 -3
- package/esm/progress/index.js +3 -3
- package/esm/radio/Radio.js +18 -6
- package/esm/radio/Radio.js.map +1 -1
- package/esm/radio/RadioGroup.js +18 -6
- package/esm/radio/RadioGroup.js.map +1 -1
- package/esm/radio/index.js +18 -6
- package/esm/radio/index.js.map +1 -1
- package/esm/select/base/Option.d.ts +5 -2
- package/esm/select/base/Option.js +44 -30
- package/esm/select/base/Option.js.map +1 -1
- package/esm/select/base/OptionGroup.d.ts +1 -0
- package/esm/select/base/OptionGroup.js +6 -4
- package/esm/select/base/OptionGroup.js.map +1 -1
- package/esm/select/base/PopupContent.d.ts +2 -1
- package/esm/select/base/PopupContent.js +61 -22
- package/esm/select/base/PopupContent.js.map +1 -1
- package/esm/select/base/Select.d.ts +2 -1
- package/esm/select/base/Select.js +117 -73
- package/esm/select/base/Select.js.map +1 -1
- package/esm/select/index.js +36 -20
- package/esm/select/index.js.map +1 -1
- package/esm/select/util/helper.d.ts +4 -5
- package/esm/select/util/helper.js +15 -26
- package/esm/select/util/helper.js.map +1 -1
- package/esm/slider/Slider.js +16 -16
- package/esm/slider/SliderHandleButton.js +7 -7
- package/esm/slider/index.js +16 -16
- package/esm/slider/utils/handleNumber.js +1 -1
- package/esm/steps/StepItem.js +2 -2
- package/esm/steps/Steps.js +2 -2
- package/esm/steps/StepsContext.js +1 -1
- package/esm/steps/index.js +2 -2
- package/esm/swiper/Swiper.js +4 -4
- package/esm/swiper/SwiperItem.js +1 -1
- package/esm/swiper/index.js +4 -4
- package/esm/switch/Switch.js +26 -7
- package/esm/switch/Switch.js.map +1 -1
- package/esm/switch/index.js +22 -6
- package/esm/switch/index.js.map +1 -1
- package/esm/table/base/Table.js +33 -33
- package/esm/table/base/TableAsyncLoadingBody.js +15 -15
- package/esm/table/base/TableBody.js +21 -21
- package/esm/table/base/TableCell.js +4 -4
- package/esm/table/base/TableColGroup.js +1 -1
- package/esm/table/base/TableContext.js +1 -1
- package/esm/table/base/TableEmptyBody.js +1 -1
- package/esm/table/base/TableFooter.js +1 -1
- package/esm/table/base/TableHeader.js +12 -12
- package/esm/table/base/TableLoadingBody.js +7 -7
- package/esm/table/base/TableRow.js +21 -21
- package/esm/table/hooks/useColumns.js +4 -4
- package/esm/table/index.js +43 -40
- package/esm/table/index.js.map +1 -1
- package/esm/table/primary/FilterButton.js +25 -19
- package/esm/table/primary/FilterButton.js.map +1 -1
- package/esm/table/primary/SorterButton.js +7 -7
- package/esm/table/primary/Table.js +43 -40
- package/esm/table/primary/Table.js.map +1 -1
- package/esm/table/primary/expand-box.js +3 -3
- package/esm/table/primary/useExpand.js +22 -22
- package/esm/table/primary/useFilter.js +25 -19
- package/esm/table/primary/useFilter.js.map +1 -1
- package/esm/table/primary/useSelect.js +25 -17
- package/esm/table/primary/useSelect.js.map +1 -1
- package/esm/table/primary/useSorter.js +22 -22
- package/esm/table/util/getRowKeyFromRowKey.js +1 -1
- package/esm/table/util/index.js +1 -1
- package/esm/tabs/TabBar.js +4 -4
- package/esm/tabs/TabNav.js +4 -4
- package/esm/tabs/TabNavItem.js +1 -1
- package/esm/tabs/TabPanel.js +1 -1
- package/esm/tabs/Tabs.js +4 -4
- package/esm/tabs/index.js +4 -4
- package/esm/tabs/useTabClass.js +1 -1
- package/esm/tag/CheckTag.js +14 -8
- package/esm/tag/CheckTag.js.map +1 -1
- package/esm/tag/Tag.js +7 -6
- package/esm/tag/Tag.js.map +1 -1
- package/esm/tag/index.js +5 -5
- package/esm/textarea/Textarea.js +5 -5
- package/esm/textarea/index.js +5 -5
- package/esm/time-picker/InputItems.js +21 -21
- package/esm/time-picker/TimePicker.js +31 -31
- package/esm/time-picker/TimeRangePicker.js +31 -31
- package/esm/time-picker/consts.js +5 -5
- package/esm/time-picker/index.js +31 -31
- package/esm/time-picker/interfaces.js +1 -1
- package/esm/time-picker/panel/SinglePanel.js +28 -28
- package/esm/time-picker/panel/TimePickerPanel.js +30 -30
- package/esm/time-picker/panel/TimePickerRangePanel.js +30 -30
- package/esm/tooltip/Tooltip.js +7 -7
- package/esm/tooltip/index.js +7 -7
- package/esm/tree/Tree.d.ts +1 -2
- package/esm/tree/Tree.js +50 -39
- package/esm/tree/Tree.js.map +1 -1
- package/esm/tree/TreeItem.js +33 -15
- package/esm/tree/TreeItem.js.map +1 -1
- package/esm/tree/index.js +50 -39
- package/esm/tree/index.js.map +1 -1
- package/esm/tree/interface.js +1 -1
- package/esm/tree/useControllable.js +3 -3
- package/esm/tree/useStore.js +34 -34
- package/esm/tree/useTreeConfig.js +1 -1
- package/esm/tree-select/TreeSelect.js +103 -195
- package/esm/tree-select/TreeSelect.js.map +1 -1
- package/esm/tree-select/TreeSelectInput.d.ts +11 -0
- package/esm/tree-select/TreeSelectInput.js +136 -0
- package/esm/tree-select/TreeSelectInput.js.map +1 -0
- package/esm/tree-select/TreeSelectSuffix.d.ts +9 -0
- package/esm/tree-select/TreeSelectSuffix.js +82 -0
- package/esm/tree-select/TreeSelectSuffix.js.map +1 -0
- package/esm/tree-select/TreeSelectTags.d.ts +6 -0
- package/esm/tree-select/TreeSelectTags.js +79 -0
- package/esm/tree-select/TreeSelectTags.js.map +1 -0
- package/esm/tree-select/index.js +65 -52
- package/esm/tree-select/index.js.map +1 -1
- package/esm/tree-select/useTreeSelectConfig.d.ts +10 -0
- package/esm/tree-select/useTreeSelectConfig.js +50 -0
- package/esm/tree-select/useTreeSelectConfig.js.map +1 -0
- package/esm/upload/dragger.js +14 -14
- package/esm/upload/hooks/useDefaultValue.js +7 -7
- package/esm/upload/index.js +25 -25
- package/esm/upload/themes/dragger-progress.js +14 -14
- package/esm/upload/themes/image-card.js +14 -14
- package/esm/upload/themes/single-file.js +12 -12
- package/esm/upload/tips.js +1 -1
- package/esm/upload/types.js +1 -1
- package/esm/upload/upload-trigger.js +13 -13
- package/esm/upload/upload.js +25 -25
- package/esm/upload/util.js +3 -3
- package/esm/upload/utils/request.js +1 -1
- package/lib/_chunks/{dep-79c7181c.js → dep-016d27a7.js} +2 -2
- package/lib/_chunks/{dep-79c7181c.js.map → dep-016d27a7.js.map} +1 -1
- package/lib/_chunks/{dep-89afcace.js → dep-055db390.js} +4 -4
- package/lib/_chunks/{dep-89afcace.js.map → dep-055db390.js.map} +1 -1
- package/lib/_chunks/{dep-94878eaa.js → dep-074cf15e.js} +2 -2
- package/lib/_chunks/{dep-94878eaa.js.map → dep-074cf15e.js.map} +1 -1
- package/lib/_chunks/{dep-345c8a5b.js → dep-0880a342.js} +3 -3
- package/lib/_chunks/{dep-345c8a5b.js.map → dep-0880a342.js.map} +1 -1
- package/lib/_chunks/{dep-3fb30826.js → dep-0d083983.js} +4 -4
- package/lib/_chunks/{dep-3fb30826.js.map → dep-0d083983.js.map} +1 -1
- package/lib/_chunks/{dep-06e0856f.js → dep-10546ff8.js} +2 -2
- package/lib/_chunks/{dep-06e0856f.js.map → dep-10546ff8.js.map} +1 -1
- package/lib/_chunks/dep-1189939f.js +24 -0
- package/lib/_chunks/{dep-45dee455.js.map → dep-1189939f.js.map} +1 -1
- package/lib/_chunks/{dep-f6f5d8ab.js → dep-1599f0a8.js} +5 -5
- package/lib/_chunks/{dep-f6f5d8ab.js.map → dep-1599f0a8.js.map} +1 -1
- package/lib/_chunks/dep-1c0e13f0.js +189 -0
- package/lib/_chunks/dep-1c0e13f0.js.map +1 -0
- package/{es/_chunks/dep-222f3011.js → lib/_chunks/dep-2eeaa58b.js} +3 -3
- package/lib/_chunks/{dep-222f3011.js.map → dep-2eeaa58b.js.map} +1 -1
- package/{esm/_chunks/dep-24340815.js → lib/_chunks/dep-2f008905.js} +3 -3
- package/lib/_chunks/{dep-24340815.js.map → dep-2f008905.js.map} +1 -1
- package/lib/_chunks/{dep-0408250a.js → dep-3da59a88.js} +5 -5
- package/lib/_chunks/{dep-0408250a.js.map → dep-3da59a88.js.map} +1 -1
- package/lib/_chunks/{dep-ee70bc2c.js → dep-3f11cde6.js} +2 -2
- package/lib/_chunks/{dep-ee70bc2c.js.map → dep-3f11cde6.js.map} +1 -1
- package/lib/_chunks/{dep-41bdf3a7.js → dep-4250a6ff.js} +2 -2
- package/lib/_chunks/{dep-41bdf3a7.js.map → dep-4250a6ff.js.map} +1 -1
- package/lib/_chunks/{dep-18a13874.js → dep-4c6e8221.js} +3 -3
- package/lib/_chunks/{dep-18a13874.js.map → dep-4c6e8221.js.map} +1 -1
- package/lib/_chunks/{dep-e45cb572.js → dep-4fec9bd1.js} +3 -3
- package/lib/_chunks/{dep-e45cb572.js.map → dep-4fec9bd1.js.map} +1 -1
- package/lib/_chunks/{dep-e57e5828.js → dep-52c068bd.js} +5 -5
- package/lib/_chunks/{dep-e57e5828.js.map → dep-52c068bd.js.map} +1 -1
- package/lib/_chunks/{dep-ffc2cf12.js → dep-55f421f1.js} +12 -12
- package/lib/_chunks/{dep-ffc2cf12.js.map → dep-55f421f1.js.map} +1 -1
- package/lib/_chunks/{dep-22cad52a.js → dep-5a05d23d.js} +4 -4
- package/lib/_chunks/{dep-22cad52a.js.map → dep-5a05d23d.js.map} +1 -1
- package/lib/_chunks/{dep-3c1844a2.js → dep-5bf9b67f.js} +6 -6
- package/lib/_chunks/{dep-3c1844a2.js.map → dep-5bf9b67f.js.map} +1 -1
- package/lib/_chunks/dep-65c183dc.js +24 -0
- package/lib/_chunks/{dep-6d4c74ed.js.map → dep-65c183dc.js.map} +1 -1
- package/lib/_chunks/{dep-d056abc2.js → dep-6a5b1968.js} +2 -2
- package/lib/_chunks/{dep-d056abc2.js.map → dep-6a5b1968.js.map} +1 -1
- package/lib/_chunks/{dep-7500c6cf.js → dep-6b58dff4.js} +6 -6
- package/lib/_chunks/{dep-7500c6cf.js.map → dep-6b58dff4.js.map} +1 -1
- package/lib/_chunks/{dep-6e6249da.js → dep-748f57d4.js} +5 -5
- package/lib/_chunks/{dep-6e6249da.js.map → dep-748f57d4.js.map} +1 -1
- package/lib/_chunks/{dep-4b7d6550.js → dep-79cd2b4c.js} +5 -5
- package/lib/_chunks/{dep-4b7d6550.js.map → dep-79cd2b4c.js.map} +1 -1
- package/lib/_chunks/{dep-37d92e45.js → dep-7c923347.js} +8 -8
- package/lib/_chunks/{dep-37d92e45.js.map → dep-7c923347.js.map} +1 -1
- package/lib/_chunks/{dep-e07d5776.js → dep-8ee90a68.js} +3 -3
- package/lib/_chunks/{dep-e07d5776.js.map → dep-8ee90a68.js.map} +1 -1
- package/lib/_chunks/{dep-7cfd8084.js → dep-8feebb03.js} +3 -3
- package/lib/_chunks/{dep-7cfd8084.js.map → dep-8feebb03.js.map} +1 -1
- package/lib/_chunks/{dep-21b97e9f.js → dep-9ba235ac.js} +5 -5
- package/lib/_chunks/{dep-21b97e9f.js.map → dep-9ba235ac.js.map} +1 -1
- package/lib/_chunks/{dep-0d3baea9.js → dep-9bf1ae6b.js} +5 -5
- package/lib/_chunks/{dep-0d3baea9.js.map → dep-9bf1ae6b.js.map} +1 -1
- package/lib/_chunks/{dep-1ae4ec84.js → dep-9df99dbb.js} +4 -4
- package/lib/_chunks/{dep-1ae4ec84.js.map → dep-9df99dbb.js.map} +1 -1
- package/lib/_chunks/{dep-086ccf0a.js → dep-a04349e0.js} +4 -4
- package/lib/_chunks/{dep-086ccf0a.js.map → dep-a04349e0.js.map} +1 -1
- package/lib/_chunks/{dep-55fa7e41.js → dep-a573ca40.js} +9 -9
- package/lib/_chunks/{dep-55fa7e41.js.map → dep-a573ca40.js.map} +1 -1
- package/lib/_chunks/{dep-0ecefbbb.js → dep-a826f542.js} +3 -3
- package/lib/_chunks/{dep-0ecefbbb.js.map → dep-a826f542.js.map} +1 -1
- package/lib/_chunks/{dep-ebba70a3.js → dep-a9bd7f64.js} +7 -7
- package/lib/_chunks/{dep-ebba70a3.js.map → dep-a9bd7f64.js.map} +1 -1
- package/lib/_chunks/{dep-fc33357f.js → dep-abf83e45.js} +4 -4
- package/lib/_chunks/{dep-fc33357f.js.map → dep-abf83e45.js.map} +1 -1
- package/lib/_chunks/{dep-fea092d1.js → dep-c1308ed9.js} +2 -2
- package/lib/_chunks/{dep-fea092d1.js.map → dep-c1308ed9.js.map} +1 -1
- package/lib/_chunks/{dep-3b7115d6.js → dep-c57e4f2f.js} +3 -3
- package/lib/_chunks/{dep-3b7115d6.js.map → dep-c57e4f2f.js.map} +1 -1
- package/lib/_chunks/{dep-bb979172.js → dep-c6319c67.js} +2 -2
- package/lib/_chunks/{dep-bb979172.js.map → dep-c6319c67.js.map} +1 -1
- package/lib/_chunks/{dep-843d7b80.js → dep-cd28bcad.js} +5 -5
- package/lib/_chunks/{dep-843d7b80.js.map → dep-cd28bcad.js.map} +1 -1
- package/lib/_chunks/{dep-352c4cc5.js → dep-d5ea2e86.js} +4 -4
- package/lib/_chunks/{dep-352c4cc5.js.map → dep-d5ea2e86.js.map} +1 -1
- package/lib/_chunks/{dep-2a81ed9a.js → dep-ec7c70e8.js} +7 -7
- package/lib/_chunks/{dep-2a81ed9a.js.map → dep-ec7c70e8.js.map} +1 -1
- package/lib/_chunks/{dep-b05711f1.js → dep-efe7433b.js} +2 -2
- package/lib/_chunks/{dep-b05711f1.js.map → dep-efe7433b.js.map} +1 -1
- package/lib/_chunks/{dep-4d19a919.js → dep-f879eead.js} +3 -3
- package/lib/_chunks/{dep-4d19a919.js.map → dep-f879eead.js.map} +1 -1
- package/lib/_chunks/{dep-ad6ca60c.js → dep-fc7e0774.js} +87 -74
- package/lib/_chunks/dep-fc7e0774.js.map +1 -0
- package/lib/_common/js/common.js +1 -1
- package/lib/_common/js/tree/tree-node-model.js +18 -18
- package/lib/_common/js/tree/tree-node.js +23 -23
- package/lib/_common/js/tree/tree-store.d.ts +4 -0
- package/lib/_common/js/tree/tree-store.js +29 -29
- package/lib/_common/js/tree/types.js +1 -1
- package/lib/_type/ControlledProps.js +1 -1
- package/lib/_type/StyledProps.js +1 -1
- package/lib/_type/common.js +1 -1
- package/lib/_type/components/affix/index.js +1 -1
- package/lib/_type/components/alert/index.js +1 -1
- package/lib/_type/components/anchor/index.js +1 -1
- package/lib/_type/components/anchor-item/index.js +1 -1
- package/lib/_type/components/anchor-target/index.js +1 -1
- package/lib/_type/components/badge/index.js +1 -1
- package/lib/_type/components/breadcrumb/index.js +1 -1
- package/lib/_type/components/button/index.js +1 -1
- package/lib/_type/components/calendar/index.d.ts +5 -0
- package/lib/_type/components/calendar/index.js +1 -1
- package/lib/_type/components/cascader/index.js +1 -1
- package/lib/_type/components/checkbox/index.js +1 -1
- package/lib/_type/components/comment/index.js +1 -1
- package/lib/_type/components/date-picker/index.js +1 -1
- package/lib/_type/components/dialog/index.js +1 -1
- package/lib/_type/components/divider/index.js +1 -1
- package/lib/_type/components/drawer/index.js +1 -1
- package/lib/_type/components/dropdown/index.js +1 -1
- package/lib/_type/components/form/index.js +1 -1
- package/lib/_type/components/grid/index.js +1 -1
- package/lib/_type/components/icon/index.js +1 -1
- package/lib/_type/components/icon-svg/index.js +1 -1
- package/lib/_type/components/iconfont/index.js +1 -1
- package/lib/_type/components/input/index.js +1 -1
- package/lib/_type/components/input-number/index.js +1 -1
- package/lib/_type/components/layout/index.js +1 -1
- package/lib/_type/components/list/index.js +1 -1
- package/lib/_type/components/loading/index.js +1 -1
- package/lib/_type/components/menu/index.js +1 -1
- package/lib/_type/components/message/index.js +1 -1
- package/lib/_type/components/notification/index.js +1 -1
- package/lib/_type/components/pagination/index.js +1 -1
- package/lib/_type/components/popconfirm/index.js +1 -1
- package/lib/_type/components/popup/index.js +1 -1
- package/lib/_type/components/progress/index.js +1 -1
- package/lib/_type/components/radio/index.js +1 -1
- package/lib/_type/components/select/index.d.ts +62 -17
- package/lib/_type/components/select/index.js +1 -1
- package/lib/_type/components/slider/index.js +1 -1
- package/lib/_type/components/steps/index.js +1 -1
- package/lib/_type/components/swiper/index.js +1 -1
- package/lib/_type/components/switch/index.js +1 -1
- package/lib/_type/components/table/index.js +1 -1
- package/lib/_type/components/tabs/index.js +1 -1
- package/lib/_type/components/tag/index.d.ts +1 -1
- package/lib/_type/components/tag/index.js +1 -1
- package/lib/_type/components/textarea/index.js +1 -1
- package/lib/_type/components/time-picker/index.js +1 -1
- package/lib/_type/components/tooltip/index.js +1 -1
- package/lib/_type/components/transfer/index.js +1 -1
- package/lib/_type/components/tree/index.js +1 -1
- package/lib/_type/components/tree-select/index.d.ts +16 -3
- package/lib/_type/components/tree-select/index.js +1 -1
- package/lib/_type/components/upload/index.js +1 -1
- package/lib/_type/index.js +1 -1
- package/lib/_type/util.js +1 -1
- package/lib/_util/callBoth.js +1 -1
- package/lib/_util/composeRefs.js +1 -1
- package/lib/_util/dom.js +6 -6
- package/lib/_util/easing.js +1 -1
- package/lib/_util/forwardRefWithStatics.js +1 -1
- package/lib/_util/getScrollbarWidth.js +1 -1
- package/lib/_util/hasScrollBar.js +1 -1
- package/lib/_util/helper.js +14 -14
- package/lib/_util/injectValue.js +1 -1
- package/lib/_util/insertCSS.js +1 -1
- package/lib/_util/isCallable.js +1 -1
- package/lib/_util/linearGradient.js +2 -2
- package/lib/_util/noop.js +1 -1
- package/lib/_util/number.js +1 -1
- package/lib/_util/setStyle.js +1 -1
- package/lib/_util/useClickOutside.js +1 -1
- package/lib/_util/useCommonClassName.js +1 -1
- package/lib/_util/useConfig.js +1 -1
- package/lib/_util/useDefault.js +3 -3
- package/lib/_util/useDefaultValue.js +5 -5
- package/lib/_util/usePersistFn.js +1 -1
- package/lib/_util/usePrevious.js +1 -1
- package/lib/_util/useRefAndForward.js +1 -1
- package/lib/_util/useRipple.js +1 -1
- package/lib/_util/useSetState.js +4 -4
- package/lib/_util/useUpdateEffect.js +1 -1
- package/lib/addon/Addon.js +3 -3
- package/lib/addon/index.js +3 -3
- package/lib/affix/Affix.js +11 -11
- package/lib/affix/index.js +11 -11
- package/lib/alert/Alert.js +5 -5
- package/lib/alert/index.js +5 -5
- package/lib/anchor/Anchor.js +22 -18
- package/lib/anchor/Anchor.js.map +1 -1
- package/lib/anchor/AnchorContext.js +1 -1
- package/lib/anchor/AnchorItem.js +2 -2
- package/lib/anchor/AnchorTarget.js +16 -4
- package/lib/anchor/AnchorTarget.js.map +1 -1
- package/lib/anchor/_util/clipboard.js +1 -1
- package/lib/anchor/_util/dom.js +1 -1
- package/lib/anchor/index.js +22 -18
- package/lib/anchor/index.js.map +1 -1
- package/lib/badge/Badge.js +3 -3
- package/lib/badge/index.js +3 -3
- package/lib/breadcrumb/Breadcrumb.js +3 -3
- package/lib/breadcrumb/BreadcrumbItem.js +3 -3
- package/lib/breadcrumb/BreadcrumbProps.js +1 -1
- package/lib/breadcrumb/index.js +3 -3
- package/lib/button/Button.js +13 -12
- package/lib/button/Button.js.map +1 -1
- package/lib/button/index.js +11 -11
- package/lib/calendar/Calendar.js +58 -35
- package/lib/calendar/Calendar.js.map +1 -1
- package/lib/calendar/_util.js +1 -1
- package/lib/calendar/_util.js.map +1 -1
- package/lib/calendar/index.js +27 -17
- package/lib/calendar/index.js.map +1 -1
- package/lib/cascader/Cascader.js +43 -36
- package/lib/cascader/Cascader.js.map +1 -1
- package/lib/cascader/components/InputContent.js +9 -9
- package/lib/cascader/components/Item.js +32 -17
- package/lib/cascader/components/Item.js.map +1 -1
- package/lib/cascader/components/Panel.js +29 -16
- package/lib/cascader/components/Panel.js.map +1 -1
- package/lib/cascader/index.js +43 -36
- package/lib/cascader/index.js.map +1 -1
- package/lib/cascader/interface.js +23 -23
- package/lib/cascader/utils/cascader.js +4 -4
- package/lib/cascader/utils/helper.js +2 -2
- package/lib/cascader/utils/inputContent.js +6 -6
- package/lib/cascader/utils/item.js +4 -4
- package/lib/cascader/utils/panel.js +9 -9
- package/lib/checkbox/Checkbox.js +21 -28
- package/lib/checkbox/Checkbox.js.map +1 -1
- package/lib/checkbox/CheckboxGroup.js +25 -96
- package/lib/checkbox/CheckboxGroup.js.map +1 -1
- package/lib/checkbox/index.js +18 -11
- package/lib/checkbox/index.js.map +1 -1
- package/lib/comment/Comment.js +1 -1
- package/lib/comment/index.js +1 -1
- package/lib/common/Check.js +16 -6
- package/lib/common/Check.js.map +1 -1
- package/lib/common/FakeArrow.js +2 -2
- package/lib/common/Portal.js +4 -4
- package/lib/config-provider/ConfigContext.d.ts +1 -0
- package/lib/config-provider/ConfigContext.js +1 -1
- package/lib/config-provider/ConfigProvider.js +3 -3
- package/lib/config-provider/index.js +3 -3
- package/lib/date-picker/DatePicker.js +27 -27
- package/lib/date-picker/base/CalendarPresets.js +11 -11
- package/lib/date-picker/base/Cell.js +2 -2
- package/lib/date-picker/base/Header.js +11 -11
- package/lib/date-picker/base/Table.js +4 -4
- package/lib/date-picker/index.js +27 -27
- package/lib/date-picker/panel/Date.js +23 -23
- package/lib/date-picker/panel/DateRange.js +23 -23
- package/lib/date-picker/utils.js +19 -19
- package/lib/dialog/Dialog.js +11 -11
- package/lib/dialog/RenderDialog.js +5 -5
- package/lib/dialog/index.js +11 -11
- package/lib/dialog/plugin.js +11 -11
- package/lib/divider/Divider.js +3 -3
- package/lib/divider/index.js +3 -3
- package/lib/drawer/Drawer.js +11 -11
- package/lib/drawer/DrawerWrapper.js +4 -4
- package/lib/drawer/_util.js +1 -1
- package/lib/drawer/index.js +11 -11
- package/lib/dropdown/Dropdown.js +6 -6
- package/lib/dropdown/DropdownItem.js +3 -3
- package/lib/dropdown/DropdownMenu.js +6 -6
- package/lib/dropdown/index.js +6 -6
- package/lib/form/Form.js +32 -33
- package/lib/form/Form.js.map +1 -1
- package/lib/form/FormContext.js +1 -1
- package/lib/form/FormItem.js +31 -32
- package/lib/form/FormItem.js.map +1 -1
- package/lib/form/formModel.js +25 -25
- package/lib/form/index.js +32 -33
- package/lib/form/index.js.map +1 -1
- package/lib/grid/Col.js +5 -5
- package/lib/grid/Row.js +7 -7
- package/lib/grid/index.js +7 -7
- package/lib/icon/type.js +1 -1
- package/lib/index.js +52 -49
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +9 -9
- package/lib/input/InputGroup.js +3 -3
- package/lib/input/index.js +9 -9
- package/lib/input-number/InputNumber.js +13 -13
- package/lib/input-number/StepHandler.js +11 -11
- package/lib/input-number/index.js +13 -13
- package/lib/input-number/utils/numberUtils.js +1 -1
- package/lib/layout/Layout.js +5 -5
- package/lib/layout/Sider.js +3 -3
- package/lib/layout/index.js +5 -5
- package/lib/list/List.js +20 -4
- package/lib/list/List.js.map +1 -1
- package/lib/list/ListItem.js +1 -1
- package/lib/list/ListItemMeta.js +1 -1
- package/lib/list/index.js +17 -3
- package/lib/list/index.js.map +1 -1
- package/lib/loading/index.js +10 -10
- package/lib/loading/loading.d.ts +1 -0
- package/lib/loading/loading.js +62 -15
- package/lib/loading/loading.js.map +1 -1
- package/lib/locale/LocalReceiver.js +2 -2
- package/lib/locale/type.js +1 -1
- package/lib/locale/zh_CN.d.ts +1 -0
- package/lib/locale/zh_CN.js +2 -1
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/menu/HeadMenu.js +7 -7
- package/lib/menu/Menu.js +7 -7
- package/lib/menu/MenuContext.js +1 -1
- package/lib/menu/MenuGroup.js +1 -1
- package/lib/menu/MenuItem.js +2 -2
- package/lib/menu/SubMenu.js +4 -4
- package/lib/menu/_util/cacularPaddingLeft.js +1 -1
- package/lib/menu/_util/checkMenuType.js +1 -1
- package/lib/menu/_util/checkSubMenuActive.js +1 -1
- package/lib/menu/_util/checkSubMenuChildExpanded.js +3 -3
- package/lib/menu/_util/checkSubMenuChildrenActive.js +1 -1
- package/lib/menu/_util/constant.js +1 -1
- package/lib/menu/_util/getSubMenuChildStyle.js +1 -1
- package/lib/menu/_util/type.js +1 -1
- package/lib/menu/hooks/useMenuContext.js +5 -5
- package/lib/menu/index.js +7 -7
- package/lib/message/Message.js +16 -4
- package/lib/message/Message.js.map +1 -1
- package/lib/message/MessageClose.js +1 -1
- package/lib/message/MessageComponent.js +17 -4
- package/lib/message/MessageComponent.js.map +1 -1
- package/lib/message/MessageIcon.js +30 -3
- package/lib/message/MessageIcon.js.map +1 -1
- package/lib/message/const.js +1 -1
- package/lib/message/index.js +16 -4
- package/lib/message/index.js.map +1 -1
- package/lib/message/useMessageClass.js +1 -1
- package/lib/notification/Notification.js +7 -7
- package/lib/notification/NotificationList.js +7 -7
- package/lib/notification/index.js +7 -7
- package/lib/pagination/Pagination.js +29 -16
- package/lib/pagination/Pagination.js.map +1 -1
- package/lib/pagination/index.js +29 -16
- package/lib/pagination/index.js.map +1 -1
- package/lib/pagination/validators.js +1 -1
- package/lib/popconfirm/PopConfirm.js +12 -12
- package/lib/popconfirm/PopContent.js +11 -11
- package/lib/popconfirm/index.js +12 -12
- package/lib/popup/Popup.js +4 -4
- package/lib/popup/Portal.js +1 -1
- package/lib/popup/index.js +4 -4
- package/lib/popup/useTriggerProps.js +1 -1
- package/lib/progress/Progress.js +3 -3
- package/lib/progress/index.js +3 -3
- package/lib/radio/Radio.js +16 -6
- package/lib/radio/Radio.js.map +1 -1
- package/lib/radio/RadioGroup.js +16 -6
- package/lib/radio/RadioGroup.js.map +1 -1
- package/lib/radio/index.js +16 -6
- package/lib/radio/index.js.map +1 -1
- package/lib/select/base/Option.d.ts +5 -2
- package/lib/select/base/Option.js +40 -28
- package/lib/select/base/Option.js.map +1 -1
- package/lib/select/base/OptionGroup.d.ts +1 -0
- package/lib/select/base/OptionGroup.js +6 -4
- package/lib/select/base/OptionGroup.js.map +1 -1
- package/lib/select/base/PopupContent.d.ts +2 -1
- package/lib/select/base/PopupContent.js +57 -19
- package/lib/select/base/PopupContent.js.map +1 -1
- package/lib/select/base/Select.d.ts +2 -1
- package/lib/select/base/Select.js +112 -71
- package/lib/select/base/Select.js.map +1 -1
- package/lib/select/index.js +30 -17
- package/lib/select/index.js.map +1 -1
- package/lib/select/util/helper.d.ts +4 -5
- package/lib/select/util/helper.js +15 -26
- package/lib/select/util/helper.js.map +1 -1
- package/lib/slider/Slider.js +13 -13
- package/lib/slider/SliderHandleButton.js +6 -6
- package/lib/slider/index.js +13 -13
- package/lib/slider/utils/handleNumber.js +1 -1
- package/lib/steps/StepItem.js +2 -2
- package/lib/steps/Steps.js +2 -2
- package/lib/steps/StepsContext.js +1 -1
- package/lib/steps/index.js +2 -2
- package/lib/swiper/Swiper.js +4 -4
- package/lib/swiper/SwiperItem.js +1 -1
- package/lib/swiper/index.js +4 -4
- package/lib/switch/Switch.js +22 -7
- package/lib/switch/Switch.js.map +1 -1
- package/lib/switch/index.js +18 -6
- package/lib/switch/index.js.map +1 -1
- package/lib/table/base/Table.js +27 -27
- package/lib/table/base/TableAsyncLoadingBody.js +12 -12
- package/lib/table/base/TableBody.js +17 -17
- package/lib/table/base/TableCell.js +4 -4
- package/lib/table/base/TableColGroup.js +1 -1
- package/lib/table/base/TableContext.js +1 -1
- package/lib/table/base/TableEmptyBody.js +1 -1
- package/lib/table/base/TableFooter.js +1 -1
- package/lib/table/base/TableHeader.js +10 -10
- package/lib/table/base/TableLoadingBody.js +5 -5
- package/lib/table/base/TableRow.js +17 -17
- package/lib/table/hooks/useColumns.js +4 -4
- package/lib/table/index.js +37 -34
- package/lib/table/index.js.map +1 -1
- package/lib/table/primary/FilterButton.js +22 -16
- package/lib/table/primary/FilterButton.js.map +1 -1
- package/lib/table/primary/SorterButton.js +6 -6
- package/lib/table/primary/Table.js +37 -34
- package/lib/table/primary/Table.js.map +1 -1
- package/lib/table/primary/expand-box.js +2 -2
- package/lib/table/primary/useExpand.js +17 -17
- package/lib/table/primary/useFilter.js +22 -16
- package/lib/table/primary/useFilter.js.map +1 -1
- package/lib/table/primary/useSelect.js +22 -15
- package/lib/table/primary/useSelect.js.map +1 -1
- package/lib/table/primary/useSorter.js +18 -18
- package/lib/table/util/getRowKeyFromRowKey.js +1 -1
- package/lib/table/util/index.js +1 -1
- package/lib/tabs/TabBar.js +4 -4
- package/lib/tabs/TabNav.js +4 -4
- package/lib/tabs/TabNavItem.js +1 -1
- package/lib/tabs/TabPanel.js +1 -1
- package/lib/tabs/Tabs.js +4 -4
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/useTabClass.js +1 -1
- package/lib/tag/CheckTag.js +14 -8
- package/lib/tag/CheckTag.js.map +1 -1
- package/lib/tag/Tag.js +7 -6
- package/lib/tag/Tag.js.map +1 -1
- package/lib/tag/index.js +5 -5
- package/lib/textarea/Textarea.js +5 -5
- package/lib/textarea/index.js +5 -5
- package/lib/time-picker/InputItems.js +17 -17
- package/lib/time-picker/TimePicker.js +27 -27
- package/lib/time-picker/TimeRangePicker.js +27 -27
- package/lib/time-picker/consts.js +4 -4
- package/lib/time-picker/index.js +27 -27
- package/lib/time-picker/interfaces.js +1 -1
- package/lib/time-picker/panel/SinglePanel.js +23 -23
- package/lib/time-picker/panel/TimePickerPanel.js +26 -26
- package/lib/time-picker/panel/TimePickerRangePanel.js +26 -26
- package/lib/tooltip/Tooltip.js +6 -6
- package/lib/tooltip/index.js +6 -6
- package/lib/tree/Tree.d.ts +1 -2
- package/lib/tree/Tree.js +44 -35
- package/lib/tree/Tree.js.map +1 -1
- package/lib/tree/TreeItem.js +29 -14
- package/lib/tree/TreeItem.js.map +1 -1
- package/lib/tree/index.js +44 -35
- package/lib/tree/index.js.map +1 -1
- package/lib/tree/interface.js +1 -1
- package/lib/tree/useControllable.js +3 -3
- package/lib/tree/useStore.js +30 -30
- package/lib/tree/useTreeConfig.js +1 -1
- package/lib/tree-select/TreeSelect.js +95 -189
- package/lib/tree-select/TreeSelect.js.map +1 -1
- package/lib/tree-select/TreeSelectInput.d.ts +11 -0
- package/lib/tree-select/TreeSelectInput.js +130 -0
- package/lib/tree-select/TreeSelectInput.js.map +1 -0
- package/lib/tree-select/TreeSelectSuffix.d.ts +9 -0
- package/lib/tree-select/TreeSelectSuffix.js +76 -0
- package/lib/tree-select/TreeSelectSuffix.js.map +1 -0
- package/lib/tree-select/TreeSelectTags.d.ts +6 -0
- package/lib/tree-select/TreeSelectTags.js +77 -0
- package/lib/tree-select/TreeSelectTags.js.map +1 -0
- package/lib/tree-select/index.js +57 -46
- package/lib/tree-select/index.js.map +1 -1
- package/lib/tree-select/useTreeSelectConfig.d.ts +10 -0
- package/lib/tree-select/useTreeSelectConfig.js +50 -0
- package/lib/tree-select/useTreeSelectConfig.js.map +1 -0
- package/lib/upload/dragger.js +12 -12
- package/lib/upload/hooks/useDefaultValue.js +6 -6
- package/lib/upload/index.js +21 -21
- package/lib/upload/themes/dragger-progress.js +12 -12
- package/lib/upload/themes/image-card.js +12 -12
- package/lib/upload/themes/single-file.js +10 -10
- package/lib/upload/tips.js +1 -1
- package/lib/upload/types.js +1 -1
- package/lib/upload/upload-trigger.js +11 -11
- package/lib/upload/upload.js +21 -21
- package/lib/upload/util.js +3 -3
- package/lib/upload/utils/request.js +1 -1
- package/package.json +2 -2
- package/cjs/_chunks/dep-8c1b656d.js.map +0 -1
- package/es/_chunks/dep-66287469.js +0 -8
- package/es/_chunks/dep-66287469.js.map +0 -1
- package/es/_chunks/dep-9052d175.js.map +0 -1
- package/es/_chunks/dep-99336593.js.map +0 -1
- package/es/_chunks/dep-c4d6268b.js +0 -8
- package/es/_chunks/dep-c4d6268b.js.map +0 -1
- package/es/_chunks/dep-c7c70ac0.js +0 -8
- package/es/_chunks/dep-c7c70ac0.js.map +0 -1
- package/esm/_chunks/dep-66287469.js +0 -8
- package/esm/_chunks/dep-66287469.js.map +0 -1
- package/esm/_chunks/dep-9052d175.js.map +0 -1
- package/esm/_chunks/dep-99336593.js.map +0 -1
- package/esm/_chunks/dep-c4d6268b.js +0 -8
- package/esm/_chunks/dep-c4d6268b.js.map +0 -1
- package/esm/_chunks/dep-c7c70ac0.js +0 -8
- package/esm/_chunks/dep-c7c70ac0.js.map +0 -1
- package/lib/_chunks/dep-45dee455.js +0 -24
- package/lib/_chunks/dep-6d4c74ed.js +0 -24
- package/lib/_chunks/dep-ad6ca60c.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.js","sources":["../../src/calendar/Calendar.tsx"],"sourcesContent":["import React, { useMemo, useState, useCallback, useEffect, useLayoutEffect, forwardRef } from 'react';\nimport dayjs from 'dayjs';\nimport { useLocaleReceiver } from '../locale/LocalReceiver';\nimport Button from '../button';\nimport Select from '../select';\nimport Radio from '../radio';\nimport noop from '../_util/noop';\nimport useConfig from '../_util/useConfig';\nimport { TdCalendarProps, ControllerOptions, CalendarCell, CalendarValue } from '../_type/components/calendar';\nimport { StyledProps } from '../_type/StyledProps';\nimport { createDateList, createMonthList } from './_util';\n\nexport interface CalendarProps extends TdCalendarProps, StyledProps {}\n\nexport interface CalendarMethods {\n /**\n * 显示当前月份\\年份\n */\n toCurrent: (value: CalendarValue) => void;\n}\n\nconst fix0 = (num: number): string => (num <= 9 ? `0${num}` : String(num));\n\nconst getDefaultControllerConfigData = (visible = true): Record<string, any> => ({\n visible, // 是否显示(全部控件)\n disabled: false, // 是否禁用(全部控件)\n // 模式切换单选组件设置\n mode: {\n visible: true, // 是否显示\n radioGroupProps: {}, // 用于透传props给该radioGroup组件\n },\n // 年份选择框组件相关设置\n year: {\n visible: true, // 是否显示\n selectProps: { popupProps: { overlayStyle: { width: '110px' } } }, // 用于透传props给该select组件\n },\n // 年份选择框组件相关设置\n month: {\n visible: true, // 是否显示(“year”模式下本身是不显示该组件的)\n selectProps: { popupProps: { overlayStyle: { width: '90px' } } }, // 用于透传props给该select组件\n },\n // 隐藏\\显示周末按钮组件相关设置\n weekend: {\n visible: true, // 是否显示\n showWeekendButtonProps: {}, // 用于透传props给显示周末按钮组件\n hideWeekendButtonProps: {}, // 用于透传props给隐藏周末按钮组件\n },\n // “今天\\本月”按钮组件相关设置\n current: {\n visible: true, // 是否显示\n currentDayButtonProps: {}, // 用于透传props给“今天”钮组件(“month”模式下有效)\n currentMonthButtonProps: {}, // 用于透传props给“本月”按钮组件(“year”模式下有效)\n },\n});\n\n// 抽取配置常量\nconst blockName = 'calendar'; // 类名前缀\nconst controlSectionSize = 'medium'; // 操作栏控件尺寸\nconst minYear = 1970; // 最早选择年份\n\nconst Calendar: React.FC<CalendarProps> = forwardRef((props, ref: React.MutableRefObject<CalendarMethods>) => {\n const {\n className = '',\n style = {},\n mode: modeFromProps = 'month',\n value: valueFromProps = null,\n firstDayOfWeek = 1,\n format = 'YYYY-MM-DD',\n range = null,\n head = null,\n cell = null,\n cellAppend = null,\n week = null,\n theme = 'full',\n controllerConfig,\n isShowWeekendDefault = true,\n preventCellContextmenu = false,\n onControllerChange = noop,\n onCellClick = noop,\n onCellDoubleClick = noop,\n onCellRightClick = noop,\n } = props;\n\n // 组装配置信息\n const controllerConfigData =\n typeof controllerConfig === 'boolean'\n ? getDefaultControllerConfigData(controllerConfig)\n : { ...getDefaultControllerConfigData(), ...controllerConfig };\n\n // 读配置信息\n const {\n visible,\n disabled,\n mode: modeFromConfig,\n year: yearFromConfig,\n month: monthFromConfig,\n weekend,\n current,\n } = controllerConfigData;\n const { visible: visibleForMode = true, radioGroupProps: radioGroupPropsForMode = {} } = modeFromConfig;\n const { visible: visibleForYear = true, selectProps: selectPropsForYear = {} } = yearFromConfig;\n const { visible: visibleForMonth = true, selectProps: selectPropsForMonth = {} } = monthFromConfig;\n const { visible: visibleForWeekendToggle = true, showWeekendButtonProps = {}, hideWeekendButtonProps = {} } = weekend;\n const { visible: visibleForCurrent = true, currentDayButtonProps = {}, currentMonthButtonProps = {} } = current;\n\n const { classPrefix } = useConfig();\n const [mode, setMode] = useState<string>('month');\n const [value, setValue] = useState<dayjs.Dayjs>(dayjs(valueFromProps || dayjs().format('YYYY-MM-DD')));\n const [year, setYear] = useState<number>(value.year());\n const [month, setMonth] = useState<number>(parseInt(value.format('M'), 10));\n const [isShowWeekend, setIsShowWeekend] = useState<boolean>(isShowWeekendDefault);\n\n const [local, t] = useLocaleReceiver('calendar');\n\n // 表头数组\n const weekLabelList = t(local.week).split(',');\n const colHeaderList = useMemo(() => {\n if (mode === 'year') return [];\n const weekTextArr = Array.isArray(week) && week.length >= 7 ? week : [...weekLabelList];\n const list = [];\n for (let i = firstDayOfWeek; i <= 7; i++) {\n if (!isShowWeekend && i > 5) {\n break;\n }\n list.push({\n day: i,\n text: weekTextArr[i - 1],\n });\n }\n if (firstDayOfWeek > 1) {\n for (let i = 1; i < firstDayOfWeek; i++) {\n if (!isShowWeekend && i > 5) {\n break;\n }\n list.push({\n day: i,\n text: weekTextArr[i - 1],\n });\n }\n }\n return list;\n }, [mode, firstDayOfWeek, isShowWeekend, week, weekLabelList]);\n\n // 根据传入的 range 参数生成 key 为 from, to 的范围对象\n const rangeFromTo = useMemo(() => {\n if (!range || range.length < 2) {\n return null;\n }\n const [v1, v2] = range;\n if (dayjs(v1).isBefore(dayjs(v2))) {\n return {\n from: v1,\n to: v2,\n };\n }\n return {\n from: v2,\n to: v1,\n };\n }, [range]);\n\n // 构造基础 controllerOptions\n const controllerOptions: ControllerOptions = useMemo(() => {\n const dayJsFilterDate: dayjs.Dayjs = dayjs(`${year}-${month}`);\n const re = {\n filterDate: dayJsFilterDate.toDate(),\n formattedFilterDate: dayJsFilterDate.format(format),\n mode,\n isShowWeekend,\n };\n return re;\n }, [isShowWeekend, mode, year, month, format]);\n\n // 年份、月份 Select 选择框选项\n const [yearSelectList, monthSelectList] = useMemo(() => {\n const isRangeValid = rangeFromTo && rangeFromTo.from && rangeFromTo.to;\n const checkMonthSelectorDisabled = (yearIn: number, monthIn: number): boolean => {\n if (isRangeValid) {\n const beginYear = dayjs(rangeFromTo.from).year();\n const endYear = dayjs(rangeFromTo.to).year();\n if (yearIn === beginYear) {\n const beginMon = parseInt(dayjs(rangeFromTo.from).format('M'), 10);\n return monthIn < beginMon;\n }\n if (yearIn === endYear) {\n const endMon = parseInt(dayjs(rangeFromTo.to).format('M'), 10);\n return monthIn > endMon;\n }\n }\n return false;\n };\n\n const yearList = [];\n const monthList = [];\n // 年列表\n const yearBegin = isRangeValid ? dayjs(rangeFromTo.from).year() : Math.max(minYear, year - 10);\n const yearEnd = isRangeValid ? dayjs(rangeFromTo.to).year() : Math.max(minYear, year + 10);\n for (let i = yearBegin; i <= yearEnd; i++) {\n yearList.push({\n value: i,\n disabled: checkMonthSelectorDisabled(i, month),\n });\n }\n // 月列表\n for (let i = 1; i <= 12; i++) {\n monthList.push({\n value: i,\n disabled: checkMonthSelectorDisabled(year, i),\n });\n }\n\n return [yearList, monthList];\n }, [rangeFromTo, year, month]);\n\n // mode为 'month' 时,构造日历列表\n const dateList = useMemo<CalendarCell[][]>(\n () => createDateList(year, month, firstDayOfWeek, value, format),\n [year, month, firstDayOfWeek, format, value],\n );\n\n // mode为 'year' 时,构造月历列表\n const monthList = useMemo<CalendarCell[][]>(() => createMonthList(year, value, format), [year, value, format]);\n\n const prefixCls = useCallback(\n (...args: (string | [string, string?, string?])[]) => {\n let className = '';\n args.forEach((item, index) => {\n if (item && index > 0) className = className.concat(' ');\n if (item instanceof Array) {\n const [block, element, modifier] = item;\n className = className.concat(classPrefix, '-', block);\n if (element) className = className.concat('__', element);\n if (modifier) className = className.concat('--', modifier);\n } else if (typeof item === 'string') {\n className = className.concat(classPrefix, '-', item);\n }\n });\n return className;\n },\n [classPrefix],\n );\n\n // 将基础的 CalendarCell 与 ControllerOptions 进行合并\n const createCalendarCell = useCallback(\n (cellData: CalendarCell): CalendarCell => ({\n ...cellData,\n ...controllerOptions,\n }),\n [controllerOptions],\n );\n\n const toCurrent = useCallback((valueIn = null) => {\n const now: dayjs.Dayjs = dayjs(valueIn).isValid() ? dayjs(valueIn) : dayjs(dayjs().format('YYYY-MM-DD'));\n setValue(now);\n setYear(now.year());\n setMonth(parseInt(now.format('M'), 10));\n }, []);\n\n React.useImperativeHandle(ref, () => ({ toCurrent }), [toCurrent]);\n\n // 事件回调统一处理\n const execCellEvent = useCallback(\n (event, calendarCell, handleFunc) => {\n if (handleFunc && typeof handleFunc === 'function') {\n handleFunc({\n cell: createCalendarCell(calendarCell),\n e: event,\n });\n }\n },\n [createCalendarCell],\n );\n\n const clickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n execCellEvent(event, calendarCell, onCellClick);\n },\n [onCellClick, execCellEvent],\n );\n\n const doubleClickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n execCellEvent(event, calendarCell, onCellDoubleClick);\n },\n [onCellDoubleClick, execCellEvent],\n );\n\n const rightClickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n if (preventCellContextmenu) event.preventDefault();\n execCellEvent(event, calendarCell, onCellRightClick);\n },\n [onCellRightClick, execCellEvent, preventCellContextmenu],\n );\n\n useEffect(() => {\n toCurrent(valueFromProps);\n }, [valueFromProps, toCurrent]);\n\n useEffect(() => {\n setMode(modeFromProps);\n }, [modeFromProps]);\n\n useEffect(() => {\n setIsShowWeekend(isShowWeekendDefault);\n }, [isShowWeekendDefault]);\n\n useLayoutEffect(() => {\n onControllerChange(controllerOptions);\n }, [onControllerChange, controllerOptions]);\n\n /**\n * 将 month 映射为文字输出\n * @param month 月份下标值(起始值为0)\n */\n const monthLabelList = t(local.cellMonth).split(',');\n const getMonthCN = (month: number): string => monthLabelList[month];\n\n return (\n <div className={prefixCls(blockName, [blockName, '', theme]).concat(' ', className)} style={style}>\n {/* 操作部分 */}\n {visible && (\n <div className={prefixCls([blockName, 'control'])}>\n <div className={prefixCls([blockName, 'control-section'])}>\n {/* 年份选择框 */}\n <div className={prefixCls([blockName, 'control-section-cell'])}>\n {visibleForYear && (\n <Select\n size={controlSectionSize}\n disabled={disabled}\n value={year}\n options={yearSelectList.map((item) => ({\n label: t(local.yearSelection, { year: item.value }),\n value: item.value,\n disabled: item.disabled,\n }))}\n onChange={(selectYear) => setYear(selectYear as number)}\n {...selectPropsForYear}\n />\n )}\n </div>\n {/* 月份选择框 */}\n <div className={prefixCls([blockName, 'control-section-cell'])}>\n {visibleForMonth && mode === 'month' && (\n <Select\n size={controlSectionSize}\n disabled={disabled}\n value={month}\n options={monthSelectList.map((item) => ({\n label: t(local.monthSelection, { month: item.value }),\n value: item.value,\n disabled: item.disabled,\n }))}\n onChange={(selectMonth) => setMonth(selectMonth as number)}\n {...selectPropsForMonth}\n />\n )}\n </div>\n </div>\n {/* 模式切换 */}\n <div className={prefixCls([blockName, 'control-section'])} style={{ height: 'auto' }}>\n {visibleForMode && (\n <Radio.Group\n size={controlSectionSize}\n value={mode}\n disabled={disabled}\n onChange={(value) => setMode(value as string)}\n {...radioGroupPropsForMode}\n >\n <Radio.Button value=\"month\">{t(local.monthRadio)}</Radio.Button>\n <Radio.Button value=\"year\">{t(local.yearRadio)}</Radio.Button>\n </Radio.Group>\n )}\n </div>\n {/* 周末隐藏显示切换 */}\n {mode === 'month' && theme === 'full' && visibleForWeekendToggle && (\n <div className={prefixCls([blockName, 'control-section'])}>\n <Button\n theme={isShowWeekend ? 'default' : 'primary'}\n size={controlSectionSize}\n disabled={disabled}\n onClick={() => setIsShowWeekend(!isShowWeekend)}\n {...(isShowWeekend ? hideWeekendButtonProps : showWeekendButtonProps)}\n >\n {`${isShowWeekend ? t(local.hideWeekend) : t(local.showWeekend)}`}\n </Button>\n </div>\n )}\n {/* 回到当前按钮 */}\n {theme === 'full' && visibleForCurrent && (\n <div className={prefixCls([blockName, 'control-section'])}>\n <Button\n size={controlSectionSize}\n theme=\"default\"\n disabled={disabled}\n onClick={toCurrent}\n {...(mode === 'year' ? currentMonthButtonProps : currentDayButtonProps)}\n >\n {mode === 'year' ? t(local.thisMonth) : t(local.today)}\n </Button>\n </div>\n )}\n </div>\n )}\n {/* 主体部分 */}\n <div className={prefixCls([blockName, 'panel'], [blockName, `panel--${mode}`])}>\n <div className={prefixCls([blockName, 'panel-title'])}>{React.isValidElement(head) && head}</div>\n <table className={prefixCls([blockName, 'table'])}>\n {/* 表头部分 */}\n {colHeaderList.length > 0 && (\n <thead className={prefixCls([blockName, 'table-head'])}>\n <tr className={prefixCls([blockName, 'table-head-row'])}>\n {colHeaderList.map((item) => (\n <th key={item.day} className={prefixCls([blockName, 'table-head-cell'])}>\n {week && typeof week === 'function' ? week({ day: item.day }) : item.text}\n </th>\n ))}\n </tr>\n </thead>\n )}\n {/* month 模式,输出日期 */}\n {mode === 'month' && (\n <tbody className={prefixCls([blockName, 'table-body'])}>\n {dateList.map((dateRow, dateRowIndex) => (\n <tr key={String(dateRowIndex)} className={prefixCls([blockName, 'table-body-row'])}>\n {dateRow.map((dateCell, dateCellIndex) => {\n if (!isShowWeekend && [6, 7].indexOf(dateCell.day) >= 0) return null;\n return (\n <td\n key={String(dateCellIndex)}\n className={prefixCls(\n [blockName, 'table-body-cell'],\n dateCell.belongTo !== 0 && 'is-disabled',\n dateCell.isCurrent && 'is-checked',\n )}\n onClick={(event) => clickCell(event, dateCell)}\n onDoubleClick={(event) => doubleClickCell(event, dateCell)}\n onContextMenu={(event) => rightClickCell(event, dateCell)}\n >\n {(() => {\n if (cell && typeof cell === 'function') return cell(createCalendarCell(dateCell));\n if (cell && typeof cell !== 'function') return cell;\n return (\n <div className={prefixCls([blockName, 'table-body-cell-value'])}>\n {fix0(dateCell.date.getDate())}\n </div>\n );\n })()}\n {(() => {\n if (cellAppend && typeof cellAppend === 'function')\n return cellAppend(createCalendarCell(dateCell));\n if (cellAppend && typeof cellAppend !== 'function') return cellAppend;\n return <div className={prefixCls([blockName, 'table-body-cell-content'])} />;\n })()}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n )}\n {/* year 模式,输出月份 */}\n {mode === 'year' && (\n <tbody className={prefixCls([blockName, 'table-body'])}>\n {monthList.map((monthRow, monthRowIndex) => (\n <tr key={String(monthRowIndex)} className={prefixCls([blockName, 'table-body-row'])}>\n {monthRow.map((monthCell, monthCellIndex) => (\n <td\n key={String(monthCellIndex)}\n className={prefixCls([blockName, 'table-body-cell'], [monthCell.isCurrent && 'is-checked'])}\n onClick={(event) => clickCell(event, monthCell)}\n onDoubleClick={(event) => doubleClickCell(event, monthCell)}\n onContextMenu={(event) => rightClickCell(event, monthCell)}\n >\n {(() => {\n if (cell && typeof cell === 'function') return cell(monthCell);\n if (cell && typeof cell !== 'function') return cell;\n const monthCellIndex = monthCell.date.getMonth();\n const monthText =\n theme === 'full'\n ? getMonthCN(monthCellIndex)\n : t(local.monthSelection, { month: (monthCellIndex + 1).toString() });\n return <div className={prefixCls([blockName, 'table-body-cell-value'])}>{monthText}</div>;\n })()}\n {(() => {\n if (cellAppend && typeof cellAppend === 'function') {\n return cellAppend(monthCell);\n }\n if (cellAppend && typeof cellAppend !== 'function') return cellAppend;\n return <div className={prefixCls([blockName, 'table-body-cell-content'])} />;\n })()}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n )}\n </table>\n </div>\n </div>\n );\n});\n\nexport default Calendar;\n"],"names":["fix0","num","String","getDefaultControllerConfigData","visible","disabled","mode","radioGroupProps","year","selectProps","popupProps","overlayStyle","width","month","weekend","showWeekendButtonProps","hideWeekendButtonProps","current","currentDayButtonProps","currentMonthButtonProps","blockName","controlSectionSize","minYear","Calendar","forwardRef","props","ref","className","style","modeFromProps","value","valueFromProps","firstDayOfWeek","format","range","head","cell","cellAppend","week","theme","controllerConfig","isShowWeekendDefault","preventCellContextmenu","onControllerChange","noop","onCellClick","onCellDoubleClick","onCellRightClick","controllerConfigData","modeFromConfig","yearFromConfig","monthFromConfig","visibleForMode","radioGroupPropsForMode","visibleForYear","selectPropsForYear","visibleForMonth","selectPropsForMonth","visibleForWeekendToggle","visibleForCurrent","useConfig","classPrefix","useState","setMode","dayjs","setValue","setYear","parseInt","setMonth","isShowWeekend","setIsShowWeekend","useLocaleReceiver","local","t","weekLabelList","split","colHeaderList","useMemo","weekTextArr","Array","isArray","length","list","i","push","day","text","rangeFromTo","v1","v2","isBefore","from","to","controllerOptions","dayJsFilterDate","re","filterDate","toDate","formattedFilterDate","isRangeValid","checkMonthSelectorDisabled","yearIn","monthIn","beginYear","endYear","beginMon","endMon","yearList","monthList2","yearBegin","Math","max","yearEnd","yearSelectList","monthSelectList","dateList","createDateList","monthList","createMonthList","prefixCls","useCallback","className2","args","forEach","item","index","concat","block","element","modifier","createCalendarCell","cellData","toCurrent","valueIn","now","isValid","useImperativeHandle","execCellEvent","event","calendarCell","handleFunc","e","clickCell","doubleClickCell","rightClickCell","preventDefault","monthLabelList","cellMonth","getMonthCN","month2","Select","size","options","map","label","yearSelection","onChange","selectYear","monthSelection","selectMonth","height","Radio","Group","value2","Button","monthRadio","yearRadio","onClick","hideWeekend","showWeekend","thisMonth","today","React","isValidElement","key","dateRow","dateRowIndex","dateCell","dateCellIndex","indexOf","belongTo","isCurrent","onDoubleClick","onContextMenu","date","getDate","monthRow","monthRowIndex","monthCell","monthCellIndex","monthCellIndex2","getMonth","monthText","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,OAAO,SAAPA,IAAO,CAACC,GAAD;AAAA,SAA0BA,OAAO,CAAP,cAAeA,GAAf,IAAuBC,OAAOD,IAAxD;AAAA,CAAb;;AAEA,IAAME,iCAAiC,SAAjCA,8BAAiC;AAAA,MAACC,OAAD,uEAAW,IAAX;AAAA;AACrCA,IAAAA,SAAAA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GEd,QAAAA,SAAS,iBAAC7B,KAAD;AAAA,iBAAWI,UAAUJ,OAAOkD,UAA5B;AAAA,SAHX;AAIEN,QAAAA,eAAe,uBAAC5C,KAAD;AAAA,iBAAWK,gBAAgBL,OAAOkD,UAAlC;AAAA,SAJjB;AAKEL,QAAAA,eAAe,uBAAC7C,KAAD;AAAA,iBAAWM,eAAeN,OAAOkD,UAAjC;AAAA;AALjB,qBAOU;YACFxJ,QAAQ,OAAOA,IAAP,KAAgB,mBAAmBA,KAAKwJ;YAChDxJ,QAAQ,OAAOA,IAAP,KAAgB,mBAAmBA;YACzC0J,kBAAiBF,UAAUJ,IAAV,CAAeO,QAAf;YACjBC,YACJzJ,UAAU,MAAV,GACI6G,WAAW0C,gBADf,GAEIrH,EAAED,MAAMsF,gBAAgB;AAAEjJ,UAAAA,OAAQ,mBAAiB,CAAjB,EAAoBoL,QAApB;AAAV;2DACtB,OAAD;AAAKtK,UAAAA,WAAW4F,UAAU,CAACnG,SAAD,EAAY,uBAAZ;AAA1B,WAAkE4K;OARzE,gBAUM;YACF3J,cAAc,OAAOA,UAAP,KAAsB,YAAY;iBAC3CA,WAAWuJ;;;YAEhBvJ,cAAc,OAAOA,UAAP,KAAsB,mBAAmBA;2DACnD,OAAD;AAAKV,UAAAA,WAAW4F,UAAU,CAACnG,SAAD,EAAY,yBAAZ;AAA1B;OALP,GAlBQ;AAAA,KAAb,EAFU;AAAA,GAAd;;;;;"}
|
|
1
|
+
{"version":3,"file":"Calendar.js","sources":["../../src/calendar/Calendar.tsx"],"sourcesContent":["import React, { useMemo, useState, useCallback, useEffect, useLayoutEffect, forwardRef } from 'react';\nimport dayjs from 'dayjs';\nimport { useLocaleReceiver } from '../locale/LocalReceiver';\nimport Button from '../button';\nimport Select from '../select';\nimport Radio from '../radio';\nimport noop from '../_util/noop';\nimport useConfig from '../_util/useConfig';\nimport { TdCalendarProps, ControllerOptions, CalendarCell, CalendarValue } from '../_type/components/calendar';\nimport { StyledProps } from '../_type/StyledProps';\nimport { createDateList, createMonthList } from './_util';\nimport CheckTag from '../tag/CheckTag';\n\nexport interface CalendarProps extends TdCalendarProps, StyledProps {}\n\nexport interface CalendarMethods {\n /**\n * 显示当前月份\\年份\n */\n toCurrent: (value: CalendarValue) => void;\n}\n\nconst getDefaultControllerConfigData = (visible = true): Record<string, any> => ({\n visible, // 是否显示(全部控件)\n disabled: false, // 是否禁用(全部控件)\n // 模式切换单选组件设置\n mode: {\n visible: true, // 是否显示\n radioGroupProps: {}, // 用于透传props给该radioGroup组件\n },\n // 年份选择框组件相关设置\n year: {\n visible: true, // 是否显示\n selectProps: { popupProps: { overlayStyle: { width: '110px' } } }, // 用于透传props给该select组件\n },\n // 年份选择框组件相关设置\n month: {\n visible: true, // 是否显示(“year”模式下本身是不显示该组件的)\n selectProps: { popupProps: { overlayStyle: { width: '90px' } } }, // 用于透传props给该select组件\n },\n // 隐藏\\显示周末按钮组件相关设置\n weekend: {\n visible: true, // 是否显示\n showWeekendButtonProps: {}, // 用于透传props给显示周末按钮组件\n hideWeekendButtonProps: {}, // 用于透传props给隐藏周末按钮组件\n },\n // “今天\\本月”按钮组件相关设置\n current: {\n visible: true, // 是否显示\n currentDayButtonProps: {}, // 用于透传props给“今天”钮组件(“month”模式下有效)\n currentMonthButtonProps: {}, // 用于透传props给“本月”按钮组件(“year”模式下有效)\n },\n});\n\n// 抽取配置常量\nconst blockName = 'calendar'; // 类名前缀\nconst controlSectionSize = 'medium'; // 操作栏控件尺寸\nconst minYear = 1970; // 最早选择年份\n\nconst Calendar: React.FC<CalendarProps> = forwardRef((props, ref: React.MutableRefObject<CalendarMethods>) => {\n const {\n className = '',\n style = {},\n mode: modeFromProps = 'month',\n value: valueFromProps = null,\n firstDayOfWeek = 1,\n format = 'YYYY-MM-DD',\n range = null,\n head = null,\n cell = null,\n cellAppend = null,\n week = null,\n theme = 'full',\n controllerConfig,\n isShowWeekendDefault = true,\n preventCellContextmenu = false,\n onControllerChange = noop,\n onCellClick = noop,\n onCellDoubleClick = noop,\n onCellRightClick = noop,\n fillWithZero = false,\n } = props;\n\n // 组装配置信息\n const controllerConfigData =\n typeof controllerConfig === 'boolean'\n ? getDefaultControllerConfigData(controllerConfig)\n : { ...getDefaultControllerConfigData(), ...controllerConfig };\n\n // 读配置信息\n const {\n visible,\n disabled,\n mode: modeFromConfig,\n year: yearFromConfig,\n month: monthFromConfig,\n weekend,\n current,\n } = controllerConfigData;\n const { visible: visibleForMode = true, radioGroupProps: radioGroupPropsForMode = {} } = modeFromConfig;\n const { visible: visibleForYear = true, selectProps: selectPropsForYear = {} } = yearFromConfig;\n const { visible: visibleForMonth = true, selectProps: selectPropsForMonth = {} } = monthFromConfig;\n const { visible: visibleForWeekendToggle = true, showWeekendButtonProps = {}, hideWeekendButtonProps = {} } = weekend;\n const { visible: visibleForCurrent = true, currentDayButtonProps = {}, currentMonthButtonProps = {} } = current;\n\n const { classPrefix } = useConfig();\n const [mode, setMode] = useState<string>('month');\n const [value, setValue] = useState<dayjs.Dayjs>(dayjs(valueFromProps || dayjs().format('YYYY-MM-DD')));\n const [year, setYear] = useState<number>(value.year());\n const [month, setMonth] = useState<number>(parseInt(value.format('M'), 10));\n const [isShowWeekend, setIsShowWeekend] = useState<boolean>(isShowWeekendDefault);\n\n const [local, t] = useLocaleReceiver('calendar');\n\n // 表头数组\n const weekLabelList = t(local.week).split(',');\n const colHeaderList = useMemo(() => {\n if (mode === 'year') return [];\n const weekTextArr = Array.isArray(week) && week.length >= 7 ? week : [...weekLabelList];\n const list = [];\n for (let i = firstDayOfWeek; i <= 7; i++) {\n if (!isShowWeekend && i > 5) {\n break;\n }\n list.push({\n day: i,\n text: weekTextArr[i - 1],\n });\n }\n if (firstDayOfWeek > 1) {\n for (let i = 1; i < firstDayOfWeek; i++) {\n if (!isShowWeekend && i > 5) {\n break;\n }\n list.push({\n day: i,\n text: weekTextArr[i - 1],\n });\n }\n }\n return list;\n }, [mode, firstDayOfWeek, isShowWeekend, week, weekLabelList]);\n\n // 根据传入的 range 参数生成 key 为 from, to 的范围对象\n const rangeFromTo = useMemo(() => {\n if (!range || range.length < 2) {\n return null;\n }\n const [v1, v2] = range;\n if (dayjs(v1).isBefore(dayjs(v2))) {\n return {\n from: v1,\n to: v2,\n };\n }\n return {\n from: v2,\n to: v1,\n };\n }, [range]);\n\n // 构造基础 controllerOptions\n const controllerOptions: ControllerOptions = useMemo(() => {\n const dayJsFilterDate: dayjs.Dayjs = dayjs(`${year}-${month}`);\n const re = {\n filterDate: dayJsFilterDate.toDate(),\n formattedFilterDate: dayJsFilterDate.format(format),\n mode,\n isShowWeekend,\n };\n return re;\n }, [isShowWeekend, mode, year, month, format]);\n\n // 年份、月份 Select 选择框选项\n const [yearSelectList, monthSelectList] = useMemo(() => {\n const isRangeValid = rangeFromTo && rangeFromTo.from && rangeFromTo.to;\n const checkMonthSelectorDisabled = (yearIn: number, monthIn: number): boolean => {\n if (isRangeValid) {\n const beginYear = dayjs(rangeFromTo.from).year();\n const endYear = dayjs(rangeFromTo.to).year();\n if (yearIn === beginYear) {\n const beginMon = parseInt(dayjs(rangeFromTo.from).format('M'), 10);\n return monthIn < beginMon;\n }\n if (yearIn === endYear) {\n const endMon = parseInt(dayjs(rangeFromTo.to).format('M'), 10);\n return monthIn > endMon;\n }\n }\n return false;\n };\n\n const yearList = [];\n const monthList = [];\n // 年列表\n const yearBegin = isRangeValid ? dayjs(rangeFromTo.from).year() : Math.max(minYear, year - 10);\n const yearEnd = isRangeValid ? dayjs(rangeFromTo.to).year() : Math.max(minYear, year + 10);\n for (let i = yearBegin; i <= yearEnd; i++) {\n yearList.push({\n value: i,\n disabled: checkMonthSelectorDisabled(i, month),\n });\n }\n // 月列表\n for (let i = 1; i <= 12; i++) {\n monthList.push({\n value: i,\n disabled: checkMonthSelectorDisabled(year, i),\n });\n }\n\n return [yearList, monthList];\n }, [rangeFromTo, year, month]);\n\n // mode为 'month' 时,构造日历列表\n const dateList = useMemo<CalendarCell[][]>(\n () => createDateList(year, month, firstDayOfWeek, value, format),\n [year, month, firstDayOfWeek, format, value],\n );\n\n // mode为 'year' 时,构造月历列表\n const monthList = useMemo<CalendarCell[][]>(() => createMonthList(year, value, format), [year, value, format]);\n\n const prefixCls = useCallback(\n (...args: (string | [string, string?, string?])[]) => {\n let className = '';\n args.forEach((item, index) => {\n if (item && index > 0) className = className.concat(' ');\n if (item instanceof Array) {\n const [block, element, modifier] = item;\n className = className.concat(classPrefix, '-', block);\n if (element) className = className.concat('__', element);\n if (modifier) className = className.concat('--', modifier);\n } else if (typeof item === 'string') {\n className = className.concat(classPrefix, '-', item);\n }\n });\n return className;\n },\n [classPrefix],\n );\n\n // 将基础的 CalendarCell 与 ControllerOptions 进行合并\n const createCalendarCell = useCallback(\n (cellData: CalendarCell): CalendarCell => ({\n ...cellData,\n ...controllerOptions,\n }),\n [controllerOptions],\n );\n\n const toCurrent = useCallback((valueIn = null) => {\n const now: dayjs.Dayjs = dayjs(valueIn).isValid() ? dayjs(valueIn) : dayjs(dayjs().format('YYYY-MM-DD'));\n setValue(now);\n setYear(now.year());\n setMonth(parseInt(now.format('M'), 10));\n }, []);\n\n React.useImperativeHandle(ref, () => ({ toCurrent }), [toCurrent]);\n\n // 事件回调统一处理\n const execCellEvent = useCallback(\n (event, calendarCell, handleFunc) => {\n if (handleFunc && typeof handleFunc === 'function') {\n handleFunc({\n cell: createCalendarCell(calendarCell),\n e: event,\n });\n }\n },\n [createCalendarCell],\n );\n\n const clickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n setValue(dayjs(calendarCell.formattedDate));\n\n execCellEvent(event, calendarCell, onCellClick);\n },\n [onCellClick, execCellEvent],\n );\n\n const doubleClickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n execCellEvent(event, calendarCell, onCellDoubleClick);\n },\n [onCellDoubleClick, execCellEvent],\n );\n\n const rightClickCell = useCallback(\n (event, calendarCell: CalendarCell) => {\n if (preventCellContextmenu) event.preventDefault();\n execCellEvent(event, calendarCell, onCellRightClick);\n },\n [onCellRightClick, execCellEvent, preventCellContextmenu],\n );\n\n useEffect(() => {\n toCurrent(valueFromProps);\n }, [valueFromProps, toCurrent]);\n\n useEffect(() => {\n setMode(modeFromProps);\n }, [modeFromProps]);\n\n useEffect(() => {\n setIsShowWeekend(isShowWeekendDefault);\n }, [isShowWeekendDefault]);\n\n useLayoutEffect(() => {\n onControllerChange(controllerOptions);\n }, [onControllerChange, controllerOptions]);\n\n /**\n * 将 month 映射为文字输出\n * @param month 月份下标值(起始值为0)\n */\n const monthLabelList = t(local.cellMonth).split(',');\n const getMonthCN = (month: number): string => monthLabelList[month];\n\n const fix0 = (num: number) => {\n const fillZero = num < 10 && (fillWithZero ?? local.fillWithZero ?? true);\n return fillZero ? `0${num}` : num;\n };\n\n return (\n <div className={prefixCls(blockName, [blockName, '', theme]).concat(' ', className)} style={style}>\n {/* 操作部分 */}\n {visible && (\n <div className={prefixCls([blockName, 'control'])}>\n <div className={prefixCls([blockName, 'title'])}>\n {(() => {\n if (head && typeof head === 'function') return head(controllerOptions);\n if (head && typeof head !== 'function') return head;\n })()}\n </div>\n <div className={prefixCls([blockName, 'control-section'])}>\n {/* 年份选择框 */}\n <div className={prefixCls([blockName, 'control-section-cell'])}>\n {visibleForYear && (\n <Select\n size={controlSectionSize}\n disabled={disabled}\n value={year}\n options={yearSelectList.map((item) => ({\n label: t(local.yearSelection, { year: item.value }),\n value: item.value,\n disabled: item.disabled,\n }))}\n onChange={(selectYear) => setYear(selectYear as number)}\n {...selectPropsForYear}\n />\n )}\n </div>\n {/* 月份选择框 */}\n <div className={prefixCls([blockName, 'control-section-cell'])}>\n {visibleForMonth && mode === 'month' && (\n <Select\n size={controlSectionSize}\n disabled={disabled}\n value={month}\n options={monthSelectList.map((item) => ({\n label: t(local.monthSelection, { month: item.value }),\n value: item.value,\n disabled: item.disabled,\n }))}\n onChange={(selectMonth) => setMonth(selectMonth as number)}\n {...selectPropsForMonth}\n />\n )}\n </div>\n </div>\n {/* 模式切换 */}\n <div className={prefixCls([blockName, 'control-section'])} style={{ height: 'auto' }}>\n {visibleForMode && (\n <Radio.Group\n variant=\"default-filled\"\n size={controlSectionSize}\n value={mode}\n disabled={disabled}\n onChange={(value) => setMode(value as string)}\n {...radioGroupPropsForMode}\n >\n <Radio.Button value=\"month\">{t(local.monthRadio)}</Radio.Button>\n <Radio.Button value=\"year\">{t(local.yearRadio)}</Radio.Button>\n </Radio.Group>\n )}\n </div>\n {/* 周末隐藏显示切换 */}\n {mode === 'month' && theme === 'full' && visibleForWeekendToggle && (\n <div className={prefixCls([blockName, 'control-section'])}>\n <CheckTag\n className=\"t-calendar__control-tag\"\n theme={isShowWeekend ? 'default' : 'primary'}\n size={controlSectionSize}\n disabled={disabled}\n onClick={() => {\n setIsShowWeekend(!isShowWeekend);\n }}\n {...(isShowWeekend ? hideWeekendButtonProps : showWeekendButtonProps)}\n >\n {`${isShowWeekend ? t(local.hideWeekend) : t(local.showWeekend)}`}\n </CheckTag>\n </div>\n )}\n {/* 回到当前按钮 */}\n {theme === 'full' && visibleForCurrent && (\n <div className={prefixCls([blockName, 'control-section'])}>\n <Button\n size={controlSectionSize}\n disabled={disabled}\n onClick={toCurrent}\n {...(mode === 'year' ? currentMonthButtonProps : currentDayButtonProps)}\n >\n {mode === 'year' ? t(local.thisMonth) : t(local.today)}\n </Button>\n </div>\n )}\n </div>\n )}\n {/* 主体部分 */}\n <div className={prefixCls([blockName, 'panel'], [blockName, `panel--${mode}`])}>\n <table className={prefixCls([blockName, 'table'])}>\n {/* 表头部分 */}\n {colHeaderList.length > 0 && (\n <thead className={prefixCls([blockName, 'table-head'])}>\n <tr className={prefixCls([blockName, 'table-head-row'])}>\n {colHeaderList.map((item) => (\n <th key={item.day} className={prefixCls([blockName, 'table-head-cell'])}>\n {week && typeof week === 'function' ? week({ day: item.day }) : item.text}\n </th>\n ))}\n </tr>\n </thead>\n )}\n {/* month 模式,输出日期 */}\n {mode === 'month' && (\n <tbody className={prefixCls([blockName, 'table-body'])}>\n {dateList.map((dateRow, dateRowIndex) => (\n <tr key={String(dateRowIndex)} className={prefixCls([blockName, 'table-body-row'])}>\n {dateRow.map((dateCell, dateCellIndex) => {\n if (!isShowWeekend && [6, 7].indexOf(dateCell.day) >= 0) return null;\n const isNow = dateCell.formattedDate === dayjs().format('YYYY-MM-DD');\n return (\n <td\n key={String(dateCellIndex)}\n className={prefixCls(\n [blockName, 'table-body-cell'],\n dateCell.belongTo !== 0 && 'is-disabled',\n dateCell.isCurrent && 'is-checked',\n isNow && 'is-now',\n )}\n onClick={(event) => clickCell(event, dateCell)}\n onDoubleClick={(event) => doubleClickCell(event, dateCell)}\n onContextMenu={(event) => rightClickCell(event, dateCell)}\n >\n {(() => {\n if (cell && typeof cell === 'function') return cell(createCalendarCell(dateCell));\n if (cell && typeof cell !== 'function') return cell;\n return (\n <div className={prefixCls([blockName, 'table-body-cell-value'])}>\n {fix0(dateCell.date.getDate())}\n </div>\n );\n })()}\n {(() => {\n let celAppend;\n if (cellAppend && typeof cellAppend === 'function')\n celAppend = cellAppend(createCalendarCell(dateCell));\n if (cellAppend && typeof cellAppend !== 'function') celAppend = cellAppend;\n return (\n cellAppend && (\n <div className={prefixCls([blockName, 'table-body-cell-content'])}>{celAppend}</div>\n )\n );\n })()}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n )}\n {/* year 模式,输出月份 */}\n {mode === 'year' && (\n <tbody className={prefixCls([blockName, 'table-body'])}>\n {monthList.map((monthRow, monthRowIndex) => (\n <tr key={String(monthRowIndex)} className={prefixCls([blockName, 'table-body-row'])}>\n {monthRow.map((monthCell, monthCellIndex) => {\n const isNow = new Date().getMonth() === monthCell.date.getMonth();\n return (\n <td\n key={String(monthCellIndex)}\n className={prefixCls(\n [blockName, 'table-body-cell'],\n [monthCell.isCurrent && 'is-checked'],\n [isNow && 'is-now'],\n )}\n onClick={(event) => clickCell(event, monthCell)}\n onDoubleClick={(event) => doubleClickCell(event, monthCell)}\n onContextMenu={(event) => rightClickCell(event, monthCell)}\n >\n {(() => {\n if (cell && typeof cell === 'function') return cell(monthCell);\n if (cell && typeof cell !== 'function') return cell;\n const monthCellIndex = monthCell.date.getMonth();\n const monthText =\n theme === 'full'\n ? getMonthCN(monthCellIndex)\n : t(local.monthSelection, { month: (monthCellIndex + 1).toString() });\n return <div className={prefixCls([blockName, 'table-body-cell-value'])}>{monthText}</div>;\n })()}\n {(() => {\n if (cellAppend && typeof cellAppend === 'function') {\n return cellAppend(monthCell);\n }\n if (cellAppend && typeof cellAppend !== 'function') return cellAppend;\n return <div className={prefixCls([blockName, 'table-body-cell-content'])} />;\n })()}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n )}\n </table>\n </div>\n </div>\n );\n});\n\nexport default Calendar;\n"],"names":["getDefaultControllerConfigData","visible","disabled","mode","radioGroupProps","year","selectProps","popupProps","overlayStyle","width","month","weekend","showWeekendButtonProps","hideWeekendButtonProps","current","currentDayButtonProps","currentMonthButtonProps","blockName","controlSectionSize","minYear","Calendar","forwardRef","props","ref","className","style","modeFromProps","value","valueFromProps","firstDayOfWeek","format","range","head","cell","cellAppend","week","theme","controllerConfig","isShowWeekendDefault","preventCellContextmenu","onControllerChange","noop","onCellClick","onCellDoubleClick","onCellRightClick","fillWithZero","controllerConfigData","modeFromConfig","yearFromConfig","monthFromConfig","visibleForMode","radioGroupPropsForMode","visibleForYear","selectPropsForYear","visibleForMonth","selectPropsForMonth","visibleForWeekendToggle","visibleForCurrent","useConfig","classPrefix","useState","setMode","dayjs","setValue","setYear","parseInt","setMonth","isShowWeekend","setIsShowWeekend","useLocaleReceiver","local","t","weekLabelList","split","colHeaderList","useMemo","weekTextArr","Array","isArray","length","list","i","push","day","text","rangeFromTo","v1","v2","isBefore","from","to","controllerOptions","dayJsFilterDate","re","filterDate","toDate","formattedFilterDate","isRangeValid","checkMonthSelectorDisabled","yearIn","monthIn","beginYear","endYear","beginMon","endMon","yearList","monthList2","yearBegin","Math","max","yearEnd","yearSelectList","monthSelectList","dateList","createDateList","monthList","createMonthList","prefixCls","useCallback","className2","args","forEach","item","index","concat","block","element","modifier","createCalendarCell","cellData","toCurrent","valueIn","now","isValid","useImperativeHandle","execCellEvent","event","calendarCell","handleFunc","e","clickCell","formattedDate","doubleClickCell","rightClickCell","preventDefault","monthLabelList","cellMonth","getMonthCN","month2","fix0","num","fillZero","Select","size","options","map","label","yearSelection","onChange","selectYear","monthSelection","selectMonth","height","Radio","Group","variant","value2","Button","monthRadio","yearRadio","CheckTag","onClick","hideWeekend","showWeekend","thisMonth","today","key","dateRow","dateRowIndex","String","dateCell","dateCellIndex","indexOf","isNow","belongTo","isCurrent","onDoubleClick","onContextMenu","date","getDate","celAppend","monthRow","monthRowIndex","monthCell","monthCellIndex","Date","getMonth","monthCellIndex2","monthText","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAMA,iCAAiC,SAAjCA,8BAAiC;AAAA,MAACC,OAAD,uEAAW,IAAX;AAAA;AACrCA,IAAAA,SAAAA;AACAC,IAAAA,UAAU;AAEVC,IAAAA,MAAM;AACJF,MAAAA,SAAS,IADL;AAEJG,MAAAA,iBAAiB;AAFb;AAKNC,IAAAA,MAAM;AACJJ,MAAAA,SAAS,IADL;AAEJK,MAAAA,aAAa;AAAEC,QAAAA,YAAY;AAAEC,UAAAA,cAAc;AAAEC,YAAAA,OAAO;AAAT;AAAhB;AAAd;AAFT;AAKNC,IAAAA,OAAO;AACLT,MAAAA,SAAS,IADJ;AAELK,MAAAA,aAAa;AAAEC,QAAAA,YAAY;AAAEC,UAAAA,cAAc;AAAEC,YAAAA,OAAO;AAAT;AAAhB;AAAd;AAFR;AAKPE,IAAAA,SAAS;AACPV,MAAAA,SAAS,IADF;AAEPW,MAAAA,wBAAwB,EAFjB;AAGPC,MAAAA,wBAAwB;AAHjB;AAMTC,IAAAA,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AAAA,iBAAWI,UAAUJ,OAAOyD,UAA5B;AAAA,SAPX;AAQEP,QAAAA,eAAe,uBAAClD,KAAD;AAAA,iBAAWM,gBAAgBN,OAAOyD,UAAlC;AAAA,SARjB;AASEN,QAAAA,eAAe,uBAACnD,KAAD;AAAA,iBAAWO,eAAeP,OAAOyD,UAAjC;AAAA;AATjB,qBAWU;YACFhK,QAAQ,OAAOA,IAAP,KAAgB,mBAAmBA,KAAKgK;YAChDhK,QAAQ,OAAOA,IAAP,KAAgB,mBAAmBA;YACzCoK,kBAAiBJ,UAAUL,IAAV,CAAeQ,QAAf;YACjBE,YACJlK,UAAU,MAAV,GACI+G,WAAWkD,gBADf,GAEI9H,EAAED,MAAM0F,gBAAgB;AAAEtJ,UAAAA,OAAQ,mBAAiB,CAAjB,EAAoB6L,QAApB;AAAV;2DACtB,OAAD;AAAK/K,UAAAA,WAAW6F,UAAU,CAACpG,SAAD,EAAY,uBAAZ;AAA1B,WAAkEqL;OARzE,gBAUM;YACFpK,cAAc,OAAOA,UAAP,KAAsB,YAAY;iBAC3CA,WAAW+J;;;YAEhB/J,cAAc,OAAOA,UAAP,KAAsB,mBAAmBA;2DACnD,OAAD;AAAKV,UAAAA,WAAW6F,UAAU,CAACpG,SAAD,EAAY,yBAAZ;AAA1B;OALP;KAxBP,EAFU;AAAA,GAAd;;;;;"}
|
package/esm/calendar/_util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_util.js","sources":["../../src/calendar/_util.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { CalendarCell } from '../_type/components/calendar';\n\n/**\n * 获取一个日期是周几(1~7)\n */\nexport const getDay = (dt: Date): number => {\n let day = dayjs(dt).day();\n if (day === 0) {\n day = 7;\n }\n return day;\n};\n\n/**\n * 创建日历单元格数据\n * @param year 日历年份\n * @param month 日历月份\n * @param firstDayOfWeek 周起始日(1~7)\n * @param currentValue 当前日期\n * @param format 日期格式\n */\nexport const createDateList = (\n year: number,\n month: number,\n firstDayOfWeek: number,\n currentValue: dayjs.Dayjs,\n format: string,\n): CalendarCell[][] => {\n const createCellData = (belongTo: number, isCurrent: boolean, date: Date, weekOrder: number): CalendarCell => {\n const day = getDay(date);\n return {\n mode: 'month',\n belongTo,\n isCurrent,\n day,\n weekOrder,\n date,\n formattedDate: dayjs(date).format(format),\n filterDate: null,\n formattedFilterDate: null,\n isShowWeekend: true,\n };\n };\n\n const monthFirstDay = dayjs(`${year}-${month}`);\n const rowList = [] as CalendarCell[][];\n let list = [] as CalendarCell[];\n let weekCount = 1;\n\n // 添加上个月中会在本月显示的最后几天日期\n const lastMonthDaysCount = (getDay(monthFirstDay.toDate()) - firstDayOfWeek + 7) % 7;\n for (let i = 0; i < lastMonthDaysCount; i++) {\n const dayObj = monthFirstDay.subtract(i + 1, 'day');\n list.unshift(createCellData(-1, false, dayObj.toDate(), weekCount));\n }\n\n // 添加本月日期\n const monthDaysCount = monthFirstDay.endOf('month').daysInMonth();\n for (let i = 0; i < monthDaysCount; i++) {\n const dayObj = monthFirstDay.add(i, 'day');\n list.push(createCellData(0, currentValue.isSame(dayObj), dayObj.toDate(), weekCount));\n if (list.length === 7) {\n rowList.push(list);\n list = [];\n weekCount += 1;\n }\n }\n\n // 添加下月日期\n if (list.length) {\n const monthLastDay = dayjs(`${year}-${month}`).endOf('month');\n const nextMonthDaysCount = 7 - list.length;\n for (let i = 0; i < nextMonthDaysCount; i++) {\n const dayObj = monthLastDay.add(i + 1, 'day');\n list.push(createCellData(1, false, dayObj.toDate(), weekCount));\n }\n rowList.push(list);\n }\n\n return rowList;\n};\n\n/**\n * 创建月历单元格数据\n * @param year 月历年份\n * @param currentValue 当前日期\n * @param format 输出格式\n * @param rowNum 一行日历的个数\n */\nexport const createMonthList = (\n year: number,\n currentValue: dayjs.Dayjs,\n format: string,\n rowNum = 4,\n): CalendarCell[][] => {\n const monthsArr: CalendarCell[][] = [];\n const isCurYear = currentValue.year() === year;\n let tmpArr: CalendarCell[] = [];\n for (let i = 1; i <= 12; i++) {\n const date = new Date(year, i - 1);\n const curDateMon = parseInt(currentValue.format('M'), 10);\n const isCurrent = isCurYear && curDateMon === i;\n tmpArr.push({\n mode: 'year',\n isCurrent,\n date,\n formattedDate: dayjs(date).format(format),\n filterDate: null,\n formattedFilterDate: null,\n isShowWeekend: true,\n });\n if (tmpArr.length === rowNum) {\n monthsArr.push(tmpArr);\n tmpArr = [];\n }\n }\n\n return monthsArr;\n};\n"],"names":["getDay","dt","day","dayjs","createDateList","year","month","firstDayOfWeek","currentValue","format","createCellData","belongTo","isCurrent","date","weekOrder","mode","formattedDate","filterDate","formattedFilterDate","isShowWeekend","monthFirstDay","rowList","list","weekCount","lastMonthDaysCount","toDate","i","dayObj","subtract","unshift","monthDaysCount","endOf","daysInMonth","add","push","isSame","length","monthLastDay","nextMonthDaysCount","createMonthList","rowNum","monthsArr","isCurYear","tmpArr","Date","curDateMon","parseInt"],"mappings":";;;;;;;;IAMaA,SAAS,SAATA,MAAS,CAACC,EAAD,EAAsB;MACtCC,MAAMC,MAAMF,GAAN,CAAUC,GAAV;;MACNA,QAAQ,GAAG;UACP;;;SAEDA;;IAWIE,iBAAiB,SAAjBA,cAAiB,CAC5BC,IAD4B,EAE5BC,KAF4B,EAG5BC,cAH4B,EAI5BC,YAJ4B,EAK5BC,MAL4B,EAMP;MACfC,iBAAiB,SAAjBA,cAAiB,CAACC,QAAD,EAAmBC,SAAnB,EAAuCC,IAAvC,EAAmDC,SAAnD,EAAuF;QACtGZ,MAAMF,OAAOa;WACZ;AACLE,MAAAA,MAAM,OADD;AAELJ,MAAAA,UAAAA,QAFK;AAGLC,MAAAA,WAAAA,SAHK;AAILV,MAAAA,KAAAA,GAJK;AAKLY,MAAAA,WAAAA,SALK;AAMLD,MAAAA,MAAAA,IANK;AAOLG,MAAAA,eAAeb,MAAMU,KAAN,CAAYJ,MAAZ,CAAmBA,MAAnB,CAPV;AAQLQ,MAAAA,YAAY,IARP;AASLC,MAAAA,qBAAqB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ASvC,IAAT,EAAeqB,IAAI,CAAnB;QACPmB,aAAaC,SAAStC,aAAaC,MAAb,CAAoB,GAApB,GAA0B;QAChDG,YAAY8B,aAAaG,eAAenB;
|
|
1
|
+
{"version":3,"file":"_util.js","sources":["../../src/calendar/_util.ts"],"sourcesContent":["import dayjs from 'dayjs';\nimport { CalendarCell } from '../_type/components/calendar';\n\n/**\n * 获取一个日期是周几(1~7)\n */\nexport const getDay = (dt: Date): number => {\n let day = dayjs(dt).day();\n if (day === 0) {\n day = 7;\n }\n return day;\n};\n\n/**\n * 创建日历单元格数据\n * @param year 日历年份\n * @param month 日历月份\n * @param firstDayOfWeek 周起始日(1~7)\n * @param currentValue 当前日期\n * @param format 日期格式\n */\nexport const createDateList = (\n year: number,\n month: number,\n firstDayOfWeek: number,\n currentValue: dayjs.Dayjs,\n format: string,\n): CalendarCell[][] => {\n const createCellData = (belongTo: number, isCurrent: boolean, date: Date, weekOrder: number): CalendarCell => {\n const day = getDay(date);\n return {\n mode: 'month',\n belongTo,\n isCurrent,\n day,\n weekOrder,\n date,\n formattedDate: dayjs(date).format(format),\n filterDate: null,\n formattedFilterDate: null,\n isShowWeekend: true,\n };\n };\n\n const monthFirstDay = dayjs(`${year}-${month}`);\n const rowList = [] as CalendarCell[][];\n let list = [] as CalendarCell[];\n let weekCount = 1;\n\n // 添加上个月中会在本月显示的最后几天日期\n const lastMonthDaysCount = (getDay(monthFirstDay.toDate()) - firstDayOfWeek + 7) % 7;\n for (let i = 0; i < lastMonthDaysCount; i++) {\n const dayObj = monthFirstDay.subtract(i + 1, 'day');\n list.unshift(createCellData(-1, false, dayObj.toDate(), weekCount));\n }\n\n // 添加本月日期\n const monthDaysCount = monthFirstDay.endOf('month').daysInMonth();\n for (let i = 0; i < monthDaysCount; i++) {\n const dayObj = monthFirstDay.add(i, 'day');\n list.push(createCellData(0, currentValue.isSame(dayObj), dayObj.toDate(), weekCount));\n if (list.length === 7) {\n rowList.push(list);\n list = [];\n weekCount += 1;\n }\n }\n\n // 添加下月日期\n if (list.length) {\n const monthLastDay = dayjs(`${year}-${month}`).endOf('month');\n const nextMonthDaysCount = 7 - list.length;\n for (let i = 0; i < nextMonthDaysCount; i++) {\n const dayObj = monthLastDay.add(i + 1, 'day');\n list.push(createCellData(1, false, dayObj.toDate(), weekCount));\n }\n rowList.push(list);\n }\n\n return rowList;\n};\n\n/**\n * 创建月历单元格数据\n * @param year 月历年份\n * @param currentValue 当前日期\n * @param format 输出格式\n * @param rowNum 一行日历的个数\n */\nexport const createMonthList = (\n year: number,\n currentValue: dayjs.Dayjs,\n format: string,\n rowNum = 4,\n): CalendarCell[][] => {\n const monthsArr: CalendarCell[][] = [];\n const isCurYear = currentValue.year() === year;\n let tmpArr: CalendarCell[] = [];\n for (let i = 1; i <= 12; i++) {\n const date = new Date(year, i - 1);\n const curDateMon = parseInt(currentValue.format('M'), 10);\n const isCurrent = isCurYear && curDateMon === i;\n\n tmpArr.push({\n mode: 'year',\n isCurrent,\n date,\n formattedDate: dayjs(date).format(format),\n filterDate: null,\n formattedFilterDate: null,\n isShowWeekend: true,\n });\n if (tmpArr.length === rowNum) {\n monthsArr.push(tmpArr);\n tmpArr = [];\n }\n }\n\n return monthsArr;\n};\n"],"names":["getDay","dt","day","dayjs","createDateList","year","month","firstDayOfWeek","currentValue","format","createCellData","belongTo","isCurrent","date","weekOrder","mode","formattedDate","filterDate","formattedFilterDate","isShowWeekend","monthFirstDay","rowList","list","weekCount","lastMonthDaysCount","toDate","i","dayObj","subtract","unshift","monthDaysCount","endOf","daysInMonth","add","push","isSame","length","monthLastDay","nextMonthDaysCount","createMonthList","rowNum","monthsArr","isCurYear","tmpArr","Date","curDateMon","parseInt"],"mappings":";;;;;;;;IAMaA,SAAS,SAATA,MAAS,CAACC,EAAD,EAAsB;MACtCC,MAAMC,MAAMF,GAAN,CAAUC,GAAV;;MACNA,QAAQ,GAAG;UACP;;;SAEDA;;IAWIE,iBAAiB,SAAjBA,cAAiB,CAC5BC,IAD4B,E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AIhB,KAAKc;;aAC3BV,MAAI,GAAGA,MAAIY,oBAAoBZ,OAAK;UACrCC,WAASU,aAAaJ,GAAb,CAAiBP,MAAI,CAArB,EAAwB,KAAxB;;WACVQ,KAAKxB,eAAe,GAAG,OAAOiB,SAAOF,MAAP,IAAiBF;;;YAE9CW,KAAKZ;;;SAGRD;;IAUIkB,kBAAkB,SAAlBA,eAAkB,CAC7BlC,IAD6B,EAE7BG,YAF6B,EAG7BC,MAH6B,EAKR;AAAA,MADrB+B,MACqB,uEADZ,CACY;MACfC,YAA8B;MAC9BC,YAAYlC,aAAaH,IAAb,OAAwBA;MACtCsC,SAAyB;;WACpBjB,IAAI,GAAGA,KAAK,IAAIA,KAAK;QACtBb,OAAO,IAAI+B,IAAJ,CAASvC,IAAT,EAAeqB,IAAI,CAAnB;QACPmB,aAAaC,SAAStC,aAAaC,MAAb,CAAoB,GAApB,GAA0B;QAChDG,YAAY8B,aAAaG,eAAenB;WAEvCQ,KAAK;AACVnB,MAAAA,MAAM,MADI;AAEVH,MAAAA,WAAAA,SAFU;AAGVC,MAAAA,MAAAA,IAHU;AAIVG,MAAAA,eAAeb,MAAMU,KAAN,CAAYJ,MAAZ,CAAmBA,MAAnB,CAJL;AAKVQ,MAAAA,YAAY,IALF;AAMVC,MAAAA,qBAAqB,IANX;AAOVC,MAAAA,eAAe;AAPL;;QASRwB,OAAOP,MAAP,KAAkBI,QAAQ;gBAClBN,KAAKS;eACN;;;;SAINF;;;;;"}
|
package/esm/calendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.18.
|
|
2
|
+
* tdesign v0.18.2
|
|
3
3
|
* (c) 2021 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
import Calendar$1 from './Calendar.js';
|
|
8
8
|
import './style/index.js';
|
|
9
9
|
import '../_type/components/calendar/index.js';
|
|
10
|
-
import '../_chunks/dep-
|
|
11
|
-
import '../_chunks/dep-
|
|
12
|
-
import '../_chunks/dep-
|
|
13
|
-
import '../_chunks/dep-
|
|
10
|
+
import '../_chunks/dep-2eeaa58b.js';
|
|
11
|
+
import '../_chunks/dep-6a5b1968.js';
|
|
12
|
+
import '../_chunks/dep-2f008905.js';
|
|
13
|
+
import '../_chunks/dep-efe7433b.js';
|
|
14
14
|
import 'react';
|
|
15
15
|
import 'dayjs';
|
|
16
16
|
import '../locale/LocalReceiver.js';
|
|
17
17
|
import '../config-provider/index.js';
|
|
18
18
|
import '../config-provider/ConfigProvider.js';
|
|
19
|
-
import '../_chunks/dep-
|
|
19
|
+
import '../_chunks/dep-016d27a7.js';
|
|
20
20
|
import '../config-provider/ConfigContext.js';
|
|
21
21
|
import '../locale/zh_CN.js';
|
|
22
22
|
import '../button/index.js';
|
|
@@ -31,37 +31,44 @@ import '../loading/loading.js';
|
|
|
31
31
|
import 'react-dom';
|
|
32
32
|
import '../_util/dom.js';
|
|
33
33
|
import 'raf';
|
|
34
|
-
import '../_chunks/dep-
|
|
35
|
-
import '../_chunks/dep-
|
|
36
|
-
import '../_chunks/dep-
|
|
37
|
-
import '../_chunks/dep-
|
|
38
|
-
import '../_chunks/dep-
|
|
39
|
-
import '../_chunks/dep-
|
|
40
|
-
import '../_chunks/dep-
|
|
34
|
+
import '../_chunks/dep-e507e9db.js';
|
|
35
|
+
import '../_chunks/dep-cb80da27.js';
|
|
36
|
+
import '../_chunks/dep-b6ff8559.js';
|
|
37
|
+
import '../_chunks/dep-1189939f.js';
|
|
38
|
+
import '../_chunks/dep-9ad4f4b7.js';
|
|
39
|
+
import '../_chunks/dep-4e491803.js';
|
|
40
|
+
import '../_chunks/dep-f3eac264.js';
|
|
41
41
|
import '../_util/easing.js';
|
|
42
42
|
import '../common/Portal.js';
|
|
43
|
-
import '../_chunks/dep-
|
|
43
|
+
import '../_chunks/dep-65c183dc.js';
|
|
44
44
|
import '../loading/style/index.js';
|
|
45
45
|
import '../_type/components/loading/index.js';
|
|
46
46
|
import '../button/style/index.js';
|
|
47
47
|
import '../_type/components/button/index.js';
|
|
48
48
|
import '../select/index.js';
|
|
49
49
|
import '../select/base/Select.js';
|
|
50
|
-
import 'lodash';
|
|
51
50
|
import 'tdesign-icons-react';
|
|
51
|
+
import '../_chunks/dep-83646039.js';
|
|
52
|
+
import '../_chunks/dep-504203df.js';
|
|
53
|
+
import '../_chunks/dep-74a044dc.js';
|
|
54
|
+
import '../_chunks/dep-b6158110.js';
|
|
55
|
+
import '../_chunks/dep-744f52b3.js';
|
|
56
|
+
import '../_chunks/dep-9d2e7b62.js';
|
|
57
|
+
import '../_chunks/dep-e83a1558.js';
|
|
58
|
+
import '../_chunks/dep-47afb0bc.js';
|
|
59
|
+
import '../_chunks/dep-ed9505a3.js';
|
|
60
|
+
import '../_chunks/dep-43869d17.js';
|
|
52
61
|
import '../_util/composeRefs.js';
|
|
53
62
|
import '../_util/useDefaultValue.js';
|
|
54
63
|
import '../_util/useDefault.js';
|
|
55
64
|
import '../_util/forwardRefWithStatics.js';
|
|
56
65
|
import 'hoist-non-react-statics';
|
|
57
66
|
import '../select/util/helper.js';
|
|
67
|
+
import 'lodash';
|
|
58
68
|
import '../select/base/OptionGroup.js';
|
|
59
69
|
import '../common/FakeArrow.js';
|
|
60
70
|
import '../input/index.js';
|
|
61
71
|
import '../input/Input.js';
|
|
62
|
-
import '../_chunks/dep-53a5fcb7.js';
|
|
63
|
-
import '../_chunks/dep-b78554de.js';
|
|
64
|
-
import '../_chunks/dep-c7c70ac0.js';
|
|
65
72
|
import '../input/InputGroup.js';
|
|
66
73
|
import '../input/style/index.js';
|
|
67
74
|
import '../_type/components/input/index.js';
|
|
@@ -80,13 +87,17 @@ import '../tag/CheckTag.js';
|
|
|
80
87
|
import '../tag/style/index.js';
|
|
81
88
|
import '../_type/components/tag/index.js';
|
|
82
89
|
import '../select/base/Option.js';
|
|
83
|
-
import '../_chunks/dep-
|
|
90
|
+
import '../_chunks/dep-462edfd5.js';
|
|
84
91
|
import '../select/base/PopupContent.js';
|
|
85
92
|
import '../select/style/index.js';
|
|
86
93
|
import '../_type/components/select/index.js';
|
|
87
94
|
import '../radio/index.js';
|
|
88
|
-
import '../_chunks/dep-
|
|
95
|
+
import '../_chunks/dep-5e5c403a.js';
|
|
89
96
|
import '../common/Check.js';
|
|
97
|
+
import '../_util/helper.js';
|
|
98
|
+
import '../_chunks/dep-8037ad24.js';
|
|
99
|
+
import '../_chunks/dep-5ec09fbd.js';
|
|
100
|
+
import '../_chunks/dep-0c106052.js';
|
|
90
101
|
import '../radio/style/index.js';
|
|
91
102
|
import '../_type/components/radio/index.js';
|
|
92
103
|
import './_util.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/calendar/index.ts"],"sourcesContent":["import _Calendar from './Calendar';\n\nimport './style/index.js';\n\nexport type { CalendarProps, CalendarMethods } from './Calendar';\nexport * from '../_type/components/calendar';\n\nexport const Calendar = _Calendar;\nexport default Calendar;\n"],"names":["Calendar","_Calendar"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/calendar/index.ts"],"sourcesContent":["import _Calendar from './Calendar';\n\nimport './style/index.js';\n\nexport type { CalendarProps, CalendarMethods } from './Calendar';\nexport * from '../_type/components/calendar';\n\nexport const Calendar = _Calendar;\nexport default Calendar;\n"],"names":["Calendar","_Calendar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOaA,WAAWC;;;;"}
|
package/esm/cascader/Cascader.js
CHANGED
|
@@ -1,61 +1,78 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.18.
|
|
2
|
+
* tdesign v0.18.2
|
|
3
3
|
* (c) 2021 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { _ as _defineProperty } from '../_chunks/dep-
|
|
8
|
-
import { _ as _slicedToArray } from '../_chunks/dep-
|
|
7
|
+
import { _ as _defineProperty } from '../_chunks/dep-efe7433b.js';
|
|
8
|
+
import { _ as _slicedToArray } from '../_chunks/dep-2f008905.js';
|
|
9
9
|
import React__default, { useState, useMemo, useEffect } from 'react';
|
|
10
10
|
import { useLocaleReceiver } from '../locale/LocalReceiver.js';
|
|
11
11
|
import Panel from './components/Panel.js';
|
|
12
12
|
import { Popup } from '../popup/index.js';
|
|
13
13
|
import InputContent from './components/InputContent.js';
|
|
14
14
|
import useConfig from '../_util/useConfig.js';
|
|
15
|
-
import { T as TreeStore } from '../_chunks/dep-
|
|
15
|
+
import { T as TreeStore } from '../_chunks/dep-b44aec31.js';
|
|
16
16
|
import useDefault from '../_util/useDefault.js';
|
|
17
17
|
import { getTreeValue } from './utils/helper.js';
|
|
18
18
|
import { treeNodesEffect, treeStoreExpendEffect } from './utils/cascader.js';
|
|
19
|
-
import '../_chunks/dep-
|
|
19
|
+
import '../_chunks/dep-6a5b1968.js';
|
|
20
20
|
import '../config-provider/index.js';
|
|
21
21
|
import '../config-provider/ConfigProvider.js';
|
|
22
|
-
import '../_chunks/dep-
|
|
22
|
+
import '../_chunks/dep-016d27a7.js';
|
|
23
23
|
import '../config-provider/ConfigContext.js';
|
|
24
24
|
import '../locale/zh_CN.js';
|
|
25
25
|
import 'classnames';
|
|
26
26
|
import './utils/panel.js';
|
|
27
|
-
import '../_chunks/dep-
|
|
28
|
-
import '../_chunks/dep-
|
|
29
|
-
import '../_chunks/dep-
|
|
30
|
-
import '../_chunks/dep-
|
|
31
|
-
import '../_chunks/dep-
|
|
32
|
-
import '../_chunks/dep-
|
|
33
|
-
import '../_chunks/dep-
|
|
34
|
-
import '../_chunks/dep-
|
|
27
|
+
import '../_chunks/dep-83646039.js';
|
|
28
|
+
import '../_chunks/dep-cb80da27.js';
|
|
29
|
+
import '../_chunks/dep-b6ff8559.js';
|
|
30
|
+
import '../_chunks/dep-1189939f.js';
|
|
31
|
+
import '../_chunks/dep-504203df.js';
|
|
32
|
+
import '../_chunks/dep-74a044dc.js';
|
|
33
|
+
import '../_chunks/dep-462edfd5.js';
|
|
34
|
+
import '../_chunks/dep-f3eac264.js';
|
|
35
35
|
import './components/Item.js';
|
|
36
36
|
import 'tdesign-icons-react';
|
|
37
37
|
import '../_util/useCommonClassName.js';
|
|
38
38
|
import '../_util/useRipple.js';
|
|
39
39
|
import '../_util/setStyle.js';
|
|
40
40
|
import './utils/item.js';
|
|
41
|
-
import '../_chunks/dep-
|
|
41
|
+
import '../_chunks/dep-2eeaa58b.js';
|
|
42
|
+
import '../loading/index.js';
|
|
43
|
+
import '../loading/loading.js';
|
|
44
|
+
import 'react-dom';
|
|
45
|
+
import '../_util/dom.js';
|
|
46
|
+
import 'raf';
|
|
47
|
+
import '../_chunks/dep-e507e9db.js';
|
|
48
|
+
import '../_chunks/dep-9ad4f4b7.js';
|
|
49
|
+
import '../_chunks/dep-4e491803.js';
|
|
50
|
+
import '../_util/easing.js';
|
|
51
|
+
import '../common/Portal.js';
|
|
52
|
+
import '../_chunks/dep-65c183dc.js';
|
|
53
|
+
import '../loading/style/index.js';
|
|
54
|
+
import '../_type/components/loading/index.js';
|
|
42
55
|
import '../tooltip/Tooltip.js';
|
|
43
56
|
import '../popup/Popup.js';
|
|
44
57
|
import 'react-popper';
|
|
45
58
|
import '../_util/composeRefs.js';
|
|
46
59
|
import '../_util/usePrevious.js';
|
|
47
60
|
import '../popup/Portal.js';
|
|
48
|
-
import 'react-dom';
|
|
49
61
|
import '../popup/useTriggerProps.js';
|
|
50
62
|
import '../_util/useClickOutside.js';
|
|
51
63
|
import '../_util/noop.js';
|
|
52
64
|
import '../popup/style/index.js';
|
|
53
65
|
import '../_type/components/popup/index.js';
|
|
54
|
-
import '../
|
|
66
|
+
import '../_chunks/dep-edb4c08f.js';
|
|
55
67
|
import '../_util/forwardRefWithStatics.js';
|
|
56
68
|
import 'hoist-non-react-statics';
|
|
57
69
|
import '../common/Check.js';
|
|
58
|
-
import '../
|
|
70
|
+
import '../_util/helper.js';
|
|
71
|
+
import '../_chunks/dep-8037ad24.js';
|
|
72
|
+
import '../_chunks/dep-43869d17.js';
|
|
73
|
+
import '../_chunks/dep-9d2e7b62.js';
|
|
74
|
+
import '../_chunks/dep-5ec09fbd.js';
|
|
75
|
+
import '../_chunks/dep-0c106052.js';
|
|
59
76
|
import '../tag/index.js';
|
|
60
77
|
import '../tag/Tag.js';
|
|
61
78
|
import '../tag/CheckTag.js';
|
|
@@ -69,28 +86,20 @@ import '../input/style/index.js';
|
|
|
69
86
|
import '../_type/components/input/index.js';
|
|
70
87
|
import '../common/FakeArrow.js';
|
|
71
88
|
import './utils/inputContent.js';
|
|
72
|
-
import '../_chunks/dep-
|
|
73
|
-
import '../_chunks/dep-
|
|
74
|
-
import '../_chunks/dep-
|
|
75
|
-
import '../_chunks/dep-
|
|
76
|
-
import '../_chunks/dep-
|
|
77
|
-
import '../_chunks/dep-
|
|
78
|
-
import '../_chunks/dep-
|
|
79
|
-
import '../_chunks/dep-
|
|
80
|
-
import '../_chunks/dep-
|
|
81
|
-
import '../_chunks/dep-
|
|
82
|
-
import '../_chunks/dep-
|
|
83
|
-
import '../_chunks/dep-
|
|
84
|
-
import '../_chunks/dep-
|
|
85
|
-
import '../_chunks/dep-
|
|
86
|
-
import '../_chunks/dep-766ddb96.js';
|
|
87
|
-
import '../_chunks/dep-7fd82250.js';
|
|
88
|
-
import '../_chunks/dep-40f6ccc8.js';
|
|
89
|
-
import '../_chunks/dep-4adf27fa.js';
|
|
90
|
-
import '../_chunks/dep-8d2e5702.js';
|
|
91
|
-
import '../_chunks/dep-bc117952.js';
|
|
92
|
-
import '../_chunks/dep-ce96caf9.js';
|
|
93
|
-
import '../_chunks/dep-6d4c74ed.js';
|
|
89
|
+
import '../_chunks/dep-9c56e17c.js';
|
|
90
|
+
import '../_chunks/dep-11b4e1d1.js';
|
|
91
|
+
import '../_chunks/dep-b6158110.js';
|
|
92
|
+
import '../_chunks/dep-744f52b3.js';
|
|
93
|
+
import '../_chunks/dep-e83a1558.js';
|
|
94
|
+
import '../_chunks/dep-47afb0bc.js';
|
|
95
|
+
import '../_chunks/dep-ed9505a3.js';
|
|
96
|
+
import '../_chunks/dep-4e5953fc.js';
|
|
97
|
+
import '../_chunks/dep-1b2238b1.js';
|
|
98
|
+
import '../_chunks/dep-efa4ba54.js';
|
|
99
|
+
import '../_chunks/dep-bb05ae7d.js';
|
|
100
|
+
import '../_chunks/dep-32b70135.js';
|
|
101
|
+
import '../_chunks/dep-f7d3ea79.js';
|
|
102
|
+
import '../_chunks/dep-039ac0dd.js';
|
|
94
103
|
|
|
95
104
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
96
105
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cascader.js","sources":["../../src/cascader/Cascader.tsx"],"sourcesContent":["import React, { useState, useEffect, useMemo } from 'react';\n\n// component\nimport { useLocaleReceiver } from '../locale/LocalReceiver';\nimport Panel from './components/Panel';\nimport Popup from '../popup';\nimport InputContent from './components/InputContent';\n\n// utils\nimport useConfig from '../_util/useConfig';\nimport TreeStore from '../_common/js/tree/tree-store';\nimport useDefault from '../_util/useDefault';\nimport { getTreeValue } from './utils/helper';\n\n// common logic\nimport { treeNodesEffect, treeStoreExpendEffect } from './utils/cascader';\n\n// types\nimport { CascaderProps, CascaderContextType, TreeNodeValue } from './interface';\n\nconst Cascader: React.FC<CascaderProps> = (props) => {\n /**\n * global user props, config, data\n */\n const { classPrefix } = useConfig();\n const name = `${classPrefix}-cascader`;\n const { className, style, defaultValue, onChange, collapsedItems } = props;\n\n const [value, setValue] = useDefault(props.value, defaultValue, onChange);\n\n const [visible, setVisible] = useState(false);\n const [treeStore, setTreeStore] = useState(null);\n const [filterActive, setFilterActive] = useState(false);\n const [inputVal, setInputVal] = useState('');\n const [treeNodes, setTreeNodes] = useState([]);\n const [expend, setExpend] = useState<TreeNodeValue[]>([]);\n\n // cascaderContext, center status\n const cascaderContext = useMemo(() => {\n const {\n size = 'medium',\n disabled = false,\n checkStrictly = false,\n lazy = true,\n multiple = false,\n filterable = false,\n clearable = false,\n checkProps = {},\n max = 0,\n showAllLevels = true,\n minCollapsedNum = false,\n } = props;\n return {\n size,\n disabled,\n checkStrictly,\n lazy,\n multiple,\n filterable,\n value,\n setValue,\n visible,\n setVisible,\n treeStore,\n checkProps,\n clearable,\n showAllLevels,\n max,\n treeNodes,\n setTreeNodes,\n filterActive,\n setFilterActive,\n inputVal,\n setInputVal,\n setExpend,\n minCollapsedNum,\n } as CascaderContextType;\n }, [props, inputVal, value, setValue, visible, treeStore, treeNodes, filterActive]);\n\n /**\n * build tree\n */\n const { disabled, options = [], keys, checkStrictly = false, lazy = true, load, valueMode = 'onlyLeaf' } = props;\n\n const createStore = (onLoad: () => void) => {\n const treeProps = {\n keys: keys || {},\n checkable: true,\n checkStrictly,\n expandMutex: true,\n expandParent: true,\n disabled,\n load,\n lazy,\n valueMode,\n onLoad,\n };\n const store = new TreeStore(treeProps);\n\n store.append(options);\n return store;\n };\n\n if (!treeStore) {\n const store = createStore(() => {\n setTimeout(() => {\n store.refreshNodes();\n treeNodesEffect(inputVal, store, setTreeNodes);\n }, 0);\n });\n setTreeStore(store);\n }\n\n useEffect(() => {\n const treeProps = {\n keys: keys || {},\n checkable: true,\n checkStrictly,\n expandMutex: true,\n expandParent: true,\n disabled,\n load,\n lazy,\n valueMode,\n options,\n };\n treeStore.setConfig(treeProps);\n }, [checkStrictly, disabled, keys, lazy, load, options, valueMode, treeStore]);\n\n // treeStore and expend effect\n useEffect(() => {\n if (!treeStore) return;\n treeStoreExpendEffect(treeStore, value, expend);\n }, [treeStore, value, expend]);\n\n // value change will effect treeNodes, in filter, inputVal will also change treeNodes\n useEffect(() => {\n if (!treeStore) return;\n treeNodesEffect(inputVal, treeStore, setTreeNodes);\n }, [inputVal, treeStore, value]);\n\n // tree checked effect\n useEffect(() => {\n if (!treeStore) return;\n treeStore.replaceChecked(getTreeValue(value));\n }, [value, treeStore]);\n\n useEffect(() => {\n if (!filterActive) {\n setInputVal('');\n }\n }, [filterActive]);\n\n const [local, t] = useLocaleReceiver('cascader');\n\n // panel props\n const { empty = t(local.empty), trigger = 'click' } = props;\n\n // inputContent props\n const { placeholder = '请输入', onRemove, onBlur, onFocus } = props;\n\n return (\n <Popup\n placement=\"bottom-left\"\n visible={visible}\n overlayClassName={`${name}-dropdown`}\n destroyOnClose\n {...props?.popupProps}\n content={<Panel cascaderContext={cascaderContext} trigger={trigger} onChange={onChange} empty={empty} />}\n >\n <InputContent\n collapsedItems={collapsedItems}\n cascaderContext={cascaderContext}\n style={style}\n className={className}\n listeners={{\n onRemove,\n onBlur,\n onFocus,\n onChange,\n }}\n placeholder={placeholder}\n />\n {/* TODO popup need a node */}\n <></>\n </Popup>\n );\n};\n\nexport default Cascader;\n"],"names":["Cascader","props","useConfig","classPrefix","name","className","style","defaultValue","onChange","collapsedItems","useDefault","value","setValue","useState","visible","setVisible","treeStore","setTreeStore","filterActive","setFilterActive","inputVal","setInputVal","treeNodes","setTreeNodes","expend","setExpend","cascaderContext","useMemo","size","disabled","checkStrictly","lazy","multiple","filterable","clearable","checkProps","max","showAllLevels","minCollapsedNum","options","keys","load","valueMode","createStore","onLoad","treeProps","checkable","expandMutex","expandParent","store","TreeStore","append","refreshNodes","setConfig","replaceChecked","getTreeValue","useLocaleReceiver","local","t","empty","trigger","placeholder","onRemove","onBlur","onFocus","Popup","placement","overlayClassName","destroyOnClose","popupProps","content","Panel","InputContent","listeners"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Cascader.js","sources":["../../src/cascader/Cascader.tsx"],"sourcesContent":["import React, { useState, useEffect, useMemo } from 'react';\n\n// component\nimport { useLocaleReceiver } from '../locale/LocalReceiver';\nimport Panel from './components/Panel';\nimport Popup from '../popup';\nimport InputContent from './components/InputContent';\n\n// utils\nimport useConfig from '../_util/useConfig';\nimport TreeStore from '../_common/js/tree/tree-store';\nimport useDefault from '../_util/useDefault';\nimport { getTreeValue } from './utils/helper';\n\n// common logic\nimport { treeNodesEffect, treeStoreExpendEffect } from './utils/cascader';\n\n// types\nimport { CascaderProps, CascaderContextType, TreeNodeValue } from './interface';\n\nconst Cascader: React.FC<CascaderProps> = (props) => {\n /**\n * global user props, config, data\n */\n const { classPrefix } = useConfig();\n const name = `${classPrefix}-cascader`;\n const { className, style, defaultValue, onChange, collapsedItems } = props;\n\n const [value, setValue] = useDefault(props.value, defaultValue, onChange);\n\n const [visible, setVisible] = useState(false);\n const [treeStore, setTreeStore] = useState(null);\n const [filterActive, setFilterActive] = useState(false);\n const [inputVal, setInputVal] = useState('');\n const [treeNodes, setTreeNodes] = useState([]);\n const [expend, setExpend] = useState<TreeNodeValue[]>([]);\n\n // cascaderContext, center status\n const cascaderContext = useMemo(() => {\n const {\n size = 'medium',\n disabled = false,\n checkStrictly = false,\n lazy = true,\n multiple = false,\n filterable = false,\n clearable = false,\n checkProps = {},\n max = 0,\n showAllLevels = true,\n minCollapsedNum = false,\n } = props;\n return {\n size,\n disabled,\n checkStrictly,\n lazy,\n multiple,\n filterable,\n value,\n setValue,\n visible,\n setVisible,\n treeStore,\n checkProps,\n clearable,\n showAllLevels,\n max,\n treeNodes,\n setTreeNodes,\n filterActive,\n setFilterActive,\n inputVal,\n setInputVal,\n setExpend,\n minCollapsedNum,\n } as CascaderContextType;\n }, [props, inputVal, value, setValue, visible, treeStore, treeNodes, filterActive]);\n\n /**\n * build tree\n */\n const { disabled, options = [], keys, checkStrictly = false, lazy = true, load, valueMode = 'onlyLeaf' } = props;\n\n const createStore = (onLoad: () => void) => {\n const treeProps = {\n keys: keys || {},\n checkable: true,\n checkStrictly,\n expandMutex: true,\n expandParent: true,\n disabled,\n load,\n lazy,\n valueMode,\n onLoad,\n };\n const store = new TreeStore(treeProps);\n\n store.append(options);\n return store;\n };\n\n if (!treeStore) {\n const store = createStore(() => {\n setTimeout(() => {\n store.refreshNodes();\n treeNodesEffect(inputVal, store, setTreeNodes);\n }, 0);\n });\n setTreeStore(store);\n }\n\n useEffect(() => {\n const treeProps = {\n keys: keys || {},\n checkable: true,\n checkStrictly,\n expandMutex: true,\n expandParent: true,\n disabled,\n load,\n lazy,\n valueMode,\n options,\n };\n treeStore.setConfig(treeProps);\n }, [checkStrictly, disabled, keys, lazy, load, options, valueMode, treeStore]);\n\n // treeStore and expend effect\n useEffect(() => {\n if (!treeStore) return;\n treeStoreExpendEffect(treeStore, value, expend);\n }, [treeStore, value, expend]);\n\n // value change will effect treeNodes, in filter, inputVal will also change treeNodes\n useEffect(() => {\n if (!treeStore) return;\n treeNodesEffect(inputVal, treeStore, setTreeNodes);\n }, [inputVal, treeStore, value]);\n\n // tree checked effect\n useEffect(() => {\n if (!treeStore) return;\n treeStore.replaceChecked(getTreeValue(value));\n }, [value, treeStore]);\n\n useEffect(() => {\n if (!filterActive) {\n setInputVal('');\n }\n }, [filterActive]);\n\n const [local, t] = useLocaleReceiver('cascader');\n\n // panel props\n const { empty = t(local.empty), trigger = 'click' } = props;\n\n // inputContent props\n const { placeholder = '请输入', onRemove, onBlur, onFocus } = props;\n\n return (\n <Popup\n placement=\"bottom-left\"\n visible={visible}\n overlayClassName={`${name}-dropdown`}\n destroyOnClose\n {...props?.popupProps}\n content={<Panel cascaderContext={cascaderContext} trigger={trigger} onChange={onChange} empty={empty} />}\n >\n <InputContent\n collapsedItems={collapsedItems}\n cascaderContext={cascaderContext}\n style={style}\n className={className}\n listeners={{\n onRemove,\n onBlur,\n onFocus,\n onChange,\n }}\n placeholder={placeholder}\n />\n {/* TODO popup need a node */}\n <></>\n </Popup>\n );\n};\n\nexport default Cascader;\n"],"names":["Cascader","props","useConfig","classPrefix","name","className","style","defaultValue","onChange","collapsedItems","useDefault","value","setValue","useState","visible","setVisible","treeStore","setTreeStore","filterActive","setFilterActive","inputVal","setInputVal","treeNodes","setTreeNodes","expend","setExpend","cascaderContext","useMemo","size","disabled","checkStrictly","lazy","multiple","filterable","clearable","checkProps","max","showAllLevels","minCollapsedNum","options","keys","load","valueMode","createStore","onLoad","treeProps","checkable","expandMutex","expandParent","store","TreeStore","append","refreshNodes","setConfig","replaceChecked","getTreeValue","useLocaleReceiver","local","t","empty","trigger","placeholder","onRemove","onBlur","onFocus","Popup","placement","overlayClassName","destroyOnClose","popupProps","content","Panel","InputContent","listeners"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBMA,WAAoC,SAApCA,QAAoC,CAACC,KAAD,EAAW;mBAI3BC;MAAhBC,yBAAAA;;MACFC,iBAAUD;MACRE,YAA6DJ,MAA7DI;MAAWC,QAAkDL,MAAlDK;MAAOC,eAA2CN,MAA3CM;MAAcC,WAA6BP,MAA7BO;MAAUC,iBAAmBR,MAAnBQ;;oBAExBC,WAAWT,MAAMU,OAAOJ,cAAcC;;MAAzDG;MAAOC;;kBAEgBC,SAAS;;MAAhCC;MAASC;;mBACkBF,SAAS;;MAApCG;MAAWC;;mBACsBJ,SAAS;;MAA1CK;MAAcC;;mBACWN,SAAS;;MAAlCO;MAAUC;;mBACiBR,SAAS;;MAApCS;MAAWC;;oBACUV,SAA0B;;MAA/CW;MAAQC;;MAGTC,kBAAkBC,QAAQ,YAAM;sBAahC1B,MAXF2B;QAAAA,gCAAO;0BAWL3B,MAVF4B;iDAAW;+BAUT5B,MATF6B;2DAAgB;sBASd7B,MARF8B;yCAAO;0BAQL9B,MAPF+B;QAAAA,wCAAW;4BAOT/B,MANFgC;QAAAA,4CAAa;2BAMXhC,MALFiC;QAAAA,0CAAY;4BAKVj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zD,MAA9C0D;MAAAA,kCAAQD,EAAED,MAAME;uBAA8B1D,MAAtB2D;MAAAA,sCAAU;2BAGiB3D,MAAnD4D;MAAAA,8CAAc;MAAOC,WAA8B7D,MAA9B6D;MAAUC,SAAoB9D,MAApB8D;MAAQC,UAAY/D,MAAZ+D;qDAG5CC;AACCC,IAAAA,WAAU;AACVpD,IAAAA,SAAAA;AACAqD,IAAAA,4BAAqB/D;AACrBgE,IAAAA,gBAAc;KACVnE,kBAAAA,4BAAAA,MAAOoE;AACXC,IAAAA,qDAAUC,OAAD;AAAO7C,MAAAA,iBAAAA,eAAP;AAAyCkC,MAAAA,SAAAA,OAAzC;AAA2DpD,MAAAA,UAAAA,QAA3D;AAA+EmD,MAAAA,OAAAA;AAA/E;kDAERa,cAAD;AACE/D,IAAAA,gBAAAA,cADF;AAEEiB,IAAAA,iBAAAA,eAFF;AAGEpB,IAAAA,OAAAA,KAHF;AAIED,IAAAA,WAAAA,SAJF;AAKEoE,IAAAA,WAAW;AACTX,MAAAA,UAAAA,QADS;AAETC,MAAAA,QAAAA,MAFS;AAGTC,MAAAA,SAAAA,OAHS;AAITxD,MAAAA,UAAAA;AAJS,KALb;AAWEqD,IAAAA,aAAAA;AAXF;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v0.18.
|
|
2
|
+
* tdesign v0.18.2
|
|
3
3
|
* (c) 2021 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { _ as _slicedToArray } from '../../_chunks/dep-
|
|
7
|
+
import { _ as _slicedToArray } from '../../_chunks/dep-2f008905.js';
|
|
8
8
|
import React__default, { useMemo, useState, useRef, useEffect } from 'react';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import { i as isFunction_1 } from '../../_chunks/dep-
|
|
10
|
+
import { i as isFunction_1 } from '../../_chunks/dep-83646039.js';
|
|
11
11
|
import { CloseCircleFilledIcon } from 'tdesign-icons-react';
|
|
12
12
|
import useConfig from '../../_util/useConfig.js';
|
|
13
13
|
import useCommonClassName from '../../_util/useCommonClassName.js';
|
|
@@ -15,17 +15,17 @@ import { Tag } from '../../tag/index.js';
|
|
|
15
15
|
import { Input } from '../../input/index.js';
|
|
16
16
|
import FakeArrow from '../../common/FakeArrow.js';
|
|
17
17
|
import { closeIconClickEffect, getSingleContent, getMultipleContent, handleRemoveTagEffect, getPlaceholderShow, getCascaderInnerClasses, outerClickListenerEffect, getCloseIconClass, getFakeArrowIconClass, getCloseShow, innerContentClickEffect } from '../utils/inputContent.js';
|
|
18
|
-
import '../../_chunks/dep-
|
|
19
|
-
import '../../_chunks/dep-
|
|
20
|
-
import '../../_chunks/dep-
|
|
21
|
-
import '../../_chunks/dep-
|
|
22
|
-
import '../../_chunks/dep-
|
|
23
|
-
import '../../_chunks/dep-
|
|
18
|
+
import '../../_chunks/dep-6a5b1968.js';
|
|
19
|
+
import '../../_chunks/dep-cb80da27.js';
|
|
20
|
+
import '../../_chunks/dep-b6ff8559.js';
|
|
21
|
+
import '../../_chunks/dep-1189939f.js';
|
|
22
|
+
import '../../_chunks/dep-504203df.js';
|
|
23
|
+
import '../../_chunks/dep-74a044dc.js';
|
|
24
24
|
import '../../config-provider/ConfigContext.js';
|
|
25
25
|
import '../../locale/zh_CN.js';
|
|
26
26
|
import '../../tag/Tag.js';
|
|
27
|
-
import '../../_chunks/dep-
|
|
28
|
-
import '../../_chunks/dep-
|
|
27
|
+
import '../../_chunks/dep-efe7433b.js';
|
|
28
|
+
import '../../_chunks/dep-016d27a7.js';
|
|
29
29
|
import '../../_util/noop.js';
|
|
30
30
|
import '../../_util/forwardRefWithStatics.js';
|
|
31
31
|
import 'hoist-non-react-statics';
|