@unicom-cloud/ui 0.8.54 → 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/{qSJXQ1qu.js → DBJ8d0o0.js} +183 -189
- 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/modal/config.d.ts +1 -1
- 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,855 @@
|
|
|
1
|
+
import { jsxs as U, jsx as c, Fragment as Et } from "react/jsx-runtime";
|
|
2
|
+
import st, { forwardRef as z, useContext as pt, useRef as A, useState as Q, useMemo as ot, useEffect as tt, useCallback as St, useImperativeHandle as Tt } from "react";
|
|
3
|
+
import { b as at } from "./DUxWiN2U.js";
|
|
4
|
+
import kt from "../hooks/useMergeProps.js";
|
|
5
|
+
import wt from "../hooks/useMergeValue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import "./BP7xX86Q.js";
|
|
8
|
+
import "lodash/isFunction";
|
|
9
|
+
import It from "lodash/isString";
|
|
10
|
+
import "./BlKc_pDZ.js";
|
|
11
|
+
import "lodash/camelCase.js";
|
|
12
|
+
import "lodash/capitalize.js";
|
|
13
|
+
import "lodash/kebabCase.js";
|
|
14
|
+
import "lodash/snakeCase.js";
|
|
15
|
+
import "lodash/startCase.js";
|
|
16
|
+
import "lodash/upperFirst.js";
|
|
17
|
+
import { y as D } from "./Do1aMgY3.js";
|
|
18
|
+
import "./Lk60-jkf.js";
|
|
19
|
+
import Lt from "lodash/isArray";
|
|
20
|
+
import "lodash/isObject";
|
|
21
|
+
import "lodash/isEqual";
|
|
22
|
+
import "./BeM2hfks.js";
|
|
23
|
+
import "lodash/isBoolean";
|
|
24
|
+
import Rt from "lodash/isNumber";
|
|
25
|
+
import "lodash/isEqualWith";
|
|
26
|
+
import "../utils/is.js";
|
|
27
|
+
import "lodash/merge";
|
|
28
|
+
import { isServerRendering as Mt } from "../utils/dom.js";
|
|
29
|
+
import "../hooks/useIntersectionObserver.js";
|
|
30
|
+
import "../utils/reactDOM.js";
|
|
31
|
+
import "../Affix.js";
|
|
32
|
+
import "../Alert.js";
|
|
33
|
+
import "./JnyGFb5j.js";
|
|
34
|
+
import "../AutoComplete.js";
|
|
35
|
+
import "../Avatar.js";
|
|
36
|
+
import "../BackTop.js";
|
|
37
|
+
import "../Badge.js";
|
|
38
|
+
import "../Breadcrumb.js";
|
|
39
|
+
import "../Button.js";
|
|
40
|
+
import "../Calendar.js";
|
|
41
|
+
import "../Card.js";
|
|
42
|
+
import "../Carousel.js";
|
|
43
|
+
import "./t51ig1FZ.js";
|
|
44
|
+
import "./DJmWXheU.js";
|
|
45
|
+
import "./CwjaGytU.js";
|
|
46
|
+
import "../Comment.js";
|
|
47
|
+
import Wt from "../Copy.js";
|
|
48
|
+
import "../DatePicker.js";
|
|
49
|
+
import "../Descriptions.js";
|
|
50
|
+
import "../Divider.js";
|
|
51
|
+
import "./CggcswbO.js";
|
|
52
|
+
import "../Dropdown.js";
|
|
53
|
+
import "./CilQ012k.js";
|
|
54
|
+
import "../Grid.js";
|
|
55
|
+
import "./C-w9pFY-.js";
|
|
56
|
+
import "../Icon.js";
|
|
57
|
+
import "./D6RTBH4C.js";
|
|
58
|
+
import { I as Bt } from "./Bl-ODC57.js";
|
|
59
|
+
import "./DafaH1Qt.js";
|
|
60
|
+
import "../Layout.js";
|
|
61
|
+
import "../Link.js";
|
|
62
|
+
import "../List.js";
|
|
63
|
+
import "../Mentions.js";
|
|
64
|
+
import "./yvbAFxtk.js";
|
|
65
|
+
import "./DBJ8d0o0.js";
|
|
66
|
+
import "../PageHeader.js";
|
|
67
|
+
import "./WkB0MERB.js";
|
|
68
|
+
import "../Popconfirm.js";
|
|
69
|
+
import Ht from "../Popover.js";
|
|
70
|
+
import "../Portal.js";
|
|
71
|
+
import "../Progress.js";
|
|
72
|
+
import "../Loading.js";
|
|
73
|
+
import "./BbYzi8M0.js";
|
|
74
|
+
import "../Rate.js";
|
|
75
|
+
import "../ResizeBox.js";
|
|
76
|
+
import "../Result.js";
|
|
77
|
+
import "./BpwDupra.js";
|
|
78
|
+
import "../Skeleton.js";
|
|
79
|
+
import "../Slider.js";
|
|
80
|
+
import "../Space.js";
|
|
81
|
+
import "./l0sNRNKZ.js";
|
|
82
|
+
import "./B9PsJar0.js";
|
|
83
|
+
import "../Spin.js";
|
|
84
|
+
import "../Statistic.js";
|
|
85
|
+
import "../Steps.js";
|
|
86
|
+
import "../SuspenseFallbackTest.js";
|
|
87
|
+
import "../Switch.js";
|
|
88
|
+
import "../Table.js";
|
|
89
|
+
import "./B2Bp3i5u.js";
|
|
90
|
+
import "../Tag.js";
|
|
91
|
+
import "../TimePicker.js";
|
|
92
|
+
import "./CF3Telny.js";
|
|
93
|
+
import ht from "../Tooltip.js";
|
|
94
|
+
import "../Transfer.js";
|
|
95
|
+
import "lodash/get";
|
|
96
|
+
import "lodash/has";
|
|
97
|
+
import ft from "lodash/isUndefined";
|
|
98
|
+
import "./Bny52uiG.js";
|
|
99
|
+
import "./DkIjpuBZ.js";
|
|
100
|
+
import "../utils/raf.js";
|
|
101
|
+
import Nt from "../utils/throttleByRaf.js";
|
|
102
|
+
import "react-dom";
|
|
103
|
+
import Ct from "../hooks/useUpdateEffect.js";
|
|
104
|
+
import ct from "../utils/mergedToString.js";
|
|
105
|
+
import Ft from "../utils/omit.js";
|
|
106
|
+
import Dt from "../utils/throttleByRafV2.js";
|
|
107
|
+
import { I as _t } from "./BHLTzWzi.js";
|
|
108
|
+
import X from "lodash/isPlainObject";
|
|
109
|
+
import qt from "../hooks/useKeyboardEvent.js";
|
|
110
|
+
import mt from "../hooks/useIsomorphicLayoutEffect.js";
|
|
111
|
+
import "./Dw4SJ4o1.js";
|
|
112
|
+
import "./DalIRWr7.js";
|
|
113
|
+
import "./DDda6s72.js";
|
|
114
|
+
const xt = [
|
|
115
|
+
[
|
|
116
|
+
"requestFullscreen",
|
|
117
|
+
"exitFullscreen",
|
|
118
|
+
"fullscreenElement",
|
|
119
|
+
"fullscreenEnabled",
|
|
120
|
+
"fullscreenchange",
|
|
121
|
+
"fullscreenerror"
|
|
122
|
+
],
|
|
123
|
+
// New WebKit
|
|
124
|
+
[
|
|
125
|
+
"webkitRequestFullscreen",
|
|
126
|
+
"webkitExitFullscreen",
|
|
127
|
+
"webkitFullscreenElement",
|
|
128
|
+
"webkitFullscreenEnabled",
|
|
129
|
+
"webkitfullscreenchange",
|
|
130
|
+
"webkitfullscreenerror"
|
|
131
|
+
]
|
|
132
|
+
// Old WebKit
|
|
133
|
+
// [
|
|
134
|
+
// 'webkitRequestFullScreen',
|
|
135
|
+
// 'webkitCancelFullScreen',
|
|
136
|
+
// 'webkitCurrentFullScreenElement',
|
|
137
|
+
// 'webkitCancelFullScreen',
|
|
138
|
+
// 'webkitfullscreenchange',
|
|
139
|
+
// 'webkitfullscreenerror',
|
|
140
|
+
// ],
|
|
141
|
+
// [
|
|
142
|
+
// 'mozRequestFullScreen',
|
|
143
|
+
// 'mozCancelFullScreen',
|
|
144
|
+
// 'mozFullScreenElement',
|
|
145
|
+
// 'mozFullScreenEnabled',
|
|
146
|
+
// 'mozfullscreenchange',
|
|
147
|
+
// 'mozfullscreenerror',
|
|
148
|
+
// ],
|
|
149
|
+
// [
|
|
150
|
+
// 'msRequestFullscreen',
|
|
151
|
+
// 'msExitFullscreen',
|
|
152
|
+
// 'msFullscreenElement',
|
|
153
|
+
// 'msFullscreenEnabled',
|
|
154
|
+
// 'MSFullscreenChange',
|
|
155
|
+
// 'MSFullscreenError',
|
|
156
|
+
// ],
|
|
157
|
+
], L = Reflect.apply(
|
|
158
|
+
() => {
|
|
159
|
+
if (typeof document > "u")
|
|
160
|
+
return !1;
|
|
161
|
+
const t = xt[0], n = {};
|
|
162
|
+
for (const e of xt)
|
|
163
|
+
if ((e == null ? void 0 : e[1]) in document) {
|
|
164
|
+
for (const [l, d] of e.entries())
|
|
165
|
+
n[t[l]] = d;
|
|
166
|
+
return n;
|
|
167
|
+
}
|
|
168
|
+
return !1;
|
|
169
|
+
},
|
|
170
|
+
void 0,
|
|
171
|
+
[]
|
|
172
|
+
), yt = {
|
|
173
|
+
change: L == null ? void 0 : L.fullscreenchange,
|
|
174
|
+
error: L == null ? void 0 : L.fullscreenerror
|
|
175
|
+
};
|
|
176
|
+
let V = {
|
|
177
|
+
request(t = document.documentElement, n) {
|
|
178
|
+
return new Promise((e, l) => {
|
|
179
|
+
const d = () => {
|
|
180
|
+
V.off("change", d), e();
|
|
181
|
+
};
|
|
182
|
+
V.on("change", d);
|
|
183
|
+
const p = t[L == null ? void 0 : L.requestFullscreen](n);
|
|
184
|
+
p instanceof Promise && p.then(d).catch(l);
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
exit() {
|
|
188
|
+
return new Promise((t, n) => {
|
|
189
|
+
if (!V.isFullscreen) {
|
|
190
|
+
t();
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const e = () => {
|
|
194
|
+
V.off("change", e), t();
|
|
195
|
+
};
|
|
196
|
+
V.on("change", e);
|
|
197
|
+
const l = document[L == null ? void 0 : L.exitFullscreen]();
|
|
198
|
+
l instanceof Promise && l.then(e).catch(n);
|
|
199
|
+
});
|
|
200
|
+
},
|
|
201
|
+
toggle(t, n) {
|
|
202
|
+
return V.isFullscreen ? V.exit() : V.request(t, n);
|
|
203
|
+
},
|
|
204
|
+
on(t, n) {
|
|
205
|
+
const e = yt[t];
|
|
206
|
+
e && document.addEventListener(e, n, !1);
|
|
207
|
+
},
|
|
208
|
+
off(t, n) {
|
|
209
|
+
const e = yt[t];
|
|
210
|
+
e && document.removeEventListener(e, n, !1);
|
|
211
|
+
},
|
|
212
|
+
raw: L
|
|
213
|
+
};
|
|
214
|
+
Object.defineProperties(V, {
|
|
215
|
+
isFullscreen: {
|
|
216
|
+
get: () => !!document[L == null ? void 0 : L.fullscreenElement]
|
|
217
|
+
},
|
|
218
|
+
element: {
|
|
219
|
+
enumerable: !0,
|
|
220
|
+
get: () => document[L == null ? void 0 : L.fullscreenElement] ?? void 0
|
|
221
|
+
},
|
|
222
|
+
isEnabled: {
|
|
223
|
+
enumerable: !0,
|
|
224
|
+
// Coerce to boolean in case of old WebKit.
|
|
225
|
+
get: () => !!document[L == null ? void 0 : L.fullscreenEnabled]
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
L || (V = { isEnabled: !1 });
|
|
229
|
+
const dn = V, jt = {
|
|
230
|
+
rows: 1,
|
|
231
|
+
expandable: !0,
|
|
232
|
+
defaultExpanded: !1
|
|
233
|
+
}, Ot = (t, n) => {
|
|
234
|
+
var g;
|
|
235
|
+
const e = pt(at), l = kt(
|
|
236
|
+
t,
|
|
237
|
+
jt,
|
|
238
|
+
(g = e.componentConfig) == null ? void 0 : g["Typography.Ellipsis"]
|
|
239
|
+
), {
|
|
240
|
+
className: d,
|
|
241
|
+
style: p,
|
|
242
|
+
rows: f,
|
|
243
|
+
disabled: E,
|
|
244
|
+
showTooltip: k,
|
|
245
|
+
children: m,
|
|
246
|
+
expandable: P,
|
|
247
|
+
expandRender: _,
|
|
248
|
+
onExpand: b,
|
|
249
|
+
onEllipsis: s
|
|
250
|
+
} = l, { locale: x } = e, R = Mt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), S = A(null), M = A(null), [w, I] = Q(""), [q, W] = Q(!1), v = A(null), N = A(null), [i, B] = wt(!1, {
|
|
251
|
+
defaultValue: l.defaultExpanded,
|
|
252
|
+
value: l.expanded
|
|
253
|
+
}), [h, G] = Q(!1), j = ot(() => X(P) ? !P.single && f === 1 : f === 1, [f, P]), $ = ot(() => X(k) ? {
|
|
254
|
+
tooltip: !0,
|
|
255
|
+
tooltipProps: k
|
|
256
|
+
} : {
|
|
257
|
+
tooltip: !!k,
|
|
258
|
+
tooltipProps: k
|
|
259
|
+
}, [k]);
|
|
260
|
+
tt(() => {
|
|
261
|
+
if (M.current) {
|
|
262
|
+
const o = M.current.textContent;
|
|
263
|
+
o && I(o);
|
|
264
|
+
}
|
|
265
|
+
}, [m, M]);
|
|
266
|
+
const a = e.getPrefixCls("ellipsis"), Y = () => _ ? _(i) : /* @__PURE__ */ c("span", { className: `${a}-action-text`, children: i ? x.Typography.fold : x.Typography.unfold }), H = () => P && h ? /* @__PURE__ */ c(
|
|
267
|
+
"div",
|
|
268
|
+
{
|
|
269
|
+
className: D(`${a}-action`, {
|
|
270
|
+
[`${a}-action-collapsed`]: !i
|
|
271
|
+
}),
|
|
272
|
+
onClick: (o) => {
|
|
273
|
+
i ? (B(!1), b == null || b(!1, o)) : (B(!0), W(!1), b == null || b(!0, o));
|
|
274
|
+
},
|
|
275
|
+
children: Y()
|
|
276
|
+
}
|
|
277
|
+
) : null, J = St(
|
|
278
|
+
Nt(() => {
|
|
279
|
+
N.current && v.current && ((j ? N.current.offsetWidth > v.current.offsetWidth : N.current.offsetHeight > v.current.offsetHeight) ? h === !1 && (G(!0), s == null || s(!0)) : h === !0 && (G(!1), s == null || s(!1)));
|
|
280
|
+
}),
|
|
281
|
+
[h, j]
|
|
282
|
+
);
|
|
283
|
+
tt(() => {
|
|
284
|
+
let o;
|
|
285
|
+
return v.current && (o = new ResizeObserver(J), o.observe(v.current)), () => {
|
|
286
|
+
var y, T;
|
|
287
|
+
v.current && ((y = o == null ? void 0 : o.unobserve) == null || y.call(o, v.current)), (T = o == null ? void 0 : o.disconnect) == null || T.call(o), o = null;
|
|
288
|
+
};
|
|
289
|
+
}, [v.current]), tt(() => {
|
|
290
|
+
let o;
|
|
291
|
+
return N.current && (o = new ResizeObserver(J), o.observe(N.current)), () => {
|
|
292
|
+
var y, T;
|
|
293
|
+
N.current && ((y = o == null ? void 0 : o.unobserve) == null || y.call(o, N.current)), (T = o == null ? void 0 : o.disconnect) == null || T.call(o), o = null;
|
|
294
|
+
};
|
|
295
|
+
}, [N.current]);
|
|
296
|
+
const et = () => E ? null : /* @__PURE__ */ c(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
className: j ? D(`${a}-content-mirror`, `${a}-single`) : D(
|
|
300
|
+
`${a}-content-mirror`,
|
|
301
|
+
`${a}-multiple`,
|
|
302
|
+
`${a}-collapsed`
|
|
303
|
+
),
|
|
304
|
+
style: {
|
|
305
|
+
WebkitBoxOrient: "vertical",
|
|
306
|
+
MozBoxOrient: "vertical",
|
|
307
|
+
WebkitLineClamp: f
|
|
308
|
+
},
|
|
309
|
+
ref: v,
|
|
310
|
+
children: /* @__PURE__ */ c("span", { ref: N, className: `${a}-text`, children: m })
|
|
311
|
+
}
|
|
312
|
+
), O = () => j ? /* @__PURE__ */ c("div", { className: D(`${a}-content`, `${a}-single`), children: /* @__PURE__ */ c("span", { ref: M, className: `${a}-text`, children: m }) }) : R ? /* @__PURE__ */ U(
|
|
313
|
+
"div",
|
|
314
|
+
{
|
|
315
|
+
className: D(`${a}-content`, `${a}-multiple`),
|
|
316
|
+
title: !$.tooltip && h && !i ? w : void 0,
|
|
317
|
+
children: [
|
|
318
|
+
!i && H(),
|
|
319
|
+
/* @__PURE__ */ c(
|
|
320
|
+
"span",
|
|
321
|
+
{
|
|
322
|
+
ref: M,
|
|
323
|
+
className: D(`${a}-text`, {
|
|
324
|
+
[`${a}-collapsed`]: !i
|
|
325
|
+
}),
|
|
326
|
+
style: {
|
|
327
|
+
WebkitBoxOrient: "vertical",
|
|
328
|
+
MozBoxOrient: "vertical",
|
|
329
|
+
WebkitLineClamp: f
|
|
330
|
+
},
|
|
331
|
+
children: m
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
i && H()
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
) : /* @__PURE__ */ U(
|
|
338
|
+
"div",
|
|
339
|
+
{
|
|
340
|
+
className: D(`${a}-content`, `${a}-multiple`, {
|
|
341
|
+
[`${a}-collapsed`]: !i
|
|
342
|
+
}),
|
|
343
|
+
style: {
|
|
344
|
+
WebkitBoxOrient: "vertical",
|
|
345
|
+
MozBoxOrient: "vertical",
|
|
346
|
+
WebkitLineClamp: f
|
|
347
|
+
},
|
|
348
|
+
title: !$.tooltip && h && !i ? w : void 0,
|
|
349
|
+
children: [
|
|
350
|
+
!i && H(),
|
|
351
|
+
/* @__PURE__ */ c("span", { ref: M, className: `${a}-text`, children: m }),
|
|
352
|
+
i && H()
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
), F = () => E ? /* @__PURE__ */ c("div", { className: `${a}-content`, children: /* @__PURE__ */ c("span", { ref: M, className: `${a}-text`, children: m }) }) : $.tooltip ? /* @__PURE__ */ c(
|
|
356
|
+
ht,
|
|
357
|
+
{
|
|
358
|
+
content: w,
|
|
359
|
+
popupVisible: q,
|
|
360
|
+
disabled: !h || i,
|
|
361
|
+
triggerProps: {
|
|
362
|
+
mouseEnterDelay: 100
|
|
363
|
+
},
|
|
364
|
+
onVisibleChange: (o) => {
|
|
365
|
+
o ? h && !i && W(!0) : W(!1);
|
|
366
|
+
},
|
|
367
|
+
...$.tooltipProps,
|
|
368
|
+
children: O()
|
|
369
|
+
}
|
|
370
|
+
) : O();
|
|
371
|
+
return /* @__PURE__ */ U("div", { ref: S, className: D(a, d), style: p, children: [
|
|
372
|
+
et(),
|
|
373
|
+
F()
|
|
374
|
+
] });
|
|
375
|
+
}, Vt = z(Ot);
|
|
376
|
+
function Gt(t, n) {
|
|
377
|
+
const { prefixCls: e, children: l, setEditing: d, editableConfig: p, style: f } = t, E = D(
|
|
378
|
+
`${e}-typography`,
|
|
379
|
+
`${e}-edit-content`,
|
|
380
|
+
t.className
|
|
381
|
+
), k = ct(l), m = A(null);
|
|
382
|
+
tt(() => {
|
|
383
|
+
var s, x;
|
|
384
|
+
if (m.current && ((x = (s = m.current).focus) == null || x.call(s)), m.current && m.current.dom) {
|
|
385
|
+
const { length: R } = m.current.dom.value;
|
|
386
|
+
m.current.dom.setSelectionRange(R, R);
|
|
387
|
+
}
|
|
388
|
+
}, []);
|
|
389
|
+
function P() {
|
|
390
|
+
var s;
|
|
391
|
+
d(!1), (s = p.onEnd) == null || s.call(p, k);
|
|
392
|
+
}
|
|
393
|
+
function _(s) {
|
|
394
|
+
var x;
|
|
395
|
+
(x = p.onChange) == null || x.call(p, s);
|
|
396
|
+
}
|
|
397
|
+
function b() {
|
|
398
|
+
P();
|
|
399
|
+
}
|
|
400
|
+
return /* @__PURE__ */ c("div", { className: E, style: f, ref: n, children: /* @__PURE__ */ c(
|
|
401
|
+
Bt.TextArea,
|
|
402
|
+
{
|
|
403
|
+
className: `${e}-edit-content-textarea`,
|
|
404
|
+
onBlur: b,
|
|
405
|
+
ref: m,
|
|
406
|
+
value: k,
|
|
407
|
+
autoSize: !0,
|
|
408
|
+
onChange: _,
|
|
409
|
+
onPressEnter: P
|
|
410
|
+
}
|
|
411
|
+
) });
|
|
412
|
+
}
|
|
413
|
+
const Kt = z(Gt);
|
|
414
|
+
function Xt(t) {
|
|
415
|
+
var N, i, B, h, G;
|
|
416
|
+
const {
|
|
417
|
+
children: n,
|
|
418
|
+
copyable: e,
|
|
419
|
+
editable: l,
|
|
420
|
+
ellipsis: d,
|
|
421
|
+
expanding: p,
|
|
422
|
+
setEditing: f,
|
|
423
|
+
onClickExpand: E,
|
|
424
|
+
forceShowExpand: k,
|
|
425
|
+
isEllipsis: m,
|
|
426
|
+
currentContext: P = {}
|
|
427
|
+
} = t, _ = qt(), { getPrefixCls: b, locale: s } = P, x = b("typography"), R = X(d) ? d : {}, S = X(l) ? l : {}, M = Lt(R.expandNodes) ? R.expandNodes : [(N = s == null ? void 0 : s.Typography) == null ? void 0 : N.fold, (i = s == null ? void 0 : s.Typography) == null ? void 0 : i.unfold], w = (j) => {
|
|
428
|
+
var $;
|
|
429
|
+
($ = S.onStart) == null || $.call(S, ct(n), j), f(!0);
|
|
430
|
+
}, I = X(e) ? { ...e } : {};
|
|
431
|
+
I.text === void 0 && (I.text = ct(n));
|
|
432
|
+
const q = !!e && /* @__PURE__ */ c(
|
|
433
|
+
Wt,
|
|
434
|
+
{
|
|
435
|
+
...I,
|
|
436
|
+
className: `${x}-operation-copy`,
|
|
437
|
+
tooltipProps: I.tooltipProps
|
|
438
|
+
}
|
|
439
|
+
), W = l && /* @__PURE__ */ c(
|
|
440
|
+
ht,
|
|
441
|
+
{
|
|
442
|
+
content: (B = s == null ? void 0 : s.Typography) == null ? void 0 : B.edit,
|
|
443
|
+
...S.tooltipProps,
|
|
444
|
+
children: /* @__PURE__ */ c(
|
|
445
|
+
"span",
|
|
446
|
+
{
|
|
447
|
+
tabIndex: 0,
|
|
448
|
+
"aria-label": (h = s == null ? void 0 : s.Typography) == null ? void 0 : h.edit,
|
|
449
|
+
role: "button",
|
|
450
|
+
className: `${x}-operation-edit`,
|
|
451
|
+
onClick: w,
|
|
452
|
+
..._({
|
|
453
|
+
onPressEnter: w
|
|
454
|
+
}),
|
|
455
|
+
children: /* @__PURE__ */ c(_t, {})
|
|
456
|
+
}
|
|
457
|
+
)
|
|
458
|
+
}
|
|
459
|
+
), v = k || R.expandable && m ? /* @__PURE__ */ c(
|
|
460
|
+
"a",
|
|
461
|
+
{
|
|
462
|
+
className: `${x}-operation-expand`,
|
|
463
|
+
onClick: E,
|
|
464
|
+
role: "button",
|
|
465
|
+
tabIndex: 0,
|
|
466
|
+
"aria-label": (G = s == null ? void 0 : s.Typography) == null ? void 0 : G.unfold,
|
|
467
|
+
..._({
|
|
468
|
+
onPressEnter: E
|
|
469
|
+
}),
|
|
470
|
+
children: p ? M[0] : M[1]
|
|
471
|
+
}
|
|
472
|
+
) : null;
|
|
473
|
+
return tt(() => () => {
|
|
474
|
+
}, []), /* @__PURE__ */ U(Et, { children: [
|
|
475
|
+
v,
|
|
476
|
+
W,
|
|
477
|
+
q
|
|
478
|
+
] });
|
|
479
|
+
}
|
|
480
|
+
const At = (t, n) => {
|
|
481
|
+
if (typeof window < "u" && window.CSS && window.CSS.supports)
|
|
482
|
+
return ft(n) ? window.CSS.supports(t) : window.CSS.supports(t, n);
|
|
483
|
+
if (typeof document < "u" && document.createElement) {
|
|
484
|
+
const e = document.createElement("div");
|
|
485
|
+
return e.setAttribute("style", `${t}:${n};`), typeof e.style[t] < "u";
|
|
486
|
+
}
|
|
487
|
+
return !1;
|
|
488
|
+
}, Jt = {
|
|
489
|
+
display: " -webkit-box",
|
|
490
|
+
"-webkit-line-clamp": 2
|
|
491
|
+
}, Qt = () => Object.entries(Jt).every(
|
|
492
|
+
([t, n]) => At(t, n)
|
|
493
|
+
);
|
|
494
|
+
function Yt(t) {
|
|
495
|
+
const { cssEllipsis: n, ellipsisStr: e = "...", suffix: l, rows: d } = t, p = ot(() => !n || d > 1 && !Qt() ? !1 : e === "..." && !l, [e, n, d, l]), f = {
|
|
496
|
+
textOverflow: "ellipsis",
|
|
497
|
+
whiteSpace: "nowrap",
|
|
498
|
+
overflow: "hidden"
|
|
499
|
+
}, E = {
|
|
500
|
+
textOverflow: "ellipsis",
|
|
501
|
+
whiteSpace: "normal",
|
|
502
|
+
overflow: "hidden",
|
|
503
|
+
WebkitLineClamp: `${t.rows}`,
|
|
504
|
+
WebkitBoxOrient: "vertical",
|
|
505
|
+
display: "-webkit-box"
|
|
506
|
+
};
|
|
507
|
+
return {
|
|
508
|
+
simpleEllipsis: p,
|
|
509
|
+
ellipsisStyle: p ? t.rows > 1 ? E : f : {}
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
const Zt = "hxj";
|
|
513
|
+
var lt = /* @__PURE__ */ ((t) => (t[t.INIT = 0] = "INIT", t[t.BEFORE_MEASURE = 1] = "BEFORE_MEASURE", t[t.MEASURING = 2] = "MEASURING", t[t.MEASURE_END = 3] = "MEASURE_END", t[t.NO_NEED_ELLIPSIS = 4] = "NO_NEED_ELLIPSIS", t))(lt || {});
|
|
514
|
+
function Ut(t) {
|
|
515
|
+
const {
|
|
516
|
+
children: n,
|
|
517
|
+
rows: e = 1,
|
|
518
|
+
width: l,
|
|
519
|
+
expanding: d,
|
|
520
|
+
renderMeasureContent: p,
|
|
521
|
+
simpleEllipsis: f,
|
|
522
|
+
onEllipsis: E,
|
|
523
|
+
suffix: k,
|
|
524
|
+
expandNodes: m,
|
|
525
|
+
expandable: P,
|
|
526
|
+
ellipsisStr: _
|
|
527
|
+
} = t, b = A(), s = A(), [x, R] = Q([0, 0, 0]), [S, M] = Q(0), [w, I] = Q(
|
|
528
|
+
4
|
|
529
|
+
/* NO_NEED_ELLIPSIS */
|
|
530
|
+
), [q, W, v] = x, [N, i] = Q(!1), B = ot(() => st.Children.toArray(n), [n]), h = A(0);
|
|
531
|
+
Ct(() => {
|
|
532
|
+
E == null || E(N);
|
|
533
|
+
}, [N]);
|
|
534
|
+
const G = (g) => It(g) || Rt(g), j = (g) => {
|
|
535
|
+
let o = 0;
|
|
536
|
+
return g.forEach((y) => {
|
|
537
|
+
G(y) ? o += String(y).length : o += 1;
|
|
538
|
+
}), o;
|
|
539
|
+
}, $ = ot(() => j(B), [B]), a = Nt(
|
|
540
|
+
(g) => R(g)
|
|
541
|
+
), Y = (g) => {
|
|
542
|
+
const o = [];
|
|
543
|
+
let y = 0;
|
|
544
|
+
if (g >= $)
|
|
545
|
+
return B;
|
|
546
|
+
for (const T in B) {
|
|
547
|
+
const r = B[T];
|
|
548
|
+
if (y >= g)
|
|
549
|
+
return o;
|
|
550
|
+
const u = G(r) ? String(r).length : 1;
|
|
551
|
+
if (u > g - y)
|
|
552
|
+
return o.push(String(r).slice(0, g - y)), y = g, o;
|
|
553
|
+
y += u, o.push(r);
|
|
554
|
+
}
|
|
555
|
+
return o;
|
|
556
|
+
}, H = () => {
|
|
557
|
+
var g, o, y;
|
|
558
|
+
if (S) {
|
|
559
|
+
if (w === 0) {
|
|
560
|
+
const T = e * S, u = ((g = s.current) == null ? void 0 : g.offsetHeight) > T;
|
|
561
|
+
!u || f || d ? (I(
|
|
562
|
+
3
|
|
563
|
+
/* MEASURE_END */
|
|
564
|
+
), i(u), R([0, $, $])) : (i(!0), I(
|
|
565
|
+
1
|
|
566
|
+
/* BEFORE_MEASURE */
|
|
567
|
+
));
|
|
568
|
+
} else if (w === 1) {
|
|
569
|
+
const T = (o = b == null ? void 0 : b.current) == null ? void 0 : o.offsetWidth, r = e * l;
|
|
570
|
+
if (T > e * l) {
|
|
571
|
+
const u = Math.max(r / T - 0.1, 0), C = Math.min(r / T + 0.1, 1), K = Math.floor(u * $), Z = Math.ceil(C * $), nt = Math.floor(
|
|
572
|
+
(K + Z) / 2
|
|
573
|
+
);
|
|
574
|
+
h.current = nt;
|
|
575
|
+
}
|
|
576
|
+
I(
|
|
577
|
+
2
|
|
578
|
+
/* MEASURING */
|
|
579
|
+
);
|
|
580
|
+
} else if (w === 2)
|
|
581
|
+
if (q !== v - 1) {
|
|
582
|
+
const T = (y = s.current) == null ? void 0 : y.offsetHeight, r = e * S;
|
|
583
|
+
let u = q, C = v;
|
|
584
|
+
T <= r ? u = W : C = W;
|
|
585
|
+
const K = Math.floor((C + u) / 2);
|
|
586
|
+
a([u, K, C]);
|
|
587
|
+
} else
|
|
588
|
+
a([q, q, q]), I(
|
|
589
|
+
3
|
|
590
|
+
/* MEASURE_END */
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
mt(() => {
|
|
595
|
+
t.rows && l ? (R([0, Math.floor($ / 2), $]), I(
|
|
596
|
+
0
|
|
597
|
+
/* INIT */
|
|
598
|
+
)) : I(
|
|
599
|
+
4
|
|
600
|
+
/* NO_NEED_ELLIPSIS */
|
|
601
|
+
);
|
|
602
|
+
}, [
|
|
603
|
+
$,
|
|
604
|
+
f,
|
|
605
|
+
d,
|
|
606
|
+
l,
|
|
607
|
+
k,
|
|
608
|
+
m,
|
|
609
|
+
P,
|
|
610
|
+
_,
|
|
611
|
+
t.rows
|
|
612
|
+
]), mt(() => {
|
|
613
|
+
if (b.current && w === 0) {
|
|
614
|
+
const g = b.current.offsetHeight;
|
|
615
|
+
M(g);
|
|
616
|
+
}
|
|
617
|
+
}, [w]), mt(() => {
|
|
618
|
+
H();
|
|
619
|
+
}, [w, W, q, v, S]);
|
|
620
|
+
const J = {
|
|
621
|
+
zIndex: -999,
|
|
622
|
+
position: "fixed",
|
|
623
|
+
opacity: 0,
|
|
624
|
+
padding: 0,
|
|
625
|
+
margin: 0
|
|
626
|
+
}, et = {
|
|
627
|
+
whiteSpace: "nowrap",
|
|
628
|
+
...J
|
|
629
|
+
}, O = f ? {
|
|
630
|
+
textOverflow: "clip",
|
|
631
|
+
...J
|
|
632
|
+
} : J;
|
|
633
|
+
let F;
|
|
634
|
+
if (w === 0 || w === 1)
|
|
635
|
+
F = /* @__PURE__ */ U("div", { children: [
|
|
636
|
+
/* @__PURE__ */ c("div", { ref: b, style: et, children: w === 0 ? Zt : p(n, !1) }),
|
|
637
|
+
/* @__PURE__ */ c("div", { ref: s, style: { width: l, ...O }, children: p(n, N) })
|
|
638
|
+
] }), F = F.props.children;
|
|
639
|
+
else if (w === 2) {
|
|
640
|
+
const g = {
|
|
641
|
+
height: S * e,
|
|
642
|
+
overflow: "hidden"
|
|
643
|
+
};
|
|
644
|
+
F = /* @__PURE__ */ U("div", { children: [
|
|
645
|
+
/* @__PURE__ */ c("div", { ref: s, style: { width: l, ...O }, children: p(Y(W), N) }),
|
|
646
|
+
/* @__PURE__ */ c("div", { style: g, children: Y(h.current) })
|
|
647
|
+
] }), F = F.props.children;
|
|
648
|
+
} else w === 3 ? F = p(Y(W), N) : w === 4 && (F = p(n, !1));
|
|
649
|
+
return { ellipsisNode: F, isEllipsis: N, measureStatus: w };
|
|
650
|
+
}
|
|
651
|
+
function zt(t, n) {
|
|
652
|
+
const {
|
|
653
|
+
type: e,
|
|
654
|
+
bold: l,
|
|
655
|
+
disabled: d,
|
|
656
|
+
mark: p,
|
|
657
|
+
underline: f,
|
|
658
|
+
delete: E,
|
|
659
|
+
code: k
|
|
660
|
+
} = t, m = [], P = [];
|
|
661
|
+
return e && P.push(`${n}-${e}`), d && P.push(`${n}-disabled`), l && m.push("b"), f && m.push("u"), E && m.push("del"), k && m.push("code"), p && m.push("mark"), {
|
|
662
|
+
component: m,
|
|
663
|
+
className: P
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
function te(t, n) {
|
|
667
|
+
const {
|
|
668
|
+
componentType: e,
|
|
669
|
+
style: l,
|
|
670
|
+
className: d,
|
|
671
|
+
children: p,
|
|
672
|
+
editable: f,
|
|
673
|
+
ellipsis: E,
|
|
674
|
+
heading: k,
|
|
675
|
+
blockquote: m,
|
|
676
|
+
...P
|
|
677
|
+
} = t, _ = pt(at), { getPrefixCls: b, rtl: s } = _, x = b("typography"), R = A(), { component: S, className: M } = zt(t, x), [w, I] = Q(!1), [q, W] = Q(0), v = X(f) ? f : {}, N = "editing" in v ? v.editing : w, i = E ? {
|
|
678
|
+
rows: 1,
|
|
679
|
+
ellipsisStr: "...",
|
|
680
|
+
cssEllipsis: !1,
|
|
681
|
+
...X(E) ? E : {}
|
|
682
|
+
} : {}, B = i.wrapper || st.Fragment, [h, G] = wt(!1, {
|
|
683
|
+
defaultValue: i.defaultExpanded,
|
|
684
|
+
value: i.expanded
|
|
685
|
+
}), { simpleEllipsis: j, ellipsisStyle: $ } = Yt(i), a = (r, u) => {
|
|
686
|
+
const C = ft(i.ellipsisStr) ? "..." : i.ellipsisStr, K = !ft(i.suffix) && i.suffix;
|
|
687
|
+
return /* @__PURE__ */ U(B, { children: [
|
|
688
|
+
r,
|
|
689
|
+
u && !h && !j ? C : "",
|
|
690
|
+
K,
|
|
691
|
+
F(u)
|
|
692
|
+
] });
|
|
693
|
+
}, { ellipsisNode: Y, isEllipsis: H, measureStatus: J } = Ut({
|
|
694
|
+
...i,
|
|
695
|
+
children: p,
|
|
696
|
+
expanding: h,
|
|
697
|
+
width: q,
|
|
698
|
+
renderMeasureContent: a,
|
|
699
|
+
simpleEllipsis: j || h
|
|
700
|
+
}), et = Dt((r) => {
|
|
701
|
+
const { contentRect: u } = r == null ? void 0 : r[0];
|
|
702
|
+
if (u) {
|
|
703
|
+
const C = S.includes("code") ? u.width - 18 : u.width;
|
|
704
|
+
[
|
|
705
|
+
lt.NO_NEED_ELLIPSIS,
|
|
706
|
+
lt.MEASURE_END
|
|
707
|
+
].includes(J) && W(C);
|
|
708
|
+
}
|
|
709
|
+
}), O = A(null);
|
|
710
|
+
tt(() => {
|
|
711
|
+
let r;
|
|
712
|
+
return O.current && (r = new ResizeObserver(et), r.observe(O.current)), () => {
|
|
713
|
+
var u, C;
|
|
714
|
+
O.current && ((u = r == null ? void 0 : r.unobserve) == null || u.call(r, O.current)), (C = r == null ? void 0 : r.disconnect) == null || C.call(r), r = null;
|
|
715
|
+
};
|
|
716
|
+
}, [O.current]);
|
|
717
|
+
function F(r) {
|
|
718
|
+
return /* @__PURE__ */ c(Et, { children: /* @__PURE__ */ c(
|
|
719
|
+
Xt,
|
|
720
|
+
{
|
|
721
|
+
...t,
|
|
722
|
+
setEditing: I,
|
|
723
|
+
onClickExpand: g,
|
|
724
|
+
expanding: h,
|
|
725
|
+
isEllipsis: r,
|
|
726
|
+
currentContext: _
|
|
727
|
+
}
|
|
728
|
+
) });
|
|
729
|
+
}
|
|
730
|
+
function g(r) {
|
|
731
|
+
var u, C;
|
|
732
|
+
G(!h), (u = t.onClickExpand) == null || u.call(t, r), (C = i.onExpand) == null || C.call(i, !h, r);
|
|
733
|
+
}
|
|
734
|
+
Ct(() => {
|
|
735
|
+
var r;
|
|
736
|
+
(r = i.onEllipsis) == null || r.call(i, H);
|
|
737
|
+
}, [H]), Tt(n, () => R.current);
|
|
738
|
+
function o(r, u, C, K = {}) {
|
|
739
|
+
let Z = r;
|
|
740
|
+
return u.forEach((nt, dt) => {
|
|
741
|
+
const rt = dt === 0 ? K : {}, it = X(C.mark) && C.mark.color ? { style: { backgroundColor: C.mark.color }, ...rt } : { ...rt };
|
|
742
|
+
Z = st.createElement(nt, { ...it }, Z);
|
|
743
|
+
}), Z;
|
|
744
|
+
}
|
|
745
|
+
let y;
|
|
746
|
+
e === "Paragraph" ? y = m ? "blockquote" : "div" : e === "Title" ? y = `h${k}` : e === "Text" && (y = E ? "div" : "span");
|
|
747
|
+
function T() {
|
|
748
|
+
const r = ct(st.Children.toArray(p)), u = i.showTooltip, C = X(i.showTooltip) && i.showTooltip.type === "popover" ? "popover" : "tooltip", K = X(i.showTooltip) ? i.showTooltip.props || {} : {}, Z = C === "popover" ? Ht : ht, dt = {
|
|
749
|
+
style: l,
|
|
750
|
+
...H && !u && !h ? { title: r } : {}
|
|
751
|
+
}, rt = H && u && !h, it = /* @__PURE__ */ c(
|
|
752
|
+
y,
|
|
753
|
+
{
|
|
754
|
+
ref: R,
|
|
755
|
+
className: D(
|
|
756
|
+
x,
|
|
757
|
+
M,
|
|
758
|
+
{ [`${x}-rtl`]: s },
|
|
759
|
+
d
|
|
760
|
+
),
|
|
761
|
+
...dt,
|
|
762
|
+
...Ft(P, [
|
|
763
|
+
"spacing",
|
|
764
|
+
"type",
|
|
765
|
+
"close",
|
|
766
|
+
"bold",
|
|
767
|
+
"disabled",
|
|
768
|
+
"mark",
|
|
769
|
+
"underline",
|
|
770
|
+
"delete",
|
|
771
|
+
"code",
|
|
772
|
+
"copyable",
|
|
773
|
+
"isEllipsis",
|
|
774
|
+
"expanding",
|
|
775
|
+
"onClickExpand",
|
|
776
|
+
"setEditing",
|
|
777
|
+
"forceShowExpand"
|
|
778
|
+
]),
|
|
779
|
+
children: j && J !== lt.INIT && !h && H ? o(
|
|
780
|
+
// CSS folding style, need to wrap the text separately.
|
|
781
|
+
a(
|
|
782
|
+
/* @__PURE__ */ c("span", { style: $, children: p }),
|
|
783
|
+
H
|
|
784
|
+
),
|
|
785
|
+
S.length ? S : ["span"],
|
|
786
|
+
t,
|
|
787
|
+
// The simple-ellipsis class ensures that the ReactNode after the text is displayed correctly (no line breaks)
|
|
788
|
+
// Need to act on the immediate parent node of the text
|
|
789
|
+
{ className: `${x}-simple-ellipsis` }
|
|
790
|
+
) : o(Y, S, t)
|
|
791
|
+
}
|
|
792
|
+
);
|
|
793
|
+
return rt ? /* @__PURE__ */ c(Z, { content: r, ...K, children: /* @__PURE__ */ c("span", { children: it }) }) : it;
|
|
794
|
+
}
|
|
795
|
+
return N ? /* @__PURE__ */ c(
|
|
796
|
+
Kt,
|
|
797
|
+
{
|
|
798
|
+
ref: n,
|
|
799
|
+
...t,
|
|
800
|
+
className: D(
|
|
801
|
+
x,
|
|
802
|
+
M,
|
|
803
|
+
{ [`${x}-rtl`]: s },
|
|
804
|
+
`${x}-${y}`,
|
|
805
|
+
d
|
|
806
|
+
),
|
|
807
|
+
prefixCls: x,
|
|
808
|
+
setEditing: I,
|
|
809
|
+
editableConfig: v
|
|
810
|
+
}
|
|
811
|
+
) : T();
|
|
812
|
+
}
|
|
813
|
+
const gt = z(te);
|
|
814
|
+
function ee(t, n) {
|
|
815
|
+
const { spacing: e = "default", className: l } = t, { getPrefixCls: d } = pt(at), p = d("typography"), f = e === "close" ? D(`${p}-spacing-close`, l) : l;
|
|
816
|
+
return /* @__PURE__ */ c(
|
|
817
|
+
gt,
|
|
818
|
+
{
|
|
819
|
+
...t,
|
|
820
|
+
ref: n,
|
|
821
|
+
componentType: "Paragraph",
|
|
822
|
+
className: f
|
|
823
|
+
}
|
|
824
|
+
);
|
|
825
|
+
}
|
|
826
|
+
const bt = z(
|
|
827
|
+
ee
|
|
828
|
+
);
|
|
829
|
+
bt.displayName = "Paragraph";
|
|
830
|
+
function oe(t, n) {
|
|
831
|
+
return /* @__PURE__ */ c(gt, { ...t, componentType: "Text", ref: n });
|
|
832
|
+
}
|
|
833
|
+
const vt = z(oe);
|
|
834
|
+
vt.displayName = "Text";
|
|
835
|
+
function ne(t, n) {
|
|
836
|
+
const { heading: e = 1, ...l } = t;
|
|
837
|
+
return /* @__PURE__ */ c(gt, { heading: e, ...l, componentType: "Title", ref: n });
|
|
838
|
+
}
|
|
839
|
+
const $t = z(ne);
|
|
840
|
+
$t.displayName = "Title";
|
|
841
|
+
function re(t, n) {
|
|
842
|
+
const { getPrefixCls: e } = pt(at), l = e("typography"), { className: d, style: p, children: f } = t, E = D(l, d);
|
|
843
|
+
return /* @__PURE__ */ c("article", { ref: n, style: p, className: E, children: f });
|
|
844
|
+
}
|
|
845
|
+
const Pt = z(re);
|
|
846
|
+
Pt.displayName = "Typography";
|
|
847
|
+
const ut = Pt;
|
|
848
|
+
ut.Title = $t;
|
|
849
|
+
ut.Text = vt;
|
|
850
|
+
ut.Paragraph = bt;
|
|
851
|
+
ut.Ellipsis = Vt;
|
|
852
|
+
export {
|
|
853
|
+
ut as T,
|
|
854
|
+
dn as d
|
|
855
|
+
};
|