@unicom-cloud/ui-common 0.1.4 → 0.1.6
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/Progress.js +1 -1
- package/Space.js +1 -1
- package/SuspenseFallbackTest.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/interface.js +1 -1
- 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 +45 -35
- package/hooks/createDeepCompareEffect.js +1 -1
- package/hooks/createUpdateEffect.js +1 -1
- package/hooks/createUseStorageState.js +1 -1
- package/hooks/index.js +94 -88
- 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 +41 -38
- 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 +113 -0
- 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-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +1 -1
- package/hooks/use-mount/index.js +1 -1
- package/hooks/use-mouse/index.js +1 -1
- package/hooks/use-mutation-observer/index.js +1 -1
- package/hooks/use-mutation-observers/index.js +116 -0
- 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-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 +113 -0
- 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-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 +5 -3
- 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 +94 -0
- 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/useMemoizedFn.js +1 -1
- package/hooks/useMergeProps.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useMount.js +1 -1
- package/hooks/useMouse.js +1 -1
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/useMutationObservers.js +94 -0
- 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/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 +94 -0
- 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/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 +1 -1
- package/package.json +1 -1
- package/progress/index.js +1 -1
- package/space/index.js +6 -2
- package/suspense-fallback-test/index.js +1 -1
- package/transition-group/CSSTransition.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/transition-group/utils/ChildMapping.js +1 -1
- package/types/hooks/index.d.ts +3 -0
- package/types/hooks/use-intersection-observers/index.d.ts +4 -0
- package/types/hooks/use-mutation-observers/index.d.ts +4 -0
- package/types/hooks/use-resize-observers/index.d.ts +4 -0
- package/types/utils/constant.d.ts +1 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/is.d.ts +1 -1
- package/types/utils/resizeObserver.d.ts +1 -1
- package/types/utils/string.d.ts +2 -0
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/compute.js +1 -1
- package/utils/constant.js +8 -8
- 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/fileToURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.js +144 -142
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +77 -77
- 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/reactDOM.js +1 -1
- package/utils/resizeObserver.js +7 -7
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.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 +10 -0
- package/utils/style.js +1 -1
- package/utils/supportRef.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
package/types/utils/index.d.ts
CHANGED
package/types/utils/is.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare function isEmptyReactNode(content: any, trim?: boolean): boolean;
|
|
|
6
6
|
export declare function isReactComponent(element: any): boolean;
|
|
7
7
|
export declare function isClassComponent(element: any): boolean;
|
|
8
8
|
export declare function isDOMElement(element: any): boolean;
|
|
9
|
-
export declare function isForwardRefReact(object: any):
|
|
9
|
+
export declare function isForwardRefReact(object: any): boolean;
|
|
10
10
|
export { is32Bit, isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isColorValue, isDate, isDayjs, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFile, isFinite, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isSafeInteger, isServerRendering, isSet, isString, isSymbol, isTypedArray, isUndefined, isWeakMap, isWeakSet, isWindow, };
|
package/utils/caseName.js
CHANGED
package/utils/className.js
CHANGED
package/utils/compute.js
CHANGED
package/utils/constant.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/* 2025-11-19 10:00:01 */
|
|
2
|
+
import o from "lodash/noop";
|
|
3
|
+
import { UI_PC_KEY as m, UI_PC_THEME_DARK_CLASS_NAME as r } from "@unicom-cloud/utils/constant/ui";
|
|
4
|
+
const _ = window.document.documentElement, t = o;
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
_ as CSS_VARIABLE_ELEMENT,
|
|
7
|
+
t as NOOP,
|
|
8
|
+
m as UI_PC_KEY,
|
|
9
|
+
r as UI_PC_THEME_DARK_CLASS_NAME
|
|
10
10
|
};
|
package/utils/copy.js
CHANGED
package/utils/date.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-19 10:00:01 */
|
|
2
2
|
export * from "@unicom-cloud/utils/date";
|
package/utils/dayjs.js
CHANGED
package/utils/dom.js
CHANGED
package/utils/emitter.js
CHANGED
package/utils/fileToURL.js
CHANGED
package/utils/fillNBSP.js
CHANGED
package/utils/getStringLength.js
CHANGED
package/utils/include.js
CHANGED
package/utils/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-19 10:00:01 */
|
|
2
2
|
import { default as a } from "@unicom-cloud/utils/case-name";
|
|
3
3
|
import { default as s } from "@unicom-cloud/utils/class-name";
|
|
4
4
|
import { CSS_VARIABLE_ELEMENT as i, NOOP as m } from "./constant.js";
|
|
5
5
|
import { default as d, default as u } from "@unicom-cloud/utils/clipboard-copy";
|
|
6
6
|
export * from "@unicom-cloud/utils/date";
|
|
7
7
|
import "./dayjs.js";
|
|
8
|
-
import { contains as c, getBodyContainer as
|
|
8
|
+
import { contains as c, getBodyContainer as y, getScrollElements as g, isScrollElement as h, off as S, on as E, parentContainsChildren as C } from "./dom.js";
|
|
9
9
|
import { default as B } from "@unicom-cloud/utils/emitter";
|
|
10
10
|
import { default as v } from "@unicom-cloud/utils/file/fileToURL";
|
|
11
11
|
import { fillNBSP as O } from "./fillNBSP.js";
|
|
12
12
|
import { getHighlightText as D } from "./getHighlightText.js";
|
|
13
13
|
import { getHotkeyHandler as R } from "./getHotkeyHandler.js";
|
|
14
14
|
import { getStringLength as k } from "./getStringLength.js";
|
|
15
|
-
import { include as
|
|
15
|
+
import { include as W } from "./include.js";
|
|
16
16
|
import { intersectionObserver as M } from "./intersectionObserver.js";
|
|
17
|
-
import { isClassComponent as _, isDOMElement as j, isEmptyReactNode as F, isForwardRefReact as z, isReact18 as
|
|
17
|
+
import { isClassComponent as _, isDOMElement as j, isEmptyReactNode as F, isForwardRefReact as z, isReact18 as H, isReact19 as U, isReactComponent as q, isServerRendering as K } from "./is.js";
|
|
18
18
|
import { default as Y } from "lodash/assign";
|
|
19
19
|
import { default as Q } from "lodash/assignIn";
|
|
20
20
|
import { default as Z } from "lodash/at";
|
|
@@ -26,7 +26,7 @@ import { default as ie } from "lodash/chunk";
|
|
|
26
26
|
import { default as pe } from "lodash/clone";
|
|
27
27
|
import { default as ue } from "lodash/cloneDeep";
|
|
28
28
|
import { default as ne } from "lodash/cloneDeepWith";
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as ye } from "lodash/cloneWith";
|
|
30
30
|
import { default as he } from "lodash/compact";
|
|
31
31
|
import { default as Ee } from "lodash/curry";
|
|
32
32
|
import { default as be } from "lodash/debounce";
|
|
@@ -36,11 +36,11 @@ import { default as Ve } from "lodash/defaultTo";
|
|
|
36
36
|
import { default as Ie } from "lodash/difference";
|
|
37
37
|
import { default as Te } from "lodash/escape";
|
|
38
38
|
import { default as Le } from "lodash/findKey";
|
|
39
|
-
import { default as
|
|
39
|
+
import { default as we } from "lodash/flattenDeep";
|
|
40
40
|
import { default as Pe } from "lodash/flow";
|
|
41
41
|
import { default as je } from "lodash/get";
|
|
42
42
|
import { default as ze } from "lodash/groupBy";
|
|
43
|
-
import { default as
|
|
43
|
+
import { default as Ue } from "lodash/has";
|
|
44
44
|
import { default as Ke } from "lodash/intersection";
|
|
45
45
|
import { default as Ye } from "lodash/invert";
|
|
46
46
|
import { default as Qe } from "lodash/invertBy";
|
|
@@ -53,7 +53,7 @@ import { default as it } from "lodash/orderBy";
|
|
|
53
53
|
import { default as pt } from "lodash/partition";
|
|
54
54
|
import { default as ut } from "lodash/pullAll";
|
|
55
55
|
import { default as nt } from "lodash/result";
|
|
56
|
-
import { default as
|
|
56
|
+
import { default as yt } from "lodash/sample";
|
|
57
57
|
import { default as ht } from "lodash/sampleSize";
|
|
58
58
|
import { default as Et } from "lodash/set";
|
|
59
59
|
import { default as bt } from "lodash/setWith";
|
|
@@ -63,11 +63,11 @@ import { default as Vt } from "lodash/startCase";
|
|
|
63
63
|
import { default as It } from "lodash/throttle";
|
|
64
64
|
import { default as Tt } from "lodash/toPath";
|
|
65
65
|
import { default as Lt } from "lodash/truncate";
|
|
66
|
-
import { default as
|
|
66
|
+
import { default as wt } from "lodash/union";
|
|
67
67
|
import { default as Pt } from "lodash/uniq";
|
|
68
68
|
import { default as jt } from "lodash/uniqueId";
|
|
69
69
|
import { default as zt } from "lodash/unset";
|
|
70
|
-
import { default as
|
|
70
|
+
import { default as Ut } from "lodash/update";
|
|
71
71
|
import { default as Kt } from "lodash/updateWith";
|
|
72
72
|
import { default as Yt } from "lodash/upperCase";
|
|
73
73
|
import { default as Qt } from "lodash/upperFirst";
|
|
@@ -78,58 +78,59 @@ import { div as ar, default as fr, minus as sr, plus as lr, times as ir } from "
|
|
|
78
78
|
import { mergedToString as pr } from "./mergedToString.js";
|
|
79
79
|
import { mergeProps as ur } from "./mergeProps.js";
|
|
80
80
|
import { mutationObserver as nr } from "./mutationObserver.js";
|
|
81
|
-
import { omit as
|
|
81
|
+
import { omit as yr } from "./omit.js";
|
|
82
82
|
import { padEnd as hr, padStart as Sr } from "./pad.js";
|
|
83
83
|
import { pick as Cr, pickDataAttributes as br } from "./pick.js";
|
|
84
84
|
import { default as Nr } from "@unicom-cloud/utils/pinyin";
|
|
85
85
|
import { callbackOriginRef as Ar, findDOMNode as Or, render as Vr, setCreateRoot as Dr } from "./reactDOM.js";
|
|
86
86
|
import { resizeObserver as Rr } from "./resizeObserver.js";
|
|
87
87
|
import { default as kr } from "@unicom-cloud/utils/file/saveAs";
|
|
88
|
-
import { default as
|
|
89
|
-
import { getOptions as Mr, isCustomScrollBehavior as Pr, isInDocument as _r, isStandardScrollBehavior as jr, scrollIntoView as Fr, scrollIntoViewIfNeeded as zr, scrollIntoViewNative as
|
|
88
|
+
import { default as Wr } from "@unicom-cloud/utils/screenfull";
|
|
89
|
+
import { getOptions as Mr, isCustomScrollBehavior as Pr, isInDocument as _r, isStandardScrollBehavior as jr, scrollIntoView as Fr, scrollIntoViewIfNeeded as zr, scrollIntoViewNative as Hr } from "./scrollIntoViewIfNeeded.js";
|
|
90
90
|
import { removeDarkTheme as qr, setDarkTheme as Kr } from "./setDarkTheme.js";
|
|
91
91
|
import { setDir as Yr } from "./setDir.js";
|
|
92
92
|
import { setPrimaryColor as Qr } from "./setPrimaryColor.js";
|
|
93
93
|
import { setTheme as Zr } from "./setTheme.js";
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
94
|
+
import { replaceEmptyWithHyphen as eo } from "./string.js";
|
|
95
|
+
import { fixedWidth as ro, getStyle as oo, setTransformStyle as ao } from "./style.js";
|
|
96
|
+
import { supportRef as so } from "./supportRef.js";
|
|
97
|
+
import { throttleByRaf as io } from "./throttleByRaf.js";
|
|
97
98
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
98
|
-
import { default as
|
|
99
|
-
import { toArray as
|
|
100
|
-
import { findNodeBy as
|
|
101
|
-
import { default as
|
|
102
|
-
import { v4 as
|
|
103
|
-
import { ArrayValidator as
|
|
104
|
-
import { warning as
|
|
99
|
+
import { default as uo } from "@unicom-cloud/utils/tinycolor";
|
|
100
|
+
import { toArray as no } from "./toArray.js";
|
|
101
|
+
import { findNodeBy as yo, getChildWithParentBy as go, getItemBy as ho, getItemBy2 as So, getItemBy3 as Eo, getItemByID as Co, getLabelFromDictionaryByValue as bo, searchTree as Bo, default as No } from "@unicom-cloud/utils/tree";
|
|
102
|
+
import { default as Ao, easing as Oo } from "@unicom-cloud/utils/tween";
|
|
103
|
+
import { v4 as Do, v4 as Io } from "uuid";
|
|
104
|
+
import { ArrayValidator as To, BooleanValidator as ko, CustomValidator as Lo, DefaultValidateMessage as Wo, NumberValidator as wo, ObjectValidator as Mo, Schema as Po, StringValidator as _o, TypeValidator as jo, defaultValidateLocale as Fo, enUSValidateLocale as zo, mergeTemplate as Ho, default as Uo, zhCNValidateLocale as qo } from "@unicom-cloud/utils/validate";
|
|
105
|
+
import { warning as Jo } from "./warning.js";
|
|
105
106
|
import * as t from "@unicom-cloud/utils/constant/keyboardCode";
|
|
106
|
-
import { alignNearest as
|
|
107
|
-
import { UI_PC_KEY as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { is32Bit as
|
|
107
|
+
import { alignNearest as Go, canOverflow as Qo, compute as Xo, getFrameElement as Zo, getParentElement as $o, getScrollMargins as ea, isHiddenByFrame as ta, isScrollable as ra } from "./compute.js";
|
|
108
|
+
import { UI_PC_KEY as aa, UI_PC_THEME_DARK_CLASS_NAME as fa } from "@unicom-cloud/utils/constant/ui";
|
|
109
|
+
import { default as la, isDayjs as ia } from "dayjs";
|
|
110
|
+
import { default as pa, default as da } from "@unicom-cloud/utils/dom-helpers/reflow";
|
|
111
|
+
import { is32Bit as xa, isArguments as na, isArray as ca, isArrayBuffer as ya, isArrayLike as ga, isArrayLikeObject as ha, isBlob as Sa, isBoolean as Ea, isBuffer as Ca, isColorValue as ba, isDate as Ba, isElement as Na, isEmpty as va, isEmptyArray as Aa, isEmptyObject as Oa, isEmptyValue as Va, isEqual as Da, isEqualWith as Ia, isError as Ra, isEventTarget as Ta, isExist as ka, isFile as La, isFinite as Wa, isFunction as wa, isInteger as Ma, isJSON as Pa, isLength as _a, isMap as ja, isMatch as Fa, isMatchWith as za, isNaN as Ha, isNative as Ua, isNil as qa, isNull as Ka, isNullOrUndefined as Ja, isNumber as Ya, isObject as Ga, isObjectLike as Qa, isPlainObject as Xa, isPromise as Za, isReadableStream as $a, isRegExp as ef, isSafeInteger as tf, isSet as rf, isString as of, isSymbol as af, isTypedArray as ff, isUndefined as sf, isWeakMap as lf, isWeakSet as mf, isWindow as pf } from "@unicom-cloud/utils/is";
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
To as ArrayValidator,
|
|
114
|
+
ko as BooleanValidator,
|
|
114
115
|
i as CSS_VARIABLE_ELEMENT,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
Lo as CustomValidator,
|
|
117
|
+
Wo as DefaultValidateMessage,
|
|
117
118
|
m as NOOP,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
wo as NumberValidator,
|
|
120
|
+
Mo as ObjectValidator,
|
|
121
|
+
Po as Schema,
|
|
122
|
+
_o as StringValidator,
|
|
123
|
+
Ao as Tween,
|
|
124
|
+
jo as TypeValidator,
|
|
125
|
+
aa as UI_PC_KEY,
|
|
126
|
+
fa as UI_PC_THEME_DARK_CLASS_NAME,
|
|
127
|
+
Go as alignNearest,
|
|
127
128
|
Y as assign,
|
|
128
129
|
Q as assignIn,
|
|
129
130
|
Z as at,
|
|
130
131
|
Ar as callbackOriginRef,
|
|
131
132
|
ee as camelCase,
|
|
132
|
-
|
|
133
|
+
Qo as canOverflow,
|
|
133
134
|
re as capitalize,
|
|
134
135
|
a as caseName,
|
|
135
136
|
ae as castArray,
|
|
@@ -140,123 +141,123 @@ export {
|
|
|
140
141
|
pe as clone,
|
|
141
142
|
ue as cloneDeep,
|
|
142
143
|
ne as cloneDeepWith,
|
|
143
|
-
|
|
144
|
+
ye as cloneWith,
|
|
144
145
|
he as compact,
|
|
145
|
-
|
|
146
|
+
Xo as compute,
|
|
146
147
|
c as contains,
|
|
147
148
|
u as copy,
|
|
148
149
|
Ee as curry,
|
|
149
|
-
|
|
150
|
+
la as dayjs,
|
|
150
151
|
be as debounce,
|
|
151
152
|
Ve as defaultTo,
|
|
152
|
-
|
|
153
|
+
Fo as defaultValidateLocale,
|
|
153
154
|
Ne as defaults,
|
|
154
155
|
Ae as defaultsDeep,
|
|
155
156
|
Ie as difference,
|
|
156
157
|
ar as div,
|
|
157
|
-
|
|
158
|
+
Oo as easing,
|
|
158
159
|
B as emitter,
|
|
159
|
-
|
|
160
|
+
zo as enUSValidateLocale,
|
|
160
161
|
Te as escape,
|
|
161
162
|
v as fileToURL,
|
|
162
163
|
O as fillNBSP,
|
|
163
164
|
Or as findDOMNode,
|
|
164
165
|
Le as findKey,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
yo as findNodeBy,
|
|
167
|
+
ro as fixedWidth,
|
|
168
|
+
we as flattenDeep,
|
|
168
169
|
Pe as flow,
|
|
169
|
-
|
|
170
|
+
pa as forceReflow,
|
|
170
171
|
je as get,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
y as getBodyContainer,
|
|
173
|
+
go as getChildWithParentBy,
|
|
174
|
+
Zo as getFrameElement,
|
|
174
175
|
D as getHighlightText,
|
|
175
176
|
R as getHotkeyHandler,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
ho as getItemBy,
|
|
178
|
+
So as getItemBy2,
|
|
179
|
+
Eo as getItemBy3,
|
|
180
|
+
Co as getItemByID,
|
|
181
|
+
bo as getLabelFromDictionaryByValue,
|
|
181
182
|
Mr as getOptions,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
$o as getParentElement,
|
|
184
|
+
g as getScrollElements,
|
|
185
|
+
ea as getScrollMargins,
|
|
185
186
|
k as getStringLength,
|
|
186
|
-
|
|
187
|
+
oo as getStyle,
|
|
187
188
|
ze as groupBy,
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
Ue as has,
|
|
190
|
+
W as include,
|
|
190
191
|
Ke as intersection,
|
|
191
192
|
M as intersectionObserver,
|
|
192
193
|
Ye as invert,
|
|
193
194
|
Qe as invertBy,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
195
|
+
xa as is32Bit,
|
|
196
|
+
na as isArguments,
|
|
197
|
+
ca as isArray,
|
|
198
|
+
ya as isArrayBuffer,
|
|
199
|
+
ga as isArrayLike,
|
|
200
|
+
ha as isArrayLikeObject,
|
|
201
|
+
Sa as isBlob,
|
|
202
|
+
Ea as isBoolean,
|
|
203
|
+
Ca as isBuffer,
|
|
203
204
|
_ as isClassComponent,
|
|
204
|
-
|
|
205
|
+
ba as isColorValue,
|
|
205
206
|
Pr as isCustomScrollBehavior,
|
|
206
207
|
j as isDOMElement,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
Ba as isDate,
|
|
209
|
+
ia as isDayjs,
|
|
210
|
+
Na as isElement,
|
|
211
|
+
va as isEmpty,
|
|
212
|
+
Aa as isEmptyArray,
|
|
213
|
+
Oa as isEmptyObject,
|
|
213
214
|
F as isEmptyReactNode,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
Va as isEmptyValue,
|
|
216
|
+
Da as isEqual,
|
|
217
|
+
Ia as isEqualWith,
|
|
218
|
+
Ra as isError,
|
|
219
|
+
Ta as isEventTarget,
|
|
220
|
+
ka as isExist,
|
|
221
|
+
La as isFile,
|
|
222
|
+
Wa as isFinite,
|
|
222
223
|
z as isForwardRefReact,
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
wa as isFunction,
|
|
225
|
+
ta as isHiddenByFrame,
|
|
225
226
|
_r as isInDocument,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
227
|
+
Ma as isInteger,
|
|
228
|
+
Pa as isJSON,
|
|
229
|
+
_a as isLength,
|
|
230
|
+
ja as isMap,
|
|
231
|
+
Fa as isMatch,
|
|
232
|
+
za as isMatchWith,
|
|
233
|
+
Ha as isNaN,
|
|
234
|
+
Ua as isNative,
|
|
235
|
+
qa as isNil,
|
|
236
|
+
Ka as isNull,
|
|
237
|
+
Ja as isNullOrUndefined,
|
|
238
|
+
Ya as isNumber,
|
|
239
|
+
Ga as isObject,
|
|
240
|
+
Qa as isObjectLike,
|
|
241
|
+
Xa as isPlainObject,
|
|
242
|
+
Za as isPromise,
|
|
243
|
+
H as isReact18,
|
|
244
|
+
U as isReact19,
|
|
244
245
|
q as isReactComponent,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
$a as isReadableStream,
|
|
247
|
+
ef as isRegExp,
|
|
248
|
+
tf as isSafeInteger,
|
|
248
249
|
h as isScrollElement,
|
|
249
|
-
|
|
250
|
+
ra as isScrollable,
|
|
250
251
|
K as isServerRendering,
|
|
251
|
-
|
|
252
|
+
rf as isSet,
|
|
252
253
|
jr as isStandardScrollBehavior,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
of as isString,
|
|
255
|
+
af as isSymbol,
|
|
256
|
+
ff as isTypedArray,
|
|
257
|
+
sf as isUndefined,
|
|
258
|
+
lf as isWeakMap,
|
|
259
|
+
mf as isWeakSet,
|
|
260
|
+
pf as isWindow,
|
|
260
261
|
Ze as kebabCase,
|
|
261
262
|
t as keyboardCode,
|
|
262
263
|
fr as math,
|
|
@@ -264,13 +265,13 @@ export {
|
|
|
264
265
|
rt as memoize,
|
|
265
266
|
at as merge,
|
|
266
267
|
ur as mergeProps,
|
|
267
|
-
|
|
268
|
+
Ho as mergeTemplate,
|
|
268
269
|
st as mergeWith,
|
|
269
270
|
pr as mergedToString,
|
|
270
271
|
sr as minus,
|
|
271
272
|
nr as mutationObserver,
|
|
272
273
|
S as off,
|
|
273
|
-
|
|
274
|
+
yr as omit,
|
|
274
275
|
E as on,
|
|
275
276
|
it as orderBy,
|
|
276
277
|
hr as padEnd,
|
|
@@ -282,53 +283,54 @@ export {
|
|
|
282
283
|
Nr as pinyin,
|
|
283
284
|
lr as plus,
|
|
284
285
|
ut as pullAll,
|
|
285
|
-
|
|
286
|
+
da as reflow,
|
|
286
287
|
qr as removeDarkTheme,
|
|
287
288
|
Vr as render,
|
|
289
|
+
eo as replaceEmptyWithHyphen,
|
|
288
290
|
Rr as resizeObserver,
|
|
289
291
|
nt as result,
|
|
290
|
-
|
|
292
|
+
yt as sample,
|
|
291
293
|
ht as sampleSize,
|
|
292
294
|
kr as saveAs,
|
|
293
|
-
|
|
295
|
+
Wr as screenfull,
|
|
294
296
|
Fr as scrollIntoView,
|
|
295
297
|
zr as scrollIntoViewIfNeeded,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
Hr as scrollIntoViewNative,
|
|
299
|
+
Bo as searchTree,
|
|
298
300
|
Et as set,
|
|
299
301
|
Dr as setCreateRoot,
|
|
300
302
|
Kr as setDarkTheme,
|
|
301
303
|
Yr as setDir,
|
|
302
304
|
Qr as setPrimaryColor,
|
|
303
305
|
Zr as setTheme,
|
|
304
|
-
|
|
306
|
+
ao as setTransformStyle,
|
|
305
307
|
bt as setWith,
|
|
306
308
|
Nt as shuffle,
|
|
307
309
|
At as snakeCase,
|
|
308
310
|
Vt as startCase,
|
|
309
|
-
|
|
311
|
+
so as supportRef,
|
|
310
312
|
It as throttle,
|
|
311
|
-
|
|
313
|
+
io as throttleByRaf,
|
|
312
314
|
ir as times,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
uo as tinycolor,
|
|
316
|
+
no as toArray,
|
|
315
317
|
Tt as toPath,
|
|
316
|
-
|
|
318
|
+
No as tree,
|
|
317
319
|
Lt as truncate,
|
|
318
|
-
|
|
320
|
+
wt as union,
|
|
319
321
|
Pt as uniq,
|
|
320
322
|
jt as uniqueId,
|
|
321
323
|
zt as unset,
|
|
322
|
-
|
|
324
|
+
Ut as update,
|
|
323
325
|
Kt as updateWith,
|
|
324
326
|
Yt as upperCase,
|
|
325
327
|
Qt as upperFirst,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
Do as uuid,
|
|
329
|
+
Io as uuidv4,
|
|
330
|
+
Uo as validate,
|
|
331
|
+
Jo as warning,
|
|
330
332
|
Zt as without,
|
|
331
333
|
er as xor,
|
|
332
|
-
|
|
334
|
+
qo as zhCNValidateLocale,
|
|
333
335
|
rr as zip
|
|
334
336
|
};
|