@unicom-cloud/ui-common 0.1.13 → 0.1.14
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/Development.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +1 -1
- package/Motion.js +1 -1
- package/Progress.js +1 -1
- package/ResizeObserver.js +1 -1
- package/Space.js +1 -1
- package/SuspenseFallbackTest.js +1 -1
- package/Timer.js +1 -1
- package/TransitionGroup.js +1 -1
- package/development/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/flex/utils.js +14 -13
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/withSpeechSynthesis.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 +1 -1
- package/hooks/createDeepCompareEffect.js +1 -1
- package/hooks/createUpdateEffect.js +1 -1
- package/hooks/createUseStorageState.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/use-async-effect/index.js +1 -1
- package/hooks/use-boolean/index.js +1 -1
- package/hooks/use-click-away/index.js +1 -1
- 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 +1 -1
- package/hooks/use-count-down/index.js +1 -1
- package/hooks/use-counter/index.js +1 -1
- package/hooks/use-create/index.js +1 -1
- package/hooks/use-creation/index.js +1 -1
- package/hooks/use-debounce/index.js +1 -1
- package/hooks/use-debounce-effect/index.js +1 -1
- package/hooks/use-debounce-fn/index.js +1 -1
- 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 +1 -1
- package/hooks/use-drag/index.js +1 -1
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.js +1 -1
- package/hooks/use-event-target/index.js +1 -1
- package/hooks/use-external/index.js +1 -1
- package/hooks/use-favicon/index.js +1 -1
- package/hooks/use-focus-within/index.js +1 -1
- package/hooks/use-force-update/index.js +1 -1
- package/hooks/use-fullscreen/index.js +1 -1
- package/hooks/use-get-state/index.js +1 -1
- package/hooks/use-history-travel/index.js +1 -1
- package/hooks/use-hover/index.js +1 -1
- package/hooks/use-id/index.js +1 -1
- package/hooks/use-in-view/index.js +1 -1
- package/hooks/use-in-viewport/index.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- 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.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 +1 -1
- 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-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +13 -13
- package/hooks/use-mobile/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-move/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +5 -4
- 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.js +1 -1
- package/hooks/use-pagination/index.js +1 -1
- 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 +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- 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/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +5 -4
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.js +1 -1
- package/hooks/use-state-with-promise/index.js +1 -1
- package/hooks/use-sync-state/index.js +1 -1
- package/hooks/use-text-selection/index.js +1 -1
- package/hooks/use-theme/index.js +1 -1
- package/hooks/use-throttle/index.js +1 -1
- package/hooks/use-throttle-effect/index.js +1 -1
- package/hooks/use-throttle-fn/index.js +1 -1
- package/hooks/use-timeout/index.js +1 -1
- package/hooks/use-title/index.js +1 -1
- 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.js +1 -1
- package/hooks/use-virtual-list/index.js +1 -1
- package/hooks/use-watch/index.js +1 -1
- package/hooks/use-web-socket/index.js +1 -1
- package/hooks/use-why-did-you-update/index.js +1 -1
- package/hooks/use-window-size/index.js +1 -1
- package/hooks/useAsyncEffect.js +1 -1
- package/hooks/useBoolean.js +1 -1
- package/hooks/useClickAway.js +1 -1
- package/hooks/useComputedState.js +1 -1
- package/hooks/useControllableValue.js +1 -1
- package/hooks/useCookieState.js +1 -1
- package/hooks/useCountDown.js +1 -1
- package/hooks/useCounter.js +1 -1
- package/hooks/useCreate.js +1 -1
- package/hooks/useCreation.js +1 -1
- package/hooks/useDebounce.js +1 -1
- package/hooks/useDebounceEffect.js +1 -1
- package/hooks/useDebounceFn.js +1 -1
- package/hooks/useDeepCompareEffect.js +1 -1
- package/hooks/useDeepCompareLayoutEffect.js +1 -1
- package/hooks/useDocumentVisibility.js +1 -1
- package/hooks/useDrag.js +1 -1
- package/hooks/useDrop.js +1 -1
- package/hooks/useEvent.js +1 -1
- package/hooks/useEventListener.js +1 -1
- package/hooks/useEventTarget.js +1 -1
- package/hooks/useExternal.js +1 -1
- package/hooks/useFavicon.js +1 -1
- package/hooks/useFocusWithin.js +1 -1
- package/hooks/useForceUpdate.js +1 -1
- package/hooks/useFullscreen.js +1 -1
- package/hooks/useGetState.js +1 -1
- package/hooks/useHistoryTravel.js +1 -1
- package/hooks/useHover.js +1 -1
- package/hooks/useId.js +1 -1
- package/hooks/useInView.js +1 -1
- package/hooks/useInViewport.js +1 -1
- package/hooks/useInfiniteScroll.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useIntersectionObservers.js +1 -1
- package/hooks/useInterval.js +1 -1
- package/hooks/useIsFirstRender.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useKeyPress.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useLatest.js +1 -1
- package/hooks/useListenWindowResize.js +1 -1
- package/hooks/useLocalStorageState.js +1 -1
- package/hooks/useLockFn.js +1 -1
- package/hooks/useLongPress.js +1 -1
- package/hooks/useMap.js +1 -1
- package/hooks/useMedia.js +1 -1
- package/hooks/useMemo.js +1 -1
- package/hooks/useMemoizedFn.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +2 -2
- package/hooks/useMobile.js +1 -1
- package/hooks/useMount.js +1 -1
- package/hooks/useMouse.js +1 -1
- package/hooks/useMove.js +1 -1
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/useMutationObservers.js +5 -4
- package/hooks/useNetwork.js +1 -1
- package/hooks/useOnlineStatus.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePagination.js +1 -1
- package/hooks/usePasteImage.js +1 -1
- package/hooks/usePersistCallback.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/useRafInterval.js +1 -1
- package/hooks/useRafState.js +1 -1
- package/hooks/useRafTimeout.js +1 -1
- package/hooks/useReactive.js +1 -1
- package/hooks/useRefLatest.js +1 -1
- package/hooks/useRefs.js +1 -1
- package/hooks/useRequest.js +1 -1
- package/hooks/useResetState.js +1 -1
- package/hooks/useResizeObserver.js +1 -1
- package/hooks/useResizeObservers.js +5 -4
- package/hooks/useResponsive.js +1 -1
- package/hooks/useSafeState.js +1 -1
- package/hooks/useScroll.js +1 -1
- package/hooks/useSelections.js +1 -1
- package/hooks/useSessionStorageState.js +1 -1
- package/hooks/useSet.js +1 -1
- package/hooks/useSetState.js +1 -1
- package/hooks/useSize.js +1 -1
- package/hooks/useStateCallback.js +1 -1
- package/hooks/useStateWithPromise.js +1 -1
- package/hooks/useSyncState.js +1 -1
- package/hooks/useTextSelection.js +1 -1
- package/hooks/useTheme.js +1 -1
- package/hooks/useThrottle.js +1 -1
- package/hooks/useThrottleEffect.js +1 -1
- package/hooks/useThrottleFn.js +1 -1
- package/hooks/useTimeout.js +1 -1
- package/hooks/useTitle.js +1 -1
- package/hooks/useToggle.js +1 -1
- package/hooks/useTrackedEffect.js +1 -1
- package/hooks/useUnmount.js +1 -1
- package/hooks/useUnmountedRef.js +1 -1
- package/hooks/useUpdate.js +1 -1
- package/hooks/useUpdateEffect.js +1 -1
- package/hooks/useUpdateLayoutEffect.js +1 -1
- package/hooks/useUrlState.js +1 -1
- package/hooks/useVirtualList.js +1 -1
- package/hooks/useWatch.js +1 -1
- package/hooks/useWebSocket.js +1 -1
- package/hooks/useWhyDidYouUpdate.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/hooks/utils/createEffectWithTarget.js +1 -1
- 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 +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/hooks/utils.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file.js +1 -1
- package/index.js +3 -1
- package/motion/CSSMotion.js +1 -1
- package/motion/CSSMotionList.js +1 -1
- package/motion/context.js +1 -1
- package/motion/hooks/useDomMotionEvents.js +1 -1
- package/motion/hooks/useNextFrame.js +1 -1
- package/motion/hooks/useStatus.js +1 -1
- package/motion/hooks/useStepQueue.js +1 -1
- package/motion/index.js +1 -1
- package/motion/interface.js +1 -1
- package/motion/util/diff.js +1 -1
- package/motion/util/motion.js +1 -1
- package/package.json +1 -1
- package/progress/index.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/space/index.js +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/timer/index.js +1 -1
- package/transition-group/CSSTransition.js +1 -1
- package/transition-group/ChildMapping.js +1 -1
- package/transition-group/PqbCSSTransition.js +1 -1
- package/transition-group/ReplaceTransition.js +1 -1
- package/transition-group/SwitchTransition.js +1 -1
- package/transition-group/Transition.js +1 -1
- package/transition-group/TransitionGroup.js +1 -1
- package/transition-group/TransitionGroupContext.js +1 -1
- package/transition-group/index.js +1 -1
- package/types/flex/interface.d.ts +1 -1
- package/types/utils/string.d.ts +2 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/compute.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +15 -17
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +55 -53
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.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 +3 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tween.js +1 -1
- package/utils/uuid.js +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type GapProperty = 'gap' | 'rowGap' | 'columnGap';
|
|
3
|
-
export type SizeType = 'mini' | 'small' | 'medium' | 'large' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | 'x1' | 'x2' | 'x3' | 'x4' | 'x5' | 'x6' | 'x7' | 'x8' | 'x9';
|
|
3
|
+
export type SizeType = 'default' | 'mini' | 'small' | 'medium' | 'large' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | 'x1' | 'x2' | 'x3' | 'x4' | 'x5' | 'x6' | 'x7' | 'x8' | 'x9';
|
|
4
4
|
export type GapType = SizeType | React.CSSProperties['gap'];
|
|
5
5
|
/**
|
|
6
6
|
* @title Flex
|
package/types/utils/string.d.ts
CHANGED
package/utils/callOrReturn.js
CHANGED
package/utils/caseName.js
CHANGED
package/utils/className.js
CHANGED
package/utils/compute.js
CHANGED
package/utils/constant.js
CHANGED
package/utils/copy.js
CHANGED
package/utils/date.js
CHANGED
package/utils/dayjs.js
CHANGED
package/utils/dom.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-12 10:48:24 */
|
|
2
2
|
import { default as C } from "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
3
3
|
import { default as g } from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
|
|
4
4
|
import { default as S, default as h } from "@unicom-cloud/utils/dom-helpers/reflow";
|
package/utils/emitter.js
CHANGED
package/utils/fileRead.js
CHANGED
package/utils/fileToDataURL.js
CHANGED
package/utils/fillNBSP.js
CHANGED
package/utils/findRootElement.js
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-12 10:48:24 */
|
|
2
2
|
import l from "lodash/escapeRegExp";
|
|
3
|
-
import { cloneElement as
|
|
3
|
+
import { cloneElement as o, createElement as p } from "react";
|
|
4
4
|
import "./is.js";
|
|
5
|
-
import { isArray as
|
|
5
|
+
import { isArray as m, isString as a } from "@unicom-cloud/utils/is";
|
|
6
6
|
function E({
|
|
7
7
|
nodeList: e,
|
|
8
8
|
pattern: t,
|
|
9
|
-
highlightClassName:
|
|
9
|
+
highlightClassName: s
|
|
10
10
|
}) {
|
|
11
|
-
if (!t)
|
|
12
|
-
|
|
13
|
-
const i = (r) => r && r.props && a(r.props.children) ? m(
|
|
11
|
+
if (!t) return e;
|
|
12
|
+
const i = (r) => r && r.props && a(r.props.children) ? o(
|
|
14
13
|
r,
|
|
15
14
|
void 0,
|
|
16
|
-
|
|
15
|
+
p(f, {
|
|
17
16
|
text: r.props.children,
|
|
18
17
|
keyword: t,
|
|
19
|
-
highlightClassName:
|
|
18
|
+
highlightClassName: s
|
|
20
19
|
})
|
|
21
20
|
) : r;
|
|
22
|
-
return
|
|
21
|
+
return m(e) ? [].concat(e).map((r) => i(r)) : i(e);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
23
|
+
function f({
|
|
25
24
|
text: e,
|
|
26
25
|
keyword: t,
|
|
27
|
-
highlightClassName:
|
|
26
|
+
highlightClassName: s
|
|
28
27
|
}) {
|
|
29
|
-
if (!t)
|
|
30
|
-
return e;
|
|
28
|
+
if (!t) return e;
|
|
31
29
|
t.length > 1e3 && (t = t.slice(0, 1e3));
|
|
32
30
|
const i = new RegExp(`(${l(t)})`, "i");
|
|
33
|
-
return e.split(i).map((
|
|
31
|
+
return e.split(i).map((n, c) => p(
|
|
34
32
|
"span",
|
|
35
33
|
{
|
|
36
34
|
key: c,
|
|
37
|
-
className: i.test(
|
|
35
|
+
className: i.test(n) ? s : ""
|
|
38
36
|
},
|
|
39
|
-
|
|
37
|
+
n
|
|
40
38
|
));
|
|
41
39
|
}
|
|
42
40
|
export {
|
package/utils/getStringLength.js
CHANGED
package/utils/include.js
CHANGED
package/utils/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-12 10:48:24 */
|
|
2
2
|
import { callbackOriginRef as a } from "./callbackOriginRef.js";
|
|
3
3
|
import { callOrReturn as f } from "@unicom-cloud/utils/function";
|
|
4
4
|
import { default as l } from "@unicom-cloud/utils/case-name";
|
|
5
5
|
import { default as p } from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { CSS_VARIABLE_ELEMENT as u, NOOP as n } from "./constant.js";
|
|
7
7
|
import { default as c, default as g } from "@unicom-cloud/utils/clipboard-copy";
|
|
8
|
-
import { convertTime as h, convertToDurationBasedOnTimeUnits as S, dateFormat as
|
|
8
|
+
import { convertTime as h, convertToDurationBasedOnTimeUnits as S, dateFormat as E, dayjsFormat as C } from "@unicom-cloud/utils/date";
|
|
9
9
|
import "./dayjs.js";
|
|
10
|
-
import { contains as b, getBodyContainer as B, getScrollElements as
|
|
10
|
+
import { contains as b, getBodyContainer as B, getScrollElements as N, off as A, on as I, parentContainsChildren as v } from "./dom.js";
|
|
11
11
|
import { default as O } from "@unicom-cloud/utils/emitter";
|
|
12
12
|
import { fileRead as V } from "@unicom-cloud/utils/file/fileRead";
|
|
13
13
|
import { fileToDataURL as W } from "@unicom-cloud/utils/file/fileToDataURL";
|
|
14
14
|
import { fillNBSP as M } from "./fillNBSP.js";
|
|
15
15
|
import { findRootElement as w } from "./findRootElement.js";
|
|
16
|
-
import { getHighlightText as
|
|
16
|
+
import { getHighlightText as H } from "./getHighlightText.js";
|
|
17
17
|
import { getHotkeyHandler as _ } from "./getHotkeyHandler.js";
|
|
18
18
|
import { getStringLength as q } from "./getStringLength.js";
|
|
19
19
|
import { include as J } from "./include.js";
|
|
@@ -26,17 +26,17 @@ import { default as ue } from "lodash/camelCase";
|
|
|
26
26
|
import { default as xe } from "lodash/capitalize";
|
|
27
27
|
import { default as ge } from "lodash/castArray";
|
|
28
28
|
import { default as he } from "lodash/chain";
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as Ee } from "lodash/chunk";
|
|
30
30
|
import { default as Re } from "lodash/clone";
|
|
31
31
|
import { default as Be } from "lodash/cloneDeep";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as Ae } from "lodash/cloneDeepWith";
|
|
33
33
|
import { default as ve } from "lodash/cloneWith";
|
|
34
34
|
import { default as Oe } from "lodash/compact";
|
|
35
35
|
import { default as Ve } from "lodash/curry";
|
|
36
36
|
import { default as We } from "lodash/debounce";
|
|
37
37
|
import { default as Me } from "lodash/defaults";
|
|
38
38
|
import { default as we } from "lodash/defaultsDeep";
|
|
39
|
-
import { default as
|
|
39
|
+
import { default as He } from "lodash/defaultTo";
|
|
40
40
|
import { default as _e } from "lodash/difference";
|
|
41
41
|
import { default as qe } from "lodash/escape";
|
|
42
42
|
import { default as Je } from "lodash/findKey";
|
|
@@ -53,17 +53,17 @@ import { default as ut } from "lodash/mean";
|
|
|
53
53
|
import { default as xt } from "lodash/memoize";
|
|
54
54
|
import { default as gt } from "lodash/merge";
|
|
55
55
|
import { default as ht } from "lodash/mergeWith";
|
|
56
|
-
import { default as
|
|
56
|
+
import { default as Et } from "lodash/orderBy";
|
|
57
57
|
import { default as Rt } from "lodash/partition";
|
|
58
58
|
import { default as Bt } from "lodash/pullAll";
|
|
59
|
-
import { default as
|
|
59
|
+
import { default as At } from "lodash/result";
|
|
60
60
|
import { default as vt } from "lodash/sample";
|
|
61
61
|
import { default as Ot } from "lodash/sampleSize";
|
|
62
62
|
import { default as Vt } from "lodash/set";
|
|
63
63
|
import { default as Wt } from "lodash/setWith";
|
|
64
64
|
import { default as Mt } from "lodash/shuffle";
|
|
65
65
|
import { default as wt } from "lodash/snakeCase";
|
|
66
|
-
import { default as
|
|
66
|
+
import { default as Ht } from "lodash/sortBy";
|
|
67
67
|
import { default as _t } from "lodash/startCase";
|
|
68
68
|
import { default as qt } from "lodash/throttle";
|
|
69
69
|
import { default as Jt } from "lodash/toPath";
|
|
@@ -79,15 +79,15 @@ import { default as pr } from "lodash/upperFirst";
|
|
|
79
79
|
import { default as ur } from "lodash/without";
|
|
80
80
|
import { default as xr } from "lodash/xor";
|
|
81
81
|
import { default as gr } from "lodash/zip";
|
|
82
|
-
import { div as hr, default as Sr, minus as
|
|
82
|
+
import { div as hr, default as Sr, minus as Er, plus as Cr, times as Rr } from "@unicom-cloud/utils/math";
|
|
83
83
|
import { mergedToString as Br } from "./mergedToString.js";
|
|
84
|
-
import { mergeProps as
|
|
84
|
+
import { mergeProps as Ar } from "./mergeProps.js";
|
|
85
85
|
import { mutationObserver as vr } from "./mutationObserver.js";
|
|
86
86
|
import { omit as Or } from "./omit.js";
|
|
87
87
|
import { padEnd as Vr, padStart as Pr } from "./pad.js";
|
|
88
88
|
import { pick as kr, pickDataAttributes as Mr } from "./pick.js";
|
|
89
89
|
import { default as wr } from "@unicom-cloud/utils/pinyin";
|
|
90
|
-
import { composeRef as
|
|
90
|
+
import { composeRef as Hr, fillRef as Ur, getNodeRef as _r, getReactElementRef as jr, supportNodeRef as qr, supportRef as zr, useComposeRef as Jr } from "./ref.js";
|
|
91
91
|
import { resizeObserver as Yr } from "./resizeObserver.js";
|
|
92
92
|
import { default as Qr } from "@unicom-cloud/utils/file/saveAs";
|
|
93
93
|
import { default as Zr } from "@unicom-cloud/utils/screenfull";
|
|
@@ -97,13 +97,13 @@ import { removeDarkTheme as uo, setDarkTheme as no } from "./setDarkTheme.js";
|
|
|
97
97
|
import { setDir as co } from "./setDir.js";
|
|
98
98
|
import { setPrimaryColor as yo } from "./setPrimaryColor.js";
|
|
99
99
|
import { setTheme as So } from "./setTheme.js";
|
|
100
|
-
import { replaceEmptyWithHyphen as
|
|
101
|
-
import { fixedWidth as bo, getStyle as Bo, setTransformStyle as
|
|
102
|
-
import { throttleByRaf as
|
|
100
|
+
import { replaceEmptyWithHyphen as Co } from "./string.js";
|
|
101
|
+
import { fixedWidth as bo, getStyle as Bo, setTransformStyle as No } from "./style.js";
|
|
102
|
+
import { throttleByRaf as Io } from "./throttleByRaf.js";
|
|
103
103
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
104
104
|
import { default as Oo } from "@unicom-cloud/utils/tinycolor";
|
|
105
105
|
import { toArray as Vo } from "./toArray.js";
|
|
106
|
-
import { findNodeBy as Wo, getChildWithParentBy as ko, getItemBy as Mo, getItemByID as Lo, getLabelFromDictionaryByValue as wo, searchTree as Fo, default as
|
|
106
|
+
import { findNodeBy as Wo, getChildWithParentBy as ko, getItemBy as Mo, getItemByID as Lo, getLabelFromDictionaryByValue as wo, searchTree as Fo, default as Ho } from "@unicom-cloud/utils/tree";
|
|
107
107
|
import { default as _o, easing as jo } from "@unicom-cloud/utils/tween";
|
|
108
108
|
import { v4 as zo, v4 as Jo } from "uuid";
|
|
109
109
|
import { PqbValidator as Yo, Validator as Go, ValidatorArray as Qo, ValidatorBase as Xo, ValidatorBoolean as Zo, ValidatorCustom as $o, ValidatorNumber as ea, ValidatorObject as ta, ValidatorSchema as ra, ValidatorString as oa, ValidatorType as aa, validatorLocale as sa } from "@unicom-cloud/utils/validate";
|
|
@@ -111,13 +111,15 @@ import { warning as ia } from "./warning.js";
|
|
|
111
111
|
import * as t from "@unicom-cloud/utils/constant/keyboardCode";
|
|
112
112
|
import { alignNearest as ma, canOverflow as pa, compute as da, getFrameElement as ua, getParentElement as na, getScrollMargins as xa, isHiddenByFrame as ca, isScrollable as ga } from "./compute.js";
|
|
113
113
|
import { UI_PC_KEY as ha, UI_PC_THEME_DARK_CLASS_NAME as Sa } from "@unicom-cloud/utils/constant/ui";
|
|
114
|
-
import { default as
|
|
114
|
+
import { default as Ca, isDayjs as Ra } from "dayjs";
|
|
115
115
|
import { default as Ba } from "@unicom-cloud/utils/dom-helpers/canUseDOM";
|
|
116
|
-
import { default as
|
|
116
|
+
import { default as Aa, default as Ia } from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
117
117
|
import { default as Da } from "@unicom-cloud/utils/dom-helpers/getElementCoordinates";
|
|
118
|
-
import { is32Bit as Ta, isAllChinese as Va, isArguments as Pa, isArray as Wa, isArrayBuffer as ka, isArrayLike as Ma, isArrayLikeObject as La, isAscii as wa, isAsyncFunction as Fa, isBase64 as
|
|
118
|
+
import { is32Bit as Ta, isAllChinese as Va, isArguments as Pa, isArray as Wa, isArrayBuffer as ka, isArrayLike as Ma, isArrayLikeObject as La, isAscii as wa, isAsyncFunction as Fa, isBase64 as Ha, isBigInt as Ua, isBlob as _a, isBoolean as ja, isBuffer as qa, isChinese as za, isColorValue as Ja, isDataURI as Ka, isDate as Ya, isElement as Ga, isEmail as Qa, isEmpty as Xa, isEmptyArray as Za, isEmptyObject as $a, isEmptyValue as es, isEqual as ts, isEqualWith as rs, isError as os, isEventTarget as as, isExist as ss, isFile as fs, isFinite as is, isFullWidth as ls, isFunction as ms, isHSL as ps, isHalfWidth as ds, isHash as us, isHexColor as ns, isIMEI as xs, isIP as cs, isIPRange as gs, isIdentityCard as ys, isInteger as hs, isJSON as Ss, isJSON_String as Es, isJWT as Cs, isLength as Rs, isMACAddress as bs, isMD5 as Bs, isMap as Ns, isMatch as As, isMatchWith as Is, isMimeType as vs, isMobilePhone as Ds, isMobilePhoneLocales as Os, isNaN as Ts, isNative as Vs, isNil as Ps, isNull as Ws, isNullOrUndefined as ks, isNumber as Ms, isObject as Ls, isObjectLike as ws, isPlainObject as Fs, isPort as Hs, isPromise as Us, isReadableStream as _s, isRegExp as js, isRgbColor as qs, isSafeInteger as zs, isSemVer as Js, isSet as Ks, isSlug as Ys, isString as Gs, isStrongPassword as Qs, isSymbol as Xs, isTypedArray as Zs, isURL as $s, isUUID as ef, isUndefined as tf, isVariableWidth as rf, isWeakMap as of, isWeakSet as af, isWindow as sf } from "@unicom-cloud/utils/is";
|
|
119
|
+
import { HYPHEN as lf } from "@unicom-cloud/utils/constant/string";
|
|
119
120
|
export {
|
|
120
121
|
u as CSS_VARIABLE_ELEMENT,
|
|
122
|
+
lf as HYPHEN,
|
|
121
123
|
n as NOOP,
|
|
122
124
|
Yo as PqbValidator,
|
|
123
125
|
_o as Tween,
|
|
@@ -146,26 +148,26 @@ export {
|
|
|
146
148
|
l as caseName,
|
|
147
149
|
ge as castArray,
|
|
148
150
|
he as chain,
|
|
149
|
-
|
|
151
|
+
Ee as chunk,
|
|
150
152
|
p as className,
|
|
151
153
|
c as clipboardCopy,
|
|
152
154
|
Re as clone,
|
|
153
155
|
Be as cloneDeep,
|
|
154
|
-
|
|
156
|
+
Ae as cloneDeepWith,
|
|
155
157
|
ve as cloneWith,
|
|
156
158
|
Oe as compact,
|
|
157
|
-
|
|
159
|
+
Hr as composeRef,
|
|
158
160
|
da as compute,
|
|
159
161
|
b as contains,
|
|
160
162
|
h as convertTime,
|
|
161
163
|
S as convertToDurationBasedOnTimeUnits,
|
|
162
164
|
g as copy,
|
|
163
165
|
Ve as curry,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
E as dateFormat,
|
|
167
|
+
Ca as dayjs,
|
|
168
|
+
C as dayjsFormat,
|
|
167
169
|
We as debounce,
|
|
168
|
-
|
|
170
|
+
He as defaultTo,
|
|
169
171
|
Me as defaults,
|
|
170
172
|
we as defaultsDeep,
|
|
171
173
|
_e as difference,
|
|
@@ -176,20 +178,20 @@ export {
|
|
|
176
178
|
V as fileRead,
|
|
177
179
|
W as fileToDataURL,
|
|
178
180
|
M as fillNBSP,
|
|
179
|
-
|
|
181
|
+
Ur as fillRef,
|
|
180
182
|
Je as findKey,
|
|
181
183
|
Wo as findNodeBy,
|
|
182
184
|
w as findRootElement,
|
|
183
185
|
bo as fixedWidth,
|
|
184
186
|
Ye as flattenDeep,
|
|
185
187
|
Qe as flow,
|
|
186
|
-
|
|
188
|
+
Aa as forceReflow,
|
|
187
189
|
Ze as get,
|
|
188
190
|
B as getBodyContainer,
|
|
189
191
|
ko as getChildWithParentBy,
|
|
190
192
|
Da as getElementCoordinates,
|
|
191
193
|
ua as getFrameElement,
|
|
192
|
-
|
|
194
|
+
H as getHighlightText,
|
|
193
195
|
_ as getHotkeyHandler,
|
|
194
196
|
Mo as getItemBy,
|
|
195
197
|
Lo as getItemByID,
|
|
@@ -198,7 +200,7 @@ export {
|
|
|
198
200
|
eo as getOptions,
|
|
199
201
|
na as getParentElement,
|
|
200
202
|
jr as getReactElementRef,
|
|
201
|
-
|
|
203
|
+
N as getScrollElements,
|
|
202
204
|
xa as getScrollMargins,
|
|
203
205
|
q as getStringLength,
|
|
204
206
|
Bo as getStyle,
|
|
@@ -218,8 +220,8 @@ export {
|
|
|
218
220
|
La as isArrayLikeObject,
|
|
219
221
|
wa as isAscii,
|
|
220
222
|
Fa as isAsyncFunction,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
Ha as isBase64,
|
|
224
|
+
Ua as isBigInt,
|
|
223
225
|
_a as isBlob,
|
|
224
226
|
ja as isBoolean,
|
|
225
227
|
qa as isBuffer,
|
|
@@ -258,14 +260,14 @@ export {
|
|
|
258
260
|
ro as isInDocument,
|
|
259
261
|
hs as isInteger,
|
|
260
262
|
Ss as isJSON,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
+
Es as isJSON_String,
|
|
264
|
+
Cs as isJWT,
|
|
263
265
|
Rs as isLength,
|
|
264
266
|
bs as isMACAddress,
|
|
265
267
|
Bs as isMD5,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
268
|
+
Ns as isMap,
|
|
269
|
+
As as isMatch,
|
|
270
|
+
Is as isMatchWith,
|
|
269
271
|
vs as isMimeType,
|
|
270
272
|
Ds as isMobilePhone,
|
|
271
273
|
Os as isMobilePhoneLocales,
|
|
@@ -278,8 +280,8 @@ export {
|
|
|
278
280
|
Ls as isObject,
|
|
279
281
|
ws as isObjectLike,
|
|
280
282
|
Fs as isPlainObject,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
Hs as isPort,
|
|
284
|
+
Us as isPromise,
|
|
283
285
|
Z as isReact18,
|
|
284
286
|
$ as isReact19,
|
|
285
287
|
ee as isReactClassComponent,
|
|
@@ -313,15 +315,15 @@ export {
|
|
|
313
315
|
ut as mean,
|
|
314
316
|
xt as memoize,
|
|
315
317
|
gt as merge,
|
|
316
|
-
|
|
318
|
+
Ar as mergeProps,
|
|
317
319
|
ht as mergeWith,
|
|
318
320
|
Br as mergedToString,
|
|
319
|
-
|
|
321
|
+
Er as minus,
|
|
320
322
|
vr as mutationObserver,
|
|
321
|
-
|
|
323
|
+
A as off,
|
|
322
324
|
Or as omit,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
+
I as on,
|
|
326
|
+
Et as orderBy,
|
|
325
327
|
Vr as padEnd,
|
|
326
328
|
Pr as padStart,
|
|
327
329
|
v as parentContainsChildren,
|
|
@@ -329,14 +331,14 @@ export {
|
|
|
329
331
|
kr as pick,
|
|
330
332
|
Mr as pickDataAttributes,
|
|
331
333
|
wr as pinyin,
|
|
332
|
-
|
|
334
|
+
Cr as plus,
|
|
333
335
|
Bt as pullAll,
|
|
334
|
-
|
|
336
|
+
Ia as reflow,
|
|
335
337
|
uo as removeDarkTheme,
|
|
336
338
|
lo as render,
|
|
337
|
-
|
|
339
|
+
Co as replaceEmptyWithHyphen,
|
|
338
340
|
Yr as resizeObserver,
|
|
339
|
-
|
|
341
|
+
At as result,
|
|
340
342
|
vt as sample,
|
|
341
343
|
Ot as sampleSize,
|
|
342
344
|
Qr as saveAs,
|
|
@@ -351,21 +353,21 @@ export {
|
|
|
351
353
|
co as setDir,
|
|
352
354
|
yo as setPrimaryColor,
|
|
353
355
|
So as setTheme,
|
|
354
|
-
|
|
356
|
+
No as setTransformStyle,
|
|
355
357
|
Wt as setWith,
|
|
356
358
|
Mt as shuffle,
|
|
357
359
|
wt as snakeCase,
|
|
358
|
-
|
|
360
|
+
Ht as sortBy,
|
|
359
361
|
_t as startCase,
|
|
360
362
|
qr as supportNodeRef,
|
|
361
363
|
zr as supportRef,
|
|
362
364
|
qt as throttle,
|
|
363
|
-
|
|
365
|
+
Io as throttleByRaf,
|
|
364
366
|
Rr as times,
|
|
365
367
|
Oo as tinycolor,
|
|
366
368
|
Vo as toArray,
|
|
367
369
|
Jt as toPath,
|
|
368
|
-
|
|
370
|
+
Ho as tree,
|
|
369
371
|
Yt as truncate,
|
|
370
372
|
Qt as union,
|
|
371
373
|
Zt as uniq,
|
package/utils/is.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2026-01-
|
|
1
|
+
/* 2026-01-12 10:48:24 */
|
|
2
2
|
import { isBrowser as o } from "@unicom-cloud/utils/constant/platform";
|
|
3
3
|
import { isNullOrUndefined as n, isString as a, isEmptyArray as c, isFunction as l } from "@unicom-cloud/utils/is";
|
|
4
4
|
import { is32Bit as B, isAllChinese as F, isArguments as w, isArray as L, isArrayBuffer as P, isArrayLike as H, isArrayLikeObject as U, isAscii as V, isAsyncFunction as j, isBase64 as x, isBigInt as D, isBlob as k, isBoolean as T, isBuffer as J, isChinese as q, isColorValue as X, isDataURI as Y, isDate as _, isElement as z, isEmail as G, isEmpty as K, isEmptyArray as Q, isEmptyObject as Z, isEmptyValue as $, isEqual as ii, isEqualWith as si, isError as ti, isEventTarget as ei, isExist as ri, isFile as oi, isFinite as ni, isFullWidth as ai, isFunction as ci, isHSL as li, isHalfWidth as ui, isHash as fi, isHexColor as di, isIMEI as mi, isIP as pi, isIPRange as yi, isIdentityCard as gi, isInteger as Ei, isJSON as hi, isJSON_String as Si, isJWT as Ri, isLength as Ai, isMACAddress as bi, isMD5 as Ci, isMap as Mi, isMatch as Ni, isMatchWith as Ii, isMimeType as Wi, isMobilePhone as vi, isMobilePhoneLocales as Oi, isNaN as Bi, isNative as Fi, isNil as wi, isNull as Li, isNullOrUndefined as Pi, isNumber as Hi, isObject as Ui, isObjectLike as Vi, isPlainObject as ji, isPort as xi, isPromise as Di, isReadableStream as ki, isRegExp as Ti, isRgbColor as Ji, isSafeInteger as qi, isSemVer as Xi, isSet as Yi, isSlug as _i, isString as zi, isStrongPassword as Gi, isSymbol as Ki, isTypedArray as Qi, isURL as Zi, isUUID as $i, isUndefined as is, isVariableWidth as ss, isWeakMap as ts, isWeakSet as es, isWindow as rs } from "@unicom-cloud/utils/is";
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
package/utils/mergeProps.js
CHANGED
package/utils/mergedToString.js
CHANGED
package/utils/omit.js
CHANGED
package/utils/pad.js
CHANGED
package/utils/pick.js
CHANGED
package/utils/pinyin.js
CHANGED
package/utils/react19Adapter.js
CHANGED
package/utils/ref.js
CHANGED
package/utils/resizeObserver.js
CHANGED
package/utils/saveAs.js
CHANGED