@unicom-cloud/ui-common 0.1.18 → 0.1.19
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 +86 -171
- package/development/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/index.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.d.ts +2 -1
- package/hooks/create-use-storage-state/index.js +44 -35
- 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-effect-event/index.js +1 -1
- package/hooks/use-event/index.js +1 -1
- package/hooks/use-event-listener/index.d.ts +3 -2
- 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 +25 -25
- 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 +1 -1
- 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 +24 -24
- package/hooks/use-network/index.js +1 -1
- package/hooks/use-online-status/index.js +1 -1
- package/hooks/use-overflow-hidden/index.js +17 -16
- 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.d.ts +6 -2
- 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 +25 -25
- 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/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/index.js +1 -1
- package/index.js +487 -480
- 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 +2 -2
- package/resize-observer/observerUtil.js +1 -1
- package/space/index.js +1 -1
- package/style/animation.less +4 -4
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +1 -1
- package/test.d.ts +0 -0
- package/test.js +5 -0
- package/timer/index.js +1 -1
- package/transition-group/ChildMapping.js +1 -1
- package/transition-group/Transition.d.ts +37 -41
- package/transition-group/Transition.js +96 -102
- package/transition-group/{CSSTransition.d.ts → TransitionCSS.d.ts} +9 -9
- package/transition-group/TransitionCSS.js +73 -0
- package/transition-group/TransitionGroup.d.ts +1 -1
- package/transition-group/TransitionGroup.js +2 -2
- package/transition-group/{ReplaceTransition.d.ts → TransitionReplace.d.ts} +5 -5
- package/transition-group/{ReplaceTransition.js → TransitionReplace.js} +2 -2
- package/transition-group/{SwitchTransition.d.ts → TransitionSwitch.d.ts} +10 -10
- package/transition-group/{SwitchTransition.js → TransitionSwitch.js} +3 -3
- package/transition-group/context.d.ts +2 -0
- package/transition-group/context.js +7 -0
- package/transition-group/index.d.ts +5 -5
- package/transition-group/index.js +6 -6
- 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.d.ts +1 -1
- package/utils/dayjs.js +19 -13
- package/utils/dom.js +15 -15
- 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.d.ts +4 -2
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.d.ts +3 -0
- package/utils/getScrollBarHeight.js +7 -0
- package/utils/getScrollBarSize.d.ts +3 -0
- package/utils/getScrollBarSize.js +10 -0
- package/utils/getScrollBarWidth.d.ts +3 -0
- package/utils/getScrollBarWidth.js +7 -0
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +3 -0
- package/utils/index.js +221 -214
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.d.ts +6 -6
- package/utils/is.js +15 -15
- 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.d.ts +5 -1
- package/utils/omit.js +4 -8
- package/utils/pad.js +1 -1
- package/utils/pick.d.ts +4 -1
- package/utils/pick.js +5 -10
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +21 -21
- 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.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 -14
- package/motion/CSSMotion.d.ts +0 -77
- package/motion/CSSMotion.js +0 -76
- package/motion/CSSMotionList.d.ts +0 -34
- package/motion/CSSMotionList.js +0 -82
- package/motion/context.d.ts +0 -9
- package/motion/context.js +0 -14
- package/motion/hooks/useDomMotionEvents.d.ts +0 -3
- package/motion/hooks/useDomMotionEvents.js +0 -19
- package/motion/hooks/useNextFrame.d.ts +0 -7
- package/motion/hooks/useNextFrame.js +0 -22
- package/motion/hooks/useStatus.d.ts +0 -5
- package/motion/hooks/useStatus.js +0 -92
- package/motion/hooks/useStepQueue.d.ts +0 -8
- package/motion/hooks/useStepQueue.js +0 -39
- package/motion/index.d.ts +0 -9
- package/motion/index.js +0 -9
- package/motion/interface.d.ts +0 -22
- package/motion/interface.js +0 -6
- package/motion/util/diff.d.ts +0 -20
- package/motion/util/diff.js +0 -50
- package/motion/util/motion.d.ts +0 -10
- package/motion/util/motion.js +0 -37
- package/transition-group/CSSTransition.js +0 -73
- package/transition-group/PqbCSSTransition.d.ts +0 -4
- package/transition-group/PqbCSSTransition.js +0 -34
- package/transition-group/TransitionGroupContext.d.ts +0 -3
- package/transition-group/TransitionGroupContext.js +0 -7
package/utils/index.js
CHANGED
|
@@ -1,145 +1,151 @@
|
|
|
1
|
-
/* 潘启宝 2026-03
|
|
1
|
+
/* 潘启宝 2026-04-03 14:07:44 星期五 */
|
|
2
2
|
import { __exportAll as ee } from "../.virtual/_rolldown/runtime.js";
|
|
3
|
-
import { is32Bit as te, isAllChinese as ne, isArguments as re, isArray as e, isArrayAndNotEmpty as t, isArrayBuffer as n, isArrayEmpty as r, isArrayLike as i, isArrayLikeObject as a, isAscii as o, 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, isDayjs as _, isElement as v, isElementByInstanceof as y, isEmail as b, isEmpty as x, isEmptyArray as S, isEmptyObject as C, isEmptyReactNode as w, isEmptyValue as T, isEqual as E, isEqualWith as D, isError as O, isEventTarget as k, isExist as A, isFile as j, isFinite as M, isFullWidth as N, isFunction as P, isHSL as F, isHalfWidth as I, isHash as L, isHexColor as R, isIMEI as z, isIP as B, isIPRange as V, isIdentityCard as H, isInteger as U, isJSON as W, isJSON_String as G, isJWT as K, isLength as q, isMACAddress as J, isMD5 as Y, isMap as X, isMatch as ie, isMatchWith as ae, isMimeType as oe, isMobilePhone as se, isMobilePhoneLocales as ce, isNaN as le, isNative as ue, isNil as de, isNull as fe, isNullOrUndefined as pe, isNumber as me, isNumberOrString as he, isObject as ge, isObjectLike as _e, isPlainObject as ve, isPort as ye, isPromise as be, isReact18 as xe, isReact19 as Se, isReactClassComponent as Ce, isReactComponent as we, isReactComponentAndNotFragment as Te, isReadableStream as Ee, isRegExp as De, isRgbColor as Oe, isSafeInteger as ke, isScrollElement as Ae, isSemVer as je, isServerRendering as Me, isSet as Ne, isSlug as Pe, isSparseArray as Fe, isString as Ie, isStringOrNumber as Le, isStrongPassword as Re, isSymbol as ze, isTypedArray as Be, isURL as Ve, isUUID as He, isUndefined as Ue,
|
|
4
|
-
import { canUseDOM as
|
|
5
|
-
import { composeRef as
|
|
6
|
-
import
|
|
7
|
-
import { CSS_VARIABLE_ELEMENT as
|
|
8
|
-
import { assign as
|
|
9
|
-
import { callbackOriginRef as
|
|
10
|
-
import { callOrReturn as
|
|
11
|
-
import { caseName as
|
|
12
|
-
import { className as
|
|
3
|
+
import { is32Bit as te, isAllChinese as ne, isArguments as re, isArray as e, isArrayAndNotEmpty as t, isArrayBuffer as n, isArrayEmpty as r, isArrayLike as i, isArrayLikeObject as a, isAscii as o, 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, isDayjs as _, isElement as v, isElementByInstanceof as y, isEmail as b, isEmpty as x, isEmptyArray as S, isEmptyObject as C, isEmptyReactNode as w, isEmptyValue as T, isEqual as E, isEqualWith as D, isError as O, isEventTarget as k, isExist as A, isFile as j, isFinite as M, isFullWidth as N, isFunction as P, isHSL as F, isHalfWidth as I, isHash as L, isHexColor as R, isIMEI as z, isIP as B, isIPRange as V, isIdentityCard as H, isInteger as U, isJSON as W, isJSON_String as G, isJWT as K, isLength as q, isMACAddress as J, isMD5 as Y, isMap as X, isMatch as ie, isMatchWith as ae, isMimeType as oe, isMobilePhone as se, isMobilePhoneLocales as ce, isNaN as le, isNative as ue, isNil as de, isNull as fe, isNullOrUndefined as pe, isNumber as me, isNumberOrString as he, isObject as ge, isObjectLike as _e, isPlainObject as ve, isPort as ye, isPromise as be, isReact18 as xe, isReact19 as Se, isReactClassComponent as Ce, isReactComponent as we, isReactComponentAndNotFragment as Te, isReadableStream as Ee, isRegExp as De, isRgbColor as Oe, isSafeInteger as ke, isScrollElement as Ae, isSemVer as je, isServerRendering as Me, isSet as Ne, isSlug as Pe, isSparseArray as Fe, isString as Ie, isStringOrNumber as Le, isStrongPassword as Re, isSymbol as ze, isTypedArray as Be, isURL as Ve, isUUID as He, isUndefined as Ue, isUndefinedOrNull as We, isVariableWidth as Ge, isWeakMap as Ke, isWeakSet as qe, isWindow as Je } from "./is.js";
|
|
4
|
+
import { canUseDOM as Ye, contains as Xe, forceReflow as Z, getBodyContainer as Ze, getElementCoordinates as Qe, getScrollElements as $e, off as et, on as tt, parentContainsChildren as nt } from "./dom.js";
|
|
5
|
+
import { composeRef as rt, fillRef as it, getNodeRef as at, getReactElementRef as ot, supportNodeRef as st, supportRef as ct, useComposeRef as lt } from "./ref.js";
|
|
6
|
+
import ut from "./findRootElement.js";
|
|
7
|
+
import { CSS_VARIABLE_ELEMENT as dt, NOOP as ft, UI_PC_KEY as pt, UI_PC_THEME_DARK_CLASS_NAME as mt } from "./constant.js";
|
|
8
|
+
import { assign as ht, assignIn as gt, at as _t, camelCase as vt, capitalize as yt, castArray as bt, chain as xt, chunk as St, clone as Ct, cloneDeep as wt, cloneDeepWith as Tt, cloneWith as Et, compact as Dt, curry as Ot, debounce as kt, defaultTo as At, defaults as jt, defaultsDeep as Mt, difference as Nt, escape as Pt, findKey as Ft, flattenDeep as It, flow as Lt, get as Rt, groupBy as zt, has as Bt, intersection as Vt, invert as Q, invertBy as Ht, kebabCase as Ut, mean as Wt, memoize as Gt, merge as Kt, mergeWith as qt, noop as Jt, orderBy as Yt, partition as Xt, pullAll as Zt, result as Qt, sample as $t, sampleSize as en, set as tn, setWith as nn, shuffle as rn, snakeCase as an, sortBy as on, startCase as sn, throttle as cn, toPath as ln, truncate as un, union as dn, uniq as fn, uniqueId as pn, unset as mn, update as hn, updateWith as gn, upperCase as _n, upperFirst as vn, without as yn, xor as bn, zip as xn } from "./lodash.js";
|
|
9
|
+
import { callbackOriginRef as Sn } from "./callbackOriginRef.js";
|
|
10
|
+
import { callOrReturn as Cn } from "./callOrReturn.js";
|
|
11
|
+
import { caseName as wn } from "./caseName.js";
|
|
12
|
+
import { className as Tn, cs as En } from "./className.js";
|
|
13
13
|
import { clipboardCopy as $ } from "./copy.js";
|
|
14
|
-
import { convertTime as
|
|
15
|
-
import { dayjs as
|
|
16
|
-
import { Emitter as
|
|
17
|
-
import { fileRead as
|
|
18
|
-
import { fileToDataURL as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import qn from "./
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import Zn
|
|
32
|
-
import
|
|
33
|
-
import er from "./
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import lr from "./
|
|
41
|
-
import ur from "./
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import {
|
|
46
|
-
import vr from "./
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import {
|
|
14
|
+
import { convertTime as Dn, convertToDurationBasedOnTimeUnits as On, dateFormat as kn, dayjsFormat as An } from "./date.js";
|
|
15
|
+
import { dayjs as jn } from "./dayjs.js";
|
|
16
|
+
import { Emitter as Mn } from "./emitter.js";
|
|
17
|
+
import { fileRead as Nn } from "./fileRead.js";
|
|
18
|
+
import { fileToDataURL as Pn } from "./fileToDataURL.js";
|
|
19
|
+
import Fn from "./fillNBSP.js";
|
|
20
|
+
import In from "./getHighlightText.js";
|
|
21
|
+
import Ln from "./getHotkeyHandler.js";
|
|
22
|
+
import Rn from "./getScrollBarSize.js";
|
|
23
|
+
import zn from "./getScrollBarHeight.js";
|
|
24
|
+
import Bn from "./getScrollBarWidth.js";
|
|
25
|
+
import Vn from "./getStringLength.js";
|
|
26
|
+
import Hn from "./include.js";
|
|
27
|
+
import Un from "./intersectionObserver.js";
|
|
28
|
+
import { div as Wn, math as Gn, minus as Kn, plus as qn, times as Jn } from "./math.js";
|
|
29
|
+
import Yn from "./mergedToString.js";
|
|
30
|
+
import Xn from "./mergeProps.js";
|
|
31
|
+
import Zn from "./mutationObserver.js";
|
|
32
|
+
import Qn from "./omit.js";
|
|
33
|
+
import { padEnd as $n, padStart as er } from "./pad.js";
|
|
34
|
+
import tr, { pickDataAttributes as nr } from "./pick.js";
|
|
35
|
+
import { pinyin as rr } from "./pinyin.js";
|
|
36
|
+
import ir from "./resizeObserver.js";
|
|
37
|
+
import { saveAs as ar } from "./saveAs.js";
|
|
38
|
+
import { screenfull as or } from "./screenfull.js";
|
|
39
|
+
import sr from "./scrollIntoViewIfNeeded.js";
|
|
40
|
+
import cr, { render as lr } from "./setCreateRoot.js";
|
|
41
|
+
import ur, { removeDarkTheme as dr } from "./setDarkTheme.js";
|
|
42
|
+
import fr from "./setDir.js";
|
|
43
|
+
import pr from "./setPrimaryColor.js";
|
|
44
|
+
import mr from "./setTheme.js";
|
|
45
|
+
import { HYPHEN as hr, replaceEmptyWithHyphen as gr } from "./string.js";
|
|
46
|
+
import { fixedWidth as _r, getStyle as vr, setTransformStyle as yr } from "./style.js";
|
|
47
|
+
import br from "./throttleByRaf.js";
|
|
48
|
+
import { tinycolor as xr } from "./tinycolor.js";
|
|
49
|
+
import Sr from "./toArray.js";
|
|
50
|
+
import { findNodeBy as Cr, getChildWithParentBy as wr, getItemBy as Tr, getItemByID as Er, getLabelFromDictionaryByValue as Dr, searchTree as Or, tree as kr } from "./tree.js";
|
|
51
|
+
import { Tween as Ar, easing as jr } from "./tween.js";
|
|
52
|
+
import { uuid as Mr, uuidv4 as Nr } from "./uuid.js";
|
|
53
|
+
import { PqbValidator as Pr, Validator as Fr, ValidatorArray as Ir, ValidatorBase as Lr, ValidatorBoolean as Rr, ValidatorCustom as zr, ValidatorNumber as Br, ValidatorObject as Vr, ValidatorSchema as Hr, ValidatorString as Ur, ValidatorType as Wr, validatorLocale as Gr } from "./validate.js";
|
|
54
|
+
import Kr from "./warning.js";
|
|
55
|
+
import { keyboardCode as qr } from "./keyboardCode.js";
|
|
53
56
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
54
57
|
//#region components/common/utils/index.ts
|
|
55
|
-
var
|
|
56
|
-
CSS_VARIABLE_ELEMENT: () =>
|
|
57
|
-
Emitter: () =>
|
|
58
|
-
HYPHEN: () =>
|
|
59
|
-
NOOP: () =>
|
|
60
|
-
PqbValidator: () =>
|
|
61
|
-
Tween: () =>
|
|
62
|
-
UI_PC_KEY: () =>
|
|
63
|
-
UI_PC_THEME_DARK_CLASS_NAME: () =>
|
|
64
|
-
Validator: () =>
|
|
65
|
-
ValidatorArray: () =>
|
|
66
|
-
ValidatorBase: () =>
|
|
67
|
-
ValidatorBoolean: () =>
|
|
68
|
-
ValidatorCustom: () =>
|
|
69
|
-
ValidatorNumber: () =>
|
|
70
|
-
ValidatorObject: () =>
|
|
71
|
-
ValidatorSchema: () =>
|
|
72
|
-
ValidatorString: () =>
|
|
73
|
-
ValidatorType: () =>
|
|
74
|
-
assign: () =>
|
|
75
|
-
assignIn: () =>
|
|
76
|
-
at: () =>
|
|
77
|
-
callOrReturn: () =>
|
|
78
|
-
callbackOriginRef: () =>
|
|
79
|
-
camelCase: () =>
|
|
80
|
-
canUseDOM: () =>
|
|
81
|
-
capitalize: () =>
|
|
82
|
-
caseName: () =>
|
|
83
|
-
castArray: () =>
|
|
84
|
-
chain: () =>
|
|
85
|
-
chunk: () =>
|
|
86
|
-
className: () =>
|
|
58
|
+
var Jr = /* @__PURE__ */ ee({
|
|
59
|
+
CSS_VARIABLE_ELEMENT: () => dt,
|
|
60
|
+
Emitter: () => Mn,
|
|
61
|
+
HYPHEN: () => hr,
|
|
62
|
+
NOOP: () => ft,
|
|
63
|
+
PqbValidator: () => Pr,
|
|
64
|
+
Tween: () => Ar,
|
|
65
|
+
UI_PC_KEY: () => pt,
|
|
66
|
+
UI_PC_THEME_DARK_CLASS_NAME: () => mt,
|
|
67
|
+
Validator: () => Fr,
|
|
68
|
+
ValidatorArray: () => Ir,
|
|
69
|
+
ValidatorBase: () => Lr,
|
|
70
|
+
ValidatorBoolean: () => Rr,
|
|
71
|
+
ValidatorCustom: () => zr,
|
|
72
|
+
ValidatorNumber: () => Br,
|
|
73
|
+
ValidatorObject: () => Vr,
|
|
74
|
+
ValidatorSchema: () => Hr,
|
|
75
|
+
ValidatorString: () => Ur,
|
|
76
|
+
ValidatorType: () => Wr,
|
|
77
|
+
assign: () => ht,
|
|
78
|
+
assignIn: () => gt,
|
|
79
|
+
at: () => _t,
|
|
80
|
+
callOrReturn: () => Cn,
|
|
81
|
+
callbackOriginRef: () => Sn,
|
|
82
|
+
camelCase: () => vt,
|
|
83
|
+
canUseDOM: () => Ye,
|
|
84
|
+
capitalize: () => yt,
|
|
85
|
+
caseName: () => wn,
|
|
86
|
+
castArray: () => bt,
|
|
87
|
+
chain: () => xt,
|
|
88
|
+
chunk: () => St,
|
|
89
|
+
className: () => Tn,
|
|
87
90
|
clipboardCopy: () => $,
|
|
88
|
-
clone: () =>
|
|
89
|
-
cloneDeep: () =>
|
|
90
|
-
cloneDeepWith: () =>
|
|
91
|
-
cloneWith: () =>
|
|
92
|
-
compact: () =>
|
|
93
|
-
composeRef: () =>
|
|
94
|
-
contains: () =>
|
|
95
|
-
convertTime: () =>
|
|
96
|
-
convertToDurationBasedOnTimeUnits: () =>
|
|
91
|
+
clone: () => Ct,
|
|
92
|
+
cloneDeep: () => wt,
|
|
93
|
+
cloneDeepWith: () => Tt,
|
|
94
|
+
cloneWith: () => Et,
|
|
95
|
+
compact: () => Dt,
|
|
96
|
+
composeRef: () => rt,
|
|
97
|
+
contains: () => Xe,
|
|
98
|
+
convertTime: () => Dn,
|
|
99
|
+
convertToDurationBasedOnTimeUnits: () => On,
|
|
97
100
|
copy: () => $,
|
|
98
|
-
cs: () =>
|
|
99
|
-
curry: () =>
|
|
100
|
-
dateFormat: () =>
|
|
101
|
-
dayjs: () =>
|
|
102
|
-
dayjsFormat: () =>
|
|
103
|
-
debounce: () =>
|
|
104
|
-
defaultTo: () =>
|
|
105
|
-
defaults: () =>
|
|
106
|
-
defaultsDeep: () =>
|
|
107
|
-
difference: () =>
|
|
108
|
-
div: () =>
|
|
109
|
-
easing: () =>
|
|
110
|
-
escape: () =>
|
|
111
|
-
fileRead: () =>
|
|
112
|
-
fileToDataURL: () =>
|
|
113
|
-
fillNBSP: () =>
|
|
114
|
-
fillRef: () =>
|
|
115
|
-
findKey: () =>
|
|
116
|
-
findNodeBy: () =>
|
|
117
|
-
findRootElement: () =>
|
|
118
|
-
fixedWidth: () =>
|
|
119
|
-
flattenDeep: () =>
|
|
120
|
-
flow: () =>
|
|
101
|
+
cs: () => En,
|
|
102
|
+
curry: () => Ot,
|
|
103
|
+
dateFormat: () => kn,
|
|
104
|
+
dayjs: () => jn,
|
|
105
|
+
dayjsFormat: () => An,
|
|
106
|
+
debounce: () => kt,
|
|
107
|
+
defaultTo: () => At,
|
|
108
|
+
defaults: () => jt,
|
|
109
|
+
defaultsDeep: () => Mt,
|
|
110
|
+
difference: () => Nt,
|
|
111
|
+
div: () => Wn,
|
|
112
|
+
easing: () => jr,
|
|
113
|
+
escape: () => Pt,
|
|
114
|
+
fileRead: () => Nn,
|
|
115
|
+
fileToDataURL: () => Pn,
|
|
116
|
+
fillNBSP: () => Fn,
|
|
117
|
+
fillRef: () => it,
|
|
118
|
+
findKey: () => Ft,
|
|
119
|
+
findNodeBy: () => Cr,
|
|
120
|
+
findRootElement: () => ut,
|
|
121
|
+
fixedWidth: () => _r,
|
|
122
|
+
flattenDeep: () => It,
|
|
123
|
+
flow: () => Lt,
|
|
121
124
|
forceReflow: () => Z,
|
|
122
|
-
get: () =>
|
|
123
|
-
getBodyContainer: () =>
|
|
124
|
-
getChildWithParentBy: () =>
|
|
125
|
-
getElementCoordinates: () =>
|
|
126
|
-
getHighlightText: () =>
|
|
127
|
-
getHotkeyHandler: () =>
|
|
128
|
-
getItemBy: () =>
|
|
129
|
-
getItemByID: () =>
|
|
130
|
-
getLabelFromDictionaryByValue: () =>
|
|
131
|
-
getNodeRef: () =>
|
|
132
|
-
getReactElementRef: () =>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
125
|
+
get: () => Rt,
|
|
126
|
+
getBodyContainer: () => Ze,
|
|
127
|
+
getChildWithParentBy: () => wr,
|
|
128
|
+
getElementCoordinates: () => Qe,
|
|
129
|
+
getHighlightText: () => In,
|
|
130
|
+
getHotkeyHandler: () => Ln,
|
|
131
|
+
getItemBy: () => Tr,
|
|
132
|
+
getItemByID: () => Er,
|
|
133
|
+
getLabelFromDictionaryByValue: () => Dr,
|
|
134
|
+
getNodeRef: () => at,
|
|
135
|
+
getReactElementRef: () => ot,
|
|
136
|
+
getScrollBarHeight: () => zn,
|
|
137
|
+
getScrollBarSize: () => Rn,
|
|
138
|
+
getScrollBarWidth: () => Bn,
|
|
139
|
+
getScrollElements: () => $e,
|
|
140
|
+
getStringLength: () => Vn,
|
|
141
|
+
getStyle: () => vr,
|
|
142
|
+
groupBy: () => zt,
|
|
143
|
+
has: () => Bt,
|
|
144
|
+
include: () => Hn,
|
|
145
|
+
intersection: () => Vt,
|
|
146
|
+
intersectionObserver: () => Un,
|
|
147
|
+
invert: () => Q,
|
|
148
|
+
invertBy: () => Ht,
|
|
143
149
|
is32Bit: () => te,
|
|
144
150
|
isAllChinese: () => ne,
|
|
145
151
|
isArguments: () => re,
|
|
@@ -234,86 +240,87 @@ var Wr = /* @__PURE__ */ ee({
|
|
|
234
240
|
isURL: () => Ve,
|
|
235
241
|
isUUID: () => He,
|
|
236
242
|
isUndefined: () => Ue,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
243
|
+
isUndefinedOrNull: () => We,
|
|
244
|
+
isVariableWidth: () => Ge,
|
|
245
|
+
isWeakMap: () => Ke,
|
|
246
|
+
isWeakSet: () => qe,
|
|
247
|
+
isWindow: () => Je,
|
|
248
|
+
kebabCase: () => Ut,
|
|
249
|
+
keyboardCode: () => qr,
|
|
250
|
+
math: () => Gn,
|
|
251
|
+
mean: () => Wt,
|
|
252
|
+
memoize: () => Gt,
|
|
253
|
+
merge: () => Kt,
|
|
254
|
+
mergeProps: () => Xn,
|
|
255
|
+
mergeWith: () => qt,
|
|
256
|
+
mergedToString: () => Yn,
|
|
257
|
+
minus: () => Kn,
|
|
258
|
+
mutationObserver: () => Zn,
|
|
259
|
+
noop: () => Jt,
|
|
260
|
+
off: () => et,
|
|
261
|
+
omit: () => Qn,
|
|
262
|
+
on: () => tt,
|
|
263
|
+
orderBy: () => Yt,
|
|
264
|
+
padEnd: () => $n,
|
|
265
|
+
padStart: () => er,
|
|
266
|
+
parentContainsChildren: () => nt,
|
|
267
|
+
partition: () => Xt,
|
|
268
|
+
pick: () => tr,
|
|
269
|
+
pickDataAttributes: () => nr,
|
|
270
|
+
pinyin: () => rr,
|
|
271
|
+
plus: () => qn,
|
|
272
|
+
pullAll: () => Zt,
|
|
266
273
|
reflow: () => Z,
|
|
267
|
-
removeDarkTheme: () =>
|
|
268
|
-
render: () =>
|
|
269
|
-
replaceEmptyWithHyphen: () =>
|
|
270
|
-
resizeObserver: () =>
|
|
271
|
-
result: () =>
|
|
272
|
-
sample: () =>
|
|
273
|
-
sampleSize: () =>
|
|
274
|
-
saveAs: () =>
|
|
275
|
-
screenfull: () =>
|
|
276
|
-
scrollIntoViewIfNeeded: () =>
|
|
277
|
-
searchTree: () =>
|
|
278
|
-
set: () =>
|
|
279
|
-
setCreateRoot: () =>
|
|
280
|
-
setDarkTheme: () =>
|
|
281
|
-
setDir: () =>
|
|
282
|
-
setPrimaryColor: () =>
|
|
283
|
-
setTheme: () =>
|
|
284
|
-
setTransformStyle: () =>
|
|
285
|
-
setWith: () =>
|
|
286
|
-
shuffle: () =>
|
|
287
|
-
snakeCase: () =>
|
|
288
|
-
sortBy: () =>
|
|
289
|
-
startCase: () =>
|
|
290
|
-
supportNodeRef: () =>
|
|
291
|
-
supportRef: () =>
|
|
292
|
-
throttle: () =>
|
|
293
|
-
throttleByRaf: () =>
|
|
294
|
-
times: () =>
|
|
295
|
-
tinycolor: () =>
|
|
296
|
-
toArray: () =>
|
|
297
|
-
toPath: () =>
|
|
298
|
-
tree: () =>
|
|
299
|
-
truncate: () =>
|
|
300
|
-
union: () =>
|
|
301
|
-
uniq: () =>
|
|
302
|
-
uniqueId: () =>
|
|
303
|
-
unset: () =>
|
|
304
|
-
update: () =>
|
|
305
|
-
updateWith: () =>
|
|
306
|
-
upperCase: () =>
|
|
307
|
-
upperFirst: () =>
|
|
308
|
-
useComposeRef: () =>
|
|
309
|
-
uuid: () =>
|
|
310
|
-
uuidv4: () =>
|
|
311
|
-
validatorLocale: () =>
|
|
312
|
-
warning: () =>
|
|
313
|
-
without: () =>
|
|
314
|
-
xor: () =>
|
|
315
|
-
zip: () =>
|
|
274
|
+
removeDarkTheme: () => dr,
|
|
275
|
+
render: () => lr,
|
|
276
|
+
replaceEmptyWithHyphen: () => gr,
|
|
277
|
+
resizeObserver: () => ir,
|
|
278
|
+
result: () => Qt,
|
|
279
|
+
sample: () => $t,
|
|
280
|
+
sampleSize: () => en,
|
|
281
|
+
saveAs: () => ar,
|
|
282
|
+
screenfull: () => or,
|
|
283
|
+
scrollIntoViewIfNeeded: () => sr,
|
|
284
|
+
searchTree: () => Or,
|
|
285
|
+
set: () => tn,
|
|
286
|
+
setCreateRoot: () => cr,
|
|
287
|
+
setDarkTheme: () => ur,
|
|
288
|
+
setDir: () => fr,
|
|
289
|
+
setPrimaryColor: () => pr,
|
|
290
|
+
setTheme: () => mr,
|
|
291
|
+
setTransformStyle: () => yr,
|
|
292
|
+
setWith: () => nn,
|
|
293
|
+
shuffle: () => rn,
|
|
294
|
+
snakeCase: () => an,
|
|
295
|
+
sortBy: () => on,
|
|
296
|
+
startCase: () => sn,
|
|
297
|
+
supportNodeRef: () => st,
|
|
298
|
+
supportRef: () => ct,
|
|
299
|
+
throttle: () => cn,
|
|
300
|
+
throttleByRaf: () => br,
|
|
301
|
+
times: () => Jn,
|
|
302
|
+
tinycolor: () => xr,
|
|
303
|
+
toArray: () => Sr,
|
|
304
|
+
toPath: () => ln,
|
|
305
|
+
tree: () => kr,
|
|
306
|
+
truncate: () => un,
|
|
307
|
+
union: () => dn,
|
|
308
|
+
uniq: () => fn,
|
|
309
|
+
uniqueId: () => pn,
|
|
310
|
+
unset: () => mn,
|
|
311
|
+
update: () => hn,
|
|
312
|
+
updateWith: () => gn,
|
|
313
|
+
upperCase: () => _n,
|
|
314
|
+
upperFirst: () => vn,
|
|
315
|
+
useComposeRef: () => lt,
|
|
316
|
+
uuid: () => Mr,
|
|
317
|
+
uuidv4: () => Nr,
|
|
318
|
+
validatorLocale: () => Gr,
|
|
319
|
+
warning: () => Kr,
|
|
320
|
+
without: () => yn,
|
|
321
|
+
xor: () => bn,
|
|
322
|
+
zip: () => xn
|
|
316
323
|
});
|
|
317
324
|
//#endregion
|
|
318
|
-
export {
|
|
325
|
+
export { dt as CSS_VARIABLE_ELEMENT, Mn as Emitter, hr as HYPHEN, ft as NOOP, Pr as PqbValidator, Ar as Tween, pt as UI_PC_KEY, mt as UI_PC_THEME_DARK_CLASS_NAME, Fr as Validator, Ir as ValidatorArray, Lr as ValidatorBase, Rr as ValidatorBoolean, zr as ValidatorCustom, Br as ValidatorNumber, Vr as ValidatorObject, Hr as ValidatorSchema, Ur as ValidatorString, Wr as ValidatorType, ht as assign, gt as assignIn, _t as at, Cn as callOrReturn, Sn as callbackOriginRef, vt as camelCase, Ye as canUseDOM, yt as capitalize, wn as caseName, bt as castArray, xt as chain, St as chunk, Tn as className, $ as clipboardCopy, $ as copy, Ct as clone, wt as cloneDeep, Tt as cloneDeepWith, Et as cloneWith, Dt as compact, rt as composeRef, Xe as contains, Dn as convertTime, On as convertToDurationBasedOnTimeUnits, En as cs, Ot as curry, kn as dateFormat, jn as dayjs, An as dayjsFormat, kt as debounce, At as defaultTo, jt as defaults, Mt as defaultsDeep, Nt as difference, Wn as div, jr as easing, Pt as escape, Nn as fileRead, Pn as fileToDataURL, Fn as fillNBSP, it as fillRef, Ft as findKey, Cr as findNodeBy, ut as findRootElement, _r as fixedWidth, It as flattenDeep, Lt as flow, Z as forceReflow, Z as reflow, Rt as get, Ze as getBodyContainer, wr as getChildWithParentBy, Qe as getElementCoordinates, In as getHighlightText, Ln as getHotkeyHandler, Tr as getItemBy, Er as getItemByID, Dr as getLabelFromDictionaryByValue, at as getNodeRef, ot as getReactElementRef, zn as getScrollBarHeight, Rn as getScrollBarSize, Bn as getScrollBarWidth, $e as getScrollElements, Vn as getStringLength, vr as getStyle, zt as groupBy, Bt as has, Hn as include, Vt as intersection, Un as intersectionObserver, Q as invert, Ht as invertBy, te as is32Bit, ne as isAllChinese, re as isArguments, e as isArray, t as isArrayAndNotEmpty, n as isArrayBuffer, r as isArrayEmpty, i as isArrayLike, a as isArrayLikeObject, o 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, _ as isDayjs, v as isElement, y as isElementByInstanceof, b as isEmail, x as isEmpty, S as isEmptyArray, C as isEmptyObject, w as isEmptyReactNode, T as isEmptyValue, E as isEqual, D as isEqualWith, O as isError, k as isEventTarget, A as isExist, j as isFile, M as isFinite, N as isFullWidth, P as isFunction, F as isHSL, I as isHalfWidth, L as isHash, R as isHexColor, z as isIMEI, B as isIP, V as isIPRange, H as isIdentityCard, U as isInteger, W as isJSON, G as isJSON_String, K as isJWT, q as isLength, J as isMACAddress, Y as isMD5, X as isMap, ie as isMatch, ae as isMatchWith, oe as isMimeType, se as isMobilePhone, ce as isMobilePhoneLocales, le as isNaN, ue as isNative, de as isNil, fe as isNull, pe as isNullOrUndefined, me as isNumber, he as isNumberOrString, ge as isObject, _e as isObjectLike, ve as isPlainObject, ye as isPort, be as isPromise, xe as isReact18, Se as isReact19, Ce as isReactClassComponent, we as isReactComponent, Te as isReactComponentAndNotFragment, Ee as isReadableStream, De as isRegExp, Oe as isRgbColor, ke as isSafeInteger, Ae as isScrollElement, je as isSemVer, Me as isServerRendering, Ne as isSet, Pe as isSlug, Fe as isSparseArray, Ie as isString, Le as isStringOrNumber, Re as isStrongPassword, ze as isSymbol, Be as isTypedArray, Ve as isURL, He as isUUID, Ue as isUndefined, We as isUndefinedOrNull, Ge as isVariableWidth, Ke as isWeakMap, qe as isWeakSet, Je as isWindow, Ut as kebabCase, qr as keyboardCode, Gn as math, Wt as mean, Gt as memoize, Kt as merge, Xn as mergeProps, qt as mergeWith, Yn as mergedToString, Kn as minus, Zn as mutationObserver, Jt as noop, et as off, Qn as omit, tt as on, Yt as orderBy, $n as padEnd, er as padStart, nt as parentContainsChildren, Xt as partition, tr as pick, nr as pickDataAttributes, rr as pinyin, qn as plus, Zt as pullAll, dr as removeDarkTheme, lr as render, gr as replaceEmptyWithHyphen, ir as resizeObserver, Qt as result, $t as sample, en as sampleSize, ar as saveAs, or as screenfull, sr as scrollIntoViewIfNeeded, Or as searchTree, tn as set, cr as setCreateRoot, ur as setDarkTheme, fr as setDir, pr as setPrimaryColor, mr as setTheme, yr as setTransformStyle, nn as setWith, rn as shuffle, an as snakeCase, on as sortBy, sn as startCase, st as supportNodeRef, ct as supportRef, cn as throttle, br as throttleByRaf, Jn as times, xr as tinycolor, Sr as toArray, ln as toPath, kr as tree, un as truncate, dn as union, fn as uniq, pn as uniqueId, mn as unset, hn as update, gn as updateWith, _n as upperCase, vn as upperFirst, lt as useComposeRef, Jr as utils_exports, Mr as uuid, Nr as uuidv4, Gr as validatorLocale, Kr as warning, yn as without, bn as xor, xn as zip };
|
|
319
326
|
/* 独立思考,明辨是非 */
|
package/utils/is.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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, 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, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, 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, 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, isPromise, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, 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;
|
|
5
5
|
declare const isReact18: boolean, isReact19: boolean;
|
|
6
6
|
export declare function isEmptyReactNode(element: any, trim?: boolean): boolean;
|
|
7
7
|
export declare function isReactComponentAndNotFragment(element: React.ReactElement): element is never;
|
|
8
|
-
export declare function isReactComponent(element
|
|
9
|
-
export declare function isReactClassComponent(element
|
|
10
|
-
export declare function isElementByInstanceof(element
|
|
11
|
-
export declare function isScrollElement(element
|
|
12
|
-
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, 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, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
|
|
8
|
+
export declare function isReactComponent(element?: React.ReactElement): boolean;
|
|
9
|
+
export declare function isReactClassComponent(element?: React.ReactElement): boolean;
|
|
10
|
+
export declare function isElementByInstanceof(element?: Element): boolean;
|
|
11
|
+
export declare function isScrollElement(element?: HTMLElement): boolean;
|
|
12
|
+
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, 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, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringOrNumber, isStrongPassword, isSymbol, isTypedArray, isUndefined, isUndefinedOrNull, isURL, isUUID, isVariableWidth, isWeakMap, isWeakSet, isWindow, };
|
package/utils/is.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/* 潘启宝 2026-03
|
|
1
|
+
/* 潘启宝 2026-04-03 14:07:44 星期五 */
|
|
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 ee, isArrayAndNotEmpty as te, isArrayBuffer as ne, isArrayEmpty as re, isArrayLike as ie, isArrayLikeObject as o, isAscii as s, isAsyncFunction as c, isBase64 as l, isBigInt as u, isBlob as d, isBoolean as f, isBuffer as p, isChinese as m, isColorValue as h, isDataURI as g, isDate as _, isElement as v, isEmail as y, isEmpty as b, isEmptyArray as x, isEmptyObject as S, isEmptyValue as C, isEqual as w, isEqualWith as T, isError as E, isEventTarget as D, isExist 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 Y, isMatchWith as ae, isMimeType as oe, isMobilePhone as se, isMobilePhoneLocales as ce, isNaN as le, isNative as ue, isNil as de, isNull as fe, isNullOrUndefined as X, isNumber as pe, isNumberOrString as me, isObject as he, isObjectLike as ge, isPlainObject as _e, isPort as ve, isPromise as ye, isReadableStream as be, isRegExp as xe, isRgbColor as Se, isSafeInteger as Ce, isSemVer as we, isSet as Te, isSlug as Ee, isSparseArray as De, isString as Z, isStringOrNumber as Oe, isStrongPassword as ke, isSymbol as Ae, isTypedArray as je, isURL as Me, isUUID as Ne, isUndefined 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 ee, isArrayAndNotEmpty as te, isArrayBuffer as ne, isArrayEmpty as re, isArrayLike as ie, isArrayLikeObject as o, isAscii as s, isAsyncFunction as c, isBase64 as l, isBigInt as u, isBlob as d, isBoolean as f, isBuffer as p, isChinese as m, isColorValue as h, isDataURI as g, isDate as _, isElement as v, isEmail as y, isEmpty as b, isEmptyArray as x, isEmptyObject as S, isEmptyValue as C, isEqual as w, isEqualWith as T, isError as E, isEventTarget as D, isExist 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 Y, isMatchWith as ae, isMimeType as oe, isMobilePhone as se, isMobilePhoneLocales as ce, isNaN as le, isNative as ue, isNil as de, isNull as fe, isNullOrUndefined as X, isNumber as pe, isNumberOrString as me, isObject as he, isObjectLike as ge, isPlainObject as _e, isPort as ve, isPromise as ye, isReadableStream as be, isRegExp as xe, isRgbColor as Se, isSafeInteger as Ce, isSemVer as we, isSet as Te, isSlug as Ee, isSparseArray as De, isString as Z, isStringOrNumber as Oe, isStrongPassword as ke, isSymbol as Ae, isTypedArray as je, isURL as Me, isUUID as Ne, isUndefined as Pe, isUndefinedOrNull as Fe, isVariableWidth as Ie, isWeakMap as Le, isWeakSet as Re, isWindow as ze } from "@unicom-cloud/utils/is";
|
|
5
|
+
import { isDayjs as Be } from "dayjs";
|
|
6
|
+
import Ve from "react-dom";
|
|
7
|
+
import { isFragment as He } from "react-is";
|
|
8
8
|
//#region components/common/utils/is.ts
|
|
9
|
-
var
|
|
10
|
-
let i = (e.version ||
|
|
9
|
+
var Q = !n, [Ue, We] = [18, 19].map((t, n, r) => {
|
|
10
|
+
let i = (e.version || Ve.version || "").match(/\d+/).toString();
|
|
11
11
|
return t <= parseFloat(i);
|
|
12
12
|
});
|
|
13
|
-
function
|
|
13
|
+
function Ge(e, t) {
|
|
14
14
|
return !!(X(e) || e === !1 || Z(e) && (t ? e.trim() === "" : e === "") || x(e));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return t(e) && !
|
|
16
|
+
function Ke(e) {
|
|
17
|
+
return t(e) && !He(e);
|
|
18
18
|
}
|
|
19
19
|
function $(e) {
|
|
20
20
|
return t(e) && M(e.type);
|
|
21
21
|
}
|
|
22
|
-
function Ke(e) {
|
|
23
|
-
return $(e) && !!e.type.prototype?.isReactComponent;
|
|
24
|
-
}
|
|
25
22
|
function qe(e) {
|
|
26
|
-
return e
|
|
23
|
+
return $(e) && !!e?.type?.prototype?.isReactComponent;
|
|
27
24
|
}
|
|
28
25
|
function Je(e) {
|
|
26
|
+
return e instanceof Element;
|
|
27
|
+
}
|
|
28
|
+
function Ye(e) {
|
|
29
29
|
if (!(e instanceof HTMLElement) || [document.documentElement].includes(e)) return !1;
|
|
30
30
|
let t = window.getComputedStyle(e), n = [
|
|
31
31
|
"auto",
|
|
@@ -35,5 +35,5 @@ function Je(e) {
|
|
|
35
35
|
return e.scrollHeight > e.offsetHeight && n.includes(t.overflowY) || e.scrollWidth > e.offsetWidth && n.includes(t.overflowX);
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
|
-
export { r as is32Bit, i as isAllChinese, a as isArguments, ee as isArray, te as isArrayAndNotEmpty, ne as isArrayBuffer, re as isArrayEmpty, ie as isArrayLike, o as isArrayLikeObject, s as isAscii, c as isAsyncFunction, l as isBase64, u as isBigInt, d as isBlob, f as isBoolean, p as isBuffer, m as isChinese, h as isColorValue, g as isDataURI, _ as isDate,
|
|
38
|
+
export { r as is32Bit, i as isAllChinese, a as isArguments, ee as isArray, te as isArrayAndNotEmpty, ne as isArrayBuffer, re as isArrayEmpty, ie as isArrayLike, o as isArrayLikeObject, s as isAscii, c as isAsyncFunction, l as isBase64, u as isBigInt, d as isBlob, f as isBoolean, p as isBuffer, m as isChinese, h as isColorValue, g as isDataURI, _ as isDate, Be as isDayjs, v as isElement, Je as isElementByInstanceof, y as isEmail, b as isEmpty, x as isEmptyArray, S as isEmptyObject, Ge as isEmptyReactNode, C as isEmptyValue, w as isEqual, T as isEqualWith, E as isError, D as isEventTarget, O as isExist, k as isFile, A as isFinite, j as isFullWidth, M as isFunction, N as isHSL, 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, Y as isMatch, ae as isMatchWith, oe as isMimeType, se as isMobilePhone, ce as isMobilePhoneLocales, le as isNaN, ue as isNative, de as isNil, fe as isNull, X as isNullOrUndefined, pe as isNumber, me as isNumberOrString, he as isObject, ge as isObjectLike, _e as isPlainObject, ve as isPort, ye as isPromise, Ue as isReact18, We as isReact19, qe as isReactClassComponent, $ as isReactComponent, Ke as isReactComponentAndNotFragment, be as isReadableStream, xe as isRegExp, Se as isRgbColor, Ce as isSafeInteger, Ye as isScrollElement, we as isSemVer, Q as isServerRendering, Te as isSet, Ee as isSlug, De as isSparseArray, Z as isString, Oe as isStringOrNumber, ke as isStrongPassword, Ae as isSymbol, je as isTypedArray, Me as isURL, Ne as isUUID, Pe as isUndefined, Fe as isUndefinedOrNull, Ie as isVariableWidth, Le as isWeakMap, Re as isWeakSet, ze as isWindow };
|
|
39
39
|
/* 独立思考,明辨是非 */
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-03
|
|
1
|
+
/* 潘启宝 2026-04-03 14:07:44 星期五 */
|
|
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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-03
|
|
1
|
+
/* 潘启宝 2026-04-03 14:07:44 星期五 */
|
|
2
2
|
//#region components/common/utils/mergeProps.ts
|
|
3
3
|
function e(e, t, n, r) {
|
|
4
4
|
let i = t || {}, a = n || {}, o = e || {}, s = r ? new Set(r) : new Set(Object.keys(o).concat(Object.keys(i)).concat(Object.keys(a))), c = {};
|