@unicom-cloud/ui-common 0.1.53 → 0.1.54
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/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 +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.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.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.js +1 -1
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +17 -15
- package/flex/FlexVertical.js +1 -1
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.js +1 -1
- package/flex/style/index.js +1 -1
- package/flex/utils.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/grid/constants.js +1 -1
- package/grid/context.js +1 -1
- package/grid/index.js +1 -1
- package/grid/style/index.js +1 -1
- package/grid/utils.js +1 -1
- package/higher-order/index.js +1 -4
- 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.d.ts +1 -0
- package/hooks/index.js +14 -13
- 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-drag-move/index.js +1 -1
- package/hooks/use-drop/index.js +2 -12
- 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 +4 -13
- 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-component-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 -4
- 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-file/index.d.ts +10 -0
- package/hooks/use-paste-file/index.js +30 -0
- package/hooks/use-paste-image/index.d.ts +2 -3
- package/hooks/use-paste-image/index.js +7 -18
- 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-ref-map/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 +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 +10 -10
- 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 +2 -6
- 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 +2 -6
- package/hooks/utils/depsAreSame.js +1 -1
- package/hooks/utils/depsEqual.js +1 -1
- package/hooks/utils/domTarget.js +1 -1
- package/hooks/utils/getDocumentOrShadow.js +1 -1
- package/hooks/utils/index.js +1 -1
- package/hooks/utils/isAppleDevice.js +1 -1
- package/hooks/utils/isBrowser.js +1 -1
- package/hooks/utils/isDev.js +1 -1
- package/hooks/utils/rect.js +1 -1
- package/hooks/utils/useDeepCompareWithTarget.js +1 -1
- package/hooks/utils/useEffectWithTarget.js +1 -1
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
- package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
- package/icons/file/File.js +1 -1
- package/icons/file/context.js +1 -1
- package/icons/file/index.js +1 -1
- package/icons/file/style/index.js +1 -1
- package/index.js +494 -497
- package/morphicons/core/interpolate.js +1 -1
- package/morphicons/core/normalize.js +1 -1
- package/morphicons/core/plan.js +4 -10
- package/morphicons/core/resample.js +1 -1
- package/morphicons/core/serialize.js +1 -1
- package/morphicons/core/spring.js +1 -1
- package/morphicons/dom/index.js +1 -1
- package/morphicons/index.js +1 -1
- package/morphicons/react/index.js +1 -1
- package/package.json +1 -1
- package/progress/Progress.js +1 -1
- package/progress/constants.js +1 -1
- package/progress/context.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 +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.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 +41 -40
- package/space/SpaceVertical.js +6 -5
- package/space/constants.js +1 -1
- package/space/context.js +6 -5
- 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.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.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/utils/callOrReturn.js +1 -4
- package/utils/callbackOriginRef.js +1 -1
- package/utils/caseName.js +1 -4
- package/utils/className.js +1 -4
- package/utils/confetti.js +2 -2
- package/utils/constants.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/createRoot.js +15 -15
- package/utils/css.js +1 -1
- package/utils/date.js +1 -4
- package/utils/dayjs.js +12 -11
- package/utils/document.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/emitter.js +1 -4
- package/utils/file.js +1 -1
- package/utils/fileRead.js +1 -4
- package/utils/fileToDataURL.js +1 -4
- package/utils/fillNBSP.js +1 -1
- package/utils/getCompatProp.js +1 -1
- package/utils/getElement.js +13 -13
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.js +1 -1
- package/utils/getPrefixCls.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/getUrlSearchParam.js +1 -1
- package/utils/index.d.ts +0 -2
- package/utils/index.js +207 -212
- package/utils/initAllLineClamp.js +1 -1
- package/utils/injectLineClamp.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 +2 -1
- package/utils/lodash.js +12 -11
- package/utils/math.js +1 -4
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.js +1 -1
- package/utils/migrateLegacyProps.js +1 -1
- package/utils/mutationObserver.js +1 -1
- package/utils/names.js +21 -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 -4
- 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 -4
- package/utils/screenfull.js +1 -4
- package/utils/scrollIntoViewIfNeeded.js +1 -1
- package/utils/scrollTo.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 +2 -3
- package/utils/toArray.js +1 -1
- package/utils/tree.js +1 -4
- package/utils/tunnel.js +1 -1
- package/utils/uuid.js +1 -4
- package/utils/validate.d.ts +2 -2
- package/utils/validate.js +1 -4
- package/utils/warning.js +1 -1
- package/version/index.js +10 -10
- package/utils/include.d.ts +0 -3
- package/utils/include.js +0 -13
- package/utils/tween.d.ts +0 -1
- package/utils/tween.js +0 -6
package/utils/index.js
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { __exportAll as ee, __reExport as e } from "../.virtual/_rolldown/runtime.js";
|
|
4
4
|
import { object_exports as te } from "./object.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import qe from "./
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import Z from "./
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { caseName as
|
|
16
|
-
import { className as
|
|
17
|
-
import { confetti as
|
|
18
|
-
import { CSS_VARIABLE_ELEMENT as
|
|
5
|
+
import { callOrReturn as ne } from "./callOrReturn.js";
|
|
6
|
+
import { assign as re, assignIn as ie, at as t, camelCase as n, capitalize as r, castArray as i, chain as a, chunk as o, clamp as s, clone as c, cloneDeep as l, cloneDeepWith as u, cloneWith as d, compact as f, curry as p, debounce as m, defaultTo as h, defaults as g, defaultsDeep as _, difference as v, escape as y, extend as b, findKey as x, first as S, flatten as C, flattenDeep as w, flow as T, get as E, groupBy as D, has as O, hasIn as k, intersection as A, invert as j, invertBy as M, invoke as N, kebabCase as P, last as F, mapKeys as I, mapValues as L, mean as R, memoize as z, merge as B, mergeWith as V, move as H, noop as U, omit as W, omitBy as G, orderBy as K, partition as q, pick as J, pickBy as Y, pullAll as ae, result as oe, sample as se, sampleSize as ce, set as le, setWith as ue, shuffle as de, snakeCase as fe, sortBy as pe, startCase as me, swap as he, throttle as ge, toPath as _e, toSwapped as ve, truncate as ye, union as be, uniq as xe, uniqBy as Se, uniqueId as Ce, unset as we, update as Te, updateWith as Ee, upperCase as De, upperFirst as Oe, without as ke, xor as Ae, zip as je } from "./lodash.js";
|
|
7
|
+
import { isCompositeTypeElement as Me, isEmptyChildren as Ne, isEmptyReactNode as Pe, isReact18 as Fe, isReact19 as Ie, isReactClassComponent as Le, isReactComponent as Re, isReactComponentAndNotFragment as ze, isReactFunctionalComponent as Be, isServerRendering as Ve } from "./is.js";
|
|
8
|
+
import { composeRef as He, fillRef as Ue, getNodeRef as We, getReactElementRef as Ge, supportNodeRef as Ke, supportRef as qe, useComposeRef as Je } from "./ref.js";
|
|
9
|
+
import Ye from "./getElement.js";
|
|
10
|
+
import { screenfull as Xe } from "./screenfull.js";
|
|
11
|
+
import { canUseDOM as Ze, contains as Qe, findSingleChainDescendantByStyle as $e, focusAtEnd as et, forceReflow as X, getBody as tt, getBodyContainer as nt, getClientRects as rt, getDOM as it, getDocument as at, getDocumentElement as ot, getElementCoordinates as st, getElementOuterSize as ct, getHead as lt, getScrollElements as ut, getTextLineCount as Z, getTopLevelOverlayContainer as dt, isSingleLine as ft, off as pt, on as mt, parentContainsChildren as ht } from "./dom.js";
|
|
12
|
+
import gt from "./mergeProps.js";
|
|
13
|
+
import _t from "./migrateLegacyProps.js";
|
|
14
|
+
import { callbackOriginRef as vt } from "./callbackOriginRef.js";
|
|
15
|
+
import { caseName as yt } from "./caseName.js";
|
|
16
|
+
import { className as bt, cls as xt, clsx as St, cs as Ct } from "./className.js";
|
|
17
|
+
import { confetti as wt, fire as Tt } from "./confetti.js";
|
|
18
|
+
import { CSS_VARIABLE_ELEMENT as Et, DAYJS_DEFAULT_FORMAT as Dt, DAYJS_DEFAULT_FORMAT_WITH_TIME as Ot, PREFIX_CLASS as kt, constants_exports as At } from "./constants.js";
|
|
19
19
|
import { clipboardCopy as Q } from "./copy.js";
|
|
20
|
-
import { createRoot as
|
|
20
|
+
import { createRoot as jt, render as Mt, setCreateRoot as Nt } from "./createRoot.js";
|
|
21
21
|
import "./css.js";
|
|
22
|
-
import { convertTime as
|
|
23
|
-
import { dayjs as
|
|
24
|
-
import { document_exports as
|
|
25
|
-
import { Emitter as
|
|
22
|
+
import { convertTime as Pt, convertToDurationBasedOnTimeUnits as Ft, dateFormat as It, dayjsFormat as Lt } from "./date.js";
|
|
23
|
+
import { dayjs as Rt } from "./dayjs.js";
|
|
24
|
+
import { document_exports as zt } from "./document.js";
|
|
25
|
+
import { Emitter as Bt } from "./emitter.js";
|
|
26
26
|
import "./file.js";
|
|
27
|
-
import { fileRead as
|
|
28
|
-
import { fileToDataURL as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
27
|
+
import { fileRead as Vt } from "./fileRead.js";
|
|
28
|
+
import { fileToDataURL as Ht } from "./fileToDataURL.js";
|
|
29
|
+
import Ut from "./fillNBSP.js";
|
|
30
|
+
import Wt from "./getCompatProp.js";
|
|
31
|
+
import Gt from "./getHighlightText.js";
|
|
32
|
+
import Kt from "./getHotkeyHandler.js";
|
|
33
|
+
import qt from "./getPrefixCls.js";
|
|
34
|
+
import Jt from "./getScrollBarSize.js";
|
|
35
|
+
import Yt from "./getScrollBarHeight.js";
|
|
36
|
+
import Xt from "./getScrollBarWidth.js";
|
|
37
37
|
import "./getScrollParent.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import $t from "./include.js";
|
|
38
|
+
import Zt from "./getStringLength.js";
|
|
39
|
+
import Qt, { getQueryParam as $t } from "./getUrlSearchParam.js";
|
|
41
40
|
import { uuid as en, uuidv4 as tn } from "./uuid.js";
|
|
42
41
|
import nn from "./initAllLineClamp.js";
|
|
43
42
|
import rn from "./intersectionObserver.js";
|
|
@@ -60,11 +59,10 @@ import { tinycolor as kn } from "./tinycolor.js";
|
|
|
60
59
|
import An from "./toArray.js";
|
|
61
60
|
import { findNodeBy as jn, getChildWithParentBy as Mn, getItemBy as Nn, getItemByID as Pn, getLabelFromDictionaryByValue as Fn, searchTree as In, tree as Ln } from "./tree.js";
|
|
62
61
|
import Rn from "./tunnel.js";
|
|
63
|
-
import {
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import {
|
|
67
|
-
import { COMPONENT_NAMES as tr } from "./names.js";
|
|
62
|
+
import { Validator as zn, ValidatorArray as Bn, ValidatorBase as Vn, ValidatorBoolean as Hn, ValidatorCustom as Un, ValidatorNumber as Wn, ValidatorObject as Gn, ValidatorSchema as Kn, ValidatorString as qn, ValidatorType as Jn, validatorLocale as Yn } from "./validate.js";
|
|
63
|
+
import Xn from "./warning.js";
|
|
64
|
+
import { keyboardCode as Zn } from "./keyboardCode.js";
|
|
65
|
+
import { COMPONENT_NAMES as Qn } from "./names.js";
|
|
68
66
|
export * from "@unicom-cloud/utils/is";
|
|
69
67
|
export * from "@unicom-cloud/utils/object";
|
|
70
68
|
export * from "@unicom-cloud/utils/css";
|
|
@@ -74,223 +72,220 @@ export * from "@unicom-cloud/utils/file";
|
|
|
74
72
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
75
73
|
//#region components/common/utils/index.ts
|
|
76
74
|
var $ = /* @__PURE__ */ ee({
|
|
77
|
-
COMPONENT_NAMES: () =>
|
|
78
|
-
CSS_VARIABLE_ELEMENT: () =>
|
|
79
|
-
DAYJS_DEFAULT_FORMAT: () =>
|
|
80
|
-
DAYJS_DEFAULT_FORMAT_WITH_TIME: () =>
|
|
81
|
-
Emitter: () =>
|
|
75
|
+
COMPONENT_NAMES: () => Qn,
|
|
76
|
+
CSS_VARIABLE_ELEMENT: () => Et,
|
|
77
|
+
DAYJS_DEFAULT_FORMAT: () => Dt,
|
|
78
|
+
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => Ot,
|
|
79
|
+
Emitter: () => Bt,
|
|
82
80
|
HYPHEN: () => wn,
|
|
83
|
-
PREFIX_CLASS: () =>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
clamp: () => o,
|
|
109
|
-
className: () => yt,
|
|
81
|
+
PREFIX_CLASS: () => kt,
|
|
82
|
+
Validator: () => zn,
|
|
83
|
+
ValidatorArray: () => Bn,
|
|
84
|
+
ValidatorBase: () => Vn,
|
|
85
|
+
ValidatorBoolean: () => Hn,
|
|
86
|
+
ValidatorCustom: () => Un,
|
|
87
|
+
ValidatorNumber: () => Wn,
|
|
88
|
+
ValidatorObject: () => Gn,
|
|
89
|
+
ValidatorSchema: () => Kn,
|
|
90
|
+
ValidatorString: () => qn,
|
|
91
|
+
ValidatorType: () => Jn,
|
|
92
|
+
assign: () => re,
|
|
93
|
+
assignIn: () => ie,
|
|
94
|
+
at: () => t,
|
|
95
|
+
callOrReturn: () => ne,
|
|
96
|
+
callbackOriginRef: () => vt,
|
|
97
|
+
camelCase: () => n,
|
|
98
|
+
canUseDOM: () => Ze,
|
|
99
|
+
capitalize: () => r,
|
|
100
|
+
caseName: () => yt,
|
|
101
|
+
castArray: () => i,
|
|
102
|
+
chain: () => a,
|
|
103
|
+
chunk: () => o,
|
|
104
|
+
clamp: () => s,
|
|
105
|
+
className: () => bt,
|
|
110
106
|
clipboardCopy: () => Q,
|
|
111
|
-
clone: () =>
|
|
112
|
-
cloneDeep: () =>
|
|
113
|
-
cloneDeepWith: () =>
|
|
114
|
-
cloneWith: () =>
|
|
115
|
-
cls: () =>
|
|
116
|
-
clsx: () =>
|
|
117
|
-
compact: () =>
|
|
118
|
-
composeRef: () =>
|
|
119
|
-
confetti: () =>
|
|
120
|
-
contains: () =>
|
|
121
|
-
convertTime: () =>
|
|
122
|
-
convertToDurationBasedOnTimeUnits: () =>
|
|
107
|
+
clone: () => c,
|
|
108
|
+
cloneDeep: () => l,
|
|
109
|
+
cloneDeepWith: () => u,
|
|
110
|
+
cloneWith: () => d,
|
|
111
|
+
cls: () => xt,
|
|
112
|
+
clsx: () => St,
|
|
113
|
+
compact: () => f,
|
|
114
|
+
composeRef: () => He,
|
|
115
|
+
confetti: () => wt,
|
|
116
|
+
contains: () => Qe,
|
|
117
|
+
convertTime: () => Pt,
|
|
118
|
+
convertToDurationBasedOnTimeUnits: () => Ft,
|
|
123
119
|
copy: () => Q,
|
|
124
|
-
createRoot: () =>
|
|
125
|
-
cs: () =>
|
|
126
|
-
curry: () =>
|
|
127
|
-
dateFormat: () =>
|
|
128
|
-
dayjs: () =>
|
|
129
|
-
dayjsFormat: () =>
|
|
130
|
-
debounce: () =>
|
|
131
|
-
defaultTo: () =>
|
|
132
|
-
defaults: () =>
|
|
133
|
-
defaultsDeep: () =>
|
|
134
|
-
difference: () =>
|
|
120
|
+
createRoot: () => jt,
|
|
121
|
+
cs: () => Ct,
|
|
122
|
+
curry: () => p,
|
|
123
|
+
dateFormat: () => It,
|
|
124
|
+
dayjs: () => Rt,
|
|
125
|
+
dayjsFormat: () => Lt,
|
|
126
|
+
debounce: () => m,
|
|
127
|
+
defaultTo: () => h,
|
|
128
|
+
defaults: () => g,
|
|
129
|
+
defaultsDeep: () => _,
|
|
130
|
+
difference: () => v,
|
|
135
131
|
div: () => an,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
findKey: () => b,
|
|
132
|
+
escape: () => y,
|
|
133
|
+
extend: () => b,
|
|
134
|
+
fileRead: () => Vt,
|
|
135
|
+
fileToDataURL: () => Ht,
|
|
136
|
+
fillNBSP: () => Ut,
|
|
137
|
+
fillRef: () => Ue,
|
|
138
|
+
findKey: () => x,
|
|
144
139
|
findNodeBy: () => jn,
|
|
145
|
-
findSingleChainDescendantByStyle: () =>
|
|
146
|
-
fire: () =>
|
|
147
|
-
first: () =>
|
|
140
|
+
findSingleChainDescendantByStyle: () => $e,
|
|
141
|
+
fire: () => Tt,
|
|
142
|
+
first: () => S,
|
|
148
143
|
fixedWidth: () => En,
|
|
149
|
-
flatten: () =>
|
|
150
|
-
flattenDeep: () =>
|
|
151
|
-
flow: () =>
|
|
152
|
-
focusAtEnd: () =>
|
|
144
|
+
flatten: () => C,
|
|
145
|
+
flattenDeep: () => w,
|
|
146
|
+
flow: () => T,
|
|
147
|
+
focusAtEnd: () => et,
|
|
153
148
|
forceReflow: () => X,
|
|
154
|
-
get: () =>
|
|
155
|
-
getBody: () =>
|
|
156
|
-
getBodyContainer: () =>
|
|
149
|
+
get: () => E,
|
|
150
|
+
getBody: () => tt,
|
|
151
|
+
getBodyContainer: () => nt,
|
|
157
152
|
getChildWithParentBy: () => Mn,
|
|
158
|
-
getClientRects: () =>
|
|
159
|
-
getCompatProp: () =>
|
|
160
|
-
getDOM: () =>
|
|
161
|
-
getDocument: () =>
|
|
162
|
-
getDocumentElement: () =>
|
|
163
|
-
getElement: () =>
|
|
164
|
-
getElementCoordinates: () =>
|
|
165
|
-
getElementOuterSize: () =>
|
|
166
|
-
getHead: () =>
|
|
167
|
-
getHighlightText: () =>
|
|
168
|
-
getHotkeyHandler: () =>
|
|
153
|
+
getClientRects: () => rt,
|
|
154
|
+
getCompatProp: () => Wt,
|
|
155
|
+
getDOM: () => it,
|
|
156
|
+
getDocument: () => at,
|
|
157
|
+
getDocumentElement: () => ot,
|
|
158
|
+
getElement: () => Ye,
|
|
159
|
+
getElementCoordinates: () => st,
|
|
160
|
+
getElementOuterSize: () => ct,
|
|
161
|
+
getHead: () => lt,
|
|
162
|
+
getHighlightText: () => Gt,
|
|
163
|
+
getHotkeyHandler: () => Kt,
|
|
169
164
|
getItemBy: () => Nn,
|
|
170
165
|
getItemByID: () => Pn,
|
|
171
166
|
getLabelFromDictionaryByValue: () => Fn,
|
|
172
|
-
getNodeRef: () =>
|
|
173
|
-
getPrefixCls: () =>
|
|
174
|
-
getQueryParam: () =>
|
|
175
|
-
getReactElementRef: () =>
|
|
176
|
-
getScrollBarHeight: () =>
|
|
177
|
-
getScrollBarSize: () =>
|
|
178
|
-
getScrollBarWidth: () =>
|
|
179
|
-
getScrollElements: () =>
|
|
180
|
-
getStringLength: () =>
|
|
167
|
+
getNodeRef: () => We,
|
|
168
|
+
getPrefixCls: () => qt,
|
|
169
|
+
getQueryParam: () => $t,
|
|
170
|
+
getReactElementRef: () => Ge,
|
|
171
|
+
getScrollBarHeight: () => Yt,
|
|
172
|
+
getScrollBarSize: () => Jt,
|
|
173
|
+
getScrollBarWidth: () => Xt,
|
|
174
|
+
getScrollElements: () => ut,
|
|
175
|
+
getStringLength: () => Zt,
|
|
181
176
|
getStyle: () => Dn,
|
|
182
|
-
getTextLineCount: () =>
|
|
183
|
-
getTopLevelOverlayContainer: () =>
|
|
184
|
-
getUrlSearchParam: () =>
|
|
185
|
-
groupBy: () =>
|
|
186
|
-
has: () =>
|
|
187
|
-
hasIn: () =>
|
|
188
|
-
include: () => $t,
|
|
177
|
+
getTextLineCount: () => Z,
|
|
178
|
+
getTopLevelOverlayContainer: () => dt,
|
|
179
|
+
getUrlSearchParam: () => Qt,
|
|
180
|
+
groupBy: () => D,
|
|
181
|
+
has: () => O,
|
|
182
|
+
hasIn: () => k,
|
|
189
183
|
initAllLineClamp: () => nn,
|
|
190
|
-
intersection: () =>
|
|
184
|
+
intersection: () => A,
|
|
191
185
|
intersectionObserver: () => rn,
|
|
192
|
-
invert: () =>
|
|
193
|
-
invertBy: () =>
|
|
194
|
-
invoke: () =>
|
|
195
|
-
isCompositeTypeElement: () =>
|
|
196
|
-
isEmptyChildren: () =>
|
|
197
|
-
isEmptyReactNode: () =>
|
|
198
|
-
isReact18: () =>
|
|
199
|
-
isReact19: () =>
|
|
200
|
-
isReactClassComponent: () =>
|
|
201
|
-
isReactComponent: () =>
|
|
202
|
-
isReactComponentAndNotFragment: () =>
|
|
203
|
-
isReactFunctionalComponent: () =>
|
|
204
|
-
isServerRendering: () =>
|
|
205
|
-
isSingleLine: () =>
|
|
206
|
-
kebabCase: () =>
|
|
207
|
-
keyboardCode: () =>
|
|
208
|
-
last: () =>
|
|
209
|
-
mapKeys: () =>
|
|
210
|
-
mapValues: () =>
|
|
186
|
+
invert: () => j,
|
|
187
|
+
invertBy: () => M,
|
|
188
|
+
invoke: () => N,
|
|
189
|
+
isCompositeTypeElement: () => Me,
|
|
190
|
+
isEmptyChildren: () => Ne,
|
|
191
|
+
isEmptyReactNode: () => Pe,
|
|
192
|
+
isReact18: () => Fe,
|
|
193
|
+
isReact19: () => Ie,
|
|
194
|
+
isReactClassComponent: () => Le,
|
|
195
|
+
isReactComponent: () => Re,
|
|
196
|
+
isReactComponentAndNotFragment: () => ze,
|
|
197
|
+
isReactFunctionalComponent: () => Be,
|
|
198
|
+
isServerRendering: () => Ve,
|
|
199
|
+
isSingleLine: () => ft,
|
|
200
|
+
kebabCase: () => P,
|
|
201
|
+
keyboardCode: () => Zn,
|
|
202
|
+
last: () => F,
|
|
203
|
+
mapKeys: () => I,
|
|
204
|
+
mapValues: () => L,
|
|
211
205
|
math: () => on,
|
|
212
|
-
mean: () =>
|
|
213
|
-
memoize: () =>
|
|
214
|
-
merge: () =>
|
|
215
|
-
mergeProps: () =>
|
|
216
|
-
mergeWith: () =>
|
|
206
|
+
mean: () => R,
|
|
207
|
+
memoize: () => z,
|
|
208
|
+
merge: () => B,
|
|
209
|
+
mergeProps: () => gt,
|
|
210
|
+
mergeWith: () => V,
|
|
217
211
|
mergedToString: () => un,
|
|
218
|
-
migrateLegacyProps: () =>
|
|
212
|
+
migrateLegacyProps: () => _t,
|
|
219
213
|
minus: () => sn,
|
|
220
|
-
move: () =>
|
|
214
|
+
move: () => H,
|
|
221
215
|
mutationObserver: () => dn,
|
|
222
|
-
noop: () =>
|
|
223
|
-
off: () =>
|
|
224
|
-
omit: () =>
|
|
225
|
-
omitBy: () =>
|
|
226
|
-
on: () =>
|
|
227
|
-
orderBy: () =>
|
|
216
|
+
noop: () => U,
|
|
217
|
+
off: () => pt,
|
|
218
|
+
omit: () => W,
|
|
219
|
+
omitBy: () => G,
|
|
220
|
+
on: () => mt,
|
|
221
|
+
orderBy: () => K,
|
|
228
222
|
padEnd: () => fn,
|
|
229
223
|
padStart: () => pn,
|
|
230
|
-
parentContainsChildren: () =>
|
|
231
|
-
partition: () =>
|
|
232
|
-
pick: () =>
|
|
224
|
+
parentContainsChildren: () => ht,
|
|
225
|
+
partition: () => q,
|
|
226
|
+
pick: () => J,
|
|
233
227
|
pickAttributesByPrefixes: () => mn,
|
|
234
|
-
pickBy: () =>
|
|
228
|
+
pickBy: () => Y,
|
|
235
229
|
pickDataAriaAttributes: () => hn,
|
|
236
230
|
plus: () => cn,
|
|
237
|
-
pullAll: () =>
|
|
231
|
+
pullAll: () => ae,
|
|
238
232
|
reflow: () => X,
|
|
239
233
|
removeDarkTheme: () => bn,
|
|
240
|
-
render: () =>
|
|
234
|
+
render: () => Mt,
|
|
241
235
|
replaceEmptyWithHyphen: () => Tn,
|
|
242
236
|
resizeObserver: () => gn,
|
|
243
|
-
result: () =>
|
|
244
|
-
sample: () =>
|
|
245
|
-
sampleSize: () =>
|
|
237
|
+
result: () => oe,
|
|
238
|
+
sample: () => se,
|
|
239
|
+
sampleSize: () => ce,
|
|
246
240
|
saveAs: () => _n,
|
|
247
|
-
screenfull: () =>
|
|
241
|
+
screenfull: () => Xe,
|
|
248
242
|
scrollIntoViewIfNeeded: () => vn,
|
|
249
243
|
searchTree: () => In,
|
|
250
|
-
set: () =>
|
|
251
|
-
setCreateRoot: () =>
|
|
244
|
+
set: () => le,
|
|
245
|
+
setCreateRoot: () => Nt,
|
|
252
246
|
setDarkTheme: () => yn,
|
|
253
247
|
setDir: () => xn,
|
|
254
248
|
setPrimaryColor: () => Sn,
|
|
255
249
|
setTheme: () => Cn,
|
|
256
250
|
setTransformStyle: () => On,
|
|
257
|
-
setWith: () =>
|
|
258
|
-
shuffle: () =>
|
|
259
|
-
snakeCase: () =>
|
|
260
|
-
sortBy: () =>
|
|
261
|
-
startCase: () =>
|
|
262
|
-
supportNodeRef: () =>
|
|
263
|
-
supportRef: () =>
|
|
264
|
-
swap: () =>
|
|
265
|
-
throttle: () =>
|
|
251
|
+
setWith: () => ue,
|
|
252
|
+
shuffle: () => de,
|
|
253
|
+
snakeCase: () => fe,
|
|
254
|
+
sortBy: () => pe,
|
|
255
|
+
startCase: () => me,
|
|
256
|
+
supportNodeRef: () => Ke,
|
|
257
|
+
supportRef: () => qe,
|
|
258
|
+
swap: () => he,
|
|
259
|
+
throttle: () => ge,
|
|
266
260
|
times: () => ln,
|
|
267
261
|
tinycolor: () => kn,
|
|
268
262
|
toArray: () => An,
|
|
269
|
-
toPath: () =>
|
|
270
|
-
toSwapped: () =>
|
|
263
|
+
toPath: () => _e,
|
|
264
|
+
toSwapped: () => ve,
|
|
271
265
|
tree: () => Ln,
|
|
272
|
-
truncate: () =>
|
|
266
|
+
truncate: () => ye,
|
|
273
267
|
tunnel: () => Rn,
|
|
274
|
-
union: () =>
|
|
275
|
-
uniq: () =>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
268
|
+
union: () => be,
|
|
269
|
+
uniq: () => xe,
|
|
270
|
+
uniqBy: () => Se,
|
|
271
|
+
uniqueId: () => Ce,
|
|
272
|
+
unset: () => we,
|
|
273
|
+
update: () => Te,
|
|
274
|
+
updateWith: () => Ee,
|
|
275
|
+
upperCase: () => De,
|
|
276
|
+
upperFirst: () => Oe,
|
|
277
|
+
useComposeRef: () => Je,
|
|
283
278
|
uuid: () => en,
|
|
284
279
|
uuidv4: () => tn,
|
|
285
|
-
validatorLocale: () =>
|
|
286
|
-
warning: () =>
|
|
287
|
-
without: () =>
|
|
288
|
-
xor: () =>
|
|
289
|
-
zip: () =>
|
|
280
|
+
validatorLocale: () => Yn,
|
|
281
|
+
warning: () => Xn,
|
|
282
|
+
without: () => ke,
|
|
283
|
+
xor: () => Ae,
|
|
284
|
+
zip: () => je
|
|
290
285
|
});
|
|
291
|
-
import * as
|
|
292
|
-
e($,
|
|
286
|
+
import * as $n from "@unicom-cloud/utils/is";
|
|
287
|
+
e($, $n), e($, At), e($, zt), e($, te);
|
|
293
288
|
//#endregion
|
|
294
|
-
export {
|
|
289
|
+
export { Qn as COMPONENT_NAMES, Et as CSS_VARIABLE_ELEMENT, Dt as DAYJS_DEFAULT_FORMAT, Ot as DAYJS_DEFAULT_FORMAT_WITH_TIME, Bt as Emitter, wn as HYPHEN, kt as PREFIX_CLASS, zn as Validator, Bn as ValidatorArray, Vn as ValidatorBase, Hn as ValidatorBoolean, Un as ValidatorCustom, Wn as ValidatorNumber, Gn as ValidatorObject, Kn as ValidatorSchema, qn as ValidatorString, Jn as ValidatorType, re as assign, ie as assignIn, t as at, ne as callOrReturn, vt as callbackOriginRef, n as camelCase, Ze as canUseDOM, r as capitalize, yt as caseName, i as castArray, a as chain, o as chunk, s as clamp, bt as className, Q as clipboardCopy, Q as copy, c as clone, l as cloneDeep, u as cloneDeepWith, d as cloneWith, xt as cls, St as clsx, f as compact, He as composeRef, wt as confetti, Qe as contains, Pt as convertTime, Ft as convertToDurationBasedOnTimeUnits, jt as createRoot, Ct as cs, p as curry, It as dateFormat, Rt as dayjs, Lt as dayjsFormat, m as debounce, h as defaultTo, g as defaults, _ as defaultsDeep, v as difference, an as div, y as escape, b as extend, Vt as fileRead, Ht as fileToDataURL, Ut as fillNBSP, Ue as fillRef, x as findKey, jn as findNodeBy, $e as findSingleChainDescendantByStyle, Tt as fire, S as first, En as fixedWidth, C as flatten, w as flattenDeep, T as flow, et as focusAtEnd, X as forceReflow, X as reflow, E as get, tt as getBody, nt as getBodyContainer, Mn as getChildWithParentBy, rt as getClientRects, Wt as getCompatProp, it as getDOM, at as getDocument, ot as getDocumentElement, Ye as getElement, st as getElementCoordinates, ct as getElementOuterSize, lt as getHead, Gt as getHighlightText, Kt as getHotkeyHandler, Nn as getItemBy, Pn as getItemByID, Fn as getLabelFromDictionaryByValue, We as getNodeRef, qt as getPrefixCls, $t as getQueryParam, Ge as getReactElementRef, Yt as getScrollBarHeight, Jt as getScrollBarSize, Xt as getScrollBarWidth, ut as getScrollElements, Zt as getStringLength, Dn as getStyle, Z as getTextLineCount, dt as getTopLevelOverlayContainer, Qt as getUrlSearchParam, D as groupBy, O as has, k as hasIn, nn as initAllLineClamp, A as intersection, rn as intersectionObserver, j as invert, M as invertBy, N as invoke, Me as isCompositeTypeElement, Ne as isEmptyChildren, Pe as isEmptyReactNode, Fe as isReact18, Ie as isReact19, Le as isReactClassComponent, Re as isReactComponent, ze as isReactComponentAndNotFragment, Be as isReactFunctionalComponent, Ve as isServerRendering, ft as isSingleLine, P as kebabCase, Zn as keyboardCode, F as last, I as mapKeys, L as mapValues, on as math, R as mean, z as memoize, B as merge, gt as mergeProps, V as mergeWith, un as mergedToString, _t as migrateLegacyProps, sn as minus, H as move, dn as mutationObserver, U as noop, pt as off, W as omit, G as omitBy, mt as on, K as orderBy, fn as padEnd, pn as padStart, ht as parentContainsChildren, q as partition, J as pick, mn as pickAttributesByPrefixes, Y as pickBy, hn as pickDataAriaAttributes, cn as plus, ae as pullAll, bn as removeDarkTheme, Mt as render, Tn as replaceEmptyWithHyphen, gn as resizeObserver, oe as result, se as sample, ce as sampleSize, _n as saveAs, Xe as screenfull, vn as scrollIntoViewIfNeeded, In as searchTree, le as set, Nt as setCreateRoot, yn as setDarkTheme, xn as setDir, Sn as setPrimaryColor, Cn as setTheme, On as setTransformStyle, ue as setWith, de as shuffle, fe as snakeCase, pe as sortBy, me as startCase, Ke as supportNodeRef, qe as supportRef, he as swap, ge as throttle, ln as times, kn as tinycolor, An as toArray, _e as toPath, ve as toSwapped, Ln as tree, ye as truncate, Rn as tunnel, be as union, xe as uniq, Se as uniqBy, Ce as uniqueId, we as unset, Te as update, Ee as updateWith, De as upperCase, Oe as upperFirst, Je as useComposeRef, $ as utils_exports, en as uuid, tn as uuidv4, Yn as validatorLocale, Xn as warning, ke as without, Ae as xor, je as zip };
|
|
295
290
|
/* 欲穷千里目,更上一层楼 */
|
|
296
291
|
/* 独立思考,明辨是非 */
|
package/utils/injectLineClamp.js
CHANGED
package/utils/is.js
CHANGED
package/utils/keyboardCode.js
CHANGED
package/utils/lodash.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ import toPath from 'lodash/toPath';
|
|
|
65
65
|
import truncate from 'lodash/truncate';
|
|
66
66
|
import union from 'lodash/union';
|
|
67
67
|
import uniq from 'lodash/uniq';
|
|
68
|
+
import uniqBy from 'lodash/uniqBy';
|
|
68
69
|
import uniqueId from 'lodash/uniqueId';
|
|
69
70
|
import unset from 'lodash/unset';
|
|
70
71
|
import update from 'lodash/update';
|
|
@@ -74,4 +75,4 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
74
75
|
import without from 'lodash/without';
|
|
75
76
|
import xor from 'lodash/xor';
|
|
76
77
|
import zip from 'lodash/zip';
|
|
77
|
-
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
|
78
|
+
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, truncate, union, uniq, uniqBy, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
package/utils/lodash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-22 18:04:28 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "lodash/castArray";
|
|
4
4
|
import t from "lodash/debounce";
|
|
@@ -67,15 +67,16 @@ import ue from "lodash/toPath";
|
|
|
67
67
|
import de from "lodash/truncate";
|
|
68
68
|
import fe from "lodash/union";
|
|
69
69
|
import pe from "lodash/uniq";
|
|
70
|
-
import me from "lodash/
|
|
71
|
-
import he from "lodash/
|
|
72
|
-
import ge from "lodash/
|
|
73
|
-
import _e from "lodash/
|
|
74
|
-
import ve from "lodash/
|
|
75
|
-
import ye from "lodash/
|
|
76
|
-
import be from "lodash/
|
|
77
|
-
import xe from "lodash/
|
|
78
|
-
import Se from "lodash/
|
|
79
|
-
|
|
70
|
+
import me from "lodash/uniqBy";
|
|
71
|
+
import he from "lodash/uniqueId";
|
|
72
|
+
import ge from "lodash/unset";
|
|
73
|
+
import _e from "lodash/update";
|
|
74
|
+
import ve from "lodash/updateWith";
|
|
75
|
+
import ye from "lodash/upperCase";
|
|
76
|
+
import be from "lodash/upperFirst";
|
|
77
|
+
import xe from "lodash/without";
|
|
78
|
+
import Se from "lodash/xor";
|
|
79
|
+
import Ce from "lodash/zip";
|
|
80
|
+
export { a as assign, o as assignIn, s as at, c as camelCase, l as capitalize, e as castArray, u as chain, d as chunk, f as clamp, p as clone, m as cloneDeep, h as cloneDeepWith, g as cloneWith, _ as compact, v as curry, t as debounce, x as defaultTo, y as defaults, b as defaultsDeep, S as difference, C as escape, w as extend, T as findKey, E as first, D as flatten, O as flattenDeep, k as flow, A as get, j as groupBy, M as has, N as hasIn, P as intersection, F as invert, I as invertBy, L as invoke, R as kebabCase, z as last, B as mapKeys, V as mapValues, H as mean, U as memoize, W as merge, G as mergeWith, n as move, K as noop, q as omit, J as omitBy, Y as orderBy, X as partition, Z as pick, Q as pickBy, $ as pullAll, ee as result, te as sample, ne as sampleSize, re as set, ie as setWith, ae as shuffle, oe as snakeCase, se as sortBy, ce as startCase, r as swap, le as throttle, ue as toPath, i as toSwapped, de as truncate, fe as union, pe as uniq, me as uniqBy, he as uniqueId, ge as unset, _e as update, ve as updateWith, ye as upperCase, be as upperFirst, xe as without, Se as xor, Ce as zip };
|
|
80
81
|
/* 欲穷千里目,更上一层楼 */
|
|
81
82
|
/* 独立思考,明辨是非 */
|
package/utils/math.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
/* 世界因你而美丽 */
|
|
3
|
-
import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
|
|
4
|
-
export { a as default, t as div, e as math, n as minus, r as plus, i as times };
|
|
1
|
+
export { default, div, default as math, minus, plus, times } from "@unicom-cloud/utils/math";
|
|
5
2
|
/* 欲穷千里目,更上一层楼 */
|
|
6
3
|
/* 独立思考,明辨是非 */
|
package/utils/mergeProps.js
CHANGED
package/utils/mergedToString.js
CHANGED