@expcat/tigercat-react 0.4.2 → 1.0.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 (480) hide show
  1. package/dist/chunk-24RUEJWB.js +293 -0
  2. package/dist/{chunk-S4GNTA7V.mjs → chunk-2H43QM4B.mjs} +1 -1
  3. package/dist/{chunk-WGRYO5HX.mjs → chunk-2UQC3WOI.mjs} +63 -49
  4. package/dist/{chunk-V5NIFF2F.mjs → chunk-2WBPUW75.mjs} +7 -7
  5. package/dist/{chunk-QL6UEG3U.js → chunk-2XOFRGY6.js} +16 -3
  6. package/dist/chunk-333325LH.mjs +87 -0
  7. package/dist/{chunk-IGE44BIS.mjs → chunk-34DLDOGP.mjs} +105 -19
  8. package/dist/chunk-3EB42WFR.mjs +35 -0
  9. package/dist/{chunk-Z7SXK2KO.js → chunk-3JGOTJZM.js} +10 -7
  10. package/dist/{chunk-ENSLMM3L.mjs → chunk-3KMKMAE3.mjs} +15 -10
  11. package/dist/{chunk-SFALTVPS.js → chunk-3USEV7EV.js} +2 -2
  12. package/dist/chunk-45H3JEI3.js +155 -0
  13. package/dist/chunk-4APNERYR.js +212 -0
  14. package/dist/chunk-4GV7UQJJ.js +96 -0
  15. package/dist/chunk-4MKMM2OI.js +112 -0
  16. package/dist/{chunk-QM4GOQDT.js → chunk-4QJZT6QK.js} +44 -6
  17. package/dist/chunk-4QQZ5H4V.mjs +213 -0
  18. package/dist/{chunk-QFYS5QIZ.mjs → chunk-5BBZBI2V.mjs} +3 -3
  19. package/dist/chunk-5CGXFQND.mjs +100 -0
  20. package/dist/{chunk-Q7GUWWG5.js → chunk-5CQEXJF2.js} +9 -9
  21. package/dist/chunk-5EVHVZG5.js +119 -0
  22. package/dist/chunk-5ZYZQXEM.mjs +167 -0
  23. package/dist/{chunk-PEGJ2KHC.js → chunk-65VXCN5N.js} +50 -68
  24. package/dist/{chunk-6PXNWGR5.mjs → chunk-6744DTEB.mjs} +9 -4
  25. package/dist/chunk-6E7FPBRR.mjs +192 -0
  26. package/dist/{chunk-NQFHS4W2.mjs → chunk-6KKUJT6B.mjs} +1 -1
  27. package/dist/{chunk-OXT5RN55.mjs → chunk-6P3JIUSI.mjs} +3 -3
  28. package/dist/{chunk-FX2IBA4W.mjs → chunk-6SDLSIAO.mjs} +4 -4
  29. package/dist/chunk-73BP3WQN.mjs +210 -0
  30. package/dist/{chunk-77PE7OFK.mjs → chunk-7MASYF4S.mjs} +1 -1
  31. package/dist/{chunk-VCNZEQEB.mjs → chunk-7QZ4XT2P.mjs} +6 -5
  32. package/dist/chunk-7YLVAZJQ.mjs +47 -0
  33. package/dist/{chunk-NV3JUZ3N.js → chunk-AGR3FM3V.js} +4 -4
  34. package/dist/{chunk-MWH6FCSE.js → chunk-AJQPGAYL.js} +8 -8
  35. package/dist/{chunk-3PV2MDST.mjs → chunk-AMOH5AMN.mjs} +8 -8
  36. package/dist/chunk-AOZLBASY.mjs +38 -0
  37. package/dist/chunk-ASALMHFI.js +34 -0
  38. package/dist/chunk-AYDPWKSW.mjs +186 -0
  39. package/dist/chunk-B53R2U2R.mjs +86 -0
  40. package/dist/chunk-BALJCZ62.mjs +147 -0
  41. package/dist/{chunk-F24IF2QL.js → chunk-BCNKTT5C.js} +14 -9
  42. package/dist/{chunk-JNLX47UL.mjs → chunk-BJ2GUKPU.mjs} +74 -36
  43. package/dist/chunk-BKYE77F2.js +171 -0
  44. package/dist/chunk-BR5OSUZT.mjs +55 -0
  45. package/dist/chunk-BZ3AXFLG.js +149 -0
  46. package/dist/{chunk-SOC74QA2.js → chunk-C6WJ4GQW.js} +8 -8
  47. package/dist/{chunk-LXQOQJMU.js → chunk-CDT3P2ZN.js} +5 -12
  48. package/dist/chunk-CHH7DWIO.js +121 -0
  49. package/dist/{chunk-3T7L3MHX.js → chunk-CKFE2B36.js} +76 -38
  50. package/dist/{chunk-QNRAM3CM.js → chunk-CMGI5WHZ.js} +3 -2
  51. package/dist/chunk-CQGAZ5JQ.js +61 -0
  52. package/dist/chunk-CRSMECWE.mjs +33 -0
  53. package/dist/{chunk-KAWE5LQZ.js → chunk-D6BHFGTN.js} +29 -0
  54. package/dist/chunk-DAR2BMMV.js +150 -0
  55. package/dist/{chunk-OCVQ3LOT.mjs → chunk-DKT2EYVM.mjs} +3 -5
  56. package/dist/{chunk-EHYSER2Z.js → chunk-DR2DFFNQ.js} +6 -6
  57. package/dist/chunk-DZGDCRBH.mjs +30 -0
  58. package/dist/chunk-EEF26RBA.mjs +48 -0
  59. package/dist/{chunk-PJCY45UP.mjs → chunk-EHU3J4B2.mjs} +1 -1
  60. package/dist/{chunk-RKB2VUQO.js → chunk-EOYJLBFD.js} +24 -21
  61. package/dist/{chunk-DTQZPZSJ.mjs → chunk-EPN7QWP6.mjs} +16 -2
  62. package/dist/{chunk-M46L73HR.js → chunk-ET5YJELZ.js} +14 -14
  63. package/dist/{chunk-NTODO3Q3.mjs → chunk-EV6KRX6F.mjs} +38 -8
  64. package/dist/{chunk-GB5G2CJY.js → chunk-F2OF6XZ6.js} +36 -6
  65. package/dist/chunk-F6KHZNRS.js +32 -0
  66. package/dist/{chunk-URM7QDHH.js → chunk-F7H4ALKN.js} +2 -2
  67. package/dist/{chunk-RGFSY3S2.mjs → chunk-FPURO6QB.mjs} +16 -3
  68. package/dist/{chunk-FMF2G6BJ.js → chunk-FRHGRKKT.js} +2 -2
  69. package/dist/{chunk-LL6B4BHF.mjs → chunk-FT6TEMUF.mjs} +3 -3
  70. package/dist/chunk-GBTKAKUD.mjs +300 -0
  71. package/dist/chunk-GOUMB34F.mjs +168 -0
  72. package/dist/chunk-H5CAIMVL.js +45 -0
  73. package/dist/chunk-HADBETZG.js +94 -0
  74. package/dist/{chunk-6W6CRBBG.mjs → chunk-HCZA4LV6.mjs} +8 -5
  75. package/dist/{chunk-5CLXOFRZ.mjs → chunk-HLJQZUIY.mjs} +11 -10
  76. package/dist/chunk-HLS4CHWX.mjs +29 -0
  77. package/dist/{chunk-MTL2QUM3.mjs → chunk-HSHVLIEL.mjs} +2 -2
  78. package/dist/{chunk-SW4I4X6E.mjs → chunk-HUCBHFSL.mjs} +24 -21
  79. package/dist/{chunk-Q57BYUUW.js → chunk-HWWNBCFB.js} +39 -8
  80. package/dist/{chunk-MDZDPGRK.mjs → chunk-HZ5Z5Y2J.mjs} +29 -10
  81. package/dist/chunk-HZHFFVP7.mjs +63 -0
  82. package/dist/chunk-I4SKKEU3.js +151 -0
  83. package/dist/{chunk-RCNTRSUA.mjs → chunk-INBSKSZG.mjs} +51 -69
  84. package/dist/chunk-IOHPB4CF.js +148 -0
  85. package/dist/{chunk-QIJG42YQ.mjs → chunk-IPLK4AIE.mjs} +3 -3
  86. package/dist/{chunk-XWRJVNB6.js → chunk-IWP22YTF.js} +104 -18
  87. package/dist/{chunk-NJCKTIWB.mjs → chunk-IWTY32AW.mjs} +5 -5
  88. package/dist/{chunk-6OVVMHZJ.js → chunk-J23B66DJ.js} +327 -172
  89. package/dist/{chunk-DQNA57CA.js → chunk-JLM4LBUS.js} +5 -12
  90. package/dist/{chunk-TJFS44SH.js → chunk-JLRRXRZO.js} +2 -4
  91. package/dist/chunk-JR7L67Q3.mjs +186 -0
  92. package/dist/{chunk-GNMOOYHG.js → chunk-KNBNE74O.js} +11 -10
  93. package/dist/chunk-L6WOLPV7.mjs +123 -0
  94. package/dist/chunk-LODDAS62.js +173 -0
  95. package/dist/{chunk-IP3MAJSH.mjs → chunk-MQ5ZP5RW.mjs} +5 -12
  96. package/dist/{chunk-KMTERPME.mjs → chunk-MSHCPJIJ.mjs} +1 -1
  97. package/dist/chunk-N66WEQ6M.js +240 -0
  98. package/dist/{chunk-TDRINUMH.js → chunk-NZNSUKPT.js} +29 -10
  99. package/dist/{chunk-EFLIFXZH.js → chunk-P3XVLJYD.js} +15 -1
  100. package/dist/chunk-P6E3DILH.mjs +51 -0
  101. package/dist/{chunk-HPXLUJFJ.mjs → chunk-PN33UCWB.mjs} +3 -5
  102. package/dist/chunk-PNAWOJ32.js +54 -0
  103. package/dist/{chunk-72MWKUBC.js → chunk-PUYT62KC.js} +17 -4
  104. package/dist/chunk-Q4JMAQXJ.js +41 -0
  105. package/dist/chunk-QBZODEIG.js +49 -0
  106. package/dist/chunk-QHG7KJH6.js +302 -0
  107. package/dist/chunk-QIXQYLH5.js +44 -0
  108. package/dist/chunk-QNFSZYTZ.js +188 -0
  109. package/dist/chunk-QO3GGQAV.mjs +148 -0
  110. package/dist/{chunk-RGZYYVQF.mjs → chunk-QPGL4YEO.mjs} +39 -11
  111. package/dist/{chunk-6IH5QPTR.mjs → chunk-QPOH6SOO.mjs} +44 -6
  112. package/dist/chunk-QVZTZHCJ.mjs +148 -0
  113. package/dist/{chunk-C7UKFKVY.js → chunk-QYGBT4NL.js} +40 -12
  114. package/dist/chunk-R5P72RIT.js +180 -0
  115. package/dist/chunk-R5XY4EQL.js +56 -0
  116. package/dist/chunk-RRJTIKU6.mjs +238 -0
  117. package/dist/{chunk-PJ7NS7NX.mjs → chunk-RU6YS4LZ.mjs} +291 -140
  118. package/dist/{chunk-ZFHTSHXS.mjs → chunk-RUROWRB5.mjs} +30 -1
  119. package/dist/{chunk-SAZ6V6DX.js → chunk-RVCUNEBU.js} +2 -4
  120. package/dist/{chunk-HB2UYJBY.js → chunk-RYW4CV7U.js} +61 -47
  121. package/dist/chunk-S5Y6UHAK.mjs +116 -0
  122. package/dist/{chunk-YV6Y7C43.js → chunk-SDWJSALH.js} +8 -3
  123. package/dist/chunk-SJ5GT7Y4.mjs +58 -0
  124. package/dist/chunk-SKJXVYYF.js +188 -0
  125. package/dist/chunk-SQK2CPSV.mjs +59 -0
  126. package/dist/{chunk-XKDWDANG.js → chunk-SULHTYSV.js} +6 -6
  127. package/dist/chunk-SVASEF6K.js +125 -0
  128. package/dist/chunk-T5FAKJ6C.mjs +49 -0
  129. package/dist/chunk-T6KZ73VM.js +198 -0
  130. package/dist/chunk-TFPIRBHL.js +103 -0
  131. package/dist/chunk-TKZO5UBH.js +65 -0
  132. package/dist/chunk-TMQA74FM.js +215 -0
  133. package/dist/chunk-TQEIMVJD.mjs +94 -0
  134. package/dist/chunk-TYCRDHE6.mjs +143 -0
  135. package/dist/chunk-TZNTHABR.js +58 -0
  136. package/dist/chunk-UBKOITHT.mjs +142 -0
  137. package/dist/{chunk-RDIEZKV2.js → chunk-UEJHVPE2.js} +2 -2
  138. package/dist/chunk-UF3DXKCI.js +35 -0
  139. package/dist/chunk-UIO6O4MI.js +57 -0
  140. package/dist/chunk-UKGQ7256.js +13 -0
  141. package/dist/chunk-UPQGB5NQ.mjs +38 -0
  142. package/dist/chunk-UQMPEMY7.mjs +11 -0
  143. package/dist/chunk-V3P4ZAGL.mjs +110 -0
  144. package/dist/{chunk-TGPQ4KET.mjs → chunk-VAQDUVBP.mjs} +29 -2
  145. package/dist/chunk-VHHEP5G7.js +123 -0
  146. package/dist/{chunk-J3HKED4B.js → chunk-VHWTMNQN.js} +8 -8
  147. package/dist/{chunk-56KTCMRE.mjs → chunk-VONFSF4S.mjs} +5 -12
  148. package/dist/chunk-VUD4BU4K.mjs +192 -0
  149. package/dist/{chunk-XWNVBCJA.js → chunk-VWMVWZMD.js} +13 -13
  150. package/dist/{chunk-JWFEJ4XG.js → chunk-WGPUGPYE.js} +2 -2
  151. package/dist/chunk-WIWTY74F.mjs +44 -0
  152. package/dist/chunk-WNLUUD5N.mjs +179 -0
  153. package/dist/{chunk-VCOBBJLP.js → chunk-WVVXZKNI.js} +5 -4
  154. package/dist/chunk-XEYP62CR.js +194 -0
  155. package/dist/chunk-XFJ5Q5PF.mjs +30 -0
  156. package/dist/chunk-XODGTE2Y.js +61 -0
  157. package/dist/chunk-Y3NDP56G.mjs +174 -0
  158. package/dist/chunk-YID7J6ZK.js +37 -0
  159. package/dist/chunk-YLZEOXFS.mjs +116 -0
  160. package/dist/chunk-YPHOVEVU.mjs +118 -0
  161. package/dist/chunk-YXWRSEP5.mjs +286 -0
  162. package/dist/chunk-Z6CRXABX.js +88 -0
  163. package/dist/chunk-ZCBKAOAX.mjs +40 -0
  164. package/dist/{chunk-24U2DQRP.mjs → chunk-ZD4BVRYG.mjs} +2 -1
  165. package/dist/chunk-ZRHDNGWO.js +46 -0
  166. package/dist/chunk-ZYJTHGQW.js +181 -0
  167. package/dist/components/ActivityFeed.js +5 -5
  168. package/dist/components/ActivityFeed.mjs +3 -3
  169. package/dist/components/Affix.d.mts +11 -0
  170. package/dist/components/Affix.d.ts +11 -0
  171. package/dist/components/Affix.js +10 -0
  172. package/dist/components/Affix.mjs +1 -0
  173. package/dist/components/Alert.js +2 -2
  174. package/dist/components/Alert.mjs +1 -1
  175. package/dist/components/AreaChart.js +5 -5
  176. package/dist/components/AreaChart.mjs +3 -3
  177. package/dist/components/AutoComplete.d.mts +16 -0
  178. package/dist/components/AutoComplete.d.ts +16 -0
  179. package/dist/components/AutoComplete.js +10 -0
  180. package/dist/components/AutoComplete.mjs +1 -0
  181. package/dist/components/AvatarGroup.d.mts +14 -0
  182. package/dist/components/AvatarGroup.d.ts +14 -0
  183. package/dist/components/AvatarGroup.js +14 -0
  184. package/dist/components/AvatarGroup.mjs +1 -0
  185. package/dist/components/Badge.js +2 -2
  186. package/dist/components/Badge.mjs +1 -1
  187. package/dist/components/BarChart.js +5 -5
  188. package/dist/components/BarChart.mjs +3 -3
  189. package/dist/components/Button.d.mts +2 -1
  190. package/dist/components/Button.d.ts +2 -1
  191. package/dist/components/Button.js +2 -2
  192. package/dist/components/Button.mjs +1 -1
  193. package/dist/components/ButtonGroup.d.mts +15 -0
  194. package/dist/components/ButtonGroup.d.ts +15 -0
  195. package/dist/components/ButtonGroup.js +18 -0
  196. package/dist/components/ButtonGroup.mjs +1 -0
  197. package/dist/components/Calendar.d.mts +15 -0
  198. package/dist/components/Calendar.d.ts +15 -0
  199. package/dist/components/Calendar.js +16 -0
  200. package/dist/components/Calendar.mjs +1 -0
  201. package/dist/components/Card.js +2 -2
  202. package/dist/components/Card.mjs +1 -1
  203. package/dist/components/Cascader.d.mts +15 -0
  204. package/dist/components/Cascader.d.ts +15 -0
  205. package/dist/components/Cascader.js +10 -0
  206. package/dist/components/Cascader.mjs +1 -0
  207. package/dist/components/ChatWindow.js +7 -6
  208. package/dist/components/ChatWindow.mjs +5 -4
  209. package/dist/components/Checkbox.js +4 -3
  210. package/dist/components/Checkbox.mjs +3 -2
  211. package/dist/components/CheckboxGroup.js +4 -3
  212. package/dist/components/CheckboxGroup.mjs +2 -1
  213. package/dist/components/CodeEditor.d.mts +11 -0
  214. package/dist/components/CodeEditor.d.ts +11 -0
  215. package/dist/components/CodeEditor.js +16 -0
  216. package/dist/components/CodeEditor.mjs +1 -0
  217. package/dist/components/ColorPicker.d.mts +12 -0
  218. package/dist/components/ColorPicker.d.ts +12 -0
  219. package/dist/components/ColorPicker.js +10 -0
  220. package/dist/components/ColorPicker.mjs +1 -0
  221. package/dist/components/CommentThread.js +7 -6
  222. package/dist/components/CommentThread.mjs +5 -4
  223. package/dist/components/ConfigProvider.d.mts +5 -1
  224. package/dist/components/ConfigProvider.d.ts +5 -1
  225. package/dist/components/ConfigProvider.js +3 -3
  226. package/dist/components/ConfigProvider.mjs +1 -1
  227. package/dist/components/CropUpload.js +4 -4
  228. package/dist/components/CropUpload.mjs +3 -3
  229. package/dist/components/DataTableWithToolbar.js +7 -7
  230. package/dist/components/DataTableWithToolbar.mjs +5 -5
  231. package/dist/components/DatePicker.js +2 -2
  232. package/dist/components/DatePicker.mjs +1 -1
  233. package/dist/components/Descriptions.d.mts +3 -3
  234. package/dist/components/Descriptions.d.ts +3 -3
  235. package/dist/components/Descriptions.js +3 -3
  236. package/dist/components/Descriptions.mjs +1 -1
  237. package/dist/components/Divider.js +2 -2
  238. package/dist/components/Divider.mjs +1 -1
  239. package/dist/components/DonutChart.js +5 -5
  240. package/dist/components/DonutChart.mjs +3 -3
  241. package/dist/components/Drawer.js +2 -2
  242. package/dist/components/Drawer.mjs +1 -1
  243. package/dist/components/Dropdown.d.mts +1 -1
  244. package/dist/components/Dropdown.d.ts +1 -1
  245. package/dist/components/Dropdown.js +3 -3
  246. package/dist/components/Dropdown.mjs +1 -1
  247. package/dist/components/DropdownItem.js +3 -3
  248. package/dist/components/DropdownItem.mjs +2 -2
  249. package/dist/components/Empty.d.mts +14 -0
  250. package/dist/components/Empty.d.ts +14 -0
  251. package/dist/components/Empty.js +10 -0
  252. package/dist/components/Empty.mjs +1 -0
  253. package/dist/components/FileManager.d.mts +29 -0
  254. package/dist/components/FileManager.d.ts +29 -0
  255. package/dist/components/FileManager.js +16 -0
  256. package/dist/components/FileManager.mjs +1 -0
  257. package/dist/components/FloatButton.d.mts +21 -0
  258. package/dist/components/FloatButton.d.ts +21 -0
  259. package/dist/components/FloatButton.js +14 -0
  260. package/dist/components/FloatButton.mjs +1 -0
  261. package/dist/components/Form.d.mts +24 -0
  262. package/dist/components/Form.d.ts +24 -0
  263. package/dist/components/Form.js +3 -3
  264. package/dist/components/Form.mjs +1 -1
  265. package/dist/components/FormItem.js +3 -3
  266. package/dist/components/FormItem.mjs +2 -2
  267. package/dist/components/FormWizard.d.mts +1 -1
  268. package/dist/components/FormWizard.d.ts +1 -1
  269. package/dist/components/FormWizard.js +5 -5
  270. package/dist/components/FormWizard.mjs +3 -3
  271. package/dist/components/FunnelChart.d.mts +15 -0
  272. package/dist/components/FunnelChart.d.ts +15 -0
  273. package/dist/components/FunnelChart.js +14 -0
  274. package/dist/components/FunnelChart.mjs +5 -0
  275. package/dist/components/GaugeChart.d.mts +9 -0
  276. package/dist/components/GaugeChart.d.ts +9 -0
  277. package/dist/components/GaugeChart.js +11 -0
  278. package/dist/components/GaugeChart.mjs +2 -0
  279. package/dist/components/HeatmapChart.d.mts +13 -0
  280. package/dist/components/HeatmapChart.d.ts +13 -0
  281. package/dist/components/HeatmapChart.js +13 -0
  282. package/dist/components/HeatmapChart.mjs +4 -0
  283. package/dist/components/Image.d.mts +4 -0
  284. package/dist/components/Image.d.ts +4 -0
  285. package/dist/components/Image.js +4 -4
  286. package/dist/components/Image.mjs +3 -3
  287. package/dist/components/ImageGroup.js +4 -4
  288. package/dist/components/ImageGroup.mjs +2 -2
  289. package/dist/components/ImagePreview.d.mts +3 -2
  290. package/dist/components/ImagePreview.d.ts +3 -2
  291. package/dist/components/ImagePreview.js +2 -2
  292. package/dist/components/ImagePreview.mjs +1 -1
  293. package/dist/components/ImageViewer.d.mts +20 -0
  294. package/dist/components/ImageViewer.d.ts +20 -0
  295. package/dist/components/ImageViewer.js +10 -0
  296. package/dist/components/ImageViewer.mjs +1 -0
  297. package/dist/components/InfiniteScroll.d.mts +20 -0
  298. package/dist/components/InfiniteScroll.d.ts +20 -0
  299. package/dist/components/InfiniteScroll.js +16 -0
  300. package/dist/components/InfiniteScroll.mjs +1 -0
  301. package/dist/components/Input.d.mts +5 -0
  302. package/dist/components/Input.d.ts +5 -0
  303. package/dist/components/Input.js +2 -2
  304. package/dist/components/Input.mjs +1 -1
  305. package/dist/components/InputGroup.d.mts +20 -0
  306. package/dist/components/InputGroup.d.ts +20 -0
  307. package/dist/components/InputGroup.js +22 -0
  308. package/dist/components/InputGroup.mjs +1 -0
  309. package/dist/components/InputNumber.js +2 -2
  310. package/dist/components/InputNumber.mjs +1 -1
  311. package/dist/components/Kanban.d.mts +46 -0
  312. package/dist/components/Kanban.d.ts +46 -0
  313. package/dist/components/Kanban.js +17 -0
  314. package/dist/components/Kanban.mjs +2 -0
  315. package/dist/components/LineChart.js +5 -5
  316. package/dist/components/LineChart.mjs +3 -3
  317. package/dist/components/List.d.mts +9 -1
  318. package/dist/components/List.d.ts +9 -1
  319. package/dist/components/List.js +2 -2
  320. package/dist/components/List.mjs +1 -1
  321. package/dist/components/Mentions.d.mts +18 -0
  322. package/dist/components/Mentions.d.ts +18 -0
  323. package/dist/components/Mentions.js +16 -0
  324. package/dist/components/Mentions.mjs +1 -0
  325. package/dist/components/Modal.d.mts +2 -2
  326. package/dist/components/Modal.d.ts +2 -2
  327. package/dist/components/Modal.js +3 -3
  328. package/dist/components/Modal.mjs +2 -2
  329. package/dist/components/NotificationCenter.js +8 -8
  330. package/dist/components/NotificationCenter.mjs +6 -6
  331. package/dist/components/PieChart.js +4 -4
  332. package/dist/components/PieChart.mjs +2 -2
  333. package/dist/components/Popconfirm.d.mts +1 -1
  334. package/dist/components/Popconfirm.d.ts +1 -1
  335. package/dist/components/Popconfirm.js +3 -3
  336. package/dist/components/Popconfirm.mjs +2 -2
  337. package/dist/components/Popover.d.mts +1 -1
  338. package/dist/components/Popover.d.ts +1 -1
  339. package/dist/components/Popover.js +3 -3
  340. package/dist/components/Popover.mjs +2 -2
  341. package/dist/components/PrintLayout.d.mts +22 -0
  342. package/dist/components/PrintLayout.d.ts +22 -0
  343. package/dist/components/PrintLayout.js +14 -0
  344. package/dist/components/PrintLayout.mjs +1 -0
  345. package/dist/components/Progress.js +2 -2
  346. package/dist/components/Progress.mjs +1 -1
  347. package/dist/components/QRCode.d.mts +16 -0
  348. package/dist/components/QRCode.d.ts +16 -0
  349. package/dist/components/QRCode.js +16 -0
  350. package/dist/components/QRCode.mjs +1 -0
  351. package/dist/components/RadarChart.js +4 -4
  352. package/dist/components/RadarChart.mjs +2 -2
  353. package/dist/components/Radio.js +4 -3
  354. package/dist/components/Radio.mjs +3 -2
  355. package/dist/components/RadioGroup.js +4 -3
  356. package/dist/components/RadioGroup.mjs +2 -1
  357. package/dist/components/Rate.d.mts +14 -0
  358. package/dist/components/Rate.d.ts +14 -0
  359. package/dist/components/Rate.js +10 -0
  360. package/dist/components/Rate.mjs +1 -0
  361. package/dist/components/Resizable.d.mts +13 -0
  362. package/dist/components/Resizable.d.ts +13 -0
  363. package/dist/components/Resizable.js +16 -0
  364. package/dist/components/Resizable.mjs +1 -0
  365. package/dist/components/Result.d.mts +14 -0
  366. package/dist/components/Result.d.ts +14 -0
  367. package/dist/components/Result.js +11 -0
  368. package/dist/components/Result.mjs +2 -0
  369. package/dist/components/RichTextEditor.d.mts +26 -0
  370. package/dist/components/RichTextEditor.d.ts +26 -0
  371. package/dist/components/RichTextEditor.js +17 -0
  372. package/dist/components/RichTextEditor.mjs +2 -0
  373. package/dist/components/ScatterChart.js +5 -5
  374. package/dist/components/ScatterChart.mjs +3 -3
  375. package/dist/components/Segmented.d.mts +12 -0
  376. package/dist/components/Segmented.d.ts +12 -0
  377. package/dist/components/Segmented.js +10 -0
  378. package/dist/components/Segmented.mjs +1 -0
  379. package/dist/components/Select.js +2 -2
  380. package/dist/components/Select.mjs +1 -1
  381. package/dist/components/Splitter.d.mts +18 -0
  382. package/dist/components/Splitter.d.ts +18 -0
  383. package/dist/components/Splitter.js +16 -0
  384. package/dist/components/Splitter.mjs +1 -0
  385. package/dist/components/Statistic.d.mts +8 -0
  386. package/dist/components/Statistic.d.ts +8 -0
  387. package/dist/components/Statistic.js +10 -0
  388. package/dist/components/Statistic.mjs +1 -0
  389. package/dist/components/Stepper.d.mts +12 -0
  390. package/dist/components/Stepper.d.ts +12 -0
  391. package/dist/components/Stepper.js +10 -0
  392. package/dist/components/Stepper.mjs +1 -0
  393. package/dist/components/SunburstChart.d.mts +15 -0
  394. package/dist/components/SunburstChart.d.ts +15 -0
  395. package/dist/components/SunburstChart.js +14 -0
  396. package/dist/components/SunburstChart.mjs +5 -0
  397. package/dist/components/TabPane.js +2 -2
  398. package/dist/components/TabPane.mjs +1 -1
  399. package/dist/components/Table.d.mts +15 -3
  400. package/dist/components/Table.d.ts +15 -3
  401. package/dist/components/Table.js +2 -2
  402. package/dist/components/Table.mjs +1 -1
  403. package/dist/components/Tabs.d.mts +7 -0
  404. package/dist/components/Tabs.d.ts +7 -0
  405. package/dist/components/Tabs.js +3 -3
  406. package/dist/components/Tabs.mjs +1 -1
  407. package/dist/components/TaskBoard.js +4 -4
  408. package/dist/components/TaskBoard.mjs +2 -2
  409. package/dist/components/Text.js +2 -2
  410. package/dist/components/Text.mjs +1 -1
  411. package/dist/components/Textarea.js +3 -2
  412. package/dist/components/Textarea.mjs +2 -1
  413. package/dist/components/Tooltip.d.mts +1 -1
  414. package/dist/components/Tooltip.d.ts +1 -1
  415. package/dist/components/Tooltip.js +3 -3
  416. package/dist/components/Tooltip.mjs +2 -2
  417. package/dist/components/Tour.d.mts +14 -0
  418. package/dist/components/Tour.d.ts +14 -0
  419. package/dist/components/Tour.js +11 -0
  420. package/dist/components/Tour.mjs +2 -0
  421. package/dist/components/Transfer.d.mts +12 -0
  422. package/dist/components/Transfer.d.ts +12 -0
  423. package/dist/components/Transfer.js +10 -0
  424. package/dist/components/Transfer.mjs +1 -0
  425. package/dist/components/Tree.d.mts +18 -0
  426. package/dist/components/Tree.d.ts +18 -0
  427. package/dist/components/Tree.js +3 -3
  428. package/dist/components/Tree.mjs +1 -1
  429. package/dist/components/TreeMapChart.d.mts +15 -0
  430. package/dist/components/TreeMapChart.d.ts +15 -0
  431. package/dist/components/TreeMapChart.js +14 -0
  432. package/dist/components/TreeMapChart.mjs +5 -0
  433. package/dist/components/TreeSelect.d.mts +12 -0
  434. package/dist/components/TreeSelect.d.ts +12 -0
  435. package/dist/components/TreeSelect.js +10 -0
  436. package/dist/components/TreeSelect.mjs +1 -0
  437. package/dist/components/Upload.js +3 -3
  438. package/dist/components/Upload.mjs +2 -2
  439. package/dist/components/VirtualList.d.mts +14 -0
  440. package/dist/components/VirtualList.d.ts +14 -0
  441. package/dist/components/VirtualList.js +10 -0
  442. package/dist/components/VirtualList.mjs +1 -0
  443. package/dist/components/VirtualTable.d.mts +26 -0
  444. package/dist/components/VirtualTable.d.ts +26 -0
  445. package/dist/components/VirtualTable.js +16 -0
  446. package/dist/components/VirtualTable.mjs +1 -0
  447. package/dist/components/Watermark.d.mts +9 -0
  448. package/dist/components/Watermark.d.ts +9 -0
  449. package/dist/components/Watermark.js +10 -0
  450. package/dist/components/Watermark.mjs +1 -0
  451. package/dist/index.d.mts +85 -2
  452. package/dist/index.d.ts +85 -2
  453. package/dist/index.js +504 -181
  454. package/dist/index.mjs +223 -64
  455. package/package.json +2 -2
  456. package/dist/chunk-3M2IG6IN.mjs +0 -34
  457. package/dist/chunk-4Y7YH32A.mjs +0 -157
  458. package/dist/chunk-FPNT7FV5.mjs +0 -44
  459. package/dist/chunk-FSDZJD7M.js +0 -159
  460. package/dist/chunk-I5TCE5E7.js +0 -32
  461. package/dist/chunk-LIV33O73.mjs +0 -26
  462. package/dist/chunk-O3W3OZ6V.js +0 -37
  463. package/dist/chunk-OYCMGKQ7.js +0 -111
  464. package/dist/chunk-RPTLVIBF.mjs +0 -109
  465. package/dist/chunk-RYWGELJ7.js +0 -46
  466. package/dist/chunk-SSQOCZ6O.js +0 -36
  467. package/dist/chunk-UZ7SBFQV.mjs +0 -35
  468. package/dist/chunk-VEGBO77D.mjs +0 -20
  469. package/dist/{chunk-2DW3WFZI.mjs → chunk-2LUDQBVY.mjs} +2 -2
  470. package/dist/{chunk-JQNKI2ZZ.js → chunk-C443YA4U.js} +2 -2
  471. package/dist/{chunk-QGCQAJGL.mjs → chunk-DEQWHJLQ.mjs} +2 -2
  472. package/dist/{chunk-N4EMXCRQ.mjs → chunk-FXX3GD35.mjs} +1 -1
  473. package/dist/{chunk-GASFXURT.js → chunk-KQJYSG23.js} +2 -2
  474. package/dist/{chunk-NEP3CS6S.js → chunk-OE6WTZES.js} +2 -2
  475. package/dist/{chunk-SH6O6LDJ.mjs → chunk-QQDKQLHJ.mjs} +1 -1
  476. package/dist/{chunk-F4Q5QMX2.js → chunk-TVJZB7ZC.js} +1 -1
  477. package/dist/{chunk-SM7RDJFB.js → chunk-VILZFNR7.js} +2 -2
  478. package/dist/{chunk-W4TFISRK.js → chunk-WK5QJO57.js} +1 -1
  479. package/dist/{chunk-CYZLGYY4.mjs → chunk-XNMSECO4.mjs} +2 -2
  480. package/dist/{chunk-763M6U5U.mjs → chunk-ZDL3GE3Q.mjs} +2 -2
