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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (609) hide show
  1. package/dist/{chunk-MF7BKYGN.mjs → chunk-2QWGVJW6.mjs} +29 -15
  2. package/dist/{chunk-WWB7VKKH.mjs → chunk-36WSYHJU.mjs} +53 -7
  3. package/dist/chunk-4RKBXGHQ.mjs +52 -0
  4. package/dist/{chunk-ALFEFDVG.mjs → chunk-4ZKSTL5P.mjs} +47 -21
  5. package/dist/{chunk-YZP4K6KI.mjs → chunk-6BDDX2R4.mjs} +9 -9
  6. package/dist/{chunk-Y4V7BOVR.mjs → chunk-6TTICJR4.mjs} +9 -7
  7. package/dist/{chunk-S4Z77VIB.mjs → chunk-AZXS4QWC.mjs} +8 -8
  8. package/dist/{chunk-RD2NFAB6.mjs → chunk-BGO2ILHM.mjs} +9 -9
  9. package/dist/{chunk-6CS3EEQU.mjs → chunk-BNNTDSLJ.mjs} +83 -0
  10. package/dist/{chunk-5CHHWMES.mjs → chunk-DOVBKVTB.mjs} +1 -1
  11. package/dist/chunk-ESBUNMIG.mjs +49 -0
  12. package/dist/{chunk-KJ6VISRW.mjs → chunk-EUSODI5E.mjs} +1 -1
  13. package/dist/{chunk-LHOSPU6V.mjs → chunk-FDKJOVXG.mjs} +9 -18
  14. package/dist/{chunk-LHZ5MRFQ.mjs → chunk-FHJ3R57L.mjs} +9 -9
  15. package/dist/{chunk-PMN2MQ26.mjs → chunk-FIVVKBBF.mjs} +3 -3
  16. package/dist/{chunk-JGW7R7AZ.mjs → chunk-G7MOTNJO.mjs} +8 -8
  17. package/dist/{chunk-WSUCJHJX.mjs → chunk-GAEO66NY.mjs} +2 -2
  18. package/dist/chunk-GMIKUE67.mjs +201 -0
  19. package/dist/chunk-GTFAC625.mjs +120 -0
  20. package/dist/{chunk-LSWTZHBV.mjs → chunk-HGXD57QM.mjs} +23 -2
  21. package/dist/{chunk-X43QLJ5E.mjs → chunk-IGT4QB7O.mjs} +4 -4
  22. package/dist/{chunk-3VFZB5ZK.mjs → chunk-IQNZ4UEA.mjs} +10 -13
  23. package/dist/{chunk-QH3YF5B6.mjs → chunk-JMVALNIO.mjs} +52 -25
  24. package/dist/{chunk-UTGFGMZT.mjs → chunk-JPCMI3A4.mjs} +8 -8
  25. package/dist/{chunk-SMCOBLF6.mjs → chunk-KBJANUZZ.mjs} +6 -6
  26. package/dist/{chunk-M4EP4OVR.mjs → chunk-KE6RGD4Y.mjs} +2 -1
  27. package/dist/chunk-KIPTVKU2.mjs +104 -0
  28. package/dist/{chunk-LGDJDBE3.mjs → chunk-KR3D2JOA.mjs} +4 -7
  29. package/dist/{chunk-VYBRLIKF.mjs → chunk-MJRFB6ZA.mjs} +8 -8
  30. package/dist/{chunk-UKMOWUYH.mjs → chunk-MYKKKVGK.mjs} +2 -2
  31. package/dist/{chunk-3AF4VRCD.mjs → chunk-N3C6YI7I.mjs} +8 -8
  32. package/dist/{chunk-57VPT3MN.mjs → chunk-NYWIBDO6.mjs} +8 -8
  33. package/dist/{chunk-PJX2DHO5.mjs → chunk-O4F75KHL.mjs} +8 -8
  34. package/dist/{chunk-CIDINFA2.mjs → chunk-ODDPVS27.mjs} +35 -10
  35. package/dist/{chunk-64EZRIJL.mjs → chunk-QD5ZCKPR.mjs} +1 -1
  36. package/dist/{chunk-4RK5BDGR.mjs → chunk-RAO7ZJWR.mjs} +9 -9
  37. package/dist/{chunk-G2LB4QCL.mjs → chunk-SPFL55TF.mjs} +4 -4
  38. package/dist/{chunk-6OQLZCQK.mjs → chunk-SYRRMZT2.mjs} +1 -1
  39. package/dist/{chunk-IJL7YYT7.mjs → chunk-TQDN67YN.mjs} +29 -3
  40. package/dist/{chunk-SC3WTLKG.mjs → chunk-UD4FNMJN.mjs} +22 -5
  41. package/dist/{chunk-CVFXUYH2.mjs → chunk-VFUBOKGT.mjs} +4 -4
  42. package/dist/{chunk-XMGNMKWW.mjs → chunk-VMYV5EWI.mjs} +4 -3
  43. package/dist/{chunk-OSPHI5TV.mjs → chunk-W7X5ZHJ3.mjs} +4 -9
  44. package/dist/{chunk-TRN5PL5D.mjs → chunk-WYJ5WOT2.mjs} +28 -12
  45. package/dist/chunk-Y2HO4IBQ.mjs +150 -0
  46. package/dist/{chunk-XJ5VGC5V.mjs → chunk-YJSWHGAR.mjs} +24 -10
  47. package/dist/{chunk-N2QGYEOQ.mjs → chunk-YSKG5FSX.mjs} +1 -1
  48. package/dist/{chunk-BRGQXIKA.mjs → chunk-Z4NJJ7NI.mjs} +9 -9
  49. package/dist/components/ActivityFeed.mjs +3 -3
  50. package/dist/components/AreaChart.d.mts +6 -6
  51. package/dist/components/AreaChart.mjs +5 -5
  52. package/dist/components/AutoComplete.d.mts +28 -9
  53. package/dist/components/AutoComplete.mjs +1 -1
  54. package/dist/components/BackTop.d.mts +28 -1
  55. package/dist/components/BackTop.mjs +1 -1
  56. package/dist/components/BarChart.mjs +5 -5
  57. package/dist/components/Breadcrumb.d.mts +1 -1
  58. package/dist/components/Card.d.mts +7 -7
  59. package/dist/components/Carousel.d.mts +24 -7
  60. package/dist/components/Carousel.mjs +1 -1
  61. package/dist/components/Cascader.d.mts +38 -16
  62. package/dist/components/Cascader.mjs +1 -1
  63. package/dist/components/ChartTooltip.d.mts +4 -4
  64. package/dist/components/ChartTooltip.mjs +1 -1
  65. package/dist/components/ChatWindow.mjs +1 -1
  66. package/dist/components/Checkbox.d.mts +8 -8
  67. package/dist/components/Checkbox.mjs +1 -1
  68. package/dist/components/CheckboxGroup.d.mts +8 -8
  69. package/dist/components/ColorPicker.d.mts +4 -4
  70. package/dist/components/ColorSwatch.d.mts +4 -4
  71. package/dist/components/CommentThread.mjs +1 -1
  72. package/dist/components/CropUpload.mjs +2 -2
  73. package/dist/components/DataTableWithToolbar.d.mts +1 -11
  74. package/dist/components/DataTableWithToolbar.mjs +8 -8
  75. package/dist/components/DatePicker.d.mts +7 -7
  76. package/dist/components/DatePicker.mjs +1 -1
  77. package/dist/components/Descriptions.d.mts +7 -7
  78. package/dist/components/DonutChart.d.mts +11 -11
  79. package/dist/components/DonutChart.mjs +5 -5
  80. package/dist/components/Drawer.d.mts +8 -27
  81. package/dist/components/Drawer.mjs +1 -1
  82. package/dist/components/Dropdown.d.mts +69 -2
  83. package/dist/components/Dropdown.mjs +3 -1
  84. package/dist/components/FloatButton.d.mts +31 -1
  85. package/dist/components/FloatButton.mjs +1 -1
  86. package/dist/components/Form.d.mts +8 -8
  87. package/dist/components/FormItem.d.mts +4 -4
  88. package/dist/components/FunnelChart.mjs +4 -4
  89. package/dist/components/GaugeChart.mjs +2 -2
  90. package/dist/components/HeatmapChart.mjs +3 -3
  91. package/dist/components/Image.mjs +3 -3
  92. package/dist/components/ImageGroup.d.mts +2 -2
  93. package/dist/components/ImageGroup.mjs +2 -2
  94. package/dist/components/ImagePreview.d.mts +22 -12
  95. package/dist/components/ImagePreview.mjs +1 -1
  96. package/dist/components/ImageViewer.d.mts +6 -16
  97. package/dist/components/ImageViewer.mjs +1 -1
  98. package/dist/components/Input.d.mts +5 -5
  99. package/dist/components/InputGroup.d.mts +6 -6
  100. package/dist/components/InputNumber.d.mts +5 -5
  101. package/dist/components/LineChart.mjs +5 -5
  102. package/dist/components/List.d.mts +7 -7
  103. package/dist/components/Menu.d.mts +5 -5
  104. package/dist/components/Message.d.mts +4 -39
  105. package/dist/components/Message.mjs +139 -4
  106. package/dist/components/{Message.d.ts → MessageContainer.d.mts} +5 -18
  107. package/dist/components/MessageContainer.mjs +9 -0
  108. package/dist/components/MessageRoot.d.mts +9 -0
  109. package/dist/components/MessageRoot.mjs +6 -0
  110. package/dist/components/Modal.d.mts +2 -20
  111. package/dist/components/Modal.mjs +1 -1
  112. package/dist/components/Notification.d.mts +4 -29
  113. package/dist/components/Notification.mjs +189 -4
  114. package/dist/components/{Notification.d.ts → NotificationContainer.d.mts} +15 -17
  115. package/dist/components/NotificationContainer.mjs +9 -0
  116. package/dist/components/NotificationRoot.d.mts +9 -0
  117. package/dist/components/NotificationRoot.mjs +6 -0
  118. package/dist/components/PieChart.mjs +4 -4
  119. package/dist/components/Popconfirm.mjs +2 -2
  120. package/dist/components/Popover.mjs +2 -2
  121. package/dist/components/RadarChart.mjs +4 -4
  122. package/dist/components/Radio.d.mts +15 -15
  123. package/dist/components/Radio.mjs +2 -2
  124. package/dist/components/RadioGroup.d.mts +16 -16
  125. package/dist/components/RadioGroup.mjs +1 -1
  126. package/dist/components/ScatterChart.mjs +5 -5
  127. package/dist/components/Segmented.d.mts +4 -4
  128. package/dist/components/Select.d.mts +37 -36
  129. package/dist/components/Select.mjs +1 -1
  130. package/dist/components/Slider.d.mts +7 -7
  131. package/dist/components/Space.d.mts +11 -11
  132. package/dist/components/Statistic.d.mts +4 -4
  133. package/dist/components/Stepper.d.mts +4 -4
  134. package/dist/components/SunburstChart.mjs +4 -4
  135. package/dist/components/Switch.d.mts +14 -14
  136. package/dist/components/Switch.mjs +1 -1
  137. package/dist/components/Table.d.mts +0 -10
  138. package/dist/components/Table.mjs +5 -5
  139. package/dist/components/Textarea.d.mts +7 -7
  140. package/dist/components/TimePicker.d.mts +9 -9
  141. package/dist/components/TimePicker.mjs +1 -1
  142. package/dist/components/Tooltip.mjs +2 -2
  143. package/dist/components/Transfer.d.mts +31 -11
  144. package/dist/components/Transfer.mjs +1 -1
  145. package/dist/components/TreeMapChart.mjs +4 -4
  146. package/dist/components/TreeSelect.d.mts +32 -12
  147. package/dist/components/TreeSelect.mjs +1 -1
  148. package/dist/components/VirtualTable.d.mts +24 -33
  149. package/dist/components/VirtualTable.mjs +1 -1
  150. package/dist/composables/useChartInteraction.d.mts +84 -0
  151. package/dist/composables/useChartInteraction.mjs +6 -0
  152. package/dist/composables/useDrag.d.mts +40 -0
  153. package/dist/composables/useDrag.mjs +6 -0
  154. package/dist/composables/useFormController.d.mts +23 -0
  155. package/dist/composables/useFormController.mjs +6 -0
  156. package/dist/index.d.mts +11 -144
  157. package/dist/index.mjs +2155 -826
  158. package/package.json +743 -13
  159. package/dist/chunk-2DC3BMED.js +0 -92
  160. package/dist/chunk-2FYVPPTD.js +0 -315
  161. package/dist/chunk-2RCBEBBR.js +0 -376
  162. package/dist/chunk-2VOZFFW6.js +0 -138
  163. package/dist/chunk-37LDNXLO.js +0 -243
  164. package/dist/chunk-3QV2D54H.js +0 -207
  165. package/dist/chunk-43BLH7DE.js +0 -166
  166. package/dist/chunk-54VVFMYI.js +0 -69
  167. package/dist/chunk-55BSMMUN.js +0 -202
  168. package/dist/chunk-57MJTNDL.js +0 -128
  169. package/dist/chunk-5FTM7R3P.js +0 -142
  170. package/dist/chunk-5PVDNJA5.js +0 -103
  171. package/dist/chunk-5PXTMXXS.js +0 -159
  172. package/dist/chunk-5UOAWXOQ.js +0 -243
  173. package/dist/chunk-67RSRWWY.js +0 -451
  174. package/dist/chunk-6WFFP4K2.mjs +0 -325
  175. package/dist/chunk-72DDCIVL.js +0 -68
  176. package/dist/chunk-75TB3YIJ.js +0 -124
  177. package/dist/chunk-7ADONGSB.js +0 -49
  178. package/dist/chunk-7CR6MLD5.js +0 -141
  179. package/dist/chunk-7FWZIAFP.js +0 -482
  180. package/dist/chunk-7GYYIDMA.js +0 -325
  181. package/dist/chunk-7J7JIIHX.js +0 -230
  182. package/dist/chunk-7KYGVEHF.js +0 -364
  183. package/dist/chunk-7RMBEWN2.js +0 -360
  184. package/dist/chunk-A7FN3S4I.js +0 -150
  185. package/dist/chunk-AF7JZUTA.js +0 -755
  186. package/dist/chunk-ANQRW442.js +0 -468
  187. package/dist/chunk-APBWQGXW.js +0 -250
  188. package/dist/chunk-AWXSJNNP.js +0 -267
  189. package/dist/chunk-AYQER5UD.js +0 -96
  190. package/dist/chunk-BNUR72YP.js +0 -142
  191. package/dist/chunk-BPJOIFND.js +0 -305
  192. package/dist/chunk-BV6XWFRF.js +0 -360
  193. package/dist/chunk-BYNTPLGC.js +0 -79
  194. package/dist/chunk-BZ56UKUK.js +0 -483
  195. package/dist/chunk-CFJST2X2.js +0 -808
  196. package/dist/chunk-CGZFRSI5.mjs +0 -98
  197. package/dist/chunk-CTAQ5WEN.js +0 -95
  198. package/dist/chunk-CWNEDREV.js +0 -165
  199. package/dist/chunk-D43IFX7J.js +0 -196
  200. package/dist/chunk-D6Y3KVJF.js +0 -211
  201. package/dist/chunk-DE5WMG6P.js +0 -291
  202. package/dist/chunk-DYSLYJ2W.js +0 -92
  203. package/dist/chunk-E36I27WK.js +0 -362
  204. package/dist/chunk-EG7XX6U4.js +0 -98
  205. package/dist/chunk-EQW6IUHG.js +0 -163
  206. package/dist/chunk-ETTYERGO.js +0 -83
  207. package/dist/chunk-F5TZIFMW.js +0 -145
  208. package/dist/chunk-FC7RXQTM.js +0 -153
  209. package/dist/chunk-GBYNY77G.js +0 -342
  210. package/dist/chunk-GJ5HJOQP.js +0 -859
  211. package/dist/chunk-GV3LRZSR.js +0 -257
  212. package/dist/chunk-H2XEJHGR.js +0 -327
  213. package/dist/chunk-H7GAWNOW.js +0 -787
  214. package/dist/chunk-HA5QZ76M.js +0 -143
  215. package/dist/chunk-HBFFINAI.js +0 -58
  216. package/dist/chunk-HI45DI7S.js +0 -404
  217. package/dist/chunk-IUPNDTUF.js +0 -119
  218. package/dist/chunk-IXTYS3EK.js +0 -140
  219. package/dist/chunk-J77GQQEC.js +0 -318
  220. package/dist/chunk-JCMGBKS6.js +0 -59
  221. package/dist/chunk-JCPTFBLY.js +0 -112
  222. package/dist/chunk-JICPYKCT.js +0 -297
  223. package/dist/chunk-JKZ5ZRDG.js +0 -136
  224. package/dist/chunk-JMRR4KDB.js +0 -736
  225. package/dist/chunk-JTVFVAM3.js +0 -47
  226. package/dist/chunk-K2DJDJZR.js +0 -139
  227. package/dist/chunk-K2NJI5MW.js +0 -67
  228. package/dist/chunk-K3CIXMN4.js +0 -212
  229. package/dist/chunk-K6DYTMBE.js +0 -111
  230. package/dist/chunk-KGDRA475.js +0 -119
  231. package/dist/chunk-KLOUOXNA.js +0 -111
  232. package/dist/chunk-KTNT2JHB.js +0 -351
  233. package/dist/chunk-LKRT27JW.js +0 -149
  234. package/dist/chunk-LODEICSN.js +0 -253
  235. package/dist/chunk-LPHDX3UU.js +0 -279
  236. package/dist/chunk-LUBUJUSH.js +0 -45
  237. package/dist/chunk-MNVMGJUF.js +0 -341
  238. package/dist/chunk-MPVL53GP.js +0 -472
  239. package/dist/chunk-MQ23PX3S.js +0 -218
  240. package/dist/chunk-MSKAWM7K.js +0 -73
  241. package/dist/chunk-NCLUMDZB.js +0 -100
  242. package/dist/chunk-NQYE64IF.js +0 -130
  243. package/dist/chunk-OOMZBTHW.js +0 -328
  244. package/dist/chunk-OQBWITHA.js +0 -387
  245. package/dist/chunk-OQOJI5Q7.js +0 -158
  246. package/dist/chunk-OVXDO6KJ.js +0 -426
  247. package/dist/chunk-OXIODAJS.js +0 -192
  248. package/dist/chunk-PFWRFHSB.js +0 -164
  249. package/dist/chunk-PFZFPN7M.js +0 -383
  250. package/dist/chunk-PH6ERFC7.js +0 -545
  251. package/dist/chunk-QKJATAJP.js +0 -788
  252. package/dist/chunk-QOMWROWE.js +0 -136
  253. package/dist/chunk-QY6PYAJA.js +0 -194
  254. package/dist/chunk-RAUERIPS.js +0 -100
  255. package/dist/chunk-RBWJSHKR.js +0 -233
  256. package/dist/chunk-SIVMTPDY.js +0 -741
  257. package/dist/chunk-SJSZHQWX.js +0 -486
  258. package/dist/chunk-SOSHYDIX.js +0 -547
  259. package/dist/chunk-SWOQMMOT.js +0 -60
  260. package/dist/chunk-T4DF24UV.js +0 -114
  261. package/dist/chunk-TCB3WFYM.js +0 -374
  262. package/dist/chunk-TGHB5XST.js +0 -91
  263. package/dist/chunk-TLXEFLPA.js +0 -39
  264. package/dist/chunk-TNKULOHK.js +0 -476
  265. package/dist/chunk-TOD67L2E.js +0 -182
  266. package/dist/chunk-TXMPLBWW.js +0 -213
  267. package/dist/chunk-TYYJPEWG.js +0 -119
  268. package/dist/chunk-U36NBQWP.js +0 -192
  269. package/dist/chunk-U5TSCS34.js +0 -527
  270. package/dist/chunk-UFY654LD.js +0 -1005
  271. package/dist/chunk-UG6O4F2A.js +0 -150
  272. package/dist/chunk-UHVUKLHF.js +0 -112
  273. package/dist/chunk-UI7N2ZDU.js +0 -142
  274. package/dist/chunk-UKR3IJF3.js +0 -374
  275. package/dist/chunk-VDKUKZS2.js +0 -1866
  276. package/dist/chunk-VH2GDZBH.js +0 -284
  277. package/dist/chunk-VJ72Y54M.js +0 -241
  278. package/dist/chunk-VJJ7RAC6.mjs +0 -257
  279. package/dist/chunk-VQXDF6CB.js +0 -192
  280. package/dist/chunk-VUGFSHU2.js +0 -164
  281. package/dist/chunk-VXRFE72I.js +0 -852
  282. package/dist/chunk-W34IV4EC.js +0 -401
  283. package/dist/chunk-WF7KVMBY.js +0 -380
  284. package/dist/chunk-X73BZFBH.js +0 -238
  285. package/dist/chunk-X7PQRYUS.js +0 -697
  286. package/dist/chunk-XH4ZZ6KJ.js +0 -427
  287. package/dist/chunk-XMCYKHT4.js +0 -307
  288. package/dist/chunk-XSJKSUED.js +0 -139
  289. package/dist/chunk-XSMDZOBF.js +0 -154
  290. package/dist/chunk-XTMGF5YP.js +0 -103
  291. package/dist/chunk-XUOGT4HG.js +0 -76
  292. package/dist/chunk-XV6IYXAP.js +0 -140
  293. package/dist/chunk-XVNN6D55.js +0 -394
  294. package/dist/chunk-YI25YL5W.js +0 -283
  295. package/dist/chunk-YLMQZR6F.js +0 -430
  296. package/dist/chunk-YMUYN4IR.js +0 -434
  297. package/dist/chunk-YTE45DNC.js +0 -571
  298. package/dist/chunk-YVSINGGE.js +0 -320
  299. package/dist/chunk-ZHSXICH7.js +0 -264
  300. package/dist/chunk-ZMGNQKXL.js +0 -233
  301. package/dist/chunk-ZNVQ2OFX.js +0 -46
  302. package/dist/components/ActivityFeed.d.ts +0 -124
  303. package/dist/components/ActivityFeed.js +0 -18
  304. package/dist/components/Affix.d.ts +0 -75
  305. package/dist/components/Affix.js +0 -8
  306. package/dist/components/Alert.d.ts +0 -221
  307. package/dist/components/Alert.js +0 -9
  308. package/dist/components/Anchor.d.ts +0 -251
  309. package/dist/components/Anchor.js +0 -12
  310. package/dist/components/AnchorLink.d.mts +0 -8
  311. package/dist/components/AnchorLink.d.ts +0 -8
  312. package/dist/components/AnchorLink.js +0 -10
  313. package/dist/components/AnchorLink.mjs +0 -10
  314. package/dist/components/AreaChart.d.ts +0 -443
  315. package/dist/components/AreaChart.js +0 -15
  316. package/dist/components/AutoComplete.d.ts +0 -117
  317. package/dist/components/AutoComplete.js +0 -9
  318. package/dist/components/Avatar.d.ts +0 -162
  319. package/dist/components/Avatar.js +0 -9
  320. package/dist/components/AvatarGroup.d.ts +0 -49
  321. package/dist/components/AvatarGroup.js +0 -10
  322. package/dist/components/BackTop.d.ts +0 -88
  323. package/dist/components/BackTop.js +0 -8
  324. package/dist/components/Badge.d.ts +0 -116
  325. package/dist/components/Badge.js +0 -9
  326. package/dist/components/BarChart.d.ts +0 -400
  327. package/dist/components/BarChart.js +0 -15
  328. package/dist/components/Breadcrumb.d.ts +0 -235
  329. package/dist/components/Breadcrumb.js +0 -12
  330. package/dist/components/BreadcrumbItem.d.mts +0 -8
  331. package/dist/components/BreadcrumbItem.d.ts +0 -8
  332. package/dist/components/BreadcrumbItem.js +0 -10
  333. package/dist/components/BreadcrumbItem.mjs +0 -10
  334. package/dist/components/Button.d.ts +0 -146
  335. package/dist/components/Button.js +0 -9
  336. package/dist/components/ButtonGroup.d.ts +0 -42
  337. package/dist/components/ButtonGroup.js +0 -10
  338. package/dist/components/Calendar.d.ts +0 -78
  339. package/dist/components/Calendar.js +0 -9
  340. package/dist/components/Card.d.ts +0 -170
  341. package/dist/components/Card.js +0 -8
  342. package/dist/components/Carousel.d.ts +0 -247
  343. package/dist/components/Carousel.js +0 -8
  344. package/dist/components/Cascader.d.ts +0 -143
  345. package/dist/components/Cascader.js +0 -9
  346. package/dist/components/ChartAxis.d.ts +0 -110
  347. package/dist/components/ChartAxis.js +0 -8
  348. package/dist/components/ChartCanvas.d.ts +0 -69
  349. package/dist/components/ChartCanvas.js +0 -8
  350. package/dist/components/ChartGrid.d.ts +0 -109
  351. package/dist/components/ChartGrid.js +0 -8
  352. package/dist/components/ChartLegend.d.ts +0 -74
  353. package/dist/components/ChartLegend.js +0 -8
  354. package/dist/components/ChartSeries.d.ts +0 -52
  355. package/dist/components/ChartSeries.js +0 -8
  356. package/dist/components/ChartTooltip.d.ts +0 -58
  357. package/dist/components/ChartTooltip.js +0 -8
  358. package/dist/components/ChatWindow.d.ts +0 -255
  359. package/dist/components/ChatWindow.js +0 -18
  360. package/dist/components/Checkbox.d.ts +0 -144
  361. package/dist/components/Checkbox.js +0 -9
  362. package/dist/components/CheckboxGroup.d.ts +0 -126
  363. package/dist/components/CheckboxGroup.js +0 -10
  364. package/dist/components/Code.d.ts +0 -71
  365. package/dist/components/Code.js +0 -8
  366. package/dist/components/CodeEditor.d.ts +0 -183
  367. package/dist/components/CodeEditor.js +0 -8
  368. package/dist/components/Col.d.ts +0 -52
  369. package/dist/components/Col.js +0 -7
  370. package/dist/components/Collapse.d.ts +0 -162
  371. package/dist/components/Collapse.js +0 -10
  372. package/dist/components/CollapsePanel.d.ts +0 -112
  373. package/dist/components/CollapsePanel.js +0 -9
  374. package/dist/components/ColorPicker.d.ts +0 -70
  375. package/dist/components/ColorPicker.js +0 -8
  376. package/dist/components/ColorSwatch.d.ts +0 -79
  377. package/dist/components/ColorSwatch.js +0 -8
  378. package/dist/components/CommentThread.d.ts +0 -225
  379. package/dist/components/CommentThread.js +0 -17
  380. package/dist/components/ConfigProvider.d.ts +0 -76
  381. package/dist/components/ConfigProvider.js +0 -14
  382. package/dist/components/Container.d.ts +0 -86
  383. package/dist/components/Container.js +0 -8
  384. package/dist/components/Content.d.ts +0 -63
  385. package/dist/components/Content.js +0 -8
  386. package/dist/components/Countdown.d.ts +0 -107
  387. package/dist/components/Countdown.js +0 -8
  388. package/dist/components/CronEditor.d.ts +0 -80
  389. package/dist/components/CronEditor.js +0 -8
  390. package/dist/components/CropUpload.d.ts +0 -107
  391. package/dist/components/CropUpload.js +0 -14
  392. package/dist/components/DataTableWithToolbar.d.ts +0 -588
  393. package/dist/components/DataTableWithToolbar.js +0 -23
  394. package/dist/components/DatePicker.d.ts +0 -333
  395. package/dist/components/DatePicker.js +0 -10
  396. package/dist/components/Descriptions.d.ts +0 -204
  397. package/dist/components/Descriptions.js +0 -8
  398. package/dist/components/Divider.d.ts +0 -50
  399. package/dist/components/Divider.js +0 -8
  400. package/dist/components/DonutChart.d.ts +0 -332
  401. package/dist/components/DonutChart.js +0 -14
  402. package/dist/components/Drawer.d.ts +0 -396
  403. package/dist/components/Drawer.js +0 -10
  404. package/dist/components/Dropdown.d.ts +0 -241
  405. package/dist/components/Dropdown.js +0 -13
  406. package/dist/components/DropdownItem.d.mts +0 -73
  407. package/dist/components/DropdownItem.d.ts +0 -73
  408. package/dist/components/DropdownItem.js +0 -10
  409. package/dist/components/DropdownItem.mjs +0 -10
  410. package/dist/components/DropdownMenu.d.mts +0 -8
  411. package/dist/components/DropdownMenu.d.ts +0 -8
  412. package/dist/components/DropdownMenu.js +0 -11
  413. package/dist/components/DropdownMenu.mjs +0 -11
  414. package/dist/components/Empty.d.ts +0 -74
  415. package/dist/components/Empty.js +0 -9
  416. package/dist/components/FileManager.d.ts +0 -171
  417. package/dist/components/FileManager.js +0 -9
  418. package/dist/components/FloatButton.d.ts +0 -156
  419. package/dist/components/FloatButton.js +0 -10
  420. package/dist/components/Footer.d.ts +0 -63
  421. package/dist/components/Footer.js +0 -8
  422. package/dist/components/Form.d.ts +0 -291
  423. package/dist/components/Form.js +0 -11
  424. package/dist/components/FormItem.d.ts +0 -152
  425. package/dist/components/FormItem.js +0 -10
  426. package/dist/components/FormWizard.d.ts +0 -206
  427. package/dist/components/FormWizard.js +0 -12
  428. package/dist/components/FunnelChart.d.ts +0 -221
  429. package/dist/components/FunnelChart.js +0 -13
  430. package/dist/components/Gantt.d.ts +0 -231
  431. package/dist/components/Gantt.js +0 -9
  432. package/dist/components/GaugeChart.d.ts +0 -197
  433. package/dist/components/GaugeChart.js +0 -10
  434. package/dist/components/Header.d.ts +0 -82
  435. package/dist/components/Header.js +0 -8
  436. package/dist/components/HeatmapChart.d.ts +0 -233
  437. package/dist/components/HeatmapChart.js +0 -11
  438. package/dist/components/Icon.d.ts +0 -68
  439. package/dist/components/Icon.js +0 -8
  440. package/dist/components/Image.d.ts +0 -129
  441. package/dist/components/Image.js +0 -14
  442. package/dist/components/ImageAnnotation.d.ts +0 -189
  443. package/dist/components/ImageAnnotation.js +0 -9
  444. package/dist/components/ImageCropper.d.ts +0 -116
  445. package/dist/components/ImageCropper.js +0 -9
  446. package/dist/components/ImageGroup.d.ts +0 -30
  447. package/dist/components/ImageGroup.js +0 -12
  448. package/dist/components/ImagePreview.d.ts +0 -108
  449. package/dist/components/ImagePreview.js +0 -9
  450. package/dist/components/ImageViewer.d.ts +0 -137
  451. package/dist/components/ImageViewer.js +0 -9
  452. package/dist/components/InfiniteScroll.d.ts +0 -116
  453. package/dist/components/InfiniteScroll.js +0 -9
  454. package/dist/components/Input.d.ts +0 -268
  455. package/dist/components/Input.js +0 -9
  456. package/dist/components/InputGroup.d.ts +0 -77
  457. package/dist/components/InputGroup.js +0 -12
  458. package/dist/components/InputNumber.d.ts +0 -190
  459. package/dist/components/InputNumber.js +0 -9
  460. package/dist/components/Kanban.d.ts +0 -200
  461. package/dist/components/Kanban.js +0 -10
  462. package/dist/components/Layout.d.ts +0 -45
  463. package/dist/components/Layout.js +0 -8
  464. package/dist/components/LineChart.d.ts +0 -434
  465. package/dist/components/LineChart.js +0 -15
  466. package/dist/components/Link.d.ts +0 -89
  467. package/dist/components/Link.js +0 -8
  468. package/dist/components/List.d.ts +0 -342
  469. package/dist/components/List.js +0 -10
  470. package/dist/components/Loading.d.ts +0 -133
  471. package/dist/components/Loading.js +0 -10
  472. package/dist/components/MarkdownEditor.d.ts +0 -149
  473. package/dist/components/MarkdownEditor.js +0 -8
  474. package/dist/components/Mentions.d.ts +0 -88
  475. package/dist/components/Mentions.js +0 -8
  476. package/dist/components/Menu.d.ts +0 -554
  477. package/dist/components/Menu.js +0 -17
  478. package/dist/components/MenuItem.d.mts +0 -8
  479. package/dist/components/MenuItem.d.ts +0 -8
  480. package/dist/components/MenuItem.js +0 -11
  481. package/dist/components/MenuItem.mjs +0 -11
  482. package/dist/components/MenuItemGroup.d.mts +0 -8
  483. package/dist/components/MenuItemGroup.d.ts +0 -8
  484. package/dist/components/MenuItemGroup.js +0 -11
  485. package/dist/components/MenuItemGroup.mjs +0 -11
  486. package/dist/components/Message.js +0 -11
  487. package/dist/components/Modal.d.ts +0 -381
  488. package/dist/components/Modal.js +0 -12
  489. package/dist/components/Notification.js +0 -11
  490. package/dist/components/NotificationCenter.d.ts +0 -213
  491. package/dist/components/NotificationCenter.js +0 -18
  492. package/dist/components/NumberKeyboard.d.ts +0 -154
  493. package/dist/components/NumberKeyboard.js +0 -9
  494. package/dist/components/OrgChart.d.ts +0 -195
  495. package/dist/components/OrgChart.js +0 -9
  496. package/dist/components/Pagination.d.ts +0 -392
  497. package/dist/components/Pagination.js +0 -9
  498. package/dist/components/PieChart.d.ts +0 -305
  499. package/dist/components/PieChart.js +0 -13
  500. package/dist/components/Popconfirm.d.ts +0 -173
  501. package/dist/components/Popconfirm.js +0 -10
  502. package/dist/components/Popover.d.ts +0 -138
  503. package/dist/components/Popover.js +0 -10
  504. package/dist/components/PrintLayout.d.ts +0 -97
  505. package/dist/components/PrintLayout.js +0 -10
  506. package/dist/components/Progress.d.ts +0 -150
  507. package/dist/components/Progress.js +0 -8
  508. package/dist/components/QRCode.d.ts +0 -95
  509. package/dist/components/QRCode.js +0 -9
  510. package/dist/components/RadarChart.d.ts +0 -454
  511. package/dist/components/RadarChart.js +0 -13
  512. package/dist/components/Radio.d.ts +0 -143
  513. package/dist/components/Radio.js +0 -9
  514. package/dist/components/RadioGroup.d.ts +0 -135
  515. package/dist/components/RadioGroup.js +0 -10
  516. package/dist/components/Rate.d.ts +0 -80
  517. package/dist/components/Rate.js +0 -8
  518. package/dist/components/Resizable.d.ts +0 -138
  519. package/dist/components/Resizable.js +0 -8
  520. package/dist/components/Result.d.ts +0 -64
  521. package/dist/components/Result.js +0 -9
  522. package/dist/components/RichTextEditor.d.ts +0 -123
  523. package/dist/components/RichTextEditor.js +0 -8
  524. package/dist/components/Row.d.ts +0 -90
  525. package/dist/components/Row.js +0 -8
  526. package/dist/components/ScatterChart.d.ts +0 -391
  527. package/dist/components/ScatterChart.js +0 -15
  528. package/dist/components/ScrollSpy.d.ts +0 -125
  529. package/dist/components/ScrollSpy.js +0 -8
  530. package/dist/components/Segmented.d.ts +0 -70
  531. package/dist/components/Segmented.js +0 -8
  532. package/dist/components/Select.d.ts +0 -292
  533. package/dist/components/Select.js +0 -9
  534. package/dist/components/Sidebar.d.ts +0 -101
  535. package/dist/components/Sidebar.js +0 -8
  536. package/dist/components/Signature.d.ts +0 -163
  537. package/dist/components/Signature.js +0 -9
  538. package/dist/components/Skeleton.d.ts +0 -96
  539. package/dist/components/Skeleton.js +0 -8
  540. package/dist/components/Slider.d.ts +0 -228
  541. package/dist/components/Slider.js +0 -8
  542. package/dist/components/Space.d.ts +0 -49
  543. package/dist/components/Space.js +0 -8
  544. package/dist/components/Splitter.d.ts +0 -99
  545. package/dist/components/Splitter.js +0 -8
  546. package/dist/components/Spotlight.d.ts +0 -206
  547. package/dist/components/Spotlight.js +0 -10
  548. package/dist/components/Statistic.d.ts +0 -103
  549. package/dist/components/Statistic.js +0 -8
  550. package/dist/components/Stepper.d.ts +0 -79
  551. package/dist/components/Stepper.js +0 -8
  552. package/dist/components/Steps.d.ts +0 -298
  553. package/dist/components/Steps.js +0 -12
  554. package/dist/components/StepsItem.d.mts +0 -8
  555. package/dist/components/StepsItem.d.ts +0 -8
  556. package/dist/components/StepsItem.js +0 -10
  557. package/dist/components/StepsItem.mjs +0 -10
  558. package/dist/components/SubMenu.d.mts +0 -8
  559. package/dist/components/SubMenu.d.ts +0 -8
  560. package/dist/components/SubMenu.js +0 -11
  561. package/dist/components/SubMenu.mjs +0 -11
  562. package/dist/components/SunburstChart.d.ts +0 -212
  563. package/dist/components/SunburstChart.js +0 -13
  564. package/dist/components/Switch.d.ts +0 -94
  565. package/dist/components/Switch.js +0 -8
  566. package/dist/components/TabPane.d.mts +0 -8
  567. package/dist/components/TabPane.d.ts +0 -8
  568. package/dist/components/TabPane.js +0 -10
  569. package/dist/components/TabPane.mjs +0 -10
  570. package/dist/components/Table.d.ts +0 -509
  571. package/dist/components/Table.js +0 -15
  572. package/dist/components/Tabs.d.ts +0 -410
  573. package/dist/components/Tabs.js +0 -12
  574. package/dist/components/Tag.d.ts +0 -130
  575. package/dist/components/Tag.js +0 -9
  576. package/dist/components/TaskBoard.d.ts +0 -210
  577. package/dist/components/TaskBoard.js +0 -9
  578. package/dist/components/Text.d.ts +0 -161
  579. package/dist/components/Text.js +0 -8
  580. package/dist/components/Textarea.d.ts +0 -308
  581. package/dist/components/Textarea.js +0 -9
  582. package/dist/components/TimePicker.d.ts +0 -372
  583. package/dist/components/TimePicker.js +0 -10
  584. package/dist/components/Timeline.d.ts +0 -124
  585. package/dist/components/Timeline.js +0 -9
  586. package/dist/components/Tooltip.d.ts +0 -116
  587. package/dist/components/Tooltip.js +0 -10
  588. package/dist/components/Tour.d.ts +0 -127
  589. package/dist/components/Tour.js +0 -11
  590. package/dist/components/Transfer.d.ts +0 -129
  591. package/dist/components/Transfer.js +0 -9
  592. package/dist/components/Tree.d.ts +0 -485
  593. package/dist/components/Tree.js +0 -10
  594. package/dist/components/TreeMapChart.d.ts +0 -221
  595. package/dist/components/TreeMapChart.js +0 -13
  596. package/dist/components/TreeSelect.d.ts +0 -121
  597. package/dist/components/TreeSelect.js +0 -9
  598. package/dist/components/Upload.d.ts +0 -355
  599. package/dist/components/Upload.js +0 -9
  600. package/dist/components/VirtualList.d.ts +0 -89
  601. package/dist/components/VirtualList.js +0 -8
  602. package/dist/components/VirtualTable.d.ts +0 -196
  603. package/dist/components/VirtualTable.js +0 -9
  604. package/dist/components/Watermark.d.ts +0 -144
  605. package/dist/components/Watermark.js +0 -8
  606. package/dist/index.d.ts +0 -286
  607. package/dist/index.js +0 -838
  608. package/dist/{chunk-2HRJGOAV.mjs → chunk-B47QLHVW.mjs} +3 -3
  609. /package/dist/{chunk-R2HO74FE.mjs → chunk-PE5OA4YG.mjs} +0 -0
