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