@unicom-cloud/ui-common 0.1.54 → 0.1.56
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 +2 -3
- 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/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.js +1 -1
- 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 +2 -3
- 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 +2 -3
- 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 +22 -10
- 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-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 +1 -1
- package/hooks/use-paste-file/index.js +3 -4
- package/hooks/use-paste-image/index.js +2 -3
- 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 +2 -3
- 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 +3 -4
- 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 +2 -3
- 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 -4
- 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 -554
- 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 +0 -1
- 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 +2 -3
- package/space/SpaceVertical.js +2 -3
- package/space/constants.js +1 -1
- package/space/context.js +2 -3
- 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/confetti.js +2 -3
- package/utils/constants.js +2 -3
- package/utils/copy.js +2 -3
- package/utils/createRoot.js +3 -4
- package/utils/css.js +1 -1
- package/utils/dayjs.js +1 -2
- package/utils/document.js +2 -3
- package/utils/dom.js +2 -3
- package/utils/file.js +1 -1
- package/utils/fillNBSP.js +2 -3
- package/utils/getCompatProp.js +2 -3
- package/utils/getElement.js +2 -3
- 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 -1
- package/utils/index.js +268 -268
- 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 +16 -15
- 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 +2 -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/react19Adapter.js +2 -3
- package/utils/reactNode.js +2 -3
- package/utils/ref.js +2 -3
- package/utils/resizeObserver.js +2 -3
- 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 +1 -1
- package/utils/toArray.js +2 -3
- package/utils/tunnel.js +2 -3
- package/utils/validate.d.ts +1 -1
- package/utils/validate.js +1 -1
- package/utils/warning.js +2 -3
- package/version/index.js +8 -9
- package/utils/callOrReturn.d.ts +0 -1
- package/utils/callOrReturn.js +0 -3
package/utils/is.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { get as e } from "./lodash.js";
|
|
4
4
|
import t, { isValidElement as n } from "react";
|
|
@@ -6,7 +6,7 @@ import { isEmptyArray as r, isEmptyString as i, isFalse as a, isFunction as o, i
|
|
|
6
6
|
import { isBrowser as l } from "@unicom-cloud/utils/constants/platform";
|
|
7
7
|
import u from "react-dom";
|
|
8
8
|
import { isFragment as d } from "react-is";
|
|
9
|
-
|
|
9
|
+
// components/common/utils/is.ts
|
|
10
10
|
var f = !l, [p, m] = [18, 19].map((e, n, r) => {
|
|
11
11
|
let i = t.version || u.version || "", a = /\d+/.exec(i)?.[0] ?? "";
|
|
12
12
|
return e <= parseFloat(a);
|
|
@@ -36,7 +36,6 @@ function b(e) {
|
|
|
36
36
|
function x(e) {
|
|
37
37
|
return t.Children.count(e) === 0;
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { b as isCompositeTypeElement, x as isEmptyChildren, h as isEmptyReactNode, p as isReact18, m as isReact19, v as isReactClassComponent, _ as isReactComponent, g as isReactComponentAndNotFragment, y as isReactFunctionalComponent, f as isServerRendering };
|
|
41
40
|
/* 欲穷千里目,更上一层楼 */
|
|
42
41
|
/* 独立思考,明辨是非 */
|
package/utils/keyboardCode.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import * as e from "@unicom-cloud/utils/constants/keyboardCode";
|
|
4
4
|
export * from "@unicom-cloud/utils/constants/keyboardCode";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/keyboardCode.ts
|
|
6
6
|
var t = e;
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as default, e as keyboardCode };
|
|
9
8
|
/* 欲穷千里目,更上一层楼 */
|
|
10
9
|
/* 独立思考,明辨是非 */
|
package/utils/lodash.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ import sortBy from 'lodash/sortBy';
|
|
|
62
62
|
import startCase from 'lodash/startCase';
|
|
63
63
|
import throttle from 'lodash/throttle';
|
|
64
64
|
import toPath from 'lodash/toPath';
|
|
65
|
+
import trim from 'lodash/trim';
|
|
65
66
|
import truncate from 'lodash/truncate';
|
|
66
67
|
import union from 'lodash/union';
|
|
67
68
|
import uniq from 'lodash/uniq';
|
|
@@ -75,4 +76,4 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
75
76
|
import without from 'lodash/without';
|
|
76
77
|
import xor from 'lodash/xor';
|
|
77
78
|
import zip from 'lodash/zip';
|
|
78
|
-
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, truncate, union, uniq, uniqBy, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
|
79
|
+
export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, extend, findKey, first, flatten, flattenDeep, flow, get, groupBy, has, hasIn, intersection, invert, invertBy, invoke, kebabCase, last, mapKeys, mapValues, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, swap, throttle, toPath, toSwapped, trim, truncate, union, uniq, uniqBy, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
|
package/utils/lodash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "lodash/castArray";
|
|
4
4
|
import t from "lodash/debounce";
|
|
@@ -64,19 +64,20 @@ import se from "lodash/sortBy";
|
|
|
64
64
|
import ce from "lodash/startCase";
|
|
65
65
|
import le from "lodash/throttle";
|
|
66
66
|
import ue from "lodash/toPath";
|
|
67
|
-
import de from "lodash/
|
|
68
|
-
import fe from "lodash/
|
|
69
|
-
import pe from "lodash/
|
|
70
|
-
import me from "lodash/
|
|
71
|
-
import he from "lodash/
|
|
72
|
-
import ge from "lodash/
|
|
73
|
-
import _e from "lodash/
|
|
74
|
-
import ve from "lodash/
|
|
75
|
-
import ye from "lodash/
|
|
76
|
-
import be from "lodash/
|
|
77
|
-
import xe from "lodash/
|
|
78
|
-
import Se from "lodash/
|
|
79
|
-
import Ce from "lodash/
|
|
80
|
-
|
|
67
|
+
import de from "lodash/trim";
|
|
68
|
+
import fe from "lodash/truncate";
|
|
69
|
+
import pe from "lodash/union";
|
|
70
|
+
import me from "lodash/uniq";
|
|
71
|
+
import he from "lodash/uniqBy";
|
|
72
|
+
import ge from "lodash/uniqueId";
|
|
73
|
+
import _e from "lodash/unset";
|
|
74
|
+
import ve from "lodash/update";
|
|
75
|
+
import ye from "lodash/updateWith";
|
|
76
|
+
import be from "lodash/upperCase";
|
|
77
|
+
import xe from "lodash/upperFirst";
|
|
78
|
+
import Se from "lodash/without";
|
|
79
|
+
import Ce from "lodash/xor";
|
|
80
|
+
import we from "lodash/zip";
|
|
81
|
+
export { a as assign, o as assignIn, s as at, c as camelCase, l as capitalize, e as castArray, u as chain, d as chunk, f as clamp, p as clone, m as cloneDeep, h as cloneDeepWith, g as cloneWith, _ as compact, v as curry, t as debounce, x as defaultTo, y as defaults, b as defaultsDeep, S as difference, C as escape, w as extend, T as findKey, E as first, D as flatten, O as flattenDeep, k as flow, A as get, j as groupBy, M as has, N as hasIn, P as intersection, F as invert, I as invertBy, L as invoke, R as kebabCase, z as last, B as mapKeys, V as mapValues, H as mean, U as memoize, W as merge, G as mergeWith, n as move, K as noop, q as omit, J as omitBy, Y as orderBy, X as partition, Z as pick, Q as pickBy, $ as pullAll, ee as result, te as sample, ne as sampleSize, re as set, ie as setWith, ae as shuffle, oe as snakeCase, se as sortBy, ce as startCase, r as swap, le as throttle, ue as toPath, i as toSwapped, de as trim, fe as truncate, pe as union, me as uniq, he as uniqBy, ge as uniqueId, _e as unset, ve as update, ye as updateWith, be as upperCase, xe as upperFirst, Se as without, Ce as xor, we as zip };
|
|
81
82
|
/* 欲穷千里目,更上一层楼 */
|
|
82
83
|
/* 独立思考,明辨是非 */
|
package/utils/mergeProps.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { isObject as e, isTrue as t } from "@unicom-cloud/utils/is";
|
|
4
4
|
import n from "lodash/defaults";
|
|
5
5
|
import r from "lodash/defaultsDeep";
|
|
6
6
|
import i from "lodash/last";
|
|
7
|
-
|
|
7
|
+
// components/common/utils/mergeProps.ts
|
|
8
8
|
function a(...a) {
|
|
9
9
|
a = [].concat(...a);
|
|
10
10
|
let o = n;
|
|
@@ -14,7 +14,6 @@ function a(...a) {
|
|
|
14
14
|
}
|
|
15
15
|
return a = a.filter(e), o({}, ...a);
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { a as default, a as mergeProps };
|
|
19
18
|
/* 欲穷千里目,更上一层楼 */
|
|
20
19
|
/* 独立思考,明辨是非 */
|
package/utils/mergedToString.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { get as e, has as t } from "./lodash.js";
|
|
4
4
|
import n from "react";
|
|
5
5
|
import { isPlainObject as r, isStringOrNumber as i } from "@unicom-cloud/utils/is";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/mergedToString.ts
|
|
7
7
|
var a = (e) => i(e);
|
|
8
8
|
function o(i) {
|
|
9
9
|
let s = [""];
|
|
@@ -12,7 +12,6 @@ function o(i) {
|
|
|
12
12
|
a(n) && a(i) ? s[r] = `${i}${n}` : t(n, ["props", "children"]) && s.push(o(e(n, ["props", "children"])));
|
|
13
13
|
}), s.join("");
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { o as default, o as mergedToString };
|
|
17
16
|
/* 欲穷千里目,更上一层楼 */
|
|
18
17
|
/* 独立思考,明辨是非 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { castArray as e, get as t, has as n, set as r, unset as i } from "./lodash.js";
|
|
4
4
|
import { isObjectAndNotEmpty as a } from "@unicom-cloud/utils/is";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/migrateLegacyProps.ts
|
|
6
6
|
function o(o, s) {
|
|
7
7
|
return a(o) && a(s) && Object.entries(s).forEach(([a, s], c, l) => {
|
|
8
8
|
let u = n(o, [a]);
|
|
@@ -13,7 +13,6 @@ function o(o, s) {
|
|
|
13
13
|
});
|
|
14
14
|
}), o;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { o as default, o as migrateLegacyProps };
|
|
18
17
|
/* 欲穷千里目,更上一层楼 */
|
|
19
18
|
/* 独立思考,明辨是非 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { isExist as e, isFunction as t } from "@unicom-cloud/utils/is";
|
|
4
4
|
import n from "lodash/throttle";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/mutationObserver.ts
|
|
6
6
|
function r(r, i) {
|
|
7
7
|
let a = [].concat(r).filter(e);
|
|
8
8
|
if (!(a.length && t(i))) return () => {};
|
|
@@ -19,7 +19,6 @@ function r(r, i) {
|
|
|
19
19
|
s.disconnect(), o.cancel();
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { r as default, r as mutationObserver };
|
|
24
23
|
/* 欲穷千里目,更上一层楼 */
|
|
25
24
|
/* 独立思考,明辨是非 */
|
package/utils/names.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
|
|
3
|
+
// components/common/utils/names.ts
|
|
4
4
|
var e = {
|
|
5
5
|
zh: "边框流光",
|
|
6
6
|
en: "BorderBeam",
|
|
@@ -144,7 +144,6 @@ var e = {
|
|
|
144
144
|
Animation: y
|
|
145
145
|
};
|
|
146
146
|
Object.assign(b, {}), Object.freeze(b);
|
|
147
|
-
//#endregion
|
|
148
147
|
export { y as COMPONENT_INFO_ANIMATION, e as COMPONENT_INFO_BORDER_BEAM, t as COMPONENT_INFO_DEVELOPMENT, n as COMPONENT_INFO_EMPTY, r as COMPONENT_INFO_FLEX, i as COMPONENT_INFO_FLEX_VERTICAL, a as COMPONENT_INFO_GRID, o as COMPONENT_INFO_GRID_ITEM, c as COMPONENT_INFO_ICON_FILE, l as COMPONENT_INFO_PROGRESS, u as COMPONENT_INFO_RESIZE_OBSERVER, d as COMPONENT_INFO_SPACE, f as COMPONENT_INFO_SPACE_VERTICAL, s as COMPONENT_INFO_SPEECH_SYNTHESIS, p as COMPONENT_INFO_SUSPENSE_FALLBACK_TEST, m as COMPONENT_INFO_TIMER, h as COMPONENT_INFO_TRANSITION, g as COMPONENT_INFO_TRANSITION_CSS, v as COMPONENT_INFO_TRANSITION_GROUP, _ as COMPONENT_INFO_TRANSITION_STYLE, b as COMPONENT_NAMES, b as default };
|
|
149
148
|
/* 欲穷千里目,更上一层楼 */
|
|
150
149
|
/* 独立思考,明辨是非 */
|
package/utils/object.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
|
|
4
4
|
export * from "@unicom-cloud/utils/object";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/object.ts
|
|
6
6
|
var n = /* @__PURE__ */ e({});
|
|
7
7
|
import * as r from "@unicom-cloud/utils/object";
|
|
8
8
|
t(n, r);
|
|
9
|
-
//#endregion
|
|
10
9
|
export { n as object_exports };
|
|
11
10
|
/* 欲穷千里目,更上一层楼 */
|
|
12
11
|
/* 独立思考,明辨是非 */
|
package/utils/omit.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { omit as e } from "./lodash.js";
|
|
4
|
-
|
|
4
|
+
// components/common/utils/omit.ts
|
|
5
5
|
var t = e;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { t as default, e as omit };
|
|
8
7
|
/* 欲穷千里目,更上一层楼 */
|
|
9
8
|
/* 独立思考,明辨是非 */
|
package/utils/pad.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
|
|
3
|
+
// components/common/utils/pad.ts
|
|
4
4
|
function e(t, n, r = " ") {
|
|
5
5
|
let i = String(t);
|
|
6
6
|
if (!n) return i;
|
|
@@ -13,7 +13,6 @@ function t(e, n, r = " ") {
|
|
|
13
13
|
let a = i.length < n ? `${i}${r}` : i;
|
|
14
14
|
return a.length < n ? t(a, n, r) : a;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { t as padEnd, e as padStart };
|
|
18
17
|
/* 欲穷千里目,更上一层楼 */
|
|
19
18
|
/* 独立思考,明辨是非 */
|
package/utils/pick.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { pick as e, pickBy as t } from "./lodash.js";
|
|
4
|
-
|
|
4
|
+
// components/common/utils/pick.ts
|
|
5
5
|
function n(e, n) {
|
|
6
6
|
return t(e ?? {}, (e, t) => n.some((e, n, r) => t.startsWith(e)));
|
|
7
7
|
}
|
|
@@ -9,7 +9,6 @@ function r(e) {
|
|
|
9
9
|
return n(e, ["data-", "aria-"]);
|
|
10
10
|
}
|
|
11
11
|
var i = e;
|
|
12
|
-
//#endregion
|
|
13
12
|
export { i as default, e as pick, n as pickAttributesByPrefixes, r as pickDataAriaAttributes };
|
|
14
13
|
/* 欲穷千里目,更上一层楼 */
|
|
15
14
|
/* 独立思考,明辨是非 */
|
package/utils/react19Adapter.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { setCreateRoot as e } from "./createRoot.js";
|
|
4
4
|
import { createRoot as t } from "react-dom/client";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/react19Adapter.ts
|
|
6
6
|
e(t);
|
|
7
|
-
//#endregion
|
|
8
7
|
/* 欲穷千里目,更上一层楼 */
|
|
9
8
|
/* 独立思考,明辨是非 */
|
package/utils/reactNode.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e, { Fragment as t, isValidElement as n } from "react";
|
|
4
4
|
import { isFunction as r } from "@unicom-cloud/utils/is";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/reactNode.ts
|
|
6
6
|
function i(e) {
|
|
7
7
|
return e && n(e) && e.type === t;
|
|
8
8
|
}
|
|
@@ -10,7 +10,6 @@ var a = (t, i, a) => n(t) ? e.cloneElement(t, r(a) ? a(t.props || {}) : a) : i;
|
|
|
10
10
|
function o(e, t) {
|
|
11
11
|
return a(e, e, t);
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { o as cloneElement, i as isFragment, a as replaceElement };
|
|
15
14
|
/* 欲穷千里目,更上一层楼 */
|
|
16
15
|
/* 独立思考,明辨是非 */
|
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { get as e } from "./lodash.js";
|
|
4
4
|
import t from "../hooks/use-memo/index.js";
|
|
@@ -6,7 +6,7 @@ import { isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
|
|
|
6
6
|
import { isValidElement as i } from "react";
|
|
7
7
|
import { isExist as a, isFunction as o, isObjectLike as s } from "@unicom-cloud/utils/is";
|
|
8
8
|
import { ForwardRef as c, isMemo as l } from "react-is";
|
|
9
|
-
|
|
9
|
+
// components/common/utils/ref.ts
|
|
10
10
|
var u = (e, t) => {
|
|
11
11
|
o(e) ? e(t) : s(e) && "current" in e && (e.current = t);
|
|
12
12
|
}, d = (...e) => {
|
|
@@ -28,7 +28,6 @@ function h(t) {
|
|
|
28
28
|
return i(t) ? n ? e(t, ["props", "ref"]) : e(t, ["ref"]) : null;
|
|
29
29
|
}
|
|
30
30
|
var g = h;
|
|
31
|
-
//#endregion
|
|
32
31
|
export { d as composeRef, u as fillRef, g as getNodeRef, h as getReactElementRef, m as supportNodeRef, p as supportRef, f as useComposeRef };
|
|
33
32
|
/* 欲穷千里目,更上一层楼 */
|
|
34
33
|
/* 独立思考,明辨是非 */
|
package/utils/resizeObserver.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { noop as e } from "./lodash.js";
|
|
4
4
|
import { isElement as t, isFunction as n } from "@unicom-cloud/utils/is";
|
|
5
5
|
import r from "lodash/throttle";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/resizeObserver.ts
|
|
7
7
|
function i(i, a) {
|
|
8
8
|
let o = [].concat(i).filter((e, n, r) => t(e, !0));
|
|
9
9
|
if (!(o.length && n(a))) return e;
|
|
@@ -27,7 +27,6 @@ function i(i, a) {
|
|
|
27
27
|
d();
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as default, i as resizeObserver };
|
|
32
31
|
/* 欲穷千里目,更上一层楼 */
|
|
33
32
|
/* 独立思考,明辨是非 */
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
|
|
3
|
+
// components/common/utils/scrollIntoViewIfNeeded.ts
|
|
4
4
|
function e(e, t) {
|
|
5
5
|
e.scrollIntoView(t);
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { e as default, e as scrollIntoViewIfNeeded };
|
|
9
8
|
/* 欲穷千里目,更上一层楼 */
|
|
10
9
|
/* 独立思考,明辨是非 */
|
package/utils/scrollTo.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "./getScrollParent.js";
|
|
4
4
|
import { isHTMLElement as t } from "@unicom-cloud/utils/is";
|
|
5
|
-
|
|
5
|
+
// components/common/utils/scrollTo.ts
|
|
6
6
|
function n(n) {
|
|
7
7
|
let { selected: r, scrollParent: i, toLeft: a, toRight: o, toTop: s, toBottom: c, scrollToOptions: l } = n, u = i || e(r);
|
|
8
8
|
if (t(u)) {
|
|
@@ -19,7 +19,6 @@ function n(n) {
|
|
|
19
19
|
u.scrollTo(n);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { n as default };
|
|
24
23
|
/* 欲穷千里目,更上一层楼 */
|
|
25
24
|
/* 独立思考,明辨是非 */
|
package/utils/setDarkTheme.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
|
|
4
4
|
import { document_exports as t } from "./document.js";
|
|
5
5
|
import { isElement as n, isString as r } from "@unicom-cloud/utils/is";
|
|
6
6
|
import { UI_PC_THEME_DARK_CLASS_NAME as i } from "@unicom-cloud/utils/constants/ui";
|
|
7
|
-
|
|
7
|
+
// components/common/utils/setDarkTheme.ts
|
|
8
8
|
var a = "dark";
|
|
9
9
|
function o(e, i) {
|
|
10
10
|
n(e, !0) && r(i) && (0, t.startViewTransition)(() => {
|
|
@@ -28,7 +28,6 @@ function l(e) {
|
|
|
28
28
|
mode: "light"
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
//#endregion
|
|
32
31
|
export { c as default, c as setDarkTheme, l as removeDarkTheme };
|
|
33
32
|
/* 欲穷千里目,更上一层楼 */
|
|
34
33
|
/* 独立思考,明辨是非 */
|
package/utils/setDir.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
|
|
4
4
|
import { isPlainObject as t } from "@unicom-cloud/utils/is";
|
|
5
5
|
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/setDir.ts
|
|
7
7
|
function r(r) {
|
|
8
8
|
if (!t(r)) return;
|
|
9
9
|
let { prefix: i = n, dir: a = "ltr" } = r, o = e;
|
|
10
10
|
o.setAttribute("dir", a), o.classList.remove("ltr"), o.classList.remove("rtl"), o.classList.add(a);
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { r as default, r as setDir };
|
|
14
13
|
/* 欲穷千里目,更上一层楼 */
|
|
15
14
|
/* 独立思考,明辨是非 */
|
package/utils/setPrimaryColor.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
|
|
4
4
|
import { UI_PC_PREFIX as t } from "@unicom-cloud/utils/constants/ui";
|
|
5
5
|
import n from "@unicom-cloud/utils/tinycolor";
|
|
6
6
|
import * as r from "@unicom-cloud/utils/ui-color";
|
|
7
|
-
|
|
7
|
+
// components/common/utils/setPrimaryColor.ts
|
|
8
8
|
function i(i) {
|
|
9
9
|
let { color: a, element: o = e, isDark: s = !1, prefix: c = t } = i ?? {}, l = { color: a }, u = s ? r.generateDark(l) : r.generate(l);
|
|
10
10
|
n(a).equals(r.primary.value) ? d() : u.forEach((e, t, n) => {
|
|
@@ -17,7 +17,6 @@ function i(i) {
|
|
|
17
17
|
}
|
|
18
18
|
return d;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { i as default, i as setPrimaryColor };
|
|
22
21
|
/* 欲穷千里目,更上一层楼 */
|
|
23
22
|
/* 独立思考,明辨是非 */
|
package/utils/setTheme.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as e } from "./constants.js";
|
|
4
4
|
import { isPlainObject as t } from "@unicom-cloud/utils/is";
|
|
5
5
|
import { UI_PC_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
|
|
6
6
|
import r from "@unicom-cloud/utils/tinycolor";
|
|
7
|
-
|
|
7
|
+
// components/common/utils/setTheme.ts
|
|
8
8
|
function i(i) {
|
|
9
9
|
if (!t(i)) return;
|
|
10
10
|
let { prefix: a = n, element: o, ...s } = i, c = {
|
|
@@ -46,7 +46,6 @@ function i(i) {
|
|
|
46
46
|
p ? d.style.setProperty(n.active, r(p).toRgbArrayString()) : d.style.setProperty(n.active, u.lighten(-7).toRgbArrayString());
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { i as default, i as setTheme };
|
|
51
50
|
/* 欲穷千里目,更上一层楼 */
|
|
52
51
|
/* 独立思考,明辨是非 */
|
package/utils/string.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import { isEmptyReactNode as e } from "./is.js";
|
|
4
4
|
import { HYPHEN as t } from "@unicom-cloud/utils/constants/string";
|
|
5
5
|
import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/string.ts
|
|
7
7
|
function r(t) {
|
|
8
8
|
let r = t;
|
|
9
9
|
return e(r, !0) && (r = void 0), n(r);
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { t as HYPHEN, r as replaceEmptyWithHyphen };
|
|
13
12
|
/* 欲穷千里目,更上一层楼 */
|
|
14
13
|
/* 独立思考,明辨是非 */
|
package/utils/style.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
|
|
3
|
+
// components/common/utils/style.ts
|
|
4
4
|
var e = [
|
|
5
5
|
"transform",
|
|
6
6
|
"WebkitTransform",
|
|
@@ -32,7 +32,6 @@ function r(e, t) {
|
|
|
32
32
|
} catch {}
|
|
33
33
|
return r;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { t as fixedWidth, r as getStyle, n as setTransformStyle };
|
|
37
36
|
/* 欲穷千里目,更上一层楼 */
|
|
38
37
|
/* 独立思考,明辨是非 */
|
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "react";
|
|
4
4
|
import { isArray as t, isNullOrUndefined as n } from "@unicom-cloud/utils/is";
|
|
5
5
|
import { isFragment as r } from "react-is";
|
|
6
|
-
|
|
6
|
+
// components/common/utils/toArray.ts
|
|
7
7
|
function i(a, o = {}) {
|
|
8
8
|
let s = [];
|
|
9
9
|
return e.Children.forEach(a, (e) => {
|
|
10
10
|
(!n(e) || o.keepEmpty) && (t(e) ? s.push(...i(e, o)) : r(e) && e.props ? s.push(...i(e.props.children, o)) : s.push(e));
|
|
11
11
|
}), s;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { i as default, i as toArray };
|
|
15
14
|
/* 欲穷千里目,更上一层楼 */
|
|
16
15
|
/* 独立思考,明辨是非 */
|
package/utils/tunnel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import e from "../hooks/use-force-update/index.js";
|
|
4
4
|
import t from "../hooks/use-isomorphic-layout-effect/index.js";
|
|
5
5
|
import n from "./uuid.js";
|
|
6
6
|
import { useEffect as r, useRef as i } from "react";
|
|
7
7
|
import { isIndexNotFound as a } from "@unicom-cloud/utils/is";
|
|
8
|
-
|
|
8
|
+
// components/common/utils/tunnel.ts
|
|
9
9
|
function o(o) {
|
|
10
10
|
let s = { children: [] }, c = /* @__PURE__ */ new Set();
|
|
11
11
|
function l() {
|
|
@@ -56,7 +56,6 @@ function o(o) {
|
|
|
56
56
|
destroy: m
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { o as default, o as tunnel };
|
|
61
60
|
/* 欲穷千里目,更上一层楼 */
|
|
62
61
|
/* 独立思考,明辨是非 */
|
package/utils/validate.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Validator, ValidatorArray, ValidatorBase, ValidatorBoolean, ValidatorCustom,
|
|
1
|
+
export { Validator, ValidatorArray, ValidatorBase, ValidatorBoolean, ValidatorCustom, ValidatorNumber, ValidatorObject, ValidatorSchema, ValidatorString, ValidatorType, } from '@unicom-cloud/utils/validate';
|
|
2
2
|
export type { ValidateInnerOptions, ValidateMessagesTemplateType, ValidateMessagesType, ValidateRuleType, ValidateSchemaOptions, ValidateSchemaRuleType, ValidateSchemaType, ValidatorCustomType, ValidatorError, } from '@unicom-cloud/utils/validate';
|
package/utils/validate.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Validator, ValidatorArray, ValidatorBase, ValidatorBoolean, ValidatorCustom, ValidatorNumber, ValidatorObject, ValidatorSchema, ValidatorString, ValidatorType
|
|
1
|
+
export { Validator, ValidatorArray, ValidatorBase, ValidatorBoolean, ValidatorCustom, ValidatorNumber, ValidatorObject, ValidatorSchema, ValidatorString, ValidatorType } from "@unicom-cloud/utils/validate";
|
|
2
2
|
/* 欲穷千里目,更上一层楼 */
|
|
3
3
|
/* 独立思考,明辨是非 */
|
package/utils/warning.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
3
|
import "@unicom-cloud/utils/constants/ui";
|
|
4
|
-
|
|
4
|
+
// components/common/utils/warning.ts
|
|
5
5
|
function e(e, t, ...n) {}
|
|
6
|
-
//#endregion
|
|
7
6
|
export { e as default, e as warning };
|
|
8
7
|
/* 欲穷千里目,更上一层楼 */
|
|
9
8
|
/* 独立思考,明辨是非 */
|
package/version/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-11-02 16:50:20 星期一 山东省济南市 */
|
|
2
2
|
/* 世界因你而美丽 */
|
|
3
|
-
|
|
3
|
+
// components/common/version/index.ts
|
|
4
4
|
var e = {
|
|
5
5
|
name: "潘启宝",
|
|
6
|
-
date: "2026-
|
|
6
|
+
date: "2026-11-02 16:50:18",
|
|
7
7
|
platform: "darwin",
|
|
8
8
|
arch: "arm64",
|
|
9
9
|
hostname: "Mac-mini-2.local",
|
|
@@ -11,19 +11,18 @@ var e = {
|
|
|
11
11
|
cpu: "Apple M4",
|
|
12
12
|
endianness: "LE",
|
|
13
13
|
release: "Darwin27.0.0",
|
|
14
|
-
uptime:
|
|
15
|
-
UUID: "
|
|
14
|
+
uptime: 28369,
|
|
15
|
+
UUID: "76f2557d-d321-4c04-adb7-da54f35aed12",
|
|
16
16
|
mac: "02:00:00:00:00:00",
|
|
17
17
|
version: {
|
|
18
18
|
node: "24.21.0",
|
|
19
19
|
npm: "11.19.0",
|
|
20
|
-
vite: "8.3.
|
|
21
|
-
rolldown: "1.2.
|
|
20
|
+
vite: "8.3.5",
|
|
21
|
+
rolldown: "1.2.15",
|
|
22
22
|
self: "0.0.0",
|
|
23
23
|
react: "19.3.1"
|
|
24
24
|
}
|
|
25
|
-
}, t = "2026-
|
|
26
|
-
//#endregion
|
|
25
|
+
}, t = "2026-11-02 16:50:18", n = "1793609418400", r = "0.1.0";
|
|
27
26
|
export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
|
|
28
27
|
/* 欲穷千里目,更上一层楼 */
|
|
29
28
|
/* 独立思考,明辨是非 */
|
package/utils/callOrReturn.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { callOrReturn, callOrReturn as default, } from '@unicom-cloud/utils/function';
|
package/utils/callOrReturn.js
DELETED