@@ -1,1005 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
-
4
- var _chunkEQW6IUHGjs = require('./chunk-EQW6IUHG.js');
5
-
6
- // src/components/Menu.ts
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
- var _vue = require('vue');
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
- var _tigercatcore = require('@expcat/tigercat-core');
57
- var MenuContextKey = /* @__PURE__ */ Symbol("MenuContext");
58
- var Menu = _vue.defineComponent.call(void 0, {
59
- name: "TigerMenu",
60
- inheritAttrs: false,
61
- props: {
62
- /**
63
- * Data-driven menu items
64
- */
65
- items: {
66
- type: Array,
67
- default: void 0
68
- },
69
- /**
70
- * Menu mode - horizontal, vertical, or inline
71
- * @default 'vertical'
72
- */
73
- mode: {
74
- type: String,
75
- default: "vertical"
76
- },
77
- /**
78
- * Menu theme - light or dark
79
- * @default 'light'
80
- */
81
- theme: {
82
- type: String,
83
- default: "light"
84
- },
85
- /**
86
- * Currently selected menu item keys
87
- */
88
- selectedKeys: {
89
- type: Array,
90
- default: void 0
91
- },
92
- /**
93
- * Default selected menu item keys
94
- */
95
- defaultSelectedKeys: {
96
- type: Array,
97
- default: () => []
98
- },
99
- /**
100
- * Currently opened submenu keys (for vertical/inline mode)
101
- */
102
- openKeys: {
103
- type: Array,
104
- default: void 0
105
- },
106
- /**
107
- * Default opened submenu keys
108
- */
109
- defaultOpenKeys: {
110
- type: Array,
111
- default: () => []
112
- },
113
- /**
114
- * Whether the menu is collapsed (for vertical mode)
115
- * @default false
116
- */
117
- collapsed: {
118
- type: Boolean,
119
- default: false
120
- },
121
- /**
122
- * Whether multiple submenus can be opened at once
123
- * @default true
124
- */
125
- multiple: {
126
- type: Boolean,
127
- default: true
128
- },
129
- /**
130
- * Inline indentation for submenu items
131
- * @default 24
132
- */
133
- inlineIndent: {
134
- type: Number,
135
- default: 24
136
- },
137
- popupPortal: {
138
- type: Boolean,
139
- default: false
140
- },
141
- className: {
142
- type: String,
143
- default: void 0
144
- },
145
- style: {
146
- type: Object,
147
- default: void 0
148
- },
149
- searchable: {
150
- type: Boolean,
151
- default: false
152
- },
153
- searchValue: {
154
- type: String,
155
- default: void 0
156
- },
157
- defaultSearchValue: {
158
- type: String,
159
- default: ""
160
- },
161
- searchPlaceholder: {
162
- type: String,
163
- default: "Search menu"
164
- },
165
- emptyText: {
166
- type: String,
167
- default: "No menu items found"
168
- }
169
- },
170
- emits: [
171
- "update:selectedKeys",
172
- "update:openKeys",
173
- "update:searchValue",
174
- "select",
175
- "open-change",
176
- "search"
177
- ],
178
- setup(props, { slots, emit, attrs }) {
179
- const menuEl = _vue.ref.call(void 0, null);
180
- const resolvedMode = _vue.computed.call(void 0,
181
- () => props.collapsed && props.mode === "inline" ? "vertical" : props.mode
182
- );
183
- const internalSelectedKeys = _vue.ref.call(void 0, props.defaultSelectedKeys);
184
- const internalOpenKeys = _vue.ref.call(void 0, props.defaultOpenKeys);
185
- const internalSearchValue = _vue.ref.call(void 0, props.defaultSearchValue);
186
- const currentSelectedKeys = _vue.computed.call(void 0, () => {
187
- return props.selectedKeys !== void 0 ? props.selectedKeys : internalSelectedKeys.value;
188
- });
189
- const currentOpenKeys = _vue.computed.call(void 0, () => {
190
- return props.openKeys !== void 0 ? props.openKeys : internalOpenKeys.value;
191
- });
192
- const handleSelect = (key) => {
193
- const newSelectedKeys = _tigercatcore.replaceKeys.call(void 0, key, currentSelectedKeys.value);
194
- if (props.selectedKeys === void 0) {
195
- internalSelectedKeys.value = newSelectedKeys;
196
- }
197
- emit("update:selectedKeys", newSelectedKeys);
198
- emit("select", key, { selectedKeys: newSelectedKeys });
199
- };
200
- const handleOpenChange = (key) => {
201
- const toggled = _tigercatcore.toggleKey.call(void 0, key, currentOpenKeys.value);
202
- const newOpenKeys = props.multiple ? toggled : toggled.includes(key) ? [key] : [];
203
- if (props.openKeys === void 0) {
204
- internalOpenKeys.value = newOpenKeys;
205
- }
206
- emit("update:openKeys", newOpenKeys);
207
- emit("open-change", key, { openKeys: newOpenKeys });
208
- };
209
- const handleSearchInput = (event) => {
210
- const value = event.target.value;
211
- if (props.searchValue === void 0) {
212
- internalSearchValue.value = value;
213
- }
214
- emit("update:searchValue", value);
215
- emit("search", value);
216
- };
217
- const menuClasses = _vue.computed.call(void 0, () => {
218
- return _tigercatcore.classNames.call(void 0,
219
- _tigercatcore.getMenuClasses.call(void 0, resolvedMode.value, props.theme, props.collapsed),
220
- props.className,
221
- _tigercatcore.coerceClassValue.call(void 0, attrs.class)
222
- );
223
- });
224
- const menuStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
225
- const currentSearchValue = _vue.computed.call(void 0, () => {
226
- return props.searchValue !== void 0 ? props.searchValue : internalSearchValue.value;
227
- });
228
- const filteredItems = _vue.computed.call(void 0,
229
- () => _tigercatcore.filterMenuItems.call(void 0, _nullishCoalesce(props.items, () => ( [])), currentSearchValue.value)
230
- );
231
- const passthroughAttrs = _vue.computed.call(void 0, () => {
232
- const { class: _class, style: _style, ...rest } = attrs;
233
- return rest;
234
- });
235
- const modeRef = _vue.computed.call(void 0, () => resolvedMode.value);
236
- const themeRef = _vue.computed.call(void 0, () => props.theme);
237
- const collapsedRef = _vue.computed.call(void 0, () => props.collapsed);
238
- const inlineIndentRef = _vue.computed.call(void 0, () => props.inlineIndent);
239
- const popupPortalRef = _vue.computed.call(void 0, () => props.popupPortal);
240
- _vue.provide.call(void 0, MenuContextKey, {
241
- mode: modeRef,
242
- theme: themeRef,
243
- collapsed: collapsedRef,
244
- inlineIndent: inlineIndentRef,
245
- popupPortal: popupPortalRef,
246
- selectedKeys: currentSelectedKeys,
247
- openKeys: currentOpenKeys,
248
- handleSelect,
249
- handleOpenChange
250
- });
251
- const runRovingTabIndex = async () => {
252
- await _vue.nextTick.call(void 0, );
253
- if (menuEl.value) _tigercatcore.initRovingTabIndex.call(void 0, menuEl.value);
254
- };
255
- _vue.onMounted.call(void 0, () => {
256
- void runRovingTabIndex();
257
- });
258
- _vue.watch.call(void 0,
259
- [modeRef, collapsedRef, currentSelectedKeys, currentOpenKeys, filteredItems],
260
- () => {
261
- void runRovingTabIndex();
262
- },
263
- { deep: true }
264
- );
265
- return () => {
266
- const renderDataItem = (item) => {
267
- if (item.children && item.children.length > 0) {
268
- const children = item.children;
269
- return _vue.h.call(void 0,
270
- SubMenu,
271
- {
272
- key: item.key,
273
- itemKey: item.key,
274
- title: item.label,
275
- icon: item.icon,
276
- disabled: item.disabled
277
- },
278
- () => children.map(renderDataItem)
279
- );
280
- }
281
- return _vue.h.call(void 0,
282
- MenuItem,
283
- {
284
- key: item.key,
285
- itemKey: item.key,
286
- icon: item.icon,
287
- disabled: item.disabled
288
- },
289
- () => item.label
290
- );
291
- };
292
- const dataChildren = filteredItems.value.map(renderDataItem);
293
- const slotChildren = _nullishCoalesce(_optionalChain([slots, 'access', _ => _.default, 'optionalCall', _2 => _2()]), () => ( []));
294
- const searchChild = props.searchable ? [
295
- _vue.h.call(void 0, "li", { role: "none", class: _tigercatcore.menuSearchFieldClasses }, [
296
- _vue.h.call(void 0, "input", {
297
- type: "search",
298
- value: currentSearchValue.value,
299
- placeholder: props.searchPlaceholder,
300
- class: _tigercatcore.menuSearchInputClasses,
301
- "aria-label": props.searchPlaceholder,
302
- onInput: handleSearchInput
303
- })
304
- ])
305
- ] : [];
306
- const emptyChild = props.items && props.items.length > 0 && dataChildren.length === 0 && slotChildren.length === 0 ? [
307
- _vue.h.call(void 0, "li", { role: "none" }, [
308
- _vue.h.call(void 0, "div", { class: _tigercatcore.menuSearchEmptyClasses }, props.emptyText)
309
- ])
310
- ] : [];
311
- return _vue.h.call(void 0,
312
- "ul",
313
- {
314
- ref: menuEl,
315
- class: menuClasses.value,
316
- style: menuStyle.value,
317
- role: "menu",
318
- "data-tiger-menu-root": "true",
319
- "data-tiger-menu-mode": resolvedMode.value,
320
- "data-tiger-menu-requested-mode": props.mode,
321
- ...passthroughAttrs.value
322
- },
323
- [...searchChild, ...dataChildren, ...slotChildren, ...emptyChild]
324
- );
325
- };
326
- }
327
- });
328
- var Menu_default = Menu;
329
- var MenuItem = _vue.defineComponent.call(void 0, {
330
- name: "TigerMenuItem",
331
- props: {
332
- /**
333
- * Unique key for the menu item
334
- */
335
- itemKey: {
336
- type: [String, Number],
337
- required: true
338
- },
339
- /**
340
- * Whether the menu item is disabled
341
- */
342
- disabled: {
343
- type: Boolean,
344
- default: false
345
- },
346
- /**
347
- * Icon for the menu item
348
- */
349
- icon: {
350
- type: [String, Object]
351
- },
352
- level: {
353
- type: Number,
354
- default: 0
355
- },
356
- collapsed: {
357
- type: Boolean,
358
- default: void 0
359
- },
360
- className: {
361
- type: String,
362
- default: void 0
363
- },
364
- style: {
365
- type: Object,
366
- default: void 0
367
- }
368
- },
369
- inheritAttrs: false,
370
- setup(props, { slots, attrs }) {
371
- const menuContext = _vue.inject.call(void 0, MenuContextKey);
372
- if (!menuContext) {
373
- console.warn("MenuItem must be used within Menu component");
374
- }
375
- const isSelected = _vue.computed.call(void 0, () => {
376
- if (!menuContext) return false;
377
- return _tigercatcore.isKeySelected.call(void 0, props.itemKey, menuContext.selectedKeys.value);
378
- });
379
- const itemClasses = _vue.computed.call(void 0, () => {
380
- if (!menuContext) {
381
- return _tigercatcore.classNames.call(void 0,
382
- "flex items-center px-4 py-2 cursor-pointer transition-colors duration-200"
383
- );
384
- }
385
- const effectiveCollapsed = _nullishCoalesce(props.collapsed, () => ( menuContext.collapsed.value));
386
- return _tigercatcore.classNames.call(void 0,
387
- _tigercatcore.getMenuItemClasses.call(void 0,
388
- isSelected.value,
389
- props.disabled,
390
- menuContext.theme.value,
391
- effectiveCollapsed
392
- ),
393
- props.className,
394
- _tigercatcore.coerceClassValue.call(void 0, attrs.class)
395
- );
396
- });
397
- const indentStyle = _vue.computed.call(void 0, () => {
398
- if (!menuContext || menuContext.mode.value !== "inline" || props.level === 0) {
399
- return {};
400
- }
401
- return _tigercatcore.getMenuItemIndent.call(void 0, props.level, menuContext.inlineIndent.value);
402
- });
403
- const itemStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style, indentStyle.value));
404
- const passthroughAttrs = _vue.computed.call(void 0, () => {
405
- const { class: _class, style: _style, ...rest } = attrs;
406
- return rest;
407
- });
408
- const handleClick = () => {
409
- if (!props.disabled && menuContext) {
410
- menuContext.handleSelect(props.itemKey);
411
- }
412
- };
413
- const handleKeyDown = (event) => {
414
- if (!menuContext) return;
415
- const current = event.currentTarget;
416
- const rootMenu = current.closest('ul[role="menu"]');
417
- const isRoot = _optionalChain([rootMenu, 'optionalAccess', _3 => _3.dataset, 'access', _4 => _4.tigerMenuRoot]) === "true";
418
- const { nextKey, prevKey } = _tigercatcore.getMenuNavigationKeys.call(void 0, menuContext.mode.value, isRoot);
419
- if (event.key === nextKey) {
420
- event.preventDefault();
421
- _tigercatcore.moveFocusInMenu.call(void 0, current, 1);
422
- return;
423
- }
424
- if (event.key === prevKey) {
425
- event.preventDefault();
426
- _tigercatcore.moveFocusInMenu.call(void 0, current, -1);
427
- return;
428
- }
429
- if (event.key === "Home") {
430
- event.preventDefault();
431
- _tigercatcore.focusMenuEdge.call(void 0, current, "start");
432
- return;
433
- }
434
- if (event.key === "End") {
435
- event.preventDefault();
436
- _tigercatcore.focusMenuEdge.call(void 0, current, "end");
437
- return;
438
- }
439
- if (event.key === "Enter" || event.key === " ") {
440
- event.preventDefault();
441
- handleClick();
442
- }
443
- };
444
- return () => {
445
- const children = [];
446
- const effectiveCollapsed = _nullishCoalesce(props.collapsed, () => ( (menuContext ? menuContext.collapsed.value : false)));
447
- const iconClasses = effectiveCollapsed ? _tigercatcore.menuCollapsedIconClasses : _tigercatcore.menuItemIconClasses;
448
- if (props.icon) {
449
- if (typeof props.icon === "string") {
450
- children.push(
451
- _vue.h.call(void 0, "span", {
452
- class: iconClasses,
453
- innerHTML: props.icon
454
- })
455
- );
456
- } else {
457
- children.push(_vue.h.call(void 0, "span", { class: iconClasses }, props.icon));
458
- }
459
- }
460
- if (!effectiveCollapsed && slots.default) {
461
- children.push(_vue.h.call(void 0, "span", { class: "flex-1" }, slots.default()));
462
- } else if (effectiveCollapsed && slots.default) {
463
- if (!props.icon) {
464
- const defaultSlot = slots.default();
465
- if (defaultSlot && defaultSlot.length > 0) {
466
- const text = String(defaultSlot[0].children || "");
467
- children.push(
468
- _vue.h.call(void 0,
469
- "span",
470
- { class: "flex-1 text-center", "aria-hidden": "true" },
471
- text.charAt(0).toUpperCase()
472
- )
473
- );
474
- }
475
- }
476
- children.push(_vue.h.call(void 0, "span", { class: "sr-only" }, slots.default()));
477
- }
478
- return _vue.h.call(void 0,
479
- "li",
480
- {
481
- role: "none"
482
- },
483
- [
484
- _vue.h.call(void 0,
485
- "button",
486
- {
487
- type: "button",
488
- class: itemClasses.value,
489
- style: itemStyle.value,
490
- role: "menuitem",
491
- "data-tiger-menuitem": "true",
492
- "data-tiger-selected": isSelected.value ? "true" : "false",
493
- "aria-current": isSelected.value ? "page" : void 0,
494
- "aria-disabled": props.disabled ? "true" : void 0,
495
- disabled: props.disabled,
496
- tabindex: -1,
497
- onClick: handleClick,
498
- onKeydown: handleKeyDown,
499
- ...passthroughAttrs.value
500
- },
501
- children
502
- )
503
- ]
504
- );
505
- };
506
- }
507
- });
508
- var MenuItemGroup = _vue.defineComponent.call(void 0, {
509
- name: "TigerMenuItemGroup",
510
- inheritAttrs: false,
511
- props: {
512
- /**
513
- * Group title
514
- */
515
- title: {
516
- type: String,
517
- default: ""
518
- },
519
- level: {
520
- type: Number,
521
- default: 0
522
- },
523
- collapsed: {
524
- type: Boolean,
525
- default: void 0
526
- },
527
- className: {
528
- type: String,
529
- default: void 0
530
- },
531
- style: {
532
- type: Object,
533
- default: void 0
534
- }
535
- },
536
- setup(props, { slots, attrs }) {
537
- const groupClasses = _vue.computed.call(void 0, () => _tigercatcore.classNames.call(void 0, props.className, _tigercatcore.coerceClassValue.call(void 0, attrs.class)));
538
- const groupStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
539
- const passthroughAttrs = _vue.computed.call(void 0, () => {
540
- const { class: _class, style: _style, ...rest } = attrs;
541
- return rest;
542
- });
543
- const withLevel = (nodes) => {
544
- if (!nodes || nodes.length === 0) return nodes;
545
- const level = props.level;
546
- return nodes.map((node) => {
547
- if (!_vue.isVNode.call(void 0, node)) return node;
548
- const type = node.type;
549
- const name = typeof type === "object" && type != null && "name" in type ? type.name : void 0;
550
- const isTarget = name === "TigerMenuItem" || name === "TigerSubMenu";
551
- if (!isTarget) return node;
552
- const existingProps = _nullishCoalesce(node.props, () => ( {}));
553
- if (existingProps.level != null && existingProps.collapsed != null) return node;
554
- const nextProps = {};
555
- if (existingProps.level == null) nextProps.level = level;
556
- if (props.collapsed !== void 0 && existingProps.collapsed == null) {
557
- nextProps.collapsed = props.collapsed;
558
- }
559
- return _vue.cloneVNode.call(void 0, node, nextProps);
560
- });
561
- };
562
- return () => {
563
- return _vue.h.call(void 0, "li", { class: "list-none" }, [
564
- props.title ? _vue.h.call(void 0, "div", { class: _tigercatcore.menuItemGroupTitleClasses }, props.title) : null,
565
- slots.default ? _vue.h.call(void 0,
566
- "ul",
567
- {
568
- role: "group",
569
- class: groupClasses.value,
570
- style: groupStyle.value,
571
- ...passthroughAttrs.value
572
- },
573
- withLevel(_optionalChain([slots, 'access', _5 => _5.default, 'optionalCall', _6 => _6()]))
574
- ) : null
575
- ]);
576
- };
577
- }
578
- });
579
- var ExpandIcon = (expanded) => {
580
- return _vue.h.call(void 0,
581
- "svg",
582
- {
583
- class: _tigercatcore.getSubMenuExpandIconClasses.call(void 0, expanded),
584
- width: "12",
585
- height: "12",
586
- viewBox: "0 0 12 12",
587
- fill: "currentColor"
588
- },
589
- [
590
- _vue.h.call(void 0, "path", {
591
- d: "M6 9L1.5 4.5L2.205 3.795L6 7.59L9.795 3.795L10.5 4.5L6 9Z"
592
- })
593
- ]
594
- );
595
- };
596
- var SubMenu = _vue.defineComponent.call(void 0, {
597
- name: "TigerSubMenu",
598
- inheritAttrs: false,
599
- props: {
600
- /**
601
- * Unique key for the submenu
602
- */
603
- itemKey: {
604
- type: [String, Number],
605
- required: true
606
- },
607
- /**
608
- * Submenu title
609
- */
610
- title: {
611
- type: String,
612
- default: ""
613
- },
614
- /**
615
- * Icon for the submenu
616
- */
617
- icon: {
618
- type: [String, Object]
619
- },
620
- /**
621
- * Whether the submenu is disabled
622
- */
623
- disabled: {
624
- type: Boolean,
625
- default: false
626
- },
627
- /**
628
- * Nesting level (internal use for indentation)
629
- */
630
- level: {
631
- type: Number,
632
- default: 0
633
- },
634
- collapsed: {
635
- type: Boolean,
636
- default: void 0
637
- },
638
- className: {
639
- type: String,
640
- default: void 0
641
- },
642
- style: {
643
- type: Object,
644
- default: void 0
645
- }
646
- },
647
- setup(props, { slots, attrs }) {
648
- const menuContext = _vue.inject.call(void 0, MenuContextKey);
649
- if (!menuContext) {
650
- console.warn("SubMenu must be used within Menu component");
651
- }
652
- const isOpen = _vue.computed.call(void 0, () => {
653
- if (!menuContext) return false;
654
- return _tigercatcore.isKeyOpen.call(void 0, props.itemKey, menuContext.openKeys.value);
655
- });
656
- const isHovered = _vue.ref.call(void 0, false);
657
- const isOpenByKeyboard = _vue.ref.call(void 0, false);
658
- const titleEl = _vue.ref.call(void 0, null);
659
- const popupEl = _vue.ref.call(void 0, null);
660
- const submenuContentEl = _vue.ref.call(void 0, null);
661
- let heightTransitionController = null;
662
- let popupCloseTimer = null;
663
- const effectiveCollapsed = _vue.computed.call(void 0, () => {
664
- return _nullishCoalesce(props.collapsed, () => ( (menuContext ? menuContext.collapsed.value : false)));
665
- });
666
- const isPopup = _vue.computed.call(void 0, () => {
667
- if (!menuContext) return false;
668
- if (menuContext.mode.value === "horizontal") return true;
669
- return menuContext.mode.value === "vertical" && effectiveCollapsed.value;
670
- });
671
- const popupPortal = _vue.computed.call(void 0, () => Boolean(isPopup.value && _optionalChain([menuContext, 'optionalAccess', _7 => _7.popupPortal, 'access', _8 => _8.value])));
672
- const isExpanded = _vue.computed.call(void 0, () => {
673
- if (_optionalChain([menuContext, 'optionalAccess', _9 => _9.mode, 'access', _10 => _10.value]) === "horizontal" || isPopup.value) {
674
- return isHovered.value || isOpenByKeyboard.value;
675
- }
676
- return isOpen.value;
677
- });
678
- const hasRenderedInline = _vue.ref.call(void 0, !isPopup.value && isExpanded.value);
679
- const popupPlacement = _vue.computed.call(void 0,
680
- () => _optionalChain([menuContext, 'optionalAccess', _11 => _11.mode, 'access', _12 => _12.value]) === "horizontal" && props.level === 0 ? "bottom-start" : "right-start"
681
- );
682
- const {
683
- x: popupX,
684
- y: popupY,
685
- placement: currentPopupPlacement
686
- } = _chunkEQW6IUHGjs.useVueFloating.call(void 0, {
687
- referenceRef: titleEl,
688
- floatingRef: popupEl,
689
- enabled: _vue.computed.call(void 0, () => popupPortal.value && isExpanded.value),
690
- placement: popupPlacement.value,
691
- offset: 4
692
- });
693
- const disposeHeightTransition = () => {
694
- _optionalChain([heightTransitionController, 'optionalAccess', _13 => _13.dispose, 'call', _14 => _14()]);
695
- heightTransitionController = null;
696
- };
697
- const syncHeightTransition = async () => {
698
- await _vue.nextTick.call(void 0, );
699
- if (isPopup.value || !hasRenderedInline.value || !submenuContentEl.value) {
700
- disposeHeightTransition();
701
- return;
702
- }
703
- if (!heightTransitionController) {
704
- heightTransitionController = _tigercatcore.createSubmenuHeightTransitionController.call(void 0,
705
- submenuContentEl.value,
706
- { expanded: isExpanded.value }
707
- );
708
- return;
709
- }
710
- heightTransitionController.update(isExpanded.value);
711
- };
712
- _vue.watch.call(void 0,
713
- [isPopup, isExpanded],
714
- () => {
715
- if (!isPopup.value && isExpanded.value) {
716
- hasRenderedInline.value = true;
717
- }
718
- void syncHeightTransition();
719
- },
720
- { immediate: true }
721
- );
722
- _vue.watch.call(void 0, hasRenderedInline, () => {
723
- void syncHeightTransition();
724
- });
725
- _vue.onBeforeUnmount.call(void 0, () => {
726
- disposeHeightTransition();
727
- if (popupCloseTimer) clearTimeout(popupCloseTimer);
728
- });
729
- const titleClasses = _vue.computed.call(void 0, () => {
730
- if (!menuContext) return "";
731
- return _tigercatcore.classNames.call(void 0,
732
- _tigercatcore.getSubMenuTitleClasses.call(void 0, menuContext.theme.value, props.disabled),
733
- props.className,
734
- _tigercatcore.coerceClassValue.call(void 0, attrs.class)
735
- );
736
- });
737
- const titleStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style, indentStyle.value));
738
- const passthroughAttrs = _vue.computed.call(void 0, () => {
739
- const { class: _class, style: _style, ...rest } = attrs;
740
- return rest;
741
- });
742
- const contentClasses = _vue.computed.call(void 0, () => {
743
- if (!menuContext) return "";
744
- if (menuContext.mode.value === "horizontal") {
745
- return props.level === 0 ? _tigercatcore.submenuContentHorizontalClasses : _tigercatcore.submenuContentHorizontalNestedClasses;
746
- }
747
- if (isPopup.value) return _tigercatcore.submenuContentPopupClasses;
748
- if (menuContext.mode.value === "inline") return _tigercatcore.submenuContentInlineClasses;
749
- return _tigercatcore.submenuContentVerticalClasses;
750
- });
751
- const popupZIndex = _vue.computed.call(void 0, () => isPopup.value ? _tigercatcore.getSubmenuPopupZIndex.call(void 0, props.level) : {});
752
- const handleTitleClick = () => {
753
- if (!menuContext || props.disabled) return;
754
- if (menuContext.mode.value === "horizontal") return;
755
- if (isPopup.value) {
756
- isOpenByKeyboard.value = !isOpenByKeyboard.value;
757
- isHovered.value = true;
758
- return;
759
- }
760
- if (!isOpen.value) {
761
- hasRenderedInline.value = true;
762
- }
763
- menuContext.handleOpenChange(props.itemKey);
764
- };
765
- const focusFirstChild = async () => {
766
- await _vue.nextTick.call(void 0, );
767
- const titleEl2 = document.activeElement;
768
- if (titleEl2) _tigercatcore.focusFirstChildItem.call(void 0, titleEl2);
769
- };
770
- const handleTitleKeyDown = async (event) => {
771
- if (!menuContext || props.disabled) return;
772
- const current = event.currentTarget;
773
- const rootMenu = current.closest('ul[role="menu"]');
774
- const isRoot = _optionalChain([rootMenu, 'optionalAccess', _15 => _15.dataset, 'access', _16 => _16.tigerMenuRoot]) === "true";
775
- const { nextKey, prevKey } = _tigercatcore.getMenuNavigationKeys.call(void 0, menuContext.mode.value, isRoot);
776
- if (event.key === nextKey) {
777
- event.preventDefault();
778
- _tigercatcore.moveFocusInMenu.call(void 0, current, 1);
779
- return;
780
- }
781
- if (event.key === prevKey) {
782
- event.preventDefault();
783
- _tigercatcore.moveFocusInMenu.call(void 0, current, -1);
784
- return;
785
- }
786
- if (event.key === "Home") {
787
- event.preventDefault();
788
- _tigercatcore.focusMenuEdge.call(void 0, current, "start");
789
- return;
790
- }
791
- if (event.key === "End") {
792
- event.preventDefault();
793
- _tigercatcore.focusMenuEdge.call(void 0, current, "end");
794
- return;
795
- }
796
- if (event.key === "Escape" || event.key === "ArrowLeft") {
797
- if (menuContext.mode.value === "horizontal" || isPopup.value) {
798
- event.preventDefault();
799
- isOpenByKeyboard.value = false;
800
- isHovered.value = false;
801
- return;
802
- }
803
- if (isOpen.value) {
804
- event.preventDefault();
805
- menuContext.handleOpenChange(props.itemKey);
806
- }
807
- return;
808
- }
809
- if (event.key === "Enter" || event.key === " ") {
810
- event.preventDefault();
811
- if (menuContext.mode.value === "horizontal" || isPopup.value) {
812
- isOpenByKeyboard.value = true;
813
- return;
814
- }
815
- hasRenderedInline.value = true;
816
- menuContext.handleOpenChange(props.itemKey);
817
- await focusFirstChild();
818
- return;
819
- }
820
- if (event.key === "ArrowRight" || event.key === "ArrowDown") {
821
- if (menuContext.mode.value === "horizontal" || isPopup.value) {
822
- event.preventDefault();
823
- isOpenByKeyboard.value = true;
824
- return;
825
- }
826
- if (!isOpen.value) {
827
- event.preventDefault();
828
- hasRenderedInline.value = true;
829
- menuContext.handleOpenChange(props.itemKey);
830
- await focusFirstChild();
831
- }
832
- }
833
- };
834
- const handleMouseEnter = () => {
835
- if (popupCloseTimer) {
836
- clearTimeout(popupCloseTimer);
837
- popupCloseTimer = null;
838
- }
839
- if (_optionalChain([menuContext, 'optionalAccess', _17 => _17.mode, 'access', _18 => _18.value]) === "horizontal" || isPopup.value) {
840
- isHovered.value = true;
841
- }
842
- };
843
- const handleMouseLeave = () => {
844
- if (_optionalChain([menuContext, 'optionalAccess', _19 => _19.mode, 'access', _20 => _20.value]) === "horizontal" || isPopup.value) {
845
- const close = () => {
846
- isHovered.value = false;
847
- isOpenByKeyboard.value = false;
848
- };
849
- if (popupPortal.value) {
850
- popupCloseTimer = setTimeout(close, 120);
851
- return;
852
- }
853
- close();
854
- }
855
- };
856
- const indentStyle = _vue.computed.call(void 0, () => {
857
- if (!menuContext || menuContext.mode.value === "horizontal" || props.level === 0) {
858
- return {};
859
- }
860
- return _tigercatcore.getMenuItemIndent.call(void 0, props.level, menuContext.inlineIndent.value);
861
- });
862
- const withChildLevel = (nodes) => {
863
- if (!nodes || nodes.length === 0) return nodes;
864
- const nextLevel = props.level + 1;
865
- return nodes.map((node) => {
866
- if (!_vue.isVNode.call(void 0, node)) return node;
867
- const type = node.type;
868
- const name = typeof type === "object" && type != null && "name" in type ? type.name : void 0;
869
- const isTarget = name === "TigerMenuItem" || name === "TigerSubMenu" || name === "TigerMenuItemGroup";
870
- if (!isTarget) return node;
871
- const existingProps = _nullishCoalesce(node.props, () => ( {}));
872
- const nextProps = {
873
- level: _nullishCoalesce(existingProps.level, () => ( nextLevel))
874
- };
875
- if (existingProps.collapsed == null && isPopup.value) {
876
- nextProps.collapsed = false;
877
- }
878
- return _vue.cloneVNode.call(void 0, node, nextProps);
879
- });
880
- };
881
- return () => {
882
- if (!menuContext) return null;
883
- const titleChildren = [];
884
- const submenuIconClasses = effectiveCollapsed.value ? _tigercatcore.menuCollapsedIconClasses : _tigercatcore.menuItemIconClasses;
885
- if (props.icon) {
886
- if (typeof props.icon === "string") {
887
- titleChildren.push(
888
- _vue.h.call(void 0, "span", {
889
- class: submenuIconClasses,
890
- innerHTML: props.icon
891
- })
892
- );
893
- } else {
894
- titleChildren.push(_vue.h.call(void 0, "span", { class: submenuIconClasses }, props.icon));
895
- }
896
- }
897
- if (!effectiveCollapsed.value) {
898
- titleChildren.push(_vue.h.call(void 0, "span", { class: "flex-1" }, props.title));
899
- if (menuContext.mode.value !== "horizontal" && !isPopup.value) {
900
- titleChildren.push(ExpandIcon(isExpanded.value));
901
- }
902
- } else {
903
- if (!props.icon) {
904
- titleChildren.push(
905
- _vue.h.call(void 0,
906
- "span",
907
- { class: "flex-1 text-center", "aria-hidden": "true" },
908
- props.title.charAt(0).toUpperCase()
909
- )
910
- );
911
- }
912
- titleChildren.push(_vue.h.call(void 0, "span", { class: "sr-only" }, props.title));
913
- }
914
- const titleNode = _vue.h.call(void 0,
915
- "button",
916
- {
917
- type: "button",
918
- ref: titleEl,
919
- class: titleClasses.value,
920
- style: titleStyle.value,
921
- onClick: handleTitleClick,
922
- onKeydown: handleTitleKeyDown,
923
- role: "menuitem",
924
- "data-tiger-menuitem": "true",
925
- "aria-expanded": isExpanded.value ? "true" : "false",
926
- "aria-haspopup": "true",
927
- "aria-disabled": props.disabled ? "true" : void 0,
928
- "data-state": isExpanded.value ? "open" : "closed",
929
- disabled: props.disabled,
930
- tabindex: -1,
931
- ...passthroughAttrs.value
932
- },
933
- titleChildren
934
- );
935
- const popupContentNode = () => {
936
- const popupStyle = popupPortal.value ? {
937
- display: isExpanded.value ? "block" : "none",
938
- position: "absolute",
939
- left: `${popupX.value}px`,
940
- top: `${popupY.value}px`,
941
- transformOrigin: _tigercatcore.getTransformOrigin.call(void 0, currentPopupPlacement.value),
942
- ...popupZIndex.value
943
- } : {
944
- display: isExpanded.value ? "block" : "none",
945
- ...popupZIndex.value
946
- };
947
- const node = _vue.h.call(void 0,
948
- "ul",
949
- {
950
- ref: popupPortal.value ? popupEl : void 0,
951
- class: contentClasses.value,
952
- style: popupStyle,
953
- role: "menu",
954
- "aria-hidden": isExpanded.value ? void 0 : "true",
955
- onMouseenter: popupPortal.value ? handleMouseEnter : void 0,
956
- onMouseleave: popupPortal.value ? handleMouseLeave : void 0,
957
- "data-tiger-submenu-popup": ""
958
- },
959
- withChildLevel(_optionalChain([slots, 'access', _21 => _21.default, 'optionalCall', _22 => _22()]))
960
- );
961
- return popupPortal.value ? _chunkEQW6IUHGjs.renderVueBodyTeleport.call(void 0, node) : node;
962
- };
963
- const contentNode = isPopup.value ? popupContentNode() : hasRenderedInline.value ? _vue.h.call(void 0,
964
- "div",
965
- {
966
- ref: submenuContentEl,
967
- class: _tigercatcore.submenuHeightTransitionClasses,
968
- style: heightTransitionController ? void 0 : _tigercatcore.getInitialSubmenuHeightTransitionStyle.call(void 0, isExpanded.value),
969
- "aria-hidden": isExpanded.value ? void 0 : "true",
970
- "data-tiger-menu-hidden": isExpanded.value ? void 0 : "true",
971
- "data-tiger-submenu-motion": "height"
972
- },
973
- [
974
- _vue.h.call(void 0,
975
- "ul",
976
- {
977
- class: contentClasses.value,
978
- role: "menu"
979
- },
980
- withChildLevel(_optionalChain([slots, 'access', _23 => _23.default, 'optionalCall', _24 => _24()]))
981
- )
982
- ]
983
- ) : null;
984
- return _vue.h.call(void 0,
985
- "li",
986
- {
987
- class: isPopup.value && !popupPortal.value ? "relative" : "",
988
- onMouseenter: handleMouseEnter,
989
- onMouseleave: handleMouseLeave,
990
- role: "none"
991
- },
992
- [titleNode, contentNode]
993
- );
994
- };
995
- }
996
- });
997
-
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
- exports.MenuContextKey = MenuContextKey; exports.Menu = Menu; exports.Menu_default = Menu_default; exports.MenuItem = MenuItem; exports.MenuItemGroup = MenuItemGroup; exports.SubMenu = SubMenu;