@expcat/tigercat-vue 0.3.0 → 0.3.70

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 (469) hide show
  1. package/dist/{chunk-WO332QT2.js → chunk-27T3QDSF.js} +3 -3
  2. package/dist/{chunk-YLP24JN3.mjs → chunk-2BNQGU7E.mjs} +19 -22
  3. package/dist/{chunk-CCI3RIZU.js → chunk-2KDSHEZT.js} +9 -7
  4. package/dist/{chunk-NF7ADPEN.mjs → chunk-2R5HISQA.mjs} +19 -28
  5. package/dist/{chunk-74P7RUAY.mjs → chunk-2SCIJ2RW.mjs} +9 -11
  6. package/dist/{chunk-KQOJTNUP.js → chunk-2YFXJUBT.js} +19 -22
  7. package/dist/{chunk-ENBDEPNV.mjs → chunk-327O6FN7.mjs} +67 -74
  8. package/dist/{chunk-UAMYOMEU.mjs → chunk-37WD7WPC.mjs} +6 -8
  9. package/dist/{chunk-FKON56SN.mjs → chunk-3AM6WEUE.mjs} +14 -27
  10. package/dist/{chunk-LNQYYW3E.mjs → chunk-3G4VPV4D.mjs} +9 -7
  11. package/dist/{chunk-ZFDUZQML.js → chunk-3L36R3UN.js} +107 -45
  12. package/dist/{chunk-CGJTYURK.js → chunk-3PQIZBT5.js} +54 -91
  13. package/dist/{chunk-JHOTXOGL.js → chunk-3QV2D54H.js} +18 -19
  14. package/dist/chunk-3WM7WK7E.js +122 -0
  15. package/dist/chunk-3ZHQJ4W6.mjs +119 -0
  16. package/dist/{chunk-X5BEVY5O.mjs → chunk-46DEQQMB.mjs} +14 -15
  17. package/dist/{chunk-QVMU7OT7.mjs → chunk-4L5UYIV6.mjs} +1 -1
  18. package/dist/{chunk-CDZHYIXG.js → chunk-4NSRGKRB.js} +132 -66
  19. package/dist/chunk-4YHOD7LT.mjs +82 -0
  20. package/dist/chunk-53M2BTB5.mjs +22 -0
  21. package/dist/{chunk-CKC7W6BL.mjs → chunk-5BAN4GHQ.mjs} +1 -1
  22. package/dist/{chunk-TTZDVYGX.mjs → chunk-5XY7MXWC.mjs} +57 -39
  23. package/dist/{chunk-SF63KE5T.js → chunk-6FXYRDYH.js} +6 -13
  24. package/dist/{chunk-UBMNR3BJ.js → chunk-6MJBCXPO.js} +47 -48
  25. package/dist/{chunk-6SC33HJA.js → chunk-6PZZNM3S.js} +2 -9
  26. package/dist/{chunk-BWKN2DGI.mjs → chunk-6V7XCCXN.mjs} +3 -24
  27. package/dist/chunk-7AFJ7TKW.js +266 -0
  28. package/dist/{chunk-CJYWTPAS.mjs → chunk-7FCHU5KV.mjs} +28 -69
  29. package/dist/{chunk-2EMI5OHM.mjs → chunk-7J44XQKW.mjs} +2 -9
  30. package/dist/chunk-7LUATGJU.mjs +171 -0
  31. package/dist/chunk-7RRA3TIG.mjs +31 -0
  32. package/dist/{chunk-L44HKVK5.js → chunk-7TGLZQV5.js} +6 -8
  33. package/dist/{chunk-BCMEJAC7.mjs → chunk-7UU4PULK.mjs} +15 -35
  34. package/dist/{chunk-E3FDI3Y5.js → chunk-AGAJJYP2.js} +46 -120
  35. package/dist/{chunk-ROM2NNJX.mjs → chunk-AO4QQVBB.mjs} +7 -7
  36. package/dist/chunk-ATGOHL6L.mjs +251 -0
  37. package/dist/{chunk-QIS3MLLN.js → chunk-ATOLZW76.js} +56 -38
  38. package/dist/{chunk-DONDDWQU.js → chunk-B6ER2B2D.js} +7 -4
  39. package/dist/chunk-BFNHRBWN.js +113 -0
  40. package/dist/{chunk-Y4KDPUTV.mjs → chunk-BMW2Z3G3.mjs} +1 -1
  41. package/dist/{chunk-5CGS2CPE.mjs → chunk-BQEVLY2O.mjs} +9 -32
  42. package/dist/{chunk-DCW4EFNZ.mjs → chunk-BS45PHVI.mjs} +124 -46
  43. package/dist/{chunk-BR7FIC54.js → chunk-CEAMHLIL.js} +78 -109
  44. package/dist/{chunk-3JANYZE3.js → chunk-CKXZONMO.js} +14 -15
  45. package/dist/{chunk-U5ZMB6RE.mjs → chunk-COCECPMG.mjs} +1 -15
  46. package/dist/{chunk-NTXRWISS.js → chunk-CODQKVQV.js} +15 -21
  47. package/dist/{chunk-JUIOGBBB.mjs → chunk-D5CR2P7K.mjs} +49 -50
  48. package/dist/{chunk-YMIO4A2U.mjs → chunk-D6MR5YRE.mjs} +11 -17
  49. package/dist/{chunk-HRTL6ZTJ.mjs → chunk-D7VMY6WX.mjs} +7 -7
  50. package/dist/{chunk-DPWYCNNS.mjs → chunk-DATFV22V.mjs} +107 -45
  51. package/dist/{chunk-2ONL76L4.js → chunk-DELTFEEJ.js} +11 -17
  52. package/dist/{chunk-ZK26QLSW.js → chunk-DN5GU5PC.js} +1 -37
  53. package/dist/{chunk-264DR3I2.mjs → chunk-DU2NXX75.mjs} +12 -10
  54. package/dist/{chunk-I7GSAVM7.js → chunk-DUQ7Q2GO.js} +2 -23
  55. package/dist/{chunk-OVFGETP7.mjs → chunk-DVFDA2P2.mjs} +16 -22
  56. package/dist/{chunk-4DCSGWCJ.js → chunk-EAMHOEAJ.js} +16 -16
  57. package/dist/{chunk-SUZB7IAA.js → chunk-EBQ4WSQS.js} +2 -2
  58. package/dist/chunk-EJCHNSVG.mjs +41 -0
  59. package/dist/chunk-ENVHCXM5.js +287 -0
  60. package/dist/{chunk-V2F7IOSD.mjs → chunk-EVOLGCGW.mjs} +20 -36
  61. package/dist/chunk-EZZG57TK.js +44 -0
  62. package/dist/{chunk-FA2BQGLO.js → chunk-F5AI7CPC.js} +20 -36
  63. package/dist/{chunk-U5VOJ4G2.js → chunk-FC7RXQTM.js} +2 -15
  64. package/dist/{chunk-4QIOLPLB.mjs → chunk-FDYZ7NTQ.mjs} +33 -56
  65. package/dist/{chunk-JFZDIY7D.js → chunk-FLAJKB2O.js} +12 -10
  66. package/dist/{chunk-7WLOYIVN.mjs → chunk-GALASVSG.mjs} +31 -75
  67. package/dist/{chunk-LFJQD3ZJ.js → chunk-GCKACSWD.js} +124 -46
  68. package/dist/chunk-GNKXBRXH.js +189 -0
  69. package/dist/{chunk-SZD2UCM5.mjs → chunk-GQPSQJ5I.mjs} +7 -14
  70. package/dist/{chunk-3VTOJCER.js → chunk-GWJSBFLF.js} +7 -7
  71. package/dist/{chunk-Y4W6MMYO.js → chunk-HNQZ5JRB.js} +30 -74
  72. package/dist/chunk-HTMTOXUO.mjs +186 -0
  73. package/dist/{chunk-H4NZLUJ4.mjs → chunk-HVVPFQW2.mjs} +14 -64
  74. package/dist/{chunk-SUM4V2WN.mjs → chunk-I2B4CO22.mjs} +22 -26
  75. package/dist/{chunk-IQA52MC4.js → chunk-I2BZURVP.js} +9 -11
  76. package/dist/{chunk-QKKXUTDF.js → chunk-I4LQXUMW.js} +6 -13
  77. package/dist/{chunk-WSMKQUNB.mjs → chunk-IGSAOYXD.mjs} +14 -15
  78. package/dist/{chunk-Y4QBDL7S.mjs → chunk-IIU6FINW.mjs} +180 -87
  79. package/dist/{chunk-6NWG6SG3.mjs → chunk-J5J4UYGP.mjs} +4 -24
  80. package/dist/chunk-K2U3FEL7.js +373 -0
  81. package/dist/chunk-K6HDRMPN.js +197 -0
  82. package/dist/{chunk-JYGZCLJH.js → chunk-KCJPJQIS.js} +19 -19
  83. package/dist/{chunk-P2DJR6YG.js → chunk-KUJ75OHX.js} +28 -69
  84. package/dist/{chunk-HSXPJCRK.js → chunk-KVZLGW45.js} +15 -15
  85. package/dist/{chunk-YLILPFDU.js → chunk-LAAPLTP3.js} +2 -5
  86. package/dist/{chunk-ZCPYALXT.mjs → chunk-LBGTABIU.mjs} +3 -3
  87. package/dist/chunk-LDCTSE6Y.mjs +60 -0
  88. package/dist/{chunk-LQYBXAL4.mjs → chunk-LDN2MZEU.mjs} +132 -66
  89. package/dist/{chunk-OTTMBYP2.mjs → chunk-LLK2OK3K.mjs} +5 -5
  90. package/dist/chunk-LNWRZKX2.js +64 -0
  91. package/dist/{chunk-74PW5YAR.mjs → chunk-LRHJZP2C.mjs} +20 -19
  92. package/dist/chunk-M7EBWJZ5.mjs +41 -0
  93. package/dist/chunk-MB7W46IY.mjs +193 -0
  94. package/dist/{chunk-TT2SIKZ2.mjs → chunk-MJ7RGL34.mjs} +7 -6
  95. package/dist/{chunk-E6LSCXQM.mjs → chunk-MKBIVETW.mjs} +7 -14
  96. package/dist/chunk-MMQ34S5M.mjs +263 -0
  97. package/dist/chunk-MVIHUPCX.js +62 -0
  98. package/dist/{chunk-EK7Z226S.mjs → chunk-MYF3ZRV3.mjs} +7 -7
  99. package/dist/{chunk-36KWP3NX.js → chunk-N3T6BQGK.js} +2 -2
  100. package/dist/{chunk-AYNQTRO4.mjs → chunk-ND4XDRYR.mjs} +60 -84
  101. package/dist/{chunk-3G2QV4TL.js → chunk-NGW5UMAN.js} +19 -19
  102. package/dist/{chunk-XMBCYUDD.mjs → chunk-NHCCPMLC.mjs} +47 -121
  103. package/dist/{chunk-5XW532JA.js → chunk-NOTJRUAK.js} +14 -34
  104. package/dist/{chunk-UYWPZDRU.mjs → chunk-NTUGEHEI.mjs} +4 -4
  105. package/dist/{chunk-CQJQJERX.mjs → chunk-NV6GZPJP.mjs} +4 -11
  106. package/dist/{chunk-WEFTEDUS.js → chunk-O2SABM5H.js} +13 -26
  107. package/dist/{chunk-42ILM3BR.js → chunk-OO5UMN5M.js} +131 -155
  108. package/dist/chunk-OOKS4KMK.js +34 -0
  109. package/dist/{chunk-YZM7I5AM.mjs → chunk-P2ASDGNV.mjs} +120 -35
  110. package/dist/{chunk-25P4HFCO.mjs → chunk-P47EXOAW.mjs} +8 -17
  111. package/dist/{chunk-ZLMJ3SZQ.js → chunk-PCGHIFIJ.js} +3 -4
  112. package/dist/{chunk-HOJP5HTJ.js → chunk-PICYE2CM.js} +12 -45
  113. package/dist/chunk-PNKVD2UK.js +26 -0
  114. package/dist/{chunk-F6TZCXCL.js → chunk-PQMZ3YN3.js} +13 -63
  115. package/dist/{chunk-VWPHAKBA.mjs → chunk-PVPLDEC5.mjs} +7 -14
  116. package/dist/{chunk-6E73XACM.mjs → chunk-Q6OYCTQO.mjs} +1 -37
  117. package/dist/{chunk-L5QECL5P.mjs → chunk-QERCB3HM.mjs} +36 -55
  118. package/dist/{chunk-4FUWM7WP.js → chunk-QK3KKTYV.js} +21 -25
  119. package/dist/{chunk-4VHNAGSP.js → chunk-QLK4ZC2B.js} +8 -8
  120. package/dist/chunk-QY6PYAJA.js +174 -0
  121. package/dist/{chunk-I3Z247PO.js → chunk-R77ZKZ5F.js} +19 -18
  122. package/dist/{chunk-3ZXOARGD.mjs → chunk-R7DMRLHV.mjs} +10 -64
  123. package/dist/{chunk-6AZFL3WJ.js → chunk-R7S7O3YU.js} +180 -87
  124. package/dist/{chunk-XS7OPLPB.mjs → chunk-RKPYLBPU.mjs} +15 -15
  125. package/dist/{chunk-HXHMGLWX.js → chunk-ROKUXJBS.js} +9 -63
  126. package/dist/{chunk-IE57VDN4.js → chunk-RY2I56HB.js} +11 -38
  127. package/dist/{chunk-3F2QHERR.js → chunk-S4GFEADD.js} +36 -55
  128. package/dist/{chunk-GGV4STQD.js → chunk-SKV2HHBC.js} +3 -23
  129. package/dist/{chunk-FJ2ZZHIW.js → chunk-SLYUQ67P.js} +17 -26
  130. package/dist/{chunk-LGKMVPIB.js → chunk-SWOQMMOT.js} +14 -15
  131. package/dist/chunk-T4DF24UV.js +108 -0
  132. package/dist/chunk-T77L326M.mjs +370 -0
  133. package/dist/{chunk-GO3JWOB6.mjs → chunk-TG4PXQKX.mjs} +2 -3
  134. package/dist/{chunk-RZ6K7TWA.js → chunk-TGLAMZ4N.js} +120 -35
  135. package/dist/{chunk-U2JWZTDN.js → chunk-TLXEFLPA.js} +6 -13
  136. package/dist/chunk-TQOMX62N.js +104 -0
  137. package/dist/{chunk-LFIZI5Z4.mjs → chunk-U6WHPSWN.mjs} +6 -19
  138. package/dist/{chunk-JBSSXJZ2.mjs → chunk-U7MDGSCQ.mjs} +80 -111
  139. package/dist/{chunk-54IA7YWJ.js → chunk-UHGRUTGW.js} +2 -2
  140. package/dist/{chunk-YS2WMH5I.js → chunk-UKJSG75K.js} +10 -57
  141. package/dist/{chunk-W57RIOYG.mjs → chunk-URYEEQD7.mjs} +4 -5
  142. package/dist/{chunk-JQ73I2Q6.js → chunk-UUGAOKYR.js} +3 -4
  143. package/dist/{chunk-UZMGKLJE.js → chunk-UWVUDZVA.js} +4 -11
  144. package/dist/chunk-VBXPDCRX.js +254 -0
  145. package/dist/{chunk-IK3ZLVPR.js → chunk-VTLTKTCK.js} +6 -19
  146. package/dist/{chunk-G6YTJ7IE.mjs → chunk-VURU7TLN.mjs} +30 -53
  147. package/dist/{chunk-JSERNUJX.mjs → chunk-W2OCMRRH.mjs} +11 -58
  148. package/dist/{chunk-RBZ7ADKL.js → chunk-W36SYMVH.js} +9 -18
  149. package/dist/{chunk-ZAEX6EMJ.js → chunk-WC4B72TZ.js} +29 -52
  150. package/dist/{chunk-R2DKSTP4.js → chunk-WCZGYU7M.js} +9 -32
  151. package/dist/{chunk-SKUTVXHP.js → chunk-WEFQCJAG.js} +5 -8
  152. package/dist/chunk-WIPPSHI6.mjs +111 -0
  153. package/dist/{chunk-3JWW6FIN.mjs → chunk-WMM3FR3W.mjs} +7 -4
  154. package/dist/{chunk-U65XZCPB.js → chunk-WPIDP6IG.js} +1 -15
  155. package/dist/{chunk-VP4ZSIY3.mjs → chunk-WQXZ3234.mjs} +12 -39
  156. package/dist/{chunk-CF5D36KB.mjs → chunk-XCJONKFL.mjs} +12 -45
  157. package/dist/{chunk-HWHMM3QE.js → chunk-XEU42TLP.js} +6 -5
  158. package/dist/{chunk-TKTAGTDP.js → chunk-XV5DEK27.js} +32 -55
  159. package/dist/{chunk-HPTXW2VK.mjs → chunk-XYYZAQ6Z.mjs} +2 -5
  160. package/dist/{chunk-SHXM2ZXC.mjs → chunk-Y4V7BOVR.mjs} +3 -16
  161. package/dist/{chunk-YRFK5X43.js → chunk-Y5AZNO2W.js} +60 -71
  162. package/dist/chunk-YCI7GRQY.mjs +101 -0
  163. package/dist/{chunk-FVL7HDPG.mjs → chunk-YCUO6ZKS.mjs} +61 -72
  164. package/dist/chunk-YEHKQ3JZ.mjs +105 -0
  165. package/dist/{chunk-WNLRR2NM.mjs → chunk-YXN3YY5Y.mjs} +6 -9
  166. package/dist/{chunk-ZMU5PLEQ.js → chunk-YZK2HXRT.js} +63 -87
  167. package/dist/{chunk-I77ACTTI.mjs → chunk-YZP4K6KI.mjs} +18 -19
  168. package/dist/chunk-ZA2PLF7O.mjs +60 -0
  169. package/dist/chunk-ZED7TU62.js +85 -0
  170. package/dist/{chunk-6NHAWLQA.mjs → chunk-ZLYXAZUY.mjs} +132 -156
  171. package/dist/chunk-ZNVQ2OFX.js +44 -0
  172. package/dist/chunk-ZREPAOSW.mjs +284 -0
  173. package/dist/{chunk-PZOSCHRV.mjs → chunk-ZTJTIQZY.mjs} +54 -91
  174. package/dist/{chunk-WPWMXSXK.js → chunk-ZZ5LMO3X.js} +66 -73
  175. package/dist/components/ActivityFeed.js +11 -10
  176. package/dist/components/ActivityFeed.mjs +9 -8
  177. package/dist/components/Alert.js +5 -3
  178. package/dist/components/Alert.mjs +3 -1
  179. package/dist/components/Anchor.js +5 -4
  180. package/dist/components/Anchor.mjs +2 -1
  181. package/dist/components/AnchorLink.js +5 -4
  182. package/dist/components/AnchorLink.mjs +3 -2
  183. package/dist/components/AreaChart.d.mts +29 -2
  184. package/dist/components/AreaChart.d.ts +29 -2
  185. package/dist/components/AreaChart.js +5 -4
  186. package/dist/components/AreaChart.mjs +3 -2
  187. package/dist/components/Avatar.js +4 -3
  188. package/dist/components/Avatar.mjs +2 -1
  189. package/dist/components/BackTop.js +4 -3
  190. package/dist/components/BackTop.mjs +2 -1
  191. package/dist/components/Badge.d.mts +10 -93
  192. package/dist/components/Badge.d.ts +10 -93
  193. package/dist/components/Badge.js +4 -3
  194. package/dist/components/Badge.mjs +2 -1
  195. package/dist/components/BarChart.d.mts +58 -1
  196. package/dist/components/BarChart.d.ts +58 -1
  197. package/dist/components/BarChart.js +5 -4
  198. package/dist/components/BarChart.mjs +3 -2
  199. package/dist/components/Breadcrumb.js +5 -4
  200. package/dist/components/Breadcrumb.mjs +2 -1
  201. package/dist/components/BreadcrumbItem.d.mts +8 -6
  202. package/dist/components/BreadcrumbItem.d.ts +8 -6
  203. package/dist/components/BreadcrumbItem.js +5 -4
  204. package/dist/components/BreadcrumbItem.mjs +3 -2
  205. package/dist/components/Button.d.mts +4 -4
  206. package/dist/components/Button.d.ts +4 -4
  207. package/dist/components/Button.js +4 -3
  208. package/dist/components/Button.mjs +2 -1
  209. package/dist/components/Card.js +4 -3
  210. package/dist/components/Card.mjs +2 -1
  211. package/dist/components/Carousel.js +4 -3
  212. package/dist/components/Carousel.mjs +2 -1
  213. package/dist/components/ChartAxis.js +1 -0
  214. package/dist/components/ChartAxis.mjs +1 -0
  215. package/dist/components/ChartCanvas.js +1 -0
  216. package/dist/components/ChartCanvas.mjs +1 -0
  217. package/dist/components/ChartGrid.js +1 -0
  218. package/dist/components/ChartGrid.mjs +1 -0
  219. package/dist/components/ChartLegend.d.mts +1 -1
  220. package/dist/components/ChartLegend.d.ts +1 -1
  221. package/dist/components/ChartLegend.js +1 -0
  222. package/dist/components/ChartLegend.mjs +1 -0
  223. package/dist/components/ChartSeries.js +1 -0
  224. package/dist/components/ChartSeries.mjs +1 -0
  225. package/dist/components/ChartTooltip.js +1 -0
  226. package/dist/components/ChartTooltip.mjs +1 -0
  227. package/dist/components/ChatWindow.js +8 -7
  228. package/dist/components/ChatWindow.mjs +6 -5
  229. package/dist/components/Checkbox.js +4 -3
  230. package/dist/components/Checkbox.mjs +2 -1
  231. package/dist/components/CheckboxGroup.js +1 -0
  232. package/dist/components/CheckboxGroup.mjs +1 -0
  233. package/dist/components/Code.js +4 -3
  234. package/dist/components/Code.mjs +2 -1
  235. package/dist/components/Col.d.mts +8 -28
  236. package/dist/components/Col.d.ts +8 -28
  237. package/dist/components/Col.js +4 -3
  238. package/dist/components/Col.mjs +3 -2
  239. package/dist/components/Collapse.js +5 -4
  240. package/dist/components/Collapse.mjs +2 -1
  241. package/dist/components/CollapsePanel.js +5 -4
  242. package/dist/components/CollapsePanel.mjs +3 -2
  243. package/dist/components/CommentThread.js +9 -8
  244. package/dist/components/CommentThread.mjs +7 -6
  245. package/dist/components/ConfigProvider.js +1 -0
  246. package/dist/components/ConfigProvider.mjs +1 -0
  247. package/dist/components/Container.js +1 -0
  248. package/dist/components/Container.mjs +1 -0
  249. package/dist/components/Content.js +4 -3
  250. package/dist/components/Content.mjs +2 -1
  251. package/dist/components/CropUpload.d.mts +97 -0
  252. package/dist/components/CropUpload.d.ts +97 -0
  253. package/dist/components/CropUpload.js +20 -0
  254. package/dist/components/CropUpload.mjs +5 -0
  255. package/dist/components/DataTableWithToolbar.d.mts +2 -2
  256. package/dist/components/DataTableWithToolbar.d.ts +2 -2
  257. package/dist/components/DataTableWithToolbar.js +9 -11
  258. package/dist/components/DataTableWithToolbar.mjs +7 -9
  259. package/dist/components/DatePicker.js +4 -3
  260. package/dist/components/DatePicker.mjs +2 -1
  261. package/dist/components/Descriptions.d.mts +2 -2
  262. package/dist/components/Descriptions.d.ts +2 -2
  263. package/dist/components/Descriptions.js +4 -3
  264. package/dist/components/Descriptions.mjs +2 -1
  265. package/dist/components/Divider.d.mts +10 -18
  266. package/dist/components/Divider.d.ts +10 -18
  267. package/dist/components/Divider.js +4 -3
  268. package/dist/components/Divider.mjs +2 -1
  269. package/dist/components/DonutChart.d.mts +66 -0
  270. package/dist/components/DonutChart.d.ts +66 -0
  271. package/dist/components/DonutChart.js +6 -5
  272. package/dist/components/DonutChart.mjs +4 -3
  273. package/dist/components/Drawer.d.mts +2 -2
  274. package/dist/components/Drawer.d.ts +2 -2
  275. package/dist/components/Drawer.js +4 -3
  276. package/dist/components/Drawer.mjs +2 -1
  277. package/dist/components/Dropdown.d.mts +18 -1
  278. package/dist/components/Dropdown.d.ts +18 -1
  279. package/dist/components/Dropdown.js +5 -4
  280. package/dist/components/Dropdown.mjs +2 -1
  281. package/dist/components/DropdownItem.js +5 -4
  282. package/dist/components/DropdownItem.mjs +3 -2
  283. package/dist/components/DropdownMenu.js +1 -0
  284. package/dist/components/DropdownMenu.mjs +1 -0
  285. package/dist/components/Footer.js +4 -3
  286. package/dist/components/Footer.mjs +2 -1
  287. package/dist/components/Form.js +5 -4
  288. package/dist/components/Form.mjs +2 -1
  289. package/dist/components/FormItem.js +5 -4
  290. package/dist/components/FormItem.mjs +3 -2
  291. package/dist/components/FormWizard.d.mts +17 -7
  292. package/dist/components/FormWizard.d.ts +17 -7
  293. package/dist/components/FormWizard.js +8 -7
  294. package/dist/components/FormWizard.mjs +6 -5
  295. package/dist/components/Header.js +4 -3
  296. package/dist/components/Header.mjs +2 -1
  297. package/dist/components/Icon.d.mts +1 -33
  298. package/dist/components/Icon.d.ts +1 -33
  299. package/dist/components/Icon.js +4 -3
  300. package/dist/components/Icon.mjs +2 -1
  301. package/dist/components/Image.d.mts +119 -0
  302. package/dist/components/Image.d.ts +119 -0
  303. package/dist/components/Image.js +22 -0
  304. package/dist/components/Image.mjs +3 -0
  305. package/dist/components/ImageCropper.d.mts +105 -0
  306. package/dist/components/ImageCropper.d.ts +105 -0
  307. package/dist/components/ImageCropper.js +17 -0
  308. package/dist/components/ImageCropper.mjs +2 -0
  309. package/dist/components/ImageGroup.d.mts +30 -0
  310. package/dist/components/ImageGroup.d.ts +30 -0
  311. package/dist/components/ImageGroup.js +22 -0
  312. package/dist/components/ImageGroup.mjs +3 -0
  313. package/dist/components/ImagePreview.d.mts +97 -0
  314. package/dist/components/ImagePreview.d.ts +97 -0
  315. package/dist/components/ImagePreview.js +17 -0
  316. package/dist/components/ImagePreview.mjs +5 -0
  317. package/dist/components/Input.d.mts +43 -70
  318. package/dist/components/Input.d.ts +43 -70
  319. package/dist/components/Input.js +4 -3
  320. package/dist/components/Input.mjs +2 -1
  321. package/dist/components/Layout.js +4 -3
  322. package/dist/components/Layout.mjs +2 -1
  323. package/dist/components/LineChart.d.mts +37 -1
  324. package/dist/components/LineChart.d.ts +37 -1
  325. package/dist/components/LineChart.js +5 -4
  326. package/dist/components/LineChart.mjs +3 -2
  327. package/dist/components/Link.d.mts +11 -83
  328. package/dist/components/Link.d.ts +11 -83
  329. package/dist/components/Link.js +4 -3
  330. package/dist/components/Link.mjs +2 -1
  331. package/dist/components/List.js +4 -3
  332. package/dist/components/List.mjs +2 -1
  333. package/dist/components/Loading.d.mts +5 -86
  334. package/dist/components/Loading.d.ts +5 -86
  335. package/dist/components/Loading.js +4 -3
  336. package/dist/components/Loading.mjs +2 -1
  337. package/dist/components/Menu.d.mts +4 -4
  338. package/dist/components/Menu.d.ts +4 -4
  339. package/dist/components/Menu.js +5 -4
  340. package/dist/components/Menu.mjs +2 -1
  341. package/dist/components/MenuItem.js +5 -4
  342. package/dist/components/MenuItem.mjs +3 -2
  343. package/dist/components/MenuItemGroup.js +1 -0
  344. package/dist/components/MenuItemGroup.mjs +1 -0
  345. package/dist/components/Message.d.mts +0 -18
  346. package/dist/components/Message.d.ts +0 -18
  347. package/dist/components/Message.js +6 -4
  348. package/dist/components/Message.mjs +3 -1
  349. package/dist/components/Modal.d.mts +2 -2
  350. package/dist/components/Modal.d.ts +2 -2
  351. package/dist/components/Modal.js +5 -4
  352. package/dist/components/Modal.mjs +3 -2
  353. package/dist/components/Notification.d.mts +0 -15
  354. package/dist/components/Notification.d.ts +0 -15
  355. package/dist/components/Notification.js +6 -4
  356. package/dist/components/Notification.mjs +3 -1
  357. package/dist/components/NotificationCenter.js +11 -10
  358. package/dist/components/NotificationCenter.mjs +9 -8
  359. package/dist/components/Pagination.js +4 -3
  360. package/dist/components/Pagination.mjs +2 -1
  361. package/dist/components/PieChart.d.mts +45 -0
  362. package/dist/components/PieChart.d.ts +45 -0
  363. package/dist/components/PieChart.js +5 -4
  364. package/dist/components/PieChart.mjs +3 -2
  365. package/dist/components/Popconfirm.d.mts +26 -96
  366. package/dist/components/Popconfirm.d.ts +26 -96
  367. package/dist/components/Popconfirm.js +5 -3
  368. package/dist/components/Popconfirm.mjs +3 -1
  369. package/dist/components/Popover.d.mts +20 -72
  370. package/dist/components/Popover.d.ts +20 -72
  371. package/dist/components/Popover.js +5 -3
  372. package/dist/components/Popover.mjs +3 -1
  373. package/dist/components/Progress.d.mts +6 -130
  374. package/dist/components/Progress.d.ts +6 -130
  375. package/dist/components/Progress.js +4 -3
  376. package/dist/components/Progress.mjs +2 -1
  377. package/dist/components/RadarChart.d.mts +71 -8
  378. package/dist/components/RadarChart.d.ts +71 -8
  379. package/dist/components/RadarChart.js +6 -4
  380. package/dist/components/RadarChart.mjs +4 -2
  381. package/dist/components/Radio.js +5 -4
  382. package/dist/components/Radio.mjs +3 -2
  383. package/dist/components/RadioGroup.js +5 -4
  384. package/dist/components/RadioGroup.mjs +2 -1
  385. package/dist/components/Row.js +4 -3
  386. package/dist/components/Row.mjs +2 -1
  387. package/dist/components/ScatterChart.d.mts +45 -0
  388. package/dist/components/ScatterChart.d.ts +45 -0
  389. package/dist/components/ScatterChart.js +5 -4
  390. package/dist/components/ScatterChart.mjs +3 -2
  391. package/dist/components/Select.js +4 -3
  392. package/dist/components/Select.mjs +2 -1
  393. package/dist/components/Sidebar.js +4 -3
  394. package/dist/components/Sidebar.mjs +2 -1
  395. package/dist/components/Skeleton.d.mts +3 -79
  396. package/dist/components/Skeleton.d.ts +3 -79
  397. package/dist/components/Skeleton.js +4 -3
  398. package/dist/components/Skeleton.mjs +2 -1
  399. package/dist/components/Slider.js +4 -3
  400. package/dist/components/Slider.mjs +2 -1
  401. package/dist/components/Space.d.mts +2 -7
  402. package/dist/components/Space.d.ts +2 -7
  403. package/dist/components/Space.js +4 -3
  404. package/dist/components/Space.mjs +2 -1
  405. package/dist/components/Steps.js +5 -4
  406. package/dist/components/Steps.mjs +2 -1
  407. package/dist/components/StepsItem.js +5 -4
  408. package/dist/components/StepsItem.mjs +3 -2
  409. package/dist/components/SubMenu.js +5 -4
  410. package/dist/components/SubMenu.mjs +3 -2
  411. package/dist/components/Switch.js +4 -3
  412. package/dist/components/Switch.mjs +2 -1
  413. package/dist/components/TabPane.d.mts +8 -6
  414. package/dist/components/TabPane.d.ts +8 -6
  415. package/dist/components/TabPane.js +5 -4
  416. package/dist/components/TabPane.mjs +3 -2
  417. package/dist/components/Table.d.mts +1 -1
  418. package/dist/components/Table.d.ts +1 -1
  419. package/dist/components/Table.js +4 -3
  420. package/dist/components/Table.mjs +2 -1
  421. package/dist/components/Tabs.js +5 -4
  422. package/dist/components/Tabs.mjs +2 -1
  423. package/dist/components/Tag.d.mts +4 -4
  424. package/dist/components/Tag.d.ts +4 -4
  425. package/dist/components/Tag.js +4 -3
  426. package/dist/components/Tag.mjs +2 -1
  427. package/dist/components/Text.d.mts +2 -12
  428. package/dist/components/Text.d.ts +2 -12
  429. package/dist/components/Text.js +4 -3
  430. package/dist/components/Text.mjs +2 -1
  431. package/dist/components/Textarea.js +4 -3
  432. package/dist/components/Textarea.mjs +2 -1
  433. package/dist/components/TimePicker.js +4 -3
  434. package/dist/components/TimePicker.mjs +2 -1
  435. package/dist/components/Timeline.js +4 -3
  436. package/dist/components/Timeline.mjs +2 -1
  437. package/dist/components/Tooltip.d.mts +16 -58
  438. package/dist/components/Tooltip.d.ts +16 -58
  439. package/dist/components/Tooltip.js +5 -3
  440. package/dist/components/Tooltip.mjs +3 -1
  441. package/dist/components/Tree.js +4 -3
  442. package/dist/components/Tree.mjs +2 -1
  443. package/dist/components/Upload.js +4 -3
  444. package/dist/components/Upload.mjs +2 -1
  445. package/dist/index.d.mts +9 -4
  446. package/dist/index.d.ts +9 -4
  447. package/dist/index.js +225 -195
  448. package/dist/index.mjs +90 -79
  449. package/package.json +2 -2
  450. package/dist/chunk-5MKAKQK6.mjs +0 -124
  451. package/dist/chunk-6WIVOHTB.mjs +0 -157
  452. package/dist/chunk-7SCADPTJ.mjs +0 -79
  453. package/dist/chunk-BXFYOGMO.js +0 -59
  454. package/dist/chunk-D45QLF65.js +0 -270
  455. package/dist/chunk-H6CUKJYY.mjs +0 -300
  456. package/dist/chunk-J7OYLV6I.mjs +0 -447
  457. package/dist/chunk-K6NKVCEO.js +0 -57
  458. package/dist/chunk-PQQUAUFM.mjs +0 -54
  459. package/dist/chunk-QJWFKTRQ.js +0 -160
  460. package/dist/chunk-R3YK5LUH.mjs +0 -267
  461. package/dist/chunk-RN25EUD2.js +0 -303
  462. package/dist/chunk-RUD3FPP2.js +0 -301
  463. package/dist/chunk-T3TN26BD.mjs +0 -56
  464. package/dist/chunk-U6JCAP2C.js +0 -188
  465. package/dist/chunk-W2CCYPSO.mjs +0 -185
  466. package/dist/chunk-WH6OTVYF.js +0 -450
  467. package/dist/chunk-XLSGZUPU.mjs +0 -298
  468. package/dist/chunk-Y6C455RB.js +0 -81
  469. package/dist/chunk-YFMXWX6H.js +0 -127
