vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineAsyncComponent as T, computed as m, ref as h, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Mt } from "./usePrinter-
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as T, computed as m, ref as h, onMounted as Ct, watch as Xe, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as te, normalizeClass as F, createBlock as P, createCommentVNode as c, renderSlot as A, createSlots as _t, withCtx as w, normalizeProps as Y, guardReactiveProps as q, createVNode as wt, createElementVNode as S, Fragment as z, renderList as I, toDisplayString as p, createTextVNode as Ge, nextTick as J } from "vue";
|
|
2
|
+
import { u as St, o as Lt, e as le, g as $t, c as We, t as At, p as ae, a as zt, C as je, b as It, d as de, G as Nt, D as Ye, m as he, X as Pt, s as K, H as Ft, i as ye, f as oe, I as Dt, j as Ot, k as Tt, n as qe, q as Et, r as Vt, J as Je, K as Ht } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
4
|
+
import { u as Ke } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as Mt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Ut } from "./useTimeLabels-Mrr0jrpL.js";
|
|
7
|
+
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import Xt from "./Legend-CYbP3Kfg.js";
|
|
9
|
+
import { S as Gt } from "./Slicer-nrMi5hzj.js";
|
|
10
|
+
import Wt from "./Title-pVYRzQXY.js";
|
|
11
|
+
import jt from "./img-ku4zevVD.js";
|
|
12
|
+
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ol = ["stop-color"], ul = { key: 1 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = { key: 0 }, il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x", "y", "font-size", "fill", "font-weight"], dl = {
|
|
13
14
|
key: 3,
|
|
14
|
-
class: /* @__PURE__ */
|
|
15
|
-
},
|
|
15
|
+
class: /* @__PURE__ */ F({ "donut-opacity": !0 })
|
|
16
|
+
}, hl = { key: 0 }, yl = ["text-anchor", "font-size", "fill", "transform"], gl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], fl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ml = { key: 1 }, bl = ["cx", "cy", "r", "fill"], pl = { key: 0 }, xl = { key: 0 }, kl = ["d", "stroke"], Cl = ["text-anchor", "x", "y", "fill"], _l = ["cx", "cy", "r", "fill"], wl = { key: 0 }, Sl = ["cx", "cy", "fill"], Ll = { key: 1 }, $l = ["d", "fill", "stroke"], Al = { key: 2 }, zl = ["d", "fill", "stroke"], Il = ["x", "y", "font-size", "fill"], Nl = ["x", "y", "width", "height", "fill"], Pl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Fl = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Dl = ["onClick"], Ol = {
|
|
19
20
|
key: 9,
|
|
20
21
|
ref: "source",
|
|
21
22
|
dir: "auto"
|
|
22
|
-
}, Tl = { key: 0 }, El = { key: 1 },
|
|
23
|
+
}, Tl = { key: 0 }, El = { key: 1 }, Vl = {
|
|
23
24
|
__name: "vue-ui-donut-evolution",
|
|
24
25
|
props: {
|
|
25
26
|
config: {
|
|
@@ -36,74 +37,74 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
emits: ["selectLegend"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
40
|
+
setup(Qe, { expose: Ze, emit: et }) {
|
|
41
|
+
const tt = T(() => import("./vue-ui-accordion-DgZK-qDz.js")), lt = T(() => import("./BaseDraggableDialog-CatHZ1ns.js")), at = T(() => import("./DataTable-CgL0Rz0x.js")), ot = T(() => import("./PackageVersion-CAkNkiIG.js")), ut = T(() => import("./PenAndPaper-Cx1-5zdD.js")), nt = T(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), st = T(() => import("./UserOptions-DAsRxxrf.js")), rt = T(() => import("./vue-ui-donut-tECBFvud.js")), { vue_ui_donut_evolution: it } = St(), b = Qe, Q = m(() => !!b.dataset && b.dataset.length), y = h({
|
|
41
42
|
start: 0,
|
|
42
43
|
end: Math.max(...b.dataset.map((t) => t.values.length))
|
|
43
44
|
});
|
|
44
|
-
function
|
|
45
|
-
|
|
45
|
+
function ge() {
|
|
46
|
+
fe();
|
|
46
47
|
}
|
|
47
|
-
const
|
|
48
|
-
async function
|
|
49
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
48
|
+
const V = h(null);
|
|
49
|
+
async function fe() {
|
|
50
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && V.value ? (e.value.style.chart.zoom.startIndex !== null && (await J(), await J(), V.value && V.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await J(), await J(), V.value && V.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (y.value = {
|
|
50
51
|
start: 0,
|
|
51
52
|
end: O.value
|
|
52
|
-
},
|
|
53
|
+
}, pe.value += 1);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
return t >
|
|
55
|
+
function ct(t) {
|
|
56
|
+
const a = O.value;
|
|
57
|
+
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
Ct(() => {
|
|
60
|
+
me();
|
|
60
61
|
});
|
|
61
|
-
function
|
|
62
|
-
Lt(b.dataset) ?
|
|
62
|
+
function me() {
|
|
63
|
+
Lt(b.dataset) ? le({
|
|
63
64
|
componentName: "VueUiDonutEvolution",
|
|
64
65
|
type: "dataset"
|
|
65
|
-
}) : b.dataset.length && b.dataset.forEach((t,
|
|
66
|
-
|
|
66
|
+
}) : b.dataset.length && b.dataset.forEach((t, a) => {
|
|
67
|
+
$t({
|
|
67
68
|
datasetObject: t,
|
|
68
69
|
requiredAttributes: ["name", "values"]
|
|
69
70
|
}).forEach((l) => {
|
|
70
|
-
|
|
71
|
+
le({
|
|
71
72
|
componentName: "VueUiDonutEvolution",
|
|
72
73
|
type: "datasetSerieAttribute",
|
|
73
74
|
property: l,
|
|
74
|
-
index:
|
|
75
|
+
index: a
|
|
75
76
|
});
|
|
76
77
|
});
|
|
77
|
-
}),
|
|
78
|
+
}), fe();
|
|
78
79
|
}
|
|
79
|
-
const
|
|
80
|
-
get: () =>
|
|
80
|
+
const H = h(We()), k = h([]), g = h(null), Z = h(null), ue = h(!1), E = h(null), R = h(null), vt = h(null), be = h(0), pe = h(0), xe = h(0), ke = h(0), Ce = h(0), _e = et, e = m({
|
|
81
|
+
get: () => $e(),
|
|
81
82
|
set: (t) => t
|
|
82
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
83
|
-
function
|
|
84
|
-
const t =
|
|
83
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: we, keepUserOptionState: Se } = Bt({ config: e.value }), { svgRef: Le } = Rt({ config: e.value.style.chart.title });
|
|
84
|
+
function $e() {
|
|
85
|
+
const t = Ke({
|
|
85
86
|
userConfig: b.config,
|
|
86
|
-
defaultConfig:
|
|
87
|
+
defaultConfig: it
|
|
87
88
|
});
|
|
88
|
-
let
|
|
89
|
-
return t.theme ?
|
|
90
|
-
...
|
|
89
|
+
let a = {};
|
|
90
|
+
return t.theme ? a = {
|
|
91
|
+
...Ke({
|
|
91
92
|
userConfig: zt.vue_ui_donut_evolution[t.theme] || b.config,
|
|
92
93
|
defaultConfig: t
|
|
93
94
|
}),
|
|
94
|
-
customPalette: At[t.theme] ||
|
|
95
|
-
} :
|
|
95
|
+
customPalette: At[t.theme] || ae
|
|
96
|
+
} : a = t, b.config && je(b.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, b.config && je(b.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
96
97
|
}
|
|
97
98
|
Xe(() => b.config, (t) => {
|
|
98
|
-
e.value =
|
|
99
|
+
e.value = $e(), ne.value = !e.value.userOptions.showOnChartHover, me(), xe.value += 1, ke.value += 1, Ce.value += 1, G.value.showTable = e.value.table.show;
|
|
99
100
|
}, { deep: !0 }), Xe(() => b.dataset, (t) => {
|
|
100
|
-
|
|
101
|
+
ge();
|
|
101
102
|
}, { deep: !0 });
|
|
102
|
-
const { isPrinting:
|
|
103
|
-
elementId:
|
|
103
|
+
const { isPrinting: Ae, isImaging: ze, generatePdf: Ie, generateImage: Ne } = Mt({
|
|
104
|
+
elementId: H.value,
|
|
104
105
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
105
106
|
options: e.value.userOptions.print
|
|
106
|
-
}),
|
|
107
|
+
}), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = m(() => It(e.value.customPalette)), G = h({
|
|
107
108
|
showTable: e.value.table.show
|
|
108
109
|
}), i = m(() => ({
|
|
109
110
|
top: e.value.style.chart.layout.padding.top,
|
|
@@ -111,98 +112,98 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
111
112
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
112
113
|
left: e.value.style.chart.layout.padding.left
|
|
113
114
|
})), v = m(() => {
|
|
114
|
-
const t = e.value.style.chart.layout.height,
|
|
115
|
+
const t = e.value.style.chart.layout.height, a = e.value.style.chart.layout.width, l = t - i.value.top - i.value.bottom, s = a - i.value.left - i.value.right;
|
|
115
116
|
return {
|
|
116
117
|
absoluteHeight: t,
|
|
117
|
-
absoluteWidth:
|
|
118
|
+
absoluteWidth: a,
|
|
118
119
|
centerX: i.value.left + s / 2,
|
|
119
120
|
centerY: i.value.top + l / 2,
|
|
120
121
|
height: l,
|
|
121
122
|
width: s
|
|
122
123
|
};
|
|
123
|
-
}), D = m(() => (b.dataset.forEach((t,
|
|
124
|
-
[null, void 0].includes(t.name) &&
|
|
124
|
+
}), D = m(() => (b.dataset.forEach((t, a) => {
|
|
125
|
+
[null, void 0].includes(t.name) && le({
|
|
125
126
|
componentName: "VueUiDonutEvolution",
|
|
126
127
|
type: "datasetSerieAttribute",
|
|
127
128
|
property: "name",
|
|
128
|
-
index:
|
|
129
|
-
}), [null, void 0].includes(t.values) &&
|
|
129
|
+
index: a
|
|
130
|
+
}), [null, void 0].includes(t.values) && le({
|
|
130
131
|
componentName: "VueUiDonutEvolution",
|
|
131
132
|
type: "datasetSerieAttribute",
|
|
132
133
|
property: "values",
|
|
133
|
-
index:
|
|
134
|
+
index: a
|
|
134
135
|
});
|
|
135
|
-
}), b.dataset.map((t,
|
|
136
|
+
}), b.dataset.map((t, a) => ({
|
|
136
137
|
...t,
|
|
137
|
-
values:
|
|
138
|
-
color:
|
|
138
|
+
values: Nt(t.values),
|
|
139
|
+
color: de(t.color) || ht.value[a] || ae[a] || ae[a % ae.length],
|
|
139
140
|
length: (t.values || []).length,
|
|
140
|
-
uid:
|
|
141
|
-
})))),
|
|
141
|
+
uid: We()
|
|
142
|
+
})))), W = m(() => D.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
|
|
142
143
|
...t,
|
|
143
|
-
values: t.values.filter((
|
|
144
|
-
}))), O = m(() => Math.max(...
|
|
144
|
+
values: t.values.filter((a, l) => l >= y.value.start && l <= y.value.end)
|
|
145
|
+
}))), O = m(() => Math.max(...W.value.map((t) => t.length))), L = m(() => Ut({
|
|
145
146
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
146
147
|
maxDatapoints: O.value,
|
|
147
148
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
148
149
|
start: y.value.start,
|
|
149
150
|
end: y.value.end
|
|
150
|
-
})),
|
|
151
|
+
})), x = m(() => v.value.width / (y.value.end - y.value.start)), C = m(() => {
|
|
151
152
|
const t = [];
|
|
152
153
|
for (let u = 0; u < y.value.end - y.value.start; u += 1) {
|
|
153
|
-
const f =
|
|
154
|
+
const f = W.value.map((N) => N.values[u] ?? null), d = f.filter((N) => [void 0, null].includes(N)).length === f.length, _ = f.reduce((N, $) => N + $, 0), ve = f.map((N) => N / _), X = i.value.left + x.value * u + x.value / 2;
|
|
154
155
|
t.push({
|
|
155
156
|
index: u,
|
|
156
157
|
percentages: ve,
|
|
157
158
|
subtotal: d || _ < 0 ? null : _,
|
|
158
159
|
values: f,
|
|
159
|
-
x:
|
|
160
|
+
x: X
|
|
160
161
|
});
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
+
const a = 0, l = Math.max(...t.map((u) => u.subtotal)), s = t.length === 1 ? l * 2 : l;
|
|
163
164
|
return t.map((u, f) => {
|
|
164
|
-
const d =
|
|
165
|
+
const d = x.value / 2 * 0.7, _ = d > v.value.width / 16 ? v.value.width / 16 : d, ve = g.value === u.index ? v.value.width / 16 : _, X = t.length > 4 ? d * 2 : d * 2 > x.value / 2 * 0.7 ? x.value / 2 * 0.7 : d * 2, N = v.value.absoluteHeight - i.value.bottom - v.value.height * u.subtotal / Ye(a, s, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
165
166
|
return {
|
|
166
167
|
...u,
|
|
167
168
|
y: N,
|
|
168
169
|
radius: _,
|
|
169
170
|
activeRadius: ve,
|
|
170
|
-
hoverRadius:
|
|
171
|
-
donut:
|
|
172
|
-
series:
|
|
173
|
-
color:
|
|
174
|
-
name:
|
|
175
|
-
value:
|
|
171
|
+
hoverRadius: X,
|
|
172
|
+
donut: he({
|
|
173
|
+
series: W.value.map(($, Be) => ({
|
|
174
|
+
color: $.color,
|
|
175
|
+
name: $.name,
|
|
176
|
+
value: $.values[f] ?? 0
|
|
176
177
|
}))
|
|
177
178
|
}, u.x, N, _, _, 1.99999, 2, 1, 360, 105.25, _ / 2),
|
|
178
|
-
donutHover:
|
|
179
|
-
series:
|
|
180
|
-
color:
|
|
181
|
-
name:
|
|
182
|
-
value:
|
|
179
|
+
donutHover: he({
|
|
180
|
+
series: W.value.map(($, Be) => ({
|
|
181
|
+
color: $.color,
|
|
182
|
+
name: $.name,
|
|
183
|
+
value: $.values[f] ?? 0
|
|
183
184
|
}))
|
|
184
|
-
}, u.x, N,
|
|
185
|
-
donutFocus:
|
|
186
|
-
series:
|
|
187
|
-
color:
|
|
188
|
-
name:
|
|
189
|
-
value:
|
|
185
|
+
}, u.x, N, X, X, 1.99999, 2, 1, 360, 105.25, X / 2),
|
|
186
|
+
donutFocus: he({
|
|
187
|
+
series: W.value.map(($, Be) => ({
|
|
188
|
+
color: $.color,
|
|
189
|
+
name: $.name,
|
|
190
|
+
value: $.values[f] ?? 0
|
|
190
191
|
}))
|
|
191
192
|
}, v.value.centerX, v.value.centerY, v.value.height / 3.6, v.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, v.value.height / 6)
|
|
192
193
|
};
|
|
193
194
|
});
|
|
194
195
|
});
|
|
195
|
-
function Pe(t,
|
|
196
|
-
return
|
|
196
|
+
function Pe(t, a, l) {
|
|
197
|
+
return ye(
|
|
197
198
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
198
199
|
t,
|
|
199
|
-
|
|
200
|
+
oe({
|
|
200
201
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
201
202
|
v: t,
|
|
202
203
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
203
204
|
r: e.value.style.chart.layout.dataLabels.rounding
|
|
204
205
|
}),
|
|
205
|
-
{ datapoint:
|
|
206
|
+
{ datapoint: a, index: l }
|
|
206
207
|
);
|
|
207
208
|
}
|
|
208
209
|
const se = m(() => ({
|
|
@@ -210,40 +211,40 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
210
211
|
min: 0
|
|
211
212
|
})), M = m(() => {
|
|
212
213
|
const t = C.value.length === 1 ? se.value.max * 2 : se.value.max;
|
|
213
|
-
return
|
|
214
|
+
return Ye(se.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
214
215
|
});
|
|
215
|
-
function
|
|
216
|
+
function yt(t) {
|
|
216
217
|
return t / M.value.max;
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
-
y: v.value.absoluteHeight - i.value.bottom - v.value.height *
|
|
219
|
+
const gt = m(() => M.value.ticks.map((t) => ({
|
|
220
|
+
y: v.value.absoluteHeight - i.value.bottom - v.value.height * yt(t),
|
|
220
221
|
value: t
|
|
221
222
|
})));
|
|
222
|
-
function
|
|
223
|
-
return isNaN(t.value /
|
|
223
|
+
function ft(t, a) {
|
|
224
|
+
return isNaN(t.value / Je(a, "value")) ? 0 : (t.value / Je(a, "value") * 100).toFixed(0) + "%";
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
-
g.value = null,
|
|
226
|
+
function Fe() {
|
|
227
|
+
g.value = null, Z.value = null;
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
g.value = t.index,
|
|
229
|
+
function mt(t) {
|
|
230
|
+
g.value = t.index, Z.value = t;
|
|
230
231
|
}
|
|
231
|
-
const
|
|
232
|
-
function
|
|
233
|
-
!t.subtotal || !e.value.style.chart.dialog.show || (
|
|
232
|
+
const j = h(null);
|
|
233
|
+
function De(t, a) {
|
|
234
|
+
!t.subtotal || !e.value.style.chart.dialog.show || (Z.value = null, g.value = null, ue.value = !0, E.value = t, xt(t), [null, void 0].includes(a) || (j.value = a));
|
|
234
235
|
}
|
|
235
|
-
const
|
|
236
|
+
const Oe = m(() => D.value.map((t, a) => ({
|
|
236
237
|
name: t.name,
|
|
237
238
|
value: t.values.slice(y.value.start, y.value.end).reduce((l, s) => l + s, 0),
|
|
238
239
|
shape: "circle",
|
|
239
240
|
uid: t.uid,
|
|
240
241
|
color: t.color
|
|
241
|
-
})).sort((t,
|
|
242
|
+
})).sort((t, a) => a.value - t.value).map((t) => ({
|
|
242
243
|
...t,
|
|
243
244
|
opacity: k.value.includes(t.uid) ? 0.5 : 1,
|
|
244
245
|
segregate: () => re(t.uid),
|
|
245
246
|
isSegregated: k.value.includes(t.uid)
|
|
246
|
-
}))),
|
|
247
|
+
}))), Te = m(() => C.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), bt = m(() => ({
|
|
247
248
|
cy: "donut-div-legend",
|
|
248
249
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
250
|
color: e.value.style.chart.legend.color,
|
|
@@ -253,22 +254,22 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
253
254
|
}));
|
|
254
255
|
function re(t) {
|
|
255
256
|
if (k.value.includes(t))
|
|
256
|
-
k.value = k.value.filter((
|
|
257
|
+
k.value = k.value.filter((a) => a !== t), _e("selectLegend", null);
|
|
257
258
|
else {
|
|
258
259
|
if (k.value.length === D.value.length - 1) return;
|
|
259
|
-
k.value.push(t),
|
|
260
|
+
k.value.push(t), _e("selectLegend", D.value.find((a) => a.uid === t));
|
|
260
261
|
}
|
|
261
|
-
E.value &&
|
|
262
|
+
E.value && De(C.value.find((a, l) => l === j.value));
|
|
262
263
|
}
|
|
263
|
-
const
|
|
264
|
+
const U = m(() => {
|
|
264
265
|
const t = [""].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => ({
|
|
265
266
|
name: u.name,
|
|
266
267
|
color: u.color
|
|
267
268
|
}))).concat(["Σ"]);
|
|
268
|
-
let
|
|
269
|
+
let a = [];
|
|
269
270
|
for (let u = 0; u < O.value; u += 1) {
|
|
270
271
|
const f = D.value.filter((d) => !k.value.includes(d.uid)).map((d) => d.values[u] ?? 0).reduce((d, _) => d + _, 0);
|
|
271
|
-
|
|
272
|
+
a.push([L[u] ? L[u].text : "-"].concat(D.value.filter((d) => !k.value.includes(d.uid)).map((d) => ({
|
|
272
273
|
value: d.values[u] ?? 0,
|
|
273
274
|
percentage: d.values[u] ? d.values[u] / f * 100 : 0
|
|
274
275
|
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -288,81 +289,95 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
288
289
|
}, s = [
|
|
289
290
|
e.value.table.columnNames.period
|
|
290
291
|
].concat(D.value.filter((u) => !k.value.includes(u.uid)).map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
291
|
-
return { head: t, body:
|
|
292
|
+
return { head: t, body: a, config: l, colNames: s };
|
|
292
293
|
});
|
|
293
|
-
function
|
|
294
|
+
function pt() {
|
|
294
295
|
return D.value;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
t ? t(f) :
|
|
297
|
+
function Ee(t = null) {
|
|
298
|
+
J(() => {
|
|
299
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...U.value.head.map((d) => d.name ?? d)], s = [...U.value.body.map((d) => d.map((_) => _.value ?? _))], u = a.concat([l]).concat(s), f = Et(u);
|
|
300
|
+
t ? t(f) : Vt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
300
301
|
});
|
|
301
302
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
303
|
+
const B = h(!1);
|
|
304
|
+
function Ve(t) {
|
|
305
|
+
B.value = t, be.value += 1;
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
-
|
|
307
|
+
function He() {
|
|
308
|
+
G.value.showTable = !G.value.showTable;
|
|
308
309
|
}
|
|
309
|
-
const
|
|
310
|
+
const ee = h(!1);
|
|
310
311
|
function ie() {
|
|
311
|
-
|
|
312
|
+
ee.value = !ee.value;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function Re(t) {
|
|
314
315
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const Me = h([]), Ue = h({}), ce = h(null);
|
|
317
318
|
function xt(t) {
|
|
318
|
-
|
|
319
|
-
name:
|
|
320
|
-
values: [
|
|
321
|
-
color:
|
|
319
|
+
Me.value = t.donut.map((a) => ({
|
|
320
|
+
name: a.name,
|
|
321
|
+
values: [a.value],
|
|
322
|
+
color: a.color
|
|
322
323
|
})), Ue.value = Ht({
|
|
323
324
|
...e.value.style.chart.dialog.donutChart,
|
|
324
325
|
responsive: !0,
|
|
325
326
|
theme: e.value.theme
|
|
326
327
|
}), ce.value && ce.value.open();
|
|
327
328
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
329
|
+
async function kt({ scale: t = 2 } = {}) {
|
|
330
|
+
if (!R.value) return;
|
|
331
|
+
const { width: a, height: l } = R.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await jt({ domElement: R.value, base64: !0, img: !0, scale: t });
|
|
332
|
+
return {
|
|
333
|
+
imageUri: u,
|
|
334
|
+
base64: f,
|
|
335
|
+
title: e.value.style.chart.title.text,
|
|
336
|
+
width: a,
|
|
337
|
+
height: l,
|
|
338
|
+
aspectRatio: s
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
return Ze({
|
|
342
|
+
getData: pt,
|
|
343
|
+
getImage: kt,
|
|
344
|
+
generatePdf: Ie,
|
|
345
|
+
generateCsv: Ee,
|
|
346
|
+
generateImage: Ne,
|
|
347
|
+
toggleTable: He,
|
|
348
|
+
toggleAnnotator: ie,
|
|
349
|
+
toggleFullscreen: Ve
|
|
350
|
+
}), (t, a) => (o(), n("div", {
|
|
336
351
|
ref_key: "donutEvolutionChart",
|
|
337
|
-
ref:
|
|
338
|
-
class:
|
|
339
|
-
style:
|
|
340
|
-
id:
|
|
341
|
-
onMouseenter:
|
|
342
|
-
onMouseleave:
|
|
352
|
+
ref: R,
|
|
353
|
+
class: F(`vue-ui-donut-evolution ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
354
|
+
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
355
|
+
id: H.value,
|
|
356
|
+
onMouseenter: a[5] || (a[5] = () => r(we)(!0)),
|
|
357
|
+
onMouseleave: a[6] || (a[6] = () => r(we)(!1))
|
|
343
358
|
}, [
|
|
344
|
-
e.value.userOptions.buttons.annotator ? (
|
|
359
|
+
e.value.userOptions.buttons.annotator ? (o(), P(r(ut), {
|
|
345
360
|
key: 0,
|
|
346
|
-
svgRef: r(
|
|
361
|
+
svgRef: r(Le),
|
|
347
362
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
363
|
color: e.value.style.chart.color,
|
|
349
|
-
active:
|
|
364
|
+
active: ee.value,
|
|
350
365
|
onClose: ie
|
|
351
366
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
352
|
-
|
|
367
|
+
dt.value ? (o(), n("div", {
|
|
353
368
|
key: 1,
|
|
354
369
|
ref_key: "noTitle",
|
|
355
|
-
ref:
|
|
370
|
+
ref: vt,
|
|
356
371
|
class: "vue-data-ui-no-title-space",
|
|
357
372
|
style: "height:36px; width: 100%;background:transparent"
|
|
358
373
|
}, null, 512)) : c("", !0),
|
|
359
|
-
e.value.style.chart.title.text ? (
|
|
374
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
360
375
|
key: 2,
|
|
361
376
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
362
|
-
onMouseleave:
|
|
377
|
+
onMouseleave: Fe
|
|
363
378
|
}, [
|
|
364
|
-
(
|
|
365
|
-
key: `title_${
|
|
379
|
+
(o(), P(Wt, {
|
|
380
|
+
key: `title_${xe.value}`,
|
|
366
381
|
config: {
|
|
367
382
|
title: {
|
|
368
383
|
cy: "donut-evolution-div-title",
|
|
@@ -375,97 +390,98 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
375
390
|
}
|
|
376
391
|
}, null, 8, ["config"]))
|
|
377
392
|
], 32)) : c("", !0),
|
|
378
|
-
e.value.userOptions.show &&
|
|
393
|
+
e.value.userOptions.show && Q.value && (r(Se) || r(ne)) ? (o(), P(r(st), {
|
|
379
394
|
ref: "details",
|
|
380
|
-
key: `user_options_${
|
|
395
|
+
key: `user_options_${be.value}`,
|
|
381
396
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
397
|
color: e.value.style.chart.color,
|
|
383
|
-
isPrinting: r(
|
|
384
|
-
isImaging: r(
|
|
385
|
-
uid:
|
|
398
|
+
isPrinting: r(Ae),
|
|
399
|
+
isImaging: r(ze),
|
|
400
|
+
uid: H.value,
|
|
386
401
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
387
402
|
hasImg: e.value.userOptions.buttons.img,
|
|
388
403
|
hasXls: e.value.userOptions.buttons.csv,
|
|
389
404
|
hasTable: e.value.userOptions.buttons.table,
|
|
390
405
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
391
|
-
isFullscreen:
|
|
406
|
+
isFullscreen: B.value,
|
|
392
407
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
393
|
-
chartElement:
|
|
408
|
+
chartElement: R.value,
|
|
394
409
|
position: e.value.userOptions.position,
|
|
395
410
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
396
|
-
isAnnotation:
|
|
411
|
+
isAnnotation: ee.value,
|
|
397
412
|
callbacks: e.value.userOptions.callbacks,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
413
|
+
printScale: e.value.userOptions.print.scale,
|
|
414
|
+
onToggleFullscreen: Ve,
|
|
415
|
+
onGeneratePdf: r(Ie),
|
|
416
|
+
onGenerateCsv: Ee,
|
|
417
|
+
onGenerateImage: r(Ne),
|
|
418
|
+
onToggleTable: He,
|
|
403
419
|
onToggleAnnotator: ie,
|
|
404
|
-
style:
|
|
420
|
+
style: te({
|
|
405
421
|
visibility: r(Se) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
406
422
|
})
|
|
407
|
-
},
|
|
423
|
+
}, _t({ _: 2 }, [
|
|
408
424
|
t.$slots.menuIcon ? {
|
|
409
425
|
name: "menuIcon",
|
|
410
426
|
fn: w(({ isOpen: l, color: s }) => [
|
|
411
|
-
|
|
427
|
+
A(t.$slots, "menuIcon", Y(q({ isOpen: l, color: s })), void 0, !0)
|
|
412
428
|
]),
|
|
413
429
|
key: "0"
|
|
414
430
|
} : void 0,
|
|
415
431
|
t.$slots.optionPdf ? {
|
|
416
432
|
name: "optionPdf",
|
|
417
433
|
fn: w(() => [
|
|
418
|
-
|
|
434
|
+
A(t.$slots, "optionPdf", {}, void 0, !0)
|
|
419
435
|
]),
|
|
420
436
|
key: "1"
|
|
421
437
|
} : void 0,
|
|
422
438
|
t.$slots.optionCsv ? {
|
|
423
439
|
name: "optionCsv",
|
|
424
440
|
fn: w(() => [
|
|
425
|
-
|
|
441
|
+
A(t.$slots, "optionCsv", {}, void 0, !0)
|
|
426
442
|
]),
|
|
427
443
|
key: "2"
|
|
428
444
|
} : void 0,
|
|
429
445
|
t.$slots.optionImg ? {
|
|
430
446
|
name: "optionImg",
|
|
431
447
|
fn: w(() => [
|
|
432
|
-
|
|
448
|
+
A(t.$slots, "optionImg", {}, void 0, !0)
|
|
433
449
|
]),
|
|
434
450
|
key: "3"
|
|
435
451
|
} : void 0,
|
|
436
452
|
t.$slots.optionTable ? {
|
|
437
453
|
name: "optionTable",
|
|
438
454
|
fn: w(() => [
|
|
439
|
-
|
|
455
|
+
A(t.$slots, "optionTable", {}, void 0, !0)
|
|
440
456
|
]),
|
|
441
457
|
key: "4"
|
|
442
458
|
} : void 0,
|
|
443
459
|
t.$slots.optionFullscreen ? {
|
|
444
460
|
name: "optionFullscreen",
|
|
445
461
|
fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
446
|
-
|
|
462
|
+
A(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
447
463
|
]),
|
|
448
464
|
key: "5"
|
|
449
465
|
} : void 0,
|
|
450
466
|
t.$slots.optionAnnotator ? {
|
|
451
467
|
name: "optionAnnotator",
|
|
452
468
|
fn: w(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
453
|
-
|
|
469
|
+
A(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
454
470
|
]),
|
|
455
471
|
key: "6"
|
|
456
472
|
} : void 0
|
|
457
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
458
|
-
|
|
473
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
474
|
+
Q.value ? (o(), n("svg", {
|
|
459
475
|
key: 4,
|
|
460
476
|
ref_key: "svgRef",
|
|
461
|
-
ref:
|
|
462
|
-
xmlns: r(
|
|
463
|
-
class:
|
|
477
|
+
ref: Le,
|
|
478
|
+
xmlns: r(Pt),
|
|
479
|
+
class: F({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
464
480
|
viewBox: `0 0 ${v.value.absoluteWidth} ${v.value.absoluteHeight}`,
|
|
465
|
-
style:
|
|
481
|
+
style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
466
482
|
}, [
|
|
467
|
-
|
|
468
|
-
t.$slots["chart-background"] ? (
|
|
483
|
+
wt(r(ot)),
|
|
484
|
+
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
469
485
|
key: 0,
|
|
470
486
|
x: i.value.left,
|
|
471
487
|
y: i.value.top,
|
|
@@ -475,44 +491,44 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
475
491
|
pointerEvents: "none"
|
|
476
492
|
}
|
|
477
493
|
}, [
|
|
478
|
-
|
|
479
|
-
], 8,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
id: `hover_${
|
|
494
|
+
A(t.$slots, "chart-background", {}, void 0, !0)
|
|
495
|
+
], 8, Kt)) : c("", !0),
|
|
496
|
+
S("defs", null, [
|
|
497
|
+
S("linearGradient", {
|
|
498
|
+
id: `hover_${H.value}`,
|
|
483
499
|
x1: "0%",
|
|
484
500
|
y1: "0%",
|
|
485
501
|
x2: "0%",
|
|
486
502
|
y2: "100%"
|
|
487
503
|
}, [
|
|
488
|
-
|
|
504
|
+
S("stop", {
|
|
489
505
|
offset: "0%",
|
|
490
|
-
"stop-color": r(
|
|
491
|
-
}, null, 8,
|
|
492
|
-
|
|
506
|
+
"stop-color": r(K)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
507
|
+
}, null, 8, Zt),
|
|
508
|
+
S("stop", {
|
|
493
509
|
offset: "100%",
|
|
494
|
-
"stop-color": r(
|
|
495
|
-
}, null, 8,
|
|
496
|
-
], 8,
|
|
497
|
-
|
|
498
|
-
id: `focus_${
|
|
510
|
+
"stop-color": r(K)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
511
|
+
}, null, 8, el)
|
|
512
|
+
], 8, Qt),
|
|
513
|
+
S("radialGradient", {
|
|
514
|
+
id: `focus_${H.value}`
|
|
499
515
|
}, [
|
|
500
|
-
|
|
516
|
+
S("stop", {
|
|
501
517
|
offset: "0%",
|
|
502
|
-
"stop-color": r(
|
|
503
|
-
}, null, 8,
|
|
504
|
-
|
|
518
|
+
"stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
|
|
519
|
+
}, null, 8, ll),
|
|
520
|
+
S("stop", {
|
|
505
521
|
offset: "77%",
|
|
506
|
-
"stop-color": r(
|
|
507
|
-
}, null, 8,
|
|
508
|
-
|
|
522
|
+
"stop-color": r(K)("#FFFFFF", 30)
|
|
523
|
+
}, null, 8, al),
|
|
524
|
+
S("stop", {
|
|
509
525
|
offset: "100%",
|
|
510
|
-
"stop-color": r(
|
|
511
|
-
}, null, 8,
|
|
512
|
-
], 8,
|
|
526
|
+
"stop-color": r(K)(r(de)(e.value.style.chart.backgroundColor), 0)
|
|
527
|
+
}, null, 8, ol)
|
|
528
|
+
], 8, tl)
|
|
513
529
|
]),
|
|
514
|
-
e.value.style.chart.layout.grid.show ? (
|
|
515
|
-
|
|
530
|
+
e.value.style.chart.layout.grid.show ? (o(), n("g", ul, [
|
|
531
|
+
S("line", {
|
|
516
532
|
x1: i.value.left,
|
|
517
533
|
x2: i.value.left,
|
|
518
534
|
y1: i.value.top,
|
|
@@ -520,8 +536,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
520
536
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
521
537
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
522
538
|
"stroke-linecap": "round"
|
|
523
|
-
}, null, 8,
|
|
524
|
-
|
|
539
|
+
}, null, 8, nl),
|
|
540
|
+
S("line", {
|
|
525
541
|
x1: i.value.left,
|
|
526
542
|
x2: v.value.absoluteWidth - i.value.right,
|
|
527
543
|
y1: v.value.absoluteHeight - i.value.bottom,
|
|
@@ -529,25 +545,25 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
529
545
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
530
546
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
531
547
|
"stroke-linecap": "round"
|
|
532
|
-
}, null, 8,
|
|
533
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
534
|
-
(
|
|
535
|
-
x1: i.value.left + (s + 1) *
|
|
536
|
-
x2: i.value.left + (s + 1) *
|
|
548
|
+
}, null, 8, sl),
|
|
549
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (o(), n("g", rl, [
|
|
550
|
+
(o(!0), n(z, null, I(y.value.end - y.value.start, (l, s) => (o(), n("line", {
|
|
551
|
+
x1: i.value.left + (s + 1) * x.value,
|
|
552
|
+
x2: i.value.left + (s + 1) * x.value,
|
|
537
553
|
y1: i.value.top,
|
|
538
554
|
y2: v.value.absoluteHeight - i.value.bottom,
|
|
539
555
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
540
556
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
541
557
|
"stroke-linecap": "round"
|
|
542
|
-
}, null, 8,
|
|
558
|
+
}, null, 8, il))), 256))
|
|
543
559
|
])) : c("", !0)
|
|
544
560
|
])) : c("", !0),
|
|
545
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
561
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (o(), n("g", {
|
|
546
562
|
key: 2,
|
|
547
|
-
class:
|
|
563
|
+
class: F({ "donut-opacity": !0, "donut-behind": g.value !== null })
|
|
548
564
|
}, [
|
|
549
|
-
(
|
|
550
|
-
l.value >= M.value.min && l.value <= M.value.max ? (
|
|
565
|
+
(o(!0), n(z, null, I(gt.value, (l, s) => (o(), n("g", null, [
|
|
566
|
+
l.value >= M.value.min && l.value <= M.value.max ? (o(), n("line", {
|
|
551
567
|
key: 0,
|
|
552
568
|
x1: i.value.left,
|
|
553
569
|
x2: i.value.left - 5,
|
|
@@ -555,8 +571,8 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
555
571
|
y2: l.y,
|
|
556
572
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
557
573
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
558
|
-
}, null, 8,
|
|
559
|
-
l.value >= M.value.min && l.value <= M.value.max ? (
|
|
574
|
+
}, null, 8, cl)) : c("", !0),
|
|
575
|
+
l.value >= M.value.min && l.value <= M.value.max ? (o(), n("text", {
|
|
560
576
|
key: 1,
|
|
561
577
|
x: i.value.left - 8 + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,
|
|
562
578
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -564,50 +580,50 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
564
580
|
"text-anchor": "end",
|
|
565
581
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
566
582
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
567
|
-
},
|
|
583
|
+
}, p(r(Ft)(l.value) ? r(ye)(
|
|
568
584
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
569
585
|
l.value,
|
|
570
|
-
r(
|
|
586
|
+
r(oe)({
|
|
571
587
|
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
572
588
|
v: l.value,
|
|
573
589
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
574
590
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
575
591
|
}),
|
|
576
592
|
{ datapoint: l, seriesIndex: s }
|
|
577
|
-
) : ""), 9,
|
|
593
|
+
) : ""), 9, vl)) : c("", !0)
|
|
578
594
|
]))), 256))
|
|
579
595
|
], 2)) : c("", !0),
|
|
580
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
581
|
-
(
|
|
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) &&
|
|
583
|
-
String(
|
|
584
|
-
`) ? (
|
|
596
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (o(), n("g", dl, [
|
|
597
|
+
(o(!0), n(z, null, I(y.value.end - y.value.start, (l, s) => (o(), n("g", null, [
|
|
598
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (s === 0 || s === O.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[s] && L.value[s].text ? (o(), n("g", hl, [
|
|
599
|
+
String(L.value[s].text).includes(`
|
|
600
|
+
`) ? (o(), n("text", {
|
|
585
601
|
key: 1,
|
|
586
602
|
"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",
|
|
587
603
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
588
604
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
589
|
-
transform: `translate(${i.value.left +
|
|
590
|
-
innerHTML: r(
|
|
591
|
-
content: String(
|
|
605
|
+
transform: `translate(${i.value.left + x.value * s + x.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})`,
|
|
606
|
+
innerHTML: r(Dt)({
|
|
607
|
+
content: String(L.value[s].text),
|
|
592
608
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
593
609
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
594
610
|
x: 0,
|
|
595
611
|
y: 0
|
|
596
612
|
})
|
|
597
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, gl)) : (o(), n("text", {
|
|
598
614
|
key: 0,
|
|
599
615
|
"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",
|
|
600
616
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
601
617
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
602
|
-
transform: `translate(${i.value.left +
|
|
603
|
-
},
|
|
618
|
+
transform: `translate(${i.value.left + x.value * s + x.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})`
|
|
619
|
+
}, p(L.value[s].text), 9, yl))
|
|
604
620
|
])) : c("", !0)
|
|
605
621
|
]))), 256))
|
|
606
622
|
])) : c("", !0),
|
|
607
|
-
(
|
|
608
|
-
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (
|
|
623
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", null, [
|
|
624
|
+
e.value.style.chart.layout.line.show && s < C.value.length - 1 && ![l.subtotal, C.value[s + 1].subtotal].includes(null) ? (o(), n("line", {
|
|
609
625
|
key: 0,
|
|
610
|
-
class:
|
|
626
|
+
class: F({ "donut-opacity": !0, "donut-behind": g.value !== null }),
|
|
611
627
|
x1: l.x,
|
|
612
628
|
y1: l.y,
|
|
613
629
|
x2: C.value[s + 1].x,
|
|
@@ -616,87 +632,87 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
616
632
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
617
633
|
"stroke-linecap": "round",
|
|
618
634
|
"stroke-linejoin": "round"
|
|
619
|
-
}, null, 10,
|
|
620
|
-
l.subtotal !== null ? (
|
|
621
|
-
l.subtotal ? (
|
|
635
|
+
}, null, 10, fl)) : c("", !0),
|
|
636
|
+
l.subtotal !== null ? (o(), n("g", ml, [
|
|
637
|
+
l.subtotal ? (o(), n("circle", {
|
|
622
638
|
key: 0,
|
|
623
639
|
cx: l.x,
|
|
624
640
|
cy: l.y,
|
|
625
641
|
r: l.activeRadius,
|
|
626
642
|
fill: e.value.style.chart.backgroundColor
|
|
627
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, bl)) : c("", !0)
|
|
628
644
|
])) : c("", !0)
|
|
629
645
|
]))), 256)),
|
|
630
|
-
(
|
|
631
|
-
class:
|
|
646
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
|
|
647
|
+
class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
632
648
|
}, [
|
|
633
|
-
l.subtotal ? (
|
|
634
|
-
g.value !== null && g.value === s ? (
|
|
635
|
-
(
|
|
636
|
-
|
|
649
|
+
l.subtotal ? (o(), n("g", pl, [
|
|
650
|
+
g.value !== null && g.value === s ? (o(), n("g", xl, [
|
|
651
|
+
(o(!0), n(z, null, I(l.donutHover, (u) => (o(), n("g", null, [
|
|
652
|
+
Re(u) ? (o(), n("path", {
|
|
637
653
|
key: 0,
|
|
638
|
-
d: r(
|
|
654
|
+
d: r(Ot)(u, { x: u.center.endX, y: u.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
639
655
|
stroke: u.color,
|
|
640
656
|
"stroke-width": "1",
|
|
641
657
|
"stroke-linecap": "round",
|
|
642
658
|
"stroke-linejoin": "round",
|
|
643
659
|
fill: "none"
|
|
644
|
-
}, null, 8,
|
|
660
|
+
}, null, 8, kl)) : c("", !0)
|
|
645
661
|
]))), 256)),
|
|
646
|
-
(
|
|
647
|
-
|
|
662
|
+
(o(!0), n(z, null, I(l.donutHover, (u, f) => (o(), n("g", null, [
|
|
663
|
+
Re(u) ? (o(), n("text", {
|
|
648
664
|
key: 0,
|
|
649
665
|
"data-cy-hover-label": "",
|
|
650
|
-
"text-anchor": r(
|
|
651
|
-
x: r(
|
|
652
|
-
y: r(
|
|
666
|
+
"text-anchor": r(qe)(u, !0, 0).anchor,
|
|
667
|
+
x: r(qe)(u, !0, 9).x,
|
|
668
|
+
y: r(Tt)(u, 14, 10),
|
|
653
669
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
654
670
|
"font-size": 8,
|
|
655
671
|
"font-weight": "bold"
|
|
656
|
-
},
|
|
672
|
+
}, p(u.name) + ": " + p(ft(u, l.donut)) + " (" + p(u.value === null ? "-" : Pe(u.value, u, f)) + ") ", 9, Cl)) : c("", !0)
|
|
657
673
|
]))), 256)),
|
|
658
|
-
|
|
659
|
-
|
|
674
|
+
S("g", null, [
|
|
675
|
+
S("circle", {
|
|
660
676
|
cx: l.x,
|
|
661
677
|
cy: l.y,
|
|
662
678
|
r: l.hoverRadius,
|
|
663
679
|
fill: e.value.style.chart.backgroundColor
|
|
664
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, _l)
|
|
665
681
|
])
|
|
666
682
|
])) : c("", !0)
|
|
667
683
|
])) : c("", !0)
|
|
668
684
|
], 2))), 256)),
|
|
669
|
-
(
|
|
670
|
-
class:
|
|
685
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
|
|
686
|
+
class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null })
|
|
671
687
|
}, [
|
|
672
|
-
l.subtotal !== null ? (
|
|
673
|
-
l.subtotal === 0 ? (
|
|
688
|
+
l.subtotal !== null ? (o(), n("g", wl, [
|
|
689
|
+
l.subtotal === 0 ? (o(), n("circle", {
|
|
674
690
|
key: 0,
|
|
675
691
|
cx: l.x,
|
|
676
692
|
cy: l.y,
|
|
677
693
|
r: 3,
|
|
678
694
|
fill: e.value.style.chart.color
|
|
679
|
-
}, null, 8,
|
|
680
|
-
(
|
|
695
|
+
}, null, 8, Sl)) : g.value !== null && g.value === s ? (o(), n("g", Ll, [
|
|
696
|
+
(o(!0), n(z, null, I(l.donutHover, (u, f) => (o(), n("path", {
|
|
681
697
|
d: u.arcSlice,
|
|
682
698
|
fill: `${u.color}`,
|
|
683
699
|
"stroke-width": 1,
|
|
684
700
|
stroke: e.value.style.chart.backgroundColor
|
|
685
|
-
}, null, 8,
|
|
686
|
-
])) : (
|
|
687
|
-
(
|
|
701
|
+
}, null, 8, $l))), 256))
|
|
702
|
+
])) : (o(), n("g", Al, [
|
|
703
|
+
(o(!0), n(z, null, I(l.donut, (u, f) => (o(), n("path", {
|
|
688
704
|
d: u.arcSlice,
|
|
689
705
|
fill: `${u.color}`,
|
|
690
706
|
"stroke-width": 0.5,
|
|
691
707
|
stroke: e.value.style.chart.backgroundColor
|
|
692
|
-
}, null, 8,
|
|
708
|
+
}, null, 8, zl))), 256))
|
|
693
709
|
]))
|
|
694
710
|
])) : c("", !0)
|
|
695
711
|
], 2))), 256)),
|
|
696
|
-
(
|
|
697
|
-
class:
|
|
712
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("g", {
|
|
713
|
+
class: F({ "donut-opacity": !0, "donut-behind": s !== g.value && g.value !== null || ue.value && s !== E.value.index })
|
|
698
714
|
}, [
|
|
699
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
715
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (o(), n("text", {
|
|
700
716
|
key: 0,
|
|
701
717
|
"text-anchor": "middle",
|
|
702
718
|
x: l.x,
|
|
@@ -704,37 +720,37 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
704
720
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
705
721
|
"font-weight": "bold",
|
|
706
722
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
707
|
-
},
|
|
723
|
+
}, p(Pe(l.subtotal, l, s)), 9, Il)) : c("", !0)
|
|
708
724
|
], 2))), 256)),
|
|
709
|
-
(
|
|
710
|
-
x: i.value.left + s *
|
|
725
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("rect", {
|
|
726
|
+
x: i.value.left + s * x.value,
|
|
711
727
|
y: i.value.top,
|
|
712
|
-
width:
|
|
728
|
+
width: x.value,
|
|
713
729
|
height: v.value.height,
|
|
714
|
-
fill: [g.value,
|
|
715
|
-
class:
|
|
730
|
+
fill: [g.value, j.value].includes(l.index) ? `url(#hover_${H.value})` : "transparent",
|
|
731
|
+
class: F({ "donut-hover": l.subtotal && [g.value, j.value].includes(l.index) }),
|
|
716
732
|
style: {
|
|
717
733
|
pointerEvents: "none"
|
|
718
734
|
}
|
|
719
|
-
}, null, 10,
|
|
720
|
-
(
|
|
735
|
+
}, null, 10, Nl))), 256)),
|
|
736
|
+
(o(!0), n(z, null, I(C.value, (l, s) => (o(), n("rect", {
|
|
721
737
|
"data-cy-trap": "",
|
|
722
|
-
x: i.value.left + s *
|
|
738
|
+
x: i.value.left + s * x.value,
|
|
723
739
|
y: i.value.top,
|
|
724
|
-
width:
|
|
740
|
+
width: x.value,
|
|
725
741
|
height: v.value.height,
|
|
726
742
|
fill: "transparent",
|
|
727
|
-
onMouseenter: (u) =>
|
|
728
|
-
onMouseleave:
|
|
729
|
-
onClick: (u) =>
|
|
730
|
-
class:
|
|
731
|
-
}, null, 42,
|
|
732
|
-
|
|
733
|
-
], 14,
|
|
734
|
-
t.$slots.watermark ? (
|
|
735
|
-
|
|
743
|
+
onMouseenter: (u) => mt(l),
|
|
744
|
+
onMouseleave: Fe,
|
|
745
|
+
onClick: (u) => De(l, s),
|
|
746
|
+
class: F({ "donut-hover": g.value === l.index && l.subtotal })
|
|
747
|
+
}, null, 42, Pl))), 256)),
|
|
748
|
+
A(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
749
|
+
], 14, Jt)) : c("", !0),
|
|
750
|
+
t.$slots.watermark ? (o(), n("div", Fl, [
|
|
751
|
+
A(t.$slots, "watermark", Y(q({ isPrinting: r(Ae) || r(ze) })), void 0, !0)
|
|
736
752
|
])) : c("", !0),
|
|
737
|
-
|
|
753
|
+
Q.value ? c("", !0) : (o(), P(r(nt), {
|
|
738
754
|
key: 6,
|
|
739
755
|
config: {
|
|
740
756
|
type: "donutEvolution",
|
|
@@ -751,16 +767,16 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
751
767
|
}
|
|
752
768
|
}
|
|
753
769
|
}, null, 8, ["config"])),
|
|
754
|
-
O.value > 1 && e.value.style.chart.zoom.show ? (
|
|
770
|
+
O.value > 1 && e.value.style.chart.zoom.show ? (o(), P(Gt, {
|
|
755
771
|
ref_key: "slicerComponent",
|
|
756
|
-
ref:
|
|
757
|
-
key: `slicer_${
|
|
772
|
+
ref: V,
|
|
773
|
+
key: `slicer_${pe.value}`,
|
|
758
774
|
background: e.value.style.chart.zoom.color,
|
|
759
775
|
borderColor: e.value.style.chart.backgroundColor,
|
|
760
776
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
761
777
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
762
|
-
labelLeft:
|
|
763
|
-
labelRight:
|
|
778
|
+
labelLeft: L.value[0] ? L.value[0].text : "",
|
|
779
|
+
labelRight: L.value.at(-1) ? L.value.at(-1).text : "",
|
|
764
780
|
textColor: e.value.style.chart.color,
|
|
765
781
|
inputColor: e.value.style.chart.zoom.color,
|
|
766
782
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
@@ -769,60 +785,57 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
769
785
|
valueStart: y.value.start,
|
|
770
786
|
valueEnd: y.value.end,
|
|
771
787
|
start: y.value.start,
|
|
772
|
-
"onUpdate:start":
|
|
788
|
+
"onUpdate:start": a[0] || (a[0] = (l) => y.value.start = l),
|
|
773
789
|
end: y.value.end,
|
|
774
|
-
"onUpdate:end":
|
|
790
|
+
"onUpdate:end": a[1] || (a[1] = (l) => y.value.end = l),
|
|
775
791
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
776
792
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
777
793
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
778
794
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
779
|
-
onReset:
|
|
795
|
+
onReset: ge
|
|
780
796
|
}, {
|
|
781
797
|
"reset-action": w(({ reset: l }) => [
|
|
782
|
-
|
|
798
|
+
A(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
|
|
783
799
|
]),
|
|
784
800
|
_: 3
|
|
785
801
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : c("", !0),
|
|
786
|
-
e.value.style.chart.legend.show ? (
|
|
787
|
-
key: `legend_${
|
|
788
|
-
legendSet:
|
|
789
|
-
config:
|
|
790
|
-
onClickMarker:
|
|
802
|
+
e.value.style.chart.legend.show ? (o(), P(Xt, {
|
|
803
|
+
key: `legend_${Ce.value}`,
|
|
804
|
+
legendSet: Oe.value,
|
|
805
|
+
config: bt.value,
|
|
806
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => re(l.uid))
|
|
791
807
|
}, {
|
|
792
808
|
item: w(({ legend: l, index: s }) => [
|
|
793
|
-
|
|
809
|
+
S("div", {
|
|
794
810
|
onClick: (u) => re(l.uid),
|
|
795
|
-
style:
|
|
796
|
-
},
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
812
|
-
})) + ") ", 1))
|
|
813
|
-
], 12, Fl)
|
|
811
|
+
style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
|
|
812
|
+
}, p(l.name) + p(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + p(e.value.style.chart.legend.showValue ? r(ye)(
|
|
813
|
+
e.value.style.chart.layout.dataLabels.formatter,
|
|
814
|
+
l.value,
|
|
815
|
+
r(oe)({
|
|
816
|
+
p: e.value.style.chart.layout.dataLabels.prefix,
|
|
817
|
+
v: l.value,
|
|
818
|
+
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
819
|
+
r: e.value.style.chart.legend.roundingValue
|
|
820
|
+
}),
|
|
821
|
+
{ datapoint: l, seriesIndex: s }
|
|
822
|
+
) : "") + " " + p(e.value.style.chart.legend.showPercentage ? k.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 / Te.value) ? "-" : r(oe)({
|
|
823
|
+
v: l.value / Te.value * 100,
|
|
824
|
+
s: "%",
|
|
825
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
826
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Dl)
|
|
814
827
|
]),
|
|
815
828
|
_: 1
|
|
816
829
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
817
|
-
|
|
818
|
-
t.$slots.source ? (
|
|
819
|
-
|
|
830
|
+
A(t.$slots, "legend", { legend: Oe.value }, void 0, !0),
|
|
831
|
+
t.$slots.source ? (o(), n("div", Ol, [
|
|
832
|
+
A(t.$slots, "source", {}, void 0, !0)
|
|
820
833
|
], 512)) : c("", !0),
|
|
821
|
-
|
|
834
|
+
Q.value ? (o(), P(r(tt), {
|
|
822
835
|
key: 10,
|
|
823
836
|
hideDetails: "",
|
|
824
837
|
config: {
|
|
825
|
-
open:
|
|
838
|
+
open: G.value.showTable,
|
|
826
839
|
maxHeight: 1e4,
|
|
827
840
|
body: {
|
|
828
841
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -835,56 +848,56 @@ const jt = ["id"], Yt = ["xmlns", "viewBox"], qt = ["x", "y", "width", "height"]
|
|
|
835
848
|
}
|
|
836
849
|
}, {
|
|
837
850
|
content: w(() => [
|
|
838
|
-
(
|
|
839
|
-
key: `table_${
|
|
840
|
-
colNames:
|
|
841
|
-
head:
|
|
842
|
-
body:
|
|
843
|
-
config:
|
|
851
|
+
(o(), P(r(at), {
|
|
852
|
+
key: `table_${ke.value}`,
|
|
853
|
+
colNames: U.value.colNames,
|
|
854
|
+
head: U.value.head,
|
|
855
|
+
body: U.value.body,
|
|
856
|
+
config: U.value.config,
|
|
844
857
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
845
|
-
onClose:
|
|
858
|
+
onClose: a[3] || (a[3] = (l) => G.value.showTable = !1)
|
|
846
859
|
}, {
|
|
847
860
|
th: w(({ th: l }) => [
|
|
848
|
-
|
|
861
|
+
Ge(p(l.name ?? l), 1)
|
|
849
862
|
]),
|
|
850
863
|
td: w(({ td: l }) => [
|
|
851
|
-
l.value === null ? (
|
|
852
|
-
|
|
864
|
+
l.value === null ? (o(), n("span", Tl, "-")) : (o(), n("b", El, 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)),
|
|
865
|
+
S("span", null, p(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
853
866
|
]),
|
|
854
867
|
_: 1
|
|
855
868
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
856
869
|
]),
|
|
857
870
|
_: 1
|
|
858
871
|
}, 8, ["config"])) : c("", !0),
|
|
859
|
-
e.value.style.chart.dialog.show ? (
|
|
872
|
+
e.value.style.chart.dialog.show ? (o(), P(r(lt), {
|
|
860
873
|
key: 11,
|
|
861
874
|
ref_key: "dialog",
|
|
862
875
|
ref: ce,
|
|
863
|
-
onClose:
|
|
864
|
-
E.value = null,
|
|
876
|
+
onClose: a[4] || (a[4] = (l) => {
|
|
877
|
+
E.value = null, ue.value = !1, Z.value = null, g.value = null, j.value = null;
|
|
865
878
|
}),
|
|
866
879
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
867
880
|
color: e.value.style.chart.dialog.color,
|
|
868
881
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
869
882
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
870
|
-
isFullscreen:
|
|
871
|
-
fullscreenParent:
|
|
883
|
+
isFullscreen: B.value,
|
|
884
|
+
fullscreenParent: R.value
|
|
872
885
|
}, {
|
|
873
886
|
title: w(() => [
|
|
874
|
-
|
|
887
|
+
Ge(p(L.value[Number(E.value.index)] ? L.value[Number(E.value.index)].text : ""), 1)
|
|
875
888
|
]),
|
|
876
889
|
default: w(() => [
|
|
877
|
-
E.value ? (
|
|
890
|
+
E.value ? (o(), P(r(rt), {
|
|
878
891
|
key: 0,
|
|
879
892
|
config: Ue.value,
|
|
880
|
-
dataset:
|
|
893
|
+
dataset: Me.value
|
|
881
894
|
}, null, 8, ["config", "dataset"])) : c("", !0)
|
|
882
895
|
]),
|
|
883
896
|
_: 1
|
|
884
897
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : c("", !0)
|
|
885
|
-
], 46,
|
|
898
|
+
], 46, qt));
|
|
886
899
|
}
|
|
887
|
-
},
|
|
900
|
+
}, Kl = /* @__PURE__ */ Yt(Vl, [["__scopeId", "data-v-014a9c31"]]);
|
|
888
901
|
export {
|
|
889
|
-
|
|
902
|
+
Kl as default
|
|
890
903
|
};
|