@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,1324 @@
|
|
|
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/Table.ts
|
|
2
|
+
var _vue = require('vue');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _tigercatcore = require('@expcat/tigercat-core');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// src/components/Table/props.ts
|
|
20
|
+
var tableProps = {
|
|
21
|
+
columns: {
|
|
22
|
+
type: Array,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
columnLockable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
},
|
|
29
|
+
dataSource: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
sort: {
|
|
34
|
+
type: Object
|
|
35
|
+
},
|
|
36
|
+
defaultSort: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default: () => ({
|
|
39
|
+
key: null,
|
|
40
|
+
direction: null
|
|
41
|
+
})
|
|
42
|
+
},
|
|
43
|
+
filters: {
|
|
44
|
+
type: Object
|
|
45
|
+
},
|
|
46
|
+
defaultFilters: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => ({})
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "md"
|
|
53
|
+
},
|
|
54
|
+
bordered: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
striped: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
hoverable: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: true
|
|
65
|
+
},
|
|
66
|
+
loading: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false
|
|
69
|
+
},
|
|
70
|
+
emptyText: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "No data"
|
|
73
|
+
},
|
|
74
|
+
pagination: {
|
|
75
|
+
type: [Object, Boolean],
|
|
76
|
+
default: () => ({
|
|
77
|
+
current: 1,
|
|
78
|
+
pageSize: 10,
|
|
79
|
+
total: 0,
|
|
80
|
+
pageSizeOptions: [10, 20, 50, 100],
|
|
81
|
+
showSizeChanger: true,
|
|
82
|
+
showTotal: true
|
|
83
|
+
})
|
|
84
|
+
},
|
|
85
|
+
rowSelection: {
|
|
86
|
+
type: Object
|
|
87
|
+
},
|
|
88
|
+
expandable: {
|
|
89
|
+
type: Object
|
|
90
|
+
},
|
|
91
|
+
rowKey: {
|
|
92
|
+
type: [String, Function],
|
|
93
|
+
default: "id"
|
|
94
|
+
},
|
|
95
|
+
rowClassName: {
|
|
96
|
+
type: [String, Function]
|
|
97
|
+
},
|
|
98
|
+
stickyHeader: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false
|
|
101
|
+
},
|
|
102
|
+
maxHeight: {
|
|
103
|
+
type: [String, Number]
|
|
104
|
+
},
|
|
105
|
+
tableLayout: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: "auto"
|
|
108
|
+
},
|
|
109
|
+
responsiveMode: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "scroll"
|
|
112
|
+
},
|
|
113
|
+
// --- v0.6.0 props ---
|
|
114
|
+
virtual: { type: Boolean, default: false },
|
|
115
|
+
autoVirtual: { type: Boolean, default: true },
|
|
116
|
+
virtualHeight: { type: Number, default: 400 },
|
|
117
|
+
virtualItemHeight: { type: Number, default: 40 },
|
|
118
|
+
autoVirtualThreshold: { type: Number, default: 1e4 },
|
|
119
|
+
virtualThreshold: { type: Number, default: 1e3 },
|
|
120
|
+
editable: { type: Boolean, default: false },
|
|
121
|
+
editableCells: { type: Object },
|
|
122
|
+
filterMode: { type: String, default: "basic" },
|
|
123
|
+
advancedFilterRules: { type: Array, default: () => [] },
|
|
124
|
+
columnDraggable: { type: Boolean, default: false },
|
|
125
|
+
rowDraggable: { type: Boolean, default: false },
|
|
126
|
+
summaryRow: { type: Object },
|
|
127
|
+
groupBy: { type: String },
|
|
128
|
+
exportable: { type: Boolean, default: false },
|
|
129
|
+
exportFormat: { type: String, default: "csv" },
|
|
130
|
+
exportFilename: { type: String, default: "export" }
|
|
131
|
+
};
|
|
132
|
+
var tableEmits = [
|
|
133
|
+
"change",
|
|
134
|
+
"row-click",
|
|
135
|
+
"selection-change",
|
|
136
|
+
"sort-change",
|
|
137
|
+
"filter-change",
|
|
138
|
+
"page-change",
|
|
139
|
+
"expand-change",
|
|
140
|
+
"cell-change",
|
|
141
|
+
"column-order-change",
|
|
142
|
+
"row-order-change",
|
|
143
|
+
"export"
|
|
144
|
+
];
|
|
145
|
+
|
|
146
|
+
// src/components/Table/state.ts
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
function useTableState(props, emit, measuredColumnWidths) {
|
|
161
|
+
const paginationConfig = _vue.computed.call(void 0, () => {
|
|
162
|
+
return props.pagination !== false && typeof props.pagination === "object" ? props.pagination : null;
|
|
163
|
+
});
|
|
164
|
+
const isSortControlled = _vue.computed.call(void 0, () => props.sort !== void 0);
|
|
165
|
+
const isFiltersControlled = _vue.computed.call(void 0, () => props.filters !== void 0);
|
|
166
|
+
const isSelectionControlled = _vue.computed.call(void 0, () => _optionalChain([props, 'access', _ => _.rowSelection, 'optionalAccess', _2 => _2.selectedRowKeys]) !== void 0);
|
|
167
|
+
const isExpandControlled = _vue.computed.call(void 0, () => _optionalChain([props, 'access', _3 => _3.expandable, 'optionalAccess', _4 => _4.expandedRowKeys]) !== void 0);
|
|
168
|
+
const uncontrolledSortState = _vue.ref.call(void 0, _nullishCoalesce(props.defaultSort, () => ( { key: null, direction: null })));
|
|
169
|
+
const uncontrolledFilterState = _vue.ref.call(void 0, _nullishCoalesce(props.defaultFilters, () => ( {})));
|
|
170
|
+
const uncontrolledCurrentPage = _vue.ref.call(void 0,
|
|
171
|
+
_nullishCoalesce(_nullishCoalesce(_optionalChain([paginationConfig, 'access', _5 => _5.value, 'optionalAccess', _6 => _6.defaultCurrent]), () => ( _optionalChain([paginationConfig, 'access', _7 => _7.value, 'optionalAccess', _8 => _8.current]))), () => ( 1))
|
|
172
|
+
);
|
|
173
|
+
const uncontrolledCurrentPageSize = _vue.ref.call(void 0,
|
|
174
|
+
_nullishCoalesce(_nullishCoalesce(_optionalChain([paginationConfig, 'access', _9 => _9.value, 'optionalAccess', _10 => _10.defaultPageSize]), () => ( _optionalChain([paginationConfig, 'access', _11 => _11.value, 'optionalAccess', _12 => _12.pageSize]))), () => ( 10))
|
|
175
|
+
);
|
|
176
|
+
const uncontrolledSelectedRowKeys = _vue.ref.call(void 0,
|
|
177
|
+
_nullishCoalesce(_nullishCoalesce(_optionalChain([props, 'access', _13 => _13.rowSelection, 'optionalAccess', _14 => _14.defaultSelectedRowKeys]), () => ( _optionalChain([props, 'access', _15 => _15.rowSelection, 'optionalAccess', _16 => _16.selectedRowKeys]))), () => ( []))
|
|
178
|
+
);
|
|
179
|
+
const uncontrolledExpandedRowKeys = _vue.ref.call(void 0,
|
|
180
|
+
_nullishCoalesce(_nullishCoalesce(_optionalChain([props, 'access', _17 => _17.expandable, 'optionalAccess', _18 => _18.defaultExpandedRowKeys]), () => ( _optionalChain([props, 'access', _19 => _19.expandable, 'optionalAccess', _20 => _20.expandedRowKeys]))), () => ( []))
|
|
181
|
+
);
|
|
182
|
+
const sortState = _vue.computed.call(void 0, () => _nullishCoalesce(props.sort, () => ( uncontrolledSortState.value)));
|
|
183
|
+
const filterState = _vue.computed.call(void 0, () => _nullishCoalesce(props.filters, () => ( uncontrolledFilterState.value)));
|
|
184
|
+
const currentPage = _vue.computed.call(void 0, () => {
|
|
185
|
+
return _nullishCoalesce(_optionalChain([paginationConfig, 'access', _21 => _21.value, 'optionalAccess', _22 => _22.current]), () => ( uncontrolledCurrentPage.value));
|
|
186
|
+
});
|
|
187
|
+
const currentPageSize = _vue.computed.call(void 0, () => {
|
|
188
|
+
return _nullishCoalesce(_optionalChain([paginationConfig, 'access', _23 => _23.value, 'optionalAccess', _24 => _24.pageSize]), () => ( uncontrolledCurrentPageSize.value));
|
|
189
|
+
});
|
|
190
|
+
const selectedRowKeys = _vue.computed.call(void 0, () => {
|
|
191
|
+
return _nullishCoalesce(_optionalChain([props, 'access', _25 => _25.rowSelection, 'optionalAccess', _26 => _26.selectedRowKeys]), () => ( uncontrolledSelectedRowKeys.value));
|
|
192
|
+
});
|
|
193
|
+
const expandedRowKeys = _vue.computed.call(void 0, () => {
|
|
194
|
+
return _nullishCoalesce(_optionalChain([props, 'access', _27 => _27.expandable, 'optionalAccess', _28 => _28.expandedRowKeys]), () => ( uncontrolledExpandedRowKeys.value));
|
|
195
|
+
});
|
|
196
|
+
_vue.watch.call(void 0,
|
|
197
|
+
() => props.sort,
|
|
198
|
+
(next) => {
|
|
199
|
+
if (next !== void 0) {
|
|
200
|
+
uncontrolledSortState.value = next;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
_vue.watch.call(void 0,
|
|
205
|
+
() => props.filters,
|
|
206
|
+
(next) => {
|
|
207
|
+
if (next !== void 0) {
|
|
208
|
+
uncontrolledFilterState.value = next;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
_vue.watch.call(void 0,
|
|
213
|
+
() => _optionalChain([paginationConfig, 'access', _29 => _29.value, 'optionalAccess', _30 => _30.current]),
|
|
214
|
+
(next) => {
|
|
215
|
+
if (next !== void 0) {
|
|
216
|
+
uncontrolledCurrentPage.value = next;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
_vue.watch.call(void 0,
|
|
221
|
+
() => _optionalChain([paginationConfig, 'access', _31 => _31.value, 'optionalAccess', _32 => _32.pageSize]),
|
|
222
|
+
(next) => {
|
|
223
|
+
if (next !== void 0) {
|
|
224
|
+
uncontrolledCurrentPageSize.value = next;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
_vue.watch.call(void 0,
|
|
229
|
+
() => _optionalChain([props, 'access', _33 => _33.rowSelection, 'optionalAccess', _34 => _34.selectedRowKeys]),
|
|
230
|
+
(next) => {
|
|
231
|
+
if (next !== void 0) {
|
|
232
|
+
uncontrolledSelectedRowKeys.value = next;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
_vue.watch.call(void 0,
|
|
237
|
+
() => _optionalChain([props, 'access', _35 => _35.expandable, 'optionalAccess', _36 => _36.expandedRowKeys]),
|
|
238
|
+
(next) => {
|
|
239
|
+
if (next !== void 0) {
|
|
240
|
+
uncontrolledExpandedRowKeys.value = next;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
const fixedOverrides = _vue.ref.call(void 0, {});
|
|
245
|
+
const displayColumns = _vue.computed.call(void 0, () => {
|
|
246
|
+
return props.columns.map((column) => {
|
|
247
|
+
const hasOverride = column.key in fixedOverrides.value;
|
|
248
|
+
return {
|
|
249
|
+
...column,
|
|
250
|
+
fixed: hasOverride ? fixedOverrides.value[column.key] : column.fixed
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
const fixedColumnsInfo = _vue.computed.call(void 0, () => {
|
|
255
|
+
return _tigercatcore.getFixedColumnOffsets.call(void 0, displayColumns.value, measuredColumnWidths.value);
|
|
256
|
+
});
|
|
257
|
+
const columnByKey = _vue.computed.call(void 0, () => {
|
|
258
|
+
const map = {};
|
|
259
|
+
for (const column of displayColumns.value) {
|
|
260
|
+
map[column.key] = column;
|
|
261
|
+
}
|
|
262
|
+
return map;
|
|
263
|
+
});
|
|
264
|
+
function toggleColumnLock(columnKey) {
|
|
265
|
+
const original = _optionalChain([props, 'access', _37 => _37.columns, 'access', _38 => _38.find, 'call', _39 => _39((c) => c.key === columnKey), 'optionalAccess', _40 => _40.fixed]);
|
|
266
|
+
const hasOverride = columnKey in fixedOverrides.value;
|
|
267
|
+
const current = hasOverride ? fixedOverrides.value[columnKey] : original;
|
|
268
|
+
const isLocked = current === "left" || current === "right";
|
|
269
|
+
fixedOverrides.value[columnKey] = isLocked ? false : "left";
|
|
270
|
+
}
|
|
271
|
+
const processedData = _vue.computed.call(void 0, () => {
|
|
272
|
+
let data = _nullishCoalesce(props.dataSource, () => ( []));
|
|
273
|
+
if (props.filterMode === "advanced" && (_nullishCoalesce(_optionalChain([props, 'access', _41 => _41.advancedFilterRules, 'optionalAccess', _42 => _42.length]), () => ( 0))) > 0) {
|
|
274
|
+
data = _tigercatcore.filterDataAdvanced.call(void 0, data, _nullishCoalesce(props.advancedFilterRules, () => ( [])));
|
|
275
|
+
} else {
|
|
276
|
+
data = _tigercatcore.filterData.call(void 0, data, filterState.value);
|
|
277
|
+
}
|
|
278
|
+
if (sortState.value.key && sortState.value.direction) {
|
|
279
|
+
const column = columnByKey.value[sortState.value.key];
|
|
280
|
+
data = _tigercatcore.sortData.call(void 0, data, sortState.value.key, sortState.value.direction, _optionalChain([column, 'optionalAccess', _43 => _43.sortFn]));
|
|
281
|
+
}
|
|
282
|
+
return data;
|
|
283
|
+
});
|
|
284
|
+
const paginatedData = _vue.computed.call(void 0, () => {
|
|
285
|
+
if (props.pagination === false) {
|
|
286
|
+
return processedData.value;
|
|
287
|
+
}
|
|
288
|
+
return _tigercatcore.paginateData.call(void 0, processedData.value, currentPage.value, currentPageSize.value);
|
|
289
|
+
});
|
|
290
|
+
const paginatedRowKeys = _vue.computed.call(void 0, () => {
|
|
291
|
+
return _tigercatcore.createTableRowKeyCache.call(void 0, props.rowKey).getMany(
|
|
292
|
+
paginatedData.value
|
|
293
|
+
);
|
|
294
|
+
});
|
|
295
|
+
const selectedRowKeySet = _vue.computed.call(void 0, () => {
|
|
296
|
+
return new Set(selectedRowKeys.value);
|
|
297
|
+
});
|
|
298
|
+
const expandedRowKeySet = _vue.computed.call(void 0, () => {
|
|
299
|
+
return new Set(expandedRowKeys.value);
|
|
300
|
+
});
|
|
301
|
+
const totalColumnCount = _vue.computed.call(void 0, () => {
|
|
302
|
+
let count = displayColumns.value.length;
|
|
303
|
+
if (props.rowSelection) count += 1;
|
|
304
|
+
if (props.expandable) count += 1;
|
|
305
|
+
return count;
|
|
306
|
+
});
|
|
307
|
+
const paginationInfo = _vue.computed.call(void 0, () => {
|
|
308
|
+
if (props.pagination === false) {
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
const total = _optionalChain([paginationConfig, 'access', _44 => _44.value, 'optionalAccess', _45 => _45.total]) !== void 0 && paginationConfig.value.total > 0 ? paginationConfig.value.total : processedData.value.length;
|
|
312
|
+
return _tigercatcore.calculatePagination.call(void 0, total, currentPage.value, currentPageSize.value);
|
|
313
|
+
});
|
|
314
|
+
function handleSort(columnKey) {
|
|
315
|
+
const column = displayColumns.value.find((col) => col.key === columnKey);
|
|
316
|
+
if (!column || !column.sortable) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
let newDirection = "asc";
|
|
320
|
+
if (sortState.value.key === columnKey) {
|
|
321
|
+
if (sortState.value.direction === "asc") {
|
|
322
|
+
newDirection = "desc";
|
|
323
|
+
} else if (sortState.value.direction === "desc") {
|
|
324
|
+
newDirection = null;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
const nextSortState = {
|
|
328
|
+
key: newDirection ? columnKey : null,
|
|
329
|
+
direction: newDirection
|
|
330
|
+
};
|
|
331
|
+
if (!isSortControlled.value) {
|
|
332
|
+
uncontrolledSortState.value = nextSortState;
|
|
333
|
+
}
|
|
334
|
+
emit("sort-change", nextSortState);
|
|
335
|
+
emit("change", {
|
|
336
|
+
sort: nextSortState,
|
|
337
|
+
filters: filterState.value,
|
|
338
|
+
pagination: props.pagination !== false ? {
|
|
339
|
+
current: currentPage.value,
|
|
340
|
+
pageSize: currentPageSize.value
|
|
341
|
+
} : null
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
function handleFilter(columnKey, value) {
|
|
345
|
+
const nextFilterState = {
|
|
346
|
+
...filterState.value,
|
|
347
|
+
[columnKey]: value
|
|
348
|
+
};
|
|
349
|
+
if (!isFiltersControlled.value) {
|
|
350
|
+
uncontrolledFilterState.value = nextFilterState;
|
|
351
|
+
}
|
|
352
|
+
uncontrolledCurrentPage.value = 1;
|
|
353
|
+
emit("filter-change", nextFilterState);
|
|
354
|
+
emit("change", {
|
|
355
|
+
sort: sortState.value,
|
|
356
|
+
filters: nextFilterState,
|
|
357
|
+
pagination: props.pagination !== false ? {
|
|
358
|
+
current: 1,
|
|
359
|
+
pageSize: currentPageSize.value
|
|
360
|
+
} : null
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
function handlePageChange(page) {
|
|
364
|
+
uncontrolledCurrentPage.value = page;
|
|
365
|
+
emit("page-change", { current: page, pageSize: currentPageSize.value });
|
|
366
|
+
emit("change", {
|
|
367
|
+
sort: sortState.value,
|
|
368
|
+
filters: filterState.value,
|
|
369
|
+
pagination: {
|
|
370
|
+
current: page,
|
|
371
|
+
pageSize: currentPageSize.value
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
function handlePageSizeChange(pageSize) {
|
|
376
|
+
uncontrolledCurrentPageSize.value = pageSize;
|
|
377
|
+
uncontrolledCurrentPage.value = 1;
|
|
378
|
+
emit("page-change", { current: 1, pageSize });
|
|
379
|
+
emit("change", {
|
|
380
|
+
sort: sortState.value,
|
|
381
|
+
filters: filterState.value,
|
|
382
|
+
pagination: {
|
|
383
|
+
current: 1,
|
|
384
|
+
pageSize
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
function handleToggleExpand(key, record) {
|
|
389
|
+
const isExpanded = expandedRowKeySet.value.has(key);
|
|
390
|
+
const newKeys = isExpanded ? expandedRowKeys.value.filter((k) => k !== key) : [...expandedRowKeys.value, key];
|
|
391
|
+
if (!isExpandControlled.value) {
|
|
392
|
+
uncontrolledExpandedRowKeys.value = newKeys;
|
|
393
|
+
}
|
|
394
|
+
emit("expand-change", newKeys, record, !isExpanded);
|
|
395
|
+
}
|
|
396
|
+
function handleRowClick(record, index, key) {
|
|
397
|
+
emit("row-click", record, index);
|
|
398
|
+
if (_optionalChain([props, 'access', _46 => _46.expandable, 'optionalAccess', _47 => _47.expandRowByClick])) {
|
|
399
|
+
const isExpandable = _optionalChain([props, 'access', _48 => _48.expandable, 'optionalAccess', _49 => _49.rowExpandable]) ? props.expandable.rowExpandable(record) : true;
|
|
400
|
+
if (isExpandable) {
|
|
401
|
+
handleToggleExpand(key, record);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function handleSelectRow(key, checked) {
|
|
406
|
+
let newKeys;
|
|
407
|
+
if (_optionalChain([props, 'access', _50 => _50.rowSelection, 'optionalAccess', _51 => _51.type]) === "radio") {
|
|
408
|
+
newKeys = checked ? [key] : [];
|
|
409
|
+
} else {
|
|
410
|
+
if (checked) {
|
|
411
|
+
newKeys = [...selectedRowKeys.value, key];
|
|
412
|
+
} else {
|
|
413
|
+
newKeys = selectedRowKeys.value.filter((k) => k !== key);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
if (!isSelectionControlled.value) {
|
|
417
|
+
uncontrolledSelectedRowKeys.value = newKeys;
|
|
418
|
+
}
|
|
419
|
+
emit("selection-change", newKeys);
|
|
420
|
+
}
|
|
421
|
+
function handleSelectAll(checked) {
|
|
422
|
+
if (checked) {
|
|
423
|
+
const nextKeys = paginatedRowKeys.value;
|
|
424
|
+
if (!isSelectionControlled.value) {
|
|
425
|
+
uncontrolledSelectedRowKeys.value = nextKeys;
|
|
426
|
+
}
|
|
427
|
+
emit("selection-change", nextKeys);
|
|
428
|
+
} else {
|
|
429
|
+
if (!isSelectionControlled.value) {
|
|
430
|
+
uncontrolledSelectedRowKeys.value = [];
|
|
431
|
+
}
|
|
432
|
+
emit("selection-change", []);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
const allSelected = _vue.computed.call(void 0, () => {
|
|
436
|
+
if (paginatedRowKeys.value.length === 0) {
|
|
437
|
+
return false;
|
|
438
|
+
}
|
|
439
|
+
return paginatedRowKeys.value.every((key) => selectedRowKeySet.value.has(key));
|
|
440
|
+
});
|
|
441
|
+
const someSelected = _vue.computed.call(void 0, () => {
|
|
442
|
+
return selectedRowKeys.value.length > 0 && !allSelected.value;
|
|
443
|
+
});
|
|
444
|
+
const editingCell = _vue.ref.call(void 0, null);
|
|
445
|
+
const editingValue = _vue.ref.call(void 0, "");
|
|
446
|
+
function isCellEditable(columnKey, rowIndex) {
|
|
447
|
+
if (!props.editable) return false;
|
|
448
|
+
if (!props.editableCells) return true;
|
|
449
|
+
return !!_optionalChain([props, 'access', _52 => _52.editableCells, 'access', _53 => _53.get, 'call', _54 => _54(columnKey), 'optionalAccess', _55 => _55.has, 'call', _56 => _56(rowIndex)]);
|
|
450
|
+
}
|
|
451
|
+
function startEditing(rowIndex, columnKey, currentValue) {
|
|
452
|
+
editingCell.value = { rowIndex, columnKey };
|
|
453
|
+
editingValue.value = String(_nullishCoalesce(currentValue, () => ( "")));
|
|
454
|
+
}
|
|
455
|
+
function commitEdit() {
|
|
456
|
+
if (editingCell.value) {
|
|
457
|
+
emit(
|
|
458
|
+
"cell-change",
|
|
459
|
+
editingCell.value.rowIndex,
|
|
460
|
+
editingCell.value.columnKey,
|
|
461
|
+
editingValue.value
|
|
462
|
+
);
|
|
463
|
+
editingCell.value = null;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
function cancelEdit() {
|
|
467
|
+
editingCell.value = null;
|
|
468
|
+
}
|
|
469
|
+
function handleExport() {
|
|
470
|
+
const content = _tigercatcore.exportTableData.call(void 0, displayColumns.value, processedData.value, props.exportFormat);
|
|
471
|
+
_tigercatcore.downloadTableExport.call(void 0, content, props.exportFilename, props.exportFormat);
|
|
472
|
+
emit("export", content);
|
|
473
|
+
}
|
|
474
|
+
const dragColumnKey = _vue.ref.call(void 0, null);
|
|
475
|
+
function handleDragStart(columnKey) {
|
|
476
|
+
dragColumnKey.value = columnKey;
|
|
477
|
+
}
|
|
478
|
+
function handleDrop(targetKey) {
|
|
479
|
+
if (!dragColumnKey.value || dragColumnKey.value === targetKey) return;
|
|
480
|
+
const cols = [...displayColumns.value];
|
|
481
|
+
const fromIdx = cols.findIndex((c) => c.key === dragColumnKey.value);
|
|
482
|
+
const toIdx = cols.findIndex((c) => c.key === targetKey);
|
|
483
|
+
if (fromIdx >= 0 && toIdx >= 0) {
|
|
484
|
+
const [moved] = cols.splice(fromIdx, 1);
|
|
485
|
+
cols.splice(toIdx, 0, moved);
|
|
486
|
+
emit("column-order-change", cols);
|
|
487
|
+
}
|
|
488
|
+
dragColumnKey.value = null;
|
|
489
|
+
}
|
|
490
|
+
const dragRowKey = _vue.ref.call(void 0, null);
|
|
491
|
+
function handleRowDragStart(rowKeyValue) {
|
|
492
|
+
dragRowKey.value = rowKeyValue;
|
|
493
|
+
}
|
|
494
|
+
function handleRowDrop(targetKey) {
|
|
495
|
+
if (dragRowKey.value === null || dragRowKey.value === targetKey) return;
|
|
496
|
+
const rows = [...paginatedData.value];
|
|
497
|
+
const fromIdx = paginatedRowKeys.value.findIndex((key) => key === dragRowKey.value);
|
|
498
|
+
const toIdx = paginatedRowKeys.value.findIndex((key) => key === targetKey);
|
|
499
|
+
if (fromIdx >= 0 && toIdx >= 0) {
|
|
500
|
+
const [moved] = rows.splice(fromIdx, 1);
|
|
501
|
+
rows.splice(toIdx, 0, moved);
|
|
502
|
+
emit("row-order-change", rows);
|
|
503
|
+
}
|
|
504
|
+
dragRowKey.value = null;
|
|
505
|
+
}
|
|
506
|
+
const virtualScrollTop = _vue.ref.call(void 0, 0);
|
|
507
|
+
void _tigercatcore.getFixedVirtualRange;
|
|
508
|
+
const groupedData = _vue.computed.call(void 0, () => {
|
|
509
|
+
if (!props.groupBy) return null;
|
|
510
|
+
return _tigercatcore.groupDataByColumn.call(void 0, paginatedData.value, props.groupBy);
|
|
511
|
+
});
|
|
512
|
+
return {
|
|
513
|
+
paginationConfig,
|
|
514
|
+
displayColumns,
|
|
515
|
+
fixedColumnsInfo,
|
|
516
|
+
columnByKey,
|
|
517
|
+
processedData,
|
|
518
|
+
paginatedData,
|
|
519
|
+
paginatedRowKeys,
|
|
520
|
+
selectedRowKeySet,
|
|
521
|
+
expandedRowKeySet,
|
|
522
|
+
totalColumnCount,
|
|
523
|
+
paginationInfo,
|
|
524
|
+
allSelected,
|
|
525
|
+
someSelected,
|
|
526
|
+
groupedData,
|
|
527
|
+
sortState,
|
|
528
|
+
filterState,
|
|
529
|
+
currentPage,
|
|
530
|
+
currentPageSize,
|
|
531
|
+
selectedRowKeys,
|
|
532
|
+
expandedRowKeys,
|
|
533
|
+
editingCell,
|
|
534
|
+
editingValue,
|
|
535
|
+
virtualScrollTop,
|
|
536
|
+
toggleColumnLock,
|
|
537
|
+
handleSort,
|
|
538
|
+
handleFilter,
|
|
539
|
+
handlePageChange,
|
|
540
|
+
handlePageSizeChange,
|
|
541
|
+
handleRowClick,
|
|
542
|
+
handleToggleExpand,
|
|
543
|
+
handleSelectRow,
|
|
544
|
+
handleSelectAll,
|
|
545
|
+
isCellEditable,
|
|
546
|
+
startEditing,
|
|
547
|
+
commitEdit,
|
|
548
|
+
cancelEdit,
|
|
549
|
+
handleExport,
|
|
550
|
+
handleDragStart,
|
|
551
|
+
handleDrop,
|
|
552
|
+
handleRowDragStart,
|
|
553
|
+
handleRowDrop
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// src/components/Table/icons.ts
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
var spinnerSvg = _tigercatcore.getSpinnerSVG.call(void 0, "spinner");
|
|
575
|
+
var SortIcon = (direction) => {
|
|
576
|
+
const active = direction !== null;
|
|
577
|
+
const pathD = direction === "asc" ? _tigercatcore.sortAscIcon16PathD : direction === "desc" ? _tigercatcore.sortDescIcon16PathD : _tigercatcore.sortBothIcon16PathD;
|
|
578
|
+
return _vue.h.call(void 0,
|
|
579
|
+
"svg",
|
|
580
|
+
{
|
|
581
|
+
class: _tigercatcore.getSortIconClasses.call(void 0, active),
|
|
582
|
+
width: "16",
|
|
583
|
+
height: "16",
|
|
584
|
+
viewBox: _tigercatcore.icon16ViewBox,
|
|
585
|
+
fill: "currentColor"
|
|
586
|
+
},
|
|
587
|
+
[_vue.h.call(void 0, "path", { d: pathD })]
|
|
588
|
+
);
|
|
589
|
+
};
|
|
590
|
+
var LockIcon = (locked) => {
|
|
591
|
+
return _vue.h.call(void 0,
|
|
592
|
+
"svg",
|
|
593
|
+
{
|
|
594
|
+
width: "14",
|
|
595
|
+
height: "14",
|
|
596
|
+
viewBox: _tigercatcore.icon24ViewBox,
|
|
597
|
+
fill: "currentColor",
|
|
598
|
+
"aria-hidden": "true"
|
|
599
|
+
},
|
|
600
|
+
[_vue.h.call(void 0, "path", { d: locked ? _tigercatcore.lockClosedIcon24PathD : _tigercatcore.lockOpenIcon24PathD })]
|
|
601
|
+
);
|
|
602
|
+
};
|
|
603
|
+
var ExpandIcon = (expanded) => {
|
|
604
|
+
return _vue.h.call(void 0,
|
|
605
|
+
"svg",
|
|
606
|
+
{
|
|
607
|
+
class: _tigercatcore.getExpandIconClasses.call(void 0, expanded),
|
|
608
|
+
width: "16",
|
|
609
|
+
height: "16",
|
|
610
|
+
viewBox: _tigercatcore.icon16ViewBox,
|
|
611
|
+
fill: "currentColor",
|
|
612
|
+
"aria-hidden": "true"
|
|
613
|
+
},
|
|
614
|
+
[_vue.h.call(void 0, "path", { d: _tigercatcore.expandChevronIcon16PathD })]
|
|
615
|
+
);
|
|
616
|
+
};
|
|
617
|
+
var LoadingSpinner = () => {
|
|
618
|
+
return _vue.h.call(void 0,
|
|
619
|
+
"svg",
|
|
620
|
+
{
|
|
621
|
+
class: _tigercatcore.getLoadingOverlaySpinnerClasses.call(void 0, ),
|
|
622
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
623
|
+
fill: "none",
|
|
624
|
+
viewBox: spinnerSvg.viewBox
|
|
625
|
+
},
|
|
626
|
+
spinnerSvg.elements.map((el) => _vue.h.call(void 0, el.type, _tigercatcore.normalizeSvgAttrs.call(void 0, el.attrs)))
|
|
627
|
+
);
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
// src/components/Table/render-header.ts
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
function renderTableHeader(ctx, props, slots) {
|
|
640
|
+
const headerCells = [];
|
|
641
|
+
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
642
|
+
const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
|
|
643
|
+
const expandHeaderTh = props.expandable ? _vue.h.call(void 0, "th", {
|
|
644
|
+
class: _tigercatcore.getExpandIconCellClasses.call(void 0, props.size),
|
|
645
|
+
"aria-label": "Expand"
|
|
646
|
+
}) : null;
|
|
647
|
+
if (expandAtStart && expandHeaderTh) {
|
|
648
|
+
headerCells.push(expandHeaderTh);
|
|
649
|
+
}
|
|
650
|
+
if (props.rowSelection && props.rowSelection.showCheckbox !== false && props.rowSelection.type !== "radio") {
|
|
651
|
+
headerCells.push(
|
|
652
|
+
_vue.h.call(void 0,
|
|
653
|
+
"th",
|
|
654
|
+
{
|
|
655
|
+
class: _tigercatcore.getCheckboxCellClasses.call(void 0, props.size)
|
|
656
|
+
},
|
|
657
|
+
[
|
|
658
|
+
_vue.h.call(void 0, "input", {
|
|
659
|
+
type: "checkbox",
|
|
660
|
+
class: "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
661
|
+
checked: ctx.allSelected.value,
|
|
662
|
+
indeterminate: ctx.someSelected.value,
|
|
663
|
+
onChange: (e) => ctx.handleSelectAll(e.target.checked)
|
|
664
|
+
})
|
|
665
|
+
]
|
|
666
|
+
)
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
ctx.displayColumns.value.forEach((column) => {
|
|
670
|
+
const isSorted = ctx.sortState.value.key === column.key;
|
|
671
|
+
const sortDirection = isSorted ? ctx.sortState.value.direction : null;
|
|
672
|
+
const ariaSort = column.sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0;
|
|
673
|
+
const isFixedLeft = column.fixed === "left";
|
|
674
|
+
const isFixedRight = column.fixed === "right";
|
|
675
|
+
const fixedStyle = isFixedLeft ? {
|
|
676
|
+
position: "sticky",
|
|
677
|
+
left: `${ctx.fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
|
|
678
|
+
zIndex: 15
|
|
679
|
+
} : isFixedRight ? {
|
|
680
|
+
position: "sticky",
|
|
681
|
+
right: `${ctx.fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
|
|
682
|
+
zIndex: 15
|
|
683
|
+
} : void 0;
|
|
684
|
+
const widthStyle = column.width ? {
|
|
685
|
+
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
686
|
+
} : void 0;
|
|
687
|
+
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
688
|
+
const headerContent = [];
|
|
689
|
+
const slotContent = _optionalChain([slots, 'access', _57 => _57[`header-${column.key}`], 'optionalCall', _58 => _58()]);
|
|
690
|
+
if (slotContent && slotContent.length > 0) {
|
|
691
|
+
headerContent.push(...slotContent);
|
|
692
|
+
} else if (column.renderHeader) {
|
|
693
|
+
headerContent.push(column.renderHeader());
|
|
694
|
+
} else {
|
|
695
|
+
headerContent.push(column.title);
|
|
696
|
+
}
|
|
697
|
+
if (props.columnLockable) {
|
|
698
|
+
headerContent.push(
|
|
699
|
+
_vue.h.call(void 0,
|
|
700
|
+
"button",
|
|
701
|
+
{
|
|
702
|
+
type: "button",
|
|
703
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
704
|
+
"inline-flex items-center",
|
|
705
|
+
column.fixed === "left" || column.fixed === "right" ? "text-[var(--tiger-primary,#2563eb)]" : "text-gray-400 hover:text-gray-700"
|
|
706
|
+
),
|
|
707
|
+
"aria-label": column.fixed === "left" || column.fixed === "right" ? `Unlock column ${column.title}` : `Lock column ${column.title}`,
|
|
708
|
+
onClick: (e) => {
|
|
709
|
+
e.stopPropagation();
|
|
710
|
+
ctx.toggleColumnLock(column.key);
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
[LockIcon(column.fixed === "left" || column.fixed === "right")]
|
|
714
|
+
)
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
if (column.sortable) {
|
|
718
|
+
headerContent.push(SortIcon(sortDirection));
|
|
719
|
+
}
|
|
720
|
+
headerCells.push(
|
|
721
|
+
_vue.h.call(void 0,
|
|
722
|
+
"th",
|
|
723
|
+
{
|
|
724
|
+
key: column.key,
|
|
725
|
+
"data-tiger-table-column-key": column.key,
|
|
726
|
+
"aria-sort": ariaSort,
|
|
727
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
728
|
+
_tigercatcore.getTableHeaderCellClasses.call(void 0,
|
|
729
|
+
props.size,
|
|
730
|
+
column.align || "left",
|
|
731
|
+
!!column.sortable,
|
|
732
|
+
column.headerClassName
|
|
733
|
+
),
|
|
734
|
+
(isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
735
|
+
),
|
|
736
|
+
style,
|
|
737
|
+
draggable: props.columnDraggable ? "true" : void 0,
|
|
738
|
+
onDragstart: props.columnDraggable ? () => ctx.handleDragStart(column.key) : void 0,
|
|
739
|
+
onDragover: props.columnDraggable ? (e) => e.preventDefault() : void 0,
|
|
740
|
+
onDrop: props.columnDraggable ? () => ctx.handleDrop(column.key) : void 0,
|
|
741
|
+
onClick: column.sortable ? () => ctx.handleSort(column.key) : void 0
|
|
742
|
+
},
|
|
743
|
+
[
|
|
744
|
+
_vue.h.call(void 0, "div", { class: "flex items-center gap-2" }, headerContent),
|
|
745
|
+
...column.filter ? [
|
|
746
|
+
_vue.h.call(void 0, "div", { class: "mt-2" }, [
|
|
747
|
+
column.filter.type === "select" && column.filter.options ? _vue.h.call(void 0,
|
|
748
|
+
"select",
|
|
749
|
+
{
|
|
750
|
+
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
751
|
+
onChange: (e) => ctx.handleFilter(column.key, e.target.value),
|
|
752
|
+
onClick: (e) => e.stopPropagation()
|
|
753
|
+
},
|
|
754
|
+
[
|
|
755
|
+
_vue.h.call(void 0, "option", { value: "" }, "All"),
|
|
756
|
+
...column.filter.options.map(
|
|
757
|
+
(opt) => _vue.h.call(void 0, "option", { value: opt.value }, opt.label)
|
|
758
|
+
)
|
|
759
|
+
]
|
|
760
|
+
) : _vue.h.call(void 0, "input", {
|
|
761
|
+
type: "text",
|
|
762
|
+
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
763
|
+
placeholder: column.filter.placeholder || "Filter...",
|
|
764
|
+
onInput: (e) => ctx.handleFilter(column.key, e.target.value),
|
|
765
|
+
onClick: (e) => e.stopPropagation()
|
|
766
|
+
})
|
|
767
|
+
])
|
|
768
|
+
] : []
|
|
769
|
+
]
|
|
770
|
+
)
|
|
771
|
+
);
|
|
772
|
+
});
|
|
773
|
+
if (expandAtEnd && expandHeaderTh) {
|
|
774
|
+
headerCells.push(expandHeaderTh);
|
|
775
|
+
}
|
|
776
|
+
return _vue.h.call(void 0, "thead", { class: _tigercatcore.getTableHeaderClasses.call(void 0, props.stickyHeader) }, [_vue.h.call(void 0, "tr", headerCells)]);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// src/components/Table/render-body.ts
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
function renderTableBody(ctx, props, slots) {
|
|
796
|
+
if (props.loading) {
|
|
797
|
+
return null;
|
|
798
|
+
}
|
|
799
|
+
if (ctx.paginatedData.value.length === 0) {
|
|
800
|
+
return _vue.h.call(void 0, "tbody", [
|
|
801
|
+
_vue.h.call(void 0, "tr", [
|
|
802
|
+
_vue.h.call(void 0,
|
|
803
|
+
"td",
|
|
804
|
+
{
|
|
805
|
+
colspan: ctx.totalColumnCount.value,
|
|
806
|
+
class: _tigercatcore.tableEmptyStateClasses
|
|
807
|
+
},
|
|
808
|
+
[
|
|
809
|
+
_vue.h.call(void 0,
|
|
810
|
+
"div",
|
|
811
|
+
{
|
|
812
|
+
role: "status",
|
|
813
|
+
"aria-live": "polite"
|
|
814
|
+
},
|
|
815
|
+
props.emptyText
|
|
816
|
+
)
|
|
817
|
+
]
|
|
818
|
+
)
|
|
819
|
+
])
|
|
820
|
+
]);
|
|
821
|
+
}
|
|
822
|
+
function getDelegatedRow(event) {
|
|
823
|
+
const row = _optionalChain([event, 'access', _59 => _59.target, 'optionalAccess', _60 => _60.closest, 'call', _61 => _61(
|
|
824
|
+
"tr[data-tiger-table-row-index]"
|
|
825
|
+
)]);
|
|
826
|
+
if (!row) return null;
|
|
827
|
+
const index = Number(row.dataset.tigerTableRowIndex);
|
|
828
|
+
if (!Number.isInteger(index)) return null;
|
|
829
|
+
const record = ctx.paginatedData.value[index];
|
|
830
|
+
const key = ctx.paginatedRowKeys.value[index];
|
|
831
|
+
if (!record || key === void 0) return null;
|
|
832
|
+
return { key, record, index };
|
|
833
|
+
}
|
|
834
|
+
function handleBodyClick(event) {
|
|
835
|
+
const row = getDelegatedRow(event);
|
|
836
|
+
if (!row) return;
|
|
837
|
+
ctx.handleRowClick(row.record, row.index, row.key);
|
|
838
|
+
}
|
|
839
|
+
function handleBodyDragStart(event) {
|
|
840
|
+
if (!props.rowDraggable) return;
|
|
841
|
+
const row = getDelegatedRow(event);
|
|
842
|
+
if (!row) return;
|
|
843
|
+
ctx.handleRowDragStart(row.key);
|
|
844
|
+
}
|
|
845
|
+
function handleBodyDragOver(event) {
|
|
846
|
+
if (!props.rowDraggable) return;
|
|
847
|
+
event.preventDefault();
|
|
848
|
+
}
|
|
849
|
+
function handleBodyDrop(event) {
|
|
850
|
+
if (!props.rowDraggable) return;
|
|
851
|
+
const row = getDelegatedRow(event);
|
|
852
|
+
if (!row) return;
|
|
853
|
+
ctx.handleRowDrop(row.key);
|
|
854
|
+
}
|
|
855
|
+
const delegatedBodyHandlers = {
|
|
856
|
+
onClick: handleBodyClick,
|
|
857
|
+
onDragstart: props.rowDraggable ? handleBodyDragStart : void 0,
|
|
858
|
+
onDragover: props.rowDraggable ? handleBodyDragOver : void 0,
|
|
859
|
+
onDrop: props.rowDraggable ? handleBodyDrop : void 0
|
|
860
|
+
};
|
|
861
|
+
function renderDataRow(record, index) {
|
|
862
|
+
const key = ctx.paginatedRowKeys.value[index];
|
|
863
|
+
const isSelected = ctx.selectedRowKeySet.value.has(key);
|
|
864
|
+
const isExpanded = ctx.expandedRowKeySet.value.has(key);
|
|
865
|
+
const isRowExpandable = props.expandable ? props.expandable.rowExpandable ? props.expandable.rowExpandable(record) : true : false;
|
|
866
|
+
const rowClass = typeof props.rowClassName === "function" ? props.rowClassName(record, index) : props.rowClassName;
|
|
867
|
+
const cells = [];
|
|
868
|
+
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
869
|
+
const expandToggleCell = props.expandable ? _vue.h.call(void 0,
|
|
870
|
+
"td",
|
|
871
|
+
{
|
|
872
|
+
class: _tigercatcore.getExpandIconCellClasses.call(void 0, props.size)
|
|
873
|
+
},
|
|
874
|
+
isRowExpandable ? [
|
|
875
|
+
_vue.h.call(void 0,
|
|
876
|
+
"button",
|
|
877
|
+
{
|
|
878
|
+
type: "button",
|
|
879
|
+
class: "inline-flex items-center justify-center",
|
|
880
|
+
"aria-label": isExpanded ? "Collapse row" : "Expand row",
|
|
881
|
+
"aria-expanded": isExpanded,
|
|
882
|
+
onClick: (e) => {
|
|
883
|
+
e.stopPropagation();
|
|
884
|
+
ctx.handleToggleExpand(key, record);
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
[ExpandIcon(isExpanded)]
|
|
888
|
+
)
|
|
889
|
+
] : []
|
|
890
|
+
) : null;
|
|
891
|
+
if (expandAtStart && expandToggleCell) {
|
|
892
|
+
cells.push(expandToggleCell);
|
|
893
|
+
}
|
|
894
|
+
if (props.rowSelection && props.rowSelection.showCheckbox !== false) {
|
|
895
|
+
const checkboxProps = _optionalChain([props, 'access', _62 => _62.rowSelection, 'optionalAccess', _63 => _63.getCheckboxProps, 'optionalCall', _64 => _64(record)]) || {};
|
|
896
|
+
cells.push(
|
|
897
|
+
_vue.h.call(void 0,
|
|
898
|
+
"td",
|
|
899
|
+
{
|
|
900
|
+
class: _tigercatcore.getCheckboxCellClasses.call(void 0, props.size)
|
|
901
|
+
},
|
|
902
|
+
[
|
|
903
|
+
_vue.h.call(void 0, "input", {
|
|
904
|
+
type: _optionalChain([props, 'access', _65 => _65.rowSelection, 'optionalAccess', _66 => _66.type]) === "radio" ? "radio" : "checkbox",
|
|
905
|
+
class: _optionalChain([props, 'access', _67 => _67.rowSelection, 'optionalAccess', _68 => _68.type]) === "radio" ? "border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]" : "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
906
|
+
checked: isSelected,
|
|
907
|
+
disabled: checkboxProps.disabled,
|
|
908
|
+
onClick: (e) => e.stopPropagation(),
|
|
909
|
+
onChange: (e) => ctx.handleSelectRow(key, e.target.checked)
|
|
910
|
+
})
|
|
911
|
+
]
|
|
912
|
+
)
|
|
913
|
+
);
|
|
914
|
+
}
|
|
915
|
+
ctx.displayColumns.value.forEach((column) => {
|
|
916
|
+
const dataKey = column.dataKey || column.key;
|
|
917
|
+
const cellValue = record[dataKey];
|
|
918
|
+
const isFixedLeft = column.fixed === "left";
|
|
919
|
+
const isFixedRight = column.fixed === "right";
|
|
920
|
+
const fixedStyle = isFixedLeft ? {
|
|
921
|
+
position: "sticky",
|
|
922
|
+
left: `${ctx.fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
|
|
923
|
+
zIndex: 10
|
|
924
|
+
} : isFixedRight ? {
|
|
925
|
+
position: "sticky",
|
|
926
|
+
right: `${ctx.fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
|
|
927
|
+
zIndex: 10
|
|
928
|
+
} : void 0;
|
|
929
|
+
const widthStyle = column.width ? {
|
|
930
|
+
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
931
|
+
} : void 0;
|
|
932
|
+
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
933
|
+
const stickyBgClass = props.striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
|
|
934
|
+
const stickyCellClass = isFixedLeft || isFixedRight ? _tigercatcore.classNames.call(void 0,
|
|
935
|
+
stickyBgClass,
|
|
936
|
+
props.hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
937
|
+
) : void 0;
|
|
938
|
+
const isEditing = _optionalChain([ctx, 'access', _69 => _69.editingCell, 'access', _70 => _70.value, 'optionalAccess', _71 => _71.rowIndex]) === index && _optionalChain([ctx, 'access', _72 => _72.editingCell, 'access', _73 => _73.value, 'optionalAccess', _74 => _74.columnKey]) === column.key;
|
|
939
|
+
const isEditableCell = ctx.isCellEditable(column.key, index);
|
|
940
|
+
const cellContent = isEditing ? _vue.h.call(void 0, "input", {
|
|
941
|
+
type: "text",
|
|
942
|
+
class: _tigercatcore.editableCellInputClasses,
|
|
943
|
+
value: ctx.editingValue.value,
|
|
944
|
+
autofocus: true,
|
|
945
|
+
onInput: (e) => {
|
|
946
|
+
ctx.editingValue.value = e.target.value;
|
|
947
|
+
},
|
|
948
|
+
onBlur: () => ctx.commitEdit(),
|
|
949
|
+
onKeydown: (e) => {
|
|
950
|
+
if (e.key === "Enter") ctx.commitEdit();
|
|
951
|
+
if (e.key === "Escape") ctx.cancelEdit();
|
|
952
|
+
}
|
|
953
|
+
}) : _nullishCoalesce(_optionalChain([slots, 'access', _75 => _75[`cell-${column.key}`], 'optionalCall', _76 => _76({ record, index })]), () => ( (column.render ? column.render(record, index) : cellValue)));
|
|
954
|
+
cells.push(
|
|
955
|
+
_vue.h.call(void 0,
|
|
956
|
+
"td",
|
|
957
|
+
{
|
|
958
|
+
key: column.key,
|
|
959
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
960
|
+
_tigercatcore.getTableCellClasses.call(void 0, props.size, column.align || "left", column.className),
|
|
961
|
+
stickyCellClass,
|
|
962
|
+
isEditableCell && !isEditing && _tigercatcore.getEditableCellClasses.call(void 0, false)
|
|
963
|
+
),
|
|
964
|
+
style,
|
|
965
|
+
onDblclick: isEditableCell && !isEditing ? () => ctx.startEditing(index, column.key, cellValue) : void 0
|
|
966
|
+
},
|
|
967
|
+
[cellContent]
|
|
968
|
+
)
|
|
969
|
+
);
|
|
970
|
+
});
|
|
971
|
+
if (!expandAtStart && expandToggleCell) {
|
|
972
|
+
cells.push(expandToggleCell);
|
|
973
|
+
}
|
|
974
|
+
const rowNode = _vue.h.call(void 0,
|
|
975
|
+
"tr",
|
|
976
|
+
{
|
|
977
|
+
key,
|
|
978
|
+
"data-tiger-table-row-index": index,
|
|
979
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
980
|
+
_tigercatcore.getTableRowClasses.call(void 0, props.hoverable, props.striped, index % 2 === 0, rowClass),
|
|
981
|
+
ctx.fixedColumnsInfo.value.hasFixedColumns && "group"
|
|
982
|
+
),
|
|
983
|
+
draggable: props.rowDraggable ? "true" : void 0
|
|
984
|
+
},
|
|
985
|
+
cells
|
|
986
|
+
);
|
|
987
|
+
if (props.expandable && isExpanded && isRowExpandable) {
|
|
988
|
+
const expandedContent = _optionalChain([slots, 'access', _77 => _77["expanded-row"], 'optionalCall', _78 => _78({ record, index })]) || (props.expandable.expandedRowRender ? props.expandable.expandedRowRender(record, index) : null);
|
|
989
|
+
const expandedRow = _vue.h.call(void 0,
|
|
990
|
+
"tr",
|
|
991
|
+
{
|
|
992
|
+
key: `${key}-expanded`,
|
|
993
|
+
class: _tigercatcore.getExpandedRowClasses.call(void 0, )
|
|
994
|
+
},
|
|
995
|
+
[
|
|
996
|
+
_vue.h.call(void 0,
|
|
997
|
+
"td",
|
|
998
|
+
{
|
|
999
|
+
colspan: ctx.totalColumnCount.value,
|
|
1000
|
+
class: _tigercatcore.getExpandedRowContentClasses.call(void 0, props.size)
|
|
1001
|
+
},
|
|
1002
|
+
[expandedContent]
|
|
1003
|
+
)
|
|
1004
|
+
]
|
|
1005
|
+
);
|
|
1006
|
+
return [rowNode, expandedRow];
|
|
1007
|
+
}
|
|
1008
|
+
return rowNode;
|
|
1009
|
+
}
|
|
1010
|
+
if (ctx.groupedData.value) {
|
|
1011
|
+
const groupRows = [];
|
|
1012
|
+
for (const [groupKey, groupItems] of ctx.groupedData.value) {
|
|
1013
|
+
groupRows.push(
|
|
1014
|
+
_vue.h.call(void 0, "tr", { key: `group-${groupKey}`, class: _tigercatcore.tableGroupHeaderClasses }, [
|
|
1015
|
+
_vue.h.call(void 0,
|
|
1016
|
+
"td",
|
|
1017
|
+
{
|
|
1018
|
+
colspan: ctx.totalColumnCount.value,
|
|
1019
|
+
class: _tigercatcore.getGroupHeaderCellClasses.call(void 0, props.size)
|
|
1020
|
+
},
|
|
1021
|
+
`${props.groupBy}: ${groupKey} (${groupItems.length})`
|
|
1022
|
+
)
|
|
1023
|
+
])
|
|
1024
|
+
);
|
|
1025
|
+
groupItems.forEach((record, i) => {
|
|
1026
|
+
const globalIndex = ctx.paginatedData.value.indexOf(record);
|
|
1027
|
+
const result = renderDataRow(record, globalIndex >= 0 ? globalIndex : i);
|
|
1028
|
+
if (Array.isArray(result)) {
|
|
1029
|
+
groupRows.push(...result);
|
|
1030
|
+
} else {
|
|
1031
|
+
groupRows.push(result);
|
|
1032
|
+
}
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
return _vue.h.call(void 0, "tbody", delegatedBodyHandlers, groupRows);
|
|
1036
|
+
}
|
|
1037
|
+
const rows = ctx.paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
|
|
1038
|
+
return _vue.h.call(void 0, "tbody", delegatedBodyHandlers, rows);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
// src/components/Table/render-summary.ts
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
function renderSummaryRow(ctx, props) {
|
|
1045
|
+
if (!_optionalChain([props, 'access', _79 => _79.summaryRow, 'optionalAccess', _80 => _80.show])) return null;
|
|
1046
|
+
const emptyCells = [];
|
|
1047
|
+
if (props.rowSelection) {
|
|
1048
|
+
emptyCells.push(_vue.h.call(void 0, "td", { class: _tigercatcore.getTableCellClasses.call(void 0, props.size, "left") }));
|
|
1049
|
+
}
|
|
1050
|
+
if (props.expandable) {
|
|
1051
|
+
emptyCells.push(_vue.h.call(void 0, "td", { class: _tigercatcore.getTableCellClasses.call(void 0, props.size, "left") }));
|
|
1052
|
+
}
|
|
1053
|
+
const dataCells = ctx.displayColumns.value.map((col) => {
|
|
1054
|
+
const dataKey = col.dataKey || col.key;
|
|
1055
|
+
const val = props.summaryRow.data[dataKey];
|
|
1056
|
+
return _vue.h.call(void 0,
|
|
1057
|
+
"td",
|
|
1058
|
+
{
|
|
1059
|
+
key: col.key,
|
|
1060
|
+
class: _tigercatcore.getTableCellClasses.call(void 0, props.size, col.align || "left", col.className)
|
|
1061
|
+
},
|
|
1062
|
+
val != null ? String(val) : ""
|
|
1063
|
+
);
|
|
1064
|
+
});
|
|
1065
|
+
return _vue.h.call(void 0, "tfoot", [_vue.h.call(void 0, "tr", { class: _tigercatcore.tableSummaryRowClasses }, [...emptyCells, ...dataCells])]);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
// src/components/Table/render-pagination.ts
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
function renderPagination(ctx, props) {
|
|
1080
|
+
if (props.pagination === false || !ctx.paginationInfo.value) {
|
|
1081
|
+
return null;
|
|
1082
|
+
}
|
|
1083
|
+
const { totalPages, startIndex, endIndex, hasNext, hasPrev } = ctx.paginationInfo.value;
|
|
1084
|
+
const paginationConfig = props.pagination;
|
|
1085
|
+
const total = paginationConfig.total !== void 0 && paginationConfig.total > 0 ? paginationConfig.total : ctx.processedData.value.length;
|
|
1086
|
+
return _vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationContainerClasses.call(void 0, ) }, [
|
|
1087
|
+
paginationConfig.showTotal !== false && _vue.h.call(void 0,
|
|
1088
|
+
"div",
|
|
1089
|
+
{ class: _tigercatcore.getSimplePaginationTotalClasses.call(void 0, ) },
|
|
1090
|
+
paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) : `Showing ${startIndex} to ${endIndex} of ${total} results`
|
|
1091
|
+
),
|
|
1092
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationControlsClasses.call(void 0, ) }, [
|
|
1093
|
+
paginationConfig.showSizeChanger !== false && _vue.h.call(void 0,
|
|
1094
|
+
"select",
|
|
1095
|
+
{
|
|
1096
|
+
class: _tigercatcore.getSimplePaginationSelectClasses.call(void 0, ),
|
|
1097
|
+
value: ctx.currentPageSize.value,
|
|
1098
|
+
onChange: (e) => ctx.handlePageSizeChange(Number(e.target.value))
|
|
1099
|
+
},
|
|
1100
|
+
(paginationConfig.pageSizeOptions || [10, 20, 50, 100]).map(
|
|
1101
|
+
(size) => _vue.h.call(void 0, "option", { value: size }, `${size} / page`)
|
|
1102
|
+
)
|
|
1103
|
+
),
|
|
1104
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.getSimplePaginationButtonsWrapperClasses.call(void 0, ) }, [
|
|
1105
|
+
_vue.h.call(void 0,
|
|
1106
|
+
"button",
|
|
1107
|
+
{
|
|
1108
|
+
class: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasPrev),
|
|
1109
|
+
disabled: !hasPrev,
|
|
1110
|
+
onClick: () => ctx.handlePageChange(ctx.currentPage.value - 1)
|
|
1111
|
+
},
|
|
1112
|
+
"Previous"
|
|
1113
|
+
),
|
|
1114
|
+
_vue.h.call(void 0,
|
|
1115
|
+
"span",
|
|
1116
|
+
{ class: _tigercatcore.getSimplePaginationPageIndicatorClasses.call(void 0, ) },
|
|
1117
|
+
`Page ${ctx.currentPage.value} of ${totalPages}`
|
|
1118
|
+
),
|
|
1119
|
+
_vue.h.call(void 0,
|
|
1120
|
+
"button",
|
|
1121
|
+
{
|
|
1122
|
+
class: _tigercatcore.getSimplePaginationButtonClasses.call(void 0, !hasNext),
|
|
1123
|
+
disabled: !hasNext,
|
|
1124
|
+
onClick: () => ctx.handlePageChange(ctx.currentPage.value + 1)
|
|
1125
|
+
},
|
|
1126
|
+
"Next"
|
|
1127
|
+
)
|
|
1128
|
+
])
|
|
1129
|
+
])
|
|
1130
|
+
]);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
// src/components/Table.ts
|
|
1134
|
+
var Table = _vue.defineComponent.call(void 0, {
|
|
1135
|
+
name: "TigerTable",
|
|
1136
|
+
props: tableProps,
|
|
1137
|
+
emits: tableEmits,
|
|
1138
|
+
setup(props, { emit, slots }) {
|
|
1139
|
+
const wrapperRef = _vue.ref.call(void 0, null);
|
|
1140
|
+
const tableRef = _vue.ref.call(void 0, null);
|
|
1141
|
+
const measuredColumnWidths = _vue.ref.call(void 0, {});
|
|
1142
|
+
const measuredRowHeights = _vue.ref.call(void 0, []);
|
|
1143
|
+
const ctx = useTableState(props, emit, measuredColumnWidths);
|
|
1144
|
+
const resizeController = _tigercatcore.createTableResizeObserverController.call(void 0, {
|
|
1145
|
+
onResize: (snapshot) => {
|
|
1146
|
+
if (!areNumberRecordsEqual(measuredColumnWidths.value, snapshot.columnWidths)) {
|
|
1147
|
+
measuredColumnWidths.value = snapshot.columnWidths;
|
|
1148
|
+
}
|
|
1149
|
+
if (!areNumberArraysEqual(measuredRowHeights.value, snapshot.rowHeights)) {
|
|
1150
|
+
measuredRowHeights.value = snapshot.rowHeights;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
_vue.onMounted.call(void 0, () => {
|
|
1155
|
+
if (wrapperRef.value) {
|
|
1156
|
+
resizeController.observe(wrapperRef.value, tableRef.value);
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
_vue.onBeforeUnmount.call(void 0, () => resizeController.disconnect());
|
|
1160
|
+
return () => {
|
|
1161
|
+
const resolvedProps = props;
|
|
1162
|
+
const virtualRecommendation = _tigercatcore.getTableVirtualRecommendation.call(void 0, {
|
|
1163
|
+
virtual: resolvedProps.virtual,
|
|
1164
|
+
autoVirtual: resolvedProps.autoVirtual,
|
|
1165
|
+
dataLength: resolvedProps.dataSource.length,
|
|
1166
|
+
threshold: resolvedProps.virtualThreshold,
|
|
1167
|
+
autoThreshold: resolvedProps.autoVirtualThreshold
|
|
1168
|
+
});
|
|
1169
|
+
const effectiveVirtual = virtualRecommendation.enabled;
|
|
1170
|
+
const wrapperStyle = resolvedProps.maxHeight ? {
|
|
1171
|
+
maxHeight: typeof resolvedProps.maxHeight === "number" ? `${resolvedProps.maxHeight}px` : resolvedProps.maxHeight
|
|
1172
|
+
} : void 0;
|
|
1173
|
+
const tableChildren = [
|
|
1174
|
+
renderTableHeader(ctx, resolvedProps, slots),
|
|
1175
|
+
renderTableBody(ctx, resolvedProps, slots),
|
|
1176
|
+
renderSummaryRow(ctx, resolvedProps)
|
|
1177
|
+
];
|
|
1178
|
+
const tableInner = _vue.h.call(void 0,
|
|
1179
|
+
"table",
|
|
1180
|
+
{
|
|
1181
|
+
ref: tableRef,
|
|
1182
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
1183
|
+
_tigercatcore.tableBaseClasses,
|
|
1184
|
+
_tigercatcore.getTableResponsiveTableClasses.call(void 0, resolvedProps.responsiveMode),
|
|
1185
|
+
resolvedProps.tableLayout === "fixed" ? "table-fixed" : "table-auto"
|
|
1186
|
+
),
|
|
1187
|
+
style: ctx.fixedColumnsInfo.value.hasFixedColumns && ctx.fixedColumnsInfo.value.minTableWidth ? { minWidth: `${ctx.fixedColumnsInfo.value.minTableWidth}px` } : void 0
|
|
1188
|
+
},
|
|
1189
|
+
tableChildren
|
|
1190
|
+
);
|
|
1191
|
+
const tableContent = effectiveVirtual ? _vue.h.call(void 0,
|
|
1192
|
+
"div",
|
|
1193
|
+
{
|
|
1194
|
+
style: { height: `${resolvedProps.virtualHeight}px`, overflow: "auto" },
|
|
1195
|
+
onScroll: (e) => {
|
|
1196
|
+
ctx.virtualScrollTop.value = e.target.scrollTop;
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
[tableInner]
|
|
1200
|
+
) : tableInner;
|
|
1201
|
+
const cardContent = resolvedProps.responsiveMode === "card" ? _vue.h.call(void 0,
|
|
1202
|
+
"div",
|
|
1203
|
+
{ class: _tigercatcore.tableResponsiveCardListClasses, "data-tiger-table-mobile": "card" },
|
|
1204
|
+
ctx.paginatedData.value.length === 0 ? [_vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardClasses }, resolvedProps.emptyText)] : ctx.paginatedData.value.map((record, index) => {
|
|
1205
|
+
const key = ctx.paginatedRowKeys.value[index];
|
|
1206
|
+
const isExpanded = ctx.expandedRowKeySet.value.has(key);
|
|
1207
|
+
const isRowExpandable = resolvedProps.expandable ? resolvedProps.expandable.rowExpandable ? resolvedProps.expandable.rowExpandable(record) : true : false;
|
|
1208
|
+
const rows = ctx.displayColumns.value.map((column) => {
|
|
1209
|
+
const dataKey = column.dataKey || column.key;
|
|
1210
|
+
const cellValue = record[dataKey];
|
|
1211
|
+
const cellContent = _nullishCoalesce(_optionalChain([slots, 'access', _81 => _81[`cell-${column.key}`], 'optionalCall', _82 => _82({ record, index })]), () => ( (column.render ? column.render(record, index) : cellValue)));
|
|
1212
|
+
return _vue.h.call(void 0, "div", { key: column.key, class: _tigercatcore.tableResponsiveCardRowClasses }, [
|
|
1213
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardLabelClasses }, column.title),
|
|
1214
|
+
_vue.h.call(void 0, "div", { class: _tigercatcore.tableResponsiveCardValueClasses }, [cellContent])
|
|
1215
|
+
]);
|
|
1216
|
+
});
|
|
1217
|
+
const controls = [];
|
|
1218
|
+
if (resolvedProps.rowSelection && resolvedProps.rowSelection.showCheckbox !== false) {
|
|
1219
|
+
const checkboxProps = _optionalChain([resolvedProps, 'access', _83 => _83.rowSelection, 'access', _84 => _84.getCheckboxProps, 'optionalCall', _85 => _85(record)]) || {};
|
|
1220
|
+
controls.push(
|
|
1221
|
+
_vue.h.call(void 0, "input", {
|
|
1222
|
+
type: resolvedProps.rowSelection.type === "radio" ? "radio" : "checkbox",
|
|
1223
|
+
checked: ctx.selectedRowKeySet.value.has(key),
|
|
1224
|
+
disabled: checkboxProps.disabled,
|
|
1225
|
+
onClick: (event) => event.stopPropagation(),
|
|
1226
|
+
onChange: (event) => ctx.handleSelectRow(key, event.target.checked)
|
|
1227
|
+
})
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
if (resolvedProps.expandable && isRowExpandable) {
|
|
1231
|
+
controls.push(
|
|
1232
|
+
_vue.h.call(void 0,
|
|
1233
|
+
"button",
|
|
1234
|
+
{
|
|
1235
|
+
type: "button",
|
|
1236
|
+
class: "text-sm text-[var(--tiger-primary,#2563eb)]",
|
|
1237
|
+
"aria-expanded": isExpanded,
|
|
1238
|
+
onClick: (event) => {
|
|
1239
|
+
event.stopPropagation();
|
|
1240
|
+
ctx.handleToggleExpand(key, record);
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
isExpanded ? "Collapse" : "Expand"
|
|
1244
|
+
)
|
|
1245
|
+
);
|
|
1246
|
+
}
|
|
1247
|
+
const expandedContent = resolvedProps.expandable && isExpanded && isRowExpandable ? _nullishCoalesce(_optionalChain([slots, 'access', _86 => _86["expanded-row"], 'optionalCall', _87 => _87({ record, index })]), () => ( _optionalChain([resolvedProps, 'access', _88 => _88.expandable, 'access', _89 => _89.expandedRowRender, 'optionalCall', _90 => _90(record, index)]))) : null;
|
|
1248
|
+
return _vue.h.call(void 0,
|
|
1249
|
+
"div",
|
|
1250
|
+
{
|
|
1251
|
+
key,
|
|
1252
|
+
class: _tigercatcore.tableResponsiveCardClasses,
|
|
1253
|
+
onClick: () => ctx.handleRowClick(record, index, key)
|
|
1254
|
+
},
|
|
1255
|
+
[
|
|
1256
|
+
controls.length ? _vue.h.call(void 0, "div", { class: "mb-2 flex items-center gap-3" }, controls) : null,
|
|
1257
|
+
...rows,
|
|
1258
|
+
expandedContent ? _vue.h.call(void 0,
|
|
1259
|
+
"div",
|
|
1260
|
+
{ class: "mt-3 border-t border-[var(--tiger-border,#e5e7eb)] pt-3" },
|
|
1261
|
+
[expandedContent]
|
|
1262
|
+
) : null
|
|
1263
|
+
]
|
|
1264
|
+
);
|
|
1265
|
+
})
|
|
1266
|
+
) : null;
|
|
1267
|
+
return _vue.h.call(void 0,
|
|
1268
|
+
"div",
|
|
1269
|
+
{
|
|
1270
|
+
ref: wrapperRef,
|
|
1271
|
+
class: _tigercatcore.getTableWrapperClasses.call(void 0, resolvedProps.bordered, resolvedProps.maxHeight),
|
|
1272
|
+
style: wrapperStyle,
|
|
1273
|
+
"data-tiger-virtual": virtualRecommendation.enabled ? "enabled" : void 0,
|
|
1274
|
+
"data-tiger-virtual-auto": virtualRecommendation.autoEnabled ? "true" : void 0,
|
|
1275
|
+
"data-tiger-virtual-recommended": virtualRecommendation.recommended ? "true" : void 0,
|
|
1276
|
+
"data-tiger-virtual-threshold": virtualRecommendation.recommended ? virtualRecommendation.threshold : void 0,
|
|
1277
|
+
"data-tiger-measured-row-height": measuredRowHeights.value[0] || void 0,
|
|
1278
|
+
"aria-busy": resolvedProps.loading
|
|
1279
|
+
},
|
|
1280
|
+
[
|
|
1281
|
+
resolvedProps.exportable && _vue.h.call(void 0, "div", { class: "flex justify-end p-2" }, [
|
|
1282
|
+
_vue.h.call(void 0,
|
|
1283
|
+
"button",
|
|
1284
|
+
{
|
|
1285
|
+
type: "button",
|
|
1286
|
+
class: _tigercatcore.tableExportButtonClasses,
|
|
1287
|
+
onClick: ctx.handleExport,
|
|
1288
|
+
"aria-label": resolvedProps.exportFormat === "excel" ? "Export to Excel" : "Export to CSV"
|
|
1289
|
+
},
|
|
1290
|
+
resolvedProps.exportFormat === "excel" ? "Export Excel" : "Export CSV"
|
|
1291
|
+
)
|
|
1292
|
+
]),
|
|
1293
|
+
tableContent,
|
|
1294
|
+
cardContent,
|
|
1295
|
+
resolvedProps.loading && _vue.h.call(void 0,
|
|
1296
|
+
"div",
|
|
1297
|
+
{
|
|
1298
|
+
class: _tigercatcore.tableLoadingOverlayClasses,
|
|
1299
|
+
role: "status",
|
|
1300
|
+
"aria-live": "polite",
|
|
1301
|
+
"aria-label": "Loading"
|
|
1302
|
+
},
|
|
1303
|
+
[LoadingSpinner(), _vue.h.call(void 0, "span", { class: "sr-only" }, "Loading")]
|
|
1304
|
+
),
|
|
1305
|
+
renderPagination(ctx, resolvedProps)
|
|
1306
|
+
]
|
|
1307
|
+
);
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
});
|
|
1311
|
+
var Table_default = Table;
|
|
1312
|
+
function areNumberRecordsEqual(current, next) {
|
|
1313
|
+
const currentKeys = Object.keys(current);
|
|
1314
|
+
const nextKeys = Object.keys(next);
|
|
1315
|
+
return currentKeys.length === nextKeys.length && nextKeys.every((key) => current[key] === next[key]);
|
|
1316
|
+
}
|
|
1317
|
+
function areNumberArraysEqual(current, next) {
|
|
1318
|
+
return current.length === next.length && next.every((value, index) => current[index] === value);
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
exports.Table = Table; exports.Table_default = Table_default;
|