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