@expcat/tigercat-vue 1.0.7 → 1.1.0

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 (713) hide show
  1. package/dist/{chunk-DN5GU5PC.js → chunk-2LNNB55E.js} +18 -2
  2. package/dist/{chunk-RB7KVVWE.mjs → chunk-2X3ZPH2H.mjs} +20 -28
  3. package/dist/{chunk-SEKYX56R.js → chunk-2Z2CJEUL.js} +10 -13
  4. package/dist/{chunk-TDL4BUUB.js → chunk-33YTJPF7.js} +4 -3
  5. package/dist/{chunk-NXGCLBVG.js → chunk-47Z4MGKP.js} +92 -12
  6. package/dist/{chunk-243JSTYQ.mjs → chunk-4CWRNKPE.mjs} +3 -2
  7. package/dist/{chunk-BUTNEKFD.js → chunk-4VB6I3CA.js} +11 -15
  8. package/dist/{chunk-U7CCKZAG.js → chunk-5436FG3B.js} +18 -16
  9. package/dist/{chunk-AGAJJYP2.js → chunk-56EI2AYV.js} +53 -12
  10. package/dist/{chunk-JGUXQMYL.mjs → chunk-5D2UAWWP.mjs} +21 -5
  11. package/dist/{chunk-FOF7UBMU.js → chunk-5RA26RRN.js} +75 -37
  12. package/dist/{chunk-LW3LFCRZ.mjs → chunk-5X3GXNGM.mjs} +58 -13
  13. package/dist/{chunk-WNF7XUX4.mjs → chunk-5YFSAKRQ.mjs} +4 -2
  14. package/dist/chunk-63LJVB2M.js +491 -0
  15. package/dist/{chunk-VITTXNTD.js → chunk-656KMUL3.js} +125 -17
  16. package/dist/{chunk-5XF5IAUD.mjs → chunk-6EI23IND.mjs} +86 -49
  17. package/dist/{chunk-6XU5PSC2.js → chunk-6PJ3JANP.js} +37 -10
  18. package/dist/{chunk-MKLJ2LJW.mjs → chunk-6WACKCWM.mjs} +10 -13
  19. package/dist/{chunk-JIMDJWZZ.js → chunk-7ADONGSB.js} +2 -4
  20. package/dist/{chunk-MADOTDW7.mjs → chunk-7PY6OQVE.mjs} +23 -27
  21. package/dist/{chunk-VDNAGLQJ.js → chunk-7QX4QWWN.js} +26 -29
  22. package/dist/{chunk-CU4M5ABS.mjs → chunk-7RIWAO2A.mjs} +40 -6
  23. package/dist/{chunk-GJFT5IQR.js → chunk-A5HHG53Z.js} +30 -27
  24. package/dist/{chunk-Q57TYGO4.js → chunk-A5HRX7EG.js} +12 -1
  25. package/dist/{chunk-3G7QYQYL.js → chunk-A7FN3S4I.js} +47 -2
  26. package/dist/{chunk-JN63Z5E5.js → chunk-ABLH42TR.js} +3 -3
  27. package/dist/{chunk-BKTQ6RWR.js → chunk-ACYYQJ6M.js} +4 -3
  28. package/dist/{chunk-GA5S2KNZ.js → chunk-AEU46D6B.js} +12 -13
  29. package/dist/{chunk-XQKIMRRF.js → chunk-AGVXMB4Q.js} +11 -6
  30. package/dist/{chunk-T52TU2RW.mjs → chunk-AXDBME5A.mjs} +29 -18
  31. package/dist/{chunk-564LMZQL.mjs → chunk-BMT5PGAQ.mjs} +22 -19
  32. package/dist/{chunk-S2PMAXBQ.js → chunk-BQRXHUIC.js} +49 -6
  33. package/dist/{chunk-V4PBWEAU.js → chunk-BZBQUUXF.js} +34 -2
  34. package/dist/{chunk-4L5UYIV6.mjs → chunk-C6ER6OUB.mjs} +25 -6
  35. package/dist/{chunk-GMYSHJCU.mjs → chunk-C7VGTRHE.mjs} +12 -7
  36. package/dist/{chunk-7DGAOCPX.mjs → chunk-CERGNVW2.mjs} +175 -133
  37. package/dist/{chunk-GTSS7RAT.mjs → chunk-CN2SP53A.mjs} +129 -9
  38. package/dist/chunk-CRGGJKV2.js +286 -0
  39. package/dist/{chunk-2SK6T4WB.js → chunk-CSJQKBDJ.js} +20 -4
  40. package/dist/{chunk-Z2NMFYF4.mjs → chunk-CZALMJH3.mjs} +3 -2
  41. package/dist/{chunk-6A57RY3H.mjs → chunk-DBTS5QBX.mjs} +2 -2
  42. package/dist/{chunk-XYYZAQ6Z.mjs → chunk-DIQGHFAT.mjs} +3 -3
  43. package/dist/{chunk-S276SM7L.mjs → chunk-DMV26JNR.mjs} +29 -26
  44. package/dist/{chunk-UUGAOKYR.js → chunk-DZXZ3YEL.js} +16 -10
  45. package/dist/chunk-E3BSOB7P.mjs +89 -0
  46. package/dist/{chunk-LRHJZP2C.mjs → chunk-E6RGBYI3.mjs} +110 -31
  47. package/dist/{chunk-TYFUO6PE.mjs → chunk-E74ERZGQ.mjs} +92 -17
  48. package/dist/{chunk-LHPBK4MG.js → chunk-EHBPMUT2.js} +25 -4
  49. package/dist/{chunk-XGJWUZWS.js → chunk-EVOXC3CD.js} +36 -17
  50. package/dist/{chunk-4BMFV4CH.mjs → chunk-F7G7K3TF.mjs} +58 -83
  51. package/dist/{chunk-3FVWZYBQ.js → chunk-FC27Q4CL.js} +89 -52
  52. package/dist/{chunk-WB6JGQWN.js → chunk-FE2HR4E5.js} +5 -4
  53. package/dist/{chunk-I5K3R4FN.mjs → chunk-FMH4CLSA.mjs} +19 -1
  54. package/dist/{chunk-U2K7CF67.js → chunk-FMLNJXCX.js} +12 -34
  55. package/dist/{chunk-3PQ2I5IQ.mjs → chunk-FQHYU76P.mjs} +19 -16
  56. package/dist/{chunk-HFCVHAQ6.mjs → chunk-FRFCXRUJ.mjs} +4 -4
  57. package/dist/{chunk-3ICMBQPM.mjs → chunk-FRMMT3K3.mjs} +47 -5
  58. package/dist/{chunk-J7VTGSHX.mjs → chunk-G2IZAKJY.mjs} +61 -187
  59. package/dist/{chunk-K2U3FEL7.js → chunk-GAWIICIB.js} +55 -2
  60. package/dist/{chunk-LFV3KYO2.js → chunk-GDKYQ7U6.js} +9 -8
  61. package/dist/{chunk-O2Q4UYDA.js → chunk-GEPFTYKC.js} +61 -187
  62. package/dist/{chunk-W6TMZ7ZT.js → chunk-GOBWUEHV.js} +57 -82
  63. package/dist/{chunk-IOBJYUUO.mjs → chunk-GVZRR2WP.mjs} +29 -26
  64. package/dist/{chunk-RSBAFDUA.mjs → chunk-GWNXDOIG.mjs} +26 -5
  65. package/dist/{chunk-FLAJKB2O.js → chunk-GZK6R2E3.js} +8 -1
  66. package/dist/{chunk-T77L326M.mjs → chunk-H2BH6TJN.mjs} +55 -2
  67. package/dist/chunk-H4F4G2E4.mjs +74 -0
  68. package/dist/{chunk-QDFUM2QT.js → chunk-HU2XBA2A.js} +4 -3
  69. package/dist/{chunk-JM3ZZYTE.mjs → chunk-I34OWAAY.mjs} +45 -12
  70. package/dist/{chunk-HXLCWM2J.mjs → chunk-I6E3GY64.mjs} +5 -4
  71. package/dist/{chunk-MYFQ3B2D.mjs → chunk-IFD7PZDO.mjs} +5 -5
  72. package/dist/{chunk-NHCCPMLC.mjs → chunk-IV4HFG36.mjs} +55 -14
  73. package/dist/{chunk-TG4PXQKX.mjs → chunk-J73M5UTG.mjs} +83 -7
  74. package/dist/{chunk-RQREJGY3.js → chunk-JACGMHFI.js} +25 -13
  75. package/dist/{chunk-IVTBNUKQ.js → chunk-JDCVS4SJ.js} +40 -3
  76. package/dist/{chunk-BFS7XO3E.js → chunk-JFIVDZFK.js} +12 -14
  77. package/dist/{chunk-UPPRQ3ZS.js → chunk-JKZ5ZRDG.js} +22 -26
  78. package/dist/{chunk-7VSD3NPI.js → chunk-JTTSX3NM.js} +12 -21
  79. package/dist/{chunk-MX2KCWM2.js → chunk-K3CIXMN4.js} +28 -17
  80. package/dist/{chunk-RDV4BMTK.js → chunk-KOI6AQ5H.js} +8 -12
  81. package/dist/{chunk-AAO2B46J.js → chunk-KVJKG4D3.js} +47 -1
  82. package/dist/{chunk-ABPOLQLE.mjs → chunk-LBHKQW3U.mjs} +24 -12
  83. package/dist/{chunk-FK2XBMC3.mjs → chunk-LBIQHIXN.mjs} +122 -14
  84. package/dist/{chunk-XFZZWZ6Q.js → chunk-LG6KGO5D.js} +28 -25
  85. package/dist/{chunk-EXQSRZJX.mjs → chunk-LL4ASJ4O.mjs} +13 -15
  86. package/dist/{chunk-2WZGK7XJ.js → chunk-LWDA7ABQ.js} +5 -5
  87. package/dist/{chunk-2SCIJ2RW.mjs → chunk-M3G6LJKZ.mjs} +3 -2
  88. package/dist/{chunk-P4X7GS2X.mjs → chunk-MDPHUCVS.mjs} +23 -9
  89. package/dist/{chunk-LV3BMS4U.mjs → chunk-ML2QP5KF.mjs} +12 -13
  90. package/dist/{chunk-G4ZD6COW.js → chunk-MRMKZTC6.js} +6 -17
  91. package/dist/{chunk-MVIHUPCX.js → chunk-MSKAWM7K.js} +4 -4
  92. package/dist/chunk-MZHQAT4I.mjs +761 -0
  93. package/dist/{chunk-DU2NXX75.mjs → chunk-N4GS2LSN.mjs} +10 -3
  94. package/dist/{chunk-LAAPLTP3.js → chunk-NCFY3VXA.js} +2 -2
  95. package/dist/{chunk-TW64ZNZY.mjs → chunk-NG7TLPQQ.mjs} +67 -5
  96. package/dist/{chunk-THEYWGOT.js → chunk-NJLNZ73T.js} +49 -14
  97. package/dist/{chunk-WLKOJFOC.mjs → chunk-NNNG6NIA.mjs} +14 -3
  98. package/dist/{chunk-5NOZXKMU.js → chunk-O3JPGBAK.js} +8 -8
  99. package/dist/{chunk-LGVPLGK3.mjs → chunk-OCL22D5E.mjs} +21 -31
  100. package/dist/{chunk-GHPSCR6M.js → chunk-ODQOYMUQ.js} +8 -12
  101. package/dist/{chunk-FXGIIFGN.mjs → chunk-OK4PVFQG.mjs} +7 -7
  102. package/dist/{chunk-5AXCKK6Z.js → chunk-OKSLWGXR.js} +67 -5
  103. package/dist/{chunk-W5A4E4C7.js → chunk-OMVVPNU7.js} +95 -20
  104. package/dist/{chunk-M6PEW6V5.mjs → chunk-OSOA7LWH.mjs} +12 -21
  105. package/dist/{chunk-PBWSBNDS.js → chunk-OZYJ3U4H.js} +3 -21
  106. package/dist/{chunk-LLU76X6I.js → chunk-P4XGEFV3.js} +23 -9
  107. package/dist/{chunk-4Y2SJZB5.js → chunk-P7RXZVLT.js} +19 -27
  108. package/dist/{chunk-ECUROLZ7.js → chunk-PBQVYZRB.js} +174 -132
  109. package/dist/{chunk-Q6OYCTQO.mjs → chunk-PCUUTKQZ.mjs} +19 -3
  110. package/dist/{chunk-BQEVLY2O.mjs → chunk-PUSTYAMS.mjs} +141 -21
  111. package/dist/{chunk-2J54DRDA.js → chunk-Q4OPUKWF.js} +94 -20
  112. package/dist/{chunk-YH7N5GZF.mjs → chunk-QDYF23NQ.mjs} +11 -15
  113. package/dist/chunk-QRAV345L.js +78 -0
  114. package/dist/{chunk-D2I2NNYI.js → chunk-QV7XYS5P.js} +22 -19
  115. package/dist/{chunk-R77ZKZ5F.js → chunk-QYSFZA5V.js} +108 -28
  116. package/dist/chunk-QZ5OPNL4.mjs +75 -0
  117. package/dist/chunk-RDJZOMI6.js +77 -0
  118. package/dist/{chunk-SAMKKXAW.mjs → chunk-REF5Q6PG.mjs} +1 -1
  119. package/dist/{chunk-UHGRUTGW.js → chunk-RHCW2WXG.js} +23 -4
  120. package/dist/chunk-RKU54YLW.mjs +283 -0
  121. package/dist/{chunk-I6RGE7XQ.js → chunk-RKZN3URO.js} +19 -1
  122. package/dist/{chunk-34ZZLKQ4.js → chunk-RPWBZLHL.js} +44 -11
  123. package/dist/{chunk-QDNTISP7.mjs → chunk-RRTB7O7Q.mjs} +8 -30
  124. package/dist/chunk-RVU47MU6.mjs +156 -0
  125. package/dist/{chunk-4DJ2HAYO.js → chunk-S4DT7LXD.js} +2 -2
  126. package/dist/{chunk-5G5Q3TTH.js → chunk-SB2SX5EH.js} +38 -30
  127. package/dist/{chunk-FDYZ7NTQ.mjs → chunk-SC3WTLKG.mjs} +58 -21
  128. package/dist/{chunk-UNR5RUET.mjs → chunk-SPFWZCRX.mjs} +91 -17
  129. package/dist/{chunk-OXOCGMPN.mjs → chunk-TGIXSJI3.mjs} +4 -1
  130. package/dist/{chunk-Q6CGPWQF.js → chunk-TOE2XSEO.js} +23 -20
  131. package/dist/{chunk-UWL2XUAH.mjs → chunk-TVDLZZNO.mjs} +4 -4
  132. package/dist/{chunk-URYEEQD7.mjs → chunk-UANF7XE5.mjs} +17 -11
  133. package/dist/chunk-UCDB56MB.mjs +486 -0
  134. package/dist/{chunk-FCV4ML6I.js → chunk-UHVUKLHF.js} +39 -4
  135. package/dist/{chunk-M7JUNLA7.mjs → chunk-UM5GGKIX.mjs} +20 -18
  136. package/dist/{chunk-ZA2PLF7O.mjs → chunk-UNTTADHL.mjs} +4 -4
  137. package/dist/chunk-UT6T25YJ.js +159 -0
  138. package/dist/{chunk-HK2TAPQX.js → chunk-UUJ7A3CN.js} +56 -11
  139. package/dist/{chunk-EZ6GXQMP.mjs → chunk-UYN5WLHQ.mjs} +32 -24
  140. package/dist/{chunk-KFE7T7CN.js → chunk-V32X2OEO.js} +4 -1
  141. package/dist/{chunk-YFD6RD7P.mjs → chunk-V55ZONWZ.mjs} +7 -18
  142. package/dist/{chunk-XNORTTVQ.mjs → chunk-V667FK4C.mjs} +47 -1
  143. package/dist/{chunk-WCZGYU7M.js → chunk-VPNIZPIF.js} +142 -20
  144. package/dist/{chunk-F5HOHSFH.mjs → chunk-VVS2CQS4.mjs} +4 -3
  145. package/dist/{chunk-WBY2ILFK.js → chunk-VYFJ3LYD.js} +2 -2
  146. package/dist/{chunk-D6AWPRGV.js → chunk-VYGI74MJ.js} +2 -0
  147. package/dist/chunk-W5RZPTFD.mjs +103 -0
  148. package/dist/{chunk-NAHD6ZRR.mjs → chunk-W6ZFHHD3.mjs} +10 -14
  149. package/dist/{chunk-PCGHIFIJ.js → chunk-WGNJHM34.js} +84 -6
  150. package/dist/{chunk-HSXB2ASL.mjs → chunk-WLRLKW2W.mjs} +93 -13
  151. package/dist/{chunk-KYQAAQKV.mjs → chunk-WOFQV2N7.mjs} +34 -7
  152. package/dist/{chunk-W2WGLETE.mjs → chunk-WOVUC5FQ.mjs} +72 -34
  153. package/dist/{chunk-665NGSV3.mjs → chunk-WPEFGEAK.mjs} +7 -11
  154. package/dist/chunk-WU2KCS6H.js +1096 -0
  155. package/dist/{chunk-XV5DEK27.js → chunk-XH4ZZ6KJ.js} +57 -20
  156. package/dist/{chunk-AFKNO6SF.js → chunk-XJXGVNNF.js} +39 -6
  157. package/dist/chunk-XMOYCYVK.js +768 -0
  158. package/dist/{chunk-KI35GUL5.js → chunk-XOLTA3IE.js} +130 -10
  159. package/dist/{chunk-I2BZURVP.js → chunk-XUOGT4HG.js} +2 -1
  160. package/dist/{chunk-NVJRZYES.mjs → chunk-XVUATQPD.mjs} +46 -11
  161. package/dist/chunk-XWE54AWW.mjs +1093 -0
  162. package/dist/{chunk-35VYCSVH.js → chunk-XXBMPKS7.js} +9 -9
  163. package/dist/{chunk-QK3KKTYV.js → chunk-XY4A73TK.js} +2 -9
  164. package/dist/{chunk-YYRJA6VQ.mjs → chunk-YIYLO6AG.mjs} +33 -14
  165. package/dist/{chunk-PLGYRHPX.mjs → chunk-YQRRW4ZR.mjs} +1 -1
  166. package/dist/{chunk-W3Y22PMU.mjs → chunk-Z2ZECCGD.mjs} +3 -5
  167. package/dist/{chunk-AGQNHT65.mjs → chunk-Z4SG7REU.mjs} +49 -4
  168. package/dist/{chunk-NMGH5YTV.mjs → chunk-Z7ETXBOL.mjs} +6 -5
  169. package/dist/{chunk-CQPHZU3H.mjs → chunk-ZIOGRGN5.mjs} +41 -8
  170. package/dist/{chunk-I2B4CO22.mjs → chunk-ZMNX4SCS.mjs} +3 -10
  171. package/dist/{chunk-EPE6OOV7.js → chunk-ZOUJFFG4.js} +6 -6
  172. package/dist/{chunk-U5ABMOOV.js → chunk-ZSCOAOJJ.js} +20 -30
  173. package/dist/{chunk-OMYSFPX6.mjs → chunk-ZSQ5I2KL.mjs} +27 -30
  174. package/dist/{chunk-QNODDATK.mjs → chunk-ZWTC2CUB.mjs} +13 -31
  175. package/dist/components/ActivityFeed.d.mts +3 -3
  176. package/dist/components/ActivityFeed.d.ts +3 -3
  177. package/dist/components/ActivityFeed.js +5 -5
  178. package/dist/components/ActivityFeed.mjs +3 -3
  179. package/dist/components/Affix.d.mts +1 -1
  180. package/dist/components/Affix.d.ts +1 -1
  181. package/dist/components/Affix.js +3 -4
  182. package/dist/components/Affix.mjs +1 -2
  183. package/dist/components/Alert.d.mts +3 -3
  184. package/dist/components/Alert.d.ts +3 -3
  185. package/dist/components/Alert.js +0 -1
  186. package/dist/components/Alert.mjs +0 -1
  187. package/dist/components/Anchor.d.mts +69 -4
  188. package/dist/components/Anchor.d.ts +69 -4
  189. package/dist/components/Anchor.js +8 -5
  190. package/dist/components/Anchor.mjs +1 -2
  191. package/dist/components/AnchorLink.d.mts +6 -67
  192. package/dist/components/AnchorLink.d.ts +6 -67
  193. package/dist/components/AnchorLink.js +5 -9
  194. package/dist/components/AnchorLink.mjs +7 -3
  195. package/dist/components/AreaChart.d.mts +20 -2
  196. package/dist/components/AreaChart.d.ts +20 -2
  197. package/dist/components/AreaChart.js +7 -8
  198. package/dist/components/AreaChart.mjs +5 -6
  199. package/dist/components/AutoComplete.d.mts +1 -1
  200. package/dist/components/AutoComplete.d.ts +1 -1
  201. package/dist/components/AutoComplete.js +3 -4
  202. package/dist/components/AutoComplete.mjs +1 -2
  203. package/dist/components/Avatar.d.mts +1 -1
  204. package/dist/components/Avatar.d.ts +1 -1
  205. package/dist/components/Avatar.js +0 -1
  206. package/dist/components/Avatar.mjs +0 -1
  207. package/dist/components/AvatarGroup.js +4 -5
  208. package/dist/components/AvatarGroup.mjs +1 -2
  209. package/dist/components/BackTop.d.mts +3 -3
  210. package/dist/components/BackTop.d.ts +3 -3
  211. package/dist/components/BackTop.js +3 -4
  212. package/dist/components/BackTop.mjs +1 -2
  213. package/dist/components/Badge.d.mts +2 -2
  214. package/dist/components/Badge.d.ts +2 -2
  215. package/dist/components/Badge.js +0 -1
  216. package/dist/components/Badge.mjs +0 -1
  217. package/dist/components/BarChart.d.mts +2 -2
  218. package/dist/components/BarChart.d.ts +2 -2
  219. package/dist/components/BarChart.js +7 -8
  220. package/dist/components/BarChart.mjs +5 -6
  221. package/dist/components/Breadcrumb.d.mts +135 -4
  222. package/dist/components/Breadcrumb.d.ts +135 -4
  223. package/dist/components/Breadcrumb.js +8 -5
  224. package/dist/components/Breadcrumb.mjs +1 -2
  225. package/dist/components/BreadcrumbItem.d.mts +6 -135
  226. package/dist/components/BreadcrumbItem.d.ts +6 -135
  227. package/dist/components/BreadcrumbItem.js +5 -9
  228. package/dist/components/BreadcrumbItem.mjs +7 -3
  229. package/dist/components/Button.d.mts +2 -2
  230. package/dist/components/Button.d.ts +2 -2
  231. package/dist/components/Button.js +3 -4
  232. package/dist/components/Button.mjs +1 -2
  233. package/dist/components/ButtonGroup.js +4 -5
  234. package/dist/components/ButtonGroup.mjs +1 -2
  235. package/dist/components/Calendar.js +0 -1
  236. package/dist/components/Calendar.mjs +0 -1
  237. package/dist/components/Card.d.mts +3 -3
  238. package/dist/components/Card.d.ts +3 -3
  239. package/dist/components/Card.js +0 -1
  240. package/dist/components/Card.mjs +0 -1
  241. package/dist/components/Carousel.d.mts +2 -2
  242. package/dist/components/Carousel.d.ts +2 -2
  243. package/dist/components/Carousel.js +3 -4
  244. package/dist/components/Carousel.mjs +1 -2
  245. package/dist/components/Cascader.d.mts +1 -1
  246. package/dist/components/Cascader.d.ts +1 -1
  247. package/dist/components/Cascader.js +3 -4
  248. package/dist/components/Cascader.mjs +1 -2
  249. package/dist/components/ChartAxis.js +0 -1
  250. package/dist/components/ChartAxis.mjs +0 -1
  251. package/dist/components/ChartCanvas.d.mts +10 -1
  252. package/dist/components/ChartCanvas.d.ts +10 -1
  253. package/dist/components/ChartCanvas.js +3 -4
  254. package/dist/components/ChartCanvas.mjs +1 -2
  255. package/dist/components/ChartGrid.d.mts +1 -1
  256. package/dist/components/ChartGrid.d.ts +1 -1
  257. package/dist/components/ChartGrid.js +0 -1
  258. package/dist/components/ChartGrid.mjs +0 -1
  259. package/dist/components/ChartLegend.js +3 -4
  260. package/dist/components/ChartLegend.mjs +1 -2
  261. package/dist/components/ChartSeries.js +0 -1
  262. package/dist/components/ChartSeries.mjs +0 -1
  263. package/dist/components/ChartTooltip.js +3 -4
  264. package/dist/components/ChartTooltip.mjs +1 -2
  265. package/dist/components/ChatWindow.d.mts +37 -1
  266. package/dist/components/ChatWindow.d.ts +37 -1
  267. package/dist/components/ChatWindow.js +5 -5
  268. package/dist/components/ChatWindow.mjs +3 -3
  269. package/dist/components/Checkbox.js +0 -1
  270. package/dist/components/Checkbox.mjs +0 -1
  271. package/dist/components/CheckboxGroup.d.mts +1 -1
  272. package/dist/components/CheckboxGroup.d.ts +1 -1
  273. package/dist/components/CheckboxGroup.js +0 -1
  274. package/dist/components/CheckboxGroup.mjs +0 -1
  275. package/dist/components/Code.d.mts +1 -1
  276. package/dist/components/Code.d.ts +1 -1
  277. package/dist/components/Code.js +3 -4
  278. package/dist/components/Code.mjs +1 -2
  279. package/dist/components/CodeEditor.d.mts +18 -2
  280. package/dist/components/CodeEditor.d.ts +18 -2
  281. package/dist/components/CodeEditor.js +3 -4
  282. package/dist/components/CodeEditor.mjs +1 -2
  283. package/dist/components/Col.js +3 -4
  284. package/dist/components/Col.mjs +2 -3
  285. package/dist/components/Collapse.d.mts +1 -1
  286. package/dist/components/Collapse.d.ts +1 -1
  287. package/dist/components/Collapse.js +0 -1
  288. package/dist/components/Collapse.mjs +0 -1
  289. package/dist/components/CollapsePanel.d.mts +2 -2
  290. package/dist/components/CollapsePanel.d.ts +2 -2
  291. package/dist/components/CollapsePanel.js +3 -4
  292. package/dist/components/CollapsePanel.mjs +1 -2
  293. package/dist/components/ColorPicker.d.mts +1 -1
  294. package/dist/components/ColorPicker.d.ts +1 -1
  295. package/dist/components/ColorPicker.js +0 -1
  296. package/dist/components/ColorPicker.mjs +0 -1
  297. package/dist/components/CommentThread.d.mts +2 -2
  298. package/dist/components/CommentThread.d.ts +2 -2
  299. package/dist/components/CommentThread.js +4 -5
  300. package/dist/components/CommentThread.mjs +2 -3
  301. package/dist/components/ConfigProvider.d.mts +5 -4
  302. package/dist/components/ConfigProvider.d.ts +5 -4
  303. package/dist/components/ConfigProvider.js +5 -6
  304. package/dist/components/ConfigProvider.mjs +1 -2
  305. package/dist/components/Container.d.mts +8 -2
  306. package/dist/components/Container.d.ts +8 -2
  307. package/dist/components/Container.js +0 -1
  308. package/dist/components/Container.mjs +0 -1
  309. package/dist/components/Content.d.mts +1 -1
  310. package/dist/components/Content.d.ts +1 -1
  311. package/dist/components/Content.js +0 -1
  312. package/dist/components/Content.mjs +0 -1
  313. package/dist/components/CropUpload.d.mts +1 -1
  314. package/dist/components/CropUpload.d.ts +1 -1
  315. package/dist/components/CropUpload.js +7 -7
  316. package/dist/components/CropUpload.mjs +5 -5
  317. package/dist/components/DataTableWithToolbar.d.mts +9 -9
  318. package/dist/components/DataTableWithToolbar.d.ts +9 -9
  319. package/dist/components/DataTableWithToolbar.js +6 -8
  320. package/dist/components/DataTableWithToolbar.mjs +4 -6
  321. package/dist/components/DatePicker.d.mts +7 -7
  322. package/dist/components/DatePicker.d.ts +7 -7
  323. package/dist/components/DatePicker.js +3 -4
  324. package/dist/components/DatePicker.mjs +1 -2
  325. package/dist/components/Descriptions.d.mts +2 -2
  326. package/dist/components/Descriptions.d.ts +2 -2
  327. package/dist/components/Descriptions.js +0 -1
  328. package/dist/components/Descriptions.mjs +0 -1
  329. package/dist/components/Divider.d.mts +8 -1
  330. package/dist/components/Divider.d.ts +8 -1
  331. package/dist/components/Divider.js +0 -1
  332. package/dist/components/Divider.mjs +0 -1
  333. package/dist/components/DonutChart.d.mts +10 -1
  334. package/dist/components/DonutChart.d.ts +10 -1
  335. package/dist/components/DonutChart.js +8 -9
  336. package/dist/components/DonutChart.mjs +6 -7
  337. package/dist/components/Drawer.d.mts +5 -7
  338. package/dist/components/Drawer.d.ts +5 -7
  339. package/dist/components/Drawer.js +4 -5
  340. package/dist/components/Drawer.mjs +2 -3
  341. package/dist/components/Dropdown.d.mts +36 -4
  342. package/dist/components/Dropdown.d.ts +36 -4
  343. package/dist/components/Dropdown.js +9 -7
  344. package/dist/components/Dropdown.mjs +2 -4
  345. package/dist/components/DropdownItem.d.mts +1 -1
  346. package/dist/components/DropdownItem.d.ts +1 -1
  347. package/dist/components/DropdownItem.js +5 -7
  348. package/dist/components/DropdownItem.mjs +3 -5
  349. package/dist/components/DropdownMenu.d.mts +6 -36
  350. package/dist/components/DropdownMenu.d.ts +6 -36
  351. package/dist/components/DropdownMenu.js +6 -8
  352. package/dist/components/DropdownMenu.mjs +8 -2
  353. package/dist/components/Empty.d.mts +1 -1
  354. package/dist/components/Empty.d.ts +1 -1
  355. package/dist/components/Empty.js +0 -1
  356. package/dist/components/Empty.mjs +0 -1
  357. package/dist/components/FileManager.d.mts +1 -1
  358. package/dist/components/FileManager.d.ts +1 -1
  359. package/dist/components/FileManager.js +3 -4
  360. package/dist/components/FileManager.mjs +1 -2
  361. package/dist/components/FloatButton.d.mts +3 -3
  362. package/dist/components/FloatButton.d.ts +3 -3
  363. package/dist/components/FloatButton.js +0 -1
  364. package/dist/components/FloatButton.mjs +0 -1
  365. package/dist/components/Footer.d.mts +1 -1
  366. package/dist/components/Footer.d.ts +1 -1
  367. package/dist/components/Footer.js +0 -1
  368. package/dist/components/Footer.mjs +0 -1
  369. package/dist/components/Form.d.mts +18 -2
  370. package/dist/components/Form.d.ts +18 -2
  371. package/dist/components/Form.js +4 -5
  372. package/dist/components/Form.mjs +1 -2
  373. package/dist/components/FormItem.d.mts +12 -1
  374. package/dist/components/FormItem.d.ts +12 -1
  375. package/dist/components/FormItem.js +4 -5
  376. package/dist/components/FormItem.mjs +2 -3
  377. package/dist/components/FormWizard.d.mts +4 -4
  378. package/dist/components/FormWizard.d.ts +4 -4
  379. package/dist/components/FormWizard.js +6 -8
  380. package/dist/components/FormWizard.mjs +4 -6
  381. package/dist/components/FunnelChart.d.mts +10 -1
  382. package/dist/components/FunnelChart.d.ts +10 -1
  383. package/dist/components/FunnelChart.js +7 -8
  384. package/dist/components/FunnelChart.mjs +5 -6
  385. package/dist/components/GaugeChart.d.mts +11 -2
  386. package/dist/components/GaugeChart.d.ts +11 -2
  387. package/dist/components/GaugeChart.js +4 -5
  388. package/dist/components/GaugeChart.mjs +2 -3
  389. package/dist/components/Header.d.mts +1 -1
  390. package/dist/components/Header.d.ts +1 -1
  391. package/dist/components/Header.js +0 -1
  392. package/dist/components/Header.mjs +0 -1
  393. package/dist/components/HeatmapChart.d.mts +25 -1
  394. package/dist/components/HeatmapChart.d.ts +25 -1
  395. package/dist/components/HeatmapChart.js +6 -7
  396. package/dist/components/HeatmapChart.mjs +4 -5
  397. package/dist/components/Icon.js +0 -1
  398. package/dist/components/Icon.mjs +0 -1
  399. package/dist/components/Image.d.mts +1 -1
  400. package/dist/components/Image.d.ts +1 -1
  401. package/dist/components/Image.js +5 -6
  402. package/dist/components/Image.mjs +2 -3
  403. package/dist/components/ImageCropper.d.mts +1 -1
  404. package/dist/components/ImageCropper.d.ts +1 -1
  405. package/dist/components/ImageCropper.js +3 -4
  406. package/dist/components/ImageCropper.mjs +1 -2
  407. package/dist/components/ImageGroup.js +5 -6
  408. package/dist/components/ImageGroup.mjs +2 -3
  409. package/dist/components/ImagePreview.js +4 -5
  410. package/dist/components/ImagePreview.mjs +1 -5
  411. package/dist/components/ImageViewer.js +3 -4
  412. package/dist/components/ImageViewer.mjs +1 -2
  413. package/dist/components/InfiniteScroll.d.mts +1 -1
  414. package/dist/components/InfiniteScroll.d.ts +1 -1
  415. package/dist/components/InfiniteScroll.js +3 -4
  416. package/dist/components/InfiniteScroll.mjs +1 -2
  417. package/dist/components/Input.d.mts +1 -1
  418. package/dist/components/Input.d.ts +1 -1
  419. package/dist/components/Input.js +0 -1
  420. package/dist/components/Input.mjs +0 -1
  421. package/dist/components/InputGroup.js +0 -1
  422. package/dist/components/InputGroup.mjs +0 -1
  423. package/dist/components/InputNumber.d.mts +1 -1
  424. package/dist/components/InputNumber.d.ts +1 -1
  425. package/dist/components/InputNumber.js +3 -4
  426. package/dist/components/InputNumber.mjs +1 -2
  427. package/dist/components/Kanban.d.mts +1 -1
  428. package/dist/components/Kanban.d.ts +1 -1
  429. package/dist/components/Kanban.js +5 -6
  430. package/dist/components/Kanban.mjs +3 -4
  431. package/dist/components/Layout.d.mts +1 -1
  432. package/dist/components/Layout.d.ts +1 -1
  433. package/dist/components/Layout.js +0 -1
  434. package/dist/components/Layout.mjs +0 -1
  435. package/dist/components/LineChart.d.mts +19 -1
  436. package/dist/components/LineChart.d.ts +19 -1
  437. package/dist/components/LineChart.js +7 -8
  438. package/dist/components/LineChart.mjs +5 -6
  439. package/dist/components/Link.d.mts +11 -2
  440. package/dist/components/Link.d.ts +11 -2
  441. package/dist/components/Link.js +0 -1
  442. package/dist/components/Link.mjs +0 -1
  443. package/dist/components/List.d.mts +65 -3
  444. package/dist/components/List.d.ts +65 -3
  445. package/dist/components/List.js +4 -4
  446. package/dist/components/List.mjs +2 -2
  447. package/dist/components/Loading.d.mts +22 -4
  448. package/dist/components/Loading.d.ts +22 -4
  449. package/dist/components/Loading.js +4 -4
  450. package/dist/components/Loading.mjs +2 -2
  451. package/dist/components/Mentions.d.mts +1 -1
  452. package/dist/components/Mentions.d.ts +1 -1
  453. package/dist/components/Mentions.js +3 -4
  454. package/dist/components/Mentions.mjs +1 -2
  455. package/dist/components/Menu.d.mts +265 -4
  456. package/dist/components/Menu.d.ts +265 -4
  457. package/dist/components/Menu.js +16 -5
  458. package/dist/components/Menu.mjs +1 -2
  459. package/dist/components/MenuItem.d.mts +6 -95
  460. package/dist/components/MenuItem.d.ts +6 -95
  461. package/dist/components/MenuItem.js +5 -9
  462. package/dist/components/MenuItem.mjs +7 -3
  463. package/dist/components/MenuItemGroup.d.mts +6 -57
  464. package/dist/components/MenuItemGroup.d.ts +6 -57
  465. package/dist/components/MenuItemGroup.js +5 -8
  466. package/dist/components/MenuItemGroup.mjs +7 -2
  467. package/dist/components/Message.d.mts +4 -1
  468. package/dist/components/Message.d.ts +4 -1
  469. package/dist/components/Message.js +4 -5
  470. package/dist/components/Message.mjs +1 -2
  471. package/dist/components/Modal.d.mts +7 -9
  472. package/dist/components/Modal.d.ts +7 -9
  473. package/dist/components/Modal.js +5 -5
  474. package/dist/components/Modal.mjs +3 -3
  475. package/dist/components/Notification.d.mts +4 -1
  476. package/dist/components/Notification.d.ts +4 -1
  477. package/dist/components/Notification.js +4 -5
  478. package/dist/components/Notification.mjs +1 -2
  479. package/dist/components/NotificationCenter.d.mts +4 -4
  480. package/dist/components/NotificationCenter.d.ts +4 -4
  481. package/dist/components/NotificationCenter.js +9 -9
  482. package/dist/components/NotificationCenter.mjs +7 -7
  483. package/dist/components/Pagination.d.mts +31 -9
  484. package/dist/components/Pagination.d.ts +31 -9
  485. package/dist/components/Pagination.js +3 -4
  486. package/dist/components/Pagination.mjs +1 -2
  487. package/dist/components/PieChart.d.mts +10 -1
  488. package/dist/components/PieChart.d.ts +10 -1
  489. package/dist/components/PieChart.js +7 -8
  490. package/dist/components/PieChart.mjs +5 -6
  491. package/dist/components/Popconfirm.d.mts +5 -5
  492. package/dist/components/Popconfirm.d.ts +5 -5
  493. package/dist/components/Popconfirm.js +5 -6
  494. package/dist/components/Popconfirm.mjs +3 -4
  495. package/dist/components/Popover.d.mts +4 -4
  496. package/dist/components/Popover.d.ts +4 -4
  497. package/dist/components/Popover.js +5 -6
  498. package/dist/components/Popover.mjs +3 -4
  499. package/dist/components/PrintLayout.js +0 -1
  500. package/dist/components/PrintLayout.mjs +0 -1
  501. package/dist/components/Progress.d.mts +2 -2
  502. package/dist/components/Progress.d.ts +2 -2
  503. package/dist/components/Progress.js +0 -1
  504. package/dist/components/Progress.mjs +0 -1
  505. package/dist/components/QRCode.d.mts +1 -1
  506. package/dist/components/QRCode.d.ts +1 -1
  507. package/dist/components/QRCode.js +0 -1
  508. package/dist/components/QRCode.mjs +0 -1
  509. package/dist/components/RadarChart.d.mts +29 -2
  510. package/dist/components/RadarChart.d.ts +29 -2
  511. package/dist/components/RadarChart.js +7 -8
  512. package/dist/components/RadarChart.mjs +5 -6
  513. package/dist/components/Radio.js +0 -1
  514. package/dist/components/Radio.mjs +0 -1
  515. package/dist/components/RadioGroup.d.mts +1 -1
  516. package/dist/components/RadioGroup.d.ts +1 -1
  517. package/dist/components/RadioGroup.js +0 -1
  518. package/dist/components/RadioGroup.mjs +0 -1
  519. package/dist/components/Rate.d.mts +1 -1
  520. package/dist/components/Rate.d.ts +1 -1
  521. package/dist/components/Rate.js +0 -1
  522. package/dist/components/Rate.mjs +0 -1
  523. package/dist/components/Resizable.d.mts +1 -1
  524. package/dist/components/Resizable.d.ts +1 -1
  525. package/dist/components/Resizable.js +3 -4
  526. package/dist/components/Resizable.mjs +1 -2
  527. package/dist/components/Result.d.mts +1 -1
  528. package/dist/components/Result.d.ts +1 -1
  529. package/dist/components/Result.js +0 -1
  530. package/dist/components/Result.mjs +0 -1
  531. package/dist/components/RichTextEditor.d.mts +21 -5
  532. package/dist/components/RichTextEditor.d.ts +21 -5
  533. package/dist/components/RichTextEditor.js +3 -4
  534. package/dist/components/RichTextEditor.mjs +1 -2
  535. package/dist/components/Row.d.mts +2 -2
  536. package/dist/components/Row.d.ts +2 -2
  537. package/dist/components/Row.js +3 -4
  538. package/dist/components/Row.mjs +1 -2
  539. package/dist/components/ScatterChart.d.mts +2 -2
  540. package/dist/components/ScatterChart.d.ts +2 -2
  541. package/dist/components/ScatterChart.js +7 -8
  542. package/dist/components/ScatterChart.mjs +5 -6
  543. package/dist/components/Segmented.d.mts +1 -1
  544. package/dist/components/Segmented.d.ts +1 -1
  545. package/dist/components/Segmented.js +3 -4
  546. package/dist/components/Segmented.mjs +1 -2
  547. package/dist/components/Select.d.mts +17 -2
  548. package/dist/components/Select.d.ts +17 -2
  549. package/dist/components/Select.js +3 -4
  550. package/dist/components/Select.mjs +1 -2
  551. package/dist/components/Sidebar.d.mts +1 -1
  552. package/dist/components/Sidebar.d.ts +1 -1
  553. package/dist/components/Sidebar.js +0 -1
  554. package/dist/components/Sidebar.mjs +0 -1
  555. package/dist/components/Skeleton.d.mts +1 -1
  556. package/dist/components/Skeleton.d.ts +1 -1
  557. package/dist/components/Skeleton.js +0 -1
  558. package/dist/components/Skeleton.mjs +0 -1
  559. package/dist/components/Slider.d.mts +2 -2
  560. package/dist/components/Slider.d.ts +2 -2
  561. package/dist/components/Slider.js +0 -1
  562. package/dist/components/Slider.mjs +0 -1
  563. package/dist/components/Space.d.mts +1 -1
  564. package/dist/components/Space.d.ts +1 -1
  565. package/dist/components/Space.js +0 -1
  566. package/dist/components/Space.mjs +0 -1
  567. package/dist/components/Splitter.d.mts +1 -1
  568. package/dist/components/Splitter.d.ts +1 -1
  569. package/dist/components/Splitter.js +3 -4
  570. package/dist/components/Splitter.mjs +1 -2
  571. package/dist/components/Statistic.d.mts +19 -1
  572. package/dist/components/Statistic.d.ts +19 -1
  573. package/dist/components/Statistic.js +3 -4
  574. package/dist/components/Statistic.mjs +1 -2
  575. package/dist/components/Stepper.d.mts +1 -1
  576. package/dist/components/Stepper.d.ts +1 -1
  577. package/dist/components/Stepper.js +3 -4
  578. package/dist/components/Stepper.mjs +1 -2
  579. package/dist/components/Steps.d.mts +139 -2
  580. package/dist/components/Steps.d.ts +139 -2
  581. package/dist/components/Steps.js +8 -5
  582. package/dist/components/Steps.mjs +1 -2
  583. package/dist/components/StepsItem.d.mts +6 -141
  584. package/dist/components/StepsItem.d.ts +6 -141
  585. package/dist/components/StepsItem.js +5 -9
  586. package/dist/components/StepsItem.mjs +7 -3
  587. package/dist/components/SubMenu.d.mts +6 -117
  588. package/dist/components/SubMenu.d.ts +6 -117
  589. package/dist/components/SubMenu.js +5 -9
  590. package/dist/components/SubMenu.mjs +7 -3
  591. package/dist/components/SunburstChart.d.mts +10 -1
  592. package/dist/components/SunburstChart.d.ts +10 -1
  593. package/dist/components/SunburstChart.js +7 -8
  594. package/dist/components/SunburstChart.mjs +5 -6
  595. package/dist/components/Switch.d.mts +1 -1
  596. package/dist/components/Switch.d.ts +1 -1
  597. package/dist/components/Switch.js +3 -4
  598. package/dist/components/Switch.mjs +1 -2
  599. package/dist/components/TabPane.d.mts +6 -169
  600. package/dist/components/TabPane.d.ts +6 -169
  601. package/dist/components/TabPane.js +5 -9
  602. package/dist/components/TabPane.mjs +7 -3
  603. package/dist/components/Table.d.mts +274 -395
  604. package/dist/components/Table.d.ts +274 -395
  605. package/dist/components/Table.js +3 -4
  606. package/dist/components/Table.mjs +1 -2
  607. package/dist/components/Tabs.d.mts +168 -2
  608. package/dist/components/Tabs.d.ts +168 -2
  609. package/dist/components/Tabs.js +8 -5
  610. package/dist/components/Tabs.mjs +1 -2
  611. package/dist/components/Tag.d.mts +3 -3
  612. package/dist/components/Tag.d.ts +3 -3
  613. package/dist/components/Tag.js +0 -1
  614. package/dist/components/Tag.mjs +0 -1
  615. package/dist/components/TaskBoard.d.mts +1 -1
  616. package/dist/components/TaskBoard.d.ts +1 -1
  617. package/dist/components/TaskBoard.js +4 -5
  618. package/dist/components/TaskBoard.mjs +2 -3
  619. package/dist/components/Text.d.mts +2 -2
  620. package/dist/components/Text.d.ts +2 -2
  621. package/dist/components/Text.js +0 -1
  622. package/dist/components/Text.mjs +0 -1
  623. package/dist/components/Textarea.d.mts +1 -1
  624. package/dist/components/Textarea.d.ts +1 -1
  625. package/dist/components/Textarea.js +0 -1
  626. package/dist/components/Textarea.mjs +0 -1
  627. package/dist/components/TimePicker.d.mts +3 -3
  628. package/dist/components/TimePicker.d.ts +3 -3
  629. package/dist/components/TimePicker.js +3 -4
  630. package/dist/components/TimePicker.mjs +1 -2
  631. package/dist/components/Timeline.d.mts +1 -1
  632. package/dist/components/Timeline.d.ts +1 -1
  633. package/dist/components/Timeline.js +0 -1
  634. package/dist/components/Timeline.mjs +0 -1
  635. package/dist/components/Tooltip.d.mts +3 -3
  636. package/dist/components/Tooltip.d.ts +3 -3
  637. package/dist/components/Tooltip.js +5 -6
  638. package/dist/components/Tooltip.mjs +3 -4
  639. package/dist/components/Tour.d.mts +3 -3
  640. package/dist/components/Tour.d.ts +3 -3
  641. package/dist/components/Tour.js +0 -1
  642. package/dist/components/Tour.mjs +0 -1
  643. package/dist/components/Transfer.d.mts +1 -1
  644. package/dist/components/Transfer.d.ts +1 -1
  645. package/dist/components/Transfer.js +3 -4
  646. package/dist/components/Transfer.mjs +1 -2
  647. package/dist/components/Tree.d.mts +50 -1
  648. package/dist/components/Tree.d.ts +50 -1
  649. package/dist/components/Tree.js +4 -4
  650. package/dist/components/Tree.mjs +2 -2
  651. package/dist/components/TreeMapChart.d.mts +10 -1
  652. package/dist/components/TreeMapChart.d.ts +10 -1
  653. package/dist/components/TreeMapChart.js +7 -8
  654. package/dist/components/TreeMapChart.mjs +5 -6
  655. package/dist/components/TreeSelect.d.mts +1 -1
  656. package/dist/components/TreeSelect.d.ts +1 -1
  657. package/dist/components/TreeSelect.js +3 -4
  658. package/dist/components/TreeSelect.mjs +1 -2
  659. package/dist/components/Upload.d.mts +3 -3
  660. package/dist/components/Upload.d.ts +3 -3
  661. package/dist/components/Upload.js +4 -5
  662. package/dist/components/Upload.mjs +2 -3
  663. package/dist/components/VirtualList.d.mts +29 -0
  664. package/dist/components/VirtualList.d.ts +29 -0
  665. package/dist/components/VirtualList.js +3 -4
  666. package/dist/components/VirtualList.mjs +1 -2
  667. package/dist/components/VirtualTable.d.mts +3 -3
  668. package/dist/components/VirtualTable.d.ts +3 -3
  669. package/dist/components/VirtualTable.js +3 -4
  670. package/dist/components/VirtualTable.mjs +1 -2
  671. package/dist/components/Watermark.d.mts +2 -2
  672. package/dist/components/Watermark.d.ts +2 -2
  673. package/dist/components/Watermark.js +3 -4
  674. package/dist/components/Watermark.mjs +1 -2
  675. package/dist/index.d.mts +36 -24
  676. package/dist/index.d.ts +36 -24
  677. package/dist/index.js +337 -213
  678. package/dist/index.mjs +224 -102
  679. package/package.json +13 -8
  680. package/dist/chunk-3AM6WEUE.mjs +0 -174
  681. package/dist/chunk-53M2BTB5.mjs +0 -22
  682. package/dist/chunk-5JSU44MQ.js +0 -242
  683. package/dist/chunk-5WHLXWWT.mjs +0 -68
  684. package/dist/chunk-5Y3HYEQD.js +0 -64
  685. package/dist/chunk-6DP7XE77.js +0 -267
  686. package/dist/chunk-7UU4PULK.mjs +0 -138
  687. package/dist/chunk-AN3HKOCS.mjs +0 -50
  688. package/dist/chunk-BMW2Z3G3.mjs +0 -94
  689. package/dist/chunk-BNIUWON3.js +0 -243
  690. package/dist/chunk-CG3AMK5U.mjs +0 -38
  691. package/dist/chunk-EBQ4WSQS.js +0 -97
  692. package/dist/chunk-ELEAQEMV.mjs +0 -61
  693. package/dist/chunk-ESALMEHU.js +0 -343
  694. package/dist/chunk-GLW3P75K.js +0 -72
  695. package/dist/chunk-HKYYO326.mjs +0 -238
  696. package/dist/chunk-HRIKUP6R.js +0 -106
  697. package/dist/chunk-HTG6ISVH.mjs +0 -1094
  698. package/dist/chunk-JHY57P4P.mjs +0 -69
  699. package/dist/chunk-JSIQIWYP.js +0 -41
  700. package/dist/chunk-N5I5Y5JG.js +0 -53
  701. package/dist/chunk-NOTJRUAK.js +0 -142
  702. package/dist/chunk-O2SABM5H.js +0 -178
  703. package/dist/chunk-PICYE2CM.js +0 -176
  704. package/dist/chunk-PNKVD2UK.js +0 -26
  705. package/dist/chunk-TT5LWQIZ.js +0 -1097
  706. package/dist/chunk-TTDBR2B4.mjs +0 -340
  707. package/dist/chunk-U6WHPSWN.mjs +0 -83
  708. package/dist/chunk-VTLTKTCK.js +0 -87
  709. package/dist/chunk-XCJONKFL.mjs +0 -173
  710. package/dist/chunk-XP5M2GK7.mjs +0 -57
  711. package/dist/chunk-YUEBMBOH.mjs +0 -103
  712. package/dist/chunk-ZUVR5UZL.mjs +0 -264
  713. package/dist/chunk-ZXR4DAAO.mjs +0 -240
