@expcat/tigercat-vue 1.4.0 → 2.0.0-preview.1

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 (723) hide show
  1. package/dist/{chunk-MKBIVETW.mjs → chunk-2OI6GWOT.mjs} +22 -2
  2. package/dist/{chunk-M2ECZQ2D.mjs → chunk-2QWGVJW6.mjs} +56 -33
  3. package/dist/{chunk-6K4UE5MK.mjs → chunk-2YPPXZ4I.mjs} +59 -5
  4. package/dist/{chunk-KY3O3FWK.mjs → chunk-36WSYHJU.mjs} +77 -18
  5. package/dist/{chunk-HCANI7ZG.mjs → chunk-36ZFDXKU.mjs} +10 -1
  6. package/dist/{chunk-DEJKRMMU.mjs → chunk-4IZUJJUO.mjs} +32 -9
  7. package/dist/{chunk-L6ZD3ZCO.mjs → chunk-4QCJUILG.mjs} +1 -1
  8. package/dist/chunk-4RKBXGHQ.mjs +52 -0
  9. package/dist/chunk-4ZKSTL5P.mjs +323 -0
  10. package/dist/{chunk-YZP4K6KI.mjs → chunk-6BDDX2R4.mjs} +9 -9
  11. package/dist/{chunk-BYX756N5.mjs → chunk-6FV2OMB7.mjs} +22 -7
  12. package/dist/{chunk-VN4SKDFO.mjs → chunk-6G5FEZLT.mjs} +2 -12
  13. package/dist/{chunk-Y4V7BOVR.mjs → chunk-6TTICJR4.mjs} +9 -7
  14. package/dist/{chunk-BPAN6T7H.mjs → chunk-7LCUVR63.mjs} +40 -5
  15. package/dist/{chunk-E6RGBYI3.mjs → chunk-ALIUAGJO.mjs} +7 -0
  16. package/dist/{chunk-IZF4VHJ2.mjs → chunk-ASOJXXU6.mjs} +2 -2
  17. package/dist/{chunk-NDS2DLUS.mjs → chunk-AZXS4QWC.mjs} +14 -10
  18. package/dist/{chunk-KY6AJRGT.mjs → chunk-B47QLHVW.mjs} +7 -7
  19. package/dist/{chunk-UAD2XROX.mjs → chunk-BGO2ILHM.mjs} +9 -9
  20. package/dist/{chunk-GRP54POG.mjs → chunk-BJV62I73.mjs} +5 -5
  21. package/dist/{chunk-FSGD24HV.mjs → chunk-BNNTDSLJ.mjs} +92 -1
  22. package/dist/{chunk-6NJXI66G.mjs → chunk-CF4GX6BD.mjs} +36 -4
  23. package/dist/{chunk-QKP5C26H.mjs → chunk-CW5TEG7N.mjs} +2 -2
  24. package/dist/{chunk-MOLGN476.mjs → chunk-DMQLA35L.mjs} +11 -1
  25. package/dist/{chunk-7VSNXYFM.mjs → chunk-DOVBKVTB.mjs} +28 -10
  26. package/dist/{chunk-2WJADO6O.mjs → chunk-DZFM7H3M.mjs} +21 -7
  27. package/dist/{chunk-62ZSNASF.mjs → chunk-E7NE5HEC.mjs} +140 -7
  28. package/dist/chunk-ESBUNMIG.mjs +49 -0
  29. package/dist/{chunk-KJ6VISRW.mjs → chunk-EUSODI5E.mjs} +1 -1
  30. package/dist/{chunk-RHLP2ED5.mjs → chunk-EVIZXEB2.mjs} +15 -8
  31. package/dist/{chunk-SGRUGYQ6.mjs → chunk-EYR27UIE.mjs} +13 -10
  32. package/dist/{chunk-PPEAQDD5.mjs → chunk-FAQL7HFW.mjs} +8 -0
  33. package/dist/{chunk-LHOSPU6V.mjs → chunk-FDKJOVXG.mjs} +9 -18
  34. package/dist/{chunk-IKEZDGRO.mjs → chunk-FHJ3R57L.mjs} +9 -9
  35. package/dist/{chunk-RFFPMC22.mjs → chunk-FIVVKBBF.mjs} +3 -3
  36. package/dist/{chunk-PTAWLJCV.mjs → chunk-FT2HWF7P.mjs} +1 -1
  37. package/dist/{chunk-K5ZZZ4TL.mjs → chunk-G7MOTNJO.mjs} +9 -9
  38. package/dist/{chunk-J6YCXMVY.mjs → chunk-GAEO66NY.mjs} +2 -2
  39. package/dist/chunk-GMIKUE67.mjs +201 -0
  40. package/dist/chunk-GTFAC625.mjs +120 -0
  41. package/dist/{chunk-W6ZFHHD3.mjs → chunk-GZWZP5AL.mjs} +9 -2
  42. package/dist/{chunk-FMH4CLSA.mjs → chunk-H6FZBFRT.mjs} +27 -6
  43. package/dist/{chunk-PXRF4IJO.mjs → chunk-HGXD57QM.mjs} +46 -5
  44. package/dist/{chunk-HKRMZODL.mjs → chunk-HIXWZVE5.mjs} +14 -10
  45. package/dist/{chunk-VVS2CQS4.mjs → chunk-HLPSHCXO.mjs} +8 -3
  46. package/dist/{chunk-PENI3H3I.mjs → chunk-HS4YQGZQ.mjs} +45 -11
  47. package/dist/{chunk-6Y4NWO4I.mjs → chunk-HWL36OCD.mjs} +7 -4
  48. package/dist/{chunk-GQAVLQEZ.mjs → chunk-IGT4QB7O.mjs} +4 -4
  49. package/dist/{chunk-3VFZB5ZK.mjs → chunk-IQNZ4UEA.mjs} +10 -13
  50. package/dist/{chunk-TUSWQVI2.mjs → chunk-JCGWN7WV.mjs} +1 -0
  51. package/dist/{chunk-QAMXVTNN.mjs → chunk-JMVALNIO.mjs} +147 -48
  52. package/dist/{chunk-M5PGWW25.mjs → chunk-JPCMI3A4.mjs} +40 -10
  53. package/dist/{chunk-YSUT2GRP.mjs → chunk-KBJANUZZ.mjs} +50 -1
  54. package/dist/{chunk-M4EP4OVR.mjs → chunk-KE6RGD4Y.mjs} +2 -1
  55. package/dist/chunk-KIPTVKU2.mjs +104 -0
  56. package/dist/{chunk-KH2CF6JU.mjs → chunk-KR3D2JOA.mjs} +93 -41
  57. package/dist/{chunk-G6ULKE6H.mjs → chunk-KRWKO2JQ.mjs} +17 -3
  58. package/dist/{chunk-DOBGVCZJ.mjs → chunk-LOX2KCML.mjs} +7 -6
  59. package/dist/{chunk-OOS3QQFK.mjs → chunk-MJRFB6ZA.mjs} +72 -43
  60. package/dist/{chunk-UKMOWUYH.mjs → chunk-MYKKKVGK.mjs} +2 -2
  61. package/dist/{chunk-3AF4VRCD.mjs → chunk-N3C6YI7I.mjs} +8 -8
  62. package/dist/{chunk-NHBN6VAY.mjs → chunk-NYWIBDO6.mjs} +9 -9
  63. package/dist/{chunk-Y3BQSELH.mjs → chunk-O4F75KHL.mjs} +9 -9
  64. package/dist/{chunk-DSNPEWYP.mjs → chunk-ODDPVS27.mjs} +64 -11
  65. package/dist/{chunk-DMV26JNR.mjs → chunk-PD2PKYJE.mjs} +58 -6
  66. package/dist/{chunk-HVVPFQW2.mjs → chunk-PLUABMUD.mjs} +16 -2
  67. package/dist/{chunk-UMQUWX7U.mjs → chunk-QD5ZCKPR.mjs} +26 -4
  68. package/dist/{chunk-NWS45JQP.mjs → chunk-RAO7ZJWR.mjs} +65 -17
  69. package/dist/{chunk-DOJPPVAN.mjs → chunk-RTZUIWCN.mjs} +5 -1
  70. package/dist/{chunk-OK4PVFQG.mjs → chunk-SPFL55TF.mjs} +22 -19
  71. package/dist/{chunk-6OQLZCQK.mjs → chunk-SYRRMZT2.mjs} +1 -1
  72. package/dist/{chunk-A6T2IHFC.mjs → chunk-TM73IWEY.mjs} +51 -11
  73. package/dist/{chunk-UANF7XE5.mjs → chunk-TQDN67YN.mjs} +34 -6
  74. package/dist/{chunk-SC3WTLKG.mjs → chunk-UD4FNMJN.mjs} +22 -5
  75. package/dist/chunk-V5ANPH5R.mjs +341 -0
  76. package/dist/{chunk-AZ6SASY5.mjs → chunk-V5ZEPAWV.mjs} +44 -15
  77. package/dist/{chunk-2R5HISQA.mjs → chunk-VCCK4CDT.mjs} +4 -2
  78. package/dist/{chunk-WZRC7PJH.mjs → chunk-VFUBOKGT.mjs} +42 -9
  79. package/dist/{chunk-XMGNMKWW.mjs → chunk-VMYV5EWI.mjs} +4 -3
  80. package/dist/{chunk-RKL4Y7CW.mjs → chunk-W7X5ZHJ3.mjs} +107 -5
  81. package/dist/{chunk-E363N2BJ.mjs → chunk-WBT3WSRE.mjs} +1 -4
  82. package/dist/{chunk-WFISP42H.mjs → chunk-WLHOWOAY.mjs} +15 -2
  83. package/dist/{chunk-RPWKAGN5.mjs → chunk-WYJ5WOT2.mjs} +29 -13
  84. package/dist/chunk-XFNHZ7SV.mjs +142 -0
  85. package/dist/{chunk-ZCT56WB7.mjs → chunk-XZYFVOOS.mjs} +1 -1
  86. package/dist/chunk-Y2HO4IBQ.mjs +150 -0
  87. package/dist/{chunk-XJ5VGC5V.mjs → chunk-YJSWHGAR.mjs} +24 -10
  88. package/dist/{chunk-BHNBLQ5S.mjs → chunk-YSKG5FSX.mjs} +18 -20
  89. package/dist/{chunk-VPHM5WEL.mjs → chunk-YZATP4VF.mjs} +1 -1
  90. package/dist/{chunk-OKR3GRG5.mjs → chunk-Z4NJJ7NI.mjs} +65 -17
  91. package/dist/components/ActivityFeed.mjs +6 -6
  92. package/dist/components/Anchor.mjs +1 -1
  93. package/dist/components/AreaChart.d.mts +6 -6
  94. package/dist/components/AreaChart.mjs +5 -5
  95. package/dist/components/AutoComplete.d.mts +30 -11
  96. package/dist/components/AutoComplete.mjs +1 -1
  97. package/dist/components/Avatar.mjs +2 -2
  98. package/dist/components/AvatarGroup.mjs +1 -1
  99. package/dist/components/BackTop.d.mts +30 -3
  100. package/dist/components/BackTop.mjs +1 -1
  101. package/dist/components/Badge.d.mts +10 -1
  102. package/dist/components/Badge.mjs +2 -1
  103. package/dist/components/BarChart.mjs +5 -5
  104. package/dist/components/Breadcrumb.d.mts +1 -1
  105. package/dist/components/Breadcrumb.mjs +1 -1
  106. package/dist/components/Calendar.d.mts +16 -6
  107. package/dist/components/Calendar.mjs +2 -1
  108. package/dist/components/Card.d.mts +7 -7
  109. package/dist/components/Carousel.d.mts +24 -7
  110. package/dist/components/Carousel.mjs +1 -1
  111. package/dist/components/Cascader.d.mts +38 -16
  112. package/dist/components/Cascader.mjs +1 -1
  113. package/dist/components/ChartLegend.mjs +1 -1
  114. package/dist/components/ChartTooltip.d.mts +4 -4
  115. package/dist/components/ChartTooltip.mjs +1 -1
  116. package/dist/components/ChatWindow.d.mts +7 -7
  117. package/dist/components/ChatWindow.mjs +9 -7
  118. package/dist/components/Checkbox.d.mts +8 -8
  119. package/dist/components/Checkbox.mjs +1 -1
  120. package/dist/components/CheckboxGroup.d.mts +8 -8
  121. package/dist/components/CodeEditor.mjs +1 -1
  122. package/dist/components/ColorPicker.d.mts +4 -4
  123. package/dist/components/ColorSwatch.d.mts +5 -5
  124. package/dist/components/CommentThread.d.mts +5 -1
  125. package/dist/components/CommentThread.mjs +7 -5
  126. package/dist/components/Countdown.d.mts +1 -1
  127. package/dist/components/CronEditor.d.mts +1 -1
  128. package/dist/components/CropUpload.d.mts +13 -3
  129. package/dist/components/CropUpload.mjs +3 -3
  130. package/dist/components/DataTableWithToolbar.d.mts +214 -2
  131. package/dist/components/DataTableWithToolbar.mjs +11 -10
  132. package/dist/components/DatePicker.d.mts +13 -8
  133. package/dist/components/DatePicker.mjs +2 -1
  134. package/dist/components/Descriptions.d.mts +7 -7
  135. package/dist/components/DonutChart.d.mts +17 -8
  136. package/dist/components/DonutChart.mjs +6 -6
  137. package/dist/components/Drawer.d.mts +8 -27
  138. package/dist/components/Drawer.mjs +1 -1
  139. package/dist/components/Dropdown.d.mts +69 -2
  140. package/dist/components/Dropdown.mjs +3 -1
  141. package/dist/components/Empty.d.mts +11 -1
  142. package/dist/components/Empty.mjs +2 -1
  143. package/dist/components/FileManager.d.mts +19 -19
  144. package/dist/components/FileManager.mjs +1 -1
  145. package/dist/components/FloatButton.d.mts +34 -4
  146. package/dist/components/FloatButton.mjs +1 -1
  147. package/dist/components/Form.d.mts +8 -8
  148. package/dist/components/Form.mjs +1 -1
  149. package/dist/components/FormItem.d.mts +4 -4
  150. package/dist/components/FormItem.mjs +2 -2
  151. package/dist/components/FormWizard.mjs +2 -2
  152. package/dist/components/FunnelChart.mjs +5 -5
  153. package/dist/components/Gantt.d.mts +1 -1
  154. package/dist/components/GaugeChart.d.mts +15 -0
  155. package/dist/components/GaugeChart.mjs +2 -1
  156. package/dist/components/HeatmapChart.mjs +3 -3
  157. package/dist/components/Icon.d.mts +1 -1
  158. package/dist/components/Image.mjs +4 -3
  159. package/dist/components/ImageAnnotation.d.mts +11 -1
  160. package/dist/components/ImageAnnotation.mjs +2 -1
  161. package/dist/components/ImageCropper.d.mts +11 -0
  162. package/dist/components/ImageCropper.mjs +2 -1
  163. package/dist/components/ImageGroup.d.mts +2 -2
  164. package/dist/components/ImageGroup.mjs +3 -2
  165. package/dist/components/ImagePreview.d.mts +31 -10
  166. package/dist/components/ImagePreview.mjs +2 -1
  167. package/dist/components/ImageViewer.d.mts +6 -15
  168. package/dist/components/ImageViewer.mjs +1 -1
  169. package/dist/components/InfiniteScroll.mjs +1 -1
  170. package/dist/components/Input.d.mts +6 -6
  171. package/dist/components/Input.mjs +2 -1
  172. package/dist/components/InputGroup.d.mts +6 -6
  173. package/dist/components/InputNumber.d.mts +26 -6
  174. package/dist/components/InputNumber.mjs +2 -1
  175. package/dist/components/Kanban.d.mts +21 -1
  176. package/dist/components/Kanban.mjs +2 -2
  177. package/dist/components/LineChart.mjs +5 -5
  178. package/dist/components/List.d.mts +7 -7
  179. package/dist/components/List.mjs +2 -2
  180. package/dist/components/MarkdownEditor.mjs +1 -1
  181. package/dist/components/Menu.d.mts +5 -5
  182. package/dist/components/Message.d.mts +4 -29
  183. package/dist/components/Message.mjs +139 -4
  184. package/dist/components/{Message.d.ts → MessageContainer.d.mts} +15 -18
  185. package/dist/components/MessageContainer.mjs +9 -0
  186. package/dist/components/MessageRoot.d.mts +9 -0
  187. package/dist/components/MessageRoot.mjs +6 -0
  188. package/dist/components/Modal.d.mts +2 -20
  189. package/dist/components/Modal.mjs +1 -1
  190. package/dist/components/Notification.d.mts +4 -29
  191. package/dist/components/Notification.mjs +189 -4
  192. package/dist/components/NotificationCenter.mjs +4 -4
  193. package/dist/components/{Notification.d.ts → NotificationContainer.d.mts} +15 -17
  194. package/dist/components/NotificationContainer.mjs +9 -0
  195. package/dist/components/NotificationRoot.d.mts +9 -0
  196. package/dist/components/NotificationRoot.mjs +6 -0
  197. package/dist/components/NumberKeyboard.d.mts +2 -2
  198. package/dist/components/OrgChart.d.mts +1 -1
  199. package/dist/components/PieChart.d.mts +9 -0
  200. package/dist/components/PieChart.mjs +5 -5
  201. package/dist/components/Popconfirm.mjs +2 -2
  202. package/dist/components/Popover.mjs +2 -2
  203. package/dist/components/Progress.d.mts +1 -1
  204. package/dist/components/QRCode.d.mts +1 -1
  205. package/dist/components/QRCode.mjs +1 -1
  206. package/dist/components/RadarChart.mjs +5 -5
  207. package/dist/components/Radio.d.mts +15 -15
  208. package/dist/components/Radio.mjs +2 -2
  209. package/dist/components/RadioGroup.d.mts +16 -16
  210. package/dist/components/RadioGroup.mjs +1 -1
  211. package/dist/components/Rate.mjs +1 -1
  212. package/dist/components/Resizable.mjs +1 -1
  213. package/dist/components/Result.d.mts +1 -1
  214. package/dist/components/Result.mjs +1 -1
  215. package/dist/components/RichTextEditor.mjs +1 -1
  216. package/dist/components/ScatterChart.mjs +5 -5
  217. package/dist/components/ScrollSpy.d.mts +1 -1
  218. package/dist/components/Segmented.d.mts +4 -4
  219. package/dist/components/Segmented.mjs +1 -1
  220. package/dist/components/Select.d.mts +37 -36
  221. package/dist/components/Select.mjs +1 -1
  222. package/dist/components/Signature.d.mts +1 -1
  223. package/dist/components/Slider.d.mts +7 -7
  224. package/dist/components/Slider.mjs +1 -1
  225. package/dist/components/Space.d.mts +11 -11
  226. package/dist/components/Statistic.d.mts +4 -4
  227. package/dist/components/Stepper.d.mts +4 -4
  228. package/dist/components/Steps.d.mts +2 -2
  229. package/dist/components/Steps.mjs +1 -1
  230. package/dist/components/SunburstChart.mjs +5 -5
  231. package/dist/components/Switch.d.mts +14 -14
  232. package/dist/components/Switch.mjs +1 -1
  233. package/dist/components/Table.d.mts +0 -10
  234. package/dist/components/Table.mjs +6 -6
  235. package/dist/components/Tabs.d.mts +2 -0
  236. package/dist/components/Tabs.mjs +1 -1
  237. package/dist/components/Tag.d.mts +13 -3
  238. package/dist/components/Tag.mjs +2 -1
  239. package/dist/components/TaskBoard.d.mts +21 -1
  240. package/dist/components/TaskBoard.mjs +1 -1
  241. package/dist/components/Textarea.d.mts +7 -7
  242. package/dist/components/Textarea.mjs +2 -1
  243. package/dist/components/TimePicker.d.mts +9 -9
  244. package/dist/components/TimePicker.mjs +1 -1
  245. package/dist/components/Timeline.mjs +1 -1
  246. package/dist/components/Tooltip.mjs +2 -2
  247. package/dist/components/Tour.d.mts +1 -3
  248. package/dist/components/Tour.mjs +2 -1
  249. package/dist/components/Transfer.d.mts +50 -13
  250. package/dist/components/Transfer.mjs +1 -1
  251. package/dist/components/Tree.d.mts +2 -2
  252. package/dist/components/Tree.mjs +2 -2
  253. package/dist/components/TreeMapChart.mjs +5 -5
  254. package/dist/components/TreeSelect.d.mts +32 -12
  255. package/dist/components/TreeSelect.mjs +1 -1
  256. package/dist/components/Upload.d.mts +1 -1
  257. package/dist/components/Upload.mjs +1 -1
  258. package/dist/components/VirtualList.d.mts +11 -0
  259. package/dist/components/VirtualList.mjs +1 -1
  260. package/dist/components/VirtualTable.d.mts +54 -33
  261. package/dist/components/VirtualTable.mjs +1 -1
  262. package/dist/composables/useChartInteraction.d.mts +84 -0
  263. package/dist/composables/useChartInteraction.mjs +6 -0
  264. package/dist/composables/useDrag.d.mts +40 -0
  265. package/dist/composables/useDrag.mjs +6 -0
  266. package/dist/composables/useFormController.d.mts +23 -0
  267. package/dist/composables/useFormController.mjs +6 -0
  268. package/dist/index.d.mts +141 -274
  269. package/dist/index.mjs +2155 -826
  270. package/package.json +747 -17
  271. package/dist/chunk-24CBIC75.js +0 -468
  272. package/dist/chunk-2DC3BMED.js +0 -92
  273. package/dist/chunk-2MLORMN2.js +0 -736
  274. package/dist/chunk-2S5CNU36.js +0 -172
  275. package/dist/chunk-2VOZFFW6.js +0 -138
  276. package/dist/chunk-3QV2D54H.js +0 -207
  277. package/dist/chunk-3UQECWNL.mjs +0 -206
  278. package/dist/chunk-43BLH7DE.js +0 -166
  279. package/dist/chunk-44N7LE3Q.js +0 -568
  280. package/dist/chunk-54VVFMYI.js +0 -69
  281. package/dist/chunk-57MJTNDL.js +0 -128
  282. package/dist/chunk-5F6P5Y4K.js +0 -115
  283. package/dist/chunk-5PXTMXXS.js +0 -159
  284. package/dist/chunk-5UOAWXOQ.js +0 -243
  285. package/dist/chunk-5VSKQLK3.js +0 -693
  286. package/dist/chunk-67RSRWWY.js +0 -451
  287. package/dist/chunk-6FXYRDYH.js +0 -247
  288. package/dist/chunk-6WFFP4K2.mjs +0 -325
  289. package/dist/chunk-72DDCIVL.js +0 -68
  290. package/dist/chunk-7ADONGSB.js +0 -49
  291. package/dist/chunk-7CR6MLD5.js +0 -141
  292. package/dist/chunk-7FWZIAFP.js +0 -482
  293. package/dist/chunk-7GYYIDMA.js +0 -325
  294. package/dist/chunk-A7FN3S4I.js +0 -150
  295. package/dist/chunk-ACYYQJ6M.js +0 -106
  296. package/dist/chunk-AP42636I.js +0 -98
  297. package/dist/chunk-BPAZBRCR.js +0 -150
  298. package/dist/chunk-BYNMOQBB.js +0 -313
  299. package/dist/chunk-BZBVSB43.js +0 -147
  300. package/dist/chunk-CGZPOI6H.js +0 -93
  301. package/dist/chunk-CTAQ5WEN.js +0 -95
  302. package/dist/chunk-CWNEDREV.js +0 -165
  303. package/dist/chunk-DE5WMG6P.js +0 -291
  304. package/dist/chunk-DJCTERZH.js +0 -92
  305. package/dist/chunk-DUMPRNDR.js +0 -389
  306. package/dist/chunk-DYSLYJ2W.js +0 -92
  307. package/dist/chunk-DZXZ3YEL.js +0 -137
  308. package/dist/chunk-E36I27WK.js +0 -362
  309. package/dist/chunk-EIH6ABOR.js +0 -286
  310. package/dist/chunk-EJZBG5RT.js +0 -298
  311. package/dist/chunk-EQW6IUHG.js +0 -163
  312. package/dist/chunk-ETTYERGO.js +0 -83
  313. package/dist/chunk-F5TZIFMW.js +0 -145
  314. package/dist/chunk-FC7RXQTM.js +0 -153
  315. package/dist/chunk-FGM7KB2Q.js +0 -681
  316. package/dist/chunk-FP7SBCPO.js +0 -253
  317. package/dist/chunk-FUI6WG2F.js +0 -757
  318. package/dist/chunk-G3SWTL27.js +0 -119
  319. package/dist/chunk-GY75BFAV.js +0 -547
  320. package/dist/chunk-HA5QZ76M.js +0 -143
  321. package/dist/chunk-HBFFINAI.js +0 -58
  322. package/dist/chunk-HMYVPBWI.js +0 -404
  323. package/dist/chunk-HZBE2RY4.js +0 -290
  324. package/dist/chunk-IXTYS3EK.js +0 -140
  325. package/dist/chunk-JCMGBKS6.js +0 -59
  326. package/dist/chunk-JCPTFBLY.js +0 -112
  327. package/dist/chunk-JKEF7NB3.js +0 -243
  328. package/dist/chunk-JKZ5ZRDG.js +0 -136
  329. package/dist/chunk-JTVFVAM3.js +0 -47
  330. package/dist/chunk-K2DJDJZR.js +0 -139
  331. package/dist/chunk-K3CIXMN4.js +0 -212
  332. package/dist/chunk-K6DYTMBE.js +0 -111
  333. package/dist/chunk-KA7DILCI.js +0 -649
  334. package/dist/chunk-KDA4XDXT.js +0 -67
  335. package/dist/chunk-KGDRA475.js +0 -119
  336. package/dist/chunk-KN64NDJS.js +0 -373
  337. package/dist/chunk-LD7ZJCTO.mjs +0 -167
  338. package/dist/chunk-LG55VN6B.js +0 -383
  339. package/dist/chunk-LG6KGO5D.js +0 -161
  340. package/dist/chunk-LUBUJUSH.js +0 -45
  341. package/dist/chunk-LYF6AAQ7.js +0 -418
  342. package/dist/chunk-M2XA7VU5.js +0 -364
  343. package/dist/chunk-MQ23PX3S.js +0 -218
  344. package/dist/chunk-MSKAWM7K.js +0 -73
  345. package/dist/chunk-NCLUMDZB.js +0 -100
  346. package/dist/chunk-NCT5FXQB.js +0 -373
  347. package/dist/chunk-NEVDRG6C.js +0 -537
  348. package/dist/chunk-NHNJUBYZ.js +0 -819
  349. package/dist/chunk-NOZ65AMO.js +0 -106
  350. package/dist/chunk-NTZ7LQTY.js +0 -830
  351. package/dist/chunk-NUABW6IB.mjs +0 -98
  352. package/dist/chunk-ODQOYMUQ.js +0 -72
  353. package/dist/chunk-OTNVA2UT.js +0 -212
  354. package/dist/chunk-OUBJHKWX.js +0 -199
  355. package/dist/chunk-OXIODAJS.js +0 -192
  356. package/dist/chunk-PFWRFHSB.js +0 -164
  357. package/dist/chunk-PGOTPYRG.js +0 -141
  358. package/dist/chunk-PJ66WE62.js +0 -218
  359. package/dist/chunk-PQMZ3YN3.js +0 -110
  360. package/dist/chunk-QOMWROWE.js +0 -136
  361. package/dist/chunk-QUIRQ7OA.js +0 -422
  362. package/dist/chunk-QY6PYAJA.js +0 -194
  363. package/dist/chunk-QYSFZA5V.js +0 -353
  364. package/dist/chunk-QZQYKC2N.js +0 -231
  365. package/dist/chunk-RAUERIPS.js +0 -100
  366. package/dist/chunk-RBWJSHKR.js +0 -233
  367. package/dist/chunk-RKZN3URO.js +0 -181
  368. package/dist/chunk-RLPSCEBP.js +0 -736
  369. package/dist/chunk-RUXIQ5EP.js +0 -1811
  370. package/dist/chunk-SGXLMKMO.js +0 -123
  371. package/dist/chunk-SJIW7SNA.js +0 -530
  372. package/dist/chunk-SJSZHQWX.js +0 -486
  373. package/dist/chunk-SLYUQ67P.js +0 -372
  374. package/dist/chunk-SVWZOIBI.js +0 -483
  375. package/dist/chunk-SWOQMMOT.js +0 -60
  376. package/dist/chunk-SYTYUC67.js +0 -755
  377. package/dist/chunk-T4DF24UV.js +0 -114
  378. package/dist/chunk-T5N2UHVP.js +0 -283
  379. package/dist/chunk-TAAHD4R7.js +0 -398
  380. package/dist/chunk-TAU447CL.js +0 -306
  381. package/dist/chunk-TGHB5XST.js +0 -91
  382. package/dist/chunk-TLXEFLPA.js +0 -39
  383. package/dist/chunk-TXQEHRQB.js +0 -207
  384. package/dist/chunk-U36NBQWP.js +0 -192
  385. package/dist/chunk-UFY654LD.js +0 -1005
  386. package/dist/chunk-UG6O4F2A.js +0 -150
  387. package/dist/chunk-UHVUKLHF.js +0 -112
  388. package/dist/chunk-UI7N2ZDU.js +0 -142
  389. package/dist/chunk-ULUH6UNV.js +0 -238
  390. package/dist/chunk-UWZSTI3E.js +0 -393
  391. package/dist/chunk-VAXO5NEM.js +0 -320
  392. package/dist/chunk-VH2GDZBH.js +0 -284
  393. package/dist/chunk-VJ72Y54M.js +0 -241
  394. package/dist/chunk-W5DLRGQL.js +0 -296
  395. package/dist/chunk-WGRNO4PB.js +0 -342
  396. package/dist/chunk-WNYWWGNM.js +0 -394
  397. package/dist/chunk-WUEP3PFN.js +0 -445
  398. package/dist/chunk-WYVA3JBH.js +0 -206
  399. package/dist/chunk-X5CFXNVK.js +0 -246
  400. package/dist/chunk-X6FG4RPF.js +0 -367
  401. package/dist/chunk-XAQID5IO.js +0 -167
  402. package/dist/chunk-XH4ZZ6KJ.js +0 -427
  403. package/dist/chunk-XSMDZOBF.js +0 -154
  404. package/dist/chunk-XTMGF5YP.js +0 -103
  405. package/dist/chunk-XUOGT4HG.js +0 -76
  406. package/dist/chunk-XV6IYXAP.js +0 -140
  407. package/dist/chunk-XVNN6D55.js +0 -394
  408. package/dist/chunk-XZMU7B54.js +0 -230
  409. package/dist/chunk-Z6HBM73W.js +0 -158
  410. package/dist/chunk-Z6MMA7ZE.js +0 -360
  411. package/dist/chunk-ZHSXICH7.js +0 -264
  412. package/dist/chunk-ZMGNQKXL.js +0 -233
  413. package/dist/chunk-ZNVQ2OFX.js +0 -46
  414. package/dist/chunk-ZOUJFFG4.js +0 -93
  415. package/dist/chunk-ZQD2MCNX.mjs +0 -231
  416. package/dist/chunk-ZYCOHZCM.mjs +0 -92
  417. package/dist/components/ActivityFeed.d.ts +0 -124
  418. package/dist/components/ActivityFeed.js +0 -18
  419. package/dist/components/Affix.d.ts +0 -75
  420. package/dist/components/Affix.js +0 -8
  421. package/dist/components/Alert.d.ts +0 -221
  422. package/dist/components/Alert.js +0 -9
  423. package/dist/components/Anchor.d.ts +0 -251
  424. package/dist/components/Anchor.js +0 -12
  425. package/dist/components/AnchorLink.d.mts +0 -8
  426. package/dist/components/AnchorLink.d.ts +0 -8
  427. package/dist/components/AnchorLink.js +0 -10
  428. package/dist/components/AnchorLink.mjs +0 -10
  429. package/dist/components/AreaChart.d.ts +0 -443
  430. package/dist/components/AreaChart.js +0 -15
  431. package/dist/components/AutoComplete.d.ts +0 -117
  432. package/dist/components/AutoComplete.js +0 -9
  433. package/dist/components/Avatar.d.ts +0 -162
  434. package/dist/components/Avatar.js +0 -9
  435. package/dist/components/AvatarGroup.d.ts +0 -49
  436. package/dist/components/AvatarGroup.js +0 -10
  437. package/dist/components/BackTop.d.ts +0 -88
  438. package/dist/components/BackTop.js +0 -8
  439. package/dist/components/Badge.d.ts +0 -107
  440. package/dist/components/Badge.js +0 -8
  441. package/dist/components/BarChart.d.ts +0 -400
  442. package/dist/components/BarChart.js +0 -15
  443. package/dist/components/Breadcrumb.d.ts +0 -235
  444. package/dist/components/Breadcrumb.js +0 -12
  445. package/dist/components/BreadcrumbItem.d.mts +0 -8
  446. package/dist/components/BreadcrumbItem.d.ts +0 -8
  447. package/dist/components/BreadcrumbItem.js +0 -10
  448. package/dist/components/BreadcrumbItem.mjs +0 -10
  449. package/dist/components/Button.d.ts +0 -146
  450. package/dist/components/Button.js +0 -9
  451. package/dist/components/ButtonGroup.d.ts +0 -42
  452. package/dist/components/ButtonGroup.js +0 -10
  453. package/dist/components/Calendar.d.ts +0 -68
  454. package/dist/components/Calendar.js +0 -8
  455. package/dist/components/Card.d.ts +0 -170
  456. package/dist/components/Card.js +0 -8
  457. package/dist/components/Carousel.d.ts +0 -247
  458. package/dist/components/Carousel.js +0 -8
  459. package/dist/components/Cascader.d.ts +0 -143
  460. package/dist/components/Cascader.js +0 -9
  461. package/dist/components/ChartAxis.d.ts +0 -110
  462. package/dist/components/ChartAxis.js +0 -8
  463. package/dist/components/ChartCanvas.d.ts +0 -69
  464. package/dist/components/ChartCanvas.js +0 -8
  465. package/dist/components/ChartGrid.d.ts +0 -109
  466. package/dist/components/ChartGrid.js +0 -8
  467. package/dist/components/ChartLegend.d.ts +0 -74
  468. package/dist/components/ChartLegend.js +0 -8
  469. package/dist/components/ChartSeries.d.ts +0 -52
  470. package/dist/components/ChartSeries.js +0 -8
  471. package/dist/components/ChartTooltip.d.ts +0 -58
  472. package/dist/components/ChartTooltip.js +0 -8
  473. package/dist/components/ChatWindow.d.ts +0 -255
  474. package/dist/components/ChatWindow.js +0 -16
  475. package/dist/components/Checkbox.d.ts +0 -144
  476. package/dist/components/Checkbox.js +0 -9
  477. package/dist/components/CheckboxGroup.d.ts +0 -126
  478. package/dist/components/CheckboxGroup.js +0 -10
  479. package/dist/components/Code.d.ts +0 -71
  480. package/dist/components/Code.js +0 -8
  481. package/dist/components/CodeEditor.d.ts +0 -183
  482. package/dist/components/CodeEditor.js +0 -8
  483. package/dist/components/Col.d.ts +0 -52
  484. package/dist/components/Col.js +0 -7
  485. package/dist/components/Collapse.d.ts +0 -162
  486. package/dist/components/Collapse.js +0 -10
  487. package/dist/components/CollapsePanel.d.ts +0 -112
  488. package/dist/components/CollapsePanel.js +0 -9
  489. package/dist/components/ColorPicker.d.ts +0 -70
  490. package/dist/components/ColorPicker.js +0 -8
  491. package/dist/components/ColorSwatch.d.ts +0 -79
  492. package/dist/components/ColorSwatch.js +0 -8
  493. package/dist/components/CommentThread.d.ts +0 -221
  494. package/dist/components/CommentThread.js +0 -15
  495. package/dist/components/ConfigProvider.d.ts +0 -76
  496. package/dist/components/ConfigProvider.js +0 -14
  497. package/dist/components/Container.d.ts +0 -86
  498. package/dist/components/Container.js +0 -8
  499. package/dist/components/Content.d.ts +0 -63
  500. package/dist/components/Content.js +0 -8
  501. package/dist/components/Countdown.d.ts +0 -107
  502. package/dist/components/Countdown.js +0 -8
  503. package/dist/components/CronEditor.d.ts +0 -80
  504. package/dist/components/CronEditor.js +0 -8
  505. package/dist/components/CropUpload.d.ts +0 -97
  506. package/dist/components/CropUpload.js +0 -14
  507. package/dist/components/DataTableWithToolbar.d.ts +0 -366
  508. package/dist/components/DataTableWithToolbar.js +0 -22
  509. package/dist/components/DatePicker.d.ts +0 -328
  510. package/dist/components/DatePicker.js +0 -9
  511. package/dist/components/Descriptions.d.ts +0 -204
  512. package/dist/components/Descriptions.js +0 -8
  513. package/dist/components/Divider.d.ts +0 -50
  514. package/dist/components/Divider.js +0 -8
  515. package/dist/components/DonutChart.d.ts +0 -323
  516. package/dist/components/DonutChart.js +0 -14
  517. package/dist/components/Drawer.d.ts +0 -396
  518. package/dist/components/Drawer.js +0 -10
  519. package/dist/components/Dropdown.d.ts +0 -241
  520. package/dist/components/Dropdown.js +0 -13
  521. package/dist/components/DropdownItem.d.mts +0 -73
  522. package/dist/components/DropdownItem.d.ts +0 -73
  523. package/dist/components/DropdownItem.js +0 -10
  524. package/dist/components/DropdownItem.mjs +0 -10
  525. package/dist/components/DropdownMenu.d.mts +0 -8
  526. package/dist/components/DropdownMenu.d.ts +0 -8
  527. package/dist/components/DropdownMenu.js +0 -11
  528. package/dist/components/DropdownMenu.mjs +0 -11
  529. package/dist/components/Empty.d.ts +0 -64
  530. package/dist/components/Empty.js +0 -8
  531. package/dist/components/FileManager.d.ts +0 -171
  532. package/dist/components/FileManager.js +0 -9
  533. package/dist/components/FloatButton.d.ts +0 -156
  534. package/dist/components/FloatButton.js +0 -10
  535. package/dist/components/Footer.d.ts +0 -63
  536. package/dist/components/Footer.js +0 -8
  537. package/dist/components/Form.d.ts +0 -291
  538. package/dist/components/Form.js +0 -11
  539. package/dist/components/FormItem.d.ts +0 -152
  540. package/dist/components/FormItem.js +0 -10
  541. package/dist/components/FormWizard.d.ts +0 -206
  542. package/dist/components/FormWizard.js +0 -12
  543. package/dist/components/FunnelChart.d.ts +0 -221
  544. package/dist/components/FunnelChart.js +0 -13
  545. package/dist/components/Gantt.d.ts +0 -231
  546. package/dist/components/Gantt.js +0 -9
  547. package/dist/components/GaugeChart.d.ts +0 -182
  548. package/dist/components/GaugeChart.js +0 -9
  549. package/dist/components/Header.d.ts +0 -82
  550. package/dist/components/Header.js +0 -8
  551. package/dist/components/HeatmapChart.d.ts +0 -233
  552. package/dist/components/HeatmapChart.js +0 -11
  553. package/dist/components/Icon.d.ts +0 -68
  554. package/dist/components/Icon.js +0 -8
  555. package/dist/components/Image.d.ts +0 -129
  556. package/dist/components/Image.js +0 -13
  557. package/dist/components/ImageAnnotation.d.ts +0 -179
  558. package/dist/components/ImageAnnotation.js +0 -8
  559. package/dist/components/ImageCropper.d.ts +0 -105
  560. package/dist/components/ImageCropper.js +0 -8
  561. package/dist/components/ImageGroup.d.ts +0 -30
  562. package/dist/components/ImageGroup.js +0 -11
  563. package/dist/components/ImagePreview.d.ts +0 -97
  564. package/dist/components/ImagePreview.js +0 -8
  565. package/dist/components/ImageViewer.d.ts +0 -136
  566. package/dist/components/ImageViewer.js +0 -9
  567. package/dist/components/InfiniteScroll.d.ts +0 -116
  568. package/dist/components/InfiniteScroll.js +0 -9
  569. package/dist/components/Input.d.ts +0 -268
  570. package/dist/components/Input.js +0 -8
  571. package/dist/components/InputGroup.d.ts +0 -77
  572. package/dist/components/InputGroup.js +0 -12
  573. package/dist/components/InputNumber.d.ts +0 -170
  574. package/dist/components/InputNumber.js +0 -8
  575. package/dist/components/Kanban.d.ts +0 -180
  576. package/dist/components/Kanban.js +0 -10
  577. package/dist/components/Layout.d.ts +0 -45
  578. package/dist/components/Layout.js +0 -8
  579. package/dist/components/LineChart.d.ts +0 -434
  580. package/dist/components/LineChart.js +0 -15
  581. package/dist/components/Link.d.ts +0 -89
  582. package/dist/components/Link.js +0 -8
  583. package/dist/components/List.d.ts +0 -342
  584. package/dist/components/List.js +0 -10
  585. package/dist/components/Loading.d.ts +0 -133
  586. package/dist/components/Loading.js +0 -10
  587. package/dist/components/MarkdownEditor.d.ts +0 -149
  588. package/dist/components/MarkdownEditor.js +0 -8
  589. package/dist/components/Mentions.d.ts +0 -88
  590. package/dist/components/Mentions.js +0 -8
  591. package/dist/components/Menu.d.ts +0 -554
  592. package/dist/components/Menu.js +0 -17
  593. package/dist/components/MenuItem.d.mts +0 -8
  594. package/dist/components/MenuItem.d.ts +0 -8
  595. package/dist/components/MenuItem.js +0 -11
  596. package/dist/components/MenuItem.mjs +0 -11
  597. package/dist/components/MenuItemGroup.d.mts +0 -8
  598. package/dist/components/MenuItemGroup.d.ts +0 -8
  599. package/dist/components/MenuItemGroup.js +0 -11
  600. package/dist/components/MenuItemGroup.mjs +0 -11
  601. package/dist/components/Message.js +0 -11
  602. package/dist/components/Modal.d.ts +0 -381
  603. package/dist/components/Modal.js +0 -12
  604. package/dist/components/Notification.js +0 -11
  605. package/dist/components/NotificationCenter.d.ts +0 -213
  606. package/dist/components/NotificationCenter.js +0 -18
  607. package/dist/components/NumberKeyboard.d.ts +0 -154
  608. package/dist/components/NumberKeyboard.js +0 -9
  609. package/dist/components/OrgChart.d.ts +0 -195
  610. package/dist/components/OrgChart.js +0 -9
  611. package/dist/components/Pagination.d.ts +0 -392
  612. package/dist/components/Pagination.js +0 -9
  613. package/dist/components/PieChart.d.ts +0 -296
  614. package/dist/components/PieChart.js +0 -13
  615. package/dist/components/Popconfirm.d.ts +0 -173
  616. package/dist/components/Popconfirm.js +0 -10
  617. package/dist/components/Popover.d.ts +0 -138
  618. package/dist/components/Popover.js +0 -10
  619. package/dist/components/PrintLayout.d.ts +0 -97
  620. package/dist/components/PrintLayout.js +0 -10
  621. package/dist/components/Progress.d.ts +0 -150
  622. package/dist/components/Progress.js +0 -8
  623. package/dist/components/QRCode.d.ts +0 -95
  624. package/dist/components/QRCode.js +0 -9
  625. package/dist/components/RadarChart.d.ts +0 -454
  626. package/dist/components/RadarChart.js +0 -13
  627. package/dist/components/Radio.d.ts +0 -143
  628. package/dist/components/Radio.js +0 -9
  629. package/dist/components/RadioGroup.d.ts +0 -135
  630. package/dist/components/RadioGroup.js +0 -10
  631. package/dist/components/Rate.d.ts +0 -80
  632. package/dist/components/Rate.js +0 -8
  633. package/dist/components/Resizable.d.ts +0 -138
  634. package/dist/components/Resizable.js +0 -8
  635. package/dist/components/Result.d.ts +0 -64
  636. package/dist/components/Result.js +0 -9
  637. package/dist/components/RichTextEditor.d.ts +0 -123
  638. package/dist/components/RichTextEditor.js +0 -8
  639. package/dist/components/Row.d.ts +0 -90
  640. package/dist/components/Row.js +0 -8
  641. package/dist/components/ScatterChart.d.ts +0 -391
  642. package/dist/components/ScatterChart.js +0 -15
  643. package/dist/components/ScrollSpy.d.ts +0 -125
  644. package/dist/components/ScrollSpy.js +0 -8
  645. package/dist/components/Segmented.d.ts +0 -70
  646. package/dist/components/Segmented.js +0 -8
  647. package/dist/components/Select.d.ts +0 -292
  648. package/dist/components/Select.js +0 -9
  649. package/dist/components/Sidebar.d.ts +0 -101
  650. package/dist/components/Sidebar.js +0 -8
  651. package/dist/components/Signature.d.ts +0 -163
  652. package/dist/components/Signature.js +0 -9
  653. package/dist/components/Skeleton.d.ts +0 -96
  654. package/dist/components/Skeleton.js +0 -8
  655. package/dist/components/Slider.d.ts +0 -228
  656. package/dist/components/Slider.js +0 -8
  657. package/dist/components/Space.d.ts +0 -49
  658. package/dist/components/Space.js +0 -8
  659. package/dist/components/Splitter.d.ts +0 -99
  660. package/dist/components/Splitter.js +0 -8
  661. package/dist/components/Spotlight.d.ts +0 -206
  662. package/dist/components/Spotlight.js +0 -10
  663. package/dist/components/Statistic.d.ts +0 -103
  664. package/dist/components/Statistic.js +0 -8
  665. package/dist/components/Stepper.d.ts +0 -79
  666. package/dist/components/Stepper.js +0 -8
  667. package/dist/components/Steps.d.ts +0 -298
  668. package/dist/components/Steps.js +0 -12
  669. package/dist/components/StepsItem.d.mts +0 -8
  670. package/dist/components/StepsItem.d.ts +0 -8
  671. package/dist/components/StepsItem.js +0 -10
  672. package/dist/components/StepsItem.mjs +0 -10
  673. package/dist/components/SubMenu.d.mts +0 -8
  674. package/dist/components/SubMenu.d.ts +0 -8
  675. package/dist/components/SubMenu.js +0 -11
  676. package/dist/components/SubMenu.mjs +0 -11
  677. package/dist/components/SunburstChart.d.ts +0 -212
  678. package/dist/components/SunburstChart.js +0 -13
  679. package/dist/components/Switch.d.ts +0 -94
  680. package/dist/components/Switch.js +0 -8
  681. package/dist/components/TabPane.d.mts +0 -8
  682. package/dist/components/TabPane.d.ts +0 -8
  683. package/dist/components/TabPane.js +0 -10
  684. package/dist/components/TabPane.mjs +0 -10
  685. package/dist/components/Table.d.ts +0 -509
  686. package/dist/components/Table.js +0 -15
  687. package/dist/components/Tabs.d.ts +0 -408
  688. package/dist/components/Tabs.js +0 -12
  689. package/dist/components/Tag.d.ts +0 -120
  690. package/dist/components/Tag.js +0 -8
  691. package/dist/components/TaskBoard.d.ts +0 -190
  692. package/dist/components/TaskBoard.js +0 -9
  693. package/dist/components/Text.d.ts +0 -161
  694. package/dist/components/Text.js +0 -8
  695. package/dist/components/Textarea.d.ts +0 -308
  696. package/dist/components/Textarea.js +0 -8
  697. package/dist/components/TimePicker.d.ts +0 -372
  698. package/dist/components/TimePicker.js +0 -10
  699. package/dist/components/Timeline.d.ts +0 -124
  700. package/dist/components/Timeline.js +0 -9
  701. package/dist/components/Tooltip.d.ts +0 -116
  702. package/dist/components/Tooltip.js +0 -10
  703. package/dist/components/Tour.d.ts +0 -129
  704. package/dist/components/Tour.js +0 -10
  705. package/dist/components/Transfer.d.ts +0 -112
  706. package/dist/components/Transfer.js +0 -9
  707. package/dist/components/Tree.d.ts +0 -485
  708. package/dist/components/Tree.js +0 -10
  709. package/dist/components/TreeMapChart.d.ts +0 -221
  710. package/dist/components/TreeMapChart.js +0 -13
  711. package/dist/components/TreeSelect.d.ts +0 -121
  712. package/dist/components/TreeSelect.js +0 -9
  713. package/dist/components/Upload.d.ts +0 -355
  714. package/dist/components/Upload.js +0 -9
  715. package/dist/components/VirtualList.d.ts +0 -78
  716. package/dist/components/VirtualList.js +0 -8
  717. package/dist/components/VirtualTable.d.ts +0 -166
  718. package/dist/components/VirtualTable.js +0 -9
  719. package/dist/components/Watermark.d.ts +0 -144
  720. package/dist/components/Watermark.js +0 -8
  721. package/dist/index.d.ts +0 -286
  722. package/dist/index.js +0 -838
  723. /package/dist/{chunk-R2HO74FE.mjs → chunk-PE5OA4YG.mjs} +0 -0
