@expcat/tigercat-vue 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 (475) hide show
  1. package/dist/{chunk-ATGOHL6L.mjs → chunk-243JSTYQ.mjs} +6 -6
  2. package/dist/chunk-2S5CNU36.js +163 -0
  3. package/dist/{chunk-ROKUXJBS.js → chunk-2SK6T4WB.js} +3 -3
  4. package/dist/{chunk-7RRA3TIG.mjs → chunk-2TNZ4JNT.mjs} +20 -2
  5. package/dist/chunk-2WJADO6O.mjs +298 -0
  6. package/dist/{chunk-BFNHRBWN.js → chunk-2WZGK7XJ.js} +6 -6
  7. package/dist/chunk-33C5E3AQ.mjs +328 -0
  8. package/dist/chunk-34ZZLKQ4.js +184 -0
  9. package/dist/chunk-3FVWZYBQ.js +196 -0
  10. package/dist/chunk-3G7QYQYL.js +95 -0
  11. package/dist/chunk-3MC45EXP.mjs +86 -0
  12. package/dist/{chunk-LGRUMMOG.js → chunk-3YWYAQR6.js} +9 -9
  13. package/dist/chunk-43BLH7DE.js +154 -0
  14. package/dist/{chunk-GWJSBFLF.js → chunk-46XPSPG4.js} +21 -6
  15. package/dist/chunk-4BMFV4CH.mjs +204 -0
  16. package/dist/chunk-4F5ABXXM.js +248 -0
  17. package/dist/{chunk-J5J4UYGP.mjs → chunk-4K2CCBFT.mjs} +65 -5
  18. package/dist/{chunk-HTMTOXUO.mjs → chunk-4KCCUIGO.mjs} +4 -4
  19. package/dist/chunk-4Y2SJZB5.js +262 -0
  20. package/dist/{chunk-YCI7GRQY.mjs → chunk-564LMZQL.mjs} +6 -6
  21. package/dist/{chunk-QLK4ZC2B.js → chunk-5AXCKK6Z.js} +4 -4
  22. package/dist/{chunk-EAMHOEAJ.js → chunk-5DXIYS7U.js} +11 -11
  23. package/dist/{chunk-CEAMHLIL.js → chunk-5JSU44MQ.js} +12 -0
  24. package/dist/chunk-5XF5IAUD.mjs +193 -0
  25. package/dist/chunk-5Y3HYEQD.js +64 -0
  26. package/dist/{chunk-LDCTSE6Y.mjs → chunk-665NGSV3.mjs} +3 -3
  27. package/dist/{chunk-WIPPSHI6.mjs → chunk-6A57RY3H.mjs} +6 -6
  28. package/dist/{chunk-7AFJ7TKW.js → chunk-6DP7XE77.js} +7 -6
  29. package/dist/chunk-6VG6ARQG.js +206 -0
  30. package/dist/chunk-6XU5PSC2.js +195 -0
  31. package/dist/{chunk-MJ7RGL34.mjs → chunk-7DGAOCPX.mjs} +64 -3
  32. package/dist/{chunk-W36SYMVH.js → chunk-7VSD3NPI.js} +91 -43
  33. package/dist/{chunk-D5CR2P7K.mjs → chunk-A64AWAOW.mjs} +44 -14
  34. package/dist/{chunk-F5AI7CPC.js → chunk-AAO2B46J.js} +44 -3
  35. package/dist/{chunk-ZREPAOSW.mjs → chunk-ABPOLQLE.mjs} +1 -1
  36. package/dist/chunk-AFKNO6SF.js +76 -0
  37. package/dist/chunk-AGQNHT65.mjs +92 -0
  38. package/dist/{chunk-YQGKXFV5.js → chunk-BDMWFNTC.js} +2 -2
  39. package/dist/chunk-BFS7XO3E.js +318 -0
  40. package/dist/{chunk-7TGLZQV5.js → chunk-BNIUWON3.js} +9 -5
  41. package/dist/chunk-BPAN6T7H.mjs +135 -0
  42. package/dist/{chunk-K6HDRMPN.js → chunk-BUTNEKFD.js} +6 -5
  43. package/dist/chunk-BYNMOQBB.js +301 -0
  44. package/dist/chunk-BZBVSB43.js +138 -0
  45. package/dist/{chunk-5BAN4GHQ.mjs → chunk-C76CIM26.mjs} +2 -1
  46. package/dist/chunk-CG3AMK5U.mjs +38 -0
  47. package/dist/chunk-CQPHZU3H.mjs +73 -0
  48. package/dist/chunk-CXJUEG75.js +331 -0
  49. package/dist/{chunk-ATOLZW76.js → chunk-D6AWPRGV.js} +91 -17
  50. package/dist/{chunk-MYF3ZRV3.mjs → chunk-DBPY5M7Y.mjs} +23 -8
  51. package/dist/chunk-DC5J25FH.mjs +245 -0
  52. package/dist/chunk-DYSLYJ2W.js +88 -0
  53. package/dist/chunk-E2GQSWHK.mjs +93 -0
  54. package/dist/{chunk-XEU42TLP.js → chunk-ECUROLZ7.js} +64 -3
  55. package/dist/chunk-ELEAQEMV.mjs +61 -0
  56. package/dist/{chunk-GNKXBRXH.js → chunk-ESTA5C5P.js} +7 -7
  57. package/dist/chunk-EXQSRZJX.mjs +315 -0
  58. package/dist/chunk-EZXW4HIZ.mjs +149 -0
  59. package/dist/chunk-FIV4PKWT.js +89 -0
  60. package/dist/chunk-FOF7UBMU.js +180 -0
  61. package/dist/{chunk-SKV2HHBC.js → chunk-FUGSQXFR.js} +64 -4
  62. package/dist/chunk-G3SWTL27.js +103 -0
  63. package/dist/{chunk-6PZZNM3S.js → chunk-G4ZD6COW.js} +26 -15
  64. package/dist/{chunk-B6ER2B2D.js → chunk-GA5S2KNZ.js} +2 -2
  65. package/dist/chunk-GHPSCR6M.js +69 -0
  66. package/dist/{chunk-3WM7WK7E.js → chunk-GJFT5IQR.js} +32 -36
  67. package/dist/chunk-GMYSHJCU.mjs +143 -0
  68. package/dist/{chunk-U7MDGSCQ.mjs → chunk-HKYYO326.mjs} +12 -0
  69. package/dist/chunk-HRIKUP6R.js +106 -0
  70. package/dist/chunk-HSXB2ASL.mjs +265 -0
  71. package/dist/{chunk-DEFEAEYE.mjs → chunk-HTOCKV2N.mjs} +306 -105
  72. package/dist/{chunk-327O6FN7.mjs → chunk-HXLCWM2J.mjs} +36 -24
  73. package/dist/chunk-I5K3R4FN.mjs +149 -0
  74. package/dist/chunk-I6RGE7XQ.js +152 -0
  75. package/dist/{chunk-3ZHQJ4W6.mjs → chunk-IOBJYUUO.mjs} +31 -35
  76. package/dist/chunk-IZF4VHJ2.mjs +100 -0
  77. package/dist/{chunk-OOKS4KMK.js → chunk-JCMGBKS6.js} +19 -0
  78. package/dist/{chunk-R7DMRLHV.mjs → chunk-JGUXQMYL.mjs} +1 -1
  79. package/dist/chunk-JIMDJWZZ.js +52 -0
  80. package/dist/chunk-JM3ZZYTE.mjs +181 -0
  81. package/dist/{chunk-UWVUDZVA.js → chunk-JN63Z5E5.js} +3 -21
  82. package/dist/chunk-JSIQIWYP.js +41 -0
  83. package/dist/{chunk-UKJSG75K.js → chunk-KFE7T7CN.js} +3 -3
  84. package/dist/{chunk-YXN3YY5Y.mjs → chunk-KOTSKHPQ.mjs} +30 -12
  85. package/dist/chunk-KYQAAQKV.mjs +192 -0
  86. package/dist/{chunk-KCJPJQIS.js → chunk-LFV3KYO2.js} +7 -7
  87. package/dist/chunk-LGVPLGK3.mjs +361 -0
  88. package/dist/chunk-LHPBK4MG.js +92 -0
  89. package/dist/{chunk-AO4QQVBB.mjs → chunk-LJJ3VTR3.mjs} +5 -5
  90. package/dist/{chunk-EBTLMVDJ.js → chunk-LLU76X6I.js} +3 -3
  91. package/dist/{chunk-WMM3FR3W.mjs → chunk-LV3BMS4U.mjs} +1 -1
  92. package/dist/{chunk-P47EXOAW.mjs → chunk-M6PEW6V5.mjs} +89 -41
  93. package/dist/{chunk-D6MR5YRE.mjs → chunk-M7JUNLA7.mjs} +25 -12
  94. package/dist/chunk-MADOTDW7.mjs +129 -0
  95. package/dist/{chunk-N3T6BQGK.js → chunk-MI5EG5QX.js} +3 -2
  96. package/dist/{chunk-QERCB3HM.mjs → chunk-MKLJ2LJW.mjs} +17 -3
  97. package/dist/chunk-MNH3KNSN.js +152 -0
  98. package/dist/chunk-MX2KCWM2.js +193 -0
  99. package/dist/chunk-NAHD6ZRR.mjs +65 -0
  100. package/dist/chunk-NOZ65AMO.js +96 -0
  101. package/dist/chunk-NXGCLBVG.js +268 -0
  102. package/dist/{chunk-TCJBN2DA.mjs → chunk-OEHCRIVT.mjs} +4 -4
  103. package/dist/chunk-OMYSFPX6.mjs +173 -0
  104. package/dist/{chunk-W2OCMRRH.mjs → chunk-OXOCGMPN.mjs} +1 -1
  105. package/dist/{chunk-RVEEEDJQ.mjs → chunk-P4X7GS2X.mjs} +1 -1
  106. package/dist/{chunk-HNQZ5JRB.js → chunk-PBWSBNDS.js} +31 -2
  107. package/dist/{chunk-6MJBCXPO.js → chunk-PUALBK3Y.js} +42 -12
  108. package/dist/chunk-PXRF4IJO.mjs +159 -0
  109. package/dist/chunk-Q57TYGO4.js +123 -0
  110. package/dist/{chunk-TQOMX62N.js → chunk-Q6CGPWQF.js} +7 -7
  111. package/dist/{chunk-ZZ5LMO3X.js → chunk-QDFUM2QT.js} +35 -23
  112. package/dist/{chunk-YCUO6ZKS.mjs → chunk-QDNTISP7.mjs} +25 -6
  113. package/dist/{chunk-GALASVSG.mjs → chunk-QNODDATK.mjs} +31 -2
  114. package/dist/chunk-RB7KVVWE.mjs +259 -0
  115. package/dist/{chunk-LNWRZKX2.js → chunk-RDV4BMTK.js} +5 -5
  116. package/dist/{chunk-ENVHCXM5.js → chunk-RQREJGY3.js} +2 -2
  117. package/dist/chunk-RSBAFDUA.mjs +89 -0
  118. package/dist/chunk-S276SM7L.mjs +146 -0
  119. package/dist/{chunk-S4GFEADD.js → chunk-SEKYX56R.js} +18 -4
  120. package/dist/chunk-SI3JIHH4.js +184 -0
  121. package/dist/chunk-T52TU2RW.mjs +190 -0
  122. package/dist/{chunk-VBXPDCRX.js → chunk-TDL4BUUB.js} +7 -7
  123. package/dist/{chunk-NTUGEHEI.mjs → chunk-TW64ZNZY.mjs} +2 -2
  124. package/dist/{chunk-Y5AZNO2W.js → chunk-U2K7CF67.js} +28 -9
  125. package/dist/chunk-U5ABMOOV.js +364 -0
  126. package/dist/{chunk-DELTFEEJ.js → chunk-U7CCKZAG.js} +24 -11
  127. package/dist/{chunk-WV3Y45YK.js → chunk-UG6XPJ2N.js} +305 -104
  128. package/dist/chunk-UPPRQ3ZS.js +132 -0
  129. package/dist/chunk-UQK22ZMC.mjs +151 -0
  130. package/dist/{chunk-NV6GZPJP.mjs → chunk-UWL2XUAH.mjs} +4 -22
  131. package/dist/{chunk-LUN3PRLX.js → chunk-V4PBWEAU.js} +25 -1
  132. package/dist/chunk-VDNAGLQJ.js +176 -0
  133. package/dist/chunk-VIIGYWUY.mjs +83 -0
  134. package/dist/chunk-W2WGLETE.mjs +177 -0
  135. package/dist/chunk-W3Y22PMU.mjs +48 -0
  136. package/dist/chunk-W6TMZ7ZT.js +207 -0
  137. package/dist/chunk-WFISP42H.mjs +93 -0
  138. package/dist/chunk-WLKOJFOC.mjs +120 -0
  139. package/dist/{chunk-5XY7MXWC.mjs → chunk-WNF7XUX4.mjs} +93 -19
  140. package/dist/{chunk-HFBRO2IF.mjs → chunk-XA5QMUZX.mjs} +1 -1
  141. package/dist/chunk-XFZZWZ6Q.js +149 -0
  142. package/dist/{chunk-WEFQCJAG.js → chunk-XGXGAK27.js} +29 -11
  143. package/dist/{chunk-EVOLGCGW.mjs → chunk-XNORTTVQ.mjs} +44 -3
  144. package/dist/{chunk-TRDG56CB.mjs → chunk-XP5M2GK7.mjs} +27 -3
  145. package/dist/chunk-XQKIMRRF.js +146 -0
  146. package/dist/chunk-XTMGF5YP.js +97 -0
  147. package/dist/chunk-XYIAHZNM.mjs +181 -0
  148. package/dist/{chunk-7J44XQKW.mjs → chunk-YFD6RD7P.mjs} +26 -15
  149. package/dist/{chunk-MB7W46IY.mjs → chunk-YH7N5GZF.mjs} +5 -4
  150. package/dist/chunk-YUEBMBOH.mjs +103 -0
  151. package/dist/chunk-YYZBVHVC.mjs +203 -0
  152. package/dist/{chunk-LLK2OK3K.mjs → chunk-Z2NMFYF4.mjs} +1 -1
  153. package/dist/{chunk-MMQ34S5M.mjs → chunk-ZUVR5UZL.mjs} +7 -6
  154. package/dist/{chunk-37WD7WPC.mjs → chunk-ZXR4DAAO.mjs} +9 -5
  155. package/dist/components/ActivityFeed.d.mts +1 -1
  156. package/dist/components/ActivityFeed.d.ts +1 -1
  157. package/dist/components/ActivityFeed.js +4 -4
  158. package/dist/components/ActivityFeed.mjs +2 -2
  159. package/dist/components/Affix.d.mts +75 -0
  160. package/dist/components/Affix.d.ts +75 -0
  161. package/dist/components/Affix.js +17 -0
  162. package/dist/components/Affix.mjs +2 -0
  163. package/dist/components/Alert.d.mts +51 -0
  164. package/dist/components/Alert.d.ts +51 -0
  165. package/dist/components/Alert.js +4 -4
  166. package/dist/components/Alert.mjs +2 -2
  167. package/dist/components/AreaChart.js +5 -5
  168. package/dist/components/AreaChart.mjs +3 -3
  169. package/dist/components/AutoComplete.d.mts +108 -0
  170. package/dist/components/AutoComplete.d.ts +108 -0
  171. package/dist/components/AutoComplete.js +17 -0
  172. package/dist/components/AutoComplete.mjs +2 -0
  173. package/dist/components/AvatarGroup.d.mts +49 -0
  174. package/dist/components/AvatarGroup.d.ts +49 -0
  175. package/dist/components/AvatarGroup.js +21 -0
  176. package/dist/components/AvatarGroup.mjs +2 -0
  177. package/dist/components/BarChart.js +5 -5
  178. package/dist/components/BarChart.mjs +3 -3
  179. package/dist/components/BreadcrumbItem.d.mts +3 -3
  180. package/dist/components/BreadcrumbItem.d.ts +3 -3
  181. package/dist/components/Button.d.mts +35 -7
  182. package/dist/components/Button.d.ts +35 -7
  183. package/dist/components/Button.js +3 -3
  184. package/dist/components/Button.mjs +1 -1
  185. package/dist/components/ButtonGroup.d.mts +42 -0
  186. package/dist/components/ButtonGroup.d.ts +42 -0
  187. package/dist/components/ButtonGroup.js +21 -0
  188. package/dist/components/ButtonGroup.mjs +2 -0
  189. package/dist/components/Calendar.d.mts +58 -0
  190. package/dist/components/Calendar.d.ts +58 -0
  191. package/dist/components/Calendar.js +17 -0
  192. package/dist/components/Calendar.mjs +2 -0
  193. package/dist/components/Card.d.mts +19 -1
  194. package/dist/components/Card.d.ts +19 -1
  195. package/dist/components/Card.js +3 -3
  196. package/dist/components/Card.mjs +1 -1
  197. package/dist/components/Cascader.d.mts +127 -0
  198. package/dist/components/Cascader.d.ts +127 -0
  199. package/dist/components/Cascader.js +17 -0
  200. package/dist/components/Cascader.mjs +2 -0
  201. package/dist/components/ChatWindow.js +5 -5
  202. package/dist/components/ChatWindow.mjs +3 -3
  203. package/dist/components/CodeEditor.d.mts +167 -0
  204. package/dist/components/CodeEditor.d.ts +167 -0
  205. package/dist/components/CodeEditor.js +17 -0
  206. package/dist/components/CodeEditor.mjs +2 -0
  207. package/dist/components/ColorPicker.d.mts +70 -0
  208. package/dist/components/ColorPicker.d.ts +70 -0
  209. package/dist/components/ColorPicker.js +17 -0
  210. package/dist/components/ColorPicker.mjs +2 -0
  211. package/dist/components/CommentThread.d.mts +2 -2
  212. package/dist/components/CommentThread.d.ts +2 -2
  213. package/dist/components/CommentThread.js +4 -4
  214. package/dist/components/CommentThread.mjs +2 -2
  215. package/dist/components/ConfigProvider.d.mts +21 -1
  216. package/dist/components/ConfigProvider.d.ts +21 -1
  217. package/dist/components/ConfigProvider.js +5 -5
  218. package/dist/components/ConfigProvider.mjs +1 -1
  219. package/dist/components/CropUpload.js +5 -5
  220. package/dist/components/CropUpload.mjs +3 -3
  221. package/dist/components/DataTableWithToolbar.d.mts +1 -1
  222. package/dist/components/DataTableWithToolbar.d.ts +1 -1
  223. package/dist/components/DataTableWithToolbar.js +7 -7
  224. package/dist/components/DataTableWithToolbar.mjs +5 -5
  225. package/dist/components/DatePicker.d.mts +16 -1
  226. package/dist/components/DatePicker.d.ts +16 -1
  227. package/dist/components/DatePicker.js +4 -3
  228. package/dist/components/DatePicker.mjs +2 -1
  229. package/dist/components/Descriptions.d.mts +7 -9
  230. package/dist/components/Descriptions.d.ts +7 -9
  231. package/dist/components/Descriptions.js +3 -3
  232. package/dist/components/Descriptions.mjs +1 -1
  233. package/dist/components/DonutChart.js +5 -5
  234. package/dist/components/DonutChart.mjs +3 -3
  235. package/dist/components/Drawer.d.mts +23 -8
  236. package/dist/components/Drawer.d.ts +23 -8
  237. package/dist/components/Drawer.js +3 -3
  238. package/dist/components/Drawer.mjs +1 -1
  239. package/dist/components/Dropdown.d.mts +13 -13
  240. package/dist/components/Dropdown.d.ts +13 -13
  241. package/dist/components/Dropdown.js +4 -4
  242. package/dist/components/Dropdown.mjs +1 -1
  243. package/dist/components/DropdownItem.js +4 -4
  244. package/dist/components/DropdownItem.mjs +2 -2
  245. package/dist/components/Empty.d.mts +64 -0
  246. package/dist/components/Empty.d.ts +64 -0
  247. package/dist/components/Empty.js +17 -0
  248. package/dist/components/Empty.mjs +2 -0
  249. package/dist/components/FileManager.d.mts +161 -0
  250. package/dist/components/FileManager.d.ts +161 -0
  251. package/dist/components/FileManager.js +17 -0
  252. package/dist/components/FileManager.mjs +2 -0
  253. package/dist/components/FloatButton.d.mts +156 -0
  254. package/dist/components/FloatButton.d.ts +156 -0
  255. package/dist/components/FloatButton.js +21 -0
  256. package/dist/components/FloatButton.mjs +2 -0
  257. package/dist/components/Form.d.mts +45 -0
  258. package/dist/components/Form.d.ts +45 -0
  259. package/dist/components/Form.js +4 -4
  260. package/dist/components/Form.mjs +1 -1
  261. package/dist/components/FormItem.d.mts +18 -1
  262. package/dist/components/FormItem.d.ts +18 -1
  263. package/dist/components/FormItem.js +4 -4
  264. package/dist/components/FormItem.mjs +2 -2
  265. package/dist/components/FormWizard.d.mts +9 -0
  266. package/dist/components/FormWizard.d.ts +9 -0
  267. package/dist/components/FormWizard.js +5 -5
  268. package/dist/components/FormWizard.mjs +3 -3
  269. package/dist/components/FunnelChart.d.mts +212 -0
  270. package/dist/components/FunnelChart.d.ts +212 -0
  271. package/dist/components/FunnelChart.js +22 -0
  272. package/dist/components/FunnelChart.mjs +7 -0
  273. package/dist/components/GaugeChart.d.mts +173 -0
  274. package/dist/components/GaugeChart.d.ts +173 -0
  275. package/dist/components/GaugeChart.js +18 -0
  276. package/dist/components/GaugeChart.mjs +3 -0
  277. package/dist/components/HeatmapChart.d.mts +209 -0
  278. package/dist/components/HeatmapChart.d.ts +209 -0
  279. package/dist/components/HeatmapChart.js +20 -0
  280. package/dist/components/HeatmapChart.mjs +5 -0
  281. package/dist/components/Image.d.mts +2 -1
  282. package/dist/components/Image.d.ts +2 -1
  283. package/dist/components/Image.js +5 -5
  284. package/dist/components/Image.mjs +2 -2
  285. package/dist/components/ImageGroup.js +5 -5
  286. package/dist/components/ImageGroup.mjs +2 -2
  287. package/dist/components/ImagePreview.d.mts +6 -6
  288. package/dist/components/ImagePreview.d.ts +6 -6
  289. package/dist/components/ImagePreview.js +4 -4
  290. package/dist/components/ImagePreview.mjs +2 -2
  291. package/dist/components/ImageViewer.d.mts +126 -0
  292. package/dist/components/ImageViewer.d.ts +126 -0
  293. package/dist/components/ImageViewer.js +17 -0
  294. package/dist/components/ImageViewer.mjs +2 -0
  295. package/dist/components/InfiniteScroll.d.mts +105 -0
  296. package/dist/components/InfiniteScroll.d.ts +105 -0
  297. package/dist/components/InfiniteScroll.js +17 -0
  298. package/dist/components/InfiniteScroll.mjs +2 -0
  299. package/dist/components/Input.d.mts +32 -0
  300. package/dist/components/Input.d.ts +32 -0
  301. package/dist/components/Input.js +3 -3
  302. package/dist/components/Input.mjs +1 -1
  303. package/dist/components/InputGroup.d.mts +77 -0
  304. package/dist/components/InputGroup.d.ts +77 -0
  305. package/dist/components/InputGroup.js +25 -0
  306. package/dist/components/InputGroup.mjs +2 -0
  307. package/dist/components/Kanban.d.mts +180 -0
  308. package/dist/components/Kanban.d.ts +180 -0
  309. package/dist/components/Kanban.js +18 -0
  310. package/dist/components/Kanban.mjs +3 -0
  311. package/dist/components/LineChart.js +5 -5
  312. package/dist/components/LineChart.mjs +3 -3
  313. package/dist/components/List.d.mts +18 -2
  314. package/dist/components/List.d.ts +18 -2
  315. package/dist/components/List.js +3 -3
  316. package/dist/components/List.mjs +1 -1
  317. package/dist/components/Mentions.d.mts +88 -0
  318. package/dist/components/Mentions.d.ts +88 -0
  319. package/dist/components/Mentions.js +17 -0
  320. package/dist/components/Mentions.mjs +2 -0
  321. package/dist/components/Menu.d.mts +1 -1
  322. package/dist/components/Menu.d.ts +1 -1
  323. package/dist/components/MenuItem.d.mts +1 -1
  324. package/dist/components/MenuItem.d.ts +1 -1
  325. package/dist/components/Message.js +5 -5
  326. package/dist/components/Message.mjs +2 -2
  327. package/dist/components/Modal.d.mts +40 -8
  328. package/dist/components/Modal.d.ts +40 -8
  329. package/dist/components/Modal.js +4 -4
  330. package/dist/components/Modal.mjs +2 -2
  331. package/dist/components/Notification.js +5 -5
  332. package/dist/components/Notification.mjs +2 -2
  333. package/dist/components/NotificationCenter.d.mts +1 -1
  334. package/dist/components/NotificationCenter.d.ts +1 -1
  335. package/dist/components/NotificationCenter.js +8 -8
  336. package/dist/components/NotificationCenter.mjs +6 -6
  337. package/dist/components/PieChart.js +4 -4
  338. package/dist/components/PieChart.mjs +2 -2
  339. package/dist/components/Popconfirm.d.mts +14 -14
  340. package/dist/components/Popconfirm.d.ts +14 -14
  341. package/dist/components/Popconfirm.js +4 -4
  342. package/dist/components/Popconfirm.mjs +2 -2
  343. package/dist/components/Popover.d.mts +13 -13
  344. package/dist/components/Popover.d.ts +13 -13
  345. package/dist/components/Popover.js +4 -4
  346. package/dist/components/Popover.mjs +2 -2
  347. package/dist/components/PrintLayout.d.mts +97 -0
  348. package/dist/components/PrintLayout.d.ts +97 -0
  349. package/dist/components/PrintLayout.js +21 -0
  350. package/dist/components/PrintLayout.mjs +2 -0
  351. package/dist/components/QRCode.d.mts +75 -0
  352. package/dist/components/QRCode.d.ts +75 -0
  353. package/dist/components/QRCode.js +17 -0
  354. package/dist/components/QRCode.mjs +2 -0
  355. package/dist/components/RadarChart.js +4 -4
  356. package/dist/components/RadarChart.mjs +2 -2
  357. package/dist/components/Rate.d.mts +80 -0
  358. package/dist/components/Rate.d.ts +80 -0
  359. package/dist/components/Rate.js +17 -0
  360. package/dist/components/Rate.mjs +2 -0
  361. package/dist/components/Resizable.d.mts +138 -0
  362. package/dist/components/Resizable.d.ts +138 -0
  363. package/dist/components/Resizable.js +17 -0
  364. package/dist/components/Resizable.mjs +2 -0
  365. package/dist/components/Result.d.mts +64 -0
  366. package/dist/components/Result.d.ts +64 -0
  367. package/dist/components/Result.js +18 -0
  368. package/dist/components/Result.mjs +3 -0
  369. package/dist/components/RichTextEditor.d.mts +107 -0
  370. package/dist/components/RichTextEditor.d.ts +107 -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 +61 -0
  376. package/dist/components/Segmented.d.ts +61 -0
  377. package/dist/components/Segmented.js +17 -0
  378. package/dist/components/Segmented.mjs +2 -0
  379. package/dist/components/Select.d.mts +47 -0
  380. package/dist/components/Select.d.ts +47 -0
  381. package/dist/components/Select.js +3 -3
  382. package/dist/components/Select.mjs +1 -1
  383. package/dist/components/Splitter.d.mts +99 -0
  384. package/dist/components/Splitter.d.ts +99 -0
  385. package/dist/components/Splitter.js +17 -0
  386. package/dist/components/Splitter.mjs +2 -0
  387. package/dist/components/Statistic.d.mts +76 -0
  388. package/dist/components/Statistic.d.ts +76 -0
  389. package/dist/components/Statistic.js +17 -0
  390. package/dist/components/Statistic.mjs +2 -0
  391. package/dist/components/Stepper.d.mts +79 -0
  392. package/dist/components/Stepper.d.ts +79 -0
  393. package/dist/components/Stepper.js +17 -0
  394. package/dist/components/Stepper.mjs +2 -0
  395. package/dist/components/StepsItem.d.mts +1 -1
  396. package/dist/components/StepsItem.d.ts +1 -1
  397. package/dist/components/SubMenu.d.mts +1 -1
  398. package/dist/components/SubMenu.d.ts +1 -1
  399. package/dist/components/SunburstChart.d.mts +203 -0
  400. package/dist/components/SunburstChart.d.ts +203 -0
  401. package/dist/components/SunburstChart.js +22 -0
  402. package/dist/components/SunburstChart.mjs +7 -0
  403. package/dist/components/TabPane.js +4 -4
  404. package/dist/components/TabPane.mjs +2 -2
  405. package/dist/components/Table.d.mts +127 -4
  406. package/dist/components/Table.d.ts +127 -4
  407. package/dist/components/Table.js +3 -3
  408. package/dist/components/Table.mjs +1 -1
  409. package/dist/components/Tabs.d.mts +20 -0
  410. package/dist/components/Tabs.d.ts +20 -0
  411. package/dist/components/Tabs.js +4 -4
  412. package/dist/components/Tabs.mjs +1 -1
  413. package/dist/components/TaskBoard.d.mts +1 -1
  414. package/dist/components/TaskBoard.d.ts +1 -1
  415. package/dist/components/TaskBoard.js +4 -4
  416. package/dist/components/TaskBoard.mjs +2 -2
  417. package/dist/components/TimePicker.js +4 -3
  418. package/dist/components/TimePicker.mjs +2 -1
  419. package/dist/components/Tooltip.d.mts +13 -13
  420. package/dist/components/Tooltip.d.ts +13 -13
  421. package/dist/components/Tooltip.js +4 -4
  422. package/dist/components/Tooltip.mjs +2 -2
  423. package/dist/components/Tour.d.mts +109 -0
  424. package/dist/components/Tour.d.ts +109 -0
  425. package/dist/components/Tour.js +18 -0
  426. package/dist/components/Tour.mjs +3 -0
  427. package/dist/components/Transfer.d.mts +97 -0
  428. package/dist/components/Transfer.d.ts +97 -0
  429. package/dist/components/Transfer.js +17 -0
  430. package/dist/components/Transfer.mjs +2 -0
  431. package/dist/components/Tree.d.mts +34 -3
  432. package/dist/components/Tree.d.ts +34 -3
  433. package/dist/components/Tree.js +3 -3
  434. package/dist/components/Tree.mjs +1 -1
  435. package/dist/components/TreeMapChart.d.mts +212 -0
  436. package/dist/components/TreeMapChart.d.ts +212 -0
  437. package/dist/components/TreeMapChart.js +22 -0
  438. package/dist/components/TreeMapChart.mjs +7 -0
  439. package/dist/components/TreeSelect.d.mts +106 -0
  440. package/dist/components/TreeSelect.d.ts +106 -0
  441. package/dist/components/TreeSelect.js +17 -0
  442. package/dist/components/TreeSelect.mjs +2 -0
  443. package/dist/components/Upload.js +4 -4
  444. package/dist/components/Upload.mjs +2 -2
  445. package/dist/components/VirtualList.d.mts +49 -0
  446. package/dist/components/VirtualList.d.ts +49 -0
  447. package/dist/components/VirtualList.js +17 -0
  448. package/dist/components/VirtualList.mjs +2 -0
  449. package/dist/components/VirtualTable.d.mts +157 -0
  450. package/dist/components/VirtualTable.d.ts +157 -0
  451. package/dist/components/VirtualTable.js +17 -0
  452. package/dist/components/VirtualTable.mjs +2 -0
  453. package/dist/components/Watermark.d.mts +144 -0
  454. package/dist/components/Watermark.d.ts +144 -0
  455. package/dist/components/Watermark.js +17 -0
  456. package/dist/components/Watermark.mjs +2 -0
  457. package/dist/index.d.mts +75 -2
  458. package/dist/index.d.ts +75 -2
  459. package/dist/index.js +448 -163
  460. package/dist/index.mjs +186 -61
  461. package/package.json +2 -2
  462. package/dist/chunk-VURU7TLN.mjs +0 -203
  463. package/dist/chunk-WC4B72TZ.js +0 -206
  464. package/dist/{chunk-GCKACSWD.js → chunk-2J54DRDA.js} +2 -2
  465. package/dist/{chunk-TGLAMZ4N.js → chunk-35VYCSVH.js} +2 -2
  466. package/dist/{chunk-OO5UMN5M.js → chunk-5NOZXKMU.js} +2 -2
  467. package/dist/{chunk-IIU6FINW.mjs → chunk-FK2XBMC3.mjs} +1 -1
  468. package/dist/{chunk-ZLYXAZUY.mjs → chunk-HFCVHAQ6.mjs} +2 -2
  469. package/dist/{chunk-P2ASDGNV.mjs → chunk-MYFQ3B2D.mjs} +2 -2
  470. package/dist/{chunk-DATFV22V.mjs → chunk-NVJRZYES.mjs} +1 -1
  471. package/dist/{chunk-3L36R3UN.js → chunk-THEYWGOT.js} +1 -1
  472. package/dist/{chunk-LDN2MZEU.mjs → chunk-TYFUO6PE.mjs} +2 -2
  473. package/dist/{chunk-BS45PHVI.mjs → chunk-UNR5RUET.mjs} +2 -2
  474. package/dist/{chunk-R7S7O3YU.js → chunk-VITTXNTD.js} +1 -1
  475. package/dist/{chunk-4NSRGKRB.js → chunk-W5A4E4C7.js} +2 -2
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkBFNHRBWN_js = require('./chunk-BFNHRBWN.js');
3
+ var chunk2WZGK7XJ_js = require('./chunk-2WZGK7XJ.js');
4
4
  var vue = require('vue');