@@ -0,0 +1,266 @@
1
+ 'use strict';
2
+
3
+ var chunkPNKVD2UK_js = require('./chunk-PNKVD2UK.js');
4
+ var vue = require('vue');
5
+ var tigercatCore = require('@expcat/tigercat-core');
6
+
7
+ // src/components/ImagePreview.ts
8
+ var ImagePreview_exports = {};
9
+ chunkPNKVD2UK_js.__export(ImagePreview_exports, {
10
+ ImagePreview: () => exports.ImagePreview,
11
+ default: () => exports.ImagePreview_default
12
+ });
13
+ var svgIcon; exports.ImagePreview = void 0; exports.ImagePreview_default = void 0;
14
+ var init_ImagePreview = chunkPNKVD2UK_js.__esm({
15
+ "src/components/ImagePreview.ts"() {
16
+ svgIcon = (d, cls = "w-5 h-5") => vue.h(
17
+ "svg",
18
+ {
19
+ class: cls,
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ fill: "none",
22
+ viewBox: "0 0 24 24",
23
+ stroke: "currentColor"
24
+ },
25
+ [
26
+ vue.h("path", {
27
+ "stroke-linecap": "round",
28
+ "stroke-linejoin": "round",
29
+ "stroke-width": "2",
30
+ d
31
+ })
32
+ ]
33
+ );
34
+ exports.ImagePreview = vue.defineComponent({
35
+ name: "TigerImagePreview",
36
+ inheritAttrs: false,
37
+ props: {
38
+ visible: { type: Boolean, default: false },
39
+ images: { type: Array, default: () => [] },
40
+ currentIndex: { type: Number, default: 0 },
41
+ zIndex: { type: Number, default: 1050 },
42
+ maskClosable: { type: Boolean, default: true },
43
+ scaleStep: { type: Number, default: 0.5 },
44
+ minScale: { type: Number, default: 0.25 },
45
+ maxScale: { type: Number, default: 5 }
46
+ },
47
+ emits: ["update:visible", "update:currentIndex", "scale-change"],
48
+ setup(props, { emit }) {
49
+ const scale = vue.ref(1);
50
+ const offsetX = vue.ref(0);
51
+ const offsetY = vue.ref(0);
52
+ const index = vue.ref(props.currentIndex);
53
+ const dragging = vue.ref(false);
54
+ const dragStart = vue.ref({ x: 0, y: 0, ox: 0, oy: 0 });
55
+ const resetTransform = () => {
56
+ scale.value = 1;
57
+ offsetX.value = 0;
58
+ offsetY.value = 0;
59
+ };
60
+ vue.watch(
61
+ () => props.currentIndex,
62
+ (val) => {
63
+ index.value = val;
64
+ resetTransform();
65
+ }
66
+ );
67
+ vue.watch(
68
+ () => props.visible,
69
+ (val) => {
70
+ if (val) {
71
+ resetTransform();
72
+ index.value = props.currentIndex;
73
+ document.body.style.overflow = "hidden";
74
+ } else {
75
+ document.body.style.overflow = "";
76
+ }
77
+ }
78
+ );
79
+ const navState = vue.computed(() => tigercatCore.getPreviewNavState(index.value, props.images.length));
80
+ const handleClose = () => {
81
+ emit("update:visible", false);
82
+ };
83
+ const handleZoomIn = () => {
84
+ scale.value = tigercatCore.clampScale(scale.value + props.scaleStep, props.minScale, props.maxScale);
85
+ emit("scale-change", scale.value);
86
+ };
87
+ const handleZoomOut = () => {
88
+ scale.value = tigercatCore.clampScale(scale.value - props.scaleStep, props.minScale, props.maxScale);
89
+ emit("scale-change", scale.value);
90
+ };
91
+ const handleReset = () => {
92
+ resetTransform();
93
+ emit("scale-change", 1);
94
+ };
95
+ const handlePrev = () => {
96
+ if (navState.value.hasPrev) {
97
+ index.value--;
98
+ resetTransform();
99
+ emit("update:currentIndex", index.value);
100
+ }
101
+ };
102
+ const handleNext = () => {
103
+ if (navState.value.hasNext) {
104
+ index.value++;
105
+ resetTransform();
106
+ emit("update:currentIndex", index.value);
107
+ }
108
+ };
109
+ const handleWheel = (e) => {
110
+ e.preventDefault();
111
+ const delta = e.deltaY > 0 ? -props.scaleStep : props.scaleStep;
112
+ scale.value = tigercatCore.clampScale(scale.value + delta, props.minScale, props.maxScale);
113
+ emit("scale-change", scale.value);
114
+ };
115
+ const handleMouseDown = (e) => {
116
+ if (e.button !== 0) return;
117
+ e.preventDefault();
118
+ dragging.value = true;
119
+ dragStart.value = {
120
+ x: e.clientX,
121
+ y: e.clientY,
122
+ ox: offsetX.value,
123
+ oy: offsetY.value
124
+ };
125
+ };
126
+ const handleMouseMove = (e) => {
127
+ if (!dragging.value) return;
128
+ offsetX.value = dragStart.value.ox + (e.clientX - dragStart.value.x);
129
+ offsetY.value = dragStart.value.oy + (e.clientY - dragStart.value.y);
130
+ };
131
+ const handleMouseUp = () => {
132
+ dragging.value = false;
133
+ };
134
+ const handleMaskClick = (e) => {
135
+ if (props.maskClosable && e.target === e.currentTarget) {
136
+ handleClose();
137
+ }
138
+ };
139
+ const handleKeyDown = (e) => {
140
+ if (!props.visible) return;
141
+ switch (e.key) {
142
+ case "Escape":
143
+ handleClose();
144
+ break;
145
+ case "ArrowLeft":
146
+ handlePrev();
147
+ break;
148
+ case "ArrowRight":
149
+ handleNext();
150
+ break;
151
+ }
152
+ };
153
+ vue.onMounted(() => {
154
+ document.addEventListener("keydown", handleKeyDown);
155
+ });
156
+ vue.onBeforeUnmount(() => {
157
+ document.removeEventListener("keydown", handleKeyDown);
158
+ document.body.style.overflow = "";
159
+ });
160
+ const transform = vue.computed(() => tigercatCore.calculateTransform(scale.value, offsetX.value, offsetY.value));
161
+ return () => {
162
+ if (!props.visible || !props.images.length) return null;
163
+ const currentSrc = props.images[index.value] || props.images[0];
164
+ const mask = vue.h("div", {
165
+ class: tigercatCore.imagePreviewMaskClasses,
166
+ "aria-hidden": "true"
167
+ });
168
+ const img = vue.h("img", {
169
+ src: currentSrc,
170
+ class: tigercatCore.imagePreviewImgClasses,
171
+ style: { transform: transform.value },
172
+ alt: `Preview image ${index.value + 1}`,
173
+ draggable: false,
174
+ onMousedown: handleMouseDown,
175
+ onMousemove: handleMouseMove,
176
+ onMouseup: handleMouseUp,
177
+ onMouseleave: handleMouseUp
178
+ });
179
+ const closeBtn = vue.h(
180
+ "button",
181
+ {
182
+ class: tigercatCore.imagePreviewCloseBtnClasses,
183
+ onClick: handleClose,
184
+ "aria-label": "Close preview",
185
+ type: "button"
186
+ },
187
+ [svgIcon(tigercatCore.previewCloseIconPath)]
188
+ );
189
+ const toolbar = vue.h("div", { class: tigercatCore.imagePreviewToolbarClasses }, [
190
+ vue.h(
191
+ "button",
192
+ {
193
+ class: tigercatCore.imagePreviewToolbarBtnClasses,
194
+ onClick: handleZoomOut,
195
+ "aria-label": "Zoom out",
196
+ type: "button"
197
+ },
198
+ [svgIcon(tigercatCore.zoomOutIconPath)]
199
+ ),
200
+ vue.h(
201
+ "button",
202
+ {
203
+ class: tigercatCore.imagePreviewToolbarBtnClasses,
204
+ onClick: handleReset,
205
+ "aria-label": "Reset",
206
+ type: "button"
207
+ },
208
+ [svgIcon(tigercatCore.resetIconPath)]
209
+ ),
210
+ vue.h(
211
+ "button",
212
+ {
213
+ class: tigercatCore.imagePreviewToolbarBtnClasses,
214
+ onClick: handleZoomIn,
215
+ "aria-label": "Zoom in",
216
+ type: "button"
217
+ },
218
+ [svgIcon(tigercatCore.zoomInIconPath)]
219
+ ),
220
+ navState.value.counter ? vue.h("span", { class: tigercatCore.imagePreviewCounterClasses }, navState.value.counter) : null
221
+ ]);
222
+ const prevBtn = props.images.length > 1 ? vue.h(
223
+ "button",
224
+ {
225
+ class: tigercatCore.classNames(tigercatCore.imagePreviewNavBtnClasses, "left-4"),
226
+ onClick: handlePrev,
227
+ disabled: !navState.value.hasPrev,
228
+ "aria-label": "Previous image",
229
+ type: "button"
230
+ },
231
+ [svgIcon(tigercatCore.prevIconPath)]
232
+ ) : null;
233
+ const nextBtn = props.images.length > 1 ? vue.h(
234
+ "button",
235
+ {
236
+ class: tigercatCore.classNames(tigercatCore.imagePreviewNavBtnClasses, "right-4"),
237
+ onClick: handleNext,
238
+ disabled: !navState.value.hasNext,
239
+ "aria-label": "Next image",
240
+ type: "button"
241
+ },
242
+ [svgIcon(tigercatCore.nextIconPath)]
243
+ ) : null;
244
+ const wrapper = vue.h(
245
+ "div",
246
+ {
247
+ class: tigercatCore.imagePreviewWrapperClasses,
248
+ style: { zIndex: props.zIndex },
249
+ role: "dialog",
250
+ "aria-modal": "true",
251
+ "aria-label": "Image preview",
252
+ onClick: handleMaskClick,
253
+ onWheel: handleWheel
254
+ },
255
+ [mask, img, closeBtn, prevBtn, nextBtn, toolbar]
256
+ );
257
+ return vue.h(vue.Teleport, { to: "body" }, [wrapper]);
258
+ };
259
+ }
260
+ });
261
+ exports.ImagePreview_default = exports.ImagePreview;
262
+ }
263
+ });
264
+
265
+ exports.ImagePreview_exports = ImagePreview_exports;
266
+ exports.init_ImagePreview = init_ImagePreview;
@@ -1,6 +1,6 @@
1
- import { MenuContextKey } from './chunk-FKON56SN.mjs';
1
+ import { MenuContextKey } from './chunk-3AM6WEUE.mjs';
2
2
  import { defineComponent, inject, computed, ref, h, Transition, isVNode, cloneVNode, nextTick } from 'vue';
