@expcat/tigercat-vue 1.0.4 → 1.1.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/dist/{chunk-DN5GU5PC.js → chunk-2LNNB55E.js} +18 -2
- package/dist/{chunk-RB7KVVWE.mjs → chunk-2X3ZPH2H.mjs} +20 -28
- package/dist/{chunk-SEKYX56R.js → chunk-2Z2CJEUL.js} +10 -13
- package/dist/{chunk-TDL4BUUB.js → chunk-33YTJPF7.js} +4 -3
- package/dist/{chunk-NXGCLBVG.js → chunk-47Z4MGKP.js} +92 -12
- package/dist/{chunk-243JSTYQ.mjs → chunk-4CWRNKPE.mjs} +3 -2
- package/dist/{chunk-BUTNEKFD.js → chunk-4VB6I3CA.js} +11 -15
- package/dist/{chunk-U7CCKZAG.js → chunk-5436FG3B.js} +18 -16
- package/dist/{chunk-AGAJJYP2.js → chunk-56EI2AYV.js} +53 -12
- package/dist/{chunk-JGUXQMYL.mjs → chunk-5D2UAWWP.mjs} +21 -5
- package/dist/{chunk-FOF7UBMU.js → chunk-5RA26RRN.js} +75 -37
- package/dist/{chunk-LW3LFCRZ.mjs → chunk-5X3GXNGM.mjs} +58 -13
- package/dist/{chunk-WNF7XUX4.mjs → chunk-5YFSAKRQ.mjs} +4 -2
- package/dist/chunk-63LJVB2M.js +491 -0
- package/dist/{chunk-VITTXNTD.js → chunk-656KMUL3.js} +125 -17
- package/dist/{chunk-5XF5IAUD.mjs → chunk-6EI23IND.mjs} +86 -49
- package/dist/{chunk-6XU5PSC2.js → chunk-6PJ3JANP.js} +37 -10
- package/dist/{chunk-MKLJ2LJW.mjs → chunk-6WACKCWM.mjs} +10 -13
- package/dist/{chunk-JIMDJWZZ.js → chunk-7ADONGSB.js} +2 -4
- package/dist/{chunk-MADOTDW7.mjs → chunk-7PY6OQVE.mjs} +23 -27
- package/dist/{chunk-VDNAGLQJ.js → chunk-7QX4QWWN.js} +26 -29
- package/dist/{chunk-CU4M5ABS.mjs → chunk-7RIWAO2A.mjs} +40 -6
- package/dist/{chunk-GJFT5IQR.js → chunk-A5HHG53Z.js} +30 -27
- package/dist/{chunk-Q57TYGO4.js → chunk-A5HRX7EG.js} +12 -1
- package/dist/{chunk-3G7QYQYL.js → chunk-A7FN3S4I.js} +47 -2
- package/dist/{chunk-JN63Z5E5.js → chunk-ABLH42TR.js} +3 -3
- package/dist/{chunk-BKTQ6RWR.js → chunk-ACYYQJ6M.js} +4 -3
- package/dist/{chunk-GA5S2KNZ.js → chunk-AEU46D6B.js} +12 -13
- package/dist/{chunk-XQKIMRRF.js → chunk-AGVXMB4Q.js} +11 -6
- package/dist/{chunk-T52TU2RW.mjs → chunk-AXDBME5A.mjs} +29 -18
- package/dist/{chunk-564LMZQL.mjs → chunk-BMT5PGAQ.mjs} +22 -19
- package/dist/{chunk-S2PMAXBQ.js → chunk-BQRXHUIC.js} +49 -6
- package/dist/{chunk-V4PBWEAU.js → chunk-BZBQUUXF.js} +34 -2
- package/dist/{chunk-4L5UYIV6.mjs → chunk-C6ER6OUB.mjs} +25 -6
- package/dist/{chunk-GMYSHJCU.mjs → chunk-C7VGTRHE.mjs} +12 -7
- package/dist/{chunk-7DGAOCPX.mjs → chunk-CERGNVW2.mjs} +175 -133
- package/dist/{chunk-GTSS7RAT.mjs → chunk-CN2SP53A.mjs} +129 -9
- package/dist/chunk-CRGGJKV2.js +286 -0
- package/dist/{chunk-2SK6T4WB.js → chunk-CSJQKBDJ.js} +20 -4
- package/dist/{chunk-Z2NMFYF4.mjs → chunk-CZALMJH3.mjs} +3 -2
- package/dist/{chunk-6A57RY3H.mjs → chunk-DBTS5QBX.mjs} +2 -2
- package/dist/{chunk-XYYZAQ6Z.mjs → chunk-DIQGHFAT.mjs} +3 -3
- package/dist/{chunk-S276SM7L.mjs → chunk-DMV26JNR.mjs} +29 -26
- package/dist/{chunk-UUGAOKYR.js → chunk-DZXZ3YEL.js} +16 -10
- package/dist/chunk-E3BSOB7P.mjs +89 -0
- package/dist/{chunk-LRHJZP2C.mjs → chunk-E6RGBYI3.mjs} +110 -31
- package/dist/{chunk-TYFUO6PE.mjs → chunk-E74ERZGQ.mjs} +92 -17
- package/dist/{chunk-LHPBK4MG.js → chunk-EHBPMUT2.js} +25 -4
- package/dist/{chunk-XGJWUZWS.js → chunk-EVOXC3CD.js} +36 -17
- package/dist/{chunk-4BMFV4CH.mjs → chunk-F7G7K3TF.mjs} +58 -83
- package/dist/{chunk-3FVWZYBQ.js → chunk-FC27Q4CL.js} +89 -52
- package/dist/{chunk-WB6JGQWN.js → chunk-FE2HR4E5.js} +5 -4
- package/dist/{chunk-I5K3R4FN.mjs → chunk-FMH4CLSA.mjs} +19 -1
- package/dist/{chunk-U2K7CF67.js → chunk-FMLNJXCX.js} +12 -34
- package/dist/{chunk-3PQ2I5IQ.mjs → chunk-FQHYU76P.mjs} +19 -16
- package/dist/{chunk-HFCVHAQ6.mjs → chunk-FRFCXRUJ.mjs} +4 -4
- package/dist/{chunk-3ICMBQPM.mjs → chunk-FRMMT3K3.mjs} +47 -5
- package/dist/chunk-G2IZAKJY.mjs +375 -0
- package/dist/{chunk-K2U3FEL7.js → chunk-GAWIICIB.js} +55 -2
- package/dist/{chunk-LFV3KYO2.js → chunk-GDKYQ7U6.js} +9 -8
- package/dist/chunk-GEPFTYKC.js +378 -0
- package/dist/{chunk-W6TMZ7ZT.js → chunk-GOBWUEHV.js} +57 -82
- package/dist/{chunk-IOBJYUUO.mjs → chunk-GVZRR2WP.mjs} +29 -26
- package/dist/{chunk-RSBAFDUA.mjs → chunk-GWNXDOIG.mjs} +26 -5
- package/dist/{chunk-FLAJKB2O.js → chunk-GZK6R2E3.js} +8 -1
- package/dist/{chunk-T77L326M.mjs → chunk-H2BH6TJN.mjs} +55 -2
- package/dist/chunk-H4F4G2E4.mjs +74 -0
- package/dist/{chunk-QDFUM2QT.js → chunk-HU2XBA2A.js} +4 -3
- package/dist/{chunk-JM3ZZYTE.mjs → chunk-I34OWAAY.mjs} +45 -12
- package/dist/{chunk-HXLCWM2J.mjs → chunk-I6E3GY64.mjs} +5 -4
- package/dist/{chunk-MYFQ3B2D.mjs → chunk-IFD7PZDO.mjs} +5 -5
- package/dist/{chunk-NHCCPMLC.mjs → chunk-IV4HFG36.mjs} +55 -14
- package/dist/{chunk-TG4PXQKX.mjs → chunk-J73M5UTG.mjs} +83 -7
- package/dist/{chunk-RQREJGY3.js → chunk-JACGMHFI.js} +25 -13
- package/dist/{chunk-IVTBNUKQ.js → chunk-JDCVS4SJ.js} +40 -3
- package/dist/{chunk-BFS7XO3E.js → chunk-JFIVDZFK.js} +12 -14
- package/dist/{chunk-UPPRQ3ZS.js → chunk-JKZ5ZRDG.js} +22 -26
- package/dist/{chunk-7VSD3NPI.js → chunk-JTTSX3NM.js} +12 -21
- package/dist/{chunk-MX2KCWM2.js → chunk-K3CIXMN4.js} +28 -17
- package/dist/{chunk-RDV4BMTK.js → chunk-KOI6AQ5H.js} +8 -12
- package/dist/{chunk-AAO2B46J.js → chunk-KVJKG4D3.js} +47 -1
- package/dist/{chunk-ABPOLQLE.mjs → chunk-LBHKQW3U.mjs} +24 -12
- package/dist/{chunk-FK2XBMC3.mjs → chunk-LBIQHIXN.mjs} +122 -14
- package/dist/{chunk-XFZZWZ6Q.js → chunk-LG6KGO5D.js} +28 -25
- package/dist/{chunk-EXQSRZJX.mjs → chunk-LL4ASJ4O.mjs} +13 -15
- package/dist/{chunk-2WZGK7XJ.js → chunk-LWDA7ABQ.js} +5 -5
- package/dist/{chunk-2SCIJ2RW.mjs → chunk-M3G6LJKZ.mjs} +3 -2
- package/dist/{chunk-P4X7GS2X.mjs → chunk-MDPHUCVS.mjs} +23 -9
- package/dist/{chunk-LV3BMS4U.mjs → chunk-ML2QP5KF.mjs} +12 -13
- package/dist/{chunk-G4ZD6COW.js → chunk-MRMKZTC6.js} +6 -17
- package/dist/{chunk-MVIHUPCX.js → chunk-MSKAWM7K.js} +4 -4
- package/dist/chunk-MZHQAT4I.mjs +761 -0
- package/dist/{chunk-DU2NXX75.mjs → chunk-N4GS2LSN.mjs} +10 -3
- package/dist/{chunk-LAAPLTP3.js → chunk-NCFY3VXA.js} +2 -2
- package/dist/{chunk-TW64ZNZY.mjs → chunk-NG7TLPQQ.mjs} +67 -5
- package/dist/{chunk-THEYWGOT.js → chunk-NJLNZ73T.js} +49 -14
- package/dist/{chunk-WLKOJFOC.mjs → chunk-NNNG6NIA.mjs} +14 -3
- package/dist/{chunk-5NOZXKMU.js → chunk-O3JPGBAK.js} +8 -8
- package/dist/{chunk-LGVPLGK3.mjs → chunk-OCL22D5E.mjs} +21 -31
- package/dist/{chunk-GHPSCR6M.js → chunk-ODQOYMUQ.js} +8 -12
- package/dist/{chunk-FXGIIFGN.mjs → chunk-OK4PVFQG.mjs} +7 -7
- package/dist/{chunk-5AXCKK6Z.js → chunk-OKSLWGXR.js} +67 -5
- package/dist/{chunk-W5A4E4C7.js → chunk-OMVVPNU7.js} +95 -20
- package/dist/{chunk-M6PEW6V5.mjs → chunk-OSOA7LWH.mjs} +12 -21
- package/dist/{chunk-PBWSBNDS.js → chunk-OZYJ3U4H.js} +3 -21
- package/dist/{chunk-LLU76X6I.js → chunk-P4XGEFV3.js} +23 -9
- package/dist/{chunk-4Y2SJZB5.js → chunk-P7RXZVLT.js} +19 -27
- package/dist/{chunk-ECUROLZ7.js → chunk-PBQVYZRB.js} +174 -132
- package/dist/{chunk-Q6OYCTQO.mjs → chunk-PCUUTKQZ.mjs} +19 -3
- package/dist/{chunk-BQEVLY2O.mjs → chunk-PUSTYAMS.mjs} +141 -21
- package/dist/{chunk-2J54DRDA.js → chunk-Q4OPUKWF.js} +94 -20
- package/dist/{chunk-YH7N5GZF.mjs → chunk-QDYF23NQ.mjs} +11 -15
- package/dist/chunk-QRAV345L.js +78 -0
- package/dist/{chunk-D2I2NNYI.js → chunk-QV7XYS5P.js} +22 -19
- package/dist/{chunk-R77ZKZ5F.js → chunk-QYSFZA5V.js} +108 -28
- package/dist/chunk-QZ5OPNL4.mjs +75 -0
- package/dist/chunk-RDJZOMI6.js +77 -0
- package/dist/{chunk-SAMKKXAW.mjs → chunk-REF5Q6PG.mjs} +1 -1
- package/dist/{chunk-UHGRUTGW.js → chunk-RHCW2WXG.js} +23 -4
- package/dist/chunk-RKU54YLW.mjs +283 -0
- package/dist/{chunk-I6RGE7XQ.js → chunk-RKZN3URO.js} +19 -1
- package/dist/{chunk-34ZZLKQ4.js → chunk-RPWBZLHL.js} +44 -11
- package/dist/{chunk-QDNTISP7.mjs → chunk-RRTB7O7Q.mjs} +8 -30
- package/dist/chunk-RVU47MU6.mjs +156 -0
- package/dist/{chunk-4DJ2HAYO.js → chunk-S4DT7LXD.js} +2 -2
- package/dist/{chunk-5G5Q3TTH.js → chunk-SB2SX5EH.js} +38 -30
- package/dist/{chunk-FDYZ7NTQ.mjs → chunk-SC3WTLKG.mjs} +58 -21
- package/dist/{chunk-UNR5RUET.mjs → chunk-SPFWZCRX.mjs} +91 -17
- package/dist/{chunk-OXOCGMPN.mjs → chunk-TGIXSJI3.mjs} +4 -1
- package/dist/{chunk-Q6CGPWQF.js → chunk-TOE2XSEO.js} +23 -20
- package/dist/{chunk-UWL2XUAH.mjs → chunk-TVDLZZNO.mjs} +4 -4
- package/dist/{chunk-URYEEQD7.mjs → chunk-UANF7XE5.mjs} +17 -11
- package/dist/chunk-UCDB56MB.mjs +486 -0
- package/dist/{chunk-FCV4ML6I.js → chunk-UHVUKLHF.js} +39 -4
- package/dist/{chunk-M7JUNLA7.mjs → chunk-UM5GGKIX.mjs} +20 -18
- package/dist/{chunk-ZA2PLF7O.mjs → chunk-UNTTADHL.mjs} +4 -4
- package/dist/chunk-UT6T25YJ.js +159 -0
- package/dist/{chunk-HK2TAPQX.js → chunk-UUJ7A3CN.js} +56 -11
- package/dist/{chunk-EZ6GXQMP.mjs → chunk-UYN5WLHQ.mjs} +32 -24
- package/dist/{chunk-KFE7T7CN.js → chunk-V32X2OEO.js} +4 -1
- package/dist/{chunk-YFD6RD7P.mjs → chunk-V55ZONWZ.mjs} +7 -18
- package/dist/{chunk-XNORTTVQ.mjs → chunk-V667FK4C.mjs} +47 -1
- package/dist/{chunk-WCZGYU7M.js → chunk-VPNIZPIF.js} +142 -20
- package/dist/{chunk-F5HOHSFH.mjs → chunk-VVS2CQS4.mjs} +4 -3
- package/dist/chunk-VYFJ3LYD.js +90 -0
- package/dist/{chunk-D6AWPRGV.js → chunk-VYGI74MJ.js} +2 -0
- package/dist/chunk-W5RZPTFD.mjs +103 -0
- package/dist/{chunk-NAHD6ZRR.mjs → chunk-W6ZFHHD3.mjs} +10 -14
- package/dist/{chunk-PCGHIFIJ.js → chunk-WGNJHM34.js} +84 -6
- package/dist/{chunk-HSXB2ASL.mjs → chunk-WLRLKW2W.mjs} +93 -13
- package/dist/{chunk-KYQAAQKV.mjs → chunk-WOFQV2N7.mjs} +34 -7
- package/dist/{chunk-W2WGLETE.mjs → chunk-WOVUC5FQ.mjs} +72 -34
- package/dist/{chunk-665NGSV3.mjs → chunk-WPEFGEAK.mjs} +7 -11
- package/dist/chunk-WU2KCS6H.js +1096 -0
- package/dist/{chunk-XV5DEK27.js → chunk-XH4ZZ6KJ.js} +57 -20
- package/dist/{chunk-AFKNO6SF.js → chunk-XJXGVNNF.js} +39 -6
- package/dist/chunk-XMOYCYVK.js +768 -0
- package/dist/{chunk-KI35GUL5.js → chunk-XOLTA3IE.js} +130 -10
- package/dist/{chunk-I2BZURVP.js → chunk-XUOGT4HG.js} +2 -1
- package/dist/{chunk-NVJRZYES.mjs → chunk-XVUATQPD.mjs} +46 -11
- package/dist/chunk-XWE54AWW.mjs +1093 -0
- package/dist/{chunk-35VYCSVH.js → chunk-XXBMPKS7.js} +9 -9
- package/dist/{chunk-QK3KKTYV.js → chunk-XY4A73TK.js} +2 -9
- package/dist/{chunk-YYRJA6VQ.mjs → chunk-YIYLO6AG.mjs} +33 -14
- package/dist/chunk-YQRRW4ZR.mjs +87 -0
- package/dist/{chunk-W3Y22PMU.mjs → chunk-Z2ZECCGD.mjs} +3 -5
- package/dist/{chunk-AGQNHT65.mjs → chunk-Z4SG7REU.mjs} +49 -4
- package/dist/{chunk-NMGH5YTV.mjs → chunk-Z7ETXBOL.mjs} +6 -5
- package/dist/{chunk-CQPHZU3H.mjs → chunk-ZIOGRGN5.mjs} +41 -8
- package/dist/{chunk-I2B4CO22.mjs → chunk-ZMNX4SCS.mjs} +3 -10
- package/dist/{chunk-EPE6OOV7.js → chunk-ZOUJFFG4.js} +6 -6
- package/dist/{chunk-U5ABMOOV.js → chunk-ZSCOAOJJ.js} +20 -30
- package/dist/{chunk-OMYSFPX6.mjs → chunk-ZSQ5I2KL.mjs} +27 -30
- package/dist/{chunk-QNODDATK.mjs → chunk-ZWTC2CUB.mjs} +13 -31
- package/dist/components/ActivityFeed.d.mts +6 -6
- package/dist/components/ActivityFeed.d.ts +6 -6
- package/dist/components/ActivityFeed.js +5 -5
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.js +3 -4
- package/dist/components/Affix.mjs +1 -2
- package/dist/components/Alert.d.mts +2 -2
- package/dist/components/Alert.d.ts +2 -2
- package/dist/components/Alert.js +0 -1
- package/dist/components/Alert.mjs +0 -1
- package/dist/components/Anchor.d.mts +68 -3
- package/dist/components/Anchor.d.ts +68 -3
- package/dist/components/Anchor.js +8 -5
- package/dist/components/Anchor.mjs +1 -2
- package/dist/components/AnchorLink.d.mts +6 -67
- package/dist/components/AnchorLink.d.ts +6 -67
- package/dist/components/AnchorLink.js +5 -9
- package/dist/components/AnchorLink.mjs +7 -3
- package/dist/components/AreaChart.d.mts +21 -3
- package/dist/components/AreaChart.d.ts +21 -3
- package/dist/components/AreaChart.js +7 -8
- package/dist/components/AreaChart.mjs +5 -6
- package/dist/components/AutoComplete.d.mts +3 -3
- package/dist/components/AutoComplete.d.ts +3 -3
- package/dist/components/AutoComplete.js +3 -4
- package/dist/components/AutoComplete.mjs +1 -2
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +0 -1
- package/dist/components/Avatar.mjs +0 -1
- package/dist/components/AvatarGroup.js +4 -5
- package/dist/components/AvatarGroup.mjs +1 -2
- package/dist/components/BackTop.d.mts +2 -2
- package/dist/components/BackTop.d.ts +2 -2
- package/dist/components/BackTop.js +3 -4
- package/dist/components/BackTop.mjs +1 -2
- package/dist/components/Badge.d.mts +4 -4
- package/dist/components/Badge.d.ts +4 -4
- package/dist/components/Badge.js +0 -1
- package/dist/components/Badge.mjs +0 -1
- package/dist/components/BarChart.d.mts +3 -3
- package/dist/components/BarChart.d.ts +3 -3
- package/dist/components/BarChart.js +7 -8
- package/dist/components/BarChart.mjs +5 -6
- package/dist/components/Breadcrumb.d.mts +134 -3
- package/dist/components/Breadcrumb.d.ts +134 -3
- package/dist/components/Breadcrumb.js +8 -5
- package/dist/components/Breadcrumb.mjs +1 -2
- package/dist/components/BreadcrumbItem.d.mts +6 -135
- package/dist/components/BreadcrumbItem.d.ts +6 -135
- package/dist/components/BreadcrumbItem.js +5 -9
- package/dist/components/BreadcrumbItem.mjs +7 -3
- package/dist/components/Button.d.mts +6 -6
- package/dist/components/Button.d.ts +6 -6
- package/dist/components/Button.js +3 -4
- package/dist/components/Button.mjs +1 -2
- package/dist/components/ButtonGroup.js +4 -5
- package/dist/components/ButtonGroup.mjs +1 -2
- package/dist/components/Calendar.d.mts +1 -1
- package/dist/components/Calendar.d.ts +1 -1
- package/dist/components/Calendar.js +0 -1
- package/dist/components/Calendar.mjs +0 -1
- package/dist/components/Card.d.mts +3 -3
- package/dist/components/Card.d.ts +3 -3
- package/dist/components/Card.js +0 -1
- package/dist/components/Card.mjs +0 -1
- package/dist/components/Carousel.js +3 -4
- package/dist/components/Carousel.mjs +1 -2
- package/dist/components/Cascader.d.mts +1 -1
- package/dist/components/Cascader.d.ts +1 -1
- package/dist/components/Cascader.js +3 -4
- package/dist/components/Cascader.mjs +1 -2
- package/dist/components/ChartAxis.js +0 -1
- package/dist/components/ChartAxis.mjs +0 -1
- package/dist/components/ChartCanvas.d.mts +10 -1
- package/dist/components/ChartCanvas.d.ts +10 -1
- package/dist/components/ChartCanvas.js +3 -4
- package/dist/components/ChartCanvas.mjs +1 -2
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ChartGrid.js +0 -1
- package/dist/components/ChartGrid.mjs +0 -1
- package/dist/components/ChartLegend.js +3 -4
- package/dist/components/ChartLegend.mjs +1 -2
- package/dist/components/ChartSeries.js +0 -1
- package/dist/components/ChartSeries.mjs +0 -1
- package/dist/components/ChartTooltip.js +3 -4
- package/dist/components/ChartTooltip.mjs +1 -2
- package/dist/components/ChatWindow.d.mts +39 -3
- package/dist/components/ChatWindow.d.ts +39 -3
- package/dist/components/ChatWindow.js +5 -5
- package/dist/components/ChatWindow.mjs +3 -3
- package/dist/components/Checkbox.js +0 -1
- package/dist/components/Checkbox.mjs +0 -1
- package/dist/components/CheckboxGroup.d.mts +1 -1
- package/dist/components/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxGroup.js +0 -1
- package/dist/components/CheckboxGroup.mjs +0 -1
- package/dist/components/Code.js +3 -4
- package/dist/components/Code.mjs +1 -2
- package/dist/components/CodeEditor.d.mts +19 -3
- package/dist/components/CodeEditor.d.ts +19 -3
- package/dist/components/CodeEditor.js +3 -4
- package/dist/components/CodeEditor.mjs +1 -2
- package/dist/components/Col.js +3 -4
- package/dist/components/Col.mjs +2 -3
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/Collapse.js +0 -1
- package/dist/components/Collapse.mjs +0 -1
- package/dist/components/CollapsePanel.d.mts +1 -1
- package/dist/components/CollapsePanel.d.ts +1 -1
- package/dist/components/CollapsePanel.js +3 -4
- package/dist/components/CollapsePanel.mjs +1 -2
- package/dist/components/ColorPicker.d.mts +1 -1
- package/dist/components/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker.js +0 -1
- package/dist/components/ColorPicker.mjs +0 -1
- package/dist/components/CommentThread.d.mts +2 -2
- package/dist/components/CommentThread.d.ts +2 -2
- package/dist/components/CommentThread.js +4 -5
- package/dist/components/CommentThread.mjs +2 -3
- package/dist/components/ConfigProvider.d.mts +5 -4
- package/dist/components/ConfigProvider.d.ts +5 -4
- package/dist/components/ConfigProvider.js +5 -6
- package/dist/components/ConfigProvider.mjs +1 -2
- package/dist/components/Container.d.mts +8 -2
- package/dist/components/Container.d.ts +8 -2
- package/dist/components/Container.js +0 -1
- package/dist/components/Container.mjs +0 -1
- package/dist/components/Content.js +0 -1
- package/dist/components/Content.mjs +0 -1
- package/dist/components/CropUpload.d.mts +1 -1
- package/dist/components/CropUpload.d.ts +1 -1
- package/dist/components/CropUpload.js +7 -7
- package/dist/components/CropUpload.mjs +5 -5
- package/dist/components/DataTableWithToolbar.d.mts +12 -12
- package/dist/components/DataTableWithToolbar.d.ts +12 -12
- package/dist/components/DataTableWithToolbar.js +6 -8
- package/dist/components/DataTableWithToolbar.mjs +4 -6
- package/dist/components/DatePicker.d.mts +7 -7
- package/dist/components/DatePicker.d.ts +7 -7
- package/dist/components/DatePicker.js +3 -4
- package/dist/components/DatePicker.mjs +1 -2
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/Descriptions.js +0 -1
- package/dist/components/Descriptions.mjs +0 -1
- package/dist/components/Divider.d.mts +8 -1
- package/dist/components/Divider.d.ts +8 -1
- package/dist/components/Divider.js +0 -1
- package/dist/components/Divider.mjs +0 -1
- package/dist/components/DonutChart.d.mts +12 -3
- package/dist/components/DonutChart.d.ts +12 -3
- package/dist/components/DonutChart.js +8 -9
- package/dist/components/DonutChart.mjs +6 -7
- package/dist/components/Drawer.d.mts +5 -7
- package/dist/components/Drawer.d.ts +5 -7
- package/dist/components/Drawer.js +4 -5
- package/dist/components/Drawer.mjs +2 -3
- package/dist/components/Dropdown.d.mts +36 -4
- package/dist/components/Dropdown.d.ts +36 -4
- package/dist/components/Dropdown.js +9 -7
- package/dist/components/Dropdown.mjs +2 -4
- package/dist/components/DropdownItem.d.mts +1 -1
- package/dist/components/DropdownItem.d.ts +1 -1
- package/dist/components/DropdownItem.js +5 -7
- package/dist/components/DropdownItem.mjs +3 -5
- package/dist/components/DropdownMenu.d.mts +6 -36
- package/dist/components/DropdownMenu.d.ts +6 -36
- package/dist/components/DropdownMenu.js +6 -8
- package/dist/components/DropdownMenu.mjs +8 -2
- package/dist/components/Empty.js +0 -1
- package/dist/components/Empty.mjs +0 -1
- package/dist/components/FileManager.d.mts +1 -1
- package/dist/components/FileManager.d.ts +1 -1
- package/dist/components/FileManager.js +3 -4
- package/dist/components/FileManager.mjs +1 -2
- package/dist/components/FloatButton.d.mts +4 -4
- package/dist/components/FloatButton.d.ts +4 -4
- package/dist/components/FloatButton.js +0 -1
- package/dist/components/FloatButton.mjs +0 -1
- package/dist/components/Footer.js +0 -1
- package/dist/components/Footer.mjs +0 -1
- package/dist/components/Form.d.mts +19 -3
- package/dist/components/Form.d.ts +19 -3
- package/dist/components/Form.js +4 -5
- package/dist/components/Form.mjs +1 -2
- package/dist/components/FormItem.d.mts +12 -1
- package/dist/components/FormItem.d.ts +12 -1
- package/dist/components/FormItem.js +4 -5
- package/dist/components/FormItem.mjs +2 -3
- package/dist/components/FormWizard.d.mts +4 -4
- package/dist/components/FormWizard.d.ts +4 -4
- package/dist/components/FormWizard.js +6 -8
- package/dist/components/FormWizard.mjs +4 -6
- package/dist/components/FunnelChart.d.mts +12 -3
- package/dist/components/FunnelChart.d.ts +12 -3
- package/dist/components/FunnelChart.js +7 -8
- package/dist/components/FunnelChart.mjs +5 -6
- package/dist/components/GaugeChart.d.mts +11 -2
- package/dist/components/GaugeChart.d.ts +11 -2
- package/dist/components/GaugeChart.js +4 -5
- package/dist/components/GaugeChart.mjs +2 -3
- package/dist/components/Header.js +0 -1
- package/dist/components/Header.mjs +0 -1
- package/dist/components/HeatmapChart.d.mts +26 -2
- package/dist/components/HeatmapChart.d.ts +26 -2
- package/dist/components/HeatmapChart.js +6 -7
- package/dist/components/HeatmapChart.mjs +4 -5
- package/dist/components/Icon.js +0 -1
- package/dist/components/Icon.mjs +0 -1
- package/dist/components/Image.d.mts +2 -2
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/Image.js +5 -6
- package/dist/components/Image.mjs +2 -3
- package/dist/components/ImageCropper.js +3 -4
- package/dist/components/ImageCropper.mjs +1 -2
- package/dist/components/ImageGroup.js +5 -6
- package/dist/components/ImageGroup.mjs +2 -3
- package/dist/components/ImagePreview.js +4 -5
- package/dist/components/ImagePreview.mjs +1 -5
- package/dist/components/ImageViewer.js +3 -4
- package/dist/components/ImageViewer.mjs +1 -2
- package/dist/components/InfiniteScroll.d.mts +2 -2
- package/dist/components/InfiniteScroll.d.ts +2 -2
- package/dist/components/InfiniteScroll.js +3 -4
- package/dist/components/InfiniteScroll.mjs +1 -2
- package/dist/components/Input.d.mts +4 -4
- package/dist/components/Input.d.ts +4 -4
- package/dist/components/Input.js +0 -1
- package/dist/components/Input.mjs +0 -1
- package/dist/components/InputGroup.d.mts +1 -1
- package/dist/components/InputGroup.d.ts +1 -1
- package/dist/components/InputGroup.js +0 -1
- package/dist/components/InputGroup.mjs +0 -1
- package/dist/components/InputNumber.d.mts +2 -2
- package/dist/components/InputNumber.d.ts +2 -2
- package/dist/components/InputNumber.js +3 -4
- package/dist/components/InputNumber.mjs +1 -2
- package/dist/components/Kanban.d.mts +3 -3
- package/dist/components/Kanban.d.ts +3 -3
- package/dist/components/Kanban.js +5 -5
- package/dist/components/Kanban.mjs +3 -3
- package/dist/components/Layout.js +0 -1
- package/dist/components/Layout.mjs +0 -1
- package/dist/components/LineChart.d.mts +20 -2
- package/dist/components/LineChart.d.ts +20 -2
- package/dist/components/LineChart.js +7 -8
- package/dist/components/LineChart.mjs +5 -6
- package/dist/components/Link.d.mts +12 -3
- package/dist/components/Link.d.ts +12 -3
- package/dist/components/Link.js +0 -1
- package/dist/components/Link.mjs +0 -1
- package/dist/components/List.d.mts +67 -5
- package/dist/components/List.d.ts +67 -5
- package/dist/components/List.js +4 -4
- package/dist/components/List.mjs +2 -2
- package/dist/components/Loading.d.mts +22 -4
- package/dist/components/Loading.d.ts +22 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Loading.mjs +2 -2
- package/dist/components/Mentions.d.mts +3 -3
- package/dist/components/Mentions.d.ts +3 -3
- package/dist/components/Mentions.js +3 -4
- package/dist/components/Mentions.mjs +1 -2
- package/dist/components/Menu.d.mts +265 -4
- package/dist/components/Menu.d.ts +265 -4
- package/dist/components/Menu.js +16 -5
- package/dist/components/Menu.mjs +1 -2
- package/dist/components/MenuItem.d.mts +6 -95
- package/dist/components/MenuItem.d.ts +6 -95
- package/dist/components/MenuItem.js +5 -9
- package/dist/components/MenuItem.mjs +7 -3
- package/dist/components/MenuItemGroup.d.mts +6 -57
- package/dist/components/MenuItemGroup.d.ts +6 -57
- package/dist/components/MenuItemGroup.js +5 -8
- package/dist/components/MenuItemGroup.mjs +7 -2
- package/dist/components/Message.d.mts +4 -1
- package/dist/components/Message.d.ts +4 -1
- package/dist/components/Message.js +4 -5
- package/dist/components/Message.mjs +1 -2
- package/dist/components/Modal.d.mts +7 -9
- package/dist/components/Modal.d.ts +7 -9
- package/dist/components/Modal.js +5 -5
- package/dist/components/Modal.mjs +3 -3
- package/dist/components/Notification.d.mts +4 -1
- package/dist/components/Notification.d.ts +4 -1
- package/dist/components/Notification.js +4 -5
- package/dist/components/Notification.mjs +1 -2
- package/dist/components/NotificationCenter.d.mts +5 -5
- package/dist/components/NotificationCenter.d.ts +5 -5
- package/dist/components/NotificationCenter.js +9 -9
- package/dist/components/NotificationCenter.mjs +7 -7
- package/dist/components/Pagination.d.mts +30 -8
- package/dist/components/Pagination.d.ts +30 -8
- package/dist/components/Pagination.js +3 -4
- package/dist/components/Pagination.mjs +1 -2
- package/dist/components/PieChart.d.mts +12 -3
- package/dist/components/PieChart.d.ts +12 -3
- package/dist/components/PieChart.js +7 -8
- package/dist/components/PieChart.mjs +5 -6
- package/dist/components/Popconfirm.d.mts +4 -4
- package/dist/components/Popconfirm.d.ts +4 -4
- package/dist/components/Popconfirm.js +5 -6
- package/dist/components/Popconfirm.mjs +3 -4
- package/dist/components/Popover.d.mts +2 -2
- package/dist/components/Popover.d.ts +2 -2
- package/dist/components/Popover.js +5 -6
- package/dist/components/Popover.mjs +3 -4
- package/dist/components/PrintLayout.js +0 -1
- package/dist/components/PrintLayout.mjs +0 -1
- package/dist/components/Progress.d.mts +2 -2
- package/dist/components/Progress.d.ts +2 -2
- package/dist/components/Progress.js +0 -1
- package/dist/components/Progress.mjs +0 -1
- package/dist/components/QRCode.d.mts +1 -1
- package/dist/components/QRCode.d.ts +1 -1
- package/dist/components/QRCode.js +0 -1
- package/dist/components/QRCode.mjs +0 -1
- package/dist/components/RadarChart.d.mts +30 -3
- package/dist/components/RadarChart.d.ts +30 -3
- package/dist/components/RadarChart.js +7 -8
- package/dist/components/RadarChart.mjs +5 -6
- package/dist/components/Radio.js +0 -1
- package/dist/components/Radio.mjs +0 -1
- package/dist/components/RadioGroup.d.mts +1 -1
- package/dist/components/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup.js +0 -1
- package/dist/components/RadioGroup.mjs +0 -1
- package/dist/components/Rate.d.mts +1 -1
- package/dist/components/Rate.d.ts +1 -1
- package/dist/components/Rate.js +0 -1
- package/dist/components/Rate.mjs +0 -1
- package/dist/components/Resizable.d.mts +1 -1
- package/dist/components/Resizable.d.ts +1 -1
- package/dist/components/Resizable.js +3 -4
- package/dist/components/Resizable.mjs +1 -2
- package/dist/components/Result.js +0 -1
- package/dist/components/Result.mjs +0 -1
- package/dist/components/RichTextEditor.d.mts +22 -6
- package/dist/components/RichTextEditor.d.ts +22 -6
- package/dist/components/RichTextEditor.js +3 -4
- package/dist/components/RichTextEditor.mjs +1 -2
- package/dist/components/Row.d.mts +1 -1
- package/dist/components/Row.d.ts +1 -1
- package/dist/components/Row.js +3 -4
- package/dist/components/Row.mjs +1 -2
- package/dist/components/ScatterChart.d.mts +3 -3
- package/dist/components/ScatterChart.d.ts +3 -3
- package/dist/components/ScatterChart.js +7 -8
- package/dist/components/ScatterChart.mjs +5 -6
- package/dist/components/Segmented.d.mts +1 -1
- package/dist/components/Segmented.d.ts +1 -1
- package/dist/components/Segmented.js +3 -4
- package/dist/components/Segmented.mjs +1 -2
- package/dist/components/Select.d.mts +18 -3
- package/dist/components/Select.d.ts +18 -3
- package/dist/components/Select.js +3 -4
- package/dist/components/Select.mjs +1 -2
- package/dist/components/Sidebar.js +0 -1
- package/dist/components/Sidebar.mjs +0 -1
- package/dist/components/Skeleton.d.mts +2 -2
- package/dist/components/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton.js +0 -1
- package/dist/components/Skeleton.mjs +0 -1
- package/dist/components/Slider.d.mts +1 -1
- package/dist/components/Slider.d.ts +1 -1
- package/dist/components/Slider.js +0 -1
- package/dist/components/Slider.mjs +0 -1
- package/dist/components/Space.d.mts +1 -1
- package/dist/components/Space.d.ts +1 -1
- package/dist/components/Space.js +0 -1
- package/dist/components/Space.mjs +0 -1
- package/dist/components/Splitter.d.mts +2 -2
- package/dist/components/Splitter.d.ts +2 -2
- package/dist/components/Splitter.js +3 -4
- package/dist/components/Splitter.mjs +1 -2
- package/dist/components/Statistic.d.mts +18 -0
- package/dist/components/Statistic.d.ts +18 -0
- package/dist/components/Statistic.js +3 -4
- package/dist/components/Statistic.mjs +1 -2
- package/dist/components/Stepper.d.mts +1 -1
- package/dist/components/Stepper.d.ts +1 -1
- package/dist/components/Stepper.js +3 -4
- package/dist/components/Stepper.mjs +1 -2
- package/dist/components/Steps.d.mts +139 -2
- package/dist/components/Steps.d.ts +139 -2
- package/dist/components/Steps.js +8 -5
- package/dist/components/Steps.mjs +1 -2
- package/dist/components/StepsItem.d.mts +6 -141
- package/dist/components/StepsItem.d.ts +6 -141
- package/dist/components/StepsItem.js +5 -9
- package/dist/components/StepsItem.mjs +7 -3
- package/dist/components/SubMenu.d.mts +6 -117
- package/dist/components/SubMenu.d.ts +6 -117
- package/dist/components/SubMenu.js +5 -9
- package/dist/components/SubMenu.mjs +7 -3
- package/dist/components/SunburstChart.d.mts +11 -2
- package/dist/components/SunburstChart.d.ts +11 -2
- package/dist/components/SunburstChart.js +7 -8
- package/dist/components/SunburstChart.mjs +5 -6
- package/dist/components/Switch.d.mts +1 -1
- package/dist/components/Switch.d.ts +1 -1
- package/dist/components/Switch.js +3 -4
- package/dist/components/Switch.mjs +1 -2
- package/dist/components/TabPane.d.mts +6 -169
- package/dist/components/TabPane.d.ts +6 -169
- package/dist/components/TabPane.js +5 -9
- package/dist/components/TabPane.mjs +7 -3
- package/dist/components/Table.d.mts +274 -395
- package/dist/components/Table.d.ts +274 -395
- package/dist/components/Table.js +3 -4
- package/dist/components/Table.mjs +1 -2
- package/dist/components/Tabs.d.mts +168 -2
- package/dist/components/Tabs.d.ts +168 -2
- package/dist/components/Tabs.js +8 -5
- package/dist/components/Tabs.mjs +1 -2
- package/dist/components/Tag.d.mts +2 -2
- package/dist/components/Tag.d.ts +2 -2
- package/dist/components/Tag.js +0 -1
- package/dist/components/Tag.mjs +0 -1
- package/dist/components/TaskBoard.d.mts +53 -2
- package/dist/components/TaskBoard.d.ts +53 -2
- package/dist/components/TaskBoard.js +4 -5
- package/dist/components/TaskBoard.mjs +2 -3
- package/dist/components/Text.d.mts +3 -3
- package/dist/components/Text.d.ts +3 -3
- package/dist/components/Text.js +0 -1
- package/dist/components/Text.mjs +0 -1
- package/dist/components/Textarea.d.mts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/Textarea.js +0 -1
- package/dist/components/Textarea.mjs +0 -1
- package/dist/components/TimePicker.d.mts +4 -4
- package/dist/components/TimePicker.d.ts +4 -4
- package/dist/components/TimePicker.js +3 -4
- package/dist/components/TimePicker.mjs +1 -2
- package/dist/components/Timeline.d.mts +2 -2
- package/dist/components/Timeline.d.ts +2 -2
- package/dist/components/Timeline.js +0 -1
- package/dist/components/Timeline.mjs +0 -1
- package/dist/components/Tooltip.d.mts +2 -2
- package/dist/components/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip.js +5 -6
- package/dist/components/Tooltip.mjs +3 -4
- package/dist/components/Tour.d.mts +4 -4
- package/dist/components/Tour.d.ts +4 -4
- package/dist/components/Tour.js +0 -1
- package/dist/components/Tour.mjs +0 -1
- package/dist/components/Transfer.d.mts +1 -1
- package/dist/components/Transfer.d.ts +1 -1
- package/dist/components/Transfer.js +3 -4
- package/dist/components/Transfer.mjs +1 -2
- package/dist/components/Tree.d.mts +51 -2
- package/dist/components/Tree.d.ts +51 -2
- package/dist/components/Tree.js +4 -4
- package/dist/components/Tree.mjs +2 -2
- package/dist/components/TreeMapChart.d.mts +11 -2
- package/dist/components/TreeMapChart.d.ts +11 -2
- package/dist/components/TreeMapChart.js +7 -8
- package/dist/components/TreeMapChart.mjs +5 -6
- package/dist/components/TreeSelect.d.mts +1 -1
- package/dist/components/TreeSelect.d.ts +1 -1
- package/dist/components/TreeSelect.js +3 -4
- package/dist/components/TreeSelect.mjs +1 -2
- package/dist/components/Upload.d.mts +5 -5
- package/dist/components/Upload.d.ts +5 -5
- package/dist/components/Upload.js +4 -5
- package/dist/components/Upload.mjs +2 -3
- package/dist/components/VirtualList.d.mts +29 -0
- package/dist/components/VirtualList.d.ts +29 -0
- package/dist/components/VirtualList.js +3 -4
- package/dist/components/VirtualList.mjs +1 -2
- package/dist/components/VirtualTable.d.mts +3 -3
- package/dist/components/VirtualTable.d.ts +3 -3
- package/dist/components/VirtualTable.js +3 -4
- package/dist/components/VirtualTable.mjs +1 -2
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/components/Watermark.js +3 -4
- package/dist/components/Watermark.mjs +1 -2
- package/dist/index.d.mts +36 -24
- package/dist/index.d.ts +36 -24
- package/dist/index.js +340 -216
- package/dist/index.mjs +224 -102
- package/package.json +13 -8
- package/dist/chunk-33C5E3AQ.mjs +0 -328
- package/dist/chunk-3AM6WEUE.mjs +0 -174
- package/dist/chunk-53M2BTB5.mjs +0 -22
- 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-7UU4PULK.mjs +0 -138
- package/dist/chunk-AN3HKOCS.mjs +0 -50
- package/dist/chunk-BDMWFNTC.js +0 -443
- package/dist/chunk-BMW2Z3G3.mjs +0 -94
- package/dist/chunk-BNIUWON3.js +0 -243
- package/dist/chunk-CG3AMK5U.mjs +0 -38
- package/dist/chunk-CXJUEG75.js +0 -331
- package/dist/chunk-EBQ4WSQS.js +0 -97
- package/dist/chunk-ELEAQEMV.mjs +0 -61
- package/dist/chunk-ESALMEHU.js +0 -343
- 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-JHY57P4P.mjs +0 -69
- package/dist/chunk-JSIQIWYP.js +0 -41
- package/dist/chunk-N5I5Y5JG.js +0 -53
- package/dist/chunk-NOTJRUAK.js +0 -142
- package/dist/chunk-O2SABM5H.js +0 -178
- package/dist/chunk-PICYE2CM.js +0 -176
- package/dist/chunk-PNKVD2UK.js +0 -26
- package/dist/chunk-TT5LWQIZ.js +0 -1097
- package/dist/chunk-TTDBR2B4.mjs +0 -340
- package/dist/chunk-U6WHPSWN.mjs +0 -83
- package/dist/chunk-VTLTKTCK.js +0 -87
- package/dist/chunk-XA5QMUZX.mjs +0 -440
- package/dist/chunk-XCJONKFL.mjs +0 -173
- package/dist/chunk-XP5M2GK7.mjs +0 -57
- package/dist/chunk-YUEBMBOH.mjs +0 -103
- package/dist/chunk-ZUVR5UZL.mjs +0 -264
- package/dist/chunk-ZXR4DAAO.mjs +0 -240
package/dist/chunk-HTG6ISVH.mjs
DELETED
|
@@ -1,1094 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, h } from 'vue';
|
|
2
|
-
import { getSpinnerSVG, getFixedColumnOffsets, filterDataAdvanced, filterData, sortData, paginateData, getRowKey, calculatePagination, getFixedVirtualRange, groupDataByColumn, classNames, tableBaseClasses, getTableWrapperClasses, tableExportButtonClasses, tableLoadingOverlayClasses, getExpandIconCellClasses, getCheckboxCellClasses, getTableHeaderCellClasses, getTableHeaderClasses, tableEmptyStateClasses, tableGroupHeaderClasses, getGroupHeaderCellClasses, getTableCellClasses, tableSummaryRowClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, exportTableToCsv, downloadCsv, getLoadingOverlaySpinnerClasses, normalizeSvgAttrs, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, icon16ViewBox, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, editableCellInputClasses, getEditableCellClasses, getTableRowClasses, getExpandedRowClasses, getExpandedRowContentClasses, getExpandIconClasses, expandChevronIcon16PathD } from '@expcat/tigercat-core';
|
|
3
|
-
|
|
4
|
-
// src/components/Table.ts
|
|
5
|
-
var spinnerSvg = getSpinnerSVG("spinner");
|
|
6
|
-
var SortIcon = (direction) => {
|
|
7
|
-
const active = direction !== null;
|
|
8
|
-
const pathD = direction === "asc" ? sortAscIcon16PathD : direction === "desc" ? sortDescIcon16PathD : sortBothIcon16PathD;
|
|
9
|
-
return h(
|
|
10
|
-
"svg",
|
|
11
|
-
{
|
|
12
|
-
class: getSortIconClasses(active),
|
|
13
|
-
width: "16",
|
|
14
|
-
height: "16",
|
|
15
|
-
viewBox: icon16ViewBox,
|
|
16
|
-
fill: "currentColor"
|
|
17
|
-
},
|
|
18
|
-
[h("path", { d: pathD })]
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
var LockIcon = (locked) => {
|
|
22
|
-
return h(
|
|
23
|
-
"svg",
|
|
24
|
-
{
|
|
25
|
-
width: "14",
|
|
26
|
-
height: "14",
|
|
27
|
-
viewBox: icon24ViewBox,
|
|
28
|
-
fill: "currentColor",
|
|
29
|
-
"aria-hidden": "true"
|
|
30
|
-
},
|
|
31
|
-
[h("path", { d: locked ? lockClosedIcon24PathD : lockOpenIcon24PathD })]
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
var ExpandIcon = (expanded) => {
|
|
35
|
-
return h(
|
|
36
|
-
"svg",
|
|
37
|
-
{
|
|
38
|
-
class: getExpandIconClasses(expanded),
|
|
39
|
-
width: "16",
|
|
40
|
-
height: "16",
|
|
41
|
-
viewBox: icon16ViewBox,
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
"aria-hidden": "true"
|
|
44
|
-
},
|
|
45
|
-
[h("path", { d: expandChevronIcon16PathD })]
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
var LoadingSpinner = () => {
|
|
49
|
-
return h(
|
|
50
|
-
"svg",
|
|
51
|
-
{
|
|
52
|
-
class: getLoadingOverlaySpinnerClasses(),
|
|
53
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
-
fill: "none",
|
|
55
|
-
viewBox: spinnerSvg.viewBox
|
|
56
|
-
},
|
|
57
|
-
spinnerSvg.elements.map((el) => h(el.type, normalizeSvgAttrs(el.attrs)))
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
var Table = defineComponent({
|
|
61
|
-
name: "TigerTable",
|
|
62
|
-
props: {
|
|
63
|
-
/**
|
|
64
|
-
* Table columns configuration
|
|
65
|
-
*/
|
|
66
|
-
columns: {
|
|
67
|
-
type: Array,
|
|
68
|
-
required: true
|
|
69
|
-
},
|
|
70
|
-
/**
|
|
71
|
-
* Whether to show a lock button in each column header.
|
|
72
|
-
*/
|
|
73
|
-
columnLockable: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: false
|
|
76
|
-
},
|
|
77
|
-
/**
|
|
78
|
-
* Table data source
|
|
79
|
-
*/
|
|
80
|
-
dataSource: {
|
|
81
|
-
type: Array,
|
|
82
|
-
default: () => []
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Controlled sort state.
|
|
86
|
-
*/
|
|
87
|
-
sort: {
|
|
88
|
-
type: Object
|
|
89
|
-
},
|
|
90
|
-
/**
|
|
91
|
-
* Default sort state for uncontrolled mode.
|
|
92
|
-
*/
|
|
93
|
-
defaultSort: {
|
|
94
|
-
type: Object,
|
|
95
|
-
default: () => ({
|
|
96
|
-
key: null,
|
|
97
|
-
direction: null
|
|
98
|
-
})
|
|
99
|
-
},
|
|
100
|
-
/**
|
|
101
|
-
* Controlled filters.
|
|
102
|
-
*/
|
|
103
|
-
filters: {
|
|
104
|
-
type: Object
|
|
105
|
-
},
|
|
106
|
-
/**
|
|
107
|
-
* Default filters for uncontrolled mode.
|
|
108
|
-
*/
|
|
109
|
-
defaultFilters: {
|
|
110
|
-
type: Object,
|
|
111
|
-
default: () => ({})
|
|
112
|
-
},
|
|
113
|
-
/**
|
|
114
|
-
* Table size
|
|
115
|
-
*/
|
|
116
|
-
size: {
|
|
117
|
-
type: String,
|
|
118
|
-
default: "md"
|
|
119
|
-
},
|
|
120
|
-
/**
|
|
121
|
-
* Whether to show border
|
|
122
|
-
*/
|
|
123
|
-
bordered: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: false
|
|
126
|
-
},
|
|
127
|
-
/**
|
|
128
|
-
* Whether to show striped rows
|
|
129
|
-
*/
|
|
130
|
-
striped: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: false
|
|
133
|
-
},
|
|
134
|
-
/**
|
|
135
|
-
* Whether to highlight row on hover
|
|
136
|
-
*/
|
|
137
|
-
hoverable: {
|
|
138
|
-
type: Boolean,
|
|
139
|
-
default: true
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* Loading state
|
|
143
|
-
*/
|
|
144
|
-
loading: {
|
|
145
|
-
type: Boolean,
|
|
146
|
-
default: false
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* Empty state text
|
|
150
|
-
*/
|
|
151
|
-
emptyText: {
|
|
152
|
-
type: String,
|
|
153
|
-
default: "No data"
|
|
154
|
-
},
|
|
155
|
-
/**
|
|
156
|
-
* Pagination configuration
|
|
157
|
-
*/
|
|
158
|
-
pagination: {
|
|
159
|
-
type: [Object, Boolean],
|
|
160
|
-
default: () => ({
|
|
161
|
-
current: 1,
|
|
162
|
-
pageSize: 10,
|
|
163
|
-
total: 0,
|
|
164
|
-
pageSizeOptions: [10, 20, 50, 100],
|
|
165
|
-
showSizeChanger: true,
|
|
166
|
-
showTotal: true
|
|
167
|
-
})
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* Row selection configuration
|
|
171
|
-
*/
|
|
172
|
-
rowSelection: {
|
|
173
|
-
type: Object
|
|
174
|
-
},
|
|
175
|
-
/**
|
|
176
|
-
* Row expansion configuration
|
|
177
|
-
*/
|
|
178
|
-
expandable: {
|
|
179
|
-
type: Object
|
|
180
|
-
},
|
|
181
|
-
/**
|
|
182
|
-
* Function to get row key
|
|
183
|
-
*/
|
|
184
|
-
rowKey: {
|
|
185
|
-
type: [String, Function],
|
|
186
|
-
default: "id"
|
|
187
|
-
},
|
|
188
|
-
/**
|
|
189
|
-
* Custom row class name
|
|
190
|
-
*/
|
|
191
|
-
rowClassName: {
|
|
192
|
-
type: [String, Function]
|
|
193
|
-
},
|
|
194
|
-
/**
|
|
195
|
-
* Whether table head is sticky
|
|
196
|
-
*/
|
|
197
|
-
stickyHeader: {
|
|
198
|
-
type: Boolean,
|
|
199
|
-
default: false
|
|
200
|
-
},
|
|
201
|
-
/**
|
|
202
|
-
* Max height for scrollable table
|
|
203
|
-
*/
|
|
204
|
-
maxHeight: {
|
|
205
|
-
type: [String, Number]
|
|
206
|
-
},
|
|
207
|
-
/**
|
|
208
|
-
* Table layout algorithm
|
|
209
|
-
*/
|
|
210
|
-
tableLayout: {
|
|
211
|
-
type: String,
|
|
212
|
-
default: "auto"
|
|
213
|
-
},
|
|
214
|
-
// --- v0.6.0 props ---
|
|
215
|
-
virtual: { type: Boolean, default: false },
|
|
216
|
-
virtualHeight: { type: Number, default: 400 },
|
|
217
|
-
virtualItemHeight: { type: Number, default: 40 },
|
|
218
|
-
editable: { type: Boolean, default: false },
|
|
219
|
-
editableCells: { type: Object },
|
|
220
|
-
filterMode: { type: String, default: "basic" },
|
|
221
|
-
advancedFilterRules: { type: Array, default: () => [] },
|
|
222
|
-
columnDraggable: { type: Boolean, default: false },
|
|
223
|
-
summaryRow: { type: Object },
|
|
224
|
-
groupBy: { type: String },
|
|
225
|
-
exportable: { type: Boolean, default: false },
|
|
226
|
-
exportFilename: { type: String, default: "export" }
|
|
227
|
-
},
|
|
228
|
-
emits: [
|
|
229
|
-
"change",
|
|
230
|
-
"row-click",
|
|
231
|
-
"selection-change",
|
|
232
|
-
"sort-change",
|
|
233
|
-
"filter-change",
|
|
234
|
-
"page-change",
|
|
235
|
-
"expand-change",
|
|
236
|
-
"cell-change",
|
|
237
|
-
"column-order-change",
|
|
238
|
-
"export"
|
|
239
|
-
],
|
|
240
|
-
setup(props, { emit, slots }) {
|
|
241
|
-
const paginationConfig = computed(() => {
|
|
242
|
-
return props.pagination !== false && typeof props.pagination === "object" ? props.pagination : null;
|
|
243
|
-
});
|
|
244
|
-
const isSortControlled = computed(() => props.sort !== void 0);
|
|
245
|
-
const isFiltersControlled = computed(() => props.filters !== void 0);
|
|
246
|
-
computed(() => paginationConfig.value?.current !== void 0);
|
|
247
|
-
computed(() => paginationConfig.value?.pageSize !== void 0);
|
|
248
|
-
const isSelectionControlled = computed(() => props.rowSelection?.selectedRowKeys !== void 0);
|
|
249
|
-
const isExpandControlled = computed(() => props.expandable?.expandedRowKeys !== void 0);
|
|
250
|
-
const uncontrolledSortState = ref(props.defaultSort);
|
|
251
|
-
const uncontrolledFilterState = ref(props.defaultFilters);
|
|
252
|
-
const uncontrolledCurrentPage = ref(
|
|
253
|
-
paginationConfig.value?.defaultCurrent ?? paginationConfig.value?.current ?? 1
|
|
254
|
-
);
|
|
255
|
-
const uncontrolledCurrentPageSize = ref(
|
|
256
|
-
paginationConfig.value?.defaultPageSize ?? paginationConfig.value?.pageSize ?? 10
|
|
257
|
-
);
|
|
258
|
-
const uncontrolledSelectedRowKeys = ref(
|
|
259
|
-
props.rowSelection?.defaultSelectedRowKeys ?? props.rowSelection?.selectedRowKeys ?? []
|
|
260
|
-
);
|
|
261
|
-
const uncontrolledExpandedRowKeys = ref(
|
|
262
|
-
props.expandable?.defaultExpandedRowKeys ?? props.expandable?.expandedRowKeys ?? []
|
|
263
|
-
);
|
|
264
|
-
const sortState = computed(() => props.sort ?? uncontrolledSortState.value);
|
|
265
|
-
const filterState = computed(() => props.filters ?? uncontrolledFilterState.value);
|
|
266
|
-
const currentPage = computed(() => {
|
|
267
|
-
return paginationConfig.value?.current ?? uncontrolledCurrentPage.value;
|
|
268
|
-
});
|
|
269
|
-
const currentPageSize = computed(() => {
|
|
270
|
-
return paginationConfig.value?.pageSize ?? uncontrolledCurrentPageSize.value;
|
|
271
|
-
});
|
|
272
|
-
const selectedRowKeys = computed(() => {
|
|
273
|
-
return props.rowSelection?.selectedRowKeys ?? uncontrolledSelectedRowKeys.value;
|
|
274
|
-
});
|
|
275
|
-
const expandedRowKeys = computed(() => {
|
|
276
|
-
return props.expandable?.expandedRowKeys ?? uncontrolledExpandedRowKeys.value;
|
|
277
|
-
});
|
|
278
|
-
watch(
|
|
279
|
-
() => props.sort,
|
|
280
|
-
(next) => {
|
|
281
|
-
if (next !== void 0) {
|
|
282
|
-
uncontrolledSortState.value = next;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
);
|
|
286
|
-
watch(
|
|
287
|
-
() => props.filters,
|
|
288
|
-
(next) => {
|
|
289
|
-
if (next !== void 0) {
|
|
290
|
-
uncontrolledFilterState.value = next;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
watch(
|
|
295
|
-
() => paginationConfig.value?.current,
|
|
296
|
-
(next) => {
|
|
297
|
-
if (next !== void 0) {
|
|
298
|
-
uncontrolledCurrentPage.value = next;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
);
|
|
302
|
-
watch(
|
|
303
|
-
() => paginationConfig.value?.pageSize,
|
|
304
|
-
(next) => {
|
|
305
|
-
if (next !== void 0) {
|
|
306
|
-
uncontrolledCurrentPageSize.value = next;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
watch(
|
|
311
|
-
() => props.rowSelection?.selectedRowKeys,
|
|
312
|
-
(next) => {
|
|
313
|
-
if (next !== void 0) {
|
|
314
|
-
uncontrolledSelectedRowKeys.value = next;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
watch(
|
|
319
|
-
() => props.expandable?.expandedRowKeys,
|
|
320
|
-
(next) => {
|
|
321
|
-
if (next !== void 0) {
|
|
322
|
-
uncontrolledExpandedRowKeys.value = next;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
const fixedOverrides = ref({});
|
|
327
|
-
const displayColumns = computed(() => {
|
|
328
|
-
return props.columns.map((column) => {
|
|
329
|
-
const hasOverride = column.key in fixedOverrides.value;
|
|
330
|
-
return {
|
|
331
|
-
...column,
|
|
332
|
-
fixed: hasOverride ? fixedOverrides.value[column.key] : column.fixed
|
|
333
|
-
};
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
const fixedColumnsInfo = computed(() => {
|
|
337
|
-
return getFixedColumnOffsets(displayColumns.value);
|
|
338
|
-
});
|
|
339
|
-
const columnByKey = computed(() => {
|
|
340
|
-
const map = {};
|
|
341
|
-
for (const column of displayColumns.value) {
|
|
342
|
-
map[column.key] = column;
|
|
343
|
-
}
|
|
344
|
-
return map;
|
|
345
|
-
});
|
|
346
|
-
function toggleColumnLock(columnKey) {
|
|
347
|
-
const original = props.columns.find((c) => c.key === columnKey)?.fixed;
|
|
348
|
-
const hasOverride = columnKey in fixedOverrides.value;
|
|
349
|
-
const current = hasOverride ? fixedOverrides.value[columnKey] : original;
|
|
350
|
-
const isLocked = current === "left" || current === "right";
|
|
351
|
-
fixedOverrides.value[columnKey] = isLocked ? false : "left";
|
|
352
|
-
}
|
|
353
|
-
const processedData = computed(() => {
|
|
354
|
-
let data = props.dataSource;
|
|
355
|
-
if (props.filterMode === "advanced" && props.advancedFilterRules.length > 0) {
|
|
356
|
-
data = filterDataAdvanced(data, props.advancedFilterRules);
|
|
357
|
-
} else {
|
|
358
|
-
data = filterData(data, filterState.value);
|
|
359
|
-
}
|
|
360
|
-
if (sortState.value.key && sortState.value.direction) {
|
|
361
|
-
const column = columnByKey.value[sortState.value.key];
|
|
362
|
-
data = sortData(data, sortState.value.key, sortState.value.direction, column?.sortFn);
|
|
363
|
-
}
|
|
364
|
-
return data;
|
|
365
|
-
});
|
|
366
|
-
const paginatedData = computed(() => {
|
|
367
|
-
if (props.pagination === false) {
|
|
368
|
-
return processedData.value;
|
|
369
|
-
}
|
|
370
|
-
return paginateData(processedData.value, currentPage.value, currentPageSize.value);
|
|
371
|
-
});
|
|
372
|
-
const paginatedRowKeys = computed(() => {
|
|
373
|
-
return paginatedData.value.map((record, index) => getRowKey(record, props.rowKey, index));
|
|
374
|
-
});
|
|
375
|
-
const selectedRowKeySet = computed(() => {
|
|
376
|
-
return new Set(selectedRowKeys.value);
|
|
377
|
-
});
|
|
378
|
-
const expandedRowKeySet = computed(() => {
|
|
379
|
-
return new Set(expandedRowKeys.value);
|
|
380
|
-
});
|
|
381
|
-
const totalColumnCount = computed(() => {
|
|
382
|
-
let count = displayColumns.value.length;
|
|
383
|
-
if (props.rowSelection) count += 1;
|
|
384
|
-
if (props.expandable) count += 1;
|
|
385
|
-
return count;
|
|
386
|
-
});
|
|
387
|
-
const paginationInfo = computed(() => {
|
|
388
|
-
if (props.pagination === false) {
|
|
389
|
-
return null;
|
|
390
|
-
}
|
|
391
|
-
const total = processedData.value.length;
|
|
392
|
-
return calculatePagination(total, currentPage.value, currentPageSize.value);
|
|
393
|
-
});
|
|
394
|
-
function handleSort(columnKey) {
|
|
395
|
-
const column = displayColumns.value.find((col) => col.key === columnKey);
|
|
396
|
-
if (!column || !column.sortable) {
|
|
397
|
-
return;
|
|
398
|
-
}
|
|
399
|
-
let newDirection = "asc";
|
|
400
|
-
if (sortState.value.key === columnKey) {
|
|
401
|
-
if (sortState.value.direction === "asc") {
|
|
402
|
-
newDirection = "desc";
|
|
403
|
-
} else if (sortState.value.direction === "desc") {
|
|
404
|
-
newDirection = null;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
const nextSortState = {
|
|
408
|
-
key: newDirection ? columnKey : null,
|
|
409
|
-
direction: newDirection
|
|
410
|
-
};
|
|
411
|
-
if (!isSortControlled.value) {
|
|
412
|
-
uncontrolledSortState.value = nextSortState;
|
|
413
|
-
}
|
|
414
|
-
emit("sort-change", nextSortState);
|
|
415
|
-
emit("change", {
|
|
416
|
-
sort: nextSortState,
|
|
417
|
-
filters: filterState.value,
|
|
418
|
-
pagination: props.pagination !== false ? {
|
|
419
|
-
current: currentPage.value,
|
|
420
|
-
pageSize: currentPageSize.value
|
|
421
|
-
} : null
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
function handleFilter(columnKey, value) {
|
|
425
|
-
const nextFilterState = {
|
|
426
|
-
...filterState.value,
|
|
427
|
-
[columnKey]: value
|
|
428
|
-
};
|
|
429
|
-
if (!isFiltersControlled.value) {
|
|
430
|
-
uncontrolledFilterState.value = nextFilterState;
|
|
431
|
-
}
|
|
432
|
-
uncontrolledCurrentPage.value = 1;
|
|
433
|
-
emit("filter-change", nextFilterState);
|
|
434
|
-
emit("change", {
|
|
435
|
-
sort: sortState.value,
|
|
436
|
-
filters: nextFilterState,
|
|
437
|
-
pagination: props.pagination !== false ? {
|
|
438
|
-
current: 1,
|
|
439
|
-
pageSize: currentPageSize.value
|
|
440
|
-
} : null
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
function handlePageChange(page) {
|
|
444
|
-
uncontrolledCurrentPage.value = page;
|
|
445
|
-
emit("page-change", { current: page, pageSize: currentPageSize.value });
|
|
446
|
-
emit("change", {
|
|
447
|
-
sort: sortState.value,
|
|
448
|
-
filters: filterState.value,
|
|
449
|
-
pagination: {
|
|
450
|
-
current: page,
|
|
451
|
-
pageSize: currentPageSize.value
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
function handlePageSizeChange(pageSize) {
|
|
456
|
-
uncontrolledCurrentPageSize.value = pageSize;
|
|
457
|
-
uncontrolledCurrentPage.value = 1;
|
|
458
|
-
emit("page-change", { current: 1, pageSize });
|
|
459
|
-
emit("change", {
|
|
460
|
-
sort: sortState.value,
|
|
461
|
-
filters: filterState.value,
|
|
462
|
-
pagination: {
|
|
463
|
-
current: 1,
|
|
464
|
-
pageSize
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
function handleRowClick(record, index) {
|
|
469
|
-
emit("row-click", record, index);
|
|
470
|
-
if (props.expandable?.expandRowByClick) {
|
|
471
|
-
const key = getRowKey(record, props.rowKey, index);
|
|
472
|
-
const isExpandable = props.expandable?.rowExpandable ? props.expandable.rowExpandable(record) : true;
|
|
473
|
-
if (isExpandable) {
|
|
474
|
-
handleToggleExpand(key, record);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
function handleToggleExpand(key, record) {
|
|
479
|
-
const isExpanded = expandedRowKeySet.value.has(key);
|
|
480
|
-
const newKeys = isExpanded ? expandedRowKeys.value.filter((k) => k !== key) : [...expandedRowKeys.value, key];
|
|
481
|
-
if (!isExpandControlled.value) {
|
|
482
|
-
uncontrolledExpandedRowKeys.value = newKeys;
|
|
483
|
-
}
|
|
484
|
-
emit("expand-change", newKeys, record, !isExpanded);
|
|
485
|
-
}
|
|
486
|
-
function handleSelectRow(key, checked) {
|
|
487
|
-
let newKeys;
|
|
488
|
-
if (props.rowSelection?.type === "radio") {
|
|
489
|
-
newKeys = checked ? [key] : [];
|
|
490
|
-
} else {
|
|
491
|
-
if (checked) {
|
|
492
|
-
newKeys = [...selectedRowKeys.value, key];
|
|
493
|
-
} else {
|
|
494
|
-
newKeys = selectedRowKeys.value.filter((k) => k !== key);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
if (!isSelectionControlled.value) {
|
|
498
|
-
uncontrolledSelectedRowKeys.value = newKeys;
|
|
499
|
-
}
|
|
500
|
-
emit("selection-change", newKeys);
|
|
501
|
-
}
|
|
502
|
-
function handleSelectAll(checked) {
|
|
503
|
-
if (checked) {
|
|
504
|
-
const nextKeys = paginatedRowKeys.value;
|
|
505
|
-
if (!isSelectionControlled.value) {
|
|
506
|
-
uncontrolledSelectedRowKeys.value = nextKeys;
|
|
507
|
-
}
|
|
508
|
-
emit("selection-change", nextKeys);
|
|
509
|
-
} else {
|
|
510
|
-
if (!isSelectionControlled.value) {
|
|
511
|
-
uncontrolledSelectedRowKeys.value = [];
|
|
512
|
-
}
|
|
513
|
-
emit("selection-change", []);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
const allSelected = computed(() => {
|
|
517
|
-
if (paginatedRowKeys.value.length === 0) {
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
|
-
return paginatedRowKeys.value.every((key) => selectedRowKeySet.value.has(key));
|
|
521
|
-
});
|
|
522
|
-
const someSelected = computed(() => {
|
|
523
|
-
return selectedRowKeys.value.length > 0 && !allSelected.value;
|
|
524
|
-
});
|
|
525
|
-
const editingCell = ref(null);
|
|
526
|
-
const editingValue = ref("");
|
|
527
|
-
function isCellEditable(columnKey, rowIndex) {
|
|
528
|
-
if (!props.editable) return false;
|
|
529
|
-
if (!props.editableCells) return true;
|
|
530
|
-
return !!props.editableCells.get(columnKey)?.has(rowIndex);
|
|
531
|
-
}
|
|
532
|
-
function startEditing(rowIndex, columnKey, currentValue) {
|
|
533
|
-
editingCell.value = { rowIndex, columnKey };
|
|
534
|
-
editingValue.value = String(currentValue ?? "");
|
|
535
|
-
}
|
|
536
|
-
function commitEdit() {
|
|
537
|
-
if (editingCell.value) {
|
|
538
|
-
emit(
|
|
539
|
-
"cell-change",
|
|
540
|
-
editingCell.value.rowIndex,
|
|
541
|
-
editingCell.value.columnKey,
|
|
542
|
-
editingValue.value
|
|
543
|
-
);
|
|
544
|
-
editingCell.value = null;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
function cancelEdit() {
|
|
548
|
-
editingCell.value = null;
|
|
549
|
-
}
|
|
550
|
-
function handleExport() {
|
|
551
|
-
const csv = exportTableToCsv(displayColumns.value, processedData.value);
|
|
552
|
-
downloadCsv(csv, props.exportFilename);
|
|
553
|
-
emit("export", csv);
|
|
554
|
-
}
|
|
555
|
-
const dragColumnKey = ref(null);
|
|
556
|
-
function handleDragStart(columnKey) {
|
|
557
|
-
dragColumnKey.value = columnKey;
|
|
558
|
-
}
|
|
559
|
-
function handleDrop(targetKey) {
|
|
560
|
-
if (!dragColumnKey.value || dragColumnKey.value === targetKey) return;
|
|
561
|
-
const cols = [...displayColumns.value];
|
|
562
|
-
const fromIdx = cols.findIndex((c) => c.key === dragColumnKey.value);
|
|
563
|
-
const toIdx = cols.findIndex((c) => c.key === targetKey);
|
|
564
|
-
if (fromIdx >= 0 && toIdx >= 0) {
|
|
565
|
-
const [moved] = cols.splice(fromIdx, 1);
|
|
566
|
-
cols.splice(toIdx, 0, moved);
|
|
567
|
-
emit("column-order-change", cols);
|
|
568
|
-
}
|
|
569
|
-
dragColumnKey.value = null;
|
|
570
|
-
}
|
|
571
|
-
const virtualScrollTop = ref(0);
|
|
572
|
-
computed(() => {
|
|
573
|
-
if (!props.virtual) return null;
|
|
574
|
-
return getFixedVirtualRange(
|
|
575
|
-
virtualScrollTop.value,
|
|
576
|
-
props.virtualHeight,
|
|
577
|
-
props.virtualItemHeight,
|
|
578
|
-
paginatedData.value.length,
|
|
579
|
-
5
|
|
580
|
-
);
|
|
581
|
-
});
|
|
582
|
-
const groupedData = computed(() => {
|
|
583
|
-
if (!props.groupBy) return null;
|
|
584
|
-
return groupDataByColumn(paginatedData.value, props.groupBy);
|
|
585
|
-
});
|
|
586
|
-
function renderSummaryRow() {
|
|
587
|
-
if (!props.summaryRow?.show) return null;
|
|
588
|
-
const emptyCells = [];
|
|
589
|
-
if (props.rowSelection) {
|
|
590
|
-
emptyCells.push(h("td", { class: getTableCellClasses(props.size, "left") }));
|
|
591
|
-
}
|
|
592
|
-
if (props.expandable) {
|
|
593
|
-
emptyCells.push(h("td", { class: getTableCellClasses(props.size, "left") }));
|
|
594
|
-
}
|
|
595
|
-
const dataCells = displayColumns.value.map((col) => {
|
|
596
|
-
const dataKey = col.dataKey || col.key;
|
|
597
|
-
const val = props.summaryRow.data[dataKey];
|
|
598
|
-
return h(
|
|
599
|
-
"td",
|
|
600
|
-
{
|
|
601
|
-
key: col.key,
|
|
602
|
-
class: getTableCellClasses(props.size, col.align || "left", col.className)
|
|
603
|
-
},
|
|
604
|
-
val != null ? String(val) : ""
|
|
605
|
-
);
|
|
606
|
-
});
|
|
607
|
-
return h("tfoot", [h("tr", { class: tableSummaryRowClasses }, [...emptyCells, ...dataCells])]);
|
|
608
|
-
}
|
|
609
|
-
function renderTableHeader() {
|
|
610
|
-
const headerCells = [];
|
|
611
|
-
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
612
|
-
const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
|
|
613
|
-
const expandHeaderTh = props.expandable ? h("th", {
|
|
614
|
-
class: getExpandIconCellClasses(props.size),
|
|
615
|
-
"aria-label": "Expand"
|
|
616
|
-
}) : null;
|
|
617
|
-
if (expandAtStart && expandHeaderTh) {
|
|
618
|
-
headerCells.push(expandHeaderTh);
|
|
619
|
-
}
|
|
620
|
-
if (props.rowSelection && props.rowSelection.showCheckbox !== false && props.rowSelection.type !== "radio") {
|
|
621
|
-
headerCells.push(
|
|
622
|
-
h(
|
|
623
|
-
"th",
|
|
624
|
-
{
|
|
625
|
-
class: getCheckboxCellClasses(props.size)
|
|
626
|
-
},
|
|
627
|
-
[
|
|
628
|
-
h("input", {
|
|
629
|
-
type: "checkbox",
|
|
630
|
-
class: "rounded border-gray-300 text-[var(--tiger-primary,#2563eb)] focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
631
|
-
checked: allSelected.value,
|
|
632
|
-
indeterminate: someSelected.value,
|
|
633
|
-
onChange: (e) => handleSelectAll(e.target.checked)
|
|
634
|
-
})
|
|
635
|
-
]
|
|
636
|
-
)
|
|
637
|
-
);
|
|
638
|
-
}
|
|
639
|
-
displayColumns.value.forEach((column) => {
|
|
640
|
-
const isSorted = sortState.value.key === column.key;
|
|
641
|
-
const sortDirection = isSorted ? sortState.value.direction : null;
|
|
642
|
-
const ariaSort = column.sortable ? sortDirection === "asc" ? "ascending" : sortDirection === "desc" ? "descending" : "none" : void 0;
|
|
643
|
-
const isFixedLeft = column.fixed === "left";
|
|
644
|
-
const isFixedRight = column.fixed === "right";
|
|
645
|
-
const fixedStyle = isFixedLeft ? {
|
|
646
|
-
position: "sticky",
|
|
647
|
-
left: `${fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
|
|
648
|
-
zIndex: 15
|
|
649
|
-
} : isFixedRight ? {
|
|
650
|
-
position: "sticky",
|
|
651
|
-
right: `${fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
|
|
652
|
-
zIndex: 15
|
|
653
|
-
} : void 0;
|
|
654
|
-
const widthStyle = column.width ? {
|
|
655
|
-
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
656
|
-
} : void 0;
|
|
657
|
-
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
658
|
-
const headerContent = [];
|
|
659
|
-
const slotContent = slots[`header-${column.key}`]?.();
|
|
660
|
-
if (slotContent && slotContent.length > 0) {
|
|
661
|
-
headerContent.push(...slotContent);
|
|
662
|
-
} else if (column.renderHeader) {
|
|
663
|
-
headerContent.push(column.renderHeader());
|
|
664
|
-
} else {
|
|
665
|
-
headerContent.push(column.title);
|
|
666
|
-
}
|
|
667
|
-
if (props.columnLockable) {
|
|
668
|
-
headerContent.push(
|
|
669
|
-
h(
|
|
670
|
-
"button",
|
|
671
|
-
{
|
|
672
|
-
type: "button",
|
|
673
|
-
class: classNames(
|
|
674
|
-
"inline-flex items-center",
|
|
675
|
-
column.fixed === "left" || column.fixed === "right" ? "text-[var(--tiger-primary,#2563eb)]" : "text-gray-400 hover:text-gray-700"
|
|
676
|
-
),
|
|
677
|
-
"aria-label": column.fixed === "left" || column.fixed === "right" ? `Unlock column ${column.title}` : `Lock column ${column.title}`,
|
|
678
|
-
onClick: (e) => {
|
|
679
|
-
e.stopPropagation();
|
|
680
|
-
toggleColumnLock(column.key);
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
[LockIcon(column.fixed === "left" || column.fixed === "right")]
|
|
684
|
-
)
|
|
685
|
-
);
|
|
686
|
-
}
|
|
687
|
-
if (column.sortable) {
|
|
688
|
-
headerContent.push(SortIcon(sortDirection));
|
|
689
|
-
}
|
|
690
|
-
headerCells.push(
|
|
691
|
-
h(
|
|
692
|
-
"th",
|
|
693
|
-
{
|
|
694
|
-
key: column.key,
|
|
695
|
-
"aria-sort": ariaSort,
|
|
696
|
-
class: classNames(
|
|
697
|
-
getTableHeaderCellClasses(
|
|
698
|
-
props.size,
|
|
699
|
-
column.align || "left",
|
|
700
|
-
!!column.sortable,
|
|
701
|
-
column.headerClassName
|
|
702
|
-
),
|
|
703
|
-
(isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
704
|
-
),
|
|
705
|
-
style,
|
|
706
|
-
draggable: props.columnDraggable ? "true" : void 0,
|
|
707
|
-
onDragstart: props.columnDraggable ? () => handleDragStart(column.key) : void 0,
|
|
708
|
-
onDragover: props.columnDraggable ? (e) => e.preventDefault() : void 0,
|
|
709
|
-
onDrop: props.columnDraggable ? () => handleDrop(column.key) : void 0,
|
|
710
|
-
onClick: column.sortable ? () => handleSort(column.key) : void 0
|
|
711
|
-
},
|
|
712
|
-
[
|
|
713
|
-
h("div", { class: "flex items-center gap-2" }, headerContent),
|
|
714
|
-
// Filter input
|
|
715
|
-
...column.filter ? [
|
|
716
|
-
h("div", { class: "mt-2" }, [
|
|
717
|
-
column.filter.type === "select" && column.filter.options ? h(
|
|
718
|
-
"select",
|
|
719
|
-
{
|
|
720
|
-
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
721
|
-
onChange: (e) => handleFilter(column.key, e.target.value),
|
|
722
|
-
onClick: (e) => e.stopPropagation()
|
|
723
|
-
},
|
|
724
|
-
[
|
|
725
|
-
h("option", { value: "" }, "All"),
|
|
726
|
-
...column.filter.options.map(
|
|
727
|
-
(opt) => h("option", { value: opt.value }, opt.label)
|
|
728
|
-
)
|
|
729
|
-
]
|
|
730
|
-
) : h("input", {
|
|
731
|
-
type: "text",
|
|
732
|
-
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
733
|
-
placeholder: column.filter.placeholder || "Filter...",
|
|
734
|
-
onInput: (e) => handleFilter(column.key, e.target.value),
|
|
735
|
-
onClick: (e) => e.stopPropagation()
|
|
736
|
-
})
|
|
737
|
-
])
|
|
738
|
-
] : []
|
|
739
|
-
]
|
|
740
|
-
)
|
|
741
|
-
);
|
|
742
|
-
});
|
|
743
|
-
if (expandAtEnd && expandHeaderTh) {
|
|
744
|
-
headerCells.push(expandHeaderTh);
|
|
745
|
-
}
|
|
746
|
-
return h("thead", { class: getTableHeaderClasses(props.stickyHeader) }, [
|
|
747
|
-
h("tr", headerCells)
|
|
748
|
-
]);
|
|
749
|
-
}
|
|
750
|
-
function renderTableBody() {
|
|
751
|
-
if (props.loading) {
|
|
752
|
-
return null;
|
|
753
|
-
}
|
|
754
|
-
if (paginatedData.value.length === 0) {
|
|
755
|
-
return h("tbody", [
|
|
756
|
-
h("tr", [
|
|
757
|
-
h(
|
|
758
|
-
"td",
|
|
759
|
-
{
|
|
760
|
-
colspan: totalColumnCount.value,
|
|
761
|
-
class: tableEmptyStateClasses
|
|
762
|
-
},
|
|
763
|
-
[
|
|
764
|
-
h(
|
|
765
|
-
"div",
|
|
766
|
-
{
|
|
767
|
-
role: "status",
|
|
768
|
-
"aria-live": "polite"
|
|
769
|
-
},
|
|
770
|
-
props.emptyText
|
|
771
|
-
)
|
|
772
|
-
]
|
|
773
|
-
)
|
|
774
|
-
])
|
|
775
|
-
]);
|
|
776
|
-
}
|
|
777
|
-
function renderDataRow(record, index) {
|
|
778
|
-
const key = getRowKey(record, props.rowKey, index);
|
|
779
|
-
const isSelected = selectedRowKeySet.value.has(key);
|
|
780
|
-
const isExpanded = expandedRowKeySet.value.has(key);
|
|
781
|
-
const isRowExpandable = props.expandable ? props.expandable.rowExpandable ? props.expandable.rowExpandable(record) : true : false;
|
|
782
|
-
const rowClass = typeof props.rowClassName === "function" ? props.rowClassName(record, index) : props.rowClassName;
|
|
783
|
-
const cells = [];
|
|
784
|
-
const expandAtStart = props.expandable && props.expandable.expandIconPosition !== "end";
|
|
785
|
-
const expandToggleCell = props.expandable ? h(
|
|
786
|
-
"td",
|
|
787
|
-
{
|
|
788
|
-
class: getExpandIconCellClasses(props.size)
|
|
789
|
-
},
|
|
790
|
-
isRowExpandable ? [
|
|
791
|
-
h(
|
|
792
|
-
"button",
|
|
793
|
-
{
|
|
794
|
-
type: "button",
|
|
795
|
-
class: "inline-flex items-center justify-center",
|
|
796
|
-
"aria-label": isExpanded ? "Collapse row" : "Expand row",
|
|
797
|
-
"aria-expanded": isExpanded,
|
|
798
|
-
onClick: (e) => {
|
|
799
|
-
e.stopPropagation();
|
|
800
|
-
handleToggleExpand(key, record);
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
[ExpandIcon(isExpanded)]
|
|
804
|
-
)
|
|
805
|
-
] : []
|
|
806
|
-
) : null;
|
|
807
|
-
if (expandAtStart && expandToggleCell) {
|
|
808
|
-
cells.push(expandToggleCell);
|
|
809
|
-
}
|
|
810
|
-
if (props.rowSelection && props.rowSelection.showCheckbox !== false) {
|
|
811
|
-
const checkboxProps = props.rowSelection?.getCheckboxProps?.(record) || {};
|
|
812
|
-
cells.push(
|
|
813
|
-
h(
|
|
814
|
-
"td",
|
|
815
|
-
{
|
|
816
|
-
class: getCheckboxCellClasses(props.size)
|
|
817
|
-
},
|
|
818
|
-
[
|
|
819
|
-
h("input", {
|
|
820
|
-
type: props.rowSelection?.type === "radio" ? "radio" : "checkbox",
|
|
821
|
-
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)]",
|
|
822
|
-
checked: isSelected,
|
|
823
|
-
disabled: checkboxProps.disabled,
|
|
824
|
-
onClick: (e) => e.stopPropagation(),
|
|
825
|
-
onChange: (e) => handleSelectRow(key, e.target.checked)
|
|
826
|
-
})
|
|
827
|
-
]
|
|
828
|
-
)
|
|
829
|
-
);
|
|
830
|
-
}
|
|
831
|
-
displayColumns.value.forEach((column) => {
|
|
832
|
-
const dataKey = column.dataKey || column.key;
|
|
833
|
-
const cellValue = record[dataKey];
|
|
834
|
-
const isFixedLeft = column.fixed === "left";
|
|
835
|
-
const isFixedRight = column.fixed === "right";
|
|
836
|
-
const fixedStyle = isFixedLeft ? {
|
|
837
|
-
position: "sticky",
|
|
838
|
-
left: `${fixedColumnsInfo.value.leftOffsets[column.key] || 0}px`,
|
|
839
|
-
zIndex: 10
|
|
840
|
-
} : isFixedRight ? {
|
|
841
|
-
position: "sticky",
|
|
842
|
-
right: `${fixedColumnsInfo.value.rightOffsets[column.key] || 0}px`,
|
|
843
|
-
zIndex: 10
|
|
844
|
-
} : void 0;
|
|
845
|
-
const widthStyle = column.width ? {
|
|
846
|
-
width: typeof column.width === "number" ? `${column.width}px` : column.width
|
|
847
|
-
} : void 0;
|
|
848
|
-
const style = fixedStyle ? { ...widthStyle, ...fixedStyle } : widthStyle;
|
|
849
|
-
const stickyBgClass = props.striped && index % 2 === 0 ? "bg-[var(--tiger-surface-muted,#f9fafb)]/50" : "bg-[var(--tiger-surface,#ffffff)]";
|
|
850
|
-
const stickyCellClass = isFixedLeft || isFixedRight ? classNames(
|
|
851
|
-
stickyBgClass,
|
|
852
|
-
props.hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
853
|
-
) : void 0;
|
|
854
|
-
const isEditing = editingCell.value?.rowIndex === index && editingCell.value?.columnKey === column.key;
|
|
855
|
-
const isEditableCell = isCellEditable(column.key, index);
|
|
856
|
-
const cellContent = isEditing ? h("input", {
|
|
857
|
-
type: "text",
|
|
858
|
-
class: editableCellInputClasses,
|
|
859
|
-
value: editingValue.value,
|
|
860
|
-
autofocus: true,
|
|
861
|
-
onInput: (e) => {
|
|
862
|
-
editingValue.value = e.target.value;
|
|
863
|
-
},
|
|
864
|
-
onBlur: () => commitEdit(),
|
|
865
|
-
onKeydown: (e) => {
|
|
866
|
-
if (e.key === "Enter") commitEdit();
|
|
867
|
-
if (e.key === "Escape") cancelEdit();
|
|
868
|
-
}
|
|
869
|
-
}) : slots[`cell-${column.key}`]?.({ record, index }) ?? (column.render ? column.render(record, index) : cellValue);
|
|
870
|
-
cells.push(
|
|
871
|
-
h(
|
|
872
|
-
"td",
|
|
873
|
-
{
|
|
874
|
-
key: column.key,
|
|
875
|
-
class: classNames(
|
|
876
|
-
getTableCellClasses(props.size, column.align || "left", column.className),
|
|
877
|
-
stickyCellClass,
|
|
878
|
-
isEditableCell && !isEditing && getEditableCellClasses(false)
|
|
879
|
-
),
|
|
880
|
-
style,
|
|
881
|
-
onDblclick: isEditableCell && !isEditing ? () => startEditing(index, column.key, cellValue) : void 0
|
|
882
|
-
},
|
|
883
|
-
[cellContent]
|
|
884
|
-
)
|
|
885
|
-
);
|
|
886
|
-
});
|
|
887
|
-
if (!expandAtStart && expandToggleCell) {
|
|
888
|
-
cells.push(expandToggleCell);
|
|
889
|
-
}
|
|
890
|
-
const rowNode = h(
|
|
891
|
-
"tr",
|
|
892
|
-
{
|
|
893
|
-
key,
|
|
894
|
-
class: classNames(
|
|
895
|
-
getTableRowClasses(props.hoverable, props.striped, index % 2 === 0, rowClass),
|
|
896
|
-
fixedColumnsInfo.value.hasFixedColumns && "group"
|
|
897
|
-
),
|
|
898
|
-
onClick: () => handleRowClick(record, index)
|
|
899
|
-
},
|
|
900
|
-
cells
|
|
901
|
-
);
|
|
902
|
-
if (props.expandable && isExpanded && isRowExpandable) {
|
|
903
|
-
const expandedContent = slots["expanded-row"]?.({ record, index }) || (props.expandable.expandedRowRender ? props.expandable.expandedRowRender(record, index) : null);
|
|
904
|
-
const expandedRow = h(
|
|
905
|
-
"tr",
|
|
906
|
-
{
|
|
907
|
-
key: `${key}-expanded`,
|
|
908
|
-
class: getExpandedRowClasses()
|
|
909
|
-
},
|
|
910
|
-
[
|
|
911
|
-
h(
|
|
912
|
-
"td",
|
|
913
|
-
{
|
|
914
|
-
colspan: totalColumnCount.value,
|
|
915
|
-
class: getExpandedRowContentClasses(props.size)
|
|
916
|
-
},
|
|
917
|
-
[expandedContent]
|
|
918
|
-
)
|
|
919
|
-
]
|
|
920
|
-
);
|
|
921
|
-
return [rowNode, expandedRow];
|
|
922
|
-
}
|
|
923
|
-
return rowNode;
|
|
924
|
-
}
|
|
925
|
-
if (groupedData.value) {
|
|
926
|
-
const groupRows = [];
|
|
927
|
-
for (const [groupKey, groupItems] of groupedData.value) {
|
|
928
|
-
groupRows.push(
|
|
929
|
-
h("tr", { key: `group-${groupKey}`, class: tableGroupHeaderClasses }, [
|
|
930
|
-
h(
|
|
931
|
-
"td",
|
|
932
|
-
{
|
|
933
|
-
colspan: totalColumnCount.value,
|
|
934
|
-
class: getGroupHeaderCellClasses(props.size)
|
|
935
|
-
},
|
|
936
|
-
`${props.groupBy}: ${groupKey} (${groupItems.length})`
|
|
937
|
-
)
|
|
938
|
-
])
|
|
939
|
-
);
|
|
940
|
-
groupItems.forEach((record, i) => {
|
|
941
|
-
const globalIndex = paginatedData.value.indexOf(record);
|
|
942
|
-
const result = renderDataRow(record, globalIndex >= 0 ? globalIndex : i);
|
|
943
|
-
if (Array.isArray(result)) {
|
|
944
|
-
groupRows.push(...result);
|
|
945
|
-
} else {
|
|
946
|
-
groupRows.push(result);
|
|
947
|
-
}
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
return h("tbody", groupRows);
|
|
951
|
-
}
|
|
952
|
-
const rows = paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
|
|
953
|
-
return h("tbody", rows);
|
|
954
|
-
}
|
|
955
|
-
function renderPagination() {
|
|
956
|
-
if (props.pagination === false || !paginationInfo.value) {
|
|
957
|
-
return null;
|
|
958
|
-
}
|
|
959
|
-
const { totalPages, startIndex, endIndex, hasNext, hasPrev } = paginationInfo.value;
|
|
960
|
-
const total = processedData.value.length;
|
|
961
|
-
const paginationConfig2 = props.pagination;
|
|
962
|
-
return h("div", { class: getSimplePaginationContainerClasses() }, [
|
|
963
|
-
// Total info
|
|
964
|
-
paginationConfig2.showTotal !== false && h(
|
|
965
|
-
"div",
|
|
966
|
-
{ class: getSimplePaginationTotalClasses() },
|
|
967
|
-
paginationConfig2.totalText ? paginationConfig2.totalText(total, [startIndex, endIndex]) : `Showing ${startIndex} to ${endIndex} of ${total} results`
|
|
968
|
-
),
|
|
969
|
-
// Pagination controls
|
|
970
|
-
h("div", { class: getSimplePaginationControlsClasses() }, [
|
|
971
|
-
// Page size selector
|
|
972
|
-
paginationConfig2.showSizeChanger !== false && h(
|
|
973
|
-
"select",
|
|
974
|
-
{
|
|
975
|
-
class: getSimplePaginationSelectClasses(),
|
|
976
|
-
value: currentPageSize.value,
|
|
977
|
-
onChange: (e) => handlePageSizeChange(Number(e.target.value))
|
|
978
|
-
},
|
|
979
|
-
(paginationConfig2.pageSizeOptions || [10, 20, 50, 100]).map(
|
|
980
|
-
(size) => h("option", { value: size }, `${size} / page`)
|
|
981
|
-
)
|
|
982
|
-
),
|
|
983
|
-
// Page buttons
|
|
984
|
-
h("div", { class: getSimplePaginationButtonsWrapperClasses() }, [
|
|
985
|
-
// Previous button
|
|
986
|
-
h(
|
|
987
|
-
"button",
|
|
988
|
-
{
|
|
989
|
-
class: getSimplePaginationButtonClasses(!hasPrev),
|
|
990
|
-
disabled: !hasPrev,
|
|
991
|
-
onClick: () => handlePageChange(currentPage.value - 1)
|
|
992
|
-
},
|
|
993
|
-
"Previous"
|
|
994
|
-
),
|
|
995
|
-
// Current page indicator
|
|
996
|
-
h(
|
|
997
|
-
"span",
|
|
998
|
-
{ class: getSimplePaginationPageIndicatorClasses() },
|
|
999
|
-
`Page ${currentPage.value} of ${totalPages}`
|
|
1000
|
-
),
|
|
1001
|
-
// Next button
|
|
1002
|
-
h(
|
|
1003
|
-
"button",
|
|
1004
|
-
{
|
|
1005
|
-
class: getSimplePaginationButtonClasses(!hasNext),
|
|
1006
|
-
disabled: !hasNext,
|
|
1007
|
-
onClick: () => handlePageChange(currentPage.value + 1)
|
|
1008
|
-
},
|
|
1009
|
-
"Next"
|
|
1010
|
-
)
|
|
1011
|
-
])
|
|
1012
|
-
])
|
|
1013
|
-
]);
|
|
1014
|
-
}
|
|
1015
|
-
return () => {
|
|
1016
|
-
const wrapperStyle = props.maxHeight ? {
|
|
1017
|
-
maxHeight: typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight
|
|
1018
|
-
} : void 0;
|
|
1019
|
-
const tableChildren = [renderTableHeader(), renderTableBody(), renderSummaryRow()];
|
|
1020
|
-
const tableContent = props.virtual ? h(
|
|
1021
|
-
"div",
|
|
1022
|
-
{
|
|
1023
|
-
style: { height: `${props.virtualHeight}px`, overflow: "auto" },
|
|
1024
|
-
onScroll: (e) => {
|
|
1025
|
-
virtualScrollTop.value = e.target.scrollTop;
|
|
1026
|
-
}
|
|
1027
|
-
},
|
|
1028
|
-
[
|
|
1029
|
-
h(
|
|
1030
|
-
"table",
|
|
1031
|
-
{
|
|
1032
|
-
class: classNames(
|
|
1033
|
-
tableBaseClasses,
|
|
1034
|
-
props.tableLayout === "fixed" ? "table-fixed" : "table-auto"
|
|
1035
|
-
),
|
|
1036
|
-
style: fixedColumnsInfo.value.hasFixedColumns && fixedColumnsInfo.value.minTableWidth ? { minWidth: `${fixedColumnsInfo.value.minTableWidth}px` } : void 0
|
|
1037
|
-
},
|
|
1038
|
-
tableChildren
|
|
1039
|
-
)
|
|
1040
|
-
]
|
|
1041
|
-
) : h(
|
|
1042
|
-
"table",
|
|
1043
|
-
{
|
|
1044
|
-
class: classNames(
|
|
1045
|
-
tableBaseClasses,
|
|
1046
|
-
props.tableLayout === "fixed" ? "table-fixed" : "table-auto"
|
|
1047
|
-
),
|
|
1048
|
-
style: fixedColumnsInfo.value.hasFixedColumns && fixedColumnsInfo.value.minTableWidth ? { minWidth: `${fixedColumnsInfo.value.minTableWidth}px` } : void 0
|
|
1049
|
-
},
|
|
1050
|
-
tableChildren
|
|
1051
|
-
);
|
|
1052
|
-
return h(
|
|
1053
|
-
"div",
|
|
1054
|
-
{
|
|
1055
|
-
class: getTableWrapperClasses(props.bordered, props.maxHeight),
|
|
1056
|
-
style: wrapperStyle,
|
|
1057
|
-
"aria-busy": props.loading
|
|
1058
|
-
},
|
|
1059
|
-
[
|
|
1060
|
-
// Export button
|
|
1061
|
-
props.exportable && h("div", { class: "flex justify-end p-2" }, [
|
|
1062
|
-
h(
|
|
1063
|
-
"button",
|
|
1064
|
-
{
|
|
1065
|
-
type: "button",
|
|
1066
|
-
class: tableExportButtonClasses,
|
|
1067
|
-
onClick: handleExport,
|
|
1068
|
-
"aria-label": "Export to CSV"
|
|
1069
|
-
},
|
|
1070
|
-
"Export CSV"
|
|
1071
|
-
)
|
|
1072
|
-
]),
|
|
1073
|
-
tableContent,
|
|
1074
|
-
// Loading overlay
|
|
1075
|
-
props.loading && h(
|
|
1076
|
-
"div",
|
|
1077
|
-
{
|
|
1078
|
-
class: tableLoadingOverlayClasses,
|
|
1079
|
-
role: "status",
|
|
1080
|
-
"aria-live": "polite",
|
|
1081
|
-
"aria-label": "Loading"
|
|
1082
|
-
},
|
|
1083
|
-
[LoadingSpinner(), h("span", { class: "sr-only" }, "Loading")]
|
|
1084
|
-
),
|
|
1085
|
-
// Pagination
|
|
1086
|
-
renderPagination()
|
|
1087
|
-
]
|
|
1088
|
-
);
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
});
|
|
1092
|
-
var Table_default = Table;
|
|
1093
|
-
|
|
1094
|
-
export { Table, Table_default };
|