@unicom-cloud/ui-common 0.1.21 → 0.1.22
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/.vite/manifest.json +191 -67
- package/development/Development.d.ts +8 -0
- package/development/Development.js +36 -0
- package/development/index.d.ts +2 -7
- package/development/index.js +5 -32
- package/empty/Empty.d.ts +5 -0
- package/empty/Empty.js +40 -0
- package/empty/index.d.ts +2 -4
- package/empty/index.js +5 -36
- package/flex/Flex.d.ts +6 -0
- package/flex/Flex.js +52 -0
- package/flex/index.d.ts +4 -5
- package/flex/index.js +6 -50
- package/flex/utils.d.ts +2 -12
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.d.ts +3 -6
- package/higher-order/with-speech-synthesis/index.js +5 -73
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.d.ts +7 -0
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +75 -0
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +3 -3
- package/hooks/create-use-storage-state/index.d.ts +1 -1
- package/hooks/create-use-storage-state/index.js +2 -2
- package/hooks/index.d.ts +1 -2
- package/hooks/index.js +90 -91
- 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.d.ts +5 -5
- package/hooks/use-controllable-value/index.js +29 -14
- 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 +2 -2
- package/hooks/use-drop/index.js +1 -1
- package/hooks/use-effect-event/index.d.ts +2 -2
- package/hooks/use-effect-event/index.js +5 -15
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-emitter/index.d.ts +2 -2
- package/hooks/use-event-emitter/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.d.ts +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-viewport/index.d.ts +3 -1
- package/hooks/use-in-viewport/index.js +16 -15
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.d.ts +1 -1
- package/hooks/use-intersection-observer/index.js +2 -2
- 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 +3 -3
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.d.ts +1 -1
- package/hooks/use-merge-props/index.js +5 -9
- package/hooks/use-merge-value/index.js +5 -5
- package/hooks/use-mobile/index.js +3 -3
- package/hooks/use-mount/index.d.ts +2 -1
- package/hooks/use-mount/index.js +10 -7
- 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 +1 -1
- 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 +6 -6
- package/hooks/use-pagination/index.js +1 -1
- package/hooks/use-paste-image/index.js +1 -1
- package/hooks/use-persist-callback/index.d.ts +2 -1
- package/hooks/use-persist-callback/index.js +4 -7
- package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
- package/hooks/use-previous/index.d.ts +1 -1
- package/hooks/use-previous/index.js +4 -4
- 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 +17 -10
- 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 +1 -1
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.d.ts +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.d.ts +4 -2
- package/hooks/use-set-state/index.js +19 -14
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.d.ts +8 -3
- package/hooks/use-state-callback/index.js +12 -7
- package/hooks/use-state-with-promise/index.js +14 -13
- package/hooks/use-sync-state/index.js +3 -3
- 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 +5 -2
- 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/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/icons/file/IconFile.d.ts +4 -0
- package/icons/file/IconFile.js +55 -0
- package/icons/file/index.d.ts +2 -3
- package/icons/file/index.js +5 -53
- package/index.js +652 -623
- package/package.json +1 -1
- package/progress/Progress.d.ts +409 -0
- package/progress/Progress.js +90 -0
- package/progress/index.d.ts +22 -407
- package/progress/index.js +4 -87
- package/resize-observer/Collection.d.ts +1 -2
- package/resize-observer/Collection.js +16 -16
- package/resize-observer/ResizeObserver.d.ts +6 -0
- package/resize-observer/ResizeObserver.js +23 -0
- package/resize-observer/SingleObserver.d.ts +3 -3
- package/resize-observer/SingleObserver.js +20 -20
- package/resize-observer/index.d.ts +4 -4
- package/resize-observer/index.js +6 -21
- package/resize-observer/observerUtil.js +1 -1
- package/space/Space.d.ts +5 -0
- package/space/Space.js +76 -0
- package/space/index.d.ts +4 -4
- package/space/index.js +5 -72
- package/style/animation.less +1 -4
- package/style.css +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.d.ts +6 -0
- package/suspense-fallback-test/SuspenseFallbackTest.js +13 -0
- package/suspense-fallback-test/index.d.ts +2 -6
- package/suspense-fallback-test/index.js +5 -6
- package/test.js +1 -1
- package/timer/Timer.d.ts +3 -0
- package/timer/Timer.js +40 -0
- package/timer/index.d.ts +2 -2
- package/timer/index.js +5 -37
- package/transition/Transition.d.ts +1 -8
- package/transition/Transition.js +62 -64
- package/transition/TransitionCSS.d.ts +1 -2
- package/transition/TransitionCSS.js +30 -26
- package/transition/TransitionGroup.d.ts +3 -3
- package/transition/TransitionGroup.js +46 -40
- package/transition/TransitionStyle.d.ts +1 -2
- package/transition/TransitionStyle.js +27 -23
- package/transition/constants.js +9 -3
- package/transition/context.d.ts +15 -0
- package/transition/context.js +8 -0
- package/transition/index.d.ts +13 -4
- package/transition/index.js +10 -9
- package/transition/interface.d.ts +8 -6
- package/transition/utils.d.ts +3 -3
- package/transition/utils.js +9 -9
- 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/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.d.ts +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.d.ts +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +1 -1
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +331 -324
- package/utils/intersectionObserver.d.ts +1 -1
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.d.ts +2 -2
- package/utils/is.js +14 -14
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.d.ts +5 -1
- package/utils/lodash.js +31 -27
- package/utils/math.js +1 -1
- package/utils/mergeProps.d.ts +1 -1
- package/utils/mergeProps.js +7 -8
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.d.ts +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/object.d.ts +1 -0
- package/utils/object.js +10 -0
- package/utils/omit.d.ts +1 -5
- package/utils/omit.js +3 -3
- package/utils/pad.js +1 -1
- package/utils/pick.d.ts +2 -7
- package/utils/pick.js +6 -6
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.d.ts +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 +1 -1
- package/utils/style.js +1 -1
- package/utils/throttleByRaf.js +1 -1
- package/utils/throttleByRaf2.d.ts +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/version/index.js +11 -11
- package/hooks/use-in-view/index.d.ts +0 -11
- package/hooks/use-in-view/index.js +0 -21
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function intersectionObserver(elements:
|
|
1
|
+
declare function intersectionObserver(elements: ConcatArray<never>, callback: (...args: unknown[]) => void): () => void;
|
|
2
2
|
export { intersectionObserver };
|
|
3
3
|
export default intersectionObserver;
|
package/utils/is.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
|
|
1
|
+
import { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow } from '@unicom-cloud/utils/is';
|
|
2
2
|
import { isDayjs } from 'dayjs';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
declare const isServerRendering: boolean;
|
|
@@ -10,4 +10,4 @@ export declare function isReactClassComponent(element?: React.ReactElement): ele
|
|
|
10
10
|
export declare function isElementByInstanceof(element?: unknown): element is Element;
|
|
11
11
|
export declare function isHTMLElement(element?: unknown): element is HTMLElement;
|
|
12
12
|
export declare function isScrollElement(element?: unknown): element is HTMLElement;
|
|
13
|
-
export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
|
|
13
|
+
export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHalfWidth, isHash, isHexColor, isHSL, isIdentityCard, isIMEI, isInteger, isIP, isIPRange, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMap, isMatch, isMatchWith, isMD5, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
|
package/utils/is.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import e, { isValidElement as t } from "react";
|
|
3
3
|
import { isBrowser as n } from "@unicom-cloud/utils/constant/platform";
|
|
4
|
-
import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as s, isBase64 as c, isBigInt as l, isBlob as u, isBoolean as d, isBuffer as f, isChinese as p, isColorValue as m, isDataURI as h, isDate as g, isElement as _, isEmail as v, isEmpty as y, isEmptyArray as b, isEmptyObject as x, isEmptyValue as S, isEqual as C, isEqualWith as w, isError as T, isEventTarget as E, isExist as D, isFalse as O, isFile as k, isFinite as A, isFullWidth as j, isFunction as M, isHSL as N, isHalfWidth as P, isHash as F, isHexColor as I, isIMEI as L, isIP as R, isIPRange as z, isIdentityCard as B, isInteger as V, isJSON as H, isJSON_String as U, isJWT as W, isLength as G, isMACAddress as K, isMD5 as q, isMap as J, isMatch as oe, isMatchWith as se, isMimeType as ce, isMobilePhone as le, isMobilePhoneLocales as ue, isNaN as de, isNative as fe, isNil as pe,
|
|
5
|
-
import { isDayjs as
|
|
6
|
-
import
|
|
7
|
-
import { isFragment as
|
|
4
|
+
import { is32Bit as r, isAllChinese as i, isArguments as a, isArray as o, isArrayAndNotEmpty as ee, isArrayBuffer as te, isArrayEmpty as ne, isArrayLike as re, isArrayLikeObject as ie, isAscii as ae, isAsyncFunction as s, isBase64 as c, isBigInt as l, isBlob as u, isBoolean as d, isBuffer as f, isChinese as p, isColorValue as m, isDataURI as h, isDate as g, isElement as _, isEmail as v, isEmpty as y, isEmptyArray as b, isEmptyObject as x, isEmptyValue as S, isEqual as C, isEqualWith as w, isError as T, isEventTarget as E, isExist as D, isFalse as O, isFile as k, isFinite as A, isFullWidth as j, isFunction as M, isHSL as N, isHalfWidth as P, isHash as F, isHexColor as I, isIMEI as L, isIP as R, isIPRange as z, isIdentityCard as B, isInteger as V, isJSON as H, isJSON_String as U, isJWT as W, isLength as G, isMACAddress as K, isMD5 as q, isMap as J, isMatch as oe, isMatchWith as se, isMimeType as ce, isMobilePhone as le, isMobilePhoneLocales as ue, isNaN as de, isNative as fe, isNil as pe, isNonNullable as me, isNull as he, isNullOrUndefined as Y, isNumber as ge, isNumberOrString as _e, isObject as ve, isObjectLike as ye, isPlainObject as be, isPort as xe, isPresent as Se, isPrimitive as Ce, isPromise as we, isReadableStream as Te, isRegExp as Ee, isRgbColor as De, isSafeInteger as Oe, isSemVer as ke, isSet as Ae, isSlug as je, isSparseArray as Me, isString as X, isStringAndExist as Ne, isStringOrNumber as Pe, isStrongPassword as Fe, isSymbol as Ie, isThenable as Le, isTrue as Re, isTypedArray as ze, isURL as Be, isUUID as Ve, isUndefined as He, isUndefinedOrNull as Ue, isVariableWidth as We, isWeakMap as Ge, isWeakSet as Ke, isWindow as qe } from "@unicom-cloud/utils/is";
|
|
5
|
+
import { isDayjs as Je } from "dayjs";
|
|
6
|
+
import Ye from "react-dom";
|
|
7
|
+
import { isFragment as Xe } from "react-is";
|
|
8
8
|
//#region components/common/utils/is.ts
|
|
9
|
-
var
|
|
10
|
-
let i = e.version ||
|
|
9
|
+
var Z = !n, [Ze, Qe] = [18, 19].map((t, n, r) => {
|
|
10
|
+
let i = e.version || Ye.version || "", a = /\d+/.exec(i)?.[0] ?? "";
|
|
11
11
|
return t <= parseFloat(a);
|
|
12
12
|
});
|
|
13
|
-
function
|
|
13
|
+
function $e(e, t) {
|
|
14
14
|
return !!(Y(e) || e === !1 || X(e) && (t ? e.trim() === "" : e === "") || b(e));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return t(e) && !
|
|
16
|
+
function et(e) {
|
|
17
|
+
return t(e) && !Xe(e);
|
|
18
18
|
}
|
|
19
19
|
function Q(e) {
|
|
20
20
|
return t(e) && M(e.type);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function tt(e) {
|
|
23
23
|
return Q(e) && !!e.type?.prototype?.isReactComponent;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function nt(e) {
|
|
26
26
|
return e instanceof Element;
|
|
27
27
|
}
|
|
28
28
|
function $(e) {
|
|
29
29
|
return e instanceof HTMLElement;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function rt(e) {
|
|
32
32
|
if (!$(e) || [document.documentElement].includes(e)) return !1;
|
|
33
33
|
let t = window.getComputedStyle(e), n = [
|
|
34
34
|
"auto",
|
|
@@ -38,5 +38,5 @@ function tt(e) {
|
|
|
38
38
|
return e.scrollHeight > e.offsetHeight && n.includes(t.overflowY) || e.scrollWidth > e.offsetWidth && n.includes(t.overflowX);
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, s as isAsyncFunction, c as isBase64, l as isBigInt, u as isBlob, d as isBoolean, f as isBuffer, p as isChinese, m as isColorValue, h as isDataURI, g as isDate,
|
|
41
|
+
export { r as is32Bit, i as isAllChinese, a as isArguments, o as isArray, ee as isArrayAndNotEmpty, te as isArrayBuffer, ne as isArrayEmpty, re as isArrayLike, ie as isArrayLikeObject, ae as isAscii, s as isAsyncFunction, c as isBase64, l as isBigInt, u as isBlob, d as isBoolean, f as isBuffer, p as isChinese, m as isColorValue, h as isDataURI, g as isDate, Je as isDayjs, _ as isElement, nt as isElementByInstanceof, v as isEmail, y as isEmpty, b as isEmptyArray, x as isEmptyObject, $e as isEmptyReactNode, S as isEmptyValue, C as isEqual, w as isEqualWith, T as isError, E as isEventTarget, D as isExist, O as isFalse, k as isFile, A as isFinite, j as isFullWidth, M as isFunction, N as isHSL, $ as isHTMLElement, P as isHalfWidth, F as isHash, I as isHexColor, L as isIMEI, R as isIP, z as isIPRange, B as isIdentityCard, V as isInteger, H as isJSON, U as isJSON_String, W as isJWT, G as isLength, K as isMACAddress, q as isMD5, J as isMap, oe as isMatch, se as isMatchWith, ce as isMimeType, le as isMobilePhone, ue as isMobilePhoneLocales, de as isNaN, fe as isNative, pe as isNil, me as isNonNullable, he as isNull, Y as isNullOrUndefined, ge as isNumber, _e as isNumberOrString, ve as isObject, ye as isObjectLike, be as isPlainObject, xe as isPort, Se as isPresent, Ce as isPrimitive, we as isPromise, Ze as isReact18, Qe as isReact19, tt as isReactClassComponent, Q as isReactComponent, et as isReactComponentAndNotFragment, Te as isReadableStream, Ee as isRegExp, De as isRgbColor, Oe as isSafeInteger, rt as isScrollElement, ke as isSemVer, Z as isServerRendering, Ae as isSet, je as isSlug, Me as isSparseArray, X as isString, Ne as isStringAndExist, Pe as isStringOrNumber, Fe as isStrongPassword, Ie as isSymbol, Le as isThenable, Re as isTrue, ze as isTypedArray, Be as isURL, Ve as isUUID, He as isUndefined, Ue as isUndefinedOrNull, We as isVariableWidth, Ge as isWeakMap, Ke as isWeakSet, qe as isWindow };
|
|
42
42
|
/* 独立思考,明辨是非 */
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.d.ts
CHANGED
|
@@ -33,8 +33,12 @@ import memoize from 'lodash/memoize';
|
|
|
33
33
|
import merge from 'lodash/merge';
|
|
34
34
|
import mergeWith from 'lodash/mergeWith';
|
|
35
35
|
import noop from 'lodash/noop';
|
|
36
|
+
import omit from 'lodash/omit';
|
|
37
|
+
import omitBy from 'lodash/omitBy';
|
|
36
38
|
import orderBy from 'lodash/orderBy';
|
|
37
39
|
import partition from 'lodash/partition';
|
|
40
|
+
import pick from 'lodash/pick';
|
|
41
|
+
import pickBy from 'lodash/pickBy';
|
|
38
42
|
import pullAll from 'lodash/pullAll';
|
|
39
43
|
import result from 'lodash/result';
|
|
40
44
|
import sample from 'lodash/sample';
|
|
@@ -59,4 +63,4 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
59
63
|
import without from 'lodash/without';
|
|
60
64
|
import xor from 'lodash/xor';
|
|
61
65
|
import zip from 'lodash/zip';
|
|
62
|
-
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, findKey, flattenDeep, flow, get, groupBy, has, intersection, invert, invertBy, kebabCase, mean, memoize, merge, mergeWith, noop, orderBy, partition, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, throttle, toPath, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
|
66
|
+
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, findKey, flattenDeep, flow, get, groupBy, has, intersection, invert, invertBy, kebabCase, mean, memoize, merge, mergeWith, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, throttle, toPath, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
package/utils/lodash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import e from "lodash/castArray";
|
|
3
3
|
import t from "lodash/debounce";
|
|
4
4
|
import n from "lodash/throttle";
|
|
@@ -35,30 +35,34 @@ import M from "lodash/mean";
|
|
|
35
35
|
import N from "lodash/memoize";
|
|
36
36
|
import P from "lodash/merge";
|
|
37
37
|
import F from "lodash/mergeWith";
|
|
38
|
-
import I from "lodash/
|
|
39
|
-
import L from "lodash/
|
|
40
|
-
import R from "lodash/
|
|
41
|
-
import z from "lodash/
|
|
42
|
-
import B from "lodash/
|
|
43
|
-
import V from "lodash/
|
|
44
|
-
import H from "lodash/
|
|
45
|
-
import U from "lodash/
|
|
46
|
-
import W from "lodash/
|
|
47
|
-
import G from "lodash/
|
|
48
|
-
import K from "lodash/
|
|
49
|
-
import q from "lodash/
|
|
50
|
-
import J from "lodash/
|
|
51
|
-
import Y from "lodash/
|
|
52
|
-
import X from "lodash/
|
|
53
|
-
import Z from "lodash/
|
|
54
|
-
import Q from "lodash/
|
|
55
|
-
import $ from "lodash/
|
|
56
|
-
import ee from "lodash/
|
|
57
|
-
import te from "lodash/
|
|
58
|
-
import ne from "lodash/
|
|
59
|
-
import re from "lodash/
|
|
60
|
-
import ie from "lodash/
|
|
61
|
-
import ae from "lodash/
|
|
62
|
-
import oe from "lodash/
|
|
63
|
-
|
|
38
|
+
import I from "lodash/omit";
|
|
39
|
+
import L from "lodash/omitBy";
|
|
40
|
+
import R from "lodash/orderBy";
|
|
41
|
+
import z from "lodash/partition";
|
|
42
|
+
import B from "lodash/pick";
|
|
43
|
+
import V from "lodash/pickBy";
|
|
44
|
+
import H from "lodash/pullAll";
|
|
45
|
+
import U from "lodash/result";
|
|
46
|
+
import W from "lodash/sample";
|
|
47
|
+
import G from "lodash/sampleSize";
|
|
48
|
+
import K from "lodash/set";
|
|
49
|
+
import q from "lodash/setWith";
|
|
50
|
+
import J from "lodash/shuffle";
|
|
51
|
+
import Y from "lodash/snakeCase";
|
|
52
|
+
import X from "lodash/sortBy";
|
|
53
|
+
import Z from "lodash/startCase";
|
|
54
|
+
import Q from "lodash/toPath";
|
|
55
|
+
import $ from "lodash/truncate";
|
|
56
|
+
import ee from "lodash/union";
|
|
57
|
+
import te from "lodash/uniq";
|
|
58
|
+
import ne from "lodash/uniqueId";
|
|
59
|
+
import re from "lodash/unset";
|
|
60
|
+
import ie from "lodash/update";
|
|
61
|
+
import ae from "lodash/updateWith";
|
|
62
|
+
import oe from "lodash/upperCase";
|
|
63
|
+
import se from "lodash/upperFirst";
|
|
64
|
+
import ce from "lodash/without";
|
|
65
|
+
import le from "lodash/xor";
|
|
66
|
+
import ue from "lodash/zip";
|
|
67
|
+
export { i as assign, a as assignIn, o as at, s as camelCase, c as capitalize, e as castArray, l as chain, u as chunk, d as clone, f as cloneDeep, p as cloneDeepWith, m as cloneWith, h as compact, g as curry, t as debounce, y as defaultTo, _ as defaults, v as defaultsDeep, b as difference, x as escape, S as findKey, C as flattenDeep, w as flow, T as get, E as groupBy, D as has, O as intersection, k as invert, A as invertBy, j as kebabCase, M as mean, N as memoize, P as merge, F as mergeWith, r as noop, I as omit, L as omitBy, R as orderBy, z as partition, B as pick, V as pickBy, H as pullAll, U as result, W as sample, G as sampleSize, K as set, q as setWith, J as shuffle, Y as snakeCase, X as sortBy, Z as startCase, n as throttle, Q as toPath, $ as truncate, ee as union, te as uniq, ne as uniqueId, re as unset, ie as update, ae as updateWith, oe as upperCase, se as upperFirst, ce as without, le as xor, ue as zip };
|
|
64
68
|
/* 独立思考,明辨是非 */
|
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
|
|
3
3
|
export { a as default, t as div, e as math, n as minus, r as plus, i as times };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/mergeProps.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function mergeProps<
|
|
1
|
+
declare function mergeProps<T extends object>(componentProps: T, defaultProps: Partial<T>, globalComponentConfig?: Partial<T>, picks?: string[]): Partial<T>;
|
|
2
2
|
export { mergeProps };
|
|
3
3
|
export default mergeProps;
|
package/utils/mergeProps.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import {
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
|
+
import { isArray as e } from "./is.js";
|
|
3
|
+
import { defaults as t, pick as n } from "./lodash.js";
|
|
3
4
|
//#region components/common/utils/mergeProps.ts
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
return
|
|
7
|
-
e(s[t]) ? t in o ? l[t] = o[t] : t in a && (l[t] = a[t]) : l[t] = s[t];
|
|
8
|
-
}), l;
|
|
5
|
+
function r(r, i, a, o) {
|
|
6
|
+
let s = t({}, r, a, i);
|
|
7
|
+
return e(o) && (s = n(s, o)), s;
|
|
9
8
|
}
|
|
10
9
|
//#endregion
|
|
11
|
-
export {
|
|
10
|
+
export { r as default, r as mergeProps };
|
|
12
11
|
/* 独立思考,明辨是非 */
|
package/utils/mergedToString.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@unicom-cloud/utils/object';
|
package/utils/object.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
|
+
import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
|
|
3
|
+
export * from "@unicom-cloud/utils/object";
|
|
4
|
+
//#region components/common/utils/object.ts
|
|
5
|
+
var n = /* @__PURE__ */ e({});
|
|
6
|
+
import * as r from "@unicom-cloud/utils/object";
|
|
7
|
+
t(n, r);
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as object_exports };
|
|
10
|
+
/* 独立思考,明辨是非 */
|
package/utils/omit.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
<T extends object, K extends import("lodash").PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
|
|
3
|
-
<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<import("lodash").Many<K>>): import("lodash").Omit<T, K>;
|
|
4
|
-
<T extends object>(object: T | null | undefined, ...paths: Array<import("lodash").Many<import("lodash").PropertyName>>): import("lodash").PartialObject<T>;
|
|
5
|
-
};
|
|
1
|
+
import { omit } from './lodash';
|
|
6
2
|
export { omit };
|
|
7
3
|
export default omit;
|
package/utils/omit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import e from "lodash
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
|
+
import { omit as e } from "./lodash.js";
|
|
3
3
|
//#region components/common/utils/omit.ts
|
|
4
4
|
var t = e;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { t as default,
|
|
6
|
+
export { t as default, e as omit };
|
|
7
7
|
/* 独立思考,明辨是非 */
|
package/utils/pad.js
CHANGED
package/utils/pick.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<T>(object: T | null | undefined, ...props: Array<import("lodash").Many<import("lodash").PropertyPath>>): import("lodash").PartialObject<T>;
|
|
4
|
-
};
|
|
5
|
-
declare function pickDataAttributes<T extends object, K extends keyof T>(o: T | undefined): {
|
|
6
|
-
[key in K]: unknown;
|
|
7
|
-
};
|
|
1
|
+
import { pick } from './lodash';
|
|
2
|
+
declare function pickDataAttributes<T extends object>(o: T | undefined): Record<string, unknown>;
|
|
8
3
|
export { pick, pickDataAttributes };
|
|
9
4
|
export default pick;
|
package/utils/pick.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import e from "lodash
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
|
+
import { pick as e } from "./lodash.js";
|
|
3
3
|
//#region components/common/utils/pick.ts
|
|
4
|
-
|
|
5
|
-
function n(e) {
|
|
4
|
+
function t(e) {
|
|
6
5
|
let t = {};
|
|
7
6
|
return Object.entries(e ?? {}).forEach(([e, n], r, i) => {
|
|
8
|
-
e.startsWith("data-")
|
|
7
|
+
(e.startsWith("data-") || e.startsWith("aria-")) && (t[e] = n);
|
|
9
8
|
}), t;
|
|
10
9
|
}
|
|
10
|
+
var n = e;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { n as default, e as pick, t as pickDataAttributes };
|
|
13
13
|
/* 独立思考,明辨是非 */
|
package/utils/pinyin.js
CHANGED
package/utils/react19Adapter.js
CHANGED
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import { isFunction as e, isObjectLike as t, isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
|
|
3
3
|
import i from "../hooks/use-memo/index.js";
|
|
4
4
|
import { isValidElement as a } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function resizeObserver(elements:
|
|
1
|
+
declare function resizeObserver(elements: HTMLElement[], callback?: (...args: unknown[]) => void): (...args: any[]) => void;
|
|
2
2
|
export { resizeObserver };
|
|
3
3
|
export default resizeObserver;
|
package/utils/resizeObserver.js
CHANGED
package/utils/saveAs.js
CHANGED
package/utils/screenfull.js
CHANGED
package/utils/setCreateRoot.js
CHANGED
package/utils/setDarkTheme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import { isElementByInstanceof as e } from "./is.js";
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as t } from "./constant.js";
|
|
4
4
|
import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constant/ui";
|
package/utils/setDir.js
CHANGED
package/utils/setPrimaryColor.js
CHANGED
package/utils/setTheme.js
CHANGED
package/utils/string.js
CHANGED
package/utils/style.js
CHANGED
package/utils/throttleByRaf.js
CHANGED
package/utils/throttleByRaf2.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
package/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import e, { findNodeBy as t, getChildWithParentBy as n, getItemBy as r, getItemByID as i, getLabelFromDictionaryByValue as a, searchTree as o, default as s } from "@unicom-cloud/utils/tree";
|
|
3
3
|
export { s as default, t as findNodeBy, n as getChildWithParentBy, r as getItemBy, i as getItemByID, a as getLabelFromDictionaryByValue, o as searchTree, e as tree };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/tween.js
CHANGED
package/utils/uuid.js
CHANGED
package/utils/validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
import { PqbValidator as e, Validator as t, ValidatorArray as n, ValidatorBase as r, ValidatorBoolean as i, ValidatorCustom as a, ValidatorNumber as o, ValidatorObject as s, ValidatorSchema as c, ValidatorString as l, ValidatorType as u, validatorLocale as d } from "@unicom-cloud/utils/validate";
|
|
3
3
|
export { e as PqbValidator, t as Validator, n as ValidatorArray, r as ValidatorBase, i as ValidatorBoolean, a as ValidatorCustom, o as ValidatorNumber, s as ValidatorObject, c as ValidatorSchema, l as ValidatorString, u as ValidatorType, d as validatorLocale };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/warning.js
CHANGED
package/version/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-05-08 09:02:53 星期五 */
|
|
2
2
|
//#region components/common/version/index.ts
|
|
3
3
|
var e = {
|
|
4
4
|
name: "潘启宝",
|
|
5
|
-
date: "2026-
|
|
5
|
+
date: "2026-05-08 09:02:52",
|
|
6
6
|
platform: "darwin",
|
|
7
7
|
arch: "arm64",
|
|
8
8
|
hostname: "Mac-mini-2.local",
|
|
@@ -10,18 +10,18 @@ var e = {
|
|
|
10
10
|
cpu: "Apple M4",
|
|
11
11
|
endianness: "LE",
|
|
12
12
|
release: "Darwin25.4.0",
|
|
13
|
-
uptime:
|
|
14
|
-
UUID: "
|
|
15
|
-
mac: "
|
|
13
|
+
uptime: 172749,
|
|
14
|
+
UUID: "27eb10bf-96d0-4c1a-8aac-107ba42f05b4",
|
|
15
|
+
mac: "ea:72:ba:10:b9:ba",
|
|
16
16
|
version: {
|
|
17
|
-
node: "24.
|
|
18
|
-
npm: "11.
|
|
19
|
-
vite: "8.0.
|
|
20
|
-
rolldown: "1.0.0-rc.
|
|
17
|
+
node: "24.15.0",
|
|
18
|
+
npm: "11.12.1",
|
|
19
|
+
vite: "8.0.11",
|
|
20
|
+
rolldown: "1.0.0-rc.18",
|
|
21
21
|
self: "0.0.0",
|
|
22
|
-
react: "19.2.
|
|
22
|
+
react: "19.2.6"
|
|
23
23
|
}
|
|
24
|
-
}, t = "2026-
|
|
24
|
+
}, t = "2026-05-08 09:02:52", n = "1778202172745", r = "0.1.0";
|
|
25
25
|
//#endregion
|
|
26
26
|
export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
|
|
27
27
|
/* 独立思考,明辨是非 */
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface UserInViewProps extends IntersectionObserverInit {
|
|
2
|
-
onChange?: (inView: boolean, entry: IntersectionObserverEntry) => void;
|
|
3
|
-
defaultInView?: boolean;
|
|
4
|
-
unobserverOnEnter?: boolean;
|
|
5
|
-
target?: Element;
|
|
6
|
-
}
|
|
7
|
-
declare function useInView(props: UserInViewProps): {
|
|
8
|
-
inView: boolean | undefined;
|
|
9
|
-
observer: IntersectionObserver | undefined;
|
|
10
|
-
};
|
|
11
|
-
export default useInView;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-23 09:23:27 星期四 */
|
|
2
|
-
import e, { supportIntersectionObserver as t } from "../use-intersection-observer/index.js";
|
|
3
|
-
import { useCallback as n, useEffect as r, useState as i } from "react";
|
|
4
|
-
//#region components/common/hooks/use-in-view/index.ts
|
|
5
|
-
function a(a) {
|
|
6
|
-
let { defaultInView: o, unobserverOnEnter: s = !0, onChange: c, target: l, ...u } = a, [d, f] = i(t ? o : !0), { cor: p, dor: m, observer: h } = e(n(([e], t) => {
|
|
7
|
-
let n = t.thresholds.some((t) => e.intersectionRatio >= t) && e.isIntersecting;
|
|
8
|
-
f(n), c?.(n, e), n && s && t.unobserve(e.target);
|
|
9
|
-
}, [c, s]), u);
|
|
10
|
-
return r(() => (o && s ? m() : l && p(l), m), [
|
|
11
|
-
l,
|
|
12
|
-
o,
|
|
13
|
-
s
|
|
14
|
-
]), {
|
|
15
|
-
inView: d,
|
|
16
|
-
observer: h
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { a as default };
|
|
21
|
-
/* 独立思考,明辨是非 */
|