vue-data-ui 2.3.99 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DwqF2Xky.cjs → Arrow-CbntjQjr.cjs} +1 -1
- package/dist/{Arrow-Dyp57i2e.js → Arrow-NcE21Ngm.js} +1 -1
- package/dist/{BaseIcon-BDeByyf-.cjs → BaseIcon-7IlvRUX2.cjs} +1 -1
- package/dist/{BaseIcon-DHB44s-g.js → BaseIcon-BUTpMnXi.js} +3 -3
- package/dist/{DataTable-CiVu-yQZ.cjs → DataTable-BwH-MU-S.cjs} +1 -1
- package/dist/{DataTable-Dv3mZD4M.js → DataTable-DAgyf9zN.js} +2 -2
- package/dist/{Legend-ComtyeZF.cjs → Legend-CHQgjBuK.cjs} +1 -1
- package/dist/{Legend-iUlykl4S.js → Legend-DBhpIX2x.js} +1 -1
- package/dist/PackageVersion-Djty0wb2.cjs +1 -0
- package/dist/{PackageVersion-DWAqn7t0.js → PackageVersion-wB6dCDZw.js} +1 -1
- package/dist/{Shape-CDqrt_yL.js → Shape-CQVJz33T.js} +1 -1
- package/dist/{Shape-D-cMBFx-.cjs → Shape-DQ0Hh2Gg.cjs} +1 -1
- package/dist/{Slicer-iAp8x_Wq.cjs → Slicer-CiSmaE0_.cjs} +1 -1
- package/dist/{Slicer-CQbVH6fI.js → Slicer-DXw23eOC.js} +2 -2
- package/dist/{Title-Bpx2Ub4Z.cjs → Title-BHmTg9iK.cjs} +1 -1
- package/dist/{Title-CDfZWgra.js → Title-DlVZnHjs.js} +1 -1
- package/dist/{Tooltip-0-aPeOmA.js → Tooltip-CveCRFgK.js} +1 -1
- package/dist/{Tooltip-D-JR_3NK.cjs → Tooltip-DBzXz806.cjs} +1 -1
- package/dist/{index-COTjlcVF.js → index-B0CpCD8z.js} +13 -6
- package/dist/index-Dfhvf8hT.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-CcjyiBlC.js → useNestedProp-DGWP4D-K.js} +1 -1
- package/dist/{useNestedProp-np0rM3ep.cjs → useNestedProp-iuDCMc2p.cjs} +1 -1
- package/dist/{usePrinter-DuYSC89K.cjs → usePrinter-BQQasUin.cjs} +1 -1
- package/dist/{usePrinter-5XpNgqjh.js → usePrinter-Dr30K4cu.js} +1 -1
- package/dist/{vue-data-ui-Bu3V-W6l.js → vue-data-ui-BdSFeW_X.js} +57 -57
- package/dist/{vue-data-ui-D3zaRZjl.cjs → vue-data-ui-BgVPGbxq.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-DmM70v1H.js → vue-ui-3d-bar-C3hYrYTV.js} +8 -8
- package/dist/{vue-ui-3d-bar-C3EecSgn.cjs → vue-ui-3d-bar-DhHuwXZ1.cjs} +1 -1
- package/dist/{vue-ui-accordion-CzKJYxd2.js → vue-ui-accordion-CmENcGVW.js} +3 -3
- package/dist/{vue-ui-accordion-ZppPKpGK.cjs → vue-ui-accordion-Deyo7jw7.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bkyd3O37.js → vue-ui-age-pyramid-C075Lvfe.js} +9 -9
- package/dist/{vue-ui-age-pyramid-BhmOvXIW.cjs → vue-ui-age-pyramid-DaenyRp2.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bmk4N4Co.js → vue-ui-annotator-Bb6fUz4x.js} +1 -1
- package/dist/{vue-ui-annotator-rwo7Hm5A.cjs → vue-ui-annotator-DslXalSQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-o8m1DAm8.js → vue-ui-candlestick-C4VEOmY_.js} +10 -10
- package/dist/{vue-ui-candlestick-CnYobq1k.cjs → vue-ui-candlestick-CnVzd826.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DLQcAZx4.cjs → vue-ui-carousel-table-Coq4gg_P.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DAck3_R_.js → vue-ui-carousel-table-DZfMMpZ7.js} +4 -4
- package/dist/{vue-ui-chestnut-r6lsB6H0.cjs → vue-ui-chestnut-CLnJ0jmo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BAQVvxrX.js → vue-ui-chestnut-CUnbj-Zb.js} +7 -7
- package/dist/{vue-ui-cursor-ucua7LYB.cjs → vue-ui-cursor-B9UvQwLp.cjs} +1 -1
- package/dist/{vue-ui-cursor-CYNxiijm.js → vue-ui-cursor-CtuPho-s.js} +2 -2
- package/dist/{vue-ui-dashboard-nnHIe25Y.js → vue-ui-dashboard-8gQ1bGCn.js} +2 -2
- package/dist/{vue-ui-dashboard-DhLCwsFn.cjs → vue-ui-dashboard-KMTRqXzR.cjs} +1 -1
- package/dist/{vue-ui-digits-CEI69I0y.cjs → vue-ui-digits-DSMNN4z_.cjs} +1 -1
- package/dist/{vue-ui-digits-BB3ZlyZ6.js → vue-ui-digits-DuEyX8op.js} +2 -2
- package/dist/{vue-ui-donut-Ba9Qhfte.js → vue-ui-donut-0xdYBc41.js} +362 -336
- package/dist/vue-ui-donut-C4ek9m3R.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-BZaYmvPf.cjs → vue-ui-donut-evolution-B4TkwvNq.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CJHa5S50.js → vue-ui-donut-evolution-DbojarYN.js} +10 -10
- package/dist/{vue-ui-dumbbell-D_reERJf.js → vue-ui-dumbbell-BxhWjCvR.js} +9 -9
- package/dist/{vue-ui-dumbbell-D6Yu9qxX.cjs → vue-ui-dumbbell-Cn3spRSv.cjs} +1 -1
- package/dist/{vue-ui-flow-1HFdth8-.cjs → vue-ui-flow-D00VdtGU.cjs} +1 -1
- package/dist/{vue-ui-flow-sBFdpbtF.js → vue-ui-flow-DreN8go4.js} +8 -8
- package/dist/{vue-ui-galaxy-ccP0yuQ3.js → vue-ui-galaxy-BddgLpP-.js} +10 -10
- package/dist/{vue-ui-galaxy-DO1moKk6.cjs → vue-ui-galaxy-DVN-S67V.cjs} +1 -1
- package/dist/{vue-ui-gauge-CuFpl36r.cjs → vue-ui-gauge-DYZYFzHP.cjs} +1 -1
- package/dist/{vue-ui-gauge-CYjZx4Zz.js → vue-ui-gauge-DoTctAHq.js} +6 -6
- package/dist/{vue-ui-gizmo-C3dyTngy.cjs → vue-ui-gizmo-DRASsqlp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DNZwsdp9.js → vue-ui-gizmo-hXBWaB0c.js} +3 -3
- package/dist/{vue-ui-heatmap-0qNGXzdN.js → vue-ui-heatmap-B43q8UHu.js} +9 -9
- package/dist/{vue-ui-heatmap-CLjngS-G.cjs → vue-ui-heatmap-ldCySJFf.cjs} +1 -1
- package/dist/{vue-ui-kpi-iclD49Wb.cjs → vue-ui-kpi-BiJnqtGR.cjs} +1 -1
- package/dist/{vue-ui-kpi-BiOt8Z9k.js → vue-ui-kpi-_GVnhxEd.js} +3 -3
- package/dist/{vue-ui-mini-loader-ASe27a1V.cjs → vue-ui-mini-loader-DVZtFcHw.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CBPZAUuP.js → vue-ui-mini-loader-qvtu5jtI.js} +2 -2
- package/dist/{vue-ui-molecule-uCEX5lMP.cjs → vue-ui-molecule-DP9jhODZ.cjs} +1 -1
- package/dist/{vue-ui-molecule-VqY8WZHi.js → vue-ui-molecule-Dpu7Xmu5.js} +10 -10
- package/dist/{vue-ui-mood-radar-RYbB7jdY.cjs → vue-ui-mood-radar-BR0INhYL.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B0cjzFkt.js → vue-ui-mood-radar-iZJ0B1Wf.js} +10 -10
- package/dist/{vue-ui-nested-donuts-DbBSbOjx.js → vue-ui-nested-donuts-CovQfZ81.js} +10 -10
- package/dist/{vue-ui-nested-donuts-Bfu90lZl.cjs → vue-ui-nested-donuts-CwIsGnyH.cjs} +1 -1
- package/dist/{vue-ui-onion-DJLGXvfr.js → vue-ui-onion-CJb2Pg0t.js} +10 -10
- package/dist/{vue-ui-onion-DK7lJvIH.cjs → vue-ui-onion-DjEChSmi.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BaZ5niQk.cjs → vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B0_1Uh7a.js → vue-ui-parallel-coordinate-plot-CUA_fFC3.js} +11 -11
- package/dist/{vue-ui-quadrant-BCadkOrx.cjs → vue-ui-quadrant-CmdbW8yZ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CnAk8Np9.js → vue-ui-quadrant-IAIp5IZq.js} +11 -11
- package/dist/{vue-ui-quick-chart-BrgtffFL.js → vue-ui-quick-chart-Bb2RQ6qI.js} +8 -8
- package/dist/{vue-ui-quick-chart--4pkEtK0.cjs → vue-ui-quick-chart-DcEk6Ho7.cjs} +1 -1
- package/dist/{vue-ui-radar-C68BFXPH.cjs → vue-ui-radar-TjgO9_LA.cjs} +1 -1
- package/dist/{vue-ui-radar-CDlE8jus.js → vue-ui-radar-mIQMBRHx.js} +11 -11
- package/dist/vue-ui-rating-BGRWSTGr.cjs +1 -0
- package/dist/vue-ui-rating-DcJb7_bV.js +323 -0
- package/dist/{vue-ui-relation-circle-_5UsoCBf.js → vue-ui-relation-circle-f0fKvSSw.js} +6 -6
- package/dist/{vue-ui-relation-circle-0OvmIoRR.cjs → vue-ui-relation-circle-x4sKnxbi.cjs} +1 -1
- package/dist/{vue-ui-rings-Duu-Dbns.cjs → vue-ui-rings-B3mUyyQ9.cjs} +1 -1
- package/dist/{vue-ui-rings-BHVrR1L1.js → vue-ui-rings-M1PUv5Wu.js} +10 -10
- package/dist/{vue-ui-scatter-azoiHq_a.cjs → vue-ui-scatter-DF_nobsG.cjs} +1 -1
- package/dist/{vue-ui-scatter-CSfeAiML.js → vue-ui-scatter-DiQJtMz1.js} +11 -11
- package/dist/{vue-ui-screenshot-D2-GzcYt.cjs → vue-ui-screenshot-BdnW3WFN.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DhMpdJsm.js → vue-ui-screenshot-QRt5bT48.js} +1 -1
- package/dist/{vue-ui-skeleton-CYgbDsKG.js → vue-ui-skeleton-DEv_1TFa.js} +3 -3
- package/dist/{vue-ui-skeleton-yOWIPVsZ.cjs → vue-ui-skeleton-fqwO2mHD.cjs} +1 -1
- package/dist/{vue-ui-smiley-DDn0IZKJ.js → vue-ui-smiley-BAr3XuJG.js} +405 -320
- package/dist/vue-ui-smiley-D-zRYR9g.cjs +2 -0
- package/dist/{vue-ui-spark-trend-BMdLIhg7.cjs → vue-ui-spark-trend-Br0GTMx_.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DxwmzstI.js → vue-ui-spark-trend-CS6jl2aN.js} +5 -5
- package/dist/{vue-ui-sparkbar-yocSweJn.cjs → vue-ui-sparkbar-N8aFbuJv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Dk8VLc5p.js → vue-ui-sparkbar-tgfbnVYO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CdW6FTRw.cjs → vue-ui-sparkgauge--hgbxLQS.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-G7BowYq4.js → vue-ui-sparkgauge-CqH25hj7.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CkkEGb0a.js → vue-ui-sparkhistogram-Cry2PFGH.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BWulWwCi.cjs → vue-ui-sparkhistogram-vVRA6Z_l.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CaetICAe.cjs → vue-ui-sparkline-BZir7JxD.cjs} +1 -1
- package/dist/{vue-ui-sparkline-LBi6ypp4.js → vue-ui-sparkline-DXwqMlzQ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DxUkSfRG.js → vue-ui-sparkstackbar-CQjpberv.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CAJaJ3ZQ.cjs → vue-ui-sparkstackbar-Dc6tZvej.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BP1YHhjl.js → vue-ui-stackbar-BF0M1KJf.js} +11 -11
- package/dist/{vue-ui-stackbar-BPyxp0m8.cjs → vue-ui-stackbar-BGmTwxvv.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BYJWkk2_.js → vue-ui-strip-plot-C8dme7tS.js} +10 -10
- package/dist/{vue-ui-strip-plot-BJSzqxzi.cjs → vue-ui-strip-plot-DT9Od_To.cjs} +1 -1
- package/dist/{vue-ui-table-CWHUBpqz.js → vue-ui-table-BvbXppa1.js} +1 -1
- package/dist/{vue-ui-table-C0-NQWi3.cjs → vue-ui-table-DGmUNjR_.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-9oVqDvLC.cjs → vue-ui-table-heatmap-Ch2UwsIw.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-uYQph968.js → vue-ui-table-heatmap-ccoLJyce.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Bv39O2DT.js → vue-ui-table-sparkline-BZ8faxdR.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BHJAP-Uh.cjs → vue-ui-table-sparkline-DT5a8gHs.cjs} +1 -1
- package/dist/{vue-ui-thermometer-JLaF8-hy.js → vue-ui-thermometer-BOs1_H4X.js} +6 -6
- package/dist/{vue-ui-thermometer-CqcNegd7.cjs → vue-ui-thermometer-Biv2CIsy.cjs} +1 -1
- package/dist/{vue-ui-timer-fu2zcs6f.cjs → vue-ui-timer-CNpKGbIg.cjs} +1 -1
- package/dist/{vue-ui-timer-B2ZQBIVg.js → vue-ui-timer-DE_m5wxu.js} +5 -5
- package/dist/{vue-ui-tiremarks-CXuGp82M.js → vue-ui-tiremarks-CTMS_E0z.js} +6 -6
- package/dist/{vue-ui-tiremarks-DzrCVTcA.cjs → vue-ui-tiremarks-YU4wuZl3.cjs} +1 -1
- package/dist/{vue-ui-treemap-CubutXgp.js → vue-ui-treemap-5Dm82baA.js} +10 -10
- package/dist/{vue-ui-treemap-DmEpWWkN.cjs → vue-ui-treemap-C0E1_DGA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BpyY1mcc.cjs → vue-ui-vertical-bar-CVZHDENz.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Dqd4bZVC.js → vue-ui-vertical-bar-CVZI3v1Y.js} +10 -10
- package/dist/{vue-ui-waffle-D1n_ln-O.js → vue-ui-waffle-Bf4epEaH.js} +10 -10
- package/dist/{vue-ui-waffle-DzbRkTbY.cjs → vue-ui-waffle-DD09_Fdb.cjs} +1 -1
- package/dist/{vue-ui-wheel-BTJ9Ds5T.cjs → vue-ui-wheel-BybAQ0bR.cjs} +1 -1
- package/dist/{vue-ui-wheel-C-BFxhCO.js → vue-ui-wheel-DMvZZCzi.js} +6 -6
- package/dist/{vue-ui-word-cloud-DdbqYmZz.js → vue-ui-word-cloud-B8hdGDYI.js} +9 -9
- package/dist/{vue-ui-word-cloud-BZLUTH8A.cjs → vue-ui-word-cloud-MQ0kgdPw.cjs} +1 -1
- package/dist/{vue-ui-xy-BEB7zD0E.cjs → vue-ui-xy-B4C0WR56.cjs} +1 -1
- package/dist/{vue-ui-xy-CLJaG6lQ.js → vue-ui-xy-D3TaTkPR.js} +13 -13
- package/dist/{vue-ui-xy-canvas-DE1jTXbE.js → vue-ui-xy-canvas-ClETpddw.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CJHNw8ek.cjs → vue-ui-xy-canvas-qbn0PHMN.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PackageVersion-BqVp7cHC.cjs +0 -1
- package/dist/index-DQRLTu78.cjs +0 -9
- package/dist/vue-ui-donut-Cruh6AlQ.cjs +0 -1
- package/dist/vue-ui-rating-DV3d_vAO.cjs +0 -1
- package/dist/vue-ui-rating-DwTC908t.js +0 -271
- package/dist/vue-ui-smiley-BXV9UMjs.cjs +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as lt, o as at, e as
|
|
1
|
+
import { computed as k, ref as d, onMounted as Je, onBeforeUnmount as Ke, watch as Oe, openBlock as o, createElementBlock as n, normalizeClass as ie, normalizeStyle as Y, renderSlot as _, createBlock as H, createCommentVNode as v, unref as s, createSlots as Qe, withCtx as S, normalizeProps as Q, guardReactiveProps as Z, createVNode as Ie, createElementVNode as h, Fragment as m, renderList as I, toDisplayString as x, createTextVNode as De, nextTick as Ze, pushScopeId as et, popScopeId as tt } from "vue";
|
|
2
|
+
import { u as lt, o as at, e as Ae, g as ot, c as ut, b as st, d as Be, p as V, m as nt, G as rt, f as L, X as it, s as ee, w as vt, j as ct, H as F, i as X, k as b, n as te, t as dt, a as ht, x as yt, q as ft, r as pt } from "./index-B0CpCD8z.js";
|
|
3
3
|
import { t as gt, u as bt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as mt } from "./Title-
|
|
5
|
-
import { u as wt, U as kt } from "./usePrinter-
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as Ct } from "./Legend-
|
|
9
|
-
import $t from "./vue-ui-skeleton-
|
|
10
|
-
import Pt from "./vue-ui-accordion-
|
|
11
|
-
import { u as Me } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
const Ft = (
|
|
4
|
+
import { _ as mt } from "./Title-DlVZnHjs.js";
|
|
5
|
+
import { u as wt, U as kt } from "./usePrinter-Dr30K4cu.js";
|
|
6
|
+
import { D as _t } from "./DataTable-DAgyf9zN.js";
|
|
7
|
+
import { _ as xt } from "./Tooltip-CveCRFgK.js";
|
|
8
|
+
import { L as Ct } from "./Legend-DBhpIX2x.js";
|
|
9
|
+
import $t from "./vue-ui-skeleton-DEv_1TFa.js";
|
|
10
|
+
import Pt from "./vue-ui-accordion-CmENcGVW.js";
|
|
11
|
+
import { u as Me } from "./useNestedProp-DGWP4D-K.js";
|
|
12
|
+
import { _ as St } from "./PackageVersion-wB6dCDZw.js";
|
|
13
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = ["xmlns", "viewBox"], Yt = { key: 0 }, Xt = ["id"], Nt = ["stop-color"], Ot = ["offset", "stop-color"], It = ["offset", "stop-color"], Dt = ["stop-color"], At = { key: 1 }, Bt = ["id", "cx", "cy"], Mt = ["stop-color", "stop-opacity"], Gt = ["stop-color"], Vt = ["id"], jt = ["id"], Ht = /* @__PURE__ */ Ft(() => /* @__PURE__ */ h("feColorMatrix", {
|
|
15
15
|
type: "saturate",
|
|
16
16
|
values: "0"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), Rt = ["id"], Ut = ["flood-color"], Et = ["id"], Wt = ["flood-color"], qt = ["d", "stroke", "filter"], Jt = ["x1", "y1", "x2", "y2", "stroke", "filter"], Kt = ["cx", "cy", "r", "fill", "filter"], Qt = ["stroke", "d"], Zt = ["d", "fill", "stroke", "stroke-width", "filter"], el = { key: 0 }, tl = ["stroke", "d"], ll = { key: 0 }, al = ["d", "stroke", "stroke-width", "filter"], ol = ["d", "fill", "stroke", "stroke-width", "filter"], ul = { key: 1 }, sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], nl = ["cx", "cy", "r", "stroke"], rl = ["cx", "cy", "r", "fill"], il = { key: 0 }, vl = ["d", "fill", "onMouseenter", "onClick"], cl = { key: 1 }, dl = ["cx", "cy", "r", "fill"], hl = ["x", "y", "fill", "font-size"], yl = ["x", "y", "fill", "font-size"], fl = ["x", "y", "fill", "font-size"], pl = ["x", "y", "fill", "font-size"], gl = ["filter"], bl = { key: 0 }, ml = ["x", "y"], wl = { key: 1 }, kl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], _l = ["cx", "cy", "fill", "stroke", "filter", "onClick"], xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Cl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], $l = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Pl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Sl = { key: 2 }, Ll = ["x", "y", "width"], Fl = ["x", "y", "width"], zl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Tl = ["onClick"], Yl = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
23
|
-
},
|
|
23
|
+
}, Xl = { key: 1 }, Nl = ["innerHTML"], Ol = {
|
|
24
24
|
__name: "vue-ui-donut",
|
|
25
25
|
props: {
|
|
26
26
|
config: {
|
|
@@ -37,87 +37,87 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
emits: ["selectLegend", "selectDatapoint"],
|
|
40
|
-
setup(
|
|
41
|
-
const N =
|
|
40
|
+
setup(R, { expose: Ge, emit: ve }) {
|
|
41
|
+
const N = R, { vue_ui_donut: Ve } = lt(), U = k({
|
|
42
42
|
get() {
|
|
43
43
|
return !!N.dataset && N.dataset.length;
|
|
44
44
|
},
|
|
45
45
|
set(l) {
|
|
46
46
|
return l;
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), E = d(null), ce = d(null), de = d(null), le = d(null), he = d(0), ye = d(0), fe = d(0);
|
|
49
49
|
Je(() => {
|
|
50
50
|
pe();
|
|
51
51
|
}), Ke(() => {
|
|
52
52
|
le.value && le.value.disconnect();
|
|
53
53
|
});
|
|
54
54
|
function pe() {
|
|
55
|
-
if (at(N.dataset) ?
|
|
55
|
+
if (at(N.dataset) ? Ae({
|
|
56
56
|
componentName: "VueUiDonut",
|
|
57
57
|
type: "dataset"
|
|
58
|
-
}) : N.dataset.forEach((l,
|
|
58
|
+
}) : N.dataset.forEach((l, r) => {
|
|
59
59
|
ot({
|
|
60
60
|
datasetObject: l,
|
|
61
61
|
requiredAttributes: ["name", "values"]
|
|
62
62
|
}).forEach((t) => {
|
|
63
|
-
|
|
63
|
+
U.value = !1, Ae({
|
|
64
64
|
componentName: "VueUiDonut",
|
|
65
65
|
type: "datasetSerieAttribute",
|
|
66
66
|
property: t,
|
|
67
|
-
index:
|
|
67
|
+
index: r
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}), e.value.responsive) {
|
|
71
71
|
const l = gt(() => {
|
|
72
|
-
const { width:
|
|
73
|
-
chart:
|
|
72
|
+
const { width: r, height: t } = bt({
|
|
73
|
+
chart: E.value,
|
|
74
74
|
title: e.value.style.chart.title.text ? ce.value : null,
|
|
75
75
|
legend: e.value.style.chart.legend.show ? de.value : null
|
|
76
76
|
});
|
|
77
|
-
|
|
77
|
+
u.value.width = r, u.value.height = t;
|
|
78
78
|
});
|
|
79
|
-
le.value = new ResizeObserver(l), le.value.observe(
|
|
79
|
+
le.value = new ResizeObserver(l), le.value.observe(E.value.parentNode);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const w = d(ut()), je = d(null), ae = d(!1), ue = d(""), P = d(null), ge = d(0);
|
|
83
83
|
function be() {
|
|
84
84
|
const l = Me({
|
|
85
85
|
userConfig: N.config,
|
|
86
|
-
defaultConfig:
|
|
86
|
+
defaultConfig: Ve
|
|
87
87
|
});
|
|
88
88
|
return l.theme ? {
|
|
89
89
|
...Me({
|
|
90
90
|
userConfig: dt.vue_ui_donut[l.theme] || N.config,
|
|
91
91
|
defaultConfig: l
|
|
92
92
|
}),
|
|
93
|
-
customPalette: ht[l.theme] ||
|
|
93
|
+
customPalette: ht[l.theme] || V
|
|
94
94
|
} : l;
|
|
95
95
|
}
|
|
96
|
-
const e =
|
|
96
|
+
const e = k({
|
|
97
97
|
get: () => be(),
|
|
98
98
|
set: (l) => l
|
|
99
99
|
});
|
|
100
100
|
Oe(() => N.config, (l) => {
|
|
101
101
|
e.value = be(), pe(), he.value += 1, ye.value += 1, fe.value += 1;
|
|
102
102
|
}, { deep: !0 });
|
|
103
|
-
const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage:
|
|
104
|
-
elementId: `donut__${
|
|
103
|
+
const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: _e } = wt({
|
|
104
|
+
elementId: `donut__${w.value}`,
|
|
105
105
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
106
|
-
}),
|
|
106
|
+
}), xe = k(() => st(e.value.customPalette)), y = d({
|
|
107
107
|
dataLabels: {
|
|
108
108
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
109
109
|
},
|
|
110
110
|
showTable: e.value.table.show,
|
|
111
111
|
showTooltip: e.value.style.chart.tooltip.show
|
|
112
|
-
}),
|
|
112
|
+
}), u = d({
|
|
113
113
|
height: 360,
|
|
114
114
|
width: 512
|
|
115
|
-
}), W =
|
|
116
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
115
|
+
}), W = k(() => {
|
|
116
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = u.value.width * l, t = r > C.value ? C.value : r;
|
|
117
117
|
return t < 24 ? 24 : t;
|
|
118
|
-
}), M =
|
|
118
|
+
}), M = k(() => N.dataset.map((l, r) => ({
|
|
119
119
|
name: l.name,
|
|
120
|
-
color: Be(l.color) ||
|
|
120
|
+
color: Be(l.color) || xe.value[r] || V[r] || V[r % V.length],
|
|
121
121
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
122
122
|
absoluteValues: l.values,
|
|
123
123
|
comment: l.comment || ""
|
|
@@ -130,97 +130,97 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
130
130
|
value: l.value
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
133
|
-
const O = d([]), Ce = d(null), $e = d(null),
|
|
133
|
+
const O = d([]), Ce = d(null), $e = d(null), G = d(!1);
|
|
134
134
|
function Pe(l) {
|
|
135
|
-
const
|
|
135
|
+
const r = M.value.find((i, g) => g === l);
|
|
136
136
|
let a = z.value.find((i, g) => g === l).value;
|
|
137
137
|
if (O.value.includes(l)) {
|
|
138
138
|
let g = function() {
|
|
139
|
-
a > i ? (cancelAnimationFrame(Ce.value), z.value = z.value.map((
|
|
140
|
-
...
|
|
139
|
+
a > i ? (cancelAnimationFrame(Ce.value), z.value = z.value.map((p, re) => l === re ? {
|
|
140
|
+
...p,
|
|
141
141
|
value: i
|
|
142
|
-
} :
|
|
143
|
-
...
|
|
142
|
+
} : p), G.value = !1) : (G.value = !0, a += i * 0.025, z.value = z.value.map((p, re) => l === re ? {
|
|
143
|
+
...p,
|
|
144
144
|
value: a
|
|
145
|
-
} :
|
|
145
|
+
} : p), Ce.value = requestAnimationFrame(g));
|
|
146
146
|
};
|
|
147
|
-
O.value = O.value.filter((
|
|
148
|
-
const i =
|
|
147
|
+
O.value = O.value.filter((p) => p !== l);
|
|
148
|
+
const i = r.value;
|
|
149
149
|
g();
|
|
150
150
|
} else if (O.value.length < M.value.length - 1) {
|
|
151
151
|
let i = function() {
|
|
152
|
-
a < 0.1 ? (cancelAnimationFrame($e.value), O.value.push(l), z.value = z.value.map((g,
|
|
152
|
+
a < 0.1 ? (cancelAnimationFrame($e.value), O.value.push(l), z.value = z.value.map((g, p) => l === p ? {
|
|
153
153
|
...g,
|
|
154
154
|
value: 0
|
|
155
|
-
} : g),
|
|
155
|
+
} : g), G.value = !1) : (G.value = !0, a /= 1.1, z.value = z.value.map((g, p) => l === p ? {
|
|
156
156
|
...g,
|
|
157
157
|
value: a
|
|
158
158
|
} : g), $e.value = requestAnimationFrame(i));
|
|
159
159
|
};
|
|
160
160
|
i();
|
|
161
161
|
}
|
|
162
|
-
ve("selectLegend",
|
|
162
|
+
ve("selectLegend", D.value.map((i) => ({
|
|
163
163
|
name: i.name,
|
|
164
164
|
color: i.color,
|
|
165
165
|
value: i.value
|
|
166
166
|
})));
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const D = k(() => (z.value.forEach((l, r) => {
|
|
169
169
|
if ([null, void 0].includes(l.values))
|
|
170
170
|
return {
|
|
171
171
|
...l,
|
|
172
172
|
values: []
|
|
173
173
|
};
|
|
174
|
-
}), z.value.map((l,
|
|
174
|
+
}), z.value.map((l, r) => ({
|
|
175
175
|
...l,
|
|
176
|
-
seriesIndex:
|
|
177
|
-
})).filter((l,
|
|
176
|
+
seriesIndex: r
|
|
177
|
+
})).filter((l, r) => !O.value.includes(r)))), Se = k(() => N.dataset.map((l, r) => ({
|
|
178
178
|
name: l.name,
|
|
179
|
-
color: Be(l.color) ||
|
|
179
|
+
color: Be(l.color) || xe.value[r] || V[r] || V[r % V.length],
|
|
180
180
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
181
181
|
shape: "circle"
|
|
182
|
-
})).map((l,
|
|
182
|
+
})).map((l, r) => ({
|
|
183
183
|
...l,
|
|
184
184
|
proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
185
|
-
opacity: O.value.includes(
|
|
186
|
-
segregate: () => Pe(
|
|
187
|
-
isSegregated: O.value.includes(
|
|
188
|
-
}))),
|
|
185
|
+
opacity: O.value.includes(r) ? 0.5 : 1,
|
|
186
|
+
segregate: () => Pe(r),
|
|
187
|
+
isSegregated: O.value.includes(r)
|
|
188
|
+
}))), Re = k(() => ({
|
|
189
189
|
cy: "donut-div-legend",
|
|
190
190
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
191
191
|
color: e.value.style.chart.legend.color,
|
|
192
192
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
193
193
|
paddingBottom: 12,
|
|
194
194
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
195
|
-
})), C =
|
|
196
|
-
const l = Math.min(
|
|
195
|
+
})), C = k(() => {
|
|
196
|
+
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
197
197
|
return l < 55 ? 55 : l;
|
|
198
|
-
}),
|
|
199
|
-
const l = Math.max(...
|
|
198
|
+
}), f = k(() => nt({ series: D.value }, u.value.width / 2, u.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, W.value)), c = k(() => {
|
|
199
|
+
const l = Math.max(...D.value.map((t) => t.value)), r = D.value.map((t) => t.value / l);
|
|
200
200
|
return rt({
|
|
201
|
-
series:
|
|
201
|
+
series: r,
|
|
202
202
|
center: {
|
|
203
|
-
x:
|
|
204
|
-
y:
|
|
203
|
+
x: u.value.width / 2,
|
|
204
|
+
y: u.value.height / 2
|
|
205
205
|
},
|
|
206
|
-
maxRadius: Math.min(
|
|
206
|
+
maxRadius: Math.min(u.value.width, u.value.height) / 3
|
|
207
207
|
});
|
|
208
208
|
});
|
|
209
209
|
function j(l) {
|
|
210
|
-
return l.x >
|
|
210
|
+
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
return l.middlePoint.y >
|
|
212
|
+
function Ue(l) {
|
|
213
|
+
return l.middlePoint.y > u.value.height / 2 ? F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
|
|
214
214
|
}
|
|
215
215
|
function T(l) {
|
|
216
216
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
217
217
|
}
|
|
218
|
-
function se(l,
|
|
219
|
-
const t = l.value /
|
|
218
|
+
function se(l, r) {
|
|
219
|
+
const t = l.value / Ee(r);
|
|
220
220
|
return isNaN(t) ? 0 : X(
|
|
221
221
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
222
222
|
t * 100,
|
|
223
|
-
|
|
223
|
+
L({
|
|
224
224
|
v: t * 100,
|
|
225
225
|
s: "%",
|
|
226
226
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -228,23 +228,23 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
228
228
|
{ datapoint: l }
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
return [...l].map((
|
|
231
|
+
function Ee(l) {
|
|
232
|
+
return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
233
233
|
}
|
|
234
|
-
const $ =
|
|
235
|
-
function Fe({ datapoint: l, relativeIndex:
|
|
236
|
-
ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, P.value =
|
|
234
|
+
const $ = k(() => D.value.map((l) => l.value).reduce((l, r) => l + r, 0)), Le = k(() => $.value / D.value.length), ne = d(null), q = d(!1);
|
|
235
|
+
function Fe({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
|
|
236
|
+
ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, P.value = r;
|
|
237
237
|
let i = "";
|
|
238
238
|
const g = e.value.style.chart.tooltip.customFormat;
|
|
239
239
|
if (q.value = !1, yt(g))
|
|
240
240
|
try {
|
|
241
|
-
const
|
|
241
|
+
const p = g({
|
|
242
242
|
seriesIndex: t,
|
|
243
243
|
datapoint: l,
|
|
244
244
|
series: M.value,
|
|
245
245
|
config: e.value
|
|
246
246
|
});
|
|
247
|
-
typeof
|
|
247
|
+
typeof p == "string" && (ue.value = p, q.value = !0);
|
|
248
248
|
} catch {
|
|
249
249
|
console.warn("Custom format cannot be applied."), q.value = !1;
|
|
250
250
|
}
|
|
@@ -252,7 +252,7 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
252
252
|
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${X(
|
|
253
253
|
e.value.style.chart.layout.labels.value.formatter,
|
|
254
254
|
l.value,
|
|
255
|
-
|
|
255
|
+
L({
|
|
256
256
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
257
257
|
v: l.value,
|
|
258
258
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -260,61 +260,61 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
260
260
|
}),
|
|
261
261
|
{
|
|
262
262
|
datapoint: l,
|
|
263
|
-
relativeIndex:
|
|
263
|
+
relativeIndex: r,
|
|
264
264
|
seriesIndex: t
|
|
265
265
|
}
|
|
266
266
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
267
|
-
const
|
|
267
|
+
const p = X(
|
|
268
268
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
269
269
|
l.proportion * 100,
|
|
270
|
-
|
|
270
|
+
L({
|
|
271
271
|
v: l.proportion * 100,
|
|
272
272
|
s: "%",
|
|
273
273
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
274
274
|
}),
|
|
275
275
|
{
|
|
276
276
|
datapoint: l,
|
|
277
|
-
relativeIndex:
|
|
277
|
+
relativeIndex: r,
|
|
278
278
|
seriesIndex: t
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
|
-
e.value.style.chart.tooltip.showValue ? i += `<span>(${
|
|
281
|
+
e.value.style.chart.tooltip.showValue ? i += `<span>(${p})</span></div>` : i += `<b>${p}</b></div>`;
|
|
282
282
|
}
|
|
283
283
|
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ue.value = `<div>${i}</div>`;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
function J(l) {
|
|
287
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${
|
|
287
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${w.value})` : "";
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
const l =
|
|
289
|
+
const A = k(() => {
|
|
290
|
+
const l = D.value.map((t) => ({
|
|
291
291
|
name: t.name,
|
|
292
292
|
color: t.color
|
|
293
|
-
})),
|
|
294
|
-
return { head: l, body:
|
|
293
|
+
})), r = D.value.map((t) => t.value);
|
|
294
|
+
return { head: l, body: r };
|
|
295
295
|
});
|
|
296
296
|
function ze() {
|
|
297
297
|
Ze(() => {
|
|
298
|
-
const l =
|
|
298
|
+
const l = A.value.head.map((a, i) => [[
|
|
299
299
|
a.name
|
|
300
|
-
], [
|
|
300
|
+
], [A.value.body[i]], [isNaN(A.value.body[i] / $.value) ? "-" : A.value.body[i] / $.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = ft(r);
|
|
301
301
|
pt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
const oe =
|
|
304
|
+
const oe = k(() => {
|
|
305
305
|
const l = [
|
|
306
306
|
' <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>',
|
|
307
|
-
|
|
307
|
+
L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
308
308
|
"100%"
|
|
309
|
-
],
|
|
310
|
-
const
|
|
309
|
+
], r = A.value.head.map((i, g) => {
|
|
310
|
+
const p = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
311
311
|
return [
|
|
312
312
|
{
|
|
313
313
|
color: i.color,
|
|
314
314
|
name: i.name
|
|
315
315
|
},
|
|
316
|
-
|
|
317
|
-
isNaN(
|
|
316
|
+
p,
|
|
317
|
+
isNaN(A.value.body[g] / $.value) ? "-" : (A.value.body[g] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
318
318
|
];
|
|
319
319
|
}), t = {
|
|
320
320
|
th: {
|
|
@@ -336,52 +336,52 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
336
336
|
e.value.table.columnNames.percentage
|
|
337
337
|
],
|
|
338
338
|
head: l,
|
|
339
|
-
body:
|
|
339
|
+
body: r,
|
|
340
340
|
config: t
|
|
341
341
|
};
|
|
342
342
|
}), K = d(!1);
|
|
343
343
|
function We(l) {
|
|
344
344
|
K.value = l, ge.value += 1;
|
|
345
345
|
}
|
|
346
|
-
const Te =
|
|
346
|
+
const Te = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
347
347
|
function qe(l) {
|
|
348
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
348
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
|
|
349
349
|
}
|
|
350
|
-
function B(l,
|
|
351
|
-
ve("selectDatapoint", { datapoint: l, index:
|
|
350
|
+
function B(l, r) {
|
|
351
|
+
ve("selectDatapoint", { datapoint: l, index: r });
|
|
352
352
|
}
|
|
353
353
|
function Ye() {
|
|
354
|
-
|
|
354
|
+
y.value.showTable = !y.value.showTable;
|
|
355
355
|
}
|
|
356
356
|
function Xe() {
|
|
357
|
-
|
|
357
|
+
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
358
358
|
}
|
|
359
359
|
function Ne() {
|
|
360
|
-
|
|
360
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
361
361
|
}
|
|
362
|
-
return
|
|
362
|
+
return Ge({
|
|
363
363
|
getData: He,
|
|
364
364
|
generatePdf: ke,
|
|
365
365
|
generateCsv: ze,
|
|
366
|
-
generateImage:
|
|
366
|
+
generateImage: _e,
|
|
367
367
|
toggleTable: Ye,
|
|
368
368
|
toggleLabels: Xe,
|
|
369
369
|
toggleTooltip: Ne
|
|
370
|
-
}), (l,
|
|
370
|
+
}), (l, r) => (o(), n("div", {
|
|
371
371
|
ref_key: "donutChart",
|
|
372
|
-
ref:
|
|
372
|
+
ref: E,
|
|
373
373
|
class: ie(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
374
374
|
style: Y(`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}`),
|
|
375
|
-
id: `donut__${
|
|
375
|
+
id: `donut__${w.value}`
|
|
376
376
|
}, [
|
|
377
|
-
|
|
378
|
-
e.value.style.chart.title.text ? (
|
|
377
|
+
_(l.$slots, "userConfig", {}, void 0, !0),
|
|
378
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
379
379
|
key: 0,
|
|
380
380
|
ref_key: "chartTitle",
|
|
381
381
|
ref: ce,
|
|
382
382
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
383
383
|
}, [
|
|
384
|
-
(
|
|
384
|
+
(o(), H(mt, {
|
|
385
385
|
key: `title_${he.value}`,
|
|
386
386
|
config: {
|
|
387
387
|
title: {
|
|
@@ -395,7 +395,7 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
395
395
|
}
|
|
396
396
|
}, null, 8, ["config"]))
|
|
397
397
|
], 512)) : v("", !0),
|
|
398
|
-
e.value.userOptions.show &&
|
|
398
|
+
e.value.userOptions.show && U.value ? (o(), H(kt, {
|
|
399
399
|
ref_key: "details",
|
|
400
400
|
ref: je,
|
|
401
401
|
key: `user_option_${ge.value}`,
|
|
@@ -403,7 +403,7 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
403
403
|
color: e.value.style.chart.color,
|
|
404
404
|
isPrinting: s(me),
|
|
405
405
|
isImaging: s(we),
|
|
406
|
-
uid:
|
|
406
|
+
uid: w.value,
|
|
407
407
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
408
408
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
409
409
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -412,165 +412,181 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
412
412
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
413
413
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
414
414
|
isFullscreen: K.value,
|
|
415
|
-
chartElement:
|
|
415
|
+
chartElement: E.value,
|
|
416
416
|
position: e.value.userOptions.position,
|
|
417
|
-
isTooltip:
|
|
417
|
+
isTooltip: y.value.showTooltip,
|
|
418
418
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
419
419
|
onToggleFullscreen: We,
|
|
420
420
|
onGeneratePdf: s(ke),
|
|
421
421
|
onGenerateCsv: ze,
|
|
422
|
-
onGenerateImage: s(
|
|
422
|
+
onGenerateImage: s(_e),
|
|
423
423
|
onToggleTable: Ye,
|
|
424
424
|
onToggleLabels: Xe,
|
|
425
425
|
onToggleTooltip: Ne
|
|
426
426
|
}, Qe({ _: 2 }, [
|
|
427
427
|
l.$slots.optionTooltip ? {
|
|
428
428
|
name: "optionTooltip",
|
|
429
|
-
fn:
|
|
430
|
-
|
|
429
|
+
fn: S(() => [
|
|
430
|
+
_(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
431
431
|
]),
|
|
432
432
|
key: "0"
|
|
433
433
|
} : void 0,
|
|
434
434
|
l.$slots.optionPdf ? {
|
|
435
435
|
name: "optionPdf",
|
|
436
|
-
fn:
|
|
437
|
-
|
|
436
|
+
fn: S(() => [
|
|
437
|
+
_(l.$slots, "optionPdf", {}, void 0, !0)
|
|
438
438
|
]),
|
|
439
439
|
key: "1"
|
|
440
440
|
} : void 0,
|
|
441
441
|
l.$slots.optionCsv ? {
|
|
442
442
|
name: "optionCsv",
|
|
443
|
-
fn:
|
|
444
|
-
|
|
443
|
+
fn: S(() => [
|
|
444
|
+
_(l.$slots, "optionCsv", {}, void 0, !0)
|
|
445
445
|
]),
|
|
446
446
|
key: "2"
|
|
447
447
|
} : void 0,
|
|
448
448
|
l.$slots.optionImg ? {
|
|
449
449
|
name: "optionImg",
|
|
450
|
-
fn:
|
|
451
|
-
|
|
450
|
+
fn: S(() => [
|
|
451
|
+
_(l.$slots, "optionImg", {}, void 0, !0)
|
|
452
452
|
]),
|
|
453
453
|
key: "3"
|
|
454
454
|
} : void 0,
|
|
455
455
|
l.$slots.optionTable ? {
|
|
456
456
|
name: "optionTable",
|
|
457
|
-
fn:
|
|
458
|
-
|
|
457
|
+
fn: S(() => [
|
|
458
|
+
_(l.$slots, "optionTable", {}, void 0, !0)
|
|
459
459
|
]),
|
|
460
460
|
key: "4"
|
|
461
461
|
} : void 0,
|
|
462
462
|
l.$slots.optionLabels ? {
|
|
463
463
|
name: "optionLabels",
|
|
464
|
-
fn:
|
|
465
|
-
|
|
464
|
+
fn: S(() => [
|
|
465
|
+
_(l.$slots, "optionLabels", {}, void 0, !0)
|
|
466
466
|
]),
|
|
467
467
|
key: "5"
|
|
468
468
|
} : void 0,
|
|
469
469
|
l.$slots.optionFullscreen ? {
|
|
470
470
|
name: "optionFullscreen",
|
|
471
|
-
fn:
|
|
472
|
-
|
|
471
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
472
|
+
_(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
473
473
|
]),
|
|
474
474
|
key: "6"
|
|
475
475
|
} : void 0
|
|
476
476
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
477
|
-
|
|
477
|
+
U.value ? (o(), n("svg", {
|
|
478
478
|
key: 2,
|
|
479
479
|
xmlns: s(it),
|
|
480
480
|
class: ie({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
481
|
-
viewBox: `0 0 ${
|
|
481
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
482
482
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
483
483
|
}, [
|
|
484
|
-
Ie(
|
|
485
|
-
e.value.type === "classic" ? (
|
|
486
|
-
e.value.style.chart.useGradient ? (
|
|
484
|
+
Ie(St),
|
|
485
|
+
e.value.type === "classic" ? (o(), n("defs", Yt, [
|
|
486
|
+
e.value.style.chart.useGradient ? (o(), n("radialGradient", {
|
|
487
487
|
key: 0,
|
|
488
|
-
id: `gradient_${
|
|
488
|
+
id: `gradient_${w.value}`
|
|
489
489
|
}, [
|
|
490
|
-
|
|
490
|
+
h("stop", {
|
|
491
491
|
offset: "0%",
|
|
492
492
|
"stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
|
|
493
493
|
"stop-opacity": "0"
|
|
494
494
|
}, null, 8, Nt),
|
|
495
|
-
|
|
495
|
+
h("stop", {
|
|
496
496
|
offset: `${(1 - W.value / C.value) * 100}%`,
|
|
497
497
|
"stop-color": s(ee)("#FFFFFF", 0),
|
|
498
498
|
"stop-opacity": "0"
|
|
499
499
|
}, null, 8, Ot),
|
|
500
|
-
|
|
500
|
+
h("stop", {
|
|
501
501
|
offset: `${(1 - W.value / C.value / 2) * 100}%`,
|
|
502
502
|
"stop-color": s(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
503
503
|
}, null, 8, It),
|
|
504
|
-
|
|
504
|
+
h("stop", {
|
|
505
505
|
offset: "100%",
|
|
506
506
|
"stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
|
|
507
507
|
"stop-opacity": "0"
|
|
508
|
-
}, null, 8,
|
|
508
|
+
}, null, 8, Dt)
|
|
509
509
|
], 8, Xt)) : v("", !0)
|
|
510
510
|
])) : v("", !0),
|
|
511
|
-
e.value.type === "polar" ? (
|
|
512
|
-
(
|
|
513
|
-
id: `polar_gradient_${a}_${
|
|
514
|
-
cx: t.middlePoint.x /
|
|
515
|
-
cy: t.middlePoint.y /
|
|
511
|
+
e.value.type === "polar" ? (o(), n("defs", At, [
|
|
512
|
+
(o(!0), n(m, null, I(c.value, (t, a) => (o(), n("radialGradient", {
|
|
513
|
+
id: `polar_gradient_${a}_${w.value}`,
|
|
514
|
+
cx: t.middlePoint.x / u.value.width * 100 + "%",
|
|
515
|
+
cy: t.middlePoint.y / u.value.height * 100 + "%",
|
|
516
516
|
r: "62%"
|
|
517
517
|
}, [
|
|
518
|
-
|
|
518
|
+
h("stop", {
|
|
519
519
|
offset: "0%",
|
|
520
|
-
"stop-color": s(vt)(
|
|
520
|
+
"stop-color": s(vt)(f.value[a].color, 0.05),
|
|
521
521
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
522
522
|
}, null, 8, Mt),
|
|
523
|
-
|
|
523
|
+
h("stop", {
|
|
524
524
|
offset: "100%",
|
|
525
|
-
"stop-color":
|
|
526
|
-
}, null, 8,
|
|
525
|
+
"stop-color": f.value[a].color
|
|
526
|
+
}, null, 8, Gt)
|
|
527
527
|
], 8, Bt))), 256))
|
|
528
528
|
])) : v("", !0),
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
id: `blur_${
|
|
529
|
+
h("defs", null, [
|
|
530
|
+
h("filter", {
|
|
531
|
+
id: `blur_${w.value}`,
|
|
532
532
|
x: "-50%",
|
|
533
533
|
y: "-50%",
|
|
534
534
|
width: "200%",
|
|
535
535
|
height: "200%"
|
|
536
536
|
}, [
|
|
537
|
-
|
|
537
|
+
h("feGaussianBlur", {
|
|
538
538
|
in: "SourceGraphic",
|
|
539
539
|
stdDeviation: 2,
|
|
540
|
-
id: `blur_std_${
|
|
540
|
+
id: `blur_std_${w.value}`
|
|
541
541
|
}, null, 8, jt),
|
|
542
542
|
Ht
|
|
543
|
-
], 8,
|
|
544
|
-
|
|
545
|
-
id: `shadow_${
|
|
543
|
+
], 8, Vt),
|
|
544
|
+
h("filter", {
|
|
545
|
+
id: `shadow_${w.value}`,
|
|
546
546
|
"color-interpolation-filters": "sRGB"
|
|
547
547
|
}, [
|
|
548
|
-
|
|
548
|
+
h("feDropShadow", {
|
|
549
549
|
dx: "0",
|
|
550
550
|
dy: "0",
|
|
551
551
|
stdDeviation: "10",
|
|
552
552
|
"flood-opacity": "0.5",
|
|
553
553
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
554
|
-
}, null, 8,
|
|
555
|
-
], 8,
|
|
554
|
+
}, null, 8, Ut)
|
|
555
|
+
], 8, Rt),
|
|
556
|
+
h("filter", {
|
|
557
|
+
id: `drop_shadow_${w.value}`,
|
|
558
|
+
"color-interpolation-filters": "sRGB",
|
|
559
|
+
x: "-50%",
|
|
560
|
+
y: "-50%",
|
|
561
|
+
width: "200%",
|
|
562
|
+
height: "200%"
|
|
563
|
+
}, [
|
|
564
|
+
h("feDropShadow", {
|
|
565
|
+
dx: "0",
|
|
566
|
+
dy: "0",
|
|
567
|
+
stdDeviation: "3",
|
|
568
|
+
"flood-opacity": "1",
|
|
569
|
+
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
570
|
+
}, null, 8, Wt)
|
|
571
|
+
], 8, Et)
|
|
556
572
|
]),
|
|
557
|
-
e.value.type === "classic" ? (
|
|
558
|
-
T(t) &&
|
|
573
|
+
e.value.type === "classic" ? (o(!0), n(m, { key: 2 }, I(f.value, (t, a) => (o(), n("g", null, [
|
|
574
|
+
T(t) && y.value.dataLabels.show ? (o(), n("path", {
|
|
559
575
|
key: 0,
|
|
560
|
-
d: s(ct)(t, { x:
|
|
576
|
+
d: s(ct)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, W.value),
|
|
561
577
|
stroke: t.color,
|
|
562
578
|
"stroke-width": "1",
|
|
563
579
|
"stroke-linecap": "round",
|
|
564
580
|
"stroke-linejoin": "round",
|
|
565
581
|
fill: "none",
|
|
566
582
|
filter: J(a)
|
|
567
|
-
}, null, 8,
|
|
583
|
+
}, null, 8, qt)) : v("", !0)
|
|
568
584
|
]))), 256)) : v("", !0),
|
|
569
|
-
e.value.type === "polar" ? (
|
|
570
|
-
T(t) &&
|
|
585
|
+
e.value.type === "polar" ? (o(!0), n(m, { key: 3 }, I(f.value, (t, a) => (o(), n("g", null, [
|
|
586
|
+
T(t) && y.value.dataLabels.show ? (o(), n("line", {
|
|
571
587
|
key: 0,
|
|
572
|
-
x1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX:
|
|
573
|
-
y1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX:
|
|
588
|
+
x1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
589
|
+
y1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
574
590
|
x2: c.value[a].middlePoint.x,
|
|
575
591
|
y2: c.value[a].middlePoint.y,
|
|
576
592
|
stroke: t.color,
|
|
@@ -579,77 +595,87 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
579
595
|
"stroke-linejoin": "round",
|
|
580
596
|
fill: "none",
|
|
581
597
|
filter: J(a)
|
|
582
|
-
}, null, 8,
|
|
598
|
+
}, null, 8, Jt)) : v("", !0)
|
|
583
599
|
]))), 256)) : v("", !0),
|
|
584
|
-
e.value.type === "classic" ? (
|
|
600
|
+
e.value.type === "classic" ? (o(), n("circle", {
|
|
585
601
|
key: 4,
|
|
586
|
-
cx:
|
|
587
|
-
cy:
|
|
602
|
+
cx: u.value.width / 2,
|
|
603
|
+
cy: u.value.height / 2,
|
|
588
604
|
r: C.value <= 0 ? 10 : C.value,
|
|
589
605
|
fill: e.value.style.chart.backgroundColor,
|
|
590
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${
|
|
591
|
-
}, null, 8,
|
|
592
|
-
$.value && e.value.type === "classic" ? (
|
|
593
|
-
(
|
|
606
|
+
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${w.value})` : ""
|
|
607
|
+
}, null, 8, Kt)) : v("", !0),
|
|
608
|
+
$.value && e.value.type === "classic" ? (o(), n(m, { key: 5 }, [
|
|
609
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
594
610
|
stroke: e.value.style.chart.backgroundColor,
|
|
595
611
|
d: t.arcSlice,
|
|
596
612
|
fill: "#FFFFFF"
|
|
597
|
-
}, null, 8,
|
|
598
|
-
(
|
|
613
|
+
}, null, 8, Qt))), 256)),
|
|
614
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
599
615
|
class: "vue-ui-donut-arc-path",
|
|
600
616
|
d: t.arcSlice,
|
|
601
617
|
fill: s(ee)(t.color, 80),
|
|
602
618
|
stroke: e.value.style.chart.backgroundColor,
|
|
603
619
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
604
620
|
filter: J(a)
|
|
605
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Zt))), 256))
|
|
606
622
|
], 64)) : v("", !0),
|
|
607
|
-
$.value && e.value.type === "polar" ? (
|
|
608
|
-
|
|
609
|
-
(
|
|
623
|
+
$.value && e.value.type === "polar" ? (o(), n(m, { key: 6 }, [
|
|
624
|
+
f.value.length > 1 ? (o(), n("g", el, [
|
|
625
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
610
626
|
stroke: e.value.style.chart.backgroundColor,
|
|
611
627
|
d: c.value[a].path,
|
|
612
628
|
fill: "#FFFFFF"
|
|
613
|
-
}, null, 8,
|
|
614
|
-
|
|
629
|
+
}, null, 8, tl))), 256)),
|
|
630
|
+
e.value.style.chart.layout.donut.useShadow ? (o(), n("g", ll, [
|
|
631
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
632
|
+
class: "vue-ui-donut-arc-path",
|
|
633
|
+
d: c.value[a].path,
|
|
634
|
+
fill: "transparent",
|
|
635
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
636
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
637
|
+
filter: `url(#drop_shadow_${w.value})`
|
|
638
|
+
}, null, 8, al))), 256))
|
|
639
|
+
])) : v("", !0),
|
|
640
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
615
641
|
class: "vue-ui-donut-arc-path",
|
|
616
642
|
d: c.value[a].path,
|
|
617
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
643
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${w.value})` : t.color,
|
|
618
644
|
stroke: e.value.style.chart.backgroundColor,
|
|
619
645
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
620
646
|
filter: J(a)
|
|
621
|
-
}, null, 8,
|
|
622
|
-
])) : (
|
|
623
|
-
|
|
624
|
-
cx:
|
|
625
|
-
cy:
|
|
647
|
+
}, null, 8, ol))), 256))
|
|
648
|
+
])) : (o(), n("g", ul, [
|
|
649
|
+
h("circle", {
|
|
650
|
+
cx: u.value.width / 2,
|
|
651
|
+
cy: u.value.height / 2,
|
|
626
652
|
r: C.value,
|
|
627
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
653
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${w.value})` : f.value[0].color,
|
|
628
654
|
stroke: e.value.style.chart.backgroundColor,
|
|
629
655
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
630
|
-
}, null, 8,
|
|
656
|
+
}, null, 8, sl)
|
|
631
657
|
]))
|
|
632
|
-
], 64)) : (
|
|
658
|
+
], 64)) : (o(), n("circle", {
|
|
633
659
|
key: 7,
|
|
634
|
-
cx:
|
|
635
|
-
cy:
|
|
660
|
+
cx: u.value.width / 2,
|
|
661
|
+
cy: u.value.height / 2,
|
|
636
662
|
r: C.value <= 0 ? 10 : C.value,
|
|
637
663
|
fill: "transparent",
|
|
638
664
|
stroke: e.value.style.chart.backgroundColor
|
|
639
|
-
}, null, 8,
|
|
640
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
665
|
+
}, null, 8, nl)),
|
|
666
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
|
|
641
667
|
key: 8,
|
|
642
|
-
cx:
|
|
643
|
-
cy:
|
|
668
|
+
cx: u.value.width / 2,
|
|
669
|
+
cy: u.value.height / 2,
|
|
644
670
|
r: (
|
|
645
671
|
/* This might require adjustments */
|
|
646
672
|
C.value <= 0 ? 10 : C.value
|
|
647
673
|
),
|
|
648
|
-
fill: `url(#gradient_${
|
|
649
|
-
}, null, 8,
|
|
650
|
-
$.value ? (
|
|
651
|
-
|
|
652
|
-
(
|
|
674
|
+
fill: `url(#gradient_${w.value})`
|
|
675
|
+
}, null, 8, rl)) : v("", !0),
|
|
676
|
+
$.value ? (o(), n(m, { key: 9 }, [
|
|
677
|
+
f.value.length > 1 || e.value.type === "classic" ? (o(), n("g", il, [
|
|
678
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
|
|
653
679
|
"data-cy-donut-trap": "",
|
|
654
680
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
655
681
|
fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
@@ -659,113 +685,113 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
659
685
|
seriesIndex: t.seriesIndex,
|
|
660
686
|
show: !0
|
|
661
687
|
}),
|
|
662
|
-
onMouseleave:
|
|
688
|
+
onMouseleave: r[0] || (r[0] = (i) => {
|
|
663
689
|
ae.value = !1, P.value = null;
|
|
664
690
|
}),
|
|
665
691
|
onClick: (i) => B(t, a)
|
|
666
|
-
}, null, 40,
|
|
667
|
-
])) : (
|
|
668
|
-
|
|
669
|
-
cx:
|
|
670
|
-
cy:
|
|
692
|
+
}, null, 40, vl))), 256))
|
|
693
|
+
])) : (o(), n("g", cl, [
|
|
694
|
+
h("circle", {
|
|
695
|
+
cx: u.value.width / 2,
|
|
696
|
+
cy: u.value.height / 2,
|
|
671
697
|
r: C.value,
|
|
672
698
|
fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
|
|
673
699
|
"data-cy-donut-trap": "",
|
|
674
|
-
onMouseenter:
|
|
675
|
-
datapoint:
|
|
700
|
+
onMouseenter: r[1] || (r[1] = (t) => Fe({
|
|
701
|
+
datapoint: f.value[0],
|
|
676
702
|
relativeIndex: 0,
|
|
677
|
-
seriesIndex:
|
|
703
|
+
seriesIndex: f.value[0].seriesIndex,
|
|
678
704
|
show: !0
|
|
679
705
|
})),
|
|
680
|
-
onMouseleave:
|
|
706
|
+
onMouseleave: r[2] || (r[2] = (t) => {
|
|
681
707
|
ae.value = !1, P.value = null;
|
|
682
708
|
}),
|
|
683
|
-
onClick:
|
|
684
|
-
}, null, 40,
|
|
709
|
+
onClick: r[3] || (r[3] = (t) => B(f.value[0], l.i))
|
|
710
|
+
}, null, 40, dl)
|
|
685
711
|
]))
|
|
686
712
|
], 64)) : v("", !0),
|
|
687
|
-
e.value.type === "classic" ? (
|
|
688
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
713
|
+
e.value.type === "classic" ? (o(), n(m, { key: 10 }, [
|
|
714
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
689
715
|
key: 0,
|
|
690
716
|
"text-anchor": "middle",
|
|
691
|
-
x:
|
|
692
|
-
y:
|
|
717
|
+
x: u.value.width / 2,
|
|
718
|
+
y: u.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,
|
|
693
719
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
694
720
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
695
721
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
696
|
-
},
|
|
697
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
722
|
+
}, x(e.value.style.chart.layout.labels.hollow.total.text), 13, hl)) : v("", !0),
|
|
723
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
698
724
|
key: 1,
|
|
699
725
|
"text-anchor": "middle",
|
|
700
|
-
x:
|
|
701
|
-
y:
|
|
726
|
+
x: u.value.width / 2,
|
|
727
|
+
y: u.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,
|
|
702
728
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
703
729
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
704
730
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
705
|
-
},
|
|
731
|
+
}, x(s(X)(
|
|
706
732
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
707
733
|
$.value,
|
|
708
|
-
s(
|
|
734
|
+
s(L)({
|
|
709
735
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
710
736
|
v: $.value,
|
|
711
737
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
712
738
|
})
|
|
713
|
-
)), 13,
|
|
714
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
739
|
+
)), 13, yl)) : v("", !0),
|
|
740
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
715
741
|
key: 2,
|
|
716
742
|
"text-anchor": "middle",
|
|
717
|
-
x:
|
|
718
|
-
y:
|
|
743
|
+
x: u.value.width / 2,
|
|
744
|
+
y: u.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,
|
|
719
745
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
720
746
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
721
747
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
722
|
-
},
|
|
723
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
748
|
+
}, x(e.value.style.chart.layout.labels.hollow.average.text), 13, fl)) : v("", !0),
|
|
749
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
724
750
|
key: 3,
|
|
725
751
|
"text-anchor": "middle",
|
|
726
|
-
x:
|
|
727
|
-
y:
|
|
752
|
+
x: u.value.width / 2,
|
|
753
|
+
y: u.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,
|
|
728
754
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
729
755
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
730
756
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
731
|
-
},
|
|
757
|
+
}, x(G.value ? "--" : s(X)(
|
|
732
758
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
733
|
-
|
|
734
|
-
s(
|
|
759
|
+
Le.value,
|
|
760
|
+
s(L)({
|
|
735
761
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
736
|
-
v:
|
|
762
|
+
v: Le.value,
|
|
737
763
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
738
764
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
739
765
|
})
|
|
740
|
-
)), 13,
|
|
766
|
+
)), 13, pl)) : v("", !0)
|
|
741
767
|
], 64)) : v("", !0),
|
|
742
|
-
(
|
|
768
|
+
(o(!0), n(m, null, I(f.value, (t, a) => (o(), n("g", {
|
|
743
769
|
filter: J(a),
|
|
744
770
|
class: ie({ animated: e.value.useCssAnimation })
|
|
745
771
|
}, [
|
|
746
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
747
|
-
(
|
|
772
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", bl, [
|
|
773
|
+
(o(), n("foreignObject", {
|
|
748
774
|
x: s(b)(t, !0).anchor === "end" ? s(b)(t).x - 120 : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - 60 : s(b)(t).x,
|
|
749
775
|
y: s(te)(t) - (Te.value ? 20 : 0),
|
|
750
776
|
width: "120",
|
|
751
777
|
height: "60",
|
|
752
778
|
style: { overflow: "visible" }
|
|
753
779
|
}, [
|
|
754
|
-
|
|
755
|
-
|
|
780
|
+
h("div", null, [
|
|
781
|
+
_(l.$slots, "dataLabel", Q(Z({
|
|
756
782
|
datapoint: t,
|
|
757
783
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
|
|
758
784
|
isSafari: Te.value,
|
|
759
|
-
isVisible: T(t) &&
|
|
785
|
+
isVisible: T(t) && y.value.dataLabels.show,
|
|
760
786
|
textAlign: s(b)(t, !0, 16, !0).anchor,
|
|
761
787
|
flexAlign: s(b)(t, !0, 16).anchor,
|
|
762
|
-
percentage: se(t,
|
|
788
|
+
percentage: se(t, f.value)
|
|
763
789
|
})), void 0, !0)
|
|
764
790
|
])
|
|
765
|
-
], 8,
|
|
766
|
-
])) : (
|
|
767
|
-
e.value.type === "classic" ? (
|
|
768
|
-
T(t) &&
|
|
791
|
+
], 8, ml))
|
|
792
|
+
])) : (o(), n("g", wl, [
|
|
793
|
+
e.value.type === "classic" ? (o(), n(m, { key: 0 }, [
|
|
794
|
+
T(t) && y.value.dataLabels.show ? (o(), n("circle", {
|
|
769
795
|
key: 0,
|
|
770
796
|
cx: s(b)(t).x,
|
|
771
797
|
cy: s(te)(t) - 3.5,
|
|
@@ -773,25 +799,25 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
773
799
|
stroke: e.value.style.chart.backgroundColor,
|
|
774
800
|
"stroke-width": 1,
|
|
775
801
|
r: 3,
|
|
776
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${
|
|
802
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${w.value})`,
|
|
777
803
|
onClick: (i) => B(t, a)
|
|
778
|
-
}, null, 8,
|
|
804
|
+
}, null, 8, kl)) : v("", !0)
|
|
779
805
|
], 64)) : v("", !0),
|
|
780
|
-
e.value.type === "polar" ? (
|
|
781
|
-
T(t) &&
|
|
806
|
+
e.value.type === "polar" ? (o(), n(m, { key: 1 }, [
|
|
807
|
+
T(t) && y.value.dataLabels.show ? (o(), n("circle", {
|
|
782
808
|
key: 0,
|
|
783
|
-
cx: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX:
|
|
784
|
-
cy: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX:
|
|
809
|
+
cx: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
810
|
+
cy: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
785
811
|
fill: t.color,
|
|
786
812
|
stroke: e.value.style.chart.backgroundColor,
|
|
787
813
|
"stroke-width": 1,
|
|
788
814
|
r: 3,
|
|
789
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${
|
|
815
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${w.value})`,
|
|
790
816
|
onClick: (i) => B(t, a)
|
|
791
|
-
}, null, 8,
|
|
817
|
+
}, null, 8, _l)) : v("", !0)
|
|
792
818
|
], 64)) : v("", !0),
|
|
793
|
-
e.value.type === "classic" ? (
|
|
794
|
-
T(t) &&
|
|
819
|
+
e.value.type === "classic" ? (o(), n(m, { key: 2 }, [
|
|
820
|
+
T(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
795
821
|
key: 0,
|
|
796
822
|
"text-anchor": s(b)(t, !0, 12).anchor,
|
|
797
823
|
x: s(b)(t, !0, 12).x,
|
|
@@ -800,18 +826,18 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
800
826
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
801
827
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
802
828
|
onClick: (i) => B(t, a)
|
|
803
|
-
},
|
|
829
|
+
}, x(se(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
|
|
804
830
|
e.value.style.chart.layout.labels.value.formatter,
|
|
805
831
|
t.value,
|
|
806
|
-
s(
|
|
832
|
+
s(L)({
|
|
807
833
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
808
834
|
v: t.value,
|
|
809
835
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
810
836
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
811
837
|
}),
|
|
812
838
|
{ datapoint: t }
|
|
813
|
-
)})` : ""), 13,
|
|
814
|
-
T(t) &&
|
|
839
|
+
)})` : ""), 13, xl)) : v("", !0),
|
|
840
|
+
T(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
815
841
|
key: 1,
|
|
816
842
|
"text-anchor": s(b)(t).anchor,
|
|
817
843
|
x: s(b)(t, !0, 12).x,
|
|
@@ -820,43 +846,43 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
820
846
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
821
847
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
822
848
|
onClick: (i) => B(t, a)
|
|
823
|
-
},
|
|
849
|
+
}, x(t.name), 13, Cl)) : v("", !0)
|
|
824
850
|
], 64)) : v("", !0),
|
|
825
|
-
e.value.type === "polar" ? (
|
|
826
|
-
T(t) &&
|
|
851
|
+
e.value.type === "polar" ? (o(), n(m, { key: 3 }, [
|
|
852
|
+
T(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
827
853
|
key: 0,
|
|
828
854
|
"text-anchor": j(c.value[a].middlePoint),
|
|
829
|
-
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX:
|
|
830
|
-
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX:
|
|
855
|
+
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
856
|
+
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
831
857
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
832
858
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
833
859
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
834
860
|
onClick: (i) => B(t, a)
|
|
835
|
-
},
|
|
861
|
+
}, x(se(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
|
|
836
862
|
e.value.style.chart.layout.labels.value.formatter,
|
|
837
863
|
t.value,
|
|
838
|
-
s(
|
|
864
|
+
s(L)({
|
|
839
865
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
840
866
|
v: t.value,
|
|
841
867
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
842
868
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
843
869
|
}),
|
|
844
870
|
{ datapoint: t }
|
|
845
|
-
)})` : ""), 13,
|
|
846
|
-
T(t) &&
|
|
871
|
+
)})` : ""), 13, $l)) : v("", !0),
|
|
872
|
+
T(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
847
873
|
key: 1,
|
|
848
874
|
"text-anchor": j(c.value[a].middlePoint),
|
|
849
|
-
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX:
|
|
850
|
-
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX:
|
|
875
|
+
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
876
|
+
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
851
877
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
852
878
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
853
879
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
854
880
|
onClick: (i) => B(t, a)
|
|
855
|
-
},
|
|
881
|
+
}, x(t.name), 13, Pl)) : v("", !0)
|
|
856
882
|
], 64)) : v("", !0)
|
|
857
883
|
])),
|
|
858
|
-
|
|
859
|
-
T(t) && e.value.type === "classic" ? (
|
|
884
|
+
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", Sl, [
|
|
885
|
+
T(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
|
|
860
886
|
key: 0,
|
|
861
887
|
x: e.value.style.chart.comments.offsetX + (s(b)(t, !0).anchor === "end" ? s(b)(t).x - e.value.style.chart.comments.width : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - e.value.style.chart.comments.width / 2 : s(b)(t).x),
|
|
862
888
|
y: s(te)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -864,34 +890,34 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
864
890
|
height: "200",
|
|
865
891
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
866
892
|
}, [
|
|
867
|
-
|
|
868
|
-
|
|
893
|
+
h("div", null, [
|
|
894
|
+
_(l.$slots, "plot-comment", {
|
|
869
895
|
plot: { ...t, textAlign: s(b)(t, !0, 16, !0).anchor, flexAlign: s(b)(t, !0, 16).anchor }
|
|
870
896
|
}, void 0, !0)
|
|
871
897
|
])
|
|
872
|
-
], 8,
|
|
873
|
-
T(t) && e.value.type === "polar" ? (
|
|
898
|
+
], 8, Ll)) : v("", !0),
|
|
899
|
+
T(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
|
|
874
900
|
key: 1,
|
|
875
|
-
x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX:
|
|
876
|
-
y:
|
|
901
|
+
x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : j(c.value[a].middlePoint) === "middle" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
|
|
902
|
+
y: Ue(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
877
903
|
width: e.value.style.chart.comments.width,
|
|
878
904
|
height: "200",
|
|
879
905
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
880
906
|
}, [
|
|
881
|
-
|
|
882
|
-
|
|
907
|
+
h("div", null, [
|
|
908
|
+
_(l.$slots, "plot-comment", {
|
|
883
909
|
plot: { ...t, textAlign: j(c.value[a].middlePoint), flexAlign: j(c.value[a].middlePoint) }
|
|
884
910
|
}, void 0, !0)
|
|
885
911
|
])
|
|
886
|
-
], 8,
|
|
912
|
+
], 8, Fl)) : v("", !0)
|
|
887
913
|
])) : v("", !0)
|
|
888
|
-
], 10,
|
|
889
|
-
|
|
914
|
+
], 10, gl))), 256)),
|
|
915
|
+
_(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
890
916
|
], 14, Tt)) : v("", !0),
|
|
891
|
-
l.$slots.watermark ? (
|
|
892
|
-
|
|
917
|
+
l.$slots.watermark ? (o(), n("div", zl, [
|
|
918
|
+
_(l.$slots, "watermark", Q(Z({ isPrinting: s(me) || s(we) })), void 0, !0)
|
|
893
919
|
])) : v("", !0),
|
|
894
|
-
|
|
920
|
+
U.value ? v("", !0) : (o(), H($t, {
|
|
895
921
|
key: 4,
|
|
896
922
|
config: {
|
|
897
923
|
type: "donut",
|
|
@@ -904,25 +930,25 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
904
930
|
}
|
|
905
931
|
}
|
|
906
932
|
}, null, 8, ["config"])),
|
|
907
|
-
|
|
933
|
+
h("div", {
|
|
908
934
|
ref_key: "chartLegend",
|
|
909
935
|
ref: de
|
|
910
936
|
}, [
|
|
911
|
-
e.value.style.chart.legend.show ? (
|
|
937
|
+
e.value.style.chart.legend.show ? (o(), H(Ct, {
|
|
912
938
|
key: `legend_${fe.value}`,
|
|
913
|
-
legendSet:
|
|
914
|
-
config:
|
|
915
|
-
onClickMarker:
|
|
939
|
+
legendSet: Se.value,
|
|
940
|
+
config: Re.value,
|
|
941
|
+
onClickMarker: r[4] || (r[4] = ({ i: t }) => Pe(t))
|
|
916
942
|
}, {
|
|
917
|
-
item:
|
|
918
|
-
|
|
943
|
+
item: S(({ legend: t, index: a }) => [
|
|
944
|
+
h("div", {
|
|
919
945
|
onClick: (i) => t.segregate(),
|
|
920
946
|
style: Y(`opacity:${O.value.includes(a) ? 0.5 : 1}`)
|
|
921
947
|
}, [
|
|
922
|
-
|
|
948
|
+
De(x(t.name) + ": " + x(s(X)(
|
|
923
949
|
e.value.style.chart.layout.labels.value.formatter,
|
|
924
950
|
t.value,
|
|
925
|
-
s(
|
|
951
|
+
s(L)({
|
|
926
952
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
927
953
|
v: t.value,
|
|
928
954
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -933,23 +959,23 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
933
959
|
index: a
|
|
934
960
|
}
|
|
935
961
|
)) + " ", 1),
|
|
936
|
-
O.value.includes(a) ? (
|
|
962
|
+
O.value.includes(a) ? (o(), n("span", Xl, " ( " + x(qe(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", Yl, " (" + x(isNaN(t.value / $.value) ? "-" : s(X)(
|
|
937
963
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
938
|
-
|
|
939
|
-
s(
|
|
940
|
-
v:
|
|
964
|
+
G.value ? t.proportion * 100 : t.value / $.value * 100,
|
|
965
|
+
s(L)({
|
|
966
|
+
v: G.value ? t.proportion * 100 : t.value / $.value * 100,
|
|
941
967
|
s: "%",
|
|
942
968
|
r: e.value.style.chart.legend.roundingPercentage
|
|
943
969
|
})
|
|
944
970
|
)) + ") ", 1))
|
|
945
|
-
], 12,
|
|
971
|
+
], 12, Tl)
|
|
946
972
|
]),
|
|
947
973
|
_: 1
|
|
948
974
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
949
|
-
|
|
975
|
+
_(l.$slots, "legend", { legend: Se.value }, void 0, !0)
|
|
950
976
|
], 512),
|
|
951
|
-
Ie(
|
|
952
|
-
show:
|
|
977
|
+
Ie(xt, {
|
|
978
|
+
show: y.value.showTooltip && ae.value,
|
|
953
979
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
954
980
|
color: e.value.style.chart.tooltip.color,
|
|
955
981
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -959,23 +985,23 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
959
985
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
960
986
|
position: e.value.style.chart.tooltip.position,
|
|
961
987
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
962
|
-
parent:
|
|
988
|
+
parent: E.value,
|
|
963
989
|
content: ue.value,
|
|
964
990
|
isCustom: q.value
|
|
965
991
|
}, {
|
|
966
|
-
"tooltip-before":
|
|
967
|
-
|
|
992
|
+
"tooltip-before": S(() => [
|
|
993
|
+
_(l.$slots, "tooltip-before", Q(Z({ ...ne.value })), void 0, !0)
|
|
968
994
|
]),
|
|
969
|
-
"tooltip-after":
|
|
970
|
-
|
|
995
|
+
"tooltip-after": S(() => [
|
|
996
|
+
_(l.$slots, "tooltip-after", Q(Z({ ...ne.value })), void 0, !0)
|
|
971
997
|
]),
|
|
972
998
|
_: 3
|
|
973
999
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
974
|
-
|
|
1000
|
+
U.value ? (o(), H(Pt, {
|
|
975
1001
|
key: 5,
|
|
976
1002
|
hideDetails: "",
|
|
977
1003
|
config: {
|
|
978
|
-
open:
|
|
1004
|
+
open: y.value.showTable,
|
|
979
1005
|
maxHeight: 1e4,
|
|
980
1006
|
body: {
|
|
981
1007
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -987,27 +1013,27 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
987
1013
|
}
|
|
988
1014
|
}
|
|
989
1015
|
}, {
|
|
990
|
-
content:
|
|
991
|
-
(
|
|
1016
|
+
content: S(() => [
|
|
1017
|
+
(o(), H(_t, {
|
|
992
1018
|
key: `table_${ye.value}`,
|
|
993
1019
|
colNames: oe.value.colNames,
|
|
994
1020
|
head: oe.value.head,
|
|
995
1021
|
body: oe.value.body,
|
|
996
1022
|
config: oe.value.config,
|
|
997
1023
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
998
|
-
onClose:
|
|
1024
|
+
onClose: r[5] || (r[5] = (t) => y.value.showTable = !1)
|
|
999
1025
|
}, {
|
|
1000
|
-
th:
|
|
1001
|
-
|
|
1026
|
+
th: S(({ th: t }) => [
|
|
1027
|
+
h("div", {
|
|
1002
1028
|
innerHTML: t,
|
|
1003
1029
|
style: { display: "flex", "align-items": "center" }
|
|
1004
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, Nl)
|
|
1005
1031
|
]),
|
|
1006
|
-
td:
|
|
1007
|
-
|
|
1032
|
+
td: S(({ td: t }) => [
|
|
1033
|
+
De(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(X)(
|
|
1008
1034
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1009
1035
|
t,
|
|
1010
|
-
s(
|
|
1036
|
+
s(L)({
|
|
1011
1037
|
v: t,
|
|
1012
1038
|
s: "%",
|
|
1013
1039
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -1015,7 +1041,7 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
1015
1041
|
) : s(X)(
|
|
1016
1042
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1017
1043
|
t,
|
|
1018
|
-
s(
|
|
1044
|
+
s(L)({
|
|
1019
1045
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1020
1046
|
v: t,
|
|
1021
1047
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1030,7 +1056,7 @@ const Ft = (U) => (et("data-v-3151515d"), U = U(), tt(), U), zt = ["id"], Tt = [
|
|
|
1030
1056
|
}, 8, ["config"])) : v("", !0)
|
|
1031
1057
|
], 14, zt));
|
|
1032
1058
|
}
|
|
1033
|
-
},
|
|
1059
|
+
}, ql = /* @__PURE__ */ Lt(Ol, [["__scopeId", "data-v-159f668e"]]);
|
|
1034
1060
|
export {
|
|
1035
|
-
|
|
1061
|
+
ql as default
|
|
1036
1062
|
};
|