vue-data-ui 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as R, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as R, useSlots as it, ref as r, computed as f, toRefs as vt, watch as le, shallowRef as Ne, onMounted as ct, onBeforeUnmount as dt, createElementBlock as d, openBlock as i, unref as s, normalizeStyle as S, normalizeClass as B, createBlock as F, createCommentVNode as b, createElementVNode as $, createVNode as ae, createSlots as Le, withCtx as g, renderSlot as h, normalizeProps as D, guardReactiveProps as M, Fragment as oe, renderList as se, mergeProps as ht, Teleport as pt, toDisplayString as E, createTextVNode as gt, nextTick as ft } from "vue";
|
|
2
|
+
import { u as yt, c as Ve, t as mt, a as bt, p as P, b as kt, o as Re, f as ne, g as wt, d as Ct, G as $t, e as De, i as N, X as Tt, s as _t, x as xt, h as X, k as Me, v as At, w as Ft, y as It, z as Ot } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { t as St, u as Pt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nt } from "./usePrinter-DX7efa1s.js";
|
|
5
|
+
import { u as Lt, B as Vt } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as ze } from "./useNestedProp-04aFeUYu.js";
|
|
7
|
+
import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Mt from "./Legend-DcDSkq99.js";
|
|
10
|
+
import zt from "./Title-B55R8CAZ.js";
|
|
11
|
+
import { _ as Bt } from "./Shape-DHIaJs9G.js";
|
|
12
|
+
import Et from "./img-Ctts6JQb.js";
|
|
13
|
+
import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Wt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], jt = ["width", "height"], Xt = ["id"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 1 }, Kt = ["stroke", "cx", "cy", "r", "fill"], Qt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], el = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], tl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ll = ["id"], al = ["onClick"], ol = ["innerHTML"], sl = {
|
|
18
18
|
__name: "vue-ui-rings",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,9 +31,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(Be, { expose: Ee, emit: Ue }) {
|
|
35
|
+
const We = R(() => import("./vue-ui-accordion-D46i_gkB.js")), Ge = R(() => import("./DataTable-rj9-mAwF.js")), He = R(() => import("./PackageVersion-5ZjKSIei.js")), je = R(() => import("./PenAndPaper-BJ0hcgsa.js")), Xe = R(() => import("./Tooltip-BMOddG-M.js")), Ye = R(() => import("./UserOptions-DVzyjG-W.js")), { vue_ui_rings: qe } = yt(), Je = it(), k = Be, I = r(!1), ue = f(() => !!k.dataset && k.dataset.length), y = r(Ve()), Ke = r(null), U = r(!1), Y = r(""), T = r(null), re = r(0), _ = r(null), ie = r(null), ve = r(null), ce = r(null), de = r(null), he = r(0), pe = r(0), ge = r(0), q = r(!1), fe = r(!1), e = r(K()), { loading: O, FINAL_DATASET: ye, manualLoading: W } = Lt({
|
|
36
|
+
...vt(k),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: K,
|
|
39
39
|
skeletonDataset: [
|
|
@@ -43,7 +43,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
43
43
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
44
44
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
45
45
|
],
|
|
46
|
-
skeletonConfig:
|
|
46
|
+
skeletonConfig: mt({
|
|
47
47
|
defaultConfig: e.value,
|
|
48
48
|
userConfig: {
|
|
49
49
|
userOptions: { show: !1 },
|
|
@@ -66,41 +66,41 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
})
|
|
69
|
-
}), { userOptionsVisible: J, setUserOptionsVisibility:
|
|
69
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: me, keepUserOptionState: be } = Rt({ config: e.value }), { svgRef: ke } = Dt({ config: e.value.style.chart.title });
|
|
70
70
|
function K() {
|
|
71
|
-
const t =
|
|
72
|
-
userConfig:
|
|
73
|
-
defaultConfig:
|
|
71
|
+
const t = ze({
|
|
72
|
+
userConfig: k.config,
|
|
73
|
+
defaultConfig: qe
|
|
74
74
|
});
|
|
75
75
|
return t.theme ? {
|
|
76
|
-
...
|
|
77
|
-
userConfig:
|
|
76
|
+
...ze({
|
|
77
|
+
userConfig: kt.vue_ui_rings[t.theme] || k.config,
|
|
78
78
|
defaultConfig: t
|
|
79
79
|
}),
|
|
80
|
-
customPalette:
|
|
80
|
+
customPalette: bt[t.theme] || P
|
|
81
81
|
} : t;
|
|
82
82
|
}
|
|
83
|
-
le(() =>
|
|
84
|
-
|
|
85
|
-
}, { deep: !0 }), le(() =>
|
|
83
|
+
le(() => k.config, (t) => {
|
|
84
|
+
O.value || (e.value = K()), J.value = !e.value.userOptions.showOnChartHover, we(), he.value += 1, pe.value += 1, ge.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
85
|
+
}, { deep: !0 }), le(() => k.dataset, (t) => {
|
|
86
86
|
Array.isArray(t) && t.length > 0 && (W.value = !1);
|
|
87
87
|
}, { deep: !0 });
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
const x = Ne(null), L = Ne(null);
|
|
89
|
+
ct(() => {
|
|
90
|
+
fe.value = !0, we();
|
|
91
91
|
});
|
|
92
92
|
const Q = f(() => !!e.value.debug);
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
93
|
+
function we() {
|
|
94
|
+
if (Re(k.dataset) ? (ne({
|
|
95
95
|
componentName: "VueUiRings",
|
|
96
96
|
type: "dataset",
|
|
97
97
|
debug: Q.value
|
|
98
|
-
}), W.value = !0) :
|
|
98
|
+
}), W.value = !0) : k.dataset.forEach((t, a) => {
|
|
99
99
|
t.values.length || (ne({
|
|
100
100
|
componentName: "VueUiRings",
|
|
101
101
|
type: "dataset",
|
|
102
102
|
debug: Q.value
|
|
103
|
-
}), W.value = !0),
|
|
103
|
+
}), W.value = !0), wt({
|
|
104
104
|
datasetObject: t,
|
|
105
105
|
requiredAttributes: ["name", "values"]
|
|
106
106
|
}).forEach((l) => {
|
|
@@ -112,11 +112,11 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
112
112
|
debug: Q.value
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
}),
|
|
116
|
-
const t =
|
|
115
|
+
}), Re(k.dataset) || (W.value = e.value.loading), e.value.responsive) {
|
|
116
|
+
const t = St(() => {
|
|
117
117
|
q.value = !0;
|
|
118
|
-
const { width: a, height: l } =
|
|
119
|
-
chart:
|
|
118
|
+
const { width: a, height: l } = Pt({
|
|
119
|
+
chart: _.value,
|
|
120
120
|
title: e.value.style.chart.title.text ? ie.value : null,
|
|
121
121
|
legend: e.value.style.chart.legend.show ? ve.value : null,
|
|
122
122
|
source: ce.value,
|
|
@@ -126,25 +126,25 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
126
126
|
n.value.width = a, n.value.height = l - 12, q.value = !1;
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
|
-
|
|
129
|
+
x.value && (L.value && x.value.unobserve(L.value), x.value.disconnect()), x.value = new ResizeObserver(t), L.value = _.value.parentNode, x.value.observe(L.value);
|
|
130
130
|
}
|
|
131
131
|
setTimeout(() => {
|
|
132
|
-
|
|
132
|
+
I.value = !0;
|
|
133
133
|
}, 600);
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
dt(() => {
|
|
136
|
+
x.value && (L.value && x.value.unobserve(L.value), x.value.disconnect());
|
|
137
137
|
});
|
|
138
|
-
const { isPrinting:
|
|
139
|
-
elementId: `rings_${
|
|
138
|
+
const { isPrinting: Ce, isImaging: $e, generatePdf: Te, generateImage: _e } = Nt({
|
|
139
|
+
elementId: `rings_${y.value}`,
|
|
140
140
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
141
141
|
options: e.value.userOptions.print
|
|
142
|
-
}),
|
|
142
|
+
}), Qe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => Ct(e.value.customPalette)), w = r({
|
|
143
143
|
showTable: e.value.table.show,
|
|
144
144
|
showTooltip: e.value.style.chart.tooltip.show
|
|
145
145
|
});
|
|
146
146
|
le(e, () => {
|
|
147
|
-
|
|
147
|
+
w.value = {
|
|
148
148
|
showTable: e.value.table.show,
|
|
149
149
|
showTooltip: e.value.style.chart.tooltip.show
|
|
150
150
|
};
|
|
@@ -152,54 +152,54 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
152
152
|
const n = r({
|
|
153
153
|
height: 360,
|
|
154
154
|
width: 360
|
|
155
|
-
}),
|
|
155
|
+
}), Ze = f(() => Math.min(n.value.height, n.value.width)), et = Ue, m = r([]);
|
|
156
156
|
function Z(t) {
|
|
157
|
-
|
|
157
|
+
m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t), et("selectLegend", p.value.map((a) => ({
|
|
158
158
|
name: a.name,
|
|
159
159
|
color: a.color,
|
|
160
160
|
value: a.value
|
|
161
161
|
})));
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
...G.value.filter((t) => !
|
|
163
|
+
const tt = f(() => Math.max(
|
|
164
|
+
...G.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
|
|
165
165
|
));
|
|
166
|
-
function
|
|
167
|
-
return t /
|
|
166
|
+
function Ae(t) {
|
|
167
|
+
return t / tt.value;
|
|
168
168
|
}
|
|
169
|
-
const G = f(() =>
|
|
170
|
-
const u =
|
|
169
|
+
const G = f(() => ye.value.map(({ values: t, name: a, color: l = null }, o) => {
|
|
170
|
+
const u = $t(t).reduce((v, z) => v + z, 0);
|
|
171
171
|
return {
|
|
172
172
|
name: a,
|
|
173
|
-
color: l ||
|
|
173
|
+
color: l || De(l) || xe.value[o] || P[o] || P[o % P.length],
|
|
174
174
|
value: u,
|
|
175
|
-
proportion: u /
|
|
176
|
-
uid:
|
|
175
|
+
proportion: u / ye.value.map((v) => (v.values || []).reduce((z, rt) => z + rt, 0)).reduce((v, z) => v + z, 0),
|
|
176
|
+
uid: Ve(),
|
|
177
177
|
absoluteIndex: o
|
|
178
178
|
};
|
|
179
|
-
})),
|
|
179
|
+
})), Fe = f(() => G.value.map((t) => ({
|
|
180
180
|
...t,
|
|
181
181
|
shape: "circle",
|
|
182
|
-
opacity:
|
|
182
|
+
opacity: m.value.includes(t.uid) ? 0.5 : 1,
|
|
183
183
|
segregate: () => Z(t.uid),
|
|
184
|
-
isSegregated:
|
|
185
|
-
})).toSorted((t, a) => a.value - t.value)),
|
|
184
|
+
isSegregated: m.value.includes(t.uid)
|
|
185
|
+
})).toSorted((t, a) => a.value - t.value)), lt = f(() => ({
|
|
186
186
|
cy: "rings-div-legend",
|
|
187
187
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
188
188
|
color: e.value.style.chart.legend.color,
|
|
189
189
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
190
190
|
paddingBottom: 12,
|
|
191
191
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
192
|
-
})),
|
|
192
|
+
})), C = f(() => G.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = f(() => G.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: u }, v) => ({
|
|
193
193
|
absoluteIndex: u,
|
|
194
194
|
uid: o,
|
|
195
195
|
name: t,
|
|
196
|
-
color: l ||
|
|
196
|
+
color: l || De(l) || xe.value[v] || P[v] || P[v % P.length],
|
|
197
197
|
value: a,
|
|
198
|
-
proportion:
|
|
199
|
-
percentage: a /
|
|
200
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
198
|
+
proportion: Ae(a),
|
|
199
|
+
percentage: a / C.value * 100,
|
|
200
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ae(a)
|
|
201
201
|
})).toSorted((t, a) => a.value - t.value));
|
|
202
|
-
function
|
|
202
|
+
function at() {
|
|
203
203
|
return p.value.map(
|
|
204
204
|
({ name: t, color: a, value: l, absoluteValues: o, percentage: u }) => ({
|
|
205
205
|
name: t,
|
|
@@ -210,24 +210,24 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
|
-
const c = f(() =>
|
|
214
|
-
function
|
|
213
|
+
const c = f(() => Ze.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
214
|
+
function ot(t, a) {
|
|
215
215
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
217
|
+
function st(t, a) {
|
|
218
|
+
T.value = null, U.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
219
219
|
}
|
|
220
220
|
const ee = r(null);
|
|
221
|
-
function
|
|
222
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
221
|
+
function nt(t, a) {
|
|
222
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), m.value.length === k.dataset.length) return;
|
|
223
223
|
ee.value = {
|
|
224
224
|
datapoint: t,
|
|
225
225
|
seriesIndex: a,
|
|
226
226
|
series: p.value,
|
|
227
227
|
config: e.value
|
|
228
|
-
},
|
|
228
|
+
}, T.value = a;
|
|
229
229
|
const l = p.value[a], o = e.value.style.chart.tooltip.customFormat;
|
|
230
|
-
if (
|
|
230
|
+
if (It(o) && Ot(() => o({
|
|
231
231
|
seriesIndex: a,
|
|
232
232
|
datapoint: t,
|
|
233
233
|
series: p.value,
|
|
@@ -241,7 +241,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
241
241
|
});
|
|
242
242
|
else {
|
|
243
243
|
let u = "";
|
|
244
|
-
u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${
|
|
244
|
+
u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Je.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${Me(
|
|
245
245
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
246
246
|
l.value,
|
|
247
247
|
N({
|
|
@@ -253,18 +253,18 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
253
253
|
{ datapoint: t, seriesIndex: a }
|
|
254
254
|
)}
|
|
255
255
|
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${N({
|
|
256
|
-
v: l.value /
|
|
256
|
+
v: l.value / C.value * 100,
|
|
257
257
|
s: "%",
|
|
258
258
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
259
259
|
})})</span></div>` : u += `<b>${N({
|
|
260
|
-
v: l.value /
|
|
260
|
+
v: l.value / C.value * 100,
|
|
261
261
|
s: "%",
|
|
262
262
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
263
263
|
})}</b></div>`), Y.value = u;
|
|
264
264
|
}
|
|
265
265
|
U.value = !0;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const A = f(() => {
|
|
268
268
|
const t = p.value.map((l) => ({
|
|
269
269
|
name: l.name,
|
|
270
270
|
color: l.color
|
|
@@ -273,15 +273,15 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
273
273
|
}), H = f(() => {
|
|
274
274
|
const t = [
|
|
275
275
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
276
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
276
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
277
277
|
"100%"
|
|
278
|
-
], a =
|
|
278
|
+
], a = A.value.head.map((u, v) => [
|
|
279
279
|
{
|
|
280
280
|
color: u.color,
|
|
281
281
|
name: u.name
|
|
282
282
|
},
|
|
283
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
284
|
-
isNaN(
|
|
283
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
284
|
+
isNaN(A.value.body[v] / C.value) ? "-" : (A.value.body[v] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
285
285
|
]), l = {
|
|
286
286
|
th: {
|
|
287
287
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -306,31 +306,31 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
306
306
|
colNames: o
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
|
-
function
|
|
310
|
-
|
|
311
|
-
const a =
|
|
309
|
+
function Ie(t = null) {
|
|
310
|
+
ft(() => {
|
|
311
|
+
const a = A.value.head.map((u, v) => [[
|
|
312
312
|
u.name
|
|
313
|
-
], [
|
|
314
|
-
t ? t(o) :
|
|
313
|
+
], [A.value.body[v]], [isNaN(A.value.body[v] / C.value) ? "-" : A.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = At(l);
|
|
314
|
+
t ? t(o) : Ft({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
const V = r(!1);
|
|
318
|
-
function
|
|
318
|
+
function Oe(t) {
|
|
319
319
|
V.value = t, re.value += 1;
|
|
320
320
|
}
|
|
321
|
-
function Oe() {
|
|
322
|
-
k.value.showTable = !k.value.showTable;
|
|
323
|
-
}
|
|
324
321
|
function Se() {
|
|
325
|
-
|
|
322
|
+
w.value.showTable = !w.value.showTable;
|
|
323
|
+
}
|
|
324
|
+
function Pe() {
|
|
325
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
326
326
|
}
|
|
327
327
|
const j = r(!1);
|
|
328
328
|
function te() {
|
|
329
329
|
j.value = !j.value;
|
|
330
330
|
}
|
|
331
|
-
async function
|
|
332
|
-
if (!
|
|
333
|
-
const { width: a, height: l } =
|
|
331
|
+
async function ut({ scale: t = 2 } = {}) {
|
|
332
|
+
if (!_.value) return;
|
|
333
|
+
const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: v } = await Et({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
334
334
|
return {
|
|
335
335
|
imageUri: u,
|
|
336
336
|
base64: v,
|
|
@@ -340,36 +340,36 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
340
340
|
aspectRatio: o
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
|
-
return
|
|
344
|
-
getData:
|
|
345
|
-
getImage:
|
|
346
|
-
generatePdf:
|
|
347
|
-
generateCsv:
|
|
348
|
-
generateImage:
|
|
349
|
-
toggleTable:
|
|
350
|
-
toggleTooltip:
|
|
343
|
+
return Ee({
|
|
344
|
+
getData: at,
|
|
345
|
+
getImage: ut,
|
|
346
|
+
generatePdf: Te,
|
|
347
|
+
generateCsv: Ie,
|
|
348
|
+
generateImage: _e,
|
|
349
|
+
toggleTable: Se,
|
|
350
|
+
toggleTooltip: Pe,
|
|
351
351
|
toggleAnnotator: te,
|
|
352
|
-
toggleFullscreen:
|
|
352
|
+
toggleFullscreen: Oe
|
|
353
353
|
}), (t, a) => (i(), d("div", {
|
|
354
354
|
ref_key: "ringsChart",
|
|
355
|
-
ref:
|
|
355
|
+
ref: _,
|
|
356
356
|
class: B(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
357
|
-
style:
|
|
358
|
-
id: `rings_${
|
|
357
|
+
style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
358
|
+
id: `rings_${y.value}`,
|
|
359
359
|
onMouseleave: a[2] || (a[2] = (l) => {
|
|
360
|
-
|
|
360
|
+
T.value = null, U.value = !1, s(me)(!1);
|
|
361
361
|
}),
|
|
362
|
-
onMouseenter: a[3] || (a[3] = () => s(
|
|
362
|
+
onMouseenter: a[3] || (a[3] = () => s(me)(!0))
|
|
363
363
|
}, [
|
|
364
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
364
|
+
e.value.userOptions.buttons.annotator ? (i(), F(s(je), {
|
|
365
365
|
key: 0,
|
|
366
|
-
svgRef: s(
|
|
366
|
+
svgRef: s(ke),
|
|
367
367
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
368
368
|
color: e.value.style.chart.color,
|
|
369
369
|
active: j.value,
|
|
370
370
|
onClose: te
|
|
371
371
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
372
|
-
|
|
372
|
+
Qe.value ? (i(), d("div", {
|
|
373
373
|
key: 1,
|
|
374
374
|
ref_key: "noTitle",
|
|
375
375
|
ref: de,
|
|
@@ -382,7 +382,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
382
382
|
ref: ie,
|
|
383
383
|
style: "width:100%;background:transparent"
|
|
384
384
|
}, [
|
|
385
|
-
(i(),
|
|
385
|
+
(i(), F(zt, {
|
|
386
386
|
key: `title_${he.value}`,
|
|
387
387
|
config: {
|
|
388
388
|
title: {
|
|
@@ -396,41 +396,44 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
396
396
|
}
|
|
397
397
|
}, null, 8, ["config"]))
|
|
398
398
|
], 512)) : b("", !0),
|
|
399
|
-
|
|
399
|
+
$("div", {
|
|
400
|
+
id: `legend-top-${y.value}`
|
|
401
|
+
}, null, 8, Gt),
|
|
402
|
+
e.value.userOptions.show && ue.value && (s(be) || s(J)) ? (i(), F(s(Ye), {
|
|
400
403
|
ref_key: "details",
|
|
401
|
-
ref:
|
|
404
|
+
ref: Ke,
|
|
402
405
|
key: `user_options_${re.value}`,
|
|
403
406
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
404
407
|
color: e.value.style.chart.color,
|
|
405
|
-
isPrinting: s(
|
|
406
|
-
isImaging: s(
|
|
407
|
-
uid:
|
|
408
|
+
isPrinting: s(Ce),
|
|
409
|
+
isImaging: s($e),
|
|
410
|
+
uid: y.value,
|
|
408
411
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
409
412
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
410
413
|
hasXls: e.value.userOptions.buttons.csv,
|
|
411
414
|
hasImg: e.value.userOptions.buttons.img,
|
|
412
415
|
hasTable: e.value.userOptions.buttons.table,
|
|
413
416
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
414
|
-
isTooltip:
|
|
417
|
+
isTooltip: w.value.showTooltip,
|
|
415
418
|
isFullscreen: V.value,
|
|
416
419
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
417
|
-
chartElement:
|
|
420
|
+
chartElement: _.value,
|
|
418
421
|
position: e.value.userOptions.position,
|
|
419
422
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
420
423
|
isAnnotation: j.value,
|
|
421
424
|
callbacks: e.value.userOptions.callbacks,
|
|
422
425
|
printScale: e.value.userOptions.print.scale,
|
|
423
|
-
onToggleFullscreen:
|
|
424
|
-
onGeneratePdf: s(
|
|
425
|
-
onGenerateCsv:
|
|
426
|
-
onGenerateImage: s(
|
|
427
|
-
onToggleTable:
|
|
428
|
-
onToggleTooltip:
|
|
426
|
+
onToggleFullscreen: Oe,
|
|
427
|
+
onGeneratePdf: s(Te),
|
|
428
|
+
onGenerateCsv: Ie,
|
|
429
|
+
onGenerateImage: s(_e),
|
|
430
|
+
onToggleTable: Se,
|
|
431
|
+
onToggleTooltip: Pe,
|
|
429
432
|
onToggleAnnotator: te,
|
|
430
|
-
style:
|
|
431
|
-
visibility: s(
|
|
433
|
+
style: S({
|
|
434
|
+
visibility: s(be) ? s(J) ? "visible" : "hidden" : "visible"
|
|
432
435
|
})
|
|
433
|
-
},
|
|
436
|
+
}, Le({ _: 2 }, [
|
|
434
437
|
t.$slots.menuIcon ? {
|
|
435
438
|
name: "menuIcon",
|
|
436
439
|
fn: g(({ isOpen: l, color: o }) => [
|
|
@@ -490,13 +493,13 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
490
493
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
491
494
|
(i(), d("svg", {
|
|
492
495
|
ref_key: "svgRef",
|
|
493
|
-
ref:
|
|
494
|
-
xmlns: s(
|
|
495
|
-
class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: q.value || s(
|
|
496
|
+
ref: ke,
|
|
497
|
+
xmlns: s(Tt),
|
|
498
|
+
class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: q.value || s(O) }),
|
|
496
499
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
497
|
-
style:
|
|
500
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
498
501
|
}, [
|
|
499
|
-
ae(s(
|
|
502
|
+
ae(s(He)),
|
|
500
503
|
t.$slots["chart-background"] ? (i(), d("foreignObject", {
|
|
501
504
|
key: 0,
|
|
502
505
|
x: 0,
|
|
@@ -508,153 +511,161 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
508
511
|
}
|
|
509
512
|
}, [
|
|
510
513
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
511
|
-
], 8,
|
|
512
|
-
|
|
514
|
+
], 8, jt)) : b("", !0),
|
|
515
|
+
$("defs", null, [
|
|
513
516
|
(i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("radialGradient", {
|
|
514
517
|
cx: "50%",
|
|
515
518
|
cy: "30%",
|
|
516
519
|
r: "50%",
|
|
517
520
|
fx: "50%",
|
|
518
521
|
fy: "50%",
|
|
519
|
-
id: `gradient_${
|
|
522
|
+
id: `gradient_${y.value}_${o}`
|
|
520
523
|
}, [
|
|
521
|
-
|
|
524
|
+
$("stop", {
|
|
522
525
|
offset: "0%",
|
|
523
|
-
"stop-color": s(
|
|
524
|
-
}, null, 8,
|
|
525
|
-
|
|
526
|
+
"stop-color": s(_t)(s(xt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
527
|
+
}, null, 8, Yt),
|
|
528
|
+
$("stop", {
|
|
526
529
|
offset: "100%",
|
|
527
530
|
"stop-color": l.color
|
|
528
|
-
}, null, 8,
|
|
529
|
-
], 8,
|
|
531
|
+
}, null, 8, qt)
|
|
532
|
+
], 8, Xt))), 256))
|
|
530
533
|
]),
|
|
531
|
-
t.$slots.pattern ? (i(), d("g",
|
|
534
|
+
t.$slots.pattern ? (i(), d("g", Jt, [
|
|
532
535
|
(i(!0), d(oe, null, se(p.value, (l) => (i(), d("defs", null, [
|
|
533
|
-
h(t.$slots, "pattern",
|
|
536
|
+
h(t.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
534
537
|
]))), 256))
|
|
535
538
|
])) : b("", !0),
|
|
536
539
|
(i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("g", null, [
|
|
537
|
-
|
|
540
|
+
$("circle", {
|
|
538
541
|
class: B({
|
|
539
|
-
"vue-ui-rings-item":
|
|
540
|
-
"vue-rings-item-onload": !
|
|
541
|
-
"vue-ui-rings-opacity":
|
|
542
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
543
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
|
|
544
|
+
"vue-ui-rings-opacity": T.value !== null && T.value !== o
|
|
542
545
|
}),
|
|
543
|
-
style:
|
|
546
|
+
style: S(`animation-delay:${o * 100}ms`),
|
|
544
547
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
545
548
|
cx: n.value.width / 2,
|
|
546
549
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
|
|
547
550
|
r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
548
551
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
549
|
-
}, null, 14,
|
|
550
|
-
|
|
552
|
+
}, null, 14, Kt),
|
|
553
|
+
$("circle", {
|
|
551
554
|
class: B({
|
|
552
|
-
"vue-ui-rings-item":
|
|
553
|
-
"vue-rings-item-onload": !
|
|
555
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
556
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
|
|
554
557
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
555
|
-
"vue-ui-rings-blur":
|
|
558
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== o
|
|
556
559
|
}),
|
|
557
|
-
style:
|
|
560
|
+
style: S(`animation-delay:${o * 100}ms`),
|
|
558
561
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
559
562
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
560
563
|
cx: n.value.width / 2,
|
|
561
564
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
|
|
562
565
|
r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
563
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
564
|
-
}, null, 14,
|
|
566
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${o})` : l.color
|
|
567
|
+
}, null, 14, Qt),
|
|
565
568
|
t.$slots.pattern ? (i(), d("circle", {
|
|
566
569
|
key: 0,
|
|
567
570
|
class: B({
|
|
568
|
-
"vue-ui-rings-item":
|
|
569
|
-
"vue-rings-item-onload": !
|
|
571
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
572
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
|
|
570
573
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
571
|
-
"vue-ui-rings-blur":
|
|
574
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== o
|
|
572
575
|
}),
|
|
573
|
-
style:
|
|
576
|
+
style: S(`animation-delay:${o * 100}ms`),
|
|
574
577
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
575
578
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
576
579
|
cx: n.value.width / 2,
|
|
577
580
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
|
|
578
581
|
r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
579
|
-
fill: `url(#pattern_${
|
|
580
|
-
}, null, 14,
|
|
581
|
-
|
|
582
|
+
fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
|
|
583
|
+
}, null, 14, Zt)) : b("", !0),
|
|
584
|
+
$("circle", {
|
|
582
585
|
stroke: "none",
|
|
583
586
|
cx: n.value.width / 2,
|
|
584
587
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
|
|
585
588
|
r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
586
589
|
fill: "transparent",
|
|
587
|
-
onMouseenter: (u) =>
|
|
588
|
-
onMouseleave: (u) =>
|
|
589
|
-
onClick: (u) =>
|
|
590
|
-
}, null, 40,
|
|
590
|
+
onMouseenter: (u) => nt(l, o),
|
|
591
|
+
onMouseleave: (u) => st(l, o),
|
|
592
|
+
onClick: (u) => ot(l, o)
|
|
593
|
+
}, null, 40, el)
|
|
591
594
|
]))), 256)),
|
|
592
595
|
h(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
593
|
-
], 14,
|
|
594
|
-
t.$slots.watermark ? (i(), d("div",
|
|
595
|
-
h(t.$slots, "watermark", D(M({ isPrinting: s(
|
|
596
|
+
], 14, Ht)),
|
|
597
|
+
t.$slots.watermark ? (i(), d("div", tl, [
|
|
598
|
+
h(t.$slots, "watermark", D(M({ isPrinting: s(Ce) || s($e) })), void 0, !0)
|
|
596
599
|
])) : b("", !0),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
+
$("div", {
|
|
601
|
+
id: `legend-bottom-${y.value}`
|
|
602
|
+
}, null, 8, ll),
|
|
603
|
+
fe.value ? (i(), F(pt, {
|
|
604
|
+
key: 5,
|
|
605
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
600
606
|
}, [
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
config: tt.value,
|
|
605
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
|
|
606
|
-
}, Ne({
|
|
607
|
-
item: g(({ legend: l, index: o }) => [
|
|
608
|
-
s(I) ? b("", !0) : (i(), d("div", {
|
|
609
|
-
key: 0,
|
|
610
|
-
onClick: (u) => Z(l.uid),
|
|
611
|
-
style: O(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
612
|
-
}, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(De)(
|
|
613
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
614
|
-
l.value,
|
|
615
|
-
s(N)({
|
|
616
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
617
|
-
v: l.value,
|
|
618
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
619
|
-
r: e.value.style.chart.legend.roundingValue
|
|
620
|
-
}),
|
|
621
|
-
{ datapoint: l, seriesIndex: o }
|
|
622
|
-
) : "") + " " + E(e.value.style.chart.legend.showPercentage ? y.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 / w.value) ? "-" : s(N)({
|
|
623
|
-
v: l.value / w.value * 100,
|
|
624
|
-
s: "%",
|
|
625
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
626
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Zt))
|
|
627
|
-
]),
|
|
628
|
-
_: 2
|
|
607
|
+
$("div", {
|
|
608
|
+
ref_key: "chartLegend",
|
|
609
|
+
ref: ve
|
|
629
610
|
}, [
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
611
|
+
e.value.style.chart.legend.show ? (i(), F(Mt, {
|
|
612
|
+
key: `legend_${ge.value}`,
|
|
613
|
+
legendSet: Fe.value,
|
|
614
|
+
config: lt.value,
|
|
615
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
|
|
616
|
+
}, Le({
|
|
617
|
+
item: g(({ legend: l, index: o }) => [
|
|
618
|
+
s(O) ? b("", !0) : (i(), d("div", {
|
|
619
|
+
key: 0,
|
|
620
|
+
onClick: (u) => Z(l.uid),
|
|
621
|
+
style: S(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
|
|
622
|
+
}, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(Me)(
|
|
623
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
624
|
+
l.value,
|
|
625
|
+
s(N)({
|
|
626
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
627
|
+
v: l.value,
|
|
628
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
629
|
+
r: e.value.style.chart.legend.roundingValue
|
|
630
|
+
}),
|
|
631
|
+
{ datapoint: l, seriesIndex: o }
|
|
632
|
+
) : "") + " " + E(e.value.style.chart.legend.showPercentage ? m.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 / C.value) ? "-" : s(N)({
|
|
633
|
+
v: l.value / C.value * 100,
|
|
634
|
+
s: "%",
|
|
635
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
636
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, al))
|
|
640
637
|
]),
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
638
|
+
_: 2
|
|
639
|
+
}, [
|
|
640
|
+
t.$slots.pattern ? {
|
|
641
|
+
name: "legend-pattern",
|
|
642
|
+
fn: g(({ legend: l, index: o }) => [
|
|
643
|
+
ae(Bt, {
|
|
644
|
+
shape: l.shape,
|
|
645
|
+
radius: 30,
|
|
646
|
+
stroke: "none",
|
|
647
|
+
plot: { x: 30, y: 30 },
|
|
648
|
+
fill: `url(#pattern_${y.value}_${o})`
|
|
649
|
+
}, null, 8, ["shape", "fill"])
|
|
650
|
+
]),
|
|
651
|
+
key: "0"
|
|
652
|
+
} : void 0
|
|
653
|
+
]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
654
|
+
key: 1,
|
|
655
|
+
legend: Fe.value
|
|
656
|
+
}, void 0, !0)
|
|
657
|
+
], 512)
|
|
658
|
+
], 8, ["to"])) : b("", !0),
|
|
648
659
|
t.$slots.source ? (i(), d("div", {
|
|
649
|
-
key:
|
|
660
|
+
key: 6,
|
|
650
661
|
ref_key: "source",
|
|
651
662
|
ref: ce,
|
|
652
663
|
dir: "auto"
|
|
653
664
|
}, [
|
|
654
665
|
h(t.$slots, "source", {}, void 0, !0)
|
|
655
666
|
], 512)) : b("", !0),
|
|
656
|
-
ae(s(
|
|
657
|
-
show:
|
|
667
|
+
ae(s(Xe), {
|
|
668
|
+
show: w.value.showTooltip && U.value && m.value.length < k.dataset.length,
|
|
658
669
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
659
670
|
color: e.value.style.chart.tooltip.color,
|
|
660
671
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -664,7 +675,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
664
675
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
665
676
|
position: e.value.style.chart.tooltip.position,
|
|
666
677
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
667
|
-
parent:
|
|
678
|
+
parent: _.value,
|
|
668
679
|
content: Y.value,
|
|
669
680
|
isFullscreen: V.value,
|
|
670
681
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
@@ -679,11 +690,11 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
679
690
|
]),
|
|
680
691
|
_: 3
|
|
681
692
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
682
|
-
ue.value ? (i(),
|
|
683
|
-
key:
|
|
693
|
+
ue.value ? (i(), F(s(We), {
|
|
694
|
+
key: 7,
|
|
684
695
|
hideDetails: "",
|
|
685
696
|
config: {
|
|
686
|
-
open:
|
|
697
|
+
open: w.value.showTable,
|
|
687
698
|
maxHeight: 1e4,
|
|
688
699
|
body: {
|
|
689
700
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -696,33 +707,33 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
|
|
|
696
707
|
}
|
|
697
708
|
}, {
|
|
698
709
|
content: g(() => [
|
|
699
|
-
(i(),
|
|
710
|
+
(i(), F(s(Ge), {
|
|
700
711
|
key: `table_${pe.value}`,
|
|
701
712
|
colNames: H.value.colNames,
|
|
702
713
|
head: H.value.head,
|
|
703
714
|
body: H.value.body,
|
|
704
715
|
config: H.value.config,
|
|
705
716
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
706
|
-
onClose: a[1] || (a[1] = (l) =>
|
|
717
|
+
onClose: a[1] || (a[1] = (l) => w.value.showTable = !1)
|
|
707
718
|
}, {
|
|
708
719
|
th: g(({ th: l }) => [
|
|
709
|
-
|
|
720
|
+
$("div", {
|
|
710
721
|
innerHTML: l,
|
|
711
722
|
style: { display: "flex", "align-items": "center" }
|
|
712
|
-
}, null, 8,
|
|
723
|
+
}, null, 8, ol)
|
|
713
724
|
]),
|
|
714
725
|
td: g(({ td: l }) => [
|
|
715
|
-
|
|
726
|
+
gt(E(l.name || l), 1)
|
|
716
727
|
]),
|
|
717
728
|
_: 1
|
|
718
729
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
719
730
|
]),
|
|
720
731
|
_: 1
|
|
721
732
|
}, 8, ["config"])) : b("", !0),
|
|
722
|
-
s(
|
|
723
|
-
], 46,
|
|
733
|
+
s(O) ? (i(), F(Vt, { key: 8 })) : b("", !0)
|
|
734
|
+
], 46, Wt));
|
|
724
735
|
}
|
|
725
|
-
},
|
|
736
|
+
}, bl = /* @__PURE__ */ Ut(sl, [["__scopeId", "data-v-1b4eaf1a"]]);
|
|
726
737
|
export {
|
|
727
|
-
|
|
738
|
+
bl as default
|
|
728
739
|
};
|