@@ -1,5 +1,5 @@
1
- import { useState, useEffect, useMemo, useCallback, Fragment } from 'react';
2
- import { getSpinnerSVG, getFixedColumnOffsets, filterData, sortData, paginateData, getRowKey, calculatePagination, getTableHeaderClasses, getExpandCellClasses, getCheckboxCellClasses, classNames, getTableHeaderCellClasses, tableEmptyStateClasses, getTableCellClasses, getTableRowClasses, expandedRowContentClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, getTableWrapperClasses, tableBaseClasses, tableLoadingOverlayClasses, icon16ViewBox, expandIconButtonClasses, getExpandIconRotationClasses, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, getLoadingOverlaySpinnerClasses } from '@expcat/tigercat-core';
1
+ import React, { useState, useEffect, useMemo, useCallback } from 'react';
2
+ import { getSpinnerSVG, getFixedColumnOffsets, filterDataAdvanced, filterData, sortData, paginateData, getRowKey, calculatePagination, exportTableToCsv, downloadCsv, groupDataByColumn, getExpandIconCellClasses, getTableHeaderClasses, getCheckboxCellClasses, classNames, getTableHeaderCellClasses, tableEmptyStateClasses, tableGroupHeaderClasses, getGroupHeaderCellClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, tableSummaryRowClasses, getTableCellClasses, getTableWrapperClasses, tableExportButtonClasses, tableBaseClasses, tableLoadingOverlayClasses, editableCellInputClasses, getEditableCellClasses, getTableRowClasses, getExpandedRowClasses, getExpandedRowContentClasses, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, icon16ViewBox, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, getLoadingOverlaySpinnerClasses, getExpandIconClasses, expandChevronIcon16PathD } from '@expcat/tigercat-core';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
 
