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,15 +1,15 @@
|
|
|
1
1
|
import { computed as p, ref as m, onMounted as nt, watch as Me, openBlock as a, createElementBlock as u, normalizeClass as P, normalizeStyle as q, unref as c, createBlock as T, createCommentVNode as v, createSlots as rt, withCtx as I, renderSlot as F, normalizeProps as J, guardReactiveProps as Q, createVNode as it, createElementVNode as d, Fragment as k, renderList as _, toDisplayString as b, withKeys as ct, createTextVNode as He, nextTick as X } from "vue";
|
|
2
|
-
import { u as vt, o as dt, e as Z, g as ht, c as Ue, t as yt, a as ft, p as ee, C as We, b as gt, J as mt, d as
|
|
3
|
-
import { _ as _t } from "./Title-
|
|
4
|
-
import { u as Ct, U as wt } from "./usePrinter-
|
|
5
|
-
import { D as Lt } from "./DataTable-
|
|
6
|
-
import { L as zt } from "./Legend-
|
|
7
|
-
import St from "./vue-ui-skeleton-
|
|
8
|
-
import { S as At } from "./Slicer-
|
|
9
|
-
import $t from "./vue-ui-accordion-
|
|
10
|
-
import { u as Be } from "./useNestedProp-
|
|
11
|
-
import { _ as Nt } from "./PackageVersion-
|
|
12
|
-
import { P as It } from "./PenAndPaper-
|
|
2
|
+
import { u as vt, o as dt, e as Z, g as ht, c as Ue, t as yt, a as ft, p as ee, C as We, b as gt, J as mt, d as de, D as Re, m as he, X as bt, s as G, E as xt, i as ye, f as te, j as Xe, k as le, n as Ge, K as je, q as pt, r as kt } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { _ as _t } from "./Title-aMb2ETf7.js";
|
|
4
|
+
import { u as Ct, U as wt } from "./usePrinter-p_ZZlGc9.js";
|
|
5
|
+
import { D as Lt } from "./DataTable-COkA4Nyz.js";
|
|
6
|
+
import { L as zt } from "./Legend-bYlSC7I7.js";
|
|
7
|
+
import St from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
8
|
+
import { S as At } from "./Slicer-D_DaIThC.js";
|
|
9
|
+
import $t from "./vue-ui-accordion-CsJT7Az3.js";
|
|
10
|
+
import { u as Be } from "./useNestedProp-DifqJZAs.js";
|
|
11
|
+
import { _ as Nt } from "./PackageVersion-Dz3KcTL4.js";
|
|
12
|
+
import { P as It } from "./PenAndPaper-BycdTwSP.js";
|
|
13
13
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"], Vt = ["stop-color"], Mt = ["id"], Ht = ["stop-color"], Ut = ["stop-color"], Wt = ["stop-color"], Rt = { key: 0 }, Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 0 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x", "y", "font-size", "fill", "font-weight"], qt = ["text-anchor", "font-size", "fill", "transform"], Jt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qt = { key: 1 }, Zt = ["cx", "cy", "r", "fill"], el = { key: 0 }, tl = { key: 0 }, ll = ["d", "stroke"], al = ["text-anchor", "x", "y", "fill"], ol = ["cx", "cy", "r", "fill"], ul = { key: 0 }, sl = ["cx", "cy", "fill"], nl = { key: 1 }, rl = ["d", "fill", "stroke"], il = { key: 2 }, cl = ["d", "fill", "stroke"], vl = ["x", "y", "font-size", "fill"], dl = ["x", "y", "width", "fill", "onClick"], hl = ["x", "y", "width", "height", "onMouseenter", "onClick"], yl = {
|
|
@@ -40,29 +40,29 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["selectLegend"],
|
|
43
|
-
setup(Ye, { expose: Ke, emit:
|
|
43
|
+
setup(Ye, { expose: Ke, emit: fe }) {
|
|
44
44
|
const x = Ye, { vue_ui_donut_evolution: qe } = vt(), j = p(() => !!x.dataset && x.dataset.length), h = m({
|
|
45
45
|
start: 0,
|
|
46
46
|
end: Math.max(...x.dataset.map((l) => l.values.length))
|
|
47
47
|
});
|
|
48
|
-
function
|
|
49
|
-
|
|
48
|
+
function ge() {
|
|
49
|
+
me();
|
|
50
50
|
}
|
|
51
51
|
const V = m(null);
|
|
52
|
-
async function
|
|
52
|
+
async function me() {
|
|
53
53
|
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && V.value ? (e.value.style.chart.zoom.startIndex !== null && (await X(), await X(), V.value && V.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await X(), await X(), V.value && V.value.setEndValue(Je(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
54
54
|
start: 0,
|
|
55
55
|
end: E.value
|
|
56
|
-
},
|
|
56
|
+
}, pe.value += 1);
|
|
57
57
|
}
|
|
58
58
|
function Je(l) {
|
|
59
59
|
const o = E.value;
|
|
60
60
|
return l > o ? o : l < 0 || e.value.style.chart.zoom.startIndex !== null && l < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : l;
|
|
61
61
|
}
|
|
62
62
|
nt(() => {
|
|
63
|
-
|
|
63
|
+
be();
|
|
64
64
|
});
|
|
65
|
-
function
|
|
65
|
+
function be() {
|
|
66
66
|
dt(x.dataset) ? Z({
|
|
67
67
|
componentName: "VueUiDonutEvolution",
|
|
68
68
|
type: "dataset"
|
|
@@ -78,12 +78,12 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
78
78
|
index: o
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
-
}),
|
|
81
|
+
}), me();
|
|
82
82
|
}
|
|
83
|
-
const D = m(Ue()), C = m([]), g = m(null), ae = m(null), S = m(!1), A = m(null), oe = m(null), Qe = m(null),
|
|
83
|
+
const D = m(Ue()), C = m([]), g = m(null), ae = m(null), S = m(!1), A = m(null), oe = m(null), Qe = m(null), xe = m(0), pe = m(0), ke = m(0), _e = m(0), Ce = m(0), e = p({
|
|
84
84
|
get: () => ze(),
|
|
85
85
|
set: (l) => l
|
|
86
|
-
}), { userOptionsVisible:
|
|
86
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: Le } = Ft({ config: e.value });
|
|
87
87
|
function ze() {
|
|
88
88
|
const l = Be({
|
|
89
89
|
userConfig: x.config,
|
|
@@ -99,9 +99,9 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
99
99
|
} : o = l, x.config && We(x.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, x.config && We(x.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
|
|
100
100
|
}
|
|
101
101
|
Me(() => x.config, (l) => {
|
|
102
|
-
e.value = ze(),
|
|
102
|
+
e.value = ze(), ue.value = !e.value.showOnChartHover, be(), ke.value += 1, _e.value += 1, Ce.value += 1;
|
|
103
103
|
}, { deep: !0 }), Me(() => x.dataset, (l) => {
|
|
104
|
-
|
|
104
|
+
ge();
|
|
105
105
|
}, { deep: !0 });
|
|
106
106
|
const { isPrinting: Se, isImaging: Ae, generatePdf: $e, generateImage: Ne } = Ct({
|
|
107
107
|
elementId: D.value,
|
|
@@ -138,7 +138,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
138
138
|
}), x.dataset.map((l, o) => ({
|
|
139
139
|
...l,
|
|
140
140
|
values: mt(l.values),
|
|
141
|
-
color:
|
|
141
|
+
color: de(l.color) || et.value[o] || ee[o] || ee[o % ee.length],
|
|
142
142
|
length: (l.values || []).length,
|
|
143
143
|
uid: Ue()
|
|
144
144
|
})))), W = p(() => O.value.filter((l) => !C.value.includes(l.uid)).map((l) => ({
|
|
@@ -147,10 +147,10 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
147
147
|
}))), E = p(() => Math.max(...W.value.map((l) => l.length))), L = p(() => i.value.width / (h.value.end - h.value.start)), w = p(() => {
|
|
148
148
|
const l = [];
|
|
149
149
|
for (let s = 0; s < h.value.end - h.value.start; s += 1) {
|
|
150
|
-
const f = W.value.map((N) => N.values[s] ?? null), y = f.filter((N) => [void 0, null].includes(N)).length === f.length, $ = f.reduce((N, z) => N + z, 0),
|
|
150
|
+
const f = W.value.map((N) => N.values[s] ?? null), y = f.filter((N) => [void 0, null].includes(N)).length === f.length, $ = f.reduce((N, z) => N + z, 0), ve = f.map((N) => N / $), U = n.value.left + L.value * s + L.value / 2;
|
|
151
151
|
l.push({
|
|
152
152
|
index: s,
|
|
153
|
-
percentages:
|
|
153
|
+
percentages: ve,
|
|
154
154
|
subtotal: y || $ < 0 ? null : $,
|
|
155
155
|
values: f,
|
|
156
156
|
x: U
|
|
@@ -158,28 +158,28 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
158
158
|
}
|
|
159
159
|
const o = 0, t = Math.max(...l.map((s) => s.subtotal)), r = l.length === 1 ? t * 2 : t;
|
|
160
160
|
return l.map((s, f) => {
|
|
161
|
-
const y = L.value / 2 * 0.7, $ = y > i.value.width / 16 ? i.value.width / 16 : y,
|
|
161
|
+
const y = L.value / 2 * 0.7, $ = y > i.value.width / 16 ? i.value.width / 16 : y, ve = g.value === s.index ? i.value.width / 16 : $, U = l.length > 4 ? y * 2 : y * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : y * 2, N = i.value.absoluteHeight - n.value.bottom - i.value.height * s.subtotal / Re(o, r, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
162
162
|
return {
|
|
163
163
|
...s,
|
|
164
164
|
y: N,
|
|
165
165
|
radius: $,
|
|
166
|
-
activeRadius:
|
|
166
|
+
activeRadius: ve,
|
|
167
167
|
hoverRadius: U,
|
|
168
|
-
donut:
|
|
168
|
+
donut: he({
|
|
169
169
|
series: W.value.map((z, Ve) => ({
|
|
170
170
|
color: z.color,
|
|
171
171
|
name: z.name,
|
|
172
172
|
value: z.values[f] ?? 0
|
|
173
173
|
}))
|
|
174
174
|
}, s.x, N, $, $, 1.99999, 2, 1, 360, 105.25, $ / 2),
|
|
175
|
-
donutHover:
|
|
175
|
+
donutHover: he({
|
|
176
176
|
series: W.value.map((z, Ve) => ({
|
|
177
177
|
color: z.color,
|
|
178
178
|
name: z.name,
|
|
179
179
|
value: z.values[f] ?? 0
|
|
180
180
|
}))
|
|
181
181
|
}, s.x, N, U, U, 1.99999, 2, 1, 360, 105.25, U / 2),
|
|
182
|
-
donutFocus:
|
|
182
|
+
donutFocus: he({
|
|
183
183
|
series: W.value.map((z, Ve) => ({
|
|
184
184
|
color: z.color,
|
|
185
185
|
name: z.name,
|
|
@@ -190,7 +190,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
function Y(l, o, t) {
|
|
193
|
-
return
|
|
193
|
+
return ye(
|
|
194
194
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
195
195
|
l,
|
|
196
196
|
te({
|
|
@@ -202,12 +202,12 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
202
202
|
{ datapoint: o, index: t }
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const se = p(() => ({
|
|
206
206
|
max: Math.max(...w.value.map((l) => l.subtotal)),
|
|
207
207
|
min: 0
|
|
208
208
|
})), M = p(() => {
|
|
209
|
-
const l = w.value.length === 1 ?
|
|
210
|
-
return Re(
|
|
209
|
+
const l = w.value.length === 1 ? se.value.max * 2 : se.value.max;
|
|
210
|
+
return Re(se.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
211
211
|
});
|
|
212
212
|
function tt(l) {
|
|
213
213
|
return l / M.value.max;
|
|
@@ -225,12 +225,12 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
225
225
|
function at(l) {
|
|
226
226
|
S.value || (g.value = l.index, ae.value = l);
|
|
227
227
|
}
|
|
228
|
-
const
|
|
229
|
-
function
|
|
230
|
-
l.subtotal && (ae.value = null, g.value = null, S.value = !0, A.value = l, [null, void 0].includes(o) || (
|
|
228
|
+
const ne = m(null);
|
|
229
|
+
function re(l, o) {
|
|
230
|
+
l.subtotal && (ae.value = null, g.value = null, S.value = !0, A.value = l, [null, void 0].includes(o) || (ne.value = o));
|
|
231
231
|
}
|
|
232
232
|
function Pe() {
|
|
233
|
-
A.value = null, S.value = !1,
|
|
233
|
+
A.value = null, S.value = !1, ne.value = null;
|
|
234
234
|
}
|
|
235
235
|
const Oe = p(() => O.value.map((l, o) => ({
|
|
236
236
|
name: l.name,
|
|
@@ -241,7 +241,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
241
241
|
})).sort((l, o) => o.value - l.value).map((l) => ({
|
|
242
242
|
...l,
|
|
243
243
|
opacity: C.value.includes(l.uid) ? 0.5 : 1,
|
|
244
|
-
segregate: () =>
|
|
244
|
+
segregate: () => ie(l.uid),
|
|
245
245
|
isSegregated: C.value.includes(l.uid)
|
|
246
246
|
}))), Te = p(() => w.value.map((l) => l.subtotal).reduce((l, o) => l + o, 0)), ot = p(() => ({
|
|
247
247
|
cy: "donut-div-legend",
|
|
@@ -251,14 +251,14 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
251
251
|
paddingBottom: 12,
|
|
252
252
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
253
|
}));
|
|
254
|
-
function
|
|
254
|
+
function ie(l) {
|
|
255
255
|
if (C.value.includes(l))
|
|
256
|
-
C.value = C.value.filter((o) => o !== l),
|
|
256
|
+
C.value = C.value.filter((o) => o !== l), fe("selectLegend", null);
|
|
257
257
|
else {
|
|
258
258
|
if (C.value.length === O.value.length - 1) return;
|
|
259
|
-
C.value.push(l),
|
|
259
|
+
C.value.push(l), fe("selectLegend", O.value.find((o) => o.uid === l));
|
|
260
260
|
}
|
|
261
|
-
A.value &&
|
|
261
|
+
A.value && re(w.value.find((o, t) => t === ne.value));
|
|
262
262
|
}
|
|
263
263
|
const H = p(() => {
|
|
264
264
|
const l = [""].concat(O.value.filter((s) => !C.value.includes(s.uid)).map((s) => ({
|
|
@@ -301,13 +301,13 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
301
301
|
}
|
|
302
302
|
const R = m(!1);
|
|
303
303
|
function st(l) {
|
|
304
|
-
R.value = l,
|
|
304
|
+
R.value = l, xe.value += 1;
|
|
305
305
|
}
|
|
306
306
|
function Ee() {
|
|
307
307
|
B.value.showTable = !B.value.showTable;
|
|
308
308
|
}
|
|
309
309
|
const K = m(!1);
|
|
310
|
-
function
|
|
310
|
+
function ce() {
|
|
311
311
|
K.value = !K.value;
|
|
312
312
|
}
|
|
313
313
|
return Ke({
|
|
@@ -316,7 +316,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
316
316
|
generateCsv: De,
|
|
317
317
|
generateImage: Ne,
|
|
318
318
|
toggleTable: Ee,
|
|
319
|
-
toggleAnnotator:
|
|
319
|
+
toggleAnnotator: ce
|
|
320
320
|
}), (l, o) => (a(), u("div", {
|
|
321
321
|
ref_key: "donutEvolutionChart",
|
|
322
322
|
ref: oe,
|
|
@@ -332,7 +332,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
332
332
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
333
333
|
color: e.value.style.chart.color,
|
|
334
334
|
active: K.value,
|
|
335
|
-
onClose:
|
|
335
|
+
onClose: ce
|
|
336
336
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
337
337
|
Ze.value ? (a(), u("div", {
|
|
338
338
|
key: 1,
|
|
@@ -347,7 +347,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
347
347
|
onMouseleave: Fe
|
|
348
348
|
}, [
|
|
349
349
|
(a(), T(_t, {
|
|
350
|
-
key: `title_${
|
|
350
|
+
key: `title_${ke.value}`,
|
|
351
351
|
config: {
|
|
352
352
|
title: {
|
|
353
353
|
cy: "donut-evolution-div-title",
|
|
@@ -360,9 +360,9 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
360
360
|
}
|
|
361
361
|
}, null, 8, ["config"]))
|
|
362
362
|
], 32)) : v("", !0),
|
|
363
|
-
e.value.userOptions.show && j.value && (c(Le) || c(
|
|
363
|
+
e.value.userOptions.show && j.value && (c(Le) || c(ue)) ? (a(), T(wt, {
|
|
364
364
|
ref: "details",
|
|
365
|
-
key: `user_options_${
|
|
365
|
+
key: `user_options_${xe.value}`,
|
|
366
366
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
367
367
|
color: e.value.style.chart.color,
|
|
368
368
|
isPrinting: c(Se),
|
|
@@ -384,9 +384,9 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
384
384
|
onGenerateCsv: De,
|
|
385
385
|
onGenerateImage: c(Ne),
|
|
386
386
|
onToggleTable: Ee,
|
|
387
|
-
onToggleAnnotator:
|
|
387
|
+
onToggleAnnotator: ce,
|
|
388
388
|
style: q({
|
|
389
|
-
visibility: c(Le) ? c(
|
|
389
|
+
visibility: c(Le) ? c(ue) ? "visible" : "hidden" : "visible"
|
|
390
390
|
})
|
|
391
391
|
}, rt({ _: 2 }, [
|
|
392
392
|
l.$slots.optionPdf ? {
|
|
@@ -462,7 +462,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
462
462
|
}, [
|
|
463
463
|
d("stop", {
|
|
464
464
|
offset: "0%",
|
|
465
|
-
"stop-color": c(G)(c(
|
|
465
|
+
"stop-color": c(G)(c(de)(e.value.style.chart.backgroundColor), 0)
|
|
466
466
|
}, null, 8, Ht),
|
|
467
467
|
d("stop", {
|
|
468
468
|
offset: "77%",
|
|
@@ -470,7 +470,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
470
470
|
}, null, 8, Ut),
|
|
471
471
|
d("stop", {
|
|
472
472
|
offset: "100%",
|
|
473
|
-
"stop-color": c(G)(c(
|
|
473
|
+
"stop-color": c(G)(c(de)(e.value.style.chart.backgroundColor), 0)
|
|
474
474
|
}, null, 8, Wt)
|
|
475
475
|
], 8, Mt)
|
|
476
476
|
]),
|
|
@@ -527,7 +527,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
527
527
|
"text-anchor": "end",
|
|
528
528
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
529
529
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
530
|
-
}, b(c(xt)(t.value) ? c(
|
|
530
|
+
}, b(c(xt)(t.value) ? c(ye)(
|
|
531
531
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
532
532
|
t.value,
|
|
533
533
|
c(te)({
|
|
@@ -660,7 +660,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
660
660
|
width: L.value,
|
|
661
661
|
height: 10,
|
|
662
662
|
fill: g.value === t.index ? `url(#hover_${D.value})` : "transparent",
|
|
663
|
-
onClick: (s) =>
|
|
663
|
+
onClick: (s) => re(t, r),
|
|
664
664
|
class: P({ "donut-hover": g.value === t.index && t.subtotal })
|
|
665
665
|
}, null, 10, dl))), 256)),
|
|
666
666
|
(a(!0), u(k, null, _(w.value, (t, r) => (a(), u("rect", {
|
|
@@ -672,7 +672,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
672
672
|
fill: "transparent",
|
|
673
673
|
onMouseenter: (s) => at(t),
|
|
674
674
|
onMouseleave: Fe,
|
|
675
|
-
onClick: (s) =>
|
|
675
|
+
onClick: (s) => re(t, r),
|
|
676
676
|
class: P({ "donut-hover": g.value === t.index && t.subtotal })
|
|
677
677
|
}, null, 42, hl))), 256)),
|
|
678
678
|
S.value ? (a(), u("g", yl, [
|
|
@@ -805,7 +805,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
805
805
|
E.value > 1 && e.value.style.chart.zoom.show ? (a(), T(At, {
|
|
806
806
|
ref_key: "slicerComponent",
|
|
807
807
|
ref: V,
|
|
808
|
-
key: `slicer_${
|
|
808
|
+
key: `slicer_${pe.value}`,
|
|
809
809
|
background: e.value.style.chart.zoom.color,
|
|
810
810
|
borderColor: e.value.style.chart.backgroundColor,
|
|
811
811
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -825,7 +825,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
825
825
|
"onUpdate:end": o[1] || (o[1] = (t) => h.value.end = t),
|
|
826
826
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
827
827
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : E.value,
|
|
828
|
-
onReset:
|
|
828
|
+
onReset: ge
|
|
829
829
|
}, {
|
|
830
830
|
"reset-action": I(({ reset: t }) => [
|
|
831
831
|
F(l.$slots, "reset-action", J(Q({ reset: t })), void 0, !0)
|
|
@@ -833,18 +833,18 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
833
833
|
_: 3
|
|
834
834
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : v("", !0),
|
|
835
835
|
e.value.style.chart.legend.show ? (a(), T(zt, {
|
|
836
|
-
key: `legend_${
|
|
836
|
+
key: `legend_${Ce.value}`,
|
|
837
837
|
legendSet: Oe.value,
|
|
838
838
|
config: ot.value,
|
|
839
|
-
onClickMarker: o[2] || (o[2] = ({ legend: t }) =>
|
|
839
|
+
onClickMarker: o[2] || (o[2] = ({ legend: t }) => ie(t.uid))
|
|
840
840
|
}, {
|
|
841
841
|
item: I(({ legend: t, index: r }) => [
|
|
842
842
|
d("div", {
|
|
843
843
|
"data-cy-legend-item": "",
|
|
844
|
-
onClick: (s) =>
|
|
844
|
+
onClick: (s) => ie(t.uid),
|
|
845
845
|
style: q(`opacity:${C.value.includes(t.uid) ? 0.5 : 1}`)
|
|
846
846
|
}, [
|
|
847
|
-
He(b(t.name) + ": " + b(c(
|
|
847
|
+
He(b(t.name) + ": " + b(c(ye)(
|
|
848
848
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
849
849
|
t.value,
|
|
850
850
|
c(te)({
|
|
@@ -886,7 +886,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
886
886
|
}, {
|
|
887
887
|
content: I(() => [
|
|
888
888
|
(a(), T(Lt, {
|
|
889
|
-
key: `table_${
|
|
889
|
+
key: `table_${_e.value}`,
|
|
890
890
|
colNames: H.value.colNames,
|
|
891
891
|
head: H.value.head,
|
|
892
892
|
body: H.value.body,
|
|
@@ -908,7 +908,7 @@ const Ot = ["id"], Tt = ["xmlns", "viewBox"], Dt = ["id"], Et = ["stop-color"],
|
|
|
908
908
|
}, 8, ["config"])) : v("", !0)
|
|
909
909
|
], 46, Ot));
|
|
910
910
|
}
|
|
911
|
-
}, ql = /* @__PURE__ */ Pt(Tl, [["__scopeId", "data-v-
|
|
911
|
+
}, ql = /* @__PURE__ */ Pt(Tl, [["__scopeId", "data-v-2d3649a3"]]);
|
|
912
912
|
export {
|
|
913
913
|
ql as default
|
|
914
914
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BkXYJDpD.cjs"),ze=require("./Title-B7ruS8yl.cjs"),me=require("./usePrinter-DHv-BwME.cjs"),Ve=require("./DataTable-CwAdpLng.cjs"),Ae=require("./Legend-CR9ydX8N.cjs"),$e=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Fe=require("./Slicer-7oTpm-cZ.cjs"),De=require("./vue-ui-accordion-kr18wKfc.cjs"),fe=require("./useNestedProp-C6IvqE-r.cjs"),Pe=require("./PackageVersion-C1F3QLoY.cjs"),Ie=require("./PenAndPaper-DDheVRNG.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Me=["id"],He=["xmlns","viewBox"],Ue=["id"],qe=["stop-color"],Re=["stop-color"],We=["id"],Xe=["stop-color"],Ge=["stop-color"],Ye=["stop-color"],je={key:0},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Qe={key:0},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x1","x2","y1","y2","stroke","stroke-width"],tt=["x","y","font-size","fill","font-weight"],lt=["text-anchor","font-size","fill","transform"],at=["x1","y1","x2","y2","stroke","stroke-width"],ot={key:1},nt=["cx","cy","r","fill"],ut={key:0},rt={key:0},st=["d","stroke"],ct=["text-anchor","x","y","fill"],it=["cx","cy","r","fill"],dt={key:0},vt=["cx","cy","fill"],ht={key:1},yt=["d","fill","stroke"],mt={key:2},ft=["d","fill","stroke"],gt=["x","y","font-size","fill"],pt=["x","y","width","fill","onClick"],kt=["x","y","width","height","onMouseenter","onClick"],xt={key:3,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},bt=["x","y","width","height","fill"],Bt=["x1","y1","x2","y2","stroke"],Ct=["x1","y2","x2","y1","stroke"],_t=["onKeypress","cx","cy","r"],Et=["d","stroke"],Nt=["cx","cy","r","fill"],wt=["d","fill","stroke"],St={class:"vue-ui-donut-evolution-focus"},Lt=["text-anchor","x","y","fill"],zt=["cx","cy","r","fill"],Vt=["cx","cy","r","fill"],At=["x","y","fill"],$t=["x","y","font-size","fill"],Ft={key:5,class:"vue-data-ui-watermark"},Dt=["onClick"],Pt={key:0},It={key:1},Ot={key:9,ref:"source",dir:"auto"},Tt={key:0},Mt={key:1},Ht={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ge,{expose:pe,emit:W}){const y=ge,{vue_ui_donut_evolution:ke}=u.useConfig(),A=e.computed(()=>!!y.dataset&&y.dataset.length),i=e.ref({start:0,end:Math.max(...y.dataset.map(a=>a.values.length))});function X(){G()}const N=e.ref(null);async function G(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&N.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setEndValue(xe(t.value.style.chart.zoom.endIndex+1)))):(i.value={start:0,end:E.value},K.value+=1)}function xe(a){const o=E.value;return a>o?o:a<0||t.value.style.chart.zoom.startIndex!==null&&a<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:a}e.onMounted(()=>{Y()});function Y(){u.objectIsEmpty(y.dataset)?u.error({componentName:"VueUiDonutEvolution",type:"dataset"}):y.dataset.length&&y.dataset.forEach((a,o)=>{u.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:o})})}),G()}const _=e.ref(u.createUid()),m=e.ref([]),h=e.ref(null),P=e.ref(null),k=e.ref(!1),x=e.ref(null),I=e.ref(null),be=e.ref(null),j=e.ref(0),K=e.ref(0),J=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>le(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:ee,keepUserOptionState:te}=Oe.useUserOptionState({config:t.value});function le(){const a=fe.useNestedProp({userConfig:y.config,defaultConfig:ke});let o={};return a.theme?o={...fe.useNestedProp({userConfig:u.themes.vue_ui_donut_evolution[a.theme]||y.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:o=a,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=y.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,y.config&&u.hasDeepProperty(y.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=y.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}e.watch(()=>y.config,a=>{t.value=le(),O.value=!t.value.showOnChartHover,Y(),J.value+=1,Q.value+=1,Z.value+=1},{deep:!0}),e.watch(()=>y.dataset,a=>{X()},{deep:!0});const{isPrinting:ae,isImaging:oe,generatePdf:ne,generateImage:ue}=me.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution"}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Ce=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show}),r=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),c=e.computed(()=>{const a=t.value.style.chart.layout.height,o=t.value.style.chart.layout.width,l=a-r.value.top-r.value.bottom,s=o-r.value.left-r.value.right;return{absoluteHeight:a,absoluteWidth:o,centerX:r.value.left+s/2,centerY:r.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(y.dataset.forEach((a,o)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:o}),[null,void 0].includes(a.values)&&u.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:o})}),y.dataset.map((a,o)=>({...a,values:u.sanitizeArray(a.values),color:u.convertColorToHex(a.color)||Ce.value[o]||u.palette[o]||u.palette[o%u.palette.length],length:(a.values||[]).length,uid:u.createUid()})))),z=e.computed(()=>C.value.filter(a=>!m.value.includes(a.uid)).map(a=>({...a,values:a.values.filter((o,l)=>l>=i.value.start&&l<=i.value.end)}))),E=e.computed(()=>Math.max(...z.value.map(a=>a.length))),g=e.computed(()=>c.value.width/(i.value.end-i.value.start)),f=e.computed(()=>{const a=[];for(let n=0;n<i.value.end-i.value.start;n+=1){const v=z.value.map(B=>B.values[n]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,b=v.reduce((B,p)=>B+p,0),R=v.map(B=>B/b),L=r.value.left+g.value*n+g.value/2;a.push({index:n,percentages:R,subtotal:d||b<0?null:b,values:v,x:L})}const o=0,l=Math.max(...a.map(n=>n.subtotal)),s=a.length===1?l*2:l;return a.map((n,v)=>{const d=g.value/2*.7,b=d>c.value.width/16?c.value.width/16:d,R=h.value===n.index?c.value.width/16:b,L=a.length>4?d*2:d*2>g.value/2*.7?g.value/2*.7:d*2,B=c.value.absoluteHeight-r.value.bottom-c.value.height*n.subtotal/u.calculateNiceScale(o,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...n,y:B,radius:b,activeRadius:R,hoverRadius:L,donut:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,b,b,1.99999,2,1,360,105.25,b/2),donutHover:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,L,L,1.99999,2,1,360,105.25,L/2),donutFocus:u.makeDonut({series:z.value.map((p,ye)=>({color:p.color,name:p.name,value:p.values[v]??0}))},c.value.centerX,c.value.centerY,c.value.height/3.6,c.value.height/3.6,1.99999,2,1,360,105.25,c.value.height/6)}})});function F(a,o,l){return u.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,a,u.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:a,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:o,index:l})}const T=e.computed(()=>({max:Math.max(...f.value.map(a=>a.subtotal)),min:0})),w=e.computed(()=>{const a=f.value.length===1?T.value.max*2:T.value.max;return u.calculateNiceScale(T.value.min,a,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function _e(a){return a/w.value.max}const Ee=e.computed(()=>w.value.ticks.map(a=>({y:c.value.absoluteHeight-r.value.bottom-c.value.height*_e(a),value:a})));function re(a,o){return isNaN(a.value/u.sumByAttribute(o,"value"))?0:(a.value/u.sumByAttribute(o,"value")*100).toFixed(0)+"%"}function se(){k.value||(h.value=null,P.value=null)}function Ne(a){k.value||(h.value=a.index,P.value=a)}const M=e.ref(null);function H(a,o){a.subtotal&&(P.value=null,h.value=null,k.value=!0,x.value=a,[null,void 0].includes(o)||(M.value=o))}function ce(){x.value=null,k.value=!1,M.value=null}const ie=e.computed(()=>C.value.map((a,o)=>({name:a.name,value:a.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:a.uid,color:a.color})).sort((a,o)=>o.value-a.value).map(a=>({...a,opacity:m.value.includes(a.uid)?.5:1,segregate:()=>U(a.uid),isSegregated:m.value.includes(a.uid)}))),de=e.computed(()=>f.value.map(a=>a.subtotal).reduce((a,o)=>a+o,0)),we=e.computed(()=>({cy:"donut-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":""}));function U(a){if(m.value.includes(a))m.value=m.value.filter(o=>o!==a),W("selectLegend",null);else{if(m.value.length===C.value.length-1)return;m.value.push(a),W("selectLegend",C.value.find(o=>o.uid===a))}x.value&&H(f.value.find((o,l)=>l===M.value))}const S=e.computed(()=>{const a=[""].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>({name:n.name,color:n.color}))).concat(["Σ"]);let o=[];for(let n=0;n<E.value;n+=1){const v=C.value.filter(d=>!m.value.includes(d.uid)).map(d=>d.values[n]??0).reduce((d,b)=>d+b,0);o.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[n]??"-"].concat(C.value.filter(d=>!m.value.includes(d.uid)).map(d=>({value:d.values[n]??0,percentage:d.values[n]?d.values[n]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const 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},s=[t.value.table.columnNames.period].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>n.name)).concat(t.value.table.columnNames.total);return{head:a,body:o,config:l,colNames:s}});function Se(){return C.value}function ve(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=[...S.value.head.map(v=>v.name??v)],l=[...S.value.body.map(v=>v.map(d=>d.value??d))],s=a.concat([o]).concat(l),n=u.createCsvContent(s);u.downloadCsv({csvContent:n,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const V=e.ref(!1);function Le(a){V.value=a,j.value+=1}function he(){$.value.showTable=!$.value.showTable}const D=e.ref(!1);function q(){D.value=!D.value}return pe({getData:Se,generatePdf:ne,generateCsv:ve,generateImage:ue,toggleTable:he,toggleAnnotator:q}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:I,class:e.normalizeClass(`vue-ui-donut-evolution ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:_.value,onMouseenter:o[4]||(o[4]=()=>e.unref(ee)(!0)),onMouseleave:o[5]||(o[5]=()=>e.unref(ee)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:I.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:D.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:be,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,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:se},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&A.value&&(e.unref(te)||e.unref(O))?(e.openBlock(),e.createBlock(me.UserOptions,{ref:"details",key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(oe),uid:_.value,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:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:D.value,onToggleFullscreen:Le,onGeneratePdf:e.unref(ne),onGenerateCsv:ve,onGenerateImage:e.unref(ue),onToggleTable:he,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(te)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${c.value.absoluteWidth} ${c.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,Re)],8,Ue),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Xe),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(u.setOpacity)("#FFFFFF",30)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(e.unref(u.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Ye)],8,We)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("line",{x1:r.value.left,x2:r.value.left,y1:r.value.top,y2:r.value.top+c.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:r.value.left,x2:c.value.absoluteWidth-r.value.right,y1:c.value.absoluteHeight-r.value.bottom,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Je),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+(s+1)*g.value,x2:r.value.left+(s+1)*g.value,y1:r.value.top,y2:c.value.absoluteHeight-r.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ze))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:1,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ee.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:r.value.left,x2:r.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,et)):e.createCommentVNode("",!0),l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(u.canShowValue)(l.value)?e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,tt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===E.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${r.value.left+g.value*s+g.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+c.value.absoluteHeight-r.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,lt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<f.value.length-1&&![l.subtotal,f.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:f.value[s+1].x,y2:f.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,at)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",ot,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",ut,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,n=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:e.unref(u.calcNutArrowPath)(n,{x:n.center.endX,y:n.center.endY},12,12,{x:l.x,y:l.y},!0,20),stroke:n.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,st)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{"data-cy-hover-label":"","text-anchor":e.unref(u.calcMarkerOffsetX)(n,!0,0).anchor,x:e.unref(u.calcMarkerOffsetX)(n,!0,3).x,y:e.unref(u.calcMarkerOffsetY)(n),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(n.name)+": "+e.toDisplayString(re(n,l.donut))+" ("+e.toDisplayString(n.value===null?"-":F(n.value,n,v))+") ",9,ct)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,it)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",dt,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,vt)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,yt))),256))])):(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,ft))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(F(l.subtotal,l,s)),9,gt)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:r.value.left+s*g.value,y:c.value.absoluteHeight-r.value.bottom-10,width:g.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,pt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:r.value.left+s*g.value,y:r.value.top,width:g.value,height:c.value.height,fill:"transparent",onMouseenter:n=>Ne(l),onMouseleave:se,onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,kt))),256)),k.value?(e.openBlock(),e.createElementBlock("g",xt,[e.createElementVNode("rect",{rx:4,x:r.value.left,y:r.value.top,width:c.value.width,height:c.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y1:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y2:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Bt),e.createElementVNode("line",{"data-html2canvas-ignore":"",x1:c.value.absoluteWidth-r.value.right-15,y2:r.value.top+5,x2:c.value.absoluteWidth-r.value.right-4,y1:r.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Ct),e.createElementVNode("circle",{"data-cy-close":"",onClick:ce,onKeypress:e.withKeys(ce,["enter"]),cx:c.value.absoluteWidth-r.value.right-c.value.width/40,cy:r.value.top+c.value.height/30,r:c.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,_t),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-zoom-donut":"",d:e.unref(u.calcNutArrowPath)(l,{x:c.value.centerX,y:c.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Et)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,Nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("text",{"text-anchor":e.unref(u.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(u.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(re(l,x.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":F(l.value,l,s))+") ",9,Lt)]))),256)),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,zt),e.createElementVNode("circle",{cx:r.value.left+c.value.width/2,cy:r.value.top+c.value.height/2,r:c.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,Vt),e.createElementVNode("text",{"text-anchor":"middle",x:r.value.left+c.value.width/2,y:r.value.top+c.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(F(x.value.subtotal,x.value,null)),9,At),t.value.style.chart.layout.grid.xAxis.dataLabels.values[x.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.value.left+6,y:r.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(x.value.index)+Number(i.value.start)]),9,$t)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:c.value},void 0,!0)],14,He)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),A.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),E.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Fe.Slicer,{ref_key:"slicerComponent",ref:N,key:`slicer_${K.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:E.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":o[0]||(o[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":o[1]||(o[1]=l=>i.value.end=l),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:E.value,onReset:X},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${Z.value}`,legendSet:ie.value,config:we.value,onClickMarker:o[2]||(o[2]=({legend:l})=>U(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:n=>U(l.uid),style:e.normalizeStyle(`opacity:${m.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(u.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),m.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",It," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Pt," ("+e.toDisplayString(isNaN(l.value/de.value)?"-":e.unref(u.dataLabel)({v:l.value/de.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Dt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ie.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",Ot,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(De.default,{key:10,hideDetails:"",config:{open:$.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(Ve.DataTable,{key:`table_${Q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[3]||(o[3]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Tt,"-")):(e.openBlock(),e.createElementBlock("b",Mt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Me))}},Ut=Te._export_sfc(Ht,[["__scopeId","data-v-2d3649a3"]]);exports.default=Ut;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),K=require("./useResponsive-BJ7DTGpm.cjs"),ce=require("./Title-B7ruS8yl.cjs"),Q=require("./usePrinter-DHv-BwME.cjs"),de=require("./DataTable-CwAdpLng.cjs"),ve=require("./vue-ui-skeleton-BTN1PKkz.cjs"),he=require("./Legend-CR9ydX8N.cjs"),ye=require("./vue-ui-accordion-kr18wKfc.cjs"),ee=require("./useNestedProp-C6IvqE-r.cjs"),fe=require("./PackageVersion-C1F3QLoY.cjs"),me=require("./PenAndPaper-DDheVRNG.cjs"),be=require("./useUserOptionState-BgepsfED.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],ke=["xmlns","viewBox"],xe={key:0},_e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ce={key:1},we=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ne={key:2},Ee=["x","y","font-size","fill","font-weight"],$e=["x","y","font-size","fill"],Le={key:3},Se=["x","y","font-size","fill","font-weight"],Ve=["id"],ze=["stop-color"],Ae=["stop-color"],Pe=["stop-color"],Te=["id"],Xe=["stop-color"],De=["stop-color"],Oe=["stop-color"],Fe=["id"],Me=["stop-color"],Ge=["stop-color"],Ie=["id"],qe=["stop-color"],He=["stop-color"],Ue={key:0},Re=["d","fill"],We={key:1},je=["x","y","height","width","fill"],Ye=["cx","cy","r","fill","stroke","stroke-width"],Ze=["cx","cy","r","fill","stroke","stroke-width"],Je={key:2},Ke=["x","y","fill","font-size"],Qe={key:3},et=["x","y","fill","font-size"],tt={key:5,class:"vue-data-ui-watermark"},lt=["xmlns","height","width"],at=["fill"],ot=["innerHTML"],rt={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(te,{expose:le,emit:nt}){const y=te,{vue_ui_dumbbell:ae}=s.useConfig(),b=e.computed({get(){return!!y.dataset&&y.dataset.length},set(a){return a}}),d=e.ref(s.createUid()),V=e.ref(0),p=e.ref(null),z=e.ref(null),A=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),D=e.ref(0),O=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=be.useUserOptionState({config:t.value});function G(){const a=ee.useNestedProp({userConfig:y.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||y.config,defaultConfig:a})}:a}e.watch(()=>y.config,a=>{t.value=G(),E.value=!t.value.showOnChartHover,I(),X.value+=1,D.value+=1,O.value+=1,c.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width},{deep:!0}),e.watch(()=>y.dataset,a=>{j()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{I()});function I(){if(s.objectIsEmpty(y.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):y.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=K.throttle(()=>{const{width:n,height:l}=K.useResponsive({chart:p.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:P.value,noTitle:T.value});g.value=n,c.value=l/y.dataset.length,v.value=C()});x.value=new ResizeObserver(a),x.value.observe(p.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:q,isImaging:H,generatePdf:U,generateImage:R}=Q.usePrinter({elementId:`dumbbell_${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),oe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),_=e.ref({showTable:t.value.table.show}),f=e.computed(()=>y.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),$=e.computed(()=>({max:Math.max(...f.value.flatMap(a=>[a.start,a.end])),min:Math.min(...f.value.flatMap(a=>[a.start,a.end]))})),i=e.computed(()=>s.calculateNiceScale($.value.min<0?$.value.min:0,$.value.max,t.value.style.chart.grid.scaleSteps)),c=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),r=e.computed(()=>{const a=c.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*y.dataset.length,o=i.value.ticks.length*(g.value/i.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*y.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:o}});function C(){return f.value.map((a,n)=>{const l=r.value.left+(a.start+Math.abs(i.value.min))/(i.value.max+Math.abs(i.value.min))*r.value.widthPlotReference,o=r.value.left+(a.end+Math.abs(i.value.min))/(i.value.max+Math.abs(i.value.min))*r.value.widthPlotReference,u=l+(o-l)/2;return{...a,startX:l,endX:o,centerX:u,y:r.value.top+n*c.value+c.value/2,endVal:a.start}})}const v=e.ref([]),W=e.ref(null),re=e.computed(()=>f.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{j()});function j(){v.value=C();let a=v.value.map(l=>l.start).reduce((l,o)=>l+o,0);function n(){const l=f.value.map(o=>o.end-o.start);a>=re.value?(cancelAnimationFrame(W.value),v.value=C()):(v.value=v.value.map((o,u)=>{o.endVal+=l[u]*(t.value.animationSpeed/100);const h=r.value.left+(o.start+Math.abs(i.value.min))/(i.value.max+Math.abs(i.value.min))*r.value.widthPlotReference,N=r.value.left+(o.endVal+Math.abs(i.value.min))/(i.value.max+Math.abs(i.value.min))*r.value.widthPlotReference,S=h+(N-h)/2;return{...o,startX:h,endX:N,centerX:S,y:r.value.top+u*c.value+c.value/2,endVal:o.endVal}}),a=v.value.map(o=>o.endVal).reduce((o,u)=>o+u,0),W.value=requestAnimationFrame(n))}t.value.useAnimation?n():v.value=C()}const Y=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor}]),se=e.computed(()=>({cy:"donut-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,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),m=e.computed(()=>{const a=v.value.map(l=>({name:l.name})),n=v.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=m.value.head.map((u,h)=>{const N=s.dataLabel({p:t.value.style.chart.labels.prefix,v:m.value.body[h].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),S=s.dataLabel({p:t.value.style.chart.labels.prefix,v:m.value.body[h].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),ie=s.dataLabel({v:100*(m.value.body[h].end/m.value.body[h].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:u.name},N,S,ie]}),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{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function Z(){e.nextTick(()=>{const a=m.value.head.map((o,u)=>[[o.name],[m.value.body[u].start],[m.value.body[u].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const k=e.ref(!1);function ne(a){k.value=a,V.value+=1}function ue(){return v.value}function J(){_.value.showTable=!_.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return le({getData:ue,generatePdf:U,generateCsv:Z,generateImage:R,toggleTable:J,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:p,class:e.normalizeClass(`vue-ui-dumbbell ${k.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${d.value}`,onMouseenter:n[1]||(n[1]=()=>e.unref(F)(!0)),onMouseleave:n[2]||(n[2]=()=>e.unref(F)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:p.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),oe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:T,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:24px"},[(e.openBlock(),e.createBlock(ce._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(M)||e.unref(E))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(H),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(U),onGenerateCsv:Z,onGenerateImage:e.unref(R),onToggleTable:J,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.absoluteWidth<=0?10:r.value.absoluteWidth} ${r.value.absoluteHeight<=0?10:r.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+o*r.value.width/(i.value.ticks.length-1),x2:r.value.left+o*r.value.width/(i.value.ticks.length-1),y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,_e))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left,x2:r.value.right,y1:r.value.top+o*c.value,y2:r.value.top+o*c.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,we))),256)),e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,Be)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*c.value+(t.value.style.chart.labels.yAxisLabels.showProgression?c.value/3:c.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,Ee))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*c.value+c.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,$e))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left+o*(r.value.width/(i.value.ticks.length-1)),y:r.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:o})),9,Se))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,ze),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,Ae),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Pe)],8,Ve),e.createElementVNode("radialGradient",{id:`end_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Xe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Oe)],8,Te)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ge)],8,Fe),e.createElementVNode("linearGradient",{id:`grad_negative_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,He)],8,Ie)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",Ue,[e.createElementVNode("path",{d:`M
|
|
2
|
+
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
|
+
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|
|
5
|
+
L ${l.endX},${l.y-t.value.style.chart.plots.radius/2}
|
|
6
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
7
|
+
${l.startX},${l.y-t.value.style.chart.plots.radius/2}
|
|
8
|
+
Z
|
|
9
|
+
`,fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,Re)])):(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,je)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Ye),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Ze),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.startX,y:r.value.top+(h+1)*c.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Ke))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.endX,y:r.value.top+h*c.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:u,seriesIndex:h})),9,et))),256))])):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,ke)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",tt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show&&b.value?(e.openBlock(),e.createBlock(he.Legend,{key:`legend_${O.value}`,legendSet:Y.value,config:se.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,at)],8,lt)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:Y.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(ye.default,{key:8,hideDetails:"",config:{open:_.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(de.DataTable,{key:`table_${D.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>_.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ot)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ge))}},st=pe._export_sfc(rt,[["__scopeId","data-v-65f8df5c"]]);exports.default=st;
|