@rhino-design/vue 0.2.2 → 0.2.6

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 (462) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/_virtual/alignment-pattern.js +4 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.js +4 -0
  6. package/dist/_virtual/dijkstra.js +4 -0
  7. package/dist/_virtual/error-correction-code.js +4 -0
  8. package/dist/_virtual/error-correction-level.js +4 -0
  9. package/dist/_virtual/finder-pattern.js +4 -0
  10. package/dist/_virtual/format-info.js +4 -0
  11. package/dist/_virtual/galois-field.js +4 -0
  12. package/dist/_virtual/mask-pattern.js +4 -0
  13. package/dist/_virtual/mode.js +4 -0
  14. package/dist/_virtual/polynomial.js +4 -0
  15. package/dist/_virtual/qrcode.js +4 -0
  16. package/dist/_virtual/regex.js +4 -0
  17. package/dist/_virtual/segments.js +4 -0
  18. package/dist/_virtual/svg-tag.js +4 -0
  19. package/dist/_virtual/utils.js +4 -0
  20. package/dist/_virtual/utils2.js +4 -0
  21. package/dist/_virtual/version-check.js +4 -0
  22. package/dist/_virtual/version.js +4 -0
  23. package/dist/arco.less +14834 -0
  24. package/dist/components/XAffix.vue.js +7 -0
  25. package/dist/components/XAffix.vue2.js +181 -0
  26. package/dist/components/XAlert.vue.js +106 -0
  27. package/dist/components/XAlert.vue2.js +4 -0
  28. package/dist/components/XAnchor.vue.js +9 -0
  29. package/dist/components/XAnchor.vue2.js +204 -0
  30. package/dist/components/XAnchorLink.vue.js +7 -0
  31. package/dist/components/XAnchorLink.vue2.js +44 -0
  32. package/dist/components/XApp.vue.js +12 -0
  33. package/dist/components/XAutoComplete.vue.js +399 -0
  34. package/dist/components/XAutoComplete.vue2.js +4 -0
  35. package/dist/components/XAvatar.vue.js +166 -0
  36. package/dist/components/XAvatar.vue2.js +4 -0
  37. package/dist/components/XAvatarGroup.vue.js +27 -0
  38. package/dist/components/XAvatarGroup.vue2.js +4 -0
  39. package/dist/components/XBackTop.vue.js +118 -0
  40. package/dist/components/XBackTop.vue2.js +4 -0
  41. package/dist/components/XBadge.vue.js +64 -0
  42. package/dist/components/XBadge.vue2.js +4 -0
  43. package/dist/components/XBaseMenu.vue.js +37 -0
  44. package/dist/components/XBaseMenu.vue2.js +334 -0
  45. package/dist/components/XBreadcrumb.vue.d.ts +12 -7
  46. package/dist/components/XBreadcrumb.vue.js +97 -0
  47. package/dist/components/XBreadcrumb.vue2.js +4 -0
  48. package/dist/components/XBreadcrumbItem.vue.d.ts +7 -4
  49. package/dist/components/XBreadcrumbItem.vue.js +136 -0
  50. package/dist/components/XBreadcrumbItem.vue2.js +4 -0
  51. package/dist/components/XButton.vue.js +7 -0
  52. package/dist/components/XButton.vue2.js +142 -0
  53. package/dist/components/XButtonG.vue.js +7 -0
  54. package/dist/components/XButtonG.vue2.js +67 -0
  55. package/dist/components/XButtonGroup.vue.js +39 -0
  56. package/dist/components/XButtonGroup.vue3.js +5 -0
  57. package/dist/components/XCalendar.vue.js +309 -0
  58. package/dist/components/XCalendar.vue2.js +4 -0
  59. package/dist/components/XCard.vue.js +80 -0
  60. package/dist/components/XCard.vue2.js +4 -0
  61. package/dist/components/XCarousel.vue.js +7 -0
  62. package/dist/components/XCarousel.vue2.js +150 -0
  63. package/dist/components/XCarouselItem.vue.js +7 -0
  64. package/dist/components/XCarouselItem.vue2.js +112 -0
  65. package/dist/components/XCascader.vue.js +1015 -0
  66. package/dist/components/XCascader.vue2.js +4 -0
  67. package/dist/components/XCascaderPanel.vue.js +466 -0
  68. package/dist/components/XCascaderPanel.vue2.js +4 -0
  69. package/dist/components/XChatInput.vue.js +7 -0
  70. package/dist/components/XChatInput.vue2.js +454 -0
  71. package/dist/components/XCheckbox.vue.js +154 -0
  72. package/dist/components/XCheckbox.vue2.js +4 -0
  73. package/dist/components/XCheckboxGroup.vue.js +87 -0
  74. package/dist/components/XCheckboxGroup.vue2.js +4 -0
  75. package/dist/components/XCollapse.vue.js +54 -0
  76. package/dist/components/XCollapse.vue2.js +4 -0
  77. package/dist/components/XCollapseItem.vue.js +152 -0
  78. package/dist/components/XCollapseItem.vue2.js +4 -0
  79. package/dist/components/XColorGroup.vue.js +7 -0
  80. package/dist/components/XColorGroup.vue2.js +306 -0
  81. package/dist/components/XColorPicker.vue.js +62 -0
  82. package/dist/components/XColorPicker.vue2.js +4 -0
  83. package/dist/components/XComment.vue.js +129 -0
  84. package/dist/components/XComment.vue2.js +4 -0
  85. package/dist/components/XCompact.vue.js +17 -0
  86. package/dist/components/XCompact.vue2.js +4 -0
  87. package/dist/components/XConfigProvider.vue.js +78 -0
  88. package/dist/components/XConfigProvider.vue2.js +4 -0
  89. package/dist/components/XCountdown.vue.js +7 -0
  90. package/dist/components/XCountdown.vue2.js +104 -0
  91. package/dist/components/XCropper.vue.js +7 -0
  92. package/dist/components/XCropper.vue2.js +525 -0
  93. package/dist/components/XDatePicker.vue.js +1798 -0
  94. package/dist/components/XDatePicker.vue2.js +4 -0
  95. package/dist/components/XDescriptions.vue.js +260 -0
  96. package/dist/components/XDescriptions.vue2.js +4 -0
  97. package/dist/components/XDescriptionsItem.vue.js +21 -0
  98. package/dist/components/XDescriptionsItem.vue2.js +4 -0
  99. package/dist/components/XDgroup.vue.js +21 -0
  100. package/dist/components/XDgroup.vue2.js +4 -0
  101. package/dist/components/XDivider.vue.js +54 -0
  102. package/dist/components/XDivider.vue2.js +4 -0
  103. package/dist/components/XDoption.vue.js +59 -0
  104. package/dist/components/XDoption.vue2.js +4 -0
  105. package/dist/components/XDrawer.vue.js +7 -0
  106. package/dist/components/XDrawer.vue2.js +320 -0
  107. package/dist/components/XDrawerService.d.ts +2 -0
  108. package/dist/components/XDrawerService.js +97 -0
  109. package/dist/components/XDropdown.vue.d.ts +8 -7
  110. package/dist/components/XDropdown.vue.js +127 -0
  111. package/dist/components/XDropdown.vue2.js +4 -0
  112. package/dist/components/XDropdownButton.vue.js +84 -0
  113. package/dist/components/XDropdownButton.vue2.js +4 -0
  114. package/dist/components/XDropdownItem.vue.js +47 -0
  115. package/dist/components/XDropdownItem.vue2.js +4 -0
  116. package/dist/components/XDropdownPanel.vue.js +58 -0
  117. package/dist/components/XDropdownPanel.vue2.js +4 -0
  118. package/dist/components/XDsubmenu.vue.js +82 -0
  119. package/dist/components/XDsubmenu.vue2.js +4 -0
  120. package/dist/components/XEmpty.vue.js +54 -0
  121. package/dist/components/XEmpty.vue2.js +4 -0
  122. package/dist/components/XFlex.vue.js +7 -0
  123. package/dist/components/XFlex.vue2.js +122 -0
  124. package/dist/components/XFloatButton.vue.js +28 -0
  125. package/dist/components/XFloatButton.vue2.js +4 -0
  126. package/dist/components/XFloatButtonGroup.vue.js +17 -0
  127. package/dist/components/XFloatButtonGroup.vue2.js +4 -0
  128. package/dist/components/XForm.vue.js +156 -0
  129. package/dist/components/XForm.vue2.js +4 -0
  130. package/dist/components/XFormItem.vue.js +425 -0
  131. package/dist/components/XFormItem.vue2.js +4 -0
  132. package/dist/components/XGrid.vue.js +7 -0
  133. package/dist/components/XGrid.vue2.js +88 -0
  134. package/dist/components/XGridItem.vue.js +8 -0
  135. package/dist/components/XGridItem.vue2.js +112 -0
  136. package/dist/components/XGridLayout.vue.js +7 -0
  137. package/dist/components/XGridLayout.vue2.js +66 -0
  138. package/dist/components/XGridLayoutItem.vue.js +7 -0
  139. package/dist/components/XGridLayoutItem.vue2.js +56 -0
  140. package/dist/components/XIcon.js +5 -0
  141. package/dist/components/XIconLite.js +8 -0
  142. package/dist/components/XImage.vue.js +7 -0
  143. package/dist/components/XImage.vue2.js +241 -0
  144. package/dist/components/XImageGroup.vue.js +7 -0
  145. package/dist/components/XImageGroup.vue2.js +22 -0
  146. package/dist/components/XInput.vue.js +7 -0
  147. package/dist/components/XInput.vue2.js +537 -0
  148. package/dist/components/XInputComposite.vue.js +7 -0
  149. package/dist/components/XInputComposite.vue2.js +176 -0
  150. package/dist/components/XInputGroup.vue.js +19 -0
  151. package/dist/components/XInputGroup.vue3.js +5 -0
  152. package/dist/components/XInputNumber.vue.js +7 -0
  153. package/dist/components/XInputNumber.vue2.js +344 -0
  154. package/dist/components/XInputPassword.vue.js +7 -0
  155. package/dist/components/XInputPassword.vue2.js +125 -0
  156. package/dist/components/XInputSearch.vue.js +7 -0
  157. package/dist/components/XInputSearch.vue2.js +154 -0
  158. package/dist/components/XInputTag.vue.js +367 -0
  159. package/dist/components/XInputTag.vue2.js +4 -0
  160. package/dist/components/XLayout.vue.js +22 -0
  161. package/dist/components/XLayout.vue2.js +4 -0
  162. package/dist/components/XLayoutContent.vue.js +13 -0
  163. package/dist/components/XLayoutContent.vue2.js +4 -0
  164. package/dist/components/XLayoutFooter.vue.js +22 -0
  165. package/dist/components/XLayoutFooter.vue2.js +4 -0
  166. package/dist/components/XLayoutHeader.vue.js +128 -0
  167. package/dist/components/XLayoutHeader.vue2.js +4 -0
  168. package/dist/components/XLayoutSider.vue.js +108 -0
  169. package/dist/components/XLayoutSider.vue2.js +4 -0
  170. package/dist/components/XLink.vue.js +21 -0
  171. package/dist/components/XLink.vue2.js +4 -0
  172. package/dist/components/XList.vue.js +295 -0
  173. package/dist/components/XList.vue2.js +4 -0
  174. package/dist/components/XListItem.vue.js +53 -0
  175. package/dist/components/XListItem.vue2.js +4 -0
  176. package/dist/components/XListItemMeta.vue.js +43 -0
  177. package/dist/components/XListItemMeta.vue2.js +4 -0
  178. package/dist/components/XMention.vue.js +456 -0
  179. package/dist/components/XMention.vue2.js +4 -0
  180. package/dist/components/XMentions.vue.js +16 -0
  181. package/dist/components/XMentions.vue2.js +4 -0
  182. package/dist/components/XMenu.vue.js +57 -0
  183. package/dist/components/XMenu.vue2.js +123 -0
  184. package/dist/components/XMenuIndent.vue.js +19 -0
  185. package/dist/components/XMenuIndent.vue2.js +21 -0
  186. package/dist/components/XMenuItem.vue.js +71 -0
  187. package/dist/components/XMenuItem.vue2.js +92 -0
  188. package/dist/components/XMenuItemGroup.vue.js +27 -0
  189. package/dist/components/XMenuItemGroup.vue2.js +26 -0
  190. package/dist/components/XMenuOverflowWrap.vue.js +116 -0
  191. package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
  192. package/dist/components/XMessage.vue.js +7 -0
  193. package/dist/components/XMessage.vue2.js +89 -0
  194. package/dist/components/XMessageList.js +61 -0
  195. package/dist/components/XMessageService.js +118 -0
  196. package/dist/components/XModal.vue.js +7 -0
  197. package/dist/components/XModal.vue2.js +364 -0
  198. package/dist/components/XModalService.js +157 -0
  199. package/dist/components/XNotification.vue.js +7 -0
  200. package/dist/components/XNotification.vue2.js +107 -0
  201. package/dist/components/XNotificationList.js +70 -0
  202. package/dist/components/XNotificationService.js +119 -0
  203. package/dist/components/XOptgroup.vue.js +14 -0
  204. package/dist/components/XOptgroup.vue2.js +4 -0
  205. package/dist/components/XOption.vue.js +21 -0
  206. package/dist/components/XOption.vue2.js +4 -0
  207. package/dist/components/XOverflowList.vue.js +149 -0
  208. package/dist/components/XOverflowList.vue2.js +4 -0
  209. package/dist/components/XPageHeader.vue.js +84 -0
  210. package/dist/components/XPageHeader.vue2.js +4 -0
  211. package/dist/components/XPagination.vue.js +121 -0
  212. package/dist/components/XPagination.vue2.js +4 -0
  213. package/dist/components/XPopconfirm.vue.js +90 -0
  214. package/dist/components/XPopconfirm.vue2.js +4 -0
  215. package/dist/components/XPopover.vue.js +53 -0
  216. package/dist/components/XPopover.vue2.js +4 -0
  217. package/dist/components/XProgress.vue.js +263 -0
  218. package/dist/components/XProgress.vue2.js +4 -0
  219. package/dist/components/XQRCode.vue.js +141 -0
  220. package/dist/components/XQRCode.vue2.js +4 -0
  221. package/dist/components/XRadio.vue.js +138 -0
  222. package/dist/components/XRadio.vue2.js +4 -0
  223. package/dist/components/XRadioButton.vue.js +41 -0
  224. package/dist/components/XRadioButton.vue2.js +4 -0
  225. package/dist/components/XRadioGroup.vue.js +168 -0
  226. package/dist/components/XRadioGroup.vue2.js +4 -0
  227. package/dist/components/XRate.vue.js +145 -0
  228. package/dist/components/XRate.vue2.js +4 -0
  229. package/dist/components/XResizeBox.vue.js +184 -0
  230. package/dist/components/XResizeBox.vue2.js +4 -0
  231. package/dist/components/XResult.vue.js +78 -0
  232. package/dist/components/XResult.vue2.js +4 -0
  233. package/dist/components/XRichTextEditor.vue.js +7 -0
  234. package/dist/components/XRichTextEditor.vue2.js +742 -0
  235. package/dist/components/XScrollbar.vue.d.ts +192 -0
  236. package/dist/components/XScrollbar.vue.js +190 -0
  237. package/dist/components/XScrollbar.vue2.js +4 -0
  238. package/dist/components/XScrollbarThumb.vue.d.ts +2 -6
  239. package/dist/components/XScrollbarThumb.vue.js +97 -0
  240. package/dist/components/XScrollbarThumb.vue2.js +4 -0
  241. package/dist/components/XSegmented.vue.js +7 -0
  242. package/dist/components/XSegmented.vue2.js +71 -0
  243. package/dist/components/XSelect.vue.js +858 -0
  244. package/dist/components/XSelect.vue2.js +4 -0
  245. package/dist/components/XSkeleton.vue.js +37 -0
  246. package/dist/components/XSkeleton.vue2.js +59 -0
  247. package/dist/components/XSkeletonLine.vue.js +36 -0
  248. package/dist/components/XSkeletonLine.vue2.js +4 -0
  249. package/dist/components/XSkeletonShape.vue.js +21 -0
  250. package/dist/components/XSkeletonShape.vue2.js +4 -0
  251. package/dist/components/XSlider.vue.js +402 -0
  252. package/dist/components/XSlider.vue2.js +4 -0
  253. package/dist/components/XSpace.vue.js +125 -0
  254. package/dist/components/XSpace.vue2.js +4 -0
  255. package/dist/components/XSpin.vue.js +54 -0
  256. package/dist/components/XSpin.vue2.js +4 -0
  257. package/dist/components/XSplit.vue.js +7 -0
  258. package/dist/components/XSplit.vue2.js +126 -0
  259. package/dist/components/XStatistic.vue.js +7 -0
  260. package/dist/components/XStatistic.vue2.js +176 -0
  261. package/dist/components/XStep.vue.js +91 -0
  262. package/dist/components/XStep.vue2.js +4 -0
  263. package/dist/components/XSteps.vue.js +73 -0
  264. package/dist/components/XSteps.vue2.js +4 -0
  265. package/dist/components/XSubMenu.vue.js +109 -0
  266. package/dist/components/XSubMenu.vue2.js +69 -0
  267. package/dist/components/XSubMenuInline.vue.js +74 -0
  268. package/dist/components/XSubMenuInline.vue2.js +56 -0
  269. package/dist/components/XSubMenuPop.vue.js +91 -0
  270. package/dist/components/XSubMenuPop.vue2.js +113 -0
  271. package/dist/components/XSwitch.vue.js +133 -0
  272. package/dist/components/XSwitch.vue2.js +4 -0
  273. package/dist/components/XTabPane.vue.js +59 -0
  274. package/dist/components/XTabPane.vue2.js +4 -0
  275. package/dist/components/XTable.vue.js +7 -0
  276. package/dist/components/XTable.vue2.js +1059 -0
  277. package/dist/components/XTableFilter.vue.js +7 -0
  278. package/dist/components/XTableFilter.vue2.js +141 -0
  279. package/dist/components/XTabs.vue.js +402 -0
  280. package/dist/components/XTabs.vue2.js +4 -0
  281. package/dist/components/XTag.vue.js +126 -0
  282. package/dist/components/XTag.vue2.js +4 -0
  283. package/dist/components/XTextarea.vue.js +261 -0
  284. package/dist/components/XTextarea.vue2.js +4 -0
  285. package/dist/components/XTimePicker.vue.js +827 -0
  286. package/dist/components/XTimePicker.vue2.js +4 -0
  287. package/dist/components/XTimeline.vue.js +84 -0
  288. package/dist/components/XTimeline.vue2.js +4 -0
  289. package/dist/components/XTimelineItem.vue.js +202 -0
  290. package/dist/components/XTimelineItem.vue2.js +4 -0
  291. package/dist/components/XTooltip.vue.js +78 -0
  292. package/dist/components/XTooltip.vue2.js +4 -0
  293. package/dist/components/XTour.vue.js +120 -0
  294. package/dist/components/XTour.vue2.js +4 -0
  295. package/dist/components/XTr.vue.js +12 -0
  296. package/dist/components/XTransfer.vue.js +128 -0
  297. package/dist/components/XTransfer.vue2.js +4 -0
  298. package/dist/components/XTree.vue.js +7 -0
  299. package/dist/components/XTree.vue2.js +601 -0
  300. package/dist/components/XTreeNode.vue.js +7 -0
  301. package/dist/components/XTreeNode.vue2.js +314 -0
  302. package/dist/components/XTreeSelect.vue.js +7 -0
  303. package/dist/components/XTreeSelect.vue2.js +715 -0
  304. package/dist/components/XTrigger.vue.js +492 -0
  305. package/dist/components/XTrigger.vue2.js +4 -0
  306. package/dist/components/XTypography.vue.js +51 -0
  307. package/dist/components/XTypography.vue2.js +126 -0
  308. package/dist/components/XTypographyParagraph.vue.js +83 -0
  309. package/dist/components/XTypographyParagraph.vue2.js +4 -0
  310. package/dist/components/XTypographyText.vue.js +76 -0
  311. package/dist/components/XTypographyText.vue2.js +4 -0
  312. package/dist/components/XTypographyTitle.vue.js +77 -0
  313. package/dist/components/XTypographyTitle.vue2.js +4 -0
  314. package/dist/components/XUpload.vue.js +7 -0
  315. package/dist/components/XUpload.vue2.js +1060 -0
  316. package/dist/components/XVerificationCode.vue.js +149 -0
  317. package/dist/components/XVerificationCode.vue2.js +4 -0
  318. package/dist/components/XWatermark.vue.js +204 -0
  319. package/dist/components/XWatermark.vue2.js +4 -0
  320. package/dist/components/index.d.ts +10 -6
  321. package/dist/components/index.js +308 -0
  322. package/dist/components/result-assets/result-403.svg.js +4 -0
  323. package/dist/components/result-assets/result-404.svg.js +4 -0
  324. package/dist/components/result-assets/result-500.svg.js +4 -0
  325. package/dist/components/statistic-utils.js +81 -0
  326. package/dist/components/timelineContext.js +4 -0
  327. package/dist/components/x-breadcrumb-context.js +4 -0
  328. package/dist/components/x-checkbox-context.js +4 -0
  329. package/dist/components/x-dropdown-context.js +4 -0
  330. package/dist/components/x-icon-shared.js +151 -0
  331. package/dist/components/x-radio-context.js +4 -0
  332. package/dist/components/x-scrollbar-types.d.ts +5 -0
  333. package/dist/composables/collapse.js +9 -0
  334. package/dist/composables/config-provider.js +48 -0
  335. package/dist/composables/config.js +39 -0
  336. package/dist/composables/form.js +397 -0
  337. package/dist/composables/i18n.js +257 -0
  338. package/dist/composables/menu-context.js +6 -0
  339. package/dist/composables/menu-hooks/use-level.js +25 -0
  340. package/dist/composables/menu-hooks/use-menu-context.js +8 -0
  341. package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
  342. package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
  343. package/dist/composables/menu-hooks/use-menu.js +19 -0
  344. package/dist/composables/popup.js +177 -0
  345. package/dist/composables/scrollbar-visibility.js +96 -0
  346. package/dist/composables/steps.js +9 -0
  347. package/dist/composables/tabs.js +10 -0
  348. package/dist/composables/theme-context.js +24 -0
  349. package/dist/composables/theme.js +53 -0
  350. package/dist/composables/useMergeState.js +27 -0
  351. package/dist/composables/useResponsive.js +36 -0
  352. package/dist/iconfont/generated/icons/guanbi.js +7 -0
  353. package/dist/iconfont/generated/icons/shijian.js +7 -0
  354. package/dist/iconfont/internal-icons.js +71 -0
  355. package/dist/index.cjs +1 -2
  356. package/dist/index.css +14834 -0
  357. package/dist/index.js +382 -31255
  358. package/dist/index.less +14834 -0
  359. package/dist/install.js +39 -0
  360. package/dist/locales/ar-EG.js +5 -0
  361. package/dist/locales/da-DK.js +5 -0
  362. package/dist/locales/de-DE.js +5 -0
  363. package/dist/locales/en-US.js +312 -0
  364. package/dist/locales/es-ES.js +5 -0
  365. package/dist/locales/fr-FR.js +5 -0
  366. package/dist/locales/id-ID.js +5 -0
  367. package/dist/locales/it-IT.js +5 -0
  368. package/dist/locales/ja-JP.js +5 -0
  369. package/dist/locales/km-KH.js +5 -0
  370. package/dist/locales/ko-KR.js +5 -0
  371. package/dist/locales/ms-MY.js +5 -0
  372. package/dist/locales/nl-NL.js +5 -0
  373. package/dist/locales/pt-PT.js +5 -0
  374. package/dist/locales/ru-RU.js +5 -0
  375. package/dist/locales/th-TH.js +5 -0
  376. package/dist/locales/vi-VN.js +5 -0
  377. package/dist/locales/zh-CN.js +312 -0
  378. package/dist/locales/zh-TW.js +5 -0
  379. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  380. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  381. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  382. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  383. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  384. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  385. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  386. package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
  387. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  388. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  389. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  390. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  391. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  392. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  393. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  394. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  395. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  396. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  397. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  398. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  399. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  400. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  401. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  402. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  403. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  404. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  405. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  406. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  407. package/dist/style.css +14834 -1
  408. package/dist/style.less +14834 -0
  409. package/package.json +10 -40
  410. package/dist/components/XRangePicker.vue.d.ts +0 -45
  411. package/dist/components/__tests__/XAffix.test.d.ts +0 -1
  412. package/dist/components/__tests__/XAutoComplete.test.d.ts +0 -1
  413. package/dist/components/__tests__/XBackTop.test.d.ts +0 -1
  414. package/dist/components/__tests__/XBreadcrumb.test.d.ts +0 -1
  415. package/dist/components/__tests__/XButton.test.d.ts +0 -1
  416. package/dist/components/__tests__/XCard.test.d.ts +0 -1
  417. package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
  418. package/dist/components/__tests__/XCascader.test.d.ts +0 -1
  419. package/dist/components/__tests__/XCheckbox.test.d.ts +0 -1
  420. package/dist/components/__tests__/XCollapse.test.d.ts +0 -1
  421. package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +0 -1
  422. package/dist/components/__tests__/XCropper.test.d.ts +0 -1
  423. package/dist/components/__tests__/XDropdown.test.d.ts +0 -1
  424. package/dist/components/__tests__/XImage.test.d.ts +0 -1
  425. package/dist/components/__tests__/XMention.test.d.ts +0 -1
  426. package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
  427. package/dist/components/__tests__/XOverflowList.test.d.ts +0 -1
  428. package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +0 -1
  429. package/dist/components/__tests__/XPageHeader.test.d.ts +0 -1
  430. package/dist/components/__tests__/XRadioGroup.test.d.ts +0 -1
  431. package/dist/components/__tests__/XResizeBox.test.d.ts +0 -1
  432. package/dist/components/__tests__/XSkeleton.test.d.ts +0 -1
  433. package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
  434. package/dist/components/__tests__/XSteps.test.d.ts +0 -1
  435. package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
  436. package/dist/components/__tests__/XTable.test.d.ts +0 -1
  437. package/dist/components/__tests__/XTabs.test.d.ts +0 -1
  438. package/dist/components/__tests__/XTag.test.d.ts +0 -1
  439. package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +0 -1
  440. package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +0 -1
  441. package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
  442. package/dist/components/__tests__/XTour.test.d.ts +0 -1
  443. package/dist/components/__tests__/XTree.test.d.ts +0 -1
  444. package/dist/components/__tests__/XTreeSelect.test.d.ts +0 -1
  445. package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
  446. package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +0 -1
  447. package/dist/components/__tests__/XWatermark.test.d.ts +0 -1
  448. package/dist/favicon.ico +0 -1
  449. package/dist/favicon.svg +0 -5
  450. package/dist/images/carousel-0.png +0 -0
  451. package/dist/images/carousel-2.png +0 -0
  452. package/dist/images/carousel-3.png +0 -0
  453. package/dist/images/image-1.png +0 -0
  454. package/dist/img/avatar-1.jpg +0 -0
  455. package/dist/img/avatar.jpg +0 -0
  456. package/dist/img/avatar0.jpg +0 -0
  457. package/dist/img/avatar1.jpg +0 -0
  458. package/dist/img/image-1.png +0 -0
  459. package/dist/img/image-2.png +0 -0
  460. package/dist/img/image-3.png +0 -0
  461. package/dist/index.cjs.map +0 -1
  462. package/dist/index.js.map +0 -1
