@unicom-cloud/ui-common 0.1.43 → 0.1.45
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 +2 -2
- 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 +21 -21
- 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 +18 -18
- 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 +17 -17
- 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 +37 -36
- package/flex/constants.js +1 -1
- package/flex/context.js +1 -1
- package/flex/index.js +1 -1
- package/flex/interface.d.ts +3 -12
- package/flex/style/index.js +1 -1
- package/flex/utils.js +10 -10
- 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 +16 -16
- 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 +1 -1
- package/hooks/use-intersection-observer/index.js +1 -1
- package/hooks/use-intersection-observers/index.js +5 -6
- 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-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 +5 -6
- 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-refs/index.js +1 -1
- package/hooks/use-request/index.js +1 -1
- package/hooks/use-request/src/Fetch.js +1 -1
- package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useCachePlugin.js +2 -2
- package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
- package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
- package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
- package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
- package/hooks/use-request/src/useRequest.js +1 -1
- package/hooks/use-request/src/useRequestImplement.js +1 -1
- package/hooks/use-request/src/utils/cache.js +1 -1
- package/hooks/use-request/src/utils/cachePromise.js +1 -1
- package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
- package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
- package/hooks/use-request/src/utils/isOnline.js +1 -1
- package/hooks/use-request/src/utils/limit.js +1 -1
- package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
- package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
- package/hooks/use-reset-state/index.js +1 -1
- package/hooks/use-resize-observer/index.js +1 -1
- package/hooks/use-resize-observers/index.js +5 -6
- package/hooks/use-responsive/index.js +1 -1
- package/hooks/use-safe-state/index.js +1 -1
- package/hooks/use-scroll/index.js +1 -1
- package/hooks/use-selections/index.js +1 -1
- package/hooks/use-session-storage-state/index.js +1 -1
- package/hooks/use-set/index.js +1 -1
- package/hooks/use-set-state/index.js +1 -1
- package/hooks/use-size/index.js +1 -1
- package/hooks/use-state-callback/index.js +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.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 +2 -2
- 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/noop.d.ts +2 -2
- 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 +475 -470
- package/package.json +1 -1
- package/progress/Progress.js +31 -33
- package/progress/constants.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 +4 -4
- package/resize-observer/SingleObserver.js +10 -10
- 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 +44 -48
- package/space/constants.js +1 -1
- package/space/context.js +1 -1
- package/space/index.js +1 -1
- package/space/interface.d.ts +2 -15
- package/space/style/index.js +1 -1
- package/space/utils.js +1 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +5 -4
- 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 +15 -15
- 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 +32 -32
- 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/typewriter/Typewriter.js +28 -28
- package/typewriter/constants.js +1 -1
- package/typewriter/context.js +1 -1
- package/typewriter/index.js +1 -1
- package/typewriter/style/index.js +1 -1
- package/typewriter/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/constants.d.ts +0 -1
- package/utils/constants.js +4 -5
- package/utils/copy.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.d.ts +10 -0
- package/utils/dom.js +14 -3
- 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/getElement.js +5 -5
- package/utils/getHighlightText.js +1 -1
- package/utils/getHotkeyHandler.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/include.js +1 -1
- package/utils/index.js +230 -225
- 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 +6 -1
- package/utils/lodash.js +64 -59
- package/utils/math.js +1 -1
- package/utils/mergeProps.js +1 -1
- package/utils/mergedToString.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 +2 -2
- 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/setCreateRoot.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.d.ts +2 -0
- package/utils/tunnel.js +45 -42
- 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/lodash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import e from "lodash/castArray";
|
|
3
3
|
import t from "lodash/debounce";
|
|
4
4
|
import n from "@unicom-cloud/utils/lodash/move";
|
|
@@ -9,62 +9,67 @@ import o from "lodash/camelCase";
|
|
|
9
9
|
import s from "lodash/capitalize";
|
|
10
10
|
import c from "lodash/chain";
|
|
11
11
|
import l from "lodash/chunk";
|
|
12
|
-
import u from "lodash/
|
|
13
|
-
import d from "lodash/
|
|
14
|
-
import f from "lodash/
|
|
15
|
-
import p from "lodash/
|
|
16
|
-
import m from "lodash/
|
|
17
|
-
import h from "lodash/
|
|
18
|
-
import g from "lodash/
|
|
19
|
-
import _ from "lodash/
|
|
20
|
-
import v from "lodash/
|
|
21
|
-
import y from "lodash/
|
|
22
|
-
import b from "lodash/
|
|
23
|
-
import x from "lodash/
|
|
24
|
-
import S from "lodash/
|
|
25
|
-
import C from "lodash/
|
|
26
|
-
import w from "lodash/
|
|
27
|
-
import T from "lodash/
|
|
28
|
-
import E from "lodash/
|
|
29
|
-
import D from "lodash/
|
|
30
|
-
import O from "lodash/
|
|
31
|
-
import k from "lodash/
|
|
32
|
-
import A from "lodash/
|
|
33
|
-
import j from "lodash/
|
|
34
|
-
import M from "lodash/
|
|
35
|
-
import N from "lodash/
|
|
36
|
-
import P from "lodash/
|
|
37
|
-
import F from "lodash/
|
|
38
|
-
import I from "lodash/
|
|
39
|
-
import L from "lodash/
|
|
40
|
-
import R from "lodash/
|
|
41
|
-
import z from "lodash/
|
|
42
|
-
import B from "lodash/
|
|
43
|
-
import V from "lodash/
|
|
44
|
-
import H from "lodash/
|
|
45
|
-
import U from "lodash/
|
|
46
|
-
import W from "lodash/
|
|
47
|
-
import G from "lodash/
|
|
48
|
-
import K from "lodash/
|
|
49
|
-
import q from "lodash/
|
|
50
|
-
import J from "lodash/
|
|
51
|
-
import Y from "lodash/
|
|
52
|
-
import X from "lodash/
|
|
53
|
-
import Z from "lodash/
|
|
54
|
-
import Q from "lodash/
|
|
55
|
-
import $ from "lodash/
|
|
56
|
-
import ee from "lodash/
|
|
57
|
-
import te from "lodash/
|
|
58
|
-
import ne from "lodash/
|
|
59
|
-
import re from "lodash/
|
|
60
|
-
import ie from "lodash/
|
|
61
|
-
import ae from "lodash/
|
|
62
|
-
import oe from "lodash/
|
|
63
|
-
import se from "lodash/
|
|
64
|
-
import ce from "lodash/
|
|
65
|
-
import le from "lodash/
|
|
66
|
-
import ue from "lodash/
|
|
67
|
-
import de from "lodash/
|
|
68
|
-
import fe from "lodash/
|
|
69
|
-
|
|
12
|
+
import u from "lodash/clamp";
|
|
13
|
+
import d from "lodash/clone";
|
|
14
|
+
import f from "lodash/cloneDeep";
|
|
15
|
+
import p from "lodash/cloneDeepWith";
|
|
16
|
+
import m from "lodash/cloneWith";
|
|
17
|
+
import h from "lodash/compact";
|
|
18
|
+
import g from "lodash/curry";
|
|
19
|
+
import _ from "lodash/defaults";
|
|
20
|
+
import v from "lodash/defaultsDeep";
|
|
21
|
+
import y from "lodash/defaultTo";
|
|
22
|
+
import b from "lodash/difference";
|
|
23
|
+
import x from "lodash/escape";
|
|
24
|
+
import S from "lodash/findKey";
|
|
25
|
+
import C from "lodash/flatten";
|
|
26
|
+
import w from "lodash/flattenDeep";
|
|
27
|
+
import T from "lodash/flow";
|
|
28
|
+
import E from "lodash/get";
|
|
29
|
+
import D from "lodash/groupBy";
|
|
30
|
+
import O from "lodash/has";
|
|
31
|
+
import k from "lodash/hasIn";
|
|
32
|
+
import A from "lodash/intersection";
|
|
33
|
+
import j from "lodash/invert";
|
|
34
|
+
import M from "lodash/invertBy";
|
|
35
|
+
import N from "lodash/invoke";
|
|
36
|
+
import P from "lodash/kebabCase";
|
|
37
|
+
import F from "lodash/mapKeys";
|
|
38
|
+
import I from "lodash/mapValues";
|
|
39
|
+
import L from "lodash/mean";
|
|
40
|
+
import R from "lodash/memoize";
|
|
41
|
+
import z from "lodash/merge";
|
|
42
|
+
import B from "lodash/mergeWith";
|
|
43
|
+
import V from "lodash/noop";
|
|
44
|
+
import H from "lodash/omit";
|
|
45
|
+
import U from "lodash/omitBy";
|
|
46
|
+
import W from "lodash/orderBy";
|
|
47
|
+
import G from "lodash/partition";
|
|
48
|
+
import K from "lodash/pick";
|
|
49
|
+
import q from "lodash/pickBy";
|
|
50
|
+
import J from "lodash/pullAll";
|
|
51
|
+
import Y from "lodash/result";
|
|
52
|
+
import X from "lodash/sample";
|
|
53
|
+
import Z from "lodash/sampleSize";
|
|
54
|
+
import Q from "lodash/set";
|
|
55
|
+
import $ from "lodash/setWith";
|
|
56
|
+
import ee from "lodash/shuffle";
|
|
57
|
+
import te from "lodash/snakeCase";
|
|
58
|
+
import ne from "lodash/sortBy";
|
|
59
|
+
import re from "lodash/startCase";
|
|
60
|
+
import ie from "lodash/throttle";
|
|
61
|
+
import ae from "lodash/toPath";
|
|
62
|
+
import oe from "lodash/truncate";
|
|
63
|
+
import se from "lodash/union";
|
|
64
|
+
import ce from "lodash/uniq";
|
|
65
|
+
import le from "lodash/uniqueId";
|
|
66
|
+
import ue from "lodash/unset";
|
|
67
|
+
import de from "lodash/update";
|
|
68
|
+
import fe from "lodash/updateWith";
|
|
69
|
+
import pe from "lodash/upperCase";
|
|
70
|
+
import me from "lodash/upperFirst";
|
|
71
|
+
import he from "lodash/without";
|
|
72
|
+
import ge from "lodash/xor";
|
|
73
|
+
import _e from "lodash/zip";
|
|
74
|
+
export { r as assign, i as assignIn, a as at, o as camelCase, s as capitalize, e as castArray, c as chain, l as chunk, u as clamp, d as clone, f as cloneDeep, p as cloneDeepWith, m as cloneWith, h as compact, g as curry, t as debounce, y as defaultTo, _ as defaults, v as defaultsDeep, b as difference, x as escape, S as findKey, C as flatten, w as flattenDeep, T as flow, E as get, D as groupBy, O as has, k as hasIn, A as intersection, j as invert, M as invertBy, N as invoke, P as kebabCase, F as mapKeys, I as mapValues, L as mean, R as memoize, z as merge, B as mergeWith, n as move, V as noop, H as omit, U as omitBy, W as orderBy, G as partition, K as pick, q as pickBy, J as pullAll, Y as result, X as sample, Z as sampleSize, Q as set, $ as setWith, ee as shuffle, te as snakeCase, ne as sortBy, re as startCase, ie as throttle, ae as toPath, oe as truncate, se as union, ce as uniq, le as uniqueId, ue as unset, de as update, fe as updateWith, pe as upperCase, me as upperFirst, he as without, ge as xor, _e as zip };
|
|
70
75
|
/* 独立思考,明辨是非 */
|
package/utils/math.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import e, { div as t, minus as n, plus as r, times as i, default as a } from "@unicom-cloud/utils/math";
|
|
3
3
|
export { a as default, t as div, e as math, n as minus, r as plus, i as times };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/mergeProps.js
CHANGED
package/utils/mergedToString.js
CHANGED
package/utils/names.js
CHANGED
package/utils/object.js
CHANGED
package/utils/omit.js
CHANGED
package/utils/pad.js
CHANGED
package/utils/pick.js
CHANGED
package/utils/pinyin.js
CHANGED
package/utils/react19Adapter.js
CHANGED
package/utils/reactNode.js
CHANGED
package/utils/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import { isFunction as e, isObjectLike as t, isReact19 as n, isReactComponentAndNotFragment as r } from "./is.js";
|
|
3
3
|
import i from "../hooks/use-memo/index.js";
|
|
4
4
|
import { isValidElement as a } from "react";
|
package/utils/resizeObserver.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import { isElement as e, isFunction as t } from "./is.js";
|
|
3
|
-
import {
|
|
3
|
+
import { noop as n } from "./lodash.js";
|
|
4
4
|
import r from "lodash/throttle";
|
|
5
5
|
//#region components/common/utils/resizeObserver.ts
|
|
6
6
|
function i(i, a) {
|
package/utils/saveAs.js
CHANGED
package/utils/screenfull.js
CHANGED
package/utils/scrollTo.js
CHANGED
package/utils/setCreateRoot.js
CHANGED
package/utils/setDarkTheme.js
CHANGED
package/utils/setDir.js
CHANGED
package/utils/setPrimaryColor.js
CHANGED
package/utils/setTheme.js
CHANGED
package/utils/string.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import { isEmptyReactNode as e } from "./is.js";
|
|
3
3
|
import { HYPHEN as t } from "@unicom-cloud/utils/constants/string";
|
|
4
4
|
import { replaceEmptyWithHyphen as n } from "@unicom-cloud/utils/string";
|
package/utils/style.js
CHANGED
package/utils/tinycolor.js
CHANGED
package/utils/toArray.js
CHANGED
package/utils/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import e, { findNodeBy as t, getChildWithParentBy as n, getItemBy as r, getItemByID as i, getLabelFromDictionaryByValue as a, searchTree as o, default as s } from "@unicom-cloud/utils/tree";
|
|
3
3
|
export { s as default, t as findNodeBy, n as getChildWithParentBy, r as getItemBy, i as getItemByID, a as getLabelFromDictionaryByValue, o as searchTree, e as tree };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/tunnel.d.ts
CHANGED
package/utils/tunnel.js
CHANGED
|
@@ -1,57 +1,60 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
import e from "
|
|
3
|
-
import t from "../hooks/use-
|
|
4
|
-
import n from "
|
|
5
|
-
import
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
|
+
import { isNotFound as e } from "./is.js";
|
|
3
|
+
import t from "../hooks/use-force-update/index.js";
|
|
4
|
+
import n from "../hooks/use-isomorphic-layout-effect/index.js";
|
|
5
|
+
import r from "./uuid.js";
|
|
6
|
+
import { useEffect as i, useRef as a } from "react";
|
|
6
7
|
//#region components/common/utils/tunnel.ts
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
function
|
|
10
|
-
|
|
8
|
+
function o(o) {
|
|
9
|
+
let s = { children: [] }, c = /* @__PURE__ */ new Set();
|
|
10
|
+
function l() {
|
|
11
|
+
c.forEach((e, t, n) => {
|
|
11
12
|
e((e) => {});
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
f(
|
|
16
|
-
child:
|
|
17
|
-
id:
|
|
18
|
-
}
|
|
15
|
+
function u(t, n, r) {
|
|
16
|
+
let i = f(), a = {
|
|
17
|
+
child: t,
|
|
18
|
+
id: n
|
|
19
|
+
}, o = i.findIndex((e, t, r) => e.id === n);
|
|
20
|
+
e(o) ? i = r ? [a, ...i] : [...i, a] : i[o] = a, p(i);
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
f(
|
|
22
|
+
function d(e) {
|
|
23
|
+
p(f().filter((t, n, r) => t.id !== e));
|
|
22
24
|
}
|
|
23
|
-
function
|
|
24
|
-
return
|
|
25
|
+
function f() {
|
|
26
|
+
return s.children;
|
|
25
27
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
+
function p(e) {
|
|
29
|
+
s.children = e, l();
|
|
28
30
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
+
function m() {
|
|
32
|
+
p([]), c.clear();
|
|
31
33
|
}
|
|
32
|
-
function
|
|
33
|
-
let { children:
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
}), [
|
|
34
|
+
function h(e) {
|
|
35
|
+
let { id: t, insertAtStart: i = !1, children: o, content: s = o } = e, c = a(t ?? r());
|
|
36
|
+
return n(() => (u(s, c.current, i), () => {
|
|
37
|
+
d(c.current);
|
|
38
|
+
}), [s, i]), null;
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Object.freeze(h);
|
|
41
|
+
function g(e) {
|
|
42
|
+
let n = t();
|
|
43
|
+
i(() => (c.add(n), () => {
|
|
44
|
+
c.delete(n);
|
|
42
45
|
}), []);
|
|
43
|
-
let
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
return Object.setPrototypeOf(
|
|
47
|
-
return
|
|
48
|
-
} }), {
|
|
49
|
-
In:
|
|
50
|
-
Out:
|
|
51
|
-
notify:
|
|
52
|
-
destroy:
|
|
46
|
+
let r = f().map((e, t, n) => e.child);
|
|
47
|
+
return r.length > 1 ? r : r[0];
|
|
48
|
+
}
|
|
49
|
+
return Object.setPrototypeOf(g, { get children() {
|
|
50
|
+
return f();
|
|
51
|
+
} }), Object.freeze(g), {
|
|
52
|
+
In: h,
|
|
53
|
+
Out: g,
|
|
54
|
+
notify: l,
|
|
55
|
+
destroy: m
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
//#endregion
|
|
56
|
-
export {
|
|
59
|
+
export { o as default, o as tunnel };
|
|
57
60
|
/* 独立思考,明辨是非 */
|
package/utils/tween.js
CHANGED
package/utils/uuid.js
CHANGED
package/utils/validate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
import { PqbValidator as e, Validator as t, ValidatorArray as n, ValidatorBase as r, ValidatorBoolean as i, ValidatorCustom as a, ValidatorNumber as o, ValidatorObject as s, ValidatorSchema as c, ValidatorString as l, ValidatorType as u, validatorLocale as d } from "@unicom-cloud/utils/validate";
|
|
3
3
|
export { e as PqbValidator, t as Validator, n as ValidatorArray, r as ValidatorBase, i as ValidatorBoolean, a as ValidatorCustom, o as ValidatorNumber, s as ValidatorObject, c as ValidatorSchema, l as ValidatorString, u as ValidatorType, d as validatorLocale };
|
|
4
4
|
/* 独立思考,明辨是非 */
|
package/utils/warning.js
CHANGED
package/version/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-08-08 11:09:06 星期六 山东省济南市 */
|
|
2
2
|
//#region components/common/version/index.ts
|
|
3
3
|
var e = {
|
|
4
4
|
name: "潘启宝",
|
|
5
|
-
date: "2026-
|
|
5
|
+
date: "2026-08-08 11:09:05",
|
|
6
6
|
platform: "darwin",
|
|
7
7
|
arch: "arm64",
|
|
8
8
|
hostname: "Mac-mini-2.local",
|
|
@@ -10,18 +10,18 @@ var e = {
|
|
|
10
10
|
cpu: "Apple M4",
|
|
11
11
|
endianness: "LE",
|
|
12
12
|
release: "Darwin25.5.0",
|
|
13
|
-
uptime:
|
|
14
|
-
UUID: "
|
|
13
|
+
uptime: 156,
|
|
14
|
+
UUID: "92263907-ae16-4329-b265-60a86c21e4c2",
|
|
15
15
|
mac: "d0:11:e5:86:6d:e8",
|
|
16
16
|
version: {
|
|
17
17
|
node: "24.15.0",
|
|
18
18
|
npm: "11.12.1",
|
|
19
|
-
vite: "8.1
|
|
20
|
-
rolldown: "1.1
|
|
19
|
+
vite: "8.2.1",
|
|
20
|
+
rolldown: "1.2.1",
|
|
21
21
|
self: "0.0.0",
|
|
22
22
|
react: "19.2.8"
|
|
23
23
|
}
|
|
24
|
-
}, t = "2026-
|
|
24
|
+
}, t = "2026-08-08 11:09:05", n = "1786158545060", r = "0.1.0";
|
|
25
25
|
//#endregion
|
|
26
26
|
export { r as VERSION, r as default, t as VERSION_BUILD_DATE, e as VERSION_BUILD_INFO, n as VERSION_BUILD_TIME };
|
|
27
27
|
/* 独立思考,明辨是非 */
|