@unicom-cloud/ui 0.8.108 → 0.8.110
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 +9 -10
- package/Alert.js +5 -6
- package/AutoComplete.js +9 -10
- package/BackTop.js +9 -10
- package/Badge.js +9 -10
- package/Breadcrumb.js +9 -10
- package/Button.js +8 -9
- package/Calendar.js +9 -12
- package/Card.js +8 -9
- package/Carousel.js +8 -9
- package/Cascader.js +2 -2
- package/Checkbox.js +7 -9
- package/Collapse.js +2 -3
- package/ColorPicker.js +6 -8
- package/Comment.js +5 -6
- package/ConfigProvider.js +5 -6
- package/Copy.js +13 -17
- package/Countdown.js +55 -13
- package/DatePicker.js +8 -13
- package/Descriptions.js +4 -5
- package/Details.js +57 -12
- package/Development.js +3 -5
- package/Divider.js +5 -6
- package/Draggable.js +3 -4
- package/Dropdown.js +10 -12
- package/Empty.js +3 -6
- package/Flex.js +57 -13
- package/Form.js +21 -20
- package/Icon.js +6 -7
- package/IconHover.js +2 -4
- package/Image.js +5 -5
- package/Input.js +12 -17
- package/InputNumber.js +5 -7
- package/Layout.js +11 -12
- package/Link.js +5 -6
- package/LiquidFill.js +28 -25
- package/List.js +9 -10
- package/Loading.js +56 -11
- package/Marquee.js +28 -25
- package/Mentions.js +5 -6
- package/Menu.js +6 -7
- package/Message.js +8 -15
- package/Modal.js +3 -4
- package/Notice.js +55 -12
- package/Notification.js +7 -13
- package/OverflowEllipsis.js +7 -6
- package/PageHeader.js +7 -9
- package/Popconfirm.js +5 -6
- package/Popover.js +5 -6
- package/Progress.js +5 -6
- package/QrCode.js +27 -24
- package/Radio.js +6 -8
- package/Rate.js +5 -6
- package/ResizeBox.js +11 -12
- package/Result.js +4 -5
- package/RichText.js +76 -0
- package/Segmented.js +57 -13
- package/SelectView.js +2 -2
- package/Skeleton.js +5 -6
- package/Slider.js +8 -11
- package/Space.js +57 -13
- package/SpeechSynthesis.js +2 -4
- package/Spin.js +5 -6
- package/Statistic.js +8 -10
- package/Steps.js +8 -9
- package/SuspenseFallbackTest.js +2 -2
- package/Switch.js +8 -13
- package/Table.js +15 -26
- package/Tabs.js +5 -5
- package/Tag.js +7 -9
- package/Tooltip.js +6 -7
- package/Tour.js +31 -29
- package/Transfer.js +7 -8
- package/Tree.js +1 -1
- package/TreeSelect.js +4 -3
- package/Trigger.js +12 -17
- package/Upload.js +5 -6
- package/affix/index.js +29 -30
- package/alert/index.js +33 -34
- package/anchor/Anchor.js +102 -104
- package/anchor/Link.js +15 -16
- package/anchor/util.js +6 -7
- package/app/App.js +9 -13
- package/auto-complete/index.js +84 -85
- package/avatar/Avatar.js +17 -18
- package/avatar/Group.js +9 -10
- package/back-top/index.js +27 -28
- package/badge/Count.js +11 -11
- package/badge/index.js +51 -52
- package/breadcrumb/Item.js +11 -11
- package/breadcrumb/index.js +33 -33
- package/button/Group.js +7 -8
- package/button/index.js +12 -13
- package/calendar/Lunar.js +1 -1
- package/calendar/Month.js +10 -140
- package/calendar/Year.js +22 -23
- package/calendar/index.js +283 -134
- package/card/Grid.js +7 -8
- package/card/Meta.js +12 -13
- package/card/index.js +17 -18
- package/carousel/Arrow.js +9 -10
- package/carousel/Indicator.js +23 -24
- package/carousel/index.js +31 -33
- package/cascader/Cascader.js +24 -286
- package/cascader/index.js +2 -2
- package/cascader/util.js +14 -65
- package/checkbox/Checkbox.js +17 -123
- package/checkbox/Group.js +12 -95
- package/checkbox/GroupBlock.js +7 -61
- package/checkbox/index.js +7 -8
- package/chunk/-PX9OR3r.js +154 -0
- package/{components/common/hooks/useMergeValue.js → chunk/2vdCeheu.js} +8 -8
- package/chunk/8w-ItYb1.js +9 -0
- package/chunk/B--6x-RL.js +27 -0
- package/chunk/B4h3m4Jx.js +69 -0
- package/chunk/B5RFT17G.js +15 -0
- package/{components/common/utils/getHighlightText.js → chunk/B7M-FGia.js} +10 -11
- package/chunk/B8W1N4er.js +29 -0
- package/chunk/BDMqvmVH.js +4239 -0
- package/chunk/BDgzrqDN.js +154 -0
- package/{components/common/utils/setTheme.js → chunk/BE7UY3my.js} +3 -4
- package/chunk/BG6j6Ct7.js +30 -0
- package/chunk/BGJspFG9.js +56 -0
- package/chunk/BJ9_azwQ.js +1391 -0
- package/chunk/BJeTDXdz.js +8 -0
- package/chunk/BKKEev13.js +11 -0
- package/{components/common/hooks/useListenResize.js → chunk/BL9DMeor.js} +1 -1
- package/chunk/BO_5qdS_.js +13 -0
- package/chunk/BUNoUPLs.js +231 -0
- package/chunk/B_c0gPsX.js +83 -0
- package/chunk/BcEZk8pT.js +837 -0
- package/chunk/BeHcDey_.js +164 -0
- package/chunk/BnUWOu3_.js +925 -0
- package/{components/common/hooks/useOverflowHidden.js → chunk/BqWBaRtM.js} +1 -1
- package/chunk/Bvxzb1wd.js +16 -0
- package/{components/common/utils/mutationObserver.js → chunk/C0pqKVwu.js} +6 -7
- package/chunk/C6A94b7f.js +31 -0
- package/chunk/CFyN9Eio.js +833 -0
- package/chunk/CN7NKv_2.js +11 -0
- package/chunk/COc48wzV.js +64 -0
- package/chunk/COsRZOz1.js +1813 -0
- package/{color-picker/hooks/useControlBlock.js → chunk/CQPG8hFg.js} +7 -7
- package/chunk/CRdegvoa.js +14 -0
- package/chunk/CT7ury1Z.js +13 -0
- package/chunk/CTMmW21t.js +13 -0
- package/chunk/CXrVhA6-.js +54 -0
- package/chunk/CYhxqVkn.js +9 -0
- package/chunk/Ca6eMq_Y.js +8 -0
- package/chunk/CdXR6dj7.js +4 -0
- package/chunk/CftuXmo_.js +6 -0
- package/chunk/CgN4U7Ou.js +296 -0
- package/chunk/CjNkKiBA.js +7 -0
- package/chunk/ClqoGc3r.js +17 -0
- package/chunk/CsqGBZv1.js +10 -0
- package/chunk/CylJZkp8.js +6 -0
- package/chunk/D1iEYgh3.js +27 -0
- package/chunk/DE-83rKc.js +23 -0
- package/chunk/DEpQcf8m.js +20 -0
- package/chunk/DGU7ULZK.js +86 -0
- package/{components/common/utils/mergeProps.js → chunk/DH7HTOV_.js} +2 -3
- package/{components/common/utils/getStringLength.js → chunk/DKHXj8Kf.js} +2 -3
- package/{components/common/utils/dayjs.js → chunk/DS_deHpN.js} +55 -56
- package/chunk/DSqW_efI.js +644 -0
- package/{components/common/suspense-fallback-test/index.js → chunk/DX1O8GPj.js} +1 -1
- package/chunk/Dbw0YUY1.js +607 -0
- package/chunk/DfChiMIE.js +15 -0
- package/chunk/Dh-zFF65.js +15 -0
- package/{components/common/utils/getHotkeyHandler.js → chunk/Dh7Osrvr.js} +5 -6
- package/chunk/Di5KBCVQ.js +4 -0
- package/chunk/DsaQZE4X.js +45 -0
- package/chunk/Dt2nDgq_.js +178 -0
- package/chunk/DxYoPlum.js +50 -0
- package/{components/common/hooks/useMergeProps.js → chunk/FgWHhRFz.js} +4 -6
- package/{dist/scroll-into-view-if-needed/smooth/index.js → chunk/LTS4rIKA.js} +13 -13
- package/chunk/Lyh0cz3R.js +209 -0
- package/chunk/RjJoagzL.js +24 -0
- package/chunk/Ry6vahfr.js +15 -0
- package/chunk/Y_GQsZUt.js +1470 -0
- package/chunk/cW_5U6dL.js +28 -0
- package/{components/common/utils/dom.js → chunk/d1c9z8T1.js} +14 -14
- package/{dist/validate/src/index.js → chunk/hc_ufgVf.js} +151 -91
- package/chunk/n1tirBXA.js +470 -0
- package/{components/common/hooks/useIsFirstRender.js → chunk/oopARUrq.js} +1 -1
- package/chunk/qsVvkBLU.js +261 -0
- package/{components/common/hooks/usePrefersColorSchemeDark.js → chunk/rT6qmv-Y.js} +5 -5
- package/chunk/yXI2bb8U.js +110 -0
- package/chunk/zFFM4RBT.js +2100 -0
- package/{components/common/hooks/useOnlineStatus.js → chunk/zmmqLCF4.js} +1 -1
- package/collapse/Collapse.js +234 -69
- package/collapse/Item.js +9 -179
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +18 -19
- package/color-picker/InputAlpha.js +10 -11
- package/color-picker/InputHex.js +23 -24
- package/color-picker/InputRgb.js +16 -18
- package/color-picker/Palette.js +10 -11
- package/color-picker/Panel.js +44 -46
- package/color-picker/index.js +237 -121
- package/comment/index.js +17 -18
- package/config-provider/ConfigProvider.js +12 -57
- package/config-provider/context.js +7 -24
- package/config-provider/index.js +5 -6
- package/copy/index.js +27 -31
- package/countdown/index.js +88 -46
- package/countdown/util.js +1 -1
- package/date-picker/Picker.js +86 -88
- package/date-picker/RangePicker.js +22 -580
- package/date-picker/index.js +22 -27
- package/date-picker/util.js +6 -6
- package/descriptions/index.js +24 -25
- package/details/index.js +97 -52
- package/development/index.js +55 -16
- package/divider/index.js +12 -13
- package/draggable/index.js +17 -18
- package/drawer/Drawer.js +63 -65
- package/dropdown/Button.js +9 -88
- package/dropdown/index.js +168 -90
- package/empty/index.js +5 -21
- package/flex/index.js +140 -32
- package/form/Control.js +172 -210
- package/form/Form.js +14 -155
- package/form/FormItem.js +46 -42
- package/form/FormLabel.js +33 -41
- package/form/FormList.js +3 -3
- package/form/context.js +1 -1
- package/form/index.js +110 -29
- package/form/promisify.js +4 -5
- package/form/store.js +212 -284
- package/form/util.js +19 -19
- package/grid/Grid.js +26 -27
- package/grid/Item.js +13 -14
- package/hooks/index.js +129 -56
- package/hooks/useCreation.js +4 -0
- 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/useListenWindowResize.js +4 -0
- 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/useResponsiveState.js +30 -30
- package/hooks/useStateCallback.js +2 -2
- package/hooks/useStateWithPromise.js +2 -2
- package/hooks/useUpdateEffect.js +2 -2
- package/hooks/useVerificationCode.js +2 -2
- package/hooks/useWatch.js +2 -2
- package/hooks/useWatermark.js +81 -76
- package/hooks/useWindowSize.js +2 -2
- package/icon/addFromIconFontCn.js +5 -31
- package/icon/index.js +49 -23
- package/icon-hover/index.js +5 -37
- package/icons/file.js +64 -14
- package/image/Image.js +43 -48
- package/image/ImageFooter.js +6 -44
- package/image/ImagePreview.js +80 -478
- package/image/ImagePreviewArrow.js +7 -8
- package/image/ImagePreviewGroup.js +23 -23
- package/image/index.js +3 -3
- package/index.js +727 -687
- package/input/Button.js +9 -70
- package/input/Group.js +8 -9
- package/input/Input.js +683 -157
- package/input/InputElement.js +12 -12
- package/input/Number.js +2 -2
- package/input/Password.js +11 -69
- package/input/Search.js +11 -64
- package/input/Textarea.js +14 -169
- package/input/index.js +13 -17
- package/input-number/decimal.js +17 -28
- package/input-number/index.js +16 -207
- package/input-number/useSelectionRange.js +3 -3
- package/input-tag/InputTag.js +111 -117
- package/layout/Content.js +6 -7
- package/layout/Footer.js +5 -6
- package/layout/Header.js +6 -7
- package/layout/Sider.js +13 -14
- package/layout/index.js +19 -20
- package/link/index.js +17 -18
- package/liquid-fill/index.js +49 -46
- package/list/Item.js +10 -11
- package/list/Meta.js +6 -7
- package/list/index.js +34 -35
- package/loading/index.js +76 -31
- package/locale/en-US.js +3 -4
- package/locale/tr-TR.js +3 -4
- package/marquee/index.js +31 -28
- package/marquee-/index.js +61 -59
- package/mentions/index.js +41 -42
- package/menu/Item.js +10 -10
- package/menu/Menu.js +24 -180
- package/menu/OverflowWrap.js +8 -87
- package/menu/index.js +9 -9
- package/message/index.js +13 -144
- package/message/useMessage.js +6 -56
- package/modal/Confirm.js +11 -108
- package/modal/Modal.js +21 -442
- package/modal/index.js +4 -4
- package/notice/index.js +64 -176
- package/notification/index.js +15 -144
- package/notification/useNotification.js +4 -52
- package/overflow-ellipsis/OverflowItem.js +9 -10
- package/overflow-ellipsis/index.js +36 -35
- package/package.json +1 -1
- package/page-header/index.js +123 -83
- package/pagination/PageItem.js +15 -16
- package/pagination/PageJumper.js +16 -17
- package/pagination/PageOption.js +22 -23
- package/pagination/Pagination.js +10 -11
- package/picker/Input.js +20 -22
- package/picker/InputRange.js +50 -52
- package/popconfirm/index.js +14 -15
- package/popover/index.js +10 -11
- package/portal/Portal.js +6 -6
- package/progress/CircleProgress.js +2 -2
- package/progress/LineProgess.js +1 -1
- package/progress/index.js +34 -35
- package/qr-code/index.js +33 -30
- package/radio/Group.js +14 -94
- package/radio/GroupBlock.js +8 -67
- package/radio/Radio.js +13 -89
- package/radio/index.js +5 -6
- package/rate/index.js +7 -8
- package/resize-box/ResizeTrigger.js +26 -27
- package/resize-box/Split.js +20 -21
- package/resize-box/SplitGroup.js +42 -43
- package/resize-box/index.js +23 -24
- package/result/index.js +17 -18
- package/rich-text/constant.js +5 -0
- package/rich-text/core.js +11 -0
- package/rich-text/eventemitter/index.d.ts +135 -0
- package/rich-text/index.js +182 -0
- package/rich-text/interface.js +1 -0
- package/rich-text/rich.js +1877 -0
- package/row-col/Col-.js +16 -17
- package/row-col/Col.js +98 -112
- package/row-col/Row.js +8 -9
- package/segmented/index.js +169 -125
- package/select/OptGroup.js +10 -10
- package/select/Option.js +12 -13
- package/select/Select.js +242 -236
- package/select/util.js +11 -11
- package/select-view/Core.js +65 -67
- package/select-view/index.js +7 -7
- package/skeleton/index.js +17 -18
- package/slider/Button.js +26 -27
- package/slider/Input.js +19 -19
- package/slider/index.js +345 -220
- package/space/index.js +77 -33
- package/speech-synthesis/index.js +84 -9
- package/spin/DotLoading.js +8 -9
- package/spin/index.js +29 -30
- package/splitter/Panel.js +14 -15
- package/splitter/SplitBar.js +10 -155
- package/splitter/Splitter.js +249 -102
- package/statistic/index.js +30 -32
- package/steps/index.js +18 -19
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -2
- package/switch/index.js +32 -37
- package/table/ColGroup.js +9 -9
- package/table/Table.js +21 -611
- package/table/{summary/context.js → context.js} +2 -2
- package/table/index.js +168 -27
- package/tabs/Tab.js +16 -169
- package/tabs/TabContent.js +6 -51
- package/tabs/TabPane.js +7 -8
- package/tabs/index.js +6 -6
- package/tag/index.js +21 -23
- package/time-picker/Picker.js +34 -35
- package/time-picker/RangePicker.js +14 -14
- package/time-picker/TimeColumn.js +2 -2
- package/time-picker/TimePicker.js +18 -19
- package/time-picker/util.js +7 -7
- package/timeline/Item.js +7 -8
- package/timeline/Timeline.js +6 -7
- package/tooltip/index.js +19 -20
- package/tour/index.js +51 -49
- package/transfer/Item.js +21 -22
- package/transfer/List.js +33 -36
- package/transfer/index.js +29 -30
- package/tree/Animation.js +9 -97
- package/tree/Node.js +14 -206
- package/tree/NodeList.js +35 -35
- package/tree/Tree.js +434 -495
- package/tree/index.js +1 -1
- package/tree-select/List.js +17 -17
- package/tree-select/Select.js +330 -193
- package/tree-select/index.js +2 -2
- package/trigger/getPopupStyle.js +34 -34
- package/trigger/index.js +101 -103
- package/types/common/empty/index.d.ts +1 -1
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +1 -1
- package/types/common/hooks/src/create-deep-compare-effect/index.d.ts +5 -0
- package/types/common/hooks/src/create-update-effect/index.d.ts +4 -0
- package/types/common/hooks/src/create-use-storage-state/index.d.ts +11 -0
- package/types/common/hooks/src/index.d.ts +74 -0
- package/types/common/hooks/src/use-async-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-boolean/index.d.ts +7 -0
- package/types/common/hooks/src/use-click-away/index.d.ts +4 -0
- package/types/common/hooks/src/use-controllable-value/index.d.ts +16 -0
- package/types/common/hooks/src/use-cookie-state/index.d.ts +7 -0
- package/types/common/hooks/src/use-count-down/index.d.ts +17 -0
- package/types/common/hooks/src/use-counter/index.d.ts +18 -0
- package/types/common/hooks/src/use-creation/index.d.ts +3 -0
- package/types/common/hooks/src/use-debounce/debounceOptions.d.ts +6 -0
- package/types/common/hooks/src/use-debounce/index.d.ts +3 -0
- package/types/common/hooks/src/use-debounce-effect/index.d.ts +4 -0
- package/types/common/hooks/src/use-debounce-fn/index.d.ts +8 -0
- package/types/common/hooks/src/use-deep-compare-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-deep-compare-layout-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-document-visibility/index.d.ts +3 -0
- package/types/common/hooks/src/use-drag/index.d.ts +13 -0
- package/types/common/hooks/src/use-drop/index.d.ts +15 -0
- package/types/common/hooks/src/use-event-listener/index.d.ts +17 -0
- package/types/common/hooks/src/use-event-target/index.d.ts +14 -0
- package/types/common/hooks/src/use-external/index.d.ts +20 -0
- package/types/common/hooks/src/use-favicon/index.d.ts +2 -0
- package/types/common/hooks/src/use-focus-within/index.d.ts +7 -0
- package/types/common/hooks/src/use-fullscreen/index.d.ts +17 -0
- package/types/common/hooks/src/use-get-state/index.d.ts +9 -0
- package/types/common/hooks/src/use-history-travel/index.d.ts +10 -0
- package/types/common/hooks/src/use-hover/index.d.ts +8 -0
- package/types/common/hooks/src/use-in-viewport/index.d.ts +10 -0
- package/types/common/hooks/src/use-infinite-scroll/index.d.ts +15 -0
- package/types/common/hooks/src/use-infinite-scroll/types.d.ts +32 -0
- package/types/common/hooks/src/use-interval/index.d.ts +4 -0
- package/types/common/hooks/src/use-isomorphic-layout-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-key-press/index.d.ts +14 -0
- package/types/common/hooks/src/use-latest/index.d.ts +2 -0
- package/types/common/hooks/src/use-local-storage-state/index.d.ts +2 -0
- package/types/common/hooks/src/use-lock-fn/index.d.ts +2 -0
- package/types/common/hooks/src/use-long-press/index.d.ts +13 -0
- package/types/common/hooks/src/use-memoized-fn/index.d.ts +4 -0
- package/types/common/hooks/src/use-mount/index.d.ts +3 -0
- package/types/common/hooks/src/use-mouse/index.d.ts +17 -0
- package/types/common/hooks/src/use-mutation-observer/index.d.ts +3 -0
- package/types/common/hooks/src/use-network/index.d.ts +12 -0
- package/types/common/hooks/src/use-pagination/index.d.ts +3 -0
- package/types/common/hooks/src/use-pagination/types.d.ts +29 -0
- package/types/common/hooks/src/use-previous/index.d.ts +3 -0
- package/types/common/hooks/src/use-raf-interval/index.d.ts +4 -0
- package/types/common/hooks/src/use-raf-state/index.d.ts +7 -0
- package/types/common/hooks/src/use-raf-timeout/index.d.ts +2 -0
- package/types/common/hooks/src/use-reactive/index.d.ts +2 -0
- package/types/common/hooks/src/use-request/index.d.ts +4 -0
- package/types/common/hooks/src/use-request/src/Fetch.d.ts +20 -0
- package/types/common/hooks/src/use-request/src/plugins/useAutoRunPlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useCachePlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useDebouncePlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useLoadingDelayPlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/usePollingPlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useRefreshOnWindowFocusPlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useRetryPlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/plugins/useThrottlePlugin.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/types.d.ts +73 -0
- package/types/common/hooks/src/use-request/src/useRequest.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/useRequestImplement.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/utils/cache.d.ts +14 -0
- package/types/common/hooks/src/use-request/src/utils/cachePromise.d.ts +4 -0
- package/types/common/hooks/src/use-request/src/utils/cacheSubscribe.d.ts +4 -0
- package/types/common/hooks/src/use-request/src/utils/isDocumentVisible.d.ts +1 -0
- package/types/common/hooks/src/use-request/src/utils/isOnline.d.ts +2 -0
- package/types/common/hooks/src/use-request/src/utils/limit.d.ts +1 -0
- package/types/common/hooks/src/use-request/src/utils/subscribeFocus.d.ts +3 -0
- package/types/common/hooks/src/use-request/src/utils/subscribeReVisible.d.ts +3 -0
- package/types/common/hooks/src/use-reset-state/index.d.ts +4 -0
- package/types/common/hooks/src/use-responsive/index.d.ts +5 -0
- package/types/common/hooks/src/use-safe-state/index.d.ts +7 -0
- package/types/common/hooks/src/use-scroll/index.d.ts +9 -0
- package/types/common/hooks/src/use-selections/index.d.ts +21 -0
- package/types/common/hooks/src/use-session-storage-state/index.d.ts +2 -0
- package/types/common/hooks/src/use-set-state/index.d.ts +3 -0
- package/types/common/hooks/src/use-size/index.d.ts +7 -0
- package/types/common/hooks/src/use-text-selection/index.d.ts +14 -0
- package/types/common/hooks/src/use-theme/index.d.ts +16 -0
- package/types/common/hooks/src/use-throttle/index.d.ts +3 -0
- package/types/common/hooks/src/use-throttle/throttleOptions.d.ts +5 -0
- package/types/common/hooks/src/use-throttle-effect/index.d.ts +4 -0
- package/types/common/hooks/src/use-throttle-fn/index.d.ts +8 -0
- package/types/common/hooks/src/use-timeout/index.d.ts +2 -0
- package/types/common/hooks/src/use-title/index.d.ts +5 -0
- package/types/common/hooks/src/use-toggle/index.d.ts +10 -0
- package/types/common/hooks/src/use-tracked-effect/index.d.ts +4 -0
- package/types/common/hooks/src/use-unmount/index.d.ts +2 -0
- package/types/common/hooks/src/use-unmounted-ref/index.d.ts +2 -0
- package/types/common/hooks/src/use-update/index.d.ts +2 -0
- package/types/common/hooks/src/use-update-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-update-layout-effect/index.d.ts +3 -0
- package/types/common/hooks/src/use-url-state/index.d.ts +10 -0
- package/types/common/hooks/src/use-virtual-list/index.d.ts +13 -0
- package/types/common/hooks/src/use-web-socket/index.d.ts +26 -0
- package/types/common/hooks/src/use-why-did-you-update/index.d.ts +3 -0
- package/types/common/hooks/src/utils/createEffectWithTarget.d.ts +4 -0
- package/types/common/hooks/src/utils/depsAreSame.d.ts +3 -0
- package/types/common/hooks/src/utils/depsEqual.d.ts +2 -0
- package/types/common/hooks/src/utils/domTarget.d.ts +6 -0
- package/types/common/hooks/src/utils/getDocumentOrShadow.d.ts +3 -0
- package/types/common/hooks/src/utils/index.d.ts +1 -0
- package/types/common/hooks/src/utils/isAppleDevice.d.ts +2 -0
- package/types/common/hooks/src/utils/isBrowser.d.ts +2 -0
- package/types/common/hooks/src/utils/isDev.d.ts +2 -0
- package/types/common/hooks/src/utils/rect.d.ts +4 -0
- package/types/common/hooks/src/utils/useDeepCompareWithTarget.d.ts +4 -0
- package/types/common/hooks/src/utils/useEffectWithTarget.d.ts +2 -0
- package/types/common/hooks/src/utils/useIsomorphicLayoutEffectWithTarget.d.ts +2 -0
- package/types/common/hooks/src/utils/useLayoutEffectWithTarget.d.ts +2 -0
- package/types/common/hooks/useForceUpdate.d.ts +1 -1
- package/types/common/hooks/useId.d.ts +1 -1
- package/types/common/hooks/useInterval.d.ts +1 -2
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/common/hooks/useKeyboardEvent.d.ts +1 -1
- package/types/common/hooks/{useListenResize.d.ts → useListenWindowResize.d.ts} +4 -6
- package/types/common/hooks/useMergeProps.d.ts +1 -1
- package/types/common/hooks/useOverrideRef.d.ts +1 -4
- package/types/common/hooks/usePrevious.d.ts +1 -3
- package/types/common/hooks/useResizeObserver.d.ts +1 -1
- package/types/common/hooks/useUpdateEffect.d.ts +1 -18
- package/types/common/hooks/useWatch.d.ts +1 -1
- package/types/common/hooks/useWindowSize.d.ts +2 -2
- package/types/common/utils/index.d.ts +47 -0
- package/types/common/utils/is.d.ts +2 -3
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/mitt.d.ts +1 -0
- package/types/common/utils/pinyin.d.ts +1 -0
- package/types/common/utils/reactDOM.d.ts +20 -9
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/resizeObserver.d.ts +2 -1
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/back-top/index.d.ts +2 -2
- package/types/pc/carousel/interface.d.ts +1 -1
- package/types/pc/cascader/base/node.d.ts +1 -1
- package/types/pc/cascader/base/store.d.ts +3 -3
- package/types/pc/cascader/index.d.ts +2 -1
- package/types/pc/cascader/interface.d.ts +3 -3
- package/types/pc/cascader/util.d.ts +1 -0
- package/types/pc/color-picker/hooks/useColorPicker.d.ts +2 -2
- package/types/pc/color-picker/hooks/useControlBlock.d.ts +2 -2
- package/types/pc/config-provider/ConfigProvider.d.ts +2 -2
- package/types/pc/config-provider/interface.d.ts +2 -0
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +2 -2
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +2 -7
- package/types/pc/form/index.d.ts +6 -1
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/hooks/index.d.ts +3 -2
- package/types/pc/hooks/useCreation.d.ts +1 -0
- package/types/pc/hooks/useListenWindowResize.d.ts +1 -0
- package/types/pc/index.d.ts +5 -1
- package/types/pc/message/index.d.ts +1 -0
- package/types/pc/message/interface.d.ts +2 -2
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -8
- package/types/pc/overflow-ellipsis/index.d.ts +3 -9
- package/types/pc/overflow-ellipsis/interface.d.ts +19 -0
- package/types/pc/page-header/interface.d.ts +8 -0
- package/types/pc/rich-text/blots/block.d.ts +34 -0
- package/types/pc/rich-text/blots/break.d.ts +8 -0
- package/types/pc/rich-text/blots/container.d.ts +4 -0
- package/types/pc/rich-text/blots/cursor.d.ts +26 -0
- package/types/pc/rich-text/blots/embed.d.ts +18 -0
- package/types/pc/rich-text/blots/inline.d.ts +12 -0
- package/types/pc/rich-text/blots/scroll.d.ts +49 -0
- package/types/pc/rich-text/blots/text.d.ts +5 -0
- package/types/pc/rich-text/constant.d.ts +1 -0
- package/types/pc/rich-text/core/composition.d.ts +12 -0
- package/types/pc/rich-text/core/editor.d.ts +28 -0
- package/types/pc/rich-text/core/emitter.d.ts +37 -0
- package/types/pc/rich-text/core/instances.d.ts +3 -0
- package/types/pc/rich-text/core/logger.d.ts +7 -0
- package/types/pc/rich-text/core/module.d.ts +8 -0
- package/types/pc/rich-text/core/rich.d.ts +217 -0
- package/types/pc/rich-text/core/selection.d.ts +74 -0
- package/types/pc/rich-text/core/theme.d.ts +32 -0
- package/types/pc/rich-text/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/types/pc/rich-text/core/utils/scrollRectIntoView.d.ts +11 -0
- package/types/pc/rich-text/core.d.ts +7 -0
- package/types/pc/rich-text/delta/AttributeMap.d.ts +10 -0
- package/types/pc/rich-text/delta/Op.d.ts +11 -0
- package/types/pc/rich-text/delta/OpIterator.d.ts +13 -0
- package/types/pc/rich-text/delta/index.d.ts +45 -0
- package/types/pc/rich-text/eventemitter/index.d.ts +101 -0
- package/types/pc/rich-text/formats/align.d.ts +5 -0
- package/types/pc/rich-text/formats/background.d.ts +5 -0
- package/types/pc/rich-text/formats/blockquote.d.ts +6 -0
- package/types/pc/rich-text/formats/bold.d.ts +11 -0
- package/types/pc/rich-text/formats/code.d.ts +15 -0
- package/types/pc/rich-text/formats/color.d.ts +7 -0
- package/types/pc/rich-text/formats/direction.d.ts +5 -0
- package/types/pc/rich-text/formats/font.d.ts +7 -0
- package/types/pc/rich-text/formats/formula.d.ts +10 -0
- package/types/pc/rich-text/formats/header.d.ts +7 -0
- package/types/pc/rich-text/formats/image.d.ts +13 -0
- package/types/pc/rich-text/formats/indent.d.ts +8 -0
- package/types/pc/rich-text/formats/italic.d.ts +6 -0
- package/types/pc/rich-text/formats/link.d.ts +13 -0
- package/types/pc/rich-text/formats/list.d.ts +13 -0
- package/types/pc/rich-text/formats/script.d.ts +8 -0
- package/types/pc/rich-text/formats/size.d.ts +4 -0
- package/types/pc/rich-text/formats/strike.d.ts +6 -0
- package/types/pc/rich-text/formats/table.d.ts +45 -0
- package/types/pc/rich-text/formats/underline.d.ts +6 -0
- package/types/pc/rich-text/formats/video.d.ts +14 -0
- package/types/pc/rich-text/index.d.ts +6 -0
- package/types/pc/rich-text/interface.d.ts +17 -0
- package/types/pc/rich-text/modules/clipboard.d.ts +43 -0
- package/types/pc/rich-text/modules/history.d.ts +36 -0
- package/types/pc/rich-text/modules/input.d.ts +10 -0
- package/types/pc/rich-text/modules/keyboard.d.ts +58 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/types/pc/rich-text/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/types/pc/rich-text/modules/syntax.d.ts +50 -0
- package/types/pc/rich-text/modules/table.d.ts +20 -0
- package/types/pc/rich-text/modules/tableEmbed.d.ts +27 -0
- package/types/pc/rich-text/modules/toolbar.d.ts +24 -0
- package/types/pc/rich-text/modules/uiNode.d.ts +19 -0
- package/types/pc/rich-text/modules/uploader.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/attributor.d.ts +17 -0
- package/types/pc/rich-text/parchment/attributor/class.d.ts +8 -0
- package/types/pc/rich-text/parchment/attributor/store.d.ts +15 -0
- package/types/pc/rich-text/parchment/attributor/style.d.ts +8 -0
- package/types/pc/rich-text/parchment/blot/abstract/blot.d.ts +115 -0
- package/types/pc/rich-text/parchment/blot/abstract/container.d.ts +18 -0
- package/types/pc/rich-text/parchment/blot/abstract/leaf.d.ts +29 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +50 -0
- package/types/pc/rich-text/parchment/blot/abstract/shadow.d.ts +37 -0
- package/types/pc/rich-text/parchment/blot/block.d.ts +25 -0
- package/types/pc/rich-text/parchment/blot/embed.d.ts +11 -0
- package/types/pc/rich-text/parchment/blot/inline.d.ts +28 -0
- package/types/pc/rich-text/parchment/blot/scroll.d.ts +34 -0
- package/types/pc/rich-text/parchment/blot/text.d.ts +26 -0
- package/types/pc/rich-text/parchment/collection/linked-list.d.ts +21 -0
- package/types/pc/rich-text/parchment/collection/linked-node.d.ts +6 -0
- package/types/pc/rich-text/parchment/error.d.ts +6 -0
- package/types/pc/rich-text/parchment/index.d.ts +21 -0
- package/types/pc/rich-text/parchment/registry.d.ts +21 -0
- package/types/pc/rich-text/parchment/scope.d.ts +14 -0
- package/types/pc/rich-text/rich.d.ts +5 -0
- package/types/pc/rich-text/themes/base.d.ts +35 -0
- package/types/pc/rich-text/themes/bubble.d.ts +18 -0
- package/types/pc/rich-text/themes/snow.d.ts +9 -0
- package/types/pc/rich-text/ui/color-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icon-picker.d.ts +7 -0
- package/types/pc/rich-text/ui/icons.d.ts +51 -0
- package/types/pc/rich-text/ui/picker.d.ts +16 -0
- package/types/pc/rich-text/ui/tooltip.d.ts +12 -0
- package/types/pc/segmented/interface.d.ts +2 -2
- package/types/pc/select/interface.d.ts +5 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/speech-synthesis/index.d.ts +1 -1
- package/types/pc/table/context.d.ts +5 -0
- package/types/pc/table/interface.d.ts +4 -0
- package/types/pc/tabs/interface.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +2 -4
- package/types/pc/tree/Tree.d.ts +10 -10
- package/types/pc/tree/index.d.ts +0 -3
- package/types/pc/tree/interface.d.ts +7 -4
- package/types/pc/tree/util.d.ts +1 -2
- package/types/pc/tree-select/Select.d.ts +2 -6
- package/types/pc/tree-select/interface.d.ts +1 -1
- package/types/pc/upload/interface.d.ts +1 -1
- package/types/pc/utils/index.d.ts +2 -0
- package/types/pc/utils/is.d.ts +1 -1
- package/types/pc/utils/keyboardCode.d.ts +1 -0
- package/types/pc/utils/mitt.d.ts +1 -0
- package/types/pc/utils/names.d.ts +107 -91
- package/types/pc/utils/pinyin.d.ts +1 -0
- package/types/pc/version/index.d.ts +3 -3
- package/typography/Base.js +36 -37
- package/typography/EditContent.js +8 -8
- package/typography/Ellipsis.js +34 -38
- package/typography/Operations.js +18 -20
- package/typography/Paragraph.js +11 -12
- package/typography/Typography.js +4 -5
- package/typography/useCssEllipsis.js +1 -1
- package/typography/useEllipsis.js +27 -27
- package/upload/TriggerNode.js +8 -9
- package/upload/Upload.js +522 -124
- package/upload/Uploader.js +12 -12
- package/upload/index.js +4 -4
- package/upload/request.js +3 -3
- package/upload/request_.js +4 -4
- package/upload/util.js +15 -16
- package/utils/PqbCSSTransition.js +3 -3
- package/utils/constant.js +6 -6
- package/utils/contextHolder.js +4 -29
- package/utils/dayjs.js +13 -13
- package/utils/dom.js +7 -7
- package/utils/fillNBSP.js +3 -3
- package/utils/findScrollParent.js +15 -2
- 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 +247 -251
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +72 -73
- package/utils/keyboardCode.js +27 -3
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mitt.js +5 -0
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +12 -2
- package/utils/omit.js +1 -1
- package/utils/pad.js +16 -3
- package/utils/pick.js +5 -5
- package/utils/pinyin.js +5 -0
- package/utils/react19Adapter.js +3 -1
- package/utils/reactDOM.js +3 -3
- package/utils/reactTransitionGroup.js +8 -12
- package/utils/resizeObserver.js +2 -2
- package/utils/responsiveObserve.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +9 -10
- package/utils/setDarkTheme.js +30 -10
- package/utils/setPrimaryColor.js +30 -6
- package/utils/setTheme.js +3 -3
- package/utils/style.js +37 -4
- package/utils/throttleByRaf.js +14 -3
- package/utils/throttleByRaf2.js +1 -1
- package/utils/toArray.js +3 -3
- package/utils/tween.js +4 -5
- package/utils/validate.js +4 -5
- package/utils/warning.js +9 -3
- package/verification-code/VerificationCode.js +9 -10
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +391 -280
- package/watermark/Watermark.js +13 -14
- package/calendar/header/Panel.js +0 -57
- package/calendar/header/index.js +0 -110
- package/calendar/hook/useCellClassName.js +0 -41
- package/cascader/base/node.js +0 -141
- package/cascader/base/store.js +0 -90
- package/cascader/hook/useRefCurrent.js +0 -12
- package/cascader/panel/List.js +0 -274
- package/cascader/panel/Option.js +0 -34
- package/cascader/panel/Search.js +0 -168
- package/color-picker/hooks/useColorPicker.js +0 -125
- package/components/common/development/index.js +0 -47
- package/components/common/empty/index.js +0 -49
- package/components/common/flex/index.js +0 -73
- package/components/common/flex/interface.js +0 -9
- package/components/common/higher-order/with-speech-synthesis/index.js +0 -82
- package/components/common/hooks/useCreate.js +0 -8
- package/components/common/hooks/useForceUpdate.js +0 -12
- package/components/common/hooks/useId.js +0 -11
- package/components/common/hooks/useInView.js +0 -31
- package/components/common/hooks/useIntersectionObserver.js +0 -24
- package/components/common/hooks/useInterval.js +0 -18
- package/components/common/hooks/useIsomorphicLayoutEffect.js +0 -6
- package/components/common/hooks/useKeyboardEvent.js +0 -16
- package/components/common/hooks/useMedia.js +0 -16
- package/components/common/hooks/useOverrideRef.js +0 -14
- package/components/common/hooks/usePersistCallback.js +0 -14
- package/components/common/hooks/usePrevious.js +0 -10
- package/components/common/hooks/useRefs.js +0 -10
- package/components/common/hooks/useResizeObserver.js +0 -16
- package/components/common/hooks/useStateCallback.js +0 -15
- package/components/common/hooks/useStateWithPromise.js +0 -25
- package/components/common/hooks/useUpdateEffect.js +0 -12
- package/components/common/hooks/useWatch.js +0 -11
- package/components/common/hooks/useWindowSize.js +0 -33
- package/components/common/icons/file/index.js +0 -58
- package/components/common/space/index.js +0 -76
- package/components/common/utils/PqbCSSTransition.js +0 -32
- package/components/common/utils/constant.js +0 -9
- package/components/common/utils/copy.js +0 -7
- package/components/common/utils/fillNBSP.js +0 -7
- package/components/common/utils/findScrollParent.js +0 -17
- package/components/common/utils/include.js +0 -10
- package/components/common/utils/intersectionObserver.js +0 -21
- package/components/common/utils/is.js +0 -110
- package/components/common/utils/mergedToString.js +0 -16
- package/components/common/utils/omit.js +0 -12
- package/components/common/utils/pad.js +0 -18
- package/components/common/utils/pick.js +0 -18
- package/components/common/utils/react19Adapter.js +0 -3
- package/components/common/utils/reactDOM.js +0 -48
- package/components/common/utils/resizeObserver.js +0 -21
- package/components/common/utils/scrollIntoViewIfNeeded.js +0 -25
- package/components/common/utils/setDarkTheme.js +0 -27
- package/components/common/utils/setDir.js +0 -12
- package/components/common/utils/setPrimaryColor.js +0 -30
- package/components/common/utils/style.js +0 -39
- package/components/common/utils/throttleByRaf.js +0 -16
- package/components/common/utils/toArray.js +0 -14
- package/components/common/utils/warning.js +0 -11
- package/date-picker/hook/useCellClassName.js +0 -60
- package/date-picker/panel/Body.js +0 -87
- package/date-picker/panel/Footer.js +0 -71
- package/date-picker/panel/Header.js +0 -69
- package/date-picker/panel/Shortcut.js +0 -45
- package/date-picker/panel/WeekList.js +0 -19
- package/date-picker/panel/date/index.js +0 -193
- package/date-picker/panel/month/index.js +0 -112
- package/date-picker/panel/quarter/index.js +0 -94
- package/date-picker/panel/range/index.js +0 -250
- package/date-picker/panel/week/index.js +0 -35
- package/date-picker/panel/year/index.js +0 -73
- package/dist/dom-helpers/addClass.js +0 -10
- package/dist/dom-helpers/hasClass.js +0 -8
- package/dist/dom-helpers/removeClass.js +0 -18
- package/dist/react-transition-group/chunk/CPfP7aNL.js +0 -381
- package/dist/react-transition-group/chunk/F6QOOr2H.js +0 -500
- package/dist/react-transition-group/src/CSSTransition.js +0 -202
- package/dist/react-transition-group/src/ReplaceTransition.js +0 -43
- package/dist/react-transition-group/src/SwitchTransition.js +0 -117
- package/dist/react-transition-group/src/TransitionGroup.js +0 -160
- package/dist/react-transition-group/src/TransitionGroupContext.js +0 -5
- package/dist/react-transition-group/src/config.js +0 -6
- package/dist/scroll-into-view-if-needed/compute/index.js +0 -126
- package/dist/scroll-into-view-if-needed/src/index.js +0 -33
- package/dist/tween/src/easing.js +0 -43
- package/dist/tween/src/tween.js +0 -70
- package/dist/validate/chunk/BXTR2LmP.js +0 -49
- package/dist/validate/src/util.js +0 -22
- package/form/hook/useContext.js +0 -30
- package/form/hook/useForm.js +0 -58
- package/form/hook/useState.js +0 -30
- package/form/hook/useWatch.js +0 -35
- package/hooks/use-watermark/utils.js +0 -9
- package/hooks/useCreate.js +0 -4
- package/hooks/useListenResize.js +0 -4
- package/image/util/getFixTranslate.js +0 -7
- package/image/util/getScale.js +0 -71
- package/image/util/hook/useImageStatus.js +0 -16
- package/image/util/hook/useShowFooter.js +0 -7
- package/menu/sub-menu/Inline.js +0 -111
- package/menu/sub-menu/Pop.js +0 -120
- package/menu/sub-menu/index.js +0 -17
- package/modal/use-modal/Hook.js +0 -50
- package/modal/use-modal/index.js +0 -65
- package/slider/hook/useInterval.js +0 -73
- package/slider/hook/useLegalValue.js +0 -70
- package/splitter/hooks/useEvent.js +0 -12
- package/splitter/hooks/useItems.js +0 -26
- package/splitter/hooks/useResizable.js +0 -17
- package/splitter/hooks/useResize.js +0 -68
- package/splitter/hooks/useSizes.js +0 -60
- package/table/hook/useColumns.js +0 -142
- package/table/hook/useComponent.js +0 -28
- package/table/hook/useExpand.js +0 -36
- package/table/hook/useRowSelection.js +0 -94
- package/table/hook/useSorter.js +0 -54
- package/table/hook/useStickyClassNames.js +0 -31
- package/table/hook/useStickyOffsets.js +0 -28
- package/table/hook/useThResizable.js +0 -87
- package/table/summary/Cell.js +0 -10
- package/table/summary/Row.js +0 -24
- package/table/summary/index.js +0 -12
- package/table/tbody/Td.js +0 -184
- package/table/tbody/Tr.js +0 -164
- package/table/tbody/index.js +0 -153
- package/table/tfoot/index.js +0 -16
- package/table/th-resizable/index.js +0 -104
- package/table/thead/Column.js +0 -252
- package/table/thead/index.js +0 -131
- package/tabs/hook/useDomSize.js +0 -17
- package/tabs/hook/useHeaderScroll.js +0 -67
- package/tabs/tab-header/DropdownIcon.js +0 -66
- package/tabs/tab-header/TabInk.js +0 -64
- package/tabs/tab-header/TabNavIcon.js +0 -65
- package/tabs/tab-header/TabTitle.js +0 -78
- package/tabs/tab-header/index.js +0 -328
- package/tree-select/hook/useKeyCache.js +0 -55
- package/tree-select/hook/useStateValue.js +0 -95
- package/tree-select/hook/useTreeData.js +0 -13
- package/types/common/hooks/useCreate.d.ts +0 -2
- package/types/pc/hooks/useCreate.d.ts +0 -1
- package/types/pc/hooks/useListenResize.d.ts +0 -1
- package/upload/list/PictureItem.js +0 -109
- package/upload/list/TextItem.js +0 -117
- package/upload/list/UploadProgress.js +0 -89
- package/upload/list/index.js +0 -139
- package/virtual-list/util/algorithm.js +0 -32
- package/virtual-list/util/item.js +0 -98
- /package/{speech-synthesis/style/index.less.js → overflow-ellipsis/interface.js} +0 -0
|
@@ -0,0 +1,1470 @@
|
|
|
1
|
+
import { jsx as o, jsxs as Z, Fragment as we } from "react/jsx-runtime";
|
|
2
|
+
import Yn from "@unicom-cloud/icons/IconUiCalendar";
|
|
3
|
+
import $n from "@unicom-cloud/icons/IconUiCalendarClock";
|
|
4
|
+
import { isDayjs as Ut } from "dayjs";
|
|
5
|
+
import G from "lodash/isArray";
|
|
6
|
+
import Je from "lodash/isPlainObject";
|
|
7
|
+
import An from "lodash/isUndefined";
|
|
8
|
+
import { useContext as ie, useMemo as an, forwardRef as On, useRef as Le, useImperativeHandle as Mn, useState as se, useEffect as Ke } from "react";
|
|
9
|
+
import { a as Re } from "./BcEZk8pT.js";
|
|
10
|
+
import { u as Hn } from "./FgWHhRFz.js";
|
|
11
|
+
import { u as Kt } from "./8w-ItYb1.js";
|
|
12
|
+
import { u as Qt } from "./DfChiMIE.js";
|
|
13
|
+
import _n from "../picker/InputRange.js";
|
|
14
|
+
import Fn from "../trigger/index.js";
|
|
15
|
+
import he from "@unicom-cloud/utils/class-name";
|
|
16
|
+
import { j as Oe, g as te, d as Nt, c as Wn, h as oe, m as X, a as Jt, b as wt, i as Qe, n as Bn, l as zn } from "./DS_deHpN.js";
|
|
17
|
+
import { a as jn } from "./ClqoGc3r.js";
|
|
18
|
+
import Ee from "../date-picker/context.js";
|
|
19
|
+
import { F as qn, S as Un } from "./yXI2bb8U.js";
|
|
20
|
+
import Ze from "lodash/merge";
|
|
21
|
+
import { getAvailableDayjsLength as Ge, isDisabledDate as Kn, getFormatByIndex as pe, getDefaultWeekStart as Qn, getLocaleDayjsValue as Ct } from "../date-picker/util.js";
|
|
22
|
+
import Gt from "@unicom-cloud/icons/IconUiDoubleLeft";
|
|
23
|
+
import Xt from "@unicom-cloud/icons/IconUiDoubleRight";
|
|
24
|
+
import Zt from "@unicom-cloud/icons/IconUiLeft";
|
|
25
|
+
import en from "@unicom-cloud/icons/IconUiRight";
|
|
26
|
+
import { newArray as Xe } from "../utils/constant.js";
|
|
27
|
+
import { padStart as sn } from "../utils/pad.js";
|
|
28
|
+
import Jn from "../time-picker/TimePicker.js";
|
|
29
|
+
import { o as Gn } from "./BKKEev13.js";
|
|
30
|
+
function Te(l, n) {
|
|
31
|
+
if (l && G(l))
|
|
32
|
+
return l[n];
|
|
33
|
+
}
|
|
34
|
+
function Xn(l) {
|
|
35
|
+
const {
|
|
36
|
+
prefixCls: n,
|
|
37
|
+
value: m,
|
|
38
|
+
rangeValues: u,
|
|
39
|
+
valueShowHover: s,
|
|
40
|
+
isSameTime: c,
|
|
41
|
+
mode: P,
|
|
42
|
+
hideNotInViewDates: a
|
|
43
|
+
} = l, i = Ge(u), R = Ge(s), w = i !== 2 && R === 2 ? Oe(s) : u, N = i === 2 ? Oe(s) : [];
|
|
44
|
+
function x(h, g, V) {
|
|
45
|
+
if (g && V)
|
|
46
|
+
return c(h, g) || c(h, V) || h.isBetween(g, V, null);
|
|
47
|
+
}
|
|
48
|
+
return function(g, V, F, I) {
|
|
49
|
+
const C = Te(w, 0), y = Te(w, 1), L = Te(N, 0), Y = Te(N, 1), f = !g.isPrev && !g.isNext, W = m && c(g.time, m);
|
|
50
|
+
let D = c(g.time, te(F, I));
|
|
51
|
+
const S = P !== "week" ? f : !0;
|
|
52
|
+
P === "week" && (D = te(F, I).isSame(g.time, "date")), P === "quarter" && (D = te(F, I).isSame(g.time, "quarter"));
|
|
53
|
+
function E(A) {
|
|
54
|
+
return S && !V && A && c(g.time, A);
|
|
55
|
+
}
|
|
56
|
+
const Q = E(C), p = E(y), k = E(
|
|
57
|
+
Te(u, 0)
|
|
58
|
+
), J = E(
|
|
59
|
+
Te(u, 1)
|
|
60
|
+
), z = E(L), H = E(Y);
|
|
61
|
+
let j = !1;
|
|
62
|
+
Q ? j = L && C && L.isBefore(C) && x(C, L, Y) : p && (j = Y && y && Y.isAfter(y) && x(y, L, Y));
|
|
63
|
+
let v = !1;
|
|
64
|
+
return z ? v = L && C && C.isBefore(L) && x(L, C, y) : H && (v = Y && y && y.isAfter(Y) && x(Y, C, y)), he(`${n}-cell`, {
|
|
65
|
+
[`${n}-cell-disabled`]: V,
|
|
66
|
+
[`${n}-cell-hidden`]: a && !f,
|
|
67
|
+
[`${n}-cell-in-view`]: f,
|
|
68
|
+
[`${n}-cell-today`]: D && f,
|
|
69
|
+
[`${n}-cell-selected`]: W || k || J,
|
|
70
|
+
[`${n}-cell-selected-start`]: k,
|
|
71
|
+
[`${n}-cell-selected-end`]: J,
|
|
72
|
+
[`${n}-cell-range-start`]: Q,
|
|
73
|
+
[`${n}-cell-range-end`]: p,
|
|
74
|
+
[`${n}-cell-in-range`]: S && !V && x(g.time, C, y),
|
|
75
|
+
[`${n}-cell-hover-range-start`]: z,
|
|
76
|
+
[`${n}-cell-hover-range-end`]: H,
|
|
77
|
+
[`${n}-cell-hover-in-range`]: S && !V && x(g.time, L, Y),
|
|
78
|
+
[`${n}-cell-range-edge-in-hover-range`]: j,
|
|
79
|
+
[`${n}-cell-hover-range-edge-in-range`]: v
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function Zn(l) {
|
|
84
|
+
const { prefixCls: n, weekStart: m, isWeek: u, CALENDAR_LOCALE: s } = l;
|
|
85
|
+
let c = [
|
|
86
|
+
"sunday",
|
|
87
|
+
"monday",
|
|
88
|
+
"tuesday",
|
|
89
|
+
"wednesday",
|
|
90
|
+
"thursday",
|
|
91
|
+
"friday",
|
|
92
|
+
"saturday"
|
|
93
|
+
];
|
|
94
|
+
c = c.slice(m).concat(c.slice(0, m)), u && c.unshift("");
|
|
95
|
+
const P = s.week.short;
|
|
96
|
+
return /* @__PURE__ */ o("div", { className: `${n}-week-list`, children: c.map((a) => /* @__PURE__ */ o("div", { className: `${n}-week-list-item`, children: a && P[a] }, a)) });
|
|
97
|
+
}
|
|
98
|
+
function et(l) {
|
|
99
|
+
const {
|
|
100
|
+
prefixCls: n,
|
|
101
|
+
isWeek: m,
|
|
102
|
+
disabledDate: u,
|
|
103
|
+
onSelectDate: s,
|
|
104
|
+
dateRender: c,
|
|
105
|
+
onMouseEnterCell: P,
|
|
106
|
+
onMouseLeaveCell: a,
|
|
107
|
+
CALENDAR_LOCALE: i,
|
|
108
|
+
rows: R,
|
|
109
|
+
showWeekList: w,
|
|
110
|
+
isSameTime: N,
|
|
111
|
+
format: x,
|
|
112
|
+
mode: h
|
|
113
|
+
} = l, { utcOffset: g, timezone: V, weekStart: F } = ie(Ee), I = Xn({
|
|
114
|
+
...l,
|
|
115
|
+
isSameTime: N
|
|
116
|
+
});
|
|
117
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
118
|
+
w && /* @__PURE__ */ o(
|
|
119
|
+
Zn,
|
|
120
|
+
{
|
|
121
|
+
prefixCls: n,
|
|
122
|
+
weekStart: F,
|
|
123
|
+
isWeek: m,
|
|
124
|
+
CALENDAR_LOCALE: i
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ o("div", { className: `${n}-body`, children: R?.map?.((C, y, L) => /* @__PURE__ */ o(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
className: he(`${n}-row`, {
|
|
131
|
+
[`${n}-row-week`]: m
|
|
132
|
+
}),
|
|
133
|
+
children: C.map((f, W, D) => {
|
|
134
|
+
if (f.time) {
|
|
135
|
+
const S = Kn(f.time, u, h);
|
|
136
|
+
return /* @__PURE__ */ o(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: I(
|
|
140
|
+
f,
|
|
141
|
+
S,
|
|
142
|
+
g,
|
|
143
|
+
V
|
|
144
|
+
),
|
|
145
|
+
onMouseEnter: () => P?.(f.time, S),
|
|
146
|
+
onMouseLeave: () => a?.(f.time, S),
|
|
147
|
+
onClick: () => !S && s(f.time.format(x), f.time),
|
|
148
|
+
children: c ? c(
|
|
149
|
+
f.time,
|
|
150
|
+
f
|
|
151
|
+
/* 潘启宝添加第二个参数 */
|
|
152
|
+
) : /* @__PURE__ */ o("div", { className: `${n}-date`, children: /* @__PURE__ */ o("div", { className: `${n}-date-value`, children: f.name }) })
|
|
153
|
+
},
|
|
154
|
+
W
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
if ("weekOfYear" in f)
|
|
158
|
+
return /* @__PURE__ */ o(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
className: he(
|
|
162
|
+
`${n}-cell`,
|
|
163
|
+
`${n}-cell-week`
|
|
164
|
+
),
|
|
165
|
+
children: /* @__PURE__ */ o("div", { className: `${n}-date`, children: /* @__PURE__ */ o("div", { className: `${n}-date-value`, children: f.weekOfYear }) })
|
|
166
|
+
},
|
|
167
|
+
W
|
|
168
|
+
);
|
|
169
|
+
})
|
|
170
|
+
},
|
|
171
|
+
y
|
|
172
|
+
)) })
|
|
173
|
+
] });
|
|
174
|
+
}
|
|
175
|
+
function tt(l) {
|
|
176
|
+
const {
|
|
177
|
+
prefixCls: n,
|
|
178
|
+
title: m,
|
|
179
|
+
onPrev: u,
|
|
180
|
+
onNext: s,
|
|
181
|
+
onSuperPrev: c,
|
|
182
|
+
onSuperNext: P,
|
|
183
|
+
mode: a,
|
|
184
|
+
value: i,
|
|
185
|
+
onChangePanel: R,
|
|
186
|
+
icons: w = {},
|
|
187
|
+
rtl: N,
|
|
188
|
+
DATEPICKER_LOCALE: x
|
|
189
|
+
} = l, h = typeof u == "function", g = typeof c == "function", V = typeof s == "function", F = typeof P == "function", I = (W) => he(`${n}-header-icon`, {
|
|
190
|
+
[`${n}-header-icon-hidden`]: !W
|
|
191
|
+
});
|
|
192
|
+
function C() {
|
|
193
|
+
const { monthBeforeYear: W, monthFormat: D, yearFormat: S } = x?.Calendar || {};
|
|
194
|
+
if (m)
|
|
195
|
+
return m;
|
|
196
|
+
if (a === "date" || a === "week") {
|
|
197
|
+
const E = /* @__PURE__ */ o(
|
|
198
|
+
"span",
|
|
199
|
+
{
|
|
200
|
+
className: `${n}-header-label`,
|
|
201
|
+
onClick: () => R("year"),
|
|
202
|
+
children: i.format(S || "YYYY")
|
|
203
|
+
},
|
|
204
|
+
"year-node"
|
|
205
|
+
), Q = /* @__PURE__ */ o(
|
|
206
|
+
"span",
|
|
207
|
+
{
|
|
208
|
+
className: `${n}-header-label`,
|
|
209
|
+
onClick: () => R("month"),
|
|
210
|
+
children: i.format(D || "MM")
|
|
211
|
+
},
|
|
212
|
+
"month-node"
|
|
213
|
+
);
|
|
214
|
+
return W ? [Q, E] : [E, Q];
|
|
215
|
+
}
|
|
216
|
+
if (a === "month" || a === "quarter")
|
|
217
|
+
return /* @__PURE__ */ o(
|
|
218
|
+
"span",
|
|
219
|
+
{
|
|
220
|
+
className: `${n}-header-label`,
|
|
221
|
+
onClick: () => R("year"),
|
|
222
|
+
children: i.format(S || "YYYY")
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
const y = w.prevDouble === null, L = w.prev === null, Y = w.next === null, f = w.nextDouble === null;
|
|
227
|
+
return /* @__PURE__ */ Z("div", { className: `${n}-header`, children: [
|
|
228
|
+
!y && /* @__PURE__ */ o("div", { className: I(g), onClick: c, children: g && (y ? null : w.prevDouble || (N ? /* @__PURE__ */ o(Xt, {}) : /* @__PURE__ */ o(Gt, {}))) }),
|
|
229
|
+
!L && /* @__PURE__ */ o("div", { className: I(h), onClick: u, children: h && (L ? null : w.prev || (N ? /* @__PURE__ */ o(en, {}) : /* @__PURE__ */ o(Zt, {}))) }),
|
|
230
|
+
/* @__PURE__ */ o("div", { className: `${n}-header-value`, children: C() }),
|
|
231
|
+
!Y && /* @__PURE__ */ o("div", { className: I(V), onClick: s, children: V && (Y ? null : w.next || (N ? /* @__PURE__ */ o(Zt, {}) : /* @__PURE__ */ o(en, {}))) }),
|
|
232
|
+
!f && /* @__PURE__ */ o("div", { className: I(F), onClick: P, children: F && (f ? null : w.nextDouble || (N ? /* @__PURE__ */ o(Gt, {}) : /* @__PURE__ */ o(Xt, {}))) })
|
|
233
|
+
] });
|
|
234
|
+
}
|
|
235
|
+
function Me(l) {
|
|
236
|
+
const {
|
|
237
|
+
pageShowDate: n,
|
|
238
|
+
style: m,
|
|
239
|
+
onMouseEnterCell: u,
|
|
240
|
+
onMouseLeaveCell: s,
|
|
241
|
+
dateRender: c,
|
|
242
|
+
disabledDate: P,
|
|
243
|
+
value: a,
|
|
244
|
+
locale: i,
|
|
245
|
+
isRangePicker: R,
|
|
246
|
+
onSelect: w,
|
|
247
|
+
rangeValues: N,
|
|
248
|
+
onSuperPrev: x,
|
|
249
|
+
onSuperNext: h,
|
|
250
|
+
format: g,
|
|
251
|
+
icons: V,
|
|
252
|
+
...F
|
|
253
|
+
} = l, { locale: I, getPrefixCls: C, rtl: y } = ie(Re), Y = Ze(I.DatePicker, i).Calendar, { utcOffset: f, timezone: W } = ie(Ee), D = C?.("panel-year"), S = he(D), E = R ? { rangeValues: N } : { value: a }, Q = n ? n.year() : te(f, W).year(), p = Math.floor(Q / 10) * 10 - 1, k = Xe(3).map((j) => ""), J = Xe(4).map((j) => k).map((j, v) => j.map((A, B) => ({
|
|
254
|
+
name: p + v * 3 + B,
|
|
255
|
+
time: Nt(`${p + v * 3 + B}`, "YYYY").endOf("year"),
|
|
256
|
+
isPrev: v === 0 && B === 0,
|
|
257
|
+
isNext: v === 3 && B === 2
|
|
258
|
+
})));
|
|
259
|
+
function z() {
|
|
260
|
+
return /* @__PURE__ */ o(
|
|
261
|
+
et,
|
|
262
|
+
{
|
|
263
|
+
...F,
|
|
264
|
+
...E,
|
|
265
|
+
prefixCls: C?.("picker"),
|
|
266
|
+
rows: J,
|
|
267
|
+
onSelectDate: w,
|
|
268
|
+
isSameTime: (j, v) => j.isSame(v, "year"),
|
|
269
|
+
onMouseEnterCell: u,
|
|
270
|
+
onMouseLeaveCell: s,
|
|
271
|
+
dateRender: c,
|
|
272
|
+
disabledDate: P,
|
|
273
|
+
CALENDAR_LOCALE: Y,
|
|
274
|
+
mode: "year",
|
|
275
|
+
format: g
|
|
276
|
+
}
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
const H = { onSuperPrev: x, onSuperNext: h };
|
|
280
|
+
return /* @__PURE__ */ Z("div", { className: S, style: m, children: [
|
|
281
|
+
/* @__PURE__ */ o(
|
|
282
|
+
tt,
|
|
283
|
+
{
|
|
284
|
+
prefixCls: C?.("picker"),
|
|
285
|
+
icons: V,
|
|
286
|
+
title: `${J[0][1].name} - ${J[3][2].name}`,
|
|
287
|
+
rtl: y,
|
|
288
|
+
...H
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
z()
|
|
292
|
+
] });
|
|
293
|
+
}
|
|
294
|
+
function kt(l) {
|
|
295
|
+
const {
|
|
296
|
+
pageShowDate: n,
|
|
297
|
+
style: m,
|
|
298
|
+
onMouseEnterCell: u,
|
|
299
|
+
onMouseLeaveCell: s,
|
|
300
|
+
dateRender: c,
|
|
301
|
+
disabledDate: P,
|
|
302
|
+
value: a,
|
|
303
|
+
locale: i,
|
|
304
|
+
isRangePicker: R,
|
|
305
|
+
onSelect: w,
|
|
306
|
+
rangeValues: N,
|
|
307
|
+
onSuperPrev: x,
|
|
308
|
+
onSuperNext: h,
|
|
309
|
+
format: g,
|
|
310
|
+
getHeaderOperations: V,
|
|
311
|
+
setPageShowDate: F,
|
|
312
|
+
icons: I,
|
|
313
|
+
panelMode: C,
|
|
314
|
+
setPanelMode: y,
|
|
315
|
+
...L
|
|
316
|
+
} = l, { locale: Y, getPrefixCls: f, rtl: W } = ie(Re), D = Ze(Y.DatePicker, i), S = D.Calendar, E = f?.("panel-month"), Q = he(E), p = R ? { rangeValues: N } : { value: a }, k = n.year(), J = an(() => {
|
|
317
|
+
const v = [
|
|
318
|
+
"January",
|
|
319
|
+
"February",
|
|
320
|
+
"March",
|
|
321
|
+
"April",
|
|
322
|
+
"May",
|
|
323
|
+
"June",
|
|
324
|
+
"July",
|
|
325
|
+
"August",
|
|
326
|
+
"September",
|
|
327
|
+
"October",
|
|
328
|
+
"November",
|
|
329
|
+
"December"
|
|
330
|
+
].map((B, De) => ({
|
|
331
|
+
name: S.month.short[B],
|
|
332
|
+
time: Nt(
|
|
333
|
+
`${k}-${sn(De + 1, 2, "0")}`,
|
|
334
|
+
"YYYY-MM"
|
|
335
|
+
).endOf("month")
|
|
336
|
+
})), A = Array(4);
|
|
337
|
+
for (let B = 0; B < 4; B++)
|
|
338
|
+
A[B] = v.slice(B * 3, 3 * (B + 1));
|
|
339
|
+
return A;
|
|
340
|
+
}, [k, S]);
|
|
341
|
+
function z() {
|
|
342
|
+
return /* @__PURE__ */ o(
|
|
343
|
+
et,
|
|
344
|
+
{
|
|
345
|
+
...L,
|
|
346
|
+
...p,
|
|
347
|
+
prefixCls: f?.("picker"),
|
|
348
|
+
rows: J,
|
|
349
|
+
onSelectDate: w,
|
|
350
|
+
isSameTime: (v, A) => v.isSame(A, "month"),
|
|
351
|
+
onMouseEnterCell: u,
|
|
352
|
+
onMouseLeaveCell: s,
|
|
353
|
+
dateRender: c,
|
|
354
|
+
disabledDate: P,
|
|
355
|
+
CALENDAR_LOCALE: S,
|
|
356
|
+
mode: "month",
|
|
357
|
+
format: g
|
|
358
|
+
}
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
const H = { onSuperPrev: x, onSuperNext: h };
|
|
362
|
+
function j(v) {
|
|
363
|
+
y(v);
|
|
364
|
+
}
|
|
365
|
+
return C === "year" ? /* @__PURE__ */ o(
|
|
366
|
+
Me,
|
|
367
|
+
{
|
|
368
|
+
...V(C),
|
|
369
|
+
pageShowDate: n,
|
|
370
|
+
onSelect: (v, A) => {
|
|
371
|
+
y("month"), F(A);
|
|
372
|
+
},
|
|
373
|
+
disabledDate: P
|
|
374
|
+
}
|
|
375
|
+
) : /* @__PURE__ */ Z("div", { className: Q, style: m, children: [
|
|
376
|
+
/* @__PURE__ */ o(
|
|
377
|
+
tt,
|
|
378
|
+
{
|
|
379
|
+
...H,
|
|
380
|
+
DATEPICKER_LOCALE: D,
|
|
381
|
+
icons: I,
|
|
382
|
+
prefixCls: f?.("picker"),
|
|
383
|
+
value: n,
|
|
384
|
+
mode: C,
|
|
385
|
+
onChangePanel: j,
|
|
386
|
+
rtl: W
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
z()
|
|
390
|
+
] });
|
|
391
|
+
}
|
|
392
|
+
const tn = 42, Dt = (l) => ({
|
|
393
|
+
year: l.year(),
|
|
394
|
+
month: l.month() + 1,
|
|
395
|
+
day: l.day(),
|
|
396
|
+
name: l.date(),
|
|
397
|
+
time: l
|
|
398
|
+
}), eo = (l) => ({
|
|
399
|
+
...Dt(X.startOf(l, "month")),
|
|
400
|
+
days: l.daysInMonth()
|
|
401
|
+
});
|
|
402
|
+
function to(l, n) {
|
|
403
|
+
const { dayStartOfWeek: m, isWeek: u } = l, s = eo(n), c = Xe(tn).map((i, R, w) => ({})), P = s.day - m < 0 ? 7 + (s.day - m) : s.day - m;
|
|
404
|
+
c[P] = {
|
|
405
|
+
...s
|
|
406
|
+
};
|
|
407
|
+
for (let i = 0; i < P; i++)
|
|
408
|
+
c[P - i - 1] = {
|
|
409
|
+
...Dt(X.subtract(s.time, i + 1, "day")),
|
|
410
|
+
isPrev: !0
|
|
411
|
+
};
|
|
412
|
+
for (let i = 0; i < tn - P - 1; i++)
|
|
413
|
+
c[P + i + 1] = {
|
|
414
|
+
...Dt(X.add(s.time, i + 1, "day")),
|
|
415
|
+
isNext: i >= s.days - 1
|
|
416
|
+
};
|
|
417
|
+
const a = Xe(6).map((i, R, w) => []);
|
|
418
|
+
for (let i = 0; i < 6; i++)
|
|
419
|
+
if (a[i] = c.slice(i * 7, 7 * (i + 1)), u) {
|
|
420
|
+
const R = a[i][0].time, w = [...a[i]];
|
|
421
|
+
a[i].unshift({
|
|
422
|
+
weekRows: w,
|
|
423
|
+
weekOfYear: R.week()
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
return a;
|
|
427
|
+
}
|
|
428
|
+
function bt(l) {
|
|
429
|
+
const {
|
|
430
|
+
isWeek: n,
|
|
431
|
+
popupVisible: m,
|
|
432
|
+
format: u,
|
|
433
|
+
pageShowDate: s,
|
|
434
|
+
showTime: c,
|
|
435
|
+
style: P,
|
|
436
|
+
timePickerProps: a,
|
|
437
|
+
onMouseEnterCell: i,
|
|
438
|
+
onMouseLeaveCell: R,
|
|
439
|
+
dateRender: w,
|
|
440
|
+
disabledDate: N,
|
|
441
|
+
disabledTime: x,
|
|
442
|
+
value: h,
|
|
443
|
+
rangeValues: g,
|
|
444
|
+
locale: V,
|
|
445
|
+
isRangePicker: F,
|
|
446
|
+
onSelect: I,
|
|
447
|
+
onTimePickerSelect: C,
|
|
448
|
+
onPrev: y,
|
|
449
|
+
onNext: L,
|
|
450
|
+
onSuperPrev: Y,
|
|
451
|
+
onSuperNext: f,
|
|
452
|
+
isSameTime: W,
|
|
453
|
+
index: D,
|
|
454
|
+
getHeaderOperations: S,
|
|
455
|
+
setPageShowDate: E,
|
|
456
|
+
timeValue: Q,
|
|
457
|
+
hideNotInViewDates: p,
|
|
458
|
+
icons: k,
|
|
459
|
+
isTimePanel: J,
|
|
460
|
+
panelMode: z,
|
|
461
|
+
setPanelMode: H,
|
|
462
|
+
...j
|
|
463
|
+
} = l, { locale: v, getPrefixCls: A, rtl: B } = ie(Re), { utcOffset: De, timezone: re, weekStart: me } = ie(Ee), le = Ze(v.DatePicker, V), b = A?.(n ? "panel-week" : "panel-date"), $ = he(b), Ie = F ? { rangeValues: g } : { value: h }, ce = Je(c) && c.format || Wn(u), U = v.dayjsLocale, ne = an(() => to(
|
|
464
|
+
{ ...l, dayStartOfWeek: me },
|
|
465
|
+
s.locale(U)
|
|
466
|
+
), [s.toString(), me, U]);
|
|
467
|
+
let _;
|
|
468
|
+
F ? _ = typeof x == "function" ? x(
|
|
469
|
+
g[D],
|
|
470
|
+
D === 0 ? "start" : "end"
|
|
471
|
+
) : {} : _ = typeof x == "function" ? x(oe(h, u)) : {};
|
|
472
|
+
function q() {
|
|
473
|
+
return /* @__PURE__ */ o(
|
|
474
|
+
et,
|
|
475
|
+
{
|
|
476
|
+
...j,
|
|
477
|
+
...Ie,
|
|
478
|
+
showWeekList: !0,
|
|
479
|
+
isWeek: n,
|
|
480
|
+
prefixCls: A?.("picker"),
|
|
481
|
+
rows: ne,
|
|
482
|
+
isSameTime: W || ((T, Ce) => T.isSame(Ce, "day")),
|
|
483
|
+
onSelectDate: I,
|
|
484
|
+
onMouseEnterCell: i,
|
|
485
|
+
onMouseLeaveCell: R,
|
|
486
|
+
dateRender: w,
|
|
487
|
+
disabledDate: N,
|
|
488
|
+
CALENDAR_LOCALE: le.Calendar,
|
|
489
|
+
mode: n ? "week" : "date",
|
|
490
|
+
format: u,
|
|
491
|
+
hideNotInViewDates: p
|
|
492
|
+
}
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
function ue() {
|
|
496
|
+
const T = Je(c) ? c : {};
|
|
497
|
+
return /* @__PURE__ */ Z("div", { className: `${b}-time-picker`, children: [
|
|
498
|
+
/* @__PURE__ */ o("header", { className: `${b}-time-picker-title`, children: le.selectTime }),
|
|
499
|
+
/* @__PURE__ */ o(
|
|
500
|
+
Jn,
|
|
501
|
+
{
|
|
502
|
+
...Gn(a, ["disableConfirm"]),
|
|
503
|
+
...T,
|
|
504
|
+
..._,
|
|
505
|
+
hideFooter: !0,
|
|
506
|
+
format: ce,
|
|
507
|
+
valueShow: Q.format(ce),
|
|
508
|
+
onSelect: C,
|
|
509
|
+
popupVisible: m,
|
|
510
|
+
utcOffset: De,
|
|
511
|
+
timezone: re
|
|
512
|
+
}
|
|
513
|
+
)
|
|
514
|
+
] });
|
|
515
|
+
}
|
|
516
|
+
const O = {
|
|
517
|
+
onPrev: y,
|
|
518
|
+
onSuperPrev: Y,
|
|
519
|
+
onNext: L,
|
|
520
|
+
onSuperNext: f,
|
|
521
|
+
DATEPICKER_LOCALE: le
|
|
522
|
+
};
|
|
523
|
+
function fe(T) {
|
|
524
|
+
H(T);
|
|
525
|
+
}
|
|
526
|
+
return z === "year" ? /* @__PURE__ */ o(
|
|
527
|
+
Me,
|
|
528
|
+
{
|
|
529
|
+
...S(z),
|
|
530
|
+
pageShowDate: s,
|
|
531
|
+
onSelect: (T, Ce) => {
|
|
532
|
+
H("month"), E(Ce);
|
|
533
|
+
},
|
|
534
|
+
disabledDate: N
|
|
535
|
+
}
|
|
536
|
+
) : z === "month" ? /* @__PURE__ */ o(
|
|
537
|
+
kt,
|
|
538
|
+
{
|
|
539
|
+
...S(z),
|
|
540
|
+
setPageShowDate: E,
|
|
541
|
+
pageShowDate: s,
|
|
542
|
+
panelMode: z,
|
|
543
|
+
getHeaderOperations: S,
|
|
544
|
+
onSelect: (T, Ce) => {
|
|
545
|
+
H("date"), E(Ce);
|
|
546
|
+
},
|
|
547
|
+
disabledDate: N,
|
|
548
|
+
setPanelMode: H
|
|
549
|
+
}
|
|
550
|
+
) : /* @__PURE__ */ o("div", { className: $, style: P, children: c && J ? ue() : /* @__PURE__ */ Z("div", { className: `${b}-inner`, children: [
|
|
551
|
+
/* @__PURE__ */ o(
|
|
552
|
+
tt,
|
|
553
|
+
{
|
|
554
|
+
...O,
|
|
555
|
+
icons: k,
|
|
556
|
+
prefixCls: A?.("picker"),
|
|
557
|
+
value: s,
|
|
558
|
+
mode: z,
|
|
559
|
+
onChangePanel: fe,
|
|
560
|
+
rtl: B
|
|
561
|
+
}
|
|
562
|
+
),
|
|
563
|
+
q()
|
|
564
|
+
] }) });
|
|
565
|
+
}
|
|
566
|
+
function nn(l) {
|
|
567
|
+
const {
|
|
568
|
+
pageShowDate: n,
|
|
569
|
+
style: m,
|
|
570
|
+
onMouseEnterCell: u,
|
|
571
|
+
onMouseLeaveCell: s,
|
|
572
|
+
dateRender: c,
|
|
573
|
+
disabledDate: P,
|
|
574
|
+
value: a,
|
|
575
|
+
locale: i,
|
|
576
|
+
isRangePicker: R,
|
|
577
|
+
onSelect: w,
|
|
578
|
+
rangeValues: N,
|
|
579
|
+
onSuperPrev: x,
|
|
580
|
+
onSuperNext: h,
|
|
581
|
+
format: g,
|
|
582
|
+
getHeaderOperations: V,
|
|
583
|
+
setPageShowDate: F,
|
|
584
|
+
icons: I,
|
|
585
|
+
panelMode: C,
|
|
586
|
+
setPanelMode: y,
|
|
587
|
+
...L
|
|
588
|
+
} = l, { locale: Y, getPrefixCls: f, rtl: W } = ie(Re), D = Ze(Y.DatePicker, i), S = D.Calendar, E = f?.("panel-quarter"), Q = he(E), p = R ? { rangeValues: N } : { value: a }, k = n.year(), J = [
|
|
589
|
+
[1, 2, 3, 4].map((v, A, B) => ({
|
|
590
|
+
name: S.quarter?.[`q${v}`] || `Q${v}`,
|
|
591
|
+
// 潘启宝修改 2024年12月23日 星期一 15时21分14秒 CST
|
|
592
|
+
time: Nt(`${k}-${sn((v - 1) * 3 + 1, 2, "0")}-01`)
|
|
593
|
+
}))
|
|
594
|
+
];
|
|
595
|
+
function z() {
|
|
596
|
+
return /* @__PURE__ */ o(
|
|
597
|
+
et,
|
|
598
|
+
{
|
|
599
|
+
...L,
|
|
600
|
+
...p,
|
|
601
|
+
prefixCls: f?.("picker"),
|
|
602
|
+
rows: J,
|
|
603
|
+
onSelectDate: w,
|
|
604
|
+
isSameTime: (v, A) => v.isSame(A, "month"),
|
|
605
|
+
onMouseEnterCell: u,
|
|
606
|
+
onMouseLeaveCell: s,
|
|
607
|
+
dateRender: c,
|
|
608
|
+
disabledDate: P,
|
|
609
|
+
CALENDAR_LOCALE: S,
|
|
610
|
+
mode: "quarter",
|
|
611
|
+
format: g
|
|
612
|
+
}
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
const H = { onSuperPrev: x, onSuperNext: h };
|
|
616
|
+
function j(v) {
|
|
617
|
+
y(v);
|
|
618
|
+
}
|
|
619
|
+
return C === "year" ? /* @__PURE__ */ o(
|
|
620
|
+
Me,
|
|
621
|
+
{
|
|
622
|
+
...V(C),
|
|
623
|
+
pageShowDate: n,
|
|
624
|
+
onSelect: (v, A) => {
|
|
625
|
+
y("quarter"), F(A);
|
|
626
|
+
},
|
|
627
|
+
disabledDate: P
|
|
628
|
+
}
|
|
629
|
+
) : /* @__PURE__ */ Z("div", { className: Q, style: m, children: [
|
|
630
|
+
/* @__PURE__ */ o(
|
|
631
|
+
tt,
|
|
632
|
+
{
|
|
633
|
+
...H,
|
|
634
|
+
icons: I,
|
|
635
|
+
prefixCls: f?.("picker"),
|
|
636
|
+
value: n,
|
|
637
|
+
mode: C,
|
|
638
|
+
onChangePanel: j,
|
|
639
|
+
DATEPICKER_LOCALE: D,
|
|
640
|
+
rtl: W
|
|
641
|
+
}
|
|
642
|
+
),
|
|
643
|
+
/* @__PURE__ */ o("div", { className: `${E}-wrapper`, children: z() })
|
|
644
|
+
] });
|
|
645
|
+
}
|
|
646
|
+
function on(l) {
|
|
647
|
+
const {
|
|
648
|
+
value: n,
|
|
649
|
+
isRangePicker: m,
|
|
650
|
+
rangeValues: u,
|
|
651
|
+
onPrev: s,
|
|
652
|
+
onNext: c,
|
|
653
|
+
onSuperPrev: P,
|
|
654
|
+
onSuperNext: a,
|
|
655
|
+
localeName: i,
|
|
656
|
+
...R
|
|
657
|
+
} = l, { weekStart: w } = ie(Ee), N = m ? { rangeValues: u } : { value: n }, x = { onPrev: s, onNext: c, onSuperPrev: P, onSuperNext: a };
|
|
658
|
+
function h(g, V) {
|
|
659
|
+
return X.isSameWeek(g, V, w, i);
|
|
660
|
+
}
|
|
661
|
+
return /* @__PURE__ */ o(
|
|
662
|
+
bt,
|
|
663
|
+
{
|
|
664
|
+
...R,
|
|
665
|
+
...N,
|
|
666
|
+
...x,
|
|
667
|
+
isWeek: !0,
|
|
668
|
+
isSameTime: h,
|
|
669
|
+
isRangePicker: m
|
|
670
|
+
}
|
|
671
|
+
);
|
|
672
|
+
}
|
|
673
|
+
function yt(l, n) {
|
|
674
|
+
const m = [];
|
|
675
|
+
for (let u = l; u < n; u++)
|
|
676
|
+
m.push(u);
|
|
677
|
+
return m;
|
|
678
|
+
}
|
|
679
|
+
function no(l) {
|
|
680
|
+
const {
|
|
681
|
+
mode: n = "date",
|
|
682
|
+
showTime: m,
|
|
683
|
+
disabledDate: u,
|
|
684
|
+
disabledTime: s,
|
|
685
|
+
format: c,
|
|
686
|
+
dateRender: P,
|
|
687
|
+
value: a,
|
|
688
|
+
timeValues: i,
|
|
689
|
+
icons: R,
|
|
690
|
+
locale: w,
|
|
691
|
+
pageShowDates: N,
|
|
692
|
+
onMouseEnterCell: x,
|
|
693
|
+
onMouseLeaveCell: h,
|
|
694
|
+
onTimePickerSelect: g,
|
|
695
|
+
onSelectPanel: V,
|
|
696
|
+
onPrev: F,
|
|
697
|
+
onSuperPrev: I,
|
|
698
|
+
onNext: C,
|
|
699
|
+
onSuperNext: y,
|
|
700
|
+
localeName: L,
|
|
701
|
+
popupVisible: Y,
|
|
702
|
+
timePickerProps: f,
|
|
703
|
+
getHeaderOperations: W,
|
|
704
|
+
setRangePageShowDates: D,
|
|
705
|
+
disabledTimePickerIndex: S,
|
|
706
|
+
hideNotInViewDates: E,
|
|
707
|
+
isTimePanel: Q,
|
|
708
|
+
valueShowHover: p,
|
|
709
|
+
panelModes: k,
|
|
710
|
+
setPanelModes: J
|
|
711
|
+
} = l, { getPrefixCls: z } = ie(Re), H = z?.("picker-range"), { utcOffset: j, timezone: v } = ie(Ee), A = N[0] || te(j, v), B = N[1] || te(j, v), re = {
|
|
712
|
+
isRangePicker: !0,
|
|
713
|
+
rangeValues: oe(a, c),
|
|
714
|
+
onMouseEnterCell: x,
|
|
715
|
+
onMouseLeaveCell: h,
|
|
716
|
+
locale: w,
|
|
717
|
+
disabledDate: u,
|
|
718
|
+
onSelect: V,
|
|
719
|
+
dateRender: P,
|
|
720
|
+
getHeaderOperations: W,
|
|
721
|
+
icons: R,
|
|
722
|
+
valueShowHover: p
|
|
723
|
+
}, me = {
|
|
724
|
+
pageShowDate: A,
|
|
725
|
+
panelMode: k[0],
|
|
726
|
+
setPanelMode: (U) => J([U, k[1]]),
|
|
727
|
+
format: pe(c, 0)
|
|
728
|
+
}, le = {
|
|
729
|
+
pageShowDate: B,
|
|
730
|
+
panelMode: k[1],
|
|
731
|
+
setPanelMode: (U) => J([k[0], U]),
|
|
732
|
+
format: pe(c, 1)
|
|
733
|
+
};
|
|
734
|
+
function b() {
|
|
735
|
+
const U = {
|
|
736
|
+
onPrev: F,
|
|
737
|
+
onSuperPrev: I
|
|
738
|
+
}, ne = {
|
|
739
|
+
onNext: C,
|
|
740
|
+
onSuperNext: y
|
|
741
|
+
}, _ = {
|
|
742
|
+
...re,
|
|
743
|
+
localeName: L,
|
|
744
|
+
popupVisible: Y,
|
|
745
|
+
timePickerProps: f,
|
|
746
|
+
getHeaderOperations: W,
|
|
747
|
+
hideNotInViewDates: E,
|
|
748
|
+
isTimePanel: Q
|
|
749
|
+
};
|
|
750
|
+
if (n === "week")
|
|
751
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
752
|
+
/* @__PURE__ */ o(
|
|
753
|
+
on,
|
|
754
|
+
{
|
|
755
|
+
setPageShowDate: (O) => D([O, O], 0),
|
|
756
|
+
...U,
|
|
757
|
+
..._,
|
|
758
|
+
...me
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
/* @__PURE__ */ o(
|
|
762
|
+
on,
|
|
763
|
+
{
|
|
764
|
+
setPageShowDate: (O) => D([X.subtract(O, 1, "month"), O], 1),
|
|
765
|
+
...ne,
|
|
766
|
+
..._,
|
|
767
|
+
...le
|
|
768
|
+
}
|
|
769
|
+
)
|
|
770
|
+
] });
|
|
771
|
+
const q = {
|
|
772
|
+
disabledTime: s,
|
|
773
|
+
showTime: m
|
|
774
|
+
}, ue = {};
|
|
775
|
+
if (typeof S == "number" && (ue.disabledTime = () => ({
|
|
776
|
+
disabledHours: () => yt(0, 24),
|
|
777
|
+
disabledMinutes: () => yt(0, 60),
|
|
778
|
+
disabledSeconds: () => yt(0, 60)
|
|
779
|
+
}), Je(m))) {
|
|
780
|
+
const O = { ...m, defaultValue: void 0 };
|
|
781
|
+
ue.showTime = {
|
|
782
|
+
...O,
|
|
783
|
+
hideDisabledOptions: !1
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
787
|
+
/* @__PURE__ */ o(
|
|
788
|
+
bt,
|
|
789
|
+
{
|
|
790
|
+
...U,
|
|
791
|
+
..._,
|
|
792
|
+
...q,
|
|
793
|
+
...S === 0 ? ue : {},
|
|
794
|
+
onTimePickerSelect: (O, fe) => {
|
|
795
|
+
g(0, O, fe);
|
|
796
|
+
},
|
|
797
|
+
index: 0,
|
|
798
|
+
setPageShowDate: (O) => D([O, O], 0),
|
|
799
|
+
timeValue: i[0],
|
|
800
|
+
...me
|
|
801
|
+
}
|
|
802
|
+
),
|
|
803
|
+
/* @__PURE__ */ o(
|
|
804
|
+
bt,
|
|
805
|
+
{
|
|
806
|
+
...ne,
|
|
807
|
+
..._,
|
|
808
|
+
...q,
|
|
809
|
+
...S === 1 ? ue : {},
|
|
810
|
+
onTimePickerSelect: (O, fe) => {
|
|
811
|
+
g(1, O, fe);
|
|
812
|
+
},
|
|
813
|
+
index: 1,
|
|
814
|
+
setPageShowDate: (O) => D([X.subtract(O, 1, "month"), O], 1),
|
|
815
|
+
timeValue: i[1],
|
|
816
|
+
...le
|
|
817
|
+
}
|
|
818
|
+
)
|
|
819
|
+
] });
|
|
820
|
+
}
|
|
821
|
+
function $() {
|
|
822
|
+
const U = {
|
|
823
|
+
onSuperPrev: I
|
|
824
|
+
}, ne = {
|
|
825
|
+
onSuperNext: y
|
|
826
|
+
}, _ = re;
|
|
827
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
828
|
+
/* @__PURE__ */ o(
|
|
829
|
+
kt,
|
|
830
|
+
{
|
|
831
|
+
setPageShowDate: (q) => D([q, q], 0),
|
|
832
|
+
...U,
|
|
833
|
+
..._,
|
|
834
|
+
...me
|
|
835
|
+
}
|
|
836
|
+
),
|
|
837
|
+
/* @__PURE__ */ o(
|
|
838
|
+
kt,
|
|
839
|
+
{
|
|
840
|
+
setPageShowDate: (q) => D([X.subtract(q, 1, "year"), q], 1),
|
|
841
|
+
...ne,
|
|
842
|
+
..._,
|
|
843
|
+
...le
|
|
844
|
+
}
|
|
845
|
+
)
|
|
846
|
+
] });
|
|
847
|
+
}
|
|
848
|
+
function Ie() {
|
|
849
|
+
const U = {
|
|
850
|
+
onSuperPrev: I
|
|
851
|
+
}, ne = {
|
|
852
|
+
onSuperNext: y
|
|
853
|
+
}, _ = re;
|
|
854
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
855
|
+
/* @__PURE__ */ o(
|
|
856
|
+
Me,
|
|
857
|
+
{
|
|
858
|
+
...U,
|
|
859
|
+
..._,
|
|
860
|
+
pageShowDate: A
|
|
861
|
+
}
|
|
862
|
+
),
|
|
863
|
+
/* @__PURE__ */ o(
|
|
864
|
+
Me,
|
|
865
|
+
{
|
|
866
|
+
...ne,
|
|
867
|
+
..._,
|
|
868
|
+
pageShowDate: B
|
|
869
|
+
}
|
|
870
|
+
)
|
|
871
|
+
] });
|
|
872
|
+
}
|
|
873
|
+
function ce() {
|
|
874
|
+
const U = {
|
|
875
|
+
onSuperPrev: I
|
|
876
|
+
}, ne = {
|
|
877
|
+
onSuperNext: y
|
|
878
|
+
}, _ = re;
|
|
879
|
+
return /* @__PURE__ */ Z(we, { children: [
|
|
880
|
+
/* @__PURE__ */ o(
|
|
881
|
+
nn,
|
|
882
|
+
{
|
|
883
|
+
setPageShowDate: (q) => D([q, q], 0),
|
|
884
|
+
...U,
|
|
885
|
+
..._,
|
|
886
|
+
...me
|
|
887
|
+
}
|
|
888
|
+
),
|
|
889
|
+
/* @__PURE__ */ o(
|
|
890
|
+
nn,
|
|
891
|
+
{
|
|
892
|
+
setPageShowDate: (q) => D([X.subtract(q, 1, "year"), q], 1),
|
|
893
|
+
...ne,
|
|
894
|
+
..._,
|
|
895
|
+
...le
|
|
896
|
+
}
|
|
897
|
+
)
|
|
898
|
+
] });
|
|
899
|
+
}
|
|
900
|
+
return /* @__PURE__ */ o("div", { className: H, children: /* @__PURE__ */ Z("div", { className: `${H}-wrapper`, children: [
|
|
901
|
+
(n === "date" || n === "week") && b(),
|
|
902
|
+
n === "month" && $(),
|
|
903
|
+
n === "year" && Ie(),
|
|
904
|
+
n === "quarter" && ce()
|
|
905
|
+
] }) });
|
|
906
|
+
}
|
|
907
|
+
function oo(l) {
|
|
908
|
+
const { format: n, showTime: m, mode: u } = l;
|
|
909
|
+
let s;
|
|
910
|
+
if (n)
|
|
911
|
+
s = n;
|
|
912
|
+
else
|
|
913
|
+
switch (u) {
|
|
914
|
+
case "date":
|
|
915
|
+
s = m ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
916
|
+
break;
|
|
917
|
+
case "month":
|
|
918
|
+
s = "YYYY-MM";
|
|
919
|
+
break;
|
|
920
|
+
case "year":
|
|
921
|
+
s = "YYYY";
|
|
922
|
+
break;
|
|
923
|
+
case "week":
|
|
924
|
+
s = "YYYY-wo";
|
|
925
|
+
break;
|
|
926
|
+
case "quarter":
|
|
927
|
+
s = "YYYY-[Q]Q";
|
|
928
|
+
break;
|
|
929
|
+
default:
|
|
930
|
+
s = "YYYY-MM-DD";
|
|
931
|
+
}
|
|
932
|
+
return s;
|
|
933
|
+
}
|
|
934
|
+
const rn = {
|
|
935
|
+
allowClear: !0,
|
|
936
|
+
unmountOnExit: !0,
|
|
937
|
+
position: "bl",
|
|
938
|
+
editable: !0,
|
|
939
|
+
mode: "date"
|
|
940
|
+
}, ro = { bottom: 4 }, ao = (l, n) => {
|
|
941
|
+
const {
|
|
942
|
+
getPrefixCls: m,
|
|
943
|
+
locale: u,
|
|
944
|
+
size: s,
|
|
945
|
+
componentConfig: c,
|
|
946
|
+
rtl: P
|
|
947
|
+
} = ie(Re);
|
|
948
|
+
P && (rn.position = "br");
|
|
949
|
+
const a = Hn(
|
|
950
|
+
l,
|
|
951
|
+
rn,
|
|
952
|
+
c?.DatePicker
|
|
953
|
+
), {
|
|
954
|
+
allowClear: i,
|
|
955
|
+
className: R,
|
|
956
|
+
style: w,
|
|
957
|
+
placeholder: N,
|
|
958
|
+
getPopupContainer: x,
|
|
959
|
+
disabled: h,
|
|
960
|
+
position: g,
|
|
961
|
+
error: V,
|
|
962
|
+
status: F,
|
|
963
|
+
unmountOnExit: I,
|
|
964
|
+
editable: C,
|
|
965
|
+
triggerProps: y,
|
|
966
|
+
shortcuts: L,
|
|
967
|
+
onSelect: Y,
|
|
968
|
+
onVisibleChange: f,
|
|
969
|
+
value: W,
|
|
970
|
+
onChange: D,
|
|
971
|
+
icons: S,
|
|
972
|
+
disabledDate: E,
|
|
973
|
+
disabledTime: Q,
|
|
974
|
+
mode: p,
|
|
975
|
+
showTime: k,
|
|
976
|
+
onSelectShortcut: J,
|
|
977
|
+
extra: z,
|
|
978
|
+
shortcutsPlacementLeft: H,
|
|
979
|
+
onOk: j,
|
|
980
|
+
defaultPickerValue: v,
|
|
981
|
+
pickerValue: A,
|
|
982
|
+
panelRender: B,
|
|
983
|
+
onPickerValueChange: De,
|
|
984
|
+
triggerElement: re,
|
|
985
|
+
clearRangeOnReselect: me,
|
|
986
|
+
separator: le,
|
|
987
|
+
utcOffset: b,
|
|
988
|
+
timezone: $,
|
|
989
|
+
inputProps: Ie
|
|
990
|
+
} = a, ce = m?.("picker-range"), U = u?.DatePicker, ne = An(a.dayStartOfWeek) ? Qn(u?.dayjsLocale) : a.dayStartOfWeek, _ = Le(null), q = Le(null), ue = Le(null), O = Le(null), fe = Le(null);
|
|
991
|
+
Mn(
|
|
992
|
+
n,
|
|
993
|
+
() => ({
|
|
994
|
+
focus(e) {
|
|
995
|
+
_.current?.focus?.(e);
|
|
996
|
+
},
|
|
997
|
+
blur() {
|
|
998
|
+
Yt();
|
|
999
|
+
}
|
|
1000
|
+
}),
|
|
1001
|
+
[]
|
|
1002
|
+
);
|
|
1003
|
+
const T = U.Calendar?.[p]?.format || oo(a);
|
|
1004
|
+
function Ce() {
|
|
1005
|
+
if (G(h)) {
|
|
1006
|
+
if (h[0] && !h[1])
|
|
1007
|
+
return 1;
|
|
1008
|
+
if (h[1] && !h[0])
|
|
1009
|
+
return 0;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
const ye = Ce(), de = typeof ye == "number", ln = de ? 1 ^ ye : void 0, [ee, nt] = se(
|
|
1013
|
+
de ? ye : 0
|
|
1014
|
+
);
|
|
1015
|
+
Ke(() => {
|
|
1016
|
+
de && nt(ye);
|
|
1017
|
+
}, [h]);
|
|
1018
|
+
const He = 1 ^ ee, [_e, ke] = se(), [xt, Fe] = se(), [ot, rt] = se(fn()), [ge, be] = se(), [cn, Ye] = se(), [Vt, at] = se(), [un, dn] = se(() => !!a.popupVisible), [st, it] = se([p, p]), [lt, Lt] = se(!1), Se = a.popupVisible ?? un, ct = oe(
|
|
1019
|
+
W,
|
|
1020
|
+
T,
|
|
1021
|
+
b,
|
|
1022
|
+
$
|
|
1023
|
+
), ve = "value" in a ? ct : ot, K = Vt || ge || ve || [], ae = Ge(ge || ve), $e = Le(!0), ut = te(), Tt = Jt(ut, b, $);
|
|
1024
|
+
function mn() {
|
|
1025
|
+
const e = [], t = Je(k) && k.defaultValue ? oe(k.defaultValue, k.format || "HH:mm:ss") : [];
|
|
1026
|
+
return e[0] = K[0] || t[0] || Tt, e[1] = K[1] || t[1] || Tt, e;
|
|
1027
|
+
}
|
|
1028
|
+
const We = mn(), Rt = de ? (e) => ye === 0 ? e.isAfter(K[1], p) : e.isBefore(K[0], p) : void 0, dt = re !== void 0, mt = dt || me;
|
|
1029
|
+
function fn() {
|
|
1030
|
+
let e;
|
|
1031
|
+
if (a.value ? e = oe(a.value, T, b, $) : e = oe(a.defaultValue, T, b, $), de && (!e || e && !e[He])) {
|
|
1032
|
+
const t = [];
|
|
1033
|
+
return t[He] = te(b, $), t;
|
|
1034
|
+
}
|
|
1035
|
+
return e;
|
|
1036
|
+
}
|
|
1037
|
+
const ft = ve || oe(v, T) || [ut, ut], [Et, Be] = se(
|
|
1038
|
+
Ne(ft)
|
|
1039
|
+
), ze = Ne(
|
|
1040
|
+
oe(A, T, b, $)
|
|
1041
|
+
) || Et, pt = Kt(b), ht = Kt($);
|
|
1042
|
+
Qt(() => {
|
|
1043
|
+
if (G(ot) && (pt !== b || $ !== ht)) {
|
|
1044
|
+
const t = ot.map(
|
|
1045
|
+
(r, d, M) => wt(r, pt, ht)
|
|
1046
|
+
).map(
|
|
1047
|
+
(r, d, M) => Jt(r, b, $)
|
|
1048
|
+
);
|
|
1049
|
+
rt(t);
|
|
1050
|
+
}
|
|
1051
|
+
}, [b, pt, $, ht]), Qt(() => {
|
|
1052
|
+
Be(Ne(ft));
|
|
1053
|
+
}, [p]), Ke(() => {
|
|
1054
|
+
it([p, p]);
|
|
1055
|
+
}, [p]), Ke(() => {
|
|
1056
|
+
if (Fe(void 0), ke(void 0), Se) {
|
|
1057
|
+
const e = Ne(ft);
|
|
1058
|
+
Lt(!1), it([p, p]), Be(e), gt(e), be(ve), H && ue.current && q.current && (ue.current.style.maxHeight = `${q.current.clientHeight}px`);
|
|
1059
|
+
} else
|
|
1060
|
+
be(void 0), Ye(void 0), at(void 0), Yt();
|
|
1061
|
+
$e.current = Se;
|
|
1062
|
+
}, [Se]);
|
|
1063
|
+
const pn = ct?.[0]?.format(pe(T, 0)), hn = ct?.[1]?.format(pe(T, 1));
|
|
1064
|
+
Ke(() => {
|
|
1065
|
+
be(void 0), Ye(void 0);
|
|
1066
|
+
}, [pn, hn]);
|
|
1067
|
+
function Ae(e, t = ee) {
|
|
1068
|
+
const r = Ne(e, t);
|
|
1069
|
+
Be(r), gt(r);
|
|
1070
|
+
}
|
|
1071
|
+
function gt(e) {
|
|
1072
|
+
It([e[0], Et[0]], p) || De?.(
|
|
1073
|
+
G(e) ? e.map((t, r) => t && t.format(pe(T, r))) : void 0,
|
|
1074
|
+
e
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1077
|
+
function Ne(e, t = ee) {
|
|
1078
|
+
const r = t === 0 || It(e, p);
|
|
1079
|
+
if (G(e) && e.length < 2)
|
|
1080
|
+
return je(
|
|
1081
|
+
e[0] || te(b, $),
|
|
1082
|
+
p,
|
|
1083
|
+
"prev"
|
|
1084
|
+
);
|
|
1085
|
+
if (G(e) && e.length === 2)
|
|
1086
|
+
return e[t] ? je(
|
|
1087
|
+
e[t],
|
|
1088
|
+
p,
|
|
1089
|
+
r ? "prev" : "next"
|
|
1090
|
+
) : je(
|
|
1091
|
+
e[t === 0 ? 1 : 0] || te(b, $),
|
|
1092
|
+
p,
|
|
1093
|
+
r && !e[t === 0 ? 1 : 0] ? "prev" : "next"
|
|
1094
|
+
);
|
|
1095
|
+
}
|
|
1096
|
+
function It(e, t) {
|
|
1097
|
+
if (e?.length === 2 && Wt(e))
|
|
1098
|
+
return (t === "date" || t === "week") && e[0].isSame(e[1], "month") || (t === "month" || t === "quarter") && e[0].isSame(e[1], "year") || t === "year" && Math.floor(e[0].year() / 10) === Math.floor(e[1].year() / 10);
|
|
1099
|
+
}
|
|
1100
|
+
function je(e = te(b, $), t = p, r = "prev") {
|
|
1101
|
+
const d = r === "prev";
|
|
1102
|
+
switch (t) {
|
|
1103
|
+
case "date":
|
|
1104
|
+
case "week":
|
|
1105
|
+
return d ? [e, X.add(e, 1, "month")] : [X.subtract(e, 1, "month"), e];
|
|
1106
|
+
case "month":
|
|
1107
|
+
case "quarter":
|
|
1108
|
+
return d ? [e, X.add(e, 1, "year")] : [X.subtract(e, 1, "year"), e];
|
|
1109
|
+
case "year":
|
|
1110
|
+
return d ? [e, X.add(e, 10, "year")] : [X.subtract(e, 10, "year"), e];
|
|
1111
|
+
default:
|
|
1112
|
+
return [];
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
function St(e) {
|
|
1116
|
+
_.current?.focus?.(de ? ye : e);
|
|
1117
|
+
}
|
|
1118
|
+
function Yt() {
|
|
1119
|
+
_.current?.blur?.();
|
|
1120
|
+
}
|
|
1121
|
+
function qe(e) {
|
|
1122
|
+
f?.(e), dn(e);
|
|
1123
|
+
}
|
|
1124
|
+
function gn(e) {
|
|
1125
|
+
e.stopPropagation();
|
|
1126
|
+
let t = [...K];
|
|
1127
|
+
de ? t[ye] = void 0 : t = void 0, rt(t), be(t), Mt(t), a.onClear?.();
|
|
1128
|
+
}
|
|
1129
|
+
function $t(e, t) {
|
|
1130
|
+
if (nt(e), K && K.length && !t) {
|
|
1131
|
+
const r = Ne(K, e);
|
|
1132
|
+
Be(r), gt(r);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
function At(e) {
|
|
1136
|
+
const t = typeof Rt == "function" ? Rt(e) : !1;
|
|
1137
|
+
return (typeof E == "function" ? E(e) : !1) || t;
|
|
1138
|
+
}
|
|
1139
|
+
function Ot(e) {
|
|
1140
|
+
return Bn(e, T, ee) && !At(oe(e, T));
|
|
1141
|
+
}
|
|
1142
|
+
function Sn(e) {
|
|
1143
|
+
const t = [...K || []], r = e.target.value;
|
|
1144
|
+
ke(r), Se || qe(!0), Ot(r) && (t[ee] = oe(r, T), be(t), Ae(t), ke(void 0));
|
|
1145
|
+
}
|
|
1146
|
+
function vn() {
|
|
1147
|
+
_e && ke(void 0);
|
|
1148
|
+
}
|
|
1149
|
+
function Mt(e) {
|
|
1150
|
+
if (zn(ve, e)) {
|
|
1151
|
+
const t = G(e) ? e.map(
|
|
1152
|
+
(r, d, M) => Ct(
|
|
1153
|
+
wt(r, b, $),
|
|
1154
|
+
u?.dayjsLocale
|
|
1155
|
+
)
|
|
1156
|
+
) : void 0;
|
|
1157
|
+
D?.(
|
|
1158
|
+
G(t) ? t.map((r, d) => r && r.format(pe(T, d))) : void 0,
|
|
1159
|
+
t
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
function Pn() {
|
|
1164
|
+
G(ge) && ge.length ? _e && !Ot(_e) ? ke(void 0) : ae !== 2 ? Ue() : ae === 2 && xe(ge) : Se && qe(!1);
|
|
1165
|
+
}
|
|
1166
|
+
function xe(e, t) {
|
|
1167
|
+
const r = e || K;
|
|
1168
|
+
if (!r || !r[0] || !r[1])
|
|
1169
|
+
return;
|
|
1170
|
+
const d = Oe(r);
|
|
1171
|
+
rt(d), Mt(d), re === null || t || qe(!1);
|
|
1172
|
+
}
|
|
1173
|
+
function wn() {
|
|
1174
|
+
xe();
|
|
1175
|
+
const e = K.map(
|
|
1176
|
+
(t, r, d) => Ct(t, u?.dayjsLocale)
|
|
1177
|
+
);
|
|
1178
|
+
j?.(
|
|
1179
|
+
e.map(
|
|
1180
|
+
(t, r) => t && t.format(pe(T, r))
|
|
1181
|
+
),
|
|
1182
|
+
e
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
function Ht() {
|
|
1186
|
+
switch (p) {
|
|
1187
|
+
case "date":
|
|
1188
|
+
case "week":
|
|
1189
|
+
return "date";
|
|
1190
|
+
case "month":
|
|
1191
|
+
return "month";
|
|
1192
|
+
case "year":
|
|
1193
|
+
return "year";
|
|
1194
|
+
default:
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
function _t(e) {
|
|
1199
|
+
if (ae !== 2)
|
|
1200
|
+
return !1;
|
|
1201
|
+
const t = ge || ve;
|
|
1202
|
+
return !!(ee === 0 && e.isAfter(t[1], Ht()) || ee === 1 && e.isBefore(t[0], Ht()));
|
|
1203
|
+
}
|
|
1204
|
+
function Cn(e, t) {
|
|
1205
|
+
const r = _t(t) && $e.current, d = mt && ae === 2 && !de ? [] : [...K], M = dt ? ae === 0 || ae === 2 ? 0 : 1 : ee, Ve = k ? Qe(t, We[M]) : t;
|
|
1206
|
+
r ? (d[M] = Ve, d[1 ^ M] = void 0) : d[M] = Ve;
|
|
1207
|
+
const vt = Oe(d);
|
|
1208
|
+
Ft(vt), ke(void 0), Fe(void 0);
|
|
1209
|
+
const Pt = Ge(d);
|
|
1210
|
+
mt ? ae === 0 || ae === 2 && !de ? dt ? nt(1) : Ue(!0) : k || xe(d) : Pt <= 1 ? Ue(!0) : ae === 2 && $e.current && !de ? ($e.current = !1, Ue(!0), !k && !r && xe(d, !0)) : ($e.current = !1, !k && !r && xe(d));
|
|
1211
|
+
}
|
|
1212
|
+
function yn(e, t, r) {
|
|
1213
|
+
const d = G(K) ? [...K] : [], M = Qe(
|
|
1214
|
+
d[e] || te(b, $),
|
|
1215
|
+
r
|
|
1216
|
+
);
|
|
1217
|
+
d[e] = M, Ft(d);
|
|
1218
|
+
}
|
|
1219
|
+
function Ft(e) {
|
|
1220
|
+
be(e), Ye(void 0);
|
|
1221
|
+
const r = Oe(e).map(
|
|
1222
|
+
(d, M, Ve) => Ct(
|
|
1223
|
+
wt(d, b, $),
|
|
1224
|
+
u?.dayjsLocale
|
|
1225
|
+
)
|
|
1226
|
+
);
|
|
1227
|
+
Y?.(
|
|
1228
|
+
r.map((d, M) => d && d.format(pe(T, M))),
|
|
1229
|
+
r,
|
|
1230
|
+
{ type: ee === 1 ? "end" : "start" }
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1233
|
+
function Ue(e) {
|
|
1234
|
+
$t(He, e), setTimeout(() => St(He));
|
|
1235
|
+
}
|
|
1236
|
+
function kn(e, t) {
|
|
1237
|
+
const r = [...K || []];
|
|
1238
|
+
if (!t && (mt ? ae === 1 : ae !== 0) && !_t(e) && (r[ee] = Qe(
|
|
1239
|
+
e,
|
|
1240
|
+
We[ee]
|
|
1241
|
+
), Ye(r), ke(void 0)), !t) {
|
|
1242
|
+
const M = k ? Qe(e, We[ee]) : e;
|
|
1243
|
+
Fe(
|
|
1244
|
+
M.locale(u?.dayjsLocale).format(pe(T, ee))
|
|
1245
|
+
);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function Dn() {
|
|
1249
|
+
Ye(void 0), Fe(void 0);
|
|
1250
|
+
}
|
|
1251
|
+
function Wt(e) {
|
|
1252
|
+
return e && G(e) && e.length === 2 && Ut(e[0]) && Ut(e[1]);
|
|
1253
|
+
}
|
|
1254
|
+
function Bt(e) {
|
|
1255
|
+
const t = typeof e.value == "function" && e.value();
|
|
1256
|
+
return Wt(t);
|
|
1257
|
+
}
|
|
1258
|
+
function zt() {
|
|
1259
|
+
clearTimeout(O.current), clearTimeout(fe.current), O.current = null, fe.current = null;
|
|
1260
|
+
}
|
|
1261
|
+
function bn(e) {
|
|
1262
|
+
zt(), O.current = setTimeout(() => {
|
|
1263
|
+
if (Bt(e)) {
|
|
1264
|
+
const t = oe(
|
|
1265
|
+
e.value(),
|
|
1266
|
+
T,
|
|
1267
|
+
b,
|
|
1268
|
+
$
|
|
1269
|
+
);
|
|
1270
|
+
at(t), Ae(t);
|
|
1271
|
+
}
|
|
1272
|
+
}, 50);
|
|
1273
|
+
}
|
|
1274
|
+
function Nn() {
|
|
1275
|
+
zt(), fe.current = setTimeout(() => {
|
|
1276
|
+
at(void 0), Ae(
|
|
1277
|
+
ge || ve || [
|
|
1278
|
+
te(b, $),
|
|
1279
|
+
te(b, $)
|
|
1280
|
+
]
|
|
1281
|
+
);
|
|
1282
|
+
}, 50);
|
|
1283
|
+
}
|
|
1284
|
+
function xn(e) {
|
|
1285
|
+
if (J?.(e), Bt(e)) {
|
|
1286
|
+
const t = oe(
|
|
1287
|
+
e.value(),
|
|
1288
|
+
T,
|
|
1289
|
+
b,
|
|
1290
|
+
$
|
|
1291
|
+
);
|
|
1292
|
+
xe(t);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
function Pe(e, t, r = 1) {
|
|
1296
|
+
const d = e === "prev" ? 0 : 1;
|
|
1297
|
+
let M = [...ze];
|
|
1298
|
+
e === "prev" && (M[d] = X.subtract(
|
|
1299
|
+
ze[d],
|
|
1300
|
+
r,
|
|
1301
|
+
t
|
|
1302
|
+
)), e === "next" && (M[d] = X.add(
|
|
1303
|
+
ze[d],
|
|
1304
|
+
r,
|
|
1305
|
+
t
|
|
1306
|
+
)), M = je(
|
|
1307
|
+
M[d],
|
|
1308
|
+
p,
|
|
1309
|
+
e
|
|
1310
|
+
), Ae(M);
|
|
1311
|
+
}
|
|
1312
|
+
function jt(e = p) {
|
|
1313
|
+
if (e === "date" || e === "week")
|
|
1314
|
+
return {
|
|
1315
|
+
onPrev: () => Pe("prev", "month"),
|
|
1316
|
+
onNext: () => Pe("next", "month"),
|
|
1317
|
+
onSuperPrev: () => Pe("prev", "year"),
|
|
1318
|
+
onSuperNext: () => Pe("next", "year")
|
|
1319
|
+
};
|
|
1320
|
+
if (e === "month" || e === "quarter")
|
|
1321
|
+
return {
|
|
1322
|
+
onSuperPrev: () => Pe("prev", "year"),
|
|
1323
|
+
onSuperNext: () => Pe("next", "year")
|
|
1324
|
+
};
|
|
1325
|
+
if (e === "year")
|
|
1326
|
+
return {
|
|
1327
|
+
onSuperPrev: () => Pe("prev", "year", 10),
|
|
1328
|
+
onSuperNext: () => Pe("next", "year", 10)
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
function Vn() {
|
|
1332
|
+
Lt(!lt);
|
|
1333
|
+
}
|
|
1334
|
+
function qt(e) {
|
|
1335
|
+
const t = he(
|
|
1336
|
+
`${ce}-container`,
|
|
1337
|
+
{
|
|
1338
|
+
[`${ce}-panel-only`]: e,
|
|
1339
|
+
[`${ce}-container-shortcuts-placement-left`]: G(L) && H,
|
|
1340
|
+
[`${ce}-container-rtl`]: P
|
|
1341
|
+
},
|
|
1342
|
+
e ? R : ""
|
|
1343
|
+
), r = {
|
|
1344
|
+
prefixCls: m?.("picker"),
|
|
1345
|
+
showTime: k,
|
|
1346
|
+
shortcuts: L,
|
|
1347
|
+
onMouseEnterShortcut: bn,
|
|
1348
|
+
onMouseLeaveShortcut: Nn,
|
|
1349
|
+
onSelectShortcut: xn
|
|
1350
|
+
}, d = k && st[0] === "date" && st[1] === "date" || z || G(L) && L.length && !H, M = /* @__PURE__ */ Z(we, { children: [
|
|
1351
|
+
/* @__PURE__ */ o(
|
|
1352
|
+
no,
|
|
1353
|
+
{
|
|
1354
|
+
...a,
|
|
1355
|
+
...jt(),
|
|
1356
|
+
getHeaderOperations: jt,
|
|
1357
|
+
setRangePageShowDates: Ae,
|
|
1358
|
+
pageShowDates: ze,
|
|
1359
|
+
value: K,
|
|
1360
|
+
format: T,
|
|
1361
|
+
onSelectPanel: Cn,
|
|
1362
|
+
onMouseEnterCell: kn,
|
|
1363
|
+
onMouseLeaveCell: Dn,
|
|
1364
|
+
disabledDate: (Pt) => At(Pt),
|
|
1365
|
+
disabledTime: Q,
|
|
1366
|
+
mode: p,
|
|
1367
|
+
localeName: u?.dayjsLocale,
|
|
1368
|
+
showTime: k,
|
|
1369
|
+
timeValues: Vt || We,
|
|
1370
|
+
onTimePickerSelect: yn,
|
|
1371
|
+
popupVisible: Se,
|
|
1372
|
+
disabledTimePickerIndex: ln,
|
|
1373
|
+
isTimePanel: lt,
|
|
1374
|
+
valueShowHover: cn,
|
|
1375
|
+
panelModes: st,
|
|
1376
|
+
setPanelModes: it
|
|
1377
|
+
}
|
|
1378
|
+
),
|
|
1379
|
+
!!d && /* @__PURE__ */ o(
|
|
1380
|
+
qn,
|
|
1381
|
+
{
|
|
1382
|
+
...r,
|
|
1383
|
+
DATEPICKER_LOCALE: U,
|
|
1384
|
+
disabled: !(G(K) && K[0] && K[1]),
|
|
1385
|
+
onClickConfirmBtn: wn,
|
|
1386
|
+
extra: z,
|
|
1387
|
+
shortcutsPlacementLeft: H,
|
|
1388
|
+
onClickSelectTimeBtn: Vn,
|
|
1389
|
+
isTimePanel: lt
|
|
1390
|
+
}
|
|
1391
|
+
)
|
|
1392
|
+
] }), Ve = H ? /* @__PURE__ */ Z(we, { children: [
|
|
1393
|
+
/* @__PURE__ */ o(Un, { ref: ue, ...r }),
|
|
1394
|
+
/* @__PURE__ */ o("div", { ref: q, className: `${ce}-panel-wrapper`, children: M })
|
|
1395
|
+
] }) : M, vt = typeof B == "function" ? B(Ve) : Ve;
|
|
1396
|
+
return /* @__PURE__ */ o(
|
|
1397
|
+
"div",
|
|
1398
|
+
{
|
|
1399
|
+
className: t,
|
|
1400
|
+
onClick: () => St(),
|
|
1401
|
+
style: e ? w : {},
|
|
1402
|
+
children: vt
|
|
1403
|
+
}
|
|
1404
|
+
);
|
|
1405
|
+
}
|
|
1406
|
+
const Ln = a.size || s, Tn = G(N) ? N : U.placeholders[p], Rn = S && S.inputSuffix === null ? null : S && S.inputSuffix || (k ? /* @__PURE__ */ o($n, {}) : /* @__PURE__ */ o(Yn, {})), En = {
|
|
1407
|
+
style: w,
|
|
1408
|
+
className: R,
|
|
1409
|
+
popupVisible: Se,
|
|
1410
|
+
format: T,
|
|
1411
|
+
disabled: h,
|
|
1412
|
+
error: V,
|
|
1413
|
+
status: F,
|
|
1414
|
+
size: Ln,
|
|
1415
|
+
onPressEnter: Pn,
|
|
1416
|
+
onClear: gn,
|
|
1417
|
+
suffixIcon: Rn,
|
|
1418
|
+
editable: C,
|
|
1419
|
+
allowClear: i,
|
|
1420
|
+
prefix: a.prefix
|
|
1421
|
+
}, In = G(h) ? h[0] && h[1] : h;
|
|
1422
|
+
return /* @__PURE__ */ o(Ee.Provider, { value: { utcOffset: b, timezone: $, weekStart: ne }, children: re === null ? qt(!0) : /* @__PURE__ */ o(
|
|
1423
|
+
Fn,
|
|
1424
|
+
{
|
|
1425
|
+
popup: qt,
|
|
1426
|
+
trigger: "click",
|
|
1427
|
+
clickToClose: !1,
|
|
1428
|
+
position: g,
|
|
1429
|
+
disabled: In,
|
|
1430
|
+
popupAlign: ro,
|
|
1431
|
+
getPopupContainer: x,
|
|
1432
|
+
onVisibleChange: (e) => {
|
|
1433
|
+
e && setTimeout(() => {
|
|
1434
|
+
St();
|
|
1435
|
+
}), qe(!!e);
|
|
1436
|
+
},
|
|
1437
|
+
popupVisible: Se,
|
|
1438
|
+
classNames: "slideDynamicOrigin",
|
|
1439
|
+
unmountOnExit: I,
|
|
1440
|
+
...y,
|
|
1441
|
+
children: re || /* @__PURE__ */ o(
|
|
1442
|
+
_n,
|
|
1443
|
+
{
|
|
1444
|
+
...jn(a),
|
|
1445
|
+
...En,
|
|
1446
|
+
inputProps: Ie,
|
|
1447
|
+
ref: _,
|
|
1448
|
+
placeholder: Tn,
|
|
1449
|
+
value: ge || ve,
|
|
1450
|
+
onChange: Sn,
|
|
1451
|
+
inputValue: xt || _e,
|
|
1452
|
+
changeFocusedInputIndex: $t,
|
|
1453
|
+
focusedInputIndex: ee,
|
|
1454
|
+
isPlaceholder: !!xt,
|
|
1455
|
+
separator: le,
|
|
1456
|
+
onBlur: vn
|
|
1457
|
+
}
|
|
1458
|
+
)
|
|
1459
|
+
}
|
|
1460
|
+
) });
|
|
1461
|
+
}, so = On(ao);
|
|
1462
|
+
so.displayName = "RangePicker";
|
|
1463
|
+
export {
|
|
1464
|
+
bt as D,
|
|
1465
|
+
kt as M,
|
|
1466
|
+
so as P,
|
|
1467
|
+
nn as Q,
|
|
1468
|
+
on as W,
|
|
1469
|
+
Me as Y
|
|
1470
|
+
};
|