@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,568 @@
|
|
|
1
|
+
// src/components/Tabs.ts
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
computed,
|
|
5
|
+
ref,
|
|
6
|
+
watch,
|
|
7
|
+
provide,
|
|
8
|
+
inject,
|
|
9
|
+
h,
|
|
10
|
+
Fragment,
|
|
11
|
+
getCurrentInstance
|
|
12
|
+
} from "vue";
|
|
13
|
+
import {
|
|
14
|
+
classNames,
|
|
15
|
+
closeIconPathD,
|
|
16
|
+
closeIconViewBox,
|
|
17
|
+
getTabsContainerClasses,
|
|
18
|
+
getTabItemClasses,
|
|
19
|
+
getTabNavClasses,
|
|
20
|
+
getTabNavListClasses,
|
|
21
|
+
getTabNavListStyle,
|
|
22
|
+
getTabPaneClasses,
|
|
23
|
+
getTabIndicatorClasses,
|
|
24
|
+
getTabIndicatorStyle,
|
|
25
|
+
getGestureTouchPoint,
|
|
26
|
+
resolveSwipeGesture,
|
|
27
|
+
isKeyActive,
|
|
28
|
+
tabAddButtonClasses,
|
|
29
|
+
tabCloseButtonClasses,
|
|
30
|
+
tabContentBaseClasses
|
|
31
|
+
} from "@expcat/tigercat-core";
|
|
32
|
+
var TabsContextKey = /* @__PURE__ */ Symbol("TabsContext");
|
|
33
|
+
var TabPane = defineComponent({
|
|
34
|
+
name: "TigerTabPane",
|
|
35
|
+
props: {
|
|
36
|
+
/**
|
|
37
|
+
* Unique key for the tab pane (required)
|
|
38
|
+
*/
|
|
39
|
+
tabKey: {
|
|
40
|
+
type: [String, Number],
|
|
41
|
+
required: true
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Tab label/title
|
|
45
|
+
*/
|
|
46
|
+
label: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: true
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Whether the tab is disabled
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
disabled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Whether the tab can be closed (overrides parent closable)
|
|
60
|
+
*/
|
|
61
|
+
closable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: void 0
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Icon for the tab
|
|
67
|
+
*/
|
|
68
|
+
icon: {
|
|
69
|
+
type: [String, Object],
|
|
70
|
+
default: void 0
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Additional CSS classes
|
|
74
|
+
*/
|
|
75
|
+
className: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Custom styles
|
|
81
|
+
*/
|
|
82
|
+
style: {
|
|
83
|
+
type: Object,
|
|
84
|
+
default: void 0
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Render mode - 'tab' for tab item, 'pane' for content pane
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
renderMode: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "pane"
|
|
93
|
+
},
|
|
94
|
+
// Internal props for a11y + roving tabindex
|
|
95
|
+
tabId: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: void 0
|
|
98
|
+
},
|
|
99
|
+
panelId: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: void 0
|
|
102
|
+
},
|
|
103
|
+
tabIndex: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: void 0
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
setup(props, { slots }) {
|
|
109
|
+
const tabsContext = inject(TabsContextKey);
|
|
110
|
+
if (!tabsContext) {
|
|
111
|
+
throw new Error("TabPane must be used within a Tabs component");
|
|
112
|
+
}
|
|
113
|
+
const isActive = computed(() => {
|
|
114
|
+
return isKeyActive(props.tabKey, tabsContext.activeKey);
|
|
115
|
+
});
|
|
116
|
+
const hasBeenActivated = ref(isActive.value);
|
|
117
|
+
watch(isActive, (val) => {
|
|
118
|
+
if (val) hasBeenActivated.value = true;
|
|
119
|
+
});
|
|
120
|
+
const isClosable = computed(() => {
|
|
121
|
+
return props.closable !== void 0 ? props.closable : tabsContext.closable && tabsContext.type === "editable-card";
|
|
122
|
+
});
|
|
123
|
+
const tabItemClasses = computed(() => {
|
|
124
|
+
return getTabItemClasses(isActive.value, props.disabled, tabsContext.type, tabsContext.size);
|
|
125
|
+
});
|
|
126
|
+
const tabPaneClasses = computed(() => {
|
|
127
|
+
return classNames(getTabPaneClasses(isActive.value), props.className);
|
|
128
|
+
});
|
|
129
|
+
const handleClick = () => {
|
|
130
|
+
if (!props.disabled) {
|
|
131
|
+
tabsContext.handleTabClick(props.tabKey);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const handleClose = (event) => {
|
|
135
|
+
if (!props.disabled) {
|
|
136
|
+
tabsContext.handleTabClose(props.tabKey, event);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
const handleKeydown = (event) => {
|
|
140
|
+
if (props.disabled) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (isClosable.value && (event.key === "Backspace" || event.key === "Delete")) {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
tabsContext.handleTabClose(props.tabKey, event);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const isVertical = tabsContext.tabPosition === "left" || tabsContext.tabPosition === "right";
|
|
149
|
+
const nextKeys = isVertical ? ["ArrowDown"] : ["ArrowRight"];
|
|
150
|
+
const prevKeys = isVertical ? ["ArrowUp"] : ["ArrowLeft"];
|
|
151
|
+
const key = event.key;
|
|
152
|
+
if (nextKeys.includes(key) || prevKeys.includes(key) || key === "Home" || key === "End" || key === "Enter" || key === " ") {
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
}
|
|
155
|
+
if (key === "Enter" || key === " ") {
|
|
156
|
+
tabsContext.handleTabClick(props.tabKey);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const tabList = event.currentTarget?.closest('[role="tablist"]');
|
|
160
|
+
const tabButtons = Array.from(
|
|
161
|
+
tabList?.querySelectorAll('[role="tab"]') ?? []
|
|
162
|
+
);
|
|
163
|
+
const enabled = tabButtons.filter((button) => !button.disabled);
|
|
164
|
+
const currentIndex = enabled.findIndex((button) => button.id === props.tabId);
|
|
165
|
+
if (currentIndex === -1) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const focusByIndex = (index) => {
|
|
169
|
+
const next = enabled[index];
|
|
170
|
+
if (!next) return;
|
|
171
|
+
next.focus();
|
|
172
|
+
const nextKey = next.getAttribute("data-tiger-tab-key");
|
|
173
|
+
if (nextKey != null) {
|
|
174
|
+
const parsed = nextKey.startsWith("n:") ? Number(nextKey.slice(2)) : nextKey.startsWith("s:") ? nextKey.slice(2) : nextKey;
|
|
175
|
+
tabsContext.handleTabClick(parsed);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
if (nextKeys.includes(key)) {
|
|
179
|
+
focusByIndex((currentIndex + 1) % enabled.length);
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (prevKeys.includes(key)) {
|
|
183
|
+
focusByIndex((currentIndex - 1 + enabled.length) % enabled.length);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (key === "Home") {
|
|
187
|
+
focusByIndex(0);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
if (key === "End") {
|
|
191
|
+
focusByIndex(enabled.length - 1);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
return () => {
|
|
195
|
+
if (props.renderMode === "tab") {
|
|
196
|
+
return h(
|
|
197
|
+
"button",
|
|
198
|
+
{
|
|
199
|
+
type: "button",
|
|
200
|
+
class: tabItemClasses.value,
|
|
201
|
+
role: "tab",
|
|
202
|
+
id: props.tabId,
|
|
203
|
+
"aria-controls": props.panelId,
|
|
204
|
+
"aria-selected": isActive.value,
|
|
205
|
+
"aria-disabled": props.disabled,
|
|
206
|
+
disabled: props.disabled,
|
|
207
|
+
tabindex: typeof props.tabIndex === "number" ? props.tabIndex : isActive.value ? 0 : -1,
|
|
208
|
+
"data-tiger-tabs-id": tabsContext.idBase,
|
|
209
|
+
"data-tiger-tab-key": typeof props.tabKey === "number" ? `n:${props.tabKey}` : `s:${props.tabKey}`,
|
|
210
|
+
onClick: handleClick,
|
|
211
|
+
onKeydown: handleKeydown
|
|
212
|
+
},
|
|
213
|
+
[
|
|
214
|
+
props.icon && h("span", { class: "flex items-center" }, props.icon),
|
|
215
|
+
h("span", props.label),
|
|
216
|
+
isClosable.value && h(
|
|
217
|
+
"span",
|
|
218
|
+
{
|
|
219
|
+
role: "button",
|
|
220
|
+
class: tabCloseButtonClasses,
|
|
221
|
+
"aria-label": `Close ${String(props.label)}`,
|
|
222
|
+
tabindex: -1,
|
|
223
|
+
onClick: handleClose
|
|
224
|
+
},
|
|
225
|
+
h(
|
|
226
|
+
"svg",
|
|
227
|
+
{
|
|
228
|
+
class: "w-4 h-4",
|
|
229
|
+
fill: "none",
|
|
230
|
+
stroke: "currentColor",
|
|
231
|
+
viewBox: closeIconViewBox
|
|
232
|
+
},
|
|
233
|
+
h("path", {
|
|
234
|
+
"stroke-linecap": "round",
|
|
235
|
+
"stroke-linejoin": "round",
|
|
236
|
+
"stroke-width": "2",
|
|
237
|
+
d: closeIconPathD
|
|
238
|
+
})
|
|
239
|
+
)
|
|
240
|
+
)
|
|
241
|
+
]
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
const shouldRender = tabsContext.lazy ? hasBeenActivated.value && (isActive.value || !tabsContext.destroyInactiveTabPane) : isActive.value || !tabsContext.destroyInactiveTabPane;
|
|
245
|
+
if (!shouldRender) {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
return h(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
class: tabPaneClasses.value,
|
|
252
|
+
style: props.style,
|
|
253
|
+
role: "tabpanel",
|
|
254
|
+
id: props.panelId,
|
|
255
|
+
"aria-labelledby": props.tabId,
|
|
256
|
+
"aria-hidden": !isActive.value
|
|
257
|
+
},
|
|
258
|
+
slots.default?.()
|
|
259
|
+
);
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
var Tabs = defineComponent({
|
|
264
|
+
name: "TigerTabs",
|
|
265
|
+
props: {
|
|
266
|
+
/**
|
|
267
|
+
* Currently active tab key
|
|
268
|
+
*/
|
|
269
|
+
activeKey: {
|
|
270
|
+
type: [String, Number],
|
|
271
|
+
default: void 0
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* Default active tab key (for uncontrolled mode)
|
|
275
|
+
*/
|
|
276
|
+
defaultActiveKey: {
|
|
277
|
+
type: [String, Number],
|
|
278
|
+
default: void 0
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Tab type - line, card, or editable-card
|
|
282
|
+
* @default 'line'
|
|
283
|
+
*/
|
|
284
|
+
type: {
|
|
285
|
+
type: String,
|
|
286
|
+
default: "line"
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* Tab position - top, bottom, left, or right
|
|
290
|
+
* @default 'top'
|
|
291
|
+
*/
|
|
292
|
+
tabPosition: {
|
|
293
|
+
type: String,
|
|
294
|
+
default: "top"
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* Tab size - small, medium, or large
|
|
298
|
+
* @default 'medium'
|
|
299
|
+
*/
|
|
300
|
+
size: {
|
|
301
|
+
type: String,
|
|
302
|
+
default: "medium"
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
* Whether tabs can be closed (only works with editable-card type)
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
closable: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
default: false
|
|
311
|
+
},
|
|
312
|
+
/**
|
|
313
|
+
* Whether tabs are centered
|
|
314
|
+
* @default false
|
|
315
|
+
*/
|
|
316
|
+
centered: {
|
|
317
|
+
type: Boolean,
|
|
318
|
+
default: false
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Whether to destroy inactive tab panes
|
|
322
|
+
* @default false
|
|
323
|
+
*/
|
|
324
|
+
destroyInactiveTabPane: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: false
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
* Whether to lazily render tab panes (only render when first activated)
|
|
330
|
+
* @default false
|
|
331
|
+
* @since 0.6.0
|
|
332
|
+
*/
|
|
333
|
+
lazy: {
|
|
334
|
+
type: Boolean,
|
|
335
|
+
default: false
|
|
336
|
+
},
|
|
337
|
+
/**
|
|
338
|
+
* Whether horizontal touch swipes switch tabs.
|
|
339
|
+
* @default true
|
|
340
|
+
*/
|
|
341
|
+
swipeable: {
|
|
342
|
+
type: Boolean,
|
|
343
|
+
default: true
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Additional CSS classes
|
|
347
|
+
*/
|
|
348
|
+
className: {
|
|
349
|
+
type: String,
|
|
350
|
+
default: void 0
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* Custom styles
|
|
354
|
+
*/
|
|
355
|
+
style: {
|
|
356
|
+
type: Object,
|
|
357
|
+
default: void 0
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
emits: ["update:activeKey", "change", "edit", "tab-click"],
|
|
361
|
+
setup(props, { slots, emit }) {
|
|
362
|
+
const instance = getCurrentInstance();
|
|
363
|
+
const idBase = `tiger-tabs-${instance?.uid ?? "0"}`;
|
|
364
|
+
const internalActiveKey = ref(props.defaultActiveKey);
|
|
365
|
+
const swipeStart = ref(null);
|
|
366
|
+
const currentActiveKey = computed(() => {
|
|
367
|
+
return props.activeKey !== void 0 ? props.activeKey : internalActiveKey.value;
|
|
368
|
+
});
|
|
369
|
+
const handleTabClick = (key) => {
|
|
370
|
+
emit("tab-click", key);
|
|
371
|
+
if (currentActiveKey.value === key) return;
|
|
372
|
+
if (props.activeKey === void 0) {
|
|
373
|
+
internalActiveKey.value = key;
|
|
374
|
+
}
|
|
375
|
+
emit("update:activeKey", key);
|
|
376
|
+
emit("change", key);
|
|
377
|
+
};
|
|
378
|
+
const handleTabClose = (key, event) => {
|
|
379
|
+
event.stopPropagation();
|
|
380
|
+
emit("edit", { targetKey: key, action: "remove" });
|
|
381
|
+
};
|
|
382
|
+
const activateAdjacentTab = (direction, enabledTabKeys) => {
|
|
383
|
+
if (enabledTabKeys.length <= 1) return;
|
|
384
|
+
const currentIndex = enabledTabKeys.indexOf(currentActiveKey.value ?? enabledTabKeys[0]);
|
|
385
|
+
const baseIndex = currentIndex >= 0 ? currentIndex : 0;
|
|
386
|
+
const nextKey = enabledTabKeys[(baseIndex + direction + enabledTabKeys.length) % enabledTabKeys.length];
|
|
387
|
+
handleTabClick(nextKey);
|
|
388
|
+
};
|
|
389
|
+
const handleContentTouchStart = (event) => {
|
|
390
|
+
if (!props.swipeable || event.touches.length !== 1) return;
|
|
391
|
+
swipeStart.value = getGestureTouchPoint(event.touches, event.timeStamp);
|
|
392
|
+
};
|
|
393
|
+
const handleContentTouchEnd = (event, enabledTabKeys) => {
|
|
394
|
+
if (!props.swipeable || !swipeStart.value || event.changedTouches.length !== 1) return;
|
|
395
|
+
const endPoint = getGestureTouchPoint(event.changedTouches, event.timeStamp);
|
|
396
|
+
const swipe = resolveSwipeGesture(swipeStart.value, endPoint, {
|
|
397
|
+
minDistance: 48,
|
|
398
|
+
maxCrossAxisRatio: 0.75
|
|
399
|
+
});
|
|
400
|
+
swipeStart.value = null;
|
|
401
|
+
if (!swipe) return;
|
|
402
|
+
if (swipe.direction === "left") activateAdjacentTab(1, enabledTabKeys);
|
|
403
|
+
if (swipe.direction === "right") activateAdjacentTab(-1, enabledTabKeys);
|
|
404
|
+
};
|
|
405
|
+
const containerClasses = computed(() => {
|
|
406
|
+
return classNames(getTabsContainerClasses(props.tabPosition), props.className);
|
|
407
|
+
});
|
|
408
|
+
const tabNavClasses = computed(() => {
|
|
409
|
+
return getTabNavClasses(props.tabPosition, props.type);
|
|
410
|
+
});
|
|
411
|
+
const tabNavListClasses = computed(() => {
|
|
412
|
+
return getTabNavListClasses(props.tabPosition, props.centered);
|
|
413
|
+
});
|
|
414
|
+
provide(TabsContextKey, {
|
|
415
|
+
get activeKey() {
|
|
416
|
+
return currentActiveKey.value;
|
|
417
|
+
},
|
|
418
|
+
get type() {
|
|
419
|
+
return props.type;
|
|
420
|
+
},
|
|
421
|
+
get size() {
|
|
422
|
+
return props.size;
|
|
423
|
+
},
|
|
424
|
+
get tabPosition() {
|
|
425
|
+
return props.tabPosition;
|
|
426
|
+
},
|
|
427
|
+
get closable() {
|
|
428
|
+
return props.closable;
|
|
429
|
+
},
|
|
430
|
+
get destroyInactiveTabPane() {
|
|
431
|
+
return props.destroyInactiveTabPane;
|
|
432
|
+
},
|
|
433
|
+
get lazy() {
|
|
434
|
+
return props.lazy;
|
|
435
|
+
},
|
|
436
|
+
get swipeable() {
|
|
437
|
+
return props.swipeable;
|
|
438
|
+
},
|
|
439
|
+
idBase,
|
|
440
|
+
handleTabClick,
|
|
441
|
+
handleTabClose
|
|
442
|
+
});
|
|
443
|
+
return () => {
|
|
444
|
+
const rawChildren = slots.default?.() || [];
|
|
445
|
+
const children = [];
|
|
446
|
+
const flatten = (vnodes) => {
|
|
447
|
+
for (const vnode of vnodes) {
|
|
448
|
+
if (vnode.type === Fragment && Array.isArray(vnode.children)) {
|
|
449
|
+
flatten(vnode.children);
|
|
450
|
+
} else {
|
|
451
|
+
children.push(vnode);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
flatten(rawChildren);
|
|
456
|
+
const tabItems = [];
|
|
457
|
+
const tabPanes = [];
|
|
458
|
+
const tabKeys = [];
|
|
459
|
+
const enabledTabKeys = [];
|
|
460
|
+
let firstTabKey;
|
|
461
|
+
const validChildren = [];
|
|
462
|
+
for (const child of children) {
|
|
463
|
+
const childType = child?.type;
|
|
464
|
+
const childName = typeof childType === "object" && childType && "name" in childType ? childType.name : void 0;
|
|
465
|
+
if (childName !== "TigerTabPane") continue;
|
|
466
|
+
const childProps = child.props ?? {};
|
|
467
|
+
const k = childProps.tabKey;
|
|
468
|
+
if (firstTabKey === void 0 && (typeof k === "string" || typeof k === "number")) {
|
|
469
|
+
firstTabKey = k;
|
|
470
|
+
}
|
|
471
|
+
if (typeof k === "string" || typeof k === "number") {
|
|
472
|
+
tabKeys.push(k);
|
|
473
|
+
if (childProps.disabled !== true) {
|
|
474
|
+
enabledTabKeys.push(k);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
const tabPaneType = typeof child.type === "string" || typeof child.type === "object" ? child.type : "div";
|
|
478
|
+
validChildren.push({ type: tabPaneType, props: childProps, children: child.children });
|
|
479
|
+
}
|
|
480
|
+
if (props.activeKey === void 0 && internalActiveKey.value === void 0 && firstTabKey !== void 0) {
|
|
481
|
+
internalActiveKey.value = firstTabKey;
|
|
482
|
+
}
|
|
483
|
+
const resolvedActiveKey = currentActiveKey.value ?? firstTabKey;
|
|
484
|
+
const activeTabIndex = tabKeys.indexOf(resolvedActiveKey ?? "");
|
|
485
|
+
for (const { type, props: childProps, children: childChildren } of validChildren) {
|
|
486
|
+
const tabId = `${idBase}-tab-${String(childProps.tabKey ?? "")}`;
|
|
487
|
+
const panelId = `${idBase}-panel-${String(childProps.tabKey ?? "")}`;
|
|
488
|
+
tabItems.push(
|
|
489
|
+
h(type, {
|
|
490
|
+
...childProps,
|
|
491
|
+
renderMode: "tab",
|
|
492
|
+
tabId,
|
|
493
|
+
panelId,
|
|
494
|
+
tabIndex: childProps.tabKey === resolvedActiveKey ? 0 : -1
|
|
495
|
+
})
|
|
496
|
+
);
|
|
497
|
+
tabPanes.push(
|
|
498
|
+
h(
|
|
499
|
+
type,
|
|
500
|
+
{ ...childProps, renderMode: "pane", tabId, panelId },
|
|
501
|
+
childChildren
|
|
502
|
+
)
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
const tabNavContent = h(
|
|
506
|
+
"div",
|
|
507
|
+
{
|
|
508
|
+
class: tabNavClasses.value,
|
|
509
|
+
role: "tablist",
|
|
510
|
+
"aria-orientation": props.tabPosition === "left" || props.tabPosition === "right" ? "vertical" : "horizontal"
|
|
511
|
+
},
|
|
512
|
+
[
|
|
513
|
+
h(
|
|
514
|
+
"div",
|
|
515
|
+
{
|
|
516
|
+
class: tabNavListClasses.value,
|
|
517
|
+
style: getTabNavListStyle(props.type, props.tabPosition, tabKeys.length)
|
|
518
|
+
},
|
|
519
|
+
[
|
|
520
|
+
props.type === "line" ? h("div", {
|
|
521
|
+
"data-tiger-tabs-indicator": "true",
|
|
522
|
+
"aria-hidden": "true",
|
|
523
|
+
class: getTabIndicatorClasses(props.type, props.tabPosition),
|
|
524
|
+
style: getTabIndicatorStyle(activeTabIndex, tabKeys.length, props.tabPosition)
|
|
525
|
+
}) : null,
|
|
526
|
+
...tabItems,
|
|
527
|
+
props.type === "editable-card" ? h(
|
|
528
|
+
"button",
|
|
529
|
+
{
|
|
530
|
+
type: "button",
|
|
531
|
+
class: tabAddButtonClasses,
|
|
532
|
+
onClick: () => emit("edit", { targetKey: void 0, action: "add" }),
|
|
533
|
+
"aria-label": "Add tab"
|
|
534
|
+
},
|
|
535
|
+
"+"
|
|
536
|
+
) : null
|
|
537
|
+
]
|
|
538
|
+
)
|
|
539
|
+
]
|
|
540
|
+
);
|
|
541
|
+
const tabContent = h(
|
|
542
|
+
"div",
|
|
543
|
+
{
|
|
544
|
+
class: tabContentBaseClasses,
|
|
545
|
+
onTouchstart: handleContentTouchStart,
|
|
546
|
+
onTouchend: (event) => handleContentTouchEnd(event, enabledTabKeys),
|
|
547
|
+
onTouchcancel: () => {
|
|
548
|
+
swipeStart.value = null;
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
tabPanes
|
|
552
|
+
);
|
|
553
|
+
return h(
|
|
554
|
+
"div",
|
|
555
|
+
{ class: containerClasses.value, style: props.style },
|
|
556
|
+
props.tabPosition === "bottom" ? [tabContent, tabNavContent] : [tabNavContent, tabContent]
|
|
557
|
+
);
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
var Tabs_default = Tabs;
|
|
562
|
+
|
|
563
|
+
export {
|
|
564
|
+
TabsContextKey,
|
|
565
|
+
TabPane,
|
|
566
|
+
Tabs,
|
|
567
|
+
Tabs_default
|
|
568
|
+
};
|