@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,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChartTooltip
|
|
3
|
+
} from "./chunk-G2LB4QCL.mjs";
|
|
1
4
|
import {
|
|
2
5
|
ChartCanvas
|
|
3
6
|
} from "./chunk-W5RZPTFD.mjs";
|
|
@@ -30,6 +33,8 @@ var GaugeChart = defineComponent({
|
|
|
30
33
|
showTicks: { type: Boolean, default: true },
|
|
31
34
|
tickCount: { type: Number, default: 5 },
|
|
32
35
|
valueFormatter: { type: Function },
|
|
36
|
+
tooltipFormatter: { type: Function },
|
|
37
|
+
showTooltip: { type: Boolean, default: true },
|
|
33
38
|
label: { type: String },
|
|
34
39
|
segments: {
|
|
35
40
|
type: Array
|
|
@@ -67,6 +72,26 @@ var GaugeChart = defineComponent({
|
|
|
67
72
|
onBeforeUnmount(() => {
|
|
68
73
|
animCtrl?.stop();
|
|
69
74
|
});
|
|
75
|
+
const wrapperRef = ref(null);
|
|
76
|
+
const tooltipState = ref({ visible: false, x: 0, y: 0 });
|
|
77
|
+
const handleTooltipMove = (e) => {
|
|
78
|
+
if (!props.showTooltip) return;
|
|
79
|
+
tooltipState.value = { visible: true, x: e.clientX, y: e.clientY };
|
|
80
|
+
};
|
|
81
|
+
const handleTooltipLeave = () => {
|
|
82
|
+
tooltipState.value = { ...tooltipState.value, visible: false };
|
|
83
|
+
};
|
|
84
|
+
const handleTooltipFocus = () => {
|
|
85
|
+
if (!props.showTooltip) return;
|
|
86
|
+
const rect = wrapperRef.value?.getBoundingClientRect();
|
|
87
|
+
if (rect) {
|
|
88
|
+
tooltipState.value = {
|
|
89
|
+
visible: true,
|
|
90
|
+
x: rect.left + rect.width / 2,
|
|
91
|
+
y: rect.top + rect.height / 2
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
};
|
|
70
95
|
const ticks = computed(
|
|
71
96
|
() => props.showTicks ? computeGaugeTicks(
|
|
72
97
|
cx.value,
|
|
@@ -110,7 +135,8 @@ var GaugeChart = defineComponent({
|
|
|
110
135
|
}) ?? [];
|
|
111
136
|
const needlePath = createGaugeNeedlePath(c, cY, r - aw - 6, animatedAngle.value);
|
|
112
137
|
const formattedValue = props.valueFormatter ? props.valueFormatter(props.value) : `${props.value}`;
|
|
113
|
-
|
|
138
|
+
const tooltipContent = props.tooltipFormatter ? props.tooltipFormatter(props.value) : props.label ? `${props.label}: ${formattedValue}` : formattedValue;
|
|
139
|
+
const canvas = h(
|
|
114
140
|
ChartCanvas,
|
|
115
141
|
{
|
|
116
142
|
width: props.width,
|
|
@@ -219,6 +245,29 @@ var GaugeChart = defineComponent({
|
|
|
219
245
|
]
|
|
220
246
|
}
|
|
221
247
|
);
|
|
248
|
+
return h(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
ref: wrapperRef,
|
|
252
|
+
class: "inline-block relative",
|
|
253
|
+
tabindex: props.showTooltip ? 0 : void 0,
|
|
254
|
+
role: "img",
|
|
255
|
+
"aria-label": props.label ? `${props.label}: ${formattedValue}` : formattedValue,
|
|
256
|
+
onMousemove: handleTooltipMove,
|
|
257
|
+
onMouseleave: handleTooltipLeave,
|
|
258
|
+
onFocus: handleTooltipFocus,
|
|
259
|
+
onBlur: handleTooltipLeave
|
|
260
|
+
},
|
|
261
|
+
[
|
|
262
|
+
canvas,
|
|
263
|
+
props.showTooltip ? h(ChartTooltip, {
|
|
264
|
+
content: tooltipContent,
|
|
265
|
+
visible: tooltipState.value.visible && tooltipContent !== "",
|
|
266
|
+
x: tooltipState.value.x,
|
|
267
|
+
y: tooltipState.value.y
|
|
268
|
+
}) : null
|
|
269
|
+
]
|
|
270
|
+
);
|
|
222
271
|
};
|
|
223
272
|
}
|
|
224
273
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkAWXSJNNPjs = require('./chunk-AWXSJNNP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVUGFSHU2js = require('./chunk-VUGFSHU2.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkTGHB5XSTjs = require('./chunk-TGHB5XST.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkOQOJI5Q7js = require('./chunk-OQOJI5Q7.js');
|
|
16
16
|
|
|
17
17
|
// src/components/CommentThread.ts
|
|
18
18
|
var _vue = require('vue');
|
|
@@ -117,7 +117,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
117
117
|
default: void 0
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
emits: ["like", "reply", "more", "action", "
|
|
120
|
+
emits: ["like", "reply", "more", "action", "update:expandedKeys", "load-more"],
|
|
121
121
|
setup(props, { emit, attrs }) {
|
|
122
122
|
const innerExpandedKeys = _vue.ref.call(void 0, [...props.defaultExpandedKeys]);
|
|
123
123
|
const expandedAllKeys = _vue.ref.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -141,7 +141,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
141
141
|
if (!props.expandedKeys) {
|
|
142
142
|
innerExpandedKeys.value = next;
|
|
143
143
|
}
|
|
144
|
-
emit("
|
|
144
|
+
emit("update:expandedKeys", next);
|
|
145
145
|
};
|
|
146
146
|
const toggleExpanded = (id) => {
|
|
147
147
|
const current = mergedExpandedKeys.value;
|
|
@@ -167,13 +167,14 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
167
167
|
const ACTION_BTN = `${BTN_BASE} text-gray-500 dark:text-gray-400 font-medium flex items-center gap-1.5`;
|
|
168
168
|
const PRIMARY_BTN = `${BTN_BASE} text-[var(--tiger-primary,#2563eb)] hover:text-[var(--tiger-primary-hover,#1d4ed8)] dark:text-blue-400 dark:hover:text-blue-300 font-semibold hover:bg-[var(--tiger-primary,#2563eb)]/10 dark:hover:bg-blue-400/10`;
|
|
169
169
|
const renderNode = (node, depth, isLast) => {
|
|
170
|
-
const
|
|
170
|
+
const children = _nullishCoalesce(node.children, () => ( []));
|
|
171
|
+
const hasChildren = children.length > 0;
|
|
171
172
|
const isExpanded = expandedSet.value.has(node.id);
|
|
172
173
|
const showReplies = hasChildren && isExpanded;
|
|
173
174
|
const showAllReplies = expandedAllKeys.value.has(node.id);
|
|
174
175
|
const repliesId = `tiger-comment-replies-${node.id}`;
|
|
175
|
-
const visibleChildren = showReplies ? props.maxReplies > 0 && !showAllReplies ?
|
|
176
|
-
const showLoadMore = showReplies && props.maxReplies > 0 &&
|
|
176
|
+
const visibleChildren = showReplies ? props.maxReplies > 0 && !showAllReplies ? children.slice(0, props.maxReplies) : children : [];
|
|
177
|
+
const showLoadMore = showReplies && props.maxReplies > 0 && children.length > props.maxReplies && !showAllReplies;
|
|
177
178
|
const actions = [];
|
|
178
179
|
if (props.showLike) {
|
|
179
180
|
const likeLabel = node.liked ? props.likedText : props.likeText;
|
|
@@ -194,17 +195,24 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
194
195
|
},
|
|
195
196
|
{
|
|
196
197
|
default: () => _vue.h.call(void 0, "span", { class: "flex items-center gap-1.5" }, [
|
|
197
|
-
_vue.h.call(void 0,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
198
|
+
_vue.h.call(void 0,
|
|
199
|
+
"svg",
|
|
200
|
+
{
|
|
201
|
+
class: _tigercatcore.classNames.call(void 0,
|
|
202
|
+
"w-3.5 h-3.5 transition-transform duration-200 active:scale-125",
|
|
203
|
+
node.liked ? "fill-current" : "stroke-current fill-none"
|
|
204
|
+
),
|
|
205
|
+
viewBox: "0 0 24 24",
|
|
206
|
+
strokeWidth: "2"
|
|
207
|
+
},
|
|
208
|
+
[
|
|
209
|
+
_vue.h.call(void 0, "path", {
|
|
210
|
+
strokeLinecap: "round",
|
|
211
|
+
strokeLinejoin: "round",
|
|
212
|
+
d: "M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.421.068.848.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 010-7.764c.26-.85.1083-1.368 1.972-1.368h.908c.445 0 .72.498.523.898a8.963 8.963 0 00-.27.602"
|
|
213
|
+
})
|
|
214
|
+
]
|
|
215
|
+
),
|
|
208
216
|
_vue.h.call(void 0, "span", `${likeLabel}${likeCount}`)
|
|
209
217
|
])
|
|
210
218
|
}
|
|
@@ -230,19 +238,23 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
230
238
|
},
|
|
231
239
|
{
|
|
232
240
|
default: () => _vue.h.call(void 0, "span", { class: "flex items-center gap-1.5" }, [
|
|
233
|
-
_vue.h.call(void 0,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
_vue.h.call(void 0,
|
|
242
|
+
"svg",
|
|
243
|
+
{
|
|
244
|
+
class: "w-3.5 h-3.5",
|
|
245
|
+
viewBox: "0 0 24 24",
|
|
246
|
+
fill: "none",
|
|
247
|
+
stroke: "currentColor",
|
|
248
|
+
strokeWidth: "2"
|
|
249
|
+
},
|
|
250
|
+
[
|
|
251
|
+
_vue.h.call(void 0, "path", {
|
|
252
|
+
strokeLinecap: "round",
|
|
253
|
+
strokeLinejoin: "round",
|
|
254
|
+
d: "M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
255
|
+
})
|
|
256
|
+
]
|
|
257
|
+
),
|
|
246
258
|
_vue.h.call(void 0, "span", props.replyText)
|
|
247
259
|
])
|
|
248
260
|
}
|
|
@@ -265,19 +277,23 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
265
277
|
},
|
|
266
278
|
{
|
|
267
279
|
default: () => _vue.h.call(void 0, "span", { class: "flex items-center gap-1.5" }, [
|
|
268
|
-
_vue.h.call(void 0,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
_vue.h.call(void 0,
|
|
281
|
+
"svg",
|
|
282
|
+
{
|
|
283
|
+
class: "w-3.5 h-3.5",
|
|
284
|
+
viewBox: "0 0 24 24",
|
|
285
|
+
fill: "none",
|
|
286
|
+
stroke: "currentColor",
|
|
287
|
+
strokeWidth: "2"
|
|
288
|
+
},
|
|
289
|
+
[
|
|
290
|
+
_vue.h.call(void 0, "path", {
|
|
291
|
+
strokeLinecap: "round",
|
|
292
|
+
strokeLinejoin: "round",
|
|
293
|
+
d: "M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"
|
|
294
|
+
})
|
|
295
|
+
]
|
|
296
|
+
),
|
|
281
297
|
_vue.h.call(void 0, "span", props.moreText)
|
|
282
298
|
])
|
|
283
299
|
}
|
|
@@ -294,10 +310,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
294
310
|
key: actionKey,
|
|
295
311
|
size: "sm",
|
|
296
312
|
variant: _nullishCoalesce(action.variant, () => ( "ghost")),
|
|
297
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
298
|
-
ACTION_BTN,
|
|
299
|
-
"hover:bg-gray-100 dark:hover:bg-gray-800"
|
|
300
|
-
),
|
|
313
|
+
className: _tigercatcore.classNames.call(void 0, ACTION_BTN, "hover:bg-gray-100 dark:hover:bg-gray-800"),
|
|
301
314
|
disabled: action.disabled,
|
|
302
315
|
onClick: () => {
|
|
303
316
|
_optionalChain([action, 'access', _ => _.onClick, 'optionalCall', _2 => _2(node, action)]);
|
|
@@ -321,7 +334,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
321
334
|
},
|
|
322
335
|
[
|
|
323
336
|
_vue.h.call(void 0, "div", { class: "flex gap-3" }, [
|
|
324
|
-
props.showAvatar && node.user ? _vue.h.call(void 0,
|
|
337
|
+
props.showAvatar && node.user ? _vue.h.call(void 0, _chunkOQOJI5Q7js.Avatar, {
|
|
325
338
|
size: depth === 1 ? "md" : "sm",
|
|
326
339
|
src: node.user.avatar,
|
|
327
340
|
text: node.user.name,
|
|
@@ -331,34 +344,53 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
331
344
|
_vue.h.call(void 0, "div", { class: "flex items-center gap-2 flex-wrap" }, [
|
|
332
345
|
_optionalChain([node, 'access', _3 => _3.user, 'optionalAccess', _4 => _4.name]) ? _vue.h.call(void 0,
|
|
333
346
|
_chunkTGHB5XSTjs.Text,
|
|
334
|
-
{
|
|
347
|
+
{
|
|
348
|
+
tag: "span",
|
|
349
|
+
size: "sm",
|
|
350
|
+
weight: "bold",
|
|
351
|
+
class: "text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer"
|
|
352
|
+
},
|
|
335
353
|
{ default: () => _optionalChain([node, 'access', _5 => _5.user, 'optionalAccess', _6 => _6.name]) }
|
|
336
354
|
) : null,
|
|
337
355
|
_optionalChain([node, 'access', _7 => _7.user, 'optionalAccess', _8 => _8.title]) ? _vue.h.call(void 0,
|
|
338
356
|
_chunkTGHB5XSTjs.Text,
|
|
339
|
-
{
|
|
357
|
+
{
|
|
358
|
+
tag: "span",
|
|
359
|
+
size: "xs",
|
|
360
|
+
color: "muted",
|
|
361
|
+
class: "bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-gray-500 dark:text-gray-400 font-medium"
|
|
362
|
+
},
|
|
340
363
|
{ default: () => _optionalChain([node, 'access', _9 => _9.user, 'optionalAccess', _10 => _10.title]) }
|
|
341
364
|
) : null,
|
|
342
365
|
node.tag ? _vue.h.call(void 0,
|
|
343
|
-
|
|
344
|
-
{
|
|
366
|
+
_chunkVUGFSHU2js.Tag,
|
|
367
|
+
{
|
|
368
|
+
size: "sm",
|
|
369
|
+
variant: _nullishCoalesce(node.tag.variant, () => ( "default")),
|
|
370
|
+
className: "rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase border border-current bg-current/10"
|
|
371
|
+
},
|
|
345
372
|
{ default: () => _optionalChain([node, 'access', _11 => _11.tag, 'optionalAccess', _12 => _12.label]) }
|
|
346
373
|
) : null,
|
|
347
374
|
...(_nullishCoalesce(node.tags, () => ( []))).map(
|
|
348
375
|
(tag, index) => _vue.h.call(void 0,
|
|
349
|
-
|
|
376
|
+
_chunkVUGFSHU2js.Tag,
|
|
350
377
|
{
|
|
351
378
|
key: `${node.id}-tag-${index}`,
|
|
352
379
|
size: "sm",
|
|
353
380
|
variant: _nullishCoalesce(tag.variant, () => ( "default")),
|
|
354
|
-
className: "rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase border border-current bg-
|
|
381
|
+
className: "rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase border border-current bg-current/10"
|
|
355
382
|
},
|
|
356
383
|
{ default: () => tag.label }
|
|
357
384
|
)
|
|
358
385
|
),
|
|
359
386
|
node.time ? _vue.h.call(void 0,
|
|
360
387
|
_chunkTGHB5XSTjs.Text,
|
|
361
|
-
{
|
|
388
|
+
{
|
|
389
|
+
tag: "span",
|
|
390
|
+
size: "xs",
|
|
391
|
+
color: "muted",
|
|
392
|
+
class: "ml-auto text-gray-400 dark:text-gray-500 font-normal"
|
|
393
|
+
},
|
|
362
394
|
{ default: () => _tigercatcore.formatCommentTime.call(void 0, node.time) }
|
|
363
395
|
) : null
|
|
364
396
|
]),
|
|
@@ -376,7 +408,7 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
376
408
|
class: "mt-3 space-y-3 bg-gray-50/50 dark:bg-gray-900/30 border border-gray-100 dark:border-gray-800/80 p-4 rounded-xl shadow-sm backdrop-blur-sm transition-all duration-300"
|
|
377
409
|
},
|
|
378
410
|
[
|
|
379
|
-
_vue.h.call(void 0,
|
|
411
|
+
_vue.h.call(void 0, _chunkAWXSJNNPjs.Textarea, {
|
|
380
412
|
rows: 3,
|
|
381
413
|
modelValue: replyValue.value,
|
|
382
414
|
placeholder: props.replyPlaceholder,
|
|
@@ -417,13 +449,16 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
417
449
|
{
|
|
418
450
|
size: "sm",
|
|
419
451
|
variant: "ghost",
|
|
420
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
452
|
+
className: _tigercatcore.classNames.call(void 0,
|
|
453
|
+
"mt-2 font-semibold hover:bg-[var(--tiger-primary,#2563eb)]/10 dark:hover:bg-blue-400/10 transition-colors",
|
|
454
|
+
PRIMARY_BTN
|
|
455
|
+
),
|
|
421
456
|
"aria-expanded": isExpanded,
|
|
422
457
|
"aria-controls": repliesId,
|
|
423
458
|
onClick: () => toggleExpanded(node.id)
|
|
424
459
|
},
|
|
425
460
|
{
|
|
426
|
-
default: () => isExpanded ? "\u25BE \u6536\u8D77\u56DE\u590D" : `\u25B8 \u5C55\u5F00 ${
|
|
461
|
+
default: () => isExpanded ? "\u25BE \u6536\u8D77\u56DE\u590D" : `\u25B8 \u5C55\u5F00 ${children.length} \u6761\u56DE\u590D`
|
|
427
462
|
}
|
|
428
463
|
) : null,
|
|
429
464
|
showReplies ? _vue.h.call(void 0,
|
|
@@ -458,21 +493,27 @@ var CommentThread = _vue.defineComponent.call(void 0, {
|
|
|
458
493
|
const children = resolvedNodes.value.length === 0 ? [
|
|
459
494
|
_vue.h.call(void 0,
|
|
460
495
|
"div",
|
|
461
|
-
{
|
|
496
|
+
{
|
|
497
|
+
class: "flex flex-col items-center justify-center border border-dashed border-gray-200 dark:border-gray-800/80 rounded-xl py-12 px-4 bg-gray-50/20 dark:bg-gray-900/5 transition-colors"
|
|
498
|
+
},
|
|
462
499
|
[
|
|
463
|
-
_vue.h.call(void 0,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
500
|
+
_vue.h.call(void 0,
|
|
501
|
+
"svg",
|
|
502
|
+
{
|
|
503
|
+
class: "w-10 h-10 text-gray-300 dark:text-gray-600 mb-3",
|
|
504
|
+
fill: "none",
|
|
505
|
+
viewBox: "0 0 24 24",
|
|
506
|
+
stroke: "currentColor",
|
|
507
|
+
strokeWidth: "1.5"
|
|
508
|
+
},
|
|
509
|
+
[
|
|
510
|
+
_vue.h.call(void 0, "path", {
|
|
511
|
+
strokeLinecap: "round",
|
|
512
|
+
strokeLinejoin: "round",
|
|
513
|
+
d: "M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
514
|
+
})
|
|
515
|
+
]
|
|
516
|
+
),
|
|
476
517
|
_vue.h.call(void 0,
|
|
477
518
|
_chunkTGHB5XSTjs.Text,
|
|
478
519
|
{ tag: "div", size: "sm", color: "muted", class: "font-medium" },
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkLKRT27JWjs = require('./chunk-LKRT27JW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkH2XEJHGRjs = require('./chunk-H2XEJHGR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTYYJPEWGjs = require('./chunk-TYYJPEWG.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAWXSJNNPjs = require('./chunk-AWXSJNNP.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkHA5QZ76Mjs = require('./chunk-HA5QZ76M.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkOQOJI5Q7js = require('./chunk-OQOJI5Q7.js');
|
|
19
19
|
|
|
20
20
|
// src/components/ChatWindow.ts
|
|
21
21
|
var _vue = require('vue');
|
|
@@ -25,6 +25,7 @@ var _vue = require('vue');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
29
30
|
var ChatWindow = _vue.defineComponent.call(void 0, {
|
|
30
31
|
name: "TigerChatWindow",
|
|
@@ -230,7 +231,7 @@ var ChatWindow = _vue.defineComponent.call(void 0, {
|
|
|
230
231
|
key: _nullishCoalesce(message.id, () => ( index))
|
|
231
232
|
},
|
|
232
233
|
[
|
|
233
|
-
props.showAvatar && message.user ? _vue.h.call(void 0,
|
|
234
|
+
props.showAvatar && message.user ? _vue.h.call(void 0, _chunkOQOJI5Q7js.Avatar, {
|
|
234
235
|
size: "sm",
|
|
235
236
|
src: message.user.avatar,
|
|
236
237
|
text: message.user.name,
|
|
@@ -280,9 +281,9 @@ var ChatWindow = _vue.defineComponent.call(void 0, {
|
|
|
280
281
|
"aria-label": resolvedInputLabel
|
|
281
282
|
};
|
|
282
283
|
if (props.inputType === "input") {
|
|
283
|
-
return _vue.h.call(void 0,
|
|
284
|
+
return _vue.h.call(void 0, _chunkH2XEJHGRjs.Input, commonProps);
|
|
284
285
|
}
|
|
285
|
-
return _vue.h.call(void 0,
|
|
286
|
+
return _vue.h.call(void 0, _chunkAWXSJNNPjs.Textarea, { ...commonProps, rows: props.inputRows });
|
|
286
287
|
};
|
|
287
288
|
return () => _vue.h.call(void 0,
|
|
288
289
|
"div",
|
|
@@ -305,7 +306,7 @@ var ChatWindow = _vue.defineComponent.call(void 0, {
|
|
|
305
306
|
},
|
|
306
307
|
[
|
|
307
308
|
_vue.h.call(void 0,
|
|
308
|
-
|
|
309
|
+
_chunkLKRT27JWjs.VirtualList,
|
|
309
310
|
{
|
|
310
311
|
itemCount: props.messages.length,
|
|
311
312
|
itemHeight: props.virtualItemHeight,
|
|
@@ -332,16 +333,14 @@ var ChatWindow = _vue.defineComponent.call(void 0, {
|
|
|
332
333
|
{
|
|
333
334
|
class: "h-full flex items-center justify-center py-8"
|
|
334
335
|
},
|
|
335
|
-
[
|
|
336
|
-
_vue.h.call(void 0, _chunkNOZ65AMOjs.Empty, { description: props.emptyText })
|
|
337
|
-
]
|
|
336
|
+
[_vue.h.call(void 0, _chunkTYYJPEWGjs.Empty, { description: props.emptyText })]
|
|
338
337
|
)
|
|
339
338
|
] : props.messages.map((message, index) => renderMessageItem(message, index))
|
|
340
339
|
),
|
|
341
340
|
props.statusText ? _vue.h.call(void 0,
|
|
342
341
|
"div",
|
|
343
342
|
{
|
|
344
|
-
class:
|
|
343
|
+
class: _tigercatcore.getChatStatusBarClasses.call(void 0, props.statusVariant)
|
|
345
344
|
},
|
|
346
345
|
props.statusText
|
|
347
346
|
) : null,
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-R6WFL6NI.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/ImageAnnotation.ts
|
|
2
6
|
import { computed, defineComponent, h, onMounted, ref, watch } from "vue";
|
|
3
7
|
import {
|
|
4
8
|
classNames,
|
|
9
|
+
isActivationKey,
|
|
5
10
|
coerceClassValue,
|
|
6
11
|
createImageAnnotationBox,
|
|
7
12
|
createImageAnnotationPath,
|
|
@@ -12,7 +17,7 @@ import {
|
|
|
12
17
|
getImageAnnotationShapeAriaLabel,
|
|
13
18
|
getImageAnnotationStrokeColor,
|
|
14
19
|
getImageAnnotationToolButtonClasses,
|
|
15
|
-
|
|
20
|
+
getImageEditorLabels,
|
|
16
21
|
imageAnnotationContainerClasses,
|
|
17
22
|
imageAnnotationDeleteButtonClasses,
|
|
18
23
|
imageAnnotationImageClasses,
|
|
@@ -21,6 +26,8 @@ import {
|
|
|
21
26
|
imageAnnotationReadonlyOverlayClasses,
|
|
22
27
|
imageAnnotationStageClasses,
|
|
23
28
|
imageAnnotationToolbarClasses,
|
|
29
|
+
isBrowser,
|
|
30
|
+
mergeTigerLocale,
|
|
24
31
|
mergeStyleValues,
|
|
25
32
|
shouldCommitImageAnnotationBox
|
|
26
33
|
} from "@expcat/tigercat-core";
|
|
@@ -28,6 +35,10 @@ var ImageAnnotation = defineComponent({
|
|
|
28
35
|
name: "TigerImageAnnotation",
|
|
29
36
|
inheritAttrs: false,
|
|
30
37
|
props: {
|
|
38
|
+
locale: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: void 0
|
|
41
|
+
},
|
|
31
42
|
src: { type: String, required: true },
|
|
32
43
|
alt: { type: String, default: "Image to annotate" },
|
|
33
44
|
modelValue: { type: Array, default: void 0 },
|
|
@@ -56,6 +67,16 @@ var ImageAnnotation = defineComponent({
|
|
|
56
67
|
},
|
|
57
68
|
emits: ["update:modelValue", "change", "select", "tool-change", "ready"],
|
|
58
69
|
setup(props, { attrs, emit }) {
|
|
70
|
+
const config = useTigerConfig();
|
|
71
|
+
const mergedLocale = computed(() => mergeTigerLocale(config.value.locale, props.locale));
|
|
72
|
+
const labels = computed(() => getImageEditorLabels(mergedLocale.value));
|
|
73
|
+
const toolLabels = computed(() => ({
|
|
74
|
+
select: labels.value.selectToolText,
|
|
75
|
+
rectangle: labels.value.rectangleToolText,
|
|
76
|
+
ellipse: labels.value.ellipseToolText,
|
|
77
|
+
polygon: labels.value.polygonToolText,
|
|
78
|
+
freehand: labels.value.freehandToolText
|
|
79
|
+
}));
|
|
59
80
|
const containerRef = ref(null);
|
|
60
81
|
const overlayRef = ref(null);
|
|
61
82
|
const idSeed = ref(0);
|
|
@@ -74,7 +95,7 @@ var ImageAnnotation = defineComponent({
|
|
|
74
95
|
const loadImage = () => {
|
|
75
96
|
imageLoaded.value = false;
|
|
76
97
|
draft.value = null;
|
|
77
|
-
if (
|
|
98
|
+
if (!isBrowser() || typeof window.Image !== "function") return;
|
|
78
99
|
const img = new window.Image();
|
|
79
100
|
img.onload = () => {
|
|
80
101
|
const naturalWidth = img.naturalWidth || 1;
|
|
@@ -187,16 +208,18 @@ var ImageAnnotation = defineComponent({
|
|
|
187
208
|
drawing.value = { tool: "polygon", start: points[0], points };
|
|
188
209
|
draft.value = createImageAnnotationPath("polygon", "draft", points);
|
|
189
210
|
};
|
|
211
|
+
const removeAnnotation = (annotation) => {
|
|
212
|
+
if (!canEdit.value) return;
|
|
213
|
+
const next = annotations.value.filter((item) => item.id !== annotation.id);
|
|
214
|
+
commitAnnotations(next, { type: "remove", annotation });
|
|
215
|
+
selectAnnotation(null);
|
|
216
|
+
};
|
|
190
217
|
const removeSelectedAnnotation = () => {
|
|
191
218
|
if (!canEdit.value || !activeSelectedId.value) return;
|
|
192
219
|
const removed = annotations.value.find(
|
|
193
220
|
(annotation) => annotation.id === activeSelectedId.value
|
|
194
221
|
);
|
|
195
|
-
|
|
196
|
-
(annotation) => annotation.id !== activeSelectedId.value
|
|
197
|
-
);
|
|
198
|
-
commitAnnotations(next, { type: "remove", annotation: removed });
|
|
199
|
-
selectAnnotation(null);
|
|
222
|
+
if (removed) removeAnnotation(removed);
|
|
200
223
|
};
|
|
201
224
|
const handleKeyDown = (event) => {
|
|
202
225
|
if (event.key === "Escape") {
|
|
@@ -230,6 +253,21 @@ var ImageAnnotation = defineComponent({
|
|
|
230
253
|
if (isDraft) return;
|
|
231
254
|
event.stopPropagation();
|
|
232
255
|
selectAnnotation(annotation);
|
|
256
|
+
},
|
|
257
|
+
// SVG `role="button"` does not fire click on Enter/Space natively, so
|
|
258
|
+
// wire keyboard activation (select) and Delete/Backspace (remove) here.
|
|
259
|
+
onKeydown: isDraft ? void 0 : (event) => {
|
|
260
|
+
if (isActivationKey(event)) {
|
|
261
|
+
event.preventDefault();
|
|
262
|
+
event.stopPropagation();
|
|
263
|
+
selectAnnotation(annotation);
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (event.key === "Delete" || event.key === "Backspace") {
|
|
267
|
+
event.preventDefault();
|
|
268
|
+
event.stopPropagation();
|
|
269
|
+
removeAnnotation(annotation);
|
|
270
|
+
}
|
|
233
271
|
}
|
|
234
272
|
};
|
|
235
273
|
if (annotation.type === "rectangle") {
|
|
@@ -276,7 +314,10 @@ var ImageAnnotation = defineComponent({
|
|
|
276
314
|
);
|
|
277
315
|
const toolbar = h(
|
|
278
316
|
"div",
|
|
279
|
-
{
|
|
317
|
+
{
|
|
318
|
+
class: imageAnnotationToolbarClasses,
|
|
319
|
+
"aria-label": labels.value.annotationToolbarAriaLabel
|
|
320
|
+
},
|
|
280
321
|
[
|
|
281
322
|
...props.tools.map(
|
|
282
323
|
(item) => h(
|
|
@@ -289,7 +330,7 @@ var ImageAnnotation = defineComponent({
|
|
|
289
330
|
"aria-pressed": activeTool.value === item,
|
|
290
331
|
onClick: () => setActiveTool(item)
|
|
291
332
|
},
|
|
292
|
-
|
|
333
|
+
toolLabels.value[item]
|
|
293
334
|
)
|
|
294
335
|
),
|
|
295
336
|
h(
|
|
@@ -300,7 +341,7 @@ var ImageAnnotation = defineComponent({
|
|
|
300
341
|
disabled: !canEdit.value || !activeSelectedId.value,
|
|
301
342
|
onClick: removeSelectedAnnotation
|
|
302
343
|
},
|
|
303
|
-
|
|
344
|
+
labels.value.deleteText
|
|
304
345
|
)
|
|
305
346
|
]
|
|
306
347
|
);
|
|
@@ -329,7 +370,7 @@ var ImageAnnotation = defineComponent({
|
|
|
329
370
|
width: displayWidth.value,
|
|
330
371
|
height: displayHeight.value,
|
|
331
372
|
viewBox: `0 0 ${displayWidth.value} ${displayHeight.value}`,
|
|
332
|
-
"aria-label":
|
|
373
|
+
"aria-label": labels.value.annotationCanvasAriaLabel,
|
|
333
374
|
onMousedown: handleStageMouseDown,
|
|
334
375
|
onClick: handleStageClick,
|
|
335
376
|
onDblclick: commitPolygon
|
|
@@ -376,7 +417,7 @@ var ImageAnnotation = defineComponent({
|
|
|
376
417
|
class: imageAnnotationStageClasses,
|
|
377
418
|
style: imageLoaded.value ? { width: `${displayWidth.value}px` } : void 0,
|
|
378
419
|
role: imageLoaded.value ? "application" : "img",
|
|
379
|
-
"aria-label": imageLoaded.value ?
|
|
420
|
+
"aria-label": imageLoaded.value ? labels.value.annotationEditorAriaLabel : labels.value.loadingAnnotationImageAriaLabel
|
|
380
421
|
},
|
|
381
422
|
stageChildren
|
|
382
423
|
)
|