@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
|
@@ -1,4 +1,8 @@
|
|
|
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; }
|
|
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/Form.ts
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
|
|
@@ -26,6 +30,8 @@ var _vue = require('vue');
|
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
|
|
33
|
+
|
|
34
|
+
|
|
29
35
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
30
36
|
var FormContextKey = /* @__PURE__ */ Symbol("FormContext");
|
|
31
37
|
var Form = _vue.defineComponent.call(void 0, {
|
|
@@ -127,6 +133,14 @@ var Form = _vue.defineComponent.call(void 0, {
|
|
|
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 = _vue.defineComponent.call(void 0, {
|
|
|
140
154
|
validate: (fieldName, isValid, _errorMessage) => typeof fieldName === "string" && typeof isValid === "boolean"
|
|
141
155
|
},
|
|
142
156
|
setup(props, { slots, emit, expose }) {
|
|
157
|
+
const initialValues = { ..._nullishCoalesce(props.model, () => ( {})) };
|
|
143
158
|
const errors = _vue.reactive.call(void 0, []);
|
|
144
159
|
const fieldRules = _vue.reactive.call(void 0, {});
|
|
145
160
|
const fieldConditions = _vue.reactive.call(void 0, {});
|
|
146
161
|
const errorsByField = _vue.computed.call(void 0, () => _tigercatcore.createFormErrorMap.call(void 0, errors));
|
|
162
|
+
const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
|
|
163
|
+
const validationMessages = _vue.computed.call(void 0,
|
|
164
|
+
() => _tigercatcore.getFormValidationLabels.call(void 0, _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale))
|
|
165
|
+
);
|
|
147
166
|
let validationDebouncer = _tigercatcore.createFormValidationDebouncer.call(void 0, {
|
|
148
167
|
delay: props.validateDebounce
|
|
149
168
|
});
|
|
@@ -222,7 +241,14 @@ var Form = _vue.defineComponent.call(void 0, {
|
|
|
222
241
|
return null;
|
|
223
242
|
}
|
|
224
243
|
const value = _tigercatcore.getValueByPath.call(void 0, props.model, fieldName);
|
|
225
|
-
return _tigercatcore.validateField.call(void 0,
|
|
244
|
+
return _tigercatcore.validateField.call(void 0,
|
|
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 = _vue.defineComponent.call(void 0, {
|
|
|
276
302
|
if (!effectiveRules) {
|
|
277
303
|
return true;
|
|
278
304
|
}
|
|
279
|
-
const result = await _tigercatcore.validateForm.call(void 0, props.model, effectiveRules);
|
|
305
|
+
const result = await _tigercatcore.validateForm.call(void 0, props.model, effectiveRules, validationMessages.value);
|
|
280
306
|
errors.push(...result.errors);
|
|
281
307
|
return result.valid;
|
|
282
308
|
};
|
|
@@ -325,6 +351,13 @@ var Form = _vue.defineComponent.call(void 0, {
|
|
|
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 = _tigercatcore.createFormHistory.call(void 0, { ...initialValues }, props.maxHistorySize);
|
|
360
|
+
}
|
|
328
361
|
};
|
|
329
362
|
const addField = (fieldName, defaultValue) => {
|
|
330
363
|
if (props.model && fieldName) {
|
|
@@ -57,6 +57,34 @@ var Rate = _vue.defineComponent.call(void 0, {
|
|
|
57
57
|
hoverValue.value = 0;
|
|
58
58
|
emit("hover-change", 0);
|
|
59
59
|
}
|
|
60
|
+
function handleKeydown(e) {
|
|
61
|
+
if (props.disabled) return;
|
|
62
|
+
const step = props.allowHalf ? 0.5 : 1;
|
|
63
|
+
let next = props.modelValue;
|
|
64
|
+
switch (e.key) {
|
|
65
|
+
case "ArrowRight":
|
|
66
|
+
case "ArrowUp":
|
|
67
|
+
next = Math.min(props.count, props.modelValue + step);
|
|
68
|
+
break;
|
|
69
|
+
case "ArrowLeft":
|
|
70
|
+
case "ArrowDown":
|
|
71
|
+
next = Math.max(0, props.modelValue - step);
|
|
72
|
+
break;
|
|
73
|
+
case "Home":
|
|
74
|
+
next = 0;
|
|
75
|
+
break;
|
|
76
|
+
case "End":
|
|
77
|
+
next = props.count;
|
|
78
|
+
break;
|
|
79
|
+
default:
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
e.preventDefault();
|
|
83
|
+
if (next !== props.modelValue) {
|
|
84
|
+
emit("update:modelValue", next);
|
|
85
|
+
emit("change", next);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
60
88
|
return () => {
|
|
61
89
|
const isChar = !!props.character;
|
|
62
90
|
const stars = [];
|
|
@@ -116,9 +144,7 @@ var Rate = _vue.defineComponent.call(void 0, {
|
|
|
116
144
|
{
|
|
117
145
|
key: i,
|
|
118
146
|
class: _tigercatcore.getRateStarClasses.call(void 0, props.size, isChar, props.disabled),
|
|
119
|
-
|
|
120
|
-
"aria-checked": full || half,
|
|
121
|
-
"aria-label": `${i + 1} star${i + 1 > 1 ? "s" : ""}`,
|
|
147
|
+
"aria-hidden": "true",
|
|
122
148
|
onClick: (e) => handleClick(i, e),
|
|
123
149
|
onMousemove: (e) => handleMouseMove(i, e),
|
|
124
150
|
onMouseleave: handleMouseLeave
|
|
@@ -127,12 +153,21 @@ var Rate = _vue.defineComponent.call(void 0, {
|
|
|
127
153
|
)
|
|
128
154
|
);
|
|
129
155
|
}
|
|
156
|
+
const valueText = `${props.modelValue} star${props.modelValue === 1 ? "" : "s"}`;
|
|
130
157
|
return _vue.h.call(void 0,
|
|
131
158
|
"div",
|
|
132
159
|
{
|
|
133
160
|
class: _tigercatcore.classNames.call(void 0, _tigercatcore.rateBaseClasses, _tigercatcore.coerceClassValue.call(void 0, attrs.class)),
|
|
134
|
-
role: "
|
|
135
|
-
"aria-label": "Rating"
|
|
161
|
+
role: "slider",
|
|
162
|
+
"aria-label": "Rating",
|
|
163
|
+
"aria-valuemin": 0,
|
|
164
|
+
"aria-valuemax": props.count,
|
|
165
|
+
"aria-valuenow": props.modelValue,
|
|
166
|
+
"aria-valuetext": valueText,
|
|
167
|
+
"aria-disabled": props.disabled || void 0,
|
|
168
|
+
"aria-orientation": "horizontal",
|
|
169
|
+
tabindex: props.disabled ? -1 : 0,
|
|
170
|
+
onKeydown: handleKeydown
|
|
136
171
|
},
|
|
137
172
|
stars
|
|
138
173
|
);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Cascader.ts
|
|
2
6
|
import { defineComponent, computed, ref, h, watch, onBeforeUnmount } from "vue";
|
|
3
7
|
import {
|
|
@@ -22,7 +26,9 @@ import {
|
|
|
22
26
|
icon20ViewBox,
|
|
23
27
|
chevronDownSolidIcon20PathD,
|
|
24
28
|
closeSolidIcon20PathD,
|
|
25
|
-
coerceClassValue
|
|
29
|
+
coerceClassValue,
|
|
30
|
+
resolveLocaleText,
|
|
31
|
+
mergeTigerLocale
|
|
26
32
|
} from "@expcat/tigercat-core";
|
|
27
33
|
var cascaderInstanceId = 0;
|
|
28
34
|
var ChevronRightIcon = h(
|
|
@@ -86,12 +92,21 @@ var Cascader = defineComponent({
|
|
|
86
92
|
},
|
|
87
93
|
notFoundText: {
|
|
88
94
|
type: String,
|
|
89
|
-
default:
|
|
95
|
+
default: void 0
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Locale overrides merged on top of ConfigProvider locale
|
|
99
|
+
*/
|
|
100
|
+
locale: {
|
|
101
|
+
type: Object,
|
|
102
|
+
default: void 0
|
|
90
103
|
}
|
|
91
104
|
},
|
|
92
105
|
emits: ["update:modelValue", "change"],
|
|
93
106
|
setup(props, { emit, attrs }) {
|
|
94
107
|
const instanceId = ++cascaderInstanceId;
|
|
108
|
+
const config = useTigerConfig();
|
|
109
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
95
110
|
const isOpen = ref(false);
|
|
96
111
|
const searchQuery = ref("");
|
|
97
112
|
const activePath = ref([]);
|
|
@@ -110,7 +125,7 @@ var Cascader = defineComponent({
|
|
|
110
125
|
});
|
|
111
126
|
const flattenedOptions = computed(() => {
|
|
112
127
|
if (!props.showSearch) return [];
|
|
113
|
-
return flattenCascaderOptions(props.options);
|
|
128
|
+
return flattenCascaderOptions(props.options, [], [], props.changeOnSelect);
|
|
114
129
|
});
|
|
115
130
|
const searchResults = computed(() => {
|
|
116
131
|
if (!isSearchMode.value) return [];
|
|
@@ -282,7 +297,10 @@ var Cascader = defineComponent({
|
|
|
282
297
|
ref: searchInputRef,
|
|
283
298
|
type: "text",
|
|
284
299
|
class: cascaderSearchInputClasses,
|
|
285
|
-
placeholder:
|
|
300
|
+
placeholder: resolveLocaleText(
|
|
301
|
+
"Search...",
|
|
302
|
+
mergedLocale.value?.common?.searchPlaceholder
|
|
303
|
+
),
|
|
286
304
|
value: searchQuery.value,
|
|
287
305
|
onInput: handleSearchInput,
|
|
288
306
|
"aria-label": "Search options"
|
|
@@ -291,7 +309,17 @@ var Cascader = defineComponent({
|
|
|
291
309
|
}
|
|
292
310
|
if (isSearchMode.value) {
|
|
293
311
|
if (searchResults.value.length === 0) {
|
|
294
|
-
children.push(
|
|
312
|
+
children.push(
|
|
313
|
+
h(
|
|
314
|
+
"div",
|
|
315
|
+
{ class: cascaderEmptyStateClasses },
|
|
316
|
+
resolveLocaleText(
|
|
317
|
+
"No results found",
|
|
318
|
+
props.notFoundText,
|
|
319
|
+
mergedLocale.value?.common?.emptyText
|
|
320
|
+
)
|
|
321
|
+
)
|
|
322
|
+
);
|
|
295
323
|
} else {
|
|
296
324
|
const searchList = h(
|
|
297
325
|
"div",
|
|
@@ -310,7 +338,7 @@ var Cascader = defineComponent({
|
|
|
310
338
|
}),
|
|
311
339
|
onClick: () => handleSearchResultClick(item.valuePath, item.disabled)
|
|
312
340
|
},
|
|
313
|
-
item.label
|
|
341
|
+
typeof props.showSearch === "object" && props.showSearch.render ? props.showSearch.render(searchQuery.value, item.path) : item.label
|
|
314
342
|
)
|
|
315
343
|
)
|
|
316
344
|
);
|
|
@@ -10,6 +10,8 @@ var _vue = require('vue');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
14
16
|
var Resizable = _vue.defineComponent.call(void 0, {
|
|
15
17
|
name: "TigerResizable",
|
|
@@ -130,17 +132,67 @@ var Resizable = _vue.defineComponent.call(void 0, {
|
|
|
130
132
|
deltaY: clamped.height - startHeight.value
|
|
131
133
|
});
|
|
132
134
|
};
|
|
135
|
+
const onKeyDown = (handle, e) => {
|
|
136
|
+
if (props.disabled) return;
|
|
137
|
+
const delta = _tigercatcore.getResizeKeyboardDelta.call(void 0, e.key);
|
|
138
|
+
if (!delta) return;
|
|
139
|
+
e.preventDefault();
|
|
140
|
+
const startW = _nullishCoalesce(width.value, () => ( 0));
|
|
141
|
+
const startH = _nullishCoalesce(height.value, () => ( 0));
|
|
142
|
+
const { deltaWidth, deltaHeight } = _tigercatcore.calculateResizeDelta.call(void 0,
|
|
143
|
+
handle,
|
|
144
|
+
delta.deltaX,
|
|
145
|
+
delta.deltaY,
|
|
146
|
+
props.axis
|
|
147
|
+
);
|
|
148
|
+
let newW = startW + deltaWidth;
|
|
149
|
+
let newH = startH + deltaHeight;
|
|
150
|
+
if (props.lockAspectRatio) {
|
|
151
|
+
const ar = _tigercatcore.applyAspectRatio.call(void 0, newW, newH, startW, startH);
|
|
152
|
+
newW = ar.width;
|
|
153
|
+
newH = ar.height;
|
|
154
|
+
}
|
|
155
|
+
const clamped = _tigercatcore.clampDimensions.call(void 0,
|
|
156
|
+
newW,
|
|
157
|
+
newH,
|
|
158
|
+
props.minWidth,
|
|
159
|
+
props.minHeight,
|
|
160
|
+
props.maxWidth,
|
|
161
|
+
props.maxHeight
|
|
162
|
+
);
|
|
163
|
+
width.value = clamped.width;
|
|
164
|
+
height.value = clamped.height;
|
|
165
|
+
const evt = {
|
|
166
|
+
width: clamped.width,
|
|
167
|
+
height: clamped.height,
|
|
168
|
+
handle,
|
|
169
|
+
deltaX: clamped.width - startW,
|
|
170
|
+
deltaY: clamped.height - startH
|
|
171
|
+
};
|
|
172
|
+
emit("resize", evt);
|
|
173
|
+
emit("resize-end", evt);
|
|
174
|
+
};
|
|
133
175
|
_vue.onBeforeUnmount.call(void 0, () => {
|
|
134
176
|
cleanupDragSession();
|
|
135
177
|
});
|
|
136
178
|
return () => {
|
|
137
|
-
const handleNodes = props.handles.map(
|
|
138
|
-
|
|
179
|
+
const handleNodes = props.handles.map((pos) => {
|
|
180
|
+
const usesHeight = pos === "top" || pos === "bottom";
|
|
181
|
+
const valueNow = Math.round(_nullishCoalesce((usesHeight ? height.value : width.value), () => ( 0)));
|
|
182
|
+
return _vue.h.call(void 0, "div", {
|
|
139
183
|
class: _tigercatcore.getResizableHandleClasses.call(void 0, pos, draggingHandle.value === pos, props.disabled),
|
|
140
184
|
"data-handle": pos,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
185
|
+
role: "separator",
|
|
186
|
+
"aria-label": `Resize ${pos}`,
|
|
187
|
+
"aria-orientation": _tigercatcore.getResizeHandleOrientation.call(void 0, pos),
|
|
188
|
+
"aria-valuenow": valueNow,
|
|
189
|
+
"aria-valuemin": usesHeight ? props.minHeight : props.minWidth,
|
|
190
|
+
"aria-valuemax": usesHeight ? props.maxHeight : props.maxWidth,
|
|
191
|
+
tabindex: props.disabled ? -1 : 0,
|
|
192
|
+
onMousedown: (e) => onMouseDown(pos, e),
|
|
193
|
+
onKeydown: (e) => onKeyDown(pos, e)
|
|
194
|
+
});
|
|
195
|
+
});
|
|
144
196
|
return _vue.h.call(void 0,
|
|
145
197
|
"div",
|
|
146
198
|
{
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkIXTYS3EKjs = require('./chunk-IXTYS3EK.js');
|
|
4
|
+
|
|
5
|
+
// src/components/Empty.ts
|
|
2
6
|
var _vue = require('vue');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -11,6 +15,7 @@ var _vue = require('vue');
|
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
|
|
18
|
+
|
|
14
19
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
15
20
|
var Empty = _vue.defineComponent.call(void 0, {
|
|
16
21
|
name: "TigerEmpty",
|
|
@@ -35,10 +40,18 @@ var Empty = _vue.defineComponent.call(void 0, {
|
|
|
35
40
|
style: {
|
|
36
41
|
type: Object,
|
|
37
42
|
default: void 0
|
|
43
|
+
},
|
|
44
|
+
locale: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: void 0
|
|
38
47
|
}
|
|
39
48
|
},
|
|
40
49
|
setup(props, { slots, attrs }) {
|
|
41
|
-
const
|
|
50
|
+
const config = _chunkIXTYS3EKjs.useTigerConfig.call(void 0, );
|
|
51
|
+
const mergedLocale = _vue.computed.call(void 0, () => _tigercatcore.mergeTigerLocale.call(void 0, config.value.locale, props.locale));
|
|
52
|
+
const descText = _vue.computed.call(void 0,
|
|
53
|
+
() => _nullishCoalesce(props.description, () => ( _tigercatcore.getEmptyDescription.call(void 0, props.preset, mergedLocale.value)))
|
|
54
|
+
);
|
|
42
55
|
return () => {
|
|
43
56
|
const attrsRecord = attrs;
|
|
44
57
|
const children = [];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYTE45DNCjs = require('./chunk-YTE45DNC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPH6ERFC7js = require('./chunk-PH6ERFC7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRBWJSHKRjs = require('./chunk-RBWJSHKR.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkTGHB5XSTjs = require('./chunk-TGHB5XST.js');
|
|
@@ -160,16 +160,6 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
160
160
|
},
|
|
161
161
|
{ immediate: true }
|
|
162
162
|
);
|
|
163
|
-
const _currentGroup = _vue.computed.call(void 0, () => {
|
|
164
|
-
const groups = resolvedGroups.value;
|
|
165
|
-
if (groups.length === 0) return void 0;
|
|
166
|
-
const activeKey = currentGroupKey.value;
|
|
167
|
-
if (activeKey === void 0) return groups[0];
|
|
168
|
-
const matchedIndex = groups.findIndex(
|
|
169
|
-
(group, index) => getGroupKey(group, index) === activeKey
|
|
170
|
-
);
|
|
171
|
-
return matchedIndex >= 0 ? groups[matchedIndex] : groups[0];
|
|
172
|
-
});
|
|
173
163
|
const readStateOverrides = _vue.ref.call(void 0, /* @__PURE__ */ new Map());
|
|
174
164
|
const applyReadOverrides = (items) => {
|
|
175
165
|
if (!props.manageReadState || readStateOverrides.value.size === 0) return items;
|
|
@@ -412,7 +402,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
412
402
|
);
|
|
413
403
|
}
|
|
414
404
|
return _vue.h.call(void 0,
|
|
415
|
-
|
|
405
|
+
_chunkPH6ERFC7js.List,
|
|
416
406
|
{
|
|
417
407
|
dataSource: items,
|
|
418
408
|
split: true,
|
|
@@ -427,7 +417,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
427
417
|
);
|
|
428
418
|
};
|
|
429
419
|
const renderTabs = () => _vue.h.call(void 0,
|
|
430
|
-
|
|
420
|
+
_chunkYTE45DNCjs.Tabs,
|
|
431
421
|
{
|
|
432
422
|
type: "line",
|
|
433
423
|
size: "small",
|
|
@@ -437,7 +427,7 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
437
427
|
{
|
|
438
428
|
default: () => groupTabData.value.map(
|
|
439
429
|
(tab) => _vue.h.call(void 0,
|
|
440
|
-
|
|
430
|
+
_chunkYTE45DNCjs.TabPane,
|
|
441
431
|
{
|
|
442
432
|
key: tab.key,
|
|
443
433
|
tabKey: tab.key,
|
|
@@ -460,7 +450,12 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
460
450
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-2.5" }, [
|
|
461
451
|
_vue.h.call(void 0,
|
|
462
452
|
_chunkTGHB5XSTjs.Text,
|
|
463
|
-
{
|
|
453
|
+
{
|
|
454
|
+
tag: "div",
|
|
455
|
+
size: "base",
|
|
456
|
+
weight: "bold",
|
|
457
|
+
class: "text-gray-900 dark:text-gray-100"
|
|
458
|
+
},
|
|
464
459
|
{ default: () => props.title }
|
|
465
460
|
),
|
|
466
461
|
totalUnread.value > 0 ? _vue.h.call(void 0,
|
|
@@ -489,7 +484,10 @@ var NotificationCenter = _vue.defineComponent.call(void 0, {
|
|
|
489
484
|
renderReadFilterButtons()
|
|
490
485
|
]);
|
|
491
486
|
const content = props.loading ? _vue.h.call(void 0, "div", { class: "flex items-center justify-center py-16" }, [
|
|
492
|
-
_vue.h.call(void 0,
|
|
487
|
+
_vue.h.call(void 0, _chunkRBWJSHKRjs.Loading, {
|
|
488
|
+
text: props.loadingText,
|
|
489
|
+
class: "text-blue-500 dark:text-blue-400 font-medium"
|
|
490
|
+
})
|
|
493
491
|
]) : resolvedGroups.value.length > 0 ? _vue.h.call(void 0, "div", { class: "-mx-4 -mb-4" }, [renderTabs()]) : _vue.h.call(void 0, "div", { class: "-mx-4 -mb-4 max-h-[380px] overflow-y-auto" }, [
|
|
494
492
|
renderList(filteredFlatItems.value)
|
|
495
493
|
]);
|
|
@@ -50,6 +50,7 @@ var _vue = require('vue');
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
|
+
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
@@ -264,6 +265,7 @@ var Menu = _vue.defineComponent.call(void 0, {
|
|
|
264
265
|
return () => {
|
|
265
266
|
const renderDataItem = (item) => {
|
|
266
267
|
if (item.children && item.children.length > 0) {
|
|
268
|
+
const children = item.children;
|
|
267
269
|
return _vue.h.call(void 0,
|
|
268
270
|
SubMenu,
|
|
269
271
|
{
|
|
@@ -273,7 +275,7 @@ var Menu = _vue.defineComponent.call(void 0, {
|
|
|
273
275
|
icon: item.icon,
|
|
274
276
|
disabled: item.disabled
|
|
275
277
|
},
|
|
276
|
-
() =>
|
|
278
|
+
() => children.map(renderDataItem)
|
|
277
279
|
);
|
|
278
280
|
}
|
|
279
281
|
return _vue.h.call(void 0,
|
|
@@ -413,9 +415,7 @@ var MenuItem = _vue.defineComponent.call(void 0, {
|
|
|
413
415
|
const current = event.currentTarget;
|
|
414
416
|
const rootMenu = current.closest('ul[role="menu"]');
|
|
415
417
|
const isRoot = _optionalChain([rootMenu, 'optionalAccess', _3 => _3.dataset, 'access', _4 => _4.tigerMenuRoot]) === "true";
|
|
416
|
-
const
|
|
417
|
-
const nextKey = isHorizontalRoot ? "ArrowRight" : "ArrowDown";
|
|
418
|
-
const prevKey = isHorizontalRoot ? "ArrowLeft" : "ArrowUp";
|
|
418
|
+
const { nextKey, prevKey } = _tigercatcore.getMenuNavigationKeys.call(void 0, menuContext.mode.value, isRoot);
|
|
419
419
|
if (event.key === nextKey) {
|
|
420
420
|
event.preventDefault();
|
|
421
421
|
_tigercatcore.moveFocusInMenu.call(void 0, current, 1);
|
|
@@ -772,9 +772,7 @@ var SubMenu = _vue.defineComponent.call(void 0, {
|
|
|
772
772
|
const current = event.currentTarget;
|
|
773
773
|
const rootMenu = current.closest('ul[role="menu"]');
|
|
774
774
|
const isRoot = _optionalChain([rootMenu, 'optionalAccess', _15 => _15.dataset, 'access', _16 => _16.tigerMenuRoot]) === "true";
|
|
775
|
-
const
|
|
776
|
-
const nextKey = isHorizontalRoot ? "ArrowRight" : "ArrowDown";
|
|
777
|
-
const prevKey = isHorizontalRoot ? "ArrowLeft" : "ArrowUp";
|
|
775
|
+
const { nextKey, prevKey } = _tigercatcore.getMenuNavigationKeys.call(void 0, menuContext.mode.value, isRoot);
|
|
778
776
|
if (event.key === nextKey) {
|
|
779
777
|
event.preventDefault();
|
|
780
778
|
_tigercatcore.moveFocusInMenu.call(void 0, current, 1);
|
|
@@ -10,6 +10,7 @@ var _vue = require('vue');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
|
|
13
14
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
14
15
|
var Slider = _vue.defineComponent.call(void 0, {
|
|
15
16
|
name: "TigerSlider",
|
|
@@ -290,7 +291,8 @@ var Slider = _vue.defineComponent.call(void 0, {
|
|
|
290
291
|
};
|
|
291
292
|
const createMarks = () => {
|
|
292
293
|
if (!props.marks) return null;
|
|
293
|
-
const marks =
|
|
294
|
+
const marks = _tigercatcore.sliderResolveMarks.call(void 0, props.marks, props.min, props.max);
|
|
295
|
+
if (Object.keys(marks).length === 0) return null;
|
|
294
296
|
return _vue.h.call(void 0,
|
|
295
297
|
"div",
|
|
296
298
|
{ class: "absolute w-full top-full mt-2" },
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-R2HO74FE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ChartLegend
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HLPSHCXO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ChartSeries
|
|
9
9
|
} from "./chunk-2ZUEXCVJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ChartTooltip
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G2LB4QCL.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ChartCanvas
|
|
15
15
|
} from "./chunk-W5RZPTFD.mjs";
|
|
@@ -295,6 +295,15 @@ var RadarChart = defineComponent({
|
|
|
295
295
|
hoveredPoint.value = null;
|
|
296
296
|
handleHoverLeave();
|
|
297
297
|
};
|
|
298
|
+
const showPointTooltipFromElement = (el, seriesIndex, pointIndex) => {
|
|
299
|
+
if (!props.hoverable) return;
|
|
300
|
+
const rect = el.getBoundingClientRect();
|
|
301
|
+
hoveredPoint.value = { seriesIndex, pointIndex };
|
|
302
|
+
handleHoverEnter(seriesIndex, {
|
|
303
|
+
clientX: rect.left + rect.width / 2,
|
|
304
|
+
clientY: rect.top + rect.height / 2
|
|
305
|
+
});
|
|
306
|
+
};
|
|
298
307
|
const axisData = computed(() => {
|
|
299
308
|
if (props.series && props.series.length > 0) return props.series[0]?.data ?? [];
|
|
300
309
|
return props.data ?? [];
|
|
@@ -678,13 +687,34 @@ var RadarChart = defineComponent({
|
|
|
678
687
|
props.showTooltip && props.hoverable ? "cursor-pointer" : null,
|
|
679
688
|
"transition-[r] duration-150 ease-out"
|
|
680
689
|
),
|
|
690
|
+
role: props.showTooltip && props.hoverable ? "button" : "img",
|
|
691
|
+
"aria-label": point.data.label ?? String(point.data.value),
|
|
692
|
+
tabindex: props.showTooltip && props.hoverable ? 0 : void 0,
|
|
681
693
|
"data-radar-point": "true",
|
|
682
694
|
"data-series-index": seriesIndex,
|
|
683
695
|
"data-series-key": item.seriesKey,
|
|
684
696
|
"data-point-index": point.index,
|
|
685
697
|
onMouseenter: props.showTooltip && props.hoverable ? (e) => handlePointEnter(seriesIndex, point.index, e) : void 0,
|
|
686
698
|
onMousemove: props.showTooltip && props.hoverable ? handlePointMove : void 0,
|
|
687
|
-
onMouseleave: props.showTooltip && props.hoverable ? handlePointLeave : void 0
|
|
699
|
+
onMouseleave: props.showTooltip && props.hoverable ? handlePointLeave : void 0,
|
|
700
|
+
onFocus: props.showTooltip && props.hoverable ? (e) => showPointTooltipFromElement(
|
|
701
|
+
e.currentTarget,
|
|
702
|
+
seriesIndex,
|
|
703
|
+
point.index
|
|
704
|
+
) : void 0,
|
|
705
|
+
onBlur: props.showTooltip && props.hoverable ? handlePointLeave : void 0,
|
|
706
|
+
onKeydown: props.showTooltip && props.hoverable ? (e) => {
|
|
707
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
708
|
+
e.preventDefault();
|
|
709
|
+
showPointTooltipFromElement(
|
|
710
|
+
e.currentTarget,
|
|
711
|
+
seriesIndex,
|
|
712
|
+
point.index
|
|
713
|
+
);
|
|
714
|
+
} else if (e.key === "Escape") {
|
|
715
|
+
handlePointLeave();
|
|
716
|
+
}
|
|
717
|
+
} : void 0
|
|
688
718
|
});
|
|
689
719
|
}) : null
|
|
690
720
|
]
|