vue-data-ui 2.16.6 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineAsyncComponent as T, computed as m, ref as h, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as T, computed as m, ref as h, onMounted as Ct, watch as Ge, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as te, normalizeClass as P, createBlock as F, createCommentVNode as c, renderSlot as z, createSlots as _t, withCtx as w, normalizeProps as Y, guardReactiveProps as q, createVNode as wt, createElementVNode as S, Fragment as $, renderList as I, toDisplayString as x, createTextVNode as de, nextTick as J } from "vue";
|
|
2
|
+
import { u as St, o as Lt, e as le, g as At, c as We, t as zt, p as ae, a as $t, C as je, b as It, d as he, G as Nt, D as Ye, m as ye, X as Ft, s as K, H as Pt, i as ge, f as oe, I as Dt, j as Ot, k as Tt, n as qe, q as Et, r as Ht, J as Je, K as Vt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as Ke } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Rt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Ut } from "./useTimeLabels-Mrr0jrpL.js";
|
|
7
|
+
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import Xt from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import { S as Gt } from "./Slicer-CL6-MRI6.js";
|
|
10
|
+
import Wt from "./Title-B-2bV0SW.js";
|
|
11
|
+
import jt from "./img-Y_hYz-ZC.js";
|
|
12
|
+
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ol = ["stop-color"], ul = { key: 1 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x", "y", "font-size", "fill", "font-weight"], dl = {
|
|
13
14
|
key: 3,
|
|
14
15
|
class: /* @__PURE__ */ P({ "donut-opacity": !0 })
|
|
15
|
-
},
|
|
16
|
+
}, hl = { key: 0 }, yl = ["text-anchor", "font-size", "fill", "transform"], gl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], fl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ml = { key: 1 }, bl = ["cx", "cy", "r", "fill"], pl = { key: 0 }, xl = { key: 0 }, kl = ["d", "stroke"], Cl = ["text-anchor", "x", "y", "fill"], _l = ["cx", "cy", "r", "fill"], wl = { key: 0 }, Sl = ["cx", "cy", "fill"], Ll = { key: 1 }, Al = ["d", "fill", "stroke"], zl = { key: 2 }, $l = ["d", "fill", "stroke"], Il = ["x", "y", "font-size", "fill"], Nl = ["x", "y", "width", "height", "fill"], Fl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Pl = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Dl = ["onClick"], Ol = { key: 0 }, Tl = { key: 1 }, El = {
|
|
19
20
|
key: 9,
|
|
20
21
|
ref: "source",
|
|
21
22
|
dir: "auto"
|
|
22
|
-
},
|
|
23
|
+
}, Hl = { key: 0 }, Vl = { key: 1 }, Ml = {
|
|
23
24
|
__name: "vue-ui-donut-evolution",
|
|
24
25
|
props: {
|
|
25
26
|
config: {
|
|
@@ -36,8 +37,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
emits: ["selectLegend"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
40
|
+
setup(Qe, { expose: Ze, emit: et }) {
|
|
41
|
+
const tt = T(() => import("./vue-ui-accordion-CVnA550V.js")), lt = T(() => import("./BaseDraggableDialog-ChCkcmj_.js")), at = T(() => import("./DataTable-D0VYDhfx.js")), ot = T(() => import("./PackageVersion-5TR4ocqp.js")), ut = T(() => import("./PenAndPaper-D6AqipIO.js")), nt = T(() => import("./vue-ui-skeleton-DJPjyNYn.js")), st = T(() => import("./UserOptions-Dd34lEKb.js")), rt = T(() => import("./vue-ui-donut-CKa7nFjt.js")), { vue_ui_donut_evolution: it } = St(), b = Qe, Q = m(() => !!b.dataset && b.dataset.length), y = h({
|
|
41
42
|
start: 0,
|
|
42
43
|
end: Math.max(...b.dataset.map((t) => t.values.length))
|
|
43
44
|
});
|
|
@@ -46,64 +47,64 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
46
47
|
}
|
|
47
48
|
const H = h(null);
|
|
48
49
|
async function me() {
|
|
49
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && H.value ? (e.value.style.chart.zoom.startIndex !== null && (await
|
|
50
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && H.value ? (e.value.style.chart.zoom.startIndex !== null && (await J(), await J(), H.value && H.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await J(), await J(), H.value && H.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
|
|
50
51
|
start: 0,
|
|
51
52
|
end: O.value
|
|
52
53
|
}, xe.value += 1);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
return t >
|
|
55
|
+
function ct(t) {
|
|
56
|
+
const a = O.value;
|
|
57
|
+
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
Ct(() => {
|
|
59
60
|
be();
|
|
60
61
|
});
|
|
61
62
|
function be() {
|
|
62
|
-
|
|
63
|
+
Lt(b.dataset) ? le({
|
|
63
64
|
componentName: "VueUiDonutEvolution",
|
|
64
65
|
type: "dataset"
|
|
65
|
-
}) : b.dataset.length && b.dataset.forEach((t,
|
|
66
|
-
|
|
66
|
+
}) : b.dataset.length && b.dataset.forEach((t, a) => {
|
|
67
|
+
At({
|
|
67
68
|
datasetObject: t,
|
|
68
69
|
requiredAttributes: ["name", "values"]
|
|
69
70
|
}).forEach((l) => {
|
|
70
|
-
|
|
71
|
+
le({
|
|
71
72
|
componentName: "VueUiDonutEvolution",
|
|
72
73
|
type: "datasetSerieAttribute",
|
|
73
74
|
property: l,
|
|
74
|
-
index:
|
|
75
|
+
index: a
|
|
75
76
|
});
|
|
76
77
|
});
|
|
77
78
|
}), me();
|
|
78
79
|
}
|
|
79
|
-
const V = h(
|
|
80
|
+
const V = h(We()), k = h([]), g = h(null), Z = h(null), ue = h(!1), E = h(null), X = h(null), vt = h(null), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = h(0), we = et, e = m({
|
|
80
81
|
get: () => ze(),
|
|
81
82
|
set: (t) => t
|
|
82
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } =
|
|
83
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Le } = Bt({ config: e.value }), { svgRef: Ae } = Mt({ config: e.value.style.chart.title });
|
|
83
84
|
function ze() {
|
|
84
|
-
const t =
|
|
85
|
+
const t = Ke({
|
|
85
86
|
userConfig: b.config,
|
|
86
|
-
defaultConfig:
|
|
87
|
+
defaultConfig: it
|
|
87
88
|
});
|
|
88
|
-
let
|
|
89
|
-
return t.theme ?
|
|
90
|
-
...
|
|
91
|
-
userConfig:
|
|
89
|
+
let a = {};
|
|
90
|
+
return t.theme ? a = {
|
|
91
|
+
...Ke({
|
|
92
|
+
userConfig: $t.vue_ui_donut_evolution[t.theme] || b.config,
|
|
92
93
|
defaultConfig: t
|
|
93
94
|
}),
|
|
94
|
-
customPalette:
|
|
95
|
-
} :
|
|
95
|
+
customPalette: zt[t.theme] || ae
|
|
96
|
+
} : a = t, b.config && je(b.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, b.config && je(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
e.value = ze(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1,
|
|
99
|
-
}, { deep: !0 }),
|
|
98
|
+
Ge(() => b.config, (t) => {
|
|
99
|
+
e.value = ze(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1, G.value.showTable = e.value.table.show;
|
|
100
|
+
}, { deep: !0 }), Ge(() => b.dataset, (t) => {
|
|
100
101
|
fe();
|
|
101
102
|
}, { deep: !0 });
|
|
102
|
-
const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } =
|
|
103
|
+
const { isPrinting: $e, isImaging: Ie, generatePdf: Ne, generateImage: Fe } = Rt({
|
|
103
104
|
elementId: V.value,
|
|
104
105
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
105
106
|
options: e.value.userOptions.print
|
|
106
|
-
}),
|
|
107
|
+
}), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = m(() => It(e.value.customPalette)), G = h({
|
|
107
108
|
showTable: e.value.table.show
|
|
108
109
|
}), i = m(() => ({
|
|
109
110
|
top: e.value.style.chart.layout.padding.top,
|
|
@@ -111,37 +112,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
111
112
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
112
113
|
left: e.value.style.chart.layout.padding.left
|
|
113
114
|
})), v = m(() => {
|
|
114
|
-
const t = e.value.style.chart.layout.height,
|
|
115
|
+
const t = e.value.style.chart.layout.height, a = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = a - i.value.left - i.value.right;
|
|
115
116
|
return {
|
|
116
117
|
absoluteHeight: t,
|
|
117
|
-
absoluteWidth:
|
|
118
|
+
absoluteWidth: a,
|
|
118
119
|
centerX: i.value.left + s / 2,
|
|
119
120
|
centerY: i.value.top + l / 2,
|
|
120
121
|
height: l,
|
|
121
122
|
width: s
|
|
122
123
|
};
|
|
123
|
-
}), D = m(() => (b.dataset.forEach((t,
|
|
124
|
-
[null, void 0].includes(t.name) &&
|
|
124
|
+
}), D = m(() => (b.dataset.forEach((t, a) => {
|
|
125
|
+
[null, void 0].includes(t.name) && le({
|
|
125
126
|
componentName: "VueUiDonutEvolution",
|
|
126
127
|
type: "datasetSerieAttribute",
|
|
127
128
|
property: "name",
|
|
128
|
-
index:
|
|
129
|
-
}), [null, void 0].includes(t.values) &&
|
|
129
|
+
index: a
|
|
130
|
+
}), [null, void 0].includes(t.values) && le({
|
|
130
131
|
componentName: "VueUiDonutEvolution",
|
|
131
132
|
type: "datasetSerieAttribute",
|
|
132
133
|
property: "values",
|
|
133
|
-
index:
|
|
134
|
+
index: a
|
|
134
135
|
});
|
|
135
|
-
}), b.dataset.map((t,
|
|
136
|
+
}), b.dataset.map((t, a) => ({
|
|
136
137
|
...t,
|
|
137
|
-
values:
|
|
138
|
-
color: he(t.color) ||
|
|
138
|
+
values: Nt(t.values),
|
|
139
|
+
color: he(t.color) || ht.value[a] || ae[a] || ae[a % ae.length],
|
|
139
140
|
length: (t.values || []).length,
|
|
140
|
-
uid:
|
|
141
|
-
})))),
|
|
141
|
+
uid: We()
|
|
142
|
+
})))), W = m(() => D.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
|
|
142
143
|
...t,
|
|
143
|
-
values: t.values.filter((
|
|
144
|
-
}))), O = m(() => Math.max(...
|
|
144
|
+
values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
|
|
145
|
+
}))), O = m(() => Math.max(...W.value.map((t) => t.length))), L = m(() => Ut({
|
|
145
146
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
146
147
|
maxDatapoints: O.value,
|
|
147
148
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -150,7 +151,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
150
151
|
})), p = m(() => v.value.width / (y.value.end - y.value.start)), C = m(() => {
|
|
151
152
|
const t = [];
|
|
152
153
|
for (let u = 0; u < y.value.end - y.value.start; u += 1) {
|
|
153
|
-
const f =
|
|
154
|
+
const f = W.value.map((N) => N.values[u] ?? null), d = f.filter((N) => [void 0, null].includes(N)).length === f.length, _ = f.reduce((N, A) => N + A, 0), ve = f.map((N) => N / _), B = i.value.left + p.value * u + p.value / 2;
|
|
154
155
|
t.push({
|
|
155
156
|
index: u,
|
|
156
157
|
percentages: ve,
|
|
@@ -159,9 +160,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
159
160
|
x: B
|
|
160
161
|
});
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
+
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
163
164
|
return t.map((u, f) => {
|
|
164
|
-
const d = p.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, B = t.length > 4 ? d * 2 : d * 2 > p.value / 2 * 0.7 ? p.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal /
|
|
165
|
+
const d = p.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, B = t.length > 4 ? d * 2 : d * 2 > p.value / 2 * 0.7 ? p.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / Ye(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
165
166
|
return {
|
|
166
167
|
...u,
|
|
167
168
|
y: N,
|
|
@@ -169,21 +170,21 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
169
170
|
activeRadius: ve,
|
|
170
171
|
hoverRadius: B,
|
|
171
172
|
donut: ye({
|
|
172
|
-
series:
|
|
173
|
+
series: W.value.map((A, Xe) => ({
|
|
173
174
|
color: A.color,
|
|
174
175
|
name: A.name,
|
|
175
176
|
value: A.values[f] ?? 0
|
|
176
177
|
}))
|
|
177
178
|
}, u.x, N, _, _, 1.99999, 2, 1, 360, 105.25, _ / 2),
|
|
178
179
|
donutHover: ye({
|
|
179
|
-
series:
|
|
180
|
+
series: W.value.map((A, Xe) => ({
|
|
180
181
|
color: A.color,
|
|
181
182
|
name: A.name,
|
|
182
183
|
value: A.values[f] ?? 0
|
|
183
184
|
}))
|
|
184
185
|
}, u.x, N, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
|
|
185
186
|
donutFocus: ye({
|
|
186
|
-
series:
|
|
187
|
+
series: W.value.map((A, Xe) => ({
|
|
187
188
|
color: A.color,
|
|
188
189
|
name: A.name,
|
|
189
190
|
value: A.values[f] ?? 0
|
|
@@ -192,17 +193,17 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
192
193
|
};
|
|
193
194
|
});
|
|
194
195
|
});
|
|
195
|
-
function Pe(t,
|
|
196
|
+
function Pe(t, a, l) {
|
|
196
197
|
return ge(
|
|
197
198
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
198
199
|
t,
|
|
199
|
-
|
|
200
|
+
oe({
|
|
200
201
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
201
202
|
v: t,
|
|
202
203
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
203
204
|
r: e.value.style.chart.layout.dataLabels.rounding
|
|
204
205
|
}),
|
|
205
|
-
{ datapoint:
|
|
206
|
+
{ datapoint: a, index: l }
|
|
206
207
|
);
|
|
207
208
|
}
|
|
208
209
|
const se = m(() => ({
|
|
@@ -210,40 +211,40 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
210
211
|
min: 0
|
|
211
212
|
})), M = m(() => {
|
|
212
213
|
const t = C.value.length === 1 ? se.value.max * 2 : se.value.max;
|
|
213
|
-
return
|
|
214
|
+
return Ye(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
214
215
|
});
|
|
215
|
-
function
|
|
216
|
+
function yt(t) {
|
|
216
217
|
return t / M.value.max;
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
-
y: v.value.absoluteHeight - i.value.bottom - v.value.height *
|
|
219
|
+
const gt = m(() => M.value.ticks.map((t) => ({
|
|
220
|
+
y: v.value.absoluteHeight - i.value.bottom - v.value.height * yt(t),
|
|
220
221
|
value: t
|
|
221
222
|
})));
|
|
222
|
-
function
|
|
223
|
-
return isNaN(t.value /
|
|
223
|
+
function ft(t, a) {
|
|
224
|
+
return isNaN(t.value / Je(a, "value")) ? 0 : (t.value / Je(a, "value") * 100).toFixed(0) + "%";
|
|
224
225
|
}
|
|
225
226
|
function De() {
|
|
226
|
-
g.value = null,
|
|
227
|
+
g.value = null, Z.value = null;
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
g.value = t.index,
|
|
229
|
+
function mt(t) {
|
|
230
|
+
g.value = t.index, Z.value = t;
|
|
230
231
|
}
|
|
231
|
-
const
|
|
232
|
-
function Oe(t,
|
|
233
|
-
!t.subtotal || !e.value.style.chart.dialog.show || (
|
|
232
|
+
const j = h(null);
|
|
233
|
+
function Oe(t, a) {
|
|
234
|
+
!t.subtotal || !e.value.style.chart.dialog.show || (Z.value = null, g.value = null, ue.value = !0, E.value = t, xt(t), [null, void 0].includes(a) || (j.value = a));
|
|
234
235
|
}
|
|
235
|
-
const Te = m(() => D.value.map((t,
|
|
236
|
+
const Te = m(() => D.value.map((t, a) => ({
|
|
236
237
|
name: t.name,
|
|
237
238
|
value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
|
|
238
239
|
shape: "circle",
|
|
239
240
|
uid: t.uid,
|
|
240
241
|
color: t.color
|
|
241
|
-
})).sort((t,
|
|
242
|
+
})).sort((t, a) => a.value - t.value).map((t) => ({
|
|
242
243
|
...t,
|
|
243
244
|
opacity: k.value.includes(t.uid) ? 0.5 : 1,
|
|
244
245
|
segregate: () => re(t.uid),
|
|
245
246
|
isSegregated: k.value.includes(t.uid)
|
|
246
|
-
}))), Ee = m(() => C.value.map((t) => t.subtotal).reduce((t,
|
|
247
|
+
}))), Ee = m(() => C.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), bt = m(() => ({
|
|
247
248
|
cy: "donut-div-legend",
|
|
248
249
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
250
|
color: e.value.style.chart.legend.color,
|
|
@@ -253,22 +254,22 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
253
254
|
}));
|
|
254
255
|
function re(t) {
|
|
255
256
|
if (k.value.includes(t))
|
|
256
|
-
k.value = k.value.filter((
|
|
257
|
+
k.value = k.value.filter((a) => a !== t), we("selectLegend", null);
|
|
257
258
|
else {
|
|
258
259
|
if (k.value.length === D.value.length - 1) return;
|
|
259
|
-
k.value.push(t), we("selectLegend", D.value.find((
|
|
260
|
+
k.value.push(t), we("selectLegend", D.value.find((a) => a.uid === t));
|
|
260
261
|
}
|
|
261
|
-
E.value && Oe(C.value.find((
|
|
262
|
+
E.value && Oe(C.value.find((a, l) => l === j.value));
|
|
262
263
|
}
|
|
263
264
|
const R = m(() => {
|
|
264
265
|
const t = [""].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => ({
|
|
265
266
|
name: u.name,
|
|
266
267
|
color: u.color
|
|
267
268
|
}))).concat(["Σ"]);
|
|
268
|
-
let
|
|
269
|
+
let a = [];
|
|
269
270
|
for (let u = 0; u < O.value; u += 1) {
|
|
270
271
|
const f = D.value.filter((d) => !k.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, _) => d + _, 0);
|
|
271
|
-
|
|
272
|
+
a.push([L[u] ? L[u].text : "-"].concat(D.value.filter((d) => !k.value.includes(d.uid)).map((d) => ({
|
|
272
273
|
value: d.values[u] ?? 0,
|
|
273
274
|
percentage: d.values[u] ? d.values[u] / f * 100 : 0
|
|
274
275
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -288,80 +289,87 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
288
289
|
}, s = [
|
|
289
290
|
e.value.table.columnNames.period
|
|
290
291
|
].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
291
|
-
return { head: t, body:
|
|
292
|
+
return { head: t, body: a, config: l, colNames: s };
|
|
292
293
|
});
|
|
293
|
-
function
|
|
294
|
+
function pt() {
|
|
294
295
|
return D.value;
|
|
295
296
|
}
|
|
296
297
|
function He(t = null) {
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
t ? t(f) :
|
|
298
|
+
J(() => {
|
|
299
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...R.value.head.map((d) => d.name ?? d)], s = [...R.value.body.map((d) => d.map((_) => _.value ?? _))], u = a.concat([l]).concat(s), f = Et(u);
|
|
300
|
+
t ? t(f) : Ht({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
300
301
|
});
|
|
301
302
|
}
|
|
302
303
|
const U = h(!1);
|
|
303
|
-
function
|
|
304
|
+
function Ve(t) {
|
|
304
305
|
U.value = t, pe.value += 1;
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
-
|
|
307
|
+
function Me() {
|
|
308
|
+
G.value.showTable = !G.value.showTable;
|
|
308
309
|
}
|
|
309
|
-
const
|
|
310
|
+
const ee = h(!1);
|
|
310
311
|
function ie() {
|
|
311
|
-
|
|
312
|
+
ee.value = !ee.value;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function Re(t) {
|
|
314
315
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const Ue = h([]), Be = h({}), ce = h(null);
|
|
317
318
|
function xt(t) {
|
|
318
|
-
|
|
319
|
-
name:
|
|
320
|
-
values: [
|
|
321
|
-
color:
|
|
322
|
-
})),
|
|
319
|
+
Ue.value = t.donut.map((a) => ({
|
|
320
|
+
name: a.name,
|
|
321
|
+
values: [a.value],
|
|
322
|
+
color: a.color
|
|
323
|
+
})), Be.value = Vt({
|
|
323
324
|
...e.value.style.chart.dialog.donutChart,
|
|
324
325
|
responsive: !0,
|
|
325
326
|
theme: e.value.theme
|
|
326
327
|
}), ce.value && ce.value.open();
|
|
327
328
|
}
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
async function kt({ scale: t = 2 } = {}) {
|
|
330
|
+
if (!X.value) return;
|
|
331
|
+
const { imageUri: a, base64: l } = await jt({ domElement: X.value, base64: !0, img: !0, scale: t });
|
|
332
|
+
return { imageUri: a, base64: l };
|
|
333
|
+
}
|
|
334
|
+
return Ze({
|
|
335
|
+
getData: pt,
|
|
336
|
+
getImage: kt,
|
|
330
337
|
generatePdf: Ne,
|
|
331
338
|
generateCsv: He,
|
|
332
339
|
generateImage: Fe,
|
|
333
|
-
toggleTable:
|
|
334
|
-
toggleAnnotator: ie
|
|
335
|
-
|
|
340
|
+
toggleTable: Me,
|
|
341
|
+
toggleAnnotator: ie,
|
|
342
|
+
toggleFullscreen: Ve
|
|
343
|
+
}), (t, a) => (o(), n("div", {
|
|
336
344
|
ref_key: "donutEvolutionChart",
|
|
337
|
-
ref:
|
|
345
|
+
ref: X,
|
|
338
346
|
class: P(`vue-ui-donut-evolution ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
339
|
-
style:
|
|
347
|
+
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
340
348
|
id: V.value,
|
|
341
|
-
onMouseenter:
|
|
342
|
-
onMouseleave:
|
|
349
|
+
onMouseenter: a[5] || (a[5] = () => r(Se)(!0)),
|
|
350
|
+
onMouseleave: a[6] || (a[6] = () => r(Se)(!1))
|
|
343
351
|
}, [
|
|
344
|
-
e.value.userOptions.buttons.annotator ? (
|
|
352
|
+
e.value.userOptions.buttons.annotator ? (o(), F(r(ut), {
|
|
345
353
|
key: 0,
|
|
346
354
|
svgRef: r(Ae),
|
|
347
355
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
356
|
color: e.value.style.chart.color,
|
|
349
|
-
active:
|
|
357
|
+
active: ee.value,
|
|
350
358
|
onClose: ie
|
|
351
359
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
352
|
-
|
|
360
|
+
dt.value ? (o(), n("div", {
|
|
353
361
|
key: 1,
|
|
354
362
|
ref_key: "noTitle",
|
|
355
|
-
ref:
|
|
363
|
+
ref: vt,
|
|
356
364
|
class: "vue-data-ui-no-title-space",
|
|
357
365
|
style: "height:36px; width: 100%;background:transparent"
|
|
358
366
|
}, null, 512)) : c("", !0),
|
|
359
|
-
e.value.style.chart.title.text ? (
|
|
367
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
360
368
|
key: 2,
|
|
361
369
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
362
370
|
onMouseleave: De
|
|
363
371
|
}, [
|
|
364
|
-
(
|
|
372
|
+
(o(), F(Wt, {
|
|
365
373
|
key: `title_${ke.value}`,
|
|
366
374
|
config: {
|
|
367
375
|
title: {
|
|
@@ -375,7 +383,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
375
383
|
}
|
|
376
384
|
}, null, 8, ["config"]))
|
|
377
385
|
], 32)) : c("", !0),
|
|
378
|
-
e.value.userOptions.show &&
|
|
386
|
+
e.value.userOptions.show && Q.value && (r(Le) || r(ne)) ? (o(), F(r(st), {
|
|
379
387
|
ref: "details",
|
|
380
388
|
key: `user_options_${pe.value}`,
|
|
381
389
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -390,26 +398,26 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
390
398
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
391
399
|
isFullscreen: U.value,
|
|
392
400
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
393
|
-
chartElement:
|
|
401
|
+
chartElement: X.value,
|
|
394
402
|
position: e.value.userOptions.position,
|
|
395
403
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
396
|
-
isAnnotation:
|
|
404
|
+
isAnnotation: ee.value,
|
|
397
405
|
callbacks: e.value.userOptions.callbacks,
|
|
398
406
|
printScale: e.value.userOptions.print.scale,
|
|
399
|
-
onToggleFullscreen:
|
|
407
|
+
onToggleFullscreen: Ve,
|
|
400
408
|
onGeneratePdf: r(Ne),
|
|
401
409
|
onGenerateCsv: He,
|
|
402
410
|
onGenerateImage: r(Fe),
|
|
403
|
-
onToggleTable:
|
|
411
|
+
onToggleTable: Me,
|
|
404
412
|
onToggleAnnotator: ie,
|
|
405
|
-
style:
|
|
413
|
+
style: te({
|
|
406
414
|
visibility: r(Le) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
407
415
|
})
|
|
408
|
-
},
|
|
416
|
+
}, _t({ _: 2 }, [
|
|
409
417
|
t.$slots.menuIcon ? {
|
|
410
418
|
name: "menuIcon",
|
|
411
419
|
fn: w(({ isOpen: l, color: s }) => [
|
|
412
|
-
z(t.$slots, "menuIcon",
|
|
420
|
+
z(t.$slots, "menuIcon", Y(q({ isOpen: l, color: s })), void 0, !0)
|
|
413
421
|
]),
|
|
414
422
|
key: "0"
|
|
415
423
|
} : void 0,
|
|
@@ -444,29 +452,29 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
444
452
|
t.$slots.optionFullscreen ? {
|
|
445
453
|
name: "optionFullscreen",
|
|
446
454
|
fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
447
|
-
z(t.$slots, "optionFullscreen",
|
|
455
|
+
z(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
448
456
|
]),
|
|
449
457
|
key: "5"
|
|
450
458
|
} : void 0,
|
|
451
459
|
t.$slots.optionAnnotator ? {
|
|
452
460
|
name: "optionAnnotator",
|
|
453
461
|
fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
454
|
-
z(t.$slots, "optionAnnotator",
|
|
462
|
+
z(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
455
463
|
]),
|
|
456
464
|
key: "6"
|
|
457
465
|
} : void 0
|
|
458
466
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
459
|
-
|
|
467
|
+
Q.value ? (o(), n("svg", {
|
|
460
468
|
key: 4,
|
|
461
469
|
ref_key: "svgRef",
|
|
462
470
|
ref: Ae,
|
|
463
|
-
xmlns: r(
|
|
471
|
+
xmlns: r(Ft),
|
|
464
472
|
class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
465
473
|
viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
|
|
466
|
-
style:
|
|
474
|
+
style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
467
475
|
}, [
|
|
468
|
-
|
|
469
|
-
t.$slots["chart-background"] ? (
|
|
476
|
+
wt(r(ot)),
|
|
477
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
470
478
|
key: 0,
|
|
471
479
|
x: i.value.left,
|
|
472
480
|
y: i.value.top,
|
|
@@ -477,7 +485,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
477
485
|
}
|
|
478
486
|
}, [
|
|
479
487
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
480
|
-
], 8,
|
|
488
|
+
], 8, Kt)) : c("", !0),
|
|
481
489
|
S("defs", null, [
|
|
482
490
|
S("linearGradient", {
|
|
483
491
|
id: `hover_${V.value}`,
|
|
@@ -488,31 +496,31 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
488
496
|
}, [
|
|
489
497
|
S("stop", {
|
|
490
498
|
offset: "0%",
|
|
491
|
-
"stop-color": r(
|
|
492
|
-
}, null, 8,
|
|
499
|
+
"stop-color": r(K)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
500
|
+
}, null, 8, Zt),
|
|
493
501
|
S("stop", {
|
|
494
502
|
offset: "100%",
|
|
495
|
-
"stop-color": r(
|
|
496
|
-
}, null, 8,
|
|
497
|
-
], 8,
|
|
503
|
+
"stop-color": r(K)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
504
|
+
}, null, 8, el)
|
|
505
|
+
], 8, Qt),
|
|
498
506
|
S("radialGradient", {
|
|
499
507
|
id: `focus_${V.value}`
|
|
500
508
|
}, [
|
|
501
509
|
S("stop", {
|
|
502
510
|
offset: "0%",
|
|
503
|
-
"stop-color": r(
|
|
504
|
-
}, null, 8,
|
|
511
|
+
"stop-color": r(K)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
512
|
+
}, null, 8, ll),
|
|
505
513
|
S("stop", {
|
|
506
514
|
offset: "77%",
|
|
507
|
-
"stop-color": r(
|
|
508
|
-
}, null, 8,
|
|
515
|
+
"stop-color": r(K)("#FFFFFF", 30)
|
|
516
|
+
}, null, 8, al),
|
|
509
517
|
S("stop", {
|
|
510
518
|
offset: "100%",
|
|
511
|
-
"stop-color": r(
|
|
512
|
-
}, null, 8,
|
|
513
|
-
], 8,
|
|
519
|
+
"stop-color": r(K)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
520
|
+
}, null, 8, ol)
|
|
521
|
+
], 8, tl)
|
|
514
522
|
]),
|
|
515
|
-
e.value.style.chart.layout.grid.show ? (
|
|
523
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", ul, [
|
|
516
524
|
S("line", {
|
|
517
525
|
x1: i.value.left,
|
|
518
526
|
x2: i.value.left,
|
|
@@ -521,7 +529,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
521
529
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
522
530
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
523
531
|
"stroke-linecap": "round"
|
|
524
|
-
}, null, 8,
|
|
532
|
+
}, null, 8, nl),
|
|
525
533
|
S("line", {
|
|
526
534
|
x1: i.value.left,
|
|
527
535
|
x2: v.value.absoluteWidth - i.value.right,
|
|
@@ -530,9 +538,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
530
538
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
531
539
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
532
540
|
"stroke-linecap": "round"
|
|
533
|
-
}, null, 8,
|
|
534
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
535
|
-
(
|
|
541
|
+
}, null, 8, sl),
|
|
542
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", rl, [
|
|
543
|
+
(o(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (o(), n("line", {
|
|
536
544
|
x1: i.value.left + (s + 1) * p.value,
|
|
537
545
|
x2: i.value.left + (s + 1) * p.value,
|
|
538
546
|
y1: i.value.top,
|
|
@@ -540,15 +548,15 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
540
548
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
541
549
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
542
550
|
"stroke-linecap": "round"
|
|
543
|
-
}, null, 8,
|
|
551
|
+
}, null, 8, il))), 256))
|
|
544
552
|
])) : c("", !0)
|
|
545
553
|
])) : c("", !0),
|
|
546
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
554
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
547
555
|
key: 2,
|
|
548
556
|
class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
549
557
|
}, [
|
|
550
|
-
(
|
|
551
|
-
l.value >= M.value.min && l.value <= M.value.max ? (
|
|
558
|
+
(o(!0), n($, null, I(gt.value, (l, s) => (o(), n("g", null, [
|
|
559
|
+
l.value >= M.value.min && l.value <= M.value.max ? (o(), n("line", {
|
|
552
560
|
key: 0,
|
|
553
561
|
x1: i.value.left,
|
|
554
562
|
x2: i.value.left - 5,
|
|
@@ -556,8 +564,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
556
564
|
y2: l.y,
|
|
557
565
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
558
566
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
559
|
-
}, null, 8,
|
|
560
|
-
l.value >= M.value.min && l.value <= M.value.max ? (
|
|
567
|
+
}, null, 8, cl)) : c("", !0),
|
|
568
|
+
l.value >= M.value.min && l.value <= M.value.max ? (o(), n("text", {
|
|
561
569
|
key: 1,
|
|
562
570
|
x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
563
571
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -565,48 +573,48 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
565
573
|
"text-anchor": "end",
|
|
566
574
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
567
575
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
568
|
-
}, x(r(
|
|
576
|
+
}, x(r(Pt)(l.value) ? r(ge)(
|
|
569
577
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
570
578
|
l.value,
|
|
571
|
-
r(
|
|
579
|
+
r(oe)({
|
|
572
580
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
573
581
|
v: l.value,
|
|
574
582
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
575
583
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
576
584
|
}),
|
|
577
585
|
{ datapoint: l, seriesIndex: s }
|
|
578
|
-
) : ""), 9,
|
|
586
|
+
) : ""), 9, vl)) : c("", !0)
|
|
579
587
|
]))), 256))
|
|
580
588
|
], 2)) : c("", !0),
|
|
581
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
582
|
-
(
|
|
583
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (
|
|
589
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", dl, [
|
|
590
|
+
(o(!0), n($, null, I(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
|
|
591
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (o(), n("g", hl, [
|
|
584
592
|
String(L.value[s].text).includes(`
|
|
585
|
-
`) ? (
|
|
593
|
+
`) ? (o(), n("text", {
|
|
586
594
|
key: 1,
|
|
587
595
|
"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",
|
|
588
596
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
589
597
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
590
598
|
transform: `translate(${i.value.left + p.value * s + p.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
591
|
-
innerHTML: r(
|
|
599
|
+
innerHTML: r(Dt)({
|
|
592
600
|
content: String(L.value[s].text),
|
|
593
601
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
594
602
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
595
603
|
x: 0,
|
|
596
604
|
y: 0
|
|
597
605
|
})
|
|
598
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, gl)) : (o(), n("text", {
|
|
599
607
|
key: 0,
|
|
600
608
|
"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",
|
|
601
609
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
602
610
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
603
611
|
transform: `translate(${i.value.left + p.value * s + p.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
604
|
-
}, x(L.value[s].text), 9,
|
|
612
|
+
}, x(L.value[s].text), 9, yl))
|
|
605
613
|
])) : c("", !0)
|
|
606
614
|
]))), 256))
|
|
607
615
|
])) : c("", !0),
|
|
608
|
-
(
|
|
609
|
-
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (
|
|
616
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", null, [
|
|
617
|
+
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
610
618
|
key: 0,
|
|
611
619
|
class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
612
620
|
x1: l.x,
|
|
@@ -617,44 +625,44 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
617
625
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
618
626
|
"stroke-linecap": "round",
|
|
619
627
|
"stroke-linejoin": "round"
|
|
620
|
-
}, null, 10,
|
|
621
|
-
l.subtotal !== null ? (
|
|
622
|
-
l.subtotal ? (
|
|
628
|
+
}, null, 10, fl)) : c("", !0),
|
|
629
|
+
l.subtotal !== null ? (o(), n("g", ml, [
|
|
630
|
+
l.subtotal ? (o(), n("circle", {
|
|
623
631
|
key: 0,
|
|
624
632
|
cx: l.x,
|
|
625
633
|
cy: l.y,
|
|
626
634
|
r: l.activeRadius,
|
|
627
635
|
fill: e.value.style.chart.backgroundColor
|
|
628
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, bl)) : c("", !0)
|
|
629
637
|
])) : c("", !0)
|
|
630
638
|
]))), 256)),
|
|
631
|
-
(
|
|
639
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
|
|
632
640
|
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
633
641
|
}, [
|
|
634
|
-
l.subtotal ? (
|
|
635
|
-
g.value !== null && g.value === s ? (
|
|
636
|
-
(
|
|
637
|
-
|
|
642
|
+
l.subtotal ? (o(), n("g", pl, [
|
|
643
|
+
g.value !== null && g.value === s ? (o(), n("g", xl, [
|
|
644
|
+
(o(!0), n($, null, I(l.donutHover, (u) => (o(), n("g", null, [
|
|
645
|
+
Re(u) ? (o(), n("path", {
|
|
638
646
|
key: 0,
|
|
639
|
-
d: r(
|
|
647
|
+
d: r(Ot)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
640
648
|
stroke: u.color,
|
|
641
649
|
"stroke-width": "1",
|
|
642
650
|
"stroke-linecap": "round",
|
|
643
651
|
"stroke-linejoin": "round",
|
|
644
652
|
fill: "none"
|
|
645
|
-
}, null, 8,
|
|
653
|
+
}, null, 8, kl)) : c("", !0)
|
|
646
654
|
]))), 256)),
|
|
647
|
-
(
|
|
648
|
-
|
|
655
|
+
(o(!0), n($, null, I(l.donutHover, (u, f) => (o(), n("g", null, [
|
|
656
|
+
Re(u) ? (o(), n("text", {
|
|
649
657
|
key: 0,
|
|
650
658
|
"data-cy-hover-label": "",
|
|
651
|
-
"text-anchor": r(
|
|
652
|
-
x: r(
|
|
653
|
-
y: r(
|
|
659
|
+
"text-anchor": r(qe)(u, !0, 0).anchor,
|
|
660
|
+
x: r(qe)(u, !0, 9).x,
|
|
661
|
+
y: r(Tt)(u, 14, 10),
|
|
654
662
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
655
663
|
"font-size": 8,
|
|
656
664
|
"font-weight": "bold"
|
|
657
|
-
}, x(u.name) + ": " + x(
|
|
665
|
+
}, x(u.name) + ": " + x(ft(u, l.donut)) + " (" + x(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, Cl)) : c("", !0)
|
|
658
666
|
]))), 256)),
|
|
659
667
|
S("g", null, [
|
|
660
668
|
S("circle", {
|
|
@@ -662,42 +670,42 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
662
670
|
cy: l.y,
|
|
663
671
|
r: l.hoverRadius,
|
|
664
672
|
fill: e.value.style.chart.backgroundColor
|
|
665
|
-
}, null, 8,
|
|
673
|
+
}, null, 8, _l)
|
|
666
674
|
])
|
|
667
675
|
])) : c("", !0)
|
|
668
676
|
])) : c("", !0)
|
|
669
677
|
], 2))), 256)),
|
|
670
|
-
(
|
|
678
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
|
|
671
679
|
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
672
680
|
}, [
|
|
673
|
-
l.subtotal !== null ? (
|
|
674
|
-
l.subtotal === 0 ? (
|
|
681
|
+
l.subtotal !== null ? (o(), n("g", wl, [
|
|
682
|
+
l.subtotal === 0 ? (o(), n("circle", {
|
|
675
683
|
key: 0,
|
|
676
684
|
cx: l.x,
|
|
677
685
|
cy: l.y,
|
|
678
686
|
r: 3,
|
|
679
687
|
fill: e.value.style.chart.color
|
|
680
|
-
}, null, 8,
|
|
681
|
-
(
|
|
688
|
+
}, null, 8, Sl)) : g.value !== null && g.value === s ? (o(), n("g", Ll, [
|
|
689
|
+
(o(!0), n($, null, I(l.donutHover, (u, f) => (o(), n("path", {
|
|
682
690
|
d: u.arcSlice,
|
|
683
691
|
fill: `${u.color}`,
|
|
684
692
|
"stroke-width": 1,
|
|
685
693
|
stroke: e.value.style.chart.backgroundColor
|
|
686
|
-
}, null, 8,
|
|
687
|
-
])) : (
|
|
688
|
-
(
|
|
694
|
+
}, null, 8, Al))), 256))
|
|
695
|
+
])) : (o(), n("g", zl, [
|
|
696
|
+
(o(!0), n($, null, I(l.donut, (u, f) => (o(), n("path", {
|
|
689
697
|
d: u.arcSlice,
|
|
690
698
|
fill: `${u.color}`,
|
|
691
699
|
"stroke-width": 0.5,
|
|
692
700
|
stroke: e.value.style.chart.backgroundColor
|
|
693
|
-
}, null, 8,
|
|
701
|
+
}, null, 8, $l))), 256))
|
|
694
702
|
]))
|
|
695
703
|
])) : c("", !0)
|
|
696
704
|
], 2))), 256)),
|
|
697
|
-
(
|
|
698
|
-
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null ||
|
|
705
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("g", {
|
|
706
|
+
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ue.value && s !== E.value.index })
|
|
699
707
|
}, [
|
|
700
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
708
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
701
709
|
key: 0,
|
|
702
710
|
"text-anchor": "middle",
|
|
703
711
|
x: l.x,
|
|
@@ -705,37 +713,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
705
713
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
706
714
|
"font-weight": "bold",
|
|
707
715
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
708
|
-
}, x(Pe(l.subtotal, l, s)), 9,
|
|
716
|
+
}, x(Pe(l.subtotal, l, s)), 9, Il)) : c("", !0)
|
|
709
717
|
], 2))), 256)),
|
|
710
|
-
(
|
|
718
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("rect", {
|
|
711
719
|
x: i.value.left + s * p.value,
|
|
712
720
|
y: i.value.top,
|
|
713
721
|
width: p.value,
|
|
714
722
|
height: v.value.height,
|
|
715
|
-
fill: [g.value,
|
|
716
|
-
class: P({ "donut-hover": l.subtotal && [g.value,
|
|
723
|
+
fill: [g.value, j.value].includes(l.index) ? `url(#hover_${V.value})` : "transparent",
|
|
724
|
+
class: P({ "donut-hover": l.subtotal && [g.value, j.value].includes(l.index) }),
|
|
717
725
|
style: {
|
|
718
726
|
pointerEvents: "none"
|
|
719
727
|
}
|
|
720
|
-
}, null, 10,
|
|
721
|
-
(
|
|
728
|
+
}, null, 10, Nl))), 256)),
|
|
729
|
+
(o(!0), n($, null, I(C.value, (l, s) => (o(), n("rect", {
|
|
722
730
|
"data-cy-trap": "",
|
|
723
731
|
x: i.value.left + s * p.value,
|
|
724
732
|
y: i.value.top,
|
|
725
733
|
width: p.value,
|
|
726
734
|
height: v.value.height,
|
|
727
735
|
fill: "transparent",
|
|
728
|
-
onMouseenter: (u) =>
|
|
736
|
+
onMouseenter: (u) => mt(l),
|
|
729
737
|
onMouseleave: De,
|
|
730
738
|
onClick: (u) => Oe(l, s),
|
|
731
739
|
class: P({ "donut-hover": g.value === l.index && l.subtotal })
|
|
732
|
-
}, null, 42,
|
|
740
|
+
}, null, 42, Fl))), 256)),
|
|
733
741
|
z(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
734
|
-
], 14,
|
|
735
|
-
t.$slots.watermark ? (
|
|
736
|
-
z(t.$slots, "watermark",
|
|
742
|
+
], 14, Jt)) : c("", !0),
|
|
743
|
+
t.$slots.watermark ? (o(), n("div", Pl, [
|
|
744
|
+
z(t.$slots, "watermark", Y(q({ isPrinting: r($e) || r(Ie) })), void 0, !0)
|
|
737
745
|
])) : c("", !0),
|
|
738
|
-
|
|
746
|
+
Q.value ? c("", !0) : (o(), F(r(nt), {
|
|
739
747
|
key: 6,
|
|
740
748
|
config: {
|
|
741
749
|
type: "donutEvolution",
|
|
@@ -752,7 +760,7 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
752
760
|
}
|
|
753
761
|
}
|
|
754
762
|
}, null, 8, ["config"])),
|
|
755
|
-
O.value > 1 && e.value.style.chart.zoom.show ? (
|
|
763
|
+
O.value > 1 && e.value.style.chart.zoom.show ? (o(), F(Gt, {
|
|
756
764
|
ref_key: "slicerComponent",
|
|
757
765
|
ref: H,
|
|
758
766
|
key: `slicer_${xe.value}`,
|
|
@@ -770,9 +778,9 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
770
778
|
valueStart: y.value.start,
|
|
771
779
|
valueEnd: y.value.end,
|
|
772
780
|
start: y.value.start,
|
|
773
|
-
"onUpdate:start":
|
|
781
|
+
"onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
|
|
774
782
|
end: y.value.end,
|
|
775
|
-
"onUpdate:end":
|
|
783
|
+
"onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
|
|
776
784
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
777
785
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
778
786
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
@@ -780,25 +788,25 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
780
788
|
onReset: fe
|
|
781
789
|
}, {
|
|
782
790
|
"reset-action": w(({ reset: l }) => [
|
|
783
|
-
z(t.$slots, "reset-action",
|
|
791
|
+
z(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
|
|
784
792
|
]),
|
|
785
793
|
_: 3
|
|
786
794
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
|
|
787
|
-
e.value.style.chart.legend.show ? (
|
|
795
|
+
e.value.style.chart.legend.show ? (o(), F(Xt, {
|
|
788
796
|
key: `legend_${_e.value}`,
|
|
789
797
|
legendSet: Te.value,
|
|
790
|
-
config:
|
|
791
|
-
onClickMarker:
|
|
798
|
+
config: bt.value,
|
|
799
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
|
|
792
800
|
}, {
|
|
793
801
|
item: w(({ legend: l, index: s }) => [
|
|
794
802
|
S("div", {
|
|
795
803
|
onClick: (u) => re(l.uid),
|
|
796
|
-
style:
|
|
804
|
+
style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
|
|
797
805
|
}, [
|
|
798
806
|
de(x(l.name) + ": " + x(r(ge)(
|
|
799
807
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
800
808
|
l.value,
|
|
801
|
-
r(
|
|
809
|
+
r(oe)({
|
|
802
810
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
803
811
|
v: l.value,
|
|
804
812
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -806,24 +814,24 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
806
814
|
}),
|
|
807
815
|
{ datapoint: l, seriesIndex: s }
|
|
808
816
|
)) + " ", 1),
|
|
809
|
-
k.value.includes(l.uid) ? (
|
|
817
|
+
k.value.includes(l.uid) ? (o(), n("span", Tl, " ( - % ) ")) : (o(), n("span", Ol, " (" + x(isNaN(l.value / Ee.value) ? "-" : r(oe)({
|
|
810
818
|
v: l.value / Ee.value * 100,
|
|
811
819
|
s: "%",
|
|
812
820
|
r: e.value.style.chart.legend.roundingPercentage
|
|
813
821
|
})) + ") ", 1))
|
|
814
|
-
], 12,
|
|
822
|
+
], 12, Dl)
|
|
815
823
|
]),
|
|
816
824
|
_: 1
|
|
817
825
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
818
826
|
z(t.$slots, "legend", { legend: Te.value }, void 0, !0),
|
|
819
|
-
t.$slots.source ? (
|
|
827
|
+
t.$slots.source ? (o(), n("div", El, [
|
|
820
828
|
z(t.$slots, "source", {}, void 0, !0)
|
|
821
829
|
], 512)) : c("", !0),
|
|
822
|
-
|
|
830
|
+
Q.value ? (o(), F(r(tt), {
|
|
823
831
|
key: 10,
|
|
824
832
|
hideDetails: "",
|
|
825
833
|
config: {
|
|
826
|
-
open:
|
|
834
|
+
open: G.value.showTable,
|
|
827
835
|
maxHeight: 1e4,
|
|
828
836
|
body: {
|
|
829
837
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -836,20 +844,20 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
836
844
|
}
|
|
837
845
|
}, {
|
|
838
846
|
content: w(() => [
|
|
839
|
-
(
|
|
847
|
+
(o(), F(r(at), {
|
|
840
848
|
key: `table_${Ce.value}`,
|
|
841
849
|
colNames: R.value.colNames,
|
|
842
850
|
head: R.value.head,
|
|
843
851
|
body: R.value.body,
|
|
844
852
|
config: R.value.config,
|
|
845
853
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
846
|
-
onClose:
|
|
854
|
+
onClose: a[3] || (a[3] = (l) => G.value.showTable = !1)
|
|
847
855
|
}, {
|
|
848
856
|
th: w(({ th: l }) => [
|
|
849
857
|
de(x(l.name ?? l), 1)
|
|
850
858
|
]),
|
|
851
859
|
td: w(({ td: l }) => [
|
|
852
|
-
l.value === null ? (
|
|
860
|
+
l.value === null ? (o(), n("span", Hl, "-")) : (o(), n("b", Vl, x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + x(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
853
861
|
S("span", null, x(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
854
862
|
]),
|
|
855
863
|
_: 1
|
|
@@ -857,35 +865,35 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
857
865
|
]),
|
|
858
866
|
_: 1
|
|
859
867
|
}, 8, ["config"])) : c("", !0),
|
|
860
|
-
e.value.style.chart.dialog.show ? (
|
|
868
|
+
e.value.style.chart.dialog.show ? (o(), F(r(lt), {
|
|
861
869
|
key: 11,
|
|
862
870
|
ref_key: "dialog",
|
|
863
871
|
ref: ce,
|
|
864
|
-
onClose:
|
|
865
|
-
E.value = null,
|
|
872
|
+
onClose: a[4] || (a[4] = (l) => {
|
|
873
|
+
E.value = null, ue.value = !1, Z.value = null, g.value = null, j.value = null;
|
|
866
874
|
}),
|
|
867
875
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
868
876
|
color: e.value.style.chart.dialog.color,
|
|
869
877
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
870
878
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
871
879
|
isFullscreen: U.value,
|
|
872
|
-
fullscreenParent:
|
|
880
|
+
fullscreenParent: X.value
|
|
873
881
|
}, {
|
|
874
882
|
title: w(() => [
|
|
875
883
|
de(x(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
|
|
876
884
|
]),
|
|
877
885
|
default: w(() => [
|
|
878
|
-
E.value ? (
|
|
886
|
+
E.value ? (o(), F(r(rt), {
|
|
879
887
|
key: 0,
|
|
880
|
-
config:
|
|
881
|
-
dataset:
|
|
888
|
+
config: Be.value,
|
|
889
|
+
dataset: Ue.value
|
|
882
890
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
883
891
|
]),
|
|
884
892
|
_: 1
|
|
885
893
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
886
|
-
], 46,
|
|
894
|
+
], 46, qt));
|
|
887
895
|
}
|
|
888
|
-
},
|
|
896
|
+
}, Zl = /* @__PURE__ */ Yt(Ml, [["__scopeId", "data-v-26a2f177"]]);
|
|
889
897
|
export {
|
|
890
|
-
|
|
898
|
+
Zl as default
|
|
891
899
|
};
|