vue-data-ui 3.1.4 → 3.1.5
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-COJRk3pc.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-CnJxN2Vo.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-INqbM37s.js → index-BkfuZCRT.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-C7xIcrvD.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-CFUA5ORH.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-CJ2Wdln9.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-BItmKbvF.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as $t, c as Ee, t as Tt, a as _t, p as D, b as xt, o as Ue, f as ce, g as At, d as
|
|
1
|
+
import { defineAsyncComponent as F, useSlots as ft, ref as u, computed as f, toRefs as yt, watch as q, shallowRef as Be, onMounted as mt, onBeforeUnmount as bt, createElementBlock as h, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as W, createBlock as O, createCommentVNode as b, createElementVNode as C, createVNode as J, createSlots as re, withCtx as c, renderSlot as p, normalizeProps as V, guardReactiveProps as B, Fragment as ie, renderList as ve, mergeProps as Me, Teleport as kt, toDisplayString as M, resolveDynamicComponent as wt, createTextVNode as ze, nextTick as Ct } from "vue";
|
|
2
|
+
import { u as $t, c as Ee, t as Tt, a as _t, p as D, b as xt, o as Ue, f as ce, g as At, d as Ft, G as Ot, e as We, i as L, X as It, s as St, x as Pt, h as K, k as Ge, v as Nt, w as Dt, y as Lt, z as Rt } from "./index-BkfuZCRT.js";
|
|
3
3
|
import { t as Vt, u as Bt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Mt } from "./usePrinter-
|
|
4
|
+
import { u as Mt } from "./usePrinter-CEdg3j8S.js";
|
|
5
5
|
import { u as zt, B as Et } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as He } from "./useNestedProp-
|
|
6
|
+
import { u as He } from "./useNestedProp-BMzw9VUz.js";
|
|
7
7
|
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Gt from "./img-
|
|
10
|
-
import { _ as Ht } from "./Shape-
|
|
11
|
-
import jt from "./Title-
|
|
12
|
-
import Xt from "./Legend-
|
|
9
|
+
import Gt from "./img-Neec0VVb.js";
|
|
10
|
+
import { _ as Ht } from "./Shape-DBVq0fdK.js";
|
|
11
|
+
import jt from "./Title-ydtId0LC.js";
|
|
12
|
+
import Xt from "./Legend-nPGcCxG_.js";
|
|
13
13
|
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "height"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 },
|
|
14
|
+
const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "height"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 }, ol = ["stroke", "cx", "cy", "r", "fill"], al = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], sl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ul = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
17
|
}, rl = ["id"], il = ["onClick"], vl = ["innerHTML"], cl = {
|
|
@@ -32,7 +32,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(je, { expose: Xe, emit: Ye }) {
|
|
35
|
-
const qe =
|
|
35
|
+
const qe = F(() => import("./Tooltip-oeu9knGI.js")), Je = F(() => import("./BaseIcon-BQQGRQ2U.js")), Ke = F(() => import("./vue-ui-accordion-DFxAHGEZ.js")), Qe = F(() => import("./DataTable-D6voeZvO.js")), Ze = F(() => import("./PenAndPaper-C6tiapdo.js")), et = F(() => import("./UserOptions-CnJxN2Vo.js")), tt = F(() => import("./PackageVersion-BeStrsPr.js")), lt = F(() => import("./BaseDraggableDialog-BO4B1Kwa.js")), { vue_ui_rings: ot } = $t(), at = ft(), k = je, I = u(!1), de = f(() => !!k.dataset && k.dataset.length), y = u(Ee()), G = u(!1), Q = u(""), T = u(null), he = u(0), _ = u(null), pe = u(null), ge = u(null), fe = u(null), ye = u(null), me = u(0), be = u(0), ke = u(0), Z = u(!1), we = u(!1), z = u(null), ee = u(null), e = u(le()), { loading: S, FINAL_DATASET: Ce, manualLoading: H } = zt({
|
|
36
36
|
...yt(k),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: le,
|
|
@@ -70,7 +70,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
70
70
|
function le() {
|
|
71
71
|
const t = He({
|
|
72
72
|
userConfig: k.config,
|
|
73
|
-
defaultConfig:
|
|
73
|
+
defaultConfig: ot
|
|
74
74
|
});
|
|
75
75
|
return t.theme ? {
|
|
76
76
|
...He({
|
|
@@ -89,17 +89,17 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
89
89
|
mt(() => {
|
|
90
90
|
we.value = !0, xe();
|
|
91
91
|
});
|
|
92
|
-
const
|
|
92
|
+
const oe = f(() => !!e.value.debug);
|
|
93
93
|
function xe() {
|
|
94
94
|
if (Ue(k.dataset) ? (ce({
|
|
95
95
|
componentName: "VueUiRings",
|
|
96
96
|
type: "dataset",
|
|
97
|
-
debug:
|
|
98
|
-
}), H.value = !0) : k.dataset.forEach((t,
|
|
97
|
+
debug: oe.value
|
|
98
|
+
}), H.value = !0) : k.dataset.forEach((t, o) => {
|
|
99
99
|
t.values.length || (ce({
|
|
100
100
|
componentName: "VueUiRings",
|
|
101
101
|
type: "dataset",
|
|
102
|
-
debug:
|
|
102
|
+
debug: oe.value
|
|
103
103
|
}), H.value = !0), At({
|
|
104
104
|
datasetObject: t,
|
|
105
105
|
requiredAttributes: ["name", "values"]
|
|
@@ -108,38 +108,38 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
108
108
|
componentName: "VueUiRings",
|
|
109
109
|
type: "datasetSerieAttribute",
|
|
110
110
|
property: l,
|
|
111
|
-
index:
|
|
112
|
-
debug:
|
|
111
|
+
index: o,
|
|
112
|
+
debug: oe.value
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}), Ue(k.dataset) || (H.value = e.value.loading), e.value.responsive) {
|
|
116
116
|
const t = Vt(() => {
|
|
117
117
|
Z.value = !0;
|
|
118
|
-
const { width:
|
|
118
|
+
const { width: o, height: l } = Bt({
|
|
119
119
|
chart: _.value,
|
|
120
|
-
title: e.value.style.chart.title.text ?
|
|
120
|
+
title: e.value.style.chart.title.text ? pe.value : null,
|
|
121
121
|
legend: e.value.style.chart.legend.show ? ge.value : null,
|
|
122
122
|
source: fe.value,
|
|
123
123
|
noTitle: ye.value
|
|
124
124
|
});
|
|
125
125
|
requestAnimationFrame(() => {
|
|
126
|
-
n.value.width =
|
|
126
|
+
n.value.width = o, n.value.height = l - 12, Z.value = !1;
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect()), x.value = new ResizeObserver(t), R.value = _.value.parentNode, x.value.observe(R.value);
|
|
130
130
|
}
|
|
131
131
|
setTimeout(() => {
|
|
132
|
-
|
|
132
|
+
I.value = !0;
|
|
133
133
|
}, 600);
|
|
134
134
|
}
|
|
135
135
|
bt(() => {
|
|
136
136
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
|
|
137
137
|
});
|
|
138
|
-
const { isPrinting: Ae, isImaging:
|
|
138
|
+
const { isPrinting: Ae, isImaging: Fe, generatePdf: Oe, generateImage: Ie } = Mt({
|
|
139
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
|
-
}), st = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = f(() =>
|
|
142
|
+
}), st = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = f(() => Ft(e.value.customPalette)), w = u({
|
|
143
143
|
showTable: e.value.table.show,
|
|
144
144
|
showTooltip: e.value.style.chart.tooltip.show
|
|
145
145
|
});
|
|
@@ -153,11 +153,11 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
153
153
|
height: 360,
|
|
154
154
|
width: 360
|
|
155
155
|
}), nt = f(() => Math.min(n.value.height, n.value.width)), ut = Ye, m = u([]);
|
|
156
|
-
function
|
|
157
|
-
m.value.includes(t) ? m.value = m.value.filter((
|
|
158
|
-
name:
|
|
159
|
-
color:
|
|
160
|
-
value:
|
|
156
|
+
function ae(t) {
|
|
157
|
+
m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t), ut("selectLegend", g.value.map((o) => ({
|
|
158
|
+
name: o.name,
|
|
159
|
+
color: o.color,
|
|
160
|
+
value: o.value
|
|
161
161
|
})));
|
|
162
162
|
}
|
|
163
163
|
const rt = f(() => Math.max(
|
|
@@ -166,82 +166,82 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
166
166
|
function Pe(t) {
|
|
167
167
|
return t / rt.value;
|
|
168
168
|
}
|
|
169
|
-
const j = f(() => Ce.value.map(({ values: t, name:
|
|
170
|
-
const r =
|
|
169
|
+
const j = f(() => Ce.value.map(({ values: t, name: o, color: l = null }, a) => {
|
|
170
|
+
const r = Ot(t).reduce((v, U) => v + U, 0);
|
|
171
171
|
return {
|
|
172
|
-
name:
|
|
173
|
-
color: l || We(l) || Se.value[
|
|
172
|
+
name: o,
|
|
173
|
+
color: l || We(l) || Se.value[a] || D[a] || D[a % D.length],
|
|
174
174
|
value: r,
|
|
175
175
|
proportion: r / Ce.value.map((v) => (v.values || []).reduce((U, gt) => U + gt, 0)).reduce((v, U) => v + U, 0),
|
|
176
176
|
uid: Ee(),
|
|
177
|
-
absoluteIndex:
|
|
177
|
+
absoluteIndex: a
|
|
178
178
|
};
|
|
179
179
|
})), Ne = f(() => j.value.map((t) => ({
|
|
180
180
|
...t,
|
|
181
181
|
shape: "circle",
|
|
182
182
|
opacity: m.value.includes(t.uid) ? 0.5 : 1,
|
|
183
|
-
segregate: () =>
|
|
183
|
+
segregate: () => ae(t.uid),
|
|
184
184
|
isSegregated: m.value.includes(t.uid)
|
|
185
|
-
})).toSorted((t,
|
|
185
|
+
})).toSorted((t, o) => o.value - t.value)), it = 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
|
-
})), $ = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t,
|
|
192
|
+
})), $ = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), g = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
|
|
193
193
|
absoluteIndex: r,
|
|
194
|
-
uid:
|
|
194
|
+
uid: a,
|
|
195
195
|
name: t,
|
|
196
196
|
color: l || We(l) || Se.value[v] || D[v] || D[v % D.length],
|
|
197
|
-
value:
|
|
198
|
-
proportion: Pe(
|
|
199
|
-
percentage:
|
|
200
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Pe(
|
|
201
|
-
})).toSorted((t,
|
|
197
|
+
value: o,
|
|
198
|
+
proportion: Pe(o),
|
|
199
|
+
percentage: o / $.value * 100,
|
|
200
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Pe(o)
|
|
201
|
+
})).toSorted((t, o) => o.value - t.value));
|
|
202
202
|
function vt() {
|
|
203
203
|
return g.value.map(
|
|
204
|
-
({ name: t, color:
|
|
204
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
|
|
205
205
|
name: t,
|
|
206
|
-
color:
|
|
206
|
+
color: o,
|
|
207
207
|
value: l,
|
|
208
|
-
absoluteValues:
|
|
208
|
+
absoluteValues: a,
|
|
209
209
|
percentage: r
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
213
|
const d = f(() => nt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
214
|
-
function ct(t,
|
|
215
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
214
|
+
function ct(t, o) {
|
|
215
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
216
216
|
}
|
|
217
|
-
function dt(t,
|
|
218
|
-
T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
217
|
+
function dt(t, o) {
|
|
218
|
+
T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
219
219
|
}
|
|
220
220
|
const se = u(null);
|
|
221
|
-
function
|
|
222
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
221
|
+
function ht(t, o) {
|
|
222
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), m.value.length === k.dataset.length) return;
|
|
223
223
|
se.value = {
|
|
224
224
|
datapoint: t,
|
|
225
|
-
seriesIndex:
|
|
225
|
+
seriesIndex: o,
|
|
226
226
|
series: g.value,
|
|
227
227
|
config: e.value
|
|
228
|
-
}, T.value =
|
|
229
|
-
const l = g.value[
|
|
230
|
-
if (Lt(
|
|
231
|
-
seriesIndex:
|
|
228
|
+
}, T.value = o;
|
|
229
|
+
const l = g.value[o], a = e.value.style.chart.tooltip.customFormat;
|
|
230
|
+
if (Lt(a) && Rt(() => a({
|
|
231
|
+
seriesIndex: o,
|
|
232
232
|
datapoint: t,
|
|
233
233
|
series: g.value,
|
|
234
234
|
config: e.value
|
|
235
235
|
})))
|
|
236
|
-
Q.value =
|
|
237
|
-
seriesIndex:
|
|
236
|
+
Q.value = a({
|
|
237
|
+
seriesIndex: o,
|
|
238
238
|
datapoint: t,
|
|
239
239
|
series: g.value,
|
|
240
240
|
config: e.value
|
|
241
241
|
});
|
|
242
242
|
else {
|
|
243
243
|
let r = "";
|
|
244
|
-
r += `<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>`, r += `<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
|
+
r += `<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>`, r += `<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}" />${at.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ge(
|
|
245
245
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
246
246
|
l.value,
|
|
247
247
|
L({
|
|
@@ -250,7 +250,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
250
250
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
251
251
|
r: e.value.style.chart.tooltip.roundingValue
|
|
252
252
|
}),
|
|
253
|
-
{ datapoint: t, seriesIndex:
|
|
253
|
+
{ datapoint: t, seriesIndex: o }
|
|
254
254
|
)}
|
|
255
255
|
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${L({
|
|
256
256
|
v: l.value / $.value * 100,
|
|
@@ -268,14 +268,14 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
268
268
|
const t = g.value.map((l) => ({
|
|
269
269
|
name: l.name,
|
|
270
270
|
color: l.color
|
|
271
|
-
})),
|
|
272
|
-
return { head: t, body:
|
|
271
|
+
})), o = g.value.map((l) => l.value);
|
|
272
|
+
return { head: t, body: o };
|
|
273
273
|
}), X = 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
276
|
L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
277
277
|
"100%"
|
|
278
|
-
],
|
|
278
|
+
], o = A.value.head.map((r, v) => [
|
|
279
279
|
{
|
|
280
280
|
color: r.color,
|
|
281
281
|
name: r.name
|
|
@@ -294,29 +294,29 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
294
294
|
outline: e.value.table.td.outline
|
|
295
295
|
},
|
|
296
296
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
297
|
-
},
|
|
297
|
+
}, a = [
|
|
298
298
|
e.value.table.columnNames.series,
|
|
299
299
|
e.value.table.columnNames.value,
|
|
300
300
|
e.value.table.columnNames.percentage
|
|
301
301
|
];
|
|
302
302
|
return {
|
|
303
303
|
head: t,
|
|
304
|
-
body:
|
|
304
|
+
body: o,
|
|
305
305
|
config: l,
|
|
306
|
-
colNames:
|
|
306
|
+
colNames: a
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
309
|
function ne(t = null) {
|
|
310
310
|
Ct(() => {
|
|
311
|
-
const
|
|
311
|
+
const o = A.value.head.map((r, v) => [[
|
|
312
312
|
r.name
|
|
313
|
-
], [A.value.body[v]], [isNaN(A.value.body[v] / $.value) ? "-" : A.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(
|
|
314
|
-
t ? t(
|
|
313
|
+
], [A.value.body[v]], [isNaN(A.value.body[v] / $.value) ? "-" : A.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Nt(l);
|
|
314
|
+
t ? t(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
const P = u(!1);
|
|
318
318
|
function De(t) {
|
|
319
|
-
P.value = t,
|
|
319
|
+
P.value = t, he.value += 1;
|
|
320
320
|
}
|
|
321
321
|
function Le() {
|
|
322
322
|
w.value.showTable = !w.value.showTable;
|
|
@@ -328,20 +328,20 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
328
328
|
function ue() {
|
|
329
329
|
Y.value = !Y.value;
|
|
330
330
|
}
|
|
331
|
-
async function
|
|
331
|
+
async function pt({ scale: t = 2 } = {}) {
|
|
332
332
|
if (!_.value) return;
|
|
333
|
-
const { width:
|
|
333
|
+
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: v } = await Gt({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
334
334
|
return {
|
|
335
335
|
imageUri: r,
|
|
336
336
|
base64: v,
|
|
337
337
|
title: e.value.style.chart.title.text,
|
|
338
|
-
width:
|
|
338
|
+
width: o,
|
|
339
339
|
height: l,
|
|
340
|
-
aspectRatio:
|
|
340
|
+
aspectRatio: a
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
const E = f(() => {
|
|
344
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
344
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
345
345
|
return {
|
|
346
346
|
component: t ? lt : Ke,
|
|
347
347
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -356,7 +356,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
356
356
|
} : {
|
|
357
357
|
hideDetails: !0,
|
|
358
358
|
config: {
|
|
359
|
-
open:
|
|
359
|
+
open: o,
|
|
360
360
|
maxHeight: 1e4,
|
|
361
361
|
body: {
|
|
362
362
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -378,26 +378,26 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
378
378
|
}
|
|
379
379
|
return Xe({
|
|
380
380
|
getData: vt,
|
|
381
|
-
getImage:
|
|
382
|
-
generatePdf:
|
|
381
|
+
getImage: pt,
|
|
382
|
+
generatePdf: Oe,
|
|
383
383
|
generateCsv: ne,
|
|
384
|
-
generateImage:
|
|
384
|
+
generateImage: Ie,
|
|
385
385
|
toggleTable: Le,
|
|
386
386
|
toggleTooltip: Re,
|
|
387
387
|
toggleAnnotator: ue,
|
|
388
388
|
toggleFullscreen: De
|
|
389
|
-
}), (t,
|
|
389
|
+
}), (t, o) => (i(), h("div", {
|
|
390
390
|
ref_key: "ringsChart",
|
|
391
391
|
ref: _,
|
|
392
392
|
class: W(`vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
393
393
|
style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
394
394
|
id: `rings_${y.value}`,
|
|
395
|
-
onMouseleave:
|
|
395
|
+
onMouseleave: o[2] || (o[2] = (l) => {
|
|
396
396
|
T.value = null, G.value = !1, s($e)(!1);
|
|
397
397
|
}),
|
|
398
|
-
onMouseenter:
|
|
398
|
+
onMouseenter: o[3] || (o[3] = () => s($e)(!0))
|
|
399
399
|
}, [
|
|
400
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
400
|
+
e.value.userOptions.buttons.annotator ? (i(), O(s(Ze), {
|
|
401
401
|
key: 0,
|
|
402
402
|
svgRef: s(_e),
|
|
403
403
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -405,20 +405,20 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
405
405
|
active: Y.value,
|
|
406
406
|
onClose: ue
|
|
407
407
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
408
|
-
st.value ? (i(),
|
|
408
|
+
st.value ? (i(), h("div", {
|
|
409
409
|
key: 1,
|
|
410
410
|
ref_key: "noTitle",
|
|
411
411
|
ref: ye,
|
|
412
412
|
class: "vue-data-ui-no-title-space",
|
|
413
413
|
style: "height:36px; width: 100%;background:transparent"
|
|
414
414
|
}, null, 512)) : b("", !0),
|
|
415
|
-
e.value.style.chart.title.text ? (i(),
|
|
415
|
+
e.value.style.chart.title.text ? (i(), h("div", {
|
|
416
416
|
key: 2,
|
|
417
417
|
ref_key: "chartTitle",
|
|
418
|
-
ref:
|
|
418
|
+
ref: pe,
|
|
419
419
|
style: "width:100%;background:transparent"
|
|
420
420
|
}, [
|
|
421
|
-
(i(),
|
|
421
|
+
(i(), O(jt, {
|
|
422
422
|
key: `title_${me.value}`,
|
|
423
423
|
config: {
|
|
424
424
|
title: {
|
|
@@ -435,14 +435,14 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
435
435
|
C("div", {
|
|
436
436
|
id: `legend-top-${y.value}`
|
|
437
437
|
}, null, 8, Jt),
|
|
438
|
-
e.value.userOptions.show && de.value && (s(Te) || s(te)) ? (i(),
|
|
438
|
+
e.value.userOptions.show && de.value && (s(Te) || s(te)) ? (i(), O(s(et), {
|
|
439
439
|
ref_key: "userOptionsRef",
|
|
440
440
|
ref: ee,
|
|
441
|
-
key: `user_options_${
|
|
441
|
+
key: `user_options_${he.value}`,
|
|
442
442
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
443
443
|
color: e.value.style.chart.color,
|
|
444
444
|
isPrinting: s(Ae),
|
|
445
|
-
isImaging: s(
|
|
445
|
+
isImaging: s(Fe),
|
|
446
446
|
uid: y.value,
|
|
447
447
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
448
448
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -461,9 +461,9 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
461
461
|
printScale: e.value.userOptions.print.scale,
|
|
462
462
|
tableDialog: e.value.table.useDialog,
|
|
463
463
|
onToggleFullscreen: De,
|
|
464
|
-
onGeneratePdf: s(
|
|
464
|
+
onGeneratePdf: s(Oe),
|
|
465
465
|
onGenerateCsv: ne,
|
|
466
|
-
onGenerateImage: s(
|
|
466
|
+
onGenerateImage: s(Ie),
|
|
467
467
|
onToggleTable: Le,
|
|
468
468
|
onToggleTooltip: Re,
|
|
469
469
|
onToggleAnnotator: ue,
|
|
@@ -473,71 +473,71 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
473
473
|
}, re({ _: 2 }, [
|
|
474
474
|
t.$slots.menuIcon ? {
|
|
475
475
|
name: "menuIcon",
|
|
476
|
-
fn: c(({ isOpen: l, color:
|
|
477
|
-
|
|
476
|
+
fn: c(({ isOpen: l, color: a }) => [
|
|
477
|
+
p(t.$slots, "menuIcon", V(B({ isOpen: l, color: a })), void 0, !0)
|
|
478
478
|
]),
|
|
479
479
|
key: "0"
|
|
480
480
|
} : void 0,
|
|
481
481
|
t.$slots.optionTooltip ? {
|
|
482
482
|
name: "optionTooltip",
|
|
483
483
|
fn: c(() => [
|
|
484
|
-
|
|
484
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
485
485
|
]),
|
|
486
486
|
key: "1"
|
|
487
487
|
} : void 0,
|
|
488
488
|
t.$slots.optionPdf ? {
|
|
489
489
|
name: "optionPdf",
|
|
490
490
|
fn: c(() => [
|
|
491
|
-
|
|
491
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
492
492
|
]),
|
|
493
493
|
key: "2"
|
|
494
494
|
} : void 0,
|
|
495
495
|
t.$slots.optionCsv ? {
|
|
496
496
|
name: "optionCsv",
|
|
497
497
|
fn: c(() => [
|
|
498
|
-
|
|
498
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
499
499
|
]),
|
|
500
500
|
key: "3"
|
|
501
501
|
} : void 0,
|
|
502
502
|
t.$slots.optionImg ? {
|
|
503
503
|
name: "optionImg",
|
|
504
504
|
fn: c(() => [
|
|
505
|
-
|
|
505
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
506
506
|
]),
|
|
507
507
|
key: "4"
|
|
508
508
|
} : void 0,
|
|
509
509
|
t.$slots.optionTable ? {
|
|
510
510
|
name: "optionTable",
|
|
511
511
|
fn: c(() => [
|
|
512
|
-
|
|
512
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
513
513
|
]),
|
|
514
514
|
key: "5"
|
|
515
515
|
} : void 0,
|
|
516
516
|
t.$slots.optionFullscreen ? {
|
|
517
517
|
name: "optionFullscreen",
|
|
518
|
-
fn: c(({ toggleFullscreen: l, isFullscreen:
|
|
519
|
-
|
|
518
|
+
fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
519
|
+
p(t.$slots, "optionFullscreen", V(B({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
520
520
|
]),
|
|
521
521
|
key: "6"
|
|
522
522
|
} : void 0,
|
|
523
523
|
t.$slots.optionAnnotator ? {
|
|
524
524
|
name: "optionAnnotator",
|
|
525
|
-
fn: c(({ toggleAnnotator: l, isAnnotator:
|
|
526
|
-
|
|
525
|
+
fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
526
|
+
p(t.$slots, "optionAnnotator", V(B({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
527
527
|
]),
|
|
528
528
|
key: "7"
|
|
529
529
|
} : void 0
|
|
530
530
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
531
|
-
(i(),
|
|
531
|
+
(i(), h("svg", {
|
|
532
532
|
ref_key: "svgRef",
|
|
533
533
|
ref: _e,
|
|
534
|
-
xmlns: s(
|
|
534
|
+
xmlns: s(It),
|
|
535
535
|
class: W({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Z.value || s(S) }),
|
|
536
536
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
537
537
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
538
538
|
}, [
|
|
539
539
|
J(s(tt)),
|
|
540
|
-
t.$slots["chart-background"] ? (i(),
|
|
540
|
+
t.$slots["chart-background"] ? (i(), h("foreignObject", {
|
|
541
541
|
key: 0,
|
|
542
542
|
x: 0,
|
|
543
543
|
y: 0,
|
|
@@ -547,16 +547,16 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
547
547
|
pointerEvents: "none"
|
|
548
548
|
}
|
|
549
549
|
}, [
|
|
550
|
-
|
|
550
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
551
551
|
], 8, Qt)) : b("", !0),
|
|
552
552
|
C("defs", null, [
|
|
553
|
-
(i(!0),
|
|
553
|
+
(i(!0), h(ie, null, ve(g.value, (l, a) => (i(), h("radialGradient", {
|
|
554
554
|
cx: "50%",
|
|
555
555
|
cy: "30%",
|
|
556
556
|
r: "50%",
|
|
557
557
|
fx: "50%",
|
|
558
558
|
fy: "50%",
|
|
559
|
-
id: `gradient_${y.value}_${
|
|
559
|
+
id: `gradient_${y.value}_${a}`
|
|
560
560
|
}, [
|
|
561
561
|
C("stop", {
|
|
562
562
|
offset: "0%",
|
|
@@ -568,76 +568,76 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
568
568
|
}, null, 8, tl)
|
|
569
569
|
], 8, Zt))), 256))
|
|
570
570
|
]),
|
|
571
|
-
t.$slots.pattern ? (i(),
|
|
572
|
-
(i(!0),
|
|
573
|
-
|
|
571
|
+
t.$slots.pattern ? (i(), h("g", ll, [
|
|
572
|
+
(i(!0), h(ie, null, ve(g.value, (l) => (i(), h("defs", null, [
|
|
573
|
+
p(t.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
574
574
|
]))), 256))
|
|
575
575
|
])) : b("", !0),
|
|
576
|
-
(i(!0),
|
|
576
|
+
(i(!0), h(ie, null, ve(g.value, (l, a) => (i(), h("g", null, [
|
|
577
577
|
C("circle", {
|
|
578
578
|
class: W({
|
|
579
|
-
"vue-ui-rings-item":
|
|
580
|
-
"vue-rings-item-onload": !
|
|
581
|
-
"vue-ui-rings-opacity": T.value !== null && T.value !==
|
|
579
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
580
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
|
|
581
|
+
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
582
582
|
}),
|
|
583
|
-
style: N(`animation-delay:${
|
|
583
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
584
584
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
585
585
|
cx: n.value.width / 2,
|
|
586
|
-
cy:
|
|
586
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
587
587
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
588
588
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
589
|
-
}, null, 14,
|
|
589
|
+
}, null, 14, ol),
|
|
590
590
|
C("circle", {
|
|
591
591
|
class: W({
|
|
592
|
-
"vue-ui-rings-item":
|
|
593
|
-
"vue-rings-item-onload": !
|
|
592
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
593
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
|
|
594
594
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
595
|
-
"vue-ui-rings-blur": T.value !== null && T.value !==
|
|
595
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
596
596
|
}),
|
|
597
|
-
style: N(`animation-delay:${
|
|
597
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
598
598
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
599
599
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
600
600
|
cx: n.value.width / 2,
|
|
601
|
-
cy:
|
|
601
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
602
602
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
603
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${
|
|
604
|
-
}, null, 14,
|
|
605
|
-
t.$slots.pattern ? (i(),
|
|
603
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${a})` : l.color
|
|
604
|
+
}, null, 14, al),
|
|
605
|
+
t.$slots.pattern ? (i(), h("circle", {
|
|
606
606
|
key: 0,
|
|
607
607
|
class: W({
|
|
608
|
-
"vue-ui-rings-item":
|
|
609
|
-
"vue-rings-item-onload": !
|
|
608
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
609
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
|
|
610
610
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
611
|
-
"vue-ui-rings-blur": T.value !== null && T.value !==
|
|
611
|
+
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
612
612
|
}),
|
|
613
|
-
style: N(`animation-delay:${
|
|
613
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
614
614
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
615
615
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
616
616
|
cx: n.value.width / 2,
|
|
617
|
-
cy:
|
|
617
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
618
618
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
619
619
|
fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
|
|
620
620
|
}, null, 14, sl)) : b("", !0),
|
|
621
621
|
C("circle", {
|
|
622
622
|
stroke: "none",
|
|
623
623
|
cx: n.value.width / 2,
|
|
624
|
-
cy:
|
|
624
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
625
625
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
626
626
|
fill: "transparent",
|
|
627
|
-
onMouseenter: (r) =>
|
|
628
|
-
onMouseleave: (r) => dt(l,
|
|
629
|
-
onClick: (r) => ct(l,
|
|
627
|
+
onMouseenter: (r) => ht(l, a),
|
|
628
|
+
onMouseleave: (r) => dt(l, a),
|
|
629
|
+
onClick: (r) => ct(l, a)
|
|
630
630
|
}, null, 40, nl)
|
|
631
631
|
]))), 256)),
|
|
632
|
-
|
|
632
|
+
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
633
633
|
], 14, Kt)),
|
|
634
|
-
t.$slots.watermark ? (i(),
|
|
635
|
-
|
|
634
|
+
t.$slots.watermark ? (i(), h("div", ul, [
|
|
635
|
+
p(t.$slots, "watermark", V(B({ isPrinting: s(Ae) || s(Fe) })), void 0, !0)
|
|
636
636
|
])) : b("", !0),
|
|
637
637
|
C("div", {
|
|
638
638
|
id: `legend-bottom-${y.value}`
|
|
639
639
|
}, null, 8, rl),
|
|
640
|
-
we.value ? (i(),
|
|
640
|
+
we.value ? (i(), O(kt, {
|
|
641
641
|
key: 5,
|
|
642
642
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
643
643
|
}, [
|
|
@@ -645,16 +645,16 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
645
645
|
ref_key: "chartLegend",
|
|
646
646
|
ref: ge
|
|
647
647
|
}, [
|
|
648
|
-
e.value.style.chart.legend.show ? (i(),
|
|
648
|
+
e.value.style.chart.legend.show ? (i(), O(Xt, {
|
|
649
649
|
key: `legend_${ke.value}`,
|
|
650
650
|
legendSet: Ne.value,
|
|
651
651
|
config: it.value,
|
|
652
|
-
onClickMarker:
|
|
652
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => ae(l.uid))
|
|
653
653
|
}, re({
|
|
654
|
-
item: c(({ legend: l, index:
|
|
655
|
-
s(S) ? b("", !0) : (i(),
|
|
654
|
+
item: c(({ legend: l, index: a }) => [
|
|
655
|
+
s(S) ? b("", !0) : (i(), h("div", {
|
|
656
656
|
key: 0,
|
|
657
|
-
onClick: (r) =>
|
|
657
|
+
onClick: (r) => ae(l.uid),
|
|
658
658
|
style: N(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
|
|
659
659
|
}, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? s(Ge)(
|
|
660
660
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
@@ -665,7 +665,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
665
665
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
666
666
|
r: e.value.style.chart.legend.roundingValue
|
|
667
667
|
}),
|
|
668
|
-
{ datapoint: l, seriesIndex:
|
|
668
|
+
{ datapoint: l, seriesIndex: a }
|
|
669
669
|
) : "") + " " + M(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 / $.value) ? "-" : s(L)({
|
|
670
670
|
v: l.value / $.value * 100,
|
|
671
671
|
s: "%",
|
|
@@ -676,30 +676,30 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
676
676
|
}, [
|
|
677
677
|
t.$slots.pattern ? {
|
|
678
678
|
name: "legend-pattern",
|
|
679
|
-
fn: c(({ legend: l, index:
|
|
679
|
+
fn: c(({ legend: l, index: a }) => [
|
|
680
680
|
J(Ht, {
|
|
681
681
|
shape: l.shape,
|
|
682
682
|
radius: 30,
|
|
683
683
|
stroke: "none",
|
|
684
684
|
plot: { x: 30, y: 30 },
|
|
685
|
-
fill: `url(#pattern_${y.value}_${
|
|
685
|
+
fill: `url(#pattern_${y.value}_${a})`
|
|
686
686
|
}, null, 8, ["shape", "fill"])
|
|
687
687
|
]),
|
|
688
688
|
key: "0"
|
|
689
689
|
} : void 0
|
|
690
|
-
]), 1032, ["legendSet", "config"])) :
|
|
690
|
+
]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
691
691
|
key: 1,
|
|
692
692
|
legend: Ne.value
|
|
693
693
|
}, void 0, !0)
|
|
694
694
|
], 512)
|
|
695
695
|
], 8, ["to"])) : b("", !0),
|
|
696
|
-
t.$slots.source ? (i(),
|
|
696
|
+
t.$slots.source ? (i(), h("div", {
|
|
697
697
|
key: 6,
|
|
698
698
|
ref_key: "source",
|
|
699
699
|
ref: fe,
|
|
700
700
|
dir: "auto"
|
|
701
701
|
}, [
|
|
702
|
-
|
|
702
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
703
703
|
], 512)) : b("", !0),
|
|
704
704
|
J(s(qe), {
|
|
705
705
|
show: w.value.showTooltip && G.value && m.value.length < k.dataset.length,
|
|
@@ -717,23 +717,25 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
717
717
|
isFullscreen: P.value,
|
|
718
718
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
719
719
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
720
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
720
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
721
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
722
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
721
723
|
}, {
|
|
722
724
|
"tooltip-before": c(() => [
|
|
723
|
-
|
|
725
|
+
p(t.$slots, "tooltip-before", V(B({ ...se.value })), void 0, !0)
|
|
724
726
|
]),
|
|
725
727
|
"tooltip-after": c(() => [
|
|
726
|
-
|
|
728
|
+
p(t.$slots, "tooltip-after", V(B({ ...se.value })), void 0, !0)
|
|
727
729
|
]),
|
|
728
730
|
_: 3
|
|
729
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
730
|
-
de.value ? (i(),
|
|
731
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
732
|
+
de.value ? (i(), O(wt(E.value.component), Me({ key: 7 }, E.value.props, {
|
|
731
733
|
ref_key: "tableUnit",
|
|
732
734
|
ref: z,
|
|
733
735
|
onClose: Ve
|
|
734
736
|
}), re({
|
|
735
737
|
content: c(() => [
|
|
736
|
-
(i(),
|
|
738
|
+
(i(), O(s(Qe), {
|
|
737
739
|
key: `table_${be.value}`,
|
|
738
740
|
colNames: X.value.colNames,
|
|
739
741
|
head: X.value.head,
|
|
@@ -770,7 +772,7 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
770
772
|
C("button", {
|
|
771
773
|
tabindex: "0",
|
|
772
774
|
class: "vue-ui-user-options-button",
|
|
773
|
-
onClick:
|
|
775
|
+
onClick: o[1] || (o[1] = (l) => ne(e.value.userOptions.callbacks.csv))
|
|
774
776
|
}, [
|
|
775
777
|
J(s(Je), {
|
|
776
778
|
name: "excel",
|
|
@@ -781,10 +783,10 @@ const qt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
781
783
|
key: "1"
|
|
782
784
|
} : void 0
|
|
783
785
|
]), 1040)) : b("", !0),
|
|
784
|
-
s(S) ? (i(),
|
|
786
|
+
s(S) ? (i(), O(Et, { key: 8 })) : b("", !0)
|
|
785
787
|
], 46, qt));
|
|
786
788
|
}
|
|
787
|
-
}, _l = /* @__PURE__ */ Yt(cl, [["__scopeId", "data-v-
|
|
789
|
+
}, _l = /* @__PURE__ */ Yt(cl, [["__scopeId", "data-v-80ccc0fd"]]);
|
|
788
790
|
export {
|
|
789
791
|
_l as default
|
|
790
792
|
};
|