@unicom-cloud/ui-common 0.1.31 → 0.1.32
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 +2 -2
- package/animation/index.js +1 -1
- package/animation/style/index.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 +2 -2
- 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 +1 -1
- package/development/constants.js +1 -1
- package/development/context.js +2 -2
- package/development/index.js +1 -1
- package/development/style/index.js +1 -1
- package/empty/Empty.js +1 -1
- package/empty/constants.js +1 -1
- package/empty/context.js +2 -2
- package/empty/index.js +1 -1
- package/empty/style/index.js +1 -1
- package/flex/Flex.js +1 -1
- package/flex/constants.js +1 -1
- package/flex/context.js +2 -2
- 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 +2 -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/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.d.ts +1 -0
- package/hooks/index.js +5 -4
- 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 +1 -1
- package/hooks/use-previous/index.js +1 -1
- package/hooks/use-raf-interval/index.js +1 -1
- package/hooks/use-raf-state/index.js +1 -1
- package/hooks/use-raf-timeout/index.js +1 -1
- package/hooks/use-reactive/index.js +1 -1
- package/hooks/use-ref-latest/index.js +1 -1
- package/hooks/use-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.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 +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.d.ts +6 -0
- package/hooks/use-throttle-fn-with-raf/index.js +25 -0
- 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 +2 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/index.js +71 -70
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/index.js +1 -1
- package/progress/style/index.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 +2 -2
- package/resize-observer/index.js +1 -1
- package/resize-observer/observerUtil.js +1 -1
- package/resize-observer/style/index.js +1 -1
- package/space/Space.js +1 -1
- package/space/constants.js +1 -1
- package/space/context.js +2 -2
- package/space/index.js +1 -1
- package/space/style/index.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 +2 -2
- package/suspense-fallback-test/index.js +1 -1
- package/suspense-fallback-test/style/index.js +1 -1
- package/test.js +1 -1
- package/timer/Timer.js +1 -1
- package/timer/constants.js +1 -1
- package/timer/context.js +2 -2
- package/timer/index.js +1 -1
- package/timer/style/index.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 +2 -2
- 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 +2 -2
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.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 +2 -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.d.ts +1 -1
- package/utils/index.js +47 -47
- package/utils/intersectionObserver.js +1 -1
- package/utils/is.js +1 -1
- package/utils/keyboardCode.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/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.js +5 -5
- package/utils/throttleByRequestAnimationFrame.d.ts +0 -6
- package/utils/throttleByRequestAnimationFrame.js +0 -18
package/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { __exportAll as ee, __reExport as te } from "../.virtual/_rolldown/runtime.js";
|
|
3
3
|
import { is32Bit as ne, isAllChinese as re, isArguments as e, isArray as t, isArrayAndNotEmpty as n, isArrayBuffer as r, isArrayEmpty as i, isArrayLike as a, isArrayLikeObject as o, isAscii as s, isAsyncFunction as c, isBase64 as l, isBigInt as u, isBlob as d, isBoolean as f, isBuffer as p, isChinese as m, isColorValue as h, isColorValue_ as g, isDOM as _, isDataURI as v, isDate as y, isDayjs as b, isElement as x, isElementByInstanceof as S, isEmail as C, isEmpty as w, isEmptyArray as T, isEmptyObject as E, isEmptyReactNode as D, isEmptyString as O, isEmptyValue as k, isEqual as A, isEqualWith as j, isError as M, isEventTarget as N, isExist as P, isFalse as F, isFile as I, isFinite as L, isFullWidth as R, isFunction as z, isHSL as B, isHTMLElement as V, isHalfWidth as H, isHash as U, isHexColor as W, isIMEI as G, isIP as K, isIPRange as q, isIdentityCard as J, isInteger as Y, isJSON as X, isJSON_String as ie, 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, isReadableStream as Ie, isRegExp as Le, isRgbColor as Re, isSVGElement as ze, isSafeInteger as Be, isScrollElement as Ve, isSemVer as He, isServerRendering as Ue, isSet as We, isSlug as Ge, isSparseArray as Ke, isString as qe, isStringAndExist as Je, isStringOrNumber as Ye, isStrongPassword as Xe, isSymbol as Ze, isThenable as Qe, isTrue as $e, isTypedArray as et, isURL as tt, isUUID as nt, isUndefined as rt, isUndefinedOrNull as it, isVariableWidth as at, isWeakMap as ot, isWeakSet as st, isWindow as ct, isZero as lt } from "./is.js";
|
|
4
4
|
import { object_exports as ut } from "./object.js";
|
|
@@ -16,6 +16,7 @@ import { clipboardCopy as $ } from "./copy.js";
|
|
|
16
16
|
import "./css.js";
|
|
17
17
|
import { convertTime as $n, convertToDurationBasedOnTimeUnits as er, dateFormat as tr, dayjsFormat as nr } from "./date.js";
|
|
18
18
|
import { dayjs as rr } from "./dayjs.js";
|
|
19
|
+
import "./document.js";
|
|
19
20
|
import { Emitter as ir } from "./emitter.js";
|
|
20
21
|
import "./file.js";
|
|
21
22
|
import { fileRead as ar } from "./fileRead.js";
|
|
@@ -46,26 +47,26 @@ import Fr from "./setPrimaryColor.js";
|
|
|
46
47
|
import Ir from "./setTheme.js";
|
|
47
48
|
import { HYPHEN as Lr, replaceEmptyWithHyphen as Rr } from "./string.js";
|
|
48
49
|
import { fixedWidth as zr, getStyle as Br, setTransformStyle as Vr } from "./style.js";
|
|
49
|
-
import Hr from "./
|
|
50
|
-
import
|
|
51
|
-
import Wr from "./
|
|
52
|
-
import {
|
|
53
|
-
import
|
|
54
|
-
import ei from "./
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import hi from "./
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import { COMPONENT_NAMES as vi } from "./names.js";
|
|
50
|
+
import { tinycolor as Hr } from "./tinycolor.js";
|
|
51
|
+
import Ur from "./toArray.js";
|
|
52
|
+
import { findNodeBy as Wr, getChildWithParentBy as Gr, getItemBy as Kr, getItemByID as qr, getLabelFromDictionaryByValue as Jr, searchTree as Yr, tree as Xr } from "./tree.js";
|
|
53
|
+
import { uuid as Zr, uuidv4 as Qr } from "./uuid.js";
|
|
54
|
+
import $r from "./tunnel.js";
|
|
55
|
+
import { Tween as ei, easing as ti } from "./tween.js";
|
|
56
|
+
import { PqbValidator as ni, Validator as ri, ValidatorArray as ii, ValidatorBase as ai, ValidatorBoolean as oi, ValidatorCustom as si, ValidatorNumber as ci, ValidatorObject as li, ValidatorSchema as ui, ValidatorString as di, ValidatorType as fi, validatorLocale as pi } from "./validate.js";
|
|
57
|
+
import mi from "./warning.js";
|
|
58
|
+
import { pinyin_exports as hi } from "./pinyin.js";
|
|
59
|
+
import { keyboardCode as gi } from "./keyboardCode.js";
|
|
60
|
+
import { COMPONENT_NAMES as _i } 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";
|
|
64
|
+
export * from "@unicom-cloud/utils/document";
|
|
64
65
|
export * from "@unicom-cloud/utils/file";
|
|
65
66
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
66
67
|
//#region components/common/utils/index.ts
|
|
67
|
-
var
|
|
68
|
-
COMPONENT_NAMES: () =>
|
|
68
|
+
var vi = /* @__PURE__ */ ee({
|
|
69
|
+
COMPONENT_NAMES: () => _i,
|
|
69
70
|
CSS_VARIABLE_ELEMENT: () => kt,
|
|
70
71
|
DAYJS_DEFAULT_FORMAT: () => At,
|
|
71
72
|
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => jt,
|
|
@@ -73,20 +74,20 @@ var yi = /* @__PURE__ */ ee({
|
|
|
73
74
|
HYPHEN: () => Lr,
|
|
74
75
|
NOOP: () => Mt,
|
|
75
76
|
PREFIX_CLASS: () => Nt,
|
|
76
|
-
PqbValidator: () =>
|
|
77
|
-
Tween: () =>
|
|
77
|
+
PqbValidator: () => ni,
|
|
78
|
+
Tween: () => ei,
|
|
78
79
|
UI_PC_KEY: () => Pt,
|
|
79
80
|
UI_PC_THEME_DARK_CLASS_NAME: () => Ft,
|
|
80
|
-
Validator: () =>
|
|
81
|
-
ValidatorArray: () =>
|
|
82
|
-
ValidatorBase: () =>
|
|
83
|
-
ValidatorBoolean: () =>
|
|
84
|
-
ValidatorCustom: () =>
|
|
85
|
-
ValidatorNumber: () =>
|
|
86
|
-
ValidatorObject: () =>
|
|
87
|
-
ValidatorSchema: () =>
|
|
88
|
-
ValidatorString: () =>
|
|
89
|
-
ValidatorType: () =>
|
|
81
|
+
Validator: () => ri,
|
|
82
|
+
ValidatorArray: () => ii,
|
|
83
|
+
ValidatorBase: () => ai,
|
|
84
|
+
ValidatorBoolean: () => oi,
|
|
85
|
+
ValidatorCustom: () => si,
|
|
86
|
+
ValidatorNumber: () => ci,
|
|
87
|
+
ValidatorObject: () => li,
|
|
88
|
+
ValidatorSchema: () => ui,
|
|
89
|
+
ValidatorString: () => di,
|
|
90
|
+
ValidatorType: () => fi,
|
|
90
91
|
assign: () => It,
|
|
91
92
|
assignIn: () => Lt,
|
|
92
93
|
at: () => Rt,
|
|
@@ -122,14 +123,14 @@ var yi = /* @__PURE__ */ ee({
|
|
|
122
123
|
defaultsDeep: () => $t,
|
|
123
124
|
difference: () => Q,
|
|
124
125
|
div: () => gr,
|
|
125
|
-
easing: () =>
|
|
126
|
+
easing: () => ti,
|
|
126
127
|
escape: () => en,
|
|
127
128
|
fileRead: () => ar,
|
|
128
129
|
fileToDataURL: () => or,
|
|
129
130
|
fillNBSP: () => sr,
|
|
130
131
|
fillRef: () => ft,
|
|
131
132
|
findKey: () => tn,
|
|
132
|
-
findNodeBy: () =>
|
|
133
|
+
findNodeBy: () => Wr,
|
|
133
134
|
findRootElement: () => vt,
|
|
134
135
|
fixedWidth: () => zr,
|
|
135
136
|
flattenDeep: () => nn,
|
|
@@ -138,14 +139,14 @@ var yi = /* @__PURE__ */ ee({
|
|
|
138
139
|
forceReflow: () => Z,
|
|
139
140
|
get: () => an,
|
|
140
141
|
getBodyContainer: () => St,
|
|
141
|
-
getChildWithParentBy: () =>
|
|
142
|
+
getChildWithParentBy: () => Gr,
|
|
142
143
|
getDOM: () => Ct,
|
|
143
144
|
getElementCoordinates: () => wt,
|
|
144
145
|
getHighlightText: () => cr,
|
|
145
146
|
getHotkeyHandler: () => lr,
|
|
146
|
-
getItemBy: () =>
|
|
147
|
-
getItemByID: () =>
|
|
148
|
-
getLabelFromDictionaryByValue: () =>
|
|
147
|
+
getItemBy: () => Kr,
|
|
148
|
+
getItemByID: () => qr,
|
|
149
|
+
getLabelFromDictionaryByValue: () => Jr,
|
|
149
150
|
getNodeRef: () => pt,
|
|
150
151
|
getReactElementRef: () => mt,
|
|
151
152
|
getScrollBarHeight: () => dr,
|
|
@@ -275,7 +276,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
275
276
|
isWindow: () => ct,
|
|
276
277
|
isZero: () => lt,
|
|
277
278
|
kebabCase: () => dn,
|
|
278
|
-
keyboardCode: () =>
|
|
279
|
+
keyboardCode: () => gi,
|
|
279
280
|
math: () => _r,
|
|
280
281
|
mean: () => fn,
|
|
281
282
|
memoize: () => pn,
|
|
@@ -298,7 +299,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
298
299
|
pick: () => xn,
|
|
299
300
|
pickBy: () => Sn,
|
|
300
301
|
pickDataAttributes: () => Tr,
|
|
301
|
-
pinyin: () =>
|
|
302
|
+
pinyin: () => hi,
|
|
302
303
|
plus: () => yr,
|
|
303
304
|
pullAll: () => Cn,
|
|
304
305
|
reflow: () => Z,
|
|
@@ -312,7 +313,7 @@ var yi = /* @__PURE__ */ ee({
|
|
|
312
313
|
saveAs: () => Dr,
|
|
313
314
|
screenfull: () => Or,
|
|
314
315
|
scrollIntoViewIfNeeded: () => kr,
|
|
315
|
-
searchTree: () =>
|
|
316
|
+
searchTree: () => Yr,
|
|
316
317
|
set: () => Dn,
|
|
317
318
|
setCreateRoot: () => Ar,
|
|
318
319
|
setDarkTheme: () => Mr,
|
|
@@ -328,14 +329,13 @@ var yi = /* @__PURE__ */ ee({
|
|
|
328
329
|
supportNodeRef: () => ht,
|
|
329
330
|
supportRef: () => gt,
|
|
330
331
|
throttle: () => Nn,
|
|
331
|
-
throttleByRequestAnimationFrame: () => Hr,
|
|
332
332
|
times: () => br,
|
|
333
|
-
tinycolor: () =>
|
|
334
|
-
toArray: () =>
|
|
333
|
+
tinycolor: () => Hr,
|
|
334
|
+
toArray: () => Ur,
|
|
335
335
|
toPath: () => Pn,
|
|
336
|
-
tree: () =>
|
|
336
|
+
tree: () => Xr,
|
|
337
337
|
truncate: () => Fn,
|
|
338
|
-
tunnel: () =>
|
|
338
|
+
tunnel: () => $r,
|
|
339
339
|
union: () => In,
|
|
340
340
|
uniq: () => Ln,
|
|
341
341
|
uniqueId: () => Rn,
|
|
@@ -345,15 +345,15 @@ var yi = /* @__PURE__ */ ee({
|
|
|
345
345
|
upperCase: () => Hn,
|
|
346
346
|
upperFirst: () => Un,
|
|
347
347
|
useComposeRef: () => _t,
|
|
348
|
-
uuid: () =>
|
|
349
|
-
uuidv4: () =>
|
|
350
|
-
validatorLocale: () =>
|
|
351
|
-
warning: () =>
|
|
348
|
+
uuid: () => Zr,
|
|
349
|
+
uuidv4: () => Qr,
|
|
350
|
+
validatorLocale: () => pi,
|
|
351
|
+
warning: () => mi,
|
|
352
352
|
without: () => Wn,
|
|
353
353
|
xor: () => Gn,
|
|
354
354
|
zip: () => Kn
|
|
355
355
|
});
|
|
356
|
-
te(
|
|
356
|
+
te(vi, ut);
|
|
357
357
|
//#endregion
|
|
358
|
-
export {
|
|
358
|
+
export { _i as COMPONENT_NAMES, kt as CSS_VARIABLE_ELEMENT, At as DAYJS_DEFAULT_FORMAT, jt as DAYJS_DEFAULT_FORMAT_WITH_TIME, ir as Emitter, Lr as HYPHEN, Mt as NOOP, Nt as PREFIX_CLASS, ni as PqbValidator, ei as Tween, Pt as UI_PC_KEY, Ft as UI_PC_THEME_DARK_CLASS_NAME, ri as Validator, ii as ValidatorArray, ai as ValidatorBase, oi as ValidatorBoolean, si as ValidatorCustom, ci as ValidatorNumber, li as ValidatorObject, ui as ValidatorSchema, di as ValidatorString, fi as ValidatorType, It as assign, Lt as assignIn, Rt as at, Yn as callOrReturn, Jn as callbackOriginRef, zt as camelCase, yt as canUseDOM, Bt as capitalize, Xn as caseName, Vt as castArray, Ht as chain, Ut as chunk, Zn as className, $ as clipboardCopy, $ as copy, Wt as clone, Gt as cloneDeep, Kt as cloneDeepWith, qt as cloneWith, Jt as compact, dt as composeRef, bt as contains, $n as convertTime, er as convertToDurationBasedOnTimeUnits, Qn as cs, Yt as curry, tr as dateFormat, rr as dayjs, nr as dayjsFormat, Xt as debounce, Zt as defaultTo, Qt as defaults, $t as defaultsDeep, Q as difference, gr as div, ti as easing, en as escape, ar as fileRead, or as fileToDataURL, sr as fillNBSP, ft as fillRef, tn as findKey, Wr as findNodeBy, vt as findRootElement, zr as fixedWidth, nn as flattenDeep, rn as flow, xt as focusAtEnd, Z as forceReflow, Z as reflow, an as get, St as getBodyContainer, Gr as getChildWithParentBy, Ct as getDOM, wt as getElementCoordinates, cr as getHighlightText, lr as getHotkeyHandler, Kr as getItemBy, qr as getItemByID, Jr as getLabelFromDictionaryByValue, pt as getNodeRef, mt as getReactElementRef, dr as getScrollBarHeight, ur as getScrollBarSize, fr as getScrollBarWidth, Tt as getScrollElements, pr as getStringLength, Br as getStyle, on as groupBy, sn as has, mr as include, cn as intersection, hr as intersectionObserver, ln as invert, un as invertBy, ne as is32Bit, re as isAllChinese, e as isArguments, t as isArray, n as isArrayAndNotEmpty, r as isArrayBuffer, i as isArrayEmpty, a as isArrayLike, o as isArrayLikeObject, s as isAscii, c as isAsyncFunction, l as isBase64, u as isBigInt, d as isBlob, f as isBoolean, p as isBuffer, m as isChinese, h as isColorValue, g as isColorValue_, _ as isDOM, v as isDataURI, y as isDate, b as isDayjs, x as isElement, S as isElementByInstanceof, C as isEmail, w as isEmpty, T as isEmptyArray, E as isEmptyObject, D as isEmptyReactNode, O as isEmptyString, k as isEmptyValue, A as isEqual, j as isEqualWith, M as isError, N as isEventTarget, P as isExist, F as isFalse, I as isFile, L as isFinite, R as isFullWidth, z as isFunction, B as isHSL, V as isHTMLElement, H as isHalfWidth, U as isHash, W as isHexColor, G as isIMEI, K as isIP, q as isIPRange, J as isIdentityCard, Y as isInteger, X as isJSON, ie 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 isReadableStream, Le as isRegExp, Re as isRgbColor, ze as isSVGElement, Be as isSafeInteger, Ve as isScrollElement, He as isSemVer, Ue as isServerRendering, We as isSet, Ge as isSlug, Ke as isSparseArray, qe as isString, Je as isStringAndExist, Ye as isStringOrNumber, Xe as isStrongPassword, Ze as isSymbol, Qe as isThenable, $e as isTrue, et as isTypedArray, tt as isURL, nt as isUUID, rt as isUndefined, it as isUndefinedOrNull, at as isVariableWidth, ot as isWeakMap, st as isWeakSet, ct as isWindow, lt as isZero, dn as kebabCase, gi as keyboardCode, _r as math, fn as mean, pn as memoize, mn as merge, qn as mergeProps, hn as mergeWith, xr as mergedToString, vr as minus, Sr as mutationObserver, gn as noop, Et as off, _n as omit, vn as omitBy, Dt as on, yn as orderBy, Cr as padEnd, wr as padStart, Ot as parentContainsChildren, bn as partition, xn as pick, Sn as pickBy, Tr as pickDataAttributes, hi as pinyin, yr as plus, Cn as pullAll, Nr as removeDarkTheme, jr as render, Rr as replaceEmptyWithHyphen, Er as resizeObserver, wn as result, Tn as sample, En as sampleSize, Dr as saveAs, Or as screenfull, kr as scrollIntoViewIfNeeded, Yr as searchTree, Dn as set, Ar as setCreateRoot, Mr as setDarkTheme, Pr as setDir, Fr as setPrimaryColor, Ir as setTheme, Vr as setTransformStyle, On as setWith, kn as shuffle, An as snakeCase, jn as sortBy, Mn as startCase, ht as supportNodeRef, gt as supportRef, Nn as throttle, br as times, Hr as tinycolor, Ur as toArray, Pn as toPath, Xr as tree, Fn as truncate, $r as tunnel, In as union, Ln as uniq, Rn as uniqueId, zn as unset, Bn as update, Vn as updateWith, Hn as upperCase, Un as upperFirst, _t as useComposeRef, vi as utils_exports, Zr as uuid, Qr as uuidv4, pi as validatorLocale, mi as warning, Wn as without, Gn as xor, Kn as zip };
|
|
359
359
|
/* 独立思考,明辨是非 */
|
package/utils/is.js
CHANGED
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.js
CHANGED
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
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
package/utils/mergedToString.js
CHANGED
package/utils/names.js
CHANGED
package/utils/object.js
CHANGED
package/utils/omit.js
CHANGED
package/utils/pad.js
CHANGED
package/utils/pick.js
CHANGED
package/utils/pinyin.js
CHANGED
package/utils/react19Adapter.js
CHANGED
package/utils/reactNode.js
CHANGED
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isFunction as e, isObjectLike as t, isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
|
|
3
3
|
import i from "../hooks/use-memo/index.js";
|
|
4
4
|
import { isValidElement as a } from "react";
|
package/utils/resizeObserver.js
CHANGED
package/utils/saveAs.js
CHANGED
package/utils/screenfull.js
CHANGED
package/utils/setCreateRoot.js
CHANGED
package/utils/setDarkTheme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isElementByInstanceof as e } from "./is.js";
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as t } from "./constants.js";
|
|
4
4
|
import { UI_PC_THEME_DARK_CLASS_NAME as n } from "@unicom-cloud/utils/constants/ui";
|
package/utils/setDir.js
CHANGED
package/utils/setPrimaryColor.js
CHANGED
package/utils/setTheme.js
CHANGED
package/utils/string.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { isEmptyReactNode as e } from "./is.js";
|
|
3
3
|
import { HYPHEN as t } from "@unicom-cloud/utils/constants/string";
|
|
4
4
|
import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
|
package/utils/style.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
package/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import e, { findNodeBy as t, getChildWithParentBy as n, getItemBy as r, getItemByID as i, getLabelFromDictionaryByValue as a, searchTree as o, default as s } from "@unicom-cloud/utils/tree";
|
|
3
3
|
export { s as default, t as findNodeBy, n as getChildWithParentBy, r as getItemBy, i as getItemByID, a as getLabelFromDictionaryByValue, o as searchTree, e as tree };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/tunnel.js
CHANGED
package/utils/tween.js
CHANGED
package/utils/uuid.js
CHANGED
package/utils/validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
import { PqbValidator as e, Validator as t, ValidatorArray as n, ValidatorBase as r, ValidatorBoolean as i, ValidatorCustom as a, ValidatorNumber as o, ValidatorObject as s, ValidatorSchema as c, ValidatorString as l, ValidatorType as u, validatorLocale as d } from "@unicom-cloud/utils/validate";
|
|
3
3
|
export { e as PqbValidator, t as Validator, n as ValidatorArray, r as ValidatorBase, i as ValidatorBoolean, a as ValidatorCustom, o as ValidatorNumber, s as ValidatorObject, c as ValidatorSchema, l as ValidatorString, u as ValidatorType, d as validatorLocale };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/warning.js
CHANGED
package/version/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25
|
|
1
|
+
/* 潘启宝 2026-06-25 17:54:51 星期四 山东省济南市 */
|
|
2
2
|
//#region components/common/version/index.ts
|
|
3
3
|
var e = {
|
|
4
4
|
name: "潘启宝",
|
|
5
|
-
date: "2026-06-25
|
|
5
|
+
date: "2026-06-25 17:54:50",
|
|
6
6
|
platform: "darwin",
|
|
7
7
|
arch: "arm64",
|
|
8
8
|
hostname: "Mac-mini-2.local",
|
|
@@ -10,8 +10,8 @@ var e = {
|
|
|
10
10
|
cpu: "Apple M4",
|
|
11
11
|
endianness: "LE",
|
|
12
12
|
release: "Darwin25.5.0",
|
|
13
|
-
uptime:
|
|
14
|
-
UUID: "
|
|
13
|
+
uptime: 290638,
|
|
14
|
+
UUID: "fbd4155c-2fd2-4a4e-bcc7-ba120a447107",
|
|
15
15
|
mac: "a2:36:02:3b:b8:e1",
|
|
16
16
|
version: {
|
|
17
17
|
node: "24.15.0",
|
|
@@ -21,7 +21,7 @@ var e = {
|
|
|
21
21
|
self: "0.0.0",
|
|
22
22
|
react: "19.2.7"
|
|
23
23
|
}
|
|
24
|
-
}, t = "2026-06-25
|
|
24
|
+
}, t = "2026-06-25 17:54:50", n = "1782381290958", r = "0.1.0";
|
|
25
25
|
//#endregion
|
|
26
26
|
export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
|
|
27
27
|
/* 独立思考,明辨是非 */
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-25 08:58:38 星期四 山东省济南市 */
|
|
2
|
-
import { isNumber as e } from "./is.js";
|
|
3
|
-
//#region components/common/utils/throttleByRequestAnimationFrame.ts
|
|
4
|
-
var { requestAnimationFrame: t, cancelAnimationFrame: n, setTimeout: r, clearTimeout: i } = window;
|
|
5
|
-
function a(r) {
|
|
6
|
-
let i = null;
|
|
7
|
-
function a(...e) {
|
|
8
|
-
return i && n(i), i = t(() => {
|
|
9
|
-
r(...e), i = null;
|
|
10
|
-
}), i;
|
|
11
|
-
}
|
|
12
|
-
return a.cancel = () => {
|
|
13
|
-
e(i) && n(i), i = null;
|
|
14
|
-
}, a;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { a as default, a as throttleByRequestAnimationFrame };
|
|
18
|
-
/* 独立思考,明辨是非 */
|