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
|
@@ -1,805 +0,0 @@
|
|
|
1
|
-
import { computed as x, ref as $, onMounted as Re, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as j, createVNode as Ce, createCommentVNode as v, createBlock as R, unref as y, createSlots as Ue, withCtx as P, renderSlot as T, normalizeProps as le, guardReactiveProps as ae, createElementVNode as c, Fragment as m, renderList as p, toDisplayString as g, withKeys as Xe, createTextVNode as we, nextTick as Ge } from "vue";
|
|
2
|
-
import { u as je, o as Be, e as B, g as Ye, c as $e, t as Ke, a as qe, p as Y, b as Je, d as ue, z as Le, m as oe, X as Qe, r as se, A as Ze, i as Se, j as K, k as Ne, D as Ae, n as et, q as tt } from "./index-BhCM2QF1.js";
|
|
3
|
-
import { _ as lt } from "./Title-CtWGLaoz.js";
|
|
4
|
-
import { u as at, U as ut } from "./usePrinter-B75HLwzw.js";
|
|
5
|
-
import { D as ot } from "./DataTable-bEXuvNn5.js";
|
|
6
|
-
import { L as st } from "./Legend-DwludSgp.js";
|
|
7
|
-
import nt from "./vue-ui-skeleton-_VMQ594N.js";
|
|
8
|
-
import { S as rt } from "./Slicer-Cv-2s_-r.js";
|
|
9
|
-
import it from "./vue-ui-accordion-CSZdj7wA.js";
|
|
10
|
-
import { u as ze } from "./useNestedProp-CH3PVhvc.js";
|
|
11
|
-
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const vt = ["id"], dt = ["xmlns", "viewBox"], ht = ["id"], yt = ["stop-color"], gt = ["stop-color"], ft = ["id"], bt = ["stop-color"], xt = ["stop-color"], mt = ["stop-color"], pt = { key: 0 }, kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["text-anchor", "font-size", "fill", "transform"], Nt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = { key: 1 }, zt = ["cx", "cy", "r", "fill"], Ft = { key: 0 }, Pt = { key: 0 }, Dt = ["d", "stroke"], Tt = ["text-anchor", "x", "y", "fill"], Et = ["cx", "cy", "r", "fill"], It = { key: 0 }, Ot = ["cx", "cy", "fill"], Vt = { key: 1 }, Ht = ["d", "fill", "stroke"], Mt = { key: 2 }, Wt = ["d", "fill", "stroke"], Rt = ["x", "y", "font-size", "fill"], Ut = ["x", "y", "width", "fill", "onClick"], Xt = ["x", "y", "width", "height", "onMouseenter", "onClick"], Gt = {
|
|
13
|
-
key: 3,
|
|
14
|
-
"data-cy-zoom": "",
|
|
15
|
-
class: "vue-ui-donut-evolution-dialog"
|
|
16
|
-
}, jt = ["x", "y", "width", "height", "fill"], Bt = ["x1", "y1", "x2", "y2", "stroke"], Yt = ["x1", "y2", "x2", "y1", "stroke"], Kt = ["onKeypress", "cx", "cy", "r"], qt = ["d", "stroke"], Jt = ["cx", "cy", "r", "fill"], Qt = ["d", "fill", "stroke"], Zt = { class: "vue-ui-donut-evolution-focus" }, el = ["text-anchor", "x", "y", "fill"], tl = ["cx", "cy", "r", "fill"], ll = ["cx", "cy", "r", "fill"], al = ["x", "y", "fill"], ul = ["x", "y", "font-size", "fill"], ol = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, sl = ["onClick"], nl = { key: 0 }, rl = { key: 1 }, il = { key: 0 }, cl = { key: 1 }, vl = {
|
|
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(Fe, { expose: Pe, emit: ne }) {
|
|
37
|
-
const A = Fe, { vue_ui_donut_evolution: De } = je(), U = x(() => !!A.dataset && A.dataset.length), d = $({
|
|
38
|
-
start: 0,
|
|
39
|
-
end: Math.max(...A.dataset.map((l) => l.values.length))
|
|
40
|
-
});
|
|
41
|
-
function Te() {
|
|
42
|
-
d.value = {
|
|
43
|
-
start: 0,
|
|
44
|
-
end: M.value
|
|
45
|
-
}, ce.value += 1;
|
|
46
|
-
}
|
|
47
|
-
Re(() => {
|
|
48
|
-
Be(A.dataset) ? B({
|
|
49
|
-
componentName: "VueUiDonutEvolution",
|
|
50
|
-
type: "dataset"
|
|
51
|
-
}) : A.dataset.length && A.dataset.forEach((l, r) => {
|
|
52
|
-
Ye({
|
|
53
|
-
datasetObject: l,
|
|
54
|
-
requiredAttributes: ["name", "values"]
|
|
55
|
-
}).forEach((t) => {
|
|
56
|
-
B({
|
|
57
|
-
componentName: "VueUiDonutEvolution",
|
|
58
|
-
type: "datasetSerieAttribute",
|
|
59
|
-
property: t,
|
|
60
|
-
index: r
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
const E = $($e()), k = $([]), f = $(null), q = $(null), L = $(!1), z = $(null), re = $(null), ie = $(0), ce = $(0), e = x(() => {
|
|
66
|
-
const l = ze({
|
|
67
|
-
userConfig: A.config,
|
|
68
|
-
defaultConfig: De
|
|
69
|
-
});
|
|
70
|
-
return l.theme ? {
|
|
71
|
-
...ze({
|
|
72
|
-
userConfig: Ke.vue_ui_donut_evolution[l.theme] || A.config,
|
|
73
|
-
defaultConfig: l
|
|
74
|
-
}),
|
|
75
|
-
customPalette: qe[l.theme] || Y
|
|
76
|
-
} : l;
|
|
77
|
-
}), { isPrinting: ve, isImaging: de, generatePdf: he, generateImage: ye } = at({
|
|
78
|
-
elementId: E.value,
|
|
79
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
80
|
-
}), Ee = x(() => Je(e.value.customPalette)), X = $({
|
|
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
|
-
})), n = x(() => {
|
|
88
|
-
const l = e.value.style.chart.layout.height, r = e.value.style.chart.layout.width, t = l - s.value.top - s.value.bottom, i = r - s.value.left - s.value.right;
|
|
89
|
-
return {
|
|
90
|
-
absoluteHeight: l,
|
|
91
|
-
absoluteWidth: r,
|
|
92
|
-
centerX: s.value.left + i / 2,
|
|
93
|
-
centerY: s.value.top + t / 2,
|
|
94
|
-
height: t,
|
|
95
|
-
width: i
|
|
96
|
-
};
|
|
97
|
-
}), D = x(() => (A.dataset.forEach((l, r) => {
|
|
98
|
-
[null, void 0].includes(l.name) && B({
|
|
99
|
-
componentName: "VueUiDonutEvolution",
|
|
100
|
-
type: "datasetSerieAttribute",
|
|
101
|
-
property: "name",
|
|
102
|
-
index: r
|
|
103
|
-
}), [null, void 0].includes(l.values) && B({
|
|
104
|
-
componentName: "VueUiDonutEvolution",
|
|
105
|
-
type: "datasetSerieAttribute",
|
|
106
|
-
property: "values",
|
|
107
|
-
index: r
|
|
108
|
-
});
|
|
109
|
-
}), A.dataset.map((l, r) => ({
|
|
110
|
-
...l,
|
|
111
|
-
values: l.values || [],
|
|
112
|
-
color: ue(l.color) || Ee.value[r] || Y[r] || Y[r % Y.length],
|
|
113
|
-
length: (l.values || []).length,
|
|
114
|
-
uid: $e()
|
|
115
|
-
})))), H = x(() => D.value.filter((l) => !k.value.includes(l.uid)).map((l) => ({
|
|
116
|
-
...l,
|
|
117
|
-
values: l.values.filter((r, t) => t >= d.value.start && t <= d.value.end)
|
|
118
|
-
}))), M = x(() => Math.max(...H.value.map((l) => l.length))), C = x(() => n.value.width / (d.value.end - d.value.start)), _ = x(() => {
|
|
119
|
-
const l = [];
|
|
120
|
-
for (let o = 0; o < d.value.end - d.value.start; o += 1) {
|
|
121
|
-
const b = H.value.map((N) => N.values[o] ?? null), h = b.filter((N) => [void 0, null].includes(N)).length === b.length, S = b.reduce((N, w) => N + w, 0), te = b.map((N) => N / S), V = s.value.left + C.value * o + C.value / 2;
|
|
122
|
-
l.push({
|
|
123
|
-
index: o,
|
|
124
|
-
percentages: te,
|
|
125
|
-
subtotal: h || S < 0 ? null : S,
|
|
126
|
-
values: b,
|
|
127
|
-
x: V
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
const r = 0, t = Math.max(...l.map((o) => o.subtotal)), i = l.length === 1 ? t * 2 : t;
|
|
131
|
-
return l.map((o, b) => {
|
|
132
|
-
const h = C.value / 2 * 0.7, S = h > n.value.width / 16 ? n.value.width / 16 : h, te = f.value === o.index ? n.value.width / 16 : S, V = l.length > 4 ? h * 2 : h * 2 > C.value / 2 * 0.7 ? C.value / 2 * 0.7 : h * 2, N = n.value.absoluteHeight - s.value.bottom - n.value.height * o.subtotal / Le(r, i, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
133
|
-
return {
|
|
134
|
-
...o,
|
|
135
|
-
y: N,
|
|
136
|
-
radius: S,
|
|
137
|
-
activeRadius: te,
|
|
138
|
-
hoverRadius: V,
|
|
139
|
-
donut: oe({
|
|
140
|
-
series: H.value.map((w, _e) => ({
|
|
141
|
-
color: w.color,
|
|
142
|
-
name: w.name,
|
|
143
|
-
value: w.values[b] ?? 0
|
|
144
|
-
}))
|
|
145
|
-
}, o.x, N, S, S, 1.99999, 2, 1, 360, 105.25, S / 2),
|
|
146
|
-
donutHover: oe({
|
|
147
|
-
series: H.value.map((w, _e) => ({
|
|
148
|
-
color: w.color,
|
|
149
|
-
name: w.name,
|
|
150
|
-
value: w.values[b] ?? 0
|
|
151
|
-
}))
|
|
152
|
-
}, o.x, N, V, V, 1.99999, 2, 1, 360, 105.25, V / 2),
|
|
153
|
-
donutFocus: oe({
|
|
154
|
-
series: H.value.map((w, _e) => ({
|
|
155
|
-
color: w.color,
|
|
156
|
-
name: w.name,
|
|
157
|
-
value: w.values[b] ?? 0
|
|
158
|
-
}))
|
|
159
|
-
}, n.value.centerX, n.value.centerY, n.value.height / 3.6, n.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, n.value.height / 6)
|
|
160
|
-
};
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
function G(l) {
|
|
164
|
-
return `${e.value.style.chart.layout.dataLabels.prefix}${isNaN(l) ? "-" : Number(l.toFixed(e.value.style.chart.layout.dataLabels.rounding)).toLocaleString()}${e.value.style.chart.layout.dataLabels.suffix}`;
|
|
165
|
-
}
|
|
166
|
-
const J = x(() => ({
|
|
167
|
-
max: Math.max(..._.value.map((l) => l.subtotal)),
|
|
168
|
-
min: 0
|
|
169
|
-
})), I = x(() => {
|
|
170
|
-
const l = _.value.length === 1 ? J.value.max * 2 : J.value.max;
|
|
171
|
-
return Le(J.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
172
|
-
});
|
|
173
|
-
function Ie(l) {
|
|
174
|
-
return l / I.value.max;
|
|
175
|
-
}
|
|
176
|
-
const Oe = x(() => I.value.ticks.map((l) => ({
|
|
177
|
-
y: n.value.absoluteHeight - s.value.bottom - n.value.height * Ie(l),
|
|
178
|
-
value: l
|
|
179
|
-
})));
|
|
180
|
-
function ge(l, r) {
|
|
181
|
-
return isNaN(l.value / Ae(r, "value")) ? 0 : (l.value / Ae(r, "value") * 100).toFixed(0) + "%";
|
|
182
|
-
}
|
|
183
|
-
function fe() {
|
|
184
|
-
L.value || (f.value = null, q.value = null);
|
|
185
|
-
}
|
|
186
|
-
function Ve(l) {
|
|
187
|
-
L.value || (f.value = l.index, q.value = l);
|
|
188
|
-
}
|
|
189
|
-
const Q = $(null);
|
|
190
|
-
function Z(l, r) {
|
|
191
|
-
l.subtotal && (q.value = null, f.value = null, L.value = !0, z.value = l, [null, void 0].includes(r) || (Q.value = r));
|
|
192
|
-
}
|
|
193
|
-
function be() {
|
|
194
|
-
z.value = null, L.value = !1, Q.value = null;
|
|
195
|
-
}
|
|
196
|
-
const xe = x(() => D.value.map((l, r) => ({
|
|
197
|
-
name: l.name,
|
|
198
|
-
value: l.values.slice(d.value.start, d.value.end).reduce((t, i) => t + i, 0),
|
|
199
|
-
shape: "circle",
|
|
200
|
-
uid: l.uid,
|
|
201
|
-
color: l.color
|
|
202
|
-
})).sort((l, r) => r.value - l.value).map((l) => ({
|
|
203
|
-
...l,
|
|
204
|
-
opacity: k.value.includes(l.uid) ? 0.5 : 1,
|
|
205
|
-
segregate: () => ee(l.uid),
|
|
206
|
-
isSegregated: k.value.includes(l.uid)
|
|
207
|
-
}))), me = x(() => _.value.map((l) => l.subtotal).reduce((l, r) => l + r, 0)), He = x(() => ({
|
|
208
|
-
cy: "donut-div-legend",
|
|
209
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
210
|
-
color: e.value.style.chart.legend.color,
|
|
211
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
212
|
-
paddingBottom: 12,
|
|
213
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
214
|
-
}));
|
|
215
|
-
function ee(l) {
|
|
216
|
-
if (k.value.includes(l))
|
|
217
|
-
k.value = k.value.filter((r) => r !== l), ne("selectLegend", null);
|
|
218
|
-
else {
|
|
219
|
-
if (k.value.length === D.value.length - 1) return;
|
|
220
|
-
k.value.push(l), ne("selectLegend", D.value.find((r) => r.uid === l));
|
|
221
|
-
}
|
|
222
|
-
z.value && Z(_.value.find((r, t) => t === Q.value));
|
|
223
|
-
}
|
|
224
|
-
const O = x(() => {
|
|
225
|
-
const l = [""].concat(D.value.filter((o) => !k.value.includes(o.uid)).map((o) => ({
|
|
226
|
-
name: o.name,
|
|
227
|
-
color: o.color
|
|
228
|
-
}))).concat(["Σ"]);
|
|
229
|
-
let r = [];
|
|
230
|
-
for (let o = 0; o < M.value; o += 1) {
|
|
231
|
-
const b = D.value.filter((h) => !k.value.includes(h.uid)).map((h) => h.values[o] ?? 0).reduce((h, S) => h + S, 0);
|
|
232
|
-
r.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[o] ?? "-"].concat(D.value.filter((h) => !k.value.includes(h.uid)).map((h) => ({
|
|
233
|
-
value: h.values[o] ?? 0,
|
|
234
|
-
percentage: h.values[o] ? h.values[o] / b * 100 : 0
|
|
235
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(b.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
236
|
-
}
|
|
237
|
-
const t = {
|
|
238
|
-
th: {
|
|
239
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
240
|
-
color: e.value.table.th.color,
|
|
241
|
-
outline: e.value.table.th.outline
|
|
242
|
-
},
|
|
243
|
-
td: {
|
|
244
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
245
|
-
color: e.value.table.td.color,
|
|
246
|
-
outline: e.value.table.td.outline
|
|
247
|
-
},
|
|
248
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
249
|
-
}, i = [
|
|
250
|
-
e.value.table.columnNames.period
|
|
251
|
-
].concat(D.value.filter((o) => !k.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
252
|
-
return { head: l, body: r, config: t, colNames: i };
|
|
253
|
-
});
|
|
254
|
-
function Me() {
|
|
255
|
-
return D.value;
|
|
256
|
-
}
|
|
257
|
-
function pe() {
|
|
258
|
-
Ge(() => {
|
|
259
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = [...O.value.head.map((b) => b.name ?? b)], t = [...O.value.body.map((b) => b.map((h) => h.value ?? h))], i = l.concat([r]).concat(t), o = et(i);
|
|
260
|
-
tt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
const W = $(!1);
|
|
264
|
-
function We(l) {
|
|
265
|
-
W.value = l, ie.value += 1;
|
|
266
|
-
}
|
|
267
|
-
function ke() {
|
|
268
|
-
X.value.showTable = !X.value.showTable;
|
|
269
|
-
}
|
|
270
|
-
return Pe({
|
|
271
|
-
getData: Me,
|
|
272
|
-
generatePdf: he,
|
|
273
|
-
generateCsv: pe,
|
|
274
|
-
generateImage: ye,
|
|
275
|
-
toggleTable: ke
|
|
276
|
-
}), (l, r) => (a(), u("div", {
|
|
277
|
-
ref_key: "donutEvolutionChart",
|
|
278
|
-
ref: re,
|
|
279
|
-
class: F(`vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
280
|
-
style: j(`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}`),
|
|
281
|
-
id: E.value
|
|
282
|
-
}, [
|
|
283
|
-
e.value.style.chart.title.text ? (a(), u("div", {
|
|
284
|
-
key: 0,
|
|
285
|
-
style: j(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`),
|
|
286
|
-
onMouseleave: fe
|
|
287
|
-
}, [
|
|
288
|
-
Ce(lt, {
|
|
289
|
-
config: {
|
|
290
|
-
title: {
|
|
291
|
-
cy: "donut-evolution-div-title",
|
|
292
|
-
...e.value.style.chart.title
|
|
293
|
-
},
|
|
294
|
-
subtitle: {
|
|
295
|
-
cy: "donut-evolution-div-subtitle",
|
|
296
|
-
...e.value.style.chart.title.subtitle
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}, null, 8, ["config"])
|
|
300
|
-
], 36)) : v("", !0),
|
|
301
|
-
e.value.userOptions.show && U.value ? (a(), R(ut, {
|
|
302
|
-
ref: "details",
|
|
303
|
-
key: `user_options_${ie.value}`,
|
|
304
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
305
|
-
color: e.value.style.chart.color,
|
|
306
|
-
isPrinting: y(ve),
|
|
307
|
-
isImaging: y(de),
|
|
308
|
-
uid: E.value,
|
|
309
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
310
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
311
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
312
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
313
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
314
|
-
isFullscreen: W.value,
|
|
315
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
316
|
-
chartElement: re.value,
|
|
317
|
-
onToggleFullscreen: We,
|
|
318
|
-
onGeneratePdf: y(he),
|
|
319
|
-
onGenerateCsv: pe,
|
|
320
|
-
onGenerateImage: y(ye),
|
|
321
|
-
onToggleTable: ke
|
|
322
|
-
}, Ue({ _: 2 }, [
|
|
323
|
-
l.$slots.optionPdf ? {
|
|
324
|
-
name: "optionPdf",
|
|
325
|
-
fn: P(() => [
|
|
326
|
-
T(l.$slots, "optionPdf", {}, void 0, !0)
|
|
327
|
-
]),
|
|
328
|
-
key: "0"
|
|
329
|
-
} : void 0,
|
|
330
|
-
l.$slots.optionCsv ? {
|
|
331
|
-
name: "optionCsv",
|
|
332
|
-
fn: P(() => [
|
|
333
|
-
T(l.$slots, "optionCsv", {}, void 0, !0)
|
|
334
|
-
]),
|
|
335
|
-
key: "1"
|
|
336
|
-
} : void 0,
|
|
337
|
-
l.$slots.optionImg ? {
|
|
338
|
-
name: "optionImg",
|
|
339
|
-
fn: P(() => [
|
|
340
|
-
T(l.$slots, "optionImg", {}, void 0, !0)
|
|
341
|
-
]),
|
|
342
|
-
key: "2"
|
|
343
|
-
} : void 0,
|
|
344
|
-
l.$slots.optionTable ? {
|
|
345
|
-
name: "optionTable",
|
|
346
|
-
fn: P(() => [
|
|
347
|
-
T(l.$slots, "optionTable", {}, void 0, !0)
|
|
348
|
-
]),
|
|
349
|
-
key: "3"
|
|
350
|
-
} : void 0,
|
|
351
|
-
l.$slots.optionFullscreen ? {
|
|
352
|
-
name: "optionFullscreen",
|
|
353
|
-
fn: P(({ toggleFullscreen: t, isFullscreen: i }) => [
|
|
354
|
-
T(l.$slots, "optionFullscreen", le(ae({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
|
|
355
|
-
]),
|
|
356
|
-
key: "4"
|
|
357
|
-
} : void 0
|
|
358
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
359
|
-
U.value ? (a(), u("svg", {
|
|
360
|
-
key: 2,
|
|
361
|
-
xmlns: y(Qe),
|
|
362
|
-
class: F({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
363
|
-
viewBox: `0 0 ${n.value.absoluteWidth} ${n.value.absoluteHeight}`,
|
|
364
|
-
style: j(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
365
|
-
}, [
|
|
366
|
-
c("defs", null, [
|
|
367
|
-
c("linearGradient", {
|
|
368
|
-
id: `hover_${E.value}`,
|
|
369
|
-
x1: "0%",
|
|
370
|
-
y1: "0%",
|
|
371
|
-
x2: "0%",
|
|
372
|
-
y2: "100%"
|
|
373
|
-
}, [
|
|
374
|
-
c("stop", {
|
|
375
|
-
offset: "0%",
|
|
376
|
-
"stop-color": `${e.value.style.chart.backgroundColor}${y(se)[e.value.style.chart.layout.highlighter.opacity]}`
|
|
377
|
-
}, null, 8, yt),
|
|
378
|
-
c("stop", {
|
|
379
|
-
offset: "100%",
|
|
380
|
-
"stop-color": `${e.value.style.chart.layout.highlighter.color}${y(se)[e.value.style.chart.layout.highlighter.opacity]}`
|
|
381
|
-
}, null, 8, gt)
|
|
382
|
-
], 8, ht),
|
|
383
|
-
c("radialGradient", {
|
|
384
|
-
id: `focus_${E.value}`
|
|
385
|
-
}, [
|
|
386
|
-
c("stop", {
|
|
387
|
-
offset: "0%",
|
|
388
|
-
"stop-color": `${y(ue)(e.value.style.chart.backgroundColor)}00`
|
|
389
|
-
}, null, 8, bt),
|
|
390
|
-
c("stop", {
|
|
391
|
-
offset: "77%",
|
|
392
|
-
"stop-color": "#FFFFFF" + y(se)[30]
|
|
393
|
-
}, null, 8, xt),
|
|
394
|
-
c("stop", {
|
|
395
|
-
offset: "100%",
|
|
396
|
-
"stop-color": `${y(ue)(e.value.style.chart.backgroundColor)}00`
|
|
397
|
-
}, null, 8, mt)
|
|
398
|
-
], 8, ft)
|
|
399
|
-
]),
|
|
400
|
-
e.value.style.chart.layout.grid.show ? (a(), u("g", pt, [
|
|
401
|
-
c("line", {
|
|
402
|
-
x1: s.value.left,
|
|
403
|
-
x2: s.value.left,
|
|
404
|
-
y1: s.value.top,
|
|
405
|
-
y2: s.value.top + n.value.height,
|
|
406
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
407
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
408
|
-
"stroke-linecap": "round"
|
|
409
|
-
}, null, 8, kt),
|
|
410
|
-
c("line", {
|
|
411
|
-
x1: s.value.left,
|
|
412
|
-
x2: n.value.absoluteWidth - s.value.right,
|
|
413
|
-
y1: n.value.absoluteHeight - s.value.bottom,
|
|
414
|
-
y2: n.value.absoluteHeight - s.value.bottom,
|
|
415
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
416
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
417
|
-
"stroke-linecap": "round"
|
|
418
|
-
}, null, 8, _t),
|
|
419
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (a(), u("g", Ct, [
|
|
420
|
-
(a(!0), u(m, null, p(d.value.end - d.value.start, (t, i) => (a(), u("line", {
|
|
421
|
-
x1: s.value.left + (i + 1) * C.value,
|
|
422
|
-
x2: s.value.left + (i + 1) * C.value,
|
|
423
|
-
y1: s.value.top,
|
|
424
|
-
y2: n.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))), 256))
|
|
429
|
-
])) : v("", !0)
|
|
430
|
-
])) : v("", !0),
|
|
431
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), u("g", {
|
|
432
|
-
key: 1,
|
|
433
|
-
class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || L.value })
|
|
434
|
-
}, [
|
|
435
|
-
(a(!0), u(m, null, p(Oe.value, (t, i) => (a(), u("g", null, [
|
|
436
|
-
t.value >= I.value.min && t.value <= I.value.max ? (a(), u("line", {
|
|
437
|
-
key: 0,
|
|
438
|
-
x1: s.value.left,
|
|
439
|
-
x2: s.value.left - 5,
|
|
440
|
-
y1: t.y,
|
|
441
|
-
y2: t.y,
|
|
442
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
443
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
444
|
-
}, null, 8, $t)) : v("", !0),
|
|
445
|
-
t.value >= I.value.min && t.value <= I.value.max ? (a(), u("text", {
|
|
446
|
-
key: 1,
|
|
447
|
-
x: s.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
448
|
-
y: t.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
449
|
-
"font-size": e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
450
|
-
"text-anchor": "end",
|
|
451
|
-
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
452
|
-
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
453
|
-
}, g(e.value.style.chart.layout.dataLabels.prefix) + " " + g(y(Ze)(t.value) ? t.value.toFixed(e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue) : "") + " " + g(e.value.style.chart.layout.dataLabels.suffix), 9, Lt)) : v("", !0)
|
|
454
|
-
]))), 256))
|
|
455
|
-
], 2)) : v("", !0),
|
|
456
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (a(), u("g", {
|
|
457
|
-
key: 2,
|
|
458
|
-
class: F({ "donut-opacity": !0, "donut-behind": L.value })
|
|
459
|
-
}, [
|
|
460
|
-
(a(!0), u(m, null, p(d.value.end - d.value.start, (t, i) => (a(), u("g", null, [
|
|
461
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (i === 0 || i === M.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (a(), u("text", {
|
|
462
|
-
key: 0,
|
|
463
|
-
"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",
|
|
464
|
-
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
465
|
-
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
466
|
-
transform: `translate(${s.value.left + C.value * i + C.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + n.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})`
|
|
467
|
-
}, g(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i) + Number(d.value.start)] ?? ""), 9, St)) : v("", !0)
|
|
468
|
-
]))), 256))
|
|
469
|
-
], 2)) : v("", !0),
|
|
470
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("g", null, [
|
|
471
|
-
e.value.style.chart.layout.line.show && i < _.value.length - 1 && ![t.subtotal, _.value[i + 1].subtotal].includes(null) ? (a(), u("line", {
|
|
472
|
-
key: 0,
|
|
473
|
-
class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || L.value }),
|
|
474
|
-
x1: t.x,
|
|
475
|
-
y1: t.y,
|
|
476
|
-
x2: _.value[i + 1].x,
|
|
477
|
-
y2: _.value[i + 1].y,
|
|
478
|
-
stroke: e.value.style.chart.layout.line.stroke,
|
|
479
|
-
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
480
|
-
"stroke-linecap": "round",
|
|
481
|
-
"stroke-linejoin": "round"
|
|
482
|
-
}, null, 10, Nt)) : v("", !0),
|
|
483
|
-
t.subtotal !== null ? (a(), u("g", At, [
|
|
484
|
-
t.subtotal ? (a(), u("circle", {
|
|
485
|
-
key: 0,
|
|
486
|
-
cx: t.x,
|
|
487
|
-
cy: t.y,
|
|
488
|
-
r: t.activeRadius,
|
|
489
|
-
fill: e.value.style.chart.backgroundColor
|
|
490
|
-
}, null, 8, zt)) : v("", !0)
|
|
491
|
-
])) : v("", !0)
|
|
492
|
-
]))), 256)),
|
|
493
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("g", {
|
|
494
|
-
class: F({ "donut-opacity": !0, "donut-behind": i !== f.value && f.value !== null || L.value })
|
|
495
|
-
}, [
|
|
496
|
-
t.subtotal ? (a(), u("g", Ft, [
|
|
497
|
-
f.value !== null && f.value === i ? (a(), u("g", Pt, [
|
|
498
|
-
(a(!0), u(m, null, p(t.donutHover, (o) => (a(), u("g", null, [
|
|
499
|
-
c("path", {
|
|
500
|
-
d: y(Se)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0),
|
|
501
|
-
stroke: o.color,
|
|
502
|
-
"stroke-width": "1",
|
|
503
|
-
"stroke-linecap": "round",
|
|
504
|
-
"stroke-linejoin": "round",
|
|
505
|
-
fill: "none"
|
|
506
|
-
}, null, 8, Dt)
|
|
507
|
-
]))), 256)),
|
|
508
|
-
(a(!0), u(m, null, p(t.donutHover, (o, b) => (a(), u("g", null, [
|
|
509
|
-
c("text", {
|
|
510
|
-
"data-cy-hover-label": "",
|
|
511
|
-
"text-anchor": y(K)(o, !0, 0).anchor,
|
|
512
|
-
x: y(K)(o, !0, 3).x,
|
|
513
|
-
y: y(Ne)(o),
|
|
514
|
-
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
515
|
-
"font-size": 8,
|
|
516
|
-
"font-weight": "bold"
|
|
517
|
-
}, g(o.name) + ": " + g(ge(o, t.donut)) + " (" + g(o.value === null ? "-" : G(o.value)) + ") ", 9, Tt)
|
|
518
|
-
]))), 256)),
|
|
519
|
-
c("g", null, [
|
|
520
|
-
c("circle", {
|
|
521
|
-
cx: t.x,
|
|
522
|
-
cy: t.y,
|
|
523
|
-
r: t.hoverRadius,
|
|
524
|
-
fill: e.value.style.chart.backgroundColor
|
|
525
|
-
}, null, 8, Et)
|
|
526
|
-
])
|
|
527
|
-
])) : v("", !0)
|
|
528
|
-
])) : v("", !0)
|
|
529
|
-
], 2))), 256)),
|
|
530
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("g", {
|
|
531
|
-
class: F({ "donut-opacity": !0, "donut-behind": i !== f.value && f.value !== null || L.value })
|
|
532
|
-
}, [
|
|
533
|
-
t.subtotal !== null ? (a(), u("g", It, [
|
|
534
|
-
t.subtotal === 0 ? (a(), u("circle", {
|
|
535
|
-
key: 0,
|
|
536
|
-
cx: t.x,
|
|
537
|
-
cy: t.y,
|
|
538
|
-
r: 3,
|
|
539
|
-
fill: e.value.style.chart.color
|
|
540
|
-
}, null, 8, Ot)) : f.value !== null && f.value === i ? (a(), u("g", Vt, [
|
|
541
|
-
(a(!0), u(m, null, p(t.donutHover, (o, b) => (a(), u("path", {
|
|
542
|
-
d: o.arcSlice,
|
|
543
|
-
fill: `${o.color}`,
|
|
544
|
-
"stroke-width": 1,
|
|
545
|
-
stroke: e.value.style.chart.backgroundColor
|
|
546
|
-
}, null, 8, Ht))), 256))
|
|
547
|
-
])) : (a(), u("g", Mt, [
|
|
548
|
-
(a(!0), u(m, null, p(t.donut, (o, b) => (a(), u("path", {
|
|
549
|
-
d: o.arcSlice,
|
|
550
|
-
fill: `${o.color}`,
|
|
551
|
-
"stroke-width": 0.5,
|
|
552
|
-
stroke: e.value.style.chart.backgroundColor
|
|
553
|
-
}, null, 8, Wt))), 256))
|
|
554
|
-
]))
|
|
555
|
-
])) : v("", !0)
|
|
556
|
-
], 2))), 256)),
|
|
557
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("g", {
|
|
558
|
-
class: F({ "donut-opacity": !0, "donut-behind": i !== f.value && f.value !== null || L.value })
|
|
559
|
-
}, [
|
|
560
|
-
t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), u("text", {
|
|
561
|
-
key: 0,
|
|
562
|
-
"text-anchor": "middle",
|
|
563
|
-
x: t.x,
|
|
564
|
-
y: f.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,
|
|
565
|
-
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
566
|
-
"font-weight": "bold",
|
|
567
|
-
fill: e.value.style.chart.layout.dataLabels.color
|
|
568
|
-
}, g(G(t.subtotal)), 9, Rt)) : v("", !0)
|
|
569
|
-
], 2))), 256)),
|
|
570
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("rect", {
|
|
571
|
-
x: s.value.left + i * C.value,
|
|
572
|
-
y: n.value.absoluteHeight - s.value.bottom - 10,
|
|
573
|
-
width: C.value,
|
|
574
|
-
height: 10,
|
|
575
|
-
fill: f.value === t.index ? `url(#hover_${E.value})` : "transparent",
|
|
576
|
-
onClick: (o) => Z(t, i),
|
|
577
|
-
class: F({ "donut-hover": f.value === t.index && t.subtotal })
|
|
578
|
-
}, null, 10, Ut))), 256)),
|
|
579
|
-
(a(!0), u(m, null, p(_.value, (t, i) => (a(), u("rect", {
|
|
580
|
-
"data-cy-trap": "",
|
|
581
|
-
x: s.value.left + i * C.value,
|
|
582
|
-
y: s.value.top,
|
|
583
|
-
width: C.value,
|
|
584
|
-
height: n.value.height,
|
|
585
|
-
fill: "transparent",
|
|
586
|
-
onMouseenter: (o) => Ve(t),
|
|
587
|
-
onMouseleave: fe,
|
|
588
|
-
onClick: (o) => Z(t, i),
|
|
589
|
-
class: F({ "donut-hover": f.value === t.index && t.subtotal })
|
|
590
|
-
}, null, 42, Xt))), 256)),
|
|
591
|
-
L.value ? (a(), u("g", Gt, [
|
|
592
|
-
c("rect", {
|
|
593
|
-
rx: 4,
|
|
594
|
-
x: s.value.left,
|
|
595
|
-
y: s.value.top,
|
|
596
|
-
width: n.value.width,
|
|
597
|
-
height: n.value.height,
|
|
598
|
-
fill: e.value.style.chart.backgroundColor,
|
|
599
|
-
style: { filter: "drop-shadow(0 12px 12px rgba(0,0,0,0.3))" }
|
|
600
|
-
}, null, 8, jt),
|
|
601
|
-
c("line", {
|
|
602
|
-
"data-html2canvas-ignore": "",
|
|
603
|
-
x1: n.value.absoluteWidth - s.value.right - 15,
|
|
604
|
-
y1: s.value.top + 5,
|
|
605
|
-
x2: n.value.absoluteWidth - s.value.right - 4,
|
|
606
|
-
y2: s.value.top + 15.5,
|
|
607
|
-
"stroke-linecap": "round",
|
|
608
|
-
stroke: e.value.style.chart.color,
|
|
609
|
-
"stroke-width": "1.5"
|
|
610
|
-
}, null, 8, Bt),
|
|
611
|
-
c("line", {
|
|
612
|
-
"data-html2canvas-ignore": "",
|
|
613
|
-
x1: n.value.absoluteWidth - s.value.right - 15,
|
|
614
|
-
y2: s.value.top + 5,
|
|
615
|
-
x2: n.value.absoluteWidth - s.value.right - 4,
|
|
616
|
-
y1: s.value.top + 15.5,
|
|
617
|
-
"stroke-linecap": "round",
|
|
618
|
-
stroke: e.value.style.chart.color,
|
|
619
|
-
"stroke-width": "1.5"
|
|
620
|
-
}, null, 8, Yt),
|
|
621
|
-
c("circle", {
|
|
622
|
-
"data-cy-close": "",
|
|
623
|
-
onClick: be,
|
|
624
|
-
onKeypress: Xe(be, ["enter"]),
|
|
625
|
-
cx: n.value.absoluteWidth - s.value.right - n.value.width / 40,
|
|
626
|
-
cy: s.value.top + n.value.height / 30,
|
|
627
|
-
r: n.value.height / 12,
|
|
628
|
-
fill: "transparent",
|
|
629
|
-
style: { cursor: "pointer" },
|
|
630
|
-
tabindex: "0"
|
|
631
|
-
}, null, 40, Kt),
|
|
632
|
-
(a(!0), u(m, null, p(z.value.donutFocus, (t) => (a(), u("g", null, [
|
|
633
|
-
c("path", {
|
|
634
|
-
"data-cy-zoom-donut": "",
|
|
635
|
-
d: y(Se)(t, { x: n.value.centerX, y: n.value.centerY }, 12, 12, !1, !1, 1),
|
|
636
|
-
stroke: t.color,
|
|
637
|
-
"stroke-width": "1",
|
|
638
|
-
"stroke-linecap": "round",
|
|
639
|
-
"stroke-linejoin": "round",
|
|
640
|
-
fill: "none",
|
|
641
|
-
class: "vue-ui-donut-evolution-focus"
|
|
642
|
-
}, null, 8, qt)
|
|
643
|
-
]))), 256)),
|
|
644
|
-
c("circle", {
|
|
645
|
-
cx: s.value.left + n.value.width / 2,
|
|
646
|
-
cy: s.value.top + n.value.height / 2,
|
|
647
|
-
r: n.value.height / 7,
|
|
648
|
-
fill: e.value.style.chart.backgroundColor
|
|
649
|
-
}, null, 8, Jt),
|
|
650
|
-
(a(!0), u(m, null, p(z.value.donutFocus, (t, i) => (a(), u("path", {
|
|
651
|
-
d: t.arcSlice,
|
|
652
|
-
fill: `${t.color}`,
|
|
653
|
-
"stroke-width": 1,
|
|
654
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
655
|
-
class: "vue-ui-donut-evolution-focus"
|
|
656
|
-
}, null, 8, Qt))), 256)),
|
|
657
|
-
(a(!0), u(m, null, p(z.value.donutFocus, (t, i) => (a(), u("g", Zt, [
|
|
658
|
-
c("text", {
|
|
659
|
-
"text-anchor": y(K)(t, !0, 20).anchor,
|
|
660
|
-
x: y(K)(t, !0, 10).x,
|
|
661
|
-
y: y(Ne)(t),
|
|
662
|
-
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
663
|
-
"font-size": 10,
|
|
664
|
-
"font-weight": "bold"
|
|
665
|
-
}, g(t.name) + ": " + g(ge(t, z.value.donutFocus)) + " (" + g(t.value === null ? "-" : G(t.value)) + ") ", 9, el)
|
|
666
|
-
]))), 256)),
|
|
667
|
-
c("circle", {
|
|
668
|
-
cx: s.value.left + n.value.width / 2,
|
|
669
|
-
cy: s.value.top + n.value.height / 2,
|
|
670
|
-
r: n.value.height / 3.8,
|
|
671
|
-
fill: `url(#focus_${E.value})`
|
|
672
|
-
}, null, 8, tl),
|
|
673
|
-
c("circle", {
|
|
674
|
-
cx: s.value.left + n.value.width / 2,
|
|
675
|
-
cy: s.value.top + n.value.height / 2,
|
|
676
|
-
r: n.value.height / 7.7,
|
|
677
|
-
fill: e.value.style.chart.backgroundColor
|
|
678
|
-
}, null, 8, ll),
|
|
679
|
-
c("text", {
|
|
680
|
-
"text-anchor": "middle",
|
|
681
|
-
x: s.value.left + n.value.width / 2,
|
|
682
|
-
y: s.value.top + n.value.height / 2 + 14 / 3,
|
|
683
|
-
"font-size": 14,
|
|
684
|
-
"font-weight": "bold",
|
|
685
|
-
fill: e.value.style.chart.layout.dataLabels.color,
|
|
686
|
-
class: "vue-ui-donut-evolution-focus"
|
|
687
|
-
}, g(G(z.value.subtotal)), 9, al),
|
|
688
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.values[z.value.index] ? (a(), u("text", {
|
|
689
|
-
key: 0,
|
|
690
|
-
x: s.value.left + 6,
|
|
691
|
-
y: s.value.top + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2,
|
|
692
|
-
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 1.6,
|
|
693
|
-
fill: e.value.style.chart.layout.dataLabels.color
|
|
694
|
-
}, g(e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(z.value.index) + Number(d.value.start)]), 9, ul)) : v("", !0)
|
|
695
|
-
])) : v("", !0),
|
|
696
|
-
T(l.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
697
|
-
], 14, dt)) : v("", !0),
|
|
698
|
-
l.$slots.watermark ? (a(), u("div", ol, [
|
|
699
|
-
T(l.$slots, "watermark", le(ae({ isPrinting: y(ve) || y(de) })), void 0, !0)
|
|
700
|
-
])) : v("", !0),
|
|
701
|
-
U.value ? v("", !0) : (a(), R(nt, {
|
|
702
|
-
key: 4,
|
|
703
|
-
config: {
|
|
704
|
-
type: "donutEvolution",
|
|
705
|
-
style: {
|
|
706
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
707
|
-
donutEvolution: {
|
|
708
|
-
axis: {
|
|
709
|
-
color: "#CCCCCC"
|
|
710
|
-
},
|
|
711
|
-
donuts: {
|
|
712
|
-
color: "#CCCCCC"
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}, null, 8, ["config"])),
|
|
718
|
-
M.value > 1 && e.value.style.chart.zoom.show ? (a(), R(rt, {
|
|
719
|
-
key: `slicer_${ce.value}`,
|
|
720
|
-
background: e.value.style.chart.zoom.color,
|
|
721
|
-
borderColor: e.value.style.chart.backgroundColor,
|
|
722
|
-
fontSize: e.value.style.chart.zoom.fontSize,
|
|
723
|
-
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
724
|
-
labelLeft: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(d.value.start)] || "",
|
|
725
|
-
labelRight: e.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(d.value.end) - 1] || "",
|
|
726
|
-
textColor: e.value.style.chart.color,
|
|
727
|
-
inputColor: e.value.style.chart.zoom.color,
|
|
728
|
-
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
729
|
-
max: M.value,
|
|
730
|
-
min: 0,
|
|
731
|
-
valueStart: d.value.start,
|
|
732
|
-
valueEnd: d.value.end,
|
|
733
|
-
start: d.value.start,
|
|
734
|
-
"onUpdate:start": r[0] || (r[0] = (t) => d.value.start = t),
|
|
735
|
-
end: d.value.end,
|
|
736
|
-
"onUpdate:end": r[1] || (r[1] = (t) => d.value.end = t),
|
|
737
|
-
onReset: Te
|
|
738
|
-
}, {
|
|
739
|
-
"reset-action": P(({ reset: t }) => [
|
|
740
|
-
T(l.$slots, "reset-action", le(ae({ reset: t })), void 0, !0)
|
|
741
|
-
]),
|
|
742
|
-
_: 3
|
|
743
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0),
|
|
744
|
-
e.value.style.chart.legend.show ? (a(), R(st, {
|
|
745
|
-
key: 6,
|
|
746
|
-
legendSet: xe.value,
|
|
747
|
-
config: He.value,
|
|
748
|
-
onClickMarker: r[2] || (r[2] = ({ legend: t }) => ee(t.uid))
|
|
749
|
-
}, {
|
|
750
|
-
item: P(({ legend: t, index: i }) => [
|
|
751
|
-
c("div", {
|
|
752
|
-
"data-cy-legend-item": "",
|
|
753
|
-
onClick: (o) => ee(t.uid),
|
|
754
|
-
style: j(`opacity:${k.value.includes(t.uid) ? 0.5 : 1}`)
|
|
755
|
-
}, [
|
|
756
|
-
we(g(t.name) + ": " + g(Number(t.value.toFixed(e.value.style.chart.legend.roundingValue)).toLocaleString()) + " ", 1),
|
|
757
|
-
k.value.includes(t.uid) ? (a(), u("span", rl, " ( - % ) ")) : (a(), u("span", nl, " (" + g(isNaN(t.value / me.value) ? "-" : (t.value / me.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
758
|
-
], 12, sl)
|
|
759
|
-
]),
|
|
760
|
-
_: 1
|
|
761
|
-
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
762
|
-
T(l.$slots, "legend", { legend: xe.value }, void 0, !0),
|
|
763
|
-
U.value ? (a(), R(it, {
|
|
764
|
-
key: 7,
|
|
765
|
-
hideDetails: "",
|
|
766
|
-
config: {
|
|
767
|
-
open: X.value.showTable,
|
|
768
|
-
maxHeight: 1e4,
|
|
769
|
-
body: {
|
|
770
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
771
|
-
color: e.value.style.chart.color
|
|
772
|
-
},
|
|
773
|
-
head: {
|
|
774
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
775
|
-
color: e.value.style.chart.color
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}, {
|
|
779
|
-
content: P(() => [
|
|
780
|
-
Ce(ot, {
|
|
781
|
-
colNames: O.value.colNames,
|
|
782
|
-
head: O.value.head,
|
|
783
|
-
body: O.value.body,
|
|
784
|
-
config: O.value.config,
|
|
785
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
786
|
-
onClose: r[3] || (r[3] = (t) => X.value.showTable = !1)
|
|
787
|
-
}, {
|
|
788
|
-
th: P(({ th: t }) => [
|
|
789
|
-
we(g(t.name ?? t), 1)
|
|
790
|
-
]),
|
|
791
|
-
td: P(({ td: t }) => [
|
|
792
|
-
t.value === null ? (a(), u("span", il, "-")) : (a(), u("b", cl, g(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + g(!isNaN(t.value) && t.value !== null ? Number(t.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : t) + g(isNaN(t.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
793
|
-
c("span", null, g(t.percentage && !isNaN(t.percentage) ? `(${Number(t.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
794
|
-
]),
|
|
795
|
-
_: 1
|
|
796
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
797
|
-
]),
|
|
798
|
-
_: 1
|
|
799
|
-
}, 8, ["config"])) : v("", !0)
|
|
800
|
-
], 14, vt));
|
|
801
|
-
}
|
|
802
|
-
}, Cl = /* @__PURE__ */ ct(vl, [["__scopeId", "data-v-9d3fb16f"]]);
|
|
803
|
-
export {
|
|
804
|
-
Cl as default
|
|
805
|
-
};
|