vue-data-ui 2.3.78 → 2.3.80
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-BCYtOwX7.js → Arrow-BI2HWbkl.js} +1 -1
- package/dist/{Arrow-DWkvIpW8.cjs → Arrow-BwOfAkTh.cjs} +1 -1
- package/dist/{BaseIcon-BIQXWVMS.js → BaseIcon-BhdIp3HQ.js} +1 -1
- package/dist/{BaseIcon-Bcpzfk34.cjs → BaseIcon-DU-oJKBy.cjs} +1 -1
- package/dist/{DataTable-y1lX5jVj.js → DataTable-CThhaAYT.js} +2 -2
- package/dist/{DataTable-C5TOiC61.cjs → DataTable-ysqfWT9v.cjs} +1 -1
- package/dist/{Legend-CGGD8NhP.cjs → Legend-DtnPX_Dc.cjs} +1 -1
- package/dist/{Legend-BLXcdrri.js → Legend-DxRA5XXC.js} +1 -1
- package/dist/{Shape-qJYTY2BC.cjs → Shape-DJdHakOl.cjs} +1 -1
- package/dist/{Shape-CsoTtJx6.js → Shape-EntBaNbX.js} +1 -1
- package/dist/{Slicer-DzJZ4axa.js → Slicer-BLFTdmNs.js} +2 -2
- package/dist/{Slicer-CZJXKSeE.cjs → Slicer-xJl1pkRn.cjs} +1 -1
- package/dist/{Title-Bx-VO3md.js → Title-Bgh58KWs.js} +1 -1
- package/dist/{Title-BSpa3uge.cjs → Title-DOzi72Pu.cjs} +1 -1
- package/dist/{Tooltip-rmhZhv96.cjs → Tooltip-DWx3KcqE.cjs} +1 -1
- package/dist/{Tooltip-Dk-cimhQ.js → Tooltip-HqwVgkYT.js} +1 -1
- package/dist/{index-CzjC8LfY.cjs → index-BofUHMEw.cjs} +1 -1
- package/dist/{index-DP8dqFNd.js → index-C_xZ1jJj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B-oZxD4x.js → useNestedProp-9QKvGow8.js} +1 -1
- package/dist/{useNestedProp-CY7DebVH.cjs → useNestedProp-DGK0LGfN.cjs} +1 -1
- package/dist/{usePrinter-DiuHo4LO.js → usePrinter-BJ7GxAOO.js} +1 -1
- package/dist/{usePrinter-DiLM6jav.cjs → usePrinter-_JYb_33H.cjs} +1 -1
- package/dist/{vue-data-ui-Ce5IFSYA.cjs → vue-data-ui-BDRU4x1z.cjs} +1 -1
- package/dist/{vue-data-ui-Ct7n5wkM.js → vue-data-ui-MIo8xmC1.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-B_i2EoFu.cjs → vue-ui-3d-bar-Clct1WMZ.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-O3fB5J7V.js → vue-ui-3d-bar-Dul4M5zs.js} +7 -7
- package/dist/{vue-ui-accordion-DpI7fTKZ.cjs → vue-ui-accordion-XtygMpX7.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dl8zkZPk.js → vue-ui-accordion-issoIPFd.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BeiREI6d.js → vue-ui-age-pyramid-DnfnIupT.js} +8 -8
- package/dist/{vue-ui-age-pyramid-BsAfxkN4.cjs → vue-ui-age-pyramid-EsCLRd6s.cjs} +1 -1
- package/dist/{vue-ui-annotator-0yje27Qq.js → vue-ui-annotator-CmrenuBi.js} +1 -1
- package/dist/{vue-ui-annotator-DpN-6IwB.cjs → vue-ui-annotator-zFbcfeEs.cjs} +1 -1
- package/dist/{vue-ui-candlestick-lv78wnpS.cjs → vue-ui-candlestick-Bdo2RhhM.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D9UteVvx.js → vue-ui-candlestick-DlwYwMdG.js} +9 -9
- package/dist/{vue-ui-carousel-table-Br6FwMKM.cjs → vue-ui-carousel-table-IN0an_Jc.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-jxZ3h5pq.js → vue-ui-carousel-table-mo9C1GJ9.js} +4 -4
- package/dist/{vue-ui-chestnut-DbYHeNaL.cjs → vue-ui-chestnut-C9jiVBGB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DXuHRJy4.js → vue-ui-chestnut-DUeStDzz.js} +6 -6
- package/dist/{vue-ui-cursor-iss6SJ1Y.cjs → vue-ui-cursor-BoetT349.cjs} +1 -1
- package/dist/{vue-ui-cursor-BzPbdVRJ.js → vue-ui-cursor-x_Ai6P6S.js} +2 -2
- package/dist/{vue-ui-dashboard-CGjWuFrI.js → vue-ui-dashboard-B8IRsFc3.js} +2 -2
- package/dist/{vue-ui-dashboard-DKT82yQ4.cjs → vue-ui-dashboard-DUH23G5u.cjs} +1 -1
- package/dist/{vue-ui-digits-BCguvLxB.js → vue-ui-digits-BO5Bxyib.js} +2 -2
- package/dist/{vue-ui-digits-BfwDCfYp.cjs → vue-ui-digits-ByNeTvE4.cjs} +1 -1
- package/dist/vue-ui-donut-CDizH2x3.cjs +1 -0
- package/dist/{vue-ui-donut-DJTeGLVG.js → vue-ui-donut-DC6mZWdM.js} +318 -318
- package/dist/{vue-ui-donut-evolution-BaLDZNDG.js → vue-ui-donut-evolution-B2U3g0Yw.js} +9 -9
- package/dist/{vue-ui-donut-evolution-Bil1AIhX.cjs → vue-ui-donut-evolution-B7G4UB_e.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BqtDdV5w.js → vue-ui-dumbbell-81Azsrmw.js} +8 -8
- package/dist/{vue-ui-dumbbell-DiL3xhKY.cjs → vue-ui-dumbbell-DD7RtYjl.cjs} +1 -1
- package/dist/{vue-ui-flow-BVTbbsCK.cjs → vue-ui-flow-BbJmSWr4.cjs} +1 -1
- package/dist/{vue-ui-flow-zfTGon4s.js → vue-ui-flow-CTobijfD.js} +7 -7
- package/dist/{vue-ui-galaxy-5iRb5sQ-.js → vue-ui-galaxy-B9U-hTWd.js} +9 -9
- package/dist/{vue-ui-galaxy-GSO_6KIe.cjs → vue-ui-galaxy-BxkH3rZs.cjs} +1 -1
- package/dist/{vue-ui-gauge-DljHYdCS.js → vue-ui-gauge-BvS6Ep8K.js} +5 -5
- package/dist/{vue-ui-gauge-Bz7oLa51.cjs → vue-ui-gauge-DezT9Iw3.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B-fxFOZy.js → vue-ui-gizmo-CCSV95Cw.js} +2 -2
- package/dist/{vue-ui-gizmo-KL0OJY2K.cjs → vue-ui-gizmo-CdGlyolL.cjs} +1 -1
- package/dist/{vue-ui-heatmap-ketn_NV3.js → vue-ui-heatmap-DQntMs3y.js} +8 -8
- package/dist/{vue-ui-heatmap-thMJPCfo.cjs → vue-ui-heatmap-Decb4BRV.cjs} +1 -1
- package/dist/{vue-ui-kpi-e1QWa8D4.cjs → vue-ui-kpi-MZSJlc3i.cjs} +1 -1
- package/dist/{vue-ui-kpi-Bxu8uZ21.js → vue-ui-kpi-yDsCX1qh.js} +3 -3
- package/dist/{vue-ui-mini-loader-BZ_2aV8O.js → vue-ui-mini-loader-DluKyWjA.js} +2 -2
- package/dist/{vue-ui-mini-loader-paRZQU8H.cjs → vue-ui-mini-loader-Dz3LxxFJ.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bpp5unvI.js → vue-ui-molecule-BG1BbGts.js} +9 -9
- package/dist/{vue-ui-molecule-VOBL4Osc.cjs → vue-ui-molecule-rmhSL2tT.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BY8XP_Q5.js → vue-ui-mood-radar-EO6jRkGF.js} +9 -9
- package/dist/{vue-ui-mood-radar-CwtMLwP8.cjs → vue-ui-mood-radar-owAd1Twe.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-5uuLi3If.js → vue-ui-nested-donuts-HDfFuFhB.js} +302 -308
- package/dist/vue-ui-nested-donuts-u-4RFRIE.cjs +17 -0
- package/dist/{vue-ui-onion-CMSPSSSG.cjs → vue-ui-onion-BUOOD3WG.cjs} +1 -1
- package/dist/{vue-ui-onion-zDy4ecPl.js → vue-ui-onion-DqMY1iPE.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-1PFxiI__.cjs → vue-ui-parallel-coordinate-plot-2JGpf8SJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BeEkL7Dq.js → vue-ui-parallel-coordinate-plot-CUU74I_R.js} +10 -10
- package/dist/{vue-ui-quadrant-Cx5z_c90.cjs → vue-ui-quadrant-BXUtKBlK.cjs} +1 -1
- package/dist/{vue-ui-quadrant-MCIlbbsW.js → vue-ui-quadrant-BrbrrHLN.js} +10 -10
- package/dist/{vue-ui-quick-chart-r6Qa7qg_.js → vue-ui-quick-chart-BeJMzQZr.js} +7 -7
- package/dist/{vue-ui-quick-chart-Xn-47NQG.cjs → vue-ui-quick-chart-CNn9Wt0K.cjs} +1 -1
- package/dist/{vue-ui-radar-DFV5cFkl.js → vue-ui-radar-BMbWx0XC.js} +10 -10
- package/dist/{vue-ui-radar-ANQ1wXFc.cjs → vue-ui-radar-yFYbYYI9.cjs} +1 -1
- package/dist/{vue-ui-rating-BVzCbQbv.cjs → vue-ui-rating-Ckh6xyv1.cjs} +1 -1
- package/dist/{vue-ui-rating-DYu1EuJF.js → vue-ui-rating-D19QGpzZ.js} +2 -2
- package/dist/{vue-ui-relation-circle-BAcmDQB_.js → vue-ui-relation-circle-DqdXa6V6.js} +5 -5
- package/dist/{vue-ui-relation-circle-DEM6C6Or.cjs → vue-ui-relation-circle-YH6EpWSC.cjs} +1 -1
- package/dist/{vue-ui-rings-BiLlYpgu.js → vue-ui-rings-CDqf78PA.js} +9 -9
- package/dist/{vue-ui-rings-Ce4G4hat.cjs → vue-ui-rings-Dbi3uWQh.cjs} +1 -1
- package/dist/{vue-ui-scatter-OtlcTCUF.cjs → vue-ui-scatter-Ch3iYYoX.cjs} +1 -1
- package/dist/{vue-ui-scatter-D2ndYfkQ.js → vue-ui-scatter-D3IFY9II.js} +10 -10
- package/dist/{vue-ui-screenshot-DTQx4VsM.cjs → vue-ui-screenshot-DBmmftjw.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CKCNPn-e.js → vue-ui-screenshot-Xtz1BC-w.js} +1 -1
- package/dist/{vue-ui-skeleton-CwqzJlQf.cjs → vue-ui-skeleton-Bx_kbjKr.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B30ZhUV7.js → vue-ui-skeleton-C3UWXP3Q.js} +2 -2
- package/dist/{vue-ui-smiley-L6o24M6h.cjs → vue-ui-smiley-BCorPn2E.cjs} +1 -1
- package/dist/{vue-ui-smiley-DzLvZR1k.js → vue-ui-smiley-FhcqViE3.js} +2 -2
- package/dist/{vue-ui-spark-trend-BoWeviHk.cjs → vue-ui-spark-trend-C1BmsVRe.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BKsmENbH.js → vue-ui-spark-trend-RJUm-CJC.js} +4 -4
- package/dist/{vue-ui-sparkbar-DNzZkp8z.js → vue-ui-sparkbar-C6sZ4mYK.js} +3 -3
- package/dist/{vue-ui-sparkbar-DY3iOLo4.cjs → vue-ui-sparkbar-CtQSQySy.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B2DngjVP.js → vue-ui-sparkgauge-C1pOZo8V.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BlZ-lJm4.cjs → vue-ui-sparkgauge-CoyqAUDp.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BUBewgdH.cjs → vue-ui-sparkhistogram-DvBJHfyk.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Co9N3BeQ.js → vue-ui-sparkhistogram-Mh93EuLF.js} +4 -4
- package/dist/{vue-ui-sparkline-BhL0mxXD.cjs → vue-ui-sparkline-CXIAmE5m.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Dpqo4aRJ.js → vue-ui-sparkline-DiAIsoI3.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-_JwfRxF8.js → vue-ui-sparkstackbar-Bb8ZtMfn.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DtNbx3EV.cjs → vue-ui-sparkstackbar-BePzQn-H.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BtN7ZM7-.js → vue-ui-stackbar-B7KyGHZZ.js} +10 -10
- package/dist/{vue-ui-stackbar-C7AWHP6m.cjs → vue-ui-stackbar-BiNZ2pBZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-6L9a7BSw.js → vue-ui-strip-plot-8d_juyi7.js} +9 -9
- package/dist/{vue-ui-strip-plot-cgOFTunJ.cjs → vue-ui-strip-plot-CY5rDwjh.cjs} +1 -1
- package/dist/{vue-ui-table-BFYHRMCS.js → vue-ui-table-CSm91gHM.js} +1 -1
- package/dist/{vue-ui-table-4Pf9tmFg.cjs → vue-ui-table-CoGh4xvF.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap--kPCu8mA.js → vue-ui-table-heatmap-B30TipjK.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CltKb2V9.cjs → vue-ui-table-heatmap-CwDproVr.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B5OjJud8.cjs → vue-ui-table-sparkline-B8lCOsfc.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CsWx1Ksy.js → vue-ui-table-sparkline-BcFIKA8V.js} +5 -5
- package/dist/{vue-ui-thermometer-nTD7sp8r.js → vue-ui-thermometer-CPqFKYwL.js} +5 -5
- package/dist/{vue-ui-thermometer-62_4QovL.cjs → vue-ui-thermometer-D6rDq4hj.cjs} +1 -1
- package/dist/{vue-ui-timer-BU0s7Vt9.cjs → vue-ui-timer-C70sw9Rc.cjs} +1 -1
- package/dist/{vue-ui-timer-DMFHjnzA.js → vue-ui-timer-DdQB8bF5.js} +4 -4
- package/dist/{vue-ui-tiremarks-1X9B1VKM.js → vue-ui-tiremarks-DDCOUKU9.js} +5 -5
- package/dist/{vue-ui-tiremarks-mwBeBMJY.cjs → vue-ui-tiremarks-o-KdCzZV.cjs} +1 -1
- package/dist/{vue-ui-treemap-CVTwqPFA.js → vue-ui-treemap-BOCZ8x4F.js} +9 -9
- package/dist/{vue-ui-treemap-DQmBbm7e.cjs → vue-ui-treemap-C3XRZk0P.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BXiy8KRC.cjs → vue-ui-vertical-bar-C2ZIoY0I.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Br6Z0A3F.js → vue-ui-vertical-bar-CAlQekf-.js} +9 -9
- package/dist/{vue-ui-waffle-DEXMh07q.js → vue-ui-waffle-CasLSUzY.js} +9 -9
- package/dist/{vue-ui-waffle-CLCsHw9j.cjs → vue-ui-waffle-D1eYO-NM.cjs} +1 -1
- package/dist/{vue-ui-wheel-DSFKKX65.cjs → vue-ui-wheel-C4ODblPX.cjs} +1 -1
- package/dist/{vue-ui-wheel-CwjuVi6U.js → vue-ui-wheel-CHn24pYD.js} +5 -5
- package/dist/{vue-ui-word-cloud-DZS4hCeR.cjs → vue-ui-word-cloud-XCS_A5_a.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BKeD3fHb.js → vue-ui-word-cloud-uGJLXPYv.js} +7 -7
- package/dist/{vue-ui-xy-B5aCogSL.cjs → vue-ui-xy-CH9wvh8w.cjs} +1 -1
- package/dist/{vue-ui-xy-DA3qqL8u.js → vue-ui-xy-KnfMOUv4.js} +12 -12
- package/dist/{vue-ui-xy-canvas-B7DH4RK5.js → vue-ui-xy-canvas-DVjSzeFt.js} +10 -10
- package/dist/{vue-ui-xy-canvas-heCdqh5X.cjs → vue-ui-xy-canvas-Yy7FaFLS.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-uVPdO4UH.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CLnVnAiD.cjs +0 -17
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as b, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as
|
|
2
|
-
import { u as Qe, o as Ze, e as Oe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as
|
|
1
|
+
import { computed as b, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as F, renderSlot as g, createBlock as V, createCommentVNode as d, unref as o, createSlots as We, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as y, Fragment as M, renderList as X, toDisplayString as C, createTextVNode as Pe, createVNode as Xe, nextTick as qe, pushScopeId as Je, popScopeId as Ke } from "vue";
|
|
2
|
+
import { u as Qe, o as Ze, e as Oe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as x, X as ol, s as q, j as ul, F as sl, i as T, k as f, n as J, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-C_xZ1jJj.js";
|
|
3
3
|
import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as bl } from "./DataTable-
|
|
7
|
-
import { _ as gl } from "./Tooltip-
|
|
8
|
-
import { L as ml } from "./Legend-
|
|
9
|
-
import wl from "./vue-ui-skeleton-
|
|
10
|
-
import kl from "./vue-ui-accordion-
|
|
11
|
-
import { u as De } from "./useNestedProp-
|
|
4
|
+
import { _ as fl } from "./Title-Bgh58KWs.js";
|
|
5
|
+
import { u as yl, U as pl } from "./usePrinter-BJ7GxAOO.js";
|
|
6
|
+
import { D as bl } from "./DataTable-CThhaAYT.js";
|
|
7
|
+
import { _ as gl } from "./Tooltip-HqwVgkYT.js";
|
|
8
|
+
import { L as ml } from "./Legend-DxRA5XXC.js";
|
|
9
|
+
import wl from "./vue-ui-skeleton-C3UWXP3Q.js";
|
|
10
|
+
import kl from "./vue-ui-accordion-issoIPFd.js";
|
|
11
|
+
import { u as De } from "./useNestedProp-9QKvGow8.js";
|
|
12
12
|
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Cl = (G) => (Je("data-v-
|
|
13
|
+
const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Fl = ["offset", "stop-color"], Tl = ["offset", "stop-color"], zl = ["stop-color"], Nl = ["id"], Pl = ["id"], Ol = /* @__PURE__ */ Cl(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
14
14
|
type: "saturate",
|
|
15
15
|
values: "0"
|
|
16
|
-
}, null, -1)), Al = ["id"], Dl = ["flood-color"], Il = ["d", "stroke", "filter"], Bl = ["cx", "cy", "r", "fill", "filter"], Vl = ["stroke", "d"], Ml = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = ["cx", "cy", "r", "fill", "stroke"], Ul = ["cx", "cy", "r", "fill"],
|
|
16
|
+
}, null, -1)), Al = ["id"], Dl = ["flood-color"], Il = ["d", "stroke", "filter"], Bl = ["cx", "cy", "r", "fill", "filter"], Vl = ["stroke", "d"], Ml = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = ["cx", "cy", "r", "fill", "stroke"], Ul = ["cx", "cy", "r", "fill"], jl = ["d", "fill", "onMouseenter", "onClick"], El = ["x", "y", "fill", "font-size"], Rl = ["x", "y", "fill", "font-size"], Yl = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], Wl = ["filter"], Xl = { key: 0 }, ql = ["x", "y"], Jl = { key: 1 }, Kl = ["cx", "cy", "fill", "filter", "onClick"], Ql = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Zl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], et = { key: 2 }, lt = ["x", "y", "width"], tt = {
|
|
17
17
|
key: 3,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, at = ["onClick"], ot = {
|
|
@@ -37,70 +37,70 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
39
|
setup(G, { expose: Ie, emit: se }) {
|
|
40
|
-
const
|
|
40
|
+
const S = G, { vue_ui_donut: Be } = Qe(), U = b({
|
|
41
41
|
get() {
|
|
42
|
-
return
|
|
42
|
+
return !!S.dataset && S.dataset.length;
|
|
43
43
|
},
|
|
44
|
-
set(
|
|
45
|
-
return
|
|
44
|
+
set(t) {
|
|
45
|
+
return t;
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), j = v(null), re = v(null), ne = v(null), K = v(null), ie = v(0), ve = v(0), ce = v(0);
|
|
48
48
|
Ye(() => {
|
|
49
49
|
de();
|
|
50
50
|
}), He(() => {
|
|
51
|
-
|
|
51
|
+
K.value && K.value.disconnect();
|
|
52
52
|
});
|
|
53
53
|
function de() {
|
|
54
|
-
if (Ze(
|
|
54
|
+
if (Ze(S.dataset) ? Oe({
|
|
55
55
|
componentName: "VueUiDonut",
|
|
56
56
|
type: "dataset"
|
|
57
|
-
}) :
|
|
57
|
+
}) : S.dataset.forEach((t, a) => {
|
|
58
58
|
el({
|
|
59
|
-
datasetObject:
|
|
59
|
+
datasetObject: t,
|
|
60
60
|
requiredAttributes: ["name", "values"]
|
|
61
|
-
}).forEach((
|
|
61
|
+
}).forEach((l) => {
|
|
62
62
|
U.value = !1, Oe({
|
|
63
63
|
componentName: "VueUiDonut",
|
|
64
64
|
type: "datasetSerieAttribute",
|
|
65
|
-
property:
|
|
65
|
+
property: l,
|
|
66
66
|
index: a
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
}), e.value.responsive) {
|
|
70
|
-
const
|
|
71
|
-
const { width: a, height:
|
|
72
|
-
chart:
|
|
70
|
+
const t = dl(() => {
|
|
71
|
+
const { width: a, height: l } = hl({
|
|
72
|
+
chart: j.value,
|
|
73
73
|
title: e.value.style.chart.title.text ? re.value : null,
|
|
74
74
|
legend: e.value.style.chart.legend.show ? ne.value : null
|
|
75
75
|
});
|
|
76
|
-
i.value.width = a, i.value.height =
|
|
76
|
+
i.value.width = a, i.value.height = l;
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
K.value = new ResizeObserver(t), K.value.observe(j.value.parentNode);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
function
|
|
83
|
-
const
|
|
84
|
-
userConfig:
|
|
81
|
+
const $ = v(ll()), Ve = v(null), ee = v(!1), le = v(""), z = v(null), he = v(0);
|
|
82
|
+
function fe() {
|
|
83
|
+
const t = De({
|
|
84
|
+
userConfig: S.config,
|
|
85
85
|
defaultConfig: Be
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return t.theme ? {
|
|
88
88
|
...De({
|
|
89
|
-
userConfig: rl.vue_ui_donut[
|
|
90
|
-
defaultConfig:
|
|
89
|
+
userConfig: rl.vue_ui_donut[t.theme] || S.config,
|
|
90
|
+
defaultConfig: t
|
|
91
91
|
}),
|
|
92
|
-
customPalette: nl[
|
|
93
|
-
} :
|
|
92
|
+
customPalette: nl[t.theme] || D
|
|
93
|
+
} : t;
|
|
94
94
|
}
|
|
95
95
|
const e = b({
|
|
96
|
-
get: () =>
|
|
97
|
-
set: (
|
|
96
|
+
get: () => fe(),
|
|
97
|
+
set: (t) => t
|
|
98
98
|
});
|
|
99
|
-
Ne(() =>
|
|
100
|
-
e.value =
|
|
99
|
+
Ne(() => S.config, (t) => {
|
|
100
|
+
e.value = fe(), de(), ie.value += 1, ve.value += 1, ce.value += 1;
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
const { isPrinting:
|
|
103
|
-
elementId: `donut__${
|
|
102
|
+
const { isPrinting: ye, isImaging: pe, generatePdf: be, generateImage: ge } = yl({
|
|
103
|
+
elementId: `donut__${$.value}`,
|
|
104
104
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
105
105
|
}), me = b(() => tl(e.value.customPalette)), p = v({
|
|
106
106
|
dataLabels: {
|
|
@@ -111,47 +111,47 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
111
111
|
}), i = v({
|
|
112
112
|
height: 360,
|
|
113
113
|
width: 512
|
|
114
|
-
}),
|
|
115
|
-
const
|
|
116
|
-
return
|
|
117
|
-
}), P = b(() =>
|
|
118
|
-
name:
|
|
119
|
-
color: Ae(
|
|
120
|
-
value:
|
|
121
|
-
absoluteValues:
|
|
122
|
-
comment:
|
|
114
|
+
}), E = b(() => {
|
|
115
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * t, l = a > _.value ? _.value : a;
|
|
116
|
+
return l < 24 ? 24 : l;
|
|
117
|
+
}), P = b(() => S.dataset.map((t, a) => ({
|
|
118
|
+
name: t.name,
|
|
119
|
+
color: Ae(t.color) || me.value[a] || D[a] || D[a % D.length],
|
|
120
|
+
value: t.values.reduce((l, u) => l + u, 0),
|
|
121
|
+
absoluteValues: t.values,
|
|
122
|
+
comment: t.comment || ""
|
|
123
123
|
}))), k = v(P.value);
|
|
124
|
-
Ne(() => P.value, (
|
|
124
|
+
Ne(() => P.value, (t) => k.value = t);
|
|
125
125
|
function Me() {
|
|
126
|
-
return P.value.map((
|
|
127
|
-
name:
|
|
128
|
-
color:
|
|
129
|
-
value:
|
|
126
|
+
return P.value.map((t) => ({
|
|
127
|
+
name: t.name,
|
|
128
|
+
color: t.color,
|
|
129
|
+
value: t.value
|
|
130
130
|
}));
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
function _e(
|
|
134
|
-
const a = P.value.find((r, h) => h ===
|
|
135
|
-
let u = k.value.find((r, h) => h ===
|
|
136
|
-
if (
|
|
132
|
+
const L = v([]), we = v(null), ke = v(null), O = v(!1);
|
|
133
|
+
function _e(t) {
|
|
134
|
+
const a = P.value.find((r, h) => h === t);
|
|
135
|
+
let u = k.value.find((r, h) => h === t).value;
|
|
136
|
+
if (L.value.includes(t)) {
|
|
137
137
|
let h = function() {
|
|
138
|
-
u > r ? (cancelAnimationFrame(we.value), k.value = k.value.map((c, oe) =>
|
|
138
|
+
u > r ? (cancelAnimationFrame(we.value), k.value = k.value.map((c, oe) => t === oe ? {
|
|
139
139
|
...c,
|
|
140
140
|
value: r
|
|
141
|
-
} : c), O.value = !1) : (O.value = !0, u += r * 0.025, k.value = k.value.map((c, oe) =>
|
|
141
|
+
} : c), O.value = !1) : (O.value = !0, u += r * 0.025, k.value = k.value.map((c, oe) => t === oe ? {
|
|
142
142
|
...c,
|
|
143
143
|
value: u
|
|
144
144
|
} : c), we.value = requestAnimationFrame(h));
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
L.value = L.value.filter((c) => c !== t);
|
|
147
147
|
const r = a.value;
|
|
148
148
|
h();
|
|
149
|
-
} else if (
|
|
149
|
+
} else if (L.value.length < P.value.length - 1) {
|
|
150
150
|
let r = function() {
|
|
151
|
-
u < 0.1 ? (cancelAnimationFrame(ke.value),
|
|
151
|
+
u < 0.1 ? (cancelAnimationFrame(ke.value), L.value.push(t), k.value = k.value.map((h, c) => t === c ? {
|
|
152
152
|
...h,
|
|
153
153
|
value: 0
|
|
154
|
-
} : h), O.value = !1) : (O.value = !0, u /= 1.1, k.value = k.value.map((h, c) =>
|
|
154
|
+
} : h), O.value = !1) : (O.value = !0, u /= 1.1, k.value = k.value.map((h, c) => t === c ? {
|
|
155
155
|
...h,
|
|
156
156
|
value: u
|
|
157
157
|
} : h), ke.value = requestAnimationFrame(r));
|
|
@@ -164,26 +164,26 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
164
164
|
value: r.value
|
|
165
165
|
})));
|
|
166
166
|
}
|
|
167
|
-
const I = b(() => (k.value.forEach((
|
|
168
|
-
if ([null, void 0].includes(
|
|
167
|
+
const I = b(() => (k.value.forEach((t, a) => {
|
|
168
|
+
if ([null, void 0].includes(t.values))
|
|
169
169
|
return {
|
|
170
|
-
...
|
|
170
|
+
...t,
|
|
171
171
|
values: []
|
|
172
172
|
};
|
|
173
|
-
}), k.value.map((
|
|
174
|
-
...
|
|
173
|
+
}), k.value.map((t, a) => ({
|
|
174
|
+
...t,
|
|
175
175
|
seriesIndex: a
|
|
176
|
-
})).filter((
|
|
177
|
-
name:
|
|
178
|
-
color: Ae(
|
|
179
|
-
value: (
|
|
176
|
+
})).filter((t, a) => !L.value.includes(a)))), Ce = b(() => S.dataset.map((t, a) => ({
|
|
177
|
+
name: t.name,
|
|
178
|
+
color: Ae(t.color) || me.value[a] || D[a] || D[a % D.length],
|
|
179
|
+
value: (t.values || []).reduce((l, u) => l + u, 0),
|
|
180
180
|
shape: "circle"
|
|
181
|
-
})).map((
|
|
182
|
-
...
|
|
183
|
-
proportion:
|
|
184
|
-
opacity:
|
|
181
|
+
})).map((t, a) => ({
|
|
182
|
+
...t,
|
|
183
|
+
proportion: t.value / S.dataset.map((l) => (l.values || []).reduce((u, r) => u + r, 0)).reduce((l, u) => l + u, 0),
|
|
184
|
+
opacity: L.value.includes(a) ? 0.5 : 1,
|
|
185
185
|
segregate: () => _e(a),
|
|
186
|
-
isSegregated:
|
|
186
|
+
isSegregated: L.value.includes(a)
|
|
187
187
|
}))), Ge = b(() => ({
|
|
188
188
|
cy: "donut-div-legend",
|
|
189
189
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -191,106 +191,106 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
191
191
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
192
192
|
paddingBottom: 12,
|
|
193
193
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
194
|
-
})),
|
|
195
|
-
const
|
|
196
|
-
return
|
|
197
|
-
}), A = b(() => al({ series: I.value }, i.value.width / 2, i.value.height / 2,
|
|
198
|
-
function B(
|
|
199
|
-
return
|
|
194
|
+
})), _ = b(() => {
|
|
195
|
+
const t = Math.min(i.value.width / 3, i.value.height / 3);
|
|
196
|
+
return t < 55 ? 55 : t;
|
|
197
|
+
}), A = b(() => al({ series: I.value }, i.value.width / 2, i.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, E.value));
|
|
198
|
+
function B(t) {
|
|
199
|
+
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
200
200
|
}
|
|
201
|
-
function xe(
|
|
202
|
-
const
|
|
203
|
-
return isNaN(
|
|
201
|
+
function xe(t, a) {
|
|
202
|
+
const l = t.value / Ue(a);
|
|
203
|
+
return isNaN(l) ? 0 : T(
|
|
204
204
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
v:
|
|
205
|
+
l * 100,
|
|
206
|
+
x({
|
|
207
|
+
v: l * 100,
|
|
208
208
|
s: "%",
|
|
209
209
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
210
210
|
}),
|
|
211
|
-
{ datapoint:
|
|
211
|
+
{ datapoint: t }
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
|
-
function Ue(
|
|
215
|
-
return [...
|
|
214
|
+
function Ue(t) {
|
|
215
|
+
return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
|
|
216
216
|
}
|
|
217
|
-
const m = b(() => I.value.map((
|
|
218
|
-
function
|
|
219
|
-
te.value = { datapoint:
|
|
217
|
+
const m = b(() => I.value.map((t) => t.value).reduce((t, a) => t + a, 0)), $e = b(() => m.value / I.value.length), te = v(null), R = v(!1);
|
|
218
|
+
function je({ datapoint: t, relativeIndex: a, seriesIndex: l, show: u = !1 }) {
|
|
219
|
+
te.value = { datapoint: t, seriesIndex: l, config: e.value, series: P.value }, ee.value = u, z.value = a;
|
|
220
220
|
let r = "";
|
|
221
221
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
222
|
-
if (
|
|
222
|
+
if (R.value = !1, il(h))
|
|
223
223
|
try {
|
|
224
224
|
const c = h({
|
|
225
|
-
seriesIndex:
|
|
226
|
-
datapoint:
|
|
225
|
+
seriesIndex: l,
|
|
226
|
+
datapoint: t,
|
|
227
227
|
series: P.value,
|
|
228
228
|
config: e.value
|
|
229
229
|
});
|
|
230
|
-
typeof c == "string" && (
|
|
230
|
+
typeof c == "string" && (le.value = c, R.value = !0);
|
|
231
231
|
} catch {
|
|
232
|
-
console.warn("Custom format cannot be applied."),
|
|
232
|
+
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
233
233
|
}
|
|
234
|
-
if (!
|
|
235
|
-
if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
234
|
+
if (!R.value) {
|
|
235
|
+
if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${T(
|
|
236
236
|
e.value.style.chart.layout.labels.value.formatter,
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
t.value,
|
|
238
|
+
x({
|
|
239
239
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
240
|
-
v:
|
|
240
|
+
v: t.value,
|
|
241
241
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
242
242
|
r: e.value.style.chart.tooltip.roundingValue
|
|
243
243
|
}),
|
|
244
244
|
{
|
|
245
|
-
datapoint:
|
|
245
|
+
datapoint: t,
|
|
246
246
|
relativeIndex: a,
|
|
247
|
-
seriesIndex:
|
|
247
|
+
seriesIndex: l
|
|
248
248
|
}
|
|
249
249
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
250
|
-
const c =
|
|
250
|
+
const c = T(
|
|
251
251
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
v:
|
|
252
|
+
t.proportion * 100,
|
|
253
|
+
x({
|
|
254
|
+
v: t.proportion * 100,
|
|
255
255
|
s: "%",
|
|
256
256
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
257
257
|
}),
|
|
258
258
|
{
|
|
259
|
-
datapoint:
|
|
259
|
+
datapoint: t,
|
|
260
260
|
relativeIndex: a,
|
|
261
|
-
seriesIndex:
|
|
261
|
+
seriesIndex: l
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
264
|
e.value.style.chart.tooltip.showValue ? r += `<span>(${c})</span></div>` : r += `<b>${c}%</b></div>`;
|
|
265
265
|
}
|
|
266
|
-
e.value.style.chart.comments.showInTooltip &&
|
|
266
|
+
e.value.style.chart.comments.showInTooltip && t.comment && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), le.value = `<div>${r}</div>`;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
function ae(
|
|
270
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !==
|
|
269
|
+
function ae(t) {
|
|
270
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== t ? `url(#blur_${$.value})` : "";
|
|
271
271
|
}
|
|
272
272
|
const N = b(() => {
|
|
273
|
-
const
|
|
274
|
-
name:
|
|
275
|
-
color:
|
|
276
|
-
})), a = I.value.map((
|
|
277
|
-
return { head:
|
|
273
|
+
const t = I.value.map((l) => ({
|
|
274
|
+
name: l.name,
|
|
275
|
+
color: l.color
|
|
276
|
+
})), a = I.value.map((l) => l.value);
|
|
277
|
+
return { head: t, body: a };
|
|
278
278
|
});
|
|
279
279
|
function Se() {
|
|
280
280
|
qe(() => {
|
|
281
|
-
const
|
|
281
|
+
const t = N.value.head.map((u, r) => [[
|
|
282
282
|
u.name
|
|
283
|
-
], [N.value.body[r]], [isNaN(N.value.body[r] / m.value) ? "-" : N.value.body[r] / m.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(
|
|
284
|
-
cl({ csvContent:
|
|
283
|
+
], [N.value.body[r]], [isNaN(N.value.body[r] / m.value) ? "-" : N.value.body[r] / m.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = vl(a);
|
|
284
|
+
cl({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
288
|
-
const
|
|
287
|
+
const Q = b(() => {
|
|
288
|
+
const t = [
|
|
289
289
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
290
|
-
|
|
290
|
+
x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
291
291
|
"100%"
|
|
292
292
|
], a = N.value.head.map((r, h) => {
|
|
293
|
-
const c =
|
|
293
|
+
const c = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: N.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
294
294
|
return [
|
|
295
295
|
{
|
|
296
296
|
color: r.color,
|
|
@@ -299,7 +299,7 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
299
299
|
c,
|
|
300
300
|
isNaN(N.value.body[h] / m.value) ? "-" : (N.value.body[h] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
301
301
|
];
|
|
302
|
-
}),
|
|
302
|
+
}), l = {
|
|
303
303
|
th: {
|
|
304
304
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
305
305
|
color: e.value.table.th.color,
|
|
@@ -318,25 +318,25 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
318
318
|
e.value.table.columnNames.value,
|
|
319
319
|
e.value.table.columnNames.percentage
|
|
320
320
|
],
|
|
321
|
-
head:
|
|
321
|
+
head: t,
|
|
322
322
|
body: a,
|
|
323
|
-
config:
|
|
323
|
+
config: l
|
|
324
324
|
};
|
|
325
|
-
}),
|
|
326
|
-
function
|
|
327
|
-
|
|
325
|
+
}), Y = v(!1);
|
|
326
|
+
function Ee(t) {
|
|
327
|
+
Y.value = t, he.value += 1;
|
|
328
328
|
}
|
|
329
329
|
const Le = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
330
|
-
function Re(
|
|
331
|
-
return
|
|
330
|
+
function Re(t) {
|
|
331
|
+
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
se("selectDatapoint", { datapoint:
|
|
333
|
+
function Z(t, a) {
|
|
334
|
+
se("selectDatapoint", { datapoint: t, index: a });
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Fe() {
|
|
337
337
|
p.value.showTable = !p.value.showTable;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Te() {
|
|
340
340
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
341
341
|
}
|
|
342
342
|
function ze() {
|
|
@@ -347,24 +347,24 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
347
347
|
generatePdf: be,
|
|
348
348
|
generateCsv: Se,
|
|
349
349
|
generateImage: ge,
|
|
350
|
-
toggleTable:
|
|
351
|
-
toggleLabels:
|
|
350
|
+
toggleTable: Fe,
|
|
351
|
+
toggleLabels: Te,
|
|
352
352
|
toggleTooltip: ze
|
|
353
|
-
}), (
|
|
353
|
+
}), (t, a) => (s(), n("div", {
|
|
354
354
|
ref_key: "donutChart",
|
|
355
|
-
ref:
|
|
356
|
-
class: ue(`vue-ui-donut ${
|
|
357
|
-
style:
|
|
358
|
-
id: `donut__${
|
|
355
|
+
ref: j,
|
|
356
|
+
class: ue(`vue-ui-donut ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
357
|
+
style: F(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
358
|
+
id: `donut__${$.value}`
|
|
359
359
|
}, [
|
|
360
|
-
g(
|
|
360
|
+
g(t.$slots, "userConfig", {}, void 0, !0),
|
|
361
361
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
362
362
|
key: 0,
|
|
363
363
|
ref_key: "chartTitle",
|
|
364
364
|
ref: re,
|
|
365
|
-
style:
|
|
365
|
+
style: F(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
366
366
|
}, [
|
|
367
|
-
(s(), V(
|
|
367
|
+
(s(), V(fl, {
|
|
368
368
|
key: `title_${ie.value}`,
|
|
369
369
|
config: {
|
|
370
370
|
title: {
|
|
@@ -384,9 +384,9 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
384
384
|
key: `user_option_${he.value}`,
|
|
385
385
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
386
386
|
color: e.value.style.chart.color,
|
|
387
|
-
isPrinting: o(
|
|
387
|
+
isPrinting: o(ye),
|
|
388
388
|
isImaging: o(pe),
|
|
389
|
-
uid:
|
|
389
|
+
uid: $.value,
|
|
390
390
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
391
391
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
392
392
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -394,64 +394,64 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
394
394
|
hasTable: e.value.userOptions.buttons.table,
|
|
395
395
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
396
396
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
397
|
-
isFullscreen:
|
|
398
|
-
chartElement:
|
|
397
|
+
isFullscreen: Y.value,
|
|
398
|
+
chartElement: j.value,
|
|
399
399
|
isTooltip: p.value.showTooltip,
|
|
400
400
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
401
|
-
onToggleFullscreen:
|
|
401
|
+
onToggleFullscreen: Ee,
|
|
402
402
|
onGeneratePdf: o(be),
|
|
403
403
|
onGenerateCsv: Se,
|
|
404
404
|
onGenerateImage: o(ge),
|
|
405
|
-
onToggleTable:
|
|
406
|
-
onToggleLabels:
|
|
405
|
+
onToggleTable: Fe,
|
|
406
|
+
onToggleLabels: Te,
|
|
407
407
|
onToggleTooltip: ze
|
|
408
408
|
}, We({ _: 2 }, [
|
|
409
|
-
|
|
409
|
+
t.$slots.optionTooltip ? {
|
|
410
410
|
name: "optionTooltip",
|
|
411
411
|
fn: w(() => [
|
|
412
|
-
g(
|
|
412
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
413
413
|
]),
|
|
414
414
|
key: "0"
|
|
415
415
|
} : void 0,
|
|
416
|
-
|
|
416
|
+
t.$slots.optionPdf ? {
|
|
417
417
|
name: "optionPdf",
|
|
418
418
|
fn: w(() => [
|
|
419
|
-
g(
|
|
419
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
420
420
|
]),
|
|
421
421
|
key: "1"
|
|
422
422
|
} : void 0,
|
|
423
|
-
|
|
423
|
+
t.$slots.optionCsv ? {
|
|
424
424
|
name: "optionCsv",
|
|
425
425
|
fn: w(() => [
|
|
426
|
-
g(
|
|
426
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
427
427
|
]),
|
|
428
428
|
key: "2"
|
|
429
429
|
} : void 0,
|
|
430
|
-
|
|
430
|
+
t.$slots.optionImg ? {
|
|
431
431
|
name: "optionImg",
|
|
432
432
|
fn: w(() => [
|
|
433
|
-
g(
|
|
433
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
434
434
|
]),
|
|
435
435
|
key: "3"
|
|
436
436
|
} : void 0,
|
|
437
|
-
|
|
437
|
+
t.$slots.optionTable ? {
|
|
438
438
|
name: "optionTable",
|
|
439
439
|
fn: w(() => [
|
|
440
|
-
g(
|
|
440
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
441
441
|
]),
|
|
442
442
|
key: "4"
|
|
443
443
|
} : void 0,
|
|
444
|
-
|
|
444
|
+
t.$slots.optionLabels ? {
|
|
445
445
|
name: "optionLabels",
|
|
446
446
|
fn: w(() => [
|
|
447
|
-
g(
|
|
447
|
+
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
448
448
|
]),
|
|
449
449
|
key: "5"
|
|
450
450
|
} : void 0,
|
|
451
|
-
|
|
451
|
+
t.$slots.optionFullscreen ? {
|
|
452
452
|
name: "optionFullscreen",
|
|
453
|
-
fn: w(({ toggleFullscreen:
|
|
454
|
-
g(
|
|
453
|
+
fn: w(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
454
|
+
g(t.$slots, "optionFullscreen", H(W({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
455
455
|
]),
|
|
456
456
|
key: "6"
|
|
457
457
|
} : void 0
|
|
@@ -459,56 +459,56 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
459
459
|
U.value ? (s(), n("svg", {
|
|
460
460
|
key: 2,
|
|
461
461
|
xmlns: o(ol),
|
|
462
|
-
class: ue({ "vue-data-ui-fullscreen--on":
|
|
462
|
+
class: ue({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
463
463
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
464
|
-
style:
|
|
464
|
+
style: F(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
465
465
|
}, [
|
|
466
|
-
|
|
466
|
+
y("defs", null, [
|
|
467
467
|
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
468
468
|
key: 0,
|
|
469
|
-
id: `gradient_${
|
|
469
|
+
id: `gradient_${$.value}`
|
|
470
470
|
}, [
|
|
471
|
-
|
|
471
|
+
y("stop", {
|
|
472
472
|
offset: "0%",
|
|
473
|
-
"stop-color": o(
|
|
473
|
+
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
474
474
|
"stop-opacity": "0"
|
|
475
475
|
}, null, 8, Ll),
|
|
476
|
-
|
|
477
|
-
offset:
|
|
478
|
-
"stop-color": o(
|
|
476
|
+
y("stop", {
|
|
477
|
+
offset: `${(1 - E.value / _.value) * 100}%`,
|
|
478
|
+
"stop-color": o(q)("#FFFFFF", 0),
|
|
479
479
|
"stop-opacity": "0"
|
|
480
|
-
}, null, 8, Tl),
|
|
481
|
-
f("stop", {
|
|
482
|
-
offset: "77%",
|
|
483
|
-
"stop-color": o(X)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
484
480
|
}, null, 8, Fl),
|
|
485
|
-
|
|
481
|
+
y("stop", {
|
|
482
|
+
offset: `${(1 - E.value / _.value / 2) * 100}%`,
|
|
483
|
+
"stop-color": o(q)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
484
|
+
}, null, 8, Tl),
|
|
485
|
+
y("stop", {
|
|
486
486
|
offset: "100%",
|
|
487
|
-
"stop-color": o(
|
|
487
|
+
"stop-color": o(q)(e.value.style.chart.backgroundColor, 0),
|
|
488
488
|
"stop-opacity": "0"
|
|
489
489
|
}, null, 8, zl)
|
|
490
490
|
], 8, Sl)) : d("", !0)
|
|
491
491
|
]),
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
id: `blur_${
|
|
492
|
+
y("defs", null, [
|
|
493
|
+
y("filter", {
|
|
494
|
+
id: `blur_${$.value}`,
|
|
495
495
|
x: "-50%",
|
|
496
496
|
y: "-50%",
|
|
497
497
|
width: "200%",
|
|
498
498
|
height: "200%"
|
|
499
499
|
}, [
|
|
500
|
-
|
|
500
|
+
y("feGaussianBlur", {
|
|
501
501
|
in: "SourceGraphic",
|
|
502
502
|
stdDeviation: 2,
|
|
503
|
-
id: `blur_std_${
|
|
503
|
+
id: `blur_std_${$.value}`
|
|
504
504
|
}, null, 8, Pl),
|
|
505
505
|
Ol
|
|
506
506
|
], 8, Nl),
|
|
507
|
-
|
|
508
|
-
id: `shadow_${
|
|
507
|
+
y("filter", {
|
|
508
|
+
id: `shadow_${$.value}`,
|
|
509
509
|
"color-interpolation-filters": "sRGB"
|
|
510
510
|
}, [
|
|
511
|
-
|
|
511
|
+
y("feDropShadow", {
|
|
512
512
|
dx: "0",
|
|
513
513
|
dy: "0",
|
|
514
514
|
stdDeviation: "10",
|
|
@@ -517,11 +517,11 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
517
517
|
}, null, 8, Dl)
|
|
518
518
|
], 8, Al)
|
|
519
519
|
]),
|
|
520
|
-
(s(!0), n(M, null,
|
|
521
|
-
B(
|
|
520
|
+
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("g", null, [
|
|
521
|
+
B(l) && p.value.dataLabels.show ? (s(), n("path", {
|
|
522
522
|
key: 0,
|
|
523
|
-
d: o(ul)(
|
|
524
|
-
stroke:
|
|
523
|
+
d: o(ul)(l, { x: i.value.width / 2, y: i.value.height / 2 }, 16, 16, !1, !1, E.value),
|
|
524
|
+
stroke: l.color,
|
|
525
525
|
"stroke-width": "1",
|
|
526
526
|
"stroke-linecap": "round",
|
|
527
527
|
"stroke-linejoin": "round",
|
|
@@ -529,23 +529,23 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
529
529
|
filter: ae(u)
|
|
530
530
|
}, null, 8, Il)) : d("", !0)
|
|
531
531
|
]))), 256)),
|
|
532
|
-
|
|
532
|
+
y("circle", {
|
|
533
533
|
cx: i.value.width / 2,
|
|
534
534
|
cy: i.value.height / 2,
|
|
535
|
-
r:
|
|
535
|
+
r: _.value <= 0 ? 10 : _.value,
|
|
536
536
|
fill: e.value.style.chart.backgroundColor,
|
|
537
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${
|
|
537
|
+
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${$.value})` : ""
|
|
538
538
|
}, null, 8, Bl),
|
|
539
539
|
m.value ? (s(), n(M, { key: 0 }, [
|
|
540
|
-
(s(!0), n(M, null,
|
|
540
|
+
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("path", {
|
|
541
541
|
stroke: e.value.style.chart.backgroundColor,
|
|
542
|
-
d:
|
|
542
|
+
d: l.arcSlice,
|
|
543
543
|
fill: "#FFFFFF"
|
|
544
544
|
}, null, 8, Vl))), 256)),
|
|
545
|
-
(s(!0), n(M, null,
|
|
545
|
+
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("path", {
|
|
546
546
|
class: "vue-ui-donut-arc-path",
|
|
547
|
-
d:
|
|
548
|
-
fill: o(
|
|
547
|
+
d: l.arcSlice,
|
|
548
|
+
fill: o(q)(l.color, 80),
|
|
549
549
|
stroke: e.value.style.chart.backgroundColor,
|
|
550
550
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
551
551
|
filter: ae(u)
|
|
@@ -554,7 +554,7 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
554
554
|
key: 1,
|
|
555
555
|
cx: i.value.width / 2,
|
|
556
556
|
cy: i.value.height / 2,
|
|
557
|
-
r:
|
|
557
|
+
r: _.value <= 0 ? 10 : _.value,
|
|
558
558
|
fill: e.value.style.chart.backgroundColor,
|
|
559
559
|
stroke: o(sl)(e.value.style.chart.background)
|
|
560
560
|
}, null, 8, Gl)),
|
|
@@ -564,25 +564,25 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
564
564
|
cy: i.value.height / 2,
|
|
565
565
|
r: (
|
|
566
566
|
/* This might require adjustments */
|
|
567
|
-
|
|
567
|
+
_.value <= 0 ? 10 : _.value
|
|
568
568
|
),
|
|
569
|
-
fill: `url(#gradient_${
|
|
569
|
+
fill: `url(#gradient_${$.value})`
|
|
570
570
|
}, null, 8, Ul)) : d("", !0),
|
|
571
|
-
m.value ? (s(!0), n(M, { key: 3 },
|
|
571
|
+
m.value ? (s(!0), n(M, { key: 3 }, X(A.value, (l, u) => (s(), n("path", {
|
|
572
572
|
"data-cy-donut-trap": "",
|
|
573
|
-
d:
|
|
573
|
+
d: l.arcSlice,
|
|
574
574
|
fill: z.value === u ? "rgba(0,0,0,0.1)" : "transparent",
|
|
575
|
-
onMouseenter: (r) =>
|
|
576
|
-
datapoint:
|
|
575
|
+
onMouseenter: (r) => je({
|
|
576
|
+
datapoint: l,
|
|
577
577
|
relativeIndex: u,
|
|
578
|
-
seriesIndex:
|
|
578
|
+
seriesIndex: l.seriesIndex,
|
|
579
579
|
show: !0
|
|
580
580
|
}),
|
|
581
581
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
582
|
-
|
|
582
|
+
ee.value = !1, z.value = null;
|
|
583
583
|
}),
|
|
584
|
-
onClick: (r) =>
|
|
585
|
-
}, null, 40,
|
|
584
|
+
onClick: (r) => Z(l, u)
|
|
585
|
+
}, null, 40, jl))), 256)) : d("", !0),
|
|
586
586
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
587
587
|
key: 4,
|
|
588
588
|
"text-anchor": "middle",
|
|
@@ -590,8 +590,8 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
590
590
|
y: i.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
591
591
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
592
592
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
593
|
-
style:
|
|
594
|
-
},
|
|
593
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
594
|
+
}, C(e.value.style.chart.layout.labels.hollow.total.text), 13, El)) : d("", !0),
|
|
595
595
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
596
596
|
key: 5,
|
|
597
597
|
"text-anchor": "middle",
|
|
@@ -599,11 +599,11 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
599
599
|
y: i.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
600
600
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
601
601
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
602
|
-
style:
|
|
603
|
-
},
|
|
602
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
603
|
+
}, C(o(T)(
|
|
604
604
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
605
605
|
m.value,
|
|
606
|
-
o(
|
|
606
|
+
o(x)({
|
|
607
607
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
608
608
|
v: m.value,
|
|
609
609
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
@@ -616,8 +616,8 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
616
616
|
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
617
617
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
618
618
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
619
|
-
style:
|
|
620
|
-
},
|
|
619
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
620
|
+
}, C(e.value.style.chart.layout.labels.hollow.average.text), 13, Yl)) : d("", !0),
|
|
621
621
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
622
622
|
key: 7,
|
|
623
623
|
"text-anchor": "middle",
|
|
@@ -625,103 +625,103 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
625
625
|
y: i.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
626
626
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
627
627
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
628
|
-
style:
|
|
629
|
-
},
|
|
628
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
629
|
+
}, C(O.value ? "--" : o(T)(
|
|
630
630
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
631
631
|
$e.value,
|
|
632
|
-
o(
|
|
632
|
+
o(x)({
|
|
633
633
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
634
634
|
v: $e.value,
|
|
635
635
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
636
636
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
637
637
|
})
|
|
638
638
|
)), 13, Hl)) : d("", !0),
|
|
639
|
-
(s(!0), n(M, null,
|
|
639
|
+
(s(!0), n(M, null, X(A.value, (l, u) => (s(), n("g", {
|
|
640
640
|
filter: ae(u),
|
|
641
641
|
class: ue({ animated: e.value.useCssAnimation })
|
|
642
642
|
}, [
|
|
643
643
|
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", Xl, [
|
|
644
644
|
(s(), n("foreignObject", {
|
|
645
|
-
x: o(
|
|
646
|
-
y: o(
|
|
645
|
+
x: o(f)(l, !0).anchor === "end" ? o(f)(l).x - 120 : o(f)(l, !0).anchor === "middle" ? o(f)(l).x - 60 : o(f)(l).x,
|
|
646
|
+
y: o(J)(l) - (Le.value ? 20 : 0),
|
|
647
647
|
width: "120",
|
|
648
648
|
height: "60",
|
|
649
649
|
style: { overflow: "visible" }
|
|
650
650
|
}, [
|
|
651
|
-
|
|
652
|
-
g(
|
|
653
|
-
datapoint:
|
|
651
|
+
y("div", null, [
|
|
652
|
+
g(t.$slots, "dataLabel", H(W({
|
|
653
|
+
datapoint: l,
|
|
654
654
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u,
|
|
655
655
|
isSafari: Le.value,
|
|
656
|
-
isVisible: B(
|
|
657
|
-
textAlign: o(
|
|
658
|
-
flexAlign: o(
|
|
659
|
-
percentage: xe(
|
|
656
|
+
isVisible: B(l) && p.value.dataLabels.show,
|
|
657
|
+
textAlign: o(f)(l, !0, 16, !0).anchor,
|
|
658
|
+
flexAlign: o(f)(l, !0, 16).anchor,
|
|
659
|
+
percentage: xe(l, A.value)
|
|
660
660
|
})), void 0, !0)
|
|
661
661
|
])
|
|
662
662
|
], 8, ql))
|
|
663
663
|
])) : (s(), n("g", Jl, [
|
|
664
|
-
B(
|
|
664
|
+
B(l) && p.value.dataLabels.show ? (s(), n("circle", {
|
|
665
665
|
key: 0,
|
|
666
|
-
cx: o(
|
|
667
|
-
cy: o(
|
|
668
|
-
fill:
|
|
666
|
+
cx: o(f)(l).x,
|
|
667
|
+
cy: o(J)(l) - 3.5,
|
|
668
|
+
fill: l.color,
|
|
669
669
|
r: 3,
|
|
670
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u ? "" : `url(#blur_${
|
|
671
|
-
onClick: (r) =>
|
|
670
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u ? "" : `url(#blur_${$.value})`,
|
|
671
|
+
onClick: (r) => Z(l, u)
|
|
672
672
|
}, null, 8, Kl)) : d("", !0),
|
|
673
|
-
B(
|
|
673
|
+
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
674
674
|
key: 1,
|
|
675
|
-
"text-anchor": o(
|
|
676
|
-
x: o(
|
|
677
|
-
y: o(
|
|
675
|
+
"text-anchor": o(f)(l, !0, 12).anchor,
|
|
676
|
+
x: o(f)(l, !0, 12).x,
|
|
677
|
+
y: o(J)(l),
|
|
678
678
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
679
679
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
680
|
-
style:
|
|
681
|
-
onClick: (r) =>
|
|
682
|
-
},
|
|
680
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
681
|
+
onClick: (r) => Z(l, u)
|
|
682
|
+
}, C(xe(l, A.value)) + " " + C(e.value.style.chart.layout.labels.value.show ? `(${o(T)(
|
|
683
683
|
e.value.style.chart.layout.labels.value.formatter,
|
|
684
|
-
|
|
685
|
-
o(
|
|
684
|
+
l.value,
|
|
685
|
+
o(x)({
|
|
686
686
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
687
|
-
v:
|
|
687
|
+
v: l.value,
|
|
688
688
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
689
689
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
690
690
|
}),
|
|
691
|
-
{ datapoint:
|
|
691
|
+
{ datapoint: l }
|
|
692
692
|
)})` : ""), 13, Ql)) : d("", !0),
|
|
693
|
-
B(
|
|
693
|
+
B(l) && p.value.dataLabels.show ? (s(), n("text", {
|
|
694
694
|
key: 2,
|
|
695
|
-
"text-anchor": o(
|
|
696
|
-
x: o(
|
|
697
|
-
y: o(
|
|
695
|
+
"text-anchor": o(f)(l).anchor,
|
|
696
|
+
x: o(f)(l, !0, 12).x,
|
|
697
|
+
y: o(J)(l) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
698
698
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
699
699
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
700
|
-
style:
|
|
701
|
-
onClick: (r) =>
|
|
702
|
-
},
|
|
700
|
+
style: F(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
701
|
+
onClick: (r) => Z(l, u)
|
|
702
|
+
}, C(l.name), 13, Zl)) : d("", !0)
|
|
703
703
|
])),
|
|
704
|
-
p.value.dataLabels.show && e.value.style.chart.comments.show &&
|
|
705
|
-
B(
|
|
704
|
+
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (s(), n("g", et, [
|
|
705
|
+
B(l) ? (s(), n("foreignObject", {
|
|
706
706
|
key: 0,
|
|
707
|
-
x: e.value.style.chart.comments.offsetX + (o(
|
|
708
|
-
y: o(
|
|
707
|
+
x: e.value.style.chart.comments.offsetX + (o(f)(l, !0).anchor === "end" ? o(f)(l).x - e.value.style.chart.comments.width : o(f)(l, !0).anchor === "middle" ? o(f)(l).x - e.value.style.chart.comments.width / 2 : o(f)(l).x),
|
|
708
|
+
y: o(J)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
709
709
|
width: e.value.style.chart.comments.width,
|
|
710
710
|
height: "200",
|
|
711
711
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
712
712
|
}, [
|
|
713
|
-
|
|
714
|
-
g(
|
|
715
|
-
plot: { ...
|
|
713
|
+
y("div", null, [
|
|
714
|
+
g(t.$slots, "plot-comment", {
|
|
715
|
+
plot: { ...l, textAlign: o(f)(l, !0, 16, !0).anchor, flexAlign: o(f)(l, !0, 16).anchor }
|
|
716
716
|
}, void 0, !0)
|
|
717
717
|
])
|
|
718
718
|
], 8, lt)) : d("", !0)
|
|
719
719
|
])) : d("", !0)
|
|
720
720
|
], 10, Wl))), 256)),
|
|
721
|
-
g(
|
|
721
|
+
g(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
722
722
|
], 14, $l)) : d("", !0),
|
|
723
|
-
|
|
724
|
-
g(
|
|
723
|
+
t.$slots.watermark ? (s(), n("div", tt, [
|
|
724
|
+
g(t.$slots, "watermark", H(W({ isPrinting: o(ye) || o(pe) })), void 0, !0)
|
|
725
725
|
])) : d("", !0),
|
|
726
726
|
U.value ? d("", !0) : (s(), V(wl, {
|
|
727
727
|
key: 4,
|
|
@@ -731,12 +731,12 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
731
731
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
732
732
|
donut: {
|
|
733
733
|
color: "#CCCCCC",
|
|
734
|
-
strokeWidth:
|
|
734
|
+
strokeWidth: E.value * 0.8
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
}, null, 8, ["config"])),
|
|
739
|
-
|
|
739
|
+
y("div", {
|
|
740
740
|
ref_key: "chartLegend",
|
|
741
741
|
ref: ne
|
|
742
742
|
}, [
|
|
@@ -744,32 +744,32 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
744
744
|
key: `legend_${ce.value}`,
|
|
745
745
|
legendSet: Ce.value,
|
|
746
746
|
config: Ge.value,
|
|
747
|
-
onClickMarker: a[1] || (a[1] = ({ i:
|
|
747
|
+
onClickMarker: a[1] || (a[1] = ({ i: l }) => _e(l))
|
|
748
748
|
}, {
|
|
749
|
-
item: w(({ legend:
|
|
750
|
-
|
|
751
|
-
onClick: (r) =>
|
|
752
|
-
style:
|
|
749
|
+
item: w(({ legend: l, index: u }) => [
|
|
750
|
+
y("div", {
|
|
751
|
+
onClick: (r) => l.segregate(),
|
|
752
|
+
style: F(`opacity:${L.value.includes(u) ? 0.5 : 1}`)
|
|
753
753
|
}, [
|
|
754
|
-
Pe(
|
|
754
|
+
Pe(C(l.name) + ": " + C(o(T)(
|
|
755
755
|
e.value.style.chart.layout.labels.value.formatter,
|
|
756
|
-
|
|
757
|
-
o(
|
|
756
|
+
l.value,
|
|
757
|
+
o(x)({
|
|
758
758
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
759
|
-
v:
|
|
759
|
+
v: l.value,
|
|
760
760
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
761
761
|
r: e.value.style.chart.legend.roundingValue
|
|
762
762
|
}),
|
|
763
763
|
{
|
|
764
|
-
datapoint:
|
|
764
|
+
datapoint: l,
|
|
765
765
|
index: u
|
|
766
766
|
}
|
|
767
767
|
)) + " ", 1),
|
|
768
|
-
|
|
768
|
+
L.value.includes(u) ? (s(), n("span", ut, " ( " + C(Re(l.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + C(isNaN(l.value / m.value) ? "-" : o(T)(
|
|
769
769
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
770
|
-
O.value ?
|
|
771
|
-
o(
|
|
772
|
-
v: O.value ?
|
|
770
|
+
O.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
771
|
+
o(x)({
|
|
772
|
+
v: O.value ? l.proportion * 100 : l.value / m.value * 100,
|
|
773
773
|
s: "%",
|
|
774
774
|
r: e.value.style.chart.legend.roundingPercentage
|
|
775
775
|
})
|
|
@@ -778,10 +778,10 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
778
778
|
]),
|
|
779
779
|
_: 1
|
|
780
780
|
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
781
|
-
g(
|
|
781
|
+
g(t.$slots, "legend", { legend: Ce.value }, void 0, !0)
|
|
782
782
|
], 512),
|
|
783
783
|
Xe(gl, {
|
|
784
|
-
show: p.value.showTooltip &&
|
|
784
|
+
show: p.value.showTooltip && ee.value,
|
|
785
785
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
786
786
|
color: e.value.style.chart.tooltip.color,
|
|
787
787
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -791,15 +791,15 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
791
791
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
792
792
|
position: e.value.style.chart.tooltip.position,
|
|
793
793
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
794
|
-
parent:
|
|
795
|
-
content:
|
|
796
|
-
isCustom:
|
|
794
|
+
parent: j.value,
|
|
795
|
+
content: le.value,
|
|
796
|
+
isCustom: R.value
|
|
797
797
|
}, {
|
|
798
798
|
"tooltip-before": w(() => [
|
|
799
|
-
g(
|
|
799
|
+
g(t.$slots, "tooltip-before", H(W({ ...te.value })), void 0, !0)
|
|
800
800
|
]),
|
|
801
801
|
"tooltip-after": w(() => [
|
|
802
|
-
g(
|
|
802
|
+
g(t.$slots, "tooltip-after", H(W({ ...te.value })), void 0, !0)
|
|
803
803
|
]),
|
|
804
804
|
_: 3
|
|
805
805
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -822,34 +822,34 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
822
822
|
content: w(() => [
|
|
823
823
|
(s(), V(bl, {
|
|
824
824
|
key: `table_${ve.value}`,
|
|
825
|
-
colNames:
|
|
826
|
-
head:
|
|
827
|
-
body:
|
|
828
|
-
config:
|
|
825
|
+
colNames: Q.value.colNames,
|
|
826
|
+
head: Q.value.head,
|
|
827
|
+
body: Q.value.body,
|
|
828
|
+
config: Q.value.config,
|
|
829
829
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
830
|
-
onClose: a[2] || (a[2] = (
|
|
830
|
+
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
831
831
|
}, {
|
|
832
|
-
th: w(({ th:
|
|
833
|
-
|
|
834
|
-
innerHTML:
|
|
832
|
+
th: w(({ th: l }) => [
|
|
833
|
+
y("div", {
|
|
834
|
+
innerHTML: l,
|
|
835
835
|
style: { display: "flex", "align-items": "center" }
|
|
836
836
|
}, null, 8, st)
|
|
837
837
|
]),
|
|
838
|
-
td: w(({ td:
|
|
839
|
-
Pe(
|
|
838
|
+
td: w(({ td: l }) => [
|
|
839
|
+
Pe(C(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? o(T)(
|
|
840
840
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
841
|
-
|
|
842
|
-
o(
|
|
843
|
-
v:
|
|
841
|
+
l,
|
|
842
|
+
o(x)({
|
|
843
|
+
v: l,
|
|
844
844
|
s: "%",
|
|
845
845
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
846
846
|
})
|
|
847
|
-
) :
|
|
847
|
+
) : l : o(T)(
|
|
848
848
|
e.value.style.chart.layout.labels.value.formatter,
|
|
849
|
-
|
|
850
|
-
o(
|
|
849
|
+
l,
|
|
850
|
+
o(x)({
|
|
851
851
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
852
|
-
v:
|
|
852
|
+
v: l,
|
|
853
853
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
854
854
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
855
855
|
})
|
|
@@ -862,7 +862,7 @@ const Cl = (G) => (Je("data-v-21a9622a"), G = G(), Ke(), G), xl = ["id"], $l = [
|
|
|
862
862
|
}, 8, ["config"])) : d("", !0)
|
|
863
863
|
], 14, xl));
|
|
864
864
|
}
|
|
865
|
-
}, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-
|
|
865
|
+
}, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-036ff913"]]);
|
|
866
866
|
export {
|
|
867
867
|
wt as default
|
|
868
868
|
};
|