@@ -0,0 +1,1093 @@
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, h, computed, watch } from 'vue';
2
+ import { getSpinnerSVG, createTableResizeObserverController, getTableVirtualRecommendation, classNames, tableBaseClasses, getTableWrapperClasses, tableExportButtonClasses, tableLoadingOverlayClasses, getFixedColumnOffsets, filterDataAdvanced, filterData, sortData, paginateData, createTableRowKeyCache, calculatePagination, groupDataByColumn, getExpandIconCellClasses, getCheckboxCellClasses, getTableHeaderCellClasses, getTableHeaderClasses, tableEmptyStateClasses, tableGroupHeaderClasses, getGroupHeaderCellClasses, getTableCellClasses, tableSummaryRowClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, getLoadingOverlaySpinnerClasses, normalizeSvgAttrs, exportTableToCsv, downloadCsv, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, icon16ViewBox, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, editableCellInputClasses, getEditableCellClasses, getTableRowClasses, getExpandedRowClasses, getExpandedRowContentClasses, getExpandIconClasses, expandChevronIcon16PathD } from '@expcat/tigercat-core';
3
+
4
+ // src/components/Table.ts
5
+
6
+ // src/components/Table/props.ts
7
+ var tableProps = {
8
+ columns: {
9
+ type: Array,
10
+ required: true
11
+ },
12
+ columnLockable: {
13
+ type: Boolean,
14
+ default: false
15
+ },
16
+ dataSource: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ sort: {
21
+ type: Object
22
+ },
23
+ defaultSort: {
24
+ type: Object,
25
+ default: () => ({
26
+ key: null,
27
+ direction: null
28
+ })
29
+ },
30
+ filters: {
31
+ type: Object
32
+ },
33
+ defaultFilters: {
34
+ type: Object,
35
+ default: () => ({})
36
+ },
37
+ size: {
38
+ type: String,
39
+ default: "md"
40
+ },
41
+ bordered: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ striped: {
46
+ type: Boolean,
47
+ default: false
48
+ },
49
+ hoverable: {
50
+ type: Boolean,
51
+ default: true
52
+ },
53
+ loading: {
54
+ type: Boolean,
55
+ default: false
56
+ },
57
+ emptyText: {
58
+ type: String,
59
+ default: "No data"
60
+ },
61
+ pagination: {
62
+ type: [Object, Boolean],
63
+ default: () => ({
64
+ current: 1,
65
+ pageSize: 10,
66
+ total: 0,
67
+ pageSizeOptions: [10, 20, 50, 100],
68
+ showSizeChanger: true,
69
+ showTotal: true
70
+ })
71
+ },
72
+ rowSelection: {
73
+ type: Object
74
+ },
75
+ expandable: {
76
+ type: Object
77
+ },
78
+ rowKey: {
79
+ type: [String, Function],
80
+ default: "id"
81
+ },
82
+ rowClassName: {
83
+ type: [String, Function]
84
+ },
85
+ stickyHeader: {
86
+ type: Boolean,
87
+ default: false
88
+ },
89
+ maxHeight: {
90
+ type: [String, Number]
91
+ },
92
+ tableLayout: {
93
+ type: String,
94
+ default: "auto"
95
+ },
96
+ // --- v0.6.0 props ---
97
+ virtual: { type: Boolean, default: false },
98
+ virtualHeight: { type: Number, default: 400 },
99
+ virtualItemHeight: { type: Number, default: 40 },
100
+ virtualThreshold: { type: Number, default: 1e3 },
101
+ editable: { type: Boolean, default: false },
102
+ editableCells: { type: Object },
103
+ filterMode: { type: String, default: "basic" },
104
+ advancedFilterRules: { type: Array, default: () => [] },
105
+ columnDraggable: { type: Boolean, default: false },
106
+ summaryRow: { type: Object },
107
+ groupBy: { type: String },
108
+ exportable: { type: Boolean, default: false },
109
+ exportFilename: { type: String, default: "export" }
110
+ };
111
+ var tableEmits = [
112
+ "change",
113
+ "row-click",
114
+ "selection-change",
115
+ "sort-change",
116
+ "filter-change",
117
+ "page-change",
118
+ "expand-change",
119
+ "cell-change",
120
+ "column-order-change",
121
+ "export"
122
+ ];
123
+ function useTableState(props, emit, measuredColumnWidths) {
124
+ const paginationConfig = computed(() => {
125
+ return props.pagination !== false && typeof props.pagination === "object" ? props.pagination : null;
126
+ });
127
+ const isSortControlled = computed(() => props.sort !== void 0);
128
+ const isFiltersControlled = computed(() => props.filters !== void 0);
129
+ const isSelectionControlled = computed(() => props.rowSelection?.selectedRowKeys !== void 0);
130
+ const isExpandControlled = computed(() => props.expandable?.expandedRowKeys !== void 0);
131
+ const uncontrolledSortState = ref(props.defaultSort ?? { key: null, direction: null });
132
+ const uncontrolledFilterState = ref(props.defaultFilters ?? {});
133
+ const uncontrolledCurrentPage = ref(
134
+ paginationConfig.value?.defaultCurrent ?? paginationConfig.value?.current ?? 1
135
+ );
136
+ const uncontrolledCurrentPageSize = ref(
137
+ paginationConfig.value?.defaultPageSize ?? paginationConfig.value?.pageSize ?? 10
138
+ );
139
+ const uncontrolledSelectedRowKeys = ref(
140
+ props.rowSelection?.defaultSelectedRowKeys ?? props.rowSelection?.selectedRowKeys ?? []
141
+ );
142
+ const uncontrolledExpandedRowKeys = ref(
143
+ props.expandable?.defaultExpandedRowKeys ?? props.expandable?.expandedRowKeys ?? []
144
+ );
145
+ const sortState = computed(() => props.sort ?? uncontrolledSortState.value);
146
+ const filterState = computed(() => props.filters ?? uncontrolledFilterState.value);
147
+ const currentPage = computed(() => {
148
+ return paginationConfig.value?.current ?? uncontrolledCurrentPage.value;
149
+ });
150
+ const currentPageSize = computed(() => {
151
+ return paginationConfig.value?.pageSize ?? uncontrolledCurrentPageSize.value;
152
+ });
153
+ const selectedRowKeys = computed(() => {
154
+ return props.rowSelection?.selectedRowKeys ?? uncontrolledSelectedRowKeys.value;
155
+ });
156
+ const expandedRowKeys = computed(() => {
157
+ return props.expandable?.expandedRowKeys ?? uncontrolledExpandedRowKeys.value;
158
+ });
159
+ watch(
160
+ () => props.sort,
161
+ (next) => {
162
+ if (next !== void 0) {
163
+ uncontrolledSortState.value = next;
164
+ }
165
+ }
166
+ );
167
+ watch(
168
+ () => props.filters,
169
+ (next) => {
170
+ if (next !== void 0) {
171
+ uncontrolledFilterState.value = next;
172
+ }
173
+ }
174
+ );
175
+ watch(
176
+ () => paginationConfig.value?.current,
177
+ (next) => {
178
+ if (next !== void 0) {
179
+ uncontrolledCurrentPage.value = next;
180
+ }
181
+ }
182
+ );
183
+ watch(
184
+ () => paginationConfig.value?.pageSize,
185
+ (next) => {
186
+ if (next !== void 0) {
187
+ uncontrolledCurrentPageSize.value = next;
188
+ }
189
+ }
190
+ );
191
+ watch(
192
+ () => props.rowSelection?.selectedRowKeys,
193
+ (next) => {
194
+ if (next !== void 0) {
195
+ uncontrolledSelectedRowKeys.value = next;
196
+ }
197
+ }
198
+ );
199
+ watch(
200
+ () => props.expandable?.expandedRowKeys,
201
+ (next) => {
202
+ if (next !== void 0) {
203
+ uncontrolledExpandedRowKeys.value = next;
204
+ }
205
+ }
206
+ );
207
+ const fixedOverrides = ref({});
208
+ const displayColumns = computed(() => {
209
+ return props.columns.map((column) => {
210
+ const hasOverride = column.key in fixedOverrides.value;
211
+ return {
212
+ ...column,
213
+ fixed: hasOverride ? fixedOverrides.value[column.key] : column.fixed
214
+ };
215
+ });
216
+ });
217
+ const fixedColumnsInfo = computed(() => {
218
+ return getFixedColumnOffsets(displayColumns.value, measuredColumnWidths.value);
219
+ });
220
+ const columnByKey = computed(() => {
221
+ const map = {};
222
+ for (const column of displayColumns.value) {
223
+ map[column.key] = column;
224
+ }
225
+ return map;
226
+ });
227
+ function toggleColumnLock(columnKey) {
228
+ const original = props.columns.find((c) => c.key === columnKey)?.fixed;
229
+ const hasOverride = columnKey in fixedOverrides.value;
230
+ const current = hasOverride ? fixedOverrides.value[columnKey] : original;
231
+ const isLocked = current === "left" || current === "right";
232
+ fixedOverrides.value[columnKey] = isLocked ? false : "left";
233
+ }
234
+ const processedData = computed(() => {
235
+ let data = props.dataSource ?? [];
236
+ if (props.filterMode === "advanced" && (props.advancedFilterRules?.length ?? 0) > 0) {
237
+ data = filterDataAdvanced(data, props.advancedFilterRules ?? []);
238
+ } else {
239
+ data = filterData(data, filterState.value);
240
+ }
241
+ if (sortState.value.key && sortState.value.direction) {
242
+ const column = columnByKey.value[sortState.value.key];
243
+ data = sortData(data, sortState.value.key, sortState.value.direction, column?.sortFn);
244
+ }
245
+ return data;
246
+ });
247
+ const paginatedData = computed(() => {
248
+ if (props.pagination === false) {
249
+ return processedData.value;
250
+ }
251
+ return paginateData(processedData.value, currentPage.value, currentPageSize.value);
252
+ });
253
+ const paginatedRowKeys = computed(() => {
254
+ return createTableRowKeyCache(props.rowKey).getMany(
255
+ paginatedData.value
256
+ );
257
+ });
258
+ const selectedRowKeySet = computed(() => {
259
+ return new Set(selectedRowKeys.value);
260
+ });
261
+ const expandedRowKeySet = computed(() => {
262
+ return new Set(expandedRowKeys.value);
263
+ });
264
+ const totalColumnCount = computed(() => {
265
+ let count = displayColumns.value.length;
266
+ if (props.rowSelection) count += 1;
267
+ if (props.expandable) count += 1;
268
+ return count;
269
+ });
270
+ const paginationInfo = computed(() => {
271
+ if (props.pagination === false) {
272
+ return null;
273
+ }
274
+ const total = paginationConfig.value?.total !== void 0 && paginationConfig.value.total > 0 ? paginationConfig.value.total : processedData.value.length;
275
+ return calculatePagination(total, currentPage.value, currentPageSize.value);
276
+ });
277
+ function handleSort(columnKey) {
278
+ const column = displayColumns.value.find((col) => col.key === columnKey);
279
+ if (!column || !column.sortable) {
280
+ return;
281
+ }
282
+ let newDirection = "asc";
283
+ if (sortState.value.key === columnKey) {
284
+ if (sortState.value.direction === "asc") {
285
+ newDirection = "desc";
286
+ } else if (sortState.value.direction === "desc") {
287
+ newDirection = null;
288
+ }
289
+ }
290
+ const nextSortState = {
291
+ key: newDirection ? columnKey : null,
292
+ direction: newDirection
293
+ };
294
+ if (!isSortControlled.value) {
295
+ uncontrolledSortState.value = nextSortState;
296
+ }
297
+ emit("sort-change", nextSortState);
298
+ emit("change", {
299
+ sort: nextSortState,
300
+ filters: filterState.value,
301
+ pagination: props.pagination !== false ? {
302
+ current: currentPage.value,
303
+ pageSize: currentPageSize.value
304
+ } : null
305
+ });
306
+ }
307
+ function handleFilter(columnKey, value) {
308
+ const nextFilterState = {
309
+ ...filterState.value,
310
+ [columnKey]: value
311
+ };
312
+ if (!isFiltersControlled.value) {
313
+ uncontrolledFilterState.value = nextFilterState;
314
+ }
315
+ uncontrolledCurrentPage.value = 1;
316
+ emit("filter-change", nextFilterState);
317
+ emit("change", {
318
+ sort: sortState.value,
319
+ filters: nextFilterState,
320
+ pagination: props.pagination !== false ? {
321
+ current: 1,
322
+ pageSize: currentPageSize.value
323
+ } : null
324
+ });
325
+ }
326
+ function handlePageChange(page) {
327
+ uncontrolledCurrentPage.value = page;
328
+ emit("page-change", { current: page, pageSize: currentPageSize.value });
329
+ emit("change", {
330
+ sort: sortState.value,
331
+ filters: filterState.value,
332
+ pagination: {
333
+ current: page,
334
+ pageSize: currentPageSize.value
335
+ }
336
+ });
337
+ }
338
+ function handlePageSizeChange(pageSize) {
339
+ uncontrolledCurrentPageSize.value = pageSize;
340
+ uncontrolledCurrentPage.value = 1;
341
+ emit("page-change", { current: 1, pageSize });
342
+ emit("change", {
343
+ sort: sortState.value,
344
+ filters: filterState.value,
345
+ pagination: {
346
+ current: 1,
347
+ pageSize
348
+ }
349
+ });
350
+ }
351
+ function handleToggleExpand(key, record) {
352
+ const isExpanded = expandedRowKeySet.value.has(key);
353
+ const newKeys = isExpanded ? expandedRowKeys.value.filter((k) => k !== key) : [...expandedRowKeys.value, key];
354
+ if (!isExpandControlled.value) {
355
+ uncontrolledExpandedRowKeys.value = newKeys;
356
+ }
357
+ emit("expand-change", newKeys, record, !isExpanded);
358
+ }
359
+ function handleRowClick(record, index, key) {
360
+ emit("row-click", record, index);
361
+ if (props.expandable?.expandRowByClick) {
362
+ const isExpandable = props.expandable?.rowExpandable ? props.expandable.rowExpandable(record) : true;
363
+ if (isExpandable) {
364
+ handleToggleExpand(key, record);
365
+ }
366
+ }
367
+ }
368
+ function handleSelectRow(key, checked) {
369
+ let newKeys;
370
+ if (props.rowSelection?.type === "radio") {
371
+ newKeys = checked ? [key] : [];
372
+ } else {
373
+ if (checked) {
374
+ newKeys = [...selectedRowKeys.value, key];
375
+ } else {
376
+ newKeys = selectedRowKeys.value.filter((k) => k !== key);
377
+ }
378
+ }
379
+ if (!isSelectionControlled.value) {
380
+ uncontrolledSelectedRowKeys.value = newKeys;
381
+ }
382
+ emit("selection-change", newKeys);
383
+ }
384
+ function handleSelectAll(checked) {
385
+ if (checked) {
386
+ const nextKeys = paginatedRowKeys.value;
387
+ if (!isSelectionControlled.value) {
388
+ uncontrolledSelectedRowKeys.value = nextKeys;
389
+ }
390
+ emit("selection-change", nextKeys);
391
+ } else {
392
+ if (!isSelectionControlled.value) {
393
+ uncontrolledSelectedRowKeys.value = [];
394
+ }
395
+ emit("selection-change", []);
396
+ }
397
+ }
398
+ const allSelected = computed(() => {
399
+ if (paginatedRowKeys.value.length === 0) {
400
+ return false;
401
+ }
402
+ return paginatedRowKeys.value.every((key) => selectedRowKeySet.value.has(key));
403
+ });
404
+ const someSelected = computed(() => {
405
+ return selectedRowKeys.value.length > 0 && !allSelected.value;
406
+ });
407
+ const editingCell = ref(null);
408
+ const editingValue = ref("");
409
+ function isCellEditable(columnKey, rowIndex) {
410
+ if (!props.editable) return false;
411
+ if (!props.editableCells) return true;
412
+ return !!props.editableCells.get(columnKey)?.has(rowIndex);
413
+ }
414
+ function startEditing(rowIndex, columnKey, currentValue) {
415
+ editingCell.value = { rowIndex, columnKey };
416
+ editingValue.value = String(currentValue ?? "");
417
+ }
418
+ function commitEdit() {
419
+ if (editingCell.value) {
420
+ emit(
421
+ "cell-change",
422
+ editingCell.value.rowIndex,
423
+ editingCell.value.columnKey,
424
+ editingValue.value
425
+ );
426
+ editingCell.value = null;
427
+ }
428
+ }
429
+ function cancelEdit() {
430
+ editingCell.value = null;
431
+ }
432
+ function handleExport() {
433
+ const csv = exportTableToCsv(displayColumns.value, processedData.value);
434
+ downloadCsv(csv, props.exportFilename);
435
+ emit("export", csv);
436
+ }
437
+ const dragColumnKey = ref(null);
438
+ function handleDragStart(columnKey) {
439
+ dragColumnKey.value = columnKey;
440
+ }
441
+ function handleDrop(targetKey) {
442
+ if (!dragColumnKey.value || dragColumnKey.value === targetKey) return;
443
+ const cols = [...displayColumns.value];
444
+ const fromIdx = cols.findIndex((c) => c.key === dragColumnKey.value);
445
+ const toIdx = cols.findIndex((c) => c.key === targetKey);
446
+ if (fromIdx >= 0 && toIdx >= 0) {
447
+ const [moved] = cols.splice(fromIdx, 1);
448
+ cols.splice(toIdx, 0, moved);
449
+ emit("column-order-change", cols);
450
+ }
451
+ dragColumnKey.value = null;
452
+ }
453
+ const virtualScrollTop = ref(0);
454
+ const groupedData = computed(() => {
455
+ if (!props.groupBy) return null;
456
+ return groupDataByColumn(paginatedData.value, props.groupBy);
457
+ });
458
+ return {
459
+ paginationConfig,
460
+ displayColumns,
461
+ fixedColumnsInfo,
462
+ columnByKey,
463
+ processedData,
464
+ paginatedData,
465
+ paginatedRowKeys,
466
+ selectedRowKeySet,
467
+ expandedRowKeySet,
468
+ totalColumnCount,
469
+ paginationInfo,
470
+ allSelected,
471
+ someSelected,
472
+ groupedData,
473
+ sortState,
474
+ filterState,
475
+ currentPage,
476
+ currentPageSize,
477
+ selectedRowKeys,
478
+ expandedRowKeys,
479
+ editingCell,
480
+ editingValue,
481
+ virtualScrollTop,
482
+ toggleColumnLock,
483
+ handleSort,
484
+ handleFilter,
485
+ handlePageChange,
486
+ handlePageSizeChange,
487
+ handleRowClick,
488
+ handleToggleExpand,
489
+ handleSelectRow,
490
+ handleSelectAll,
491
+ isCellEditable,
492
+ startEditing,
493
+ commitEdit,
494
+ cancelEdit,
495
+ handleExport,
496
+ handleDragStart,
497
+ handleDrop
498
+ };
499
+ }
500
+ var spinnerSvg = getSpinnerSVG("spinner");
501
+ var SortIcon = (direction) => {
502
+ const active = direction !== null;
503
+ const pathD = direction === "asc" ? sortAscIcon16PathD : direction === "desc" ? sortDescIcon16PathD : sortBothIcon16PathD;
504
+ return h(
505
+ "svg",
506
+ {
507
+ class: getSortIconClasses(active),
508
+ width: "16",
509
+ height: "16",
510
+ viewBox: icon16ViewBox,
511
+ fill: "currentColor"
512
+ },
513
+ [h("path", { d: pathD })]
514
+ );
515
+ };
516
+ var LockIcon = (locked) => {
517
+ return h(
518
+ "svg",
519
+ {
520
+ width: "14",
521
+ height: "14",
522
+ viewBox: icon24ViewBox,
523
+ fill: "currentColor",
524
+ "aria-hidden": "true"
525
+ },
526
+ [h("path", { d: locked ? lockClosedIcon24PathD : lockOpenIcon24PathD })]
527
+ );
528
+ };
529
+ var ExpandIcon = (expanded) => {
530
+ return h(
531
+ "svg",
532
+ {
533
+ class: getExpandIconClasses(expanded),
534
+ width: "16",
535
+ height: "16",
536
+ viewBox: icon16ViewBox,
537
+ fill: "currentColor",
538
+ "aria-hidden": "true"
539
+ },
540
+ [h("path", { d: expandChevronIcon16PathD })]
541
+ );
542
+ };
543
+ var LoadingSpinner = () => {
544
+ return h(
545
+ "svg",
546
+ {
547
+ class: getLoadingOverlaySpinnerClasses(),
548
+ xmlns: "http://www.w3.org/2000/svg",
549
+ fill: "none",
550
+ viewBox: spinnerSvg.viewBox
551
+ },
552
+ spinnerSvg.elements.map((el) => h(el.type, normalizeSvgAttrs(el.attrs)))
553
+ );
554
+ };
555
+ function renderTableHeader(ctx, props, slots) {
556
+ const headerCells = [];
557
+ const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
558
+ const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
559
+ const expandHeaderTh = props.expandable ? h("th", {
560
+ class: getExpandIconCellClasses(props.size),
561
+ "aria-label": "Expand"
562
+ }) : null;
563
+ if (expandAtStart && expandHeaderTh) {
564
+ headerCells.push(expandHeaderTh);
565
+ }
566
+ if (props.rowSelection && props.rowSelection.showCheckbox !== false && props.rowSelection.type !== "radio") {
567
+ headerCells.push(
568
+ h(
569
+ "th",
570
+ {
571
+ class: getCheckboxCellClasses(props.size)
572
+ },
573
+ [
574
+ h("input", {
575
+ type: "checkbox",
576
+ class: "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
577
+ checked: ctx.allSelected.value,
578
+ indeterminate: ctx.someSelected.value,
579
+ onChange: (e) => ctx.handleSelectAll(e.target.checked)
580
+ })
581
+ ]
582
+ )
583
+ );
584
+ }
585
+ ctx.displayColumns.value.forEach((column) => {
586
+ const isSorted = ctx.sortState.value.key === column.key;
587
+ const sortDirection = isSorted ? ctx.sortState.value.direction : null;
588
+ const ariaSort = column.sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0;
589
+ const isFixedLeft = column.fixed === "left";
590
+ const isFixedRight = column.fixed === "right";
591
+ const fixedStyle = isFixedLeft ? {
592
+ position: "sticky",
593
+ left: `${ctx.fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
594
+ zIndex: 15
595
+ } : isFixedRight ? {
596
+ position: "sticky",
597
+ right: `${ctx.fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
598
+ zIndex: 15
599
+ } : void 0;
600
+ const widthStyle = column.width ? {
601
+ width: typeof column.width === "number" ? `${column.width}px` : column.width
602
+ } : void 0;
603
+ const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
604
+ const headerContent = [];
605
+ const slotContent = slots[`header-${column.key}`]?.();
606
+ if (slotContent && slotContent.length > 0) {
607
+ headerContent.push(...slotContent);
608
+ } else if (column.renderHeader) {
609
+ headerContent.push(column.renderHeader());
610
+ } else {
611
+ headerContent.push(column.title);
612
+ }
613
+ if (props.columnLockable) {
614
+ headerContent.push(
615
+ h(
616
+ "button",
617
+ {
618
+ type: "button",
619
+ class: classNames(
620
+ "inline-flex items-center",
621
+ column.fixed === "left" || column.fixed === "right" ? "text-[var(--tiger-primary,#2563eb)]" : "text-gray-400 hover:text-gray-700"
622
+ ),
623
+ "aria-label": column.fixed === "left" || column.fixed === "right" ? `Unlock column ${column.title}` : `Lock column ${column.title}`,
624
+ onClick: (e) => {
625
+ e.stopPropagation();
626
+ ctx.toggleColumnLock(column.key);
627
+ }
628
+ },
629
+ [LockIcon(column.fixed === "left" || column.fixed === "right")]
630
+ )
631
+ );
632
+ }
633
+ if (column.sortable) {
634
+ headerContent.push(SortIcon(sortDirection));
635
+ }
636
+ headerCells.push(
637
+ h(
638
+ "th",
639
+ {
640
+ key: column.key,
641
+ "data-tiger-table-column-key": column.key,
642
+ "aria-sort": ariaSort,
643
+ class: classNames(
644
+ getTableHeaderCellClasses(
645
+ props.size,
646
+ column.align || "left",
647
+ !!column.sortable,
648
+ column.headerClassName
649
+ ),
650
+ (isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
651
+ ),
652
+ style,
653
+ draggable: props.columnDraggable ? "true" : void 0,
654
+ onDragstart: props.columnDraggable ? () => ctx.handleDragStart(column.key) : void 0,
655
+ onDragover: props.columnDraggable ? (e) => e.preventDefault() : void 0,
656
+ onDrop: props.columnDraggable ? () => ctx.handleDrop(column.key) : void 0,
657
+ onClick: column.sortable ? () => ctx.handleSort(column.key) : void 0
658
+ },
659
+ [
660
+ h("div", { class: "flex items-center gap-2" }, headerContent),
661
+ ...column.filter ? [
662
+ h("div", { class: "mt-2" }, [
663
+ column.filter.type === "select" && column.filter.options ? h(
664
+ "select",
665
+ {
666
+ class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
667
+ onChange: (e) => ctx.handleFilter(column.key, e.target.value),
668
+ onClick: (e) => e.stopPropagation()
669
+ },
670
+ [
671
+ h("option", { value: "" }, "All"),
672
+ ...column.filter.options.map(
673
+ (opt) => h("option", { value: opt.value }, opt.label)
674
+ )
675
+ ]
676
+ ) : h("input", {
677
+ type: "text",
678
+ class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
679
+ placeholder: column.filter.placeholder || "Filter...",
680
+ onInput: (e) => ctx.handleFilter(column.key, e.target.value),
681
+ onClick: (e) => e.stopPropagation()
682
+ })
683
+ ])
684
+ ] : []
685
+ ]
686
+ )
687
+ );
688
+ });
689
+ if (expandAtEnd && expandHeaderTh) {
690
+ headerCells.push(expandHeaderTh);
691
+ }
692
+ return h("thead", { class: getTableHeaderClasses(props.stickyHeader) }, [h("tr", headerCells)]);
693
+ }
694
+ function renderTableBody(ctx, props, slots) {
695
+ if (props.loading) {
696
+ return null;
697
+ }
698
+ if (ctx.paginatedData.value.length === 0) {
699
+ return h("tbody", [
700
+ h("tr", [
701
+ h(
702
+ "td",
703
+ {
704
+ colspan: ctx.totalColumnCount.value,
705
+ class: tableEmptyStateClasses
706
+ },
707
+ [
708
+ h(
709
+ "div",
710
+ {
711
+ role: "status",
712
+ "aria-live": "polite"
713
+ },
714
+ props.emptyText
715
+ )
716
+ ]
717
+ )
718
+ ])
719
+ ]);
720
+ }
721
+ function renderDataRow(record, index) {
722
+ const key = ctx.paginatedRowKeys.value[index];
723
+ const isSelected = ctx.selectedRowKeySet.value.has(key);
724
+ const isExpanded = ctx.expandedRowKeySet.value.has(key);
725
+ const isRowExpandable = props.expandable ? props.expandable.rowExpandable ? props.expandable.rowExpandable(record) : true : false;
726
+ const rowClass = typeof props.rowClassName === "function" ? props.rowClassName(record, index) : props.rowClassName;
727
+ const cells = [];
728
+ const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
729
+ const expandToggleCell = props.expandable ? h(
730
+ "td",
731
+ {
732
+ class: getExpandIconCellClasses(props.size)
733
+ },
734
+ isRowExpandable ? [
735
+ h(
736
+ "button",
737
+ {
738
+ type: "button",
739
+ class: "inline-flex items-center justify-center",
740
+ "aria-label": isExpanded ? "Collapse row" : "Expand row",
741
+ "aria-expanded": isExpanded,
742
+ onClick: (e) => {
743
+ e.stopPropagation();
744
+ ctx.handleToggleExpand(key, record);
745
+ }
746
+ },
747
+ [ExpandIcon(isExpanded)]
748
+ )
749
+ ] : []
750
+ ) : null;
751
+ if (expandAtStart && expandToggleCell) {
752
+ cells.push(expandToggleCell);
753
+ }
754
+ if (props.rowSelection && props.rowSelection.showCheckbox !== false) {
755
+ const checkboxProps = props.rowSelection?.getCheckboxProps?.(record) || {};
756
+ cells.push(
757
+ h(
758
+ "td",
759
+ {
760
+ class: getCheckboxCellClasses(props.size)
761
+ },
762
+ [
763
+ h("input", {
764
+ type: props.rowSelection?.type === "radio" ? "radio" : "checkbox",
765
+ class: props.rowSelection?.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)]",
766
+ checked: isSelected,
767
+ disabled: checkboxProps.disabled,
768
+ onClick: (e) => e.stopPropagation(),
769
+ onChange: (e) => ctx.handleSelectRow(key, e.target.checked)
770
+ })
771
+ ]
772
+ )
773
+ );
774
+ }
775
+ ctx.displayColumns.value.forEach((column) => {
776
+ const dataKey = column.dataKey || column.key;
777
+ const cellValue = record[dataKey];
778
+ const isFixedLeft = column.fixed === "left";
779
+ const isFixedRight = column.fixed === "right";
780
+ const fixedStyle = isFixedLeft ? {
781
+ position: "sticky",
782
+ left: `${ctx.fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
783
+ zIndex: 10
784
+ } : isFixedRight ? {
785
+ position: "sticky",
786
+ right: `${ctx.fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
787
+ zIndex: 10
788
+ } : void 0;
789
+ const widthStyle = column.width ? {
790
+ width: typeof column.width === "number" ? `${column.width}px` : column.width
791
+ } : void 0;
792
+ const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
793
+ const stickyBgClass = props.striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
794
+ const stickyCellClass = isFixedLeft || isFixedRight ? classNames(
795
+ stickyBgClass,
796
+ props.hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
797
+ ) : void 0;
798
+ const isEditing = ctx.editingCell.value?.rowIndex === index && ctx.editingCell.value?.columnKey === column.key;
799
+ const isEditableCell = ctx.isCellEditable(column.key, index);
800
+ const cellContent = isEditing ? h("input", {
801
+ type: "text",
802
+ class: editableCellInputClasses,
803
+ value: ctx.editingValue.value,
804
+ autofocus: true,
805
+ onInput: (e) => {
806
+ ctx.editingValue.value = e.target.value;
807
+ },
808
+ onBlur: () => ctx.commitEdit(),
809
+ onKeydown: (e) => {
810
+ if (e.key === "Enter") ctx.commitEdit();
811
+ if (e.key === "Escape") ctx.cancelEdit();
812
+ }
813
+ }) : slots[`cell-${column.key}`]?.({ record, index }) ?? (column.render ? column.render(record, index) : cellValue);
814
+ cells.push(
815
+ h(
816
+ "td",
817
+ {
818
+ key: column.key,
819
+ class: classNames(
820
+ getTableCellClasses(props.size, column.align || "left", column.className),
821
+ stickyCellClass,
822
+ isEditableCell && !isEditing && getEditableCellClasses(false)
823
+ ),
824
+ style,
825
+ onDblclick: isEditableCell && !isEditing ? () => ctx.startEditing(index, column.key, cellValue) : void 0
826
+ },
827
+ [cellContent]
828
+ )
829
+ );
830
+ });
831
+ if (!expandAtStart && expandToggleCell) {
832
+ cells.push(expandToggleCell);
833
+ }
834
+ const rowNode = h(
835
+ "tr",
836
+ {
837
+ key,
838
+ "data-tiger-table-row-index": index,
839
+ class: classNames(
840
+ getTableRowClasses(props.hoverable, props.striped, index % 2 === 0, rowClass),
841
+ ctx.fixedColumnsInfo.value.hasFixedColumns && "group"
842
+ ),
843
+ onClick: () => ctx.handleRowClick(record, index, key)
844
+ },
845
+ cells
846
+ );
847
+ if (props.expandable && isExpanded && isRowExpandable) {
848
+ const expandedContent = slots["expanded-row"]?.({ record, index }) || (props.expandable.expandedRowRender ? props.expandable.expandedRowRender(record, index) : null);
849
+ const expandedRow = h(
850
+ "tr",
851
+ {
852
+ key: `${key}-expanded`,
853
+ class: getExpandedRowClasses()
854
+ },
855
+ [
856
+ h(
857
+ "td",
858
+ {
859
+ colspan: ctx.totalColumnCount.value,
860
+ class: getExpandedRowContentClasses(props.size)
861
+ },
862
+ [expandedContent]
863
+ )
864
+ ]
865
+ );
866
+ return [rowNode, expandedRow];
867
+ }
868
+ return rowNode;
869
+ }
870
+ if (ctx.groupedData.value) {
871
+ const groupRows = [];
872
+ for (const [groupKey, groupItems] of ctx.groupedData.value) {
873
+ groupRows.push(
874
+ h("tr", { key: `group-${groupKey}`, class: tableGroupHeaderClasses }, [
875
+ h(
876
+ "td",
877
+ {
878
+ colspan: ctx.totalColumnCount.value,
879
+ class: getGroupHeaderCellClasses(props.size)
880
+ },
881
+ `${props.groupBy}: ${groupKey} (${groupItems.length})`
882
+ )
883
+ ])
884
+ );
885
+ groupItems.forEach((record, i) => {
886
+ const globalIndex = ctx.paginatedData.value.indexOf(record);
887
+ const result = renderDataRow(record, globalIndex >= 0 ? globalIndex : i);
888
+ if (Array.isArray(result)) {
889
+ groupRows.push(...result);
890
+ } else {
891
+ groupRows.push(result);
892
+ }
893
+ });
894
+ }
895
+ return h("tbody", groupRows);
896
+ }
897
+ const rows = ctx.paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
898
+ return h("tbody", rows);
899
+ }
900
+ function renderSummaryRow(ctx, props) {
901
+ if (!props.summaryRow?.show) return null;
902
+ const emptyCells = [];
903
+ if (props.rowSelection) {
904
+ emptyCells.push(h("td", { class: getTableCellClasses(props.size, "left") }));
905
+ }
906
+ if (props.expandable) {
907
+ emptyCells.push(h("td", { class: getTableCellClasses(props.size, "left") }));
908
+ }
909
+ const dataCells = ctx.displayColumns.value.map((col) => {
910
+ const dataKey = col.dataKey || col.key;
911
+ const val = props.summaryRow.data[dataKey];
912
+ return h(
913
+ "td",
914
+ {
915
+ key: col.key,
916
+ class: getTableCellClasses(props.size, col.align || "left", col.className)
917
+ },
918
+ val != null ? String(val) : ""
919
+ );
920
+ });
921
+ return h("tfoot", [h("tr", { class: tableSummaryRowClasses }, [...emptyCells, ...dataCells])]);
922
+ }
923
+ function renderPagination(ctx, props) {
924
+ if (props.pagination === false || !ctx.paginationInfo.value) {
925
+ return null;
926
+ }
927
+ const { totalPages, startIndex, endIndex, hasNext, hasPrev } = ctx.paginationInfo.value;
928
+ const paginationConfig = props.pagination;
929
+ const total = paginationConfig.total !== void 0 && paginationConfig.total > 0 ? paginationConfig.total : ctx.processedData.value.length;
930
+ return h("div", { class: getSimplePaginationContainerClasses() }, [
931
+ paginationConfig.showTotal !== false && h(
932
+ "div",
933
+ { class: getSimplePaginationTotalClasses() },
934
+ paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) : `Showing ${startIndex} to ${endIndex} of ${total} results`
935
+ ),
936
+ h("div", { class: getSimplePaginationControlsClasses() }, [
937
+ paginationConfig.showSizeChanger !== false && h(
938
+ "select",
939
+ {
940
+ class: getSimplePaginationSelectClasses(),
941
+ value: ctx.currentPageSize.value,
942
+ onChange: (e) => ctx.handlePageSizeChange(Number(e.target.value))
943
+ },
944
+ (paginationConfig.pageSizeOptions || [10, 20, 50, 100]).map(
945
+ (size) => h("option", { value: size }, `${size} / page`)
946
+ )
947
+ ),
948
+ h("div", { class: getSimplePaginationButtonsWrapperClasses() }, [
949
+ h(
950
+ "button",
951
+ {
952
+ class: getSimplePaginationButtonClasses(!hasPrev),
953
+ disabled: !hasPrev,
954
+ onClick: () => ctx.handlePageChange(ctx.currentPage.value - 1)
955
+ },
956
+ "Previous"
957
+ ),
958
+ h(
959
+ "span",
960
+ { class: getSimplePaginationPageIndicatorClasses() },
961
+ `Page ${ctx.currentPage.value} of ${totalPages}`
962
+ ),
963
+ h(
964
+ "button",
965
+ {
966
+ class: getSimplePaginationButtonClasses(!hasNext),
967
+ disabled: !hasNext,
968
+ onClick: () => ctx.handlePageChange(ctx.currentPage.value + 1)
969
+ },
970
+ "Next"
971
+ )
972
+ ])
973
+ ])
974
+ ]);
975
+ }
976
+
977
+ // src/components/Table.ts
978
+ var Table = defineComponent({
979
+ name: "TigerTable",
980
+ props: tableProps,
981
+ emits: tableEmits,
982
+ setup(props, { emit, slots }) {
983
+ const wrapperRef = ref(null);
984
+ const tableRef = ref(null);
985
+ const measuredColumnWidths = ref({});
986
+ const measuredRowHeights = ref([]);
987
+ const ctx = useTableState(props, emit, measuredColumnWidths);
988
+ const resizeController = createTableResizeObserverController({
989
+ onResize: (snapshot) => {
990
+ if (!areNumberRecordsEqual(measuredColumnWidths.value, snapshot.columnWidths)) {
991
+ measuredColumnWidths.value = snapshot.columnWidths;
992
+ }
993
+ if (!areNumberArraysEqual(measuredRowHeights.value, snapshot.rowHeights)) {
994
+ measuredRowHeights.value = snapshot.rowHeights;
995
+ }
996
+ }
997
+ });
998
+ onMounted(() => {
999
+ if (wrapperRef.value) {
1000
+ resizeController.observe(wrapperRef.value, tableRef.value);
1001
+ }
1002
+ });
1003
+ onBeforeUnmount(() => resizeController.disconnect());
1004
+ return () => {
1005
+ const resolvedProps = props;
1006
+ const virtualRecommendation = getTableVirtualRecommendation({
1007
+ virtual: resolvedProps.virtual,
1008
+ dataLength: resolvedProps.dataSource.length,
1009
+ threshold: resolvedProps.virtualThreshold
1010
+ });
1011
+ const wrapperStyle = resolvedProps.maxHeight ? {
1012
+ maxHeight: typeof resolvedProps.maxHeight === "number" ? `${resolvedProps.maxHeight}px` : resolvedProps.maxHeight
1013
+ } : void 0;
1014
+ const tableChildren = [
1015
+ renderTableHeader(ctx, resolvedProps, slots),
1016
+ renderTableBody(ctx, resolvedProps, slots),
1017
+ renderSummaryRow(ctx, resolvedProps)
1018
+ ];
1019
+ const tableInner = h(
1020
+ "table",
1021
+ {
1022
+ ref: tableRef,
1023
+ class: classNames(
1024
+ tableBaseClasses,
1025
+ resolvedProps.tableLayout === "fixed" ? "table-fixed" : "table-auto"
1026
+ ),
1027
+ style: ctx.fixedColumnsInfo.value.hasFixedColumns && ctx.fixedColumnsInfo.value.minTableWidth ? { minWidth: `${ctx.fixedColumnsInfo.value.minTableWidth}px` } : void 0
1028
+ },
1029
+ tableChildren
1030
+ );
1031
+ const tableContent = resolvedProps.virtual ? h(
1032
+ "div",
1033
+ {
1034
+ style: { height: `${resolvedProps.virtualHeight}px`, overflow: "auto" },
1035
+ onScroll: (e) => {
1036
+ ctx.virtualScrollTop.value = e.target.scrollTop;
1037
+ }
1038
+ },
1039
+ [tableInner]
1040
+ ) : tableInner;
1041
+ return h(
1042
+ "div",
1043
+ {
1044
+ ref: wrapperRef,
1045
+ class: getTableWrapperClasses(resolvedProps.bordered, resolvedProps.maxHeight),
1046
+ style: wrapperStyle,
1047
+ "data-tiger-virtual": virtualRecommendation.enabled ? "enabled" : void 0,
1048
+ "data-tiger-virtual-recommended": virtualRecommendation.recommended ? "true" : void 0,
1049
+ "data-tiger-virtual-threshold": virtualRecommendation.recommended ? virtualRecommendation.threshold : void 0,
1050
+ "data-tiger-measured-row-height": measuredRowHeights.value[0] || void 0,
1051
+ "aria-busy": resolvedProps.loading
1052
+ },
1053
+ [
1054
+ resolvedProps.exportable && h("div", { class: "flex justify-end p-2" }, [
1055
+ h(
1056
+ "button",
1057
+ {
1058
+ type: "button",
1059
+ class: tableExportButtonClasses,
1060
+ onClick: ctx.handleExport,
1061
+ "aria-label": "Export to CSV"
1062
+ },
1063
+ "Export CSV"
1064
+ )
1065
+ ]),
1066
+ tableContent,
1067
+ resolvedProps.loading && h(
1068
+ "div",
1069
+ {
1070
+ class: tableLoadingOverlayClasses,
1071
+ role: "status",
1072
+ "aria-live": "polite",
1073
+ "aria-label": "Loading"
1074
+ },
1075
+ [LoadingSpinner(), h("span", { class: "sr-only" }, "Loading")]
1076
+ ),
1077
+ renderPagination(ctx, resolvedProps)
1078
+ ]
1079
+ );
1080
+ };
1081
+ }
1082
+ });
1083
+ var Table_default = Table;
1084
+ function areNumberRecordsEqual(current, next) {
1085
+ const currentKeys = Object.keys(current);
1086
+ const nextKeys = Object.keys(next);
1087
+ return currentKeys.length === nextKeys.length && nextKeys.every((key) => current[key] === next[key]);
1088
+ }
1089
+ function areNumberArraysEqual(current, next) {
1090
+ return current.length === next.length && next.every((value, index) => current[index] === value);
1091
+ }
1092
+
1093
+ export { Table, Table_default };