@unicom-cloud/ui-common 0.1.58 → 0.1.60
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/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.js +41 -42
- package/animation/constants.d.ts +2 -0
- package/animation/constants.js +4 -4
- package/animation/context.d.ts +0 -1
- package/animation/context.js +3 -3
- package/animation/index.d.ts +0 -6
- package/animation/index.js +6 -10
- package/animation/interface.d.ts +1 -1
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/base/Base.js +1 -1
- package/base/constants.d.ts +2 -0
- package/base/constants.js +4 -1
- package/base/context.d.ts +0 -1
- package/base/context.js +3 -3
- package/base/index.js +1 -1
- package/base/style/index.js +1 -1
- package/base/utils.js +1 -1
- package/border-beam/BorderBeam.js +14 -14
- package/border-beam/Effect.d.ts +1 -6
- package/border-beam/Effect.js +3 -3
- package/border-beam/constants.d.ts +2 -1
- package/border-beam/constants.js +8 -3
- package/border-beam/context.d.ts +0 -1
- package/border-beam/context.js +4 -10
- package/border-beam/hooks/useBorderSize.d.ts +1 -5
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.d.ts +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.d.ts +0 -6
- package/border-beam/index.js +5 -9
- package/border-beam/interface.d.ts +27 -4
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.d.ts +1 -9
- package/border-beam/utils.js +9 -9
- package/development/Development.js +6 -5
- package/development/constants.d.ts +2 -0
- package/development/constants.js +4 -1
- package/development/context.d.ts +0 -1
- package/development/context.js +3 -3
- package/development/index.d.ts +0 -6
- package/development/index.js +5 -9
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.d.ts +1 -1
- package/empty/Empty.js +28 -27
- package/empty/constants.d.ts +2 -0
- package/empty/constants.js +4 -1
- package/empty/context.d.ts +0 -1
- package/empty/context.js +3 -3
- package/empty/index.d.ts +1 -7
- package/empty/index.js +5 -9
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +5 -4
- package/flex/FlexVertical.js +1 -1
- package/flex/constants.d.ts +2 -0
- package/flex/constants.js +7 -1
- package/flex/context.d.ts +0 -1
- package/flex/context.js +3 -6
- package/flex/index.d.ts +1 -7
- package/flex/index.js +9 -11
- package/flex/interface.d.ts +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.d.ts +1 -1
- package/flex/utils.js +10 -12
- package/grid/Grid.js +16 -15
- package/grid/Item.js +10 -9
- package/grid/constants.d.ts +3 -0
- package/grid/constants.js +8 -1
- package/grid/context.d.ts +0 -2
- package/grid/context.js +4 -8
- package/grid/index.d.ts +0 -6
- package/grid/index.js +9 -11
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/higher-order/with-speech-synthesis/constants.d.ts +2 -0
- package/higher-order/with-speech-synthesis/constants.js +7 -0
- package/higher-order/with-speech-synthesis/context.d.ts +0 -1
- package/higher-order/with-speech-synthesis/context.js +3 -3
- package/higher-order/with-speech-synthesis/index.d.ts +0 -6
- package/higher-order/with-speech-synthesis/index.js +5 -9
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +8 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +28 -27
- package/hoc/withContext.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +9 -9
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +93 -92
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.d.ts +7 -1
- package/hooks/use-click-away/index.js +20 -12
- package/hooks/use-computed-state/index.js +1 -1
- package/hooks/use-controllable-value/index.js +1 -1
- package/hooks/use-cookie-state/index.js +2 -2
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +6 -5
- package/hooks/use-creation/index.js +7 -6
- package/hooks/use-debounce/debounceOptions.d.ts +1 -6
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce/interface.d.ts +14 -0
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +5 -5
- package/hooks/use-deep-compare-effect/index.js +1 -1
- package/hooks/use-deep-compare-layout-effect/index.js +1 -1
- package/hooks/use-document-visibility/index.js +7 -7
- package/hooks/use-drag/index.d.ts +1 -1
- package/hooks/use-drag/index.js +10 -10
- package/hooks/use-drag-move/index.js +1 -1
- package/hooks/use-drop/index.d.ts +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-dynamic-list/index.d.ts +18 -0
- package/hooks/use-dynamic-list/index.js +105 -0
- package/hooks/use-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/index.d.ts +13 -1
- package/hooks/use-event-emitter/index.js +15 -12
- package/hooks/use-event-listener/index.d.ts +2 -7
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +2 -2
- package/hooks/use-favicon/index.js +2 -2
- package/hooks/use-focus-within/index.d.ts +1 -5
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-focus-within/interface.d.ts +13 -0
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +14 -14
- package/hooks/use-get-state/index.d.ts +1 -7
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.d.ts +1 -1
- package/hooks/use-history-travel/index.js +32 -26
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-viewport/index.js +10 -10
- package/hooks/use-infinite-scroll/index.js +33 -31
- package/hooks/use-intersection-observer/index.js +3 -3
- package/hooks/use-intersection-observers/index.js +10 -10
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +1 -1
- package/hooks/use-keyboard-event/index.d.ts +1 -0
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-local-storage-state/index.js +4 -4
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-component-props/index.d.ts +2 -2
- package/hooks/use-merge-component-props/index.js +2 -1
- package/hooks/use-merge-value/index.d.ts +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.d.ts +1 -1
- package/hooks/use-mouse/index.js +9 -9
- package/hooks/use-mutation-observer/index.js +2 -2
- package/hooks/use-mutation-observers/index.js +10 -10
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +1 -1
- package/hooks/use-override-ref/index.d.ts +3 -5
- package/hooks/use-override-ref/index.js +5 -5
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-pagination/types.d.ts +5 -8
- package/hooks/use-paste-file/index.js +9 -9
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.js +1 -1
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +17 -17
- package/hooks/use-raf-state/index.d.ts +1 -6
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +17 -17
- package/hooks/use-reactive/index.js +5 -5
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-ref-map/index.d.ts +2 -1
- package/hooks/use-ref-map/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +5 -5
- package/hooks/use-request/src/Fetch.d.ts +2 -0
- package/hooks/use-request/src/Fetch.js +32 -28
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +5 -5
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -2
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +13 -12
- package/hooks/use-request/src/plugins/usePollingPlugin.js +3 -3
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/types.d.ts +2 -1
- package/hooks/use-request/src/useRequest.d.ts +11 -4
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +18 -18
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +3 -3
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +6 -6
- package/hooks/use-resize-observer/index.d.ts +6 -1
- package/hooks/use-resize-observer/index.js +30 -4
- package/hooks/use-resize-observers/index.d.ts +1 -0
- package/hooks/use-resize-observers/index.js +23 -24
- package/hooks/use-responsive/index.js +2 -2
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +20 -20
- package/hooks/use-selections/index.d.ts +1 -1
- package/hooks/use-selections/index.js +45 -39
- package/hooks/use-session-storage-state/index.js +4 -4
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.d.ts +1 -6
- package/hooks/use-size/index.js +4 -33
- package/hooks/use-state-callback/index.d.ts +1 -5
- package/hooks/use-state-callback/index.js +7 -7
- package/hooks/use-state-with-promise/index.d.ts +1 -4
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +5 -5
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +14 -14
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle/interface.d.ts +13 -0
- package/hooks/use-throttle/throttleOptions.d.ts +1 -5
- package/hooks/use-throttle-effect/index.js +5 -5
- package/hooks/use-throttle-fn/index.js +5 -5
- package/hooks/use-throttle-fn-with-raf/index.js +6 -6
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +5 -5
- package/hooks/use-toggle/index.d.ts +6 -3
- package/hooks/use-toggle/index.js +1 -1
- package/hooks/use-tracked-effect/index.js +1 -1
- package/hooks/use-unmount/index.js +1 -1
- package/hooks/use-unmounted-ref/index.js +1 -1
- package/hooks/use-update/index.js +1 -1
- package/hooks/use-update-effect/index.js +1 -1
- package/hooks/use-update-layout-effect/index.js +1 -1
- package/hooks/use-url-state/index.d.ts +1 -1
- package/hooks/use-url-state/index.js +1 -1
- package/hooks/use-virtual-list/index.js +13 -13
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +7 -7
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +7 -7
- package/hooks/utils/createEffectWithTarget.js +7 -7
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +1 -1
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +4 -4
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/File.js +5 -4
- package/icons/file/constants.d.ts +2 -0
- package/icons/file/constants.js +7 -0
- package/icons/file/context.d.ts +0 -1
- package/icons/file/context.js +3 -3
- package/icons/file/index.js +2 -2
- package/icons/file/style/index.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +542 -537
- package/morphicons/core/interpolate.js +1 -1
- package/morphicons/core/normalize.js +57 -57
- package/morphicons/core/parse.d.ts +1 -9
- package/morphicons/core/resample.js +1 -1
- package/morphicons/core/serialize.js +1 -1
- package/morphicons/core/spring.js +1 -1
- package/morphicons/dom/controller.d.ts +3 -3
- package/morphicons/dom/index.js +23 -23
- package/morphicons/element/index.d.ts +1 -1
- package/morphicons/index.d.ts +1 -1
- package/morphicons/index.js +6 -6
- package/morphicons/react/index.d.ts +1 -1
- package/morphicons/react/index.js +65 -65
- package/package.json +1 -1
- package/progress/Progress.js +20 -20
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +13 -12
- package/resize-observer/SingleObserver.d.ts +1 -5
- package/resize-observer/SingleObserver.js +4 -4
- package/resize-observer/constants.d.ts +2 -0
- package/resize-observer/constants.js +4 -1
- package/resize-observer/context.d.ts +0 -1
- package/resize-observer/context.js +3 -3
- package/resize-observer/index.d.ts +1 -7
- package/resize-observer/index.js +7 -9
- package/resize-observer/interface.d.ts +18 -0
- package/resize-observer/observerUtil.d.ts +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.d.ts +2 -1
- package/space/Space.js +12 -11
- package/space/SpaceVertical.js +1 -1
- package/space/constants.d.ts +2 -0
- package/space/constants.js +9 -1
- package/space/context.d.ts +0 -1
- package/space/context.js +3 -8
- package/space/index.d.ts +0 -6
- package/space/index.js +8 -10
- package/space/interface.d.ts +1 -0
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/style/animation.less +2 -8
- package/style/normalize.less +0 -13
- package/style.css +1 -1
- package/suspense-fallback-test/NeverLoadLazy.d.ts +3 -0
- package/suspense-fallback-test/NeverLoadLazy.js +8 -0
- package/suspense-fallback-test/SuspenseFallbackTest.js +14 -14
- package/suspense-fallback-test/constants.d.ts +2 -0
- package/suspense-fallback-test/constants.js +4 -1
- package/suspense-fallback-test/context.d.ts +0 -2
- package/suspense-fallback-test/context.js +3 -3
- package/suspense-fallback-test/index.d.ts +0 -6
- package/suspense-fallback-test/index.js +5 -9
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +6 -5
- package/timer/constants.d.ts +2 -0
- package/timer/constants.js +4 -1
- package/timer/context.d.ts +0 -1
- package/timer/context.js +3 -3
- package/timer/index.d.ts +0 -6
- package/timer/index.js +5 -9
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.d.ts +0 -1
- package/transition/Transition.js +55 -58
- package/transition/TransitionCSS.js +15 -15
- package/transition/TransitionGroup.js +13 -13
- package/transition/TransitionStyle.js +12 -12
- package/transition/constants.d.ts +4 -27
- package/transition/constants.js +37 -41
- package/transition/context.d.ts +2 -3
- package/transition/context.js +4 -5
- package/transition/index.d.ts +0 -7
- package/transition/index.js +15 -16
- package/transition/interface.d.ts +26 -1
- package/transition/interface.js +11 -0
- package/transition/style/index.js +1 -1
- package/transition/utils.d.ts +1 -1
- package/transition/utils.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/confetti.js +1 -1
- package/utils/constants.d.ts +3 -2
- package/utils/constants.js +6 -5
- package/utils/copy.js +1 -1
- package/utils/createRoot.d.ts +1 -6
- package/utils/createRoot.js +11 -11
- package/utils/css.js +1 -1
- package/utils/date.d.ts +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.d.ts +1 -1
- package/utils/dom.js +9 -9
- package/utils/file.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/getCompatProp.js +1 -1
- package/utils/getElement.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.d.ts +1 -12
- package/utils/getHotkeyHandler.js +17 -17
- package/utils/getPrefixCls.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getScrollParent.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/getUrlSearchParam.js +1 -1
- package/utils/index.js +274 -273
- package/utils/initAllLineClamp.js +1 -1
- package/utils/injectLineClamp.js +1 -1
- package/utils/interface.d.ts +103 -0
- package/utils/interface.js +4 -0
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.d.ts +2 -1
- package/utils/lodash.js +19 -18
- package/utils/math.d.ts +1 -1
- package/utils/mergeProps.d.ts +1 -2
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/migrateLegacyProps.d.ts +1 -8
- package/utils/migrateLegacyProps.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.d.ts +1 -8
- package/utils/names.js +1 -1
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.d.ts +2 -1
- package/utils/ref.js +13 -13
- package/utils/resizeObserver.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/scrollTo.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tunnel.d.ts +2 -12
- package/utils/tunnel.js +1 -1
- package/utils/warning.js +1 -1
- package/version/index.js +9 -9
- /package/{suspense-fallback-test → base}/style/index.css +0 -0
package/utils/index.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
/* 潘启宝 2026-11-
|
|
1
|
+
/* 潘启宝 2026-11-20 17:53:57 星期五 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { __exportAll as ee, __reExport as e } from "../.virtual/_rolldown/runtime.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import vt from "./mergeProps.js";
|
|
13
|
-
import yt from "./migrateLegacyProps.js";
|
|
14
|
-
import { callbackOriginRef as bt } from "./callbackOriginRef.js";
|
|
15
|
-
import { caseName as xt } from "./caseName.js";
|
|
16
|
-
import { className as St, cls as Ct, clsx as wt, cs as Tt } from "./className.js";
|
|
17
|
-
import { confetti as Et, fire as Dt } from "./confetti.js";
|
|
18
|
-
import { CSS_VARIABLE_ELEMENT as Ot, DAYJS_DEFAULT_FORMAT as kt, DAYJS_DEFAULT_FORMAT_WITH_TIME as At, PREFIX_CLASS as jt, constants_exports as Mt } from "./constants.js";
|
|
19
|
-
import { clipboardCopy as Q } from "./copy.js";
|
|
20
|
-
import { createRoot as Nt, render as Pt, setCreateRoot as Ft } from "./createRoot.js";
|
|
4
|
+
import { call as t, callWith as n } from "./call.js";
|
|
5
|
+
import { callbackOriginRef as te } from "./callbackOriginRef.js";
|
|
6
|
+
import { caseName as ne } from "./caseName.js";
|
|
7
|
+
import { className as r, cls as i, clsx as a, cs as o } from "./className.js";
|
|
8
|
+
import { confetti as s, fire as c } from "./confetti.js";
|
|
9
|
+
import { CSS_VARIABLE_ELEMENT as l, DAYJS_FORMAT_DATE_STRING as u, DAYJS_FORMAT_DATE_TIME_STRING as d, DAYJS_FORMAT_TIME_STRING as f, PREFIX_CLASS as p, constants_exports as re } from "./constants.js";
|
|
10
|
+
import { clipboardCopy as m } from "./copy.js";
|
|
11
|
+
import { createRoot as h, render as g, setCreateRoot as _ } from "./createRoot.js";
|
|
21
12
|
import "./css.js";
|
|
22
|
-
import {
|
|
23
|
-
import { dayjs as
|
|
24
|
-
import { document_exports as
|
|
25
|
-
import {
|
|
13
|
+
import { dateFormat as v, dayjsFormat as y, formatDuration as b } from "./date.js";
|
|
14
|
+
import { dayjs as x } from "./dayjs.js";
|
|
15
|
+
import { document_exports as ie } from "./document.js";
|
|
16
|
+
import { canUseDOM as S, contains as C, findSingleChainDescendantByStyle as w, focusAtEnd as T, forceReflow as E, getBody as D, getBodyContainer as O, getClientRects as k, getDOM as A, getDocument as j, getDocumentElement as M, getElementCoordinates as N, getElementOuterSize as P, getHead as F, getScrollElements as I, getTextLineCount as L, getTopLevelOverlayContainer as R, isSingleLine as z, off as B, on as V, parentContainsChildren as H } from "./dom.js";
|
|
17
|
+
import { Emitter as U } from "./emitter.js";
|
|
26
18
|
import "./file.js";
|
|
27
|
-
import { fileRead as
|
|
28
|
-
import { fileToDataURL as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
19
|
+
import { fileRead as W } from "./fileRead.js";
|
|
20
|
+
import { fileToDataURL as G } from "./fileToDataURL.js";
|
|
21
|
+
import K from "./fillNBSP.js";
|
|
22
|
+
import q from "./getCompatProp.js";
|
|
23
|
+
import J from "./getElement.js";
|
|
24
|
+
import Y from "./getHighlightText.js";
|
|
25
|
+
import X from "./getHotkeyHandler.js";
|
|
26
|
+
import Z from "./getPrefixCls.js";
|
|
27
|
+
import ae from "./getScrollBarHeight.js";
|
|
28
|
+
import oe from "./getScrollBarSize.js";
|
|
29
|
+
import se from "./getScrollBarWidth.js";
|
|
37
30
|
import "./getScrollParent.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import
|
|
31
|
+
import ce from "./getStringLength.js";
|
|
32
|
+
import le, { getQueryParam as ue } from "./getUrlSearchParam.js";
|
|
33
|
+
import de from "./initAllLineClamp.js";
|
|
34
|
+
import fe from "./intersectionObserver.js";
|
|
35
|
+
import { isCompositeTypeElement as pe, isEmptyChildren as me, isEmptyReactNode as he, isReact18 as ge, isReact19 as _e, isReactClassComponent as ve, isReactComponent as ye, isReactComponentAndNotFragment as be, isReactFunctionalComponent as xe, isServerRendering as Se } from "./is.js";
|
|
36
|
+
import { assign as Ce, assignIn as we, at as Te, camelCase as Ee, capitalize as De, castArray as Oe, chain as ke, chunk as Ae, clamp as je, clone as Me, cloneDeep as Ne, cloneDeepWith as Pe, cloneWith as Fe, compact as Ie, curry as Le, debounce as Re, defaultTo as ze, defaults as Be, defaultsDeep as Ve, difference as He, escape as Ue, extend as We, findKey as Ge, first as Ke, flatten as qe, flattenDeep as Je, flow as Ye, get as Xe, groupBy as Ze, has as Qe, hasIn as $e, intersection as et, invert as tt, invertBy as nt, invoke as rt, kebabCase as it, last as at, mapKeys as ot, mapValues as st, mean as ct, memoize as lt, merge as ut, mergeWith as dt, move as ft, noop as pt, omit as Q, omitBy as mt, orderBy as ht, partition as gt, pick as _t, pickBy as vt, pullAll as yt, result as bt, sample as xt, sampleSize as St, set as Ct, setWith as wt, shuffle as Tt, snakeCase as Et, sortBy as Dt, startCase as Ot, sumBy as kt, swap as At, throttle as jt, toPath as Mt, toSwapped as Nt, trim as Pt, truncate as Ft, union as It, uniq as Lt, uniqBy as Rt, uniqueId as zt, unset as Bt, update as Vt, updateWith as Ht, upperCase as Ut, upperFirst as Wt, without as Gt, xor as Kt, zip as qt } from "./lodash.js";
|
|
37
|
+
import { div as Jt, math as Yt, minus as Xt, plus as Zt, times as Qt } from "./math.js";
|
|
38
|
+
import $t from "./mergedToString.js";
|
|
39
|
+
import en from "./mergeProps.js";
|
|
40
|
+
import tn from "./migrateLegacyProps.js";
|
|
41
|
+
import nn from "./mutationObserver.js";
|
|
42
|
+
import { object_exports as rn } from "./object.js";
|
|
46
43
|
import "./omit.js";
|
|
47
|
-
import { padEnd as
|
|
48
|
-
import { pickAttributesByPrefixes as
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import
|
|
60
|
-
import {
|
|
61
|
-
import
|
|
62
|
-
import {
|
|
63
|
-
import
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
44
|
+
import { padEnd as an, padStart as on } from "./pad.js";
|
|
45
|
+
import { pickAttributesByPrefixes as sn, pickDataAriaAttributes as cn } from "./pick.js";
|
|
46
|
+
import { composeRef as ln, fillRef as un, getNodeRef as dn, getReactElementRef as fn, supportNodeRef as pn, supportRef as mn, useComposeRef as hn } from "./ref.js";
|
|
47
|
+
import gn from "./resizeObserver.js";
|
|
48
|
+
import { saveAs as _n } from "./saveAs.js";
|
|
49
|
+
import { screenfull as vn } from "./screenfull.js";
|
|
50
|
+
import yn from "./scrollIntoViewIfNeeded.js";
|
|
51
|
+
import bn, { removeDarkTheme as xn } from "./setDarkTheme.js";
|
|
52
|
+
import Sn from "./setDir.js";
|
|
53
|
+
import Cn from "./setPrimaryColor.js";
|
|
54
|
+
import wn from "./setTheme.js";
|
|
55
|
+
import { HYPHEN as Tn, replaceEmptyWithHyphen as En } from "./string.js";
|
|
56
|
+
import { fixedWidth as Dn, getStyle as On, setTransformStyle as kn } from "./style.js";
|
|
57
|
+
import { tinycolor as An } from "./tinycolor.js";
|
|
58
|
+
import jn from "./toArray.js";
|
|
59
|
+
import { findNodeBy as Mn, getChildWithParentBy as Nn, getItemBy as Pn, getItemByID as Fn, getLabelFromDictionaryByValue as In, searchTree as Ln, tree as Rn } from "./tree.js";
|
|
60
|
+
import zn from "./tunnel.js";
|
|
61
|
+
import { uuid as Bn, uuidv4 as Vn } from "./uuid.js";
|
|
62
|
+
import { Validator as Hn, ValidatorArray as Un, ValidatorBase as Wn, ValidatorBoolean as Gn, ValidatorCustom as Kn, ValidatorNumber as qn, ValidatorObject as Jn, ValidatorSchema as Yn, ValidatorString as Xn, ValidatorType as Zn } from "./validate.js";
|
|
63
|
+
import Qn from "./warning.js";
|
|
64
|
+
import { keyboardCode as $n } from "./keyboardCode.js";
|
|
65
|
+
import { COMPONENT_NAMES as er } from "./names.js";
|
|
66
66
|
export * from "@unicom-cloud/utils/is";
|
|
67
67
|
export * from "@unicom-cloud/utils/object";
|
|
68
68
|
export * from "@unicom-cloud/utils/css";
|
|
@@ -72,220 +72,221 @@ export * from "@unicom-cloud/utils/file";
|
|
|
72
72
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
73
73
|
// components/common/utils/index.ts
|
|
74
74
|
var $ = /* @__PURE__ */ ee({
|
|
75
|
-
COMPONENT_NAMES: () =>
|
|
76
|
-
CSS_VARIABLE_ELEMENT: () =>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
get: () =>
|
|
151
|
-
getBody: () =>
|
|
152
|
-
getBodyContainer: () =>
|
|
153
|
-
getChildWithParentBy: () =>
|
|
154
|
-
getClientRects: () =>
|
|
155
|
-
getCompatProp: () =>
|
|
156
|
-
getDOM: () =>
|
|
157
|
-
getDocument: () =>
|
|
158
|
-
getDocumentElement: () =>
|
|
159
|
-
getElement: () =>
|
|
160
|
-
getElementCoordinates: () =>
|
|
161
|
-
getElementOuterSize: () =>
|
|
162
|
-
getHead: () =>
|
|
163
|
-
getHighlightText: () =>
|
|
164
|
-
getHotkeyHandler: () =>
|
|
165
|
-
getItemBy: () =>
|
|
166
|
-
getItemByID: () =>
|
|
167
|
-
getLabelFromDictionaryByValue: () =>
|
|
168
|
-
getNodeRef: () =>
|
|
169
|
-
getPrefixCls: () =>
|
|
170
|
-
getQueryParam: () =>
|
|
171
|
-
getReactElementRef: () =>
|
|
172
|
-
getScrollBarHeight: () =>
|
|
173
|
-
getScrollBarSize: () =>
|
|
174
|
-
getScrollBarWidth: () =>
|
|
175
|
-
getScrollElements: () =>
|
|
176
|
-
getStringLength: () =>
|
|
177
|
-
getStyle: () =>
|
|
178
|
-
getTextLineCount: () =>
|
|
179
|
-
getTopLevelOverlayContainer: () =>
|
|
180
|
-
getUrlSearchParam: () =>
|
|
181
|
-
groupBy: () =>
|
|
182
|
-
has: () =>
|
|
183
|
-
hasIn: () =>
|
|
184
|
-
initAllLineClamp: () =>
|
|
185
|
-
intersection: () =>
|
|
186
|
-
intersectionObserver: () =>
|
|
187
|
-
invert: () =>
|
|
188
|
-
invertBy: () =>
|
|
189
|
-
invoke: () =>
|
|
190
|
-
isCompositeTypeElement: () =>
|
|
191
|
-
isEmptyChildren: () =>
|
|
192
|
-
isEmptyReactNode: () =>
|
|
193
|
-
isReact18: () =>
|
|
194
|
-
isReact19: () =>
|
|
195
|
-
isReactClassComponent: () =>
|
|
196
|
-
isReactComponent: () =>
|
|
197
|
-
isReactComponentAndNotFragment: () =>
|
|
198
|
-
isReactFunctionalComponent: () =>
|
|
199
|
-
isServerRendering: () =>
|
|
200
|
-
isSingleLine: () =>
|
|
201
|
-
kebabCase: () =>
|
|
202
|
-
keyboardCode: () =>
|
|
203
|
-
last: () =>
|
|
204
|
-
mapKeys: () =>
|
|
205
|
-
mapValues: () =>
|
|
206
|
-
math: () =>
|
|
207
|
-
mean: () =>
|
|
208
|
-
memoize: () =>
|
|
209
|
-
merge: () =>
|
|
210
|
-
mergeProps: () =>
|
|
211
|
-
mergeWith: () =>
|
|
212
|
-
mergedToString: () =>
|
|
213
|
-
migrateLegacyProps: () =>
|
|
214
|
-
minus: () =>
|
|
215
|
-
move: () =>
|
|
216
|
-
mutationObserver: () =>
|
|
217
|
-
noop: () =>
|
|
218
|
-
off: () =>
|
|
219
|
-
omit: () =>
|
|
220
|
-
omitBy: () =>
|
|
221
|
-
on: () =>
|
|
222
|
-
orderBy: () =>
|
|
223
|
-
padEnd: () =>
|
|
224
|
-
padStart: () =>
|
|
225
|
-
parentContainsChildren: () =>
|
|
226
|
-
partition: () =>
|
|
227
|
-
pick: () =>
|
|
228
|
-
pickAttributesByPrefixes: () =>
|
|
229
|
-
pickBy: () =>
|
|
230
|
-
pickDataAriaAttributes: () =>
|
|
231
|
-
plus: () =>
|
|
232
|
-
pullAll: () =>
|
|
233
|
-
reflow: () =>
|
|
234
|
-
removeDarkTheme: () =>
|
|
235
|
-
render: () =>
|
|
236
|
-
replaceEmptyWithHyphen: () =>
|
|
237
|
-
resizeObserver: () =>
|
|
238
|
-
result: () =>
|
|
239
|
-
sample: () =>
|
|
240
|
-
sampleSize: () =>
|
|
241
|
-
saveAs: () =>
|
|
242
|
-
screenfull: () =>
|
|
243
|
-
scrollIntoViewIfNeeded: () =>
|
|
244
|
-
searchTree: () =>
|
|
245
|
-
set: () =>
|
|
246
|
-
setCreateRoot: () =>
|
|
247
|
-
setDarkTheme: () =>
|
|
248
|
-
setDir: () =>
|
|
249
|
-
setPrimaryColor: () =>
|
|
250
|
-
setTheme: () =>
|
|
251
|
-
setTransformStyle: () =>
|
|
252
|
-
setWith: () =>
|
|
253
|
-
shuffle: () =>
|
|
254
|
-
snakeCase: () =>
|
|
255
|
-
sortBy: () =>
|
|
256
|
-
startCase: () =>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
75
|
+
COMPONENT_NAMES: () => er,
|
|
76
|
+
CSS_VARIABLE_ELEMENT: () => l,
|
|
77
|
+
DAYJS_FORMAT_DATE_STRING: () => u,
|
|
78
|
+
DAYJS_FORMAT_DATE_TIME_STRING: () => d,
|
|
79
|
+
DAYJS_FORMAT_TIME_STRING: () => f,
|
|
80
|
+
Emitter: () => U,
|
|
81
|
+
HYPHEN: () => Tn,
|
|
82
|
+
PREFIX_CLASS: () => p,
|
|
83
|
+
Validator: () => Hn,
|
|
84
|
+
ValidatorArray: () => Un,
|
|
85
|
+
ValidatorBase: () => Wn,
|
|
86
|
+
ValidatorBoolean: () => Gn,
|
|
87
|
+
ValidatorCustom: () => Kn,
|
|
88
|
+
ValidatorNumber: () => qn,
|
|
89
|
+
ValidatorObject: () => Jn,
|
|
90
|
+
ValidatorSchema: () => Yn,
|
|
91
|
+
ValidatorString: () => Xn,
|
|
92
|
+
ValidatorType: () => Zn,
|
|
93
|
+
assign: () => Ce,
|
|
94
|
+
assignIn: () => we,
|
|
95
|
+
at: () => Te,
|
|
96
|
+
call: () => t,
|
|
97
|
+
callWith: () => n,
|
|
98
|
+
callbackOriginRef: () => te,
|
|
99
|
+
camelCase: () => Ee,
|
|
100
|
+
canUseDOM: () => S,
|
|
101
|
+
capitalize: () => De,
|
|
102
|
+
caseName: () => ne,
|
|
103
|
+
castArray: () => Oe,
|
|
104
|
+
chain: () => ke,
|
|
105
|
+
chunk: () => Ae,
|
|
106
|
+
clamp: () => je,
|
|
107
|
+
className: () => r,
|
|
108
|
+
clipboardCopy: () => m,
|
|
109
|
+
clone: () => Me,
|
|
110
|
+
cloneDeep: () => Ne,
|
|
111
|
+
cloneDeepWith: () => Pe,
|
|
112
|
+
cloneWith: () => Fe,
|
|
113
|
+
cls: () => i,
|
|
114
|
+
clsx: () => a,
|
|
115
|
+
compact: () => Ie,
|
|
116
|
+
composeRef: () => ln,
|
|
117
|
+
confetti: () => s,
|
|
118
|
+
contains: () => C,
|
|
119
|
+
copy: () => m,
|
|
120
|
+
createRoot: () => h,
|
|
121
|
+
cs: () => o,
|
|
122
|
+
curry: () => Le,
|
|
123
|
+
dateFormat: () => v,
|
|
124
|
+
dayjs: () => x,
|
|
125
|
+
dayjsFormat: () => y,
|
|
126
|
+
debounce: () => Re,
|
|
127
|
+
defaultTo: () => ze,
|
|
128
|
+
defaults: () => Be,
|
|
129
|
+
defaultsDeep: () => Ve,
|
|
130
|
+
difference: () => He,
|
|
131
|
+
div: () => Jt,
|
|
132
|
+
escape: () => Ue,
|
|
133
|
+
extend: () => We,
|
|
134
|
+
fileRead: () => W,
|
|
135
|
+
fileToDataURL: () => G,
|
|
136
|
+
fillNBSP: () => K,
|
|
137
|
+
fillRef: () => un,
|
|
138
|
+
findKey: () => Ge,
|
|
139
|
+
findNodeBy: () => Mn,
|
|
140
|
+
findSingleChainDescendantByStyle: () => w,
|
|
141
|
+
fire: () => c,
|
|
142
|
+
first: () => Ke,
|
|
143
|
+
fixedWidth: () => Dn,
|
|
144
|
+
flatten: () => qe,
|
|
145
|
+
flattenDeep: () => Je,
|
|
146
|
+
flow: () => Ye,
|
|
147
|
+
focusAtEnd: () => T,
|
|
148
|
+
forceReflow: () => E,
|
|
149
|
+
formatDuration: () => b,
|
|
150
|
+
get: () => Xe,
|
|
151
|
+
getBody: () => D,
|
|
152
|
+
getBodyContainer: () => O,
|
|
153
|
+
getChildWithParentBy: () => Nn,
|
|
154
|
+
getClientRects: () => k,
|
|
155
|
+
getCompatProp: () => q,
|
|
156
|
+
getDOM: () => A,
|
|
157
|
+
getDocument: () => j,
|
|
158
|
+
getDocumentElement: () => M,
|
|
159
|
+
getElement: () => J,
|
|
160
|
+
getElementCoordinates: () => N,
|
|
161
|
+
getElementOuterSize: () => P,
|
|
162
|
+
getHead: () => F,
|
|
163
|
+
getHighlightText: () => Y,
|
|
164
|
+
getHotkeyHandler: () => X,
|
|
165
|
+
getItemBy: () => Pn,
|
|
166
|
+
getItemByID: () => Fn,
|
|
167
|
+
getLabelFromDictionaryByValue: () => In,
|
|
168
|
+
getNodeRef: () => dn,
|
|
169
|
+
getPrefixCls: () => Z,
|
|
170
|
+
getQueryParam: () => ue,
|
|
171
|
+
getReactElementRef: () => fn,
|
|
172
|
+
getScrollBarHeight: () => ae,
|
|
173
|
+
getScrollBarSize: () => oe,
|
|
174
|
+
getScrollBarWidth: () => se,
|
|
175
|
+
getScrollElements: () => I,
|
|
176
|
+
getStringLength: () => ce,
|
|
177
|
+
getStyle: () => On,
|
|
178
|
+
getTextLineCount: () => L,
|
|
179
|
+
getTopLevelOverlayContainer: () => R,
|
|
180
|
+
getUrlSearchParam: () => le,
|
|
181
|
+
groupBy: () => Ze,
|
|
182
|
+
has: () => Qe,
|
|
183
|
+
hasIn: () => $e,
|
|
184
|
+
initAllLineClamp: () => de,
|
|
185
|
+
intersection: () => et,
|
|
186
|
+
intersectionObserver: () => fe,
|
|
187
|
+
invert: () => tt,
|
|
188
|
+
invertBy: () => nt,
|
|
189
|
+
invoke: () => rt,
|
|
190
|
+
isCompositeTypeElement: () => pe,
|
|
191
|
+
isEmptyChildren: () => me,
|
|
192
|
+
isEmptyReactNode: () => he,
|
|
193
|
+
isReact18: () => ge,
|
|
194
|
+
isReact19: () => _e,
|
|
195
|
+
isReactClassComponent: () => ve,
|
|
196
|
+
isReactComponent: () => ye,
|
|
197
|
+
isReactComponentAndNotFragment: () => be,
|
|
198
|
+
isReactFunctionalComponent: () => xe,
|
|
199
|
+
isServerRendering: () => Se,
|
|
200
|
+
isSingleLine: () => z,
|
|
201
|
+
kebabCase: () => it,
|
|
202
|
+
keyboardCode: () => $n,
|
|
203
|
+
last: () => at,
|
|
204
|
+
mapKeys: () => ot,
|
|
205
|
+
mapValues: () => st,
|
|
206
|
+
math: () => Yt,
|
|
207
|
+
mean: () => ct,
|
|
208
|
+
memoize: () => lt,
|
|
209
|
+
merge: () => ut,
|
|
210
|
+
mergeProps: () => en,
|
|
211
|
+
mergeWith: () => dt,
|
|
212
|
+
mergedToString: () => $t,
|
|
213
|
+
migrateLegacyProps: () => tn,
|
|
214
|
+
minus: () => Xt,
|
|
215
|
+
move: () => ft,
|
|
216
|
+
mutationObserver: () => nn,
|
|
217
|
+
noop: () => pt,
|
|
218
|
+
off: () => B,
|
|
219
|
+
omit: () => Q,
|
|
220
|
+
omitBy: () => mt,
|
|
221
|
+
on: () => V,
|
|
222
|
+
orderBy: () => ht,
|
|
223
|
+
padEnd: () => an,
|
|
224
|
+
padStart: () => on,
|
|
225
|
+
parentContainsChildren: () => H,
|
|
226
|
+
partition: () => gt,
|
|
227
|
+
pick: () => _t,
|
|
228
|
+
pickAttributesByPrefixes: () => sn,
|
|
229
|
+
pickBy: () => vt,
|
|
230
|
+
pickDataAriaAttributes: () => cn,
|
|
231
|
+
plus: () => Zt,
|
|
232
|
+
pullAll: () => yt,
|
|
233
|
+
reflow: () => E,
|
|
234
|
+
removeDarkTheme: () => xn,
|
|
235
|
+
render: () => g,
|
|
236
|
+
replaceEmptyWithHyphen: () => En,
|
|
237
|
+
resizeObserver: () => gn,
|
|
238
|
+
result: () => bt,
|
|
239
|
+
sample: () => xt,
|
|
240
|
+
sampleSize: () => St,
|
|
241
|
+
saveAs: () => _n,
|
|
242
|
+
screenfull: () => vn,
|
|
243
|
+
scrollIntoViewIfNeeded: () => yn,
|
|
244
|
+
searchTree: () => Ln,
|
|
245
|
+
set: () => Ct,
|
|
246
|
+
setCreateRoot: () => _,
|
|
247
|
+
setDarkTheme: () => bn,
|
|
248
|
+
setDir: () => Sn,
|
|
249
|
+
setPrimaryColor: () => Cn,
|
|
250
|
+
setTheme: () => wn,
|
|
251
|
+
setTransformStyle: () => kn,
|
|
252
|
+
setWith: () => wt,
|
|
253
|
+
shuffle: () => Tt,
|
|
254
|
+
snakeCase: () => Et,
|
|
255
|
+
sortBy: () => Dt,
|
|
256
|
+
startCase: () => Ot,
|
|
257
|
+
sumBy: () => kt,
|
|
258
|
+
supportNodeRef: () => pn,
|
|
259
|
+
supportRef: () => mn,
|
|
260
|
+
swap: () => At,
|
|
261
|
+
throttle: () => jt,
|
|
262
|
+
times: () => Qt,
|
|
263
|
+
tinycolor: () => An,
|
|
264
|
+
toArray: () => jn,
|
|
265
|
+
toPath: () => Mt,
|
|
266
|
+
toSwapped: () => Nt,
|
|
267
|
+
tree: () => Rn,
|
|
268
|
+
trim: () => Pt,
|
|
269
|
+
truncate: () => Ft,
|
|
270
|
+
tunnel: () => zn,
|
|
271
|
+
union: () => It,
|
|
272
|
+
uniq: () => Lt,
|
|
273
|
+
uniqBy: () => Rt,
|
|
274
|
+
uniqueId: () => zt,
|
|
275
|
+
unset: () => Bt,
|
|
276
|
+
update: () => Vt,
|
|
277
|
+
updateWith: () => Ht,
|
|
278
|
+
upperCase: () => Ut,
|
|
279
|
+
upperFirst: () => Wt,
|
|
280
|
+
useComposeRef: () => hn,
|
|
281
|
+
uuid: () => Bn,
|
|
282
|
+
uuidv4: () => Vn,
|
|
283
|
+
warning: () => Qn,
|
|
284
|
+
without: () => Gt,
|
|
285
|
+
xor: () => Kt,
|
|
286
|
+
zip: () => qt
|
|
286
287
|
});
|
|
287
|
-
import * as
|
|
288
|
-
e($,
|
|
289
|
-
export {
|
|
288
|
+
import * as tr from "@unicom-cloud/utils/is";
|
|
289
|
+
e($, tr), e($, re), e($, ie), e($, rn);
|
|
290
|
+
export { er as COMPONENT_NAMES, l as CSS_VARIABLE_ELEMENT, u as DAYJS_FORMAT_DATE_STRING, d as DAYJS_FORMAT_DATE_TIME_STRING, f as DAYJS_FORMAT_TIME_STRING, U as Emitter, Tn as HYPHEN, p as PREFIX_CLASS, Hn as Validator, Un as ValidatorArray, Wn as ValidatorBase, Gn as ValidatorBoolean, Kn as ValidatorCustom, qn as ValidatorNumber, Jn as ValidatorObject, Yn as ValidatorSchema, Xn as ValidatorString, Zn as ValidatorType, Ce as assign, we as assignIn, Te as at, t as call, n as callWith, te as callbackOriginRef, Ee as camelCase, S as canUseDOM, De as capitalize, ne as caseName, Oe as castArray, ke as chain, Ae as chunk, je as clamp, r as className, m as clipboardCopy, m as copy, Me as clone, Ne as cloneDeep, Pe as cloneDeepWith, Fe as cloneWith, i as cls, a as clsx, Ie as compact, ln as composeRef, s as confetti, C as contains, h as createRoot, o as cs, Le as curry, v as dateFormat, x as dayjs, y as dayjsFormat, Re as debounce, ze as defaultTo, Be as defaults, Ve as defaultsDeep, He as difference, Jt as div, Ue as escape, We as extend, W as fileRead, G as fileToDataURL, K as fillNBSP, un as fillRef, Ge as findKey, Mn as findNodeBy, w as findSingleChainDescendantByStyle, c as fire, Ke as first, Dn as fixedWidth, qe as flatten, Je as flattenDeep, Ye as flow, T as focusAtEnd, E as forceReflow, E as reflow, b as formatDuration, Xe as get, D as getBody, O as getBodyContainer, Nn as getChildWithParentBy, k as getClientRects, q as getCompatProp, A as getDOM, j as getDocument, M as getDocumentElement, J as getElement, N as getElementCoordinates, P as getElementOuterSize, F as getHead, Y as getHighlightText, X as getHotkeyHandler, Pn as getItemBy, Fn as getItemByID, In as getLabelFromDictionaryByValue, dn as getNodeRef, Z as getPrefixCls, ue as getQueryParam, fn as getReactElementRef, ae as getScrollBarHeight, oe as getScrollBarSize, se as getScrollBarWidth, I as getScrollElements, ce as getStringLength, On as getStyle, L as getTextLineCount, R as getTopLevelOverlayContainer, le as getUrlSearchParam, Ze as groupBy, Qe as has, $e as hasIn, de as initAllLineClamp, et as intersection, fe as intersectionObserver, tt as invert, nt as invertBy, rt as invoke, pe as isCompositeTypeElement, me as isEmptyChildren, he as isEmptyReactNode, ge as isReact18, _e as isReact19, ve as isReactClassComponent, ye as isReactComponent, be as isReactComponentAndNotFragment, xe as isReactFunctionalComponent, Se as isServerRendering, z as isSingleLine, it as kebabCase, $n as keyboardCode, at as last, ot as mapKeys, st as mapValues, Yt as math, ct as mean, lt as memoize, ut as merge, en as mergeProps, dt as mergeWith, $t as mergedToString, tn as migrateLegacyProps, Xt as minus, ft as move, nn as mutationObserver, pt as noop, B as off, Q as omit, mt as omitBy, V as on, ht as orderBy, an as padEnd, on as padStart, H as parentContainsChildren, gt as partition, _t as pick, sn as pickAttributesByPrefixes, vt as pickBy, cn as pickDataAriaAttributes, Zt as plus, yt as pullAll, xn as removeDarkTheme, g as render, En as replaceEmptyWithHyphen, gn as resizeObserver, bt as result, xt as sample, St as sampleSize, _n as saveAs, vn as screenfull, yn as scrollIntoViewIfNeeded, Ln as searchTree, Ct as set, _ as setCreateRoot, bn as setDarkTheme, Sn as setDir, Cn as setPrimaryColor, wn as setTheme, kn as setTransformStyle, wt as setWith, Tt as shuffle, Et as snakeCase, Dt as sortBy, Ot as startCase, kt as sumBy, pn as supportNodeRef, mn as supportRef, At as swap, jt as throttle, Qt as times, An as tinycolor, jn as toArray, Mt as toPath, Nt as toSwapped, Rn as tree, Pt as trim, Ft as truncate, zn as tunnel, It as union, Lt as uniq, Rt as uniqBy, zt as uniqueId, Bt as unset, Vt as update, Ht as updateWith, Ut as upperCase, Wt as upperFirst, hn as useComposeRef, $ as utils_exports, Bn as uuid, Vn as uuidv4, Qn as warning, Gt as without, Kt as xor, qt as zip };
|
|
290
291
|
/* 欲穷千里目,更上一层楼 */
|
|
291
292
|
/* 独立思考,明辨是非 */
|
package/utils/injectLineClamp.js
CHANGED