vue-data-ui 3.0.0-next.34 → 3.0.0-next.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-7o1zcGGd.js → Arrow-9U-UjNas.js} +1 -1
- package/dist/{BaseDraggableDialog-fZ1Z5U4d.js → BaseDraggableDialog-CdaQDDs0.js} +2 -2
- package/dist/{BaseIcon-Cq9SmUOT.js → BaseIcon-DB8UP3sU.js} +1 -1
- package/dist/{ColorPicker-BNmC5tPY.js → ColorPicker-Cb3SgjWM.js} +2 -2
- package/dist/{DataTable-DonNp9Tn.js → DataTable-BvgiQ2JE.js} +2 -2
- package/dist/{Legend-De_LcU2x.js → Legend-DBh56vdD.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DCCmvppN.js → NonSvgPenAndPaper-fHaJC-dl.js} +3 -3
- package/dist/{PackageVersion-F_KOshQ5.js → PackageVersion-Bhohtzrj.js} +1 -1
- package/dist/{PenAndPaper-BzsPyqiU.js → PenAndPaper-vCj1-UEY.js} +3 -3
- package/dist/{Shape-CJI8rA0G.js → Shape-D2E4CMoi.js} +1 -1
- package/dist/{Slicer-BCCGJwNV.js → Slicer-1-SaJZ80.js} +2 -2
- package/dist/{SparkTooltip-ZSo6Sdhj.js → SparkTooltip-CE4BUH-_.js} +1 -1
- package/dist/{Title-CbfJu3Bz.js → Title-8eeSFss9.js} +1 -1
- package/dist/{Tooltip-BuuVsO8D.js → Tooltip-C7HgI7vF.js} +1 -1
- package/dist/{UserOptions-32osgWD2.js → UserOptions-Cxr0ZsfM.js} +2 -2
- package/dist/{dom-to-png-B4iPnzPd.js → dom-to-png-DDW5fRWT.js} +1 -1
- package/dist/{img-Domj-5hZ.js → img-czwmJka_.js} +1 -1
- package/dist/{index-BeBasrrG.js → index-Cy_OHCLi.js} +29 -1
- package/dist/{pdf-KclgkN6e.js → pdf-BLIP6Yoc.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +34 -1
- package/dist/types/vue-data-ui.d.ts +34 -1
- package/dist/{useNestedProp-BI69cynt.js → useNestedProp-Di0uuVL6.js} +1 -1
- package/dist/{usePrinter-DpTBVYGM.js → usePrinter-B3aBnAXo.js} +2 -2
- package/dist/{vue-data-ui-DfOSI-cw.js → vue-data-ui-C8hTMkHA.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BFUcEqAl.js → vue-ui-3d-bar-BybaBB_P.js} +6 -6
- package/dist/{vue-ui-accordion-BBZQktvS.js → vue-ui-accordion-DJ7Cgx6-.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C1fCszkG.js → vue-ui-age-pyramid-DPuw31_r.js} +6 -6
- package/dist/{vue-ui-annotator-BThZoiBl.js → vue-ui-annotator-BRVlhEK2.js} +2 -2
- package/dist/{vue-ui-bullet-D0-jL6aT.js → vue-ui-bullet-4NYyyaH9.js} +7 -7
- package/dist/{vue-ui-candlestick-BKY_1NxQ.js → vue-ui-candlestick-DEYGVnYY.js} +170 -165
- package/dist/{vue-ui-carousel-table-RqYXqUym.js → vue-ui-carousel-table-DBV6s3lm.js} +4 -4
- package/dist/{vue-ui-chestnut-QLx875w4.js → vue-ui-chestnut-EngIIDHp.js} +5 -5
- package/dist/{vue-ui-chord-rUYoYkRO.js → vue-ui-chord-B0lIgdaA.js} +8 -8
- package/dist/{vue-ui-circle-pack-DX5resGr.js → vue-ui-circle-pack-D2_7Q03M.js} +6 -6
- package/dist/{vue-ui-cursor-Day-0aL1.js → vue-ui-cursor-B8W8SBMh.js} +2 -2
- package/dist/{vue-ui-dashboard-G0W4wq1U.js → vue-ui-dashboard-R18RfpNq.js} +62 -62
- package/dist/{vue-ui-digits-DFREi_Ky.js → vue-ui-digits-lDDMeEMg.js} +2 -2
- package/dist/{vue-ui-donut-BdxnEUCr.js → vue-ui-donut-C0QxZHSs.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DYeMgZMU.js → vue-ui-donut-evolution-DMuOgr00.js} +176 -176
- package/dist/{vue-ui-dumbbell-ajhNYekO.js → vue-ui-dumbbell-BoehGkow.js} +7 -7
- package/dist/{vue-ui-flow-BOq3_apj.js → vue-ui-flow-CMpJ4VNW.js} +7 -7
- package/dist/{vue-ui-funnel-1Tc-WWAK.js → vue-ui-funnel-V-ep0uRk.js} +6 -6
- package/dist/{vue-ui-galaxy-DRdIquCv.js → vue-ui-galaxy-5_UI4rRC.js} +5 -5
- package/dist/{vue-ui-gauge-B0a3J_d1.js → vue-ui-gauge-DuPPfpX8.js} +6 -6
- package/dist/{vue-ui-gizmo-5G0uR26C.js → vue-ui-gizmo-DC0_MhU8.js} +3 -3
- package/dist/{vue-ui-heatmap-BGYSmKC-.js → vue-ui-heatmap-Du7CgmK0.js} +7 -7
- package/dist/{vue-ui-history-plot-kHo6293P.js → vue-ui-history-plot-DUAojY09.js} +7 -7
- package/dist/{vue-ui-kpi-6zONwNMN.js → vue-ui-kpi-DFqD1V27.js} +3 -3
- package/dist/{vue-ui-mini-loader-XyVfmLch.js → vue-ui-mini-loader-Dhx_wzdm.js} +2 -2
- package/dist/{vue-ui-molecule-BoQKd6NP.js → vue-ui-molecule-F69F6eYS.js} +5 -5
- package/dist/{vue-ui-mood-radar-DncLIzjX.js → vue-ui-mood-radar-Bx-4k7jY.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DXMadqNK.js → vue-ui-nested-donuts-BVeoZkgI.js} +9 -9
- package/dist/{vue-ui-onion-CbtXXJHJ.js → vue-ui-onion-DHYlAXM7.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-D-zLAqYN.js → vue-ui-parallel-coordinate-plot-N5KtznHX.js} +8 -8
- package/dist/{vue-ui-quadrant-DqN9de-E.js → vue-ui-quadrant-BsQ8O9e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-fAHV8BFQ.js → vue-ui-quick-chart-Bocy5d7r.js} +6 -6
- package/dist/{vue-ui-radar-Dcr4Y35J.js → vue-ui-radar-ByUt1ys9.js} +7 -7
- package/dist/{vue-ui-rating-Y_X6wrM8.js → vue-ui-rating-C1KpOoZF.js} +2 -2
- package/dist/{vue-ui-relation-circle-CsjfP4w3.js → vue-ui-relation-circle-Bw-A49Ol.js} +6 -6
- package/dist/{vue-ui-ridgeline-COQZjWXD.js → vue-ui-ridgeline-g9JYjIcs.js} +11 -9
- package/dist/{vue-ui-rings-IWHU4YHR.js → vue-ui-rings-D4-dAblw.js} +8 -8
- package/dist/{vue-ui-scatter-zG4nPspJ.js → vue-ui-scatter-Ese_ubEo.js} +8 -8
- package/dist/{vue-ui-skeleton-BLCAe0aL.js → vue-ui-skeleton-DGCSWS6R.js} +3 -3
- package/dist/{vue-ui-smiley-CgMyaK6w.js → vue-ui-smiley-D-2kksbm.js} +2 -2
- package/dist/{vue-ui-spark-trend-Dn2iTtuB.js → vue-ui-spark-trend-x900EpiA.js} +3 -3
- package/dist/{vue-ui-sparkbar-BA_s34xX.js → vue-ui-sparkbar-t47Lq5jH.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CGoeUY4p.js → vue-ui-sparkgauge-T8iByZV1.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuSn8iJi.js → vue-ui-sparkhistogram-D_ZvA5DH.js} +4 -4
- package/dist/{vue-ui-sparkline-CYJUhGaJ.js → vue-ui-sparkline-DQExYN7j.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDQWVxNP.js → vue-ui-sparkstackbar-9ywYLwLc.js} +3 -3
- package/dist/{vue-ui-stackbar-B92-pzwh.js → vue-ui-stackbar-Cpf9GA_9.js} +406 -400
- package/dist/{vue-ui-strip-plot-BLTjzATL.js → vue-ui-strip-plot-Dd31-kf1.js} +7 -7
- package/dist/{vue-ui-table-Ba7Z_7OX.js → vue-ui-table-ChP6rjYz.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C29u3mfg.js → vue-ui-table-heatmap-sp_8-q-v.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BLR9glHo.js → vue-ui-table-sparkline-D04Usdos.js} +4 -4
- package/dist/{vue-ui-thermometer-BAm6l97t.js → vue-ui-thermometer-tp3Zjpbn.js} +6 -6
- package/dist/{vue-ui-timer-CqbbNnBk.js → vue-ui-timer-xVlYHzJH.js} +5 -5
- package/dist/{vue-ui-tiremarks-BnZr2Vrp.js → vue-ui-tiremarks-CkUbhFx0.js} +6 -6
- package/dist/{vue-ui-treemap-J8OANLCg.js → vue-ui-treemap-BpkTja9I.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DdR3STYF.js → vue-ui-vertical-bar-CQ2y_LEJ.js} +9 -9
- package/dist/{vue-ui-waffle-w5VJA7gR.js → vue-ui-waffle-BzBS5B9r.js} +8 -8
- package/dist/{vue-ui-wheel-D5yea4oH.js → vue-ui-wheel-CEiRdkDJ.js} +6 -6
- package/dist/{vue-ui-word-cloud-OugLGxgB.js → vue-ui-word-cloud-h7iNtGpT.js} +6 -6
- package/dist/{vue-ui-world-BSptBo4h.js → vue-ui-world-D6iHt4w8.js} +6 -6
- package/dist/{vue-ui-xy-DnYo2K58.js → vue-ui-xy-BtOdpKQf.js} +12 -11
- package/dist/{vue-ui-xy-canvas-Cmn0RWbG.js → vue-ui-xy-canvas-BvrKpXv1.js} +8 -8
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as
|
|
2
|
-
import { u as el, c as ht, o as yt, e as se, g as tl, A as ll, t as al, p as ne, a as ol, C as ft, b as ul, d as
|
|
1
|
+
import { defineAsyncComponent as V, ref as c, shallowRef as vt, computed as f, onMounted as jt, toRefs as qt, nextTick as Ce, watch as Le, watchEffect as Jt, onBeforeUnmount as Kt, createElementBlock as n, openBlock as u, unref as i, normalizeStyle as J, normalizeClass as N, createBlock as T, createCommentVNode as v, createElementVNode as p, createSlots as Qt, withCtx as _, renderSlot as S, normalizeProps as K, guardReactiveProps as Q, createVNode as Zt, Fragment as z, renderList as $, toDisplayString as m, createTextVNode as dt } from "vue";
|
|
2
|
+
import { u as el, c as ht, o as yt, e as se, g as tl, A as ll, t as al, p as ne, a as ol, C as ft, b as ul, d as _e, G as sl, D as gt, m as Ae, X as nl, s as Z, H as rl, i as Se, f as re, I as il, j as cl, k as vl, n as mt, q as dl, r as hl, J as bt, K as yl } from "./index-Cy_OHCLi.js";
|
|
3
3
|
import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
-
import { u as xt } from "./useNestedProp-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
4
|
+
import { u as xt } from "./useNestedProp-Di0uuVL6.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-B3aBnAXo.js";
|
|
6
6
|
import { u as ml } from "./useTimeLabels-DkzmKfZn.js";
|
|
7
7
|
import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as xl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import pl from "./Legend-
|
|
10
|
-
import { S as kl } from "./Slicer-
|
|
11
|
-
import wl from "./Title-
|
|
12
|
-
import Cl from "./img-
|
|
13
|
-
import { t as pt, u as
|
|
14
|
-
import { u as
|
|
9
|
+
import pl from "./Legend-DBh56vdD.js";
|
|
10
|
+
import { S as kl } from "./Slicer-1-SaJZ80.js";
|
|
11
|
+
import wl from "./Title-8eeSFss9.js";
|
|
12
|
+
import Cl from "./img-czwmJka_.js";
|
|
13
|
+
import { t as pt, u as Ll } from "./useResponsive-DfdjqQps.js";
|
|
14
|
+
import { u as _l, B as Al } from "./BaseScanner-DIK2NTdp.js";
|
|
15
15
|
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"], Nl = ["id"], Tl = ["stop-color"], Ol = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["stop-color"], Rl = { key: 1 }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = { key: 0 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["font-size", "fill", "transform"], Xl = ["x", "y", "font-size", "fill"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["x", "y", "font-size", "fill", "font-weight"], Yl = { key: 0 }, jl = ["text-anchor", "font-size", "fill", "transform"], ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Jl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Kl = { key: 1 }, Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = { key: 0 }, ta = ["d", "stroke"], la = ["text-anchor", "x", "y", "fill"], aa = ["cx", "cy", "r", "fill"], oa = { key: 0 }, ua = ["cx", "cy", "fill"], sa = { key: 1 }, na = ["d", "fill", "stroke"], ra = { key: 2 }, ia = ["d", "fill", "stroke"], ca = ["x", "y", "font-size", "fill"], va = ["x", "y", "width", "height", "fill"], da = ["x", "y", "width", "height", "onMouseenter", "onClick"], ha = {
|
|
16
|
+
const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"], Nl = ["id"], Tl = ["stop-color"], Ol = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], El = ["stop-color"], Rl = { key: 1 }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Hl = { key: 0 }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["font-size", "fill", "transform"], Xl = ["x", "y", "font-size", "fill"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wl = ["x", "y", "font-size", "fill", "font-weight"], Yl = { key: 0 }, jl = ["text-anchor", "font-size", "fill", "transform"], ql = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Jl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Kl = { key: 1 }, Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = { key: 0 }, ta = ["d", "stroke"], la = ["text-anchor", "x", "y", "fill"], aa = ["cx", "cy", "r", "fill"], oa = { key: 0 }, ua = ["cx", "cy", "fill"], sa = { key: 1 }, na = ["d", "fill", "stroke"], ra = { key: 2 }, ia = ["d", "fill", "stroke"], ca = ["x", "y", "font-size", "fill"], va = ["x", "y", "width", "height", "fill"], da = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ha = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, ya = ["onClick"], fa = { key: 0 }, ga = { key: 1 }, ma = {
|
|
@@ -34,11 +34,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(kt, { expose: wt, emit: Ct }) {
|
|
37
|
-
const
|
|
37
|
+
const Lt = V(() => import("./vue-ui-accordion-DJ7Cgx6-.js")), _t = V(() => import("./BaseDraggableDialog-CdaQDDs0.js")), At = V(() => import("./DataTable-BvgiQ2JE.js")), St = V(() => import("./PackageVersion-Bhohtzrj.js")), zt = V(() => import("./PenAndPaper-vCj1-UEY.js")), $t = V(() => import("./UserOptions-Cxr0ZsfM.js")), It = V(() => import("./vue-ui-donut-C0QxZHSs.js")), { vue_ui_donut_evolution: Nt } = el(), b = kt, M = c(ht()), w = c([]), g = c(null), ee = c(null), ie = c(!1), E = c(null), P = c(null), Tt = c(null), ze = c(0), $e = c(0), Ie = c(0), Ne = c(0), Te = c(0), ce = c(null), te = c(null), ve = c(null), de = c(null), Oe = c(null), Pe = c(null), De = c(null), Fe = c(null), Ee = c(null), he = c(!1), Y = vt(null), le = vt(null), Re = c(null), Ve = Ct, Me = f(() => !!b.dataset && b.dataset.length);
|
|
38
38
|
jt(() => {
|
|
39
39
|
He();
|
|
40
40
|
});
|
|
41
|
-
const ae =
|
|
41
|
+
const ae = f(() => !!e.value.debug);
|
|
42
42
|
function He() {
|
|
43
43
|
if (yt(b.dataset) ? (se({
|
|
44
44
|
componentName: "VueUiDonutEvolution",
|
|
@@ -62,7 +62,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
62
62
|
}, 10), fe(), e.value.responsive) {
|
|
63
63
|
const t = pt(() => {
|
|
64
64
|
he.value = !1;
|
|
65
|
-
const { width: a, height: l } =
|
|
65
|
+
const { width: a, height: l } = Ll({
|
|
66
66
|
chart: P.value,
|
|
67
67
|
title: e.value.style.chart.title.text ? Oe.value : null,
|
|
68
68
|
legend: e.value.style.chart.legend.show ? Pe.value : null,
|
|
@@ -78,7 +78,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
78
78
|
Y.value && (le.value && Y.value.unobserve(le.value), Y.value.disconnect()), Y.value = new ResizeObserver(t), le.value = P.value.parentNode, Y.value.observe(le.value);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const e = c(me()), { loading: Be, FINAL_DATASET: ye, manualLoading: oe } =
|
|
81
|
+
const e = c(me()), { loading: Be, FINAL_DATASET: ye, manualLoading: oe } = _l({
|
|
82
82
|
...qt(b),
|
|
83
83
|
FINAL_CONFIG: e,
|
|
84
84
|
prepareConfig: me,
|
|
@@ -149,7 +149,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
149
149
|
}), H = c({
|
|
150
150
|
width: e.value.style.chart.layout.width,
|
|
151
151
|
height: e.value.style.chart.layout.height
|
|
152
|
-
}), Ue =
|
|
152
|
+
}), Ue = f(() => Math.max(...ye.value.map((t) => t.values.length))), h = c({
|
|
153
153
|
start: 0,
|
|
154
154
|
end: Ue.value
|
|
155
155
|
});
|
|
@@ -159,7 +159,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
159
159
|
async function fe() {
|
|
160
160
|
await Ce(), await Ce();
|
|
161
161
|
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = Fe.value;
|
|
162
|
-
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (
|
|
162
|
+
(t != null || a != null) && l ? (t != null && l.setStartValue(t), a != null && l.setEndValue(Ot(a + 1))) : (h.value = {
|
|
163
163
|
start: 0,
|
|
164
164
|
end: D.value
|
|
165
165
|
}, $e.value += 1);
|
|
@@ -183,24 +183,24 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
183
183
|
customPalette: al[t.theme] || ne
|
|
184
184
|
} : a = t, b.config && ft(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 && ft(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
Le(() => b.config, (t) => {
|
|
187
187
|
Be.value || (e.value = me()), ge.value = !e.value.userOptions.showOnChartHover, He(), Ie.value += 1, Ne.value += 1, Te.value += 1, B.value.showTable = e.value.table.show;
|
|
188
|
-
}, { deep: !0 }),
|
|
188
|
+
}, { deep: !0 }), Le(() => b.dataset, (t) => {
|
|
189
189
|
Array.isArray(t) && t.length > 0 && (oe.value = !1), Xe();
|
|
190
190
|
}, { deep: !0 });
|
|
191
191
|
const { isPrinting: je, isImaging: qe, generatePdf: Je, generateImage: Ke } = gl({
|
|
192
192
|
elementId: M.value,
|
|
193
193
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
194
194
|
options: e.value.userOptions.print
|
|
195
|
-
}), Pt =
|
|
195
|
+
}), Pt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Dt = f(() => ul(e.value.customPalette)), B = c({
|
|
196
196
|
showTable: e.value.table.show
|
|
197
197
|
});
|
|
198
|
-
|
|
198
|
+
Le(e, () => {
|
|
199
199
|
B.value = {
|
|
200
200
|
showTable: e.value.table.show
|
|
201
201
|
};
|
|
202
202
|
}, { immediate: !0 });
|
|
203
|
-
const R =
|
|
203
|
+
const R = f(() => ({
|
|
204
204
|
top: e.value.style.chart.layout.padding.top,
|
|
205
205
|
right: e.value.style.chart.layout.padding.right,
|
|
206
206
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
@@ -208,9 +208,9 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
208
208
|
}));
|
|
209
209
|
function Ft() {
|
|
210
210
|
let t = 0;
|
|
211
|
-
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((
|
|
212
|
-
const d =
|
|
213
|
-
return (d >
|
|
211
|
+
ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((o, y) => {
|
|
212
|
+
const d = y.getComputedTextLength();
|
|
213
|
+
return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
|
|
214
214
|
}, 0));
|
|
215
215
|
const a = de.value ? de.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
216
216
|
return t + a + 5;
|
|
@@ -228,26 +228,26 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
228
228
|
}), Kt(() => {
|
|
229
229
|
be.value = 0;
|
|
230
230
|
});
|
|
231
|
-
const Qe =
|
|
231
|
+
const Qe = f(() => {
|
|
232
232
|
let t = 0;
|
|
233
233
|
ve.value && (t = ve.value.getBBox().height);
|
|
234
234
|
let a = 0;
|
|
235
235
|
return te.value && (a = be.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
236
|
-
}), r =
|
|
237
|
-
const t = Ft(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height,
|
|
236
|
+
}), r = f(() => {
|
|
237
|
+
const t = Ft(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = H.value.width, s = H.value.height, o = R.value.left + t, y = l - R.value.right, d = l - o - R.value.right, x = s - R.value.top - R.value.bottom - a - Qe.value, W = R.value.top + a, F = s - R.value.bottom - Qe.value;
|
|
238
238
|
return {
|
|
239
239
|
top: W,
|
|
240
|
-
left:
|
|
241
|
-
right:
|
|
240
|
+
left: o,
|
|
241
|
+
right: y,
|
|
242
242
|
bottom: F,
|
|
243
243
|
absoluteHeight: s,
|
|
244
244
|
absoluteWidth: l,
|
|
245
|
-
centerX:
|
|
245
|
+
centerX: o + Math.max(10, d) / 2,
|
|
246
246
|
centerY: W + Math.max(10, x) / 2,
|
|
247
247
|
width: Math.max(10, d),
|
|
248
248
|
height: Math.max(10, x)
|
|
249
249
|
};
|
|
250
|
-
}), O =
|
|
250
|
+
}), O = f(() => (ye.value.forEach((t, a) => {
|
|
251
251
|
[null, void 0].includes(t.name) && se({
|
|
252
252
|
componentName: "VueUiDonutEvolution",
|
|
253
253
|
type: "datasetSerieAttribute",
|
|
@@ -264,35 +264,35 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
264
264
|
}), ye.value.map((t, a) => ({
|
|
265
265
|
...t,
|
|
266
266
|
values: sl(t.values),
|
|
267
|
-
color:
|
|
267
|
+
color: _e(t.color) || Dt.value[a] || ne[a] || ne[a % ne.length],
|
|
268
268
|
length: (t.values || []).length,
|
|
269
269
|
uid: ht()
|
|
270
|
-
})))), j =
|
|
270
|
+
})))), j = f(() => O.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
|
|
271
271
|
...t,
|
|
272
|
-
values: t.values.filter((a, l) => l >=
|
|
273
|
-
}))), D =
|
|
272
|
+
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
273
|
+
}))), D = f(() => Math.max(...j.value.map((t) => t.length))), C = f(() => ml({
|
|
274
274
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
275
275
|
maxDatapoints: D.value,
|
|
276
276
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
277
|
-
start:
|
|
278
|
-
end:
|
|
279
|
-
})), k =
|
|
277
|
+
start: h.value.start,
|
|
278
|
+
end: h.value.end
|
|
279
|
+
})), k = f(() => r.value.width / (h.value.end - h.value.start)), L = f(() => {
|
|
280
280
|
const t = [];
|
|
281
|
-
for (let
|
|
282
|
-
const
|
|
281
|
+
for (let o = 0; o < h.value.end - h.value.start; o += 1) {
|
|
282
|
+
const y = j.value.map((I) => I.values[o] ?? null), d = y.filter((I) => [void 0, null].includes(I)).length === y.length, x = y.reduce((I, A) => I + A, 0), W = y.map((I) => I / x), F = r.value.left + k.value * o + k.value / 2;
|
|
283
283
|
t.push({
|
|
284
|
-
index:
|
|
284
|
+
index: o,
|
|
285
285
|
percentages: W,
|
|
286
286
|
subtotal: d || x < 0 ? null : x,
|
|
287
|
-
values:
|
|
287
|
+
values: y,
|
|
288
288
|
x: F
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
const a = 0, l = Math.max(...t.map((
|
|
292
|
-
return t.map((
|
|
293
|
-
const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value ===
|
|
291
|
+
const a = 0, l = Math.max(...t.map((o) => o.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
292
|
+
return t.map((o, y) => {
|
|
293
|
+
const d = Math.min(r.value.width / 24, k.value / 2 * 0.7), x = d > r.value.width / 16 ? r.value.width / 16 : d, W = g.value === o.index ? r.value.width / 16 : x, F = t.length > 4 ? d * 2 : d * 2 > k.value / 2 * 0.7 ? k.value / 2 * 0.7 : d * 2, I = r.value.bottom - r.value.height * o.subtotal / gt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
294
294
|
return {
|
|
295
|
-
...
|
|
295
|
+
...o,
|
|
296
296
|
y: I,
|
|
297
297
|
radius: x,
|
|
298
298
|
activeRadius: W,
|
|
@@ -301,21 +301,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
301
301
|
series: j.value.map((A, ct) => ({
|
|
302
302
|
color: A.color,
|
|
303
303
|
name: A.name,
|
|
304
|
-
value: A.values[
|
|
304
|
+
value: A.values[y] ?? 0
|
|
305
305
|
}))
|
|
306
|
-
},
|
|
306
|
+
}, o.x, I, x, x, 1.99999, 2, 1, 360, 105.25, x / 2),
|
|
307
307
|
donutHover: Ae({
|
|
308
308
|
series: j.value.map((A, ct) => ({
|
|
309
309
|
color: A.color,
|
|
310
310
|
name: A.name,
|
|
311
|
-
value: A.values[
|
|
311
|
+
value: A.values[y] ?? 0
|
|
312
312
|
}))
|
|
313
|
-
},
|
|
313
|
+
}, o.x, I, F, F, 1.99999, 2, 1, 360, 105.25, F / 2),
|
|
314
314
|
donutFocus: Ae({
|
|
315
315
|
series: j.value.map((A, ct) => ({
|
|
316
316
|
color: A.color,
|
|
317
317
|
name: A.name,
|
|
318
|
-
value: A.values[
|
|
318
|
+
value: A.values[y] ?? 0
|
|
319
319
|
}))
|
|
320
320
|
}, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
|
|
321
321
|
};
|
|
@@ -334,36 +334,36 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
334
334
|
{ datapoint: a, index: l }
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
const xe =
|
|
338
|
-
max: Math.max(...
|
|
337
|
+
const xe = f(() => ({
|
|
338
|
+
max: Math.max(...L.value.map((t) => t.subtotal)),
|
|
339
339
|
min: 0
|
|
340
|
-
})), U =
|
|
341
|
-
const t =
|
|
340
|
+
})), U = f(() => {
|
|
341
|
+
const t = L.value.length === 1 ? xe.value.max * 2 : xe.value.max;
|
|
342
342
|
return gt(xe.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
343
343
|
});
|
|
344
344
|
function Rt(t) {
|
|
345
345
|
return t / U.value.max;
|
|
346
346
|
}
|
|
347
|
-
const Vt =
|
|
347
|
+
const Vt = f(() => U.value.ticks.map((t) => ({
|
|
348
348
|
y: r.value.bottom - r.value.height * Rt(t),
|
|
349
349
|
value: t
|
|
350
350
|
})));
|
|
351
351
|
function Mt(t, a) {
|
|
352
352
|
return isNaN(t.value / bt(a, "value")) ? 0 : (t.value / bt(a, "value") * 100).toFixed(0) + "%";
|
|
353
353
|
}
|
|
354
|
-
function et() {
|
|
355
|
-
g.value = null, ee.value = null;
|
|
354
|
+
function et(t) {
|
|
355
|
+
g.value = null, ee.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
356
356
|
}
|
|
357
357
|
function Ht(t) {
|
|
358
|
-
g.value = t.index, ee.value = t;
|
|
358
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index, ee.value = t;
|
|
359
359
|
}
|
|
360
360
|
const q = c(null);
|
|
361
361
|
function tt(t, a) {
|
|
362
|
-
!t.subtotal || !e.value.style.chart.dialog.show
|
|
362
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ee.value = null, g.value = null, ie.value = !0, E.value = t, Xt(t), [null, void 0].includes(a) || (q.value = a));
|
|
363
363
|
}
|
|
364
|
-
const lt =
|
|
364
|
+
const lt = f(() => O.value.map((t, a) => ({
|
|
365
365
|
name: t.name,
|
|
366
|
-
value: t.values.slice(
|
|
366
|
+
value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
|
|
367
367
|
shape: "circle",
|
|
368
368
|
uid: t.uid,
|
|
369
369
|
color: t.color
|
|
@@ -372,7 +372,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
372
372
|
opacity: w.value.includes(t.uid) ? 0.5 : 1,
|
|
373
373
|
segregate: () => pe(t.uid),
|
|
374
374
|
isSegregated: w.value.includes(t.uid)
|
|
375
|
-
}))), at =
|
|
375
|
+
}))), at = f(() => L.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Bt = f(() => ({
|
|
376
376
|
cy: "donut-div-legend",
|
|
377
377
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
378
378
|
color: e.value.style.chart.legend.color,
|
|
@@ -387,20 +387,20 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
387
387
|
if (w.value.length === O.value.length - 1) return;
|
|
388
388
|
w.value.push(t), Ve("selectLegend", O.value.find((a) => a.uid === t));
|
|
389
389
|
}
|
|
390
|
-
E.value && tt(
|
|
390
|
+
E.value && tt(L.value.find((a, l) => l === q.value));
|
|
391
391
|
}
|
|
392
|
-
const X =
|
|
393
|
-
const t = [""].concat(O.value.filter((
|
|
394
|
-
name:
|
|
395
|
-
color:
|
|
392
|
+
const X = f(() => {
|
|
393
|
+
const t = [""].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
|
|
394
|
+
name: o.name,
|
|
395
|
+
color: o.color
|
|
396
396
|
}))).concat(["Σ"]);
|
|
397
397
|
let a = [];
|
|
398
|
-
for (let
|
|
399
|
-
const
|
|
400
|
-
a.push([C[
|
|
401
|
-
value: d.values[
|
|
402
|
-
percentage: d.values[
|
|
403
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
398
|
+
for (let o = 0; o < D.value; o += 1) {
|
|
399
|
+
const y = O.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, x) => d + x, 0);
|
|
400
|
+
a.push([C[o] ? C[o].text : "-"].concat(O.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
|
|
401
|
+
value: d.values[o] ?? 0,
|
|
402
|
+
percentage: d.values[o] ? d.values[o] / y * 100 : 0
|
|
403
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
404
404
|
}
|
|
405
405
|
const l = {
|
|
406
406
|
th: {
|
|
@@ -416,7 +416,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
416
416
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
417
417
|
}, s = [
|
|
418
418
|
e.value.table.columnNames.period
|
|
419
|
-
].concat(O.value.filter((
|
|
419
|
+
].concat(O.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
|
|
420
420
|
return { head: t, body: a, config: l, colNames: s };
|
|
421
421
|
});
|
|
422
422
|
function Ut() {
|
|
@@ -424,8 +424,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
424
424
|
}
|
|
425
425
|
function ot(t = null) {
|
|
426
426
|
Ce(() => {
|
|
427
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...X.value.head.map((d) => d.name ?? d)], s = [...X.value.body.map((d) => d.map((x) => x.value ?? x))],
|
|
428
|
-
t ? t(
|
|
427
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...X.value.head.map((d) => d.name ?? d)], s = [...X.value.body.map((d) => d.map((x) => x.value ?? x))], o = a.concat([l]).concat(s), y = dl(o);
|
|
428
|
+
t ? t(y) : hl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
const G = c(!1);
|
|
@@ -456,21 +456,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
456
456
|
}
|
|
457
457
|
async function Gt({ scale: t = 2 } = {}) {
|
|
458
458
|
if (!P.value) return;
|
|
459
|
-
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri:
|
|
459
|
+
const { width: a, height: l } = P.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: y } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
460
460
|
return {
|
|
461
|
-
imageUri:
|
|
462
|
-
base64:
|
|
461
|
+
imageUri: o,
|
|
462
|
+
base64: y,
|
|
463
463
|
title: e.value.style.chart.title.text,
|
|
464
464
|
width: a,
|
|
465
465
|
height: l,
|
|
466
466
|
aspectRatio: s
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
const Wt =
|
|
469
|
+
const Wt = f(() => H.value.width), Yt = f(() => H.value.height);
|
|
470
470
|
return xl({
|
|
471
471
|
timeLabelsEls: te,
|
|
472
472
|
timeLabels: C,
|
|
473
|
-
slicer:
|
|
473
|
+
slicer: h,
|
|
474
474
|
configRef: e,
|
|
475
475
|
rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
|
|
476
476
|
autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate"],
|
|
@@ -486,7 +486,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
486
486
|
toggleTable: st,
|
|
487
487
|
toggleAnnotator: ke,
|
|
488
488
|
toggleFullscreen: ut
|
|
489
|
-
}), (t, a) => (
|
|
489
|
+
}), (t, a) => (u(), n("div", {
|
|
490
490
|
ref_key: "donutEvolutionChart",
|
|
491
491
|
ref: P,
|
|
492
492
|
class: N(`vue-ui-donut-evolution ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -495,7 +495,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
495
495
|
onMouseenter: a[5] || (a[5] = () => i(Ge)(!0)),
|
|
496
496
|
onMouseleave: a[6] || (a[6] = () => i(Ge)(!1))
|
|
497
497
|
}, [
|
|
498
|
-
e.value.userOptions.buttons.annotator ? (
|
|
498
|
+
e.value.userOptions.buttons.annotator ? (u(), T(i(zt), {
|
|
499
499
|
key: 0,
|
|
500
500
|
svgRef: i(Ye),
|
|
501
501
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -503,21 +503,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
503
503
|
active: ue.value,
|
|
504
504
|
onClose: ke
|
|
505
505
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
506
|
-
Pt.value ? (
|
|
506
|
+
Pt.value ? (u(), n("div", {
|
|
507
507
|
key: 1,
|
|
508
508
|
ref_key: "noTitle",
|
|
509
509
|
ref: Tt,
|
|
510
510
|
class: "vue-data-ui-no-title-space",
|
|
511
511
|
style: "height:36px; width: 100%;background:transparent"
|
|
512
512
|
}, null, 512)) : v("", !0),
|
|
513
|
-
e.value.style.chart.title.text ? (
|
|
513
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
514
514
|
key: 2,
|
|
515
515
|
ref_key: "chartTitle",
|
|
516
516
|
ref: Oe,
|
|
517
517
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
518
518
|
onMouseleave: et
|
|
519
519
|
}, [
|
|
520
|
-
(
|
|
520
|
+
(u(), T(wl, {
|
|
521
521
|
key: `title_${Ie.value}`,
|
|
522
522
|
config: {
|
|
523
523
|
title: {
|
|
@@ -531,7 +531,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
531
531
|
}
|
|
532
532
|
}, null, 8, ["config"]))
|
|
533
533
|
], 544)) : v("", !0),
|
|
534
|
-
e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (
|
|
534
|
+
e.value.userOptions.show && Me.value && (i(We) || i(ge)) ? (u(), T(i($t), {
|
|
535
535
|
ref: "details",
|
|
536
536
|
key: `user_options_${ze.value}`,
|
|
537
537
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -564,55 +564,55 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
564
564
|
}, Qt({ _: 2 }, [
|
|
565
565
|
t.$slots.menuIcon ? {
|
|
566
566
|
name: "menuIcon",
|
|
567
|
-
fn:
|
|
567
|
+
fn: _(({ isOpen: l, color: s }) => [
|
|
568
568
|
S(t.$slots, "menuIcon", K(Q({ isOpen: l, color: s })), void 0, !0)
|
|
569
569
|
]),
|
|
570
570
|
key: "0"
|
|
571
571
|
} : void 0,
|
|
572
572
|
t.$slots.optionPdf ? {
|
|
573
573
|
name: "optionPdf",
|
|
574
|
-
fn:
|
|
574
|
+
fn: _(() => [
|
|
575
575
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
576
576
|
]),
|
|
577
577
|
key: "1"
|
|
578
578
|
} : void 0,
|
|
579
579
|
t.$slots.optionCsv ? {
|
|
580
580
|
name: "optionCsv",
|
|
581
|
-
fn:
|
|
581
|
+
fn: _(() => [
|
|
582
582
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
583
583
|
]),
|
|
584
584
|
key: "2"
|
|
585
585
|
} : void 0,
|
|
586
586
|
t.$slots.optionImg ? {
|
|
587
587
|
name: "optionImg",
|
|
588
|
-
fn:
|
|
588
|
+
fn: _(() => [
|
|
589
589
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
590
590
|
]),
|
|
591
591
|
key: "3"
|
|
592
592
|
} : void 0,
|
|
593
593
|
t.$slots.optionTable ? {
|
|
594
594
|
name: "optionTable",
|
|
595
|
-
fn:
|
|
595
|
+
fn: _(() => [
|
|
596
596
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
597
597
|
]),
|
|
598
598
|
key: "4"
|
|
599
599
|
} : void 0,
|
|
600
600
|
t.$slots.optionFullscreen ? {
|
|
601
601
|
name: "optionFullscreen",
|
|
602
|
-
fn:
|
|
602
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
603
603
|
S(t.$slots, "optionFullscreen", K(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
604
604
|
]),
|
|
605
605
|
key: "5"
|
|
606
606
|
} : void 0,
|
|
607
607
|
t.$slots.optionAnnotator ? {
|
|
608
608
|
name: "optionAnnotator",
|
|
609
|
-
fn:
|
|
609
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
610
610
|
S(t.$slots, "optionAnnotator", K(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
611
611
|
]),
|
|
612
612
|
key: "6"
|
|
613
613
|
} : void 0
|
|
614
614
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
615
|
-
(
|
|
615
|
+
(u(), n("svg", {
|
|
616
616
|
ref_key: "svgRef",
|
|
617
617
|
ref: Ye,
|
|
618
618
|
xmlns: i(nl),
|
|
@@ -621,7 +621,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
621
621
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
622
622
|
}, [
|
|
623
623
|
Zt(i(St)),
|
|
624
|
-
t.$slots["chart-background"] ? (
|
|
624
|
+
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
625
625
|
key: 0,
|
|
626
626
|
x: r.value.left,
|
|
627
627
|
y: r.value.top,
|
|
@@ -655,7 +655,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
655
655
|
}, [
|
|
656
656
|
p("stop", {
|
|
657
657
|
offset: "0%",
|
|
658
|
-
"stop-color": i(Z)(i(
|
|
658
|
+
"stop-color": i(Z)(i(_e)(e.value.style.chart.backgroundColor), 0)
|
|
659
659
|
}, null, 8, Dl),
|
|
660
660
|
p("stop", {
|
|
661
661
|
offset: "77%",
|
|
@@ -663,11 +663,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
663
663
|
}, null, 8, Fl),
|
|
664
664
|
p("stop", {
|
|
665
665
|
offset: "100%",
|
|
666
|
-
"stop-color": i(Z)(i(
|
|
666
|
+
"stop-color": i(Z)(i(_e)(e.value.style.chart.backgroundColor), 0)
|
|
667
667
|
}, null, 8, El)
|
|
668
668
|
], 8, Pl)
|
|
669
669
|
]),
|
|
670
|
-
e.value.style.chart.layout.grid.show ? (
|
|
670
|
+
e.value.style.chart.layout.grid.show ? (u(), n("g", Rl, [
|
|
671
671
|
p("line", {
|
|
672
672
|
x1: r.value.left,
|
|
673
673
|
x2: r.value.left,
|
|
@@ -686,8 +686,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
686
686
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
687
687
|
"stroke-linecap": "round"
|
|
688
688
|
}, null, 8, Ml),
|
|
689
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
690
|
-
(
|
|
689
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (u(), n("g", Hl, [
|
|
690
|
+
(u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), n("line", {
|
|
691
691
|
x1: r.value.left + (s + 1) * k.value,
|
|
692
692
|
x2: r.value.left + (s + 1) * k.value,
|
|
693
693
|
y1: r.value.top,
|
|
@@ -699,7 +699,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
699
699
|
])) : v("", !0)
|
|
700
700
|
])) : v("", !0),
|
|
701
701
|
p("g", null, [
|
|
702
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (
|
|
702
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (u(), n("text", {
|
|
703
703
|
key: 0,
|
|
704
704
|
ref_key: "yAxisLabel",
|
|
705
705
|
ref: de,
|
|
@@ -709,7 +709,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
709
709
|
"text-anchor": "middle",
|
|
710
710
|
style: { transition: "none" }
|
|
711
711
|
}, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Ul)) : v("", !0),
|
|
712
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (
|
|
712
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (u(), n("text", {
|
|
713
713
|
key: 1,
|
|
714
714
|
ref_key: "xAxisLabel",
|
|
715
715
|
ref: ve,
|
|
@@ -720,14 +720,14 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
720
720
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
721
721
|
}, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Xl)) : v("", !0)
|
|
722
722
|
]),
|
|
723
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
723
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), n("g", {
|
|
724
724
|
key: 2,
|
|
725
725
|
ref_key: "scaleLabels",
|
|
726
726
|
ref: ce,
|
|
727
727
|
class: N({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
728
728
|
}, [
|
|
729
|
-
(
|
|
730
|
-
l.value >= U.value.min && l.value <= U.value.max ? (
|
|
729
|
+
(u(!0), n(z, null, $(Vt.value, (l, s) => (u(), n("g", null, [
|
|
730
|
+
l.value >= U.value.min && l.value <= U.value.max ? (u(), n("line", {
|
|
731
731
|
key: 0,
|
|
732
732
|
x1: r.value.left,
|
|
733
733
|
x2: r.value.left - 5,
|
|
@@ -736,7 +736,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
736
736
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
737
737
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
738
738
|
}, null, 8, Gl)) : v("", !0),
|
|
739
|
-
l.value >= U.value.min && l.value <= U.value.max ? (
|
|
739
|
+
l.value >= U.value.min && l.value <= U.value.max ? (u(), n("text", {
|
|
740
740
|
key: 1,
|
|
741
741
|
x: r.value.left,
|
|
742
742
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -757,16 +757,16 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
757
757
|
) : ""), 9, Wl)) : v("", !0)
|
|
758
758
|
]))), 256))
|
|
759
759
|
], 2)) : v("", !0),
|
|
760
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
760
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), n("g", {
|
|
761
761
|
key: 3,
|
|
762
762
|
ref_key: "timeLabelsEls",
|
|
763
763
|
ref: te,
|
|
764
764
|
class: N({ "donut-opacity": !0 })
|
|
765
765
|
}, [
|
|
766
|
-
(
|
|
767
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === D.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && C.value[s] && C.value[s].text ? (
|
|
766
|
+
(u(!0), n(z, null, $(h.value.end - h.value.start, (l, s) => (u(), n("g", null, [
|
|
767
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === D.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && C.value[s] && C.value[s].text ? (u(), n("g", Yl, [
|
|
768
768
|
String(C.value[s].text).includes(`
|
|
769
|
-
`) ? (
|
|
769
|
+
`) ? (u(), n("text", {
|
|
770
770
|
key: 1,
|
|
771
771
|
class: "vue-data-ui-time-label",
|
|
772
772
|
"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",
|
|
@@ -780,7 +780,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
780
780
|
x: 0,
|
|
781
781
|
y: 0
|
|
782
782
|
})
|
|
783
|
-
}, null, 8, ql)) : (
|
|
783
|
+
}, null, 8, ql)) : (u(), n("text", {
|
|
784
784
|
key: 0,
|
|
785
785
|
class: "vue-data-ui-time-label",
|
|
786
786
|
"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",
|
|
@@ -791,21 +791,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
791
791
|
])) : v("", !0)
|
|
792
792
|
]))), 256))
|
|
793
793
|
], 512)) : v("", !0),
|
|
794
|
-
(
|
|
795
|
-
e.value.style.chart.layout.line.show && s <
|
|
794
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", null, [
|
|
795
|
+
e.value.style.chart.layout.line.show && s < L.value.length - 1 && ![l.subtotal, L.value[s + 1].subtotal].includes(null) ? (u(), n("line", {
|
|
796
796
|
key: 0,
|
|
797
797
|
class: N({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
798
798
|
x1: l.x,
|
|
799
799
|
y1: l.y,
|
|
800
|
-
x2:
|
|
801
|
-
y2:
|
|
800
|
+
x2: L.value[s + 1].x,
|
|
801
|
+
y2: L.value[s + 1].y,
|
|
802
802
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
803
803
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
804
804
|
"stroke-linecap": "round",
|
|
805
805
|
"stroke-linejoin": "round"
|
|
806
806
|
}, null, 10, Jl)) : v("", !0),
|
|
807
|
-
l.subtotal !== null ? (
|
|
808
|
-
l.subtotal ? (
|
|
807
|
+
l.subtotal !== null ? (u(), n("g", Kl, [
|
|
808
|
+
l.subtotal ? (u(), n("circle", {
|
|
809
809
|
key: 0,
|
|
810
810
|
cx: l.x,
|
|
811
811
|
cy: l.y,
|
|
@@ -814,33 +814,33 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
814
814
|
}, null, 8, Ql)) : v("", !0)
|
|
815
815
|
])) : v("", !0)
|
|
816
816
|
]))), 256)),
|
|
817
|
-
(
|
|
817
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
818
818
|
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
819
819
|
}, [
|
|
820
|
-
l.subtotal ? (
|
|
821
|
-
g.value !== null && g.value === s ? (
|
|
822
|
-
(
|
|
823
|
-
nt(
|
|
820
|
+
l.subtotal ? (u(), n("g", Zl, [
|
|
821
|
+
g.value !== null && g.value === s ? (u(), n("g", ea, [
|
|
822
|
+
(u(!0), n(z, null, $(l.donutHover, (o) => (u(), n("g", null, [
|
|
823
|
+
nt(o) ? (u(), n("path", {
|
|
824
824
|
key: 0,
|
|
825
|
-
d: i(cl)(
|
|
826
|
-
stroke:
|
|
825
|
+
d: i(cl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
826
|
+
stroke: o.color,
|
|
827
827
|
"stroke-width": "1",
|
|
828
828
|
"stroke-linecap": "round",
|
|
829
829
|
"stroke-linejoin": "round",
|
|
830
830
|
fill: "none"
|
|
831
831
|
}, null, 8, ta)) : v("", !0)
|
|
832
832
|
]))), 256)),
|
|
833
|
-
(
|
|
834
|
-
nt(
|
|
833
|
+
(u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("g", null, [
|
|
834
|
+
nt(o) ? (u(), n("text", {
|
|
835
835
|
key: 0,
|
|
836
836
|
"data-cy-hover-label": "",
|
|
837
|
-
"text-anchor": i(mt)(
|
|
838
|
-
x: i(mt)(
|
|
839
|
-
y: i(vl)(
|
|
837
|
+
"text-anchor": i(mt)(o, !0, 0).anchor,
|
|
838
|
+
x: i(mt)(o, !0, 9).x,
|
|
839
|
+
y: i(vl)(o, 14, 10),
|
|
840
840
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
841
841
|
"font-size": 8,
|
|
842
842
|
"font-weight": "bold"
|
|
843
|
-
}, m(
|
|
843
|
+
}, m(o.name) + ": " + m(Mt(o, l.donut)) + " (" + m(o.value === null ? "-" : Ze(o.value, o, y)) + ") ", 9, la)) : v("", !0)
|
|
844
844
|
]))), 256)),
|
|
845
845
|
p("g", null, [
|
|
846
846
|
p("circle", {
|
|
@@ -853,37 +853,37 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
853
853
|
])) : v("", !0)
|
|
854
854
|
])) : v("", !0)
|
|
855
855
|
], 2))), 256)),
|
|
856
|
-
(
|
|
856
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
857
857
|
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
858
858
|
}, [
|
|
859
|
-
l.subtotal !== null ? (
|
|
860
|
-
l.subtotal === 0 ? (
|
|
859
|
+
l.subtotal !== null ? (u(), n("g", oa, [
|
|
860
|
+
l.subtotal === 0 ? (u(), n("circle", {
|
|
861
861
|
key: 0,
|
|
862
862
|
cx: l.x,
|
|
863
863
|
cy: l.y,
|
|
864
864
|
r: 3,
|
|
865
865
|
fill: e.value.style.chart.color
|
|
866
|
-
}, null, 8, ua)) : g.value !== null && g.value === s ? (
|
|
867
|
-
(
|
|
868
|
-
d:
|
|
869
|
-
fill: `${
|
|
866
|
+
}, null, 8, ua)) : g.value !== null && g.value === s ? (u(), n("g", sa, [
|
|
867
|
+
(u(!0), n(z, null, $(l.donutHover, (o, y) => (u(), n("path", {
|
|
868
|
+
d: o.arcSlice,
|
|
869
|
+
fill: `${o.color}`,
|
|
870
870
|
"stroke-width": 1,
|
|
871
871
|
stroke: e.value.style.chart.backgroundColor
|
|
872
872
|
}, null, 8, na))), 256))
|
|
873
|
-
])) : (
|
|
874
|
-
(
|
|
875
|
-
d:
|
|
876
|
-
fill: `${
|
|
873
|
+
])) : (u(), n("g", ra, [
|
|
874
|
+
(u(!0), n(z, null, $(l.donut, (o, y) => (u(), n("path", {
|
|
875
|
+
d: o.arcSlice,
|
|
876
|
+
fill: `${o.color}`,
|
|
877
877
|
"stroke-width": 0.5,
|
|
878
878
|
stroke: e.value.style.chart.backgroundColor
|
|
879
879
|
}, null, 8, ia))), 256))
|
|
880
880
|
]))
|
|
881
881
|
])) : v("", !0)
|
|
882
882
|
], 2))), 256)),
|
|
883
|
-
(
|
|
883
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("g", {
|
|
884
884
|
class: N({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ie.value && s !== E.value.index })
|
|
885
885
|
}, [
|
|
886
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
886
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), n("text", {
|
|
887
887
|
key: 0,
|
|
888
888
|
"text-anchor": "middle",
|
|
889
889
|
x: l.x,
|
|
@@ -893,7 +893,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
893
893
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
894
894
|
}, m(Ze(l.subtotal, l, s)), 9, ca)) : v("", !0)
|
|
895
895
|
], 2))), 256)),
|
|
896
|
-
(
|
|
896
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("rect", {
|
|
897
897
|
x: r.value.left + s * k.value,
|
|
898
898
|
y: r.value.top,
|
|
899
899
|
width: k.value,
|
|
@@ -904,21 +904,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
904
904
|
pointerEvents: "none"
|
|
905
905
|
}
|
|
906
906
|
}, null, 10, va))), 256)),
|
|
907
|
-
(
|
|
907
|
+
(u(!0), n(z, null, $(L.value, (l, s) => (u(), n("rect", {
|
|
908
908
|
"data-cy-trap": "",
|
|
909
909
|
x: r.value.left + s * k.value,
|
|
910
910
|
y: r.value.top,
|
|
911
911
|
width: k.value,
|
|
912
912
|
height: r.value.height,
|
|
913
913
|
fill: "transparent",
|
|
914
|
-
onMouseenter: (
|
|
915
|
-
onMouseleave: et,
|
|
916
|
-
onClick: (
|
|
914
|
+
onMouseenter: (o) => Ht(l),
|
|
915
|
+
onMouseleave: (o) => et(l),
|
|
916
|
+
onClick: (o) => tt(l, s),
|
|
917
917
|
class: N({ "donut-hover": g.value === l.index && l.subtotal })
|
|
918
918
|
}, null, 42, da))), 256)),
|
|
919
919
|
S(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
920
920
|
], 14, $l)),
|
|
921
|
-
t.$slots.watermark ? (
|
|
921
|
+
t.$slots.watermark ? (u(), n("div", ha, [
|
|
922
922
|
S(t.$slots, "watermark", K(Q({ isPrinting: i(je) || i(qe) })), void 0, !0)
|
|
923
923
|
])) : v("", !0),
|
|
924
924
|
p("div", {
|
|
@@ -927,7 +927,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
927
927
|
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
928
928
|
"data-dom-to-png-ignore": ""
|
|
929
929
|
}, [
|
|
930
|
-
D.value > 1 && e.value.style.chart.zoom.show ? (
|
|
930
|
+
D.value > 1 && e.value.style.chart.zoom.show ? (u(), T(kl, {
|
|
931
931
|
ref_key: "slicerComponent",
|
|
932
932
|
ref: Fe,
|
|
933
933
|
key: `slicer_${$e.value}`,
|
|
@@ -942,19 +942,19 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
942
942
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
943
943
|
max: D.value,
|
|
944
944
|
min: 0,
|
|
945
|
-
valueStart:
|
|
946
|
-
valueEnd:
|
|
947
|
-
start:
|
|
948
|
-
"onUpdate:start": a[0] || (a[0] = (l) =>
|
|
949
|
-
end:
|
|
950
|
-
"onUpdate:end": a[1] || (a[1] = (l) =>
|
|
945
|
+
valueStart: h.value.start,
|
|
946
|
+
valueEnd: h.value.end,
|
|
947
|
+
start: h.value.start,
|
|
948
|
+
"onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
|
|
949
|
+
end: h.value.end,
|
|
950
|
+
"onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
|
|
951
951
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
952
952
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : D.value,
|
|
953
953
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
954
954
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
955
955
|
onReset: Xe
|
|
956
956
|
}, {
|
|
957
|
-
"reset-action":
|
|
957
|
+
"reset-action": _(({ reset: l }) => [
|
|
958
958
|
S(t.$slots, "reset-action", K(Q({ reset: l })), void 0, !0)
|
|
959
959
|
]),
|
|
960
960
|
_: 3
|
|
@@ -964,15 +964,15 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
964
964
|
ref_key: "chartLegend",
|
|
965
965
|
ref: Pe
|
|
966
966
|
}, [
|
|
967
|
-
e.value.style.chart.legend.show ? (
|
|
967
|
+
e.value.style.chart.legend.show ? (u(), T(pl, {
|
|
968
968
|
key: `legend_${Te.value}`,
|
|
969
969
|
legendSet: lt.value,
|
|
970
970
|
config: Bt.value,
|
|
971
971
|
onClickMarker: a[2] || (a[2] = ({ legend: l }) => pe(l.uid))
|
|
972
972
|
}, {
|
|
973
|
-
item:
|
|
973
|
+
item: _(({ legend: l, index: s }) => [
|
|
974
974
|
p("div", {
|
|
975
|
-
onClick: (
|
|
975
|
+
onClick: (o) => pe(l.uid),
|
|
976
976
|
style: J(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
|
|
977
977
|
}, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Se)(
|
|
978
978
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
@@ -994,7 +994,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
994
994
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
995
995
|
S(t.$slots, "legend", { legend: lt.value }, void 0, !0)
|
|
996
996
|
], 512),
|
|
997
|
-
t.$slots.source ? (
|
|
997
|
+
t.$slots.source ? (u(), n("div", {
|
|
998
998
|
key: 5,
|
|
999
999
|
ref_key: "source",
|
|
1000
1000
|
ref: De,
|
|
@@ -1002,7 +1002,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1002
1002
|
}, [
|
|
1003
1003
|
S(t.$slots, "source", {}, void 0, !0)
|
|
1004
1004
|
], 512)) : v("", !0),
|
|
1005
|
-
Me.value ? (
|
|
1005
|
+
Me.value ? (u(), T(i(Lt), {
|
|
1006
1006
|
key: 6,
|
|
1007
1007
|
hideDetails: "",
|
|
1008
1008
|
config: {
|
|
@@ -1018,8 +1018,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
}, {
|
|
1021
|
-
content:
|
|
1022
|
-
(
|
|
1021
|
+
content: _(() => [
|
|
1022
|
+
(u(), T(i(At), {
|
|
1023
1023
|
key: `table_${Ne.value}`,
|
|
1024
1024
|
colNames: X.value.colNames,
|
|
1025
1025
|
head: X.value.head,
|
|
@@ -1028,11 +1028,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1028
1028
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1029
1029
|
onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
|
|
1030
1030
|
}, {
|
|
1031
|
-
th:
|
|
1031
|
+
th: _(({ th: l }) => [
|
|
1032
1032
|
dt(m(l.name ?? l), 1)
|
|
1033
1033
|
]),
|
|
1034
|
-
td:
|
|
1035
|
-
l.value === null ? (
|
|
1034
|
+
td: _(({ td: l }) => [
|
|
1035
|
+
l.value === null ? (u(), n("span", fa, "-")) : (u(), n("b", ga, m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + m(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + m(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1036
1036
|
p("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 1
|
|
@@ -1040,7 +1040,7 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1040
1040
|
]),
|
|
1041
1041
|
_: 1
|
|
1042
1042
|
}, 8, ["config"])) : v("", !0),
|
|
1043
|
-
e.value.style.chart.dialog.show ? (
|
|
1043
|
+
e.value.style.chart.dialog.show ? (u(), T(i(_t), {
|
|
1044
1044
|
key: 7,
|
|
1045
1045
|
ref_key: "dialog",
|
|
1046
1046
|
ref: we,
|
|
@@ -1054,11 +1054,11 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1054
1054
|
isFullscreen: G.value,
|
|
1055
1055
|
fullscreenParent: P.value
|
|
1056
1056
|
}, {
|
|
1057
|
-
title:
|
|
1057
|
+
title: _(() => [
|
|
1058
1058
|
dt(m(C.value[Number(E.value.index)] ? C.value[Number(E.value.index)].text : ""), 1)
|
|
1059
1059
|
]),
|
|
1060
|
-
default:
|
|
1061
|
-
E.value ? (
|
|
1060
|
+
default: _(() => [
|
|
1061
|
+
E.value ? (u(), T(i(It), {
|
|
1062
1062
|
key: 0,
|
|
1063
1063
|
config: it.value,
|
|
1064
1064
|
dataset: rt.value
|
|
@@ -1066,10 +1066,10 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"]
|
|
|
1066
1066
|
]),
|
|
1067
1067
|
_: 1
|
|
1068
1068
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1069
|
-
i(Be) ? (
|
|
1069
|
+
i(Be) ? (u(), T(Al, { key: 8 })) : v("", !0)
|
|
1070
1070
|
], 46, zl));
|
|
1071
1071
|
}
|
|
1072
|
-
}, Oa = /* @__PURE__ */ Sl(ma, [["__scopeId", "data-v-
|
|
1072
|
+
}, Oa = /* @__PURE__ */ Sl(ma, [["__scopeId", "data-v-b059689d"]]);
|
|
1073
1073
|
export {
|
|
1074
1074
|
Oa as default
|
|
1075
1075
|
};
|