vue-data-ui 2.3.28 → 2.3.30
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/README.md +15 -0
- package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
import { computed as x, ref as L, onMounted as Xe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as B, createVNode as Le, createCommentVNode as d, createBlock as R, unref as c, createSlots as Ge, withCtx as P, renderSlot as T, normalizeProps as ae, guardReactiveProps as ue, createElementVNode as v, Fragment as m, renderList as p, toDisplayString as b, withKeys as Be, createTextVNode as $e, nextTick as je } from "vue";
|
|
2
|
+
import { u as Ye, o as Ke, e as j, g as qe, c as Se, t as Je, a as Qe, p as Y, b as Ze, d as oe, A as Ae, m as se, X as et, v as re, B as tt, i as ne, f as K, j as Ne, k as q, n as ze, E as Fe, q as lt, r as at } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { _ as ut } from "./Title-eBTH8iGJ.js";
|
|
4
|
+
import { u as ot, U as st } from "./usePrinter-CZ8F5Cth.js";
|
|
5
|
+
import { D as rt } from "./DataTable-CsPidn0_.js";
|
|
6
|
+
import { L as nt } from "./Legend-CkQ_zypV.js";
|
|
7
|
+
import it from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
8
|
+
import { S as ct } from "./Slicer-DaEfxscP.js";
|
|
9
|
+
import vt from "./vue-ui-accordion-wHRG3nXl.js";
|
|
10
|
+
import { u as Pe } from "./useNestedProp-BoNl5H_z.js";
|
|
11
|
+
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const ht = ["id"], yt = ["xmlns", "viewBox"], ft = ["id"], gt = ["stop-color"], bt = ["stop-color"], xt = ["id"], mt = ["stop-color"], pt = ["stop-color"], kt = ["stop-color"], _t = { key: 0 }, Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x", "y", "font-size", "fill", "font-weight"], Nt = ["text-anchor", "font-size", "fill", "transform"], zt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ft = { key: 1 }, Pt = ["cx", "cy", "r", "fill"], Dt = { key: 0 }, Tt = { key: 0 }, Et = ["d", "stroke"], It = ["text-anchor", "x", "y", "fill"], Ot = ["cx", "cy", "r", "fill"], Vt = { key: 0 }, Ht = ["cx", "cy", "fill"], Mt = { key: 1 }, Wt = ["d", "fill", "stroke"], Rt = { key: 2 }, Ut = ["d", "fill", "stroke"], Xt = ["x", "y", "font-size", "fill"], Gt = ["x", "y", "width", "fill", "onClick"], Bt = ["x", "y", "width", "height", "onMouseenter", "onClick"], jt = {
|
|
13
|
+
key: 3,
|
|
14
|
+
"data-cy-zoom": "",
|
|
15
|
+
class: "vue-ui-donut-evolution-dialog"
|
|
16
|
+
}, Yt = ["x", "y", "width", "height", "fill"], Kt = ["x1", "y1", "x2", "y2", "stroke"], qt = ["x1", "y2", "x2", "y1", "stroke"], Jt = ["onKeypress", "cx", "cy", "r"], Qt = ["d", "stroke"], Zt = ["cx", "cy", "r", "fill"], el = ["d", "fill", "stroke"], tl = { class: "vue-ui-donut-evolution-focus" }, ll = ["text-anchor", "x", "y", "fill"], al = ["cx", "cy", "r", "fill"], ul = ["cx", "cy", "r", "fill"], ol = ["x", "y", "fill"], sl = ["x", "y", "font-size", "fill"], rl = {
|
|
17
|
+
key: 3,
|
|
18
|
+
class: "vue-data-ui-watermark"
|
|
19
|
+
}, nl = ["onClick"], il = { key: 0 }, cl = { key: 1 }, vl = { key: 0 }, dl = { key: 1 }, hl = {
|
|
20
|
+
__name: "vue-ui-donut-evolution",
|
|
21
|
+
props: {
|
|
22
|
+
config: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
dataset: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default() {
|
|
31
|
+
return [];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["selectLegend"],
|
|
36
|
+
setup(De, { expose: Te, emit: ie }) {
|
|
37
|
+
const z = De, { vue_ui_donut_evolution: Ee } = Ye(), U = x(() => !!z.dataset && z.dataset.length), h = L({
|
|
38
|
+
start: 0,
|
|
39
|
+
end: Math.max(...z.dataset.map((l) => l.values.length))
|
|
40
|
+
});
|
|
41
|
+
function Ie() {
|
|
42
|
+
h.value = {
|
|
43
|
+
start: 0,
|
|
44
|
+
end: M.value
|
|
45
|
+
}, de.value += 1;
|
|
46
|
+
}
|
|
47
|
+
Xe(() => {
|
|
48
|
+
Ke(z.dataset) ? j({
|
|
49
|
+
componentName: "VueUiDonutEvolution",
|
|
50
|
+
type: "dataset"
|
|
51
|
+
}) : z.dataset.length && z.dataset.forEach((l, i) => {
|
|
52
|
+
qe({
|
|
53
|
+
datasetObject: l,
|
|
54
|
+
requiredAttributes: ["name", "values"]
|
|
55
|
+
}).forEach((t) => {
|
|
56
|
+
j({
|
|
57
|
+
componentName: "VueUiDonutEvolution",
|
|
58
|
+
type: "datasetSerieAttribute",
|
|
59
|
+
property: t,
|
|
60
|
+
index: i
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
const E = L(Se()), k = L([]), g = L(null), J = L(null), $ = L(!1), S = L(null), ce = L(null), ve = L(0), de = L(0), e = x(() => {
|
|
66
|
+
const l = Pe({
|
|
67
|
+
userConfig: z.config,
|
|
68
|
+
defaultConfig: Ee
|
|
69
|
+
});
|
|
70
|
+
return l.theme ? {
|
|
71
|
+
...Pe({
|
|
72
|
+
userConfig: Je.vue_ui_donut_evolution[l.theme] || z.config,
|
|
73
|
+
defaultConfig: l
|
|
74
|
+
}),
|
|
75
|
+
customPalette: Qe[l.theme] || Y
|
|
76
|
+
} : l;
|
|
77
|
+
}), { isPrinting: he, isImaging: ye, generatePdf: fe, generateImage: ge } = ot({
|
|
78
|
+
elementId: E.value,
|
|
79
|
+
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
80
|
+
}), Oe = x(() => Ze(e.value.customPalette)), X = L({
|
|
81
|
+
showTable: e.value.table.show
|
|
82
|
+
}), s = x(() => ({
|
|
83
|
+
top: e.value.style.chart.layout.padding.top,
|
|
84
|
+
right: e.value.style.chart.layout.padding.right,
|
|
85
|
+
bottom: e.value.style.chart.layout.padding.bottom,
|
|
86
|
+
left: e.value.style.chart.layout.padding.left
|
|
87
|
+
})), r = x(() => {
|
|
88
|
+
const l = e.value.style.chart.layout.height, i = e.value.style.chart.layout.width, t = l - s.value.top - s.value.bottom, n = i - s.value.left - s.value.right;
|
|
89
|
+
return {
|
|
90
|
+
absoluteHeight: l,
|
|
91
|
+
absoluteWidth: i,
|
|
92
|
+
centerX: s.value.left + n / 2,
|
|
93
|
+
centerY: s.value.top + t / 2,
|
|
94
|
+
height: t,
|
|
95
|
+
width: n
|
|
96
|
+
};
|
|
97
|
+
}), D = x(() => (z.dataset.forEach((l, i) => {
|
|
98
|
+
[null, void 0].includes(l.name) && j({
|
|
99
|
+
componentName: "VueUiDonutEvolution",
|
|
100
|
+
type: "datasetSerieAttribute",
|
|
101
|
+
property: "name",
|
|
102
|
+
index: i
|
|
103
|
+
}), [null, void 0].includes(l.values) && j({
|
|
104
|
+
componentName: "VueUiDonutEvolution",
|
|
105
|
+
type: "datasetSerieAttribute",
|
|
106
|
+
property: "values",
|
|
107
|
+
index: i
|
|
108
|
+
});
|
|
109
|
+
}), z.dataset.map((l, i) => ({
|
|
110
|
+
...l,
|
|
111
|
+
values: l.values || [],
|
|
112
|
+
color: oe(l.color) || Oe.value[i] || Y[i] || Y[i % Y.length],
|
|
113
|
+
length: (l.values || []).length,
|
|
114
|
+
uid: Se()
|
|
115
|
+
})))), H = x(() => D.value.filter((l) => !k.value.includes(l.uid)).map((l) => ({
|
|
116
|
+
...l,
|
|
117
|
+
values: l.values.filter((i, t) => t >= h.value.start && t <= h.value.end)
|
|
118
|
+
}))), M = x(() => Math.max(...H.value.map((l) => l.length))), C = x(() => r.value.width / (h.value.end - h.value.start)), _ = x(() => {
|
|
119
|
+
const l = [];
|
|
120
|
+
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
121
|
+
const f = H.value.map((N) => N.values[o] ?? null), y = f.filter((N) => [void 0, null].includes(N)).length === f.length, A = f.reduce((N, w) => N + w, 0), le = f.map((N) => N / A), V = s.value.left + C.value * o + C.value / 2;
|
|
122
|
+
l.push({
|
|
123
|
+
index: o,
|
|
124
|
+
percentages: le,
|
|
125
|
+
subtotal: y || A < 0 ? null : A,
|
|
126
|
+
values: f,
|
|
127
|
+
x: V
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
const i = 0, t = Math.max(...l.map((o) => o.subtotal)), n = l.length === 1 ? t * 2 : t;
|
|
131
|
+
return l.map((o, f) => {
|
|
132
|
+
const y = C.value / 2 * 0.7, A = y > r.value.width / 16 ? r.value.width / 16 : y, le = g.value === o.index ? r.value.width / 16 : A, V = l.length > 4 ? y * 2 : y * 2 > C.value / 2 * 0.7 ? C.value / 2 * 0.7 : y * 2, N = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Ae(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
133
|
+
return {
|
|
134
|
+
...o,
|
|
135
|
+
y: N,
|
|
136
|
+
radius: A,
|
|
137
|
+
activeRadius: le,
|
|
138
|
+
hoverRadius: V,
|
|
139
|
+
donut: se({
|
|
140
|
+
series: H.value.map((w, we) => ({
|
|
141
|
+
color: w.color,
|
|
142
|
+
name: w.name,
|
|
143
|
+
value: w.values[f] ?? 0
|
|
144
|
+
}))
|
|
145
|
+
}, o.x, N, A, A, 1.99999, 2, 1, 360, 105.25, A / 2),
|
|
146
|
+
donutHover: se({
|
|
147
|
+
series: H.value.map((w, we) => ({
|
|
148
|
+
color: w.color,
|
|
149
|
+
name: w.name,
|
|
150
|
+
value: w.values[f] ?? 0
|
|
151
|
+
}))
|
|
152
|
+
}, o.x, N, V, V, 1.99999, 2, 1, 360, 105.25, V / 2),
|
|
153
|
+
donutFocus: se({
|
|
154
|
+
series: H.value.map((w, we) => ({
|
|
155
|
+
color: w.color,
|
|
156
|
+
name: w.name,
|
|
157
|
+
value: w.values[f] ?? 0
|
|
158
|
+
}))
|
|
159
|
+
}, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
function G(l, i, t) {
|
|
164
|
+
return ne(
|
|
165
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
166
|
+
l,
|
|
167
|
+
K({
|
|
168
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
169
|
+
v: l,
|
|
170
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
171
|
+
r: e.value.style.chart.layout.dataLabels.rounding
|
|
172
|
+
}),
|
|
173
|
+
{ datapoint: i, index: t }
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
const Q = x(() => ({
|
|
177
|
+
max: Math.max(..._.value.map((l) => l.subtotal)),
|
|
178
|
+
min: 0
|
|
179
|
+
})), I = x(() => {
|
|
180
|
+
const l = _.value.length === 1 ? Q.value.max * 2 : Q.value.max;
|
|
181
|
+
return Ae(Q.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
182
|
+
});
|
|
183
|
+
function Ve(l) {
|
|
184
|
+
return l / I.value.max;
|
|
185
|
+
}
|
|
186
|
+
const He = x(() => I.value.ticks.map((l) => ({
|
|
187
|
+
y: r.value.absoluteHeight - s.value.bottom - r.value.height * Ve(l),
|
|
188
|
+
value: l
|
|
189
|
+
})));
|
|
190
|
+
function be(l, i) {
|
|
191
|
+
return isNaN(l.value / Fe(i, "value")) ? 0 : (l.value / Fe(i, "value") * 100).toFixed(0) + "%";
|
|
192
|
+
}
|
|
193
|
+
function xe() {
|
|
194
|
+
$.value || (g.value = null, J.value = null);
|
|
195
|
+
}
|
|
196
|
+
function Me(l) {
|
|
197
|
+
$.value || (g.value = l.index, J.value = l);
|
|
198
|
+
}
|
|
199
|
+
const Z = L(null);
|
|
200
|
+
function ee(l, i) {
|
|
201
|
+
l.subtotal && (J.value = null, g.value = null, $.value = !0, S.value = l, [null, void 0].includes(i) || (Z.value = i));
|
|
202
|
+
}
|
|
203
|
+
function me() {
|
|
204
|
+
S.value = null, $.value = !1, Z.value = null;
|
|
205
|
+
}
|
|
206
|
+
const pe = x(() => D.value.map((l, i) => ({
|
|
207
|
+
name: l.name,
|
|
208
|
+
value: l.values.slice(h.value.start, h.value.end).reduce((t, n) => t + n, 0),
|
|
209
|
+
shape: "circle",
|
|
210
|
+
uid: l.uid,
|
|
211
|
+
color: l.color
|
|
212
|
+
})).sort((l, i) => i.value - l.value).map((l) => ({
|
|
213
|
+
...l,
|
|
214
|
+
opacity: k.value.includes(l.uid) ? 0.5 : 1,
|
|
215
|
+
segregate: () => te(l.uid),
|
|
216
|
+
isSegregated: k.value.includes(l.uid)
|
|
217
|
+
}))), ke = x(() => _.value.map((l) => l.subtotal).reduce((l, i) => l + i, 0)), We = x(() => ({
|
|
218
|
+
cy: "donut-div-legend",
|
|
219
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
220
|
+
color: e.value.style.chart.legend.color,
|
|
221
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
222
|
+
paddingBottom: 12,
|
|
223
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
224
|
+
}));
|
|
225
|
+
function te(l) {
|
|
226
|
+
if (k.value.includes(l))
|
|
227
|
+
k.value = k.value.filter((i) => i !== l), ie("selectLegend", null);
|
|
228
|
+
else {
|
|
229
|
+
if (k.value.length === D.value.length - 1) return;
|
|
230
|
+
k.value.push(l), ie("selectLegend", D.value.find((i) => i.uid === l));
|
|
231
|
+
}
|
|
232
|
+
S.value && ee(_.value.find((i, t) => t === Z.value));
|
|
233
|
+
}
|
|
234
|
+
const O = x(() => {
|
|
235
|
+
const l = [""].concat(D.value.filter((o) => !k.value.includes(o.uid)).map((o) => ({
|
|
236
|
+
name: o.name,
|
|
237
|
+
color: o.color
|
|
238
|
+
}))).concat(["Σ"]);
|
|
239
|
+
let i = [];
|
|
240
|
+
for (let o = 0; o < M.value; o += 1) {
|
|
241
|
+
const f = D.value.filter((y) => !k.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, A) => y + A, 0);
|
|
242
|
+
i.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[o] ?? "-"].concat(D.value.filter((y) => !k.value.includes(y.uid)).map((y) => ({
|
|
243
|
+
value: y.values[o] ?? 0,
|
|
244
|
+
percentage: y.values[o] ? y.values[o] / f * 100 : 0
|
|
245
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
246
|
+
}
|
|
247
|
+
const t = {
|
|
248
|
+
th: {
|
|
249
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
250
|
+
color: e.value.table.th.color,
|
|
251
|
+
outline: e.value.table.th.outline
|
|
252
|
+
},
|
|
253
|
+
td: {
|
|
254
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
255
|
+
color: e.value.table.td.color,
|
|
256
|
+
outline: e.value.table.td.outline
|
|
257
|
+
},
|
|
258
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
259
|
+
}, n = [
|
|
260
|
+
e.value.table.columnNames.period
|
|
261
|
+
].concat(D.value.filter((o) => !k.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
262
|
+
return { head: l, body: i, config: t, colNames: n };
|
|
263
|
+
});
|
|
264
|
+
function Re() {
|
|
265
|
+
return D.value;
|
|
266
|
+
}
|
|
267
|
+
function _e() {
|
|
268
|
+
je(() => {
|
|
269
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...O.value.head.map((f) => f.name ?? f)], t = [...O.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = lt(n);
|
|
270
|
+
at({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
const W = L(!1);
|
|
274
|
+
function Ue(l) {
|
|
275
|
+
W.value = l, ve.value += 1;
|
|
276
|
+
}
|
|
277
|
+
function Ce() {
|
|
278
|
+
X.value.showTable = !X.value.showTable;
|
|
279
|
+
}
|
|
280
|
+
return Te({
|
|
281
|
+
getData: Re,
|
|
282
|
+
generatePdf: fe,
|
|
283
|
+
generateCsv: _e,
|
|
284
|
+
generateImage: ge,
|
|
285
|
+
toggleTable: Ce
|
|
286
|
+
}), (l, i) => (a(), u("div", {
|
|
287
|
+
ref_key: "donutEvolutionChart",
|
|
288
|
+
ref: ce,
|
|
289
|
+
class: F(`vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
290
|
+
style: B(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
291
|
+
id: E.value
|
|
292
|
+
}, [
|
|
293
|
+
e.value.style.chart.title.text ? (a(), u("div", {
|
|
294
|
+
key: 0,
|
|
295
|
+
style: B(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`),
|
|
296
|
+
onMouseleave: xe
|
|
297
|
+
}, [
|
|
298
|
+
Le(ut, {
|
|
299
|
+
config: {
|
|
300
|
+
title: {
|
|
301
|
+
cy: "donut-evolution-div-title",
|
|
302
|
+
...e.value.style.chart.title
|
|
303
|
+
},
|
|
304
|
+
subtitle: {
|
|
305
|
+
cy: "donut-evolution-div-subtitle",
|
|
306
|
+
...e.value.style.chart.title.subtitle
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}, null, 8, ["config"])
|
|
310
|
+
], 36)) : d("", !0),
|
|
311
|
+
e.value.userOptions.show && U.value ? (a(), R(st, {
|
|
312
|
+
ref: "details",
|
|
313
|
+
key: `user_options_${ve.value}`,
|
|
314
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
315
|
+
color: e.value.style.chart.color,
|
|
316
|
+
isPrinting: c(he),
|
|
317
|
+
isImaging: c(ye),
|
|
318
|
+
uid: E.value,
|
|
319
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
320
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
321
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
322
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
323
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
324
|
+
isFullscreen: W.value,
|
|
325
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
326
|
+
chartElement: ce.value,
|
|
327
|
+
onToggleFullscreen: Ue,
|
|
328
|
+
onGeneratePdf: c(fe),
|
|
329
|
+
onGenerateCsv: _e,
|
|
330
|
+
onGenerateImage: c(ge),
|
|
331
|
+
onToggleTable: Ce
|
|
332
|
+
}, Ge({ _: 2 }, [
|
|
333
|
+
l.$slots.optionPdf ? {
|
|
334
|
+
name: "optionPdf",
|
|
335
|
+
fn: P(() => [
|
|
336
|
+
T(l.$slots, "optionPdf", {}, void 0, !0)
|
|
337
|
+
]),
|
|
338
|
+
key: "0"
|
|
339
|
+
} : void 0,
|
|
340
|
+
l.$slots.optionCsv ? {
|
|
341
|
+
name: "optionCsv",
|
|
342
|
+
fn: P(() => [
|
|
343
|
+
T(l.$slots, "optionCsv", {}, void 0, !0)
|
|
344
|
+
]),
|
|
345
|
+
key: "1"
|
|
346
|
+
} : void 0,
|
|
347
|
+
l.$slots.optionImg ? {
|
|
348
|
+
name: "optionImg",
|
|
349
|
+
fn: P(() => [
|
|
350
|
+
T(l.$slots, "optionImg", {}, void 0, !0)
|
|
351
|
+
]),
|
|
352
|
+
key: "2"
|
|
353
|
+
} : void 0,
|
|
354
|
+
l.$slots.optionTable ? {
|
|
355
|
+
name: "optionTable",
|
|
356
|
+
fn: P(() => [
|
|
357
|
+
T(l.$slots, "optionTable", {}, void 0, !0)
|
|
358
|
+
]),
|
|
359
|
+
key: "3"
|
|
360
|
+
} : void 0,
|
|
361
|
+
l.$slots.optionFullscreen ? {
|
|
362
|
+
name: "optionFullscreen",
|
|
363
|
+
fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
364
|
+
T(l.$slots, "optionFullscreen", ae(ue({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
365
|
+
]),
|
|
366
|
+
key: "4"
|
|
367
|
+
} : void 0
|
|
368
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
369
|
+
U.value ? (a(), u("svg", {
|
|
370
|
+
key: 2,
|
|
371
|
+
xmlns: c(et),
|
|
372
|
+
class: F({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
373
|
+
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
374
|
+
style: B(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
375
|
+
}, [
|
|
376
|
+
v("defs", null, [
|
|
377
|
+
v("linearGradient", {
|
|
378
|
+
id: `hover_${E.value}`,
|
|
379
|
+
x1: "0%",
|
|
380
|
+
y1: "0%",
|
|
381
|
+
x2: "0%",
|
|
382
|
+
y2: "100%"
|
|
383
|
+
}, [
|
|
384
|
+
v("stop", {
|
|
385
|
+
offset: "0%",
|
|
386
|
+
"stop-color": `${e.value.style.chart.backgroundColor}${c(re)[e.value.style.chart.layout.highlighter.opacity]}`
|
|
387
|
+
}, null, 8, gt),
|
|
388
|
+
v("stop", {
|
|
389
|
+
offset: "100%",
|
|
390
|
+
"stop-color": `${e.value.style.chart.layout.highlighter.color}${c(re)[e.value.style.chart.layout.highlighter.opacity]}`
|
|
391
|
+
}, null, 8, bt)
|
|
392
|
+
], 8, ft),
|
|
393
|
+
v("radialGradient", {
|
|
394
|
+
id: `focus_${E.value}`
|
|
395
|
+
}, [
|
|
396
|
+
v("stop", {
|
|
397
|
+
offset: "0%",
|
|
398
|
+
"stop-color": `${c(oe)(e.value.style.chart.backgroundColor)}00`
|
|
399
|
+
}, null, 8, mt),
|
|
400
|
+
v("stop", {
|
|
401
|
+
offset: "77%",
|
|
402
|
+
"stop-color": "#FFFFFF" + c(re)[30]
|
|
403
|
+
}, null, 8, pt),
|
|
404
|
+
v("stop", {
|
|
405
|
+
offset: "100%",
|
|
406
|
+
"stop-color": `${c(oe)(e.value.style.chart.backgroundColor)}00`
|
|
407
|
+
}, null, 8, kt)
|
|
408
|
+
], 8, xt)
|
|
409
|
+
]),
|
|
410
|
+
e.value.style.chart.layout.grid.show ? (a(), u("g", _t, [
|
|
411
|
+
v("line", {
|
|
412
|
+
x1: s.value.left,
|
|
413
|
+
x2: s.value.left,
|
|
414
|
+
y1: s.value.top,
|
|
415
|
+
y2: s.value.top + r.value.height,
|
|
416
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
417
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
418
|
+
"stroke-linecap": "round"
|
|
419
|
+
}, null, 8, Ct),
|
|
420
|
+
v("line", {
|
|
421
|
+
x1: s.value.left,
|
|
422
|
+
x2: r.value.absoluteWidth - s.value.right,
|
|
423
|
+
y1: r.value.absoluteHeight - s.value.bottom,
|
|
424
|
+
y2: r.value.absoluteHeight - s.value.bottom,
|
|
425
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
426
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
427
|
+
"stroke-linecap": "round"
|
|
428
|
+
}, null, 8, wt),
|
|
429
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (a(), u("g", Lt, [
|
|
430
|
+
(a(!0), u(m, null, p(h.value.end - h.value.start, (t, n) => (a(), u("line", {
|
|
431
|
+
x1: s.value.left + (n + 1) * C.value,
|
|
432
|
+
x2: s.value.left + (n + 1) * C.value,
|
|
433
|
+
y1: s.value.top,
|
|
434
|
+
y2: r.value.absoluteHeight - s.value.bottom,
|
|
435
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
436
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
437
|
+
"stroke-linecap": "round"
|
|
438
|
+
}, null, 8, $t))), 256))
|
|
439
|
+
])) : d("", !0)
|
|
440
|
+
])) : d("", !0),
|
|
441
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), u("g", {
|
|
442
|
+
key: 1,
|
|
443
|
+
class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || $.value })
|
|
444
|
+
}, [
|
|
445
|
+
(a(!0), u(m, null, p(He.value, (t, n) => (a(), u("g", null, [
|
|
446
|
+
t.value >= I.value.min && t.value <= I.value.max ? (a(), u("line", {
|
|
447
|
+
key: 0,
|
|
448
|
+
x1: s.value.left,
|
|
449
|
+
x2: s.value.left - 5,
|
|
450
|
+
y1: t.y,
|
|
451
|
+
y2: t.y,
|
|
452
|
+
stroke: e.value.style.chart.layout.grid.stroke,
|
|
453
|
+
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
454
|
+
}, null, 8, St)) : d("", !0),
|
|
455
|
+
t.value >= I.value.min && t.value <= I.value.max ? (a(), u("text", {
|
|
456
|
+
key: 1,
|
|
457
|
+
x: s.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
458
|
+
y: t.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
459
|
+
"font-size": e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
460
|
+
"text-anchor": "end",
|
|
461
|
+
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
462
|
+
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
463
|
+
}, b(c(tt)(t.value) ? c(ne)(
|
|
464
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
465
|
+
t.value,
|
|
466
|
+
c(K)({
|
|
467
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
468
|
+
v: t.value,
|
|
469
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
470
|
+
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
471
|
+
}),
|
|
472
|
+
{ datapoint: t, seriesIndex: n }
|
|
473
|
+
) : ""), 9, At)) : d("", !0)
|
|
474
|
+
]))), 256))
|
|
475
|
+
], 2)) : d("", !0),
|
|
476
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), u("g", {
|
|
477
|
+
key: 2,
|
|
478
|
+
class: F({ "donut-opacity": !0, "donut-behind": $.value })
|
|
479
|
+
}, [
|
|
480
|
+
(a(!0), u(m, null, p(h.value.end - h.value.start, (t, n) => (a(), u("g", null, [
|
|
481
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === M.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (a(), u("text", {
|
|
482
|
+
key: 0,
|
|
483
|
+
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
484
|
+
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
485
|
+
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
486
|
+
transform: `translate(${s.value.left + C.value * n + C.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + r.value.absoluteHeight - s.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
487
|
+
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(n) + Number(h.value.start)] ?? ""), 9, Nt)) : d("", !0)
|
|
488
|
+
]))), 256))
|
|
489
|
+
], 2)) : d("", !0),
|
|
490
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("g", null, [
|
|
491
|
+
e.value.style.chart.layout.line.show && n < _.value.length - 1 && ![t.subtotal, _.value[n + 1].subtotal].includes(null) ? (a(), u("line", {
|
|
492
|
+
key: 0,
|
|
493
|
+
class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || $.value }),
|
|
494
|
+
x1: t.x,
|
|
495
|
+
y1: t.y,
|
|
496
|
+
x2: _.value[n + 1].x,
|
|
497
|
+
y2: _.value[n + 1].y,
|
|
498
|
+
stroke: e.value.style.chart.layout.line.stroke,
|
|
499
|
+
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
500
|
+
"stroke-linecap": "round",
|
|
501
|
+
"stroke-linejoin": "round"
|
|
502
|
+
}, null, 10, zt)) : d("", !0),
|
|
503
|
+
t.subtotal !== null ? (a(), u("g", Ft, [
|
|
504
|
+
t.subtotal ? (a(), u("circle", {
|
|
505
|
+
key: 0,
|
|
506
|
+
cx: t.x,
|
|
507
|
+
cy: t.y,
|
|
508
|
+
r: t.activeRadius,
|
|
509
|
+
fill: e.value.style.chart.backgroundColor
|
|
510
|
+
}, null, 8, Pt)) : d("", !0)
|
|
511
|
+
])) : d("", !0)
|
|
512
|
+
]))), 256)),
|
|
513
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("g", {
|
|
514
|
+
class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
515
|
+
}, [
|
|
516
|
+
t.subtotal ? (a(), u("g", Dt, [
|
|
517
|
+
g.value !== null && g.value === n ? (a(), u("g", Tt, [
|
|
518
|
+
(a(!0), u(m, null, p(t.donutHover, (o) => (a(), u("g", null, [
|
|
519
|
+
v("path", {
|
|
520
|
+
d: c(Ne)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0),
|
|
521
|
+
stroke: o.color,
|
|
522
|
+
"stroke-width": "1",
|
|
523
|
+
"stroke-linecap": "round",
|
|
524
|
+
"stroke-linejoin": "round",
|
|
525
|
+
fill: "none"
|
|
526
|
+
}, null, 8, Et)
|
|
527
|
+
]))), 256)),
|
|
528
|
+
(a(!0), u(m, null, p(t.donutHover, (o, f) => (a(), u("g", null, [
|
|
529
|
+
v("text", {
|
|
530
|
+
"data-cy-hover-label": "",
|
|
531
|
+
"text-anchor": c(q)(o, !0, 0).anchor,
|
|
532
|
+
x: c(q)(o, !0, 3).x,
|
|
533
|
+
y: c(ze)(o),
|
|
534
|
+
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
535
|
+
"font-size": 8,
|
|
536
|
+
"font-weight": "bold"
|
|
537
|
+
}, b(o.name) + ": " + b(be(o, t.donut)) + " (" + b(o.value === null ? "-" : G(o.value, o, f)) + ") ", 9, It)
|
|
538
|
+
]))), 256)),
|
|
539
|
+
v("g", null, [
|
|
540
|
+
v("circle", {
|
|
541
|
+
cx: t.x,
|
|
542
|
+
cy: t.y,
|
|
543
|
+
r: t.hoverRadius,
|
|
544
|
+
fill: e.value.style.chart.backgroundColor
|
|
545
|
+
}, null, 8, Ot)
|
|
546
|
+
])
|
|
547
|
+
])) : d("", !0)
|
|
548
|
+
])) : d("", !0)
|
|
549
|
+
], 2))), 256)),
|
|
550
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("g", {
|
|
551
|
+
class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
552
|
+
}, [
|
|
553
|
+
t.subtotal !== null ? (a(), u("g", Vt, [
|
|
554
|
+
t.subtotal === 0 ? (a(), u("circle", {
|
|
555
|
+
key: 0,
|
|
556
|
+
cx: t.x,
|
|
557
|
+
cy: t.y,
|
|
558
|
+
r: 3,
|
|
559
|
+
fill: e.value.style.chart.color
|
|
560
|
+
}, null, 8, Ht)) : g.value !== null && g.value === n ? (a(), u("g", Mt, [
|
|
561
|
+
(a(!0), u(m, null, p(t.donutHover, (o, f) => (a(), u("path", {
|
|
562
|
+
d: o.arcSlice,
|
|
563
|
+
fill: `${o.color}`,
|
|
564
|
+
"stroke-width": 1,
|
|
565
|
+
stroke: e.value.style.chart.backgroundColor
|
|
566
|
+
}, null, 8, Wt))), 256))
|
|
567
|
+
])) : (a(), u("g", Rt, [
|
|
568
|
+
(a(!0), u(m, null, p(t.donut, (o, f) => (a(), u("path", {
|
|
569
|
+
d: o.arcSlice,
|
|
570
|
+
fill: `${o.color}`,
|
|
571
|
+
"stroke-width": 0.5,
|
|
572
|
+
stroke: e.value.style.chart.backgroundColor
|
|
573
|
+
}, null, 8, Ut))), 256))
|
|
574
|
+
]))
|
|
575
|
+
])) : d("", !0)
|
|
576
|
+
], 2))), 256)),
|
|
577
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("g", {
|
|
578
|
+
class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || $.value })
|
|
579
|
+
}, [
|
|
580
|
+
t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), u("text", {
|
|
581
|
+
key: 0,
|
|
582
|
+
"text-anchor": "middle",
|
|
583
|
+
x: t.x,
|
|
584
|
+
y: g.value === t.index && t.subtotal ? t.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : t.y - t.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
|
|
585
|
+
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
586
|
+
"font-weight": "bold",
|
|
587
|
+
fill: e.value.style.chart.layout.dataLabels.color
|
|
588
|
+
}, b(G(t.subtotal, t, n)), 9, Xt)) : d("", !0)
|
|
589
|
+
], 2))), 256)),
|
|
590
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("rect", {
|
|
591
|
+
x: s.value.left + n * C.value,
|
|
592
|
+
y: r.value.absoluteHeight - s.value.bottom - 10,
|
|
593
|
+
width: C.value,
|
|
594
|
+
height: 10,
|
|
595
|
+
fill: g.value === t.index ? `url(#hover_${E.value})` : "transparent",
|
|
596
|
+
onClick: (o) => ee(t, n),
|
|
597
|
+
class: F({ "donut-hover": g.value === t.index && t.subtotal })
|
|
598
|
+
}, null, 10, Gt))), 256)),
|
|
599
|
+
(a(!0), u(m, null, p(_.value, (t, n) => (a(), u("rect", {
|
|
600
|
+
"data-cy-trap": "",
|
|
601
|
+
x: s.value.left + n * C.value,
|
|
602
|
+
y: s.value.top,
|
|
603
|
+
width: C.value,
|
|
604
|
+
height: r.value.height,
|
|
605
|
+
fill: "transparent",
|
|
606
|
+
onMouseenter: (o) => Me(t),
|
|
607
|
+
onMouseleave: xe,
|
|
608
|
+
onClick: (o) => ee(t, n),
|
|
609
|
+
class: F({ "donut-hover": g.value === t.index && t.subtotal })
|
|
610
|
+
}, null, 42, Bt))), 256)),
|
|
611
|
+
$.value ? (a(), u("g", jt, [
|
|
612
|
+
v("rect", {
|
|
613
|
+
rx: 4,
|
|
614
|
+
x: s.value.left,
|
|
615
|
+
y: s.value.top,
|
|
616
|
+
width: r.value.width,
|
|
617
|
+
height: r.value.height,
|
|
618
|
+
fill: e.value.style.chart.backgroundColor,
|
|
619
|
+
style: { filter: "drop-shadow(0 12px 12px rgba(0,0,0,0.3))" }
|
|
620
|
+
}, null, 8, Yt),
|
|
621
|
+
v("line", {
|
|
622
|
+
"data-html2canvas-ignore": "",
|
|
623
|
+
x1: r.value.absoluteWidth - s.value.right - 15,
|
|
624
|
+
y1: s.value.top + 5,
|
|
625
|
+
x2: r.value.absoluteWidth - s.value.right - 4,
|
|
626
|
+
y2: s.value.top + 15.5,
|
|
627
|
+
"stroke-linecap": "round",
|
|
628
|
+
stroke: e.value.style.chart.color,
|
|
629
|
+
"stroke-width": "1.5"
|
|
630
|
+
}, null, 8, Kt),
|
|
631
|
+
v("line", {
|
|
632
|
+
"data-html2canvas-ignore": "",
|
|
633
|
+
x1: r.value.absoluteWidth - s.value.right - 15,
|
|
634
|
+
y2: s.value.top + 5,
|
|
635
|
+
x2: r.value.absoluteWidth - s.value.right - 4,
|
|
636
|
+
y1: s.value.top + 15.5,
|
|
637
|
+
"stroke-linecap": "round",
|
|
638
|
+
stroke: e.value.style.chart.color,
|
|
639
|
+
"stroke-width": "1.5"
|
|
640
|
+
}, null, 8, qt),
|
|
641
|
+
v("circle", {
|
|
642
|
+
"data-cy-close": "",
|
|
643
|
+
onClick: me,
|
|
644
|
+
onKeypress: Be(me, ["enter"]),
|
|
645
|
+
cx: r.value.absoluteWidth - s.value.right - r.value.width / 40,
|
|
646
|
+
cy: s.value.top + r.value.height / 30,
|
|
647
|
+
r: r.value.height / 12,
|
|
648
|
+
fill: "transparent",
|
|
649
|
+
style: { cursor: "pointer" },
|
|
650
|
+
tabindex: "0"
|
|
651
|
+
}, null, 40, Jt),
|
|
652
|
+
(a(!0), u(m, null, p(S.value.donutFocus, (t) => (a(), u("g", null, [
|
|
653
|
+
v("path", {
|
|
654
|
+
"data-cy-zoom-donut": "",
|
|
655
|
+
d: c(Ne)(t, { x: r.value.centerX, y: r.value.centerY }, 12, 12, !1, !1, 1),
|
|
656
|
+
stroke: t.color,
|
|
657
|
+
"stroke-width": "1",
|
|
658
|
+
"stroke-linecap": "round",
|
|
659
|
+
"stroke-linejoin": "round",
|
|
660
|
+
fill: "none",
|
|
661
|
+
class: "vue-ui-donut-evolution-focus"
|
|
662
|
+
}, null, 8, Qt)
|
|
663
|
+
]))), 256)),
|
|
664
|
+
v("circle", {
|
|
665
|
+
cx: s.value.left + r.value.width / 2,
|
|
666
|
+
cy: s.value.top + r.value.height / 2,
|
|
667
|
+
r: r.value.height / 7,
|
|
668
|
+
fill: e.value.style.chart.backgroundColor
|
|
669
|
+
}, null, 8, Zt),
|
|
670
|
+
(a(!0), u(m, null, p(S.value.donutFocus, (t, n) => (a(), u("path", {
|
|
671
|
+
d: t.arcSlice,
|
|
672
|
+
fill: `${t.color}`,
|
|
673
|
+
"stroke-width": 1,
|
|
674
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
675
|
+
class: "vue-ui-donut-evolution-focus"
|
|
676
|
+
}, null, 8, el))), 256)),
|
|
677
|
+
(a(!0), u(m, null, p(S.value.donutFocus, (t, n) => (a(), u("g", tl, [
|
|
678
|
+
v("text", {
|
|
679
|
+
"text-anchor": c(q)(t, !0, 20).anchor,
|
|
680
|
+
x: c(q)(t, !0, 10).x,
|
|
681
|
+
y: c(ze)(t),
|
|
682
|
+
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
683
|
+
"font-size": 10,
|
|
684
|
+
"font-weight": "bold"
|
|
685
|
+
}, b(t.name) + ": " + b(be(t, S.value.donutFocus)) + " (" + b(t.value === null ? "-" : G(t.value, t, n)) + ") ", 9, ll)
|
|
686
|
+
]))), 256)),
|
|
687
|
+
v("circle", {
|
|
688
|
+
cx: s.value.left + r.value.width / 2,
|
|
689
|
+
cy: s.value.top + r.value.height / 2,
|
|
690
|
+
r: r.value.height / 3.8,
|
|
691
|
+
fill: `url(#focus_${E.value})`
|
|
692
|
+
}, null, 8, al),
|
|
693
|
+
v("circle", {
|
|
694
|
+
cx: s.value.left + r.value.width / 2,
|
|
695
|
+
cy: s.value.top + r.value.height / 2,
|
|
696
|
+
r: r.value.height / 7.7,
|
|
697
|
+
fill: e.value.style.chart.backgroundColor
|
|
698
|
+
}, null, 8, ul),
|
|
699
|
+
v("text", {
|
|
700
|
+
"text-anchor": "middle",
|
|
701
|
+
x: s.value.left + r.value.width / 2,
|
|
702
|
+
y: s.value.top + r.value.height / 2 + 14 / 3,
|
|
703
|
+
"font-size": 14,
|
|
704
|
+
"font-weight": "bold",
|
|
705
|
+
fill: e.value.style.chart.layout.dataLabels.color,
|
|
706
|
+
class: "vue-ui-donut-evolution-focus"
|
|
707
|
+
}, b(G(S.value.subtotal, S.value, l.i)), 9, ol),
|
|
708
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.values[S.value.index] ? (a(), u("text", {
|
|
709
|
+
key: 0,
|
|
710
|
+
x: s.value.left + 6,
|
|
711
|
+
y: s.value.top + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2,
|
|
712
|
+
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 1.6,
|
|
713
|
+
fill: e.value.style.chart.layout.dataLabels.color
|
|
714
|
+
}, b(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(S.value.index) + Number(h.value.start)]), 9, sl)) : d("", !0)
|
|
715
|
+
])) : d("", !0),
|
|
716
|
+
T(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
717
|
+
], 14, yt)) : d("", !0),
|
|
718
|
+
l.$slots.watermark ? (a(), u("div", rl, [
|
|
719
|
+
T(l.$slots, "watermark", ae(ue({ isPrinting: c(he) || c(ye) })), void 0, !0)
|
|
720
|
+
])) : d("", !0),
|
|
721
|
+
U.value ? d("", !0) : (a(), R(it, {
|
|
722
|
+
key: 4,
|
|
723
|
+
config: {
|
|
724
|
+
type: "donutEvolution",
|
|
725
|
+
style: {
|
|
726
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
727
|
+
donutEvolution: {
|
|
728
|
+
axis: {
|
|
729
|
+
color: "#CCCCCC"
|
|
730
|
+
},
|
|
731
|
+
donuts: {
|
|
732
|
+
color: "#CCCCCC"
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}, null, 8, ["config"])),
|
|
738
|
+
M.value > 1 && e.value.style.chart.zoom.show ? (a(), R(ct, {
|
|
739
|
+
key: `slicer_${de.value}`,
|
|
740
|
+
background: e.value.style.chart.zoom.color,
|
|
741
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
742
|
+
fontSize: e.value.style.chart.zoom.fontSize,
|
|
743
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
744
|
+
labelLeft: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(h.value.start)] || "",
|
|
745
|
+
labelRight: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(h.value.end) - 1] || "",
|
|
746
|
+
textColor: e.value.style.chart.color,
|
|
747
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
748
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
749
|
+
max: M.value,
|
|
750
|
+
min: 0,
|
|
751
|
+
valueStart: h.value.start,
|
|
752
|
+
valueEnd: h.value.end,
|
|
753
|
+
start: h.value.start,
|
|
754
|
+
"onUpdate:start": i[0] || (i[0] = (t) => h.value.start = t),
|
|
755
|
+
end: h.value.end,
|
|
756
|
+
"onUpdate:end": i[1] || (i[1] = (t) => h.value.end = t),
|
|
757
|
+
onReset: Ie
|
|
758
|
+
}, {
|
|
759
|
+
"reset-action": P(({ reset: t }) => [
|
|
760
|
+
T(l.$slots, "reset-action", ae(ue({ reset: t })), void 0, !0)
|
|
761
|
+
]),
|
|
762
|
+
_: 3
|
|
763
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : d("", !0),
|
|
764
|
+
e.value.style.chart.legend.show ? (a(), R(nt, {
|
|
765
|
+
key: 6,
|
|
766
|
+
legendSet: pe.value,
|
|
767
|
+
config: We.value,
|
|
768
|
+
onClickMarker: i[2] || (i[2] = ({ legend: t }) => te(t.uid))
|
|
769
|
+
}, {
|
|
770
|
+
item: P(({ legend: t, index: n }) => [
|
|
771
|
+
v("div", {
|
|
772
|
+
"data-cy-legend-item": "",
|
|
773
|
+
onClick: (o) => te(t.uid),
|
|
774
|
+
style: B(`opacity:${k.value.includes(t.uid) ? 0.5 : 1}`)
|
|
775
|
+
}, [
|
|
776
|
+
$e(b(t.name) + ": " + b(c(ne)(
|
|
777
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
778
|
+
t.value,
|
|
779
|
+
c(K)({
|
|
780
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
781
|
+
v: t.value,
|
|
782
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
783
|
+
r: e.value.style.chart.legend.roundingValue
|
|
784
|
+
}),
|
|
785
|
+
{ datapoint: t, seriesIndex: n }
|
|
786
|
+
)) + " ", 1),
|
|
787
|
+
k.value.includes(t.uid) ? (a(), u("span", cl, " ( - % ) ")) : (a(), u("span", il, " (" + b(isNaN(t.value / ke.value) ? "-" : c(K)({
|
|
788
|
+
v: t.value / ke.value * 100,
|
|
789
|
+
s: "%",
|
|
790
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
791
|
+
})) + ") ", 1))
|
|
792
|
+
], 12, nl)
|
|
793
|
+
]),
|
|
794
|
+
_: 1
|
|
795
|
+
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
796
|
+
T(l.$slots, "legend", { legend: pe.value }, void 0, !0),
|
|
797
|
+
U.value ? (a(), R(vt, {
|
|
798
|
+
key: 7,
|
|
799
|
+
hideDetails: "",
|
|
800
|
+
config: {
|
|
801
|
+
open: X.value.showTable,
|
|
802
|
+
maxHeight: 1e4,
|
|
803
|
+
body: {
|
|
804
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
805
|
+
color: e.value.style.chart.color
|
|
806
|
+
},
|
|
807
|
+
head: {
|
|
808
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
809
|
+
color: e.value.style.chart.color
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}, {
|
|
813
|
+
content: P(() => [
|
|
814
|
+
Le(rt, {
|
|
815
|
+
colNames: O.value.colNames,
|
|
816
|
+
head: O.value.head,
|
|
817
|
+
body: O.value.body,
|
|
818
|
+
config: O.value.config,
|
|
819
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
820
|
+
onClose: i[3] || (i[3] = (t) => X.value.showTable = !1)
|
|
821
|
+
}, {
|
|
822
|
+
th: P(({ th: t }) => [
|
|
823
|
+
$e(b(t.name ?? t), 1)
|
|
824
|
+
]),
|
|
825
|
+
td: P(({ td: t }) => [
|
|
826
|
+
t.value === null ? (a(), u("span", vl, "-")) : (a(), u("b", dl, b(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + b(!isNaN(t.value) && t.value !== null ? Number(t.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : t) + b(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
827
|
+
v("span", null, b(t.percentage && !isNaN(t.percentage) ? `(${Number(t.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
828
|
+
]),
|
|
829
|
+
_: 1
|
|
830
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
831
|
+
]),
|
|
832
|
+
_: 1
|
|
833
|
+
}, 8, ["config"])) : d("", !0)
|
|
834
|
+
], 14, ht));
|
|
835
|
+
}
|
|
836
|
+
}, Ll = /* @__PURE__ */ dt(hl, [["__scopeId", "data-v-1c475578"]]);
|
|
837
|
+
export {
|
|
838
|
+
Ll as default
|
|
839
|
+
};
|