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