vue-data-ui 2.13.3 → 2.13.5-beta.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-BE9mfJkL.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-B9pXvCsc.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-5s68maMg.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-BGBMbOup.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-C8F2aovs.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-CoAmfx-7.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DqqOehOr.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-BP504Bvs.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CXfm6LDW.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CbwWTjj8.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/Slicer-B-5jXhhw.js +577 -0
- package/dist/{SparkTooltip-HSZVAB1L.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-VtPtUhFq.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-Buu8aWuU.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-7VcV_QUc.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-BjOvlJis.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-ClKzlGeA.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-edeP1M3x.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-2Tyxymwm.js → pdf-DTB7aasS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-RNi-Fxfm.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-B3nKJKAm.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-BfYXPWao.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-4eGejORW.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-C4DquMtU.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dvrd6Gun.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-Db5OBDjC.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-BlT3571K.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-0aDroQCS.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-Dav_41vI.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-CosLSi7b.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-BxHp31c3.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-BVbRVfDq.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-ByPGYWlO.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-cC6brbws.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Bb-6Adj7.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-B3WltwRF.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-21zgSmm1.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-BRRWW41S.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-1nJK3SOO.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-Bo78n4pQ.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-DViqZ_WR.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-B_8skcc5.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-B06tu-EV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-9cZQCsYz.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-q9GGP9lk.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-D6hwxL-7.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader-5K1b5iwf.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-CZJZM3v3.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-B4ysiT_U.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Bp4pT3D5.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BnCFgrkZ.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B_BhXrKI.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-GclnmYO6.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-CFaBCkfP.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-BA45g7F0.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-hTWz-pBq.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-CkOaN_CX.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-B2BIUDB-.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-CSO7Zd_g.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-17gG4jRb.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-EoGn9JbB.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-C_HkNW2f.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-AXaOXuBl.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWZCWNKx.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZVcBexd.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BrCxiefW.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-CFwBsRfj.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-bwY9BxUo.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-C02lCys6.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-C04CtiEi.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-IERP9tp0.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgXchDEY.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-lf9mJ8LP.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-BZLtxymy.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-Cu1TXwev.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-BVyxf-77.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-C_euYHER.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-BW6LSfBe.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-DoARpgpJ.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-BVmpg5X_.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DzbMOJbm.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-DD5417b2.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-9m7qMGHS.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/Slicer-BNnP0Y2C.js +0 -537
- package/dist/vue-ui-stackbar-Bgc7lS0v.js +0 -1132
|
@@ -1,24 +1,25 @@
|
|
|
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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as E, computed as m, ref as h, onMounted as kt, watch as Xe, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as ee, normalizeClass as D, createBlock as P, createCommentVNode as c, renderSlot as z, createSlots as Ct, withCtx as _, normalizeProps as j, guardReactiveProps as Y, createVNode as _t, createElementVNode as w, Fragment as L, renderList as A, toDisplayString as p, createTextVNode as de, nextTick as q } from "vue";
|
|
2
|
+
import { u as wt, o as St, e as te, g as $t, c as Ge, t as zt, p as le, a as Lt, C as We, b as At, d as he, H as It, D as je, m as ye, X as Nt, s as J, E as Pt, i as ge, f as ae, j as Dt, k as Ft, n as Ye, q as Ot, r as Et, I as qe, J as Tt } from "./index-C137VZkI.js";
|
|
3
|
+
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as Je } from "./useNestedProp-ZNu8JrRX.js";
|
|
5
|
+
import { u as Ht } from "./usePrinter-B63T3abI.js";
|
|
6
|
+
import { u as Rt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
7
|
+
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import Ut from "./Legend-DwNuhYnG.js";
|
|
9
|
+
import { S as Bt } from "./Slicer-B-5jXhhw.js";
|
|
10
|
+
import Xt from "./Title-BoKeR6i0.js";
|
|
11
|
+
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Wt = ["id"], jt = ["xmlns", "viewBox"], Yt = ["x", "y", "width", "height"], qt = ["id"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = { key: 0 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = {
|
|
12
13
|
key: 3,
|
|
13
|
-
class: /* @__PURE__ */
|
|
14
|
-
},
|
|
14
|
+
class: /* @__PURE__ */ D({ "donut-opacity": !0 })
|
|
15
|
+
}, cl = ["text-anchor", "font-size", "fill", "transform"], vl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], dl = { key: 1 }, hl = ["cx", "cy", "r", "fill"], yl = { key: 0 }, gl = { key: 0 }, fl = ["d", "stroke"], ml = ["text-anchor", "x", "y", "fill"], bl = ["cx", "cy", "r", "fill"], pl = { key: 0 }, xl = ["cx", "cy", "fill"], kl = { key: 1 }, Cl = ["d", "fill", "stroke"], _l = { key: 2 }, wl = ["d", "fill", "stroke"], Sl = ["x", "y", "font-size", "fill"], $l = ["x", "y", "width", "height", "fill"], zl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Ll = {
|
|
15
16
|
key: 5,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
}, Al = ["onClick"],
|
|
18
|
+
}, Al = ["onClick"], Il = { key: 0 }, Nl = { key: 1 }, Pl = {
|
|
18
19
|
key: 9,
|
|
19
20
|
ref: "source",
|
|
20
21
|
dir: "auto"
|
|
21
|
-
},
|
|
22
|
+
}, Dl = { key: 0 }, Fl = { key: 1 }, Ol = {
|
|
22
23
|
__name: "vue-ui-donut-evolution",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,81 +36,81 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
39
|
+
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
40
|
+
const et = E(() => import("./vue-ui-accordion-BI2rBS5z.js")), tt = E(() => import("./BaseDraggableDialog-IYfaPzLA.js")), lt = E(() => import("./DataTable-CuFlXUxm.js")), at = E(() => import("./PackageVersion-1psmmuzo.js")), ot = E(() => import("./PenAndPaper-DgUkj01g.js")), ut = E(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), nt = E(() => import("./UserOptions-NrArsCuC.js")), st = E(() => import("./vue-ui-donut-_kVdFrZR.js")), { vue_ui_donut_evolution: rt } = wt(), b = Ke, K = m(() => !!b.dataset && b.dataset.length), y = h({
|
|
40
41
|
start: 0,
|
|
41
|
-
end: Math.max(...
|
|
42
|
+
end: Math.max(...b.dataset.map((t) => t.values.length))
|
|
42
43
|
});
|
|
43
|
-
function
|
|
44
|
-
|
|
44
|
+
function fe() {
|
|
45
|
+
me();
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
-
async function
|
|
48
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
47
|
+
const V = h(null);
|
|
48
|
+
async function me() {
|
|
49
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && V.value ? (e.value.style.chart.zoom.startIndex !== null && (await q(), await q(), V.value && V.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await q(), await q(), V.value && V.value.setEndValue(it(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
|
|
49
50
|
start: 0,
|
|
50
51
|
end: O.value
|
|
51
|
-
},
|
|
52
|
+
}, xe.value += 1);
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function it(t) {
|
|
54
55
|
const a = O.value;
|
|
55
56
|
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;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
kt(() => {
|
|
59
|
+
be();
|
|
59
60
|
});
|
|
60
|
-
function
|
|
61
|
-
|
|
61
|
+
function be() {
|
|
62
|
+
St(b.dataset) ? te({
|
|
62
63
|
componentName: "VueUiDonutEvolution",
|
|
63
64
|
type: "dataset"
|
|
64
|
-
}) :
|
|
65
|
-
|
|
65
|
+
}) : b.dataset.length && b.dataset.forEach((t, a) => {
|
|
66
|
+
$t({
|
|
66
67
|
datasetObject: t,
|
|
67
68
|
requiredAttributes: ["name", "values"]
|
|
68
69
|
}).forEach((l) => {
|
|
69
|
-
|
|
70
|
+
te({
|
|
70
71
|
componentName: "VueUiDonutEvolution",
|
|
71
72
|
type: "datasetSerieAttribute",
|
|
72
73
|
property: l,
|
|
73
74
|
index: a
|
|
74
75
|
});
|
|
75
76
|
});
|
|
76
|
-
}),
|
|
77
|
+
}), me();
|
|
77
78
|
}
|
|
78
|
-
const
|
|
79
|
-
get: () =>
|
|
79
|
+
const H = h(Ge()), x = h([]), g = h(null), Q = h(null), oe = h(!1), T = h(null), ue = h(null), ct = h(null), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = h(0), we = Ze, e = m({
|
|
80
|
+
get: () => Le(),
|
|
80
81
|
set: (t) => t
|
|
81
|
-
}), { userOptionsVisible:
|
|
82
|
-
function
|
|
83
|
-
const t =
|
|
84
|
-
userConfig:
|
|
85
|
-
defaultConfig:
|
|
82
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: $e } = Mt({ config: e.value }), { svgRef: ze } = Vt({ config: e.value.style.chart.title });
|
|
83
|
+
function Le() {
|
|
84
|
+
const t = Je({
|
|
85
|
+
userConfig: b.config,
|
|
86
|
+
defaultConfig: rt
|
|
86
87
|
});
|
|
87
88
|
let a = {};
|
|
88
89
|
return t.theme ? a = {
|
|
89
|
-
...
|
|
90
|
-
userConfig:
|
|
90
|
+
...Je({
|
|
91
|
+
userConfig: Lt.vue_ui_donut_evolution[t.theme] || b.config,
|
|
91
92
|
defaultConfig: t
|
|
92
93
|
}),
|
|
93
|
-
customPalette:
|
|
94
|
-
} : a = t,
|
|
94
|
+
customPalette: zt[t.theme] || le
|
|
95
|
+
} : a = t, b.config && We(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 && We(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
e.value =
|
|
98
|
-
}, { deep: !0 }),
|
|
99
|
-
|
|
97
|
+
Xe(() => b.config, (t) => {
|
|
98
|
+
e.value = Le(), ne.value = !e.value.userOptions.showOnChartHover, be(), ke.value += 1, Ce.value += 1, _e.value += 1, X.value.showTable = e.value.table.show;
|
|
99
|
+
}, { deep: !0 }), Xe(() => b.dataset, (t) => {
|
|
100
|
+
fe();
|
|
100
101
|
}, { deep: !0 });
|
|
101
|
-
const { isPrinting:
|
|
102
|
-
elementId:
|
|
102
|
+
const { isPrinting: Ae, isImaging: Ie, generatePdf: Ne, generateImage: Pe } = Ht({
|
|
103
|
+
elementId: H.value,
|
|
103
104
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
104
105
|
options: e.value.userOptions.print
|
|
105
|
-
}),
|
|
106
|
+
}), vt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), dt = m(() => At(e.value.customPalette)), X = h({
|
|
106
107
|
showTable: e.value.table.show
|
|
107
|
-
}), i =
|
|
108
|
+
}), i = m(() => ({
|
|
108
109
|
top: e.value.style.chart.layout.padding.top,
|
|
109
110
|
right: e.value.style.chart.layout.padding.right,
|
|
110
111
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
111
112
|
left: e.value.style.chart.layout.padding.left
|
|
112
|
-
})), v =
|
|
113
|
+
})), v = m(() => {
|
|
113
114
|
const t = e.value.style.chart.layout.height, a = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = a - i.value.left - i.value.right;
|
|
114
115
|
return {
|
|
115
116
|
absoluteHeight: t,
|
|
@@ -119,64 +120,70 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
119
120
|
height: l,
|
|
120
121
|
width: s
|
|
121
122
|
};
|
|
122
|
-
}),
|
|
123
|
-
[null, void 0].includes(t.name) &&
|
|
123
|
+
}), F = m(() => (b.dataset.forEach((t, a) => {
|
|
124
|
+
[null, void 0].includes(t.name) && te({
|
|
124
125
|
componentName: "VueUiDonutEvolution",
|
|
125
126
|
type: "datasetSerieAttribute",
|
|
126
127
|
property: "name",
|
|
127
128
|
index: a
|
|
128
|
-
}), [null, void 0].includes(t.values) &&
|
|
129
|
+
}), [null, void 0].includes(t.values) && te({
|
|
129
130
|
componentName: "VueUiDonutEvolution",
|
|
130
131
|
type: "datasetSerieAttribute",
|
|
131
132
|
property: "values",
|
|
132
133
|
index: a
|
|
133
134
|
});
|
|
134
|
-
}),
|
|
135
|
+
}), b.dataset.map((t, a) => ({
|
|
135
136
|
...t,
|
|
136
|
-
values:
|
|
137
|
-
color:
|
|
137
|
+
values: It(t.values),
|
|
138
|
+
color: he(t.color) || dt.value[a] || le[a] || le[a % le.length],
|
|
138
139
|
length: (t.values || []).length,
|
|
139
|
-
uid:
|
|
140
|
-
})))),
|
|
140
|
+
uid: Ge()
|
|
141
|
+
})))), G = m(() => F.value.filter((t) => !x.value.includes(t.uid)).map((t) => ({
|
|
141
142
|
...t,
|
|
142
|
-
values: t.values.filter((a, l) => l >=
|
|
143
|
-
}))), O =
|
|
143
|
+
values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
|
|
144
|
+
}))), O = m(() => Math.max(...G.value.map((t) => t.length))), N = m(() => Rt({
|
|
145
|
+
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
146
|
+
maxDatapoints: O.value,
|
|
147
|
+
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.formatter,
|
|
148
|
+
start: y.value.start,
|
|
149
|
+
end: y.value.end
|
|
150
|
+
})), S = m(() => v.value.width / (y.value.end - y.value.start)), k = m(() => {
|
|
144
151
|
const t = [];
|
|
145
|
-
for (let u = 0; u <
|
|
146
|
-
const f =
|
|
152
|
+
for (let u = 0; u < y.value.end - y.value.start; u += 1) {
|
|
153
|
+
const f = G.value.map((I) => I.values[u] ?? null), d = f.filter((I) => [void 0, null].includes(I)).length === f.length, C = f.reduce((I, $) => I + $, 0), ve = f.map((I) => I / C), B = i.value.left + S.value * u + S.value / 2;
|
|
147
154
|
t.push({
|
|
148
155
|
index: u,
|
|
149
|
-
percentages:
|
|
156
|
+
percentages: ve,
|
|
150
157
|
subtotal: d || C < 0 ? null : C,
|
|
151
158
|
values: f,
|
|
152
|
-
x:
|
|
159
|
+
x: B
|
|
153
160
|
});
|
|
154
161
|
}
|
|
155
162
|
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
156
163
|
return t.map((u, f) => {
|
|
157
|
-
const d = S.value / 2 * 0.7, C = d > v.value.width / 16 ? v.value.width / 16 : d,
|
|
164
|
+
const d = S.value / 2 * 0.7, C = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : C, B = t.length > 4 ? d * 2 : d * 2 > S.value / 2 * 0.7 ? S.value / 2 * 0.7 : d * 2, I = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / je(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
158
165
|
return {
|
|
159
166
|
...u,
|
|
160
167
|
y: I,
|
|
161
168
|
radius: C,
|
|
162
|
-
activeRadius:
|
|
163
|
-
hoverRadius:
|
|
164
|
-
donut:
|
|
165
|
-
series:
|
|
169
|
+
activeRadius: ve,
|
|
170
|
+
hoverRadius: B,
|
|
171
|
+
donut: ye({
|
|
172
|
+
series: G.value.map(($, Be) => ({
|
|
166
173
|
color: $.color,
|
|
167
174
|
name: $.name,
|
|
168
175
|
value: $.values[f] ?? 0
|
|
169
176
|
}))
|
|
170
177
|
}, u.x, I, C, C, 1.99999, 2, 1, 360, 105.25, C / 2),
|
|
171
|
-
donutHover:
|
|
172
|
-
series:
|
|
178
|
+
donutHover: ye({
|
|
179
|
+
series: G.value.map(($, Be) => ({
|
|
173
180
|
color: $.color,
|
|
174
181
|
name: $.name,
|
|
175
182
|
value: $.values[f] ?? 0
|
|
176
183
|
}))
|
|
177
|
-
}, u.x, I,
|
|
178
|
-
donutFocus:
|
|
179
|
-
series:
|
|
184
|
+
}, u.x, I, B, B, 1.99999, 2, 1, 360, 105.25, B / 2),
|
|
185
|
+
donutFocus: ye({
|
|
186
|
+
series: G.value.map(($, Be) => ({
|
|
180
187
|
color: $.color,
|
|
181
188
|
name: $.name,
|
|
182
189
|
value: $.values[f] ?? 0
|
|
@@ -185,11 +192,11 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
185
192
|
};
|
|
186
193
|
});
|
|
187
194
|
});
|
|
188
|
-
function
|
|
189
|
-
return
|
|
195
|
+
function De(t, a, l) {
|
|
196
|
+
return ge(
|
|
190
197
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
191
198
|
t,
|
|
192
|
-
|
|
199
|
+
ae({
|
|
193
200
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
194
201
|
v: t,
|
|
195
202
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -198,45 +205,45 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
198
205
|
{ datapoint: a, index: l }
|
|
199
206
|
);
|
|
200
207
|
}
|
|
201
|
-
const
|
|
208
|
+
const se = m(() => ({
|
|
202
209
|
max: Math.max(...k.value.map((t) => t.subtotal)),
|
|
203
210
|
min: 0
|
|
204
|
-
})),
|
|
205
|
-
const t = k.value.length === 1 ?
|
|
206
|
-
return
|
|
211
|
+
})), R = m(() => {
|
|
212
|
+
const t = k.value.length === 1 ? se.value.max * 2 : se.value.max;
|
|
213
|
+
return je(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
207
214
|
});
|
|
208
|
-
function
|
|
209
|
-
return t /
|
|
215
|
+
function ht(t) {
|
|
216
|
+
return t / R.value.max;
|
|
210
217
|
}
|
|
211
|
-
const
|
|
212
|
-
y: v.value.absoluteHeight - i.value.bottom - v.value.height *
|
|
218
|
+
const yt = m(() => R.value.ticks.map((t) => ({
|
|
219
|
+
y: v.value.absoluteHeight - i.value.bottom - v.value.height * ht(t),
|
|
213
220
|
value: t
|
|
214
221
|
})));
|
|
215
|
-
function
|
|
216
|
-
return isNaN(t.value /
|
|
222
|
+
function gt(t, a) {
|
|
223
|
+
return isNaN(t.value / qe(a, "value")) ? 0 : (t.value / qe(a, "value") * 100).toFixed(0) + "%";
|
|
217
224
|
}
|
|
218
|
-
function
|
|
219
|
-
g.value = null,
|
|
225
|
+
function Fe() {
|
|
226
|
+
g.value = null, Q.value = null;
|
|
220
227
|
}
|
|
221
|
-
function
|
|
222
|
-
g.value = t.index,
|
|
228
|
+
function ft(t) {
|
|
229
|
+
g.value = t.index, Q.value = t;
|
|
223
230
|
}
|
|
224
|
-
const
|
|
225
|
-
function
|
|
226
|
-
!t.subtotal || !e.value.style.chart.dialog.show || (
|
|
231
|
+
const W = h(null);
|
|
232
|
+
function Oe(t, a) {
|
|
233
|
+
!t.subtotal || !e.value.style.chart.dialog.show || (Q.value = null, g.value = null, oe.value = !0, T.value = t, xt(t), [null, void 0].includes(a) || (W.value = a));
|
|
227
234
|
}
|
|
228
|
-
const
|
|
235
|
+
const Ee = m(() => F.value.map((t, a) => ({
|
|
229
236
|
name: t.name,
|
|
230
|
-
value: t.values.slice(
|
|
237
|
+
value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
|
|
231
238
|
shape: "circle",
|
|
232
239
|
uid: t.uid,
|
|
233
240
|
color: t.color
|
|
234
241
|
})).sort((t, a) => a.value - t.value).map((t) => ({
|
|
235
242
|
...t,
|
|
236
243
|
opacity: x.value.includes(t.uid) ? 0.5 : 1,
|
|
237
|
-
segregate: () =>
|
|
244
|
+
segregate: () => re(t.uid),
|
|
238
245
|
isSegregated: x.value.includes(t.uid)
|
|
239
|
-
}))),
|
|
246
|
+
}))), Te = m(() => k.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), mt = m(() => ({
|
|
240
247
|
cy: "donut-div-legend",
|
|
241
248
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
242
249
|
color: e.value.style.chart.legend.color,
|
|
@@ -244,24 +251,24 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
244
251
|
paddingBottom: 12,
|
|
245
252
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
246
253
|
}));
|
|
247
|
-
function
|
|
254
|
+
function re(t) {
|
|
248
255
|
if (x.value.includes(t))
|
|
249
|
-
x.value = x.value.filter((a) => a !== t),
|
|
256
|
+
x.value = x.value.filter((a) => a !== t), we("selectLegend", null);
|
|
250
257
|
else {
|
|
251
|
-
if (x.value.length ===
|
|
252
|
-
x.value.push(t),
|
|
258
|
+
if (x.value.length === F.value.length - 1) return;
|
|
259
|
+
x.value.push(t), we("selectLegend", F.value.find((a) => a.uid === t));
|
|
253
260
|
}
|
|
254
|
-
|
|
261
|
+
T.value && Oe(k.value.find((a, l) => l === W.value));
|
|
255
262
|
}
|
|
256
|
-
const
|
|
257
|
-
const t = [""].concat(
|
|
263
|
+
const M = m(() => {
|
|
264
|
+
const t = [""].concat(F.value.filter((u) => !x.value.includes(u.uid)).map((u) => ({
|
|
258
265
|
name: u.name,
|
|
259
266
|
color: u.color
|
|
260
267
|
}))).concat(["Σ"]);
|
|
261
268
|
let a = [];
|
|
262
269
|
for (let u = 0; u < O.value; u += 1) {
|
|
263
|
-
const f =
|
|
264
|
-
a.push([
|
|
270
|
+
const f = F.value.filter((d) => !x.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, C) => d + C, 0);
|
|
271
|
+
a.push([N[u] ? N[u].text : "-"].concat(F.value.filter((d) => !x.value.includes(d.uid)).map((d) => ({
|
|
265
272
|
value: d.values[u] ?? 0,
|
|
266
273
|
percentage: d.values[u] ? d.values[u] / f * 100 : 0
|
|
267
274
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -280,82 +287,82 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
280
287
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
281
288
|
}, s = [
|
|
282
289
|
e.value.table.columnNames.period
|
|
283
|
-
].concat(
|
|
290
|
+
].concat(F.value.filter((u) => !x.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
284
291
|
return { head: t, body: a, config: l, colNames: s };
|
|
285
292
|
});
|
|
286
|
-
function
|
|
287
|
-
return
|
|
293
|
+
function bt() {
|
|
294
|
+
return F.value;
|
|
288
295
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
291
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...
|
|
292
|
-
t ? t(f) :
|
|
296
|
+
function Ve(t = null) {
|
|
297
|
+
q(() => {
|
|
298
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...M.value.head.map((d) => d.name ?? d)], s = [...M.value.body.map((d) => d.map((C) => C.value ?? C))], u = a.concat([l]).concat(s), f = Ot(u);
|
|
299
|
+
t ? t(f) : Et({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
293
300
|
});
|
|
294
301
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
|
|
302
|
+
const U = h(!1);
|
|
303
|
+
function pt(t) {
|
|
304
|
+
U.value = t, pe.value += 1;
|
|
298
305
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
306
|
+
function He() {
|
|
307
|
+
X.value.showTable = !X.value.showTable;
|
|
301
308
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
309
|
+
const Z = h(!1);
|
|
310
|
+
function ie() {
|
|
311
|
+
Z.value = !Z.value;
|
|
305
312
|
}
|
|
306
|
-
function
|
|
313
|
+
function Re(t) {
|
|
307
314
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
308
315
|
}
|
|
309
|
-
const
|
|
310
|
-
function
|
|
311
|
-
|
|
316
|
+
const Me = h([]), Ue = h({}), ce = h(null);
|
|
317
|
+
function xt(t) {
|
|
318
|
+
Me.value = t.donut.map((a) => ({
|
|
312
319
|
name: a.name,
|
|
313
320
|
values: [a.value],
|
|
314
321
|
color: a.color
|
|
315
|
-
})),
|
|
322
|
+
})), Ue.value = Tt({
|
|
316
323
|
...e.value.style.chart.dialog.donutChart,
|
|
317
324
|
responsive: !0,
|
|
318
325
|
theme: e.value.theme
|
|
319
|
-
}),
|
|
326
|
+
}), ce.value && ce.value.open();
|
|
320
327
|
}
|
|
321
|
-
return
|
|
322
|
-
getData:
|
|
323
|
-
generatePdf:
|
|
324
|
-
generateCsv:
|
|
325
|
-
generateImage:
|
|
326
|
-
toggleTable:
|
|
327
|
-
toggleAnnotator:
|
|
328
|
+
return Qe({
|
|
329
|
+
getData: bt,
|
|
330
|
+
generatePdf: Ne,
|
|
331
|
+
generateCsv: Ve,
|
|
332
|
+
generateImage: Pe,
|
|
333
|
+
toggleTable: He,
|
|
334
|
+
toggleAnnotator: ie
|
|
328
335
|
}), (t, a) => (o(), n("div", {
|
|
329
336
|
ref_key: "donutEvolutionChart",
|
|
330
|
-
ref:
|
|
331
|
-
class:
|
|
332
|
-
style:
|
|
333
|
-
id:
|
|
334
|
-
onMouseenter: a[5] || (a[5] = () => r(
|
|
335
|
-
onMouseleave: a[6] || (a[6] = () => r(
|
|
337
|
+
ref: ue,
|
|
338
|
+
class: D(`vue-ui-donut-evolution ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
339
|
+
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
340
|
+
id: H.value,
|
|
341
|
+
onMouseenter: a[5] || (a[5] = () => r(Se)(!0)),
|
|
342
|
+
onMouseleave: a[6] || (a[6] = () => r(Se)(!1))
|
|
336
343
|
}, [
|
|
337
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
344
|
+
e.value.userOptions.buttons.annotator ? (o(), P(r(ot), {
|
|
338
345
|
key: 0,
|
|
339
|
-
svgRef: r(
|
|
346
|
+
svgRef: r(ze),
|
|
340
347
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
341
348
|
color: e.value.style.chart.color,
|
|
342
|
-
active:
|
|
343
|
-
onClose:
|
|
349
|
+
active: Z.value,
|
|
350
|
+
onClose: ie
|
|
344
351
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
345
|
-
|
|
352
|
+
vt.value ? (o(), n("div", {
|
|
346
353
|
key: 1,
|
|
347
354
|
ref_key: "noTitle",
|
|
348
|
-
ref:
|
|
355
|
+
ref: ct,
|
|
349
356
|
class: "vue-data-ui-no-title-space",
|
|
350
357
|
style: "height:36px; width: 100%;background:transparent"
|
|
351
358
|
}, null, 512)) : c("", !0),
|
|
352
359
|
e.value.style.chart.title.text ? (o(), n("div", {
|
|
353
360
|
key: 2,
|
|
354
361
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
355
|
-
onMouseleave:
|
|
362
|
+
onMouseleave: Fe
|
|
356
363
|
}, [
|
|
357
|
-
(o(),
|
|
358
|
-
key: `title_${
|
|
364
|
+
(o(), P(Xt, {
|
|
365
|
+
key: `title_${ke.value}`,
|
|
359
366
|
config: {
|
|
360
367
|
title: {
|
|
361
368
|
cy: "donut-evolution-div-title",
|
|
@@ -368,96 +375,96 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
368
375
|
}
|
|
369
376
|
}, null, 8, ["config"]))
|
|
370
377
|
], 32)) : c("", !0),
|
|
371
|
-
e.value.userOptions.show &&
|
|
378
|
+
e.value.userOptions.show && K.value && (r($e) || r(ne)) ? (o(), P(r(nt), {
|
|
372
379
|
ref: "details",
|
|
373
|
-
key: `user_options_${
|
|
380
|
+
key: `user_options_${pe.value}`,
|
|
374
381
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
375
382
|
color: e.value.style.chart.color,
|
|
376
|
-
isPrinting: r(
|
|
377
|
-
isImaging: r(
|
|
378
|
-
uid:
|
|
383
|
+
isPrinting: r(Ae),
|
|
384
|
+
isImaging: r(Ie),
|
|
385
|
+
uid: H.value,
|
|
379
386
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
380
387
|
hasImg: e.value.userOptions.buttons.img,
|
|
381
388
|
hasXls: e.value.userOptions.buttons.csv,
|
|
382
389
|
hasTable: e.value.userOptions.buttons.table,
|
|
383
390
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
384
|
-
isFullscreen:
|
|
391
|
+
isFullscreen: U.value,
|
|
385
392
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
386
|
-
chartElement:
|
|
393
|
+
chartElement: ue.value,
|
|
387
394
|
position: e.value.userOptions.position,
|
|
388
395
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
389
|
-
isAnnotation:
|
|
396
|
+
isAnnotation: Z.value,
|
|
390
397
|
callbacks: e.value.userOptions.callbacks,
|
|
391
|
-
onToggleFullscreen:
|
|
392
|
-
onGeneratePdf: r(
|
|
393
|
-
onGenerateCsv:
|
|
394
|
-
onGenerateImage: r(
|
|
395
|
-
onToggleTable:
|
|
396
|
-
onToggleAnnotator:
|
|
397
|
-
style:
|
|
398
|
-
visibility: r(
|
|
398
|
+
onToggleFullscreen: pt,
|
|
399
|
+
onGeneratePdf: r(Ne),
|
|
400
|
+
onGenerateCsv: Ve,
|
|
401
|
+
onGenerateImage: r(Pe),
|
|
402
|
+
onToggleTable: He,
|
|
403
|
+
onToggleAnnotator: ie,
|
|
404
|
+
style: ee({
|
|
405
|
+
visibility: r($e) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
399
406
|
})
|
|
400
|
-
},
|
|
407
|
+
}, Ct({ _: 2 }, [
|
|
401
408
|
t.$slots.menuIcon ? {
|
|
402
409
|
name: "menuIcon",
|
|
403
410
|
fn: _(({ isOpen: l, color: s }) => [
|
|
404
|
-
|
|
411
|
+
z(t.$slots, "menuIcon", j(Y({ isOpen: l, color: s })), void 0, !0)
|
|
405
412
|
]),
|
|
406
413
|
key: "0"
|
|
407
414
|
} : void 0,
|
|
408
415
|
t.$slots.optionPdf ? {
|
|
409
416
|
name: "optionPdf",
|
|
410
417
|
fn: _(() => [
|
|
411
|
-
|
|
418
|
+
z(t.$slots, "optionPdf", {}, void 0, !0)
|
|
412
419
|
]),
|
|
413
420
|
key: "1"
|
|
414
421
|
} : void 0,
|
|
415
422
|
t.$slots.optionCsv ? {
|
|
416
423
|
name: "optionCsv",
|
|
417
424
|
fn: _(() => [
|
|
418
|
-
|
|
425
|
+
z(t.$slots, "optionCsv", {}, void 0, !0)
|
|
419
426
|
]),
|
|
420
427
|
key: "2"
|
|
421
428
|
} : void 0,
|
|
422
429
|
t.$slots.optionImg ? {
|
|
423
430
|
name: "optionImg",
|
|
424
431
|
fn: _(() => [
|
|
425
|
-
|
|
432
|
+
z(t.$slots, "optionImg", {}, void 0, !0)
|
|
426
433
|
]),
|
|
427
434
|
key: "3"
|
|
428
435
|
} : void 0,
|
|
429
436
|
t.$slots.optionTable ? {
|
|
430
437
|
name: "optionTable",
|
|
431
438
|
fn: _(() => [
|
|
432
|
-
|
|
439
|
+
z(t.$slots, "optionTable", {}, void 0, !0)
|
|
433
440
|
]),
|
|
434
441
|
key: "4"
|
|
435
442
|
} : void 0,
|
|
436
443
|
t.$slots.optionFullscreen ? {
|
|
437
444
|
name: "optionFullscreen",
|
|
438
445
|
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
439
|
-
|
|
446
|
+
z(t.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
440
447
|
]),
|
|
441
448
|
key: "5"
|
|
442
449
|
} : void 0,
|
|
443
450
|
t.$slots.optionAnnotator ? {
|
|
444
451
|
name: "optionAnnotator",
|
|
445
452
|
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
446
|
-
|
|
453
|
+
z(t.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
447
454
|
]),
|
|
448
455
|
key: "6"
|
|
449
456
|
} : void 0
|
|
450
457
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
451
|
-
|
|
458
|
+
K.value ? (o(), n("svg", {
|
|
452
459
|
key: 4,
|
|
453
460
|
ref_key: "svgRef",
|
|
454
|
-
ref:
|
|
455
|
-
xmlns: r(
|
|
456
|
-
class:
|
|
461
|
+
ref: ze,
|
|
462
|
+
xmlns: r(Nt),
|
|
463
|
+
class: D({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
457
464
|
viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
|
|
458
|
-
style:
|
|
465
|
+
style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
459
466
|
}, [
|
|
460
|
-
|
|
467
|
+
_t(r(at)),
|
|
461
468
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
462
469
|
key: 0,
|
|
463
470
|
x: i.value.left,
|
|
@@ -468,11 +475,11 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
468
475
|
pointerEvents: "none"
|
|
469
476
|
}
|
|
470
477
|
}, [
|
|
471
|
-
|
|
472
|
-
], 8,
|
|
478
|
+
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
479
|
+
], 8, Yt)) : c("", !0),
|
|
473
480
|
w("defs", null, [
|
|
474
481
|
w("linearGradient", {
|
|
475
|
-
id: `hover_${
|
|
482
|
+
id: `hover_${H.value}`,
|
|
476
483
|
x1: "0%",
|
|
477
484
|
y1: "0%",
|
|
478
485
|
x2: "0%",
|
|
@@ -480,31 +487,31 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
480
487
|
}, [
|
|
481
488
|
w("stop", {
|
|
482
489
|
offset: "0%",
|
|
483
|
-
"stop-color": r(
|
|
484
|
-
}, null, 8,
|
|
490
|
+
"stop-color": r(J)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
491
|
+
}, null, 8, Jt),
|
|
485
492
|
w("stop", {
|
|
486
493
|
offset: "100%",
|
|
487
|
-
"stop-color": r(
|
|
488
|
-
}, null, 8,
|
|
489
|
-
], 8,
|
|
494
|
+
"stop-color": r(J)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
495
|
+
}, null, 8, Kt)
|
|
496
|
+
], 8, qt),
|
|
490
497
|
w("radialGradient", {
|
|
491
|
-
id: `focus_${
|
|
498
|
+
id: `focus_${H.value}`
|
|
492
499
|
}, [
|
|
493
500
|
w("stop", {
|
|
494
501
|
offset: "0%",
|
|
495
|
-
"stop-color": r(
|
|
496
|
-
}, null, 8,
|
|
502
|
+
"stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
503
|
+
}, null, 8, Zt),
|
|
497
504
|
w("stop", {
|
|
498
505
|
offset: "77%",
|
|
499
|
-
"stop-color": r(
|
|
500
|
-
}, null, 8,
|
|
506
|
+
"stop-color": r(J)("#FFFFFF", 30)
|
|
507
|
+
}, null, 8, el),
|
|
501
508
|
w("stop", {
|
|
502
509
|
offset: "100%",
|
|
503
|
-
"stop-color": r(
|
|
504
|
-
}, null, 8,
|
|
505
|
-
], 8,
|
|
510
|
+
"stop-color": r(J)(r(he)(e.value.style.chart.backgroundColor), 0)
|
|
511
|
+
}, null, 8, tl)
|
|
512
|
+
], 8, Qt)
|
|
506
513
|
]),
|
|
507
|
-
e.value.style.chart.layout.grid.show ? (o(), n("g",
|
|
514
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", ll, [
|
|
508
515
|
w("line", {
|
|
509
516
|
x1: i.value.left,
|
|
510
517
|
x2: i.value.left,
|
|
@@ -513,7 +520,7 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
513
520
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
514
521
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
515
522
|
"stroke-linecap": "round"
|
|
516
|
-
}, null, 8,
|
|
523
|
+
}, null, 8, al),
|
|
517
524
|
w("line", {
|
|
518
525
|
x1: i.value.left,
|
|
519
526
|
x2: v.value.absoluteWidth - i.value.right,
|
|
@@ -522,9 +529,9 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
522
529
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
523
530
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
524
531
|
"stroke-linecap": "round"
|
|
525
|
-
}, null, 8,
|
|
526
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g",
|
|
527
|
-
(o(!0), n(L, null,
|
|
532
|
+
}, null, 8, ol),
|
|
533
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", ul, [
|
|
534
|
+
(o(!0), n(L, null, A(y.value.end - y.value.start, (l, s) => (o(), n("line", {
|
|
528
535
|
x1: i.value.left + (s + 1) * S.value,
|
|
529
536
|
x2: i.value.left + (s + 1) * S.value,
|
|
530
537
|
y1: i.value.top,
|
|
@@ -532,15 +539,15 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
532
539
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
533
540
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
534
541
|
"stroke-linecap": "round"
|
|
535
|
-
}, null, 8,
|
|
542
|
+
}, null, 8, nl))), 256))
|
|
536
543
|
])) : c("", !0)
|
|
537
544
|
])) : c("", !0),
|
|
538
545
|
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
539
546
|
key: 2,
|
|
540
|
-
class:
|
|
547
|
+
class: D({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
541
548
|
}, [
|
|
542
|
-
(o(!0), n(L, null,
|
|
543
|
-
l.value >=
|
|
549
|
+
(o(!0), n(L, null, A(yt.value, (l, s) => (o(), n("g", null, [
|
|
550
|
+
l.value >= R.value.min && l.value <= R.value.max ? (o(), n("line", {
|
|
544
551
|
key: 0,
|
|
545
552
|
x1: i.value.left,
|
|
546
553
|
x2: i.value.left - 5,
|
|
@@ -548,8 +555,8 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
548
555
|
y2: l.y,
|
|
549
556
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
550
557
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
551
|
-
}, null, 8,
|
|
552
|
-
l.value >=
|
|
558
|
+
}, null, 8, sl)) : c("", !0),
|
|
559
|
+
l.value >= R.value.min && l.value <= R.value.max ? (o(), n("text", {
|
|
553
560
|
key: 1,
|
|
554
561
|
x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
555
562
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -557,34 +564,34 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
557
564
|
"text-anchor": "end",
|
|
558
565
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
559
566
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
560
|
-
}, p(r(
|
|
567
|
+
}, p(r(Pt)(l.value) ? r(ge)(
|
|
561
568
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
562
569
|
l.value,
|
|
563
|
-
r(
|
|
570
|
+
r(ae)({
|
|
564
571
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
565
572
|
v: l.value,
|
|
566
573
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
567
574
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
568
575
|
}),
|
|
569
576
|
{ datapoint: l, seriesIndex: s }
|
|
570
|
-
) : ""), 9,
|
|
577
|
+
) : ""), 9, rl)) : c("", !0)
|
|
571
578
|
]))), 256))
|
|
572
579
|
], 2)) : c("", !0),
|
|
573
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g",
|
|
574
|
-
(o(!0), n(L, null,
|
|
580
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", il, [
|
|
581
|
+
(o(!0), n(L, null, A(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
|
|
575
582
|
e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast ? (o(), n("text", {
|
|
576
583
|
key: 0,
|
|
577
584
|
"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",
|
|
578
585
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
579
586
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
580
587
|
transform: `translate(${i.value.left + S.value * s + S.value / 2}, ${e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY + v.value.absoluteHeight - i.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize * 2}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
581
|
-
}, p(
|
|
588
|
+
}, p(N.value[s] ? N.value[s].text : ""), 9, cl)) : c("", !0)
|
|
582
589
|
]))), 256))
|
|
583
590
|
])) : c("", !0),
|
|
584
|
-
(o(!0), n(L, null,
|
|
591
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", null, [
|
|
585
592
|
e.value.style.chart.layout.line.show && s < k.value.length - 1 && ![l.subtotal, k.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
586
593
|
key: 0,
|
|
587
|
-
class:
|
|
594
|
+
class: D({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
588
595
|
x1: l.x,
|
|
589
596
|
y1: l.y,
|
|
590
597
|
x2: k.value[s + 1].x,
|
|
@@ -593,44 +600,44 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
593
600
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
594
601
|
"stroke-linecap": "round",
|
|
595
602
|
"stroke-linejoin": "round"
|
|
596
|
-
}, null, 10,
|
|
597
|
-
l.subtotal !== null ? (o(), n("g",
|
|
603
|
+
}, null, 10, vl)) : c("", !0),
|
|
604
|
+
l.subtotal !== null ? (o(), n("g", dl, [
|
|
598
605
|
l.subtotal ? (o(), n("circle", {
|
|
599
606
|
key: 0,
|
|
600
607
|
cx: l.x,
|
|
601
608
|
cy: l.y,
|
|
602
609
|
r: l.activeRadius,
|
|
603
610
|
fill: e.value.style.chart.backgroundColor
|
|
604
|
-
}, null, 8,
|
|
611
|
+
}, null, 8, hl)) : c("", !0)
|
|
605
612
|
])) : c("", !0)
|
|
606
613
|
]))), 256)),
|
|
607
|
-
(o(!0), n(L, null,
|
|
608
|
-
class:
|
|
614
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
|
|
615
|
+
class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
609
616
|
}, [
|
|
610
|
-
l.subtotal ? (o(), n("g",
|
|
611
|
-
g.value !== null && g.value === s ? (o(), n("g",
|
|
612
|
-
(o(!0), n(L, null,
|
|
613
|
-
|
|
617
|
+
l.subtotal ? (o(), n("g", yl, [
|
|
618
|
+
g.value !== null && g.value === s ? (o(), n("g", gl, [
|
|
619
|
+
(o(!0), n(L, null, A(l.donutHover, (u) => (o(), n("g", null, [
|
|
620
|
+
Re(u) ? (o(), n("path", {
|
|
614
621
|
key: 0,
|
|
615
|
-
d: r(
|
|
622
|
+
d: r(Dt)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
616
623
|
stroke: u.color,
|
|
617
624
|
"stroke-width": "1",
|
|
618
625
|
"stroke-linecap": "round",
|
|
619
626
|
"stroke-linejoin": "round",
|
|
620
627
|
fill: "none"
|
|
621
|
-
}, null, 8,
|
|
628
|
+
}, null, 8, fl)) : c("", !0)
|
|
622
629
|
]))), 256)),
|
|
623
|
-
(o(!0), n(L, null,
|
|
624
|
-
|
|
630
|
+
(o(!0), n(L, null, A(l.donutHover, (u, f) => (o(), n("g", null, [
|
|
631
|
+
Re(u) ? (o(), n("text", {
|
|
625
632
|
key: 0,
|
|
626
633
|
"data-cy-hover-label": "",
|
|
627
|
-
"text-anchor": r(
|
|
628
|
-
x: r(
|
|
629
|
-
y: r(
|
|
634
|
+
"text-anchor": r(Ye)(u, !0, 0).anchor,
|
|
635
|
+
x: r(Ye)(u, !0, 9).x,
|
|
636
|
+
y: r(Ft)(u, 14, 10),
|
|
630
637
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
631
638
|
"font-size": 8,
|
|
632
639
|
"font-weight": "bold"
|
|
633
|
-
}, p(u.name) + ": " + p(
|
|
640
|
+
}, p(u.name) + ": " + p(gt(u, l.donut)) + " (" + p(u.value === null ? "-" : De(u.value, u, f)) + ") ", 9, ml)) : c("", !0)
|
|
634
641
|
]))), 256)),
|
|
635
642
|
w("g", null, [
|
|
636
643
|
w("circle", {
|
|
@@ -638,40 +645,40 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
638
645
|
cy: l.y,
|
|
639
646
|
r: l.hoverRadius,
|
|
640
647
|
fill: e.value.style.chart.backgroundColor
|
|
641
|
-
}, null, 8,
|
|
648
|
+
}, null, 8, bl)
|
|
642
649
|
])
|
|
643
650
|
])) : c("", !0)
|
|
644
651
|
])) : c("", !0)
|
|
645
652
|
], 2))), 256)),
|
|
646
|
-
(o(!0), n(L, null,
|
|
647
|
-
class:
|
|
653
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
|
|
654
|
+
class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
648
655
|
}, [
|
|
649
|
-
l.subtotal !== null ? (o(), n("g",
|
|
656
|
+
l.subtotal !== null ? (o(), n("g", pl, [
|
|
650
657
|
l.subtotal === 0 ? (o(), n("circle", {
|
|
651
658
|
key: 0,
|
|
652
659
|
cx: l.x,
|
|
653
660
|
cy: l.y,
|
|
654
661
|
r: 3,
|
|
655
662
|
fill: e.value.style.chart.color
|
|
656
|
-
}, null, 8,
|
|
657
|
-
(o(!0), n(L, null,
|
|
663
|
+
}, null, 8, xl)) : g.value !== null && g.value === s ? (o(), n("g", kl, [
|
|
664
|
+
(o(!0), n(L, null, A(l.donutHover, (u, f) => (o(), n("path", {
|
|
658
665
|
d: u.arcSlice,
|
|
659
666
|
fill: `${u.color}`,
|
|
660
667
|
"stroke-width": 1,
|
|
661
668
|
stroke: e.value.style.chart.backgroundColor
|
|
662
|
-
}, null, 8,
|
|
663
|
-
])) : (o(), n("g",
|
|
664
|
-
(o(!0), n(L, null,
|
|
669
|
+
}, null, 8, Cl))), 256))
|
|
670
|
+
])) : (o(), n("g", _l, [
|
|
671
|
+
(o(!0), n(L, null, A(l.donut, (u, f) => (o(), n("path", {
|
|
665
672
|
d: u.arcSlice,
|
|
666
673
|
fill: `${u.color}`,
|
|
667
674
|
"stroke-width": 0.5,
|
|
668
675
|
stroke: e.value.style.chart.backgroundColor
|
|
669
|
-
}, null, 8,
|
|
676
|
+
}, null, 8, wl))), 256))
|
|
670
677
|
]))
|
|
671
678
|
])) : c("", !0)
|
|
672
679
|
], 2))), 256)),
|
|
673
|
-
(o(!0), n(L, null,
|
|
674
|
-
class:
|
|
680
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("g", {
|
|
681
|
+
class: D({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || oe.value && s !== T.value.index })
|
|
675
682
|
}, [
|
|
676
683
|
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
677
684
|
key: 0,
|
|
@@ -681,37 +688,37 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
681
688
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
682
689
|
"font-weight": "bold",
|
|
683
690
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
684
|
-
}, p(
|
|
691
|
+
}, p(De(l.subtotal, l, s)), 9, Sl)) : c("", !0)
|
|
685
692
|
], 2))), 256)),
|
|
686
|
-
(o(!0), n(L, null,
|
|
693
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("rect", {
|
|
687
694
|
x: i.value.left + s * S.value,
|
|
688
695
|
y: i.value.top,
|
|
689
696
|
width: S.value,
|
|
690
697
|
height: v.value.height,
|
|
691
|
-
fill: [g.value,
|
|
692
|
-
class:
|
|
698
|
+
fill: [g.value, W.value].includes(l.index) ? `url(#hover_${H.value})` : "transparent",
|
|
699
|
+
class: D({ "donut-hover": l.subtotal && [g.value, W.value].includes(l.index) }),
|
|
693
700
|
style: {
|
|
694
701
|
pointerEvents: "none"
|
|
695
702
|
}
|
|
696
|
-
}, null, 10,
|
|
697
|
-
(o(!0), n(L, null,
|
|
703
|
+
}, null, 10, $l))), 256)),
|
|
704
|
+
(o(!0), n(L, null, A(k.value, (l, s) => (o(), n("rect", {
|
|
698
705
|
"data-cy-trap": "",
|
|
699
706
|
x: i.value.left + s * S.value,
|
|
700
707
|
y: i.value.top,
|
|
701
708
|
width: S.value,
|
|
702
709
|
height: v.value.height,
|
|
703
710
|
fill: "transparent",
|
|
704
|
-
onMouseenter: (u) =>
|
|
705
|
-
onMouseleave:
|
|
706
|
-
onClick: (u) =>
|
|
707
|
-
class:
|
|
708
|
-
}, null, 42,
|
|
709
|
-
|
|
710
|
-
], 14,
|
|
711
|
-
t.$slots.watermark ? (o(), n("div",
|
|
712
|
-
|
|
711
|
+
onMouseenter: (u) => ft(l),
|
|
712
|
+
onMouseleave: Fe,
|
|
713
|
+
onClick: (u) => Oe(l, s),
|
|
714
|
+
class: D({ "donut-hover": g.value === l.index && l.subtotal })
|
|
715
|
+
}, null, 42, zl))), 256)),
|
|
716
|
+
z(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
717
|
+
], 14, jt)) : c("", !0),
|
|
718
|
+
t.$slots.watermark ? (o(), n("div", Ll, [
|
|
719
|
+
z(t.$slots, "watermark", j(Y({ isPrinting: r(Ae) || r(Ie) })), void 0, !0)
|
|
713
720
|
])) : c("", !0),
|
|
714
|
-
|
|
721
|
+
K.value ? c("", !0) : (o(), P(r(ut), {
|
|
715
722
|
key: 6,
|
|
716
723
|
config: {
|
|
717
724
|
type: "donutEvolution",
|
|
@@ -728,53 +735,53 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
728
735
|
}
|
|
729
736
|
}
|
|
730
737
|
}, null, 8, ["config"])),
|
|
731
|
-
O.value > 1 && e.value.style.chart.zoom.show ? (o(),
|
|
738
|
+
O.value > 1 && e.value.style.chart.zoom.show ? (o(), P(Bt, {
|
|
732
739
|
ref_key: "slicerComponent",
|
|
733
|
-
ref:
|
|
734
|
-
key: `slicer_${
|
|
740
|
+
ref: V,
|
|
741
|
+
key: `slicer_${xe.value}`,
|
|
735
742
|
background: e.value.style.chart.zoom.color,
|
|
736
743
|
borderColor: e.value.style.chart.backgroundColor,
|
|
737
744
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
738
745
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
739
|
-
labelLeft:
|
|
740
|
-
labelRight:
|
|
746
|
+
labelLeft: N.value[0] ? N.value[0].text : "",
|
|
747
|
+
labelRight: N.value.at(-1) ? N.value.at(-1).text : "",
|
|
741
748
|
textColor: e.value.style.chart.color,
|
|
742
749
|
inputColor: e.value.style.chart.zoom.color,
|
|
743
750
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
744
751
|
max: O.value,
|
|
745
752
|
min: 0,
|
|
746
|
-
valueStart:
|
|
747
|
-
valueEnd:
|
|
748
|
-
start:
|
|
749
|
-
"onUpdate:start": a[0] || (a[0] = (l) =>
|
|
750
|
-
end:
|
|
751
|
-
"onUpdate:end": a[1] || (a[1] = (l) =>
|
|
753
|
+
valueStart: y.value.start,
|
|
754
|
+
valueEnd: y.value.end,
|
|
755
|
+
start: y.value.start,
|
|
756
|
+
"onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
|
|
757
|
+
end: y.value.end,
|
|
758
|
+
"onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
|
|
752
759
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
753
760
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
754
761
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
755
762
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
756
|
-
onReset:
|
|
763
|
+
onReset: fe
|
|
757
764
|
}, {
|
|
758
765
|
"reset-action": _(({ reset: l }) => [
|
|
759
|
-
|
|
766
|
+
z(t.$slots, "reset-action", j(Y({ reset: l })), void 0, !0)
|
|
760
767
|
]),
|
|
761
768
|
_: 3
|
|
762
769
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
|
|
763
|
-
e.value.style.chart.legend.show ? (o(),
|
|
764
|
-
key: `legend_${
|
|
765
|
-
legendSet:
|
|
766
|
-
config:
|
|
767
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) =>
|
|
770
|
+
e.value.style.chart.legend.show ? (o(), P(Ut, {
|
|
771
|
+
key: `legend_${_e.value}`,
|
|
772
|
+
legendSet: Ee.value,
|
|
773
|
+
config: mt.value,
|
|
774
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
|
|
768
775
|
}, {
|
|
769
776
|
item: _(({ legend: l, index: s }) => [
|
|
770
777
|
w("div", {
|
|
771
|
-
onClick: (u) =>
|
|
772
|
-
style:
|
|
778
|
+
onClick: (u) => re(l.uid),
|
|
779
|
+
style: ee(`opacity:${x.value.includes(l.uid) ? 0.5 : 1}`)
|
|
773
780
|
}, [
|
|
774
|
-
|
|
781
|
+
de(p(l.name) + ": " + p(r(ge)(
|
|
775
782
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
776
783
|
l.value,
|
|
777
|
-
r(
|
|
784
|
+
r(ae)({
|
|
778
785
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
779
786
|
v: l.value,
|
|
780
787
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -782,8 +789,8 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
782
789
|
}),
|
|
783
790
|
{ datapoint: l, seriesIndex: s }
|
|
784
791
|
)) + " ", 1),
|
|
785
|
-
x.value.includes(l.uid) ? (o(), n("span",
|
|
786
|
-
v: l.value /
|
|
792
|
+
x.value.includes(l.uid) ? (o(), n("span", Nl, " ( - % ) ")) : (o(), n("span", Il, " (" + p(isNaN(l.value / Te.value) ? "-" : r(ae)({
|
|
793
|
+
v: l.value / Te.value * 100,
|
|
787
794
|
s: "%",
|
|
788
795
|
r: e.value.style.chart.legend.roundingPercentage
|
|
789
796
|
})) + ") ", 1))
|
|
@@ -791,15 +798,15 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
791
798
|
]),
|
|
792
799
|
_: 1
|
|
793
800
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
794
|
-
|
|
795
|
-
t.$slots.source ? (o(), n("div",
|
|
796
|
-
|
|
801
|
+
z(t.$slots, "legend", { legend: Ee.value }, void 0, !0),
|
|
802
|
+
t.$slots.source ? (o(), n("div", Pl, [
|
|
803
|
+
z(t.$slots, "source", {}, void 0, !0)
|
|
797
804
|
], 512)) : c("", !0),
|
|
798
|
-
|
|
805
|
+
K.value ? (o(), P(r(et), {
|
|
799
806
|
key: 10,
|
|
800
807
|
hideDetails: "",
|
|
801
808
|
config: {
|
|
802
|
-
open:
|
|
809
|
+
open: X.value.showTable,
|
|
803
810
|
maxHeight: 1e4,
|
|
804
811
|
body: {
|
|
805
812
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -812,20 +819,20 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
812
819
|
}
|
|
813
820
|
}, {
|
|
814
821
|
content: _(() => [
|
|
815
|
-
(o(),
|
|
816
|
-
key: `table_${
|
|
817
|
-
colNames:
|
|
818
|
-
head:
|
|
819
|
-
body:
|
|
820
|
-
config:
|
|
822
|
+
(o(), P(r(lt), {
|
|
823
|
+
key: `table_${Ce.value}`,
|
|
824
|
+
colNames: M.value.colNames,
|
|
825
|
+
head: M.value.head,
|
|
826
|
+
body: M.value.body,
|
|
827
|
+
config: M.value.config,
|
|
821
828
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
822
|
-
onClose: a[3] || (a[3] = (l) =>
|
|
829
|
+
onClose: a[3] || (a[3] = (l) => X.value.showTable = !1)
|
|
823
830
|
}, {
|
|
824
831
|
th: _(({ th: l }) => [
|
|
825
|
-
|
|
832
|
+
de(p(l.name ?? l), 1)
|
|
826
833
|
]),
|
|
827
834
|
td: _(({ td: l }) => [
|
|
828
|
-
l.value === null ? (o(), n("span",
|
|
835
|
+
l.value === null ? (o(), n("span", Dl, "-")) : (o(), n("b", Fl, p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + p(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + p(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
829
836
|
w("span", null, p(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
830
837
|
]),
|
|
831
838
|
_: 1
|
|
@@ -833,35 +840,35 @@ const Xt = ["id"], Gt = ["xmlns", "viewBox"], Wt = ["x", "y", "width", "height"]
|
|
|
833
840
|
]),
|
|
834
841
|
_: 1
|
|
835
842
|
}, 8, ["config"])) : c("", !0),
|
|
836
|
-
e.value.style.chart.dialog.show ? (o(),
|
|
843
|
+
e.value.style.chart.dialog.show ? (o(), P(r(tt), {
|
|
837
844
|
key: 11,
|
|
838
845
|
ref_key: "dialog",
|
|
839
|
-
ref:
|
|
846
|
+
ref: ce,
|
|
840
847
|
onClose: a[4] || (a[4] = (l) => {
|
|
841
|
-
|
|
848
|
+
T.value = null, oe.value = !1, Q.value = null, g.value = null, W.value = null;
|
|
842
849
|
}),
|
|
843
850
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
844
851
|
color: e.value.style.chart.dialog.color,
|
|
845
852
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
846
853
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
847
|
-
isFullscreen:
|
|
848
|
-
fullscreenParent:
|
|
854
|
+
isFullscreen: U.value,
|
|
855
|
+
fullscreenParent: ue.value
|
|
849
856
|
}, {
|
|
850
857
|
title: _(() => [
|
|
851
|
-
|
|
858
|
+
de(p(N.value[Number(T.value.index)] ? N.value[Number(T.value.index)].text : ""), 1)
|
|
852
859
|
]),
|
|
853
860
|
default: _(() => [
|
|
854
|
-
|
|
861
|
+
T.value ? (o(), P(r(st), {
|
|
855
862
|
key: 0,
|
|
856
|
-
config:
|
|
857
|
-
dataset:
|
|
863
|
+
config: Ue.value,
|
|
864
|
+
dataset: Me.value
|
|
858
865
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
859
866
|
]),
|
|
860
867
|
_: 1
|
|
861
868
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
862
|
-
], 46,
|
|
869
|
+
], 46, Wt));
|
|
863
870
|
}
|
|
864
|
-
},
|
|
871
|
+
}, jl = /* @__PURE__ */ Gt(Ol, [["__scopeId", "data-v-4d8857ae"]]);
|
|
865
872
|
export {
|
|
866
|
-
|
|
873
|
+
jl as default
|
|
867
874
|
};
|