vue-data-ui 3.0.23 → 3.1.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/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent 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 { u as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as V, ref as c, shallowRef as gt, computed as f, onMounted as el, toRefs as tl, nextTick as Se, watch as re, watchEffect as ll, onBeforeUnmount as al, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as Q, normalizeClass as P, createBlock as D, createCommentVNode as v, createElementVNode as b, createSlots as bt, withCtx as k, renderSlot as S, normalizeProps as Z, guardReactiveProps as ee, createVNode as mt, Fragment as $, renderList as z, toDisplayString as m, Teleport as ol, resolveDynamicComponent as ul, mergeProps as sl, createTextVNode as $e } from "vue";
|
|
2
|
+
import { u as nl, c as xt, o as pt, f as ie, g as rl, t as il, a as cl, p as ce, b as vl, C as kt, d as dl, e as ze, G as hl, D as wt, m as Ie, X as yl, s as te, H as fl, k as Te, i as ve, I as gl, n as bl, q as ml, r as Ct, v as xl, w as pl, J as Lt, K as kl } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as _t, u as wl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Cl } from "./usePrinter-Bnl1YeUU.js";
|
|
5
|
+
import { u as Ll, B as _l } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Al } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
|
+
import { u as At } from "./useNestedProp-BPEHGiYX.js";
|
|
8
|
+
import { u as Sl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as $l } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as zl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Il from "./img-JOqdlnUs.js";
|
|
12
|
+
import Tl from "./Title-Dq2_Z9kR.js";
|
|
13
|
+
import Dl from "./Legend-2-dC7DVb.js";
|
|
14
|
+
import { S as Nl } from "./Slicer-D99HytqX.js";
|
|
15
|
+
import { _ as Pl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ol = ["id"], Fl = ["id"], El = ["xmlns", "viewBox"], Rl = ["x", "y", "width", "height"], Vl = ["id"], Bl = ["stop-color"], Ml = ["stop-color"], Hl = ["id"], Ul = ["stop-color"], Xl = ["stop-color"], Wl = ["stop-color"], Gl = { key: 1 }, Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = { key: 0 }, Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = ["font-size", "fill", "transform"], Ql = ["x", "y", "font-size", "fill"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = { key: 0 }, la = ["text-anchor", "font-size", "fill", "transform"], aa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], oa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = { key: 1 }, sa = ["cx", "cy", "r", "fill"], na = { key: 0 }, ra = { key: 0 }, ia = ["d", "stroke"], ca = ["text-anchor", "x", "y", "fill"], va = ["cx", "cy", "r", "fill"], da = { key: 0 }, ha = ["cx", "cy", "fill"], ya = { key: 1 }, fa = ["d", "fill", "stroke"], ga = { key: 2 }, ba = ["d", "fill", "stroke"], ma = ["x", "y", "font-size", "fill"], xa = ["x", "y", "width", "height", "fill"], pa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ka = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, wa = ["id"], Ca = ["onClick"], La = { key: 0 }, _a = { key: 1 }, Aa = {
|
|
20
20
|
__name: "vue-ui-donut-evolution",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,58 +33,58 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
setup(St, { expose: $t, emit: zt }) {
|
|
37
|
+
const It = V(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Tt = V(() => import("./BaseIcon-DHtro8us.js")), Dt = V(() => import("./DataTable-DJjA2_wf.js")), Nt = V(() => import("./PackageVersion-DU12WH3O.js")), Pt = V(() => import("./PenAndPaper-B7QEDgx4.js")), Ot = V(() => import("./UserOptions-BuGfCdAY.js")), Ft = V(() => import("./vue-ui-donut-C8h_tCSO.js")), De = V(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_donut_evolution: Et } = nl(), x = St, N = c(xt()), C = c([]), g = c(null), le = c(null), de = c(!1), B = c(null), O = c(null), Rt = c(null), Ne = c(0), Pe = c(0), Oe = c(0), Fe = c(0), Ee = c(0), he = c(null), ae = c(null), ye = c(null), fe = c(null), Re = c(!1), Y = c(null), Ve = c(null), Be = c(null), Me = c(null), He = c(null), Ue = c(null), ge = c(!1), j = gt(null), oe = gt(null), Xe = c(null), We = zt, Ge = f(() => !!x.dataset && x.dataset.length);
|
|
38
|
+
el(() => {
|
|
39
|
+
Re.value = !0, Ye();
|
|
40
40
|
});
|
|
41
|
-
const
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
41
|
+
const ue = f(() => !!e.value.debug);
|
|
42
|
+
function Ye() {
|
|
43
|
+
if (pt(x.dataset) ? (ie({
|
|
44
44
|
componentName: "VueUiDonutEvolution",
|
|
45
45
|
type: "dataset",
|
|
46
|
-
debug:
|
|
47
|
-
}),
|
|
48
|
-
|
|
46
|
+
debug: ue.value
|
|
47
|
+
}), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
|
|
48
|
+
rl({
|
|
49
49
|
datasetObject: t,
|
|
50
50
|
requiredAttributes: ["name", "values"]
|
|
51
51
|
}).forEach((l) => {
|
|
52
|
-
|
|
52
|
+
ie({
|
|
53
53
|
componentName: "VueUiDonutEvolution",
|
|
54
54
|
type: "datasetSerieAttribute",
|
|
55
55
|
property: l,
|
|
56
56
|
index: a,
|
|
57
|
-
debug:
|
|
58
|
-
}),
|
|
57
|
+
debug: ue.value
|
|
58
|
+
}), se.value = !0;
|
|
59
59
|
});
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
}, 10),
|
|
63
|
-
const t =
|
|
64
|
-
|
|
65
|
-
const { width: a, height: l } =
|
|
66
|
-
chart:
|
|
67
|
-
title: e.value.style.chart.title.text ?
|
|
68
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
70
|
-
source:
|
|
60
|
+
}), pt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
|
|
61
|
+
ge.value = !0;
|
|
62
|
+
}, 10), me(), e.value.responsive) {
|
|
63
|
+
const t = _t(() => {
|
|
64
|
+
ge.value = !1;
|
|
65
|
+
const { width: a, height: l } = wl({
|
|
66
|
+
chart: O.value,
|
|
67
|
+
title: e.value.style.chart.title.text ? Ve.value : null,
|
|
68
|
+
legend: e.value.style.chart.legend.show ? Be.value : null,
|
|
69
|
+
slicer: e.value.style.chart.zoom.show && qe.value > 1 ? Ue.value : null,
|
|
70
|
+
source: Me.value
|
|
71
71
|
});
|
|
72
72
|
requestAnimationFrame(() => {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
U.value.width = a, U.value.height = l - 12, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
|
|
74
|
+
ge.value = !0;
|
|
75
75
|
}, 10);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(t), oe.value = O.value.parentNode, j.value.observe(oe.value);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
const e = c(
|
|
82
|
-
...
|
|
81
|
+
const e = c(pe()), { loading: je, FINAL_DATASET: be, manualLoading: se } = Ll({
|
|
82
|
+
...tl(x),
|
|
83
83
|
FINAL_CONFIG: e,
|
|
84
|
-
prepareConfig:
|
|
84
|
+
prepareConfig: pe,
|
|
85
85
|
callback: () => {
|
|
86
86
|
Promise.resolve().then(async () => {
|
|
87
|
-
await
|
|
87
|
+
await me();
|
|
88
88
|
});
|
|
89
89
|
},
|
|
90
90
|
skeletonDataset: [
|
|
@@ -104,7 +104,7 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
104
104
|
color: "#CACACA"
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
skeletonConfig:
|
|
107
|
+
skeletonConfig: il({
|
|
108
108
|
defaultConfig: e.value,
|
|
109
109
|
userConfig: {
|
|
110
110
|
useCssAnimation: !1,
|
|
@@ -146,173 +146,173 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
})
|
|
149
|
-
}),
|
|
149
|
+
}), U = c({
|
|
150
150
|
width: e.value.style.chart.layout.width,
|
|
151
151
|
height: e.value.style.chart.layout.height
|
|
152
|
-
}),
|
|
152
|
+
}), qe = f(() => Math.max(...be.value.map((t) => t.values.length))), h = c({
|
|
153
153
|
start: 0,
|
|
154
|
-
end:
|
|
154
|
+
end: qe.value
|
|
155
155
|
});
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Je() {
|
|
157
|
+
me();
|
|
158
158
|
}
|
|
159
|
-
async function
|
|
160
|
-
await
|
|
161
|
-
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l =
|
|
162
|
-
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(
|
|
159
|
+
async function me() {
|
|
160
|
+
await Se(), await Se();
|
|
161
|
+
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = He.value;
|
|
162
|
+
h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Vt(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
|
|
163
163
|
start: 0,
|
|
164
164
|
end: I.value
|
|
165
|
-
},
|
|
165
|
+
}, Pe.value += 1);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Vt(t) {
|
|
168
168
|
const a = I.value;
|
|
169
169
|
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;
|
|
170
170
|
}
|
|
171
|
-
const { userOptionsVisible:
|
|
172
|
-
function
|
|
173
|
-
const t =
|
|
171
|
+
const { userOptionsVisible: xe, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Sl({ config: e.value }), { svgRef: Ze } = $l({ config: e.value.style.chart.title });
|
|
172
|
+
function pe() {
|
|
173
|
+
const t = At({
|
|
174
174
|
userConfig: x.config,
|
|
175
|
-
defaultConfig:
|
|
175
|
+
defaultConfig: Et
|
|
176
176
|
});
|
|
177
177
|
let a = {};
|
|
178
178
|
return t.theme ? a = {
|
|
179
|
-
...
|
|
180
|
-
userConfig:
|
|
179
|
+
...At({
|
|
180
|
+
userConfig: vl.vue_ui_donut_evolution[t.theme] || x.config,
|
|
181
181
|
defaultConfig: t
|
|
182
182
|
}),
|
|
183
|
-
customPalette:
|
|
184
|
-
} : a = t, x.config &&
|
|
183
|
+
customPalette: cl[t.theme] || ce
|
|
184
|
+
} : a = t, x.config && kt(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && kt(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}, { deep: !0 }),
|
|
189
|
-
Array.isArray(t) && t.length > 0 && (
|
|
186
|
+
re(() => x.config, (t) => {
|
|
187
|
+
je.value || (e.value = pe()), xe.value = !e.value.userOptions.showOnChartHover, Ye(), Oe.value += 1, Fe.value += 1, Ee.value += 1, E.value.showTable = e.value.table.show;
|
|
188
|
+
}, { deep: !0 }), re(() => x.dataset, (t) => {
|
|
189
|
+
Array.isArray(t) && t.length > 0 && (se.value = !1), Je();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const { isPrinting:
|
|
192
|
-
elementId:
|
|
191
|
+
const { isPrinting: et, isImaging: tt, generatePdf: lt, generateImage: at } = Cl({
|
|
192
|
+
elementId: N.value,
|
|
193
193
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
194
194
|
options: e.value.userOptions.print
|
|
195
|
-
}),
|
|
195
|
+
}), Bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Mt = f(() => dl(e.value.customPalette)), E = c({
|
|
196
196
|
showTable: e.value.table.show
|
|
197
197
|
});
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
re(e, () => {
|
|
199
|
+
E.value = {
|
|
200
200
|
showTable: e.value.table.show
|
|
201
201
|
};
|
|
202
202
|
}, { immediate: !0 });
|
|
203
|
-
const
|
|
203
|
+
const M = 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,
|
|
207
207
|
left: e.value.style.chart.layout.padding.left
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
209
|
+
function Ht() {
|
|
210
210
|
let t = 0;
|
|
211
|
-
|
|
211
|
+
he.value && (t = Array.from(he.value.querySelectorAll("text")).reduce((u, y) => {
|
|
212
212
|
const d = y.getComputedTextLength();
|
|
213
213
|
return (d > u ? d : u) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
|
|
214
214
|
}, 0));
|
|
215
|
-
const a =
|
|
215
|
+
const a = fe.value ? fe.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;
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
|
|
218
|
+
const ke = c(0), Ut = _t((t) => {
|
|
219
|
+
ke.value = t;
|
|
220
220
|
}, 100);
|
|
221
|
-
|
|
222
|
-
const a =
|
|
221
|
+
ll((t) => {
|
|
222
|
+
const a = ae.value;
|
|
223
223
|
if (!a) return;
|
|
224
224
|
const l = new ResizeObserver((s) => {
|
|
225
|
-
|
|
225
|
+
Ut(s[0].contentRect.height);
|
|
226
226
|
});
|
|
227
227
|
l.observe(a), t(() => l.disconnect());
|
|
228
|
-
}),
|
|
229
|
-
|
|
228
|
+
}), al(() => {
|
|
229
|
+
ke.value = 0;
|
|
230
230
|
});
|
|
231
|
-
const
|
|
231
|
+
const ot = f(() => {
|
|
232
232
|
let t = 0;
|
|
233
|
-
|
|
233
|
+
ye.value && (t = ye.value.getBBox().height);
|
|
234
234
|
let a = 0;
|
|
235
|
-
return
|
|
235
|
+
return ae.value && (a = ke.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
236
236
|
}), r = f(() => {
|
|
237
|
-
const t =
|
|
237
|
+
const t = Ht(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = U.value.width, s = U.value.height, u = M.value.left + t, y = l - M.value.right, d = l - u - M.value.right, p = s - M.value.top - M.value.bottom - a - ot.value, G = M.value.top + a, R = s - M.value.bottom - ot.value;
|
|
238
238
|
return {
|
|
239
|
-
top:
|
|
239
|
+
top: G,
|
|
240
240
|
left: u,
|
|
241
241
|
right: y,
|
|
242
|
-
bottom:
|
|
242
|
+
bottom: R,
|
|
243
243
|
absoluteHeight: s,
|
|
244
244
|
absoluteWidth: l,
|
|
245
245
|
centerX: u + Math.max(10, d) / 2,
|
|
246
|
-
centerY:
|
|
246
|
+
centerY: G + Math.max(10, p) / 2,
|
|
247
247
|
width: Math.max(10, d),
|
|
248
248
|
height: Math.max(10, p)
|
|
249
249
|
};
|
|
250
|
-
}),
|
|
251
|
-
[null, void 0].includes(t.name) &&
|
|
250
|
+
}), F = f(() => (be.value.forEach((t, a) => {
|
|
251
|
+
[null, void 0].includes(t.name) && ie({
|
|
252
252
|
componentName: "VueUiDonutEvolution",
|
|
253
253
|
type: "datasetSerieAttribute",
|
|
254
254
|
property: "name",
|
|
255
255
|
index: a,
|
|
256
|
-
debug:
|
|
257
|
-
}), [null, void 0].includes(t.values) &&
|
|
256
|
+
debug: ue.value
|
|
257
|
+
}), [null, void 0].includes(t.values) && ie({
|
|
258
258
|
componentName: "VueUiDonutEvolution",
|
|
259
259
|
type: "datasetSerieAttribute",
|
|
260
260
|
property: "values",
|
|
261
261
|
index: a,
|
|
262
|
-
debug:
|
|
262
|
+
debug: ue.value
|
|
263
263
|
});
|
|
264
|
-
}),
|
|
264
|
+
}), be.value.map((t, a) => ({
|
|
265
265
|
...t,
|
|
266
|
-
values:
|
|
267
|
-
color:
|
|
266
|
+
values: hl(t.values),
|
|
267
|
+
color: ze(t.color) || Mt.value[a] || ce[a] || ce[a % ce.length],
|
|
268
268
|
length: (t.values || []).length,
|
|
269
|
-
uid:
|
|
270
|
-
})))),
|
|
269
|
+
uid: xt()
|
|
270
|
+
})))), q = f(() => F.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
|
|
271
271
|
...t,
|
|
272
272
|
values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
|
|
273
|
-
}))), I = f(() => Math.max(...
|
|
273
|
+
}))), I = f(() => Math.max(...q.value.map((t) => t.length))), L = f(() => Al({
|
|
274
274
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
275
275
|
maxDatapoints: I.value,
|
|
276
276
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
277
277
|
start: h.value.start,
|
|
278
278
|
end: h.value.end
|
|
279
|
-
})),
|
|
279
|
+
})), w = f(() => r.value.width / (h.value.end - h.value.start)), _ = f(() => {
|
|
280
280
|
const t = [];
|
|
281
281
|
for (let u = 0; u < h.value.end - h.value.start; u += 1) {
|
|
282
|
-
const y =
|
|
282
|
+
const y = q.value.map((T) => T.values[u] ?? null), d = y.filter((T) => [void 0, null].includes(T)).length === y.length, p = y.reduce((T, A) => T + A, 0), G = y.map((T) => T / p), R = r.value.left + w.value * u + w.value / 2;
|
|
283
283
|
t.push({
|
|
284
284
|
index: u,
|
|
285
|
-
percentages:
|
|
285
|
+
percentages: G,
|
|
286
286
|
subtotal: d || p < 0 ? null : p,
|
|
287
287
|
values: y,
|
|
288
|
-
x:
|
|
288
|
+
x: R
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
292
292
|
return t.map((u, y) => {
|
|
293
|
-
const d = Math.min(r.value.width / 24,
|
|
293
|
+
const d = Math.min(r.value.width / 24, w.value / 2 * 0.7), p = d > r.value.width / 16 ? r.value.width / 16 : d, G = g.value === u.index ? r.value.width / 16 : p, R = t.length > 4 ? d * 2 : d * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * u.subtotal / wt(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
294
294
|
return {
|
|
295
295
|
...u,
|
|
296
296
|
y: T,
|
|
297
297
|
radius: p,
|
|
298
|
-
activeRadius:
|
|
299
|
-
hoverRadius:
|
|
300
|
-
donut:
|
|
301
|
-
series:
|
|
298
|
+
activeRadius: G,
|
|
299
|
+
hoverRadius: R,
|
|
300
|
+
donut: Ie({
|
|
301
|
+
series: q.value.map((A, ft) => ({
|
|
302
302
|
color: A.color,
|
|
303
303
|
name: A.name,
|
|
304
304
|
value: A.values[y] ?? 0
|
|
305
305
|
}))
|
|
306
306
|
}, u.x, T, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
|
|
307
|
-
donutHover:
|
|
308
|
-
series:
|
|
307
|
+
donutHover: Ie({
|
|
308
|
+
series: q.value.map((A, ft) => ({
|
|
309
309
|
color: A.color,
|
|
310
310
|
name: A.name,
|
|
311
311
|
value: A.values[y] ?? 0
|
|
312
312
|
}))
|
|
313
|
-
}, u.x, T,
|
|
314
|
-
donutFocus:
|
|
315
|
-
series:
|
|
313
|
+
}, u.x, T, R, R, 1.99999, 2, 1, 360, 105.25, R / 2),
|
|
314
|
+
donutFocus: Ie({
|
|
315
|
+
series: q.value.map((A, ft) => ({
|
|
316
316
|
color: A.color,
|
|
317
317
|
name: A.name,
|
|
318
318
|
value: A.values[y] ?? 0
|
|
@@ -321,11 +321,11 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
321
321
|
};
|
|
322
322
|
});
|
|
323
323
|
});
|
|
324
|
-
function
|
|
325
|
-
return
|
|
324
|
+
function ut(t, a, l) {
|
|
325
|
+
return Te(
|
|
326
326
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
327
327
|
t,
|
|
328
|
-
|
|
328
|
+
ve({
|
|
329
329
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
330
330
|
v: t,
|
|
331
331
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -334,34 +334,34 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
334
334
|
{ datapoint: a, index: l }
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
const
|
|
338
|
-
max: Math.max(...
|
|
337
|
+
const we = f(() => ({
|
|
338
|
+
max: Math.max(..._.value.map((t) => t.subtotal)),
|
|
339
339
|
min: 0
|
|
340
|
-
})),
|
|
341
|
-
const t =
|
|
342
|
-
return
|
|
340
|
+
})), X = f(() => {
|
|
341
|
+
const t = _.value.length === 1 ? we.value.max * 2 : we.value.max;
|
|
342
|
+
return wt(we.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
343
343
|
});
|
|
344
|
-
function
|
|
345
|
-
return t /
|
|
344
|
+
function Xt(t) {
|
|
345
|
+
return t / X.value.max;
|
|
346
346
|
}
|
|
347
|
-
const
|
|
348
|
-
y: r.value.bottom - r.value.height *
|
|
347
|
+
const Wt = f(() => X.value.ticks.map((t) => ({
|
|
348
|
+
y: r.value.bottom - r.value.height * Xt(t),
|
|
349
349
|
value: t
|
|
350
350
|
})));
|
|
351
|
-
function
|
|
352
|
-
return isNaN(t.value /
|
|
351
|
+
function Gt(t, a) {
|
|
352
|
+
return isNaN(t.value / Lt(a, "value")) ? 0 : (t.value / Lt(a, "value") * 100).toFixed(0) + "%";
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
g.value = null,
|
|
354
|
+
function st(t) {
|
|
355
|
+
g.value = null, le.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index,
|
|
357
|
+
function Yt(t) {
|
|
358
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), g.value = t.index, le.value = t;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
function
|
|
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) && (
|
|
360
|
+
const J = c(null);
|
|
361
|
+
function nt(t, a) {
|
|
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) && (le.value = null, g.value = null, de.value = !0, B.value = t, Jt(t), [null, void 0].includes(a) || (J.value = a));
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const rt = f(() => F.value.map((t, a) => ({
|
|
365
365
|
name: t.name,
|
|
366
366
|
value: t.values.slice(h.value.start, h.value.end).reduce((l, s) => l + s, 0),
|
|
367
367
|
shape: "circle",
|
|
@@ -369,10 +369,10 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
369
369
|
color: t.color
|
|
370
370
|
})).sort((t, a) => a.value - t.value).map((t) => ({
|
|
371
371
|
...t,
|
|
372
|
-
opacity:
|
|
373
|
-
segregate: () =>
|
|
374
|
-
isSegregated:
|
|
375
|
-
}))),
|
|
372
|
+
opacity: C.value.includes(t.uid) ? 0.5 : 1,
|
|
373
|
+
segregate: () => Ce(t.uid),
|
|
374
|
+
isSegregated: C.value.includes(t.uid)
|
|
375
|
+
}))), it = f(() => _.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), jt = 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,
|
|
@@ -380,24 +380,24 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
380
380
|
paddingBottom: 12,
|
|
381
381
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
382
382
|
}));
|
|
383
|
-
function
|
|
384
|
-
if (
|
|
385
|
-
|
|
383
|
+
function Ce(t) {
|
|
384
|
+
if (C.value.includes(t))
|
|
385
|
+
C.value = C.value.filter((a) => a !== t), We("selectLegend", null);
|
|
386
386
|
else {
|
|
387
|
-
if (
|
|
388
|
-
|
|
387
|
+
if (C.value.length === F.value.length - 1) return;
|
|
388
|
+
C.value.push(t), We("selectLegend", F.value.find((a) => a.uid === t));
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
B.value && nt(_.value.find((a, l) => l === J.value));
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
const t = [""].concat(
|
|
392
|
+
const W = f(() => {
|
|
393
|
+
const t = [""].concat(F.value.filter((u) => !C.value.includes(u.uid)).map((u) => ({
|
|
394
394
|
name: u.name,
|
|
395
395
|
color: u.color
|
|
396
396
|
}))).concat(["Σ"]);
|
|
397
397
|
let a = [];
|
|
398
398
|
for (let u = 0; u < I.value; u += 1) {
|
|
399
|
-
const y =
|
|
400
|
-
a.push([
|
|
399
|
+
const y = F.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, p) => d + p, 0);
|
|
400
|
+
a.push([L.value[u] ? L.value[u].text : "-"].concat(F.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
|
|
401
401
|
value: d.values[u] ?? 0,
|
|
402
402
|
percentage: d.values[u] ? d.values[u] / y * 100 : 0
|
|
403
403
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(y.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -416,47 +416,47 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
416
416
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
417
417
|
}, s = [
|
|
418
418
|
e.value.table.columnNames.period
|
|
419
|
-
].concat(
|
|
419
|
+
].concat(F.value.filter((u) => !C.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
420
420
|
return { head: t, body: a, config: l, colNames: s };
|
|
421
421
|
});
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function qt() {
|
|
423
|
+
return F.value;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...
|
|
428
|
-
t ? t(y) :
|
|
425
|
+
function Le(t = null) {
|
|
426
|
+
Se(() => {
|
|
427
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...W.value.head.map((d) => d.name ?? d)], s = [...W.value.body.map((d) => d.map((p) => p.value ?? p))], u = a.concat([l]).concat(s), y = xl(u);
|
|
428
|
+
t ? t(y) : pl({ csvContent: y, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
|
-
const
|
|
432
|
-
function
|
|
433
|
-
|
|
431
|
+
const H = c(!1);
|
|
432
|
+
function ct(t) {
|
|
433
|
+
H.value = t, Ne.value += 1;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
435
|
+
function vt() {
|
|
436
|
+
E.value.showTable = !E.value.showTable;
|
|
437
437
|
}
|
|
438
|
-
const
|
|
439
|
-
function
|
|
440
|
-
|
|
438
|
+
const ne = c(!1);
|
|
439
|
+
function _e() {
|
|
440
|
+
ne.value = !ne.value;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function dt(t) {
|
|
443
443
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
function
|
|
447
|
-
|
|
445
|
+
const ht = c([]), yt = c({}), Ae = c(null);
|
|
446
|
+
function Jt(t) {
|
|
447
|
+
ht.value = t.donut.map((a) => ({
|
|
448
448
|
name: a.name,
|
|
449
449
|
values: [a.value],
|
|
450
450
|
color: a.color
|
|
451
|
-
})),
|
|
451
|
+
})), yt.value = kl({
|
|
452
452
|
...e.value.style.chart.dialog.donutChart,
|
|
453
453
|
responsive: !0,
|
|
454
454
|
theme: e.value.theme
|
|
455
|
-
}),
|
|
455
|
+
}), Ae.value && Ae.value.open();
|
|
456
456
|
}
|
|
457
|
-
async function
|
|
458
|
-
if (!
|
|
459
|
-
const { width: a, height: l } =
|
|
457
|
+
async function Kt({ scale: t = 2 } = {}) {
|
|
458
|
+
if (!O.value) return;
|
|
459
|
+
const { width: a, height: l } = O.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: y } = await Il({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
460
460
|
return {
|
|
461
461
|
imageUri: u,
|
|
462
462
|
base64: y,
|
|
@@ -466,60 +466,93 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
466
466
|
aspectRatio: s
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
|
|
471
|
-
timeLabelsEls:
|
|
472
|
-
timeLabels:
|
|
469
|
+
const Qt = f(() => U.value.width), Zt = f(() => U.value.height);
|
|
470
|
+
zl({
|
|
471
|
+
timeLabelsEls: ae,
|
|
472
|
+
timeLabels: L,
|
|
473
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", "enable"],
|
|
477
477
|
isAutoSize: !1,
|
|
478
|
-
width:
|
|
479
|
-
height:
|
|
478
|
+
width: Qt,
|
|
479
|
+
height: Zt,
|
|
480
480
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
481
|
-
})
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
481
|
+
});
|
|
482
|
+
const K = f(() => {
|
|
483
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = E.value.showTable;
|
|
484
|
+
return {
|
|
485
|
+
component: t ? De : It,
|
|
486
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
487
|
+
props: t ? {
|
|
488
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
489
|
+
color: e.value.table.th.color,
|
|
490
|
+
headerColor: e.value.table.th.color,
|
|
491
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
492
|
+
isFullscreen: H.value,
|
|
493
|
+
fullscreenParent: O.value,
|
|
494
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
495
|
+
} : {
|
|
496
|
+
hideDetails: !0,
|
|
497
|
+
config: {
|
|
498
|
+
open: a,
|
|
499
|
+
maxHeight: 1e4,
|
|
500
|
+
body: {
|
|
501
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
502
|
+
color: e.value.style.chart.color
|
|
503
|
+
},
|
|
504
|
+
head: {
|
|
505
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
506
|
+
color: e.value.style.chart.color
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
});
|
|
512
|
+
return re(() => E.value.showTable, (t) => {
|
|
513
|
+
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
514
|
+
}), $t({
|
|
515
|
+
getData: qt,
|
|
516
|
+
getImage: Kt,
|
|
517
|
+
generatePdf: lt,
|
|
518
|
+
generateCsv: Le,
|
|
519
|
+
generateImage: at,
|
|
520
|
+
toggleTable: vt,
|
|
521
|
+
toggleAnnotator: _e,
|
|
522
|
+
toggleFullscreen: ct
|
|
490
523
|
}), (t, a) => (o(), n("div", {
|
|
491
524
|
ref_key: "donutEvolutionChart",
|
|
492
|
-
ref:
|
|
493
|
-
class: P(`vue-ui-donut-evolution ${
|
|
494
|
-
style:
|
|
495
|
-
id:
|
|
496
|
-
onMouseenter: a[
|
|
497
|
-
onMouseleave: a[
|
|
525
|
+
ref: O,
|
|
526
|
+
class: P(`vue-ui-donut-evolution ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
527
|
+
style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
528
|
+
id: N.value,
|
|
529
|
+
onMouseenter: a[7] || (a[7] = () => i(Ke)(!0)),
|
|
530
|
+
onMouseleave: a[8] || (a[8] = () => i(Ke)(!1))
|
|
498
531
|
}, [
|
|
499
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
532
|
+
e.value.userOptions.buttons.annotator ? (o(), D(i(Pt), {
|
|
500
533
|
key: 0,
|
|
501
|
-
svgRef: i(
|
|
534
|
+
svgRef: i(Ze),
|
|
502
535
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
503
536
|
color: e.value.style.chart.color,
|
|
504
|
-
active:
|
|
505
|
-
onClose:
|
|
537
|
+
active: ne.value,
|
|
538
|
+
onClose: _e
|
|
506
539
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
507
|
-
|
|
540
|
+
Bt.value ? (o(), n("div", {
|
|
508
541
|
key: 1,
|
|
509
542
|
ref_key: "noTitle",
|
|
510
|
-
ref:
|
|
543
|
+
ref: Rt,
|
|
511
544
|
class: "vue-data-ui-no-title-space",
|
|
512
545
|
style: "height:36px; width: 100%;background:transparent"
|
|
513
546
|
}, null, 512)) : v("", !0),
|
|
514
547
|
e.value.style.chart.title.text ? (o(), n("div", {
|
|
515
548
|
key: 2,
|
|
516
549
|
ref_key: "chartTitle",
|
|
517
|
-
ref:
|
|
550
|
+
ref: Ve,
|
|
518
551
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
519
|
-
onMouseleave:
|
|
552
|
+
onMouseleave: st
|
|
520
553
|
}, [
|
|
521
|
-
(o(),
|
|
522
|
-
key: `title_${
|
|
554
|
+
(o(), D(Tl, {
|
|
555
|
+
key: `title_${Oe.value}`,
|
|
523
556
|
config: {
|
|
524
557
|
title: {
|
|
525
558
|
cy: "donut-evolution-div-title",
|
|
@@ -532,99 +565,99 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
532
565
|
}
|
|
533
566
|
}, null, 8, ["config"]))
|
|
534
567
|
], 544)) : v("", !0),
|
|
535
|
-
|
|
536
|
-
id: `legend-top-${
|
|
537
|
-
}, null, 8,
|
|
538
|
-
e.value.userOptions.show &&
|
|
568
|
+
b("div", {
|
|
569
|
+
id: `legend-top-${N.value}`
|
|
570
|
+
}, null, 8, Fl),
|
|
571
|
+
e.value.userOptions.show && Ge.value && (i(Qe) || i(xe)) ? (o(), D(i(Ot), {
|
|
539
572
|
ref: "details",
|
|
540
|
-
key: `user_options_${
|
|
573
|
+
key: `user_options_${Ne.value}`,
|
|
541
574
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
542
575
|
color: e.value.style.chart.color,
|
|
543
|
-
isPrinting: i(
|
|
544
|
-
isImaging: i(
|
|
545
|
-
uid:
|
|
576
|
+
isPrinting: i(et),
|
|
577
|
+
isImaging: i(tt),
|
|
578
|
+
uid: N.value,
|
|
546
579
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
547
580
|
hasImg: e.value.userOptions.buttons.img,
|
|
548
581
|
hasXls: e.value.userOptions.buttons.csv,
|
|
549
582
|
hasTable: e.value.userOptions.buttons.table,
|
|
550
583
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
551
|
-
isFullscreen:
|
|
584
|
+
isFullscreen: H.value,
|
|
552
585
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
553
|
-
chartElement:
|
|
586
|
+
chartElement: O.value,
|
|
554
587
|
position: e.value.userOptions.position,
|
|
555
588
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
556
|
-
isAnnotation:
|
|
589
|
+
isAnnotation: ne.value,
|
|
557
590
|
callbacks: e.value.userOptions.callbacks,
|
|
558
591
|
printScale: e.value.userOptions.print.scale,
|
|
559
|
-
onToggleFullscreen:
|
|
560
|
-
onGeneratePdf: i(
|
|
561
|
-
onGenerateCsv:
|
|
562
|
-
onGenerateImage: i(
|
|
563
|
-
onToggleTable:
|
|
564
|
-
onToggleAnnotator:
|
|
565
|
-
style:
|
|
566
|
-
visibility: i(
|
|
592
|
+
onToggleFullscreen: ct,
|
|
593
|
+
onGeneratePdf: i(lt),
|
|
594
|
+
onGenerateCsv: Le,
|
|
595
|
+
onGenerateImage: i(at),
|
|
596
|
+
onToggleTable: vt,
|
|
597
|
+
onToggleAnnotator: _e,
|
|
598
|
+
style: Q({
|
|
599
|
+
visibility: i(Qe) ? i(xe) ? "visible" : "hidden" : "visible"
|
|
567
600
|
})
|
|
568
|
-
},
|
|
601
|
+
}, bt({ _: 2 }, [
|
|
569
602
|
t.$slots.menuIcon ? {
|
|
570
603
|
name: "menuIcon",
|
|
571
|
-
fn:
|
|
572
|
-
S(t.$slots, "menuIcon",
|
|
604
|
+
fn: k(({ isOpen: l, color: s }) => [
|
|
605
|
+
S(t.$slots, "menuIcon", Z(ee({ isOpen: l, color: s })), void 0, !0)
|
|
573
606
|
]),
|
|
574
607
|
key: "0"
|
|
575
608
|
} : void 0,
|
|
576
609
|
t.$slots.optionPdf ? {
|
|
577
610
|
name: "optionPdf",
|
|
578
|
-
fn:
|
|
611
|
+
fn: k(() => [
|
|
579
612
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
580
613
|
]),
|
|
581
614
|
key: "1"
|
|
582
615
|
} : void 0,
|
|
583
616
|
t.$slots.optionCsv ? {
|
|
584
617
|
name: "optionCsv",
|
|
585
|
-
fn:
|
|
618
|
+
fn: k(() => [
|
|
586
619
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
587
620
|
]),
|
|
588
621
|
key: "2"
|
|
589
622
|
} : void 0,
|
|
590
623
|
t.$slots.optionImg ? {
|
|
591
624
|
name: "optionImg",
|
|
592
|
-
fn:
|
|
625
|
+
fn: k(() => [
|
|
593
626
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
594
627
|
]),
|
|
595
628
|
key: "3"
|
|
596
629
|
} : void 0,
|
|
597
630
|
t.$slots.optionTable ? {
|
|
598
631
|
name: "optionTable",
|
|
599
|
-
fn:
|
|
632
|
+
fn: k(() => [
|
|
600
633
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
601
634
|
]),
|
|
602
635
|
key: "4"
|
|
603
636
|
} : void 0,
|
|
604
637
|
t.$slots.optionFullscreen ? {
|
|
605
638
|
name: "optionFullscreen",
|
|
606
|
-
fn:
|
|
607
|
-
S(t.$slots, "optionFullscreen",
|
|
639
|
+
fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
640
|
+
S(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
608
641
|
]),
|
|
609
642
|
key: "5"
|
|
610
643
|
} : void 0,
|
|
611
644
|
t.$slots.optionAnnotator ? {
|
|
612
645
|
name: "optionAnnotator",
|
|
613
|
-
fn:
|
|
614
|
-
S(t.$slots, "optionAnnotator",
|
|
646
|
+
fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
647
|
+
S(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
615
648
|
]),
|
|
616
649
|
key: "6"
|
|
617
650
|
} : void 0
|
|
618
651
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
619
652
|
(o(), n("svg", {
|
|
620
653
|
ref_key: "svgRef",
|
|
621
|
-
ref:
|
|
622
|
-
xmlns: i(
|
|
623
|
-
class: P({ "vue-data-ui-fullscreen--on":
|
|
654
|
+
ref: Ze,
|
|
655
|
+
xmlns: i(yl),
|
|
656
|
+
class: P({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
624
657
|
viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
|
|
625
|
-
style:
|
|
658
|
+
style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
626
659
|
}, [
|
|
627
|
-
|
|
660
|
+
mt(i(Nt)),
|
|
628
661
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
629
662
|
key: 0,
|
|
630
663
|
x: r.value.left,
|
|
@@ -636,43 +669,43 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
636
669
|
}
|
|
637
670
|
}, [
|
|
638
671
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
639
|
-
], 8,
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
id: `hover_${
|
|
672
|
+
], 8, Rl)) : v("", !0),
|
|
673
|
+
b("defs", null, [
|
|
674
|
+
b("linearGradient", {
|
|
675
|
+
id: `hover_${N.value}`,
|
|
643
676
|
x1: "0%",
|
|
644
677
|
y1: "0%",
|
|
645
678
|
x2: "0%",
|
|
646
679
|
y2: "100%"
|
|
647
680
|
}, [
|
|
648
|
-
|
|
681
|
+
b("stop", {
|
|
649
682
|
offset: "0%",
|
|
650
|
-
"stop-color": i(
|
|
651
|
-
}, null, 8,
|
|
652
|
-
|
|
683
|
+
"stop-color": i(te)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
684
|
+
}, null, 8, Bl),
|
|
685
|
+
b("stop", {
|
|
653
686
|
offset: "100%",
|
|
654
|
-
"stop-color": i(
|
|
655
|
-
}, null, 8,
|
|
656
|
-
], 8,
|
|
657
|
-
|
|
658
|
-
id: `focus_${
|
|
687
|
+
"stop-color": i(te)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
688
|
+
}, null, 8, Ml)
|
|
689
|
+
], 8, Vl),
|
|
690
|
+
b("radialGradient", {
|
|
691
|
+
id: `focus_${N.value}`
|
|
659
692
|
}, [
|
|
660
|
-
|
|
693
|
+
b("stop", {
|
|
661
694
|
offset: "0%",
|
|
662
|
-
"stop-color": i(
|
|
663
|
-
}, null, 8,
|
|
664
|
-
|
|
695
|
+
"stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
|
|
696
|
+
}, null, 8, Ul),
|
|
697
|
+
b("stop", {
|
|
665
698
|
offset: "77%",
|
|
666
|
-
"stop-color": i(
|
|
667
|
-
}, null, 8,
|
|
668
|
-
|
|
699
|
+
"stop-color": i(te)("#FFFFFF", 30)
|
|
700
|
+
}, null, 8, Xl),
|
|
701
|
+
b("stop", {
|
|
669
702
|
offset: "100%",
|
|
670
|
-
"stop-color": i(
|
|
671
|
-
}, null, 8,
|
|
672
|
-
], 8,
|
|
703
|
+
"stop-color": i(te)(i(ze)(e.value.style.chart.backgroundColor), 0)
|
|
704
|
+
}, null, 8, Wl)
|
|
705
|
+
], 8, Hl)
|
|
673
706
|
]),
|
|
674
|
-
e.value.style.chart.layout.grid.show ? (o(), n("g",
|
|
675
|
-
|
|
707
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", Gl, [
|
|
708
|
+
b("line", {
|
|
676
709
|
x1: r.value.left,
|
|
677
710
|
x2: r.value.left,
|
|
678
711
|
y1: r.value.top,
|
|
@@ -680,8 +713,8 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
680
713
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
681
714
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
682
715
|
"stroke-linecap": "round"
|
|
683
|
-
}, null, 8,
|
|
684
|
-
|
|
716
|
+
}, null, 8, Yl),
|
|
717
|
+
b("line", {
|
|
685
718
|
x1: r.value.left,
|
|
686
719
|
x2: r.value.right,
|
|
687
720
|
y1: r.value.bottom,
|
|
@@ -689,49 +722,49 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
689
722
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
690
723
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
691
724
|
"stroke-linecap": "round"
|
|
692
|
-
}, null, 8,
|
|
693
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g",
|
|
694
|
-
(o(!0), n(
|
|
695
|
-
x1: r.value.left + (s + 1) *
|
|
696
|
-
x2: r.value.left + (s + 1) *
|
|
725
|
+
}, null, 8, jl),
|
|
726
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", ql, [
|
|
727
|
+
(o(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (o(), n("line", {
|
|
728
|
+
x1: r.value.left + (s + 1) * w.value,
|
|
729
|
+
x2: r.value.left + (s + 1) * w.value,
|
|
697
730
|
y1: r.value.top,
|
|
698
731
|
y2: r.value.bottom,
|
|
699
732
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
700
733
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
701
734
|
"stroke-linecap": "round"
|
|
702
|
-
}, null, 8,
|
|
735
|
+
}, null, 8, Jl))), 256))
|
|
703
736
|
])) : v("", !0)
|
|
704
737
|
])) : v("", !0),
|
|
705
|
-
|
|
738
|
+
b("g", null, [
|
|
706
739
|
e.value.style.chart.layout.grid.axis.yLabel ? (o(), n("text", {
|
|
707
740
|
key: 0,
|
|
708
741
|
ref_key: "yAxisLabel",
|
|
709
|
-
ref:
|
|
742
|
+
ref: fe,
|
|
710
743
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
711
744
|
fill: e.value.style.chart.layout.grid.axis.color,
|
|
712
745
|
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
713
746
|
"text-anchor": "middle",
|
|
714
747
|
style: { transition: "none" }
|
|
715
|
-
},
|
|
748
|
+
}, m(e.value.style.chart.layout.grid.axis.yLabel), 9, Kl)) : v("", !0),
|
|
716
749
|
e.value.style.chart.layout.grid.axis.xLabel ? (o(), n("text", {
|
|
717
750
|
key: 1,
|
|
718
751
|
ref_key: "xAxisLabel",
|
|
719
|
-
ref:
|
|
752
|
+
ref: ye,
|
|
720
753
|
"text-anchor": "middle",
|
|
721
754
|
x: r.value.absoluteWidth / 2,
|
|
722
755
|
y: r.value.absoluteHeight - 3,
|
|
723
756
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
724
757
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
725
|
-
},
|
|
758
|
+
}, m(e.value.style.chart.layout.grid.axis.xLabel), 9, Ql)) : v("", !0)
|
|
726
759
|
]),
|
|
727
760
|
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
728
761
|
key: 2,
|
|
729
762
|
ref_key: "scaleLabels",
|
|
730
|
-
ref:
|
|
763
|
+
ref: he,
|
|
731
764
|
class: P({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
732
765
|
}, [
|
|
733
|
-
(o(!0), n(
|
|
734
|
-
l.value >=
|
|
766
|
+
(o(!0), n($, null, z(Wt.value, (l, s) => (o(), n("g", null, [
|
|
767
|
+
l.value >= X.value.min && l.value <= X.value.max ? (o(), n("line", {
|
|
735
768
|
key: 0,
|
|
736
769
|
x1: r.value.left,
|
|
737
770
|
x2: r.value.left - 5,
|
|
@@ -739,8 +772,8 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
739
772
|
y2: l.y,
|
|
740
773
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
741
774
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
742
|
-
}, null, 8,
|
|
743
|
-
l.value >=
|
|
775
|
+
}, null, 8, Zl)) : v("", !0),
|
|
776
|
+
l.value >= X.value.min && l.value <= X.value.max ? (o(), n("text", {
|
|
744
777
|
key: 1,
|
|
745
778
|
x: r.value.left,
|
|
746
779
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -748,144 +781,144 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
748
781
|
"text-anchor": "end",
|
|
749
782
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
750
783
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
751
|
-
},
|
|
784
|
+
}, m(i(fl)(l.value) ? i(Te)(
|
|
752
785
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
753
786
|
l.value,
|
|
754
|
-
i(
|
|
787
|
+
i(ve)({
|
|
755
788
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
756
789
|
v: l.value,
|
|
757
790
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
758
791
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
759
792
|
}),
|
|
760
793
|
{ datapoint: l, seriesIndex: s }
|
|
761
|
-
) : ""), 9,
|
|
794
|
+
) : ""), 9, ea)) : v("", !0)
|
|
762
795
|
]))), 256))
|
|
763
796
|
], 2)) : v("", !0),
|
|
764
797
|
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", {
|
|
765
798
|
key: 3,
|
|
766
799
|
ref_key: "timeLabelsEls",
|
|
767
|
-
ref:
|
|
800
|
+
ref: ae,
|
|
768
801
|
class: P({ "donut-opacity": !0 })
|
|
769
802
|
}, [
|
|
770
|
-
(o(!0), n(
|
|
771
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) &&
|
|
772
|
-
String(
|
|
803
|
+
(o(!0), n($, null, z(h.value.end - h.value.start, (l, s) => (o(), n("g", null, [
|
|
804
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (o(), n("g", ta, [
|
|
805
|
+
String(L.value[s].text).includes(`
|
|
773
806
|
`) ? (o(), n("text", {
|
|
774
807
|
key: 1,
|
|
775
808
|
class: "vue-data-ui-time-label",
|
|
776
809
|
"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",
|
|
777
810
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
778
811
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
779
|
-
transform: `translate(${r.value.left +
|
|
780
|
-
innerHTML: i(
|
|
781
|
-
content: String(
|
|
812
|
+
transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
813
|
+
innerHTML: i(gl)({
|
|
814
|
+
content: String(L.value[s].text),
|
|
782
815
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
783
816
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
784
817
|
x: 0,
|
|
785
818
|
y: 0
|
|
786
819
|
})
|
|
787
|
-
}, null, 8,
|
|
820
|
+
}, null, 8, aa)) : (o(), n("text", {
|
|
788
821
|
key: 0,
|
|
789
822
|
class: "vue-data-ui-time-label",
|
|
790
823
|
"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
824
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
792
825
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
793
|
-
transform: `translate(${r.value.left +
|
|
794
|
-
},
|
|
826
|
+
transform: `translate(${r.value.left + w.value * s + w.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
827
|
+
}, m(L.value[s].text || ""), 9, la))
|
|
795
828
|
])) : v("", !0)
|
|
796
829
|
]))), 256))
|
|
797
830
|
], 512)) : v("", !0),
|
|
798
|
-
(o(!0), n(
|
|
799
|
-
e.value.style.chart.layout.line.show && s <
|
|
831
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", null, [
|
|
832
|
+
e.value.style.chart.layout.line.show && s < _.value.length - 1 && ![l.subtotal, _.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
800
833
|
key: 0,
|
|
801
834
|
class: P({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
802
835
|
x1: l.x,
|
|
803
836
|
y1: l.y,
|
|
804
|
-
x2:
|
|
805
|
-
y2:
|
|
837
|
+
x2: _.value[s + 1].x,
|
|
838
|
+
y2: _.value[s + 1].y,
|
|
806
839
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
807
840
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
808
841
|
"stroke-linecap": "round",
|
|
809
842
|
"stroke-linejoin": "round"
|
|
810
|
-
}, null, 10,
|
|
811
|
-
l.subtotal !== null ? (o(), n("g",
|
|
843
|
+
}, null, 10, oa)) : v("", !0),
|
|
844
|
+
l.subtotal !== null ? (o(), n("g", ua, [
|
|
812
845
|
l.subtotal ? (o(), n("circle", {
|
|
813
846
|
key: 0,
|
|
814
847
|
cx: l.x,
|
|
815
848
|
cy: l.y,
|
|
816
849
|
r: l.activeRadius,
|
|
817
850
|
fill: e.value.style.chart.backgroundColor
|
|
818
|
-
}, null, 8,
|
|
851
|
+
}, null, 8, sa)) : v("", !0)
|
|
819
852
|
])) : v("", !0)
|
|
820
853
|
]))), 256)),
|
|
821
|
-
(o(!0), n(
|
|
854
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
|
|
822
855
|
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
823
856
|
}, [
|
|
824
|
-
l.subtotal ? (o(), n("g",
|
|
825
|
-
g.value !== null && g.value === s ? (o(), n("g",
|
|
826
|
-
(o(!0), n(
|
|
827
|
-
|
|
857
|
+
l.subtotal ? (o(), n("g", na, [
|
|
858
|
+
g.value !== null && g.value === s ? (o(), n("g", ra, [
|
|
859
|
+
(o(!0), n($, null, z(l.donutHover, (u) => (o(), n("g", null, [
|
|
860
|
+
dt(u) ? (o(), n("path", {
|
|
828
861
|
key: 0,
|
|
829
|
-
d: i(
|
|
862
|
+
d: i(bl)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
830
863
|
stroke: u.color,
|
|
831
864
|
"stroke-width": "1",
|
|
832
865
|
"stroke-linecap": "round",
|
|
833
866
|
"stroke-linejoin": "round",
|
|
834
867
|
fill: "none"
|
|
835
|
-
}, null, 8,
|
|
868
|
+
}, null, 8, ia)) : v("", !0)
|
|
836
869
|
]))), 256)),
|
|
837
|
-
(o(!0), n(
|
|
838
|
-
|
|
870
|
+
(o(!0), n($, null, z(l.donutHover, (u, y) => (o(), n("g", null, [
|
|
871
|
+
dt(u) ? (o(), n("text", {
|
|
839
872
|
key: 0,
|
|
840
873
|
"data-cy-hover-label": "",
|
|
841
|
-
"text-anchor": i(
|
|
842
|
-
x: i(
|
|
843
|
-
y: i(
|
|
874
|
+
"text-anchor": i(Ct)(u, !0, 0).anchor,
|
|
875
|
+
x: i(Ct)(u, !0, 9).x,
|
|
876
|
+
y: i(ml)(u, 14, 10),
|
|
844
877
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
845
878
|
"font-size": 8,
|
|
846
879
|
"font-weight": "bold"
|
|
847
|
-
},
|
|
880
|
+
}, m(u.name) + ": " + m(Gt(u, l.donut)) + " (" + m(u.value === null ? "-" : ut(u.value, u, y)) + ") ", 9, ca)) : v("", !0)
|
|
848
881
|
]))), 256)),
|
|
849
|
-
|
|
850
|
-
|
|
882
|
+
b("g", null, [
|
|
883
|
+
b("circle", {
|
|
851
884
|
cx: l.x,
|
|
852
885
|
cy: l.y,
|
|
853
886
|
r: l.hoverRadius,
|
|
854
887
|
fill: e.value.style.chart.backgroundColor
|
|
855
|
-
}, null, 8,
|
|
888
|
+
}, null, 8, va)
|
|
856
889
|
])
|
|
857
890
|
])) : v("", !0)
|
|
858
891
|
])) : v("", !0)
|
|
859
892
|
], 2))), 256)),
|
|
860
|
-
(o(!0), n(
|
|
893
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
|
|
861
894
|
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
862
895
|
}, [
|
|
863
|
-
l.subtotal !== null ? (o(), n("g",
|
|
896
|
+
l.subtotal !== null ? (o(), n("g", da, [
|
|
864
897
|
l.subtotal === 0 ? (o(), n("circle", {
|
|
865
898
|
key: 0,
|
|
866
899
|
cx: l.x,
|
|
867
900
|
cy: l.y,
|
|
868
901
|
r: 3,
|
|
869
902
|
fill: e.value.style.chart.color
|
|
870
|
-
}, null, 8,
|
|
871
|
-
(o(!0), n(
|
|
903
|
+
}, null, 8, ha)) : g.value !== null && g.value === s ? (o(), n("g", ya, [
|
|
904
|
+
(o(!0), n($, null, z(l.donutHover, (u, y) => (o(), n("path", {
|
|
872
905
|
d: u.arcSlice,
|
|
873
906
|
fill: `${u.color}`,
|
|
874
907
|
"stroke-width": 1,
|
|
875
908
|
stroke: e.value.style.chart.backgroundColor
|
|
876
|
-
}, null, 8,
|
|
877
|
-
])) : (o(), n("g",
|
|
878
|
-
(o(!0), n(
|
|
909
|
+
}, null, 8, fa))), 256))
|
|
910
|
+
])) : (o(), n("g", ga, [
|
|
911
|
+
(o(!0), n($, null, z(l.donut, (u, y) => (o(), n("path", {
|
|
879
912
|
d: u.arcSlice,
|
|
880
913
|
fill: `${u.color}`,
|
|
881
914
|
"stroke-width": 0.5,
|
|
882
915
|
stroke: e.value.style.chart.backgroundColor
|
|
883
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, ba))), 256))
|
|
884
917
|
]))
|
|
885
918
|
])) : v("", !0)
|
|
886
919
|
], 2))), 256)),
|
|
887
|
-
(o(!0), n(
|
|
888
|
-
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null ||
|
|
920
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("g", {
|
|
921
|
+
class: P({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || de.value && s !== B.value.index })
|
|
889
922
|
}, [
|
|
890
923
|
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
891
924
|
key: 0,
|
|
@@ -895,52 +928,52 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
895
928
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
896
929
|
"font-weight": "bold",
|
|
897
930
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
898
|
-
},
|
|
931
|
+
}, m(ut(l.subtotal, l, s)), 9, ma)) : v("", !0)
|
|
899
932
|
], 2))), 256)),
|
|
900
|
-
(o(!0), n(
|
|
901
|
-
x: r.value.left + s *
|
|
933
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
|
|
934
|
+
x: r.value.left + s * w.value,
|
|
902
935
|
y: r.value.top,
|
|
903
|
-
width:
|
|
936
|
+
width: w.value,
|
|
904
937
|
height: r.value.height,
|
|
905
|
-
fill: [g.value,
|
|
906
|
-
class: P({ "donut-hover": l.subtotal && [g.value,
|
|
938
|
+
fill: [g.value, J.value].includes(l.index) ? `url(#hover_${N.value})` : "transparent",
|
|
939
|
+
class: P({ "donut-hover": l.subtotal && [g.value, J.value].includes(l.index) }),
|
|
907
940
|
style: {
|
|
908
941
|
pointerEvents: "none"
|
|
909
942
|
}
|
|
910
|
-
}, null, 10,
|
|
911
|
-
(o(!0), n(
|
|
943
|
+
}, null, 10, xa))), 256)),
|
|
944
|
+
(o(!0), n($, null, z(_.value, (l, s) => (o(), n("rect", {
|
|
912
945
|
"data-cy-trap": "",
|
|
913
|
-
x: r.value.left + s *
|
|
946
|
+
x: r.value.left + s * w.value,
|
|
914
947
|
y: r.value.top,
|
|
915
|
-
width:
|
|
948
|
+
width: w.value,
|
|
916
949
|
height: r.value.height,
|
|
917
950
|
fill: "transparent",
|
|
918
|
-
onMouseenter: (u) =>
|
|
919
|
-
onMouseleave: (u) =>
|
|
920
|
-
onClick: (u) =>
|
|
951
|
+
onMouseenter: (u) => Yt(l),
|
|
952
|
+
onMouseleave: (u) => st(l),
|
|
953
|
+
onClick: (u) => nt(l, s),
|
|
921
954
|
class: P({ "donut-hover": g.value === l.index && l.subtotal })
|
|
922
|
-
}, null, 42,
|
|
955
|
+
}, null, 42, pa))), 256)),
|
|
923
956
|
S(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
924
|
-
], 14,
|
|
925
|
-
t.$slots.watermark ? (o(), n("div",
|
|
926
|
-
S(t.$slots, "watermark",
|
|
957
|
+
], 14, El)),
|
|
958
|
+
t.$slots.watermark ? (o(), n("div", ka, [
|
|
959
|
+
S(t.$slots, "watermark", Z(ee({ isPrinting: i(et) || i(tt) })), void 0, !0)
|
|
927
960
|
])) : v("", !0),
|
|
928
|
-
|
|
961
|
+
b("div", {
|
|
929
962
|
ref_key: "chartSlicer",
|
|
930
|
-
ref:
|
|
931
|
-
style:
|
|
963
|
+
ref: Ue,
|
|
964
|
+
style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
932
965
|
"data-dom-to-png-ignore": ""
|
|
933
966
|
}, [
|
|
934
|
-
I.value > 1 && e.value.style.chart.zoom.show ? (o(),
|
|
967
|
+
I.value > 1 && e.value.style.chart.zoom.show ? (o(), D(Nl, {
|
|
935
968
|
ref_key: "slicerComponent",
|
|
936
|
-
ref:
|
|
937
|
-
key: `slicer_${
|
|
969
|
+
ref: He,
|
|
970
|
+
key: `slicer_${Pe.value}`,
|
|
938
971
|
background: e.value.style.chart.zoom.color,
|
|
939
972
|
borderColor: e.value.style.chart.backgroundColor,
|
|
940
973
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
941
974
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
942
|
-
labelLeft:
|
|
943
|
-
labelRight:
|
|
975
|
+
labelLeft: L.value[0] ? L.value[0].text : "",
|
|
976
|
+
labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
|
|
944
977
|
textColor: e.value.style.chart.color,
|
|
945
978
|
inputColor: e.value.style.chart.zoom.color,
|
|
946
979
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
@@ -956,132 +989,146 @@ const Il = ["id"], Tl = ["id"], Nl = ["xmlns", "viewBox"], Ol = ["x", "y", "widt
|
|
|
956
989
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
957
990
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
958
991
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
959
|
-
onReset:
|
|
992
|
+
onReset: Je
|
|
960
993
|
}, {
|
|
961
|
-
"reset-action":
|
|
962
|
-
S(t.$slots, "reset-action",
|
|
994
|
+
"reset-action": k(({ reset: l }) => [
|
|
995
|
+
S(t.$slots, "reset-action", Z(ee({ reset: l })), void 0, !0)
|
|
963
996
|
]),
|
|
964
997
|
_: 3
|
|
965
998
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
|
|
966
999
|
], 4),
|
|
967
|
-
|
|
968
|
-
id: `legend-bottom-${
|
|
969
|
-
}, null, 8,
|
|
970
|
-
|
|
1000
|
+
b("div", {
|
|
1001
|
+
id: `legend-bottom-${N.value}`
|
|
1002
|
+
}, null, 8, wa),
|
|
1003
|
+
Re.value ? (o(), D(ol, {
|
|
971
1004
|
key: 5,
|
|
972
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1005
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
973
1006
|
}, [
|
|
974
|
-
|
|
1007
|
+
b("div", {
|
|
975
1008
|
ref_key: "chartLegend",
|
|
976
|
-
ref:
|
|
1009
|
+
ref: Be
|
|
977
1010
|
}, [
|
|
978
|
-
e.value.style.chart.legend.show ? (o(),
|
|
979
|
-
key: `legend_${
|
|
980
|
-
legendSet:
|
|
981
|
-
config:
|
|
982
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) =>
|
|
1011
|
+
e.value.style.chart.legend.show ? (o(), D(Dl, {
|
|
1012
|
+
key: `legend_${Ee.value}`,
|
|
1013
|
+
legendSet: rt.value,
|
|
1014
|
+
config: jt.value,
|
|
1015
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => Ce(l.uid))
|
|
983
1016
|
}, {
|
|
984
|
-
item:
|
|
985
|
-
|
|
986
|
-
onClick: (u) =>
|
|
987
|
-
style:
|
|
988
|
-
},
|
|
1017
|
+
item: k(({ legend: l, index: s }) => [
|
|
1018
|
+
b("div", {
|
|
1019
|
+
onClick: (u) => Ce(l.uid),
|
|
1020
|
+
style: Q(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1021
|
+
}, m(l.name) + m(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + m(e.value.style.chart.legend.showValue ? i(Te)(
|
|
989
1022
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
990
1023
|
l.value,
|
|
991
|
-
i(
|
|
1024
|
+
i(ve)({
|
|
992
1025
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
993
1026
|
v: l.value,
|
|
994
1027
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
995
1028
|
r: e.value.style.chart.legend.roundingValue
|
|
996
1029
|
}),
|
|
997
1030
|
{ datapoint: l, seriesIndex: s }
|
|
998
|
-
) : "") + " " +
|
|
999
|
-
v: l.value /
|
|
1031
|
+
) : "") + " " + m(e.value.style.chart.legend.showPercentage ? C.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / it.value) ? "-" : i(ve)({
|
|
1032
|
+
v: l.value / it.value * 100,
|
|
1000
1033
|
s: "%",
|
|
1001
1034
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1002
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1035
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ca)
|
|
1003
1036
|
]),
|
|
1004
1037
|
_: 1
|
|
1005
1038
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
1006
|
-
S(t.$slots, "legend", { legend:
|
|
1039
|
+
S(t.$slots, "legend", { legend: rt.value }, void 0, !0)
|
|
1007
1040
|
], 512)
|
|
1008
1041
|
], 8, ["to"])) : v("", !0),
|
|
1009
1042
|
t.$slots.source ? (o(), n("div", {
|
|
1010
1043
|
key: 6,
|
|
1011
1044
|
ref_key: "source",
|
|
1012
|
-
ref:
|
|
1045
|
+
ref: Me,
|
|
1013
1046
|
dir: "auto"
|
|
1014
1047
|
}, [
|
|
1015
1048
|
S(t.$slots, "source", {}, void 0, !0)
|
|
1016
1049
|
], 512)) : v("", !0),
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}, {
|
|
1033
|
-
content: L(() => [
|
|
1034
|
-
(o(), N(i(St), {
|
|
1035
|
-
key: `table_${Te.value}`,
|
|
1036
|
-
colNames: X.value.colNames,
|
|
1037
|
-
head: X.value.head,
|
|
1038
|
-
body: X.value.body,
|
|
1039
|
-
config: X.value.config,
|
|
1040
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1041
|
-
onClose: a[3] || (a[3] = (l) => B.value.showTable = !1)
|
|
1050
|
+
Ge.value ? (o(), D(ul(K.value.component), sl({ key: 7 }, K.value.props, {
|
|
1051
|
+
ref_key: "tableUnit",
|
|
1052
|
+
ref: Y,
|
|
1053
|
+
onClose: a[5] || (a[5] = (l) => E.value.showTable = !1)
|
|
1054
|
+
}), bt({
|
|
1055
|
+
content: k(() => [
|
|
1056
|
+
(o(), D(i(Dt), {
|
|
1057
|
+
key: `table_${Fe.value}`,
|
|
1058
|
+
colNames: W.value.colNames,
|
|
1059
|
+
head: W.value.head,
|
|
1060
|
+
body: W.value.body,
|
|
1061
|
+
config: W.value.config,
|
|
1062
|
+
title: e.value.table.useDialog ? "" : K.value.title,
|
|
1063
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1064
|
+
onClose: a[4] || (a[4] = (l) => E.value.showTable = !1)
|
|
1042
1065
|
}, {
|
|
1043
|
-
th:
|
|
1044
|
-
|
|
1066
|
+
th: k(({ th: l }) => [
|
|
1067
|
+
$e(m(l.name ?? l), 1)
|
|
1045
1068
|
]),
|
|
1046
|
-
td:
|
|
1047
|
-
l.value === null ? (o(), n("span",
|
|
1048
|
-
|
|
1069
|
+
td: k(({ td: l }) => [
|
|
1070
|
+
l.value === null ? (o(), n("span", La, "-")) : (o(), n("b", _a, 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)),
|
|
1071
|
+
b("span", null, m(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1049
1072
|
]),
|
|
1050
1073
|
_: 1
|
|
1051
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1074
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1052
1075
|
]),
|
|
1053
|
-
_:
|
|
1054
|
-
},
|
|
1055
|
-
|
|
1076
|
+
_: 2
|
|
1077
|
+
}, [
|
|
1078
|
+
e.value.table.useDialog ? {
|
|
1079
|
+
name: "title",
|
|
1080
|
+
fn: k(() => [
|
|
1081
|
+
$e(m(K.value.title), 1)
|
|
1082
|
+
]),
|
|
1083
|
+
key: "0"
|
|
1084
|
+
} : void 0,
|
|
1085
|
+
e.value.table.useDialog ? {
|
|
1086
|
+
name: "actions",
|
|
1087
|
+
fn: k(() => [
|
|
1088
|
+
b("button", {
|
|
1089
|
+
tabindex: "0",
|
|
1090
|
+
class: "vue-ui-user-options-button",
|
|
1091
|
+
onClick: a[3] || (a[3] = (l) => Le(e.value.userOptions.callbacks.csv))
|
|
1092
|
+
}, [
|
|
1093
|
+
mt(i(Tt), {
|
|
1094
|
+
name: "excel",
|
|
1095
|
+
stroke: K.value.props.color
|
|
1096
|
+
}, null, 8, ["stroke"])
|
|
1097
|
+
])
|
|
1098
|
+
]),
|
|
1099
|
+
key: "1"
|
|
1100
|
+
} : void 0
|
|
1101
|
+
]), 1040)) : v("", !0),
|
|
1102
|
+
e.value.style.chart.dialog.show ? (o(), D(i(De), {
|
|
1056
1103
|
key: 8,
|
|
1057
1104
|
ref_key: "dialog",
|
|
1058
|
-
ref:
|
|
1059
|
-
onClose: a[
|
|
1060
|
-
|
|
1105
|
+
ref: Ae,
|
|
1106
|
+
onClose: a[6] || (a[6] = (l) => {
|
|
1107
|
+
B.value = null, de.value = !1, le.value = null, g.value = null, J.value = null;
|
|
1061
1108
|
}),
|
|
1062
1109
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1063
1110
|
color: e.value.style.chart.dialog.color,
|
|
1064
1111
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1065
1112
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1066
|
-
isFullscreen:
|
|
1067
|
-
fullscreenParent:
|
|
1113
|
+
isFullscreen: H.value,
|
|
1114
|
+
fullscreenParent: O.value
|
|
1068
1115
|
}, {
|
|
1069
|
-
title:
|
|
1070
|
-
|
|
1116
|
+
title: k(() => [
|
|
1117
|
+
$e(m(L.value[Number(B.value.index)] ? L.value[Number(B.value.index)].text : ""), 1)
|
|
1071
1118
|
]),
|
|
1072
|
-
|
|
1073
|
-
|
|
1119
|
+
content: k(() => [
|
|
1120
|
+
B.value ? (o(), D(i(Ft), {
|
|
1074
1121
|
key: 0,
|
|
1075
|
-
config:
|
|
1076
|
-
dataset:
|
|
1122
|
+
config: yt.value,
|
|
1123
|
+
dataset: ht.value
|
|
1077
1124
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1078
1125
|
]),
|
|
1079
1126
|
_: 1
|
|
1080
1127
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1081
|
-
i(
|
|
1082
|
-
], 46,
|
|
1128
|
+
i(je) ? (o(), D(_l, { key: 9 })) : v("", !0)
|
|
1129
|
+
], 46, Ol));
|
|
1083
1130
|
}
|
|
1084
|
-
},
|
|
1131
|
+
}, Ha = /* @__PURE__ */ Pl(Aa, [["__scopeId", "data-v-b160d8ca"]]);
|
|
1085
1132
|
export {
|
|
1086
|
-
|
|
1133
|
+
Ha as default
|
|
1087
1134
|
};
|