@@ -0,0 +1,1059 @@
1
+ import { defineComponent as Lt, computed as y, ref as $, watch as se, onMounted as Mt, nextTick as Pt, openBlock as u, createElementBlock as c, normalizeClass as L, createElementVNode as w, normalizeStyle as m, Fragment as S, renderList as F, createCommentVNode as g, renderSlot as k, createTextVNode as M, toDisplayString as C, withModifiers as oe, createBlock as G, mergeProps as zt, withCtx as Et, unref as we, resolveDynamicComponent as Kt, createVNode as Nt } from "vue";
2
+ import _t from "./XPagination.vue.js";
3
+ import Bt from "./XEmpty.vue.js";
4
+ import Ht from "./XTooltip.vue.js";
5
+ import Je from "./XTableFilter.vue.js";
6
+ import { useXConfig as At } from "../composables/config.js";
7
+ import { useXConfigProviderSlotRender as Ft } from "../composables/config-provider.js";
8
+ import { useXI18n as Ot } from "../composables/i18n.js";
9
+ const jt = ["rowspan"], Vt = ["rowspan"], Wt = ["rowspan"], Xt = ["checked"], It = { key: 1 }, Gt = ["colspan", "rowspan", "onClick"], Jt = ["data-order", "onClick"], Ut = ["onMousedown"], qt = { key: 1 }, Qt = ["checked"], Yt = { key: 1 }, Zt = ["onClick"], el = ["data-order", "onClick"], tl = ["onMousedown"], ll = { key: 1 }, al = ["colspan"], nl = ["draggable", "onClick", "onDragstart", "onDragover", "onDrop"], rl = ["onClick"], il = {
10
+ key: 0,
11
+ class: "x-table__loading-icon"
12
+ }, sl = { key: 1 }, ol = ["type", "checked", "disabled", "onChange"], ul = ["onClick"], dl = { class: "x-table__cell-content is-ellipsis" }, cl = {
13
+ key: 0,
14
+ class: "x-table__expanded-row"
15
+ }, fl = ["colspan"], pl = ["colspan"], yl = { key: 2 }, hl = ["colspan"], gl = { key: 3 }, vl = {
16
+ key: 0,
17
+ class: "x-table__drag-col"
18
+ }, kl = {
19
+ key: 1,
20
+ class: "x-table__expand-col"
21
+ }, bl = {
22
+ key: 2,
23
+ class: "x-table__selection-col"
24
+ }, xl = {
25
+ key: 0,
26
+ class: "x-table__loading"
27
+ }, wl = {
28
+ key: 1,
29
+ class: "x-table__pagination"
30
+ }, Ml = /* @__PURE__ */ Lt({
31
+ __name: "XTable",
32
+ props: {
33
+ columns: {},
34
+ data: {},
35
+ loading: { type: Boolean, default: !1 },
36
+ pagination: { type: [Boolean, Object], default: !1 },
37
+ rowSelection: { default: void 0 },
38
+ expandable: { default: void 0 },
39
+ bordered: { type: [Boolean, Object], default: !1 },
40
+ hoverable: { type: Boolean, default: !0 },
41
+ stripe: { type: Boolean, default: !1 },
42
+ size: { default: void 0 },
43
+ rowKey: { type: [String, Function], default: "key" },
44
+ rowClass: { type: [String, Function], default: "" },
45
+ scroll: { default: void 0 },
46
+ summary: { type: [Boolean, Function], default: void 0 },
47
+ summaryText: { default: "合计" },
48
+ emptyText: { default: "暂无数据" },
49
+ indentSize: { default: 16 },
50
+ childrenColumnName: { default: "children" },
51
+ treeData: { type: Boolean, default: !1 },
52
+ loadMore: { type: Function, default: void 0 },
53
+ autoMergeColumns: { default: void 0 },
54
+ autoMergeRows: { type: [Array, Boolean], default: void 0 },
55
+ spanMethod: { type: Function, default: void 0 },
56
+ stickyHeader: { type: [Boolean, Number], default: !1 },
57
+ stickyOffsetTop: { default: 0 },
58
+ showHeader: { type: Boolean, default: !0 },
59
+ defaultExpandAllRows: { type: Boolean, default: !1 },
60
+ virtualListProps: { default: void 0 },
61
+ draggable: { type: [Boolean, Object], default: !1 },
62
+ filterIconAlignLeft: { type: Boolean, default: !1 }
63
+ },
64
+ emits: ["update:selectedRowKeys", "update:expandedRowKeys", "select", "selectAll", "sort", "filter", "expand", "pageChange", "pageSizeChange", "rowClick", "cellClick", "headerClick", "resizeColumn", "change", "drag"],
65
+ setup(f, { emit: Ue }) {
66
+ var Xe, Ie;
67
+ function O(e) {
68
+ if (!(e == null || e === ""))
69
+ return typeof e == "number" ? `${e}px` : e;
70
+ }
71
+ function ue(e) {
72
+ if (typeof e == "number") return e;
73
+ if (typeof e == "string") {
74
+ const l = Number.parseFloat(e);
75
+ if (Number.isFinite(l)) return l;
76
+ }
77
+ return 160;
78
+ }
79
+ function me(e, l) {
80
+ return e === l || e == null && l == null ? !0 : e == null || l == null ? !1 : String(e) === String(l);
81
+ }
82
+ function qe(e, l) {
83
+ const t = e.key == null ? "" : String(e.key).trim();
84
+ if (t) return t;
85
+ const a = e.dataIndex == null ? "" : String(e.dataIndex).trim();
86
+ return a || `col-${l.join("-")}`;
87
+ }
88
+ function J(e, l = []) {
89
+ return e.map((t, a) => {
90
+ var o;
91
+ const r = [...l, a], i = (o = t.children) != null && o.length ? J(t.children, r) : void 0;
92
+ return {
93
+ ...t,
94
+ key: qe(t, r),
95
+ children: i
96
+ };
97
+ });
98
+ }
99
+ const n = f, de = y(() => J(n.columns)), Qe = At(), { t: ce } = Ot(), fe = y(() => n.size ?? Qe.size.value), Ye = y(() => n.summaryText === "合计" ? ce("table.summaryText", void 0, "合计") : n.summaryText), Ze = y(() => n.emptyText === "暂无数据" ? ce("table.emptyText", void 0, "暂无数据") : n.emptyText), Se = Ft(
100
+ "empty",
101
+ y(() => ({ component: "table" }))
102
+ ), b = Ue;
103
+ function et() {
104
+ const e = J(n.columns), l = (a) => {
105
+ var r;
106
+ for (const i of a) {
107
+ if ((r = i.children) != null && r.length) {
108
+ const o = l(i.children);
109
+ if (o) return o;
110
+ }
111
+ if (i.defaultSortOrder)
112
+ return { key: i.key, order: i.defaultSortOrder };
113
+ if (i.sortOrder)
114
+ return { key: i.key, order: i.sortOrder };
115
+ }
116
+ return null;
117
+ }, t = l(e);
118
+ return t || { key: "", order: null };
119
+ }
120
+ function tt() {
121
+ const e = {}, l = J(n.columns), t = (a) => {
122
+ var r;
123
+ for (const i of a)
124
+ (r = i.children) != null && r.length && t(i.children), i.defaultFilteredValue ? e[i.key] = i.defaultFilteredValue.map(String) : i.filteredValue && (e[i.key] = i.filteredValue.map(String));
125
+ };
126
+ return t(l), e;
127
+ }
128
+ const D = $(et()), E = $(tt()), V = $(1), U = $(10), pe = $((Xe = n.rowSelection) != null && Xe.defaultSelectedRowKeys ? [...n.rowSelection.defaultSelectedRowKeys] : []), q = $((Ie = n.expandable) != null && Ie.defaultExpandedRowKeys ? [...n.expandable.defaultExpandedRowKeys] : []), Q = $(null), H = $({}), ye = $(/* @__PURE__ */ new Set()), j = $(), Ce = $(), Y = $(!1), K = $({ isDragging: !1, dragIndex: -1, dropIndex: -1 }), Z = $(0), Re = $(0), $e = $(0);
129
+ se(
130
+ () => n.pagination,
131
+ (e) => {
132
+ e && typeof e == "object" && (V.value = e.current ?? V.value, U.value = e.pageSize ?? U.value);
133
+ },
134
+ { immediate: !0 }
135
+ ), se(
136
+ () => {
137
+ var e;
138
+ return (e = n.rowSelection) == null ? void 0 : e.selectedRowKeys;
139
+ },
140
+ (e) => {
141
+ e !== void 0 && (pe.value = [...e]);
142
+ },
143
+ { immediate: !0 }
144
+ ), se(
145
+ () => {
146
+ var e;
147
+ return (e = n.expandable) == null ? void 0 : e.expandedRowKeys;
148
+ },
149
+ (e) => {
150
+ e !== void 0 && (q.value = [...e]);
151
+ },
152
+ { immediate: !0 }
153
+ ), Mt(() => {
154
+ if (n.virtualListProps && j.value && xe(), n.defaultExpandAllRows && n.treeData) {
155
+ const e = [], l = (t) => {
156
+ t.forEach((a, r) => {
157
+ const i = P(a, r);
158
+ e.push(i);
159
+ const o = a[n.childrenColumnName] || [];
160
+ o.length > 0 && l(o);
161
+ });
162
+ };
163
+ l(n.data), q.value = e;
164
+ }
165
+ });
166
+ function P(e, l) {
167
+ return typeof n.rowKey == "function" ? n.rowKey(e, l) : e[n.rowKey] ?? l;
168
+ }
169
+ function R(e, l) {
170
+ return l.dataIndex ? typeof l.dataIndex == "string" && l.dataIndex.includes(".") ? l.dataIndex.split(".").reduce((t, a) => t == null ? void 0 : t[a], e) : e[l.dataIndex] : "";
171
+ }
172
+ const B = y(() => n.pagination === !1 ? null : n.pagination === !0 ? {} : n.pagination ?? null), N = y(() => {
173
+ var e;
174
+ return ((e = n.rowSelection) == null ? void 0 : e.selectedRowKeys) ?? pe.value;
175
+ }), ee = y(() => {
176
+ var e;
177
+ return ((e = n.expandable) == null ? void 0 : e.expandedRowKeys) ?? q.value;
178
+ }), lt = y(() => {
179
+ var e;
180
+ return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.wrapper) ?? !1;
181
+ }), De = y(() => {
182
+ var e;
183
+ return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.cell) ?? !1;
184
+ }), Te = y(() => {
185
+ var e;
186
+ return typeof n.bordered == "boolean" ? n.bordered : ((e = n.bordered) == null ? void 0 : e.headerCell) ?? !1;
187
+ }), x = y(() => {
188
+ const e = [], l = (t) => {
189
+ t.forEach((a) => {
190
+ a.children && a.children.length > 0 ? l(a.children) : e.push(a);
191
+ });
192
+ };
193
+ return l(de.value), e;
194
+ }), at = y(() => {
195
+ let e = [...n.data];
196
+ return Object.entries(E.value).forEach(([l, t]) => {
197
+ if (t.length > 0) {
198
+ const a = x.value.find((r) => r.key === l);
199
+ a && (e = e.filter((r) => {
200
+ const i = String(R(r, a));
201
+ return t.some((o) => i.includes(String(o)));
202
+ }));
203
+ }
204
+ }), e;
205
+ }), A = y(() => {
206
+ const e = [...at.value], l = x.value.find((a) => a.key === D.value.key);
207
+ if (!l || !D.value.order) return e;
208
+ const t = D.value.order === "ascend" ? 1 : -1;
209
+ return e.sort((a, r) => {
210
+ if (typeof l.sorter == "function")
211
+ return l.sorter(a, r) * t;
212
+ const i = R(a, l), o = R(r, l);
213
+ return i === o ? 0 : (String(i) > String(o) ? 1 : -1) * t;
214
+ });
215
+ });
216
+ function Le(e, l) {
217
+ const t = [];
218
+ return e.forEach((a, r) => {
219
+ const i = P(a, r), o = a[n.childrenColumnName] || [], p = a.isLeaf === !0, d = o.length > 0 || !p && !!n.loadMore, h = ee.value.includes(i), s = l ? l.level + 1 : 0, v = {
220
+ record: a,
221
+ index: r,
222
+ key: i,
223
+ level: s,
224
+ hasChildren: d,
225
+ expanded: h,
226
+ parent: l,
227
+ loading: ye.value.has(i)
228
+ };
229
+ t.push(v), h && o.length > 0 && t.push(...Le(o, v));
230
+ }), t;
231
+ }
232
+ const T = y(() => n.treeData ? Le(A.value) : A.value.map((e, l) => ({
233
+ record: e,
234
+ index: l,
235
+ key: P(e, l),
236
+ level: 0,
237
+ hasChildren: !1,
238
+ expanded: !1
239
+ })));
240
+ se(
241
+ () => T.value.length,
242
+ () => {
243
+ n.virtualListProps && Pt(() => xe());
244
+ }
245
+ );
246
+ const W = y(() => fe.value === "small" ? 40 : fe.value === "large" ? 56 : 48), nt = y(() => n.virtualListProps ? typeof n.virtualListProps.height == "number" ? n.virtualListProps.height : parseInt(n.virtualListProps.height) : 0);
247
+ y(() => T.value.length * W.value);
248
+ const Me = y(() => {
249
+ if (!n.virtualListProps)
250
+ return T.value;
251
+ const e = n.virtualListProps.buffer ?? 5, l = Math.max(0, Z.value - e), t = Math.min(T.value.length, Re.value + e);
252
+ return T.value.slice(l, t).map((a, r) => ({
253
+ ...a,
254
+ _virtualIndex: l + r
255
+ }));
256
+ }), Pe = y(() => {
257
+ if (!n.virtualListProps) return 0;
258
+ const e = n.virtualListProps.buffer ?? 5;
259
+ return Math.max(0, Z.value - e) * W.value;
260
+ }), ze = y(() => {
261
+ if (!n.virtualListProps) return 0;
262
+ const e = n.virtualListProps.buffer ?? 5, l = Math.max(0, Z.value - e);
263
+ return (T.value.length - Me.value.length - l) * W.value;
264
+ }), te = y(() => V.value), X = y(() => U.value), z = y(() => {
265
+ if (n.virtualListProps) return Me.value;
266
+ if (!B.value) return T.value;
267
+ const e = (te.value - 1) * X.value;
268
+ return T.value.slice(e, e + X.value);
269
+ }), le = y(() => {
270
+ let e = x.value.length;
271
+ return n.rowSelection && e++, (n.expandable || n.treeData) && e++, n.draggable && e++, e;
272
+ }), rt = y(() => {
273
+ var e;
274
+ return { minWidth: O((e = n.scroll) == null ? void 0 : e.x) };
275
+ }), it = y(() => {
276
+ var l, t;
277
+ const e = {};
278
+ return (l = n.scroll) != null && l.y && (e.maxHeight = O((t = n.scroll) == null ? void 0 : t.y)), n.virtualListProps && (e.height = O(n.virtualListProps.height), e.overflow = "auto"), e;
279
+ }), he = y(() => x.value.some((e) => e.fixed === "left")), st = y(() => x.value.some((e) => e.fixed === "right")), Ee = y(() => {
280
+ const e = {}, l = {};
281
+ let t = 0;
282
+ he.value && (n.draggable && (t += 40), (n.expandable || n.treeData) && (t += 52), n.rowSelection && (t += 52));
283
+ let a = 0;
284
+ return x.value.forEach((r) => {
285
+ r.fixed === "left" && (e[r.key] = t, t += ue(H.value[r.key] || r.width));
286
+ }), [...x.value].reverse().forEach((r) => {
287
+ r.fixed === "right" && (l[r.key] = a, a += ue(H.value[r.key] || r.width));
288
+ }), { left: e, right: l };
289
+ }), ae = y(() => {
290
+ if (n.virtualListProps) return T.value.map((l) => l.key);
291
+ if (!B.value) return T.value.map((l) => l.key);
292
+ const e = (te.value - 1) * X.value;
293
+ return T.value.slice(e, e + X.value).map((l) => l.key);
294
+ }), ge = y(
295
+ () => !!(n.rowSelection && n.rowSelection.type !== "radio" && ae.value.length && ae.value.every((e) => N.value.includes(e)))
296
+ ), ot = y(
297
+ () => ae.value.some((e) => N.value.includes(e)) && !ge.value
298
+ );
299
+ function ut(e, l) {
300
+ return typeof n.rowClass == "function" ? n.rowClass(e, l) : n.rowClass;
301
+ }
302
+ function ve(e, l = !1) {
303
+ const t = H.value[e.key] || e.width, a = {
304
+ textAlign: e.align || "left",
305
+ width: O(t),
306
+ minWidth: O(e.minWidth || t),
307
+ maxWidth: O(e.maxWidth)
308
+ };
309
+ return e.fixed === "left" && (a.position = "sticky", a.left = `${Ee.value.left[e.key] ?? 0}px`, a.zIndex = l ? "5" : "3"), e.fixed === "right" && (a.position = "sticky", a.right = `${Ee.value.right[e.key] ?? 0}px`, a.zIndex = l ? "5" : "3"), a;
310
+ }
311
+ function _(e, l = !1) {
312
+ if (!he.value && e !== "drag") return;
313
+ let t = 0;
314
+ return e === "drag" && n.draggable ? t = 0 : e === "expand" ? t = n.draggable ? 40 : 0 : e === "selection" && (t = (n.draggable ? 40 : 0) + (n.expandable || n.treeData ? 52 : 0)), {
315
+ position: "sticky",
316
+ left: `${t}px`,
317
+ zIndex: l ? "6" : "4"
318
+ };
319
+ }
320
+ function Ke(e) {
321
+ if (!e.sorter) return;
322
+ const l = D.value.key !== e.key ? "ascend" : D.value.order === "ascend" ? "descend" : D.value.order === "descend" ? null : "ascend";
323
+ D.value = { key: e.key, order: l }, b("sort", e.key, l), b("change", A.value, { type: "sort", sorter: { field: e.key, order: l } });
324
+ }
325
+ function ne(e, l) {
326
+ E.value = {
327
+ ...E.value,
328
+ [l]: e
329
+ }, V.value = 1, b("filter", E.value), b("change", A.value, { type: "filter", filters: E.value });
330
+ }
331
+ function re(e) {
332
+ var t, a, r;
333
+ ((t = n.rowSelection) == null ? void 0 : t.selectedRowKeys) === void 0 && (pe.value = e), b("update:selectedRowKeys", e);
334
+ const l = n.data.filter((i, o) => e.includes(P(i, o)));
335
+ b("select", e, l), (r = (a = n.rowSelection) == null ? void 0 : a.onChange) == null || r.call(a, e, l);
336
+ }
337
+ function ke(e) {
338
+ const l = [];
339
+ return (e[n.childrenColumnName] || []).forEach((a, r) => {
340
+ const i = P(a, r);
341
+ l.push(i), l.push(...ke(a));
342
+ }), l;
343
+ }
344
+ function Ne(e) {
345
+ if (!n.treeData) return;
346
+ const l = (t, a) => {
347
+ for (const r of t) {
348
+ const i = r[n.childrenColumnName] || [];
349
+ if (i.includes(a)) return r;
350
+ const o = l(i, a);
351
+ if (o) return o;
352
+ }
353
+ };
354
+ return l(n.data, e);
355
+ }
356
+ function dt(e, l, t) {
357
+ var i, o, p;
358
+ const a = P(e, l);
359
+ if ((i = n.rowSelection) != null && i.getCheckboxProps && n.rowSelection.getCheckboxProps(e).disabled)
360
+ return;
361
+ if (((o = n.rowSelection) == null ? void 0 : o.type) === "radio") {
362
+ re(t ? [a] : []);
363
+ return;
364
+ }
365
+ const r = ((p = n.rowSelection) == null ? void 0 : p.checkStrictly) !== !1;
366
+ if (n.treeData && r) {
367
+ let d = new Set(N.value);
368
+ t ? (d.add(a), ke(e).forEach((v) => d.add(v))) : (d.delete(a), ke(e).forEach((v) => d.delete(v)));
369
+ let h = Ne(e);
370
+ for (; h; ) {
371
+ const s = P(h, n.data.indexOf(h));
372
+ (h[n.childrenColumnName] || []).every((Ge) => {
373
+ const Tt = P(Ge, n.data.indexOf(Ge));
374
+ return d.has(Tt);
375
+ }) ? d.add(s) : d.delete(s), h = Ne(h);
376
+ }
377
+ re([...d]);
378
+ } else {
379
+ const d = t ? [.../* @__PURE__ */ new Set([...N.value, a])] : N.value.filter((h) => h !== a);
380
+ re(d);
381
+ }
382
+ }
383
+ function _e(e) {
384
+ const l = ae.value, t = e ? [.../* @__PURE__ */ new Set([...N.value, ...l])] : N.value.filter((a) => !l.includes(a));
385
+ re(t), b("selectAll", t, z.value.map((a) => a.record));
386
+ }
387
+ function Be(e) {
388
+ e instanceof HTMLInputElement && (e.indeterminate = ot.value);
389
+ }
390
+ function I(e, l) {
391
+ return ee.value.includes(P(e, l));
392
+ }
393
+ function He(e) {
394
+ if (n.treeData) {
395
+ const l = e[n.childrenColumnName] || [], t = e.isLeaf === !0;
396
+ return l.length > 0 || n.loadMore && !t;
397
+ }
398
+ return n.expandable ? n.expandable.rowExpandable ? n.expandable.rowExpandable(e) : !!(n.expandable.expandedRowRender || !0) : !1;
399
+ }
400
+ function ct(e, l) {
401
+ var o;
402
+ if (!He(e)) return;
403
+ const t = P(e, l), a = e[n.childrenColumnName] || [], r = e.isLeaf === !0;
404
+ n.loadMore && a.length === 0 && !r && !I(e, l) && (ye.value.add(t), n.loadMore(e, (p) => {
405
+ ye.value.delete(t), p && p.length > 0 && (e[n.childrenColumnName] = p);
406
+ }));
407
+ const i = I(e, l) ? ee.value.filter((p) => p !== t) : [...ee.value, t];
408
+ ((o = n.expandable) == null ? void 0 : o.expandedRowKeys) === void 0 && (q.value = i), b("update:expandedRowKeys", i), b("expand", i, t);
409
+ }
410
+ function Ae(e, l) {
411
+ V.value = e, U.value = l, b("pageChange", e, l), b("pageSizeChange", l), b("change", A.value, { type: "pagination" });
412
+ }
413
+ function Fe(e, l) {
414
+ l.preventDefault(), l.stopPropagation(), Q.value = e;
415
+ const t = l.clientX, a = x.value.find((p) => p.key === e), r = H.value[e] || ue(a == null ? void 0 : a.width), i = (p) => {
416
+ const d = p.clientX - t, h = Math.max(60, r + d);
417
+ H.value = { ...H.value, [e]: h };
418
+ }, o = () => {
419
+ Q.value = null, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", o), b("resizeColumn", e, H.value[e]);
420
+ };
421
+ document.addEventListener("mousemove", i), document.addEventListener("mouseup", o);
422
+ }
423
+ function be(e, l, t, a) {
424
+ if (n.spanMethod) {
425
+ const p = n.spanMethod({ record: t, column: a, rowIndex: e, columnIndex: l });
426
+ if (p)
427
+ return {
428
+ rowspan: p.rowspan ?? 1,
429
+ colspan: p.colspan ?? 1,
430
+ skip: !1
431
+ };
432
+ }
433
+ const r = `${e}-${a.key}`, i = pt.value.get(r), o = je.value.get(r);
434
+ return !i && !o ? { rowspan: 1, colspan: 1, skip: !1 } : {
435
+ rowspan: (i == null ? void 0 : i.rowspan) ?? (o == null ? void 0 : o.rowspan) ?? 1,
436
+ colspan: (o == null ? void 0 : o.colspan) ?? (i == null ? void 0 : i.colspan) ?? 1,
437
+ skip: ((i == null ? void 0 : i.skip) ?? !1) || ((o == null ? void 0 : o.skip) ?? !1)
438
+ };
439
+ }
440
+ function Oe(e, l) {
441
+ const t = je.value.get(`${e}-${l.key}`);
442
+ return !!(t && !t.skip && t.colspan > 1);
443
+ }
444
+ function ft(e, l) {
445
+ if (Oe(e, l))
446
+ return { textAlign: "center" };
447
+ }
448
+ const pt = y(() => {
449
+ var t;
450
+ const e = /* @__PURE__ */ new Map();
451
+ return !((t = n.autoMergeColumns) != null && t.length) || !z.value.length || n.autoMergeColumns.filter(
452
+ (a) => x.value.some((r) => r.key === a)
453
+ ).forEach((a) => {
454
+ const r = x.value.find((d) => d.key === a);
455
+ if (!r) return;
456
+ let i = 0, o = R(z.value[0].record, r), p = 1;
457
+ for (let d = 1; d <= z.value.length; d++) {
458
+ const h = d < z.value.length ? R(z.value[d].record, r) : void 0;
459
+ if (me(o, h))
460
+ p++;
461
+ else {
462
+ for (let s = 0; s < p; s++) {
463
+ const v = i + s;
464
+ e.set(`${v}-${a}`, {
465
+ rowspan: s === 0 ? p : 0,
466
+ colspan: 1,
467
+ skip: s !== 0
468
+ });
469
+ }
470
+ i = d, o = h, p = 1;
471
+ }
472
+ }
473
+ }), e;
474
+ }), je = y(() => {
475
+ const e = /* @__PURE__ */ new Map();
476
+ return !n.autoMergeRows || !z.value.length || z.value.forEach((l, t) => {
477
+ let a;
478
+ if (n.autoMergeRows === !0)
479
+ a = x.value;
480
+ else if (Array.isArray(n.autoMergeRows)) {
481
+ const p = n.autoMergeRows;
482
+ a = x.value.filter((d) => p.includes(d.key));
483
+ } else
484
+ return;
485
+ if (a.length < 2) return;
486
+ let r = 0, i = R(l.record, a[0]), o = 1;
487
+ for (let p = 1; p <= a.length; p++) {
488
+ const d = a[p], h = d ? R(l.record, d) : void 0;
489
+ if (me(i, h))
490
+ o++;
491
+ else {
492
+ for (let s = 0; s < o; s++) {
493
+ const v = a[r + s].key;
494
+ e.set(`${t}-${v}`, {
495
+ rowspan: 1,
496
+ colspan: s === 0 ? o : 0,
497
+ skip: s !== 0
498
+ });
499
+ }
500
+ r = p, i = h, o = 1;
501
+ }
502
+ }
503
+ }), e;
504
+ });
505
+ function yt() {
506
+ if (n.stickyHeader === !1 || n.stickyHeader === void 0 || n.stickyHeader === null || !j.value || !Ce.value)
507
+ return;
508
+ const l = j.value.scrollTop, t = typeof n.stickyHeader == "number" ? n.stickyHeader : 0;
509
+ Y.value = l > t;
510
+ }
511
+ function xe() {
512
+ if (!n.virtualListProps || !j.value) return;
513
+ const e = j.value;
514
+ $e.value = e.scrollTop;
515
+ const l = Math.floor($e.value / W.value), t = Math.ceil(nt.value / W.value);
516
+ Z.value = l, Re.value = Math.min(l + t, T.value.length);
517
+ }
518
+ function ht() {
519
+ yt(), xe();
520
+ }
521
+ function gt(e, l) {
522
+ n.draggable && (K.value.isDragging = !0, K.value.dragIndex = e, l.dataTransfer && (l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData("text/plain", String(e))));
523
+ }
524
+ function vt(e, l) {
525
+ !n.draggable || !K.value.isDragging || (l.preventDefault(), K.value.dropIndex = e);
526
+ }
527
+ function kt(e, l) {
528
+ if (!n.draggable) return;
529
+ l.preventDefault();
530
+ const t = K.value.dragIndex, a = e;
531
+ if (t !== a && t >= 0) {
532
+ const r = [...n.data], [i] = r.splice(t, 1);
533
+ r.splice(a, 0, i), b("drag", t, a, r);
534
+ }
535
+ K.value = { isDragging: !1, dragIndex: -1, dropIndex: -1 };
536
+ }
537
+ function bt() {
538
+ K.value = { isDragging: !1, dragIndex: -1, dropIndex: -1 };
539
+ }
540
+ function xt(e, l) {
541
+ if (e.ellipsis && !(typeof e.ellipsis == "object" && e.ellipsis.tooltip === !1))
542
+ return String(R(l, e) ?? "");
543
+ }
544
+ function wt(e) {
545
+ return e.some((l) => l.children && l.children.length > 0);
546
+ }
547
+ function mt(e) {
548
+ const l = [];
549
+ function t(i) {
550
+ let o = 0;
551
+ return i.forEach((p) => {
552
+ p.children && p.children.length > 0 && (o = Math.max(o, 1 + t(p.children)));
553
+ }), o;
554
+ }
555
+ const a = t(e);
556
+ function r(i, o) {
557
+ l[o] || (l[o] = []), i.forEach((p) => {
558
+ if (p.children && p.children.length > 0) {
559
+ const d = Ve(p.children);
560
+ l[o].push({ columns: [p], rowSpan: 1, colSpan: d }), r(p.children, o + 1);
561
+ } else
562
+ l[o].push({ columns: [p], rowSpan: a - o + 1, colSpan: 1 });
563
+ });
564
+ }
565
+ return r(e, 0), l;
566
+ }
567
+ function Ve(e) {
568
+ let l = 0;
569
+ return e.forEach((t) => {
570
+ t.children && t.children.length > 0 ? l += Ve(t.children) : l++;
571
+ }), l;
572
+ }
573
+ const St = y(() => wt(de.value)), ie = y(() => mt(de.value));
574
+ function Ct() {
575
+ var e;
576
+ if (!n.summary) return [];
577
+ if (n.summary === !0) {
578
+ const l = { [n.rowKey]: "summary" };
579
+ return x.value.forEach((t) => {
580
+ if (t.dataIndex) {
581
+ const a = A.value.reduce((r, i) => {
582
+ const o = Number(R(i, t));
583
+ return r + (isNaN(o) ? 0 : o);
584
+ }, 0);
585
+ l[t.dataIndex] = a;
586
+ }
587
+ }), l[(e = x.value[0]) == null ? void 0 : e.dataIndex] = n.summaryText, [l];
588
+ }
589
+ return n.summary({ columns: x.value, data: A.value });
590
+ }
591
+ function Rt(e) {
592
+ return !!(e.tooltip || typeof e.ellipsis == "object" && e.ellipsis.tooltip);
593
+ }
594
+ function $t(e) {
595
+ return typeof e.tooltip == "object" ? e.tooltip.position || "top" : typeof e.ellipsis == "object" && typeof e.ellipsis.tooltip == "object" && e.ellipsis.tooltip.position || "top";
596
+ }
597
+ function We(e) {
598
+ var l;
599
+ return (l = n.rowSelection) != null && l.getCheckboxProps ? n.rowSelection.getCheckboxProps(e).disabled ?? !1 : !1;
600
+ }
601
+ return (e, l) => (u(), c("div", {
602
+ class: L(["x-table", [
603
+ `x-table--${fe.value}`,
604
+ {
605
+ "is-bordered": lt.value,
606
+ "is-bordered-cell": De.value,
607
+ "is-stripe": f.stripe,
608
+ "is-loading": f.loading,
609
+ "is-hoverable": f.hoverable,
610
+ "has-fixed-column": he.value || st.value,
611
+ "is-sticky-header": Y.value
612
+ }
613
+ ]])
614
+ }, [
615
+ w("div", {
616
+ ref_key: "tableContainerRef",
617
+ ref: j,
618
+ class: "x-table__container",
619
+ style: m(it.value),
620
+ onScroll: ht
621
+ }, [
622
+ w("table", {
623
+ style: m(rt.value)
624
+ }, [
625
+ f.showHeader ? (u(), c("thead", {
626
+ key: 0,
627
+ ref_key: "tableHeaderRef",
628
+ ref: Ce,
629
+ class: L({ "is-sticky": Y.value }),
630
+ style: m(Y.value ? { top: f.stickyOffsetTop + "px" } : {})
631
+ }, [
632
+ St.value ? (u(!0), c(S, { key: 0 }, F(ie.value, (t, a) => (u(), c("tr", { key: a }, [
633
+ a === 0 && f.draggable ? (u(), c("th", {
634
+ key: 0,
635
+ rowspan: ie.value.length,
636
+ class: "x-table__drag-col x-table__sticky-helper",
637
+ style: m(_("drag", !0))
638
+ }, null, 12, jt)) : g("", !0),
639
+ a === 0 && (f.expandable || f.treeData) ? (u(), c("th", {
640
+ key: 1,
641
+ rowspan: ie.value.length,
642
+ class: "x-table__expand-col x-table__sticky-helper",
643
+ style: m(_("expand", !0))
644
+ }, [
645
+ k(e.$slots, "expand-title", {}, () => {
646
+ var r;
647
+ return [
648
+ M(C((r = f.expandable) == null ? void 0 : r.columnTitle), 1)
649
+ ];
650
+ }, !0)
651
+ ], 12, Vt)) : g("", !0),
652
+ a === 0 && f.rowSelection ? (u(), c("th", {
653
+ key: 2,
654
+ rowspan: ie.value.length,
655
+ class: "x-table__selection-col x-table__sticky-helper",
656
+ style: m(_("selection", !0))
657
+ }, [
658
+ f.rowSelection.type !== "radio" && f.rowSelection.showCheckedAll !== !1 ? (u(), c("input", {
659
+ key: 0,
660
+ ref_for: !0,
661
+ ref: Be,
662
+ type: "checkbox",
663
+ checked: ge.value,
664
+ onChange: l[0] || (l[0] = (r) => _e(r.target.checked))
665
+ }, null, 40, Xt)) : f.rowSelection.columnTitle ? (u(), c("span", It, C(f.rowSelection.columnTitle), 1)) : g("", !0)
666
+ ], 12, Wt)) : g("", !0),
667
+ (u(!0), c(S, null, F(t, ({ columns: r, rowSpan: i, colSpan: o }, p) => (u(), c("th", {
668
+ key: `${a}-${p}`,
669
+ class: L(["x-table__cell", [r[0].headerClassName, { "is-fixed-left": r[0].fixed === "left", "is-fixed-right": r[0].fixed === "right", "is-bordered": Te.value }]]),
670
+ style: m(ve(r[0], !0)),
671
+ colspan: o,
672
+ rowspan: i,
673
+ onClick: (d) => b("headerClick", r[0])
674
+ }, [
675
+ w("div", {
676
+ class: L(["x-table__header-cell", { "filter-left": f.filterIconAlignLeft }])
677
+ }, [
678
+ k(e.$slots, `header-${r[0].titleSlotName || r[0].key}`, {
679
+ column: r[0],
680
+ title: r[0].title
681
+ }, () => [
682
+ r[0].headerCellRender ? (u(), c(S, { key: 0 }, [
683
+ M(C(r[0].headerCellRender({ column: r[0], title: r[0].title })), 1)
684
+ ], 64)) : (u(), c(S, { key: 1 }, [
685
+ M(C(r[0].title), 1)
686
+ ], 64))
687
+ ], !0),
688
+ r[0].sorter ? (u(), c("button", {
689
+ key: 0,
690
+ type: "button",
691
+ class: L(["x-table__sorter", { "is-active": D.value.key === r[0].key && D.value.order }]),
692
+ "data-order": D.value.key === r[0].key ? D.value.order : null,
693
+ onClick: oe((d) => Ke(r[0]), ["stop"])
694
+ }, [...l[4] || (l[4] = [
695
+ w("span", { class: "x-table__sort-indicator" }, null, -1)
696
+ ])], 10, Jt)) : g("", !0),
697
+ k(e.$slots, `filter-${r[0].key}`, {
698
+ column: r[0],
699
+ filterState: E.value[r[0].key],
700
+ setFilter: (d) => ne(d, r[0].key)
701
+ }, () => {
702
+ var d;
703
+ return [
704
+ (d = r[0].filters) != null && d.length ? (u(), G(Je, {
705
+ key: 0,
706
+ options: r[0].filters,
707
+ value: E.value[r[0].key] || [],
708
+ multiple: r[0].filterMultiple !== !1,
709
+ "column-key": r[0].key,
710
+ "align-left": f.filterIconAlignLeft,
711
+ onChange: ne
712
+ }, null, 8, ["options", "value", "multiple", "column-key", "align-left"])) : g("", !0)
713
+ ];
714
+ }, !0)
715
+ ], 2),
716
+ i > 1 || !r[0].children ? (u(), c("div", {
717
+ key: 0,
718
+ class: L(["x-table__resize-handle", { "is-resizing": Q.value === r[0].key }]),
719
+ onMousedown: (d) => Fe(r[0].key, d)
720
+ }, null, 42, Ut)) : g("", !0)
721
+ ], 14, Gt))), 128))
722
+ ]))), 128)) : (u(), c("tr", qt, [
723
+ f.draggable ? (u(), c("th", {
724
+ key: 0,
725
+ class: "x-table__drag-col x-table__sticky-helper",
726
+ style: m(_("drag", !0))
727
+ }, null, 4)) : g("", !0),
728
+ f.expandable || f.treeData ? (u(), c("th", {
729
+ key: 1,
730
+ class: "x-table__expand-col x-table__sticky-helper",
731
+ style: m(_("expand", !0))
732
+ }, [
733
+ k(e.$slots, "expand-title", {}, () => {
734
+ var t;
735
+ return [
736
+ M(C((t = f.expandable) == null ? void 0 : t.columnTitle), 1)
737
+ ];
738
+ }, !0)
739
+ ], 4)) : g("", !0),
740
+ f.rowSelection ? (u(), c("th", {
741
+ key: 2,
742
+ class: "x-table__selection-col x-table__sticky-helper",
743
+ style: m(_("selection", !0))
744
+ }, [
745
+ f.rowSelection.type !== "radio" && f.rowSelection.showCheckedAll !== !1 ? (u(), c("input", {
746
+ key: 0,
747
+ ref: Be,
748
+ type: "checkbox",
749
+ checked: ge.value,
750
+ onChange: l[1] || (l[1] = (t) => _e(t.target.checked))
751
+ }, null, 40, Qt)) : f.rowSelection.columnTitle ? (u(), c("span", Yt, C(f.rowSelection.columnTitle), 1)) : g("", !0)
752
+ ], 4)) : g("", !0),
753
+ (u(!0), c(S, null, F(x.value, (t) => (u(), c("th", {
754
+ key: t.key,
755
+ class: L(["x-table__cell", [t.headerClassName, { "is-fixed-left": t.fixed === "left", "is-fixed-right": t.fixed === "right", "is-bordered": Te.value }]]),
756
+ style: m(ve(t, !0)),
757
+ onClick: (a) => b("headerClick", t)
758
+ }, [
759
+ w("div", {
760
+ class: L(["x-table__header-cell", { "filter-left": f.filterIconAlignLeft }])
761
+ }, [
762
+ k(e.$slots, `header-${t.titleSlotName || t.key}`, {
763
+ column: t,
764
+ title: t.title
765
+ }, () => [
766
+ t.headerCellRender ? (u(), c(S, { key: 0 }, [
767
+ M(C(t.headerCellRender({ column: t, title: t.title })), 1)
768
+ ], 64)) : (u(), c(S, { key: 1 }, [
769
+ M(C(t.title), 1)
770
+ ], 64))
771
+ ], !0),
772
+ t.sorter ? (u(), c("button", {
773
+ key: 0,
774
+ type: "button",
775
+ class: L(["x-table__sorter", { "is-active": D.value.key === t.key && D.value.order }]),
776
+ "data-order": D.value.key === t.key ? D.value.order : null,
777
+ onClick: oe((a) => Ke(t), ["stop"])
778
+ }, [...l[5] || (l[5] = [
779
+ w("span", { class: "x-table__sort-indicator" }, null, -1)
780
+ ])], 10, el)) : g("", !0),
781
+ k(e.$slots, `filter-${t.key}`, {
782
+ column: t,
783
+ filterState: E.value[t.key],
784
+ setFilter: (a) => ne(a, t.key)
785
+ }, () => {
786
+ var a;
787
+ return [
788
+ (a = t.filters) != null && a.length ? (u(), G(Je, {
789
+ key: 0,
790
+ options: t.filters,
791
+ value: E.value[t.key] || [],
792
+ multiple: t.filterMultiple !== !1,
793
+ "column-key": t.key,
794
+ "align-left": f.filterIconAlignLeft,
795
+ onChange: ne
796
+ }, null, 8, ["options", "value", "multiple", "column-key", "align-left"])) : g("", !0)
797
+ ];
798
+ }, !0)
799
+ ], 2),
800
+ w("div", {
801
+ class: L(["x-table__resize-handle", { "is-resizing": Q.value === t.key }]),
802
+ onMousedown: (a) => Fe(t.key, a)
803
+ }, null, 42, tl)
804
+ ], 14, Zt))), 128))
805
+ ]))
806
+ ], 6)) : g("", !0),
807
+ z.value.length ? (u(), c("tbody", ll, [
808
+ f.virtualListProps && Pe.value > 0 ? (u(), c("tr", {
809
+ key: 0,
810
+ style: m({ height: `${Pe.value}px` })
811
+ }, [
812
+ w("td", {
813
+ colspan: le.value,
814
+ style: { padding: 0, border: "none" }
815
+ }, null, 8, al)
816
+ ], 4)) : g("", !0),
817
+ (u(!0), c(S, null, F(z.value, ({ record: t, index: a, key: r, level: i, hasChildren: o, loading: p, _virtualIndex: d }, h) => (u(), c(S, {
818
+ key: String(r)
819
+ }, [
820
+ k(e.$slots, "tr", {
821
+ record: t,
822
+ index: a
823
+ }, () => [
824
+ w("tr", {
825
+ class: L(["x-table__row", [ut(t, a), { "is-striped": f.stripe && (typeof d == "number" ? d : h) % 2 === 1, "is-dragging": K.value.isDragging && K.value.dragIndex === (typeof d == "number" ? d : h) }]]),
826
+ draggable: !!f.draggable,
827
+ onClick: (s) => b("rowClick", t, a),
828
+ onDragstart: (s) => gt(typeof d == "number" ? d : h, s),
829
+ onDragover: (s) => vt(typeof d == "number" ? d : h, s),
830
+ onDrop: (s) => kt(typeof d == "number" ? d : h, s),
831
+ onDragend: bt
832
+ }, [
833
+ f.draggable ? (u(), c("td", {
834
+ key: 0,
835
+ class: "x-table__drag-col x-table__sticky-helper",
836
+ style: m(_("drag"))
837
+ }, [
838
+ k(e.$slots, "drag-handle", {}, () => [
839
+ l[6] || (l[6] = w("span", { class: "x-table__drag-icon" }, "⋮⋮", -1))
840
+ ], !0)
841
+ ], 4)) : g("", !0),
842
+ f.expandable || f.treeData ? (u(), c("td", {
843
+ key: 1,
844
+ class: "x-table__expand-col x-table__sticky-helper",
845
+ style: m(_("expand"))
846
+ }, [
847
+ k(e.$slots, "expand-icon", {
848
+ record: t,
849
+ expanded: I(t, a),
850
+ hasChildren: o
851
+ }, () => [
852
+ He(t) ? (u(), c("button", {
853
+ key: 0,
854
+ type: "button",
855
+ class: L(["x-table__expand", { "is-loading": p }]),
856
+ onClick: oe((s) => ct(t, a), ["stop"])
857
+ }, [
858
+ p ? (u(), c("span", il, [...l[7] || (l[7] = [
859
+ w("svg", {
860
+ viewBox: "0 0 48 48",
861
+ fill: "none",
862
+ xmlns: "http://www.w3.org/2000/svg",
863
+ stroke: "currentColor",
864
+ "stroke-width": "4",
865
+ "stroke-linecap": "butt",
866
+ "stroke-linejoin": "miter"
867
+ }, [
868
+ w("path", { d: "M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30" })
869
+ ], -1)
870
+ ])])) : (u(), c("span", sl, C(I(t, a) ? "▾" : "▸"), 1))
871
+ ], 10, rl)) : g("", !0)
872
+ ], !0)
873
+ ], 4)) : g("", !0),
874
+ f.rowSelection ? (u(), c("td", {
875
+ key: 2,
876
+ class: "x-table__selection-col x-table__sticky-helper",
877
+ style: m(_("selection"))
878
+ }, [
879
+ k(e.$slots, "checkbox", {
880
+ record: t,
881
+ checked: N.value.includes(r),
882
+ disabled: We(t)
883
+ }, () => [
884
+ w("input", {
885
+ type: f.rowSelection.type === "radio" ? "radio" : "checkbox",
886
+ checked: N.value.includes(r),
887
+ disabled: We(t),
888
+ onClick: l[2] || (l[2] = oe(() => {
889
+ }, ["stop"])),
890
+ onChange: (s) => dt(t, a, s.target.checked)
891
+ }, null, 40, ol)
892
+ ], !0)
893
+ ], 4)) : g("", !0),
894
+ k(e.$slots, "td", {
895
+ record: t,
896
+ index: a
897
+ }, () => [
898
+ (u(!0), c(S, null, F(x.value, (s, v) => (u(), c(S, {
899
+ key: s.key
900
+ }, [
901
+ be(typeof d == "number" ? d : h, v, t, s).skip ? g("", !0) : (u(), c("td", zt({
902
+ key: 0,
903
+ class: ["x-table__cell", [
904
+ s.className,
905
+ typeof s.cellClassName == "function" ? s.cellClassName(t) : s.cellClassName,
906
+ {
907
+ "is-fixed-left": s.fixed === "left",
908
+ "is-fixed-right": s.fixed === "right",
909
+ "is-ellipsis": s.ellipsis,
910
+ "is-bordered": De.value,
911
+ "is-auto-merged-row": Oe(typeof d == "number" ? d : h, s)
912
+ }
913
+ ]],
914
+ style: [
915
+ ve(s),
916
+ typeof s.cellStyle == "function" ? s.cellStyle(t) : s.cellStyle,
917
+ ft(typeof d == "number" ? d : h, s)
918
+ ]
919
+ }, { ref_for: !0 }, { rowspan: be(typeof d == "number" ? d : h, v, t, s).rowspan, colspan: be(typeof d == "number" ? d : h, v, t, s).colspan }, {
920
+ onClick: (Dt) => b("cellClick", t, s, a)
921
+ }), [
922
+ f.treeData && v === 0 ? (u(), c("span", {
923
+ key: 0,
924
+ class: "x-table__indent",
925
+ style: m({ paddingLeft: `${i * f.indentSize}px` })
926
+ }, null, 4)) : g("", !0),
927
+ Rt(s) ? (u(), G(Ht, {
928
+ key: 1,
929
+ content: xt(s, t),
930
+ position: $t(s)
931
+ }, {
932
+ default: Et(() => [
933
+ w("span", dl, [
934
+ k(e.$slots, s.slotName || `cell-${s.key}`, {
935
+ record: t,
936
+ column: s,
937
+ value: R(t, s),
938
+ index: a
939
+ }, () => [
940
+ s.cellRender ? (u(), c(S, { key: 0 }, [
941
+ M(C(s.cellRender({ record: t, column: s, value: R(t, s), index: a })), 1)
942
+ ], 64)) : (u(), c(S, { key: 1 }, [
943
+ M(C(R(t, s)), 1)
944
+ ], 64))
945
+ ], !0)
946
+ ])
947
+ ]),
948
+ _: 2
949
+ }, 1032, ["content", "position"])) : k(e.$slots, s.slotName || `cell-${s.key}`, {
950
+ key: 2,
951
+ record: t,
952
+ column: s,
953
+ value: R(t, s),
954
+ index: a
955
+ }, () => [
956
+ s.cellRender ? (u(), c(S, { key: 0 }, [
957
+ M(C(s.cellRender({ record: t, column: s, value: R(t, s), index: a })), 1)
958
+ ], 64)) : (u(), c(S, { key: 1 }, [
959
+ M(C(R(t, s)), 1)
960
+ ], 64))
961
+ ], !0)
962
+ ], 16, ul))
963
+ ], 64))), 128))
964
+ ], !0)
965
+ ], 42, nl)
966
+ ], !0),
967
+ f.expandable && I(t, a) ? (u(), c("tr", cl, [
968
+ w("td", {
969
+ colspan: le.value,
970
+ style: m({ paddingLeft: `${(f.expandable.indentSize || 16) + 16}px` })
971
+ }, [
972
+ k(e.$slots, "expand-row", {
973
+ record: t,
974
+ index: a
975
+ }, () => {
976
+ var s, v;
977
+ return [
978
+ M(C((v = (s = f.expandable) == null ? void 0 : s.expandedRowRender) == null ? void 0 : v.call(s, t, a)), 1)
979
+ ];
980
+ }, !0)
981
+ ], 12, fl)
982
+ ])) : g("", !0)
983
+ ], 64))), 128)),
984
+ f.virtualListProps && ze.value > 0 ? (u(), c("tr", {
985
+ key: 1,
986
+ style: m({ height: `${ze.value}px` })
987
+ }, [
988
+ w("td", {
989
+ colspan: le.value,
990
+ style: { padding: 0, border: "none" }
991
+ }, null, 8, pl)
992
+ ], 4)) : g("", !0)
993
+ ])) : (u(), c("tbody", yl, [
994
+ w("tr", null, [
995
+ w("td", {
996
+ colspan: le.value,
997
+ class: "x-table__empty"
998
+ }, [
999
+ k(e.$slots, "empty", {}, () => [
1000
+ we(Se) ? (u(), G(Kt(we(Se)), { key: 0 })) : (u(), G(Bt, {
1001
+ key: 1,
1002
+ "in-config-provider": "",
1003
+ description: Ze.value
1004
+ }, null, 8, ["description"]))
1005
+ ], !0)
1006
+ ], 8, hl)
1007
+ ])
1008
+ ])),
1009
+ f.summary ? (u(), c("tfoot", gl, [
1010
+ (u(!0), c(S, null, F(Ct(), (t, a) => (u(), c("tr", {
1011
+ key: a,
1012
+ class: "x-table__summary-row"
1013
+ }, [
1014
+ f.draggable ? (u(), c("td", vl)) : g("", !0),
1015
+ f.expandable || f.treeData ? (u(), c("td", kl)) : g("", !0),
1016
+ f.rowSelection ? (u(), c("td", bl, C(a === 0 ? Ye.value : ""), 1)) : g("", !0),
1017
+ (u(!0), c(S, null, F(x.value, (r) => (u(), c("td", {
1018
+ key: r.key,
1019
+ class: L(["x-table__cell", r.className])
1020
+ }, [
1021
+ k(e.$slots, "summary-cell", {
1022
+ column: r,
1023
+ record: t,
1024
+ rowIndex: a
1025
+ }, () => [
1026
+ M(C(R(t, r)), 1)
1027
+ ], !0)
1028
+ ], 2))), 128))
1029
+ ]))), 128))
1030
+ ])) : g("", !0)
1031
+ ], 4)
1032
+ ], 36),
1033
+ f.loading ? (u(), c("div", xl, [
1034
+ k(e.$slots, "loading", {}, () => [
1035
+ M(C(we(ce)("table.loadingText", void 0, "加载中...")), 1)
1036
+ ], !0)
1037
+ ])) : g("", !0),
1038
+ B.value ? (u(), c("div", wl, [
1039
+ k(e.$slots, "pagination-left", {}, void 0, !0),
1040
+ Nt(_t, {
1041
+ current: te.value,
1042
+ total: T.value.length,
1043
+ "page-size": X.value,
1044
+ "show-total": B.value.showTotal,
1045
+ "show-jumper": B.value.showJumper,
1046
+ "show-page-size": B.value.showPageSize,
1047
+ "page-size-options": B.value.pageSizeOptions,
1048
+ simple: B.value.simple,
1049
+ onChange: Ae,
1050
+ onPageSizeChange: l[3] || (l[3] = (t) => Ae(te.value, t))
1051
+ }, null, 8, ["current", "total", "page-size", "show-total", "show-jumper", "show-page-size", "page-size-options", "simple"]),
1052
+ k(e.$slots, "pagination-right", {}, void 0, !0)
1053
+ ])) : g("", !0)
1054
+ ], 2));
1055
+ }
1056
+ });
1057
+ export {
1058
+ Ml as default
1059
+ };