@unicom-cloud/ui 0.8.111 → 0.8.113

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 (431) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/ColorPicker.js +1 -1
  14. package/Comment.js +1 -1
  15. package/ConfigProvider.js +1 -1
  16. package/Copy.js +3 -47
  17. package/Countdown.js +9 -43
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Details.js +7 -43
  21. package/Development.js +1 -1
  22. package/Divider.js +1 -1
  23. package/Draggable.js +1 -1
  24. package/Dropdown.js +1 -1
  25. package/Empty.js +1 -1
  26. package/Flex.js +8 -44
  27. package/Form.js +1 -1
  28. package/Icon.js +1 -1
  29. package/IconHover.js +1 -1
  30. package/Image.js +1 -1
  31. package/InputNumber.js +1 -1
  32. package/Layout.js +1 -1
  33. package/Link.js +1 -1
  34. package/LiquidFill.js +9 -44
  35. package/List.js +1 -1
  36. package/Loading.js +7 -43
  37. package/Marquee.js +10 -33
  38. package/Mentions.js +1 -1
  39. package/Menu.js +1 -1
  40. package/Message.js +1 -1
  41. package/Modal.js +1 -1
  42. package/Notice.js +6 -42
  43. package/Notification.js +1 -1
  44. package/OverflowEllipsis.js +2 -2
  45. package/PageHeader.js +2 -2
  46. package/Popconfirm.js +1 -1
  47. package/Popover.js +1 -1
  48. package/Progress.js +1 -1
  49. package/QrCode.js +7 -44
  50. package/Radio.js +1 -1
  51. package/Rate.js +1 -1
  52. package/ResizeBox.js +1 -1
  53. package/Result.js +1 -1
  54. package/RichText.js +12 -13
  55. package/Segmented.js +8 -43
  56. package/Skeleton.js +1 -1
  57. package/Slider.js +1 -1
  58. package/Space.js +8 -44
  59. package/Spin.js +1 -1
  60. package/Statistic.js +1 -1
  61. package/Steps.js +1 -1
  62. package/Switch.js +1 -1
  63. package/Table.js +1 -1
  64. package/Tabs.js +1 -1
  65. package/Tag.js +1 -1
  66. package/Tooltip.js +1 -1
  67. package/Tour.js +10 -46
  68. package/Transfer.js +1 -1
  69. package/Tree.js +1 -1
  70. package/TreeSelect.js +1 -1
  71. package/Trigger.js +2 -2
  72. package/affix/index.js +3 -3
  73. package/alert/index.js +1 -1
  74. package/anchor/Anchor.js +2 -2
  75. package/anchor/Link.js +1 -1
  76. package/app/App.js +2 -2
  77. package/auto-complete/index.js +1 -1
  78. package/avatar/Avatar.js +1 -1
  79. package/avatar/Group.js +1 -1
  80. package/back-top/index.js +1 -1
  81. package/badge/index.js +1 -1
  82. package/breadcrumb/index.js +2 -2
  83. package/button/Group.js +1 -1
  84. package/button/index.js +1 -1
  85. package/calendar/index.js +2 -2
  86. package/card/Grid.js +1 -1
  87. package/card/Meta.js +1 -1
  88. package/card/index.js +1 -1
  89. package/carousel/Arrow.js +1 -1
  90. package/carousel/Indicator.js +1 -1
  91. package/carousel/index.js +2 -2
  92. package/cascader/Cascader.js +3 -3
  93. package/cascader/index.js +1 -1
  94. package/cascader/util.js +1 -1
  95. package/checkbox/Checkbox.js +2 -2
  96. package/checkbox/Group.js +2 -2
  97. package/checkbox/GroupBlock.js +2 -2
  98. package/checkbox/index.js +2 -2
  99. package/chunk/{Y_GQsZUt.js → 3t4FwEoB.js} +1 -1
  100. package/chunk/{Lyh0cz3R.js → BHAu6wbC.js} +1 -1
  101. package/chunk/{CgN4U7Ou.js → Bcl7dWlJ.js} +2 -2
  102. package/chunk/Bl3hZtxi.js +51 -0
  103. package/chunk/{n1tirBXA.js → Bzx5BueA.js} +4 -4
  104. package/chunk/CAA93JLq.js +6 -0
  105. package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
  106. package/chunk/CVMFAeSw.js +39 -0
  107. package/chunk/{BcEZk8pT.js → CYDaUML7.js} +73 -104
  108. package/chunk/{Dbw0YUY1.js → CbXCgtzv.js} +48 -82
  109. package/chunk/{BDgzrqDN.js → ClNkxEcR.js} +5 -5
  110. package/chunk/{BlflTd2i.js → CwLSam2p.js} +433 -470
  111. package/chunk/Cy26_CKq.js +33 -0
  112. package/chunk/D0dVE1v1.js +1839 -0
  113. package/chunk/{CFyN9Eio.js → DA5AMZwY.js} +4 -4
  114. package/chunk/{DSqW_efI.js → DB0hUIM1.js} +152 -156
  115. package/chunk/{BUNoUPLs.js → De8RLlOK.js} +1 -1
  116. package/chunk/{qsVvkBLU.js → DrYaod6k.js} +1 -1
  117. package/chunk/{BeHcDey_.js → DzlfiVe2.js} +1 -1
  118. package/chunk/gJsdBcpG.js +10 -0
  119. package/chunk/{BnUWOu3_.js → yWKJUe_w.js} +3 -3
  120. package/collapse/Collapse.js +1 -1
  121. package/collapse/Item.js +1 -1
  122. package/color-picker/ControlBar.js +1 -1
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +2 -2
  128. package/color-picker/index.js +1 -1
  129. package/comment/index.js +1 -1
  130. package/config-provider/ConfigProvider.js +1 -1
  131. package/config-provider/context.js +1 -1
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +22 -66
  134. package/countdown/index.js +34 -68
  135. package/date-picker/Picker.js +1 -1
  136. package/date-picker/RangePicker.js +2 -2
  137. package/date-picker/index.js +1 -1
  138. package/descriptions/index.js +1 -1
  139. package/details/index.js +39 -75
  140. package/development/index.js +1 -1
  141. package/divider/index.js +1 -1
  142. package/draggable/index.js +1 -1
  143. package/drawer/Drawer.js +1 -1
  144. package/dropdown/Button.js +1 -1
  145. package/dropdown/index.js +1 -1
  146. package/empty/index.js +1 -1
  147. package/flex/index.js +30 -64
  148. package/form/Form.js +2 -2
  149. package/form/FormItem.js +1 -1
  150. package/form/index.js +1 -1
  151. package/grid/Grid.js +1 -1
  152. package/grid/Item.js +1 -1
  153. package/hooks/index.js +81 -81
  154. package/hooks/useId.js +1 -1
  155. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  156. package/hooks/useResizeObserver.js +15 -2
  157. package/hooks/useStateWithPromise.js +1 -1
  158. package/hooks/useWindowSize.js +1 -1
  159. package/icon/index.js +1 -1
  160. package/icon-hover/index.js +1 -1
  161. package/icons/file.js +1 -1
  162. package/image/Image.js +2 -2
  163. package/image/ImagePreview.js +10 -45
  164. package/image/ImagePreviewArrow.js +1 -1
  165. package/image/ImagePreviewGroup.js +1 -1
  166. package/image/index.js +1 -1
  167. package/index.js +215 -215
  168. package/input/Button.js +1 -1
  169. package/input/Group.js +1 -1
  170. package/input/Input.js +2 -2
  171. package/input/InputElement.js +2 -2
  172. package/input/Password.js +1 -1
  173. package/input/Search.js +1 -1
  174. package/input/Textarea.js +2 -2
  175. package/input-number/index.js +1 -1
  176. package/input-number/useSelectionRange.js +1 -1
  177. package/input-tag/InputTag.js +1 -1
  178. package/layout/Content.js +1 -1
  179. package/layout/Footer.js +1 -1
  180. package/layout/Header.js +1 -1
  181. package/layout/Sider.js +1 -1
  182. package/layout/index.js +1 -1
  183. package/link/index.js +1 -1
  184. package/liquid-fill/index.js +49 -84
  185. package/list/Item.js +1 -1
  186. package/list/Meta.js +1 -1
  187. package/list/index.js +1 -1
  188. package/loading/index.js +19 -55
  189. package/marquee/index.js +58 -81
  190. package/marquee-/index.js +60 -83
  191. package/mentions/index.js +1 -1
  192. package/menu/Menu.js +3 -3
  193. package/menu/OverflowWrap.js +2 -2
  194. package/menu/index.js +2 -2
  195. package/message/index.js +1 -1
  196. package/message/useMessage.js +1 -1
  197. package/modal/Confirm.js +2 -2
  198. package/modal/Modal.js +2 -2
  199. package/modal/index.js +2 -2
  200. package/notice/index.js +6 -42
  201. package/notification/index.js +1 -1
  202. package/notification/useNotification.js +1 -1
  203. package/overflow-ellipsis/OverflowItem.js +2 -2
  204. package/overflow-ellipsis/index.js +2 -2
  205. package/package.json +1 -1
  206. package/page-header/index.js +2 -2
  207. package/pagination/PageItem.js +1 -1
  208. package/pagination/PageJumper.js +1 -1
  209. package/pagination/PageOption.js +1 -1
  210. package/pagination/Pagination.js +1 -1
  211. package/picker/Input.js +1 -1
  212. package/picker/InputRange.js +1 -1
  213. package/popconfirm/index.js +1 -1
  214. package/popover/index.js +1 -1
  215. package/progress/CircleProgress.js +1 -1
  216. package/progress/index.js +1 -1
  217. package/qr-code/index.js +19 -56
  218. package/radio/Group.js +2 -2
  219. package/radio/GroupBlock.js +2 -2
  220. package/radio/Radio.js +2 -2
  221. package/radio/index.js +2 -2
  222. package/rate/index.js +1 -1
  223. package/resize-box/ResizeTrigger.js +2 -2
  224. package/resize-box/Split.js +2 -2
  225. package/resize-box/SplitGroup.js +1 -1
  226. package/resize-box/index.js +1 -1
  227. package/result/index.js +1 -1
  228. package/rich-text/index.js +6333 -78
  229. package/rich-text/lib/diff/index.d.ts +21 -0
  230. package/row-col/Col-.js +1 -1
  231. package/row-col/Col.js +71 -74
  232. package/row-col/Row.js +1 -1
  233. package/segmented/index.js +111 -146
  234. package/select/Option.js +44 -41
  235. package/select/Select.js +11 -13
  236. package/select-view/Core.js +1 -1
  237. package/skeleton/index.js +1 -1
  238. package/slider/Button.js +1 -1
  239. package/slider/index.js +1 -1
  240. package/space/index.js +16 -52
  241. package/spin/DotLoading.js +1 -1
  242. package/spin/index.js +1 -1
  243. package/splitter/Panel.js +1 -1
  244. package/splitter/SplitBar.js +2 -2
  245. package/splitter/Splitter.js +3 -3
  246. package/statistic/index.js +1 -1
  247. package/steps/index.js +1 -1
  248. package/style.css +1 -1
  249. package/switch/index.js +1 -1
  250. package/table/Table.js +18 -7
  251. package/table/index.js +77 -120
  252. package/tabs/Tab.js +3 -3
  253. package/tabs/TabContent.js +2 -2
  254. package/tabs/TabPane.js +1 -1
  255. package/tabs/index.js +2 -2
  256. package/tag/index.js +1 -1
  257. package/time-picker/Picker.js +1 -1
  258. package/time-picker/TimePicker.js +1 -1
  259. package/timeline/Item.js +1 -1
  260. package/timeline/Timeline.js +1 -1
  261. package/tooltip/index.js +1 -1
  262. package/tour/index.js +71 -107
  263. package/transfer/Item.js +2 -2
  264. package/transfer/List.js +2 -2
  265. package/transfer/index.js +1 -1
  266. package/tree/Animation.js +2 -2
  267. package/tree/Node.js +3 -3
  268. package/tree/NodeList.js +1 -1
  269. package/tree/Tree.js +2 -2
  270. package/tree/index.js +1 -1
  271. package/tree-select/Select.js +3 -3
  272. package/tree-select/index.js +1 -1
  273. package/trigger/index.js +2 -2
  274. package/types/common/hooks/src/use-size/index.d.ts +1 -1
  275. package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
  276. package/types/common/hooks/useResizeObserver.d.ts +1 -5
  277. package/types/common/hooks/useStateWithPromise.d.ts +1 -1
  278. package/types/common/hooks/useWindowSize.d.ts +1 -1
  279. package/types/common/utils/dom.d.ts +12 -0
  280. package/types/common/utils/emitter.d.ts +1 -0
  281. package/types/pc/carousel/interface.d.ts +2 -2
  282. package/types/pc/color-picker/Panel.d.ts +1 -1
  283. package/types/pc/date-picker/RangePicker.d.ts +1 -1
  284. package/types/pc/index.d.ts +2 -2
  285. package/types/pc/list/interface.d.ts +2 -2
  286. package/types/pc/rich-text/index.d.ts +7 -4
  287. package/types/pc/rich-text/interface.d.ts +3 -2
  288. package/types/pc/rich-text/{blots → lib/blots}/scroll.d.ts +2 -8
  289. package/types/pc/rich-text/{core → lib/core}/editor.d.ts +1 -1
  290. package/types/pc/rich-text/{core → lib/core}/emitter.d.ts +2 -3
  291. package/types/pc/rich-text/{core → lib/core}/rich.d.ts +14 -51
  292. package/types/pc/rich-text/{core → lib/core}/selection.d.ts +2 -8
  293. package/types/pc/rich-text/{core → lib/core}/theme.d.ts +3 -0
  294. package/types/pc/rich-text/{core.d.ts → lib/core.d.ts} +1 -1
  295. package/types/pc/rich-text/lib/delta/AttributeMap.d.ts +15 -0
  296. package/types/pc/rich-text/lib/delta/Op.d.ts +13 -0
  297. package/types/pc/rich-text/lib/delta/OpIterator.d.ts +14 -0
  298. package/types/pc/rich-text/lib/delta/index.d.ts +53 -0
  299. package/types/pc/rich-text/lib/diff/index.d.ts +40 -0
  300. package/types/pc/rich-text/{formats → lib/formats}/bold.d.ts +1 -1
  301. package/types/pc/rich-text/{formats → lib/formats}/font.d.ts +1 -1
  302. package/types/pc/rich-text/lib/formats/hr.d.ts +5 -0
  303. package/types/pc/rich-text/lib/formats/image-resize/index.d.ts +27 -0
  304. package/types/pc/rich-text/lib/formats/image-resize/modules/BaseModule.d.ts +10 -0
  305. package/types/pc/rich-text/lib/formats/image-resize/modules/DisplaySize.d.ts +5 -0
  306. package/types/pc/rich-text/lib/formats/image-resize/modules/Resize.d.ts +13 -0
  307. package/types/pc/rich-text/lib/formats/image-resize/options.d.ts +7 -0
  308. package/types/pc/rich-text/lib/formats/liOl.d.ts +10 -0
  309. package/types/pc/rich-text/lib/formats/liUl.d.ts +10 -0
  310. package/types/pc/rich-text/lib/formats/lineHeight.d.ts +3 -0
  311. package/types/pc/rich-text/{formats → lib/formats}/list.d.ts +1 -0
  312. package/types/pc/rich-text/{formats → lib/formats}/table.d.ts +3 -3
  313. package/types/pc/rich-text/{modules → lib/modules}/clipboard.d.ts +2 -2
  314. package/types/pc/rich-text/{modules → lib/modules}/history.d.ts +1 -1
  315. package/types/pc/rich-text/{modules → lib/modules}/keyboard.d.ts +1 -1
  316. package/types/pc/rich-text/{modules → lib/modules}/syntax.d.ts +2 -2
  317. package/types/pc/rich-text/{modules → lib/modules}/tableEmbed.d.ts +3 -3
  318. package/types/pc/rich-text/{modules → lib/modules}/toolbar.d.ts +1 -1
  319. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/attributor.d.ts +3 -3
  320. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/style.d.ts +2 -2
  321. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/parent.d.ts +2 -4
  322. package/types/pc/rich-text/{themes → lib/themes}/base.d.ts +3 -0
  323. package/types/pc/rich-text/{themes/snow.d.ts → lib/themes/pqb.d.ts} +2 -2
  324. package/types/pc/rich-text/{ui → lib/ui}/icons.d.ts +5 -1
  325. package/types/pc/rich-text/{ui → lib/ui}/picker.d.ts +1 -0
  326. package/types/pc/rich-text/{ui → lib/ui}/tooltip.d.ts +2 -0
  327. package/types/pc/tabs/hook/useDomSize.d.ts +2 -2
  328. package/types/pc/tabs/hook/useHeaderScroll.d.ts +2 -2
  329. package/types/pc/tree-select/hook/useStateValue.d.ts +2 -2
  330. package/types/pc/utils/date.d.ts +1 -0
  331. package/types/pc/utils/emitter.d.ts +1 -0
  332. package/types/pc/utils/index.d.ts +2 -2
  333. package/typography/Base.js +2 -2
  334. package/typography/Ellipsis.js +70 -114
  335. package/typography/Operations.js +29 -74
  336. package/typography/Paragraph.js +1 -1
  337. package/typography/Typography.js +1 -1
  338. package/typography/useEllipsis.js +1 -1
  339. package/upload/TriggerNode.js +1 -1
  340. package/upload/Upload.js +1 -1
  341. package/utils/contextHolder.js +1 -1
  342. package/utils/date.js +1 -0
  343. package/utils/emitter.js +5 -0
  344. package/utils/index.js +70 -70
  345. package/utils/resizeObserver.js +1 -1
  346. package/verification-code/VerificationCode.js +1 -1
  347. package/version/index.js +1 -1
  348. package/virtual-list/VirtualList.js +218 -217
  349. package/watermark/Watermark.js +1 -1
  350. package/chunk/BDMqvmVH.js +0 -4239
  351. package/chunk/BG6j6Ct7.js +0 -30
  352. package/chunk/BGJspFG9.js +0 -56
  353. package/chunk/B_c0gPsX.js +0 -83
  354. package/chunk/COsRZOz1.js +0 -1813
  355. package/chunk/CylJZkp8.js +0 -6
  356. package/chunk/Di5KBCVQ.js +0 -4
  357. package/chunk/cW_5U6dL.js +0 -28
  358. package/rich-text/core.js +0 -11
  359. package/rich-text/rich.js +0 -1877
  360. package/types/common/utils/index.d.ts +0 -47
  361. package/types/common/utils/keyboardCode.d.ts +0 -4
  362. package/types/common/utils/math.d.ts +0 -1
  363. package/types/common/utils/mitt.d.ts +0 -1
  364. package/types/common/utils/reactTransitionGroup.d.ts +0 -1
  365. package/types/common/utils/uuid.d.ts +0 -1
  366. package/types/common/utils/validate.d.ts +0 -1
  367. package/types/pc/rich-text/delta/AttributeMap.d.ts +0 -10
  368. package/types/pc/rich-text/delta/Op.d.ts +0 -11
  369. package/types/pc/rich-text/delta/OpIterator.d.ts +0 -13
  370. package/types/pc/rich-text/delta/index.d.ts +0 -45
  371. package/types/pc/rich-text/themes/bubble.d.ts +0 -18
  372. package/types/pc/utils/mitt.d.ts +0 -1
  373. package/utils/mitt.js +0 -5
  374. package/types/common/hooks/src/utils/{index.d.ts → is.d.ts} +0 -0
  375. package/types/pc/rich-text/{blots → lib/blots}/block.d.ts +0 -0
  376. package/types/pc/rich-text/{blots → lib/blots}/break.d.ts +0 -0
  377. package/types/pc/rich-text/{blots → lib/blots}/container.d.ts +0 -0
  378. package/types/pc/rich-text/{blots → lib/blots}/cursor.d.ts +0 -0
  379. package/types/pc/rich-text/{blots → lib/blots}/embed.d.ts +0 -0
  380. package/types/pc/rich-text/{blots → lib/blots}/inline.d.ts +0 -0
  381. package/types/pc/rich-text/{blots → lib/blots}/text.d.ts +0 -0
  382. package/types/pc/rich-text/{core → lib/core}/composition.d.ts +0 -0
  383. package/types/pc/rich-text/{core → lib/core}/instances.d.ts +0 -0
  384. package/types/pc/rich-text/{core → lib/core}/logger.d.ts +0 -0
  385. package/types/pc/rich-text/{core → lib/core}/module.d.ts +0 -0
  386. package/types/pc/rich-text/{core → lib/core}/utils/createRegistryWithFormats.d.ts +0 -0
  387. package/types/pc/rich-text/{core → lib/core}/utils/scrollRectIntoView.d.ts +0 -0
  388. package/types/pc/rich-text/{formats → lib/formats}/align.d.ts +0 -0
  389. package/types/pc/rich-text/{formats → lib/formats}/background.d.ts +0 -0
  390. package/types/pc/rich-text/{formats → lib/formats}/blockquote.d.ts +0 -0
  391. package/types/pc/rich-text/{formats → lib/formats}/code.d.ts +0 -0
  392. package/types/pc/rich-text/{formats → lib/formats}/color.d.ts +0 -0
  393. package/types/pc/rich-text/{formats → lib/formats}/direction.d.ts +0 -0
  394. package/types/pc/rich-text/{formats → lib/formats}/formula.d.ts +0 -0
  395. package/types/pc/rich-text/{formats → lib/formats}/header.d.ts +0 -0
  396. package/types/pc/rich-text/{formats → lib/formats}/image.d.ts +0 -0
  397. package/types/pc/rich-text/{formats → lib/formats}/indent.d.ts +0 -0
  398. package/types/pc/rich-text/{formats → lib/formats}/italic.d.ts +0 -0
  399. package/types/pc/rich-text/{formats → lib/formats}/link.d.ts +0 -0
  400. package/types/pc/rich-text/{formats → lib/formats}/script.d.ts +0 -0
  401. package/types/pc/rich-text/{formats → lib/formats}/size.d.ts +0 -0
  402. package/types/pc/rich-text/{formats → lib/formats}/strike.d.ts +0 -0
  403. package/types/pc/rich-text/{formats → lib/formats}/underline.d.ts +0 -0
  404. package/types/pc/rich-text/{formats → lib/formats}/video.d.ts +0 -0
  405. package/types/pc/rich-text/{rich.d.ts → lib/index.d.ts} +0 -0
  406. package/types/pc/rich-text/{modules → lib/modules}/input.d.ts +0 -0
  407. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/index.d.ts +0 -0
  408. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
  409. package/types/pc/rich-text/{modules → lib/modules}/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
  410. package/types/pc/rich-text/{modules → lib/modules}/table.d.ts +0 -0
  411. package/types/pc/rich-text/{modules → lib/modules}/uiNode.d.ts +0 -0
  412. package/types/pc/rich-text/{modules → lib/modules}/uploader.d.ts +0 -0
  413. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/class.d.ts +0 -0
  414. package/types/pc/rich-text/{parchment → lib/parchment}/attributor/store.d.ts +0 -0
  415. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/blot.d.ts +0 -0
  416. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/container.d.ts +0 -0
  417. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/leaf.d.ts +0 -0
  418. package/types/pc/rich-text/{parchment → lib/parchment}/blot/abstract/shadow.d.ts +0 -0
  419. package/types/pc/rich-text/{parchment → lib/parchment}/blot/block.d.ts +0 -0
  420. package/types/pc/rich-text/{parchment → lib/parchment}/blot/embed.d.ts +0 -0
  421. package/types/pc/rich-text/{parchment → lib/parchment}/blot/inline.d.ts +0 -0
  422. package/types/pc/rich-text/{parchment → lib/parchment}/blot/scroll.d.ts +0 -0
  423. package/types/pc/rich-text/{parchment → lib/parchment}/blot/text.d.ts +0 -0
  424. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-list.d.ts +0 -0
  425. package/types/pc/rich-text/{parchment → lib/parchment}/collection/linked-node.d.ts +0 -0
  426. package/types/pc/rich-text/{parchment → lib/parchment}/error.d.ts +0 -0
  427. package/types/pc/rich-text/{parchment → lib/parchment}/index.d.ts +1 -1
  428. /package/types/pc/rich-text/{parchment → lib/parchment}/registry.d.ts +0 -0
  429. /package/types/pc/rich-text/{parchment → lib/parchment}/scope.d.ts +0 -0
  430. /package/types/pc/rich-text/{ui → lib/ui}/color-picker.d.ts +0 -0
  431. /package/types/pc/rich-text/{ui → lib/ui}/icon-picker.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  import Attributor from './attributor.js';
