@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
@@ -0,0 +1,1839 @@
1
+ import { jsx as o, jsxs as le, Fragment as gt } from "react/jsx-runtime";
2
+ import Hn from "lodash/throttle";
3
+ import Xe, { useMemo as ie, useCallback as Ze, useState as he, useRef as se, useContext as He, useEffect as et, forwardRef as Kt, createElement as tt, createContext as Ln, useImperativeHandle as An } from "react";
4
+ import { a as nt } from "./CYDaUML7.js";
5
+ import { u as Wn } from "./CAA93JLq.js";
6
+ import { u as Gt } from "./FgWHhRFz.js";
7
+ import "./DsaQZE4X.js";
8
+ import "@unicom-cloud/utils/constant/platform";
9
+ import "./CdXR6dj7.js";
10
+ import "@unicom-cloud/utils/js-cookie";
11
+ import "dayjs";
12
+ import "lodash/debounce";
13
+ import { u as Ft } from "./DfChiMIE.js";
14
+ import "@unicom-cloud/utils/screenfull";
15
+ import "./ClNkxEcR.js";
16
+ import Te from "lodash/isPlainObject";
17
+ import { u as Mn } from "./Bl3hZtxi.js";
18
+ import "@unicom-cloud/utils/query-string";
19
+ import "react-router";
20
+ import { u as zn } from "./CVMFAeSw.js";
21
+ import Jt from "../pagination/Pagination.js";
22
+ import Vn from "../spin/index.js";
23
+ import G from "@unicom-cloud/utils/class-name";
24
+ import { b as Tt, o as Et } from "./d1c9z8T1.js";
25
+ import { p as jn, a as Un } from "./ClqoGc3r.js";
26
+ import { r as Yn } from "./CHQ8c547.js";
27
+ import ht from "../table/ColGroup.js";
28
+ import { TableContext as _t } from "../table/context.js";
29
+ import Ee from "lodash/isArray";
30
+ import { defaultComponent as Qt, INTERNAL_EXPAND_KEY as xt, INTERNAL_SELECTION_KEY as Ct } from "../table/constant.js";
31
+ import Xn from "lodash/merge";
32
+ import { getOriginData as Z, isChildrenNotEmpty as It, getSelectedKeysByData as qn, getSelectedKeys as Gn, getSorterPriority as Ot, getSorterFn as Dt, px2Number as Pt, deepCloneData as Jn, getScrollBarHeight as Qn, getScrollBarWidth as Zn } from "../table/util.js";
33
+ import yt from "lodash/isNumber";
34
+ import eo from "../virtual-list/VirtualList.js";
35
+ import to from "@unicom-cloud/icons/IconUiMinus";
36
+ import no from "@unicom-cloud/icons/IconUiPlus";
37
+ import Ye from "lodash/isString";
38
+ import { C as Bt } from "./DrYaod6k.js";
39
+ import { R as sn } from "./De8RLlOK.js";
40
+ import Zt from "lodash/get";
41
+ import Qe from "lodash/isFunction";
42
+ import { u as oo } from "./BJeTDXdz.js";
43
+ import ln from "../tooltip/index.js";
44
+ import { m as ro } from "./B5RFT17G.js";
45
+ import so from "@unicom-cloud/icons/IconUiCaretDown";
46
+ import io from "@unicom-cloud/icons/IconUiCaretUp";
47
+ import lo from "@unicom-cloud/icons/IconUiFilter";
48
+ import en from "../button/index.js";
49
+ import { u as ao } from "./2vdCeheu.js";
50
+ import co from "../space/index.js";
51
+ import fo from "../trigger/index.js";
52
+ import { isArray as Ue, isPlainObject as we, isFunction as Be, isNumber as tn } from "@unicom-cloud/utils/is";
53
+ function Le(i) {
54
+ const a = ie(
55
+ () => Te(i) ? Xn({}, Qt, i) : Qt,
56
+ [i]
57
+ );
58
+ return {
59
+ getHeaderComponentOperations: a.header.operations,
60
+ getBodyComponentOperations: a.body.operations,
61
+ ComponentTable: a.table,
62
+ ComponentHeaderWrapper: a.header.wrapper,
63
+ ComponentThead: a.header.thead,
64
+ ComponentHeaderRow: a.header.row,
65
+ ComponentTh: a.header.th,
66
+ ComponentHeaderCell: a.header.cell,
67
+ ComponentBodyWrapper: a.body.wrapper,
68
+ ComponentTbody: a.body.tbody,
69
+ ComponentBodyRow: a.body.row,
70
+ ComponentTd: a.body.td,
71
+ ComponentBodyCell: a.body.cell
72
+ };
73
+ }
74
+ function nn(i, a) {
75
+ const f = [];
76
+ function w(t) {
77
+ t && t.length > 0 && t.forEach((T) => {
78
+ T[a] ? w(T[a]) : f.push({ ...T, key: T.dataIndex || T.key });
79
+ });
80
+ }
81
+ return w(i), f;
82
+ }
83
+ function an(i, a) {
84
+ let f = 0;
85
+ return i && i.length > 0 && i.forEach((w) => {
86
+ const t = an(w[a], a) + 1;
87
+ f = Math.max(t, f);
88
+ }), f;
89
+ }
90
+ function po(i) {
91
+ const {
92
+ component: a,
93
+ rowSelection: f,
94
+ expandedRowRender: w,
95
+ expandProps: t = {},
96
+ columns: T = [],
97
+ childrenColumnName: r
98
+ } = i, S = ie(() => T || [], [T]), c = ie(
99
+ () => nn(S, r),
100
+ [S, r]
101
+ ), N = f && f.type === "checkbox" || f && !("type" in f), E = f && f.type === "radio", { width: p } = t, y = !!w, h = N || E, { getHeaderComponentOperations: v, getBodyComponentOperations: O } = Le(a), g = ie(
102
+ () => v({
103
+ selectionNode: h ? "holder_node" : "",
104
+ expandNode: y ? "holder_node" : ""
105
+ }),
106
+ [
107
+ h,
108
+ y,
109
+ v
110
+ ]
111
+ ), u = ie(
112
+ () => O({
113
+ selectionNode: h ? "holder_node" : "",
114
+ expandNode: y ? "holder_node" : ""
115
+ }),
116
+ [
117
+ h,
118
+ y,
119
+ O
120
+ ]
121
+ ), m = f && f.fixed, _ = f && f.columnWidth, A = Ze(
122
+ (U, I, R) => {
123
+ const K = {}, W = [];
124
+ U.forEach((l, x) => {
125
+ const b = { ...l };
126
+ (!("key" in l) || typeof l.key > "u") && (b.key = b.dataIndex || x), x === 0 ? (b.$$isFirstColumn = !0, b.fixed === "left" && (K.fixed = b.fixed)) : b.$$isFirstColumn = !1, W.push(b);
127
+ });
128
+ const H = y && {
129
+ key: xt,
130
+ title: xt,
131
+ width: p,
132
+ $$isOperation: !0
133
+ }, Y = h && {
134
+ key: Ct,
135
+ title: Ct,
136
+ width: _,
137
+ $$isOperation: !0
138
+ };
139
+ return m && (K.fixed = "left"), (typeof R != "number" || R === 0) && [...I].reverse().forEach((l, x) => {
140
+ if (l.node) {
141
+ const b = g.filter((L) => L.node).length - x - 1;
142
+ l.name === "expandNode" ? W.unshift({
143
+ ...H,
144
+ ...K,
145
+ $$columnIndex: b
146
+ }) : l.name === "selectionNode" ? W.unshift({
147
+ ...Y,
148
+ ...K,
149
+ $$columnIndex: b
150
+ }) : W.unshift({
151
+ ...l,
152
+ ...K,
153
+ title: l.name,
154
+ key: l.name,
155
+ $$isOperation: !0,
156
+ width: l.width || 40,
157
+ $$columnIndex: b
158
+ });
159
+ }
160
+ }), W;
161
+ },
162
+ [
163
+ p,
164
+ y,
165
+ h,
166
+ _,
167
+ m,
168
+ g
169
+ ]
170
+ ), F = ie(
171
+ () => A(c, u),
172
+ [c, A, u]
173
+ ), ee = ie(
174
+ () => an(S, r),
175
+ [S, r]
176
+ );
177
+ return [ie(() => {
178
+ const U = Ee(g) ? g.filter((W) => W.node).length : 0;
179
+ if (ee === 1) {
180
+ const W = S.map((H, Y) => ({
181
+ ...H,
182
+ $$columnIndex: Y + U
183
+ }));
184
+ return [A(W, g, 0)];
185
+ }
186
+ let I = U;
187
+ const R = [], K = (W, H = 0) => {
188
+ R[H] = R[H] || [], W.forEach((Y) => {
189
+ const l = { ...Y };
190
+ l[r] ? (l.colSpan = nn(
191
+ Y[r],
192
+ r
193
+ ).length, l.$$columnIndex = [I], R[H].push(l), K(l[r], H + 1), l.$$columnIndex.push(I - 1)) : (l.rowSpan = ee - H, l.$$columnIndex = I++, R[H].push(l));
194
+ }), R[H] = A(
195
+ R[H],
196
+ g,
197
+ H
198
+ );
199
+ };
200
+ return K(S), R;
201
+ }, [
202
+ S,
203
+ r,
204
+ ee,
205
+ A,
206
+ g
207
+ ]), F];
208
+ }
209
+ function uo(i, a, f) {
210
+ const {
211
+ defaultExpandedRowKeys: w,
212
+ defaultExpandAllRows: t,
213
+ expandedRowRender: T,
214
+ onExpand: r,
215
+ onExpandedRowsChange: S,
216
+ childrenColumnName: c = "children",
217
+ expandProps: N
218
+ } = i, [E, p] = he(
219
+ h()
220
+ ), y = i.expandedRowKeys || E;
221
+ function h() {
222
+ let g = [];
223
+ return i.expandedRowKeys ? g = i.expandedRowKeys : w ? g = w : t && (g = a.map((u, m) => {
224
+ const _ = Z(u);
225
+ return N && "rowExpandable" in N && typeof N.rowExpandable == "function" ? N.rowExpandable(_) && f(u) : typeof T == "function" ? T(_, m) && f(u) : It(u, c) && f(u);
226
+ }).filter((u) => u)), g;
227
+ }
228
+ function v(g) {
229
+ const u = y.indexOf(g) === -1, m = u ? y.concat(g) : y.filter((A) => g !== A), _ = a.filter((A) => m.indexOf(f(A)) !== -1).map((A) => f(A));
230
+ p(_), O(g, u), S?.(_);
231
+ }
232
+ function O(g, u) {
233
+ r?.(
234
+ Z(a.find((m) => f(m) === g)),
235
+ u
236
+ );
237
+ }
238
+ return [y, v];
239
+ }
240
+ function on(i) {
241
+ return [...new Set(i)];
242
+ }
243
+ function mo(i, a, f, w) {
244
+ const { rowSelection: t, childrenColumnName: T } = i, r = t?.selectedRowKeys, S = t?.onSelectAll, c = t?.onSelect, N = t?.onChange, E = t?.pureKeys, p = typeof t?.checkStrictly == "boolean" ? !t.checkStrictly : !1, y = t?.preserveSelectedRowKeys;
245
+ function h() {
246
+ const l = [], x = [], b = (D) => {
247
+ Ee(D) && D.length && D.forEach((C) => {
248
+ const $ = w(C);
249
+ (t && typeof t.checkboxProps == "function" ? t.checkboxProps(Z(C)) : {}).disabled || l.push($), It(C, i.childrenColumnName) && b(C[i.childrenColumnName]);
250
+ });
251
+ };
252
+ b(a);
253
+ const L = (D, C) => {
254
+ Ee(D) && D.length && D.forEach(($) => {
255
+ if (C && p && ($.__INTERNAL_PARENT = C), x.push($), It($, i.childrenColumnName)) {
256
+ const J = { ...$ };
257
+ L($[i.childrenColumnName], J);
258
+ }
259
+ });
260
+ };
261
+ return L(f, void 0), {
262
+ allSelectedRowKeys: l,
263
+ flattenData: x
264
+ };
265
+ }
266
+ const { allSelectedRowKeys: v, flattenData: O } = h(), [g, u] = he([]), [m, _] = he([]), A = qn(
267
+ O,
268
+ on(r || g),
269
+ w,
270
+ T,
271
+ p
272
+ ), F = p && !r ? g : A.selectedRowKeys, ee = p && !r ? m : A.indeterminateKeys, [X, U] = he(
273
+ E ? [] : I(F)
274
+ );
275
+ function I(l, x) {
276
+ const b = x ? X.concat(O) : O, L = new Map(
277
+ b.map((D, C, $) => [w(D), D])
278
+ );
279
+ return l.map((D) => L.get(D)).filter((D) => D);
280
+ }
281
+ const R = new Set(O.map((l) => w(l)));
282
+ function K(l) {
283
+ return y ? l : l.filter((x) => R.has(x));
284
+ }
285
+ function W(l) {
286
+ let x = [], b = [];
287
+ if (l)
288
+ x = K(
289
+ on(F.concat(v))
290
+ );
291
+ else {
292
+ const D = new Set(v);
293
+ x = K(
294
+ F.filter((C) => !D.has(C))
295
+ );
296
+ }
297
+ E || (b = I(x, !0));
298
+ const L = Z(b);
299
+ u(x), U(b), _([]), N?.(x, L), S?.(l, L);
300
+ }
301
+ function H(l, x) {
302
+ const { selectedRowKeys: b, indeterminateKeys: L } = Gn(
303
+ x,
304
+ l,
305
+ F,
306
+ m,
307
+ w,
308
+ T,
309
+ p
310
+ ), D = K(b), C = I(D, !0), $ = Z(C);
311
+ u(D), U(C), _(L), c?.(l, Z(x), $), N?.(D, $);
312
+ }
313
+ function Y(l, x) {
314
+ const b = [O.find((D) => w(D) === l)], L = Z(b);
315
+ u([l]), c?.(!0, Z(x), L), N?.([l], L);
316
+ }
317
+ return {
318
+ selectedRowKeys: F,
319
+ indeterminateKeys: ee,
320
+ onCheckAll: W,
321
+ onCheck: H,
322
+ onCheckRadio: Y,
323
+ setSelectedRowKeys: u,
324
+ allSelectedRowKeys: v,
325
+ flattenData: O
326
+ };
327
+ }
328
+ function ho(i, a) {
329
+ const [f, w] = he(a), [t, T] = he({}), r = se(i), S = Ze(
330
+ (E) => {
331
+ const { field: p, direction: y } = E;
332
+ return f.find((h) => h.field === p) ? y ? f.map(
333
+ (h) => h.field === p ? E : h
334
+ ) : f.filter((h) => h.field !== p) : y ? !yt(E.priority) || f.find((h) => !yt(h.priority)) ? [E] : [...f, E] : [...f];
335
+ },
336
+ [f]
337
+ ), c = Ze((E) => {
338
+ const p = E.filter((h) => "sortOrder" in h);
339
+ let y = [];
340
+ return p.forEach((h) => {
341
+ const v = Ot(h.sorter), O = h.sortOrder, g = {
342
+ field: h.dataIndex || h.key,
343
+ direction: O,
344
+ sorterFn: Dt(h.sorter),
345
+ priority: v
346
+ };
347
+ O ? yt(v) ? y.every((u) => yt(u.priority) || !u.direction) && y.push(g) : y.every((u) => !u.direction) ? y.push(g) : y = [g] : y.push(g);
348
+ }), y;
349
+ }, []), N = Ze(
350
+ (E, p) => {
351
+ c(i).length || (w(p), T(E));
352
+ },
353
+ [i, c, w, T]
354
+ );
355
+ return Ft(() => {
356
+ const E = r.current, p = c(E), y = c(i), h = p.map(
357
+ (O) => O.field
358
+ ), v = y.filter((O) => p.find(
359
+ ({ field: u, direction: m }) => O.field === u && O.direction !== m
360
+ ) ? !0 : !h.includes(O.field));
361
+ v && v.length && (w(y), T({})), r.current = i;
362
+ }, [
363
+ i,
364
+ c,
365
+ S,
366
+ T,
367
+ w
368
+ ]), {
369
+ currentSorter: t,
370
+ activeSorters: f,
371
+ getNextActiveSorters: S,
372
+ updateStateSorters: N
373
+ };
374
+ }
375
+ function yo(i, a, f) {
376
+ const w = a.map((S) => S.fixed);
377
+ function t(S, c) {
378
+ return G({
379
+ [`${f}-col-fixed-left`]: S.fixed === "left",
380
+ [`${f}-col-fixed-right`]: S.fixed === "right",
381
+ [`${f}-col-fixed-left-last`]: S.fixed === "left" && (Te(a[c + 1]) ? a[c + 1].fixed !== "left" : !0),
382
+ [`${f}-col-fixed-right-first`]: S.fixed === "right" && (Te(a[c - 1]) ? a[c - 1].fixed !== "right" : !0)
383
+ });
384
+ }
385
+ const T = ie(() => a.map(
386
+ (S, c) => t(S, c)
387
+ ), [w.join("-")]);
388
+ return [ie(
389
+ () => i.map((S) => S.map((c, N) => {
390
+ let E = N;
391
+ const p = c.$$columnIndex;
392
+ return Ee(p) && p.length === 2 ? E = c.fixed === "right" ? p[0] : p[1] : typeof p == "number" && (E = p), t(c, E);
393
+ })),
394
+ [
395
+ i.map((S) => `|${S.map((c) => c.fixed || "undefined").join("-")}|`).join("_")
396
+ ]
397
+ ), T];
398
+ }
399
+ function go(i) {
400
+ const a = i.map((t) => Pt(t.width)), f = i.map((t) => t.fixed);
401
+ return ie(() => i.map((t) => {
402
+ let T = 0;
403
+ return t.fixed === "left" && i.some((r) => {
404
+ if (r.fixed === "left") {
405
+ if (r.key === t.key)
406
+ return !0;
407
+ const S = Pt(r.width), c = r.$$isOperation ? S || 40 : S;
408
+ return T += c, !1;
409
+ }
410
+ return !1;
411
+ }), t.fixed === "right" && [...i].reverse().some((r) => {
412
+ if (r.fixed === "right") {
413
+ if (r.key === t.key)
414
+ return !0;
415
+ const S = Pt(r.width), c = r.$$isOperation ? S || 40 : S;
416
+ return T += c, !1;
417
+ }
418
+ return !1;
419
+ }), T;
420
+ }), [a.join("-"), f.join("-")]);
421
+ }
422
+ function xo(i) {
423
+ return i && !Xe.isValidElement(i) && Te(i);
424
+ }
425
+ function Co(i) {
426
+ const a = oo(), {
427
+ component: f,
428
+ InnerComponentTd: w,
429
+ column: t,
430
+ columnIndex: T,
431
+ prefixCls: r,
432
+ stickyClassName: S,
433
+ stickyOffset: c,
434
+ currentSorter: N,
435
+ virtualized: E,
436
+ record: p,
437
+ trIndex: y,
438
+ level: h,
439
+ placeholder: v = "-",
440
+ indentSize: O,
441
+ renderExpandIcon: g,
442
+ rowKey: u,
443
+ recordHaveChildren: m,
444
+ haveTreeData: _
445
+ } = i, { rtl: A } = He(nt), F = He(_t), { ComponentBodyCell: ee } = Le(f), X = se(null), U = se(null), I = se(null), R = se(null), K = t?.tooltip?.show !== !1 && t?.ellipsis, W = G(
446
+ `${r}-td`,
447
+ S,
448
+ {
449
+ [`${r}-col-sorted`]: N && N.direction && N.field === t?.dataIndex
450
+ },
451
+ t?.className,
452
+ Qe(t?.bodyClassName) ? t.bodyClassName(p, y) : t?.bodyClassName
453
+ );
454
+ let H = {}, Y, l, x = {};
455
+ t?.fixed === "left" && (x[A ? "right" : "left"] = c), t?.fixed === "right" && (x[A ? "left" : "right"] = c), Te(t?.cellStyle) && (x = {
456
+ ...x,
457
+ ...t?.cellStyle
458
+ }), Te(t?.bodyCellStyle) && (x = {
459
+ ...x,
460
+ ...t?.bodyCellStyle
461
+ }), Qe(t?.bodyCellStyle) && (x = {
462
+ ...x,
463
+ ...t?.bodyCellStyle?.(p, y) ?? {}
464
+ }), t?.align && (x.textAlign = t?.align), E && t.width && (x.width = t.width, x.minWidth = t.width, x.maxWidth = t.width);
465
+ const { onHandleSave: b, ...L } = t?.onCell ? t?.onCell(
466
+ p,
467
+ y,
468
+ t,
469
+ { rowKey: u }
470
+ // 潘启宝添加
471
+ ) ?? {} : { onHandleSave: () => {
472
+ } }, D = t?.render;
473
+ let C = ie(() => D?.(
474
+ Zt(p, t?.dataIndex ?? ""),
475
+ Z(p),
476
+ y,
477
+ t,
478
+ // 潘启宝添加
479
+ { rowKey: u }
480
+ // 潘启宝添加
481
+ ), [p, t, y]);
482
+ if (Qe(D) || (C = Zt(p, t?.dataIndex ?? "")), xo(C) && (H = C?.props, Y = H?.rowSpan, l = H?.colSpan, C = C?.children), et(() => (a(), () => {
483
+ }), [X.current, U.current]), Y === 0 || l === 0)
484
+ return null;
485
+ Ye(C) && (C = C.trim()), !C && C !== 0 && (C = t?.placeholder ?? v ?? "-");
486
+ const $ = t?.ellipsis && Ye(C) && !K ? {
487
+ title: C
488
+ } : {}, J = _ && t?.$$isFirstColumn, d = J && m;
489
+ let te = J && h > 0 ? O * h : 0;
490
+ J && !m && (te += 20);
491
+ function re(q) {
492
+ a();
493
+ }
494
+ const Q = `${T}-${y}-${te}-${d}`, ue = /* @__PURE__ */ o(
495
+ "div",
496
+ {
497
+ ref: X,
498
+ className: G(`${r}-cell`, {
499
+ [`${r}-cell-text-ellipsis`]: t?.ellipsis
500
+ }),
501
+ ...$,
502
+ onMouseEnter: K ? re : void 0,
503
+ children: /* @__PURE__ */ le(
504
+ ee,
505
+ {
506
+ ref: U,
507
+ className: `${r}-cell-wrap-value`,
508
+ ...Ye(ee) ? {} : {
509
+ rowData: Z(p),
510
+ column: t,
511
+ onHandleSave: b,
512
+ ...L
513
+ },
514
+ children: [
515
+ !!te && /* @__PURE__ */ o(
516
+ "span",
517
+ {
518
+ ref: I,
519
+ className: `${r}-cell-indent`,
520
+ style: { paddingLeft: te }
521
+ }
522
+ ),
523
+ !!d && /* @__PURE__ */ o(
524
+ "span",
525
+ {
526
+ ref: R,
527
+ className: `${r}-cell-expand-icon`,
528
+ children: g(p, u)
529
+ }
530
+ ),
531
+ i.___dangerouslySetInnerHTML___ && Ye(C) ? /* @__PURE__ */ o(
532
+ "span",
533
+ {
534
+ dangerouslySetInnerHTML: {
535
+ __html: C
536
+ }
537
+ }
538
+ ) : C
539
+ ]
540
+ },
541
+ Q
542
+ )
543
+ },
544
+ Q
545
+ );
546
+ let V = /* @__PURE__ */ o(
547
+ w,
548
+ {
549
+ className: W,
550
+ style: x,
551
+ ...jn(L, [
552
+ "onClick",
553
+ "onDoubleClick",
554
+ "onContextMenu",
555
+ "onMouseOver",
556
+ "onMouseEnter",
557
+ "onMouseLeave",
558
+ "onMouseMove",
559
+ "onMouseDown",
560
+ "onMouseUp"
561
+ ]),
562
+ ...H,
563
+ children: ue
564
+ },
565
+ t?.key || t?.dataIndex || T
566
+ );
567
+ if (K) {
568
+ let q = 0, fe = 0, ae = 0, me = 0;
569
+ if (X.current instanceof Element && (q = X.current.getBoundingClientRect().width), U.current instanceof Element && (fe = U.current.getBoundingClientRect().width), I.current instanceof Element && (ae = I.current.getBoundingClientRect().width), R.current instanceof Element && (me = R.current.getBoundingClientRect().width), q < fe + ae + me) {
570
+ const xe = t?.tooltip?.render, Ce = Qe(xe) ? xe(p, y, t) : t?.tooltip?.content ?? ro(V);
571
+ V = /* @__PURE__ */ o(
572
+ ln,
573
+ {
574
+ ...t?.tooltip,
575
+ className: G(
576
+ `${r}-cell-tooltip`,
577
+ t?.tooltip?.className
578
+ ),
579
+ content: Ce,
580
+ triggerProps: F.triggerProps,
581
+ children: V
582
+ }
583
+ );
584
+ }
585
+ }
586
+ return V;
587
+ }
588
+ const wo = Xe.memo(Co);
589
+ function So(i, a) {
590
+ const {
591
+ expandedRowRender: f,
592
+ onClickExpandBtn: w,
593
+ columns: t,
594
+ component: T,
595
+ onCheck: r,
596
+ onCheckRadio: S,
597
+ prefixCls: c,
598
+ selectedRowKeys: N,
599
+ indeterminateKeys: E,
600
+ rowClassName: p,
601
+ onRow: y,
602
+ rowSelection: h,
603
+ indentSize: v = 16,
604
+ activeSorters: O,
605
+ virtualized: g,
606
+ stickyOffsets: u,
607
+ stickyClassNames: m,
608
+ getRowKey: _,
609
+ placeholder: A,
610
+ expandProps: F = { strictTreeData: !0 },
611
+ data: ee,
612
+ expandedRowKeys: X,
613
+ childrenColumnName: U,
614
+ record: I,
615
+ index: R,
616
+ type: K,
617
+ shouldRowExpand: W,
618
+ level: H
619
+ } = i, { rtl: Y } = He(nt), l = Z(I), { ...x } = y?.(l, R) || {}, b = _(I), L = K === "radio" ? N.slice(0, 1) : N, D = b || R, C = L.indexOf(b) > -1, $ = X.indexOf(b) > -1, J = E.indexOf(b) > -1, d = G(
620
+ `${c}-tr`,
621
+ {
622
+ [`${c}-row-checked`]: C,
623
+ [`${c}-row-expanded`]: $
624
+ },
625
+ p?.(l, R)
626
+ ), te = h && typeof h.checkboxProps == "function" ? h.checkboxProps(l) : {}, re = G(`${c}-td`, `${c}-operation`), Q = (P) => G(re, `${c}-${P}`, {
627
+ [`${c}-selection-col`]: g && K === "checkbox" || K === "radio",
628
+ [`${c}-expand-icon-col`]: g && f
629
+ });
630
+ function ue(P) {
631
+ return F.strictTreeData ? Ee(P[U]) && P[U].length : P[U] !== void 0;
632
+ }
633
+ function V() {
634
+ return ee.find((P) => ue(P));
635
+ }
636
+ const q = W(I, R), fe = ue(I), ae = V() && !f, me = ae && fe, Ce = F.expandRowByClick && (q || me) ? {
637
+ onClick: (P) => {
638
+ w(b), x?.onClick?.(P);
639
+ }
640
+ } : {}, { ComponentBodyRow: be, ComponentTd: Ie, getBodyComponentOperations: Oe } = Le(T), ne = g ? "div" : be, ce = g ? "div" : Ie, $e = {
641
+ className: d,
642
+ key: D,
643
+ ...x,
644
+ ...Ce
645
+ }, Se = Ye(be) ? $e : { ...$e, record: I, index: R };
646
+ function Ne(P, ye) {
647
+ const { icon: ke } = F, Ke = !!~X.indexOf(ye), Fe = {
648
+ onClick: (de) => {
649
+ de.stopPropagation(), w(ye);
650
+ }
651
+ };
652
+ return typeof ke == "function" ? ke({ expanded: Ke, record: P, ...Fe }) : /* @__PURE__ */ o("button", { ...Fe, type: "button", children: Ke ? /* @__PURE__ */ o(to, {}) : /* @__PURE__ */ o(no, {}) });
653
+ }
654
+ const Ae = f && /* @__PURE__ */ o(ce, { className: Q("expand-icon-cell"), children: q && Ne(I, b) }), Re = h && h.renderCell;
655
+ let Pe;
656
+ const De = /* @__PURE__ */ o(
657
+ Bt,
658
+ {
659
+ value: b,
660
+ onChange: (P) => r(P, I),
661
+ checked: C,
662
+ indeterminate: J,
663
+ ...te
664
+ }
665
+ ), z = /* @__PURE__ */ o(
666
+ sn,
667
+ {
668
+ onChange: () => S(b, I),
669
+ value: b,
670
+ checked: C,
671
+ ...te
672
+ }
673
+ );
674
+ K === "checkbox" && (Pe = /* @__PURE__ */ o(ce, { className: Q("checkbox"), children: Re ? Re(De, C, l) : De })), K === "radio" && (Pe = /* @__PURE__ */ o(ce, { className: Q("radio"), children: Re ? Re(z, C, l) : z }));
675
+ const pe = Oe({
676
+ selectionNode: Pe,
677
+ expandNode: Ae
678
+ });
679
+ return /* @__PURE__ */ tt(ne, { ...Se, key: Se.key, ref: a }, t.map((P, ye) => {
680
+ const ke = `${P.key}-${P.dataIndex}-${P.title}-${ye}`, Ke = u[ye], Fe = m[ye];
681
+ if (P.$$isOperation) {
682
+ let de = P.node, oe = !0;
683
+ P.title === Ct && (de = pe.find((qe) => qe.name === "selectionNode")?.node, oe = !1), P.title === xt && (de = pe.find((qe) => qe.name === "expandNode")?.node, oe = !1);
684
+ const We = typeof de == "function" ? de(I) : de;
685
+ return Xe.cloneElement(We, {
686
+ key: ke || ye,
687
+ ...We.props,
688
+ className: G(
689
+ oe ? re : "",
690
+ We?.props?.className,
691
+ Fe
692
+ ),
693
+ style: {
694
+ ...We?.props?.style,
695
+ ...P.fixed === "left" ? {
696
+ [Y ? "right" : "left"]: Ke
697
+ } : {},
698
+ width: P.width,
699
+ minWidth: P.width
700
+ }
701
+ });
702
+ }
703
+ return /* @__PURE__ */ o(
704
+ wo,
705
+ {
706
+ prefixCls: c,
707
+ virtualized: g,
708
+ component: T,
709
+ currentSorter: O.find(
710
+ (de) => de.field === (P.dataIndex || P.key)
711
+ ),
712
+ placeholder: A,
713
+ indentSize: v,
714
+ stickyClassName: Fe,
715
+ stickyOffset: Ke,
716
+ InnerComponentTd: ce,
717
+ column: P,
718
+ columnIndex: ye,
719
+ record: I,
720
+ trIndex: R,
721
+ level: H,
722
+ haveTreeData: ae,
723
+ recordHaveChildren: fe,
724
+ rowKey: b,
725
+ renderExpandIcon: Ne,
726
+ ___dangerouslySetInnerHTML___: i.___dangerouslySetInnerHTML___
727
+ },
728
+ ke
729
+ );
730
+ }));
731
+ }
732
+ const rn = Kt(So), bo = Kt(function({
733
+ record: a,
734
+ index: f,
735
+ virtualized: w,
736
+ tbodyProps: t
737
+ }, T) {
738
+ const {
739
+ prefixCls: r,
740
+ columns: S,
741
+ indentSize: c = 16,
742
+ childrenColumnName: N = "children",
743
+ expandProps: E = {},
744
+ rowSelection: p,
745
+ hasFixedColumn: y,
746
+ tableViewWidth: h,
747
+ getRowKey: v,
748
+ expandedRowKeys: O,
749
+ expandedRowRender: g
750
+ } = t;
751
+ let u;
752
+ p && "type" in p ? u = p.type : p && !("type" in p) && (u = "checkbox");
753
+ const m = g && ((R, K) => g(Z(R), K)), _ = (R) => Ee(R[N]) && R[N].length, A = (R, K) => "rowExpandable" in E && typeof E.rowExpandable == "function" ? E.rowExpandable(R) : m?.(R, K) !== null, F = (R, K) => {
754
+ const W = [], H = {
755
+ ...t,
756
+ type: u,
757
+ shouldRowExpand: A
758
+ };
759
+ W.push(
760
+ /* @__PURE__ */ o(
761
+ rn,
762
+ {
763
+ ref: T,
764
+ ...H,
765
+ record: R,
766
+ level: 0,
767
+ index: K
768
+ },
769
+ v(R)
770
+ )
771
+ );
772
+ const Y = (l, x, b = 0) => {
773
+ Ee(l) && l.length && l.forEach((L, D) => {
774
+ O.indexOf(x) !== -1 && (W.push(
775
+ /* @__PURE__ */ tt(
776
+ rn,
777
+ {
778
+ ...H,
779
+ key: v(L),
780
+ record: L,
781
+ level: b + 1,
782
+ index: D
783
+ }
784
+ )
785
+ ), _(L) && Y(L[N], v(L), b + 1));
786
+ });
787
+ };
788
+ return m || Y(R[N], v(R)), W;
789
+ }, ee = v(a), X = A(a, f) && O.indexOf(ee) !== -1, U = w ? "div" : "tr", I = w ? "div" : "td";
790
+ return /* @__PURE__ */ le(Xe.Fragment, { children: [
791
+ F(a, f),
792
+ X && /* @__PURE__ */ o(
793
+ U,
794
+ {
795
+ className: G(`${r}-tr`, `${r}-expand-content`),
796
+ children: /* @__PURE__ */ o(
797
+ I,
798
+ {
799
+ className: G(`${r}-td`),
800
+ style: { paddingLeft: c },
801
+ colSpan: S.length,
802
+ children: y ? /* @__PURE__ */ o(
803
+ "div",
804
+ {
805
+ className: `${r}-expand-fixed-row`,
806
+ style: { width: h },
807
+ children: m?.(a, f)
808
+ }
809
+ ) : m?.(a, f)
810
+ }
811
+ )
812
+ },
813
+ `${ee}-expanded`
814
+ )
815
+ ] }, ee);
816
+ });
817
+ function $o(i) {
818
+ const {
819
+ data: a,
820
+ columns: f,
821
+ prefixCls: w,
822
+ component: t,
823
+ noDataElement: T,
824
+ scroll: r,
825
+ tableViewWidth: S,
826
+ virtualized: c,
827
+ virtualListProps: N,
828
+ getRowKey: E,
829
+ saveVirtualListRef: p
830
+ } = i, y = (_) => {
831
+ i.saveRef?.(_);
832
+ }, { ComponentTbody: h } = Le(t);
833
+ let v = {}, O = {};
834
+ r && (r.x && (typeof r.x == "number" || typeof r.x == "string") && (v = {
835
+ width: r.x
836
+ }), r.y && (typeof r.y == "number" || typeof r.y == "string") && (O = {
837
+ maxHeight: r.y
838
+ }));
839
+ const g = {
840
+ className: `${w}-no-data`
841
+ };
842
+ S && (g.className = `${w}-no-data ${w}-expand-fixed-row`, g.style = { width: S });
843
+ const u = /* @__PURE__ */ o("tr", { className: G(`${w}-tr`, `${w}-empty-row`), children: /* @__PURE__ */ o("td", { className: `${w}-td`, colSpan: f.length, children: /* @__PURE__ */ o("div", { ...g, children: T }) }) }), m = (_, A) => {
844
+ const F = E(_) ?? A;
845
+ return /* @__PURE__ */ o(
846
+ bo,
847
+ {
848
+ record: _,
849
+ index: A,
850
+ virtualized: c,
851
+ tbodyProps: i
852
+ },
853
+ F
854
+ );
855
+ };
856
+ return c ? a.length > 0 ? /* @__PURE__ */ o(
857
+ eo,
858
+ {
859
+ data: a,
860
+ height: O.maxHeight,
861
+ isStaticItemHeight: !1,
862
+ outerStyle: { ...v, minWidth: "100%", overflow: "visible" },
863
+ innerStyle: { right: "auto", minWidth: "100%" },
864
+ className: `${w}-body`,
865
+ ref: (_) => {
866
+ p(_), y(_?.dom);
867
+ },
868
+ itemKey: E,
869
+ ...N,
870
+ children: m
871
+ }
872
+ ) : /* @__PURE__ */ o("div", { className: `${w}-body`, ref: y, children: /* @__PURE__ */ o("table", { children: /* @__PURE__ */ o("tbody", { children: u }) }) }) : /* @__PURE__ */ o(h, { ref: y, children: a.length > 0 ? a.map(m) : u });
873
+ }
874
+ const No = Ln({});
875
+ function Ro(i) {
876
+ const { summary: a, data: f, prefixCls: w, columns: t, stickyOffsets: T, stickyClassNames: r } = i;
877
+ return /* @__PURE__ */ o("tfoot", { className: `${w}-tfoot`, children: /* @__PURE__ */ o(
878
+ No.Provider,
879
+ {
880
+ value: { columns: t, stickyOffsets: T, stickyClassNames: r, prefixCls: w },
881
+ children: a(Z(f))
882
+ }
883
+ ) });
884
+ }
885
+ function ko(i, a) {
886
+ return i === "ascend" ? a?.Table.sortAscend : i === "descend" ? a?.Table.sortDescend : a?.Table.cancelSort;
887
+ }
888
+ const vo = { bottom: 0 };
889
+ function To(i) {
890
+ const {
891
+ onSort: a,
892
+ onFilter: f,
893
+ onHandleFilter: w,
894
+ onHandleFilterReset: t,
895
+ currentFilters: T = {},
896
+ currentSorter: r,
897
+ _key: S,
898
+ dataIndex: c,
899
+ title: N,
900
+ sorter: E,
901
+ sortDirections: p = ["ascend", "descend"],
902
+ filters: y = [],
903
+ columnFixedStyle: h,
904
+ className: v,
905
+ headerClassName: O,
906
+ cellStyle: g,
907
+ headerCellStyle: u,
908
+ rowSpan: m,
909
+ colSpan: _,
910
+ headerCellProps: A,
911
+ prefixCls: F,
912
+ align: ee = "left",
913
+ component: X,
914
+ filterIcon: U,
915
+ filterDropdown: I,
916
+ filterMultiple: R = !0,
917
+ ellipsis: K,
918
+ filterDropdownProps: W,
919
+ onFilterDropdownVisibleChange: H,
920
+ column: Y,
921
+ showSorterTooltip: l,
922
+ index: x
923
+ } = i, { locale: b, rtl: L } = He(nt), D = He(_t), C = S || c || x, [$, J, d] = ao([], {
924
+ value: T[C] || []
925
+ }), [te, re] = he(!1), [Q, ue] = he(!1), V = E && Ee(p) && p.length, q = V ? fe() : void 0;
926
+ et(() => {
927
+ J(T[C] || []);
928
+ }, [T, C]), et(() => {
929
+ $ && $ !== d && J($);
930
+ }, [te]);
931
+ function fe() {
932
+ const z = r && r.direction;
933
+ if (!z || r && r.field !== C)
934
+ return p[0];
935
+ const pe = p.indexOf(z);
936
+ if (pe < p.length)
937
+ return p[pe + 1];
938
+ }
939
+ function ae() {
940
+ $ && (w?.(
941
+ { onFilter: f, filters: y, dataIndex: C },
942
+ d
943
+ ), xe(!1));
944
+ }
945
+ function me() {
946
+ t({ dataIndex: C }), xe(!1);
947
+ }
948
+ function xe(z) {
949
+ re(z), H?.(z);
950
+ }
951
+ function Ce(z, pe) {
952
+ let P = [...d];
953
+ if (R)
954
+ pe ? P = P.concat(z) : P.splice(
955
+ P.findIndex((ye) => ye === z),
956
+ 1
957
+ );
958
+ else if (P.length > 0)
959
+ if (P[0] !== z)
960
+ P = [z];
961
+ else
962
+ return;
963
+ else
964
+ P = [z];
965
+ J(P);
966
+ }
967
+ function be(z) {
968
+ J(z || d), re(!1), w?.(
969
+ { filters: y, onFilter: f, dataIndex: C },
970
+ z || d
971
+ );
972
+ }
973
+ function Ie() {
974
+ return typeof I == "function" ? I({
975
+ filterKeys: d,
976
+ setFilterKeys: (z, pe) => {
977
+ J(z), pe?.();
978
+ },
979
+ confirm: be
980
+ }) : /* @__PURE__ */ le("div", { className: `${F}-filters-popup`, children: [
981
+ /* @__PURE__ */ o("div", { className: `${F}-filters-list`, children: y.map((z) => {
982
+ const pe = d.findIndex((P) => P === z.value) !== -1;
983
+ return /* @__PURE__ */ o("div", { className: `${F}-filters-item`, children: R ? /* @__PURE__ */ o(
984
+ Bt,
985
+ {
986
+ checked: pe,
987
+ onChange: (P) => Ce(z.value, P),
988
+ children: z.text
989
+ }
990
+ ) : /* @__PURE__ */ o(
991
+ sn,
992
+ {
993
+ checked: pe,
994
+ onChange: (P) => Ce(z.value, P),
995
+ children: z.text
996
+ }
997
+ ) }, z.value);
998
+ }) }),
999
+ /* @__PURE__ */ le(co, { className: `${F}-filters-btn`, children: [
1000
+ /* @__PURE__ */ o(en, { onClick: me, size: "mini", children: b?.Table.resetText }),
1001
+ /* @__PURE__ */ o(en, { onClick: ae, type: "primary", size: "mini", children: b?.Table.okText })
1002
+ ] })
1003
+ ] });
1004
+ }
1005
+ const Oe = (z) => G(`${F}-sorter-icon`, {
1006
+ [`${F}-sorter-icon-active`]: r && r.direction === z && r.field === C
1007
+ }), ne = G(`${F}-filters`, {
1008
+ [`${F}-filters-open`]: te,
1009
+ [`${F}-filters-active`]: $ && $.length
1010
+ });
1011
+ let ce = {
1012
+ ...h
1013
+ };
1014
+ Te(g) && (ce = {
1015
+ ...ce,
1016
+ ...g
1017
+ }), Te(u) && (ce = {
1018
+ ...ce,
1019
+ ...u
1020
+ }), Qe(u) && (ce = {
1021
+ ...ce,
1022
+ ...u()
1023
+ }), ee && ee !== "left" && (ce.textAlign = ee);
1024
+ const $e = {
1025
+ style: ce,
1026
+ key: S || C
1027
+ };
1028
+ _ && _ > 1 && ($e.colSpan = _), m && m > 1 && ($e.rowSpan = m);
1029
+ const { ComponentTh: Se, ComponentHeaderCell: Ne } = Le(X), Ae = Ee(y) && y.length > 0 || typeof I == "function", Re = K && typeof N == "string" ? { title: N } : {}, Pe = /* @__PURE__ */ le(gt, { children: [
1030
+ V ? /* @__PURE__ */ o(
1031
+ ln,
1032
+ {
1033
+ content: ko(q, b),
1034
+ disabled: !l,
1035
+ triggerProps: D.triggerProps,
1036
+ ...Te(l) ? l : {},
1037
+ children: /* @__PURE__ */ le(
1038
+ "div",
1039
+ {
1040
+ className: `${F}-cell-with-sorter`,
1041
+ onMouseEnter: () => {
1042
+ ue(!0);
1043
+ },
1044
+ onMouseLeave: () => {
1045
+ ue(!1);
1046
+ },
1047
+ onClick: () => a(q, C),
1048
+ children: [
1049
+ /* @__PURE__ */ o("span", { className: `${F}-th-item-title`, ...Re, children: N }),
1050
+ V && /* @__PURE__ */ le(
1051
+ "div",
1052
+ {
1053
+ className: G(`${F}-sorter`, {
1054
+ [`${F}-sorter-direction-one`]: p.length === 1
1055
+ }),
1056
+ children: [
1057
+ p.indexOf("ascend") !== -1 && /* @__PURE__ */ o("div", { className: Oe("ascend"), children: /* @__PURE__ */ o(io, {}) }),
1058
+ p.indexOf("descend") !== -1 && /* @__PURE__ */ o("div", { className: Oe("descend"), children: /* @__PURE__ */ o(so, {}) })
1059
+ ]
1060
+ }
1061
+ )
1062
+ ]
1063
+ }
1064
+ )
1065
+ }
1066
+ ) : /* @__PURE__ */ o("span", { className: `${F}-th-item-title`, ...Re, children: N }),
1067
+ Ae && /* @__PURE__ */ o(
1068
+ fo,
1069
+ {
1070
+ popup: Ie,
1071
+ trigger: "click",
1072
+ classNames: "slideDynamicOrigin",
1073
+ position: L ? "bl" : "br",
1074
+ popupAlign: vo,
1075
+ popupVisible: te,
1076
+ onVisibleChange: xe,
1077
+ ...D.triggerProps,
1078
+ ...W?.triggerProps,
1079
+ children: /* @__PURE__ */ o("div", { className: ne, children: U || /* @__PURE__ */ o(lo, {}) })
1080
+ }
1081
+ )
1082
+ ] }), De = G(`${F}-th-item`, {
1083
+ [`${F}-cell-text-ellipsis`]: K,
1084
+ [`${F}-cell-mouseenter`]: Q,
1085
+ [`${F}-cell-next-${q}`]: Q && q,
1086
+ [`${F}-col-has-sorter`]: V,
1087
+ [`${F}-col-has-filter`]: Ae
1088
+ });
1089
+ return _ !== 0 && /* @__PURE__ */ tt(
1090
+ Se,
1091
+ {
1092
+ className: G(
1093
+ `${F}-th`,
1094
+ {
1095
+ [`${F}-col-sorted`]: r?.direction && r.field === C
1096
+ },
1097
+ v,
1098
+ O
1099
+ ),
1100
+ index: x,
1101
+ ...$e,
1102
+ key: $e.key,
1103
+ ...A
1104
+ },
1105
+ /* @__PURE__ */ o(
1106
+ Ne,
1107
+ {
1108
+ className: De,
1109
+ column: Ye(Ne) ? void 0 : Y,
1110
+ children: Pe
1111
+ }
1112
+ )
1113
+ );
1114
+ }
1115
+ function Eo(i) {
1116
+ const {
1117
+ activeSorters: a,
1118
+ expandedRowRender: f,
1119
+ expandProps: w = {},
1120
+ onSort: t,
1121
+ onHandleFilter: T,
1122
+ onHandleFilterReset: r,
1123
+ onHeaderRow: S,
1124
+ prefixCls: c,
1125
+ currentFilters: N,
1126
+ component: E,
1127
+ data: p,
1128
+ selectedRowKeys: y,
1129
+ rowSelection: h,
1130
+ allSelectedRowKeys: v = [],
1131
+ groupColumns: O,
1132
+ stickyOffsets: g,
1133
+ groupStickyClassNames: u,
1134
+ showSorterTooltip: m
1135
+ } = i, { rtl: _ } = He(nt), { ComponentThead: A, ComponentHeaderRow: F, getHeaderComponentOperations: ee } = Le(E), X = h && (h.type === "checkbox" || !("type" in h)), U = h && "checkAll" in h ? h.checkAll : !0, I = h && h.type === "radio", { columnTitle: R } = w, K = ie(() => {
1136
+ const Y = new Set(v);
1137
+ return y.filter((l, x, b) => Y.has(l));
1138
+ }, [y, v]), W = O.length > 1 ? { rowSpan: O.length } : {}, H = G(`${c}-th`, `${c}-operation`);
1139
+ return /* @__PURE__ */ o(A, { children: O.map((Y, l) => {
1140
+ const x = S?.(Y, l), b = (X || I) && l === 0 && /* @__PURE__ */ o(
1141
+ "th",
1142
+ {
1143
+ className: G(
1144
+ H,
1145
+ `${c}-${I ? "radio" : "checkbox"}`
1146
+ ),
1147
+ children: /* @__PURE__ */ le("div", { className: `${c}-th-item`, children: [
1148
+ U && !I ? /* @__PURE__ */ o(
1149
+ Bt,
1150
+ {
1151
+ indeterminate: p && K.length > 0 && K.length !== v.length,
1152
+ checked: p && K.length !== 0 && K.length === v.length,
1153
+ disabled: !v.length,
1154
+ onChange: i.onCheckAll
1155
+ }
1156
+ ) : null,
1157
+ h && h.columnTitle
1158
+ ] })
1159
+ }
1160
+ ), L = f && /* @__PURE__ */ o("th", { className: G(H, `${c}-expand`), children: R && /* @__PURE__ */ o("div", { className: `${c}-th-item`, children: R }) }), D = u[l], C = ee({
1161
+ selectionNode: b,
1162
+ expandNode: L
1163
+ });
1164
+ return /* @__PURE__ */ tt(
1165
+ F,
1166
+ {
1167
+ ...x,
1168
+ key: l,
1169
+ className: `${c}-tr`
1170
+ },
1171
+ Y.map(($, J) => {
1172
+ const d = $.$$columnIndex;
1173
+ let te = 0;
1174
+ Ue(d) && d.length === 2 ? te = $.fixed === "right" ? g[d[1]] : g[d[0]] : typeof d == "number" && (te = g[d] || 0);
1175
+ const re = D[J];
1176
+ if ($.$$isOperation) {
1177
+ let q = $.node, fe = !0;
1178
+ $.title === Ct && (q = C.find(
1179
+ (me) => me.name === "selectionNode"
1180
+ )?.node, fe = !1), $.title === xt && (q = C.find(
1181
+ (me) => me.name === "expandNode"
1182
+ )?.node, fe = !1);
1183
+ const ae = q;
1184
+ return Xe.cloneElement(ae, {
1185
+ key: $.key || J,
1186
+ ...ae.props,
1187
+ ...W,
1188
+ className: G(
1189
+ fe ? H : "",
1190
+ ae?.props?.className,
1191
+ re
1192
+ ),
1193
+ style: {
1194
+ ...ae?.props?.style,
1195
+ ...$.fixed === "left" ? {
1196
+ [_ ? "right" : "left"]: te
1197
+ } : {},
1198
+ width: $.width,
1199
+ minWidth: $.width
1200
+ }
1201
+ });
1202
+ }
1203
+ const Q = $?.onHeaderCell?.($, J), ue = G(re, $.className), V = {};
1204
+ return $.fixed === "left" && (V[_ ? "right" : "left"] = te), $.fixed === "right" && (V[_ ? "left" : "right"] = te), /* @__PURE__ */ tt(
1205
+ To,
1206
+ {
1207
+ index: J,
1208
+ onSort: t,
1209
+ onHandleFilter: T,
1210
+ onHandleFilterReset: r,
1211
+ currentSorter: a.find(
1212
+ (q) => q.field === ($.dataIndex || $.key)
1213
+ ),
1214
+ currentFilters: N,
1215
+ _key: $.key || $.dataIndex || J,
1216
+ ...$,
1217
+ key: $.key,
1218
+ column: $,
1219
+ headerCellProps: Q,
1220
+ prefixCls: c,
1221
+ component: E,
1222
+ className: ue,
1223
+ columnFixedStyle: V,
1224
+ showSorterTooltip: m
1225
+ }
1226
+ );
1227
+ })
1228
+ );
1229
+ }) });
1230
+ }
1231
+ const Po = [], Fo = [], Io = {
1232
+ showHeader: !0,
1233
+ border: !0,
1234
+ hover: !0,
1235
+ rowKey: "key",
1236
+ pagePosition: "br",
1237
+ childrenColumnName: "children",
1238
+ indentSize: 15,
1239
+ showSorterTooltip: !0
1240
+ };
1241
+ function Oo(i, a) {
1242
+ const {
1243
+ getPrefixCls: f,
1244
+ loadingElement: w,
1245
+ size: t,
1246
+ tablePagination: T,
1247
+ renderEmpty: r,
1248
+ componentConfig: S,
1249
+ rtl: c
1250
+ } = He(nt), N = Gt(
1251
+ i,
1252
+ Io,
1253
+ S?.Table
1254
+ ), E = Gt(
1255
+ we(i?.pagination) ? i?.pagination : {},
1256
+ we(S?.Table?.pagination) ? S?.Table?.pagination : {},
1257
+ T || {}
1258
+ ), {
1259
+ style: p,
1260
+ className: y,
1261
+ component: h,
1262
+ border: v,
1263
+ borderCell: O,
1264
+ columns: g = Fo,
1265
+ data: u = Po,
1266
+ scroll: m,
1267
+ noDataElement: _,
1268
+ showHeader: A,
1269
+ stripe: F,
1270
+ hover: ee,
1271
+ pagination: X,
1272
+ onChange: U,
1273
+ pagePosition: I,
1274
+ childrenColumnName: R,
1275
+ indentSize: K,
1276
+ rowSelection: W,
1277
+ tableLayoutFixed: H,
1278
+ header: Y,
1279
+ // 潘启宝添加
1280
+ footer: l,
1281
+ virtualized: x,
1282
+ renderPagination: b,
1283
+ summary: L,
1284
+ rowKey: D,
1285
+ triggerProps: C
1286
+ } = N, $ = m && we(m) && m.x, J = ie(
1287
+ () => Jn(u, R),
1288
+ [u, R]
1289
+ ), d = f?.("table"), te = N.size || (["default", "middle", "small", "mini"].indexOf(t) > -1 ? t : "default"), re = se(null), Q = se(null), ue = se(null), V = se(null), q = se(null), fe = se(null), ae = se(null), me = se(null), xe = se(null), Ce = se(null), be = se(0), Ie = se(!1), [Oe, ne] = po(N), { currentFilters: ce, defaultSorters: $e } = fn(), [Se, Ne] = he(1), [Ae, Re] = he(
1290
+ E.pageSize || E.defaultPageSize || 10
1291
+ ), [Pe, De] = he(ce), [z, pe] = he(0), [P, ye] = he([]), ke = go(ne), [Ke, Fe] = yo(
1292
+ Oe,
1293
+ ne,
1294
+ d
1295
+ ), {
1296
+ currentSorter: de,
1297
+ activeSorters: oe,
1298
+ getNextActiveSorters: We,
1299
+ updateStateSorters: qe
1300
+ } = ho(ne, $e), { ComponentTable: ot, ComponentBodyWrapper: cn, ComponentHeaderWrapper: dn } = Le(h), wt = ie(() => Be(D) ? (e) => D(Z(e)) : (e) => e[D], [D]);
1301
+ function fn() {
1302
+ const e = {};
1303
+ let n = [];
1304
+ return ne.forEach((s) => {
1305
+ const k = s.dataIndex || s.key;
1306
+ if (s.defaultFilters && (e[k] = s.defaultFilters), s.filteredValue && (e[k] = s.filteredValue), "defaultSortOrder" in s || "sortOrder" in s) {
1307
+ const B = Ot(s.sorter), j = "sortOrder" in s ? s.sortOrder : s.defaultSortOrder, M = {
1308
+ field: k,
1309
+ direction: j,
1310
+ sorterFn: Dt(s.sorter),
1311
+ priority: B
1312
+ };
1313
+ j ? tn(B) ? n.every(
1314
+ (ge) => tn(ge.priority) || !ge.direction
1315
+ ) && n.push(M) : n.every((ge) => !ge.direction) ? n.push(M) : n = [M] : n.push(M);
1316
+ }
1317
+ }), { currentFilters: e, defaultSorters: n };
1318
+ }
1319
+ const rt = ie(() => {
1320
+ const e = ne.filter(
1321
+ (s) => "filteredValue" in s
1322
+ ), n = {};
1323
+ return e.length && e.forEach((s, k) => {
1324
+ const B = s.key || s.dataIndex || k;
1325
+ B !== void 0 && (n[B] = s.filteredValue);
1326
+ }), n;
1327
+ }, [ne]), _e = ie(() => Object.keys(rt).length ? rt : Pe, [Pe, rt]);
1328
+ function pn(e, n) {
1329
+ const s = zt(n);
1330
+ if (!s) return;
1331
+ const k = {
1332
+ direction: e,
1333
+ field: n,
1334
+ sorterFn: Dt(s.sorter),
1335
+ priority: Ot(s.sorter)
1336
+ }, B = We(k);
1337
+ qe(k, B);
1338
+ const j = at(
1339
+ k,
1340
+ B,
1341
+ _e
1342
+ ), M = Ge(j);
1343
+ U?.(ze(j), k, _e, {
1344
+ currentData: Z(M),
1345
+ currentAllData: Z(j),
1346
+ action: "sort"
1347
+ });
1348
+ }
1349
+ function un(e) {
1350
+ const n = function(k, B) {
1351
+ return (j, M) => {
1352
+ const ge = k(j, M);
1353
+ return B === "descend" ? -ge : ge;
1354
+ };
1355
+ }, s = [...e];
1356
+ return s.sort((k, B) => B.priority - k.priority), (k, B) => {
1357
+ for (let j = 0, M = s.length; j < M; j++) {
1358
+ const { sorterFn: ge, direction: vt } = s[j];
1359
+ if (!Be(ge)) continue;
1360
+ const mt = n(ge, vt)(k, B);
1361
+ if (mt !== 0)
1362
+ return mt;
1363
+ }
1364
+ return 0;
1365
+ };
1366
+ }
1367
+ function mn(e, n) {
1368
+ const s = {
1369
+ ..._e,
1370
+ [e.dataIndex]: n
1371
+ }, k = {
1372
+ ...s,
1373
+ ...rt
1374
+ };
1375
+ if (Ue(n) && n.length) {
1376
+ De(k);
1377
+ const B = at(
1378
+ de,
1379
+ oe,
1380
+ s
1381
+ ), j = Ge(B);
1382
+ U?.(
1383
+ ze(B),
1384
+ oe.length === 1 ? oe[0] : oe,
1385
+ s,
1386
+ {
1387
+ currentData: Z(j),
1388
+ currentAllData: Z(B),
1389
+ action: "filter"
1390
+ }
1391
+ );
1392
+ } else Ue(n) && !n.length && Ht(e);
1393
+ }
1394
+ function Ht({ dataIndex: e }) {
1395
+ const n = {
1396
+ ..._e
1397
+ };
1398
+ delete n[e], De(n);
1399
+ const s = at(
1400
+ de,
1401
+ oe,
1402
+ n
1403
+ ), k = Ge(s);
1404
+ U?.(
1405
+ ze(s),
1406
+ oe.length === 1 ? oe[0] : oe,
1407
+ n,
1408
+ {
1409
+ currentData: Z(k),
1410
+ currentAllData: Z(s),
1411
+ action: "filter"
1412
+ }
1413
+ );
1414
+ }
1415
+ const st = !!ne.find((e) => e.fixed === "left"), it = !!ne.find((e) => e.fixed === "right"), lt = st || it;
1416
+ function at(e, n, s) {
1417
+ let k = (J || []).slice();
1418
+ Object.keys(s).forEach((j) => {
1419
+ if (s[j] && s[j].length) {
1420
+ const M = zt(j);
1421
+ M && Be(M.onFilter) && (k = k.filter((ge) => s[j].reduce(
1422
+ (vt, mt) => vt || M.onFilter(mt, ge),
1423
+ !1
1424
+ )));
1425
+ }
1426
+ });
1427
+ const B = (j) => j.slice().sort(un(n)).map((M) => Ue(M[R]) ? {
1428
+ ...M,
1429
+ [R]: B(M[R])
1430
+ } : M);
1431
+ return e.direction && Be(e.sorterFn) || n.length ? B(k) : k;
1432
+ }
1433
+ const Me = at(
1434
+ de,
1435
+ oe,
1436
+ _e
1437
+ );
1438
+ function ze(e = Me) {
1439
+ const n = E.pageSize || Ae || 10, s = te === "middle" ? "default" : te;
1440
+ let k = "top";
1441
+ I === "tl" || I === "bl" ? k = "bottom" : k = "top";
1442
+ const B = Ue(e) ? e.length : 0, j = Math.ceil(B / n) < Se ? 1 : Se;
1443
+ j !== Se && Ne(j);
1444
+ let M = {
1445
+ size: s,
1446
+ total: B,
1447
+ pageSize: n,
1448
+ current: j,
1449
+ selectProps: {
1450
+ triggerProps: {
1451
+ ...C,
1452
+ position: k
1453
+ }
1454
+ }
1455
+ };
1456
+ return typeof X == "object" && X.selectProps && (M.selectProps = {
1457
+ ...M.selectProps,
1458
+ ...X.selectProps
1459
+ }), we(X) && (M = {
1460
+ ...M,
1461
+ ...X
1462
+ }), we(E) && (M = {
1463
+ ...M,
1464
+ ...E
1465
+ }), M.onChange = Nn, M;
1466
+ }
1467
+ const ct = ze(), Ve = Ge();
1468
+ function Ge(e = Me, n = ct) {
1469
+ const { current: s = 0, pageSize: k = 10 } = n;
1470
+ return X === !1 || we(X) && u.length <= k ? e : e.slice((s - 1) * k, s * k);
1471
+ }
1472
+ const ve = !!(m && m.y), Je = L?.(Z(Me)), St = L && Xe.isValidElement(Je) && Je.props.fixed, hn = ve && St;
1473
+ Wn(() => {
1474
+ bt();
1475
+ const e = re.current, n = Q.current, s = V.current;
1476
+ n && Tt(n, "scroll", je);
1477
+ const k = e && e.parentNode;
1478
+ return e && k && Tt(k, "scroll", je), s && Tt(s, "scroll", je), () => {
1479
+ n && Et(n, "scroll", je), k && Et(k, "scroll", je), s && Et(s, "scroll", je);
1480
+ };
1481
+ }, [
1482
+ st,
1483
+ it,
1484
+ m?.x,
1485
+ m?.y,
1486
+ ne.length,
1487
+ u
1488
+ ]), Ft(() => {
1489
+ const { total: e, pageSize: n } = ze(u);
1490
+ Math.ceil(e / n) < Se && Ne(1);
1491
+ }, [u?.length]), Ft(() => {
1492
+ dt();
1493
+ }, [u, st, it, c]), An(a, () => ({
1494
+ getRootDomElement: Lt,
1495
+ scrollIntoView: (e) => {
1496
+ xe.current && xe.current.scrollTo({ key: e });
1497
+ },
1498
+ getRootDOMNode: Lt
1499
+ }));
1500
+ function Lt() {
1501
+ return q.current;
1502
+ }
1503
+ Mn(At(), (e) => {
1504
+ bt();
1505
+ }), zn(!0, bt);
1506
+ function bt() {
1507
+ if (lt || $) {
1508
+ dt();
1509
+ const e = At();
1510
+ if (e) {
1511
+ const n = e?.clientWidth ?? e?.getBoundingClientRect?.()?.width;
1512
+ pe(n);
1513
+ }
1514
+ }
1515
+ }
1516
+ function At() {
1517
+ return Q.current || me.current || ae.current || fe.current || q.current;
1518
+ }
1519
+ const yn = Ze(
1520
+ Hn(() => {
1521
+ const e = q.current, n = ve ? Q.current : Ce.current && Ce.current.parentNode;
1522
+ if (n) {
1523
+ const s = c ? -n.scrollLeft : n.scrollLeft, k = s === 0, B = s + 1 >= n.children[0].getBoundingClientRect().width - n.getBoundingClientRect().width;
1524
+ k && B ? ft(
1525
+ e.classList,
1526
+ `${d}-scroll-position-both`
1527
+ ) : k ? ft(
1528
+ e.classList,
1529
+ `${d}-scroll-position-${c ? "right" : "left"}`
1530
+ ) : B ? ft(
1531
+ e.classList,
1532
+ `${d}-scroll-position-${c ? "left" : "right"}`
1533
+ ) : ft(
1534
+ e.classList,
1535
+ `${d}-scroll-position-middle`
1536
+ );
1537
+ } else
1538
+ e && Mt(e.classList);
1539
+ }, 100),
1540
+ [q.current, Q.current, ve, c]
1541
+ );
1542
+ function dt() {
1543
+ if (lt || $) {
1544
+ const e = q.current;
1545
+ e && (st && Wt(
1546
+ e.classList,
1547
+ `${d}-has-fixed-col-left`
1548
+ ), it && Wt(
1549
+ e.classList,
1550
+ `${d}-has-fixed-col-right`
1551
+ )), yn();
1552
+ }
1553
+ }
1554
+ function Wt(e, n) {
1555
+ e.contains(n) || e.add(n);
1556
+ }
1557
+ function Mt(e) {
1558
+ e.remove(`${d}-scroll-position-both`), e.remove(`${d}-scroll-position-left`), e.remove(`${d}-scroll-position-right`), e.remove(`${d}-scroll-position-middle`);
1559
+ }
1560
+ function ft(e, n) {
1561
+ e.contains(n) || (Mt(e), e.add(n));
1562
+ }
1563
+ const {
1564
+ selectedRowKeys: $t,
1565
+ indeterminateKeys: gn,
1566
+ onCheckAll: xn,
1567
+ onCheck: Cn,
1568
+ onCheckRadio: wn,
1569
+ setSelectedRowKeys: Sn,
1570
+ allSelectedRowKeys: bn,
1571
+ flattenData: $n
1572
+ } = mo(N, Ve, J, wt);
1573
+ function zt(e) {
1574
+ return ne.find((n, s) => typeof n.key < "u" ? typeof n.key == "number" && typeof e == "string" ? n.key.toString() === e : n.key === e : typeof n.dataIndex < "u" ? n.dataIndex === e : typeof e == "number" ? s === e : !1);
1575
+ }
1576
+ function Nn(e, n) {
1577
+ Ne(e), Re(n), e !== Se && Rn(), W && !W.checkCrossPage && $t.length && (Sn([]), W.onChange?.([], []));
1578
+ const s = { ...ze(), current: e, pageSize: n };
1579
+ U?.(
1580
+ s,
1581
+ oe.length === 1 ? oe[0] : oe,
1582
+ _e,
1583
+ {
1584
+ currentData: Z(
1585
+ Ge(Me, s)
1586
+ ),
1587
+ currentAllData: Z(Me),
1588
+ action: "paginate"
1589
+ }
1590
+ ), E.onChange?.(e, n);
1591
+ }
1592
+ function Rn() {
1593
+ const e = Q.current;
1594
+ e && e.scrollTo({ top: 0, behavior: "smooth" });
1595
+ }
1596
+ function je(e) {
1597
+ const { target: n } = e, s = Q.current, k = re.current && re.current.parentNode, B = V.current;
1598
+ n.scrollLeft !== be.current && (k && (k.scrollLeft = n.scrollLeft), s && (s.scrollLeft = n.scrollLeft), B && (B.scrollLeft = n.scrollLeft), dt()), be.current = e.target.scrollLeft;
1599
+ }
1600
+ function kn(e) {
1601
+ const { target: n } = e, s = Ce.current;
1602
+ n.scrollLeft !== be.current && (s.scrollLeft = n.scrollLeft, dt()), be.current = e.target.scrollLeft;
1603
+ }
1604
+ const [Vt, vn] = uo(
1605
+ N,
1606
+ $n,
1607
+ wt
1608
+ );
1609
+ let jt = {}, Nt = {};
1610
+ m && (m.x && (typeof m.x == "number" || typeof m.x == "string") && (Nt = {
1611
+ width: m.x
1612
+ }), m.y && (typeof m.y == "number" || typeof m.y == "string") && (jt = {
1613
+ maxHeight: m.y
1614
+ }));
1615
+ function Tn() {
1616
+ requestAnimationFrame((e) => {
1617
+ const n = re.current && re.current.parentNode, s = Qn(n);
1618
+ s && s > 0 && (n.style.marginBottom = `-${s}px`, n.style.paddingBottom = "0px", V.current && (V.current.style.marginBottom = `-${s}px`, V.current.style.paddingBottom = "0px")), setTimeout(() => {
1619
+ const k = Q.current;
1620
+ Zn(k) ? (Ie.current = !0, n && (n.style.overflowY = "scroll", n.style.scrollSnapType = "y mandatory"), V.current && (V.current.style.overflowY = "scroll", V.current.style.overflowY = "y mandatory")) : n && Ie.current && (Ie.current = !1, n.style.overflowY = "auto", n.style.overflowY = "y mandatory", V.current && (V.current.style.overflowY = "auto", V.current.style.overflowY = "y mandatory"));
1621
+ }, 0);
1622
+ });
1623
+ }
1624
+ const Ut = /* @__PURE__ */ o(
1625
+ Eo,
1626
+ {
1627
+ ...N,
1628
+ activeSorters: oe,
1629
+ currentSorter: de,
1630
+ selectedRowKeys: $t,
1631
+ currentFilters: _e,
1632
+ onCheckAll: xn,
1633
+ onSort: pn,
1634
+ data: Ve,
1635
+ onHandleFilter: mn,
1636
+ onHandleFilterReset: Ht,
1637
+ prefixCls: d,
1638
+ allSelectedRowKeys: bn,
1639
+ groupColumns: Oe,
1640
+ stickyOffsets: ke,
1641
+ groupStickyClassNames: Ke
1642
+ }
1643
+ );
1644
+ function En() {
1645
+ const e = $ && m.x === "max-content";
1646
+ return ve || x ? /* @__PURE__ */ o(dn, { className: `${d}-header`, children: /* @__PURE__ */ le(
1647
+ ot,
1648
+ {
1649
+ ref: re,
1650
+ style: e ? {} : Nt,
1651
+ children: [
1652
+ /* @__PURE__ */ o(
1653
+ ht,
1654
+ {
1655
+ columns: ne,
1656
+ prefixCls: d,
1657
+ producer: !1,
1658
+ columnWidths: e && m.y ? P : null
1659
+ }
1660
+ ),
1661
+ Ut
1662
+ ]
1663
+ }
1664
+ ) }) : Ut;
1665
+ }
1666
+ const Yt = Je && /* @__PURE__ */ o(
1667
+ Ro,
1668
+ {
1669
+ prefixCls: d,
1670
+ summary: L,
1671
+ data: Ve,
1672
+ columns: ne,
1673
+ stickyOffsets: ke,
1674
+ stickyClassNames: Fe
1675
+ }
1676
+ ), Xt = /* @__PURE__ */ o(
1677
+ $o,
1678
+ {
1679
+ ...N,
1680
+ saveRef: (e) => ue.current = e,
1681
+ selectedRowKeys: $t,
1682
+ indeterminateKeys: gn,
1683
+ expandedRowKeys: Vt,
1684
+ onCheck: Cn,
1685
+ onCheckRadio: wn,
1686
+ onClickExpandBtn: vn,
1687
+ columns: ne,
1688
+ data: Ve,
1689
+ prefixCls: d,
1690
+ hasFixedColumn: lt,
1691
+ tableViewWidth: z,
1692
+ indentSize: K,
1693
+ noDataElement: _ || r("Table"),
1694
+ activeSorters: oe,
1695
+ currentSorter: de,
1696
+ stickyOffsets: ke,
1697
+ stickyClassNames: Fe,
1698
+ getRowKey: wt,
1699
+ saveVirtualListRef: (e) => {
1700
+ x && (xe.current = e, Q.current = e?.dom);
1701
+ },
1702
+ ___dangerouslySetInnerHTML___: N.___dangerouslySetInnerHTML___
1703
+ }
1704
+ ), qt = !x && !hn ? /* @__PURE__ */ le(gt, { children: [
1705
+ Xt,
1706
+ Yt
1707
+ ] }) : Xt;
1708
+ if (et(() => {
1709
+ const e = Q.current || ue.current, n = Yn([e], Tn);
1710
+ return () => {
1711
+ n();
1712
+ };
1713
+ }, [Q.current, ue.current]), et(() => (N.consoleTable && console.table(u), () => {
1714
+ }), [u, N.consoleTable]), !g.length) return null;
1715
+ function Pn() {
1716
+ const e = we(m) && m.x === "max-content" && !!m.y && Ue(u) && u.length > 0;
1717
+ return ve && !x ? /* @__PURE__ */ o(
1718
+ cn,
1719
+ {
1720
+ ref: Q,
1721
+ className: G(`${d}-content-body`, `${d}-body`),
1722
+ style: jt,
1723
+ children: /* @__PURE__ */ le(ot, { style: Nt, children: [
1724
+ /* @__PURE__ */ o(
1725
+ ht,
1726
+ {
1727
+ columns: ne,
1728
+ prefixCls: d,
1729
+ producer: e,
1730
+ onSetColumnWidths: ye,
1731
+ expandedRowKeys: Vt,
1732
+ data: u
1733
+ }
1734
+ ),
1735
+ qt
1736
+ ] })
1737
+ }
1738
+ ) : qt;
1739
+ }
1740
+ function Fn() {
1741
+ let e = {};
1742
+ $ && (e = {
1743
+ width: m.x
1744
+ });
1745
+ const n = /* @__PURE__ */ o("div", { className: `${d}-tfoot`, ref: V, children: /* @__PURE__ */ le(ot, { style: e, children: [
1746
+ /* @__PURE__ */ o(ht, { columns: ne, prefixCls: d }),
1747
+ Yt
1748
+ ] }) }), s = Je && ve && St === "top", k = Je && ve && St === "bottom", B = /* @__PURE__ */ le(gt, { children: [
1749
+ A ? En() : null,
1750
+ s && n,
1751
+ Pn(),
1752
+ k && n
1753
+ ] }), j = Be(Y) && Y(Ve), M = Be(l) && l(Ve);
1754
+ return /* @__PURE__ */ le(gt, { children: [
1755
+ !!j && /* @__PURE__ */ o("div", { className: `${d}-header-`, children: j }),
1756
+ /* @__PURE__ */ o("div", { ref: fe, className: `${d}-container`, children: /* @__PURE__ */ o(
1757
+ "div",
1758
+ {
1759
+ ref: ae,
1760
+ className: `${d}-content-scroll`,
1761
+ children: /* @__PURE__ */ o(
1762
+ "div",
1763
+ {
1764
+ ref: me,
1765
+ className: `${d}-content-inner`,
1766
+ onScroll: ve ? void 0 : kn,
1767
+ children: ve || x ? B : /* @__PURE__ */ le(ot, { ref: Ce, style: e, children: [
1768
+ /* @__PURE__ */ o(ht, { prefixCls: d, columns: ne }),
1769
+ B
1770
+ ] })
1771
+ }
1772
+ )
1773
+ }
1774
+ ) }),
1775
+ !!M && /* @__PURE__ */ o("div", { className: `${d}-footer`, children: M })
1776
+ ] });
1777
+ }
1778
+ const In = we(v) ? v.wrapper : v, Rt = we(v) ? v.cell : O, On = we(v) ? v.cell || v.headerCell : O, Dn = we(v) ? v.cell || v.bodyCell : O, Kn = G(
1779
+ d,
1780
+ `${d}-size-${te}`,
1781
+ {
1782
+ [`${d}-border`]: In,
1783
+ [`${d}-border-cell`]: Rt,
1784
+ [`${d}-border-header-cell`]: !Rt && On,
1785
+ [`${d}-border-body-cell`]: !Rt && Dn,
1786
+ [`${d}-stripe`]: F,
1787
+ [`${d}-hover`]: ee,
1788
+ [`${d}-type-radio`]: W && W.type === "radio",
1789
+ [`${d}-layout-fixed`]: H || m && (m.x || m.y) || g.find((e) => e.ellipsis),
1790
+ [`${d}-fixed-column`]: lt,
1791
+ [`${d}-virtualized`]: x,
1792
+ [`${d}-rtl`]: c
1793
+ },
1794
+ y
1795
+ ), kt = I === "tl" || I === "tr" || I === "topCenter", _n = G(`${d}-pagination`, {
1796
+ [`${d}-pagination-left`]: I === "tl" || I === "bl",
1797
+ [`${d}-pagination-center`]: I === "topCenter" || I === "bottomCenter",
1798
+ [`${d}-pagination-top`]: kt
1799
+ });
1800
+ let pt = N.loading;
1801
+ typeof pt == "boolean" && (pt = { loading: pt });
1802
+ const Bn = X !== !1 && (Me.length !== 0 || ct?.total > 0);
1803
+ let ut;
1804
+ return Bn && (Be(b) ? ut = b(/* @__PURE__ */ o(Jt, { ...ct })) : ut = /* @__PURE__ */ o("div", { className: _n, children: /* @__PURE__ */ o(Jt, { ...ct }) })), /* @__PURE__ */ o(_t.Provider, { value: N, children: /* @__PURE__ */ o(
1805
+ "div",
1806
+ {
1807
+ ref: q,
1808
+ style: p,
1809
+ className: Kn,
1810
+ ...Un(N),
1811
+ children: /* @__PURE__ */ le(
1812
+ Vn,
1813
+ {
1814
+ className: `${d}-spin`,
1815
+ element: w,
1816
+ ...pt,
1817
+ children: [
1818
+ kt && ut,
1819
+ Fn(),
1820
+ !kt && ut
1821
+ ]
1822
+ }
1823
+ )
1824
+ }
1825
+ ) });
1826
+ }
1827
+ const Do = Kt(Oo);
1828
+ Do.displayName = "Table";
1829
+ export {
1830
+ No as S,
1831
+ Do as T,
1832
+ Le as a,
1833
+ uo as b,
1834
+ mo as c,
1835
+ ho as d,
1836
+ yo as e,
1837
+ go as f,
1838
+ po as u
1839
+ };