vue-data-ui 3.4.8 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -37
- package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
- package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as A, computed as i, ref as r, toRefs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as A, computed as i, ref as r, toRefs as _t, watch as E, shallowRef as Ue, onMounted as It, onBeforeUnmount as Pt, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as q, createBlock as _, createCommentVNode as f, createElementVNode as I, createVNode as ce, createSlots as Ee, withCtx as d, renderSlot as p, normalizeProps as R, guardReactiveProps as L, Fragment as Y, renderList as X, toDisplayString as z, Teleport as Ft, resolveDynamicComponent as Dt, mergeProps as Mt, createTextVNode as Ye, nextTick as Xe } from "vue";
|
|
2
|
+
import { c as Rt, t as Lt, b as zt, p as Ge, e as Bt, o as He, f as ve, h as Nt, d as B, X as Vt, a as de, G as We, P as Ut, Q as Et, H as Yt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Xt, u as Gt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ht, a as je } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as Wt, B as jt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as qt } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as Qt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Zt } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
|
+
import ea from "./img-BecE5qXd.js";
|
|
12
|
+
import ta from "./Title-l36lOBMx.js";
|
|
13
|
+
import aa from "./Legend-G6GMcdAc.js";
|
|
14
|
+
import { t as la } from "./themes-AUNCOb2G.js";
|
|
15
|
+
import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ca = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], va = ["id"], da = ["stdDeviation"], ha = ["filter"], ga = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], pa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], fa = { key: 2 }, ma = ["onMouseenter", "onMouseleave", "onClick"], ya = ["x", "y", "font-size", "fill", "font-weight"], ba = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, ka = ["id"], wa = ["onClick"], Ca = ["innerHTML"], $a = {
|
|
20
20
|
__name: "vue-ui-onion",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,14 +33,14 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
...
|
|
36
|
+
setup(qe, { expose: Qe, emit: Je }) {
|
|
37
|
+
const Ke = A(() => import("./Tooltip-oWCO1HKy.js")), Ze = A(() => import("./BaseIcon-BmMbm4d0.js")), et = A(() => import("./vue-ui-accordion-CZ0thhxa.js")), tt = A(() => import("./DataTable-BT7VF2ua.js")), at = A(() => import("./UserOptions-CGnQt6Fd.js")), lt = A(() => import("./PenAndPaper-DSvu9dwa.js")), ot = A(() => import("./PackageVersion-Cyx_s25h.js")), nt = A(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_onion: st } = Ht(), C = qe, he = i(() => !!C.dataset && C.dataset.length), b = r(Rt()), ut = r(null), ge = r(0), Q = r(!1), J = r(""), m = r([]), $ = r(null), pe = r(null), fe = r(null), me = r(null), ye = r(null), be = r(0), ke = r(0), we = r(0), T = r(!1), Ce = r(!1), N = r(null), e = r(ee()), { loading: k, FINAL_DATASET: $e, manualLoading: K } = Wt({
|
|
38
|
+
..._t(C),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
|
-
prepareConfig:
|
|
40
|
+
prepareConfig: ee,
|
|
41
41
|
callback: () => {
|
|
42
42
|
Promise.resolve().then(async () => {
|
|
43
|
-
await
|
|
43
|
+
await Xe(), Fe();
|
|
44
44
|
});
|
|
45
45
|
},
|
|
46
46
|
skeletonDataset: [
|
|
@@ -49,7 +49,7 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
49
49
|
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
50
50
|
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
51
51
|
],
|
|
52
|
-
skeletonConfig:
|
|
52
|
+
skeletonConfig: Lt({
|
|
53
53
|
defaultConfig: e.value,
|
|
54
54
|
userConfig: {
|
|
55
55
|
userOptions: { show: !1 },
|
|
@@ -70,33 +70,33 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
})
|
|
73
|
-
}), { userOptionsVisible:
|
|
74
|
-
function
|
|
75
|
-
const t =
|
|
73
|
+
}), { userOptionsVisible: Z, setUserOptionsVisibility: Te, keepUserOptionState: xe } = Jt({ config: e.value }), { svgRef: G } = Kt({ config: e.value.style.chart.title });
|
|
74
|
+
function ee() {
|
|
75
|
+
const t = je({
|
|
76
76
|
userConfig: C.config,
|
|
77
|
-
defaultConfig:
|
|
77
|
+
defaultConfig: st
|
|
78
78
|
});
|
|
79
79
|
return t.theme ? {
|
|
80
|
-
...
|
|
81
|
-
userConfig:
|
|
80
|
+
...je({
|
|
81
|
+
userConfig: la.vue_ui_onion[t.theme] || C.config,
|
|
82
82
|
defaultConfig: t
|
|
83
83
|
}),
|
|
84
|
-
customPalette:
|
|
84
|
+
customPalette: zt[t.theme] || Ge
|
|
85
85
|
} : t;
|
|
86
86
|
}
|
|
87
87
|
E(() => C.config, (t) => {
|
|
88
|
-
k.value || (e.value =
|
|
88
|
+
k.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, Pe(), be.value += 1, ke.value += 1, we.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
89
89
|
}, { deep: !0 });
|
|
90
|
-
const { isPrinting:
|
|
91
|
-
elementId: `vue-ui-onion_${
|
|
90
|
+
const { isPrinting: Se, isImaging: Oe, generatePdf: Ae, generateImage: _e } = qt({
|
|
91
|
+
elementId: `vue-ui-onion_${b.value}`,
|
|
92
92
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
93
93
|
options: e.value.userOptions.print
|
|
94
|
-
}),
|
|
94
|
+
}), rt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), it = i(() => Bt(e.value.customPalette)), y = r({
|
|
95
95
|
showTable: e.value.table.show,
|
|
96
96
|
showTooltip: e.value.style.chart.tooltip.show
|
|
97
97
|
});
|
|
98
98
|
E(e, () => {
|
|
99
|
-
|
|
99
|
+
y.value = {
|
|
100
100
|
showTable: e.value.table.show,
|
|
101
101
|
showTooltip: e.value.style.chart.tooltip.show
|
|
102
102
|
};
|
|
@@ -111,48 +111,48 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
111
111
|
bottom: 64
|
|
112
112
|
},
|
|
113
113
|
minRadius: 64
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}), S = Ue(null), M = Ue(null);
|
|
115
|
+
It(() => {
|
|
116
|
+
Ce.value = !0, Pe();
|
|
117
117
|
});
|
|
118
|
-
const
|
|
118
|
+
const ct = i({
|
|
119
119
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
120
120
|
set: (t) => t
|
|
121
|
-
}), { autoSizeLabels:
|
|
121
|
+
}), { autoSizeLabels: Ie } = Zt({
|
|
122
122
|
svgRef: G,
|
|
123
123
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
124
124
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
125
|
-
sizeRef:
|
|
125
|
+
sizeRef: ct,
|
|
126
126
|
labelClass: ".vue-ui-onion-label"
|
|
127
|
-
}),
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
127
|
+
}), vt = i(() => e.value.debug);
|
|
128
|
+
let te = null;
|
|
129
|
+
function Pe() {
|
|
130
|
+
if (He(C.dataset) && (ve({
|
|
131
131
|
componentName: "VueUiOnion",
|
|
132
132
|
type: "dataset",
|
|
133
|
-
debug:
|
|
134
|
-
}),
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
let { width: a, height:
|
|
133
|
+
debug: vt.value
|
|
134
|
+
}), K.value = !0), He(C.dataset) || (K.value = e.value.loading), e.value.responsive) {
|
|
135
|
+
const l = Xt(() => {
|
|
136
|
+
te && clearTimeout(te), T.value = !0;
|
|
137
|
+
let { width: a, height: o } = Gt({
|
|
138
138
|
chart: $.value,
|
|
139
|
-
title: e.value.style.chart.title.text ?
|
|
140
|
-
legend: e.value.style.chart.legend.show ?
|
|
141
|
-
source:
|
|
142
|
-
noTitle:
|
|
139
|
+
title: e.value.style.chart.title.text ? pe.value : null,
|
|
140
|
+
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
141
|
+
source: me.value,
|
|
142
|
+
noTitle: ye.value
|
|
143
143
|
});
|
|
144
|
-
|
|
145
|
-
n.value.width = a, n.value.height =
|
|
146
|
-
T.value = !1,
|
|
144
|
+
o -= 12, requestAnimationFrame(async () => {
|
|
145
|
+
n.value.width = a, n.value.height = o, n.value.padding.top = Math.max(a, o) * 0.125, n.value.padding.right = Math.max(a, o) * 0.125, n.value.padding.bottom = Math.max(a, o) * 0.125, n.value.padding.left = Math.max(a, o) * 0.125, n.value.minRadius = Math.min(a, o) * 0.125, te = setTimeout(() => {
|
|
146
|
+
T.value = !1, Ie();
|
|
147
147
|
}, 0);
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect()), S.value = new ResizeObserver(l), M.value = $.value.parentNode, S.value.observe(M.value);
|
|
151
151
|
}
|
|
152
|
-
requestAnimationFrame(
|
|
152
|
+
requestAnimationFrame(Ie);
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
Pt(() => {
|
|
155
|
+
S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect());
|
|
156
156
|
});
|
|
157
157
|
const h = i(() => ({
|
|
158
158
|
top: n.value.padding.top,
|
|
@@ -165,87 +165,87 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
165
165
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
166
166
|
minRadius: n.value.minRadius,
|
|
167
167
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
168
|
-
})),
|
|
169
|
-
[null, void 0].includes(t.name) &&
|
|
168
|
+
})), g = i(() => ($e.value.forEach((t, l) => {
|
|
169
|
+
[null, void 0].includes(t.name) && ve({
|
|
170
170
|
componentName: "VueUiOnion",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
172
172
|
property: "name",
|
|
173
|
-
index:
|
|
174
|
-
}), [void 0].includes(t.percentage) &&
|
|
173
|
+
index: l
|
|
174
|
+
}), [void 0].includes(t.percentage) && ve({
|
|
175
175
|
componentName: "VueUiOnion",
|
|
176
176
|
type: "datasetSerieAttribute",
|
|
177
177
|
property: "percentage",
|
|
178
|
-
index:
|
|
178
|
+
index: l
|
|
179
179
|
});
|
|
180
|
-
}),
|
|
181
|
-
const a = `onion_serie_${
|
|
180
|
+
}), $e.value.map((t, l) => {
|
|
181
|
+
const a = `onion_serie_${l}_${b.value}`;
|
|
182
182
|
return {
|
|
183
183
|
...t,
|
|
184
184
|
percentage: t.percentage || 0,
|
|
185
185
|
targetPercentage: t.percentage || 0,
|
|
186
|
-
color:
|
|
186
|
+
color: Nt(t.color) || it.value[l] || Ge[l],
|
|
187
187
|
id: a,
|
|
188
188
|
shape: "circle",
|
|
189
|
-
opacity:
|
|
190
|
-
absoluteIndex:
|
|
191
|
-
segregate: () =>
|
|
192
|
-
isSegregated:
|
|
189
|
+
opacity: m.value.includes(a) ? 0.5 : 1,
|
|
190
|
+
absoluteIndex: l,
|
|
191
|
+
segregate: () => H(a),
|
|
192
|
+
isSegregated: m.value.includes(a)
|
|
193
193
|
};
|
|
194
|
-
}))),
|
|
194
|
+
}))), ae = i(() => g.value.map((t, l) => ({
|
|
195
195
|
...t,
|
|
196
196
|
display: `${t.name ? t.name + ": " : ""}${B({
|
|
197
197
|
v: t.percentage ?? 0,
|
|
198
198
|
s: "%",
|
|
199
199
|
r: e.value.style.chart.legend.roundingPercentage
|
|
200
200
|
})}`
|
|
201
|
-
}))), V = r(
|
|
202
|
-
E(() =>
|
|
203
|
-
Array.isArray(t) && t.length > 0 && (
|
|
201
|
+
}))), V = r(g.value), dt = i(() => e.value.useStartAnimation), ht = r(null), gt = i(() => Math.max(...g.value.map((t) => t.percentage))), le = r(!1);
|
|
202
|
+
E(() => g.value, Fe, { immediate: !0, deep: !0 }), E(() => C.dataset, (t) => {
|
|
203
|
+
Array.isArray(t) && t.length > 0 && (K.value = !1);
|
|
204
204
|
}, { deep: !0 });
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
207
|
-
let
|
|
208
|
-
t >=
|
|
205
|
+
function Fe() {
|
|
206
|
+
if (dt.value && !le.value && !k.value) {
|
|
207
|
+
let l = function() {
|
|
208
|
+
t >= gt.value ? (cancelAnimationFrame(ht.value), V.value = g.value, le.value = !0) : (V.value = g.value.map((a) => ({
|
|
209
209
|
...a,
|
|
210
210
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
211
|
-
})), t += 1, requestAnimationFrame(
|
|
211
|
+
})), t += 1, requestAnimationFrame(l), le.value = !0);
|
|
212
212
|
};
|
|
213
|
-
V.value =
|
|
213
|
+
V.value = g.value.map((a) => ({
|
|
214
214
|
...a,
|
|
215
215
|
percentage: 0
|
|
216
216
|
}));
|
|
217
217
|
let t = 0;
|
|
218
|
-
|
|
218
|
+
l();
|
|
219
219
|
} else
|
|
220
|
-
V.value =
|
|
220
|
+
V.value = g.value;
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const pt = i(() => ({
|
|
223
223
|
cy: "onion-div-legend",
|
|
224
224
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
225
225
|
color: e.value.style.chart.legend.color,
|
|
226
226
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
227
227
|
paddingBottom: 12,
|
|
228
228
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
229
|
-
})),
|
|
230
|
-
const t = Math.min(h.value.width, h.value.height) / 2 /
|
|
229
|
+
})), ft = i(() => g.value.filter((t) => !m.value.includes(t.id)).length), P = i(() => {
|
|
230
|
+
const t = Math.min(h.value.width, h.value.height) / 2 / g.value.length;
|
|
231
231
|
return {
|
|
232
232
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
233
233
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
234
234
|
};
|
|
235
|
-
}), x = i(() => V.value.filter((t) => !
|
|
236
|
-
const a = (h.value.maxRadius - P.value.track) /
|
|
235
|
+
}), x = i(() => V.value.filter((t) => !m.value.includes(t.id)).map((t, l) => {
|
|
236
|
+
const a = (h.value.maxRadius - P.value.track) / ft.value / 2 * (1 + l), o = h.value.centerY - a;
|
|
237
237
|
return {
|
|
238
238
|
percentage: t.percentage || 0,
|
|
239
239
|
...t,
|
|
240
|
-
labelY:
|
|
240
|
+
labelY: o,
|
|
241
241
|
radius: a,
|
|
242
|
-
path:
|
|
242
|
+
path: mt(a, t.percentage || 0)
|
|
243
243
|
};
|
|
244
244
|
}));
|
|
245
|
-
function
|
|
246
|
-
const a = 2 * Math.PI * t,
|
|
245
|
+
function mt(t, l) {
|
|
246
|
+
const a = 2 * Math.PI * t, o = a * 0.75, v = `${o} ${a}`, w = o * (1 - l / 100);
|
|
247
247
|
return {
|
|
248
|
-
bgDashArray: `${
|
|
248
|
+
bgDashArray: `${o} ${a}`,
|
|
249
249
|
bgDashOffset: 0,
|
|
250
250
|
dashArray: v,
|
|
251
251
|
dashOffset: w,
|
|
@@ -257,25 +257,45 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
257
257
|
`.trim()
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
262
|
-
|
|
260
|
+
const yt = Je;
|
|
261
|
+
function H(t) {
|
|
262
|
+
if (m.value.includes(t))
|
|
263
|
+
m.value = m.value.filter((l) => l !== t);
|
|
264
|
+
else {
|
|
265
|
+
if (m.value.length === g.value.length - 1) return;
|
|
266
|
+
m.value.push(t);
|
|
267
|
+
}
|
|
268
|
+
yt("selectLegend", x.value);
|
|
269
|
+
}
|
|
270
|
+
function De(t) {
|
|
271
|
+
if (!g.value.length)
|
|
272
|
+
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
273
|
+
const l = g.value.find((a) => a.name === t);
|
|
274
|
+
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
275
|
+
}
|
|
276
|
+
function bt(t) {
|
|
277
|
+
const l = De(t);
|
|
278
|
+
l !== null && m.value.includes(l.id) && H(l.id);
|
|
279
|
+
}
|
|
280
|
+
function kt(t) {
|
|
281
|
+
const l = De(t);
|
|
282
|
+
l !== null && (m.value.includes(l.id) || H(l.id));
|
|
263
283
|
}
|
|
264
|
-
function
|
|
284
|
+
function wt() {
|
|
265
285
|
return x.value;
|
|
266
286
|
}
|
|
267
|
-
const
|
|
268
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value],
|
|
287
|
+
const oe = i(() => {
|
|
288
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = x.value.map((a) => [
|
|
269
289
|
a.name,
|
|
270
290
|
a.percentage,
|
|
271
291
|
a.value
|
|
272
292
|
]);
|
|
273
|
-
return { head: t, body:
|
|
274
|
-
}),
|
|
275
|
-
const t =
|
|
276
|
-
`<span style="color:${
|
|
277
|
-
`${Number(
|
|
278
|
-
`${
|
|
293
|
+
return { head: t, body: l };
|
|
294
|
+
}), W = i(() => {
|
|
295
|
+
const t = oe.value.head, l = x.value.map((o) => [
|
|
296
|
+
`<span style="color:${o.color}">⬤</span> ${o.name}`,
|
|
297
|
+
`${Number(o.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
298
|
+
`${o.prefix || ""}${[null, void 0, NaN, "NaN"].includes(o.value) ? "-" : o.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${o.suffix || ""}`
|
|
279
299
|
]), a = {
|
|
280
300
|
th: {
|
|
281
301
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -289,51 +309,51 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
289
309
|
},
|
|
290
310
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
291
311
|
};
|
|
292
|
-
return { head: t, body:
|
|
312
|
+
return { head: t, body: l, config: a, colNames: t };
|
|
293
313
|
});
|
|
294
|
-
function
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
t ? t(w) :
|
|
314
|
+
function ne(t = null) {
|
|
315
|
+
Xe(() => {
|
|
316
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = oe.value.head, o = oe.value.body, v = l.concat([a]).concat(o), w = Ut(v);
|
|
317
|
+
t ? t(w) : Et({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
298
318
|
});
|
|
299
319
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
F.value = t,
|
|
320
|
+
const O = r(void 0), F = r(!1);
|
|
321
|
+
function Me(t) {
|
|
322
|
+
F.value = t, ge.value += 1;
|
|
303
323
|
}
|
|
304
|
-
function
|
|
324
|
+
function Re({ datapoint: t }) {
|
|
305
325
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
306
326
|
}
|
|
307
|
-
function
|
|
308
|
-
|
|
327
|
+
function Le({ datapoint: t }) {
|
|
328
|
+
O.value = void 0, Q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
309
329
|
}
|
|
310
|
-
const
|
|
311
|
-
function
|
|
330
|
+
const se = r(null);
|
|
331
|
+
function ze({ datapoint: t, seriesIndex: l, show: a = !0 }) {
|
|
312
332
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
313
|
-
const
|
|
314
|
-
|
|
333
|
+
const o = t.absoluteIndex;
|
|
334
|
+
O.value = l, se.value = {
|
|
315
335
|
datapoint: t,
|
|
316
|
-
seriesIndex:
|
|
317
|
-
series:
|
|
336
|
+
seriesIndex: o,
|
|
337
|
+
series: g.value,
|
|
318
338
|
config: e.value
|
|
319
|
-
},
|
|
339
|
+
}, Q.value = a;
|
|
320
340
|
let v = "";
|
|
321
341
|
const w = e.value.style.chart.tooltip.customFormat;
|
|
322
|
-
if (
|
|
323
|
-
seriesIndex:
|
|
342
|
+
if (We(w) && Yt(() => w({
|
|
343
|
+
seriesIndex: o,
|
|
324
344
|
datapoint: t,
|
|
325
|
-
series:
|
|
345
|
+
series: g.value,
|
|
326
346
|
config: e.value
|
|
327
347
|
})))
|
|
328
|
-
|
|
329
|
-
seriesIndex:
|
|
348
|
+
J.value = w({
|
|
349
|
+
seriesIndex: o,
|
|
330
350
|
datapoint: t,
|
|
331
|
-
series:
|
|
351
|
+
series: g.value,
|
|
332
352
|
config: e.value
|
|
333
353
|
});
|
|
334
354
|
else {
|
|
335
|
-
const
|
|
336
|
-
v += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, v += `<div style="width:100%;text-align:left;"><b>${
|
|
355
|
+
const re = e.value.style.chart.tooltip.showPercentage, ie = e.value.style.chart.tooltip.showValue;
|
|
356
|
+
v += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, v += `<div style="width:100%;text-align:left;"><b>${re ? B({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${re && ie ? "(" : ""}${ie ? de(
|
|
337
357
|
e.value.style.chart.layout.labels.value.formatter,
|
|
338
358
|
t.value,
|
|
339
359
|
B({
|
|
@@ -342,36 +362,36 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
342
362
|
s: t.suffix || "",
|
|
343
363
|
r: e.value.style.chart.tooltip.roundingValue
|
|
344
364
|
}),
|
|
345
|
-
{ datapoint: t, seriesIndex:
|
|
346
|
-
) : ""}${
|
|
365
|
+
{ datapoint: t, seriesIndex: l }
|
|
366
|
+
) : ""}${re && ie ? ")" : ""}</div>`, J.value = `<div>${v}</div>`;
|
|
347
367
|
}
|
|
348
368
|
}
|
|
349
|
-
function ze() {
|
|
350
|
-
f.value.showTable = !f.value.showTable;
|
|
351
|
-
}
|
|
352
369
|
function Be() {
|
|
353
|
-
|
|
370
|
+
y.value.showTable = !y.value.showTable;
|
|
354
371
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
W.value = !W.value;
|
|
372
|
+
function Ne() {
|
|
373
|
+
y.value.showTooltip = !y.value.showTooltip;
|
|
358
374
|
}
|
|
359
|
-
|
|
375
|
+
const j = r(!1);
|
|
376
|
+
function ue() {
|
|
377
|
+
j.value = !j.value;
|
|
378
|
+
}
|
|
379
|
+
async function Ct({ scale: t = 2 } = {}) {
|
|
360
380
|
if (!$.value) return;
|
|
361
|
-
const { width:
|
|
381
|
+
const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: v, base64: w } = await ea({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
362
382
|
return {
|
|
363
383
|
imageUri: v,
|
|
364
384
|
base64: w,
|
|
365
385
|
title: e.value.style.chart.title.text,
|
|
366
|
-
width:
|
|
386
|
+
width: l,
|
|
367
387
|
height: a,
|
|
368
|
-
aspectRatio:
|
|
388
|
+
aspectRatio: o
|
|
369
389
|
};
|
|
370
390
|
}
|
|
371
391
|
const U = i(() => {
|
|
372
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
392
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
373
393
|
return {
|
|
374
|
-
component: t ?
|
|
394
|
+
component: t ? nt : et,
|
|
375
395
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
376
396
|
props: t ? {
|
|
377
397
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -384,7 +404,7 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
384
404
|
} : {
|
|
385
405
|
hideDetails: !0,
|
|
386
406
|
config: {
|
|
387
|
-
open:
|
|
407
|
+
open: l,
|
|
388
408
|
maxHeight: 1e4,
|
|
389
409
|
body: {
|
|
390
410
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -398,69 +418,71 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
398
418
|
}
|
|
399
419
|
};
|
|
400
420
|
});
|
|
401
|
-
E(() =>
|
|
421
|
+
E(() => y.value.showTable, (t) => {
|
|
402
422
|
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
403
423
|
});
|
|
404
|
-
const
|
|
424
|
+
const $t = i(() => ae.value.map((t) => ({
|
|
405
425
|
...t,
|
|
406
426
|
name: t.display
|
|
407
|
-
}))),
|
|
427
|
+
}))), Tt = i(() => e.value.style.chart.backgroundColor), xt = i(() => e.value.style.chart.legend), St = i(() => e.value.style.chart.title), { exportSvg: Ot, getSvg: At } = Qt({
|
|
408
428
|
svg: G,
|
|
409
|
-
title:
|
|
410
|
-
legend:
|
|
411
|
-
legendItems:
|
|
412
|
-
backgroundColor:
|
|
429
|
+
title: St,
|
|
430
|
+
legend: xt,
|
|
431
|
+
legendItems: $t,
|
|
432
|
+
backgroundColor: Tt
|
|
413
433
|
});
|
|
414
|
-
async function
|
|
434
|
+
async function Ve({ isCb: t }) {
|
|
415
435
|
if (t) {
|
|
416
|
-
const { blob:
|
|
417
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
436
|
+
const { blob: l, url: a, text: o, dataUrl: v } = await At();
|
|
437
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: v });
|
|
418
438
|
} else
|
|
419
|
-
|
|
439
|
+
Ot();
|
|
420
440
|
}
|
|
421
|
-
return
|
|
422
|
-
getData:
|
|
423
|
-
getImage:
|
|
424
|
-
generatePdf:
|
|
425
|
-
generateCsv:
|
|
426
|
-
generateImage:
|
|
427
|
-
generateSvg:
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
441
|
+
return Qe({
|
|
442
|
+
getData: wt,
|
|
443
|
+
getImage: Ct,
|
|
444
|
+
generatePdf: Ae,
|
|
445
|
+
generateCsv: ne,
|
|
446
|
+
generateImage: _e,
|
|
447
|
+
generateSvg: Ve,
|
|
448
|
+
hideSeries: kt,
|
|
449
|
+
showSeries: bt,
|
|
450
|
+
toggleTable: Be,
|
|
451
|
+
toggleTooltip: Ne,
|
|
452
|
+
toggleAnnotator: ue,
|
|
453
|
+
toggleFullscreen: Me
|
|
454
|
+
}), (t, l) => (u(), c("div", {
|
|
455
|
+
class: q(`vue-data-ui-component vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
434
456
|
ref_key: "onionChart",
|
|
435
457
|
ref: $,
|
|
436
|
-
id: `vue-ui-onion_${
|
|
458
|
+
id: `vue-ui-onion_${b.value}`,
|
|
437
459
|
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
438
|
-
onMouseenter:
|
|
439
|
-
onMouseleave:
|
|
460
|
+
onMouseenter: l[4] || (l[4] = () => s(Te)(!0)),
|
|
461
|
+
onMouseleave: l[5] || (l[5] = () => s(Te)(!1))
|
|
440
462
|
}, [
|
|
441
|
-
e.value.userOptions.buttons.annotator ? (u(), _(s(
|
|
463
|
+
e.value.userOptions.buttons.annotator ? (u(), _(s(lt), {
|
|
442
464
|
key: 0,
|
|
443
465
|
svgRef: s(G),
|
|
444
466
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
445
467
|
color: e.value.style.chart.color,
|
|
446
|
-
active:
|
|
447
|
-
onClose:
|
|
448
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
449
|
-
|
|
468
|
+
active: j.value,
|
|
469
|
+
onClose: ue
|
|
470
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
471
|
+
rt.value ? (u(), c("div", {
|
|
450
472
|
key: 1,
|
|
451
473
|
ref_key: "noTitle",
|
|
452
|
-
ref:
|
|
474
|
+
ref: ye,
|
|
453
475
|
class: "vue-data-ui-no-title-space",
|
|
454
476
|
style: "height:36px; width: 100%;background:transparent"
|
|
455
|
-
}, null, 512)) :
|
|
477
|
+
}, null, 512)) : f("", !0),
|
|
456
478
|
e.value.style.chart.title.text ? (u(), c("div", {
|
|
457
479
|
key: 2,
|
|
458
480
|
ref_key: "chartTitle",
|
|
459
|
-
ref:
|
|
481
|
+
ref: pe,
|
|
460
482
|
style: "width:100%;background:transparent"
|
|
461
483
|
}, [
|
|
462
|
-
(u(), _(
|
|
463
|
-
key: `title_${
|
|
484
|
+
(u(), _(ta, {
|
|
485
|
+
key: `title_${be.value}`,
|
|
464
486
|
config: {
|
|
465
487
|
title: {
|
|
466
488
|
cy: "onion-div-title",
|
|
@@ -472,19 +494,19 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
472
494
|
}
|
|
473
495
|
}
|
|
474
496
|
}, null, 8, ["config"]))
|
|
475
|
-
], 512)) :
|
|
497
|
+
], 512)) : f("", !0),
|
|
476
498
|
I("div", {
|
|
477
|
-
id: `legend-top-${
|
|
478
|
-
}, null, 8,
|
|
479
|
-
e.value.userOptions.show &&
|
|
499
|
+
id: `legend-top-${b.value}`
|
|
500
|
+
}, null, 8, sa),
|
|
501
|
+
e.value.userOptions.show && he.value && (s(xe) || s(Z)) ? (u(), _(s(at), {
|
|
480
502
|
ref_key: "details",
|
|
481
|
-
ref:
|
|
482
|
-
key: `user_options${
|
|
503
|
+
ref: ut,
|
|
504
|
+
key: `user_options${ge.value}`,
|
|
483
505
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
484
506
|
color: e.value.style.chart.color,
|
|
485
507
|
isImaging: s(Oe),
|
|
486
|
-
isPrinting: s(
|
|
487
|
-
uid:
|
|
508
|
+
isPrinting: s(Se),
|
|
509
|
+
uid: b.value,
|
|
488
510
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
489
511
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
490
512
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -493,100 +515,100 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
493
515
|
hasTable: e.value.userOptions.buttons.table,
|
|
494
516
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
495
517
|
isFullscreen: F.value,
|
|
496
|
-
isTooltip:
|
|
518
|
+
isTooltip: y.value.showTooltip,
|
|
497
519
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
498
520
|
chartElement: $.value,
|
|
499
521
|
position: e.value.userOptions.position,
|
|
500
522
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
501
|
-
isAnnotation:
|
|
523
|
+
isAnnotation: j.value,
|
|
502
524
|
callbacks: e.value.userOptions.callbacks,
|
|
503
525
|
printScale: e.value.userOptions.print.scale,
|
|
504
526
|
tableDialog: e.value.table.useDialog,
|
|
505
|
-
onToggleFullscreen:
|
|
506
|
-
onGeneratePdf: s(
|
|
507
|
-
onGenerateCsv:
|
|
508
|
-
onGenerateImage: s(
|
|
509
|
-
onGenerateSvg:
|
|
510
|
-
onToggleTable:
|
|
511
|
-
onToggleTooltip:
|
|
512
|
-
onToggleAnnotator:
|
|
527
|
+
onToggleFullscreen: Me,
|
|
528
|
+
onGeneratePdf: s(Ae),
|
|
529
|
+
onGenerateCsv: ne,
|
|
530
|
+
onGenerateImage: s(_e),
|
|
531
|
+
onGenerateSvg: Ve,
|
|
532
|
+
onToggleTable: Be,
|
|
533
|
+
onToggleTooltip: Ne,
|
|
534
|
+
onToggleAnnotator: ue,
|
|
513
535
|
style: D({
|
|
514
|
-
visibility: s(
|
|
536
|
+
visibility: s(xe) ? s(Z) ? "visible" : "hidden" : "visible"
|
|
515
537
|
})
|
|
516
|
-
},
|
|
538
|
+
}, Ee({ _: 2 }, [
|
|
517
539
|
t.$slots.menuIcon ? {
|
|
518
540
|
name: "menuIcon",
|
|
519
|
-
fn: d(({ isOpen: a, color:
|
|
520
|
-
|
|
541
|
+
fn: d(({ isOpen: a, color: o }) => [
|
|
542
|
+
p(t.$slots, "menuIcon", R(L({ isOpen: a, color: o })), void 0, !0)
|
|
521
543
|
]),
|
|
522
544
|
key: "0"
|
|
523
545
|
} : void 0,
|
|
524
546
|
t.$slots.optionTooltip ? {
|
|
525
547
|
name: "optionTooltip",
|
|
526
548
|
fn: d(() => [
|
|
527
|
-
|
|
549
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
528
550
|
]),
|
|
529
551
|
key: "1"
|
|
530
552
|
} : void 0,
|
|
531
553
|
t.$slots.optionPdf ? {
|
|
532
554
|
name: "optionPdf",
|
|
533
555
|
fn: d(() => [
|
|
534
|
-
|
|
556
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
535
557
|
]),
|
|
536
558
|
key: "2"
|
|
537
559
|
} : void 0,
|
|
538
560
|
t.$slots.optionCsv ? {
|
|
539
561
|
name: "optionCsv",
|
|
540
562
|
fn: d(() => [
|
|
541
|
-
|
|
563
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
542
564
|
]),
|
|
543
565
|
key: "3"
|
|
544
566
|
} : void 0,
|
|
545
567
|
t.$slots.optionImg ? {
|
|
546
568
|
name: "optionImg",
|
|
547
569
|
fn: d(() => [
|
|
548
|
-
|
|
570
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
549
571
|
]),
|
|
550
572
|
key: "4"
|
|
551
573
|
} : void 0,
|
|
552
574
|
t.$slots.optionSvg ? {
|
|
553
575
|
name: "optionSvg",
|
|
554
576
|
fn: d(() => [
|
|
555
|
-
|
|
577
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
556
578
|
]),
|
|
557
579
|
key: "5"
|
|
558
580
|
} : void 0,
|
|
559
581
|
t.$slots.optionTable ? {
|
|
560
582
|
name: "optionTable",
|
|
561
583
|
fn: d(() => [
|
|
562
|
-
|
|
584
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
563
585
|
]),
|
|
564
586
|
key: "6"
|
|
565
587
|
} : void 0,
|
|
566
588
|
t.$slots.optionFullscreen ? {
|
|
567
589
|
name: "optionFullscreen",
|
|
568
|
-
fn: d(({ toggleFullscreen: a, isFullscreen:
|
|
569
|
-
|
|
590
|
+
fn: d(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
591
|
+
p(t.$slots, "optionFullscreen", R(L({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
570
592
|
]),
|
|
571
593
|
key: "7"
|
|
572
594
|
} : void 0,
|
|
573
595
|
t.$slots.optionAnnotator ? {
|
|
574
596
|
name: "optionAnnotator",
|
|
575
|
-
fn: d(({ toggleAnnotator: a, isAnnotator:
|
|
576
|
-
|
|
597
|
+
fn: d(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
598
|
+
p(t.$slots, "optionAnnotator", R(L({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
577
599
|
]),
|
|
578
600
|
key: "8"
|
|
579
601
|
} : void 0
|
|
580
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
602
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
581
603
|
(u(), c("svg", {
|
|
582
604
|
ref_key: "svgRef",
|
|
583
605
|
ref: G,
|
|
584
|
-
xmlns: s(
|
|
585
|
-
class:
|
|
606
|
+
xmlns: s(Vt),
|
|
607
|
+
class: q({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: T.value }),
|
|
586
608
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
587
609
|
style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
588
610
|
}, [
|
|
589
|
-
|
|
611
|
+
ce(s(ot)),
|
|
590
612
|
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
591
613
|
key: 0,
|
|
592
614
|
x: 0,
|
|
@@ -597,9 +619,9 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
597
619
|
pointerEvents: "none"
|
|
598
620
|
}
|
|
599
621
|
}, [
|
|
600
|
-
|
|
601
|
-
], 8,
|
|
602
|
-
(u(!0), c(Y, null, X(x.value, (a,
|
|
622
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
623
|
+
], 8, ra)) : f("", !0),
|
|
624
|
+
(u(!0), c(Y, null, X(x.value, (a, o) => (u(), c("circle", {
|
|
603
625
|
cx: h.value.centerX,
|
|
604
626
|
cy: h.value.centerY,
|
|
605
627
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
@@ -609,15 +631,15 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
609
631
|
"stroke-dasharray": a.path.bgDashArray,
|
|
610
632
|
"stroke-dashoffset": a.path.fullOffset,
|
|
611
633
|
"stroke-linecap": "round",
|
|
612
|
-
class:
|
|
634
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== o }),
|
|
613
635
|
style: D({
|
|
614
636
|
transform: "rotate(-90deg)",
|
|
615
637
|
transformOrigin: "50% 50%",
|
|
616
638
|
transition: T.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
617
639
|
animation: T.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
618
640
|
})
|
|
619
|
-
}, null, 14,
|
|
620
|
-
(u(!0), c(Y, null, X(x.value, (a,
|
|
641
|
+
}, null, 14, ia))), 256)),
|
|
642
|
+
(u(!0), c(Y, null, X(x.value, (a, o) => (u(), c("circle", {
|
|
621
643
|
cx: h.value.centerX,
|
|
622
644
|
cy: h.value.centerY,
|
|
623
645
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
@@ -626,7 +648,7 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
626
648
|
fill: "none",
|
|
627
649
|
"stroke-dasharray": a.path.dashArray,
|
|
628
650
|
"stroke-dashoffset": a.path.dashOffset,
|
|
629
|
-
class:
|
|
651
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== o }),
|
|
630
652
|
"stroke-linecap": "round",
|
|
631
653
|
style: D({
|
|
632
654
|
transform: "rotate(-90deg)",
|
|
@@ -634,10 +656,10 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
634
656
|
transition: T.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
635
657
|
animation: T.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
636
658
|
})
|
|
637
|
-
}, null, 14,
|
|
659
|
+
}, null, 14, ca))), 256)),
|
|
638
660
|
I("defs", null, [
|
|
639
661
|
I("filter", {
|
|
640
|
-
id: `blur_${
|
|
662
|
+
id: `blur_${b.value}`,
|
|
641
663
|
x: "-50%",
|
|
642
664
|
y: "-50%",
|
|
643
665
|
width: "200%",
|
|
@@ -646,14 +668,14 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
646
668
|
I("feGaussianBlur", {
|
|
647
669
|
in: "SourceGraphic",
|
|
648
670
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
649
|
-
}, null, 8,
|
|
650
|
-
], 8,
|
|
671
|
+
}, null, 8, da)
|
|
672
|
+
], 8, va)
|
|
651
673
|
]),
|
|
652
674
|
e.value.style.chart.useGradient ? (u(), c("g", {
|
|
653
675
|
key: 1,
|
|
654
|
-
filter: `url(#blur_${
|
|
676
|
+
filter: `url(#blur_${b.value})`
|
|
655
677
|
}, [
|
|
656
|
-
(u(!0), c(Y, null, X(x.value, (a,
|
|
678
|
+
(u(!0), c(Y, null, X(x.value, (a, o) => (u(), c("circle", {
|
|
657
679
|
cx: h.value.centerX,
|
|
658
680
|
cy: h.value.centerY,
|
|
659
681
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
@@ -669,9 +691,9 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
669
691
|
transition: T.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
670
692
|
animation: T.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
671
693
|
})
|
|
672
|
-
}, null, 12,
|
|
673
|
-
], 8,
|
|
674
|
-
(u(!0), c(Y, null, X(x.value, (a,
|
|
694
|
+
}, null, 12, ga))), 256))
|
|
695
|
+
], 8, ha)) : f("", !0),
|
|
696
|
+
(u(!0), c(Y, null, X(x.value, (a, o) => (u(), c("circle", {
|
|
675
697
|
cx: h.value.centerX,
|
|
676
698
|
cy: h.value.centerY,
|
|
677
699
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
@@ -686,38 +708,38 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
686
708
|
transform: "rotate(-90deg)",
|
|
687
709
|
transformOrigin: "50% 50%"
|
|
688
710
|
},
|
|
689
|
-
onMouseenter: (v) =>
|
|
711
|
+
onMouseenter: (v) => ze({
|
|
690
712
|
datapoint: a,
|
|
691
713
|
show: !0,
|
|
692
|
-
seriesIndex:
|
|
714
|
+
seriesIndex: o
|
|
693
715
|
}),
|
|
694
|
-
onMouseleave: (v) =>
|
|
695
|
-
onClick: (v) =>
|
|
696
|
-
}, null, 40,
|
|
697
|
-
e.value.style.chart.layout.labels.show ? (u(), c("g",
|
|
698
|
-
(u(!0), c(Y, null, X(x.value, (a,
|
|
699
|
-
onMouseenter: (v) =>
|
|
716
|
+
onMouseleave: (v) => Le({ datapoint: a }),
|
|
717
|
+
onClick: (v) => Re({ datapoint: a })
|
|
718
|
+
}, null, 40, pa))), 256)),
|
|
719
|
+
e.value.style.chart.layout.labels.show ? (u(), c("g", fa, [
|
|
720
|
+
(u(!0), c(Y, null, X(x.value, (a, o) => (u(), c("g", {
|
|
721
|
+
onMouseenter: (v) => ze({
|
|
700
722
|
datapoint: a,
|
|
701
723
|
show: !0,
|
|
702
|
-
seriesIndex:
|
|
724
|
+
seriesIndex: o
|
|
703
725
|
}),
|
|
704
|
-
onMouseleave: (v) =>
|
|
705
|
-
onClick: (v) =>
|
|
726
|
+
onMouseleave: (v) => Le({ datapoint: a }),
|
|
727
|
+
onClick: (v) => Re({ datapoint: a })
|
|
706
728
|
}, [
|
|
707
|
-
|
|
729
|
+
m.value.includes(a.id) ? f("", !0) : (u(), c("text", {
|
|
708
730
|
key: 0,
|
|
709
731
|
class: "vue-ui-onion-label",
|
|
710
732
|
x: n.value.width / 2 - P.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
711
733
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
712
734
|
"text-anchor": "end",
|
|
713
735
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
714
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
736
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value === o ? a.color : e.value.style.chart.layout.labels.color,
|
|
715
737
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
716
738
|
}, z(a.name ? a.name + ": " : "") + " " + z(e.value.style.chart.layout.labels.percentage.show ? s(B)({
|
|
717
739
|
v: a.percentage,
|
|
718
740
|
s: "%",
|
|
719
741
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
720
|
-
}) : "") + " " + z(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(
|
|
742
|
+
}) : "") + " " + z(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(de)(
|
|
721
743
|
e.value.style.chart.layout.labels.value.formatter,
|
|
722
744
|
a.value,
|
|
723
745
|
s(B)({
|
|
@@ -726,8 +748,8 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
726
748
|
s: a.suffix || "",
|
|
727
749
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
728
750
|
}),
|
|
729
|
-
{ datapoint: a, seriesIndex:
|
|
730
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(
|
|
751
|
+
{ datapoint: a, seriesIndex: o }
|
|
752
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(de)(
|
|
731
753
|
e.value.style.chart.layout.labels.value.formatter,
|
|
732
754
|
a.value,
|
|
733
755
|
s(B)({
|
|
@@ -736,57 +758,57 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
736
758
|
s: a.suffix || "",
|
|
737
759
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
738
760
|
}),
|
|
739
|
-
{ datapoint: a, seriesIndex:
|
|
740
|
-
)})` : ""}`), 9,
|
|
741
|
-
], 40,
|
|
742
|
-
])) :
|
|
743
|
-
|
|
744
|
-
], 14,
|
|
745
|
-
t.$slots.watermark ? (u(), c("div",
|
|
746
|
-
|
|
747
|
-
])) :
|
|
761
|
+
{ datapoint: a, seriesIndex: o }
|
|
762
|
+
)})` : ""}`), 9, ya))
|
|
763
|
+
], 40, ma))), 256))
|
|
764
|
+
])) : f("", !0),
|
|
765
|
+
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
766
|
+
], 14, ua)),
|
|
767
|
+
t.$slots.watermark ? (u(), c("div", ba, [
|
|
768
|
+
p(t.$slots, "watermark", R(L({ isPrinting: s(Se) || s(Oe) })), void 0, !0)
|
|
769
|
+
])) : f("", !0),
|
|
748
770
|
I("div", {
|
|
749
|
-
id: `legend-bottom-${
|
|
750
|
-
}, null, 8,
|
|
751
|
-
|
|
771
|
+
id: `legend-bottom-${b.value}`
|
|
772
|
+
}, null, 8, ka),
|
|
773
|
+
Ce.value ? (u(), _(Ft, {
|
|
752
774
|
key: 5,
|
|
753
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
775
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
754
776
|
}, [
|
|
755
777
|
I("div", {
|
|
756
778
|
ref_key: "chartLegend",
|
|
757
|
-
ref:
|
|
779
|
+
ref: fe
|
|
758
780
|
}, [
|
|
759
|
-
e.value.style.chart.legend.show ? (u(), _(
|
|
760
|
-
key: `legend_${
|
|
761
|
-
legendSet:
|
|
762
|
-
config:
|
|
763
|
-
onClickMarker:
|
|
781
|
+
e.value.style.chart.legend.show ? (u(), _(aa, {
|
|
782
|
+
key: `legend_${we.value}`,
|
|
783
|
+
legendSet: ae.value,
|
|
784
|
+
config: pt.value,
|
|
785
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => H(a.id))
|
|
764
786
|
}, {
|
|
765
787
|
item: d(({ legend: a }) => [
|
|
766
|
-
s(k) ?
|
|
788
|
+
s(k) ? f("", !0) : (u(), c("div", {
|
|
767
789
|
key: 0,
|
|
768
790
|
"data-cy-legend-item": "",
|
|
769
|
-
onClick: (
|
|
770
|
-
style: D(`opacity:${
|
|
771
|
-
}, z(a.display), 13,
|
|
791
|
+
onClick: (o) => a.segregate(),
|
|
792
|
+
style: D(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
|
|
793
|
+
}, z(a.display), 13, wa))
|
|
772
794
|
]),
|
|
773
795
|
_: 1
|
|
774
|
-
}, 8, ["legendSet", "config"])) :
|
|
796
|
+
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
775
797
|
key: 1,
|
|
776
|
-
legend:
|
|
798
|
+
legend: ae.value
|
|
777
799
|
}, void 0, !0)
|
|
778
800
|
], 512)
|
|
779
|
-
], 8, ["to"])) :
|
|
801
|
+
], 8, ["to"])) : f("", !0),
|
|
780
802
|
t.$slots.source ? (u(), c("div", {
|
|
781
803
|
key: 6,
|
|
782
804
|
ref_key: "source",
|
|
783
|
-
ref:
|
|
805
|
+
ref: me,
|
|
784
806
|
dir: "auto"
|
|
785
807
|
}, [
|
|
786
|
-
|
|
787
|
-
], 512)) :
|
|
788
|
-
|
|
789
|
-
show:
|
|
808
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
809
|
+
], 512)) : f("", !0),
|
|
810
|
+
ce(s(Ke), {
|
|
811
|
+
show: y.value.showTooltip && Q.value,
|
|
790
812
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
791
813
|
color: e.value.style.chart.tooltip.color,
|
|
792
814
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -797,43 +819,43 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
797
819
|
position: e.value.style.chart.tooltip.position,
|
|
798
820
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
799
821
|
parent: $.value,
|
|
800
|
-
content:
|
|
822
|
+
content: J.value,
|
|
801
823
|
isFullscreen: F.value,
|
|
802
|
-
isCustom: s(
|
|
824
|
+
isCustom: s(We)(e.value.style.chart.tooltip.customFormat),
|
|
803
825
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
804
826
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
805
827
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
806
828
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
807
829
|
}, {
|
|
808
830
|
"tooltip-before": d(() => [
|
|
809
|
-
|
|
831
|
+
p(t.$slots, "tooltip-before", R(L({ ...se.value })), void 0, !0)
|
|
810
832
|
]),
|
|
811
833
|
"tooltip-after": d(() => [
|
|
812
|
-
|
|
834
|
+
p(t.$slots, "tooltip-after", R(L({ ...se.value })), void 0, !0)
|
|
813
835
|
]),
|
|
814
836
|
_: 3
|
|
815
837
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
816
|
-
|
|
838
|
+
he.value && e.value.userOptions.buttons.table ? (u(), _(Dt(U.value.component), Mt({ key: 7 }, U.value.props, {
|
|
817
839
|
ref_key: "tableUnit",
|
|
818
840
|
ref: N,
|
|
819
|
-
onClose:
|
|
820
|
-
}),
|
|
841
|
+
onClose: l[3] || (l[3] = (a) => y.value.showTable = !1)
|
|
842
|
+
}), Ee({
|
|
821
843
|
content: d(() => [
|
|
822
|
-
(u(), _(s(
|
|
823
|
-
key: `table_${
|
|
824
|
-
colNames:
|
|
825
|
-
head:
|
|
826
|
-
body:
|
|
827
|
-
config:
|
|
844
|
+
(u(), _(s(tt), {
|
|
845
|
+
key: `table_${ke.value}`,
|
|
846
|
+
colNames: W.value.colNames,
|
|
847
|
+
head: W.value.head,
|
|
848
|
+
body: W.value.body,
|
|
849
|
+
config: W.value.config,
|
|
828
850
|
title: e.value.table.useDialog ? "" : U.value.title,
|
|
829
851
|
withCloseButton: !e.value.table.useDialog,
|
|
830
|
-
onClose:
|
|
852
|
+
onClose: l[2] || (l[2] = (a) => y.value.showTable = !1)
|
|
831
853
|
}, {
|
|
832
854
|
th: d(({ th: a }) => [
|
|
833
|
-
|
|
855
|
+
Ye(z(a), 1)
|
|
834
856
|
]),
|
|
835
857
|
td: d(({ td: a }) => [
|
|
836
|
-
I("div", { innerHTML: a }, null, 8,
|
|
858
|
+
I("div", { innerHTML: a }, null, 8, Ca)
|
|
837
859
|
]),
|
|
838
860
|
_: 1
|
|
839
861
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -843,7 +865,7 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
843
865
|
e.value.table.useDialog ? {
|
|
844
866
|
name: "title",
|
|
845
867
|
fn: d(() => [
|
|
846
|
-
|
|
868
|
+
Ye(z(U.value.title), 1)
|
|
847
869
|
]),
|
|
848
870
|
key: "0"
|
|
849
871
|
} : void 0,
|
|
@@ -853,9 +875,9 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
853
875
|
I("button", {
|
|
854
876
|
tabindex: "0",
|
|
855
877
|
class: "vue-ui-user-options-button",
|
|
856
|
-
onClick:
|
|
878
|
+
onClick: l[1] || (l[1] = (a) => ne(e.value.userOptions.callbacks.csv))
|
|
857
879
|
}, [
|
|
858
|
-
|
|
880
|
+
ce(s(Ze), {
|
|
859
881
|
name: "excel",
|
|
860
882
|
stroke: U.value.props.color
|
|
861
883
|
}, null, 8, ["stroke"])
|
|
@@ -863,11 +885,11 @@ const aa = ["id"], la = ["id"], oa = ["xmlns", "viewBox"], na = ["width", "heigh
|
|
|
863
885
|
]),
|
|
864
886
|
key: "1"
|
|
865
887
|
} : void 0
|
|
866
|
-
]), 1040)) :
|
|
867
|
-
s(k) ? (u(), _(
|
|
868
|
-
], 46,
|
|
888
|
+
]), 1040)) : f("", !0),
|
|
889
|
+
s(k) ? (u(), _(jt, { key: 8 })) : f("", !0)
|
|
890
|
+
], 46, na));
|
|
869
891
|
}
|
|
870
|
-
},
|
|
892
|
+
}, Na = /* @__PURE__ */ oa($a, [["__scopeId", "data-v-df14b6b6"]]);
|
|
871
893
|
export {
|
|
872
|
-
|
|
894
|
+
Na as default
|
|
873
895
|
};
|