2
2
  declare class StyleAttributor extends Attributor {
3
3
  static keys(node: HTMLElement): string[];
4
- add(node: HTMLElement, value: any): boolean;
4
+ add(node: HTMLElement, value: unknown): boolean;
5
5
  remove(node: HTMLElement): void;
6
- value(node: HTMLElement): any;
6
+ value(node: HTMLElement): unknown;
7
7
  }
8
8
  export default StyleAttributor;
@@ -23,10 +23,8 @@ declare class ParentBlot extends ShadowBlot implements Parent {
23
23
  */
24
24
  build(): void;
25
25
  deleteAt(index: number, length: number): void;
26
- descendant<T extends Blot>(criteria: new (...args: any[]) => T, index: number): [T | null, number];
27
- descendant(criteria: (blot: Blot) => boolean, index: number): [Blot | null, number];
28
- descendants<T extends Blot>(criteria: new (...args: any[]) => T, index?: number, length?: number): T[];
29
- descendants(criteria: (blot: Blot) => boolean, index?: number, length?: number): Blot[];
26
+ descendant(criteria: any, index?: number): [Blot | null, number];
27
+ descendants(criteria: any, index?: number, length?: number): Blot[];
30
28
  detach(): void;
31
29
  enforceAllowedChildren(): void;
32
30
  formatAt(index: number, length: number, name: string, value: any): void;
@@ -6,6 +6,7 @@ import Theme from '../core/theme.js';
6
6
  import type Clipboard from '../modules/clipboard.js';
7
7
  import type History from '../modules/history.js';
8
8
  import type Keyboard from '../modules/keyboard.js';
9
+ import type Toolbar from '../modules/toolbar.js';
9
10
  import type Uploader from '../modules/uploader.js';
10
11
  import Picker from '../ui/picker.js';
11
12
  import Tooltip from '../ui/tooltip.js';
@@ -13,6 +14,7 @@ declare class BaseTheme extends Theme {
13
14
  pickers: Picker[];
14
15
  tooltip?: Tooltip;
15
16
  constructor(rich: Rich, options: ThemeOptions);
17
+ extendToolbar(toolbar: Toolbar): void;
16
18
  addModule(name: 'clipboard'): Clipboard;
17
19
  addModule(name: 'keyboard'): Keyboard;
18
20
  addModule(name: 'uploader'): Uploader;
@@ -25,6 +27,7 @@ declare class BaseTheme extends Theme {
25
27
  declare class BaseTooltip extends Tooltip {
26
28
  textbox: HTMLInputElement | null;
27
29
  linkRange?: Range;
30
+ static TEMPLATE: string;
28
31
  constructor(rich: Rich, boundsContainer?: HTMLElement);
29
32
  listen(): void;
30
33
  cancel(): void;
@@ -2,8 +2,8 @@ import Rich from '../core/rich.js';
2
2
  import type { ThemeOptions } from '../core/theme.js';
3
3
  import type Toolbar from '../modules/toolbar.js';
4
4
  import BaseTheme from './base.js';
5
- declare class SnowTheme extends BaseTheme {
5
+ declare class PqbTheme extends BaseTheme {
6
6
  constructor(rich: Rich, options: ThemeOptions);
7
7
  extendToolbar(toolbar: Toolbar): void;
8
8
  }
9
- export default SnowTheme;
9
+ export default PqbTheme;
@@ -34,7 +34,6 @@ declare const _default: {
34
34
  link: any;
35
35
  list: {
36
36
  bullet: any;
37
- check: any;
38
37
  ordered: any;
39
38
  };
40
39
  script: {
@@ -47,5 +46,10 @@ declare const _default: {
47
46
  video: any;
48
47
  redo: any;
49
48
  undo: any;
49
+ hr: any;
50
+ fullscreen: {
51
+ '': any;
52
+ exit: any;
53
+ };
50
54
  };
51
55
  export default _default;
@@ -1,6 +1,7 @@
1
1
  declare class Picker {
2
2
  select: HTMLSelectElement;
3
3
  container: HTMLElement;
4
+ options: HTMLElement;
4
5
  label: HTMLElement;
5
6
  constructor(select: HTMLSelectElement);
6
7
  togglePicker(): void;
@@ -4,9 +4,11 @@ declare class Tooltip {
4
4
  rich: Rich;
5
5
  boundsContainer: HTMLElement;
6
6
  root: HTMLDivElement;
7
+ static TEMPLATE: string;
7
8
  constructor(rich: Rich, boundsContainer?: HTMLElement);
8
9
  hide(): void;
9
10
  position(reference: Bounds): number;
10
11
  show(): void;
12
+ edit(mode?: string, preview?: string | null): void;
11
13
  }
12
14
  export default Tooltip;
@@ -1,11 +1,11 @@
1
- import React, { MutableRefObject } from 'react';
1
+ import React from 'react';
2
2
  export type ReturnType = {
3
3
  height: number;
4
4
  width: number;
5
5
  domRect?: DOMRect;
6
6
  };
7
7
  declare function DomSize<T extends HTMLElement>(): [
8
- MutableRefObject<T>,
8
+ React.RefObject<T>,
9
9
  ReturnType,
10
10
  React.Dispatch<React.SetStateAction<ReturnType>>
11
11
  ];
@@ -1,6 +1,6 @@
1
- import { MutableRefObject } from 'react';
1
+ import React from 'react';
2
2
  declare function useHeaderScroll<T extends HTMLElement>(props: {
3
- headerWrapperRef: MutableRefObject<T | undefined>;
3
+ headerWrapperRef: React.RefObject<T | undefined>;
4
4
  headerOffset: number;
5
5
  align: 'left' | 'right';
6
6
  direction: 'horizontal' | 'vertical' | undefined;
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import React from 'react';
2
2
  import { LabelValue, TreeSelectProps } from '../../tree-select/interface';
3
3
  import { NodeProps } from '../../tree/interface';
4
4
  import { KeyCacheType } from './useKeyCache';
@@ -11,7 +11,7 @@ export interface TreeSelectState {
11
11
  searchKeys: string[];
12
12
  }
13
13
  export declare const parseValue: (v: valueType, key2nodeProps: any, valueMap?: LabelValue[]) => LabelValue[];
14
- declare const useStateValue: (props: TreeSelectProps, key2nodeProps: KeyCacheType, indeterminateKeys: MutableRefObject<string[]>) => [LabelValue[], (v: LabelValue[], extra: {
14
+ declare const useStateValue: (props: TreeSelectProps, key2nodeProps: KeyCacheType, indeterminateKeys: React.RefObject<string[]>) => [LabelValue[], (v: LabelValue[], extra: {
15
15
  trigger?: NodeProps;
16
16
  checked?: boolean;
17
17
  selected?: boolean;
@@ -0,0 +1 @@
1
+ export * from "@unicom-cloud/utils/date";
@@ -0,0 +1 @@
1
+ export { default, default as emitter } from '../../common/utils/emitter';
@@ -1,11 +1,12 @@
1
- export * from '@unicom-cloud/utils/date';
2
1
  export * from './caseName';
3
2
  export * from './className';
4
3
  export * from './constant';
5
4
  export * from './contextHolder';
6
5
  export * from './copy';
6
+ export * from './date';
7
7
  export * from './dayjs';
8
8
  export * from './dom';
9
+ export * from './emitter';
9
10
  export * from './fileToURL';
10
11
  export * from './fillNBSP';
11
12
  export * from './findScrollParent';
@@ -19,7 +20,6 @@ export * from './lodash';
19
20
  export * from './math';
20
21
  export * from './mergedToString';
21
22
  export * from './mergeProps';
22
- export * from './mitt';
23
23
  export * from './mutationObserver';
24
24
  export * from './names';
25
25
  export * from './omit';
@@ -1,7 +1,7 @@
1
1
  import { jsx as p, jsxs as ne, Fragment as ie } from "react/jsx-runtime";
2
2
  import re from "lodash/merge";
3
3
  import _, { forwardRef as le, useContext as pe, useRef as ae, useState as W, useEffect as ce, useImperativeHandle as me } from "react";
4
- import { a as de } from "../chunk/BcEZk8pT.js";
4
+ import { a as de } from "../chunk/CYDaUML7.js";
5
5
  import { u as fe } from "../chunk/2vdCeheu.js";
6
6
  import { u as ue } from "../chunk/DfChiMIE.js";
7
7
  import he from "../popover/index.js";
@@ -10,7 +10,7 @@ import q from "@unicom-cloud/utils/class-name";
10
10
  import "../chunk/DsaQZE4X.js";
11
11
  import { m as ge } from "../chunk/B5RFT17G.js";
12
12
  import { o as Ce } from "../chunk/BKKEev13.js";
13
- import { r as xe } from "../chunk/B8W1N4er.js";
13
+ import { r as xe } from "../chunk/CHQ8c547.js";
14
14
  import Te from "../utils/throttleByRaf.js";
15
15
  import Se from "./EditContent.js";
16
16
  import Ne from "./Operations.js";
@@ -1,220 +1,176 @@
1
1
  import { jsxs as g, Fragment as K, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as Q, useContext as U, useRef as v, useState as R, useMemo as V, useEffect as S, useCallback as X } from "react";
3
- import { a as Y } from "../chunk/BcEZk8pT.js";
3
+ import { a as Y } from "../chunk/CYDaUML7.js";
4
4
  import Z from "../copy/index.js";
5
- import { u as tt } from "../chunk/FgWHhRFz.js";
6
- import { u as et } from "../chunk/2vdCeheu.js";
7
- import rt from "../tooltip/index.js";
8
- import "@unicom-cloud/utils/date";
9
- import "@unicom-cloud/utils/case-name";
10
- import n from "@unicom-cloud/utils/class-name";
11
- import "@unicom-cloud/utils/constant/ui";
12
- import "@unicom-cloud/utils/clipboard-copy";
13
- import "../chunk/DS_deHpN.js";
14
- import { a as ot } from "../chunk/d1c9z8T1.js";
15
- import "@unicom-cloud/utils/file/fileToURL";
16
- import "lodash/escapeRegExp";
17
- import "lodash/isArray";
18
- import "lodash/isNumber";
19
- import "lodash/isString";
20
- import "lodash/isFunction";
21
- import "lodash/throttle";
5
+ import { u as ee } from "../chunk/FgWHhRFz.js";
6
+ import { u as te } from "../chunk/2vdCeheu.js";
7
+ import re from "../tooltip/index.js";
8
+ import s from "@unicom-cloud/utils/class-name";
9
+ import { a as oe } from "../chunk/d1c9z8T1.js";
22
10
  import "../chunk/DsaQZE4X.js";
23
- import "lodash/camelCase";
24
- import "lodash/capitalize";
25
- import "lodash/cloneDeep";
26
- import "lodash/debounce";
27
- import "lodash/get";
28
- import "lodash/has";
29
- import "lodash/kebabCase";
30
- import "lodash/merge";
31
- import "lodash/mergeWith";
32
- import "lodash/set";
33
- import "lodash/setWith";
34
- import "lodash/snakeCase";
35
- import "lodash/startCase";
36
- import "lodash/uniq";
37
- import "lodash/upperFirst";
38
- import "@unicom-cloud/utils/math";
39
- import { m as it } from "../chunk/B5RFT17G.js";
40
- import "@unicom-cloud/utils/mitt";
41
- import "@unicom-cloud/utils/pinyin";
42
- import "../chunk/BJ9_azwQ.js";
43
- import "../chunk/CXrVhA6-.js";
44
- import { r as nt } from "../chunk/B8W1N4er.js";
45
- import "../utils/responsiveObserve.js";
46
- import "@unicom-cloud/utils/file/saveAs";
47
- import "@unicom-cloud/utils/screenfull";
48
- import "@unicom-cloud/utils/tinycolor";
49
- import "@unicom-cloud/utils/ui-color";
50
- import "@unicom-cloud/utils/constant/ui.js";
51
- import "lodash/isPlainObject";
52
- import st from "../utils/throttleByRaf.js";
53
- import "react-is";
54
- import "@unicom-cloud/utils/tree";
55
- import { isPlainObject as b, isFunction as lt } from "@unicom-cloud/utils/is";
56
- import "uuid";
57
- import "../chunk/hc_ufgVf.js";
58
- import "@unicom-cloud/utils/constant/keyboardCode";
59
- const pt = {
11
+ import { m as ne } from "../chunk/B5RFT17G.js";
12
+ import { r as se } from "../chunk/CHQ8c547.js";
13
+ import ie from "../utils/throttleByRaf.js";
14
+ import { isPlainObject as b, isFunction as le } from "@unicom-cloud/utils/is";
15
+ const ae = {
60
16
  rows: 1,
61
17
  expandable: !0,
62
18
  defaultExpanded: !1
63
- }, at = (j, ct) => {
64
- const C = U(Y), N = tt(
19
+ }, ce = (j, fe) => {
20
+ const C = U(Y), N = ee(
65
21
  j,
66
- pt,
22
+ ae,
67
23
  C.componentConfig?.TypographyEllipsis
68
24
  ), {
69
25
  className: A,
70
26
  style: L,
71
27
  rows: l,
72
28
  disabled: w,
73
- showTooltip: m,
29
+ showTooltip: p,
74
30
  children: y,
75
31
  // 潘启宝修改
76
- expandable: d,
32
+ expandable: m,
77
33
  expandRender: P,
78
34
  onExpand: W,
79
35
  onEllipsis: k,
80
- copyable: f
36
+ copyable: u
81
37
  // 潘启宝添加
82
- } = N, { locale: B } = C, D = ot ? !1 : /^((?!chrome|android).)*safari/i.test(navigator?.userAgent ?? ""), F = v(null), s = v(null), [O, H] = R(""), [_, E] = R(!1), p = v(null), a = v(null), [e, T] = et(!1, {
38
+ } = N, { locale: B } = C, D = oe ? !1 : /^((?!chrome|android).)*safari/i.test(navigator?.userAgent ?? ""), F = v(null), i = v(null), [O, H] = R(""), [_, E] = R(!1), a = v(null), c = v(null), [t, T] = te(!1, {
83
39
  defaultValue: N.defaultExpanded,
84
40
  value: N.expanded
85
- }), [i, M] = R(!1), x = V(() => b(d) ? !d.single && l === 1 : l === 1, [l, d]), h = V(() => b(m) ? {
41
+ }), [n, M] = R(!1), x = V(() => b(m) ? !m.single && l === 1 : l === 1, [l, m]), h = V(() => b(p) ? {
86
42
  tooltip: !0,
87
- tooltipProps: m
43
+ tooltipProps: p
88
44
  } : {
89
- tooltip: !!m,
90
- tooltipProps: m
91
- }, [m]);
45
+ tooltip: !!p,
46
+ tooltipProps: p
47
+ }, [p]);
92
48
  S(() => {
93
- if (s.current) {
94
- const o = s.current.textContent;
49
+ if (i.current) {
50
+ const o = i.current.textContent;
95
51
  o && H(o);
96
52
  }
97
- }, [y, s]);
98
- const t = C.getPrefixCls?.("ellipsis"), u = /* @__PURE__ */ g(K, { children: [
99
- !!f && // 潘启宝添加
53
+ }, [y, i]);
54
+ const e = C.getPrefixCls?.("ellipsis"), d = /* @__PURE__ */ g(K, { children: [
55
+ !!u && // 潘启宝添加
100
56
  /* @__PURE__ */ r(
101
57
  Z,
102
58
  {
103
- ...b(f) ? f : {},
59
+ ...b(u) ? u : {},
104
60
  text: () => {
105
- let c = (b(f) ? f : {}).text;
106
- return lt(c) && (c = c()), c || (c = it(y)), c;
61
+ let f = (b(u) ? u : {}).text;
62
+ return le(f) && (f = f()), f || (f = ne(y)), f;
107
63
  },
108
- className: `${t}-action-text-copy`
64
+ className: `${e}-action-text-copy`
109
65
  }
110
66
  ),
111
67
  y
112
- ] }), q = () => P ? P(e) : /* @__PURE__ */ r("span", { className: `${t}-action-text`, children: e ? B?.Typography?.fold : B?.Typography?.unfold }), $ = () => d && i ? /* @__PURE__ */ r(
68
+ ] }), q = () => P ? P(t) : /* @__PURE__ */ r("span", { className: `${e}-action-text`, children: t ? B?.Typography?.fold : B?.Typography?.unfold }), $ = () => m && n ? /* @__PURE__ */ r(
113
69
  "div",
114
70
  {
115
- className: n(`${t}-action`, {
116
- [`${t}-action-collapsed`]: !e
71
+ className: s(`${e}-action`, {
72
+ [`${e}-action-collapsed`]: !t
117
73
  }),
118
74
  onClick: (o) => {
119
- e ? (T(!1), W?.(!1, o)) : (T(!0), E(!1), W?.(!0, o));
75
+ t ? (T(!1), W?.(!1, o)) : (T(!0), E(!1), W?.(!0, o));
120
76
  },
121
77
  children: q()
122
78
  }
123
79
  ) : null, G = X(
124
- st(() => {
125
- a.current && p.current && ((x ? a.current.offsetWidth > p.current.offsetWidth : a.current.offsetHeight > p.current.offsetHeight) ? i === !1 && (M(!0), k?.(!0)) : i === !0 && (M(!1), k?.(!1)));
80
+ ie(() => {
81
+ c.current && a.current && ((x ? c.current.offsetWidth > a.current.offsetWidth : c.current.offsetHeight > a.current.offsetHeight) ? n === !1 && (M(!0), k?.(!0)) : n === !0 && (M(!1), k?.(!1)));
126
82
  }),
127
- [i, x]
83
+ [n, x]
128
84
  );
129
85
  S(() => {
130
- const o = nt(
131
- [p.current, a.current],
86
+ const o = se(
87
+ [a.current, c.current],
132
88
  G
133
89
  );
134
90
  return () => {
135
91
  o();
136
92
  };
137
- }, [p.current, a.current]);
93
+ }, [a.current, c.current]);
138
94
  const I = () => w ? null : /* @__PURE__ */ r(
139
95
  "div",
140
96
  {
141
- className: x ? n(`${t}-content-mirror`, `${t}-single`) : n(
142
- `${t}-content-mirror`,
143
- `${t}-multiple`,
144
- `${t}-collapsed`
97
+ className: x ? s(`${e}-content-mirror`, `${e}-single`) : s(
98
+ `${e}-content-mirror`,
99
+ `${e}-multiple`,
100
+ `${e}-collapsed`
145
101
  ),
146
102
  style: {
147
103
  WebkitBoxOrient: "vertical",
148
104
  MozBoxOrient: "vertical",
149
105
  WebkitLineClamp: l
150
106
  },
151
- ref: p,
152
- children: /* @__PURE__ */ r("span", { ref: a, className: `${t}-text`, children: u })
107
+ ref: a,
108
+ children: /* @__PURE__ */ r("span", { ref: c, className: `${e}-text`, children: d })
153
109
  }
154
- ), z = () => x ? /* @__PURE__ */ r("div", { className: n(`${t}-content`, `${t}-single`), children: /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }) }) : D ? /* @__PURE__ */ g(
110
+ ), z = () => x ? /* @__PURE__ */ r("div", { className: s(`${e}-content`, `${e}-single`), children: /* @__PURE__ */ r("span", { ref: i, className: `${e}-text`, children: d }) }) : D ? /* @__PURE__ */ g(
155
111
  "div",
156
112
  {
157
- className: n(`${t}-content`, `${t}-multiple`),
158
- title: !h.tooltip && i && !e ? O : void 0,
113
+ className: s(`${e}-content`, `${e}-multiple`),
114
+ title: !h.tooltip && n && !t ? O : void 0,
159
115
  children: [
160
- !e && $(),
116
+ !t && $(),
161
117
  /* @__PURE__ */ r(
162
118
  "span",
163
119
  {
164
- ref: s,
165
- className: n(`${t}-text`, {
166
- [`${t}-collapsed`]: !e
120
+ ref: i,
121
+ className: s(`${e}-text`, {
122
+ [`${e}-collapsed`]: !t
167
123
  }),
168
124
  style: {
169
125
  WebkitBoxOrient: "vertical",
170
126
  MozBoxOrient: "vertical",
171
127
  WebkitLineClamp: l
172
128
  },
173
- children: u
129
+ children: d
174
130
  }
175
131
  ),
176
- e && $()
132
+ t && $()
177
133
  ]
178
134
  }
179
135
  ) : /* @__PURE__ */ g(
180
136
  "div",
181
137
  {
182
- className: n(`${t}-content`, `${t}-multiple`, {
183
- [`${t}-collapsed`]: !e
138
+ className: s(`${e}-content`, `${e}-multiple`, {
139
+ [`${e}-collapsed`]: !t
184
140
  }),
185
141
  style: {
186
142
  WebkitBoxOrient: "vertical",
187
143
  MozBoxOrient: "vertical",
188
144
  WebkitLineClamp: l
189
145
  },
190
- title: !h.tooltip && i && !e ? O : void 0,
146
+ title: !h.tooltip && n && !t ? O : void 0,
191
147
  children: [
192
- !e && $(),
193
- /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }),
194
- e && $()
148
+ !t && $(),
149
+ /* @__PURE__ */ r("span", { ref: i, className: `${e}-text`, children: d }),
150
+ t && $()
195
151
  ]
196
152
  }
197
- ), J = () => w ? /* @__PURE__ */ r("div", { className: `${t}-content`, children: /* @__PURE__ */ r("span", { ref: s, className: `${t}-text`, children: u }) }) : h.tooltip ? /* @__PURE__ */ r(
198
- rt,
153
+ ), J = () => w ? /* @__PURE__ */ r("div", { className: `${e}-content`, children: /* @__PURE__ */ r("span", { ref: i, className: `${e}-text`, children: d }) }) : h.tooltip ? /* @__PURE__ */ r(
154
+ re,
199
155
  {
200
156
  content: O,
201
157
  popupVisible: _,
202
- disabled: !i || e,
158
+ disabled: !n || t,
203
159
  triggerProps: {
204
160
  mouseEnterDelay: 100
205
161
  },
206
162
  onVisibleChange: (o) => {
207
- o ? i && !e && E(!0) : E(!1);
163
+ o ? n && !t && E(!0) : E(!1);
208
164
  },
209
165
  ...h.tooltipProps,
210
166
  children: z()
211
167
  }
212
168
  ) : z();
213
- return /* @__PURE__ */ g("div", { ref: F, className: n(t, A), style: L, children: [
169
+ return /* @__PURE__ */ g("div", { ref: F, className: s(e, A), style: L, children: [
214
170
  I(),
215
171
  J()
216
172
  ] });
217
- }, xe = Q(at);
173
+ }, Ee = Q(ce);
218
174
  export {
219
- xe as default
175
+ Ee as default
220
176
  };
@@ -1,113 +1,68 @@
1
- import { jsx as r, jsxs as I, Fragment as S } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as I, Fragment as S } from "react/jsx-runtime";
2
2
  import $ from "@unicom-cloud/icons/IconUiEdit";
3
3
  import v from "lodash/isArray";
4
- import n from "lodash/isPlainObject";
4
+ import p from "lodash/isPlainObject";
5
5
  import { useEffect as F } from "react";
6
6
  import O from "../copy/index.js";
7
7
  import { u as w } from "../chunk/Bvxzb1wd.js";
8
8
  import A from "../tooltip/index.js";
9
- import "@unicom-cloud/utils/date";
10
- import "@unicom-cloud/utils/case-name";
11
- import "@unicom-cloud/utils/class-name";
12
- import "@unicom-cloud/utils/constant/ui";
13
- import "../chunk/BcEZk8pT.js";
14
- import "@unicom-cloud/utils/clipboard-copy";
15
- import "../chunk/DS_deHpN.js";
16
- import "../chunk/d1c9z8T1.js";
17
- import "@unicom-cloud/utils/file/fileToURL";
18
- import "lodash/escapeRegExp";
19
- import "lodash/isNumber";
20
- import "lodash/isString";
21
- import "lodash/isFunction";
22
- import "lodash/throttle";
23
9
  import "../chunk/DsaQZE4X.js";
24
- import "lodash/camelCase";
25
- import "lodash/capitalize";
26
- import "lodash/cloneDeep";
27
- import "lodash/debounce";
28
- import "lodash/get";
29
- import "lodash/has";
30
- import "lodash/kebabCase";
31
- import "lodash/merge";
32
- import "lodash/mergeWith";
33
- import "lodash/set";
34
- import "lodash/setWith";
35
- import "lodash/snakeCase";
36
- import "lodash/startCase";
37
- import "lodash/uniq";
38
- import "lodash/upperFirst";
39
- import "@unicom-cloud/utils/math";
40
10
  import { m as g } from "../chunk/B5RFT17G.js";
41
- import "@unicom-cloud/utils/mitt";
42
- import "@unicom-cloud/utils/pinyin";
43
- import "../chunk/BJ9_azwQ.js";
44
- import "../chunk/CXrVhA6-.js";
45
- import "../utils/responsiveObserve.js";
46
- import "@unicom-cloud/utils/file/saveAs";
47
- import "@unicom-cloud/utils/screenfull";
48
- import "@unicom-cloud/utils/tinycolor";
49
- import "@unicom-cloud/utils/ui-color";
50
- import "@unicom-cloud/utils/constant/ui.js";
51
- import "react-is";
52
- import "@unicom-cloud/utils/tree";
53
11
  import { isFunction as K } from "@unicom-cloud/utils/is";
54
- import "uuid";
55
- import "../chunk/hc_ufgVf.js";
56
- import "@unicom-cloud/utils/constant/keyboardCode";
57
- function zo(u) {
12
+ function R(u) {
58
13
  const {
59
- children: s,
60
- copyable: i,
61
- editable: p,
62
- ellipsis: a,
14
+ children: a,
15
+ copyable: n,
16
+ editable: r,
17
+ ellipsis: l,
63
18
  expanding: E,
64
19
  setEditing: b,
65
- onClickExpand: l,
20
+ onClickExpand: c,
66
21
  forceShowExpand: h,
67
22
  isEllipsis: C,
68
23
  currentContext: T = {}
69
- } = u, c = w(), { getPrefixCls: N, locale: t } = T, e = N?.("typography"), d = n(i) ? i : {}, m = n(a) ? a : {}, f = n(p) ? p : {}, x = v(m.expandNodes) ? m.expandNodes : [t?.Typography?.fold, t?.Typography?.unfold], y = (o) => {
70
- f.onStart?.(g(s), o), b(!0);
71
- }, P = !!i && /* @__PURE__ */ r(
24
+ } = u, d = w(), { getPrefixCls: N, locale: e } = T, i = N?.("typography"), m = p(n) ? n : {}, s = p(l) ? l : {}, f = p(r) ? r : {}, x = v(s.expandNodes) ? s.expandNodes : [e?.Typography?.fold, e?.Typography?.unfold], y = (o) => {
25
+ f.onStart?.(g(a), o), b(!0);
26
+ }, P = !!n && /* @__PURE__ */ t(
72
27
  O,
73
28
  {
74
- ...d,
29
+ ...m,
75
30
  text: () => {
76
- let o = d.text;
77
- return K(o) && (o = o()), o || (o = g(s)), o;
31
+ let o = m.text;
32
+ return K(o) && (o = o()), o || (o = g(a)), o;
78
33
  },
79
- className: `${e}-operation-copy`
34
+ className: `${i}-operation-copy`
80
35
  }
81
- ), k = p && /* @__PURE__ */ r(
36
+ ), k = r && /* @__PURE__ */ t(
82
37
  A,
83
38
  {
84
- content: t?.Typography?.edit,
39
+ content: e?.Typography?.edit,
85
40
  ...f.tooltipProps,
86
- children: /* @__PURE__ */ r(
41
+ children: /* @__PURE__ */ t(
87
42
  "span",
88
43
  {
89
44
  tabIndex: 0,
90
- "aria-label": t?.Typography?.edit,
45
+ "aria-label": e?.Typography?.edit,
91
46
  role: "button",
92
- className: `${e}-operation-edit`,
47
+ className: `${i}-operation-edit`,
93
48
  onClick: y,
94
- ...c({
49
+ ...d({
95
50
  onPressEnter: y
96
51
  }),
97
- children: /* @__PURE__ */ r($, {})
52
+ children: /* @__PURE__ */ t($, {})
98
53
  }
99
54
  )
100
55
  }
101
- ), j = h || m.expandable && C ? /* @__PURE__ */ r(
56
+ ), j = h || s.expandable && C ? /* @__PURE__ */ t(
102
57
  "a",
103
58
  {
104
- className: `${e}-operation-expand`,
105
- onClick: l,
59
+ className: `${i}-operation-expand`,
60
+ onClick: c,
106
61
  role: "button",
107
62
  tabIndex: 0,
108
- "aria-label": t?.Typography?.unfold,
109
- ...c({
110
- onPressEnter: l
63
+ "aria-label": e?.Typography?.unfold,
64
+ ...d({
65
+ onPressEnter: c
111
66
  }),
112
67
  children: E ? x[0] : x[1]
113
68
  }
@@ -120,5 +75,5 @@ function zo(u) {
120
75
  ] });
121
76
  }
122
77
  export {
123
- zo as default
78
+ R as default
124
79
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as p, useContext as c } from "react";
3
- import { a as f } from "../chunk/BcEZk8pT.js";
3
+ import { a as f } from "../chunk/CYDaUML7.js";
4
4
  import i from "@unicom-cloud/utils/class-name";
5
5
  import l from "./Base.js";
6
6
  function g(a, s) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as l } from "react";
3
- import { a as f } from "../chunk/BcEZk8pT.js";
3
+ import { a as f } from "../chunk/CYDaUML7.js";
4
4
  import i from "@unicom-cloud/utils/class-name";
5
5
  function y(o, s) {
6
6
  const { getPrefixCls: a } = l(f), t = a?.("typography"), { className: r, style: e, children: p } = o, m = i(t, r);