vue-data-ui 3.9.9 → 3.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-BNcd4dB9.js → PackageVersion-DCZIL0_B.js} +1 -1
- package/dist/{Title-D1h0XGFy.js → Title-DFtCaCah.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-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 +6 -0
- package/dist/{useNestedProp-B3m37PKe.js → useNestedProp-D-jUHecl.js} +6 -0
- package/dist/{vue-data-ui-Gl4kX-kA.js → vue-data-ui-ClRXBGda.js} +66 -66
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BgGxhdLj.js → vue-ui-3d-bar-TNgpzuEc.js} +3 -3
- package/dist/{vue-ui-accordion-CyEsYJt-.js → vue-ui-accordion-B6BX2vhq.js} +1 -1
- package/dist/{vue-ui-age-pyramid-2F9nNDwg.js → vue-ui-age-pyramid-BPTzdmW0.js} +3 -3
- package/dist/{vue-ui-annotator-ltpJX8iC.js → vue-ui-annotator-DB6dpuUU.js} +2 -2
- package/dist/{vue-ui-bullet-CtARc6U5.js → vue-ui-bullet-DzFbSsu2.js} +3 -3
- package/dist/{vue-ui-candlestick-DD0E5cFS.js → vue-ui-candlestick-CAboED0U.js} +3 -3
- package/dist/{vue-ui-carousel-table-BKAWBIQC.js → vue-ui-carousel-table-DlrmY97e.js} +2 -2
- package/dist/{vue-ui-chestnut-DXqdlvmn.js → vue-ui-chestnut-pbykwsi2.js} +2 -2
- package/dist/{vue-ui-chord-D4_oqEPA.js → vue-ui-chord-DJfFRfKV.js} +3 -3
- package/dist/{vue-ui-circle-pack-DhejpV3c.js → vue-ui-circle-pack-CQRZOtuK.js} +3 -3
- package/dist/{vue-ui-cursor-BiBU6NnT.js → vue-ui-cursor-yyls4HGT.js} +2 -2
- package/dist/{vue-ui-dag-ChwKCpau.js → vue-ui-dag-C8K66G3E.js} +654 -644
- package/dist/{vue-ui-dashboard-BvEh4Ex9.js → vue-ui-dashboard-D3Iyv0JD.js} +64 -64
- package/dist/{vue-ui-digits-BSPgk-5O.js → vue-ui-digits-DQz1eJc-.js} +1 -1
- package/dist/{vue-ui-donut-evolution-BKE39-Ve.js → vue-ui-donut-evolution-fhLI01zC.js} +3 -3
- package/dist/{vue-ui-donut-C_CzdYkR.js → vue-ui-donut-xcE---Po.js} +3 -3
- package/dist/{vue-ui-dumbbell-uOcvYUWa.js → vue-ui-dumbbell-C9O0Bkf9.js} +3 -3
- package/dist/{vue-ui-flow-CZ3tpUPp.js → vue-ui-flow-CGOye6P4.js} +3 -3
- package/dist/{vue-ui-funnel-BjnVCJdj.js → vue-ui-funnel-DsTz2cnF.js} +3 -3
- package/dist/{vue-ui-galaxy-Ez3a_jqN.js → vue-ui-galaxy-DU-o6sLX.js} +3 -3
- package/dist/{vue-ui-gauge-B2svzyIz.js → vue-ui-gauge-RYEhh2WB.js} +3 -3
- package/dist/{vue-ui-geo-DyMOIsp1.js → vue-ui-geo-DzFx9KIT.js} +3 -3
- package/dist/{vue-ui-gizmo-D4jeApDL.js → vue-ui-gizmo-B4GeLU_H.js} +2 -2
- package/dist/{vue-ui-heatmap-DeGQZWot.js → vue-ui-heatmap-Di39E10i.js} +489 -424
- package/dist/{vue-ui-history-plot-BBltXG1l.js → vue-ui-history-plot-DweGUMrh.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-J5DCiMtZ.js → vue-ui-horizontal-bar-BRk_Qnvt.js} +4 -4
- package/dist/{vue-ui-kpi-ZQIY3YxS.js → vue-ui-kpi-BnCqocoi.js} +2 -2
- package/dist/{vue-ui-mini-loader-BFyTygMK.js → vue-ui-mini-loader-Dzqusv9i.js} +1 -1
- package/dist/{vue-ui-molecule-Cv9ICJAJ.js → vue-ui-molecule-Dn3L3Pzv.js} +2 -2
- package/dist/{vue-ui-mood-radar-C1EfUvu_.js → vue-ui-mood-radar-CR8x29EU.js} +3 -3
- package/dist/{vue-ui-nested-donuts-CBAb48Qi.js → vue-ui-nested-donuts-DEmXu87c.js} +3 -3
- package/dist/{vue-ui-onion-BNkhhCXm.js → vue-ui-onion-B_bd4qUM.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-rebE9Fy6.js → vue-ui-parallel-coordinate-plot-CjKb6-Uq.js} +3 -3
- package/dist/{vue-ui-quadrant-5kGz04GE.js → vue-ui-quadrant-B5OfygHr.js} +3 -3
- package/dist/{vue-ui-quick-chart-DMvyrS0a.js → vue-ui-quick-chart-MdfHmOs2.js} +2 -2
- package/dist/{vue-ui-radar-DqVO5Yag.js → vue-ui-radar-BLFDJ69V.js} +3 -3
- package/dist/{vue-ui-rating-YwRDNhIj.js → vue-ui-rating-BciQHmzs.js} +1 -1
- package/dist/{vue-ui-relation-circle-BbpHtXV3.js → vue-ui-relation-circle-xGWmFHf_.js} +3 -3
- package/dist/{vue-ui-ridgeline-B-KdhpyK.js → vue-ui-ridgeline-Dvwi6E9_.js} +3 -3
- package/dist/{vue-ui-rings-C8QniqR1.js → vue-ui-rings-CGOWZybm.js} +3 -3
- package/dist/{vue-ui-scatter-BX_3RI0q.js → vue-ui-scatter-CdCUg54d.js} +3 -3
- package/dist/{vue-ui-skeleton-B0q4LyQX.js → vue-ui-skeleton-DaomVcWl.js} +2 -2
- package/dist/{vue-ui-smiley-DSHWKC6h.js → vue-ui-smiley-C0Bqip2_.js} +1 -1
- package/dist/{vue-ui-spark-trend-Btn_4ebC.js → vue-ui-spark-trend-CCPXy2ZD.js} +2 -2
- package/dist/{vue-ui-sparkbar-CGg5qTEL.js → vue-ui-sparkbar-DMuih6Dx.js} +2 -2
- package/dist/{vue-ui-sparkgauge-Dbo_nueI.js → vue-ui-sparkgauge-BZFeEMV9.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dp_TLFSY.js → vue-ui-sparkhistogram-DahIfjLU.js} +2 -2
- package/dist/{vue-ui-sparkline-BTIaZevq.js → vue-ui-sparkline-CaehcwBo.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-CCTUDIyM.js → vue-ui-sparkstackbar-On4F24cq.js} +2 -2
- package/dist/{vue-ui-stackbar-Cq1VNynT.js → vue-ui-stackbar-aN5cfErv.js} +3 -3
- package/dist/{vue-ui-stackline-B3I-xUK7.js → vue-ui-stackline-CTPUaU0K.js} +3 -3
- package/dist/{vue-ui-strip-plot-DX33IWHL.js → vue-ui-strip-plot-BO7YQnRj.js} +3 -3
- package/dist/{vue-ui-table-OAW0AP94.js → vue-ui-table-Dg6j7T65.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BGEjaJLQ.js → vue-ui-table-heatmap-CDnzIKGy.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Cyx0-RWx.js → vue-ui-table-sparkline-DE_LyDJV.js} +2 -2
- package/dist/{vue-ui-thermometer-aCRQYW1o.js → vue-ui-thermometer-C6LrWdX4.js} +3 -3
- package/dist/{vue-ui-timer-B6PewFic.js → vue-ui-timer-DCENDOVz.js} +3 -3
- package/dist/{vue-ui-tiremarks-DRA8dnt3.js → vue-ui-tiremarks-CEQM_3u0.js} +3 -3
- package/dist/{vue-ui-treemap--uvSZEZ-.js → vue-ui-treemap-Cighusxg.js} +3 -3
- package/dist/{vue-ui-waffle-u6GTphEn.js → vue-ui-waffle-Cs4LXcYi.js} +3 -3
- package/dist/{vue-ui-wheel-DShHxD6B.js → vue-ui-wheel-DchTydjv.js} +3 -3
- package/dist/{vue-ui-word-cloud-BGHiVrFb.js → vue-ui-word-cloud-BlsRq_M1.js} +3 -3
- package/dist/{vue-ui-world-28lKSJYs.js → vue-ui-world-C8zN4MHP.js} +2 -2
- package/dist/{vue-ui-xy-CI-vpDrs.js → vue-ui-xy-1vhl0WmV.js} +4 -4
- package/dist/{vue-ui-xy-canvas-BOQ3nptA.js → vue-ui-xy-canvas-9tgX_s2v.js} +3 -3
- package/package.json +1 -1
|
@@ -1,114 +1,157 @@
|
|
|
1
|
-
import { watchEffect as ul, nextTick as Se, useCssVars as nl, defineAsyncComponent as
|
|
2
|
-
import { c as Ie, t as fl, a0 as gl, o as mt, g as xt, al as
|
|
3
|
-
import { t as Te, u as
|
|
4
|
-
import { u as Ll, a as Ve } from "./useNestedProp-
|
|
1
|
+
import { watchEffect as ul, nextTick as Se, useCssVars as nl, defineAsyncComponent as ve, computed as b, ref as d, shallowRef as il, toRefs as rl, watch as we, onBeforeUnmount as ft, onMounted as vl, reactive as gt, createElementBlock as i, openBlock as u, normalizeStyle as L, normalizeClass as ge, createBlock as be, createCommentVNode as f, createElementVNode as g, createVNode as Ae, unref as n, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as X, createSlots as bt, Fragment as z, renderList as P, withDirectives as pt, createTextVNode as Pe, toDisplayString as F, vShow as cl, resolveDynamicComponent as dl, mergeProps as yl, withKeys as hl } from "vue";
|
|
2
|
+
import { c as Ie, t as fl, a0 as gl, o as mt, g as xt, al as pe, k as bl, X as pl, w as Le, a as K, d as W, T as Z, ax as ml, u as xl, q as Cl, x as kl, Z as wl } from "./lib-W9waxHL3.js";
|
|
3
|
+
import { t as Te, u as Al } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ll, a as Ve } from "./useNestedProp-D-jUHecl.js";
|
|
5
5
|
import { u as Tl } from "./usePrinter-DhoMn87n.js";
|
|
6
6
|
import { u as Sl, B as _l } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as zl } from "./useSvgExport-ByUukOZt.js";
|
|
8
8
|
import { u as Ct } from "./useTimeLabels-DKoynYae.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as $l } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
10
|
import { u as Fl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
11
11
|
import { u as Dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import El from "./vue-ui-accordion-
|
|
17
|
-
import { _ as
|
|
18
|
-
function Ue({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
12
|
+
import { u as kt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import { u as Ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
14
|
+
import Ml from "./img-BJzUSmkm.js";
|
|
15
|
+
import Bl from "./Title-DFtCaCah.js";
|
|
16
|
+
import El from "./vue-ui-accordion-B6BX2vhq.js";
|
|
17
|
+
import { _ as Nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
function Ue({
|
|
19
|
+
elementRef: y,
|
|
20
|
+
callback: I,
|
|
21
|
+
attr: J,
|
|
22
|
+
earlyReturn: Y = !1,
|
|
23
|
+
retryFrames: Q = 12,
|
|
24
|
+
alsoAfterFontsReady: D = !0
|
|
25
|
+
}) {
|
|
26
|
+
if (Y) return;
|
|
27
|
+
const V = (T) => {
|
|
28
|
+
if (!T) return;
|
|
29
|
+
let A;
|
|
30
|
+
if (typeof T.getBBox == "function")
|
|
31
|
+
try {
|
|
32
|
+
const O = T.getBBox();
|
|
33
|
+
A = J === "width" ? O.width : O.height;
|
|
34
|
+
} catch {
|
|
35
|
+
}
|
|
36
|
+
if (typeof A != "number" || Number.isNaN(A))
|
|
37
|
+
try {
|
|
38
|
+
const O = T.getBoundingClientRect();
|
|
39
|
+
A = J === "width" ? O.width : O.height;
|
|
40
|
+
} catch {
|
|
41
|
+
A = void 0;
|
|
42
|
+
}
|
|
43
|
+
typeof A == "number" && !Number.isNaN(A) && I(A);
|
|
44
|
+
};
|
|
45
|
+
ul((T) => {
|
|
46
|
+
const A = y.value;
|
|
47
|
+
if (!A) return;
|
|
48
|
+
let O = !1;
|
|
49
|
+
(async () => {
|
|
50
|
+
await Se();
|
|
51
|
+
for (let S = 0; S < Q; S += 1) {
|
|
52
|
+
if (O) return;
|
|
53
|
+
await new Promise((te) => requestAnimationFrame(te));
|
|
54
|
+
const N = y.value;
|
|
55
|
+
if (!N) return;
|
|
56
|
+
V(N);
|
|
57
|
+
}
|
|
58
|
+
if (D && typeof document < "u" && document.fonts && document.fonts.ready) {
|
|
59
|
+
try {
|
|
60
|
+
await document.fonts.ready;
|
|
61
|
+
} catch {
|
|
62
|
+
}
|
|
63
|
+
!O && y.value && V(y.value);
|
|
64
|
+
}
|
|
65
|
+
})();
|
|
66
|
+
const ee = new MutationObserver(() => {
|
|
67
|
+
y.value && requestAnimationFrame(() => {
|
|
68
|
+
y.value && V(y.value);
|
|
36
69
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
70
|
+
});
|
|
71
|
+
ee.observe(A, {
|
|
72
|
+
childList: !0,
|
|
73
|
+
subtree: !0,
|
|
74
|
+
characterData: !0,
|
|
75
|
+
attributes: !0,
|
|
76
|
+
attributeFilter: ["transform", "style", "class"]
|
|
77
|
+
});
|
|
78
|
+
let m;
|
|
79
|
+
if (typeof ResizeObserver < "u") {
|
|
80
|
+
const S = A.ownerSVGElement ? A.ownerSVGElement : A;
|
|
81
|
+
m = new ResizeObserver(() => {
|
|
82
|
+
const N = y.value;
|
|
83
|
+
N && V(N);
|
|
84
|
+
}), m.observe(S);
|
|
85
|
+
}
|
|
86
|
+
T(() => {
|
|
87
|
+
O = !0, ee.disconnect(), m && m.disconnect();
|
|
88
|
+
});
|
|
89
|
+
}, { flush: "post" });
|
|
47
90
|
}
|
|
48
|
-
const
|
|
91
|
+
const At = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { cells: { selected: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Lt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#424242" }, yAxis: { color: "#424242" } } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Tt = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { cells: { colors: { hot: "#D32F2F", cold: "#FFE082" }, spacing: 0.5, selected: { color: "#B71C1C" } }, dataLabels: { xAxis: { color: "#BDBDBD" }, yAxis: { color: "#BDBDBD" } } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, St = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { cells: { colors: { hot: "#008000", cold: "#333333" }, spacing: 0.5, selected: { color: "#33FF33" } }, dataLabels: { xAxis: { color: "#AACCAA" }, yAxis: { color: "#AACCAA" } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, legend: { backgroundColor: "#2A2F2A", color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, _t = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { cells: { colors: { hot: "#DFCA99", cold: "#BBC4D3" }, spacing: 0.5, selected: { color: "#4F5B75" } }, dataLabels: { xAxis: { color: "#A0AC94" }, yAxis: { color: "#A0AC94" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, zt = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { cells: { colors: { hot: "#6D7D65", cold: "#6C94A5" }, spacing: 0.5, selected: { color: "#404C4D" } }, dataLabels: { xAxis: { color: "#61747E" }, yAxis: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, $t = {
|
|
49
92
|
default: {},
|
|
50
|
-
dark:
|
|
93
|
+
dark: At,
|
|
51
94
|
celebration: Lt,
|
|
52
95
|
celebrationNight: Tt,
|
|
53
96
|
hack: St,
|
|
54
97
|
zen: _t,
|
|
55
|
-
concrete:
|
|
56
|
-
},
|
|
98
|
+
concrete: zt
|
|
99
|
+
}, Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
57
100
|
__proto__: null,
|
|
58
101
|
celebration: Lt,
|
|
59
102
|
celebrationNight: Tt,
|
|
60
|
-
concrete:
|
|
61
|
-
dark:
|
|
62
|
-
default:
|
|
103
|
+
concrete: zt,
|
|
104
|
+
dark: At,
|
|
105
|
+
default: $t,
|
|
63
106
|
hack: St,
|
|
64
107
|
zen: _t
|
|
65
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
66
|
-
mounted(y,
|
|
67
|
-
|
|
108
|
+
}, Symbol.toStringTag, { value: "Module" })), Rl = {
|
|
109
|
+
mounted(y, I) {
|
|
110
|
+
wt(y, I.value);
|
|
68
111
|
},
|
|
69
|
-
updated(y,
|
|
70
|
-
|
|
112
|
+
updated(y, I) {
|
|
113
|
+
wt(y, I.value);
|
|
71
114
|
}
|
|
72
115
|
};
|
|
73
|
-
function
|
|
74
|
-
cellWidth:
|
|
75
|
-
cellHeight:
|
|
76
|
-
maxFontSize:
|
|
77
|
-
minFontSize:
|
|
78
|
-
index:
|
|
79
|
-
reportRotation:
|
|
80
|
-
reportHide:
|
|
81
|
-
rotateAll:
|
|
82
|
-
hideAll:
|
|
116
|
+
function wt(y, {
|
|
117
|
+
cellWidth: I,
|
|
118
|
+
cellHeight: J,
|
|
119
|
+
maxFontSize: Y,
|
|
120
|
+
minFontSize: Q,
|
|
121
|
+
index: D,
|
|
122
|
+
reportRotation: V,
|
|
123
|
+
reportHide: T,
|
|
124
|
+
rotateAll: A,
|
|
125
|
+
hideAll: O
|
|
83
126
|
}) {
|
|
84
127
|
y.removeAttribute("transform"), y.removeAttribute("visibility");
|
|
85
|
-
let
|
|
86
|
-
y.setAttribute("font-size",
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
|
|
128
|
+
let ue = !1, ee = !1;
|
|
129
|
+
y.setAttribute("font-size", Y);
|
|
130
|
+
const m = y.getComputedTextLength();
|
|
131
|
+
if (m <= I)
|
|
132
|
+
V(D, !1), T(D, !1);
|
|
90
133
|
else {
|
|
91
|
-
const
|
|
92
|
-
|
|
134
|
+
const S = Math.floor(Y * I / m);
|
|
135
|
+
S >= Q ? (y.setAttribute("font-size", S), V(D, !1), T(D, !1)) : (V(D, !0), T(D, !1), ue = !0);
|
|
93
136
|
}
|
|
94
|
-
if (
|
|
95
|
-
y.setAttribute("font-size",
|
|
96
|
-
const
|
|
97
|
-
y.setAttribute("transform", `rotate(-90 ${
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
|
|
137
|
+
if (A && (ue = !0), ue) {
|
|
138
|
+
y.setAttribute("font-size", Y);
|
|
139
|
+
const S = y.getBBox(), N = S.x + S.width / 2, te = S.y + S.height / 2;
|
|
140
|
+
y.setAttribute("transform", `rotate(-90 ${N} ${te})`);
|
|
141
|
+
const $ = y.getBBox().width;
|
|
142
|
+
if ($ <= J)
|
|
143
|
+
T(D, !1);
|
|
101
144
|
else {
|
|
102
|
-
const
|
|
103
|
-
|
|
145
|
+
const ne = Math.floor(Y * J / $);
|
|
146
|
+
ne >= Q ? (y.setAttribute("font-size", ne), T(D, !1)) : (ee = !0, T(D, !0));
|
|
104
147
|
}
|
|
105
148
|
}
|
|
106
|
-
(
|
|
149
|
+
(O || ee) && y.setAttribute("visibility", "hidden");
|
|
107
150
|
}
|
|
108
|
-
const Hl = ["id"],
|
|
151
|
+
const Hl = ["id"], Xl = ["xmlns", "viewBox"], Pl = ["x", "y", "width", "height"], Il = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Vl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ul = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Gl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y"], Yl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], jl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ql = ["font-size", "fill", "x", "y", "font-weight"], Kl = ["font-size", "fill", "x", "y", "font-weight"], Zl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Jl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ql = { key: 6 }, ea = ["x", "y", "width", "height", "stroke", "stroke-width"], ta = { key: 7 }, la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], oa = { class: "vue-ui-heatmap-legend-gauge-right" }, sa = ["data-value"], ua = { class: "vue-ui-heatmap-gauge-indicator-value" }, na = {
|
|
109
152
|
key: 4,
|
|
110
153
|
class: "vue-data-ui-watermark"
|
|
111
|
-
},
|
|
154
|
+
}, ia = { class: "vue-ui-data-table" }, ra = { key: 0 }, va = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, da = ["data-cell"], ya = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ha = {
|
|
112
155
|
__name: "vue-ui-heatmap",
|
|
113
156
|
props: {
|
|
114
157
|
config: {
|
|
@@ -125,24 +168,24 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
125
168
|
}
|
|
126
169
|
},
|
|
127
170
|
emits: ["selectDatapoint"],
|
|
128
|
-
setup(y, { expose:
|
|
171
|
+
setup(y, { expose: I, emit: J }) {
|
|
129
172
|
nl((t) => ({
|
|
130
|
-
|
|
173
|
+
v7a25c10c: t.tdo
|
|
131
174
|
}));
|
|
132
|
-
const
|
|
175
|
+
const Y = ve(() => import("./Tooltip-B79qvriT.js")), Q = ve(() => import("./BaseIcon-r3_sTK1A.js")), D = ve(() => import("./PenAndPaper-CsqBamFZ.js")), V = ve(() => import("./UserOptions-B-2A_KRb.js")), T = ve(() => import("./PackageVersion-DCZIL0_B.js")), A = ve(() => import("./BaseDraggableDialog-C167SnU0.js")), { vue_ui_heatmap: O } = Ll(), { isThemeValid: ue, warnInvalidTheme: ee } = $l(), m = y, S = J, N = b({
|
|
133
176
|
get() {
|
|
134
|
-
return !!
|
|
177
|
+
return !!m.dataset && m.dataset.length;
|
|
135
178
|
},
|
|
136
179
|
set(t) {
|
|
137
180
|
return t;
|
|
138
181
|
}
|
|
139
|
-
}),
|
|
140
|
-
function
|
|
182
|
+
}), te = d(Ie()), $ = d(null), ne = d(!1), _e = d(""), Ge = d(void 0), B = d(null), We = d(0), Ye = d(null), je = d(0), Ft = d(null), ce = d(null), ze = d(null), qe = d(null), Ke = d(null), Dt = d(null), Ze = d(null), Ot = d(null), $e = d(null), Fe = d(null), Mt = d(null), Je = d(null), ie = il(null), e = d(Be());
|
|
183
|
+
function Bt() {
|
|
141
184
|
const t = Array(7).fill("_"), s = [], a = 14, o = t.length;
|
|
142
185
|
for (let v = 0; v < o; v += 1) {
|
|
143
186
|
const c = [];
|
|
144
|
-
for (let
|
|
145
|
-
c.push(v +
|
|
187
|
+
for (let w = 0; w < a; w += 1)
|
|
188
|
+
c.push(v + w * 2);
|
|
146
189
|
s.push({
|
|
147
190
|
name: `${t[v]}`,
|
|
148
191
|
values: c
|
|
@@ -150,16 +193,16 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
150
193
|
}
|
|
151
194
|
return s;
|
|
152
195
|
}
|
|
153
|
-
const { loading:
|
|
154
|
-
...rl(
|
|
196
|
+
const { loading: me, FINAL_DATASET: k, manualLoading: De } = Sl({
|
|
197
|
+
...rl(m),
|
|
155
198
|
FINAL_CONFIG: e,
|
|
156
|
-
prepareConfig:
|
|
199
|
+
prepareConfig: Be,
|
|
157
200
|
callback: () => {
|
|
158
201
|
Promise.resolve().then(async () => {
|
|
159
|
-
await Se(),
|
|
202
|
+
await Se(), $.value && ml($.value, { delta: 0.1, delay: 250 });
|
|
160
203
|
});
|
|
161
204
|
},
|
|
162
|
-
skeletonDataset:
|
|
205
|
+
skeletonDataset: Bt(),
|
|
163
206
|
skeletonConfig: fl({
|
|
164
207
|
defaultConfig: e.value,
|
|
165
208
|
userConfig: {
|
|
@@ -185,65 +228,65 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
185
228
|
}
|
|
186
229
|
}
|
|
187
230
|
})
|
|
188
|
-
}), { userOptionsVisible:
|
|
231
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: Et, keepUserOptionState: Qe } = Dl({ config: e.value }), { svgRef: Me } = Ol({ config: e.value.style.title });
|
|
189
232
|
function et(t) {
|
|
190
233
|
Et(t);
|
|
191
234
|
}
|
|
192
|
-
function
|
|
235
|
+
function Be() {
|
|
193
236
|
const t = Ve({
|
|
194
|
-
userConfig:
|
|
195
|
-
defaultConfig:
|
|
237
|
+
userConfig: m.config,
|
|
238
|
+
defaultConfig: O
|
|
196
239
|
});
|
|
197
240
|
let s = {};
|
|
198
241
|
const a = t.theme;
|
|
199
242
|
if (a)
|
|
200
|
-
if (!
|
|
201
|
-
|
|
243
|
+
if (!ue.value(t))
|
|
244
|
+
ee(t), s = t;
|
|
202
245
|
else {
|
|
203
246
|
const o = Ve({
|
|
204
|
-
userConfig:
|
|
247
|
+
userConfig: $t[a] || m.config,
|
|
205
248
|
defaultConfig: t
|
|
206
249
|
});
|
|
207
250
|
s = {
|
|
208
251
|
...Ve({
|
|
209
|
-
userConfig:
|
|
252
|
+
userConfig: m.config,
|
|
210
253
|
defaultConfig: o
|
|
211
254
|
})
|
|
212
255
|
};
|
|
213
256
|
}
|
|
214
257
|
else
|
|
215
258
|
s = t;
|
|
216
|
-
return
|
|
259
|
+
return m.config && gl(m.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = m.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
|
|
217
260
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}, { deep: !0 }),
|
|
261
|
+
we(() => m.config, (t) => {
|
|
262
|
+
me.value || (e.value = Be()), Oe.value = !e.value.userOptions.showOnChartHover, Ee(), je.value += 1, E.value.showTable = e.value.table.show, E.value.showTooltip = e.value.style.tooltip.show, de.value = e.value.style.layout.width, ye.value = e.value.style.layout.height;
|
|
263
|
+
}, { deep: !0 }), we(() => m.dataset, (t) => {
|
|
221
264
|
Array.isArray(t) && t.length > 0 && (De.value = !1), Ee();
|
|
222
265
|
}, { deep: !0 });
|
|
223
266
|
const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = Tl({
|
|
224
|
-
elementId: `heatmap__${
|
|
267
|
+
elementId: `heatmap__${te.value}`,
|
|
225
268
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
226
269
|
options: e.value.userOptions.print
|
|
227
|
-
}),
|
|
270
|
+
}), Nt = b(() => e.value.userOptions.show && !e.value.style.title.text), E = d({
|
|
228
271
|
showTable: e.value.table.show,
|
|
229
272
|
showTooltip: e.value.style.tooltip.show
|
|
230
273
|
});
|
|
231
|
-
|
|
232
|
-
|
|
274
|
+
we(e, () => {
|
|
275
|
+
E.value = {
|
|
233
276
|
showTable: e.value.table.show,
|
|
234
277
|
showTooltip: e.value.style.tooltip.show
|
|
235
278
|
};
|
|
236
279
|
}, { immediate: !0 });
|
|
237
|
-
const
|
|
280
|
+
const Rt = b(() => e.value.table.responsiveBreakpoint), j = d(null), st = b(() => !!e.value.debug);
|
|
238
281
|
function Ee() {
|
|
239
|
-
if (mt(
|
|
282
|
+
if (mt(m.dataset) && (xt({
|
|
240
283
|
componentName: "VueUiHeatmap",
|
|
241
284
|
type: "dataset",
|
|
242
285
|
debug: st.value
|
|
243
|
-
}),
|
|
286
|
+
}), N.value = !1, De.value = !0), mt(m.dataset) || (De.value = e.value.loading), e.value.responsive) {
|
|
244
287
|
const t = Te(() => {
|
|
245
|
-
const { width: s, height: a } =
|
|
246
|
-
chart:
|
|
288
|
+
const { width: s, height: a } = Al({
|
|
289
|
+
chart: $.value,
|
|
247
290
|
title: e.value.style.title.text ? qe.value : null,
|
|
248
291
|
// add legend hirizontal in legend attr
|
|
249
292
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
@@ -251,96 +294,96 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
251
294
|
noTitle: Ke.value
|
|
252
295
|
});
|
|
253
296
|
requestAnimationFrame(() => {
|
|
254
|
-
|
|
297
|
+
de.value = s, ye.value = a;
|
|
255
298
|
});
|
|
256
299
|
});
|
|
257
|
-
|
|
300
|
+
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(t), ie.value = $.value.parentNode, j.value.observe(ie.value);
|
|
258
301
|
}
|
|
259
302
|
}
|
|
260
303
|
ft(() => {
|
|
261
|
-
|
|
304
|
+
j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect());
|
|
262
305
|
}), vl(() => {
|
|
263
306
|
Ee();
|
|
264
307
|
});
|
|
265
|
-
const
|
|
266
|
-
width: Math.max(10,
|
|
267
|
-
height: Math.max(10,
|
|
268
|
-
})),
|
|
269
|
-
|
|
308
|
+
const U = b(() => Math.max(...k.value.flatMap((t) => (t.values || []).length))), de = d(e.value.style.layout.width), ye = d(e.value.style.layout.height), M = b(() => ({
|
|
309
|
+
width: Math.max(10, de.value),
|
|
310
|
+
height: Math.max(10, ye.value)
|
|
311
|
+
})), re = d(0), Ht = Te((t) => {
|
|
312
|
+
t !== re.value && (re.value = t);
|
|
270
313
|
}, 100);
|
|
271
|
-
Ue({ elementRef:
|
|
272
|
-
const
|
|
273
|
-
|
|
314
|
+
Ue({ elementRef: $e, callback: Ht, attr: "height" });
|
|
315
|
+
const le = d(0), Xt = Te((t) => {
|
|
316
|
+
t !== le.value && (le.value = t);
|
|
274
317
|
}, 100);
|
|
275
|
-
Ue({ elementRef: Ze, callback:
|
|
276
|
-
const
|
|
277
|
-
|
|
318
|
+
Ue({ elementRef: Ze, callback: Xt, attr: "width" });
|
|
319
|
+
const he = d(0), Pt = Te((t) => {
|
|
320
|
+
t !== he.value && (he.value = t);
|
|
278
321
|
}, 100);
|
|
279
|
-
Ue({ elementRef: Fe, callback:
|
|
280
|
-
|
|
322
|
+
Ue({ elementRef: Fe, callback: Pt, attr: "height" }), ft(() => {
|
|
323
|
+
re.value = 0, le.value = 0, he.value = 0;
|
|
281
324
|
});
|
|
282
|
-
const r =
|
|
325
|
+
const r = b(() => Math.min(M.value.height, M.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = b(() => {
|
|
283
326
|
let t = 0;
|
|
284
327
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
285
|
-
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 =
|
|
286
|
-
x: r.value *
|
|
287
|
-
y: r.value * ((
|
|
288
|
-
},
|
|
289
|
-
width: Math.max(3,
|
|
290
|
-
height: Math.max(3, h / (
|
|
328
|
+
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 = M.value.height - s.top - s.bottom - re.value - a, c = M.value.width / 60, w = {
|
|
329
|
+
x: r.value * U.value,
|
|
330
|
+
y: r.value * ((k.value || []).length + 1)
|
|
331
|
+
}, G = M.value.width - s.left - s.right - w.x - c * 2 - 2 - t - le.value, h = v - c - w.y - he.value - o - e.value.style.layout.cells.columnTotal.value.offsetY, _ = {
|
|
332
|
+
width: Math.max(3, G / U.value),
|
|
333
|
+
height: Math.max(3, h / (k.value.length ?? 1))
|
|
291
334
|
};
|
|
292
335
|
return {
|
|
293
|
-
top: s.top +
|
|
294
|
-
topLabelsHeight:
|
|
336
|
+
top: s.top + re.value + c + a,
|
|
337
|
+
topLabelsHeight: re.value,
|
|
295
338
|
sumCellXHeight: c,
|
|
296
339
|
height: h,
|
|
297
|
-
left: s.left +
|
|
340
|
+
left: s.left + le.value + c / 2,
|
|
298
341
|
right: s.right - t,
|
|
299
|
-
bottom:
|
|
300
|
-
width:
|
|
301
|
-
cellSize:
|
|
342
|
+
bottom: M.value.height - s.bottom - he.value,
|
|
343
|
+
width: G,
|
|
344
|
+
cellSize: _
|
|
302
345
|
};
|
|
303
|
-
}),
|
|
304
|
-
const t =
|
|
346
|
+
}), q = b(() => Math.max(...k.value.flatMap((t) => t.values))), fe = b(() => Math.min(...k.value.flatMap((t) => t.values))), ae = b(() => {
|
|
347
|
+
const t = k.value.flatMap((a) => a.values);
|
|
305
348
|
return t.reduce((a, o) => a + o, 0) / t.length;
|
|
306
|
-
}), It =
|
|
307
|
-
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values :
|
|
308
|
-
maxDatapoints:
|
|
349
|
+
}), It = b(() => Ct({
|
|
350
|
+
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : k.value.map((t) => t.name),
|
|
351
|
+
maxDatapoints: k.value.length,
|
|
309
352
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
310
353
|
start: 0,
|
|
311
|
-
end:
|
|
312
|
-
})), Vt =
|
|
354
|
+
end: k.value.length
|
|
355
|
+
})), Vt = b(() => Ct({
|
|
313
356
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
314
|
-
maxDatapoints:
|
|
357
|
+
maxDatapoints: U.value,
|
|
315
358
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
316
359
|
start: 0,
|
|
317
|
-
end:
|
|
318
|
-
})), p =
|
|
319
|
-
const t = It.value.map((h) => h.text), s = Vt.value.map((h) => h.text), a =
|
|
320
|
-
for (let h = 0; h <
|
|
321
|
-
c.push(
|
|
322
|
-
const
|
|
360
|
+
end: U.value
|
|
361
|
+
})), p = b(() => {
|
|
362
|
+
const t = It.value.map((h) => h.text), s = Vt.value.map((h) => h.text), a = k.value.map((h) => h.values.reduce((_, Xe) => _ + Xe, 0)), o = Math.max(...a), v = Math.min(...a), c = [];
|
|
363
|
+
for (let h = 0; h < U.value; h += 1)
|
|
364
|
+
c.push(k.value.map((_) => _.values[h] || 0).reduce((_, Xe) => _ + Xe, 0));
|
|
365
|
+
const w = Math.max(...c), G = Math.min(...c);
|
|
323
366
|
return {
|
|
324
367
|
yTotals: a.map((h) => {
|
|
325
|
-
const
|
|
368
|
+
const _ = isNaN(h / o) ? 0 : h / o;
|
|
326
369
|
return {
|
|
327
370
|
total: h,
|
|
328
|
-
proportion:
|
|
329
|
-
color:
|
|
371
|
+
proportion: _,
|
|
372
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, v, o, h)
|
|
330
373
|
};
|
|
331
374
|
}),
|
|
332
375
|
xTotals: c.map((h) => {
|
|
333
|
-
const
|
|
376
|
+
const _ = isNaN(h / w) ? 0 : h / w;
|
|
334
377
|
return {
|
|
335
378
|
total: h,
|
|
336
|
-
proportion:
|
|
337
|
-
color:
|
|
379
|
+
proportion: _,
|
|
380
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, G, w, h)
|
|
338
381
|
};
|
|
339
382
|
}),
|
|
340
383
|
yLabels: t,
|
|
341
|
-
xLabels: s.slice(0,
|
|
384
|
+
xLabels: s.slice(0, U.value)
|
|
342
385
|
};
|
|
343
|
-
}),
|
|
386
|
+
}), oe = b(() => (k.value.forEach((t, s) => {
|
|
344
387
|
bl({
|
|
345
388
|
datasetObject: t,
|
|
346
389
|
requiredAttributes: ["values"]
|
|
@@ -353,59 +396,59 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
353
396
|
debug: st.value
|
|
354
397
|
});
|
|
355
398
|
});
|
|
356
|
-
}),
|
|
399
|
+
}), k.value.map((t, s) => ({
|
|
357
400
|
...t,
|
|
358
|
-
temperatures: (t.values || []).map((a, o) => a >=
|
|
401
|
+
temperatures: (t.values || []).map((a, o) => a >= ae.value ? {
|
|
359
402
|
side: "up",
|
|
360
|
-
color:
|
|
361
|
-
ratio: Math.abs(Math.abs(a -
|
|
403
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, fe.value, q.value, a),
|
|
404
|
+
ratio: Math.abs(Math.abs(a - ae.value) / Math.abs(q.value - ae.value)) > 1 ? 1 : Math.abs(Math.abs(a - ae.value) / Math.abs(q.value - ae.value)),
|
|
362
405
|
value: a,
|
|
363
406
|
yAxisName: p.value.yLabels[s],
|
|
364
407
|
xAxisName: p.value.xLabels[o],
|
|
365
408
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
366
409
|
} : {
|
|
367
410
|
side: "down",
|
|
368
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(
|
|
369
|
-
color:
|
|
411
|
+
ratio: Math.abs(1 - Math.abs(a) / Math.abs(ae.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(ae.value)),
|
|
412
|
+
color: pe(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, fe.value, q.value, a),
|
|
370
413
|
value: a,
|
|
371
414
|
yAxisName: p.value.yLabels[s],
|
|
372
415
|
xAxisName: p.value.xLabels[o],
|
|
373
416
|
id: `vue-data-ui-heatmap-cell-${Ie()}`
|
|
374
417
|
})
|
|
375
|
-
})))), ut =
|
|
376
|
-
function
|
|
418
|
+
})))), ut = b(() => k.value.length), nt = gt(Array(ut.value * U.value || 1).fill(!1)), Ut = b(() => nt.some((t) => t));
|
|
419
|
+
function Gt(t, s) {
|
|
377
420
|
nt[t] = s;
|
|
378
421
|
}
|
|
379
|
-
const it = gt(Array(ut.value *
|
|
380
|
-
function
|
|
422
|
+
const it = gt(Array(ut.value * U.value || 1).fill(!1)), Wt = b(() => it.some((t) => t));
|
|
423
|
+
function Yt(t, s) {
|
|
381
424
|
it[t] = s;
|
|
382
425
|
}
|
|
383
|
-
const
|
|
384
|
-
function
|
|
385
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }),
|
|
386
|
-
const { value: v, yAxisName: c, xAxisName:
|
|
387
|
-
|
|
426
|
+
const R = d(null), xe = d(null);
|
|
427
|
+
function jt(t, s, a, o) {
|
|
428
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: s }), B.value = { x: a, y: o };
|
|
429
|
+
const { value: v, yAxisName: c, xAxisName: w, id: G } = t;
|
|
430
|
+
Ge.value = G, R.value = v, xe.value = {
|
|
388
431
|
datapoint: t,
|
|
389
432
|
seriesIndex: s,
|
|
390
|
-
series:
|
|
433
|
+
series: oe.value,
|
|
391
434
|
config: e.value
|
|
392
|
-
},
|
|
435
|
+
}, ne.value = !0;
|
|
393
436
|
let h = "";
|
|
394
|
-
const
|
|
395
|
-
|
|
437
|
+
const _ = e.value.style.tooltip.customFormat;
|
|
438
|
+
kl(_) && wl(() => _({
|
|
396
439
|
datapoint: t,
|
|
397
440
|
seriesIndex: s,
|
|
398
|
-
series:
|
|
441
|
+
series: oe.value,
|
|
399
442
|
config: e.value
|
|
400
|
-
})) ? _e.value =
|
|
443
|
+
})) ? _e.value = _({
|
|
401
444
|
datapoint: t,
|
|
402
445
|
seriesIndex: s,
|
|
403
|
-
series:
|
|
446
|
+
series: oe.value,
|
|
404
447
|
config: e.value
|
|
405
|
-
}) : (h += `<div>${c} ${
|
|
448
|
+
}) : (h += `<div>${c} ${w ? c ? ` - ${w}` : `${w}` : ""}</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, fe.value, q.value, v)}">⬤</span><span>${isNaN(v) ? "-" : K(
|
|
406
449
|
e.value.style.layout.cells.value.formatter,
|
|
407
450
|
v,
|
|
408
|
-
|
|
451
|
+
W({
|
|
409
452
|
p: e.value.style.layout.dataLabels.prefix,
|
|
410
453
|
v,
|
|
411
454
|
s: e.value.style.layout.dataLabels.suffix,
|
|
@@ -415,13 +458,13 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
415
458
|
)}</span></div>`, _e.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${h}</div>`);
|
|
416
459
|
}
|
|
417
460
|
function qt({ datapoint: t, seriesIndex: s }) {
|
|
418
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }),
|
|
461
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), ne.value = !1, Ge.value = void 0, R.value = null, B.value = null;
|
|
419
462
|
}
|
|
420
463
|
function Kt(t) {
|
|
421
|
-
return
|
|
464
|
+
return K(
|
|
422
465
|
e.value.style.layout.cells.value.formatter,
|
|
423
466
|
p.value.yTotals[t].total,
|
|
424
|
-
|
|
467
|
+
W({
|
|
425
468
|
p: e.value.style.layout.dataLabels.prefix,
|
|
426
469
|
v: p.value.yTotals[t].total,
|
|
427
470
|
s: e.value.style.layout.dataLabels.suffix,
|
|
@@ -431,10 +474,10 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
431
474
|
);
|
|
432
475
|
}
|
|
433
476
|
function Zt(t) {
|
|
434
|
-
return
|
|
477
|
+
return K(
|
|
435
478
|
e.value.style.layout.cells.value.formatter,
|
|
436
479
|
p.value.xTotals[t].total,
|
|
437
|
-
|
|
480
|
+
W({
|
|
438
481
|
p: e.value.style.layout.dataLabels.prefix,
|
|
439
482
|
v: p.value.xTotals[t].total,
|
|
440
483
|
s: e.value.style.layout.dataLabels.suffix,
|
|
@@ -443,48 +486,48 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
443
486
|
{ datapoint: p.value.xTotals[t], colIndex: t }
|
|
444
487
|
);
|
|
445
488
|
}
|
|
446
|
-
|
|
447
|
-
const t =
|
|
489
|
+
b(() => {
|
|
490
|
+
const t = k.value.map((a) => ({
|
|
448
491
|
name: a.name
|
|
449
|
-
})), s =
|
|
492
|
+
})), s = k.value.map((a) => a.values);
|
|
450
493
|
return { head: t, body: s };
|
|
451
494
|
});
|
|
452
|
-
function
|
|
495
|
+
function Ne(t = null) {
|
|
453
496
|
Se(() => {
|
|
454
|
-
const s = ["", ...
|
|
497
|
+
const s = ["", ...k.value.map((c, w) => c.name)], a = [];
|
|
455
498
|
for (let c = 0; c < p.value.xLabels.length; c += 1) {
|
|
456
|
-
const
|
|
457
|
-
for (let
|
|
458
|
-
|
|
459
|
-
a.push(
|
|
499
|
+
const w = [p.value.xLabels[c]];
|
|
500
|
+
for (let G = 0; G < k.value.length; G += 1)
|
|
501
|
+
w.push([k.value[G].values[c]]);
|
|
502
|
+
a.push(w);
|
|
460
503
|
}
|
|
461
504
|
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(a), v = xl(o);
|
|
462
505
|
t ? t(v) : Cl({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
463
506
|
});
|
|
464
507
|
}
|
|
465
|
-
const
|
|
508
|
+
const se = d(!1);
|
|
466
509
|
function rt(t) {
|
|
467
|
-
|
|
510
|
+
se.value = t, We.value += 1;
|
|
468
511
|
}
|
|
469
512
|
function vt() {
|
|
470
|
-
|
|
513
|
+
E.value.showTable = !E.value.showTable;
|
|
471
514
|
}
|
|
472
515
|
function ct() {
|
|
473
|
-
|
|
516
|
+
E.value.showTooltip = !E.value.showTooltip;
|
|
474
517
|
}
|
|
475
518
|
const Ce = d(!1);
|
|
476
|
-
function
|
|
519
|
+
function Re() {
|
|
477
520
|
Ce.value = !Ce.value;
|
|
478
521
|
}
|
|
479
522
|
function Jt(t, s) {
|
|
480
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }),
|
|
523
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: s }), S("selectDatapoint", t);
|
|
481
524
|
}
|
|
482
525
|
function Qt() {
|
|
483
|
-
return
|
|
526
|
+
return oe.value;
|
|
484
527
|
}
|
|
485
528
|
async function el({ scale: t = 2 } = {}) {
|
|
486
|
-
if (
|
|
487
|
-
const { width: s, height: a } =
|
|
529
|
+
if (!$.value) return;
|
|
530
|
+
const { width: s, height: a } = $.value.getBoundingClientRect(), o = s / a, { imageUri: v, base64: c } = await Ml({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
488
531
|
return {
|
|
489
532
|
imageUri: v,
|
|
490
533
|
base64: c,
|
|
@@ -494,13 +537,13 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
494
537
|
aspectRatio: o
|
|
495
538
|
};
|
|
496
539
|
}
|
|
497
|
-
const dt =
|
|
540
|
+
const dt = b(() => ({
|
|
498
541
|
start: 0,
|
|
499
|
-
end:
|
|
500
|
-
})),
|
|
501
|
-
|
|
502
|
-
timeLabelsEls:
|
|
503
|
-
timeLabels:
|
|
542
|
+
end: U.value
|
|
543
|
+
})), yt = b(() => p.value.xLabels);
|
|
544
|
+
kt({
|
|
545
|
+
timeLabelsEls: $e,
|
|
546
|
+
timeLabels: yt,
|
|
504
547
|
slicer: dt,
|
|
505
548
|
configRef: e,
|
|
506
549
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
@@ -508,11 +551,11 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
508
551
|
isAutoSize: !1,
|
|
509
552
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
510
553
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
511
|
-
width:
|
|
512
|
-
height:
|
|
513
|
-
}),
|
|
554
|
+
width: de,
|
|
555
|
+
height: ye
|
|
556
|
+
}), kt({
|
|
514
557
|
timeLabelsEls: Fe,
|
|
515
|
-
timeLabels:
|
|
558
|
+
timeLabels: yt,
|
|
516
559
|
slicer: dt,
|
|
517
560
|
configRef: e,
|
|
518
561
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
@@ -520,21 +563,21 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
520
563
|
isAutoSize: !1,
|
|
521
564
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
522
565
|
rotation: e.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
523
|
-
width:
|
|
524
|
-
height:
|
|
566
|
+
width: de,
|
|
567
|
+
height: ye
|
|
525
568
|
});
|
|
526
|
-
const
|
|
527
|
-
const t = e.value.table.useDialog && !e.value.table.show, s =
|
|
569
|
+
const ke = b(() => {
|
|
570
|
+
const t = e.value.table.useDialog && !e.value.table.show, s = E.value.showTable;
|
|
528
571
|
return {
|
|
529
|
-
component: t ?
|
|
572
|
+
component: t ? A : El,
|
|
530
573
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
531
574
|
props: t ? {
|
|
532
575
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
533
576
|
color: e.value.table.th.color,
|
|
534
577
|
headerColor: e.value.table.th.color,
|
|
535
578
|
headerBg: e.value.table.th.backgroundColor,
|
|
536
|
-
isFullscreen:
|
|
537
|
-
fullscreenParent:
|
|
579
|
+
isFullscreen: se.value,
|
|
580
|
+
fullscreenParent: $.value,
|
|
538
581
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
539
582
|
} : {
|
|
540
583
|
hideDetails: !0,
|
|
@@ -553,88 +596,88 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
553
596
|
}
|
|
554
597
|
};
|
|
555
598
|
});
|
|
556
|
-
|
|
557
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
599
|
+
we(() => E.value.showTable, async (t) => {
|
|
600
|
+
e.value.table.show || (t && e.value.table.useDialog && ce.value ? (await Se(), ce.value.open()) : "close" in ce.value && ce.value.close());
|
|
558
601
|
});
|
|
559
|
-
const { isResponsive: tl } = Fl(
|
|
602
|
+
const { isResponsive: tl } = Fl(Ye, Rt);
|
|
560
603
|
function He() {
|
|
561
|
-
|
|
604
|
+
E.value.showTable = !1, ze.value && ze.value.setTableIconState(!1);
|
|
562
605
|
}
|
|
563
|
-
const ll =
|
|
564
|
-
svg:
|
|
606
|
+
const ll = b(() => e.value.style.backgroundColor), al = b(() => e.value.style.title), { exportSvg: ol, getSvg: sl } = zl({
|
|
607
|
+
svg: Me,
|
|
565
608
|
title: al,
|
|
566
609
|
backgroundColor: ll
|
|
567
610
|
});
|
|
568
|
-
async function
|
|
611
|
+
async function ht({ isCb: t }) {
|
|
569
612
|
if (t) {
|
|
570
613
|
const { blob: s, url: a, text: o, dataUrl: v } = await sl();
|
|
571
614
|
e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: v });
|
|
572
615
|
} else
|
|
573
616
|
ol();
|
|
574
617
|
}
|
|
575
|
-
return
|
|
618
|
+
return I({
|
|
576
619
|
getData: Qt,
|
|
577
620
|
getImage: el,
|
|
578
621
|
generatePdf: at,
|
|
579
|
-
generateCsv:
|
|
622
|
+
generateCsv: Ne,
|
|
580
623
|
generateImage: ot,
|
|
581
|
-
generateSvg:
|
|
624
|
+
generateSvg: ht,
|
|
582
625
|
toggleTable: vt,
|
|
583
626
|
toggleTooltip: ct,
|
|
584
|
-
toggleAnnotator:
|
|
627
|
+
toggleAnnotator: Re,
|
|
585
628
|
toggleFullscreen: rt
|
|
586
629
|
}), (t, s) => (u(), i("div", {
|
|
587
630
|
ref_key: "heatmapChart",
|
|
588
|
-
ref:
|
|
589
|
-
class:
|
|
590
|
-
style:
|
|
591
|
-
id: `heatmap__${
|
|
631
|
+
ref: $,
|
|
632
|
+
class: ge(`vue-data-ui-component vue-ui-heatmap ${se.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
633
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
634
|
+
id: `heatmap__${te.value}`,
|
|
592
635
|
onMouseenter: s[1] || (s[1] = () => et(!0)),
|
|
593
636
|
onMouseleave: s[2] || (s[2] = () => et(!1))
|
|
594
637
|
}, [
|
|
595
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
638
|
+
e.value.userOptions.buttons.annotator ? (u(), be(n(D), {
|
|
596
639
|
key: 0,
|
|
597
|
-
svgRef: n(
|
|
640
|
+
svgRef: n(Me),
|
|
598
641
|
backgroundColor: e.value.style.backgroundColor,
|
|
599
642
|
color: e.value.style.color,
|
|
600
643
|
active: Ce.value,
|
|
601
|
-
onClose:
|
|
644
|
+
onClose: Re
|
|
602
645
|
}, {
|
|
603
646
|
"annotator-action-close": C(() => [
|
|
604
647
|
x(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
605
648
|
]),
|
|
606
649
|
"annotator-action-color": C(({ color: a }) => [
|
|
607
|
-
x(t.$slots, "annotator-action-color",
|
|
650
|
+
x(t.$slots, "annotator-action-color", H(X({ color: a })), void 0, !0)
|
|
608
651
|
]),
|
|
609
652
|
"annotator-action-draw": C(({ mode: a }) => [
|
|
610
|
-
x(t.$slots, "annotator-action-draw",
|
|
653
|
+
x(t.$slots, "annotator-action-draw", H(X({ mode: a })), void 0, !0)
|
|
611
654
|
]),
|
|
612
655
|
"annotator-action-undo": C(({ disabled: a }) => [
|
|
613
|
-
x(t.$slots, "annotator-action-undo",
|
|
656
|
+
x(t.$slots, "annotator-action-undo", H(X({ disabled: a })), void 0, !0)
|
|
614
657
|
]),
|
|
615
658
|
"annotator-action-redo": C(({ disabled: a }) => [
|
|
616
|
-
x(t.$slots, "annotator-action-redo",
|
|
659
|
+
x(t.$slots, "annotator-action-redo", H(X({ disabled: a })), void 0, !0)
|
|
617
660
|
]),
|
|
618
661
|
"annotator-action-delete": C(({ disabled: a }) => [
|
|
619
|
-
x(t.$slots, "annotator-action-delete",
|
|
662
|
+
x(t.$slots, "annotator-action-delete", H(X({ disabled: a })), void 0, !0)
|
|
620
663
|
]),
|
|
621
664
|
_: 3
|
|
622
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
623
|
-
|
|
665
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
666
|
+
Nt.value ? (u(), i("div", {
|
|
624
667
|
key: 1,
|
|
625
668
|
ref_key: "noTitle",
|
|
626
669
|
ref: Ke,
|
|
627
670
|
class: "vue-data-ui-no-title-space",
|
|
628
671
|
style: "height:36px; width: 100%;background:transparent"
|
|
629
|
-
}, null, 512)) :
|
|
672
|
+
}, null, 512)) : f("", !0),
|
|
630
673
|
e.value.style.title.text ? (u(), i("div", {
|
|
631
674
|
key: 2,
|
|
632
675
|
ref_key: "chartTitle",
|
|
633
676
|
ref: qe,
|
|
634
677
|
style: "width:100%;background:transparent"
|
|
635
678
|
}, [
|
|
636
|
-
(u(),
|
|
637
|
-
key: `title_${
|
|
679
|
+
(u(), be(Bl, {
|
|
680
|
+
key: `title_${je.value}`,
|
|
638
681
|
config: {
|
|
639
682
|
title: {
|
|
640
683
|
cy: "heatmap-div-title",
|
|
@@ -646,16 +689,16 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
646
689
|
}
|
|
647
690
|
}
|
|
648
691
|
}, null, 8, ["config"]))
|
|
649
|
-
], 512)) :
|
|
650
|
-
e.value.userOptions.show &&
|
|
692
|
+
], 512)) : f("", !0),
|
|
693
|
+
e.value.userOptions.show && N.value && (n(Qe) || n(Oe)) ? (u(), be(n(V), {
|
|
651
694
|
ref_key: "userOptionsRef",
|
|
652
|
-
ref:
|
|
653
|
-
key: `user_options_${
|
|
695
|
+
ref: ze,
|
|
696
|
+
key: `user_options_${We.value}`,
|
|
654
697
|
backgroundColor: e.value.style.backgroundColor,
|
|
655
698
|
color: e.value.style.color,
|
|
656
699
|
isImaging: n(lt),
|
|
657
700
|
isPrinting: n(tt),
|
|
658
|
-
uid:
|
|
701
|
+
uid: te.value,
|
|
659
702
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
660
703
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
661
704
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -663,10 +706,10 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
663
706
|
hasXls: e.value.userOptions.buttons.csv,
|
|
664
707
|
hasTable: e.value.userOptions.buttons.table,
|
|
665
708
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
666
|
-
isFullscreen:
|
|
667
|
-
isTooltip:
|
|
709
|
+
isFullscreen: se.value,
|
|
710
|
+
isTooltip: E.value.showTooltip,
|
|
668
711
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
669
|
-
chartElement:
|
|
712
|
+
chartElement: $.value,
|
|
670
713
|
position: e.value.userOptions.position,
|
|
671
714
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
672
715
|
isAnnotation: Ce.value,
|
|
@@ -675,20 +718,20 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
675
718
|
tableDialog: e.value.table.useDialog,
|
|
676
719
|
onToggleFullscreen: rt,
|
|
677
720
|
onGeneratePdf: n(at),
|
|
678
|
-
onGenerateCsv:
|
|
721
|
+
onGenerateCsv: Ne,
|
|
679
722
|
onGenerateImage: n(ot),
|
|
680
|
-
onGenerateSvg:
|
|
723
|
+
onGenerateSvg: ht,
|
|
681
724
|
onToggleTable: vt,
|
|
682
725
|
onToggleTooltip: ct,
|
|
683
|
-
onToggleAnnotator:
|
|
684
|
-
style:
|
|
685
|
-
visibility: n(Qe) ? n(
|
|
726
|
+
onToggleAnnotator: Re,
|
|
727
|
+
style: L({
|
|
728
|
+
visibility: n(Qe) ? n(Oe) ? "visible" : "hidden" : "visible"
|
|
686
729
|
})
|
|
687
730
|
}, bt({ _: 2 }, [
|
|
688
731
|
t.$slots.menuIcon ? {
|
|
689
732
|
name: "menuIcon",
|
|
690
733
|
fn: C(({ isOpen: a, color: o }) => [
|
|
691
|
-
x(t.$slots, "menuIcon",
|
|
734
|
+
x(t.$slots, "menuIcon", H(X({ isOpen: a, color: o })), void 0, !0)
|
|
692
735
|
]),
|
|
693
736
|
key: "0"
|
|
694
737
|
} : void 0,
|
|
@@ -737,37 +780,37 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
737
780
|
t.$slots.optionFullscreen ? {
|
|
738
781
|
name: "optionFullscreen",
|
|
739
782
|
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
740
|
-
x(t.$slots, "optionFullscreen",
|
|
783
|
+
x(t.$slots, "optionFullscreen", H(X({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
741
784
|
]),
|
|
742
785
|
key: "7"
|
|
743
786
|
} : void 0,
|
|
744
787
|
t.$slots.optionAnnotator ? {
|
|
745
788
|
name: "optionAnnotator",
|
|
746
789
|
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
747
|
-
x(t.$slots, "optionAnnotator",
|
|
790
|
+
x(t.$slots, "optionAnnotator", H(X({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
748
791
|
]),
|
|
749
792
|
key: "8"
|
|
750
793
|
} : void 0
|
|
751
|
-
]), 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"])) :
|
|
752
|
-
|
|
753
|
-
class:
|
|
794
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
795
|
+
g("div", {
|
|
796
|
+
class: ge({
|
|
754
797
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
755
798
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
756
799
|
})
|
|
757
800
|
}, [
|
|
758
801
|
(u(), i("svg", {
|
|
759
802
|
ref_key: "svgRef",
|
|
760
|
-
ref:
|
|
803
|
+
ref: Me,
|
|
761
804
|
xmlns: n(pl),
|
|
762
|
-
class:
|
|
763
|
-
viewBox: `0 0 ${
|
|
805
|
+
class: ge({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value }),
|
|
806
|
+
viewBox: `0 0 ${M.value.width} ${M.value.height}`,
|
|
764
807
|
width: "100%",
|
|
765
|
-
style:
|
|
808
|
+
style: L(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
766
809
|
"aria-live": "polite",
|
|
767
810
|
role: "img",
|
|
768
811
|
preserveAspectRatio: "xMidYMid"
|
|
769
812
|
}, [
|
|
770
|
-
|
|
813
|
+
Ae(n(T)),
|
|
771
814
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
772
815
|
key: 0,
|
|
773
816
|
x: l.value.left,
|
|
@@ -779,38 +822,38 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
779
822
|
}
|
|
780
823
|
}, [
|
|
781
824
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
782
|
-
], 8,
|
|
825
|
+
], 8, Pl)) : f("", !0),
|
|
783
826
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), i("g", {
|
|
784
827
|
key: 1,
|
|
785
828
|
ref_key: "xAxisSumRects",
|
|
786
|
-
ref:
|
|
829
|
+
ref: Mt
|
|
787
830
|
}, [
|
|
788
|
-
(u(!0), i(
|
|
831
|
+
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
789
832
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
790
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
833
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (M.value.height / M.value.width),
|
|
791
834
|
height: l.value.sumCellXHeight,
|
|
792
835
|
width: l.value.cellSize.width - r.value,
|
|
793
836
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
794
837
|
stroke: e.value.style.backgroundColor,
|
|
795
838
|
"stroke-width": r.value
|
|
796
839
|
}, null, 8, Il))), 256)),
|
|
797
|
-
(u(!0), i(
|
|
840
|
+
(u(!0), i(z, null, P(p.value.xTotals, (a, o) => (u(), i("rect", {
|
|
798
841
|
x: l.value.left + l.value.cellSize.width * o + r.value / 2 + l.value.sumCellXHeight,
|
|
799
|
-
y: l.value.top - l.value.sumCellXHeight + r.value * (
|
|
842
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (M.value.height / M.value.width),
|
|
800
843
|
height: l.value.sumCellXHeight,
|
|
801
844
|
width: l.value.cellSize.width - r.value,
|
|
802
845
|
fill: a.color,
|
|
803
846
|
stroke: e.value.style.backgroundColor,
|
|
804
847
|
"stroke-width": r.value
|
|
805
848
|
}, null, 8, Vl))), 256))
|
|
806
|
-
], 512)) :
|
|
807
|
-
|
|
849
|
+
], 512)) : f("", !0),
|
|
850
|
+
g("g", {
|
|
808
851
|
ref_key: "datapoints",
|
|
809
852
|
ref: Ft
|
|
810
853
|
}, [
|
|
811
|
-
(u(!0), i(
|
|
812
|
-
(u(!0), i(
|
|
813
|
-
|
|
854
|
+
(u(!0), i(z, null, P(oe.value, (a, o) => (u(), i(z, null, [
|
|
855
|
+
(u(!0), i(z, null, P(a.temperatures, (v, c) => (u(), i("g", null, [
|
|
856
|
+
g("rect", {
|
|
814
857
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
815
858
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
816
859
|
width: l.value.cellSize.width - r.value,
|
|
@@ -819,7 +862,7 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
819
862
|
stroke: e.value.style.backgroundColor,
|
|
820
863
|
"stroke-width": r.value
|
|
821
864
|
}, null, 8, Ul),
|
|
822
|
-
|
|
865
|
+
g("rect", {
|
|
823
866
|
x: l.value.left + l.value.cellSize.width * c + r.value / 2 + l.value.sumCellXHeight,
|
|
824
867
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
825
868
|
width: l.value.cellSize.width - r.value,
|
|
@@ -827,10 +870,10 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
827
870
|
fill: v.color,
|
|
828
871
|
stroke: e.value.style.backgroundColor,
|
|
829
872
|
"stroke-width": r.value,
|
|
830
|
-
onMouseover: (
|
|
873
|
+
onMouseover: (w) => jt(v, o, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * o),
|
|
831
874
|
onMouseout: () => qt({ datapoint: v, seriesIndex: o }),
|
|
832
875
|
onClick: () => Jt(v, o)
|
|
833
|
-
}, null, 40,
|
|
876
|
+
}, null, 40, Gl),
|
|
834
877
|
e.value.style.layout.cells.value.show ? pt((u(), i("text", {
|
|
835
878
|
key: 0,
|
|
836
879
|
"text-anchor": "middle",
|
|
@@ -841,10 +884,10 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
841
884
|
y: l.value.top + l.value.cellSize.height * o + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
842
885
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
843
886
|
}, [
|
|
844
|
-
|
|
887
|
+
Pe(F(n(K)(
|
|
845
888
|
e.value.style.layout.cells.value.formatter,
|
|
846
889
|
v.value,
|
|
847
|
-
n(
|
|
890
|
+
n(W)({
|
|
848
891
|
p: e.value.style.layout.dataLabels.prefix,
|
|
849
892
|
v: v.value,
|
|
850
893
|
s: e.value.style.layout.dataLabels.suffix,
|
|
@@ -852,29 +895,29 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
852
895
|
}),
|
|
853
896
|
{ datapoint: v }
|
|
854
897
|
)), 1)
|
|
855
|
-
], 8,
|
|
856
|
-
[n(
|
|
898
|
+
], 8, Wl)), [
|
|
899
|
+
[n(Rl), {
|
|
857
900
|
cellWidth: l.value.cellSize.width - r.value,
|
|
858
901
|
cellHeight: l.value.cellSize.height - r.value,
|
|
859
902
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
860
903
|
minFontSize: 10,
|
|
861
|
-
index: o *
|
|
862
|
-
reportHide:
|
|
863
|
-
reportRotation:
|
|
864
|
-
hideAll:
|
|
904
|
+
index: o * U.value + c,
|
|
905
|
+
reportHide: Yt,
|
|
906
|
+
reportRotation: Gt,
|
|
907
|
+
hideAll: Wt.value,
|
|
865
908
|
rotateAll: Ut.value
|
|
866
909
|
}]
|
|
867
|
-
]) :
|
|
910
|
+
]) : f("", !0)
|
|
868
911
|
]))), 256))
|
|
869
912
|
], 64))), 256))
|
|
870
913
|
], 512),
|
|
871
914
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", {
|
|
872
915
|
key: 2,
|
|
873
916
|
ref_key: "yAxisSumRects",
|
|
874
|
-
ref:
|
|
917
|
+
ref: Ot
|
|
875
918
|
}, [
|
|
876
|
-
(u(!0), i(
|
|
877
|
-
|
|
919
|
+
(u(!0), i(z, null, P(oe.value, (a, o) => (u(), i(z, null, [
|
|
920
|
+
g("rect", {
|
|
878
921
|
x: l.value.left,
|
|
879
922
|
y: l.value.top + l.value.cellSize.height * o,
|
|
880
923
|
width: l.value.sumCellXHeight,
|
|
@@ -882,8 +925,8 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
882
925
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
883
926
|
stroke: e.value.style.backgroundColor,
|
|
884
927
|
"stroke-width": r.value
|
|
885
|
-
}, null, 8,
|
|
886
|
-
|
|
928
|
+
}, null, 8, Yl),
|
|
929
|
+
g("rect", {
|
|
887
930
|
x: l.value.left,
|
|
888
931
|
y: l.value.top + l.value.cellSize.height * o + r.value / 2,
|
|
889
932
|
width: l.value.sumCellXHeight,
|
|
@@ -891,42 +934,42 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
891
934
|
fill: p.value.yTotals[o].color,
|
|
892
935
|
stroke: e.value.style.backgroundColor,
|
|
893
936
|
"stroke-width": r.value
|
|
894
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, jl)
|
|
895
938
|
], 64))), 256))
|
|
896
|
-
], 512)) :
|
|
939
|
+
], 512)) : f("", !0),
|
|
897
940
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
|
|
898
941
|
key: 3,
|
|
899
942
|
ref_key: "yAxisLabels",
|
|
900
943
|
ref: Ze
|
|
901
944
|
}, [
|
|
902
|
-
(u(!0), i(
|
|
903
|
-
|
|
945
|
+
(u(!0), i(z, null, P(oe.value, (a, o) => (u(), i(z, null, [
|
|
946
|
+
g("text", {
|
|
904
947
|
class: "vue-ui-heatmap-row-name",
|
|
905
948
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
906
949
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
907
|
-
x:
|
|
950
|
+
x: le.value,
|
|
908
951
|
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),
|
|
909
952
|
"text-anchor": "end",
|
|
910
953
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
911
|
-
},
|
|
954
|
+
}, F(p.value.yLabels[o]), 9, ql),
|
|
912
955
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
|
|
913
956
|
key: 0,
|
|
914
957
|
class: "vue-ui-heatmap-row-total",
|
|
915
958
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
916
959
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
917
|
-
x:
|
|
960
|
+
x: le.value,
|
|
918
961
|
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,
|
|
919
962
|
"text-anchor": "end",
|
|
920
963
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
921
|
-
},
|
|
964
|
+
}, F(Kt(o)), 9, Kl)) : f("", !0)
|
|
922
965
|
], 64))), 256))
|
|
923
|
-
], 512)) :
|
|
966
|
+
], 512)) : f("", !0),
|
|
924
967
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
|
|
925
968
|
key: 4,
|
|
926
969
|
ref_key: "xAxisLabels",
|
|
927
|
-
ref:
|
|
970
|
+
ref: $e
|
|
928
971
|
}, [
|
|
929
|
-
(u(!0), i(
|
|
972
|
+
(u(!0), i(z, null, P(p.value.xLabels, (a, o) => (u(), i(z, null, [
|
|
930
973
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && o % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), i("text", {
|
|
931
974
|
key: 0,
|
|
932
975
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -935,28 +978,28 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
935
978
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
936
979
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
937
980
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.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})`
|
|
938
|
-
},
|
|
981
|
+
}, F(a), 9, Zl)) : f("", !0)
|
|
939
982
|
], 64))), 256))
|
|
940
|
-
], 512)) :
|
|
983
|
+
], 512)) : f("", !0),
|
|
941
984
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), i("g", {
|
|
942
985
|
key: 5,
|
|
943
986
|
ref_key: "xAxisSums",
|
|
944
987
|
ref: Fe
|
|
945
988
|
}, [
|
|
946
|
-
(u(!0), i(
|
|
989
|
+
(u(!0), i(z, null, P(p.value.xLabels, (a, o) => (u(), i("text", {
|
|
947
990
|
class: "vue-ui-heatmap-col-total",
|
|
948
991
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
949
992
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
950
993
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
951
994
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
952
995
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.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})`
|
|
953
|
-
},
|
|
954
|
-
], 512)) :
|
|
955
|
-
|
|
956
|
-
|
|
996
|
+
}, F(Zt(o)), 9, Jl))), 256))
|
|
997
|
+
], 512)) : f("", !0),
|
|
998
|
+
B.value ? (u(), i("g", Ql, [
|
|
999
|
+
g("rect", {
|
|
957
1000
|
style: { "pointer-events": "none" },
|
|
958
|
-
x:
|
|
959
|
-
y:
|
|
1001
|
+
x: B.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
1002
|
+
y: B.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
960
1003
|
width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
961
1004
|
height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
962
1005
|
fill: "transparent",
|
|
@@ -964,105 +1007,127 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
964
1007
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
965
1008
|
rx: 1
|
|
966
1009
|
}, null, 8, ea)
|
|
967
|
-
])) :
|
|
968
|
-
|
|
969
|
-
|
|
1010
|
+
])) : f("", !0),
|
|
1011
|
+
e.value.style.layout.crosshairs.show && B.value ? (u(), i("g", ta, [
|
|
1012
|
+
g("line", {
|
|
1013
|
+
x1: l.value.left + (e.value.style.layout.cells.rowTotal.color.show ? l.value.sumCellXHeight : 0),
|
|
1014
|
+
x2: B.value.x + (e.value.style.layout.cells.rowTotal.color.show ? l.value.sumCellXHeight : 0),
|
|
1015
|
+
y1: B.value.y + (l.value.cellSize.height - r.value) / 2,
|
|
1016
|
+
y2: B.value.y + (l.value.cellSize.height - r.value) / 2,
|
|
1017
|
+
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1018
|
+
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1019
|
+
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1020
|
+
"stroke-linecap": "round"
|
|
1021
|
+
}, null, 8, la),
|
|
1022
|
+
g("line", {
|
|
1023
|
+
x1: B.value.x + (e.value.style.layout.cells.rowTotal.color.show ? l.value.sumCellXHeight : 0) + (l.value.cellSize.width - r.value) / 2,
|
|
1024
|
+
x2: B.value.x + (e.value.style.layout.cells.rowTotal.color.show ? l.value.sumCellXHeight : 0) + (l.value.cellSize.width - r.value) / 2,
|
|
1025
|
+
y1: B.value.y,
|
|
1026
|
+
y2: l.value.top,
|
|
1027
|
+
stroke: e.value.style.layout.crosshairs.stroke,
|
|
1028
|
+
"stroke-width": e.value.style.layout.crosshairs.strokeWidth,
|
|
1029
|
+
"stroke-dasharray": e.value.style.layout.crosshairs.strokeDasharray,
|
|
1030
|
+
"stroke-linecap": "round"
|
|
1031
|
+
}, null, 8, aa)
|
|
1032
|
+
])) : f("", !0),
|
|
1033
|
+
x(t.$slots, "svg", { svg: M.value }, void 0, !0)
|
|
1034
|
+
], 14, Xl)),
|
|
970
1035
|
e.value.style.legend.show ? (u(), i("div", {
|
|
971
1036
|
key: 0,
|
|
972
1037
|
ref_key: "legendRight",
|
|
973
1038
|
ref: Dt,
|
|
974
1039
|
class: "vue-ui-heatmap-legend-right",
|
|
975
|
-
style:
|
|
1040
|
+
style: L({
|
|
976
1041
|
"--legend-width": e.value.style.legend.width + "px"
|
|
977
1042
|
})
|
|
978
1043
|
}, [
|
|
979
|
-
n(
|
|
1044
|
+
n(me) ? f("", !0) : (u(), i("div", {
|
|
980
1045
|
key: 0,
|
|
981
1046
|
class: "vue-ui-heatmap-legend-label-max",
|
|
982
|
-
style:
|
|
1047
|
+
style: L({
|
|
983
1048
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
984
1049
|
color: e.value.style.legend.color
|
|
985
1050
|
})
|
|
986
|
-
},
|
|
1051
|
+
}, F(n(K)(
|
|
987
1052
|
e.value.style.layout.cells.value.formatter,
|
|
988
|
-
n(
|
|
989
|
-
n(
|
|
1053
|
+
n(Z)(q.value),
|
|
1054
|
+
n(W)({
|
|
990
1055
|
p: e.value.style.layout.dataLabels.prefix,
|
|
991
|
-
v: n(
|
|
1056
|
+
v: n(Z)(q.value),
|
|
992
1057
|
s: e.value.style.layout.dataLabels.suffix,
|
|
993
1058
|
r: e.value.style.legend.roundingValue
|
|
994
1059
|
})
|
|
995
1060
|
)), 5)),
|
|
996
|
-
|
|
997
|
-
|
|
1061
|
+
g("div", oa, [
|
|
1062
|
+
g("div", {
|
|
998
1063
|
class: "vue-ui-heatmap-gauge",
|
|
999
|
-
style:
|
|
1064
|
+
style: L({
|
|
1000
1065
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
1001
1066
|
})
|
|
1002
1067
|
}, [
|
|
1003
|
-
pt(
|
|
1068
|
+
pt(g("div", {
|
|
1004
1069
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1005
|
-
"data-value": n(
|
|
1070
|
+
"data-value": n(K)(
|
|
1006
1071
|
e.value.style.layout.cells.value.formatter,
|
|
1007
|
-
n(
|
|
1008
|
-
n(
|
|
1072
|
+
n(Z)(R.value),
|
|
1073
|
+
n(W)({
|
|
1009
1074
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1010
|
-
v: n(
|
|
1075
|
+
v: n(Z)(R.value),
|
|
1011
1076
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1012
1077
|
r: e.value.style.legend.roundingValue
|
|
1013
1078
|
})
|
|
1014
1079
|
),
|
|
1015
|
-
style:
|
|
1080
|
+
style: L({
|
|
1016
1081
|
position: "absolute",
|
|
1017
1082
|
width: "100%",
|
|
1018
1083
|
height: "2px",
|
|
1019
|
-
background: [void 0, null].includes(
|
|
1020
|
-
top: `${[void 0, null].includes(
|
|
1084
|
+
background: [void 0, null].includes(R.value) ? "transparent" : n(Le)(xe.value.datapoint.color),
|
|
1085
|
+
top: `${[void 0, null].includes(R.value) ? 0 : (1 - R.value / q.value) * 100}%`,
|
|
1021
1086
|
transition: "all 0.2s ease-in-out",
|
|
1022
1087
|
"--background-color": e.value.style.backgroundColor,
|
|
1023
1088
|
"--gauge-arrow-color": n(Le)(e.value.style.backgroundColor),
|
|
1024
1089
|
"--gauge-arrow-text-color": n(Le)(e.value.style.backgroundColor),
|
|
1025
|
-
"--gauge-arrow-value":
|
|
1090
|
+
"--gauge-arrow-value": R.value,
|
|
1026
1091
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
1027
1092
|
})
|
|
1028
1093
|
}, [
|
|
1029
|
-
|
|
1094
|
+
g("div", ua, F(n(K)(
|
|
1030
1095
|
e.value.style.layout.cells.value.formatter,
|
|
1031
|
-
n(
|
|
1032
|
-
n(
|
|
1096
|
+
n(Z)(R.value),
|
|
1097
|
+
n(W)({
|
|
1033
1098
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1034
|
-
v: n(
|
|
1099
|
+
v: n(Z)(R.value),
|
|
1035
1100
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1036
1101
|
r: e.value.style.legend.roundingValue
|
|
1037
1102
|
})
|
|
1038
1103
|
)), 1)
|
|
1039
|
-
], 12,
|
|
1040
|
-
[cl, ![void 0, null].includes(
|
|
1104
|
+
], 12, sa), [
|
|
1105
|
+
[cl, ![void 0, null].includes(R.value)]
|
|
1041
1106
|
])
|
|
1042
1107
|
], 4)
|
|
1043
1108
|
]),
|
|
1044
|
-
n(
|
|
1109
|
+
n(me) ? f("", !0) : (u(), i("div", {
|
|
1045
1110
|
key: 1,
|
|
1046
1111
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1047
|
-
style:
|
|
1112
|
+
style: L({
|
|
1048
1113
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
1049
1114
|
color: e.value.style.legend.color
|
|
1050
1115
|
})
|
|
1051
|
-
},
|
|
1116
|
+
}, F(n(K)(
|
|
1052
1117
|
e.value.style.layout.cells.value.formatter,
|
|
1053
|
-
n(
|
|
1054
|
-
n(
|
|
1118
|
+
n(Z)(fe.value),
|
|
1119
|
+
n(W)({
|
|
1055
1120
|
p: e.value.style.layout.dataLabels.prefix,
|
|
1056
|
-
v: n(
|
|
1121
|
+
v: n(Z)(fe.value),
|
|
1057
1122
|
s: e.value.style.layout.dataLabels.suffix,
|
|
1058
1123
|
r: e.value.style.legend.roundingValue
|
|
1059
1124
|
})
|
|
1060
1125
|
)), 5))
|
|
1061
|
-
], 4)) :
|
|
1126
|
+
], 4)) : f("", !0)
|
|
1062
1127
|
], 2),
|
|
1063
|
-
t.$slots.watermark ? (u(), i("div",
|
|
1064
|
-
x(t.$slots, "watermark",
|
|
1065
|
-
])) :
|
|
1128
|
+
t.$slots.watermark ? (u(), i("div", na, [
|
|
1129
|
+
x(t.$slots, "watermark", H(X({ isPrinting: n(tt) || n(lt) })), void 0, !0)
|
|
1130
|
+
])) : f("", !0),
|
|
1066
1131
|
t.$slots.source ? (u(), i("div", {
|
|
1067
1132
|
key: 5,
|
|
1068
1133
|
ref_key: "source",
|
|
@@ -1070,9 +1135,9 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
1070
1135
|
dir: "auto"
|
|
1071
1136
|
}, [
|
|
1072
1137
|
x(t.$slots, "source", {}, void 0, !0)
|
|
1073
|
-
], 512)) :
|
|
1074
|
-
|
|
1075
|
-
show:
|
|
1138
|
+
], 512)) : f("", !0),
|
|
1139
|
+
Ae(n(Y), {
|
|
1140
|
+
show: E.value.showTooltip && ne.value,
|
|
1076
1141
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1077
1142
|
color: e.value.style.tooltip.color,
|
|
1078
1143
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1082,9 +1147,9 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
1082
1147
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1083
1148
|
position: e.value.style.tooltip.position,
|
|
1084
1149
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1085
|
-
parent:
|
|
1150
|
+
parent: $.value,
|
|
1086
1151
|
content: _e.value,
|
|
1087
|
-
isFullscreen:
|
|
1152
|
+
isFullscreen: se.value,
|
|
1088
1153
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1089
1154
|
smooth: e.value.style.tooltip.smooth,
|
|
1090
1155
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
@@ -1092,85 +1157,85 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
1092
1157
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1093
1158
|
}, {
|
|
1094
1159
|
"tooltip-before": C(() => [
|
|
1095
|
-
x(t.$slots, "tooltip-before",
|
|
1160
|
+
x(t.$slots, "tooltip-before", H(X({ ...xe.value })), void 0, !0)
|
|
1096
1161
|
]),
|
|
1097
1162
|
"tooltip-after": C(() => [
|
|
1098
|
-
x(t.$slots, "tooltip-after",
|
|
1163
|
+
x(t.$slots, "tooltip-after", H(X({ ...xe.value })), void 0, !0)
|
|
1099
1164
|
]),
|
|
1100
1165
|
_: 3
|
|
1101
1166
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1102
|
-
|
|
1167
|
+
N.value && e.value.userOptions.buttons.table ? (u(), be(dl(ke.value.component), yl({ key: 6 }, ke.value.props, {
|
|
1103
1168
|
ref_key: "tableUnit",
|
|
1104
|
-
ref:
|
|
1169
|
+
ref: ce,
|
|
1105
1170
|
onClose: He
|
|
1106
1171
|
}), bt({
|
|
1107
1172
|
content: C(() => [
|
|
1108
|
-
|
|
1173
|
+
g("div", {
|
|
1109
1174
|
ref_key: "tableContainer",
|
|
1110
|
-
ref:
|
|
1175
|
+
ref: Ye,
|
|
1111
1176
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1112
|
-
style:
|
|
1177
|
+
style: L(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1113
1178
|
}, [
|
|
1114
|
-
|
|
1115
|
-
style:
|
|
1116
|
-
class:
|
|
1179
|
+
g("div", {
|
|
1180
|
+
style: L(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1181
|
+
class: ge({ "vue-ui-responsive": n(tl) })
|
|
1117
1182
|
}, [
|
|
1118
|
-
e.value.table.useDialog ?
|
|
1183
|
+
e.value.table.useDialog ? f("", !0) : (u(), i("div", {
|
|
1119
1184
|
key: 0,
|
|
1120
1185
|
role: "button",
|
|
1121
1186
|
tabindex: "0",
|
|
1122
|
-
style:
|
|
1187
|
+
style: L(`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};`),
|
|
1123
1188
|
onClick: He,
|
|
1124
|
-
onKeypress:
|
|
1189
|
+
onKeypress: hl(He, ["enter"])
|
|
1125
1190
|
}, [
|
|
1126
|
-
|
|
1191
|
+
Ae(n(Q), {
|
|
1127
1192
|
name: "close",
|
|
1128
1193
|
stroke: e.value.table.th.color,
|
|
1129
1194
|
"stroke-width": 2
|
|
1130
1195
|
}, null, 8, ["stroke"])
|
|
1131
1196
|
], 36)),
|
|
1132
|
-
|
|
1133
|
-
e.value.table.useDialog ?
|
|
1197
|
+
g("table", ia, [
|
|
1198
|
+
e.value.table.useDialog ? f("", !0) : (u(), i("caption", {
|
|
1134
1199
|
key: 0,
|
|
1135
|
-
style:
|
|
1200
|
+
style: L(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1136
1201
|
}, [
|
|
1137
|
-
|
|
1138
|
-
e.value.style.title.subtitle.text ? (u(), i("span",
|
|
1202
|
+
Pe(F(e.value.style.title.text) + " ", 1),
|
|
1203
|
+
e.value.style.title.subtitle.text ? (u(), i("span", ra, F(e.value.style.title.subtitle.text), 1)) : f("", !0)
|
|
1139
1204
|
], 4)),
|
|
1140
|
-
|
|
1141
|
-
|
|
1205
|
+
g("thead", null, [
|
|
1206
|
+
g("tr", {
|
|
1142
1207
|
role: "row",
|
|
1143
|
-
style:
|
|
1208
|
+
style: L(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1144
1209
|
}, [
|
|
1145
|
-
|
|
1146
|
-
style:
|
|
1210
|
+
g("th", {
|
|
1211
|
+
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1147
1212
|
}, null, 4),
|
|
1148
|
-
(u(!0), i(
|
|
1213
|
+
(u(!0), i(z, null, P(y.dataset, (a, o) => (u(), i("th", {
|
|
1149
1214
|
align: "right",
|
|
1150
|
-
style:
|
|
1151
|
-
},
|
|
1215
|
+
style: L(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1216
|
+
}, F(a.name), 5))), 256))
|
|
1152
1217
|
], 4)
|
|
1153
1218
|
]),
|
|
1154
|
-
|
|
1155
|
-
(u(!0), i(
|
|
1219
|
+
g("tbody", null, [
|
|
1220
|
+
(u(!0), i(z, null, P(p.value.xLabels, (a, o) => (u(), i("tr", {
|
|
1156
1221
|
role: "row",
|
|
1157
|
-
class:
|
|
1158
|
-
style:
|
|
1222
|
+
class: ge({ "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 }),
|
|
1223
|
+
style: L(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1159
1224
|
}, [
|
|
1160
|
-
|
|
1225
|
+
g("td", {
|
|
1161
1226
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1162
1227
|
class: "vue-ui-data-table__tbody__td",
|
|
1163
|
-
style:
|
|
1228
|
+
style: L(`outline:${e.value.table.td.outline}`)
|
|
1164
1229
|
}, [
|
|
1165
|
-
|
|
1166
|
-
], 12,
|
|
1167
|
-
(u(!0), i(
|
|
1230
|
+
g("div", ca, F(a), 1)
|
|
1231
|
+
], 12, va),
|
|
1232
|
+
(u(!0), i(z, null, P(y.dataset, (v, c) => (u(), i("td", {
|
|
1168
1233
|
class: "vue-ui-data-table__tbody__td",
|
|
1169
1234
|
"data-cell": y.dataset[c].name,
|
|
1170
|
-
style:
|
|
1235
|
+
style: L(`outline:${e.value.table.td.outline}`)
|
|
1171
1236
|
}, [
|
|
1172
|
-
|
|
1173
|
-
], 12,
|
|
1237
|
+
g("div", ya, F(isNaN(v.values[o]) ? "-" : n(W)({ 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)
|
|
1238
|
+
], 12, da))), 256))
|
|
1174
1239
|
], 6))), 256))
|
|
1175
1240
|
])
|
|
1176
1241
|
])
|
|
@@ -1182,36 +1247,36 @@ const Hl = ["id"], Pl = ["xmlns", "viewBox"], Xl = ["x", "y", "width", "height"]
|
|
|
1182
1247
|
e.value.table.useDialog ? {
|
|
1183
1248
|
name: "title",
|
|
1184
1249
|
fn: C(() => [
|
|
1185
|
-
|
|
1250
|
+
Pe(F(ke.value.title), 1)
|
|
1186
1251
|
]),
|
|
1187
1252
|
key: "0"
|
|
1188
1253
|
} : void 0,
|
|
1189
1254
|
e.value.table.useDialog ? {
|
|
1190
1255
|
name: "actions",
|
|
1191
1256
|
fn: C(() => [
|
|
1192
|
-
|
|
1257
|
+
g("button", {
|
|
1193
1258
|
tabindex: "0",
|
|
1194
1259
|
class: "vue-ui-user-options-button",
|
|
1195
|
-
onClick: s[0] || (s[0] = (a) =>
|
|
1260
|
+
onClick: s[0] || (s[0] = (a) => Ne(e.value.userOptions.callbacks.csv))
|
|
1196
1261
|
}, [
|
|
1197
|
-
|
|
1262
|
+
Ae(n(Q), {
|
|
1198
1263
|
name: "excel",
|
|
1199
|
-
stroke:
|
|
1264
|
+
stroke: ke.value.props.color
|
|
1200
1265
|
}, null, 8, ["stroke"])
|
|
1201
1266
|
])
|
|
1202
1267
|
]),
|
|
1203
1268
|
key: "1"
|
|
1204
1269
|
} : void 0
|
|
1205
|
-
]), 1040)) :
|
|
1206
|
-
n(
|
|
1270
|
+
]), 1040)) : f("", !0),
|
|
1271
|
+
n(me) ? (u(), be(_l, { key: 7 })) : f("", !0)
|
|
1207
1272
|
], 46, Hl));
|
|
1208
1273
|
}
|
|
1209
|
-
},
|
|
1274
|
+
}, fa = /* @__PURE__ */ Nl(ha, [["__scopeId", "data-v-7c9fa799"]]), Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1210
1275
|
__proto__: null,
|
|
1211
|
-
default:
|
|
1276
|
+
default: fa
|
|
1212
1277
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1213
1278
|
export {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1279
|
+
Oa as a,
|
|
1280
|
+
Ma as b,
|
|
1281
|
+
fa as v
|
|
1217
1282
|
};
|