3
- import { isKeyOpen, classNames, getSubMenuTitleClasses, coerceClassValue, mergeStyleValues, submenuContentHorizontalClasses, submenuContentPopupClasses, submenuContentInlineClasses, submenuContentVerticalClasses, getMenuItemIndent, menuItemIconClasses, getSubMenuExpandIconClasses } from '@expcat/tigercat-core';
3
+ import { isKeyOpen, classNames, getSubMenuTitleClasses, coerceClassValue, mergeStyleValues, submenuContentHorizontalClasses, submenuContentPopupClasses, submenuContentInlineClasses, submenuContentVerticalClasses, getMenuItemIndent, menuItemIconClasses, getSubMenuExpandIconClasses, moveFocusInMenu, focusMenuEdge, focusFirstChildItem } from '@expcat/tigercat-core';
4
4
 
5
5
  var ExpandIcon = (expanded) => {
6
6
  return h(
@@ -82,13 +82,13 @@ var SubMenu = defineComponent({
82
82
  const isHovered = ref(false);
83
83
  const isOpenByKeyboard = ref(false);
84
84
  const effectiveCollapsed = computed(() => {
85
- return props.collapsed ?? (menuContext ? menuContext.collapsed : false);
85
+ return props.collapsed ?? (menuContext ? menuContext.collapsed.value : false);
86
86
  });
87
87
  const isPopup = computed(() => {
88
- return !!menuContext && menuContext.mode === "vertical" && effectiveCollapsed.value;
88
+ return !!menuContext && menuContext.mode.value === "vertical" && effectiveCollapsed.value;
89
89
  });
90
90
  const isExpanded = computed(() => {
91
- if (menuContext?.mode === "horizontal" || isPopup.value) {
91
+ if (menuContext?.mode.value === "horizontal" || isPopup.value) {
92
92
  return isHovered.value || isOpenByKeyboard.value;
93
93
  }
94
94
  return isOpen.value;
@@ -96,7 +96,7 @@ var SubMenu = defineComponent({
96
96
  const titleClasses = computed(() => {
97
97
  if (!menuContext) return "";
98
98
  return classNames(
99
- getSubMenuTitleClasses(menuContext.theme, props.disabled),
99
+ getSubMenuTitleClasses(menuContext.theme.value, props.disabled),
100
100
  props.className,
101
101
  coerceClassValue(attrs.class)
102
102
  );
@@ -108,16 +108,16 @@ var SubMenu = defineComponent({
108
108
  });
109
109
  const contentClasses = computed(() => {
110
110
  if (!menuContext) return "";
111
- if (menuContext.mode === "horizontal") {
111
+ if (menuContext.mode.value === "horizontal") {
112
112
  return submenuContentHorizontalClasses;
113
113
  }
114
114
  if (isPopup.value) return submenuContentPopupClasses;
115
- if (menuContext.mode === "inline") return submenuContentInlineClasses;
115
+ if (menuContext.mode.value === "inline") return submenuContentInlineClasses;
116
116
  return submenuContentVerticalClasses;
117
117
  });
118
118
  const handleTitleClick = () => {
119
119
  if (!menuContext || props.disabled) return;
120
- if (menuContext.mode === "horizontal") return;
120
+ if (menuContext.mode.value === "horizontal") return;
121
121
  if (isPopup.value) {
122
122
  isOpenByKeyboard.value = !isOpenByKeyboard.value;
123
123
  isHovered.value = true;
@@ -125,82 +125,41 @@ var SubMenu = defineComponent({
125
125
  }
126
126
  menuContext.handleOpenChange(props.itemKey);
127
127
  };
128
- const getMenuButtonsWithin = (menuEl) => {
129
- return Array.from(
130
- menuEl.querySelectorAll('button[data-tiger-menuitem="true"]')
131
- ).filter((el) => !el.disabled);
132
- };
133
- const roveFocus = (current, next) => {
134
- const menuEl = current.closest('ul[role="menu"]');
135
- if (!menuEl) {
136
- next.focus();
137
- return;
138
- }
139
- const items = getMenuButtonsWithin(menuEl);
140
- items.forEach((el) => {
141
- el.tabIndex = el === next ? 0 : -1;
142
- });
143
- next.focus();
144
- };
145
- const moveFocus = (current, delta) => {
146
- const menuEl = current.closest('ul[role="menu"]');
147
- if (!menuEl) return;
148
- const items = getMenuButtonsWithin(menuEl);
149
- const currentIndex = items.indexOf(current);
150
- if (currentIndex < 0) return;
151
- const nextIndex = (currentIndex + delta + items.length) % items.length;
152
- roveFocus(current, items[nextIndex]);
153
- };
154
- const focusEdge = (current, edge) => {
155
- const menuEl = current.closest('ul[role="menu"]');
156
- if (!menuEl) return;
157
- const items = getMenuButtonsWithin(menuEl);
158
- if (items.length === 0) return;
159
- roveFocus(current, edge === "start" ? items[0] : items[items.length - 1]);
160
- };
161
- const focusFirstChildItem = async () => {
128
+ const focusFirstChild = async () => {
162
129
  await nextTick();
163
130
  const titleEl = document.activeElement;
164
- const li = titleEl?.closest("li");
165
- const submenu = li?.querySelector('ul[role="menu"]');
166
- if (!submenu) return;
167
- const items = getMenuButtonsWithin(submenu);
168
- if (items.length === 0) return;
169
- items.forEach((el, idx) => {
170
- el.tabIndex = idx === 0 ? 0 : -1;
171
- });
172
- items[0].focus();
131
+ if (titleEl) focusFirstChildItem(titleEl);
173
132
  };
174
133
  const handleTitleKeyDown = async (event) => {
175
134
  if (!menuContext || props.disabled) return;
176
135
  const current = event.currentTarget;
177
136
  const rootMenu = current.closest('ul[role="menu"]');
178
137
  const isRoot = rootMenu?.dataset.tigerMenuRoot === "true";
179
- const isHorizontalRoot = isRoot && menuContext.mode === "horizontal";
138
+ const isHorizontalRoot = isRoot && menuContext.mode.value === "horizontal";
180
139
  const nextKey = isHorizontalRoot ? "ArrowRight" : "ArrowDown";
181
140
  const prevKey = isHorizontalRoot ? "ArrowLeft" : "ArrowUp";
182
141
  if (event.key === nextKey) {
183
142
  event.preventDefault();
184
- moveFocus(current, 1);
143
+ moveFocusInMenu(current, 1);
185
144
  return;
186
145
  }
187
146
  if (event.key === prevKey) {
188
147
  event.preventDefault();
189
- moveFocus(current, -1);
148
+ moveFocusInMenu(current, -1);
190
149
  return;
191
150
  }
192
151
  if (event.key === "Home") {
193
152
  event.preventDefault();
194
- focusEdge(current, "start");
153
+ focusMenuEdge(current, "start");
195
154
  return;
196
155
  }
197
156
  if (event.key === "End") {
198
157
  event.preventDefault();
199
- focusEdge(current, "end");
158
+ focusMenuEdge(current, "end");
200
159
  return;
201
160
  }
202
161
  if (event.key === "Escape" || event.key === "ArrowLeft") {
203
- if (menuContext.mode === "horizontal" || isPopup.value) {
162
+ if (menuContext.mode.value === "horizontal" || isPopup.value) {
204
163
  event.preventDefault();
205
164
  isOpenByKeyboard.value = false;
206
165
  isHovered.value = false;
@@ -214,16 +173,16 @@ var SubMenu = defineComponent({
214
173
  }
215
174
  if (event.key === "Enter" || event.key === " ") {
216
175
  event.preventDefault();
217
- if (menuContext.mode === "horizontal" || isPopup.value) {
176
+ if (menuContext.mode.value === "horizontal" || isPopup.value) {
218
177
  isOpenByKeyboard.value = true;
219
178
  return;
220
179
  }
221
180
  menuContext.handleOpenChange(props.itemKey);
222
- await focusFirstChildItem();
181
+ await focusFirstChild();
223
182
  return;
224
183
  }
225
184
  if (event.key === "ArrowRight" || event.key === "ArrowDown") {
226
- if (menuContext.mode === "horizontal" || isPopup.value) {
185
+ if (menuContext.mode.value === "horizontal" || isPopup.value) {
227
186
  event.preventDefault();
228
187
  isOpenByKeyboard.value = true;
229
188
  return;
@@ -231,26 +190,26 @@ var SubMenu = defineComponent({
231
190
  if (!isOpen.value) {
232
191
  event.preventDefault();
233
192
  menuContext.handleOpenChange(props.itemKey);
234
- await focusFirstChildItem();
193
+ await focusFirstChild();
235
194
  }
236
195
  }
237
196
  };
238
197
  const handleMouseEnter = () => {
239
- if (menuContext?.mode === "horizontal" || isPopup.value) {
198
+ if (menuContext?.mode.value === "horizontal" || isPopup.value) {
240
199
  isHovered.value = true;
241
200
  }
242
201
  };
243
202
  const handleMouseLeave = () => {
244
- if (menuContext?.mode === "horizontal" || isPopup.value) {
203
+ if (menuContext?.mode.value === "horizontal" || isPopup.value) {
245
204
  isHovered.value = false;
246
205
  isOpenByKeyboard.value = false;
247
206
  }
248
207
  };
249
208
  const indentStyle = computed(() => {
250
- if (!menuContext || menuContext.mode !== "inline" || props.level === 0) {
209
+ if (!menuContext || menuContext.mode.value !== "inline" || props.level === 0) {
251
210
  return {};
252
211
  }
253
- return getMenuItemIndent(props.level, menuContext.inlineIndent);
212
+ return getMenuItemIndent(props.level, menuContext.inlineIndent.value);
254
213
  });
255
214
  const withChildLevel = (nodes) => {
256
215
  if (!nodes || nodes.length === 0) return nodes;
@@ -288,7 +247,7 @@ var SubMenu = defineComponent({
288
247
  }
289
248
  if (!effectiveCollapsed.value) {
290
249
  titleChildren.push(h("span", { class: "flex-1" }, props.title));
291
- if (menuContext.mode !== "horizontal" && !isPopup.value) {
250
+ if (menuContext.mode.value !== "horizontal" && !isPopup.value) {
292
251
  titleChildren.push(ExpandIcon(isExpanded.value));
293
252
  }
294
253
  } else if (!props.icon) {
@@ -315,7 +274,7 @@ var SubMenu = defineComponent({
315
274
  },
316
275
  titleChildren
317
276
  );
318
- const contentNode = menuContext.mode === "horizontal" || isPopup.value ? h(
277
+ const contentNode = menuContext.mode.value === "horizontal" || isPopup.value ? h(
319
278
  "ul",
320
279
  {
321
280
  class: contentClasses.value,
@@ -365,7 +324,7 @@ var SubMenu = defineComponent({
365
324
  return h(
366
325
  "li",
367
326
  {
368
- class: menuContext.mode === "horizontal" || isPopup.value ? "relative" : "",
327
+ class: menuContext.mode.value === "horizontal" || isPopup.value ? "relative" : "",
369
328
  onMouseenter: handleMouseEnter,
370
329
  onMouseleave: handleMouseLeave,
371
330
  role: "none"
@@ -189,15 +189,8 @@ var Drawer = defineComponent({
189
189
  watch(
190
190
  () => props.visible,
191
191
  (nextVisible, prevVisible, onCleanup) => {
192
- if (typeof prevVisible === "undefined") {
193
- if (!nextVisible) return;
194
- const timer2 = window.setTimeout(() => {
195
- emit("after-enter");
196
- }, ANIMATION_DURATION_MS);
197
- onCleanup(() => window.clearTimeout(timer2));
192
+ if (nextVisible === prevVisible || typeof prevVisible === "undefined" && !nextVisible)
198
193
  return;
199
- }
200
- if (nextVisible === prevVisible) return;
201
194
  const timer = window.setTimeout(() => {
202
195
  emit(nextVisible ? "after-enter" : "after-leave");
203
196
  }, ANIMATION_DURATION_MS);
@@ -213,7 +206,7 @@ var Drawer = defineComponent({
213
206
  const ariaLabelledbyFromAttrs = typeof attrs["aria-labelledby"] === "string" ? attrs["aria-labelledby"] : void 0;
214
207
  const ariaLabelledby = ariaLabelledbyFromAttrs ?? (props.title || slots.header ? titleId.value : void 0);
215
208
  const containerClasses = classNames(
216
- getDrawerContainerClasses(props.zIndex),
209
+ getDrawerContainerClasses(),
217
210
  !props.visible && "pointer-events-none"
218
211
  );
219
212
  const maskClasses = getDrawerMaskClasses(props.visible);
@@ -0,0 +1,171 @@
1
+ import { defineComponent, computed, h } from 'vue';
2
+ import { clampPercentage, getStatusVariant, formatProgressText, getCircleSize, calculateCirclePath, classNames, progressCircleBaseClasses, coerceClassValue, progressCircleTrackStrokeClasses, getProgressVariantClasses, progressCircleTextClasses, progressTextSizeClasses, getProgressTextColorClasses, progressLineBaseClasses, progressTrackBgClasses, progressLineSizeClasses, progressLineInnerClasses, progressStripedClasses, progressStripedAnimationClasses, progressTextBaseClasses } from '@expcat/tigercat-core';
3
+
4
+ // src/components/Progress.ts
5
+ var Progress = defineComponent({
6
+ name: "TigerProgress",
7
+ inheritAttrs: false,
8
+ props: {
9
+ variant: { type: String, default: "primary" },
10
+ size: { type: String, default: "md" },
11
+ type: { type: String, default: "line" },
12
+ percentage: { type: Number, default: 0 },
13
+ status: { type: String, default: "normal" },
14
+ showText: { type: Boolean, default: void 0 },
15
+ text: { type: String, default: void 0 },
16
+ format: { type: Function, default: void 0 },
17
+ striped: { type: Boolean, default: false },
18
+ stripedAnimation: { type: Boolean, default: false },
19
+ strokeWidth: { type: Number, default: 6 },
20
+ width: { type: [String, Number], default: "auto" },
21
+ height: { type: Number, default: void 0 },
22
+ className: { type: String, default: void 0 },
23
+ style: { type: Object, default: void 0 }
24
+ },
25
+ setup(props, { attrs }) {
26
+ const clamped = computed(() => clampPercentage(props.percentage));
27
+ const effectiveVariant = computed(
28
+ () => getStatusVariant(props.status) || props.variant
29
+ );
30
+ const shouldShowText = computed(() => props.showText ?? props.type === "line");
31
+ const displayText = computed(
32
+ () => shouldShowText.value ? formatProgressText(clamped.value, props.text, props.format) : ""
33
+ );
34
+ const resolvedAriaLabel = computed(() => {
35
+ const label = attrs["aria-label"];
36
+ return label ?? (attrs["aria-labelledby"] != null ? void 0 : `Progress: ${clamped.value}%`);
37
+ });
38
+ const ariaProps = computed(() => ({
39
+ role: "progressbar",
40
+ "aria-label": resolvedAriaLabel.value,
41
+ "aria-labelledby": attrs["aria-labelledby"],
42
+ "aria-describedby": attrs["aria-describedby"],
43
+ "aria-valuenow": clamped.value,
44
+ "aria-valuemin": 0,
45
+ "aria-valuemax": 100
46
+ }));
47
+ const renderLineProgress = () => {
48
+ const containerStyle = props.width !== "auto" ? { width: typeof props.width === "number" ? `${props.width}px` : props.width } : {};
49
+ return h(
50
+ "div",
51
+ {
52
+ ...attrs,
53
+ class: classNames(
54
+ "flex items-center w-full",
55
+ coerceClassValue(attrs.class),
56
+ props.className
57
+ ),
58
+ style: {
59
+ ...attrs.style,
60
+ ...props.style ?? {},
61
+ ...containerStyle
62
+ }
63
+ },
64
+ [
65
+ h(
66
+ "div",
67
+ {
68
+ class: classNames(
69
+ progressLineBaseClasses,
70
+ progressTrackBgClasses,
71
+ !props.height && progressLineSizeClasses[props.size]
72
+ ),
73
+ style: { flex: 1, ...props.height ? { height: `${props.height}px` } : {} }
74
+ },
75
+ [
76
+ h("div", {
77
+ class: classNames(
78
+ progressLineInnerClasses,
79
+ getProgressVariantClasses(effectiveVariant.value),
80
+ props.striped && progressStripedClasses,
81
+ props.striped && props.stripedAnimation && progressStripedAnimationClasses
82
+ ),
83
+ style: { width: `${clamped.value}%` },
84
+ ...ariaProps.value
85
+ })
86
+ ]
87
+ ),
88
+ shouldShowText.value ? h(
89
+ "span",
90
+ {
91
+ class: classNames(
92
+ progressTextBaseClasses,
93
+ progressTextSizeClasses[props.size],
94
+ getProgressTextColorClasses(effectiveVariant.value)
95
+ )
96
+ },
97
+ displayText.value
98
+ ) : void 0
99
+ ].filter(Boolean)
100
+ );
101
+ };
102
+ const renderCircleProgress = () => {
103
+ const { width, height, radius, cx, cy } = getCircleSize(props.size, props.strokeWidth);
104
+ const { strokeDasharray, strokeDashoffset } = calculateCirclePath(radius, clamped.value);
105
+ return h(
106
+ "div",
107
+ {
108
+ ...attrs,
109
+ class: classNames(
110
+ progressCircleBaseClasses,
111
+ coerceClassValue(attrs.class),
112
+ props.className
113
+ ),
114
+ style: {
115
+ ...attrs.style,
116
+ ...props.style ?? {},
117
+ width: `${width}px`,
118
+ height: `${height}px`
119
+ }
120
+ },
121
+ [
122
+ h("svg", { width, height, viewBox: `0 0 ${width} ${height}` }, [
123
+ h("circle", {
124
+ cx,
125
+ cy,
126
+ r: radius,
127
+ fill: "none",
128
+ stroke: "currentColor",
129
+ class: progressCircleTrackStrokeClasses,
130
+ "stroke-width": props.strokeWidth
131
+ }),
132
+ h("circle", {
133
+ cx,
134
+ cy,
135
+ r: radius,
136
+ fill: "none",
137
+ stroke: "currentColor",
138
+ class: getProgressVariantClasses(effectiveVariant.value).replace("bg-", "text-"),
139
+ "stroke-width": props.strokeWidth,
140
+ "stroke-linecap": "round",
141
+ "stroke-dasharray": strokeDasharray,
142
+ "stroke-dashoffset": strokeDashoffset,
143
+ style: {
144
+ transition: "stroke-dashoffset 0.3s ease",
145
+ transform: "rotate(-90deg)",
146
+ transformOrigin: "center"
147
+ },
148
+ ...ariaProps.value
149
+ })
150
+ ]),
151
+ shouldShowText.value ? h(
152
+ "div",
153
+ {
154
+ class: classNames(
155
+ progressCircleTextClasses,
156
+ progressTextSizeClasses[props.size],
157
+ "font-medium",
158
+ getProgressTextColorClasses(effectiveVariant.value)
159
+ )
160
+ },
161
+ displayText.value
162
+ ) : void 0
163
+ ].filter(Boolean)
164
+ );
165
+ };
166
+ return () => props.type === "circle" ? renderCircleProgress() : renderLineProgress();
167
+ }
168
+ });
169
+ var Progress_default = Progress;
170
+
171
+ export { Progress, Progress_default };