vue-data-ui 3.4.6 → 3.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- 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-heatmap.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-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as G, createBlock as T, createCommentVNode as
|
|
2
|
-
import { c as Ee, t as St, o as
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as G, createBlock as T, createCommentVNode as d, createElementVNode as k, createVNode as ae, createSlots as Fe, withCtx as v, renderSlot as h, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Ne, Teleport as $t, toDisplayString as oe, resolveDynamicComponent as xt, mergeProps as Tt, createTextVNode as Be, nextTick as Ve } from "vue";
|
|
2
|
+
import { c as Ee, t as St, o as Ot, f as Me, g as Pt, b as _t, p as z, e as It, a1 as Re, h as Dt, a5 as Lt, a as We, d as S, X as Ft, G as Ge, P as At, Q as Nt, H as Bt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Vt, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Mt, a as ze } from "./useNestedProp-BjZe1Y85.js";
|
|
5
5
|
import { u as Rt, B as Wt } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -15,7 +15,7 @@ import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
15
15
|
const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "height"], tl = ["id"], ll = ["stdDeviation"], al = ["d", "stroke", "stroke-width"], ol = ["d", "stroke", "stroke-width"], sl = ["filter"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], rl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
}, il = ["id"],
|
|
18
|
+
}, il = ["id"], vl = ["onClick"], cl = ["innerHTML"], dl = {
|
|
19
19
|
__name: "vue-ui-galaxy",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -33,7 +33,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup(He, { expose: Ue, emit: Xe }) {
|
|
36
|
-
const Ye = x(() => import("./Tooltip-oWCO1HKy.js")), je = x(() => import("./BaseIcon-BmMbm4d0.js")), qe = x(() => import("./vue-ui-accordion-CZ0thhxa.js")), Qe = x(() => import("./DataTable-BT7VF2ua.js")), Je = x(() => import("./PenAndPaper-DSvu9dwa.js")), Ke = x(() => import("./UserOptions-
|
|
36
|
+
const Ye = x(() => import("./Tooltip-oWCO1HKy.js")), je = x(() => import("./BaseIcon-BmMbm4d0.js")), qe = x(() => import("./vue-ui-accordion-CZ0thhxa.js")), Qe = x(() => import("./DataTable-BT7VF2ua.js")), Je = x(() => import("./PenAndPaper-DSvu9dwa.js")), Ke = x(() => import("./UserOptions-CGnQt6Fd.js")), Ze = x(() => import("./PackageVersion-D-auaEEJ.js")), et = x(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_galaxy: tt } = Mt(), w = He, y = o(Ee()), b = o(null), H = o(!1), U = o(""), O = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ve = o(null), ce = o(null), de = o(null), L = o(null), B = o(null), he = o(!1), F = o(null), X = o(null), ge = i(() => !!w.dataset && w.dataset.length), e = o(Q()), { loading: Y, FINAL_DATASET: pe } = Rt({
|
|
37
37
|
...wt(w),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
39
|
prepareConfig: Q,
|
|
@@ -65,16 +65,16 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
65
65
|
})
|
|
66
66
|
});
|
|
67
67
|
Ct(() => {
|
|
68
|
-
he.value = !0,
|
|
68
|
+
he.value = !0, ye();
|
|
69
69
|
});
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
70
|
+
const fe = i(() => !!e.value.debug);
|
|
71
|
+
function ye() {
|
|
72
|
+
if (Ot(w.dataset) ? Me({
|
|
73
73
|
componentName: "VueUiGalaxy",
|
|
74
74
|
type: "dataset",
|
|
75
|
-
debug:
|
|
75
|
+
debug: fe.value
|
|
76
76
|
}) : w.dataset.forEach((t, a) => {
|
|
77
|
-
|
|
77
|
+
Pt({
|
|
78
78
|
datasetObject: t,
|
|
79
79
|
requiredAttributes: ["name", "values"]
|
|
80
80
|
}).forEach((l) => {
|
|
@@ -83,7 +83,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
83
83
|
type: "datasetSerieAttribute",
|
|
84
84
|
property: l,
|
|
85
85
|
index: a,
|
|
86
|
-
debug:
|
|
86
|
+
debug: fe.value
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
}), e.value.responsive) {
|
|
@@ -91,9 +91,9 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
91
91
|
const { width: a, height: l } = Et({
|
|
92
92
|
chart: b.value,
|
|
93
93
|
title: e.value.style.chart.title.text ? ie.value : null,
|
|
94
|
-
legend: e.value.style.chart.legend.show ?
|
|
94
|
+
legend: e.value.style.chart.legend.show ? ve.value : null,
|
|
95
95
|
noTitle: de.value,
|
|
96
|
-
source:
|
|
96
|
+
source: ce.value
|
|
97
97
|
});
|
|
98
98
|
requestAnimationFrame(() => {
|
|
99
99
|
V.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
@@ -113,14 +113,14 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
113
113
|
userConfig: Xt.vue_ui_galaxy[t.theme] || w.config,
|
|
114
114
|
defaultConfig: t
|
|
115
115
|
}),
|
|
116
|
-
customPalette:
|
|
116
|
+
customPalette: _t[t.theme] || z
|
|
117
117
|
} : t;
|
|
118
118
|
}
|
|
119
119
|
Le(() => w.config, (t) => {
|
|
120
|
-
e.value = Q(), j.value = !e.value.userOptions.showOnChartHover,
|
|
120
|
+
e.value = Q(), j.value = !e.value.userOptions.showOnChartHover, ye(), ne.value += 1, ue.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
121
121
|
}, { deep: !0 });
|
|
122
122
|
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Gt({
|
|
123
|
-
elementId: `galaxy_${
|
|
123
|
+
elementId: `galaxy_${y.value}`,
|
|
124
124
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
125
125
|
options: e.value.userOptions.print
|
|
126
126
|
}), lt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = i(() => It(e.value.customPalette)), p = o({
|
|
@@ -133,15 +133,15 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
133
133
|
width: V.value,
|
|
134
134
|
height: E.value,
|
|
135
135
|
viewBox: `${ot.value} ${st.value} ${V.value} ${E.value}`
|
|
136
|
-
})), xe = Xe,
|
|
136
|
+
})), xe = Xe, f = o([]);
|
|
137
137
|
function J(t) {
|
|
138
|
-
|
|
138
|
+
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), xe("selectLegend", A.value.map((a) => ({
|
|
139
139
|
name: a.name,
|
|
140
140
|
color: a.color,
|
|
141
141
|
value: a.value
|
|
142
142
|
})));
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const P = i(() => pe.value.map((t, a) => ({
|
|
145
145
|
name: t.name,
|
|
146
146
|
color: Dt(t.color) || at.value[a] || z[a] || z[a % z.length],
|
|
147
147
|
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
@@ -152,13 +152,13 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
152
152
|
absoluteIndex: a
|
|
153
153
|
})));
|
|
154
154
|
function nt() {
|
|
155
|
-
return
|
|
155
|
+
return P.value.map((t) => ({
|
|
156
156
|
name: t.name,
|
|
157
157
|
color: t.color,
|
|
158
158
|
value: t.value
|
|
159
159
|
}));
|
|
160
160
|
}
|
|
161
|
-
const m = i(() =>
|
|
161
|
+
const m = i(() => P.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Te = o(190), Se = i(() => P.value.filter((t) => !f.value.includes(t.id))), ut = i(
|
|
162
162
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
163
163
|
), rt = i(() => Lt({
|
|
164
164
|
maxPoints: Te.value,
|
|
@@ -182,45 +182,45 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
182
182
|
path: rt.value(s)
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
return t.filter((a) => !
|
|
185
|
+
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
186
186
|
});
|
|
187
187
|
function K(t) {
|
|
188
|
-
const a = Math.min(V.value, E.value), l =
|
|
188
|
+
const a = Math.min(V.value, E.value), l = O.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, g = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
189
189
|
return {
|
|
190
190
|
border: s / 180 * a,
|
|
191
191
|
path: r / 180 * a,
|
|
192
|
-
blur:
|
|
192
|
+
blur: g / 180 * a
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
const
|
|
196
|
-
function
|
|
197
|
-
|
|
195
|
+
const _ = o(!1);
|
|
196
|
+
function Oe(t) {
|
|
197
|
+
_.value = t, se.value += 1;
|
|
198
198
|
}
|
|
199
199
|
const Z = o(null);
|
|
200
200
|
function it(t) {
|
|
201
|
-
H.value = !1,
|
|
201
|
+
H.value = !1, O.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function vt(t) {
|
|
204
204
|
xe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ct({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
207
207
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
208
208
|
datapoint: t,
|
|
209
209
|
seriesIndex: l,
|
|
210
|
-
series:
|
|
210
|
+
series: P.value,
|
|
211
211
|
config: e.value
|
|
212
|
-
}, H.value = s,
|
|
212
|
+
}, H.value = s, O.value = t.id;
|
|
213
213
|
let r = "";
|
|
214
|
-
const
|
|
215
|
-
Ge(
|
|
214
|
+
const g = e.value.style.chart.tooltip.customFormat;
|
|
215
|
+
Ge(g) && Bt(() => g({
|
|
216
216
|
seriesIndex: l,
|
|
217
217
|
datapoint: t,
|
|
218
|
-
series:
|
|
218
|
+
series: P.value,
|
|
219
219
|
config: e.value
|
|
220
|
-
})) ? U.value =
|
|
220
|
+
})) ? U.value = g({
|
|
221
221
|
seriesIndex: l,
|
|
222
222
|
datapoint: t,
|
|
223
|
-
series:
|
|
223
|
+
series: P.value,
|
|
224
224
|
config: e.value
|
|
225
225
|
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;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>`, e.value.style.chart.tooltip.showValue && (r += `<b>${We(
|
|
226
226
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
@@ -242,19 +242,19 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
242
242
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
243
243
|
})}</b></div>`), U.value = `<div>${r}</div>`);
|
|
244
244
|
}
|
|
245
|
-
const ee = i(() =>
|
|
245
|
+
const ee = i(() => P.value.map((t, a) => ({
|
|
246
246
|
...t,
|
|
247
247
|
proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
248
|
-
opacity:
|
|
248
|
+
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
249
249
|
shape: t.shape || "circle",
|
|
250
250
|
segregate: () => J(t),
|
|
251
|
-
isSegregated:
|
|
251
|
+
isSegregated: f.value.includes(t.id),
|
|
252
252
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, S({
|
|
253
253
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
254
254
|
v: t.value,
|
|
255
255
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
256
256
|
r: e.value.style.chart.legend.roundingValue
|
|
257
|
-
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
257
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / m.value) ? "-" : S({ v: t.value / m.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
258
258
|
}))), dt = i(() => ({
|
|
259
259
|
cy: "galaxy-div-legend",
|
|
260
260
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -271,9 +271,9 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
271
271
|
});
|
|
272
272
|
function te(t = null) {
|
|
273
273
|
Ve(() => {
|
|
274
|
-
const a = $.value.head.map((r,
|
|
274
|
+
const a = $.value.head.map((r, g) => [[
|
|
275
275
|
r.name
|
|
276
|
-
], [$.value.body[
|
|
276
|
+
], [$.value.body[g]], [isNaN($.value.body[g] / m.value) ? "-" : $.value.body[g] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = At(l);
|
|
277
277
|
t ? t(s) : Nt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
278
278
|
});
|
|
279
279
|
}
|
|
@@ -282,16 +282,16 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
282
282
|
' <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>',
|
|
283
283
|
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
284
284
|
"100%"
|
|
285
|
-
], a = $.value.head.map((r,
|
|
286
|
-
const kt = S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[
|
|
285
|
+
], a = $.value.head.map((r, g) => {
|
|
286
|
+
const kt = S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
287
287
|
return [
|
|
288
288
|
{
|
|
289
289
|
color: r.color,
|
|
290
290
|
name: r.name
|
|
291
291
|
},
|
|
292
292
|
kt,
|
|
293
|
-
isNaN($.value.body[
|
|
294
|
-
v: $.value.body[
|
|
293
|
+
isNaN($.value.body[g] / m.value) ? "-" : S({
|
|
294
|
+
v: $.value.body[g] / m.value * 100,
|
|
295
295
|
s: "%",
|
|
296
296
|
r: e.value.table.td.roundingPercentage
|
|
297
297
|
})
|
|
@@ -320,10 +320,10 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
320
320
|
config: l
|
|
321
321
|
};
|
|
322
322
|
});
|
|
323
|
-
function
|
|
323
|
+
function Pe() {
|
|
324
324
|
p.value.showTable = !p.value.showTable;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function _e() {
|
|
327
327
|
p.value.showTooltip = !p.value.showTooltip;
|
|
328
328
|
}
|
|
329
329
|
const R = o(!1);
|
|
@@ -332,10 +332,10 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
332
332
|
}
|
|
333
333
|
async function ht({ scale: t = 2 } = {}) {
|
|
334
334
|
if (!b.value) return;
|
|
335
|
-
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64:
|
|
335
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: g } = await Ut({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
336
336
|
return {
|
|
337
337
|
imageUri: r,
|
|
338
|
-
base64:
|
|
338
|
+
base64: g,
|
|
339
339
|
title: e.value.style.chart.title.text,
|
|
340
340
|
width: a,
|
|
341
341
|
height: l,
|
|
@@ -352,7 +352,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
352
352
|
color: e.value.table.th.color,
|
|
353
353
|
headerColor: e.value.table.th.color,
|
|
354
354
|
headerBg: e.value.table.th.backgroundColor,
|
|
355
|
-
isFullscreen:
|
|
355
|
+
isFullscreen: _.value,
|
|
356
356
|
fullscreenParent: b.value,
|
|
357
357
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
358
358
|
} : {
|
|
@@ -381,10 +381,10 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
381
381
|
const gt = i(() => ee.value.map((t) => ({
|
|
382
382
|
...t,
|
|
383
383
|
name: t.display
|
|
384
|
-
}))), pt = i(() => e.value.style.chart.backgroundColor),
|
|
384
|
+
}))), pt = i(() => e.value.style.chart.backgroundColor), ft = i(() => e.value.style.chart.legend), yt = i(() => e.value.style.chart.title), { exportSvg: bt, getSvg: mt } = qt({
|
|
385
385
|
svg: q,
|
|
386
|
-
title:
|
|
387
|
-
legend:
|
|
386
|
+
title: yt,
|
|
387
|
+
legend: ft,
|
|
388
388
|
legendItems: gt,
|
|
389
389
|
backgroundColor: pt
|
|
390
390
|
});
|
|
@@ -402,16 +402,16 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
402
402
|
generateCsv: te,
|
|
403
403
|
generateImage: $e,
|
|
404
404
|
generateSvg: De,
|
|
405
|
-
toggleTable:
|
|
406
|
-
toggleTooltip:
|
|
405
|
+
toggleTable: Pe,
|
|
406
|
+
toggleTooltip: _e,
|
|
407
407
|
toggleAnnotator: le,
|
|
408
|
-
toggleFullscreen:
|
|
408
|
+
toggleFullscreen: Oe
|
|
409
409
|
}), (t, a) => (n(), c("div", {
|
|
410
410
|
ref_key: "galaxyChart",
|
|
411
411
|
ref: b,
|
|
412
|
-
class: G(`vue-data-ui-component vue-ui-galaxy ${
|
|
412
|
+
class: G(`vue-data-ui-component vue-ui-galaxy ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
|
|
413
413
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
414
|
-
id: `galaxy_${
|
|
414
|
+
id: `galaxy_${y.value}`,
|
|
415
415
|
onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
|
|
416
416
|
onMouseleave: a[3] || (a[3] = () => u(be)(!1))
|
|
417
417
|
}, [
|
|
@@ -422,14 +422,14 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
422
422
|
color: e.value.style.chart.color,
|
|
423
423
|
active: R.value,
|
|
424
424
|
onClose: le
|
|
425
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
425
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
426
426
|
lt.value ? (n(), c("div", {
|
|
427
427
|
key: 1,
|
|
428
428
|
ref_key: "noTitle",
|
|
429
429
|
ref: de,
|
|
430
430
|
class: "vue-data-ui-no-title-space",
|
|
431
431
|
style: "height:36px; width: 100%;background:transparent"
|
|
432
|
-
}, null, 512)) :
|
|
432
|
+
}, null, 512)) : d("", !0),
|
|
433
433
|
e.value.style.chart.title.text ? (n(), c("div", {
|
|
434
434
|
key: 2,
|
|
435
435
|
ref_key: "chartTitle",
|
|
@@ -449,9 +449,9 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}, null, 8, ["config"]))
|
|
452
|
-
], 512)) :
|
|
452
|
+
], 512)) : d("", !0),
|
|
453
453
|
k("div", {
|
|
454
|
-
id: `legend-top-${
|
|
454
|
+
id: `legend-top-${y.value}`
|
|
455
455
|
}, null, 8, Kt),
|
|
456
456
|
e.value.userOptions.show && ge.value && (u(me) || u(j)) ? (n(), T(u(Ke), {
|
|
457
457
|
ref_key: "userOptionsRef",
|
|
@@ -461,7 +461,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
461
461
|
color: e.value.style.chart.color,
|
|
462
462
|
isPrinting: u(ke),
|
|
463
463
|
isImaging: u(we),
|
|
464
|
-
uid:
|
|
464
|
+
uid: y.value,
|
|
465
465
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
466
466
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
467
467
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -470,7 +470,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
470
470
|
hasTable: e.value.userOptions.buttons.table,
|
|
471
471
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
472
472
|
isTooltip: p.value.showTooltip,
|
|
473
|
-
isFullscreen:
|
|
473
|
+
isFullscreen: _.value,
|
|
474
474
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
475
475
|
chartElement: b.value,
|
|
476
476
|
position: e.value.userOptions.position,
|
|
@@ -479,13 +479,13 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
479
479
|
callbacks: e.value.userOptions.callbacks,
|
|
480
480
|
printScale: e.value.userOptions.print.scale,
|
|
481
481
|
tableDialog: e.value.table.useDialog,
|
|
482
|
-
onToggleFullscreen:
|
|
482
|
+
onToggleFullscreen: Oe,
|
|
483
483
|
onGeneratePdf: u(Ce),
|
|
484
484
|
onGenerateCsv: te,
|
|
485
485
|
onGenerateImage: u($e),
|
|
486
486
|
onGenerateSvg: De,
|
|
487
|
-
onToggleTable:
|
|
488
|
-
onToggleTooltip:
|
|
487
|
+
onToggleTable: Pe,
|
|
488
|
+
onToggleTooltip: _e,
|
|
489
489
|
onToggleAnnotator: le,
|
|
490
490
|
style: W({
|
|
491
491
|
visibility: u(me) ? u(j) ? "visible" : "hidden" : "visible"
|
|
@@ -493,66 +493,73 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
493
493
|
}, Fe({ _: 2 }, [
|
|
494
494
|
t.$slots.menuIcon ? {
|
|
495
495
|
name: "menuIcon",
|
|
496
|
-
fn:
|
|
497
|
-
|
|
496
|
+
fn: v(({ isOpen: l, color: s }) => [
|
|
497
|
+
h(t.$slots, "menuIcon", I(D({ isOpen: l, color: s })), void 0, !0)
|
|
498
498
|
]),
|
|
499
499
|
key: "0"
|
|
500
500
|
} : void 0,
|
|
501
501
|
t.$slots.optionTooltip ? {
|
|
502
502
|
name: "optionTooltip",
|
|
503
|
-
fn:
|
|
504
|
-
|
|
503
|
+
fn: v(() => [
|
|
504
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
505
505
|
]),
|
|
506
506
|
key: "1"
|
|
507
507
|
} : void 0,
|
|
508
508
|
t.$slots.optionPdf ? {
|
|
509
509
|
name: "optionPdf",
|
|
510
|
-
fn:
|
|
511
|
-
|
|
510
|
+
fn: v(() => [
|
|
511
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
512
512
|
]),
|
|
513
513
|
key: "2"
|
|
514
514
|
} : void 0,
|
|
515
515
|
t.$slots.optionCsv ? {
|
|
516
516
|
name: "optionCsv",
|
|
517
|
-
fn:
|
|
518
|
-
|
|
517
|
+
fn: v(() => [
|
|
518
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
519
519
|
]),
|
|
520
520
|
key: "3"
|
|
521
521
|
} : void 0,
|
|
522
522
|
t.$slots.optionImg ? {
|
|
523
523
|
name: "optionImg",
|
|
524
|
-
fn:
|
|
525
|
-
|
|
524
|
+
fn: v(() => [
|
|
525
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
526
526
|
]),
|
|
527
527
|
key: "4"
|
|
528
528
|
} : void 0,
|
|
529
|
+
t.$slots.optionSvg ? {
|
|
530
|
+
name: "optionSvg",
|
|
531
|
+
fn: v(() => [
|
|
532
|
+
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
533
|
+
]),
|
|
534
|
+
key: "5"
|
|
535
|
+
} : void 0,
|
|
529
536
|
t.$slots.optionTable ? {
|
|
530
537
|
name: "optionTable",
|
|
531
|
-
fn:
|
|
532
|
-
|
|
538
|
+
fn: v(() => [
|
|
539
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
533
540
|
]),
|
|
534
|
-
key: "
|
|
541
|
+
key: "6"
|
|
535
542
|
} : void 0,
|
|
536
543
|
t.$slots.optionFullscreen ? {
|
|
537
544
|
name: "optionFullscreen",
|
|
538
|
-
fn:
|
|
539
|
-
|
|
545
|
+
fn: v(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
546
|
+
h(t.$slots, "optionFullscreen", I(D({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
540
547
|
]),
|
|
541
|
-
key: "
|
|
548
|
+
key: "7"
|
|
542
549
|
} : void 0,
|
|
543
550
|
t.$slots.optionAnnotator ? {
|
|
544
551
|
name: "optionAnnotator",
|
|
545
|
-
fn:
|
|
546
|
-
|
|
552
|
+
fn: v(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
553
|
+
h(t.$slots, "optionAnnotator", I(D({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
547
554
|
]),
|
|
548
|
-
key: "
|
|
555
|
+
key: "8"
|
|
549
556
|
} : void 0
|
|
550
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
557
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
551
558
|
(n(), c("svg", {
|
|
552
559
|
ref_key: "svgRef",
|
|
553
560
|
ref: q,
|
|
554
561
|
xmlns: u(Ft),
|
|
555
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
562
|
+
class: G({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
556
563
|
viewBox: C.value.viewBox,
|
|
557
564
|
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
558
565
|
}, [
|
|
@@ -567,11 +574,11 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
567
574
|
pointerEvents: "none"
|
|
568
575
|
}
|
|
569
576
|
}, [
|
|
570
|
-
|
|
571
|
-
], 8, el)) :
|
|
577
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
578
|
+
], 8, el)) : d("", !0),
|
|
572
579
|
k("defs", null, [
|
|
573
580
|
k("filter", {
|
|
574
|
-
id: `blur_${
|
|
581
|
+
id: `blur_${y.value}`,
|
|
575
582
|
x: "-50%",
|
|
576
583
|
y: "-50%",
|
|
577
584
|
width: "200%",
|
|
@@ -591,7 +598,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
591
598
|
stroke: e.value.style.chart.backgroundColor,
|
|
592
599
|
"stroke-width": K(l).border,
|
|
593
600
|
"stroke-linecap": "round"
|
|
594
|
-
}, null, 8, al)) :
|
|
601
|
+
}, null, 8, al)) : d("", !0),
|
|
595
602
|
l.value ? (n(), c("path", {
|
|
596
603
|
key: 1,
|
|
597
604
|
d: l.path,
|
|
@@ -599,11 +606,11 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
599
606
|
stroke: l.color,
|
|
600
607
|
"stroke-width": K(l).path,
|
|
601
608
|
"stroke-linecap": "round",
|
|
602
|
-
class: G(`${
|
|
603
|
-
}, null, 10, ol)) :
|
|
609
|
+
class: G(`${O.value && O.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
610
|
+
}, null, 10, ol)) : d("", !0),
|
|
604
611
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
|
|
605
612
|
key: 2,
|
|
606
|
-
filter: `url(#blur_${
|
|
613
|
+
filter: `url(#blur_${y.value})`
|
|
607
614
|
}, [
|
|
608
615
|
k("path", {
|
|
609
616
|
d: l.path,
|
|
@@ -611,9 +618,9 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
611
618
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
612
619
|
"stroke-width": K(l).blur,
|
|
613
620
|
"stroke-linecap": "round",
|
|
614
|
-
class: G(`vue-ui-galaxy-gradient ${
|
|
621
|
+
class: G(`vue-ui-galaxy-gradient ${O.value && O.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
615
622
|
}, null, 10, nl)
|
|
616
|
-
], 8, sl)) :
|
|
623
|
+
], 8, sl)) : d("", !0)
|
|
617
624
|
]))), 256)),
|
|
618
625
|
(n(!0), c(Ae, null, Ne(A.value, (l, s) => (n(), c("g", null, [
|
|
619
626
|
l.value ? (n(), c("path", {
|
|
@@ -623,30 +630,30 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
623
630
|
stroke: "transparent",
|
|
624
631
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
625
632
|
"stroke-linecap": "round",
|
|
626
|
-
onMouseenter: (r) =>
|
|
633
|
+
onMouseenter: (r) => ct({
|
|
627
634
|
datapoint: l,
|
|
628
635
|
seriesIndex: l.seriesIndex,
|
|
629
636
|
show: !0
|
|
630
637
|
}),
|
|
631
638
|
onMouseleave: (r) => it(l),
|
|
632
|
-
onClick: (r) =>
|
|
633
|
-
}, null, 40, ul)) :
|
|
639
|
+
onClick: (r) => vt(l)
|
|
640
|
+
}, null, 40, ul)) : d("", !0)
|
|
634
641
|
]))), 256)),
|
|
635
|
-
|
|
642
|
+
h(t.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
636
643
|
], 14, Zt)),
|
|
637
644
|
t.$slots.watermark ? (n(), c("div", rl, [
|
|
638
|
-
|
|
639
|
-
])) :
|
|
645
|
+
h(t.$slots, "watermark", I(D({ isPrinting: u(ke) || u(we) })), void 0, !0)
|
|
646
|
+
])) : d("", !0),
|
|
640
647
|
k("div", {
|
|
641
|
-
id: `legend-bottom-${
|
|
648
|
+
id: `legend-bottom-${y.value}`
|
|
642
649
|
}, null, 8, il),
|
|
643
650
|
he.value ? (n(), T($t, {
|
|
644
651
|
key: 5,
|
|
645
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
652
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
646
653
|
}, [
|
|
647
654
|
k("div", {
|
|
648
655
|
ref_key: "chartLegend",
|
|
649
|
-
ref:
|
|
656
|
+
ref: ve
|
|
650
657
|
}, [
|
|
651
658
|
e.value.style.chart.legend.show ? (n(), T(jt, {
|
|
652
659
|
key: `legend_${re.value}`,
|
|
@@ -654,26 +661,26 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
654
661
|
config: dt.value,
|
|
655
662
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
|
|
656
663
|
}, {
|
|
657
|
-
item:
|
|
658
|
-
u(Y) ?
|
|
664
|
+
item: v(({ legend: l, index: s }) => [
|
|
665
|
+
u(Y) ? d("", !0) : (n(), c("div", {
|
|
659
666
|
key: 0,
|
|
660
667
|
onClick: (r) => J(l),
|
|
661
|
-
style: W(`opacity:${
|
|
662
|
-
}, oe(l.display), 13,
|
|
668
|
+
style: W(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
669
|
+
}, oe(l.display), 13, vl))
|
|
663
670
|
]),
|
|
664
671
|
_: 1
|
|
665
|
-
}, 8, ["legendSet", "config"])) :
|
|
666
|
-
|
|
672
|
+
}, 8, ["legendSet", "config"])) : d("", !0),
|
|
673
|
+
h(t.$slots, "legend", { legend: ee.value }, void 0, !0)
|
|
667
674
|
], 512)
|
|
668
|
-
], 8, ["to"])) :
|
|
675
|
+
], 8, ["to"])) : d("", !0),
|
|
669
676
|
t.$slots.source ? (n(), c("div", {
|
|
670
677
|
key: 6,
|
|
671
678
|
ref_key: "source",
|
|
672
|
-
ref:
|
|
679
|
+
ref: ce,
|
|
673
680
|
dir: "auto"
|
|
674
681
|
}, [
|
|
675
|
-
|
|
676
|
-
], 512)) :
|
|
682
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
683
|
+
], 512)) : d("", !0),
|
|
677
684
|
ae(u(Ye), {
|
|
678
685
|
show: p.value.showTooltip && H.value,
|
|
679
686
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -687,18 +694,18 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
687
694
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
688
695
|
parent: b.value,
|
|
689
696
|
content: U.value,
|
|
690
|
-
isFullscreen:
|
|
697
|
+
isFullscreen: _.value,
|
|
691
698
|
isCustom: u(Ge)(e.value.style.chart.tooltip.customFormat),
|
|
692
699
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
693
700
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
694
701
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
695
702
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
696
703
|
}, {
|
|
697
|
-
"tooltip-before":
|
|
698
|
-
|
|
704
|
+
"tooltip-before": v(() => [
|
|
705
|
+
h(t.$slots, "tooltip-before", I(D({ ...Z.value })), void 0, !0)
|
|
699
706
|
]),
|
|
700
|
-
"tooltip-after":
|
|
701
|
-
|
|
707
|
+
"tooltip-after": v(() => [
|
|
708
|
+
h(t.$slots, "tooltip-after", I(D({ ...Z.value })), void 0, !0)
|
|
702
709
|
]),
|
|
703
710
|
_: 3
|
|
704
711
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -707,7 +714,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
707
714
|
ref: F,
|
|
708
715
|
onClose: Ie
|
|
709
716
|
}), Fe({
|
|
710
|
-
content:
|
|
717
|
+
content: v(() => [
|
|
711
718
|
(n(), T(u(Qe), {
|
|
712
719
|
key: `table_${ue.value}`,
|
|
713
720
|
colNames: M.value.colNames,
|
|
@@ -718,13 +725,13 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
718
725
|
withCloseButton: !e.value.table.useDialog,
|
|
719
726
|
onClose: Ie
|
|
720
727
|
}, {
|
|
721
|
-
th:
|
|
728
|
+
th: v(({ th: l }) => [
|
|
722
729
|
k("div", {
|
|
723
730
|
innerHTML: l,
|
|
724
731
|
style: { display: "flex", "align-items": "center" }
|
|
725
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, cl)
|
|
726
733
|
]),
|
|
727
|
-
td:
|
|
734
|
+
td: v(({ td: l }) => [
|
|
728
735
|
Be(oe(l.name || l), 1)
|
|
729
736
|
]),
|
|
730
737
|
_: 1
|
|
@@ -734,14 +741,14 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
734
741
|
}, [
|
|
735
742
|
e.value.table.useDialog ? {
|
|
736
743
|
name: "title",
|
|
737
|
-
fn:
|
|
744
|
+
fn: v(() => [
|
|
738
745
|
Be(oe(N.value.title), 1)
|
|
739
746
|
]),
|
|
740
747
|
key: "0"
|
|
741
748
|
} : void 0,
|
|
742
749
|
e.value.table.useDialog ? {
|
|
743
750
|
name: "actions",
|
|
744
|
-
fn:
|
|
751
|
+
fn: v(() => [
|
|
745
752
|
k("button", {
|
|
746
753
|
tabindex: "0",
|
|
747
754
|
class: "vue-ui-user-options-button",
|
|
@@ -755,11 +762,11 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
755
762
|
]),
|
|
756
763
|
key: "1"
|
|
757
764
|
} : void 0
|
|
758
|
-
]), 1040)) :
|
|
759
|
-
u(Y) ? (n(), T(Wt, { key: 8 })) :
|
|
765
|
+
]), 1040)) : d("", !0),
|
|
766
|
+
u(Y) ? (n(), T(Wt, { key: 8 })) : d("", !0)
|
|
760
767
|
], 46, Jt));
|
|
761
768
|
}
|
|
762
|
-
},
|
|
769
|
+
}, Ol = /* @__PURE__ */ Qt(dl, [["__scopeId", "data-v-1ff6df76"]]);
|
|
763
770
|
export {
|
|
764
|
-
|
|
771
|
+
Ol as default
|
|
765
772
|
};
|