vue-data-ui 3.7.12 → 3.7.14
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/{PackageVersion-CIzi6Isi.js → PackageVersion-DtFSiS0a.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-DXOL8JbX.js → vue-data-ui-Y3bsII4e.js} +54 -54
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-BGZil2TK.js → vue-ui-3d-bar-BEq_QYDw.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BX2e52Q2.js → vue-ui-age-pyramid-CTZ8MQWv.js} +1 -1
- package/dist/{vue-ui-bullet-nJx9rMXK.js → vue-ui-bullet-CdszYw76.js} +1 -1
- package/dist/{vue-ui-candlestick-Cb68B5k4.js → vue-ui-candlestick-BgqEDWwB.js} +1 -1
- package/dist/{vue-ui-carousel-table-trYl02CW.js → vue-ui-carousel-table-B-Nig8SF.js} +1 -1
- package/dist/{vue-ui-chestnut-zrcwO41U.js → vue-ui-chestnut-BQDpGhPH.js} +1 -1
- package/dist/{vue-ui-chord-B-sXwjHt.js → vue-ui-chord-Cm8enZ-m.js} +1 -1
- package/dist/{vue-ui-circle-pack-B1WNdzW4.js → vue-ui-circle-pack-CsFGW1eB.js} +1 -1
- package/dist/{vue-ui-dashboard-1dKfzZXp.js → vue-ui-dashboard-UOeqXi6-.js} +54 -54
- package/dist/{vue-ui-donut-3_yDoSFz.js → vue-ui-donut-Ckz6GstQ.js} +1 -1
- package/dist/{vue-ui-donut-evolution-DrwKiA2M.js → vue-ui-donut-evolution-CFRT7O_s.js} +471 -471
- package/dist/{vue-ui-dumbbell-C6HC3rMM.js → vue-ui-dumbbell-Djwlq0Rf.js} +1 -1
- package/dist/{vue-ui-flow-CwR_s28j.js → vue-ui-flow-B97OGV1a.js} +1 -1
- package/dist/{vue-ui-funnel-DvXxOYBP.js → vue-ui-funnel-BXG8DRLY.js} +1 -1
- package/dist/{vue-ui-galaxy-DKf1nXTk.js → vue-ui-galaxy-D2O9-OYS.js} +1 -1
- package/dist/{vue-ui-gauge-Bm5zZxyU.js → vue-ui-gauge-B0FlPkKR.js} +1 -1
- package/dist/{vue-ui-gizmo-BmFEdgMW.js → vue-ui-gizmo-BW0UgYhD.js} +1 -1
- package/dist/{vue-ui-heatmap-Ca2sjrNj.js → vue-ui-heatmap-Dpn7FGns.js} +1 -1
- package/dist/{vue-ui-history-plot-C1M7ALcV.js → vue-ui-history-plot-CL2ZEcD2.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-B18BRinS.js → vue-ui-horizontal-bar-D2mcVfxK.js} +1 -1
- package/dist/{vue-ui-molecule-BnfSbPYZ.js → vue-ui-molecule-vv1p3SyW.js} +1 -1
- package/dist/{vue-ui-mood-radar-D4cOvedN.js → vue-ui-mood-radar-Whcu-ZOg.js} +1 -1
- package/dist/{vue-ui-nested-donuts-C780G4fi.js → vue-ui-nested-donuts-CzWDhltb.js} +1 -1
- package/dist/{vue-ui-onion-Bb9CvBV5.js → vue-ui-onion-D8UDqyva.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C1ulKs61.js → vue-ui-parallel-coordinate-plot-CIZH5K2W.js} +1 -1
- package/dist/{vue-ui-quadrant-CgN9LskD.js → vue-ui-quadrant-Dnt0cVR5.js} +1 -1
- package/dist/{vue-ui-quick-chart-6ZlTBOJa.js → vue-ui-quick-chart-3PF3h9Px.js} +1 -1
- package/dist/{vue-ui-radar-DG-cyprm.js → vue-ui-radar-CEbL9Shz.js} +1 -1
- package/dist/{vue-ui-relation-circle-CJNTeB9M.js → vue-ui-relation-circle-DzpqvYOF.js} +1 -1
- package/dist/{vue-ui-ridgeline-KDgRIm4x.js → vue-ui-ridgeline-D-PPE15J.js} +1 -1
- package/dist/{vue-ui-rings-BWFU_jnZ.js → vue-ui-rings-lhCHl30r.js} +1 -1
- package/dist/{vue-ui-scatter-Cg70SqNA.js → vue-ui-scatter-CzHyLXEO.js} +1 -1
- package/dist/{vue-ui-skeleton-DnYifGw9.js → vue-ui-skeleton-DleKPF3G.js} +1 -1
- package/dist/{vue-ui-spark-trend-BeEKZUQe.js → vue-ui-spark-trend-DpwkGAmg.js} +1 -1
- package/dist/{vue-ui-sparkbar-BrZ-5un4.js → vue-ui-sparkbar-CbJvU0rf.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BBGzI_sy.js → vue-ui-sparkgauge-B0CvXpE3.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CN0bXP4I.js → vue-ui-sparkhistogram-BMqK69TJ.js} +1 -1
- package/dist/{vue-ui-sparkline-BWfoqo6W.js → vue-ui-sparkline-BzXfYlcf.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BGy3Ecos.js → vue-ui-sparkstackbar-DoA2pTmw.js} +1 -1
- package/dist/{vue-ui-stackbar-DsXVvQ7x.js → vue-ui-stackbar-AJjoa2tk.js} +1 -1
- package/dist/{vue-ui-stackline-DmT-ZzBp.js → vue-ui-stackline-CN5pHu5R.js} +1 -1
- package/dist/{vue-ui-strip-plot-C7SArefH.js → vue-ui-strip-plot-Dzl2_jdd.js} +1 -1
- package/dist/{vue-ui-table-eJ-RLAOT.js → vue-ui-table-CkrPb0oh.js} +2 -2
- package/dist/{vue-ui-table-sparkline-FPsXOGRt.js → vue-ui-table-sparkline-83wvFrDq.js} +1 -1
- package/dist/{vue-ui-thermometer-DVjluX1P.js → vue-ui-thermometer-C-q3BXx7.js} +1 -1
- package/dist/{vue-ui-timer-ByI99w2I.js → vue-ui-timer-DdPan7AR.js} +1 -1
- package/dist/{vue-ui-tiremarks-BS2RVL8Y.js → vue-ui-tiremarks-CM4SFul5.js} +1 -1
- package/dist/{vue-ui-treemap-C4Mtlrah.js → vue-ui-treemap-BFIBgzvj.js} +1 -1
- package/dist/{vue-ui-waffle-M4DvcCOK.js → vue-ui-waffle-b5MrZni2.js} +1 -1
- package/dist/{vue-ui-wheel-Uk81MoA6.js → vue-ui-wheel-BphjlN7h.js} +1 -1
- package/dist/vue-ui-word-cloud-BE7kYijj.js +1224 -0
- package/dist/{vue-ui-world-BI0QxIAO.js → vue-ui-world-khFqzGoQ.js} +1 -1
- package/dist/{vue-ui-xy-BYTDwzNW.js → vue-ui-xy-DyWuuhwF.js} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-word-cloud-BMAiJ8ZJ.js +0 -1033
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, ref as i, shallowRef as
|
|
2
|
-
import { c as wt, o as Lt, g as ce, k as
|
|
3
|
-
import { t as
|
|
1
|
+
import { defineAsyncComponent as V, ref as i, shallowRef as pt, computed as g, onMounted as pl, toRefs as kl, nextTick as Be, watch as ie, watchEffect as xl, onBeforeUnmount as wl, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as te, normalizeClass as I, createBlock as $, createCommentVNode as d, createElementVNode as C, withCtx as y, renderSlot as m, normalizeProps as O, guardReactiveProps as P, createSlots as kt, createVNode as xt, Fragment as S, renderList as F, toDisplayString as x, Teleport as Ll, resolveDynamicComponent as Dl, mergeProps as _l, createTextVNode as Ee } from "vue";
|
|
2
|
+
import { c as wt, o as Lt, g as ce, k as Sl, t as Fl, i as Bl, p as de, W as Dt, j as El, l as $e, a5 as $l, F as _t, Z as ze, a as Te, d as ve, X as zl, s as le, a6 as Tl, U as Il, _ as Ol, $ as Pl, a0 as St, u as Nl, q as Rl, a7 as Ft, a8 as Vl } from "./lib-DUaaQGCv.js";
|
|
3
|
+
import { t as Bt, u as Ml } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Ul, a as Ie } from "./useNestedProp-BjZ1Lg9E.js";
|
|
5
5
|
import { u as Hl } from "./usePrinter-BdVu83IN.js";
|
|
6
6
|
import { u as Xl, B as Wl } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -12,30 +12,30 @@ import { u as Zl } from "./useChartAccessibility-9icAAmYg.js";
|
|
|
12
12
|
import { u as Jl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
13
|
import Kl from "./img-BYzbY8TZ.js";
|
|
14
14
|
import Ql from "./Title-BwhstTFA.js";
|
|
15
|
-
import
|
|
16
|
-
import { S as
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
15
|
+
import eo from "./Legend-DSyOOSJ1.js";
|
|
16
|
+
import { S as to } from "./Slicer-DScoMPmj.js";
|
|
17
|
+
import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A" }, dialog: { backgroundColor: "#1A1A1A", color: "#CCCCCC", header: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, donutChart: { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#5A5A5A", yAxis: { dataLabels: { color: "#CCCCCC" } }, xAxis: { dataLabels: { color: "#CCCCCC" } } }, line: { stroke: "#4A4A4A" }, highlighter: { color: "#CCCCCC" }, dataLabels: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, $t = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, dialog: { backgroundColor: "#FFF8E1", color: "#424242", header: { backgroundColor: "##FFF8E1", color: "#424242" }, donutChart: { style: { chart: { backgroundColor: "##FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "##FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#5D4037", showVerticalLines: !1, yAxis: { dataLabels: { color: "#424242" } }, xAxis: { dataLabels: { color: "#424242" } } }, line: { stroke: "#5D4037" }, highlighter: { color: "#424242" }, dataLabels: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, zt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, dialog: { backgroundColor: "#1E1E1E", color: "#BDBDBD", header: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, donutChart: { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#5D4037", showVerticalLines: !1, yAxis: { dataLabels: { color: "#BDBDBD" } }, xAxis: { dataLabels: { color: "#BDBDBD" } } }, line: { stroke: "#5D4037" }, highlighter: { color: "#FFF8E1" }, dataLabels: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, dialog: { backgroundColor: "#1A1A1A", color: "#BDBDBD", header: { backgroundColor: "#1A1A1A", color: "#BDBDBD" }, donutChart: { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#99AA99" }, name: { color: "#99AA99" }, hollow: { total: { color: "#99AA99", value: { color: "#99AA99" } }, average: { color: "#99AA99", value: { color: "#99AA99" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { show: !1, stroke: "#5F6A5F", yAxis: { dataLabels: { color: "#AACCAA" } }, xAxis: { dataLabels: { color: "#AACCAA" } } }, line: { stroke: "#5F6A5F" }, highlighter: { color: "#66CC66" }, dataLabels: { color: "#AACCAA" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, It = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, dialog: { backgroundColor: "#fbfafa", color: "#8A9892", header: { backgroundColor: "#fbfafa", color: "#8A9892" }, donutChart: { style: { chart: { backgroundColor: "#fbfafa", color: "#99AA99", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#A0AC94" }, hollow: { total: { color: "#A0AC94", value: { color: "#A0AC94" } }, average: { color: "#A0AC94", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#A0AC94" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { show: !1, yAxis: { dataLabels: { show: !1 } }, xAxis: { dataLabels: { show: !1 } } }, line: { stroke: "#DCDFE7" }, highlighter: { color: "#8F837A" }, dataLabels: { color: "#A0AC94" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Ot = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, dialog: { backgroundColor: "#f6f6fb", color: "#50606C", header: { backgroundColor: "#f6f6fb", color: "#50606C" }, donutChart: { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#61747E" }, hollow: { total: { color: "#61747E", value: { color: "#61747E" } }, average: { color: "#61747E", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#BBC4D3", yAxis: { dataLabels: { color: "#61747E" } }, xAxis: { dataLabels: { color: "#61747E" } } }, line: { stroke: "#92B0AB" }, highlighter: { color: "#50606C" }, dataLabels: { color: "#61747E" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Pt = {
|
|
19
19
|
default: {},
|
|
20
|
-
dark:
|
|
21
|
-
celebration:
|
|
22
|
-
celebrationNight:
|
|
23
|
-
hack:
|
|
20
|
+
dark: Et,
|
|
21
|
+
celebration: $t,
|
|
22
|
+
celebrationNight: zt,
|
|
23
|
+
hack: Tt,
|
|
24
24
|
zen: It,
|
|
25
25
|
concrete: Ot
|
|
26
|
-
},
|
|
26
|
+
}, ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
27
|
__proto__: null,
|
|
28
|
-
celebration:
|
|
29
|
-
celebrationNight:
|
|
28
|
+
celebration: $t,
|
|
29
|
+
celebrationNight: zt,
|
|
30
30
|
concrete: Ot,
|
|
31
|
-
dark:
|
|
31
|
+
dark: Et,
|
|
32
32
|
default: Pt,
|
|
33
|
-
hack:
|
|
33
|
+
hack: Tt,
|
|
34
34
|
zen: It
|
|
35
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = ["id"], ao = ["id"], ro = ["xmlns", "viewBox"], uo = ["x", "y", "width", "height"], no = ["id"], so = ["stop-color"], io = ["stop-color"], co = ["id"], vo = ["stop-color"], ho = ["stop-color"], go = ["stop-color"], fo = { key: 1 }, yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Co = { key: 0 }, mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ao = ["font-size", "fill", "transform"], po = ["x", "y", "font-size", "fill"], ko = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], wo = { key: 0 }, Lo = ["text-anchor", "font-size", "fill", "transform"], Do = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], _o = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], So = { key: 1 }, Fo = ["cx", "cy", "r", "fill"], Bo = { key: 0 }, Eo = { key: 0 }, $o = ["d", "stroke"], zo = ["text-anchor", "x", "y", "fill"], To = ["cx", "cy", "r", "fill"], Io = { key: 0 }, Oo = ["cx", "cy", "fill"], Po = { key: 1 }, No = ["d", "fill", "stroke"], Ro = { key: 2 }, Vo = ["d", "fill", "stroke"], Mo = ["x", "y", "font-size", "fill"], Uo = ["x", "y", "width", "height", "fill"], Ho = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Xo = {
|
|
36
36
|
key: 4,
|
|
37
37
|
class: "vue-data-ui-watermark"
|
|
38
|
-
},
|
|
38
|
+
}, Wo = ["id"], jo = ["onClick"], Go = { key: 0 }, Yo = { key: 1 }, qo = {
|
|
39
39
|
__name: "vue-ui-donut-evolution",
|
|
40
40
|
props: {
|
|
41
41
|
config: {
|
|
@@ -53,18 +53,18 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectLegend"],
|
|
55
55
|
setup(Nt, { expose: Rt, emit: Vt }) {
|
|
56
|
-
const Mt = V(() => import("./vue-ui-accordion-BXTVRRX7.js")), Ut = V(() => import("./BaseIcon-Dl4VBlHV.js")), Ht = V(() => import("./DataTable-Ho3Bf5oq.js")), Xt = V(() => import("./PackageVersion-
|
|
57
|
-
|
|
56
|
+
const Mt = V(() => import("./vue-ui-accordion-BXTVRRX7.js")), Ut = V(() => import("./BaseIcon-Dl4VBlHV.js")), Ht = V(() => import("./DataTable-Ho3Bf5oq.js")), Xt = V(() => import("./PackageVersion-DtFSiS0a.js")), Wt = V(() => import("./PenAndPaper-kymjF6_b.js")), jt = V(() => import("./UserOptions-DgscxIaa.js")), Gt = V(() => import("./vue-ui-donut-Ckz6GstQ.js").then((t) => t.a)), Oe = V(() => import("./BaseDraggableDialog-DZVSjhEw.js")), { vue_ui_donut_evolution: Yt } = Ul(), { isThemeValid: qt, warnInvalidTheme: Zt } = Yl(), A = Nt, z = i(wt()), k = i([]), b = i(null), oe = i(null), he = i(!1), M = i(null), N = i(null), Jt = i(null), Pe = i(0), Ne = i(0), Re = i(0), Ve = i(0), Me = i(0), ge = i(null), ae = i(null), fe = i(null), ye = i(null), Ue = i(!1), Z = i(null), be = i(null), He = i(null), Xe = i(null), We = i(null), je = i(null), Ge = i(null), Ce = i(!1), J = pt(null), re = pt(null), Ye = i(null), qe = Vt, Ze = g(() => !!A.dataset && A.dataset.length);
|
|
57
|
+
pl(() => {
|
|
58
58
|
Ue.value = !0, Je();
|
|
59
59
|
});
|
|
60
|
-
const
|
|
60
|
+
const ue = g(() => !!e.value.debug);
|
|
61
61
|
function Je() {
|
|
62
|
-
if (Lt(
|
|
62
|
+
if (Lt(A.dataset) ? (ce({
|
|
63
63
|
componentName: "VueUiDonutEvolution",
|
|
64
64
|
type: "dataset",
|
|
65
|
-
debug:
|
|
66
|
-
}), ne.value = !0) :
|
|
67
|
-
|
|
65
|
+
debug: ue.value
|
|
66
|
+
}), ne.value = !0) : A.dataset.length && A.dataset.forEach((t, o) => {
|
|
67
|
+
Sl({
|
|
68
68
|
datasetObject: t,
|
|
69
69
|
requiredAttributes: ["name", "values"]
|
|
70
70
|
}).forEach((l) => {
|
|
@@ -72,16 +72,16 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
72
72
|
componentName: "VueUiDonutEvolution",
|
|
73
73
|
type: "datasetSerieAttribute",
|
|
74
74
|
property: l,
|
|
75
|
-
index:
|
|
76
|
-
debug:
|
|
75
|
+
index: o,
|
|
76
|
+
debug: ue.value
|
|
77
77
|
}), ne.value = !0;
|
|
78
78
|
});
|
|
79
|
-
}), Lt(
|
|
80
|
-
|
|
81
|
-
}, 10),
|
|
82
|
-
const t =
|
|
83
|
-
|
|
84
|
-
const { width:
|
|
79
|
+
}), Lt(A.dataset) || (ne.value = e.value.loading), setTimeout(() => {
|
|
80
|
+
Ce.value = !0;
|
|
81
|
+
}, 10), Ae(), e.value.responsive) {
|
|
82
|
+
const t = Bt(() => {
|
|
83
|
+
Ce.value = !1;
|
|
84
|
+
const { width: o, height: l } = Ml({
|
|
85
85
|
chart: N.value,
|
|
86
86
|
title: e.value.style.chart.title.text ? He.value : null,
|
|
87
87
|
legend: e.value.style.chart.legend.show ? Xe.value : null,
|
|
@@ -89,21 +89,21 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
89
89
|
source: We.value
|
|
90
90
|
});
|
|
91
91
|
requestAnimationFrame(() => {
|
|
92
|
-
j.value.width =
|
|
93
|
-
|
|
92
|
+
j.value.width = o, j.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
|
|
93
|
+
Ce.value = !0;
|
|
94
94
|
}, 10);
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
J.value && (
|
|
97
|
+
J.value && (re.value && J.value.unobserve(re.value), J.value.disconnect()), J.value = new ResizeObserver(t), re.value = N.value.parentNode, J.value.observe(re.value);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
const e = i(
|
|
101
|
-
...kl(
|
|
100
|
+
const e = i(xe()), { loading: Ke, FINAL_DATASET: me, manualLoading: ne } = Xl({
|
|
101
|
+
...kl(A),
|
|
102
102
|
FINAL_CONFIG: e,
|
|
103
|
-
prepareConfig:
|
|
103
|
+
prepareConfig: xe,
|
|
104
104
|
callback: () => {
|
|
105
105
|
Promise.resolve().then(async () => {
|
|
106
|
-
await
|
|
106
|
+
await Ae();
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
109
|
skeletonDataset: [
|
|
@@ -123,7 +123,7 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
123
123
|
color: "#CACACA"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
skeletonConfig:
|
|
126
|
+
skeletonConfig: Fl({
|
|
127
127
|
defaultConfig: e.value,
|
|
128
128
|
userConfig: {
|
|
129
129
|
useCssAnimation: !1,
|
|
@@ -168,63 +168,63 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
168
168
|
}), j = i({
|
|
169
169
|
width: e.value.style.chart.layout.width,
|
|
170
170
|
height: e.value.style.chart.layout.height
|
|
171
|
-
}), Qe = g(() => Math.max(...
|
|
171
|
+
}), Qe = g(() => Math.max(...me.value.map((t) => t.values.length))), h = i({
|
|
172
172
|
start: 0,
|
|
173
173
|
end: Qe.value
|
|
174
174
|
});
|
|
175
175
|
function et() {
|
|
176
|
-
|
|
176
|
+
Ae();
|
|
177
177
|
}
|
|
178
|
-
async function
|
|
179
|
-
await
|
|
180
|
-
const { startIndex: t, endIndex:
|
|
181
|
-
h.value = { start: 0, max:
|
|
178
|
+
async function Ae() {
|
|
179
|
+
await Be(), await Be();
|
|
180
|
+
const { startIndex: t, endIndex: o } = e.value.style.chart.zoom, l = je.value;
|
|
181
|
+
h.value = { start: 0, max: B.value }, (t != null || o != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), o != null ? l.setEndValue(Kt(o + 1)) : (h.value.end = B.value, l.setEndValue(B.value))) : (h.value = {
|
|
182
182
|
start: 0,
|
|
183
|
-
end:
|
|
183
|
+
end: B.value
|
|
184
184
|
}, Ne.value += 1);
|
|
185
185
|
}
|
|
186
186
|
function Kt(t) {
|
|
187
|
-
const
|
|
188
|
-
return t >
|
|
187
|
+
const o = B.value;
|
|
188
|
+
return t > o ? o : 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;
|
|
189
189
|
}
|
|
190
|
-
const { userOptionsVisible:
|
|
191
|
-
function
|
|
190
|
+
const { userOptionsVisible: pe, setUserOptionsVisibility: tt, keepUserOptionState: lt } = ql({ config: e.value }), { svgRef: ke } = Zl({ config: e.value.style.chart.title });
|
|
191
|
+
function xe() {
|
|
192
192
|
const t = Ie({
|
|
193
|
-
userConfig:
|
|
193
|
+
userConfig: A.config,
|
|
194
194
|
defaultConfig: Yt
|
|
195
195
|
});
|
|
196
|
-
let
|
|
196
|
+
let o = {};
|
|
197
197
|
const l = t.theme;
|
|
198
198
|
if (l)
|
|
199
199
|
if (!qt.value(t))
|
|
200
|
-
Zt(t),
|
|
200
|
+
Zt(t), o = t;
|
|
201
201
|
else {
|
|
202
|
-
const
|
|
203
|
-
userConfig: Pt[l] ||
|
|
202
|
+
const u = Ie({
|
|
203
|
+
userConfig: Pt[l] || A.config,
|
|
204
204
|
defaultConfig: t
|
|
205
205
|
});
|
|
206
|
-
|
|
206
|
+
o = {
|
|
207
207
|
...Ie({
|
|
208
|
-
userConfig:
|
|
209
|
-
defaultConfig:
|
|
208
|
+
userConfig: A.config,
|
|
209
|
+
defaultConfig: u
|
|
210
210
|
}),
|
|
211
|
-
customPalette: t.customPalette ? t.customPalette :
|
|
211
|
+
customPalette: t.customPalette ? t.customPalette : Bl[l] || de
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
else
|
|
215
|
-
|
|
216
|
-
return
|
|
215
|
+
o = t;
|
|
216
|
+
return A.config && Dt(A.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = A.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, A.config && Dt(A.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = A.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
|
|
217
217
|
}
|
|
218
|
-
ie(() =>
|
|
219
|
-
Ke.value || (e.value =
|
|
220
|
-
}, { deep: !0 }), ie(() =>
|
|
218
|
+
ie(() => A.config, (t) => {
|
|
219
|
+
Ke.value || (e.value = xe()), pe.value = !e.value.userOptions.showOnChartHover, Je(), Re.value += 1, Ve.value += 1, Me.value += 1, U.value.showTable = e.value.table.show;
|
|
220
|
+
}, { deep: !0 }), ie(() => A.dataset, (t) => {
|
|
221
221
|
Array.isArray(t) && t.length > 0 && (ne.value = !1), et();
|
|
222
222
|
}, { deep: !0 });
|
|
223
|
-
const { isPrinting:
|
|
224
|
-
elementId:
|
|
223
|
+
const { isPrinting: ot, isImaging: at, generatePdf: rt, generateImage: ut } = Hl({
|
|
224
|
+
elementId: z.value,
|
|
225
225
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
226
226
|
options: e.value.userOptions.print
|
|
227
|
-
}), Qt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), el = g(() =>
|
|
227
|
+
}), Qt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), el = g(() => El(e.value.customPalette)), U = i({
|
|
228
228
|
showTable: e.value.table.show
|
|
229
229
|
});
|
|
230
230
|
ie(e, () => {
|
|
@@ -240,121 +240,121 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
240
240
|
}));
|
|
241
241
|
function tl() {
|
|
242
242
|
let t = 0;
|
|
243
|
-
ge.value && (t = Array.from(ge.value.querySelectorAll("text")).reduce((
|
|
244
|
-
const v =
|
|
245
|
-
return v >
|
|
243
|
+
ge.value && (t = Array.from(ge.value.querySelectorAll("text")).reduce((a, f) => {
|
|
244
|
+
const v = f.getComputedTextLength();
|
|
245
|
+
return v > a ? v : a;
|
|
246
246
|
}, 0));
|
|
247
|
-
const
|
|
248
|
-
return t +
|
|
247
|
+
const o = ye.value ? ye.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
248
|
+
return t + o + 5;
|
|
249
249
|
}
|
|
250
|
-
const we = i(0), ll =
|
|
250
|
+
const we = i(0), ll = Bt((t) => {
|
|
251
251
|
we.value = t;
|
|
252
252
|
}, 100);
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
if (!
|
|
256
|
-
const l = new ResizeObserver((
|
|
257
|
-
ll(
|
|
253
|
+
xl((t) => {
|
|
254
|
+
const o = ae.value;
|
|
255
|
+
if (!o) return;
|
|
256
|
+
const l = new ResizeObserver((u) => {
|
|
257
|
+
ll(u[0].contentRect.height);
|
|
258
258
|
});
|
|
259
|
-
l.observe(
|
|
259
|
+
l.observe(o), t(() => l.disconnect());
|
|
260
260
|
}), wl(() => {
|
|
261
261
|
we.value = 0;
|
|
262
262
|
});
|
|
263
263
|
const nt = g(() => {
|
|
264
264
|
let t = 0;
|
|
265
|
-
|
|
266
|
-
let
|
|
267
|
-
return
|
|
268
|
-
}),
|
|
269
|
-
const t = tl(),
|
|
265
|
+
fe.value && (t = fe.value.getBBox().height);
|
|
266
|
+
let o = 0;
|
|
267
|
+
return ae.value && (o = we.value), t + o + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
268
|
+
}), s = g(() => {
|
|
269
|
+
const t = tl(), o = e.value.style.chart.layout.dataLabels.fontSize * 3, l = j.value.width, u = j.value.height, a = H.value.left + t, f = l - H.value.right, v = l - a - H.value.right, p = u - H.value.top - H.value.bottom - o - nt.value, q = H.value.top + o, R = u - H.value.bottom - nt.value;
|
|
270
270
|
return {
|
|
271
271
|
top: q,
|
|
272
|
-
left:
|
|
273
|
-
right:
|
|
272
|
+
left: a,
|
|
273
|
+
right: f,
|
|
274
274
|
bottom: R,
|
|
275
|
-
absoluteHeight:
|
|
275
|
+
absoluteHeight: u,
|
|
276
276
|
absoluteWidth: l,
|
|
277
|
-
centerX:
|
|
278
|
-
centerY: q + Math.max(10,
|
|
277
|
+
centerX: a + Math.max(10, v) / 2,
|
|
278
|
+
centerY: q + Math.max(10, p) / 2,
|
|
279
279
|
width: Math.max(10, v),
|
|
280
|
-
height: Math.max(10,
|
|
280
|
+
height: Math.max(10, p)
|
|
281
281
|
};
|
|
282
|
-
}),
|
|
282
|
+
}), T = g(() => (me.value.forEach((t, o) => {
|
|
283
283
|
[null, void 0].includes(t.name) && ce({
|
|
284
284
|
componentName: "VueUiDonutEvolution",
|
|
285
285
|
type: "datasetSerieAttribute",
|
|
286
286
|
property: "name",
|
|
287
|
-
index:
|
|
288
|
-
debug:
|
|
287
|
+
index: o,
|
|
288
|
+
debug: ue.value
|
|
289
289
|
}), [null, void 0].includes(t.values) && ce({
|
|
290
290
|
componentName: "VueUiDonutEvolution",
|
|
291
291
|
type: "datasetSerieAttribute",
|
|
292
292
|
property: "values",
|
|
293
|
-
index:
|
|
294
|
-
debug:
|
|
293
|
+
index: o,
|
|
294
|
+
debug: ue.value
|
|
295
295
|
});
|
|
296
|
-
}),
|
|
296
|
+
}), me.value.map((t, o) => ({
|
|
297
297
|
...t,
|
|
298
|
-
values:
|
|
299
|
-
color:
|
|
298
|
+
values: $l(t.values),
|
|
299
|
+
color: $e(t.color) || el.value[o] || de[o] || de[o % de.length],
|
|
300
300
|
length: (t.values || []).length,
|
|
301
301
|
uid: wt()
|
|
302
|
-
})))), X = g(() =>
|
|
302
|
+
})))), X = g(() => T.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
|
|
303
303
|
...t,
|
|
304
|
-
values: t.values.filter((
|
|
305
|
-
}))),
|
|
304
|
+
values: t.values.filter((o, l) => l >= h.value.start && l <= h.value.end)
|
|
305
|
+
}))), B = g(() => Math.max(...X.value.map((t) => t.length))), L = g(() => Gl({
|
|
306
306
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
307
|
-
maxDatapoints:
|
|
307
|
+
maxDatapoints: B.value,
|
|
308
308
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
309
309
|
start: h.value.start,
|
|
310
310
|
end: h.value.end
|
|
311
|
-
})), w = g(() =>
|
|
311
|
+
})), w = g(() => s.value.width / (h.value.end - h.value.start)), D = g(() => {
|
|
312
312
|
const t = [];
|
|
313
|
-
for (let
|
|
314
|
-
const
|
|
313
|
+
for (let a = 0; a < h.value.end - h.value.start; a += 1) {
|
|
314
|
+
const f = X.value.map((E) => E.values[a] ?? null), v = f.filter((E) => [void 0, null].includes(E)).length === f.length, p = f.reduce((E, _) => E + _, 0), q = f.map((E) => E / p), R = s.value.left + w.value * a + w.value / 2;
|
|
315
315
|
t.push({
|
|
316
|
-
index:
|
|
316
|
+
index: a,
|
|
317
317
|
percentages: q,
|
|
318
|
-
subtotal: v ||
|
|
319
|
-
values:
|
|
318
|
+
subtotal: v || p < 0 ? null : p,
|
|
319
|
+
values: f,
|
|
320
320
|
x: R
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
const
|
|
324
|
-
return t.map((
|
|
325
|
-
const v = Math.min(
|
|
323
|
+
const o = 0, l = Math.max(...t.map((a) => a.subtotal)), u = t.length === 1 ? l * 2 : l;
|
|
324
|
+
return t.map((a, f) => {
|
|
325
|
+
const v = Math.min(s.value.width / 24, w.value / 2 * 0.7), p = v > s.value.width / 16 ? s.value.width / 16 : v, q = b.value === a.index ? s.value.width / 16 : p, R = t.length > 4 ? v * 2 : v * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : v * 2, E = s.value.bottom - s.value.height * a.subtotal / _t(o, u, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
|
|
326
326
|
return {
|
|
327
|
-
...
|
|
328
|
-
y:
|
|
329
|
-
radius:
|
|
327
|
+
...a,
|
|
328
|
+
y: E,
|
|
329
|
+
radius: p,
|
|
330
330
|
activeRadius: q,
|
|
331
331
|
hoverRadius: R,
|
|
332
|
-
donut:
|
|
333
|
-
series: X.value.map((
|
|
334
|
-
color:
|
|
335
|
-
name:
|
|
336
|
-
value:
|
|
332
|
+
donut: ze({
|
|
333
|
+
series: X.value.map((_, At) => ({
|
|
334
|
+
color: _.color,
|
|
335
|
+
name: _.name,
|
|
336
|
+
value: _.values[f] ?? 0
|
|
337
337
|
}))
|
|
338
|
-
},
|
|
339
|
-
donutHover:
|
|
340
|
-
series: X.value.map((
|
|
341
|
-
color:
|
|
342
|
-
name:
|
|
343
|
-
value:
|
|
338
|
+
}, a.x, E, p, p, 1.99999, 2, 1, 360, 105.25, p / 2),
|
|
339
|
+
donutHover: ze({
|
|
340
|
+
series: X.value.map((_, At) => ({
|
|
341
|
+
color: _.color,
|
|
342
|
+
name: _.name,
|
|
343
|
+
value: _.values[f] ?? 0
|
|
344
344
|
}))
|
|
345
|
-
},
|
|
346
|
-
donutFocus:
|
|
347
|
-
series: X.value.map((
|
|
348
|
-
color:
|
|
349
|
-
name:
|
|
350
|
-
value:
|
|
345
|
+
}, a.x, E, R, R, 1.99999, 2, 1, 360, 105.25, R / 2),
|
|
346
|
+
donutFocus: ze({
|
|
347
|
+
series: X.value.map((_, At) => ({
|
|
348
|
+
color: _.color,
|
|
349
|
+
name: _.name,
|
|
350
|
+
value: _.values[f] ?? 0
|
|
351
351
|
}))
|
|
352
|
-
},
|
|
352
|
+
}, s.value.centerX, s.value.centerY, s.value.height / 3.6, s.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, s.value.height / 6)
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
355
|
});
|
|
356
|
-
function
|
|
357
|
-
return
|
|
356
|
+
function st(t, o, l) {
|
|
357
|
+
return Te(
|
|
358
358
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
359
359
|
t,
|
|
360
360
|
ve({
|
|
@@ -363,48 +363,48 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
363
363
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
364
364
|
r: e.value.style.chart.layout.dataLabels.rounding
|
|
365
365
|
}),
|
|
366
|
-
{ datapoint:
|
|
366
|
+
{ datapoint: o, index: l }
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
369
|
const Le = g(() => ({
|
|
370
|
-
max: Math.max(...
|
|
370
|
+
max: Math.max(...D.value.map((t) => t.subtotal)),
|
|
371
371
|
min: 0
|
|
372
372
|
})), G = g(() => {
|
|
373
|
-
const t =
|
|
374
|
-
return
|
|
373
|
+
const t = D.value.length === 1 ? Le.value.max * 2 : Le.value.max;
|
|
374
|
+
return _t(Le.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
375
375
|
});
|
|
376
|
-
function
|
|
376
|
+
function ol(t) {
|
|
377
377
|
return t / G.value.max;
|
|
378
378
|
}
|
|
379
|
-
const
|
|
380
|
-
y:
|
|
379
|
+
const al = g(() => G.value.ticks.map((t) => ({
|
|
380
|
+
y: s.value.bottom - s.value.height * ol(t),
|
|
381
381
|
value: t
|
|
382
382
|
})));
|
|
383
|
-
function
|
|
384
|
-
return isNaN(t.value /
|
|
383
|
+
function rl(t, o) {
|
|
384
|
+
return isNaN(t.value / Ft(o, "value")) ? 0 : (t.value / Ft(o, "value") * 100).toFixed(0) + "%";
|
|
385
385
|
}
|
|
386
386
|
function it(t) {
|
|
387
|
-
b.value = null,
|
|
387
|
+
b.value = null, oe.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index,
|
|
389
|
+
function ul(t) {
|
|
390
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, oe.value = t;
|
|
391
391
|
}
|
|
392
392
|
const K = i(null);
|
|
393
|
-
function ct(t,
|
|
394
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (
|
|
393
|
+
function ct(t, o) {
|
|
394
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (oe.value = null, b.value = null, he.value = !0, M.value = t, dl(t), [null, void 0].includes(o) || (K.value = o));
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const De = g(() => T.value.map((t, o) => ({
|
|
397
397
|
name: t.name,
|
|
398
|
-
value: t.values.slice(h.value.start, h.value.end).reduce((l,
|
|
398
|
+
value: t.values.slice(h.value.start, h.value.end).reduce((l, u) => l + u, 0),
|
|
399
399
|
shape: "circle",
|
|
400
400
|
uid: t.uid,
|
|
401
401
|
color: t.color
|
|
402
|
-
})).sort((t,
|
|
402
|
+
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
403
403
|
...t,
|
|
404
404
|
opacity: k.value.includes(t.uid) ? 0.5 : 1,
|
|
405
405
|
segregate: () => Q(t.uid),
|
|
406
406
|
isSegregated: k.value.includes(t.uid),
|
|
407
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
407
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Te(
|
|
408
408
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
409
409
|
t.value,
|
|
410
410
|
ve({
|
|
@@ -413,13 +413,13 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
413
413
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
414
414
|
r: e.value.style.chart.legend.roundingValue
|
|
415
415
|
}),
|
|
416
|
-
{ datapoint: t, seriesIndex:
|
|
416
|
+
{ datapoint: t, seriesIndex: o }
|
|
417
417
|
) : ""}${e.value.style.chart.legend.showPercentage ? k.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / dt.value) ? "-" : ve({
|
|
418
418
|
v: t.value / dt.value * 100,
|
|
419
419
|
s: "%",
|
|
420
420
|
r: e.value.style.chart.legend.roundingPercentage
|
|
421
421
|
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
422
|
-
}))), dt = g(() =>
|
|
422
|
+
}))), dt = g(() => D.value.map((t) => t.subtotal).reduce((t, o) => t + o, 0)), nl = g(() => ({
|
|
423
423
|
cy: "donut-div-legend",
|
|
424
424
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
425
425
|
color: e.value.style.chart.legend.color,
|
|
@@ -429,39 +429,39 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
429
429
|
}));
|
|
430
430
|
function Q(t) {
|
|
431
431
|
if (k.value.includes(t))
|
|
432
|
-
k.value = k.value.filter((
|
|
432
|
+
k.value = k.value.filter((o) => o !== t), qe("selectLegend", X.value);
|
|
433
433
|
else {
|
|
434
|
-
if (k.value.length ===
|
|
434
|
+
if (k.value.length === T.value.length - 1) return;
|
|
435
435
|
k.value.push(t), qe("selectLegend", X.value);
|
|
436
436
|
}
|
|
437
|
-
M.value && ct(
|
|
437
|
+
M.value && ct(D.value.find((o, l) => l === K.value));
|
|
438
438
|
}
|
|
439
439
|
function vt(t) {
|
|
440
|
-
if (!
|
|
440
|
+
if (!T.value.length)
|
|
441
441
|
return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
|
|
442
|
-
const
|
|
443
|
-
return
|
|
442
|
+
const o = T.value.find((l) => l.name === t);
|
|
443
|
+
return o || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
|
|
445
|
+
function sl(t) {
|
|
446
|
+
const o = vt(t);
|
|
447
|
+
o !== null && k.value.includes(o.uid) && Q(o.uid);
|
|
448
448
|
}
|
|
449
449
|
function il(t) {
|
|
450
|
-
const
|
|
451
|
-
|
|
450
|
+
const o = vt(t);
|
|
451
|
+
o !== null && (k.value.includes(o.uid) || Q(o.uid));
|
|
452
452
|
}
|
|
453
453
|
const Y = g(() => {
|
|
454
|
-
const t = [""].concat(
|
|
455
|
-
name:
|
|
456
|
-
color:
|
|
454
|
+
const t = [""].concat(T.value.filter((a) => !k.value.includes(a.uid)).map((a) => ({
|
|
455
|
+
name: a.name,
|
|
456
|
+
color: a.color
|
|
457
457
|
}))).concat(["Σ"]);
|
|
458
|
-
let
|
|
459
|
-
for (let
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
value: v.values[
|
|
463
|
-
percentage: v.values[
|
|
464
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
458
|
+
let o = [];
|
|
459
|
+
for (let a = 0; a < B.value; a += 1) {
|
|
460
|
+
const f = T.value.filter((v) => !k.value.includes(v.uid)).map((v) => v.values[a] ?? 0).reduce((v, p) => v + p, 0);
|
|
461
|
+
o.push([L.value[a] ? L.value[a].text : "-"].concat(T.value.filter((v) => !k.value.includes(v.uid)).map((v) => ({
|
|
462
|
+
value: v.values[a] ?? 0,
|
|
463
|
+
percentage: v.values[a] ? v.values[a] / f * 100 : 0
|
|
464
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
465
465
|
}
|
|
466
466
|
const l = {
|
|
467
467
|
th: {
|
|
@@ -475,18 +475,18 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
475
475
|
outline: e.value.table.td.outline
|
|
476
476
|
},
|
|
477
477
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
478
|
-
},
|
|
478
|
+
}, u = [
|
|
479
479
|
e.value.table.columnNames.period
|
|
480
|
-
].concat(
|
|
481
|
-
return { head: t, body:
|
|
480
|
+
].concat(T.value.filter((a) => !k.value.includes(a.uid)).map((a) => a.name)).concat(e.value.table.columnNames.total);
|
|
481
|
+
return { head: t, body: o, config: l, colNames: u };
|
|
482
482
|
});
|
|
483
483
|
function cl() {
|
|
484
|
-
return
|
|
484
|
+
return T.value;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
488
|
-
const
|
|
489
|
-
t ? t(
|
|
486
|
+
function _e(t = null) {
|
|
487
|
+
Be(() => {
|
|
488
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...Y.value.head.map((v) => v.name ?? v)], u = [...Y.value.body.map((v) => v.map((p) => p.value ?? p))], a = o.concat([l]).concat(u), f = Nl(a);
|
|
489
|
+
t ? t(f) : Rl({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
const W = i(!1);
|
|
@@ -496,40 +496,40 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
496
496
|
function gt() {
|
|
497
497
|
U.value.showTable = !U.value.showTable;
|
|
498
498
|
}
|
|
499
|
-
const
|
|
500
|
-
function
|
|
501
|
-
|
|
499
|
+
const se = i(!1);
|
|
500
|
+
function Se() {
|
|
501
|
+
se.value = !se.value;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ft(t) {
|
|
504
504
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
505
505
|
}
|
|
506
|
-
const
|
|
506
|
+
const yt = i([]), bt = i({}), Fe = i(null);
|
|
507
507
|
function dl(t) {
|
|
508
|
-
|
|
509
|
-
name:
|
|
510
|
-
values: [
|
|
511
|
-
color:
|
|
508
|
+
yt.value = t.donut.map((o) => ({
|
|
509
|
+
name: o.name,
|
|
510
|
+
values: [o.value],
|
|
511
|
+
color: o.color
|
|
512
512
|
})), bt.value = Vl({
|
|
513
513
|
...e.value.style.chart.dialog.donutChart,
|
|
514
514
|
responsive: !0,
|
|
515
515
|
theme: e.value.theme
|
|
516
|
-
}),
|
|
516
|
+
}), Fe.value && Fe.value.open();
|
|
517
517
|
}
|
|
518
518
|
async function vl({ scale: t = 2 } = {}) {
|
|
519
519
|
if (!N.value) return;
|
|
520
|
-
const { width:
|
|
520
|
+
const { width: o, height: l } = N.value.getBoundingClientRect(), u = o / l, { imageUri: a, base64: f } = await Kl({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
521
521
|
return {
|
|
522
|
-
imageUri:
|
|
523
|
-
base64:
|
|
522
|
+
imageUri: a,
|
|
523
|
+
base64: f,
|
|
524
524
|
title: e.value.style.chart.title.text,
|
|
525
|
-
width:
|
|
525
|
+
width: o,
|
|
526
526
|
height: l,
|
|
527
|
-
aspectRatio:
|
|
527
|
+
aspectRatio: u
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
const hl = g(() => j.value.width), gl = g(() => j.value.height);
|
|
531
531
|
Jl({
|
|
532
|
-
timeLabelsEls:
|
|
532
|
+
timeLabelsEls: ae,
|
|
533
533
|
timeLabels: L,
|
|
534
534
|
slicer: h,
|
|
535
535
|
configRef: e,
|
|
@@ -541,7 +541,7 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
541
541
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
542
542
|
});
|
|
543
543
|
const ee = g(() => {
|
|
544
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
544
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = U.value.showTable;
|
|
545
545
|
return {
|
|
546
546
|
component: t ? Oe : Mt,
|
|
547
547
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -556,7 +556,7 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
556
556
|
} : {
|
|
557
557
|
hideDetails: !0,
|
|
558
558
|
config: {
|
|
559
|
-
open:
|
|
559
|
+
open: o,
|
|
560
560
|
maxHeight: 1e4,
|
|
561
561
|
body: {
|
|
562
562
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -573,90 +573,90 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
573
573
|
ie(() => U.value.showTable, (t) => {
|
|
574
574
|
e.value.table.show || (t && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
|
|
575
575
|
});
|
|
576
|
-
function
|
|
576
|
+
function Ct() {
|
|
577
577
|
U.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
578
578
|
}
|
|
579
|
-
const
|
|
579
|
+
const fl = g(() => De.value.map((t) => ({
|
|
580
580
|
...t,
|
|
581
581
|
name: t.display
|
|
582
|
-
}))),
|
|
582
|
+
}))), yl = g(() => e.value.style.chart.backgroundColor), bl = g(() => e.value.style.chart.legend), Cl = g(() => e.value.style.chart.title), { exportSvg: ml, getSvg: Al } = jl({
|
|
583
583
|
svg: ke,
|
|
584
|
-
title:
|
|
584
|
+
title: Cl,
|
|
585
585
|
legend: bl,
|
|
586
|
-
legendItems:
|
|
587
|
-
backgroundColor:
|
|
586
|
+
legendItems: fl,
|
|
587
|
+
backgroundColor: yl
|
|
588
588
|
});
|
|
589
|
-
async function
|
|
589
|
+
async function mt({ isCb: t }) {
|
|
590
590
|
if (t) {
|
|
591
|
-
const { blob:
|
|
592
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
591
|
+
const { blob: o, url: l, text: u, dataUrl: a } = await Al();
|
|
592
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: u, dataUrl: a });
|
|
593
593
|
} else
|
|
594
|
-
|
|
594
|
+
ml();
|
|
595
595
|
}
|
|
596
596
|
return Rt({
|
|
597
597
|
getData: cl,
|
|
598
598
|
getImage: vl,
|
|
599
|
-
generatePdf:
|
|
600
|
-
generateCsv:
|
|
601
|
-
generateImage:
|
|
602
|
-
generateSvg:
|
|
599
|
+
generatePdf: rt,
|
|
600
|
+
generateCsv: _e,
|
|
601
|
+
generateImage: ut,
|
|
602
|
+
generateSvg: mt,
|
|
603
603
|
hideSeries: il,
|
|
604
|
-
showSeries:
|
|
604
|
+
showSeries: sl,
|
|
605
605
|
toggleTable: gt,
|
|
606
|
-
toggleAnnotator:
|
|
606
|
+
toggleAnnotator: Se,
|
|
607
607
|
toggleFullscreen: ht
|
|
608
|
-
}), (t,
|
|
608
|
+
}), (t, o) => (r(), n("div", {
|
|
609
609
|
ref_key: "donutEvolutionChart",
|
|
610
610
|
ref: N,
|
|
611
611
|
class: I(`vue-data-ui-component vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
612
612
|
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
613
|
-
id:
|
|
614
|
-
onMouseenter:
|
|
615
|
-
onMouseleave:
|
|
613
|
+
id: z.value,
|
|
614
|
+
onMouseenter: o[5] || (o[5] = () => c(tt)(!0)),
|
|
615
|
+
onMouseleave: o[6] || (o[6] = () => c(tt)(!1))
|
|
616
616
|
}, [
|
|
617
|
-
e.value.userOptions.buttons.annotator ? (
|
|
617
|
+
e.value.userOptions.buttons.annotator ? (r(), $(c(Wt), {
|
|
618
618
|
key: 0,
|
|
619
619
|
svgRef: c(ke),
|
|
620
620
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
621
621
|
color: e.value.style.chart.color,
|
|
622
|
-
active:
|
|
623
|
-
onClose:
|
|
622
|
+
active: se.value,
|
|
623
|
+
onClose: Se
|
|
624
624
|
}, {
|
|
625
|
-
"annotator-action-close":
|
|
626
|
-
|
|
625
|
+
"annotator-action-close": y(() => [
|
|
626
|
+
m(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
627
627
|
]),
|
|
628
|
-
"annotator-action-color":
|
|
629
|
-
|
|
628
|
+
"annotator-action-color": y(({ color: l }) => [
|
|
629
|
+
m(t.$slots, "annotator-action-color", O(P({ color: l })), void 0, !0)
|
|
630
630
|
]),
|
|
631
|
-
"annotator-action-draw":
|
|
632
|
-
|
|
631
|
+
"annotator-action-draw": y(({ mode: l }) => [
|
|
632
|
+
m(t.$slots, "annotator-action-draw", O(P({ mode: l })), void 0, !0)
|
|
633
633
|
]),
|
|
634
|
-
"annotator-action-undo":
|
|
635
|
-
|
|
634
|
+
"annotator-action-undo": y(({ disabled: l }) => [
|
|
635
|
+
m(t.$slots, "annotator-action-undo", O(P({ disabled: l })), void 0, !0)
|
|
636
636
|
]),
|
|
637
|
-
"annotator-action-redo":
|
|
638
|
-
|
|
637
|
+
"annotator-action-redo": y(({ disabled: l }) => [
|
|
638
|
+
m(t.$slots, "annotator-action-redo", O(P({ disabled: l })), void 0, !0)
|
|
639
639
|
]),
|
|
640
|
-
"annotator-action-delete":
|
|
641
|
-
|
|
640
|
+
"annotator-action-delete": y(({ disabled: l }) => [
|
|
641
|
+
m(t.$slots, "annotator-action-delete", O(P({ disabled: l })), void 0, !0)
|
|
642
642
|
]),
|
|
643
643
|
_: 3
|
|
644
644
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
645
|
-
Qt.value ? (
|
|
645
|
+
Qt.value ? (r(), n("div", {
|
|
646
646
|
key: 1,
|
|
647
647
|
ref_key: "noTitle",
|
|
648
648
|
ref: Jt,
|
|
649
649
|
class: "vue-data-ui-no-title-space",
|
|
650
650
|
style: "height:36px; width: 100%;background:transparent"
|
|
651
651
|
}, null, 512)) : d("", !0),
|
|
652
|
-
e.value.style.chart.title.text ? (
|
|
652
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
653
653
|
key: 2,
|
|
654
654
|
ref_key: "chartTitle",
|
|
655
655
|
ref: He,
|
|
656
656
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
657
657
|
onMouseleave: it
|
|
658
658
|
}, [
|
|
659
|
-
(
|
|
659
|
+
(r(), $(Ql, {
|
|
660
660
|
key: `title_${Re.value}`,
|
|
661
661
|
config: {
|
|
662
662
|
title: {
|
|
@@ -670,18 +670,18 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
670
670
|
}
|
|
671
671
|
}, null, 8, ["config"]))
|
|
672
672
|
], 544)) : d("", !0),
|
|
673
|
-
|
|
674
|
-
id: `legend-top-${
|
|
675
|
-
}, null, 8,
|
|
676
|
-
e.value.userOptions.show && Ze.value && (c(lt) || c(
|
|
673
|
+
C("div", {
|
|
674
|
+
id: `legend-top-${z.value}`
|
|
675
|
+
}, null, 8, ao),
|
|
676
|
+
e.value.userOptions.show && Ze.value && (c(lt) || c(pe)) ? (r(), $(c(jt), {
|
|
677
677
|
ref_key: "userOptionsRef",
|
|
678
678
|
ref: be,
|
|
679
679
|
key: `user_options_${Pe.value}`,
|
|
680
680
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
681
681
|
color: e.value.style.chart.color,
|
|
682
|
-
isPrinting: c(
|
|
683
|
-
isImaging: c(
|
|
684
|
-
uid:
|
|
682
|
+
isPrinting: c(ot),
|
|
683
|
+
isImaging: c(at),
|
|
684
|
+
uid: z.value,
|
|
685
685
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
686
686
|
hasImg: e.value.userOptions.buttons.img,
|
|
687
687
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
@@ -693,211 +693,211 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
693
693
|
chartElement: N.value,
|
|
694
694
|
position: e.value.userOptions.position,
|
|
695
695
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
696
|
-
isAnnotation:
|
|
696
|
+
isAnnotation: se.value,
|
|
697
697
|
callbacks: e.value.userOptions.callbacks,
|
|
698
698
|
printScale: e.value.userOptions.print.scale,
|
|
699
699
|
tableDialog: e.value.table.useDialog,
|
|
700
700
|
onToggleFullscreen: ht,
|
|
701
|
-
onGeneratePdf: c(
|
|
702
|
-
onGenerateCsv:
|
|
703
|
-
onGenerateImage: c(
|
|
704
|
-
onGenerateSvg:
|
|
701
|
+
onGeneratePdf: c(rt),
|
|
702
|
+
onGenerateCsv: _e,
|
|
703
|
+
onGenerateImage: c(ut),
|
|
704
|
+
onGenerateSvg: mt,
|
|
705
705
|
onToggleTable: gt,
|
|
706
|
-
onToggleAnnotator:
|
|
706
|
+
onToggleAnnotator: Se,
|
|
707
707
|
style: te({
|
|
708
|
-
visibility: c(lt) ? c(
|
|
708
|
+
visibility: c(lt) ? c(pe) ? "visible" : "hidden" : "visible"
|
|
709
709
|
})
|
|
710
710
|
}, kt({ _: 2 }, [
|
|
711
711
|
t.$slots.menuIcon ? {
|
|
712
712
|
name: "menuIcon",
|
|
713
|
-
fn:
|
|
714
|
-
|
|
713
|
+
fn: y(({ isOpen: l, color: u }) => [
|
|
714
|
+
m(t.$slots, "menuIcon", O(P({ isOpen: l, color: u })), void 0, !0)
|
|
715
715
|
]),
|
|
716
716
|
key: "0"
|
|
717
717
|
} : void 0,
|
|
718
718
|
t.$slots.optionPdf ? {
|
|
719
719
|
name: "optionPdf",
|
|
720
|
-
fn:
|
|
721
|
-
|
|
720
|
+
fn: y(() => [
|
|
721
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
722
722
|
]),
|
|
723
723
|
key: "1"
|
|
724
724
|
} : void 0,
|
|
725
725
|
t.$slots.optionCsv ? {
|
|
726
726
|
name: "optionCsv",
|
|
727
|
-
fn:
|
|
728
|
-
|
|
727
|
+
fn: y(() => [
|
|
728
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
729
729
|
]),
|
|
730
730
|
key: "2"
|
|
731
731
|
} : void 0,
|
|
732
732
|
t.$slots.optionImg ? {
|
|
733
733
|
name: "optionImg",
|
|
734
|
-
fn:
|
|
735
|
-
|
|
734
|
+
fn: y(() => [
|
|
735
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
736
736
|
]),
|
|
737
737
|
key: "3"
|
|
738
738
|
} : void 0,
|
|
739
739
|
t.$slots.optionSvg ? {
|
|
740
740
|
name: "optionSvg",
|
|
741
|
-
fn:
|
|
742
|
-
|
|
741
|
+
fn: y(() => [
|
|
742
|
+
m(t.$slots, "optionSvg", {}, void 0, !0)
|
|
743
743
|
]),
|
|
744
744
|
key: "4"
|
|
745
745
|
} : void 0,
|
|
746
746
|
t.$slots.optionTable ? {
|
|
747
747
|
name: "optionTable",
|
|
748
|
-
fn:
|
|
749
|
-
|
|
748
|
+
fn: y(() => [
|
|
749
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
750
750
|
]),
|
|
751
751
|
key: "5"
|
|
752
752
|
} : void 0,
|
|
753
753
|
t.$slots.optionFullscreen ? {
|
|
754
754
|
name: "optionFullscreen",
|
|
755
|
-
fn:
|
|
756
|
-
|
|
755
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
756
|
+
m(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
757
757
|
]),
|
|
758
758
|
key: "6"
|
|
759
759
|
} : void 0,
|
|
760
760
|
t.$slots.optionAnnotator ? {
|
|
761
761
|
name: "optionAnnotator",
|
|
762
|
-
fn:
|
|
763
|
-
|
|
762
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
763
|
+
m(t.$slots, "optionAnnotator", O(P({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
764
764
|
]),
|
|
765
765
|
key: "7"
|
|
766
766
|
} : void 0
|
|
767
767
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
768
|
-
(
|
|
768
|
+
(r(), n("svg", {
|
|
769
769
|
ref_key: "svgRef",
|
|
770
770
|
ref: ke,
|
|
771
|
-
xmlns: c(
|
|
771
|
+
xmlns: c(zl),
|
|
772
772
|
class: I({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
773
|
-
viewBox: `0 0 ${
|
|
773
|
+
viewBox: `0 0 ${s.value.absoluteWidth} ${s.value.absoluteHeight}`,
|
|
774
774
|
style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
775
775
|
}, [
|
|
776
|
-
|
|
777
|
-
t.$slots["chart-background"] ? (
|
|
776
|
+
xt(c(Xt)),
|
|
777
|
+
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
778
778
|
key: 0,
|
|
779
|
-
x:
|
|
780
|
-
y:
|
|
781
|
-
width:
|
|
782
|
-
height:
|
|
779
|
+
x: s.value.left,
|
|
780
|
+
y: s.value.top,
|
|
781
|
+
width: s.value.width,
|
|
782
|
+
height: s.value.height,
|
|
783
783
|
style: {
|
|
784
784
|
pointerEvents: "none"
|
|
785
785
|
}
|
|
786
786
|
}, [
|
|
787
|
-
|
|
788
|
-
], 8,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
id: `hover_${
|
|
787
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
788
|
+
], 8, uo)) : d("", !0),
|
|
789
|
+
C("defs", null, [
|
|
790
|
+
C("linearGradient", {
|
|
791
|
+
id: `hover_${z.value}`,
|
|
792
792
|
x1: "0%",
|
|
793
793
|
y1: "0%",
|
|
794
794
|
x2: "0%",
|
|
795
795
|
y2: "100%"
|
|
796
796
|
}, [
|
|
797
|
-
|
|
797
|
+
C("stop", {
|
|
798
798
|
offset: "0%",
|
|
799
799
|
"stop-color": c(le)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
800
|
-
}, null, 8,
|
|
801
|
-
|
|
800
|
+
}, null, 8, so),
|
|
801
|
+
C("stop", {
|
|
802
802
|
offset: "100%",
|
|
803
803
|
"stop-color": c(le)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
804
|
-
}, null, 8,
|
|
805
|
-
], 8,
|
|
806
|
-
|
|
807
|
-
id: `focus_${
|
|
804
|
+
}, null, 8, io)
|
|
805
|
+
], 8, no),
|
|
806
|
+
C("radialGradient", {
|
|
807
|
+
id: `focus_${z.value}`
|
|
808
808
|
}, [
|
|
809
|
-
|
|
809
|
+
C("stop", {
|
|
810
810
|
offset: "0%",
|
|
811
|
-
"stop-color": c(le)(c(
|
|
812
|
-
}, null, 8,
|
|
813
|
-
|
|
811
|
+
"stop-color": c(le)(c($e)(e.value.style.chart.backgroundColor), 0)
|
|
812
|
+
}, null, 8, vo),
|
|
813
|
+
C("stop", {
|
|
814
814
|
offset: "77%",
|
|
815
815
|
"stop-color": c(le)("#FFFFFF", 30)
|
|
816
|
-
}, null, 8,
|
|
817
|
-
|
|
816
|
+
}, null, 8, ho),
|
|
817
|
+
C("stop", {
|
|
818
818
|
offset: "100%",
|
|
819
|
-
"stop-color": c(le)(c(
|
|
820
|
-
}, null, 8,
|
|
821
|
-
], 8,
|
|
819
|
+
"stop-color": c(le)(c($e)(e.value.style.chart.backgroundColor), 0)
|
|
820
|
+
}, null, 8, go)
|
|
821
|
+
], 8, co)
|
|
822
822
|
]),
|
|
823
|
-
e.value.style.chart.layout.grid.show ? (
|
|
824
|
-
|
|
825
|
-
x1:
|
|
826
|
-
x2:
|
|
827
|
-
y1:
|
|
828
|
-
y2:
|
|
823
|
+
e.value.style.chart.layout.grid.show ? (r(), n("g", fo, [
|
|
824
|
+
C("line", {
|
|
825
|
+
x1: s.value.left,
|
|
826
|
+
x2: s.value.left,
|
|
827
|
+
y1: s.value.top,
|
|
828
|
+
y2: s.value.top + s.value.height,
|
|
829
829
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
830
830
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
831
831
|
"stroke-linecap": "round"
|
|
832
|
-
}, null, 8,
|
|
833
|
-
|
|
834
|
-
x1:
|
|
835
|
-
x2:
|
|
836
|
-
y1:
|
|
837
|
-
y2:
|
|
832
|
+
}, null, 8, yo),
|
|
833
|
+
C("line", {
|
|
834
|
+
x1: s.value.left,
|
|
835
|
+
x2: s.value.right,
|
|
836
|
+
y1: s.value.bottom,
|
|
837
|
+
y2: s.value.bottom,
|
|
838
838
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
839
839
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
840
840
|
"stroke-linecap": "round"
|
|
841
|
-
}, null, 8,
|
|
842
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (
|
|
843
|
-
(
|
|
844
|
-
x1:
|
|
845
|
-
x2:
|
|
846
|
-
y1:
|
|
847
|
-
y2:
|
|
841
|
+
}, null, 8, bo),
|
|
842
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (r(), n("g", Co, [
|
|
843
|
+
(r(!0), n(S, null, F(h.value.end - h.value.start, (l, u) => (r(), n("line", {
|
|
844
|
+
x1: s.value.left + (u + 1) * w.value,
|
|
845
|
+
x2: s.value.left + (u + 1) * w.value,
|
|
846
|
+
y1: s.value.top,
|
|
847
|
+
y2: s.value.bottom,
|
|
848
848
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
849
849
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
850
850
|
"stroke-linecap": "round"
|
|
851
|
-
}, null, 8,
|
|
851
|
+
}, null, 8, mo))), 256))
|
|
852
852
|
])) : d("", !0)
|
|
853
853
|
])) : d("", !0),
|
|
854
|
-
|
|
855
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (
|
|
854
|
+
C("g", null, [
|
|
855
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (r(), n("text", {
|
|
856
856
|
key: 0,
|
|
857
857
|
ref_key: "yAxisLabel",
|
|
858
|
-
ref:
|
|
858
|
+
ref: ye,
|
|
859
859
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
860
860
|
fill: e.value.style.chart.layout.grid.axis.color,
|
|
861
|
-
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${
|
|
861
|
+
transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
862
862
|
"text-anchor": "middle",
|
|
863
863
|
style: { transition: "none" }
|
|
864
|
-
},
|
|
865
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (
|
|
864
|
+
}, x(e.value.style.chart.layout.grid.axis.yLabel), 9, Ao)) : d("", !0),
|
|
865
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (r(), n("text", {
|
|
866
866
|
key: 1,
|
|
867
867
|
ref_key: "xAxisLabel",
|
|
868
|
-
ref:
|
|
868
|
+
ref: fe,
|
|
869
869
|
"text-anchor": "middle",
|
|
870
|
-
x:
|
|
871
|
-
y:
|
|
870
|
+
x: s.value.absoluteWidth / 2,
|
|
871
|
+
y: s.value.absoluteHeight - 3,
|
|
872
872
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
873
873
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
874
|
-
},
|
|
874
|
+
}, x(e.value.style.chart.layout.grid.axis.xLabel), 9, po)) : d("", !0)
|
|
875
875
|
]),
|
|
876
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
876
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (r(), n("g", {
|
|
877
877
|
key: 2,
|
|
878
878
|
ref_key: "scaleLabels",
|
|
879
879
|
ref: ge,
|
|
880
880
|
class: I({ "donut-opacity": !0, "donut-behind": b.value !== null })
|
|
881
881
|
}, [
|
|
882
|
-
(
|
|
883
|
-
l.value >= G.value.min && l.value <= G.value.max ? (
|
|
882
|
+
(r(!0), n(S, null, F(al.value, (l, u) => (r(), n("g", null, [
|
|
883
|
+
l.value >= G.value.min && l.value <= G.value.max ? (r(), n("line", {
|
|
884
884
|
key: 0,
|
|
885
|
-
x1:
|
|
886
|
-
x2:
|
|
885
|
+
x1: s.value.left,
|
|
886
|
+
x2: s.value.left - 5,
|
|
887
887
|
y1: l.y,
|
|
888
888
|
y2: l.y,
|
|
889
889
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
890
890
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
891
|
-
}, null, 8,
|
|
892
|
-
l.value >= G.value.min && l.value <= G.value.max ? (
|
|
891
|
+
}, null, 8, ko)) : d("", !0),
|
|
892
|
+
l.value >= G.value.min && l.value <= G.value.max ? (r(), n("text", {
|
|
893
893
|
key: 1,
|
|
894
|
-
x:
|
|
894
|
+
x: s.value.left + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
895
895
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
896
896
|
"font-size": e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
897
897
|
"text-anchor": "end",
|
|
898
898
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
899
899
|
"font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
900
|
-
},
|
|
900
|
+
}, x(c(Tl)(l.value) ? c(Te)(
|
|
901
901
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
902
902
|
l.value,
|
|
903
903
|
c(ve)({
|
|
@@ -906,137 +906,137 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
906
906
|
s: e.value.style.chart.layout.dataLabels.suffix,
|
|
907
907
|
r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
908
908
|
}),
|
|
909
|
-
{ datapoint: l, seriesIndex:
|
|
910
|
-
) : ""), 9,
|
|
909
|
+
{ datapoint: l, seriesIndex: u }
|
|
910
|
+
) : ""), 9, xo)) : d("", !0)
|
|
911
911
|
]))), 256))
|
|
912
912
|
], 2)) : d("", !0),
|
|
913
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
913
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (r(), n("g", {
|
|
914
914
|
key: 3,
|
|
915
915
|
ref_key: "timeLabelsEls",
|
|
916
|
-
ref:
|
|
916
|
+
ref: ae,
|
|
917
917
|
class: I({ "donut-opacity": !0 })
|
|
918
918
|
}, [
|
|
919
|
-
(
|
|
920
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (
|
|
921
|
-
String(L.value[
|
|
922
|
-
`) ? (
|
|
919
|
+
(r(!0), n(S, null, F(h.value.end - h.value.start, (l, u) => (r(), n("g", null, [
|
|
920
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (u === 0 || u === B.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[u] && L.value[u].text ? (r(), n("g", wo, [
|
|
921
|
+
String(L.value[u].text).includes(`
|
|
922
|
+
`) ? (r(), n("text", {
|
|
923
923
|
key: 1,
|
|
924
924
|
class: "vue-data-ui-time-label",
|
|
925
925
|
"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",
|
|
926
926
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
927
927
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
928
|
-
transform: `translate(${
|
|
928
|
+
transform: `translate(${s.value.left + w.value * u + w.value / 2}, ${s.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
929
929
|
innerHTML: c(Il)({
|
|
930
|
-
content: String(L.value[
|
|
930
|
+
content: String(L.value[u].text),
|
|
931
931
|
fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
932
932
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
933
933
|
x: 0,
|
|
934
934
|
y: 0
|
|
935
935
|
})
|
|
936
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, Do)) : (r(), n("text", {
|
|
937
937
|
key: 0,
|
|
938
938
|
class: "vue-data-ui-time-label",
|
|
939
939
|
"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",
|
|
940
940
|
"font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
941
941
|
fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
942
|
-
transform: `translate(${
|
|
943
|
-
},
|
|
942
|
+
transform: `translate(${s.value.left + w.value * u + w.value / 2}, ${s.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
943
|
+
}, x(L.value[u].text || ""), 9, Lo))
|
|
944
944
|
])) : d("", !0)
|
|
945
945
|
]))), 256))
|
|
946
946
|
], 512)) : d("", !0),
|
|
947
|
-
(
|
|
948
|
-
e.value.style.chart.layout.line.show &&
|
|
947
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("g", null, [
|
|
948
|
+
e.value.style.chart.layout.line.show && u < D.value.length - 1 && ![l.subtotal, D.value[u + 1].subtotal].includes(null) ? (r(), n("line", {
|
|
949
949
|
key: 0,
|
|
950
950
|
class: I({ "donut-opacity": !0, "donut-behind": b.value !== null }),
|
|
951
951
|
x1: l.x,
|
|
952
952
|
y1: l.y,
|
|
953
|
-
x2:
|
|
954
|
-
y2:
|
|
953
|
+
x2: D.value[u + 1].x,
|
|
954
|
+
y2: D.value[u + 1].y,
|
|
955
955
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
956
956
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
957
957
|
"stroke-linecap": "round",
|
|
958
958
|
"stroke-linejoin": "round"
|
|
959
|
-
}, null, 10,
|
|
960
|
-
l.subtotal !== null ? (
|
|
961
|
-
l.subtotal ? (
|
|
959
|
+
}, null, 10, _o)) : d("", !0),
|
|
960
|
+
l.subtotal !== null ? (r(), n("g", So, [
|
|
961
|
+
l.subtotal ? (r(), n("circle", {
|
|
962
962
|
key: 0,
|
|
963
963
|
cx: l.x,
|
|
964
964
|
cy: l.y,
|
|
965
965
|
r: l.activeRadius,
|
|
966
966
|
fill: e.value.style.chart.backgroundColor
|
|
967
|
-
}, null, 8,
|
|
967
|
+
}, null, 8, Fo)) : d("", !0)
|
|
968
968
|
])) : d("", !0)
|
|
969
969
|
]))), 256)),
|
|
970
|
-
(
|
|
971
|
-
class: I({ "donut-opacity": !0, "donut-behind":
|
|
970
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("g", {
|
|
971
|
+
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
972
972
|
}, [
|
|
973
|
-
l.subtotal ? (
|
|
974
|
-
b.value !== null && b.value ===
|
|
975
|
-
(
|
|
976
|
-
|
|
973
|
+
l.subtotal ? (r(), n("g", Bo, [
|
|
974
|
+
b.value !== null && b.value === u ? (r(), n("g", Eo, [
|
|
975
|
+
(r(!0), n(S, null, F(l.donutHover, (a) => (r(), n("g", null, [
|
|
976
|
+
ft(a) ? (r(), n("path", {
|
|
977
977
|
key: 0,
|
|
978
|
-
d: c(Ol)(
|
|
979
|
-
stroke:
|
|
978
|
+
d: c(Ol)(a, { x: a.center.endX, y: a.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
979
|
+
stroke: a.color,
|
|
980
980
|
"stroke-width": "1",
|
|
981
981
|
"stroke-linecap": "round",
|
|
982
982
|
"stroke-linejoin": "round",
|
|
983
983
|
fill: "none"
|
|
984
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, $o)) : d("", !0)
|
|
985
985
|
]))), 256)),
|
|
986
|
-
(
|
|
987
|
-
|
|
986
|
+
(r(!0), n(S, null, F(l.donutHover, (a, f) => (r(), n("g", null, [
|
|
987
|
+
ft(a) ? (r(), n("text", {
|
|
988
988
|
key: 0,
|
|
989
989
|
"data-cy-hover-label": "",
|
|
990
|
-
"text-anchor": c(
|
|
991
|
-
x: c(
|
|
992
|
-
y: c(Pl)(
|
|
990
|
+
"text-anchor": c(St)(a, !0, 0).anchor,
|
|
991
|
+
x: c(St)(a, !0, 9).x,
|
|
992
|
+
y: c(Pl)(a, 14, 10),
|
|
993
993
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
994
994
|
"font-size": 8,
|
|
995
995
|
"font-weight": "bold"
|
|
996
|
-
},
|
|
996
|
+
}, x(a.name) + ": " + x(rl(a, l.donut)) + " (" + x(a.value === null ? "-" : st(a.value, a, f)) + ") ", 9, zo)) : d("", !0)
|
|
997
997
|
]))), 256)),
|
|
998
|
-
|
|
999
|
-
|
|
998
|
+
C("g", null, [
|
|
999
|
+
C("circle", {
|
|
1000
1000
|
cx: l.x,
|
|
1001
1001
|
cy: l.y,
|
|
1002
1002
|
r: l.hoverRadius,
|
|
1003
1003
|
fill: e.value.style.chart.backgroundColor
|
|
1004
|
-
}, null, 8,
|
|
1004
|
+
}, null, 8, To)
|
|
1005
1005
|
])
|
|
1006
1006
|
])) : d("", !0)
|
|
1007
1007
|
])) : d("", !0)
|
|
1008
1008
|
], 2))), 256)),
|
|
1009
|
-
(
|
|
1010
|
-
class: I({ "donut-opacity": !0, "donut-behind":
|
|
1009
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("g", {
|
|
1010
|
+
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
1011
1011
|
}, [
|
|
1012
|
-
l.subtotal !== null ? (
|
|
1013
|
-
l.subtotal === 0 ? (
|
|
1012
|
+
l.subtotal !== null ? (r(), n("g", Io, [
|
|
1013
|
+
l.subtotal === 0 ? (r(), n("circle", {
|
|
1014
1014
|
key: 0,
|
|
1015
1015
|
cx: l.x,
|
|
1016
1016
|
cy: l.y,
|
|
1017
1017
|
r: 3,
|
|
1018
1018
|
fill: e.value.style.chart.color
|
|
1019
|
-
}, null, 8,
|
|
1020
|
-
(
|
|
1021
|
-
d:
|
|
1022
|
-
fill: `${
|
|
1019
|
+
}, null, 8, Oo)) : b.value !== null && b.value === u ? (r(), n("g", Po, [
|
|
1020
|
+
(r(!0), n(S, null, F(l.donutHover, (a, f) => (r(), n("path", {
|
|
1021
|
+
d: a.arcSlice,
|
|
1022
|
+
fill: `${a.color}`,
|
|
1023
1023
|
"stroke-width": 1,
|
|
1024
1024
|
stroke: e.value.style.chart.backgroundColor
|
|
1025
|
-
}, null, 8,
|
|
1026
|
-
])) : (
|
|
1027
|
-
(
|
|
1028
|
-
d:
|
|
1029
|
-
fill: `${
|
|
1025
|
+
}, null, 8, No))), 256))
|
|
1026
|
+
])) : (r(), n("g", Ro, [
|
|
1027
|
+
(r(!0), n(S, null, F(l.donut, (a, f) => (r(), n("path", {
|
|
1028
|
+
d: a.arcSlice,
|
|
1029
|
+
fill: `${a.color}`,
|
|
1030
1030
|
"stroke-width": 0.5,
|
|
1031
1031
|
stroke: e.value.style.chart.backgroundColor
|
|
1032
|
-
}, null, 8,
|
|
1032
|
+
}, null, 8, Vo))), 256))
|
|
1033
1033
|
]))
|
|
1034
1034
|
])) : d("", !0)
|
|
1035
1035
|
], 2))), 256)),
|
|
1036
|
-
(
|
|
1037
|
-
class: I({ "donut-opacity": !0, "donut-behind":
|
|
1036
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("g", {
|
|
1037
|
+
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null || he.value && u !== M.value.index })
|
|
1038
1038
|
}, [
|
|
1039
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (
|
|
1039
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (r(), n("text", {
|
|
1040
1040
|
key: 0,
|
|
1041
1041
|
"text-anchor": "middle",
|
|
1042
1042
|
x: l.x,
|
|
@@ -1044,43 +1044,43 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1044
1044
|
"font-size": e.value.style.chart.layout.dataLabels.fontSize,
|
|
1045
1045
|
"font-weight": "bold",
|
|
1046
1046
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
1047
|
-
},
|
|
1047
|
+
}, x(st(l.subtotal, l, u)), 9, Mo)) : d("", !0)
|
|
1048
1048
|
], 2))), 256)),
|
|
1049
|
-
(
|
|
1050
|
-
x:
|
|
1051
|
-
y:
|
|
1049
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("rect", {
|
|
1050
|
+
x: s.value.left + u * w.value,
|
|
1051
|
+
y: s.value.top,
|
|
1052
1052
|
width: w.value,
|
|
1053
|
-
height:
|
|
1054
|
-
fill: [b.value, K.value].includes(l.index) ? `url(#hover_${
|
|
1053
|
+
height: s.value.height,
|
|
1054
|
+
fill: [b.value, K.value].includes(l.index) ? `url(#hover_${z.value})` : "transparent",
|
|
1055
1055
|
class: I({ "donut-hover": l.subtotal && [b.value, K.value].includes(l.index) }),
|
|
1056
1056
|
style: {
|
|
1057
1057
|
pointerEvents: "none"
|
|
1058
1058
|
}
|
|
1059
|
-
}, null, 10,
|
|
1060
|
-
(
|
|
1059
|
+
}, null, 10, Uo))), 256)),
|
|
1060
|
+
(r(!0), n(S, null, F(D.value, (l, u) => (r(), n("rect", {
|
|
1061
1061
|
"data-cy-trap": "",
|
|
1062
|
-
x:
|
|
1063
|
-
y:
|
|
1062
|
+
x: s.value.left + u * w.value,
|
|
1063
|
+
y: s.value.top,
|
|
1064
1064
|
width: w.value,
|
|
1065
|
-
height:
|
|
1065
|
+
height: s.value.height,
|
|
1066
1066
|
fill: "transparent",
|
|
1067
|
-
onMouseenter: (
|
|
1068
|
-
onMouseleave: (
|
|
1069
|
-
onClick: (
|
|
1067
|
+
onMouseenter: (a) => ul(l),
|
|
1068
|
+
onMouseleave: (a) => it(l),
|
|
1069
|
+
onClick: (a) => ct(l, u),
|
|
1070
1070
|
class: I({ "donut-hover": b.value === l.index && l.subtotal })
|
|
1071
|
-
}, null, 42,
|
|
1072
|
-
|
|
1073
|
-
], 14,
|
|
1074
|
-
t.$slots.watermark ? (
|
|
1075
|
-
|
|
1071
|
+
}, null, 42, Ho))), 256)),
|
|
1072
|
+
m(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1073
|
+
], 14, ro)),
|
|
1074
|
+
t.$slots.watermark ? (r(), n("div", Xo, [
|
|
1075
|
+
m(t.$slots, "watermark", O(P({ isPrinting: c(ot) || c(at) })), void 0, !0)
|
|
1076
1076
|
])) : d("", !0),
|
|
1077
|
-
|
|
1077
|
+
C("div", {
|
|
1078
1078
|
ref_key: "chartSlicer",
|
|
1079
1079
|
ref: Ge,
|
|
1080
1080
|
style: te(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1081
1081
|
"data-dom-to-png-ignore": ""
|
|
1082
1082
|
}, [
|
|
1083
|
-
|
|
1083
|
+
B.value > 1 && e.value.style.chart.zoom.show ? (r(), $(to, {
|
|
1084
1084
|
ref_key: "slicerComponent",
|
|
1085
1085
|
ref: je,
|
|
1086
1086
|
key: `slicer_${Ne.value}`,
|
|
@@ -1093,71 +1093,71 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1093
1093
|
textColor: e.value.style.chart.color,
|
|
1094
1094
|
inputColor: e.value.style.chart.zoom.color,
|
|
1095
1095
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1096
|
-
max:
|
|
1096
|
+
max: B.value,
|
|
1097
1097
|
min: 0,
|
|
1098
1098
|
valueStart: h.value.start,
|
|
1099
1099
|
valueEnd: h.value.end,
|
|
1100
1100
|
start: h.value.start,
|
|
1101
|
-
"onUpdate:start":
|
|
1101
|
+
"onUpdate:start": o[0] || (o[0] = (l) => h.value.start = l),
|
|
1102
1102
|
end: h.value.end,
|
|
1103
|
-
"onUpdate:end":
|
|
1103
|
+
"onUpdate:end": o[1] || (o[1] = (l) => h.value.end = l),
|
|
1104
1104
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1105
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 :
|
|
1105
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : B.value,
|
|
1106
1106
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1107
1107
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1108
1108
|
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
1109
1109
|
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
1110
1110
|
onReset: et
|
|
1111
1111
|
}, {
|
|
1112
|
-
"reset-action":
|
|
1113
|
-
|
|
1112
|
+
"reset-action": y(({ reset: l }) => [
|
|
1113
|
+
m(t.$slots, "reset-action", O(P({ reset: l })), void 0, !0)
|
|
1114
1114
|
]),
|
|
1115
1115
|
_: 3
|
|
1116
1116
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : d("", !0)
|
|
1117
1117
|
], 4),
|
|
1118
|
-
|
|
1119
|
-
id: `legend-bottom-${
|
|
1120
|
-
}, null, 8,
|
|
1121
|
-
Ue.value ? (
|
|
1118
|
+
C("div", {
|
|
1119
|
+
id: `legend-bottom-${z.value}`
|
|
1120
|
+
}, null, 8, Wo),
|
|
1121
|
+
Ue.value ? (r(), $(Ll, {
|
|
1122
1122
|
key: 5,
|
|
1123
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1123
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
1124
1124
|
}, [
|
|
1125
|
-
|
|
1125
|
+
C("div", {
|
|
1126
1126
|
ref_key: "chartLegend",
|
|
1127
1127
|
ref: Xe
|
|
1128
1128
|
}, [
|
|
1129
|
-
e.value.style.chart.legend.show ? (
|
|
1129
|
+
e.value.style.chart.legend.show ? (r(), $(eo, {
|
|
1130
1130
|
key: `legend_${Me.value}`,
|
|
1131
|
-
legendSet:
|
|
1131
|
+
legendSet: De.value,
|
|
1132
1132
|
config: nl.value,
|
|
1133
|
-
onClickMarker:
|
|
1133
|
+
onClickMarker: o[2] || (o[2] = ({ legend: l }) => Q(l.uid))
|
|
1134
1134
|
}, {
|
|
1135
|
-
item:
|
|
1136
|
-
|
|
1137
|
-
onClick: (
|
|
1135
|
+
item: y(({ legend: l, index: u }) => [
|
|
1136
|
+
C("div", {
|
|
1137
|
+
onClick: (a) => Q(l.uid),
|
|
1138
1138
|
style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1139
|
-
},
|
|
1139
|
+
}, x(l.display), 13, jo)
|
|
1140
1140
|
]),
|
|
1141
1141
|
_: 1
|
|
1142
1142
|
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
1143
|
-
|
|
1143
|
+
m(t.$slots, "legend", { legend: De.value }, void 0, !0)
|
|
1144
1144
|
], 512)
|
|
1145
1145
|
], 8, ["to"])) : d("", !0),
|
|
1146
|
-
t.$slots.source ? (
|
|
1146
|
+
t.$slots.source ? (r(), n("div", {
|
|
1147
1147
|
key: 6,
|
|
1148
1148
|
ref_key: "source",
|
|
1149
1149
|
ref: We,
|
|
1150
1150
|
dir: "auto"
|
|
1151
1151
|
}, [
|
|
1152
|
-
|
|
1152
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
1153
1153
|
], 512)) : d("", !0),
|
|
1154
|
-
Ze.value && e.value.userOptions.buttons.table ? (
|
|
1154
|
+
Ze.value && e.value.userOptions.buttons.table ? (r(), $(Dl(ee.value.component), _l({ key: 7 }, ee.value.props, {
|
|
1155
1155
|
ref_key: "tableUnit",
|
|
1156
1156
|
ref: Z,
|
|
1157
|
-
onClose:
|
|
1157
|
+
onClose: Ct
|
|
1158
1158
|
}), kt({
|
|
1159
|
-
content:
|
|
1160
|
-
(
|
|
1159
|
+
content: y(() => [
|
|
1160
|
+
(r(), $(c(Ht), {
|
|
1161
1161
|
key: `table_${Ve.value}`,
|
|
1162
1162
|
colNames: Y.value.colNames,
|
|
1163
1163
|
head: Y.value.head,
|
|
@@ -1165,14 +1165,14 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1165
1165
|
config: Y.value.config,
|
|
1166
1166
|
title: e.value.table.useDialog ? "" : ee.value.title,
|
|
1167
1167
|
withCloseButton: !e.value.table.useDialog,
|
|
1168
|
-
onClose:
|
|
1168
|
+
onClose: Ct
|
|
1169
1169
|
}, {
|
|
1170
|
-
th:
|
|
1171
|
-
|
|
1170
|
+
th: y(({ th: l }) => [
|
|
1171
|
+
Ee(x(l.name ?? l), 1)
|
|
1172
1172
|
]),
|
|
1173
|
-
td:
|
|
1174
|
-
l.value === null ? (
|
|
1175
|
-
|
|
1173
|
+
td: y(({ td: l }) => [
|
|
1174
|
+
l.value === null ? (r(), n("span", Go, "-")) : (r(), n("b", Yo, x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + x(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + x(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1175
|
+
C("span", null, x(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1176
1176
|
]),
|
|
1177
1177
|
_: 1
|
|
1178
1178
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1181,20 +1181,20 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1181
1181
|
}, [
|
|
1182
1182
|
e.value.table.useDialog ? {
|
|
1183
1183
|
name: "title",
|
|
1184
|
-
fn:
|
|
1185
|
-
|
|
1184
|
+
fn: y(() => [
|
|
1185
|
+
Ee(x(ee.value.title), 1)
|
|
1186
1186
|
]),
|
|
1187
1187
|
key: "0"
|
|
1188
1188
|
} : void 0,
|
|
1189
1189
|
e.value.table.useDialog ? {
|
|
1190
1190
|
name: "actions",
|
|
1191
|
-
fn:
|
|
1192
|
-
|
|
1191
|
+
fn: y(() => [
|
|
1192
|
+
C("button", {
|
|
1193
1193
|
tabindex: "0",
|
|
1194
1194
|
class: "vue-ui-user-options-button",
|
|
1195
|
-
onClick:
|
|
1195
|
+
onClick: o[3] || (o[3] = (l) => _e(e.value.userOptions.callbacks.csv))
|
|
1196
1196
|
}, [
|
|
1197
|
-
|
|
1197
|
+
xt(c(Ut), {
|
|
1198
1198
|
name: "excel",
|
|
1199
1199
|
stroke: ee.value.props.color
|
|
1200
1200
|
}, null, 8, ["stroke"])
|
|
@@ -1203,12 +1203,12 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1203
1203
|
key: "1"
|
|
1204
1204
|
} : void 0
|
|
1205
1205
|
]), 1040)) : d("", !0),
|
|
1206
|
-
e.value.style.chart.dialog.show ? (
|
|
1206
|
+
e.value.style.chart.dialog.show ? (r(), $(c(Oe), {
|
|
1207
1207
|
key: 8,
|
|
1208
1208
|
ref_key: "dialog",
|
|
1209
|
-
ref:
|
|
1210
|
-
onClose:
|
|
1211
|
-
M.value = null, he.value = !1,
|
|
1209
|
+
ref: Fe,
|
|
1210
|
+
onClose: o[4] || (o[4] = (l) => {
|
|
1211
|
+
M.value = null, he.value = !1, oe.value = null, b.value = null, K.value = null;
|
|
1212
1212
|
}),
|
|
1213
1213
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1214
1214
|
color: e.value.style.chart.dialog.color,
|
|
@@ -1217,27 +1217,27 @@ const Ft = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1217
1217
|
isFullscreen: W.value,
|
|
1218
1218
|
fullscreenParent: N.value
|
|
1219
1219
|
}, {
|
|
1220
|
-
title:
|
|
1221
|
-
|
|
1220
|
+
title: y(() => [
|
|
1221
|
+
Ee(x(L.value[Number(M.value.index)] ? L.value[Number(M.value.index)].text : ""), 1)
|
|
1222
1222
|
]),
|
|
1223
|
-
content:
|
|
1224
|
-
M.value ? (
|
|
1223
|
+
content: y(() => [
|
|
1224
|
+
M.value ? (r(), $(c(Gt), {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
config: bt.value,
|
|
1227
|
-
dataset:
|
|
1227
|
+
dataset: yt.value
|
|
1228
1228
|
}, null, 8, ["config", "dataset"])) : d("", !0)
|
|
1229
1229
|
]),
|
|
1230
1230
|
_: 1
|
|
1231
1231
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : d("", !0),
|
|
1232
|
-
c(Ke) ? (
|
|
1233
|
-
], 46,
|
|
1232
|
+
c(Ke) ? (r(), $(Wl, { key: 9 })) : d("", !0)
|
|
1233
|
+
], 46, oo));
|
|
1234
1234
|
}
|
|
1235
|
-
},
|
|
1235
|
+
}, Zo = /* @__PURE__ */ lo(qo, [["__scopeId", "data-v-ddadc763"]]), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1236
1236
|
__proto__: null,
|
|
1237
|
-
default:
|
|
1237
|
+
default: Zo
|
|
1238
1238
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1239
1239
|
export {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1240
|
+
ga as a,
|
|
1241
|
+
fa as b,
|
|
1242
|
+
Zo as v
|
|
1243
1243
|
};
|