vue-data-ui 3.0.0-next.37 → 3.0.0-next.38
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-BwexzLX9.js → Arrow-Cxfs_jDk.js} +1 -1
- package/dist/{BaseDraggableDialog-CqOYUWgJ.js → BaseDraggableDialog-D8bUhwCR.js} +2 -2
- package/dist/{BaseIcon-bM96sLiE.js → BaseIcon-B5hDik6M.js} +1 -1
- package/dist/{ColorPicker-DKeSOZp_.js → ColorPicker-X30bIjOM.js} +2 -2
- package/dist/{DataTable-CpC-f3bF.js → DataTable-BrP5zT2y.js} +2 -2
- package/dist/{Legend-CqhrdBNU.js → Legend-Bok1w9PE.js} +2 -2
- package/dist/{NonSvgPenAndPaper-qbMyX2kx.js → NonSvgPenAndPaper-mFU4kkja.js} +3 -3
- package/dist/{PackageVersion-C05X5sSL.js → PackageVersion-DoJRJ_yZ.js} +1 -1
- package/dist/{PenAndPaper-BX5caC5i.js → PenAndPaper-BKLSbUJJ.js} +3 -3
- package/dist/{Shape-DoY1nSuX.js → Shape-Bp0uUbyi.js} +1 -1
- package/dist/{Slicer-K-fV6Zyn.js → Slicer-BIL4fQe9.js} +2 -2
- package/dist/{SparkTooltip-BigTvWHM.js → SparkTooltip-BrA3pWY1.js} +1 -1
- package/dist/{Title-CdBcQLZl.js → Title-C4mHBlGm.js} +1 -1
- package/dist/{Tooltip-cQGOp05f.js → Tooltip-CIAaZqi-.js} +1 -1
- package/dist/{UserOptions-BLgabL-g.js → UserOptions-CtdmjrzM.js} +2 -2
- package/dist/{dom-to-png-ZtEhWueM.js → dom-to-png-D7urYnQL.js} +1 -1
- package/dist/{img-Ch-SX__W.js → img-u92jJi7s.js} +1 -1
- package/dist/{index-wp5binlq.js → index-Do8Yy3T8.js} +9 -1
- package/dist/{pdf-BvVuQkf5.js → pdf-Da78hVzB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DLeFGu88.js → useNestedProp-C7A9vyBD.js} +1 -1
- package/dist/{usePrinter-gmsJtZaC.js → usePrinter-BvP9oj3O.js} +2 -2
- package/dist/{vue-data-ui-DKdztRxO.js → vue-data-ui-BVss51hf.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BUzO3sJJ.js → vue-ui-3d-bar-CsijfJeX.js} +6 -6
- package/dist/{vue-ui-accordion-DR5j0NkU.js → vue-ui-accordion-DqXZmmXi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C5qSTZM-.js → vue-ui-age-pyramid-CLr8-9V2.js} +6 -6
- package/dist/{vue-ui-annotator-3QPadpcx.js → vue-ui-annotator-BKH5uBbZ.js} +2 -2
- package/dist/vue-ui-bullet-Bv-AKTw8.js +571 -0
- package/dist/{vue-ui-candlestick-BS2slL0A.js → vue-ui-candlestick-2MCzyUcz.js} +7 -7
- package/dist/{vue-ui-carousel-table-CZ2FKTL_.js → vue-ui-carousel-table-cw5HlSnS.js} +4 -4
- package/dist/{vue-ui-chestnut-YDFpeqcB.js → vue-ui-chestnut-BgsrweZJ.js} +5 -5
- package/dist/{vue-ui-chord-Uik7yTc-.js → vue-ui-chord-M_mjkpTk.js} +8 -8
- package/dist/{vue-ui-circle-pack-tLHQ_HMs.js → vue-ui-circle-pack-Mpyhugsj.js} +6 -6
- package/dist/{vue-ui-cursor-DuTjwu1N.js → vue-ui-cursor-DSM1Yx0w.js} +2 -2
- package/dist/{vue-ui-dashboard-BImS6A6f.js → vue-ui-dashboard-DRzgS8bH.js} +62 -62
- package/dist/{vue-ui-digits-DHyvQFHB.js → vue-ui-digits-Cc0q_XUJ.js} +2 -2
- package/dist/{vue-ui-donut-BzABsTv4.js → vue-ui-donut-BcWb6mkK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-HYzJM6BY.js → vue-ui-donut-evolution-DwGNKYA1.js} +8 -8
- package/dist/{vue-ui-dumbbell-BcOhZ27d.js → vue-ui-dumbbell-ZyS0CtQ-.js} +7 -7
- package/dist/{vue-ui-flow-wr8MxKU3.js → vue-ui-flow-DcjaQvd5.js} +7 -7
- package/dist/{vue-ui-funnel-Dx3BObkz.js → vue-ui-funnel-DnPwnTbH.js} +6 -6
- package/dist/{vue-ui-galaxy-hvFBNCuJ.js → vue-ui-galaxy-BUf27AcC.js} +5 -5
- package/dist/{vue-ui-gauge-Bj9BTOK0.js → vue-ui-gauge-y52sZ03m.js} +6 -6
- package/dist/{vue-ui-gizmo-DrMgMC65.js → vue-ui-gizmo-CbOvKh62.js} +3 -3
- package/dist/{vue-ui-heatmap-svE65xaD.js → vue-ui-heatmap-DFcG0beX.js} +312 -318
- package/dist/{vue-ui-history-plot-C2RS1rJk.js → vue-ui-history-plot-CrEafJoS.js} +7 -7
- package/dist/{vue-ui-kpi-D5BC1Mr0.js → vue-ui-kpi-B7xxS9iY.js} +3 -3
- package/dist/{vue-ui-mini-loader-D62FIGRG.js → vue-ui-mini-loader-BOoPc7za.js} +2 -2
- package/dist/{vue-ui-molecule-CJf9kVTU.js → vue-ui-molecule-DjLDHkE4.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dgtoq_LP.js → vue-ui-mood-radar-CDpRBAeI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DwkH1lkj.js → vue-ui-nested-donuts-BB07uN8o.js} +9 -9
- package/dist/{vue-ui-onion-CJsi74WE.js → vue-ui-onion-QtmsKAXa.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BmmszbMf.js → vue-ui-parallel-coordinate-plot-C9igDR3-.js} +8 -8
- package/dist/{vue-ui-quadrant-DHoY_j3Z.js → vue-ui-quadrant-Bbyn8jqM.js} +8 -8
- package/dist/{vue-ui-quick-chart-B-AMJ-H2.js → vue-ui-quick-chart-DpgVYsO_.js} +620 -611
- package/dist/{vue-ui-radar-wI51h1dY.js → vue-ui-radar-BQtoJTN1.js} +7 -7
- package/dist/{vue-ui-rating-Dx4qaN31.js → vue-ui-rating-CayItUX5.js} +2 -2
- package/dist/{vue-ui-relation-circle-DpkTm4GN.js → vue-ui-relation-circle-BQPvHFqF.js} +6 -6
- package/dist/{vue-ui-ridgeline-13TEZdZt.js → vue-ui-ridgeline-Djw8uzUc.js} +8 -8
- package/dist/{vue-ui-rings-KYYXSL_J.js → vue-ui-rings-DdW9icm5.js} +8 -8
- package/dist/{vue-ui-scatter-DThb1IMn.js → vue-ui-scatter-ko0ev9Hy.js} +8 -8
- package/dist/{vue-ui-skeleton-D4JJ_IcV.js → vue-ui-skeleton-Btfrm6Mb.js} +3 -3
- package/dist/{vue-ui-smiley-BjuXDhY2.js → vue-ui-smiley-CscAe46K.js} +2 -2
- package/dist/{vue-ui-spark-trend-slD0lRZ2.js → vue-ui-spark-trend-DPo61M0c.js} +3 -3
- package/dist/{vue-ui-sparkbar-CfY4t5Xc.js → vue-ui-sparkbar-C3PmYQCw.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BLwYhS2D.js → vue-ui-sparkgauge-BVeKIvzV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B07RkXJi.js → vue-ui-sparkhistogram-qQFd_Ahm.js} +4 -4
- package/dist/{vue-ui-sparkline-Cs4aXowg.js → vue-ui-sparkline-CS9mKrwW.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-5LmEwZJ5.js → vue-ui-sparkstackbar-CgQkP8A3.js} +3 -3
- package/dist/{vue-ui-stackbar-CH5n0yJL.js → vue-ui-stackbar-emX2SvlM.js} +9 -9
- package/dist/{vue-ui-strip-plot-DntZFKql.js → vue-ui-strip-plot-BUBtGmhH.js} +7 -7
- package/dist/{vue-ui-table-DHvtU4aX.js → vue-ui-table-DHJ5c0TM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CG7Vj0Km.js → vue-ui-table-heatmap-YXVD2ajW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4jiuei1.js → vue-ui-table-sparkline-DehiyqPe.js} +4 -4
- package/dist/{vue-ui-thermometer-BDV1pxGB.js → vue-ui-thermometer-COQFOTU7.js} +6 -6
- package/dist/{vue-ui-timer-TNQa3Eof.js → vue-ui-timer-DG3qPM0B.js} +5 -5
- package/dist/{vue-ui-tiremarks-B7Pzjjc6.js → vue-ui-tiremarks-BSUFcLke.js} +6 -6
- package/dist/{vue-ui-treemap-TjFlub50.js → vue-ui-treemap-BDLQFlzo.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CRrqaana.js → vue-ui-vertical-bar-D37Bl2x2.js} +9 -9
- package/dist/{vue-ui-waffle-galoGgFT.js → vue-ui-waffle-CysJSES6.js} +8 -8
- package/dist/{vue-ui-wheel-DLfh_d06.js → vue-ui-wheel-Cm5g4KdO.js} +6 -6
- package/dist/{vue-ui-word-cloud-D47QRpYd.js → vue-ui-word-cloud-FEIoDTjf.js} +6 -6
- package/dist/{vue-ui-world-C3tzPkEp.js → vue-ui-world-CQxuqljX.js} +6 -6
- package/dist/{vue-ui-xy-CHjxAv_x.js → vue-ui-xy-TBO42wxL.js} +527 -527
- package/dist/{vue-ui-xy-canvas-DVhri5-F.js → vue-ui-xy-canvas-DyPds5xu.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-bullet-B52QaMvO.js +0 -513
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { t as we, u as
|
|
1
|
+
import { useCssVars as Bt, defineAsyncComponent as ne, computed as g, ref as c, shallowRef as nt, toRefs as Ut, watch as Re, onBeforeUnmount as Fe, onMounted as Yt, watchEffect as Ne, reactive as rt, createElementBlock as n, openBlock as u, normalizeStyle as k, normalizeClass as re, createBlock as ve, createCommentVNode as p, createElementVNode as h, createVNode as He, unref as i, createSlots as Gt, withCtx as O, renderSlot as T, normalizeProps as Z, guardReactiveProps as ee, Fragment as L, renderList as R, withDirectives as vt, createTextVNode as ct, toDisplayString as S, vShow as Wt, withKeys as jt, nextTick as qt } from "vue";
|
|
2
|
+
import { u as Kt, c as Xe, A as Jt, a as Qt, C as Zt, o as dt, e as yt, P as ce, g as el, X as tl, F as xe, i as E, f as H, v as D, q as ll, r as al, x as ol, y as sl } from "./index-Do8Yy3T8.js";
|
|
3
|
+
import { u as ht } from "./useNestedProp-C7A9vyBD.js";
|
|
4
|
+
import { u as ul } from "./usePrinter-BvP9oj3O.js";
|
|
5
|
+
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import rl from "./vue-ui-accordion-DqXZmmXi.js";
|
|
8
|
+
import vl from "./Title-C4mHBlGm.js";
|
|
9
|
+
import cl from "./img-u92jJi7s.js";
|
|
10
|
+
import { t as we, u as dl } from "./useResponsive-DfdjqQps.js";
|
|
11
11
|
import { u as ft } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
12
|
import { u as pt } from "./useTimeLabels-DkzmKfZn.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
13
|
+
import { u as yl, B as hl } from "./BaseScanner-DIK2NTdp.js";
|
|
14
|
+
import { _ as fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const pl = {
|
|
16
16
|
mounted(b, X) {
|
|
17
17
|
gt(b, X.value);
|
|
18
18
|
},
|
|
@@ -24,8 +24,8 @@ function gt(b, {
|
|
|
24
24
|
cellWidth: X,
|
|
25
25
|
cellHeight: de,
|
|
26
26
|
maxFontSize: Y,
|
|
27
|
-
minFontSize:
|
|
28
|
-
index:
|
|
27
|
+
minFontSize: ye,
|
|
28
|
+
index: $,
|
|
29
29
|
reportRotation: te,
|
|
30
30
|
reportHide: P,
|
|
31
31
|
rotateAll: ke,
|
|
@@ -36,10 +36,10 @@ function gt(b, {
|
|
|
36
36
|
b.setAttribute("font-size", Y);
|
|
37
37
|
const W = b.getComputedTextLength();
|
|
38
38
|
if (W <= X)
|
|
39
|
-
te(
|
|
39
|
+
te($, !1), P($, !1);
|
|
40
40
|
else {
|
|
41
41
|
const w = Math.floor(Y * X / W);
|
|
42
|
-
w >=
|
|
42
|
+
w >= ye ? (b.setAttribute("font-size", w), te($, !1), P($, !1)) : (te($, !0), P($, !1), le = !0);
|
|
43
43
|
}
|
|
44
44
|
if (ke && (le = !0), le) {
|
|
45
45
|
b.setAttribute("font-size", Y);
|
|
@@ -47,15 +47,15 @@ function gt(b, {
|
|
|
47
47
|
b.setAttribute("transform", `rotate(-90 ${Ae} ${ae})`);
|
|
48
48
|
const j = b.getBBox().width;
|
|
49
49
|
if (j <= de)
|
|
50
|
-
P(
|
|
50
|
+
P($, !1);
|
|
51
51
|
else {
|
|
52
52
|
const oe = Math.floor(Y * de / j);
|
|
53
|
-
oe >=
|
|
53
|
+
oe >= ye ? (b.setAttribute("font-size", oe), P($, !1)) : (G = !0, P($, !0));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
(C || G) && b.setAttribute("visibility", "hidden");
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"], xl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], kl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Ll = ["font-size", "font-weight", "fill", "x", "y"], Cl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], _l = ["font-size", "fill", "x", "y", "font-weight"], Sl = ["font-size", "fill", "x", "y", "font-weight"], zl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], $l = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ml = { key: 6 }, Ol = ["x", "y", "width", "height", "stroke", "stroke-width"], Rl = { class: "vue-ui-heatmap-legend-gauge-right" }, Fl = ["data-value"], Nl = { class: "vue-ui-heatmap-gauge-indicator-value" }, Hl = {
|
|
59
59
|
key: 4,
|
|
60
60
|
class: "vue-data-ui-watermark"
|
|
61
61
|
}, Xl = { class: "vue-ui-data-table" }, Pl = { key: 0 }, Il = ["data-cell"], Vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, El = ["data-cell"], Dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Bl = {
|
|
@@ -76,36 +76,36 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["selectDatapoint"],
|
|
78
78
|
setup(b, { expose: X, emit: de }) {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
Bt((t) => ({
|
|
80
|
+
ae23f74c: t.tdo
|
|
81
81
|
}));
|
|
82
|
-
const Y = ne(() => import("./BaseIcon-
|
|
82
|
+
const Y = ne(() => import("./BaseIcon-B5hDik6M.js")), ye = ne(() => import("./PackageVersion-DoJRJ_yZ.js")), $ = ne(() => import("./PenAndPaper-BKLSbUJJ.js")), te = ne(() => import("./Tooltip-CIAaZqi-.js")), P = ne(() => import("./UserOptions-CtdmjrzM.js")), { vue_ui_heatmap: ke } = Kt(), C = b, le = de, G = g({
|
|
83
83
|
get() {
|
|
84
84
|
return !!C.dataset && C.dataset.length;
|
|
85
85
|
},
|
|
86
86
|
set(t) {
|
|
87
87
|
return t;
|
|
88
88
|
}
|
|
89
|
-
}), W = c(Xe()), w = c(null), Ae = c(null), ae = c(!1), j = c(""), oe = c(void 0), se = c(null), Pe = c(0), Le = c(null), Ie = c(!1), Ve = c(0), bt = c(null), Ee = c(null), De = c(null), mt = c(null), Be = c(null), xt = c(null), Ce = c(null), Te = c(null), wt = c(null), Ue = c(null), q = nt(null), e = c(
|
|
89
|
+
}), W = c(Xe()), w = c(null), Ae = c(null), ae = c(!1), j = c(""), oe = c(void 0), se = c(null), Pe = c(0), Le = c(null), Ie = c(!1), Ve = c(0), bt = c(null), Ee = c(null), De = c(null), mt = c(null), Be = c(null), xt = c(null), Ce = c(null), Te = c(null), wt = c(null), Ue = c(null), q = nt(null), e = c(ze());
|
|
90
90
|
function kt() {
|
|
91
|
-
const t = Array(7).fill("_"),
|
|
91
|
+
const t = Array(7).fill("_"), a = [], o = 14, s = t.length;
|
|
92
92
|
for (let d = 0; d < s; d += 1) {
|
|
93
|
-
const
|
|
94
|
-
for (let x = 0; x <
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
const v = [];
|
|
94
|
+
for (let x = 0; x < o; x += 1)
|
|
95
|
+
v.push(d + x * 2);
|
|
96
|
+
a.push({
|
|
97
97
|
name: `${t[d]}`,
|
|
98
|
-
values:
|
|
98
|
+
values: v
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return a;
|
|
102
102
|
}
|
|
103
|
-
const { loading:
|
|
104
|
-
...
|
|
103
|
+
const { loading: he, FINAL_DATASET: m, manualLoading: _e } = yl({
|
|
104
|
+
...Ut(C),
|
|
105
105
|
FINAL_CONFIG: e,
|
|
106
|
-
prepareConfig:
|
|
106
|
+
prepareConfig: ze,
|
|
107
107
|
skeletonDataset: kt(),
|
|
108
|
-
skeletonConfig:
|
|
108
|
+
skeletonConfig: Jt({
|
|
109
109
|
defaultConfig: e.value,
|
|
110
110
|
userConfig: {
|
|
111
111
|
table: { show: !1 },
|
|
@@ -130,44 +130,47 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
})
|
|
133
|
-
}), { userOptionsVisible:
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
}), { userOptionsVisible: Se, setUserOptionsVisibility: At, keepUserOptionState: Ye } = il({ config: e.value }), { svgRef: Ge } = nl({ config: e.value.style.title });
|
|
134
|
+
function We(t) {
|
|
135
|
+
At(t);
|
|
136
|
+
}
|
|
137
|
+
function ze() {
|
|
138
|
+
const t = ht({
|
|
136
139
|
userConfig: C.config,
|
|
137
140
|
defaultConfig: ke
|
|
138
141
|
});
|
|
139
|
-
let
|
|
140
|
-
return t.theme ?
|
|
141
|
-
...
|
|
142
|
-
userConfig:
|
|
142
|
+
let a = {};
|
|
143
|
+
return t.theme ? a = {
|
|
144
|
+
...ht({
|
|
145
|
+
userConfig: Qt.vue_ui_heatmap[t.theme] || C.config,
|
|
143
146
|
defaultConfig: t
|
|
144
147
|
})
|
|
145
|
-
} :
|
|
148
|
+
} : a = t, C.config && Zt(C.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? a.style.layout.dataLabels.xAxis.showOnlyAtModulo = C.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : a.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, a;
|
|
146
149
|
}
|
|
147
150
|
Re(() => C.config, (t) => {
|
|
148
|
-
|
|
151
|
+
he.value || (e.value = ze()), Se.value = !e.value.userOptions.showOnChartHover, $e(), Ve.value += 1, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.tooltip.show;
|
|
149
152
|
}, { deep: !0 }), Re(() => C.dataset, (t) => {
|
|
150
153
|
Array.isArray(t) && t.length > 0 && (_e.value = !1), $e();
|
|
151
154
|
}, { deep: !0 });
|
|
152
|
-
const { isPrinting: je, isImaging: qe, generatePdf: Ke, generateImage: Je } =
|
|
155
|
+
const { isPrinting: je, isImaging: qe, generatePdf: Ke, generateImage: Je } = ul({
|
|
153
156
|
elementId: `heatmap__${W.value}`,
|
|
154
157
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
155
158
|
options: e.value.userOptions.print
|
|
156
|
-
}),
|
|
159
|
+
}), Lt = g(() => e.value.userOptions.show && !e.value.style.title.text), z = c({
|
|
157
160
|
showTable: e.value.table.show,
|
|
158
161
|
showTooltip: e.value.style.tooltip.show
|
|
159
162
|
});
|
|
160
163
|
Re(e, () => {
|
|
161
|
-
|
|
164
|
+
z.value = {
|
|
162
165
|
showTable: e.value.table.show,
|
|
163
166
|
showTooltip: e.value.style.tooltip.show
|
|
164
167
|
};
|
|
165
168
|
}, { immediate: !0 });
|
|
166
|
-
const
|
|
167
|
-
function
|
|
169
|
+
const Ct = g(() => e.value.table.responsiveBreakpoint), K = nt(null);
|
|
170
|
+
function Tt() {
|
|
168
171
|
K.value && K.value.disconnect(), K.value = new ResizeObserver((t) => {
|
|
169
|
-
t.forEach((
|
|
170
|
-
Ie.value =
|
|
172
|
+
t.forEach((a) => {
|
|
173
|
+
Ie.value = a.contentRect.width < Ct.value;
|
|
171
174
|
});
|
|
172
175
|
}), Le.value && K.value.observe(Le.value);
|
|
173
176
|
}
|
|
@@ -176,13 +179,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
176
179
|
});
|
|
177
180
|
const I = c(null), Qe = g(() => !!e.value.debug);
|
|
178
181
|
function $e() {
|
|
179
|
-
if (dt(C.dataset) && (
|
|
182
|
+
if (dt(C.dataset) && (yt({
|
|
180
183
|
componentName: "VueUiHeatmap",
|
|
181
184
|
type: "dataset",
|
|
182
185
|
debug: Qe.value
|
|
183
186
|
}), G.value = !1, _e.value = !0), dt(C.dataset) || (_e.value = e.value.loading), e.value.responsive) {
|
|
184
187
|
const t = we(() => {
|
|
185
|
-
const { width:
|
|
188
|
+
const { width: a, height: o } = dl({
|
|
186
189
|
chart: w.value,
|
|
187
190
|
title: e.value.style.title.text ? Ee.value : null,
|
|
188
191
|
// add legend hirizontal in legend attr
|
|
@@ -191,180 +194,180 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
191
194
|
noTitle: De.value
|
|
192
195
|
});
|
|
193
196
|
requestAnimationFrame(() => {
|
|
194
|
-
fe.value =
|
|
197
|
+
fe.value = a, pe.value = o;
|
|
195
198
|
});
|
|
196
199
|
});
|
|
197
200
|
I.value && (q.value && I.value.unobserve(q.value), I.value.disconnect()), I.value = new ResizeObserver(t), q.value = w.value.parentNode, I.value.observe(q.value);
|
|
198
201
|
}
|
|
199
|
-
|
|
202
|
+
Tt();
|
|
200
203
|
}
|
|
201
204
|
Fe(() => {
|
|
202
205
|
I.value && (q.value && I.value.unobserve(q.value), I.value.disconnect());
|
|
203
|
-
}),
|
|
206
|
+
}), Yt(() => {
|
|
204
207
|
$e();
|
|
205
208
|
});
|
|
206
209
|
const F = g(() => Math.max(...m.value.flatMap((t) => (t.values || []).length))), fe = c(1e3), pe = c(300), _ = g(() => ({
|
|
207
210
|
width: Math.max(10, fe.value),
|
|
208
211
|
height: Math.max(10, pe.value)
|
|
209
|
-
})), ue = c(0),
|
|
212
|
+
})), ue = c(0), _t = we((t) => {
|
|
210
213
|
ue.value = t;
|
|
211
214
|
}, 100);
|
|
212
215
|
Ne((t) => {
|
|
213
|
-
const
|
|
214
|
-
if (!
|
|
215
|
-
const
|
|
216
|
-
|
|
216
|
+
const a = Ce.value;
|
|
217
|
+
if (!a) return;
|
|
218
|
+
const o = new ResizeObserver((s) => {
|
|
219
|
+
_t(s[0].contentRect.height);
|
|
217
220
|
});
|
|
218
|
-
|
|
221
|
+
o.observe(a), t(() => o.disconnect());
|
|
219
222
|
});
|
|
220
|
-
const J = c(0),
|
|
223
|
+
const J = c(0), St = we((t) => {
|
|
221
224
|
J.value = t;
|
|
222
225
|
}, 100);
|
|
223
226
|
Ne((t) => {
|
|
224
|
-
const
|
|
225
|
-
if (!
|
|
226
|
-
const
|
|
227
|
-
|
|
227
|
+
const a = Be.value;
|
|
228
|
+
if (!a) return;
|
|
229
|
+
const o = new ResizeObserver((s) => {
|
|
230
|
+
St(s[0].contentRect.width);
|
|
228
231
|
});
|
|
229
|
-
|
|
232
|
+
o.observe(a), t(() => o.disconnect());
|
|
230
233
|
});
|
|
231
234
|
const ge = c(0), zt = we((t) => {
|
|
232
235
|
ge.value = t;
|
|
233
236
|
}, 100);
|
|
234
237
|
Ne((t) => {
|
|
235
|
-
const
|
|
236
|
-
if (!
|
|
237
|
-
const
|
|
238
|
+
const a = Te.value;
|
|
239
|
+
if (!a) return;
|
|
240
|
+
const o = new ResizeObserver((s) => {
|
|
238
241
|
zt(s[0].contentRect.height);
|
|
239
242
|
});
|
|
240
|
-
|
|
243
|
+
o.observe(a), t(() => o.disconnect());
|
|
241
244
|
}), Fe(() => {
|
|
242
245
|
ue.value = 0, J.value = 0, ge.value = 0;
|
|
243
246
|
});
|
|
244
|
-
const
|
|
247
|
+
const r = g(() => Math.min(_.value.height, _.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
|
|
245
248
|
let t = 0;
|
|
246
249
|
e.value.style.legend.show && (t = e.value.style.legend.width);
|
|
247
|
-
const
|
|
248
|
-
x:
|
|
249
|
-
y:
|
|
250
|
-
}, N = _.value.width -
|
|
250
|
+
const a = e.value.style.layout.padding, o = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, d = _.value.height - a.top - a.bottom - ue.value - o, v = _.value.width / 60, x = {
|
|
251
|
+
x: r.value * F.value,
|
|
252
|
+
y: r.value * ((m.value || []).length + 1)
|
|
253
|
+
}, N = _.value.width - a.left - a.right - x.x - v * 2 - 2 - t - J.value, y = d - v - x.y - ge.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
|
|
251
254
|
width: Math.max(3, N / F.value),
|
|
252
|
-
height: Math.max(3,
|
|
255
|
+
height: Math.max(3, y / (m.value.length ?? 1))
|
|
253
256
|
};
|
|
254
257
|
return {
|
|
255
|
-
top:
|
|
258
|
+
top: a.top + ue.value + v + o,
|
|
256
259
|
topLabelsHeight: ue.value,
|
|
257
|
-
sumCellXHeight:
|
|
258
|
-
height:
|
|
259
|
-
left:
|
|
260
|
-
right:
|
|
261
|
-
bottom: _.value.height -
|
|
260
|
+
sumCellXHeight: v,
|
|
261
|
+
height: y,
|
|
262
|
+
left: a.left + J.value + v / 2,
|
|
263
|
+
right: a.right - t,
|
|
264
|
+
bottom: _.value.height - a.bottom - ge.value,
|
|
262
265
|
width: N,
|
|
263
|
-
cellSize:
|
|
266
|
+
cellSize: A
|
|
264
267
|
};
|
|
265
268
|
}), V = g(() => Math.max(...m.value.flatMap((t) => t.values))), ie = g(() => Math.min(...m.value.flatMap((t) => t.values))), B = g(() => {
|
|
266
|
-
const t = m.value.flatMap((
|
|
267
|
-
return t.reduce((
|
|
268
|
-
}),
|
|
269
|
+
const t = m.value.flatMap((o) => o.values);
|
|
270
|
+
return t.reduce((o, s) => o + s, 0) / t.length;
|
|
271
|
+
}), $t = g(() => pt({
|
|
269
272
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : m.value.map((t) => t.name),
|
|
270
273
|
maxDatapoints: m.value.length,
|
|
271
274
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
272
275
|
start: 0,
|
|
273
276
|
end: m.value.length
|
|
274
|
-
})),
|
|
277
|
+
})), Mt = g(() => pt({
|
|
275
278
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
276
279
|
maxDatapoints: F.value,
|
|
277
280
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
278
281
|
start: 0,
|
|
279
282
|
end: F.value
|
|
280
283
|
})), f = g(() => {
|
|
281
|
-
const t =
|
|
282
|
-
for (let
|
|
283
|
-
|
|
284
|
-
const x = Math.max(...
|
|
284
|
+
const t = $t.value.map((y) => y.text), a = Mt.value.map((y) => y.text), o = m.value.map((y) => y.values.reduce((A, Oe) => A + Oe, 0)), s = Math.max(...o), d = Math.min(...o), v = [];
|
|
285
|
+
for (let y = 0; y < F.value; y += 1)
|
|
286
|
+
v.push(m.value.map((A) => A.values[y] || 0).reduce((A, Oe) => A + Oe, 0));
|
|
287
|
+
const x = Math.max(...v), N = Math.min(...v);
|
|
285
288
|
return {
|
|
286
|
-
yTotals:
|
|
287
|
-
const
|
|
289
|
+
yTotals: o.map((y) => {
|
|
290
|
+
const A = isNaN(y / s) ? 0 : y / s;
|
|
288
291
|
return {
|
|
289
|
-
total:
|
|
290
|
-
proportion:
|
|
291
|
-
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, d, s,
|
|
292
|
+
total: y,
|
|
293
|
+
proportion: A,
|
|
294
|
+
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, d, s, y)
|
|
292
295
|
};
|
|
293
296
|
}),
|
|
294
|
-
xTotals:
|
|
295
|
-
const
|
|
297
|
+
xTotals: v.map((y) => {
|
|
298
|
+
const A = isNaN(y / x) ? 0 : y / x;
|
|
296
299
|
return {
|
|
297
|
-
total:
|
|
298
|
-
proportion:
|
|
299
|
-
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, N, x,
|
|
300
|
+
total: y,
|
|
301
|
+
proportion: A,
|
|
302
|
+
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, N, x, y)
|
|
300
303
|
};
|
|
301
304
|
}),
|
|
302
305
|
yLabels: t,
|
|
303
|
-
xLabels:
|
|
306
|
+
xLabels: a.slice(0, F.value)
|
|
304
307
|
};
|
|
305
|
-
}), U = g(() => (m.value.forEach((t,
|
|
306
|
-
|
|
308
|
+
}), U = g(() => (m.value.forEach((t, a) => {
|
|
309
|
+
el({
|
|
307
310
|
datasetObject: t,
|
|
308
311
|
requiredAttributes: ["values"]
|
|
309
|
-
}).forEach((
|
|
310
|
-
|
|
312
|
+
}).forEach((o) => {
|
|
313
|
+
yt({
|
|
311
314
|
componentName: "VueUiHeatmap",
|
|
312
315
|
type: "datasetSerieAttribute",
|
|
313
316
|
property: "values",
|
|
314
|
-
index:
|
|
317
|
+
index: a,
|
|
315
318
|
debug: Qe.value
|
|
316
319
|
});
|
|
317
320
|
});
|
|
318
|
-
}), m.value.map((t,
|
|
321
|
+
}), m.value.map((t, a) => ({
|
|
319
322
|
...t,
|
|
320
|
-
temperatures: (t.values || []).map((
|
|
323
|
+
temperatures: (t.values || []).map((o, s) => o >= B.value ? {
|
|
321
324
|
side: "up",
|
|
322
|
-
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie.value, V.value,
|
|
323
|
-
ratio: Math.abs(Math.abs(
|
|
324
|
-
value:
|
|
325
|
-
yAxisName: f.value.yLabels[
|
|
325
|
+
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie.value, V.value, o),
|
|
326
|
+
ratio: Math.abs(Math.abs(o - B.value) / Math.abs(V.value - B.value)) > 1 ? 1 : Math.abs(Math.abs(o - B.value) / Math.abs(V.value - B.value)),
|
|
327
|
+
value: o,
|
|
328
|
+
yAxisName: f.value.yLabels[a],
|
|
326
329
|
xAxisName: f.value.xLabels[s],
|
|
327
330
|
id: `vue-data-ui-heatmap-cell-${Xe()}`
|
|
328
331
|
} : {
|
|
329
332
|
side: "down",
|
|
330
|
-
ratio: Math.abs(1 - Math.abs(
|
|
331
|
-
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie.value, V.value,
|
|
332
|
-
value:
|
|
333
|
-
yAxisName: f.value.yLabels[
|
|
333
|
+
ratio: Math.abs(1 - Math.abs(o) / Math.abs(B.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(B.value)),
|
|
334
|
+
color: ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie.value, V.value, o),
|
|
335
|
+
value: o,
|
|
336
|
+
yAxisName: f.value.yLabels[a],
|
|
334
337
|
xAxisName: f.value.xLabels[s],
|
|
335
338
|
id: `vue-data-ui-heatmap-cell-${Xe()}`
|
|
336
339
|
})
|
|
337
|
-
})))), Ze = g(() => m.value.length), et = rt(Array(Ze.value * F.value || 1).fill(!1)),
|
|
338
|
-
function
|
|
339
|
-
et[t] =
|
|
340
|
+
})))), Ze = g(() => m.value.length), et = rt(Array(Ze.value * F.value || 1).fill(!1)), Ot = g(() => et.some((t) => t));
|
|
341
|
+
function Rt(t, a) {
|
|
342
|
+
et[t] = a;
|
|
340
343
|
}
|
|
341
|
-
const tt = rt(Array(Ze.value * F.value || 1).fill(!1)),
|
|
342
|
-
function
|
|
343
|
-
tt[t] =
|
|
344
|
+
const tt = rt(Array(Ze.value * F.value || 1).fill(!1)), Ft = g(() => tt.some((t) => t));
|
|
345
|
+
function Nt(t, a) {
|
|
346
|
+
tt[t] = a;
|
|
344
347
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
347
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
348
|
-
const { value: d, yAxisName:
|
|
349
|
-
oe.value = N,
|
|
348
|
+
const M = c(null), be = c(null);
|
|
349
|
+
function Ht(t, a, o, s) {
|
|
350
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), se.value = { x: o, y: s };
|
|
351
|
+
const { value: d, yAxisName: v, xAxisName: x, id: N } = t;
|
|
352
|
+
oe.value = N, M.value = d, be.value = {
|
|
350
353
|
datapoint: t,
|
|
351
|
-
seriesIndex:
|
|
354
|
+
seriesIndex: a,
|
|
352
355
|
series: U.value,
|
|
353
356
|
config: e.value
|
|
354
357
|
}, ae.value = !0;
|
|
355
|
-
let
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
+
let y = "";
|
|
359
|
+
const A = e.value.style.tooltip.customFormat;
|
|
360
|
+
ol(A) && sl(() => A({
|
|
358
361
|
datapoint: t,
|
|
359
|
-
seriesIndex:
|
|
362
|
+
seriesIndex: a,
|
|
360
363
|
series: U.value,
|
|
361
364
|
config: e.value
|
|
362
|
-
})) ? j.value =
|
|
365
|
+
})) ? j.value = A({
|
|
363
366
|
datapoint: t,
|
|
364
|
-
seriesIndex:
|
|
367
|
+
seriesIndex: a,
|
|
365
368
|
series: U.value,
|
|
366
369
|
config: e.value
|
|
367
|
-
}) : (
|
|
370
|
+
}) : (y += `<div>${v} ${x ? v ? ` - ${x}` : `${x}` : ""}</div>`, y += `<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:${ce(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ie.value, V.value, d)}">⬤</span><span>${isNaN(d) ? "-" : E(
|
|
368
371
|
e.value.style.layout.cells.value.formatter,
|
|
369
372
|
d,
|
|
370
373
|
H({
|
|
@@ -373,13 +376,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
373
376
|
s: e.value.style.layout.dataLabels.suffix,
|
|
374
377
|
r: e.value.style.tooltip.roundingValue
|
|
375
378
|
}),
|
|
376
|
-
{ datapoint: t, seriesIndex:
|
|
377
|
-
)}</span></div>`, j.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${
|
|
379
|
+
{ datapoint: t, seriesIndex: a }
|
|
380
|
+
)}</span></div>`, j.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${y}</div>`);
|
|
378
381
|
}
|
|
379
|
-
function
|
|
380
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
382
|
+
function Xt({ datapoint: t, seriesIndex: a }) {
|
|
383
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), ae.value = !1, oe.value = void 0, M.value = null, se.value = null;
|
|
381
384
|
}
|
|
382
|
-
function
|
|
385
|
+
function Pt(t) {
|
|
383
386
|
return E(
|
|
384
387
|
e.value.style.layout.cells.value.formatter,
|
|
385
388
|
f.value.yTotals[t].total,
|
|
@@ -392,7 +395,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
392
395
|
{ datapoint: f.value.yTotals[t], rowIndex: t }
|
|
393
396
|
);
|
|
394
397
|
}
|
|
395
|
-
function
|
|
398
|
+
function It(t) {
|
|
396
399
|
return E(
|
|
397
400
|
e.value.style.layout.cells.value.formatter,
|
|
398
401
|
f.value.xTotals[t].total,
|
|
@@ -406,22 +409,22 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
406
409
|
);
|
|
407
410
|
}
|
|
408
411
|
g(() => {
|
|
409
|
-
const t = m.value.map((
|
|
410
|
-
name:
|
|
411
|
-
})),
|
|
412
|
-
return { head: t, body:
|
|
412
|
+
const t = m.value.map((o) => ({
|
|
413
|
+
name: o.name
|
|
414
|
+
})), a = m.value.map((o) => o.values);
|
|
415
|
+
return { head: t, body: a };
|
|
413
416
|
});
|
|
414
417
|
function lt(t = null) {
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
for (let
|
|
418
|
-
const x = [f.value.xLabels[
|
|
418
|
+
qt(() => {
|
|
419
|
+
const a = ["", ...m.value.map((v, x) => v.name)], o = [];
|
|
420
|
+
for (let v = 0; v < f.value.xLabels.length; v += 1) {
|
|
421
|
+
const x = [f.value.xLabels[v]];
|
|
419
422
|
for (let N = 0; N < m.value.length; N += 1)
|
|
420
|
-
x.push([m.value[N].values[
|
|
421
|
-
|
|
423
|
+
x.push([m.value[N].values[v]]);
|
|
424
|
+
o.push(x);
|
|
422
425
|
}
|
|
423
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([
|
|
424
|
-
t ? t(d) :
|
|
426
|
+
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(o), d = ll(s);
|
|
427
|
+
t ? t(d) : al({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
425
428
|
});
|
|
426
429
|
}
|
|
427
430
|
const Q = c(!1);
|
|
@@ -429,30 +432,30 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
429
432
|
Q.value = t, Pe.value += 1;
|
|
430
433
|
}
|
|
431
434
|
function ot() {
|
|
432
|
-
|
|
435
|
+
z.value.showTable = !z.value.showTable;
|
|
433
436
|
}
|
|
434
437
|
function st() {
|
|
435
|
-
|
|
438
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
436
439
|
}
|
|
437
440
|
const me = c(!1);
|
|
438
441
|
function Me() {
|
|
439
442
|
me.value = !me.value;
|
|
440
443
|
}
|
|
441
|
-
function
|
|
442
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
444
|
+
function Vt(t, a) {
|
|
445
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), le("selectDatapoint", t);
|
|
443
446
|
}
|
|
444
|
-
function
|
|
447
|
+
function Et() {
|
|
445
448
|
return U.value;
|
|
446
449
|
}
|
|
447
|
-
async function
|
|
450
|
+
async function Dt({ scale: t = 2 } = {}) {
|
|
448
451
|
if (!w.value) return;
|
|
449
|
-
const { width:
|
|
452
|
+
const { width: a, height: o } = w.value.getBoundingClientRect(), s = a / o, { imageUri: d, base64: v } = await cl({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
450
453
|
return {
|
|
451
454
|
imageUri: d,
|
|
452
|
-
base64:
|
|
455
|
+
base64: v,
|
|
453
456
|
title: e.value.style.title.text,
|
|
454
|
-
width:
|
|
455
|
-
height:
|
|
457
|
+
width: a,
|
|
458
|
+
height: o,
|
|
456
459
|
aspectRatio: s
|
|
457
460
|
};
|
|
458
461
|
}
|
|
@@ -485,8 +488,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
485
488
|
width: fe,
|
|
486
489
|
height: pe
|
|
487
490
|
}), X({
|
|
488
|
-
getData:
|
|
489
|
-
getImage:
|
|
491
|
+
getData: Et,
|
|
492
|
+
getImage: Dt,
|
|
490
493
|
generatePdf: Ke,
|
|
491
494
|
generateCsv: lt,
|
|
492
495
|
generateImage: Je,
|
|
@@ -494,24 +497,24 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
494
497
|
toggleTooltip: st,
|
|
495
498
|
toggleAnnotator: Me,
|
|
496
499
|
toggleFullscreen: at
|
|
497
|
-
}), (t,
|
|
500
|
+
}), (t, a) => (u(), n("div", {
|
|
498
501
|
ref_key: "heatmapChart",
|
|
499
502
|
ref: w,
|
|
500
503
|
class: re(`vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
501
504
|
style: k(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
502
505
|
id: `heatmap__${W.value}`,
|
|
503
|
-
onMouseenter:
|
|
504
|
-
onMouseleave:
|
|
506
|
+
onMouseenter: a[2] || (a[2] = () => We(!0)),
|
|
507
|
+
onMouseleave: a[3] || (a[3] = () => We(!1))
|
|
505
508
|
}, [
|
|
506
|
-
e.value.userOptions.buttons.annotator ? (u(), ve(i(
|
|
509
|
+
e.value.userOptions.buttons.annotator ? (u(), ve(i($), {
|
|
507
510
|
key: 0,
|
|
508
|
-
svgRef: i(
|
|
511
|
+
svgRef: i(Ge),
|
|
509
512
|
backgroundColor: e.value.style.backgroundColor,
|
|
510
513
|
color: e.value.style.color,
|
|
511
514
|
active: me.value,
|
|
512
515
|
onClose: Me
|
|
513
516
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
514
|
-
|
|
517
|
+
Lt.value ? (u(), n("div", {
|
|
515
518
|
key: 1,
|
|
516
519
|
ref_key: "noTitle",
|
|
517
520
|
ref: De,
|
|
@@ -524,7 +527,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
524
527
|
ref: Ee,
|
|
525
528
|
style: "width:100%;background:transparent"
|
|
526
529
|
}, [
|
|
527
|
-
(u(), ve(
|
|
530
|
+
(u(), ve(vl, {
|
|
528
531
|
key: `title_${Ve.value}`,
|
|
529
532
|
config: {
|
|
530
533
|
title: {
|
|
@@ -538,7 +541,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
538
541
|
}
|
|
539
542
|
}, null, 8, ["config"]))
|
|
540
543
|
], 512)) : p("", !0),
|
|
541
|
-
e.value.userOptions.show && G.value && (i(
|
|
544
|
+
e.value.userOptions.show && G.value && (i(Ye) || i(Se)) ? (u(), ve(i(P), {
|
|
542
545
|
ref_key: "details",
|
|
543
546
|
ref: Ae,
|
|
544
547
|
key: `user_options_${Pe.value}`,
|
|
@@ -554,7 +557,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
554
557
|
hasTable: e.value.userOptions.buttons.table,
|
|
555
558
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
556
559
|
isFullscreen: Q.value,
|
|
557
|
-
isTooltip:
|
|
560
|
+
isTooltip: z.value.showTooltip,
|
|
558
561
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
559
562
|
chartElement: w.value,
|
|
560
563
|
position: e.value.userOptions.position,
|
|
@@ -570,67 +573,67 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
570
573
|
onToggleTooltip: st,
|
|
571
574
|
onToggleAnnotator: Me,
|
|
572
575
|
style: k({
|
|
573
|
-
visibility: i(
|
|
576
|
+
visibility: i(Ye) ? i(Se) ? "visible" : "hidden" : "visible"
|
|
574
577
|
})
|
|
575
|
-
},
|
|
578
|
+
}, Gt({ _: 2 }, [
|
|
576
579
|
t.$slots.menuIcon ? {
|
|
577
580
|
name: "menuIcon",
|
|
578
|
-
fn:
|
|
579
|
-
T(t.$slots, "menuIcon", Z(ee({ isOpen:
|
|
581
|
+
fn: O(({ isOpen: o, color: s }) => [
|
|
582
|
+
T(t.$slots, "menuIcon", Z(ee({ isOpen: o, color: s })), void 0, !0)
|
|
580
583
|
]),
|
|
581
584
|
key: "0"
|
|
582
585
|
} : void 0,
|
|
583
586
|
t.$slots.optionTooltip ? {
|
|
584
587
|
name: "optionTooltip",
|
|
585
|
-
fn:
|
|
588
|
+
fn: O(() => [
|
|
586
589
|
T(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
587
590
|
]),
|
|
588
591
|
key: "1"
|
|
589
592
|
} : void 0,
|
|
590
593
|
t.$slots.optionPdf ? {
|
|
591
594
|
name: "optionPdf",
|
|
592
|
-
fn:
|
|
595
|
+
fn: O(() => [
|
|
593
596
|
T(t.$slots, "optionPdf", {}, void 0, !0)
|
|
594
597
|
]),
|
|
595
598
|
key: "2"
|
|
596
599
|
} : void 0,
|
|
597
600
|
t.$slots.optionCsv ? {
|
|
598
601
|
name: "optionCsv",
|
|
599
|
-
fn:
|
|
602
|
+
fn: O(() => [
|
|
600
603
|
T(t.$slots, "optionCsv", {}, void 0, !0)
|
|
601
604
|
]),
|
|
602
605
|
key: "3"
|
|
603
606
|
} : void 0,
|
|
604
607
|
t.$slots.optionImg ? {
|
|
605
608
|
name: "optionImg",
|
|
606
|
-
fn:
|
|
609
|
+
fn: O(() => [
|
|
607
610
|
T(t.$slots, "optionImg", {}, void 0, !0)
|
|
608
611
|
]),
|
|
609
612
|
key: "4"
|
|
610
613
|
} : void 0,
|
|
611
614
|
t.$slots.optionTable ? {
|
|
612
615
|
name: "optionTable",
|
|
613
|
-
fn:
|
|
616
|
+
fn: O(() => [
|
|
614
617
|
T(t.$slots, "optionTable", {}, void 0, !0)
|
|
615
618
|
]),
|
|
616
619
|
key: "5"
|
|
617
620
|
} : void 0,
|
|
618
621
|
t.$slots.optionFullscreen ? {
|
|
619
622
|
name: "optionFullscreen",
|
|
620
|
-
fn:
|
|
621
|
-
T(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen:
|
|
623
|
+
fn: O(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
624
|
+
T(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
622
625
|
]),
|
|
623
626
|
key: "6"
|
|
624
627
|
} : void 0,
|
|
625
628
|
t.$slots.optionAnnotator ? {
|
|
626
629
|
name: "optionAnnotator",
|
|
627
|
-
fn:
|
|
628
|
-
T(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator:
|
|
630
|
+
fn: O(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
631
|
+
T(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
629
632
|
]),
|
|
630
633
|
key: "7"
|
|
631
634
|
} : void 0
|
|
632
635
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
633
|
-
|
|
636
|
+
h("div", {
|
|
634
637
|
class: re({
|
|
635
638
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
636
639
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
@@ -638,8 +641,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
638
641
|
}, [
|
|
639
642
|
(u(), n("svg", {
|
|
640
643
|
ref_key: "svgRef",
|
|
641
|
-
ref:
|
|
642
|
-
xmlns: i(
|
|
644
|
+
ref: Ge,
|
|
645
|
+
xmlns: i(tl),
|
|
643
646
|
class: re({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
644
647
|
viewBox: `0 0 ${_.value.width} ${_.value.height}`,
|
|
645
648
|
width: "100%",
|
|
@@ -648,7 +651,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
648
651
|
role: "img",
|
|
649
652
|
preserveAspectRatio: "xMidYMid"
|
|
650
653
|
}, [
|
|
651
|
-
He(i(
|
|
654
|
+
He(i(ye)),
|
|
652
655
|
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
653
656
|
key: 0,
|
|
654
657
|
x: l.value.left,
|
|
@@ -660,65 +663,69 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
660
663
|
}
|
|
661
664
|
}, [
|
|
662
665
|
T(t.$slots, "chart-background", {}, void 0, !0)
|
|
663
|
-
], 8,
|
|
666
|
+
], 8, ml)) : p("", !0),
|
|
664
667
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
665
668
|
key: 1,
|
|
666
669
|
ref_key: "xAxisSumRects",
|
|
667
670
|
ref: wt
|
|
668
671
|
}, [
|
|
669
|
-
(u(!0), n(
|
|
670
|
-
x: l.value.left + l.value.cellSize.width * s +
|
|
671
|
-
y: l.value.top - l.value.sumCellXHeight +
|
|
672
|
+
(u(!0), n(L, null, R(f.value.xTotals, (o, s) => (u(), n("rect", {
|
|
673
|
+
x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
|
|
674
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
672
675
|
height: l.value.sumCellXHeight,
|
|
673
|
-
width: l.value.cellSize.width -
|
|
676
|
+
width: l.value.cellSize.width - r.value,
|
|
674
677
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
675
678
|
stroke: e.value.style.backgroundColor,
|
|
676
|
-
"stroke-width":
|
|
677
|
-
}, null, 8,
|
|
678
|
-
(u(!0), n(
|
|
679
|
-
x: l.value.left + l.value.cellSize.width * s +
|
|
680
|
-
y: l.value.top - l.value.sumCellXHeight +
|
|
679
|
+
"stroke-width": r.value
|
|
680
|
+
}, null, 8, xl))), 256)),
|
|
681
|
+
(u(!0), n(L, null, R(f.value.xTotals, (o, s) => (u(), n("rect", {
|
|
682
|
+
x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
|
|
683
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
|
|
681
684
|
height: l.value.sumCellXHeight,
|
|
682
|
-
width: l.value.cellSize.width -
|
|
683
|
-
fill:
|
|
685
|
+
width: l.value.cellSize.width - r.value,
|
|
686
|
+
fill: o.color,
|
|
684
687
|
stroke: e.value.style.backgroundColor,
|
|
685
|
-
"stroke-width":
|
|
686
|
-
}, null, 8,
|
|
688
|
+
"stroke-width": r.value
|
|
689
|
+
}, null, 8, wl))), 256))
|
|
687
690
|
], 512)) : p("", !0),
|
|
688
|
-
|
|
691
|
+
h("g", {
|
|
689
692
|
ref_key: "datapoints",
|
|
690
693
|
ref: bt
|
|
691
694
|
}, [
|
|
692
|
-
(u(!0), n(
|
|
693
|
-
(u(!0), n(
|
|
694
|
-
|
|
695
|
-
x: l.value.left + l.value.cellSize.width *
|
|
696
|
-
y: l.value.top + l.value.cellSize.height * s +
|
|
697
|
-
width: l.value.cellSize.width -
|
|
698
|
-
height: l.value.cellSize.height -
|
|
695
|
+
(u(!0), n(L, null, R(U.value, (o, s) => (u(), n(L, null, [
|
|
696
|
+
(u(!0), n(L, null, R(o.temperatures, (d, v) => (u(), n("g", null, [
|
|
697
|
+
h("rect", {
|
|
698
|
+
x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
|
|
699
|
+
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
700
|
+
width: l.value.cellSize.width - r.value,
|
|
701
|
+
height: l.value.cellSize.height - r.value,
|
|
699
702
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
700
703
|
stroke: e.value.style.backgroundColor,
|
|
701
|
-
"stroke-width":
|
|
702
|
-
}, null, 8,
|
|
703
|
-
|
|
704
|
-
x: l.value.left + l.value.cellSize.width *
|
|
705
|
-
y: l.value.top + l.value.cellSize.height * s +
|
|
706
|
-
width: l.value.cellSize.width -
|
|
707
|
-
height: l.value.cellSize.height -
|
|
704
|
+
"stroke-width": r.value
|
|
705
|
+
}, null, 8, kl),
|
|
706
|
+
h("rect", {
|
|
707
|
+
x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
|
|
708
|
+
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
709
|
+
width: l.value.cellSize.width - r.value,
|
|
710
|
+
height: l.value.cellSize.height - r.value,
|
|
708
711
|
fill: d.color,
|
|
709
712
|
stroke: e.value.style.backgroundColor,
|
|
710
|
-
"stroke-width":
|
|
711
|
-
|
|
713
|
+
"stroke-width": r.value,
|
|
714
|
+
onMouseover: (x) => Ht(d, s, l.value.left + l.value.cellSize.width * v, l.value.top + l.value.cellSize.height * s),
|
|
715
|
+
onMouseout: () => Xt({ datapoint: d, seriesIndex: s }),
|
|
716
|
+
onClick: () => Vt(d, s)
|
|
717
|
+
}, null, 40, Al),
|
|
712
718
|
e.value.style.layout.cells.value.show ? vt((u(), n("text", {
|
|
713
719
|
key: 0,
|
|
714
720
|
"text-anchor": "middle",
|
|
715
721
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
716
722
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
717
723
|
fill: i(xe)(d.color),
|
|
718
|
-
x: l.value.left + l.value.cellSize.width *
|
|
719
|
-
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
724
|
+
x: l.value.left + l.value.cellSize.width * v + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
|
|
725
|
+
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
726
|
+
style: { pointerEvents: "none", userSelect: "none" }
|
|
720
727
|
}, [
|
|
721
|
-
ct(
|
|
728
|
+
ct(S(i(E)(
|
|
722
729
|
e.value.style.layout.cells.value.formatter,
|
|
723
730
|
d.value,
|
|
724
731
|
i(H)({
|
|
@@ -729,32 +736,19 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
729
736
|
}),
|
|
730
737
|
{ datapoint: d }
|
|
731
738
|
)), 1)
|
|
732
|
-
], 8,
|
|
733
|
-
[i(
|
|
734
|
-
cellWidth: l.value.cellSize.width -
|
|
735
|
-
cellHeight: l.value.cellSize.height -
|
|
739
|
+
], 8, Ll)), [
|
|
740
|
+
[i(pl), {
|
|
741
|
+
cellWidth: l.value.cellSize.width - r.value,
|
|
742
|
+
cellHeight: l.value.cellSize.height - r.value,
|
|
736
743
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
737
744
|
minFontSize: 10,
|
|
738
|
-
index: s * F.value +
|
|
739
|
-
reportHide:
|
|
740
|
-
reportRotation:
|
|
741
|
-
hideAll:
|
|
742
|
-
rotateAll:
|
|
745
|
+
index: s * F.value + v,
|
|
746
|
+
reportHide: Nt,
|
|
747
|
+
reportRotation: Rt,
|
|
748
|
+
hideAll: Ft.value,
|
|
749
|
+
rotateAll: Ot.value
|
|
743
750
|
}]
|
|
744
751
|
]) : p("", !0)
|
|
745
|
-
]))), 256)),
|
|
746
|
-
(u(!0), n(A, null, $(a.temperatures, (d, r) => (u(), n("g", null, [
|
|
747
|
-
y("rect", {
|
|
748
|
-
x: l.value.left + l.value.cellSize.width * r + l.value.sumCellXHeight,
|
|
749
|
-
y: l.value.top + l.value.cellSize.height * s,
|
|
750
|
-
width: l.value.cellSize.width,
|
|
751
|
-
height: l.value.cellSize.height,
|
|
752
|
-
fill: "transparent",
|
|
753
|
-
stroke: "none",
|
|
754
|
-
onMouseover: (x) => Nt(d, s, l.value.left + l.value.cellSize.width * r, l.value.top + l.value.cellSize.height * s),
|
|
755
|
-
onMouseout: () => Ht({ datapoint: d, seriesIndex: s }),
|
|
756
|
-
onClick: () => It(d, s)
|
|
757
|
-
}, null, 40, Ll)
|
|
758
752
|
]))), 256))
|
|
759
753
|
], 64))), 256))
|
|
760
754
|
], 512),
|
|
@@ -763,24 +757,24 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
763
757
|
ref_key: "yAxisSumRects",
|
|
764
758
|
ref: xt
|
|
765
759
|
}, [
|
|
766
|
-
(u(!0), n(
|
|
767
|
-
|
|
760
|
+
(u(!0), n(L, null, R(U.value, (o, s) => (u(), n(L, null, [
|
|
761
|
+
h("rect", {
|
|
768
762
|
x: l.value.left,
|
|
769
763
|
y: l.value.top + l.value.cellSize.height * s,
|
|
770
764
|
width: l.value.sumCellXHeight,
|
|
771
|
-
height: l.value.cellSize.height -
|
|
765
|
+
height: l.value.cellSize.height - r.value,
|
|
772
766
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
773
767
|
stroke: e.value.style.backgroundColor,
|
|
774
|
-
"stroke-width":
|
|
768
|
+
"stroke-width": r.value
|
|
775
769
|
}, null, 8, Cl),
|
|
776
|
-
|
|
770
|
+
h("rect", {
|
|
777
771
|
x: l.value.left,
|
|
778
|
-
y: l.value.top + l.value.cellSize.height * s +
|
|
772
|
+
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
779
773
|
width: l.value.sumCellXHeight,
|
|
780
|
-
height: l.value.cellSize.height -
|
|
774
|
+
height: l.value.cellSize.height - r.value,
|
|
781
775
|
fill: f.value.yTotals[s].color,
|
|
782
776
|
stroke: e.value.style.backgroundColor,
|
|
783
|
-
"stroke-width":
|
|
777
|
+
"stroke-width": r.value
|
|
784
778
|
}, null, 8, Tl)
|
|
785
779
|
], 64))), 256))
|
|
786
780
|
], 512)) : p("", !0),
|
|
@@ -789,8 +783,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
789
783
|
ref_key: "yAxisLabels",
|
|
790
784
|
ref: Be
|
|
791
785
|
}, [
|
|
792
|
-
(u(!0), n(
|
|
793
|
-
|
|
786
|
+
(u(!0), n(L, null, R(U.value, (o, s) => (u(), n(L, null, [
|
|
787
|
+
h("text", {
|
|
794
788
|
class: "vue-ui-heatmap-row-name",
|
|
795
789
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
796
790
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -798,7 +792,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
798
792
|
y: l.value.top + l.value.cellSize.height * s + 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),
|
|
799
793
|
"text-anchor": "end",
|
|
800
794
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
801
|
-
},
|
|
795
|
+
}, S(f.value.yLabels[s]), 9, _l),
|
|
802
796
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
|
|
803
797
|
key: 0,
|
|
804
798
|
class: "vue-ui-heatmap-row-total",
|
|
@@ -808,7 +802,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
808
802
|
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
809
803
|
"text-anchor": "end",
|
|
810
804
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
811
|
-
},
|
|
805
|
+
}, S(Pt(s)), 9, Sl)) : p("", !0)
|
|
812
806
|
], 64))), 256))
|
|
813
807
|
], 512)) : p("", !0),
|
|
814
808
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
|
|
@@ -816,7 +810,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
816
810
|
ref_key: "xAxisLabels",
|
|
817
811
|
ref: Ce
|
|
818
812
|
}, [
|
|
819
|
-
(u(!0), n(
|
|
813
|
+
(u(!0), n(L, null, R(f.value.xLabels, (o, s) => (u(), n(L, null, [
|
|
820
814
|
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), n("text", {
|
|
821
815
|
key: 0,
|
|
822
816
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -825,7 +819,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
825
819
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
826
820
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
827
821
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / f.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + l.value.sumCellXHeight}, ${l.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
828
|
-
},
|
|
822
|
+
}, S(o), 9, zl)) : p("", !0)
|
|
829
823
|
], 64))), 256))
|
|
830
824
|
], 512)) : p("", !0),
|
|
831
825
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), n("g", {
|
|
@@ -833,22 +827,22 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
833
827
|
ref_key: "xAxisSums",
|
|
834
828
|
ref: Te
|
|
835
829
|
}, [
|
|
836
|
-
(u(!0), n(
|
|
830
|
+
(u(!0), n(L, null, R(f.value.xLabels, (o, s) => (u(), n("text", {
|
|
837
831
|
class: "vue-ui-heatmap-col-total",
|
|
838
832
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
839
833
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
840
834
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
841
835
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
842
836
|
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / f.value.xLabels.length * s + 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})`
|
|
843
|
-
},
|
|
837
|
+
}, S(It(s)), 9, $l))), 256))
|
|
844
838
|
], 512)) : p("", !0),
|
|
845
839
|
se.value ? (u(), n("g", Ml, [
|
|
846
|
-
|
|
840
|
+
h("rect", {
|
|
847
841
|
style: { "pointer-events": "none" },
|
|
848
|
-
x: se.value.x - e.value.style.layout.cells.selected.border / 2 +
|
|
849
|
-
y: se.value.y - e.value.style.layout.cells.selected.border / 2 +
|
|
850
|
-
width: l.value.cellSize.width -
|
|
851
|
-
height: l.value.cellSize.height -
|
|
842
|
+
x: se.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
843
|
+
y: se.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
844
|
+
width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
845
|
+
height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
852
846
|
fill: "transparent",
|
|
853
847
|
stroke: e.value.style.layout.cells.selected.color,
|
|
854
848
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
@@ -856,7 +850,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
856
850
|
}, null, 8, Ol)
|
|
857
851
|
])) : p("", !0),
|
|
858
852
|
T(t.$slots, "svg", { svg: _.value }, void 0, !0)
|
|
859
|
-
], 14,
|
|
853
|
+
], 14, bl)),
|
|
860
854
|
e.value.style.legend.show ? (u(), n("div", {
|
|
861
855
|
key: 0,
|
|
862
856
|
ref_key: "legendRight",
|
|
@@ -866,14 +860,14 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
866
860
|
"--legend-width": e.value.style.legend.width + "px"
|
|
867
861
|
})
|
|
868
862
|
}, [
|
|
869
|
-
i(
|
|
863
|
+
i(he) ? p("", !0) : (u(), n("div", {
|
|
870
864
|
key: 0,
|
|
871
865
|
class: "vue-ui-heatmap-legend-label-max",
|
|
872
866
|
style: k({
|
|
873
867
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
874
868
|
color: e.value.style.legend.color
|
|
875
869
|
})
|
|
876
|
-
},
|
|
870
|
+
}, S(i(E)(
|
|
877
871
|
e.value.style.layout.cells.value.formatter,
|
|
878
872
|
i(D)(V.value),
|
|
879
873
|
i(H)({
|
|
@@ -883,21 +877,21 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
883
877
|
r: e.value.style.legend.roundingValue
|
|
884
878
|
})
|
|
885
879
|
)), 5)),
|
|
886
|
-
|
|
887
|
-
|
|
880
|
+
h("div", Rl, [
|
|
881
|
+
h("div", {
|
|
888
882
|
class: "vue-ui-heatmap-gauge",
|
|
889
883
|
style: k({
|
|
890
884
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
891
885
|
})
|
|
892
886
|
}, [
|
|
893
|
-
vt(
|
|
887
|
+
vt(h("div", {
|
|
894
888
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
895
889
|
"data-value": i(E)(
|
|
896
890
|
e.value.style.layout.cells.value.formatter,
|
|
897
|
-
i(D)(
|
|
891
|
+
i(D)(M.value),
|
|
898
892
|
i(H)({
|
|
899
893
|
p: e.value.style.layout.dataLabels.prefix,
|
|
900
|
-
v: i(D)(
|
|
894
|
+
v: i(D)(M.value),
|
|
901
895
|
s: e.value.style.layout.dataLabels.suffix,
|
|
902
896
|
r: e.value.style.legend.roundingValue
|
|
903
897
|
})
|
|
@@ -906,39 +900,39 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
906
900
|
position: "absolute",
|
|
907
901
|
width: "100%",
|
|
908
902
|
height: "2px",
|
|
909
|
-
background: [void 0, null].includes(
|
|
910
|
-
top: `${[void 0, null].includes(
|
|
903
|
+
background: [void 0, null].includes(M.value) ? "transparent" : i(xe)(be.value.datapoint.color),
|
|
904
|
+
top: `${[void 0, null].includes(M.value) ? 0 : (1 - M.value / V.value) * 100}%`,
|
|
911
905
|
transition: "all 0.2s ease-in-out",
|
|
912
906
|
"--background-color": e.value.style.backgroundColor,
|
|
913
907
|
"--gauge-arrow-color": i(xe)(e.value.style.backgroundColor),
|
|
914
908
|
"--gauge-arrow-text-color": i(xe)(e.value.style.backgroundColor),
|
|
915
|
-
"--gauge-arrow-value":
|
|
909
|
+
"--gauge-arrow-value": M.value,
|
|
916
910
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
917
911
|
})
|
|
918
912
|
}, [
|
|
919
|
-
|
|
913
|
+
h("div", Nl, S(i(E)(
|
|
920
914
|
e.value.style.layout.cells.value.formatter,
|
|
921
|
-
i(D)(
|
|
915
|
+
i(D)(M.value),
|
|
922
916
|
i(H)({
|
|
923
917
|
p: e.value.style.layout.dataLabels.prefix,
|
|
924
|
-
v: i(D)(
|
|
918
|
+
v: i(D)(M.value),
|
|
925
919
|
s: e.value.style.layout.dataLabels.suffix,
|
|
926
920
|
r: e.value.style.legend.roundingValue
|
|
927
921
|
})
|
|
928
922
|
)), 1)
|
|
929
923
|
], 12, Fl), [
|
|
930
|
-
[
|
|
924
|
+
[Wt, ![void 0, null].includes(M.value)]
|
|
931
925
|
])
|
|
932
926
|
], 4)
|
|
933
927
|
]),
|
|
934
|
-
i(
|
|
928
|
+
i(he) ? p("", !0) : (u(), n("div", {
|
|
935
929
|
key: 1,
|
|
936
930
|
class: "vue-ui-heatmap-legend-label-min",
|
|
937
931
|
style: k({
|
|
938
932
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
939
933
|
color: e.value.style.legend.color
|
|
940
934
|
})
|
|
941
|
-
},
|
|
935
|
+
}, S(i(E)(
|
|
942
936
|
e.value.style.layout.cells.value.formatter,
|
|
943
937
|
i(D)(ie.value),
|
|
944
938
|
i(H)({
|
|
@@ -962,7 +956,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
962
956
|
T(t.$slots, "source", {}, void 0, !0)
|
|
963
957
|
], 512)) : p("", !0),
|
|
964
958
|
He(i(te), {
|
|
965
|
-
show:
|
|
959
|
+
show: z.value.showTooltip && ae.value,
|
|
966
960
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
967
961
|
color: e.value.style.tooltip.color,
|
|
968
962
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -979,19 +973,19 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
979
973
|
smooth: e.value.style.tooltip.smooth,
|
|
980
974
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
981
975
|
}, {
|
|
982
|
-
"tooltip-before":
|
|
976
|
+
"tooltip-before": O(() => [
|
|
983
977
|
T(t.$slots, "tooltip-before", Z(ee({ ...be.value })), void 0, !0)
|
|
984
978
|
]),
|
|
985
|
-
"tooltip-after":
|
|
979
|
+
"tooltip-after": O(() => [
|
|
986
980
|
T(t.$slots, "tooltip-after", Z(ee({ ...be.value })), void 0, !0)
|
|
987
981
|
]),
|
|
988
982
|
_: 3
|
|
989
983
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
990
|
-
G.value ? (u(), ve(
|
|
984
|
+
G.value ? (u(), ve(rl, {
|
|
991
985
|
key: 6,
|
|
992
986
|
hideDetails: "",
|
|
993
987
|
config: {
|
|
994
|
-
open:
|
|
988
|
+
open: z.value.showTable,
|
|
995
989
|
maxHeight: 1e4,
|
|
996
990
|
body: {
|
|
997
991
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -1003,22 +997,22 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
1003
997
|
}
|
|
1004
998
|
}
|
|
1005
999
|
}, {
|
|
1006
|
-
content:
|
|
1007
|
-
|
|
1000
|
+
content: O(() => [
|
|
1001
|
+
h("div", {
|
|
1008
1002
|
ref_key: "tableContainer",
|
|
1009
1003
|
ref: Le,
|
|
1010
1004
|
class: "vue-ui-heatmap-table atom-data-table"
|
|
1011
1005
|
}, [
|
|
1012
|
-
|
|
1006
|
+
h("div", {
|
|
1013
1007
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
1014
1008
|
class: re({ "vue-ui-responsive": Ie.value })
|
|
1015
1009
|
}, [
|
|
1016
|
-
|
|
1010
|
+
h("div", {
|
|
1017
1011
|
role: "button",
|
|
1018
1012
|
tabindex: "0",
|
|
1019
1013
|
style: k(`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};`),
|
|
1020
|
-
onClick:
|
|
1021
|
-
onKeypress:
|
|
1014
|
+
onClick: a[0] || (a[0] = (o) => z.value.showTable = !1),
|
|
1015
|
+
onKeypress: a[1] || (a[1] = jt((o) => z.value.showTable = !1, ["enter"]))
|
|
1022
1016
|
}, [
|
|
1023
1017
|
He(i(Y), {
|
|
1024
1018
|
name: "close",
|
|
@@ -1026,46 +1020,46 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
1026
1020
|
"stroke-width": 2
|
|
1027
1021
|
}, null, 8, ["stroke"])
|
|
1028
1022
|
], 36),
|
|
1029
|
-
|
|
1030
|
-
|
|
1023
|
+
h("table", Xl, [
|
|
1024
|
+
h("caption", {
|
|
1031
1025
|
style: k(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1032
1026
|
}, [
|
|
1033
|
-
ct(
|
|
1034
|
-
e.value.style.title.subtitle.text ? (u(), n("span", Pl,
|
|
1027
|
+
ct(S(e.value.style.title.text) + " ", 1),
|
|
1028
|
+
e.value.style.title.subtitle.text ? (u(), n("span", Pl, S(e.value.style.title.subtitle.text), 1)) : p("", !0)
|
|
1035
1029
|
], 4),
|
|
1036
|
-
|
|
1037
|
-
|
|
1030
|
+
h("thead", null, [
|
|
1031
|
+
h("tr", {
|
|
1038
1032
|
role: "row",
|
|
1039
1033
|
style: k(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1040
1034
|
}, [
|
|
1041
|
-
|
|
1035
|
+
h("th", {
|
|
1042
1036
|
style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1043
1037
|
}, null, 4),
|
|
1044
|
-
(u(!0), n(
|
|
1038
|
+
(u(!0), n(L, null, R(b.dataset, (o, s) => (u(), n("th", {
|
|
1045
1039
|
align: "right",
|
|
1046
1040
|
style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1047
|
-
},
|
|
1041
|
+
}, S(o.name), 5))), 256))
|
|
1048
1042
|
], 4)
|
|
1049
1043
|
]),
|
|
1050
|
-
|
|
1051
|
-
(u(!0), n(
|
|
1044
|
+
h("tbody", null, [
|
|
1045
|
+
(u(!0), n(L, null, R(f.value.xLabels, (o, s) => (u(), n("tr", {
|
|
1052
1046
|
role: "row",
|
|
1053
1047
|
class: re({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1054
1048
|
style: k(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1055
1049
|
}, [
|
|
1056
|
-
|
|
1050
|
+
h("td", {
|
|
1057
1051
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1058
1052
|
class: "vue-ui-data-table__tbody__td",
|
|
1059
1053
|
style: k(`outline:${e.value.table.td.outline}`)
|
|
1060
1054
|
}, [
|
|
1061
|
-
|
|
1055
|
+
h("div", Vl, S(o), 1)
|
|
1062
1056
|
], 12, Il),
|
|
1063
|
-
(u(!0), n(
|
|
1057
|
+
(u(!0), n(L, null, R(b.dataset, (d, v) => (u(), n("td", {
|
|
1064
1058
|
class: "vue-ui-data-table__tbody__td",
|
|
1065
|
-
"data-cell": b.dataset[
|
|
1059
|
+
"data-cell": b.dataset[v].name,
|
|
1066
1060
|
style: k(`outline:${e.value.table.td.outline}`)
|
|
1067
1061
|
}, [
|
|
1068
|
-
|
|
1062
|
+
h("div", Dl, S(isNaN(d.values[s]) ? "-" : i(H)({ p: e.value.style.layout.dataLabels.prefix, v: d.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
1069
1063
|
], 12, El))), 256))
|
|
1070
1064
|
], 6))), 256))
|
|
1071
1065
|
])
|
|
@@ -1075,10 +1069,10 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"]
|
|
|
1075
1069
|
]),
|
|
1076
1070
|
_: 1
|
|
1077
1071
|
}, 8, ["config"])) : p("", !0),
|
|
1078
|
-
i(
|
|
1079
|
-
], 46,
|
|
1072
|
+
i(he) ? (u(), ve(hl, { key: 7 })) : p("", !0)
|
|
1073
|
+
], 46, gl));
|
|
1080
1074
|
}
|
|
1081
|
-
}, oa = /* @__PURE__ */
|
|
1075
|
+
}, oa = /* @__PURE__ */ fl(Bl, [["__scopeId", "data-v-e992afeb"]]);
|
|
1082
1076
|
export {
|
|
1083
1077
|
oa as default
|
|
1084
1078
|
};
|