vue-data-ui 3.16.5 → 3.17.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 +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.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-geo.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-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-stackline.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/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { watchEffect as pt, nextTick as xe, useCssVars as Ul, defineAsyncComponent as be, computed as f, ref as v, shallowRef as Gl, toRefs as Wl, watch as Be, onBeforeUnmount as qt, onMounted as Kl, reactive as jt, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as
|
|
2
|
-
import { j as yt, t as Zt, o as el, q as tl, ao as
|
|
1
|
+
import { watchEffect as pt, nextTick as xe, useCssVars as Ul, defineAsyncComponent as be, computed as f, ref as v, shallowRef as Gl, toRefs as Wl, watch as Be, onBeforeUnmount as qt, onMounted as Kl, reactive as jt, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as Me, createElementVNode as p, toDisplayString as I, createBlock as me, createCommentVNode as g, unref as n, withCtx as k, renderSlot as b, normalizeProps as N, guardReactiveProps as F, createSlots as Jt, createVNode as Ue, Fragment as O, renderList as U, withDirectives as Qt, createTextVNode as dt, vShow as Yl, resolveDynamicComponent as ql, mergeProps as jl, withKeys as Jl } from "vue";
|
|
2
|
+
import { j as yt, t as Zt, o as el, q as tl, ao as Ne, r as Ql, l as q, X as Zl, W as Ge, k as le, K as ae, aB as ea, a0 as ta, a1 as la, T as aa, U as oa } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as We, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ua } from "./useConfig-
|
|
4
|
+
import { u as ua } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as na } from "./usePrinter-CEpYU3r5.js";
|
|
6
6
|
import { u as ia, B as ra } from "./BaseScanner-BhhkKVoj.js";
|
|
7
7
|
import { u as va } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -15,7 +15,7 @@ import { u as ha } from "./useChartAccessibility-9icAAmYg.js";
|
|
|
15
15
|
import fa from "./img-LXxMLmCg.js";
|
|
16
16
|
import pa from "./Title-BeMKE1cj.js";
|
|
17
17
|
import ga from "./vue_ui_heatmap-C9u993qE.js";
|
|
18
|
-
import ba from "./vue-ui-accordion-
|
|
18
|
+
import ba from "./vue-ui-accordion-CnDW2UQL.js";
|
|
19
19
|
import { A as ma } from "./A11yDataTable-KcVAX2cP.js";
|
|
20
20
|
import { _ as xa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
21
|
function ft({
|
|
@@ -24,7 +24,7 @@ function ft({
|
|
|
24
24
|
attr: oe,
|
|
25
25
|
earlyReturn: J = !1,
|
|
26
26
|
retryFrames: se = 12,
|
|
27
|
-
alsoAfterFontsReady:
|
|
27
|
+
alsoAfterFontsReady: R = !0
|
|
28
28
|
}) {
|
|
29
29
|
if (J) return;
|
|
30
30
|
const W = (z) => {
|
|
@@ -32,14 +32,14 @@ function ft({
|
|
|
32
32
|
let S;
|
|
33
33
|
if (typeof z.getBBox == "function")
|
|
34
34
|
try {
|
|
35
|
-
const
|
|
36
|
-
S = oe === "width" ?
|
|
35
|
+
const P = z.getBBox();
|
|
36
|
+
S = oe === "width" ? P.width : P.height;
|
|
37
37
|
} catch {
|
|
38
38
|
}
|
|
39
39
|
if (typeof S != "number" || Number.isNaN(S))
|
|
40
40
|
try {
|
|
41
|
-
const
|
|
42
|
-
S = oe === "width" ?
|
|
41
|
+
const P = z.getBoundingClientRect();
|
|
42
|
+
S = oe === "width" ? P.width : P.height;
|
|
43
43
|
} catch {
|
|
44
44
|
S = void 0;
|
|
45
45
|
}
|
|
@@ -48,22 +48,22 @@ function ft({
|
|
|
48
48
|
pt((z) => {
|
|
49
49
|
const S = h.value;
|
|
50
50
|
if (!S) return;
|
|
51
|
-
let
|
|
51
|
+
let P = !1;
|
|
52
52
|
(async () => {
|
|
53
53
|
await xe();
|
|
54
54
|
for (let T = 0; T < se; T += 1) {
|
|
55
|
-
if (
|
|
55
|
+
if (P) return;
|
|
56
56
|
await new Promise((K) => requestAnimationFrame(K));
|
|
57
57
|
const X = h.value;
|
|
58
58
|
if (!X) return;
|
|
59
59
|
W(X);
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
61
|
+
if (R && typeof document < "u" && document.fonts && document.fonts.ready) {
|
|
62
62
|
try {
|
|
63
63
|
await document.fonts.ready;
|
|
64
64
|
} catch {
|
|
65
65
|
}
|
|
66
|
-
!
|
|
66
|
+
!P && h.value && W(h.value);
|
|
67
67
|
}
|
|
68
68
|
})();
|
|
69
69
|
const ue = new MutationObserver(() => {
|
|
@@ -87,7 +87,7 @@ function ft({
|
|
|
87
87
|
}), A.observe(T);
|
|
88
88
|
}
|
|
89
89
|
z(() => {
|
|
90
|
-
|
|
90
|
+
P = !0, ue.disconnect(), A && A.disconnect();
|
|
91
91
|
});
|
|
92
92
|
}, { flush: "post" });
|
|
93
93
|
}
|
|
@@ -104,21 +104,21 @@ function ol(h, {
|
|
|
104
104
|
cellHeight: oe,
|
|
105
105
|
maxFontSize: J,
|
|
106
106
|
minFontSize: se,
|
|
107
|
-
index:
|
|
107
|
+
index: R,
|
|
108
108
|
reportRotation: W,
|
|
109
109
|
reportHide: z,
|
|
110
110
|
rotateAll: S,
|
|
111
|
-
hideAll:
|
|
111
|
+
hideAll: P
|
|
112
112
|
}) {
|
|
113
113
|
h.removeAttribute("transform"), h.removeAttribute("visibility");
|
|
114
114
|
let fe = !1, ue = !1;
|
|
115
115
|
h.setAttribute("font-size", J);
|
|
116
116
|
const A = h.getComputedTextLength();
|
|
117
117
|
if (A <= G)
|
|
118
|
-
W(
|
|
118
|
+
W(R, !1), z(R, !1);
|
|
119
119
|
else {
|
|
120
120
|
const T = Math.floor(J * G / A);
|
|
121
|
-
T >= se ? (h.setAttribute("font-size", T), W(
|
|
121
|
+
T >= se ? (h.setAttribute("font-size", T), W(R, !1), z(R, !1)) : (W(R, !0), z(R, !1), fe = !0);
|
|
122
122
|
}
|
|
123
123
|
if (S && (fe = !0), fe) {
|
|
124
124
|
h.setAttribute("font-size", J);
|
|
@@ -126,13 +126,13 @@ function ol(h, {
|
|
|
126
126
|
h.setAttribute("transform", `rotate(-90 ${X} ${K})`);
|
|
127
127
|
const M = h.getBBox().width;
|
|
128
128
|
if (M <= oe)
|
|
129
|
-
z(
|
|
129
|
+
z(R, !1);
|
|
130
130
|
else {
|
|
131
131
|
const ne = Math.floor(J * oe / M);
|
|
132
|
-
ne >= se ? (h.setAttribute("font-size", ne), z(
|
|
132
|
+
ne >= se ? (h.setAttribute("font-size", ne), z(R, !1)) : (ue = !0, z(R, !0));
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
(
|
|
135
|
+
(P || ue) && h.setAttribute("visibility", "hidden");
|
|
136
136
|
}
|
|
137
137
|
const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], La = ["x", "y", "width", "height"], Sa = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ta = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], $a = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], za = ["data-a11y-cell-id", "x", "y", "width", "height", "fill", "stroke", "stroke-width", "aria-label", "onMouseover", "onMouseout", "onClick"], _a = ["font-size", "font-weight", "fill", "x", "y"], Ia = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Oa = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ma = ["font-size", "fill", "x", "y", "font-weight"], Na = ["font-size", "fill", "x", "y", "font-weight"], Fa = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ra = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Pa = { key: 6 }, Da = ["x", "y", "width", "height", "stroke", "stroke-width"], Ha = { key: 7 }, Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Xa = { class: "vue-ui-heatmap-legend-gauge-right" }, Ba = ["data-value"], Ua = { class: "vue-ui-heatmap-gauge-indicator-value" }, Ga = {
|
|
138
138
|
key: 1,
|
|
@@ -161,22 +161,22 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
161
161
|
emits: ["selectDatapoint", "copyAlt"],
|
|
162
162
|
setup(h, { expose: G, emit: oe }) {
|
|
163
163
|
Ul((t) => ({
|
|
164
|
-
|
|
164
|
+
v1fe533d1: t.tdo
|
|
165
165
|
}));
|
|
166
|
-
const J = be(() => import("./Tooltip-
|
|
166
|
+
const J = be(() => import("./Tooltip-C8KGyqQk.js")), se = be(() => import("./BaseIcon-Cb3zzG6s.js")), R = be(() => import("./PenAndPaper-Ct3qJ4lA.js")), W = be(() => import("./UserOptions-rW2fRf3V.js")), z = be(() => import("./PackageVersion-B3kmPxTR.js")), S = be(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_heatmap: P } = ua(), { isThemeValid: fe, warnInvalidTheme: ue } = ca(), A = h, T = oe, X = f({
|
|
167
167
|
get() {
|
|
168
168
|
return !!A.dataset && A.dataset.length;
|
|
169
169
|
},
|
|
170
170
|
set(t) {
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
|
-
}), K = v(yt()), M = v(null), ne = v(!1), Ke = v(""), we = v(void 0),
|
|
173
|
+
}), K = v(yt()), M = v(null), ne = v(!1), Ke = v(""), we = v(void 0), D = v(null), gt = v(0), bt = v(null), mt = v(0), sl = v(null), ke = v(null), Ye = v(null), Fe = v(!1), Re = v(!1), xt = v(null), wt = v(null), ul = v(null), kt = v(null), nl = v(null), qe = v(null), je = v(null), il = v(null), Ct = v(null), pe = Gl(null), ie = v(null), Pe = v(null), At = v({ x: 0, y: 0 }), Je = v("pointer"), De = v(!1), e = v(et()), He = f(() => e.value.userOptions.useCursorPointer);
|
|
174
174
|
function rl() {
|
|
175
175
|
const t = Array(7).fill("_"), o = [], l = 14, s = t.length;
|
|
176
176
|
for (let r = 0; r < s; r += 1) {
|
|
177
177
|
const c = [];
|
|
178
|
-
for (let
|
|
179
|
-
c.push(r +
|
|
178
|
+
for (let m = 0; m < l; m += 1)
|
|
179
|
+
c.push(r + m * 2);
|
|
180
180
|
o.push({
|
|
181
181
|
name: `${t[r]}`,
|
|
182
182
|
values: c
|
|
@@ -208,7 +208,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
userConfig: e.value.skeletonConfig ?? {}
|
|
211
|
-
})), { loading:
|
|
211
|
+
})), { loading: Ee, FINAL_DATASET: C, manualLoading: Qe } = ia({
|
|
212
212
|
...Wl(A),
|
|
213
213
|
FINAL_CONFIG: e,
|
|
214
214
|
prepareConfig: et,
|
|
@@ -229,7 +229,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
229
229
|
function et() {
|
|
230
230
|
const t = ht({
|
|
231
231
|
userConfig: A.config,
|
|
232
|
-
defaultConfig:
|
|
232
|
+
defaultConfig: P
|
|
233
233
|
});
|
|
234
234
|
let o = {};
|
|
235
235
|
const l = t.theme;
|
|
@@ -253,7 +253,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
253
253
|
return o;
|
|
254
254
|
}
|
|
255
255
|
Be(() => A.config, (t) => {
|
|
256
|
-
|
|
256
|
+
Ee.value || (e.value = et()), Ze.value = !e.value.userOptions.showOnChartHover, at(), mt.value += 1, H.value.showTable = e.value.table.show, H.value.showTooltip = e.value.style.tooltip.show, Ce.value = e.value.style.layout.width, Ae.value = e.value.style.layout.height;
|
|
257
257
|
}, { deep: !0 }), Be(() => A.dataset, (t) => {
|
|
258
258
|
Array.isArray(t) && t.length > 0 && (Qe.value = !1), at();
|
|
259
259
|
}, { deep: !0 });
|
|
@@ -261,12 +261,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
261
261
|
elementId: `heatmap__${K.value}`,
|
|
262
262
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
263
263
|
options: e.value.userOptions.print
|
|
264
|
-
}), dl = f(() => e.value.userOptions.show && !e.value.style.title.text),
|
|
264
|
+
}), dl = f(() => e.value.userOptions.show && !e.value.style.title.text), H = v({
|
|
265
265
|
showTable: e.value.table.show,
|
|
266
266
|
showTooltip: e.value.style.tooltip.show
|
|
267
267
|
});
|
|
268
268
|
Be(e, () => {
|
|
269
|
-
|
|
269
|
+
H.value = {
|
|
270
270
|
showTable: e.value.table.show,
|
|
271
271
|
showTooltip: e.value.style.tooltip.show
|
|
272
272
|
};
|
|
@@ -299,7 +299,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
299
299
|
}), Kl(() => {
|
|
300
300
|
at();
|
|
301
301
|
});
|
|
302
|
-
const Y = f(() => Math.max(...
|
|
302
|
+
const Y = f(() => Math.max(...C.value.flatMap((t) => (t.values || []).length))), Ce = v(e.value.style.layout.width), Ae = v(e.value.style.layout.height), E = f(() => ({
|
|
303
303
|
width: Math.max(10, Ce.value),
|
|
304
304
|
height: Math.max(10, Ae.value)
|
|
305
305
|
})), ge = v(0), hl = We((t) => {
|
|
@@ -316,15 +316,15 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
316
316
|
ft({ elementRef: je, callback: pl, attr: "height" }), qt(() => {
|
|
317
317
|
ge.value = 0, ve.value = 0, Le.value = 0;
|
|
318
318
|
});
|
|
319
|
-
const d = f(() => Math.min(
|
|
319
|
+
const d = f(() => Math.min(E.value.height, E.value.width) / 1e3 * e.value.style.layout.cells.spacing), a = f(() => {
|
|
320
320
|
let t = 0;
|
|
321
321
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
322
|
-
const o = e.value.style.layout.padding, l = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, r =
|
|
322
|
+
const o = e.value.style.layout.padding, l = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, r = E.value.height - o.top - o.bottom - ge.value - l, c = E.value.width / 60, m = {
|
|
323
323
|
x: d.value * Y.value,
|
|
324
|
-
y: d.value * ((
|
|
325
|
-
}, _ =
|
|
324
|
+
y: d.value * ((C.value || []).length + 1)
|
|
325
|
+
}, _ = E.value.width - o.left - o.right - m.x - c * 2 - 2 - t - ve.value, y = r - c - m.y - Le.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, w = {
|
|
326
326
|
width: Math.max(3, _ / Y.value),
|
|
327
|
-
height: Math.max(3, y / (
|
|
327
|
+
height: Math.max(3, y / (C.value.length ?? 1))
|
|
328
328
|
};
|
|
329
329
|
return {
|
|
330
330
|
top: o.top + ge.value + c + l,
|
|
@@ -333,12 +333,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
333
333
|
height: y,
|
|
334
334
|
left: o.left + ve.value + c / 2,
|
|
335
335
|
right: o.right - t,
|
|
336
|
-
bottom:
|
|
336
|
+
bottom: E.value.height - o.bottom - Le.value,
|
|
337
337
|
width: _,
|
|
338
338
|
cellSize: w
|
|
339
339
|
};
|
|
340
|
-
}), Z = f(() => Math.max(...
|
|
341
|
-
const t =
|
|
340
|
+
}), Z = f(() => Math.max(...C.value.flatMap((t) => t.values))), Se = f(() => Math.min(...C.value.flatMap((t) => t.values))), ce = f(() => {
|
|
341
|
+
const t = C.value.flatMap((l) => l.values);
|
|
342
342
|
return t.reduce((l, s) => l + s, 0) / t.length;
|
|
343
343
|
}), _t = v([]), It = v([]);
|
|
344
344
|
let Ot = 0;
|
|
@@ -346,11 +346,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
346
346
|
const t = ++Ot;
|
|
347
347
|
(async () => {
|
|
348
348
|
const o = e.value.style.layout.dataLabels.yAxis, l = await ll({
|
|
349
|
-
values: o.values.length ? o.values :
|
|
350
|
-
maxDatapoints:
|
|
349
|
+
values: o.values.length ? o.values : C.value.map((s) => s.name),
|
|
350
|
+
maxDatapoints: C.value.length,
|
|
351
351
|
formatter: o.datetimeFormatter,
|
|
352
352
|
start: 0,
|
|
353
|
-
end:
|
|
353
|
+
end: C.value.length
|
|
354
354
|
});
|
|
355
355
|
t === Ot && (_t.value = l);
|
|
356
356
|
})();
|
|
@@ -370,31 +370,31 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
370
370
|
})();
|
|
371
371
|
});
|
|
372
372
|
const x = f(() => {
|
|
373
|
-
const t = _t.value.map((y) => y.text), o = It.value.map((y) => y.text), l =
|
|
373
|
+
const t = _t.value.map((y) => y.text), o = It.value.map((y) => y.text), l = C.value.map((y) => y.values.reduce((w, B) => w + B, 0)), s = Math.max(...l), r = Math.min(...l), c = [];
|
|
374
374
|
for (let y = 0; y < Y.value; y += 1)
|
|
375
|
-
c.push(
|
|
376
|
-
const
|
|
375
|
+
c.push(C.value.map((w) => w.values[y] || 0).reduce((w, B) => w + B, 0));
|
|
376
|
+
const m = Math.max(...c), _ = Math.min(...c);
|
|
377
377
|
return {
|
|
378
378
|
yTotals: l.map((y) => {
|
|
379
379
|
const w = isNaN(y / s) ? 0 : y / s;
|
|
380
380
|
return {
|
|
381
381
|
total: y,
|
|
382
382
|
proportion: w,
|
|
383
|
-
color:
|
|
383
|
+
color: Ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, r, s, y)
|
|
384
384
|
};
|
|
385
385
|
}),
|
|
386
386
|
xTotals: c.map((y) => {
|
|
387
|
-
const w = isNaN(y /
|
|
387
|
+
const w = isNaN(y / m) ? 0 : y / m;
|
|
388
388
|
return {
|
|
389
389
|
total: y,
|
|
390
390
|
proportion: w,
|
|
391
|
-
color:
|
|
391
|
+
color: Ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, _, m, y)
|
|
392
392
|
};
|
|
393
393
|
}),
|
|
394
394
|
yLabels: t,
|
|
395
395
|
xLabels: o.slice(0, Y.value)
|
|
396
396
|
};
|
|
397
|
-
}), $ = f(() => (
|
|
397
|
+
}), $ = f(() => (C.value.forEach((t, o) => {
|
|
398
398
|
Ql({
|
|
399
399
|
datasetObject: t,
|
|
400
400
|
requiredAttributes: ["values"]
|
|
@@ -407,11 +407,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
407
407
|
debug: zt.value
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
|
-
}),
|
|
410
|
+
}), C.value.map((t, o) => ({
|
|
411
411
|
...t,
|
|
412
412
|
temperatures: (t.values || []).map((l, s) => l >= ce.value ? {
|
|
413
413
|
side: "up",
|
|
414
|
-
color:
|
|
414
|
+
color: Ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, l),
|
|
415
415
|
ratio: Math.abs(Math.abs(l - ce.value) / Math.abs(Z.value - ce.value)) > 1 ? 1 : Math.abs(Math.abs(l - ce.value) / Math.abs(Z.value - ce.value)),
|
|
416
416
|
value: l,
|
|
417
417
|
yAxisName: x.value.yLabels[o],
|
|
@@ -420,13 +420,13 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
420
420
|
} : {
|
|
421
421
|
side: "down",
|
|
422
422
|
ratio: Math.abs(1 - Math.abs(l) / Math.abs(ce.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(ce.value)),
|
|
423
|
-
color:
|
|
423
|
+
color: Ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, l),
|
|
424
424
|
value: l,
|
|
425
425
|
yAxisName: x.value.yLabels[o],
|
|
426
426
|
xAxisName: x.value.xLabels[s],
|
|
427
427
|
id: `vue-data-ui-heatmap-cell-${yt()}`
|
|
428
428
|
})
|
|
429
|
-
})))), Nt = f(() =>
|
|
429
|
+
})))), Nt = f(() => C.value.length), Ft = jt(Array(Nt.value * Y.value || 1).fill(!1)), gl = f(() => Ft.some((t) => t));
|
|
430
430
|
function bl(t, o) {
|
|
431
431
|
Ft[t] = o;
|
|
432
432
|
}
|
|
@@ -434,9 +434,9 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
434
434
|
function xl(t, o) {
|
|
435
435
|
Rt[t] = o;
|
|
436
436
|
}
|
|
437
|
-
const V = v(null),
|
|
437
|
+
const V = v(null), Te = v(null);
|
|
438
438
|
function ot() {
|
|
439
|
-
ne.value = !1, we.value = void 0, V.value = null,
|
|
439
|
+
ne.value = !1, we.value = void 0, V.value = null, D.value = null, ie.value = null, Pe.value = null;
|
|
440
440
|
}
|
|
441
441
|
function wl(t) {
|
|
442
442
|
if (!re.value || !t) return;
|
|
@@ -449,10 +449,10 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
451
|
function Ve(t, o, l, s, r = "pointer", c = null) {
|
|
452
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !
|
|
453
|
-
Je.value = r, ie.value = c,
|
|
454
|
-
const { value:
|
|
455
|
-
we.value = w, V.value =
|
|
452
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), !H.value.showTooltip) return;
|
|
453
|
+
Je.value = r, ie.value = c, Pe.value = t.id, D.value = { x: l, y: s };
|
|
454
|
+
const { value: m, yAxisName: _, xAxisName: y, id: w } = t;
|
|
455
|
+
we.value = w, V.value = m, Te.value = {
|
|
456
456
|
datapoint: t,
|
|
457
457
|
seriesIndex: o,
|
|
458
458
|
series: $.value,
|
|
@@ -470,12 +470,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
470
470
|
seriesIndex: o,
|
|
471
471
|
series: $.value,
|
|
472
472
|
config: e.value
|
|
473
|
-
}) : (B += `<div>${_} ${y ? _ ? ` - ${y}` : `${y}` : ""}</div>`, B += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${
|
|
473
|
+
}) : (B += `<div>${_} ${y ? _ ? ` - ${y}` : `${y}` : ""}</div>`, B += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${Ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, Se.value, Z.value, m)}">⬤</span><span>${isNaN(m) ? "-" : le(
|
|
474
474
|
e.value.style.layout.cells.value.formatter,
|
|
475
|
-
|
|
475
|
+
m,
|
|
476
476
|
q({
|
|
477
477
|
p: e.value.style.layout.dataLabels.prefix,
|
|
478
|
-
v:
|
|
478
|
+
v: m,
|
|
479
479
|
s: e.value.style.layout.dataLabels.suffix,
|
|
480
480
|
r: e.value.style.tooltip.roundingValue
|
|
481
481
|
}),
|
|
@@ -485,7 +485,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
function kl({ datapoint: t, seriesIndex: o }) {
|
|
488
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), !(
|
|
488
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), !(Pe.value === t.id && Je.value === "keyboard") && (ne.value = !1, we.value = void 0, V.value = null, D.value = null);
|
|
489
489
|
}
|
|
490
490
|
function Cl(t) {
|
|
491
491
|
return le(
|
|
@@ -514,19 +514,19 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
516
|
f(() => {
|
|
517
|
-
const t =
|
|
517
|
+
const t = C.value.map((l) => ({
|
|
518
518
|
name: l.name
|
|
519
|
-
})), o =
|
|
519
|
+
})), o = C.value.map((l) => l.values);
|
|
520
520
|
return { head: t, body: o };
|
|
521
521
|
});
|
|
522
522
|
function st(t = null) {
|
|
523
523
|
xe(() => {
|
|
524
|
-
const o = ["", ...
|
|
524
|
+
const o = ["", ...C.value.map((c, m) => c.name)], l = [];
|
|
525
525
|
for (let c = 0; c < x.value.xLabels.length; c += 1) {
|
|
526
|
-
const
|
|
527
|
-
for (let _ = 0; _ <
|
|
528
|
-
|
|
529
|
-
l.push(
|
|
526
|
+
const m = [x.value.xLabels[c]];
|
|
527
|
+
for (let _ = 0; _ < C.value.length; _ += 1)
|
|
528
|
+
m.push([C.value[_].values[c]]);
|
|
529
|
+
l.push(m);
|
|
530
530
|
}
|
|
531
531
|
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = ta(s);
|
|
532
532
|
t ? t(r) : la({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
@@ -537,14 +537,14 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
537
537
|
de.value = t, gt.value += 1;
|
|
538
538
|
}
|
|
539
539
|
function Dt() {
|
|
540
|
-
|
|
540
|
+
H.value.showTable = !H.value.showTable;
|
|
541
541
|
}
|
|
542
542
|
function Ht() {
|
|
543
|
-
|
|
543
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const $e = v(!1);
|
|
546
546
|
function ut() {
|
|
547
|
-
|
|
547
|
+
$e.value = !$e.value;
|
|
548
548
|
}
|
|
549
549
|
function Et(t, o) {
|
|
550
550
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o }), T("selectDatapoint", t);
|
|
@@ -594,7 +594,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
594
594
|
height: Ae
|
|
595
595
|
});
|
|
596
596
|
const Xe = f(() => {
|
|
597
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
597
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = H.value.showTable;
|
|
598
598
|
return {
|
|
599
599
|
component: t ? S : ba,
|
|
600
600
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -606,7 +606,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
606
606
|
isFullscreen: de.value,
|
|
607
607
|
fullscreenParent: M.value,
|
|
608
608
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
609
|
-
isCursorPointer:
|
|
609
|
+
isCursorPointer: He.value
|
|
610
610
|
} : {
|
|
611
611
|
hideDetails: !0,
|
|
612
612
|
config: {
|
|
@@ -624,12 +624,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
});
|
|
627
|
-
Be(() =>
|
|
627
|
+
Be(() => H.value.showTable, async (t) => {
|
|
628
628
|
e.value.table.show || (t && e.value.table.useDialog && ke.value ? (await xe(), ke.value.open()) : "close" in ke.value && ke.value.close());
|
|
629
629
|
});
|
|
630
630
|
const { isResponsive: Tl } = da(bt, yl);
|
|
631
631
|
function nt() {
|
|
632
|
-
|
|
632
|
+
H.value.showTable = !1, Ye.value && Ye.value.setTableIconState(!1);
|
|
633
633
|
}
|
|
634
634
|
const $l = f(() => e.value.style.backgroundColor), zl = f(() => e.value.style.title), { exportSvg: _l, getSvg: Il } = va({
|
|
635
635
|
svg: re,
|
|
@@ -637,7 +637,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
637
637
|
backgroundColor: $l
|
|
638
638
|
});
|
|
639
639
|
async function Bt({ isCb: t }) {
|
|
640
|
-
|
|
640
|
+
Re.value = !0, await xe();
|
|
641
641
|
try {
|
|
642
642
|
if (t) {
|
|
643
643
|
const { blob: o, url: l, text: s, dataUrl: r } = await Il();
|
|
@@ -645,16 +645,16 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
645
645
|
} else
|
|
646
646
|
await Promise.resolve(_l());
|
|
647
647
|
} finally {
|
|
648
|
-
|
|
648
|
+
Re.value = !1;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
function Ol(t) {
|
|
652
652
|
if (t?.stage === "start") {
|
|
653
|
-
|
|
653
|
+
Fe.value = !0;
|
|
654
654
|
return;
|
|
655
655
|
}
|
|
656
656
|
if (t?.stage === "end") {
|
|
657
|
-
|
|
657
|
+
Fe.value = !1;
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
660
|
$t();
|
|
@@ -689,16 +689,16 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
689
689
|
return l + o;
|
|
690
690
|
}
|
|
691
691
|
function Ml() {
|
|
692
|
-
ie.value = null,
|
|
692
|
+
ie.value = null, Pe.value = null, De.value = !0;
|
|
693
693
|
}
|
|
694
694
|
function Nl() {
|
|
695
|
-
ot(),
|
|
695
|
+
ot(), De.value = !1;
|
|
696
696
|
}
|
|
697
697
|
function Fl(t) {
|
|
698
|
-
if (!re.value ||
|
|
699
|
-
const o = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp", r = t.key === "ArrowDown", c = t.key === "Enter" || t.key === " ",
|
|
700
|
-
if (!o && !l && !s && !r && !c && !
|
|
701
|
-
if (t.preventDefault(), t.stopPropagation(),
|
|
698
|
+
if (!re.value || $e.value || document.activeElement !== re.value || !ye.value.length) return;
|
|
699
|
+
const o = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp", r = t.key === "ArrowDown", c = t.key === "Enter" || t.key === " ", m = t.key === "Escape";
|
|
700
|
+
if (!o && !l && !s && !r && !c && !m) return;
|
|
701
|
+
if (t.preventDefault(), t.stopPropagation(), m) {
|
|
702
702
|
ot();
|
|
703
703
|
return;
|
|
704
704
|
}
|
|
@@ -711,11 +711,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
711
711
|
}
|
|
712
712
|
let _ = ie.value === null ? null : ye.value[ie.value];
|
|
713
713
|
if (!_) {
|
|
714
|
-
const ee = we.value ? ye.value.findIndex((
|
|
714
|
+
const ee = we.value ? ye.value.findIndex((Ie) => Ie.cell.id === we.value) : null;
|
|
715
715
|
if (ee !== null && ee >= 0 && ee < ye.value.length) {
|
|
716
|
-
const
|
|
717
|
-
if (!
|
|
718
|
-
let j =
|
|
716
|
+
const Ie = ye.value[ee];
|
|
717
|
+
if (!Ie) return;
|
|
718
|
+
let j = Ie.rowIndex, te = Ie.columnIndex;
|
|
719
719
|
l ? te += 1 : o ? te -= 1 : r ? j += 1 : s && (j -= 1);
|
|
720
720
|
const vt = Wt.value.rowCount;
|
|
721
721
|
if (vt <= 0) return;
|
|
@@ -724,16 +724,16 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
724
724
|
if (!ct || !ct.temperatures.length) return;
|
|
725
725
|
const Yt = ct.temperatures.length;
|
|
726
726
|
te < 0 && (te = Yt - 1), te >= Yt && (te = 0);
|
|
727
|
-
const
|
|
728
|
-
if (!
|
|
729
|
-
const Vl = it(j, te), Xl = a.value.left + a.value.cellSize.width *
|
|
730
|
-
Ve(
|
|
727
|
+
const Oe = Gt(j, te);
|
|
728
|
+
if (!Oe) return;
|
|
729
|
+
const Vl = it(j, te), Xl = a.value.left + a.value.cellSize.width * Oe.columnIndex, Bl = a.value.top + a.value.cellSize.height * Oe.rowIndex;
|
|
730
|
+
Ve(Oe.cell, Oe.rowIndex, Xl, Bl, "keyboard", Vl);
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
|
-
const
|
|
734
|
-
if (!
|
|
735
|
-
const Hl = a.value.left + a.value.cellSize.width *
|
|
736
|
-
Ve(
|
|
733
|
+
const _e = ye.value[0];
|
|
734
|
+
if (!_e) return;
|
|
735
|
+
const Hl = a.value.left + a.value.cellSize.width * _e.columnIndex, El = a.value.top + a.value.cellSize.height * _e.rowIndex;
|
|
736
|
+
Ve(_e.cell, _e.rowIndex, Hl, El, "keyboard", 0);
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
739
|
let y = _.rowIndex, w = _.columnIndex;
|
|
@@ -745,18 +745,18 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
745
745
|
if (!he || !he.temperatures.length) return;
|
|
746
746
|
const Kt = he.temperatures.length;
|
|
747
747
|
w < 0 && (w = Kt - 1), w >= Kt && (w = 0);
|
|
748
|
-
const
|
|
749
|
-
if (
|
|
750
|
-
const Rl = it(y, w), Pl = a.value.left + a.value.cellSize.width *
|
|
751
|
-
Ve(
|
|
748
|
+
const ze = Gt(y, w);
|
|
749
|
+
if (!ze) return;
|
|
750
|
+
const Rl = it(y, w), Pl = a.value.left + a.value.cellSize.width * ze.columnIndex, Dl = a.value.top + a.value.cellSize.height * ze.rowIndex;
|
|
751
|
+
Ve(ze.cell, ze.rowIndex, Pl, Dl, "keyboard", Rl);
|
|
752
752
|
}
|
|
753
753
|
const rt = f(() => {
|
|
754
754
|
const t = [
|
|
755
755
|
e.value.table.colNames.xAxis,
|
|
756
|
-
...
|
|
756
|
+
...C.value.map((l) => l.name)
|
|
757
757
|
], o = x.value.xLabels.map((l, s) => [
|
|
758
758
|
l,
|
|
759
|
-
...
|
|
759
|
+
...C.value.map((r) => {
|
|
760
760
|
const c = r.values?.[s];
|
|
761
761
|
return isNaN(c) ? "-" : q({
|
|
762
762
|
p: e.value.style.layout.dataLabels.prefix,
|
|
@@ -796,12 +796,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
796
796
|
}), (t, o) => (u(), i("div", {
|
|
797
797
|
ref_key: "heatmapChart",
|
|
798
798
|
ref: M,
|
|
799
|
-
class:
|
|
799
|
+
class: Me(`vue-data-ui-component vue-ui-heatmap ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
800
800
|
style: L(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
801
801
|
id: `heatmap__${K.value}`,
|
|
802
802
|
onMouseenter: o[1] || (o[1] = () => St(!0)),
|
|
803
803
|
onMouseleave: o[2] || (o[2] = () => {
|
|
804
|
-
St(!1),
|
|
804
|
+
St(!1), De.value || ot();
|
|
805
805
|
})
|
|
806
806
|
}, [
|
|
807
807
|
p("div", {
|
|
@@ -818,32 +818,32 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
818
818
|
notice: e.value.a11y.translations.tableAvailable,
|
|
819
819
|
caption: e.value.a11y.translations.tableCaption
|
|
820
820
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : g("", !0),
|
|
821
|
-
e.value.userOptions.buttons.annotator ? (u(), me(n(
|
|
821
|
+
e.value.userOptions.buttons.annotator ? (u(), me(n(R), {
|
|
822
822
|
key: 1,
|
|
823
823
|
svgRef: n(re),
|
|
824
824
|
backgroundColor: e.value.style.backgroundColor,
|
|
825
825
|
color: e.value.style.color,
|
|
826
|
-
active:
|
|
827
|
-
isCursorPointer:
|
|
826
|
+
active: $e.value,
|
|
827
|
+
isCursorPointer: He.value,
|
|
828
828
|
onClose: ut
|
|
829
829
|
}, {
|
|
830
|
-
"annotator-action-close":
|
|
831
|
-
|
|
830
|
+
"annotator-action-close": k(() => [
|
|
831
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
832
832
|
]),
|
|
833
|
-
"annotator-action-color":
|
|
834
|
-
|
|
833
|
+
"annotator-action-color": k(({ color: l }) => [
|
|
834
|
+
b(t.$slots, "annotator-action-color", N(F({ color: l })), void 0, !0)
|
|
835
835
|
]),
|
|
836
|
-
"annotator-action-draw":
|
|
837
|
-
|
|
836
|
+
"annotator-action-draw": k(({ mode: l }) => [
|
|
837
|
+
b(t.$slots, "annotator-action-draw", N(F({ mode: l })), void 0, !0)
|
|
838
838
|
]),
|
|
839
|
-
"annotator-action-undo":
|
|
840
|
-
|
|
839
|
+
"annotator-action-undo": k(({ disabled: l }) => [
|
|
840
|
+
b(t.$slots, "annotator-action-undo", N(F({ disabled: l })), void 0, !0)
|
|
841
841
|
]),
|
|
842
|
-
"annotator-action-redo":
|
|
843
|
-
|
|
842
|
+
"annotator-action-redo": k(({ disabled: l }) => [
|
|
843
|
+
b(t.$slots, "annotator-action-redo", N(F({ disabled: l })), void 0, !0)
|
|
844
844
|
]),
|
|
845
|
-
"annotator-action-delete":
|
|
846
|
-
|
|
845
|
+
"annotator-action-delete": k(({ disabled: l }) => [
|
|
846
|
+
b(t.$slots, "annotator-action-delete", N(F({ disabled: l })), void 0, !0)
|
|
847
847
|
]),
|
|
848
848
|
_: 3
|
|
849
849
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : g("", !0),
|
|
@@ -892,16 +892,16 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
892
892
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
893
893
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
894
894
|
isFullscreen: de.value,
|
|
895
|
-
isTooltip:
|
|
895
|
+
isTooltip: H.value.showTooltip,
|
|
896
896
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
897
897
|
chartElement: M.value,
|
|
898
898
|
position: e.value.userOptions.position,
|
|
899
899
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
900
|
-
isAnnotation:
|
|
900
|
+
isAnnotation: $e.value,
|
|
901
901
|
callbacks: e.value.userOptions.callbacks,
|
|
902
902
|
printScale: e.value.userOptions.print.scale,
|
|
903
903
|
tableDialog: e.value.table.useDialog,
|
|
904
|
-
isCursorPointer:
|
|
904
|
+
isCursorPointer: He.value,
|
|
905
905
|
onToggleFullscreen: Pt,
|
|
906
906
|
onGeneratePdf: n(Tt),
|
|
907
907
|
onGenerateCsv: st,
|
|
@@ -917,77 +917,77 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
917
917
|
}, Jt({ _: 2 }, [
|
|
918
918
|
t.$slots.menuIcon ? {
|
|
919
919
|
name: "menuIcon",
|
|
920
|
-
fn:
|
|
921
|
-
|
|
920
|
+
fn: k(({ isOpen: l, color: s }) => [
|
|
921
|
+
b(t.$slots, "menuIcon", N(F({ isOpen: l, color: s })), void 0, !0)
|
|
922
922
|
]),
|
|
923
923
|
key: "0"
|
|
924
924
|
} : void 0,
|
|
925
925
|
t.$slots.optionTooltip ? {
|
|
926
926
|
name: "optionTooltip",
|
|
927
|
-
fn:
|
|
928
|
-
|
|
927
|
+
fn: k(() => [
|
|
928
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
929
929
|
]),
|
|
930
930
|
key: "1"
|
|
931
931
|
} : void 0,
|
|
932
932
|
t.$slots.optionPdf ? {
|
|
933
933
|
name: "optionPdf",
|
|
934
|
-
fn:
|
|
935
|
-
|
|
934
|
+
fn: k(() => [
|
|
935
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
936
936
|
]),
|
|
937
937
|
key: "2"
|
|
938
938
|
} : void 0,
|
|
939
939
|
t.$slots.optionCsv ? {
|
|
940
940
|
name: "optionCsv",
|
|
941
|
-
fn:
|
|
942
|
-
|
|
941
|
+
fn: k(() => [
|
|
942
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
943
943
|
]),
|
|
944
944
|
key: "3"
|
|
945
945
|
} : void 0,
|
|
946
946
|
t.$slots.optionImg ? {
|
|
947
947
|
name: "optionImg",
|
|
948
|
-
fn:
|
|
949
|
-
|
|
948
|
+
fn: k(() => [
|
|
949
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
950
950
|
]),
|
|
951
951
|
key: "4"
|
|
952
952
|
} : void 0,
|
|
953
953
|
t.$slots.optionSvg ? {
|
|
954
954
|
name: "optionSvg",
|
|
955
|
-
fn:
|
|
956
|
-
|
|
955
|
+
fn: k(() => [
|
|
956
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
957
957
|
]),
|
|
958
958
|
key: "5"
|
|
959
959
|
} : void 0,
|
|
960
960
|
t.$slots.optionTable ? {
|
|
961
961
|
name: "optionTable",
|
|
962
|
-
fn:
|
|
963
|
-
|
|
962
|
+
fn: k(() => [
|
|
963
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
964
964
|
]),
|
|
965
965
|
key: "6"
|
|
966
966
|
} : void 0,
|
|
967
967
|
t.$slots.optionFullscreen ? {
|
|
968
968
|
name: "optionFullscreen",
|
|
969
|
-
fn:
|
|
970
|
-
|
|
969
|
+
fn: k(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
970
|
+
b(t.$slots, "optionFullscreen", N(F({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
971
971
|
]),
|
|
972
972
|
key: "7"
|
|
973
973
|
} : void 0,
|
|
974
974
|
t.$slots.optionAnnotator ? {
|
|
975
975
|
name: "optionAnnotator",
|
|
976
|
-
fn:
|
|
977
|
-
|
|
976
|
+
fn: k(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
977
|
+
b(t.$slots, "optionAnnotator", N(F({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
978
978
|
]),
|
|
979
979
|
key: "8"
|
|
980
980
|
} : void 0,
|
|
981
981
|
t.$slots.optionAltCopy ? {
|
|
982
982
|
name: "optionAltCopy",
|
|
983
|
-
fn:
|
|
984
|
-
|
|
983
|
+
fn: k(({ altCopy: l }) => [
|
|
984
|
+
b(t.$slots, "optionAltCopy", N(F({ altCopy: l })), void 0, !0)
|
|
985
985
|
]),
|
|
986
986
|
key: "9"
|
|
987
987
|
} : void 0
|
|
988
988
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : g("", !0),
|
|
989
989
|
p("div", {
|
|
990
|
-
class:
|
|
990
|
+
class: Me({
|
|
991
991
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
992
992
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
993
993
|
})
|
|
@@ -997,8 +997,8 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
997
997
|
ref: re,
|
|
998
998
|
xmlns: n(Zl),
|
|
999
999
|
"aria-describedby": `chart-instructions-${K.value}`,
|
|
1000
|
-
class:
|
|
1001
|
-
viewBox: `0 0 ${
|
|
1000
|
+
class: Me({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
|
|
1001
|
+
viewBox: `0 0 ${E.value.width} ${E.value.height}`,
|
|
1002
1002
|
width: "100%",
|
|
1003
1003
|
style: L(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
1004
1004
|
"aria-live": "polite",
|
|
@@ -1020,7 +1020,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1020
1020
|
pointerEvents: "none"
|
|
1021
1021
|
}
|
|
1022
1022
|
}, [
|
|
1023
|
-
|
|
1023
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
1024
1024
|
], 8, La)) : g("", !0),
|
|
1025
1025
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
1026
1026
|
key: 1,
|
|
@@ -1029,7 +1029,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1029
1029
|
}, [
|
|
1030
1030
|
(u(!0), i(O, null, U(x.value.xTotals, (l, s) => (u(), i("rect", {
|
|
1031
1031
|
x: a.value.left + a.value.cellSize.width * s + d.value / 2 + a.value.sumCellXHeight,
|
|
1032
|
-
y: a.value.top - a.value.sumCellXHeight + d.value * (
|
|
1032
|
+
y: a.value.top - a.value.sumCellXHeight + d.value * (E.value.height / E.value.width),
|
|
1033
1033
|
height: a.value.sumCellXHeight,
|
|
1034
1034
|
width: a.value.cellSize.width - d.value,
|
|
1035
1035
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -1038,7 +1038,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1038
1038
|
}, null, 8, Sa))), 256)),
|
|
1039
1039
|
(u(!0), i(O, null, U(x.value.xTotals, (l, s) => (u(), i("rect", {
|
|
1040
1040
|
x: a.value.left + a.value.cellSize.width * s + d.value / 2 + a.value.sumCellXHeight,
|
|
1041
|
-
y: a.value.top - a.value.sumCellXHeight + d.value * (
|
|
1041
|
+
y: a.value.top - a.value.sumCellXHeight + d.value * (E.value.height / E.value.width),
|
|
1042
1042
|
height: a.value.sumCellXHeight,
|
|
1043
1043
|
width: a.value.cellSize.width - d.value,
|
|
1044
1044
|
fill: l.color,
|
|
@@ -1071,7 +1071,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1071
1071
|
stroke: e.value.style.backgroundColor,
|
|
1072
1072
|
"stroke-width": d.value,
|
|
1073
1073
|
"aria-label": `${r.yAxisName}${r.xAxisName ? ` - ${r.xAxisName}` : ""}: ${isNaN(r.value) ? "-" : r.value}`,
|
|
1074
|
-
onMouseover: (
|
|
1074
|
+
onMouseover: (m) => Ve(
|
|
1075
1075
|
r,
|
|
1076
1076
|
s,
|
|
1077
1077
|
a.value.left + a.value.cellSize.width * c,
|
|
@@ -1203,11 +1203,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1203
1203
|
transform: `translate(${a.value.left + a.value.cellSize.width / 2 + a.value.width / x.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + a.value.sumCellXHeight}, ${a.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1204
1204
|
}, I(Al(s)), 9, Ra))), 256))
|
|
1205
1205
|
], 512)) : g("", !0),
|
|
1206
|
-
|
|
1206
|
+
D.value ? (u(), i("g", Pa, [
|
|
1207
1207
|
p("rect", {
|
|
1208
1208
|
style: { "pointer-events": "none" },
|
|
1209
|
-
x:
|
|
1210
|
-
y:
|
|
1209
|
+
x: D.value.x - e.value.style.layout.cells.selected.border / 2 + d.value + a.value.sumCellXHeight,
|
|
1210
|
+
y: D.value.y - e.value.style.layout.cells.selected.border / 2 + d.value,
|
|
1211
1211
|
width: a.value.cellSize.width - d.value + e.value.style.layout.cells.selected.border - d.value,
|
|
1212
1212
|
height: a.value.cellSize.height - d.value + e.value.style.layout.cells.selected.border - d.value,
|
|
1213
1213
|
fill: "transparent",
|
|
@@ -1216,21 +1216,21 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1216
1216
|
rx: 1
|
|
1217
1217
|
}, null, 8, Da)
|
|
1218
1218
|
])) : g("", !0),
|
|
1219
|
-
e.value.style.layout.crosshairs.show &&
|
|
1219
|
+
e.value.style.layout.crosshairs.show && D.value ? (u(), i("g", Ha, [
|
|
1220
1220
|
p("line", {
|
|
1221
1221
|
x1: a.value.left + a.value.sumCellXHeight,
|
|
1222
|
-
x2:
|
|
1223
|
-
y1:
|
|
1224
|
-
y2:
|
|
1222
|
+
x2: D.value.x + a.value.sumCellXHeight,
|
|
1223
|
+
y1: D.value.y + (a.value.cellSize.height - d.value) / 2,
|
|
1224
|
+
y2: D.value.y + (a.value.cellSize.height - d.value) / 2,
|
|
1225
1225
|
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1226
1226
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1227
1227
|
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1228
1228
|
"stroke-linecap": "round"
|
|
1229
1229
|
}, null, 8, Ea),
|
|
1230
1230
|
p("line", {
|
|
1231
|
-
x1:
|
|
1232
|
-
x2:
|
|
1233
|
-
y1:
|
|
1231
|
+
x1: D.value.x + a.value.sumCellXHeight + (a.value.cellSize.width - d.value) / 2,
|
|
1232
|
+
x2: D.value.x + a.value.sumCellXHeight + (a.value.cellSize.width - d.value) / 2,
|
|
1233
|
+
y1: D.value.y,
|
|
1234
1234
|
y2: a.value.top,
|
|
1235
1235
|
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1236
1236
|
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
@@ -1238,11 +1238,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1238
1238
|
"stroke-linecap": "round"
|
|
1239
1239
|
}, null, 8, Va)
|
|
1240
1240
|
])) : g("", !0),
|
|
1241
|
-
|
|
1241
|
+
b(t.$slots, "svg", {
|
|
1242
1242
|
svg: {
|
|
1243
|
-
...
|
|
1244
|
-
isPrintingImg: n(tt) | n(lt) |
|
|
1245
|
-
isPrintingSvg:
|
|
1243
|
+
...E.value,
|
|
1244
|
+
isPrintingImg: n(tt) | n(lt) | Fe.value,
|
|
1245
|
+
isPrintingSvg: Re.value
|
|
1246
1246
|
}
|
|
1247
1247
|
}, void 0, !0)
|
|
1248
1248
|
], 46, Aa)),
|
|
@@ -1255,7 +1255,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1255
1255
|
"--legend-width": e.value.style.legend.width + "px"
|
|
1256
1256
|
})
|
|
1257
1257
|
}, [
|
|
1258
|
-
n(
|
|
1258
|
+
n(Ee) ? g("", !0) : (u(), i("div", {
|
|
1259
1259
|
key: 0,
|
|
1260
1260
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1261
1261
|
style: L({
|
|
@@ -1295,7 +1295,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1295
1295
|
position: "absolute",
|
|
1296
1296
|
width: "100%",
|
|
1297
1297
|
height: "2px",
|
|
1298
|
-
background: [void 0, null].includes(V.value) ? "transparent" : n(Ge)(
|
|
1298
|
+
background: [void 0, null].includes(V.value) ? "transparent" : n(Ge)(Te.value.datapoint.color),
|
|
1299
1299
|
top: `${[void 0, null].includes(V.value) ? 0 : (1 - V.value / Z.value) * 100}%`,
|
|
1300
1300
|
transition: "all 0.2s ease-in-out",
|
|
1301
1301
|
"--background-color": e.value.style.backgroundColor,
|
|
@@ -1320,7 +1320,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1320
1320
|
])
|
|
1321
1321
|
], 4)
|
|
1322
1322
|
]),
|
|
1323
|
-
n(
|
|
1323
|
+
n(Ee) ? g("", !0) : (u(), i("div", {
|
|
1324
1324
|
key: 1,
|
|
1325
1325
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1326
1326
|
style: L({
|
|
@@ -1339,11 +1339,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1339
1339
|
)), 5))
|
|
1340
1340
|
], 4)) : g("", !0),
|
|
1341
1341
|
t.$slots.hint ? (u(), i("div", Ga, [
|
|
1342
|
-
|
|
1342
|
+
b(t.$slots, "hint", N(F({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: De.value })), void 0, !0)
|
|
1343
1343
|
])) : g("", !0)
|
|
1344
1344
|
], 2),
|
|
1345
1345
|
t.$slots.watermark ? (u(), i("div", Wa, [
|
|
1346
|
-
|
|
1346
|
+
b(t.$slots, "watermark", N(F({ isPrinting: n(tt) || n(lt) || Fe.value || Re.value })), void 0, !0)
|
|
1347
1347
|
])) : g("", !0),
|
|
1348
1348
|
t.$slots.source ? (u(), i("div", {
|
|
1349
1349
|
key: 6,
|
|
@@ -1351,11 +1351,11 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1351
1351
|
ref: Ct,
|
|
1352
1352
|
dir: "auto"
|
|
1353
1353
|
}, [
|
|
1354
|
-
|
|
1354
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1355
1355
|
], 512)) : g("", !0),
|
|
1356
1356
|
Ue(n(J), {
|
|
1357
1357
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
1358
|
-
show:
|
|
1358
|
+
show: H.value.showTooltip && ne.value,
|
|
1359
1359
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1360
1360
|
color: e.value.style.tooltip.color,
|
|
1361
1361
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1376,11 +1376,14 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1376
1376
|
isA11yMode: Je.value === "keyboard",
|
|
1377
1377
|
a11yPosition: At.value
|
|
1378
1378
|
}, {
|
|
1379
|
-
"tooltip-before":
|
|
1380
|
-
|
|
1379
|
+
"tooltip-before": k(() => [
|
|
1380
|
+
b(t.$slots, "tooltip-before", N(F({ ...Te.value })), void 0, !0)
|
|
1381
|
+
]),
|
|
1382
|
+
tooltip: k(() => [
|
|
1383
|
+
b(t.$slots, "tooltip", N(F({ ...Te.value })), void 0, !0)
|
|
1381
1384
|
]),
|
|
1382
|
-
"tooltip-after":
|
|
1383
|
-
|
|
1385
|
+
"tooltip-after": k(() => [
|
|
1386
|
+
b(t.$slots, "tooltip-after", N(F({ ...Te.value })), void 0, !0)
|
|
1384
1387
|
]),
|
|
1385
1388
|
_: 3
|
|
1386
1389
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -1389,7 +1392,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1389
1392
|
ref: ke,
|
|
1390
1393
|
onClose: nt
|
|
1391
1394
|
}), Jt({
|
|
1392
|
-
content:
|
|
1395
|
+
content: k(() => [
|
|
1393
1396
|
p("div", {
|
|
1394
1397
|
ref_key: "tableContainer",
|
|
1395
1398
|
ref: bt,
|
|
@@ -1398,7 +1401,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1398
1401
|
}, [
|
|
1399
1402
|
p("div", {
|
|
1400
1403
|
style: L(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1401
|
-
class:
|
|
1404
|
+
class: Me({ "vue-ui-responsive": n(Tl) })
|
|
1402
1405
|
}, [
|
|
1403
1406
|
e.value.table.useDialog ? g("", !0) : (u(), i("div", {
|
|
1404
1407
|
key: 0,
|
|
@@ -1439,7 +1442,7 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1439
1442
|
p("tbody", null, [
|
|
1440
1443
|
(u(!0), i(O, null, U(x.value.xLabels, (l, s) => (u(), i("tr", {
|
|
1441
1444
|
role: "row",
|
|
1442
|
-
class:
|
|
1445
|
+
class: Me({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1443
1446
|
style: L(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1444
1447
|
}, [
|
|
1445
1448
|
p("td", {
|
|
@@ -1466,19 +1469,19 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1466
1469
|
}, [
|
|
1467
1470
|
e.value.table.useDialog ? {
|
|
1468
1471
|
name: "title",
|
|
1469
|
-
fn:
|
|
1472
|
+
fn: k(() => [
|
|
1470
1473
|
dt(I(Xe.value.title), 1)
|
|
1471
1474
|
]),
|
|
1472
1475
|
key: "0"
|
|
1473
1476
|
} : void 0,
|
|
1474
1477
|
e.value.table.useDialog ? {
|
|
1475
1478
|
name: "actions",
|
|
1476
|
-
fn:
|
|
1479
|
+
fn: k(() => [
|
|
1477
1480
|
p("button", {
|
|
1478
1481
|
tabindex: "0",
|
|
1479
1482
|
class: "vue-ui-user-options-button",
|
|
1480
1483
|
onClick: o[0] || (o[0] = (l) => st(e.value.userOptions.callbacks.csv)),
|
|
1481
|
-
style: L({ cursor:
|
|
1484
|
+
style: L({ cursor: He.value ? "pointer" : "default" })
|
|
1482
1485
|
}, [
|
|
1483
1486
|
Ue(n(se), {
|
|
1484
1487
|
name: "fileCsv",
|
|
@@ -1489,12 +1492,12 @@ const ka = ["id"], Ca = ["id"], Aa = ["xmlns", "aria-describedby", "viewBox"], L
|
|
|
1489
1492
|
key: "1"
|
|
1490
1493
|
} : void 0
|
|
1491
1494
|
]), 1040)) : g("", !0),
|
|
1492
|
-
|
|
1493
|
-
n(
|
|
1495
|
+
b(t.$slots, "skeleton", {}, () => [
|
|
1496
|
+
n(Ee) ? (u(), me(ra, { key: 0 })) : g("", !0)
|
|
1494
1497
|
], !0)
|
|
1495
1498
|
], 46, ka));
|
|
1496
1499
|
}
|
|
1497
|
-
}, ko = /* @__PURE__ */ xa(Za, [["__scopeId", "data-v-
|
|
1500
|
+
}, ko = /* @__PURE__ */ xa(Za, [["__scopeId", "data-v-88a6ed15"]]);
|
|
1498
1501
|
export {
|
|
1499
1502
|
ko as default
|
|
1500
1503
|
};
|