@unicom-cloud/ui 0.8.55 → 0.8.56
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 +36 -36
- package/Alert.js +41 -45
- package/Anchor.js +1 -1
- package/AutoComplete.js +40 -40
- package/Avatar.js +36 -36
- package/BackTop.js +26 -26
- package/Badge.js +43 -43
- package/Breadcrumb.js +17 -17
- package/Button.js +42 -42
- package/Calendar.js +54 -56
- package/Card.js +28 -28
- package/Carousel.js +42 -43
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +11 -580
- package/Comment.js +14 -14
- package/ConfigProvider.js +2 -2
- package/Copy.js +26 -26
- package/DatePicker.js +661 -670
- package/Descriptions.js +53 -53
- package/Divider.js +15 -15
- package/Draggable.js +16 -16
- package/Drawer.js +1 -1
- package/Dropdown.js +10 -10
- package/Empty.js +3 -3
- package/Form.js +10 -1410
- package/Grid.js +49 -49
- package/Icon.js +10 -10
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +7 -7
- package/InputTag.js +1 -1
- package/Layout.js +34 -34
- package/Link.js +26 -26
- package/List.js +39 -39
- package/Mentions.js +17 -17
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +4 -10
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +18 -18
- package/PageHeader.js +26 -27
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +15 -15
- package/Popover.js +22 -22
- package/Progress.js +18 -18
- package/Radio.js +2 -2
- package/Rate.js +40 -43
- package/ResizeBox.js +191 -192
- package/Result.js +17 -17
- package/Select.js +1 -1
- package/SelectView.js +56 -56
- package/Skeleton.js +35 -35
- package/Slider.js +81 -81
- package/Space.js +27 -27
- package/SpeechSynthesis.js +29 -32
- package/Spin.js +15 -15
- package/Statistic.js +54 -54
- package/Steps.js +44 -44
- package/Switch.js +39 -38
- package/Table.js +488 -488
- package/Tabs.js +1 -1
- package/Tag.js +13 -14
- package/TimePicker.js +68 -68
- package/Timeline.js +1 -1
- package/Tooltip.js +27 -28
- package/Transfer.js +29 -30
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +53 -52
- package/Typography.js +2 -737
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/1mEO29GP.js +23 -0
- package/chunk/5pZ3ayqs.js +29 -0
- package/chunk/9Gh1afjL.js +23 -0
- package/chunk/B1S1OEw6.js +29 -0
- package/chunk/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
- package/chunk/B45v5S9k.js +209 -0
- package/chunk/B6fn5y_s.js +23 -0
- package/chunk/B9PsJar0.js +118 -0
- package/chunk/BA02BFUV.js +41 -0
- package/chunk/BCk8e9fj.js +29 -0
- package/chunk/BHK9zpXn.js +207 -0
- package/chunk/BHLTzWzi.js +29 -0
- package/chunk/BK1FKNAX.js +41 -0
- package/chunk/BM6dpkeM.js +32 -0
- package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
- package/chunk/BWx1cVT_.js +66 -0
- package/chunk/BbI3gqVr.js +23 -0
- package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
- package/chunk/Be7oeWU8.js +34 -0
- package/chunk/BeM2hfks.js +88 -0
- package/chunk/BkHxm4sv.js +41 -0
- package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
- package/chunk/BlKc_pDZ.js +678 -0
- package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
- package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
- package/chunk/BqxwlITu.js +52 -0
- package/chunk/BuEC_zcc.js +278 -0
- package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
- package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
- package/chunk/C2fspJbE.js +23 -0
- package/chunk/C7Okdv4u.js +34 -0
- package/chunk/C95ipQ6b.js +41 -0
- package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
- package/chunk/CPl52AZh.js +206 -0
- package/chunk/CXNW5Y2a.js +23 -0
- package/chunk/Cb_oWoGj.js +40 -0
- package/chunk/CcX2pBUh.js +46 -0
- package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
- package/chunk/CilQ012k.js +1796 -0
- package/chunk/CkAOsst1.js +73 -0
- package/chunk/CnY8SvgY.js +126 -0
- package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
- package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
- package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
- package/chunk/D6mVoX-C.js +116 -0
- package/chunk/D9TqtOhq.js +40 -0
- package/chunk/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
- package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
- package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
- package/chunk/DPvnQJ-H.js +52 -0
- package/chunk/DQXq1QT0.js +58 -0
- package/chunk/DRJO1GfY.js +855 -0
- package/chunk/DUxWiN2U.js +1465 -0
- package/chunk/DYZzQ2uT.js +29 -0
- package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
- package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
- package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
- package/chunk/DhLbnw3R.js +29 -0
- package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
- package/chunk/Do1aMgY3.js +12 -0
- package/chunk/Dtnux4qL.js +38 -0
- package/chunk/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
- package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
- package/chunk/JnyGFb5j.js +284 -0
- package/chunk/Lk60-jkf.js +1098 -0
- package/chunk/V_IcWDFx.js +49 -0
- package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
- package/chunk/bsawGxt8.js +32 -0
- package/chunk/cUuQh7L_.js +46 -0
- package/chunk/fqgc8r6C.js +29 -0
- package/chunk/m_kOQCiU.js +29 -0
- package/chunk/sl8s35SK.js +29 -0
- package/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
- package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
- package/hooks/index.js +52 -246
- package/hooks/useForceUpdate.js +6 -6
- package/hooks/useIntersectionObserver.js +12 -10
- package/hooks/useKeyboardEvent.js +7 -7
- package/hooks/useMedia.js +9 -12
- package/hooks/useMergeValue.js +10 -8
- package/hooks/useResizeObserver.js +16 -0
- package/hooks/useUpdateEffect.js +7 -9
- package/hooks/useWindowSize.js +16 -20
- package/icons.js +6003 -0
- package/index.js +377 -472
- package/locale/en-US.js +20 -6
- package/locale/ja-JP.js +4 -2
- package/locale/ko-KR.js +2 -2
- package/locale/pt-BR.js +3 -3
- package/locale/pt-PT.js +3 -3
- package/locale/tr-TR.js +11 -3
- package/locale/zh-CN.js +6 -0
- package/locale/zh-HK.js +2 -0
- package/locale/zh-TW.js +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -0
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/hooks/index.d.ts +3 -101
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useIntersectionObserver.d.ts +1 -1
- package/types/hooks/useKeyboardEvent.d.ts +2 -2
- package/types/hooks/useMergeProps.d.ts +1 -1
- package/types/hooks/useResizeObserver.d.ts +5 -0
- package/types/hooks/useUpdateEffect.d.ts +2 -3
- package/types/hooks/useWindowSize.d.ts +1 -1
- package/types/icons.d.ts +4 -0
- package/types/index.d.ts +12 -2
- package/types/locale/en-US.d.ts +4 -0
- package/types/locale/interface.d.ts +2 -0
- package/types/locale/ja-JP.d.ts +4 -0
- package/types/locale/zh-CN.d.ts +4 -0
- package/types/locale/zh-HK.d.ts +4 -0
- package/types/locale/zh-TW.d.ts +4 -0
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/className.js +2 -3
- package/utils/contextHolder.js +2 -2
- package/utils/copy.js +2 -3
- package/utils/is.js +127 -90
- package/utils/reactDOM.js +17 -15
- package/utils/responsiveObserve.js +16 -16
- package/utils/saveAs.js +2 -3
- package/utils/scrollIntoView.js +1 -1
- package/chunk/BdYAMaw9.js +0 -6
- package/chunk/CiZVOdJ3.js +0 -122
- package/chunk/DdtfPvgk.js +0 -272
- package/chunk/I4RV9SKZ.js +0 -135
- package/chunk/TXCrI0jN.js +0 -20
- package/chunk/i1A7W8Qt.js +0 -277
- package/chunk/xPzFRQJn.js +0 -740
- package/hooks/useAsync.js +0 -13
- package/hooks/useAsyncFn.js +0 -15
- package/hooks/useAsyncRetry.js +0 -17
- package/hooks/useAudio.js +0 -5
- package/hooks/useBeforeUnload.js +0 -18
- package/hooks/useBoolean.js +0 -4
- package/hooks/useClickAway.js +0 -22
- package/hooks/useCopyToClipboard.js +0 -51
- package/hooks/useCounter.js +0 -45
- package/hooks/useCreation.js +0 -17
- package/hooks/useCustomCompareEffect.js +0 -15
- package/hooks/useDebounce.js +0 -9
- package/hooks/useDefault.js +0 -10
- package/hooks/useDrop.js +0 -44
- package/hooks/useDropArea.js +0 -45
- package/hooks/useEffectOnce.js +0 -7
- package/hooks/useEffectState.js +0 -9
- package/hooks/useEnsuredForwardedRef.js +0 -17
- package/hooks/useError.js +0 -13
- package/hooks/useEvent.js +0 -13
- package/hooks/useEventListener.js +0 -39
- package/hooks/useFavicon.js +0 -16
- package/hooks/useFirstMountState.js +0 -8
- package/hooks/useFullscreen.js +0 -39
- package/hooks/useGeolocation.js +0 -38
- package/hooks/useGetSet.js +0 -18
- package/hooks/useGetSetState.js +0 -12
- package/hooks/useHash.js +0 -26
- package/hooks/useHover.js +0 -16
- package/hooks/useHoverDirty.js +0 -17
- package/hooks/useIdle.js +0 -34
- package/hooks/useIntersection.js +0 -19
- package/hooks/useIsomorphicLayoutEffect2.js +0 -6
- package/hooks/useKey.js +0 -16
- package/hooks/useKeyPress.js +0 -13
- package/hooks/useKeyPressEvent.js +0 -11
- package/hooks/useLatest.js +0 -8
- package/hooks/useLifecycles.js +0 -9
- package/hooks/useList.js +0 -67
- package/hooks/useLocalStorage.js +0 -42
- package/hooks/useLocation.js +0 -51
- package/hooks/useLockBodyScroll.js +0 -55
- package/hooks/useLogger.js +0 -10
- package/hooks/useLongPress.js +0 -24
- package/hooks/useMap.js +0 -31
- package/hooks/useMeasure.js +0 -34
- package/hooks/useMeasureDirty.js +0 -24
- package/hooks/useMediaDevices.js +0 -26
- package/hooks/useMediatedState.js +0 -14
- package/hooks/useMethods.js +0 -14
- package/hooks/useMotion.js +0 -56
- package/hooks/useMount.js +0 -9
- package/hooks/useMountedState.js +0 -10
- package/hooks/useMouse.js +0 -44
- package/hooks/useMouseHovered.js +0 -9
- package/hooks/useMouseWheel.js +0 -14
- package/hooks/useMultiStateValidator.js +0 -19
- package/hooks/useNetworkState.js +0 -31
- package/hooks/useNumber.js +0 -4
- package/hooks/useObservable.js +0 -12
- package/hooks/useOrientation.js +0 -30
- package/hooks/usePageLeave.js +0 -19
- package/hooks/usePermission.js +0 -19
- package/hooks/usePinchZoom.js +0 -40
- package/hooks/usePreviousDistinct.js +0 -10
- package/hooks/usePromise.js +0 -19
- package/hooks/useQueue.js +0 -25
- package/hooks/useRaf.js +0 -24
- package/hooks/useRafLoop.js +0 -24
- package/hooks/useRafState.js +0 -15
- package/hooks/useReactive.js +0 -21
- package/hooks/useRendersCount.js +0 -7
- package/hooks/useScroll.js +0 -27
- package/hooks/useScrolling.js +0 -23
- package/hooks/useSearchParam.js +0 -18
- package/hooks/useSessionStorage.js +0 -29
- package/hooks/useSet.js +0 -15
- package/hooks/useSetState.js +0 -16
- package/hooks/useSize.js +0 -58
- package/hooks/useSlider.js +0 -48
- package/hooks/useSpeech.js +0 -45
- package/hooks/useStartTyping.js +0 -30
- package/hooks/useStateList.js +0 -37
- package/hooks/useStateValidator.js +0 -17
- package/hooks/useStateWithHistory.js +0 -46
- package/hooks/useSyncState.js +0 -14
- package/hooks/useThrottle.js +0 -21
- package/hooks/useThrottleFn.js +0 -21
- package/hooks/useTimeout.js +0 -17
- package/hooks/useTimeoutFn.js +0 -16
- package/hooks/useTitle.js +0 -18
- package/hooks/useToggle.js +0 -5
- package/hooks/useTween.js +0 -11
- package/hooks/useUnmount.js +0 -9
- package/hooks/useUnmountPromise.js +0 -20
- package/hooks/useUpdate.js +0 -10
- package/hooks/useUpdateTimeout.js +0 -9
- package/hooks/useUpsert.js +0 -16
- package/hooks/useVibrate.js +0 -21
- package/hooks/useVideo.js +0 -5
- package/hooks/useWindowScroll.js +0 -29
- package/types/hooks/component/UseKey.d.ts +0 -2
- package/types/hooks/factory/createBreakpoint.d.ts +0 -4
- package/types/hooks/factory/createGlobalState.d.ts +0 -7
- package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
- package/types/hooks/factory/createMemo.d.ts +0 -2
- package/types/hooks/factory/createReducer.d.ts +0 -8
- package/types/hooks/factory/createReducerContext.d.ts +0 -5
- package/types/hooks/factory/createRenderProp.d.ts +0 -1
- package/types/hooks/factory/createRouter.d.ts +0 -7
- package/types/hooks/factory/createStateContext.d.ts +0 -5
- package/types/hooks/misc/hookState.d.ts +0 -8
- package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
- package/types/hooks/misc/types.d.ts +0 -2
- package/types/hooks/misc/util.d.ts +0 -5
- package/types/hooks/useAsync.d.ts +0 -20
- package/types/hooks/useAsyncFn.d.ts +0 -23
- package/types/hooks/useAsyncRetry.d.ts +0 -27
- package/types/hooks/useAudio.d.ts +0 -11
- package/types/hooks/useBeforeUnload.d.ts +0 -2
- package/types/hooks/useBoolean.d.ts +0 -2
- package/types/hooks/useClickAway.d.ts +0 -3
- package/types/hooks/useCopyToClipboard.d.ts +0 -7
- package/types/hooks/useCounter.d.ts +0 -9
- package/types/hooks/useCreation.d.ts +0 -2
- package/types/hooks/useCustomCompareEffect.d.ts +0 -4
- package/types/hooks/useDebounce.d.ts +0 -3
- package/types/hooks/useDefault.d.ts +0 -2
- package/types/hooks/useDrop.d.ts +0 -17
- package/types/hooks/useDropArea.d.ts +0 -18
- package/types/hooks/useEffectOnce.d.ts +0 -3
- package/types/hooks/useEffectState.d.ts +0 -2
- package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
- package/types/hooks/useError.d.ts +0 -2
- package/types/hooks/useEvent.d.ts +0 -13
- package/types/hooks/useEventListener.d.ts +0 -2
- package/types/hooks/useFavicon.d.ts +0 -2
- package/types/hooks/useFirstMountState.d.ts +0 -1
- package/types/hooks/useFullscreen.d.ts +0 -10
- package/types/hooks/useGeolocation.d.ts +0 -21
- package/types/hooks/useGetSet.d.ts +0 -3
- package/types/hooks/useGetSetState.d.ts +0 -2
- package/types/hooks/useHash.d.ts +0 -2
- package/types/hooks/useHover.d.ts +0 -4
- package/types/hooks/useHoverDirty.d.ts +0 -3
- package/types/hooks/useIdle.d.ts +0 -2
- package/types/hooks/useIntersection.d.ts +0 -3
- package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
- package/types/hooks/useKey.d.ts +0 -12
- package/types/hooks/useKeyPress.d.ts +0 -3
- package/types/hooks/useKeyPressEvent.d.ts +0 -3
- package/types/hooks/useLatest.d.ts +0 -4
- package/types/hooks/useLifecycles.d.ts +0 -2
- package/types/hooks/useList.d.ts +0 -18
- package/types/hooks/useLocalStorage.d.ts +0 -10
- package/types/hooks/useLocation.d.ts +0 -16
- package/types/hooks/useLockBodyScroll.d.ts +0 -8
- package/types/hooks/useLogger.d.ts +0 -2
- package/types/hooks/useLongPress.d.ts +0 -12
- package/types/hooks/useMap.d.ts +0 -11
- package/types/hooks/useMeasure.d.ts +0 -9
- package/types/hooks/useMeasureDirty.d.ts +0 -11
- package/types/hooks/useMediaDevices.d.ts +0 -2
- package/types/hooks/useMediatedState.d.ts +0 -9
- package/types/hooks/useMethods.d.ts +0 -8
- package/types/hooks/useMotion.d.ts +0 -20
- package/types/hooks/useMount.d.ts +0 -2
- package/types/hooks/useMountedState.d.ts +0 -1
- package/types/hooks/useMouse.d.ts +0 -13
- package/types/hooks/useMouseHovered.d.ts +0 -8
- package/types/hooks/useMouseWheel.d.ts +0 -2
- package/types/hooks/useMultiStateValidator.d.ts +0 -9
- package/types/hooks/useNetworkState.d.ts +0 -22
- package/types/hooks/useNumber.d.ts +0 -2
- package/types/hooks/useObservable.d.ts +0 -8
- package/types/hooks/useOrientation.d.ts +0 -6
- package/types/hooks/usePageLeave.d.ts +0 -2
- package/types/hooks/usePermission.d.ts +0 -16
- package/types/hooks/usePinchZoom.d.ts +0 -18
- package/types/hooks/usePreviousDistinct.d.ts +0 -2
- package/types/hooks/usePromise.d.ts +0 -3
- package/types/hooks/useQueue.d.ts +0 -9
- package/types/hooks/useRaf.d.ts +0 -2
- package/types/hooks/useRafLoop.d.ts +0 -2
- package/types/hooks/useRafState.d.ts +0 -3
- package/types/hooks/useReactive.d.ts +0 -2
- package/types/hooks/useRendersCount.d.ts +0 -1
- package/types/hooks/useScroll.d.ts +0 -7
- package/types/hooks/useScrolling.d.ts +0 -3
- package/types/hooks/useSearchParam.d.ts +0 -3
- package/types/hooks/useSessionStorage.d.ts +0 -2
- package/types/hooks/useSet.d.ts +0 -11
- package/types/hooks/useSetState.d.ts +0 -2
- package/types/hooks/useSize.d.ts +0 -8
- package/types/hooks/useSlider.d.ts +0 -15
- package/types/hooks/useSpeech.d.ts +0 -16
- package/types/hooks/useStartTyping.d.ts +0 -2
- package/types/hooks/useStateList.d.ts +0 -9
- package/types/hooks/useStateValidator.d.ts +0 -8
- package/types/hooks/useStateWithHistory.d.ts +0 -18
- package/types/hooks/useSyncState.d.ts +0 -3
- package/types/hooks/useThrottle.d.ts +0 -2
- package/types/hooks/useThrottleFn.d.ts +0 -2
- package/types/hooks/useTimeout.d.ts +0 -2
- package/types/hooks/useTimeoutFn.d.ts +0 -2
- package/types/hooks/useTitle.d.ts +0 -6
- package/types/hooks/useToggle.d.ts +0 -2
- package/types/hooks/useTween.d.ts +0 -3
- package/types/hooks/useUnmount.d.ts +0 -2
- package/types/hooks/useUnmountPromise.d.ts +0 -3
- package/types/hooks/useUpdate.d.ts +0 -2
- package/types/hooks/useUpdateTimeout.d.ts +0 -2
- package/types/hooks/useUpsert.d.ts +0 -6
- package/types/hooks/useVibrate.d.ts +0 -4
- package/types/hooks/useVideo.d.ts +0 -11
- package/types/hooks/useWindowScroll.d.ts +0 -6
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { u as i } from "./B45v5S9k.js";
|
|
4
|
+
const d = r.forwardRef(function(e, n) {
|
|
5
|
+
const t = i({ ...e, name: "ui-menu-fold" });
|
|
6
|
+
return /* @__PURE__ */ o(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
width: "1em",
|
|
10
|
+
height: "1em",
|
|
11
|
+
viewBox: "0 0 48 48",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
ref: n,
|
|
15
|
+
...t,
|
|
16
|
+
strokeWidth: "4",
|
|
17
|
+
children: /* @__PURE__ */ o(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: "M42 11H6m36 13H22m20 13H6m7.66-10.088-4.82-3.118 4.82-3.118z",
|
|
21
|
+
strokeLinecap: "butt"
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}), f = r.forwardRef(function(e, n) {
|
|
27
|
+
const t = i({ ...e, name: "ui-menu-unfold" });
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
width: "1em",
|
|
32
|
+
height: "1em",
|
|
33
|
+
viewBox: "0 0 48 48",
|
|
34
|
+
fill: "none",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
ref: n,
|
|
37
|
+
...t,
|
|
38
|
+
strokeWidth: "4",
|
|
39
|
+
children: /* @__PURE__ */ o(
|
|
40
|
+
"path",
|
|
41
|
+
{
|
|
42
|
+
d: "M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118z",
|
|
43
|
+
strokeLinecap: "butt"
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
f as I,
|
|
51
|
+
d as a
|
|
52
|
+
};
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { jsxs as q, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { I as oe } from "./B45v5S9k.js";
|
|
3
|
+
import U from "lodash/isArray";
|
|
4
|
+
import { forwardRef as fe, useContext as te, useRef as j, useState as se, useImperativeHandle as ne } from "react";
|
|
5
|
+
import { b as re, I as me } from "./DUxWiN2U.js";
|
|
6
|
+
import { y as G } from "./Do1aMgY3.js";
|
|
7
|
+
import { Enter as ie, Tab as Ne } from "../utils/keyCode.js";
|
|
8
|
+
import $e from "../utils/omit.js";
|
|
9
|
+
function ue({
|
|
10
|
+
style: J,
|
|
11
|
+
className: Q,
|
|
12
|
+
prefixCls: V,
|
|
13
|
+
allowClear: X,
|
|
14
|
+
status: Y,
|
|
15
|
+
error: $,
|
|
16
|
+
disabled: k,
|
|
17
|
+
placeholder: g,
|
|
18
|
+
format: v,
|
|
19
|
+
size: F,
|
|
20
|
+
onClear: Z,
|
|
21
|
+
editable: _,
|
|
22
|
+
value: N,
|
|
23
|
+
inputValue: z,
|
|
24
|
+
onPressEnter: y,
|
|
25
|
+
suffixIcon: D,
|
|
26
|
+
prefix: h,
|
|
27
|
+
onChange: w,
|
|
28
|
+
popupVisible: I,
|
|
29
|
+
isPlaceholder: B,
|
|
30
|
+
inputProps: c,
|
|
31
|
+
...x
|
|
32
|
+
}, R) {
|
|
33
|
+
const {
|
|
34
|
+
getPrefixCls: t,
|
|
35
|
+
size: K,
|
|
36
|
+
locale: T,
|
|
37
|
+
rtl: E
|
|
38
|
+
} = te(re), O = j(null), [P, H] = se(!1), p = F || K, u = j(null);
|
|
39
|
+
ne(R, () => ({
|
|
40
|
+
focus() {
|
|
41
|
+
var f, n;
|
|
42
|
+
(n = (f = O.current) == null ? void 0 : f.focus) == null || n.call(f);
|
|
43
|
+
},
|
|
44
|
+
blur() {
|
|
45
|
+
var f, n;
|
|
46
|
+
(n = (f = O.current) == null ? void 0 : f.blur) == null || n.call(f);
|
|
47
|
+
},
|
|
48
|
+
getRootDOMNode: () => u.current
|
|
49
|
+
}));
|
|
50
|
+
function S(f) {
|
|
51
|
+
var b;
|
|
52
|
+
(b = c == null ? void 0 : c.onKeyDown) == null || b.call(c, f), f.key === ie.key && (y == null || y());
|
|
53
|
+
}
|
|
54
|
+
function L(f) {
|
|
55
|
+
var n;
|
|
56
|
+
(n = c == null ? void 0 : c.onChange) == null || n.call(c, f), w == null || w(f);
|
|
57
|
+
}
|
|
58
|
+
let d = "";
|
|
59
|
+
z !== void 0 ? d = z : N && !U(N) && (d = typeof v == "function" ? v(N) : N.locale(T.dayjsLocale).format(v));
|
|
60
|
+
const M = _ ? {} : { readOnly: !0 }, s = V || t("picker"), C = Y || ($ ? "error" : void 0), W = P || I, A = G(
|
|
61
|
+
s,
|
|
62
|
+
`${s}-size-${p}`,
|
|
63
|
+
{
|
|
64
|
+
[`${s}-focused`]: W,
|
|
65
|
+
[`${s}-disabled`]: k,
|
|
66
|
+
[`${s}-has-prefix`]: h,
|
|
67
|
+
[`${s}-${C}`]: C,
|
|
68
|
+
[`${s}-rtl`]: E
|
|
69
|
+
},
|
|
70
|
+
Q
|
|
71
|
+
);
|
|
72
|
+
return /* @__PURE__ */ q(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
style: J,
|
|
76
|
+
className: A,
|
|
77
|
+
ref: u,
|
|
78
|
+
...$e(x, ["onChange", "onPressEnter"]),
|
|
79
|
+
children: [
|
|
80
|
+
h && /* @__PURE__ */ m("div", { className: `${s}-prefix`, children: h }),
|
|
81
|
+
/* @__PURE__ */ m(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: G(`${s}-input`, {
|
|
85
|
+
[`${s}-input-placeholder`]: B
|
|
86
|
+
}),
|
|
87
|
+
children: /* @__PURE__ */ m(
|
|
88
|
+
"input",
|
|
89
|
+
{
|
|
90
|
+
ref: O,
|
|
91
|
+
...c,
|
|
92
|
+
disabled: k,
|
|
93
|
+
placeholder: g,
|
|
94
|
+
className: `${s}-start-time`,
|
|
95
|
+
value: d,
|
|
96
|
+
onKeyDown: S,
|
|
97
|
+
onChange: L,
|
|
98
|
+
...M,
|
|
99
|
+
onFocus: (f) => {
|
|
100
|
+
var n;
|
|
101
|
+
H(!0), (n = c == null ? void 0 : c.onFocus) == null || n.call(c, f);
|
|
102
|
+
},
|
|
103
|
+
onBlur: (f) => {
|
|
104
|
+
var n;
|
|
105
|
+
H(!1), (n = c == null ? void 0 : c.onBlur) == null || n.call(c, f);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ q("div", { className: `${s}-suffix`, children: [
|
|
112
|
+
X && d && /* @__PURE__ */ m(
|
|
113
|
+
me,
|
|
114
|
+
{
|
|
115
|
+
prefix: s,
|
|
116
|
+
onClick: Z,
|
|
117
|
+
className: `${s}-clear-icon`,
|
|
118
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ m("span", { className: `${s}-suffix-icon`, children: D })
|
|
122
|
+
] })
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
const Ke = fe(ue);
|
|
128
|
+
function Ce({
|
|
129
|
+
allowClear: J,
|
|
130
|
+
error: Q,
|
|
131
|
+
status: V,
|
|
132
|
+
style: X,
|
|
133
|
+
className: Y,
|
|
134
|
+
disabled: $,
|
|
135
|
+
placeholder: k = [],
|
|
136
|
+
value: g = [],
|
|
137
|
+
popupVisible: v,
|
|
138
|
+
format: F,
|
|
139
|
+
size: Z,
|
|
140
|
+
onClear: _,
|
|
141
|
+
editable: N,
|
|
142
|
+
inputValue: z,
|
|
143
|
+
onPressEnter: y,
|
|
144
|
+
onPressTab: D,
|
|
145
|
+
onChange: h,
|
|
146
|
+
separator: w,
|
|
147
|
+
suffixIcon: I,
|
|
148
|
+
changeFocusedInputIndex: B,
|
|
149
|
+
focusedInputIndex: c,
|
|
150
|
+
isPlaceholder: x,
|
|
151
|
+
prefix: R,
|
|
152
|
+
inputProps: t = [],
|
|
153
|
+
onBlur: K,
|
|
154
|
+
...T
|
|
155
|
+
}, E) {
|
|
156
|
+
const {
|
|
157
|
+
getPrefixCls: O,
|
|
158
|
+
size: P,
|
|
159
|
+
locale: H,
|
|
160
|
+
rtl: p
|
|
161
|
+
} = te(re), u = j(null), S = j(null), L = j(null), [d, M] = se([!1, !1]), s = U($) ? $[0] : $, C = U($) ? $[1] : $;
|
|
162
|
+
ne(E, () => ({
|
|
163
|
+
focus(e) {
|
|
164
|
+
var o, i;
|
|
165
|
+
(c === 0 && !s || c === 1 && !C) && ((i = (o = ((typeof e == "number" ? e : c) === 0 ? u : S).current) == null ? void 0 : o.focus) == null || i.call(o));
|
|
166
|
+
},
|
|
167
|
+
blur() {
|
|
168
|
+
var e, a, l, o;
|
|
169
|
+
c === 0 && ((a = (e = u.current) == null ? void 0 : e.blur) == null || a.call(e)), c === 1 && ((o = (l = S.current) == null ? void 0 : l.blur) == null || o.call(l));
|
|
170
|
+
},
|
|
171
|
+
getRootDOMNode: () => L.current
|
|
172
|
+
}));
|
|
173
|
+
function W(e, a) {
|
|
174
|
+
var l, o;
|
|
175
|
+
(o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onClick) == null || o.call(l, e), c !== a && B(a);
|
|
176
|
+
}
|
|
177
|
+
function A(e, a) {
|
|
178
|
+
var o, i;
|
|
179
|
+
const l = e.key;
|
|
180
|
+
(i = (o = t == null ? void 0 : t[a]) == null ? void 0 : o.onKeyDown) == null || i.call(o, e), l === ie.key && (y == null || y()), l === Ne.key && (D == null || D(e));
|
|
181
|
+
}
|
|
182
|
+
function f(e, a) {
|
|
183
|
+
var l, o;
|
|
184
|
+
e.stopPropagation(), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onChange) == null || o.call(l, e), h == null || h(e);
|
|
185
|
+
}
|
|
186
|
+
function n(e, a) {
|
|
187
|
+
var l, o;
|
|
188
|
+
M((i) => (i[a] = !1, [...i])), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onBlur) == null || o.call(l, e), K == null || K(e);
|
|
189
|
+
}
|
|
190
|
+
function b(e, a) {
|
|
191
|
+
var l, o;
|
|
192
|
+
(a === 0 || a === 1) && (M((i) => (i[a] = !0, [...i])), c !== a && B(a, !0)), (o = (l = t == null ? void 0 : t[a]) == null ? void 0 : l.onFocus) == null || o.call(l, e);
|
|
193
|
+
}
|
|
194
|
+
const r = O("picker"), ye = Z || P, he = d[0] || d[1] || !!v, ee = V || (Q ? "error" : void 0), de = G(
|
|
195
|
+
r,
|
|
196
|
+
`${r}-range`,
|
|
197
|
+
`${r}-size-${ye}`,
|
|
198
|
+
{
|
|
199
|
+
[`${r}-focused`]: he,
|
|
200
|
+
[`${r}-disabled`]: s && C,
|
|
201
|
+
[`${r}-${ee}`]: ee,
|
|
202
|
+
[`${r}-rtl`]: p,
|
|
203
|
+
[`${r}-has-prefix`]: R
|
|
204
|
+
},
|
|
205
|
+
Y
|
|
206
|
+
), ce = (e) => {
|
|
207
|
+
const a = g[e] ? g[e].locale(H.dayjsLocale).format(U(F) ? F[e] : F) : "";
|
|
208
|
+
return z && e === c ? z : a;
|
|
209
|
+
}, le = N ? {} : { readOnly: !0 };
|
|
210
|
+
function ae(e) {
|
|
211
|
+
return G(`${r}-input`, {
|
|
212
|
+
[`${r}-input-active`]: c === e,
|
|
213
|
+
[`${r}-input-placeholder`]: x && c === e
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return /* @__PURE__ */ q(
|
|
217
|
+
"div",
|
|
218
|
+
{
|
|
219
|
+
style: X,
|
|
220
|
+
ref: L,
|
|
221
|
+
className: de,
|
|
222
|
+
...$e(T, ["onChange", "onPressEnter"]),
|
|
223
|
+
children: [
|
|
224
|
+
R && /* @__PURE__ */ m("div", { className: `${r}-prefix`, children: R }),
|
|
225
|
+
/* @__PURE__ */ m("div", { className: ae(0), children: /* @__PURE__ */ m(
|
|
226
|
+
"input",
|
|
227
|
+
{
|
|
228
|
+
ref: u,
|
|
229
|
+
...t[0],
|
|
230
|
+
disabled: s,
|
|
231
|
+
placeholder: k[0],
|
|
232
|
+
value: ce(0),
|
|
233
|
+
onChange: (e) => f(e, 0),
|
|
234
|
+
onKeyDown: (e) => A(e, 0),
|
|
235
|
+
onClick: (e) => W(e, 0),
|
|
236
|
+
onBlur: (e) => n(e, 0),
|
|
237
|
+
onFocus: (e) => b(e, 0),
|
|
238
|
+
...le
|
|
239
|
+
}
|
|
240
|
+
) }),
|
|
241
|
+
/* @__PURE__ */ m("span", { className: `${r}-separator`, children: w || "-" }),
|
|
242
|
+
/* @__PURE__ */ m("div", { className: ae(1), children: /* @__PURE__ */ m(
|
|
243
|
+
"input",
|
|
244
|
+
{
|
|
245
|
+
ref: S,
|
|
246
|
+
...t[1],
|
|
247
|
+
disabled: C,
|
|
248
|
+
placeholder: k[1],
|
|
249
|
+
value: ce(1),
|
|
250
|
+
onChange: (e) => f(e, 1),
|
|
251
|
+
onKeyDown: (e) => A(e, 1),
|
|
252
|
+
onClick: (e) => W(e, 1),
|
|
253
|
+
onBlur: (e) => n(e, 1),
|
|
254
|
+
onFocus: (e) => b(e, 1),
|
|
255
|
+
...le
|
|
256
|
+
}
|
|
257
|
+
) }),
|
|
258
|
+
/* @__PURE__ */ q("div", { className: `${r}-suffix`, children: [
|
|
259
|
+
J && g.length === 2 && /* @__PURE__ */ m(
|
|
260
|
+
me,
|
|
261
|
+
{
|
|
262
|
+
prefix: r,
|
|
263
|
+
onClick: _,
|
|
264
|
+
className: `${r}-clear-icon`,
|
|
265
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
/* @__PURE__ */ m("span", { className: `${r}-suffix-icon`, children: I })
|
|
269
|
+
] })
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
const Oe = fe(Ce);
|
|
275
|
+
export {
|
|
276
|
+
Ke as I,
|
|
277
|
+
Oe as a
|
|
278
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as j, useEffect as X, useCallback as V, createContext as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import ee from "
|
|
6
|
-
import { dayjs as g, methods as Y, getDayjsValue as
|
|
7
|
-
import { padStart as
|
|
2
|
+
import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
|
|
3
|
+
import se from "../Button.js";
|
|
4
|
+
import { b as He } from "./DUxWiN2U.js";
|
|
5
|
+
import { y as ee } from "./Do1aMgY3.js";
|
|
6
|
+
import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
|
|
7
|
+
import { padStart as C } from "../utils/pad.js";
|
|
8
8
|
import ge from "lodash/debounce";
|
|
9
9
|
import ye from "../hooks/usePrevious.js";
|
|
10
|
-
import {
|
|
11
|
-
import { isDayjs as
|
|
12
|
-
function
|
|
13
|
-
const
|
|
10
|
+
import { I as we, b as Se } from "./CkAOsst1.js";
|
|
11
|
+
import { isDayjs as ke } from "dayjs";
|
|
12
|
+
function _(r) {
|
|
13
|
+
const s = ["H", "h", "m", "s", "a", "A"], o = [];
|
|
14
14
|
let h = !1;
|
|
15
|
-
return
|
|
15
|
+
return s.forEach((c) => {
|
|
16
16
|
r.indexOf(c) !== -1 && (o.push(c), (c === "a" || c === "A") && (h = !0));
|
|
17
17
|
}), {
|
|
18
18
|
list: o,
|
|
@@ -20,13 +20,13 @@ function q(r) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
const Z = /* @__PURE__ */ new Map();
|
|
23
|
-
function le(r,
|
|
24
|
-
Z.get(r) && cancelAnimationFrame(Z.get(r)), o <= 0 && (r.scrollTop =
|
|
23
|
+
function le(r, s, o) {
|
|
24
|
+
Z.get(r) && cancelAnimationFrame(Z.get(r)), o <= 0 && (r.scrollTop = s), Z.set(
|
|
25
25
|
r,
|
|
26
26
|
requestAnimationFrame(() => {
|
|
27
27
|
new we({
|
|
28
28
|
from: { scrollTop: r.scrollTop },
|
|
29
|
-
to: { scrollTop:
|
|
29
|
+
to: { scrollTop: s },
|
|
30
30
|
duration: o,
|
|
31
31
|
onUpdate: (c) => {
|
|
32
32
|
r.scrollTop = c.scrollTop;
|
|
@@ -36,9 +36,9 @@ function le(r, i, o) {
|
|
|
36
36
|
})
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
39
|
+
function _e(r) {
|
|
40
|
+
const s = g(), o = s.year(), h = s.month(), c = s.date();
|
|
41
|
+
if (ke(r)) {
|
|
42
42
|
let u = r;
|
|
43
43
|
return u = Y.set(u, "year", o), u = Y.set(u, "month", h), u = Y.set(u, "date", c), u;
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@ function qe(r) {
|
|
|
46
46
|
}
|
|
47
47
|
function R(r) {
|
|
48
48
|
const {
|
|
49
|
-
prefixCls:
|
|
49
|
+
prefixCls: s,
|
|
50
50
|
list: o,
|
|
51
51
|
value: h,
|
|
52
52
|
onHandleSelect: c,
|
|
@@ -57,56 +57,56 @@ function R(r) {
|
|
|
57
57
|
p.current && p.current.scrollTop
|
|
58
58
|
);
|
|
59
59
|
X(() => {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const i = y.current.get(h);
|
|
61
|
+
i && a && F && (le(p.current, i.offsetTop, 150), v.current = i.offsetTop);
|
|
62
62
|
}, [h]), X(() => {
|
|
63
63
|
if (a && a !== F) {
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const i = y.current.get(h);
|
|
65
|
+
i && (le(p.current, i.offsetTop, 0), v.current = i.offsetTop);
|
|
66
66
|
}
|
|
67
67
|
}, [a, F]), X(() => {
|
|
68
68
|
o.length <= 1 || (z.current = (w.current.clientHeight - p.current.clientHeight) / (o.length - 1));
|
|
69
69
|
}, [o.length]);
|
|
70
70
|
const E = V(
|
|
71
71
|
ge(() => {
|
|
72
|
-
const
|
|
72
|
+
const H = (p.current.scrollTop - v.current > 0 ? Math.ceil : Math.floor)(
|
|
73
73
|
p.current.scrollTop / z.current
|
|
74
74
|
);
|
|
75
|
-
|
|
75
|
+
H !== h && o[H] && !o[H].disabled && c(o[H].value, u);
|
|
76
76
|
}, 100),
|
|
77
77
|
[c]
|
|
78
78
|
);
|
|
79
79
|
return /* @__PURE__ */ $(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
|
-
className: ee(`${
|
|
82
|
+
className: ee(`${s}-list`),
|
|
83
83
|
ref: p,
|
|
84
84
|
onWheel: d ? E : void 0,
|
|
85
|
-
children: /* @__PURE__ */ $("ul", { ref: w, children: o.map((
|
|
85
|
+
children: /* @__PURE__ */ $("ul", { ref: w, children: o.map((i) => /* @__PURE__ */ $(
|
|
86
86
|
"li",
|
|
87
87
|
{
|
|
88
|
-
className: ee(`${
|
|
89
|
-
[`${
|
|
90
|
-
[`${
|
|
88
|
+
className: ee(`${s}-cell`, {
|
|
89
|
+
[`${s}-cell-disabled`]: i.disabled,
|
|
90
|
+
[`${s}-cell-selected`]: i.selected
|
|
91
91
|
}),
|
|
92
|
-
onClick: () => !
|
|
93
|
-
ref: (
|
|
94
|
-
y.current.set(
|
|
92
|
+
onClick: () => !i.disabled && c(i.value, u),
|
|
93
|
+
ref: (H) => {
|
|
94
|
+
y.current.set(i.value, H);
|
|
95
95
|
},
|
|
96
|
-
children: /* @__PURE__ */ $("div", { className: `${
|
|
96
|
+
children: /* @__PURE__ */ $("div", { className: `${s}-cell-inner`, children: i.label })
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
i.value
|
|
99
99
|
)) })
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const Ne = Ce({}), Pe = ["am", "pm"];
|
|
104
104
|
function Fe(r) {
|
|
105
|
-
return r.use12Hours ??
|
|
105
|
+
return r.use12Hours ?? _(r.format).use12Hours;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function qe(r) {
|
|
108
108
|
const {
|
|
109
|
-
format:
|
|
109
|
+
format: s = "HH:mm:ss",
|
|
110
110
|
onSelect: o,
|
|
111
111
|
popupVisible: h,
|
|
112
112
|
step: c = {},
|
|
@@ -120,17 +120,17 @@ function _e(r) {
|
|
|
120
120
|
valueShow: F,
|
|
121
121
|
setValueShow: v,
|
|
122
122
|
extra: E,
|
|
123
|
-
disableConfirm:
|
|
124
|
-
hideFooter:
|
|
123
|
+
disableConfirm: i,
|
|
124
|
+
hideFooter: H,
|
|
125
125
|
showNowBtn: ne = !0,
|
|
126
126
|
scrollSticky: fe
|
|
127
|
-
} = r, { getPrefixCls: ue, locale: te } =
|
|
127
|
+
} = r, { getPrefixCls: ue, locale: te } = ie(He), I = ue("timepicker"), { utcOffset: q, timezone: W } = ie(Ne), x = Oe(F, s), M = x && x.hour() >= 12 ? "pm" : "am", O = Fe(r), G = V(
|
|
128
128
|
(n) => {
|
|
129
129
|
const t = c.hour || 1, e = c.minute || 1, U = c.second || 1, m = [];
|
|
130
130
|
if (n === "hour") {
|
|
131
|
-
for (let f = 0; f < (
|
|
131
|
+
for (let f = 0; f < (O ? 12 : 24); f += t)
|
|
132
132
|
m.push(f);
|
|
133
|
-
|
|
133
|
+
O && (m[0] = 12);
|
|
134
134
|
}
|
|
135
135
|
if (n === "minute")
|
|
136
136
|
for (let f = 0; f < 60; f += e)
|
|
@@ -140,42 +140,42 @@ function _e(r) {
|
|
|
140
140
|
m.push(f);
|
|
141
141
|
return m;
|
|
142
142
|
},
|
|
143
|
-
[c.hour, c.minute, c.second,
|
|
144
|
-
), A = G("hour"),
|
|
143
|
+
[c.hour, c.minute, c.second, O]
|
|
144
|
+
), A = G("hour"), N = G("minute"), S = G("second");
|
|
145
145
|
let l = x && x.hour();
|
|
146
|
-
l =
|
|
146
|
+
l = O && l > 12 ? l - 12 : l, O && l === 0 && M === "am" && (l += 12);
|
|
147
147
|
const P = x && x.minute(), oe = x && x.second(), J = V(
|
|
148
148
|
(n) => {
|
|
149
149
|
switch (n) {
|
|
150
150
|
case "hour":
|
|
151
|
-
return typeof u == "function" ?
|
|
151
|
+
return typeof u == "function" ? C(
|
|
152
152
|
A.find((t) => u().indexOf(t) === -1) || 0,
|
|
153
153
|
2,
|
|
154
154
|
"0"
|
|
155
|
-
) :
|
|
155
|
+
) : C(A[0], 2, "0");
|
|
156
156
|
case "minute":
|
|
157
|
-
return typeof a == "function" ?
|
|
158
|
-
|
|
157
|
+
return typeof a == "function" ? C(
|
|
158
|
+
N.find(
|
|
159
159
|
(t) => a(l).indexOf(t) === -1
|
|
160
160
|
) || 0,
|
|
161
161
|
2,
|
|
162
162
|
"0"
|
|
163
|
-
) :
|
|
163
|
+
) : C(N[0], 2, "0");
|
|
164
164
|
case "second":
|
|
165
|
-
return typeof d == "function" ?
|
|
165
|
+
return typeof d == "function" ? C(
|
|
166
166
|
S.find(
|
|
167
167
|
(t) => d(l, P).indexOf(t) === -1
|
|
168
168
|
) || 0,
|
|
169
169
|
2,
|
|
170
170
|
"0"
|
|
171
|
-
) :
|
|
171
|
+
) : C(S[0], 2, "0");
|
|
172
172
|
default:
|
|
173
173
|
return "00";
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
[
|
|
177
177
|
A,
|
|
178
|
-
|
|
178
|
+
N,
|
|
179
179
|
S,
|
|
180
180
|
u,
|
|
181
181
|
a,
|
|
@@ -185,27 +185,27 @@ function _e(r) {
|
|
|
185
185
|
]
|
|
186
186
|
);
|
|
187
187
|
function ae(n, t) {
|
|
188
|
-
const e =
|
|
188
|
+
const e = _(s).list.indexOf("A") !== -1, U = x || g(
|
|
189
189
|
`${J("hour")}:${J("minute")}:${J(
|
|
190
190
|
"second"
|
|
191
191
|
)}`,
|
|
192
192
|
"HH:mm:ss"
|
|
193
193
|
);
|
|
194
|
-
let m = U.hour(), f = U.minute(),
|
|
194
|
+
let m = U.hour(), f = U.minute(), k = U.second();
|
|
195
195
|
const K = e ? M.toUpperCase() : M;
|
|
196
196
|
let T = "HH:mm:ss", b;
|
|
197
|
-
|
|
197
|
+
O && (e ? T = `${T} A` : T = `${T} a`), O && (m = m > 12 ? m - 12 : m), t === "hour" && (typeof a == "function" && a(n).includes(f) && (f = N.find(
|
|
198
198
|
(D) => a(n).indexOf(D) === -1
|
|
199
|
-
) ?? 0), typeof d == "function" && d(n, f).includes(
|
|
199
|
+
) ?? 0), typeof d == "function" && d(n, f).includes(k) && (k = S.find(
|
|
200
200
|
(D) => d(n, f).indexOf(D) === -1
|
|
201
201
|
) ?? 0), b = g(
|
|
202
|
-
`${n}:${f}:${
|
|
202
|
+
`${n}:${f}:${k} ${K}`,
|
|
203
203
|
T,
|
|
204
204
|
"en"
|
|
205
|
-
)), t === "minute" && (typeof d == "function" && d(m, n).includes(
|
|
205
|
+
)), t === "minute" && (typeof d == "function" && d(m, n).includes(k) && (k = S.find(
|
|
206
206
|
(D) => d(m, n).indexOf(D) === -1
|
|
207
207
|
) ?? 0), b = g(
|
|
208
|
-
`${m}:${n}:${
|
|
208
|
+
`${m}:${n}:${k} ${K}`,
|
|
209
209
|
T,
|
|
210
210
|
"en"
|
|
211
211
|
)), t === "second" && (b = g(
|
|
@@ -213,20 +213,20 @@ function _e(r) {
|
|
|
213
213
|
T,
|
|
214
214
|
"en"
|
|
215
215
|
)), t === "ampm" && (b = g(
|
|
216
|
-
`${m}:${f}:${
|
|
216
|
+
`${m}:${f}:${k} ${e ? n.toUpperCase() : n}`,
|
|
217
217
|
T,
|
|
218
218
|
"en"
|
|
219
219
|
)), b = g(b, T).locale(g.locale()), o == null || o(
|
|
220
|
-
ce(b,
|
|
221
|
-
ce(b,
|
|
222
|
-
), w || (v == null || v(b),
|
|
220
|
+
ce(b, q, W).format(s),
|
|
221
|
+
ce(b, q, W)
|
|
222
|
+
), w || (v == null || v(b), i && p(b));
|
|
223
223
|
}
|
|
224
224
|
function de() {
|
|
225
225
|
x && p(x);
|
|
226
226
|
}
|
|
227
227
|
function me() {
|
|
228
|
-
const n = re(), t = re(
|
|
229
|
-
o == null || o(n.format(
|
|
228
|
+
const n = re(), t = re(q, W);
|
|
229
|
+
o == null || o(n.format(s), n), i ? p == null || p(t) : v == null || v(t);
|
|
230
230
|
}
|
|
231
231
|
const B = {
|
|
232
232
|
prefixCls: I,
|
|
@@ -236,7 +236,7 @@ function _e(r) {
|
|
|
236
236
|
};
|
|
237
237
|
function pe() {
|
|
238
238
|
const t = (y && typeof u == "function" ? A.filter((e) => u().indexOf(e) === -1) : A).map((e) => ({
|
|
239
|
-
label:
|
|
239
|
+
label: C(`${e}`, 2, "0"),
|
|
240
240
|
value: e,
|
|
241
241
|
selected: l !== void 0 && l === e,
|
|
242
242
|
disabled: typeof u == "function" && u().indexOf(e) !== -1
|
|
@@ -252,8 +252,8 @@ function _e(r) {
|
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
function he() {
|
|
255
|
-
const t = (y && typeof a == "function" ?
|
|
256
|
-
label:
|
|
255
|
+
const t = (y && typeof a == "function" ? N.filter((e) => a(l).indexOf(e) === -1) : N).map((e) => ({
|
|
256
|
+
label: C(`${e}`, 2, "0"),
|
|
257
257
|
value: e,
|
|
258
258
|
selected: l !== void 0 && P === e,
|
|
259
259
|
disabled: typeof a == "function" && a(l).indexOf(e) !== -1
|
|
@@ -272,7 +272,7 @@ function _e(r) {
|
|
|
272
272
|
const t = (y && typeof d == "function" ? S.filter(
|
|
273
273
|
(e) => d(l, P).indexOf(e) === -1
|
|
274
274
|
) : S).map((e) => ({
|
|
275
|
-
label:
|
|
275
|
+
label: C(`${e}`, 2, "0"),
|
|
276
276
|
value: e,
|
|
277
277
|
selected: l !== void 0 && oe === e,
|
|
278
278
|
disabled: typeof d == "function" && d(l, P).indexOf(e) !== -1
|
|
@@ -288,7 +288,7 @@ function _e(r) {
|
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
290
|
function $e() {
|
|
291
|
-
const n =
|
|
291
|
+
const n = _(s).list.indexOf("A") !== -1, t = Pe.map((e) => ({
|
|
292
292
|
label: n ? e.toUpperCase() : e,
|
|
293
293
|
value: e,
|
|
294
294
|
selected: M === e
|
|
@@ -303,19 +303,19 @@ function _e(r) {
|
|
|
303
303
|
}
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
|
-
const { list: L } =
|
|
306
|
+
const { list: L } = _(s), ve = ee(I), be = H || i && w || !w && i && !ne;
|
|
307
307
|
return /* @__PURE__ */ Q(Te, { children: [
|
|
308
308
|
/* @__PURE__ */ Q("div", { className: ve, children: [
|
|
309
309
|
(L.indexOf("H") !== -1 || L.indexOf("h") !== -1) && pe(),
|
|
310
310
|
L.indexOf("m") !== -1 && he(),
|
|
311
311
|
L.indexOf("s") !== -1 && xe(),
|
|
312
|
-
|
|
312
|
+
O && $e()
|
|
313
313
|
] }),
|
|
314
314
|
E && /* @__PURE__ */ $("div", { className: `${I}-footer-extra-wrapper`, children: E }),
|
|
315
315
|
!be && /* @__PURE__ */ Q("div", { className: `${I}-footer-btn-wrapper`, children: [
|
|
316
|
-
!w && ne ? /* @__PURE__ */ $(
|
|
317
|
-
!
|
|
318
|
-
|
|
316
|
+
!w && ne ? /* @__PURE__ */ $(se, { size: "mini", onClick: me, children: te.TimePicker.now }) : /* @__PURE__ */ $("div", {}),
|
|
317
|
+
!i && /* @__PURE__ */ $(
|
|
318
|
+
se,
|
|
319
319
|
{
|
|
320
320
|
type: "primary",
|
|
321
321
|
size: "mini",
|
|
@@ -328,7 +328,7 @@ function _e(r) {
|
|
|
328
328
|
] });
|
|
329
329
|
}
|
|
330
330
|
export {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
Ne as P,
|
|
332
|
+
qe as T,
|
|
333
|
+
_e as g
|
|
334
334
|
};
|