vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.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-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
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
|
|
2
|
-
import { u as rt, c as Re, t as nt, a as it, p as
|
|
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-K5uyh1gA.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-aMb2ETf7.js";
|
|
5
|
+
import { u as qt, U as _t } from "./usePrinter-p_ZZlGc9.js";
|
|
6
|
+
import { _ as St } from "./Tooltip-BRZ3DT4p.js";
|
|
7
|
+
import { _ as He } from "./Shape-BDJJ38uM.js";
|
|
8
|
+
import { L as Ct } from "./Legend-bYlSC7I7.js";
|
|
9
|
+
import { D as zt } from "./DataTable-COkA4Nyz.js";
|
|
10
|
+
import Tt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
11
|
+
import Wt from "./vue-ui-accordion-CsJT7Az3.js";
|
|
12
|
+
import { u as Ie } from "./useNestedProp-DifqJZAs.js";
|
|
13
|
+
import { _ as Xt } from "./PackageVersion-Dz3KcTL4.js";
|
|
14
|
+
import { P as Yt } from "./PenAndPaper-BycdTwSP.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 = {
|
|
@@ -46,10 +46,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["selectPlot", "selectSide", "selectLegend"],
|
|
48
48
|
setup(Ue, { expose: De, emit: ue }) {
|
|
49
|
-
const W = Ue, { vue_ui_quadrant: Ee } = rt(), J = g(() => !!W.dataset && W.dataset.length), z = h(Re()), Ge = h(null), j = h(!1), oe = h(""),
|
|
49
|
+
const W = Ue, { vue_ui_quadrant: Ee } = rt(), J = g(() => !!W.dataset && W.dataset.length), z = h(Re()), Ge = h(null), j = h(!1), oe = h(""), ce = h(0), p = h(!1), B = h(null), he = h(null), ye = h(null), be = h(null), fe = h(null), pe = h(0), ge = h(0), me = h(0), t = g({
|
|
50
50
|
get: () => ke(),
|
|
51
51
|
set: (l) => l
|
|
52
|
-
}), { userOptionsVisible:
|
|
52
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: xe, keepUserOptionState: $e } = At({ config: t.value });
|
|
53
53
|
function ke() {
|
|
54
54
|
const l = Ie({
|
|
55
55
|
userConfig: W.config,
|
|
@@ -60,11 +60,11 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
60
60
|
userConfig: nt.vue_ui_quadrant[l.theme] || W.config,
|
|
61
61
|
defaultConfig: l
|
|
62
62
|
}),
|
|
63
|
-
customPalette: it[l.theme] ||
|
|
63
|
+
customPalette: it[l.theme] || de
|
|
64
64
|
} : l;
|
|
65
65
|
}
|
|
66
66
|
Fe(() => W.config, (l) => {
|
|
67
|
-
t.value = ke(), Le(),
|
|
67
|
+
t.value = ke(), se.value = !t.value.showOnChartHover, Le(), pe.value += 1, ge.value += 1, me.value += 1;
|
|
68
68
|
}, { deep: !0 });
|
|
69
69
|
const Z = h(null);
|
|
70
70
|
function Le() {
|
|
@@ -95,10 +95,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
95
95
|
const l = kt(() => {
|
|
96
96
|
const { width: u, height: a } = Lt({
|
|
97
97
|
chart: B.value,
|
|
98
|
-
title: t.value.style.chart.title.text ?
|
|
99
|
-
legend: t.value.style.chart.legend.show ?
|
|
100
|
-
source:
|
|
101
|
-
noTitle:
|
|
98
|
+
title: t.value.style.chart.title.text ? he.value : null,
|
|
99
|
+
legend: t.value.style.chart.legend.show ? ye.value : null,
|
|
100
|
+
source: be.value,
|
|
101
|
+
noTitle: fe.value
|
|
102
102
|
});
|
|
103
103
|
m.value = 48, e.value.height = a, e.value.usableHeight = a - m.value * 2, e.value.width = u, e.value.usableWidth = u - m.value * 2, e.value.top = m.value, e.value.left = m.value, e.value.right = u - m.value, e.value.bottom = a - m.value, e.value.centerX = u / 2, e.value.centerY = a - a / 2, e.value.padding = m.value;
|
|
104
104
|
});
|
|
@@ -283,7 +283,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
283
283
|
threshold: t.value.downsample.threshold
|
|
284
284
|
}),
|
|
285
285
|
id: `cat_${u}_${z.value}`,
|
|
286
|
-
color: ht(l.color) || Ce.value[u] ||
|
|
286
|
+
color: ht(l.color) || Ce.value[u] || de[u]
|
|
287
287
|
}))), Ze = g(() => F.value.filter((l) => !M.value.includes(l.id))), Ke = g(() => F.value.map((l, u) => ({
|
|
288
288
|
...l,
|
|
289
289
|
shape: l.shape || "circle",
|
|
@@ -317,7 +317,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
317
317
|
}), Ze.value.map((l, u) => ({
|
|
318
318
|
...l,
|
|
319
319
|
shape: l.shape || "circle",
|
|
320
|
-
color: l.color || Ce.value[u] ||
|
|
320
|
+
color: l.color || Ce.value[u] || de[u],
|
|
321
321
|
series: l.series.map((a) => ({
|
|
322
322
|
...a,
|
|
323
323
|
x: ze(a.x),
|
|
@@ -404,7 +404,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
404
404
|
};
|
|
405
405
|
return { head: l, body: u, config: a, colNames: l };
|
|
406
406
|
});
|
|
407
|
-
function
|
|
407
|
+
function re(l) {
|
|
408
408
|
M.value.includes(l) ? M.value = M.value.filter((a) => a !== l) : M.value.push(l);
|
|
409
409
|
const u = Me();
|
|
410
410
|
ue("selectLegend", u);
|
|
@@ -415,7 +415,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
415
415
|
color: l.color,
|
|
416
416
|
id: l.id,
|
|
417
417
|
opacity: M.value.includes(l.id) ? 0.5 : 1,
|
|
418
|
-
segregate: () =>
|
|
418
|
+
segregate: () => re(l.id),
|
|
419
419
|
isSegregated: M.value.includes(l.id)
|
|
420
420
|
}))), et = g(() => ({
|
|
421
421
|
cy: "quadrant-div-legend",
|
|
@@ -439,12 +439,12 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
439
439
|
return "";
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
const U = h(null), D = h(null),
|
|
442
|
+
const U = h(null), D = h(null), ne = h(null);
|
|
443
443
|
function Ye(l, u, a) {
|
|
444
444
|
U.value = u.uid, D.value = {
|
|
445
445
|
color: l.color,
|
|
446
446
|
shape: l.shape
|
|
447
|
-
},
|
|
447
|
+
}, ne.value = {
|
|
448
448
|
datapoint: u,
|
|
449
449
|
seriesIndex: a,
|
|
450
450
|
series: C.value,
|
|
@@ -638,7 +638,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
638
638
|
}
|
|
639
639
|
const R = h(!1);
|
|
640
640
|
function tt(l) {
|
|
641
|
-
R.value = l,
|
|
641
|
+
R.value = l, ce.value += 1;
|
|
642
642
|
}
|
|
643
643
|
function Oe() {
|
|
644
644
|
q.value.showTable = !q.value.showTable;
|
|
@@ -650,7 +650,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
650
650
|
q.value.showTooltip = !q.value.showTooltip;
|
|
651
651
|
}
|
|
652
652
|
const le = h(!1);
|
|
653
|
-
function
|
|
653
|
+
function ie() {
|
|
654
654
|
le.value = !le.value;
|
|
655
655
|
}
|
|
656
656
|
return De({
|
|
@@ -661,7 +661,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
661
661
|
toggleTable: Oe,
|
|
662
662
|
toggleLabels: Pe,
|
|
663
663
|
toggleTooltip: Ve,
|
|
664
|
-
toggleAnnotator:
|
|
664
|
+
toggleAnnotator: ie
|
|
665
665
|
}), (l, u) => (o(), n("div", {
|
|
666
666
|
class: T(`vue-ui-quadrant ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
667
667
|
ref_key: "quadrantChart",
|
|
@@ -677,23 +677,23 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
677
677
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
678
678
|
color: t.value.style.chart.color,
|
|
679
679
|
active: le.value,
|
|
680
|
-
onClose:
|
|
680
|
+
onClose: ie
|
|
681
681
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
682
682
|
Qe.value ? (o(), n("div", {
|
|
683
683
|
key: 1,
|
|
684
684
|
ref_key: "noTitle",
|
|
685
|
-
ref:
|
|
685
|
+
ref: fe,
|
|
686
686
|
class: "vue-data-ui-no-title-space",
|
|
687
687
|
style: "height:36px; width: 100%;background:transparent"
|
|
688
688
|
}, null, 512)) : c("", !0),
|
|
689
689
|
t.value.style.chart.title.text ? (o(), n("div", {
|
|
690
690
|
key: 2,
|
|
691
691
|
ref_key: "chartTitle",
|
|
692
|
-
ref:
|
|
692
|
+
ref: he,
|
|
693
693
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
694
694
|
}, [
|
|
695
695
|
(o(), N(wt, {
|
|
696
|
-
key: `table_${
|
|
696
|
+
key: `table_${pe.value}`,
|
|
697
697
|
config: {
|
|
698
698
|
title: {
|
|
699
699
|
cy: "quadrant-title",
|
|
@@ -706,10 +706,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
706
706
|
}
|
|
707
707
|
}, null, 8, ["config"]))
|
|
708
708
|
], 512)) : c("", !0),
|
|
709
|
-
t.value.userOptions.show && J.value && (y($e) || y(
|
|
709
|
+
t.value.userOptions.show && J.value && (y($e) || y(se)) ? (o(), N(_t, {
|
|
710
710
|
ref_key: "details",
|
|
711
711
|
ref: Ge,
|
|
712
|
-
key: `user_options_${
|
|
712
|
+
key: `user_options_${ce.value}`,
|
|
713
713
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
714
714
|
color: t.value.style.chart.color,
|
|
715
715
|
isImaging: y(qe),
|
|
@@ -736,9 +736,9 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
736
736
|
onToggleTable: Oe,
|
|
737
737
|
onToggleLabels: Pe,
|
|
738
738
|
onToggleTooltip: Ve,
|
|
739
|
-
onToggleAnnotator:
|
|
739
|
+
onToggleAnnotator: ie,
|
|
740
740
|
style: w({
|
|
741
|
-
visibility: y($e) ? y(
|
|
741
|
+
visibility: y($e) ? y(se) ? "visible" : "hidden" : "visible"
|
|
742
742
|
})
|
|
743
743
|
}, ut({ _: 2 }, [
|
|
744
744
|
l.$slots.optionTooltip ? {
|
|
@@ -806,7 +806,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
806
806
|
style: w(`max-width:100%;overflow:${p.value ? "hidden" : "visible"};background:transparent;color:${t.value.style.chart.color}`),
|
|
807
807
|
id: `svg_${z.value}`
|
|
808
808
|
}, [
|
|
809
|
-
|
|
809
|
+
ve(Xt),
|
|
810
810
|
v("defs", null, [
|
|
811
811
|
(o(!0), n(S, null, Y(C.value, (a, s) => (o(), n("radialGradient", {
|
|
812
812
|
cx: "50%",
|
|
@@ -1203,18 +1203,18 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
1203
1203
|
}, null, 8, ["config"])),
|
|
1204
1204
|
v("div", {
|
|
1205
1205
|
ref_key: "chartLegend",
|
|
1206
|
-
ref:
|
|
1206
|
+
ref: ye
|
|
1207
1207
|
}, [
|
|
1208
1208
|
t.value.style.chart.legend.show ? (o(), N(Ct, {
|
|
1209
|
-
key: `legend_${
|
|
1209
|
+
key: `legend_${me.value}`,
|
|
1210
1210
|
legendSet: We.value,
|
|
1211
1211
|
config: et.value,
|
|
1212
|
-
onClickMarker: u[14] || (u[14] = ({ legend: a }) =>
|
|
1212
|
+
onClickMarker: u[14] || (u[14] = ({ legend: a }) => re(a.id))
|
|
1213
1213
|
}, {
|
|
1214
1214
|
item: x(({ legend: a }) => [
|
|
1215
1215
|
v("div", {
|
|
1216
1216
|
"data-cy-legend-item": "",
|
|
1217
|
-
onClick: (s) =>
|
|
1217
|
+
onClick: (s) => re(a.id),
|
|
1218
1218
|
style: w(`opacity:${M.value.includes(a.id) ? 0.5 : 1}`)
|
|
1219
1219
|
}, $(a.name), 13, Yl)
|
|
1220
1220
|
]),
|
|
@@ -1227,12 +1227,12 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
1227
1227
|
l.$slots.source ? (o(), n("div", {
|
|
1228
1228
|
key: 7,
|
|
1229
1229
|
ref_key: "source",
|
|
1230
|
-
ref:
|
|
1230
|
+
ref: be,
|
|
1231
1231
|
dir: "auto"
|
|
1232
1232
|
}, [
|
|
1233
1233
|
L(l.$slots, "source", {}, void 0, !0)
|
|
1234
1234
|
], 512)) : c("", !0),
|
|
1235
|
-
|
|
1235
|
+
ve(St, {
|
|
1236
1236
|
show: q.value.showTooltip && j.value,
|
|
1237
1237
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1238
1238
|
color: t.value.style.chart.tooltip.color,
|
|
@@ -1249,14 +1249,14 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
1249
1249
|
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1250
1250
|
}, {
|
|
1251
1251
|
"tooltip-before": x(() => [
|
|
1252
|
-
L(l.$slots, "tooltip-before", G(Q({ ...
|
|
1252
|
+
L(l.$slots, "tooltip-before", G(Q({ ...ne.value })), void 0, !0)
|
|
1253
1253
|
]),
|
|
1254
1254
|
"tooltip-after": x(() => [
|
|
1255
|
-
L(l.$slots, "tooltip-after", G(Q({ ...
|
|
1255
|
+
L(l.$slots, "tooltip-after", G(Q({ ...ne.value })), void 0, !0)
|
|
1256
1256
|
]),
|
|
1257
1257
|
default: x(() => [
|
|
1258
1258
|
t.value.style.chart.tooltip.showShape ? (o(), n("svg", Al, [
|
|
1259
|
-
|
|
1259
|
+
ve(He, {
|
|
1260
1260
|
plot: { x: 10, y: 10 },
|
|
1261
1261
|
shape: D.value.shape,
|
|
1262
1262
|
color: D.value.color,
|
|
@@ -1286,7 +1286,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
1286
1286
|
}, {
|
|
1287
1287
|
content: x(() => [
|
|
1288
1288
|
(o(), N(zt, {
|
|
1289
|
-
key: `table_${
|
|
1289
|
+
key: `table_${ge.value}`,
|
|
1290
1290
|
colNames: te.value.colNames,
|
|
1291
1291
|
head: te.value.head,
|
|
1292
1292
|
body: te.value.body,
|
|
@@ -1309,7 +1309,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["id"], Vt = ["stop-col
|
|
|
1309
1309
|
}, 8, ["config"])) : c("", !0)
|
|
1310
1310
|
], 46, Nt));
|
|
1311
1311
|
}
|
|
1312
|
-
}, Kl = /* @__PURE__ */ Mt(Nl, [["__scopeId", "data-v-
|
|
1312
|
+
}, Kl = /* @__PURE__ */ Mt(Nl, [["__scopeId", "data-v-a9e13776"]]);
|
|
1313
1313
|
export {
|
|
1314
1314
|
Kl as default
|
|
1315
1315
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),ke=require("./useResponsive-BJ7DTGpm.cjs"),We=require("./Title-B7ruS8yl.cjs"),xe=require("./usePrinter-DHv-BwME.cjs"),Xe=require("./Tooltip-BqSN71SL.cjs"),$e=require("./Shape-BBp5EwJH.cjs"),Ye=require("./Legend-CR9ydX8N.cjs"),Ae=require("./DataTable-CwAdpLng.cjs"),Me=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Pe=require("./vue-ui-accordion-kr18wKfc.cjs"),Le=require("./useNestedProp-C6IvqE-r.cjs"),Oe=require("./PackageVersion-C1F3QLoY.cjs"),Fe=require("./PenAndPaper-DDheVRNG.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,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DhDYBLBe.cjs"),Ce=require("./useResponsive-BJ7DTGpm.cjs"),se=require("./BaseIcon-BASl_NFX.cjs"),Ge=require("./Tooltip-G7ENx87_.cjs"),ze=require("./usePrinter-2_QjJFdH.cjs"),Xe=require("./Slicer-BHS9W4MJ.cjs"),Ye=require("./vue-ui-skeleton-lkPDknHn.cjs"),Ne=require("./useNestedProp-BphUExEh.cjs"),Ze=require("./PackageVersion-Bj34UNnQ.cjs"),Je=require("./PenAndPaper-D9yQnc0e.cjs"),Qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},Ke=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function et({dataset:c,barLineSwitch:w=6}){let f=null,b=null,N=0;if((typeof c=="number"||typeof c=="string")&&console.warn(`The provided dataset (${c}) is not sufficient to build a chart`),K(c)&&($(c)&&(c.length<w?f=S.BAR:f=S.LINE,b=c,N=c.length),ce(c))){if(!lt(c))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(c[0]),j=Object.values(c[0]);if(!U.some(A=>at(A)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;Ve(j,A=>typeof A=="number")&&(f=S.DONUT,b=c),Ve(j,A=>Array.isArray(A)&&$(A))&&(Fe(c)>w?f=S.LINE:f=S.BAR,N=Fe(c),b=c.map(A=>({...A,data:ot(A,P=>$(P))}))),c=c.map(A=>Pe(A)),b=b.map(A=>Pe(A))}return K(c)&&[...new Set(c.flatMap(U=>Array.isArray(U)))][0],{dataset:c,type:f,usableDataset:b,maxSeriesLength:N}}function $e(c){return!c||K(c)&&!c.length}function K(c){return Array.isArray(c)}function $(c){if(!K(c)||$e(c))return!1;const w=c.map(f=>Number(f));return![...new Set(w.flatMap(f=>typeof f=="number"&&!isNaN(f)))].includes(!1)}function ce(c){return!K(c)||$e(c)||!![...new Set(c.flatMap(f=>typeof f=="object"&&!Array.isArray(f)))].includes(!1)?!1:!c.map(f=>Object.keys(f).length>0).includes(!1)}function tt(c,w){const f=Object.keys(c).sort(),b=Object.keys(w).sort();if(f.length!==b.length)return!1;for(let N=0;N<f.length;N+=1){const V=f[N],M=b[N];if(V!==M||typeof c[V]!=typeof w[M])return!1}return!0}function lt(c){if(c.length<=1)return!0;for(let w=0;w<c.length;w+=1)for(let f=w+1;f<c.length;f+=1)if(!tt(c[w],c[f]))return!1;return!0}function at(c){return Ke.includes(c.toUpperCase())}function Ve(c,w){let f=[];for(let b=0;b<c.length;b+=1)f.push(w(c[b]));return f.includes(!0)}function Fe(c){return Math.max(...[...c].flatMap(w=>Object.values(w).filter(f=>$(f)).map(f=>f.length)))}function ot(c,w){return Object.values(c).filter(f=>w(f))[0]}function Pe(c){const w={};for(let f in c)c.hasOwnProperty(f)&&(w[f.toUpperCase()]=c[f]);return w}const Ie=c=>(e.pushScopeId("data-v-c31c33da"),c=c(),e.popScopeId(),c),nt=["id"],rt=["xmlns","viewBox"],it=["id"],ut=["id"],st=Ie(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),ct=["id"],dt=["flood-color"],vt={key:0,class:"donut-label-connectors"},mt=["d","stroke","stroke-width","filter"],ft=["cx","cy","r","fill","filter"],pt={class:"donut"},ht=["d","fill","stroke","stroke-width","filter"],kt=["d","onMouseenter","onClick"],gt={key:1,class:"donut-labels quick-animation"},yt=["cx","cy","fill","stroke","filter"],xt=["text-anchor","x","y","fill","font-size","filter"],St=["text-anchor","x","y","fill","font-size","filter"],bt={key:2,class:"donut-hollow quick-animation"},Bt=["x","y","font-size","fill"],wt=["x","y","font-size","fill"],Et={key:0,class:"line-grid"},At=["x1","x2","y1","y2","stroke","stroke-width"],Lt=["x1","x2","y1","y2","stroke","stroke-width"],_t={key:1,class:"line-axis"},Ct=["x1","x2","y1","y2","stroke","stroke-width"],zt=["x1","x2","y1","y2","stroke","stroke-width"],Nt={key:2,class:"yLabels"},Vt=["x1","x2","y1","y2","stroke","stroke-width"],Ft=["x","y","font-size","fill"],Pt={key:3,class:"periodLabels"},$t=["x1","x2","y1","y2","stroke","stroke-width"],It=["font-size","text-anchor","fill","transform"],Tt={class:"plots"},Ot={class:"line-plot-series"},Rt=["d","stroke","stroke-width"],Dt=["d","stroke","stroke-width"],Mt=["d","stroke","stroke-width"],Ut=["d","stroke","stroke-width"],qt=["cx","cy","fill","stroke"],Wt={key:4,class:"dataLabels"},Ht=["font-size","fill","x","y"],jt={class:"tooltip-traps"},Gt=["x","y","height","width","fill","onMouseenter","onClick"],Xt={key:0,class:"line-grid"},Yt=["x1","x2","y1","y2","stroke","stroke-width"],Zt=["x1","x2","y1","y2","stroke","stroke-width"],Jt={key:1,class:"line-axis"},Qt=["x1","x2","y1","y2","stroke","stroke-width"],Kt=["x1","x2","y1","y2","stroke","stroke-width"],el={key:2,class:"yLabels"},tl=["x1","x2","y1","y2","stroke","stroke-width"],ll=["x","y","font-size","fill"],al={key:3,class:"periodLabels"},ol=["x1","x2","y1","y2","stroke","stroke-width"],nl=["font-size","text-anchor","transform","fill"],rl={class:"plots"},il=["x","width","height","y","fill","stroke","stroke-width"],ul=["to"],sl=["from","to"],cl={key:4,class:"dataLabels"},dl=["x","y","font-size","fill"],vl={class:"tooltip-traps"},ml=["x","y","height","width","fill","onMouseenter","onClick"],fl={key:3,class:"axis-labels"},pl={key:0},hl=["font-size","fill","x","y"],kl={key:1},gl=["font-size","fill","x","y"],yl={key:2},xl=["font-size","fill","transform"],Sl={key:3},bl=["font-size","fill","transform"],Bl={key:6,class:"vue-data-ui-watermark"},wl=["onClick"],El=["onClick"],Al=["onClick"],Ll={key:1,class:"vue-ui-quick-chart-not-processable"},_l=Ie(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),Cl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(c,{expose:w,emit:f}){const b=c,{vue_ui_quick_chart:N}=u.useConfig(),V=e.ref(null),M=e.ref(null),U=e.ref(null),j=e.ref(null),A=e.ref(u.createUid()),P=e.ref(!1),G=e.ref(null),T=e.ref(""),F=e.ref(null),me=e.ref(null),fe=e.ref(null),x=e.ref([]),pe=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>ge(),set:n=>n}),Te=e.computed(()=>t.value.showUserOptionsOnChartHover),he=e.computed(()=>t.value.keepUserOptionsStateOnChartLeave),te=e.ref(!t.value.showUserOptionsOnChartHover);function ke(n=!1){Te.value&&(te.value=n)}function ge(){const n=Ne.useNestedProp({userConfig:b.config,defaultConfig:N});let s={};return n.theme?s={...Ne.useNestedProp({userConfig:u.themes.vue_ui_quick_chart[n.theme]||b.config,defaultConfig:n}),customPalette:u.themePalettes[n.theme]||u.palette}:s=n,b.config&&u.hasDeepProperty(b.config,"zoomStartIndex")?s.zoomStartIndex=b.config.zoomStartIndex:s.zoomStartIndex=null,b.config&&u.hasDeepProperty(b.config,"zoomEndIndex")?s.zoomEndIndex=b.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>b.config,n=>{t.value=ge(),y.value.width=t.value.width,y.value.height=t.value.height,te.value=!t.value.showUserOptionsOnChartHover,Se()},{deep:!0}),e.watch(()=>b.dataset,n=>{p.value=Y.value,k.value.start=0,k.value.end=p.value.maxSeriesLength,ee.value+=1},{deep:!0});const X=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),Y=e.computed(()=>{const n=et({dataset:u.sanitizeArray(b.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return n||console.error("VueUiQuickChart : Dataset is not processable"),n}),p=e.ref(Y.value),Oe=e.computed(()=>!!p.value),B=e.computed(()=>p.value?p.value.type:null);e.watch(()=>B.value,n=>{n||u.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:le,isImaging:ae,generatePdf:ye,generateImage:xe}=ze.usePrinter({elementId:`${B.value}_${A.value}`,fileName:t.value.title||B.value}),Re=e.computed(()=>t.value.showUserOptions&&!t.value.title),y=e.ref({width:t.value.width,height:t.value.height}),oe=e.ref({showTooltip:t.value.showTooltip}),ne=e.ref(null);e.onMounted(()=>{Se()});function Se(){if(t.value.responsive){const n=Ce.throttle(()=>{const{width:s,height:l}=Ce.useResponsive({chart:V.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(B.value)&&t.value.zoomXy&&p.value.maxSeriesLength>1?j.value:null,source:me.value,noTitle:fe.value});y.value.width=s,y.value.height=l});ne.value=new ResizeObserver(n),ne.value.observe(V.value.parentNode)}Le()}e.onBeforeUnmount(()=>{ne.value&&ne.value.disconnect()});const De=e.computed(()=>{switch(B.value){case S.LINE:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.BAR:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.DONUT:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;default:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`}});function be(n){return[...n].map(s=>s.value).reduce((s,l)=>s+l,0)}function Z(n){return t.value.blurOnHover&&![null,void 0].includes(F.value)&&F.value!==n?`url(#blur_${A.value})`:""}function Be(n,s){x.value.includes(n)?x.value=x.value.filter(l=>l!==n):x.value.length<s&&x.value.push(n)}const we=e.ref(null),Ee=e.ref(null),re=e.ref(!1);function Me(n,s){re.value=!0;let l=n.value;if(x.value.includes(n.id)){let i=function(){l>r?(re.value=!1,cancelAnimationFrame(Ee.value),p.value={...p.value,dataset:p.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,p.value={...p.value,dataset:p.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},Ee.value=requestAnimationFrame(i))};x.value=x.value.filter(m=>m!==n.id);const r=Y.value.dataset.find((m,_)=>n.id===`donut_${_}`).VALUE;i()}else if(s.length>1){let r=function(){l<.1?(re.value=!1,cancelAnimationFrame(we.value),x.value.push(n.id),p.value={...p.value,dataset:p.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:0,VALUE:0}:i)}):(l/=1.1,p.value={...p.value,dataset:p.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:l,VALUE:l}:i)},we.value=requestAnimationFrame(r))};r()}}const I=e.ref(null);function Ue(n){I.value=n}const Ae=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),E=e.computed(()=>{if(B.value!==S.DONUT)return null;const n=p.value.dataset.map((a,o)=>({...a,value:a.VALUE||a.DATA||a.SERIE||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`donut_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],immutableValue:a.value}));function s(a,o){return u.dataLabel({v:isNaN(a.value/be(o))?0:a.value/be(o)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(a){return a.proportion*100>t.value.donutHideLabelUnderPercentage}function r(a,o){const g=Y.value.dataset.find((L,C)=>`donut_${C}`===a).VALUE;return Math.abs(String(Number(g.toFixed(0))).length-String(Number(o.toFixed(0))).length)}function i({datapoint:a,seriesIndex:o}){G.value={datapoint:a,seriesIndex:o,config:t.value,dataset:n},F.value=a.id;const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:a,seriesIndex:o,series:n,config:t.value})))T.value=g({datapoint:a,seriesIndex:o,series:n,config:t.value});else{let h="";h+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,h+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,h+=`<b>${u.applyDataLabel(t.value.formatter,a.value,u.dataLabel({p:t.value.valuePrefix,v:a.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:a,seriesIndex:o})}</b>`,h+=`<span>(${u.dataLabel({v:a.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,T.value=`<div>${h}</div>`}P.value=!0}function m(){P.value=!1,F.value=null,I.value=null}const _={centerX:y.value.width/2,centerY:y.value.height/2},z=n.filter(a=>!x.value.includes(a.id)).map(a=>a.value||0).reduce((a,o)=>a+o,0),W=n.map((a,o)=>({...a,proportion:(a.value||0)/z,value:a.value||0,absoluteValue:Y.value.dataset.find((g,h)=>`donut_${h}`===a.id).VALUE})),O=y.value.width/2,H=y.value.height/2,R=y.value.height*t.value.donutRadiusRatio;return{dataset:W.filter(a=>!x.value.includes(a.id)),legend:W,drawingArea:_,displayArcPercentage:s,isArcBigEnough:l,useTooltip:i,killTooltip:m,getSpaces:r,total:z,cx:O,cy:H,radius:R,chart:u.makeDonut({series:n.filter(a=>!x.value.includes(a.id))},O,H,R,R,1.99999,2,1,360,105.25,y.value.height*Ae.value)}}),k=e.ref({start:0,end:p.value.maxSeriesLength});function qe(){Le()}const q=e.ref(null);async function Le(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&q.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setEndValue(We(t.value.zoomEndIndex+1)))):(k.value={start:0,end:p.value.maxSeriesLength},ee.value+=1)}function We(n){const s=p.value.maxSeriesLength;return n>s?s:n<0||t.value.zoomStartIndex!==null&&n<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:n}const He=e.computed(()=>{if(!t.value.zoomMinimap.show||B.value===S.DONUT)return[];let n=[];$(p.value.dataset)&&(n=p.value.dataset),ce(p.value.dataset)&&(n=p.value.dataset.map((i,m)=>({values:i.VALUE||i.DATA||i.SERIE||i.SERIES||i.VALUES||i.NUM||0,id:B.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(i=>!x.value.includes(i.id)));const s=$(n)?n.length:Math.max(...n.map(i=>i.values.length));let l=[];if($(n))l=n;else for(let i=0;i<s;i+=1)l.push(n.map(m=>m.values[i]||0).reduce((m,_)=>(m||0)+(_||0),0));const r=Math.min(...l);return l.map(i=>i+(r<0?Math.abs(r):0))}),v=e.computed(()=>{if(B.value!==S.LINE)return null;const n={height:y.value.height,width:y.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];$(p.value.dataset)&&(l=[{values:p.value.dataset.slice(k.value.start,k.value.end),absoluteIndices:p.value.dataset.map((a,o)=>o).slice(k.value.start,k.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"line_0"}]),ce(p.value.dataset)&&(l=p.value.dataset.map((a,o)=>({...a,values:a.VALUE||a.DATA||a.SERIE||a.SERIES||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`line_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],values:a.values.slice(k.value.start,k.value.end),absoluteIndices:a.values.map((g,h)=>h).slice(k.value.start,k.value.end)})));const r={max:Math.max(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),min:Math.min(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),maxSeries:Math.max(...l.map(a=>a.values.length))},i=u.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,_=r.max<0?s.top:s.bottom-m/(i.max+m)*s.height,z=s.width/r.maxSeries,W=i.ticks.map(a=>({y:s.bottom-s.height*((a+m)/(i.max+m)),x:s.left-8,value:a})),O=l.map((a,o)=>({...a,coordinates:a.values.map((g,h)=>({x:s.left+z*(h+1)-z/2,y:s.bottom-(g+m)/(i.max+m)*s.height,value:g}))})).map(a=>{let o=[];return a.coordinates.forEach(g=>{o.push(`${g.x},${g.y} `)}),{...a,linePath:o.join(" ")}});function H(a){F.value=a,I.value=a;const o=l.map(h=>({...h,value:h.values[a],absoluteIndex:h.absoluteIndices[a]})).filter(h=>!x.value.includes(h.id));G.value={datapoint:o,seriesIndex:a,config:t.value,dataset:l};const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:o,seriesIndex:a,series:l,config:t.value})))T.value=g({datapoint:o,seriesIndex:a,series:l,config:t.value});else{let h="";t.value.xyPeriods[o[0].absoluteIndex]&&(h+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[o[0].absoluteIndex]}</div>`),o.forEach((L,C)=>{h+=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BkXYJDpD.cjs"),Ce=require("./useResponsive-BJ7DTGpm.cjs"),se=require("./BaseIcon-CfhoS_qC.cjs"),Ge=require("./Tooltip-BqSN71SL.cjs"),ze=require("./usePrinter-DHv-BwME.cjs"),Xe=require("./Slicer-7oTpm-cZ.cjs"),Ye=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Ne=require("./useNestedProp-C6IvqE-r.cjs"),Ze=require("./PackageVersion-C1F3QLoY.cjs"),Je=require("./PenAndPaper-DDheVRNG.cjs"),Qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},Ke=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function et({dataset:c,barLineSwitch:w=6}){let f=null,b=null,N=0;if((typeof c=="number"||typeof c=="string")&&console.warn(`The provided dataset (${c}) is not sufficient to build a chart`),K(c)&&($(c)&&(c.length<w?f=S.BAR:f=S.LINE,b=c,N=c.length),ce(c))){if(!lt(c))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(c[0]),j=Object.values(c[0]);if(!U.some(A=>at(A)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;Ve(j,A=>typeof A=="number")&&(f=S.DONUT,b=c),Ve(j,A=>Array.isArray(A)&&$(A))&&(Fe(c)>w?f=S.LINE:f=S.BAR,N=Fe(c),b=c.map(A=>({...A,data:ot(A,P=>$(P))}))),c=c.map(A=>Pe(A)),b=b.map(A=>Pe(A))}return K(c)&&[...new Set(c.flatMap(U=>Array.isArray(U)))][0],{dataset:c,type:f,usableDataset:b,maxSeriesLength:N}}function $e(c){return!c||K(c)&&!c.length}function K(c){return Array.isArray(c)}function $(c){if(!K(c)||$e(c))return!1;const w=c.map(f=>Number(f));return![...new Set(w.flatMap(f=>typeof f=="number"&&!isNaN(f)))].includes(!1)}function ce(c){return!K(c)||$e(c)||!![...new Set(c.flatMap(f=>typeof f=="object"&&!Array.isArray(f)))].includes(!1)?!1:!c.map(f=>Object.keys(f).length>0).includes(!1)}function tt(c,w){const f=Object.keys(c).sort(),b=Object.keys(w).sort();if(f.length!==b.length)return!1;for(let N=0;N<f.length;N+=1){const V=f[N],M=b[N];if(V!==M||typeof c[V]!=typeof w[M])return!1}return!0}function lt(c){if(c.length<=1)return!0;for(let w=0;w<c.length;w+=1)for(let f=w+1;f<c.length;f+=1)if(!tt(c[w],c[f]))return!1;return!0}function at(c){return Ke.includes(c.toUpperCase())}function Ve(c,w){let f=[];for(let b=0;b<c.length;b+=1)f.push(w(c[b]));return f.includes(!0)}function Fe(c){return Math.max(...[...c].flatMap(w=>Object.values(w).filter(f=>$(f)).map(f=>f.length)))}function ot(c,w){return Object.values(c).filter(f=>w(f))[0]}function Pe(c){const w={};for(let f in c)c.hasOwnProperty(f)&&(w[f.toUpperCase()]=c[f]);return w}const Ie=c=>(e.pushScopeId("data-v-c31c33da"),c=c(),e.popScopeId(),c),nt=["id"],rt=["xmlns","viewBox"],it=["id"],ut=["id"],st=Ie(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),ct=["id"],dt=["flood-color"],vt={key:0,class:"donut-label-connectors"},mt=["d","stroke","stroke-width","filter"],ft=["cx","cy","r","fill","filter"],pt={class:"donut"},ht=["d","fill","stroke","stroke-width","filter"],kt=["d","onMouseenter","onClick"],gt={key:1,class:"donut-labels quick-animation"},yt=["cx","cy","fill","stroke","filter"],xt=["text-anchor","x","y","fill","font-size","filter"],St=["text-anchor","x","y","fill","font-size","filter"],bt={key:2,class:"donut-hollow quick-animation"},Bt=["x","y","font-size","fill"],wt=["x","y","font-size","fill"],Et={key:0,class:"line-grid"},At=["x1","x2","y1","y2","stroke","stroke-width"],Lt=["x1","x2","y1","y2","stroke","stroke-width"],_t={key:1,class:"line-axis"},Ct=["x1","x2","y1","y2","stroke","stroke-width"],zt=["x1","x2","y1","y2","stroke","stroke-width"],Nt={key:2,class:"yLabels"},Vt=["x1","x2","y1","y2","stroke","stroke-width"],Ft=["x","y","font-size","fill"],Pt={key:3,class:"periodLabels"},$t=["x1","x2","y1","y2","stroke","stroke-width"],It=["font-size","text-anchor","fill","transform"],Tt={class:"plots"},Ot={class:"line-plot-series"},Rt=["d","stroke","stroke-width"],Dt=["d","stroke","stroke-width"],Mt=["d","stroke","stroke-width"],Ut=["d","stroke","stroke-width"],qt=["cx","cy","fill","stroke"],Wt={key:4,class:"dataLabels"},Ht=["font-size","fill","x","y"],jt={class:"tooltip-traps"},Gt=["x","y","height","width","fill","onMouseenter","onClick"],Xt={key:0,class:"line-grid"},Yt=["x1","x2","y1","y2","stroke","stroke-width"],Zt=["x1","x2","y1","y2","stroke","stroke-width"],Jt={key:1,class:"line-axis"},Qt=["x1","x2","y1","y2","stroke","stroke-width"],Kt=["x1","x2","y1","y2","stroke","stroke-width"],el={key:2,class:"yLabels"},tl=["x1","x2","y1","y2","stroke","stroke-width"],ll=["x","y","font-size","fill"],al={key:3,class:"periodLabels"},ol=["x1","x2","y1","y2","stroke","stroke-width"],nl=["font-size","text-anchor","transform","fill"],rl={class:"plots"},il=["x","width","height","y","fill","stroke","stroke-width"],ul=["to"],sl=["from","to"],cl={key:4,class:"dataLabels"},dl=["x","y","font-size","fill"],vl={class:"tooltip-traps"},ml=["x","y","height","width","fill","onMouseenter","onClick"],fl={key:3,class:"axis-labels"},pl={key:0},hl=["font-size","fill","x","y"],kl={key:1},gl=["font-size","fill","x","y"],yl={key:2},xl=["font-size","fill","transform"],Sl={key:3},bl=["font-size","fill","transform"],Bl={key:6,class:"vue-data-ui-watermark"},wl=["onClick"],El=["onClick"],Al=["onClick"],Ll={key:1,class:"vue-ui-quick-chart-not-processable"},_l=Ie(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),Cl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(c,{expose:w,emit:f}){const b=c,{vue_ui_quick_chart:N}=u.useConfig(),V=e.ref(null),M=e.ref(null),U=e.ref(null),j=e.ref(null),A=e.ref(u.createUid()),P=e.ref(!1),G=e.ref(null),T=e.ref(""),F=e.ref(null),me=e.ref(null),fe=e.ref(null),x=e.ref([]),pe=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>ge(),set:n=>n}),Te=e.computed(()=>t.value.showUserOptionsOnChartHover),he=e.computed(()=>t.value.keepUserOptionsStateOnChartLeave),te=e.ref(!t.value.showUserOptionsOnChartHover);function ke(n=!1){Te.value&&(te.value=n)}function ge(){const n=Ne.useNestedProp({userConfig:b.config,defaultConfig:N});let s={};return n.theme?s={...Ne.useNestedProp({userConfig:u.themes.vue_ui_quick_chart[n.theme]||b.config,defaultConfig:n}),customPalette:u.themePalettes[n.theme]||u.palette}:s=n,b.config&&u.hasDeepProperty(b.config,"zoomStartIndex")?s.zoomStartIndex=b.config.zoomStartIndex:s.zoomStartIndex=null,b.config&&u.hasDeepProperty(b.config,"zoomEndIndex")?s.zoomEndIndex=b.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>b.config,n=>{t.value=ge(),y.value.width=t.value.width,y.value.height=t.value.height,te.value=!t.value.showUserOptionsOnChartHover,Se()},{deep:!0}),e.watch(()=>b.dataset,n=>{p.value=Y.value,k.value.start=0,k.value.end=p.value.maxSeriesLength,ee.value+=1},{deep:!0});const X=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),Y=e.computed(()=>{const n=et({dataset:u.sanitizeArray(b.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return n||console.error("VueUiQuickChart : Dataset is not processable"),n}),p=e.ref(Y.value),Oe=e.computed(()=>!!p.value),B=e.computed(()=>p.value?p.value.type:null);e.watch(()=>B.value,n=>{n||u.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:le,isImaging:ae,generatePdf:ye,generateImage:xe}=ze.usePrinter({elementId:`${B.value}_${A.value}`,fileName:t.value.title||B.value}),Re=e.computed(()=>t.value.showUserOptions&&!t.value.title),y=e.ref({width:t.value.width,height:t.value.height}),oe=e.ref({showTooltip:t.value.showTooltip}),ne=e.ref(null);e.onMounted(()=>{Se()});function Se(){if(t.value.responsive){const n=Ce.throttle(()=>{const{width:s,height:l}=Ce.useResponsive({chart:V.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(B.value)&&t.value.zoomXy&&p.value.maxSeriesLength>1?j.value:null,source:me.value,noTitle:fe.value});y.value.width=s,y.value.height=l});ne.value=new ResizeObserver(n),ne.value.observe(V.value.parentNode)}Le()}e.onBeforeUnmount(()=>{ne.value&&ne.value.disconnect()});const De=e.computed(()=>{switch(B.value){case S.LINE:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.BAR:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.DONUT:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;default:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`}});function be(n){return[...n].map(s=>s.value).reduce((s,l)=>s+l,0)}function Z(n){return t.value.blurOnHover&&![null,void 0].includes(F.value)&&F.value!==n?`url(#blur_${A.value})`:""}function Be(n,s){x.value.includes(n)?x.value=x.value.filter(l=>l!==n):x.value.length<s&&x.value.push(n)}const we=e.ref(null),Ee=e.ref(null),re=e.ref(!1);function Me(n,s){re.value=!0;let l=n.value;if(x.value.includes(n.id)){let i=function(){l>r?(re.value=!1,cancelAnimationFrame(Ee.value),p.value={...p.value,dataset:p.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,p.value={...p.value,dataset:p.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},Ee.value=requestAnimationFrame(i))};x.value=x.value.filter(m=>m!==n.id);const r=Y.value.dataset.find((m,_)=>n.id===`donut_${_}`).VALUE;i()}else if(s.length>1){let r=function(){l<.1?(re.value=!1,cancelAnimationFrame(we.value),x.value.push(n.id),p.value={...p.value,dataset:p.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:0,VALUE:0}:i)}):(l/=1.1,p.value={...p.value,dataset:p.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:l,VALUE:l}:i)},we.value=requestAnimationFrame(r))};r()}}const I=e.ref(null);function Ue(n){I.value=n}const Ae=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),E=e.computed(()=>{if(B.value!==S.DONUT)return null;const n=p.value.dataset.map((a,o)=>({...a,value:a.VALUE||a.DATA||a.SERIE||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`donut_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],immutableValue:a.value}));function s(a,o){return u.dataLabel({v:isNaN(a.value/be(o))?0:a.value/be(o)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(a){return a.proportion*100>t.value.donutHideLabelUnderPercentage}function r(a,o){const g=Y.value.dataset.find((L,C)=>`donut_${C}`===a).VALUE;return Math.abs(String(Number(g.toFixed(0))).length-String(Number(o.toFixed(0))).length)}function i({datapoint:a,seriesIndex:o}){G.value={datapoint:a,seriesIndex:o,config:t.value,dataset:n},F.value=a.id;const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:a,seriesIndex:o,series:n,config:t.value})))T.value=g({datapoint:a,seriesIndex:o,series:n,config:t.value});else{let h="";h+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,h+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,h+=`<b>${u.applyDataLabel(t.value.formatter,a.value,u.dataLabel({p:t.value.valuePrefix,v:a.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:a,seriesIndex:o})}</b>`,h+=`<span>(${u.dataLabel({v:a.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,T.value=`<div>${h}</div>`}P.value=!0}function m(){P.value=!1,F.value=null,I.value=null}const _={centerX:y.value.width/2,centerY:y.value.height/2},z=n.filter(a=>!x.value.includes(a.id)).map(a=>a.value||0).reduce((a,o)=>a+o,0),W=n.map((a,o)=>({...a,proportion:(a.value||0)/z,value:a.value||0,absoluteValue:Y.value.dataset.find((g,h)=>`donut_${h}`===a.id).VALUE})),O=y.value.width/2,H=y.value.height/2,R=y.value.height*t.value.donutRadiusRatio;return{dataset:W.filter(a=>!x.value.includes(a.id)),legend:W,drawingArea:_,displayArcPercentage:s,isArcBigEnough:l,useTooltip:i,killTooltip:m,getSpaces:r,total:z,cx:O,cy:H,radius:R,chart:u.makeDonut({series:n.filter(a=>!x.value.includes(a.id))},O,H,R,R,1.99999,2,1,360,105.25,y.value.height*Ae.value)}}),k=e.ref({start:0,end:p.value.maxSeriesLength});function qe(){Le()}const q=e.ref(null);async function Le(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&q.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setEndValue(We(t.value.zoomEndIndex+1)))):(k.value={start:0,end:p.value.maxSeriesLength},ee.value+=1)}function We(n){const s=p.value.maxSeriesLength;return n>s?s:n<0||t.value.zoomStartIndex!==null&&n<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:n}const He=e.computed(()=>{if(!t.value.zoomMinimap.show||B.value===S.DONUT)return[];let n=[];$(p.value.dataset)&&(n=p.value.dataset),ce(p.value.dataset)&&(n=p.value.dataset.map((i,m)=>({values:i.VALUE||i.DATA||i.SERIE||i.SERIES||i.VALUES||i.NUM||0,id:B.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(i=>!x.value.includes(i.id)));const s=$(n)?n.length:Math.max(...n.map(i=>i.values.length));let l=[];if($(n))l=n;else for(let i=0;i<s;i+=1)l.push(n.map(m=>m.values[i]||0).reduce((m,_)=>(m||0)+(_||0),0));const r=Math.min(...l);return l.map(i=>i+(r<0?Math.abs(r):0))}),v=e.computed(()=>{if(B.value!==S.LINE)return null;const n={height:y.value.height,width:y.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];$(p.value.dataset)&&(l=[{values:p.value.dataset.slice(k.value.start,k.value.end),absoluteIndices:p.value.dataset.map((a,o)=>o).slice(k.value.start,k.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"line_0"}]),ce(p.value.dataset)&&(l=p.value.dataset.map((a,o)=>({...a,values:a.VALUE||a.DATA||a.SERIE||a.SERIES||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`line_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],values:a.values.slice(k.value.start,k.value.end),absoluteIndices:a.values.map((g,h)=>h).slice(k.value.start,k.value.end)})));const r={max:Math.max(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),min:Math.min(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),maxSeries:Math.max(...l.map(a=>a.values.length))},i=u.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,_=r.max<0?s.top:s.bottom-m/(i.max+m)*s.height,z=s.width/r.maxSeries,W=i.ticks.map(a=>({y:s.bottom-s.height*((a+m)/(i.max+m)),x:s.left-8,value:a})),O=l.map((a,o)=>({...a,coordinates:a.values.map((g,h)=>({x:s.left+z*(h+1)-z/2,y:s.bottom-(g+m)/(i.max+m)*s.height,value:g}))})).map(a=>{let o=[];return a.coordinates.forEach(g=>{o.push(`${g.x},${g.y} `)}),{...a,linePath:o.join(" ")}});function H(a){F.value=a,I.value=a;const o=l.map(h=>({...h,value:h.values[a],absoluteIndex:h.absoluteIndices[a]})).filter(h=>!x.value.includes(h.id));G.value={datapoint:o,seriesIndex:a,config:t.value,dataset:l};const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:o,seriesIndex:a,series:l,config:t.value})))T.value=g({datapoint:o,seriesIndex:a,series:l,config:t.value});else{let h="";t.value.xyPeriods[o[0].absoluteIndex]&&(h+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[o[0].absoluteIndex]}</div>`),o.forEach((L,C)=>{h+=`
|
|
2
2
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
3
3
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${L.color}"/></svg>
|
|
4
4
|
<span>${L.name}:</span>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
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 R, 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-
|
|
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-K5uyh1gA.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-zmxwsaLW.js";
|
|
5
|
+
import { _ as Ut } from "./Tooltip-BRZ3DT4p.js";
|
|
6
|
+
import { u as Bt, U as Dt } from "./usePrinter-p_ZZlGc9.js";
|
|
7
|
+
import { S as Vt } from "./Slicer-D_DaIThC.js";
|
|
8
|
+
import qt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
9
|
+
import { u as ut } from "./useNestedProp-DifqJZAs.js";
|
|
10
|
+
import { _ as Wt } from "./PackageVersion-Dz3KcTL4.js";
|
|
11
|
+
import { P as jt } from "./PenAndPaper-BycdTwSP.js";
|
|
12
12
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const _ = {
|
|
14
14
|
LINE: "LINE",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BkXYJDpD.cjs"),ne=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./Title-B7ruS8yl.cjs"),se=require("./usePrinter-DHv-BwME.cjs"),Be=require("./Tooltip-BqSN71SL.cjs"),Pe=require("./vue-ui-sparkbar-CJR8pSqp.cjs"),_e=require("./Legend-CR9ydX8N.cjs"),$e=require("./DataTable-CwAdpLng.cjs"),xe=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Ne=require("./vue-ui-accordion-kr18wKfc.cjs"),ue=require("./useNestedProp-C6IvqE-r.cjs"),Te=require("./PackageVersion-C1F3QLoY.cjs"),Se=require("./PenAndPaper-DDheVRNG.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Oe=["id"],Ae=["xmlns","viewBox"],Fe=["id"],Le=["stop-color"],ze=["stop-color"],Ie={key:0},Re=["x1","y1","x2","y2","stroke","stroke-width"],qe={key:0},Me=["d","stroke","stroke-width"],Ue=["d","stroke","stroke-width"],De={key:1},Ge=["x","y","text-anchor","font-size","fill","onMouseenter"],We=["points","stroke","stroke-width"],He=["points","stroke","stroke-width","fill"],Xe={key:2},je=["cx","cy","fill","r","stroke"],Ye={key:5,class:"vue-data-ui-watermark"},Je=["onClick"],Ke={key:0,style:{"max-width":"200px",margin:"0 auto"}},Qe={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ie,{expose:ce,emit:de}){const d=ie,{vue_ui_radar:ve}=n.useConfig(),C=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),pe=e.ref(null),x=e.ref(!1),N=e.ref(""),L=e.ref(0),m=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:T,setUserOptionsVisibility:G,keepUserOptionState:W}=Ee.useUserOptionState({config:t.value});function H(){const o=ue.useNestedProp({userConfig:d.config,defaultConfig:ve});return o.theme?{...ue.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=H(),T.value=!t.value.showOnChartHover,X(),M.value+=1,U.value+=1,D.value+=1},{deep:!0});const B=e.ref(null);function X(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=ne.throttle(()=>{const{width:a,height:l}=ne.useResponsive({chart:m.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});u.value.width=a,u.value.height=l});B.value=new ResizeObserver(o),B.value.observe(m.value.parentNode)}}e.onMounted(()=>{X()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:j,isImaging:Y,generatePdf:J,generateImage:K}=se.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),ge=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),g=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),he=e.computed(()=>({style:{backgroundColor:t.value.style.chart.tooltip.backgroundColor,animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),u=e.ref({height:312,width:512}),i=e.ref([]),w=e.ref(null),y=e.ref(!1);function Z(o){y.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{y.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{y.value=!1},500)),de("selectLegend",k.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function fe(){return k.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),p=e.computed(()=>C.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),ee=e.computed(()=>Math.max(...p.value.flatMap(o=>o.values))),te=e.computed(()=>p.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),oe=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:te.value,rotation:0})),me=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),h=e.computed(()=>oe.value.coordinates.map((o,a)=>{const l=p.value[a].values.map(r=>ye({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(p.value[a].target||ee.value)}));return{...o,...p.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ye({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const k=e.computed(()=>{const o=p.value.map((a,l)=>a.values.map(r=>r/(a.target||ee.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/p.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>Z(l),isSegregated:i.value.includes(l)}))}),ke=e.computed(()=>({cy:"radar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...k.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/r.target*100,s:"%",r:t.value.table.td.roundingPercentage})})`)]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:o,body:a,config:l,colNames:o}}),_=e.ref(null),V=e.ref([]),O=e.ref(null);function be(o,a){V.value=[],_.value=a,x.value=!0;let l="";O.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value})))N.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.value},config:t.value});else{l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`;for(let s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});N.value=l}}function ae(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...k.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,et)=>[c.name,c.target,...c.values.flatMap(F=>[F,isNaN(F/c.target)?"":F/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const b=e.ref(!1);function Ce(o){b.value=o,L.value+=1}function le(){g.value.showTable=!g.value.showTable}function re(){g.value.showTooltip=!g.value.showTooltip}const $=e.ref(!1);function A(){$.value=!$.value}return ce({getData:fe,generatePdf:J,generateCsv:ae,generateImage:K,toggleTable:le,toggleTooltip:re,toggleAnnotator:A}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:m,id:`vue-ui-radar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Se.PenAndPaper,{key:0,parent:m.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:A},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ge.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),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${M.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(W)||e.unref(T))?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(j),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(J),onGenerateCsv:ae,onGenerateImage:e.unref(K),onToggleTable:le,onToggleTooltip:re,onToggleAnnotator:A,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(T)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Te._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,Le),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,ze)],8,Fe))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Re))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:te.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Me))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:oe.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ue),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>be(l,r),onMouseleave:a[0]||(a[0]=s=>{x.value=!1,_.value=null})},e.toDisplayString(l.name),41,Ge))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-radar-path":"",points:e.unref(n.makePath)(h.value.map(s=>s.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,We)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,"data-cy-radar-path":"",points:e.unref(n.makePath)(h.value.map(s=>s.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,He)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===c&&t.value.useCssAnimation})},null,10,je))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,Ae)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${D.value}`,legendSet:k.value,config:ke.value,onClickMarker:a[1]||(a[1]=({i:l})=>Z(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,Je)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:g.value.showTooltip&&x.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:N.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(Pe.default,{dataset:V.value,config:he.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity},null,8,["dataset","config","backgroundOpacity"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:8,hideDetails:"",config:{open:g.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock($e.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Oe))}},Ze=Ve._export_sfc(Qe,[["__scopeId","data-v-921087d8"]]);exports.default=Ze;
|