@expcat/tigercat-vue 1.3.4 → 1.5.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-PCJHGWTU.js → chunk-2FYVPPTD.js} +53 -7
- package/dist/{chunk-MJP2SNLK.mjs → chunk-2HRJGOAV.mjs} +62 -27
- package/dist/{chunk-MKBIVETW.mjs → chunk-2OI6GWOT.mjs} +22 -2
- package/dist/{chunk-DS7RQFEG.js → chunk-2RCBEBBR.js} +20 -13
- package/dist/{chunk-25VVIM45.mjs → chunk-2YPPXZ4I.mjs} +60 -6
- package/dist/{chunk-HCANI7ZG.mjs → chunk-36ZFDXKU.mjs} +10 -1
- package/dist/{chunk-JKEF7NB3.js → chunk-37LDNXLO.js} +4 -4
- package/dist/{chunk-RNQOMMLM.mjs → chunk-3VFZB5ZK.mjs} +3 -3
- package/dist/{chunk-DEJKRMMU.mjs → chunk-4IZUJJUO.mjs} +32 -9
- package/dist/{chunk-IPZVGA6Y.mjs → chunk-4QCJUILG.mjs} +66 -97
- package/dist/{chunk-NWS45JQP.mjs → chunk-4RK5BDGR.mjs} +58 -10
- package/dist/{chunk-RKZN3URO.js → chunk-55BSMMUN.js} +27 -6
- package/dist/{chunk-NHBN6VAY.mjs → chunk-57VPT3MN.mjs} +2 -2
- package/dist/{chunk-BWIHL7LK.mjs → chunk-5CHHWMES.mjs} +28 -10
- package/dist/chunk-5FTM7R3P.js +142 -0
- package/dist/{chunk-LZHCKW2Z.js → chunk-5PVDNJA5.js} +12 -2
- package/dist/{chunk-UMQUWX7U.mjs → chunk-64EZRIJL.mjs} +26 -4
- package/dist/{chunk-Q3IZQUW7.js → chunk-67RSRWWY.js} +3 -3
- package/dist/{chunk-FSGD24HV.mjs → chunk-6CS3EEQU.mjs} +9 -1
- package/dist/{chunk-PZH2RTSS.mjs → chunk-6FV2OMB7.mjs} +38 -9
- package/dist/{chunk-6BFGY5W7.mjs → chunk-6G5FEZLT.mjs} +13 -15
- package/dist/{chunk-XQRKFOXS.mjs → chunk-6WF3336O.mjs} +13 -2
- package/dist/{chunk-5D2UAWWP.mjs → chunk-6WFFP4K2.mjs} +2 -4
- package/dist/{chunk-PQMZ3YN3.js → chunk-75TB3YIJ.js} +16 -2
- package/dist/{chunk-FQWEOBQ4.mjs → chunk-7BU4TW5A.mjs} +13 -3
- package/dist/{chunk-A5HRX7EG.js → chunk-7CR6MLD5.js} +5 -4
- package/dist/{chunk-LAWBHGPK.js → chunk-7FWZIAFP.js} +2 -2
- package/dist/{chunk-CSJQKBDJ.js → chunk-7GYYIDMA.js} +2 -4
- package/dist/{chunk-3XCQRM3L.js → chunk-7J7JIIHX.js} +30 -12
- package/dist/{chunk-M2XA7VU5.js → chunk-7KYGVEHF.js} +4 -4
- package/dist/{chunk-BPAN6T7H.mjs → chunk-7LCUVR63.mjs} +40 -5
- package/dist/{chunk-JJXYM6QR.js → chunk-7RMBEWN2.js} +2 -2
- package/dist/{chunk-L5E3L6ID.js → chunk-AF7JZUTA.js} +66 -97
- package/dist/{chunk-PIF4M4TR.mjs → chunk-ALFEFDVG.mjs} +125 -17
- package/dist/{chunk-E6RGBYI3.mjs → chunk-ALIUAGJO.mjs} +7 -0
- package/dist/{chunk-WUEP3PFN.js → chunk-ANQRW442.js} +31 -8
- package/dist/{chunk-X5CFXNVK.js → chunk-APBWQGXW.js} +14 -10
- package/dist/{chunk-IZF4VHJ2.mjs → chunk-ASOJXXU6.mjs} +2 -2
- package/dist/{chunk-6FXYRDYH.js → chunk-AWXSJNNP.js} +22 -2
- package/dist/{chunk-ZOUJFFG4.js → chunk-AYQER5UD.js} +17 -14
- package/dist/{chunk-K4VUUEFQ.mjs → chunk-BJV62I73.mjs} +111 -70
- package/dist/{chunk-XJXGVNNF.js → chunk-BNUR72YP.js} +27 -5
- package/dist/{chunk-FE2HR4E5.js → chunk-BPJOIFND.js} +59 -22
- package/dist/{chunk-OKR3GRG5.mjs → chunk-BRGQXIKA.mjs} +58 -10
- package/dist/{chunk-QYSFZA5V.js → chunk-BV6XWFRF.js} +14 -7
- package/dist/{chunk-ODQOYMUQ.js → chunk-BYNTPLGC.js} +8 -1
- package/dist/{chunk-SVWZOIBI.js → chunk-BZ56UKUK.js} +4 -4
- package/dist/{chunk-5X3GXNGM.mjs → chunk-CF4GX6BD.mjs} +43 -12
- package/dist/{chunk-AEOREYSJ.js → chunk-CFJST2X2.js} +126 -28
- package/dist/{chunk-NUABW6IB.mjs → chunk-CGZFRSI5.mjs} +1 -1
- package/dist/{chunk-2X3ZPH2H.mjs → chunk-CIDINFA2.mjs} +44 -4
- package/dist/{chunk-KVJIJJ4M.mjs → chunk-CVFXUYH2.mjs} +58 -32
- package/dist/{chunk-LILAZ4UJ.mjs → chunk-CW5TEG7N.mjs} +3 -3
- package/dist/{chunk-GOBWUEHV.js → chunk-D43IFX7J.js} +4 -5
- package/dist/{chunk-RBHF7NOQ.js → chunk-D6Y3KVJF.js} +22 -2
- package/dist/{chunk-ZDKGABPQ.mjs → chunk-DMQLA35L.mjs} +11 -1
- package/dist/{chunk-NNNG6NIA.mjs → chunk-DWPZRG7A.mjs} +6 -5
- package/dist/{chunk-2WJADO6O.mjs → chunk-DZFM7H3M.mjs} +21 -7
- package/dist/{chunk-JFIVDZFK.js → chunk-E36I27WK.js} +30 -4
- package/dist/chunk-E7NE5HEC.mjs +351 -0
- package/dist/{chunk-AP42636I.js → chunk-EG7XX6U4.js} +2 -2
- package/dist/{chunk-WNKF2OD5.mjs → chunk-EVIZXEB2.mjs} +31 -7
- package/dist/{chunk-SGRUGYQ6.mjs → chunk-EYR27UIE.mjs} +13 -10
- package/dist/{chunk-5JKQPOG2.js → chunk-F5TZIFMW.js} +15 -3
- package/dist/{chunk-7WQN5BYE.mjs → chunk-FAQL7HFW.mjs} +36 -3
- package/dist/{chunk-4K2CCBFT.mjs → chunk-FISKCPTN.mjs} +3 -2
- package/dist/{chunk-IORFQMZH.mjs → chunk-FT2HWF7P.mjs} +4 -4
- package/dist/{chunk-OK4PVFQG.mjs → chunk-G2LB4QCL.mjs} +18 -15
- package/dist/{chunk-HFRPZA5S.js → chunk-GBYNY77G.js} +6 -6
- package/dist/{chunk-OGDZTDZ6.mjs → chunk-GHG2MCLM.mjs} +28 -7
- package/dist/{chunk-ZUPVK5L7.js → chunk-GJ5HJOQP.js} +72 -51
- package/dist/{chunk-F7WZCYYD.mjs → chunk-GL63FRI4.mjs} +1 -1
- package/dist/{chunk-JZJEZKGN.js → chunk-GV3LRZSR.js} +37 -13
- package/dist/{chunk-W6ZFHHD3.mjs → chunk-GZWZP5AL.mjs} +9 -2
- package/dist/{chunk-BYNMOQBB.js → chunk-H2XEJHGR.js} +23 -9
- package/dist/{chunk-FMH4CLSA.mjs → chunk-H6FZBFRT.mjs} +27 -6
- package/dist/{chunk-FUI6WG2F.js → chunk-H7GAWNOW.js} +35 -5
- package/dist/{chunk-ZSCOAOJJ.js → chunk-HI45DI7S.js} +35 -7
- package/dist/{chunk-HKRMZODL.mjs → chunk-HIXWZVE5.mjs} +14 -10
- package/dist/{chunk-VVS2CQS4.mjs → chunk-HLPSHCXO.mjs} +8 -3
- package/dist/{chunk-PENI3H3I.mjs → chunk-HS4YQGZQ.mjs} +45 -11
- package/dist/{chunk-RE7K3KNW.mjs → chunk-HWL36OCD.mjs} +21 -14
- package/dist/{chunk-UANF7XE5.mjs → chunk-IJL7YYT7.mjs} +6 -4
- package/dist/{chunk-G3SWTL27.js → chunk-IUPNDTUF.js} +1 -1
- package/dist/{chunk-25EYT2CB.js → chunk-IXTYS3EK.js} +3 -2
- package/dist/{chunk-P7RXZVLT.js → chunk-J77GQQEC.js} +45 -5
- package/dist/{chunk-ZIOGRGN5.mjs → chunk-JCGWN7WV.mjs} +26 -4
- package/dist/{chunk-Q4MH333P.js → chunk-JCPTFBLY.js} +1 -1
- package/dist/{chunk-K5ZZZ4TL.mjs → chunk-JGW7R7AZ.mjs} +2 -2
- package/dist/chunk-JICPYKCT.js +297 -0
- package/dist/{chunk-S6K6IR3Y.js → chunk-JMRR4KDB.js} +4 -4
- package/dist/{chunk-KDA4XDXT.js → chunk-K2NJI5MW.js} +2 -2
- package/dist/{chunk-ACYYQJ6M.js → chunk-KLOUOXNA.js} +8 -3
- package/dist/{chunk-G6ULKE6H.mjs → chunk-KRWKO2JQ.mjs} +17 -3
- package/dist/chunk-KTNT2JHB.js +351 -0
- package/dist/{chunk-C4HYZH7H.mjs → chunk-LGDJDBE3.mjs} +103 -47
- package/dist/{chunk-LA5YKXPH.mjs → chunk-LHOSPU6V.mjs} +3 -3
- package/dist/{chunk-IKEZDGRO.mjs → chunk-LHZ5MRFQ.mjs} +2 -2
- package/dist/{chunk-5F6P5Y4K.js → chunk-LKRT27JW.js} +45 -11
- package/dist/{chunk-FP7SBCPO.js → chunk-LODEICSN.js} +4 -4
- package/dist/{chunk-35NT2WJR.mjs → chunk-LOX2KCML.mjs} +8 -9
- package/dist/{chunk-XZMU7B54.js → chunk-LPHDX3UU.js} +51 -2
- package/dist/{chunk-PXRF4IJO.mjs → chunk-LSWTZHBV.mjs} +23 -3
- package/dist/{chunk-Z7ETXBOL.mjs → chunk-MF7BKYGN.mjs} +59 -22
- package/dist/chunk-MNVMGJUF.js +341 -0
- package/dist/{chunk-OKLDFVDJ.js → chunk-MPVL53GP.js} +61 -7
- package/dist/{chunk-SEDENBOO.mjs → chunk-N2QGYEOQ.mjs} +30 -17
- package/dist/{chunk-3NRRNQYJ.js → chunk-NQYE64IF.js} +31 -7
- package/dist/{chunk-TAU447CL.js → chunk-OOMZBTHW.js} +25 -3
- package/dist/{chunk-VXULMOIW.js → chunk-OQBWITHA.js} +29 -16
- package/dist/{chunk-Z6HBM73W.js → chunk-OQOJI5Q7.js} +2 -2
- package/dist/{chunk-TAA6DDJ2.mjs → chunk-OSPHI5TV.mjs} +116 -9
- package/dist/{chunk-QUIRQ7OA.js → chunk-OVXDO6KJ.js} +9 -5
- package/dist/{chunk-CPV7INZ4.mjs → chunk-P3VAY2IQ.mjs} +1 -1
- package/dist/{chunk-DMV26JNR.mjs → chunk-PD2PKYJE.mjs} +58 -6
- package/dist/{chunk-2YFXJUBT.js → chunk-PFWRFHSB.js} +2 -2
- package/dist/{chunk-NYR6OQO4.js → chunk-PFZFPN7M.js} +65 -30
- package/dist/{chunk-S6Q7TD6H.js → chunk-PH6ERFC7.js} +38 -9
- package/dist/{chunk-Y3BQSELH.mjs → chunk-PJX2DHO5.mjs} +2 -2
- package/dist/{chunk-HVVPFQW2.mjs → chunk-PLUABMUD.mjs} +16 -2
- package/dist/{chunk-RFFPMC22.mjs → chunk-PMN2MQ26.mjs} +1 -1
- package/dist/{chunk-IZQ7BRHC.mjs → chunk-QH3YF5B6.mjs} +126 -28
- package/dist/{chunk-WZBOHL2F.js → chunk-QKJATAJP.js} +120 -13
- package/dist/{chunk-VG6E4NX6.mjs → chunk-R6WFL6NI.mjs} +3 -2
- package/dist/{chunk-6XI4VDU4.js → chunk-RBWJSHKR.js} +13 -2
- package/dist/{chunk-UAD2XROX.mjs → chunk-RD2NFAB6.mjs} +2 -2
- package/dist/{chunk-WUHW7AIM.mjs → chunk-RHV6DWY6.mjs} +5 -7
- package/dist/{chunk-VCBBWDOV.mjs → chunk-RTZUIWCN.mjs} +22 -2
- package/dist/{chunk-NDS2DLUS.mjs → chunk-S4Z77VIB.mjs} +7 -3
- package/dist/{chunk-5VSKQLK3.js → chunk-SIVMTPDY.js} +61 -13
- package/dist/{chunk-7VHDBN6U.js → chunk-SJSZHQWX.js} +4 -4
- package/dist/{chunk-YSUT2GRP.mjs → chunk-SMCOBLF6.mjs} +50 -1
- package/dist/{chunk-TZDNF5SK.js → chunk-SOSHYDIX.js} +115 -74
- package/dist/{chunk-Q47OK3FR.js → chunk-TCB3WFYM.js} +12 -13
- package/dist/{chunk-SCSGLSPY.mjs → chunk-TM73IWEY.mjs} +53 -12
- package/dist/{chunk-NKVEXKM5.js → chunk-TNKULOHK.js} +36 -3
- package/dist/{chunk-BZBVSB43.js → chunk-TOD67L2E.js} +40 -5
- package/dist/{chunk-OCL22D5E.mjs → chunk-TRN5PL5D.mjs} +34 -6
- package/dist/{chunk-LG6KGO5D.js → chunk-TXMPLBWW.js} +57 -5
- package/dist/{chunk-NOZ65AMO.js → chunk-TYYJPEWG.js} +15 -2
- package/dist/{chunk-EW2IW2JW.js → chunk-U5TSCS34.js} +16 -18
- package/dist/{chunk-6NFACBDB.js → chunk-UFY654LD.js} +5 -7
- package/dist/{chunk-2BNQGU7E.mjs → chunk-UKMOWUYH.mjs} +1 -1
- package/dist/{chunk-SLYUQ67P.js → chunk-UKR3IJF3.js} +3 -1
- package/dist/{chunk-M5PGWW25.mjs → chunk-UTGFGMZT.mjs} +33 -3
- package/dist/chunk-V5ANPH5R.mjs +341 -0
- package/dist/{chunk-D74XCQCK.mjs → chunk-V5ZEPAWV.mjs} +56 -10
- package/dist/{chunk-2R5HISQA.mjs → chunk-VCCK4CDT.mjs} +4 -2
- package/dist/{chunk-2VVXW53X.js → chunk-VDKUKZS2.js} +124 -68
- package/dist/{chunk-MHNCH2YI.js → chunk-VJ72Y54M.js} +14 -4
- package/dist/{chunk-LS4VI4RG.mjs → chunk-VJJ7RAC6.mjs} +36 -12
- package/dist/{chunk-2S5CNU36.js → chunk-VQXDF6CB.js} +23 -3
- package/dist/{chunk-BPAZBRCR.js → chunk-VUGFSHU2.js} +17 -3
- package/dist/{chunk-MUJLT2YG.js → chunk-VXRFE72I.js} +61 -35
- package/dist/{chunk-3A7H2CTW.mjs → chunk-VYBRLIKF.mjs} +73 -52
- package/dist/{chunk-UWZSTI3E.js → chunk-W34IV4EC.js} +9 -1
- package/dist/{chunk-F7G7K3TF.mjs → chunk-WBT3WSRE.mjs} +4 -5
- package/dist/{chunk-X6FG4RPF.js → chunk-WF7KVMBY.js} +24 -11
- package/dist/{chunk-WFISP42H.mjs → chunk-WLHOWOAY.mjs} +15 -2
- package/dist/{chunk-W6VKVYWZ.mjs → chunk-WSUCJHJX.mjs} +2 -2
- package/dist/{chunk-KY3O3FWK.mjs → chunk-WWB7VKKH.mjs} +24 -11
- package/dist/{chunk-GQAVLQEZ.mjs → chunk-X43QLJ5E.mjs} +1 -1
- package/dist/{chunk-ULUH6UNV.js → chunk-X73BZFBH.js} +4 -4
- package/dist/{chunk-KA7DILCI.js → chunk-X7PQRYUS.js} +61 -13
- package/dist/chunk-XFNHZ7SV.mjs +142 -0
- package/dist/{chunk-LL4ASJ4O.mjs → chunk-XJ5VGC5V.mjs} +30 -4
- package/dist/{chunk-EJZBG5RT.js → chunk-XMCYKHT4.js} +10 -1
- package/dist/{chunk-DZXZ3YEL.js → chunk-XSJKSUED.js} +5 -3
- package/dist/{chunk-JNIKT6AL.js → chunk-XVNN6D55.js} +29 -8
- package/dist/{chunk-ZCT56WB7.mjs → chunk-XZYFVOOS.mjs} +1 -1
- package/dist/{chunk-H6V26X2R.js → chunk-YI25YL5W.js} +4 -4
- package/dist/{chunk-UUJ7A3CN.js → chunk-YLMQZR6F.js} +43 -12
- package/dist/{chunk-PY6P4N2Q.js → chunk-YMUYN4IR.js} +53 -12
- package/dist/{chunk-44N7LE3Q.js → chunk-YTE45DNC.js} +13 -10
- package/dist/{chunk-VAXO5NEM.js → chunk-YVSINGGE.js} +2 -2
- package/dist/{chunk-BH4AJQTL.mjs → chunk-YZATP4VF.mjs} +1 -1
- package/dist/{chunk-5WG4OFXH.mjs → chunk-Z7QUWBFR.mjs} +15 -3
- package/dist/{chunk-FUGSQXFR.js → chunk-ZHSXICH7.js} +3 -2
- package/dist/components/ActivityFeed.d.mts +6 -6
- package/dist/components/ActivityFeed.d.ts +6 -6
- package/dist/components/ActivityFeed.js +8 -7
- package/dist/components/ActivityFeed.mjs +7 -6
- package/dist/components/Alert.d.mts +3 -3
- package/dist/components/Alert.d.ts +3 -3
- package/dist/components/Alert.js +2 -2
- package/dist/components/Alert.mjs +1 -1
- package/dist/components/Anchor.d.mts +1 -1
- package/dist/components/Anchor.d.ts +1 -1
- package/dist/components/Anchor.js +2 -2
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AnchorLink.js +3 -3
- package/dist/components/AnchorLink.mjs +1 -1
- package/dist/components/AreaChart.d.mts +3 -3
- package/dist/components/AreaChart.d.ts +3 -3
- package/dist/components/AreaChart.js +4 -4
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.d.mts +14 -5
- package/dist/components/AutoComplete.d.ts +14 -5
- package/dist/components/AutoComplete.js +3 -2
- package/dist/components/AutoComplete.mjs +2 -1
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Avatar.mjs +2 -2
- package/dist/components/AvatarGroup.js +2 -2
- package/dist/components/AvatarGroup.mjs +1 -1
- package/dist/components/BackTop.d.mts +2 -2
- package/dist/components/BackTop.d.ts +2 -2
- package/dist/components/BackTop.js +2 -2
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.d.mts +13 -4
- package/dist/components/Badge.d.ts +13 -4
- package/dist/components/Badge.js +3 -2
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.d.mts +2 -2
- package/dist/components/BarChart.d.ts +2 -2
- package/dist/components/BarChart.js +4 -4
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Breadcrumb.d.mts +3 -3
- package/dist/components/Breadcrumb.d.ts +3 -3
- package/dist/components/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb.mjs +1 -1
- package/dist/components/BreadcrumbItem.js +3 -3
- package/dist/components/BreadcrumbItem.mjs +1 -1
- package/dist/components/Button.d.mts +3 -3
- package/dist/components/Button.d.ts +3 -3
- package/dist/components/ButtonGroup.d.mts +1 -1
- package/dist/components/ButtonGroup.d.ts +1 -1
- package/dist/components/Calendar.d.mts +17 -7
- package/dist/components/Calendar.d.ts +17 -7
- package/dist/components/Calendar.js +3 -2
- package/dist/components/Calendar.mjs +2 -1
- package/dist/components/Card.d.mts +2 -2
- package/dist/components/Card.d.ts +2 -2
- package/dist/components/Cascader.d.mts +19 -3
- package/dist/components/Cascader.d.ts +19 -3
- package/dist/components/Cascader.js +3 -2
- package/dist/components/Cascader.mjs +2 -1
- package/dist/components/ChartCanvas.d.mts +1 -1
- package/dist/components/ChartCanvas.d.ts +1 -1
- package/dist/components/ChartGrid.d.mts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ChartLegend.js +2 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartTooltip.js +2 -2
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.d.mts +9 -9
- package/dist/components/ChatWindow.d.ts +9 -9
- package/dist/components/ChatWindow.js +10 -8
- package/dist/components/ChatWindow.mjs +9 -7
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/Checkbox.mjs +2 -2
- package/dist/components/CheckboxGroup.js +2 -2
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/CodeEditor.d.mts +2 -2
- package/dist/components/CodeEditor.d.ts +2 -2
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/Collapse.d.mts +1 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/CollapsePanel.d.mts +1 -1
- package/dist/components/CollapsePanel.d.ts +1 -1
- package/dist/components/ColorSwatch.d.mts +2 -2
- package/dist/components/ColorSwatch.d.ts +2 -2
- package/dist/components/CommentThread.d.mts +9 -5
- package/dist/components/CommentThread.d.ts +9 -5
- package/dist/components/CommentThread.js +8 -6
- package/dist/components/CommentThread.mjs +7 -5
- package/dist/components/ConfigProvider.d.mts +1 -1
- package/dist/components/ConfigProvider.d.ts +1 -1
- package/dist/components/ConfigProvider.js +2 -2
- package/dist/components/ConfigProvider.mjs +1 -1
- package/dist/components/Container.d.mts +1 -1
- package/dist/components/Container.d.ts +1 -1
- package/dist/components/Countdown.d.mts +2 -2
- package/dist/components/Countdown.d.ts +2 -2
- package/dist/components/CronEditor.d.mts +1 -1
- package/dist/components/CronEditor.d.ts +1 -1
- package/dist/components/CropUpload.d.mts +13 -3
- package/dist/components/CropUpload.d.ts +13 -3
- package/dist/components/CropUpload.js +5 -5
- package/dist/components/CropUpload.mjs +4 -4
- package/dist/components/DataTableWithToolbar.d.mts +235 -13
- package/dist/components/DataTableWithToolbar.d.ts +235 -13
- package/dist/components/DataTableWithToolbar.js +10 -9
- package/dist/components/DataTableWithToolbar.mjs +9 -8
- package/dist/components/DatePicker.d.mts +8 -3
- package/dist/components/DatePicker.d.ts +8 -3
- package/dist/components/DatePicker.js +3 -2
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/Descriptions.d.mts +2 -2
- package/dist/components/Descriptions.d.ts +2 -2
- package/dist/components/DonutChart.d.mts +12 -3
- package/dist/components/DonutChart.d.ts +12 -3
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Drawer.d.mts +5 -5
- package/dist/components/Drawer.d.ts +5 -5
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Drawer.mjs +2 -2
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/DropdownMenu.js +3 -3
- package/dist/components/DropdownMenu.mjs +1 -1
- package/dist/components/Empty.d.mts +11 -1
- package/dist/components/Empty.d.ts +11 -1
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +31 -21
- package/dist/components/FileManager.d.ts +31 -21
- package/dist/components/FileManager.js +3 -2
- package/dist/components/FileManager.mjs +2 -1
- package/dist/components/FloatButton.d.mts +6 -6
- package/dist/components/FloatButton.d.ts +6 -6
- package/dist/components/FloatButton.js +2 -2
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.d.mts +19 -2
- package/dist/components/Form.d.ts +19 -2
- package/dist/components/Form.js +3 -2
- package/dist/components/Form.mjs +2 -1
- package/dist/components/FormItem.js +4 -3
- package/dist/components/FormItem.mjs +3 -2
- package/dist/components/FormWizard.d.mts +5 -5
- package/dist/components/FormWizard.d.ts +5 -5
- package/dist/components/FormWizard.js +4 -4
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/FunnelChart.d.mts +2 -2
- package/dist/components/FunnelChart.d.ts +2 -2
- package/dist/components/FunnelChart.js +4 -4
- package/dist/components/FunnelChart.mjs +3 -3
- package/dist/components/Gantt.d.mts +3 -3
- package/dist/components/Gantt.d.ts +3 -3
- package/dist/components/GaugeChart.d.mts +17 -2
- package/dist/components/GaugeChart.d.ts +17 -2
- package/dist/components/GaugeChart.js +3 -2
- package/dist/components/GaugeChart.mjs +2 -1
- package/dist/components/HeatmapChart.d.mts +3 -3
- package/dist/components/HeatmapChart.d.ts +3 -3
- package/dist/components/HeatmapChart.js +3 -3
- package/dist/components/HeatmapChart.mjs +2 -2
- package/dist/components/Icon.d.mts +1 -1
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Image.d.mts +2 -2
- package/dist/components/Image.d.ts +2 -2
- package/dist/components/Image.js +4 -3
- package/dist/components/Image.mjs +3 -2
- package/dist/components/ImageAnnotation.d.mts +15 -5
- package/dist/components/ImageAnnotation.d.ts +15 -5
- package/dist/components/ImageAnnotation.js +3 -2
- package/dist/components/ImageAnnotation.mjs +2 -1
- package/dist/components/ImageCropper.d.mts +11 -0
- package/dist/components/ImageCropper.d.ts +11 -0
- package/dist/components/ImageCropper.js +3 -2
- package/dist/components/ImageCropper.mjs +2 -1
- package/dist/components/ImageGroup.js +4 -3
- package/dist/components/ImageGroup.mjs +3 -2
- package/dist/components/ImagePreview.d.mts +11 -0
- package/dist/components/ImagePreview.d.ts +11 -0
- package/dist/components/ImagePreview.js +3 -2
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +11 -0
- package/dist/components/ImageViewer.d.ts +11 -0
- package/dist/components/ImageViewer.js +3 -2
- package/dist/components/ImageViewer.mjs +2 -1
- package/dist/components/InfiniteScroll.d.mts +17 -6
- package/dist/components/InfiniteScroll.d.ts +17 -6
- package/dist/components/InfiniteScroll.js +3 -2
- package/dist/components/InfiniteScroll.mjs +2 -1
- package/dist/components/Input.d.mts +4 -4
- package/dist/components/Input.d.ts +4 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputGroup.d.mts +1 -1
- package/dist/components/InputGroup.d.ts +1 -1
- package/dist/components/InputNumber.d.mts +21 -1
- package/dist/components/InputNumber.d.ts +21 -1
- package/dist/components/InputNumber.js +3 -2
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/Kanban.d.mts +22 -2
- package/dist/components/Kanban.d.ts +22 -2
- package/dist/components/Kanban.js +4 -4
- package/dist/components/Kanban.mjs +3 -3
- package/dist/components/LineChart.d.mts +2 -2
- package/dist/components/LineChart.d.ts +2 -2
- package/dist/components/LineChart.js +4 -4
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/Link.d.mts +1 -1
- package/dist/components/Link.d.ts +1 -1
- package/dist/components/List.d.mts +24 -9
- package/dist/components/List.d.ts +24 -9
- package/dist/components/List.js +4 -3
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.d.mts +16 -6
- package/dist/components/Loading.d.ts +16 -6
- package/dist/components/Loading.js +3 -2
- package/dist/components/Loading.mjs +2 -1
- package/dist/components/MarkdownEditor.d.mts +2 -2
- package/dist/components/MarkdownEditor.d.ts +2 -2
- package/dist/components/MarkdownEditor.js +2 -2
- package/dist/components/MarkdownEditor.mjs +1 -1
- package/dist/components/Mentions.d.mts +2 -2
- package/dist/components/Mentions.d.ts +2 -2
- package/dist/components/Mentions.js +2 -2
- package/dist/components/Mentions.mjs +1 -1
- package/dist/components/Menu.d.mts +5 -5
- package/dist/components/Menu.d.ts +5 -5
- package/dist/components/Menu.js +2 -2
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItemGroup.js +3 -3
- package/dist/components/MenuItemGroup.mjs +1 -1
- package/dist/components/Message.d.mts +11 -1
- package/dist/components/Message.d.ts +11 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.d.mts +8 -8
- package/dist/components/Modal.d.ts +8 -8
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Notification.mjs +1 -1
- package/dist/components/NotificationCenter.d.mts +5 -5
- package/dist/components/NotificationCenter.d.ts +5 -5
- package/dist/components/NotificationCenter.js +7 -6
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NumberKeyboard.d.mts +17 -8
- package/dist/components/NumberKeyboard.d.ts +17 -8
- package/dist/components/NumberKeyboard.js +3 -2
- package/dist/components/NumberKeyboard.mjs +2 -1
- package/dist/components/OrgChart.d.mts +3 -3
- package/dist/components/OrgChart.d.ts +3 -3
- package/dist/components/Pagination.d.mts +4 -4
- package/dist/components/Pagination.d.ts +4 -4
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Pagination.mjs +2 -2
- package/dist/components/PieChart.d.mts +12 -3
- package/dist/components/PieChart.d.ts +12 -3
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/Popconfirm.d.mts +2 -2
- package/dist/components/Popconfirm.d.ts +2 -2
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Progress.d.mts +3 -3
- package/dist/components/Progress.d.ts +3 -3
- package/dist/components/QRCode.d.mts +13 -3
- package/dist/components/QRCode.d.ts +13 -3
- package/dist/components/QRCode.js +3 -2
- package/dist/components/QRCode.mjs +2 -1
- package/dist/components/RadarChart.d.mts +3 -3
- package/dist/components/RadarChart.d.ts +3 -3
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +3 -3
- package/dist/components/Rate.js +2 -2
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Resizable.js +2 -2
- package/dist/components/Resizable.mjs +1 -1
- package/dist/components/Result.d.mts +1 -1
- package/dist/components/Result.d.ts +1 -1
- package/dist/components/Result.js +2 -2
- package/dist/components/Result.mjs +1 -1
- package/dist/components/RichTextEditor.d.mts +1 -1
- package/dist/components/RichTextEditor.d.ts +1 -1
- package/dist/components/RichTextEditor.js +2 -2
- package/dist/components/RichTextEditor.mjs +1 -1
- package/dist/components/Row.d.mts +1 -1
- package/dist/components/Row.d.ts +1 -1
- package/dist/components/ScatterChart.d.mts +2 -2
- package/dist/components/ScatterChart.d.ts +2 -2
- package/dist/components/ScatterChart.js +4 -4
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/ScrollSpy.d.mts +3 -3
- package/dist/components/ScrollSpy.d.ts +3 -3
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.d.mts +22 -6
- package/dist/components/Select.d.ts +22 -6
- package/dist/components/Select.js +3 -2
- package/dist/components/Select.mjs +2 -1
- package/dist/components/Signature.d.mts +16 -7
- package/dist/components/Signature.d.ts +16 -7
- package/dist/components/Signature.js +3 -2
- package/dist/components/Signature.mjs +2 -1
- package/dist/components/Skeleton.d.mts +1 -1
- package/dist/components/Skeleton.d.ts +1 -1
- package/dist/components/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Space.d.mts +2 -2
- package/dist/components/Space.d.ts +2 -2
- package/dist/components/Splitter.d.mts +1 -1
- package/dist/components/Splitter.d.ts +1 -1
- package/dist/components/Spotlight.d.mts +17 -9
- package/dist/components/Spotlight.d.ts +17 -9
- package/dist/components/Spotlight.js +3 -2
- package/dist/components/Spotlight.mjs +2 -1
- package/dist/components/Steps.d.mts +3 -3
- package/dist/components/Steps.d.ts +3 -3
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +3 -3
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SubMenu.js +3 -3
- package/dist/components/SubMenu.mjs +1 -1
- package/dist/components/SunburstChart.d.mts +2 -2
- package/dist/components/SunburstChart.d.ts +2 -2
- package/dist/components/SunburstChart.js +4 -4
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/TabPane.js +3 -3
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +8 -8
- package/dist/components/Table.d.ts +8 -8
- package/dist/components/Table.js +7 -7
- package/dist/components/Table.mjs +6 -6
- package/dist/components/Tabs.d.mts +4 -2
- package/dist/components/Tabs.d.ts +4 -2
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.d.mts +14 -4
- package/dist/components/Tag.d.ts +14 -4
- package/dist/components/Tag.js +3 -2
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +23 -3
- package/dist/components/TaskBoard.d.ts +23 -3
- package/dist/components/TaskBoard.js +3 -3
- package/dist/components/TaskBoard.mjs +2 -2
- package/dist/components/Text.d.mts +3 -3
- package/dist/components/Text.d.ts +3 -3
- package/dist/components/Textarea.d.mts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/TimePicker.d.mts +7 -7
- package/dist/components/TimePicker.d.ts +7 -7
- package/dist/components/TimePicker.js +3 -2
- package/dist/components/TimePicker.mjs +2 -1
- package/dist/components/Timeline.d.mts +14 -4
- package/dist/components/Timeline.d.ts +14 -4
- package/dist/components/Timeline.js +3 -2
- package/dist/components/Timeline.mjs +2 -1
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tour.d.mts +20 -12
- package/dist/components/Tour.d.ts +20 -12
- package/dist/components/Tour.js +4 -2
- package/dist/components/Tour.mjs +3 -1
- package/dist/components/Transfer.d.mts +37 -5
- package/dist/components/Transfer.d.ts +37 -5
- package/dist/components/Transfer.js +3 -2
- package/dist/components/Transfer.mjs +2 -1
- package/dist/components/Tree.d.mts +23 -7
- package/dist/components/Tree.d.ts +23 -7
- package/dist/components/Tree.js +4 -3
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.d.mts +2 -2
- package/dist/components/TreeMapChart.d.ts +2 -2
- package/dist/components/TreeMapChart.js +4 -4
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/TreeSelect.d.mts +18 -3
- package/dist/components/TreeSelect.d.ts +18 -3
- package/dist/components/TreeSelect.js +3 -2
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.d.mts +4 -4
- package/dist/components/Upload.d.ts +4 -4
- package/dist/components/Upload.js +3 -3
- package/dist/components/Upload.mjs +2 -2
- package/dist/components/VirtualList.d.mts +11 -0
- package/dist/components/VirtualList.d.ts +11 -0
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +44 -5
- package/dist/components/VirtualTable.d.ts +44 -5
- package/dist/components/VirtualTable.js +3 -2
- package/dist/components/VirtualTable.mjs +2 -1
- package/dist/components/Watermark.d.mts +1 -1
- package/dist/components/Watermark.d.ts +1 -1
- package/dist/index.d.mts +134 -134
- package/dist/index.d.ts +134 -134
- package/dist/index.js +96 -96
- package/dist/index.mjs +97 -97
- package/package.json +6 -6
- package/dist/chunk-7QX4QWWN.js +0 -194
- package/dist/chunk-DJCTERZH.js +0 -92
- package/dist/chunk-LD7ZJCTO.mjs +0 -167
- package/dist/chunk-XAQID5IO.js +0 -167
- package/dist/chunk-XGO5Q6KK.js +0 -189
- package/dist/chunk-ZSQ5I2KL.mjs +0 -194
- package/dist/chunk-ZYCOHZCM.mjs +0 -92
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkIXTYS3EKjs = require('./chunk-IXTYS3EK.js');
|
|
4
|
+
|
|
5
|
+
// src/components/FileManager.ts
|
|
6
|
+
var _vue = require('vue');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var _tigercatcore = require('@expcat/tigercat-core');
|
|
34
|
+
var FileManager = _vue.defineComponent.call(void 0, {
|
|
35
|
+
name: "TigerFileManager",
|
|
36
|
+
inheritAttrs: false,
|
|
37
|
+
props: {
|
|
38
|
+
files: { type: Array, default: () => [] },
|
|
39
|
+
viewMode: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "list"
|
|
42
|
+
},
|
|
43
|
+
selectedKeys: {
|
|
44
|
+
type: Array,
|
|
45
|
+
default: () => []
|
|
46
|
+
},
|
|
47
|
+
multiple: { type: Boolean, default: false },
|
|
48
|
+
columns: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: void 0
|
|
51
|
+
},
|
|
52
|
+
sortField: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "name"
|
|
55
|
+
},
|
|
56
|
+
sortOrder: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "asc"
|
|
59
|
+
},
|
|
60
|
+
currentPath: {
|
|
61
|
+
type: Array,
|
|
62
|
+
default: () => []
|
|
63
|
+
},
|
|
64
|
+
showHidden: { type: Boolean, default: false },
|
|
65
|
+
draggable: { type: Boolean, default: false },
|
|
66
|
+
loading: { type: Boolean, default: false },
|
|
67
|
+
emptyText: { type: String, default: void 0 },
|
|
68
|
+
searchable: { type: Boolean, default: false },
|
|
69
|
+
searchText: { type: String, default: "" },
|
|
70
|
+
className: { type: String, default: void 0 },
|
|
71
|
+
locale: { type: Object, default: void 0 }
|
|
72
|
+
},
|
|
73
|
+
emits: [
|
|
74
|
+
"select",
|
|
75
|
+
"open",
|
|
76
|
+
"navigate",
|
|
77
|
+
"update:currentPath",
|
|
78
|
+
"update:searchText",
|
|
79
|
+
"update:selectedKeys",
|
|
80
|
+
"update:files",
|
|
81
|
+
"reorder"
|
|
82
|
+
],
|
|
83
|
+
setup(props, { emit, attrs }) {
|
|
84
|
+
const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
|
|
85
|
+
const mergedLocale = _vue.computed.call(void 0, () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale));
|
|
86
|
+
const labels = _vue.computed.call(void 0, () => _tigercatcore.getFileManagerLabels.call(void 0, mergedLocale.value));
|
|
87
|
+
const localSearch = _vue.ref.call(void 0, props.searchText);
|
|
88
|
+
const focusedIndex = _vue.ref.call(void 0, 0);
|
|
89
|
+
const contentRef = _vue.ref.call(void 0, null);
|
|
90
|
+
let dragFromIndex = null;
|
|
91
|
+
function handleDragStart(event, item, index) {
|
|
92
|
+
if (!props.draggable || item.disabled) return;
|
|
93
|
+
dragFromIndex = index;
|
|
94
|
+
if (event.dataTransfer) {
|
|
95
|
+
event.dataTransfer.effectAllowed = "move";
|
|
96
|
+
event.dataTransfer.setData("text/plain", String(_tigercatcore.toFileDragItem.call(void 0, item, index).id));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function handleDragOver(event) {
|
|
100
|
+
if (!props.draggable || dragFromIndex === null) return;
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "move";
|
|
103
|
+
}
|
|
104
|
+
function handleDrop(event, toIndex) {
|
|
105
|
+
if (!props.draggable) return;
|
|
106
|
+
const fromIndex = dragFromIndex;
|
|
107
|
+
dragFromIndex = null;
|
|
108
|
+
if (fromIndex === null || fromIndex === toIndex) return;
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
const items = model.value.processedItems;
|
|
111
|
+
const reordered = _tigercatcore.applyFileDragReorder.call(void 0, items, {
|
|
112
|
+
item: _tigercatcore.toFileDragItem.call(void 0, items[fromIndex], fromIndex),
|
|
113
|
+
fromIndex,
|
|
114
|
+
toIndex,
|
|
115
|
+
fromContainerId: "",
|
|
116
|
+
toContainerId: ""
|
|
117
|
+
});
|
|
118
|
+
emit("reorder", reordered, fromIndex, toIndex);
|
|
119
|
+
emit("update:files", reordered);
|
|
120
|
+
}
|
|
121
|
+
const model = _vue.computed.call(void 0,
|
|
122
|
+
() => _tigercatcore.deriveFileManagerModel.call(void 0, {
|
|
123
|
+
files: props.files,
|
|
124
|
+
currentPath: props.currentPath,
|
|
125
|
+
selectedKeys: props.selectedKeys,
|
|
126
|
+
sortField: props.sortField,
|
|
127
|
+
sortOrder: props.sortOrder,
|
|
128
|
+
showHidden: props.showHidden,
|
|
129
|
+
searchText: localSearch.value || props.searchText
|
|
130
|
+
})
|
|
131
|
+
);
|
|
132
|
+
const containerClasses = _vue.computed.call(void 0,
|
|
133
|
+
() => _tigercatcore.classNames.call(void 0, _tigercatcore.getFileManagerContainerClasses.call(void 0, props.className), _tigercatcore.coerceClassValue.call(void 0, attrs.class))
|
|
134
|
+
);
|
|
135
|
+
function handleSelect(item) {
|
|
136
|
+
if (item.disabled) return;
|
|
137
|
+
emit("select", item);
|
|
138
|
+
const keys = _tigercatcore.toggleFileSelection.call(void 0, props.selectedKeys, item.key, props.multiple);
|
|
139
|
+
emit("update:selectedKeys", keys);
|
|
140
|
+
}
|
|
141
|
+
function handleOpen(item) {
|
|
142
|
+
const result = _tigercatcore.resolveFileOpen.call(void 0, item, props.currentPath);
|
|
143
|
+
if (!result) return;
|
|
144
|
+
if (result.type === "navigate") {
|
|
145
|
+
emit("update:currentPath", result.path);
|
|
146
|
+
emit("navigate", result.path);
|
|
147
|
+
} else {
|
|
148
|
+
emit("open", result.item);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function navigateToBreadcrumb(index) {
|
|
152
|
+
const newPath = _tigercatcore.sliceBreadcrumbPath.call(void 0, props.currentPath, index);
|
|
153
|
+
emit("update:currentPath", newPath);
|
|
154
|
+
emit("navigate", newPath);
|
|
155
|
+
}
|
|
156
|
+
function getFirstEnabledIndex() {
|
|
157
|
+
return model.value.processedItems.findIndex((item) => !item.disabled);
|
|
158
|
+
}
|
|
159
|
+
function getLastEnabledIndex() {
|
|
160
|
+
for (let index = model.value.processedItems.length - 1; index >= 0; index -= 1) {
|
|
161
|
+
if (!_optionalChain([model, 'access', _ => _.value, 'access', _2 => _2.processedItems, 'access', _3 => _3[index], 'optionalAccess', _4 => _4.disabled])) {
|
|
162
|
+
return index;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return -1;
|
|
166
|
+
}
|
|
167
|
+
function getFocusedItemIndex() {
|
|
168
|
+
return focusedIndex.value >= 0 && !_optionalChain([model, 'access', _5 => _5.value, 'access', _6 => _6.processedItems, 'access', _7 => _7[focusedIndex.value], 'optionalAccess', _8 => _8.disabled]) ? focusedIndex.value : getFirstEnabledIndex();
|
|
169
|
+
}
|
|
170
|
+
function focusItemAt(index) {
|
|
171
|
+
_vue.nextTick.call(void 0, () => {
|
|
172
|
+
_optionalChain([contentRef, 'access', _9 => _9.value, 'optionalAccess', _10 => _10.querySelector, 'call', _11 => _11(`[data-option-index="${index}"]`), 'optionalAccess', _12 => _12.focus, 'call', _13 => _13()]);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function moveFocus(current, direction) {
|
|
176
|
+
if (model.value.processedItems.length === 0) return;
|
|
177
|
+
let next = current;
|
|
178
|
+
for (let i = 0; i < model.value.processedItems.length; i += 1) {
|
|
179
|
+
next = (next + direction + model.value.processedItems.length) % model.value.processedItems.length;
|
|
180
|
+
if (!_optionalChain([model, 'access', _14 => _14.value, 'access', _15 => _15.processedItems, 'access', _16 => _16[next], 'optionalAccess', _17 => _17.disabled])) {
|
|
181
|
+
focusedIndex.value = next;
|
|
182
|
+
focusItemAt(next);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function handleItemKeydown(event, item, index) {
|
|
188
|
+
switch (event.key) {
|
|
189
|
+
case "ArrowDown":
|
|
190
|
+
case "ArrowRight":
|
|
191
|
+
event.preventDefault();
|
|
192
|
+
moveFocus(index, 1);
|
|
193
|
+
return;
|
|
194
|
+
case "ArrowUp":
|
|
195
|
+
case "ArrowLeft":
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
moveFocus(index, -1);
|
|
198
|
+
return;
|
|
199
|
+
case "Home": {
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
const first = getFirstEnabledIndex();
|
|
202
|
+
if (first >= 0) {
|
|
203
|
+
focusedIndex.value = first;
|
|
204
|
+
focusItemAt(first);
|
|
205
|
+
}
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
case "End": {
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
const last = getLastEnabledIndex();
|
|
211
|
+
if (last >= 0) {
|
|
212
|
+
focusedIndex.value = last;
|
|
213
|
+
focusItemAt(last);
|
|
214
|
+
}
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
case " ":
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
handleSelect(item);
|
|
220
|
+
return;
|
|
221
|
+
case "Enter":
|
|
222
|
+
event.preventDefault();
|
|
223
|
+
handleSelect(item);
|
|
224
|
+
handleOpen(item);
|
|
225
|
+
return;
|
|
226
|
+
default:
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return () => {
|
|
231
|
+
const breadcrumbItems = [
|
|
232
|
+
_vue.h.call(void 0,
|
|
233
|
+
"span",
|
|
234
|
+
{
|
|
235
|
+
class: _tigercatcore.fileManagerBreadcrumbItemClasses,
|
|
236
|
+
onClick: () => navigateToBreadcrumb(0)
|
|
237
|
+
},
|
|
238
|
+
labels.value.rootText
|
|
239
|
+
),
|
|
240
|
+
...props.currentPath.flatMap((seg, i) => [
|
|
241
|
+
_vue.h.call(void 0, "span", { class: _tigercatcore.fileManagerBreadcrumbSeparatorClasses }, "/"),
|
|
242
|
+
_vue.h.call(void 0,
|
|
243
|
+
"span",
|
|
244
|
+
{
|
|
245
|
+
class: _tigercatcore.fileManagerBreadcrumbItemClasses,
|
|
246
|
+
onClick: () => navigateToBreadcrumb(i + 1)
|
|
247
|
+
},
|
|
248
|
+
seg
|
|
249
|
+
)
|
|
250
|
+
])
|
|
251
|
+
];
|
|
252
|
+
const breadcrumb = _vue.h.call(void 0,
|
|
253
|
+
"nav",
|
|
254
|
+
{ class: _tigercatcore.fileManagerBreadcrumbClasses, "aria-label": "File path" },
|
|
255
|
+
breadcrumbItems
|
|
256
|
+
);
|
|
257
|
+
const searchInput = props.searchable ? _vue.h.call(void 0, "input", {
|
|
258
|
+
type: "text",
|
|
259
|
+
class: _tigercatcore.fileManagerSearchClasses,
|
|
260
|
+
placeholder: _tigercatcore.resolveLocaleText.call(void 0,
|
|
261
|
+
"Search...",
|
|
262
|
+
_optionalChain([mergedLocale, 'access', _18 => _18.value, 'optionalAccess', _19 => _19.common, 'optionalAccess', _20 => _20.searchPlaceholder])
|
|
263
|
+
),
|
|
264
|
+
value: localSearch.value,
|
|
265
|
+
onInput: (e) => {
|
|
266
|
+
const val = e.target.value;
|
|
267
|
+
localSearch.value = val;
|
|
268
|
+
emit("update:searchText", val);
|
|
269
|
+
}
|
|
270
|
+
}) : null;
|
|
271
|
+
const toolbar = _vue.h.call(void 0, "div", { class: _tigercatcore.fileManagerToolbarClasses }, [
|
|
272
|
+
breadcrumb,
|
|
273
|
+
_vue.h.call(void 0, "div", { class: "flex-1" }),
|
|
274
|
+
searchInput
|
|
275
|
+
]);
|
|
276
|
+
const fileIcon = (item) => _vue.h.call(void 0,
|
|
277
|
+
"span",
|
|
278
|
+
{ class: _tigercatcore.fileManagerItemIconClasses, "aria-hidden": "true" },
|
|
279
|
+
item.type === "folder" ? "\u{1F4C1}" : "\u{1F4C4}"
|
|
280
|
+
);
|
|
281
|
+
const renderItem = (item, index) => {
|
|
282
|
+
const isSelected = model.value.selectedSet.has(item.key);
|
|
283
|
+
const itemClass = _tigercatcore.getFileItemClasses.call(void 0, props.viewMode, isSelected);
|
|
284
|
+
const focusedItem = getFocusedItemIndex();
|
|
285
|
+
const nameEl = _vue.h.call(void 0, "span", { class: _tigercatcore.fileManagerItemNameClasses }, item.name);
|
|
286
|
+
const metaColumns = _nullishCoalesce(props.columns, () => ( ["size", "modified"]));
|
|
287
|
+
const metaEls = props.viewMode === "list" ? [
|
|
288
|
+
metaColumns.includes("type") ? _vue.h.call(void 0, "span", { class: _tigercatcore.fileManagerItemMetaClasses }, _nullishCoalesce(item.extension, () => ( item.type))) : null,
|
|
289
|
+
metaColumns.includes("size") && item.size !== void 0 ? _vue.h.call(void 0, "span", { class: _tigercatcore.fileManagerItemMetaClasses }, _tigercatcore.formatFileSizeLabel.call(void 0, item.size)) : null,
|
|
290
|
+
metaColumns.includes("modified") && item.modified ? _vue.h.call(void 0, "span", { class: _tigercatcore.fileManagerItemMetaClasses }, item.modified) : null
|
|
291
|
+
] : [];
|
|
292
|
+
const dragItem = props.draggable && !item.disabled ? _tigercatcore.toFileDragItem.call(void 0, item, index) : void 0;
|
|
293
|
+
return _vue.h.call(void 0,
|
|
294
|
+
"div",
|
|
295
|
+
{
|
|
296
|
+
key: item.key,
|
|
297
|
+
class: itemClass,
|
|
298
|
+
role: "option",
|
|
299
|
+
"aria-selected": isSelected,
|
|
300
|
+
tabindex: !item.disabled && index === focusedItem ? 0 : -1,
|
|
301
|
+
"data-option-index": index,
|
|
302
|
+
"data-disabled": item.disabled || void 0,
|
|
303
|
+
onFocus: () => {
|
|
304
|
+
if (!item.disabled) focusedIndex.value = index;
|
|
305
|
+
},
|
|
306
|
+
onKeydown: (event) => handleItemKeydown(event, item, index),
|
|
307
|
+
onClick: () => handleSelect(item),
|
|
308
|
+
onDblclick: () => handleOpen(item),
|
|
309
|
+
draggable: props.draggable && !item.disabled,
|
|
310
|
+
"data-drag-id": _optionalChain([dragItem, 'optionalAccess', _21 => _21.id]),
|
|
311
|
+
onDragstart: (event) => handleDragStart(event, item, index),
|
|
312
|
+
onDragover: handleDragOver,
|
|
313
|
+
onDrop: (event) => handleDrop(event, index)
|
|
314
|
+
},
|
|
315
|
+
[fileIcon(item), nameEl, ...metaEls]
|
|
316
|
+
);
|
|
317
|
+
};
|
|
318
|
+
const contentClass = props.viewMode === "grid" ? `${_tigercatcore.fileManagerContentClasses} grid grid-cols-4 gap-2` : _tigercatcore.fileManagerContentClasses;
|
|
319
|
+
const content = model.value.processedItems.length > 0 ? _vue.h.call(void 0,
|
|
320
|
+
"div",
|
|
321
|
+
{
|
|
322
|
+
ref: contentRef,
|
|
323
|
+
class: contentClass,
|
|
324
|
+
role: "listbox",
|
|
325
|
+
"aria-multiselectable": props.multiple
|
|
326
|
+
},
|
|
327
|
+
model.value.processedItems.map(renderItem)
|
|
328
|
+
) : _vue.h.call(void 0,
|
|
329
|
+
"div",
|
|
330
|
+
{ class: _tigercatcore.fileManagerEmptyClasses },
|
|
331
|
+
_tigercatcore.resolveLocaleText.call(void 0,
|
|
332
|
+
"Empty folder",
|
|
333
|
+
props.emptyText,
|
|
334
|
+
_optionalChain([mergedLocale, 'access', _22 => _22.value, 'optionalAccess', _23 => _23.common, 'optionalAccess', _24 => _24.emptyText])
|
|
335
|
+
)
|
|
336
|
+
);
|
|
337
|
+
const loadingEl = props.loading ? _vue.h.call(void 0,
|
|
338
|
+
"div",
|
|
339
|
+
{ class: _tigercatcore.fileManagerLoadingClasses },
|
|
340
|
+
_tigercatcore.resolveLocaleText.call(void 0, "Loading...", _optionalChain([mergedLocale, 'access', _25 => _25.value, 'optionalAccess', _26 => _26.common, 'optionalAccess', _27 => _27.loadingText]))
|
|
341
|
+
) : null;
|
|
342
|
+
return _vue.h.call(void 0, "div", { class: containerClasses.value }, [toolbar, content, loadingEl]);
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
var FileManager_default = FileManager;
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
exports.FileManager = FileManager; exports.FileManager_default = FileManager_default;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Select
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QH3YF5B6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Radio
|
|
6
6
|
} from "./chunk-YZP4K6KI.mjs";
|
|
7
|
-
import {
|
|
8
|
-
useTigerConfig
|
|
9
|
-
} from "./chunk-VG6E4NX6.mjs";
|
|
10
7
|
import {
|
|
11
8
|
Empty
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WLHOWOAY.mjs";
|
|
13
10
|
import {
|
|
14
11
|
Checkbox
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UKMOWUYH.mjs";
|
|
13
|
+
import {
|
|
14
|
+
useTigerConfig
|
|
15
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
16
16
|
|
|
17
17
|
// src/components/Table.ts
|
|
18
18
|
import {
|
|
19
19
|
computed as computed2,
|
|
20
20
|
defineComponent,
|
|
21
|
+
getCurrentInstance,
|
|
21
22
|
h as h6,
|
|
22
23
|
onBeforeUnmount,
|
|
23
24
|
onMounted,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
getTableResponsiveCardListClasses,
|
|
40
41
|
getTableResponsiveTableClasses,
|
|
41
42
|
getTableVirtualRecommendation,
|
|
43
|
+
getTableVirtualWindow,
|
|
42
44
|
isLazyTigerLocale,
|
|
43
45
|
mergeTigerLocale,
|
|
44
46
|
resolveTigerLocale,
|
|
@@ -211,7 +213,7 @@ var tableEmits = [
|
|
|
211
213
|
"sort-change",
|
|
212
214
|
"filter-change",
|
|
213
215
|
"update:hiddenColumnKeys",
|
|
214
|
-
"hidden-
|
|
216
|
+
"hidden-column-keys-change",
|
|
215
217
|
"page-change",
|
|
216
218
|
"expand-change",
|
|
217
219
|
"cell-change",
|
|
@@ -224,7 +226,7 @@ var tableEmits = [
|
|
|
224
226
|
import { computed, ref, watch } from "vue";
|
|
225
227
|
import {
|
|
226
228
|
sortData,
|
|
227
|
-
|
|
229
|
+
filterTableData,
|
|
228
230
|
paginateData,
|
|
229
231
|
calculatePagination,
|
|
230
232
|
createTableRowKeyCache,
|
|
@@ -233,7 +235,10 @@ import {
|
|
|
233
235
|
getFixedColumnOffsets,
|
|
234
236
|
filterHiddenColumns,
|
|
235
237
|
freezeTableColumnWidths,
|
|
236
|
-
orderTableFixedColumns
|
|
238
|
+
orderTableFixedColumns,
|
|
239
|
+
getNextTableSelectAllKeys,
|
|
240
|
+
getTableSelectionState,
|
|
241
|
+
hasTableSelectionColumn
|
|
237
242
|
} from "@expcat/tigercat-core";
|
|
238
243
|
import { exportTableData, downloadTableExport } from "@expcat/tigercat-core";
|
|
239
244
|
function useTableState(props, emit, measuredColumnWidths) {
|
|
@@ -373,7 +378,7 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
373
378
|
uncontrolledHiddenColumnKeys.value = hiddenKeys;
|
|
374
379
|
}
|
|
375
380
|
emit("update:hiddenColumnKeys", hiddenKeys);
|
|
376
|
-
emit("hidden-
|
|
381
|
+
emit("hidden-column-keys-change", hiddenKeys);
|
|
377
382
|
}
|
|
378
383
|
function toggleColumnLock(columnKey) {
|
|
379
384
|
const original = props.columns.find((c) => c.key === columnKey)?.fixed;
|
|
@@ -387,7 +392,7 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
387
392
|
if (props.filterMode === "advanced" && (props.advancedFilterRules?.length ?? 0) > 0) {
|
|
388
393
|
data = filterDataAdvanced(data, props.advancedFilterRules ?? []);
|
|
389
394
|
} else {
|
|
390
|
-
data =
|
|
395
|
+
data = filterTableData(data, props.columns, filterState.value);
|
|
391
396
|
}
|
|
392
397
|
if (sortState.value.key && sortState.value.direction) {
|
|
393
398
|
const column = columnByKey.value[sortState.value.key];
|
|
@@ -414,7 +419,7 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
414
419
|
});
|
|
415
420
|
const totalColumnCount = computed(() => {
|
|
416
421
|
let count = displayColumns.value.length;
|
|
417
|
-
if (props.rowSelection) count += 1;
|
|
422
|
+
if (hasTableSelectionColumn(props.rowSelection)) count += 1;
|
|
418
423
|
if (props.expandable) count += 1;
|
|
419
424
|
return count;
|
|
420
425
|
});
|
|
@@ -534,29 +539,27 @@ function useTableState(props, emit, measuredColumnWidths) {
|
|
|
534
539
|
}
|
|
535
540
|
emit("selection-change", newKeys);
|
|
536
541
|
}
|
|
542
|
+
const selectionState = computed(
|
|
543
|
+
() => getTableSelectionState({
|
|
544
|
+
records: paginatedData.value,
|
|
545
|
+
rowKeys: paginatedRowKeys.value,
|
|
546
|
+
selectedRowKeys: selectedRowKeys.value,
|
|
547
|
+
getCheckboxProps: props.rowSelection?.getCheckboxProps
|
|
548
|
+
})
|
|
549
|
+
);
|
|
537
550
|
function handleSelectAll(checked) {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
if (!isSelectionControlled.value) {
|
|
546
|
-
uncontrolledSelectedRowKeys.value = [];
|
|
547
|
-
}
|
|
548
|
-
emit("selection-change", []);
|
|
551
|
+
const nextKeys = getNextTableSelectAllKeys(
|
|
552
|
+
selectedRowKeys.value,
|
|
553
|
+
selectionState.value.selectableRowKeys,
|
|
554
|
+
checked
|
|
555
|
+
);
|
|
556
|
+
if (!isSelectionControlled.value) {
|
|
557
|
+
uncontrolledSelectedRowKeys.value = nextKeys;
|
|
549
558
|
}
|
|
559
|
+
emit("selection-change", nextKeys);
|
|
550
560
|
}
|
|
551
|
-
const allSelected = computed(() =>
|
|
552
|
-
|
|
553
|
-
return false;
|
|
554
|
-
}
|
|
555
|
-
return paginatedRowKeys.value.every((key) => selectedRowKeySet.value.has(key));
|
|
556
|
-
});
|
|
557
|
-
const someSelected = computed(() => {
|
|
558
|
-
return selectedRowKeys.value.length > 0 && !allSelected.value;
|
|
559
|
-
});
|
|
561
|
+
const allSelected = computed(() => selectionState.value.allSelected);
|
|
562
|
+
const someSelected = computed(() => selectionState.value.someSelected);
|
|
560
563
|
const editingCell = ref(null);
|
|
561
564
|
const editingValue = ref("");
|
|
562
565
|
function isCellEditable(columnKey, rowIndex) {
|
|
@@ -764,7 +767,7 @@ function renderTableHeader(ctx, props, slots, labels) {
|
|
|
764
767
|
const expandAtEnd = props.expandable && props.expandable.expandIconPosition === "end";
|
|
765
768
|
const expandHeaderTh = props.expandable ? h2("th", {
|
|
766
769
|
class: getExpandIconCellClasses(props.size),
|
|
767
|
-
"aria-label":
|
|
770
|
+
"aria-label": labels.expandText
|
|
768
771
|
}) : null;
|
|
769
772
|
if (expandAtStart && expandHeaderTh) {
|
|
770
773
|
headerCells.push(expandHeaderTh);
|
|
@@ -872,7 +875,7 @@ function renderTableHeader(ctx, props, slots, labels) {
|
|
|
872
875
|
onClick: (e) => e.stopPropagation()
|
|
873
876
|
},
|
|
874
877
|
[
|
|
875
|
-
h2("option", { value: "" },
|
|
878
|
+
h2("option", { value: "" }, labels.allText),
|
|
876
879
|
...column.filter.options.map(
|
|
877
880
|
(opt) => h2("option", { value: opt.value }, opt.label)
|
|
878
881
|
)
|
|
@@ -880,7 +883,7 @@ function renderTableHeader(ctx, props, slots, labels) {
|
|
|
880
883
|
) : h2("input", {
|
|
881
884
|
type: "text",
|
|
882
885
|
class: "w-full px-2 py-1 text-sm border border-gray-300 rounded",
|
|
883
|
-
placeholder: column.filter.placeholder ||
|
|
886
|
+
placeholder: column.filter.placeholder || labels.filterPlaceholder,
|
|
884
887
|
onInput: (e) => ctx.handleFilter(column.key, e.target.value),
|
|
885
888
|
onClick: (e) => e.stopPropagation()
|
|
886
889
|
})
|
|
@@ -900,6 +903,7 @@ function renderTableHeader(ctx, props, slots, labels) {
|
|
|
900
903
|
import { h as h3 } from "vue";
|
|
901
904
|
import {
|
|
902
905
|
classNames as classNames2,
|
|
906
|
+
isActivationKey,
|
|
903
907
|
getTableRowClasses,
|
|
904
908
|
getTableCellClasses,
|
|
905
909
|
getTableFixedCellClasses,
|
|
@@ -914,7 +918,7 @@ import {
|
|
|
914
918
|
tableGroupHeaderClasses,
|
|
915
919
|
getGroupHeaderCellClasses
|
|
916
920
|
} from "@expcat/tigercat-core";
|
|
917
|
-
function renderTableBody(ctx, props, slots) {
|
|
921
|
+
function renderTableBody(ctx, props, slots, labels) {
|
|
918
922
|
if (props.loading) {
|
|
919
923
|
return null;
|
|
920
924
|
}
|
|
@@ -999,7 +1003,7 @@ function renderTableBody(ctx, props, slots) {
|
|
|
999
1003
|
{
|
|
1000
1004
|
type: "button",
|
|
1001
1005
|
class: "inline-flex items-center justify-center",
|
|
1002
|
-
"aria-label": isExpanded ?
|
|
1006
|
+
"aria-label": isExpanded ? labels.collapseRowAriaLabel : labels.expandRowAriaLabel,
|
|
1003
1007
|
"aria-expanded": isExpanded,
|
|
1004
1008
|
onClick: (e) => {
|
|
1005
1009
|
e.stopPropagation();
|
|
@@ -1098,6 +1102,16 @@ function renderTableBody(ctx, props, slots) {
|
|
|
1098
1102
|
getTableRowClasses(props.hoverable, props.striped, index % 2 === 0, rowClass),
|
|
1099
1103
|
ctx.fixedColumnsInfo.value.hasFixedColumns && "group"
|
|
1100
1104
|
),
|
|
1105
|
+
"aria-selected": props.rowSelection ? isSelected : void 0,
|
|
1106
|
+
tabindex: props.interactiveRows ? 0 : void 0,
|
|
1107
|
+
// Delegated mouse click stays on tbody; add per-row keyboard activation.
|
|
1108
|
+
onKeydown: props.interactiveRows ? (e) => {
|
|
1109
|
+
if (e.target !== e.currentTarget) return;
|
|
1110
|
+
if (isActivationKey(e)) {
|
|
1111
|
+
e.preventDefault();
|
|
1112
|
+
ctx.handleRowClick(record, index, key);
|
|
1113
|
+
}
|
|
1114
|
+
} : void 0,
|
|
1101
1115
|
draggable: props.rowDraggable ? "true" : void 0
|
|
1102
1116
|
},
|
|
1103
1117
|
cells
|
|
@@ -1152,6 +1166,36 @@ function renderTableBody(ctx, props, slots) {
|
|
|
1152
1166
|
}
|
|
1153
1167
|
return h3("tbody", delegatedBodyHandlers, groupRows);
|
|
1154
1168
|
}
|
|
1169
|
+
const vw = props.virtualWindow;
|
|
1170
|
+
if (vw && vw.endIndex >= vw.startIndex) {
|
|
1171
|
+
const windowed = [];
|
|
1172
|
+
if (vw.topPad > 0) {
|
|
1173
|
+
windowed.push(
|
|
1174
|
+
h3("tr", { key: "virtual-top", "aria-hidden": "true" }, [
|
|
1175
|
+
h3("td", {
|
|
1176
|
+
colspan: ctx.totalColumnCount.value,
|
|
1177
|
+
style: { height: `${vw.topPad}px`, padding: 0 }
|
|
1178
|
+
})
|
|
1179
|
+
])
|
|
1180
|
+
);
|
|
1181
|
+
}
|
|
1182
|
+
for (let index = vw.startIndex; index <= vw.endIndex; index++) {
|
|
1183
|
+
const result = renderDataRow(ctx.paginatedData.value[index], index);
|
|
1184
|
+
if (Array.isArray(result)) windowed.push(...result);
|
|
1185
|
+
else windowed.push(result);
|
|
1186
|
+
}
|
|
1187
|
+
if (vw.bottomPad > 0) {
|
|
1188
|
+
windowed.push(
|
|
1189
|
+
h3("tr", { key: "virtual-bottom", "aria-hidden": "true" }, [
|
|
1190
|
+
h3("td", {
|
|
1191
|
+
colspan: ctx.totalColumnCount.value,
|
|
1192
|
+
style: { height: `${vw.bottomPad}px`, padding: 0 }
|
|
1193
|
+
})
|
|
1194
|
+
])
|
|
1195
|
+
);
|
|
1196
|
+
}
|
|
1197
|
+
return h3("tbody", delegatedBodyHandlers, windowed);
|
|
1198
|
+
}
|
|
1155
1199
|
const rows = ctx.paginatedData.value.flatMap((record, index) => renderDataRow(record, index));
|
|
1156
1200
|
return h3("tbody", delegatedBodyHandlers, rows);
|
|
1157
1201
|
}
|
|
@@ -1219,13 +1263,14 @@ function renderPagination(ctx, props, view) {
|
|
|
1219
1263
|
);
|
|
1220
1264
|
const finalPrevAriaLabel = view?.disableI18n ? finalPrevText : labels.prevPageAriaLabel;
|
|
1221
1265
|
const finalNextAriaLabel = view?.disableI18n ? finalNextText : labels.nextPageAriaLabel;
|
|
1222
|
-
const normalizedPageSizeOptions = paginationConfig.pageSizeOptions || [
|
|
1266
|
+
const normalizedPageSizeOptions = paginationConfig.pageSizeOptions || [
|
|
1267
|
+
10,
|
|
1268
|
+
20,
|
|
1269
|
+
50,
|
|
1270
|
+
100
|
|
1271
|
+
];
|
|
1223
1272
|
return h5("div", { class: getSimplePaginationContainerClasses() }, [
|
|
1224
|
-
paginationConfig.showTotal !== false && h5(
|
|
1225
|
-
"div",
|
|
1226
|
-
{ class: getSimplePaginationTotalClasses() },
|
|
1227
|
-
finalTotalText
|
|
1228
|
-
),
|
|
1273
|
+
paginationConfig.showTotal !== false && h5("div", { class: getSimplePaginationTotalClasses() }, finalTotalText),
|
|
1229
1274
|
h5("div", { class: getSimplePaginationControlsClasses() }, [
|
|
1230
1275
|
paginationConfig.showSizeChanger !== false && h5(
|
|
1231
1276
|
"select",
|
|
@@ -1286,6 +1331,7 @@ var Table = defineComponent({
|
|
|
1286
1331
|
emits: tableEmits,
|
|
1287
1332
|
setup(props, { emit, slots }) {
|
|
1288
1333
|
const config = useTigerConfig();
|
|
1334
|
+
const instance = getCurrentInstance();
|
|
1289
1335
|
const wrapperRef = ref2(null);
|
|
1290
1336
|
const tableRef = ref2(null);
|
|
1291
1337
|
const measuredColumnWidths = ref2({});
|
|
@@ -1397,9 +1443,19 @@ var Table = defineComponent({
|
|
|
1397
1443
|
const wrapperStyle = resolvedProps.maxHeight ? {
|
|
1398
1444
|
maxHeight: typeof resolvedProps.maxHeight === "number" ? `${resolvedProps.maxHeight}px` : resolvedProps.maxHeight
|
|
1399
1445
|
} : void 0;
|
|
1446
|
+
const virtualWindow = effectiveVirtual ? getTableVirtualWindow(
|
|
1447
|
+
ctx.virtualScrollTop.value,
|
|
1448
|
+
typeof resolvedProps.virtualHeight === "number" ? resolvedProps.virtualHeight : 400,
|
|
1449
|
+
resolvedProps.virtualItemHeight,
|
|
1450
|
+
ctx.paginatedData.value.length
|
|
1451
|
+
) : void 0;
|
|
1400
1452
|
const renderProps = {
|
|
1401
1453
|
...resolvedProps,
|
|
1402
|
-
emptyText: tableLabels.value.emptyText
|
|
1454
|
+
emptyText: tableLabels.value.emptyText,
|
|
1455
|
+
// Rows become keyboard-activable when a row-click listener is bound or
|
|
1456
|
+
// row selection is enabled (mirrors React's onRowClick/rowSelection).
|
|
1457
|
+
interactiveRows: !!resolvedProps.rowSelection || typeof instance?.vnode.props?.onRowClick === "function",
|
|
1458
|
+
virtualWindow
|
|
1403
1459
|
};
|
|
1404
1460
|
const shouldPinColumns = resolvedProps.columnLockable || ctx.fixedColumnsInfo.value.hasFixedColumns;
|
|
1405
1461
|
const colgroup = shouldPinColumns ? h6(
|
|
@@ -1420,7 +1476,7 @@ var Table = defineComponent({
|
|
|
1420
1476
|
const tableChildren = [
|
|
1421
1477
|
colgroup,
|
|
1422
1478
|
renderTableHeader(ctx, renderProps, slots, tableLabels.value),
|
|
1423
|
-
renderTableBody(ctx, renderProps, slots),
|
|
1479
|
+
renderTableBody(ctx, renderProps, slots, tableLabels.value),
|
|
1424
1480
|
renderSummaryRow(ctx, renderProps)
|
|
1425
1481
|
];
|
|
1426
1482
|
const tableInner = h6(
|
|
@@ -1768,9 +1824,9 @@ var Table = defineComponent({
|
|
|
1768
1824
|
type: "button",
|
|
1769
1825
|
class: tableExportButtonClasses,
|
|
1770
1826
|
onClick: ctx.handleExport,
|
|
1771
|
-
"aria-label": resolvedProps.exportFormat === "excel" ?
|
|
1827
|
+
"aria-label": resolvedProps.exportFormat === "excel" ? tableLabels.value.exportExcelAriaLabel : tableLabels.value.exportCsvAriaLabel
|
|
1772
1828
|
},
|
|
1773
|
-
resolvedProps.exportFormat === "excel" ?
|
|
1829
|
+
resolvedProps.exportFormat === "excel" ? tableLabels.value.exportExcelText : tableLabels.value.exportCsvText
|
|
1774
1830
|
)
|
|
1775
1831
|
]),
|
|
1776
1832
|
tableContent,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useTigerConfig
|
|
3
|
-
} from "./chunk-VG6E4NX6.mjs";
|
|
4
1
|
import {
|
|
5
2
|
renderVueBodyTeleport,
|
|
6
3
|
useVueBodyScrollLock,
|
|
7
4
|
useVueEscapeKey,
|
|
8
5
|
useVueFocusTrap
|
|
9
6
|
} from "./chunk-BDTPFPSB.mjs";
|
|
7
|
+
import {
|
|
8
|
+
useTigerConfig
|
|
9
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
10
10
|
|
|
11
11
|
// src/components/Drawer.ts
|
|
12
12
|
import {
|