@unicom-cloud/ui-common 0.1.39 → 0.1.41
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 +20 -20
- 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 +29 -28
- 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 +44 -43
- 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 +37 -37
- 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 +11 -10
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.d.ts +3 -2
- package/hooks/use-set-state/index.js +5 -2
- 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 +20 -19
- 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 +9 -8
- 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 +468 -464
- package/package.json +1 -1
- package/progress/Progress.d.ts +24 -368
- package/progress/Progress.js +42 -41
- 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 +6 -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 +1 -0
- package/utils/dom.js +11 -8
- 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 +11 -10
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getScrollBarHeight.js +1 -1
- package/utils/getScrollBarSize.js +11 -10
- package/utils/getScrollBarWidth.js +1 -1
- package/utils/getStringLength.js +1 -1
- package/utils/include.js +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +217 -212
- package/utils/initAllLineClamp.d.ts +3 -0
- package/utils/initAllLineClamp.js +16 -0
- 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 +8 -8
- package/version/interface.d.ts +2 -0
- /package/{suspense-fallback-test → resize-observer}/style/index.css +0 -0
package/utils/index.js
CHANGED
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
|
|
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";
|
|
5
5
|
import { composeRef as ct, fillRef as lt, getNodeRef as ut, getReactElementRef as dt, supportNodeRef as ft, supportRef as pt, useComposeRef as mt } from "./ref.js";
|
|
6
6
|
import ht from "./findRootElement.js";
|
|
7
7
|
import { screenfull as gt } from "./screenfull.js";
|
|
8
|
-
import { canUseDOM as _t, contains as vt, focusAtEnd as yt, forceReflow as X,
|
|
9
|
-
import { CSS_VARIABLE_ELEMENT as
|
|
10
|
-
import { assign as
|
|
11
|
-
import
|
|
12
|
-
import { callbackOriginRef as
|
|
13
|
-
import { callOrReturn as
|
|
14
|
-
import { caseName as
|
|
15
|
-
import { className as
|
|
8
|
+
import { canUseDOM as _t, contains as vt, focusAtEnd as yt, forceReflow as X, getBody as bt, getBodyContainer as xt, getDOM as St, getDocument as Ct, getDocumentElement as wt, getElementCoordinates as Tt, getScrollElements as Et, getTopLevelOverlayContainer as Dt, off as Ot, on as kt, parentContainsChildren as At } from "./dom.js";
|
|
9
|
+
import { CSS_VARIABLE_ELEMENT as jt, DAYJS_DEFAULT_FORMAT as Mt, DAYJS_DEFAULT_FORMAT_WITH_TIME as Nt, NOOP as Pt, PREFIX_CLASS as Ft, UI_PC_KEY as It, UI_PC_THEME_DARK_CLASS_NAME as Lt } from "./constants.js";
|
|
10
|
+
import { assign as Rt, assignIn as zt, at as Bt, camelCase as Vt, capitalize as Ht, castArray as Ut, chain as Wt, chunk as Gt, clone as Kt, cloneDeep as qt, cloneDeepWith as Jt, cloneWith as Yt, compact as Xt, curry as Zt, debounce as Qt, defaultTo as $t, defaults as en, defaultsDeep as Z, difference as tn, escape as nn, findKey as rn, flattenDeep as an, flow as on, get as sn, groupBy as cn, has as ln, intersection as un, invert as dn, invertBy as fn, kebabCase as pn, mean as mn, memoize as hn, merge as gn, mergeWith as _n, move as vn, noop as yn, omit as bn, omitBy as xn, orderBy as Sn, partition as Cn, pick as wn, pickBy as Tn, pullAll as En, result as Dn, sample as On, sampleSize as kn, set as An, setWith as jn, shuffle as Mn, snakeCase as Nn, sortBy as Pn, startCase as Fn, throttle as In, toPath as Ln, truncate as Rn, union as zn, uniq as Bn, uniqueId as Vn, unset as Hn, update as Un, updateWith as Wn, upperCase as Gn, upperFirst as Kn, without as qn, xor as Jn, zip as Yn } from "./lodash.js";
|
|
11
|
+
import Xn from "./mergeProps.js";
|
|
12
|
+
import { callbackOriginRef as Zn } from "./callbackOriginRef.js";
|
|
13
|
+
import { callOrReturn as Qn } from "./callOrReturn.js";
|
|
14
|
+
import { caseName as $n } from "./caseName.js";
|
|
15
|
+
import { className as er, cs as tr } 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 nr, convertToDurationBasedOnTimeUnits as rr, dateFormat as ir, dayjsFormat as ar } from "./date.js";
|
|
19
|
+
import { dayjs as or } from "./dayjs.js";
|
|
20
|
+
import { document_exports as sr } from "./document.js";
|
|
21
|
+
import { Emitter as cr } 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
|
|
35
|
-
import Cr from "./
|
|
36
|
-
import
|
|
23
|
+
import { fileRead as lr } from "./fileRead.js";
|
|
24
|
+
import { fileToDataURL as ur } from "./fileToDataURL.js";
|
|
25
|
+
import dr from "./fillNBSP.js";
|
|
26
|
+
import "./findScrollParent.js";
|
|
27
|
+
import fr from "./getHighlightText.js";
|
|
28
|
+
import pr from "./getHotkeyHandler.js";
|
|
29
|
+
import mr from "./getScrollBarSize.js";
|
|
30
|
+
import hr from "./getScrollBarHeight.js";
|
|
31
|
+
import gr from "./getScrollBarWidth.js";
|
|
32
|
+
import _r from "./getStringLength.js";
|
|
33
|
+
import vr from "./include.js";
|
|
34
|
+
import yr from "./intersectionObserver.js";
|
|
35
|
+
import { div as br, math as xr, minus as Sr, plus as Cr, times as wr } from "./math.js";
|
|
36
|
+
import Tr from "./mergedToString.js";
|
|
37
|
+
import Er from "./mutationObserver.js";
|
|
37
38
|
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
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
39
|
+
import { padEnd as Dr, padStart as Or } from "./pad.js";
|
|
40
|
+
import { pickDataAttributes as kr } from "./pick.js";
|
|
41
|
+
import Ar from "./resizeObserver.js";
|
|
42
|
+
import { saveAs as jr } from "./saveAs.js";
|
|
43
|
+
import Mr from "./scrollIntoViewIfNeeded.js";
|
|
44
|
+
import Nr, { render as Pr } from "./setCreateRoot.js";
|
|
45
|
+
import Fr, { removeDarkTheme as Ir } from "./setDarkTheme.js";
|
|
46
|
+
import Lr from "./setDir.js";
|
|
47
|
+
import Rr from "./setPrimaryColor.js";
|
|
48
|
+
import zr from "./setTheme.js";
|
|
49
|
+
import { HYPHEN as Br, replaceEmptyWithHyphen as Vr } from "./string.js";
|
|
50
|
+
import { fixedWidth as Hr, getStyle as Ur, setTransformStyle as Wr } from "./style.js";
|
|
51
|
+
import { tinycolor as Gr } from "./tinycolor.js";
|
|
52
|
+
import Kr from "./toArray.js";
|
|
53
|
+
import { findNodeBy as qr, getChildWithParentBy as Jr, getItemBy as Yr, getItemByID as Xr, getLabelFromDictionaryByValue as Zr, searchTree as Qr, tree as $r } from "./tree.js";
|
|
54
|
+
import { uuid as ei, uuidv4 as ti } from "./uuid.js";
|
|
55
|
+
import ni from "./tunnel.js";
|
|
56
|
+
import { Tween as ri, easing as ii } from "./tween.js";
|
|
57
|
+
import { PqbValidator as ai, Validator as oi, ValidatorArray as si, ValidatorBase as ci, ValidatorBoolean as li, ValidatorCustom as ui, ValidatorNumber as di, ValidatorObject as fi, ValidatorSchema as pi, ValidatorString as mi, ValidatorType as hi, validatorLocale as gi } from "./validate.js";
|
|
58
|
+
import _i from "./warning.js";
|
|
59
|
+
import vi from "./initAllLineClamp.js";
|
|
60
|
+
import { pinyin_exports as yi } from "./pinyin.js";
|
|
61
|
+
import { keyboardCode as bi } from "./keyboardCode.js";
|
|
62
|
+
import { COMPONENT_NAMES as xi } from "./names.js";
|
|
61
63
|
export * from "@unicom-cloud/utils/is";
|
|
62
64
|
export * from "@unicom-cloud/utils/object";
|
|
63
65
|
export * from "@unicom-cloud/utils/css";
|
|
@@ -66,105 +68,107 @@ export * from "@unicom-cloud/utils/file";
|
|
|
66
68
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
67
69
|
//#region components/common/utils/index.ts
|
|
68
70
|
var $ = /* @__PURE__ */ ee({
|
|
69
|
-
COMPONENT_NAMES: () =>
|
|
70
|
-
CSS_VARIABLE_ELEMENT: () =>
|
|
71
|
-
DAYJS_DEFAULT_FORMAT: () =>
|
|
72
|
-
DAYJS_DEFAULT_FORMAT_WITH_TIME: () =>
|
|
73
|
-
Emitter: () =>
|
|
74
|
-
HYPHEN: () =>
|
|
75
|
-
NOOP: () =>
|
|
76
|
-
PREFIX_CLASS: () =>
|
|
77
|
-
PqbValidator: () =>
|
|
78
|
-
Tween: () =>
|
|
79
|
-
UI_PC_KEY: () =>
|
|
80
|
-
UI_PC_THEME_DARK_CLASS_NAME: () =>
|
|
81
|
-
Validator: () =>
|
|
82
|
-
ValidatorArray: () =>
|
|
83
|
-
ValidatorBase: () =>
|
|
84
|
-
ValidatorBoolean: () =>
|
|
85
|
-
ValidatorCustom: () =>
|
|
86
|
-
ValidatorNumber: () =>
|
|
87
|
-
ValidatorObject: () =>
|
|
88
|
-
ValidatorSchema: () =>
|
|
89
|
-
ValidatorString: () =>
|
|
90
|
-
ValidatorType: () =>
|
|
91
|
-
assign: () =>
|
|
92
|
-
assignIn: () =>
|
|
93
|
-
at: () =>
|
|
94
|
-
callOrReturn: () =>
|
|
95
|
-
callbackOriginRef: () =>
|
|
96
|
-
camelCase: () =>
|
|
71
|
+
COMPONENT_NAMES: () => xi,
|
|
72
|
+
CSS_VARIABLE_ELEMENT: () => jt,
|
|
73
|
+
DAYJS_DEFAULT_FORMAT: () => Mt,
|
|
74
|
+
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => Nt,
|
|
75
|
+
Emitter: () => cr,
|
|
76
|
+
HYPHEN: () => Br,
|
|
77
|
+
NOOP: () => Pt,
|
|
78
|
+
PREFIX_CLASS: () => Ft,
|
|
79
|
+
PqbValidator: () => ai,
|
|
80
|
+
Tween: () => ri,
|
|
81
|
+
UI_PC_KEY: () => It,
|
|
82
|
+
UI_PC_THEME_DARK_CLASS_NAME: () => Lt,
|
|
83
|
+
Validator: () => oi,
|
|
84
|
+
ValidatorArray: () => si,
|
|
85
|
+
ValidatorBase: () => ci,
|
|
86
|
+
ValidatorBoolean: () => li,
|
|
87
|
+
ValidatorCustom: () => ui,
|
|
88
|
+
ValidatorNumber: () => di,
|
|
89
|
+
ValidatorObject: () => fi,
|
|
90
|
+
ValidatorSchema: () => pi,
|
|
91
|
+
ValidatorString: () => mi,
|
|
92
|
+
ValidatorType: () => hi,
|
|
93
|
+
assign: () => Rt,
|
|
94
|
+
assignIn: () => zt,
|
|
95
|
+
at: () => Bt,
|
|
96
|
+
callOrReturn: () => Qn,
|
|
97
|
+
callbackOriginRef: () => Zn,
|
|
98
|
+
camelCase: () => Vt,
|
|
97
99
|
canUseDOM: () => _t,
|
|
98
|
-
capitalize: () =>
|
|
99
|
-
caseName: () =>
|
|
100
|
-
castArray: () =>
|
|
101
|
-
chain: () =>
|
|
102
|
-
chunk: () =>
|
|
103
|
-
className: () =>
|
|
100
|
+
capitalize: () => Ht,
|
|
101
|
+
caseName: () => $n,
|
|
102
|
+
castArray: () => Ut,
|
|
103
|
+
chain: () => Wt,
|
|
104
|
+
chunk: () => Gt,
|
|
105
|
+
className: () => er,
|
|
104
106
|
clipboardCopy: () => Q,
|
|
105
|
-
clone: () =>
|
|
106
|
-
cloneDeep: () =>
|
|
107
|
-
cloneDeepWith: () =>
|
|
108
|
-
cloneWith: () =>
|
|
109
|
-
compact: () =>
|
|
107
|
+
clone: () => Kt,
|
|
108
|
+
cloneDeep: () => qt,
|
|
109
|
+
cloneDeepWith: () => Jt,
|
|
110
|
+
cloneWith: () => Yt,
|
|
111
|
+
compact: () => Xt,
|
|
110
112
|
composeRef: () => ct,
|
|
111
113
|
contains: () => vt,
|
|
112
|
-
convertTime: () =>
|
|
113
|
-
convertToDurationBasedOnTimeUnits: () =>
|
|
114
|
+
convertTime: () => nr,
|
|
115
|
+
convertToDurationBasedOnTimeUnits: () => rr,
|
|
114
116
|
copy: () => Q,
|
|
115
|
-
cs: () =>
|
|
116
|
-
curry: () =>
|
|
117
|
-
dateFormat: () =>
|
|
118
|
-
dayjs: () =>
|
|
119
|
-
dayjsFormat: () =>
|
|
120
|
-
debounce: () =>
|
|
121
|
-
defaultTo: () =>
|
|
122
|
-
defaults: () =>
|
|
123
|
-
defaultsDeep: () =>
|
|
124
|
-
difference: () =>
|
|
125
|
-
div: () =>
|
|
126
|
-
easing: () =>
|
|
127
|
-
escape: () =>
|
|
128
|
-
fileRead: () =>
|
|
129
|
-
fileToDataURL: () =>
|
|
130
|
-
fillNBSP: () =>
|
|
117
|
+
cs: () => tr,
|
|
118
|
+
curry: () => Zt,
|
|
119
|
+
dateFormat: () => ir,
|
|
120
|
+
dayjs: () => or,
|
|
121
|
+
dayjsFormat: () => ar,
|
|
122
|
+
debounce: () => Qt,
|
|
123
|
+
defaultTo: () => $t,
|
|
124
|
+
defaults: () => en,
|
|
125
|
+
defaultsDeep: () => Z,
|
|
126
|
+
difference: () => tn,
|
|
127
|
+
div: () => br,
|
|
128
|
+
easing: () => ii,
|
|
129
|
+
escape: () => nn,
|
|
130
|
+
fileRead: () => lr,
|
|
131
|
+
fileToDataURL: () => ur,
|
|
132
|
+
fillNBSP: () => dr,
|
|
131
133
|
fillRef: () => lt,
|
|
132
|
-
findKey: () =>
|
|
133
|
-
findNodeBy: () =>
|
|
134
|
+
findKey: () => rn,
|
|
135
|
+
findNodeBy: () => qr,
|
|
134
136
|
findRootElement: () => ht,
|
|
135
|
-
fixedWidth: () =>
|
|
136
|
-
flattenDeep: () =>
|
|
137
|
-
flow: () =>
|
|
137
|
+
fixedWidth: () => Hr,
|
|
138
|
+
flattenDeep: () => an,
|
|
139
|
+
flow: () => on,
|
|
138
140
|
focusAtEnd: () => yt,
|
|
139
141
|
forceReflow: () => X,
|
|
140
|
-
get: () =>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
142
|
+
get: () => sn,
|
|
143
|
+
getBody: () => bt,
|
|
144
|
+
getBodyContainer: () => xt,
|
|
145
|
+
getChildWithParentBy: () => Jr,
|
|
146
|
+
getDOM: () => St,
|
|
147
|
+
getDocument: () => Ct,
|
|
148
|
+
getDocumentElement: () => wt,
|
|
149
|
+
getElementCoordinates: () => Tt,
|
|
150
|
+
getHighlightText: () => fr,
|
|
151
|
+
getHotkeyHandler: () => pr,
|
|
152
|
+
getItemBy: () => Yr,
|
|
153
|
+
getItemByID: () => Xr,
|
|
154
|
+
getLabelFromDictionaryByValue: () => Zr,
|
|
152
155
|
getNodeRef: () => ut,
|
|
153
156
|
getReactElementRef: () => dt,
|
|
154
|
-
getScrollBarHeight: () =>
|
|
155
|
-
getScrollBarSize: () =>
|
|
156
|
-
getScrollBarWidth: () =>
|
|
157
|
-
getScrollElements: () =>
|
|
158
|
-
getStringLength: () =>
|
|
159
|
-
getStyle: () =>
|
|
160
|
-
getTopLevelOverlayContainer: () =>
|
|
161
|
-
groupBy: () =>
|
|
162
|
-
has: () =>
|
|
163
|
-
include: () =>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
getScrollBarHeight: () => hr,
|
|
158
|
+
getScrollBarSize: () => mr,
|
|
159
|
+
getScrollBarWidth: () => gr,
|
|
160
|
+
getScrollElements: () => Et,
|
|
161
|
+
getStringLength: () => _r,
|
|
162
|
+
getStyle: () => Ur,
|
|
163
|
+
getTopLevelOverlayContainer: () => Dt,
|
|
164
|
+
groupBy: () => cn,
|
|
165
|
+
has: () => ln,
|
|
166
|
+
include: () => vr,
|
|
167
|
+
initAllLineClamp: () => vi,
|
|
168
|
+
intersection: () => un,
|
|
169
|
+
intersectionObserver: () => yr,
|
|
170
|
+
invert: () => dn,
|
|
171
|
+
invertBy: () => fn,
|
|
168
172
|
is32Bit: () => te,
|
|
169
173
|
isAllChinese: () => ne,
|
|
170
174
|
isArguments: () => re,
|
|
@@ -273,85 +277,86 @@ var $ = /* @__PURE__ */ ee({
|
|
|
273
277
|
isWeakSet: () => rt,
|
|
274
278
|
isWindow: () => it,
|
|
275
279
|
isZero: () => at,
|
|
276
|
-
kebabCase: () =>
|
|
277
|
-
keyboardCode: () =>
|
|
278
|
-
math: () =>
|
|
279
|
-
mean: () =>
|
|
280
|
-
memoize: () =>
|
|
281
|
-
merge: () =>
|
|
282
|
-
mergeProps: () =>
|
|
283
|
-
mergeWith: () =>
|
|
284
|
-
mergedToString: () =>
|
|
285
|
-
minus: () =>
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
280
|
+
kebabCase: () => pn,
|
|
281
|
+
keyboardCode: () => bi,
|
|
282
|
+
math: () => xr,
|
|
283
|
+
mean: () => mn,
|
|
284
|
+
memoize: () => hn,
|
|
285
|
+
merge: () => gn,
|
|
286
|
+
mergeProps: () => Xn,
|
|
287
|
+
mergeWith: () => _n,
|
|
288
|
+
mergedToString: () => Tr,
|
|
289
|
+
minus: () => Sr,
|
|
290
|
+
move: () => vn,
|
|
291
|
+
mutationObserver: () => Er,
|
|
292
|
+
noop: () => yn,
|
|
293
|
+
off: () => Ot,
|
|
294
|
+
omit: () => bn,
|
|
295
|
+
omitBy: () => xn,
|
|
296
|
+
on: () => kt,
|
|
297
|
+
orderBy: () => Sn,
|
|
298
|
+
padEnd: () => Dr,
|
|
299
|
+
padStart: () => Or,
|
|
300
|
+
parentContainsChildren: () => At,
|
|
301
|
+
partition: () => Cn,
|
|
302
|
+
pick: () => wn,
|
|
303
|
+
pickBy: () => Tn,
|
|
304
|
+
pickDataAttributes: () => kr,
|
|
305
|
+
pinyin: () => yi,
|
|
306
|
+
plus: () => Cr,
|
|
307
|
+
pullAll: () => En,
|
|
303
308
|
reflow: () => X,
|
|
304
|
-
removeDarkTheme: () =>
|
|
305
|
-
render: () =>
|
|
306
|
-
replaceEmptyWithHyphen: () =>
|
|
307
|
-
resizeObserver: () =>
|
|
308
|
-
result: () =>
|
|
309
|
-
sample: () =>
|
|
310
|
-
sampleSize: () =>
|
|
311
|
-
saveAs: () =>
|
|
309
|
+
removeDarkTheme: () => Ir,
|
|
310
|
+
render: () => Pr,
|
|
311
|
+
replaceEmptyWithHyphen: () => Vr,
|
|
312
|
+
resizeObserver: () => Ar,
|
|
313
|
+
result: () => Dn,
|
|
314
|
+
sample: () => On,
|
|
315
|
+
sampleSize: () => kn,
|
|
316
|
+
saveAs: () => jr,
|
|
312
317
|
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: () =>
|
|
318
|
+
scrollIntoViewIfNeeded: () => Mr,
|
|
319
|
+
searchTree: () => Qr,
|
|
320
|
+
set: () => An,
|
|
321
|
+
setCreateRoot: () => Nr,
|
|
322
|
+
setDarkTheme: () => Fr,
|
|
323
|
+
setDir: () => Lr,
|
|
324
|
+
setPrimaryColor: () => Rr,
|
|
325
|
+
setTheme: () => zr,
|
|
326
|
+
setTransformStyle: () => Wr,
|
|
327
|
+
setWith: () => jn,
|
|
328
|
+
shuffle: () => Mn,
|
|
329
|
+
snakeCase: () => Nn,
|
|
330
|
+
sortBy: () => Pn,
|
|
331
|
+
startCase: () => Fn,
|
|
327
332
|
supportNodeRef: () => ft,
|
|
328
333
|
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: () =>
|
|
334
|
+
throttle: () => In,
|
|
335
|
+
times: () => wr,
|
|
336
|
+
tinycolor: () => Gr,
|
|
337
|
+
toArray: () => Kr,
|
|
338
|
+
toPath: () => Ln,
|
|
339
|
+
tree: () => $r,
|
|
340
|
+
truncate: () => Rn,
|
|
341
|
+
tunnel: () => ni,
|
|
342
|
+
union: () => zn,
|
|
343
|
+
uniq: () => Bn,
|
|
344
|
+
uniqueId: () => Vn,
|
|
345
|
+
unset: () => Hn,
|
|
346
|
+
update: () => Un,
|
|
347
|
+
updateWith: () => Wn,
|
|
348
|
+
upperCase: () => Gn,
|
|
349
|
+
upperFirst: () => Kn,
|
|
345
350
|
useComposeRef: () => mt,
|
|
346
|
-
uuid: () =>
|
|
347
|
-
uuidv4: () =>
|
|
348
|
-
validatorLocale: () =>
|
|
349
|
-
warning: () =>
|
|
350
|
-
without: () =>
|
|
351
|
-
xor: () =>
|
|
352
|
-
zip: () =>
|
|
351
|
+
uuid: () => ei,
|
|
352
|
+
uuidv4: () => ti,
|
|
353
|
+
validatorLocale: () => gi,
|
|
354
|
+
warning: () => _i,
|
|
355
|
+
without: () => qn,
|
|
356
|
+
xor: () => Jn,
|
|
357
|
+
zip: () => Yn
|
|
353
358
|
});
|
|
354
|
-
e($,
|
|
359
|
+
e($, sr), e($, ot), e($, st);
|
|
355
360
|
//#endregion
|
|
356
|
-
export {
|
|
361
|
+
export { xi as COMPONENT_NAMES, jt as CSS_VARIABLE_ELEMENT, Mt as DAYJS_DEFAULT_FORMAT, Nt as DAYJS_DEFAULT_FORMAT_WITH_TIME, cr as Emitter, Br as HYPHEN, Pt as NOOP, Ft as PREFIX_CLASS, ai as PqbValidator, ri as Tween, It as UI_PC_KEY, Lt as UI_PC_THEME_DARK_CLASS_NAME, oi as Validator, si as ValidatorArray, ci as ValidatorBase, li as ValidatorBoolean, ui as ValidatorCustom, di as ValidatorNumber, fi as ValidatorObject, pi as ValidatorSchema, mi as ValidatorString, hi as ValidatorType, Rt as assign, zt as assignIn, Bt as at, Qn as callOrReturn, Zn as callbackOriginRef, Vt as camelCase, _t as canUseDOM, Ht as capitalize, $n as caseName, Ut as castArray, Wt as chain, Gt as chunk, er as className, Q as clipboardCopy, Q as copy, Kt as clone, qt as cloneDeep, Jt as cloneDeepWith, Yt as cloneWith, Xt as compact, ct as composeRef, vt as contains, nr as convertTime, rr as convertToDurationBasedOnTimeUnits, tr as cs, Zt as curry, ir as dateFormat, or as dayjs, ar as dayjsFormat, Qt as debounce, $t as defaultTo, en as defaults, Z as defaultsDeep, tn as difference, br as div, ii as easing, nn as escape, lr as fileRead, ur as fileToDataURL, dr as fillNBSP, lt as fillRef, rn as findKey, qr as findNodeBy, ht as findRootElement, Hr as fixedWidth, an as flattenDeep, on as flow, yt as focusAtEnd, X as forceReflow, X as reflow, sn as get, bt as getBody, xt as getBodyContainer, Jr as getChildWithParentBy, St as getDOM, Ct as getDocument, wt as getDocumentElement, Tt as getElementCoordinates, fr as getHighlightText, pr as getHotkeyHandler, Yr as getItemBy, Xr as getItemByID, Zr as getLabelFromDictionaryByValue, ut as getNodeRef, dt as getReactElementRef, hr as getScrollBarHeight, mr as getScrollBarSize, gr as getScrollBarWidth, Et as getScrollElements, _r as getStringLength, Ur as getStyle, Dt as getTopLevelOverlayContainer, cn as groupBy, ln as has, vr as include, vi as initAllLineClamp, un as intersection, yr as intersectionObserver, dn as invert, fn 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, pn as kebabCase, bi as keyboardCode, xr as math, mn as mean, hn as memoize, gn as merge, Xn as mergeProps, _n as mergeWith, Tr as mergedToString, Sr as minus, vn as move, Er as mutationObserver, yn as noop, Ot as off, bn as omit, xn as omitBy, kt as on, Sn as orderBy, Dr as padEnd, Or as padStart, At as parentContainsChildren, Cn as partition, wn as pick, Tn as pickBy, kr as pickDataAttributes, yi as pinyin, Cr as plus, En as pullAll, Ir as removeDarkTheme, Pr as render, Vr as replaceEmptyWithHyphen, Ar as resizeObserver, Dn as result, On as sample, kn as sampleSize, jr as saveAs, gt as screenfull, Mr as scrollIntoViewIfNeeded, Qr as searchTree, An as set, Nr as setCreateRoot, Fr as setDarkTheme, Lr as setDir, Rr as setPrimaryColor, zr as setTheme, Wr as setTransformStyle, jn as setWith, Mn as shuffle, Nn as snakeCase, Pn as sortBy, Fn as startCase, ft as supportNodeRef, pt as supportRef, In as throttle, wr as times, Gr as tinycolor, Kr as toArray, Ln as toPath, $r as tree, Rn as truncate, ni as tunnel, zn as union, Bn as uniq, Vn as uniqueId, Hn as unset, Un as update, Wn as updateWith, Gn as upperCase, Kn as upperFirst, mt as useComposeRef, $ as utils_exports, ei as uuid, ti as uuidv4, gi as validatorLocale, _i as warning, qn as without, Jn as xor, Yn as zip };
|
|
357
362
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
|
|
2
|
+
import { uuid as e } from "./uuid.js";
|
|
3
|
+
import { UI_COMMON_PREFIX as t } from "@unicom-cloud/utils/constants/ui";
|
|
4
|
+
//#region components/common/utils/initAllLineClamp.ts
|
|
5
|
+
var n;
|
|
6
|
+
function r(r = 999, i = t) {
|
|
7
|
+
if (n ||= e(), document.getElementById(n)) return;
|
|
8
|
+
let a = document.createElement("style");
|
|
9
|
+
a.id = n;
|
|
10
|
+
let o = "";
|
|
11
|
+
for (let e = 1; e <= r; e++) o += `.${i}-line-clamp-${e}{display:-webkit-box;display:-moz-box;display:flex;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;;-webkit-line-clamp:${e};line-clamp:${e}}`;
|
|
12
|
+
a.textContent = o, document.head.appendChild(a);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as default, r as initAllLineClamp };
|
|
16
|
+
/* 独立思考,明辨是非 */
|
package/utils/is.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-07-
|
|
1
|
+
/* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
|
|
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, };
|