5
5
  var tigercatCore = require('@expcat/tigercat-core');
6
6
 
@@ -9,10 +9,10 @@ var Popover = vue.defineComponent({
9
9
  name: "TigerPopover",
10
10
  inheritAttrs: false,
11
11
  props: {
12
- /** Whether the popover is visible (controlled mode) */
13
- visible: { type: Boolean, default: void 0 },
14
- /** Default visibility (uncontrolled mode) */
15
- defaultVisible: { type: Boolean, default: false },
12
+ /** Whether the popover is open (controlled mode) */
13
+ open: { type: Boolean, default: void 0 },
14
+ /** Default open state (uncontrolled mode) */
15
+ defaultOpen: { type: Boolean, default: false },
16
16
  /** Popover title text */
17
17
  title: { type: String, default: void 0 },
18
18
  /** Popover content text */
@@ -31,7 +31,7 @@ var Popover = vue.defineComponent({
31
31
  className: { type: String, default: void 0 },
32
32
  style: { type: [String, Object, Array], default: void 0 }
33
33
  },
34
- emits: ["update:visible", "visible-change"],
34
+ emits: ["update:open", "open-change"],
35
35
  setup(props, { slots, emit, attrs }) {
36
36
  const attrsRecord = attrs;
37
37
  const {
@@ -41,7 +41,7 @@ var Popover = vue.defineComponent({
41
41
  floatingRef,
42
42
  floatingStyles,
43
43
  triggerHandlers
44
- } = chunkBFNHRBWN_js.useFloatingPopup({ props, emit });
44
+ } = chunk2WZGK7XJ_js.useFloatingPopup({ props, emit });
45
45
  const popoverId = createPopoverId();
46
46
  const titleId = `${popoverId}-title`;
47
47
  const contentId = `${popoverId}-content`;
@@ -82,35 +82,31 @@ var Popover = vue.defineComponent({
82
82
  defaultSlot
83
83
  ),
84
84
  // Floating content
85
- currentVisible.value ? vue.h(
86
- "div",
87
- { ref: floatingRef, style: floatingStyles.value, "aria-hidden": false },
88
- [
89
- vue.h(
90
- "div",
91
- {
92
- id: popoverId,
93
- role: "dialog",
94
- "aria-modal": "false",
95
- "aria-labelledby": hasTitle ? titleId : void 0,
96
- "aria-describedby": hasContent ? contentId : void 0,
97
- class: contentClasses.value
98
- },
99
- [
100
- hasTitle && vue.h(
101
- "div",
102
- { id: titleId, class: tigercatCore.POPOVER_TITLE_CLASSES },
103
- slots.title ? slots.title() : props.title
104
- ),
105
- hasContent && vue.h(
106
- "div",
107
- { id: contentId, class: tigercatCore.POPOVER_TEXT_CLASSES },
108
- slots.content ? slots.content() : props.content
109
- )
110
- ].filter(Boolean)
111
- )
112
- ]
113
- ) : null
85
+ currentVisible.value ? vue.h("div", { ref: floatingRef, style: floatingStyles.value, "aria-hidden": false }, [
86
+ vue.h(
87
+ "div",
88
+ {
89
+ id: popoverId,
90
+ role: "dialog",
91
+ "aria-modal": "false",
92
+ "aria-labelledby": hasTitle ? titleId : void 0,
93
+ "aria-describedby": hasContent ? contentId : void 0,
94
+ class: contentClasses.value
95
+ },
96
+ [
97
+ hasTitle && vue.h(
98
+ "div",
99
+ { id: titleId, class: tigercatCore.POPOVER_TITLE_CLASSES },
100
+ slots.title ? slots.title() : props.title
101
+ ),
102
+ hasContent && vue.h(
103
+ "div",
104
+ { id: contentId, class: tigercatCore.POPOVER_TEXT_CLASSES },
105
+ slots.content ? slots.content() : props.content
106
+ )
107
+ ].filter(Boolean)
108
+ )
109
+ ]) : null
114
110
  ]
115
111
  );
116
112
  };
@@ -0,0 +1,143 @@
1
+ import { defineComponent, ref, computed, h } from 'vue';
2
+ import { calculateVirtualRange, classNames, getVirtualTableContainerClasses, coerceClassValue, virtualTableHeaderCellClasses, virtualTableHeaderClasses, getVirtualRowKey, virtualTableCellClasses, getVirtualTableRowClasses, virtualTableEmptyClasses, virtualTableLoadingClasses } from '@expcat/tigercat-core';
3
+
4
+ // src/components/VirtualTable.ts
5
+ var VirtualTable = defineComponent({
6
+ name: "TigerVirtualTable",
7
+ inheritAttrs: false,
8
+ props: {
9
+ data: {
10
+ type: Array,
11
+ default: () => []
12
+ },
13
+ columns: {
14
+ type: Array,
15
+ default: () => []
16
+ },
17
+ rowHeight: { type: Number, default: 48 },
18
+ height: { type: Number, default: 400 },
19
+ overscan: { type: Number, default: 5 },
20
+ stickyHeader: { type: Boolean, default: true },
21
+ rowKey: {
22
+ type: [String, Function],
23
+ default: void 0
24
+ },
25
+ loading: { type: Boolean, default: false },
26
+ emptyText: { type: String, default: "No data" },
27
+ selectable: { type: Boolean, default: false },
28
+ selectedKeys: {
29
+ type: Array,
30
+ default: () => []
31
+ },
32
+ striped: { type: Boolean, default: false },
33
+ bordered: { type: Boolean, default: false },
34
+ className: { type: String, default: void 0 }
35
+ },
36
+ emits: ["row-click", "select"],
37
+ setup(props, { emit, attrs }) {
38
+ const containerRef = ref(null);
39
+ const scrollTop = ref(0);
40
+ const range = computed(
41
+ () => calculateVirtualRange(
42
+ scrollTop.value,
43
+ props.height,
44
+ props.data.length,
45
+ props.rowHeight,
46
+ props.overscan
47
+ )
48
+ );
49
+ const visibleData = computed(() => props.data.slice(range.value.start, range.value.end));
50
+ function onScroll() {
51
+ if (containerRef.value) {
52
+ scrollTop.value = containerRef.value.scrollTop;
53
+ }
54
+ }
55
+ const containerClasses = computed(
56
+ () => classNames(
57
+ getVirtualTableContainerClasses(props.bordered, props.className),
58
+ coerceClassValue(attrs.class)
59
+ )
60
+ );
61
+ const selectedSet = computed(() => new Set(props.selectedKeys));
62
+ return () => {
63
+ const headerCells = props.columns.map(
64
+ (col) => h(
65
+ "th",
66
+ {
67
+ key: col.key,
68
+ class: virtualTableHeaderCellClasses,
69
+ style: col.width ? { width: typeof col.width === "number" ? `${col.width}px` : col.width } : void 0
70
+ },
71
+ col.title ?? ""
72
+ )
73
+ );
74
+ const headerRow = h("tr", {}, headerCells);
75
+ const thead = h(
76
+ "thead",
77
+ { class: props.stickyHeader ? virtualTableHeaderClasses : void 0 },
78
+ [headerRow]
79
+ );
80
+ const rows = visibleData.value.map((row, localIdx) => {
81
+ const globalIdx = range.value.start + localIdx;
82
+ const key = getVirtualRowKey(
83
+ row,
84
+ globalIdx,
85
+ props.rowKey
86
+ );
87
+ const isSelected = selectedSet.value.has(key);
88
+ const cells = props.columns.map(
89
+ (col) => h(
90
+ "td",
91
+ {
92
+ key: col.key,
93
+ class: virtualTableCellClasses
94
+ },
95
+ String(row[col.key] ?? "")
96
+ )
97
+ );
98
+ return h(
99
+ "tr",
100
+ {
101
+ key,
102
+ class: getVirtualTableRowClasses(globalIdx, props.striped, isSelected),
103
+ onClick: () => {
104
+ emit("row-click", row, globalIdx);
105
+ if (props.selectable) emit("select", key, row, globalIdx);
106
+ }
107
+ },
108
+ cells
109
+ );
110
+ });
111
+ const topSpacer = h("tr", {
112
+ key: "__top-spacer",
113
+ style: { height: `${range.value.offsetTop}px` },
114
+ "aria-hidden": true
115
+ });
116
+ const bottomHeight = range.value.totalHeight - range.value.end * props.rowHeight;
117
+ const bottomSpacer = bottomHeight > 0 ? h("tr", {
118
+ key: "__bottom-spacer",
119
+ style: { height: `${bottomHeight}px` },
120
+ "aria-hidden": true
121
+ }) : null;
122
+ const tbody = h("tbody", {}, [topSpacer, ...rows, bottomSpacer]);
123
+ const table = h("table", { class: "w-full table-fixed" }, [thead, tbody]);
124
+ const emptyEl = props.data.length === 0 && !props.loading ? h("div", { class: virtualTableEmptyClasses }, props.emptyText) : null;
125
+ const loadingEl = props.loading ? h("div", { class: virtualTableLoadingClasses }, "Loading...") : null;
126
+ return h(
127
+ "div",
128
+ {
129
+ ref: containerRef,
130
+ class: containerClasses.value,
131
+ style: { height: `${props.height}px` },
132
+ onScroll,
133
+ role: "grid",
134
+ "aria-rowcount": props.data.length
135
+ },
136
+ [table, emptyEl, loadingEl]
137
+ );
138
+ };
139
+ }
140
+ });
141
+ var VirtualTable_default = VirtualTable;
142
+
143
+ export { VirtualTable, VirtualTable_default };
@@ -68,6 +68,15 @@ var Tabs = defineComponent({
68
68
  type: Boolean,
69
69
  default: false
70
70
  },
71
+ /**
72
+ * Whether to lazily render tab panes (only render when first activated)
73
+ * @default false
74
+ * @since 0.6.0
75
+ */
76
+ lazy: {
77
+ type: Boolean,
78
+ default: false
79
+ },
71
80
  /**
72
81
  * Additional CSS classes
73
82
  */
@@ -132,6 +141,9 @@ var Tabs = defineComponent({
132
141
  get destroyInactiveTabPane() {
133
142
  return props.destroyInactiveTabPane;
134
143
  },
144
+ get lazy() {
145
+ return props.lazy;
146
+ },
135
147
  idBase,
136
148
  handleTabClick,
137
149
  handleTabClose
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var tigercatCore = require('@expcat/tigercat-core');
5
+
6
+ // src/components/Affix.ts
7
+ var Affix = vue.defineComponent({
8
+ name: "TigerAffix",
9
+ inheritAttrs: false,
10
+ props: {
11
+ offsetTop: { type: Number, default: 0 },
12
+ offsetBottom: { type: Number, default: void 0 },
13
+ target: { type: String, default: void 0 },
14
+ zIndex: { type: Number, default: 10 },
15
+ className: { type: String, default: void 0 },
16
+ style: {
17
+ type: Object,
18
+ default: void 0
19
+ }
20
+ },
21
+ emits: ["change"],
22
+ setup(props, { slots, emit, attrs }) {
23
+ const wrapperRef = vue.ref(null);
24
+ const placeholderRef = vue.ref(null);
25
+ const state = vue.ref({ affixed: false, style: {} });
26
+ const originalRect = vue.ref(
27
+ null
28
+ );
29
+ const update = () => {
30
+ if (!wrapperRef.value) return;
31
+ const el = state.value.affixed && placeholderRef.value ? placeholderRef.value : wrapperRef.value;
32
+ const rect = el.getBoundingClientRect();
33
+ if (!originalRect.value || !state.value.affixed) {
34
+ originalRect.value = {
35
+ top: rect.top,
36
+ left: rect.left,
37
+ width: rect.width,
38
+ height: rect.height
39
+ };
40
+ }
41
+ const resolved = tigercatCore.resolveAffixTarget(props.target);
42
+ const containerRect = resolved.getRect();
43
+ const newState = tigercatCore.calculateAffixState(
44
+ originalRect.value,
45
+ containerRect,
46
+ props.offsetBottom !== void 0 ? void 0 : props.offsetTop,
47
+ props.offsetBottom,
48
+ props.zIndex
49
+ );
50
+ if (newState.affixed !== state.value.affixed) {
51
+ emit("change", newState.affixed);
52
+ }
53
+ state.value = newState;
54
+ };
55
+ let scrollTarget = null;
56
+ vue.onMounted(() => {
57
+ const resolved = tigercatCore.resolveAffixTarget(props.target);
58
+ scrollTarget = resolved.element;
59
+ scrollTarget.addEventListener("scroll", update, { passive: true });
60
+ window.addEventListener("resize", update, { passive: true });
61
+ update();
62
+ });
63
+ vue.onBeforeUnmount(() => {
64
+ scrollTarget?.removeEventListener("scroll", update);
65
+ window.removeEventListener("resize", update);
66
+ });
67
+ return () => {
68
+ const attrsRecord = attrs;
69
+ const children = slots.default?.();
70
+ if (state.value.affixed) {
71
+ return vue.h("div", { ref: placeholderRef }, [
72
+ vue.h("div", {
73
+ style: {
74
+ width: `${originalRect.value?.width ?? 0}px`,
75
+ height: `${originalRect.value?.height ?? 0}px`
76
+ }
77
+ }),
78
+ vue.h(
79
+ "div",
80
+ {
81
+ ref: wrapperRef,
82
+ ...attrs,
83
+ class: tigercatCore.classNames(props.className, tigercatCore.coerceClassValue(attrsRecord.class)),
84
+ style: tigercatCore.mergeStyleValues(state.value.style, props.style)
85
+ },
86
+ children
87
+ )
88
+ ]);
89
+ }
90
+ return vue.h(
91
+ "div",
92
+ {
93
+ ref: wrapperRef,
94
+ ...attrs,
95
+ class: tigercatCore.classNames(props.className, tigercatCore.coerceClassValue(attrsRecord.class)),
96
+ style: tigercatCore.mergeStyleValues(attrsRecord.style, props.style)
97
+ },
98
+ children
99
+ );
100
+ };
101
+ }
102
+ });
103
+ var Affix_default = Affix;
104
+
105
+ exports.Affix = Affix;
106
+ exports.Affix_default = Affix_default;
@@ -0,0 +1,265 @@
1
+ import { defineComponent, ref, watch, onMounted, onBeforeUnmount, h } from 'vue';
2
+ import { imageViewerCounterClasses, imageViewerCloseBtnClasses, imageViewerIcons, classNames, imageViewerNavBtnClasses, imageViewerImgClasses, imageViewerToolbarBtnClasses, imageViewerToolbarClasses, imageViewerBackdropClasses, coerceClassValue, clampZoom, normalizeRotation } from '@expcat/tigercat-core';
3
+
4
+ // src/components/ImageViewer.ts
5
+ function createSvgIcon(pathD, label) {
6
+ return h(
7
+ "svg",
8
+ {
9
+ class: "w-5 h-5",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none",
12
+ stroke: "currentColor",
13
+ "stroke-width": "2",
14
+ "stroke-linecap": "round",
15
+ "stroke-linejoin": "round",
16
+ "aria-label": label
17
+ },
18
+ [h("path", { d: pathD })]
19
+ );
20
+ }
21
+ var ImageViewer = defineComponent({
22
+ name: "TigerImageViewer",
23
+ inheritAttrs: false,
24
+ props: {
25
+ images: {
26
+ type: Array,
27
+ required: true
28
+ },
29
+ open: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ currentIndex: {
34
+ type: Number,
35
+ default: 0
36
+ },
37
+ zoomable: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ rotatable: {
42
+ type: Boolean,
43
+ default: true
44
+ },
45
+ showNav: {
46
+ type: Boolean,
47
+ default: true
48
+ },
49
+ showCounter: {
50
+ type: Boolean,
51
+ default: true
52
+ },
53
+ maskClosable: {
54
+ type: Boolean,
55
+ default: true
56
+ },
57
+ minZoom: {
58
+ type: Number,
59
+ default: 0.5
60
+ },
61
+ maxZoom: {
62
+ type: Number,
63
+ default: 3
64
+ },
65
+ className: {
66
+ type: String,
67
+ default: void 0
68
+ }
69
+ },
70
+ emits: ["update:open", "update:currentIndex", "close"],
71
+ setup(props, { emit, attrs }) {
72
+ const index = ref(props.currentIndex);
73
+ const zoom = ref(1);
74
+ const rotation = ref(0);
75
+ watch(
76
+ () => props.currentIndex,
77
+ (val) => {
78
+ index.value = val;
79
+ }
80
+ );
81
+ const handleClose = () => {
82
+ emit("update:open", false);
83
+ emit("close");
84
+ };
85
+ const handlePrev = () => {
86
+ index.value = (index.value - 1 + props.images.length) % props.images.length;
87
+ zoom.value = 1;
88
+ rotation.value = 0;
89
+ emit("update:currentIndex", index.value);
90
+ };
91
+ const handleNext = () => {
92
+ index.value = (index.value + 1) % props.images.length;
93
+ zoom.value = 1;
94
+ rotation.value = 0;
95
+ emit("update:currentIndex", index.value);
96
+ };
97
+ const handleZoomIn = () => {
98
+ zoom.value = clampZoom(zoom.value + 0.25, props.minZoom, props.maxZoom);
99
+ };
100
+ const handleZoomOut = () => {
101
+ zoom.value = clampZoom(zoom.value - 0.25, props.minZoom, props.maxZoom);
102
+ };
103
+ const handleRotateLeft = () => {
104
+ rotation.value = normalizeRotation(rotation.value - 90);
105
+ };
106
+ const handleRotateRight = () => {
107
+ rotation.value = normalizeRotation(rotation.value + 90);
108
+ };
109
+ const handleKeydown = (e) => {
110
+ if (!props.open) return;
111
+ switch (e.key) {
112
+ case "Escape":
113
+ handleClose();
114
+ break;
115
+ case "ArrowLeft":
116
+ handlePrev();
117
+ break;
118
+ case "ArrowRight":
119
+ handleNext();
120
+ break;
121
+ }
122
+ };
123
+ onMounted(() => {
124
+ document.addEventListener("keydown", handleKeydown);
125
+ });
126
+ onBeforeUnmount(() => {
127
+ document.removeEventListener("keydown", handleKeydown);
128
+ });
129
+ return () => {
130
+ if (!props.open || props.images.length === 0) return null;
131
+ const children = [];
132
+ if (props.showCounter && props.images.length > 1) {
133
+ children.push(
134
+ h(
135
+ "div",
136
+ { class: imageViewerCounterClasses },
137
+ `${index.value + 1} / ${props.images.length}`
138
+ )
139
+ );
140
+ }
141
+ children.push(
142
+ h(
143
+ "button",
144
+ {
145
+ class: imageViewerCloseBtnClasses,
146
+ onClick: handleClose,
147
+ "aria-label": "Close",
148
+ type: "button"
149
+ },
150
+ createSvgIcon(imageViewerIcons.close, "Close")
151
+ )
152
+ );
153
+ if (props.showNav && props.images.length > 1) {
154
+ children.push(
155
+ h(
156
+ "button",
157
+ {
158
+ class: classNames(imageViewerNavBtnClasses, "left-4"),
159
+ onClick: handlePrev,
160
+ "aria-label": "Previous image",
161
+ type: "button"
162
+ },
163
+ createSvgIcon(imageViewerIcons.prev, "Previous")
164
+ ),
165
+ h(
166
+ "button",
167
+ {
168
+ class: classNames(imageViewerNavBtnClasses, "right-4"),
169
+ onClick: handleNext,
170
+ "aria-label": "Next image",
171
+ type: "button"
172
+ },
173
+ createSvgIcon(imageViewerIcons.next, "Next")
174
+ )
175
+ );
176
+ }
177
+ children.push(
178
+ h("img", {
179
+ class: imageViewerImgClasses,
180
+ src: props.images[index.value],
181
+ alt: `Image ${index.value + 1}`,
182
+ style: {
183
+ transform: `scale(${zoom.value}) rotate(${rotation.value}deg)`
184
+ },
185
+ draggable: false
186
+ })
187
+ );
188
+ const toolbarButtons = [];
189
+ if (props.zoomable) {
190
+ toolbarButtons.push(
191
+ h(
192
+ "button",
193
+ {
194
+ class: imageViewerToolbarBtnClasses,
195
+ onClick: handleZoomOut,
196
+ "aria-label": "Zoom out",
197
+ type: "button"
198
+ },
199
+ createSvgIcon(imageViewerIcons.zoomOut, "Zoom out")
200
+ ),
201
+ h(
202
+ "button",
203
+ {
204
+ class: imageViewerToolbarBtnClasses,
205
+ onClick: handleZoomIn,
206
+ "aria-label": "Zoom in",
207
+ type: "button"
208
+ },
209
+ createSvgIcon(imageViewerIcons.zoomIn, "Zoom in")
210
+ )
211
+ );
212
+ }
213
+ if (props.rotatable) {
214
+ toolbarButtons.push(
215
+ h(
216
+ "button",
217
+ {
218
+ class: imageViewerToolbarBtnClasses,
219
+ onClick: handleRotateLeft,
220
+ "aria-label": "Rotate left",
221
+ type: "button"
222
+ },
223
+ createSvgIcon(imageViewerIcons.rotateLeft, "Rotate left")
224
+ ),
225
+ h(
226
+ "button",
227
+ {
228
+ class: imageViewerToolbarBtnClasses,
229
+ onClick: handleRotateRight,
230
+ "aria-label": "Rotate right",
231
+ type: "button"
232
+ },
233
+ createSvgIcon(imageViewerIcons.rotateRight, "Rotate right")
234
+ )
235
+ );
236
+ }
237
+ if (toolbarButtons.length > 0) {
238
+ children.push(h("div", { class: imageViewerToolbarClasses }, toolbarButtons));
239
+ }
240
+ return h(
241
+ "div",
242
+ {
243
+ ...attrs,
244
+ class: classNames(
245
+ imageViewerBackdropClasses,
246
+ props.className,
247
+ coerceClassValue(attrs.class)
248
+ ),
249
+ role: "dialog",
250
+ "aria-modal": "true",
251
+ "aria-label": "Image viewer",
252
+ onClick: (e) => {
253
+ if (props.maskClosable && e.target === e.currentTarget) {
254
+ handleClose();
255
+ }
256
+ }
257
+ },
258
+ children
259
+ );
260
+ };
261
+ }
262
+ });
263
+ var ImageViewer_default = ImageViewer;
264
+
265
+ export { ImageViewer, ImageViewer_default };