vue-data-ui 2.4.54 → 2.4.56
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/{Arrow-B10uy-UU.cjs → Arrow-CjIZFibK.cjs} +1 -1
- package/dist/{Arrow-DeKmbj7B.js → Arrow-jPjUEWgL.js} +1 -1
- package/dist/{BaseIcon-Ca67-Cyv.js → BaseIcon-0DNmIdCs.js} +1 -1
- package/dist/{BaseIcon-DtUsvREa.cjs → BaseIcon-DF2Lg0Ky.cjs} +1 -1
- package/dist/{DataTable-BgiV2CfC.js → DataTable-CZSz7b1u.js} +2 -2
- package/dist/{DataTable-CwiudM8v.cjs → DataTable-osuWgmyP.cjs} +1 -1
- package/dist/{Legend-C1rLFGjN.js → Legend-CvXmxVoD.js} +1 -1
- package/dist/{Legend-TTzHdVeD.cjs → Legend-DecSHp0h.cjs} +1 -1
- package/dist/{PackageVersion-Bp3Bq9Jn.js → PackageVersion-CEkiDR72.js} +1 -1
- package/dist/{PackageVersion-B_ULr99C.cjs → PackageVersion-eTcMI7M3.cjs} +1 -1
- package/dist/{PenAndPaper-DFNDy1y9.cjs → PenAndPaper-BqcQLMi2.cjs} +1 -1
- package/dist/{PenAndPaper-Cu0Ae0MN.js → PenAndPaper-GjypzQvI.js} +3 -3
- package/dist/{Shape-B_GK3n6y.js → Shape-BejfTDlL.js} +1 -1
- package/dist/{Shape-GWT6Hhcc.cjs → Shape-Diaok0Bu.cjs} +1 -1
- package/dist/{Slicer-Bi4zZd-A.js → Slicer-9_ewSBRs.js} +2 -2
- package/dist/{Slicer-DyNqrpR4.cjs → Slicer-DFT7ePZ_.cjs} +1 -1
- package/dist/{Title-DPlURQtx.js → Title-BI9lg56g.js} +1 -1
- package/dist/{Title-Z93_y2gr.cjs → Title-Bw-FXFej.cjs} +1 -1
- package/dist/{Tooltip-DVfgJ6mM.cjs → Tooltip-98ospYeV.cjs} +1 -1
- package/dist/{Tooltip-C7wb_p0L.js → Tooltip-sBMzQa_B.js} +1 -1
- package/dist/{index-DH1CMY7m.js → index-ByVaKddw.js} +3 -1
- package/dist/index-Cvx5SntE.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DDvMHRIf.cjs → useNestedProp-CSIVZXvp.cjs} +1 -1
- package/dist/{useNestedProp-DBnFzAfW.js → useNestedProp-GRBJXe5O.js} +1 -1
- package/dist/{usePrinter-C0N1CiBZ.js → usePrinter-BsXVX7vh.js} +1 -1
- package/dist/{usePrinter-DtSijS1B.cjs → usePrinter-BwruEydS.cjs} +1 -1
- package/dist/{vue-data-ui-CXxSOk_7.js → vue-data-ui-B7Y18Xdv.js} +60 -60
- package/dist/{vue-data-ui-ByVHf_kl.cjs → vue-data-ui-BqSfqfi4.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-B7WLQ4Xw.cjs → vue-ui-3d-bar-CXv6h_8o.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CVe5jYPi.js → vue-ui-3d-bar-SA6SyIoT.js} +9 -9
- package/dist/{vue-ui-accordion-azKgDbn4.js → vue-ui-accordion-Dcf8tHzr.js} +3 -3
- package/dist/{vue-ui-accordion-Dm8myRhk.cjs → vue-ui-accordion-DfqTc4ro.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BW4_XPjw.js → vue-ui-age-pyramid-BetdioWW.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BLq5EYnh.cjs → vue-ui-age-pyramid-CG7IY2gE.cjs} +1 -1
- package/dist/{vue-ui-annotator-BIiP8tfh.cjs → vue-ui-annotator-Bcg6d-GE.cjs} +1 -1
- package/dist/{vue-ui-annotator-BXNCscLc.js → vue-ui-annotator-Qf_gPjWZ.js} +1 -1
- package/dist/{vue-ui-bullet-zqDSLDqP.js → vue-ui-bullet-CLRHVfB8.js} +8 -8
- package/dist/{vue-ui-bullet-oszrU2rQ.cjs → vue-ui-bullet-CPHavcOd.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DlhrXggi.js → vue-ui-candlestick-DBnrOltA.js} +11 -11
- package/dist/{vue-ui-candlestick-EY9e1UXf.cjs → vue-ui-candlestick-exLvYnf4.cjs} +1 -1
- package/dist/vue-ui-carousel-table-Bz2XZAC4.js +396 -0
- package/dist/vue-ui-carousel-table-CHlCmI-_.cjs +1 -0
- package/dist/{vue-ui-chestnut-DUceRFNk.cjs → vue-ui-chestnut-BBhIDuhr.cjs} +1 -1
- package/dist/{vue-ui-chestnut-jHgtDbmU.js → vue-ui-chestnut-BE6RQkXd.js} +8 -8
- package/dist/{vue-ui-cursor-Cq1HIpIa.cjs → vue-ui-cursor-CpIr7R3C.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dkndm06c.js → vue-ui-cursor-DLQVTUyz.js} +2 -2
- package/dist/{vue-ui-dashboard-NZKZnvIp.cjs → vue-ui-dashboard-YWLsOufT.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B6_Xkd1u.js → vue-ui-dashboard-rKdg3soO.js} +2 -2
- package/dist/{vue-ui-digits-DHGYQ4mk.cjs → vue-ui-digits-DFNXL2VX.cjs} +1 -1
- package/dist/{vue-ui-digits-ZFMtrfsc.js → vue-ui-digits-XkrLdWX_.js} +2 -2
- package/dist/vue-ui-donut-8rW9LlEF.cjs +1 -0
- package/dist/{vue-ui-donut-D3Yw-xVC.js → vue-ui-donut-CDVHpIvX.js} +16 -16
- package/dist/{vue-ui-donut-evolution-CzQo7feu.cjs → vue-ui-donut-evolution-B1ahKhHv.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-kzFgoErC.js → vue-ui-donut-evolution-By2AYSZT.js} +11 -11
- package/dist/{vue-ui-dumbbell-LcWHXAvv.js → vue-ui-dumbbell-D1Htb6-R.js} +10 -10
- package/dist/{vue-ui-dumbbell-qBYKyZL0.cjs → vue-ui-dumbbell-DIHb9Grh.cjs} +1 -1
- package/dist/{vue-ui-flow-RQrUlBZx.cjs → vue-ui-flow-41QVXQeK.cjs} +1 -1
- package/dist/{vue-ui-flow-CM2CzG9l.js → vue-ui-flow-CCYyDy6C.js} +9 -9
- package/dist/{vue-ui-funnel-oJgYKMnU.js → vue-ui-funnel-BJ43m1vH.js} +8 -8
- package/dist/{vue-ui-funnel-CBZO8HbM.cjs → vue-ui-funnel-qPzrqllN.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BCVy8Fif.cjs → vue-ui-galaxy-D6dtMQ2A.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C2Y_DDJB.js → vue-ui-galaxy-DMUq4sez.js} +11 -11
- package/dist/{vue-ui-gauge-DdCG-E2p.cjs → vue-ui-gauge-BdycQV3W.cjs} +1 -1
- package/dist/{vue-ui-gauge--Y59kiK4.js → vue-ui-gauge-KGflfPYM.js} +7 -7
- package/dist/{vue-ui-gizmo-g2JoyNcP.js → vue-ui-gizmo-CFRsYHo7.js} +3 -3
- package/dist/{vue-ui-gizmo-Rb4ZXTmW.cjs → vue-ui-gizmo-lKGGpbCe.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CuhK1-fD.cjs → vue-ui-heatmap-DKxnmh08.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CSW7Sckl.js → vue-ui-heatmap-Dj0A6LjZ.js} +10 -10
- package/dist/{vue-ui-history-plot-BUh8mFcS.js → vue-ui-history-plot-ClNqlBER.js} +11 -11
- package/dist/{vue-ui-history-plot-3I1ZczPE.cjs → vue-ui-history-plot-IWjqZb4c.cjs} +1 -1
- package/dist/{vue-ui-kpi-BokZ78tj.cjs → vue-ui-kpi-BRVPBhAp.cjs} +1 -1
- package/dist/{vue-ui-kpi-DqkHOwnT.js → vue-ui-kpi-BXRYqm31.js} +3 -3
- package/dist/{vue-ui-mini-loader-OgezY5bJ.js → vue-ui-mini-loader-Bm_4G8gx.js} +2 -2
- package/dist/{vue-ui-mini-loader-DgRUssIh.cjs → vue-ui-mini-loader-NicMq9t0.cjs} +1 -1
- package/dist/{vue-ui-molecule-DPme2DL7.js → vue-ui-molecule-BDFarbim.js} +11 -11
- package/dist/{vue-ui-molecule-BjZEWe-M.cjs → vue-ui-molecule-Bi9RT7M4.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C3dVMbCW.js → vue-ui-mood-radar-DJnPeXpr.js} +11 -11
- package/dist/{vue-ui-mood-radar-qn-DhbDt.cjs → vue-ui-mood-radar-DlXCkePO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Cz04Q0zc.cjs → vue-ui-nested-donuts-CYNh2xAI.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B96zg3ew.js → vue-ui-nested-donuts-DLcFEPDy.js} +11 -11
- package/dist/{vue-ui-onion-CVXrJUcF.cjs → vue-ui-onion-UDlJJjud.cjs} +1 -1
- package/dist/{vue-ui-onion-DqtSzdyq.js → vue-ui-onion-jzYk1NeW.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-uPB5LMUG.js → vue-ui-parallel-coordinate-plot-BLLYkQEr.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BSrrIy_u.cjs → vue-ui-parallel-coordinate-plot-BboIA_-E.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DZu-EjEj.cjs → vue-ui-quadrant-BSNtsyJ5.cjs} +1 -1
- package/dist/{vue-ui-quadrant-B4Xp90go.js → vue-ui-quadrant-C94HXwr8.js} +12 -12
- package/dist/{vue-ui-quick-chart-CmdJuhrV.js → vue-ui-quick-chart-6fxJ8oH3.js} +53 -54
- package/dist/{vue-ui-quick-chart-BbmneGkd.cjs → vue-ui-quick-chart-B9Xbkibp.cjs} +5 -5
- package/dist/{vue-ui-radar-C0fJVGMX.js → vue-ui-radar-CQrWi1aN.js} +12 -12
- package/dist/{vue-ui-radar-Uw9jHF-A.cjs → vue-ui-radar-Q6izz-u2.cjs} +1 -1
- package/dist/{vue-ui-rating-m1AvXMFo.js → vue-ui-rating-Ciyd3dSC.js} +2 -2
- package/dist/{vue-ui-rating--WDHkylh.cjs → vue-ui-rating-DgsUBjAC.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BnGSpsh3.js → vue-ui-relation-circle-BVgfKoJY.js} +7 -7
- package/dist/{vue-ui-relation-circle-46aZfLDY.cjs → vue-ui-relation-circle-CAC4jUA7.cjs} +1 -1
- package/dist/{vue-ui-rings-BvwB9Pgy.js → vue-ui-rings-DuQmTRbW.js} +11 -11
- package/dist/{vue-ui-rings-C5uc13Mz.cjs → vue-ui-rings-VNKEeLJq.cjs} +1 -1
- package/dist/{vue-ui-scatter-CoW5nT_m.js → vue-ui-scatter-BlLPdbYP.js} +12 -12
- package/dist/{vue-ui-scatter-BAxQgdPf.cjs → vue-ui-scatter-CWTRMe0w.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CoBL8VvU.cjs → vue-ui-screenshot-C3nAs5FY.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C_s7_D5X.js → vue-ui-screenshot-Cf9IZKQy.js} +1 -1
- package/dist/{vue-ui-skeleton-DBo32QSA.js → vue-ui-skeleton--uwo2sCb.js} +3 -3
- package/dist/{vue-ui-skeleton-Czl8iTZQ.cjs → vue-ui-skeleton-CcWKK9pd.cjs} +1 -1
- package/dist/{vue-ui-smiley-D-FU6RGS.cjs → vue-ui-smiley-BI7CkEhi.cjs} +1 -1
- package/dist/{vue-ui-smiley-BQisdetv.js → vue-ui-smiley-Bc53TV0r.js} +2 -2
- package/dist/{vue-ui-spark-trend-DMwCqGul.js → vue-ui-spark-trend-Byey6P0P.js} +5 -5
- package/dist/{vue-ui-spark-trend-C6d6P8_s.cjs → vue-ui-spark-trend-CKgcM09-.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DHpoNSzN.js → vue-ui-sparkbar-C2Y0Foie.js} +4 -4
- package/dist/{vue-ui-sparkbar-CR3IzauM.cjs → vue-ui-sparkbar-FBEE4RyI.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CC1Eglzs.js → vue-ui-sparkgauge-Czf3xG6u.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CeXq_PnB.cjs → vue-ui-sparkgauge-DIQjrKUR.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-X9_zqOZb.cjs → vue-ui-sparkhistogram-CNQrhEr4.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-xIK7lFrl.js → vue-ui-sparkhistogram-MEdLzmyE.js} +5 -5
- package/dist/{vue-ui-sparkline-DgEXD0bt.js → vue-ui-sparkline-Cr2okEps.js} +4 -4
- package/dist/{vue-ui-sparkline-z8F4XzTG.cjs → vue-ui-sparkline-DNeX0Cst.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-wjQ7KHJm.cjs → vue-ui-sparkstackbar-CyvjXdi9.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Co449w2-.js → vue-ui-sparkstackbar-Db83U8wn.js} +5 -5
- package/dist/{vue-ui-stackbar-BCjjWZUq.js → vue-ui-stackbar-CQT1OJCn.js} +12 -12
- package/dist/{vue-ui-stackbar-C9Q0eM4s.cjs → vue-ui-stackbar-CfmbbZzJ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D9nUWA5a.js → vue-ui-strip-plot-DOzB5USx.js} +11 -11
- package/dist/{vue-ui-strip-plot-SbdQQDJD.cjs → vue-ui-strip-plot-T8_5JEzy.cjs} +1 -1
- package/dist/{vue-ui-table-4Zx9e6xR.cjs → vue-ui-table-C3O3go3K.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CQAwn6-B.cjs → vue-ui-table-heatmap-iho4COZg.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Dojf1B9-.js → vue-ui-table-heatmap-lftME_w3.js} +4 -4
- package/dist/{vue-ui-table-Df6cgK1g.js → vue-ui-table-ro63oB6Q.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DLd74n0T.cjs → vue-ui-table-sparkline-Ce0sOUWt.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-WSmyQwR2.js → vue-ui-table-sparkline-P9DzADZw.js} +5 -5
- package/dist/{vue-ui-thermometer-9gklDJUj.cjs → vue-ui-thermometer-BRYN1bHx.cjs} +1 -1
- package/dist/{vue-ui-thermometer-El0SBOq3.js → vue-ui-thermometer-DI4pKvnk.js} +7 -7
- package/dist/{vue-ui-timer-BBg7_SOY.cjs → vue-ui-timer-CsV8Cuty.cjs} +1 -1
- package/dist/{vue-ui-timer-DDuXYQZM.js → vue-ui-timer-DTsTsm_i.js} +5 -5
- package/dist/{vue-ui-tiremarks-BfIV-QDF.js → vue-ui-tiremarks-CjY3b9ph.js} +7 -7
- package/dist/{vue-ui-tiremarks-BIyXvipR.cjs → vue-ui-tiremarks-od0aPD4a.cjs} +1 -1
- package/dist/{vue-ui-treemap-BXGSdZ7D.js → vue-ui-treemap-B36BRS00.js} +11 -11
- package/dist/{vue-ui-treemap-DpshmJwJ.cjs → vue-ui-treemap-B69tqCDo.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CKwjHdCp.cjs → vue-ui-vertical-bar-8QN9YXK-.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CWCfyMLl.js → vue-ui-vertical-bar-CK1dtsFn.js} +11 -11
- package/dist/{vue-ui-waffle-qrwD0df7.js → vue-ui-waffle-CaJbFYrA.js} +19 -19
- package/dist/{vue-ui-waffle-IvkVZcab.cjs → vue-ui-waffle-CpcyWKuc.cjs} +1 -1
- package/dist/{vue-ui-wheel-DhwjPquK.cjs → vue-ui-wheel-DJQeNqbc.cjs} +1 -1
- package/dist/{vue-ui-wheel-BVzCac3i.js → vue-ui-wheel-WoHPA2Fp.js} +7 -7
- package/dist/{vue-ui-word-cloud-DNXgz7Aj.cjs → vue-ui-word-cloud-BfqeiAU8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CMibfjKu.js → vue-ui-word-cloud-D3h-mtSd.js} +10 -10
- package/dist/{vue-ui-xy-DRPrnIDh.js → vue-ui-xy-BTW5rwfL.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DmhWHa44.js → vue-ui-xy-canvas-DTySv5nX.js} +11 -11
- package/dist/{vue-ui-xy-canvas-prkO7IV3.cjs → vue-ui-xy-canvas-DtnXa5hf.cjs} +1 -1
- package/dist/{vue-ui-xy-DPybwkIx.cjs → vue-ui-xy-iL-McDRN.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BdlNqn9B.cjs +0 -9
- package/dist/vue-ui-carousel-table-7w6OlJGJ.js +0 -379
- package/dist/vue-ui-carousel-table-DpN88ZNk.cjs +0 -1
- package/dist/vue-ui-donut-DFS8YDvi.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BdlNqn9B.cjs"),ke=require("./useResponsive-BJ7DTGpm.cjs"),We=require("./Title-Z93_y2gr.cjs"),xe=require("./usePrinter-DtSijS1B.cjs"),Xe=require("./Tooltip-DVfgJ6mM.cjs"),$e=require("./Shape-GWT6Hhcc.cjs"),Ye=require("./Legend-TTzHdVeD.cjs"),Ae=require("./DataTable-CwiudM8v.cjs"),Me=require("./vue-ui-skeleton-Czl8iTZQ.cjs"),Pe=require("./vue-ui-accordion-Dm8myRhk.cjs"),Le=require("./useNestedProp-DDvMHRIf.cjs"),Oe=require("./PackageVersion-B_ULr99C.cjs"),Fe=require("./PenAndPaper-DFNDy1y9.cjs"),De=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),He=["id"],Ue=["xmlns","viewBox","id"],Ie=["id"],Ge=["stop-color"],Qe=["stop-color"],Je={key:0},je=["fill","x","y","height","width","stroke-width","stroke","rx"],Ze=["x1","y1","x2","y2","stroke","stroke-width"],Ke=["x1","y1","x2","y2","stroke","stroke-width"],et={key:1},tt=["points","fill"],lt=["points","fill"],at=["points","fill"],ot=["points","fill"],ut={key:2},rt=["y","fill","font-size"],nt=["x","y","fill","font-size"],st=["x","y","fill","font-size"],it=["y","fill","font-size"],ct={key:3},vt=["x","y","font-size","fill"],dt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],yt=["id","font-size","transform","fill"],bt=["id","font-size","transform","fill"],pt=["id","font-size","transform","fill"],ft={key:4},mt=["fill","points"],gt=["x","y","width","height"],kt=["x","y","width","height"],xt=["x","y","width","height"],$t=["x","y","width","height"],Lt={key:0,style:{"pointer-events":"none"}},Ct=["x","y","font-size","fill"],wt={key:0},St=["x","y","onMouseover","onClick"],Bt={key:7,class:"vue-ui-dna"},qt=["points","fill"],_t=["points","fill"],zt=["points","fill"],Nt=["points","fill"],Vt={key:8},Et=["x","y","font-size","fill","font-weight"],Tt={key:9},Wt=["x","y","fill"],Xt=["x","y","fill"],Yt=["x","y","fill"],At=["x","y","fill"],Mt=["stroke","d"],Pt=["stroke","d"],Ot={key:5,class:"vue-data-ui-watermark"},Ft=["onClick"],Dt={key:0,height:"14",width:"14",viewBox:"0 0 20 20"},Rt=["innerHTML"],Ht={__name:"vue-ui-quadrant",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectPlot","selectSide","selectLegend"],setup(Ce,{expose:we,emit:M}){const k=Ce,{vue_ui_quadrant:Se}=s.useConfig(),V=e.computed(()=>!!k.dataset&&k.dataset.length),g=e.ref(s.createUid()),Be=e.ref(null),E=e.ref(!1),P=e.ref(""),H=e.ref(0),h=e.ref(!1),w=e.ref(null),U=e.ref(null),I=e.ref(null),G=e.ref(null),Q=e.ref(null),J=e.ref(0),j=e.ref(0),Z=e.ref(0),l=e.computed({get:()=>te(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:K,keepUserOptionState:ee}=De.useUserOptionState({config:l.value});function te(){const a=Le.useNestedProp({userConfig:k.config,defaultConfig:Se});return a.theme?{...Le.useNestedProp({userConfig:s.themes.vue_ui_quadrant[a.theme]||k.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>k.config,a=>{l.value=te(),O.value=!l.value.showOnChartHover,le(),J.value+=1,j.value+=1,Z.value+=1},{deep:!0});const T=e.ref(null);function le(){if(s.objectIsEmpty(k.dataset)?s.error({componentName:"VueUiQuadrant",type:"dataset"}):k.dataset.forEach((a,u)=>{[null,void 0].includes(a.name)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"name",index:u}),[null,void 0].includes(a.series)?s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"series",index:u}):a.series.forEach((o,r)=>{[null,void 0].includes(o.name)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"name",key:"series",index:r})})}),l.value.responsive){const a=ke.throttle(()=>{const{width:u,height:o}=ke.useResponsive({chart:w.value,title:l.value.style.chart.title.text?U.value:null,legend:l.value.style.chart.legend.show?I.value:null,source:G.value,noTitle:Q.value});y.value=48,t.value.height=o,t.value.usableHeight=o-y.value*2,t.value.width=u,t.value.usableWidth=u-y.value*2,t.value.top=y.value,t.value.left=y.value,t.value.right=u-y.value,t.value.bottom=o-y.value,t.value.centerX=u/2,t.value.centerY=o-o/2,t.value.padding=y.value});T.value=new ResizeObserver(a),T.value.observe(w.value.parentNode)}}e.onMounted(()=>{le()}),e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});const{isPrinting:ae,isImaging:oe,generatePdf:ue,generateImage:re}=xe.usePrinter({elementId:`vue-ui-quadrant_${g.value}`,fileName:l.value.style.chart.title.text||"vue-ui-quadrant"}),qe=e.computed(()=>l.value.userOptions.show&&!l.value.style.chart.title.text),ne=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),p=e.ref({plotLabels:{show:l.value.style.chart.layout.labels.plotLabels.show},showTable:l.value.table.show,showTooltip:l.value.style.chart.tooltip.show}),y=e.ref(48),t=e.ref({height:l.value.style.chart.height,usableHeight:l.value.style.chart.height-y.value*2,width:l.value.style.chart.width,usableWidth:l.value.style.chart.width-y.value*2,top:y.value,left:y.value,right:l.value.style.chart.width-y.value,bottom:l.value.style.chart.height-y.value,centerX:l.value.style.chart.width/2,centerY:l.value.style.chart.height-l.value.style.chart.height/2,padding:y.value}),c=e.ref({...JSON.parse(JSON.stringify(t.value)),startX:0,startY:0});e.watch(()=>t.value,a=>{a&&(c.value={...JSON.parse(JSON.stringify(t.value)),startX:0,startY:0})},{deep:!0});const i=e.ref(null),C=e.computed(()=>{switch(i.value){case"TL":return{x:c.value.startX+c.value.width/2,y:c.value.height,text:l.value.style.chart.layout.labels.quadrantLabels.tl.text||"Top Left",fontSize:l.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color,bold:l.value.style.chart.layout.labels.quadrantLabels.tl.bold};case"TR":return{x:c.value.startX+c.value.width/2,y:c.value.height,text:l.value.style.chart.layout.labels.quadrantLabels.tr.text||"Top Right",fontSize:l.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color,bold:l.value.style.chart.layout.labels.quadrantLabels.tr.bold};case"BR":return{x:c.value.startX+c.value.width/2,y:c.value.height*1.678,text:l.value.style.chart.layout.labels.quadrantLabels.br.text||"Bottom Right",fontSize:l.value.style.chart.layout.labels.quadrantLabels.br.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color,bold:l.value.style.chart.layout.labels.quadrantLabels.br.bold};case"BL":return{x:c.value.startX+c.value.width/2,y:c.value.height*1.678,text:l.value.style.chart.layout.labels.quadrantLabels.bl.text||"Bottom Left",fontSize:l.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color,bold:l.value.style.chart.layout.labels.quadrantLabels.bl.bold};default:return{x:0,y:0,text:"",fontSize:0,fill:"none",bold:!1}}}),_e=e.ref(null),W=e.ref(!1);function q({targetX:a,targetY:u,targetW:o,targetH:r,side:n}){i.value&&N(n);const v={x:a-c.value.startX,y:u-c.value.startY,w:o-c.value.width,h:r-c.value.height},d=l.value.zoomAnimationFrames;let x=0;function ge(){W.value=!0,c.value.startX+=v.x/d,c.value.startY+=v.y/d,c.value.width+=v.w/d,c.value.height+=v.h/d,x+=1,x<d?_e.value=requestAnimationFrame(ge):W.value=!1}ge()}function $(a){if(!W.value)if(h.value&&i.value===a)q({targetX:0,targetY:0,targetW:t.value.width,targetH:t.value.height}),i.value=null,h.value=!1;else{switch(i.value=a,a){case"TL":q({targetX:0,targetY:0,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"tl"});break;case"TR":q({targetX:t.value.width/2-t.value.left,targetY:0,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"tr"});break;case"BR":q({targetX:t.value.width/2-t.value.left,targetY:t.value.height/2-t.value.top,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"br"});break;case"BL":q({targetX:0,targetY:t.value.height/2-t.value.top,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"bl"});break;default:c.value.startX=0,c.value.startY=0,c.value.width=t.value.width,c.value.height=t.value.height;break}h.value=!0}}const ze=e.computed(()=>{const a=l.value.style.chart.layout.grid.graduations.steps,u=t.value.usableWidth/(a*2),o=t.value.top,r=[];for(let n=0;n<a;n+=1)r.push({x:t.value.padding+u*n,y:o+t.value.usableHeight*(n/a/2),height:t.value.usableHeight*(1-n/a),width:t.value.usableWidth*(1-n/a),opacity:Math.round((n+1)/a*20)});return r}),f=e.computed(()=>{let a=l.value.style.chart.layout.grid.xAxis.max,u=l.value.style.chart.layout.grid.xAxis.min,o=l.value.style.chart.layout.grid.yAxis.max,r=l.value.style.chart.layout.grid.yAxis.min;return l.value.style.chart.layout.grid.xAxis.auto&&(a=Math.max(...S.value.flatMap(n=>n.series.map(v=>v.x))),u=Math.min(...S.value.flatMap(n=>n.series.map(v=>v.x)))),l.value.style.chart.layout.grid.yAxis.auto&&(o=Math.max(...S.value.flatMap(n=>n.series.map(v=>v.y))),r=Math.min(...S.value.flatMap(n=>n.series.map(v=>v.y)))),{x:{max:a,min:u},y:{max:o,min:r}}}),L=e.ref([]),S=e.computed(()=>k.dataset.map((a,u)=>({...a,series:s.largestTriangleThreeBuckets({data:a.series,threshold:l.value.downsample.threshold}),id:`cat_${u}_${g.value}`,color:s.convertColorToHex(a.color)||ne.value[u]||s.palette[u]}))),Ne=e.computed(()=>S.value.filter(a=>!L.value.includes(a.id))),Ve=e.computed(()=>S.value.map((a,u)=>({...a,shape:a.shape||"circle",series:a.series.map(o=>({...o,x:se(o.x),y:ie(o.y),xValue:o.x,yValue:o.y,quadrantSide:ve({x:o.x,y:o.y}),categoryName:a.name,shape:a.shape,color:a.color}))}))),m=e.computed(()=>(k.dataset.forEach((a,u)=>{a.series.forEach((o,r)=>{[null,void 0].includes(o.x)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"x",key:"series",index:r}),[null,void 0].includes(o.y)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"y",key:"series",index:r})})}),Ne.value.map((a,u)=>({...a,shape:a.shape||"circle",color:a.color||ne.value[u]||s.palette[u],series:a.series.map(o=>({...o,x:se(o.x),y:ie(o.y),xValue:o.x,yValue:o.y,quadrantSide:ve({x:o.x,y:o.y}),categoryName:a.name,shape:a.shape,color:a.color,uid:s.createUid()}))}))));function se(a){if(a>=0){const u=a/f.value.x.max;return t.value.centerX+t.value.usableWidth/2*u}else{const u=Math.abs(a)/Math.abs(f.value.x.min);return t.value.centerX-t.value.usableWidth/2*u}}function ie(a){if(a>=0){const u=a/f.value.y.max;return t.value.centerY+(1-t.value.usableHeight/2*u)}else{const u=Math.abs(a)/Math.abs(f.value.y.min);return t.value.centerY-(1-t.value.usableHeight/2*u)}}const X=e.computed(()=>{const a=m.value.flatMap(d=>d.series.map(x=>({x:x.xValue,y:x.yValue,name:x.name,category:x.categoryName,quadrantSide:x.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[x.quadrantSide].text,color:d.color,shape:d.shape}))),u=l.value.style.chart.layout.grid.xAxis.name||"x",o=l.value.style.chart.layout.grid.yAxis.name||"y",r=[l.value.translations.category,l.value.translations.item,u,o,l.value.translations.side],n=a.map(d=>[d.category,d.name,d.x,d.y,d.sideName||d.quadrantSide]),v=a.map(d=>({shape:d.shape,color:d.color}));return{head:r,body:n,itsShapes:v,tableData:a}}),Y=e.computed(()=>{const a=X.value.head,u=X.value.tableData.map(r=>[{shape:r.shape,color:r.color,name:r.category},r.name,s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.x.formatter,r.x,s.dataLabel({v:r.x,r:l.value.style.chart.layout.labels.plotLabels.rounding})),s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.y.formatter,r.y,s.dataLabel({v:r.y,r:l.value.style.chart.layout.labels.plotLabels.rounding})),r.sideName||r.quadrantSide]),o={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint};return{head:a,body:u,config:o,colNames:a}});function F(a){L.value.includes(a)?L.value=L.value.filter(o=>o!==a):L.value.push(a);const u=ye();M("selectLegend",u)}const ce=e.computed(()=>Ve.value.map(a=>({name:a.name,shape:a.shape,color:a.color,id:a.id,opacity:L.value.includes(a.id)?.5:1,segregate:()=>F(a.id),isSegregated:L.value.includes(a.id)}))),Ee=e.computed(()=>({cy:"quadrant-div-legend",backgroundColor:l.value.style.chart.legend.backgroundColor,color:l.value.style.chart.legend.color,fontSize:l.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:l.value.style.chart.legend.bold?"bold":""}));function ve(a){switch(!0){case(a.x>=0&&a.y>=0):return"tr";case(a.x>=0&&a.y<0):return"br";case(a.x<0&&a.y<0):return"bl";case(a.x<0&&a.y>=0):return"tl";default:return""}}const _=e.ref(null),z=e.ref(null),D=e.ref(null);function de(a,u,o){_.value=u.uid,z.value={color:a.color,shape:a.shape},D.value={datapoint:u,seriesIndex:o,series:m.value,config:l.value},E.value=!0;const r=l.value.style.chart.tooltip.customFormat;if(s.isFunction(r)&&s.functionReturnsString(()=>r({seriesIndex:o,datapoint:u,series:m.value,config:l.value})))P.value=r({seriesIndex:o,datapoint:u,series:m.value,config:l.value});else{let n="";u.quadrantSide&&(n+=`<div style="color:${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold?"bold":"400"}">${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`),n+=`<div>${a.name}</div>`,n+=`<div style="padding-bottom:6px;border-bottom:1px solid ${l.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`,n+=`<div>${l.value.style.chart.layout.grid.xAxis.name?l.value.style.chart.layout.grid.xAxis.name:"x"}: <b>${s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.x.formatter,u.xValue,s.dataLabel({v:u.xValue,r:l.value.style.chart.tooltip.roundingValue}),{datapoint:u,category:a,categoryIndex:o})}</b></div>`,n+=`<div>${l.value.style.chart.layout.grid.yAxis.name?l.value.style.chart.layout.grid.yAxis.name:"y"}: <b>${s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.y.formatter,u.yValue,s.dataLabel({v:u.yValue,r:l.value.style.chart.tooltip.roundingValue}),{datapoint:u,category:a,categoryIndex:o})}</b></div>`,P.value=`<div style="text-align:left;font-size:${l.value.style.chart.tooltip.fontSize}px">${n}</div>`}}function he(a,u){const o={category:a.name,shape:a.shape,itemName:u.name,x:u.xValue,y:u.yValue,quadrantSide:u.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text};M("selectPlot",o)}function N(a){if(!a)return;const u=m.value.flatMap(r=>r.series.filter(n=>n.quadrantSide===a).map(n=>({category:n.categoryName,itemName:n.name,x:n.xValue,y:n.yValue}))),o={quadrantSide:a,sideName:l.value.style.chart.layout.labels.quadrantLabels[a].text,items:[...u]};M("selectSide",o)}const b=e.computed(()=>({TL:{tl:{x:t.value.left+t.value.usableWidth/4-20,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.left+t.value.usableWidth/4,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.left+t.value.usableWidth/4,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.left+t.value.usableWidth/4-20,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.left+t.value.usableWidth/4-20},20 ${t.value.left+t.value.usableWidth/4+20},20`,vertical:`M ${t.value.left+t.value.usableWidth/4},0 ${t.value.left+t.value.usableWidth/4},40`}},TR:{tl:{x:t.value.centerX+t.value.usableWidth/4-20,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.centerX+t.value.usableWidth/4,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.centerX+t.value.usableWidth/4,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.centerX+t.value.usableWidth/4-20,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.centerX+t.value.usableWidth/4-20},20 ${t.value.centerX+t.value.usableWidth/4+20},20`,vertical:`M ${t.value.centerX+t.value.usableWidth/4},0 ${t.value.centerX+t.value.usableWidth/4},40`}},BR:{tl:{x:t.value.centerX+t.value.usableWidth/4-20,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.centerX+t.value.usableWidth/4,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.centerX+t.value.usableWidth/4,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.centerX+t.value.usableWidth/4-20,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.centerX+t.value.usableWidth/4-20},${t.value.centerY-28} ${t.value.centerX+t.value.usableWidth/4+20},${t.value.centerY-28}`,vertical:`M ${t.value.centerX+t.value.usableWidth/4},${t.value.centerY-48} ${t.value.centerX+t.value.usableWidth/4},${t.value.centerY-8}`}},BL:{tl:{x:t.value.left+t.value.usableWidth/4-20,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.left+t.value.usableWidth/4,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.left+t.value.usableWidth/4,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.left+t.value.usableWidth/4-20,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.left+t.value.usableWidth/4-20},${t.value.centerY-28} ${t.value.left+t.value.usableWidth/4+20},${t.value.centerY-28}`,vertical:`M ${t.value.left+t.value.usableWidth/4},${t.value.centerY-48} ${t.value.left+t.value.usableWidth/4},${t.value.centerY-8}`}}}));function ye(){return m.value.map(a=>({color:a.color,name:a.name,shape:a.shape,series:a.series.map(u=>({name:u.name,x:u.xValue,y:u.yValue,quadrantSide:u.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}))}))}function be(){e.nextTick(()=>{const a=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[""]],u=X.value.head,o=X.value.body,r=a.concat([u]).concat(o),n=s.createCsvContent(r);s.downloadCsv({csvContent:n,title:l.value.style.chart.title.text||"vue-ui-quadrant"})})}const B=e.ref(!1);function Te(a){B.value=a,H.value+=1}function pe(){p.value.showTable=!p.value.showTable}function fe(){p.value.plotLabels.show=!p.value.plotLabels.show}function me(){p.value.showTooltip=!p.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}return we({getData:ye,generatePdf:ue,generateCsv:be,generateImage:re,toggleTable:pe,toggleLabels:fe,toggleTooltip:me,toggleAnnotator:R}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-quadrant ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${l.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"quadrantChart",ref:w,id:`vue-ui-quadrant_${g.value}`,style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor};${l.value.responsive?"height: 100%":""}`),onMouseenter:u[16]||(u[16]=()=>e.unref(K)(!0)),onMouseleave:u[17]||(u[17]=()=>e.unref(K)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:w.value,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),qe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(We._sfc_main,{key:`table_${J.value}`,config:{title:{cy:"quadrant-title",...l.value.style.chart.title},subtitle:{cy:"quadrant-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),l.value.userOptions.show&&V.value&&(e.unref(ee)||e.unref(O))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref_key:"details",ref:Be,key:`user_options_${H.value}`,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isImaging:e.unref(oe),isPrinting:e.unref(ae),uid:g.value,hasTooltip:l.value.userOptions.buttons.tooltip&&l.value.style.chart.tooltip.show,hasPdf:l.value.userOptions.buttons.pdf,hasImg:l.value.userOptions.buttons.img,hasXls:l.value.userOptions.buttons.csv,hasTable:l.value.userOptions.buttons.table,hasLabel:l.value.userOptions.buttons.labels,hasFullscreen:l.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:p.value.showTooltip,titles:{...l.value.userOptions.buttonTitles},chartElement:w.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ue),onGenerateCsv:be,onGenerateImage:e.unref(re),onToggleTable:pe,onToggleLabels:fe,onToggleTooltip:me,onToggleAnnotator:R,style:e.normalizeStyle({visibility:e.unref(ee)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`${c.value.startX} ${c.value.startY} ${c.value.width} ${c.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:${h.value?"hidden":"visible"};background:transparent;color:${l.value.style.chart.color}`),id:`svg_${g.value}`},[e.createVNode(Oe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`quadrant_gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(o.color,.05),l.value.style.chart.layout.areas.opacity)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(o.color,l.value.style.chart.layout.areas.opacity)},null,8,Qe)],8,Ie))),256))]),l.value.style.chart.layout.grid.graduations.show?(e.openBlock(),e.createElementBlock("g",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ze.value,o=>(e.openBlock(),e.createElementBlock("rect",{fill:l.value.style.chart.layout.grid.graduations.fill?e.unref(s.setOpacity)(l.value.style.chart.layout.grid.graduations.color,o.opacity):"none",x:o.x,y:o.y,height:o.height<=0?.001:o.height,width:o.width<=0?.001:o.width,"stroke-width":l.value.style.chart.layout.grid.graduations.strokeWidth,stroke:l.value.style.chart.layout.grid.graduations.stroke,rx:l.value.style.chart.layout.grid.graduations.roundingForce},null,8,je))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:t.value.left,y1:t.value.centerY,x2:t.value.right,y2:t.value.centerY,stroke:l.value.style.chart.layout.grid.stroke,"stroke-width":l.value.style.chart.layout.grid.strokeWidth},null,8,Ze),e.createElementVNode("line",{x1:t.value.centerX,y1:t.value.top,x2:t.value.centerX,y2:t.value.bottom,stroke:l.value.style.chart.layout.grid.stroke,"stroke-width":l.value.style.chart.layout.grid.strokeWidth},null,8,Ke),l.value.style.chart.layout.grid.showArrows?(e.openBlock(),e.createElementBlock("g",et,[e.createElementVNode("polygon",{points:`${t.value.right-8},${t.value.centerY-6} ${t.value.right},${t.value.centerY} ${t.value.right-8},${t.value.centerY+6}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,tt),e.createElementVNode("polygon",{points:`${t.value.left+8},${t.value.centerY-6} ${t.value.left},${t.value.centerY} ${t.value.left+8},${t.value.centerY+6}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,lt),e.createElementVNode("polygon",{points:`${t.value.centerX-6},${t.value.top+8} ${t.value.centerX},${t.value.top} ${t.value.centerX+6},${t.value.top+8}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,at),e.createElementVNode("polygon",{points:`${t.value.centerX-6},${t.value.bottom-8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX+6},${t.value.bottom-8}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,ot)])):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.show&&!h.value?(e.openBlock(),e.createElementBlock("g",ut,[l.value.style.chart.layout.labels.quadrantLabels.tl.text?(e.openBlock(),e.createElementBlock("text",{key:0,x:0,y:t.value.top-t.value.padding/2,"text-anchor":"start",fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.tl.bold?"bold":""}`),onClick:u[0]||(u[0]=o=>N("tl"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.tl.text),13,rt)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.tr.text?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.value.width,y:t.value.top-t.value.padding/2,"text-anchor":"end",fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.tr.bold?"bold":""}`),onClick:u[1]||(u[1]=o=>N("tr"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.tr.text),13,nt)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.br.text?(e.openBlock(),e.createElementBlock("text",{key:2,x:t.value.width,y:t.value.bottom+t.value.padding*.7,"text-anchor":"end",fill:l.value.style.chart.layout.labels.quadrantLabels.br.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.br.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.br.bold?"bold":""}`),onClick:u[2]||(u[2]=o=>N("br"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.br.text),13,st)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.bl.text?(e.openBlock(),e.createElementBlock("text",{key:3,x:0,y:t.value.bottom+t.value.padding*.7,"text-anchor":"start",fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.bl.bold?"bold":""}`),onClick:u[3]||(u[3]=o=>N("bl"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.bl.text),13,it)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.axisLabels.show?(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("text",{x:t.value.centerX,y:t.value.top-t.value.padding/6,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.y.formatter,f.value.y.max,e.unref(s.dataLabel)({v:f.value.y.max,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,vt),e.createElementVNode("text",{x:t.value.centerX,y:t.value.top-t.value.padding/2,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(l.value.style.chart.layout.grid.yAxis.name),9,dt),e.createElementVNode("text",{x:t.value.centerX,y:t.value.bottom+t.value.padding*.35,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.negative},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.y.formatter,f.value.y.min,e.unref(s.dataLabel)({v:f.value.y.min,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,ht),e.createElementVNode("text",{id:`xLabelMin_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.padding-l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(-90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.negative},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.x.formatter,f.value.x.min,e.unref(s.dataLabel)({v:f.value.x.min,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,yt),e.createElementVNode("text",{id:`xLabelMax_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.width-t.value.padding+l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.x.formatter,f.value.x.max,e.unref(s.dataLabel)({v:f.value.x.max,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,bt),e.createElementVNode("text",{id:`xLabelMaxName_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.width-l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(l.value.style.chart.layout.grid.xAxis.name),9,pt)])):e.createCommentVNode("",!0),l.value.style.chart.layout.areas.show?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[o.series.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-quadrant-area":"",fill:l.value.style.chart.layout.areas.useGradient?`url(#quadrant_gradient_${g.value}_${r})`:e.unref(s.setOpacity)(o.color,l.value.style.chart.layout.areas.opacity),points:e.unref(s.giftWrap)(o)},null,8,mt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[e.createElementVNode("rect",{onClick:u[4]||(u[4]=o=>$("TL")),x:t.value.left,y:t.value.top,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,gt),e.createElementVNode("rect",{onClick:u[5]||(u[5]=o=>$("TR")),x:t.value.centerX,y:t.value.top,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,kt),e.createElementVNode("rect",{onClick:u[6]||(u[6]=o=>$("BR")),x:t.value.centerX,y:t.value.centerY,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,xt),e.createElementVNode("rect",{onClick:u[7]||(u[7]=o=>$("BL")),x:t.value.left,y:t.value.centerY,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,$t)]),l.value.style.chart.layout.labels.plotLabels.showAsTag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[p.value.plotLabels.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,n=>(e.openBlock(),e.createElementBlock("foreignObject",{style:{overflow:"visible"},height:"10",width:"100",x:n.x-50,y:n.y-l.value.style.chart.layout.labels.plotLabels.fontSize,onMouseover:v=>de(o,n,r),onMouseleave:u[9]||(u[9]=v=>{E.value=!1,_.value=null,z.value=null}),onClick:v=>he(o,n)},[e.createElementVNode("div",{style:e.normalizeStyle(`color:${e.unref(s.adaptColorToBackground)(o.color)};margin: 0 auto; font-size:${l.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${o.color}; padding: 2px 4px; border-radius: 12px; height: ${l.value.style.chart.layout.labels.plotLabels.fontSize*1.5}px`)},e.toDisplayString(n.name),5)],40,St))),256))],64))),256))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,n=>(e.openBlock(),e.createBlock($e._sfc_main,{color:o.color,isSelected:_.value&&n.uid===_.value,plot:n,radius:l.value.style.chart.layout.plots.radius/(h.value?1.5:1),shape:o.shape,stroke:l.value.style.chart.layout.plots.outline?l.value.style.chart.layout.plots.outlineColor:"none",strokeWidth:l.value.style.chart.layout.plots.outlineWidth,onMouseover:v=>de(o,n,r),onMouseleave:u[8]||(u[8]=v=>{E.value=!1,_.value=null,z.value=null}),onClick:v=>he(o,n)},null,8,["color","isSelected","plot","radius","shape","stroke","strokeWidth","onMouseover","onClick"]))),256))]))),256)),p.value.plotLabels.show?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,o=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,r=>(e.openBlock(),e.createElementBlock("text",{x:r.x,y:r.y+l.value.style.chart.layout.labels.plotLabels.offsetY+l.value.style.chart.layout.plots.radius,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.plotLabels.fontSize/(h.value?1.5:1),fill:l.value.style.chart.layout.labels.plotLabels.color},e.toDisplayString(r.name),9,Ct))),256))]))),256))])):e.createCommentVNode("",!0)],64)),h.value?(e.openBlock(),e.createElementBlock("g",Bt,[i.value==="TL"?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:`${t.value.left-1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top-1} ${t.value.right},${t.value.top-1} ${t.value.right},${t.value.bottom} ${t.value.left-1},${t.value.bottom} ${t.value.left-1},${t.value.centerY}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,qt)):e.createCommentVNode("",!0),i.value==="TR"?(e.openBlock(),e.createElementBlock("polygon",{key:1,points:`${t.value.left},${t.value.top-1} ${t.value.centerX},${t.value.top-1} ${t.value.centerX},${t.value.centerY} ${t.value.right+1},${t.value.centerY} ${t.value.right+1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top-1}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,_t)):e.createCommentVNode("",!0),i.value==="BR"?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:`${t.value.left},${t.value.top} ${t.value.right+1},${t.value.top} ${t.value.right+1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom+1} ${t.value.left},${t.value.bottom+1} ${t.value.left},${t.value.top}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,zt)):e.createCommentVNode("",!0),i.value==="BL"?(e.openBlock(),e.createElementBlock("polygon",{key:3,points:`${t.value.left-1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom+1} ${t.value.centerX},${t.value.bottom+1} ${t.value.centerX},${t.value.centerY} ${t.value.left-1},${t.value.centerY} ${t.value.left-1},${t.value.top}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,Nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),i.value&&!W.value?(e.openBlock(),e.createElementBlock("g",Vt,[e.createElementVNode("text",{x:C.value.x,y:C.value.y-C.value.fontSize/1.5,"font-size":C.value.fontSize/1.5,fill:C.value.fill,"text-anchor":"middle","font-weight":C.value.bold?"bold":"normal"},e.toDisplayString(C.value.text),9,Et)])):e.createCommentVNode("",!0),h.value&&i.value?(e.openBlock(),e.createElementBlock("g",Tt,[e.createElementVNode("rect",{x:b.value[i.value].tl.x,y:b.value[i.value].tl.y,height:"20",width:"20",fill:b.value[i.value].tl.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="TL"?1:.2}`),onClick:u[10]||(u[10]=o=>$("TL")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="TL"})},null,14,Wt),e.createElementVNode("rect",{x:b.value[i.value].tr.x,y:b.value[i.value].tr.y,height:"20",width:"20",fill:b.value[i.value].tr.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="TR"?1:.2}`),onClick:u[11]||(u[11]=o=>$("TR")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="TR"})},null,14,Xt),e.createElementVNode("rect",{x:b.value[i.value].br.x,y:b.value[i.value].br.y,height:"20",width:"20",fill:b.value[i.value].br.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="BR"?1:.2}`),onClick:u[12]||(u[12]=o=>$("BR")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="BR"})},null,14,Yt),e.createElementVNode("rect",{x:b.value[i.value].bl.x,y:b.value[i.value].bl.y,height:"20",width:"20",fill:b.value[i.value].bl.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="BL"?1:.2}`),onClick:u[13]||(u[13]=o=>$("BL")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="BL"})},null,14,At),e.createElementVNode("path",{class:"vue-ui-quadrant-minimap-crosshairs",stroke:l.value.style.chart.backgroundColor,"stroke-width":1,d:b.value[i.value].crosshairs.horizontal},null,8,Mt),e.createElementVNode("path",{class:"vue-ui-quadrant-minimap-crosshairs",stroke:l.value.style.chart.backgroundColor,"stroke-width":1,d:b.value[i.value].crosshairs.vertical},null,8,Pt)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:t.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:6,config:{type:"quadrant",style:{backgroundColor:l.value.style.chart.backgroundColor,quadrant:{grid:{color:l.value.style.chart.layout.grid.stroke},plots:{color:l.value.style.chart.layout.grid.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[l.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ye.Legend,{key:`legend_${Z.value}`,legendSet:ce.value,config:Ee.value,onClickMarker:u[14]||(u[14]=({legend:o})=>F(o.id))},{item:e.withCtx(({legend:o})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:r=>F(o.id),style:e.normalizeStyle(`opacity:${L.value.includes(o.id)?.5:1}`)},e.toDisplayString(o.name),13,Ft)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:ce.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:G,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Xe._sfc_main,{show:p.value.showTooltip&&E.value,backgroundColor:l.value.style.chart.tooltip.backgroundColor,color:l.value.style.chart.tooltip.color,borderRadius:l.value.style.chart.tooltip.borderRadius,borderColor:l.value.style.chart.tooltip.borderColor,borderWidth:l.value.style.chart.tooltip.borderWidth,fontSize:l.value.style.chart.tooltip.fontSize,backgroundOpacity:l.value.style.chart.tooltip.backgroundOpacity,position:l.value.style.chart.tooltip.position,offsetY:l.value.style.chart.tooltip.offsetY,parent:w.value,content:P.value,isFullscreen:B.value,isCustom:l.value.style.chart.tooltip.customFormat&&typeof l.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),default:e.withCtx(()=>[l.value.style.chart.tooltip.showShape?(e.openBlock(),e.createElementBlock("svg",Dt,[e.createVNode($e._sfc_main,{plot:{x:10,y:10},shape:z.value.shape,color:z.value.color,radius:8,stroke:l.value.style.chart.layout.plots.outline?l.value.style.chart.layout.plots.outlineColor:"none","stroke-width":l.value.style.chart.layout.plots.outlineWidth},null,8,["shape","color","stroke","stroke-width"])])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),V.value?(e.openBlock(),e.createBlock(Pe.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ae.DataTable,{key:`table_${j.value}`,colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:u[15]||(u[15]=o=>p.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o.name||o},null,8,Rt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,He))}},Ut=Re._export_sfc(Ht,[["__scopeId","data-v-a9e13776"]]);exports.default=Ut;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Cvx5SntE.cjs"),ke=require("./useResponsive-BJ7DTGpm.cjs"),We=require("./Title-Bw-FXFej.cjs"),xe=require("./usePrinter-BwruEydS.cjs"),Xe=require("./Tooltip-98ospYeV.cjs"),$e=require("./Shape-Diaok0Bu.cjs"),Ye=require("./Legend-DecSHp0h.cjs"),Ae=require("./DataTable-osuWgmyP.cjs"),Me=require("./vue-ui-skeleton-CcWKK9pd.cjs"),Pe=require("./vue-ui-accordion-DfqTc4ro.cjs"),Le=require("./useNestedProp-CSIVZXvp.cjs"),Oe=require("./PackageVersion-eTcMI7M3.cjs"),Fe=require("./PenAndPaper-BqcQLMi2.cjs"),De=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),He=["id"],Ue=["xmlns","viewBox","id"],Ie=["id"],Ge=["stop-color"],Qe=["stop-color"],Je={key:0},je=["fill","x","y","height","width","stroke-width","stroke","rx"],Ze=["x1","y1","x2","y2","stroke","stroke-width"],Ke=["x1","y1","x2","y2","stroke","stroke-width"],et={key:1},tt=["points","fill"],lt=["points","fill"],at=["points","fill"],ot=["points","fill"],ut={key:2},rt=["y","fill","font-size"],nt=["x","y","fill","font-size"],st=["x","y","fill","font-size"],it=["y","fill","font-size"],ct={key:3},vt=["x","y","font-size","fill"],dt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],yt=["id","font-size","transform","fill"],bt=["id","font-size","transform","fill"],pt=["id","font-size","transform","fill"],ft={key:4},mt=["fill","points"],gt=["x","y","width","height"],kt=["x","y","width","height"],xt=["x","y","width","height"],$t=["x","y","width","height"],Lt={key:0,style:{"pointer-events":"none"}},Ct=["x","y","font-size","fill"],wt={key:0},St=["x","y","onMouseover","onClick"],Bt={key:7,class:"vue-ui-dna"},qt=["points","fill"],_t=["points","fill"],zt=["points","fill"],Nt=["points","fill"],Vt={key:8},Et=["x","y","font-size","fill","font-weight"],Tt={key:9},Wt=["x","y","fill"],Xt=["x","y","fill"],Yt=["x","y","fill"],At=["x","y","fill"],Mt=["stroke","d"],Pt=["stroke","d"],Ot={key:5,class:"vue-data-ui-watermark"},Ft=["onClick"],Dt={key:0,height:"14",width:"14",viewBox:"0 0 20 20"},Rt=["innerHTML"],Ht={__name:"vue-ui-quadrant",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectPlot","selectSide","selectLegend"],setup(Ce,{expose:we,emit:M}){const k=Ce,{vue_ui_quadrant:Se}=s.useConfig(),V=e.computed(()=>!!k.dataset&&k.dataset.length),g=e.ref(s.createUid()),Be=e.ref(null),E=e.ref(!1),P=e.ref(""),H=e.ref(0),h=e.ref(!1),w=e.ref(null),U=e.ref(null),I=e.ref(null),G=e.ref(null),Q=e.ref(null),J=e.ref(0),j=e.ref(0),Z=e.ref(0),l=e.computed({get:()=>te(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:K,keepUserOptionState:ee}=De.useUserOptionState({config:l.value});function te(){const a=Le.useNestedProp({userConfig:k.config,defaultConfig:Se});return a.theme?{...Le.useNestedProp({userConfig:s.themes.vue_ui_quadrant[a.theme]||k.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>k.config,a=>{l.value=te(),O.value=!l.value.showOnChartHover,le(),J.value+=1,j.value+=1,Z.value+=1},{deep:!0});const T=e.ref(null);function le(){if(s.objectIsEmpty(k.dataset)?s.error({componentName:"VueUiQuadrant",type:"dataset"}):k.dataset.forEach((a,u)=>{[null,void 0].includes(a.name)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"name",index:u}),[null,void 0].includes(a.series)?s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"series",index:u}):a.series.forEach((o,r)=>{[null,void 0].includes(o.name)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"name",key:"series",index:r})})}),l.value.responsive){const a=ke.throttle(()=>{const{width:u,height:o}=ke.useResponsive({chart:w.value,title:l.value.style.chart.title.text?U.value:null,legend:l.value.style.chart.legend.show?I.value:null,source:G.value,noTitle:Q.value});y.value=48,t.value.height=o,t.value.usableHeight=o-y.value*2,t.value.width=u,t.value.usableWidth=u-y.value*2,t.value.top=y.value,t.value.left=y.value,t.value.right=u-y.value,t.value.bottom=o-y.value,t.value.centerX=u/2,t.value.centerY=o-o/2,t.value.padding=y.value});T.value=new ResizeObserver(a),T.value.observe(w.value.parentNode)}}e.onMounted(()=>{le()}),e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});const{isPrinting:ae,isImaging:oe,generatePdf:ue,generateImage:re}=xe.usePrinter({elementId:`vue-ui-quadrant_${g.value}`,fileName:l.value.style.chart.title.text||"vue-ui-quadrant"}),qe=e.computed(()=>l.value.userOptions.show&&!l.value.style.chart.title.text),ne=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),p=e.ref({plotLabels:{show:l.value.style.chart.layout.labels.plotLabels.show},showTable:l.value.table.show,showTooltip:l.value.style.chart.tooltip.show}),y=e.ref(48),t=e.ref({height:l.value.style.chart.height,usableHeight:l.value.style.chart.height-y.value*2,width:l.value.style.chart.width,usableWidth:l.value.style.chart.width-y.value*2,top:y.value,left:y.value,right:l.value.style.chart.width-y.value,bottom:l.value.style.chart.height-y.value,centerX:l.value.style.chart.width/2,centerY:l.value.style.chart.height-l.value.style.chart.height/2,padding:y.value}),c=e.ref({...JSON.parse(JSON.stringify(t.value)),startX:0,startY:0});e.watch(()=>t.value,a=>{a&&(c.value={...JSON.parse(JSON.stringify(t.value)),startX:0,startY:0})},{deep:!0});const i=e.ref(null),C=e.computed(()=>{switch(i.value){case"TL":return{x:c.value.startX+c.value.width/2,y:c.value.height,text:l.value.style.chart.layout.labels.quadrantLabels.tl.text||"Top Left",fontSize:l.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color,bold:l.value.style.chart.layout.labels.quadrantLabels.tl.bold};case"TR":return{x:c.value.startX+c.value.width/2,y:c.value.height,text:l.value.style.chart.layout.labels.quadrantLabels.tr.text||"Top Right",fontSize:l.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color,bold:l.value.style.chart.layout.labels.quadrantLabels.tr.bold};case"BR":return{x:c.value.startX+c.value.width/2,y:c.value.height*1.678,text:l.value.style.chart.layout.labels.quadrantLabels.br.text||"Bottom Right",fontSize:l.value.style.chart.layout.labels.quadrantLabels.br.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color,bold:l.value.style.chart.layout.labels.quadrantLabels.br.bold};case"BL":return{x:c.value.startX+c.value.width/2,y:c.value.height*1.678,text:l.value.style.chart.layout.labels.quadrantLabels.bl.text||"Bottom Left",fontSize:l.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color,bold:l.value.style.chart.layout.labels.quadrantLabels.bl.bold};default:return{x:0,y:0,text:"",fontSize:0,fill:"none",bold:!1}}}),_e=e.ref(null),W=e.ref(!1);function q({targetX:a,targetY:u,targetW:o,targetH:r,side:n}){i.value&&N(n);const v={x:a-c.value.startX,y:u-c.value.startY,w:o-c.value.width,h:r-c.value.height},d=l.value.zoomAnimationFrames;let x=0;function ge(){W.value=!0,c.value.startX+=v.x/d,c.value.startY+=v.y/d,c.value.width+=v.w/d,c.value.height+=v.h/d,x+=1,x<d?_e.value=requestAnimationFrame(ge):W.value=!1}ge()}function $(a){if(!W.value)if(h.value&&i.value===a)q({targetX:0,targetY:0,targetW:t.value.width,targetH:t.value.height}),i.value=null,h.value=!1;else{switch(i.value=a,a){case"TL":q({targetX:0,targetY:0,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"tl"});break;case"TR":q({targetX:t.value.width/2-t.value.left,targetY:0,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"tr"});break;case"BR":q({targetX:t.value.width/2-t.value.left,targetY:t.value.height/2-t.value.top,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"br"});break;case"BL":q({targetX:0,targetY:t.value.height/2-t.value.top,targetW:t.value.width/2+t.value.left,targetH:t.value.height/2+t.value.top,side:"bl"});break;default:c.value.startX=0,c.value.startY=0,c.value.width=t.value.width,c.value.height=t.value.height;break}h.value=!0}}const ze=e.computed(()=>{const a=l.value.style.chart.layout.grid.graduations.steps,u=t.value.usableWidth/(a*2),o=t.value.top,r=[];for(let n=0;n<a;n+=1)r.push({x:t.value.padding+u*n,y:o+t.value.usableHeight*(n/a/2),height:t.value.usableHeight*(1-n/a),width:t.value.usableWidth*(1-n/a),opacity:Math.round((n+1)/a*20)});return r}),f=e.computed(()=>{let a=l.value.style.chart.layout.grid.xAxis.max,u=l.value.style.chart.layout.grid.xAxis.min,o=l.value.style.chart.layout.grid.yAxis.max,r=l.value.style.chart.layout.grid.yAxis.min;return l.value.style.chart.layout.grid.xAxis.auto&&(a=Math.max(...S.value.flatMap(n=>n.series.map(v=>v.x))),u=Math.min(...S.value.flatMap(n=>n.series.map(v=>v.x)))),l.value.style.chart.layout.grid.yAxis.auto&&(o=Math.max(...S.value.flatMap(n=>n.series.map(v=>v.y))),r=Math.min(...S.value.flatMap(n=>n.series.map(v=>v.y)))),{x:{max:a,min:u},y:{max:o,min:r}}}),L=e.ref([]),S=e.computed(()=>k.dataset.map((a,u)=>({...a,series:s.largestTriangleThreeBuckets({data:a.series,threshold:l.value.downsample.threshold}),id:`cat_${u}_${g.value}`,color:s.convertColorToHex(a.color)||ne.value[u]||s.palette[u]}))),Ne=e.computed(()=>S.value.filter(a=>!L.value.includes(a.id))),Ve=e.computed(()=>S.value.map((a,u)=>({...a,shape:a.shape||"circle",series:a.series.map(o=>({...o,x:se(o.x),y:ie(o.y),xValue:o.x,yValue:o.y,quadrantSide:ve({x:o.x,y:o.y}),categoryName:a.name,shape:a.shape,color:a.color}))}))),m=e.computed(()=>(k.dataset.forEach((a,u)=>{a.series.forEach((o,r)=>{[null,void 0].includes(o.x)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"x",key:"series",index:r}),[null,void 0].includes(o.y)&&s.error({componentName:"VueUiQuadrant",type:"datasetSerieAttribute",property:"y",key:"series",index:r})})}),Ne.value.map((a,u)=>({...a,shape:a.shape||"circle",color:a.color||ne.value[u]||s.palette[u],series:a.series.map(o=>({...o,x:se(o.x),y:ie(o.y),xValue:o.x,yValue:o.y,quadrantSide:ve({x:o.x,y:o.y}),categoryName:a.name,shape:a.shape,color:a.color,uid:s.createUid()}))}))));function se(a){if(a>=0){const u=a/f.value.x.max;return t.value.centerX+t.value.usableWidth/2*u}else{const u=Math.abs(a)/Math.abs(f.value.x.min);return t.value.centerX-t.value.usableWidth/2*u}}function ie(a){if(a>=0){const u=a/f.value.y.max;return t.value.centerY+(1-t.value.usableHeight/2*u)}else{const u=Math.abs(a)/Math.abs(f.value.y.min);return t.value.centerY-(1-t.value.usableHeight/2*u)}}const X=e.computed(()=>{const a=m.value.flatMap(d=>d.series.map(x=>({x:x.xValue,y:x.yValue,name:x.name,category:x.categoryName,quadrantSide:x.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[x.quadrantSide].text,color:d.color,shape:d.shape}))),u=l.value.style.chart.layout.grid.xAxis.name||"x",o=l.value.style.chart.layout.grid.yAxis.name||"y",r=[l.value.translations.category,l.value.translations.item,u,o,l.value.translations.side],n=a.map(d=>[d.category,d.name,d.x,d.y,d.sideName||d.quadrantSide]),v=a.map(d=>({shape:d.shape,color:d.color}));return{head:r,body:n,itsShapes:v,tableData:a}}),Y=e.computed(()=>{const a=X.value.head,u=X.value.tableData.map(r=>[{shape:r.shape,color:r.color,name:r.category},r.name,s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.x.formatter,r.x,s.dataLabel({v:r.x,r:l.value.style.chart.layout.labels.plotLabels.rounding})),s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.y.formatter,r.y,s.dataLabel({v:r.y,r:l.value.style.chart.layout.labels.plotLabels.rounding})),r.sideName||r.quadrantSide]),o={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint};return{head:a,body:u,config:o,colNames:a}});function F(a){L.value.includes(a)?L.value=L.value.filter(o=>o!==a):L.value.push(a);const u=ye();M("selectLegend",u)}const ce=e.computed(()=>Ve.value.map(a=>({name:a.name,shape:a.shape,color:a.color,id:a.id,opacity:L.value.includes(a.id)?.5:1,segregate:()=>F(a.id),isSegregated:L.value.includes(a.id)}))),Ee=e.computed(()=>({cy:"quadrant-div-legend",backgroundColor:l.value.style.chart.legend.backgroundColor,color:l.value.style.chart.legend.color,fontSize:l.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:l.value.style.chart.legend.bold?"bold":""}));function ve(a){switch(!0){case(a.x>=0&&a.y>=0):return"tr";case(a.x>=0&&a.y<0):return"br";case(a.x<0&&a.y<0):return"bl";case(a.x<0&&a.y>=0):return"tl";default:return""}}const _=e.ref(null),z=e.ref(null),D=e.ref(null);function de(a,u,o){_.value=u.uid,z.value={color:a.color,shape:a.shape},D.value={datapoint:u,seriesIndex:o,series:m.value,config:l.value},E.value=!0;const r=l.value.style.chart.tooltip.customFormat;if(s.isFunction(r)&&s.functionReturnsString(()=>r({seriesIndex:o,datapoint:u,series:m.value,config:l.value})))P.value=r({seriesIndex:o,datapoint:u,series:m.value,config:l.value});else{let n="";u.quadrantSide&&(n+=`<div style="color:${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold?"bold":"400"}">${l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`),n+=`<div>${a.name}</div>`,n+=`<div style="padding-bottom:6px;border-bottom:1px solid ${l.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`,n+=`<div>${l.value.style.chart.layout.grid.xAxis.name?l.value.style.chart.layout.grid.xAxis.name:"x"}: <b>${s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.x.formatter,u.xValue,s.dataLabel({v:u.xValue,r:l.value.style.chart.tooltip.roundingValue}),{datapoint:u,category:a,categoryIndex:o})}</b></div>`,n+=`<div>${l.value.style.chart.layout.grid.yAxis.name?l.value.style.chart.layout.grid.yAxis.name:"y"}: <b>${s.applyDataLabel(l.value.style.chart.layout.labels.plotLabels.y.formatter,u.yValue,s.dataLabel({v:u.yValue,r:l.value.style.chart.tooltip.roundingValue}),{datapoint:u,category:a,categoryIndex:o})}</b></div>`,P.value=`<div style="text-align:left;font-size:${l.value.style.chart.tooltip.fontSize}px">${n}</div>`}}function he(a,u){const o={category:a.name,shape:a.shape,itemName:u.name,x:u.xValue,y:u.yValue,quadrantSide:u.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text};M("selectPlot",o)}function N(a){if(!a)return;const u=m.value.flatMap(r=>r.series.filter(n=>n.quadrantSide===a).map(n=>({category:n.categoryName,itemName:n.name,x:n.xValue,y:n.yValue}))),o={quadrantSide:a,sideName:l.value.style.chart.layout.labels.quadrantLabels[a].text,items:[...u]};M("selectSide",o)}const b=e.computed(()=>({TL:{tl:{x:t.value.left+t.value.usableWidth/4-20,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.left+t.value.usableWidth/4,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.left+t.value.usableWidth/4,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.left+t.value.usableWidth/4-20,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.left+t.value.usableWidth/4-20},20 ${t.value.left+t.value.usableWidth/4+20},20`,vertical:`M ${t.value.left+t.value.usableWidth/4},0 ${t.value.left+t.value.usableWidth/4},40`}},TR:{tl:{x:t.value.centerX+t.value.usableWidth/4-20,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.centerX+t.value.usableWidth/4,y:0,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.centerX+t.value.usableWidth/4,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.centerX+t.value.usableWidth/4-20,y:20,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.centerX+t.value.usableWidth/4-20},20 ${t.value.centerX+t.value.usableWidth/4+20},20`,vertical:`M ${t.value.centerX+t.value.usableWidth/4},0 ${t.value.centerX+t.value.usableWidth/4},40`}},BR:{tl:{x:t.value.centerX+t.value.usableWidth/4-20,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.centerX+t.value.usableWidth/4,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.centerX+t.value.usableWidth/4,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.centerX+t.value.usableWidth/4-20,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.centerX+t.value.usableWidth/4-20},${t.value.centerY-28} ${t.value.centerX+t.value.usableWidth/4+20},${t.value.centerY-28}`,vertical:`M ${t.value.centerX+t.value.usableWidth/4},${t.value.centerY-48} ${t.value.centerX+t.value.usableWidth/4},${t.value.centerY-8}`}},BL:{tl:{x:t.value.left+t.value.usableWidth/4-20,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color},tr:{x:t.value.left+t.value.usableWidth/4,y:t.value.centerY-48,fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color},br:{x:t.value.left+t.value.usableWidth/4,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.br.color},bl:{x:t.value.left+t.value.usableWidth/4-20,y:t.value.centerY-28,fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${t.value.left+t.value.usableWidth/4-20},${t.value.centerY-28} ${t.value.left+t.value.usableWidth/4+20},${t.value.centerY-28}`,vertical:`M ${t.value.left+t.value.usableWidth/4},${t.value.centerY-48} ${t.value.left+t.value.usableWidth/4},${t.value.centerY-8}`}}}));function ye(){return m.value.map(a=>({color:a.color,name:a.name,shape:a.shape,series:a.series.map(u=>({name:u.name,x:u.xValue,y:u.yValue,quadrantSide:u.quadrantSide,sideName:l.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}))}))}function be(){e.nextTick(()=>{const a=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[""]],u=X.value.head,o=X.value.body,r=a.concat([u]).concat(o),n=s.createCsvContent(r);s.downloadCsv({csvContent:n,title:l.value.style.chart.title.text||"vue-ui-quadrant"})})}const B=e.ref(!1);function Te(a){B.value=a,H.value+=1}function pe(){p.value.showTable=!p.value.showTable}function fe(){p.value.plotLabels.show=!p.value.plotLabels.show}function me(){p.value.showTooltip=!p.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}return we({getData:ye,generatePdf:ue,generateCsv:be,generateImage:re,toggleTable:pe,toggleLabels:fe,toggleTooltip:me,toggleAnnotator:R}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-quadrant ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${l.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"quadrantChart",ref:w,id:`vue-ui-quadrant_${g.value}`,style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor};${l.value.responsive?"height: 100%":""}`),onMouseenter:u[16]||(u[16]=()=>e.unref(K)(!0)),onMouseleave:u[17]||(u[17]=()=>e.unref(K)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:w.value,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),qe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:U,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(We._sfc_main,{key:`table_${J.value}`,config:{title:{cy:"quadrant-title",...l.value.style.chart.title},subtitle:{cy:"quadrant-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),l.value.userOptions.show&&V.value&&(e.unref(ee)||e.unref(O))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref_key:"details",ref:Be,key:`user_options_${H.value}`,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isImaging:e.unref(oe),isPrinting:e.unref(ae),uid:g.value,hasTooltip:l.value.userOptions.buttons.tooltip&&l.value.style.chart.tooltip.show,hasPdf:l.value.userOptions.buttons.pdf,hasImg:l.value.userOptions.buttons.img,hasXls:l.value.userOptions.buttons.csv,hasTable:l.value.userOptions.buttons.table,hasLabel:l.value.userOptions.buttons.labels,hasFullscreen:l.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:p.value.showTooltip,titles:{...l.value.userOptions.buttonTitles},chartElement:w.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ue),onGenerateCsv:be,onGenerateImage:e.unref(re),onToggleTable:pe,onToggleLabels:fe,onToggleTooltip:me,onToggleAnnotator:R,style:e.normalizeStyle({visibility:e.unref(ee)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`${c.value.startX} ${c.value.startY} ${c.value.width} ${c.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:${h.value?"hidden":"visible"};background:transparent;color:${l.value.style.chart.color}`),id:`svg_${g.value}`},[e.createVNode(Oe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`quadrant_gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.shiftHue)(o.color,.05),l.value.style.chart.layout.areas.opacity)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(o.color,l.value.style.chart.layout.areas.opacity)},null,8,Qe)],8,Ie))),256))]),l.value.style.chart.layout.grid.graduations.show?(e.openBlock(),e.createElementBlock("g",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ze.value,o=>(e.openBlock(),e.createElementBlock("rect",{fill:l.value.style.chart.layout.grid.graduations.fill?e.unref(s.setOpacity)(l.value.style.chart.layout.grid.graduations.color,o.opacity):"none",x:o.x,y:o.y,height:o.height<=0?.001:o.height,width:o.width<=0?.001:o.width,"stroke-width":l.value.style.chart.layout.grid.graduations.strokeWidth,stroke:l.value.style.chart.layout.grid.graduations.stroke,rx:l.value.style.chart.layout.grid.graduations.roundingForce},null,8,je))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:t.value.left,y1:t.value.centerY,x2:t.value.right,y2:t.value.centerY,stroke:l.value.style.chart.layout.grid.stroke,"stroke-width":l.value.style.chart.layout.grid.strokeWidth},null,8,Ze),e.createElementVNode("line",{x1:t.value.centerX,y1:t.value.top,x2:t.value.centerX,y2:t.value.bottom,stroke:l.value.style.chart.layout.grid.stroke,"stroke-width":l.value.style.chart.layout.grid.strokeWidth},null,8,Ke),l.value.style.chart.layout.grid.showArrows?(e.openBlock(),e.createElementBlock("g",et,[e.createElementVNode("polygon",{points:`${t.value.right-8},${t.value.centerY-6} ${t.value.right},${t.value.centerY} ${t.value.right-8},${t.value.centerY+6}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,tt),e.createElementVNode("polygon",{points:`${t.value.left+8},${t.value.centerY-6} ${t.value.left},${t.value.centerY} ${t.value.left+8},${t.value.centerY+6}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,lt),e.createElementVNode("polygon",{points:`${t.value.centerX-6},${t.value.top+8} ${t.value.centerX},${t.value.top} ${t.value.centerX+6},${t.value.top+8}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,at),e.createElementVNode("polygon",{points:`${t.value.centerX-6},${t.value.bottom-8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX+6},${t.value.bottom-8}`,fill:l.value.style.chart.layout.grid.stroke,stroke:"none"},null,8,ot)])):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.show&&!h.value?(e.openBlock(),e.createElementBlock("g",ut,[l.value.style.chart.layout.labels.quadrantLabels.tl.text?(e.openBlock(),e.createElementBlock("text",{key:0,x:0,y:t.value.top-t.value.padding/2,"text-anchor":"start",fill:l.value.style.chart.layout.labels.quadrantLabels.tl.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.tl.bold?"bold":""}`),onClick:u[0]||(u[0]=o=>N("tl"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.tl.text),13,rt)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.tr.text?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.value.width,y:t.value.top-t.value.padding/2,"text-anchor":"end",fill:l.value.style.chart.layout.labels.quadrantLabels.tr.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.tr.bold?"bold":""}`),onClick:u[1]||(u[1]=o=>N("tr"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.tr.text),13,nt)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.br.text?(e.openBlock(),e.createElementBlock("text",{key:2,x:t.value.width,y:t.value.bottom+t.value.padding*.7,"text-anchor":"end",fill:l.value.style.chart.layout.labels.quadrantLabels.br.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.br.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.br.bold?"bold":""}`),onClick:u[2]||(u[2]=o=>N("br"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.br.text),13,st)):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.quadrantLabels.bl.text?(e.openBlock(),e.createElementBlock("text",{key:3,x:0,y:t.value.bottom+t.value.padding*.7,"text-anchor":"start",fill:l.value.style.chart.layout.labels.quadrantLabels.bl.color,"font-size":l.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,style:e.normalizeStyle(`font-weight:${l.value.style.chart.layout.labels.quadrantLabels.bl.bold?"bold":""}`),onClick:u[3]||(u[3]=o=>N("bl"))},e.toDisplayString(l.value.style.chart.layout.labels.quadrantLabels.bl.text),13,it)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.chart.layout.labels.axisLabels.show?(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("text",{x:t.value.centerX,y:t.value.top-t.value.padding/6,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.y.formatter,f.value.y.max,e.unref(s.dataLabel)({v:f.value.y.max,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,vt),e.createElementVNode("text",{x:t.value.centerX,y:t.value.top-t.value.padding/2,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(l.value.style.chart.layout.grid.yAxis.name),9,dt),e.createElementVNode("text",{x:t.value.centerX,y:t.value.bottom+t.value.padding*.35,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,fill:l.value.style.chart.layout.labels.axisLabels.color.negative},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.y.formatter,f.value.y.min,e.unref(s.dataLabel)({v:f.value.y.min,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,ht),e.createElementVNode("text",{id:`xLabelMin_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.padding-l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(-90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.negative},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.x.formatter,f.value.x.min,e.unref(s.dataLabel)({v:f.value.x.min,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,yt),e.createElementVNode("text",{id:`xLabelMax_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.width-t.value.padding+l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.layout.labels.plotLabels.x.formatter,f.value.x.max,e.unref(s.dataLabel)({v:f.value.x.max,r:l.value.style.chart.layout.labels.plotLabels.rounding}))),9,bt),e.createElementVNode("text",{id:`xLabelMaxName_${g.value}`,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.axisLabels.fontSize,transform:`translate(${t.value.width-l.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height/2}), rotate(90)`,fill:l.value.style.chart.layout.labels.axisLabels.color.positive},e.toDisplayString(l.value.style.chart.layout.grid.xAxis.name),9,pt)])):e.createCommentVNode("",!0),l.value.style.chart.layout.areas.show?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[o.series.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-quadrant-area":"",fill:l.value.style.chart.layout.areas.useGradient?`url(#quadrant_gradient_${g.value}_${r})`:e.unref(s.setOpacity)(o.color,l.value.style.chart.layout.areas.opacity),points:e.unref(s.giftWrap)(o)},null,8,mt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[e.createElementVNode("rect",{onClick:u[4]||(u[4]=o=>$("TL")),x:t.value.left,y:t.value.top,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,gt),e.createElementVNode("rect",{onClick:u[5]||(u[5]=o=>$("TR")),x:t.value.centerX,y:t.value.top,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,kt),e.createElementVNode("rect",{onClick:u[6]||(u[6]=o=>$("BR")),x:t.value.centerX,y:t.value.centerY,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,xt),e.createElementVNode("rect",{onClick:u[7]||(u[7]=o=>$("BL")),x:t.value.left,y:t.value.centerY,width:t.value.usableWidth/2<=0?.001:t.value.usableWidth/2,height:t.value.usableHeight/2<=0?.001:t.value.usableHeight/2,fill:"transparent",class:e.normalizeClass({"vue-data-ui-zoom-plus":!h.value,"vue-data-ui-zoom-minus":h.value})},null,10,$t)]),l.value.style.chart.layout.labels.plotLabels.showAsTag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[p.value.plotLabels.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,n=>(e.openBlock(),e.createElementBlock("foreignObject",{style:{overflow:"visible"},height:"10",width:"100",x:n.x-50,y:n.y-l.value.style.chart.layout.labels.plotLabels.fontSize,onMouseover:v=>de(o,n,r),onMouseleave:u[9]||(u[9]=v=>{E.value=!1,_.value=null,z.value=null}),onClick:v=>he(o,n)},[e.createElementVNode("div",{style:e.normalizeStyle(`color:${e.unref(s.adaptColorToBackground)(o.color)};margin: 0 auto; font-size:${l.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${o.color}; padding: 2px 4px; border-radius: 12px; height: ${l.value.style.chart.layout.labels.plotLabels.fontSize*1.5}px`)},e.toDisplayString(n.name),5)],40,St))),256))],64))),256))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,n=>(e.openBlock(),e.createBlock($e._sfc_main,{color:o.color,isSelected:_.value&&n.uid===_.value,plot:n,radius:l.value.style.chart.layout.plots.radius/(h.value?1.5:1),shape:o.shape,stroke:l.value.style.chart.layout.plots.outline?l.value.style.chart.layout.plots.outlineColor:"none",strokeWidth:l.value.style.chart.layout.plots.outlineWidth,onMouseover:v=>de(o,n,r),onMouseleave:u[8]||(u[8]=v=>{E.value=!1,_.value=null,z.value=null}),onClick:v=>he(o,n)},null,8,["color","isSelected","plot","radius","shape","stroke","strokeWidth","onMouseover","onClick"]))),256))]))),256)),p.value.plotLabels.show?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,o=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.series,r=>(e.openBlock(),e.createElementBlock("text",{x:r.x,y:r.y+l.value.style.chart.layout.labels.plotLabels.offsetY+l.value.style.chart.layout.plots.radius,"text-anchor":"middle","font-size":l.value.style.chart.layout.labels.plotLabels.fontSize/(h.value?1.5:1),fill:l.value.style.chart.layout.labels.plotLabels.color},e.toDisplayString(r.name),9,Ct))),256))]))),256))])):e.createCommentVNode("",!0)],64)),h.value?(e.openBlock(),e.createElementBlock("g",Bt,[i.value==="TL"?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:`${t.value.left-1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top-1} ${t.value.right},${t.value.top-1} ${t.value.right},${t.value.bottom} ${t.value.left-1},${t.value.bottom} ${t.value.left-1},${t.value.centerY}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,qt)):e.createCommentVNode("",!0),i.value==="TR"?(e.openBlock(),e.createElementBlock("polygon",{key:1,points:`${t.value.left},${t.value.top-1} ${t.value.centerX},${t.value.top-1} ${t.value.centerX},${t.value.centerY} ${t.value.right+1},${t.value.centerY} ${t.value.right+1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top-1}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,_t)):e.createCommentVNode("",!0),i.value==="BR"?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:`${t.value.left},${t.value.top} ${t.value.right+1},${t.value.top} ${t.value.right+1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom+1} ${t.value.left},${t.value.bottom+1} ${t.value.left},${t.value.top}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,zt)):e.createCommentVNode("",!0),i.value==="BL"?(e.openBlock(),e.createElementBlock("polygon",{key:3,points:`${t.value.left-1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom+1} ${t.value.centerX},${t.value.bottom+1} ${t.value.centerX},${t.value.centerY} ${t.value.left-1},${t.value.centerY} ${t.value.left-1},${t.value.top}`,fill:l.value.style.chart.backgroundColor,style:{opacity:"1"}},null,8,Nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),i.value&&!W.value?(e.openBlock(),e.createElementBlock("g",Vt,[e.createElementVNode("text",{x:C.value.x,y:C.value.y-C.value.fontSize/1.5,"font-size":C.value.fontSize/1.5,fill:C.value.fill,"text-anchor":"middle","font-weight":C.value.bold?"bold":"normal"},e.toDisplayString(C.value.text),9,Et)])):e.createCommentVNode("",!0),h.value&&i.value?(e.openBlock(),e.createElementBlock("g",Tt,[e.createElementVNode("rect",{x:b.value[i.value].tl.x,y:b.value[i.value].tl.y,height:"20",width:"20",fill:b.value[i.value].tl.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="TL"?1:.2}`),onClick:u[10]||(u[10]=o=>$("TL")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="TL"})},null,14,Wt),e.createElementVNode("rect",{x:b.value[i.value].tr.x,y:b.value[i.value].tr.y,height:"20",width:"20",fill:b.value[i.value].tr.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="TR"?1:.2}`),onClick:u[11]||(u[11]=o=>$("TR")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="TR"})},null,14,Xt),e.createElementVNode("rect",{x:b.value[i.value].br.x,y:b.value[i.value].br.y,height:"20",width:"20",fill:b.value[i.value].br.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="BR"?1:.2}`),onClick:u[12]||(u[12]=o=>$("BR")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="BR"})},null,14,Yt),e.createElementVNode("rect",{x:b.value[i.value].bl.x,y:b.value[i.value].bl.y,height:"20",width:"20",fill:b.value[i.value].bl.fill,style:e.normalizeStyle(`cursor: pointer; opacity: ${i.value==="BL"?1:.2}`),onClick:u[13]||(u[13]=o=>$("BL")),class:e.normalizeClass({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":i.value!=="BL"})},null,14,At),e.createElementVNode("path",{class:"vue-ui-quadrant-minimap-crosshairs",stroke:l.value.style.chart.backgroundColor,"stroke-width":1,d:b.value[i.value].crosshairs.horizontal},null,8,Mt),e.createElementVNode("path",{class:"vue-ui-quadrant-minimap-crosshairs",stroke:l.value.style.chart.backgroundColor,"stroke-width":1,d:b.value[i.value].crosshairs.vertical},null,8,Pt)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:t.value},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:6,config:{type:"quadrant",style:{backgroundColor:l.value.style.chart.backgroundColor,quadrant:{grid:{color:l.value.style.chart.layout.grid.stroke},plots:{color:l.value.style.chart.layout.grid.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[l.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ye.Legend,{key:`legend_${Z.value}`,legendSet:ce.value,config:Ee.value,onClickMarker:u[14]||(u[14]=({legend:o})=>F(o.id))},{item:e.withCtx(({legend:o})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:r=>F(o.id),style:e.normalizeStyle(`opacity:${L.value.includes(o.id)?.5:1}`)},e.toDisplayString(o.name),13,Ft)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:ce.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:G,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Xe._sfc_main,{show:p.value.showTooltip&&E.value,backgroundColor:l.value.style.chart.tooltip.backgroundColor,color:l.value.style.chart.tooltip.color,borderRadius:l.value.style.chart.tooltip.borderRadius,borderColor:l.value.style.chart.tooltip.borderColor,borderWidth:l.value.style.chart.tooltip.borderWidth,fontSize:l.value.style.chart.tooltip.fontSize,backgroundOpacity:l.value.style.chart.tooltip.backgroundOpacity,position:l.value.style.chart.tooltip.position,offsetY:l.value.style.chart.tooltip.offsetY,parent:w.value,content:P.value,isFullscreen:B.value,isCustom:l.value.style.chart.tooltip.customFormat&&typeof l.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),default:e.withCtx(()=>[l.value.style.chart.tooltip.showShape?(e.openBlock(),e.createElementBlock("svg",Dt,[e.createVNode($e._sfc_main,{plot:{x:10,y:10},shape:z.value.shape,color:z.value.color,radius:8,stroke:l.value.style.chart.layout.plots.outline?l.value.style.chart.layout.plots.outlineColor:"none","stroke-width":l.value.style.chart.layout.plots.outlineWidth},null,8,["shape","color","stroke","stroke-width"])])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),V.value?(e.openBlock(),e.createBlock(Pe.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ae.DataTable,{key:`table_${j.value}`,colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:u[15]||(u[15]=o=>p.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o.name||o},null,8,Rt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,He))}},Ut=Re._export_sfc(Ht,[["__scopeId","data-v-a9e13776"]]);exports.default=Ut;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { computed as g, ref as h, watch as Fe, onMounted as lt, onBeforeUnmount as at, openBlock as o, createElementBlock as n, normalizeClass as T, normalizeStyle as w, unref as y, createBlock as N, createCommentVNode as c, createSlots as ut, withCtx as x, renderSlot as L, normalizeProps as G, guardReactiveProps as Q, createVNode as ve, createElementVNode as v, Fragment as S, renderList as Y, toDisplayString as $, createTextVNode as ot, nextTick as st } from "vue";
|
|
2
|
-
import { u as rt, c as Re, t as nt, a as it, p as de, o as vt, e as H, b as dt, T as ct, d as ht, i as O, f as P, X as yt, s as ae, w as bt, U as ft, G as pt, x as gt, y as mt, q as xt, r as $t } from "./index-
|
|
2
|
+
import { u as rt, c as Re, t as nt, a as it, p as de, o as vt, e as H, b as dt, T as ct, d as ht, i as O, f as P, X as yt, s as ae, w as bt, U as ft, G as pt, x as gt, y as mt, q as xt, r as $t } from "./index-ByVaKddw.js";
|
|
3
3
|
import { t as kt, u as Lt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as wt } from "./Title-
|
|
5
|
-
import { u as qt, U as _t } from "./usePrinter-
|
|
6
|
-
import { _ as St } from "./Tooltip-
|
|
7
|
-
import { _ as He } from "./Shape-
|
|
8
|
-
import { L as Ct } from "./Legend-
|
|
9
|
-
import { D as zt } from "./DataTable-
|
|
10
|
-
import Tt from "./vue-ui-skeleton
|
|
11
|
-
import Wt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ie } from "./useNestedProp-
|
|
13
|
-
import { _ as Xt } from "./PackageVersion-
|
|
14
|
-
import { P as Yt } from "./PenAndPaper-
|
|
4
|
+
import { _ as wt } from "./Title-BI9lg56g.js";
|
|
5
|
+
import { u as qt, U as _t } from "./usePrinter-BsXVX7vh.js";
|
|
6
|
+
import { _ as St } from "./Tooltip-sBMzQa_B.js";
|
|
7
|
+
import { _ as He } from "./Shape-BejfTDlL.js";
|
|
8
|
+
import { L as Ct } from "./Legend-CvXmxVoD.js";
|
|
9
|
+
import { D as zt } from "./DataTable-CZSz7b1u.js";
|
|
10
|
+
import Tt from "./vue-ui-skeleton--uwo2sCb.js";
|
|
11
|
+
import Wt from "./vue-ui-accordion-Dcf8tHzr.js";
|
|
12
|
+
import { u as Ie } from "./useNestedProp-GRBJXe5O.js";
|
|
13
|
+
import { _ as Xt } from "./PackageVersion-CEkiDR72.js";
|
|
14
|
+
import { P as Yt } from "./PenAndPaper-GjypzQvI.js";
|
|
15
15
|
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-color"], Bt = ["stop-color"], Ft = { key: 0 }, Rt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Ht = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = { key: 1 }, Dt = ["points", "fill"], Et = ["points", "fill"], Gt = ["points", "fill"], Qt = ["points", "fill"], Jt = { key: 2 }, jt = ["y", "fill", "font-size"], Zt = ["x", "y", "fill", "font-size"], Kt = ["x", "y", "fill", "font-size"], el = ["y", "fill", "font-size"], tl = { key: 3 }, ll = ["x", "y", "font-size", "fill"], al = ["x", "y", "font-size", "fill"], ul = ["x", "y", "font-size", "fill"], ol = ["id", "font-size", "transform", "fill"], sl = ["id", "font-size", "transform", "fill"], rl = ["id", "font-size", "transform", "fill"], nl = { key: 4 }, il = ["fill", "points"], vl = ["x", "y", "width", "height"], dl = ["x", "y", "width", "height"], cl = ["x", "y", "width", "height"], hl = ["x", "y", "width", "height"], yl = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as z, computed as M, watch as Ne, onMounted as bt, onBeforeUnmount as wt, nextTick as $e, openBlock as a, createElementBlock as l, normalizeClass as re, normalizeStyle as
|
|
2
|
-
import { u as Lt, c as Ct, t as $t, a as It, p as V, C as lt, b as Et, J as Pt, e as Tt, d as Me, m as Ot, D as ot, X as Rt, j as Nt, k as xe, n as Ue, i as X, f as B, R as it, v as Z, x as Ee, y as Be } from "./index-
|
|
1
|
+
import { ref as z, computed as M, watch as Ne, onMounted as bt, onBeforeUnmount as wt, nextTick as $e, openBlock as a, createElementBlock as l, normalizeClass as re, normalizeStyle as N, createBlock as Ie, createCommentVNode as f, unref as g, createSlots as At, withCtx as Q, renderSlot as U, normalizeProps as H, guardReactiveProps as se, toDisplayString as O, createVNode as ve, createElementVNode as A, Fragment as p, renderList as L, mergeProps as Fe, pushScopeId as _t, popScopeId as zt } from "vue";
|
|
2
|
+
import { u as Lt, c as Ct, t as $t, a as It, p as V, C as lt, b as Et, J as Pt, e as Tt, d as Me, m as Ot, D as ot, X as Rt, j as Nt, k as xe, n as Ue, i as X, f as B, R as it, v as Z, x as Ee, y as Be } from "./index-ByVaKddw.js";
|
|
3
3
|
import { t as Ft, u as Mt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import Pe from "./BaseIcon-
|
|
5
|
-
import { _ as Ut } from "./Tooltip-
|
|
6
|
-
import { u as Bt, U as Dt } from "./usePrinter-
|
|
7
|
-
import { S as Vt } from "./Slicer-
|
|
8
|
-
import qt from "./vue-ui-skeleton
|
|
9
|
-
import { u as ut } from "./useNestedProp-
|
|
10
|
-
import { _ as Wt } from "./PackageVersion-
|
|
11
|
-
import { P as jt } from "./PenAndPaper-
|
|
4
|
+
import Pe from "./BaseIcon-0DNmIdCs.js";
|
|
5
|
+
import { _ as Ut } from "./Tooltip-sBMzQa_B.js";
|
|
6
|
+
import { u as Bt, U as Dt } from "./usePrinter-BsXVX7vh.js";
|
|
7
|
+
import { S as Vt } from "./Slicer-9_ewSBRs.js";
|
|
8
|
+
import qt from "./vue-ui-skeleton--uwo2sCb.js";
|
|
9
|
+
import { u as ut } from "./useNestedProp-GRBJXe5O.js";
|
|
10
|
+
import { _ as Wt } from "./PackageVersion-CEkiDR72.js";
|
|
11
|
+
import { P as jt } from "./PenAndPaper-GjypzQvI.js";
|
|
12
12
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const _ = {
|
|
14
14
|
LINE: "LINE",
|
|
@@ -89,7 +89,7 @@ function st(v) {
|
|
|
89
89
|
v.hasOwnProperty(m) && (I[m.toUpperCase()] = v[m]);
|
|
90
90
|
return I;
|
|
91
91
|
}
|
|
92
|
-
const dt = (v) => (_t("data-v-
|
|
92
|
+
const dt = (v) => (_t("data-v-dbfac93e"), v = v(), zt(), v), Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["id"], aa = ["id"], la = /* @__PURE__ */ dt(() => /* @__PURE__ */ A("feColorMatrix", {
|
|
93
93
|
type: "saturate",
|
|
94
94
|
values: "0"
|
|
95
95
|
}, null, -1)), oa = ["id"], ia = ["flood-color"], ua = {
|
|
@@ -258,46 +258,45 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
258
258
|
function mt(u, s) {
|
|
259
259
|
ze.value = !0;
|
|
260
260
|
let t = u.value;
|
|
261
|
+
const n = fe.value.dataset.find((r, h) => u.id === `donut_${h}`).VALUE;
|
|
261
262
|
if (w.value.includes(u.id)) {
|
|
262
263
|
let r = function() {
|
|
263
264
|
t > n ? (ze.value = !1, cancelAnimationFrame(Ke.value), x.value = {
|
|
264
265
|
...x.value,
|
|
265
|
-
dataset: x.value.dataset.map((h,
|
|
266
|
+
dataset: x.value.dataset.map((h, R) => u.id === `donut_${R}` ? {
|
|
266
267
|
...h,
|
|
267
268
|
value: n,
|
|
268
269
|
VALUE: n
|
|
269
270
|
} : h)
|
|
270
271
|
}) : (t += n * 0.025, x.value = {
|
|
271
272
|
...x.value,
|
|
272
|
-
dataset: x.value.dataset.map((h,
|
|
273
|
+
dataset: x.value.dataset.map((h, R) => u.id === `donut_${R}` ? {
|
|
273
274
|
...h,
|
|
274
275
|
value: t,
|
|
275
276
|
VALUE: t
|
|
276
277
|
} : h)
|
|
277
278
|
}, Ke.value = requestAnimationFrame(r));
|
|
278
279
|
};
|
|
279
|
-
w.value = w.value.filter((h) => h !== u.id);
|
|
280
|
-
const n = fe.value.dataset.find((h, N) => u.id === `donut_${N}`).VALUE;
|
|
281
|
-
r();
|
|
280
|
+
w.value = w.value.filter((h) => h !== u.id), r();
|
|
282
281
|
} else if (s.length > 1) {
|
|
283
|
-
let
|
|
284
|
-
t <
|
|
282
|
+
let r = function() {
|
|
283
|
+
t < n / 100 ? (ze.value = !1, cancelAnimationFrame(Qe.value), w.value.push(u.id), x.value = {
|
|
285
284
|
...x.value,
|
|
286
|
-
dataset: x.value.dataset.map((
|
|
287
|
-
...
|
|
285
|
+
dataset: x.value.dataset.map((h, R) => u.id === `donut_${R}` ? {
|
|
286
|
+
...h,
|
|
288
287
|
value: 0,
|
|
289
288
|
VALUE: 0
|
|
290
|
-
} :
|
|
289
|
+
} : h)
|
|
291
290
|
}) : (t /= 1.1, x.value = {
|
|
292
291
|
...x.value,
|
|
293
|
-
dataset: x.value.dataset.map((
|
|
294
|
-
...
|
|
292
|
+
dataset: x.value.dataset.map((h, R) => u.id === `donut_${R}` ? {
|
|
293
|
+
...h,
|
|
295
294
|
value: t,
|
|
296
295
|
VALUE: t
|
|
297
|
-
} :
|
|
298
|
-
}, Qe.value = requestAnimationFrame(
|
|
296
|
+
} : h)
|
|
297
|
+
}, Qe.value = requestAnimationFrame(r));
|
|
299
298
|
};
|
|
300
|
-
|
|
299
|
+
r();
|
|
301
300
|
}
|
|
302
301
|
}
|
|
303
302
|
const J = z(null);
|
|
@@ -364,7 +363,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
364
363
|
function h() {
|
|
365
364
|
G.value = !1, j.value = null, J.value = null;
|
|
366
365
|
}
|
|
367
|
-
const
|
|
366
|
+
const R = {
|
|
368
367
|
centerX: b.value.width / 2,
|
|
369
368
|
centerY: b.value.height / 2
|
|
370
369
|
}, D = u.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0), ue = u.map((o, i) => ({
|
|
@@ -376,7 +375,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
376
375
|
return {
|
|
377
376
|
dataset: ue.filter((o) => !w.value.includes(o.id)),
|
|
378
377
|
legend: ue,
|
|
379
|
-
drawingArea:
|
|
378
|
+
drawingArea: R,
|
|
380
379
|
displayArcPercentage: s,
|
|
381
380
|
isArcBigEnough: t,
|
|
382
381
|
useTooltip: r,
|
|
@@ -431,7 +430,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
431
430
|
t = u;
|
|
432
431
|
else
|
|
433
432
|
for (let r = 0; r < s; r += 1)
|
|
434
|
-
t.push(u.map((h) => h.values[r] || 0).reduce((h,
|
|
433
|
+
t.push(u.map((h) => h.values[r] || 0).reduce((h, R) => (h || 0) + (R || 0), 0));
|
|
435
434
|
const n = Math.min(...t);
|
|
436
435
|
return t.map((r) => r + (n < 0 ? Math.abs(n) : 0));
|
|
437
436
|
}), c = M(() => {
|
|
@@ -471,7 +470,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
471
470
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
472
471
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
473
472
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
474
|
-
}, r = ot(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0,
|
|
473
|
+
}, r = ot(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, R = n.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, D = s.width / n.maxSeries, ue = r.ticks.map((o) => ({
|
|
475
474
|
y: s.bottom - s.height * ((o + h) / (r.max + h)),
|
|
476
475
|
x: s.left - 8,
|
|
477
476
|
value: o
|
|
@@ -541,7 +540,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
541
540
|
j.value = null, G.value = !1;
|
|
542
541
|
}
|
|
543
542
|
return {
|
|
544
|
-
absoluteZero:
|
|
543
|
+
absoluteZero: R,
|
|
545
544
|
dataset: ee.filter((o) => !w.value.includes(o.id)),
|
|
546
545
|
legend: ee,
|
|
547
546
|
drawingArea: s,
|
|
@@ -588,17 +587,17 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
588
587
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
589
588
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
590
589
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
591
|
-
}, r = ot(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0,
|
|
590
|
+
}, r = ot(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, D = s.width / n.maxSeries, ue = r.ticks.map((i) => ({
|
|
592
591
|
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
593
592
|
x: s.left - 8,
|
|
594
593
|
value: i
|
|
595
594
|
})), ee = t.map((i, S) => ({
|
|
596
595
|
...i,
|
|
597
596
|
coordinates: i.values.map((y, T) => {
|
|
598
|
-
const F = (y + h) / (n.max + h) * s.height, me = Math.abs(y) / Math.abs(n.min) * (s.height -
|
|
597
|
+
const F = (y + h) / (n.max + h) * s.height, me = Math.abs(y) / Math.abs(n.min) * (s.height - R), Re = h / (n.max + h) * s.height, pe = D / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
599
598
|
return {
|
|
600
599
|
x: s.left + D * T + pe * S + e.value.barGap / 2,
|
|
601
|
-
y: y > 0 ? s.bottom - F :
|
|
600
|
+
y: y > 0 ? s.bottom - F : R,
|
|
602
601
|
height: y > 0 ? F - Re : me,
|
|
603
602
|
value: y,
|
|
604
603
|
width: pe
|
|
@@ -610,7 +609,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
610
609
|
const F = (y + h) / (n.max + h) * s.height, me = Math.abs(y) / (n.max + h) * s.height, Re = h / (n.max + h) * s.height, pe = D / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
611
610
|
return {
|
|
612
611
|
x: s.left + D * T + pe * S + e.value.barGap / 2,
|
|
613
|
-
y: y > 0 ? s.bottom - F :
|
|
612
|
+
y: y > 0 ? s.bottom - F : R,
|
|
614
613
|
height: y > 0 ? F - Re : me,
|
|
615
614
|
value: y,
|
|
616
615
|
width: pe
|
|
@@ -667,7 +666,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
667
666
|
G.value = !1, j.value = null, J.value = null;
|
|
668
667
|
}
|
|
669
668
|
return {
|
|
670
|
-
absoluteZero:
|
|
669
|
+
absoluteZero: R,
|
|
671
670
|
dataset: ne.filter((i) => !w.value.includes(i.id)),
|
|
672
671
|
legend: ee,
|
|
673
672
|
drawingArea: s,
|
|
@@ -699,7 +698,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
699
698
|
ref_key: "quickChart",
|
|
700
699
|
ref: W,
|
|
701
700
|
class: re({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Le.value }),
|
|
702
|
-
style:
|
|
701
|
+
style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
703
702
|
onMouseenter: s[5] || (s[5] = () => je(!0)),
|
|
704
703
|
onMouseleave: s[6] || (s[6] = () => je(!1))
|
|
705
704
|
}, [
|
|
@@ -743,7 +742,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
743
742
|
onGenerateImage: g(Xe),
|
|
744
743
|
onToggleTooltip: at,
|
|
745
744
|
onToggleAnnotator: Oe,
|
|
746
|
-
style:
|
|
745
|
+
style: N({
|
|
747
746
|
visibility: We.value ? Se.value ? "visible" : "hidden" : "visible"
|
|
748
747
|
})
|
|
749
748
|
}, At({ _: 2 }, [
|
|
@@ -788,13 +787,13 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
788
787
|
ref_key: "quickChartTitle",
|
|
789
788
|
ref: le,
|
|
790
789
|
class: "vue-ui-quick-chart-title",
|
|
791
|
-
style:
|
|
790
|
+
style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
792
791
|
}, O(e.value.title), 5)) : f("", !0),
|
|
793
792
|
$.value ? (a(), l("svg", {
|
|
794
793
|
key: 4,
|
|
795
794
|
xmlns: g(Rt),
|
|
796
795
|
viewBox: gt.value,
|
|
797
|
-
style:
|
|
796
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
798
797
|
}, [
|
|
799
798
|
ve(Wt),
|
|
800
799
|
A("defs", null, [
|
|
@@ -1103,7 +1102,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1103
1102
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1104
1103
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1105
1104
|
fill: [j.value, J.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1106
|
-
style:
|
|
1105
|
+
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1107
1106
|
onMouseenter: (r) => c.value.useTooltip(n),
|
|
1108
1107
|
onMouseleave: s[1] || (s[1] = (r) => c.value.killTooltip()),
|
|
1109
1108
|
onClick: (r) => m("selectDatapoint", c.value.dataset.map((h) => ({
|
|
@@ -1265,7 +1264,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1265
1264
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1266
1265
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1267
1266
|
fill: [j.value, J.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1268
|
-
style:
|
|
1267
|
+
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1269
1268
|
onMouseenter: (r) => d.value.useTooltip(n),
|
|
1270
1269
|
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1271
1270
|
onClick: (r) => m("selectDatapoint", d.value.dataset.map((h) => ({
|
|
@@ -1383,14 +1382,14 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1383
1382
|
ref_key: "quickChartLegend",
|
|
1384
1383
|
ref: oe,
|
|
1385
1384
|
class: "vue-ui-quick-chart-legend",
|
|
1386
|
-
style:
|
|
1385
|
+
style: N(`background:transparent;color:${e.value.color}`)
|
|
1387
1386
|
}, [
|
|
1388
1387
|
$.value === _.DONUT ? (a(!0), l(p, { key: 0 }, L(E.value.legend, (t, n) => (a(), l("div", {
|
|
1389
1388
|
class: "vue-ui-quick-chart-legend-item",
|
|
1390
1389
|
onClick: (r) => {
|
|
1391
1390
|
mt(t, E.value.dataset), m("selectLegend", t);
|
|
1392
1391
|
},
|
|
1393
|
-
style:
|
|
1392
|
+
style: N(`cursor: ${E.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1394
1393
|
}, [
|
|
1395
1394
|
e.value.useCustomLegend ? U(u.$slots, "legend", H(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1396
1395
|
ve(Pe, {
|
|
@@ -1399,10 +1398,10 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1399
1398
|
size: e.value.legendIconSize
|
|
1400
1399
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1401
1400
|
A("span", {
|
|
1402
|
-
style:
|
|
1401
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1403
1402
|
}, O(t.name), 5),
|
|
1404
1403
|
A("span", {
|
|
1405
|
-
style:
|
|
1404
|
+
style: N(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1406
1405
|
}, O(w.value.includes(t.id) ? "-" : g(X)(
|
|
1407
1406
|
e.value.formatter,
|
|
1408
1407
|
t.absoluteValue,
|
|
@@ -1416,13 +1415,13 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1416
1415
|
)), 5),
|
|
1417
1416
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1418
1417
|
key: 0,
|
|
1419
|
-
style:
|
|
1418
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1420
1419
|
}, " ( - % ) ", 4)) : ze.value ? (a(), l("span", {
|
|
1421
1420
|
key: 1,
|
|
1422
|
-
style:
|
|
1421
|
+
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1423
1422
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1424
1423
|
key: 2,
|
|
1425
|
-
style:
|
|
1424
|
+
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1426
1425
|
}, " (" + O(g(B)({
|
|
1427
1426
|
v: t.value / E.value.total * 100,
|
|
1428
1427
|
s: "%",
|
|
@@ -1435,7 +1434,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1435
1434
|
onClick: (r) => {
|
|
1436
1435
|
Je(t.id, c.value.legend.length - 1), m("selectLegend", t);
|
|
1437
1436
|
},
|
|
1438
|
-
style:
|
|
1437
|
+
style: N(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1439
1438
|
}, [
|
|
1440
1439
|
e.value.useCustomLegend ? U(u.$slots, "legend", H(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1441
1440
|
ve(Pe, {
|
|
@@ -1444,7 +1443,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1444
1443
|
size: e.value.legendIconSize
|
|
1445
1444
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1446
1445
|
A("span", {
|
|
1447
|
-
style:
|
|
1446
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1448
1447
|
}, O(t.name), 5)
|
|
1449
1448
|
], 64))
|
|
1450
1449
|
], 12, yl))), 256)) : f("", !0),
|
|
@@ -1453,7 +1452,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1453
1452
|
onClick: (r) => {
|
|
1454
1453
|
Je(t.id, d.value.legend.length - 1), m("selectLegend", t);
|
|
1455
1454
|
},
|
|
1456
|
-
style:
|
|
1455
|
+
style: N(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1457
1456
|
}, [
|
|
1458
1457
|
e.value.useCustomLegend ? U(u.$slots, "legend", H(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1459
1458
|
ve(Pe, {
|
|
@@ -1462,7 +1461,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1462
1461
|
size: e.value.legendIconSize
|
|
1463
1462
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1464
1463
|
A("span", {
|
|
1465
|
-
style:
|
|
1464
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1466
1465
|
}, O(t.name), 5)
|
|
1467
1466
|
], 64))
|
|
1468
1467
|
], 12, kl))), 256)) : f("", !0)
|
|
@@ -1507,7 +1506,7 @@ const dt = (v) => (_t("data-v-c31c33da"), v = v(), zt(), v), Kt = ["id"], ea = [
|
|
|
1507
1506
|
bl
|
|
1508
1507
|
]));
|
|
1509
1508
|
}
|
|
1510
|
-
}, Nl = /* @__PURE__ */ Gt(wl, [["__scopeId", "data-v-
|
|
1509
|
+
}, Nl = /* @__PURE__ */ Gt(wl, [["__scopeId", "data-v-dbfac93e"]]);
|
|
1511
1510
|
export {
|
|
1512
1511
|
Nl as default
|
|
1513
1512
|
};
|