vue-data-ui 3.3.2 → 3.3.3
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-DLi6NnGD.js → Arrow-ayTeSvpe.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-Cysanw8-.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-DG6cvf2h.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-CA8kKZjZ.js} +2 -2
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DUpZ_s2c.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-CCBZ2x8T.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-D2IMGwaN.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-CQvYRebC.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-D9LruJaM.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BS9UGhNq.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BOki89CB.js} +2 -2
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-svd8Hb6c.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-B6rAo9Oz.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-DaInVNiV.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-CJXSEhan.js} +2 -2
- package/dist/components/arrow.js +1 -1
- 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-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-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-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-icon.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-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/{dom-to-png-DxyZSvDx.js → dom-to-png-Tq92GZKA.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-DI-W68vp.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-CSDxt1Zh.js} +12 -12
- package/dist/{pdf-anN8VbM7.js → pdf-BzVpWnNO.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-Dh-ldrr5.js} +1 -1
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-Cq8Pt6Lh.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-CDY7snWF.js} +64 -64
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-DbpiTjGu.js} +6 -6
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-CaClZrCp.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-DuIxXz5p.js} +35 -28
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-C2efSKQK.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-qpcqLKmp.js} +7 -7
- package/dist/{vue-ui-candlestick-x9U5Ni0N.js → vue-ui-candlestick-DTWbbdGH.js} +38 -31
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-CCTtArFX.js} +4 -4
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-CbvxJ8hy.js} +5 -5
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-Cp9nyIdv.js} +8 -8
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-kHzd0UYO.js} +21 -21
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-DEvkJRCz.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-k_mz9iwy.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-CqWCkEu2.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-CDKS6sVu.js} +8 -8
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-C6cGI_P3.js} +83 -76
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-ZjJst3xs.js} +38 -31
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-sX1PYIkr.js} +7 -7
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel--VViM9gH.js} +6 -6
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-Du0V9GF8.js} +7 -7
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-BAe4p2g-.js} +7 -7
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-CfjwAt38.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-Q0jrPM5h.js} +466 -436
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-CLSN3mPy.js} +45 -38
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-CBRgXD1s.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-3yCeDEPK.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-Ddh4hbX0.js} +5 -5
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-CK8UF-ka.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-DO0FV0tU.js} +7 -7
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DXLqoj-4.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-BlffHAHB.js} +45 -38
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-pw2ALj7p.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-9oGbV593.js} +214 -207
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-Csznqw19.js} +8 -8
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-C4yZY1sb.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-Duxv-A4H.js} +7 -7
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B-q7J-C0.js} +45 -38
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-PRAcmP1H.js} +8 -8
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-BLW4MJtJ.js} +8 -8
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-D0PF0jxa.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-Be44gMTh.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-B2XY2dRa.js} +3 -3
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-DWQN4gvR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-fDhQGQ12.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-f7Acvipt.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-Ys3JW7Ap.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-Dv0HeSna.js} +3 -3
- package/dist/{vue-ui-stackbar-DIUil9DO.js → vue-ui-stackbar-DUlN5QiM.js} +45 -30
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-DN13ntF-.js} +113 -106
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-Qb5tDX1n.js} +5 -5
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-hMrgJ25a.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-CdkFyJjv.js} +4 -4
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-D7U2C7kJ.js} +7 -7
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-KtA4M2mV.js} +5 -5
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-C6GTGszq.js} +6 -6
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-rhnl1TW9.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-n_Lvbd_X.js} +9 -9
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-D-4whGLN.js} +8 -8
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-D92HLjfr.js} +6 -6
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Df9AMw6v.js} +20 -20
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-Bg9S35ug.js} +6 -6
- package/dist/{vue-ui-xy-tWE4H5ij.js → vue-ui-xy-Da6oy2rm.js} +284 -277
- package/dist/{vue-ui-xy-canvas-BQKR36bd.js → vue-ui-xy-canvas-0CLSIKpO.js} +10 -10
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
|
@@ -1,67 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as pl } from "./usePrinter-
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
1
|
+
import { watchEffect as Jt, nextTick as Se, useCssVars as Qt, defineAsyncComponent as oe, computed as g, ref as d, shallowRef as Zt, toRefs as el, watch as Ae, onBeforeUnmount as dt, onMounted as tl, reactive as ht, createElementBlock as n, openBlock as u, normalizeStyle as A, normalizeClass as fe, createBlock as ge, createCommentVNode as p, createElementVNode as b, createVNode as Ce, unref as i, createSlots as yt, withCtx as M, renderSlot as T, normalizeProps as se, guardReactiveProps as ue, Fragment as L, renderList as B, withDirectives as ft, createTextVNode as Xe, toDisplayString as S, vShow as ll, resolveDynamicComponent as al, mergeProps as ol, withKeys as sl } from "vue";
|
|
2
|
+
import { c as Ie, t as ul, B as il, o as gt, f as pt, a0 as pe, g as nl, X as rl, E as Le, a as G, d as X, q as W, at as vl, x as cl, y as dl, z as hl, A as yl } from "./lib-CSDxt1Zh.js";
|
|
3
|
+
import { t as Te, u as fl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as gl, a as bt } from "./useNestedProp-Dh-ldrr5.js";
|
|
5
|
+
import { u as pl } from "./usePrinter-Cq8Pt6Lh.js";
|
|
6
|
+
import { u as bl, B as ml } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as xl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as mt } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { t as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
import { u as wl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
+
import { u as kl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as xt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { u as Al } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
+
import Cl from "./img-DI-W68vp.js";
|
|
14
|
+
import Ll from "./Title-B6rAo9Oz.js";
|
|
15
|
+
import { t as Tl } from "./themes-Dw-dDudK.js";
|
|
16
|
+
import Sl from "./vue-ui-accordion-CaClZrCp.js";
|
|
17
|
+
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
function Ve({ elementRef: y, callback: R, attr: D, earlyReturn: I = !1 }) {
|
|
19
|
+
I || Jt(
|
|
20
|
+
(j) => {
|
|
21
|
+
const x = y.value;
|
|
22
|
+
if (!x) return;
|
|
23
|
+
const V = new ResizeObserver((_) => {
|
|
24
|
+
const q = _[0]?.contentRect;
|
|
25
|
+
let f;
|
|
26
|
+
if (q && q[D] != null)
|
|
27
|
+
f = q[D];
|
|
28
|
+
else
|
|
29
|
+
try {
|
|
30
|
+
D === "width" ? f = typeof x.getBBox == "function" ? x.getBBox().width : x.getBoundingClientRect().width : f = typeof x.getBBox == "function" ? x.getBBox().height : x.getBoundingClientRect().height;
|
|
31
|
+
} catch {
|
|
32
|
+
const K = x.getBoundingClientRect();
|
|
33
|
+
f = D === "width" ? K.width : K.height;
|
|
34
|
+
}
|
|
35
|
+
typeof f == "number" && !Number.isNaN(f) && R(f);
|
|
36
|
+
});
|
|
37
|
+
V.observe(x), Se(() => {
|
|
38
|
+
requestAnimationFrame(() => {
|
|
39
|
+
if (!y.value) return;
|
|
40
|
+
const _ = y.value.getBoundingClientRect(), E = D === "width" ? _.width : _.height;
|
|
41
|
+
typeof E == "number" && !Number.isNaN(E) && R(E);
|
|
42
|
+
});
|
|
43
|
+
}), j(() => V.disconnect());
|
|
44
|
+
},
|
|
45
|
+
{ flush: "post" }
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
const zl = {
|
|
49
|
+
mounted(y, R) {
|
|
50
|
+
wt(y, R.value);
|
|
21
51
|
},
|
|
22
|
-
updated(
|
|
23
|
-
wt(
|
|
52
|
+
updated(y, R) {
|
|
53
|
+
wt(y, R.value);
|
|
24
54
|
}
|
|
25
55
|
};
|
|
26
|
-
function wt(
|
|
27
|
-
cellWidth:
|
|
28
|
-
cellHeight:
|
|
29
|
-
maxFontSize:
|
|
30
|
-
minFontSize:
|
|
31
|
-
index:
|
|
32
|
-
reportRotation:
|
|
33
|
-
reportHide:
|
|
34
|
-
rotateAll:
|
|
35
|
-
hideAll:
|
|
56
|
+
function wt(y, {
|
|
57
|
+
cellWidth: R,
|
|
58
|
+
cellHeight: D,
|
|
59
|
+
maxFontSize: I,
|
|
60
|
+
minFontSize: j,
|
|
61
|
+
index: x,
|
|
62
|
+
reportRotation: V,
|
|
63
|
+
reportHide: _,
|
|
64
|
+
rotateAll: E,
|
|
65
|
+
hideAll: q
|
|
36
66
|
}) {
|
|
37
|
-
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
|
|
67
|
+
y.removeAttribute("transform"), y.removeAttribute("visibility");
|
|
68
|
+
let f = !1, K = !1;
|
|
69
|
+
y.setAttribute("font-size", I);
|
|
70
|
+
const ee = y.getComputedTextLength();
|
|
71
|
+
if (ee <= R)
|
|
72
|
+
V(x, !1), _(x, !1);
|
|
43
73
|
else {
|
|
44
|
-
const
|
|
45
|
-
|
|
74
|
+
const F = Math.floor(I * R / ee);
|
|
75
|
+
F >= j ? (y.setAttribute("font-size", F), V(x, !1), _(x, !1)) : (V(x, !0), _(x, !1), f = !0);
|
|
46
76
|
}
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
|
|
77
|
+
if (E && (f = !0), f) {
|
|
78
|
+
y.setAttribute("font-size", I);
|
|
79
|
+
const F = y.getBBox(), z = F.x + F.width / 2, ie = F.y + F.height / 2;
|
|
80
|
+
y.setAttribute("transform", `rotate(-90 ${z} ${ie})`);
|
|
81
|
+
const te = y.getBBox().width;
|
|
82
|
+
if (te <= D)
|
|
83
|
+
_(x, !1);
|
|
54
84
|
else {
|
|
55
|
-
const
|
|
56
|
-
|
|
85
|
+
const ne = Math.floor(I * D / te);
|
|
86
|
+
ne >= j ? (y.setAttribute("font-size", ne), _(x, !1)) : (K = !0, _(x, !0));
|
|
57
87
|
}
|
|
58
88
|
}
|
|
59
|
-
(
|
|
89
|
+
(q || K) && y.setAttribute("visibility", "hidden");
|
|
60
90
|
}
|
|
61
|
-
const
|
|
91
|
+
const $l = ["id"], Ml = ["xmlns", "viewBox"], Ol = ["x", "y", "width", "height"], Rl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Fl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Nl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Bl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Dl = ["font-size", "font-weight", "fill", "x", "y"], Hl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Pl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Xl = ["font-size", "fill", "x", "y", "font-weight"], Il = ["font-size", "fill", "x", "y", "font-weight"], Vl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], El = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ul = { key: 6 }, Yl = ["x", "y", "width", "height", "stroke", "stroke-width"], Gl = { class: "vue-ui-heatmap-legend-gauge-right" }, Wl = ["data-value"], jl = { class: "vue-ui-heatmap-gauge-indicator-value" }, ql = {
|
|
62
92
|
key: 4,
|
|
63
93
|
class: "vue-data-ui-watermark"
|
|
64
|
-
},
|
|
94
|
+
}, Kl = { class: "vue-ui-data-table" }, Jl = { key: 0 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = {
|
|
65
95
|
__name: "vue-ui-heatmap",
|
|
66
96
|
props: {
|
|
67
97
|
config: {
|
|
@@ -78,24 +108,24 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
78
108
|
}
|
|
79
109
|
},
|
|
80
110
|
emits: ["selectDatapoint"],
|
|
81
|
-
setup(
|
|
82
|
-
|
|
111
|
+
setup(y, { expose: R, emit: D }) {
|
|
112
|
+
Qt((t) => ({
|
|
83
113
|
v7e341d2a: t.tdo
|
|
84
114
|
}));
|
|
85
|
-
const
|
|
115
|
+
const I = oe(() => import("./Tooltip-DaInVNiV.js")), j = oe(() => import("./BaseIcon-DG6cvf2h.js")), x = oe(() => import("./PenAndPaper-D9LruJaM.js")), V = oe(() => import("./UserOptions-CJXSEhan.js")), _ = oe(() => import("./PackageVersion-CQvYRebC.js")), E = oe(() => import("./BaseDraggableDialog-Cysanw8-.js")), { vue_ui_heatmap: q } = gl(), f = y, K = D, ee = g({
|
|
86
116
|
get() {
|
|
87
|
-
return !!
|
|
117
|
+
return !!f.dataset && f.dataset.length;
|
|
88
118
|
},
|
|
89
119
|
set(t) {
|
|
90
120
|
return t;
|
|
91
121
|
}
|
|
92
|
-
}),
|
|
122
|
+
}), F = d(Ie()), z = d(null), ie = d(!1), te = d(""), ne = d(void 0), re = d(null), Ee = d(0), Ue = d(null), Ye = d(0), kt = d(null), ve = d(null), _e = d(null), Ge = d(null), We = d(null), At = d(null), je = d(null), Ct = d(null), ze = d(null), $e = d(null), Lt = d(null), qe = d(null), le = Zt(null), e = d(Fe());
|
|
93
123
|
function Tt() {
|
|
94
124
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
95
125
|
for (let v = 0; v < o; v += 1) {
|
|
96
126
|
const c = [];
|
|
97
|
-
for (let
|
|
98
|
-
c.push(v +
|
|
127
|
+
for (let k = 0; k < a; k += 1)
|
|
128
|
+
c.push(v + k * 2);
|
|
99
129
|
s.push({
|
|
100
130
|
name: `${t[v]}`,
|
|
101
131
|
values: c
|
|
@@ -103,17 +133,17 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
103
133
|
}
|
|
104
134
|
return s;
|
|
105
135
|
}
|
|
106
|
-
const { loading:
|
|
107
|
-
...
|
|
136
|
+
const { loading: be, FINAL_DATASET: w, manualLoading: Me } = bl({
|
|
137
|
+
...el(f),
|
|
108
138
|
FINAL_CONFIG: e,
|
|
109
|
-
prepareConfig:
|
|
139
|
+
prepareConfig: Fe,
|
|
110
140
|
callback: () => {
|
|
111
141
|
Promise.resolve().then(async () => {
|
|
112
|
-
await
|
|
142
|
+
await Se(), z.value && vl(z.value, { delta: 0.1, delay: 250 });
|
|
113
143
|
});
|
|
114
144
|
},
|
|
115
145
|
skeletonDataset: Tt(),
|
|
116
|
-
skeletonConfig:
|
|
146
|
+
skeletonConfig: ul({
|
|
117
147
|
defaultConfig: e.value,
|
|
118
148
|
userConfig: {
|
|
119
149
|
table: { show: !1 },
|
|
@@ -138,52 +168,52 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
138
168
|
}
|
|
139
169
|
}
|
|
140
170
|
})
|
|
141
|
-
}), { userOptionsVisible:
|
|
171
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: St, keepUserOptionState: Ke } = kl({ config: e.value }), { svgRef: Re } = Al({ config: e.value.style.title });
|
|
142
172
|
function Je(t) {
|
|
143
173
|
St(t);
|
|
144
174
|
}
|
|
145
|
-
function
|
|
175
|
+
function Fe() {
|
|
146
176
|
const t = bt({
|
|
147
|
-
userConfig:
|
|
148
|
-
defaultConfig:
|
|
177
|
+
userConfig: f.config,
|
|
178
|
+
defaultConfig: q
|
|
149
179
|
});
|
|
150
180
|
let s = {};
|
|
151
181
|
return t.theme ? s = {
|
|
152
182
|
...bt({
|
|
153
|
-
userConfig:
|
|
183
|
+
userConfig: Tl.vue_ui_heatmap[t.theme] || f.config,
|
|
154
184
|
defaultConfig: t
|
|
155
185
|
})
|
|
156
|
-
} : s = t,
|
|
186
|
+
} : s = t, f.config && il(f.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = f.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
157
187
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}, { deep: !0 }),
|
|
161
|
-
Array.isArray(t) && t.length > 0 && (
|
|
188
|
+
Ae(() => f.config, (t) => {
|
|
189
|
+
be.value || (e.value = Fe()), Oe.value = !e.value.userOptions.showOnChartHover, Ne(), Ye.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.tooltip.show, ce.value = e.value.style.layout.width, de.value = e.value.style.layout.height;
|
|
190
|
+
}, { deep: !0 }), Ae(() => f.dataset, (t) => {
|
|
191
|
+
Array.isArray(t) && t.length > 0 && (Me.value = !1), Ne();
|
|
162
192
|
}, { deep: !0 });
|
|
163
193
|
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = pl({
|
|
164
|
-
elementId: `heatmap__${
|
|
194
|
+
elementId: `heatmap__${F.value}`,
|
|
165
195
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
166
196
|
options: e.value.userOptions.print
|
|
167
|
-
}), _t =
|
|
197
|
+
}), _t = g(() => e.value.userOptions.show && !e.value.style.title.text), O = d({
|
|
168
198
|
showTable: e.value.table.show,
|
|
169
199
|
showTooltip: e.value.style.tooltip.show
|
|
170
200
|
});
|
|
171
|
-
|
|
172
|
-
|
|
201
|
+
Ae(e, () => {
|
|
202
|
+
O.value = {
|
|
173
203
|
showTable: e.value.table.show,
|
|
174
204
|
showTooltip: e.value.style.tooltip.show
|
|
175
205
|
};
|
|
176
206
|
}, { immediate: !0 });
|
|
177
|
-
const zt =
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
207
|
+
const zt = g(() => e.value.table.responsiveBreakpoint), U = d(null), lt = g(() => !!e.value.debug);
|
|
208
|
+
function Ne() {
|
|
209
|
+
if (gt(f.dataset) && (pt({
|
|
180
210
|
componentName: "VueUiHeatmap",
|
|
181
211
|
type: "dataset",
|
|
182
212
|
debug: lt.value
|
|
183
|
-
}),
|
|
184
|
-
const t =
|
|
185
|
-
const { width: s, height: a } =
|
|
186
|
-
chart:
|
|
213
|
+
}), ee.value = !1, Me.value = !0), gt(f.dataset) || (Me.value = e.value.loading), e.value.responsive) {
|
|
214
|
+
const t = Te(() => {
|
|
215
|
+
const { width: s, height: a } = fl({
|
|
216
|
+
chart: z.value,
|
|
187
217
|
title: e.value.style.title.text ? Ge.value : null,
|
|
188
218
|
// add legend hirizontal in legend attr
|
|
189
219
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
@@ -191,101 +221,101 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
191
221
|
noTitle: We.value
|
|
192
222
|
});
|
|
193
223
|
requestAnimationFrame(() => {
|
|
194
|
-
|
|
224
|
+
ce.value = s, de.value = a;
|
|
195
225
|
});
|
|
196
226
|
});
|
|
197
|
-
|
|
227
|
+
U.value && (le.value && U.value.unobserve(le.value), U.value.disconnect()), U.value = new ResizeObserver(t), le.value = z.value.parentNode, U.value.observe(le.value);
|
|
198
228
|
}
|
|
199
229
|
}
|
|
200
230
|
dt(() => {
|
|
201
|
-
|
|
202
|
-
}),
|
|
203
|
-
|
|
231
|
+
U.value && (le.value && U.value.unobserve(le.value), U.value.disconnect());
|
|
232
|
+
}), tl(() => {
|
|
233
|
+
Ne();
|
|
204
234
|
});
|
|
205
|
-
const
|
|
206
|
-
width: Math.max(10,
|
|
207
|
-
height: Math.max(10,
|
|
208
|
-
})),
|
|
209
|
-
|
|
235
|
+
const H = g(() => Math.max(...w.value.flatMap((t) => (t.values || []).length))), ce = d(e.value.style.layout.width), de = d(e.value.style.layout.height), $ = g(() => ({
|
|
236
|
+
width: Math.max(10, ce.value),
|
|
237
|
+
height: Math.max(10, de.value)
|
|
238
|
+
})), he = d(0), $t = Te((t) => {
|
|
239
|
+
he.value = t;
|
|
210
240
|
}, 100);
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
|
|
241
|
+
Ve({ elementRef: ze, callback: $t, attr: "height" });
|
|
242
|
+
const ae = d(0), Mt = Te((t) => {
|
|
243
|
+
ae.value = t;
|
|
214
244
|
}, 100);
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
|
|
245
|
+
Ve({ elementRef: je, callback: Mt, attr: "width" });
|
|
246
|
+
const me = d(0), Ot = Te((t) => {
|
|
247
|
+
me.value = t;
|
|
218
248
|
}, 100);
|
|
219
|
-
|
|
220
|
-
|
|
249
|
+
Ve({ elementRef: $e, callback: Ot, attr: "height" }), dt(() => {
|
|
250
|
+
he.value = 0, ae.value = 0, me.value = 0;
|
|
221
251
|
});
|
|
222
|
-
const r =
|
|
252
|
+
const r = g(() => Math.min($.value.height, $.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
|
|
223
253
|
let t = 0;
|
|
224
254
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
225
|
-
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v =
|
|
226
|
-
x: r.value *
|
|
227
|
-
y: r.value * ((
|
|
228
|
-
},
|
|
229
|
-
width: Math.max(3,
|
|
230
|
-
height: Math.max(3, h / (
|
|
255
|
+
const s = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, o = e.value.style.layout.dataLabels.xAxis.fontSize / 2, v = $.value.height - s.top - s.bottom - he.value - a, c = $.value.width / 60, k = {
|
|
256
|
+
x: r.value * H.value,
|
|
257
|
+
y: r.value * ((w.value || []).length + 1)
|
|
258
|
+
}, P = $.value.width - s.left - s.right - k.x - c * 2 - 2 - t - ae.value, h = v - c - k.y - me.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, C = {
|
|
259
|
+
width: Math.max(3, P / H.value),
|
|
260
|
+
height: Math.max(3, h / (w.value.length ?? 1))
|
|
231
261
|
};
|
|
232
262
|
return {
|
|
233
|
-
top: s.top +
|
|
234
|
-
topLabelsHeight:
|
|
263
|
+
top: s.top + he.value + c + a,
|
|
264
|
+
topLabelsHeight: he.value,
|
|
235
265
|
sumCellXHeight: c,
|
|
236
266
|
height: h,
|
|
237
|
-
left: s.left +
|
|
267
|
+
left: s.left + ae.value + c / 2,
|
|
238
268
|
right: s.right - t,
|
|
239
|
-
bottom:
|
|
240
|
-
width:
|
|
241
|
-
cellSize:
|
|
269
|
+
bottom: $.value.height - s.bottom - me.value,
|
|
270
|
+
width: P,
|
|
271
|
+
cellSize: C
|
|
242
272
|
};
|
|
243
|
-
}),
|
|
244
|
-
const t =
|
|
273
|
+
}), Y = g(() => Math.max(...w.value.flatMap((t) => t.values))), ye = g(() => Math.min(...w.value.flatMap((t) => t.values))), J = g(() => {
|
|
274
|
+
const t = w.value.flatMap((a) => a.values);
|
|
245
275
|
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
246
|
-
}), Rt =
|
|
247
|
-
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values :
|
|
248
|
-
maxDatapoints:
|
|
276
|
+
}), Rt = g(() => mt({
|
|
277
|
+
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : w.value.map((t) => t.name),
|
|
278
|
+
maxDatapoints: w.value.length,
|
|
249
279
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
250
280
|
start: 0,
|
|
251
|
-
end:
|
|
252
|
-
})), Ft =
|
|
281
|
+
end: w.value.length
|
|
282
|
+
})), Ft = g(() => mt({
|
|
253
283
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
254
|
-
maxDatapoints:
|
|
284
|
+
maxDatapoints: H.value,
|
|
255
285
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
256
286
|
start: 0,
|
|
257
|
-
end:
|
|
258
|
-
})),
|
|
259
|
-
const t = Rt.value.map((h) => h.text), s = Ft.value.map((h) => h.text), a =
|
|
260
|
-
for (let h = 0; h <
|
|
261
|
-
c.push(
|
|
262
|
-
const
|
|
287
|
+
end: H.value
|
|
288
|
+
})), m = g(() => {
|
|
289
|
+
const t = Rt.value.map((h) => h.text), s = Ft.value.map((h) => h.text), a = w.value.map((h) => h.values.reduce((C, Pe) => C + Pe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
290
|
+
for (let h = 0; h < H.value; h += 1)
|
|
291
|
+
c.push(w.value.map((C) => C.values[h] || 0).reduce((C, Pe) => C + Pe, 0));
|
|
292
|
+
const k = Math.max(...c), P = Math.min(...c);
|
|
263
293
|
return {
|
|
264
294
|
yTotals: a.map((h) => {
|
|
265
|
-
const
|
|
295
|
+
const C = isNaN(h / o) ? 0 : h / o;
|
|
266
296
|
return {
|
|
267
297
|
total: h,
|
|
268
|
-
proportion:
|
|
269
|
-
color:
|
|
298
|
+
proportion: C,
|
|
299
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o, h)
|
|
270
300
|
};
|
|
271
301
|
}),
|
|
272
302
|
xTotals: c.map((h) => {
|
|
273
|
-
const
|
|
303
|
+
const C = isNaN(h / k) ? 0 : h / k;
|
|
274
304
|
return {
|
|
275
305
|
total: h,
|
|
276
|
-
proportion:
|
|
277
|
-
color:
|
|
306
|
+
proportion: C,
|
|
307
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, P, k, h)
|
|
278
308
|
};
|
|
279
309
|
}),
|
|
280
310
|
yLabels: t,
|
|
281
|
-
xLabels: s.slice(0,
|
|
311
|
+
xLabels: s.slice(0, H.value)
|
|
282
312
|
};
|
|
283
|
-
}),
|
|
284
|
-
|
|
313
|
+
}), Q = g(() => (w.value.forEach((t, s) => {
|
|
314
|
+
nl({
|
|
285
315
|
datasetObject: t,
|
|
286
316
|
requiredAttributes: ["values"]
|
|
287
317
|
}).forEach((a) => {
|
|
288
|
-
|
|
318
|
+
pt({
|
|
289
319
|
componentName: "VueUiHeatmap",
|
|
290
320
|
type: "datasetSerieAttribute",
|
|
291
321
|
property: "values",
|
|
@@ -293,138 +323,138 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
293
323
|
debug: lt.value
|
|
294
324
|
});
|
|
295
325
|
});
|
|
296
|
-
}),
|
|
326
|
+
}), w.value.map((t, s) => ({
|
|
297
327
|
...t,
|
|
298
|
-
temperatures: (t.values || []).map((a, o) => a >=
|
|
328
|
+
temperatures: (t.values || []).map((a, o) => a >= J.value ? {
|
|
299
329
|
side: "up",
|
|
300
|
-
color:
|
|
301
|
-
ratio: Math.abs(Math.abs(a -
|
|
330
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, Y.value, a),
|
|
331
|
+
ratio: Math.abs(Math.abs(a - J.value) / Math.abs(Y.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(a - J.value) / Math.abs(Y.value - J.value)),
|
|
302
332
|
value: a,
|
|
303
|
-
yAxisName:
|
|
304
|
-
xAxisName:
|
|
305
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
333
|
+
yAxisName: m.value.yLabels[s],
|
|
334
|
+
xAxisName: m.value.xLabels[o],
|
|
335
|
+
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
306
336
|
} : {
|
|
307
337
|
side: "down",
|
|
308
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(
|
|
309
|
-
color:
|
|
338
|
+
ratio: Math.abs(1 - Math.abs(a) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(J.value)),
|
|
339
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, Y.value, a),
|
|
310
340
|
value: a,
|
|
311
|
-
yAxisName:
|
|
312
|
-
xAxisName:
|
|
313
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
341
|
+
yAxisName: m.value.yLabels[s],
|
|
342
|
+
xAxisName: m.value.xLabels[o],
|
|
343
|
+
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
314
344
|
})
|
|
315
|
-
})))), at =
|
|
316
|
-
function
|
|
345
|
+
})))), at = g(() => w.value.length), ot = ht(Array(at.value * H.value || 1).fill(!1)), Nt = g(() => ot.some((t) => t));
|
|
346
|
+
function Bt(t, s) {
|
|
317
347
|
ot[t] = s;
|
|
318
348
|
}
|
|
319
|
-
const st = ht(Array(at.value *
|
|
320
|
-
function
|
|
349
|
+
const st = ht(Array(at.value * H.value || 1).fill(!1)), Dt = g(() => st.some((t) => t));
|
|
350
|
+
function Ht(t, s) {
|
|
321
351
|
st[t] = s;
|
|
322
352
|
}
|
|
323
|
-
const
|
|
324
|
-
function
|
|
325
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }),
|
|
326
|
-
const { value: v, yAxisName: c, xAxisName:
|
|
327
|
-
|
|
353
|
+
const N = d(null), xe = d(null);
|
|
354
|
+
function Pt(t, s, a, o) {
|
|
355
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), re.value = { x: a, y: o };
|
|
356
|
+
const { value: v, yAxisName: c, xAxisName: k, id: P } = t;
|
|
357
|
+
ne.value = P, N.value = v, xe.value = {
|
|
328
358
|
datapoint: t,
|
|
329
359
|
seriesIndex: s,
|
|
330
|
-
series:
|
|
360
|
+
series: Q.value,
|
|
331
361
|
config: e.value
|
|
332
|
-
},
|
|
362
|
+
}, ie.value = !0;
|
|
333
363
|
let h = "";
|
|
334
|
-
const
|
|
335
|
-
|
|
364
|
+
const C = e.value.style.tooltip.customFormat;
|
|
365
|
+
hl(C) && yl(() => C({
|
|
336
366
|
datapoint: t,
|
|
337
367
|
seriesIndex: s,
|
|
338
|
-
series:
|
|
368
|
+
series: Q.value,
|
|
339
369
|
config: e.value
|
|
340
|
-
})) ?
|
|
370
|
+
})) ? te.value = C({
|
|
341
371
|
datapoint: t,
|
|
342
372
|
seriesIndex: s,
|
|
343
|
-
series:
|
|
373
|
+
series: Q.value,
|
|
344
374
|
config: e.value
|
|
345
|
-
}) : (h += `<div>${c} ${
|
|
375
|
+
}) : (h += `<div>${c} ${k ? c ? ` - ${k}` : `${k}` : ""}</div>`, h += `<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:${pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ye.value, Y.value, v)}">⬤</span><span>${isNaN(v) ? "-" : G(
|
|
346
376
|
e.value.style.layout.cells.value.formatter,
|
|
347
377
|
v,
|
|
348
|
-
|
|
378
|
+
X({
|
|
349
379
|
p: e.value.style.layout.dataLabels.prefix,
|
|
350
380
|
v,
|
|
351
381
|
s: e.value.style.layout.dataLabels.suffix,
|
|
352
382
|
r: e.value.style.tooltip.roundingValue
|
|
353
383
|
}),
|
|
354
384
|
{ datapoint: t, seriesIndex: s }
|
|
355
|
-
)}</span></div>`,
|
|
385
|
+
)}</span></div>`, te.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
356
386
|
}
|
|
357
|
-
function
|
|
358
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
387
|
+
function Xt({ datapoint: t, seriesIndex: s }) {
|
|
388
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ie.value = !1, ne.value = void 0, N.value = null, re.value = null;
|
|
359
389
|
}
|
|
360
|
-
function
|
|
361
|
-
return
|
|
390
|
+
function It(t) {
|
|
391
|
+
return G(
|
|
362
392
|
e.value.style.layout.cells.value.formatter,
|
|
363
|
-
|
|
364
|
-
|
|
393
|
+
m.value.yTotals[t].total,
|
|
394
|
+
X({
|
|
365
395
|
p: e.value.style.layout.dataLabels.prefix,
|
|
366
|
-
v:
|
|
396
|
+
v: m.value.yTotals[t].total,
|
|
367
397
|
s: e.value.style.layout.dataLabels.suffix,
|
|
368
398
|
r: e.value.style.layout.cells.value.roundingValue
|
|
369
399
|
}),
|
|
370
|
-
{ datapoint:
|
|
400
|
+
{ datapoint: m.value.yTotals[t], rowIndex: t }
|
|
371
401
|
);
|
|
372
402
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
403
|
+
function Vt(t) {
|
|
404
|
+
return G(
|
|
375
405
|
e.value.style.layout.cells.value.formatter,
|
|
376
|
-
|
|
377
|
-
|
|
406
|
+
m.value.xTotals[t].total,
|
|
407
|
+
X({
|
|
378
408
|
p: e.value.style.layout.dataLabels.prefix,
|
|
379
|
-
v:
|
|
409
|
+
v: m.value.xTotals[t].total,
|
|
380
410
|
s: e.value.style.layout.dataLabels.suffix,
|
|
381
411
|
r: e.value.style.layout.cells.value.roundingValue
|
|
382
412
|
}),
|
|
383
|
-
{ datapoint:
|
|
413
|
+
{ datapoint: m.value.xTotals[t], colIndex: t }
|
|
384
414
|
);
|
|
385
415
|
}
|
|
386
|
-
|
|
387
|
-
const t =
|
|
416
|
+
g(() => {
|
|
417
|
+
const t = w.value.map((a) => ({
|
|
388
418
|
name: a.name
|
|
389
|
-
})), s =
|
|
419
|
+
})), s = w.value.map((a) => a.values);
|
|
390
420
|
return { head: t, body: s };
|
|
391
421
|
});
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
-
const s = ["", ...
|
|
395
|
-
for (let c = 0; c <
|
|
396
|
-
const
|
|
397
|
-
for (let
|
|
398
|
-
|
|
399
|
-
a.push(
|
|
422
|
+
function Be(t = null) {
|
|
423
|
+
Se(() => {
|
|
424
|
+
const s = ["", ...w.value.map((c, k) => c.name)], a = [];
|
|
425
|
+
for (let c = 0; c < m.value.xLabels.length; c += 1) {
|
|
426
|
+
const k = [m.value.xLabels[c]];
|
|
427
|
+
for (let P = 0; P < w.value.length; P += 1)
|
|
428
|
+
k.push([w.value[P].values[c]]);
|
|
429
|
+
a.push(k);
|
|
400
430
|
}
|
|
401
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v =
|
|
402
|
-
t ? t(v) :
|
|
431
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v = cl(o);
|
|
432
|
+
t ? t(v) : dl({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
403
433
|
});
|
|
404
434
|
}
|
|
405
|
-
const
|
|
435
|
+
const Z = d(!1);
|
|
406
436
|
function ut(t) {
|
|
407
|
-
|
|
437
|
+
Z.value = t, Ee.value += 1;
|
|
408
438
|
}
|
|
409
439
|
function it() {
|
|
410
|
-
|
|
440
|
+
O.value.showTable = !O.value.showTable;
|
|
411
441
|
}
|
|
412
442
|
function nt() {
|
|
413
|
-
|
|
443
|
+
O.value.showTooltip = !O.value.showTooltip;
|
|
414
444
|
}
|
|
415
|
-
const
|
|
416
|
-
function
|
|
417
|
-
|
|
445
|
+
const we = d(!1);
|
|
446
|
+
function De() {
|
|
447
|
+
we.value = !we.value;
|
|
418
448
|
}
|
|
419
449
|
function Et(t, s) {
|
|
420
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }),
|
|
450
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), K("selectDatapoint", t);
|
|
421
451
|
}
|
|
422
452
|
function Ut() {
|
|
423
|
-
return
|
|
453
|
+
return Q.value;
|
|
424
454
|
}
|
|
425
455
|
async function Yt({ scale: t = 2 } = {}) {
|
|
426
|
-
if (!
|
|
427
|
-
const { width: s, height: a } =
|
|
456
|
+
if (!z.value) return;
|
|
457
|
+
const { width: s, height: a } = z.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Cl({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
428
458
|
return {
|
|
429
459
|
imageUri: v,
|
|
430
460
|
base64: c,
|
|
@@ -434,12 +464,12 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
434
464
|
aspectRatio: o
|
|
435
465
|
};
|
|
436
466
|
}
|
|
437
|
-
const rt =
|
|
467
|
+
const rt = g(() => ({
|
|
438
468
|
start: 0,
|
|
439
|
-
end:
|
|
440
|
-
})), vt =
|
|
469
|
+
end: H.value
|
|
470
|
+
})), vt = g(() => m.value.xLabels);
|
|
441
471
|
xt({
|
|
442
|
-
timeLabelsEls:
|
|
472
|
+
timeLabelsEls: ze,
|
|
443
473
|
timeLabels: vt,
|
|
444
474
|
slicer: rt,
|
|
445
475
|
configRef: e,
|
|
@@ -448,10 +478,10 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
448
478
|
isAutoSize: !1,
|
|
449
479
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
450
480
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
451
|
-
width:
|
|
452
|
-
height:
|
|
481
|
+
width: ce,
|
|
482
|
+
height: de
|
|
453
483
|
}), xt({
|
|
454
|
-
timeLabelsEls:
|
|
484
|
+
timeLabelsEls: $e,
|
|
455
485
|
timeLabels: vt,
|
|
456
486
|
slicer: rt,
|
|
457
487
|
configRef: e,
|
|
@@ -460,21 +490,21 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
460
490
|
isAutoSize: !1,
|
|
461
491
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
462
492
|
rotation: e.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
463
|
-
width:
|
|
464
|
-
height:
|
|
493
|
+
width: ce,
|
|
494
|
+
height: de
|
|
465
495
|
});
|
|
466
|
-
const
|
|
467
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
496
|
+
const ke = g(() => {
|
|
497
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = O.value.showTable;
|
|
468
498
|
return {
|
|
469
|
-
component: t ?
|
|
499
|
+
component: t ? E : Sl,
|
|
470
500
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
471
501
|
props: t ? {
|
|
472
502
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
473
503
|
color: e.value.table.th.color,
|
|
474
504
|
headerColor: e.value.table.th.color,
|
|
475
505
|
headerBg: e.value.table.th.backgroundColor,
|
|
476
|
-
isFullscreen:
|
|
477
|
-
fullscreenParent:
|
|
506
|
+
isFullscreen: Z.value,
|
|
507
|
+
fullscreenParent: z.value,
|
|
478
508
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
479
509
|
} : {
|
|
480
510
|
hideDetails: !0,
|
|
@@ -493,15 +523,15 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
493
523
|
}
|
|
494
524
|
};
|
|
495
525
|
});
|
|
496
|
-
|
|
497
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
526
|
+
Ae(() => O.value.showTable, async (t) => {
|
|
527
|
+
e.value.table.show || (t && e.value.table.useDialog && ve.value ? (await Se(), ve.value.open()) : "close" in ve.value && ve.value.close());
|
|
498
528
|
});
|
|
499
|
-
const { isResponsive: Gt } =
|
|
529
|
+
const { isResponsive: Gt } = wl(Ue, zt);
|
|
500
530
|
function He() {
|
|
501
|
-
|
|
531
|
+
O.value.showTable = !1, _e.value && _e.value.setTableIconState(!1);
|
|
502
532
|
}
|
|
503
|
-
const Wt =
|
|
504
|
-
svg:
|
|
533
|
+
const Wt = g(() => e.value.style.backgroundColor), jt = g(() => e.value.style.title), { exportSvg: qt, getSvg: Kt } = xl({
|
|
534
|
+
svg: Re,
|
|
505
535
|
title: jt,
|
|
506
536
|
backgroundColor: Wt
|
|
507
537
|
});
|
|
@@ -512,48 +542,48 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
512
542
|
} else
|
|
513
543
|
qt();
|
|
514
544
|
}
|
|
515
|
-
return
|
|
545
|
+
return R({
|
|
516
546
|
getData: Ut,
|
|
517
547
|
getImage: Yt,
|
|
518
548
|
generatePdf: et,
|
|
519
|
-
generateCsv:
|
|
549
|
+
generateCsv: Be,
|
|
520
550
|
generateImage: tt,
|
|
521
551
|
generateSvg: ct,
|
|
522
552
|
toggleTable: it,
|
|
523
553
|
toggleTooltip: nt,
|
|
524
|
-
toggleAnnotator:
|
|
554
|
+
toggleAnnotator: De,
|
|
525
555
|
toggleFullscreen: ut
|
|
526
556
|
}), (t, s) => (u(), n("div", {
|
|
527
557
|
ref_key: "heatmapChart",
|
|
528
|
-
ref:
|
|
529
|
-
class:
|
|
530
|
-
style:
|
|
531
|
-
id: `heatmap__${
|
|
558
|
+
ref: z,
|
|
559
|
+
class: fe(`vue-data-ui-component vue-ui-heatmap ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
560
|
+
style: A(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
561
|
+
id: `heatmap__${F.value}`,
|
|
532
562
|
onMouseenter: s[1] || (s[1] = () => Je(!0)),
|
|
533
563
|
onMouseleave: s[2] || (s[2] = () => Je(!1))
|
|
534
564
|
}, [
|
|
535
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
565
|
+
e.value.userOptions.buttons.annotator ? (u(), ge(i(x), {
|
|
536
566
|
key: 0,
|
|
537
|
-
svgRef: i(
|
|
567
|
+
svgRef: i(Re),
|
|
538
568
|
backgroundColor: e.value.style.backgroundColor,
|
|
539
569
|
color: e.value.style.color,
|
|
540
|
-
active:
|
|
541
|
-
onClose:
|
|
542
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
570
|
+
active: we.value,
|
|
571
|
+
onClose: De
|
|
572
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
543
573
|
_t.value ? (u(), n("div", {
|
|
544
574
|
key: 1,
|
|
545
575
|
ref_key: "noTitle",
|
|
546
576
|
ref: We,
|
|
547
577
|
class: "vue-data-ui-no-title-space",
|
|
548
578
|
style: "height:36px; width: 100%;background:transparent"
|
|
549
|
-
}, null, 512)) :
|
|
579
|
+
}, null, 512)) : p("", !0),
|
|
550
580
|
e.value.style.title.text ? (u(), n("div", {
|
|
551
581
|
key: 2,
|
|
552
582
|
ref_key: "chartTitle",
|
|
553
583
|
ref: Ge,
|
|
554
584
|
style: "width:100%;background:transparent"
|
|
555
585
|
}, [
|
|
556
|
-
(u(),
|
|
586
|
+
(u(), ge(Ll, {
|
|
557
587
|
key: `title_${Ye.value}`,
|
|
558
588
|
config: {
|
|
559
589
|
title: {
|
|
@@ -566,16 +596,16 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
566
596
|
}
|
|
567
597
|
}
|
|
568
598
|
}, null, 8, ["config"]))
|
|
569
|
-
], 512)) :
|
|
570
|
-
e.value.userOptions.show &&
|
|
599
|
+
], 512)) : p("", !0),
|
|
600
|
+
e.value.userOptions.show && ee.value && (i(Ke) || i(Oe)) ? (u(), ge(i(V), {
|
|
571
601
|
ref_key: "userOptionsRef",
|
|
572
|
-
ref:
|
|
602
|
+
ref: _e,
|
|
573
603
|
key: `user_options_${Ee.value}`,
|
|
574
604
|
backgroundColor: e.value.style.backgroundColor,
|
|
575
605
|
color: e.value.style.color,
|
|
576
606
|
isImaging: i(Ze),
|
|
577
607
|
isPrinting: i(Qe),
|
|
578
|
-
uid:
|
|
608
|
+
uid: F.value,
|
|
579
609
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
580
610
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
581
611
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -583,104 +613,104 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
583
613
|
hasXls: e.value.userOptions.buttons.csv,
|
|
584
614
|
hasTable: e.value.userOptions.buttons.table,
|
|
585
615
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
586
|
-
isFullscreen:
|
|
587
|
-
isTooltip:
|
|
616
|
+
isFullscreen: Z.value,
|
|
617
|
+
isTooltip: O.value.showTooltip,
|
|
588
618
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
589
|
-
chartElement:
|
|
619
|
+
chartElement: z.value,
|
|
590
620
|
position: e.value.userOptions.position,
|
|
591
621
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
592
|
-
isAnnotation:
|
|
622
|
+
isAnnotation: we.value,
|
|
593
623
|
callbacks: e.value.userOptions.callbacks,
|
|
594
624
|
printScale: e.value.userOptions.print.scale,
|
|
595
625
|
tableDialog: e.value.table.useDialog,
|
|
596
626
|
onToggleFullscreen: ut,
|
|
597
627
|
onGeneratePdf: i(et),
|
|
598
|
-
onGenerateCsv:
|
|
628
|
+
onGenerateCsv: Be,
|
|
599
629
|
onGenerateImage: i(tt),
|
|
600
630
|
onGenerateSvg: ct,
|
|
601
631
|
onToggleTable: it,
|
|
602
632
|
onToggleTooltip: nt,
|
|
603
|
-
onToggleAnnotator:
|
|
604
|
-
style:
|
|
605
|
-
visibility: i(Ke) ? i(
|
|
633
|
+
onToggleAnnotator: De,
|
|
634
|
+
style: A({
|
|
635
|
+
visibility: i(Ke) ? i(Oe) ? "visible" : "hidden" : "visible"
|
|
606
636
|
})
|
|
607
637
|
}, yt({ _: 2 }, [
|
|
608
638
|
t.$slots.menuIcon ? {
|
|
609
639
|
name: "menuIcon",
|
|
610
|
-
fn:
|
|
611
|
-
|
|
640
|
+
fn: M(({ isOpen: a, color: o }) => [
|
|
641
|
+
T(t.$slots, "menuIcon", se(ue({ isOpen: a, color: o })), void 0, !0)
|
|
612
642
|
]),
|
|
613
643
|
key: "0"
|
|
614
644
|
} : void 0,
|
|
615
645
|
t.$slots.optionTooltip ? {
|
|
616
646
|
name: "optionTooltip",
|
|
617
|
-
fn:
|
|
618
|
-
|
|
647
|
+
fn: M(() => [
|
|
648
|
+
T(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
619
649
|
]),
|
|
620
650
|
key: "1"
|
|
621
651
|
} : void 0,
|
|
622
652
|
t.$slots.optionPdf ? {
|
|
623
653
|
name: "optionPdf",
|
|
624
|
-
fn:
|
|
625
|
-
|
|
654
|
+
fn: M(() => [
|
|
655
|
+
T(t.$slots, "optionPdf", {}, void 0, !0)
|
|
626
656
|
]),
|
|
627
657
|
key: "2"
|
|
628
658
|
} : void 0,
|
|
629
659
|
t.$slots.optionCsv ? {
|
|
630
660
|
name: "optionCsv",
|
|
631
|
-
fn:
|
|
632
|
-
|
|
661
|
+
fn: M(() => [
|
|
662
|
+
T(t.$slots, "optionCsv", {}, void 0, !0)
|
|
633
663
|
]),
|
|
634
664
|
key: "3"
|
|
635
665
|
} : void 0,
|
|
636
666
|
t.$slots.optionImg ? {
|
|
637
667
|
name: "optionImg",
|
|
638
|
-
fn:
|
|
639
|
-
|
|
668
|
+
fn: M(() => [
|
|
669
|
+
T(t.$slots, "optionImg", {}, void 0, !0)
|
|
640
670
|
]),
|
|
641
671
|
key: "4"
|
|
642
672
|
} : void 0,
|
|
643
673
|
t.$slots.optionTable ? {
|
|
644
674
|
name: "optionTable",
|
|
645
|
-
fn:
|
|
646
|
-
|
|
675
|
+
fn: M(() => [
|
|
676
|
+
T(t.$slots, "optionTable", {}, void 0, !0)
|
|
647
677
|
]),
|
|
648
678
|
key: "5"
|
|
649
679
|
} : void 0,
|
|
650
680
|
t.$slots.optionFullscreen ? {
|
|
651
681
|
name: "optionFullscreen",
|
|
652
|
-
fn:
|
|
653
|
-
|
|
682
|
+
fn: M(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
683
|
+
T(t.$slots, "optionFullscreen", se(ue({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
654
684
|
]),
|
|
655
685
|
key: "6"
|
|
656
686
|
} : void 0,
|
|
657
687
|
t.$slots.optionAnnotator ? {
|
|
658
688
|
name: "optionAnnotator",
|
|
659
|
-
fn:
|
|
660
|
-
|
|
689
|
+
fn: M(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
690
|
+
T(t.$slots, "optionAnnotator", se(ue({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
661
691
|
]),
|
|
662
692
|
key: "7"
|
|
663
693
|
} : void 0
|
|
664
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
665
|
-
|
|
666
|
-
class:
|
|
694
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
695
|
+
b("div", {
|
|
696
|
+
class: fe({
|
|
667
697
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
668
698
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
669
699
|
})
|
|
670
700
|
}, [
|
|
671
701
|
(u(), n("svg", {
|
|
672
702
|
ref_key: "svgRef",
|
|
673
|
-
ref:
|
|
674
|
-
xmlns: i(
|
|
675
|
-
class:
|
|
676
|
-
viewBox: `0 0 ${
|
|
703
|
+
ref: Re,
|
|
704
|
+
xmlns: i(rl),
|
|
705
|
+
class: fe({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
706
|
+
viewBox: `0 0 ${$.value.width} ${$.value.height}`,
|
|
677
707
|
width: "100%",
|
|
678
|
-
style:
|
|
708
|
+
style: A(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
679
709
|
"aria-live": "polite",
|
|
680
710
|
role: "img",
|
|
681
711
|
preserveAspectRatio: "xMidYMid"
|
|
682
712
|
}, [
|
|
683
|
-
|
|
713
|
+
Ce(i(_)),
|
|
684
714
|
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
685
715
|
key: 0,
|
|
686
716
|
x: l.value.left,
|
|
@@ -691,39 +721,39 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
691
721
|
pointerEvents: "none"
|
|
692
722
|
}
|
|
693
723
|
}, [
|
|
694
|
-
|
|
695
|
-
], 8,
|
|
724
|
+
T(t.$slots, "chart-background", {}, void 0, !0)
|
|
725
|
+
], 8, Ol)) : p("", !0),
|
|
696
726
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
697
727
|
key: 1,
|
|
698
728
|
ref_key: "xAxisSumRects",
|
|
699
729
|
ref: Lt
|
|
700
730
|
}, [
|
|
701
|
-
(u(!0), n(
|
|
731
|
+
(u(!0), n(L, null, B(m.value.xTotals, (a, o) => (u(), n("rect", {
|
|
702
732
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
703
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
733
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * ($.value.height / $.value.width),
|
|
704
734
|
height: l.value.sumCellXHeight,
|
|
705
735
|
width: l.value.cellSize.width - r.value,
|
|
706
736
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
707
737
|
stroke: e.value.style.backgroundColor,
|
|
708
738
|
"stroke-width": r.value
|
|
709
|
-
}, null, 8,
|
|
710
|
-
(u(!0), n(
|
|
739
|
+
}, null, 8, Rl))), 256)),
|
|
740
|
+
(u(!0), n(L, null, B(m.value.xTotals, (a, o) => (u(), n("rect", {
|
|
711
741
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
712
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
742
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * ($.value.height / $.value.width),
|
|
713
743
|
height: l.value.sumCellXHeight,
|
|
714
744
|
width: l.value.cellSize.width - r.value,
|
|
715
745
|
fill: a.color,
|
|
716
746
|
stroke: e.value.style.backgroundColor,
|
|
717
747
|
"stroke-width": r.value
|
|
718
|
-
}, null, 8,
|
|
719
|
-
], 512)) :
|
|
720
|
-
|
|
748
|
+
}, null, 8, Fl))), 256))
|
|
749
|
+
], 512)) : p("", !0),
|
|
750
|
+
b("g", {
|
|
721
751
|
ref_key: "datapoints",
|
|
722
752
|
ref: kt
|
|
723
753
|
}, [
|
|
724
|
-
(u(!0), n(
|
|
725
|
-
(u(!0), n(
|
|
726
|
-
|
|
754
|
+
(u(!0), n(L, null, B(Q.value, (a, o) => (u(), n(L, null, [
|
|
755
|
+
(u(!0), n(L, null, B(a.temperatures, (v, c) => (u(), n("g", null, [
|
|
756
|
+
b("rect", {
|
|
727
757
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
728
758
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
729
759
|
width: l.value.cellSize.width - r.value,
|
|
@@ -731,8 +761,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
731
761
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
732
762
|
stroke: e.value.style.backgroundColor,
|
|
733
763
|
"stroke-width": r.value
|
|
734
|
-
}, null, 8,
|
|
735
|
-
|
|
764
|
+
}, null, 8, Nl),
|
|
765
|
+
b("rect", {
|
|
736
766
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
737
767
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
738
768
|
width: l.value.cellSize.width - r.value,
|
|
@@ -740,24 +770,24 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
740
770
|
fill: v.color,
|
|
741
771
|
stroke: e.value.style.backgroundColor,
|
|
742
772
|
"stroke-width": r.value,
|
|
743
|
-
onMouseover: (
|
|
744
|
-
onMouseout: () =>
|
|
773
|
+
onMouseover: (k) => Pt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
774
|
+
onMouseout: () => Xt({ datapoint: v, seriesIndex: o }),
|
|
745
775
|
onClick: () => Et(v, o)
|
|
746
|
-
}, null, 40,
|
|
776
|
+
}, null, 40, Bl),
|
|
747
777
|
e.value.style.layout.cells.value.show ? ft((u(), n("text", {
|
|
748
778
|
key: 0,
|
|
749
779
|
"text-anchor": "middle",
|
|
750
780
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
751
781
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
752
|
-
fill: i(
|
|
782
|
+
fill: i(Le)(v.color),
|
|
753
783
|
x: l.value.left + l.value.cellSize.width * c + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
|
|
754
784
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
755
785
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
756
786
|
}, [
|
|
757
|
-
|
|
787
|
+
Xe(S(i(G)(
|
|
758
788
|
e.value.style.layout.cells.value.formatter,
|
|
759
789
|
v.value,
|
|
760
|
-
i(
|
|
790
|
+
i(X)({
|
|
761
791
|
p: e.value.style.layout.dataLabels.prefix,
|
|
762
792
|
v: v.value,
|
|
763
793
|
s: e.value.style.layout.dataLabels.suffix,
|
|
@@ -765,19 +795,19 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
765
795
|
}),
|
|
766
796
|
{ datapoint: v }
|
|
767
797
|
)), 1)
|
|
768
|
-
], 8,
|
|
769
|
-
[i(
|
|
798
|
+
], 8, Dl)), [
|
|
799
|
+
[i(zl), {
|
|
770
800
|
cellWidth: l.value.cellSize.width - r.value,
|
|
771
801
|
cellHeight: l.value.cellSize.height - r.value,
|
|
772
802
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
773
803
|
minFontSize: 10,
|
|
774
|
-
index: o *
|
|
775
|
-
reportHide:
|
|
776
|
-
reportRotation:
|
|
777
|
-
hideAll:
|
|
778
|
-
rotateAll:
|
|
804
|
+
index: o * H.value + c,
|
|
805
|
+
reportHide: Ht,
|
|
806
|
+
reportRotation: Bt,
|
|
807
|
+
hideAll: Dt.value,
|
|
808
|
+
rotateAll: Nt.value
|
|
779
809
|
}]
|
|
780
|
-
]) :
|
|
810
|
+
]) : p("", !0)
|
|
781
811
|
]))), 256))
|
|
782
812
|
], 64))), 256))
|
|
783
813
|
], 512),
|
|
@@ -786,8 +816,8 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
786
816
|
ref_key: "yAxisSumRects",
|
|
787
817
|
ref: Ct
|
|
788
818
|
}, [
|
|
789
|
-
(u(!0), n(
|
|
790
|
-
|
|
819
|
+
(u(!0), n(L, null, B(Q.value, (a, o) => (u(), n(L, null, [
|
|
820
|
+
b("rect", {
|
|
791
821
|
x: l.value.left,
|
|
792
822
|
y: l.value.top + l.value.cellSize.height * o,
|
|
793
823
|
width: l.value.sumCellXHeight,
|
|
@@ -796,50 +826,50 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
796
826
|
stroke: e.value.style.backgroundColor,
|
|
797
827
|
"stroke-width": r.value
|
|
798
828
|
}, null, 8, Hl),
|
|
799
|
-
|
|
829
|
+
b("rect", {
|
|
800
830
|
x: l.value.left,
|
|
801
831
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
802
832
|
width: l.value.sumCellXHeight,
|
|
803
833
|
height: l.value.cellSize.height - r.value,
|
|
804
|
-
fill:
|
|
834
|
+
fill: m.value.yTotals[o].color,
|
|
805
835
|
stroke: e.value.style.backgroundColor,
|
|
806
836
|
"stroke-width": r.value
|
|
807
837
|
}, null, 8, Pl)
|
|
808
838
|
], 64))), 256))
|
|
809
|
-
], 512)) :
|
|
839
|
+
], 512)) : p("", !0),
|
|
810
840
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), n("g", {
|
|
811
841
|
key: 3,
|
|
812
842
|
ref_key: "yAxisLabels",
|
|
813
843
|
ref: je
|
|
814
844
|
}, [
|
|
815
|
-
(u(!0), n(
|
|
816
|
-
|
|
845
|
+
(u(!0), n(L, null, B(Q.value, (a, o) => (u(), n(L, null, [
|
|
846
|
+
b("text", {
|
|
817
847
|
class: "vue-ui-heatmap-row-name",
|
|
818
848
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
819
849
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
820
|
-
x:
|
|
850
|
+
x: ae.value,
|
|
821
851
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY - (e.value.style.layout.cells.rowTotal.value.show ? e.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
822
852
|
"text-anchor": "end",
|
|
823
853
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
824
|
-
},
|
|
854
|
+
}, S(m.value.yLabels[o]), 9, Xl),
|
|
825
855
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
|
|
826
856
|
key: 0,
|
|
827
857
|
class: "vue-ui-heatmap-row-total",
|
|
828
858
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
829
859
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
830
|
-
x:
|
|
860
|
+
x: ae.value,
|
|
831
861
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
832
862
|
"text-anchor": "end",
|
|
833
863
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
834
|
-
},
|
|
864
|
+
}, S(It(o)), 9, Il)) : p("", !0)
|
|
835
865
|
], 64))), 256))
|
|
836
|
-
], 512)) :
|
|
866
|
+
], 512)) : p("", !0),
|
|
837
867
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
|
|
838
868
|
key: 4,
|
|
839
869
|
ref_key: "xAxisLabels",
|
|
840
|
-
ref:
|
|
870
|
+
ref: ze
|
|
841
871
|
}, [
|
|
842
|
-
(u(!0), n(
|
|
872
|
+
(u(!0), n(L, null, B(m.value.xLabels, (a, o) => (u(), n(L, null, [
|
|
843
873
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && o % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), n("text", {
|
|
844
874
|
key: 0,
|
|
845
875
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -847,145 +877,145 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
847
877
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
848
878
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
849
879
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
850
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
851
|
-
},
|
|
880
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / m.value.xLabels.length * o + e.value.style.layout.dataLabels.xAxis.offsetX + l.value.sumCellXHeight}, ${l.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
881
|
+
}, S(a), 9, Vl)) : p("", !0)
|
|
852
882
|
], 64))), 256))
|
|
853
|
-
], 512)) :
|
|
883
|
+
], 512)) : p("", !0),
|
|
854
884
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), n("g", {
|
|
855
885
|
key: 5,
|
|
856
886
|
ref_key: "xAxisSums",
|
|
857
|
-
ref:
|
|
887
|
+
ref: $e
|
|
858
888
|
}, [
|
|
859
|
-
(u(!0), n(
|
|
889
|
+
(u(!0), n(L, null, B(m.value.xLabels, (a, o) => (u(), n("text", {
|
|
860
890
|
class: "vue-ui-heatmap-col-total",
|
|
861
891
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
862
892
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
863
893
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
864
894
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
865
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
866
|
-
},
|
|
867
|
-
], 512)) :
|
|
868
|
-
|
|
869
|
-
|
|
895
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / m.value.xLabels.length * o + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + l.value.sumCellXHeight}, ${l.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
|
|
896
|
+
}, S(Vt(o)), 9, El))), 256))
|
|
897
|
+
], 512)) : p("", !0),
|
|
898
|
+
re.value ? (u(), n("g", Ul, [
|
|
899
|
+
b("rect", {
|
|
870
900
|
style: { "pointer-events": "none" },
|
|
871
|
-
x:
|
|
872
|
-
y:
|
|
901
|
+
x: re.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
902
|
+
y: re.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
873
903
|
width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
874
904
|
height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
875
905
|
fill: "transparent",
|
|
876
906
|
stroke: e.value.style.layout.cells.selected.color,
|
|
877
907
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
878
908
|
rx: 1
|
|
879
|
-
}, null, 8,
|
|
880
|
-
])) :
|
|
881
|
-
|
|
882
|
-
], 14,
|
|
909
|
+
}, null, 8, Yl)
|
|
910
|
+
])) : p("", !0),
|
|
911
|
+
T(t.$slots, "svg", { svg: $.value }, void 0, !0)
|
|
912
|
+
], 14, Ml)),
|
|
883
913
|
e.value.style.legend.show ? (u(), n("div", {
|
|
884
914
|
key: 0,
|
|
885
915
|
ref_key: "legendRight",
|
|
886
916
|
ref: At,
|
|
887
917
|
class: "vue-ui-heatmap-legend-right",
|
|
888
|
-
style:
|
|
918
|
+
style: A({
|
|
889
919
|
"--legend-width": e.value.style.legend.width + "px"
|
|
890
920
|
})
|
|
891
921
|
}, [
|
|
892
|
-
i(
|
|
922
|
+
i(be) ? p("", !0) : (u(), n("div", {
|
|
893
923
|
key: 0,
|
|
894
924
|
class: "vue-ui-heatmap-legend-label-max",
|
|
895
|
-
style:
|
|
925
|
+
style: A({
|
|
896
926
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
897
927
|
color: e.value.style.legend.color
|
|
898
928
|
})
|
|
899
|
-
},
|
|
929
|
+
}, S(i(G)(
|
|
900
930
|
e.value.style.layout.cells.value.formatter,
|
|
901
|
-
i(
|
|
902
|
-
i(
|
|
931
|
+
i(W)(Y.value),
|
|
932
|
+
i(X)({
|
|
903
933
|
p: e.value.style.layout.dataLabels.prefix,
|
|
904
|
-
v: i(
|
|
934
|
+
v: i(W)(Y.value),
|
|
905
935
|
s: e.value.style.layout.dataLabels.suffix,
|
|
906
936
|
r: e.value.style.legend.roundingValue
|
|
907
937
|
})
|
|
908
938
|
)), 5)),
|
|
909
|
-
|
|
910
|
-
|
|
939
|
+
b("div", Gl, [
|
|
940
|
+
b("div", {
|
|
911
941
|
class: "vue-ui-heatmap-gauge",
|
|
912
|
-
style:
|
|
942
|
+
style: A({
|
|
913
943
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
914
944
|
})
|
|
915
945
|
}, [
|
|
916
|
-
ft(
|
|
946
|
+
ft(b("div", {
|
|
917
947
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
918
|
-
"data-value": i(
|
|
948
|
+
"data-value": i(G)(
|
|
919
949
|
e.value.style.layout.cells.value.formatter,
|
|
920
|
-
i(
|
|
921
|
-
i(
|
|
950
|
+
i(W)(N.value),
|
|
951
|
+
i(X)({
|
|
922
952
|
p: e.value.style.layout.dataLabels.prefix,
|
|
923
|
-
v: i(
|
|
953
|
+
v: i(W)(N.value),
|
|
924
954
|
s: e.value.style.layout.dataLabels.suffix,
|
|
925
955
|
r: e.value.style.legend.roundingValue
|
|
926
956
|
})
|
|
927
957
|
),
|
|
928
|
-
style:
|
|
958
|
+
style: A({
|
|
929
959
|
position: "absolute",
|
|
930
960
|
width: "100%",
|
|
931
961
|
height: "2px",
|
|
932
|
-
background: [void 0, null].includes(
|
|
933
|
-
top: `${[void 0, null].includes(
|
|
962
|
+
background: [void 0, null].includes(N.value) ? "transparent" : i(Le)(xe.value.datapoint.color),
|
|
963
|
+
top: `${[void 0, null].includes(N.value) ? 0 : (1 - N.value / Y.value) * 100}%`,
|
|
934
964
|
transition: "all 0.2s ease-in-out",
|
|
935
965
|
"--background-color": e.value.style.backgroundColor,
|
|
936
|
-
"--gauge-arrow-color": i(
|
|
937
|
-
"--gauge-arrow-text-color": i(
|
|
938
|
-
"--gauge-arrow-value":
|
|
966
|
+
"--gauge-arrow-color": i(Le)(e.value.style.backgroundColor),
|
|
967
|
+
"--gauge-arrow-text-color": i(Le)(e.value.style.backgroundColor),
|
|
968
|
+
"--gauge-arrow-value": N.value,
|
|
939
969
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
940
970
|
})
|
|
941
971
|
}, [
|
|
942
|
-
|
|
972
|
+
b("div", jl, S(i(G)(
|
|
943
973
|
e.value.style.layout.cells.value.formatter,
|
|
944
|
-
i(
|
|
945
|
-
i(
|
|
974
|
+
i(W)(N.value),
|
|
975
|
+
i(X)({
|
|
946
976
|
p: e.value.style.layout.dataLabels.prefix,
|
|
947
|
-
v: i(
|
|
977
|
+
v: i(W)(N.value),
|
|
948
978
|
s: e.value.style.layout.dataLabels.suffix,
|
|
949
979
|
r: e.value.style.legend.roundingValue
|
|
950
980
|
})
|
|
951
981
|
)), 1)
|
|
952
|
-
], 12,
|
|
953
|
-
[
|
|
982
|
+
], 12, Wl), [
|
|
983
|
+
[ll, ![void 0, null].includes(N.value)]
|
|
954
984
|
])
|
|
955
985
|
], 4)
|
|
956
986
|
]),
|
|
957
|
-
i(
|
|
987
|
+
i(be) ? p("", !0) : (u(), n("div", {
|
|
958
988
|
key: 1,
|
|
959
989
|
class: "vue-ui-heatmap-legend-label-min",
|
|
960
|
-
style:
|
|
990
|
+
style: A({
|
|
961
991
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
962
992
|
color: e.value.style.legend.color
|
|
963
993
|
})
|
|
964
|
-
},
|
|
994
|
+
}, S(i(G)(
|
|
965
995
|
e.value.style.layout.cells.value.formatter,
|
|
966
|
-
i(
|
|
967
|
-
i(
|
|
996
|
+
i(W)(ye.value),
|
|
997
|
+
i(X)({
|
|
968
998
|
p: e.value.style.layout.dataLabels.prefix,
|
|
969
|
-
v: i(
|
|
999
|
+
v: i(W)(ye.value),
|
|
970
1000
|
s: e.value.style.layout.dataLabels.suffix,
|
|
971
1001
|
r: e.value.style.legend.roundingValue
|
|
972
1002
|
})
|
|
973
1003
|
)), 5))
|
|
974
|
-
], 4)) :
|
|
1004
|
+
], 4)) : p("", !0)
|
|
975
1005
|
], 2),
|
|
976
|
-
t.$slots.watermark ? (u(), n("div",
|
|
977
|
-
|
|
978
|
-
])) :
|
|
1006
|
+
t.$slots.watermark ? (u(), n("div", ql, [
|
|
1007
|
+
T(t.$slots, "watermark", se(ue({ isPrinting: i(Qe) || i(Ze) })), void 0, !0)
|
|
1008
|
+
])) : p("", !0),
|
|
979
1009
|
t.$slots.source ? (u(), n("div", {
|
|
980
1010
|
key: 5,
|
|
981
1011
|
ref_key: "source",
|
|
982
1012
|
ref: qe,
|
|
983
1013
|
dir: "auto"
|
|
984
1014
|
}, [
|
|
985
|
-
|
|
986
|
-
], 512)) :
|
|
987
|
-
|
|
988
|
-
show:
|
|
1015
|
+
T(t.$slots, "source", {}, void 0, !0)
|
|
1016
|
+
], 512)) : p("", !0),
|
|
1017
|
+
Ce(i(I), {
|
|
1018
|
+
show: O.value.showTooltip && ie.value,
|
|
989
1019
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
990
1020
|
color: e.value.style.tooltip.color,
|
|
991
1021
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -995,95 +1025,95 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
995
1025
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
996
1026
|
position: e.value.style.tooltip.position,
|
|
997
1027
|
offsetY: e.value.style.tooltip.offsetY,
|
|
998
|
-
parent:
|
|
999
|
-
content:
|
|
1000
|
-
isFullscreen:
|
|
1028
|
+
parent: z.value,
|
|
1029
|
+
content: te.value,
|
|
1030
|
+
isFullscreen: Z.value,
|
|
1001
1031
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1002
1032
|
smooth: e.value.style.tooltip.smooth,
|
|
1003
1033
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1004
1034
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1005
1035
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1006
1036
|
}, {
|
|
1007
|
-
"tooltip-before":
|
|
1008
|
-
|
|
1037
|
+
"tooltip-before": M(() => [
|
|
1038
|
+
T(t.$slots, "tooltip-before", se(ue({ ...xe.value })), void 0, !0)
|
|
1009
1039
|
]),
|
|
1010
|
-
"tooltip-after":
|
|
1011
|
-
|
|
1040
|
+
"tooltip-after": M(() => [
|
|
1041
|
+
T(t.$slots, "tooltip-after", se(ue({ ...xe.value })), void 0, !0)
|
|
1012
1042
|
]),
|
|
1013
1043
|
_: 3
|
|
1014
1044
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1015
|
-
|
|
1045
|
+
ee.value && e.value.userOptions.buttons.table ? (u(), ge(al(ke.value.component), ol({ key: 6 }, ke.value.props, {
|
|
1016
1046
|
ref_key: "tableUnit",
|
|
1017
|
-
ref:
|
|
1047
|
+
ref: ve,
|
|
1018
1048
|
onClose: He
|
|
1019
1049
|
}), yt({
|
|
1020
|
-
content:
|
|
1021
|
-
|
|
1050
|
+
content: M(() => [
|
|
1051
|
+
b("div", {
|
|
1022
1052
|
ref_key: "tableContainer",
|
|
1023
1053
|
ref: Ue,
|
|
1024
1054
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1025
|
-
style:
|
|
1055
|
+
style: A(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1026
1056
|
}, [
|
|
1027
|
-
|
|
1028
|
-
style:
|
|
1029
|
-
class:
|
|
1057
|
+
b("div", {
|
|
1058
|
+
style: A(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1059
|
+
class: fe({ "vue-ui-responsive": i(Gt) })
|
|
1030
1060
|
}, [
|
|
1031
|
-
e.value.table.useDialog ?
|
|
1061
|
+
e.value.table.useDialog ? p("", !0) : (u(), n("div", {
|
|
1032
1062
|
key: 0,
|
|
1033
1063
|
role: "button",
|
|
1034
1064
|
tabindex: "0",
|
|
1035
|
-
style:
|
|
1065
|
+
style: A(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1036
1066
|
onClick: He,
|
|
1037
|
-
onKeypress:
|
|
1067
|
+
onKeypress: sl(He, ["enter"])
|
|
1038
1068
|
}, [
|
|
1039
|
-
|
|
1069
|
+
Ce(i(j), {
|
|
1040
1070
|
name: "close",
|
|
1041
1071
|
stroke: e.value.table.th.color,
|
|
1042
1072
|
"stroke-width": 2
|
|
1043
1073
|
}, null, 8, ["stroke"])
|
|
1044
1074
|
], 36)),
|
|
1045
|
-
|
|
1046
|
-
e.value.table.useDialog ?
|
|
1075
|
+
b("table", Kl, [
|
|
1076
|
+
e.value.table.useDialog ? p("", !0) : (u(), n("caption", {
|
|
1047
1077
|
key: 0,
|
|
1048
|
-
style:
|
|
1078
|
+
style: A(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1049
1079
|
}, [
|
|
1050
|
-
|
|
1051
|
-
e.value.style.title.subtitle.text ? (u(), n("span",
|
|
1080
|
+
Xe(S(e.value.style.title.text) + " ", 1),
|
|
1081
|
+
e.value.style.title.subtitle.text ? (u(), n("span", Jl, S(e.value.style.title.subtitle.text), 1)) : p("", !0)
|
|
1052
1082
|
], 4)),
|
|
1053
|
-
|
|
1054
|
-
|
|
1083
|
+
b("thead", null, [
|
|
1084
|
+
b("tr", {
|
|
1055
1085
|
role: "row",
|
|
1056
|
-
style:
|
|
1086
|
+
style: A(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1057
1087
|
}, [
|
|
1058
|
-
|
|
1059
|
-
style:
|
|
1088
|
+
b("th", {
|
|
1089
|
+
style: A(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1060
1090
|
}, null, 4),
|
|
1061
|
-
(u(!0), n(
|
|
1091
|
+
(u(!0), n(L, null, B(y.dataset, (a, o) => (u(), n("th", {
|
|
1062
1092
|
align: "right",
|
|
1063
|
-
style:
|
|
1064
|
-
},
|
|
1093
|
+
style: A(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1094
|
+
}, S(a.name), 5))), 256))
|
|
1065
1095
|
], 4)
|
|
1066
1096
|
]),
|
|
1067
|
-
|
|
1068
|
-
(u(!0), n(
|
|
1097
|
+
b("tbody", null, [
|
|
1098
|
+
(u(!0), n(L, null, B(m.value.xLabels, (a, o) => (u(), n("tr", {
|
|
1069
1099
|
role: "row",
|
|
1070
|
-
class:
|
|
1071
|
-
style:
|
|
1100
|
+
class: fe({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1101
|
+
style: A(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1072
1102
|
}, [
|
|
1073
|
-
|
|
1103
|
+
b("td", {
|
|
1074
1104
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1075
1105
|
class: "vue-ui-data-table__tbody__td",
|
|
1076
|
-
style:
|
|
1106
|
+
style: A(`outline:${e.value.table.td.outline}`)
|
|
1077
1107
|
}, [
|
|
1078
|
-
|
|
1079
|
-
], 12,
|
|
1080
|
-
(u(!0), n(
|
|
1108
|
+
b("div", Zl, S(a), 1)
|
|
1109
|
+
], 12, Ql),
|
|
1110
|
+
(u(!0), n(L, null, B(y.dataset, (v, c) => (u(), n("td", {
|
|
1081
1111
|
class: "vue-ui-data-table__tbody__td",
|
|
1082
|
-
"data-cell":
|
|
1083
|
-
style:
|
|
1112
|
+
"data-cell": y.dataset[c].name,
|
|
1113
|
+
style: A(`outline:${e.value.table.td.outline}`)
|
|
1084
1114
|
}, [
|
|
1085
|
-
|
|
1086
|
-
], 12,
|
|
1115
|
+
b("div", ta, S(isNaN(v.values[o]) ? "-" : i(X)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[o], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1116
|
+
], 12, ea))), 256))
|
|
1087
1117
|
], 6))), 256))
|
|
1088
1118
|
])
|
|
1089
1119
|
])
|
|
@@ -1094,32 +1124,32 @@ const zl = ["id"], $l = ["xmlns", "viewBox"], Ml = ["x", "y", "width", "height"]
|
|
|
1094
1124
|
}, [
|
|
1095
1125
|
e.value.table.useDialog ? {
|
|
1096
1126
|
name: "title",
|
|
1097
|
-
fn:
|
|
1098
|
-
|
|
1127
|
+
fn: M(() => [
|
|
1128
|
+
Xe(S(ke.value.title), 1)
|
|
1099
1129
|
]),
|
|
1100
1130
|
key: "0"
|
|
1101
1131
|
} : void 0,
|
|
1102
1132
|
e.value.table.useDialog ? {
|
|
1103
1133
|
name: "actions",
|
|
1104
|
-
fn:
|
|
1105
|
-
|
|
1134
|
+
fn: M(() => [
|
|
1135
|
+
b("button", {
|
|
1106
1136
|
tabindex: "0",
|
|
1107
1137
|
class: "vue-ui-user-options-button",
|
|
1108
|
-
onClick: s[0] || (s[0] = (a) =>
|
|
1138
|
+
onClick: s[0] || (s[0] = (a) => Be(e.value.userOptions.callbacks.csv))
|
|
1109
1139
|
}, [
|
|
1110
|
-
|
|
1140
|
+
Ce(i(j), {
|
|
1111
1141
|
name: "excel",
|
|
1112
|
-
stroke:
|
|
1142
|
+
stroke: ke.value.props.color
|
|
1113
1143
|
}, null, 8, ["stroke"])
|
|
1114
1144
|
])
|
|
1115
1145
|
]),
|
|
1116
1146
|
key: "1"
|
|
1117
1147
|
} : void 0
|
|
1118
|
-
]), 1040)) :
|
|
1119
|
-
i(
|
|
1120
|
-
], 46,
|
|
1148
|
+
]), 1040)) : p("", !0),
|
|
1149
|
+
i(be) ? (u(), ge(ml, { key: 7 })) : p("", !0)
|
|
1150
|
+
], 46, $l));
|
|
1121
1151
|
}
|
|
1122
|
-
},
|
|
1152
|
+
}, xa = /* @__PURE__ */ _l(la, [["__scopeId", "data-v-7b02a740"]]);
|
|
1123
1153
|
export {
|
|
1124
|
-
|
|
1154
|
+
xa as default
|
|
1125
1155
|
};
|