@unicom-cloud/ui-common 0.1.41 → 0.1.43

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.
Files changed (364) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/animation/Animation.js +38 -38
  3. package/animation/constants.js +1 -1
  4. package/animation/context.js +1 -1
  5. package/animation/hooks/index.d.ts +0 -0
  6. package/animation/index.js +1 -1
  7. package/animation/style/index.js +1 -1
  8. package/animation/utils.js +1 -1
  9. package/base/Base.d.ts +3 -0
  10. package/base/Base.js +6 -0
  11. package/base/constants.d.ts +0 -0
  12. package/base/constants.js +2 -0
  13. package/base/context.d.ts +3 -0
  14. package/base/context.js +7 -0
  15. package/base/hooks/index.d.ts +0 -0
  16. package/base/index.d.ts +9 -0
  17. package/base/index.js +9 -0
  18. package/base/interface.d.ts +5 -0
  19. package/base/style/index.d.ts +1 -0
  20. package/base/style/index.js +3 -0
  21. package/base/utils.d.ts +0 -0
  22. package/base/utils.js +2 -0
  23. package/border-beam/BorderBeam.js +1 -1
  24. package/border-beam/Effect.js +1 -1
  25. package/border-beam/constants.js +1 -1
  26. package/border-beam/context.js +1 -1
  27. package/border-beam/hooks/useBorderSize.js +1 -1
  28. package/border-beam/hooks/useChildDom.js +1 -1
  29. package/border-beam/index.js +1 -1
  30. package/border-beam/style/index.js +1 -1
  31. package/border-beam/utils.js +1 -1
  32. package/development/Development.js +1 -1
  33. package/development/constants.js +1 -1
  34. package/development/context.js +1 -1
  35. package/development/hooks/index.d.ts +0 -0
  36. package/development/index.js +1 -1
  37. package/development/style/index.js +1 -1
  38. package/development/utils.js +1 -1
  39. package/empty/Empty.js +1 -1
  40. package/empty/constants.js +1 -1
  41. package/empty/context.js +1 -1
  42. package/empty/hooks/index.d.ts +0 -0
  43. package/empty/index.js +1 -1
  44. package/empty/style/index.js +1 -1
  45. package/empty/utils.js +1 -1
  46. package/flex/Flex.js +1 -1
  47. package/flex/constants.js +1 -1
  48. package/flex/context.js +1 -1
  49. package/flex/hooks/index.d.ts +0 -0
  50. package/flex/index.js +1 -1
  51. package/flex/style/index.js +1 -1
  52. package/flex/utils.d.ts +1 -1
  53. package/flex/utils.js +26 -26
  54. package/higher-order/index.js +1 -1
  55. package/higher-order/with-speech-synthesis/context.js +1 -1
  56. package/higher-order/with-speech-synthesis/hooks/index.d.ts +0 -0
  57. package/higher-order/with-speech-synthesis/index.js +1 -1
  58. package/higher-order/with-speech-synthesis/style/index.js +1 -1
  59. package/higher-order/with-speech-synthesis/withSpeechSynthesis.js +1 -1
  60. package/hoc/withContext.d.ts +10 -0
  61. package/hoc/withContext.js +18 -0
  62. package/hooks/create-deep-compare-effect/index.js +1 -1
  63. package/hooks/create-update-effect/index.js +1 -1
  64. package/hooks/create-use-storage-state/index.js +1 -1
  65. package/hooks/index.d.ts +1 -0
  66. package/hooks/index.js +41 -40
  67. package/hooks/use-async-effect/index.js +1 -1
  68. package/hooks/use-boolean/index.js +1 -1
  69. package/hooks/use-click-away/index.js +1 -1
  70. package/hooks/use-computed-state/index.js +1 -1
  71. package/hooks/use-controllable-value/index.js +1 -1
  72. package/hooks/use-cookie-state/index.js +1 -1
  73. package/hooks/use-count-down/index.js +1 -1
  74. package/hooks/use-counter/index.js +1 -1
  75. package/hooks/use-create/index.js +1 -1
  76. package/hooks/use-creation/index.js +1 -1
  77. package/hooks/use-debounce/index.js +1 -1
  78. package/hooks/use-debounce-effect/index.js +1 -1
  79. package/hooks/use-debounce-fn/index.js +1 -1
  80. package/hooks/use-deep-compare-effect/index.js +1 -1
  81. package/hooks/use-deep-compare-layout-effect/index.js +1 -1
  82. package/hooks/use-document-visibility/index.js +1 -1
  83. package/hooks/use-drag/index.js +1 -1
  84. package/hooks/use-drag-move/index.d.ts +2 -0
  85. package/hooks/use-drag-move/index.js +67 -0
  86. package/hooks/use-drag-move/interface.d.ts +8 -0
  87. package/hooks/use-drop/index.js +1 -1
  88. package/hooks/use-effect-event/index.js +1 -1
  89. package/hooks/use-event/index.js +1 -1
  90. package/hooks/use-event-emitter/index.js +1 -1
  91. package/hooks/use-event-listener/index.js +1 -1
  92. package/hooks/use-event-target/index.js +1 -1
  93. package/hooks/use-external/index.js +27 -27
  94. package/hooks/use-favicon/index.js +1 -1
  95. package/hooks/use-focus-within/index.js +1 -1
  96. package/hooks/use-force-update/index.js +1 -1
  97. package/hooks/use-fullscreen/index.js +1 -1
  98. package/hooks/use-get-state/index.js +1 -1
  99. package/hooks/use-history-travel/index.js +1 -1
  100. package/hooks/use-hover/index.js +1 -1
  101. package/hooks/use-id/index.js +1 -1
  102. package/hooks/use-in-viewport/index.js +1 -1
  103. package/hooks/use-infinite-scroll/index.js +1 -1
  104. package/hooks/use-intersection-observer/index.js +1 -1
  105. package/hooks/use-intersection-observers/index.d.ts +1 -0
  106. package/hooks/use-intersection-observers/index.js +24 -22
  107. package/hooks/use-interval/index.js +1 -1
  108. package/hooks/use-is-first-render/index.js +1 -1
  109. package/hooks/use-isomorphic-layout-effect/index.js +1 -1
  110. package/hooks/use-key-press/index.js +1 -1
  111. package/hooks/use-keyboard-event/index.d.ts +2 -2
  112. package/hooks/use-keyboard-event/index.js +1 -1
  113. package/hooks/use-latest/index.js +1 -1
  114. package/hooks/use-listen-window-resize/index.js +1 -1
  115. package/hooks/use-local-storage-state/index.js +1 -1
  116. package/hooks/use-lock-fn/index.js +1 -1
  117. package/hooks/use-long-press/index.js +1 -1
  118. package/hooks/use-map/index.js +1 -1
  119. package/hooks/use-media/index.js +1 -1
  120. package/hooks/use-memo/index.js +1 -1
  121. package/hooks/use-memoized-fn/index.js +1 -1
  122. package/hooks/use-merge-props/index.d.ts +2 -2
  123. package/hooks/use-merge-props/index.js +2 -2
  124. package/hooks/use-merge-value/index.js +1 -1
  125. package/hooks/use-mobile/index.js +1 -1
  126. package/hooks/use-mount/index.js +1 -1
  127. package/hooks/use-mouse/index.js +1 -1
  128. package/hooks/use-move/index.d.ts +2 -4
  129. package/hooks/use-move/index.js +3 -67
  130. package/hooks/use-move/interface.d.ts +1 -0
  131. package/hooks/use-mutation-observer/index.js +1 -1
  132. package/hooks/use-mutation-observers/index.d.ts +1 -0
  133. package/hooks/use-mutation-observers/index.js +24 -22
  134. package/hooks/use-network/index.js +1 -1
  135. package/hooks/use-online-status/index.js +1 -1
  136. package/hooks/use-overflow-hidden/index.js +1 -1
  137. package/hooks/use-override-ref/index.d.ts +4 -1
  138. package/hooks/use-override-ref/index.js +1 -1
  139. package/hooks/use-pagination/index.js +1 -1
  140. package/hooks/use-paste-image/index.js +1 -1
  141. package/hooks/use-persist-callback/index.js +1 -1
  142. package/hooks/use-prefers-color-scheme-dark/index.js +1 -1
  143. package/hooks/use-previous/index.js +1 -1
  144. package/hooks/use-raf-interval/index.js +1 -1
  145. package/hooks/use-raf-state/index.js +1 -1
  146. package/hooks/use-raf-timeout/index.js +1 -1
  147. package/hooks/use-reactive/index.js +1 -1
  148. package/hooks/use-ref-latest/index.js +1 -1
  149. package/hooks/use-refs/index.js +1 -1
  150. package/hooks/use-request/index.js +1 -1
  151. package/hooks/use-request/src/Fetch.js +1 -1
  152. package/hooks/use-request/src/plugins/useAutoRunPlugin.js +1 -1
  153. package/hooks/use-request/src/plugins/useCachePlugin.js +1 -1
  154. package/hooks/use-request/src/plugins/useDebouncePlugin.js +1 -1
  155. package/hooks/use-request/src/plugins/useLoadingDelayPlugin.js +1 -1
  156. package/hooks/use-request/src/plugins/usePollingPlugin.js +1 -1
  157. package/hooks/use-request/src/plugins/useRefreshOnWindowFocusPlugin.js +1 -1
  158. package/hooks/use-request/src/plugins/useRetryPlugin.js +1 -1
  159. package/hooks/use-request/src/plugins/useThrottlePlugin.js +1 -1
  160. package/hooks/use-request/src/useRequest.js +1 -1
  161. package/hooks/use-request/src/useRequestImplement.js +1 -1
  162. package/hooks/use-request/src/utils/cache.js +1 -1
  163. package/hooks/use-request/src/utils/cachePromise.js +1 -1
  164. package/hooks/use-request/src/utils/cacheSubscribe.js +1 -1
  165. package/hooks/use-request/src/utils/isDocumentVisible.js +1 -1
  166. package/hooks/use-request/src/utils/isOnline.js +1 -1
  167. package/hooks/use-request/src/utils/limit.js +1 -1
  168. package/hooks/use-request/src/utils/subscribeFocus.js +1 -1
  169. package/hooks/use-request/src/utils/subscribeReVisible.js +1 -1
  170. package/hooks/use-reset-state/index.js +1 -1
  171. package/hooks/use-resize-observer/index.js +1 -1
  172. package/hooks/use-resize-observers/index.d.ts +1 -0
  173. package/hooks/use-resize-observers/index.js +24 -22
  174. package/hooks/use-responsive/index.js +1 -1
  175. package/hooks/use-safe-state/index.js +1 -1
  176. package/hooks/use-scroll/index.js +1 -1
  177. package/hooks/use-selections/index.js +1 -1
  178. package/hooks/use-session-storage-state/index.js +1 -1
  179. package/hooks/use-set/index.js +1 -1
  180. package/hooks/use-set-state/index.js +1 -1
  181. package/hooks/use-size/index.js +1 -1
  182. package/hooks/use-state-callback/index.js +1 -1
  183. package/hooks/use-state-with-promise/index.js +1 -1
  184. package/hooks/use-sync-state/index.js +5 -5
  185. package/hooks/use-text-selection/index.js +1 -1
  186. package/hooks/use-theme/index.js +1 -1
  187. package/hooks/use-throttle/index.js +1 -1
  188. package/hooks/use-throttle-effect/index.js +1 -1
  189. package/hooks/use-throttle-fn/index.js +1 -1
  190. package/hooks/use-throttle-fn-with-raf/index.js +1 -1
  191. package/hooks/use-timeout/index.js +1 -1
  192. package/hooks/use-title/index.js +1 -1
  193. package/hooks/use-toggle/index.js +1 -1
  194. package/hooks/use-tracked-effect/index.js +1 -1
  195. package/hooks/use-unmount/index.js +1 -1
  196. package/hooks/use-unmounted-ref/index.js +1 -1
  197. package/hooks/use-update/index.js +1 -1
  198. package/hooks/use-update-effect/index.js +1 -1
  199. package/hooks/use-update-layout-effect/index.js +1 -1
  200. package/hooks/use-url-state/index.js +1 -1
  201. package/hooks/use-virtual-list/index.js +1 -1
  202. package/hooks/use-watch/index.js +1 -1
  203. package/hooks/use-web-socket/index.js +1 -1
  204. package/hooks/use-why-did-you-update/index.js +1 -1
  205. package/hooks/use-window-size/index.js +1 -1
  206. package/hooks/utils/createEffectWithTarget.js +1 -1
  207. package/hooks/utils/depsAreSame.js +1 -1
  208. package/hooks/utils/depsEqual.js +1 -1
  209. package/hooks/utils/domTarget.js +1 -1
  210. package/hooks/utils/getDocumentOrShadow.js +1 -1
  211. package/hooks/utils/index.js +1 -1
  212. package/hooks/utils/isAppleDevice.js +1 -1
  213. package/hooks/utils/isBrowser.js +1 -1
  214. package/hooks/utils/isDev.js +1 -1
  215. package/hooks/utils/rect.js +1 -1
  216. package/hooks/utils/useDeepCompareWithTarget.js +1 -1
  217. package/hooks/utils/useEffectWithTarget.js +1 -1
  218. package/hooks/utils/useIsomorphicLayoutEffectWithTarget.js +1 -1
  219. package/hooks/utils/useLayoutEffectWithTarget.js +1 -1
  220. package/icons/file/File.js +1 -1
  221. package/icons/file/context.js +1 -1
  222. package/icons/file/hooks/index.d.ts +0 -0
  223. package/icons/file/index.js +1 -1
  224. package/icons/file/style/index.js +1 -1
  225. package/index.d.ts +2 -0
  226. package/index.js +628 -620
  227. package/package.json +1 -1
  228. package/progress/Progress.js +1 -1
  229. package/progress/constants.js +1 -1
  230. package/progress/index.js +1 -1
  231. package/progress/style/index.js +1 -1
  232. package/progress/utils.js +1 -1
  233. package/resize-observer/Collection.js +1 -1
  234. package/resize-observer/ResizeObserver.js +1 -1
  235. package/resize-observer/SingleObserver.js +2 -2
  236. package/resize-observer/constants.js +1 -1
  237. package/resize-observer/context.js +1 -1
  238. package/resize-observer/hooks/index.d.ts +0 -0
  239. package/resize-observer/index.js +1 -1
  240. package/resize-observer/observerUtil.js +1 -1
  241. package/resize-observer/style/index.js +1 -1
  242. package/resize-observer/utils.js +1 -1
  243. package/space/Space.js +50 -49
  244. package/space/constants.js +1 -1
  245. package/space/context.js +3 -2
  246. package/space/hooks/index.d.ts +0 -0
  247. package/space/index.js +1 -1
  248. package/space/interface.d.ts +2 -1
  249. package/space/style/index.js +1 -1
  250. package/space/utils.js +1 -1
  251. package/suspense-fallback-test/SuspenseFallbackTest.js +1 -1
  252. package/suspense-fallback-test/constants.js +1 -1
  253. package/suspense-fallback-test/context.js +1 -1
  254. package/suspense-fallback-test/hooks/index.d.ts +0 -0
  255. package/suspense-fallback-test/index.js +1 -1
  256. package/suspense-fallback-test/style/index.js +1 -1
  257. package/suspense-fallback-test/utils.js +1 -1
  258. package/test.js +1 -1
  259. package/timer/Timer.js +2 -2
  260. package/timer/constants.js +1 -1
  261. package/timer/context.js +1 -1
  262. package/timer/hooks/index.d.ts +0 -0
  263. package/timer/index.js +1 -1
  264. package/timer/style/index.js +1 -1
  265. package/timer/utils.js +1 -1
  266. package/transition/Transition.js +4 -5
  267. package/transition/TransitionCSS.js +1 -1
  268. package/transition/TransitionGroup.js +10 -10
  269. package/transition/TransitionStyle.js +1 -1
  270. package/transition/constants.js +1 -1
  271. package/transition/context.js +1 -1
  272. package/transition/hooks/index.d.ts +0 -0
  273. package/transition/index.js +1 -1
  274. package/transition/interface.d.ts +1 -2
  275. package/transition/style/index.js +1 -1
  276. package/transition/utils.js +1 -1
  277. package/typewriter/Typewriter.js +1 -1
  278. package/typewriter/constants.js +1 -1
  279. package/typewriter/context.js +1 -1
  280. package/typewriter/hooks/index.d.ts +0 -0
  281. package/typewriter/index.js +1 -1
  282. package/typewriter/style/index.js +1 -1
  283. package/typewriter/utils.js +1 -1
  284. package/utils/callOrReturn.js +1 -1
  285. package/utils/callbackOriginRef.d.ts +2 -2
  286. package/utils/callbackOriginRef.js +1 -1
  287. package/utils/caseName.js +1 -1
  288. package/utils/className.js +1 -1
  289. package/utils/constants.d.ts +1 -2
  290. package/utils/constants.js +5 -5
  291. package/utils/copy.js +1 -1
  292. package/utils/css.js +1 -1
  293. package/utils/date.js +1 -1
  294. package/utils/dayjs.js +1 -1
  295. package/utils/document.js +1 -1
  296. package/utils/dom.d.ts +4 -3
  297. package/utils/dom.js +13 -12
  298. package/utils/emitter.js +1 -1
  299. package/utils/file.js +1 -1
  300. package/utils/fileRead.js +1 -1
  301. package/utils/fileToDataURL.js +1 -1
  302. package/utils/fillNBSP.js +1 -1
  303. package/utils/getElement.d.ts +8 -0
  304. package/utils/getElement.js +27 -0
  305. package/utils/getHighlightText.js +1 -1
  306. package/utils/getHotkeyHandler.js +1 -1
  307. package/utils/getScrollBarHeight.js +1 -1
  308. package/utils/getScrollBarSize.js +1 -1
  309. package/utils/getScrollBarWidth.js +1 -1
  310. package/utils/getScrollParent.d.ts +2 -0
  311. package/utils/getScrollParent.js +10 -0
  312. package/utils/getStringLength.js +1 -1
  313. package/utils/include.js +1 -1
  314. package/utils/index.d.ts +3 -3
  315. package/utils/index.js +330 -325
  316. package/utils/initAllLineClamp.js +13 -12
  317. package/utils/intersectionObserver.js +1 -1
  318. package/utils/is.d.ts +3 -0
  319. package/utils/is.js +82 -70
  320. package/utils/keyboardCode.js +1 -1
  321. package/utils/lodash.d.ts +2 -1
  322. package/utils/lodash.js +51 -50
  323. package/utils/math.js +1 -1
  324. package/utils/mergeProps.d.ts +1 -1
  325. package/utils/mergeProps.js +9 -9
  326. package/utils/mergedToString.js +1 -1
  327. package/utils/mutationObserver.js +1 -1
  328. package/utils/names.js +1 -1
  329. package/utils/object.js +1 -1
  330. package/utils/omit.js +1 -1
  331. package/utils/pad.js +1 -1
  332. package/utils/pick.js +1 -1
  333. package/utils/pinyin.js +1 -1
  334. package/utils/react19Adapter.js +1 -1
  335. package/utils/reactNode.js +1 -1
  336. package/utils/ref.js +1 -1
  337. package/utils/resizeObserver.js +4 -4
  338. package/utils/saveAs.js +1 -1
  339. package/utils/screenfull.js +1 -1
  340. package/utils/scrollIntoViewIfNeeded.js +1 -1
  341. package/utils/scrollTo.d.ts +9 -0
  342. package/utils/scrollTo.js +23 -0
  343. package/utils/setCreateRoot.js +1 -1
  344. package/utils/setDarkTheme.js +4 -4
  345. package/utils/setDir.js +1 -1
  346. package/utils/setPrimaryColor.js +1 -1
  347. package/utils/setTheme.js +1 -1
  348. package/utils/string.js +1 -1
  349. package/utils/style.js +1 -1
  350. package/utils/tinycolor.js +1 -1
  351. package/utils/toArray.js +1 -1
  352. package/utils/tree.js +1 -1
  353. package/utils/tunnel.js +8 -8
  354. package/utils/tween.js +1 -1
  355. package/utils/uuid.js +1 -1
  356. package/utils/validate.js +1 -1
  357. package/utils/warning.js +1 -1
  358. package/version/index.js +5 -5
  359. package/interface.d.ts +0 -3
  360. package/utils/findRootElement.d.ts +0 -25
  361. package/utils/findRootElement.js +0 -19
  362. package/utils/findScrollParent.d.ts +0 -2
  363. package/utils/findScrollParent.js +0 -16
  364. /package/{resize-observer → base}/style/index.css +0 -0
