vue-data-ui 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/Slicer-DoGlWyq_.js +596 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
- package/dist/Tooltip-DvtYLrX2.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
- package/package.json +4 -2
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as
|
|
2
|
-
import { u as mt, c as Ve, t as kt, o as wt, f as Me, g as Ct, a as $t, p as H, b as xt, d as Tt, G as Ee, e as _t, M as
|
|
3
|
-
import { t as Lt, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Bt } from "./usePrinter-
|
|
6
|
-
import { u as ze } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as Fe, renderList as Ae, Teleport as ft, toDisplayString as L, resolveDynamicComponent as yt, mergeProps as bt, createTextVNode as Ne, nextTick as Be } from "vue";
|
|
2
|
+
import { u as mt, c as Ve, t as kt, o as wt, f as Me, g as Ct, a as $t, p as H, b as xt, d as Tt, G as Ee, e as _t, M as St, i as _, X as Ot, k as Re, y as We, v as Pt, w as It, z as Dt } from "./index-C0wrF8hm.js";
|
|
3
|
+
import { t as Lt, u as Ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as At, B as Nt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Bt } from "./usePrinter-C2jvouU0.js";
|
|
6
|
+
import { u as ze } from "./useNestedProp-Bg2FlIgI.js";
|
|
7
7
|
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Et from "./img-
|
|
10
|
-
import Rt from "./Title-
|
|
11
|
-
import Wt from "./Legend-
|
|
9
|
+
import Et from "./img-DLgjML7h.js";
|
|
10
|
+
import Rt from "./Title-DbQthJAs.js";
|
|
11
|
+
import Wt from "./Legend-D7l8BJ7z.js";
|
|
12
12
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Yt = ["id"], jt = ["stdDeviation"], qt = ["d", "stroke", "stroke-width"], Jt = ["d", "stroke", "stroke-width"], Kt = ["filter"], Qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], el = {
|
|
14
14
|
key: 4,
|
|
@@ -31,7 +31,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
33
|
setup(Ge, { expose: He, emit: Ue }) {
|
|
34
|
-
const Xe = x(() => import("./Tooltip-
|
|
34
|
+
const Xe = x(() => import("./Tooltip-DvtYLrX2.js")), Ye = x(() => import("./BaseIcon-D_BjQBAR.js")), je = x(() => import("./vue-ui-accordion-3JuSLBjV.js")), qe = x(() => import("./DataTable-IycMkaTU.js")), Je = x(() => import("./PenAndPaper-BdzDJYnr.js")), Ke = x(() => import("./UserOptions-Dd5XOrwq.js")), Qe = x(() => import("./PackageVersion-BtfT0hV9.js")), Ze = x(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_galaxy: et } = mt(), w = Ge, y = o(Ve()), b = o(null), U = o(!1), X = o(""), S = o(null), ae = o(0), oe = o(0), se = o(0), ue = o(0), ne = o(null), re = o(null), ie = o(null), ce = o(null), F = o(null), V = o(null), ve = o(!1), A = o(null), Y = o(null), de = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: he } = At({
|
|
35
35
|
...pt(w),
|
|
36
36
|
FINAL_CONFIG: e,
|
|
37
37
|
prepareConfig: J,
|
|
@@ -86,7 +86,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
86
86
|
});
|
|
87
87
|
}), e.value.responsive) {
|
|
88
88
|
const t = Lt(() => {
|
|
89
|
-
const { width: a, height: l } =
|
|
89
|
+
const { width: a, height: l } = Ft({
|
|
90
90
|
chart: b.value,
|
|
91
91
|
title: e.value.style.chart.title.text ? ne.value : null,
|
|
92
92
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
@@ -97,7 +97,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
97
97
|
M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
F.value && (V.value && F.value.unobserve(V.value), F.value.disconnect()), F.value = new ResizeObserver(t), V.value = b.value.parentNode, F.value.observe(V.value);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
const { userOptionsVisible: q, setUserOptionsVisibility: fe, keepUserOptionState: ye } = Vt({ config: e.value }), { svgRef: be } = Mt({ config: e.value.style.chart.title });
|
|
@@ -133,7 +133,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
133
133
|
viewBox: `${at.value} ${ot.value} ${M.value} ${E.value}`
|
|
134
134
|
})), $e = Ue, f = o([]);
|
|
135
135
|
function K(t) {
|
|
136
|
-
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend",
|
|
136
|
+
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend", N.value.map((a) => ({
|
|
137
137
|
name: a.name,
|
|
138
138
|
color: a.color,
|
|
139
139
|
value: a.value
|
|
@@ -158,7 +158,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
158
158
|
}
|
|
159
159
|
const m = i(() => O.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), xe = o(190), Te = i(() => O.value.filter((t) => !f.value.includes(t.id))), ut = i(
|
|
160
160
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
161
|
-
), nt = i(() =>
|
|
161
|
+
), nt = i(() => St({
|
|
162
162
|
maxPoints: xe.value,
|
|
163
163
|
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
164
164
|
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
@@ -168,7 +168,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
168
168
|
boxWidth: C.value.width,
|
|
169
169
|
boxHeight: C.value.height,
|
|
170
170
|
padding: ut.value
|
|
171
|
-
})),
|
|
171
|
+
})), N = i(() => {
|
|
172
172
|
const t = [];
|
|
173
173
|
for (let a = 0; a < Te.value.length; a += 1) {
|
|
174
174
|
const l = Te.value[a], s = l.value / m.value * xe.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
@@ -183,20 +183,20 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
183
183
|
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
184
184
|
});
|
|
185
185
|
function Q(t) {
|
|
186
|
-
const a = Math.min(M.value, E.value), l =
|
|
186
|
+
const a = Math.min(M.value, E.value), l = S.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, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
187
187
|
return {
|
|
188
188
|
border: s / 180 * a,
|
|
189
189
|
path: r / 180 * a,
|
|
190
190
|
blur: h / 180 * a
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const P = o(!1);
|
|
194
194
|
function _e(t) {
|
|
195
|
-
|
|
195
|
+
P.value = t, ae.value += 1;
|
|
196
196
|
}
|
|
197
197
|
const Z = o(null);
|
|
198
198
|
function rt(t) {
|
|
199
|
-
U.value = !1,
|
|
199
|
+
U.value = !1, S.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
200
200
|
}
|
|
201
201
|
function it(t) {
|
|
202
202
|
$e("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
@@ -207,7 +207,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
207
207
|
seriesIndex: l,
|
|
208
208
|
series: O.value,
|
|
209
209
|
config: e.value
|
|
210
|
-
}, U.value = s,
|
|
210
|
+
}, U.value = s, S.value = t.id;
|
|
211
211
|
let r = "";
|
|
212
212
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
213
213
|
We(h) && Dt(() => h({
|
|
@@ -240,7 +240,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
240
240
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
241
241
|
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const Se = i(() => O.value.map((t, a) => ({
|
|
244
244
|
...t,
|
|
245
245
|
proportion: (t.value || 0) / he.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
246
246
|
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
@@ -255,17 +255,17 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
255
255
|
paddingBottom: 12,
|
|
256
256
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
257
257
|
})), $ = i(() => {
|
|
258
|
-
const t =
|
|
258
|
+
const t = N.value.map((l) => ({
|
|
259
259
|
name: l.name,
|
|
260
260
|
color: l.color
|
|
261
|
-
})), a =
|
|
261
|
+
})), a = N.value.map((l) => l.value);
|
|
262
262
|
return { head: t, body: a };
|
|
263
263
|
});
|
|
264
264
|
function ee(t = null) {
|
|
265
265
|
Be(() => {
|
|
266
266
|
const a = $.value.head.map((r, h) => [[
|
|
267
267
|
r.name
|
|
268
|
-
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s =
|
|
268
|
+
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Pt(l);
|
|
269
269
|
t ? t(s) : It({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
270
270
|
});
|
|
271
271
|
}
|
|
@@ -315,7 +315,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
315
315
|
function Oe() {
|
|
316
316
|
g.value.showTable = !g.value.showTable;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Pe() {
|
|
319
319
|
g.value.showTooltip = !g.value.showTooltip;
|
|
320
320
|
}
|
|
321
321
|
const W = o(!1);
|
|
@@ -344,7 +344,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
344
344
|
color: e.value.table.th.color,
|
|
345
345
|
headerColor: e.value.table.th.color,
|
|
346
346
|
headerBg: e.value.table.th.backgroundColor,
|
|
347
|
-
isFullscreen:
|
|
347
|
+
isFullscreen: P.value,
|
|
348
348
|
fullscreenParent: b.value,
|
|
349
349
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
350
350
|
} : {
|
|
@@ -365,7 +365,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
365
365
|
};
|
|
366
366
|
});
|
|
367
367
|
De(() => g.value.showTable, (t) => {
|
|
368
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
368
|
+
e.value.table.show || (t && e.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
369
369
|
});
|
|
370
370
|
function Ie() {
|
|
371
371
|
g.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
@@ -377,13 +377,13 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
377
377
|
generateCsv: ee,
|
|
378
378
|
generateImage: Ce,
|
|
379
379
|
toggleTable: Oe,
|
|
380
|
-
toggleTooltip:
|
|
380
|
+
toggleTooltip: Pe,
|
|
381
381
|
toggleAnnotator: te,
|
|
382
382
|
toggleFullscreen: _e
|
|
383
383
|
}), (t, a) => (n(), c("div", {
|
|
384
384
|
ref_key: "galaxyChart",
|
|
385
385
|
ref: b,
|
|
386
|
-
class: G(`vue-ui-galaxy ${
|
|
386
|
+
class: G(`vue-ui-galaxy ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
|
|
387
387
|
style: z(`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}`),
|
|
388
388
|
id: `galaxy_${y.value}`,
|
|
389
389
|
onMouseenter: a[2] || (a[2] = () => u(fe)(!0)),
|
|
@@ -443,7 +443,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
443
443
|
hasTable: e.value.userOptions.buttons.table,
|
|
444
444
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
445
445
|
isTooltip: g.value.showTooltip,
|
|
446
|
-
isFullscreen:
|
|
446
|
+
isFullscreen: P.value,
|
|
447
447
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
448
448
|
chartElement: b.value,
|
|
449
449
|
position: e.value.userOptions.position,
|
|
@@ -457,7 +457,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
457
457
|
onGenerateCsv: ee,
|
|
458
458
|
onGenerateImage: u(Ce),
|
|
459
459
|
onToggleTable: Oe,
|
|
460
|
-
onToggleTooltip:
|
|
460
|
+
onToggleTooltip: Pe,
|
|
461
461
|
onToggleAnnotator: te,
|
|
462
462
|
style: z({
|
|
463
463
|
visibility: u(ye) ? u(q) ? "visible" : "hidden" : "visible"
|
|
@@ -524,7 +524,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
524
524
|
ref_key: "svgRef",
|
|
525
525
|
ref: be,
|
|
526
526
|
xmlns: u(Ot),
|
|
527
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
527
|
+
class: G({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
528
528
|
viewBox: C.value.viewBox,
|
|
529
529
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
530
530
|
}, [
|
|
@@ -555,7 +555,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
555
555
|
}, null, 8, jt)
|
|
556
556
|
], 8, Yt)
|
|
557
557
|
]),
|
|
558
|
-
(n(!0), c(
|
|
558
|
+
(n(!0), c(Fe, null, Ae(N.value, (l) => (n(), c("g", null, [
|
|
559
559
|
l.value ? (n(), c("path", {
|
|
560
560
|
key: 0,
|
|
561
561
|
d: l.path,
|
|
@@ -571,7 +571,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
571
571
|
stroke: l.color,
|
|
572
572
|
"stroke-width": Q(l).path,
|
|
573
573
|
"stroke-linecap": "round",
|
|
574
|
-
class: G(`${
|
|
574
|
+
class: G(`${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
575
575
|
}, null, 10, Jt)) : v("", !0),
|
|
576
576
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
|
|
577
577
|
key: 2,
|
|
@@ -583,11 +583,11 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
583
583
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
584
584
|
"stroke-width": Q(l).blur,
|
|
585
585
|
"stroke-linecap": "round",
|
|
586
|
-
class: G(`vue-ui-galaxy-gradient ${
|
|
586
|
+
class: G(`vue-ui-galaxy-gradient ${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
587
587
|
}, null, 10, Qt)
|
|
588
588
|
], 8, Kt)) : v("", !0)
|
|
589
589
|
]))), 256)),
|
|
590
|
-
(n(!0), c(
|
|
590
|
+
(n(!0), c(Fe, null, Ae(N.value, (l, s) => (n(), c("g", null, [
|
|
591
591
|
l.value ? (n(), c("path", {
|
|
592
592
|
key: 0,
|
|
593
593
|
d: l.path,
|
|
@@ -622,7 +622,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
622
622
|
}, [
|
|
623
623
|
e.value.style.chart.legend.show ? (n(), T(Wt, {
|
|
624
624
|
key: `legend_${ue.value}`,
|
|
625
|
-
legendSet:
|
|
625
|
+
legendSet: Se.value,
|
|
626
626
|
config: vt.value,
|
|
627
627
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => K(l))
|
|
628
628
|
}, {
|
|
@@ -649,7 +649,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
649
649
|
]),
|
|
650
650
|
_: 1
|
|
651
651
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
652
|
-
p(t.$slots, "legend", { legend:
|
|
652
|
+
p(t.$slots, "legend", { legend: Se.value }, void 0, !0)
|
|
653
653
|
], 512)
|
|
654
654
|
], 8, ["to"])) : v("", !0),
|
|
655
655
|
t.$slots.source ? (n(), c("div", {
|
|
@@ -673,10 +673,12 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
673
673
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
674
674
|
parent: b.value,
|
|
675
675
|
content: X.value,
|
|
676
|
-
isFullscreen:
|
|
676
|
+
isFullscreen: P.value,
|
|
677
677
|
isCustom: u(We)(e.value.style.chart.tooltip.customFormat),
|
|
678
678
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
679
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
679
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
680
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
681
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
680
682
|
}, {
|
|
681
683
|
"tooltip-before": d(() => [
|
|
682
684
|
p(t.$slots, "tooltip-before", I(D({ ...Z.value })), void 0, !0)
|
|
@@ -685,10 +687,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
685
687
|
p(t.$slots, "tooltip-after", I(D({ ...Z.value })), void 0, !0)
|
|
686
688
|
]),
|
|
687
689
|
_: 3
|
|
688
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
689
|
-
de.value ? (n(), T(yt(B.value.component), bt({ key: 7 }, B.value.props, {
|
|
690
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
691
|
+
de.value && e.value.userOptions.buttons.table ? (n(), T(yt(B.value.component), bt({ key: 7 }, B.value.props, {
|
|
690
692
|
ref_key: "tableUnit",
|
|
691
|
-
ref:
|
|
693
|
+
ref: A,
|
|
692
694
|
onClose: Ie
|
|
693
695
|
}), Le({
|
|
694
696
|
content: d(() => [
|
|
@@ -709,7 +711,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
709
711
|
}, null, 8, al)
|
|
710
712
|
]),
|
|
711
713
|
td: d(({ td: l }) => [
|
|
712
|
-
|
|
714
|
+
Ne(L(l.name || l), 1)
|
|
713
715
|
]),
|
|
714
716
|
_: 1
|
|
715
717
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -719,7 +721,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
719
721
|
e.value.table.useDialog ? {
|
|
720
722
|
name: "title",
|
|
721
723
|
fn: d(() => [
|
|
722
|
-
|
|
724
|
+
Ne(L(B.value.title), 1)
|
|
723
725
|
]),
|
|
724
726
|
key: "0"
|
|
725
727
|
} : void 0,
|
|
@@ -740,10 +742,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
740
742
|
key: "1"
|
|
741
743
|
} : void 0
|
|
742
744
|
]), 1040)) : v("", !0),
|
|
743
|
-
u(j) ? (n(), T(
|
|
745
|
+
u(j) ? (n(), T(Nt, { key: 8 })) : v("", !0)
|
|
744
746
|
], 46, Gt));
|
|
745
747
|
}
|
|
746
|
-
}, yl = /* @__PURE__ */ zt(ol, [["__scopeId", "data-v-
|
|
748
|
+
}, yl = /* @__PURE__ */ zt(ol, [["__scopeId", "data-v-813f1461"]]);
|
|
747
749
|
export {
|
|
748
750
|
yl as default
|
|
749
751
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as Q, computed as h, ref as f, toRefs as Je, watch as ee, shallowRef as ze, onMounted as Ke, onBeforeUnmount as Qe, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as te, normalizeClass as Fe, createBlock as j, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as R, createSlots as et, renderSlot as S, normalizeProps as B, guardReactiveProps as U, createVNode as tt, Fragment as k, renderList as x, mergeProps as E, nextTick as at } from "vue";
|
|
2
|
-
import { u as lt, c as st, t as rt, a as ot, p as Ae, b as ut, d as nt, o as Ce, e as it, f as W, g as Oe, m as ae, N as A, O as ct, h as vt, X as ht, s as le, I as dt, r as ft, k as se, i as re, E as oe } from "./index-
|
|
2
|
+
import { u as lt, c as st, t as rt, a as ot, p as Ae, b as ut, d as nt, o as Ce, e as it, f as W, g as Oe, m as ae, N as A, O as ct, h as vt, X as ht, s as le, I as dt, r as ft, k as se, i as re, E as oe } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as yt, u as mt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ne } from "./useNestedProp-
|
|
5
|
-
import { u as gt } from "./usePrinter-
|
|
4
|
+
import { u as Ne } from "./useNestedProp-Bg2FlIgI.js";
|
|
5
|
+
import { u as gt } from "./usePrinter-C2jvouU0.js";
|
|
6
6
|
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import bt from "./Title-
|
|
9
|
-
import _t from "./img-
|
|
8
|
+
import bt from "./Title-DbQthJAs.js";
|
|
9
|
+
import _t from "./img-DLgjML7h.js";
|
|
10
10
|
import { u as wt, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
11
|
-
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-
|
|
11
|
+
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js";
|
|
12
12
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "height"], Ot = ["id"], Nt = ["stop-color"], Mt = ["stop-color"], Pt = ["stop-color"], It = ["id"], Xt = ["stdDeviation"], Rt = { key: 1 }, Yt = ["d", "fill", "stroke"], Et = ["d", "fill", "stroke"], Lt = ["d", "fill"], Tt = ["id", "d"], Gt = ["fill", "font-size", "font-weight"], jt = ["href", "startOffset"], Bt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Ut = ["d", "filter"], Wt = ["stroke", "stroke-width"], Dt = ["stroke", "stroke-width"], Vt = ["stroke", "stroke-width"], Ht = ["stroke", "stroke-width"], qt = { key: 8 }, Zt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Jt = ["x", "y", "font-size", "font-weight", "fill"], Kt = { key: 0 }, Qt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ta = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], aa = { key: 1 }, la = ["d", "fill", "stroke", "stroke-width"], sa = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ra = ["x", "y", "font-size", "fill"], oa = {
|
|
14
14
|
key: 4,
|
|
@@ -30,7 +30,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(D, { expose: Me }) {
|
|
33
|
-
const Pe = Q(() => import("./PenAndPaper-
|
|
33
|
+
const Pe = Q(() => import("./PenAndPaper-BdzDJYnr.js")), Ie = Q(() => import("./UserOptions-Dd5XOrwq.js")), Xe = Q(() => import("./PackageVersion-BtfT0hV9.js")), { vue_ui_gauge: Re } = lt(), m = D, Ye = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), w = f(st()), Ee = f(null), ue = f(0), C = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(null), he = f(0), e = f(q()), { loading: de, FINAL_DATASET: $, manualLoading: M } = wt({
|
|
34
34
|
...Je(m),
|
|
35
35
|
FINAL_CONFIG: e,
|
|
36
36
|
prepareConfig: q,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as V, ref as k, useSlots as $, onMounted as y, computed as i, toRefs as D, watch as F, createElementBlock as a, openBlock as o, createBlock as I, createCommentVNode as r, normalizeStyle as M, createVNode as S, unref as n, createElementVNode as t, Fragment as C, toDisplayString as x } from "vue";
|
|
2
|
-
import { u as U, c as P, f as E, t as O, k as w, i as b } from "./index-
|
|
3
|
-
import { u as T } from "./useNestedProp-
|
|
2
|
+
import { u as U, c as P, f as E, t as O, k as w, i as b } from "./index-C0wrF8hm.js";
|
|
3
|
+
import { u as T } from "./useNestedProp-Bg2FlIgI.js";
|
|
4
4
|
import { u as j, B as R } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const H = { class: "vue-ui-gizmo-wrapper" }, J = ["viewBox", "width"], K = { key: 0 }, Q = ["id"], W = ["stop-color"], X = ["stop-color"], Y = ["stroke"], Z = ["stroke"], ee = ["width", "fill"], te = ["fill"], oe = { key: 0 }, ae = ["id"], se = ["stroke"], re = ["stroke", "stroke-dasharray", "stroke-dashoffset"], le = ["filter"], ne = ["stroke", "stroke-dasharray", "stroke-dashoffset"], ie = ["fill"], ue = {
|
|
@@ -17,7 +17,7 @@ const H = { class: "vue-ui-gizmo-wrapper" }, J = ["viewBox", "width"], K = { key
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
setup(z) {
|
|
20
|
-
const A = V(() => import("./PackageVersion-
|
|
20
|
+
const A = V(() => import("./PackageVersion-BtfT0hV9.js")), { vue_ui_gizmo: G } = U(), s = z, u = k(P()), L = $();
|
|
21
21
|
y(() => {
|
|
22
22
|
g();
|
|
23
23
|
}), y(() => {
|