@@ -1,1811 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
- var _chunkRLPSCEBPjs = require('./chunk-RLPSCEBP.js');
4
-
5
-
6
- var _chunk3QV2D54Hjs = require('./chunk-3QV2D54H.js');
7
-
8
-
9
- var _chunkNOZ65AMOjs = require('./chunk-NOZ65AMO.js');
10
-
11
-
12
- var _chunkPFWRFHSBjs = require('./chunk-PFWRFHSB.js');
13
-
14
-
15
- var _chunkIXTYS3EKjs = require('./chunk-IXTYS3EK.js');
16
-
17
- // src/components/Table.ts
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
- var _vue = require('vue');
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
- var _tigercatcore = require('@expcat/tigercat-core');
52
-
53
-
54
- // src/components/Table/props.ts
55
- var tableProps = {
56
- columns: {
57
- type: Array,
58
- required: true
59
- },
60
- columnLockable: {
61
- type: Boolean,
62
- default: false
63
- },
64
- dataSource: {
65
- type: Array,
66
- default: () => []
67
- },
68
- hiddenColumnKeys: {
69
- type: Array,
70
- default: void 0
71
- },
72
- defaultHiddenColumnKeys: {
73
- type: Array,
74
- default: void 0
75
- },
76
- sort: {
77
- type: Object
78
- },
79
- defaultSort: {
80
- type: Object,
81
- default: () => ({
82
- key: null,
83
- direction: null
84
- })
85
- },
86
- filters: {
87
- type: Object
88
- },
89
- defaultFilters: {
90
- type: Object,
91
- default: () => ({})
92
- },
93
- size: {
94
- type: String,
95
- default: "md"
96
- },
97
- bordered: {
98
- type: Boolean,
99
- default: false
100
- },
101
- striped: {
102
- type: Boolean,
103
- default: false
104
- },
105
- hoverable: {
106
- type: Boolean,
107
- default: true
108
- },
109
- loading: {
110
- type: Boolean,
111
- default: false
112
- },
113
- locale: {
114
- type: [Object, Function]
115
- },
116
- labels: {
117
- type: Object
118
- },
119
- emptyText: {
120
- type: String,
121
- default: void 0
122
- },
123
- pagination: {
124
- type: [Object, Boolean],
125
- default: () => ({
126
- current: 1,
127
- pageSize: 10,
128
- total: 0,
129
- pageSizeOptions: [10, 20, 50, 100],
130
- showSizeChanger: true,
131
- showTotal: true
132
- })
133
- },
134
- rowSelection: {
135
- type: Object
136
- },
137
- expandable: {
138
- type: Object
139
- },
140
- rowKey: {
141
- type: [String, Function],
142
- default: "id"
143
- },
144
- rowClassName: {
145
- type: [String, Function]
146
- },
147
- stickyHeader: {
148
- type: Boolean,
149
- default: false
150
- },
151
- maxHeight: {
152
- type: [String, Number]
153
- },
154
- tableLayout: {
155
- type: String,
156
- default: "auto"
157
- },
158
- responsiveMode: {
159
- type: String,
160
- default: "scroll"
161
- },
162
- cardBreakpoint: {
163
- type: String,
164
- default: "sm"
165
- },
166
- cardClassName: {
167
- type: [String, Function]
168
- },
169
- renderCard: {
170
- type: Function
171
- },
172
- cardSelectionPosition: {
173
- type: String,
174
- default: "controls-row"
175
- },
176
- cardPadding: {
177
- type: [String, Boolean],
178
- default: void 0
179
- },
180
- cardFieldGap: {
181
- type: String,
182
- default: "gap-3"
183
- },
184
- // --- v0.6.0 props ---
185
- virtual: { type: Boolean, default: false },
186
- autoVirtual: { type: Boolean, default: true },
187
- virtualHeight: { type: Number, default: 400 },
188
- virtualItemHeight: { type: Number, default: 40 },
189
- autoVirtualThreshold: { type: Number, default: 1e4 },
190
- virtualThreshold: { type: Number, default: 1e3 },
191
- editable: { type: Boolean, default: false },
192
- editableCells: { type: Object },
193
- filterMode: { type: String, default: "basic" },
194
- advancedFilterRules: { type: Array, default: () => [] },
195
- columnDraggable: { type: Boolean, default: false },
196
- rowDraggable: { type: Boolean, default: false },
197
- summaryRow: { type: Object },
198
- groupBy: { type: String },
199
- exportable: { type: Boolean, default: false },
200
- exportFormat: { type: String, default: "csv" },
201
- exportFilename: { type: String, default: "export" },
202
- cardLayout: {
203
- type: Array,
204
- default: void 0
205
- }
206
- };
207
- var tableEmits = [
208
- "change",
209
- "row-click",
210
- "selection-change",
211
- "sort-change",
212
- "filter-change",
213
- "update:hiddenColumnKeys",
214
- "hidden-column-keys-change",
215
- "page-change",
216
- "expand-change",
217
- "cell-change",
218
- "column-order-change",
219
- "row-order-change",
220
- "export"
221
- ];
222
-
223
- // src/components/Table/state.ts
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
- function useTableState(props, emit, measuredColumnWidths) {
240
- const paginationConfig = _vue.computed.call(void 0, () => {
241
- return props.pagination !== false && typeof props.pagination === "object" ? props.pagination : null;
242
- });
243
- const isSortControlled = _vue.computed.call(void 0, () => props.sort !== void 0);
244
- const isHiddenColumnsControlled = _vue.computed.call(void 0, () => props.hiddenColumnKeys !== void 0);
245
- const isFiltersControlled = _vue.computed.call(void 0, () => props.filters !== void 0);
246
- const isSelectionControlled = _vue.computed.call(void 0, () => _optionalChain([props, 'access', _ => _.rowSelection, 'optionalAccess', _2 => _2.selectedRowKeys]) !== void 0);
247
- const isExpandControlled = _vue.computed.call(void 0, () => _optionalChain([props, 'access', _3 => _3.expandable, 'optionalAccess', _4 => _4.expandedRowKeys]) !== void 0);
248
- const uncontrolledSortState = _vue.ref.call(void 0, _nullishCoalesce(props.defaultSort, () => ( { key: null, direction: null })));
249
- const uncontrolledHiddenColumnKeys = _vue.ref.call(void 0,
250
- _nullishCoalesce(_nullishCoalesce(props.defaultHiddenColumnKeys, () => ( props.hiddenColumnKeys)), () => ( []))
251
- );
252
- const uncontrolledFilterState = _vue.ref.call(void 0, _nullishCoalesce(props.defaultFilters, () => ( {})));
253
- const uncontrolledCurrentPage = _vue.ref.call(void 0,
254
- _nullishCoalesce(_nullishCoalesce(_optionalChain([paginationConfig, 'access', _5 => _5.value, 'optionalAccess', _6 => _6.defaultCurrent]), () => ( _optionalChain([paginationConfig, 'access', _7 => _7.value, 'optionalAccess', _8 => _8.current]))), () => ( 1))
255
- );
256
- const uncontrolledCurrentPageSize = _vue.ref.call(void 0,
257
- _nullishCoalesce(_nullishCoalesce(_optionalChain([paginationConfig, 'access', _9 => _9.value, 'optionalAccess', _10 => _10.defaultPageSize]), () => ( _optionalChain([paginationConfig, 'access', _11 => _11.value, 'optionalAccess', _12 => _12.pageSize]))), () => ( 10))
258
- );
259
- const uncontrolledSelectedRowKeys = _vue.ref.call(void 0,
260
- _nullishCoalesce(_nullishCoalesce(_optionalChain([props, 'access', _13 => _13.rowSelection, 'optionalAccess', _14 => _14.defaultSelectedRowKeys]), () => ( _optionalChain([props, 'access', _15 => _15.rowSelection, 'optionalAccess', _16 => _16.selectedRowKeys]))), () => ( []))
261
- );
262
- const uncontrolledExpandedRowKeys = _vue.ref.call(void 0,
263
- _nullishCoalesce(_nullishCoalesce(_optionalChain([props, 'access', _17 => _17.expandable, 'optionalAccess', _18 => _18.defaultExpandedRowKeys]), () => ( _optionalChain([props, 'access', _19 => _19.expandable, 'optionalAccess', _20 => _20.expandedRowKeys]))), () => ( []))
264
- );
265
- const sortState = _vue.computed.call(void 0, () => _nullishCoalesce(props.sort, () => ( uncontrolledSortState.value)));
266
- const hiddenColumnKeys = _vue.computed.call(void 0,
267
- () => _nullishCoalesce(props.hiddenColumnKeys, () => ( uncontrolledHiddenColumnKeys.value))
268
- );
269
- const filterState = _vue.computed.call(void 0, () => _nullishCoalesce(props.filters, () => ( uncontrolledFilterState.value)));
270
- const currentPage = _vue.computed.call(void 0, () => {
271
- return _nullishCoalesce(_optionalChain([paginationConfig, 'access', _21 => _21.value, 'optionalAccess', _22 => _22.current]), () => ( uncontrolledCurrentPage.value));
272
- });
273
- const currentPageSize = _vue.computed.call(void 0, () => {
274
- return _nullishCoalesce(_optionalChain([paginationConfig, 'access', _23 => _23.value, 'optionalAccess', _24 => _24.pageSize]), () => ( uncontrolledCurrentPageSize.value));
275
- });
276
- const selectedRowKeys = _vue.computed.call(void 0, () => {
277
- return _nullishCoalesce(_optionalChain([props, 'access', _25 => _25.rowSelection, 'optionalAccess', _26 => _26.selectedRowKeys]), () => ( uncontrolledSelectedRowKeys.value));
278
- });
279
- const expandedRowKeys = _vue.computed.call(void 0, () => {
280
- return _nullishCoalesce(_optionalChain([props, 'access', _27 => _27.expandable, 'optionalAccess', _28 => _28.expandedRowKeys]), () => ( uncontrolledExpandedRowKeys.value));
281
- });
282
- _vue.watch.call(void 0,
283
- () => props.sort,
284
- (next) => {
285
- if (next !== void 0) {
286
- uncontrolledSortState.value = next;
287
- }
288
- }
289
- );
290
- _vue.watch.call(void 0,
291
- () => props.filters,
292
- (next) => {
293
- if (next !== void 0) {
294
- uncontrolledFilterState.value = next;
295
- }
296
- }
297
- );
298
- _vue.watch.call(void 0,
299
- () => props.hiddenColumnKeys,
300
- (next) => {
301
- if (next !== void 0) {
302
- uncontrolledHiddenColumnKeys.value = next;
303
- }
304
- }
305
- );
306
- _vue.watch.call(void 0,
307
- () => _optionalChain([paginationConfig, 'access', _29 => _29.value, 'optionalAccess', _30 => _30.current]),
308
- (next) => {
309
- if (next !== void 0) {
310
- uncontrolledCurrentPage.value = next;
311
- }
312
- }
313
- );
314
- _vue.watch.call(void 0,
315
- () => _optionalChain([paginationConfig, 'access', _31 => _31.value, 'optionalAccess', _32 => _32.pageSize]),
316
- (next) => {
317
- if (next !== void 0) {
318
- uncontrolledCurrentPageSize.value = next;
319
- }
320
- }
321
- );
322
- _vue.watch.call(void 0,
323
- () => _optionalChain([props, 'access', _33 => _33.rowSelection, 'optionalAccess', _34 => _34.selectedRowKeys]),
324
- (next) => {
325
- if (next !== void 0) {
326
- uncontrolledSelectedRowKeys.value = next;
327
- }
328
- }
329
- );
330
- _vue.watch.call(void 0,
331
- () => _optionalChain([props, 'access', _35 => _35.expandable, 'optionalAccess', _36 => _36.expandedRowKeys]),
332
- (next) => {
333
- if (next !== void 0) {
334
- uncontrolledExpandedRowKeys.value = next;
335
- }
336
- }
337
- );
338
- const fixedOverrides = _vue.ref.call(void 0, {});
339
- const displayColumns = _vue.computed.call(void 0, () => {
340
- const mapped = props.columns.map((column) => {
341
- const hasOverride = column.key in fixedOverrides.value;
342
- return {
343
- ...column,
344
- fixed: hasOverride ? fixedOverrides.value[column.key] : column.fixed
345
- };
346
- });
347
- return _tigercatcore.orderTableFixedColumns.call(void 0, _tigercatcore.filterHiddenColumns.call(void 0, mapped, hiddenColumnKeys.value));
348
- });
349
- const fixedColumnsInfo = _vue.computed.call(void 0, () => {
350
- return _tigercatcore.getFixedColumnOffsets.call(void 0, displayColumns.value, measuredColumnWidths.value);
351
- });
352
- const frozenColumnWidths = _vue.ref.call(void 0, {});
353
- _vue.watch.call(void 0,
354
- [() => measuredColumnWidths.value, displayColumns],
355
- () => {
356
- frozenColumnWidths.value = _tigercatcore.freezeTableColumnWidths.call(void 0,
357
- displayColumns.value,
358
- measuredColumnWidths.value,
359
- frozenColumnWidths.value
360
- );
361
- },
362
- { immediate: true }
363
- );
364
- const columnByKey = _vue.computed.call(void 0, () => {
365
- const map = {};
366
- for (const column of displayColumns.value) {
367
- map[column.key] = column;
368
- }
369
- return map;
370
- });
371
- function handleSetHiddenColumns(hiddenKeys) {
372
- if (!isHiddenColumnsControlled.value) {
373
- uncontrolledHiddenColumnKeys.value = hiddenKeys;
374
- }
375
- emit("update:hiddenColumnKeys", hiddenKeys);
376
- emit("hidden-column-keys-change", hiddenKeys);
377
- }
378
- function toggleColumnLock(columnKey) {
379
- const original = _optionalChain([props, 'access', _37 => _37.columns, 'access', _38 => _38.find, 'call', _39 => _39((c) => c.key === columnKey), 'optionalAccess', _40 => _40.fixed]);
380
- const hasOverride = columnKey in fixedOverrides.value;
381
- const current = hasOverride ? fixedOverrides.value[columnKey] : original;
382
- const isLocked = current === "left" || current === "right";
383
- fixedOverrides.value[columnKey] = isLocked ? false : "left";
384
- }
385
- const processedData = _vue.computed.call(void 0, () => {
386
- let data = _nullishCoalesce(props.dataSource, () => ( []));
387
- if (props.filterMode === "advanced" && (_nullishCoalesce(_optionalChain([props, 'access', _41 => _41.advancedFilterRules, 'optionalAccess', _42 => _42.length]), () => ( 0))) > 0) {
388
- data = _tigercatcore.filterDataAdvanced.call(void 0, data, _nullishCoalesce(props.advancedFilterRules, () => ( [])));
389
- } else {
390
- data = _tigercatcore.filterData.call(void 0, data, filterState.value);
391
- }
392
- if (sortState.value.key && sortState.value.direction) {
393
- const column = columnByKey.value[sortState.value.key];
394
- data = _tigercatcore.sortData.call(void 0, data, sortState.value.key, sortState.value.direction, _optionalChain([column, 'optionalAccess', _43 => _43.sortFn]));
395
- }
396
- return data;
397
- });
398
- const paginatedData = _vue.computed.call(void 0, () => {
399
- if (props.pagination === false) {
400
- return processedData.value;
401
- }
402
- return _tigercatcore.paginateData.call(void 0, processedData.value, currentPage.value, currentPageSize.value);
403
- });
404
- const paginatedRowKeys = _vue.computed.call(void 0, () => {
405
- return _tigercatcore.createTableRowKeyCache.call(void 0, props.rowKey).getMany(
406
- paginatedData.value
407
- );
408
- });
409
- const selectedRowKeySet = _vue.computed.call(void 0, () => {
410
- return new Set(selectedRowKeys.value);
411
- });
412
- const expandedRowKeySet = _vue.computed.call(void 0, () => {
413
- return new Set(expandedRowKeys.value);
414
- });
415
- const totalColumnCount = _vue.computed.call(void 0, () => {
416
- let count = displayColumns.value.length;
417
- if (props.rowSelection) count += 1;
418
- if (props.expandable) count += 1;
419
- return count;
420
- });
421
- const paginationInfo = _vue.computed.call(void 0, () => {
422
- if (props.pagination === false) {
423
- return null;
424
- }
425
- const total = _optionalChain([paginationConfig, 'access', _44 => _44.value, 'optionalAccess', _45 => _45.total]) !== void 0 && paginationConfig.value.total > 0 ? paginationConfig.value.total : processedData.value.length;
426
- return _tigercatcore.calculatePagination.call(void 0, total, currentPage.value, currentPageSize.value);
427
- });
428
- function handleSetSort(nextSortState) {
429
- if (!isSortControlled.value) {
430
- uncontrolledSortState.value = nextSortState;
431
- }
432
- emit("sort-change", nextSortState);
433
- emit("change", {
434
- sort: nextSortState,
435
- filters: filterState.value,
436
- pagination: props.pagination !== false ? {
437
- current: currentPage.value,
438
- pageSize: currentPageSize.value
439
- } : null
440
- });
441
- }
442
- function handleSort(columnKey) {
443
- const column = displayColumns.value.find((col) => col.key === columnKey);
444
- if (!column || !column.sortable) {
445
- return;
446
- }
447
- let newDirection = "asc";
448
- if (sortState.value.key === columnKey) {
449
- if (sortState.value.direction === "asc") {
450
- newDirection = "desc";
451
- } else if (sortState.value.direction === "desc") {
452
- newDirection = null;
453
- }
454
- }
455
- handleSetSort({
456
- key: newDirection ? columnKey : null,
457
- direction: newDirection
458
- });
459
- }
460
- function handleFilter(columnKey, value) {
461
- const nextFilterState = {
462
- ...filterState.value,
463
- [columnKey]: value
464
- };
465
- if (!isFiltersControlled.value) {
466
- uncontrolledFilterState.value = nextFilterState;
467
- }
468
- uncontrolledCurrentPage.value = 1;
469
- emit("filter-change", nextFilterState);
470
- emit("change", {
471
- sort: sortState.value,
472
- filters: nextFilterState,
473
- pagination: props.pagination !== false ? {
474
- current: 1,
475
- pageSize: currentPageSize.value
476
- } : null
477
- });
478
- }
479
- function handlePageChange(page) {
480
- uncontrolledCurrentPage.value = page;
481
- emit("page-change", { current: page, pageSize: currentPageSize.value });
482
- emit("change", {
483
- sort: sortState.value,
484
- filters: filterState.value,
485
- pagination: {
486
- current: page,
487
- pageSize: currentPageSize.value
488
- }
489
- });
490
- }
491
- function handlePageSizeChange(pageSize) {
492
- uncontrolledCurrentPageSize.value = pageSize;
493
- uncontrolledCurrentPage.value = 1;
494
- emit("page-change", { current: 1, pageSize });
495
- emit("change", {
496
- sort: sortState.value,
497
- filters: filterState.value,
498
- pagination: {
499
- current: 1,
500
- pageSize
501
- }
502
- });
503
- }
504
- function handleToggleExpand(key, record) {
505
- const isExpanded = expandedRowKeySet.value.has(key);
506
- const newKeys = isExpanded ? expandedRowKeys.value.filter((k) => k !== key) : [...expandedRowKeys.value, key];
507
- if (!isExpandControlled.value) {
508
- uncontrolledExpandedRowKeys.value = newKeys;
509
- }
510
- emit("expand-change", newKeys, record, !isExpanded);
511
- }
512
- function handleRowClick(record, index, key) {
513
- emit("row-click", record, index);
514
- if (_optionalChain([props, 'access', _46 => _46.expandable, 'optionalAccess', _47 => _47.expandRowByClick])) {
515
- const isExpandable = _optionalChain([props, 'access', _48 => _48.expandable, 'optionalAccess', _49 => _49.rowExpandable]) ? props.expandable.rowExpandable(record) : true;
516
- if (isExpandable) {
517
- handleToggleExpand(key, record);
518
- }
519
- }
520
- }
521
- function handleSelectRow(key, checked) {
522
- let newKeys;
523
- if (_optionalChain([props, 'access', _50 => _50.rowSelection, 'optionalAccess', _51 => _51.type]) === "radio") {
524
- newKeys = checked ? [key] : [];
525
- } else {
526
- if (checked) {
527
- newKeys = [...selectedRowKeys.value, key];
528
- } else {
529
- newKeys = selectedRowKeys.value.filter((k) => k !== key);
530
- }
531
- }
532
- if (!isSelectionControlled.value) {
533
- uncontrolledSelectedRowKeys.value = newKeys;
534
- }
535
- emit("selection-change", newKeys);
536
- }
537
- function handleSelectAll(checked) {
538
- if (checked) {
539
- const nextKeys = paginatedRowKeys.value;
540
- if (!isSelectionControlled.value) {
541
- uncontrolledSelectedRowKeys.value = nextKeys;
542
- }
543
- emit("selection-change", nextKeys);
544
- } else {
545
- if (!isSelectionControlled.value) {
546
- uncontrolledSelectedRowKeys.value = [];
547
- }
548
- emit("selection-change", []);
549
- }
550
- }
551
- const allSelected = _vue.computed.call(void 0, () => {
552
- if (paginatedRowKeys.value.length === 0) {
553
- return false;
554
- }
555
- return paginatedRowKeys.value.every((key) => selectedRowKeySet.value.has(key));
556
- });
557
- const someSelected = _vue.computed.call(void 0, () => {
558
- return selectedRowKeys.value.length > 0 && !allSelected.value;
559
- });
560
- const editingCell = _vue.ref.call(void 0, null);
561
- const editingValue = _vue.ref.call(void 0, "");
562
- function isCellEditable(columnKey, rowIndex) {
563
- if (!props.editable) return false;
564
- if (!props.editableCells) return true;
565
- return !!_optionalChain([props, 'access', _52 => _52.editableCells, 'access', _53 => _53.get, 'call', _54 => _54(columnKey), 'optionalAccess', _55 => _55.has, 'call', _56 => _56(rowIndex)]);
566
- }
567
- function startEditing(rowIndex, columnKey, currentValue) {
568
- editingCell.value = { rowIndex, columnKey };
569
- editingValue.value = String(_nullishCoalesce(currentValue, () => ( "")));
570
- }
571
- function commitEdit() {
572
- if (editingCell.value) {
573
- emit(
574
- "cell-change",
575
- editingCell.value.rowIndex,
576
- editingCell.value.columnKey,
577
- editingValue.value
578
- );
579
- editingCell.value = null;
580
- }
581
- }
582
- function cancelEdit() {
583
- editingCell.value = null;
584
- }
585
- function handleExport() {
586
- const content = _tigercatcore.exportTableData.call(void 0, displayColumns.value, processedData.value, props.exportFormat);
587
- _tigercatcore.downloadTableExport.call(void 0, content, props.exportFilename, props.exportFormat);
588
- emit("export", content);
589
- }
590
- const dragColumnKey = _vue.ref.call(void 0, null);
591
- function handleDragStart(columnKey) {
592
- dragColumnKey.value = columnKey;
593
- }
594
- function handleDrop(targetKey) {
595
- if (!dragColumnKey.value || dragColumnKey.value === targetKey) return;
596
- const cols = [...displayColumns.value];
597
- const fromIdx = cols.findIndex((c) => c.key === dragColumnKey.value);
598
- const toIdx = cols.findIndex((c) => c.key === targetKey);
599
- if (fromIdx >= 0 && toIdx >= 0) {
600
- const [moved] = cols.splice(fromIdx, 1);
601
- cols.splice(toIdx, 0, moved);
602
- emit("column-order-change", cols);
603
- }
604
- dragColumnKey.value = null;
605
- }
606
- const dragRowKey = _vue.ref.call(void 0, null);
607
- function handleRowDragStart(rowKeyValue) {
608
- dragRowKey.value = rowKeyValue;
609
- }
610
- function handleRowDrop(targetKey) {
611
- if (dragRowKey.value === null || dragRowKey.value === targetKey) return;
612
- const rows = [...paginatedData.value];
613
- const fromIdx = paginatedRowKeys.value.findIndex((key) => key === dragRowKey.value);
614
- const toIdx = paginatedRowKeys.value.findIndex((key) => key === targetKey);
615
- if (fromIdx >= 0 && toIdx >= 0) {
616
- const [moved] = rows.splice(fromIdx, 1);
617
- rows.splice(toIdx, 0, moved);
618
- emit("row-order-change", rows);
619
- }
620
- dragRowKey.value = null;
621
- }
622
- const virtualScrollTop = _vue.ref.call(void 0, 0);
623
- const groupedData = _vue.computed.call(void 0, () => {
624
- if (!props.groupBy) return null;
625
- return _tigercatcore.groupDataByColumn.call(void 0, paginatedData.value, props.groupBy);
626
- });
627
- return {
628
- paginationConfig,
629
- displayColumns,
630
- fixedColumnsInfo,
631
- frozenColumnWidths,
632
- columnByKey,
633
- processedData,
634
- paginatedData,
635
- paginatedRowKeys,
636
- selectedRowKeySet,
637
- expandedRowKeySet,
638
- totalColumnCount,
639
- paginationInfo,
640
- allSelected,
641
- someSelected,
642
- groupedData,
643
- sortState,
644
- filterState,
645
- currentPage,
646
- currentPageSize,
647
- hiddenColumnKeys,
648
- selectedRowKeys,
649
- expandedRowKeys,
650
- editingCell,
651
- editingValue,
652
- virtualScrollTop,
653
- toggleColumnLock,
654
- handleSetHiddenColumns,
655
- handleSetSort,
656
- handleSort,
657
- handleFilter,
658
- handlePageChange,
659
- handlePageSizeChange,
660
- handleRowClick,
661
- handleToggleExpand,
662
- handleSelectRow,
663
- handleSelectAll,
664
- isCellEditable,
665
- startEditing,
666
- commitEdit,
667
- cancelEdit,
668
- handleExport,
669
- handleDragStart,
670
- handleDrop,
671
- handleRowDragStart,
672
- handleRowDrop
673
- };
674
- }
675
-
676
- // src/components/Table/icons.ts
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
- var spinnerSvg = _tigercatcore.getSpinnerSVG.call(void 0, "spinner");
694
- var SortIcon = (direction) => {
695
- const active = direction !== null;
696
- const pathD = direction === "asc" ? _tigercatcore.sortAscIcon16PathD : direction === "desc" ? _tigercatcore.sortDescIcon16PathD : _tigercatcore.sortBothIcon16PathD;
697
- return _vue.h.call(void 0,
698
- "svg",
699
- {
700
- class: _tigercatcore.getSortIconClasses.call(void 0, active),
701
- width: "16",
702
- height: "16",
703
- viewBox: _tigercatcore.icon16ViewBox,
704
- fill: "currentColor"
705
- },
706
- [_vue.h.call(void 0, "path", { d: pathD })]
707
- );
708
- };
709
- var LockIcon = (locked) => {
710
- return _vue.h.call(void 0,
711
- "svg",
712
- {
713
- width: "14",
714
- height: "14",
715
- viewBox: _tigercatcore.icon24ViewBox,
716
- fill: "currentColor",
717
- "aria-hidden": "true"
718
- },
719
- [_vue.h.call(void 0, "path", { d: locked ? _tigercatcore.lockClosedIcon24PathD : _tigercatcore.lockOpenIcon24PathD })]
720
- );
721
- };
722
- var ExpandIcon = (expanded) => {
723
- return _vue.h.call(void 0,
724
- "svg",
725
- {
726
- class: _tigercatcore.getExpandIconClasses.call(void 0, expanded),
727
- width: "16",
728
- height: "16",
729
- viewBox: _tigercatcore.icon16ViewBox,
730
- fill: "currentColor",
731
- "aria-hidden": "true"
732
- },
733
- [_vue.h.call(void 0, "path", { d: _tigercatcore.expandChevronIcon16PathD })]
734
- );
735
- };
736
- var LoadingSpinner = () => {
737
- return _vue.h.call(void 0,
738
- "svg",
739
- {
740
- class: _tigercatcore.getLoadingOverlaySpinnerClasses.call(void 0, ),
741
- xmlns: "http://www.w3.org/2000/svg",
742
- fill: "none",
743
- viewBox: spinnerSvg.viewBox
744
- },
745
- spinnerSvg.elements.map((el) => _vue.h.call(void 0, el.type, _tigercatcore.normalizeSvgAttrs.call(void 0, el.attrs)))
746
- );
747
- };
748
-
749
- // src/components/Table/render-header.ts
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
- function renderTableHeader(ctx, props, slots, labels) {
762
- const headerCells = [];
763
- const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
764
- const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
765
- const expandHeaderTh = props.expandable ? _vue.h.call(void 0, "th", {
766
- class: _tigercatcore.getExpandIconCellClasses.call(void 0, props.size),
767
- "aria-label": "Expand"
768
- }) : null;
769
- if (expandAtStart && expandHeaderTh) {
770
- headerCells.push(expandHeaderTh);
771
- }
772
- if (props.rowSelection && props.rowSelection.showCheckbox !== false && props.rowSelection.type !== "radio") {
773
- headerCells.push(
774
- _vue.h.call(void 0,
775
- "th",
776
- {
777
- class: _tigercatcore.getCheckboxCellClasses.call(void 0, props.size)
778
- },
779
- [
780
- _vue.h.call(void 0, "input", {
781
- type: "checkbox",
782
- class: "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
783
- checked: ctx.allSelected.value,
784
- indeterminate: ctx.someSelected.value,
785
- onChange: (e) => ctx.handleSelectAll(e.target.checked)
786
- })
787
- ]
788
- )
789
- );
790
- }
791
- ctx.displayColumns.value.forEach((column) => {
792
- const isSorted = ctx.sortState.value.key === column.key;
793
- const sortDirection = isSorted ? ctx.sortState.value.direction : null;
794
- const ariaSort = column.sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0;
795
- const fixedStyle = _tigercatcore.getFixedColumnStyle.call(void 0, column, ctx.fixedColumnsInfo.value, 15);
796
- const widthStyle = column.width ? {
797
- width: typeof column.width === "number" ? `${column.width}px` : column.width
798
- } : void 0;
799
- const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
800
- const headerContent = [];
801
- const slotContent = _optionalChain([slots, 'access', _57 => _57[`header-${column.key}`], 'optionalCall', _58 => _58()]);
802
- if (slotContent && slotContent.length > 0) {
803
- headerContent.push(...slotContent);
804
- } else if (column.renderHeader) {
805
- headerContent.push(column.renderHeader());
806
- } else {
807
- headerContent.push(column.title);
808
- }
809
- if (props.columnLockable) {
810
- headerContent.push(
811
- _vue.h.call(void 0,
812
- "button",
813
- {
814
- type: "button",
815
- class: _tigercatcore.classNames.call(void 0,
816
- "inline-flex items-center",
817
- column.fixed === "left" || column.fixed === "right" ? "text-[var(--tiger-primary,#2563eb)]" : "text-gray-400 hover:text-gray-700"
818
- ),
819
- "aria-label": _tigercatcore.formatTableSortByText.call(void 0,
820
- column.fixed === "left" || column.fixed === "right" ? labels.unlockColumnAriaLabel : labels.lockColumnAriaLabel,
821
- String(column.title)
822
- ),
823
- onClick: (e) => {
824
- e.stopPropagation();
825
- ctx.toggleColumnLock(column.key);
826
- }
827
- },
828
- [LockIcon(column.fixed === "left" || column.fixed === "right")]
829
- )
830
- );
831
- }
832
- if (column.sortable) {
833
- headerContent.push(SortIcon(sortDirection));
834
- }
835
- headerCells.push(
836
- _vue.h.call(void 0,
837
- "th",
838
- {
839
- key: column.key,
840
- "data-tiger-table-column-key": column.key,
841
- "aria-sort": ariaSort,
842
- class: _tigercatcore.classNames.call(void 0,
843
- _tigercatcore.getTableHeaderCellClasses.call(void 0,
844
- props.size,
845
- column.align || "left",
846
- !!column.sortable,
847
- column.headerClassName
848
- ),
849
- _tigercatcore.getTableFixedHeaderCellClasses.call(void 0, {
850
- view: "table",
851
- column,
852
- stickyHeader: props.stickyHeader,
853
- fixedInfo: ctx.fixedColumnsInfo.value
854
- })
855
- ),
856
- style,
857
- draggable: props.columnDraggable ? "true" : void 0,
858
- onDragstart: props.columnDraggable ? () => ctx.handleDragStart(column.key) : void 0,
859
- onDragover: props.columnDraggable ? (e) => e.preventDefault() : void 0,
860
- onDrop: props.columnDraggable ? () => ctx.handleDrop(column.key) : void 0,
861
- onClick: column.sortable ? () => ctx.handleSort(column.key) : void 0
862
- },
863
- [
864
- _vue.h.call(void 0, "div", { class: "flex items-center gap-2" }, headerContent),
865
- ...column.filter ? [
866
- _vue.h.call(void 0, "div", { class: "mt-2" }, [
867
- column.filter.type === "select" && column.filter.options ? _vue.h.call(void 0,
868
- "select",
869
- {
870
- class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
871
- onChange: (e) => ctx.handleFilter(column.key, e.target.value),
872
- onClick: (e) => e.stopPropagation()
873
- },
874
- [
875
- _vue.h.call(void 0, "option", { value: "" }, "All"),
876
- ...column.filter.options.map(
877
- (opt) => _vue.h.call(void 0, "option", { value: opt.value }, opt.label)
878
- )
879
- ]
880
- ) : _vue.h.call(void 0, "input", {
881
- type: "text",
882
- class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
883
- placeholder: column.filter.placeholder || "Filter...",
884
- onInput: (e) => ctx.handleFilter(column.key, e.target.value),
885
- onClick: (e) => e.stopPropagation()
886
- })
887
- ])
888
- ] : []
889
- ]
890
- )
891
- );
892
- });
893
- if (expandAtEnd && expandHeaderTh) {
894
- headerCells.push(expandHeaderTh);
895
- }
896
- return _vue.h.call(void 0, "thead", { class: _tigercatcore.getTableHeaderClasses.call(void 0, props.stickyHeader) }, [_vue.h.call(void 0, "tr", headerCells)]);
897
- }
898
-
899
- // src/components/Table/render-body.ts
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
- function renderTableBody(ctx, props, slots) {
918
- if (props.loading) {
919
- return null;
920
- }
921
- if (ctx.paginatedData.value.length === 0) {
922
- return _vue.h.call(void 0, "tbody", [
923
- _vue.h.call(void 0, "tr", [
924
- _vue.h.call(void 0,
925
- "td",
926
- {
927
- colspan: ctx.totalColumnCount.value,
928
- class: _tigercatcore.tableEmptyStateClasses
929
- },
930
- [
931
- _vue.h.call(void 0,
932
- "div",
933
- {
934
- role: "status",
935
- "aria-live": "polite"
936
- },
937
- props.emptyText
938
- )
939
- ]
940
- )
941
- ])
942
- ]);
943
- }
944
- function getDelegatedRow(event) {
945
- const row = _optionalChain([event, 'access', _59 => _59.target, 'optionalAccess', _60 => _60.closest, 'call', _61 => _61(
946
- "tr[data-tiger-table-row-index]"
947
- )]);
948
- if (!row) return null;
949
- const index = Number(row.dataset.tigerTableRowIndex);
950
- if (!Number.isInteger(index)) return null;
951
- const record = ctx.paginatedData.value[index];
952
- const key = ctx.paginatedRowKeys.value[index];
953
- if (!record || key === void 0) return null;
954
- return { key, record, index };
955
- }
956
- function handleBodyClick(event) {
957
- const row = getDelegatedRow(event);
958
- if (!row) return;
959
- ctx.handleRowClick(row.record, row.index, row.key);
960
- }
961
- function handleBodyDragStart(event) {
962
- if (!props.rowDraggable) return;
963
- const row = getDelegatedRow(event);
964
- if (!row) return;
965
- ctx.handleRowDragStart(row.key);
966
- }
967
- function handleBodyDragOver(event) {
968
- if (!props.rowDraggable) return;
969
- event.preventDefault();
970
- }
971
- function handleBodyDrop(event) {
972
- if (!props.rowDraggable) return;
973
- const row = getDelegatedRow(event);
974
- if (!row) return;
975
- ctx.handleRowDrop(row.key);
976
- }
977
- const delegatedBodyHandlers = {
978
- onClick: handleBodyClick,
979
- onDragstart: props.rowDraggable ? handleBodyDragStart : void 0,
980
- onDragover: props.rowDraggable ? handleBodyDragOver : void 0,
981
- onDrop: props.rowDraggable ? handleBodyDrop : void 0
982
- };
983
- function renderDataRow(record, index) {
984
- const key = ctx.paginatedRowKeys.value[index];
985
- const isSelected = ctx.selectedRowKeySet.value.has(key);
986
- const isExpanded = ctx.expandedRowKeySet.value.has(key);
987
- const isRowExpandable = props.expandable ? props.expandable.rowExpandable ? props.expandable.rowExpandable(record) : true : false;
988
- const rowClass = typeof props.rowClassName === "function" ? props.rowClassName(record, index) : props.rowClassName;
989
- const cells = [];
990
- const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
991
- const expandToggleCell = props.expandable ? _vue.h.call(void 0,
992
- "td",
993
- {
994
- class: _tigercatcore.getExpandIconCellClasses.call(void 0, props.size)
995
- },
996
- isRowExpandable ? [
997
- _vue.h.call(void 0,
998
- "button",
999
- {
1000
- type: "button",
1001
- class: "inline-flex items-center justify-center",
1002
- "aria-label": isExpanded ? "Collapse row" : "Expand row",
1003
- "aria-expanded": isExpanded,
1004
- onClick: (e) => {
1005
- e.stopPropagation();
1006
- ctx.handleToggleExpand(key, record);
1007
- }
1008
- },
1009
- [ExpandIcon(isExpanded)]
1010
- )
1011
- ] : []
1012
- ) : null;
1013
- if (expandAtStart && expandToggleCell) {
1014
- cells.push(expandToggleCell);
1015
- }
1016
- if (props.rowSelection && props.rowSelection.showCheckbox !== false) {
1017
- const checkboxProps = _optionalChain([props, 'access', _62 => _62.rowSelection, 'optionalAccess', _63 => _63.getCheckboxProps, 'optionalCall', _64 => _64(record)]) || {};
1018
- cells.push(
1019
- _vue.h.call(void 0,
1020
- "td",
1021
- {
1022
- class: _tigercatcore.getCheckboxCellClasses.call(void 0, props.size)
1023
- },
1024
- [
1025
- _vue.h.call(void 0, "input", {
1026
- type: _optionalChain([props, 'access', _65 => _65.rowSelection, 'optionalAccess', _66 => _66.type]) === "radio" ? "radio" : "checkbox",
1027
- class: _optionalChain([props, 'access', _67 => _67.rowSelection, 'optionalAccess', _68 => _68.type]) === "radio" ? "border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]" : "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
1028
- checked: isSelected,
1029
- disabled: checkboxProps.disabled,
1030
- onClick: (e) => e.stopPropagation(),
1031
- onChange: (e) => ctx.handleSelectRow(key, e.target.checked)
1032
- })
1033
- ]
1034
- )
1035
- );
1036
- }
1037
- ctx.displayColumns.value.forEach((column) => {
1038
- const dataKey = column.dataKey || column.key;
1039
- const cellValue = record[dataKey];
1040
- const fixedStyle = _tigercatcore.getFixedColumnStyle.call(void 0, column, ctx.fixedColumnsInfo.value, 10);
1041
- const widthStyle = column.width ? {
1042
- width: typeof column.width === "number" ? `${column.width}px` : column.width
1043
- } : void 0;
1044
- const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
1045
- const stickyCellClass = _tigercatcore.getTableFixedCellClasses.call(void 0, {
1046
- view: "table",
1047
- column,
1048
- record,
1049
- rowIndex: index,
1050
- striped: props.striped,
1051
- stripedActive: props.striped && index % 2 === 0,
1052
- selected: isSelected,
1053
- hoverable: props.hoverable,
1054
- fixedInfo: ctx.fixedColumnsInfo.value
1055
- });
1056
- const isEditing = _optionalChain([ctx, 'access', _69 => _69.editingCell, 'access', _70 => _70.value, 'optionalAccess', _71 => _71.rowIndex]) === index && _optionalChain([ctx, 'access', _72 => _72.editingCell, 'access', _73 => _73.value, 'optionalAccess', _74 => _74.columnKey]) === column.key;
1057
- const isEditableCell = ctx.isCellEditable(column.key, index);
1058
- const cellContent = isEditing ? _vue.h.call(void 0, "input", {
1059
- type: "text",
1060
- class: _tigercatcore.editableCellInputClasses,
1061
- value: ctx.editingValue.value,
1062
- autofocus: true,
1063
- onInput: (e) => {
1064
- ctx.editingValue.value = e.target.value;
1065
- },
1066
- onBlur: () => ctx.commitEdit(),
1067
- onKeydown: (e) => {
1068
- if (e.key === "Enter") ctx.commitEdit();
1069
- if (e.key === "Escape") ctx.cancelEdit();
1070
- }
1071
- }) : _nullishCoalesce(_optionalChain([slots, 'access', _75 => _75[`cell-${column.key}`], 'optionalCall', _76 => _76({ record, index })]), () => ( (column.render ? column.render(record, index) : cellValue)));
1072
- cells.push(
1073
- _vue.h.call(void 0,
1074
- "td",
1075
- {
1076
- key: column.key,
1077
- class: _tigercatcore.classNames.call(void 0,
1078
- _tigercatcore.getTableCellClasses.call(void 0, props.size, column.align || "left", column.className),
1079
- stickyCellClass,
1080
- isEditableCell && !isEditing && _tigercatcore.getEditableCellClasses.call(void 0, false)
1081
- ),
1082
- style,
1083
- onDblclick: isEditableCell && !isEditing ? () => ctx.startEditing(index, column.key, cellValue) : void 0
1084
- },
1085
- [cellContent]
1086
- )
1087
- );
1088
- });
1089
- if (!expandAtStart && expandToggleCell) {
1090
- cells.push(expandToggleCell);
1091
- }
1092
- const rowNode = _vue.h.call(void 0,
1093
- "tr",
1094
- {
1095
- key,
1096
- "data-tiger-table-row-index": index,
1097
- class: _tigercatcore.classNames.call(void 0,
1098
- _tigercatcore.getTableRowClasses.call(void 0, props.hoverable, props.striped, index % 2 === 0, rowClass),
1099
- ctx.fixedColumnsInfo.value.hasFixedColumns && "group"
1100
- ),
1101
- draggable: props.rowDraggable ? "true" : void 0
1102
- },
1103
- cells
1104
- );
1105
- if (props.expandable && isExpanded && isRowExpandable) {
1106
- const expandedContent = _optionalChain([slots, 'access', _77 => _77["expanded-row"], 'optionalCall', _78 => _78({ record, index })]) || (props.expandable.expandedRowRender ? props.expandable.expandedRowRender(record, index) : null);
1107
- const expandedRow = _vue.h.call(void 0,
1108
- "tr",
1109
- {
1110
- key: `${key}-expanded`,
1111
- class: _tigercatcore.getExpandedRowClasses.call(void 0, )
1112
- },
1113
- [
1114
- _vue.h.call(void 0,
1115
- "td",
1116
- {
1117
- colspan: ctx.totalColumnCount.value,
1118
- class: _tigercatcore.getExpandedRowContentClasses.call(void 0, props.size)
1119
- },
1120
- [expandedContent]
1121
- )
1122
- ]
1123
- );
1124
- return [rowNode, expandedRow];
1125
- }
1126
- return rowNode;
1127
- }
1128
- if (ctx.groupedData.value) {
1129
- const groupRows = [];
1130
- for (const [groupKey, groupItems] of ctx.groupedData.value) {
1131
- groupRows.push(
1132
- _vue.h.call(void 0, "tr", { key: `group-${groupKey}`, class: _tigercatcore.tableGroupHeaderClasses }, [
1133
- _vue.h.call(void 0,
1134
- "td",
1135
- {
1136
- colspan: ctx.totalColumnCount.value,
1137
- class: _tigercatcore.getGroupHeaderCellClasses.call(void 0, props.size)
1138
- },
1139
- `${props.groupBy}: ${groupKey} (${groupItems.length})`
1140
- )
1141
- ])
1142
- );
1143
- groupItems.forEach((record, i) => {
1144
- const globalIndex = ctx.paginatedData.value.indexOf(record);
1145
- const result = renderDataRow(record, globalIndex >= 0 ? globalIndex : i);
1146
- if (Array.isArray(result)) {
1147
- groupRows.push(...result);
1148
- } else {
1149
- groupRows.push(result);
1150
- }
1151
- });
1152
- }
1153
- return _vue.h.call(void 0, "tbody", delegatedBodyHandlers, groupRows);
1154
- }
1155
- const rows = ctx.paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
1156
- return _vue.h.call(void 0, "tbody", delegatedBodyHandlers, rows);
1157
- }
1158
-
1159
- // src/components/Table/render-summary.ts
1160
-
1161
-
1162
- function renderSummaryRow(ctx, props) {
1163
- if (!_optionalChain([props, 'access', _79 => _79.summaryRow, 'optionalAccess', _80 => _80.show])) return null;
1164
- const emptyCells = [];
1165
- if (props.rowSelection) {
1166
- emptyCells.push(_vue.h.call(void 0, "td", { class: _tigercatcore.getTableCellClasses.call(void 0, props.size, "left") }));
1167
- }
1168
- if (props.expandable) {
1169
- emptyCells.push(_vue.h.call(void 0, "td", { class: _tigercatcore.getTableCellClasses.call(void 0, props.size, "left") }));
1170
- }
1171
- const dataCells = ctx.displayColumns.value.map((col) => {
1172
- const dataKey = col.dataKey || col.key;
1173
- const val = props.summaryRow.data[dataKey];
1174
- return _vue.h.call(void 0,
1175
- "td",
1176
- {
1177
- key: col.key,
1178
- class: _tigercatcore.getTableCellClasses.call(void 0, props.size, col.align || "left", col.className)
1179
- },
1180
- val != null ? String(val) : ""
1181
- );
1182
- });
1183
- return _vue.h.call(void 0, "tfoot", [_vue.h.call(void 0, "tr", { class: _tigercatcore.tableSummaryRowClasses }, [...emptyCells, ...dataCells])]);
1184
- }
1185
-
1186
- // src/components/Table/render-pagination.ts
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
- function renderPagination(ctx, props, view) {
1202
- if (props.pagination === false || !ctx.paginationInfo.value) {
1203
- return null;
1204
- }
1205
- const { totalPages, startIndex, endIndex, hasNext, hasPrev } = ctx.paginationInfo.value;
1206
- const paginationConfig = props.pagination;
1207
- const total = paginationConfig.total !== void 0 && paginationConfig.total > 0 ? paginationConfig.total : ctx.processedData.value.length;
1208
- const locale = _optionalChain([view, 'optionalAccess', _81 => _81.disableI18n]) ? void 0 : _optionalChain([view, 'optionalAccess', _82 => _82.locale]);
1209
- const labels = _tigercatcore.getPaginationLabels.call(void 0, locale);
1210
- const localeCode = _optionalChain([locale, 'optionalAccess', _83 => _83.locale]);
1211
- const finalTotalText = paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) : _tigercatcore.formatPaginationTotal.call(void 0, labels.totalText, total, [startIndex, endIndex], localeCode);
1212
- const finalPrevText = paginationConfig.prevText || labels.prevPageAriaLabel;
1213
- const finalNextText = paginationConfig.nextText || labels.nextPageAriaLabel;
1214
- const finalPageIndicatorText = paginationConfig.pageIndicatorText ? paginationConfig.pageIndicatorText(ctx.currentPage.value, totalPages) : _tigercatcore.formatPaginationPageIndicator.call(void 0,
1215
- labels.pageIndicatorText,
1216
- ctx.currentPage.value,
1217
- totalPages,
1218
- localeCode
1219
- );
1220
- const finalPrevAriaLabel = _optionalChain([view, 'optionalAccess', _84 => _84.disableI18n]) ? finalPrevText : labels.prevPageAriaLabel;
1221
- const finalNextAriaLabel = _optionalChain([view, 'optionalAccess', _85 => _85.disableI18n]) ? finalNextText : labels.nextPageAriaLabel;
1222
- const normalizedPageSizeOptions = paginationConfig.pageSizeOptions || [
1223
- 10,
1224
- 20,
1225
- 50,
1226
- 100
1227
- ];
1228
- return _vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationContainerClasses.call(void 0, ) }, [
1229
- paginationConfig.showTotal !== false && _vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationTotalClasses.call(void 0, ) }, finalTotalText),
1230
- _vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationControlsClasses.call(void 0, ) }, [
1231
- paginationConfig.showSizeChanger !== false && _vue.h.call(void 0,
1232
- "select",
1233
- {
1234
- class: _tigercatcore.getSimplePaginationSelectClasses.call(void 0, ),
1235
- value: ctx.currentPageSize.value,
1236
- "aria-label": labels.itemsPerPageText,
1237
- onChange: (e) => ctx.handlePageSizeChange(Number(e.target.value))
1238
- },
1239
- normalizedPageSizeOptions.map((option) => {
1240
- const value = typeof option === "number" ? option : option.value;
1241
- const label = typeof option === "number" ? `${_tigercatcore.formatIntlNumber.call(void 0, value, localeCode)} ${labels.itemsPerPageText}` : _nullishCoalesce(option.label, () => ( `${_tigercatcore.formatIntlNumber.call(void 0, value, localeCode)} ${labels.itemsPerPageText}`));
1242
- return _vue.h.call(void 0,
1243
- "option",
1244
- { value, key: value },
1245
- paginationConfig.pageSizeText ? paginationConfig.pageSizeText(value) : label
1246
- );
1247
- })
1248
- ),
1249
- _vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationButtonsWrapperClasses.call(void 0, ) }, [
1250
- _vue.h.call(void 0,
1251
- "button",
1252
- {
1253
- class: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasPrev),
1254
- disabled: !hasPrev,
1255
- "aria-label": finalPrevAriaLabel,
1256
- onClick: () => ctx.handlePageChange(ctx.currentPage.value - 1)
1257
- },
1258
- finalPrevText
1259
- ),
1260
- _vue.h.call(void 0,
1261
- "span",
1262
- {
1263
- class: _tigercatcore.getSimplePaginationPageIndicatorClasses.call(void 0, ),
1264
- "aria-label": finalPageIndicatorText
1265
- },
1266
- finalPageIndicatorText
1267
- ),
1268
- _vue.h.call(void 0,
1269
- "button",
1270
- {
1271
- class: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasNext),
1272
- disabled: !hasNext,
1273
- "aria-label": finalNextAriaLabel,
1274
- onClick: () => ctx.handlePageChange(ctx.currentPage.value + 1)
1275
- },
1276
- finalNextText
1277
- )
1278
- ])
1279
- ])
1280
- ]);
1281
- }
1282
-
1283
- // src/components/Table.ts
1284
- var Table = _vue.defineComponent.call(void 0, {
1285
- name: "TigerTable",
1286
- props: tableProps,
1287
- emits: tableEmits,
1288
- setup(props, { emit, slots }) {
1289
- const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
1290
- const wrapperRef = _vue.ref.call(void 0, null);
1291
- const tableRef = _vue.ref.call(void 0, null);
1292
- const measuredColumnWidths = _vue.ref.call(void 0, {});
1293
- const measuredRowHeights = _vue.ref.call(void 0, []);
1294
- const ctx = useTableState(props, emit, measuredColumnWidths);
1295
- const resolvedPaginationLocale = _vue.ref.call(void 0, );
1296
- const resolvedTableLocale = _vue.ref.call(void 0, );
1297
- let paginationLocaleResolveId = 0;
1298
- let tableLocaleResolveId = 0;
1299
- const paginationLocaleInput = _vue.computed.call(void 0,
1300
- () => props.pagination !== false && typeof props.pagination === "object" ? props.pagination.locale : void 0
1301
- );
1302
- const isPaginationI18nDisabled = _vue.computed.call(void 0, () => paginationLocaleInput.value === false);
1303
- const tableLocaleInput = _vue.computed.call(void 0, () => props.locale);
1304
- _vue.watch.call(void 0,
1305
- paginationLocaleInput,
1306
- (locale) => {
1307
- const resolveId = ++paginationLocaleResolveId;
1308
- if (!locale) {
1309
- resolvedPaginationLocale.value = void 0;
1310
- return;
1311
- }
1312
- const immediateLocale = _tigercatcore.getImmediateTigerLocale.call(void 0, locale);
1313
- resolvedPaginationLocale.value = immediateLocale;
1314
- if (!_tigercatcore.isLazyTigerLocale.call(void 0, locale)) return;
1315
- _tigercatcore.resolveTigerLocale.call(void 0, locale).then((nextLocale) => {
1316
- if (resolveId === paginationLocaleResolveId) {
1317
- resolvedPaginationLocale.value = nextLocale;
1318
- }
1319
- }).catch(() => {
1320
- if (resolveId === paginationLocaleResolveId) {
1321
- resolvedPaginationLocale.value = immediateLocale;
1322
- }
1323
- });
1324
- },
1325
- { immediate: true }
1326
- );
1327
- const paginationLocale = _vue.computed.call(void 0,
1328
- () => isPaginationI18nDisabled.value ? void 0 : _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, resolvedPaginationLocale.value)
1329
- );
1330
- _vue.watch.call(void 0,
1331
- tableLocaleInput,
1332
- (locale) => {
1333
- const resolveId = ++tableLocaleResolveId;
1334
- if (!locale) {
1335
- resolvedTableLocale.value = void 0;
1336
- return;
1337
- }
1338
- const immediateLocale = _tigercatcore.getImmediateTigerLocale.call(void 0, locale);
1339
- resolvedTableLocale.value = immediateLocale;
1340
- if (!_tigercatcore.isLazyTigerLocale.call(void 0, locale)) return;
1341
- _tigercatcore.resolveTigerLocale.call(void 0, locale).then((nextLocale) => {
1342
- if (resolveId === tableLocaleResolveId) {
1343
- resolvedTableLocale.value = nextLocale;
1344
- }
1345
- }).catch(() => {
1346
- if (resolveId === tableLocaleResolveId) {
1347
- resolvedTableLocale.value = immediateLocale;
1348
- }
1349
- });
1350
- },
1351
- { immediate: true }
1352
- );
1353
- const tableLocale = _vue.computed.call(void 0,
1354
- () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, resolvedTableLocale.value)
1355
- );
1356
- const tableLabels = _vue.computed.call(void 0, () => {
1357
- const overrides = props.emptyText === void 0 ? props.labels : { ...props.labels, emptyText: props.emptyText };
1358
- return _tigercatcore.getTableLabels.call(void 0, tableLocale.value, overrides);
1359
- });
1360
- const cardLayoutMap = _vue.computed.call(void 0, () => {
1361
- const map = /* @__PURE__ */ new Map();
1362
- if (props.cardLayout) {
1363
- for (const item of props.cardLayout) {
1364
- map.set(item.key, item);
1365
- }
1366
- }
1367
- return map;
1368
- });
1369
- const hasCustomCardLayout = _vue.computed.call(void 0, () => {
1370
- return ctx.displayColumns.value.some((col) => col.cardGrid) || props.cardLayout && props.cardLayout.length > 0;
1371
- });
1372
- const resizeController = _tigercatcore.createTableResizeObserverController.call(void 0, {
1373
- onResize: (snapshot) => {
1374
- if (!areNumberRecordsEqual(measuredColumnWidths.value, snapshot.columnWidths)) {
1375
- measuredColumnWidths.value = snapshot.columnWidths;
1376
- }
1377
- if (!areNumberArraysEqual(measuredRowHeights.value, snapshot.rowHeights)) {
1378
- measuredRowHeights.value = snapshot.rowHeights;
1379
- }
1380
- }
1381
- });
1382
- _vue.onMounted.call(void 0, () => {
1383
- if (wrapperRef.value) {
1384
- resizeController.observe(wrapperRef.value, tableRef.value);
1385
- }
1386
- });
1387
- _vue.onBeforeUnmount.call(void 0, () => resizeController.disconnect());
1388
- return () => {
1389
- const resolvedProps = props;
1390
- const virtualRecommendation = _tigercatcore.getTableVirtualRecommendation.call(void 0, {
1391
- virtual: resolvedProps.virtual,
1392
- autoVirtual: resolvedProps.autoVirtual,
1393
- dataLength: resolvedProps.dataSource.length,
1394
- threshold: resolvedProps.virtualThreshold,
1395
- autoThreshold: resolvedProps.autoVirtualThreshold
1396
- });
1397
- const effectiveVirtual = virtualRecommendation.enabled;
1398
- const wrapperStyle = resolvedProps.maxHeight ? {
1399
- maxHeight: typeof resolvedProps.maxHeight === "number" ? `${resolvedProps.maxHeight}px` : resolvedProps.maxHeight
1400
- } : void 0;
1401
- const renderProps = {
1402
- ...resolvedProps,
1403
- emptyText: tableLabels.value.emptyText
1404
- };
1405
- const shouldPinColumns = resolvedProps.columnLockable || ctx.fixedColumnsInfo.value.hasFixedColumns;
1406
- const colgroup = shouldPinColumns ? _vue.h.call(void 0,
1407
- "colgroup",
1408
- _tigercatcore.getTableColgroup.call(void 0, {
1409
- columns: ctx.displayColumns.value,
1410
- frozenWidths: ctx.frozenColumnWidths.value,
1411
- size: resolvedProps.size,
1412
- hasSelectionColumn: !!resolvedProps.rowSelection && resolvedProps.rowSelection.showCheckbox !== false,
1413
- expand: resolvedProps.expandable ? resolvedProps.expandable.expandIconPosition === "end" ? "end" : "start" : false
1414
- }).map(
1415
- (entry, index) => _vue.h.call(void 0, "col", {
1416
- key: `${entry.key}-${index}`,
1417
- style: entry.width ? { width: entry.width } : void 0
1418
- })
1419
- )
1420
- ) : null;
1421
- const tableChildren = [
1422
- colgroup,
1423
- renderTableHeader(ctx, renderProps, slots, tableLabels.value),
1424
- renderTableBody(ctx, renderProps, slots),
1425
- renderSummaryRow(ctx, renderProps)
1426
- ];
1427
- const tableInner = _vue.h.call(void 0,
1428
- "table",
1429
- {
1430
- ref: tableRef,
1431
- class: _tigercatcore.classNames.call(void 0,
1432
- _tigercatcore.tableBaseClasses,
1433
- _tigercatcore.getTableResponsiveTableClasses.call(void 0,
1434
- resolvedProps.responsiveMode,
1435
- resolvedProps.cardBreakpoint
1436
- ),
1437
- resolvedProps.tableLayout === "fixed" ? "table-fixed" : "table-auto"
1438
- ),
1439
- style: ctx.fixedColumnsInfo.value.hasFixedColumns && ctx.fixedColumnsInfo.value.minTableWidth ? { minWidth: `${ctx.fixedColumnsInfo.value.minTableWidth}px` } : void 0
1440
- },
1441
- tableChildren
1442
- );
1443
- const tableContent = effectiveVirtual ? _vue.h.call(void 0,
1444
- "div",
1445
- {
1446
- style: { height: `${resolvedProps.virtualHeight}px`, overflow: "auto" },
1447
- onScroll: (e) => {
1448
- ctx.virtualScrollTop.value = e.target.scrollTop;
1449
- }
1450
- },
1451
- [tableInner]
1452
- ) : tableInner;
1453
- const cardContent = (() => {
1454
- if (resolvedProps.responsiveMode !== "card") return null;
1455
- const cardChildren = [];
1456
- const sortableColumns = ctx.displayColumns.value.filter((column) => column.sortable);
1457
- if (resolvedProps.rowSelection && resolvedProps.rowSelection.type !== "radio" && resolvedProps.rowSelection.showCheckbox !== false && ctx.paginatedData.value.length > 0) {
1458
- cardChildren.push(
1459
- _vue.h.call(void 0,
1460
- "div",
1461
- {
1462
- class: "flex items-center justify-between rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface,#ffffff)] px-3 py-2"
1463
- },
1464
- [
1465
- _vue.h.call(void 0,
1466
- _chunkPFWRFHSBjs.Checkbox,
1467
- {
1468
- size: "sm",
1469
- modelValue: ctx.allSelected.value,
1470
- indeterminate: ctx.someSelected.value,
1471
- onChange: (checked) => ctx.handleSelectAll(checked)
1472
- },
1473
- { default: () => tableLabels.value.selectAllText }
1474
- )
1475
- ]
1476
- )
1477
- );
1478
- }
1479
- if (sortableColumns.length > 0) {
1480
- cardChildren.push(
1481
- _vue.h.call(void 0,
1482
- "div",
1483
- {
1484
- class: "rounded-[var(--tiger-radius-md,0.5rem)] border border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface,#ffffff)] px-3 py-2"
1485
- },
1486
- [
1487
- _vue.h.call(void 0, _chunkRLPSCEBPjs.Select, {
1488
- size: "sm",
1489
- modelValue: ctx.sortState.value.key && ctx.sortState.value.direction ? `${ctx.sortState.value.key}:${ctx.sortState.value.direction}` : "",
1490
- options: [
1491
- { label: tableLabels.value.clearSortText, value: "" },
1492
- ...sortableColumns.flatMap((column) => [
1493
- {
1494
- label: `${_tigercatcore.formatTableSortByText.call(void 0, tableLabels.value.sortByText, column.title)} \u2191`,
1495
- value: `${column.key}:asc`
1496
- },
1497
- {
1498
- label: `${_tigercatcore.formatTableSortByText.call(void 0, tableLabels.value.sortByText, column.title)} \u2193`,
1499
- value: `${column.key}:desc`
1500
- }
1501
- ])
1502
- ],
1503
- clearable: false,
1504
- "onUpdate:modelValue": (value) => {
1505
- const nextValue = String(_nullishCoalesce(value, () => ( "")));
1506
- if (!nextValue) {
1507
- ctx.handleSetSort({ key: null, direction: null });
1508
- return;
1509
- }
1510
- const separatorIndex = nextValue.lastIndexOf(":");
1511
- const key = nextValue.slice(0, separatorIndex);
1512
- const direction = nextValue.slice(separatorIndex + 1);
1513
- ctx.handleSetSort({ key, direction });
1514
- }
1515
- })
1516
- ]
1517
- )
1518
- );
1519
- }
1520
- if (ctx.paginatedData.value.length === 0) {
1521
- cardChildren.push(
1522
- _vue.h.call(void 0, "div", { class: _tigercatcore.getTableResponsiveCardClasses.call(void 0, resolvedProps.cardPadding) }, [
1523
- _vue.h.call(void 0, _chunkNOZ65AMOjs.Empty, { showImage: false, description: tableLabels.value.emptyText })
1524
- ])
1525
- );
1526
- } else {
1527
- cardChildren.push(
1528
- ...ctx.paginatedData.value.map((record, index) => {
1529
- const key = ctx.paginatedRowKeys.value[index];
1530
- const isExpanded = ctx.expandedRowKeySet.value.has(key);
1531
- const isSelected = ctx.selectedRowKeySet.value.has(key);
1532
- const isRowExpandable = resolvedProps.expandable ? resolvedProps.expandable.rowExpandable ? resolvedProps.expandable.rowExpandable(record) : true : false;
1533
- const { titleColumn, bodyColumns } = _tigercatcore.getCardColumns.call(void 0, ctx.displayColumns.value);
1534
- const renderCardCellContent = (column) => {
1535
- const dataKey = column.dataKey || column.key;
1536
- return _nullishCoalesce(_optionalChain([slots, 'access', _86 => _86[`cell-${column.key}`], 'optionalCall', _87 => _87({ record, index })]), () => ( (column.render ? column.render(record, index) : record[dataKey])));
1537
- };
1538
- const titleNode = titleColumn ? _vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardTitleClasses }, [
1539
- renderCardCellContent(titleColumn)
1540
- ]) : null;
1541
- const rows = hasCustomCardLayout.value ? [
1542
- _vue.h.call(void 0,
1543
- "div",
1544
- {
1545
- class: _tigercatcore.classNames.call(void 0,
1546
- "grid grid-cols-12 mt-2",
1547
- _nullishCoalesce(resolvedProps.cardFieldGap, () => ( "gap-3"))
1548
- )
1549
- },
1550
- bodyColumns.map((column) => {
1551
- const layoutItem = cardLayoutMap.value.get(column.key);
1552
- const gridInfo = _tigercatcore.getCardGridInfo.call(void 0, column, layoutItem);
1553
- if (gridInfo.hideLabel) {
1554
- return _vue.h.call(void 0,
1555
- "div",
1556
- {
1557
- key: column.key,
1558
- class: _tigercatcore.classNames.call(void 0,
1559
- gridInfo.className,
1560
- gridInfo.divider && "border-t border-[var(--tiger-border,#e5e7eb)] pt-3"
1561
- )
1562
- },
1563
- [renderCardCellContent(column)]
1564
- );
1565
- }
1566
- if (gridInfo.labelPosition === "top") {
1567
- return _vue.h.call(void 0,
1568
- "div",
1569
- {
1570
- key: column.key,
1571
- class: _tigercatcore.classNames.call(void 0,
1572
- gridInfo.className,
1573
- gridInfo.divider && "border-t border-[var(--tiger-border,#e5e7eb)] pt-3"
1574
- )
1575
- },
1576
- [
1577
- _vue.h.call(void 0,
1578
- "div",
1579
- {
1580
- class: _tigercatcore.classNames.call(void 0,
1581
- "text-xs font-medium uppercase tracking-wider text-[var(--tiger-text-muted,#6b7280)] mb-1",
1582
- gridInfo.labelClassName
1583
- )
1584
- },
1585
- column.title
1586
- ),
1587
- _vue.h.call(void 0,
1588
- "div",
1589
- {
1590
- class: _tigercatcore.classNames.call(void 0,
1591
- "min-w-0 text-sm text-[var(--tiger-text,#111827)] break-words",
1592
- gridInfo.valueClassName
1593
- )
1594
- },
1595
- [renderCardCellContent(column)]
1596
- )
1597
- ]
1598
- );
1599
- }
1600
- return _vue.h.call(void 0,
1601
- "div",
1602
- {
1603
- key: column.key,
1604
- class: _tigercatcore.classNames.call(void 0,
1605
- gridInfo.className,
1606
- "grid grid-cols-[auto_1fr] gap-2 items-baseline",
1607
- gridInfo.divider && "border-t border-[var(--tiger-border,#e5e7eb)] pt-3"
1608
- )
1609
- },
1610
- [
1611
- _vue.h.call(void 0,
1612
- "div",
1613
- {
1614
- class: _tigercatcore.classNames.call(void 0,
1615
- "text-xs font-medium uppercase tracking-wider text-[var(--tiger-text-muted,#6b7280)] shrink-0",
1616
- gridInfo.labelClassName
1617
- )
1618
- },
1619
- column.title
1620
- ),
1621
- _vue.h.call(void 0,
1622
- "div",
1623
- {
1624
- class: _tigercatcore.classNames.call(void 0,
1625
- "min-w-0 text-sm text-[var(--tiger-text,#111827)] break-words",
1626
- gridInfo.valueClassName
1627
- )
1628
- },
1629
- [renderCardCellContent(column)]
1630
- )
1631
- ]
1632
- );
1633
- })
1634
- )
1635
- ] : bodyColumns.map(
1636
- (column) => _vue.h.call(void 0, "div", { key: column.key, class: _tigercatcore.tableResponsiveCardRowClasses }, [
1637
- _vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardLabelClasses }, column.title),
1638
- _vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardValueClasses }, [
1639
- renderCardCellContent(column)
1640
- ])
1641
- ])
1642
- );
1643
- const controls = [];
1644
- if (resolvedProps.rowSelection && resolvedProps.rowSelection.showCheckbox !== false) {
1645
- const checkboxProps = _optionalChain([resolvedProps, 'access', _88 => _88.rowSelection, 'access', _89 => _89.getCheckboxProps, 'optionalCall', _90 => _90(record)]) || {};
1646
- controls.push(
1647
- _vue.h.call(void 0, "span", { onClick: (event) => event.stopPropagation() }, [
1648
- resolvedProps.rowSelection.type === "radio" ? _vue.h.call(void 0, _chunk3QV2D54Hjs.Radio, {
1649
- value: key,
1650
- checked: isSelected,
1651
- disabled: checkboxProps.disabled,
1652
- "aria-label": _tigercatcore.formatTableSelectRowAriaLabel.call(void 0,
1653
- tableLabels.value.selectRowAriaLabel,
1654
- index + 1,
1655
- _optionalChain([tableLocale, 'access', _91 => _91.value, 'optionalAccess', _92 => _92.locale])
1656
- ),
1657
- onChange: () => ctx.handleSelectRow(key, true)
1658
- }) : _vue.h.call(void 0, _chunkPFWRFHSBjs.Checkbox, {
1659
- size: "sm",
1660
- modelValue: isSelected,
1661
- disabled: checkboxProps.disabled,
1662
- "aria-label": _tigercatcore.formatTableSelectRowAriaLabel.call(void 0,
1663
- tableLabels.value.selectRowAriaLabel,
1664
- index + 1,
1665
- _optionalChain([tableLocale, 'access', _93 => _93.value, 'optionalAccess', _94 => _94.locale])
1666
- ),
1667
- onChange: (checked) => ctx.handleSelectRow(key, checked)
1668
- })
1669
- ])
1670
- );
1671
- }
1672
- if (resolvedProps.expandable && isRowExpandable) {
1673
- controls.push(
1674
- _vue.h.call(void 0,
1675
- "button",
1676
- {
1677
- type: "button",
1678
- class: "text-sm text-[var(--tiger-primary,#2563eb)]",
1679
- "aria-expanded": isExpanded,
1680
- onClick: (event) => {
1681
- event.stopPropagation();
1682
- ctx.handleToggleExpand(key, record);
1683
- }
1684
- },
1685
- isExpanded ? tableLabels.value.collapseText : tableLabels.value.expandText
1686
- )
1687
- );
1688
- }
1689
- const titleWithInlineControls = titleNode && resolvedProps.cardSelectionPosition === "title-inline" && controls.length ? _vue.h.call(void 0,
1690
- "div",
1691
- {
1692
- class: _tigercatcore.classNames.call(void 0,
1693
- _tigercatcore.tableResponsiveCardTitleClasses,
1694
- "flex items-center gap-3"
1695
- )
1696
- },
1697
- [
1698
- ...controls,
1699
- _vue.h.call(void 0, "span", { class: "min-w-0 flex-1" }, [
1700
- renderCardCellContent(titleColumn)
1701
- ])
1702
- ]
1703
- ) : titleNode;
1704
- const expandedContent = resolvedProps.expandable && isExpanded && isRowExpandable ? _nullishCoalesce(_optionalChain([slots, 'access', _95 => _95["expanded-row"], 'optionalCall', _96 => _96({ record, index })]), () => ( _optionalChain([resolvedProps, 'access', _97 => _97.expandable, 'access', _98 => _98.expandedRowRender, 'optionalCall', _99 => _99(record, index)]))) : null;
1705
- const cardContext = {
1706
- record,
1707
- index,
1708
- columns: ctx.displayColumns.value,
1709
- selected: isSelected,
1710
- expanded: isExpanded,
1711
- toggleExpand: () => ctx.handleToggleExpand(key, record),
1712
- selectRow: (checked) => ctx.handleSelectRow(key, checked)
1713
- };
1714
- const customCard = _nullishCoalesce(_optionalChain([slots, 'access', _100 => _100.card, 'optionalCall', _101 => _101(cardContext)]), () => ( _optionalChain([resolvedProps, 'access', _102 => _102.renderCard, 'optionalCall', _103 => _103(cardContext)])));
1715
- const resolvedCardClassName = typeof resolvedProps.cardClassName === "function" ? resolvedProps.cardClassName(record, index) : resolvedProps.cardClassName;
1716
- return _vue.h.call(void 0,
1717
- "div",
1718
- {
1719
- key,
1720
- class: _tigercatcore.classNames.call(void 0,
1721
- _tigercatcore.getTableResponsiveCardClasses.call(void 0, resolvedProps.cardPadding),
1722
- resolvedCardClassName
1723
- ),
1724
- onClick: () => ctx.handleRowClick(record, index, key)
1725
- },
1726
- customCard !== void 0 && customCard !== null ? [customCard] : [
1727
- controls.length && (!titleNode || resolvedProps.cardSelectionPosition !== "title-inline") ? _vue.h.call(void 0, "div", { class: "mb-2 flex items-center gap-3" }, controls) : null,
1728
- titleWithInlineControls,
1729
- ...rows,
1730
- expandedContent ? _vue.h.call(void 0,
1731
- "div",
1732
- {
1733
- class: "mt-3 border-t border-[var(--tiger-border,#e5e7eb)] pt-3"
1734
- },
1735
- [expandedContent]
1736
- ) : null
1737
- ]
1738
- );
1739
- })
1740
- );
1741
- }
1742
- return _vue.h.call(void 0,
1743
- "div",
1744
- {
1745
- class: _tigercatcore.getTableResponsiveCardListClasses.call(void 0, resolvedProps.cardBreakpoint),
1746
- "data-tiger-table-mobile": "card"
1747
- },
1748
- cardChildren
1749
- );
1750
- })();
1751
- return _vue.h.call(void 0,
1752
- "div",
1753
- {
1754
- ref: wrapperRef,
1755
- class: _tigercatcore.getTableWrapperClasses.call(void 0, resolvedProps.bordered, resolvedProps.maxHeight),
1756
- style: wrapperStyle,
1757
- "data-tiger-virtual": virtualRecommendation.enabled ? "enabled" : void 0,
1758
- "data-tiger-virtual-auto": virtualRecommendation.autoEnabled ? "true" : void 0,
1759
- "data-tiger-virtual-recommended": virtualRecommendation.recommended ? "true" : void 0,
1760
- "data-tiger-virtual-threshold": virtualRecommendation.recommended ? virtualRecommendation.threshold : void 0,
1761
- "data-tiger-measured-row-height": measuredRowHeights.value[0] || void 0,
1762
- "aria-busy": resolvedProps.loading
1763
- },
1764
- [
1765
- resolvedProps.exportable && _vue.h.call(void 0, "div", { class: "flex justify-end p-2" }, [
1766
- _vue.h.call(void 0,
1767
- "button",
1768
- {
1769
- type: "button",
1770
- class: _tigercatcore.tableExportButtonClasses,
1771
- onClick: ctx.handleExport,
1772
- "aria-label": resolvedProps.exportFormat === "excel" ? "Export to Excel" : "Export to CSV"
1773
- },
1774
- resolvedProps.exportFormat === "excel" ? "Export Excel" : "Export CSV"
1775
- )
1776
- ]),
1777
- tableContent,
1778
- cardContent,
1779
- resolvedProps.loading && _vue.h.call(void 0,
1780
- "div",
1781
- {
1782
- class: _tigercatcore.tableLoadingOverlayClasses,
1783
- role: "status",
1784
- "aria-live": "polite",
1785
- "aria-label": tableLabels.value.loadingText
1786
- },
1787
- [LoadingSpinner(), _vue.h.call(void 0, "span", { class: "sr-only" }, tableLabels.value.loadingText)]
1788
- ),
1789
- renderPagination(ctx, renderProps, {
1790
- locale: paginationLocale.value,
1791
- disableI18n: isPaginationI18nDisabled.value
1792
- })
1793
- ]
1794
- );
1795
- };
1796
- }
1797
- });
1798
- var Table_default = Table;
1799
- function areNumberRecordsEqual(current, next) {
1800
- const currentKeys = Object.keys(current);
1801
- const nextKeys = Object.keys(next);
1802
- return currentKeys.length === nextKeys.length && nextKeys.every((key) => current[key] === next[key]);
1803
- }
1804
- function areNumberArraysEqual(current, next) {
1805
- return current.length === next.length && next.every((value, index) => current[index] === value);
1806
- }
1807
-
1808
-
1809
-
1810
-
1811
- exports.Table = Table; exports.Table_default = Table_default;