@@ -1,16 +1,17 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
2
- import { uuid as e } from "./uuid.js";
3
- import { UI_COMMON_PREFIX as t } from "@unicom-cloud/utils/constants/ui";
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { getHead as e } from "./dom.js";
3
+ import { uuid as t } from "./uuid.js";
4
+ import { UI_COMMON_PREFIX as n } from "@unicom-cloud/utils/constants/ui";
4
5
  //#region components/common/utils/initAllLineClamp.ts
5
- var n;
6
- function r(r = 999, i = t) {
7
- if (n ||= e(), document.getElementById(n)) return;
8
- let a = document.createElement("style");
9
- a.id = n;
10
- let o = "";
11
- for (let e = 1; e <= r; e++) o += `.${i}-line-clamp-${e}{display:-webkit-box;display:-moz-box;display:flex;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;;-webkit-line-clamp:${e};line-clamp:${e}}`;
12
- a.textContent = o, document.head.appendChild(a);
6
+ var r;
7
+ function i(i = 999, a = n) {
8
+ if (r ||= t(), document.getElementById(r)) return;
9
+ let o = document.createElement("style");
10
+ o.id = r;
11
+ let s = "";
12
+ for (let e = 1; e <= i; e++) s += `.${a}-line-clamp-${e}{display:-webkit-box;display:-moz-box;display:flex;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;;-webkit-line-clamp:${e};line-clamp:${e}}`;
13
+ o.textContent = s, e().appendChild(o);
13
14
  }
14
15
  //#endregion
15
- export { r as default, r as initAllLineClamp };
16
+ export { i as default, i as initAllLineClamp };
16
17
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "lodash/throttle";
4
4
  //#region components/common/utils/intersectionObserver.ts
package/utils/is.d.ts CHANGED
@@ -7,5 +7,8 @@ export declare function isEmptyReactNode(element: unknown, trim?: boolean): elem
7
7
  export declare function isReactComponentAndNotFragment(element: React.ReactElement): element is never;
8
8
  export declare function isReactComponent(element?: React.ReactElement): element is React.ReactElement;
9
9
  export declare function isReactClassComponent(element?: React.ReactElement): element is React.ReactElement;
10
+ export declare function isReactFunctionalComponent(Component: any): boolean;
11
+ export declare function isCompositeTypeElement(element: any): boolean;
12
+ export declare function isEmptyChildren(children: any): boolean;
10
13
  export * from '@unicom-cloud/utils/is';
11
14
  export { is32Bit, isAllChinese, isArguments, isArray, isArrayAndNotEmpty, isArrayBuffer, isArrayEmpty, isArrayLike, isArrayLikeObject, isAscii, isAsyncFunction, isBase64, isBigInt, isBlob, isBoolean, isBuffer, isChinese, isColorValue, isColorValue_, isDataURI, isDate, isDayjs, isElement, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEmptyValue, isEqual, isEqualWith, isError, isEventTarget, isExist, isFalse, isFile, isFinite, isFullWidth, isFunction, isHSL, isHalfWidth, isHash, isHexColor, isIMEI, isIP, isIPRange, isIdentityCard, isInteger, isJSON, isJSON_String, isJWT, isLength, isMACAddress, isMD5, isMap, isMatch, isMatchWith, isMimeType, isMobilePhone, isMobilePhoneLocales, isNaN, isNative, isNil, isNonNullable, isNotFound, isNull, isNullOrUndefined, isNumber, isNumberOrString, isObject, isObjectLike, isPlainObject, isPort, isPresent, isPrimitive, isPromise, isReact18, isReact19, isReadableStream, isRegExp, isRgbColor, isSafeInteger, isSemVer, isServerRendering, isSet, isSlug, isSparseArray, isString, isStringAndExist, isStringOrNumber, isStrongPassword, isSymbol, isThenable, isTrue, isTypedArray, isURL, isUUID, isUndefined, isUndefinedOrNull, isVariableWidth, isWeakMap, isWeakSet, isWindow, isZero, };
package/utils/is.js CHANGED
@@ -1,76 +1,78 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
2
- import { __exportAll as e, __reExport as ee } from "../.virtual/_rolldown/runtime.js";
3
- import te, { isValidElement as t } from "react";
4
- import { isBrowser as n } from "@unicom-cloud/utils/constants/platform";
5
- import { is32Bit as r, isAllChinese as i, isArguments as ne, isArray as re, isArrayAndNotEmpty as ie, isArrayBuffer as ae, isArrayEmpty as a, isArrayLike as o, isArrayLikeObject as s, isAscii as c, isAsyncFunction as l, isBase64 as u, isBigInt as d, isBlob as f, isBoolean as p, isBuffer as m, isChinese as h, isColorValue as g, isColorValue_ as _, isDataURI as v, isDate as y, isElement as b, isEmail as x, isEmpty as S, isEmptyArray as C, isEmptyObject as w, isEmptyString as T, isEmptyValue as E, isEqual as D, isEqualWith as O, isError as k, isEventTarget as A, isExist as j, isFalse as M, isFile as N, isFinite as P, isFullWidth as F, isFunction as I, isHSL as L, isHalfWidth as R, isHash as z, isHexColor as B, isIMEI as V, isIP as H, isIPRange as U, isIdentityCard as W, isInteger as G, isJSON as K, isJSON_String as q, isJWT as J, isLength as Y, isMACAddress as oe, isMD5 as se, isMap as ce, isMatch as le, isMatchWith as X, isMimeType as ue, isMobilePhone as de, isMobilePhoneLocales as fe, isNaN as pe, isNative as me, isNil as he, isNonNullable as ge, isNotFound as _e, isNull as ve, isNullOrUndefined as Z, isNumber as ye, isNumberOrString as be, isObject as xe, isObjectLike as Se, isPlainObject as Ce, isPort as we, isPresent as Te, isPrimitive as Ee, isPromise as De, isReadableStream as Oe, isRegExp as ke, isRgbColor as Ae, isSafeInteger as je, isSemVer as Me, isSet as Ne, isSlug as Pe, isSparseArray as Fe, isString as Q, isStringAndExist as Ie, isStringOrNumber as Le, isStrongPassword as Re, isSymbol as ze, isThenable as Be, isTrue as Ve, isTypedArray as He, isURL as Ue, isUUID as We, isUndefined as Ge, isUndefinedOrNull as Ke, isVariableWidth as qe, isWeakMap as Je, isWeakSet as Ye, isWindow as Xe, isZero as Ze } from "@unicom-cloud/utils/is";
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
3
+ import n, { isValidElement as r } from "react";
4
+ import { isBrowser as i } from "@unicom-cloud/utils/constants/platform";
5
+ import { is32Bit as a, isAllChinese as o, isArguments as s, isArray as ee, isArrayAndNotEmpty as te, isArrayBuffer as ne, isArrayEmpty as re, isArrayLike as c, isArrayLikeObject as l, isAscii as u, isAsyncFunction as ie, isBase64 as d, isBigInt as f, isBlob as p, isBoolean as m, isBuffer as h, isChinese as g, isColorValue as _, isColorValue_ as v, isDataURI as y, isDate as b, isElement as x, isEmail as S, isEmpty as C, isEmptyArray as w, isEmptyObject as T, isEmptyString as E, isEmptyValue as D, isEqual as O, isEqualWith as k, isError as A, isEventTarget as j, isExist as M, isFalse as N, isFile as P, isFinite as F, isFullWidth as I, isFunction as L, isHSL as R, isHalfWidth as z, isHash as B, isHexColor as V, isIMEI as H, isIP as U, isIPRange as W, isIdentityCard as G, isInteger as K, isJSON as q, isJSON_String as J, isJWT as Y, isLength as ae, isMACAddress as oe, isMD5 as se, isMap as ce, isMatch as le, isMatchWith as ue, isMimeType as de, isMobilePhone as fe, isMobilePhoneLocales as pe, isNaN as X, isNative as me, isNil as he, isNonNullable as ge, isNotFound as _e, isNull as ve, isNullOrUndefined as Z, isNumber as ye, isNumberOrString as be, isObject as xe, isObjectLike as Se, isPlainObject as Ce, isPort as we, isPresent as Te, isPrimitive as Ee, isPromise as De, isReadableStream as Oe, isRegExp as ke, isRgbColor as Ae, isSafeInteger as je, isSemVer as Me, isSet as Ne, isSlug as Pe, isSparseArray as Fe, isString as Q, isStringAndExist as Ie, isStringOrNumber as Le, isStrongPassword as Re, isSymbol as ze, isThenable as Be, isTrue as Ve, isTypedArray as He, isURL as Ue, isUUID as We, isUndefined as Ge, isUndefinedOrNull as Ke, isVariableWidth as qe, isWeakMap as Je, isWeakSet as Ye, isWindow as Xe, isZero as Ze } from "@unicom-cloud/utils/is";
6
6
  import { isDayjs as Qe } from "dayjs";
7
7
  import $e from "react-dom";
8
8
  import { isFragment as et } from "react-is";
9
9
  export * from "@unicom-cloud/utils/is";
10
10
  //#region components/common/utils/is.ts
11
11
  var tt = /* @__PURE__ */ e({
12
- is32Bit: () => r,
13
- isAllChinese: () => i,
14
- isArguments: () => ne,
15
- isArray: () => re,
16
- isArrayAndNotEmpty: () => ie,
17
- isArrayBuffer: () => ae,
18
- isArrayEmpty: () => a,
19
- isArrayLike: () => o,
20
- isArrayLikeObject: () => s,
21
- isAscii: () => c,
22
- isAsyncFunction: () => l,
23
- isBase64: () => u,
24
- isBigInt: () => d,
25
- isBlob: () => f,
26
- isBoolean: () => p,
27
- isBuffer: () => m,
28
- isChinese: () => h,
29
- isColorValue: () => g,
30
- isColorValue_: () => _,
31
- isDataURI: () => v,
32
- isDate: () => y,
12
+ is32Bit: () => a,
13
+ isAllChinese: () => o,
14
+ isArguments: () => s,
15
+ isArray: () => ee,
16
+ isArrayAndNotEmpty: () => te,
17
+ isArrayBuffer: () => ne,
18
+ isArrayEmpty: () => re,
19
+ isArrayLike: () => c,
20
+ isArrayLikeObject: () => l,
21
+ isAscii: () => u,
22
+ isAsyncFunction: () => ie,
23
+ isBase64: () => d,
24
+ isBigInt: () => f,
25
+ isBlob: () => p,
26
+ isBoolean: () => m,
27
+ isBuffer: () => h,
28
+ isChinese: () => g,
29
+ isColorValue: () => _,
30
+ isColorValue_: () => v,
31
+ isCompositeTypeElement: () => ut,
32
+ isDataURI: () => y,
33
+ isDate: () => b,
33
34
  isDayjs: () => Qe,
34
- isElement: () => b,
35
- isEmail: () => x,
36
- isEmpty: () => S,
37
- isEmptyArray: () => C,
38
- isEmptyObject: () => w,
35
+ isElement: () => x,
36
+ isEmail: () => S,
37
+ isEmpty: () => C,
38
+ isEmptyArray: () => w,
39
+ isEmptyChildren: () => dt,
40
+ isEmptyObject: () => T,
39
41
  isEmptyReactNode: () => ot,
40
- isEmptyString: () => T,
41
- isEmptyValue: () => E,
42
- isEqual: () => D,
43
- isEqualWith: () => O,
44
- isError: () => k,
45
- isEventTarget: () => A,
46
- isExist: () => j,
47
- isFalse: () => M,
48
- isFile: () => N,
49
- isFinite: () => P,
50
- isFullWidth: () => F,
51
- isFunction: () => I,
52
- isHSL: () => L,
53
- isHalfWidth: () => R,
54
- isHash: () => z,
55
- isHexColor: () => B,
56
- isIMEI: () => V,
57
- isIP: () => H,
58
- isIPRange: () => U,
59
- isIdentityCard: () => W,
60
- isInteger: () => G,
61
- isJSON: () => K,
62
- isJSON_String: () => q,
63
- isJWT: () => J,
64
- isLength: () => Y,
42
+ isEmptyString: () => E,
43
+ isEmptyValue: () => D,
44
+ isEqual: () => O,
45
+ isEqualWith: () => k,
46
+ isError: () => A,
47
+ isEventTarget: () => j,
48
+ isExist: () => M,
49
+ isFalse: () => N,
50
+ isFile: () => P,
51
+ isFinite: () => F,
52
+ isFullWidth: () => I,
53
+ isFunction: () => L,
54
+ isHSL: () => R,
55
+ isHalfWidth: () => z,
56
+ isHash: () => B,
57
+ isHexColor: () => V,
58
+ isIMEI: () => H,
59
+ isIP: () => U,
60
+ isIPRange: () => W,
61
+ isIdentityCard: () => G,
62
+ isInteger: () => K,
63
+ isJSON: () => q,
64
+ isJSON_String: () => J,
65
+ isJWT: () => Y,
66
+ isLength: () => ae,
65
67
  isMACAddress: () => oe,
66
68
  isMD5: () => se,
67
69
  isMap: () => ce,
68
70
  isMatch: () => le,
69
- isMatchWith: () => X,
70
- isMimeType: () => ue,
71
- isMobilePhone: () => de,
72
- isMobilePhoneLocales: () => fe,
73
- isNaN: () => pe,
71
+ isMatchWith: () => ue,
72
+ isMimeType: () => de,
73
+ isMobilePhone: () => fe,
74
+ isMobilePhoneLocales: () => pe,
75
+ isNaN: () => X,
74
76
  isNative: () => me,
75
77
  isNil: () => he,
76
78
  isNonNullable: () => ge,
@@ -91,6 +93,7 @@ var tt = /* @__PURE__ */ e({
91
93
  isReactClassComponent: () => ct,
92
94
  isReactComponent: () => $,
93
95
  isReactComponentAndNotFragment: () => st,
96
+ isReactFunctionalComponent: () => lt,
94
97
  isReadableStream: () => Oe,
95
98
  isRegExp: () => ke,
96
99
  isRgbColor: () => Ae,
@@ -119,23 +122,32 @@ var tt = /* @__PURE__ */ e({
119
122
  isZero: () => Ze
120
123
  });
121
124
  import * as nt from "@unicom-cloud/utils/is";
122
- ee(tt, nt);
123
- var rt = !n, [it, at] = [18, 19].map((e, ee, t) => {
124
- let n = te.version || $e.version || "", r = /\d+/.exec(n)?.[0] ?? "";
125
- return e <= parseFloat(r);
125
+ t(tt, nt);
126
+ var rt = !i, [it, at] = [18, 19].map((e, t, r) => {
127
+ let i = n.version || $e.version || "", a = /\d+/.exec(i)?.[0] ?? "";
128
+ return e <= parseFloat(a);
126
129
  });
127
- function ot(e, ee) {
128
- return !!(Z(e) || M(e) || Q(e) && T(ee ? e.trim() : e) || C(e));
130
+ function ot(e, t) {
131
+ return !!(Z(e) || N(e) || Q(e) && E(t ? e.trim() : e) || w(e));
129
132
  }
130
133
  function st(e) {
131
- return t(e) && !et(e);
134
+ return r(e) && !et(e);
132
135
  }
133
136
  function $(e) {
134
- return t(e) && I(e.type);
137
+ return r(e) && L(e.type);
135
138
  }
136
139
  function ct(e) {
137
140
  return $(e) && !!e.type?.prototype?.isReactComponent;
138
141
  }
142
+ function lt(e) {
143
+ return L(e) && !e.prototype?.isReactComponent;
144
+ }
145
+ function ut(e) {
146
+ return r(e) && L(e.type);
147
+ }
148
+ function dt(e) {
149
+ return n.Children.count(e) === 0;
150
+ }
139
151
  //#endregion
140
- export { r as is32Bit, i as isAllChinese, ne as isArguments, re as isArray, ie as isArrayAndNotEmpty, ae as isArrayBuffer, a as isArrayEmpty, o as isArrayLike, s as isArrayLikeObject, c as isAscii, l as isAsyncFunction, u as isBase64, d as isBigInt, f as isBlob, p as isBoolean, m as isBuffer, h as isChinese, g as isColorValue, _ as isColorValue_, v as isDataURI, y as isDate, Qe as isDayjs, b as isElement, x as isEmail, S as isEmpty, C as isEmptyArray, w as isEmptyObject, ot as isEmptyReactNode, T as isEmptyString, E as isEmptyValue, D as isEqual, O as isEqualWith, k as isError, A as isEventTarget, j as isExist, M as isFalse, N as isFile, P as isFinite, F as isFullWidth, I as isFunction, L as isHSL, R as isHalfWidth, z as isHash, B as isHexColor, V as isIMEI, H as isIP, U as isIPRange, W as isIdentityCard, G as isInteger, K as isJSON, q as isJSON_String, J as isJWT, Y as isLength, oe as isMACAddress, se as isMD5, ce as isMap, le as isMatch, X as isMatchWith, ue as isMimeType, de as isMobilePhone, fe as isMobilePhoneLocales, pe as isNaN, me as isNative, he as isNil, ge as isNonNullable, _e as isNotFound, ve as isNull, Z as isNullOrUndefined, ye as isNumber, be as isNumberOrString, xe as isObject, Se as isObjectLike, Ce as isPlainObject, we as isPort, Te as isPresent, Ee as isPrimitive, De as isPromise, it as isReact18, at as isReact19, ct as isReactClassComponent, $ as isReactComponent, st as isReactComponentAndNotFragment, Oe as isReadableStream, ke as isRegExp, Ae as isRgbColor, je as isSafeInteger, Me as isSemVer, rt as isServerRendering, Ne as isSet, Pe as isSlug, Fe as isSparseArray, Q as isString, Ie as isStringAndExist, Le as isStringOrNumber, Re as isStrongPassword, ze as isSymbol, Be as isThenable, Ve as isTrue, He as isTypedArray, Ue as isURL, We as isUUID, Ge as isUndefined, Ke as isUndefinedOrNull, qe as isVariableWidth, Je as isWeakMap, Ye as isWeakSet, Xe as isWindow, Ze as isZero, tt as is_exports };
152
+ export { a as is32Bit, o as isAllChinese, s as isArguments, ee as isArray, te as isArrayAndNotEmpty, ne as isArrayBuffer, re as isArrayEmpty, c as isArrayLike, l as isArrayLikeObject, u as isAscii, ie as isAsyncFunction, d as isBase64, f as isBigInt, p as isBlob, m as isBoolean, h as isBuffer, g as isChinese, _ as isColorValue, v as isColorValue_, ut as isCompositeTypeElement, y as isDataURI, b as isDate, Qe as isDayjs, x as isElement, S as isEmail, C as isEmpty, w as isEmptyArray, dt as isEmptyChildren, T as isEmptyObject, ot as isEmptyReactNode, E as isEmptyString, D as isEmptyValue, O as isEqual, k as isEqualWith, A as isError, j as isEventTarget, M as isExist, N as isFalse, P as isFile, F as isFinite, I as isFullWidth, L as isFunction, R as isHSL, z as isHalfWidth, B as isHash, V as isHexColor, H as isIMEI, U as isIP, W as isIPRange, G as isIdentityCard, K as isInteger, q as isJSON, J as isJSON_String, Y as isJWT, ae as isLength, oe as isMACAddress, se as isMD5, ce as isMap, le as isMatch, ue as isMatchWith, de as isMimeType, fe as isMobilePhone, pe as isMobilePhoneLocales, X as isNaN, me as isNative, he as isNil, ge as isNonNullable, _e as isNotFound, ve as isNull, Z as isNullOrUndefined, ye as isNumber, be as isNumberOrString, xe as isObject, Se as isObjectLike, Ce as isPlainObject, we as isPort, Te as isPresent, Ee as isPrimitive, De as isPromise, it as isReact18, at as isReact19, ct as isReactClassComponent, $ as isReactComponent, st as isReactComponentAndNotFragment, lt as isReactFunctionalComponent, Oe as isReadableStream, ke as isRegExp, Ae as isRgbColor, je as isSafeInteger, Me as isSemVer, rt as isServerRendering, Ne as isSet, Pe as isSlug, Fe as isSparseArray, Q as isString, Ie as isStringAndExist, Le as isStringOrNumber, Re as isStrongPassword, ze as isSymbol, Be as isThenable, Ve as isTrue, He as isTypedArray, Ue as isURL, We as isUUID, Ge as isUndefined, Ke as isUndefinedOrNull, qe as isVariableWidth, Je as isWeakMap, Ye as isWeakSet, Xe as isWindow, Ze as isZero, tt as is_exports };
141
153
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import * as e from "@unicom-cloud/utils/constants/keyboardCode";
3
3
  export * from "@unicom-cloud/utils/constants/keyboardCode";
4
4
  //#region components/common/utils/keyboardCode.ts
package/utils/lodash.d.ts CHANGED
@@ -20,6 +20,7 @@ import defaultTo from 'lodash/defaultTo';
20
20
  import difference from 'lodash/difference';
21
21
  import escape from 'lodash/escape';
22
22
  import findKey from 'lodash/findKey';
23
+ import flatten from 'lodash/flatten';
23
24
  import flattenDeep from 'lodash/flattenDeep';
24
25
  import flow from 'lodash/flow';
25
26
  import get from 'lodash/get';
@@ -64,4 +65,4 @@ import upperFirst from 'lodash/upperFirst';
64
65
  import without from 'lodash/without';
65
66
  import xor from 'lodash/xor';
66
67
  import zip from 'lodash/zip';
67
- export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, findKey, flattenDeep, flow, get, groupBy, has, intersection, invert, invertBy, kebabCase, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, throttle, toPath, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
68
+ export { assign, assignIn, at, camelCase, capitalize, castArray, chain, chunk, clone, cloneDeep, cloneDeepWith, cloneWith, compact, curry, debounce, defaults, defaultsDeep, defaultTo, difference, escape, findKey, flatten, flattenDeep, flow, get, groupBy, has, intersection, invert, invertBy, kebabCase, mean, memoize, merge, mergeWith, move, noop, omit, omitBy, orderBy, partition, pick, pickBy, pullAll, result, sample, sampleSize, set, setWith, shuffle, snakeCase, sortBy, startCase, throttle, toPath, truncate, union, uniq, uniqueId, unset, update, updateWith, upperCase, upperFirst, without, xor, zip, };
package/utils/lodash.js CHANGED
@@ -1,41 +1,41 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import e from "lodash/castArray";
3
3
  import t from "lodash/debounce";
4
- import n from "lodash/throttle";
5
- import r from "lodash/noop";
6
- import i from "@unicom-cloud/utils/lodash/move";
7
- import a from "lodash/assign";
8
- import o from "lodash/assignIn";
9
- import s from "lodash/at";
10
- import c from "lodash/camelCase";
11
- import l from "lodash/capitalize";
12
- import u from "lodash/chain";
13
- import d from "lodash/chunk";
14
- import f from "lodash/clone";
15
- import p from "lodash/cloneDeep";
16
- import m from "lodash/cloneDeepWith";
17
- import h from "lodash/cloneWith";
18
- import g from "lodash/compact";
19
- import _ from "lodash/curry";
20
- import v from "lodash/defaults";
21
- import y from "lodash/defaultsDeep";
22
- import b from "lodash/defaultTo";
23
- import x from "lodash/difference";
24
- import S from "lodash/escape";
25
- import C from "lodash/findKey";
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/intersection";
32
- import A from "lodash/invert";
33
- import j from "lodash/invertBy";
34
- import M from "lodash/kebabCase";
35
- import N from "lodash/mean";
36
- import P from "lodash/memoize";
37
- import F from "lodash/merge";
38
- import I from "lodash/mergeWith";
4
+ import n from "@unicom-cloud/utils/lodash/move";
5
+ import r from "lodash/assign";
6
+ import i from "lodash/assignIn";
7
+ import a from "lodash/at";
8
+ import o from "lodash/camelCase";
9
+ import s from "lodash/capitalize";
10
+ import c from "lodash/chain";
11
+ import l from "lodash/chunk";
12
+ import u from "lodash/clone";
13
+ import d from "lodash/cloneDeep";
14
+ import f from "lodash/cloneDeepWith";
15
+ import p from "lodash/cloneWith";
16
+ import m from "lodash/compact";
17
+ import h from "lodash/curry";
18
+ import g from "lodash/defaults";
19
+ import _ from "lodash/defaultsDeep";
20
+ import v from "lodash/defaultTo";
21
+ import y from "lodash/difference";
22
+ import b from "lodash/escape";
23
+ import x from "lodash/findKey";
24
+ import S from "lodash/flatten";
25
+ import C from "lodash/flattenDeep";
26
+ import w from "lodash/flow";
27
+ import T from "lodash/get";
28
+ import E from "lodash/groupBy";
29
+ import D from "lodash/has";
30
+ import O from "lodash/intersection";
31
+ import k from "lodash/invert";
32
+ import A from "lodash/invertBy";
33
+ import j from "lodash/kebabCase";
34
+ import M from "lodash/mean";
35
+ import N from "lodash/memoize";
36
+ import P from "lodash/merge";
37
+ import F from "lodash/mergeWith";
38
+ import I from "lodash/noop";
39
39
  import L from "lodash/omit";
40
40
  import R from "lodash/omitBy";
41
41
  import z from "lodash/orderBy";
@@ -52,18 +52,19 @@ import Y from "lodash/shuffle";
52
52
  import X from "lodash/snakeCase";
53
53
  import Z from "lodash/sortBy";
54
54
  import Q from "lodash/startCase";
55
- import $ from "lodash/toPath";
56
- import ee from "lodash/truncate";
57
- import te from "lodash/union";
58
- import ne from "lodash/uniq";
59
- import re from "lodash/uniqueId";
60
- import ie from "lodash/unset";
61
- import ae from "lodash/update";
62
- import oe from "lodash/updateWith";
63
- import se from "lodash/upperCase";
64
- import ce from "lodash/upperFirst";
65
- import le from "lodash/without";
66
- import ue from "lodash/xor";
67
- import de from "lodash/zip";
68
- 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 clone, p as cloneDeep, m as cloneDeepWith, h as cloneWith, g as compact, _ as curry, t as debounce, b as defaultTo, v as defaults, y as defaultsDeep, x as difference, S as escape, C as findKey, w as flattenDeep, T as flow, E as get, D as groupBy, O as has, k as intersection, A as invert, j as invertBy, M as kebabCase, N as mean, P as memoize, F as merge, I as mergeWith, i as move, r as noop, L as omit, R as omitBy, z as orderBy, B as partition, V as pick, H as pickBy, U as pullAll, W as result, G as sample, K as sampleSize, q as set, J as setWith, Y as shuffle, X as snakeCase, Z as sortBy, Q as startCase, n as throttle, $ as toPath, ee as truncate, te as union, ne as uniq, re as uniqueId, ie as unset, ae as update, oe as updateWith, se as upperCase, ce as upperFirst, le as without, ue as xor, de as zip };
55
+ import $ from "lodash/throttle";
56
+ import ee from "lodash/toPath";
57
+ import te from "lodash/truncate";
58
+ import ne from "lodash/union";
59
+ import re from "lodash/uniq";
60
+ import ie from "lodash/uniqueId";
61
+ import ae from "lodash/unset";
62
+ import oe from "lodash/update";
63
+ import se from "lodash/updateWith";
64
+ import ce from "lodash/upperCase";
65
+ import le from "lodash/upperFirst";
66
+ import ue from "lodash/without";
67
+ import de from "lodash/xor";
68
+ import fe from "lodash/zip";
69
+ 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 clone, d as cloneDeep, f as cloneDeepWith, p as cloneWith, m as compact, h as curry, t as debounce, v as defaultTo, g as defaults, _ as defaultsDeep, y as difference, b as escape, x as findKey, S as flatten, C as flattenDeep, w as flow, T as get, E as groupBy, D as has, O as intersection, k as invert, A as invertBy, j as kebabCase, M as mean, N as memoize, P as merge, F as mergeWith, n as move, I as noop, L as omit, R as omitBy, z as orderBy, B as partition, V as pick, H as pickBy, U as pullAll, W as result, G as sample, K as sampleSize, q as set, J as setWith, Y as shuffle, X as snakeCase, Z as sortBy, Q as startCase, $ as throttle, ee as toPath, te as truncate, ne as union, re as uniq, ie as uniqueId, ae as unset, oe as update, se as updateWith, ce as upperCase, le as upperFirst, ue as without, de as xor, fe as zip };
69
70
  /* 独立思考,明辨是非 */
package/utils/math.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
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
  /* 独立思考,明辨是非 */
@@ -1,3 +1,3 @@
1
- declare function mergeProps<T extends object>(componentProps: T, globalComponentProps?: Partial<T>, defaultProps?: Partial<T>, ...args: Array<Partial<T> | string[]>): Partial<T>;
1
+ declare function mergeProps<T extends object>(componentProps: T, componentGlobalProps?: Partial<T>, defaultProps?: Partial<T>, ...args: Array<Partial<T> | string[] | boolean>): Partial<T>;
2
2
  export { mergeProps };
3
3
  export default mergeProps;
@@ -1,13 +1,13 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
2
- import { isArray as e } from "./is.js";
3
- import { defaults as t, pick as n } from "./lodash.js";
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { isArray as e, isTrue as t } from "./is.js";
3
+ import { defaults as n, defaultsDeep as r, pick as i } from "./lodash.js";
4
4
  //#region components/common/utils/mergeProps.ts
5
- function r(r, i, a, ...o) {
6
- let s = [...o], c = s.at(-1), l = e(c);
7
- l && (s = s.slice(0, -1));
8
- let u = t({}, r, i ?? {}, a, ...s);
9
- return l && (u = n(u, c)), u;
5
+ function a(a, o, s, ...c) {
6
+ let l = [...c], u = l.at(-1), d = e(u);
7
+ d && (l = l.slice(0, -1));
8
+ let f = (t(u) ? r : n)({}, a, o ?? {}, s, ...l);
9
+ return d && (f = i(f, u)), f;
10
10
  }
11
11
  //#endregion
12
- export { r as default, r as mergeProps };
12
+ export { a as default, a as mergeProps };
13
13
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { isNumber as e, isPlainObject as t, isString as n } from "./is.js";
3
3
  import r from "react";
4
4
  //#region components/common/utils/mergedToString.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "lodash/throttle";
4
4
  //#region components/common/utils/mutationObserver.ts
package/utils/names.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  //#region components/common/utils/names.ts
3
3
  var e = {
4
4
  zh: "边框流光",
package/utils/object.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
3
3
  export * from "@unicom-cloud/utils/object";
4
4
  //#region components/common/utils/object.ts
package/utils/omit.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { omit as e } from "./lodash.js";
3
3
  //#region components/common/utils/omit.ts
4
4
  var t = e;
package/utils/pad.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  //#region components/common/utils/pad.ts
3
3
  function e(t, n, r = " ") {
4
4
  let i = String(t);
package/utils/pick.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { pick as e } from "./lodash.js";
3
3
  //#region components/common/utils/pick.ts
4
4
  function t(e) {
package/utils/pinyin.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { __exportAll as e, __reExport as t } from "../.virtual/_rolldown/runtime.js";
3
3
  import n from "@unicom-cloud/utils/pinyin";
4
4
  export * from "@unicom-cloud/utils/pinyin";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import e from "./setCreateRoot.js";
3
3
  import { createRoot as t } from "react-dom/client";
4
4
  //#region components/common/utils/react19Adapter.ts
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { isFunction as e } from "./is.js";
3
3
  import t from "react";
4
4
  //#region components/common/utils/reactNode.ts
package/utils/ref.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
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";
@@ -1,11 +1,11 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
2
- import { isFunction as e, is_exports as t } from "./is.js";
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { isElement as e, isFunction as t } from "./is.js";
3
3
  import { NOOP as n } from "./constants.js";
4
4
  import r from "lodash/throttle";
5
5
  //#region components/common/utils/resizeObserver.ts
6
6
  function i(i, a) {
7
- let o = [].concat(i).filter((e, n, r) => (0, t.isElementByInstanceof)(e));
8
- if (!(o.length && e(a))) return n;
7
+ let o = [].concat(i).filter((t, n, r) => e(t, !0));
8
+ if (!(o.length && t(a))) return n;
9
9
  let s, c = r((...e) => {
10
10
  u(), s = window.requestAnimationFrame(() => {
11
11
  a(...e);
package/utils/saveAs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/file/saveAs";
3
3
  export { t as default, e as saveAs };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import e, { default as t } from "@unicom-cloud/utils/screenfull";
3
3
  export { t as default, e as screenfull };
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  //#region components/common/utils/scrollIntoViewIfNeeded.ts
3
3
  function e(e, t) {
4
4
  e.scrollIntoView(t);
@@ -0,0 +1,9 @@
1
+ export default function scrollTo(params: {
2
+ selected: HTMLElement;
3
+ scrollParent?: HTMLElement;
4
+ scrollToOptions?: ScrollToOptions;
5
+ toLeft?: boolean;
6
+ toRight?: boolean;
7
+ toTop?: boolean;
8
+ toBottom?: boolean;
9
+ }): void;
@@ -0,0 +1,23 @@
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { is_exports as e } from "./is.js";
3
+ import t from "./getScrollParent.js";
4
+ //#region components/common/utils/scrollTo.ts
5
+ function n(n) {
6
+ let { selected: r, scrollParent: i, toLeft: a, toRight: o, toTop: s, toBottom: c, scrollToOptions: l } = n, u = i || t(r);
7
+ if ((0, e.isHTMLElement)(u)) {
8
+ let e = 0;
9
+ s ? e = 0 : c && (e = u.scrollHeight - u.offsetHeight);
10
+ let t = 0;
11
+ a ? t = 0 : o && (t = u.scrollWidth - u.offsetWidth);
12
+ let n = {
13
+ behavior: "smooth",
14
+ top: e,
15
+ left: t,
16
+ ...l
17
+ };
18
+ u.scrollTo(n);
19
+ }
20
+ }
21
+ //#endregion
22
+ export { n as default };
23
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
2
  import { isFunction as e, isObject as t, isReact18 as n } from "./is.js";
3
3
  import "react";
4
4
  import r from "react-dom";
@@ -1,17 +1,17 @@
1
- /* 潘启宝 2026-07-23 14:22:44 星期四 山东省济南市 */
2
- import { isString as e, is_exports as t } from "./is.js";
1
+ /* 潘启宝 2026-07-31 11:39:58 星期五 山东省济南市 */
2
+ import { isElement as e, isString as t } from "./is.js";
3
3
  import { CSS_VARIABLE_ELEMENT as n } from "./constants.js";
4
4
  import { document_exports as r } from "./document.js";
5
5
  import { UI_PC_THEME_DARK_CLASS_NAME as i } from "@unicom-cloud/utils/constants/ui";
6
6
  //#region components/common/utils/setDarkTheme.ts
7
7
  var a = "dark";
8
8
  function o(n, i) {
9
- (0, t.isElementByInstanceof)(n) && e(i) && (0, r.startViewTransition)(() => {
9
+ e(n, !0) && t(i) && (0, r.startViewTransition)(() => {
10
10
  n.classList.add(i);
11
11
  });
12
12
  }
13
13
  function s(n, i) {
14
- (0, t.isElementByInstanceof)(n) && e(i) && (0, r.startViewTransition)(() => {
14
+ e(n, !0) && t(i) && (0, r.startViewTransition)(() => {
15
15
  n.classList.remove(i);
16
16
  });
17
17
  }