@unicom-cloud/ui-common 0.1.53 → 0.1.55
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 +2 -3
- package/animation/Animation.js +2 -3
- package/animation/constants.js +2 -3
- package/animation/context.js +2 -3
- package/animation/index.js +2 -3
- package/animation/style/index.js +1 -1
- package/animation/utils.js +1 -1
- package/base/Base.js +2 -3
- package/base/constants.js +1 -1
- package/base/context.js +2 -3
- package/base/index.js +2 -3
- package/base/style/index.js +1 -1
- package/base/utils.js +1 -1
- package/border-beam/BorderBeam.js +2 -3
- package/border-beam/Effect.js +2 -3
- package/border-beam/constants.js +2 -3
- package/border-beam/context.js +2 -3
- package/border-beam/hooks/useBorderSize.js +2 -3
- package/border-beam/hooks/useChildDom.js +2 -3
- package/border-beam/index.js +2 -3
- package/border-beam/style/index.js +1 -1
- package/border-beam/utils.js +2 -3
- package/development/Development.js +2 -3
- package/development/constants.js +1 -1
- package/development/context.js +2 -3
- package/development/index.js +2 -3
- package/development/style/index.js +1 -1
- package/development/utils.js +1 -1
- package/empty/Empty.js +2 -3
- package/empty/constants.js +1 -1
- package/empty/context.js +2 -3
- package/empty/index.js +2 -3
- package/empty/style/index.js +1 -1
- package/empty/utils.js +1 -1
- package/flex/Flex.js +18 -17
- package/flex/FlexVertical.js +2 -3
- package/flex/constants.js +1 -1
- package/flex/context.js +2 -3
- package/flex/index.js +2 -3
- package/flex/style/index.js +1 -1
- package/flex/utils.js +2 -3
- package/grid/Grid.js +2 -3
- package/grid/Item.js +2 -3
- package/grid/constants.js +1 -1
- package/grid/context.js +2 -3
- package/grid/index.js +2 -3
- package/grid/style/index.js +1 -1
- package/grid/utils.js +2 -3
- package/higher-order/index.js +1 -4
- package/higher-order/with-speech-synthesis/context.js +2 -3
- package/higher-order/with-speech-synthesis/index.js +2 -3
- package/higher-order/with-speech-synthesis/style/index.js +1 -1
- package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +2 -3
- package/hoc/withContext.js +2 -3
- package/hooks/create-deep-compare-effect/index.js +2 -3
- package/hooks/create-update-effect/index.js +2 -3
- package/hooks/create-use-storage-state/index.js +2 -3
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +14 -13
- package/hooks/use-async-effect/index.js +2 -3
- package/hooks/use-boolean/index.js +2 -3
- package/hooks/use-click-away/index.js +2 -3
- package/hooks/use-computed-state/index.js +2 -3
- package/hooks/use-controllable-value/index.js +2 -3
- package/hooks/use-cookie-state/index.js +2 -3
- package/hooks/use-count-down/index.js +2 -3
- package/hooks/use-counter/index.js +2 -3
- package/hooks/use-create/index.js +2 -3
- package/hooks/use-creation/index.js +3 -4
- package/hooks/use-debounce/index.js +2 -3
- package/hooks/use-debounce-effect/index.js +2 -3
- package/hooks/use-debounce-fn/index.js +2 -3
- package/hooks/use-deep-compare-effect/index.js +2 -3
- package/hooks/use-deep-compare-layout-effect/index.js +2 -3
- package/hooks/use-document-visibility/index.js +2 -3
- package/hooks/use-drag/index.js +2 -3
- package/hooks/use-drag-move/index.js +2 -3
- package/hooks/use-drop/index.js +3 -14
- package/hooks/use-effect-event/index.js +2 -3
- package/hooks/use-event/index.js +2 -3
- package/hooks/use-event-emitter/index.js +2 -3
- package/hooks/use-event-listener/index.js +2 -3
- package/hooks/use-event-target/index.js +2 -3
- package/hooks/use-external/index.js +2 -3
- package/hooks/use-favicon/index.js +2 -3
- package/hooks/use-focus-within/index.js +2 -3
- package/hooks/use-force-update/index.js +2 -3
- package/hooks/use-fullscreen/index.js +5 -15
- package/hooks/use-get-state/index.js +2 -3
- package/hooks/use-history-travel/index.js +2 -3
- package/hooks/use-hover/index.js +2 -3
- package/hooks/use-id/index.js +2 -3
- package/hooks/use-in-viewport/index.js +17 -18
- package/hooks/use-infinite-scroll/index.js +2 -3
- package/hooks/use-intersection-observer/index.js +2 -3
- package/hooks/use-intersection-observers/index.js +19 -20
- package/hooks/use-interval/index.js +2 -3
- package/hooks/use-is-first-render/index.js +2 -3
- package/hooks/use-isomorphic-layout-effect/index.js +2 -3
- package/hooks/use-key-press/index.js +2 -3
- package/hooks/use-keyboard-event/index.js +2 -3
- package/hooks/use-latest/index.js +2 -3
- package/hooks/use-listen-window-resize/index.js +2 -3
- package/hooks/use-local-storage-state/index.js +2 -3
- package/hooks/use-lock-fn/index.js +2 -3
- package/hooks/use-long-press/index.js +2 -3
- package/hooks/use-map/index.js +2 -3
- package/hooks/use-media/index.js +2 -3
- package/hooks/use-memo/index.js +2 -3
- package/hooks/use-memoized-fn/index.js +2 -3
- package/hooks/use-merge-component-props/index.js +2 -3
- package/hooks/use-merge-value/index.js +2 -3
- package/hooks/use-mobile/index.js +2 -3
- package/hooks/use-mount/index.js +2 -3
- package/hooks/use-mouse/index.js +2 -3
- package/hooks/use-move/index.js +1 -4
- package/hooks/use-mutation-observer/index.js +2 -3
- package/hooks/use-mutation-observers/index.js +19 -20
- package/hooks/use-network/index.js +2 -3
- package/hooks/use-online-status/index.js +2 -3
- package/hooks/use-overflow-hidden/index.js +2 -3
- package/hooks/use-override-ref/index.js +2 -3
- package/hooks/use-pagination/index.js +2 -3
- package/hooks/use-paste-file/index.d.ts +10 -0
- package/hooks/use-paste-file/index.js +29 -0
- package/hooks/use-paste-image/index.d.ts +2 -3
- package/hooks/use-paste-image/index.js +8 -20
- package/hooks/use-persist-callback/index.js +2 -3
- package/hooks/use-prefers-color-scheme-dark/index.js +2 -3
- package/hooks/use-previous/index.js +2 -3
- package/hooks/use-raf-interval/index.js +2 -3
- package/hooks/use-raf-state/index.js +2 -3
- package/hooks/use-raf-timeout/index.js +2 -3
- package/hooks/use-reactive/index.js +2 -3
- package/hooks/use-ref-latest/index.js +2 -3
- package/hooks/use-ref-map/index.js +2 -3
- package/hooks/use-refs/index.js +2 -3
- package/hooks/use-request/index.js +2 -3
- package/hooks/use-request/src/Fetch.js +2 -3
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useCachePlugin.js +3 -4
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +2 -3
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +2 -3
- package/hooks/use-request/src/plugins/usePollingPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useRetryPlugin.js +2 -3
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +2 -3
- package/hooks/use-request/src/useRequest.js +2 -3
- package/hooks/use-request/src/useRequestImplement.js +2 -3
- package/hooks/use-request/src/utils/cache.js +2 -3
- package/hooks/use-request/src/utils/cachePromise.js +2 -3
- package/hooks/use-request/src/utils/cacheSubscribe.js +2 -3
- package/hooks/use-request/src/utils/isDocumentVisible.js +2 -3
- package/hooks/use-request/src/utils/isOnline.js +2 -3
- package/hooks/use-request/src/utils/limit.js +2 -3
- package/hooks/use-request/src/utils/subscribeFocus.js +2 -3
- package/hooks/use-request/src/utils/subscribeReVisible.js +2 -3
- package/hooks/use-reset-state/index.js +2 -3
- package/hooks/use-resize-observer/index.js +2 -3
- package/hooks/use-resize-observers/index.js +19 -20
- package/hooks/use-responsive/index.js +2 -3
- package/hooks/use-safe-state/index.js +2 -3
- package/hooks/use-scroll/index.js +2 -3
- package/hooks/use-selections/index.js +2 -3
- package/hooks/use-session-storage-state/index.js +2 -3
- package/hooks/use-set/index.js +2 -3
- package/hooks/use-set-state/index.js +2 -3
- package/hooks/use-size/index.js +2 -3
- package/hooks/use-state-callback/index.js +11 -12
- package/hooks/use-state-with-promise/index.js +2 -3
- package/hooks/use-sync-state/index.js +2 -3
- package/hooks/use-text-selection/index.js +2 -3
- package/hooks/use-theme/index.js +2 -3
- package/hooks/use-throttle/index.js +2 -3
- package/hooks/use-throttle-effect/index.js +2 -3
- package/hooks/use-throttle-fn/index.js +2 -3
- package/hooks/use-throttle-fn-with-raf/index.js +2 -3
- package/hooks/use-timeout/index.js +2 -3
- package/hooks/use-title/index.js +2 -3
- package/hooks/use-toggle/index.js +2 -3
- package/hooks/use-tracked-effect/index.js +2 -3
- package/hooks/use-unmount/index.js +2 -3
- package/hooks/use-unmounted-ref/index.js +2 -3
- package/hooks/use-update/index.js +2 -3
- package/hooks/use-update-effect/index.js +2 -3
- package/hooks/use-update-layout-effect/index.js +2 -3
- package/hooks/use-url-state/index.js +2 -3
- package/hooks/use-virtual-list/index.js +3 -8
- package/hooks/use-watch/index.js +2 -3
- package/hooks/use-web-socket/index.js +3 -4
- package/hooks/use-why-did-you-update/index.js +2 -3
- package/hooks/use-window-size/index.js +2 -3
- package/hooks/utils/createEffectWithTarget.js +3 -8
- package/hooks/utils/depsAreSame.js +2 -3
- package/hooks/utils/depsEqual.js +2 -3
- package/hooks/utils/domTarget.js +2 -3
- package/hooks/utils/getDocumentOrShadow.js +2 -3
- package/hooks/utils/index.js +2 -3
- package/hooks/utils/isAppleDevice.js +2 -3
- package/hooks/utils/isBrowser.js +2 -3
- package/hooks/utils/isDev.js +2 -3
- package/hooks/utils/rect.js +2 -3
- package/hooks/utils/useDeepCompareWithTarget.js +2 -3
- package/hooks/utils/useEffectWithTarget.js +2 -3
- package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +2 -3
- package/hooks/utils/useLayoutEffectWithTarget.js +2 -3
- package/icons/file/File.js +2 -3
- package/icons/file/context.js +2 -3
- package/icons/file/index.js +2 -3
- package/icons/file/style/index.js +1 -1
- package/index.js +554 -557
- package/morphicons/core/interpolate.js +2 -3
- package/morphicons/core/normalize.js +2 -3
- package/morphicons/core/parse.js +0 -1
- package/morphicons/core/plan.js +4 -11
- package/morphicons/core/resample.js +2 -3
- package/morphicons/core/serialize.js +2 -3
- package/morphicons/core/spring.js +2 -3
- package/morphicons/dom/index.js +2 -3
- package/morphicons/index.js +1 -1
- package/morphicons/react/index.js +3 -4
- package/package.json +1 -1
- package/progress/Progress.js +40 -41
- package/progress/constants.js +1 -1
- package/progress/context.js +1 -1
- package/progress/index.js +2 -3
- package/progress/style/index.js +1 -1
- package/progress/utils.js +1 -1
- package/resize-observer/Collection.js +2 -3
- package/resize-observer/ResizeObserver.js +2 -3
- package/resize-observer/SingleObserver.js +2 -3
- package/resize-observer/constants.js +1 -1
- package/resize-observer/context.js +2 -3
- package/resize-observer/index.js +2 -3
- package/resize-observer/observerUtil.js +2 -3
- package/resize-observer/style/index.js +1 -1
- package/resize-observer/utils.js +1 -1
- package/space/Space.js +42 -42
- package/space/SpaceVertical.js +7 -7
- package/space/constants.js +1 -1
- package/space/context.js +7 -7
- package/space/index.js +2 -3
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +2 -3
- package/suspense-fallback-test/constants.js +1 -1
- package/suspense-fallback-test/context.js +2 -3
- package/suspense-fallback-test/index.js +2 -3
- package/suspense-fallback-test/style/index.js +1 -1
- package/suspense-fallback-test/utils.js +1 -1
- package/test.js +2 -3
- package/timer/Timer.js +2 -3
- package/timer/constants.js +1 -1
- package/timer/context.js +2 -3
- package/timer/index.js +2 -3
- package/timer/style/index.js +1 -1
- package/timer/utils.js +1 -1
- package/transition/Transition.js +2 -3
- package/transition/TransitionCSS.js +2 -3
- package/transition/TransitionGroup.js +2 -3
- package/transition/TransitionStyle.js +2 -3
- package/transition/constants.js +2 -3
- package/transition/context.js +2 -3
- package/transition/index.js +2 -3
- package/transition/style/index.js +1 -1
- package/transition/utils.js +2 -3
- package/utils/call.d.ts +1 -0
- package/utils/call.js +3 -0
- package/utils/callbackOriginRef.js +2 -3
- package/utils/caseName.js +1 -4
- package/utils/className.js +1 -4
- package/utils/confetti.js +3 -4
- package/utils/constants.js +2 -3
- package/utils/copy.js +2 -3
- package/utils/createRoot.js +16 -17
- package/utils/css.js +1 -1
- package/utils/date.js +1 -4
- package/utils/dayjs.js +12 -12
- package/utils/document.js +2 -3
- package/utils/dom.js +2 -3
- 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 +2 -3
- package/utils/getCompatProp.js +2 -3
- package/utils/getElement.js +14 -15
- package/utils/getHighlightText.js +2 -3
- package/utils/getHotkeyHandler.js +2 -3
- package/utils/getPrefixCls.js +2 -3
- package/utils/getScrollBarHeight.js +2 -3
- package/utils/getScrollBarSize.js +2 -3
- package/utils/getScrollBarWidth.js +2 -3
- package/utils/getScrollParent.js +2 -3
- package/utils/getStringLength.js +2 -3
- package/utils/getUrlSearchParam.js +2 -3
- package/utils/index.d.ts +1 -3
- package/utils/index.js +268 -273
- package/utils/initAllLineClamp.js +2 -3
- package/utils/injectLineClamp.js +2 -3
- package/utils/intersectionObserver.js +2 -3
- package/utils/is.js +2 -3
- package/utils/keyboardCode.js +2 -3
- package/utils/lodash.d.ts +2 -1
- package/utils/lodash.js +12 -11
- package/utils/math.js +1 -4
- package/utils/mergeProps.js +2 -3
- package/utils/mergedToString.js +2 -3
- package/utils/migrateLegacyProps.js +2 -3
- package/utils/mutationObserver.js +2 -3
- package/utils/names.js +22 -3
- package/utils/object.js +2 -3
- package/utils/omit.js +2 -3
- package/utils/pad.js +2 -3
- package/utils/pick.js +2 -3
- package/utils/pinyin.js +1 -4
- package/utils/react19Adapter.js +2 -3
- package/utils/reactNode.js +2 -3
- package/utils/ref.js +2 -3
- package/utils/resizeObserver.js +2 -3
- package/utils/saveAs.js +1 -4
- package/utils/screenfull.js +1 -4
- package/utils/scrollIntoViewIfNeeded.js +2 -3
- package/utils/scrollTo.js +2 -3
- package/utils/setDarkTheme.js +2 -3
- package/utils/setDir.js +2 -3
- package/utils/setPrimaryColor.js +2 -3
- package/utils/setTheme.js +2 -3
- package/utils/string.js +2 -3
- package/utils/style.js +2 -3
- package/utils/tinycolor.js +2 -3
- package/utils/toArray.js +2 -3
- package/utils/tree.js +1 -4
- package/utils/tunnel.js +2 -3
- package/utils/uuid.js +1 -4
- package/utils/validate.d.ts +2 -2
- package/utils/validate.js +1 -4
- package/utils/warning.js +2 -3
- package/version/index.js +11 -12
- package/utils/callOrReturn.d.ts +0 -1
- package/utils/callOrReturn.js +0 -6
- 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,70 +1,68 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
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 { call as ne, callWith as re } from "./call.js";
|
|
6
|
+
import { assign as ie, assignIn as t, at as n, camelCase as r, capitalize as i, castArray as a, chain as o, chunk as s, clamp as c, clone as l, cloneDeep as u, cloneDeepWith as d, cloneWith as f, compact as p, curry as m, debounce as h, defaultTo as g, defaults as _, defaultsDeep as v, difference as y, escape as b, extend as x, findKey as S, first as C, flatten as w, flattenDeep as T, flow as E, get as D, groupBy as O, has as k, hasIn as A, intersection as j, invert as M, invertBy as N, invoke as P, kebabCase as F, last as I, mapKeys as L, mapValues as R, mean as z, memoize as B, merge as V, mergeWith as H, move as U, noop as W, omit as G, omitBy as K, orderBy as q, partition as J, pick as Y, pickBy as ae, pullAll as oe, result as se, sample as ce, sampleSize as le, set as ue, setWith as de, shuffle as fe, snakeCase as pe, sortBy as me, startCase as he, swap as ge, throttle as _e, toPath as ve, toSwapped as ye, truncate as be, union as xe, uniq as Se, uniqBy as Ce, uniqueId as we, unset as Te, update as Ee, updateWith as De, upperCase as Oe, upperFirst as ke, without as Ae, xor as je, zip as Me } from "./lodash.js";
|
|
7
|
+
import { isCompositeTypeElement as Ne, isEmptyChildren as Pe, isEmptyReactNode as Fe, isReact18 as Ie, isReact19 as Le, isReactClassComponent as Re, isReactComponent as ze, isReactComponentAndNotFragment as Be, isReactFunctionalComponent as Ve, isServerRendering as He } from "./is.js";
|
|
8
|
+
import { composeRef as Ue, fillRef as We, getNodeRef as Ge, getReactElementRef as Ke, supportNodeRef as qe, supportRef as Je, useComposeRef as Ye } from "./ref.js";
|
|
9
|
+
import Xe from "./getElement.js";
|
|
10
|
+
import { screenfull as Ze } from "./screenfull.js";
|
|
11
|
+
import { canUseDOM as Qe, contains as $e, findSingleChainDescendantByStyle as et, focusAtEnd as tt, forceReflow as X, getBody as nt, getBodyContainer as rt, getClientRects as it, getDOM as at, getDocument as ot, getDocumentElement as st, getElementCoordinates as ct, getElementOuterSize as lt, getHead as ut, getScrollElements as dt, getTextLineCount as ft, getTopLevelOverlayContainer as pt, isSingleLine as mt, off as Z, on as ht, parentContainsChildren as gt } from "./dom.js";
|
|
12
|
+
import _t from "./mergeProps.js";
|
|
13
|
+
import vt from "./migrateLegacyProps.js";
|
|
14
|
+
import { callbackOriginRef as yt } from "./callbackOriginRef.js";
|
|
15
|
+
import { caseName as bt } from "./caseName.js";
|
|
16
|
+
import { className as xt, cls as St, clsx as Ct, cs as wt } from "./className.js";
|
|
17
|
+
import { confetti as Tt, fire as Et } from "./confetti.js";
|
|
18
|
+
import { CSS_VARIABLE_ELEMENT as Dt, DAYJS_DEFAULT_FORMAT as Ot, DAYJS_DEFAULT_FORMAT_WITH_TIME as kt, PREFIX_CLASS as At, constants_exports as jt } from "./constants.js";
|
|
19
19
|
import { clipboardCopy as Q } from "./copy.js";
|
|
20
|
-
import { createRoot as
|
|
20
|
+
import { createRoot as Mt, render as Nt, setCreateRoot as Pt } 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 Ft, convertToDurationBasedOnTimeUnits as It, dateFormat as Lt, dayjsFormat as Rt } from "./date.js";
|
|
23
|
+
import { dayjs as zt } from "./dayjs.js";
|
|
24
|
+
import { document_exports as Bt } from "./document.js";
|
|
25
|
+
import { Emitter as Vt } 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 Ht } from "./fileRead.js";
|
|
28
|
+
import { fileToDataURL as Ut } from "./fileToDataURL.js";
|
|
29
|
+
import Wt from "./fillNBSP.js";
|
|
30
|
+
import Gt from "./getCompatProp.js";
|
|
31
|
+
import Kt from "./getHighlightText.js";
|
|
32
|
+
import qt from "./getHotkeyHandler.js";
|
|
33
|
+
import Jt from "./getPrefixCls.js";
|
|
34
|
+
import Yt from "./getScrollBarSize.js";
|
|
35
|
+
import Xt from "./getScrollBarHeight.js";
|
|
36
|
+
import Zt from "./getScrollBarWidth.js";
|
|
37
37
|
import "./getScrollParent.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import dn from "./mutationObserver.js";
|
|
38
|
+
import Qt from "./getStringLength.js";
|
|
39
|
+
import $t, { getQueryParam as en } from "./getUrlSearchParam.js";
|
|
40
|
+
import { uuid as tn, uuidv4 as nn } from "./uuid.js";
|
|
41
|
+
import rn from "./initAllLineClamp.js";
|
|
42
|
+
import an from "./intersectionObserver.js";
|
|
43
|
+
import { div as on, math as sn, minus as cn, plus as ln, times as un } from "./math.js";
|
|
44
|
+
import dn from "./mergedToString.js";
|
|
45
|
+
import fn from "./mutationObserver.js";
|
|
47
46
|
import "./omit.js";
|
|
48
|
-
import { padEnd as
|
|
49
|
-
import { pickAttributesByPrefixes as
|
|
50
|
-
import
|
|
51
|
-
import { saveAs as
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import { HYPHEN as
|
|
58
|
-
import { fixedWidth as
|
|
59
|
-
import { tinycolor as
|
|
60
|
-
import
|
|
61
|
-
import { findNodeBy as
|
|
62
|
-
import
|
|
63
|
-
import {
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import {
|
|
67
|
-
import { COMPONENT_NAMES as tr } from "./names.js";
|
|
47
|
+
import { padEnd as pn, padStart as mn } from "./pad.js";
|
|
48
|
+
import { pickAttributesByPrefixes as hn, pickDataAriaAttributes as gn } from "./pick.js";
|
|
49
|
+
import _n from "./resizeObserver.js";
|
|
50
|
+
import { saveAs as vn } from "./saveAs.js";
|
|
51
|
+
import yn from "./scrollIntoViewIfNeeded.js";
|
|
52
|
+
import bn, { removeDarkTheme as xn } from "./setDarkTheme.js";
|
|
53
|
+
import Sn from "./setDir.js";
|
|
54
|
+
import Cn from "./setPrimaryColor.js";
|
|
55
|
+
import wn from "./setTheme.js";
|
|
56
|
+
import { HYPHEN as Tn, replaceEmptyWithHyphen as En } from "./string.js";
|
|
57
|
+
import { fixedWidth as Dn, getStyle as On, setTransformStyle as kn } from "./style.js";
|
|
58
|
+
import { tinycolor as An } from "./tinycolor.js";
|
|
59
|
+
import jn from "./toArray.js";
|
|
60
|
+
import { findNodeBy as Mn, getChildWithParentBy as Nn, getItemBy as Pn, getItemByID as Fn, getLabelFromDictionaryByValue as In, searchTree as Ln, tree as Rn } from "./tree.js";
|
|
61
|
+
import zn from "./tunnel.js";
|
|
62
|
+
import { Validator as Bn, ValidatorArray as Vn, ValidatorBase as Hn, ValidatorBoolean as Un, ValidatorCustom as Wn, ValidatorNumber as Gn, ValidatorObject as Kn, ValidatorSchema as qn, ValidatorString as Jn, ValidatorType as Yn, validatorLocale as Xn } from "./validate.js";
|
|
63
|
+
import Zn from "./warning.js";
|
|
64
|
+
import { keyboardCode as Qn } from "./keyboardCode.js";
|
|
65
|
+
import { COMPONENT_NAMES as $n } 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";
|
|
@@ -72,225 +70,222 @@ export * from "@unicom-cloud/utils/constants/ui";
|
|
|
72
70
|
export * from "@unicom-cloud/utils/document";
|
|
73
71
|
export * from "@unicom-cloud/utils/file";
|
|
74
72
|
export * from "@unicom-cloud/utils/tinycolor";
|
|
75
|
-
|
|
73
|
+
// 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: () =>
|
|
82
|
-
HYPHEN: () =>
|
|
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
|
-
|
|
109
|
-
className: () => yt,
|
|
75
|
+
COMPONENT_NAMES: () => $n,
|
|
76
|
+
CSS_VARIABLE_ELEMENT: () => Dt,
|
|
77
|
+
DAYJS_DEFAULT_FORMAT: () => Ot,
|
|
78
|
+
DAYJS_DEFAULT_FORMAT_WITH_TIME: () => kt,
|
|
79
|
+
Emitter: () => Vt,
|
|
80
|
+
HYPHEN: () => Tn,
|
|
81
|
+
PREFIX_CLASS: () => At,
|
|
82
|
+
Validator: () => Bn,
|
|
83
|
+
ValidatorArray: () => Vn,
|
|
84
|
+
ValidatorBase: () => Hn,
|
|
85
|
+
ValidatorBoolean: () => Un,
|
|
86
|
+
ValidatorCustom: () => Wn,
|
|
87
|
+
ValidatorNumber: () => Gn,
|
|
88
|
+
ValidatorObject: () => Kn,
|
|
89
|
+
ValidatorSchema: () => qn,
|
|
90
|
+
ValidatorString: () => Jn,
|
|
91
|
+
ValidatorType: () => Yn,
|
|
92
|
+
assign: () => ie,
|
|
93
|
+
assignIn: () => t,
|
|
94
|
+
at: () => n,
|
|
95
|
+
call: () => ne,
|
|
96
|
+
callWith: () => re,
|
|
97
|
+
callbackOriginRef: () => yt,
|
|
98
|
+
camelCase: () => r,
|
|
99
|
+
canUseDOM: () => Qe,
|
|
100
|
+
capitalize: () => i,
|
|
101
|
+
caseName: () => bt,
|
|
102
|
+
castArray: () => a,
|
|
103
|
+
chain: () => o,
|
|
104
|
+
chunk: () => s,
|
|
105
|
+
clamp: () => c,
|
|
106
|
+
className: () => xt,
|
|
110
107
|
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: () =>
|
|
108
|
+
clone: () => l,
|
|
109
|
+
cloneDeep: () => u,
|
|
110
|
+
cloneDeepWith: () => d,
|
|
111
|
+
cloneWith: () => f,
|
|
112
|
+
cls: () => St,
|
|
113
|
+
clsx: () => Ct,
|
|
114
|
+
compact: () => p,
|
|
115
|
+
composeRef: () => Ue,
|
|
116
|
+
confetti: () => Tt,
|
|
117
|
+
contains: () => $e,
|
|
118
|
+
convertTime: () => Ft,
|
|
119
|
+
convertToDurationBasedOnTimeUnits: () => It,
|
|
123
120
|
copy: () => Q,
|
|
124
|
-
createRoot: () =>
|
|
125
|
-
cs: () =>
|
|
126
|
-
curry: () =>
|
|
127
|
-
dateFormat: () =>
|
|
128
|
-
dayjs: () =>
|
|
129
|
-
dayjsFormat: () =>
|
|
130
|
-
debounce: () =>
|
|
131
|
-
defaultTo: () =>
|
|
132
|
-
defaults: () =>
|
|
133
|
-
defaultsDeep: () =>
|
|
134
|
-
difference: () =>
|
|
135
|
-
div: () =>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
focusAtEnd: () => Qe,
|
|
121
|
+
createRoot: () => Mt,
|
|
122
|
+
cs: () => wt,
|
|
123
|
+
curry: () => m,
|
|
124
|
+
dateFormat: () => Lt,
|
|
125
|
+
dayjs: () => zt,
|
|
126
|
+
dayjsFormat: () => Rt,
|
|
127
|
+
debounce: () => h,
|
|
128
|
+
defaultTo: () => g,
|
|
129
|
+
defaults: () => _,
|
|
130
|
+
defaultsDeep: () => v,
|
|
131
|
+
difference: () => y,
|
|
132
|
+
div: () => on,
|
|
133
|
+
escape: () => b,
|
|
134
|
+
extend: () => x,
|
|
135
|
+
fileRead: () => Ht,
|
|
136
|
+
fileToDataURL: () => Ut,
|
|
137
|
+
fillNBSP: () => Wt,
|
|
138
|
+
fillRef: () => We,
|
|
139
|
+
findKey: () => S,
|
|
140
|
+
findNodeBy: () => Mn,
|
|
141
|
+
findSingleChainDescendantByStyle: () => et,
|
|
142
|
+
fire: () => Et,
|
|
143
|
+
first: () => C,
|
|
144
|
+
fixedWidth: () => Dn,
|
|
145
|
+
flatten: () => w,
|
|
146
|
+
flattenDeep: () => T,
|
|
147
|
+
flow: () => E,
|
|
148
|
+
focusAtEnd: () => tt,
|
|
153
149
|
forceReflow: () => X,
|
|
154
|
-
get: () =>
|
|
155
|
-
getBody: () =>
|
|
156
|
-
getBodyContainer: () =>
|
|
157
|
-
getChildWithParentBy: () =>
|
|
158
|
-
getClientRects: () =>
|
|
159
|
-
getCompatProp: () =>
|
|
160
|
-
getDOM: () =>
|
|
161
|
-
getDocument: () =>
|
|
162
|
-
getDocumentElement: () =>
|
|
163
|
-
getElement: () =>
|
|
164
|
-
getElementCoordinates: () =>
|
|
165
|
-
getElementOuterSize: () =>
|
|
166
|
-
getHead: () =>
|
|
167
|
-
getHighlightText: () =>
|
|
168
|
-
getHotkeyHandler: () =>
|
|
169
|
-
getItemBy: () =>
|
|
170
|
-
getItemByID: () =>
|
|
171
|
-
getLabelFromDictionaryByValue: () =>
|
|
172
|
-
getNodeRef: () =>
|
|
173
|
-
getPrefixCls: () =>
|
|
174
|
-
getQueryParam: () =>
|
|
175
|
-
getReactElementRef: () =>
|
|
176
|
-
getScrollBarHeight: () =>
|
|
177
|
-
getScrollBarSize: () =>
|
|
178
|
-
getScrollBarWidth: () =>
|
|
179
|
-
getScrollElements: () =>
|
|
180
|
-
getStringLength: () =>
|
|
181
|
-
getStyle: () =>
|
|
182
|
-
getTextLineCount: () =>
|
|
183
|
-
getTopLevelOverlayContainer: () =>
|
|
184
|
-
getUrlSearchParam: () =>
|
|
185
|
-
groupBy: () =>
|
|
186
|
-
has: () =>
|
|
187
|
-
hasIn: () =>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
pullAll: () => Y,
|
|
150
|
+
get: () => D,
|
|
151
|
+
getBody: () => nt,
|
|
152
|
+
getBodyContainer: () => rt,
|
|
153
|
+
getChildWithParentBy: () => Nn,
|
|
154
|
+
getClientRects: () => it,
|
|
155
|
+
getCompatProp: () => Gt,
|
|
156
|
+
getDOM: () => at,
|
|
157
|
+
getDocument: () => ot,
|
|
158
|
+
getDocumentElement: () => st,
|
|
159
|
+
getElement: () => Xe,
|
|
160
|
+
getElementCoordinates: () => ct,
|
|
161
|
+
getElementOuterSize: () => lt,
|
|
162
|
+
getHead: () => ut,
|
|
163
|
+
getHighlightText: () => Kt,
|
|
164
|
+
getHotkeyHandler: () => qt,
|
|
165
|
+
getItemBy: () => Pn,
|
|
166
|
+
getItemByID: () => Fn,
|
|
167
|
+
getLabelFromDictionaryByValue: () => In,
|
|
168
|
+
getNodeRef: () => Ge,
|
|
169
|
+
getPrefixCls: () => Jt,
|
|
170
|
+
getQueryParam: () => en,
|
|
171
|
+
getReactElementRef: () => Ke,
|
|
172
|
+
getScrollBarHeight: () => Xt,
|
|
173
|
+
getScrollBarSize: () => Yt,
|
|
174
|
+
getScrollBarWidth: () => Zt,
|
|
175
|
+
getScrollElements: () => dt,
|
|
176
|
+
getStringLength: () => Qt,
|
|
177
|
+
getStyle: () => On,
|
|
178
|
+
getTextLineCount: () => ft,
|
|
179
|
+
getTopLevelOverlayContainer: () => pt,
|
|
180
|
+
getUrlSearchParam: () => $t,
|
|
181
|
+
groupBy: () => O,
|
|
182
|
+
has: () => k,
|
|
183
|
+
hasIn: () => A,
|
|
184
|
+
initAllLineClamp: () => rn,
|
|
185
|
+
intersection: () => j,
|
|
186
|
+
intersectionObserver: () => an,
|
|
187
|
+
invert: () => M,
|
|
188
|
+
invertBy: () => N,
|
|
189
|
+
invoke: () => P,
|
|
190
|
+
isCompositeTypeElement: () => Ne,
|
|
191
|
+
isEmptyChildren: () => Pe,
|
|
192
|
+
isEmptyReactNode: () => Fe,
|
|
193
|
+
isReact18: () => Ie,
|
|
194
|
+
isReact19: () => Le,
|
|
195
|
+
isReactClassComponent: () => Re,
|
|
196
|
+
isReactComponent: () => ze,
|
|
197
|
+
isReactComponentAndNotFragment: () => Be,
|
|
198
|
+
isReactFunctionalComponent: () => Ve,
|
|
199
|
+
isServerRendering: () => He,
|
|
200
|
+
isSingleLine: () => mt,
|
|
201
|
+
kebabCase: () => F,
|
|
202
|
+
keyboardCode: () => Qn,
|
|
203
|
+
last: () => I,
|
|
204
|
+
mapKeys: () => L,
|
|
205
|
+
mapValues: () => R,
|
|
206
|
+
math: () => sn,
|
|
207
|
+
mean: () => z,
|
|
208
|
+
memoize: () => B,
|
|
209
|
+
merge: () => V,
|
|
210
|
+
mergeProps: () => _t,
|
|
211
|
+
mergeWith: () => H,
|
|
212
|
+
mergedToString: () => dn,
|
|
213
|
+
migrateLegacyProps: () => vt,
|
|
214
|
+
minus: () => cn,
|
|
215
|
+
move: () => U,
|
|
216
|
+
mutationObserver: () => fn,
|
|
217
|
+
noop: () => W,
|
|
218
|
+
off: () => Z,
|
|
219
|
+
omit: () => G,
|
|
220
|
+
omitBy: () => K,
|
|
221
|
+
on: () => ht,
|
|
222
|
+
orderBy: () => q,
|
|
223
|
+
padEnd: () => pn,
|
|
224
|
+
padStart: () => mn,
|
|
225
|
+
parentContainsChildren: () => gt,
|
|
226
|
+
partition: () => J,
|
|
227
|
+
pick: () => Y,
|
|
228
|
+
pickAttributesByPrefixes: () => hn,
|
|
229
|
+
pickBy: () => ae,
|
|
230
|
+
pickDataAriaAttributes: () => gn,
|
|
231
|
+
plus: () => ln,
|
|
232
|
+
pullAll: () => oe,
|
|
238
233
|
reflow: () => X,
|
|
239
|
-
removeDarkTheme: () =>
|
|
240
|
-
render: () =>
|
|
241
|
-
replaceEmptyWithHyphen: () =>
|
|
242
|
-
resizeObserver: () =>
|
|
243
|
-
result: () =>
|
|
244
|
-
sample: () =>
|
|
245
|
-
sampleSize: () =>
|
|
246
|
-
saveAs: () =>
|
|
247
|
-
screenfull: () =>
|
|
248
|
-
scrollIntoViewIfNeeded: () =>
|
|
249
|
-
searchTree: () =>
|
|
250
|
-
set: () =>
|
|
251
|
-
setCreateRoot: () =>
|
|
252
|
-
setDarkTheme: () =>
|
|
253
|
-
setDir: () =>
|
|
254
|
-
setPrimaryColor: () =>
|
|
255
|
-
setTheme: () =>
|
|
256
|
-
setTransformStyle: () =>
|
|
257
|
-
setWith: () =>
|
|
258
|
-
shuffle: () =>
|
|
259
|
-
snakeCase: () =>
|
|
260
|
-
sortBy: () =>
|
|
261
|
-
startCase: () =>
|
|
262
|
-
supportNodeRef: () =>
|
|
263
|
-
supportRef: () =>
|
|
264
|
-
swap: () =>
|
|
265
|
-
throttle: () =>
|
|
266
|
-
times: () =>
|
|
267
|
-
tinycolor: () =>
|
|
268
|
-
toArray: () =>
|
|
269
|
-
toPath: () =>
|
|
270
|
-
toSwapped: () =>
|
|
271
|
-
tree: () =>
|
|
272
|
-
truncate: () =>
|
|
273
|
-
tunnel: () =>
|
|
274
|
-
union: () =>
|
|
275
|
-
uniq: () =>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
234
|
+
removeDarkTheme: () => xn,
|
|
235
|
+
render: () => Nt,
|
|
236
|
+
replaceEmptyWithHyphen: () => En,
|
|
237
|
+
resizeObserver: () => _n,
|
|
238
|
+
result: () => se,
|
|
239
|
+
sample: () => ce,
|
|
240
|
+
sampleSize: () => le,
|
|
241
|
+
saveAs: () => vn,
|
|
242
|
+
screenfull: () => Ze,
|
|
243
|
+
scrollIntoViewIfNeeded: () => yn,
|
|
244
|
+
searchTree: () => Ln,
|
|
245
|
+
set: () => ue,
|
|
246
|
+
setCreateRoot: () => Pt,
|
|
247
|
+
setDarkTheme: () => bn,
|
|
248
|
+
setDir: () => Sn,
|
|
249
|
+
setPrimaryColor: () => Cn,
|
|
250
|
+
setTheme: () => wn,
|
|
251
|
+
setTransformStyle: () => kn,
|
|
252
|
+
setWith: () => de,
|
|
253
|
+
shuffle: () => fe,
|
|
254
|
+
snakeCase: () => pe,
|
|
255
|
+
sortBy: () => me,
|
|
256
|
+
startCase: () => he,
|
|
257
|
+
supportNodeRef: () => qe,
|
|
258
|
+
supportRef: () => Je,
|
|
259
|
+
swap: () => ge,
|
|
260
|
+
throttle: () => _e,
|
|
261
|
+
times: () => un,
|
|
262
|
+
tinycolor: () => An,
|
|
263
|
+
toArray: () => jn,
|
|
264
|
+
toPath: () => ve,
|
|
265
|
+
toSwapped: () => ye,
|
|
266
|
+
tree: () => Rn,
|
|
267
|
+
truncate: () => be,
|
|
268
|
+
tunnel: () => zn,
|
|
269
|
+
union: () => xe,
|
|
270
|
+
uniq: () => Se,
|
|
271
|
+
uniqBy: () => Ce,
|
|
272
|
+
uniqueId: () => we,
|
|
273
|
+
unset: () => Te,
|
|
274
|
+
update: () => Ee,
|
|
275
|
+
updateWith: () => De,
|
|
276
|
+
upperCase: () => Oe,
|
|
277
|
+
upperFirst: () => ke,
|
|
278
|
+
useComposeRef: () => Ye,
|
|
279
|
+
uuid: () => tn,
|
|
280
|
+
uuidv4: () => nn,
|
|
281
|
+
validatorLocale: () => Xn,
|
|
282
|
+
warning: () => Zn,
|
|
283
|
+
without: () => Ae,
|
|
284
|
+
xor: () => je,
|
|
285
|
+
zip: () => Me
|
|
290
286
|
});
|
|
291
|
-
import * as
|
|
292
|
-
e($,
|
|
293
|
-
|
|
294
|
-
export { tr as COMPONENT_NAMES, Tt as CSS_VARIABLE_ELEMENT, Et as DAYJS_DEFAULT_FORMAT, Dt as DAYJS_DEFAULT_FORMAT_WITH_TIME, zt as Emitter, wn as HYPHEN, Ot as PREFIX_CLASS, Vn as PqbValidator, zn as Tween, Hn as Validator, Un as ValidatorArray, Wn as ValidatorBase, Gn as ValidatorBoolean, Kn as ValidatorCustom, qn as ValidatorNumber, Jn as ValidatorObject, Yn as ValidatorSchema, Xn as ValidatorString, Zn as ValidatorType, ne as assign, re as assignIn, ie as at, _t as callOrReturn, gt as callbackOriginRef, t as camelCase, Ye as canUseDOM, n as capitalize, vt as caseName, r as castArray, i as chain, a as chunk, o as clamp, yt as className, Q as clipboardCopy, Q as copy, s as clone, c as cloneDeep, l as cloneDeepWith, u as cloneWith, bt as cls, xt as clsx, d as compact, Be as composeRef, Ct as confetti, Xe as contains, Nt as convertTime, Pt as convertToDurationBasedOnTimeUnits, At as createRoot, St as cs, f as curry, Ft as dateFormat, Lt as dayjs, It as dayjsFormat, p as debounce, m as defaultTo, h as defaults, g as defaultsDeep, _ as difference, an as div, Bn as easing, v as escape, y as extend, Bt as fileRead, Vt as fileToDataURL, Ht as fillNBSP, Ve as fillRef, b as findKey, jn as findNodeBy, Ze as findSingleChainDescendantByStyle, wt as fire, x as first, En as fixedWidth, S as flatten, C as flattenDeep, w as flow, Qe as focusAtEnd, X as forceReflow, X as reflow, T as get, $e as getBody, et as getBodyContainer, Mn as getChildWithParentBy, tt as getClientRects, Ut as getCompatProp, nt as getDOM, rt as getDocument, it as getDocumentElement, qe as getElement, at as getElementCoordinates, ot as getElementOuterSize, st as getHead, Wt as getHighlightText, Gt as getHotkeyHandler, Nn as getItemBy, Pn as getItemByID, Fn as getLabelFromDictionaryByValue, He as getNodeRef, Kt as getPrefixCls, Qt as getQueryParam, Ue as getReactElementRef, Jt as getScrollBarHeight, qt as getScrollBarSize, Yt as getScrollBarWidth, ct as getScrollElements, Xt as getStringLength, Dn as getStyle, lt as getTextLineCount, ut as getTopLevelOverlayContainer, Zt as getUrlSearchParam, E as groupBy, D as has, O as hasIn, $t as include, nn as initAllLineClamp, k as intersection, rn as intersectionObserver, A as invert, j as invertBy, M as invoke, Ae as isCompositeTypeElement, je as isEmptyChildren, Me as isEmptyReactNode, Ne as isReact18, Pe as isReact19, Fe as isReactClassComponent, Ie as isReactComponent, Le as isReactComponentAndNotFragment, Re as isReactFunctionalComponent, ze as isServerRendering, dt as isSingleLine, N as kebabCase, er as keyboardCode, P as last, F as mapKeys, I as mapValues, on as math, L as mean, R as memoize, z as merge, Z as mergeProps, B as mergeWith, un as mergedToString, ht as migrateLegacyProps, sn as minus, V as move, dn as mutationObserver, H as noop, ft as off, U as omit, W as omitBy, pt as on, G as orderBy, fn as padEnd, pn as padStart, mt as parentContainsChildren, K as partition, q as pick, mn as pickAttributesByPrefixes, J as pickBy, hn as pickDataAriaAttributes, cn as plus, Y as pullAll, bn as removeDarkTheme, jt as render, Tn as replaceEmptyWithHyphen, gn as resizeObserver, ae as result, oe as sample, se as sampleSize, _n as saveAs, Je as screenfull, vn as scrollIntoViewIfNeeded, In as searchTree, ce as set, Mt as setCreateRoot, yn as setDarkTheme, xn as setDir, Sn as setPrimaryColor, Cn as setTheme, On as setTransformStyle, le as setWith, ue as shuffle, de as snakeCase, fe as sortBy, pe as startCase, We as supportNodeRef, Ge as supportRef, me as swap, he as throttle, ln as times, kn as tinycolor, An as toArray, ge as toPath, _e as toSwapped, Ln as tree, ve as truncate, Rn as tunnel, ye as union, be as uniq, xe as uniqueId, Se as unset, Ce as update, we as updateWith, Te as upperCase, Ee as upperFirst, Ke as useComposeRef, $ as utils_exports, en as uuid, tn as uuidv4, Qn as validatorLocale, $n as warning, De as without, Oe as xor, ke as zip };
|
|
287
|
+
import * as er from "@unicom-cloud/utils/is";
|
|
288
|
+
e($, er), e($, jt), e($, Bt), e($, te);
|
|
289
|
+
export { $n as COMPONENT_NAMES, Dt as CSS_VARIABLE_ELEMENT, Ot as DAYJS_DEFAULT_FORMAT, kt as DAYJS_DEFAULT_FORMAT_WITH_TIME, Vt as Emitter, Tn as HYPHEN, At as PREFIX_CLASS, Bn as Validator, Vn as ValidatorArray, Hn as ValidatorBase, Un as ValidatorBoolean, Wn as ValidatorCustom, Gn as ValidatorNumber, Kn as ValidatorObject, qn as ValidatorSchema, Jn as ValidatorString, Yn as ValidatorType, ie as assign, t as assignIn, n as at, ne as call, re as callWith, yt as callbackOriginRef, r as camelCase, Qe as canUseDOM, i as capitalize, bt as caseName, a as castArray, o as chain, s as chunk, c as clamp, xt as className, Q as clipboardCopy, Q as copy, l as clone, u as cloneDeep, d as cloneDeepWith, f as cloneWith, St as cls, Ct as clsx, p as compact, Ue as composeRef, Tt as confetti, $e as contains, Ft as convertTime, It as convertToDurationBasedOnTimeUnits, Mt as createRoot, wt as cs, m as curry, Lt as dateFormat, zt as dayjs, Rt as dayjsFormat, h as debounce, g as defaultTo, _ as defaults, v as defaultsDeep, y as difference, on as div, b as escape, x as extend, Ht as fileRead, Ut as fileToDataURL, Wt as fillNBSP, We as fillRef, S as findKey, Mn as findNodeBy, et as findSingleChainDescendantByStyle, Et as fire, C as first, Dn as fixedWidth, w as flatten, T as flattenDeep, E as flow, tt as focusAtEnd, X as forceReflow, X as reflow, D as get, nt as getBody, rt as getBodyContainer, Nn as getChildWithParentBy, it as getClientRects, Gt as getCompatProp, at as getDOM, ot as getDocument, st as getDocumentElement, Xe as getElement, ct as getElementCoordinates, lt as getElementOuterSize, ut as getHead, Kt as getHighlightText, qt as getHotkeyHandler, Pn as getItemBy, Fn as getItemByID, In as getLabelFromDictionaryByValue, Ge as getNodeRef, Jt as getPrefixCls, en as getQueryParam, Ke as getReactElementRef, Xt as getScrollBarHeight, Yt as getScrollBarSize, Zt as getScrollBarWidth, dt as getScrollElements, Qt as getStringLength, On as getStyle, ft as getTextLineCount, pt as getTopLevelOverlayContainer, $t as getUrlSearchParam, O as groupBy, k as has, A as hasIn, rn as initAllLineClamp, j as intersection, an as intersectionObserver, M as invert, N as invertBy, P as invoke, Ne as isCompositeTypeElement, Pe as isEmptyChildren, Fe as isEmptyReactNode, Ie as isReact18, Le as isReact19, Re as isReactClassComponent, ze as isReactComponent, Be as isReactComponentAndNotFragment, Ve as isReactFunctionalComponent, He as isServerRendering, mt as isSingleLine, F as kebabCase, Qn as keyboardCode, I as last, L as mapKeys, R as mapValues, sn as math, z as mean, B as memoize, V as merge, _t as mergeProps, H as mergeWith, dn as mergedToString, vt as migrateLegacyProps, cn as minus, U as move, fn as mutationObserver, W as noop, Z as off, G as omit, K as omitBy, ht as on, q as orderBy, pn as padEnd, mn as padStart, gt as parentContainsChildren, J as partition, Y as pick, hn as pickAttributesByPrefixes, ae as pickBy, gn as pickDataAriaAttributes, ln as plus, oe as pullAll, xn as removeDarkTheme, Nt as render, En as replaceEmptyWithHyphen, _n as resizeObserver, se as result, ce as sample, le as sampleSize, vn as saveAs, Ze as screenfull, yn as scrollIntoViewIfNeeded, Ln as searchTree, ue as set, Pt as setCreateRoot, bn as setDarkTheme, Sn as setDir, Cn as setPrimaryColor, wn as setTheme, kn as setTransformStyle, de as setWith, fe as shuffle, pe as snakeCase, me as sortBy, he as startCase, qe as supportNodeRef, Je as supportRef, ge as swap, _e as throttle, un as times, An as tinycolor, jn as toArray, ve as toPath, ye as toSwapped, Rn as tree, be as truncate, zn as tunnel, xe as union, Se as uniq, Ce as uniqBy, we as uniqueId, Te as unset, Ee as update, De as updateWith, Oe as upperCase, ke as upperFirst, Ye as useComposeRef, $ as utils_exports, tn as uuid, nn as uuidv4, Xn as validatorLocale, Zn as warning, Ae as without, je as xor, Me as zip };
|
|
295
290
|
/* 欲穷千里目,更上一层楼 */
|
|
296
291
|
/* 独立思考,明辨是非 */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { getHead as e } from "./dom.js";
|
|
4
4
|
import { uuid as t } from "./uuid.js";
|
|
5
5
|
import { UI_COMMON_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/initAllLineClamp.ts
|
|
7
7
|
var r;
|
|
8
8
|
function i(i = 999, a = n) {
|
|
9
9
|
if (r ||= t(), document.getElementById(r)) return;
|
|
@@ -13,7 +13,6 @@ function i(i = 999, a = n) {
|
|
|
13
13
|
for (let e = 1; e <= i; e++) s += `.${a}-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}}`;
|
|
14
14
|
o.textContent = s, e().appendChild(o);
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { i as default, i as initAllLineClamp };
|
|
18
17
|
/* 欲穷千里目,更上一层楼 */
|
|
19
18
|
/* 独立思考,明辨是非 */
|
package/utils/injectLineClamp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-10-
|
|
1
|
+
/* 潘启宝 2026-10-29 16:11:51 星期四 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { constants_exports as e } from "./constants.js";
|
|
4
|
-
|
|
4
|
+
// components/common/utils/injectLineClamp.js
|
|
5
5
|
function t(t = e.UI_COMMON_PREFIX) {
|
|
6
6
|
let n = document.createElement("style");
|
|
7
7
|
document.head.appendChild(n);
|
|
@@ -18,7 +18,6 @@ function t(t = e.UI_COMMON_PREFIX) {
|
|
|
18
18
|
}`, r.cssRules.length);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { t as default };
|
|
23
22
|
/* 欲穷千里目,更上一层楼 */
|
|
24
23
|
/* 独立思考,明辨是非 */
|