@unicom-cloud/ui-common 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.virtual/_rolldown/runtime.js +1 -1
- package/animation/Animation.js +1 -1
- package/animation/constants.js +1 -1
- package/animation/context.js +1 -1
- package/animation/index.js +1 -1
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/border-beam/BorderBeam.js +1 -1
- package/border-beam/Effect.js +1 -1
- package/border-beam/constants.js +1 -1
- package/border-beam/context.js +1 -1
- package/border-beam/hooks/useBorderSize.js +1 -1
- package/border-beam/hooks/useChildDom.js +1 -1
- package/border-beam/index.d.ts +1 -0
- package/border-beam/index.js +1 -1
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.js +1 -1
- package/development/Development.js +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +1 -1
- package/development/index.d.ts +1 -0
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/constants.js +1 -1
- package/empty/context.js +1 -1
- package/empty/index.d.ts +1 -0
- package/empty/index.js +1 -1
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.d.ts +1 -0
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.js +1 -1
- package/higher-order/index.js +1 -1
- package/higher-order/with-speech-synthesis/context.js +1 -1
- package/higher-order/with-speech-synthesis/index.d.ts +1 -0
- package/higher-order/with-speech-synthesis/index.js +1 -1
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +1 -1
- package/hooks/create-deep-compare-effect/index.js +1 -1
- package/hooks/create-update-effect/index.js +1 -1
- package/hooks/create-use-storage-state/index.js +1 -1
- package/hooks/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-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.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.js +1 -1
- package/hooks/use-infinite-scroll/index.js +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +1 -1
- package/hooks/use-interval/index.js +1 -1
- package/hooks/use-is-first-render/index.js +1 -1
- package/hooks/use-isomorphic-layout-effect/index.js +1 -1
- package/hooks/use-key-press/index.js +1 -1
- package/hooks/use-keyboard-event/index.js +1 -1
- package/hooks/use-latest/index.js +1 -1
- package/hooks/use-listen-window-resize/index.js +1 -1
- package/hooks/use-local-storage-state/index.js +1 -1
- package/hooks/use-lock-fn/index.js +1 -1
- package/hooks/use-long-press/index.js +1 -1
- package/hooks/use-map/index.js +1 -1
- package/hooks/use-media/index.js +1 -1
- package/hooks/use-memo/index.js +1 -1
- package/hooks/use-memoized-fn/index.js +1 -1
- package/hooks/use-merge-props/index.js +1 -1
- package/hooks/use-merge-value/index.js +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 +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 +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 +2 -2
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +1 -1
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +1 -1
- 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 +14 -13
- 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-throttle-fn-with-raf/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/File.js +1 -1
- package/icons/file/context.js +1 -1
- package/icons/file/index.d.ts +1 -0
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/index.js +286 -285
- package/package.json +1 -1
- package/progress/Progress.d.ts +24 -368
- package/progress/Progress.js +2 -2
- package/progress/constants.js +1 -1
- package/progress/index.d.ts +3 -1
- package/progress/index.js +2 -2
- package/progress/interface.d.ts +5 -0
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +1 -1
- package/resize-observer/ResizeObserver.js +1 -1
- package/resize-observer/SingleObserver.js +1 -1
- package/resize-observer/constants.js +1 -1
- package/resize-observer/context.js +1 -1
- package/resize-observer/index.d.ts +1 -0
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.js +1 -1
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.d.ts +1 -0
- package/space/index.js +1 -1
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +1 -1
- package/suspense-fallback-test/index.d.ts +1 -0
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/constants.js +1 -1
- package/timer/context.js +1 -1
- package/timer/index.d.ts +1 -0
- package/timer/index.js +1 -1
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.js +1 -1
- package/transition/TransitionCSS.js +1 -1
- package/transition/TransitionGroup.js +1 -1
- package/transition/TransitionStyle.js +1 -1
- package/transition/constants.js +1 -1
- package/transition/context.js +1 -1
- package/transition/index.js +1 -1
- package/transition/style/index.js +1 -1
- package/transition/utils.js +1 -1
- package/typewriter/Typewriter.js +1 -1
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +1 -1
- package/typewriter/index.d.ts +1 -0
- package/typewriter/index.js +2 -2
- package/typewriter/style/index.js +1 -1
- package/typewriter/utils.js +1 -1
- package/utils/callOrReturn.js +1 -1
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/className.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/css.js +1 -1
- package/utils/date.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/document.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -1
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -1
- package/utils/fileToDataURL.js +1 -1
- package/utils/fillNBSP.js +1 -1
- package/utils/findRootElement.js +1 -1
- package/utils/findScrollParent.js +1 -1
- package/utils/getHighlightText.js +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.js +160 -159
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.d.ts +2 -1
- package/utils/lodash.js +64 -63
- 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/names.js +1 -1
- package/utils/object.js +1 -1
- package/utils/omit.js +1 -1
- package/utils/pad.js +1 -1
- package/utils/pick.js +1 -1
- package/utils/pinyin.js +1 -1
- package/utils/react19Adapter.js +1 -1
- package/utils/reactNode.js +1 -1
- package/utils/ref.js +1 -1
- package/utils/resizeObserver.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +1 -1
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/setCreateRoot.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/setDir.js +1 -1
- package/utils/setPrimaryColor.js +1 -1
- package/utils/setTheme.js +1 -1
- package/utils/string.js +1 -1
- package/utils/style.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -1
- package/utils/tunnel.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.d.ts +1 -0
- package/version/index.js +5 -5
- package/version/interface.d.ts +2 -0
- /package/{suspense-fallback-test → resize-observer}/style/index.css +0 -0
package/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-15 11:14:52 星期三 山东省济南市 */
|
|
2
2
|
import { __exportAll as ee, __reExport as e } from "../.virtual/_rolldown/runtime.js";
|
|
3
3
|
import { is32Bit as te, isAllChinese as ne, isArguments as re, isArray as ie, 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, isColorValue_ as h, isDataURI as g, isDate as _, isDayjs as v, isElement as y, isEmail as b, isEmpty as x, isEmptyArray as S, isEmptyObject as C, isEmptyReactNode as w, isEmptyString as T, isEmptyValue as E, isEqual as D, isEqualWith as O, isError as k, isEventTarget as A, isExist as j, isFalse as M, isFile as N, isFinite as P, isFullWidth as F, isFunction as I, isHSL as L, isHalfWidth as R, isHash as z, isHexColor as B, isIMEI as V, isIP as H, isIPRange as U, isIdentityCard as W, isInteger as G, isJSON as K, isJSON_String as q, isJWT as J, isLength as Y, isMACAddress as ae, isMD5 as oe, isMap as se, isMatch as ce, isMatchWith as le, isMimeType as ue, isMobilePhone as de, isMobilePhoneLocales as fe, isNaN as pe, isNative as me, isNil as he, isNonNullable as ge, isNotFound as _e, isNull as ve, isNullOrUndefined as ye, isNumber as be, isNumberOrString as xe, isObject as Se, isObjectLike as Ce, isPlainObject as we, isPort as Te, isPresent as Ee, isPrimitive as De, isPromise as Oe, isReact18 as ke, isReact19 as Ae, isReactClassComponent as je, isReactComponent as Me, isReactComponentAndNotFragment as Ne, isReadableStream as Pe, isRegExp as Fe, isRgbColor as Ie, isSafeInteger as Le, isSemVer as Re, isServerRendering as ze, isSet as Be, isSlug as Ve, isSparseArray as He, isString as Ue, isStringAndExist as We, isStringOrNumber as Ge, isStrongPassword as Ke, isSymbol as qe, isThenable as Je, isTrue as Ye, isTypedArray as Xe, isURL as Ze, isUUID as Qe, isUndefined as $e, isUndefinedOrNull as et, isVariableWidth as tt, isWeakMap as nt, isWeakSet as rt, isWindow as it, isZero as at, is_exports as ot } from "./is.js";
|
|
4
4
|
import { object_exports as st } from "./object.js";
|
|
@@ -7,57 +7,57 @@ import ht from "./findRootElement.js";
|
|
|
7
7
|
import { screenfull as gt } from "./screenfull.js";
|
|
8
8
|
import { canUseDOM as _t, contains as vt, focusAtEnd as yt, forceReflow as X, getBodyContainer as bt, getDOM as xt, getDocument as St, getDocumentElement as Ct, getElementCoordinates as wt, getScrollElements as Tt, getTopLevelOverlayContainer as Et, off as Dt, on as Ot, parentContainsChildren as kt } from "./dom.js";
|
|
9
9
|
import { CSS_VARIABLE_ELEMENT as At, DAYJS_DEFAULT_FORMAT as jt, DAYJS_DEFAULT_FORMAT_WITH_TIME as Mt, NOOP as Nt, PREFIX_CLASS as Pt, UI_PC_KEY as Ft, UI_PC_THEME_DARK_CLASS_NAME as It } from "./constants.js";
|
|
10
|
-
import { assign as Lt, assignIn as Rt, at as zt, camelCase as Bt, capitalize as Vt, castArray as Ht, chain as Ut, chunk as Wt, clone as Gt, cloneDeep as Kt, cloneDeepWith as qt, cloneWith as Jt, compact as Yt, curry as Xt, debounce as Zt, defaultTo as Qt, defaults as $t, defaultsDeep as en, difference as Z, escape as tn, findKey as nn, flattenDeep as rn, flow as an, get as on, groupBy as sn, has as cn, intersection as ln, invert as un, invertBy as dn, kebabCase as fn, mean as pn, memoize as mn, merge as hn, mergeWith as gn,
|
|
11
|
-
import
|
|
12
|
-
import { callbackOriginRef as
|
|
13
|
-
import { callOrReturn as
|
|
14
|
-
import { caseName as
|
|
15
|
-
import { className as
|
|
10
|
+
import { assign as Lt, assignIn as Rt, at as zt, camelCase as Bt, capitalize as Vt, castArray as Ht, chain as Ut, chunk as Wt, clone as Gt, cloneDeep as Kt, cloneDeepWith as qt, cloneWith as Jt, compact as Yt, curry as Xt, debounce as Zt, defaultTo as Qt, defaults as $t, defaultsDeep as en, difference as Z, escape as tn, findKey as nn, flattenDeep as rn, flow as an, get as on, groupBy as sn, has as cn, intersection as ln, invert as un, invertBy as dn, kebabCase as fn, mean as pn, memoize as mn, merge as hn, mergeWith as gn, move as _n, noop as vn, omit as yn, omitBy as bn, orderBy as xn, partition as Sn, pick as Cn, pickBy as wn, pullAll as Tn, result as En, sample as Dn, sampleSize as On, set as kn, setWith as An, shuffle as jn, snakeCase as Mn, sortBy as Nn, startCase as Pn, throttle as Fn, toPath as In, truncate as Ln, union as Rn, uniq as zn, uniqueId as Bn, unset as Vn, update as Hn, updateWith as Un, upperCase as Wn, upperFirst as Gn, without as Kn, xor as qn, zip as Jn } from "./lodash.js";
|
|
11
|
+
import Yn from "./mergeProps.js";
|
|
12
|
+
import { callbackOriginRef as Xn } from "./callbackOriginRef.js";
|
|
13
|
+
import { callOrReturn as Zn } from "./callOrReturn.js";
|
|
14
|
+
import { caseName as Qn } from "./caseName.js";
|
|
15
|
+
import { className as $n, cs as er } from "./className.js";
|
|
16
16
|
import { clipboardCopy as Q } from "./copy.js";
|
|
17
17
|
import "./css.js";
|
|
18
|
-
import { convertTime as
|
|
19
|
-
import { dayjs as
|
|
20
|
-
import { document_exports as
|
|
21
|
-
import { Emitter as
|
|
18
|
+
import { convertTime as tr, convertToDurationBasedOnTimeUnits as nr, dateFormat as rr, dayjsFormat as ir } from "./date.js";
|
|
19
|
+
import { dayjs as ar } from "./dayjs.js";
|
|
20
|
+
import { document_exports as or } from "./document.js";
|
|
21
|
+
import { Emitter as sr } from "./emitter.js";
|
|
22
22
|
import "./file.js";
|
|
23
|
-
import { fileRead as
|
|
24
|
-
import { fileToDataURL as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { div as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
23
|
+
import { fileRead as cr } from "./fileRead.js";
|
|
24
|
+
import { fileToDataURL as lr } from "./fileToDataURL.js";
|
|
25
|
+
import ur from "./fillNBSP.js";
|
|
26
|
+
import dr from "./getHighlightText.js";
|
|
27
|
+
import fr from "./getHotkeyHandler.js";
|
|
28
|
+
import pr from "./getScrollBarSize.js";
|
|
29
|
+
import mr from "./getScrollBarHeight.js";
|
|
30
|
+
import hr from "./getScrollBarWidth.js";
|
|
31
|
+
import gr from "./getStringLength.js";
|
|
32
|
+
import _r from "./include.js";
|
|
33
|
+
import vr from "./intersectionObserver.js";
|
|
34
|
+
import { div as yr, math as br, minus as xr, plus as Sr, times as Cr } from "./math.js";
|
|
35
|
+
import wr from "./mergedToString.js";
|
|
36
|
+
import Tr from "./mutationObserver.js";
|
|
37
37
|
import "./omit.js";
|
|
38
|
-
import { padEnd as
|
|
39
|
-
import { pickDataAttributes as
|
|
40
|
-
import
|
|
41
|
-
import { saveAs as
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import { HYPHEN as
|
|
49
|
-
import { fixedWidth as
|
|
50
|
-
import { tinycolor as
|
|
51
|
-
import
|
|
52
|
-
import { findNodeBy as
|
|
53
|
-
import { uuid as
|
|
54
|
-
import
|
|
55
|
-
import { Tween as
|
|
56
|
-
import { PqbValidator as
|
|
57
|
-
import
|
|
58
|
-
import { pinyin_exports as
|
|
59
|
-
import { keyboardCode as
|
|
60
|
-
import { COMPONENT_NAMES as
|
|
38
|
+
import { padEnd as Er, padStart as Dr } from "./pad.js";
|
|
39
|
+
import { pickDataAttributes as Or } from "./pick.js";
|
|
40
|
+
import kr from "./resizeObserver.js";
|
|
41
|
+
import { saveAs as Ar } from "./saveAs.js";
|
|
42
|
+
import jr from "./scrollIntoViewIfNeeded.js";
|
|
43
|
+
import Mr, { render as Nr } from "./setCreateRoot.js";
|
|
44
|
+
import Pr, { removeDarkTheme as Fr } from "./setDarkTheme.js";
|
|
45
|
+
import Ir from "./setDir.js";
|
|
46
|
+
import Lr from "./setPrimaryColor.js";
|
|
47
|
+
import Rr from "./setTheme.js";
|
|
48
|
+
import { HYPHEN as zr, replaceEmptyWithHyphen as Br } from "./string.js";
|
|
49
|
+
import { fixedWidth as Vr, getStyle as Hr, setTransformStyle as Ur } from "./style.js";
|
|
50
|
+
import { tinycolor as Wr } from "./tinycolor.js";
|
|
51
|
+
import Gr from "./toArray.js";
|
|
52
|
+
import { findNodeBy as Kr, getChildWithParentBy as qr, getItemBy as Jr, getItemByID as Yr, getLabelFromDictionaryByValue as Xr, searchTree as Zr, tree as Qr } from "./tree.js";
|
|
53
|
+
import { uuid as $r, uuidv4 as ei } from "./uuid.js";
|
|
54
|
+
import ti from "./tunnel.js";
|
|
55
|
+
import { Tween as ni, easing as ri } from "./tween.js";
|
|
56
|
+
import { PqbValidator as ii, Validator as ai, ValidatorArray as oi, ValidatorBase as si, ValidatorBoolean as ci, ValidatorCustom as li, ValidatorNumber as ui, ValidatorObject as di, ValidatorSchema as fi, ValidatorString as pi, ValidatorType as mi, validatorLocale as hi } from "./validate.js";
|
|
57
|
+
import gi from "./warning.js";
|
|
58
|
+
import { pinyin_exports as _i } from "./pinyin.js";
|
|
59
|
+
import { keyboardCode as vi } from "./keyboardCode.js";
|
|
60
|
+
import { COMPONENT_NAMES as yi } from "./names.js";
|
|
61
61
|
export * from "@unicom-cloud/utils/is";
|
|
62
62
|
export * from "@unicom-cloud/utils/object";
|
|
63
63
|
export * from "@unicom-cloud/utils/css";
|
|
@@ -66,41 +66,41 @@ export * from "@unicom-cloud/utils/file";
|
|
|
66
66
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
67
67
|
//#region components/common/utils/index.ts
|
|
68
68
|
var $ = /* @__PURE__ */ ee({
|
|
69
|
-
COMPONENT_NAMES: () =>
|
|
69
|
+
COMPONENT_NAMES: () => yi,
|
|
70
70
|
CSS_VARIABLE_ELEMENT: () => At,
|
|
71
71
|
DAYJS_DEFAULT_FORMAT: () => jt,
|
|
72
72
|
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => Mt,
|
|
73
|
-
Emitter: () =>
|
|
74
|
-
HYPHEN: () =>
|
|
73
|
+
Emitter: () => sr,
|
|
74
|
+
HYPHEN: () => zr,
|
|
75
75
|
NOOP: () => Nt,
|
|
76
76
|
PREFIX_CLASS: () => Pt,
|
|
77
|
-
PqbValidator: () =>
|
|
78
|
-
Tween: () =>
|
|
77
|
+
PqbValidator: () => ii,
|
|
78
|
+
Tween: () => ni,
|
|
79
79
|
UI_PC_KEY: () => Ft,
|
|
80
80
|
UI_PC_THEME_DARK_CLASS_NAME: () => It,
|
|
81
|
-
Validator: () =>
|
|
82
|
-
ValidatorArray: () =>
|
|
83
|
-
ValidatorBase: () =>
|
|
84
|
-
ValidatorBoolean: () =>
|
|
85
|
-
ValidatorCustom: () =>
|
|
86
|
-
ValidatorNumber: () =>
|
|
87
|
-
ValidatorObject: () =>
|
|
88
|
-
ValidatorSchema: () =>
|
|
89
|
-
ValidatorString: () =>
|
|
90
|
-
ValidatorType: () =>
|
|
81
|
+
Validator: () => ai,
|
|
82
|
+
ValidatorArray: () => oi,
|
|
83
|
+
ValidatorBase: () => si,
|
|
84
|
+
ValidatorBoolean: () => ci,
|
|
85
|
+
ValidatorCustom: () => li,
|
|
86
|
+
ValidatorNumber: () => ui,
|
|
87
|
+
ValidatorObject: () => di,
|
|
88
|
+
ValidatorSchema: () => fi,
|
|
89
|
+
ValidatorString: () => pi,
|
|
90
|
+
ValidatorType: () => mi,
|
|
91
91
|
assign: () => Lt,
|
|
92
92
|
assignIn: () => Rt,
|
|
93
93
|
at: () => zt,
|
|
94
|
-
callOrReturn: () =>
|
|
95
|
-
callbackOriginRef: () =>
|
|
94
|
+
callOrReturn: () => Zn,
|
|
95
|
+
callbackOriginRef: () => Xn,
|
|
96
96
|
camelCase: () => Bt,
|
|
97
97
|
canUseDOM: () => _t,
|
|
98
98
|
capitalize: () => Vt,
|
|
99
|
-
caseName: () =>
|
|
99
|
+
caseName: () => Qn,
|
|
100
100
|
castArray: () => Ht,
|
|
101
101
|
chain: () => Ut,
|
|
102
102
|
chunk: () => Wt,
|
|
103
|
-
className: () =>
|
|
103
|
+
className: () => $n,
|
|
104
104
|
clipboardCopy: () => Q,
|
|
105
105
|
clone: () => Gt,
|
|
106
106
|
cloneDeep: () => Kt,
|
|
@@ -109,60 +109,60 @@ var $ = /* @__PURE__ */ ee({
|
|
|
109
109
|
compact: () => Yt,
|
|
110
110
|
composeRef: () => ct,
|
|
111
111
|
contains: () => vt,
|
|
112
|
-
convertTime: () =>
|
|
113
|
-
convertToDurationBasedOnTimeUnits: () =>
|
|
112
|
+
convertTime: () => tr,
|
|
113
|
+
convertToDurationBasedOnTimeUnits: () => nr,
|
|
114
114
|
copy: () => Q,
|
|
115
|
-
cs: () =>
|
|
115
|
+
cs: () => er,
|
|
116
116
|
curry: () => Xt,
|
|
117
|
-
dateFormat: () =>
|
|
118
|
-
dayjs: () =>
|
|
119
|
-
dayjsFormat: () =>
|
|
117
|
+
dateFormat: () => rr,
|
|
118
|
+
dayjs: () => ar,
|
|
119
|
+
dayjsFormat: () => ir,
|
|
120
120
|
debounce: () => Zt,
|
|
121
121
|
defaultTo: () => Qt,
|
|
122
122
|
defaults: () => $t,
|
|
123
123
|
defaultsDeep: () => en,
|
|
124
124
|
difference: () => Z,
|
|
125
|
-
div: () =>
|
|
126
|
-
easing: () =>
|
|
125
|
+
div: () => yr,
|
|
126
|
+
easing: () => ri,
|
|
127
127
|
escape: () => tn,
|
|
128
|
-
fileRead: () =>
|
|
129
|
-
fileToDataURL: () =>
|
|
130
|
-
fillNBSP: () =>
|
|
128
|
+
fileRead: () => cr,
|
|
129
|
+
fileToDataURL: () => lr,
|
|
130
|
+
fillNBSP: () => ur,
|
|
131
131
|
fillRef: () => lt,
|
|
132
132
|
findKey: () => nn,
|
|
133
|
-
findNodeBy: () =>
|
|
133
|
+
findNodeBy: () => Kr,
|
|
134
134
|
findRootElement: () => ht,
|
|
135
|
-
fixedWidth: () =>
|
|
135
|
+
fixedWidth: () => Vr,
|
|
136
136
|
flattenDeep: () => rn,
|
|
137
137
|
flow: () => an,
|
|
138
138
|
focusAtEnd: () => yt,
|
|
139
139
|
forceReflow: () => X,
|
|
140
140
|
get: () => on,
|
|
141
141
|
getBodyContainer: () => bt,
|
|
142
|
-
getChildWithParentBy: () =>
|
|
142
|
+
getChildWithParentBy: () => qr,
|
|
143
143
|
getDOM: () => xt,
|
|
144
144
|
getDocument: () => St,
|
|
145
145
|
getDocumentElement: () => Ct,
|
|
146
146
|
getElementCoordinates: () => wt,
|
|
147
|
-
getHighlightText: () =>
|
|
148
|
-
getHotkeyHandler: () =>
|
|
149
|
-
getItemBy: () =>
|
|
150
|
-
getItemByID: () =>
|
|
151
|
-
getLabelFromDictionaryByValue: () =>
|
|
147
|
+
getHighlightText: () => dr,
|
|
148
|
+
getHotkeyHandler: () => fr,
|
|
149
|
+
getItemBy: () => Jr,
|
|
150
|
+
getItemByID: () => Yr,
|
|
151
|
+
getLabelFromDictionaryByValue: () => Xr,
|
|
152
152
|
getNodeRef: () => ut,
|
|
153
153
|
getReactElementRef: () => dt,
|
|
154
|
-
getScrollBarHeight: () =>
|
|
155
|
-
getScrollBarSize: () =>
|
|
156
|
-
getScrollBarWidth: () =>
|
|
154
|
+
getScrollBarHeight: () => mr,
|
|
155
|
+
getScrollBarSize: () => pr,
|
|
156
|
+
getScrollBarWidth: () => hr,
|
|
157
157
|
getScrollElements: () => Tt,
|
|
158
|
-
getStringLength: () =>
|
|
159
|
-
getStyle: () =>
|
|
158
|
+
getStringLength: () => gr,
|
|
159
|
+
getStyle: () => Hr,
|
|
160
160
|
getTopLevelOverlayContainer: () => Et,
|
|
161
161
|
groupBy: () => sn,
|
|
162
162
|
has: () => cn,
|
|
163
|
-
include: () =>
|
|
163
|
+
include: () => _r,
|
|
164
164
|
intersection: () => ln,
|
|
165
|
-
intersectionObserver: () =>
|
|
165
|
+
intersectionObserver: () => vr,
|
|
166
166
|
invert: () => un,
|
|
167
167
|
invertBy: () => dn,
|
|
168
168
|
is32Bit: () => te,
|
|
@@ -274,84 +274,85 @@ var $ = /* @__PURE__ */ ee({
|
|
|
274
274
|
isWindow: () => it,
|
|
275
275
|
isZero: () => at,
|
|
276
276
|
kebabCase: () => fn,
|
|
277
|
-
keyboardCode: () =>
|
|
278
|
-
math: () =>
|
|
277
|
+
keyboardCode: () => vi,
|
|
278
|
+
math: () => br,
|
|
279
279
|
mean: () => pn,
|
|
280
280
|
memoize: () => mn,
|
|
281
281
|
merge: () => hn,
|
|
282
|
-
mergeProps: () =>
|
|
282
|
+
mergeProps: () => Yn,
|
|
283
283
|
mergeWith: () => gn,
|
|
284
|
-
mergedToString: () =>
|
|
285
|
-
minus: () =>
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
mergedToString: () => wr,
|
|
285
|
+
minus: () => xr,
|
|
286
|
+
move: () => _n,
|
|
287
|
+
mutationObserver: () => Tr,
|
|
288
|
+
noop: () => vn,
|
|
288
289
|
off: () => Dt,
|
|
289
|
-
omit: () =>
|
|
290
|
-
omitBy: () =>
|
|
290
|
+
omit: () => yn,
|
|
291
|
+
omitBy: () => bn,
|
|
291
292
|
on: () => Ot,
|
|
292
|
-
orderBy: () =>
|
|
293
|
-
padEnd: () =>
|
|
294
|
-
padStart: () =>
|
|
293
|
+
orderBy: () => xn,
|
|
294
|
+
padEnd: () => Er,
|
|
295
|
+
padStart: () => Dr,
|
|
295
296
|
parentContainsChildren: () => kt,
|
|
296
|
-
partition: () =>
|
|
297
|
-
pick: () =>
|
|
298
|
-
pickBy: () =>
|
|
299
|
-
pickDataAttributes: () =>
|
|
300
|
-
pinyin: () =>
|
|
301
|
-
plus: () =>
|
|
302
|
-
pullAll: () =>
|
|
297
|
+
partition: () => Sn,
|
|
298
|
+
pick: () => Cn,
|
|
299
|
+
pickBy: () => wn,
|
|
300
|
+
pickDataAttributes: () => Or,
|
|
301
|
+
pinyin: () => _i,
|
|
302
|
+
plus: () => Sr,
|
|
303
|
+
pullAll: () => Tn,
|
|
303
304
|
reflow: () => X,
|
|
304
|
-
removeDarkTheme: () =>
|
|
305
|
-
render: () =>
|
|
306
|
-
replaceEmptyWithHyphen: () =>
|
|
307
|
-
resizeObserver: () =>
|
|
308
|
-
result: () =>
|
|
309
|
-
sample: () =>
|
|
310
|
-
sampleSize: () =>
|
|
311
|
-
saveAs: () =>
|
|
305
|
+
removeDarkTheme: () => Fr,
|
|
306
|
+
render: () => Nr,
|
|
307
|
+
replaceEmptyWithHyphen: () => Br,
|
|
308
|
+
resizeObserver: () => kr,
|
|
309
|
+
result: () => En,
|
|
310
|
+
sample: () => Dn,
|
|
311
|
+
sampleSize: () => On,
|
|
312
|
+
saveAs: () => Ar,
|
|
312
313
|
screenfull: () => gt,
|
|
313
|
-
scrollIntoViewIfNeeded: () =>
|
|
314
|
-
searchTree: () =>
|
|
315
|
-
set: () =>
|
|
316
|
-
setCreateRoot: () =>
|
|
317
|
-
setDarkTheme: () =>
|
|
318
|
-
setDir: () =>
|
|
319
|
-
setPrimaryColor: () =>
|
|
320
|
-
setTheme: () =>
|
|
321
|
-
setTransformStyle: () =>
|
|
322
|
-
setWith: () =>
|
|
323
|
-
shuffle: () =>
|
|
324
|
-
snakeCase: () =>
|
|
325
|
-
sortBy: () =>
|
|
326
|
-
startCase: () =>
|
|
314
|
+
scrollIntoViewIfNeeded: () => jr,
|
|
315
|
+
searchTree: () => Zr,
|
|
316
|
+
set: () => kn,
|
|
317
|
+
setCreateRoot: () => Mr,
|
|
318
|
+
setDarkTheme: () => Pr,
|
|
319
|
+
setDir: () => Ir,
|
|
320
|
+
setPrimaryColor: () => Lr,
|
|
321
|
+
setTheme: () => Rr,
|
|
322
|
+
setTransformStyle: () => Ur,
|
|
323
|
+
setWith: () => An,
|
|
324
|
+
shuffle: () => jn,
|
|
325
|
+
snakeCase: () => Mn,
|
|
326
|
+
sortBy: () => Nn,
|
|
327
|
+
startCase: () => Pn,
|
|
327
328
|
supportNodeRef: () => ft,
|
|
328
329
|
supportRef: () => pt,
|
|
329
|
-
throttle: () =>
|
|
330
|
-
times: () =>
|
|
331
|
-
tinycolor: () =>
|
|
332
|
-
toArray: () =>
|
|
333
|
-
toPath: () =>
|
|
334
|
-
tree: () =>
|
|
335
|
-
truncate: () =>
|
|
336
|
-
tunnel: () =>
|
|
337
|
-
union: () =>
|
|
338
|
-
uniq: () =>
|
|
339
|
-
uniqueId: () =>
|
|
340
|
-
unset: () =>
|
|
341
|
-
update: () =>
|
|
342
|
-
updateWith: () =>
|
|
343
|
-
upperCase: () =>
|
|
344
|
-
upperFirst: () =>
|
|
330
|
+
throttle: () => Fn,
|
|
331
|
+
times: () => Cr,
|
|
332
|
+
tinycolor: () => Wr,
|
|
333
|
+
toArray: () => Gr,
|
|
334
|
+
toPath: () => In,
|
|
335
|
+
tree: () => Qr,
|
|
336
|
+
truncate: () => Ln,
|
|
337
|
+
tunnel: () => ti,
|
|
338
|
+
union: () => Rn,
|
|
339
|
+
uniq: () => zn,
|
|
340
|
+
uniqueId: () => Bn,
|
|
341
|
+
unset: () => Vn,
|
|
342
|
+
update: () => Hn,
|
|
343
|
+
updateWith: () => Un,
|
|
344
|
+
upperCase: () => Wn,
|
|
345
|
+
upperFirst: () => Gn,
|
|
345
346
|
useComposeRef: () => mt,
|
|
346
|
-
uuid: () =>
|
|
347
|
-
uuidv4: () =>
|
|
348
|
-
validatorLocale: () =>
|
|
349
|
-
warning: () =>
|
|
350
|
-
without: () =>
|
|
351
|
-
xor: () =>
|
|
352
|
-
zip: () =>
|
|
347
|
+
uuid: () => $r,
|
|
348
|
+
uuidv4: () => ei,
|
|
349
|
+
validatorLocale: () => hi,
|
|
350
|
+
warning: () => gi,
|
|
351
|
+
without: () => Kn,
|
|
352
|
+
xor: () => qn,
|
|
353
|
+
zip: () => Jn
|
|
353
354
|
});
|
|
354
|
-
e($,
|
|
355
|
+
e($, or), e($, ot), e($, st);
|
|
355
356
|
//#endregion
|
|
356
|
-
export {
|
|
357
|
+
export { yi as COMPONENT_NAMES, At as CSS_VARIABLE_ELEMENT, jt as DAYJS_DEFAULT_FORMAT, Mt as DAYJS_DEFAULT_FORMAT_WITH_TIME, sr as Emitter, zr as HYPHEN, Nt as NOOP, Pt as PREFIX_CLASS, ii as PqbValidator, ni as Tween, Ft as UI_PC_KEY, It as UI_PC_THEME_DARK_CLASS_NAME, ai as Validator, oi as ValidatorArray, si as ValidatorBase, ci as ValidatorBoolean, li as ValidatorCustom, ui as ValidatorNumber, di as ValidatorObject, fi as ValidatorSchema, pi as ValidatorString, mi as ValidatorType, Lt as assign, Rt as assignIn, zt as at, Zn as callOrReturn, Xn as callbackOriginRef, Bt as camelCase, _t as canUseDOM, Vt as capitalize, Qn as caseName, Ht as castArray, Ut as chain, Wt as chunk, $n as className, Q as clipboardCopy, Q as copy, Gt as clone, Kt as cloneDeep, qt as cloneDeepWith, Jt as cloneWith, Yt as compact, ct as composeRef, vt as contains, tr as convertTime, nr as convertToDurationBasedOnTimeUnits, er as cs, Xt as curry, rr as dateFormat, ar as dayjs, ir as dayjsFormat, Zt as debounce, Qt as defaultTo, $t as defaults, en as defaultsDeep, Z as difference, yr as div, ri as easing, tn as escape, cr as fileRead, lr as fileToDataURL, ur as fillNBSP, lt as fillRef, nn as findKey, Kr as findNodeBy, ht as findRootElement, Vr as fixedWidth, rn as flattenDeep, an as flow, yt as focusAtEnd, X as forceReflow, X as reflow, on as get, bt as getBodyContainer, qr as getChildWithParentBy, xt as getDOM, St as getDocument, Ct as getDocumentElement, wt as getElementCoordinates, dr as getHighlightText, fr as getHotkeyHandler, Jr as getItemBy, Yr as getItemByID, Xr as getLabelFromDictionaryByValue, ut as getNodeRef, dt as getReactElementRef, mr as getScrollBarHeight, pr as getScrollBarSize, hr as getScrollBarWidth, Tt as getScrollElements, gr as getStringLength, Hr as getStyle, Et as getTopLevelOverlayContainer, sn as groupBy, cn as has, _r as include, ln as intersection, vr as intersectionObserver, un as invert, dn as invertBy, te as is32Bit, ne as isAllChinese, re as isArguments, ie 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 isColorValue_, g as isDataURI, _ as isDate, v as isDayjs, y as isElement, b as isEmail, x as isEmpty, S as isEmptyArray, C as isEmptyObject, w as isEmptyReactNode, T as isEmptyString, E as isEmptyValue, D as isEqual, O as isEqualWith, k as isError, A as isEventTarget, j as isExist, M as isFalse, N as isFile, P as isFinite, F as isFullWidth, I as isFunction, L as isHSL, R as isHalfWidth, z as isHash, B as isHexColor, V as isIMEI, H as isIP, U as isIPRange, W as isIdentityCard, G as isInteger, K as isJSON, q as isJSON_String, J as isJWT, Y as isLength, ae as isMACAddress, oe as isMD5, se as isMap, ce as isMatch, le as isMatchWith, ue as isMimeType, de as isMobilePhone, fe as isMobilePhoneLocales, pe as isNaN, me as isNative, he as isNil, ge as isNonNullable, _e as isNotFound, ve as isNull, ye as isNullOrUndefined, be as isNumber, xe as isNumberOrString, Se as isObject, Ce as isObjectLike, we as isPlainObject, Te as isPort, Ee as isPresent, De as isPrimitive, Oe as isPromise, ke as isReact18, Ae as isReact19, je as isReactClassComponent, Me as isReactComponent, Ne as isReactComponentAndNotFragment, Pe as isReadableStream, Fe as isRegExp, Ie as isRgbColor, Le as isSafeInteger, Re as isSemVer, ze as isServerRendering, Be as isSet, Ve as isSlug, He as isSparseArray, Ue as isString, We as isStringAndExist, Ge as isStringOrNumber, Ke as isStrongPassword, qe as isSymbol, Je as isThenable, Ye as isTrue, Xe as isTypedArray, Ze as isURL, Qe as isUUID, $e as isUndefined, et as isUndefinedOrNull, tt as isVariableWidth, nt as isWeakMap, rt as isWeakSet, it as isWindow, at as isZero, fn as kebabCase, vi as keyboardCode, br as math, pn as mean, mn as memoize, hn as merge, Yn as mergeProps, gn as mergeWith, wr as mergedToString, xr as minus, _n as move, Tr as mutationObserver, vn as noop, Dt as off, yn as omit, bn as omitBy, Ot as on, xn as orderBy, Er as padEnd, Dr as padStart, kt as parentContainsChildren, Sn as partition, Cn as pick, wn as pickBy, Or as pickDataAttributes, _i as pinyin, Sr as plus, Tn as pullAll, Fr as removeDarkTheme, Nr as render, Br as replaceEmptyWithHyphen, kr as resizeObserver, En as result, Dn as sample, On as sampleSize, Ar as saveAs, gt as screenfull, jr as scrollIntoViewIfNeeded, Zr as searchTree, kn as set, Mr as setCreateRoot, Pr as setDarkTheme, Ir as setDir, Lr as setPrimaryColor, Rr as setTheme, Ur as setTransformStyle, An as setWith, jn as shuffle, Mn as snakeCase, Nn as sortBy, Pn as startCase, ft as supportNodeRef, pt as supportRef, Fn as throttle, Cr as times, Wr as tinycolor, Gr as toArray, In as toPath, Qr as tree, Ln as truncate, ti as tunnel, Rn as union, zn as uniq, Bn as uniqueId, Vn as unset, Hn as update, Un as updateWith, Wn as upperCase, Gn as upperFirst, mt as useComposeRef, $ as utils_exports, $r as uuid, ei as uuidv4, hi as validatorLocale, gi as warning, Kn as without, qn as xor, Jn as zip };
|
|
357
358
|
/* 独立思考,明辨是非 */
|
package/utils/is.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-15 11:14:52 星期三 山东省济南市 */
|
|
2
2
|
import { __exportAll as e, __reExport as ee } from "../.virtual/_rolldown/runtime.js";
|
|
3
3
|
import te, { isValidElement as t } from "react";
|
|
4
4
|
import { isBrowser as n } from "@unicom-cloud/utils/constants/platform";
|
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import move from '@unicom-cloud/utils/lodash/move';
|
|
1
2
|
import assign from 'lodash/assign';
|
|
2
3
|
import assignIn from 'lodash/assignIn';
|
|
3
4
|
import at from 'lodash/at';
|
|
@@ -63,4 +64,4 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
63
64
|
import without from 'lodash/without';
|
|
64
65
|
import xor from 'lodash/xor';
|
|
65
66
|
import zip from 'lodash/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, };
|
|
67
|
+
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, move, 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,68 +1,69 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-15 11:14:52 星期三 山东省济南市 */
|
|
2
2
|
import e from "lodash/castArray";
|
|
3
3
|
import t from "lodash/debounce";
|
|
4
4
|
import n from "lodash/throttle";
|
|
5
5
|
import r from "lodash/noop";
|
|
6
|
-
import i from "lodash/
|
|
7
|
-
import a from "lodash/
|
|
8
|
-
import o from "lodash/
|
|
9
|
-
import s from "lodash/
|
|
10
|
-
import c from "lodash/
|
|
11
|
-
import l from "lodash/
|
|
12
|
-
import u from "lodash/
|
|
13
|
-
import d from "lodash/
|
|
14
|
-
import f from "lodash/
|
|
15
|
-
import p from "lodash/
|
|
16
|
-
import m from "lodash/
|
|
17
|
-
import h from "lodash/
|
|
18
|
-
import g from "lodash/
|
|
19
|
-
import _ from "lodash/
|
|
20
|
-
import v from "lodash/
|
|
21
|
-
import y from "lodash/
|
|
22
|
-
import b from "lodash/
|
|
23
|
-
import x from "lodash/
|
|
24
|
-
import S from "lodash/
|
|
25
|
-
import C from "lodash/
|
|
26
|
-
import w from "lodash/
|
|
27
|
-
import T from "lodash/
|
|
28
|
-
import E from "lodash/
|
|
29
|
-
import D from "lodash/
|
|
30
|
-
import O from "lodash/
|
|
31
|
-
import k from "lodash/
|
|
32
|
-
import A from "lodash/
|
|
33
|
-
import j from "lodash/
|
|
34
|
-
import M from "lodash/
|
|
35
|
-
import N from "lodash/
|
|
36
|
-
import P from "lodash/
|
|
37
|
-
import F from "lodash/
|
|
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
|
-
import se from "lodash/
|
|
64
|
-
import ce from "lodash/
|
|
65
|
-
import le from "lodash/
|
|
66
|
-
import ue from "lodash/
|
|
67
|
-
|
|
6
|
+
import i from "@unicom-cloud/utils/lodash/move";
|
|
7
|
+
import a from "lodash/assign";
|
|
8
|
+
import o from "lodash/assignIn";
|
|
9
|
+
import s from "lodash/at";
|
|
10
|
+
import c from "lodash/camelCase";
|
|
11
|
+
import l from "lodash/capitalize";
|
|
12
|
+
import u from "lodash/chain";
|
|
13
|
+
import d from "lodash/chunk";
|
|
14
|
+
import f from "lodash/clone";
|
|
15
|
+
import p from "lodash/cloneDeep";
|
|
16
|
+
import m from "lodash/cloneDeepWith";
|
|
17
|
+
import h from "lodash/cloneWith";
|
|
18
|
+
import g from "lodash/compact";
|
|
19
|
+
import _ from "lodash/curry";
|
|
20
|
+
import v from "lodash/defaults";
|
|
21
|
+
import y from "lodash/defaultsDeep";
|
|
22
|
+
import b from "lodash/defaultTo";
|
|
23
|
+
import x from "lodash/difference";
|
|
24
|
+
import S from "lodash/escape";
|
|
25
|
+
import C from "lodash/findKey";
|
|
26
|
+
import w from "lodash/flattenDeep";
|
|
27
|
+
import T from "lodash/flow";
|
|
28
|
+
import E from "lodash/get";
|
|
29
|
+
import D from "lodash/groupBy";
|
|
30
|
+
import O from "lodash/has";
|
|
31
|
+
import k from "lodash/intersection";
|
|
32
|
+
import A from "lodash/invert";
|
|
33
|
+
import j from "lodash/invertBy";
|
|
34
|
+
import M from "lodash/kebabCase";
|
|
35
|
+
import N from "lodash/mean";
|
|
36
|
+
import P from "lodash/memoize";
|
|
37
|
+
import F from "lodash/merge";
|
|
38
|
+
import I from "lodash/mergeWith";
|
|
39
|
+
import L from "lodash/omit";
|
|
40
|
+
import R from "lodash/omitBy";
|
|
41
|
+
import z from "lodash/orderBy";
|
|
42
|
+
import B from "lodash/partition";
|
|
43
|
+
import V from "lodash/pick";
|
|
44
|
+
import H from "lodash/pickBy";
|
|
45
|
+
import U from "lodash/pullAll";
|
|
46
|
+
import W from "lodash/result";
|
|
47
|
+
import G from "lodash/sample";
|
|
48
|
+
import K from "lodash/sampleSize";
|
|
49
|
+
import q from "lodash/set";
|
|
50
|
+
import J from "lodash/setWith";
|
|
51
|
+
import Y from "lodash/shuffle";
|
|
52
|
+
import X from "lodash/snakeCase";
|
|
53
|
+
import Z from "lodash/sortBy";
|
|
54
|
+
import Q from "lodash/startCase";
|
|
55
|
+
import $ from "lodash/toPath";
|
|
56
|
+
import ee from "lodash/truncate";
|
|
57
|
+
import te from "lodash/union";
|
|
58
|
+
import ne from "lodash/uniq";
|
|
59
|
+
import re from "lodash/uniqueId";
|
|
60
|
+
import ie from "lodash/unset";
|
|
61
|
+
import ae from "lodash/update";
|
|
62
|
+
import oe from "lodash/updateWith";
|
|
63
|
+
import se from "lodash/upperCase";
|
|
64
|
+
import ce from "lodash/upperFirst";
|
|
65
|
+
import le from "lodash/without";
|
|
66
|
+
import ue from "lodash/xor";
|
|
67
|
+
import de from "lodash/zip";
|
|
68
|
+
export { a as assign, o as assignIn, s as at, c as camelCase, l as capitalize, e as castArray, u as chain, d as chunk, f as clone, p as cloneDeep, m as cloneDeepWith, h as cloneWith, g as compact, _ as curry, t as debounce, b as defaultTo, v as defaults, y as defaultsDeep, x as difference, S as escape, C as findKey, w as flattenDeep, T as flow, E as get, D as groupBy, O as has, k as intersection, A as invert, j as invertBy, M as kebabCase, N as mean, P as memoize, F as merge, I as mergeWith, i as move, r as noop, L as omit, R as omitBy, z as orderBy, B as partition, V as pick, H as pickBy, U as pullAll, W as result, G as sample, K as sampleSize, q as set, J as setWith, Y as shuffle, X as snakeCase, Z as sortBy, Q as startCase, n as throttle, $ as toPath, ee as truncate, te as union, ne as uniq, re as uniqueId, ie as unset, ae as update, oe as updateWith, se as upperCase, ce as upperFirst, le as without, ue as xor, de as zip };
|
|
68
69
|
/* 独立思考,明辨是非 */
|
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-15 11:14:52 星期三 山东省济南市 */
|
|
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