@expcat/tigercat-vue 1.1.0 → 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-VYFJ3LYD.js → chunk-2C5TOAYI.js} +12 -9
- package/dist/{chunk-V55ZONWZ.mjs → chunk-2GQE47OY.mjs} +82 -4
- package/dist/chunk-2KDSHEZT.js +41 -28
- package/dist/chunk-2LNNB55E.js +59 -39
- package/dist/{chunk-UYN5WLHQ.mjs → chunk-2PFP44AI.mjs} +34 -11
- package/dist/chunk-2R5HISQA.mjs +16 -4
- package/dist/chunk-2S5CNU36.js +40 -31
- package/dist/chunk-2TNZ4JNT.mjs +14 -4
- package/dist/{chunk-SB2SX5EH.js → chunk-2VBUCW5G.js} +96 -76
- package/dist/{chunk-GZK6R2E3.js → chunk-2VOZFFW6.js} +33 -28
- package/dist/chunk-2WJADO6O.mjs +19 -4
- package/dist/chunk-2X3ZPH2H.mjs +31 -4
- package/dist/chunk-2YFXJUBT.js +40 -25
- package/dist/chunk-2ZUEXCVJ.mjs +9 -4
- package/dist/chunk-33YTJPF7.js +81 -54
- package/dist/{chunk-I6E3GY64.mjs → chunk-3A7H2CTW.mjs} +180 -12
- package/dist/chunk-3G4VPV4D.mjs +20 -4
- package/dist/chunk-3MC45EXP.mjs +13 -4
- package/dist/chunk-3QV2D54H.js +55 -37
- package/dist/{chunk-RRTB7O7Q.mjs → chunk-3W4CM7KO.mjs} +27 -6
- package/dist/chunk-43BLH7DE.js +49 -37
- package/dist/{chunk-63LJVB2M.js → chunk-44N7LE3Q.js} +141 -64
- package/dist/chunk-46DEQQMB.mjs +11 -4
- package/dist/chunk-4CWRNKPE.mjs +35 -5
- package/dist/{chunk-OKSLWGXR.js → chunk-4DWOTV7J.js} +77 -60
- package/dist/chunk-4K2CCBFT.mjs +30 -4
- package/dist/{chunk-XMOYCYVK.js → chunk-4OOR4524.js} +280 -138
- package/dist/chunk-4YHOD7LT.mjs +13 -4
- package/dist/chunk-5436FG3B.js +32 -23
- package/dist/chunk-54VVFMYI.js +13 -14
- package/dist/chunk-57MJTNDL.js +25 -20
- package/dist/chunk-5D2UAWWP.mjs +37 -4
- package/dist/{chunk-EHBPMUT2.js → chunk-5F6P5Y4K.js} +29 -27
- package/dist/chunk-5JKQPOG2.js +133 -0
- package/dist/chunk-5PXTMXXS.js +27 -20
- package/dist/chunk-5UOAWXOQ.js +243 -0
- package/dist/{chunk-OMVVPNU7.js → chunk-5VSKQLK3.js} +141 -105
- package/dist/chunk-5WG4OFXH.mjs +133 -0
- package/dist/chunk-5X3GXNGM.mjs +27 -4
- package/dist/{chunk-YQRRW4ZR.mjs → chunk-5ZAIW5W3.mjs} +9 -3
- package/dist/{chunk-FQHYU76P.mjs → chunk-6DVWLGSZ.mjs} +28 -6
- package/dist/chunk-6FXYRDYH.js +30 -25
- package/dist/{chunk-EVOXC3CD.js → chunk-6HM77SWE.js} +92 -75
- package/dist/chunk-6V7XCCXN.mjs +8 -4
- package/dist/chunk-7ADONGSB.js +14 -15
- package/dist/chunk-7LUATGJU.mjs +27 -4
- package/dist/chunk-7PY6OQVE.mjs +15 -4
- package/dist/chunk-7QX4QWWN.js +61 -40
- package/dist/chunk-7RIWAO2A.mjs +18 -4
- package/dist/chunk-7SFB77JR.mjs +192 -0
- package/dist/{chunk-RVU47MU6.mjs → chunk-7W3NALIL.mjs} +15 -6
- package/dist/chunk-A5HHG53Z.js +38 -24
- package/dist/chunk-A5HRX7EG.js +37 -31
- package/dist/chunk-A7FN3S4I.js +33 -23
- package/dist/chunk-ACYYQJ6M.js +16 -17
- package/dist/chunk-AGVXMB4Q.js +52 -39
- package/dist/chunk-AXDBME5A.mjs +15 -4
- package/dist/{chunk-VYGI74MJ.js → chunk-B2RH4CMG.js} +156 -37
- package/dist/chunk-B67RJSXR.mjs +142 -0
- package/dist/chunk-BEIPGX74.mjs +233 -0
- package/dist/chunk-BEIZXMHW.js +470 -0
- package/dist/{chunk-OZYJ3U4H.js → chunk-BGMAWKWV.js} +208 -83
- package/dist/{chunk-GEPFTYKC.js → chunk-BGMQIUPP.js} +108 -77
- package/dist/chunk-BMT5PGAQ.mjs +20 -5
- package/dist/chunk-BPAN6T7H.mjs +16 -4
- package/dist/chunk-BYNMOQBB.js +54 -42
- package/dist/chunk-BZBVSB43.js +37 -28
- package/dist/chunk-C7VGTRHE.mjs +20 -4
- package/dist/chunk-CBECE4ZO.mjs +373 -0
- package/dist/chunk-CKXZONMO.js +18 -14
- package/dist/{chunk-G2IZAKJY.mjs → chunk-CN7HFUFN.mjs} +38 -4
- package/dist/chunk-COCECPMG.mjs +17 -4
- package/dist/chunk-CPV7INZ4.mjs +10 -4
- package/dist/chunk-CSJQKBDJ.js +73 -44
- package/dist/{chunk-UT6T25YJ.js → chunk-CWNEDREV.js} +42 -36
- package/dist/chunk-CWQOEU6G.js +373 -0
- package/dist/chunk-CZALMJH3.mjs +29 -8
- package/dist/chunk-D3U2NJ32.mjs +154 -0
- package/dist/{chunk-YYZBVHVC.mjs → chunk-D74XCQCK.mjs} +78 -12
- package/dist/chunk-DBTS5QBX.mjs +14 -4
- package/dist/{chunk-OSOA7LWH.mjs → chunk-DDNRF5U7.mjs} +91 -6
- package/dist/{chunk-46XPSPG4.js → chunk-DE5WMG6P.js} +69 -53
- package/dist/{chunk-H2BH6TJN.mjs → chunk-DEJKRMMU.mjs} +26 -4
- package/dist/chunk-DIQGHFAT.mjs +6 -4
- package/dist/chunk-DMV26JNR.mjs +16 -4
- package/dist/{chunk-CERGNVW2.mjs → chunk-DQFTTJJ5.mjs} +37 -4
- 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 +44 -26
- package/dist/chunk-E2GQSWHK.mjs +14 -4
- package/dist/chunk-E6RGBYI3.mjs +31 -4
- package/dist/chunk-EJNPSYTS.js +44 -0
- package/dist/{chunk-NG7TLPQQ.mjs → chunk-EKWJTB5H.mjs} +28 -8
- 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-F7G7K3TF.mjs +22 -4
- package/dist/{chunk-BQRXHUIC.js → chunk-FAYSOSR7.js} +89 -64
- package/dist/chunk-FC7RXQTM.js +30 -20
- package/dist/chunk-FE2HR4E5.js +66 -47
- package/dist/chunk-FIV4PKWT.js +26 -20
- package/dist/chunk-FMH4CLSA.mjs +18 -4
- package/dist/{chunk-FC27Q4CL.js → chunk-FP7SBCPO.js} +65 -45
- package/dist/chunk-FQWEOBQ4.mjs +231 -0
- package/dist/{chunk-2Z2CJEUL.js → chunk-FRI62O2J.js} +97 -59
- package/dist/chunk-FUGSQXFR.js +65 -42
- package/dist/{chunk-656KMUL3.js → chunk-FUI6WG2F.js} +154 -124
- package/dist/chunk-FXS5GHQZ.js +388 -0
- package/dist/{chunk-6WACKCWM.mjs → chunk-G36MH6G4.mjs} +49 -8
- package/dist/chunk-G3SWTL27.js +45 -29
- package/dist/chunk-GDKYQ7U6.js +93 -75
- package/dist/{chunk-FMLNJXCX.js → chunk-GIQQOHDA.js} +59 -41
- package/dist/{chunk-QV7XYS5P.js → chunk-GL6KRUVO.js} +61 -42
- package/dist/chunk-GOBWUEHV.js +60 -45
- package/dist/{chunk-WPEFGEAK.mjs → chunk-GQAVLQEZ.mjs} +15 -4
- package/dist/chunk-GQPSQJ5I.mjs +6 -4
- package/dist/chunk-GVZRR2WP.mjs +22 -5
- package/dist/chunk-H4F4G2E4.mjs +14 -4
- 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-IFD7PZDO.mjs → chunk-IKEZDGRO.mjs} +47 -13
- package/dist/chunk-IZF4VHJ2.mjs +23 -4
- package/dist/chunk-J73M5UTG.mjs +21 -4
- package/dist/{chunk-S4DT7LXD.js → chunk-JAAIL4XS.js} +24 -16
- package/dist/chunk-JCMGBKS6.js +23 -17
- package/dist/chunk-JDCVS4SJ.js +38 -31
- package/dist/chunk-JFIVDZFK.js +77 -57
- package/dist/{chunk-6PJ3JANP.js → chunk-JKEF7NB3.js} +70 -49
- package/dist/chunk-JKZ5ZRDG.js +44 -36
- package/dist/{chunk-MDPHUCVS.mjs → chunk-JL526HSV.mjs} +49 -14
- package/dist/{chunk-CODQKVQV.js → chunk-K2DJDJZR.js} +25 -22
- package/dist/chunk-K3CIXMN4.js +40 -32
- package/dist/{chunk-6EI23IND.mjs → chunk-K5ZZZ4TL.mjs} +33 -10
- package/dist/{chunk-Q4OPUKWF.js → chunk-KA7DILCI.js} +134 -99
- package/dist/chunk-KDA4XDXT.js +67 -0
- package/dist/chunk-KOTSKHPQ.mjs +19 -4
- package/dist/{chunk-C6ER6OUB.mjs → chunk-KU2Q5V3L.mjs} +31 -4
- package/dist/{chunk-TVDLZZNO.mjs → chunk-KVJIJJ4M.mjs} +113 -5
- package/dist/{chunk-RKU54YLW.mjs → chunk-KY3O3FWK.mjs} +91 -7
- package/dist/{chunk-QDYF23NQ.mjs → chunk-KZP3B3FQ.mjs} +32 -7
- package/dist/chunk-LBGTABIU.mjs +20 -4
- package/dist/{chunk-MZHQAT4I.mjs → chunk-LDDGBB3V.mjs} +157 -8
- package/dist/{chunk-5YFSAKRQ.mjs → chunk-LFKY2QRD.mjs} +138 -15
- package/dist/chunk-LG6KGO5D.js +42 -33
- package/dist/{chunk-ML2QP5KF.mjs → chunk-LILAZ4UJ.mjs} +136 -26
- package/dist/chunk-LL4ASJ4O.mjs +27 -4
- package/dist/chunk-LWDA7ABQ.js +36 -28
- package/dist/{chunk-O3JPGBAK.js → chunk-M2XA7VU5.js} +107 -75
- package/dist/chunk-M3G6LJKZ.mjs +12 -4
- package/dist/{chunk-LBIQHIXN.mjs → chunk-M5PGWW25.mjs} +42 -9
- package/dist/chunk-M7EBWJZ5.mjs +9 -4
- package/dist/{chunk-PBQVYZRB.js → chunk-MFYBHMQL.js} +117 -87
- 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 +30 -19
- package/dist/{chunk-ABLH42TR.js → chunk-MUJLT2YG.js} +224 -119
- package/dist/chunk-NCFY3VXA.js +13 -14
- package/dist/{chunk-XVUATQPD.mjs → chunk-NDS2DLUS.mjs} +40 -10
- package/dist/{chunk-WOVUC5FQ.mjs → chunk-NHBN6VAY.mjs} +33 -10
- package/dist/{chunk-XWE54AWW.mjs → chunk-NMVKDWMK.mjs} +303 -72
- package/dist/chunk-NNNG6NIA.mjs +13 -4
- package/dist/chunk-NOZ65AMO.js +32 -22
- package/dist/{chunk-E74ERZGQ.mjs → chunk-NWS45JQP.mjs} +52 -13
- package/dist/{chunk-IV4HFG36.mjs → chunk-NZUQ2KCW.mjs} +50 -8
- package/dist/chunk-OCL22D5E.mjs +29 -4
- package/dist/chunk-ODQOYMUQ.js +25 -18
- package/dist/chunk-OK4PVFQG.mjs +6 -4
- package/dist/{chunk-SPFWZCRX.mjs → chunk-OKR3GRG5.mjs} +51 -13
- package/dist/{chunk-WU2KCS6H.js → chunk-OW5D4LU6.js} +423 -195
- package/dist/chunk-OXIODAJS.js +192 -0
- package/dist/chunk-P7RXZVLT.js +66 -42
- package/dist/chunk-PCJHGWTU.js +269 -0
- package/dist/chunk-PCUUTKQZ.mjs +27 -4
- package/dist/{chunk-GWNXDOIG.mjs → chunk-PENI3H3I.mjs} +15 -10
- package/dist/chunk-PQMZ3YN3.js +37 -25
- package/dist/chunk-PUSTYAMS.mjs +28 -4
- package/dist/chunk-PVPLDEC5.mjs +6 -4
- package/dist/chunk-PXRF4IJO.mjs +17 -4
- package/dist/chunk-PY6P4N2Q.js +393 -0
- package/dist/{chunk-ZWTC2CUB.mjs → chunk-PYT5DTQQ.mjs} +158 -30
- package/dist/{chunk-V667FK4C.mjs → chunk-PZH2RTSS.mjs} +47 -4
- package/dist/chunk-Q4MH333P.js +18 -16
- package/dist/{chunk-56EI2AYV.js → chunk-QO2JYX6Q.js} +104 -65
- package/dist/chunk-QRAV345L.js +35 -25
- package/dist/{chunk-NJLNZ73T.js → chunk-QUIRQ7OA.js} +93 -66
- package/dist/chunk-QY6PYAJA.js +73 -53
- package/dist/chunk-QYSFZA5V.js +87 -65
- package/dist/chunk-QZ5OPNL4.mjs +17 -4
- package/dist/{chunk-N4GS2LSN.mjs → chunk-R2HO74FE.mjs} +12 -5
- package/dist/chunk-RDJZOMI6.js +26 -19
- package/dist/{chunk-CN2SP53A.mjs → chunk-RFFPMC22.mjs} +26 -7
- package/dist/{chunk-FRMMT3K3.mjs → chunk-RHAIJVMW.mjs} +43 -13
- package/dist/chunk-RKZN3URO.js +49 -38
- package/dist/chunk-RY2I56HB.js +36 -24
- package/dist/{chunk-AEU46D6B.js → chunk-S6K6IR3Y.js} +218 -111
- package/dist/{chunk-KVJKG4D3.js → chunk-S6Q7TD6H.js} +110 -70
- package/dist/chunk-SC3WTLKG.mjs +37 -4
- package/dist/{chunk-YIYLO6AG.mjs → chunk-SCRSO3ES.mjs} +32 -12
- package/dist/chunk-SCSGLSPY.mjs +393 -0
- package/dist/{chunk-WLRLKW2W.mjs → chunk-SEDENBOO.mjs} +34 -5
- package/dist/{chunk-UCDB56MB.mjs → chunk-SGRUGYQ6.mjs} +87 -5
- package/dist/chunk-SLYUQ67P.js +39 -30
- package/dist/{chunk-XXBMPKS7.js → chunk-SVWZOIBI.js} +101 -70
- package/dist/chunk-SWOQMMOT.js +18 -14
- package/dist/chunk-T4DF24UV.js +26 -20
- package/dist/{chunk-JACGMHFI.js → chunk-TAU447CL.js} +30 -23
- package/dist/chunk-TGIXSJI3.mjs +35 -4
- package/dist/chunk-TLXEFLPA.js +13 -14
- package/dist/chunk-TOE2XSEO.js +32 -20
- package/dist/{chunk-REF5Q6PG.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-FRFCXRUJ.mjs → chunk-UAD2XROX.mjs} +47 -12
- package/dist/chunk-UANF7XE5.mjs +25 -4
- package/dist/chunk-UHVUKLHF.js +32 -26
- package/dist/chunk-UI7N2ZDU.js +142 -0
- package/dist/{chunk-5RA26RRN.js → chunk-ULUH6UNV.js} +68 -48
- package/dist/chunk-UM5GGKIX.mjs +16 -4
- package/dist/{chunk-LBHKQW3U.mjs → chunk-UMQUWX7U.mjs} +14 -4
- package/dist/chunk-UNTTADHL.mjs +17 -4
- package/dist/chunk-UQK22ZMC.mjs +19 -4
- package/dist/chunk-UUJ7A3CN.js +75 -55
- package/dist/chunk-V32X2OEO.js +61 -34
- package/dist/{chunk-XOLTA3IE.js → chunk-VAXO5NEM.js} +62 -46
- package/dist/{chunk-E3BSOB7P.mjs → chunk-VG6E4NX6.mjs} +68 -18
- 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 +79 -60
- package/dist/chunk-VVS2CQS4.mjs +6 -4
- package/dist/{chunk-47Z4MGKP.js → chunk-VXULMOIW.js} +90 -64
- package/dist/{chunk-4VB6I3CA.js → chunk-W55GCQ2D.js} +65 -44
- package/dist/chunk-W5RZPTFD.mjs +13 -4
- package/dist/chunk-W6ZFHHD3.mjs +15 -4
- package/dist/{chunk-DVFDA2P2.mjs → chunk-WE4DGU2T.mjs} +14 -7
- package/dist/chunk-WFISP42H.mjs +17 -4
- package/dist/chunk-WGNJHM34.js +46 -34
- package/dist/chunk-WM4ESIHG.mjs +13 -4
- package/dist/chunk-WPIDP6IG.js +35 -25
- package/dist/chunk-WQXZ3234.mjs +19 -4
- package/dist/{chunk-GAWIICIB.js → chunk-WUEP3PFN.js} +80 -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 +94 -64
- package/dist/chunk-XJXGVNNF.js +41 -30
- package/dist/chunk-XSMDZOBF.js +154 -0
- package/dist/chunk-XTMGF5YP.js +27 -21
- package/dist/chunk-XUOGT4HG.js +22 -17
- package/dist/chunk-XY4A73TK.js +23 -18
- package/dist/{chunk-RPWBZLHL.js → chunk-XZMU7B54.js} +61 -48
- package/dist/{chunk-WOFQV2N7.mjs → chunk-Y3BQSELH.mjs} +34 -10
- package/dist/chunk-Y4V7BOVR.mjs +18 -4
- package/dist/chunk-YEHKQ3JZ.mjs +13 -4
- package/dist/{chunk-I34OWAAY.mjs → chunk-YSUT2GRP.mjs} +21 -5
- package/dist/chunk-YZP4K6KI.mjs +25 -4
- package/dist/chunk-Z2ZECCGD.mjs +7 -4
- package/dist/chunk-Z4SG7REU.mjs +17 -4
- package/dist/chunk-Z7ETXBOL.mjs +26 -4
- package/dist/chunk-ZED7TU62.js +22 -16
- package/dist/chunk-ZIOGRGN5.mjs +18 -4
- package/dist/chunk-ZMGNQKXL.js +233 -0
- package/dist/chunk-ZMNX4SCS.mjs +12 -4
- package/dist/chunk-ZNVQ2OFX.js +13 -11
- package/dist/chunk-ZOUJFFG4.js +16 -17
- package/dist/chunk-ZSCOAOJJ.js +93 -71
- package/dist/chunk-ZSQ5I2KL.mjs +28 -4
- package/dist/chunk-ZUPVK5L7.js +838 -0
- package/dist/chunk-ZWVA7HT3.mjs +14 -4
- package/dist/components/ActivityFeed.js +4 -12
- package/dist/components/ActivityFeed.mjs +16 -9
- package/dist/components/Affix.js +3 -11
- package/dist/components/Affix.mjs +8 -1
- package/dist/components/Alert.js +3 -11
- package/dist/components/Alert.mjs +9 -2
- package/dist/components/Anchor.d.mts +5 -5
- package/dist/components/Anchor.d.ts +5 -5
- package/dist/components/Anchor.js +12 -24
- package/dist/components/Anchor.mjs +12 -1
- package/dist/components/AnchorLink.js +6 -10
- package/dist/components/AnchorLink.mjs +7 -4
- package/dist/components/AreaChart.d.mts +4 -4
- package/dist/components/AreaChart.d.ts +4 -4
- package/dist/components/AreaChart.js +4 -12
- package/dist/components/AreaChart.mjs +15 -8
- package/dist/components/AutoComplete.js +3 -11
- package/dist/components/AutoComplete.mjs +8 -1
- package/dist/components/Avatar.js +3 -11
- package/dist/components/Avatar.mjs +8 -1
- package/dist/components/AvatarGroup.js +5 -15
- package/dist/components/AvatarGroup.mjs +10 -1
- package/dist/components/BackTop.js +3 -11
- package/dist/components/BackTop.mjs +8 -1
- package/dist/components/Badge.js +3 -11
- package/dist/components/Badge.mjs +8 -1
- package/dist/components/BarChart.d.mts +2 -2
- package/dist/components/BarChart.d.ts +2 -2
- package/dist/components/BarChart.js +4 -12
- package/dist/components/BarChart.mjs +15 -8
- package/dist/components/Breadcrumb.js +12 -24
- package/dist/components/Breadcrumb.mjs +12 -1
- package/dist/components/BreadcrumbItem.js +6 -10
- package/dist/components/BreadcrumbItem.mjs +7 -4
- package/dist/components/Button.js +3 -11
- package/dist/components/Button.mjs +8 -1
- package/dist/components/ButtonGroup.js +5 -15
- package/dist/components/ButtonGroup.mjs +10 -1
- package/dist/components/Calendar.js +3 -11
- package/dist/components/Calendar.mjs +8 -1
- package/dist/components/Card.d.mts +1 -1
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/Card.js +3 -11
- package/dist/components/Card.mjs +8 -1
- package/dist/components/Carousel.js +3 -11
- package/dist/components/Carousel.mjs +8 -1
- package/dist/components/Cascader.js +3 -11
- package/dist/components/Cascader.mjs +8 -1
- package/dist/components/ChartAxis.js +3 -11
- package/dist/components/ChartAxis.mjs +8 -1
- package/dist/components/ChartCanvas.d.mts +1 -1
- package/dist/components/ChartCanvas.d.ts +1 -1
- package/dist/components/ChartCanvas.js +3 -11
- package/dist/components/ChartCanvas.mjs +8 -1
- package/dist/components/ChartGrid.js +3 -11
- package/dist/components/ChartGrid.mjs +8 -1
- package/dist/components/ChartLegend.js +3 -11
- package/dist/components/ChartLegend.mjs +8 -1
- package/dist/components/ChartSeries.js +3 -11
- package/dist/components/ChartSeries.mjs +8 -1
- package/dist/components/ChartTooltip.js +3 -11
- package/dist/components/ChartTooltip.mjs +8 -1
- package/dist/components/ChatWindow.js +4 -12
- package/dist/components/ChatWindow.mjs +13 -6
- package/dist/components/Checkbox.js +3 -11
- package/dist/components/Checkbox.mjs +9 -2
- package/dist/components/CheckboxGroup.js +5 -15
- package/dist/components/CheckboxGroup.mjs +10 -1
- package/dist/components/Code.js +3 -11
- package/dist/components/Code.mjs +8 -1
- package/dist/components/CodeEditor.js +3 -11
- package/dist/components/CodeEditor.mjs +8 -1
- package/dist/components/Col.js +3 -7
- package/dist/components/Col.mjs +7 -2
- package/dist/components/Collapse.js +5 -15
- package/dist/components/Collapse.mjs +10 -1
- package/dist/components/CollapsePanel.js +4 -12
- package/dist/components/CollapsePanel.mjs +9 -2
- package/dist/components/ColorPicker.js +3 -11
- package/dist/components/ColorPicker.mjs +8 -1
- 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.js +3 -11
- package/dist/components/CommentThread.mjs +13 -6
- package/dist/components/ConfigProvider.d.mts +34 -5
- package/dist/components/ConfigProvider.d.ts +34 -5
- package/dist/components/ConfigProvider.js +14 -24
- package/dist/components/ConfigProvider.mjs +14 -1
- package/dist/components/Container.js +3 -11
- package/dist/components/Container.mjs +8 -1
- package/dist/components/Content.js +3 -11
- package/dist/components/Content.mjs +8 -1
- 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.js +5 -13
- package/dist/components/CropUpload.mjs +12 -5
- package/dist/components/DataTableWithToolbar.js +5 -13
- package/dist/components/DataTableWithToolbar.mjs +12 -5
- package/dist/components/DatePicker.d.mts +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker.js +3 -11
- package/dist/components/DatePicker.mjs +9 -2
- package/dist/components/Descriptions.js +3 -11
- package/dist/components/Descriptions.mjs +8 -1
- package/dist/components/Divider.js +3 -11
- package/dist/components/Divider.mjs +8 -1
- package/dist/components/DonutChart.d.mts +3 -3
- package/dist/components/DonutChart.d.ts +3 -3
- package/dist/components/DonutChart.js +5 -13
- package/dist/components/DonutChart.mjs +14 -7
- package/dist/components/Drawer.d.mts +1 -1
- package/dist/components/Drawer.d.ts +1 -1
- package/dist/components/Drawer.js +3 -11
- package/dist/components/Drawer.mjs +9 -2
- package/dist/components/Dropdown.js +7 -19
- package/dist/components/Dropdown.mjs +13 -2
- package/dist/components/DropdownItem.js +4 -12
- package/dist/components/DropdownItem.mjs +10 -3
- package/dist/components/DropdownMenu.js +6 -10
- package/dist/components/DropdownMenu.mjs +8 -5
- package/dist/components/Empty.js +3 -11
- package/dist/components/Empty.mjs +8 -1
- package/dist/components/FileManager.js +3 -11
- package/dist/components/FileManager.mjs +8 -1
- package/dist/components/FloatButton.d.mts +1 -1
- package/dist/components/FloatButton.d.ts +1 -1
- package/dist/components/FloatButton.js +5 -15
- package/dist/components/FloatButton.mjs +10 -1
- package/dist/components/Footer.js +3 -11
- package/dist/components/Footer.mjs +8 -1
- package/dist/components/Form.d.mts +23 -1
- package/dist/components/Form.d.ts +23 -1
- package/dist/components/Form.js +5 -15
- package/dist/components/Form.mjs +10 -1
- package/dist/components/FormItem.d.mts +12 -2
- package/dist/components/FormItem.d.ts +12 -2
- package/dist/components/FormItem.js +4 -12
- package/dist/components/FormItem.mjs +9 -2
- package/dist/components/FormWizard.d.mts +2 -2
- package/dist/components/FormWizard.d.ts +2 -2
- package/dist/components/FormWizard.js +4 -12
- package/dist/components/FormWizard.mjs +11 -4
- package/dist/components/FunnelChart.d.mts +3 -3
- package/dist/components/FunnelChart.d.ts +3 -3
- package/dist/components/FunnelChart.js +4 -12
- package/dist/components/FunnelChart.mjs +13 -6
- 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 +2 -2
- package/dist/components/GaugeChart.d.ts +2 -2
- package/dist/components/GaugeChart.js +3 -11
- package/dist/components/GaugeChart.mjs +9 -2
- package/dist/components/Header.js +3 -11
- package/dist/components/Header.mjs +8 -1
- package/dist/components/HeatmapChart.d.mts +1 -1
- package/dist/components/HeatmapChart.d.ts +1 -1
- package/dist/components/HeatmapChart.js +4 -12
- package/dist/components/HeatmapChart.mjs +11 -4
- package/dist/components/Icon.js +3 -11
- package/dist/components/Icon.mjs +8 -1
- package/dist/components/Image.d.mts +1 -2
- package/dist/components/Image.d.ts +1 -2
- package/dist/components/Image.js +6 -16
- package/dist/components/Image.mjs +11 -2
- 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 +1 -1
- package/dist/components/ImageCropper.d.ts +1 -1
- package/dist/components/ImageCropper.js +3 -11
- package/dist/components/ImageCropper.mjs +8 -1
- package/dist/components/ImageGroup.js +6 -16
- package/dist/components/ImageGroup.mjs +11 -2
- package/dist/components/ImagePreview.d.mts +2 -2
- package/dist/components/ImagePreview.d.ts +2 -2
- package/dist/components/ImagePreview.js +3 -11
- package/dist/components/ImagePreview.mjs +8 -1
- package/dist/components/ImageViewer.js +3 -11
- package/dist/components/ImageViewer.mjs +8 -1
- package/dist/components/InfiniteScroll.d.mts +1 -1
- package/dist/components/InfiniteScroll.d.ts +1 -1
- package/dist/components/InfiniteScroll.js +3 -11
- package/dist/components/InfiniteScroll.mjs +8 -1
- package/dist/components/Input.d.mts +1 -1
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/Input.js +3 -11
- package/dist/components/Input.mjs +8 -1
- package/dist/components/InputGroup.js +12 -24
- package/dist/components/InputGroup.mjs +12 -1
- package/dist/components/InputNumber.d.mts +2 -2
- package/dist/components/InputNumber.d.ts +2 -2
- package/dist/components/InputNumber.js +3 -11
- package/dist/components/InputNumber.mjs +8 -1
- package/dist/components/Kanban.js +5 -13
- package/dist/components/Kanban.mjs +10 -3
- package/dist/components/Layout.js +3 -11
- package/dist/components/Layout.mjs +8 -1
- package/dist/components/LineChart.d.mts +2 -2
- package/dist/components/LineChart.d.ts +2 -2
- package/dist/components/LineChart.js +4 -12
- package/dist/components/LineChart.mjs +15 -8
- package/dist/components/Link.js +3 -11
- package/dist/components/Link.mjs +8 -1
- package/dist/components/List.js +4 -12
- package/dist/components/List.mjs +9 -2
- package/dist/components/Loading.d.mts +1 -1
- package/dist/components/Loading.d.ts +1 -1
- package/dist/components/Loading.js +3 -11
- 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.js +3 -11
- package/dist/components/Mentions.mjs +8 -1
- package/dist/components/Menu.d.mts +70 -2
- package/dist/components/Menu.d.ts +70 -2
- package/dist/components/Menu.js +16 -32
- package/dist/components/Menu.mjs +16 -1
- package/dist/components/MenuItem.js +6 -10
- package/dist/components/MenuItem.mjs +7 -4
- package/dist/components/MenuItemGroup.js +6 -10
- package/dist/components/MenuItemGroup.mjs +7 -4
- package/dist/components/Message.d.mts +3 -1
- package/dist/components/Message.d.ts +3 -1
- package/dist/components/Message.js +5 -15
- package/dist/components/Message.mjs +11 -2
- package/dist/components/Modal.d.mts +19 -1
- package/dist/components/Modal.d.ts +19 -1
- package/dist/components/Modal.js +3 -11
- package/dist/components/Modal.mjs +10 -3
- package/dist/components/Notification.d.mts +3 -1
- package/dist/components/Notification.d.ts +3 -1
- package/dist/components/Notification.js +5 -15
- package/dist/components/Notification.mjs +11 -2
- package/dist/components/NotificationCenter.js +6 -14
- 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.js +3 -11
- package/dist/components/Pagination.mjs +8 -1
- package/dist/components/PieChart.d.mts +3 -3
- package/dist/components/PieChart.d.ts +3 -3
- package/dist/components/PieChart.js +4 -12
- package/dist/components/PieChart.mjs +13 -6
- package/dist/components/Popconfirm.d.mts +2 -2
- package/dist/components/Popconfirm.d.ts +2 -2
- package/dist/components/Popconfirm.js +3 -11
- package/dist/components/Popconfirm.mjs +10 -3
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Popover.js +3 -11
- package/dist/components/Popover.mjs +10 -3
- package/dist/components/PrintLayout.js +5 -15
- package/dist/components/PrintLayout.mjs +10 -1
- package/dist/components/Progress.d.mts +2 -2
- package/dist/components/Progress.d.ts +2 -2
- package/dist/components/Progress.js +3 -11
- package/dist/components/Progress.mjs +8 -1
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.d.ts +1 -1
- package/dist/components/QRCode.js +3 -11
- package/dist/components/QRCode.mjs +8 -1
- package/dist/components/RadarChart.d.mts +5 -5
- package/dist/components/RadarChart.d.ts +5 -5
- package/dist/components/RadarChart.js +4 -12
- package/dist/components/RadarChart.mjs +13 -6
- package/dist/components/Radio.js +3 -11
- package/dist/components/Radio.mjs +9 -2
- package/dist/components/RadioGroup.js +5 -15
- package/dist/components/RadioGroup.mjs +10 -1
- package/dist/components/Rate.js +3 -11
- package/dist/components/Rate.mjs +8 -1
- package/dist/components/Resizable.js +3 -11
- package/dist/components/Resizable.mjs +8 -1
- package/dist/components/Result.js +3 -11
- package/dist/components/Result.mjs +9 -2
- package/dist/components/RichTextEditor.d.mts +1 -1
- package/dist/components/RichTextEditor.d.ts +1 -1
- package/dist/components/RichTextEditor.js +3 -11
- package/dist/components/RichTextEditor.mjs +8 -1
- package/dist/components/Row.js +4 -10
- package/dist/components/Row.mjs +8 -1
- package/dist/components/ScatterChart.d.mts +2 -2
- package/dist/components/ScatterChart.d.ts +2 -2
- package/dist/components/ScatterChart.js +4 -12
- package/dist/components/ScatterChart.mjs +15 -8
- 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.js +3 -11
- package/dist/components/Segmented.mjs +8 -1
- package/dist/components/Select.d.mts +58 -1
- package/dist/components/Select.d.ts +58 -1
- package/dist/components/Select.js +3 -11
- package/dist/components/Select.mjs +8 -1
- package/dist/components/Sidebar.js +3 -11
- package/dist/components/Sidebar.mjs +8 -1
- 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 +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton.js +3 -11
- package/dist/components/Skeleton.mjs +8 -1
- package/dist/components/Slider.js +3 -11
- package/dist/components/Slider.mjs +8 -1
- package/dist/components/Space.d.mts +1 -1
- package/dist/components/Space.d.ts +1 -1
- package/dist/components/Space.js +3 -11
- package/dist/components/Space.mjs +8 -1
- package/dist/components/Splitter.d.mts +1 -1
- package/dist/components/Splitter.d.ts +1 -1
- package/dist/components/Splitter.js +3 -11
- package/dist/components/Splitter.mjs +8 -1
- 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 +1 -1
- package/dist/components/Statistic.d.ts +1 -1
- package/dist/components/Statistic.js +3 -11
- package/dist/components/Statistic.mjs +8 -1
- package/dist/components/Stepper.js +3 -11
- package/dist/components/Stepper.mjs +8 -1
- package/dist/components/Steps.d.mts +1 -1
- package/dist/components/Steps.d.ts +1 -1
- package/dist/components/Steps.js +12 -24
- package/dist/components/Steps.mjs +12 -1
- package/dist/components/StepsItem.js +6 -10
- package/dist/components/StepsItem.mjs +7 -4
- package/dist/components/SubMenu.js +6 -10
- package/dist/components/SubMenu.mjs +7 -4
- package/dist/components/SunburstChart.d.mts +3 -3
- package/dist/components/SunburstChart.d.ts +3 -3
- package/dist/components/SunburstChart.js +4 -12
- package/dist/components/SunburstChart.mjs +13 -6
- package/dist/components/Switch.js +3 -11
- package/dist/components/Switch.mjs +8 -1
- package/dist/components/TabPane.js +6 -10
- package/dist/components/TabPane.mjs +7 -4
- package/dist/components/Table.d.mts +52 -1
- package/dist/components/Table.d.ts +52 -1
- package/dist/components/Table.js +3 -11
- package/dist/components/Table.mjs +8 -1
- package/dist/components/Tabs.d.mts +19 -0
- package/dist/components/Tabs.d.ts +19 -0
- package/dist/components/Tabs.js +12 -24
- package/dist/components/Tabs.mjs +12 -1
- package/dist/components/Tag.js +3 -11
- package/dist/components/Tag.mjs +8 -1
- package/dist/components/TaskBoard.js +4 -12
- package/dist/components/TaskBoard.mjs +9 -2
- package/dist/components/Text.js +3 -11
- package/dist/components/Text.mjs +8 -1
- package/dist/components/Textarea.d.mts +1 -1
- package/dist/components/Textarea.d.ts +1 -1
- package/dist/components/Textarea.js +3 -11
- package/dist/components/Textarea.mjs +8 -1
- package/dist/components/TimePicker.d.mts +1 -1
- package/dist/components/TimePicker.d.ts +1 -1
- package/dist/components/TimePicker.js +3 -11
- package/dist/components/TimePicker.mjs +9 -2
- package/dist/components/Timeline.js +3 -11
- package/dist/components/Timeline.mjs +8 -1
- package/dist/components/Tooltip.js +3 -11
- package/dist/components/Tooltip.mjs +10 -3
- package/dist/components/Tour.d.mts +12 -2
- package/dist/components/Tour.d.ts +12 -2
- package/dist/components/Tour.js +3 -11
- package/dist/components/Tour.mjs +9 -2
- package/dist/components/Transfer.js +3 -11
- package/dist/components/Transfer.mjs +8 -1
- package/dist/components/Tree.d.mts +2 -2
- package/dist/components/Tree.d.ts +2 -2
- package/dist/components/Tree.js +4 -12
- package/dist/components/Tree.mjs +9 -2
- package/dist/components/TreeMapChart.d.mts +3 -3
- package/dist/components/TreeMapChart.d.ts +3 -3
- package/dist/components/TreeMapChart.js +4 -12
- package/dist/components/TreeMapChart.mjs +13 -6
- package/dist/components/TreeSelect.js +3 -11
- package/dist/components/TreeSelect.mjs +8 -1
- package/dist/components/Upload.d.mts +45 -1
- package/dist/components/Upload.d.ts +45 -1
- package/dist/components/Upload.js +4 -12
- package/dist/components/Upload.mjs +9 -2
- package/dist/components/VirtualList.js +3 -11
- package/dist/components/VirtualList.mjs +8 -1
- package/dist/components/VirtualTable.js +3 -11
- package/dist/components/VirtualTable.mjs +8 -1
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/components/Watermark.js +3 -11
- package/dist/components/Watermark.mjs +8 -1
- package/dist/index.d.mts +16 -5
- package/dist/index.d.ts +16 -5
- package/dist/index.js +661 -748
- package/dist/index.mjs +638 -156
- package/package.json +4 -4
- package/dist/chunk-6VG6ARQG.js +0 -206
- package/dist/chunk-BZBQUUXF.js +0 -94
- package/dist/chunk-CRGGJKV2.js +0 -286
- package/dist/chunk-EZZG57TK.js +0 -44
- package/dist/chunk-HU2XBA2A.js +0 -673
- package/dist/chunk-JTTSX3NM.js +0 -388
- package/dist/chunk-KOI6AQ5H.js +0 -60
- package/dist/chunk-MRMKZTC6.js +0 -313
- package/dist/chunk-P4XGEFV3.js +0 -259
- package/dist/chunk-RHCW2WXG.js +0 -194
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, onBeforeUnmount, h, computed, watch } from 'vue';
|
|
2
|
-
import { getSpinnerSVG, createTableResizeObserverController, getTableVirtualRecommendation, classNames, tableBaseClasses, getTableWrapperClasses, tableExportButtonClasses, tableLoadingOverlayClasses, getFixedColumnOffsets, filterDataAdvanced, filterData, sortData, paginateData, createTableRowKeyCache, calculatePagination, groupDataByColumn, getExpandIconCellClasses, getCheckboxCellClasses, getTableHeaderCellClasses, getTableHeaderClasses, tableEmptyStateClasses, tableGroupHeaderClasses, getGroupHeaderCellClasses, getTableCellClasses, tableSummaryRowClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, getLoadingOverlaySpinnerClasses, normalizeSvgAttrs, exportTableToCsv, downloadCsv, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, icon16ViewBox, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, editableCellInputClasses, getEditableCellClasses, getTableRowClasses, getExpandedRowClasses, getExpandedRowContentClasses, getExpandIconClasses, expandChevronIcon16PathD } from '@expcat/tigercat-core';
|
|
3
|
-
|
|
4
1
|
// src/components/Table.ts
|
|
2
|
+
import { defineComponent, h as h6, onBeforeUnmount, onMounted, ref as ref2 } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
classNames as classNames3,
|
|
5
|
+
createTableResizeObserverController,
|
|
6
|
+
getTableWrapperClasses,
|
|
7
|
+
getTableResponsiveTableClasses,
|
|
8
|
+
getTableVirtualRecommendation,
|
|
9
|
+
tableBaseClasses,
|
|
10
|
+
tableResponsiveCardClasses,
|
|
11
|
+
tableResponsiveCardLabelClasses,
|
|
12
|
+
tableResponsiveCardListClasses,
|
|
13
|
+
tableResponsiveCardRowClasses,
|
|
14
|
+
tableResponsiveCardValueClasses,
|
|
15
|
+
tableLoadingOverlayClasses
|
|
16
|
+
} from "@expcat/tigercat-core";
|
|
17
|
+
import { tableExportButtonClasses } from "@expcat/tigercat-core";
|
|
5
18
|
|
|
6
19
|
// src/components/Table/props.ts
|
|
7
20
|
var tableProps = {
|
|
@@ -93,19 +106,27 @@ var tableProps = {
|
|
|
93
106
|
type: String,
|
|
94
107
|
default: "auto"
|
|
95
108
|
},
|
|
109
|
+
responsiveMode: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: "scroll"
|
|
112
|
+
},
|
|
96
113
|
// --- v0.6.0 props ---
|
|
97
114
|
virtual: { type: Boolean, default: false },
|
|
115
|
+
autoVirtual: { type: Boolean, default: true },
|
|
98
116
|
virtualHeight: { type: Number, default: 400 },
|
|
99
117
|
virtualItemHeight: { type: Number, default: 40 },
|
|
118
|
+
autoVirtualThreshold: { type: Number, default: 1e4 },
|
|
100
119
|
virtualThreshold: { type: Number, default: 1e3 },
|
|
101
120
|
editable: { type: Boolean, default: false },
|
|
102
121
|
editableCells: { type: Object },
|
|
103
122
|
filterMode: { type: String, default: "basic" },
|
|
104
123
|
advancedFilterRules: { type: Array, default: () => [] },
|
|
105
124
|
columnDraggable: { type: Boolean, default: false },
|
|
125
|
+
rowDraggable: { type: Boolean, default: false },
|
|
106
126
|
summaryRow: { type: Object },
|
|
107
127
|
groupBy: { type: String },
|
|
108
128
|
exportable: { type: Boolean, default: false },
|
|
129
|
+
exportFormat: { type: String, default: "csv" },
|
|
109
130
|
exportFilename: { type: String, default: "export" }
|
|
110
131
|
};
|
|
111
132
|
var tableEmits = [
|
|
@@ -118,8 +139,24 @@ var tableEmits = [
|
|
|
118
139
|
"expand-change",
|
|
119
140
|
"cell-change",
|
|
120
141
|
"column-order-change",
|
|
142
|
+
"row-order-change",
|
|
121
143
|
"export"
|
|
122
144
|
];
|
|
145
|
+
|
|
146
|
+
// src/components/Table/state.ts
|
|
147
|
+
import { computed, ref, watch } from "vue";
|
|
148
|
+
import {
|
|
149
|
+
sortData,
|
|
150
|
+
filterData,
|
|
151
|
+
paginateData,
|
|
152
|
+
calculatePagination,
|
|
153
|
+
createTableRowKeyCache,
|
|
154
|
+
filterDataAdvanced,
|
|
155
|
+
groupDataByColumn,
|
|
156
|
+
getFixedColumnOffsets,
|
|
157
|
+
getFixedVirtualRange
|
|
158
|
+
} from "@expcat/tigercat-core";
|
|
159
|
+
import { exportTableData, downloadTableExport } from "@expcat/tigercat-core";
|
|
123
160
|
function useTableState(props, emit, measuredColumnWidths) {
|
|
124
161
|
const paginationConfig = computed(() => {
|
|
125
162
|
return props.pagination !== false && typeof props.pagination === "object" ? props.pagination : null;
|
|
@@ -430,9 +467,9 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
430
467
|
editingCell.value = null;
|
|
431
468
|
}
|
|
432
469
|
function handleExport() {
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
emit("export",
|
|
470
|
+
const content = exportTableData(displayColumns.value, processedData.value, props.exportFormat);
|
|
471
|
+
downloadTableExport(content, props.exportFilename, props.exportFormat);
|
|
472
|
+
emit("export", content);
|
|
436
473
|
}
|
|
437
474
|
const dragColumnKey = ref(null);
|
|
438
475
|
function handleDragStart(columnKey) {
|
|
@@ -450,7 +487,24 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
450
487
|
}
|
|
451
488
|
dragColumnKey.value = null;
|
|
452
489
|
}
|
|
490
|
+
const dragRowKey = ref(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
|
+
}
|
|
453
506
|
const virtualScrollTop = ref(0);
|
|
507
|
+
void getFixedVirtualRange;
|
|
454
508
|
const groupedData = computed(() => {
|
|
455
509
|
if (!props.groupBy) return null;
|
|
456
510
|
return groupDataByColumn(paginatedData.value, props.groupBy);
|
|
@@ -494,9 +548,29 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
494
548
|
cancelEdit,
|
|
495
549
|
handleExport,
|
|
496
550
|
handleDragStart,
|
|
497
|
-
handleDrop
|
|
551
|
+
handleDrop,
|
|
552
|
+
handleRowDragStart,
|
|
553
|
+
handleRowDrop
|
|
498
554
|
};
|
|
499
555
|
}
|
|
556
|
+
|
|
557
|
+
// src/components/Table/icons.ts
|
|
558
|
+
import { h } from "vue";
|
|
559
|
+
import {
|
|
560
|
+
getSortIconClasses,
|
|
561
|
+
getExpandIconClasses,
|
|
562
|
+
getSpinnerSVG,
|
|
563
|
+
normalizeSvgAttrs,
|
|
564
|
+
getLoadingOverlaySpinnerClasses,
|
|
565
|
+
icon16ViewBox,
|
|
566
|
+
icon24ViewBox,
|
|
567
|
+
sortAscIcon16PathD,
|
|
568
|
+
sortDescIcon16PathD,
|
|
569
|
+
sortBothIcon16PathD,
|
|
570
|
+
expandChevronIcon16PathD,
|
|
571
|
+
lockClosedIcon24PathD,
|
|
572
|
+
lockOpenIcon24PathD
|
|
573
|
+
} from "@expcat/tigercat-core";
|
|
500
574
|
var spinnerSvg = getSpinnerSVG("spinner");
|
|
501
575
|
var SortIcon = (direction) => {
|
|
502
576
|
const active = direction !== null;
|
|
@@ -552,11 +626,21 @@ var LoadingSpinner = () => {
|
|
|
552
626
|
spinnerSvg.elements.map((el) => h(el.type, normalizeSvgAttrs(el.attrs)))
|
|
553
627
|
);
|
|
554
628
|
};
|
|
629
|
+
|
|
630
|
+
// src/components/Table/render-header.ts
|
|
631
|
+
import { h as h2 } from "vue";
|
|
632
|
+
import {
|
|
633
|
+
classNames,
|
|
634
|
+
getTableHeaderClasses,
|
|
635
|
+
getTableHeaderCellClasses,
|
|
636
|
+
getCheckboxCellClasses,
|
|
637
|
+
getExpandIconCellClasses
|
|
638
|
+
} from "@expcat/tigercat-core";
|
|
555
639
|
function renderTableHeader(ctx, props, slots) {
|
|
556
640
|
const headerCells = [];
|
|
557
641
|
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
558
642
|
const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
|
|
559
|
-
const expandHeaderTh = props.expandable ?
|
|
643
|
+
const expandHeaderTh = props.expandable ? h2("th", {
|
|
560
644
|
class: getExpandIconCellClasses(props.size),
|
|
561
645
|
"aria-label": "Expand"
|
|
562
646
|
}) : null;
|
|
@@ -565,13 +649,13 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
565
649
|
}
|
|
566
650
|
if (props.rowSelection && props.rowSelection.showCheckbox !== false && props.rowSelection.type !== "radio") {
|
|
567
651
|
headerCells.push(
|
|
568
|
-
|
|
652
|
+
h2(
|
|
569
653
|
"th",
|
|
570
654
|
{
|
|
571
655
|
class: getCheckboxCellClasses(props.size)
|
|
572
656
|
},
|
|
573
657
|
[
|
|
574
|
-
|
|
658
|
+
h2("input", {
|
|
575
659
|
type: "checkbox",
|
|
576
660
|
class: "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
577
661
|
checked: ctx.allSelected.value,
|
|
@@ -612,7 +696,7 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
612
696
|
}
|
|
613
697
|
if (props.columnLockable) {
|
|
614
698
|
headerContent.push(
|
|
615
|
-
|
|
699
|
+
h2(
|
|
616
700
|
"button",
|
|
617
701
|
{
|
|
618
702
|
type: "button",
|
|
@@ -634,7 +718,7 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
634
718
|
headerContent.push(SortIcon(sortDirection));
|
|
635
719
|
}
|
|
636
720
|
headerCells.push(
|
|
637
|
-
|
|
721
|
+
h2(
|
|
638
722
|
"th",
|
|
639
723
|
{
|
|
640
724
|
key: column.key,
|
|
@@ -657,10 +741,10 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
657
741
|
onClick: column.sortable ? () => ctx.handleSort(column.key) : void 0
|
|
658
742
|
},
|
|
659
743
|
[
|
|
660
|
-
|
|
744
|
+
h2("div", { class: "flex items-center gap-2" }, headerContent),
|
|
661
745
|
...column.filter ? [
|
|
662
|
-
|
|
663
|
-
column.filter.type === "select" && column.filter.options ?
|
|
746
|
+
h2("div", { class: "mt-2" }, [
|
|
747
|
+
column.filter.type === "select" && column.filter.options ? h2(
|
|
664
748
|
"select",
|
|
665
749
|
{
|
|
666
750
|
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
@@ -668,12 +752,12 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
668
752
|
onClick: (e) => e.stopPropagation()
|
|
669
753
|
},
|
|
670
754
|
[
|
|
671
|
-
|
|
755
|
+
h2("option", { value: "" }, "All"),
|
|
672
756
|
...column.filter.options.map(
|
|
673
|
-
(opt) =>
|
|
757
|
+
(opt) => h2("option", { value: opt.value }, opt.label)
|
|
674
758
|
)
|
|
675
759
|
]
|
|
676
|
-
) :
|
|
760
|
+
) : h2("input", {
|
|
677
761
|
type: "text",
|
|
678
762
|
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
679
763
|
placeholder: column.filter.placeholder || "Filter...",
|
|
@@ -689,23 +773,40 @@ function renderTableHeader(ctx, props, slots) {
|
|
|
689
773
|
if (expandAtEnd && expandHeaderTh) {
|
|
690
774
|
headerCells.push(expandHeaderTh);
|
|
691
775
|
}
|
|
692
|
-
return
|
|
776
|
+
return h2("thead", { class: getTableHeaderClasses(props.stickyHeader) }, [h2("tr", headerCells)]);
|
|
693
777
|
}
|
|
778
|
+
|
|
779
|
+
// src/components/Table/render-body.ts
|
|
780
|
+
import { h as h3 } from "vue";
|
|
781
|
+
import {
|
|
782
|
+
classNames as classNames2,
|
|
783
|
+
getTableRowClasses,
|
|
784
|
+
getTableCellClasses,
|
|
785
|
+
getCheckboxCellClasses as getCheckboxCellClasses2,
|
|
786
|
+
getExpandIconCellClasses as getExpandIconCellClasses2,
|
|
787
|
+
getExpandedRowClasses,
|
|
788
|
+
getExpandedRowContentClasses,
|
|
789
|
+
tableEmptyStateClasses,
|
|
790
|
+
getEditableCellClasses,
|
|
791
|
+
editableCellInputClasses,
|
|
792
|
+
tableGroupHeaderClasses,
|
|
793
|
+
getGroupHeaderCellClasses
|
|
794
|
+
} from "@expcat/tigercat-core";
|
|
694
795
|
function renderTableBody(ctx, props, slots) {
|
|
695
796
|
if (props.loading) {
|
|
696
797
|
return null;
|
|
697
798
|
}
|
|
698
799
|
if (ctx.paginatedData.value.length === 0) {
|
|
699
|
-
return
|
|
700
|
-
|
|
701
|
-
|
|
800
|
+
return h3("tbody", [
|
|
801
|
+
h3("tr", [
|
|
802
|
+
h3(
|
|
702
803
|
"td",
|
|
703
804
|
{
|
|
704
805
|
colspan: ctx.totalColumnCount.value,
|
|
705
806
|
class: tableEmptyStateClasses
|
|
706
807
|
},
|
|
707
808
|
[
|
|
708
|
-
|
|
809
|
+
h3(
|
|
709
810
|
"div",
|
|
710
811
|
{
|
|
711
812
|
role: "status",
|
|
@@ -718,6 +819,45 @@ function renderTableBody(ctx, props, slots) {
|
|
|
718
819
|
])
|
|
719
820
|
]);
|
|
720
821
|
}
|
|
822
|
+
function getDelegatedRow(event) {
|
|
823
|
+
const row = event.target?.closest(
|
|
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
|
+
};
|
|
721
861
|
function renderDataRow(record, index) {
|
|
722
862
|
const key = ctx.paginatedRowKeys.value[index];
|
|
723
863
|
const isSelected = ctx.selectedRowKeySet.value.has(key);
|
|
@@ -726,13 +866,13 @@ function renderTableBody(ctx, props, slots) {
|
|
|
726
866
|
const rowClass = typeof props.rowClassName === "function" ? props.rowClassName(record, index) : props.rowClassName;
|
|
727
867
|
const cells = [];
|
|
728
868
|
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
729
|
-
const expandToggleCell = props.expandable ?
|
|
869
|
+
const expandToggleCell = props.expandable ? h3(
|
|
730
870
|
"td",
|
|
731
871
|
{
|
|
732
|
-
class:
|
|
872
|
+
class: getExpandIconCellClasses2(props.size)
|
|
733
873
|
},
|
|
734
874
|
isRowExpandable ? [
|
|
735
|
-
|
|
875
|
+
h3(
|
|
736
876
|
"button",
|
|
737
877
|
{
|
|
738
878
|
type: "button",
|
|
@@ -754,13 +894,13 @@ function renderTableBody(ctx, props, slots) {
|
|
|
754
894
|
if (props.rowSelection && props.rowSelection.showCheckbox !== false) {
|
|
755
895
|
const checkboxProps = props.rowSelection?.getCheckboxProps?.(record) || {};
|
|
756
896
|
cells.push(
|
|
757
|
-
|
|
897
|
+
h3(
|
|
758
898
|
"td",
|
|
759
899
|
{
|
|
760
|
-
class:
|
|
900
|
+
class: getCheckboxCellClasses2(props.size)
|
|
761
901
|
},
|
|
762
902
|
[
|
|
763
|
-
|
|
903
|
+
h3("input", {
|
|
764
904
|
type: props.rowSelection?.type === "radio" ? "radio" : "checkbox",
|
|
765
905
|
class: props.rowSelection?.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)]",
|
|
766
906
|
checked: isSelected,
|
|
@@ -791,13 +931,13 @@ function renderTableBody(ctx, props, slots) {
|
|
|
791
931
|
} : void 0;
|
|
792
932
|
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
793
933
|
const stickyBgClass = props.striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
|
|
794
|
-
const stickyCellClass = isFixedLeft || isFixedRight ?
|
|
934
|
+
const stickyCellClass = isFixedLeft || isFixedRight ? classNames2(
|
|
795
935
|
stickyBgClass,
|
|
796
936
|
props.hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
797
937
|
) : void 0;
|
|
798
938
|
const isEditing = ctx.editingCell.value?.rowIndex === index && ctx.editingCell.value?.columnKey === column.key;
|
|
799
939
|
const isEditableCell = ctx.isCellEditable(column.key, index);
|
|
800
|
-
const cellContent = isEditing ?
|
|
940
|
+
const cellContent = isEditing ? h3("input", {
|
|
801
941
|
type: "text",
|
|
802
942
|
class: editableCellInputClasses,
|
|
803
943
|
value: ctx.editingValue.value,
|
|
@@ -812,11 +952,11 @@ function renderTableBody(ctx, props, slots) {
|
|
|
812
952
|
}
|
|
813
953
|
}) : slots[`cell-${column.key}`]?.({ record, index }) ?? (column.render ? column.render(record, index) : cellValue);
|
|
814
954
|
cells.push(
|
|
815
|
-
|
|
955
|
+
h3(
|
|
816
956
|
"td",
|
|
817
957
|
{
|
|
818
958
|
key: column.key,
|
|
819
|
-
class:
|
|
959
|
+
class: classNames2(
|
|
820
960
|
getTableCellClasses(props.size, column.align || "left", column.className),
|
|
821
961
|
stickyCellClass,
|
|
822
962
|
isEditableCell && !isEditing && getEditableCellClasses(false)
|
|
@@ -831,29 +971,29 @@ function renderTableBody(ctx, props, slots) {
|
|
|
831
971
|
if (!expandAtStart && expandToggleCell) {
|
|
832
972
|
cells.push(expandToggleCell);
|
|
833
973
|
}
|
|
834
|
-
const rowNode =
|
|
974
|
+
const rowNode = h3(
|
|
835
975
|
"tr",
|
|
836
976
|
{
|
|
837
977
|
key,
|
|
838
978
|
"data-tiger-table-row-index": index,
|
|
839
|
-
class:
|
|
979
|
+
class: classNames2(
|
|
840
980
|
getTableRowClasses(props.hoverable, props.striped, index % 2 === 0, rowClass),
|
|
841
981
|
ctx.fixedColumnsInfo.value.hasFixedColumns && "group"
|
|
842
982
|
),
|
|
843
|
-
|
|
983
|
+
draggable: props.rowDraggable ? "true" : void 0
|
|
844
984
|
},
|
|
845
985
|
cells
|
|
846
986
|
);
|
|
847
987
|
if (props.expandable && isExpanded && isRowExpandable) {
|
|
848
988
|
const expandedContent = slots["expanded-row"]?.({ record, index }) || (props.expandable.expandedRowRender ? props.expandable.expandedRowRender(record, index) : null);
|
|
849
|
-
const expandedRow =
|
|
989
|
+
const expandedRow = h3(
|
|
850
990
|
"tr",
|
|
851
991
|
{
|
|
852
992
|
key: `${key}-expanded`,
|
|
853
993
|
class: getExpandedRowClasses()
|
|
854
994
|
},
|
|
855
995
|
[
|
|
856
|
-
|
|
996
|
+
h3(
|
|
857
997
|
"td",
|
|
858
998
|
{
|
|
859
999
|
colspan: ctx.totalColumnCount.value,
|
|
@@ -871,8 +1011,8 @@ function renderTableBody(ctx, props, slots) {
|
|
|
871
1011
|
const groupRows = [];
|
|
872
1012
|
for (const [groupKey, groupItems] of ctx.groupedData.value) {
|
|
873
1013
|
groupRows.push(
|
|
874
|
-
|
|
875
|
-
|
|
1014
|
+
h3("tr", { key: `group-${groupKey}`, class: tableGroupHeaderClasses }, [
|
|
1015
|
+
h3(
|
|
876
1016
|
"td",
|
|
877
1017
|
{
|
|
878
1018
|
colspan: ctx.totalColumnCount.value,
|
|
@@ -892,34 +1032,50 @@ function renderTableBody(ctx, props, slots) {
|
|
|
892
1032
|
}
|
|
893
1033
|
});
|
|
894
1034
|
}
|
|
895
|
-
return
|
|
1035
|
+
return h3("tbody", delegatedBodyHandlers, groupRows);
|
|
896
1036
|
}
|
|
897
1037
|
const rows = ctx.paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
|
|
898
|
-
return
|
|
1038
|
+
return h3("tbody", delegatedBodyHandlers, rows);
|
|
899
1039
|
}
|
|
1040
|
+
|
|
1041
|
+
// src/components/Table/render-summary.ts
|
|
1042
|
+
import { h as h4 } from "vue";
|
|
1043
|
+
import { getTableCellClasses as getTableCellClasses2, tableSummaryRowClasses } from "@expcat/tigercat-core";
|
|
900
1044
|
function renderSummaryRow(ctx, props) {
|
|
901
1045
|
if (!props.summaryRow?.show) return null;
|
|
902
1046
|
const emptyCells = [];
|
|
903
1047
|
if (props.rowSelection) {
|
|
904
|
-
emptyCells.push(
|
|
1048
|
+
emptyCells.push(h4("td", { class: getTableCellClasses2(props.size, "left") }));
|
|
905
1049
|
}
|
|
906
1050
|
if (props.expandable) {
|
|
907
|
-
emptyCells.push(
|
|
1051
|
+
emptyCells.push(h4("td", { class: getTableCellClasses2(props.size, "left") }));
|
|
908
1052
|
}
|
|
909
1053
|
const dataCells = ctx.displayColumns.value.map((col) => {
|
|
910
1054
|
const dataKey = col.dataKey || col.key;
|
|
911
1055
|
const val = props.summaryRow.data[dataKey];
|
|
912
|
-
return
|
|
1056
|
+
return h4(
|
|
913
1057
|
"td",
|
|
914
1058
|
{
|
|
915
1059
|
key: col.key,
|
|
916
|
-
class:
|
|
1060
|
+
class: getTableCellClasses2(props.size, col.align || "left", col.className)
|
|
917
1061
|
},
|
|
918
1062
|
val != null ? String(val) : ""
|
|
919
1063
|
);
|
|
920
1064
|
});
|
|
921
|
-
return
|
|
1065
|
+
return h4("tfoot", [h4("tr", { class: tableSummaryRowClasses }, [...emptyCells, ...dataCells])]);
|
|
922
1066
|
}
|
|
1067
|
+
|
|
1068
|
+
// src/components/Table/render-pagination.ts
|
|
1069
|
+
import { h as h5 } from "vue";
|
|
1070
|
+
import {
|
|
1071
|
+
getSimplePaginationContainerClasses,
|
|
1072
|
+
getSimplePaginationTotalClasses,
|
|
1073
|
+
getSimplePaginationControlsClasses,
|
|
1074
|
+
getSimplePaginationSelectClasses,
|
|
1075
|
+
getSimplePaginationButtonClasses,
|
|
1076
|
+
getSimplePaginationPageIndicatorClasses,
|
|
1077
|
+
getSimplePaginationButtonsWrapperClasses
|
|
1078
|
+
} from "@expcat/tigercat-core";
|
|
923
1079
|
function renderPagination(ctx, props) {
|
|
924
1080
|
if (props.pagination === false || !ctx.paginationInfo.value) {
|
|
925
1081
|
return null;
|
|
@@ -927,14 +1083,14 @@ function renderPagination(ctx, props) {
|
|
|
927
1083
|
const { totalPages, startIndex, endIndex, hasNext, hasPrev } = ctx.paginationInfo.value;
|
|
928
1084
|
const paginationConfig = props.pagination;
|
|
929
1085
|
const total = paginationConfig.total !== void 0 && paginationConfig.total > 0 ? paginationConfig.total : ctx.processedData.value.length;
|
|
930
|
-
return
|
|
931
|
-
paginationConfig.showTotal !== false &&
|
|
1086
|
+
return h5("div", { class: getSimplePaginationContainerClasses() }, [
|
|
1087
|
+
paginationConfig.showTotal !== false && h5(
|
|
932
1088
|
"div",
|
|
933
1089
|
{ class: getSimplePaginationTotalClasses() },
|
|
934
1090
|
paginationConfig.totalText ? paginationConfig.totalText(total, [startIndex, endIndex]) : `Showing ${startIndex} to ${endIndex} of ${total} results`
|
|
935
1091
|
),
|
|
936
|
-
|
|
937
|
-
paginationConfig.showSizeChanger !== false &&
|
|
1092
|
+
h5("div", { class: getSimplePaginationControlsClasses() }, [
|
|
1093
|
+
paginationConfig.showSizeChanger !== false && h5(
|
|
938
1094
|
"select",
|
|
939
1095
|
{
|
|
940
1096
|
class: getSimplePaginationSelectClasses(),
|
|
@@ -942,11 +1098,11 @@ function renderPagination(ctx, props) {
|
|
|
942
1098
|
onChange: (e) => ctx.handlePageSizeChange(Number(e.target.value))
|
|
943
1099
|
},
|
|
944
1100
|
(paginationConfig.pageSizeOptions || [10, 20, 50, 100]).map(
|
|
945
|
-
(size) =>
|
|
1101
|
+
(size) => h5("option", { value: size }, `${size} / page`)
|
|
946
1102
|
)
|
|
947
1103
|
),
|
|
948
|
-
|
|
949
|
-
|
|
1104
|
+
h5("div", { class: getSimplePaginationButtonsWrapperClasses() }, [
|
|
1105
|
+
h5(
|
|
950
1106
|
"button",
|
|
951
1107
|
{
|
|
952
1108
|
class: getSimplePaginationButtonClasses(!hasPrev),
|
|
@@ -955,12 +1111,12 @@ function renderPagination(ctx, props) {
|
|
|
955
1111
|
},
|
|
956
1112
|
"Previous"
|
|
957
1113
|
),
|
|
958
|
-
|
|
1114
|
+
h5(
|
|
959
1115
|
"span",
|
|
960
1116
|
{ class: getSimplePaginationPageIndicatorClasses() },
|
|
961
1117
|
`Page ${ctx.currentPage.value} of ${totalPages}`
|
|
962
1118
|
),
|
|
963
|
-
|
|
1119
|
+
h5(
|
|
964
1120
|
"button",
|
|
965
1121
|
{
|
|
966
1122
|
class: getSimplePaginationButtonClasses(!hasNext),
|
|
@@ -980,10 +1136,10 @@ var Table = defineComponent({
|
|
|
980
1136
|
props: tableProps,
|
|
981
1137
|
emits: tableEmits,
|
|
982
1138
|
setup(props, { emit, slots }) {
|
|
983
|
-
const wrapperRef =
|
|
984
|
-
const tableRef =
|
|
985
|
-
const measuredColumnWidths =
|
|
986
|
-
const measuredRowHeights =
|
|
1139
|
+
const wrapperRef = ref2(null);
|
|
1140
|
+
const tableRef = ref2(null);
|
|
1141
|
+
const measuredColumnWidths = ref2({});
|
|
1142
|
+
const measuredRowHeights = ref2([]);
|
|
987
1143
|
const ctx = useTableState(props, emit, measuredColumnWidths);
|
|
988
1144
|
const resizeController = createTableResizeObserverController({
|
|
989
1145
|
onResize: (snapshot) => {
|
|
@@ -1005,9 +1161,12 @@ var Table = defineComponent({
|
|
|
1005
1161
|
const resolvedProps = props;
|
|
1006
1162
|
const virtualRecommendation = getTableVirtualRecommendation({
|
|
1007
1163
|
virtual: resolvedProps.virtual,
|
|
1164
|
+
autoVirtual: resolvedProps.autoVirtual,
|
|
1008
1165
|
dataLength: resolvedProps.dataSource.length,
|
|
1009
|
-
threshold: resolvedProps.virtualThreshold
|
|
1166
|
+
threshold: resolvedProps.virtualThreshold,
|
|
1167
|
+
autoThreshold: resolvedProps.autoVirtualThreshold
|
|
1010
1168
|
});
|
|
1169
|
+
const effectiveVirtual = virtualRecommendation.enabled;
|
|
1011
1170
|
const wrapperStyle = resolvedProps.maxHeight ? {
|
|
1012
1171
|
maxHeight: typeof resolvedProps.maxHeight === "number" ? `${resolvedProps.maxHeight}px` : resolvedProps.maxHeight
|
|
1013
1172
|
} : void 0;
|
|
@@ -1016,19 +1175,20 @@ var Table = defineComponent({
|
|
|
1016
1175
|
renderTableBody(ctx, resolvedProps, slots),
|
|
1017
1176
|
renderSummaryRow(ctx, resolvedProps)
|
|
1018
1177
|
];
|
|
1019
|
-
const tableInner =
|
|
1178
|
+
const tableInner = h6(
|
|
1020
1179
|
"table",
|
|
1021
1180
|
{
|
|
1022
1181
|
ref: tableRef,
|
|
1023
|
-
class:
|
|
1182
|
+
class: classNames3(
|
|
1024
1183
|
tableBaseClasses,
|
|
1184
|
+
getTableResponsiveTableClasses(resolvedProps.responsiveMode),
|
|
1025
1185
|
resolvedProps.tableLayout === "fixed" ? "table-fixed" : "table-auto"
|
|
1026
1186
|
),
|
|
1027
1187
|
style: ctx.fixedColumnsInfo.value.hasFixedColumns && ctx.fixedColumnsInfo.value.minTableWidth ? { minWidth: `${ctx.fixedColumnsInfo.value.minTableWidth}px` } : void 0
|
|
1028
1188
|
},
|
|
1029
1189
|
tableChildren
|
|
1030
1190
|
);
|
|
1031
|
-
const tableContent =
|
|
1191
|
+
const tableContent = effectiveVirtual ? h6(
|
|
1032
1192
|
"div",
|
|
1033
1193
|
{
|
|
1034
1194
|
style: { height: `${resolvedProps.virtualHeight}px`, overflow: "auto" },
|
|
@@ -1038,33 +1198,101 @@ var Table = defineComponent({
|
|
|
1038
1198
|
},
|
|
1039
1199
|
[tableInner]
|
|
1040
1200
|
) : tableInner;
|
|
1041
|
-
|
|
1201
|
+
const cardContent = resolvedProps.responsiveMode === "card" ? h6(
|
|
1202
|
+
"div",
|
|
1203
|
+
{ class: tableResponsiveCardListClasses, "data-tiger-table-mobile": "card" },
|
|
1204
|
+
ctx.paginatedData.value.length === 0 ? [h6("div", { class: 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 = slots[`cell-${column.key}`]?.({ record, index }) ?? (column.render ? column.render(record, index) : cellValue);
|
|
1212
|
+
return h6("div", { key: column.key, class: tableResponsiveCardRowClasses }, [
|
|
1213
|
+
h6("div", { class: tableResponsiveCardLabelClasses }, column.title),
|
|
1214
|
+
h6("div", { class: tableResponsiveCardValueClasses }, [cellContent])
|
|
1215
|
+
]);
|
|
1216
|
+
});
|
|
1217
|
+
const controls = [];
|
|
1218
|
+
if (resolvedProps.rowSelection && resolvedProps.rowSelection.showCheckbox !== false) {
|
|
1219
|
+
const checkboxProps = resolvedProps.rowSelection.getCheckboxProps?.(record) || {};
|
|
1220
|
+
controls.push(
|
|
1221
|
+
h6("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
|
+
h6(
|
|
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 ? slots["expanded-row"]?.({ record, index }) ?? resolvedProps.expandable.expandedRowRender?.(record, index) : null;
|
|
1248
|
+
return h6(
|
|
1249
|
+
"div",
|
|
1250
|
+
{
|
|
1251
|
+
key,
|
|
1252
|
+
class: tableResponsiveCardClasses,
|
|
1253
|
+
onClick: () => ctx.handleRowClick(record, index, key)
|
|
1254
|
+
},
|
|
1255
|
+
[
|
|
1256
|
+
controls.length ? h6("div", { class: "mb-2 flex items-center gap-3" }, controls) : null,
|
|
1257
|
+
...rows,
|
|
1258
|
+
expandedContent ? h6(
|
|
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 h6(
|
|
1042
1268
|
"div",
|
|
1043
1269
|
{
|
|
1044
1270
|
ref: wrapperRef,
|
|
1045
1271
|
class: getTableWrapperClasses(resolvedProps.bordered, resolvedProps.maxHeight),
|
|
1046
1272
|
style: wrapperStyle,
|
|
1047
1273
|
"data-tiger-virtual": virtualRecommendation.enabled ? "enabled" : void 0,
|
|
1274
|
+
"data-tiger-virtual-auto": virtualRecommendation.autoEnabled ? "true" : void 0,
|
|
1048
1275
|
"data-tiger-virtual-recommended": virtualRecommendation.recommended ? "true" : void 0,
|
|
1049
1276
|
"data-tiger-virtual-threshold": virtualRecommendation.recommended ? virtualRecommendation.threshold : void 0,
|
|
1050
1277
|
"data-tiger-measured-row-height": measuredRowHeights.value[0] || void 0,
|
|
1051
1278
|
"aria-busy": resolvedProps.loading
|
|
1052
1279
|
},
|
|
1053
1280
|
[
|
|
1054
|
-
resolvedProps.exportable &&
|
|
1055
|
-
|
|
1281
|
+
resolvedProps.exportable && h6("div", { class: "flex justify-end p-2" }, [
|
|
1282
|
+
h6(
|
|
1056
1283
|
"button",
|
|
1057
1284
|
{
|
|
1058
1285
|
type: "button",
|
|
1059
1286
|
class: tableExportButtonClasses,
|
|
1060
1287
|
onClick: ctx.handleExport,
|
|
1061
|
-
"aria-label": "Export to CSV"
|
|
1288
|
+
"aria-label": resolvedProps.exportFormat === "excel" ? "Export to Excel" : "Export to CSV"
|
|
1062
1289
|
},
|
|
1063
|
-
"Export CSV"
|
|
1290
|
+
resolvedProps.exportFormat === "excel" ? "Export Excel" : "Export CSV"
|
|
1064
1291
|
)
|
|
1065
1292
|
]),
|
|
1066
1293
|
tableContent,
|
|
1067
|
-
|
|
1294
|
+
cardContent,
|
|
1295
|
+
resolvedProps.loading && h6(
|
|
1068
1296
|
"div",
|
|
1069
1297
|
{
|
|
1070
1298
|
class: tableLoadingOverlayClasses,
|
|
@@ -1072,7 +1300,7 @@ var Table = defineComponent({
|
|
|
1072
1300
|
"aria-live": "polite",
|
|
1073
1301
|
"aria-label": "Loading"
|
|
1074
1302
|
},
|
|
1075
|
-
[LoadingSpinner(),
|
|
1303
|
+
[LoadingSpinner(), h6("span", { class: "sr-only" }, "Loading")]
|
|
1076
1304
|
),
|
|
1077
1305
|
renderPagination(ctx, resolvedProps)
|
|
1078
1306
|
]
|
|
@@ -1090,4 +1318,7 @@ function areNumberArraysEqual(current, next) {
|
|
|
1090
1318
|
return current.length === next.length && next.every((value, index) => current[index] === value);
|
|
1091
1319
|
}
|
|
1092
1320
|
|
|
1093
|
-
export {
|
|
1321
|
+
export {
|
|
1322
|
+
Table,
|
|
1323
|
+
Table_default
|
|
1324
|
+
};
|