vue-data-ui 2.3.28 → 2.3.29
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 +65 -0
- package/dist/types/vue-data-ui.d.ts +65 -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,23 +1,23 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { useCssVars as Me, computed as $, ref as z, onMounted as je, openBlock as a, createElementBlock as o, normalizeClass as m, normalizeStyle as h, createBlock as ee, unref as n, createSlots as Xe, withCtx as U, renderSlot as j, normalizeProps as be, guardReactiveProps as pe, createCommentVNode as b, toDisplayString as c, createElementVNode as s, Fragment as p, renderList as g, createTextVNode as W, withKeys as Oe, createVNode as Ge, nextTick as ge } from "vue";
|
|
2
|
+
import { u as Ee, c as Ae, t as Ue, a as De, p as I, b as Ye, g as te, e as K, d as le, o as qe, X as He, s as _e, v as S, i as G, f as T, D as xe, m as me, j as We, k as P, n as H, q as Ke, r as Je } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { u as Qe, U as Ze } from "./usePrinter-CZ8F5Cth.js";
|
|
4
|
+
import et from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
5
|
+
import tt from "./BaseIcon-BG_bJS3R.js";
|
|
6
|
+
import lt from "./vue-ui-accordion-wHRG3nXl.js";
|
|
7
|
+
import { u as ke } from "./useNestedProp-BoNl5H_z.js";
|
|
8
|
+
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const ot = ["id"], st = ["xmlns", "viewBox"], ut = { key: 0 }, nt = ["fill", "font-weight", "font-size", "x", "y"], rt = ["fill", "font-weight", "font-size", "x", "y"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ft = ["id"], bt = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], _t = ["id"], xt = ["stop-color"], mt = ["stop-color"], kt = ["stop-color"], wt = ["id"], $t = ["stop-color"], Ct = ["stop-color"], zt = ["stop-color"], Tt = { key: 1 }, Nt = ["x", "y", "font-size", "font-weight", "fill"], St = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["d", "stroke"], Lt = ["cx", "cy", "r", "fill"], It = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Pt = { key: 2 }, Vt = ["x", "y", "font-size", "fill", "onClick"], Rt = { key: 0 }, Bt = ["x", "y", "fill", "font-size", "font-weight"], Mt = ["x", "y", "height", "width", "fill", "rx", "onClick"], jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Xt = { key: 3 }, Ot = ["x", "y", "fill", "font-size", "onClick"], Gt = ["d", "stroke"], Et = ["cx", "cy", "fill", "onClick"], At = ["fill", "cx", "cy", "r", "onClick"], Ut = { key: 4 }, Dt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["y", "height", "width"], Ht = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Wt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Kt = {
|
|
10
10
|
viewBox: "0 0 20 20",
|
|
11
11
|
height: "16",
|
|
12
12
|
width: "16"
|
|
13
|
-
},
|
|
13
|
+
}, Jt = ["fill"], Qt = { key: 6 }, Zt = ["y", "height", "width"], el = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, tl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, ll = {
|
|
14
14
|
viewBox: "0 0 20 20",
|
|
15
15
|
height: "16",
|
|
16
16
|
width: "16"
|
|
17
|
-
},
|
|
17
|
+
}, al = ["fill"], ol = ["d", "stroke"], sl = ["cx", "cy", "fill"], ul = ["cx", "cy", "fill"], nl = ["d", "stroke"], rl = ["cx", "cy", "fill"], il = ["cx", "cy", "fill"], cl = ["x", "y", "fill", "font-size", "font-weight"], dl = ["x", "y", "fill", "font-size", "font-weight"], vl = ["x", "text-anchor", "y", "fill", "font-size"], yl = ["x", "text-anchor", "y", "fill", "font-size"], hl = ["x", "text-anchor", "y", "fill", "font-size"], fl = ["x", "text-anchor", "y", "fill", "font-size"], bl = ["x", "text-anchor", "y", "fill", "font-size"], pl = ["x", "y", "font-size", "fill"], gl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], xl = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, ml = { style: { "padding-top": "36px", position: "relative" } }, kl = { class: "vue-ui-data-table" }, wl = { key: 0 }, $l = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zl = { key: 0 }, Tl = { key: 1 }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fl = { key: 0 }, Ll = { key: 1 }, Il = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Vl = { key: 0 }, Rl = { key: 1 }, Bl = ["data-cell"], Ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = { key: 0 }, Xl = { key: 1 }, Ol = ["data-cell"], Gl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, El = { key: 0 }, Al = { key: 1 }, Ul = ["data-cell"], Dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yl = { key: 0 }, ql = { key: 1 }, Hl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kl = { key: 0 }, Jl = { key: 1 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = ["data-cell"], sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = {
|
|
21
21
|
__name: "vue-ui-chestnut",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,29 +34,29 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
"
|
|
37
|
+
setup(we, { expose: $e, emit: E }) {
|
|
38
|
+
const R = we;
|
|
39
|
+
Me((l) => ({
|
|
40
|
+
"545cdfba": l.tdo
|
|
41
41
|
}));
|
|
42
|
-
const { vue_ui_chestnut:
|
|
43
|
-
const l =
|
|
44
|
-
userConfig:
|
|
45
|
-
defaultConfig:
|
|
42
|
+
const { vue_ui_chestnut: Ce } = Ee(), D = $(() => !!R.dataset && R.dataset.length), k = z(Ae()), ae = z(null), ze = z(null), oe = z(0), e = $(() => {
|
|
43
|
+
const l = ke({
|
|
44
|
+
userConfig: R.config,
|
|
45
|
+
defaultConfig: Ce
|
|
46
46
|
});
|
|
47
47
|
return l.theme ? {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
48
|
+
...ke({
|
|
49
|
+
userConfig: Ue.vue_ui_chestnut[l.theme] || R.config,
|
|
50
50
|
defaultConfig: l
|
|
51
51
|
}),
|
|
52
|
-
customPalette:
|
|
52
|
+
customPalette: De[l.theme] || I
|
|
53
53
|
} : l;
|
|
54
|
-
}), { isPrinting:
|
|
54
|
+
}), { isPrinting: se, isImaging: ue, generatePdf: ne, generateImage: re } = Qe({
|
|
55
55
|
elementId: `vue-ui-chestnut_${k.value}`,
|
|
56
56
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
57
|
-
}),
|
|
57
|
+
}), J = $(() => Ye(e.value.customPalette)), Y = z({
|
|
58
58
|
showTable: e.value.table.show
|
|
59
|
-
}),
|
|
59
|
+
}), ie = z(null), ce = z(!1), Te = $(() => e.value.table.responsiveBreakpoint), r = z({
|
|
60
60
|
gap: 6,
|
|
61
61
|
padding: {
|
|
62
62
|
top: 102,
|
|
@@ -76,34 +76,34 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
76
76
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
77
77
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
78
78
|
seedX: r.value.padding.left + 64
|
|
79
|
-
})), V = $(() =>
|
|
80
|
-
|
|
79
|
+
})), V = $(() => D.value ? R.dataset.flatMap((l) => l.branches.map((i) => i.value)).reduce((l, i) => l + i) : 0), N = $(() => (R.dataset.forEach((l, i) => {
|
|
80
|
+
te({
|
|
81
81
|
datasetObject: l,
|
|
82
82
|
requiredAttributes: ["name", "branches"]
|
|
83
83
|
}).forEach((t) => {
|
|
84
|
-
|
|
84
|
+
K({
|
|
85
85
|
componentName: "VueUiChestnut",
|
|
86
86
|
type: "datasetSerieAttribute",
|
|
87
87
|
property: t,
|
|
88
88
|
index: i
|
|
89
89
|
});
|
|
90
90
|
}), l.branches && l.branches.forEach((t, u) => {
|
|
91
|
-
|
|
91
|
+
te({
|
|
92
92
|
datasetObject: t,
|
|
93
93
|
requiredAttributes: ["name", "value"]
|
|
94
94
|
}).forEach((f) => {
|
|
95
|
-
|
|
95
|
+
K({
|
|
96
96
|
componentName: "VueUiChestnut",
|
|
97
97
|
type: "datasetSerieAttribute",
|
|
98
98
|
property: f,
|
|
99
99
|
index: `${i} - ${u}`
|
|
100
100
|
});
|
|
101
101
|
}), t.breakdown && t.breakdown.forEach((f, y) => {
|
|
102
|
-
|
|
102
|
+
te({
|
|
103
103
|
datasetObject: f,
|
|
104
104
|
requiredAttributes: ["name", "value"]
|
|
105
105
|
}).forEach((_) => {
|
|
106
|
-
|
|
106
|
+
K({
|
|
107
107
|
componentName: "VueUiChestnut",
|
|
108
108
|
type: "datasetSerieAttribute",
|
|
109
109
|
property: _,
|
|
@@ -112,11 +112,11 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
}),
|
|
115
|
+
}), R.dataset.map((l, i) => {
|
|
116
116
|
const t = l.branches.map((u) => u.value).reduce((u, f) => u + f);
|
|
117
117
|
return {
|
|
118
118
|
...l,
|
|
119
|
-
color:
|
|
119
|
+
color: le(l.color) || J.value[i] || I[i] || I[i % I.length],
|
|
120
120
|
id: l.id || `root_${i}_${k.value}`,
|
|
121
121
|
type: "root",
|
|
122
122
|
total: t,
|
|
@@ -125,7 +125,7 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
125
125
|
...u,
|
|
126
126
|
rootName: l.name,
|
|
127
127
|
rootIndex: i,
|
|
128
|
-
color:
|
|
128
|
+
color: le(l.color) || J.value[i] || I[i] || I[i % I.length],
|
|
129
129
|
value: u.value >= 0 ? u.value : 0,
|
|
130
130
|
id: u.id || `branch_${i}_${f}_${k.value}`,
|
|
131
131
|
proportionToRoot: u.value / t,
|
|
@@ -155,83 +155,83 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
155
155
|
proportionToTree: y.value / V.value,
|
|
156
156
|
rootIndex: i,
|
|
157
157
|
id: y.id || `nut_${i}_${f}_${_}_${k.value}`,
|
|
158
|
-
color:
|
|
158
|
+
color: le(y.color) || J.value[_] || I[_] || I[_ % I.length],
|
|
159
159
|
value: y.value >= 0 ? y.value : 0
|
|
160
160
|
}))
|
|
161
161
|
}))
|
|
162
162
|
};
|
|
163
163
|
})));
|
|
164
|
-
function
|
|
165
|
-
return
|
|
164
|
+
function Ne() {
|
|
165
|
+
return N.value;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
const t = C.value.height /
|
|
167
|
+
const Se = $(() => N.value.flatMap((l) => l.branches).length), Fe = $(() => Math.max(...N.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), Le = $(() => Math.max(...N.value.flatMap((l) => l.branches.map((i) => i.value)))), de = $(() => 256 + r.value.padding.left), X = $(() => N.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
168
|
+
const t = C.value.height / N.value.length / 2, u = l.total / Fe.value * (t > 64 ? 64 : t);
|
|
169
169
|
return {
|
|
170
170
|
...l,
|
|
171
171
|
x: C.value.seedX,
|
|
172
|
-
y: C.value.top + C.value.height /
|
|
172
|
+
y: C.value.top + C.value.height / N.value.length * (i + 1) - (C.value.height / N.value.length / 2 + r.value.gap / 2),
|
|
173
173
|
r: u < r.value.branchSize / 2 ? r.value.branchSize / 2 : u
|
|
174
174
|
};
|
|
175
|
-
})),
|
|
175
|
+
})), Ie = $(() => e.value.style.chart.layout.branches.widthRatio <= 0 ? 0.1 : e.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : e.value.style.chart.layout.branches.widthRatio), Pe = $(() => X.value.flatMap((l) => l.branches)), B = $(() => Pe.value.sort((l, i) => i.value - l.value).map((l, i) => ({
|
|
176
176
|
...l,
|
|
177
177
|
y1: i * r.value.branchSize + C.value.top + i * r.value.gap,
|
|
178
178
|
y2: i * r.value.branchSize + r.value.branchSize,
|
|
179
|
-
x1:
|
|
180
|
-
x2: 384 * l.value /
|
|
179
|
+
x1: de.value,
|
|
180
|
+
x2: 384 * l.value / Le.value * Ie.value + de.value
|
|
181
181
|
})));
|
|
182
|
-
function
|
|
183
|
-
const i =
|
|
182
|
+
function Q(l) {
|
|
183
|
+
const i = X.value.find((t) => t.rootIndex === l.rootIndex);
|
|
184
184
|
return { x: i.x, y: i.y, r: i.r };
|
|
185
185
|
}
|
|
186
|
-
const v = z(null),
|
|
186
|
+
const v = z(null), M = z(null), x = z(null), F = z(null);
|
|
187
187
|
function w() {
|
|
188
|
-
v.value = null, x.value = null,
|
|
188
|
+
v.value = null, x.value = null, F.value = null;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
190
|
+
function L(l) {
|
|
191
|
+
return F.value ? F.value === null ? !0 : l.type === "root" ? l.id === F.value.id : l.rootIndex === F.value.rootIndex : v.value === null && x.value === null ? !0 : l.type === "nut" ? v.value.id === l.id : l.type === "branch" ? x.value.id === l.id : l.type === "root" ? x.value && x.value.rootIndex === l.rootIndex || v.value && v.value.rootIndex === l.rootIndex : !1;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
w(),
|
|
195
|
-
v.value = l, x.value = l,
|
|
193
|
+
function ve(l) {
|
|
194
|
+
w(), ge(() => {
|
|
195
|
+
v.value = l, x.value = l, M.value = me(
|
|
196
196
|
{ series: l.breakdown, base: 1 },
|
|
197
197
|
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
198
198
|
l.y1 + r.value.branchSize / 2,
|
|
199
199
|
80,
|
|
200
200
|
80
|
|
201
|
-
),
|
|
201
|
+
), E("selectNut", l.breakdown);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
v.value = null,
|
|
204
|
+
function O() {
|
|
205
|
+
v.value = null, M.value = null, E("selectNut", null);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
x.value && x.value.id === l.id ? (x.value = null, w(),
|
|
207
|
+
function Z(l) {
|
|
208
|
+
x.value && x.value.id === l.id ? (x.value = null, w(), E("selectBranch", null)) : (w(), x.value = l, E("selectBranch", l));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
210
|
+
function ye(l) {
|
|
211
|
+
F.value && F.value.id === l.id ? (w(), E("selectRoot", null)) : (w(), F.value = l, E("selectRoot", l));
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Ve() {
|
|
214
214
|
return C.value.bottom - (v.value.y1 + 180) < 0 ? 0 : C.value.bottom;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function A(l) {
|
|
217
217
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Re() {
|
|
220
220
|
new ResizeObserver((i) => {
|
|
221
221
|
i.forEach((t) => {
|
|
222
|
-
|
|
222
|
+
ce.value = t.contentRect.width < Te.value;
|
|
223
223
|
});
|
|
224
|
-
}).observe(
|
|
224
|
+
}).observe(ie.value);
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
je(() => {
|
|
227
|
+
qe(R.dataset) && K({
|
|
228
228
|
componentName: "VueUiChestnut",
|
|
229
229
|
type: "dataset"
|
|
230
230
|
});
|
|
231
|
-
const l =
|
|
232
|
-
r.value.height = l,
|
|
231
|
+
const l = Se.value * (r.value.branchSize + r.value.gap) + r.value.padding.top + r.value.padding.bottom;
|
|
232
|
+
r.value.height = l, Re();
|
|
233
233
|
});
|
|
234
|
-
const
|
|
234
|
+
const d = $(() => {
|
|
235
235
|
const l = [
|
|
236
236
|
e.value.table.th.translations.rootName,
|
|
237
237
|
e.value.table.th.translations.rootValue,
|
|
@@ -245,115 +245,115 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
245
245
|
e.value.table.th.translations.nutToBranch,
|
|
246
246
|
e.value.table.th.translations.nutToRoot,
|
|
247
247
|
e.value.table.th.translations.nutToTotal
|
|
248
|
-
], i =
|
|
248
|
+
], i = N.value.flatMap((t, u) => t.branches.flatMap((f, y) => f.breakdown.flatMap((_, ia) => _.table)));
|
|
249
249
|
return { head: l, body: i };
|
|
250
250
|
});
|
|
251
|
-
function
|
|
252
|
-
|
|
253
|
-
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", V.value], [""]], i =
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
251
|
+
function he() {
|
|
252
|
+
ge(() => {
|
|
253
|
+
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", V.value], [""]], i = d.value.head, t = d.value.body.map((y, _) => [
|
|
254
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].rootName === y.rootName ? "" : y.rootName,
|
|
255
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].rootName === y.rootName ? "" : y.rootValue,
|
|
256
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].rootName === y.rootName ? "" : y.rootToTotal,
|
|
257
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].branchName === y.branchName ? "" : y.branchName,
|
|
258
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].branchName === y.branchName ? "" : y.branchValue,
|
|
259
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].branchName === y.branchName ? "" : y.branchToRoot,
|
|
260
|
+
d.value.body[_ - 1] && d.value.body[_ - 1].branchName === y.branchName ? "" : y.branchToTotal,
|
|
261
261
|
y.nutName,
|
|
262
262
|
y.nutValue,
|
|
263
263
|
y.nutToBranch,
|
|
264
264
|
y.nutToRoot,
|
|
265
265
|
y.nutToTotal
|
|
266
|
-
]), u = l.concat([i]).concat(t), f =
|
|
267
|
-
|
|
266
|
+
]), u = l.concat([i]).concat(t), f = Ke(u);
|
|
267
|
+
Je({ csvContent: f, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
272
|
-
|
|
270
|
+
const q = z(!1);
|
|
271
|
+
function Be(l) {
|
|
272
|
+
q.value = l, oe.value += 1;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
274
|
+
function fe() {
|
|
275
|
+
Y.value.showTable = !Y.value.showTable;
|
|
276
276
|
}
|
|
277
|
-
return
|
|
278
|
-
getData:
|
|
279
|
-
generatePdf:
|
|
280
|
-
generateCsv:
|
|
281
|
-
generateImage:
|
|
282
|
-
toggleTable:
|
|
277
|
+
return $e({
|
|
278
|
+
getData: Ne,
|
|
279
|
+
generatePdf: ne,
|
|
280
|
+
generateCsv: he,
|
|
281
|
+
generateImage: re,
|
|
282
|
+
toggleTable: fe
|
|
283
283
|
}), (l, i) => (a(), o("div", {
|
|
284
|
-
class: m(`vue-ui-chestnut ${
|
|
284
|
+
class: m(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
285
285
|
ref_key: "chestnutChart",
|
|
286
|
-
ref:
|
|
286
|
+
ref: ae,
|
|
287
287
|
id: `vue-ui-chestnut_${k.value}`,
|
|
288
288
|
style: h(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;padding-top:36px;background:${e.value.style.chart.backgroundColor}`)
|
|
289
289
|
}, [
|
|
290
|
-
e.value.userOptions.show &&
|
|
290
|
+
e.value.userOptions.show && D.value ? (a(), ee(Ze, {
|
|
291
291
|
ref_key: "details",
|
|
292
|
-
ref:
|
|
293
|
-
key: `user_options_${
|
|
292
|
+
ref: ze,
|
|
293
|
+
key: `user_options_${oe.value}`,
|
|
294
294
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
295
295
|
color: e.value.style.chart.color,
|
|
296
|
-
isImaging:
|
|
297
|
-
isPrinting:
|
|
296
|
+
isImaging: n(ue),
|
|
297
|
+
isPrinting: n(se),
|
|
298
298
|
uid: k.value,
|
|
299
299
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
300
300
|
hasImg: e.value.userOptions.buttons.img,
|
|
301
301
|
hasXls: e.value.userOptions.buttons.csv,
|
|
302
302
|
hasTable: e.value.userOptions.buttons.table,
|
|
303
303
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
304
|
-
isFullscreen:
|
|
304
|
+
isFullscreen: q.value,
|
|
305
305
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
306
|
-
chartElement:
|
|
307
|
-
onToggleFullscreen:
|
|
308
|
-
onGeneratePdf:
|
|
309
|
-
onGenerateCsv:
|
|
310
|
-
onGenerateImage:
|
|
311
|
-
onToggleTable:
|
|
312
|
-
},
|
|
306
|
+
chartElement: ae.value,
|
|
307
|
+
onToggleFullscreen: Be,
|
|
308
|
+
onGeneratePdf: n(ne),
|
|
309
|
+
onGenerateCsv: he,
|
|
310
|
+
onGenerateImage: n(re),
|
|
311
|
+
onToggleTable: fe
|
|
312
|
+
}, Xe({ _: 2 }, [
|
|
313
313
|
l.$slots.optionPdf ? {
|
|
314
314
|
name: "optionPdf",
|
|
315
|
-
fn:
|
|
316
|
-
|
|
315
|
+
fn: U(() => [
|
|
316
|
+
j(l.$slots, "optionPdf", {}, void 0, !0)
|
|
317
317
|
]),
|
|
318
318
|
key: "0"
|
|
319
319
|
} : void 0,
|
|
320
320
|
l.$slots.optionCsv ? {
|
|
321
321
|
name: "optionCsv",
|
|
322
|
-
fn:
|
|
323
|
-
|
|
322
|
+
fn: U(() => [
|
|
323
|
+
j(l.$slots, "optionCsv", {}, void 0, !0)
|
|
324
324
|
]),
|
|
325
325
|
key: "1"
|
|
326
326
|
} : void 0,
|
|
327
327
|
l.$slots.optionImg ? {
|
|
328
328
|
name: "optionImg",
|
|
329
|
-
fn:
|
|
330
|
-
|
|
329
|
+
fn: U(() => [
|
|
330
|
+
j(l.$slots, "optionImg", {}, void 0, !0)
|
|
331
331
|
]),
|
|
332
332
|
key: "2"
|
|
333
333
|
} : void 0,
|
|
334
334
|
l.$slots.optionTable ? {
|
|
335
335
|
name: "optionTable",
|
|
336
|
-
fn:
|
|
337
|
-
|
|
336
|
+
fn: U(() => [
|
|
337
|
+
j(l.$slots, "optionTable", {}, void 0, !0)
|
|
338
338
|
]),
|
|
339
339
|
key: "3"
|
|
340
340
|
} : void 0,
|
|
341
341
|
l.$slots.optionFullscreen ? {
|
|
342
342
|
name: "optionFullscreen",
|
|
343
|
-
fn:
|
|
344
|
-
|
|
343
|
+
fn: U(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
344
|
+
j(l.$slots, "optionFullscreen", be(pe({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
345
345
|
]),
|
|
346
346
|
key: "4"
|
|
347
347
|
} : void 0
|
|
348
348
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
|
|
349
|
-
r.value.height > 0 &&
|
|
349
|
+
r.value.height > 0 && D.value ? (a(), o("svg", {
|
|
350
350
|
key: 1,
|
|
351
|
-
xmlns:
|
|
352
|
-
class: m({ "vue-data-ui-fullscreen--on":
|
|
351
|
+
xmlns: n(He),
|
|
352
|
+
class: m({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
353
353
|
viewBox: `0 0 ${r.value.width} ${r.value.height}`,
|
|
354
354
|
style: h(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
355
355
|
}, [
|
|
356
|
-
v.value ? b("", !0) : (a(), o("g",
|
|
356
|
+
v.value ? b("", !0) : (a(), o("g", ut, [
|
|
357
357
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
358
358
|
key: 0,
|
|
359
359
|
"text-anchor": "middle",
|
|
@@ -363,7 +363,7 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
363
363
|
x: r.value.width / 2,
|
|
364
364
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
365
365
|
onClick: w
|
|
366
|
-
},
|
|
366
|
+
}, c(e.value.style.chart.layout.title.text), 9, nt)) : b("", !0),
|
|
367
367
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
368
368
|
key: 1,
|
|
369
369
|
"text-anchor": "middle",
|
|
@@ -373,10 +373,10 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
373
373
|
x: r.value.width / 2,
|
|
374
374
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
375
375
|
onClick: w
|
|
376
|
-
},
|
|
376
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, rt)) : b("", !0)
|
|
377
377
|
])),
|
|
378
378
|
s("defs", null, [
|
|
379
|
-
(a(!0), o(p, null, g(
|
|
379
|
+
(a(!0), o(p, null, g(N.value, (t, u) => (a(), o("radialGradient", {
|
|
380
380
|
cx: "50%",
|
|
381
381
|
cy: "50%",
|
|
382
382
|
r: "50%",
|
|
@@ -386,14 +386,14 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
386
386
|
}, [
|
|
387
387
|
s("stop", {
|
|
388
388
|
offset: "0%",
|
|
389
|
-
"stop-color": `${
|
|
390
|
-
}, null, 8,
|
|
389
|
+
"stop-color": `${n(_e)(t.color, 0.05)}${n(S)[100 - e.value.style.chart.layout.roots.gradientIntensity]}`
|
|
390
|
+
}, null, 8, ct),
|
|
391
391
|
s("stop", {
|
|
392
392
|
offset: "100%",
|
|
393
393
|
"stop-color": t.color
|
|
394
|
-
}, null, 8,
|
|
395
|
-
], 8,
|
|
396
|
-
(a(!0), o(p, null, g(
|
|
394
|
+
}, null, 8, dt)
|
|
395
|
+
], 8, it))), 256)),
|
|
396
|
+
(a(!0), o(p, null, g(N.value, (t) => (a(), o("linearGradient", {
|
|
397
397
|
x1: "0%",
|
|
398
398
|
y1: "0%",
|
|
399
399
|
x2: "100%",
|
|
@@ -403,12 +403,12 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
403
403
|
s("stop", {
|
|
404
404
|
offset: "0%",
|
|
405
405
|
"stop-color": t.color
|
|
406
|
-
}, null, 8,
|
|
406
|
+
}, null, 8, yt),
|
|
407
407
|
s("stop", {
|
|
408
408
|
offset: "100%",
|
|
409
|
-
"stop-color": `${
|
|
410
|
-
}, null, 8,
|
|
411
|
-
], 8,
|
|
409
|
+
"stop-color": `${n(_e)(t.color, 0.02)}${n(S)[100 - e.value.style.chart.layout.branches.gradientIntensity]}`
|
|
410
|
+
}, null, 8, ht)
|
|
411
|
+
], 8, vt))), 256)),
|
|
412
412
|
s("radialGradient", {
|
|
413
413
|
cx: "50%",
|
|
414
414
|
cy: "50%",
|
|
@@ -419,17 +419,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
419
419
|
}, [
|
|
420
420
|
s("stop", {
|
|
421
421
|
offset: "0%",
|
|
422
|
-
"stop-color": `#FFFFFF${
|
|
423
|
-
}, null, 8,
|
|
422
|
+
"stop-color": `#FFFFFF${n(S)[0]}`
|
|
423
|
+
}, null, 8, bt),
|
|
424
424
|
s("stop", {
|
|
425
425
|
offset: "80%",
|
|
426
|
-
"stop-color": `#FFFFFF${
|
|
427
|
-
}, null, 8,
|
|
426
|
+
"stop-color": `#FFFFFF${n(S)[e.value.style.chart.layout.nuts.selected.gradientIntensity]}`
|
|
427
|
+
}, null, 8, pt),
|
|
428
428
|
s("stop", {
|
|
429
429
|
offset: "100%",
|
|
430
|
-
"stop-color": `#FFFFFF${
|
|
431
|
-
}, null, 8,
|
|
432
|
-
], 8,
|
|
430
|
+
"stop-color": `#FFFFFF${n(S)[0]}`
|
|
431
|
+
}, null, 8, gt)
|
|
432
|
+
], 8, ft),
|
|
433
433
|
s("radialGradient", {
|
|
434
434
|
cx: "50%",
|
|
435
435
|
cy: "50%",
|
|
@@ -440,17 +440,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
440
440
|
}, [
|
|
441
441
|
s("stop", {
|
|
442
442
|
offset: "0%",
|
|
443
|
-
"stop-color": `#FFFFFF${
|
|
444
|
-
}, null, 8,
|
|
443
|
+
"stop-color": `#FFFFFF${n(S)[0]}`
|
|
444
|
+
}, null, 8, xt),
|
|
445
445
|
s("stop", {
|
|
446
446
|
offset: "80%",
|
|
447
|
-
"stop-color": `#FFFFFF${
|
|
448
|
-
}, null, 8,
|
|
447
|
+
"stop-color": `#FFFFFF${n(S)[e.value.style.chart.layout.nuts.gradientIntensity]}`
|
|
448
|
+
}, null, 8, mt),
|
|
449
449
|
s("stop", {
|
|
450
450
|
offset: "100%",
|
|
451
|
-
"stop-color": `#FFFFFF${
|
|
452
|
-
}, null, 8,
|
|
453
|
-
], 8,
|
|
451
|
+
"stop-color": `#FFFFFF${n(S)[0]}`
|
|
452
|
+
}, null, 8, kt)
|
|
453
|
+
], 8, _t),
|
|
454
454
|
s("radialGradient", {
|
|
455
455
|
cx: "50%",
|
|
456
456
|
cy: "50%",
|
|
@@ -461,19 +461,19 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
461
461
|
}, [
|
|
462
462
|
s("stop", {
|
|
463
463
|
offset: "0%",
|
|
464
|
-
"stop-color": `${e.value.style.chart.backgroundColor}${
|
|
465
|
-
}, null, 8,
|
|
464
|
+
"stop-color": `${e.value.style.chart.backgroundColor}${n(S)[100]}`
|
|
465
|
+
}, null, 8, $t),
|
|
466
466
|
s("stop", {
|
|
467
467
|
offset: "80%",
|
|
468
|
-
"stop-color": `${e.value.style.chart.backgroundColor}${
|
|
469
|
-
}, null, 8,
|
|
468
|
+
"stop-color": `${e.value.style.chart.backgroundColor}${n(S)[60]}`
|
|
469
|
+
}, null, 8, Ct),
|
|
470
470
|
s("stop", {
|
|
471
471
|
offset: "100%",
|
|
472
|
-
"stop-color": `${e.value.style.chart.backgroundColor}${
|
|
473
|
-
}, null, 8,
|
|
474
|
-
], 8,
|
|
472
|
+
"stop-color": `${e.value.style.chart.backgroundColor}${n(S)[0]}`
|
|
473
|
+
}, null, 8, zt)
|
|
474
|
+
], 8, wt)
|
|
475
475
|
]),
|
|
476
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
476
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Tt, [
|
|
477
477
|
s("text", {
|
|
478
478
|
x: C.value.seedX,
|
|
479
479
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -482,7 +482,7 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
482
482
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
483
483
|
"text-anchor": "middle",
|
|
484
484
|
onClick: w
|
|
485
|
-
},
|
|
485
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, Nt),
|
|
486
486
|
s("text", {
|
|
487
487
|
x: C.value.seedX,
|
|
488
488
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -491,55 +491,74 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
491
491
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
492
492
|
"text-anchor": "middle",
|
|
493
493
|
onClick: w
|
|
494
|
-
},
|
|
494
|
+
}, c(n(G)(
|
|
495
|
+
e.value.style.chart.layout.grandTotal.formatter,
|
|
496
|
+
V.value,
|
|
497
|
+
n(T)({
|
|
498
|
+
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
499
|
+
v: V.value,
|
|
500
|
+
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
501
|
+
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
502
|
+
})
|
|
503
|
+
)), 9, St)
|
|
495
504
|
])) : b("", !0),
|
|
496
|
-
(a(!0), o(p, null, g(
|
|
505
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
|
|
497
506
|
(a(!0), o(p, null, g(r.value.branchSize, (u, f) => (a(), o("path", {
|
|
498
507
|
d: `M
|
|
499
508
|
${t.x1},${t.y1 + f}
|
|
500
509
|
C${t.x1 - 20},${t.y1 + f}
|
|
501
510
|
${t.x1 - 80},${t.y1 + f}
|
|
502
|
-
${
|
|
511
|
+
${Q(t).x + Q(t).r / 2}, ${Q(t).y}
|
|
503
512
|
`,
|
|
504
|
-
stroke: `${t.color}${
|
|
513
|
+
stroke: `${t.color}${n(S)[e.value.style.chart.layout.links.opacity]}`,
|
|
505
514
|
fill: "none",
|
|
506
515
|
"stroke-width": "2",
|
|
507
516
|
"shape-rendering": "cirspEdges",
|
|
508
|
-
style: h(`opacity:${
|
|
517
|
+
style: h(`opacity:${L(t) ? 1 : 0}`),
|
|
509
518
|
onClick: w
|
|
510
519
|
}, null, 12, Ft))), 256))
|
|
511
520
|
]))), 256)),
|
|
512
|
-
(a(!0), o(p, null, g(
|
|
521
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("circle", {
|
|
513
522
|
cx: t.x,
|
|
514
523
|
cy: t.y,
|
|
515
524
|
r: t.r,
|
|
516
525
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
517
526
|
stroke: "none",
|
|
518
|
-
style: h(`cursor:pointer; opacity:${
|
|
519
|
-
}, null, 12,
|
|
520
|
-
(a(!0), o(p, null, g(
|
|
527
|
+
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`)
|
|
528
|
+
}, null, 12, Lt))), 256)),
|
|
529
|
+
(a(!0), o(p, null, g(X.value, (t, u) => (a(), o("circle", {
|
|
521
530
|
cx: t.x,
|
|
522
531
|
cy: t.y,
|
|
523
532
|
r: t.r,
|
|
524
533
|
fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${k.value}_${t.rootIndex})` : t.color,
|
|
525
534
|
stroke: e.value.style.chart.layout.roots.stroke,
|
|
526
535
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
527
|
-
style: h(`cursor:pointer; opacity:${
|
|
528
|
-
onClick: (f) =>
|
|
529
|
-
}, null, 12,
|
|
530
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
531
|
-
(a(!0), o(p, null, g(
|
|
536
|
+
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
537
|
+
onClick: (f) => ye(t)
|
|
538
|
+
}, null, 12, It))), 256)),
|
|
539
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", Pt, [
|
|
540
|
+
(a(!0), o(p, null, g(X.value, (t, u) => (a(), o("text", {
|
|
532
541
|
x: t.x,
|
|
533
542
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
534
543
|
"text-anchor": "middle",
|
|
535
544
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
536
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ?
|
|
545
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? n(xe)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
537
546
|
"font-weight": "bold",
|
|
538
|
-
style: h(`cursor:pointer; opacity:${
|
|
539
|
-
onClick: (f) =>
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
|
|
547
|
+
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
548
|
+
onClick: (f) => ye(t)
|
|
549
|
+
}, c(n(G)(
|
|
550
|
+
e.value.style.chart.layout.roots.labels.formatter,
|
|
551
|
+
t.total,
|
|
552
|
+
n(T)({
|
|
553
|
+
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
554
|
+
v: t.total,
|
|
555
|
+
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
556
|
+
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
557
|
+
}),
|
|
558
|
+
{ datapoint: t }
|
|
559
|
+
)), 13, Vt))), 256)),
|
|
560
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
561
|
+
v.value && t.rootIndex === v.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || F.value && t.rootIndex === F.value.rootIndex ? (a(), o("g", Rt, [
|
|
543
562
|
s("text", {
|
|
544
563
|
x: t.x,
|
|
545
564
|
y: t.y + t.r + 24,
|
|
@@ -548,11 +567,11 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
548
567
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
549
568
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
550
569
|
onClick: w
|
|
551
|
-
},
|
|
570
|
+
}, c(t.name), 9, Bt)
|
|
552
571
|
])) : b("", !0)
|
|
553
572
|
]))), 256))
|
|
554
573
|
])) : b("", !0),
|
|
555
|
-
(a(!0), o(p, null, g(
|
|
574
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("rect", {
|
|
556
575
|
x: t.x1,
|
|
557
576
|
y: t.y1,
|
|
558
577
|
height: r.value.branchSize,
|
|
@@ -560,10 +579,10 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
560
579
|
fill: e.value.style.chart.layout.branches.underlayerColor,
|
|
561
580
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
562
581
|
stroke: "none",
|
|
563
|
-
style: h(`opacity:${
|
|
564
|
-
onClick: (u) =>
|
|
565
|
-
}, null, 12,
|
|
566
|
-
(a(!0), o(p, null, g(
|
|
582
|
+
style: h(`opacity:${L(t) ? 1 : 0.05}`),
|
|
583
|
+
onClick: (u) => Z(t)
|
|
584
|
+
}, null, 12, Mt))), 256)),
|
|
585
|
+
(a(!0), o(p, null, g(B.value, (t, u) => (a(), o("rect", {
|
|
567
586
|
x: t.x1,
|
|
568
587
|
y: t.y1,
|
|
569
588
|
height: r.value.branchSize,
|
|
@@ -572,26 +591,36 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
572
591
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
573
592
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
574
593
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
575
|
-
style: h(`cursor:pointer; opacity:${
|
|
576
|
-
onClick: (f) =>
|
|
577
|
-
}, null, 12,
|
|
578
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
579
|
-
(a(!0), o(p, null, g(
|
|
594
|
+
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
595
|
+
onClick: (f) => Z(t)
|
|
596
|
+
}, null, 12, jt))), 256)),
|
|
597
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Xt, [
|
|
598
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
|
|
580
599
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
581
600
|
key: 0,
|
|
582
601
|
x: t.x1 + 6,
|
|
583
602
|
y: t.y1 + r.value.branchSize / 1.5,
|
|
584
603
|
"text-anchor": "start",
|
|
585
|
-
fill:
|
|
604
|
+
fill: n(xe)(t.color),
|
|
586
605
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
587
606
|
"font-weight": "bold",
|
|
588
|
-
style: h(`cursor:pointer; opacity:${
|
|
589
|
-
onClick: (u) =>
|
|
590
|
-
},
|
|
607
|
+
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
608
|
+
onClick: (u) => Z(t)
|
|
609
|
+
}, c(n(G)(
|
|
610
|
+
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
611
|
+
t.value,
|
|
612
|
+
n(T)({
|
|
613
|
+
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
614
|
+
v: t.value,
|
|
615
|
+
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
616
|
+
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
617
|
+
}),
|
|
618
|
+
{ datapoint: t }
|
|
619
|
+
)), 13, Ot)) : b("", !0)
|
|
591
620
|
]))), 256))
|
|
592
621
|
])) : b("", !0),
|
|
593
|
-
(a(!0), o(p, null, g(
|
|
594
|
-
(a(!0), o(p, null, g(
|
|
622
|
+
(a(!0), o(p, null, g(B.value, (t, u) => (a(), o("g", null, [
|
|
623
|
+
(a(!0), o(p, null, g(n(me)(
|
|
595
624
|
{ series: t.breakdown, base: 1 },
|
|
596
625
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
597
626
|
t.y1 + r.value.branchSize / 2,
|
|
@@ -602,35 +631,35 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
602
631
|
stroke: f.color,
|
|
603
632
|
"stroke-width": 10,
|
|
604
633
|
fill: "none",
|
|
605
|
-
style: h(`opacity:${
|
|
606
|
-
}, null, 12,
|
|
607
|
-
(a(!0), o(p, null, g(
|
|
634
|
+
style: h(`opacity:${L(t) ? 1 : 0.1}`)
|
|
635
|
+
}, null, 12, Gt))), 256)),
|
|
636
|
+
(a(!0), o(p, null, g(B.value, (f) => (a(), o("circle", {
|
|
608
637
|
cx: f.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
609
638
|
cy: f.y1 + r.value.branchSize / 2,
|
|
610
639
|
r: 6,
|
|
611
640
|
fill: e.value.style.chart.backgroundColor,
|
|
612
|
-
onClick: (y) =>
|
|
641
|
+
onClick: (y) => ve(f),
|
|
613
642
|
style: { cursor: "pointer" }
|
|
614
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, Et))), 256)),
|
|
615
644
|
s("circle", {
|
|
616
645
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${k.value})` : "transparent",
|
|
617
646
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
618
647
|
cy: t.y1 + r.value.branchSize / 2,
|
|
619
648
|
r: r.value.branchSize / 2 + 2,
|
|
620
|
-
onClick: (f) =>
|
|
621
|
-
style: h(`cursor:pointer;opacity:${
|
|
622
|
-
}, null, 12,
|
|
649
|
+
onClick: (f) => ve(t),
|
|
650
|
+
style: h(`cursor:pointer;opacity:${L(t) ? 1 : 0.1}`)
|
|
651
|
+
}, null, 12, At)
|
|
623
652
|
]))), 256)),
|
|
624
|
-
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g",
|
|
625
|
-
(a(!0), o(p, null, g(
|
|
653
|
+
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", Ut, [
|
|
654
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("text", {
|
|
626
655
|
x: t.x2 + r.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
627
656
|
y: t.y1 + r.value.branchSize / 2 + 5,
|
|
628
657
|
"font-size": e.value.style.chart.layout.branches.labels.fontSize,
|
|
629
658
|
"font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
630
659
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
631
660
|
"text-anchor": "start",
|
|
632
|
-
style: h(`opacity:${
|
|
633
|
-
},
|
|
661
|
+
style: h(`opacity:${L(t) ? 1 : 0.1}`)
|
|
662
|
+
}, c(t.name), 13, Dt))), 256))
|
|
634
663
|
])) : b("", !0),
|
|
635
664
|
s("line", {
|
|
636
665
|
x1: 256 + r.value.padding.left,
|
|
@@ -639,7 +668,7 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
639
668
|
y2: C.value.bottom,
|
|
640
669
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
641
670
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
642
|
-
}, null, 8,
|
|
671
|
+
}, null, 8, Yt),
|
|
643
672
|
!v.value && !x.value ? (a(), o("foreignObject", {
|
|
644
673
|
key: 5,
|
|
645
674
|
x: 0,
|
|
@@ -649,113 +678,126 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
649
678
|
style: { overflow: "visible" },
|
|
650
679
|
onClick: w
|
|
651
680
|
}, [
|
|
652
|
-
s("div",
|
|
653
|
-
s("div",
|
|
654
|
-
(a(!0), o(p, null, g(
|
|
681
|
+
s("div", Ht, [
|
|
682
|
+
s("div", Wt, [
|
|
683
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("div", {
|
|
655
684
|
style: h(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
656
685
|
}, [
|
|
657
|
-
(a(), o("svg",
|
|
686
|
+
(a(), o("svg", Kt, [
|
|
658
687
|
s("circle", {
|
|
659
688
|
cx: "10",
|
|
660
689
|
cy: "10",
|
|
661
690
|
r: "10",
|
|
662
691
|
fill: t.color,
|
|
663
692
|
stroke: "none"
|
|
664
|
-
}, null, 8,
|
|
693
|
+
}, null, 8, Jt)
|
|
665
694
|
])),
|
|
666
|
-
s("span", null,
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
695
|
+
s("span", null, c(t.name) + ":", 1),
|
|
696
|
+
s("b", null, c(n(G)(
|
|
697
|
+
e.value.style.chart.layout.roots.labels.formatter,
|
|
698
|
+
t.total,
|
|
699
|
+
n(T)({
|
|
700
|
+
p: e.value.style.chart.layout.legend.prefix,
|
|
701
|
+
v: t.total,
|
|
702
|
+
s: e.value.style.chart.layout.legend.suffix,
|
|
703
|
+
r: e.value.style.chart.layout.legend.roundingValue
|
|
704
|
+
}),
|
|
705
|
+
{ datapoint: t }
|
|
706
|
+
)), 1),
|
|
707
|
+
W(" (" + c(n(T)({
|
|
708
|
+
v: t.total / V.value * 100,
|
|
709
|
+
s: "%",
|
|
710
|
+
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
711
|
+
})) + ") ", 1)
|
|
670
712
|
], 4))), 256))
|
|
671
713
|
])
|
|
672
714
|
])
|
|
673
|
-
], 8,
|
|
674
|
-
v.value &&
|
|
715
|
+
], 8, qt)) : b("", !0),
|
|
716
|
+
v.value && M.value ? (a(), o("g", Qt, [
|
|
675
717
|
(a(), o("foreignObject", {
|
|
676
718
|
x: 0,
|
|
677
|
-
y:
|
|
719
|
+
y: Ve(),
|
|
678
720
|
height: r.value.height - C.value.bottom,
|
|
679
721
|
width: r.value.width,
|
|
680
722
|
style: { overflow: "visible" },
|
|
681
723
|
onClick: w
|
|
682
724
|
}, [
|
|
683
|
-
s("div",
|
|
684
|
-
s("b", null,
|
|
685
|
-
s("div",
|
|
725
|
+
s("div", el, [
|
|
726
|
+
s("b", null, c(v.value.name), 1),
|
|
727
|
+
s("div", tl, [
|
|
686
728
|
(a(!0), o(p, null, g(v.value.breakdown, (t, u) => (a(), o("div", {
|
|
687
729
|
style: h(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
688
730
|
}, [
|
|
689
|
-
(a(), o("svg",
|
|
731
|
+
(a(), o("svg", ll, [
|
|
690
732
|
s("circle", {
|
|
691
733
|
cx: "10",
|
|
692
734
|
cy: "10",
|
|
693
735
|
r: "10",
|
|
694
736
|
fill: t.color,
|
|
695
737
|
stroke: "none"
|
|
696
|
-
}, null, 8,
|
|
738
|
+
}, null, 8, al)
|
|
697
739
|
])),
|
|
698
740
|
s("span", null, [
|
|
699
|
-
|
|
700
|
-
s("b", null,
|
|
701
|
-
|
|
741
|
+
W(c(t.name) + ": ", 1),
|
|
742
|
+
s("b", null, c(e.value.style.chart.layout.legend.prefix) + " " + c(t.value.toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + c(e.value.style.chart.layout.legend.suffix), 1),
|
|
743
|
+
W(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
702
744
|
])
|
|
703
745
|
], 4))), 256))
|
|
704
746
|
])
|
|
705
747
|
])
|
|
706
|
-
], 8,
|
|
707
|
-
(a(!0), o(p, null, g(
|
|
708
|
-
|
|
748
|
+
], 8, Zt)),
|
|
749
|
+
(a(!0), o(p, null, g(M.value, (t) => (a(), o("g", null, [
|
|
750
|
+
A(t) ? (a(), o("path", {
|
|
709
751
|
key: 0,
|
|
710
|
-
d:
|
|
752
|
+
d: n(We)(t),
|
|
711
753
|
stroke: t.color,
|
|
712
754
|
"stroke-width": "1",
|
|
713
755
|
"stroke-linecap": "round",
|
|
714
756
|
"stroke-linejoin": "round",
|
|
715
757
|
fill: "none",
|
|
716
758
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
717
|
-
}, null, 10,
|
|
759
|
+
}, null, 10, ol)) : b("", !0)
|
|
718
760
|
]))), 256)),
|
|
719
761
|
s("circle", {
|
|
720
762
|
cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
721
763
|
cy: v.value.y1 + r.value.branchSize / 2,
|
|
722
764
|
r: 256,
|
|
723
765
|
fill: `url(#nut_underlayer_${k.value})`,
|
|
724
|
-
onClick:
|
|
766
|
+
onClick: O,
|
|
725
767
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
726
|
-
}, null, 10,
|
|
768
|
+
}, null, 10, sl),
|
|
727
769
|
s("circle", {
|
|
728
770
|
cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
729
771
|
cy: v.value.y1 + r.value.branchSize / 2,
|
|
730
772
|
r: 118,
|
|
731
773
|
fill: e.value.style.chart.backgroundColor,
|
|
732
|
-
onClick:
|
|
774
|
+
onClick: O,
|
|
733
775
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
734
|
-
}, null, 10,
|
|
735
|
-
(a(!0), o(p, null, g(
|
|
776
|
+
}, null, 10, ul),
|
|
777
|
+
(a(!0), o(p, null, g(M.value, (t) => (a(), o("path", {
|
|
736
778
|
d: t.path,
|
|
737
779
|
stroke: t.color,
|
|
738
780
|
"stroke-width": 64,
|
|
739
781
|
fill: "none",
|
|
740
|
-
onClick:
|
|
782
|
+
onClick: O,
|
|
741
783
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
742
|
-
}, null, 10,
|
|
784
|
+
}, null, 10, nl))), 256)),
|
|
743
785
|
s("circle", {
|
|
744
786
|
cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
745
787
|
cy: v.value.y1 + r.value.branchSize / 2,
|
|
746
788
|
r: 100,
|
|
747
789
|
fill: `url(#nutpick_${k.value})`,
|
|
748
|
-
onClick:
|
|
790
|
+
onClick: O,
|
|
749
791
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
750
|
-
}, null, 10,
|
|
792
|
+
}, null, 10, rl),
|
|
751
793
|
s("circle", {
|
|
752
794
|
cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
753
795
|
cy: v.value.y1 + r.value.branchSize / 2,
|
|
754
796
|
r: 48,
|
|
755
797
|
fill: e.value.style.chart.backgroundColor,
|
|
756
|
-
onClick:
|
|
798
|
+
onClick: O,
|
|
757
799
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
758
|
-
}, null, 10,
|
|
800
|
+
}, null, 10, il),
|
|
759
801
|
s("text", {
|
|
760
802
|
x: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
761
803
|
y: v.value.y1 + 8,
|
|
@@ -763,9 +805,9 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
763
805
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
764
806
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
765
807
|
"text-anchor": "middle",
|
|
766
|
-
onClick:
|
|
808
|
+
onClick: O,
|
|
767
809
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
768
|
-
},
|
|
810
|
+
}, c(e.value.translations.total), 11, cl),
|
|
769
811
|
s("text", {
|
|
770
812
|
x: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
771
813
|
y: v.value.y1 + 36,
|
|
@@ -773,65 +815,97 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
773
815
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
774
816
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
775
817
|
"text-anchor": "middle",
|
|
776
|
-
onClick:
|
|
818
|
+
onClick: O,
|
|
777
819
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
778
|
-
},
|
|
779
|
-
|
|
780
|
-
|
|
820
|
+
}, c(n(G)(
|
|
821
|
+
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
822
|
+
v.value.value,
|
|
823
|
+
n(T)({
|
|
824
|
+
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
825
|
+
v: v.value.value,
|
|
826
|
+
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
827
|
+
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
828
|
+
}),
|
|
829
|
+
{ datapoint: v.value }
|
|
830
|
+
)), 11, dl),
|
|
831
|
+
(a(!0), o(p, null, g(M.value, (t, u) => (a(), o("g", null, [
|
|
832
|
+
A(t) ? (a(), o("text", {
|
|
781
833
|
key: 0,
|
|
782
|
-
x:
|
|
783
|
-
"text-anchor":
|
|
784
|
-
y:
|
|
834
|
+
x: n(P)(t).x,
|
|
835
|
+
"text-anchor": n(P)(t).anchor,
|
|
836
|
+
y: n(H)(t),
|
|
785
837
|
fill: t.color,
|
|
786
838
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
787
839
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
788
840
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
789
|
-
}, " ⬤ ", 14,
|
|
790
|
-
|
|
841
|
+
}, " ⬤ ", 14, vl)) : b("", !0),
|
|
842
|
+
A(t) ? (a(), o("text", {
|
|
791
843
|
key: 1,
|
|
792
|
-
x:
|
|
793
|
-
"text-anchor":
|
|
794
|
-
y:
|
|
844
|
+
x: n(P)(t, !0).x,
|
|
845
|
+
"text-anchor": n(P)(t, !0).anchor,
|
|
846
|
+
y: n(H)(t),
|
|
795
847
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
796
848
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
797
849
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
798
850
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
799
|
-
},
|
|
851
|
+
}, c(v.value.breakdown[u].name), 15, yl)) : b("", !0)
|
|
800
852
|
]))), 256)),
|
|
801
|
-
(a(!0), o(p, null, g(
|
|
802
|
-
|
|
853
|
+
(a(!0), o(p, null, g(M.value, (t, u) => (a(), o("g", null, [
|
|
854
|
+
A(t) ? (a(), o("text", {
|
|
803
855
|
key: 0,
|
|
804
|
-
x:
|
|
805
|
-
"text-anchor":
|
|
806
|
-
y:
|
|
856
|
+
x: n(P)(t, !0).x,
|
|
857
|
+
"text-anchor": n(P)(t).anchor,
|
|
858
|
+
y: n(H)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
807
859
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
808
860
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
809
861
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
810
862
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
811
|
-
},
|
|
812
|
-
|
|
863
|
+
}, c(n(T)({
|
|
864
|
+
v: v.value.breakdown[u].value / v.value.value * 100,
|
|
865
|
+
s: "%",
|
|
866
|
+
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
867
|
+
})) + " " + c(e.value.translations.of) + " " + c(v.value.breakdown[u].branchName) + " " + c(n(G)(
|
|
868
|
+
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
869
|
+
v.value.breakdown[u].value,
|
|
870
|
+
n(T)({
|
|
871
|
+
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
872
|
+
v: v.value.breakdown[u].value,
|
|
873
|
+
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
874
|
+
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
875
|
+
}),
|
|
876
|
+
{ datapoint: M.value, seriesIndex: u }
|
|
877
|
+
)), 15, hl)) : b("", !0),
|
|
878
|
+
A(t) ? (a(), o("text", {
|
|
813
879
|
key: 1,
|
|
814
|
-
x:
|
|
815
|
-
"text-anchor":
|
|
816
|
-
y:
|
|
880
|
+
x: n(P)(t, !0).x,
|
|
881
|
+
"text-anchor": n(P)(t).anchor,
|
|
882
|
+
y: n(H)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
817
883
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
818
884
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
819
885
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
820
886
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
821
|
-
},
|
|
822
|
-
|
|
887
|
+
}, c(n(T)({
|
|
888
|
+
v: v.value.breakdown[u].proportionToRoot * 100,
|
|
889
|
+
s: "%",
|
|
890
|
+
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
891
|
+
})) + " " + c(e.value.translations.of) + " " + c(v.value.breakdown[u].rootName), 15, fl)) : b("", !0),
|
|
892
|
+
A(t) ? (a(), o("text", {
|
|
823
893
|
key: 2,
|
|
824
|
-
x:
|
|
825
|
-
"text-anchor":
|
|
826
|
-
y:
|
|
894
|
+
x: n(P)(t, !0).x,
|
|
895
|
+
"text-anchor": n(P)(t).anchor,
|
|
896
|
+
y: n(H)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
827
897
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
828
898
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
829
899
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
830
900
|
class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
831
|
-
},
|
|
901
|
+
}, c(n(T)({
|
|
902
|
+
v: v.value.breakdown[u].proportionToTree * 100,
|
|
903
|
+
s: "%",
|
|
904
|
+
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
905
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, bl)) : b("", !0)
|
|
832
906
|
]))), 256))
|
|
833
907
|
])) : b("", !0),
|
|
834
|
-
(a(!0), o(p, null, g(
|
|
908
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
|
|
835
909
|
x.value && x.value.id === t.id && !v.value ? (a(), o("text", {
|
|
836
910
|
key: 0,
|
|
837
911
|
x: t.x1 + 6,
|
|
@@ -841,7 +915,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
841
915
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
842
916
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
843
917
|
onClick: w
|
|
844
|
-
},
|
|
918
|
+
}, c(t.name) + ": " + c(n(G)(
|
|
919
|
+
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
920
|
+
t.value,
|
|
921
|
+
n(T)({
|
|
922
|
+
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
923
|
+
v: t.value,
|
|
924
|
+
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
925
|
+
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
926
|
+
}),
|
|
927
|
+
{ datapoint: t }
|
|
928
|
+
)), 9, pl)) : b("", !0),
|
|
845
929
|
x.value && x.value.id === t.id && !v.value ? (a(), o("text", {
|
|
846
930
|
key: 1,
|
|
847
931
|
x: t.x1 + 6,
|
|
@@ -850,7 +934,11 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
850
934
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
851
935
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
852
936
|
onClick: w
|
|
853
|
-
},
|
|
937
|
+
}, c(n(T)({
|
|
938
|
+
v: t.proportionToRoot * 100,
|
|
939
|
+
s: "%",
|
|
940
|
+
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
941
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, gl)) : b("", !0),
|
|
854
942
|
x.value && x.value.id === t.id && !v.value ? (a(), o("text", {
|
|
855
943
|
key: 2,
|
|
856
944
|
x: t.x1 + 6,
|
|
@@ -859,14 +947,18 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
859
947
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
860
948
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
861
949
|
onClick: w
|
|
862
|
-
},
|
|
950
|
+
}, c(n(T)({
|
|
951
|
+
v: t.value / V.value * 100,
|
|
952
|
+
s: "%",
|
|
953
|
+
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
954
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, _l)) : b("", !0)
|
|
863
955
|
]))), 256)),
|
|
864
|
-
|
|
865
|
-
], 14,
|
|
866
|
-
l.$slots.watermark ? (a(), o("div",
|
|
867
|
-
|
|
956
|
+
j(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
957
|
+
], 14, st)) : b("", !0),
|
|
958
|
+
l.$slots.watermark ? (a(), o("div", xl, [
|
|
959
|
+
j(l.$slots, "watermark", be(pe({ isPrinting: n(se) || n(ue) })), void 0, !0)
|
|
868
960
|
])) : b("", !0),
|
|
869
|
-
|
|
961
|
+
D.value ? b("", !0) : (a(), ee(et, {
|
|
870
962
|
key: 3,
|
|
871
963
|
config: {
|
|
872
964
|
type: "chestnut",
|
|
@@ -878,12 +970,12 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
878
970
|
}
|
|
879
971
|
}
|
|
880
972
|
}, null, 8, ["config"])),
|
|
881
|
-
|
|
882
|
-
|
|
973
|
+
j(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
974
|
+
D.value ? (a(), ee(lt, {
|
|
883
975
|
key: 4,
|
|
884
976
|
hideDetails: "",
|
|
885
977
|
config: {
|
|
886
|
-
open:
|
|
978
|
+
open: Y.value.showTable,
|
|
887
979
|
maxHeight: 1e4,
|
|
888
980
|
body: {
|
|
889
981
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -895,21 +987,21 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
895
987
|
}
|
|
896
988
|
}
|
|
897
989
|
}, {
|
|
898
|
-
content:
|
|
990
|
+
content: U(() => [
|
|
899
991
|
s("div", {
|
|
900
992
|
ref_key: "tableContainer",
|
|
901
|
-
ref:
|
|
993
|
+
ref: ie,
|
|
902
994
|
class: "vue-ui-chestnut-table"
|
|
903
995
|
}, [
|
|
904
|
-
s("div",
|
|
996
|
+
s("div", ml, [
|
|
905
997
|
s("div", {
|
|
906
998
|
role: "button",
|
|
907
999
|
tabindex: "0",
|
|
908
1000
|
style: h(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
909
|
-
onClick: i[0] || (i[0] = (t) =>
|
|
910
|
-
onKeypress: i[1] || (i[1] =
|
|
1001
|
+
onClick: i[0] || (i[0] = (t) => Y.value.showTable = !1),
|
|
1002
|
+
onKeypress: i[1] || (i[1] = Oe((t) => Y.value.showTable = !1, ["enter"]))
|
|
911
1003
|
}, [
|
|
912
|
-
|
|
1004
|
+
Ge(tt, {
|
|
913
1005
|
name: "close",
|
|
914
1006
|
stroke: e.value.table.th.color,
|
|
915
1007
|
"stroke-width": 2
|
|
@@ -917,129 +1009,129 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
917
1009
|
], 36),
|
|
918
1010
|
s("div", {
|
|
919
1011
|
style: { width: "100%" },
|
|
920
|
-
class: m({ "vue-ui-responsive":
|
|
1012
|
+
class: m({ "vue-ui-responsive": ce.value })
|
|
921
1013
|
}, [
|
|
922
|
-
s("table",
|
|
1014
|
+
s("table", kl, [
|
|
923
1015
|
s("caption", {
|
|
924
1016
|
style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
925
1017
|
class: "vue-ui-data-table__caption"
|
|
926
1018
|
}, [
|
|
927
|
-
|
|
928
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1019
|
+
W(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1020
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", wl, c(e.value.style.chart.layout.title.subtitle.text), 1)) : b("", !0)
|
|
929
1021
|
], 4),
|
|
930
1022
|
s("thead", null, [
|
|
931
1023
|
s("tr", {
|
|
932
1024
|
role: "row",
|
|
933
1025
|
style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
934
1026
|
}, [
|
|
935
|
-
(a(!0), o(p, null, g(
|
|
1027
|
+
(a(!0), o(p, null, g(d.value.head, (t) => (a(), o("th", {
|
|
936
1028
|
style: h(`outline:${e.value.table.th.outline}`)
|
|
937
|
-
},
|
|
1029
|
+
}, c(t), 5))), 256))
|
|
938
1030
|
], 4)
|
|
939
1031
|
]),
|
|
940
1032
|
s("tbody", null, [
|
|
941
|
-
(a(!0), o(p, null, g(
|
|
1033
|
+
(a(!0), o(p, null, g(d.value.body, (t, u) => (a(), o("tr", {
|
|
942
1034
|
class: m({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": u % 2 === 0, "vue-ui-data-table__tbody__row-odd": u % 2 !== 0 }),
|
|
943
1035
|
style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
944
1036
|
}, [
|
|
945
1037
|
s("td", {
|
|
946
1038
|
class: "vue-ui-data-table__tbody__td",
|
|
947
1039
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
948
|
-
"data-cell":
|
|
1040
|
+
"data-cell": d.value.head[0]
|
|
949
1041
|
}, [
|
|
950
|
-
s("div",
|
|
951
|
-
|
|
1042
|
+
s("div", Cl, [
|
|
1043
|
+
d.value.body[u - 1] && d.value.body[u - 1].rootName === t.rootName ? (a(), o("span", zl)) : (a(), o("span", Tl, c(t.rootName), 1))
|
|
952
1044
|
])
|
|
953
|
-
], 12,
|
|
1045
|
+
], 12, $l),
|
|
954
1046
|
s("td", {
|
|
955
1047
|
class: "vue-ui-data-table__tbody__td",
|
|
956
1048
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
957
|
-
"data-cell":
|
|
1049
|
+
"data-cell": d.value.head[1]
|
|
958
1050
|
}, [
|
|
959
|
-
s("div",
|
|
960
|
-
|
|
1051
|
+
s("div", Sl, [
|
|
1052
|
+
d.value.body[u - 1] && d.value.body[u - 1].rootName === t.rootName ? (a(), o("span", Fl)) : (a(), o("span", Ll, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
961
1053
|
])
|
|
962
|
-
], 12,
|
|
1054
|
+
], 12, Nl),
|
|
963
1055
|
s("td", {
|
|
964
1056
|
class: "vue-ui-data-table__tbody__td",
|
|
965
1057
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
966
|
-
"data-cell":
|
|
1058
|
+
"data-cell": d.value.head[2]
|
|
967
1059
|
}, [
|
|
968
|
-
s("div",
|
|
969
|
-
|
|
1060
|
+
s("div", Pl, [
|
|
1061
|
+
d.value.body[u - 1] && d.value.body[u - 1].rootName === t.rootName ? (a(), o("span", Vl)) : (a(), o("span", Rl, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
970
1062
|
])
|
|
971
|
-
], 12,
|
|
1063
|
+
], 12, Il),
|
|
972
1064
|
s("td", {
|
|
973
1065
|
class: "vue-ui-data-table__tbody__td",
|
|
974
1066
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
975
|
-
"data-cell":
|
|
1067
|
+
"data-cell": d.value.head[3]
|
|
976
1068
|
}, [
|
|
977
|
-
s("div",
|
|
978
|
-
|
|
1069
|
+
s("div", Ml, [
|
|
1070
|
+
d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", jl)) : (a(), o("span", Xl, c(t.branchName), 1))
|
|
979
1071
|
])
|
|
980
|
-
], 12,
|
|
1072
|
+
], 12, Bl),
|
|
981
1073
|
s("td", {
|
|
982
1074
|
class: "vue-ui-data-table__tbody__td",
|
|
983
1075
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
984
|
-
"data-cell":
|
|
1076
|
+
"data-cell": d.value.head[4]
|
|
985
1077
|
}, [
|
|
986
|
-
s("div",
|
|
987
|
-
|
|
1078
|
+
s("div", Gl, [
|
|
1079
|
+
d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", El)) : (a(), o("span", Al, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
988
1080
|
])
|
|
989
|
-
], 12,
|
|
1081
|
+
], 12, Ol),
|
|
990
1082
|
s("td", {
|
|
991
1083
|
class: "vue-ui-data-table__tbody__td",
|
|
992
1084
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
993
|
-
"data-cell":
|
|
1085
|
+
"data-cell": d.value.head[5]
|
|
994
1086
|
}, [
|
|
995
|
-
s("div",
|
|
996
|
-
|
|
1087
|
+
s("div", Dl, [
|
|
1088
|
+
d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Yl)) : (a(), o("span", ql, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
997
1089
|
])
|
|
998
|
-
], 12,
|
|
1090
|
+
], 12, Ul),
|
|
999
1091
|
s("td", {
|
|
1000
1092
|
class: "vue-ui-data-table__tbody__td",
|
|
1001
1093
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1002
|
-
"data-cell":
|
|
1094
|
+
"data-cell": d.value.head[6]
|
|
1003
1095
|
}, [
|
|
1004
|
-
s("div",
|
|
1005
|
-
|
|
1096
|
+
s("div", Wl, [
|
|
1097
|
+
d.value.body[u - 1] && d.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Kl)) : (a(), o("span", Jl, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1006
1098
|
])
|
|
1007
|
-
], 12,
|
|
1099
|
+
], 12, Hl),
|
|
1008
1100
|
s("td", {
|
|
1009
1101
|
class: "vue-ui-data-table__tbody__td",
|
|
1010
1102
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1011
|
-
"data-cell":
|
|
1103
|
+
"data-cell": d.value.head[7]
|
|
1012
1104
|
}, [
|
|
1013
|
-
s("div",
|
|
1014
|
-
], 12,
|
|
1105
|
+
s("div", Zl, c(t.nutName), 1)
|
|
1106
|
+
], 12, Ql),
|
|
1015
1107
|
s("td", {
|
|
1016
1108
|
class: "vue-ui-data-table__tbody__td",
|
|
1017
1109
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1018
|
-
"data-cell":
|
|
1110
|
+
"data-cell": d.value.head[8]
|
|
1019
1111
|
}, [
|
|
1020
|
-
s("div",
|
|
1021
|
-
], 12,
|
|
1112
|
+
s("div", ta, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1113
|
+
], 12, ea),
|
|
1022
1114
|
s("td", {
|
|
1023
1115
|
class: "vue-ui-data-table__tbody__td",
|
|
1024
1116
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1025
|
-
"data-cell":
|
|
1117
|
+
"data-cell": d.value.head[9]
|
|
1026
1118
|
}, [
|
|
1027
|
-
s("div",
|
|
1028
|
-
], 12,
|
|
1119
|
+
s("div", aa, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1120
|
+
], 12, la),
|
|
1029
1121
|
s("td", {
|
|
1030
1122
|
class: "vue-ui-data-table__tbody__td",
|
|
1031
1123
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1032
|
-
"data-cell":
|
|
1124
|
+
"data-cell": d.value.head[10]
|
|
1033
1125
|
}, [
|
|
1034
|
-
s("div",
|
|
1035
|
-
], 12,
|
|
1126
|
+
s("div", sa, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1127
|
+
], 12, oa),
|
|
1036
1128
|
s("td", {
|
|
1037
1129
|
class: "vue-ui-data-table__tbody__td",
|
|
1038
1130
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1039
|
-
"data-cell":
|
|
1131
|
+
"data-cell": d.value.head[11]
|
|
1040
1132
|
}, [
|
|
1041
|
-
s("div",
|
|
1042
|
-
], 12,
|
|
1133
|
+
s("div", na, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1134
|
+
], 12, ua)
|
|
1043
1135
|
], 6))), 256))
|
|
1044
1136
|
])
|
|
1045
1137
|
])
|
|
@@ -1049,9 +1141,9 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "fo
|
|
|
1049
1141
|
]),
|
|
1050
1142
|
_: 1
|
|
1051
1143
|
}, 8, ["config"])) : b("", !0)
|
|
1052
|
-
], 14,
|
|
1144
|
+
], 14, ot));
|
|
1053
1145
|
}
|
|
1054
|
-
},
|
|
1146
|
+
}, ga = /* @__PURE__ */ at(ra, [["__scopeId", "data-v-bdbb359d"]]);
|
|
1055
1147
|
export {
|
|
1056
|
-
|
|
1148
|
+
ga as default
|
|
1057
1149
|
};
|