acud 1.2.17 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acud.js +12452 -19749
- package/dist/acud.js.map +1 -1
- package/es/_util/colors.d.ts +3 -3
- package/es/_util/colors.js +2 -2
- package/es/_util/easings.js +2 -4
- package/es/_util/getDataOrAriaProps.js +0 -1
- package/es/_util/getRenderPropValue.d.ts +1 -1
- package/es/_util/getRenderPropValue.js +0 -3
- package/es/_util/getScroll.js +0 -4
- package/es/_util/hooks/useCombinedRefs.js +0 -2
- package/es/_util/hooks/useFlexGapSupport.js +3 -4
- package/es/_util/hooks/useForceUpdate.js +4 -5
- package/es/_util/hooks/useMergedState.js +17 -26
- package/es/_util/hooks/usePatchElement.js +5 -6
- package/es/_util/hooks/useSyncState.d.ts +1 -1
- package/es/_util/hooks/useSyncState.js +2 -2
- package/es/_util/isNumeric.js +0 -1
- package/es/_util/motion.d.ts +1 -1
- package/es/_util/motion.js +2 -11
- package/es/_util/reactNode.d.ts +2 -2
- package/es/_util/reactNode.js +0 -1
- package/es/_util/responsiveObserve.d.ts +5 -5
- package/es/_util/responsiveObserve.js +0 -8
- package/es/_util/scrollTo.js +6 -10
- package/es/_util/statusUtils.d.ts +1 -1
- package/es/_util/statusUtils.js +0 -1
- package/es/_util/styleChecker.js +6 -10
- package/es/_util/throttleByAnimationFrame.js +0 -6
- package/es/_util/type.d.ts +3 -3
- package/es/_util/type.js +0 -2
- package/es/affix/index.d.ts +1 -1
- package/es/affix/index.js +33 -88
- package/es/affix/utils.d.ts +2 -2
- package/es/affix/utils.js +6 -14
- package/es/alert/ErrorBoundary.js +5 -16
- package/es/alert/index.js +28 -54
- package/es/anchor/Anchor.d.ts +2 -2
- package/es/anchor/Anchor.js +21 -72
- package/es/anchor/AnchorLink.d.ts +2 -2
- package/es/anchor/AnchorLink.js +13 -32
- package/es/anchor/style/css.js +2 -1
- package/es/anchor/style/index.js +2 -1
- package/es/avatar/SizeContext.d.ts +1 -1
- package/es/avatar/SizeContext.js +1 -1
- package/es/avatar/avatar.js +27 -55
- package/es/avatar/group.js +12 -17
- package/es/avatar/style/css.js +2 -2
- package/es/avatar/style/index.js +2 -2
- package/es/back-top/index.js +14 -27
- package/es/badge/Ribbon.d.ts +1 -1
- package/es/badge/Ribbon.js +9 -17
- package/es/badge/ScrollNumber.js +20 -34
- package/es/badge/SingleNumber.d.ts +2 -2
- package/es/badge/SingleNumber.js +23 -39
- package/es/badge/index.js +47 -75
- package/es/badge/style/index.css +14 -119
- package/es/badge/utils.js +2 -2
- package/es/breadcrumb/Breadcrumb.js +13 -25
- package/es/breadcrumb/BreadcrumbItem.js +13 -31
- package/es/button/LoadingIcon.d.ts +2 -1
- package/es/button/LoadingIcon.js +0 -2
- package/es/button/button-group.d.ts +1 -1
- package/es/button/button-group.js +2 -12
- package/es/button/button.d.ts +6 -6
- package/es/button/button.js +23 -46
- package/es/calendar/Header.d.ts +2 -2
- package/es/calendar/Header.js +26 -49
- package/es/calendar/generateCalendar.d.ts +8 -8
- package/es/calendar/generateCalendar.js +43 -69
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/interface.d.ts +4 -4
- package/es/calendar/style/css.js +2 -2
- package/es/calendar/style/index.js +2 -2
- package/es/card/Card.d.ts +4 -4
- package/es/card/Card.js +40 -62
- package/es/card/Grid.js +5 -14
- package/es/card/Meta.js +7 -17
- package/es/card/style/css.js +2 -2
- package/es/card/style/index.css +2 -13
- package/es/card/style/index.js +2 -2
- package/es/carousel/carousel.d.ts +3 -3
- package/es/carousel/carousel.js +48 -64
- package/es/carousel/indicator.js +14 -22
- package/es/carousel/switch.js +2 -4
- package/es/cascader/Cascader.d.ts +4 -4
- package/es/cascader/Cascader.js +41 -147
- package/es/cascader/MenuItem.d.ts +1 -1
- package/es/cascader/MenuItem.js +16 -23
- package/es/cascader/Menus.d.ts +5 -5
- package/es/cascader/Menus.js +87 -153
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/index.js +71 -155
- package/es/cascader/renderEmpty.d.ts +1 -1
- package/es/cascader/renderEmpty.js +0 -2
- package/es/cascader/style/css.js +2 -2
- package/es/cascader/style/index.css +4 -8
- package/es/cascader/style/index.js +2 -2
- package/es/cascader/utils.js +2 -8
- package/es/checkbox/BaseCheckbox.d.ts +1 -1
- package/es/checkbox/BaseCheckbox.js +22 -46
- package/es/checkbox/ButtonCheckbox.d.ts +1 -1
- package/es/checkbox/ButtonCheckbox.js +9 -33
- package/es/checkbox/Checkbox.js +19 -35
- package/es/checkbox/Group.d.ts +1 -1
- package/es/checkbox/Group.js +20 -45
- package/es/checkbox/GroupButtonCheckbox.d.ts +2 -1
- package/es/checkbox/GroupButtonCheckbox.js +12 -26
- package/es/checkbox/style/index.css +1 -12
- package/es/clear/index.d.ts +2 -1
- package/es/clear/index.js +4 -14
- package/es/col/style/css.js +2 -2
- package/es/col/style/index.js +2 -2
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/Collapse.js +3 -14
- package/es/collapse/CollapsePanel.js +3 -6
- package/es/color-picker/colorPicker.d.ts +1 -1
- package/es/color-picker/colorPicker.js +37 -46
- package/es/color-picker/style/css.js +2 -2
- package/es/color-picker/style/index.js +2 -2
- package/es/color-picker/util.js +4 -7
- package/es/config-provider/DisabledContext.d.ts +1 -1
- package/es/config-provider/DisabledContext.js +1 -1
- package/es/config-provider/SizeContext.d.ts +1 -1
- package/es/config-provider/SizeContext.js +1 -1
- package/es/config-provider/context.d.ts +2 -2
- package/es/config-provider/context.js +0 -6
- package/es/config-provider/index.js +24 -40
- package/es/config-provider/renderEmpty.d.ts +1 -1
- package/es/config-provider/renderEmpty.js +0 -7
- package/es/date-picker/PickerButton.d.ts +2 -2
- package/es/date-picker/PickerTag.d.ts +2 -2
- package/es/date-picker/generatePicker/generateRangePicker.js +15 -36
- package/es/date-picker/generatePicker/generateSinglePicker.js +14 -40
- package/es/date-picker/generatePicker/index.d.ts +12 -12
- package/es/date-picker/generatePicker/index.js +12 -26
- package/es/date-picker/index.d.ts +4 -4
- package/es/date-picker/locale/en_US.js +2 -2
- package/es/date-picker/locale/zh_CN.js +4 -4
- package/es/date-picker/src/PanelContext.d.ts +2 -2
- package/es/date-picker/src/Picker.d.ts +8 -8
- package/es/date-picker/src/Picker.js +167 -213
- package/es/date-picker/src/PickerPanel.d.ts +6 -6
- package/es/date-picker/src/PickerPanel.js +113 -167
- package/es/date-picker/src/PickerTrigger.d.ts +3 -3
- package/es/date-picker/src/PickerTrigger.js +11 -18
- package/es/date-picker/src/RangeContext.d.ts +1 -1
- package/es/date-picker/src/RangePicker.d.ts +11 -11
- package/es/date-picker/src/RangePicker.js +259 -376
- package/es/date-picker/src/generate/dateFns.js +0 -6
- package/es/date-picker/src/generate/dayjs.js +2 -15
- package/es/date-picker/src/generate/index.d.ts +1 -1
- package/es/date-picker/src/generate/moment.js +2 -11
- package/es/date-picker/src/hooks/useCellClassName.js +8 -14
- package/es/date-picker/src/hooks/useHoverValue.js +11 -20
- package/es/date-picker/src/hooks/usePickerInput.js +23 -44
- package/es/date-picker/src/hooks/useRangeDisabled.js +13 -29
- package/es/date-picker/src/hooks/useRangeViewDates.js +17 -40
- package/es/date-picker/src/hooks/useTextValueMapping.js +4 -9
- package/es/date-picker/src/hooks/useValueTexts.d.ts +1 -1
- package/es/date-picker/src/hooks/useValueTexts.js +4 -8
- package/es/date-picker/src/interface.d.ts +15 -15
- package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
- package/es/date-picker/src/panels/DatePanel/DateBody.js +13 -20
- package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
- package/es/date-picker/src/panels/DatePanel/DateHeader.js +12 -17
- package/es/date-picker/src/panels/DatePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DatePanel/index.js +17 -20
- package/es/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DatetimePanel/index.js +15 -21
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -7
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -10
- package/es/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/DecadePanel/index.js +10 -14
- package/es/date-picker/src/panels/Header.d.ts +2 -2
- package/es/date-picker/src/panels/Header.js +15 -19
- package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/MonthBody.js +7 -11
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -12
- package/es/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/MonthPanel/index.js +11 -15
- package/es/date-picker/src/panels/PanelBody.d.ts +2 -2
- package/es/date-picker/src/panels/PanelBody.js +22 -33
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -10
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -12
- package/es/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/QuarterPanel/index.js +11 -14
- package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeBody.js +55 -75
- package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeHeader.js +5 -9
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -19
- package/es/date-picker/src/panels/TimePanel/index.d.ts +4 -4
- package/es/date-picker/src/panels/TimePanel/index.js +17 -21
- package/es/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/WeekPanel/index.js +6 -12
- package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/YearBody.js +8 -14
- package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/YearHeader.js +6 -11
- package/es/date-picker/src/panels/YearPanel/index.d.ts +3 -3
- package/es/date-picker/src/panels/YearPanel/index.js +12 -16
- package/es/date-picker/src/utils/dateUtil.js +11 -53
- package/es/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/es/date-picker/src/utils/getExtraFooter.js +0 -1
- package/es/date-picker/src/utils/getRanges.d.ts +3 -3
- package/es/date-picker/src/utils/getRanges.js +8 -13
- package/es/date-picker/src/utils/miscUtil.d.ts +1 -1
- package/es/date-picker/src/utils/miscUtil.js +0 -6
- package/es/date-picker/src/utils/timeUtil.js +0 -5
- package/es/date-picker/src/utils/uiUtil.d.ts +2 -2
- package/es/date-picker/src/utils/uiUtil.js +14 -63
- package/es/date-picker/style/css.js +2 -2
- package/es/date-picker/style/index.css +4 -9
- package/es/date-picker/style/index.js +2 -2
- package/es/date-picker/util.js +0 -11
- package/es/dialog-box/dialogbox.js +16 -30
- package/es/dialog-box/style/index.css +1 -2
- package/es/divider/index.js +13 -26
- package/es/drawer/index.d.ts +3 -3
- package/es/drawer/index.js +55 -87
- package/es/drawer/style/index.css +1 -10
- package/es/dropdown/dropdown-button.js +23 -35
- package/es/dropdown/dropdown.d.ts +3 -3
- package/es/dropdown/dropdown.js +24 -42
- package/es/dropdown/rc-dropdown/Dropdown.js +24 -58
- package/es/dropdown/style/css.js +2 -2
- package/es/dropdown/style/index.js +2 -2
- package/es/empty/index.js +11 -23
- package/es/flow/index.js +13 -16
- package/es/form/ErrorList.d.ts +1 -1
- package/es/form/ErrorList.js +22 -27
- package/es/form/Form.d.ts +2 -2
- package/es/form/Form.js +30 -50
- package/es/form/FormItem.d.ts +4 -4
- package/es/form/FormItem.js +57 -109
- package/es/form/FormItemInput.js +17 -21
- package/es/form/FormItemLabel.d.ts +2 -2
- package/es/form/FormItemLabel.js +27 -50
- package/es/form/FormList.js +4 -15
- package/es/form/hooks/useCacheErrors.js +0 -6
- package/es/form/hooks/useForm.js +2 -8
- package/es/form/hooks/useFrameState.d.ts +1 -1
- package/es/form/hooks/useFrameState.js +3 -9
- package/es/form/hooks/useItemRef.js +1 -7
- package/es/form/index.d.ts +1 -1
- package/es/form/index.js +0 -2
- package/es/form/interface.d.ts +1 -1
- package/es/form/style/css.js +4 -3
- package/es/form/style/index.css +16 -72
- package/es/form/style/index.js +4 -3
- package/es/form/util.js +0 -4
- package/es/grid/col.d.ts +2 -2
- package/es/grid/col.js +21 -41
- package/es/grid/hooks/useBreakpoint.js +0 -3
- package/es/grid/row.d.ts +1 -1
- package/es/grid/row.js +24 -41
- package/es/icon/index.js +0 -1
- package/es/img-crop/EasyCrop.js +30 -38
- package/es/img-crop/index.js +178 -241
- package/es/img-crop/interface.d.ts +4 -4
- package/es/img-crop/style/css.js +2 -2
- package/es/img-crop/style/index.js +2 -2
- package/es/input/AutoComplete.d.ts +2 -1
- package/es/input/AutoComplete.js +9 -18
- package/es/input/Input.js +49 -102
- package/es/input/Label.js +18 -53
- package/es/input/MultiSelectInput.js +6 -11
- package/es/input/Password.js +26 -53
- package/es/input/TextArea.js +34 -60
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/index.js +15 -25
- package/es/input-number/src/InputNumber.js +117 -187
- package/es/input-number/src/StepHandler.d.ts +1 -1
- package/es/input-number/src/StepHandler.js +14 -22
- package/es/input-number/src/hooks/useCursor.js +7 -14
- package/es/input-number/src/hooks/useFrame.js +0 -3
- package/es/input-number/src/hooks/useUpdateEffect.js +0 -2
- package/es/input-number/src/utils/MiniDecimal.d.ts +1 -1
- package/es/input-number/src/utils/MiniDecimal.js +18 -66
- package/es/input-number/src/utils/numberUtil.js +14 -27
- package/es/layout/Sider.d.ts +2 -2
- package/es/layout/Sider.js +44 -75
- package/es/layout/index.d.ts +1 -1
- package/es/layout/layout.js +17 -33
- package/es/link/link.d.ts +4 -4
- package/es/link/link.js +14 -28
- package/es/loading/icon.d.ts +2 -1
- package/es/loading/icon.js +1 -3
- package/es/loading/index.js +12 -18
- package/es/loading/style/index.css +7 -112
- package/es/locale/en_US.js +2 -2
- package/es/locale/zh_CN.js +2 -2
- package/es/locale-provider/LocaleReceiver.d.ts +1 -1
- package/es/locale-provider/LocaleReceiver.js +4 -13
- package/es/locale-provider/demo/locale.js +2 -2
- package/es/locale-provider/index.d.ts +1 -1
- package/es/locale-provider/index.js +4 -14
- package/es/menu/ItemGroup.js +4 -10
- package/es/menu/MenuHead.js +5 -18
- package/es/menu/MenuItem.js +7 -21
- package/es/menu/SubMenu.js +5 -17
- package/es/menu/baseMenu.js +11 -22
- package/es/menu/globalSilderBar.js +18 -32
- package/es/menu/header.js +7 -12
- package/es/menu/menu.js +8 -16
- package/es/menu/rc-menu/Divider.d.ts +1 -1
- package/es/menu/rc-menu/Divider.js +2 -6
- package/es/menu/rc-menu/Icon.js +2 -4
- package/es/menu/rc-menu/Menu.js +162 -188
- package/es/menu/rc-menu/MenuItem.js +54 -87
- package/es/menu/rc-menu/MenuItemGroup.js +7 -20
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -32
- package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/PopupTrigger.js +22 -27
- package/es/menu/rc-menu/SubMenu/SubMenuList.js +5 -15
- package/es/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/index.js +83 -113
- package/es/menu/rc-menu/context/IdContext.js +0 -2
- package/es/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/es/menu/rc-menu/context/MenuContext.js +3 -14
- package/es/menu/rc-menu/context/PathContext.js +2 -2
- package/es/menu/rc-menu/hooks/useAccessibility.js +43 -82
- package/es/menu/rc-menu/hooks/useActive.js +5 -8
- package/es/menu/rc-menu/hooks/useDirectionStyle.js +3 -5
- package/es/menu/rc-menu/hooks/useKeyRecords.js +7 -25
- package/es/menu/rc-menu/hooks/useMemoCallback.js +0 -4
- package/es/menu/rc-menu/hooks/useUUID.js +5 -6
- package/es/menu/rc-menu/index.d.ts +1 -1
- package/es/menu/rc-menu/index.js +0 -1
- package/es/menu/rc-menu/interface.d.ts +7 -7
- package/es/menu/rc-menu/utils/motionUtil.js +0 -2
- package/es/menu/rc-menu/utils/nodeUtil.js +0 -6
- package/es/menu/rc-menu/utils/warnUtil.js +2 -9
- package/es/menu/style/css.js +2 -2
- package/es/menu/style/index.js +2 -2
- package/es/modal/DialogBox.js +19 -39
- package/es/modal/Modal.js +17 -28
- package/es/modal/dialog.js +0 -16
- package/es/modal/locale.js +0 -2
- package/es/modal/style/css.js +2 -2
- package/es/modal/style/index.css +1 -2
- package/es/modal/style/index.js +2 -2
- package/es/pagination/pagination.d.ts +1 -1
- package/es/pagination/pagination.js +11 -25
- package/es/pagination/rc-pagination/Goto.js +7 -21
- package/es/pagination/rc-pagination/Options.js +12 -18
- package/es/pagination/rc-pagination/Pager.js +8 -12
- package/es/pagination/rc-pagination/Pagination.js +64 -124
- package/es/pagination/style/css.js +2 -2
- package/es/pagination/style/index.css +6 -0
- package/es/pagination/style/index.js +2 -2
- package/es/pagination/style/index.less +10 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/index.js +18 -41
- package/es/popconfirm/style/css.js +2 -2
- package/es/popconfirm/style/index.js +2 -2
- package/es/popover/index.js +5 -15
- package/es/progress/CircleProgress.js +48 -53
- package/es/progress/LineProgress.js +39 -44
- package/es/progress/common/index.js +2 -2
- package/es/progress/index.js +33 -44
- package/es/progress/interface.d.ts +6 -6
- package/es/radio/Radio.js +12 -31
- package/es/radio/RadioButton.d.ts +2 -1
- package/es/radio/RadioButton.js +14 -30
- package/es/radio/RadioGroup.d.ts +1 -1
- package/es/radio/RadioGroup.js +16 -22
- package/es/rate/rate.js +72 -110
- package/es/row/style/css.js +2 -2
- package/es/row/style/index.js +2 -2
- package/es/search/Search.js +40 -61
- package/es/search/style/css.js +2 -2
- package/es/search/style/index.js +2 -2
- package/es/select/index.d.ts +4 -4
- package/es/select/index.js +29 -43
- package/es/select/src/OptGroup.js +0 -1
- package/es/select/src/Option.js +0 -1
- package/es/select/src/OptionList.js +104 -172
- package/es/select/src/Select.d.ts +2 -2
- package/es/select/src/Select.js +0 -12
- package/es/select/src/SelectTrigger.js +28 -44
- package/es/select/src/Selector/Input.d.ts +1 -1
- package/es/select/src/Selector/Input.js +26 -33
- package/es/select/src/Selector/MultipleSelector.js +51 -71
- package/es/select/src/Selector/SingleSelector.js +29 -37
- package/es/select/src/Selector/index.js +22 -47
- package/es/select/src/TransBtn.js +6 -11
- package/es/select/src/generate.js +231 -347
- package/es/select/src/hooks/useCacheDisplayValue.js +1 -4
- package/es/select/src/hooks/useCacheOptions.js +0 -2
- package/es/select/src/hooks/useDelayReset.js +3 -11
- package/es/select/src/hooks/useLayoutEffect.js +0 -1
- package/es/select/src/hooks/useLock.js +2 -6
- package/es/select/src/hooks/useSelectTriggerControl.js +0 -3
- package/es/select/src/interface/generator.d.ts +12 -12
- package/es/select/src/interface/index.d.ts +5 -5
- package/es/select/src/utils/commonUtil.js +8 -26
- package/es/select/src/utils/legacyUtil.js +11 -23
- package/es/select/src/utils/valueUtil.js +23 -62
- package/es/select/src/utils/warningPropsUtil.js +30 -46
- package/es/select/style/css.js +2 -2
- package/es/select/style/index.css +4 -8
- package/es/select/style/index.js +2 -2
- package/es/select/utils/iconUtil.js +16 -26
- package/es/skeleton/Avatar.d.ts +2 -1
- package/es/skeleton/Avatar.js +3 -7
- package/es/skeleton/Button.d.ts +2 -1
- package/es/skeleton/Button.js +5 -10
- package/es/skeleton/Element.d.ts +1 -1
- package/es/skeleton/Element.js +4 -7
- package/es/skeleton/Image.d.ts +2 -1
- package/es/skeleton/Image.js +6 -9
- package/es/skeleton/Input.d.ts +2 -1
- package/es/skeleton/Input.js +4 -9
- package/es/skeleton/Node.js +4 -9
- package/es/skeleton/Paragraph.d.ts +2 -2
- package/es/skeleton/Paragraph.js +7 -15
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.js +21 -49
- package/es/skeleton/Title.d.ts +1 -1
- package/es/skeleton/Title.js +3 -5
- package/es/skeleton/style/index.css +1 -10
- package/es/slider/SliderTooltip.js +0 -5
- package/es/slider/index.js +21 -41
- package/es/slider/interface.d.ts +1 -1
- package/es/space/Item.d.ts +1 -1
- package/es/space/Item.js +10 -15
- package/es/space/index.d.ts +1 -1
- package/es/space/index.js +29 -48
- package/es/steps/index.d.ts +1 -1
- package/es/steps/index.js +10 -19
- package/es/steps/interface.d.ts +1 -1
- package/es/steps/src/step.d.ts +1 -1
- package/es/steps/src/step.js +39 -66
- package/es/steps/src/steps.d.ts +3 -3
- package/es/steps/src/steps.js +24 -47
- package/es/steps/style/css.js +2 -1
- package/es/steps/style/index.js +2 -1
- package/es/style/index.css +144 -526
- package/es/switch/index.js +19 -34
- package/es/switch/interface.d.ts +2 -2
- package/es/switch/style/index.css +8 -32
- package/es/table/Column.js +0 -2
- package/es/table/ColumnGroup.js +0 -2
- package/es/table/ExpandIcon.d.ts +1 -1
- package/es/table/ExpandIcon.js +4 -8
- package/es/table/Space.js +4 -10
- package/es/table/Table.d.ts +1 -1
- package/es/table/Table.js +114 -166
- package/es/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/es/table/baseTable/Body/BodyRow.js +42 -65
- package/es/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/es/table/baseTable/Body/ExpandedRow.js +13 -20
- package/es/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureCell.js +1 -1
- package/es/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureRow.js +3 -5
- package/es/table/baseTable/Body/index.d.ts +1 -1
- package/es/table/baseTable/Body/index.js +23 -33
- package/es/table/baseTable/Cell/index.d.ts +1 -1
- package/es/table/baseTable/Cell/index.js +58 -98
- package/es/table/baseTable/ColGroup.d.ts +2 -2
- package/es/table/baseTable/ColGroup.js +7 -19
- package/es/table/baseTable/FixedHolder/index.js +29 -46
- package/es/table/baseTable/Footer/Cell.d.ts +1 -1
- package/es/table/baseTable/Footer/Cell.js +11 -14
- package/es/table/baseTable/Footer/Row.d.ts +1 -1
- package/es/table/baseTable/Footer/Row.js +2 -8
- package/es/table/baseTable/Footer/Summary.js +0 -2
- package/es/table/baseTable/Footer/index.d.ts +2 -2
- package/es/table/baseTable/Footer/index.js +2 -4
- package/es/table/baseTable/Header/Header.js +9 -23
- package/es/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/es/table/baseTable/Header/HeaderRow.js +8 -16
- package/es/table/baseTable/Panel/index.d.ts +1 -1
- package/es/table/baseTable/Panel/index.js +1 -3
- package/es/table/baseTable/Table.d.ts +1 -1
- package/es/table/baseTable/Table.js +127 -195
- package/es/table/baseTable/context/StickyContext.js +2 -2
- package/es/table/baseTable/hooks/useColumns.js +40 -82
- package/es/table/baseTable/hooks/useFlattenRecords.js +4 -10
- package/es/table/baseTable/hooks/useFrame.d.ts +1 -1
- package/es/table/baseTable/hooks/useFrame.js +2 -13
- package/es/table/baseTable/hooks/useSticky.js +12 -14
- package/es/table/baseTable/hooks/useStickyOffsets.js +4 -9
- package/es/table/baseTable/interface.d.ts +20 -20
- package/es/table/baseTable/stickyScrollBar.js +14 -40
- package/es/table/baseTable/sugar/Column.js +0 -2
- package/es/table/baseTable/sugar/ColumnGroup.js +0 -2
- package/es/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/es/table/baseTable/utils/expandUtil.js +4 -10
- package/es/table/baseTable/utils/fixUtil.js +0 -4
- package/es/table/baseTable/utils/legacyUtil.js +2 -13
- package/es/table/baseTable/utils/valueUtil.js +2 -17
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterDropdown.js +50 -102
- package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterSearch.js +6 -9
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterWrapper.js +0 -2
- package/es/table/hooks/useFilter/index.js +20 -45
- package/es/table/hooks/useLazyKVMap.js +0 -6
- package/es/table/hooks/usePagination.js +15 -36
- package/es/table/hooks/useSelection.d.ts +1 -1
- package/es/table/hooks/useSelection.js +105 -167
- package/es/table/hooks/useSorter.js +21 -65
- package/es/table/hooks/useTitleColumns.js +0 -5
- package/es/table/interface.d.ts +15 -15
- package/es/table/style/css.js +2 -2
- package/es/table/style/index.css +0 -3
- package/es/table/style/index.js +2 -2
- package/es/table/util.js +0 -3
- package/es/tabs/src/TabNavList/AddButton.js +4 -8
- package/es/tabs/src/TabNavList/OperationNode.js +33 -55
- package/es/tabs/src/TabNavList/TabNode.js +25 -48
- package/es/tabs/src/TabNavList/index.js +129 -192
- package/es/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/es/tabs/src/TabPanelList/TabPane.js +12 -16
- package/es/tabs/src/TabPanelList/index.d.ts +1 -1
- package/es/tabs/src/TabPanelList/index.js +7 -9
- package/es/tabs/src/Tabs.d.ts +1 -1
- package/es/tabs/src/Tabs.js +67 -96
- package/es/tabs/src/hooks/useOffsets.js +6 -11
- package/es/tabs/src/hooks/useRaf.d.ts +1 -1
- package/es/tabs/src/hooks/useRaf.js +2 -9
- package/es/tabs/src/hooks/useRefs.js +0 -4
- package/es/tabs/src/hooks/useSyncState.d.ts +1 -1
- package/es/tabs/src/hooks/useSyncState.js +2 -7
- package/es/tabs/src/hooks/useTouchMove.js +32 -48
- package/es/tabs/src/hooks/useVisibleRange.js +2 -13
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/tabs.d.ts +3 -3
- package/es/tabs/tabs.js +10 -24
- package/es/tag/CheckableTag.js +7 -19
- package/es/tag/index.d.ts +1 -1
- package/es/tag/index.js +19 -40
- package/es/tag/style/index.css +1 -12
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/index.js +9 -22
- package/es/time-picker/style/css.js +4 -4
- package/es/time-picker/style/index.css +0 -1
- package/es/time-picker/style/index.js +4 -4
- package/es/timeline/interface.d.ts +1 -1
- package/es/timeline/style/index.css +4 -27
- package/es/timeline/timeline.js +16 -23
- package/es/timeline/timelineItem.js +23 -51
- package/es/toast/PurePanel.d.ts +2 -2
- package/es/toast/PurePanel.js +23 -34
- package/es/toast/base.d.ts +1 -1
- package/es/toast/base.js +63 -94
- package/es/toast/index.js +38 -61
- package/es/toast/interface.d.ts +3 -3
- package/es/toast/style/index.css +17 -64
- package/es/toast/useNotification.d.ts +1 -1
- package/es/toast/useNotification.js +52 -70
- package/es/toast/util.js +0 -7
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +31 -61
- package/es/tooltip/placements.js +6 -8
- package/es/tooltip/style/index.css +0 -1
- package/es/transfer/DataSource.d.ts +2 -1
- package/es/transfer/DataSource.js +39 -53
- package/es/transfer/SourceList.d.ts +2 -1
- package/es/transfer/SourceList.js +15 -31
- package/es/transfer/Target.d.ts +2 -1
- package/es/transfer/Target.js +45 -64
- package/es/transfer/TargetList.d.ts +2 -1
- package/es/transfer/TargetList.js +14 -25
- package/es/transfer/index.d.ts +5 -5
- package/es/transfer/index.js +18 -31
- package/es/transfer/style/css.js +2 -2
- package/es/transfer/style/index.js +2 -2
- package/es/transfer/util.js +0 -3
- package/es/tree/style/css.js +2 -2
- package/es/tree/style/index.css +1 -12
- package/es/tree/style/index.js +2 -2
- package/es/tree/tree.d.ts +3 -3
- package/es/tree/tree.js +34 -92
- package/es/tree/utils/dragHelper.d.ts +2 -2
- package/es/tree/utils/dragHelper.js +5 -10
- package/es/tree/utils/iconHelper.js +0 -6
- package/es/tree/utils/nodeHelper.js +0 -17
- package/es/tree-select/index.d.ts +4 -4
- package/es/tree-select/index.js +59 -77
- package/es/tree-select/src/OptionList.d.ts +1 -1
- package/es/tree-select/src/OptionList.js +63 -107
- package/es/tree-select/src/TreeNode.js +0 -1
- package/es/tree-select/src/TreeSelect.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.js +166 -215
- package/es/tree-select/src/hooks/useCache.js +2 -4
- package/es/tree-select/src/hooks/useCheckedKeys.js +4 -5
- package/es/tree-select/src/hooks/useDataEntities.js +2 -3
- package/es/tree-select/src/hooks/useFilterTreeData.js +2 -9
- package/es/tree-select/src/hooks/useRefFunc.js +0 -1
- package/es/tree-select/src/hooks/useTreeData.js +10 -16
- package/es/tree-select/src/interface.d.ts +4 -4
- package/es/tree-select/src/utils/legacyUtil.js +10 -33
- package/es/tree-select/src/utils/strategyUtil.d.ts +1 -1
- package/es/tree-select/src/utils/strategyUtil.js +0 -7
- package/es/tree-select/src/utils/valueUtil.js +3 -9
- package/es/tree-select/src/utils/warningPropsUtil.js +5 -10
- package/es/tree-select/style/css.js +2 -2
- package/es/tree-select/style/index.css +1 -12
- package/es/tree-select/style/index.js +2 -2
- package/es/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/es/upload/BaseUpload/AjaxUploader.js +114 -186
- package/es/upload/BaseUpload/Upload.d.ts +2 -2
- package/es/upload/BaseUpload/Upload.js +0 -13
- package/es/upload/BaseUpload/attr-accept.js +10 -18
- package/es/upload/BaseUpload/interface.d.ts +4 -4
- package/es/upload/BaseUpload/request.js +10 -26
- package/es/upload/BaseUpload/traverseFileTree.js +4 -12
- package/es/upload/Dragger.d.ts +1 -1
- package/es/upload/Dragger.js +3 -12
- package/es/upload/Upload.js +117 -190
- package/es/upload/UploadList/ListItem.js +40 -53
- package/es/upload/UploadList/index.js +45 -79
- package/es/upload/interface.d.ts +8 -8
- package/es/upload/style/css.js +2 -2
- package/es/upload/style/index.css +4 -26
- package/es/upload/style/index.js +2 -2
- package/es/upload/utils.js +3 -23
- package/es/virtual-list/Filler.js +4 -8
- package/es/virtual-list/Item.js +1 -1
- package/es/virtual-list/List.d.ts +5 -5
- package/es/virtual-list/List.js +122 -169
- package/es/virtual-list/ScrollBar.d.ts +1 -1
- package/es/virtual-list/ScrollBar.js +23 -72
- package/es/virtual-list/hooks/useChildren.d.ts +2 -2
- package/es/virtual-list/hooks/useChildren.js +2 -1
- package/es/virtual-list/hooks/useDiffItem.js +6 -10
- package/es/virtual-list/hooks/useFrameWheel.js +10 -14
- package/es/virtual-list/hooks/useHeights.js +7 -14
- package/es/virtual-list/hooks/useMobileTouchMove.js +4 -15
- package/es/virtual-list/hooks/useOriginScroll.js +6 -8
- package/es/virtual-list/hooks/useScrollTo.js +12 -28
- package/es/virtual-list/interface.d.ts +2 -2
- package/es/virtual-list/mock.js +2 -1
- package/es/virtual-list/utils/CacheMap.js +0 -5
- package/es/virtual-list/utils/algorithmUtil.js +6 -20
- package/lib/_util/colors.d.ts +3 -3
- package/lib/_util/colors.js +2 -4
- package/lib/_util/createWorker.js +0 -1
- package/lib/_util/devWarning.js +0 -6
- package/lib/_util/easings.js +2 -5
- package/lib/_util/getDataOrAriaProps.js +0 -2
- package/lib/_util/getRenderPropValue.d.ts +1 -1
- package/lib/_util/getRenderPropValue.js +0 -5
- package/lib/_util/getScroll.js +0 -6
- package/lib/_util/hooks/useCombinedRefs.js +0 -7
- package/lib/_util/hooks/useFlexGapSupport.js +3 -13
- package/lib/_util/hooks/useForceUpdate.js +4 -12
- package/lib/_util/hooks/useMergedState.js +17 -30
- package/lib/_util/hooks/usePatchElement.js +5 -14
- package/lib/_util/hooks/useSyncState.d.ts +1 -1
- package/lib/_util/hooks/useSyncState.js +2 -9
- package/lib/_util/isNumeric.js +0 -2
- package/lib/_util/lengthLimit.js +0 -2
- package/lib/_util/motion.d.ts +1 -1
- package/lib/_util/motion.js +0 -12
- package/lib/_util/reactNode.d.ts +2 -2
- package/lib/_util/reactNode.js +0 -8
- package/lib/_util/responsiveObserve.d.ts +5 -5
- package/lib/_util/responsiveObserve.js +0 -12
- package/lib/_util/scrollTo.js +6 -18
- package/lib/_util/statusUtils.d.ts +1 -1
- package/lib/_util/statusUtils.js +0 -9
- package/lib/_util/styleChecker.js +6 -18
- package/lib/_util/throttleByAnimationFrame.js +0 -11
- package/lib/_util/type.d.ts +3 -3
- package/lib/_util/type.js +0 -6
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.js +33 -103
- package/lib/affix/style/css.js +0 -1
- package/lib/affix/style/index.js +0 -1
- package/lib/affix/utils.d.ts +2 -2
- package/lib/affix/utils.js +7 -23
- package/lib/alert/ErrorBoundary.js +5 -23
- package/lib/alert/index.js +28 -73
- package/lib/alert/style/css.js +0 -1
- package/lib/alert/style/index.js +0 -1
- package/lib/anchor/Anchor.d.ts +2 -2
- package/lib/anchor/Anchor.js +21 -87
- package/lib/anchor/AnchorLink.d.ts +2 -2
- package/lib/anchor/AnchorLink.js +13 -43
- package/lib/anchor/context.js +0 -5
- package/lib/anchor/index.js +0 -4
- package/lib/anchor/style/css.js +0 -1
- package/lib/anchor/style/index.js +0 -1
- package/lib/avatar/SizeContext.d.ts +1 -1
- package/lib/avatar/SizeContext.js +1 -6
- package/lib/avatar/avatar.js +27 -71
- package/lib/avatar/group.js +12 -30
- package/lib/avatar/index.js +0 -4
- package/lib/avatar/style/css.js +0 -2
- package/lib/avatar/style/index.js +0 -2
- package/lib/back-top/index.js +14 -48
- package/lib/back-top/style/css.js +0 -1
- package/lib/back-top/style/index.js +0 -1
- package/lib/badge/Ribbon.d.ts +1 -1
- package/lib/badge/Ribbon.js +10 -26
- package/lib/badge/ScrollNumber.js +20 -42
- package/lib/badge/SingleNumber.d.ts +2 -2
- package/lib/badge/SingleNumber.js +24 -46
- package/lib/badge/index.js +47 -88
- package/lib/badge/style/css.js +0 -1
- package/lib/badge/style/index.css +14 -119
- package/lib/badge/style/index.js +0 -1
- package/lib/badge/utils.js +1 -2
- package/lib/breadcrumb/Breadcrumb.js +11 -34
- package/lib/breadcrumb/BreadcrumbItem.js +13 -41
- package/lib/breadcrumb/index.js +0 -3
- package/lib/breadcrumb/style/css.js +0 -1
- package/lib/breadcrumb/style/index.js +0 -1
- package/lib/button/LoadingIcon.d.ts +2 -1
- package/lib/button/LoadingIcon.js +0 -5
- package/lib/button/button-group.d.ts +1 -1
- package/lib/button/button-group.js +2 -20
- package/lib/button/button.d.ts +6 -6
- package/lib/button/button.js +23 -63
- package/lib/button/index.js +0 -3
- package/lib/button/style/css.js +0 -1
- package/lib/button/style/index.js +0 -1
- package/lib/calendar/Header.d.ts +2 -2
- package/lib/calendar/Header.js +26 -60
- package/lib/calendar/generateCalendar.d.ts +8 -8
- package/lib/calendar/generateCalendar.js +43 -86
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.js +0 -4
- package/lib/calendar/interface.d.ts +4 -4
- package/lib/calendar/locale/en_US.js +0 -3
- package/lib/calendar/locale/zh_CN.js +0 -3
- package/lib/calendar/style/css.js +0 -3
- package/lib/calendar/style/index.js +0 -3
- package/lib/card/Card.d.ts +4 -4
- package/lib/card/Card.js +40 -83
- package/lib/card/Grid.js +5 -22
- package/lib/card/Meta.js +7 -26
- package/lib/card/index.js +0 -3
- package/lib/card/style/css.js +0 -4
- package/lib/card/style/index.css +2 -13
- package/lib/card/style/index.js +0 -4
- package/lib/carousel/carousel.d.ts +3 -3
- package/lib/carousel/carousel.js +48 -76
- package/lib/carousel/index.js +0 -3
- package/lib/carousel/indicator.js +14 -29
- package/lib/carousel/style/css.js +0 -1
- package/lib/carousel/style/index.js +0 -1
- package/lib/carousel/switch.js +2 -9
- package/lib/cascader/Cascader.d.ts +4 -4
- package/lib/cascader/Cascader.js +41 -158
- package/lib/cascader/MenuItem.d.ts +1 -1
- package/lib/cascader/MenuItem.js +16 -32
- package/lib/cascader/Menus.d.ts +5 -5
- package/lib/cascader/Menus.js +87 -174
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.js +71 -192
- package/lib/cascader/renderEmpty.d.ts +1 -1
- package/lib/cascader/renderEmpty.js +1 -9
- package/lib/cascader/style/css.js +0 -7
- package/lib/cascader/style/index.css +4 -8
- package/lib/cascader/style/index.js +0 -7
- package/lib/cascader/utils.js +2 -11
- package/lib/checkbox/BaseCheckbox.d.ts +1 -1
- package/lib/checkbox/BaseCheckbox.js +22 -56
- package/lib/checkbox/ButtonCheckbox.d.ts +1 -1
- package/lib/checkbox/ButtonCheckbox.js +9 -44
- package/lib/checkbox/Checkbox.js +19 -43
- package/lib/checkbox/Group.d.ts +1 -1
- package/lib/checkbox/Group.js +20 -59
- package/lib/checkbox/GroupButtonCheckbox.d.ts +2 -1
- package/lib/checkbox/GroupButtonCheckbox.js +12 -32
- package/lib/checkbox/index.js +1 -5
- package/lib/checkbox/style/css.js +0 -1
- package/lib/checkbox/style/index.css +1 -12
- package/lib/checkbox/style/index.js +0 -1
- package/lib/clear/index.d.ts +2 -1
- package/lib/clear/index.js +4 -19
- package/lib/clear/style/css.js +0 -1
- package/lib/clear/style/index.js +0 -1
- package/lib/col/index.js +0 -2
- package/lib/col/style/css.js +0 -1
- package/lib/col/style/index.js +0 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/Collapse.js +3 -26
- package/lib/collapse/CollapsePanel.js +3 -14
- package/lib/collapse/index.js +0 -3
- package/lib/collapse/style/css.js +0 -1
- package/lib/collapse/style/index.js +0 -1
- package/lib/color-picker/colorPicker.d.ts +1 -1
- package/lib/color-picker/colorPicker.js +38 -59
- package/lib/color-picker/index.js +0 -3
- package/lib/color-picker/style/css.js +0 -3
- package/lib/color-picker/style/index.js +0 -3
- package/lib/color-picker/util.js +4 -12
- package/lib/config-provider/DisabledContext.d.ts +1 -1
- package/lib/config-provider/DisabledContext.js +1 -8
- package/lib/config-provider/SizeContext.d.ts +1 -1
- package/lib/config-provider/SizeContext.js +2 -8
- package/lib/config-provider/context.d.ts +2 -2
- package/lib/config-provider/context.js +1 -13
- package/lib/config-provider/index.js +24 -50
- package/lib/config-provider/renderEmpty.d.ts +1 -1
- package/lib/config-provider/renderEmpty.js +1 -15
- package/lib/config-provider/style/css.js +0 -1
- package/lib/config-provider/style/index.js +0 -1
- package/lib/date-picker/PickerButton.d.ts +2 -2
- package/lib/date-picker/PickerButton.js +0 -8
- package/lib/date-picker/PickerTag.d.ts +2 -2
- package/lib/date-picker/PickerTag.js +0 -8
- package/lib/date-picker/generatePicker/generateRangePicker.js +15 -61
- package/lib/date-picker/generatePicker/generateSinglePicker.js +14 -65
- package/lib/date-picker/generatePicker/index.d.ts +12 -12
- package/lib/date-picker/generatePicker/index.js +12 -33
- package/lib/date-picker/index.d.ts +4 -4
- package/lib/date-picker/index.js +0 -4
- package/lib/date-picker/locale/en_US.js +2 -7
- package/lib/date-picker/locale/zh_CN.js +4 -9
- package/lib/date-picker/src/PanelContext.d.ts +2 -2
- package/lib/date-picker/src/PanelContext.js +1 -5
- package/lib/date-picker/src/Picker.d.ts +8 -8
- package/lib/date-picker/src/Picker.js +168 -234
- package/lib/date-picker/src/PickerPanel.d.ts +6 -6
- package/lib/date-picker/src/PickerPanel.js +114 -193
- package/lib/date-picker/src/PickerTrigger.d.ts +3 -3
- package/lib/date-picker/src/PickerTrigger.js +12 -26
- package/lib/date-picker/src/RangeContext.d.ts +1 -1
- package/lib/date-picker/src/RangeContext.js +1 -5
- package/lib/date-picker/src/RangePicker.d.ts +11 -11
- package/lib/date-picker/src/RangePicker.js +260 -404
- package/lib/date-picker/src/generate/dateFns.js +0 -11
- package/lib/date-picker/src/generate/dayjs.js +2 -32
- package/lib/date-picker/src/generate/index.d.ts +1 -1
- package/lib/date-picker/src/generate/moment.js +2 -15
- package/lib/date-picker/src/hooks/useCellClassName.js +8 -19
- package/lib/date-picker/src/hooks/useHoverValue.js +11 -25
- package/lib/date-picker/src/hooks/usePickerInput.js +23 -50
- package/lib/date-picker/src/hooks/useRangeDisabled.js +13 -36
- package/lib/date-picker/src/hooks/useRangeViewDates.js +17 -48
- package/lib/date-picker/src/hooks/useTextValueMapping.js +4 -16
- package/lib/date-picker/src/hooks/useValueTexts.d.ts +1 -1
- package/lib/date-picker/src/hooks/useValueTexts.js +4 -13
- package/lib/date-picker/src/index.js +0 -5
- package/lib/date-picker/src/interface.d.ts +15 -15
- package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +4 -4
- package/lib/date-picker/src/panels/DatePanel/DateBody.js +13 -30
- package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/DatePanel/DateHeader.js +12 -26
- package/lib/date-picker/src/panels/DatePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DatePanel/index.js +17 -33
- package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DatetimePanel/index.js +15 -36
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.js +2 -20
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.js +5 -21
- package/lib/date-picker/src/panels/DecadePanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/DecadePanel/index.js +10 -24
- package/lib/date-picker/src/panels/Header.d.ts +2 -2
- package/lib/date-picker/src/panels/Header.js +15 -26
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.js +7 -22
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.js +7 -21
- package/lib/date-picker/src/panels/MonthPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/MonthPanel/index.js +11 -24
- package/lib/date-picker/src/panels/PanelBody.d.ts +2 -2
- package/lib/date-picker/src/panels/PanelBody.js +22 -45
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.js +6 -21
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.js +7 -21
- package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/QuarterPanel/index.js +11 -23
- package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeBody.js +55 -86
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.js +5 -17
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +3 -3
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.js +8 -28
- package/lib/date-picker/src/panels/TimePanel/index.d.ts +4 -4
- package/lib/date-picker/src/panels/TimePanel/index.js +17 -33
- package/lib/date-picker/src/panels/WeekPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/WeekPanel/index.js +6 -22
- package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/YearBody.js +8 -28
- package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/YearHeader.js +6 -22
- package/lib/date-picker/src/panels/YearPanel/index.d.ts +3 -3
- package/lib/date-picker/src/panels/YearPanel/index.js +12 -26
- package/lib/date-picker/src/utils/dateUtil.js +11 -73
- package/lib/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/lib/date-picker/src/utils/getExtraFooter.js +0 -6
- package/lib/date-picker/src/utils/getRanges.d.ts +3 -3
- package/lib/date-picker/src/utils/getRanges.js +8 -18
- package/lib/date-picker/src/utils/miscUtil.d.ts +1 -1
- package/lib/date-picker/src/utils/miscUtil.js +0 -13
- package/lib/date-picker/src/utils/timeUtil.js +0 -9
- package/lib/date-picker/src/utils/uiUtil.d.ts +2 -2
- package/lib/date-picker/src/utils/uiUtil.js +14 -78
- package/lib/date-picker/style/css.js +0 -3
- package/lib/date-picker/style/index.css +4 -9
- package/lib/date-picker/style/index.js +0 -3
- package/lib/date-picker/util.js +0 -13
- package/lib/dialog-box/dialogbox.js +16 -48
- package/lib/dialog-box/index.js +0 -3
- package/lib/dialog-box/style/css.js +0 -1
- package/lib/dialog-box/style/index.css +1 -2
- package/lib/dialog-box/style/index.js +0 -1
- package/lib/divider/index.js +13 -29
- package/lib/divider/style/css.js +0 -1
- package/lib/divider/style/index.js +0 -1
- package/lib/drawer/index.d.ts +3 -3
- package/lib/drawer/index.js +55 -102
- package/lib/drawer/style/css.js +0 -1
- package/lib/drawer/style/index.css +1 -10
- package/lib/drawer/style/index.js +0 -1
- package/lib/dropdown/dropdown-button.js +23 -48
- package/lib/dropdown/dropdown.d.ts +3 -3
- package/lib/dropdown/dropdown.js +24 -61
- package/lib/dropdown/index.js +0 -3
- package/lib/dropdown/rc-dropdown/Dropdown.js +24 -69
- package/lib/dropdown/rc-dropdown/index.js +0 -2
- package/lib/dropdown/rc-dropdown/placements.js +0 -1
- package/lib/dropdown/style/css.js +0 -5
- package/lib/dropdown/style/index.js +0 -5
- package/lib/empty/index.js +11 -33
- package/lib/empty/style/css.js +0 -1
- package/lib/empty/style/index.js +0 -1
- package/lib/flow/index.js +13 -25
- package/lib/form/ErrorList.d.ts +1 -1
- package/lib/form/ErrorList.js +23 -40
- package/lib/form/Form.d.ts +2 -2
- package/lib/form/Form.js +30 -64
- package/lib/form/FormItem.d.ts +4 -4
- package/lib/form/FormItem.js +57 -134
- package/lib/form/FormItemInput.js +18 -35
- package/lib/form/FormItemLabel.d.ts +2 -2
- package/lib/form/FormItemLabel.js +27 -66
- package/lib/form/FormList.js +4 -24
- package/lib/form/context.js +1 -10
- package/lib/form/hooks/useCacheErrors.js +0 -12
- package/lib/form/hooks/useForm.js +3 -17
- package/lib/form/hooks/useFrameState.d.ts +1 -1
- package/lib/form/hooks/useFrameState.js +4 -17
- package/lib/form/hooks/useItemRef.js +2 -15
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +1 -13
- package/lib/form/interface.d.ts +1 -1
- package/lib/form/style/css.js +0 -2
- package/lib/form/style/index.css +16 -72
- package/lib/form/style/index.js +0 -2
- package/lib/form/util.js +0 -7
- package/lib/grid/RowContext.js +0 -2
- package/lib/grid/col.d.ts +2 -2
- package/lib/grid/col.js +21 -52
- package/lib/grid/hooks/useBreakpoint.js +0 -8
- package/lib/grid/index.js +0 -5
- package/lib/grid/row.d.ts +1 -1
- package/lib/grid/row.js +24 -57
- package/lib/grid/style/css.js +0 -1
- package/lib/grid/style/index.js +0 -1
- package/lib/icon/index.js +0 -2
- package/lib/img-crop/EasyCrop.js +30 -52
- package/lib/img-crop/index.js +178 -255
- package/lib/img-crop/interface.d.ts +4 -4
- package/lib/img-crop/style/css.js +0 -2
- package/lib/img-crop/style/index.js +0 -2
- package/lib/index.js +0 -61
- package/lib/input/AutoComplete.d.ts +2 -1
- package/lib/input/AutoComplete.js +7 -29
- package/lib/input/Input.js +49 -121
- package/lib/input/Label.js +18 -66
- package/lib/input/MultiSelectInput.js +6 -15
- package/lib/input/Password.js +26 -64
- package/lib/input/TextArea.js +32 -73
- package/lib/input/index.js +0 -8
- package/lib/input/style/css.js +0 -1
- package/lib/input/style/index.js +0 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.js +15 -42
- package/lib/input-number/src/InputNumber.js +117 -204
- package/lib/input-number/src/StepHandler.d.ts +1 -1
- package/lib/input-number/src/StepHandler.js +14 -32
- package/lib/input-number/src/hooks/useCursor.js +7 -17
- package/lib/input-number/src/hooks/useFrame.js +0 -7
- package/lib/input-number/src/hooks/useLayoutEffect.js +0 -7
- package/lib/input-number/src/hooks/useUpdateEffect.js +0 -7
- package/lib/input-number/src/index.js +0 -3
- package/lib/input-number/src/utils/MiniDecimal.d.ts +1 -1
- package/lib/input-number/src/utils/MiniDecimal.js +18 -74
- package/lib/input-number/src/utils/numberUtil.js +14 -32
- package/lib/input-number/src/utils/supportUtil.js +0 -1
- package/lib/input-number/style/css.js +0 -1
- package/lib/input-number/style/index.js +0 -1
- package/lib/layout/Sider.d.ts +2 -2
- package/lib/layout/Sider.js +44 -89
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/index.js +0 -7
- package/lib/layout/layout.js +17 -44
- package/lib/layout/style/css.js +0 -1
- package/lib/layout/style/index.js +0 -1
- package/lib/link/index.js +0 -3
- package/lib/link/link.d.ts +4 -4
- package/lib/link/link.js +14 -36
- package/lib/link/style/css.js +0 -1
- package/lib/link/style/index.js +0 -1
- package/lib/loading/icon.d.ts +2 -1
- package/lib/loading/icon.js +2 -9
- package/lib/loading/index.js +13 -28
- package/lib/loading/style/css.js +0 -1
- package/lib/loading/style/index.css +7 -112
- package/lib/loading/style/index.js +0 -1
- package/lib/locale/default.js +0 -3
- package/lib/locale/en_US.js +2 -4
- package/lib/locale/zh_CN.js +2 -4
- package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
- package/lib/locale-provider/LocaleReceiver.js +4 -23
- package/lib/locale-provider/context.js +1 -2
- package/lib/locale-provider/default.js +0 -3
- package/lib/locale-provider/demo/locale.js +2 -3
- package/lib/locale-provider/index.d.ts +1 -1
- package/lib/locale-provider/index.js +4 -23
- package/lib/menu/ItemGroup.js +5 -17
- package/lib/menu/MenuContext.js +0 -2
- package/lib/menu/MenuHead.js +6 -29
- package/lib/menu/MenuItem.js +7 -33
- package/lib/menu/SubMenu.js +5 -26
- package/lib/menu/baseMenu.js +11 -29
- package/lib/menu/globalSilderBar.js +18 -46
- package/lib/menu/header.js +8 -20
- package/lib/menu/index.js +0 -3
- package/lib/menu/menu.js +9 -32
- package/lib/menu/rc-menu/Divider.d.ts +1 -1
- package/lib/menu/rc-menu/Divider.js +2 -15
- package/lib/menu/rc-menu/Icon.js +2 -11
- package/lib/menu/rc-menu/Menu.js +163 -214
- package/lib/menu/rc-menu/MenuItem.js +51 -103
- package/lib/menu/rc-menu/MenuItemGroup.js +7 -30
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.js +23 -43
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.js +22 -41
- package/lib/menu/rc-menu/SubMenu/SubMenuList.js +5 -22
- package/lib/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/index.js +83 -135
- package/lib/menu/rc-menu/context/IdContext.js +0 -9
- package/lib/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/lib/menu/rc-menu/context/MenuContext.js +3 -21
- package/lib/menu/rc-menu/context/PathContext.js +2 -13
- package/lib/menu/rc-menu/hooks/useAccessibility.js +41 -91
- package/lib/menu/rc-menu/hooks/useActive.js +5 -14
- package/lib/menu/rc-menu/hooks/useDirectionStyle.js +3 -11
- package/lib/menu/rc-menu/hooks/useKeyRecords.js +7 -34
- package/lib/menu/rc-menu/hooks/useMemoCallback.js +0 -8
- package/lib/menu/rc-menu/hooks/useUUID.js +5 -15
- package/lib/menu/rc-menu/index.d.ts +1 -1
- package/lib/menu/rc-menu/index.js +0 -8
- package/lib/menu/rc-menu/interface.d.ts +7 -7
- package/lib/menu/rc-menu/utils/motionUtil.js +0 -3
- package/lib/menu/rc-menu/utils/nodeUtil.js +0 -14
- package/lib/menu/rc-menu/utils/timeUtil.js +0 -1
- package/lib/menu/rc-menu/utils/warnUtil.js +2 -11
- package/lib/menu/style/css.js +0 -2
- package/lib/menu/style/index.js +0 -2
- package/lib/modal/DialogBox.js +19 -57
- package/lib/modal/Modal.js +17 -44
- package/lib/modal/dialog.js +0 -26
- package/lib/modal/index.js +0 -6
- package/lib/modal/locale.js +0 -8
- package/lib/modal/style/css.js +0 -2
- package/lib/modal/style/index.css +1 -2
- package/lib/modal/style/index.js +0 -2
- package/lib/pagination/index.js +0 -3
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.js +11 -41
- package/lib/pagination/rc-pagination/Goto.js +8 -31
- package/lib/pagination/rc-pagination/KeyCode.js +0 -1
- package/lib/pagination/rc-pagination/Options.js +13 -26
- package/lib/pagination/rc-pagination/Pager.js +9 -19
- package/lib/pagination/rc-pagination/Pagination.js +64 -138
- package/lib/pagination/rc-pagination/index.js +0 -3
- package/lib/pagination/style/css.js +0 -2
- package/lib/pagination/style/index.css +6 -0
- package/lib/pagination/style/index.js +0 -2
- package/lib/pagination/style/index.less +10 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.js +18 -56
- package/lib/popconfirm/style/css.js +0 -2
- package/lib/popconfirm/style/index.js +0 -2
- package/lib/popover/index.js +5 -24
- package/lib/popover/style/css.js +0 -1
- package/lib/popover/style/index.js +0 -1
- package/lib/progress/CircleProgress.js +49 -61
- package/lib/progress/LineProgress.js +40 -52
- package/lib/progress/common/index.js +2 -7
- package/lib/progress/index.js +33 -54
- package/lib/progress/interface.d.ts +6 -6
- package/lib/progress/interface.js +0 -1
- package/lib/progress/style/css.js +0 -1
- package/lib/progress/style/index.js +0 -1
- package/lib/radio/Radio.js +12 -44
- package/lib/radio/RadioButton.d.ts +2 -1
- package/lib/radio/RadioButton.js +14 -41
- package/lib/radio/RadioGroup.d.ts +1 -1
- package/lib/radio/RadioGroup.js +16 -36
- package/lib/radio/context.js +0 -2
- package/lib/radio/index.js +0 -3
- package/lib/radio/style/css.js +0 -1
- package/lib/radio/style/index.js +0 -1
- package/lib/rate/index.js +0 -3
- package/lib/rate/rate.js +73 -120
- package/lib/rate/style/css.js +0 -1
- package/lib/rate/style/index.js +0 -1
- package/lib/row/index.js +0 -2
- package/lib/row/style/css.js +0 -1
- package/lib/row/style/index.js +0 -1
- package/lib/search/Search.js +40 -82
- package/lib/search/index.js +0 -3
- package/lib/search/style/css.js +0 -4
- package/lib/search/style/index.js +0 -4
- package/lib/select/index.d.ts +4 -4
- package/lib/select/index.js +29 -57
- package/lib/select/src/OptGroup.js +0 -2
- package/lib/select/src/Option.js +0 -2
- package/lib/select/src/OptionList.js +104 -188
- package/lib/select/src/Select.d.ts +2 -2
- package/lib/select/src/Select.js +1 -27
- package/lib/select/src/SelectTrigger.js +28 -48
- package/lib/select/src/Selector/Input.d.ts +1 -1
- package/lib/select/src/Selector/Input.js +26 -40
- package/lib/select/src/Selector/MultipleSelector.js +50 -83
- package/lib/select/src/Selector/SingleSelector.js +29 -46
- package/lib/select/src/Selector/index.js +23 -57
- package/lib/select/src/TransBtn.js +6 -17
- package/lib/select/src/generate.js +231 -371
- package/lib/select/src/hooks/useCacheDisplayValue.js +1 -11
- package/lib/select/src/hooks/useCacheOptions.js +0 -7
- package/lib/select/src/hooks/useDelayReset.js +3 -17
- package/lib/select/src/hooks/useLayoutEffect.js +0 -6
- package/lib/select/src/hooks/useLock.js +2 -10
- package/lib/select/src/hooks/useSelectTriggerControl.js +0 -8
- package/lib/select/src/index.js +0 -5
- package/lib/select/src/interface/generator.d.ts +12 -12
- package/lib/select/src/interface/index.d.ts +5 -5
- package/lib/select/src/utils/commonUtil.js +8 -32
- package/lib/select/src/utils/legacyUtil.js +11 -29
- package/lib/select/src/utils/valueUtil.js +23 -76
- package/lib/select/src/utils/warningPropsUtil.js +30 -56
- package/lib/select/style/css.js +0 -3
- package/lib/select/style/index.css +4 -8
- package/lib/select/style/index.js +0 -3
- package/lib/select/utils/iconUtil.js +16 -37
- package/lib/skeleton/Avatar.d.ts +2 -1
- package/lib/skeleton/Avatar.js +3 -15
- package/lib/skeleton/Button.d.ts +2 -1
- package/lib/skeleton/Button.js +5 -21
- package/lib/skeleton/Element.d.ts +1 -1
- package/lib/skeleton/Element.js +4 -15
- package/lib/skeleton/Image.d.ts +2 -1
- package/lib/skeleton/Image.js +6 -18
- package/lib/skeleton/Input.d.ts +2 -1
- package/lib/skeleton/Input.js +4 -20
- package/lib/skeleton/Node.js +4 -18
- package/lib/skeleton/Paragraph.d.ts +2 -2
- package/lib/skeleton/Paragraph.js +7 -20
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +21 -64
- package/lib/skeleton/Title.d.ts +1 -1
- package/lib/skeleton/Title.js +3 -12
- package/lib/skeleton/index.js +0 -3
- package/lib/skeleton/style/css.js +0 -1
- package/lib/skeleton/style/index.css +1 -10
- package/lib/skeleton/style/index.js +0 -1
- package/lib/slider/SliderTooltip.js +0 -16
- package/lib/slider/index.js +21 -55
- package/lib/slider/interface.d.ts +1 -1
- package/lib/slider/style/css.js +0 -1
- package/lib/slider/style/index.js +0 -1
- package/lib/space/Item.d.ts +1 -1
- package/lib/space/Item.js +10 -24
- package/lib/space/index.d.ts +1 -1
- package/lib/space/index.js +29 -61
- package/lib/space/style/css.js +0 -1
- package/lib/space/style/index.js +0 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +7 -28
- package/lib/steps/interface.d.ts +1 -1
- package/lib/steps/src/step.d.ts +1 -1
- package/lib/steps/src/step.js +39 -72
- package/lib/steps/src/steps.d.ts +3 -3
- package/lib/steps/src/steps.js +24 -56
- package/lib/steps/style/css.js +0 -1
- package/lib/steps/style/index.js +0 -1
- package/lib/style/index.css +144 -526
- package/lib/switch/index.js +19 -45
- package/lib/switch/interface.d.ts +2 -2
- package/lib/switch/style/css.js +0 -1
- package/lib/switch/style/index.css +8 -32
- package/lib/switch/style/index.js +0 -1
- package/lib/table/Column.js +0 -3
- package/lib/table/ColumnGroup.js +0 -3
- package/lib/table/ExpandIcon.d.ts +1 -1
- package/lib/table/ExpandIcon.js +4 -16
- package/lib/table/Space.js +4 -18
- package/lib/table/Table.d.ts +1 -1
- package/lib/table/Table.js +115 -193
- package/lib/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/lib/table/baseTable/Body/BodyRow.js +42 -78
- package/lib/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/lib/table/baseTable/Body/ExpandedRow.js +13 -28
- package/lib/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureCell.js +1 -8
- package/lib/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureRow.js +3 -14
- package/lib/table/baseTable/Body/index.d.ts +1 -1
- package/lib/table/baseTable/Body/index.js +23 -48
- package/lib/table/baseTable/Cell/index.d.ts +1 -1
- package/lib/table/baseTable/Cell/index.js +58 -111
- package/lib/table/baseTable/ColGroup.d.ts +2 -2
- package/lib/table/baseTable/ColGroup.js +7 -25
- package/lib/table/baseTable/FixedHolder/index.js +29 -57
- package/lib/table/baseTable/Footer/Cell.d.ts +1 -1
- package/lib/table/baseTable/Footer/Cell.js +11 -25
- package/lib/table/baseTable/Footer/Row.d.ts +1 -1
- package/lib/table/baseTable/Footer/Row.js +2 -13
- package/lib/table/baseTable/Footer/Summary.js +0 -5
- package/lib/table/baseTable/Footer/index.d.ts +2 -2
- package/lib/table/baseTable/Footer/index.js +2 -12
- package/lib/table/baseTable/Header/Header.js +9 -30
- package/lib/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/lib/table/baseTable/Header/HeaderRow.js +8 -26
- package/lib/table/baseTable/Panel/index.d.ts +1 -1
- package/lib/table/baseTable/Panel/index.js +1 -7
- package/lib/table/baseTable/Table.d.ts +1 -1
- package/lib/table/baseTable/Table.js +126 -234
- package/lib/table/baseTable/context/BodyContext.js +0 -5
- package/lib/table/baseTable/context/ExpandedRowContext.js +0 -5
- package/lib/table/baseTable/context/HoverContext.js +0 -5
- package/lib/table/baseTable/context/ResizeContext.js +0 -5
- package/lib/table/baseTable/context/StickyContext.js +0 -5
- package/lib/table/baseTable/context/TableContext.js +0 -5
- package/lib/table/baseTable/hooks/useColumns.js +40 -94
- package/lib/table/baseTable/hooks/useFlattenRecords.js +2 -15
- package/lib/table/baseTable/hooks/useFrame.d.ts +1 -1
- package/lib/table/baseTable/hooks/useFrame.js +2 -17
- package/lib/table/baseTable/hooks/useSticky.js +10 -20
- package/lib/table/baseTable/hooks/useStickyOffsets.js +4 -10
- package/lib/table/baseTable/index.js +0 -7
- package/lib/table/baseTable/interface.d.ts +20 -20
- package/lib/table/baseTable/stickyScrollBar.js +14 -55
- package/lib/table/baseTable/sugar/Column.js +0 -3
- package/lib/table/baseTable/sugar/ColumnGroup.js +0 -3
- package/lib/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/lib/table/baseTable/utils/expandUtil.js +4 -19
- package/lib/table/baseTable/utils/fixUtil.js +0 -5
- package/lib/table/baseTable/utils/legacyUtil.js +2 -17
- package/lib/table/baseTable/utils/valueUtil.js +2 -23
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterDropdown.js +50 -124
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterSearch.js +6 -15
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterWrapper.js +0 -6
- package/lib/table/hooks/useFilter/index.js +20 -56
- package/lib/table/hooks/useLazyKVMap.js +0 -13
- package/lib/table/hooks/usePagination.js +15 -42
- package/lib/table/hooks/useSelection.d.ts +1 -1
- package/lib/table/hooks/useSelection.js +103 -186
- package/lib/table/hooks/useSorter.js +21 -83
- package/lib/table/hooks/useTitleColumns.js +0 -11
- package/lib/table/index.js +0 -3
- package/lib/table/interface.d.ts +15 -15
- package/lib/table/interface.js +0 -1
- package/lib/table/style/css.js +0 -11
- package/lib/table/style/index.css +0 -3
- package/lib/table/style/index.js +0 -11
- package/lib/table/util.js +0 -6
- package/lib/tabs/index.js +0 -3
- package/lib/tabs/src/TabContext.js +0 -3
- package/lib/tabs/src/TabNavList/AddButton.js +4 -13
- package/lib/tabs/src/TabNavList/OperationNode.js +32 -67
- package/lib/tabs/src/TabNavList/TabNode.js +25 -60
- package/lib/tabs/src/TabNavList/index.js +129 -217
- package/lib/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/TabPane.js +12 -25
- package/lib/tabs/src/TabPanelList/index.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/index.js +7 -18
- package/lib/tabs/src/Tabs.d.ts +1 -1
- package/lib/tabs/src/Tabs.js +68 -112
- package/lib/tabs/src/hooks/useOffsets.js +6 -15
- package/lib/tabs/src/hooks/useRaf.d.ts +1 -1
- package/lib/tabs/src/hooks/useRaf.js +2 -17
- package/lib/tabs/src/hooks/useRefs.js +0 -9
- package/lib/tabs/src/hooks/useSyncState.d.ts +1 -1
- package/lib/tabs/src/hooks/useSyncState.js +2 -14
- package/lib/tabs/src/hooks/useTouchMove.js +32 -55
- package/lib/tabs/src/hooks/useVisibleRange.js +2 -16
- package/lib/tabs/src/index.js +0 -4
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/style/css.js +0 -1
- package/lib/tabs/style/index.js +0 -1
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/tabs/tabs.js +10 -37
- package/lib/tag/CheckableTag.js +7 -27
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/index.js +19 -55
- package/lib/tag/style/css.js +0 -1
- package/lib/tag/style/index.css +1 -12
- package/lib/tag/style/index.js +0 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +9 -32
- package/lib/time-picker/style/css.js +0 -2
- package/lib/time-picker/style/index.css +0 -1
- package/lib/time-picker/style/index.js +0 -2
- package/lib/timeline/index.js +0 -3
- package/lib/timeline/interface.d.ts +1 -1
- package/lib/timeline/style/css.js +0 -1
- package/lib/timeline/style/index.css +4 -27
- package/lib/timeline/style/index.js +0 -1
- package/lib/timeline/timeline.js +17 -33
- package/lib/timeline/timelineItem.js +24 -60
- package/lib/toast/PurePanel.d.ts +2 -2
- package/lib/toast/PurePanel.js +25 -47
- package/lib/toast/base.d.ts +1 -1
- package/lib/toast/base.js +63 -105
- package/lib/toast/index.js +39 -72
- package/lib/toast/interface.d.ts +3 -3
- package/lib/toast/style/css.js +0 -1
- package/lib/toast/style/index.css +17 -64
- package/lib/toast/style/index.js +0 -1
- package/lib/toast/useNotification.d.ts +1 -1
- package/lib/toast/useNotification.js +52 -82
- package/lib/toast/util.js +0 -9
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +32 -72
- package/lib/tooltip/placements.js +7 -13
- package/lib/tooltip/style/css.js +0 -1
- package/lib/tooltip/style/index.css +0 -1
- package/lib/tooltip/style/index.js +0 -1
- package/lib/transfer/DataSource.d.ts +2 -1
- package/lib/transfer/DataSource.js +40 -66
- package/lib/transfer/SourceList.d.ts +2 -1
- package/lib/transfer/SourceList.js +16 -44
- package/lib/transfer/Target.d.ts +2 -1
- package/lib/transfer/Target.js +46 -78
- package/lib/transfer/TargetList.d.ts +2 -1
- package/lib/transfer/TargetList.js +15 -38
- package/lib/transfer/index.d.ts +5 -5
- package/lib/transfer/index.js +19 -43
- package/lib/transfer/style/css.js +0 -2
- package/lib/transfer/style/index.js +0 -2
- package/lib/transfer/util.js +0 -6
- package/lib/tree/index.js +0 -3
- package/lib/tree/style/css.js +0 -3
- package/lib/tree/style/index.css +1 -12
- package/lib/tree/style/index.js +0 -3
- package/lib/tree/tree.d.ts +3 -3
- package/lib/tree/tree.js +34 -118
- package/lib/tree/utils/dragHelper.d.ts +2 -2
- package/lib/tree/utils/dragHelper.js +5 -15
- package/lib/tree/utils/iconHelper.js +0 -13
- package/lib/tree/utils/nodeHelper.js +0 -32
- package/lib/tree-select/index.d.ts +4 -4
- package/lib/tree-select/index.js +59 -95
- package/lib/tree-select/src/LegacyContext.js +0 -5
- package/lib/tree-select/src/OptionList.d.ts +1 -1
- package/lib/tree-select/src/OptionList.js +63 -124
- package/lib/tree-select/src/TreeNode.js +0 -2
- package/lib/tree-select/src/TreeSelect.d.ts +4 -4
- package/lib/tree-select/src/TreeSelect.js +166 -242
- package/lib/tree-select/src/TreeSelectContext.js +0 -5
- package/lib/tree-select/src/hooks/useCache.js +2 -11
- package/lib/tree-select/src/hooks/useCheckedKeys.js +4 -14
- package/lib/tree-select/src/hooks/useDataEntities.js +2 -14
- package/lib/tree-select/src/hooks/useFilterTreeData.js +2 -19
- package/lib/tree-select/src/hooks/useRefFunc.js +0 -5
- package/lib/tree-select/src/hooks/useTreeData.js +10 -22
- package/lib/tree-select/src/index.js +0 -5
- package/lib/tree-select/src/interface.d.ts +4 -4
- package/lib/tree-select/src/utils/legacyUtil.js +10 -43
- package/lib/tree-select/src/utils/strategyUtil.d.ts +1 -1
- package/lib/tree-select/src/utils/strategyUtil.js +0 -10
- package/lib/tree-select/src/utils/valueUtil.js +3 -14
- package/lib/tree-select/src/utils/warningPropsUtil.js +5 -14
- package/lib/tree-select/style/css.js +0 -3
- package/lib/tree-select/style/index.css +1 -12
- package/lib/tree-select/style/index.js +0 -3
- package/lib/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/lib/upload/BaseUpload/AjaxUploader.js +114 -202
- package/lib/upload/BaseUpload/Upload.d.ts +2 -2
- package/lib/upload/BaseUpload/Upload.js +1 -21
- package/lib/upload/BaseUpload/attr-accept.js +10 -22
- package/lib/upload/BaseUpload/index.js +0 -3
- package/lib/upload/BaseUpload/interface.d.ts +4 -4
- package/lib/upload/BaseUpload/request.js +10 -27
- package/lib/upload/BaseUpload/traverseFileTree.js +4 -13
- package/lib/upload/BaseUpload/uid.js +0 -2
- package/lib/upload/Dragger.d.ts +1 -1
- package/lib/upload/Dragger.js +3 -18
- package/lib/upload/Upload.js +117 -206
- package/lib/upload/UploadList/ListItem.js +41 -71
- package/lib/upload/UploadList/index.js +46 -102
- package/lib/upload/index.js +1 -4
- package/lib/upload/interface.d.ts +8 -8
- package/lib/upload/style/css.js +0 -4
- package/lib/upload/style/index.css +4 -26
- package/lib/upload/style/index.js +0 -4
- package/lib/upload/utils.js +3 -34
- package/lib/virtual-list/Filler.js +4 -17
- package/lib/virtual-list/Item.js +1 -6
- package/lib/virtual-list/List.d.ts +5 -5
- package/lib/virtual-list/List.js +122 -189
- package/lib/virtual-list/ScrollBar.d.ts +1 -1
- package/lib/virtual-list/ScrollBar.js +23 -84
- package/lib/virtual-list/hooks/useChildren.d.ts +2 -2
- package/lib/virtual-list/hooks/useChildren.js +2 -7
- package/lib/virtual-list/hooks/useDiffItem.js +6 -18
- package/lib/virtual-list/hooks/useFrameWheel.js +10 -22
- package/lib/virtual-list/hooks/useHeights.js +7 -23
- package/lib/virtual-list/hooks/useMobileTouchMove.js +4 -20
- package/lib/virtual-list/hooks/useOriginScroll.js +6 -11
- package/lib/virtual-list/hooks/useScrollTo.js +13 -35
- package/lib/virtual-list/index.js +0 -3
- package/lib/virtual-list/interface.d.ts +2 -2
- package/lib/virtual-list/mock.js +2 -9
- package/lib/virtual-list/utils/CacheMap.js +0 -6
- package/lib/virtual-list/utils/algorithmUtil.js +6 -22
- package/lib/virtual-list/utils/isFirefox.js +0 -3
- package/package.json +1 -1
- package/dist/acud.css +0 -28511
- package/dist/acud.css.map +0 -1
- package/dist/acud.min.css +0 -2
- package/dist/acud.min.css.map +0 -1
- package/dist/acud.min.js +0 -56
- package/dist/acud.min.js.map +0 -1
package/es/cascader/Menus.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ interface MenusState {
|
|
|
33
33
|
menuScrollOpen: boolean;
|
|
34
34
|
activeValue?: (string | number)[];
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
type MenusType = Record<number, HTMLLIElement>;
|
|
37
|
+
type MenuItemsType = Record<number, HTMLLIElement>;
|
|
38
38
|
declare class Menus extends React.Component<MenusProps, MenusState> {
|
|
39
39
|
menuWrap: HTMLLIElement;
|
|
40
40
|
menus: MenusType;
|
|
@@ -45,8 +45,8 @@ declare class Menus extends React.Component<MenusProps, MenusState> {
|
|
|
45
45
|
componentDidUpdate(prevProps: MenusProps): void;
|
|
46
46
|
isStatusOption(statusValue: any[], option: any, menuIndex: any): boolean;
|
|
47
47
|
getFieldName(name: any): any;
|
|
48
|
-
getOption(option: CascaderOption, menuIndex: number): JSX.Element;
|
|
49
|
-
getCheckAllOption(menuIndex: number): JSX.Element;
|
|
48
|
+
getOption(option: CascaderOption, menuIndex: number): React.JSX.Element;
|
|
49
|
+
getCheckAllOption(menuIndex: number): React.JSX.Element;
|
|
50
50
|
getActiveOptions(values?: CascaderOption[]): CascaderOption[];
|
|
51
51
|
getShowOptions(): CascaderOption[][];
|
|
52
52
|
delayOnEvent(onEvent: any, ...args: any[]): void;
|
|
@@ -59,6 +59,6 @@ declare class Menus extends React.Component<MenusProps, MenusState> {
|
|
|
59
59
|
handleMenuScroll: (menuIndex: any) => () => void;
|
|
60
60
|
onShowActive: () => void;
|
|
61
61
|
onShowEnd: () => void;
|
|
62
|
-
render(): JSX.Element;
|
|
62
|
+
render(): React.JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
export default Menus;
|
package/es/cascader/Menus.js
CHANGED
|
@@ -18,75 +18,57 @@ import Checkbox from '../checkbox';
|
|
|
18
18
|
import MenuItem from './MenuItem';
|
|
19
19
|
import { getElementStyle, isIncludeArray } from './utils';
|
|
20
20
|
var DEFAULT_MENU_GAP = 4; // 菜单之间默认4px的间距
|
|
21
|
-
|
|
22
21
|
var Menus = /*#__PURE__*/function (_React$Component) {
|
|
23
22
|
_inherits(Menus, _React$Component);
|
|
24
|
-
|
|
25
23
|
var _super = _createSuper(Menus);
|
|
26
|
-
|
|
27
24
|
function Menus(props) {
|
|
28
25
|
var _this;
|
|
29
|
-
|
|
30
26
|
_classCallCheck(this, Menus);
|
|
31
|
-
|
|
32
27
|
_this = _super.call(this, props);
|
|
33
28
|
_this.menus = {};
|
|
34
29
|
_this.menuItems = {};
|
|
35
|
-
|
|
36
30
|
_this.saveMenuWrap = function (menuWrap) {
|
|
37
31
|
_this.menuWrap = menuWrap;
|
|
38
32
|
};
|
|
39
|
-
|
|
40
33
|
_this.saveMenus = function (menuIndex) {
|
|
41
34
|
return function (menus) {
|
|
42
35
|
_this.menus[menuIndex] = menus;
|
|
43
36
|
};
|
|
44
37
|
};
|
|
45
|
-
|
|
46
38
|
_this.saveMenuItems = function (index) {
|
|
47
39
|
return function (node) {
|
|
48
40
|
_this.menuItems[index] = node;
|
|
49
41
|
};
|
|
50
42
|
};
|
|
51
|
-
|
|
52
43
|
_this.handleMenuScroll = function (menuIndex) {
|
|
53
44
|
return function () {
|
|
54
45
|
var _a, _b;
|
|
55
|
-
|
|
56
46
|
var menuScrollOpen = _this.state.menuScrollOpen;
|
|
57
|
-
|
|
58
47
|
if (menuScrollOpen) {
|
|
59
48
|
// 当前menu滚动时,取消当前选中项高亮,隐藏子级
|
|
60
49
|
var activeValue = _this.props.activeValue.slice(0, menuIndex);
|
|
61
|
-
|
|
62
50
|
(_b = (_a = _this.props).onActiveValueSet) === null || _b === void 0 ? void 0 : _b.call(_a, activeValue);
|
|
63
51
|
}
|
|
64
52
|
};
|
|
65
53
|
};
|
|
66
|
-
|
|
67
54
|
_this.onShowActive = function () {
|
|
68
55
|
_this.scrollActiveItemToView();
|
|
69
|
-
|
|
70
56
|
window.setTimeout(function () {
|
|
71
57
|
_this.setMenuPosition();
|
|
72
|
-
|
|
73
58
|
window.setTimeout(function () {
|
|
74
59
|
_this.handleMenuScrollChange(true);
|
|
75
60
|
}, 0);
|
|
76
61
|
}, 0);
|
|
77
62
|
};
|
|
78
|
-
|
|
79
63
|
_this.onShowEnd = function () {
|
|
80
64
|
_this.handleMenuScrollChange(false);
|
|
81
65
|
};
|
|
82
|
-
|
|
83
66
|
_this.state = {
|
|
84
67
|
// 默认关闭对menu scroll事件的监听,待scrollActiveItemToView完成后开启
|
|
85
68
|
menuScrollOpen: false
|
|
86
69
|
};
|
|
87
70
|
return _this;
|
|
88
71
|
}
|
|
89
|
-
|
|
90
72
|
_createClass(Menus, [{
|
|
91
73
|
key: "componentDidUpdate",
|
|
92
74
|
value: function componentDidUpdate(prevProps) {
|
|
@@ -106,73 +88,61 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
106
88
|
key: "getFieldName",
|
|
107
89
|
value: function getFieldName(name) {
|
|
108
90
|
var _this$props = this.props,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
91
|
+
fieldNames = _this$props.fieldNames,
|
|
92
|
+
defaultFieldNames = _this$props.defaultFieldNames;
|
|
93
|
+
// 防止只设置单个属性的名字
|
|
112
94
|
return fieldNames[name] || defaultFieldNames[name];
|
|
113
95
|
}
|
|
114
96
|
}, {
|
|
115
97
|
key: "getOption",
|
|
116
98
|
value: function getOption(option, menuIndex) {
|
|
117
99
|
var _this2 = this;
|
|
118
|
-
|
|
119
100
|
var _this$props2 = this.props,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
101
|
+
prefixCls = _this$props2.prefixCls,
|
|
102
|
+
mode = _this$props2.mode,
|
|
103
|
+
keyword = _this$props2.keyword,
|
|
104
|
+
value = _this$props2.value,
|
|
105
|
+
activeValue = _this$props2.activeValue,
|
|
106
|
+
hoveredValue = _this$props2.hoveredValue,
|
|
107
|
+
expandTrigger = _this$props2.expandTrigger,
|
|
108
|
+
expandIcon = _this$props2.expandIcon,
|
|
109
|
+
loadingIcon = _this$props2.loadingIcon;
|
|
129
110
|
var isMulti = mode === 'multiple';
|
|
130
|
-
|
|
131
111
|
var optionValue = function () {
|
|
132
112
|
var value = option[_this2.getFieldName('value')];
|
|
133
|
-
|
|
134
113
|
return /*#__PURE__*/React.isValidElement(value) ? menuIndex : value;
|
|
135
114
|
}();
|
|
136
|
-
|
|
137
115
|
var optionKey = [].concat(_toConsumableArray(activeValue.slice(0, menuIndex)), [optionValue]);
|
|
138
116
|
var hasChildren = option[this.getFieldName('children')] && option[this.getFieldName('children')].length > 0;
|
|
139
117
|
var hasLeaf = hasChildren || option.isLeaf === false;
|
|
140
118
|
var onSelect = this.props.onSelect.bind(this, option, menuIndex);
|
|
141
119
|
var onMultiSelect = this.props.onMultiSelect.bind(this, option, menuIndex, optionKey);
|
|
142
120
|
var onItemDoubleClick = this.props.onItemDoubleClick.bind(this, option, menuIndex);
|
|
143
|
-
|
|
144
121
|
var handleClick = function handleClick(e) {
|
|
145
122
|
isMulti && !hasLeaf ? undefined : onSelect(e);
|
|
146
123
|
};
|
|
147
|
-
|
|
148
124
|
var handleMultiClick = function handleMultiClick(e) {
|
|
149
125
|
if (activeValue[menuIndex] === optionValue) {
|
|
150
126
|
e.stopPropagation();
|
|
151
127
|
}
|
|
152
128
|
};
|
|
153
|
-
|
|
154
129
|
var expandProps = {
|
|
155
130
|
onClick: handleClick,
|
|
156
131
|
onDoubleClick: onItemDoubleClick
|
|
157
132
|
};
|
|
158
133
|
var menuItemCls = "".concat(prefixCls, "-menu-item");
|
|
159
|
-
|
|
160
134
|
if (isMulti) {
|
|
161
135
|
menuItemCls += " ".concat(prefixCls, "-menu-item-multi");
|
|
162
136
|
}
|
|
163
|
-
|
|
164
137
|
var expandIconNode = null;
|
|
165
|
-
|
|
166
138
|
if (hasLeaf) {
|
|
167
139
|
menuItemCls += " ".concat(prefixCls, "-menu-item-expand");
|
|
168
|
-
|
|
169
140
|
if (!option.loading) {
|
|
170
141
|
expandIconNode = /*#__PURE__*/React.createElement("span", {
|
|
171
142
|
className: "".concat(prefixCls, "-menu-item-expand-icon")
|
|
172
143
|
}, expandIcon);
|
|
173
144
|
}
|
|
174
145
|
}
|
|
175
|
-
|
|
176
146
|
if (expandTrigger === 'hover') {
|
|
177
147
|
expandProps = {
|
|
178
148
|
onMouseEnter: this.delayOnEvent.bind(this, onSelect),
|
|
@@ -180,69 +150,56 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
180
150
|
onClick: handleClick
|
|
181
151
|
};
|
|
182
152
|
}
|
|
183
|
-
|
|
184
153
|
if (this.isStatusOption(hoveredValue, option, menuIndex)) {
|
|
185
154
|
menuItemCls += " ".concat(prefixCls, "-menu-item-hovered");
|
|
186
155
|
}
|
|
187
|
-
|
|
188
156
|
if (this.isStatusOption(activeValue, option, menuIndex)) {
|
|
189
157
|
expandProps.ref = this.saveMenuItems(menuIndex);
|
|
190
158
|
}
|
|
191
|
-
|
|
192
159
|
if (!isMulti && this.isStatusOption(value, option, menuIndex)) {
|
|
193
160
|
menuItemCls += " ".concat(prefixCls, "-menu-item-active");
|
|
194
161
|
}
|
|
195
|
-
|
|
196
162
|
if (option.disabled) {
|
|
197
163
|
menuItemCls += " ".concat(prefixCls, "-menu-item-disabled");
|
|
198
164
|
}
|
|
199
|
-
|
|
200
165
|
var loadingIconNode = null;
|
|
201
|
-
|
|
202
166
|
if (option.loading) {
|
|
203
167
|
menuItemCls += " ".concat(prefixCls, "-menu-item-loading");
|
|
204
168
|
loadingIconNode = loadingIcon || null;
|
|
205
169
|
}
|
|
206
|
-
|
|
207
170
|
var _ref = function () {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
indeterminate: indeterminate
|
|
241
|
-
};
|
|
242
|
-
}(),
|
|
243
|
-
checked = _ref.checked,
|
|
244
|
-
indeterminate = _ref.indeterminate;
|
|
245
|
-
|
|
171
|
+
if (!isMulti) {
|
|
172
|
+
return {};
|
|
173
|
+
}
|
|
174
|
+
var checked;
|
|
175
|
+
var indeterminate;
|
|
176
|
+
if (keyword) {
|
|
177
|
+
checked = isIncludeArray(value, optionValue);
|
|
178
|
+
} else if (hasLeaf) {
|
|
179
|
+
var children = option[_this2.getFieldName('children')];
|
|
180
|
+
var getEnableValues = _this2.props.getEnableValues.bind(_this2);
|
|
181
|
+
var childrenValue = getEnableValues(children);
|
|
182
|
+
var selectedValue = map(value, function (valueItem) {
|
|
183
|
+
return valueItem.slice(menuIndex + 1);
|
|
184
|
+
});
|
|
185
|
+
checked = !isEmpty(childrenValue) && every(childrenValue, function (valueItem) {
|
|
186
|
+
return isIncludeArray(selectedValue, valueItem);
|
|
187
|
+
});
|
|
188
|
+
indeterminate = !checked && some(childrenValue, function (valueItem) {
|
|
189
|
+
return isIncludeArray(selectedValue, valueItem);
|
|
190
|
+
});
|
|
191
|
+
} else {
|
|
192
|
+
checked = some(value, function (valueItem) {
|
|
193
|
+
return valueItem[menuIndex] === optionValue;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
checked: checked,
|
|
198
|
+
indeterminate: indeterminate
|
|
199
|
+
};
|
|
200
|
+
}(),
|
|
201
|
+
checked = _ref.checked,
|
|
202
|
+
indeterminate = _ref.indeterminate;
|
|
246
203
|
var label = option[this.getFieldName('label')];
|
|
247
204
|
var labelContent = /*#__PURE__*/React.createElement("span", {
|
|
248
205
|
className: "".concat(prefixCls, "-menu-item-label")
|
|
@@ -270,18 +227,16 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
270
227
|
key: "getCheckAllOption",
|
|
271
228
|
value: function getCheckAllOption(menuIndex) {
|
|
272
229
|
var _this$props3 = this.props,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
230
|
+
mode = _this$props3.mode,
|
|
231
|
+
prefixCls = _this$props3.prefixCls,
|
|
232
|
+
value = _this$props3.value,
|
|
233
|
+
enableValues = _this$props3.enableValues,
|
|
234
|
+
_this$props3$withChec = _this$props3.withCheckAll,
|
|
235
|
+
withCheckAll = _this$props3$withChec === void 0 ? true : _this$props3$withChec;
|
|
279
236
|
var isMulti = mode === 'multiple';
|
|
280
|
-
|
|
281
237
|
if (!(isMulti && menuIndex === 0) || !withCheckAll) {
|
|
282
238
|
return null;
|
|
283
239
|
}
|
|
284
|
-
|
|
285
240
|
var checked = value.length > 0 && value.length >= enableValues.length && enableValues.every(function (valueItem) {
|
|
286
241
|
return isIncludeArray(value, valueItem);
|
|
287
242
|
});
|
|
@@ -308,7 +263,6 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
308
263
|
key: "getActiveOptions",
|
|
309
264
|
value: function getActiveOptions(values) {
|
|
310
265
|
var _this3 = this;
|
|
311
|
-
|
|
312
266
|
var options = this.props.options;
|
|
313
267
|
var activeValue = values || this.props.activeValue;
|
|
314
268
|
return arrayTreeFilter(options, function (o, level) {
|
|
@@ -321,7 +275,6 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
321
275
|
key: "getShowOptions",
|
|
322
276
|
value: function getShowOptions() {
|
|
323
277
|
var _this4 = this;
|
|
324
|
-
|
|
325
278
|
var options = this.props.options;
|
|
326
279
|
var result = this.getActiveOptions().map(function (activeOption) {
|
|
327
280
|
return activeOption[_this4.getFieldName('children')];
|
|
@@ -335,16 +288,13 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
335
288
|
key: "delayOnEvent",
|
|
336
289
|
value: function delayOnEvent(onEvent) {
|
|
337
290
|
var _this5 = this;
|
|
338
|
-
|
|
339
291
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
340
292
|
args[_key - 1] = arguments[_key];
|
|
341
293
|
}
|
|
342
|
-
|
|
343
294
|
if (this.delayTimer) {
|
|
344
295
|
clearTimeout(this.delayTimer);
|
|
345
296
|
this.delayTimer = null;
|
|
346
297
|
}
|
|
347
|
-
|
|
348
298
|
if (typeof onEvent === 'function') {
|
|
349
299
|
this.delayTimer = window.setTimeout(function () {
|
|
350
300
|
onEvent.apply(void 0, args);
|
|
@@ -356,12 +306,11 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
356
306
|
key: "scrollActiveItemToView",
|
|
357
307
|
value: function scrollActiveItemToView() {
|
|
358
308
|
// scroll into view
|
|
359
|
-
var optionsLength = this.getShowOptions().length;
|
|
360
|
-
|
|
309
|
+
var optionsLength = this.getShowOptions().length;
|
|
310
|
+
// eslint-disable-next-line no-plusplus
|
|
361
311
|
for (var i = 0; i < optionsLength; i++) {
|
|
362
312
|
var menuItem = this.menuItems[i];
|
|
363
313
|
var menuItemParent = menuItem && menuItem.parentElement;
|
|
364
|
-
|
|
365
314
|
if (menuItemParent) {
|
|
366
315
|
var paddingTop = Number(getElementStyle(menuItemParent).paddingTop.replace('px', ''));
|
|
367
316
|
menuItemParent.scrollTop = menuItem.offsetTop - paddingTop;
|
|
@@ -372,29 +321,24 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
372
321
|
key: "setMenuPosition",
|
|
373
322
|
value: function setMenuPosition() {
|
|
374
323
|
var _this6 = this;
|
|
375
|
-
|
|
376
324
|
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
|
377
325
|
var _this$props4 = this.props,
|
|
378
|
-
|
|
379
|
-
|
|
326
|
+
menusEdgeBuffer = _this$props4.menusEdgeBuffer,
|
|
327
|
+
popupPlacement = _this$props4.popupPlacement;
|
|
380
328
|
var menuDirections = [];
|
|
381
329
|
var optionsLength = this.getShowOptions().length;
|
|
382
|
-
|
|
383
330
|
if (Number(optionsLength) <= 0) {
|
|
384
331
|
return;
|
|
385
332
|
}
|
|
386
|
-
|
|
387
333
|
var isPlaceTop = ['topLeft', 'topRight'].includes(popupPlacement);
|
|
388
334
|
var clientHeight = document.body.clientHeight;
|
|
389
335
|
var clientWidth = document.body.clientWidth;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
var
|
|
393
|
-
|
|
394
|
-
|
|
336
|
+
var _loop = function _loop() {
|
|
337
|
+
var currentMenu = _this6.menus[i];
|
|
338
|
+
var prevMenu = _this6.menus[i - 1];
|
|
339
|
+
// 1、计算left并设置
|
|
395
340
|
var prevMenusWidthSum = 0;
|
|
396
341
|
var prevMenuDir = menuDirections[i - 1] || 'right';
|
|
397
|
-
|
|
398
342
|
if (prevMenuDir === 'right') {
|
|
399
343
|
// 往右展开时到达边界
|
|
400
344
|
// eslint-disable-next-line max-len
|
|
@@ -414,40 +358,34 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
414
358
|
prevMenusWidthSum = prevMenu.offsetLeft - currentMenu.offsetWidth - DEFAULT_MENU_GAP;
|
|
415
359
|
menuDirections[i] = 'left';
|
|
416
360
|
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
361
|
+
}
|
|
362
|
+
// 设置left
|
|
363
|
+
currentMenu.style.left = prevMenusWidthSum + 'px';
|
|
364
|
+
// 2、计算top/bottom并设置
|
|
422
365
|
if (isPlaceTop) {
|
|
423
366
|
var prevMenuBottom = Number(getElementStyle(prevMenu).bottom.replace('px', ''));
|
|
424
367
|
var currentMenuPaddingBottom = Number(getElementStyle(currentMenu).paddingBottom.replace('px', ''));
|
|
425
|
-
var bottom = prevMenu.offsetHeight + prevMenuBottom + currentMenuPaddingBottom + prevMenu.scrollTop -
|
|
368
|
+
var bottom = prevMenu.offsetHeight + prevMenuBottom + currentMenuPaddingBottom + prevMenu.scrollTop - _this6.menuItems[i - 1].offsetTop - currentMenu.offsetHeight;
|
|
426
369
|
currentMenu.style.bottom = (bottom < 0 ? 0 : bottom) + 'px';
|
|
427
370
|
} else {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
return prevMenuItemsTopSum > currentMenuMaxTop ? currentMenuMaxTop : prevMenuItemsTopSum;
|
|
444
|
-
}();
|
|
445
|
-
|
|
446
|
-
currentMenu.style.top = currentMenuTop + 'px';
|
|
447
|
-
})();
|
|
371
|
+
var prevMenuPaddingTop = Number(getElementStyle(currentMenu).paddingTop.replace('px', ''));
|
|
372
|
+
var prevMenuTop = Number(getElementStyle(prevMenu).top.replace('px', ''));
|
|
373
|
+
var prevMenuItemsTopSum = prevMenuTop + _this6.menuItems[i - 1].offsetTop - prevMenu.scrollTop - prevMenuPaddingTop;
|
|
374
|
+
var menuWrapTop = _this6.menuWrap.parentElement.getBoundingClientRect().top;
|
|
375
|
+
var currentMenuHeight = currentMenu.offsetHeight;
|
|
376
|
+
var currentMenuMaxTop = clientHeight - menuWrapTop - currentMenuHeight - menusEdgeBuffer;
|
|
377
|
+
var currentMenuTop = function () {
|
|
378
|
+
if (currentMenuMaxTop <= 0) {
|
|
379
|
+
return 0;
|
|
380
|
+
}
|
|
381
|
+
return prevMenuItemsTopSum > currentMenuMaxTop ? currentMenuMaxTop : prevMenuItemsTopSum;
|
|
382
|
+
}();
|
|
383
|
+
currentMenu.style.top = currentMenuTop + 'px';
|
|
448
384
|
}
|
|
385
|
+
};
|
|
386
|
+
for (var i = 1; i < optionsLength; i++) {
|
|
387
|
+
_loop();
|
|
449
388
|
}
|
|
450
|
-
|
|
451
389
|
if (typeof callback === 'function') {
|
|
452
390
|
callback();
|
|
453
391
|
}
|
|
@@ -463,15 +401,14 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
463
401
|
key: "render",
|
|
464
402
|
value: function render() {
|
|
465
403
|
var _classnames,
|
|
466
|
-
|
|
467
|
-
|
|
404
|
+
_this7 = this;
|
|
468
405
|
var _this$props5 = this.props,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
406
|
+
prefixCls = _this$props5.prefixCls,
|
|
407
|
+
transitionName = _this$props5.transitionName,
|
|
408
|
+
visible = _this$props5.visible,
|
|
409
|
+
dropdownMenuColumnStyle = _this$props5.dropdownMenuColumnStyle,
|
|
410
|
+
size = _this$props5.size,
|
|
411
|
+
mode = _this$props5.mode;
|
|
475
412
|
var showOptions = this.getShowOptions();
|
|
476
413
|
var isMulti = mode === 'multiple';
|
|
477
414
|
var sizeCls = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-menu-lg"), size === 'large'), _defineProperty(_classnames, "".concat(prefixCls, "-menu-sm"), size === 'small'), _classnames));
|
|
@@ -485,9 +422,8 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
485
422
|
onLeaveEnd: this.onShowEnd
|
|
486
423
|
}, function (_ref2) {
|
|
487
424
|
var _classnames2;
|
|
488
|
-
|
|
489
425
|
var className = _ref2.className,
|
|
490
|
-
|
|
426
|
+
style = _ref2.style;
|
|
491
427
|
var menuClas = classnames("".concat(prefixCls, "-menu"), (_classnames2 = {}, _defineProperty(_classnames2, "".concat(prefixCls, "-menu-multi"), isMulti), _defineProperty(_classnames2, sizeCls, sizeCls), _classnames2));
|
|
492
428
|
return /*#__PURE__*/React.createElement("div", {
|
|
493
429
|
ref: _this7.saveMenuWrap,
|
|
@@ -509,10 +445,8 @@ var Menus = /*#__PURE__*/function (_React$Component) {
|
|
|
509
445
|
});
|
|
510
446
|
}
|
|
511
447
|
}]);
|
|
512
|
-
|
|
513
448
|
return Menus;
|
|
514
449
|
}(React.Component);
|
|
515
|
-
|
|
516
450
|
Menus.defaultProps = {
|
|
517
451
|
options: [],
|
|
518
452
|
value: [],
|
package/es/cascader/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CascaderValueType, CascaderMultiValueType } from './Cascader';
|
|
3
3
|
import { SizeType } from '../config-provider/SizeContext';
|
|
4
|
-
export
|
|
4
|
+
export type CascaderExpandTrigger = 'click' | 'hover';
|
|
5
5
|
export interface FieldNamesType {
|
|
6
6
|
value?: string | number;
|
|
7
7
|
label?: string;
|