vue-data-ui 2.3.74 → 2.3.75
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-CYCrAySW.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-DK6F5Fq3.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-Cj7T-DqJ.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-DZjnxQdN.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-D5cATWsL.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-Bj6kEIpq.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-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-BA43_uHV.js} +314 -299
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { computed as g, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { computed as g, ref as v, onMounted as Re, onBeforeUnmount as Ye, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as T, renderSlot as p, createBlock as V, createCommentVNode as c, unref as o, createSlots as He, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as b, Fragment as M, renderList as X, toDisplayString as _, createTextVNode as Pe, createVNode as We, nextTick as Xe, pushScopeId as qe, popScopeId as Je } from "vue";
|
|
2
|
+
import { u as Ke, o as Qe, e as Oe, g as Ze, c as el, b as ll, d as Z, p as D, m as tl, f as C, X as al, w as ol, j as ul, E as sl, i as F, k as y, n as q, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as yl } from "./Title-C26I_HC3.js";
|
|
5
|
+
import { u as fl, U as bl } from "./usePrinter-B8RnF8_q.js";
|
|
6
|
+
import { D as gl } from "./DataTable-CQANRZju.js";
|
|
7
|
+
import { _ as pl } from "./Tooltip-CH8GmDCG.js";
|
|
8
|
+
import { L as ml } from "./Legend-DX1kv21U.js";
|
|
9
|
+
import wl from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
10
|
+
import kl from "./vue-ui-accordion-Cb6XBCbu.js";
|
|
11
|
+
import { u as Ae } from "./useNestedProp-CurQIHTa.js";
|
|
12
|
+
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Cl = (G) => (qe("data-v-315950a4"), G = G(), Je(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Tl = ["stop-color"], Fl = ["stop-color"], zl = ["id"], Nl = ["id"], Pl = /* @__PURE__ */ Cl(() => /* @__PURE__ */ b("feColorMatrix", {
|
|
14
14
|
type: "saturate",
|
|
15
15
|
values: "0"
|
|
16
|
-
}, null, -1)),
|
|
16
|
+
}, null, -1)), Ol = ["id"], Al = ["flood-color"], Dl = ["d", "stroke", "filter"], Il = ["cx", "cy", "r", "fill", "filter"], Bl = ["stroke", "d"], Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = ["cx", "cy", "r", "fill", "stroke"], Gl = ["cx", "cy", "r", "fill"], El = ["d", "fill", "onMouseenter", "onClick"], Ul = ["cx", "cy", "r", "fill"], jl = ["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 = {
|
|
20
20
|
key: 0,
|
|
21
21
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
22
|
-
},
|
|
22
|
+
}, ut = { key: 1 }, st = ["innerHTML"], rt = {
|
|
23
23
|
__name: "vue-ui-donut",
|
|
24
24
|
props: {
|
|
25
25
|
config: {
|
|
@@ -36,143 +36,155 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
39
|
+
setup(G, { expose: De, emit: se }) {
|
|
40
|
+
const S = G, { vue_ui_donut: Ie } = Ke(), E = g({
|
|
41
41
|
get() {
|
|
42
|
-
return !!
|
|
42
|
+
return !!S.dataset && S.dataset.length;
|
|
43
43
|
},
|
|
44
|
-
set(
|
|
45
|
-
return
|
|
44
|
+
set(l) {
|
|
45
|
+
return l;
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
}), U = v(null), re = v(null), ne = v(null), J = v(null), ie = v(0), ve = v(0), ce = v(0);
|
|
48
|
+
Re(() => {
|
|
49
|
+
de();
|
|
50
|
+
}), Ye(() => {
|
|
51
|
+
J.value && J.value.disconnect();
|
|
52
|
+
});
|
|
53
|
+
function de() {
|
|
54
|
+
if (Qe(S.dataset) ? Oe({
|
|
50
55
|
componentName: "VueUiDonut",
|
|
51
56
|
type: "dataset"
|
|
52
|
-
}) :
|
|
53
|
-
|
|
54
|
-
datasetObject:
|
|
57
|
+
}) : S.dataset.forEach((l, a) => {
|
|
58
|
+
Ze({
|
|
59
|
+
datasetObject: l,
|
|
55
60
|
requiredAttributes: ["name", "values"]
|
|
56
|
-
}).forEach((
|
|
57
|
-
|
|
61
|
+
}).forEach((t) => {
|
|
62
|
+
E.value = !1, Oe({
|
|
58
63
|
componentName: "VueUiDonut",
|
|
59
64
|
type: "datasetSerieAttribute",
|
|
60
|
-
property:
|
|
65
|
+
property: t,
|
|
61
66
|
index: a
|
|
62
67
|
});
|
|
63
68
|
});
|
|
64
69
|
}), e.value.responsive) {
|
|
65
|
-
const
|
|
66
|
-
const { width: a, height:
|
|
67
|
-
chart:
|
|
68
|
-
title: e.value.style.chart.title.text ?
|
|
69
|
-
legend: e.value.style.chart.legend.show ?
|
|
70
|
+
const l = dl(() => {
|
|
71
|
+
const { width: a, height: t } = hl({
|
|
72
|
+
chart: U.value,
|
|
73
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
74
|
+
legend: e.value.style.chart.legend.show ? ne.value : null
|
|
70
75
|
});
|
|
71
|
-
i.value.width = a, i.value.height =
|
|
76
|
+
i.value.width = a, i.value.height = t;
|
|
72
77
|
});
|
|
73
|
-
|
|
78
|
+
J.value = new ResizeObserver(l), J.value.observe(U.value.parentNode);
|
|
74
79
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
defaultConfig: Ne
|
|
80
|
+
}
|
|
81
|
+
const x = v(el()), Be = v(null), ee = v(!1), le = v(""), z = v(null), he = v(0);
|
|
82
|
+
function ye() {
|
|
83
|
+
const l = Ae({
|
|
84
|
+
userConfig: S.config,
|
|
85
|
+
defaultConfig: Ie
|
|
82
86
|
});
|
|
83
|
-
return
|
|
84
|
-
...
|
|
85
|
-
userConfig:
|
|
86
|
-
defaultConfig:
|
|
87
|
+
return l.theme ? {
|
|
88
|
+
...Ae({
|
|
89
|
+
userConfig: rl.vue_ui_donut[l.theme] || S.config,
|
|
90
|
+
defaultConfig: l
|
|
87
91
|
}),
|
|
88
|
-
customPalette:
|
|
89
|
-
} :
|
|
90
|
-
}
|
|
92
|
+
customPalette: nl[l.theme] || D
|
|
93
|
+
} : l;
|
|
94
|
+
}
|
|
95
|
+
const e = g({
|
|
96
|
+
get: () => ye(),
|
|
97
|
+
set: (l) => l
|
|
98
|
+
});
|
|
99
|
+
Ne(() => S.config, (l) => {
|
|
100
|
+
e.value = ye(), de(), ie.value += 1, ve.value += 1, ce.value += 1;
|
|
101
|
+
}, { deep: !0 });
|
|
102
|
+
const { isPrinting: fe, isImaging: be, generatePdf: ge, generateImage: pe } = fl({
|
|
91
103
|
elementId: `donut__${x.value}`,
|
|
92
104
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
93
|
-
}),
|
|
105
|
+
}), me = g(() => ll(e.value.customPalette)), f = v({
|
|
94
106
|
dataLabels: {
|
|
95
107
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
96
108
|
},
|
|
97
109
|
showTable: e.value.table.show,
|
|
98
110
|
showTooltip: e.value.style.chart.tooltip.show
|
|
99
|
-
}), i =
|
|
111
|
+
}), i = v({
|
|
100
112
|
height: 360,
|
|
101
113
|
width: 512
|
|
102
|
-
}),
|
|
103
|
-
const
|
|
114
|
+
}), j = g(() => {
|
|
115
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, a = i.value.width * l;
|
|
104
116
|
return a > $.value / 2 ? e.value.style.chart.layout.donut.strokeWidth : a;
|
|
105
|
-
}), P = g(() =>
|
|
106
|
-
name:
|
|
107
|
-
color: Z(
|
|
108
|
-
value:
|
|
109
|
-
absoluteValues:
|
|
110
|
-
comment:
|
|
111
|
-
}))), k =
|
|
112
|
-
|
|
113
|
-
function
|
|
114
|
-
return P.value.map((
|
|
115
|
-
name:
|
|
116
|
-
color:
|
|
117
|
-
value:
|
|
117
|
+
}), P = g(() => S.dataset.map((l, a) => ({
|
|
118
|
+
name: l.name,
|
|
119
|
+
color: Z(l.color) || me.value[a] || D[a] || D[a % D.length],
|
|
120
|
+
value: l.values.reduce((t, u) => t + u, 0),
|
|
121
|
+
absoluteValues: l.values,
|
|
122
|
+
comment: l.comment || ""
|
|
123
|
+
}))), k = v(P.value);
|
|
124
|
+
Ne(() => P.value, (l) => k.value = l);
|
|
125
|
+
function Ve() {
|
|
126
|
+
return P.value.map((l) => ({
|
|
127
|
+
name: l.name,
|
|
128
|
+
color: l.color,
|
|
129
|
+
value: l.value
|
|
118
130
|
}));
|
|
119
131
|
}
|
|
120
|
-
const L =
|
|
121
|
-
function
|
|
122
|
-
const a = P.value.find((r, h) => h ===
|
|
123
|
-
let u = k.value.find((r, h) => h ===
|
|
124
|
-
if (L.value.includes(
|
|
132
|
+
const L = v([]), we = v(null), ke = v(null), O = v(!1);
|
|
133
|
+
function _e(l) {
|
|
134
|
+
const a = P.value.find((r, h) => h === l);
|
|
135
|
+
let u = k.value.find((r, h) => h === l).value;
|
|
136
|
+
if (L.value.includes(l)) {
|
|
125
137
|
let h = function() {
|
|
126
|
-
u > r ? (cancelAnimationFrame(
|
|
127
|
-
...
|
|
138
|
+
u > r ? (cancelAnimationFrame(we.value), k.value = k.value.map((d, oe) => l === oe ? {
|
|
139
|
+
...d,
|
|
128
140
|
value: r
|
|
129
|
-
} :
|
|
130
|
-
...
|
|
141
|
+
} : d), O.value = !1) : (O.value = !0, u += r * 0.025, k.value = k.value.map((d, oe) => l === oe ? {
|
|
142
|
+
...d,
|
|
131
143
|
value: u
|
|
132
|
-
} :
|
|
144
|
+
} : d), we.value = requestAnimationFrame(h));
|
|
133
145
|
};
|
|
134
|
-
L.value = L.value.filter((
|
|
146
|
+
L.value = L.value.filter((d) => d !== l);
|
|
135
147
|
const r = a.value;
|
|
136
148
|
h();
|
|
137
149
|
} else if (L.value.length < P.value.length - 1) {
|
|
138
150
|
let r = function() {
|
|
139
|
-
u < 0.1 ? (cancelAnimationFrame(
|
|
151
|
+
u < 0.1 ? (cancelAnimationFrame(ke.value), L.value.push(l), k.value = k.value.map((h, d) => l === d ? {
|
|
140
152
|
...h,
|
|
141
153
|
value: 0
|
|
142
|
-
} : h), O.value = !1) : (O.value = !0, u /= 1.1, k.value = k.value.map((h,
|
|
154
|
+
} : h), O.value = !1) : (O.value = !0, u /= 1.1, k.value = k.value.map((h, d) => l === d ? {
|
|
143
155
|
...h,
|
|
144
156
|
value: u
|
|
145
|
-
} : h),
|
|
157
|
+
} : h), ke.value = requestAnimationFrame(r));
|
|
146
158
|
};
|
|
147
159
|
r();
|
|
148
160
|
}
|
|
149
|
-
|
|
161
|
+
se("selectLegend", I.value.map((r) => ({
|
|
150
162
|
name: r.name,
|
|
151
163
|
color: r.color,
|
|
152
164
|
value: r.value
|
|
153
165
|
})));
|
|
154
166
|
}
|
|
155
|
-
const I = g(() => (k.value.forEach((
|
|
156
|
-
if ([null, void 0].includes(
|
|
167
|
+
const I = g(() => (k.value.forEach((l, a) => {
|
|
168
|
+
if ([null, void 0].includes(l.values))
|
|
157
169
|
return {
|
|
158
|
-
...
|
|
170
|
+
...l,
|
|
159
171
|
values: []
|
|
160
172
|
};
|
|
161
|
-
}), k.value.map((
|
|
162
|
-
...
|
|
173
|
+
}), k.value.map((l, a) => ({
|
|
174
|
+
...l,
|
|
163
175
|
seriesIndex: a
|
|
164
|
-
})).filter((
|
|
165
|
-
name:
|
|
166
|
-
color: Z(
|
|
167
|
-
value: (
|
|
176
|
+
})).filter((l, a) => !L.value.includes(a)))), Ce = g(() => S.dataset.map((l, a) => ({
|
|
177
|
+
name: l.name,
|
|
178
|
+
color: Z(l.color) || me.value[a] || D[a] || D[a % D.length],
|
|
179
|
+
value: (l.values || []).reduce((t, u) => t + u, 0),
|
|
168
180
|
shape: "circle"
|
|
169
|
-
})).map((
|
|
170
|
-
...
|
|
171
|
-
proportion:
|
|
181
|
+
})).map((l, a) => ({
|
|
182
|
+
...l,
|
|
183
|
+
proportion: l.value / S.dataset.map((t) => (t.values || []).reduce((u, r) => u + r, 0)).reduce((t, u) => t + u, 0),
|
|
172
184
|
opacity: L.value.includes(a) ? 0.5 : 1,
|
|
173
|
-
segregate: () =>
|
|
185
|
+
segregate: () => _e(a),
|
|
174
186
|
isSegregated: L.value.includes(a)
|
|
175
|
-
}))),
|
|
187
|
+
}))), Me = g(() => ({
|
|
176
188
|
cy: "donut-div-legend",
|
|
177
189
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
178
190
|
color: e.value.style.chart.legend.color,
|
|
@@ -180,114 +192,114 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
180
192
|
paddingBottom: 12,
|
|
181
193
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
182
194
|
})), $ = g(() => {
|
|
183
|
-
const
|
|
184
|
-
return
|
|
185
|
-
}), A = g(() =>
|
|
186
|
-
function B(
|
|
187
|
-
return
|
|
195
|
+
const l = Math.min(i.value.width / 3, i.value.height / 3);
|
|
196
|
+
return l < 55 ? 55 : l;
|
|
197
|
+
}), A = g(() => tl({ series: I.value }, i.value.width / 2, i.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, j.value));
|
|
198
|
+
function B(l) {
|
|
199
|
+
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
188
200
|
}
|
|
189
|
-
function
|
|
190
|
-
const
|
|
191
|
-
return isNaN(
|
|
201
|
+
function xe(l, a) {
|
|
202
|
+
const t = l.value / Ge(a);
|
|
203
|
+
return isNaN(t) ? 0 : F(
|
|
192
204
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
193
|
-
|
|
205
|
+
t * 100,
|
|
194
206
|
C({
|
|
195
|
-
v:
|
|
207
|
+
v: t * 100,
|
|
196
208
|
s: "%",
|
|
197
209
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
198
210
|
}),
|
|
199
|
-
{ datapoint:
|
|
211
|
+
{ datapoint: l }
|
|
200
212
|
);
|
|
201
213
|
}
|
|
202
|
-
function
|
|
203
|
-
return [...
|
|
214
|
+
function Ge(l) {
|
|
215
|
+
return [...l].map((a) => a.value).reduce((a, t) => a + t, 0);
|
|
204
216
|
}
|
|
205
|
-
const m = g(() => I.value.map((
|
|
206
|
-
function
|
|
207
|
-
te.value = { datapoint:
|
|
217
|
+
const m = g(() => I.value.map((l) => l.value).reduce((l, a) => l + a, 0)), $e = g(() => m.value / I.value.length), te = v(null), R = v(!1);
|
|
218
|
+
function Ee({ datapoint: l, relativeIndex: a, seriesIndex: t, show: u = !1 }) {
|
|
219
|
+
te.value = { datapoint: l, seriesIndex: t, config: e.value, series: P.value }, ee.value = u, z.value = a;
|
|
208
220
|
let r = "";
|
|
209
221
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
210
|
-
if (
|
|
222
|
+
if (R.value = !1, il(h))
|
|
211
223
|
try {
|
|
212
|
-
const
|
|
213
|
-
seriesIndex:
|
|
214
|
-
datapoint:
|
|
224
|
+
const d = h({
|
|
225
|
+
seriesIndex: t,
|
|
226
|
+
datapoint: l,
|
|
215
227
|
series: P.value,
|
|
216
228
|
config: e.value
|
|
217
229
|
});
|
|
218
|
-
typeof
|
|
230
|
+
typeof d == "string" && (le.value = d, R.value = !0);
|
|
219
231
|
} catch {
|
|
220
|
-
console.warn("Custom format cannot be applied."),
|
|
232
|
+
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
221
233
|
}
|
|
222
|
-
if (!
|
|
223
|
-
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;">${l.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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${F(
|
|
224
236
|
e.value.style.chart.layout.labels.value.formatter,
|
|
225
|
-
|
|
237
|
+
l.value,
|
|
226
238
|
C({
|
|
227
239
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
228
|
-
v:
|
|
240
|
+
v: l.value,
|
|
229
241
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
230
242
|
r: e.value.style.chart.tooltip.roundingValue
|
|
231
243
|
}),
|
|
232
244
|
{
|
|
233
|
-
datapoint:
|
|
245
|
+
datapoint: l,
|
|
234
246
|
relativeIndex: a,
|
|
235
|
-
seriesIndex:
|
|
247
|
+
seriesIndex: t
|
|
236
248
|
}
|
|
237
249
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
238
|
-
const
|
|
250
|
+
const d = F(
|
|
239
251
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
240
|
-
|
|
252
|
+
l.proportion * 100,
|
|
241
253
|
C({
|
|
242
|
-
v:
|
|
254
|
+
v: l.proportion * 100,
|
|
243
255
|
s: "%",
|
|
244
256
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
245
257
|
}),
|
|
246
258
|
{
|
|
247
|
-
datapoint:
|
|
259
|
+
datapoint: l,
|
|
248
260
|
relativeIndex: a,
|
|
249
|
-
seriesIndex:
|
|
261
|
+
seriesIndex: t
|
|
250
262
|
}
|
|
251
263
|
);
|
|
252
|
-
e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
264
|
+
e.value.style.chart.tooltip.showValue ? r += `<span>(${d})</span></div>` : r += `<b>${d}%</b></div>`;
|
|
253
265
|
}
|
|
254
|
-
e.value.style.chart.comments.showInTooltip &&
|
|
266
|
+
e.value.style.chart.comments.showInTooltip && l.comment && (r += `<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>`), le.value = `<div>${r}</div>`;
|
|
255
267
|
}
|
|
256
268
|
}
|
|
257
|
-
function ae(
|
|
258
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !==
|
|
269
|
+
function ae(l) {
|
|
270
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${x.value})` : "";
|
|
259
271
|
}
|
|
260
272
|
const N = g(() => {
|
|
261
|
-
const
|
|
262
|
-
name:
|
|
263
|
-
color:
|
|
264
|
-
})), a = I.value.map((
|
|
265
|
-
return { head:
|
|
273
|
+
const l = I.value.map((t) => ({
|
|
274
|
+
name: t.name,
|
|
275
|
+
color: t.color
|
|
276
|
+
})), a = I.value.map((t) => t.value);
|
|
277
|
+
return { head: l, body: a };
|
|
266
278
|
});
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
const
|
|
279
|
+
function Se() {
|
|
280
|
+
Xe(() => {
|
|
281
|
+
const l = N.value.head.map((u, r) => [[
|
|
270
282
|
u.name
|
|
271
|
-
], [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(
|
|
272
|
-
|
|
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(l), t = vl(a);
|
|
284
|
+
cl({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
273
285
|
});
|
|
274
286
|
}
|
|
275
|
-
const
|
|
276
|
-
const
|
|
287
|
+
const K = g(() => {
|
|
288
|
+
const l = [
|
|
277
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>',
|
|
278
290
|
C({ 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 }),
|
|
279
291
|
"100%"
|
|
280
292
|
], a = N.value.head.map((r, h) => {
|
|
281
|
-
const
|
|
293
|
+
const d = C({ 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 });
|
|
282
294
|
return [
|
|
283
295
|
{
|
|
284
296
|
color: r.color,
|
|
285
297
|
name: r.name
|
|
286
298
|
},
|
|
287
|
-
|
|
299
|
+
d,
|
|
288
300
|
isNaN(N.value.body[h] / m.value) ? "-" : (N.value.body[h] / m.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
289
301
|
];
|
|
290
|
-
}),
|
|
302
|
+
}), t = {
|
|
291
303
|
th: {
|
|
292
304
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
293
305
|
color: e.value.table.th.color,
|
|
@@ -306,53 +318,54 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
306
318
|
e.value.table.columnNames.value,
|
|
307
319
|
e.value.table.columnNames.percentage
|
|
308
320
|
],
|
|
309
|
-
head:
|
|
321
|
+
head: l,
|
|
310
322
|
body: a,
|
|
311
|
-
config:
|
|
323
|
+
config: t
|
|
312
324
|
};
|
|
313
|
-
}),
|
|
314
|
-
function
|
|
315
|
-
|
|
325
|
+
}), Y = v(!1);
|
|
326
|
+
function Ue(l) {
|
|
327
|
+
Y.value = l, he.value += 1;
|
|
316
328
|
}
|
|
317
|
-
const
|
|
318
|
-
function
|
|
319
|
-
return
|
|
329
|
+
const Le = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
330
|
+
function je(l) {
|
|
331
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
320
332
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
333
|
+
function Q(l, a) {
|
|
334
|
+
se("selectDatapoint", { datapoint: l, index: a });
|
|
323
335
|
}
|
|
324
|
-
function
|
|
336
|
+
function Te() {
|
|
325
337
|
f.value.showTable = !f.value.showTable;
|
|
326
338
|
}
|
|
327
|
-
function
|
|
339
|
+
function Fe() {
|
|
328
340
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
329
341
|
}
|
|
330
|
-
function
|
|
342
|
+
function ze() {
|
|
331
343
|
f.value.showTooltip = !f.value.showTooltip;
|
|
332
344
|
}
|
|
333
|
-
return
|
|
334
|
-
getData:
|
|
335
|
-
generatePdf:
|
|
336
|
-
generateCsv:
|
|
337
|
-
generateImage:
|
|
338
|
-
toggleTable:
|
|
339
|
-
toggleLabels:
|
|
340
|
-
toggleTooltip:
|
|
341
|
-
}), (
|
|
345
|
+
return De({
|
|
346
|
+
getData: Ve,
|
|
347
|
+
generatePdf: ge,
|
|
348
|
+
generateCsv: Se,
|
|
349
|
+
generateImage: pe,
|
|
350
|
+
toggleTable: Te,
|
|
351
|
+
toggleLabels: Fe,
|
|
352
|
+
toggleTooltip: ze
|
|
353
|
+
}), (l, a) => (s(), n("div", {
|
|
342
354
|
ref_key: "donutChart",
|
|
343
|
-
ref:
|
|
344
|
-
class: ue(`vue-ui-donut ${
|
|
345
|
-
style:
|
|
355
|
+
ref: U,
|
|
356
|
+
class: ue(`vue-ui-donut ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
357
|
+
style: T(`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}`),
|
|
346
358
|
id: `donut__${x.value}`
|
|
347
359
|
}, [
|
|
348
|
-
p(
|
|
360
|
+
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
349
361
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
350
362
|
key: 0,
|
|
351
363
|
ref_key: "chartTitle",
|
|
352
|
-
ref:
|
|
353
|
-
style:
|
|
364
|
+
ref: re,
|
|
365
|
+
style: T(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
354
366
|
}, [
|
|
355
|
-
|
|
367
|
+
(s(), V(yl, {
|
|
368
|
+
key: `title_${ie.value}`,
|
|
356
369
|
config: {
|
|
357
370
|
title: {
|
|
358
371
|
cy: "donut-div-title",
|
|
@@ -363,16 +376,16 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
363
376
|
...e.value.style.chart.title.subtitle
|
|
364
377
|
}
|
|
365
378
|
}
|
|
366
|
-
}, null, 8, ["config"])
|
|
367
|
-
], 4)) :
|
|
368
|
-
e.value.userOptions.show &&
|
|
379
|
+
}, null, 8, ["config"]))
|
|
380
|
+
], 4)) : c("", !0),
|
|
381
|
+
e.value.userOptions.show && E.value ? (s(), V(bl, {
|
|
369
382
|
ref_key: "details",
|
|
370
|
-
ref:
|
|
371
|
-
key: `user_option_${
|
|
383
|
+
ref: Be,
|
|
384
|
+
key: `user_option_${he.value}`,
|
|
372
385
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
373
386
|
color: e.value.style.chart.color,
|
|
374
|
-
isPrinting: o(
|
|
375
|
-
isImaging: o(
|
|
387
|
+
isPrinting: o(fe),
|
|
388
|
+
isImaging: o(be),
|
|
376
389
|
uid: x.value,
|
|
377
390
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
378
391
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -381,74 +394,74 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
381
394
|
hasTable: e.value.userOptions.buttons.table,
|
|
382
395
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
383
396
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
384
|
-
isFullscreen:
|
|
385
|
-
chartElement:
|
|
397
|
+
isFullscreen: Y.value,
|
|
398
|
+
chartElement: U.value,
|
|
386
399
|
isTooltip: f.value.showTooltip,
|
|
387
400
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
388
|
-
onToggleFullscreen:
|
|
389
|
-
onGeneratePdf: o(
|
|
390
|
-
onGenerateCsv:
|
|
391
|
-
onGenerateImage: o(
|
|
392
|
-
onToggleTable:
|
|
393
|
-
onToggleLabels:
|
|
394
|
-
onToggleTooltip:
|
|
395
|
-
},
|
|
396
|
-
|
|
401
|
+
onToggleFullscreen: Ue,
|
|
402
|
+
onGeneratePdf: o(ge),
|
|
403
|
+
onGenerateCsv: Se,
|
|
404
|
+
onGenerateImage: o(pe),
|
|
405
|
+
onToggleTable: Te,
|
|
406
|
+
onToggleLabels: Fe,
|
|
407
|
+
onToggleTooltip: ze
|
|
408
|
+
}, He({ _: 2 }, [
|
|
409
|
+
l.$slots.optionTooltip ? {
|
|
397
410
|
name: "optionTooltip",
|
|
398
411
|
fn: w(() => [
|
|
399
|
-
p(
|
|
412
|
+
p(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
400
413
|
]),
|
|
401
414
|
key: "0"
|
|
402
415
|
} : void 0,
|
|
403
|
-
|
|
416
|
+
l.$slots.optionPdf ? {
|
|
404
417
|
name: "optionPdf",
|
|
405
418
|
fn: w(() => [
|
|
406
|
-
p(
|
|
419
|
+
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
407
420
|
]),
|
|
408
421
|
key: "1"
|
|
409
422
|
} : void 0,
|
|
410
|
-
|
|
423
|
+
l.$slots.optionCsv ? {
|
|
411
424
|
name: "optionCsv",
|
|
412
425
|
fn: w(() => [
|
|
413
|
-
p(
|
|
426
|
+
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
414
427
|
]),
|
|
415
428
|
key: "2"
|
|
416
429
|
} : void 0,
|
|
417
|
-
|
|
430
|
+
l.$slots.optionImg ? {
|
|
418
431
|
name: "optionImg",
|
|
419
432
|
fn: w(() => [
|
|
420
|
-
p(
|
|
433
|
+
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
421
434
|
]),
|
|
422
435
|
key: "3"
|
|
423
436
|
} : void 0,
|
|
424
|
-
|
|
437
|
+
l.$slots.optionTable ? {
|
|
425
438
|
name: "optionTable",
|
|
426
439
|
fn: w(() => [
|
|
427
|
-
p(
|
|
440
|
+
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
428
441
|
]),
|
|
429
442
|
key: "4"
|
|
430
443
|
} : void 0,
|
|
431
|
-
|
|
444
|
+
l.$slots.optionLabels ? {
|
|
432
445
|
name: "optionLabels",
|
|
433
446
|
fn: w(() => [
|
|
434
|
-
p(
|
|
447
|
+
p(l.$slots, "optionLabels", {}, void 0, !0)
|
|
435
448
|
]),
|
|
436
449
|
key: "5"
|
|
437
450
|
} : void 0,
|
|
438
|
-
|
|
451
|
+
l.$slots.optionFullscreen ? {
|
|
439
452
|
name: "optionFullscreen",
|
|
440
|
-
fn: w(({ toggleFullscreen:
|
|
441
|
-
p(
|
|
453
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
454
|
+
p(l.$slots, "optionFullscreen", H(W({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
442
455
|
]),
|
|
443
456
|
key: "6"
|
|
444
457
|
} : void 0
|
|
445
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) :
|
|
446
|
-
|
|
458
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : c("", !0),
|
|
459
|
+
E.value ? (s(), n("svg", {
|
|
447
460
|
key: 2,
|
|
448
|
-
xmlns: o(
|
|
449
|
-
class: ue({ "vue-data-ui-fullscreen--on":
|
|
461
|
+
xmlns: o(al),
|
|
462
|
+
class: ue({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
450
463
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
451
|
-
style:
|
|
464
|
+
style: T(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
452
465
|
}, [
|
|
453
466
|
b("defs", null, [
|
|
454
467
|
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
@@ -458,16 +471,16 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
458
471
|
b("stop", {
|
|
459
472
|
offset: "0%",
|
|
460
473
|
"stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
|
|
461
|
-
}, null, 8,
|
|
474
|
+
}, null, 8, Ll),
|
|
462
475
|
b("stop", {
|
|
463
476
|
offset: "77%",
|
|
464
|
-
"stop-color": "#FFFFFF" + o(
|
|
465
|
-
}, null, 8,
|
|
477
|
+
"stop-color": "#FFFFFF" + o(ol)[e.value.style.chart.gradientIntensity]
|
|
478
|
+
}, null, 8, Tl),
|
|
466
479
|
b("stop", {
|
|
467
480
|
offset: "100%",
|
|
468
481
|
"stop-color": `${o(Z)(e.value.style.chart.backgroundColor)}00`
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
482
|
+
}, null, 8, Fl)
|
|
483
|
+
], 8, Sl)) : c("", !0)
|
|
471
484
|
]),
|
|
472
485
|
b("defs", null, [
|
|
473
486
|
b("filter", {
|
|
@@ -481,9 +494,9 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
481
494
|
in: "SourceGraphic",
|
|
482
495
|
stdDeviation: 2,
|
|
483
496
|
id: `blur_std_${x.value}`
|
|
484
|
-
}, null, 8,
|
|
485
|
-
|
|
486
|
-
], 8,
|
|
497
|
+
}, null, 8, Nl),
|
|
498
|
+
Pl
|
|
499
|
+
], 8, zl),
|
|
487
500
|
b("filter", {
|
|
488
501
|
id: `shadow_${x.value}`,
|
|
489
502
|
"color-interpolation-filters": "sRGB"
|
|
@@ -494,20 +507,20 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
494
507
|
stdDeviation: "10",
|
|
495
508
|
"flood-opacity": "0.5",
|
|
496
509
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
497
|
-
}, null, 8,
|
|
498
|
-
], 8,
|
|
510
|
+
}, null, 8, Al)
|
|
511
|
+
], 8, Ol)
|
|
499
512
|
]),
|
|
500
|
-
(s(!0), n(
|
|
501
|
-
B(
|
|
513
|
+
(s(!0), n(M, null, X(A.value, (t, u) => (s(), n("g", null, [
|
|
514
|
+
B(t) && f.value.dataLabels.show ? (s(), n("path", {
|
|
502
515
|
key: 0,
|
|
503
|
-
d: o(
|
|
504
|
-
stroke:
|
|
516
|
+
d: o(ul)(t, { x: i.value.width / 2, y: i.value.height / 2 }, 16, 16, !1, !1, j.value),
|
|
517
|
+
stroke: t.color,
|
|
505
518
|
"stroke-width": "1",
|
|
506
519
|
"stroke-linecap": "round",
|
|
507
520
|
"stroke-linejoin": "round",
|
|
508
521
|
fill: "none",
|
|
509
522
|
filter: ae(u)
|
|
510
|
-
}, null, 8,
|
|
523
|
+
}, null, 8, Dl)) : c("", !0)
|
|
511
524
|
]))), 256)),
|
|
512
525
|
b("circle", {
|
|
513
526
|
cx: i.value.width / 2,
|
|
@@ -515,29 +528,29 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
515
528
|
r: $.value <= 0 ? 10 : $.value,
|
|
516
529
|
fill: e.value.style.chart.backgroundColor,
|
|
517
530
|
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${x.value})` : ""
|
|
518
|
-
}, null, 8,
|
|
519
|
-
m.value ? (s(), n(
|
|
520
|
-
(s(!0), n(
|
|
531
|
+
}, null, 8, Il),
|
|
532
|
+
m.value ? (s(), n(M, { key: 0 }, [
|
|
533
|
+
(s(!0), n(M, null, X(A.value, (t, u) => (s(), n("path", {
|
|
521
534
|
stroke: e.value.style.chart.backgroundColor,
|
|
522
|
-
d:
|
|
535
|
+
d: t.arcSlice,
|
|
523
536
|
fill: "#FFFFFF"
|
|
524
|
-
}, null, 8,
|
|
525
|
-
(s(!0), n(
|
|
537
|
+
}, null, 8, Bl))), 256)),
|
|
538
|
+
(s(!0), n(M, null, X(A.value, (t, u) => (s(), n("path", {
|
|
526
539
|
class: "vue-ui-donut-arc-path",
|
|
527
|
-
d:
|
|
528
|
-
fill: `${
|
|
540
|
+
d: t.arcSlice,
|
|
541
|
+
fill: `${t.color}CC`,
|
|
529
542
|
stroke: e.value.style.chart.backgroundColor,
|
|
530
543
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
531
544
|
filter: ae(u)
|
|
532
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Vl))), 256))
|
|
533
546
|
], 64)) : (s(), n("circle", {
|
|
534
547
|
key: 1,
|
|
535
548
|
cx: i.value.width / 2,
|
|
536
549
|
cy: i.value.height / 2,
|
|
537
550
|
r: $.value <= 0 ? 10 : $.value,
|
|
538
551
|
fill: e.value.style.chart.backgroundColor,
|
|
539
|
-
stroke: o(
|
|
540
|
-
}, null, 8,
|
|
552
|
+
stroke: o(sl)(e.value.style.chart.background)
|
|
553
|
+
}, null, 8, Ml)),
|
|
541
554
|
e.value.style.chart.useGradient ? (s(), n("circle", {
|
|
542
555
|
key: 2,
|
|
543
556
|
cx: i.value.width / 2,
|
|
@@ -547,32 +560,32 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
547
560
|
$.value <= 0 ? 10 : $.value
|
|
548
561
|
),
|
|
549
562
|
fill: `url(#gradient_${x.value})`
|
|
550
|
-
}, null, 8,
|
|
551
|
-
m.value ? (s(!0), n(
|
|
563
|
+
}, null, 8, Gl)) : c("", !0),
|
|
564
|
+
m.value ? (s(!0), n(M, { key: 3 }, X(A.value, (t, u) => (s(), n("path", {
|
|
552
565
|
"data-cy-donut-trap": "",
|
|
553
|
-
d:
|
|
566
|
+
d: t.arcSlice,
|
|
554
567
|
fill: z.value === u ? "rgba(0,0,0,0.1)" : "transparent",
|
|
555
|
-
onMouseenter: (r) =>
|
|
556
|
-
datapoint:
|
|
568
|
+
onMouseenter: (r) => Ee({
|
|
569
|
+
datapoint: t,
|
|
557
570
|
relativeIndex: u,
|
|
558
|
-
seriesIndex:
|
|
571
|
+
seriesIndex: t.seriesIndex,
|
|
559
572
|
show: !0
|
|
560
573
|
}),
|
|
561
574
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
562
575
|
ee.value = !1, z.value = null;
|
|
563
576
|
}),
|
|
564
|
-
onClick: (r) =>
|
|
565
|
-
}, null, 40,
|
|
577
|
+
onClick: (r) => Q(t, u)
|
|
578
|
+
}, null, 40, El))), 256)) : c("", !0),
|
|
566
579
|
e.value.style.chart.layout.labels.hollow.show ? (s(), n("circle", {
|
|
567
580
|
key: 4,
|
|
568
581
|
cx: i.value.width / 2,
|
|
569
582
|
cy: i.value.height / 2,
|
|
570
583
|
r: (
|
|
571
584
|
/* This might require adjustments */
|
|
572
|
-
$.value -
|
|
585
|
+
$.value - j.value <= 0 ? 10 : $.value - j.value
|
|
573
586
|
),
|
|
574
587
|
fill: e.value.style.chart.backgroundColor
|
|
575
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, Ul)) : c("", !0),
|
|
576
589
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
577
590
|
key: 5,
|
|
578
591
|
"text-anchor": "middle",
|
|
@@ -580,8 +593,8 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
580
593
|
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,
|
|
581
594
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
582
595
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
583
|
-
style:
|
|
584
|
-
}, _(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
596
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
597
|
+
}, _(e.value.style.chart.layout.labels.hollow.total.text), 13, jl)) : c("", !0),
|
|
585
598
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
586
599
|
key: 6,
|
|
587
600
|
"text-anchor": "middle",
|
|
@@ -589,8 +602,8 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
589
602
|
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,
|
|
590
603
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
591
604
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
592
|
-
style:
|
|
593
|
-
}, _(o(
|
|
605
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
606
|
+
}, _(o(F)(
|
|
594
607
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
595
608
|
m.value,
|
|
596
609
|
o(C)({
|
|
@@ -598,7 +611,7 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
598
611
|
v: m.value,
|
|
599
612
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
600
613
|
})
|
|
601
|
-
)), 13,
|
|
614
|
+
)), 13, Rl)) : c("", !0),
|
|
602
615
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
603
616
|
key: 7,
|
|
604
617
|
"text-anchor": "middle",
|
|
@@ -606,8 +619,8 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
606
619
|
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,
|
|
607
620
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
608
621
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
609
|
-
style:
|
|
610
|
-
}, _(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
622
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
623
|
+
}, _(e.value.style.chart.layout.labels.hollow.average.text), 13, Yl)) : c("", !0),
|
|
611
624
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
612
625
|
key: 8,
|
|
613
626
|
"text-anchor": "middle",
|
|
@@ -615,105 +628,105 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
615
628
|
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,
|
|
616
629
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
617
630
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
618
|
-
style:
|
|
619
|
-
}, _(O.value ? "--" : o(
|
|
631
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
632
|
+
}, _(O.value ? "--" : o(F)(
|
|
620
633
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
621
|
-
|
|
634
|
+
$e.value,
|
|
622
635
|
o(C)({
|
|
623
636
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
624
|
-
v:
|
|
637
|
+
v: $e.value,
|
|
625
638
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
626
639
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
627
640
|
})
|
|
628
|
-
)), 13,
|
|
629
|
-
(s(!0), n(
|
|
641
|
+
)), 13, Hl)) : c("", !0),
|
|
642
|
+
(s(!0), n(M, null, X(A.value, (t, u) => (s(), n("g", {
|
|
630
643
|
filter: ae(u),
|
|
631
644
|
class: ue({ animated: e.value.useCssAnimation })
|
|
632
645
|
}, [
|
|
633
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g",
|
|
646
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", Xl, [
|
|
634
647
|
(s(), n("foreignObject", {
|
|
635
|
-
x: o(y)(
|
|
636
|
-
y: o(
|
|
648
|
+
x: o(y)(t, !0).anchor === "end" ? o(y)(t).x - 120 : o(y)(t, !0).anchor === "middle" ? o(y)(t).x - 60 : o(y)(t).x,
|
|
649
|
+
y: o(q)(t) - (Le.value ? 20 : 0),
|
|
637
650
|
width: "120",
|
|
638
651
|
height: "60",
|
|
639
652
|
style: { overflow: "visible" }
|
|
640
653
|
}, [
|
|
641
654
|
b("div", null, [
|
|
642
|
-
p(
|
|
643
|
-
datapoint:
|
|
655
|
+
p(l.$slots, "dataLabel", H(W({
|
|
656
|
+
datapoint: t,
|
|
644
657
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u,
|
|
645
|
-
isSafari:
|
|
646
|
-
isVisible: B(
|
|
647
|
-
textAlign: o(y)(
|
|
648
|
-
flexAlign: o(y)(
|
|
649
|
-
percentage:
|
|
658
|
+
isSafari: Le.value,
|
|
659
|
+
isVisible: B(t) && f.value.dataLabels.show,
|
|
660
|
+
textAlign: o(y)(t, !0, 16, !0).anchor,
|
|
661
|
+
flexAlign: o(y)(t, !0, 16).anchor,
|
|
662
|
+
percentage: xe(t, A.value)
|
|
650
663
|
})), void 0, !0)
|
|
651
664
|
])
|
|
652
|
-
], 8,
|
|
653
|
-
])) : (s(), n("g",
|
|
654
|
-
B(
|
|
665
|
+
], 8, ql))
|
|
666
|
+
])) : (s(), n("g", Jl, [
|
|
667
|
+
B(t) && f.value.dataLabels.show ? (s(), n("circle", {
|
|
655
668
|
key: 0,
|
|
656
|
-
cx: o(y)(
|
|
657
|
-
cy: o(
|
|
658
|
-
fill:
|
|
669
|
+
cx: o(y)(t).x,
|
|
670
|
+
cy: o(q)(t) - 3.5,
|
|
671
|
+
fill: t.color,
|
|
659
672
|
r: 3,
|
|
660
673
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === u ? "" : `url(#blur_${x.value})`,
|
|
661
|
-
onClick: (r) =>
|
|
662
|
-
}, null, 8,
|
|
663
|
-
B(
|
|
674
|
+
onClick: (r) => Q(t, u)
|
|
675
|
+
}, null, 8, Kl)) : c("", !0),
|
|
676
|
+
B(t) && f.value.dataLabels.show ? (s(), n("text", {
|
|
664
677
|
key: 1,
|
|
665
|
-
"text-anchor": o(y)(
|
|
666
|
-
x: o(y)(
|
|
667
|
-
y: o(
|
|
678
|
+
"text-anchor": o(y)(t, !0, 12).anchor,
|
|
679
|
+
x: o(y)(t, !0, 12).x,
|
|
680
|
+
y: o(q)(t),
|
|
668
681
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
669
682
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
670
|
-
style:
|
|
671
|
-
onClick: (r) =>
|
|
672
|
-
}, _(
|
|
683
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
684
|
+
onClick: (r) => Q(t, u)
|
|
685
|
+
}, _(xe(t, A.value)) + " " + _(e.value.style.chart.layout.labels.value.show ? `(${o(F)(
|
|
673
686
|
e.value.style.chart.layout.labels.value.formatter,
|
|
674
|
-
|
|
687
|
+
t.value,
|
|
675
688
|
o(C)({
|
|
676
689
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
677
|
-
v:
|
|
690
|
+
v: t.value,
|
|
678
691
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
679
692
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
680
693
|
}),
|
|
681
|
-
{ datapoint:
|
|
682
|
-
)})` : ""), 13,
|
|
683
|
-
B(
|
|
694
|
+
{ datapoint: t }
|
|
695
|
+
)})` : ""), 13, Ql)) : c("", !0),
|
|
696
|
+
B(t) && f.value.dataLabels.show ? (s(), n("text", {
|
|
684
697
|
key: 2,
|
|
685
|
-
"text-anchor": o(y)(
|
|
686
|
-
x: o(y)(
|
|
687
|
-
y: o(
|
|
698
|
+
"text-anchor": o(y)(t).anchor,
|
|
699
|
+
x: o(y)(t, !0, 12).x,
|
|
700
|
+
y: o(q)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
688
701
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
689
702
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
690
|
-
style:
|
|
691
|
-
onClick: (r) =>
|
|
692
|
-
}, _(
|
|
703
|
+
style: T(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
704
|
+
onClick: (r) => Q(t, u)
|
|
705
|
+
}, _(t.name), 13, Zl)) : c("", !0)
|
|
693
706
|
])),
|
|
694
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show &&
|
|
695
|
-
B(
|
|
707
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), n("g", et, [
|
|
708
|
+
B(t) ? (s(), n("foreignObject", {
|
|
696
709
|
key: 0,
|
|
697
|
-
x: e.value.style.chart.comments.offsetX + (o(y)(
|
|
698
|
-
y: o(
|
|
710
|
+
x: e.value.style.chart.comments.offsetX + (o(y)(t, !0).anchor === "end" ? o(y)(t).x - e.value.style.chart.comments.width : o(y)(t, !0).anchor === "middle" ? o(y)(t).x - e.value.style.chart.comments.width / 2 : o(y)(t).x),
|
|
711
|
+
y: o(q)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
699
712
|
width: e.value.style.chart.comments.width,
|
|
700
713
|
height: "200",
|
|
701
714
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
702
715
|
}, [
|
|
703
716
|
b("div", null, [
|
|
704
|
-
p(
|
|
705
|
-
plot: { ...
|
|
717
|
+
p(l.$slots, "plot-comment", {
|
|
718
|
+
plot: { ...t, textAlign: o(y)(t, !0, 16, !0).anchor, flexAlign: o(y)(t, !0, 16).anchor }
|
|
706
719
|
}, void 0, !0)
|
|
707
720
|
])
|
|
708
|
-
], 8,
|
|
709
|
-
])) :
|
|
710
|
-
], 10,
|
|
711
|
-
p(
|
|
712
|
-
], 14,
|
|
713
|
-
|
|
714
|
-
p(
|
|
715
|
-
])) :
|
|
716
|
-
|
|
721
|
+
], 8, lt)) : c("", !0)
|
|
722
|
+
])) : c("", !0)
|
|
723
|
+
], 10, Wl))), 256)),
|
|
724
|
+
p(l.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
725
|
+
], 14, $l)) : c("", !0),
|
|
726
|
+
l.$slots.watermark ? (s(), n("div", tt, [
|
|
727
|
+
p(l.$slots, "watermark", H(W({ isPrinting: o(fe) || o(be) })), void 0, !0)
|
|
728
|
+
])) : c("", !0),
|
|
729
|
+
E.value ? c("", !0) : (s(), V(wl, {
|
|
717
730
|
key: 4,
|
|
718
731
|
config: {
|
|
719
732
|
type: "donut",
|
|
@@ -721,56 +734,56 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
721
734
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
722
735
|
donut: {
|
|
723
736
|
color: "#CCCCCC",
|
|
724
|
-
strokeWidth:
|
|
737
|
+
strokeWidth: j.value * 0.8
|
|
725
738
|
}
|
|
726
739
|
}
|
|
727
740
|
}
|
|
728
741
|
}, null, 8, ["config"])),
|
|
729
742
|
b("div", {
|
|
730
743
|
ref_key: "chartLegend",
|
|
731
|
-
ref:
|
|
744
|
+
ref: ne
|
|
732
745
|
}, [
|
|
733
|
-
e.value.style.chart.legend.show ? (s(),
|
|
734
|
-
key:
|
|
735
|
-
legendSet:
|
|
736
|
-
config:
|
|
737
|
-
onClickMarker: a[1] || (a[1] = ({ i:
|
|
746
|
+
e.value.style.chart.legend.show ? (s(), V(ml, {
|
|
747
|
+
key: `legend_${ce.value}`,
|
|
748
|
+
legendSet: Ce.value,
|
|
749
|
+
config: Me.value,
|
|
750
|
+
onClickMarker: a[1] || (a[1] = ({ i: t }) => _e(t))
|
|
738
751
|
}, {
|
|
739
|
-
item: w(({ legend:
|
|
752
|
+
item: w(({ legend: t, index: u }) => [
|
|
740
753
|
b("div", {
|
|
741
|
-
onClick: (r) =>
|
|
742
|
-
style:
|
|
754
|
+
onClick: (r) => t.segregate(),
|
|
755
|
+
style: T(`opacity:${L.value.includes(u) ? 0.5 : 1}`)
|
|
743
756
|
}, [
|
|
744
|
-
|
|
757
|
+
Pe(_(t.name) + ": " + _(o(F)(
|
|
745
758
|
e.value.style.chart.layout.labels.value.formatter,
|
|
746
|
-
|
|
759
|
+
t.value,
|
|
747
760
|
o(C)({
|
|
748
761
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
749
|
-
v:
|
|
762
|
+
v: t.value,
|
|
750
763
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
751
764
|
r: e.value.style.chart.legend.roundingValue
|
|
752
765
|
}),
|
|
753
766
|
{
|
|
754
|
-
datapoint:
|
|
767
|
+
datapoint: t,
|
|
755
768
|
index: u
|
|
756
769
|
}
|
|
757
770
|
)) + " ", 1),
|
|
758
|
-
L.value.includes(u) ? (s(), n("span",
|
|
771
|
+
L.value.includes(u) ? (s(), n("span", ut, " ( " + _(je(t.proportion * 100)) + " % ) ", 1)) : (s(), n("span", ot, " (" + _(isNaN(t.value / m.value) ? "-" : o(F)(
|
|
759
772
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
760
|
-
O.value ?
|
|
773
|
+
O.value ? t.proportion * 100 : t.value / m.value * 100,
|
|
761
774
|
o(C)({
|
|
762
|
-
v: O.value ?
|
|
775
|
+
v: O.value ? t.proportion * 100 : t.value / m.value * 100,
|
|
763
776
|
s: "%",
|
|
764
777
|
r: e.value.style.chart.legend.roundingPercentage
|
|
765
778
|
})
|
|
766
779
|
)) + ") ", 1))
|
|
767
|
-
], 12,
|
|
780
|
+
], 12, at)
|
|
768
781
|
]),
|
|
769
782
|
_: 1
|
|
770
|
-
}, 8, ["legendSet", "config"])) :
|
|
771
|
-
p(
|
|
783
|
+
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
784
|
+
p(l.$slots, "legend", { legend: Ce.value }, void 0, !0)
|
|
772
785
|
], 512),
|
|
773
|
-
|
|
786
|
+
We(pl, {
|
|
774
787
|
show: f.value.showTooltip && ee.value,
|
|
775
788
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
776
789
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -781,19 +794,19 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
781
794
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
782
795
|
position: e.value.style.chart.tooltip.position,
|
|
783
796
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
784
|
-
parent:
|
|
797
|
+
parent: U.value,
|
|
785
798
|
content: le.value,
|
|
786
|
-
isCustom:
|
|
799
|
+
isCustom: R.value
|
|
787
800
|
}, {
|
|
788
801
|
"tooltip-before": w(() => [
|
|
789
|
-
p(
|
|
802
|
+
p(l.$slots, "tooltip-before", H(W({ ...te.value })), void 0, !0)
|
|
790
803
|
]),
|
|
791
804
|
"tooltip-after": w(() => [
|
|
792
|
-
p(
|
|
805
|
+
p(l.$slots, "tooltip-after", H(W({ ...te.value })), void 0, !0)
|
|
793
806
|
]),
|
|
794
807
|
_: 3
|
|
795
808
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
796
|
-
|
|
809
|
+
E.value ? (s(), V(kl, {
|
|
797
810
|
key: 5,
|
|
798
811
|
hideDetails: "",
|
|
799
812
|
config: {
|
|
@@ -810,48 +823,49 @@ const pl = (M) => (Re("data-v-8cc49fb9"), M = M(), Ye(), M), ml = ["id"], wl = [
|
|
|
810
823
|
}
|
|
811
824
|
}, {
|
|
812
825
|
content: w(() => [
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
826
|
+
(s(), V(gl, {
|
|
827
|
+
key: `table_${ve.value}`,
|
|
828
|
+
colNames: K.value.colNames,
|
|
829
|
+
head: K.value.head,
|
|
830
|
+
body: K.value.body,
|
|
831
|
+
config: K.value.config,
|
|
818
832
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
819
|
-
onClose: a[2] || (a[2] = (
|
|
833
|
+
onClose: a[2] || (a[2] = (t) => f.value.showTable = !1)
|
|
820
834
|
}, {
|
|
821
|
-
th: w(({ th:
|
|
835
|
+
th: w(({ th: t }) => [
|
|
822
836
|
b("div", {
|
|
823
|
-
innerHTML:
|
|
837
|
+
innerHTML: t,
|
|
824
838
|
style: { display: "flex", "align-items": "center" }
|
|
825
|
-
}, null, 8,
|
|
839
|
+
}, null, 8, st)
|
|
826
840
|
]),
|
|
827
|
-
td: w(({ td:
|
|
828
|
-
|
|
841
|
+
td: w(({ td: t }) => [
|
|
842
|
+
Pe(_(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? o(F)(
|
|
829
843
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
830
|
-
|
|
844
|
+
t,
|
|
831
845
|
o(C)({
|
|
832
|
-
v:
|
|
846
|
+
v: t,
|
|
833
847
|
s: "%",
|
|
834
848
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
835
849
|
})
|
|
836
|
-
) :
|
|
850
|
+
) : t : o(F)(
|
|
837
851
|
e.value.style.chart.layout.labels.value.formatter,
|
|
838
|
-
|
|
852
|
+
t,
|
|
839
853
|
o(C)({
|
|
840
854
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
841
|
-
v:
|
|
855
|
+
v: t,
|
|
842
856
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
843
857
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
844
858
|
})
|
|
845
859
|
)), 1)
|
|
846
860
|
]),
|
|
847
861
|
_: 1
|
|
848
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
862
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
849
863
|
]),
|
|
850
864
|
_: 1
|
|
851
|
-
}, 8, ["config"])) :
|
|
852
|
-
], 14,
|
|
865
|
+
}, 8, ["config"])) : c("", !0)
|
|
866
|
+
], 14, xl));
|
|
853
867
|
}
|
|
854
|
-
},
|
|
868
|
+
}, wt = /* @__PURE__ */ _l(rt, [["__scopeId", "data-v-315950a4"]]);
|
|
855
869
|
export {
|
|
856
|
-
|
|
870
|
+
wt as default
|
|
857
871
|
};
|