5
5
  // src/components/Table.tsx
@@ -22,6 +22,20 @@ var SortIcon = ({ direction }) => {
22
22
  var LockIcon = ({ locked }) => {
23
23
  return /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: icon24ViewBox, fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: locked ? lockClosedIcon24PathD : lockOpenIcon24PathD }) });
24
24
  };
25
+ var ExpandIcon = ({ expanded }) => {
26
+ return /* @__PURE__ */ jsx(
27
+ "svg",
28
+ {
29
+ className: getExpandIconClasses(expanded),
30
+ width: "16",
31
+ height: "16",
32
+ viewBox: icon16ViewBox,
33
+ fill: "currentColor",
34
+ "aria-hidden": "true",
35
+ children: /* @__PURE__ */ jsx("path", { d: expandChevronIcon16PathD })
36
+ }
37
+ );
38
+ };
25
39
  var LoadingSpinner = () => /* @__PURE__ */ jsx(
26
40
  "svg",
27
41
  {
@@ -59,19 +73,35 @@ function Table({
59
73
  showTotal: true
60
74
  },
61
75
  rowSelection,
76
+ expandable,
62
77
  rowKey = "id",
63
78
  rowClassName,
64
79
  stickyHeader = false,
65
80
  maxHeight,
66
81
  tableLayout = "auto",
67
- expandable,
82
+ // v0.6.0 props
83
+ virtual = false,
84
+ virtualHeight = 400,
85
+ virtualItemHeight = 40,
86
+ editable = false,
87
+ editableCells,
88
+ filterMode = "basic",
89
+ advancedFilterRules = [],
90
+ columnDraggable = false,
91
+ summaryRow,
92
+ groupBy,
93
+ exportable = false,
94
+ exportFilename = "export",
68
95
  onChange,
69
96
  onRowClick,
70
97
  onSelectionChange,
71
98
  onSortChange,
72
99
  onFilterChange,
73
100
  onPageChange,
74
- onExpandedRowsChange,
101
+ onExpandChange,
102
+ onCellChange,
103
+ onColumnOrderChange,
104
+ onExport,
75
105
  className,
76
106
  ...props
77
107
  }) {
@@ -81,6 +111,7 @@ function Table({
81
111
  const isCurrentPageControlled = paginationConfig?.current !== void 0;
82
112
  const isPageSizeControlled = paginationConfig?.pageSize !== void 0;
83
113
  const isSelectionControlled = rowSelection?.selectedRowKeys !== void 0 && Array.isArray(rowSelection.selectedRowKeys);
114
+ const isExpandControlled = expandable?.expandedRowKeys !== void 0 && Array.isArray(expandable.expandedRowKeys);
84
115
  const [uncontrolledSortState, setUncontrolledSortState] = useState(
85
116
  defaultSort ?? { key: null, direction: null }
86
117
  );
@@ -94,11 +125,13 @@ function Table({
94
125
  () => paginationConfig?.defaultPageSize ?? paginationConfig?.pageSize ?? 10
95
126
  );
96
127
  const [uncontrolledSelectedRowKeys, setUncontrolledSelectedRowKeys] = useState(rowSelection?.defaultSelectedRowKeys ?? rowSelection?.selectedRowKeys ?? []);
128
+ const [uncontrolledExpandedRowKeys, setUncontrolledExpandedRowKeys] = useState(expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []);
97
129
  const sortState = isSortControlled ? sort : uncontrolledSortState;
98
130
  const filterState = isFiltersControlled ? filters : uncontrolledFilterState;
99
131
  const currentPage = isCurrentPageControlled ? paginationConfig.current : uncontrolledCurrentPage;
100
132
  const currentPageSize = isPageSizeControlled ? paginationConfig.pageSize : uncontrolledCurrentPageSize;
101
133
  const selectedRowKeys = isSelectionControlled ? rowSelection.selectedRowKeys : uncontrolledSelectedRowKeys;
134
+ const expandedRowKeys = isExpandControlled ? expandable.expandedRowKeys : uncontrolledExpandedRowKeys;
102
135
  useEffect(() => {
103
136
  if (isSortControlled && sort) {
104
137
  setUncontrolledSortState(sort);
@@ -124,24 +157,11 @@ function Table({
124
157
  setUncontrolledSelectedRowKeys(rowSelection?.selectedRowKeys ?? []);
125
158
  }
126
159
  }, [isSelectionControlled, rowSelection?.selectedRowKeys]);
127
- const isExpandControlled = expandable?.expandedRowKeys !== void 0;
128
- const [uncontrolledExpandedRowKeys, setUncontrolledExpandedRowKeys] = useState(expandable?.defaultExpandedRowKeys ?? expandable?.expandedRowKeys ?? []);
129
- const expandedRowKeys = isExpandControlled ? expandable.expandedRowKeys : uncontrolledExpandedRowKeys;
130
- const expandedRowKeySet = useMemo(
131
- () => new Set(expandedRowKeys),
132
- [expandedRowKeys]
133
- );
134
- const handleToggleExpand = useCallback(
135
- (key) => {
136
- const isExp = expandedRowKeySet.has(key);
137
- const next = isExp ? expandedRowKeys.filter((k) => k !== key) : [...expandedRowKeys, key];
138
- if (!isExpandControlled) {
139
- setUncontrolledExpandedRowKeys(next);
140
- }
141
- onExpandedRowsChange?.(next);
142
- },
143
- [expandedRowKeys, expandedRowKeySet, isExpandControlled, onExpandedRowsChange]
144
- );
160
+ useEffect(() => {
161
+ if (isExpandControlled) {
162
+ setUncontrolledExpandedRowKeys(expandable?.expandedRowKeys ?? []);
163
+ }
164
+ }, [isExpandControlled, expandable?.expandedRowKeys]);
145
165
  const [fixedOverrides, setFixedOverrides] = useState({});
146
166
  const displayColumns = useMemo(() => {
147
167
  return columns.map((column) => {
@@ -184,13 +204,17 @@ function Table({
184
204
  );
185
205
  const processedData = useMemo(() => {
186
206
  let data = dataSource;
187
- data = filterData(data, filterState);
207
+ if (filterMode === "advanced" && advancedFilterRules.length > 0) {
208
+ data = filterDataAdvanced(data, advancedFilterRules);
209
+ } else {
210
+ data = filterData(data, filterState);
211
+ }
188
212
  if (sortState.key && sortState.direction) {
189
213
  const column = columnByKey[sortState.key];
190
214
  data = sortData(data, sortState.key, sortState.direction, column?.sortFn);
191
215
  }
192
216
  return data;
193
- }, [dataSource, filterState, sortState, columnByKey]);
217
+ }, [dataSource, filterState, sortState, columnByKey, filterMode, advancedFilterRules]);
194
218
  const paginatedData = useMemo(() => {
195
219
  if (pagination === false) {
196
220
  return processedData;
@@ -205,6 +229,10 @@ function Table({
205
229
  () => new Set(selectedRowKeys),
206
230
  [selectedRowKeys]
207
231
  );
232
+ const expandedRowKeySet = useMemo(
233
+ () => new Set(expandedRowKeys),
234
+ [expandedRowKeys]
235
+ );
208
236
  const paginationInfo = useMemo(() => {
209
237
  if (pagination === false) {
210
238
  return null;
@@ -316,11 +344,29 @@ function Table({
316
344
  },
317
345
  [sortState, filterState, onPageChange, onChange]
318
346
  );
347
+ const handleToggleExpand = useCallback(
348
+ (key, record) => {
349
+ const isExpanded = expandedRowKeySet.has(key);
350
+ const newKeys = isExpanded ? expandedRowKeys.filter((k) => k !== key) : [...expandedRowKeys, key];
351
+ if (!isExpandControlled) {
352
+ setUncontrolledExpandedRowKeys(newKeys);
353
+ }
354
+ onExpandChange?.(newKeys, record, !isExpanded);
355
+ },
356
+ [expandedRowKeySet, expandedRowKeys, isExpandControlled, onExpandChange]
357
+ );
319
358
  const handleRowClick = useCallback(
320
359
  (record, index) => {
321
360
  onRowClick?.(record, index);
361
+ if (expandable?.expandRowByClick) {
362
+ const key = getRowKey(record, rowKey, index);
363
+ const isExpandableRow = expandable?.rowExpandable ? expandable.rowExpandable(record) : true;
364
+ if (isExpandableRow) {
365
+ handleToggleExpand(key, record);
366
+ }
367
+ }
322
368
  },
323
- [onRowClick]
369
+ [onRowClick, expandable, rowKey, handleToggleExpand]
324
370
  );
325
371
  const handleSelectRow = useCallback(
326
372
  (key, checked) => {
@@ -367,9 +413,64 @@ function Table({
367
413
  const someSelected = useMemo(() => {
368
414
  return selectedRowKeys.length > 0 && !allSelected;
369
415
  }, [selectedRowKeys.length, allSelected]);
416
+ const [editingCell, setEditingCell] = useState(
417
+ null
418
+ );
419
+ const [editingValue, setEditingValue] = useState("");
420
+ const isCellEditable = useCallback(
421
+ (columnKey, rowIndex) => {
422
+ if (!editable) return false;
423
+ if (!editableCells) return true;
424
+ return !!editableCells.get(columnKey)?.has(rowIndex);
425
+ },
426
+ [editable, editableCells]
427
+ );
428
+ const startEditing = useCallback((rowIndex, columnKey, currentValue) => {
429
+ setEditingCell({ rowIndex, columnKey });
430
+ setEditingValue(String(currentValue ?? ""));
431
+ }, []);
432
+ const commitEdit = useCallback(() => {
433
+ if (editingCell) {
434
+ onCellChange?.(editingCell.rowIndex, editingCell.columnKey, editingValue);
435
+ setEditingCell(null);
436
+ }
437
+ }, [editingCell, editingValue, onCellChange]);
438
+ const cancelEdit = useCallback(() => {
439
+ setEditingCell(null);
440
+ }, []);
441
+ const handleExport = useCallback(() => {
442
+ const csv = exportTableToCsv(displayColumns, processedData);
443
+ downloadCsv(csv, exportFilename);
444
+ onExport?.(csv);
445
+ }, [displayColumns, processedData, exportFilename, onExport]);
446
+ const [dragColumnKey, setDragColumnKey] = useState(null);
447
+ const handleDragStart = useCallback((columnKey) => {
448
+ setDragColumnKey(columnKey);
449
+ }, []);
450
+ const handleDrop = useCallback(
451
+ (targetKey) => {
452
+ if (!dragColumnKey || dragColumnKey === targetKey) return;
453
+ const cols = [...displayColumns];
454
+ const fromIdx = cols.findIndex((c) => c.key === dragColumnKey);
455
+ const toIdx = cols.findIndex((c) => c.key === targetKey);
456
+ if (fromIdx >= 0 && toIdx >= 0) {
457
+ const [moved] = cols.splice(fromIdx, 1);
458
+ cols.splice(toIdx, 0, moved);
459
+ onColumnOrderChange?.(cols);
460
+ }
461
+ setDragColumnKey(null);
462
+ },
463
+ [dragColumnKey, displayColumns, onColumnOrderChange]
464
+ );
465
+ const groupedData = useMemo(() => {
466
+ if (!groupBy) return null;
467
+ return groupDataByColumn(paginatedData, groupBy);
468
+ }, [groupBy, paginatedData]);
370
469
  const renderTableHeader = useCallback(() => {
470
+ const expandHeaderTh = expandable ? /* @__PURE__ */ jsx("th", { className: getExpandIconCellClasses(size), "aria-label": "Expand" }) : null;
471
+ const expandAtStart = expandable?.expandIconPosition !== "end";
371
472
  return /* @__PURE__ */ jsx("thead", { className: getTableHeaderClasses(stickyHeader), children: /* @__PURE__ */ jsxs("tr", { children: [
372
- expandable && expandable.expandIconPosition !== "end" && /* @__PURE__ */ jsx("th", { className: getExpandCellClasses(size) }),
473
+ expandAtStart && expandHeaderTh,
373
474
  rowSelection && rowSelection.showCheckbox !== false && rowSelection.type !== "radio" && /* @__PURE__ */ jsx("th", { className: getCheckboxCellClasses(size), children: /* @__PURE__ */ jsx(
374
475
  "input",
375
476
  {
@@ -415,6 +516,10 @@ function Table({
415
516
  (isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
416
517
  ),
417
518
  style,
519
+ draggable: columnDraggable ? true : void 0,
520
+ onDragStart: columnDraggable ? () => handleDragStart(column.key) : void 0,
521
+ onDragOver: columnDraggable ? (e) => e.preventDefault() : void 0,
522
+ onDrop: columnDraggable ? () => handleDrop(column.key) : void 0,
418
523
  onClick: column.sortable ? () => handleSort(column.key) : void 0,
419
524
  children: [
420
525
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
@@ -463,7 +568,7 @@ function Table({
463
568
  column.key
464
569
  );
465
570
  }),
466
- expandable && expandable.expandIconPosition === "end" && /* @__PURE__ */ jsx("th", { className: getExpandCellClasses(size) })
571
+ !expandAtStart && expandHeaderTh
467
572
  ] }) });
468
573
  }, [
469
574
  displayColumns,
@@ -471,6 +576,7 @@ function Table({
471
576
  stickyHeader,
472
577
  sortState,
473
578
  rowSelection,
579
+ expandable,
474
580
  allSelected,
475
581
  someSelected,
476
582
  handleSort,
@@ -479,7 +585,9 @@ function Table({
479
585
  columnLockable,
480
586
  toggleColumnLock,
481
587
  fixedColumnsInfo,
482
- expandable
588
+ columnDraggable,
589
+ handleDragStart,
590
+ handleDrop
483
591
  ]);
484
592
  const renderTableBody = useCallback(() => {
485
593
  if (loading) {
@@ -488,131 +596,156 @@ function Table({
488
596
  if (paginatedData.length === 0) {
489
597
  return /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: totalColumnCount, className: tableEmptyStateClasses, children: /* @__PURE__ */ jsx("div", { role: "status", "aria-live": "polite", children: emptyText }) }) }) });
490
598
  }
491
- const ExpandToggle = ({ rowKey: rk, expandableRow, expanded }) => expandableRow ? /* @__PURE__ */ jsx(
492
- "button",
493
- {
494
- className: classNames(expandIconButtonClasses, getExpandIconRotationClasses(expanded)),
495
- "aria-label": expanded ? "Collapse row" : "Expand row",
496
- onClick: (e) => {
497
- e.stopPropagation();
498
- handleToggleExpand(rk);
499
- },
500
- children: /* @__PURE__ */ jsx(
501
- "svg",
502
- {
503
- xmlns: "http://www.w3.org/2000/svg",
504
- viewBox: icon16ViewBox,
505
- fill: "currentColor",
506
- className: "w-4 h-4",
507
- children: /* @__PURE__ */ jsx("path", { d: "M6 3l6 5-6 5V3z" })
508
- }
509
- )
510
- }
511
- ) : null;
512
- return /* @__PURE__ */ jsx("tbody", { children: paginatedData.map((record, index) => {
599
+ const renderDataRow = (record, index) => {
513
600
  const key = pageRowKeys[index];
514
601
  const isSelected = selectedRowKeySet.has(key);
515
602
  const isExpanded = expandedRowKeySet.has(key);
516
- const isExpandableRow = expandable ? expandable.rowExpandable?.(record) ?? true : false;
603
+ const isRowExpandable = expandable ? expandable.rowExpandable ? expandable.rowExpandable(record) : true : false;
517
604
  const rowClass = typeof rowClassName === "function" ? rowClassName(record, index) : rowClassName;
518
- return /* @__PURE__ */ jsxs(Fragment, { children: [
519
- /* @__PURE__ */ jsxs(
520
- "tr",
521
- {
522
- className: classNames(
523
- getTableRowClasses(hoverable, striped, index % 2 === 0, rowClass),
524
- fixedColumnsInfo.hasFixedColumns && "group"
525
- ),
526
- onClick: () => handleRowClick(record, index),
527
- children: [
528
- expandable && expandable.expandIconPosition !== "end" && /* @__PURE__ */ jsx("td", { className: getExpandCellClasses(size), children: /* @__PURE__ */ jsx(
529
- ExpandToggle,
530
- {
531
- rowKey: key,
532
- expandableRow: isExpandableRow,
533
- expanded: isExpanded
534
- }
535
- ) }),
536
- rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsx("td", { className: getCheckboxCellClasses(size), children: /* @__PURE__ */ jsx(
537
- "input",
538
- {
539
- type: rowSelection?.type === "radio" ? "radio" : "checkbox",
540
- className: 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)]",
541
- checked: isSelected,
542
- disabled: rowSelection?.getCheckboxProps?.(record)?.disabled,
543
- onChange: (e) => handleSelectRow(key, e.target.checked),
544
- onClick: (e) => e.stopPropagation()
545
- }
546
- ) }),
547
- displayColumns.map((column) => {
548
- const dataKey = column.dataKey || column.key;
549
- const cellValue = record[dataKey];
550
- const isFixedLeft = column.fixed === "left";
551
- const isFixedRight = column.fixed === "right";
552
- const fixedStyle = isFixedLeft ? {
553
- position: "sticky",
554
- left: `${fixedColumnsInfo.leftOffsets[column.key] || 0}px`,
555
- zIndex: 10
556
- } : isFixedRight ? {
557
- position: "sticky",
558
- right: `${fixedColumnsInfo.rightOffsets[column.key] || 0}px`,
559
- zIndex: 10
560
- } : void 0;
561
- const widthStyle = column.width ? {
562
- width: typeof column.width === "number" ? `${column.width}px` : column.width
563
- } : void 0;
564
- const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
565
- const stickyBgClass = striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
566
- const stickyCellClass = isFixedLeft || isFixedRight ? classNames(
567
- stickyBgClass,
568
- hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
569
- ) : void 0;
570
- return /* @__PURE__ */ jsx(
571
- "td",
572
- {
573
- className: classNames(
574
- getTableCellClasses(size, column.align || "left", column.className),
575
- stickyCellClass
576
- ),
577
- style,
578
- children: column.render ? column.render(record, index) : cellValue
579
- },
580
- column.key
581
- );
582
- }),
583
- expandable && expandable.expandIconPosition === "end" && /* @__PURE__ */ jsx("td", { className: getExpandCellClasses(size), children: /* @__PURE__ */ jsx(
584
- ExpandToggle,
605
+ const expandToggleCell = expandable ? /* @__PURE__ */ jsx("td", { className: getExpandIconCellClasses(size), children: isRowExpandable && /* @__PURE__ */ jsx(
606
+ "button",
607
+ {
608
+ type: "button",
609
+ className: "inline-flex items-center justify-center",
610
+ "aria-label": isExpanded ? "Collapse row" : "Expand row",
611
+ "aria-expanded": isExpanded,
612
+ onClick: (e) => {
613
+ e.stopPropagation();
614
+ handleToggleExpand(key, record);
615
+ },
616
+ children: /* @__PURE__ */ jsx(ExpandIcon, { expanded: isExpanded })
617
+ }
618
+ ) }) : null;
619
+ const expandAtStart = expandable?.expandIconPosition !== "end";
620
+ const rowNode = /* @__PURE__ */ jsxs(
621
+ "tr",
622
+ {
623
+ className: classNames(
624
+ getTableRowClasses(hoverable, striped, index % 2 === 0, rowClass),
625
+ fixedColumnsInfo.hasFixedColumns && "group"
626
+ ),
627
+ onClick: () => handleRowClick(record, index),
628
+ children: [
629
+ expandAtStart && expandToggleCell,
630
+ rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsx("td", { className: getCheckboxCellClasses(size), children: /* @__PURE__ */ jsx(
631
+ "input",
632
+ {
633
+ type: rowSelection?.type === "radio" ? "radio" : "checkbox",
634
+ className: 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)]",
635
+ checked: isSelected,
636
+ disabled: rowSelection?.getCheckboxProps?.(record)?.disabled,
637
+ onChange: (e) => handleSelectRow(key, e.target.checked),
638
+ onClick: (e) => e.stopPropagation()
639
+ }
640
+ ) }),
641
+ displayColumns.map((column) => {
642
+ const dataKey = column.dataKey || column.key;
643
+ const cellValue = record[dataKey];
644
+ const isFixedLeft = column.fixed === "left";
645
+ const isFixedRight = column.fixed === "right";
646
+ const fixedStyle = isFixedLeft ? {
647
+ position: "sticky",
648
+ left: `${fixedColumnsInfo.leftOffsets[column.key] || 0}px`,
649
+ zIndex: 10
650
+ } : isFixedRight ? {
651
+ position: "sticky",
652
+ right: `${fixedColumnsInfo.rightOffsets[column.key] || 0}px`,
653
+ zIndex: 10
654
+ } : void 0;
655
+ const widthStyle = column.width ? {
656
+ width: typeof column.width === "number" ? `${column.width}px` : column.width
657
+ } : void 0;
658
+ const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
659
+ const stickyBgClass = striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
660
+ const stickyCellClass = isFixedLeft || isFixedRight ? classNames(
661
+ stickyBgClass,
662
+ hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
663
+ ) : void 0;
664
+ const isEditing = editingCell?.rowIndex === index && editingCell?.columnKey === column.key;
665
+ const cellEditable = isCellEditable(column.key, index);
666
+ return /* @__PURE__ */ jsx(
667
+ "td",
585
668
  {
586
- rowKey: key,
587
- expandableRow: isExpandableRow,
588
- expanded: isExpanded
589
- }
590
- ) })
591
- ]
592
- }
593
- ),
594
- expandable && isExpanded && isExpandableRow && /* @__PURE__ */ jsx("tr", { className: expandedRowContentClasses, children: /* @__PURE__ */ jsx("td", { colSpan: totalColumnCount, children: expandable.expandedRowRender(record, index) }) })
595
- ] }, key);
596
- }) });
669
+ className: classNames(
670
+ getTableCellClasses(size, column.align || "left", column.className),
671
+ stickyCellClass,
672
+ cellEditable && getEditableCellClasses(!!isEditing)
673
+ ),
674
+ style,
675
+ onDoubleClick: cellEditable ? () => startEditing(index, column.key, cellValue) : void 0,
676
+ children: isEditing ? /* @__PURE__ */ jsx(
677
+ "input",
678
+ {
679
+ className: editableCellInputClasses,
680
+ value: editingValue,
681
+ onChange: (e) => setEditingValue(e.target.value),
682
+ onBlur: commitEdit,
683
+ onKeyDown: (e) => {
684
+ if (e.key === "Enter") commitEdit();
685
+ if (e.key === "Escape") cancelEdit();
686
+ },
687
+ autoFocus: true
688
+ }
689
+ ) : column.render ? column.render(record, index) : cellValue
690
+ },
691
+ column.key
692
+ );
693
+ }),
694
+ !expandAtStart && expandToggleCell
695
+ ]
696
+ },
697
+ key
698
+ );
699
+ if (expandable && isExpanded && isRowExpandable) {
700
+ const expandedContent = expandable.expandedRowRender ? expandable.expandedRowRender(record, index) : null;
701
+ return /* @__PURE__ */ jsxs(React.Fragment, { children: [
702
+ rowNode,
703
+ /* @__PURE__ */ jsx("tr", { className: getExpandedRowClasses(), children: /* @__PURE__ */ jsx("td", { colSpan: totalColumnCount, className: getExpandedRowContentClasses(size), children: expandedContent }) }, `${key}-expanded`)
704
+ ] }, key);
705
+ }
706
+ return rowNode;
707
+ };
708
+ if (groupedData) {
709
+ return /* @__PURE__ */ jsx("tbody", { children: Array.from(groupedData.entries()).map(([groupKey, groupItems]) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
710
+ /* @__PURE__ */ jsx("tr", { className: tableGroupHeaderClasses, children: /* @__PURE__ */ jsxs("td", { colSpan: totalColumnCount, className: getGroupHeaderCellClasses(size), children: [
711
+ groupKey,
712
+ " (",
713
+ groupItems.length,
714
+ ")"
715
+ ] }) }),
716
+ groupItems.map((record, idx) => {
717
+ const globalIndex = paginatedData.indexOf(record);
718
+ return renderDataRow(record, globalIndex >= 0 ? globalIndex : idx);
719
+ })
720
+ ] }, `group-${groupKey}`)) });
721
+ }
722
+ return /* @__PURE__ */ jsx("tbody", { children: paginatedData.map((record, index) => renderDataRow(record, index)) });
597
723
  }, [
598
724
  loading,
599
725
  paginatedData,
600
726
  displayColumns,
601
727
  rowSelection,
728
+ expandable,
602
729
  emptyText,
603
730
  pageRowKeys,
604
731
  selectedRowKeySet,
732
+ expandedRowKeySet,
733
+ totalColumnCount,
605
734
  rowClassName,
606
735
  hoverable,
607
736
  striped,
608
737
  size,
609
738
  handleRowClick,
610
739
  handleSelectRow,
611
- fixedColumnsInfo,
612
- expandable,
613
- expandedRowKeySet,
614
740
  handleToggleExpand,
615
- totalColumnCount
741
+ fixedColumnsInfo,
742
+ groupedData,
743
+ editingCell,
744
+ editingValue,
745
+ isCellEditable,
746
+ startEditing,
747
+ commitEdit,
748
+ cancelEdit
616
749
  ]);
617
750
  const renderPagination = useCallback(() => {
618
751
  if (pagination === false || !paginationInfo) {
@@ -673,19 +806,36 @@ function Table({
673
806
  handlePageChange,
674
807
  handlePageSizeChange
675
808
  ]);
676
- const wrapperStyle = useMemo(
677
- () => maxHeight ? {
809
+ const renderSummaryRow = useCallback(() => {
810
+ if (!summaryRow?.show) return null;
811
+ return /* @__PURE__ */ jsx("tfoot", { children: /* @__PURE__ */ jsxs("tr", { className: tableSummaryRowClasses, children: [
812
+ rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, "left") }),
813
+ expandable && /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, "left") }),
814
+ displayColumns.map((column) => /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, column.align || "left"), children: summaryRow.data[column.dataKey || column.key] ?? "" }, column.key))
815
+ ] }) });
816
+ }, [summaryRow, displayColumns, size, rowSelection, expandable]);
817
+ const wrapperStyle = useMemo(() => {
818
+ if (virtual) {
819
+ return {
820
+ height: typeof virtualHeight === "number" ? `${virtualHeight}px` : virtualHeight,
821
+ overflow: "auto"
822
+ };
823
+ }
824
+ return maxHeight ? {
678
825
  maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
679
- } : void 0,
680
- [maxHeight]
681
- );
826
+ } : void 0;
827
+ }, [maxHeight, virtual, virtualHeight]);
682
828
  return /* @__PURE__ */ jsxs(
683
829
  "div",
684
830
  {
685
- className: getTableWrapperClasses(bordered, maxHeight),
831
+ className: getTableWrapperClasses(
832
+ bordered,
833
+ maxHeight || (virtual ? virtualHeight : void 0)
834
+ ),
686
835
  style: wrapperStyle,
687
836
  "aria-busy": loading,
688
837
  children: [
838
+ exportable && /* @__PURE__ */ jsx("div", { className: "mb-2 flex justify-end", children: /* @__PURE__ */ jsx("button", { type: "button", className: tableExportButtonClasses, onClick: handleExport, children: "Export CSV" }) }),
689
839
  /* @__PURE__ */ jsxs(
690
840
  "table",
691
841
  {
@@ -701,7 +851,8 @@ function Table({
701
851
  } : props.style,
702
852
  children: [
703
853
  renderTableHeader(),
704
- renderTableBody()
854
+ renderTableBody(),
855
+ renderSummaryRow()
705
856
  ]
706
857
  }
707
858
  ),
@@ -1,5 +1,5 @@
1
1
  import { useState, useRef, useMemo, useEffect } from 'react';
2
- import { parseDate, formatDate, getCalendarDays, getShortDayNames, getDatePickerLabels, getDatePickerInputClasses, getDatePickerIconButtonClasses, classNames, datePickerInputWrapperClasses, datePickerClearButtonClasses, CloseIconPath, CalendarIconPath, datePickerCalendarClasses, datePickerCalendarHeaderClasses, datePickerNavButtonClasses, ChevronLeftIconPath, formatMonthYear, datePickerMonthYearClasses, ChevronRightIconPath, datePickerCalendarGridClasses, datePickerDayNameClasses, normalizeDate, isSameDay, isToday, getDatePickerDayCellClasses, datePickerFooterClasses, datePickerFooterButtonClasses, datePickerBaseClasses, isDateInRange, icon20ViewBox } from '@expcat/tigercat-core';
2
+ import { parseDate, formatDate, getCalendarDays, getShortDayNames, getDatePickerLabels, getDatePickerInputClasses, getDatePickerIconButtonClasses, classNames, datePickerInputWrapperClasses, datePickerClearButtonClasses, CloseIconPath, CalendarIconPath, datePickerCalendarClasses, datePickerCalendarHeaderClasses, datePickerNavButtonClasses, ChevronLeftIconPath, formatMonthYear, datePickerMonthYearClasses, ChevronRightIconPath, datePickerCalendarGridClasses, datePickerDayNameClasses, normalizeDate, isSameDay, isToday, getDatePickerDayCellClasses, datePickerFooterButtonClasses, datePickerFooterClasses, datePickerBaseClasses, isDateInRange, icon20ViewBox } from '@expcat/tigercat-core';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
5
  // src/components/DatePicker.tsx
@@ -45,6 +45,7 @@ var DatePicker = (props) => {
45
45
  onChange: _onChange,
46
46
  onClear: _onClear,
47
47
  className: _className,
48
+ shortcuts: _shortcuts,
48
49
  ...rest
49
50
  }) => rest)(props);
50
51
  const [isOpen, setIsOpen] = useState(false);
@@ -267,6 +268,24 @@ var DatePicker = (props) => {
267
268
  const setToday = () => {
268
269
  selectDate(/* @__PURE__ */ new Date());
269
270
  };
271
+ const handleShortcut = (shortcut) => {
272
+ const val = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
273
+ if (!isRangeMode) {
274
+ const date = val instanceof Date ? normalizeDate(val) : val ? normalizeDate(parseDate(val)) : null;
275
+ if (!isControlled) setInternalValue(date);
276
+ props.onChange?.(date);
277
+ } else {
278
+ const range = val;
279
+ if (range && Array.isArray(range)) {
280
+ const parsed = [
281
+ range[0] ? normalizeDate(range[0] instanceof Date ? range[0] : parseDate(range[0])) : null,
282
+ range[1] ? normalizeDate(range[1] instanceof Date ? range[1] : parseDate(range[1])) : null
283
+ ];
284
+ setRangeValue(parsed);
285
+ }
286
+ }
287
+ closeCalendar();
288
+ };
270
289
  const clearDate = (event) => {
271
290
  event.stopPropagation();
272
291
  if (!isRangeMode) {
@@ -467,6 +486,16 @@ var DatePicker = (props) => {
467
486
  }
468
487
  );
469
488
  })(),
489
+ props.shortcuts && props.shortcuts.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 px-3 py-2 border-t border-[var(--tiger-border,#e5e7eb)]", children: props.shortcuts.map((sc, i) => /* @__PURE__ */ jsx(
490
+ "button",
491
+ {
492
+ type: "button",
493
+ className: datePickerFooterButtonClasses,
494
+ onClick: () => handleShortcut(sc),
495
+ children: sc.label
496
+ },
497
+ i
498
+ )) }),
470
499
  isRangeMode && /* @__PURE__ */ jsxs("div", { className: datePickerFooterClasses, children: [
471
500
  /* @__PURE__ */ jsx("button", { type: "button", className: datePickerFooterButtonClasses, onClick: setToday, children: labels.today }),
472
501
  /* @__PURE__ */ jsx(