@expcat/tigercat-vue 1.0.7 → 1.2.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.
- package/README.md +1 -1
- package/dist/chunk-25EYT2CB.js +139 -0
- package/dist/chunk-27T3QDSF.js +61 -48
- package/dist/chunk-2BNQGU7E.mjs +22 -4
- package/dist/{chunk-WBY2ILFK.js → chunk-2C5TOAYI.js} +12 -9
- package/dist/{chunk-YFD6RD7P.mjs → chunk-2GQE47OY.mjs} +86 -19
- package/dist/chunk-2KDSHEZT.js +41 -28
- package/dist/chunk-2LNNB55E.js +222 -0
- package/dist/{chunk-EZ6GXQMP.mjs → chunk-2PFP44AI.mjs} +61 -30
- package/dist/chunk-2R5HISQA.mjs +16 -4
- package/dist/chunk-2S5CNU36.js +40 -31
- package/dist/chunk-2TNZ4JNT.mjs +14 -4
- package/dist/{chunk-5G5Q3TTH.js → chunk-2VBUCW5G.js} +116 -88
- package/dist/chunk-2VOZFFW6.js +138 -0
- package/dist/chunk-2WJADO6O.mjs +19 -4
- package/dist/{chunk-RB7KVVWE.mjs → chunk-2X3ZPH2H.mjs} +50 -31
- package/dist/chunk-2YFXJUBT.js +40 -25
- package/dist/chunk-2ZUEXCVJ.mjs +9 -4
- package/dist/{chunk-TDL4BUUB.js → chunk-33YTJPF7.js} +81 -53
- package/dist/{chunk-HXLCWM2J.mjs → chunk-3A7H2CTW.mjs} +183 -14
- package/dist/chunk-3G4VPV4D.mjs +20 -4
- package/dist/chunk-3MC45EXP.mjs +13 -4
- package/dist/chunk-3QV2D54H.js +55 -37
- package/dist/{chunk-QDNTISP7.mjs → chunk-3W4CM7KO.mjs} +31 -32
- package/dist/chunk-43BLH7DE.js +49 -37
- package/dist/chunk-44N7LE3Q.js +568 -0
- package/dist/chunk-46DEQQMB.mjs +11 -4
- package/dist/{chunk-243JSTYQ.mjs → chunk-4CWRNKPE.mjs} +36 -5
- package/dist/chunk-4DWOTV7J.js +369 -0
- package/dist/chunk-4K2CCBFT.mjs +30 -4
- package/dist/chunk-4OOR4524.js +910 -0
- package/dist/chunk-4YHOD7LT.mjs +13 -4
- package/dist/chunk-5436FG3B.js +136 -0
- package/dist/chunk-54VVFMYI.js +13 -14
- package/dist/chunk-57MJTNDL.js +25 -20
- package/dist/{chunk-JGUXQMYL.mjs → chunk-5D2UAWWP.mjs} +57 -8
- package/dist/chunk-5F6P5Y4K.js +115 -0
- package/dist/chunk-5JKQPOG2.js +133 -0
- package/dist/chunk-5PXTMXXS.js +27 -20
- package/dist/chunk-5UOAWXOQ.js +243 -0
- package/dist/{chunk-W5A4E4C7.js → chunk-5VSKQLK3.js} +216 -105
- package/dist/chunk-5WG4OFXH.mjs +133 -0
- package/dist/{chunk-LW3LFCRZ.mjs → chunk-5X3GXNGM.mjs} +83 -15
- package/dist/{chunk-PLGYRHPX.mjs → chunk-5ZAIW5W3.mjs} +9 -3
- package/dist/{chunk-3PQ2I5IQ.mjs → chunk-6DVWLGSZ.mjs} +43 -18
- package/dist/chunk-6FXYRDYH.js +30 -25
- package/dist/chunk-6HM77SWE.js +392 -0
- package/dist/chunk-6V7XCCXN.mjs +8 -4
- package/dist/chunk-7ADONGSB.js +49 -0
- package/dist/chunk-7LUATGJU.mjs +27 -4
- package/dist/{chunk-MADOTDW7.mjs → chunk-7PY6OQVE.mjs} +37 -30
- package/dist/chunk-7QX4QWWN.js +194 -0
- package/dist/{chunk-CU4M5ABS.mjs → chunk-7RIWAO2A.mjs} +55 -7
- package/dist/chunk-7SFB77JR.mjs +192 -0
- package/dist/chunk-7W3NALIL.mjs +165 -0
- package/dist/chunk-A5HHG53Z.js +135 -0
- package/dist/{chunk-Q57TYGO4.js → chunk-A5HRX7EG.js} +44 -27
- package/dist/chunk-A7FN3S4I.js +150 -0
- package/dist/{chunk-BKTQ6RWR.js → chunk-ACYYQJ6M.js} +20 -20
- package/dist/chunk-AGVXMB4Q.js +164 -0
- package/dist/{chunk-T52TU2RW.mjs → chunk-AXDBME5A.mjs} +43 -21
- package/dist/{chunk-D6AWPRGV.js → chunk-B2RH4CMG.js} +157 -36
- package/dist/chunk-B67RJSXR.mjs +142 -0
- package/dist/chunk-BEIPGX74.mjs +233 -0
- package/dist/chunk-BEIZXMHW.js +470 -0
- package/dist/{chunk-PBWSBNDS.js → chunk-BGMAWKWV.js} +208 -101
- package/dist/chunk-BGMQIUPP.js +409 -0
- package/dist/{chunk-564LMZQL.mjs → chunk-BMT5PGAQ.mjs} +40 -22
- package/dist/chunk-BPAN6T7H.mjs +16 -4
- package/dist/chunk-BYNMOQBB.js +54 -42
- package/dist/chunk-BZBVSB43.js +37 -28
- package/dist/{chunk-GMYSHJCU.mjs → chunk-C7VGTRHE.mjs} +31 -10
- package/dist/chunk-CBECE4ZO.mjs +373 -0
- package/dist/chunk-CKXZONMO.js +18 -14
- package/dist/{chunk-J7VTGSHX.mjs → chunk-CN7HFUFN.mjs} +97 -189
- package/dist/chunk-COCECPMG.mjs +17 -4
- package/dist/chunk-CPV7INZ4.mjs +10 -4
- package/dist/{chunk-2SK6T4WB.js → chunk-CSJQKBDJ.js} +90 -45
- package/dist/chunk-CWNEDREV.js +165 -0
- package/dist/chunk-CWQOEU6G.js +373 -0
- package/dist/{chunk-Z2NMFYF4.mjs → chunk-CZALMJH3.mjs} +31 -9
- package/dist/chunk-D3U2NJ32.mjs +154 -0
- package/dist/{chunk-YYZBVHVC.mjs → chunk-D74XCQCK.mjs} +78 -12
- package/dist/{chunk-6A57RY3H.mjs → chunk-DBTS5QBX.mjs} +15 -5
- package/dist/{chunk-M6PEW6V5.mjs → chunk-DDNRF5U7.mjs} +96 -20
- package/dist/{chunk-46XPSPG4.js → chunk-DE5WMG6P.js} +69 -53
- package/dist/{chunk-T77L326M.mjs → chunk-DEJKRMMU.mjs} +81 -6
- package/dist/{chunk-XYYZAQ6Z.mjs → chunk-DIQGHFAT.mjs} +8 -6
- package/dist/{chunk-S276SM7L.mjs → chunk-DMV26JNR.mjs} +44 -29
- package/dist/{chunk-7DGAOCPX.mjs → chunk-DQFTTJJ5.mjs} +209 -134
- package/dist/{chunk-EJCHNSVG.mjs → chunk-DTUTHYQY.mjs} +10 -7
- package/dist/chunk-DUQ7Q2GO.js +10 -9
- package/dist/chunk-DYSLYJ2W.js +29 -25
- package/dist/chunk-DZXZ3YEL.js +137 -0
- package/dist/chunk-E2GQSWHK.mjs +14 -4
- package/dist/{chunk-LRHJZP2C.mjs → chunk-E6RGBYI3.mjs} +138 -32
- package/dist/chunk-EJNPSYTS.js +44 -0
- package/dist/{chunk-TW64ZNZY.mjs → chunk-EKWJTB5H.mjs} +92 -10
- package/dist/chunk-EL2224DN.js +291 -0
- package/dist/chunk-EQDCFOWR.mjs +243 -0
- package/dist/chunk-ETTYERGO.js +23 -17
- package/dist/chunk-EZXW4HIZ.mjs +19 -4
- package/dist/{chunk-4BMFV4CH.mjs → chunk-F7G7K3TF.mjs} +79 -86
- package/dist/{chunk-S2PMAXBQ.js → chunk-FAYSOSR7.js} +127 -59
- package/dist/chunk-FC7RXQTM.js +30 -20
- package/dist/{chunk-WB6JGQWN.js → chunk-FE2HR4E5.js} +68 -48
- package/dist/chunk-FIV4PKWT.js +26 -20
- package/dist/{chunk-I5K3R4FN.mjs → chunk-FMH4CLSA.mjs} +37 -5
- package/dist/chunk-FP7SBCPO.js +253 -0
- package/dist/chunk-FQWEOBQ4.mjs +231 -0
- package/dist/{chunk-SEKYX56R.js → chunk-FRI62O2J.js} +104 -69
- package/dist/chunk-FUGSQXFR.js +65 -42
- package/dist/{chunk-VITTXNTD.js → chunk-FUI6WG2F.js} +248 -110
- package/dist/chunk-FXS5GHQZ.js +388 -0
- package/dist/{chunk-MKLJ2LJW.mjs → chunk-G36MH6G4.mjs} +57 -19
- package/dist/chunk-G3SWTL27.js +45 -29
- package/dist/{chunk-LFV3KYO2.js → chunk-GDKYQ7U6.js} +94 -75
- package/dist/{chunk-U2K7CF67.js → chunk-GIQQOHDA.js} +60 -64
- package/dist/{chunk-D2I2NNYI.js → chunk-GL6KRUVO.js} +71 -49
- package/dist/chunk-GOBWUEHV.js +197 -0
- package/dist/{chunk-665NGSV3.mjs → chunk-GQAVLQEZ.mjs} +19 -12
- package/dist/chunk-GQPSQJ5I.mjs +6 -4
- package/dist/{chunk-IOBJYUUO.mjs → chunk-GVZRR2WP.mjs} +49 -29
- package/dist/chunk-H4F4G2E4.mjs +84 -0
- package/dist/chunk-HBFFINAI.js +13 -11
- package/dist/chunk-HKRMZODL.mjs +246 -0
- package/dist/chunk-HVVPFQW2.mjs +19 -4
- package/dist/chunk-I4LQXUMW.js +13 -14
- package/dist/chunk-IGSAOYXD.mjs +11 -4
- package/dist/{chunk-MYFQ3B2D.mjs → chunk-IKEZDGRO.mjs} +48 -14
- package/dist/chunk-IZF4VHJ2.mjs +23 -4
- package/dist/{chunk-TG4PXQKX.mjs → chunk-J73M5UTG.mjs} +101 -8
- package/dist/{chunk-4DJ2HAYO.js → chunk-JAAIL4XS.js} +24 -16
- package/dist/chunk-JCMGBKS6.js +23 -17
- package/dist/chunk-JDCVS4SJ.js +162 -0
- package/dist/{chunk-BFS7XO3E.js → chunk-JFIVDZFK.js} +85 -67
- package/dist/{chunk-6XU5PSC2.js → chunk-JKEF7NB3.js} +94 -46
- package/dist/chunk-JKZ5ZRDG.js +136 -0
- package/dist/{chunk-P4X7GS2X.mjs → chunk-JL526HSV.mjs} +66 -17
- package/dist/{chunk-CODQKVQV.js → chunk-K2DJDJZR.js} +25 -22
- package/dist/{chunk-MX2KCWM2.js → chunk-K3CIXMN4.js} +65 -46
- package/dist/{chunk-5XF5IAUD.mjs → chunk-K5ZZZ4TL.mjs} +112 -52
- package/dist/{chunk-2J54DRDA.js → chunk-KA7DILCI.js} +208 -99
- package/dist/chunk-KDA4XDXT.js +67 -0
- package/dist/chunk-KOTSKHPQ.mjs +19 -4
- package/dist/{chunk-4L5UYIV6.mjs → chunk-KU2Q5V3L.mjs} +54 -8
- package/dist/{chunk-UWL2XUAH.mjs → chunk-KVJIJJ4M.mjs} +116 -8
- package/dist/chunk-KY3O3FWK.mjs +367 -0
- package/dist/{chunk-YH7N5GZF.mjs → chunk-KZP3B3FQ.mjs} +41 -20
- package/dist/chunk-LBGTABIU.mjs +20 -4
- package/dist/chunk-LDDGBB3V.mjs +910 -0
- package/dist/{chunk-WNF7XUX4.mjs → chunk-LFKY2QRD.mjs} +140 -15
- package/dist/chunk-LG6KGO5D.js +161 -0
- package/dist/{chunk-LV3BMS4U.mjs → chunk-LILAZ4UJ.mjs} +146 -37
- package/dist/{chunk-EXQSRZJX.mjs → chunk-LL4ASJ4O.mjs} +39 -18
- package/dist/chunk-LWDA7ABQ.js +121 -0
- package/dist/{chunk-5NOZXKMU.js → chunk-M2XA7VU5.js} +107 -75
- package/dist/{chunk-2SCIJ2RW.mjs → chunk-M3G6LJKZ.mjs} +14 -5
- package/dist/{chunk-FK2XBMC3.mjs → chunk-M5PGWW25.mjs} +158 -17
- package/dist/chunk-M7EBWJZ5.mjs +9 -4
- package/dist/{chunk-ECUROLZ7.js → chunk-MFYBHMQL.js} +277 -205
- package/dist/chunk-MHNCH2YI.js +231 -0
- package/dist/chunk-MI6TL3CQ.mjs +12 -4
- package/dist/chunk-MKBIVETW.mjs +12 -4
- package/dist/chunk-MNH3KNSN.js +49 -37
- package/dist/chunk-MQ23PX3S.js +218 -0
- package/dist/chunk-MSKAWM7K.js +73 -0
- package/dist/{chunk-JN63Z5E5.js → chunk-MUJLT2YG.js} +224 -119
- package/dist/{chunk-LAAPLTP3.js → chunk-NCFY3VXA.js} +14 -15
- package/dist/{chunk-NVJRZYES.mjs → chunk-NDS2DLUS.mjs} +79 -14
- package/dist/{chunk-W2WGLETE.mjs → chunk-NHBN6VAY.mjs} +98 -37
- package/dist/chunk-NMVKDWMK.mjs +1324 -0
- package/dist/{chunk-WLKOJFOC.mjs → chunk-NNNG6NIA.mjs} +25 -5
- package/dist/chunk-NOZ65AMO.js +32 -22
- package/dist/{chunk-TYFUO6PE.mjs → chunk-NWS45JQP.mjs} +139 -25
- package/dist/{chunk-NHCCPMLC.mjs → chunk-NZUQ2KCW.mjs} +103 -20
- package/dist/{chunk-LGVPLGK3.mjs → chunk-OCL22D5E.mjs} +49 -34
- package/dist/chunk-ODQOYMUQ.js +72 -0
- package/dist/{chunk-FXGIIFGN.mjs → chunk-OK4PVFQG.mjs} +12 -10
- package/dist/{chunk-UNR5RUET.mjs → chunk-OKR3GRG5.mjs} +137 -25
- package/dist/chunk-OW5D4LU6.js +1324 -0
- package/dist/chunk-OXIODAJS.js +192 -0
- package/dist/{chunk-4Y2SJZB5.js → chunk-P7RXZVLT.js} +78 -62
- package/dist/chunk-PCJHGWTU.js +269 -0
- package/dist/{chunk-Q6OYCTQO.mjs → chunk-PCUUTKQZ.mjs} +43 -4
- package/dist/{chunk-RSBAFDUA.mjs → chunk-PENI3H3I.mjs} +39 -13
- package/dist/chunk-PQMZ3YN3.js +37 -25
- package/dist/{chunk-BQEVLY2O.mjs → chunk-PUSTYAMS.mjs} +166 -22
- package/dist/chunk-PVPLDEC5.mjs +6 -4
- package/dist/chunk-PXRF4IJO.mjs +17 -4
- package/dist/chunk-PY6P4N2Q.js +393 -0
- package/dist/{chunk-QNODDATK.mjs → chunk-PYT5DTQQ.mjs} +149 -39
- package/dist/{chunk-XNORTTVQ.mjs → chunk-PZH2RTSS.mjs} +92 -3
- package/dist/chunk-Q4MH333P.js +18 -16
- package/dist/{chunk-AGAJJYP2.js → chunk-QO2JYX6Q.js} +142 -62
- package/dist/chunk-QRAV345L.js +88 -0
- package/dist/{chunk-THEYWGOT.js → chunk-QUIRQ7OA.js} +127 -65
- package/dist/chunk-QY6PYAJA.js +73 -53
- package/dist/chunk-QYSFZA5V.js +353 -0
- package/dist/chunk-QZ5OPNL4.mjs +88 -0
- package/dist/{chunk-DU2NXX75.mjs → chunk-R2HO74FE.mjs} +19 -5
- package/dist/chunk-RDJZOMI6.js +84 -0
- package/dist/{chunk-GTSS7RAT.mjs → chunk-RFFPMC22.mjs} +149 -10
- package/dist/{chunk-3ICMBQPM.mjs → chunk-RHAIJVMW.mjs} +86 -14
- package/dist/chunk-RKZN3URO.js +181 -0
- package/dist/chunk-RY2I56HB.js +36 -24
- package/dist/{chunk-GA5S2KNZ.js → chunk-S6K6IR3Y.js} +225 -119
- package/dist/{chunk-AAO2B46J.js → chunk-S6Q7TD6H.js} +153 -67
- package/dist/{chunk-FDYZ7NTQ.mjs → chunk-SC3WTLKG.mjs} +94 -24
- package/dist/{chunk-YYRJA6VQ.mjs → chunk-SCRSO3ES.mjs} +61 -22
- package/dist/chunk-SCSGLSPY.mjs +393 -0
- package/dist/{chunk-HSXB2ASL.mjs → chunk-SEDENBOO.mjs} +125 -16
- package/dist/chunk-SGRUGYQ6.mjs +568 -0
- package/dist/chunk-SLYUQ67P.js +39 -30
- package/dist/{chunk-35VYCSVH.js → chunk-SVWZOIBI.js} +101 -70
- package/dist/chunk-SWOQMMOT.js +18 -14
- package/dist/chunk-T4DF24UV.js +26 -20
- package/dist/{chunk-RQREJGY3.js → chunk-TAU447CL.js} +53 -34
- package/dist/{chunk-OXOCGMPN.mjs → chunk-TGIXSJI3.mjs} +39 -5
- package/dist/chunk-TLXEFLPA.js +13 -14
- package/dist/chunk-TOE2XSEO.js +119 -0
- package/dist/{chunk-SAMKKXAW.mjs → chunk-TOOENSVT.mjs} +15 -4
- package/dist/{chunk-DBPY5M7Y.mjs → chunk-TSF5O3MA.mjs} +25 -6
- package/dist/chunk-U36NBQWP.js +192 -0
- package/dist/{chunk-HFCVHAQ6.mjs → chunk-UAD2XROX.mjs} +47 -12
- package/dist/{chunk-URYEEQD7.mjs → chunk-UANF7XE5.mjs} +41 -14
- package/dist/chunk-UHVUKLHF.js +112 -0
- package/dist/chunk-UI7N2ZDU.js +142 -0
- package/dist/chunk-ULUH6UNV.js +238 -0
- package/dist/{chunk-M7JUNLA7.mjs → chunk-UM5GGKIX.mjs} +34 -20
- package/dist/{chunk-ABPOLQLE.mjs → chunk-UMQUWX7U.mjs} +37 -15
- package/dist/{chunk-ZA2PLF7O.mjs → chunk-UNTTADHL.mjs} +19 -6
- package/dist/chunk-UQK22ZMC.mjs +19 -4
- package/dist/{chunk-HK2TAPQX.js → chunk-UUJ7A3CN.js} +126 -61
- package/dist/{chunk-KFE7T7CN.js → chunk-V32X2OEO.js} +64 -34
- package/dist/chunk-VAXO5NEM.js +320 -0
- package/dist/chunk-VG6E4NX6.mjs +139 -0
- package/dist/chunk-VIIGYWUY.mjs +13 -4
- package/dist/chunk-VJ6YM2EW.mjs +192 -0
- package/dist/chunk-VL7GENWD.mjs +6 -4
- package/dist/chunk-VPNIZPIF.js +356 -0
- package/dist/{chunk-F5HOHSFH.mjs → chunk-VVS2CQS4.mjs} +10 -7
- package/dist/chunk-VXULMOIW.js +374 -0
- package/dist/{chunk-BUTNEKFD.js → chunk-W55GCQ2D.js} +73 -56
- package/dist/chunk-W5RZPTFD.mjs +112 -0
- package/dist/{chunk-NAHD6ZRR.mjs → chunk-W6ZFHHD3.mjs} +23 -16
- package/dist/{chunk-DVFDA2P2.mjs → chunk-WE4DGU2T.mjs} +14 -7
- package/dist/chunk-WFISP42H.mjs +17 -4
- package/dist/chunk-WGNJHM34.js +230 -0
- package/dist/chunk-WM4ESIHG.mjs +13 -4
- package/dist/chunk-WPIDP6IG.js +35 -25
- package/dist/chunk-WQXZ3234.mjs +19 -4
- package/dist/{chunk-K2U3FEL7.js → chunk-WUEP3PFN.js} +133 -61
- package/dist/chunk-X5CFXNVK.js +246 -0
- package/dist/chunk-X6FG4RPF.js +367 -0
- package/dist/chunk-XGXGAK27.js +40 -28
- package/dist/chunk-XH4ZZ6KJ.js +427 -0
- package/dist/chunk-XJXGVNNF.js +120 -0
- package/dist/chunk-XSMDZOBF.js +154 -0
- package/dist/chunk-XTMGF5YP.js +27 -21
- package/dist/chunk-XUOGT4HG.js +76 -0
- package/dist/{chunk-QK3KKTYV.js → chunk-XY4A73TK.js} +23 -25
- package/dist/chunk-XZMU7B54.js +230 -0
- package/dist/{chunk-KYQAAQKV.mjs → chunk-Y3BQSELH.mjs} +62 -11
- package/dist/chunk-Y4V7BOVR.mjs +18 -4
- package/dist/chunk-YEHKQ3JZ.mjs +13 -4
- package/dist/{chunk-JM3ZZYTE.mjs → chunk-YSUT2GRP.mjs} +62 -13
- package/dist/chunk-YZP4K6KI.mjs +25 -4
- package/dist/{chunk-W3Y22PMU.mjs → chunk-Z2ZECCGD.mjs} +9 -8
- package/dist/{chunk-AGQNHT65.mjs → chunk-Z4SG7REU.mjs} +64 -6
- package/dist/{chunk-NMGH5YTV.mjs → chunk-Z7ETXBOL.mjs} +31 -8
- package/dist/chunk-ZED7TU62.js +22 -16
- package/dist/chunk-ZIOGRGN5.mjs +120 -0
- package/dist/chunk-ZMGNQKXL.js +233 -0
- package/dist/{chunk-I2B4CO22.mjs → chunk-ZMNX4SCS.mjs} +14 -13
- package/dist/chunk-ZNVQ2OFX.js +13 -11
- package/dist/{chunk-EPE6OOV7.js → chunk-ZOUJFFG4.js} +21 -22
- package/dist/{chunk-U5ABMOOV.js → chunk-ZSCOAOJJ.js} +106 -94
- package/dist/{chunk-OMYSFPX6.mjs → chunk-ZSQ5I2KL.mjs} +54 -33
- package/dist/chunk-ZUPVK5L7.js +838 -0
- package/dist/chunk-ZWVA7HT3.mjs +14 -4
- package/dist/components/ActivityFeed.d.mts +3 -3
- package/dist/components/ActivityFeed.d.ts +3 -3
- package/dist/components/ActivityFeed.js +5 -13
- package/dist/components/ActivityFeed.mjs +16 -9
- package/dist/components/Affix.d.mts +1 -1
- package/dist/components/Affix.d.ts +1 -1
- package/dist/components/Affix.js +3 -12
- package/dist/components/Affix.mjs +8 -2
- package/dist/components/Alert.d.mts +3 -3
- package/dist/components/Alert.d.ts +3 -3
- package/dist/components/Alert.js +3 -12
- package/dist/components/Alert.mjs +9 -3
- package/dist/components/Anchor.d.mts +74 -9
- package/dist/components/Anchor.d.ts +74 -9
- package/dist/components/Anchor.js +7 -16
- package/dist/components/Anchor.mjs +12 -2
- package/dist/components/AnchorLink.d.mts +6 -67
- package/dist/components/AnchorLink.d.ts +6 -67
- package/dist/components/AnchorLink.js +5 -13
- package/dist/components/AnchorLink.mjs +10 -3
- package/dist/components/AreaChart.d.mts +21 -3
- package/dist/components/AreaChart.d.ts +21 -3
- package/dist/components/AreaChart.js +7 -16
- package/dist/components/AreaChart.mjs +15 -9
- package/dist/components/AutoComplete.d.mts +1 -1
- package/dist/components/AutoComplete.d.ts +1 -1
- package/dist/components/AutoComplete.js +3 -12
- package/dist/components/AutoComplete.mjs +8 -2
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +3 -12
- package/dist/components/Avatar.mjs +8 -2
- package/dist/components/AvatarGroup.js +5 -16
- package/dist/components/AvatarGroup.mjs +10 -2
- package/dist/components/BackTop.d.mts +3 -3
- package/dist/components/BackTop.d.ts +3 -3
- package/dist/components/BackTop.js +3 -12
- package/dist/components/BackTop.mjs +8 -2
- package/dist/components/Badge.d.mts +2 -2
- package/dist/components/Badge.d.ts +2 -2
- package/dist/components/Badge.js +3 -12
- package/dist/components/Badge.mjs +8 -2
- package/dist/components/BarChart.d.mts +1 -1
- package/dist/components/BarChart.d.ts +1 -1
- package/dist/components/BarChart.js +7 -16
- package/dist/components/BarChart.mjs +15 -9
- package/dist/components/Breadcrumb.d.mts +135 -4
- package/dist/components/Breadcrumb.d.ts +135 -4
- package/dist/components/Breadcrumb.js +7 -16
- package/dist/components/Breadcrumb.mjs +12 -2
- package/dist/components/BreadcrumbItem.d.mts +6 -135
- package/dist/components/BreadcrumbItem.d.ts +6 -135
- package/dist/components/BreadcrumbItem.js +5 -13
- package/dist/components/BreadcrumbItem.mjs +10 -3
- package/dist/components/Button.d.mts +2 -2
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +3 -12
- package/dist/components/Button.mjs +8 -2
- package/dist/components/ButtonGroup.js +5 -16
- package/dist/components/ButtonGroup.mjs +10 -2
- package/dist/components/Calendar.js +3 -12
- package/dist/components/Calendar.mjs +8 -2
- package/dist/components/Card.d.mts +3 -3
- package/dist/components/Card.d.ts +3 -3
- package/dist/components/Card.js +3 -12
- package/dist/components/Card.mjs +8 -2
- package/dist/components/Carousel.d.mts +2 -2
- package/dist/components/Carousel.d.ts +2 -2
- package/dist/components/Carousel.js +3 -12
- package/dist/components/Carousel.mjs +8 -2
- package/dist/components/Cascader.d.mts +1 -1
- package/dist/components/Cascader.d.ts +1 -1
- package/dist/components/Cascader.js +3 -12
- package/dist/components/Cascader.mjs +8 -2
- package/dist/components/ChartAxis.js +3 -12
- package/dist/components/ChartAxis.mjs +8 -2
- package/dist/components/ChartCanvas.d.mts +9 -0
- package/dist/components/ChartCanvas.d.ts +9 -0
- package/dist/components/ChartCanvas.js +3 -12
- package/dist/components/ChartCanvas.mjs +8 -2
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ChartGrid.js +3 -12
- package/dist/components/ChartGrid.mjs +8 -2
- package/dist/components/ChartLegend.js +3 -12
- package/dist/components/ChartLegend.mjs +8 -2
- package/dist/components/ChartSeries.js +3 -12
- package/dist/components/ChartSeries.mjs +8 -2
- package/dist/components/ChartTooltip.js +3 -12
- package/dist/components/ChartTooltip.mjs +8 -2
- package/dist/components/ChatWindow.d.mts +37 -1
- package/dist/components/ChatWindow.d.ts +37 -1
- package/dist/components/ChatWindow.js +5 -13
- package/dist/components/ChatWindow.mjs +13 -6
- package/dist/components/Checkbox.js +3 -12
- package/dist/components/Checkbox.mjs +9 -3
- package/dist/components/CheckboxGroup.d.mts +1 -1
- package/dist/components/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxGroup.js +5 -16
- package/dist/components/CheckboxGroup.mjs +10 -2
- package/dist/components/Code.d.mts +1 -1
- package/dist/components/Code.d.ts +1 -1
- package/dist/components/Code.js +3 -12
- package/dist/components/Code.mjs +8 -2
- package/dist/components/CodeEditor.d.mts +18 -2
- package/dist/components/CodeEditor.d.ts +18 -2
- package/dist/components/CodeEditor.js +3 -12
- package/dist/components/CodeEditor.mjs +8 -2
- package/dist/components/Col.js +4 -9
- package/dist/components/Col.mjs +7 -3
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/Collapse.js +5 -16
- package/dist/components/Collapse.mjs +10 -2
- package/dist/components/CollapsePanel.d.mts +2 -2
- package/dist/components/CollapsePanel.d.ts +2 -2
- package/dist/components/CollapsePanel.js +4 -13
- package/dist/components/CollapsePanel.mjs +9 -3
- package/dist/components/ColorPicker.d.mts +1 -1
- package/dist/components/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker.js +3 -12
- package/dist/components/ColorPicker.mjs +8 -2
- package/dist/components/ColorSwatch.d.mts +79 -0
- package/dist/components/ColorSwatch.d.ts +79 -0
- package/dist/components/ColorSwatch.js +8 -0
- package/dist/components/ColorSwatch.mjs +8 -0
- package/dist/components/CommentThread.d.mts +2 -2
- package/dist/components/CommentThread.d.ts +2 -2
- package/dist/components/CommentThread.js +4 -13
- package/dist/components/CommentThread.mjs +13 -7
- package/dist/components/ConfigProvider.d.mts +38 -8
- package/dist/components/ConfigProvider.d.ts +38 -8
- package/dist/components/ConfigProvider.js +14 -25
- package/dist/components/ConfigProvider.mjs +14 -2
- package/dist/components/Container.d.mts +8 -2
- package/dist/components/Container.d.ts +8 -2
- package/dist/components/Container.js +3 -12
- package/dist/components/Container.mjs +8 -2
- package/dist/components/Content.d.mts +1 -1
- package/dist/components/Content.d.ts +1 -1
- package/dist/components/Content.js +3 -12
- package/dist/components/Content.mjs +8 -2
- package/dist/components/Countdown.d.mts +107 -0
- package/dist/components/Countdown.d.ts +107 -0
- package/dist/components/Countdown.js +8 -0
- package/dist/components/Countdown.mjs +8 -0
- package/dist/components/CronEditor.d.mts +80 -0
- package/dist/components/CronEditor.d.ts +80 -0
- package/dist/components/CronEditor.js +8 -0
- package/dist/components/CronEditor.mjs +8 -0
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/CropUpload.d.ts +1 -1
- package/dist/components/CropUpload.js +7 -15
- package/dist/components/CropUpload.mjs +12 -5
- package/dist/components/DataTableWithToolbar.d.mts +9 -9
- package/dist/components/DataTableWithToolbar.d.ts +9 -9
- package/dist/components/DataTableWithToolbar.js +6 -16
- package/dist/components/DataTableWithToolbar.mjs +12 -7
- package/dist/components/DatePicker.d.mts +8 -8
- package/dist/components/DatePicker.d.ts +8 -8
- package/dist/components/DatePicker.js +3 -12
- package/dist/components/DatePicker.mjs +9 -3
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/Descriptions.js +3 -12
- package/dist/components/Descriptions.mjs +8 -2
- package/dist/components/Divider.d.mts +8 -1
- package/dist/components/Divider.d.ts +8 -1
- package/dist/components/Divider.js +3 -12
- package/dist/components/Divider.mjs +8 -2
- package/dist/components/DonutChart.d.mts +11 -2
- package/dist/components/DonutChart.d.ts +11 -2
- package/dist/components/DonutChart.js +8 -17
- package/dist/components/DonutChart.mjs +14 -8
- package/dist/components/Drawer.d.mts +6 -8
- package/dist/components/Drawer.d.ts +6 -8
- package/dist/components/Drawer.js +4 -13
- package/dist/components/Drawer.mjs +9 -3
- package/dist/components/Dropdown.d.mts +36 -4
- package/dist/components/Dropdown.d.ts +36 -4
- package/dist/components/Dropdown.js +8 -18
- package/dist/components/Dropdown.mjs +13 -4
- package/dist/components/DropdownItem.d.mts +1 -1
- package/dist/components/DropdownItem.d.ts +1 -1
- package/dist/components/DropdownItem.js +5 -15
- package/dist/components/DropdownItem.mjs +10 -5
- package/dist/components/DropdownMenu.d.mts +6 -36
- package/dist/components/DropdownMenu.d.ts +6 -36
- package/dist/components/DropdownMenu.js +6 -12
- package/dist/components/DropdownMenu.mjs +11 -2
- package/dist/components/Empty.d.mts +1 -1
- package/dist/components/Empty.d.ts +1 -1
- package/dist/components/Empty.js +3 -12
- package/dist/components/Empty.mjs +8 -2
- package/dist/components/FileManager.d.mts +1 -1
- package/dist/components/FileManager.d.ts +1 -1
- package/dist/components/FileManager.js +3 -12
- package/dist/components/FileManager.mjs +8 -2
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/FloatButton.d.ts +4 -4
- package/dist/components/FloatButton.js +5 -16
- package/dist/components/FloatButton.mjs +10 -2
- package/dist/components/Footer.d.mts +1 -1
- package/dist/components/Footer.d.ts +1 -1
- package/dist/components/Footer.js +3 -12
- package/dist/components/Footer.mjs +8 -2
- package/dist/components/Form.d.mts +41 -3
- package/dist/components/Form.d.ts +41 -3
- package/dist/components/Form.js +5 -16
- package/dist/components/Form.mjs +10 -2
- package/dist/components/FormItem.d.mts +24 -3
- package/dist/components/FormItem.d.ts +24 -3
- package/dist/components/FormItem.js +4 -13
- package/dist/components/FormItem.mjs +9 -3
- package/dist/components/FormWizard.d.mts +6 -6
- package/dist/components/FormWizard.d.ts +6 -6
- package/dist/components/FormWizard.js +6 -16
- package/dist/components/FormWizard.mjs +11 -6
- package/dist/components/FunnelChart.d.mts +10 -1
- package/dist/components/FunnelChart.d.ts +10 -1
- package/dist/components/FunnelChart.js +7 -16
- package/dist/components/FunnelChart.mjs +13 -7
- package/dist/components/Gantt.d.mts +231 -0
- package/dist/components/Gantt.d.ts +231 -0
- package/dist/components/Gantt.js +9 -0
- package/dist/components/Gantt.mjs +9 -0
- package/dist/components/GaugeChart.d.mts +10 -1
- package/dist/components/GaugeChart.d.ts +10 -1
- package/dist/components/GaugeChart.js +4 -13
- package/dist/components/GaugeChart.mjs +9 -3
- package/dist/components/Header.d.mts +1 -1
- package/dist/components/Header.d.ts +1 -1
- package/dist/components/Header.js +3 -12
- package/dist/components/Header.mjs +8 -2
- package/dist/components/HeatmapChart.d.mts +24 -0
- package/dist/components/HeatmapChart.d.ts +24 -0
- package/dist/components/HeatmapChart.js +6 -15
- package/dist/components/HeatmapChart.mjs +11 -5
- package/dist/components/Icon.js +3 -12
- package/dist/components/Icon.mjs +8 -2
- package/dist/components/Image.d.mts +2 -3
- package/dist/components/Image.d.ts +2 -3
- package/dist/components/Image.js +6 -17
- package/dist/components/Image.mjs +11 -3
- package/dist/components/ImageAnnotation.d.mts +179 -0
- package/dist/components/ImageAnnotation.d.ts +179 -0
- package/dist/components/ImageAnnotation.js +8 -0
- package/dist/components/ImageAnnotation.mjs +8 -0
- package/dist/components/ImageCropper.d.mts +2 -2
- package/dist/components/ImageCropper.d.ts +2 -2
- package/dist/components/ImageCropper.js +3 -12
- package/dist/components/ImageCropper.mjs +8 -2
- package/dist/components/ImageGroup.js +6 -17
- package/dist/components/ImageGroup.mjs +11 -3
- package/dist/components/ImagePreview.d.mts +2 -2
- package/dist/components/ImagePreview.d.ts +2 -2
- package/dist/components/ImagePreview.js +4 -13
- package/dist/components/ImagePreview.mjs +8 -5
- package/dist/components/ImageViewer.js +3 -12
- package/dist/components/ImageViewer.mjs +8 -2
- package/dist/components/InfiniteScroll.d.mts +2 -2
- package/dist/components/InfiniteScroll.d.ts +2 -2
- package/dist/components/InfiniteScroll.js +3 -12
- package/dist/components/InfiniteScroll.mjs +8 -2
- package/dist/components/Input.d.mts +2 -2
- package/dist/components/Input.d.ts +2 -2
- package/dist/components/Input.js +3 -12
- package/dist/components/Input.mjs +8 -2
- package/dist/components/InputGroup.js +12 -25
- package/dist/components/InputGroup.mjs +12 -2
- package/dist/components/InputNumber.d.mts +3 -3
- package/dist/components/InputNumber.d.ts +3 -3
- package/dist/components/InputNumber.js +3 -12
- package/dist/components/InputNumber.mjs +8 -2
- package/dist/components/Kanban.d.mts +1 -1
- package/dist/components/Kanban.d.ts +1 -1
- package/dist/components/Kanban.js +5 -14
- package/dist/components/Kanban.mjs +10 -4
- package/dist/components/Layout.d.mts +1 -1
- package/dist/components/Layout.d.ts +1 -1
- package/dist/components/Layout.js +3 -12
- package/dist/components/Layout.mjs +8 -2
- package/dist/components/LineChart.d.mts +19 -1
- package/dist/components/LineChart.d.ts +19 -1
- package/dist/components/LineChart.js +7 -16
- package/dist/components/LineChart.mjs +15 -9
- package/dist/components/Link.d.mts +11 -2
- package/dist/components/Link.d.ts +11 -2
- package/dist/components/Link.js +3 -12
- package/dist/components/Link.mjs +8 -2
- package/dist/components/List.d.mts +65 -3
- package/dist/components/List.d.ts +65 -3
- package/dist/components/List.js +4 -12
- package/dist/components/List.mjs +9 -2
- package/dist/components/Loading.d.mts +23 -5
- package/dist/components/Loading.d.ts +23 -5
- package/dist/components/Loading.js +4 -12
- package/dist/components/Loading.mjs +9 -2
- package/dist/components/MarkdownEditor.d.mts +149 -0
- package/dist/components/MarkdownEditor.d.ts +149 -0
- package/dist/components/MarkdownEditor.js +8 -0
- package/dist/components/MarkdownEditor.mjs +8 -0
- package/dist/components/Mentions.d.mts +1 -1
- package/dist/components/Mentions.d.ts +1 -1
- package/dist/components/Mentions.js +3 -12
- package/dist/components/Mentions.mjs +8 -2
- package/dist/components/Menu.d.mts +335 -6
- package/dist/components/Menu.d.ts +335 -6
- package/dist/components/Menu.js +11 -16
- package/dist/components/Menu.mjs +16 -2
- package/dist/components/MenuItem.d.mts +6 -95
- package/dist/components/MenuItem.d.ts +6 -95
- package/dist/components/MenuItem.js +5 -13
- package/dist/components/MenuItem.mjs +10 -3
- package/dist/components/MenuItemGroup.d.mts +6 -57
- package/dist/components/MenuItemGroup.d.ts +6 -57
- package/dist/components/MenuItemGroup.js +5 -12
- package/dist/components/MenuItemGroup.mjs +10 -2
- package/dist/components/Message.d.mts +6 -1
- package/dist/components/Message.d.ts +6 -1
- package/dist/components/Message.js +5 -16
- package/dist/components/Message.mjs +11 -3
- package/dist/components/Modal.d.mts +26 -10
- package/dist/components/Modal.d.ts +26 -10
- package/dist/components/Modal.js +5 -13
- package/dist/components/Modal.mjs +10 -3
- package/dist/components/Notification.d.mts +6 -1
- package/dist/components/Notification.d.ts +6 -1
- package/dist/components/Notification.js +5 -16
- package/dist/components/Notification.mjs +11 -3
- package/dist/components/NotificationCenter.d.mts +4 -4
- package/dist/components/NotificationCenter.d.ts +4 -4
- package/dist/components/NotificationCenter.js +9 -17
- package/dist/components/NotificationCenter.mjs +16 -9
- package/dist/components/NumberKeyboard.d.mts +145 -0
- package/dist/components/NumberKeyboard.d.ts +145 -0
- package/dist/components/NumberKeyboard.js +8 -0
- package/dist/components/NumberKeyboard.mjs +8 -0
- package/dist/components/OrgChart.d.mts +195 -0
- package/dist/components/OrgChart.d.ts +195 -0
- package/dist/components/OrgChart.js +9 -0
- package/dist/components/OrgChart.mjs +9 -0
- package/dist/components/Pagination.d.mts +31 -9
- package/dist/components/Pagination.d.ts +31 -9
- package/dist/components/Pagination.js +3 -12
- package/dist/components/Pagination.mjs +8 -2
- package/dist/components/PieChart.d.mts +11 -2
- package/dist/components/PieChart.d.ts +11 -2
- package/dist/components/PieChart.js +7 -16
- package/dist/components/PieChart.mjs +13 -7
- package/dist/components/Popconfirm.d.mts +7 -7
- package/dist/components/Popconfirm.d.ts +7 -7
- package/dist/components/Popconfirm.js +5 -14
- package/dist/components/Popconfirm.mjs +10 -4
- package/dist/components/Popover.d.mts +4 -4
- package/dist/components/Popover.d.ts +4 -4
- package/dist/components/Popover.js +5 -14
- package/dist/components/Popover.mjs +10 -4
- package/dist/components/PrintLayout.js +5 -16
- package/dist/components/PrintLayout.mjs +10 -2
- package/dist/components/Progress.d.mts +4 -4
- package/dist/components/Progress.d.ts +4 -4
- package/dist/components/Progress.js +3 -12
- package/dist/components/Progress.mjs +8 -2
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.d.ts +1 -1
- package/dist/components/QRCode.js +3 -12
- package/dist/components/QRCode.mjs +8 -2
- package/dist/components/RadarChart.d.mts +31 -4
- package/dist/components/RadarChart.d.ts +31 -4
- package/dist/components/RadarChart.js +7 -16
- package/dist/components/RadarChart.mjs +13 -7
- package/dist/components/Radio.js +3 -12
- package/dist/components/Radio.mjs +9 -3
- package/dist/components/RadioGroup.d.mts +1 -1
- package/dist/components/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup.js +5 -16
- package/dist/components/RadioGroup.mjs +10 -2
- package/dist/components/Rate.d.mts +1 -1
- package/dist/components/Rate.d.ts +1 -1
- package/dist/components/Rate.js +3 -12
- package/dist/components/Rate.mjs +8 -2
- package/dist/components/Resizable.d.mts +1 -1
- package/dist/components/Resizable.d.ts +1 -1
- package/dist/components/Resizable.js +3 -12
- package/dist/components/Resizable.mjs +8 -2
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/Result.d.ts +1 -1
- package/dist/components/Result.js +3 -12
- package/dist/components/Result.mjs +9 -3
- package/dist/components/RichTextEditor.d.mts +21 -5
- package/dist/components/RichTextEditor.d.ts +21 -5
- package/dist/components/RichTextEditor.js +3 -12
- package/dist/components/RichTextEditor.mjs +8 -2
- package/dist/components/Row.d.mts +2 -2
- package/dist/components/Row.d.ts +2 -2
- package/dist/components/Row.js +4 -11
- package/dist/components/Row.mjs +8 -2
- package/dist/components/ScatterChart.d.mts +1 -1
- package/dist/components/ScatterChart.d.ts +1 -1
- package/dist/components/ScatterChart.js +7 -16
- package/dist/components/ScatterChart.mjs +15 -9
- package/dist/components/ScrollSpy.d.mts +125 -0
- package/dist/components/ScrollSpy.d.ts +125 -0
- package/dist/components/ScrollSpy.js +8 -0
- package/dist/components/ScrollSpy.mjs +8 -0
- package/dist/components/Segmented.d.mts +1 -1
- package/dist/components/Segmented.d.ts +1 -1
- package/dist/components/Segmented.js +3 -12
- package/dist/components/Segmented.mjs +8 -2
- package/dist/components/Select.d.mts +75 -3
- package/dist/components/Select.d.ts +75 -3
- package/dist/components/Select.js +3 -12
- package/dist/components/Select.mjs +8 -2
- package/dist/components/Sidebar.d.mts +1 -1
- package/dist/components/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar.js +3 -12
- package/dist/components/Sidebar.mjs +8 -2
- package/dist/components/Signature.d.mts +154 -0
- package/dist/components/Signature.d.ts +154 -0
- package/dist/components/Signature.js +8 -0
- package/dist/components/Signature.mjs +8 -0
- package/dist/components/Skeleton.d.mts +2 -2
- package/dist/components/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton.js +3 -12
- package/dist/components/Skeleton.mjs +8 -2
- package/dist/components/Slider.d.mts +2 -2
- package/dist/components/Slider.d.ts +2 -2
- package/dist/components/Slider.js +3 -12
- package/dist/components/Slider.mjs +8 -2
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/Space.d.ts +2 -2
- package/dist/components/Space.js +3 -12
- package/dist/components/Space.mjs +8 -2
- package/dist/components/Splitter.d.mts +2 -2
- package/dist/components/Splitter.d.ts +2 -2
- package/dist/components/Splitter.js +3 -12
- package/dist/components/Splitter.mjs +8 -2
- package/dist/components/Spotlight.d.mts +198 -0
- package/dist/components/Spotlight.d.ts +198 -0
- package/dist/components/Spotlight.js +9 -0
- package/dist/components/Spotlight.mjs +9 -0
- package/dist/components/Statistic.d.mts +20 -2
- package/dist/components/Statistic.d.ts +20 -2
- package/dist/components/Statistic.js +3 -12
- package/dist/components/Statistic.mjs +8 -2
- package/dist/components/Stepper.d.mts +1 -1
- package/dist/components/Stepper.d.ts +1 -1
- package/dist/components/Stepper.js +3 -12
- package/dist/components/Stepper.mjs +8 -2
- package/dist/components/Steps.d.mts +140 -3
- package/dist/components/Steps.d.ts +140 -3
- package/dist/components/Steps.js +7 -16
- package/dist/components/Steps.mjs +12 -2
- package/dist/components/StepsItem.d.mts +6 -141
- package/dist/components/StepsItem.d.ts +6 -141
- package/dist/components/StepsItem.js +5 -13
- package/dist/components/StepsItem.mjs +10 -3
- package/dist/components/SubMenu.d.mts +6 -117
- package/dist/components/SubMenu.d.ts +6 -117
- package/dist/components/SubMenu.js +5 -13
- package/dist/components/SubMenu.mjs +10 -3
- package/dist/components/SunburstChart.d.mts +10 -1
- package/dist/components/SunburstChart.d.ts +10 -1
- package/dist/components/SunburstChart.js +7 -16
- package/dist/components/SunburstChart.mjs +13 -7
- package/dist/components/Switch.d.mts +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.js +3 -12
- package/dist/components/Switch.mjs +8 -2
- package/dist/components/TabPane.d.mts +6 -169
- package/dist/components/TabPane.d.ts +6 -169
- package/dist/components/TabPane.js +5 -13
- package/dist/components/TabPane.mjs +10 -3
- package/dist/components/Table.d.mts +326 -396
- package/dist/components/Table.d.ts +326 -396
- package/dist/components/Table.js +3 -12
- package/dist/components/Table.mjs +8 -2
- package/dist/components/Tabs.d.mts +187 -2
- package/dist/components/Tabs.d.ts +187 -2
- package/dist/components/Tabs.js +7 -16
- package/dist/components/Tabs.mjs +12 -2
- package/dist/components/Tag.d.mts +3 -3
- package/dist/components/Tag.d.ts +3 -3
- package/dist/components/Tag.js +3 -12
- package/dist/components/Tag.mjs +8 -2
- package/dist/components/TaskBoard.d.mts +1 -1
- package/dist/components/TaskBoard.d.ts +1 -1
- package/dist/components/TaskBoard.js +4 -13
- package/dist/components/TaskBoard.mjs +9 -3
- package/dist/components/Text.d.mts +2 -2
- package/dist/components/Text.d.ts +2 -2
- package/dist/components/Text.js +3 -12
- package/dist/components/Text.mjs +8 -2
- package/dist/components/Textarea.d.mts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/Textarea.js +3 -12
- package/dist/components/Textarea.mjs +8 -2
- package/dist/components/TimePicker.d.mts +4 -4
- package/dist/components/TimePicker.d.ts +4 -4
- package/dist/components/TimePicker.js +3 -12
- package/dist/components/TimePicker.mjs +9 -3
- package/dist/components/Timeline.d.mts +1 -1
- package/dist/components/Timeline.d.ts +1 -1
- package/dist/components/Timeline.js +3 -12
- package/dist/components/Timeline.mjs +8 -2
- package/dist/components/Tooltip.d.mts +3 -3
- package/dist/components/Tooltip.d.ts +3 -3
- package/dist/components/Tooltip.js +5 -14
- package/dist/components/Tooltip.mjs +10 -4
- package/dist/components/Tour.d.mts +15 -5
- package/dist/components/Tour.d.ts +15 -5
- package/dist/components/Tour.js +3 -12
- package/dist/components/Tour.mjs +9 -3
- package/dist/components/Transfer.d.mts +1 -1
- package/dist/components/Transfer.d.ts +1 -1
- package/dist/components/Transfer.js +3 -12
- package/dist/components/Transfer.mjs +8 -2
- package/dist/components/Tree.d.mts +51 -2
- package/dist/components/Tree.d.ts +51 -2
- package/dist/components/Tree.js +4 -12
- package/dist/components/Tree.mjs +9 -2
- package/dist/components/TreeMapChart.d.mts +10 -1
- package/dist/components/TreeMapChart.d.ts +10 -1
- package/dist/components/TreeMapChart.js +7 -16
- package/dist/components/TreeMapChart.mjs +13 -7
- package/dist/components/TreeSelect.d.mts +1 -1
- package/dist/components/TreeSelect.d.ts +1 -1
- package/dist/components/TreeSelect.js +3 -12
- package/dist/components/TreeSelect.mjs +8 -2
- package/dist/components/Upload.d.mts +48 -4
- package/dist/components/Upload.d.ts +48 -4
- package/dist/components/Upload.js +4 -13
- package/dist/components/Upload.mjs +9 -3
- package/dist/components/VirtualList.d.mts +29 -0
- package/dist/components/VirtualList.d.ts +29 -0
- package/dist/components/VirtualList.js +3 -12
- package/dist/components/VirtualList.mjs +8 -2
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/VirtualTable.d.ts +3 -3
- package/dist/components/VirtualTable.js +3 -12
- package/dist/components/VirtualTable.mjs +8 -2
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/components/Watermark.js +3 -12
- package/dist/components/Watermark.mjs +8 -2
- package/dist/index.d.mts +50 -27
- package/dist/index.d.ts +50 -27
- package/dist/index.js +766 -729
- package/dist/index.mjs +755 -151
- package/package.json +15 -10
- package/dist/chunk-2WZGK7XJ.js +0 -113
- package/dist/chunk-34ZZLKQ4.js +0 -184
- package/dist/chunk-3AM6WEUE.mjs +0 -174
- package/dist/chunk-3FVWZYBQ.js +0 -196
- package/dist/chunk-3G7QYQYL.js +0 -95
- package/dist/chunk-53M2BTB5.mjs +0 -22
- package/dist/chunk-5AXCKK6Z.js +0 -290
- package/dist/chunk-5JSU44MQ.js +0 -242
- package/dist/chunk-5WHLXWWT.mjs +0 -68
- package/dist/chunk-5Y3HYEQD.js +0 -64
- package/dist/chunk-6DP7XE77.js +0 -267
- package/dist/chunk-6VG6ARQG.js +0 -206
- package/dist/chunk-7UU4PULK.mjs +0 -138
- package/dist/chunk-7VSD3NPI.js +0 -397
- package/dist/chunk-AFKNO6SF.js +0 -76
- package/dist/chunk-AN3HKOCS.mjs +0 -50
- package/dist/chunk-BMW2Z3G3.mjs +0 -94
- package/dist/chunk-BNIUWON3.js +0 -243
- package/dist/chunk-CG3AMK5U.mjs +0 -38
- package/dist/chunk-CQPHZU3H.mjs +0 -73
- package/dist/chunk-DN5GU5PC.js +0 -186
- package/dist/chunk-EBQ4WSQS.js +0 -97
- package/dist/chunk-ELEAQEMV.mjs +0 -61
- package/dist/chunk-ESALMEHU.js +0 -343
- package/dist/chunk-EZZG57TK.js +0 -44
- package/dist/chunk-FCV4ML6I.js +0 -71
- package/dist/chunk-FLAJKB2O.js +0 -126
- package/dist/chunk-FOF7UBMU.js +0 -180
- package/dist/chunk-G4ZD6COW.js +0 -324
- package/dist/chunk-GHPSCR6M.js +0 -69
- package/dist/chunk-GJFT5IQR.js +0 -118
- package/dist/chunk-GLW3P75K.js +0 -72
- package/dist/chunk-HKYYO326.mjs +0 -238
- package/dist/chunk-HRIKUP6R.js +0 -106
- package/dist/chunk-HTG6ISVH.mjs +0 -1094
- package/dist/chunk-I2BZURVP.js +0 -70
- package/dist/chunk-I6RGE7XQ.js +0 -152
- package/dist/chunk-IVTBNUKQ.js +0 -118
- package/dist/chunk-JHY57P4P.mjs +0 -69
- package/dist/chunk-JIMDJWZZ.js +0 -52
- package/dist/chunk-JSIQIWYP.js +0 -41
- package/dist/chunk-KI35GUL5.js +0 -184
- package/dist/chunk-LHPBK4MG.js +0 -92
- package/dist/chunk-LLU76X6I.js +0 -245
- package/dist/chunk-MVIHUPCX.js +0 -62
- package/dist/chunk-N5I5Y5JG.js +0 -53
- package/dist/chunk-NOTJRUAK.js +0 -142
- package/dist/chunk-NXGCLBVG.js +0 -268
- package/dist/chunk-O2Q4UYDA.js +0 -504
- package/dist/chunk-O2SABM5H.js +0 -178
- package/dist/chunk-PCGHIFIJ.js +0 -140
- package/dist/chunk-PICYE2CM.js +0 -176
- package/dist/chunk-PNKVD2UK.js +0 -26
- package/dist/chunk-Q6CGPWQF.js +0 -104
- package/dist/chunk-QDFUM2QT.js +0 -672
- package/dist/chunk-R77ZKZ5F.js +0 -251
- package/dist/chunk-RDV4BMTK.js +0 -64
- package/dist/chunk-TT5LWQIZ.js +0 -1097
- package/dist/chunk-TTDBR2B4.mjs +0 -340
- package/dist/chunk-U6WHPSWN.mjs +0 -83
- package/dist/chunk-U7CCKZAG.js +0 -125
- package/dist/chunk-UHGRUTGW.js +0 -175
- package/dist/chunk-UPPRQ3ZS.js +0 -132
- package/dist/chunk-UUGAOKYR.js +0 -113
- package/dist/chunk-V4PBWEAU.js +0 -62
- package/dist/chunk-VDNAGLQJ.js +0 -176
- package/dist/chunk-VTLTKTCK.js +0 -87
- package/dist/chunk-W6TMZ7ZT.js +0 -207
- package/dist/chunk-WCZGYU7M.js +0 -215
- package/dist/chunk-XCJONKFL.mjs +0 -173
- package/dist/chunk-XFZZWZ6Q.js +0 -149
- package/dist/chunk-XGJWUZWS.js +0 -356
- package/dist/chunk-XP5M2GK7.mjs +0 -57
- package/dist/chunk-XQKIMRRF.js +0 -146
- package/dist/chunk-XV5DEK27.js +0 -360
- package/dist/chunk-YUEBMBOH.mjs +0 -103
- package/dist/chunk-ZUVR5UZL.mjs +0 -264
- package/dist/chunk-ZXR4DAAO.mjs +0 -240
|
@@ -0,0 +1,910 @@
|
|
|
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; }// src/components/Menu.ts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _vue = require('vue');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
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
|
+
var _tigercatcore = require('@expcat/tigercat-core');
|
|
49
|
+
var MenuContextKey = /* @__PURE__ */ Symbol("MenuContext");
|
|
50
|
+
var Menu = _vue.defineComponent.call(void 0, {
|
|
51
|
+
name: "TigerMenu",
|
|
52
|
+
inheritAttrs: false,
|
|
53
|
+
props: {
|
|
54
|
+
/**
|
|
55
|
+
* Data-driven menu items
|
|
56
|
+
*/
|
|
57
|
+
items: {
|
|
58
|
+
type: Array,
|
|
59
|
+
default: void 0
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* Menu mode - horizontal, vertical, or inline
|
|
63
|
+
* @default 'vertical'
|
|
64
|
+
*/
|
|
65
|
+
mode: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: "vertical"
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* Menu theme - light or dark
|
|
71
|
+
* @default 'light'
|
|
72
|
+
*/
|
|
73
|
+
theme: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "light"
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Currently selected menu item keys
|
|
79
|
+
*/
|
|
80
|
+
selectedKeys: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Default selected menu item keys
|
|
86
|
+
*/
|
|
87
|
+
defaultSelectedKeys: {
|
|
88
|
+
type: Array,
|
|
89
|
+
default: () => []
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Currently opened submenu keys (for vertical/inline mode)
|
|
93
|
+
*/
|
|
94
|
+
openKeys: {
|
|
95
|
+
type: Array,
|
|
96
|
+
default: void 0
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* Default opened submenu keys
|
|
100
|
+
*/
|
|
101
|
+
defaultOpenKeys: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => []
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* Whether the menu is collapsed (for vertical mode)
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
collapsed: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: false
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* Whether multiple submenus can be opened at once
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
multiple: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: true
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
* Inline indentation for submenu items
|
|
123
|
+
* @default 24
|
|
124
|
+
*/
|
|
125
|
+
inlineIndent: {
|
|
126
|
+
type: Number,
|
|
127
|
+
default: 24
|
|
128
|
+
},
|
|
129
|
+
className: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: void 0
|
|
132
|
+
},
|
|
133
|
+
style: {
|
|
134
|
+
type: Object,
|
|
135
|
+
default: void 0
|
|
136
|
+
},
|
|
137
|
+
searchable: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: false
|
|
140
|
+
},
|
|
141
|
+
searchValue: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: void 0
|
|
144
|
+
},
|
|
145
|
+
defaultSearchValue: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: ""
|
|
148
|
+
},
|
|
149
|
+
searchPlaceholder: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: "Search menu"
|
|
152
|
+
},
|
|
153
|
+
emptyText: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: "No menu items found"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
emits: [
|
|
159
|
+
"update:selectedKeys",
|
|
160
|
+
"update:openKeys",
|
|
161
|
+
"update:searchValue",
|
|
162
|
+
"select",
|
|
163
|
+
"open-change",
|
|
164
|
+
"search"
|
|
165
|
+
],
|
|
166
|
+
setup(props, { slots, emit, attrs }) {
|
|
167
|
+
const menuEl = _vue.ref.call(void 0, null);
|
|
168
|
+
const internalSelectedKeys = _vue.ref.call(void 0, props.defaultSelectedKeys);
|
|
169
|
+
const internalOpenKeys = _vue.ref.call(void 0, props.defaultOpenKeys);
|
|
170
|
+
const internalSearchValue = _vue.ref.call(void 0, props.defaultSearchValue);
|
|
171
|
+
const currentSelectedKeys = _vue.computed.call(void 0, () => {
|
|
172
|
+
return props.selectedKeys !== void 0 ? props.selectedKeys : internalSelectedKeys.value;
|
|
173
|
+
});
|
|
174
|
+
const currentOpenKeys = _vue.computed.call(void 0, () => {
|
|
175
|
+
return props.openKeys !== void 0 ? props.openKeys : internalOpenKeys.value;
|
|
176
|
+
});
|
|
177
|
+
const handleSelect = (key) => {
|
|
178
|
+
const newSelectedKeys = _tigercatcore.replaceKeys.call(void 0, key, currentSelectedKeys.value);
|
|
179
|
+
if (props.selectedKeys === void 0) {
|
|
180
|
+
internalSelectedKeys.value = newSelectedKeys;
|
|
181
|
+
}
|
|
182
|
+
emit("update:selectedKeys", newSelectedKeys);
|
|
183
|
+
emit("select", key, { selectedKeys: newSelectedKeys });
|
|
184
|
+
};
|
|
185
|
+
const handleOpenChange = (key) => {
|
|
186
|
+
const toggled = _tigercatcore.toggleKey.call(void 0, key, currentOpenKeys.value);
|
|
187
|
+
const newOpenKeys = props.multiple ? toggled : toggled.includes(key) ? [key] : [];
|
|
188
|
+
if (props.openKeys === void 0) {
|
|
189
|
+
internalOpenKeys.value = newOpenKeys;
|
|
190
|
+
}
|
|
191
|
+
emit("update:openKeys", newOpenKeys);
|
|
192
|
+
emit("open-change", key, { openKeys: newOpenKeys });
|
|
193
|
+
};
|
|
194
|
+
const handleSearchInput = (event) => {
|
|
195
|
+
const value = event.target.value;
|
|
196
|
+
if (props.searchValue === void 0) {
|
|
197
|
+
internalSearchValue.value = value;
|
|
198
|
+
}
|
|
199
|
+
emit("update:searchValue", value);
|
|
200
|
+
emit("search", value);
|
|
201
|
+
};
|
|
202
|
+
const menuClasses = _vue.computed.call(void 0, () => {
|
|
203
|
+
return _tigercatcore.classNames.call(void 0,
|
|
204
|
+
_tigercatcore.getMenuClasses.call(void 0, props.mode, props.theme, props.collapsed),
|
|
205
|
+
props.className,
|
|
206
|
+
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
207
|
+
);
|
|
208
|
+
});
|
|
209
|
+
const menuStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
|
|
210
|
+
const currentSearchValue = _vue.computed.call(void 0, () => {
|
|
211
|
+
return props.searchValue !== void 0 ? props.searchValue : internalSearchValue.value;
|
|
212
|
+
});
|
|
213
|
+
const filteredItems = _vue.computed.call(void 0,
|
|
214
|
+
() => _tigercatcore.filterMenuItems.call(void 0, _nullishCoalesce(props.items, () => ( [])), currentSearchValue.value)
|
|
215
|
+
);
|
|
216
|
+
const passthroughAttrs = _vue.computed.call(void 0, () => {
|
|
217
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
218
|
+
return rest;
|
|
219
|
+
});
|
|
220
|
+
const modeRef = _vue.computed.call(void 0, () => props.mode);
|
|
221
|
+
const themeRef = _vue.computed.call(void 0, () => props.theme);
|
|
222
|
+
const collapsedRef = _vue.computed.call(void 0, () => props.collapsed);
|
|
223
|
+
const inlineIndentRef = _vue.computed.call(void 0, () => props.inlineIndent);
|
|
224
|
+
_vue.provide.call(void 0, MenuContextKey, {
|
|
225
|
+
mode: modeRef,
|
|
226
|
+
theme: themeRef,
|
|
227
|
+
collapsed: collapsedRef,
|
|
228
|
+
inlineIndent: inlineIndentRef,
|
|
229
|
+
selectedKeys: currentSelectedKeys,
|
|
230
|
+
openKeys: currentOpenKeys,
|
|
231
|
+
handleSelect,
|
|
232
|
+
handleOpenChange
|
|
233
|
+
});
|
|
234
|
+
const runRovingTabIndex = async () => {
|
|
235
|
+
await _vue.nextTick.call(void 0, );
|
|
236
|
+
if (menuEl.value) _tigercatcore.initRovingTabIndex.call(void 0, menuEl.value);
|
|
237
|
+
};
|
|
238
|
+
_vue.onMounted.call(void 0, () => {
|
|
239
|
+
void runRovingTabIndex();
|
|
240
|
+
});
|
|
241
|
+
_vue.watch.call(void 0,
|
|
242
|
+
[modeRef, collapsedRef, currentSelectedKeys, currentOpenKeys, filteredItems],
|
|
243
|
+
() => {
|
|
244
|
+
void runRovingTabIndex();
|
|
245
|
+
},
|
|
246
|
+
{ deep: true }
|
|
247
|
+
);
|
|
248
|
+
return () => {
|
|
249
|
+
const renderDataItem = (item) => {
|
|
250
|
+
if (item.children && item.children.length > 0) {
|
|
251
|
+
return _vue.h.call(void 0,
|
|
252
|
+
SubMenu,
|
|
253
|
+
{
|
|
254
|
+
key: item.key,
|
|
255
|
+
itemKey: item.key,
|
|
256
|
+
title: item.label,
|
|
257
|
+
icon: item.icon,
|
|
258
|
+
disabled: item.disabled
|
|
259
|
+
},
|
|
260
|
+
() => item.children.map(renderDataItem)
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
return _vue.h.call(void 0,
|
|
264
|
+
MenuItem,
|
|
265
|
+
{
|
|
266
|
+
key: item.key,
|
|
267
|
+
itemKey: item.key,
|
|
268
|
+
icon: item.icon,
|
|
269
|
+
disabled: item.disabled
|
|
270
|
+
},
|
|
271
|
+
() => item.label
|
|
272
|
+
);
|
|
273
|
+
};
|
|
274
|
+
const dataChildren = filteredItems.value.map(renderDataItem);
|
|
275
|
+
const slotChildren = _nullishCoalesce(_optionalChain([slots, 'access', _ => _.default, 'optionalCall', _2 => _2()]), () => ( []));
|
|
276
|
+
const searchChild = props.searchable ? [
|
|
277
|
+
_vue.h.call(void 0, "li", { role: "none", class: _tigercatcore.menuSearchFieldClasses }, [
|
|
278
|
+
_vue.h.call(void 0, "input", {
|
|
279
|
+
type: "search",
|
|
280
|
+
value: currentSearchValue.value,
|
|
281
|
+
placeholder: props.searchPlaceholder,
|
|
282
|
+
class: _tigercatcore.menuSearchInputClasses,
|
|
283
|
+
"aria-label": props.searchPlaceholder,
|
|
284
|
+
onInput: handleSearchInput
|
|
285
|
+
})
|
|
286
|
+
])
|
|
287
|
+
] : [];
|
|
288
|
+
const emptyChild = props.items && props.items.length > 0 && dataChildren.length === 0 && slotChildren.length === 0 ? [
|
|
289
|
+
_vue.h.call(void 0, "li", { role: "none" }, [
|
|
290
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.menuSearchEmptyClasses }, props.emptyText)
|
|
291
|
+
])
|
|
292
|
+
] : [];
|
|
293
|
+
return _vue.h.call(void 0,
|
|
294
|
+
"ul",
|
|
295
|
+
{
|
|
296
|
+
ref: menuEl,
|
|
297
|
+
class: menuClasses.value,
|
|
298
|
+
style: menuStyle.value,
|
|
299
|
+
role: "menu",
|
|
300
|
+
"data-tiger-menu-root": "true",
|
|
301
|
+
"data-tiger-menu-mode": props.mode,
|
|
302
|
+
...passthroughAttrs.value
|
|
303
|
+
},
|
|
304
|
+
[...searchChild, ...dataChildren, ...slotChildren, ...emptyChild]
|
|
305
|
+
);
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
var Menu_default = Menu;
|
|
310
|
+
var MenuItem = _vue.defineComponent.call(void 0, {
|
|
311
|
+
name: "TigerMenuItem",
|
|
312
|
+
props: {
|
|
313
|
+
/**
|
|
314
|
+
* Unique key for the menu item
|
|
315
|
+
*/
|
|
316
|
+
itemKey: {
|
|
317
|
+
type: [String, Number],
|
|
318
|
+
required: true
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Whether the menu item is disabled
|
|
322
|
+
*/
|
|
323
|
+
disabled: {
|
|
324
|
+
type: Boolean,
|
|
325
|
+
default: false
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Icon for the menu item
|
|
329
|
+
*/
|
|
330
|
+
icon: {
|
|
331
|
+
type: [String, Object]
|
|
332
|
+
},
|
|
333
|
+
level: {
|
|
334
|
+
type: Number,
|
|
335
|
+
default: 0
|
|
336
|
+
},
|
|
337
|
+
collapsed: {
|
|
338
|
+
type: Boolean,
|
|
339
|
+
default: void 0
|
|
340
|
+
},
|
|
341
|
+
className: {
|
|
342
|
+
type: String,
|
|
343
|
+
default: void 0
|
|
344
|
+
},
|
|
345
|
+
style: {
|
|
346
|
+
type: Object,
|
|
347
|
+
default: void 0
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
inheritAttrs: false,
|
|
351
|
+
setup(props, { slots, attrs }) {
|
|
352
|
+
const menuContext = _vue.inject.call(void 0, MenuContextKey);
|
|
353
|
+
if (!menuContext) {
|
|
354
|
+
console.warn("MenuItem must be used within Menu component");
|
|
355
|
+
}
|
|
356
|
+
const isSelected = _vue.computed.call(void 0, () => {
|
|
357
|
+
if (!menuContext) return false;
|
|
358
|
+
return _tigercatcore.isKeySelected.call(void 0, props.itemKey, menuContext.selectedKeys.value);
|
|
359
|
+
});
|
|
360
|
+
const itemClasses = _vue.computed.call(void 0, () => {
|
|
361
|
+
if (!menuContext) {
|
|
362
|
+
return _tigercatcore.classNames.call(void 0,
|
|
363
|
+
"flex items-center px-4 py-2 cursor-pointer transition-colors duration-200"
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
const effectiveCollapsed = _nullishCoalesce(props.collapsed, () => ( menuContext.collapsed.value));
|
|
367
|
+
return _tigercatcore.classNames.call(void 0,
|
|
368
|
+
_tigercatcore.getMenuItemClasses.call(void 0,
|
|
369
|
+
isSelected.value,
|
|
370
|
+
props.disabled,
|
|
371
|
+
menuContext.theme.value,
|
|
372
|
+
effectiveCollapsed
|
|
373
|
+
),
|
|
374
|
+
props.className,
|
|
375
|
+
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
376
|
+
);
|
|
377
|
+
});
|
|
378
|
+
const indentStyle = _vue.computed.call(void 0, () => {
|
|
379
|
+
if (!menuContext || menuContext.mode.value !== "inline" || props.level === 0) {
|
|
380
|
+
return {};
|
|
381
|
+
}
|
|
382
|
+
return _tigercatcore.getMenuItemIndent.call(void 0, props.level, menuContext.inlineIndent.value);
|
|
383
|
+
});
|
|
384
|
+
const itemStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style, indentStyle.value));
|
|
385
|
+
const passthroughAttrs = _vue.computed.call(void 0, () => {
|
|
386
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
387
|
+
return rest;
|
|
388
|
+
});
|
|
389
|
+
const handleClick = () => {
|
|
390
|
+
if (!props.disabled && menuContext) {
|
|
391
|
+
menuContext.handleSelect(props.itemKey);
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
const handleKeyDown = (event) => {
|
|
395
|
+
if (!menuContext) return;
|
|
396
|
+
const current = event.currentTarget;
|
|
397
|
+
const rootMenu = current.closest('ul[role="menu"]');
|
|
398
|
+
const isRoot = _optionalChain([rootMenu, 'optionalAccess', _3 => _3.dataset, 'access', _4 => _4.tigerMenuRoot]) === "true";
|
|
399
|
+
const isHorizontalRoot = isRoot && menuContext.mode.value === "horizontal";
|
|
400
|
+
const nextKey = isHorizontalRoot ? "ArrowRight" : "ArrowDown";
|
|
401
|
+
const prevKey = isHorizontalRoot ? "ArrowLeft" : "ArrowUp";
|
|
402
|
+
if (event.key === nextKey) {
|
|
403
|
+
event.preventDefault();
|
|
404
|
+
_tigercatcore.moveFocusInMenu.call(void 0, current, 1);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (event.key === prevKey) {
|
|
408
|
+
event.preventDefault();
|
|
409
|
+
_tigercatcore.moveFocusInMenu.call(void 0, current, -1);
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
if (event.key === "Home") {
|
|
413
|
+
event.preventDefault();
|
|
414
|
+
_tigercatcore.focusMenuEdge.call(void 0, current, "start");
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (event.key === "End") {
|
|
418
|
+
event.preventDefault();
|
|
419
|
+
_tigercatcore.focusMenuEdge.call(void 0, current, "end");
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
423
|
+
event.preventDefault();
|
|
424
|
+
handleClick();
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
return () => {
|
|
428
|
+
const children = [];
|
|
429
|
+
const effectiveCollapsed = _nullishCoalesce(props.collapsed, () => ( (menuContext ? menuContext.collapsed.value : false)));
|
|
430
|
+
if (props.icon) {
|
|
431
|
+
if (typeof props.icon === "string") {
|
|
432
|
+
children.push(
|
|
433
|
+
_vue.h.call(void 0, "span", {
|
|
434
|
+
class: _tigercatcore.menuItemIconClasses,
|
|
435
|
+
innerHTML: props.icon
|
|
436
|
+
})
|
|
437
|
+
);
|
|
438
|
+
} else {
|
|
439
|
+
children.push(_vue.h.call(void 0, "span", { class: _tigercatcore.menuItemIconClasses }, props.icon));
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (!effectiveCollapsed && slots.default) {
|
|
443
|
+
children.push(_vue.h.call(void 0, "span", { class: "flex-1" }, slots.default()));
|
|
444
|
+
} else if (effectiveCollapsed && !props.icon && slots.default) {
|
|
445
|
+
const defaultSlot = slots.default();
|
|
446
|
+
if (defaultSlot && defaultSlot.length > 0) {
|
|
447
|
+
const text = String(defaultSlot[0].children || "");
|
|
448
|
+
children.push(_vue.h.call(void 0, "span", { class: "flex-1 text-center" }, text.charAt(0).toUpperCase()));
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
return _vue.h.call(void 0,
|
|
452
|
+
"li",
|
|
453
|
+
{
|
|
454
|
+
role: "none"
|
|
455
|
+
},
|
|
456
|
+
[
|
|
457
|
+
_vue.h.call(void 0,
|
|
458
|
+
"button",
|
|
459
|
+
{
|
|
460
|
+
type: "button",
|
|
461
|
+
class: itemClasses.value,
|
|
462
|
+
style: itemStyle.value,
|
|
463
|
+
role: "menuitem",
|
|
464
|
+
"data-tiger-menuitem": "true",
|
|
465
|
+
"data-tiger-selected": isSelected.value ? "true" : "false",
|
|
466
|
+
"aria-current": isSelected.value ? "page" : void 0,
|
|
467
|
+
"aria-disabled": props.disabled ? "true" : void 0,
|
|
468
|
+
disabled: props.disabled,
|
|
469
|
+
tabindex: -1,
|
|
470
|
+
onClick: handleClick,
|
|
471
|
+
onKeydown: handleKeyDown,
|
|
472
|
+
...passthroughAttrs.value
|
|
473
|
+
},
|
|
474
|
+
children
|
|
475
|
+
)
|
|
476
|
+
]
|
|
477
|
+
);
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
var MenuItemGroup = _vue.defineComponent.call(void 0, {
|
|
482
|
+
name: "TigerMenuItemGroup",
|
|
483
|
+
inheritAttrs: false,
|
|
484
|
+
props: {
|
|
485
|
+
/**
|
|
486
|
+
* Group title
|
|
487
|
+
*/
|
|
488
|
+
title: {
|
|
489
|
+
type: String,
|
|
490
|
+
default: ""
|
|
491
|
+
},
|
|
492
|
+
level: {
|
|
493
|
+
type: Number,
|
|
494
|
+
default: 0
|
|
495
|
+
},
|
|
496
|
+
className: {
|
|
497
|
+
type: String,
|
|
498
|
+
default: void 0
|
|
499
|
+
},
|
|
500
|
+
style: {
|
|
501
|
+
type: Object,
|
|
502
|
+
default: void 0
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
setup(props, { slots, attrs }) {
|
|
506
|
+
const groupClasses = _vue.computed.call(void 0, () => _tigercatcore.classNames.call(void 0, props.className, _tigercatcore.coerceClassValue.call(void 0, attrs.class)));
|
|
507
|
+
const groupStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style));
|
|
508
|
+
const passthroughAttrs = _vue.computed.call(void 0, () => {
|
|
509
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
510
|
+
return rest;
|
|
511
|
+
});
|
|
512
|
+
const withLevel = (nodes) => {
|
|
513
|
+
if (!nodes || nodes.length === 0) return nodes;
|
|
514
|
+
const level = props.level;
|
|
515
|
+
return nodes.map((node) => {
|
|
516
|
+
if (!_vue.isVNode.call(void 0, node)) return node;
|
|
517
|
+
const type = node.type;
|
|
518
|
+
const name = typeof type === "object" && type != null && "name" in type ? type.name : void 0;
|
|
519
|
+
const isTarget = name === "TigerMenuItem" || name === "TigerSubMenu";
|
|
520
|
+
if (!isTarget) return node;
|
|
521
|
+
const existingProps = _nullishCoalesce(node.props, () => ( {}));
|
|
522
|
+
if (existingProps.level != null) return node;
|
|
523
|
+
return _vue.cloneVNode.call(void 0, node, { level });
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
return () => {
|
|
527
|
+
return _vue.h.call(void 0, "li", { class: "list-none" }, [
|
|
528
|
+
props.title ? _vue.h.call(void 0, "div", { class: _tigercatcore.menuItemGroupTitleClasses }, props.title) : null,
|
|
529
|
+
slots.default ? _vue.h.call(void 0,
|
|
530
|
+
"ul",
|
|
531
|
+
{
|
|
532
|
+
role: "group",
|
|
533
|
+
class: groupClasses.value,
|
|
534
|
+
style: groupStyle.value,
|
|
535
|
+
...passthroughAttrs.value
|
|
536
|
+
},
|
|
537
|
+
withLevel(_optionalChain([slots, 'access', _5 => _5.default, 'optionalCall', _6 => _6()]))
|
|
538
|
+
) : null
|
|
539
|
+
]);
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
var ExpandIcon = (expanded) => {
|
|
544
|
+
return _vue.h.call(void 0,
|
|
545
|
+
"svg",
|
|
546
|
+
{
|
|
547
|
+
class: _tigercatcore.getSubMenuExpandIconClasses.call(void 0, expanded),
|
|
548
|
+
width: "12",
|
|
549
|
+
height: "12",
|
|
550
|
+
viewBox: "0 0 12 12",
|
|
551
|
+
fill: "currentColor"
|
|
552
|
+
},
|
|
553
|
+
[
|
|
554
|
+
_vue.h.call(void 0, "path", {
|
|
555
|
+
d: "M6 9L1.5 4.5L2.205 3.795L6 7.59L9.795 3.795L10.5 4.5L6 9Z"
|
|
556
|
+
})
|
|
557
|
+
]
|
|
558
|
+
);
|
|
559
|
+
};
|
|
560
|
+
var SubMenu = _vue.defineComponent.call(void 0, {
|
|
561
|
+
name: "TigerSubMenu",
|
|
562
|
+
inheritAttrs: false,
|
|
563
|
+
props: {
|
|
564
|
+
/**
|
|
565
|
+
* Unique key for the submenu
|
|
566
|
+
*/
|
|
567
|
+
itemKey: {
|
|
568
|
+
type: [String, Number],
|
|
569
|
+
required: true
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
* Submenu title
|
|
573
|
+
*/
|
|
574
|
+
title: {
|
|
575
|
+
type: String,
|
|
576
|
+
default: ""
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
* Icon for the submenu
|
|
580
|
+
*/
|
|
581
|
+
icon: {
|
|
582
|
+
type: [String, Object]
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* Whether the submenu is disabled
|
|
586
|
+
*/
|
|
587
|
+
disabled: {
|
|
588
|
+
type: Boolean,
|
|
589
|
+
default: false
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
* Nesting level (internal use for indentation)
|
|
593
|
+
*/
|
|
594
|
+
level: {
|
|
595
|
+
type: Number,
|
|
596
|
+
default: 0
|
|
597
|
+
},
|
|
598
|
+
collapsed: {
|
|
599
|
+
type: Boolean,
|
|
600
|
+
default: void 0
|
|
601
|
+
},
|
|
602
|
+
className: {
|
|
603
|
+
type: String,
|
|
604
|
+
default: void 0
|
|
605
|
+
},
|
|
606
|
+
style: {
|
|
607
|
+
type: Object,
|
|
608
|
+
default: void 0
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
setup(props, { slots, attrs }) {
|
|
612
|
+
const menuContext = _vue.inject.call(void 0, MenuContextKey);
|
|
613
|
+
if (!menuContext) {
|
|
614
|
+
console.warn("SubMenu must be used within Menu component");
|
|
615
|
+
}
|
|
616
|
+
const isOpen = _vue.computed.call(void 0, () => {
|
|
617
|
+
if (!menuContext) return false;
|
|
618
|
+
return _tigercatcore.isKeyOpen.call(void 0, props.itemKey, menuContext.openKeys.value);
|
|
619
|
+
});
|
|
620
|
+
const isHovered = _vue.ref.call(void 0, false);
|
|
621
|
+
const isOpenByKeyboard = _vue.ref.call(void 0, false);
|
|
622
|
+
const submenuContentEl = _vue.ref.call(void 0, null);
|
|
623
|
+
let heightTransitionController = null;
|
|
624
|
+
const effectiveCollapsed = _vue.computed.call(void 0, () => {
|
|
625
|
+
return _nullishCoalesce(props.collapsed, () => ( (menuContext ? menuContext.collapsed.value : false)));
|
|
626
|
+
});
|
|
627
|
+
const isPopup = _vue.computed.call(void 0, () => {
|
|
628
|
+
if (!menuContext) return false;
|
|
629
|
+
if (menuContext.mode.value === "horizontal") return true;
|
|
630
|
+
return menuContext.mode.value === "vertical" && effectiveCollapsed.value;
|
|
631
|
+
});
|
|
632
|
+
const isExpanded = _vue.computed.call(void 0, () => {
|
|
633
|
+
if (_optionalChain([menuContext, 'optionalAccess', _7 => _7.mode, 'access', _8 => _8.value]) === "horizontal" || isPopup.value) {
|
|
634
|
+
return isHovered.value || isOpenByKeyboard.value;
|
|
635
|
+
}
|
|
636
|
+
return isOpen.value;
|
|
637
|
+
});
|
|
638
|
+
const hasRenderedInline = _vue.ref.call(void 0, !isPopup.value && isExpanded.value);
|
|
639
|
+
const disposeHeightTransition = () => {
|
|
640
|
+
_optionalChain([heightTransitionController, 'optionalAccess', _9 => _9.dispose, 'call', _10 => _10()]);
|
|
641
|
+
heightTransitionController = null;
|
|
642
|
+
};
|
|
643
|
+
const syncHeightTransition = async () => {
|
|
644
|
+
await _vue.nextTick.call(void 0, );
|
|
645
|
+
if (isPopup.value || !hasRenderedInline.value || !submenuContentEl.value) {
|
|
646
|
+
disposeHeightTransition();
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
if (!heightTransitionController) {
|
|
650
|
+
heightTransitionController = _tigercatcore.createSubmenuHeightTransitionController.call(void 0,
|
|
651
|
+
submenuContentEl.value,
|
|
652
|
+
{ expanded: isExpanded.value }
|
|
653
|
+
);
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
heightTransitionController.update(isExpanded.value);
|
|
657
|
+
};
|
|
658
|
+
_vue.watch.call(void 0,
|
|
659
|
+
[isPopup, isExpanded],
|
|
660
|
+
() => {
|
|
661
|
+
if (!isPopup.value && isExpanded.value) {
|
|
662
|
+
hasRenderedInline.value = true;
|
|
663
|
+
}
|
|
664
|
+
void syncHeightTransition();
|
|
665
|
+
},
|
|
666
|
+
{ immediate: true }
|
|
667
|
+
);
|
|
668
|
+
_vue.watch.call(void 0, hasRenderedInline, () => {
|
|
669
|
+
void syncHeightTransition();
|
|
670
|
+
});
|
|
671
|
+
_vue.onBeforeUnmount.call(void 0, disposeHeightTransition);
|
|
672
|
+
const titleClasses = _vue.computed.call(void 0, () => {
|
|
673
|
+
if (!menuContext) return "";
|
|
674
|
+
return _tigercatcore.classNames.call(void 0,
|
|
675
|
+
_tigercatcore.getSubMenuTitleClasses.call(void 0, menuContext.theme.value, props.disabled),
|
|
676
|
+
props.className,
|
|
677
|
+
_tigercatcore.coerceClassValue.call(void 0, attrs.class)
|
|
678
|
+
);
|
|
679
|
+
});
|
|
680
|
+
const titleStyle = _vue.computed.call(void 0, () => _tigercatcore.mergeStyleValues.call(void 0, attrs.style, props.style, indentStyle.value));
|
|
681
|
+
const passthroughAttrs = _vue.computed.call(void 0, () => {
|
|
682
|
+
const { class: _class, style: _style, ...rest } = attrs;
|
|
683
|
+
return rest;
|
|
684
|
+
});
|
|
685
|
+
const contentClasses = _vue.computed.call(void 0, () => {
|
|
686
|
+
if (!menuContext) return "";
|
|
687
|
+
if (menuContext.mode.value === "horizontal") {
|
|
688
|
+
return props.level === 0 ? _tigercatcore.submenuContentHorizontalClasses : _tigercatcore.submenuContentHorizontalNestedClasses;
|
|
689
|
+
}
|
|
690
|
+
if (isPopup.value) return _tigercatcore.submenuContentPopupClasses;
|
|
691
|
+
if (menuContext.mode.value === "inline") return _tigercatcore.submenuContentInlineClasses;
|
|
692
|
+
return _tigercatcore.submenuContentVerticalClasses;
|
|
693
|
+
});
|
|
694
|
+
const popupZIndex = _vue.computed.call(void 0, () => isPopup.value ? _tigercatcore.getSubmenuPopupZIndex.call(void 0, props.level) : {});
|
|
695
|
+
const handleTitleClick = () => {
|
|
696
|
+
if (!menuContext || props.disabled) return;
|
|
697
|
+
if (menuContext.mode.value === "horizontal") return;
|
|
698
|
+
if (isPopup.value) {
|
|
699
|
+
isOpenByKeyboard.value = !isOpenByKeyboard.value;
|
|
700
|
+
isHovered.value = true;
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
if (!isOpen.value) {
|
|
704
|
+
hasRenderedInline.value = true;
|
|
705
|
+
}
|
|
706
|
+
menuContext.handleOpenChange(props.itemKey);
|
|
707
|
+
};
|
|
708
|
+
const focusFirstChild = async () => {
|
|
709
|
+
await _vue.nextTick.call(void 0, );
|
|
710
|
+
const titleEl = document.activeElement;
|
|
711
|
+
if (titleEl) _tigercatcore.focusFirstChildItem.call(void 0, titleEl);
|
|
712
|
+
};
|
|
713
|
+
const handleTitleKeyDown = async (event) => {
|
|
714
|
+
if (!menuContext || props.disabled) return;
|
|
715
|
+
const current = event.currentTarget;
|
|
716
|
+
const rootMenu = current.closest('ul[role="menu"]');
|
|
717
|
+
const isRoot = _optionalChain([rootMenu, 'optionalAccess', _11 => _11.dataset, 'access', _12 => _12.tigerMenuRoot]) === "true";
|
|
718
|
+
const isHorizontalRoot = isRoot && menuContext.mode.value === "horizontal";
|
|
719
|
+
const nextKey = isHorizontalRoot ? "ArrowRight" : "ArrowDown";
|
|
720
|
+
const prevKey = isHorizontalRoot ? "ArrowLeft" : "ArrowUp";
|
|
721
|
+
if (event.key === nextKey) {
|
|
722
|
+
event.preventDefault();
|
|
723
|
+
_tigercatcore.moveFocusInMenu.call(void 0, current, 1);
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
if (event.key === prevKey) {
|
|
727
|
+
event.preventDefault();
|
|
728
|
+
_tigercatcore.moveFocusInMenu.call(void 0, current, -1);
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (event.key === "Home") {
|
|
732
|
+
event.preventDefault();
|
|
733
|
+
_tigercatcore.focusMenuEdge.call(void 0, current, "start");
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
if (event.key === "End") {
|
|
737
|
+
event.preventDefault();
|
|
738
|
+
_tigercatcore.focusMenuEdge.call(void 0, current, "end");
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
if (event.key === "Escape" || event.key === "ArrowLeft") {
|
|
742
|
+
if (menuContext.mode.value === "horizontal" || isPopup.value) {
|
|
743
|
+
event.preventDefault();
|
|
744
|
+
isOpenByKeyboard.value = false;
|
|
745
|
+
isHovered.value = false;
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
if (isOpen.value) {
|
|
749
|
+
event.preventDefault();
|
|
750
|
+
menuContext.handleOpenChange(props.itemKey);
|
|
751
|
+
}
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
755
|
+
event.preventDefault();
|
|
756
|
+
if (menuContext.mode.value === "horizontal" || isPopup.value) {
|
|
757
|
+
isOpenByKeyboard.value = true;
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
hasRenderedInline.value = true;
|
|
761
|
+
menuContext.handleOpenChange(props.itemKey);
|
|
762
|
+
await focusFirstChild();
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
if (event.key === "ArrowRight" || event.key === "ArrowDown") {
|
|
766
|
+
if (menuContext.mode.value === "horizontal" || isPopup.value) {
|
|
767
|
+
event.preventDefault();
|
|
768
|
+
isOpenByKeyboard.value = true;
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
if (!isOpen.value) {
|
|
772
|
+
event.preventDefault();
|
|
773
|
+
hasRenderedInline.value = true;
|
|
774
|
+
menuContext.handleOpenChange(props.itemKey);
|
|
775
|
+
await focusFirstChild();
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
const handleMouseEnter = () => {
|
|
780
|
+
if (_optionalChain([menuContext, 'optionalAccess', _13 => _13.mode, 'access', _14 => _14.value]) === "horizontal" || isPopup.value) {
|
|
781
|
+
isHovered.value = true;
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
const handleMouseLeave = () => {
|
|
785
|
+
if (_optionalChain([menuContext, 'optionalAccess', _15 => _15.mode, 'access', _16 => _16.value]) === "horizontal" || isPopup.value) {
|
|
786
|
+
isHovered.value = false;
|
|
787
|
+
isOpenByKeyboard.value = false;
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
const indentStyle = _vue.computed.call(void 0, () => {
|
|
791
|
+
if (!menuContext || menuContext.mode.value === "horizontal" || props.level === 0) {
|
|
792
|
+
return {};
|
|
793
|
+
}
|
|
794
|
+
return _tigercatcore.getMenuItemIndent.call(void 0, props.level, menuContext.inlineIndent.value);
|
|
795
|
+
});
|
|
796
|
+
const withChildLevel = (nodes) => {
|
|
797
|
+
if (!nodes || nodes.length === 0) return nodes;
|
|
798
|
+
const nextLevel = props.level + 1;
|
|
799
|
+
return nodes.map((node) => {
|
|
800
|
+
if (!_vue.isVNode.call(void 0, node)) return node;
|
|
801
|
+
const type = node.type;
|
|
802
|
+
const name = typeof type === "object" && type != null && "name" in type ? type.name : void 0;
|
|
803
|
+
const isTarget = name === "TigerMenuItem" || name === "TigerSubMenu" || name === "TigerMenuItemGroup";
|
|
804
|
+
if (!isTarget) return node;
|
|
805
|
+
const existingProps = _nullishCoalesce(node.props, () => ( {}));
|
|
806
|
+
const nextProps = {
|
|
807
|
+
level: _nullishCoalesce(existingProps.level, () => ( nextLevel))
|
|
808
|
+
};
|
|
809
|
+
return _vue.cloneVNode.call(void 0, node, nextProps);
|
|
810
|
+
});
|
|
811
|
+
};
|
|
812
|
+
return () => {
|
|
813
|
+
if (!menuContext) return null;
|
|
814
|
+
const titleChildren = [];
|
|
815
|
+
if (props.icon) {
|
|
816
|
+
if (typeof props.icon === "string") {
|
|
817
|
+
titleChildren.push(
|
|
818
|
+
_vue.h.call(void 0, "span", {
|
|
819
|
+
class: _tigercatcore.menuItemIconClasses,
|
|
820
|
+
innerHTML: props.icon
|
|
821
|
+
})
|
|
822
|
+
);
|
|
823
|
+
} else {
|
|
824
|
+
titleChildren.push(_vue.h.call(void 0, "span", { class: _tigercatcore.menuItemIconClasses }, props.icon));
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
if (!effectiveCollapsed.value) {
|
|
828
|
+
titleChildren.push(_vue.h.call(void 0, "span", { class: "flex-1" }, props.title));
|
|
829
|
+
if (menuContext.mode.value !== "horizontal" && !isPopup.value) {
|
|
830
|
+
titleChildren.push(ExpandIcon(isExpanded.value));
|
|
831
|
+
}
|
|
832
|
+
} else if (!props.icon) {
|
|
833
|
+
titleChildren.push(
|
|
834
|
+
_vue.h.call(void 0, "span", { class: "flex-1 text-center" }, props.title.charAt(0).toUpperCase())
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
const titleNode = _vue.h.call(void 0,
|
|
838
|
+
"button",
|
|
839
|
+
{
|
|
840
|
+
type: "button",
|
|
841
|
+
class: titleClasses.value,
|
|
842
|
+
style: titleStyle.value,
|
|
843
|
+
onClick: handleTitleClick,
|
|
844
|
+
onKeydown: handleTitleKeyDown,
|
|
845
|
+
role: "menuitem",
|
|
846
|
+
"data-tiger-menuitem": "true",
|
|
847
|
+
"aria-expanded": isExpanded.value ? "true" : "false",
|
|
848
|
+
"aria-haspopup": "true",
|
|
849
|
+
"aria-disabled": props.disabled ? "true" : void 0,
|
|
850
|
+
disabled: props.disabled,
|
|
851
|
+
tabindex: -1,
|
|
852
|
+
...passthroughAttrs.value
|
|
853
|
+
},
|
|
854
|
+
titleChildren
|
|
855
|
+
);
|
|
856
|
+
const contentNode = isPopup.value ? _vue.h.call(void 0,
|
|
857
|
+
"ul",
|
|
858
|
+
{
|
|
859
|
+
class: contentClasses.value,
|
|
860
|
+
style: {
|
|
861
|
+
display: isExpanded.value ? "block" : "none",
|
|
862
|
+
...popupZIndex.value
|
|
863
|
+
},
|
|
864
|
+
role: "menu",
|
|
865
|
+
"aria-hidden": isExpanded.value ? void 0 : "true"
|
|
866
|
+
},
|
|
867
|
+
withChildLevel(_optionalChain([slots, 'access', _17 => _17.default, 'optionalCall', _18 => _18()]))
|
|
868
|
+
) : hasRenderedInline.value ? _vue.h.call(void 0,
|
|
869
|
+
"div",
|
|
870
|
+
{
|
|
871
|
+
ref: submenuContentEl,
|
|
872
|
+
class: _tigercatcore.submenuHeightTransitionClasses,
|
|
873
|
+
style: heightTransitionController ? void 0 : _tigercatcore.getInitialSubmenuHeightTransitionStyle.call(void 0, isExpanded.value),
|
|
874
|
+
"aria-hidden": isExpanded.value ? void 0 : "true",
|
|
875
|
+
"data-tiger-menu-hidden": isExpanded.value ? void 0 : "true",
|
|
876
|
+
"data-tiger-submenu-motion": "height"
|
|
877
|
+
},
|
|
878
|
+
[
|
|
879
|
+
_vue.h.call(void 0,
|
|
880
|
+
"ul",
|
|
881
|
+
{
|
|
882
|
+
class: contentClasses.value,
|
|
883
|
+
role: "menu"
|
|
884
|
+
},
|
|
885
|
+
withChildLevel(_optionalChain([slots, 'access', _19 => _19.default, 'optionalCall', _20 => _20()]))
|
|
886
|
+
)
|
|
887
|
+
]
|
|
888
|
+
) : null;
|
|
889
|
+
return _vue.h.call(void 0,
|
|
890
|
+
"li",
|
|
891
|
+
{
|
|
892
|
+
class: isPopup.value ? "relative" : "",
|
|
893
|
+
onMouseenter: handleMouseEnter,
|
|
894
|
+
onMouseleave: handleMouseLeave,
|
|
895
|
+
role: "none"
|
|
896
|
+
},
|
|
897
|
+
[titleNode, contentNode]
|
|
898
|
+
);
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
exports.MenuContextKey = MenuContextKey; exports.Menu = Menu; exports.Menu_default = Menu_default; exports.MenuItem = MenuItem; exports.MenuItemGroup = MenuItemGroup; exports.SubMenu = SubMenu;
|