vue-data-ui 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as O, 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 p, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as W, createBlock as I, createCommentVNode as b, createElementVNode as C, createVNode as J, createSlots as re, withCtx as c, renderSlot as h, 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 Ot, G as It, e as We, i as L, X as Ft, 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-BFqW8WA0.js";
|
|
3
3
|
import { t as Vt, u as Bt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
4
|
+
import { u as Mt } from "./usePrinter-DDIKRiOp.js";
|
|
5
|
+
import { u as zt, B as Et } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as He } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Gt from "./img-DvuphHeJ.js";
|
|
10
|
+
import { _ as Ht } from "./Shape-Bmpx9GRg.js";
|
|
11
|
+
import jt from "./Title-AGmmsSi_.js";
|
|
12
|
+
import Xt from "./Legend-DLzeDl3-.js";
|
|
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 }, al = ["stroke", "cx", "cy", "r", "fill"], ol = ["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 = {
|
|
18
18
|
__name: "vue-ui-rings",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,11 +31,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(je, { expose: Xe, emit: Ye }) {
|
|
35
|
+
const qe = O(() => import("./Tooltip-le0yZk_t.js")), Je = O(() => import("./BaseIcon-BLg8FaQ2.js")), Ke = O(() => import("./vue-ui-accordion-Cv747Pg6.js")), Qe = O(() => import("./DataTable-BRN1-1ob.js")), Ze = O(() => import("./PenAndPaper-TgGWddgD.js")), et = O(() => import("./UserOptions-DEFwuQIo.js")), tt = O(() => import("./PackageVersion-Jz9FlNXl.js")), lt = O(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_rings: at } = $t(), ot = ft(), k = je, F = u(!1), de = f(() => !!k.dataset && k.dataset.length), y = u(Ee()), G = u(!1), Q = u(""), T = u(null), pe = u(0), _ = u(null), he = 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
|
+
...yt(k),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: le,
|
|
39
39
|
skeletonDataset: [
|
|
40
40
|
{ name: "_", values: [13], color: "#808080" },
|
|
41
41
|
{ name: "_", values: [8], color: "#969696" },
|
|
@@ -43,7 +43,7 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
43
43
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
44
44
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
45
45
|
],
|
|
46
|
-
skeletonConfig:
|
|
46
|
+
skeletonConfig: Tt({
|
|
47
47
|
defaultConfig: e.value,
|
|
48
48
|
userConfig: {
|
|
49
49
|
userOptions: { show: !1 },
|
|
@@ -66,85 +66,85 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
})
|
|
69
|
-
}), { userOptionsVisible:
|
|
70
|
-
function
|
|
71
|
-
const t =
|
|
72
|
-
userConfig:
|
|
73
|
-
defaultConfig:
|
|
69
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Ut({ config: e.value }), { svgRef: _e } = Wt({ config: e.value.style.chart.title });
|
|
70
|
+
function le() {
|
|
71
|
+
const t = He({
|
|
72
|
+
userConfig: k.config,
|
|
73
|
+
defaultConfig: at
|
|
74
74
|
});
|
|
75
75
|
return t.theme ? {
|
|
76
|
-
...
|
|
77
|
-
userConfig:
|
|
76
|
+
...He({
|
|
77
|
+
userConfig: xt.vue_ui_rings[t.theme] || k.config,
|
|
78
78
|
defaultConfig: t
|
|
79
79
|
}),
|
|
80
|
-
customPalette:
|
|
80
|
+
customPalette: _t[t.theme] || D
|
|
81
81
|
} : t;
|
|
82
82
|
}
|
|
83
|
-
q(() =>
|
|
84
|
-
|
|
85
|
-
}, { deep: !0 }), q(() =>
|
|
83
|
+
q(() => k.config, (t) => {
|
|
84
|
+
S.value || (e.value = le()), te.value = !e.value.userOptions.showOnChartHover, xe(), me.value += 1, be.value += 1, ke.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
85
|
+
}, { deep: !0 }), q(() => k.dataset, (t) => {
|
|
86
86
|
Array.isArray(t) && t.length > 0 && (H.value = !1);
|
|
87
87
|
}, { deep: !0 });
|
|
88
|
-
const x =
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
const x = Be(null), R = Be(null);
|
|
89
|
+
mt(() => {
|
|
90
|
+
we.value = !0, xe();
|
|
91
91
|
});
|
|
92
|
-
const
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
92
|
+
const ae = f(() => !!e.value.debug);
|
|
93
|
+
function xe() {
|
|
94
|
+
if (Ue(k.dataset) ? (ce({
|
|
95
95
|
componentName: "VueUiRings",
|
|
96
96
|
type: "dataset",
|
|
97
|
-
debug:
|
|
98
|
-
}), H.value = !0) :
|
|
99
|
-
t.values.length || (
|
|
97
|
+
debug: ae.value
|
|
98
|
+
}), H.value = !0) : k.dataset.forEach((t, a) => {
|
|
99
|
+
t.values.length || (ce({
|
|
100
100
|
componentName: "VueUiRings",
|
|
101
101
|
type: "dataset",
|
|
102
|
-
debug:
|
|
103
|
-
}), H.value = !0),
|
|
102
|
+
debug: ae.value
|
|
103
|
+
}), H.value = !0), At({
|
|
104
104
|
datasetObject: t,
|
|
105
105
|
requiredAttributes: ["name", "values"]
|
|
106
106
|
}).forEach((l) => {
|
|
107
|
-
|
|
107
|
+
ce({
|
|
108
108
|
componentName: "VueUiRings",
|
|
109
109
|
type: "datasetSerieAttribute",
|
|
110
110
|
property: l,
|
|
111
111
|
index: a,
|
|
112
|
-
debug:
|
|
112
|
+
debug: ae.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
118
|
const { width: a, height: l } = Bt({
|
|
119
119
|
chart: _.value,
|
|
120
|
-
title: e.value.style.chart.title.text ?
|
|
121
|
-
legend: e.value.style.chart.legend.show ?
|
|
122
|
-
source:
|
|
123
|
-
noTitle:
|
|
120
|
+
title: e.value.style.chart.title.text ? he.value : null,
|
|
121
|
+
legend: e.value.style.chart.legend.show ? ge.value : null,
|
|
122
|
+
source: fe.value,
|
|
123
|
+
noTitle: ye.value
|
|
124
124
|
});
|
|
125
125
|
requestAnimationFrame(() => {
|
|
126
126
|
n.value.width = a, n.value.height = l - 12, Z.value = !1;
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
|
-
x.value && (
|
|
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
|
+
F.value = !0;
|
|
133
133
|
}, 600);
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
x.value && (
|
|
135
|
+
bt(() => {
|
|
136
|
+
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
|
|
137
137
|
});
|
|
138
|
-
const { isPrinting:
|
|
138
|
+
const { isPrinting: Ae, isImaging: Oe, generatePdf: Ie, generateImage: Fe } = 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
|
-
}),
|
|
142
|
+
}), st = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = f(() => Ot(e.value.customPalette)), w = u({
|
|
143
143
|
showTable: e.value.table.show,
|
|
144
144
|
showTooltip: e.value.style.chart.tooltip.show
|
|
145
145
|
});
|
|
146
146
|
q(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 Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
152
152
|
const n = u({
|
|
153
153
|
height: 360,
|
|
154
154
|
width: 360
|
|
155
|
-
}),
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
}), nt = f(() => Math.min(n.value.height, n.value.width)), ut = Ye, m = u([]);
|
|
156
|
+
function oe(t) {
|
|
157
|
+
m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t), ut("selectLegend", g.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
|
-
...j.value.filter((t) => !
|
|
163
|
+
const rt = f(() => Math.max(
|
|
164
|
+
...j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
|
|
165
165
|
));
|
|
166
166
|
function Pe(t) {
|
|
167
|
-
return t /
|
|
167
|
+
return t / rt.value;
|
|
168
168
|
}
|
|
169
|
-
const j = f(() =>
|
|
170
|
-
const r =
|
|
169
|
+
const j = f(() => Ce.value.map(({ values: t, name: a, color: l = null }, o) => {
|
|
170
|
+
const r = It(t).reduce((v, U) => v + U, 0);
|
|
171
171
|
return {
|
|
172
172
|
name: a,
|
|
173
|
-
color: l ||
|
|
173
|
+
color: l || We(l) || Se.value[o] || D[o] || D[o % D.length],
|
|
174
174
|
value: r,
|
|
175
|
-
proportion: r /
|
|
176
|
-
uid:
|
|
175
|
+
proportion: r / Ce.value.map((v) => (v.values || []).reduce((U, gt) => U + gt, 0)).reduce((v, U) => v + U, 0),
|
|
176
|
+
uid: Ee(),
|
|
177
177
|
absoluteIndex: o
|
|
178
178
|
};
|
|
179
|
-
})),
|
|
179
|
+
})), Ne = f(() => j.value.map((t) => ({
|
|
180
180
|
...t,
|
|
181
181
|
shape: "circle",
|
|
182
|
-
opacity:
|
|
183
|
-
segregate: () =>
|
|
184
|
-
isSegregated:
|
|
185
|
-
})).toSorted((t, a) => a.value - t.value)),
|
|
182
|
+
opacity: m.value.includes(t.uid) ? 0.5 : 1,
|
|
183
|
+
segregate: () => oe(t.uid),
|
|
184
|
+
isSegregated: m.value.includes(t.uid)
|
|
185
|
+
})).toSorted((t, a) => a.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) => !
|
|
192
|
+
})), $ = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), g = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: r }, v) => ({
|
|
193
193
|
absoluteIndex: r,
|
|
194
194
|
uid: o,
|
|
195
195
|
name: t,
|
|
196
|
-
color: l ||
|
|
196
|
+
color: l || We(l) || Se.value[v] || D[v] || D[v % D.length],
|
|
197
197
|
value: a,
|
|
198
198
|
proportion: Pe(a),
|
|
199
199
|
percentage: a / $.value * 100,
|
|
200
200
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Pe(a)
|
|
201
201
|
})).toSorted((t, a) => a.value - t.value));
|
|
202
|
-
function
|
|
202
|
+
function vt() {
|
|
203
203
|
return g.value.map(
|
|
204
204
|
({ name: t, color: a, value: l, absoluteValues: o, percentage: r }) => ({
|
|
205
205
|
name: t,
|
|
@@ -210,24 +210,24 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
|
-
const d = f(() =>
|
|
214
|
-
function
|
|
213
|
+
const d = f(() => nt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
214
|
+
function ct(t, a) {
|
|
215
215
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function dt(t, a) {
|
|
218
218
|
T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
223
|
-
|
|
220
|
+
const se = u(null);
|
|
221
|
+
function pt(t, a) {
|
|
222
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), m.value.length === k.dataset.length) return;
|
|
223
|
+
se.value = {
|
|
224
224
|
datapoint: t,
|
|
225
225
|
seriesIndex: a,
|
|
226
226
|
series: g.value,
|
|
227
227
|
config: e.value
|
|
228
228
|
}, T.value = a;
|
|
229
229
|
const l = g.value[a], o = e.value.style.chart.tooltip.customFormat;
|
|
230
|
-
if (Lt(o) &&
|
|
230
|
+
if (Lt(o) && Rt(() => o({
|
|
231
231
|
seriesIndex: a,
|
|
232
232
|
datapoint: t,
|
|
233
233
|
series: g.value,
|
|
@@ -241,10 +241,10 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
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}" />${ot.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({
|
|
248
248
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
249
249
|
v: l.value,
|
|
250
250
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -252,11 +252,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
252
252
|
}),
|
|
253
253
|
{ datapoint: t, seriesIndex: a }
|
|
254
254
|
)}
|
|
255
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
255
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${L({
|
|
256
256
|
v: l.value / $.value * 100,
|
|
257
257
|
s: "%",
|
|
258
258
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
259
|
-
})})</span></div>` : r += `<b>${
|
|
259
|
+
})})</span></div>` : r += `<b>${L({
|
|
260
260
|
v: l.value / $.value * 100,
|
|
261
261
|
s: "%",
|
|
262
262
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -273,14 +273,14 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
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
|
], a = A.value.head.map((r, v) => [
|
|
279
279
|
{
|
|
280
280
|
color: r.color,
|
|
281
281
|
name: r.name
|
|
282
282
|
},
|
|
283
|
-
|
|
283
|
+
L({ 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
284
|
isNaN(A.value.body[v] / $.value) ? "-" : (A.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
285
285
|
]), l = {
|
|
286
286
|
th: {
|
|
@@ -306,31 +306,31 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
306
306
|
colNames: o
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
|
-
function
|
|
310
|
-
|
|
309
|
+
function ne(t = null) {
|
|
310
|
+
Ct(() => {
|
|
311
311
|
const a = 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(a), o =
|
|
314
|
-
t ? t(o) :
|
|
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(a), o = Nt(l);
|
|
314
|
+
t ? t(o) : Dt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
const
|
|
318
|
-
function
|
|
319
|
-
|
|
317
|
+
const P = u(!1);
|
|
318
|
+
function De(t) {
|
|
319
|
+
P.value = t, pe.value += 1;
|
|
320
320
|
}
|
|
321
321
|
function Le() {
|
|
322
|
-
|
|
322
|
+
w.value.showTable = !w.value.showTable;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
324
|
+
function Re() {
|
|
325
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
326
326
|
}
|
|
327
327
|
const Y = u(!1);
|
|
328
|
-
function
|
|
328
|
+
function ue() {
|
|
329
329
|
Y.value = !Y.value;
|
|
330
330
|
}
|
|
331
|
-
async function
|
|
331
|
+
async function ht({ scale: t = 2 } = {}) {
|
|
332
332
|
if (!_.value) return;
|
|
333
|
-
const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / l, { imageUri: r, base64: v } = await
|
|
333
|
+
const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / 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,
|
|
@@ -341,16 +341,16 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
341
341
|
};
|
|
342
342
|
}
|
|
343
343
|
const E = f(() => {
|
|
344
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
344
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = w.value.showTable;
|
|
345
345
|
return {
|
|
346
|
-
component: t ?
|
|
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}` : ""}`,
|
|
348
348
|
props: t ? {
|
|
349
349
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
350
350
|
color: e.value.table.th.color,
|
|
351
351
|
headerColor: e.value.table.th.color,
|
|
352
352
|
headerBg: e.value.table.th.backgroundColor,
|
|
353
|
-
isFullscreen:
|
|
353
|
+
isFullscreen: P.value,
|
|
354
354
|
fullscreenParent: _.value,
|
|
355
355
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
356
356
|
} : {
|
|
@@ -370,52 +370,56 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
});
|
|
373
|
-
|
|
373
|
+
q(() => w.value.showTable, (t) => {
|
|
374
374
|
e.value.table.show || (t && e.value.table.useDialog && z.value ? z.value.open() : "close" in z.value && z.value.close());
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
});
|
|
376
|
+
function Ve() {
|
|
377
|
+
w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
378
|
+
}
|
|
379
|
+
return Xe({
|
|
380
|
+
getData: vt,
|
|
381
|
+
getImage: ht,
|
|
382
|
+
generatePdf: Ie,
|
|
383
|
+
generateCsv: ne,
|
|
384
|
+
generateImage: Fe,
|
|
381
385
|
toggleTable: Le,
|
|
382
|
-
toggleTooltip:
|
|
383
|
-
toggleAnnotator:
|
|
384
|
-
toggleFullscreen:
|
|
386
|
+
toggleTooltip: Re,
|
|
387
|
+
toggleAnnotator: ue,
|
|
388
|
+
toggleFullscreen: De
|
|
385
389
|
}), (t, a) => (i(), p("div", {
|
|
386
390
|
ref_key: "ringsChart",
|
|
387
391
|
ref: _,
|
|
388
|
-
class: W(`vue-ui-rings ${
|
|
392
|
+
class: W(`vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
389
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%" : ""}`),
|
|
390
394
|
id: `rings_${y.value}`,
|
|
391
|
-
onMouseleave: a[
|
|
392
|
-
T.value = null, G.value = !1, s(
|
|
395
|
+
onMouseleave: a[2] || (a[2] = (l) => {
|
|
396
|
+
T.value = null, G.value = !1, s($e)(!1);
|
|
393
397
|
}),
|
|
394
|
-
onMouseenter: a[
|
|
398
|
+
onMouseenter: a[3] || (a[3] = () => s($e)(!0))
|
|
395
399
|
}, [
|
|
396
|
-
e.value.userOptions.buttons.annotator ? (i(), I(s(
|
|
400
|
+
e.value.userOptions.buttons.annotator ? (i(), I(s(Ze), {
|
|
397
401
|
key: 0,
|
|
398
|
-
svgRef: s(
|
|
402
|
+
svgRef: s(_e),
|
|
399
403
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
400
404
|
color: e.value.style.chart.color,
|
|
401
405
|
active: Y.value,
|
|
402
|
-
onClose:
|
|
403
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
404
|
-
|
|
406
|
+
onClose: ue
|
|
407
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
408
|
+
st.value ? (i(), p("div", {
|
|
405
409
|
key: 1,
|
|
406
410
|
ref_key: "noTitle",
|
|
407
|
-
ref:
|
|
411
|
+
ref: ye,
|
|
408
412
|
class: "vue-data-ui-no-title-space",
|
|
409
413
|
style: "height:36px; width: 100%;background:transparent"
|
|
410
|
-
}, null, 512)) :
|
|
414
|
+
}, null, 512)) : b("", !0),
|
|
411
415
|
e.value.style.chart.title.text ? (i(), p("div", {
|
|
412
416
|
key: 2,
|
|
413
417
|
ref_key: "chartTitle",
|
|
414
|
-
ref:
|
|
418
|
+
ref: he,
|
|
415
419
|
style: "width:100%;background:transparent"
|
|
416
420
|
}, [
|
|
417
|
-
(i(), I(
|
|
418
|
-
key: `title_${
|
|
421
|
+
(i(), I(jt, {
|
|
422
|
+
key: `title_${me.value}`,
|
|
419
423
|
config: {
|
|
420
424
|
title: {
|
|
421
425
|
cy: "rings-div-title",
|
|
@@ -427,18 +431,18 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
427
431
|
}
|
|
428
432
|
}
|
|
429
433
|
}, null, 8, ["config"]))
|
|
430
|
-
], 512)) :
|
|
434
|
+
], 512)) : b("", !0),
|
|
431
435
|
C("div", {
|
|
432
436
|
id: `legend-top-${y.value}`
|
|
433
|
-
}, null, 8,
|
|
434
|
-
e.value.userOptions.show &&
|
|
435
|
-
ref_key: "
|
|
436
|
-
ref:
|
|
437
|
-
key: `user_options_${
|
|
437
|
+
}, null, 8, Jt),
|
|
438
|
+
e.value.userOptions.show && de.value && (s(Te) || s(te)) ? (i(), I(s(et), {
|
|
439
|
+
ref_key: "userOptionsRef",
|
|
440
|
+
ref: ee,
|
|
441
|
+
key: `user_options_${pe.value}`,
|
|
438
442
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
439
443
|
color: e.value.style.chart.color,
|
|
440
|
-
isPrinting: s(
|
|
441
|
-
isImaging: s(
|
|
444
|
+
isPrinting: s(Ae),
|
|
445
|
+
isImaging: s(Oe),
|
|
442
446
|
uid: y.value,
|
|
443
447
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
444
448
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -446,8 +450,8 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
446
450
|
hasImg: e.value.userOptions.buttons.img,
|
|
447
451
|
hasTable: e.value.userOptions.buttons.table,
|
|
448
452
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
449
|
-
isTooltip:
|
|
450
|
-
isFullscreen:
|
|
453
|
+
isTooltip: w.value.showTooltip,
|
|
454
|
+
isFullscreen: P.value,
|
|
451
455
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
452
456
|
chartElement: _.value,
|
|
453
457
|
position: e.value.userOptions.position,
|
|
@@ -455,21 +459,22 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
455
459
|
isAnnotation: Y.value,
|
|
456
460
|
callbacks: e.value.userOptions.callbacks,
|
|
457
461
|
printScale: e.value.userOptions.print.scale,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
+
tableDialog: e.value.table.useDialog,
|
|
463
|
+
onToggleFullscreen: De,
|
|
464
|
+
onGeneratePdf: s(Ie),
|
|
465
|
+
onGenerateCsv: ne,
|
|
466
|
+
onGenerateImage: s(Fe),
|
|
462
467
|
onToggleTable: Le,
|
|
463
|
-
onToggleTooltip:
|
|
464
|
-
onToggleAnnotator:
|
|
468
|
+
onToggleTooltip: Re,
|
|
469
|
+
onToggleAnnotator: ue,
|
|
465
470
|
style: N({
|
|
466
|
-
visibility: s(
|
|
471
|
+
visibility: s(Te) ? s(te) ? "visible" : "hidden" : "visible"
|
|
467
472
|
})
|
|
468
|
-
},
|
|
473
|
+
}, re({ _: 2 }, [
|
|
469
474
|
t.$slots.menuIcon ? {
|
|
470
475
|
name: "menuIcon",
|
|
471
476
|
fn: c(({ isOpen: l, color: o }) => [
|
|
472
|
-
h(t.$slots, "menuIcon", B(
|
|
477
|
+
h(t.$slots, "menuIcon", V(B({ isOpen: l, color: o })), void 0, !0)
|
|
473
478
|
]),
|
|
474
479
|
key: "0"
|
|
475
480
|
} : void 0,
|
|
@@ -511,27 +516,27 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
511
516
|
t.$slots.optionFullscreen ? {
|
|
512
517
|
name: "optionFullscreen",
|
|
513
518
|
fn: c(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
514
|
-
h(t.$slots, "optionFullscreen", B(
|
|
519
|
+
h(t.$slots, "optionFullscreen", V(B({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
515
520
|
]),
|
|
516
521
|
key: "6"
|
|
517
522
|
} : void 0,
|
|
518
523
|
t.$slots.optionAnnotator ? {
|
|
519
524
|
name: "optionAnnotator",
|
|
520
525
|
fn: c(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
521
|
-
h(t.$slots, "optionAnnotator", B(
|
|
526
|
+
h(t.$slots, "optionAnnotator", V(B({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
522
527
|
]),
|
|
523
528
|
key: "7"
|
|
524
529
|
} : void 0
|
|
525
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
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),
|
|
526
531
|
(i(), p("svg", {
|
|
527
532
|
ref_key: "svgRef",
|
|
528
|
-
ref:
|
|
529
|
-
xmlns: s(
|
|
530
|
-
class: W({ "vue-data-ui-fullscreen--on":
|
|
533
|
+
ref: _e,
|
|
534
|
+
xmlns: s(Ft),
|
|
535
|
+
class: W({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Z.value || s(S) }),
|
|
531
536
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
532
537
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
533
538
|
}, [
|
|
534
|
-
J(s(
|
|
539
|
+
J(s(tt)),
|
|
535
540
|
t.$slots["chart-background"] ? (i(), p("foreignObject", {
|
|
536
541
|
key: 0,
|
|
537
542
|
x: 0,
|
|
@@ -543,9 +548,9 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
543
548
|
}
|
|
544
549
|
}, [
|
|
545
550
|
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
546
|
-
], 8,
|
|
551
|
+
], 8, Qt)) : b("", !0),
|
|
547
552
|
C("defs", null, [
|
|
548
|
-
(i(!0), p(
|
|
553
|
+
(i(!0), p(ie, null, ve(g.value, (l, o) => (i(), p("radialGradient", {
|
|
549
554
|
cx: "50%",
|
|
550
555
|
cy: "30%",
|
|
551
556
|
r: "50%",
|
|
@@ -555,24 +560,24 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
555
560
|
}, [
|
|
556
561
|
C("stop", {
|
|
557
562
|
offset: "0%",
|
|
558
|
-
"stop-color": s(
|
|
559
|
-
}, null, 8,
|
|
563
|
+
"stop-color": s(St)(s(Pt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
564
|
+
}, null, 8, el),
|
|
560
565
|
C("stop", {
|
|
561
566
|
offset: "100%",
|
|
562
567
|
"stop-color": l.color
|
|
563
|
-
}, null, 8,
|
|
564
|
-
], 8,
|
|
568
|
+
}, null, 8, tl)
|
|
569
|
+
], 8, Zt))), 256))
|
|
565
570
|
]),
|
|
566
|
-
t.$slots.pattern ? (i(), p("g",
|
|
567
|
-
(i(!0), p(
|
|
568
|
-
h(t.$slots, "pattern",
|
|
571
|
+
t.$slots.pattern ? (i(), p("g", ll, [
|
|
572
|
+
(i(!0), p(ie, null, ve(g.value, (l) => (i(), p("defs", null, [
|
|
573
|
+
h(t.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
569
574
|
]))), 256))
|
|
570
|
-
])) :
|
|
571
|
-
(i(!0), p(
|
|
575
|
+
])) : b("", !0),
|
|
576
|
+
(i(!0), p(ie, null, ve(g.value, (l, o) => (i(), p("g", null, [
|
|
572
577
|
C("circle", {
|
|
573
578
|
class: W({
|
|
574
|
-
"vue-ui-rings-item":
|
|
575
|
-
"vue-rings-item-onload": !
|
|
579
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
580
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
|
|
576
581
|
"vue-ui-rings-opacity": T.value !== null && T.value !== o
|
|
577
582
|
}),
|
|
578
583
|
style: N(`animation-delay:${o * 100}ms`),
|
|
@@ -581,11 +586,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
581
586
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
|
|
582
587
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
583
588
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
584
|
-
}, null, 14,
|
|
589
|
+
}, null, 14, al),
|
|
585
590
|
C("circle", {
|
|
586
591
|
class: W({
|
|
587
|
-
"vue-ui-rings-item":
|
|
588
|
-
"vue-rings-item-onload": !
|
|
592
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
593
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
|
|
589
594
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
590
595
|
"vue-ui-rings-blur": T.value !== null && T.value !== o
|
|
591
596
|
}),
|
|
@@ -596,12 +601,12 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
596
601
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
|
|
597
602
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
598
603
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${o})` : l.color
|
|
599
|
-
}, null, 14,
|
|
604
|
+
}, null, 14, ol),
|
|
600
605
|
t.$slots.pattern ? (i(), p("circle", {
|
|
601
606
|
key: 0,
|
|
602
607
|
class: W({
|
|
603
|
-
"vue-ui-rings-item":
|
|
604
|
-
"vue-rings-item-onload": !
|
|
608
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
609
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(S),
|
|
605
610
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
606
611
|
"vue-ui-rings-blur": T.value !== null && T.value !== o
|
|
607
612
|
}),
|
|
@@ -612,67 +617,67 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
612
617
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
|
|
613
618
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
614
619
|
fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
|
|
615
|
-
}, null, 14,
|
|
620
|
+
}, null, 14, sl)) : b("", !0),
|
|
616
621
|
C("circle", {
|
|
617
622
|
stroke: "none",
|
|
618
623
|
cx: n.value.width / 2,
|
|
619
624
|
cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (o + 1),
|
|
620
625
|
r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
|
|
621
626
|
fill: "transparent",
|
|
622
|
-
onMouseenter: (r) =>
|
|
623
|
-
onMouseleave: (r) =>
|
|
624
|
-
onClick: (r) =>
|
|
625
|
-
}, null, 40,
|
|
627
|
+
onMouseenter: (r) => pt(l, o),
|
|
628
|
+
onMouseleave: (r) => dt(l, o),
|
|
629
|
+
onClick: (r) => ct(l, o)
|
|
630
|
+
}, null, 40, nl)
|
|
626
631
|
]))), 256)),
|
|
627
632
|
h(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
628
|
-
], 14,
|
|
629
|
-
t.$slots.watermark ? (i(), p("div",
|
|
630
|
-
h(t.$slots, "watermark", B(
|
|
631
|
-
])) :
|
|
633
|
+
], 14, Kt)),
|
|
634
|
+
t.$slots.watermark ? (i(), p("div", ul, [
|
|
635
|
+
h(t.$slots, "watermark", V(B({ isPrinting: s(Ae) || s(Oe) })), void 0, !0)
|
|
636
|
+
])) : b("", !0),
|
|
632
637
|
C("div", {
|
|
633
638
|
id: `legend-bottom-${y.value}`
|
|
634
|
-
}, null, 8,
|
|
635
|
-
|
|
639
|
+
}, null, 8, rl),
|
|
640
|
+
we.value ? (i(), I(kt, {
|
|
636
641
|
key: 5,
|
|
637
642
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
638
643
|
}, [
|
|
639
644
|
C("div", {
|
|
640
645
|
ref_key: "chartLegend",
|
|
641
|
-
ref:
|
|
646
|
+
ref: ge
|
|
642
647
|
}, [
|
|
643
|
-
e.value.style.chart.legend.show ? (i(), I(
|
|
644
|
-
key: `legend_${
|
|
645
|
-
legendSet:
|
|
646
|
-
config:
|
|
647
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) =>
|
|
648
|
-
},
|
|
648
|
+
e.value.style.chart.legend.show ? (i(), I(Xt, {
|
|
649
|
+
key: `legend_${ke.value}`,
|
|
650
|
+
legendSet: Ne.value,
|
|
651
|
+
config: it.value,
|
|
652
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => oe(l.uid))
|
|
653
|
+
}, re({
|
|
649
654
|
item: c(({ legend: l, index: o }) => [
|
|
650
|
-
s(
|
|
655
|
+
s(S) ? b("", !0) : (i(), p("div", {
|
|
651
656
|
key: 0,
|
|
652
|
-
onClick: (r) =>
|
|
653
|
-
style: N(`opacity:${
|
|
654
|
-
}, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? s(
|
|
657
|
+
onClick: (r) => oe(l.uid),
|
|
658
|
+
style: N(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
|
|
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)(
|
|
655
660
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
656
661
|
l.value,
|
|
657
|
-
s(
|
|
662
|
+
s(L)({
|
|
658
663
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
659
664
|
v: l.value,
|
|
660
665
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
661
666
|
r: e.value.style.chart.legend.roundingValue
|
|
662
667
|
}),
|
|
663
668
|
{ datapoint: l, seriesIndex: o }
|
|
664
|
-
) : "") + " " + M(e.value.style.chart.legend.showPercentage ?
|
|
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)({
|
|
665
670
|
v: l.value / $.value * 100,
|
|
666
671
|
s: "%",
|
|
667
672
|
r: e.value.style.chart.legend.roundingPercentage
|
|
668
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
673
|
+
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, il))
|
|
669
674
|
]),
|
|
670
675
|
_: 2
|
|
671
676
|
}, [
|
|
672
677
|
t.$slots.pattern ? {
|
|
673
678
|
name: "legend-pattern",
|
|
674
679
|
fn: c(({ legend: l, index: o }) => [
|
|
675
|
-
J(
|
|
680
|
+
J(Ht, {
|
|
676
681
|
shape: l.shape,
|
|
677
682
|
radius: 30,
|
|
678
683
|
stroke: "none",
|
|
@@ -684,20 +689,20 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
684
689
|
} : void 0
|
|
685
690
|
]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
686
691
|
key: 1,
|
|
687
|
-
legend:
|
|
692
|
+
legend: Ne.value
|
|
688
693
|
}, void 0, !0)
|
|
689
694
|
], 512)
|
|
690
|
-
], 8, ["to"])) :
|
|
695
|
+
], 8, ["to"])) : b("", !0),
|
|
691
696
|
t.$slots.source ? (i(), p("div", {
|
|
692
697
|
key: 6,
|
|
693
698
|
ref_key: "source",
|
|
694
|
-
ref:
|
|
699
|
+
ref: fe,
|
|
695
700
|
dir: "auto"
|
|
696
701
|
}, [
|
|
697
702
|
h(t.$slots, "source", {}, void 0, !0)
|
|
698
|
-
], 512)) :
|
|
699
|
-
J(s(
|
|
700
|
-
show:
|
|
703
|
+
], 512)) : b("", !0),
|
|
704
|
+
J(s(qe), {
|
|
705
|
+
show: w.value.showTooltip && G.value && m.value.length < k.dataset.length,
|
|
701
706
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
702
707
|
color: e.value.style.chart.tooltip.color,
|
|
703
708
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -709,43 +714,43 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
709
714
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
710
715
|
parent: _.value,
|
|
711
716
|
content: Q.value,
|
|
712
|
-
isFullscreen:
|
|
717
|
+
isFullscreen: P.value,
|
|
713
718
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
714
719
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
715
720
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
716
721
|
}, {
|
|
717
722
|
"tooltip-before": c(() => [
|
|
718
|
-
h(t.$slots, "tooltip-before", B(
|
|
723
|
+
h(t.$slots, "tooltip-before", V(B({ ...se.value })), void 0, !0)
|
|
719
724
|
]),
|
|
720
725
|
"tooltip-after": c(() => [
|
|
721
|
-
h(t.$slots, "tooltip-after", B(
|
|
726
|
+
h(t.$slots, "tooltip-after", V(B({ ...se.value })), void 0, !0)
|
|
722
727
|
]),
|
|
723
728
|
_: 3
|
|
724
729
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
725
|
-
|
|
730
|
+
de.value ? (i(), I(wt(E.value.component), Me({ key: 7 }, E.value.props, {
|
|
726
731
|
ref_key: "tableUnit",
|
|
727
732
|
ref: z,
|
|
728
|
-
onClose:
|
|
729
|
-
}),
|
|
733
|
+
onClose: Ve
|
|
734
|
+
}), re({
|
|
730
735
|
content: c(() => [
|
|
731
|
-
(i(), I(s(
|
|
732
|
-
key: `table_${
|
|
736
|
+
(i(), I(s(Qe), {
|
|
737
|
+
key: `table_${be.value}`,
|
|
733
738
|
colNames: X.value.colNames,
|
|
734
739
|
head: X.value.head,
|
|
735
740
|
body: X.value.body,
|
|
736
741
|
config: X.value.config,
|
|
737
742
|
title: e.value.table.useDialog ? "" : E.value.title,
|
|
738
743
|
withCloseButton: !e.value.table.useDialog,
|
|
739
|
-
onClose:
|
|
744
|
+
onClose: Ve
|
|
740
745
|
}, {
|
|
741
746
|
th: c(({ th: l }) => [
|
|
742
747
|
C("div", {
|
|
743
748
|
innerHTML: l,
|
|
744
749
|
style: { display: "flex", "align-items": "center" }
|
|
745
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, vl)
|
|
746
751
|
]),
|
|
747
752
|
td: c(({ td: l }) => [
|
|
748
|
-
|
|
753
|
+
ze(M(l.name || l), 1)
|
|
749
754
|
]),
|
|
750
755
|
_: 1
|
|
751
756
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -755,7 +760,7 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
755
760
|
e.value.table.useDialog ? {
|
|
756
761
|
name: "title",
|
|
757
762
|
fn: c(() => [
|
|
758
|
-
|
|
763
|
+
ze(M(E.value.title), 1)
|
|
759
764
|
]),
|
|
760
765
|
key: "0"
|
|
761
766
|
} : void 0,
|
|
@@ -765,9 +770,9 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
765
770
|
C("button", {
|
|
766
771
|
tabindex: "0",
|
|
767
772
|
class: "vue-ui-user-options-button",
|
|
768
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
773
|
+
onClick: a[1] || (a[1] = (l) => ne(e.value.userOptions.callbacks.csv))
|
|
769
774
|
}, [
|
|
770
|
-
J(s(
|
|
775
|
+
J(s(Je), {
|
|
771
776
|
name: "excel",
|
|
772
777
|
stroke: E.value.props.color
|
|
773
778
|
}, null, 8, ["stroke"])
|
|
@@ -775,11 +780,11 @@ const Yt = ["id"], qt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "heigh
|
|
|
775
780
|
]),
|
|
776
781
|
key: "1"
|
|
777
782
|
} : void 0
|
|
778
|
-
]), 1040)) :
|
|
779
|
-
s(
|
|
780
|
-
], 46,
|
|
783
|
+
]), 1040)) : b("", !0),
|
|
784
|
+
s(S) ? (i(), I(Et, { key: 8 })) : b("", !0)
|
|
785
|
+
], 46, qt));
|
|
781
786
|
}
|
|
782
|
-
},
|
|
787
|
+
}, _l = /* @__PURE__ */ Yt(cl, [["__scopeId", "data-v-d86f47cb"]]);
|
|
783
788
|
export {
|
|
784
|
-
|
|
789
|
+
_l as default
|
|
785
790
|
};
|