@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
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/FileManager.ts
|
|
6
|
+
import { defineComponent, h, ref, computed, nextTick } from "vue";
|
|
7
|
+
import {
|
|
8
|
+
classNames,
|
|
9
|
+
coerceClassValue,
|
|
10
|
+
getFileManagerContainerClasses,
|
|
11
|
+
getFileItemClasses,
|
|
12
|
+
deriveFileManagerModel,
|
|
13
|
+
toggleFileSelection,
|
|
14
|
+
resolveFileOpen,
|
|
15
|
+
sliceBreadcrumbPath,
|
|
16
|
+
toFileDragItem,
|
|
17
|
+
applyFileDragReorder,
|
|
18
|
+
formatFileSizeLabel,
|
|
19
|
+
getFileManagerLabels,
|
|
20
|
+
fileManagerToolbarClasses,
|
|
21
|
+
fileManagerBreadcrumbClasses,
|
|
22
|
+
fileManagerBreadcrumbItemClasses,
|
|
23
|
+
fileManagerBreadcrumbSeparatorClasses,
|
|
24
|
+
fileManagerContentClasses,
|
|
25
|
+
fileManagerItemIconClasses,
|
|
26
|
+
fileManagerItemNameClasses,
|
|
27
|
+
fileManagerItemMetaClasses,
|
|
28
|
+
fileManagerEmptyClasses,
|
|
29
|
+
fileManagerLoadingClasses,
|
|
30
|
+
fileManagerSearchClasses,
|
|
31
|
+
resolveLocaleText,
|
|
32
|
+
mergeTigerLocale
|
|
33
|
+
} from "@expcat/tigercat-core";
|
|
34
|
+
var FileManager = defineComponent({
|
|
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 = useTigerConfig();
|
|
85
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
86
|
+
const labels = computed(() => getFileManagerLabels(mergedLocale.value));
|
|
87
|
+
const localSearch = ref(props.searchText);
|
|
88
|
+
const focusedIndex = ref(0);
|
|
89
|
+
const contentRef = ref(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(toFileDragItem(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 = applyFileDragReorder(items, {
|
|
112
|
+
item: toFileDragItem(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 = computed(
|
|
122
|
+
() => deriveFileManagerModel({
|
|
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 = computed(
|
|
133
|
+
() => classNames(getFileManagerContainerClasses(props.className), coerceClassValue(attrs.class))
|
|
134
|
+
);
|
|
135
|
+
function handleSelect(item) {
|
|
136
|
+
if (item.disabled) return;
|
|
137
|
+
emit("select", item);
|
|
138
|
+
const keys = toggleFileSelection(props.selectedKeys, item.key, props.multiple);
|
|
139
|
+
emit("update:selectedKeys", keys);
|
|
140
|
+
}
|
|
141
|
+
function handleOpen(item) {
|
|
142
|
+
const result = resolveFileOpen(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 = sliceBreadcrumbPath(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 (!model.value.processedItems[index]?.disabled) {
|
|
162
|
+
return index;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return -1;
|
|
166
|
+
}
|
|
167
|
+
function getFocusedItemIndex() {
|
|
168
|
+
return focusedIndex.value >= 0 && !model.value.processedItems[focusedIndex.value]?.disabled ? focusedIndex.value : getFirstEnabledIndex();
|
|
169
|
+
}
|
|
170
|
+
function focusItemAt(index) {
|
|
171
|
+
nextTick(() => {
|
|
172
|
+
contentRef.value?.querySelector(`[data-option-index="${index}"]`)?.focus();
|
|
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 (!model.value.processedItems[next]?.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
|
+
h(
|
|
233
|
+
"span",
|
|
234
|
+
{
|
|
235
|
+
class: fileManagerBreadcrumbItemClasses,
|
|
236
|
+
onClick: () => navigateToBreadcrumb(0)
|
|
237
|
+
},
|
|
238
|
+
labels.value.rootText
|
|
239
|
+
),
|
|
240
|
+
...props.currentPath.flatMap((seg, i) => [
|
|
241
|
+
h("span", { class: fileManagerBreadcrumbSeparatorClasses }, "/"),
|
|
242
|
+
h(
|
|
243
|
+
"span",
|
|
244
|
+
{
|
|
245
|
+
class: fileManagerBreadcrumbItemClasses,
|
|
246
|
+
onClick: () => navigateToBreadcrumb(i + 1)
|
|
247
|
+
},
|
|
248
|
+
seg
|
|
249
|
+
)
|
|
250
|
+
])
|
|
251
|
+
];
|
|
252
|
+
const breadcrumb = h(
|
|
253
|
+
"nav",
|
|
254
|
+
{ class: fileManagerBreadcrumbClasses, "aria-label": "File path" },
|
|
255
|
+
breadcrumbItems
|
|
256
|
+
);
|
|
257
|
+
const searchInput = props.searchable ? h("input", {
|
|
258
|
+
type: "text",
|
|
259
|
+
class: fileManagerSearchClasses,
|
|
260
|
+
placeholder: resolveLocaleText(
|
|
261
|
+
"Search...",
|
|
262
|
+
mergedLocale.value?.common?.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 = h("div", { class: fileManagerToolbarClasses }, [
|
|
272
|
+
breadcrumb,
|
|
273
|
+
h("div", { class: "flex-1" }),
|
|
274
|
+
searchInput
|
|
275
|
+
]);
|
|
276
|
+
const fileIcon = (item) => h(
|
|
277
|
+
"span",
|
|
278
|
+
{ class: 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 = getFileItemClasses(props.viewMode, isSelected);
|
|
284
|
+
const focusedItem = getFocusedItemIndex();
|
|
285
|
+
const nameEl = h("span", { class: fileManagerItemNameClasses }, item.name);
|
|
286
|
+
const metaColumns = props.columns ?? ["size", "modified"];
|
|
287
|
+
const metaEls = props.viewMode === "list" ? [
|
|
288
|
+
metaColumns.includes("type") ? h("span", { class: fileManagerItemMetaClasses }, item.extension ?? item.type) : null,
|
|
289
|
+
metaColumns.includes("size") && item.size !== void 0 ? h("span", { class: fileManagerItemMetaClasses }, formatFileSizeLabel(item.size)) : null,
|
|
290
|
+
metaColumns.includes("modified") && item.modified ? h("span", { class: fileManagerItemMetaClasses }, item.modified) : null
|
|
291
|
+
] : [];
|
|
292
|
+
const dragItem = props.draggable && !item.disabled ? toFileDragItem(item, index) : void 0;
|
|
293
|
+
return h(
|
|
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": dragItem?.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" ? `${fileManagerContentClasses} grid grid-cols-4 gap-2` : fileManagerContentClasses;
|
|
319
|
+
const content = model.value.processedItems.length > 0 ? h(
|
|
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
|
+
) : h(
|
|
329
|
+
"div",
|
|
330
|
+
{ class: fileManagerEmptyClasses },
|
|
331
|
+
resolveLocaleText(
|
|
332
|
+
"Empty folder",
|
|
333
|
+
props.emptyText,
|
|
334
|
+
mergedLocale.value?.common?.emptyText
|
|
335
|
+
)
|
|
336
|
+
);
|
|
337
|
+
const loadingEl = props.loading ? h(
|
|
338
|
+
"div",
|
|
339
|
+
{ class: fileManagerLoadingClasses },
|
|
340
|
+
resolveLocaleText("Loading...", mergedLocale.value?.common?.loadingText)
|
|
341
|
+
) : null;
|
|
342
|
+
return h("div", { class: containerClasses.value }, [toolbar, content, loadingEl]);
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
var FileManager_default = FileManager;
|
|
347
|
+
|
|
348
|
+
export {
|
|
349
|
+
FileManager,
|
|
350
|
+
FileManager_default
|
|
351
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkW34IV4ECjs = require('./chunk-W34IV4EC.js');
|
|
4
4
|
|
|
5
5
|
// src/components/DropdownItem.ts
|
|
6
6
|
var _vue = require('vue');
|
|
@@ -47,7 +47,7 @@ var DropdownItem = _vue.defineComponent.call(void 0, {
|
|
|
47
47
|
const attrsRecord = attrs;
|
|
48
48
|
const attrsClass = attrsRecord.class;
|
|
49
49
|
const attrsStyle = attrsRecord.style;
|
|
50
|
-
const context = _vue.inject.call(void 0,
|
|
50
|
+
const context = _vue.inject.call(void 0, _chunkW34IV4ECjs.DropdownContextKey, null);
|
|
51
51
|
const handleClick = (event) => {
|
|
52
52
|
if (props.disabled) {
|
|
53
53
|
event.preventDefault();
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/QRCode.ts
|
|
2
6
|
import { defineComponent, h, computed } from "vue";
|
|
3
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
classNames,
|
|
9
|
+
coerceClassValue,
|
|
10
|
+
mergeStyleValues,
|
|
11
|
+
resolveLocaleText,
|
|
12
|
+
mergeTigerLocale
|
|
13
|
+
} from "@expcat/tigercat-core";
|
|
4
14
|
import {
|
|
5
15
|
qrcodeContainerClasses,
|
|
6
16
|
qrcodeOverlayClasses,
|
|
@@ -18,14 +28,17 @@ var QRCode = defineComponent({
|
|
|
18
28
|
bgColor: { type: String, default: "#ffffff" },
|
|
19
29
|
level: { type: String, default: "M" },
|
|
20
30
|
status: { type: String, default: "active" },
|
|
21
|
-
className: { type: String, default: void 0 }
|
|
31
|
+
className: { type: String, default: void 0 },
|
|
32
|
+
locale: { type: Object, default: void 0 }
|
|
22
33
|
},
|
|
23
34
|
emits: ["refresh"],
|
|
24
35
|
setup(props, { emit, attrs }) {
|
|
36
|
+
const config = useTigerConfig();
|
|
37
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
25
38
|
const matrix = computed(() => generateQRMatrix(props.value));
|
|
26
39
|
const moduleSize = computed(() => {
|
|
27
40
|
const mLen = matrix.value.length;
|
|
28
|
-
return props.size / mLen;
|
|
41
|
+
return (props.size ?? 128) / mLen;
|
|
29
42
|
});
|
|
30
43
|
return () => {
|
|
31
44
|
const attrsRecord = attrs;
|
|
@@ -36,6 +49,17 @@ var QRCode = defineComponent({
|
|
|
36
49
|
);
|
|
37
50
|
const mSize = moduleSize.value;
|
|
38
51
|
const modules = matrix.value;
|
|
52
|
+
const ariaLabel = resolveLocaleText("QR Code", mergedLocale.value?.qrcode?.ariaLabel);
|
|
53
|
+
const expiredText = resolveLocaleText(
|
|
54
|
+
"QR code expired",
|
|
55
|
+
mergedLocale.value?.qrcode?.expiredText
|
|
56
|
+
);
|
|
57
|
+
const refreshText = resolveLocaleText("Refresh", mergedLocale.value?.qrcode?.refreshText);
|
|
58
|
+
const loadingText = resolveLocaleText(
|
|
59
|
+
"Loading...",
|
|
60
|
+
mergedLocale.value?.qrcode?.loadingText,
|
|
61
|
+
mergedLocale.value?.common?.loadingText
|
|
62
|
+
);
|
|
39
63
|
const rects = modules.flatMap(
|
|
40
64
|
(row, r) => row.map(
|
|
41
65
|
(cell, c) => cell ? h("rect", {
|
|
@@ -56,7 +80,7 @@ var QRCode = defineComponent({
|
|
|
56
80
|
viewBox: `0 0 ${props.size} ${props.size}`,
|
|
57
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
82
|
role: "img",
|
|
59
|
-
"aria-label":
|
|
83
|
+
"aria-label": ariaLabel
|
|
60
84
|
},
|
|
61
85
|
[h("rect", { width: props.size, height: props.size, fill: props.bgColor }), ...rects]
|
|
62
86
|
);
|
|
@@ -64,14 +88,14 @@ var QRCode = defineComponent({
|
|
|
64
88
|
if (props.status === "expired") {
|
|
65
89
|
children.push(
|
|
66
90
|
h("div", { class: qrcodeOverlayClasses }, [
|
|
67
|
-
h("span", { class: qrcodeExpiredTextClasses },
|
|
91
|
+
h("span", { class: qrcodeExpiredTextClasses }, expiredText),
|
|
68
92
|
h(
|
|
69
93
|
"span",
|
|
70
94
|
{
|
|
71
95
|
class: qrcodeRefreshClasses,
|
|
72
96
|
onClick: () => emit("refresh")
|
|
73
97
|
},
|
|
74
|
-
|
|
98
|
+
refreshText
|
|
75
99
|
)
|
|
76
100
|
])
|
|
77
101
|
);
|
|
@@ -79,7 +103,7 @@ var QRCode = defineComponent({
|
|
|
79
103
|
if (props.status === "loading") {
|
|
80
104
|
children.push(
|
|
81
105
|
h("div", { class: qrcodeOverlayClasses }, [
|
|
82
|
-
h("span", { class: "text-sm text-gray-500" },
|
|
106
|
+
h("span", { class: "text-sm text-gray-500" }, loadingText)
|
|
83
107
|
])
|
|
84
108
|
);
|
|
85
109
|
}
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
getGestureTouchPoint,
|
|
26
26
|
resolveSwipeGesture,
|
|
27
27
|
isKeyActive,
|
|
28
|
+
getNextActiveKey,
|
|
28
29
|
tabAddButtonClasses,
|
|
29
30
|
tabCloseButtonClasses,
|
|
30
31
|
tabContentBaseClasses
|
|
@@ -132,6 +133,7 @@ var TabPane = defineComponent({
|
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
const handleClose = (event) => {
|
|
136
|
+
event.stopPropagation();
|
|
135
137
|
if (!props.disabled) {
|
|
136
138
|
tabsContext.handleTabClose(props.tabKey, event);
|
|
137
139
|
}
|
|
@@ -157,10 +159,8 @@ var TabPane = defineComponent({
|
|
|
157
159
|
return;
|
|
158
160
|
}
|
|
159
161
|
const tabList = event.currentTarget?.closest('[role="tablist"]');
|
|
160
|
-
const tabButtons = Array.from(
|
|
161
|
-
|
|
162
|
-
);
|
|
163
|
-
const enabled = tabButtons.filter((button) => !button.disabled);
|
|
162
|
+
const tabButtons = Array.from(tabList?.querySelectorAll('[role="tab"]') ?? []);
|
|
163
|
+
const enabled = tabButtons.filter((button) => button.getAttribute("aria-disabled") !== "true");
|
|
164
164
|
const currentIndex = enabled.findIndex((button) => button.id === props.tabId);
|
|
165
165
|
if (currentIndex === -1) {
|
|
166
166
|
return;
|
|
@@ -194,17 +194,15 @@ var TabPane = defineComponent({
|
|
|
194
194
|
return () => {
|
|
195
195
|
if (props.renderMode === "tab") {
|
|
196
196
|
return h(
|
|
197
|
-
"
|
|
197
|
+
"div",
|
|
198
198
|
{
|
|
199
|
-
type: "button",
|
|
200
199
|
class: tabItemClasses.value,
|
|
201
200
|
role: "tab",
|
|
202
201
|
id: props.tabId,
|
|
203
202
|
"aria-controls": props.panelId,
|
|
204
203
|
"aria-selected": isActive.value,
|
|
205
204
|
"aria-disabled": props.disabled,
|
|
206
|
-
disabled: props.
|
|
207
|
-
tabindex: typeof props.tabIndex === "number" ? props.tabIndex : isActive.value ? 0 : -1,
|
|
205
|
+
tabindex: props.disabled ? -1 : typeof props.tabIndex === "number" ? props.tabIndex : isActive.value ? 0 : -1,
|
|
208
206
|
"data-tiger-tabs-id": tabsContext.idBase,
|
|
209
207
|
"data-tiger-tab-key": typeof props.tabKey === "number" ? `n:${props.tabKey}` : `s:${props.tabKey}`,
|
|
210
208
|
onClick: handleClick,
|
|
@@ -214,9 +212,9 @@ var TabPane = defineComponent({
|
|
|
214
212
|
props.icon && h("span", { class: "flex items-center" }, props.icon),
|
|
215
213
|
h("span", props.label),
|
|
216
214
|
isClosable.value && h(
|
|
217
|
-
"
|
|
215
|
+
"button",
|
|
218
216
|
{
|
|
219
|
-
|
|
217
|
+
type: "button",
|
|
220
218
|
class: tabCloseButtonClasses,
|
|
221
219
|
"aria-label": `Close ${String(props.label)}`,
|
|
222
220
|
tabindex: -1,
|
|
@@ -363,6 +361,7 @@ var Tabs = defineComponent({
|
|
|
363
361
|
const idBase = `tiger-tabs-${instance?.uid ?? "0"}`;
|
|
364
362
|
const internalActiveKey = ref(props.defaultActiveKey);
|
|
365
363
|
const swipeStart = ref(null);
|
|
364
|
+
let lastTabKeys = [];
|
|
366
365
|
const currentActiveKey = computed(() => {
|
|
367
366
|
return props.activeKey !== void 0 ? props.activeKey : internalActiveKey.value;
|
|
368
367
|
});
|
|
@@ -377,6 +376,9 @@ var Tabs = defineComponent({
|
|
|
377
376
|
};
|
|
378
377
|
const handleTabClose = (key, event) => {
|
|
379
378
|
event.stopPropagation();
|
|
379
|
+
if (props.activeKey === void 0 && key === currentActiveKey.value) {
|
|
380
|
+
internalActiveKey.value = getNextActiveKey(key, currentActiveKey.value, lastTabKeys);
|
|
381
|
+
}
|
|
380
382
|
emit("edit", { targetKey: key, action: "remove" });
|
|
381
383
|
};
|
|
382
384
|
const activateAdjacentTab = (direction, enabledTabKeys) => {
|
|
@@ -480,6 +482,7 @@ var Tabs = defineComponent({
|
|
|
480
482
|
if (props.activeKey === void 0 && internalActiveKey.value === void 0 && firstTabKey !== void 0) {
|
|
481
483
|
internalActiveKey.value = firstTabKey;
|
|
482
484
|
}
|
|
485
|
+
lastTabKeys = tabKeys;
|
|
483
486
|
const resolvedActiveKey = currentActiveKey.value ?? firstTabKey;
|
|
484
487
|
const activeTabIndex = tabKeys.indexOf(resolvedActiveKey ?? "");
|
|
485
488
|
for (const { type, props: childProps, children: childChildren } of validChildren) {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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/NumberKeyboard.ts
|
|
2
6
|
var _vue = require('vue');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -12,6 +16,8 @@ var _vue = require('vue');
|
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
|
|
19
|
+
|
|
20
|
+
|
|
15
21
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
16
22
|
var NumberKeyboard = _vue.defineComponent.call(void 0, {
|
|
17
23
|
name: "TigerNumberKeyboard",
|
|
@@ -25,10 +31,11 @@ var NumberKeyboard = _vue.defineComponent.call(void 0, {
|
|
|
25
31
|
decimalSeparator: { type: String, default: "." },
|
|
26
32
|
disabled: { type: Boolean, default: false },
|
|
27
33
|
readonly: { type: Boolean, default: false },
|
|
28
|
-
confirmText: { type: String, default:
|
|
34
|
+
confirmText: { type: String, default: void 0 },
|
|
29
35
|
deleteText: { type: String, default: "Delete" },
|
|
30
36
|
ariaLabel: { type: String, default: "Number keyboard" },
|
|
31
37
|
showConfirm: { type: Boolean, default: true },
|
|
38
|
+
locale: { type: Object, default: void 0 },
|
|
32
39
|
className: { type: String, default: void 0 },
|
|
33
40
|
style: {
|
|
34
41
|
type: Object,
|
|
@@ -37,6 +44,11 @@ var NumberKeyboard = _vue.defineComponent.call(void 0, {
|
|
|
37
44
|
},
|
|
38
45
|
emits: ["update:modelValue", "change", "key-press", "delete", "confirm"],
|
|
39
46
|
setup(props, { attrs, emit }) {
|
|
47
|
+
const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
|
|
48
|
+
const mergedLocale = _vue.computed.call(void 0, () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale));
|
|
49
|
+
const confirmLabel = _vue.computed.call(void 0,
|
|
50
|
+
() => _tigercatcore.resolveLocaleText.call(void 0, "Done", props.confirmText, _optionalChain([mergedLocale, 'access', _ => _.value, 'optionalAccess', _2 => _2.common, 'optionalAccess', _3 => _3.okText]))
|
|
51
|
+
);
|
|
40
52
|
const innerValue = _vue.ref.call(void 0, _tigercatcore.normalizeNumberKeyboardValue.call(void 0, props.defaultValue));
|
|
41
53
|
const isControlled = _vue.computed.call(void 0, () => props.modelValue !== void 0);
|
|
42
54
|
const currentValue = _vue.computed.call(void 0,
|
|
@@ -48,7 +60,7 @@ var NumberKeyboard = _vue.defineComponent.call(void 0, {
|
|
|
48
60
|
mode: props.mode,
|
|
49
61
|
decimalSeparator: props.decimalSeparator,
|
|
50
62
|
deleteText: props.deleteText,
|
|
51
|
-
confirmText:
|
|
63
|
+
confirmText: confirmLabel.value,
|
|
52
64
|
showConfirm: props.showConfirm
|
|
53
65
|
})
|
|
54
66
|
);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Form.ts
|
|
2
6
|
import {
|
|
3
7
|
defineComponent,
|
|
@@ -25,7 +29,9 @@ import {
|
|
|
25
29
|
undoFormHistory,
|
|
26
30
|
redoFormHistory,
|
|
27
31
|
canUndo,
|
|
28
|
-
canRedo
|
|
32
|
+
canRedo,
|
|
33
|
+
mergeTigerLocale,
|
|
34
|
+
getFormValidationLabels
|
|
29
35
|
} from "@expcat/tigercat-core";
|
|
30
36
|
var FormContextKey = /* @__PURE__ */ Symbol("FormContext");
|
|
31
37
|
var Form = defineComponent({
|
|
@@ -127,6 +133,14 @@ var Form = defineComponent({
|
|
|
127
133
|
maxHistorySize: {
|
|
128
134
|
type: Number,
|
|
129
135
|
default: 50
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Locale override for built-in validation messages. Merged on top of the
|
|
139
|
+
* ConfigProvider locale; a per-rule `message` still takes precedence.
|
|
140
|
+
*/
|
|
141
|
+
locale: {
|
|
142
|
+
type: Object,
|
|
143
|
+
default: void 0
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
emits: {
|
|
@@ -140,10 +154,15 @@ var Form = defineComponent({
|
|
|
140
154
|
validate: (fieldName, isValid, _errorMessage) => typeof fieldName === "string" && typeof isValid === "boolean"
|
|
141
155
|
},
|
|
142
156
|
setup(props, { slots, emit, expose }) {
|
|
157
|
+
const initialValues = { ...props.model ?? {} };
|
|
143
158
|
const errors = reactive([]);
|
|
144
159
|
const fieldRules = reactive({});
|
|
145
160
|
const fieldConditions = reactive({});
|
|
146
161
|
const errorsByField = computed(() => createFormErrorMap(errors));
|
|
162
|
+
const config = useTigerConfig();
|
|
163
|
+
const validationMessages = computed(
|
|
164
|
+
() => getFormValidationLabels(mergeTigerLocale(config.value.locale, props.locale))
|
|
165
|
+
);
|
|
147
166
|
let validationDebouncer = createFormValidationDebouncer({
|
|
148
167
|
delay: props.validateDebounce
|
|
149
168
|
});
|
|
@@ -222,7 +241,14 @@ var Form = defineComponent({
|
|
|
222
241
|
return null;
|
|
223
242
|
}
|
|
224
243
|
const value = getValueByPath(props.model, fieldName);
|
|
225
|
-
return validateFieldUtil(
|
|
244
|
+
return validateFieldUtil(
|
|
245
|
+
fieldName,
|
|
246
|
+
value,
|
|
247
|
+
effectiveFieldRules,
|
|
248
|
+
props.model,
|
|
249
|
+
trigger,
|
|
250
|
+
validationMessages.value
|
|
251
|
+
);
|
|
226
252
|
};
|
|
227
253
|
const validateFieldNow = async (fieldName, rulesOverride, trigger) => {
|
|
228
254
|
const conditionState = getFieldConditionState(fieldName);
|
|
@@ -276,7 +302,7 @@ var Form = defineComponent({
|
|
|
276
302
|
if (!effectiveRules) {
|
|
277
303
|
return true;
|
|
278
304
|
}
|
|
279
|
-
const result = await validateForm(props.model, effectiveRules);
|
|
305
|
+
const result = await validateForm(props.model, effectiveRules, validationMessages.value);
|
|
280
306
|
errors.push(...result.errors);
|
|
281
307
|
return result.valid;
|
|
282
308
|
};
|
|
@@ -325,6 +351,13 @@ var Form = defineComponent({
|
|
|
325
351
|
const resetFields = () => {
|
|
326
352
|
validationDebouncer.cancel();
|
|
327
353
|
clearValidate();
|
|
354
|
+
if (props.model) {
|
|
355
|
+
Object.keys(props.model).forEach((key) => delete props.model[key]);
|
|
356
|
+
Object.assign(props.model, { ...initialValues });
|
|
357
|
+
}
|
|
358
|
+
if (props.undoable) {
|
|
359
|
+
history.value = createFormHistory({ ...initialValues }, props.maxHistorySize);
|
|
360
|
+
}
|
|
328
361
|
};
|
|
329
362
|
const addField = (fieldName, defaultValue) => {
|
|
330
363
|
if (props.model && fieldName) {
|