@unicom-cloud/ui 0.8.89 → 0.8.91
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/Affix.js +10 -9
- package/Alert.js +6 -5
- package/Anchor.js +4 -2
- package/AutoComplete.js +12 -7
- package/Avatar.js +4 -3
- package/BackTop.js +12 -10
- package/Badge.js +9 -7
- package/Breadcrumb.js +10 -8
- package/Button.js +9 -8
- package/Calendar.js +13 -8
- package/Card.js +9 -6
- package/Carousel.js +9 -8
- package/Cascader.js +2 -2
- package/Checkbox.js +8 -6
- package/Collapse.js +4 -2
- package/ColorPicker.js +18 -4
- package/Comment.js +6 -5
- package/ConfigProvider.js +6 -5
- package/Copy.js +6 -5
- package/DatePicker.js +13 -8
- package/Descriptions.js +5 -4
- package/Details.js +15 -0
- package/Development.js +5 -3
- package/Divider.js +5 -4
- package/Draggable.js +4 -3
- package/Dropdown.js +12 -10
- package/Empty.js +6 -3
- package/Form.js +17 -13
- package/Grid.js +10 -8
- package/Icon.js +7 -6
- package/IconHover.js +4 -2
- package/Image.js +5 -5
- package/Input.js +17 -12
- package/InputNumber.js +7 -5
- package/Layout.js +13 -12
- package/Link.js +6 -5
- package/List.js +9 -7
- package/Loading.js +3 -2
- package/Mentions.js +7 -5
- package/Menu.js +7 -6
- package/Message.js +13 -6
- package/Modal.js +2 -2
- package/Notice.js +10 -7
- package/Notification.js +13 -7
- package/OverflowEllipsis.js +5 -4
- package/PageHeader.js +9 -7
- package/Pagination.js +2 -2
- package/Popconfirm.js +6 -5
- package/Popover.js +6 -5
- package/Progress.js +6 -5
- package/Radio.js +8 -6
- package/Rate.js +6 -5
- package/ResizeBox.js +12 -11
- package/Result.js +5 -4
- package/Select.js +6 -5
- package/SelectView.js +2 -2
- package/Skeleton.js +6 -5
- package/Slider.js +11 -8
- package/Space.js +6 -5
- package/SpeechSynthesis.js +4 -2
- package/Spin.js +6 -5
- package/Statistic.js +10 -8
- package/Steps.js +9 -8
- package/SuspenseFallbackTest.js +3 -2
- package/Switch.js +13 -8
- package/Table.js +27 -15
- package/Tabs.js +5 -5
- package/Tag.js +8 -6
- package/TimePicker.js +2 -2
- package/Tooltip.js +9 -7
- package/Transfer.js +8 -6
- package/Tree.js +3 -2
- package/TreeSelect.js +3 -3
- package/Trigger.js +17 -12
- package/Typography.js +7 -6
- package/Upload.js +6 -5
- package/affix/index.js +32 -31
- package/alert/index.js +60 -70
- package/anchor/Anchor.js +63 -61
- package/anchor/Link.js +9 -8
- package/anchor/index.js +2 -0
- package/anchor/util.js +15 -14
- package/auto-complete/index.js +154 -13
- package/avatar/Avatar.js +6 -5
- package/avatar/Group.js +17 -16
- package/avatar/index.js +4 -3
- package/back-top/index.js +38 -36
- package/badge/Count.js +11 -11
- package/badge/index.js +58 -61
- package/breadcrumb/Item.js +7 -7
- package/breadcrumb/index.js +40 -38
- package/button/Group.js +8 -7
- package/button/index.js +13 -12
- package/calendar/Month.js +140 -10
- package/calendar/Year.js +21 -20
- package/calendar/header/Panel.js +57 -0
- package/calendar/header/index.js +110 -0
- package/calendar/hook/useCellClassName.js +41 -0
- package/calendar/index.js +171 -12
- package/card/Grid.js +12 -11
- package/card/Meta.js +14 -13
- package/card/index.js +38 -35
- package/carousel/Arrow.js +16 -15
- package/carousel/Indicator.js +19 -18
- package/carousel/index.js +16 -15
- package/cascader/Cascader.js +299 -24
- package/cascader/base/node.js +142 -0
- package/cascader/base/store.js +93 -0
- package/cascader/hook/useRefCurrent.js +12 -0
- package/cascader/index.js +2 -2
- package/cascader/panel/List.js +278 -0
- package/cascader/panel/Option.js +33 -0
- package/cascader/panel/Search.js +169 -0
- package/cascader/util.js +64 -12
- package/checkbox/Checkbox.js +125 -17
- package/checkbox/Group.js +97 -12
- package/checkbox/GroupBlock.js +62 -6
- package/checkbox/index.js +7 -6
- package/collapse/Collapse.js +88 -13
- package/collapse/Item.js +181 -9
- package/collapse/index.js +4 -2
- package/color-picker/ControlBar.js +21 -20
- package/color-picker/InputAlpha.js +10 -9
- package/color-picker/InputHex.js +27 -25
- package/color-picker/InputRgb.js +27 -24
- package/color-picker/Palette.js +16 -14
- package/color-picker/Panel.js +269 -15
- package/color-picker/colors.js +8 -7
- package/color-picker/hooks/useColorPicker.js +128 -0
- package/{chunk/k-OUstoD.js → color-picker/hooks/useControlBlock.js} +1 -1
- package/color-picker/index.js +160 -13
- package/color-picker/utils.js +18 -17
- package/comment/index.js +23 -22
- package/components/common/development/index.js +32 -0
- package/components/common/empty/index.js +17 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +61 -0
- package/{chunk/DxVvggX2.js → components/common/hooks/useComputedState.js} +2 -2
- package/components/common/hooks/useCreate.js +8 -0
- package/components/common/hooks/useForceUpdate.js +8 -0
- package/{chunk/B4YRLi8r.js → components/common/hooks/useId.js} +5 -5
- package/components/common/hooks/useInView.js +31 -0
- package/{chunk/B4WG1mhs.js → components/common/hooks/useIntersectionObserver.js} +9 -9
- package/components/common/hooks/useInterval.js +18 -0
- package/{chunk/oopARUrq.js → components/common/hooks/useIsFirstRender.js} +1 -1
- package/components/common/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/components/common/hooks/useKeyboardEvent.js +17 -0
- package/{chunk/BL9DMeor.js → components/common/hooks/useListenResize.js} +1 -1
- package/{chunk/BXAeh0_V.js → components/common/hooks/useMedia.js} +1 -1
- package/{chunk/BFTV6myl.js → components/common/hooks/useMergeProps.js} +3 -3
- package/{chunk/D5wldVRB.js → components/common/hooks/useMergeValue.js} +8 -8
- package/{chunk/zmmqLCF4.js → components/common/hooks/useOnlineStatus.js} +1 -1
- package/{chunk/DU1RCDfh.js → components/common/hooks/useOverflowHidden.js} +1 -1
- package/components/common/hooks/useOverrideRef.js +14 -0
- package/{chunk/BsY85n3_.js → components/common/hooks/usePersistCallback.js} +2 -2
- package/{chunk/rT6qmv-Y.js → components/common/hooks/usePrefersColorSchemeDark.js} +5 -5
- package/components/common/hooks/usePrevious.js +10 -0
- package/components/common/hooks/useRefs.js +10 -0
- package/{chunk/CmZzBtA4.js → components/common/hooks/useResizeObserver.js} +4 -4
- package/{chunk/hEWZQ8Zi.js → components/common/hooks/useStateCallback.js} +5 -5
- package/{chunk/Duezix3m.js → components/common/hooks/useStateWithPromise.js} +6 -6
- package/components/common/hooks/useUpdateEffect.js +12 -0
- package/components/common/hooks/useWatch.js +11 -0
- package/{chunk/CB4jGw4K.js → components/common/hooks/useWindowSize.js} +6 -6
- package/components/common/icons/file/index.js +56 -0
- package/components/common/space/index.js +110 -0
- package/components/common/utils/PqbCSSTransition.js +32 -0
- package/{chunk/B6r8jPCd.js → components/common/utils/constant.js} +2 -2
- package/components/common/utils/copy.js +7 -0
- package/components/common/utils/dayjs.js +193 -0
- package/components/common/utils/dom.js +51 -0
- package/components/common/utils/fillNBSP.js +7 -0
- package/{chunk/B7M-FGia.js → components/common/utils/getHighlightText.js} +11 -10
- package/{chunk/Dh7Osrvr.js → components/common/utils/getHotkeyHandler.js} +6 -5
- package/{chunk/DKHXj8Kf.js → components/common/utils/getStringLength.js} +3 -2
- package/components/common/utils/include.js +10 -0
- package/components/common/utils/is.js +126 -0
- package/{chunk/DH7HTOV_.js → components/common/utils/mergeProps.js} +3 -2
- package/components/common/utils/mergedToString.js +16 -0
- package/components/common/utils/omit.js +12 -0
- package/components/common/utils/pad.js +18 -0
- package/components/common/utils/pick.js +18 -0
- package/components/common/utils/react19Adapter.js +3 -0
- package/{chunk/BZ3igxQN.js → components/common/utils/reactDOM.js} +13 -13
- package/components/common/utils/resizeObserverEffect.js +23 -0
- package/components/common/utils/scrollIntoView.js +25 -0
- package/components/common/utils/setDarkTheme.js +27 -0
- package/components/common/utils/setPrimaryColor.js +30 -0
- package/{chunk/DzekwbB4.js → components/common/utils/setTheme.js} +16 -14
- package/components/common/utils/style.js +39 -0
- package/components/common/utils/throttleByRaf.js +16 -0
- package/components/common/utils/warning.js +11 -0
- package/config-provider/ConfigProvider.js +56 -13
- package/config-provider/context.js +24 -7
- package/config-provider/index.js +6 -5
- package/copy/index.js +15 -14
- package/date-picker/Picker.js +178 -172
- package/date-picker/RangePicker.js +585 -22
- package/date-picker/hook/useCellClassName.js +60 -0
- package/date-picker/index.js +29 -24
- package/date-picker/panel/Body.js +88 -0
- package/date-picker/panel/Footer.js +71 -0
- package/date-picker/panel/Header.js +69 -0
- package/date-picker/panel/Shortcut.js +45 -0
- package/date-picker/panel/WeekList.js +19 -0
- package/date-picker/panel/date/index.js +193 -0
- package/date-picker/panel/month/index.js +112 -0
- package/date-picker/panel/quarter/index.js +97 -0
- package/date-picker/panel/range/index.js +250 -0
- package/date-picker/panel/week/index.js +35 -0
- package/date-picker/panel/year/index.js +73 -0
- package/date-picker/util.js +8 -8
- package/descriptions/index.js +24 -23
- package/details/index.js +82 -0
- package/details/interface.js +1 -0
- package/development/index.js +17 -36
- package/dist/compute-scroll-into-view/src/index.js +126 -0
- package/dist/dom-helpers/addClass.js +10 -0
- package/dist/dom-helpers/hasClass.js +8 -0
- package/dist/dom-helpers/removeClass.js +18 -0
- package/dist/react-transition-group/chunk/CPfP7aNL.js +381 -0
- package/dist/react-transition-group/chunk/F6QOOr2H.js +500 -0
- package/dist/react-transition-group/src/CSSTransition.js +202 -0
- package/dist/react-transition-group/src/ReplaceTransition.js +43 -0
- package/dist/react-transition-group/src/SwitchTransition.js +117 -0
- package/dist/react-transition-group/src/TransitionGroup.js +160 -0
- package/dist/react-transition-group/src/TransitionGroupContext.js +5 -0
- package/dist/react-transition-group/src/config.js +6 -0
- package/{chunk/Coz3rCng.js → dist/scroll-into-view-if-needed/src/index.js} +5 -5
- package/dist/tinycolor/chunk/DGZSWe7E.js +182 -0
- package/dist/tinycolor/customize/index.js +12 -0
- package/dist/tinycolor/src/conversion.js +143 -0
- package/dist/tinycolor/src/css-color-names.js +153 -0
- package/dist/tinycolor/src/format-input.js +77 -0
- package/dist/tinycolor/src/index.js +388 -0
- package/dist/tinycolor/src/util.js +32 -0
- package/dist/tween/src/easing.js +43 -0
- package/dist/tween/src/tween.js +70 -0
- package/dist/validate/chunk/BXTR2LmP.js +49 -0
- package/{chunk/DEuVgCzp.js → dist/validate/src/index.js} +91 -151
- package/dist/validate/src/util.js +22 -0
- package/divider/index.js +15 -14
- package/draggable/index.js +17 -16
- package/drawer/Drawer.js +41 -39
- package/dropdown/Button.js +88 -9
- package/dropdown/index.js +85 -163
- package/empty/index.js +21 -5
- package/form/Control.js +1 -1
- package/form/Form.js +159 -14
- package/form/FormItem.js +30 -29
- package/form/FormList.js +1 -1
- package/form/context.js +1 -1
- package/form/hook/useContext.js +32 -0
- package/form/hook/useForm.js +58 -0
- package/form/hook/useState.js +31 -0
- package/form/hook/useWatch.js +36 -0
- package/form/index.js +29 -106
- package/form/promisify.js +1 -1
- package/form/store.js +1 -1
- package/form/util.js +5 -5
- package/grid/Col.js +14 -13
- package/grid/{grid.js → Grid.js} +23 -22
- package/grid/{grid-item.js → GridItem.js} +23 -22
- package/grid/Row.js +19 -18
- package/{chunk/xAb6ZgqS.js → grid/hook/useResponsiveState.js} +2 -2
- package/grid/index.js +13 -12
- package/hooks/index.js +38 -38
- package/hooks/use-watermark/utils.js +9 -0
- package/hooks/useComputedState.js +2 -2
- package/hooks/useCreate.js +2 -2
- package/hooks/useForceUpdate.js +2 -2
- package/hooks/useId.js +2 -2
- package/hooks/useInView.js +2 -2
- package/hooks/useIntersectionObserver.js +2 -2
- package/hooks/useInterval.js +2 -2
- package/hooks/useIsFirstRender.js +2 -2
- package/hooks/useIsomorphicLayoutEffect.js +2 -2
- package/hooks/useKeyboardEvent.js +2 -2
- package/hooks/useListenResize.js +2 -2
- package/hooks/useMedia.js +2 -2
- package/hooks/useMergeProps.js +2 -2
- package/hooks/useMergeValue.js +2 -2
- package/hooks/useOnlineStatus.js +2 -2
- package/hooks/useOverflowHidden.js +2 -2
- package/hooks/useOverrideRef.js +2 -2
- package/hooks/usePersistCallback.js +2 -2
- package/hooks/usePrefersColorSchemeDark.js +2 -2
- package/hooks/usePrevious.js +2 -2
- package/hooks/useRefs.js +2 -2
- package/hooks/useResizeObserver.js +2 -2
- package/hooks/useStateCallback.js +2 -2
- package/hooks/useStateWithPromise.js +2 -2
- package/hooks/useUpdateEffect.js +2 -2
- package/hooks/useVerificationCode.js +21 -21
- package/hooks/useWatch.js +2 -2
- package/hooks/useWatermark.js +72 -77
- package/hooks/useWindowSize.js +2 -2
- package/icon/addFromIconFontCn.js +31 -5
- package/icon/index.js +22 -48
- package/icon-hover/index.js +37 -5
- package/icons/file.js +15 -63
- package/image/Image.js +37 -33
- package/image/ImageFooter.js +44 -6
- package/image/ImagePreview.js +480 -34
- package/image/ImagePreviewArrow.js +8 -7
- package/image/ImagePreviewGroup.js +9 -9
- package/image/index.js +3 -3
- package/image/util/getFixTranslate.js +7 -0
- package/image/util/getScale.js +74 -0
- package/image/util/hook/useImageStatus.js +16 -0
- package/image/util/hook/useShowFooter.js +7 -0
- package/index.js +670 -574
- package/input/Button.js +67 -9
- package/input/Group.js +9 -8
- package/input/Input.js +158 -684
- package/input/InputElement.js +33 -33
- package/input/Number.js +2 -2
- package/input/Password.js +69 -11
- package/input/Search.js +68 -11
- package/input/Textarea.js +166 -14
- package/input/index.js +17 -13
- package/input-number/index.js +209 -16
- package/input-number/useSelectionRange.js +3 -3
- package/input-tag/InputTag.js +78 -72
- package/layout/Content.js +7 -6
- package/layout/Footer.js +7 -6
- package/layout/Header.js +5 -4
- package/layout/Sider.js +19 -18
- package/layout/index.js +21 -20
- package/link/index.js +15 -14
- package/list/Item.js +12 -11
- package/list/Meta.js +7 -6
- package/list/index.js +268 -17
- package/loading/index.js +13 -13
- package/loading/style/index.module.less.js +4 -0
- package/locale/en-US.js +4 -3
- package/locale/tr-TR.js +4 -3
- package/mentions/index.js +145 -11
- package/menu/Item.js +3 -3
- package/menu/Menu.js +182 -24
- package/menu/OverflowWrap.js +88 -8
- package/menu/index.js +9 -9
- package/menu/sub-menu/Inline.js +111 -0
- package/menu/sub-menu/Pop.js +120 -0
- package/menu/sub-menu/index.js +17 -0
- package/message/index.js +147 -13
- package/message/useMessage.js +57 -5
- package/modal/Confirm.js +110 -11
- package/modal/Modal.js +440 -20
- package/modal/index.js +1 -1
- package/modal/use-modal/Hook.js +52 -0
- package/modal/use-modal/index.js +68 -0
- package/notice/index.js +176 -17
- package/notification/index.js +149 -15
- package/notification/useNotification.js +52 -4
- package/overflow-ellipsis/OverflowItem.js +17 -16
- package/overflow-ellipsis/index.js +30 -29
- package/package.json +1 -1
- package/page-header/index.js +30 -28
- package/pagination/PageItem.js +16 -15
- package/pagination/PageJumper.js +13 -12
- package/pagination/PageOption.js +45 -5
- package/pagination/Pagination.js +244 -11
- package/pagination/index.js +2 -2
- package/picker/Input.js +47 -45
- package/picker/InputRange.js +53 -51
- package/popconfirm/index.js +10 -9
- package/popover/index.js +12 -11
- package/portal/Portal.js +7 -7
- package/progress/CircleProgress.js +1 -1
- package/progress/index.js +32 -31
- package/radio/Group.js +94 -14
- package/radio/GroupBlock.js +68 -7
- package/radio/Radio.js +92 -14
- package/radio/index.js +6 -5
- package/rate/index.js +31 -30
- package/resize-box/ResizeTrigger.js +10 -9
- package/resize-box/Split.js +66 -65
- package/resize-box/SplitGroup.js +10 -9
- package/resize-box/index.js +18 -17
- package/result/index.js +33 -32
- package/select/OptGroup.js +10 -10
- package/select/Option.js +93 -6
- package/select/Select.js +548 -24
- package/select/index.js +3 -3
- package/select/util.js +139 -18
- package/select-view/Core.js +23 -21
- package/select-view/index.js +7 -7
- package/skeleton/index.js +12 -11
- package/slider/Button.js +24 -23
- package/slider/Input.js +11 -11
- package/slider/hook/useInterval.js +73 -0
- package/slider/hook/useLegalValue.js +70 -0
- package/slider/index.js +220 -345
- package/space/index.js +39 -126
- package/space-/index.js +17 -16
- package/speech-synthesis/index.js +9 -63
- package/speech-synthesis/style/index.less.js +1 -0
- package/spin/DotLoading.js +10 -9
- package/spin/index.js +21 -20
- package/statistic/Countdown.js +16 -15
- package/statistic/index.js +45 -43
- package/statistic/util.js +1 -1
- package/steps/index.js +54 -52
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +6 -5
- package/suspense-fallback-test/style/index.less.js +1 -0
- package/switch/index.js +43 -38
- package/table/Table.js +627 -21
- package/table/hook/useColumns.js +141 -0
- package/table/hook/useComponent.js +28 -0
- package/table/hook/useExpand.js +36 -0
- package/table/hook/useRowSelection.js +94 -0
- package/table/hook/useSorter.js +54 -0
- package/table/hook/useStickyClassNames.js +30 -0
- package/table/hook/useStickyOffsets.js +28 -0
- package/table/hook/useThResizable.js +39 -0
- package/table/index.js +28 -15
- package/table/summary/Cell.js +10 -0
- package/table/summary/Row.js +25 -0
- package/table/summary/context.js +5 -0
- package/table/summary/index.js +12 -0
- package/table/tbody/Td.js +180 -0
- package/table/tbody/Tr.js +165 -0
- package/table/tbody/index.js +154 -0
- package/table/tfoot/index.js +16 -0
- package/table/th-resizable/index.js +46 -0
- package/table/thead/Column.js +251 -0
- package/table/thead/index.js +129 -0
- package/tabs/Tab.js +169 -16
- package/tabs/TabContent.js +51 -6
- package/tabs/TabPane.js +13 -12
- package/tabs/hook/useDomSize.js +17 -0
- package/tabs/hook/useHeaderScroll.js +67 -0
- package/tabs/index.js +6 -6
- package/tabs/tab-header/DropdownIcon.js +66 -0
- package/tabs/tab-header/TabInk.js +66 -0
- package/tabs/tab-header/TabNavIcon.js +66 -0
- package/tabs/tab-header/TabTitle.js +78 -0
- package/tabs/tab-header/index.js +331 -0
- package/tag/index.js +32 -30
- package/time-picker/Picker.js +64 -63
- package/time-picker/RangePicker.js +15 -15
- package/time-picker/TimeColumn.js +1 -1
- package/time-picker/TimePicker.js +42 -41
- package/time-picker/index.js +2 -2
- package/time-picker/util.js +23 -22
- package/timeline/Item.js +4 -3
- package/timeline/Timeline.js +12 -11
- package/tooltip/index.js +35 -33
- package/transfer/Item.js +104 -9
- package/transfer/List.js +186 -13
- package/transfer/index.js +181 -13
- package/tree/Animation.js +100 -9
- package/tree/Node.js +212 -13
- package/tree/NodeList.js +80 -6
- package/tree/Tree.js +591 -17
- package/tree/index.js +3 -2
- package/tree-select/List.js +122 -6
- package/tree-select/Select.js +258 -22
- package/tree-select/hook/useKeyCache.js +55 -0
- package/tree-select/hook/useStateValue.js +95 -0
- package/tree-select/hook/useTreeData.js +13 -0
- package/tree-select/index.js +3 -3
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +27 -22
- package/types/common/space/interface.d.ts +4 -0
- package/types/common/utils/dayjs.d.ts +2 -2
- package/types/common/utils/is.d.ts +2 -1
- package/types/pc/anchor/Anchor.d.ts +1 -0
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/auto-complete/index.d.ts +6 -0
- package/types/pc/avatar/index.d.ts +1 -0
- package/types/pc/badge/index.d.ts +5 -3
- package/types/pc/breadcrumb/index.d.ts +1 -0
- package/types/pc/calendar/index.d.ts +3 -0
- package/types/pc/card/index.d.ts +1 -0
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -0
- package/types/pc/collapse/index.d.ts +2 -1
- package/types/pc/color-picker/index.d.ts +7 -0
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/date-picker/interface.d.ts +2 -2
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/details/index.d.ts +4 -0
- package/types/pc/details/interface.d.ts +33 -0
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -4
- package/types/pc/index.d.ts +16 -14
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/select/interface.d.ts +3 -3
- package/types/pc/space/index.d.ts +2 -2
- package/types/pc/steps/index.d.ts +1 -0
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/interface.d.ts +2 -2
- package/types/pc/utils/constant.d.ts +2 -2
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +402 -85
- package/typography/Base.js +43 -42
- package/typography/EditContent.js +7 -7
- package/typography/Ellipsis.js +195 -24
- package/typography/Operations.js +4 -4
- package/typography/Paragraph.js +12 -11
- package/typography/Typography.js +8 -7
- package/typography/index.js +15 -10
- package/typography/useEllipsis.js +21 -21
- package/upload/TriggerNode.js +9 -8
- package/upload/Upload.js +126 -548
- package/upload/Uploader.js +11 -11
- package/upload/index.js +2 -2
- package/upload/list/PictureItem.js +119 -0
- package/upload/list/TextItem.js +123 -0
- package/upload/list/UploadProgress.js +96 -0
- package/upload/list/index.js +140 -0
- package/upload/request.js +3 -3
- package/upload/request_.js +5 -5
- package/utils/PqbCSSTransition.js +3 -3
- package/utils/color.js +1 -1
- package/utils/computeScrollIntoView.js +4 -126
- package/utils/constant.js +9 -9
- package/utils/contextHolder.js +29 -4
- package/utils/dayjs.js +11 -11
- package/utils/dom.js +7 -49
- package/utils/fillNBSP.js +3 -3
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +3 -3
- package/utils/index.js +284 -272
- package/utils/is.js +39 -39
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/names.js +298 -86
- package/utils/omit.js +1 -1
- package/utils/pad.js +3 -16
- package/utils/pick.js +5 -5
- package/utils/react19Adapter.js +1 -3
- package/utils/reactDOM.js +3 -3
- package/utils/reactTransitionGroup.js +12 -8
- package/utils/resizeObserverEffect.js +1 -1
- package/utils/scrollIntoView.js +1 -1
- package/utils/setDarkTheme.js +10 -30
- package/utils/setPrimaryColor.js +6 -29
- package/utils/setTheme.js +3 -3
- package/utils/style.js +4 -37
- package/utils/throttleByRaf.js +3 -14
- package/utils/throttleByRaf2.js +1 -1
- package/utils/tinycolor.js +26 -27
- package/utils/tween.js +4 -3
- package/utils/validate.js +5 -4
- package/utils/warning.js +3 -9
- package/verification-code/VerificationCode.js +25 -24
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +280 -392
- package/virtual-list/util/algorithm.js +32 -0
- package/virtual-list/util/item.js +99 -0
- package/watermark/Watermark.js +17 -16
- package/chunk/5_U1CBIu.js +0 -8
- package/chunk/9TSjT7x_.js +0 -927
- package/chunk/B2yFlXke.js +0 -6
- package/chunk/B44Hj5ad.js +0 -697
- package/chunk/B5RFT17G.js +0 -15
- package/chunk/BC2OXILt.js +0 -178
- package/chunk/BJ9_azwQ.js +0 -1391
- package/chunk/BKKEev13.js +0 -11
- package/chunk/BKT9BFf4.js +0 -11
- package/chunk/BL8tIaO8.js +0 -649
- package/chunk/BNevupAU.js +0 -72
- package/chunk/BP4igg_F.js +0 -213
- package/chunk/BYdIoY50.js +0 -17
- package/chunk/Bg3uJGPu.js +0 -10
- package/chunk/BsUZRQDT.js +0 -23
- package/chunk/C4OrxKE6.js +0 -18
- package/chunk/C7bohPVD.js +0 -185
- package/chunk/CC---6jO.js +0 -110
- package/chunk/CCKr5jj1.js +0 -31
- package/chunk/CIRG541s.js +0 -22
- package/chunk/CPCJg6bv.js +0 -570
- package/chunk/CQ_WOOmf.js +0 -8
- package/chunk/CYhxqVkn.js +0 -9
- package/chunk/CftuXmo_.js +0 -6
- package/chunk/CgyNQvYg.js +0 -7828
- package/chunk/CkEaf5V0.js +0 -473
- package/chunk/ClM74To2.js +0 -58
- package/chunk/ClqoGc3r.js +0 -17
- package/chunk/D-ap9qEk.js +0 -14
- package/chunk/DWvmq7az.js +0 -843
- package/chunk/DYmI9fFY.js +0 -257
- package/chunk/Doi4-DdV.js +0 -1472
- package/chunk/DxYoPlum.js +0 -50
- package/chunk/NPajzdOv.js +0 -27
- package/chunk/VSe_Wq1g.js +0 -10
- package/chunk/a3hR6zLw.js +0 -12
- package/types/common/assets/hourglass.d.ts +0 -2
- /package/types/pc/grid/{grid.d.ts → Grid.d.ts} +0 -0
- /package/types/pc/grid/{grid-item.d.ts → GridItem.d.ts} +0 -0
package/date-picker/Picker.js
CHANGED
|
@@ -4,44 +4,50 @@ import Dt from "@unicom-cloud/icons/IconUiCalendarClock";
|
|
|
4
4
|
import { isDayjs as Le } from "dayjs";
|
|
5
5
|
import ze from "lodash/isArray";
|
|
6
6
|
import kt from "lodash/isPlainObject";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
7
|
+
import Ct from "lodash/isUndefined";
|
|
8
|
+
import Nt, { forwardRef as jt, useContext as Ht, useRef as ue, useImperativeHandle as Mt, useState as m, useEffect as Tt } from "react";
|
|
9
|
+
import "../config-provider/ConfigProvider.js";
|
|
10
|
+
import It from "../components/common/hooks/useMergeProps.js";
|
|
11
|
+
import $e from "../components/common/hooks/usePrevious.js";
|
|
12
|
+
import Lt from "../components/common/hooks/useUpdateEffect.js";
|
|
13
|
+
import zt from "../picker/Input.js";
|
|
14
14
|
import $t from "../trigger/index.js";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
15
|
+
import Ft from "@unicom-cloud/utils/class-name";
|
|
16
|
+
import { getDayjsValue as d, getNow as T, toLocal as I, toTimezone as Ut, getValueWithTime as le, dayjs as Fe, isDayjsChange as Wt, methods as Ue } from "../components/common/utils/dayjs.js";
|
|
17
|
+
import { omit as Bt } from "../components/common/utils/omit.js";
|
|
18
|
+
import { pickDataAttributes as Ot } from "../components/common/utils/pick.js";
|
|
19
|
+
import qt from "./context.js";
|
|
20
|
+
import Qt from "./panel/Footer.js";
|
|
21
|
+
import Rt from "./panel/Shortcut.js";
|
|
22
|
+
import { getDefaultWeekStart as Et, getLocaleDayjsValue as x } from "./util.js";
|
|
23
|
+
import Gt from "../config-provider/context.js";
|
|
24
|
+
function Jt(L) {
|
|
25
|
+
var b;
|
|
26
|
+
const { format: z, picker: y, showTime: o } = L;
|
|
27
|
+
let l;
|
|
28
|
+
if (z)
|
|
29
|
+
l = z;
|
|
30
|
+
else
|
|
31
|
+
switch (L.mode || ((b = y == null ? void 0 : y.props) == null ? void 0 : b.pickerType)) {
|
|
32
|
+
case "date":
|
|
33
|
+
l = o ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
34
|
+
break;
|
|
35
|
+
case "month":
|
|
36
|
+
l = "YYYY-MM";
|
|
37
|
+
break;
|
|
38
|
+
case "year":
|
|
39
|
+
l = "YYYY";
|
|
40
|
+
break;
|
|
41
|
+
case "week":
|
|
42
|
+
l = "gggg-wo";
|
|
43
|
+
break;
|
|
44
|
+
case "quarter":
|
|
45
|
+
l = "YYYY-[Q]Q";
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
l = "YYYY-MM-DD";
|
|
49
|
+
}
|
|
50
|
+
return l;
|
|
45
51
|
}
|
|
46
52
|
const We = {
|
|
47
53
|
allowClear: !0,
|
|
@@ -49,23 +55,23 @@ const We = {
|
|
|
49
55
|
position: "bl",
|
|
50
56
|
editable: !0,
|
|
51
57
|
showNowBtn: !0
|
|
52
|
-
}, Xt = { bottom: 4 }, Zt = (
|
|
53
|
-
var
|
|
58
|
+
}, Xt = { bottom: 4 }, Zt = (L, z) => {
|
|
59
|
+
var Ce, Ne, je;
|
|
54
60
|
const {
|
|
55
|
-
getPrefixCls:
|
|
61
|
+
getPrefixCls: y,
|
|
56
62
|
locale: o,
|
|
57
|
-
size:
|
|
58
|
-
componentConfig:
|
|
59
|
-
rtl:
|
|
60
|
-
} = Ht(
|
|
61
|
-
|
|
62
|
-
const r =
|
|
63
|
-
|
|
63
|
+
size: l,
|
|
64
|
+
componentConfig: b,
|
|
65
|
+
rtl: q
|
|
66
|
+
} = Ht(Gt);
|
|
67
|
+
q && (We.position = "br");
|
|
68
|
+
const r = It(
|
|
69
|
+
L,
|
|
64
70
|
We,
|
|
65
|
-
|
|
71
|
+
b == null ? void 0 : b.DatePicker
|
|
66
72
|
), {
|
|
67
73
|
allowClear: Be,
|
|
68
|
-
className:
|
|
74
|
+
className: ce,
|
|
69
75
|
style: fe,
|
|
70
76
|
placeholder: Oe,
|
|
71
77
|
getPopupContainer: qe,
|
|
@@ -77,148 +83,148 @@ const We = {
|
|
|
77
83
|
editable: Je,
|
|
78
84
|
triggerProps: Xe,
|
|
79
85
|
picker: me,
|
|
80
|
-
shortcuts:
|
|
86
|
+
shortcuts: $,
|
|
81
87
|
onSelect: f,
|
|
82
|
-
onVisibleChange:
|
|
88
|
+
onVisibleChange: Q,
|
|
83
89
|
value: Ze,
|
|
84
|
-
onChange:
|
|
85
|
-
icons:
|
|
90
|
+
onChange: R,
|
|
91
|
+
icons: F,
|
|
86
92
|
disabledDate: de,
|
|
87
|
-
showTime:
|
|
93
|
+
showTime: c,
|
|
88
94
|
showNowBtn: he,
|
|
89
|
-
onSelectShortcut:
|
|
95
|
+
onSelectShortcut: E,
|
|
90
96
|
extra: ve,
|
|
91
|
-
shortcutsPlacementLeft:
|
|
92
|
-
onOk:
|
|
97
|
+
shortcutsPlacementLeft: D,
|
|
98
|
+
onOk: G,
|
|
93
99
|
defaultPickerValue: _e,
|
|
94
100
|
pickerValue: Ae,
|
|
95
|
-
onPickerValueChange:
|
|
101
|
+
onPickerValueChange: J,
|
|
96
102
|
triggerElement: ge,
|
|
97
103
|
utcOffset: a,
|
|
98
|
-
timezone:
|
|
104
|
+
timezone: i,
|
|
99
105
|
panelRender: Ve,
|
|
100
106
|
inputProps: Ke
|
|
101
|
-
} = r,
|
|
107
|
+
} = r, w = y == null ? void 0 : y("picker"), P = o == null ? void 0 : o.DatePicker, et = Ct(r.dayStartOfWeek) ? Et(o == null ? void 0 : o.dayjsLocale) : r.dayStartOfWeek, k = r.mode || me.props.pickerType, X = ue(null), Z = ue(null), _ = ue(null);
|
|
102
108
|
Mt(
|
|
103
|
-
|
|
109
|
+
z,
|
|
104
110
|
() => ({
|
|
105
111
|
focus() {
|
|
106
|
-
|
|
112
|
+
re();
|
|
107
113
|
},
|
|
108
114
|
blur() {
|
|
109
|
-
|
|
115
|
+
ae();
|
|
110
116
|
}
|
|
111
117
|
}),
|
|
112
118
|
[]
|
|
113
119
|
);
|
|
114
|
-
const
|
|
115
|
-
let n =
|
|
116
|
-
typeof n == "function" && (n =
|
|
120
|
+
const C = ((Ne = (Ce = P == null ? void 0 : P.Calendar) == null ? void 0 : Ce[k]) == null ? void 0 : Ne.format) || Jt(r);
|
|
121
|
+
let n = C;
|
|
122
|
+
typeof n == "function" && (n = c ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD");
|
|
117
123
|
function tt() {
|
|
118
124
|
let e;
|
|
119
|
-
return r.value ? e = d(r.value, n, a,
|
|
125
|
+
return r.value ? e = d(r.value, n, a, i) : e = d(r.defaultValue, n, a, i), e;
|
|
120
126
|
}
|
|
121
|
-
const [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
) ||
|
|
125
|
-
function
|
|
127
|
+
const [A, N] = m(tt()), [ot, nt] = m(r.popupVisible), [K, ye] = m(!1), [we, U] = m(), h = "popupVisible" in r ? r.popupVisible : ot, j = "value" in r ? d(Ze, n, a, i) : A, Pe = j || d(_e, n) || T(), [rt, W] = m(), [ee, H] = m(), [at, te] = m(), [it, S] = m(Pe), oe = d(Ae, n) || it, v = at || ee || j, [B, Se] = m(k), st = kt(c) && d(
|
|
128
|
+
c.defaultValue,
|
|
129
|
+
c.format || "HH:mm:ss"
|
|
130
|
+
) || T(a, i), ne = v || st;
|
|
131
|
+
function re() {
|
|
126
132
|
var e, t;
|
|
127
|
-
(t = (e =
|
|
133
|
+
(t = (e = X.current) == null ? void 0 : e.focus) == null || t.call(e);
|
|
128
134
|
}
|
|
129
|
-
function
|
|
135
|
+
function ae() {
|
|
130
136
|
var e, t;
|
|
131
|
-
(t = (e =
|
|
137
|
+
(t = (e = X.current) == null ? void 0 : e.blur) == null || t.call(e);
|
|
132
138
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
const e =
|
|
137
|
-
|
|
139
|
+
const ie = $e(a), se = $e(i);
|
|
140
|
+
Lt(() => {
|
|
141
|
+
if (A && (ie !== a || i !== se)) {
|
|
142
|
+
const e = I(A, ie, se);
|
|
143
|
+
N(Ut(e, a, i));
|
|
138
144
|
}
|
|
139
|
-
}, [a,
|
|
140
|
-
W(void 0), U(void 0), h ? (
|
|
141
|
-
ye(!1), Se(
|
|
145
|
+
}, [a, ie, i, se]), Tt(() => {
|
|
146
|
+
W(void 0), U(void 0), h ? (S(Pe), D && _.current && Z.current && (_.current.style.maxHeight = `${Z.current.clientHeight}px`)) : (H(void 0), te(void 0), setTimeout(() => {
|
|
147
|
+
ye(!1), Se(k), ae();
|
|
142
148
|
}, 100));
|
|
143
149
|
}, [h]);
|
|
144
150
|
function ut(e) {
|
|
145
|
-
e ?
|
|
146
|
-
|
|
147
|
-
}) :
|
|
151
|
+
e ? Y(e, () => {
|
|
152
|
+
re();
|
|
153
|
+
}) : Y(!1);
|
|
148
154
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
155
|
+
function M(e) {
|
|
156
|
+
J == null || J(e.format(n), e);
|
|
151
157
|
}
|
|
152
|
-
function
|
|
153
|
-
nt(e),
|
|
158
|
+
function Y(e, t) {
|
|
159
|
+
nt(e), Q == null || Q(e), t == null || t();
|
|
154
160
|
}
|
|
155
|
-
function
|
|
161
|
+
function lt(e) {
|
|
156
162
|
var t;
|
|
157
|
-
e.stopPropagation(),
|
|
163
|
+
e.stopPropagation(), N(void 0), H(void 0), O(void 0), (t = r.onClear) == null || t.call(r);
|
|
158
164
|
}
|
|
159
|
-
function
|
|
160
|
-
const e =
|
|
161
|
-
Ye(),
|
|
165
|
+
function ct() {
|
|
166
|
+
const e = x(v, o == null ? void 0 : o.dayjsLocale);
|
|
167
|
+
Ye(), G == null || G(e && e.format(n), e);
|
|
162
168
|
}
|
|
163
169
|
function Ye() {
|
|
164
|
-
|
|
170
|
+
N(v), O(v), Y(!1);
|
|
165
171
|
}
|
|
166
172
|
function be(e, t, u) {
|
|
167
|
-
if (W(void 0), U(void 0),
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
const V =
|
|
171
|
-
|
|
173
|
+
if (W(void 0), U(void 0), c) {
|
|
174
|
+
const s = u ? t : le(t, ne);
|
|
175
|
+
H(s), S(s);
|
|
176
|
+
const V = x(
|
|
177
|
+
I(s, a, i),
|
|
172
178
|
o == null ? void 0 : o.dayjsLocale
|
|
173
179
|
);
|
|
174
180
|
f == null || f(V.format(n), V);
|
|
175
181
|
} else {
|
|
176
|
-
const
|
|
177
|
-
|
|
182
|
+
const s = x(
|
|
183
|
+
I(t, a, i).locale(o == null ? void 0 : o.dayjsLocale),
|
|
178
184
|
o == null ? void 0 : o.dayjsLocale
|
|
179
185
|
);
|
|
180
|
-
f == null || f(
|
|
186
|
+
f == null || f(s ? s.format(n) : void 0, s), N(t), O(t), Y(!1);
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
189
|
function O(e) {
|
|
184
|
-
if (
|
|
185
|
-
const t =
|
|
186
|
-
|
|
190
|
+
if (Wt(e, j)) {
|
|
191
|
+
const t = x(
|
|
192
|
+
I(e, a, i),
|
|
187
193
|
o == null ? void 0 : o.dayjsLocale
|
|
188
194
|
);
|
|
189
|
-
|
|
195
|
+
R == null || R(
|
|
190
196
|
t ? t.format(n) : void 0,
|
|
191
197
|
t
|
|
192
198
|
);
|
|
193
199
|
}
|
|
194
200
|
}
|
|
195
201
|
function ft(e, t) {
|
|
196
|
-
const u = v ||
|
|
197
|
-
|
|
198
|
-
const V =
|
|
199
|
-
|
|
202
|
+
const u = v || T(a, i), s = le(u, t);
|
|
203
|
+
H(s);
|
|
204
|
+
const V = x(
|
|
205
|
+
I(s, a, i),
|
|
200
206
|
o == null ? void 0 : o.dayjsLocale
|
|
201
207
|
);
|
|
202
208
|
f == null || f(V.format(n), V);
|
|
203
209
|
}
|
|
204
210
|
function pt(e) {
|
|
205
|
-
return typeof e == "string" &&
|
|
211
|
+
return typeof e == "string" && Fe(e, n).format(n) === e && (typeof de == "function" ? !de(Fe(e, n)) : !0);
|
|
206
212
|
}
|
|
207
213
|
function mt(e) {
|
|
208
214
|
const t = e.target.value;
|
|
209
|
-
if (W(t), h ||
|
|
215
|
+
if (W(t), h || Y(!0), pt(t)) {
|
|
210
216
|
const u = d(t, n);
|
|
211
|
-
|
|
217
|
+
H(u), S(u), W(void 0);
|
|
212
218
|
}
|
|
213
219
|
}
|
|
214
220
|
function dt() {
|
|
215
|
-
v ? (Ye(),
|
|
221
|
+
v ? (Ye(), ae()) : h && Y(!1);
|
|
216
222
|
}
|
|
217
223
|
function g(e, t, u = 1) {
|
|
218
|
-
let
|
|
219
|
-
e === "prev" && (
|
|
224
|
+
let s;
|
|
225
|
+
e === "prev" && (s = Ue.subtract(oe, u, t)), e === "next" && (s = Ue.add(oe, u, t)), M(s), S(s);
|
|
220
226
|
}
|
|
221
|
-
function xe(e =
|
|
227
|
+
function xe(e = k) {
|
|
222
228
|
if (e === "date" || e === "week")
|
|
223
229
|
return {
|
|
224
230
|
onPrev: () => g("prev", "month"),
|
|
@@ -238,17 +244,17 @@ const We = {
|
|
|
238
244
|
};
|
|
239
245
|
}
|
|
240
246
|
function De() {
|
|
241
|
-
const e =
|
|
242
|
-
|
|
247
|
+
const e = x(
|
|
248
|
+
T(a, i),
|
|
243
249
|
o == null ? void 0 : o.dayjsLocale
|
|
244
250
|
);
|
|
245
|
-
|
|
251
|
+
M(e), be(e.format(n), e, !0);
|
|
246
252
|
}
|
|
247
253
|
function ht(e, t) {
|
|
248
254
|
if (!t) {
|
|
249
|
-
const u =
|
|
255
|
+
const u = c ? le(e, ne) : e;
|
|
250
256
|
U(
|
|
251
|
-
typeof
|
|
257
|
+
typeof C == "function" ? C(e) : u.locale(o == null ? void 0 : o.dayjsLocale).format(n)
|
|
252
258
|
);
|
|
253
259
|
}
|
|
254
260
|
}
|
|
@@ -261,50 +267,50 @@ const We = {
|
|
|
261
267
|
e.value(),
|
|
262
268
|
n,
|
|
263
269
|
a,
|
|
264
|
-
|
|
270
|
+
i
|
|
265
271
|
);
|
|
266
|
-
|
|
272
|
+
S(t), M(t), te(t);
|
|
267
273
|
}
|
|
268
274
|
}
|
|
269
275
|
function Vt() {
|
|
270
|
-
const e =
|
|
271
|
-
|
|
276
|
+
const e = ee || j || T(a, i);
|
|
277
|
+
te(void 0), S(e), M(e);
|
|
272
278
|
}
|
|
273
279
|
function yt(e) {
|
|
274
|
-
if (
|
|
280
|
+
if (E == null || E(e), typeof e.value == "function" && Le(e.value())) {
|
|
275
281
|
const t = d(
|
|
276
282
|
e.value(),
|
|
277
283
|
n,
|
|
278
284
|
a,
|
|
279
|
-
|
|
285
|
+
i
|
|
280
286
|
);
|
|
281
|
-
|
|
287
|
+
N(t), O(t), Y(!1);
|
|
282
288
|
}
|
|
283
289
|
}
|
|
284
290
|
function wt() {
|
|
285
|
-
ye(!
|
|
291
|
+
ye(!K);
|
|
286
292
|
}
|
|
287
293
|
function ke(e) {
|
|
288
|
-
const t =
|
|
289
|
-
`${
|
|
294
|
+
const t = Ft(
|
|
295
|
+
`${w}-container`,
|
|
290
296
|
{
|
|
291
|
-
[`${
|
|
292
|
-
[`${
|
|
293
|
-
[`${
|
|
297
|
+
[`${w}-panel-only`]: e,
|
|
298
|
+
[`${w}-container-shortcuts-placement-left`]: ze($) && D,
|
|
299
|
+
[`${w}-container-rtl`]: q
|
|
294
300
|
},
|
|
295
|
-
e ?
|
|
301
|
+
e ? ce : ""
|
|
296
302
|
), u = {
|
|
297
|
-
prefixCls:
|
|
298
|
-
showTime:
|
|
299
|
-
shortcuts:
|
|
303
|
+
prefixCls: w,
|
|
304
|
+
showTime: c,
|
|
305
|
+
shortcuts: $,
|
|
300
306
|
onSelectNow: De,
|
|
301
307
|
showNowBtn: he,
|
|
302
308
|
onMouseEnterShortcut: gt,
|
|
303
309
|
onMouseLeaveShortcut: Vt,
|
|
304
310
|
onSelectShortcut: yt
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
...
|
|
311
|
+
}, s = c && B === "date" || ve || ze($) && $.length && !D || !c && B === "date" && he, V = /* @__PURE__ */ Te(Ie, { children: [
|
|
312
|
+
Nt.cloneElement(me, {
|
|
313
|
+
...Bt(r, ["style"]),
|
|
308
314
|
...xe(),
|
|
309
315
|
getHeaderOperations: xe,
|
|
310
316
|
onSelect: be,
|
|
@@ -313,65 +319,65 @@ const We = {
|
|
|
313
319
|
popupVisible: h,
|
|
314
320
|
format: n,
|
|
315
321
|
value: v,
|
|
316
|
-
pageShowDate:
|
|
322
|
+
pageShowDate: oe,
|
|
317
323
|
localeName: o == null ? void 0 : o.dayjsLocale,
|
|
318
324
|
setPageShowDate: (Me) => {
|
|
319
|
-
|
|
325
|
+
S(Me), M(Me);
|
|
320
326
|
},
|
|
321
|
-
timeValue:
|
|
322
|
-
isTimePanel:
|
|
327
|
+
timeValue: ne,
|
|
328
|
+
isTimePanel: K,
|
|
323
329
|
panelMode: B,
|
|
324
330
|
setPanelMode: Se,
|
|
325
331
|
onMouseEnterCell: ht,
|
|
326
332
|
onMouseLeaveCell: vt
|
|
327
333
|
}),
|
|
328
|
-
!!
|
|
329
|
-
|
|
334
|
+
!!s && /* @__PURE__ */ p(
|
|
335
|
+
Qt,
|
|
330
336
|
{
|
|
331
337
|
...u,
|
|
332
|
-
DATEPICKER_LOCALE:
|
|
338
|
+
DATEPICKER_LOCALE: P,
|
|
333
339
|
disabled: !v,
|
|
334
|
-
onClickConfirmBtn:
|
|
340
|
+
onClickConfirmBtn: ct,
|
|
335
341
|
extra: ve,
|
|
336
342
|
mode: B,
|
|
337
|
-
shortcutsPlacementLeft:
|
|
343
|
+
shortcutsPlacementLeft: D,
|
|
338
344
|
onClickSelectTimeBtn: wt,
|
|
339
|
-
isTimePanel:
|
|
345
|
+
isTimePanel: K
|
|
340
346
|
}
|
|
341
347
|
)
|
|
342
|
-
] }), He =
|
|
343
|
-
/* @__PURE__ */ p(
|
|
344
|
-
/* @__PURE__ */ p("div", { ref:
|
|
348
|
+
] }), He = D ? /* @__PURE__ */ Te(Ie, { children: [
|
|
349
|
+
/* @__PURE__ */ p(Rt, { ref: _, ...u }),
|
|
350
|
+
/* @__PURE__ */ p("div", { ref: Z, className: `${w}-panel-wrapper`, children: V })
|
|
345
351
|
] }) : V, bt = typeof Ve == "function" ? Ve(He) : He;
|
|
346
352
|
return /* @__PURE__ */ p(
|
|
347
353
|
"div",
|
|
348
354
|
{
|
|
349
355
|
className: t,
|
|
350
356
|
onClick: () => {
|
|
351
|
-
|
|
357
|
+
re();
|
|
352
358
|
},
|
|
353
359
|
style: e ? fe : {},
|
|
354
360
|
children: bt
|
|
355
361
|
}
|
|
356
362
|
);
|
|
357
363
|
}
|
|
358
|
-
const Pt = r.size ||
|
|
364
|
+
const Pt = r.size || l, St = F && F.inputSuffix === null ? null : F && F.inputSuffix || (c ? /* @__PURE__ */ p(Dt, {}) : /* @__PURE__ */ p(xt, {})), Yt = {
|
|
359
365
|
style: fe,
|
|
360
|
-
className:
|
|
366
|
+
className: ce,
|
|
361
367
|
popupVisible: h,
|
|
362
|
-
format:
|
|
368
|
+
format: C,
|
|
363
369
|
disabled: pe,
|
|
364
370
|
error: Re,
|
|
365
371
|
status: Ee,
|
|
366
372
|
size: Pt,
|
|
367
373
|
onPressEnter: dt,
|
|
368
|
-
onClear:
|
|
374
|
+
onClear: lt,
|
|
369
375
|
prefix: r.prefix,
|
|
370
376
|
suffixIcon: St,
|
|
371
|
-
editable: Je && typeof
|
|
377
|
+
editable: Je && typeof C != "function",
|
|
372
378
|
allowClear: Be
|
|
373
379
|
};
|
|
374
|
-
return /* @__PURE__ */ p(
|
|
380
|
+
return /* @__PURE__ */ p(qt.Provider, { value: { utcOffset: a, timezone: i, weekStart: et }, children: ge === null ? ke(!0) : /* @__PURE__ */ p(
|
|
375
381
|
$t,
|
|
376
382
|
{
|
|
377
383
|
popup: ke,
|
|
@@ -387,16 +393,16 @@ const We = {
|
|
|
387
393
|
unmountOnExit: Ge,
|
|
388
394
|
...Xe,
|
|
389
395
|
children: ge || /* @__PURE__ */ p(
|
|
390
|
-
|
|
396
|
+
zt,
|
|
391
397
|
{
|
|
392
|
-
...
|
|
398
|
+
...Ot(r),
|
|
393
399
|
...Yt,
|
|
394
|
-
ref:
|
|
395
|
-
placeholder: Oe || ((
|
|
400
|
+
ref: X,
|
|
401
|
+
placeholder: Oe || ((je = P == null ? void 0 : P.placeholder) == null ? void 0 : je[k]),
|
|
396
402
|
popupVisible: h,
|
|
397
|
-
value:
|
|
403
|
+
value: ee || j,
|
|
398
404
|
inputValue: we || rt,
|
|
399
|
-
prefixCls:
|
|
405
|
+
prefixCls: w,
|
|
400
406
|
onChange: mt,
|
|
401
407
|
isPlaceholder: !!we,
|
|
402
408
|
inputProps: Ke
|
|
@@ -404,7 +410,7 @@ const We = {
|
|
|
404
410
|
)
|
|
405
411
|
}
|
|
406
412
|
) });
|
|
407
|
-
},
|
|
413
|
+
}, Po = jt(Zt);
|
|
408
414
|
export {
|
|
409
|
-
|
|
415
|
+
Po as default
|
|
410
416
|
};
|