vue-data-ui 3.0.23 → 3.1.1
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-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,64 +1,65 @@
|
|
|
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 {
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { useCssVars as Yt, defineAsyncComponent as Z, computed as g, ref as c, shallowRef as Gt, toRefs as Wt, watch as xe, onBeforeUnmount as rt, onMounted as jt, watchEffect as De, reactive as vt, nextTick as ct, createElementBlock as n, openBlock as u, normalizeStyle as w, normalizeClass as ve, createBlock as ce, createCommentVNode as h, createElementVNode as f, createVNode as we, unref as i, createSlots as dt, withCtx as $, renderSlot as T, normalizeProps as ee, guardReactiveProps as te, Fragment as C, renderList as F, withDirectives as yt, createTextVNode as He, toDisplayString as _, vShow as qt, resolveDynamicComponent as Kt, mergeProps as Jt, withKeys as Qt } from "vue";
|
|
2
|
+
import { u as Zt, c as Pe, t as el, b as tl, C as ll, o as ht, f as ft, P as de, g as al, X as ol, F as ke, k as B, i as H, h as E, v as sl, w as ul, y as il, z as nl } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as Ae, u as rl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vl } from "./usePrinter-BzuXiubT.js";
|
|
5
|
+
import { u as cl, B as dl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as pt } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as gt } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as yl } from "./useTableResponsive-Cbx-ACcP.js";
|
|
9
|
+
import { u as hl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as bt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import pl from "./img-gBDz7xQQ.js";
|
|
13
|
+
import gl from "./Title-Dz-j6ERs.js";
|
|
14
|
+
import bl from "./vue-ui-accordion-B5QeV3BK.js";
|
|
15
|
+
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const xl = {
|
|
17
|
+
mounted(b, P) {
|
|
18
|
+
mt(b, P.value);
|
|
18
19
|
},
|
|
19
|
-
updated(b,
|
|
20
|
-
|
|
20
|
+
updated(b, P) {
|
|
21
|
+
mt(b, P.value);
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
|
-
function
|
|
24
|
-
cellWidth:
|
|
25
|
-
cellHeight:
|
|
26
|
-
maxFontSize:
|
|
27
|
-
minFontSize:
|
|
28
|
-
index:
|
|
29
|
-
reportRotation:
|
|
30
|
-
reportHide:
|
|
31
|
-
rotateAll:
|
|
32
|
-
hideAll:
|
|
24
|
+
function mt(b, {
|
|
25
|
+
cellWidth: P,
|
|
26
|
+
cellHeight: ye,
|
|
27
|
+
maxFontSize: W,
|
|
28
|
+
minFontSize: le,
|
|
29
|
+
index: z,
|
|
30
|
+
reportRotation: ae,
|
|
31
|
+
reportHide: X,
|
|
32
|
+
rotateAll: Ce,
|
|
33
|
+
hideAll: Le
|
|
33
34
|
}) {
|
|
34
35
|
b.removeAttribute("transform"), b.removeAttribute("visibility");
|
|
35
|
-
let
|
|
36
|
-
b.setAttribute("font-size",
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
|
|
36
|
+
let k = !1, he = !1;
|
|
37
|
+
b.setAttribute("font-size", W);
|
|
38
|
+
const j = b.getComputedTextLength();
|
|
39
|
+
if (j <= P)
|
|
40
|
+
ae(z, !1), X(z, !1);
|
|
40
41
|
else {
|
|
41
|
-
const
|
|
42
|
-
|
|
42
|
+
const M = Math.floor(W * P / j);
|
|
43
|
+
M >= le ? (b.setAttribute("font-size", M), ae(z, !1), X(z, !1)) : (ae(z, !0), X(z, !1), k = !0);
|
|
43
44
|
}
|
|
44
|
-
if (
|
|
45
|
-
b.setAttribute("font-size",
|
|
46
|
-
const
|
|
47
|
-
b.setAttribute("transform", `rotate(-90 ${
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
|
|
45
|
+
if (Ce && (k = !0), k) {
|
|
46
|
+
b.setAttribute("font-size", W);
|
|
47
|
+
const M = b.getBBox(), O = M.x + M.width / 2, Te = M.y + M.height / 2;
|
|
48
|
+
b.setAttribute("transform", `rotate(-90 ${O} ${Te})`);
|
|
49
|
+
const q = b.getBBox().width;
|
|
50
|
+
if (q <= ye)
|
|
51
|
+
X(z, !1);
|
|
51
52
|
else {
|
|
52
|
-
const
|
|
53
|
-
|
|
53
|
+
const K = Math.floor(W * ye / q);
|
|
54
|
+
K >= le ? (b.setAttribute("font-size", K), X(z, !1)) : (he = !0, X(z, !0));
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
(
|
|
57
|
+
(Le || he) && b.setAttribute("visibility", "hidden");
|
|
57
58
|
}
|
|
58
|
-
const
|
|
59
|
+
const wl = ["id"], kl = ["xmlns", "viewBox"], Al = ["x", "y", "width", "height"], Cl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], _l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Sl = ["font-size", "font-weight", "fill", "x", "y"], $l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], zl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["font-size", "fill", "x", "y", "font-weight"], Ol = ["font-size", "fill", "x", "y", "font-weight"], Rl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Fl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Nl = { key: 6 }, Dl = ["x", "y", "width", "height", "stroke", "stroke-width"], Hl = { class: "vue-ui-heatmap-legend-gauge-right" }, Pl = ["data-value"], Xl = { class: "vue-ui-heatmap-gauge-indicator-value" }, Il = {
|
|
59
60
|
key: 4,
|
|
60
61
|
class: "vue-data-ui-watermark"
|
|
61
|
-
},
|
|
62
|
+
}, Vl = { class: "vue-ui-data-table" }, Bl = { key: 0 }, El = ["data-cell"], Ul = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yl = ["data-cell"], Gl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wl = {
|
|
62
63
|
__name: "vue-ui-heatmap",
|
|
63
64
|
props: {
|
|
64
65
|
config: {
|
|
@@ -75,19 +76,19 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
emits: ["selectDatapoint"],
|
|
78
|
-
setup(b, { expose:
|
|
79
|
-
|
|
80
|
-
"
|
|
79
|
+
setup(b, { expose: P, emit: ye }) {
|
|
80
|
+
Yt((t) => ({
|
|
81
|
+
"3844bd94": t.tdo
|
|
81
82
|
}));
|
|
82
|
-
const
|
|
83
|
+
const W = Z(() => import("./Tooltip-BTGOEC7w.js")), le = Z(() => import("./BaseIcon-DLesaZpW.js")), z = Z(() => import("./PenAndPaper-B6OvfyHH.js")), ae = Z(() => import("./UserOptions-CsDlFB0L.js")), X = Z(() => import("./PackageVersion-Cv_ypT0N.js")), Ce = Z(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_heatmap: Le } = Zt(), k = b, he = ye, j = g({
|
|
83
84
|
get() {
|
|
84
|
-
return !!
|
|
85
|
+
return !!k.dataset && k.dataset.length;
|
|
85
86
|
},
|
|
86
87
|
set(t) {
|
|
87
88
|
return t;
|
|
88
89
|
}
|
|
89
|
-
}),
|
|
90
|
-
function
|
|
90
|
+
}), M = c(Pe()), O = c(null), Te = c(null), q = c(!1), K = c(""), Xe = c(void 0), oe = c(null), Ie = c(0), Ve = c(null), Be = c(0), xt = c(null), se = c(null), Ee = c(null), Ue = c(null), wt = c(null), Ye = c(null), kt = c(null), _e = c(null), Se = c(null), At = c(null), Ge = c(null), J = Gt(null), e = c(Me());
|
|
91
|
+
function Ct() {
|
|
91
92
|
const t = Array(7).fill("_"), a = [], o = 14, s = t.length;
|
|
92
93
|
for (let d = 0; d < s; d += 1) {
|
|
93
94
|
const v = [];
|
|
@@ -100,12 +101,12 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
100
101
|
}
|
|
101
102
|
return a;
|
|
102
103
|
}
|
|
103
|
-
const { loading:
|
|
104
|
-
...
|
|
104
|
+
const { loading: fe, FINAL_DATASET: m, manualLoading: $e } = cl({
|
|
105
|
+
...Wt(k),
|
|
105
106
|
FINAL_CONFIG: e,
|
|
106
|
-
prepareConfig:
|
|
107
|
-
skeletonDataset:
|
|
108
|
-
skeletonConfig:
|
|
107
|
+
prepareConfig: Me,
|
|
108
|
+
skeletonDataset: Ct(),
|
|
109
|
+
skeletonConfig: el({
|
|
109
110
|
defaultConfig: e.value,
|
|
110
111
|
userConfig: {
|
|
111
112
|
table: { show: !1 },
|
|
@@ -130,128 +131,116 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
})
|
|
133
|
-
}), { userOptionsVisible: ze, setUserOptionsVisibility:
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: Lt, keepUserOptionState: We } = hl({ config: e.value }), { svgRef: je } = fl({ config: e.value.style.title });
|
|
135
|
+
function qe(t) {
|
|
136
|
+
Lt(t);
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
const t =
|
|
139
|
-
userConfig:
|
|
140
|
-
defaultConfig:
|
|
138
|
+
function Me() {
|
|
139
|
+
const t = pt({
|
|
140
|
+
userConfig: k.config,
|
|
141
|
+
defaultConfig: Le
|
|
141
142
|
});
|
|
142
143
|
let a = {};
|
|
143
144
|
return t.theme ? a = {
|
|
144
|
-
...
|
|
145
|
-
userConfig:
|
|
145
|
+
...pt({
|
|
146
|
+
userConfig: tl.vue_ui_heatmap[t.theme] || k.config,
|
|
146
147
|
defaultConfig: t
|
|
147
148
|
})
|
|
148
|
-
} : a = t,
|
|
149
|
+
} : a = t, k.config && ll(k.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? a.style.layout.dataLabels.xAxis.showOnlyAtModulo = k.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : a.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, a;
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}, { deep: !0 }),
|
|
153
|
-
Array.isArray(t) && t.length > 0 && (
|
|
151
|
+
xe(() => k.config, (t) => {
|
|
152
|
+
fe.value || (e.value = Me()), ze.value = !e.value.userOptions.showOnChartHover, Oe(), Be.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ue.value = e.value.style.layout.width, ie.value = e.value.style.layout.height;
|
|
153
|
+
}, { deep: !0 }), xe(() => k.dataset, (t) => {
|
|
154
|
+
Array.isArray(t) && t.length > 0 && ($e.value = !1), Oe();
|
|
154
155
|
}, { deep: !0 });
|
|
155
|
-
const { isPrinting:
|
|
156
|
-
elementId: `heatmap__${
|
|
156
|
+
const { isPrinting: Ke, isImaging: Je, generatePdf: Qe, generateImage: Ze } = vl({
|
|
157
|
+
elementId: `heatmap__${M.value}`,
|
|
157
158
|
fileName: e.value.style.title.text || "vue-ui-heatmap",
|
|
158
159
|
options: e.value.userOptions.print
|
|
159
|
-
}),
|
|
160
|
+
}), Tt = g(() => e.value.userOptions.show && !e.value.style.title.text), L = c({
|
|
160
161
|
showTable: e.value.table.show,
|
|
161
162
|
showTooltip: e.value.style.tooltip.show
|
|
162
163
|
});
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
xe(e, () => {
|
|
165
|
+
L.value = {
|
|
165
166
|
showTable: e.value.table.show,
|
|
166
167
|
showTooltip: e.value.style.tooltip.show
|
|
167
168
|
};
|
|
168
169
|
}, { immediate: !0 });
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
t.forEach((a) => {
|
|
173
|
-
Ie.value = a.contentRect.width < Ct.value;
|
|
174
|
-
});
|
|
175
|
-
}), Le.value && K.value.observe(Le.value);
|
|
176
|
-
}
|
|
177
|
-
Fe(() => {
|
|
178
|
-
K.value && K.value.disconnect();
|
|
179
|
-
});
|
|
180
|
-
const I = c(null), Qe = g(() => !!e.value.debug);
|
|
181
|
-
function $e() {
|
|
182
|
-
if (dt(C.dataset) && (yt({
|
|
170
|
+
const _t = g(() => e.value.table.responsiveBreakpoint), I = c(null), et = g(() => !!e.value.debug);
|
|
171
|
+
function Oe() {
|
|
172
|
+
if (ht(k.dataset) && (ft({
|
|
183
173
|
componentName: "VueUiHeatmap",
|
|
184
174
|
type: "dataset",
|
|
185
|
-
debug:
|
|
186
|
-
}),
|
|
187
|
-
const t =
|
|
188
|
-
const { width: a, height: o } =
|
|
189
|
-
chart:
|
|
175
|
+
debug: et.value
|
|
176
|
+
}), j.value = !1, $e.value = !0), ht(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
177
|
+
const t = Ae(() => {
|
|
178
|
+
const { width: a, height: o } = rl({
|
|
179
|
+
chart: O.value,
|
|
190
180
|
title: e.value.style.title.text ? Ee.value : null,
|
|
191
181
|
// add legend hirizontal in legend attr
|
|
192
182
|
// add legend vertical in some other attr and modify composable to subtract width
|
|
193
|
-
source:
|
|
194
|
-
noTitle:
|
|
183
|
+
source: Ge.value,
|
|
184
|
+
noTitle: Ue.value
|
|
195
185
|
});
|
|
196
186
|
requestAnimationFrame(() => {
|
|
197
187
|
ue.value = a, ie.value = o;
|
|
198
188
|
});
|
|
199
189
|
});
|
|
200
|
-
I.value && (
|
|
190
|
+
I.value && (J.value && I.value.unobserve(J.value), I.value.disconnect()), I.value = new ResizeObserver(t), J.value = O.value.parentNode, I.value.observe(J.value);
|
|
201
191
|
}
|
|
202
|
-
Tt();
|
|
203
192
|
}
|
|
204
|
-
|
|
205
|
-
I.value && (
|
|
206
|
-
}),
|
|
207
|
-
|
|
193
|
+
rt(() => {
|
|
194
|
+
I.value && (J.value && I.value.unobserve(J.value), I.value.disconnect());
|
|
195
|
+
}), jt(() => {
|
|
196
|
+
Oe();
|
|
208
197
|
});
|
|
209
|
-
const
|
|
198
|
+
const N = g(() => Math.max(...m.value.flatMap((t) => (t.values || []).length))), ue = c(e.value.style.layout.width), ie = c(e.value.style.layout.height), S = g(() => ({
|
|
210
199
|
width: Math.max(10, ue.value),
|
|
211
200
|
height: Math.max(10, ie.value)
|
|
212
|
-
})), ne = c(0),
|
|
201
|
+
})), ne = c(0), St = Ae((t) => {
|
|
213
202
|
ne.value = t;
|
|
214
203
|
}, 100);
|
|
215
|
-
|
|
216
|
-
const a =
|
|
204
|
+
De((t) => {
|
|
205
|
+
const a = _e.value;
|
|
217
206
|
if (!a) return;
|
|
218
207
|
const o = new ResizeObserver((s) => {
|
|
219
|
-
|
|
208
|
+
St(s[0].contentRect.height);
|
|
220
209
|
});
|
|
221
210
|
o.observe(a), t(() => o.disconnect());
|
|
222
211
|
});
|
|
223
|
-
const
|
|
224
|
-
|
|
212
|
+
const Q = c(0), $t = Ae((t) => {
|
|
213
|
+
Q.value = t;
|
|
225
214
|
}, 100);
|
|
226
|
-
|
|
227
|
-
const a =
|
|
215
|
+
De((t) => {
|
|
216
|
+
const a = Ye.value;
|
|
228
217
|
if (!a) return;
|
|
229
218
|
const o = new ResizeObserver((s) => {
|
|
230
|
-
|
|
219
|
+
$t(s[0].contentRect.width);
|
|
231
220
|
});
|
|
232
221
|
o.observe(a), t(() => o.disconnect());
|
|
233
222
|
});
|
|
234
|
-
const
|
|
235
|
-
|
|
223
|
+
const pe = c(0), zt = Ae((t) => {
|
|
224
|
+
pe.value = t;
|
|
236
225
|
}, 100);
|
|
237
|
-
|
|
238
|
-
const a =
|
|
226
|
+
De((t) => {
|
|
227
|
+
const a = Se.value;
|
|
239
228
|
if (!a) return;
|
|
240
229
|
const o = new ResizeObserver((s) => {
|
|
241
|
-
|
|
230
|
+
zt(s[0].contentRect.height);
|
|
242
231
|
});
|
|
243
232
|
o.observe(a), t(() => o.disconnect());
|
|
244
|
-
}),
|
|
245
|
-
ne.value = 0,
|
|
233
|
+
}), rt(() => {
|
|
234
|
+
ne.value = 0, Q.value = 0, pe.value = 0;
|
|
246
235
|
});
|
|
247
|
-
const r = g(() => Math.min(
|
|
236
|
+
const r = g(() => Math.min(S.value.height, S.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
|
|
248
237
|
let t = 0;
|
|
249
238
|
e.value.style.legend.show && (t = e.value.style.legend.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 =
|
|
251
|
-
x: r.value *
|
|
239
|
+
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 = S.value.height - a.top - a.bottom - ne.value - o, v = S.value.width / 60, x = {
|
|
240
|
+
x: r.value * N.value,
|
|
252
241
|
y: r.value * ((m.value || []).length + 1)
|
|
253
|
-
},
|
|
254
|
-
width: Math.max(3,
|
|
242
|
+
}, D = S.value.width - a.left - a.right - x.x - v * 2 - 2 - t - Q.value, y = d - v - x.y - pe.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
|
|
243
|
+
width: Math.max(3, D / N.value),
|
|
255
244
|
height: Math.max(3, y / (m.value.length ?? 1))
|
|
256
245
|
};
|
|
257
246
|
return {
|
|
@@ -259,39 +248,39 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
259
248
|
topLabelsHeight: ne.value,
|
|
260
249
|
sumCellXHeight: v,
|
|
261
250
|
height: y,
|
|
262
|
-
left: a.left +
|
|
251
|
+
left: a.left + Q.value + v / 2,
|
|
263
252
|
right: a.right - t,
|
|
264
|
-
bottom:
|
|
265
|
-
width:
|
|
253
|
+
bottom: S.value.height - a.bottom - pe.value,
|
|
254
|
+
width: D,
|
|
266
255
|
cellSize: A
|
|
267
256
|
};
|
|
268
|
-
}), V = g(() => Math.max(...m.value.flatMap((t) => t.values))), re = g(() => Math.min(...m.value.flatMap((t) => t.values))),
|
|
257
|
+
}), V = g(() => Math.max(...m.value.flatMap((t) => t.values))), re = g(() => Math.min(...m.value.flatMap((t) => t.values))), U = g(() => {
|
|
269
258
|
const t = m.value.flatMap((o) => o.values);
|
|
270
259
|
return t.reduce((o, s) => o + s, 0) / t.length;
|
|
271
|
-
}),
|
|
260
|
+
}), Mt = g(() => gt({
|
|
272
261
|
values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : m.value.map((t) => t.name),
|
|
273
262
|
maxDatapoints: m.value.length,
|
|
274
263
|
formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
|
|
275
264
|
start: 0,
|
|
276
265
|
end: m.value.length
|
|
277
|
-
})),
|
|
266
|
+
})), Ot = g(() => gt({
|
|
278
267
|
values: e.value.style.layout.dataLabels.xAxis.values,
|
|
279
|
-
maxDatapoints:
|
|
268
|
+
maxDatapoints: N.value,
|
|
280
269
|
formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
|
|
281
270
|
start: 0,
|
|
282
|
-
end:
|
|
283
|
-
})),
|
|
284
|
-
const t =
|
|
285
|
-
for (let y = 0; y <
|
|
286
|
-
v.push(m.value.map((A) => A.values[y] || 0).reduce((A,
|
|
287
|
-
const x = Math.max(...v),
|
|
271
|
+
end: N.value
|
|
272
|
+
})), p = g(() => {
|
|
273
|
+
const t = Mt.value.map((y) => y.text), a = Ot.value.map((y) => y.text), o = m.value.map((y) => y.values.reduce((A, Ne) => A + Ne, 0)), s = Math.max(...o), d = Math.min(...o), v = [];
|
|
274
|
+
for (let y = 0; y < N.value; y += 1)
|
|
275
|
+
v.push(m.value.map((A) => A.values[y] || 0).reduce((A, Ne) => A + Ne, 0));
|
|
276
|
+
const x = Math.max(...v), D = Math.min(...v);
|
|
288
277
|
return {
|
|
289
278
|
yTotals: o.map((y) => {
|
|
290
279
|
const A = isNaN(y / s) ? 0 : y / s;
|
|
291
280
|
return {
|
|
292
281
|
total: y,
|
|
293
282
|
proportion: A,
|
|
294
|
-
color:
|
|
283
|
+
color: de(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, d, s, y)
|
|
295
284
|
};
|
|
296
285
|
}),
|
|
297
286
|
xTotals: v.map((y) => {
|
|
@@ -299,75 +288,75 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
299
288
|
return {
|
|
300
289
|
total: y,
|
|
301
290
|
proportion: A,
|
|
302
|
-
color:
|
|
291
|
+
color: de(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, D, x, y)
|
|
303
292
|
};
|
|
304
293
|
}),
|
|
305
294
|
yLabels: t,
|
|
306
|
-
xLabels: a.slice(0,
|
|
295
|
+
xLabels: a.slice(0, N.value)
|
|
307
296
|
};
|
|
308
|
-
}),
|
|
309
|
-
|
|
297
|
+
}), Y = g(() => (m.value.forEach((t, a) => {
|
|
298
|
+
al({
|
|
310
299
|
datasetObject: t,
|
|
311
300
|
requiredAttributes: ["values"]
|
|
312
301
|
}).forEach((o) => {
|
|
313
|
-
|
|
302
|
+
ft({
|
|
314
303
|
componentName: "VueUiHeatmap",
|
|
315
304
|
type: "datasetSerieAttribute",
|
|
316
305
|
property: "values",
|
|
317
306
|
index: a,
|
|
318
|
-
debug:
|
|
307
|
+
debug: et.value
|
|
319
308
|
});
|
|
320
309
|
});
|
|
321
310
|
}), m.value.map((t, a) => ({
|
|
322
311
|
...t,
|
|
323
|
-
temperatures: (t.values || []).map((o, s) => o >=
|
|
312
|
+
temperatures: (t.values || []).map((o, s) => o >= U.value ? {
|
|
324
313
|
side: "up",
|
|
325
|
-
color:
|
|
326
|
-
ratio: Math.abs(Math.abs(o -
|
|
314
|
+
color: de(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, re.value, V.value, o),
|
|
315
|
+
ratio: Math.abs(Math.abs(o - U.value) / Math.abs(V.value - U.value)) > 1 ? 1 : Math.abs(Math.abs(o - U.value) / Math.abs(V.value - U.value)),
|
|
327
316
|
value: o,
|
|
328
|
-
yAxisName:
|
|
329
|
-
xAxisName:
|
|
330
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
317
|
+
yAxisName: p.value.yLabels[a],
|
|
318
|
+
xAxisName: p.value.xLabels[s],
|
|
319
|
+
id: `vue-data-ui-heatmap-cell-${Pe()}`
|
|
331
320
|
} : {
|
|
332
321
|
side: "down",
|
|
333
|
-
ratio: Math.abs(1 - Math.abs(o) / Math.abs(
|
|
334
|
-
color:
|
|
322
|
+
ratio: Math.abs(1 - Math.abs(o) / Math.abs(U.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(U.value)),
|
|
323
|
+
color: de(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, re.value, V.value, o),
|
|
335
324
|
value: o,
|
|
336
|
-
yAxisName:
|
|
337
|
-
xAxisName:
|
|
338
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
325
|
+
yAxisName: p.value.yLabels[a],
|
|
326
|
+
xAxisName: p.value.xLabels[s],
|
|
327
|
+
id: `vue-data-ui-heatmap-cell-${Pe()}`
|
|
339
328
|
})
|
|
340
|
-
})))),
|
|
341
|
-
function
|
|
342
|
-
|
|
329
|
+
})))), tt = g(() => m.value.length), lt = vt(Array(tt.value * N.value || 1).fill(!1)), Rt = g(() => lt.some((t) => t));
|
|
330
|
+
function Ft(t, a) {
|
|
331
|
+
lt[t] = a;
|
|
343
332
|
}
|
|
344
|
-
const
|
|
345
|
-
function
|
|
346
|
-
|
|
333
|
+
const at = vt(Array(tt.value * N.value || 1).fill(!1)), Nt = g(() => at.some((t) => t));
|
|
334
|
+
function Dt(t, a) {
|
|
335
|
+
at[t] = a;
|
|
347
336
|
}
|
|
348
|
-
const
|
|
337
|
+
const R = c(null), ge = c(null);
|
|
349
338
|
function Ht(t, a, o, s) {
|
|
350
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
351
|
-
const { value: d, yAxisName: v, xAxisName: x, id:
|
|
352
|
-
|
|
339
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), oe.value = { x: o, y: s };
|
|
340
|
+
const { value: d, yAxisName: v, xAxisName: x, id: D } = t;
|
|
341
|
+
Xe.value = D, R.value = d, ge.value = {
|
|
353
342
|
datapoint: t,
|
|
354
343
|
seriesIndex: a,
|
|
355
|
-
series:
|
|
344
|
+
series: Y.value,
|
|
356
345
|
config: e.value
|
|
357
|
-
},
|
|
346
|
+
}, q.value = !0;
|
|
358
347
|
let y = "";
|
|
359
348
|
const A = e.value.style.tooltip.customFormat;
|
|
360
|
-
|
|
349
|
+
il(A) && nl(() => A({
|
|
361
350
|
datapoint: t,
|
|
362
351
|
seriesIndex: a,
|
|
363
|
-
series:
|
|
352
|
+
series: Y.value,
|
|
364
353
|
config: e.value
|
|
365
|
-
})) ?
|
|
354
|
+
})) ? K.value = A({
|
|
366
355
|
datapoint: t,
|
|
367
356
|
seriesIndex: a,
|
|
368
|
-
series:
|
|
357
|
+
series: Y.value,
|
|
369
358
|
config: e.value
|
|
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:${
|
|
359
|
+
}) : (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:${de(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, re.value, V.value, d)}">⬤</span><span>${isNaN(d) ? "-" : B(
|
|
371
360
|
e.value.style.layout.cells.value.formatter,
|
|
372
361
|
d,
|
|
373
362
|
H({
|
|
@@ -377,35 +366,35 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
377
366
|
r: e.value.style.tooltip.roundingValue
|
|
378
367
|
}),
|
|
379
368
|
{ datapoint: t, seriesIndex: a }
|
|
380
|
-
)}</span></div>`,
|
|
369
|
+
)}</span></div>`, K.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${y}</div>`);
|
|
381
370
|
}
|
|
382
|
-
function
|
|
383
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }),
|
|
371
|
+
function Pt({ datapoint: t, seriesIndex: a }) {
|
|
372
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), q.value = !1, Xe.value = void 0, R.value = null, oe.value = null;
|
|
384
373
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
374
|
+
function Xt(t) {
|
|
375
|
+
return B(
|
|
387
376
|
e.value.style.layout.cells.value.formatter,
|
|
388
|
-
|
|
377
|
+
p.value.yTotals[t].total,
|
|
389
378
|
H({
|
|
390
379
|
p: e.value.style.layout.dataLabels.prefix,
|
|
391
|
-
v:
|
|
380
|
+
v: p.value.yTotals[t].total,
|
|
392
381
|
s: e.value.style.layout.dataLabels.suffix,
|
|
393
382
|
r: e.value.style.layout.cells.value.roundingValue
|
|
394
383
|
}),
|
|
395
|
-
{ datapoint:
|
|
384
|
+
{ datapoint: p.value.yTotals[t], rowIndex: t }
|
|
396
385
|
);
|
|
397
386
|
}
|
|
398
387
|
function It(t) {
|
|
399
|
-
return
|
|
388
|
+
return B(
|
|
400
389
|
e.value.style.layout.cells.value.formatter,
|
|
401
|
-
|
|
390
|
+
p.value.xTotals[t].total,
|
|
402
391
|
H({
|
|
403
392
|
p: e.value.style.layout.dataLabels.prefix,
|
|
404
|
-
v:
|
|
393
|
+
v: p.value.xTotals[t].total,
|
|
405
394
|
s: e.value.style.layout.dataLabels.suffix,
|
|
406
395
|
r: e.value.style.layout.cells.value.roundingValue
|
|
407
396
|
}),
|
|
408
|
-
{ datapoint:
|
|
397
|
+
{ datapoint: p.value.xTotals[t], colIndex: t }
|
|
409
398
|
);
|
|
410
399
|
}
|
|
411
400
|
g(() => {
|
|
@@ -414,42 +403,42 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
414
403
|
})), a = m.value.map((o) => o.values);
|
|
415
404
|
return { head: t, body: a };
|
|
416
405
|
});
|
|
417
|
-
function
|
|
418
|
-
|
|
406
|
+
function Re(t = null) {
|
|
407
|
+
ct(() => {
|
|
419
408
|
const a = ["", ...m.value.map((v, x) => v.name)], o = [];
|
|
420
|
-
for (let v = 0; v <
|
|
421
|
-
const x = [
|
|
422
|
-
for (let
|
|
423
|
-
x.push([m.value[
|
|
409
|
+
for (let v = 0; v < p.value.xLabels.length; v += 1) {
|
|
410
|
+
const x = [p.value.xLabels[v]];
|
|
411
|
+
for (let D = 0; D < m.value.length; D += 1)
|
|
412
|
+
x.push([m.value[D].values[v]]);
|
|
424
413
|
o.push(x);
|
|
425
414
|
}
|
|
426
|
-
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(o), d =
|
|
427
|
-
t ? t(d) :
|
|
415
|
+
const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(o), d = sl(s);
|
|
416
|
+
t ? t(d) : ul({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
428
417
|
});
|
|
429
418
|
}
|
|
430
|
-
const
|
|
431
|
-
function
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
function ot() {
|
|
435
|
-
S.value.showTable = !S.value.showTable;
|
|
419
|
+
const G = c(!1);
|
|
420
|
+
function ot(t) {
|
|
421
|
+
G.value = t, Ie.value += 1;
|
|
436
422
|
}
|
|
437
423
|
function st() {
|
|
438
|
-
|
|
424
|
+
L.value.showTable = !L.value.showTable;
|
|
439
425
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
426
|
+
function ut() {
|
|
427
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
428
|
+
}
|
|
429
|
+
const be = c(!1);
|
|
430
|
+
function Fe() {
|
|
431
|
+
be.value = !be.value;
|
|
443
432
|
}
|
|
444
433
|
function Vt(t, a) {
|
|
445
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }),
|
|
434
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), he("selectDatapoint", t);
|
|
446
435
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
436
|
+
function Bt() {
|
|
437
|
+
return Y.value;
|
|
449
438
|
}
|
|
450
|
-
async function
|
|
451
|
-
if (!
|
|
452
|
-
const { width: a, height: o } =
|
|
439
|
+
async function Et({ scale: t = 2 } = {}) {
|
|
440
|
+
if (!O.value) return;
|
|
441
|
+
const { width: a, height: o } = O.value.getBoundingClientRect(), s = a / o, { imageUri: d, base64: v } = await pl({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
453
442
|
return {
|
|
454
443
|
imageUri: d,
|
|
455
444
|
base64: v,
|
|
@@ -459,14 +448,14 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
459
448
|
aspectRatio: s
|
|
460
449
|
};
|
|
461
450
|
}
|
|
462
|
-
const
|
|
451
|
+
const it = g(() => ({
|
|
463
452
|
start: 0,
|
|
464
|
-
end:
|
|
465
|
-
})),
|
|
466
|
-
|
|
467
|
-
timeLabelsEls:
|
|
468
|
-
timeLabels:
|
|
469
|
-
slicer:
|
|
453
|
+
end: N.value
|
|
454
|
+
})), nt = g(() => p.value.xLabels);
|
|
455
|
+
bt({
|
|
456
|
+
timeLabelsEls: _e,
|
|
457
|
+
timeLabels: nt,
|
|
458
|
+
slicer: it,
|
|
470
459
|
configRef: e,
|
|
471
460
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
472
461
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
@@ -475,10 +464,10 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
475
464
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
476
465
|
width: ue,
|
|
477
466
|
height: ie
|
|
478
|
-
}),
|
|
479
|
-
timeLabelsEls:
|
|
480
|
-
timeLabels:
|
|
481
|
-
slicer:
|
|
467
|
+
}), bt({
|
|
468
|
+
timeLabelsEls: Se,
|
|
469
|
+
timeLabels: nt,
|
|
470
|
+
slicer: it,
|
|
482
471
|
configRef: e,
|
|
483
472
|
rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
|
|
484
473
|
autoRotatePath: ["style", "layout", "cells", "columnTotal", "value", "autoRotate", "enable"],
|
|
@@ -487,48 +476,83 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
487
476
|
rotation: e.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
488
477
|
width: ue,
|
|
489
478
|
height: ie
|
|
490
|
-
})
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
479
|
+
});
|
|
480
|
+
const me = g(() => {
|
|
481
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = L.value.showTable;
|
|
482
|
+
return {
|
|
483
|
+
component: t ? Ce : bl,
|
|
484
|
+
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
485
|
+
props: t ? {
|
|
486
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
487
|
+
color: e.value.table.th.color,
|
|
488
|
+
headerColor: e.value.table.th.color,
|
|
489
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
490
|
+
isFullscreen: G.value,
|
|
491
|
+
fullscreenParent: O.value,
|
|
492
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
493
|
+
} : {
|
|
494
|
+
hideDetails: !0,
|
|
495
|
+
config: {
|
|
496
|
+
open: a,
|
|
497
|
+
maxHeight: 1e4,
|
|
498
|
+
body: {
|
|
499
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
500
|
+
color: e.value.style.color
|
|
501
|
+
},
|
|
502
|
+
head: {
|
|
503
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
504
|
+
color: e.value.style.color
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
});
|
|
510
|
+
xe(() => L.value.showTable, async (t) => {
|
|
511
|
+
e.value.table.show || (t && e.value.table.useDialog && se.value ? (await ct(), se.value.open()) : "close" in se.value && se.value.close());
|
|
512
|
+
});
|
|
513
|
+
const { isResponsive: Ut } = yl(Ve, _t);
|
|
514
|
+
return P({
|
|
515
|
+
getData: Bt,
|
|
516
|
+
getImage: Et,
|
|
517
|
+
generatePdf: Qe,
|
|
518
|
+
generateCsv: Re,
|
|
519
|
+
generateImage: Ze,
|
|
520
|
+
toggleTable: st,
|
|
521
|
+
toggleTooltip: ut,
|
|
522
|
+
toggleAnnotator: Fe,
|
|
523
|
+
toggleFullscreen: ot
|
|
500
524
|
}), (t, a) => (u(), n("div", {
|
|
501
525
|
ref_key: "heatmapChart",
|
|
502
|
-
ref:
|
|
503
|
-
class:
|
|
504
|
-
style:
|
|
505
|
-
id: `heatmap__${
|
|
506
|
-
onMouseenter: a[
|
|
507
|
-
onMouseleave: a[
|
|
526
|
+
ref: O,
|
|
527
|
+
class: ve(`vue-ui-heatmap ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
528
|
+
style: w(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
|
|
529
|
+
id: `heatmap__${M.value}`,
|
|
530
|
+
onMouseenter: a[4] || (a[4] = () => qe(!0)),
|
|
531
|
+
onMouseleave: a[5] || (a[5] = () => qe(!1))
|
|
508
532
|
}, [
|
|
509
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
533
|
+
e.value.userOptions.buttons.annotator ? (u(), ce(i(z), {
|
|
510
534
|
key: 0,
|
|
511
|
-
svgRef: i(
|
|
535
|
+
svgRef: i(je),
|
|
512
536
|
backgroundColor: e.value.style.backgroundColor,
|
|
513
537
|
color: e.value.style.color,
|
|
514
|
-
active:
|
|
515
|
-
onClose:
|
|
516
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
517
|
-
|
|
538
|
+
active: be.value,
|
|
539
|
+
onClose: Fe
|
|
540
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
541
|
+
Tt.value ? (u(), n("div", {
|
|
518
542
|
key: 1,
|
|
519
543
|
ref_key: "noTitle",
|
|
520
|
-
ref:
|
|
544
|
+
ref: Ue,
|
|
521
545
|
class: "vue-data-ui-no-title-space",
|
|
522
546
|
style: "height:36px; width: 100%;background:transparent"
|
|
523
|
-
}, null, 512)) :
|
|
547
|
+
}, null, 512)) : h("", !0),
|
|
524
548
|
e.value.style.title.text ? (u(), n("div", {
|
|
525
549
|
key: 2,
|
|
526
550
|
ref_key: "chartTitle",
|
|
527
551
|
ref: Ee,
|
|
528
552
|
style: "width:100%;background:transparent"
|
|
529
553
|
}, [
|
|
530
|
-
(u(),
|
|
531
|
-
key: `title_${
|
|
554
|
+
(u(), ce(gl, {
|
|
555
|
+
key: `title_${Be.value}`,
|
|
532
556
|
config: {
|
|
533
557
|
title: {
|
|
534
558
|
cy: "heatmap-div-title",
|
|
@@ -540,118 +564,118 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
540
564
|
}
|
|
541
565
|
}
|
|
542
566
|
}, null, 8, ["config"]))
|
|
543
|
-
], 512)) :
|
|
544
|
-
e.value.userOptions.show &&
|
|
567
|
+
], 512)) : h("", !0),
|
|
568
|
+
e.value.userOptions.show && j.value && (i(We) || i(ze)) ? (u(), ce(i(ae), {
|
|
545
569
|
ref_key: "details",
|
|
546
|
-
ref:
|
|
547
|
-
key: `user_options_${
|
|
570
|
+
ref: Te,
|
|
571
|
+
key: `user_options_${Ie.value}`,
|
|
548
572
|
backgroundColor: e.value.style.backgroundColor,
|
|
549
573
|
color: e.value.style.color,
|
|
550
|
-
isImaging: i(
|
|
551
|
-
isPrinting: i(
|
|
552
|
-
uid:
|
|
574
|
+
isImaging: i(Je),
|
|
575
|
+
isPrinting: i(Ke),
|
|
576
|
+
uid: M.value,
|
|
553
577
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
554
578
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
555
579
|
hasImg: e.value.userOptions.buttons.img,
|
|
556
580
|
hasXls: e.value.userOptions.buttons.csv,
|
|
557
581
|
hasTable: e.value.userOptions.buttons.table,
|
|
558
582
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
559
|
-
isFullscreen:
|
|
560
|
-
isTooltip:
|
|
583
|
+
isFullscreen: G.value,
|
|
584
|
+
isTooltip: L.value.showTooltip,
|
|
561
585
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
562
|
-
chartElement:
|
|
586
|
+
chartElement: O.value,
|
|
563
587
|
position: e.value.userOptions.position,
|
|
564
588
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
565
|
-
isAnnotation:
|
|
589
|
+
isAnnotation: be.value,
|
|
566
590
|
callbacks: e.value.userOptions.callbacks,
|
|
567
591
|
printScale: e.value.userOptions.print.scale,
|
|
568
|
-
onToggleFullscreen:
|
|
569
|
-
onGeneratePdf: i(
|
|
570
|
-
onGenerateCsv:
|
|
571
|
-
onGenerateImage: i(
|
|
572
|
-
onToggleTable:
|
|
573
|
-
onToggleTooltip:
|
|
574
|
-
onToggleAnnotator:
|
|
575
|
-
style:
|
|
576
|
-
visibility: i(
|
|
592
|
+
onToggleFullscreen: ot,
|
|
593
|
+
onGeneratePdf: i(Qe),
|
|
594
|
+
onGenerateCsv: Re,
|
|
595
|
+
onGenerateImage: i(Ze),
|
|
596
|
+
onToggleTable: st,
|
|
597
|
+
onToggleTooltip: ut,
|
|
598
|
+
onToggleAnnotator: Fe,
|
|
599
|
+
style: w({
|
|
600
|
+
visibility: i(We) ? i(ze) ? "visible" : "hidden" : "visible"
|
|
577
601
|
})
|
|
578
|
-
},
|
|
602
|
+
}, dt({ _: 2 }, [
|
|
579
603
|
t.$slots.menuIcon ? {
|
|
580
604
|
name: "menuIcon",
|
|
581
|
-
fn:
|
|
582
|
-
T(t.$slots, "menuIcon",
|
|
605
|
+
fn: $(({ isOpen: o, color: s }) => [
|
|
606
|
+
T(t.$slots, "menuIcon", ee(te({ isOpen: o, color: s })), void 0, !0)
|
|
583
607
|
]),
|
|
584
608
|
key: "0"
|
|
585
609
|
} : void 0,
|
|
586
610
|
t.$slots.optionTooltip ? {
|
|
587
611
|
name: "optionTooltip",
|
|
588
|
-
fn:
|
|
612
|
+
fn: $(() => [
|
|
589
613
|
T(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
590
614
|
]),
|
|
591
615
|
key: "1"
|
|
592
616
|
} : void 0,
|
|
593
617
|
t.$slots.optionPdf ? {
|
|
594
618
|
name: "optionPdf",
|
|
595
|
-
fn:
|
|
619
|
+
fn: $(() => [
|
|
596
620
|
T(t.$slots, "optionPdf", {}, void 0, !0)
|
|
597
621
|
]),
|
|
598
622
|
key: "2"
|
|
599
623
|
} : void 0,
|
|
600
624
|
t.$slots.optionCsv ? {
|
|
601
625
|
name: "optionCsv",
|
|
602
|
-
fn:
|
|
626
|
+
fn: $(() => [
|
|
603
627
|
T(t.$slots, "optionCsv", {}, void 0, !0)
|
|
604
628
|
]),
|
|
605
629
|
key: "3"
|
|
606
630
|
} : void 0,
|
|
607
631
|
t.$slots.optionImg ? {
|
|
608
632
|
name: "optionImg",
|
|
609
|
-
fn:
|
|
633
|
+
fn: $(() => [
|
|
610
634
|
T(t.$slots, "optionImg", {}, void 0, !0)
|
|
611
635
|
]),
|
|
612
636
|
key: "4"
|
|
613
637
|
} : void 0,
|
|
614
638
|
t.$slots.optionTable ? {
|
|
615
639
|
name: "optionTable",
|
|
616
|
-
fn:
|
|
640
|
+
fn: $(() => [
|
|
617
641
|
T(t.$slots, "optionTable", {}, void 0, !0)
|
|
618
642
|
]),
|
|
619
643
|
key: "5"
|
|
620
644
|
} : void 0,
|
|
621
645
|
t.$slots.optionFullscreen ? {
|
|
622
646
|
name: "optionFullscreen",
|
|
623
|
-
fn:
|
|
624
|
-
T(t.$slots, "optionFullscreen",
|
|
647
|
+
fn: $(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
648
|
+
T(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
625
649
|
]),
|
|
626
650
|
key: "6"
|
|
627
651
|
} : void 0,
|
|
628
652
|
t.$slots.optionAnnotator ? {
|
|
629
653
|
name: "optionAnnotator",
|
|
630
|
-
fn:
|
|
631
|
-
T(t.$slots, "optionAnnotator",
|
|
654
|
+
fn: $(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
655
|
+
T(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
632
656
|
]),
|
|
633
657
|
key: "7"
|
|
634
658
|
} : void 0
|
|
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"])) :
|
|
636
|
-
|
|
637
|
-
class:
|
|
659
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
660
|
+
f("div", {
|
|
661
|
+
class: ve({
|
|
638
662
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
639
663
|
"vue-ui-heatmap-chart-wrapper-legend-right": e.value.style.legend.show
|
|
640
664
|
})
|
|
641
665
|
}, [
|
|
642
666
|
(u(), n("svg", {
|
|
643
667
|
ref_key: "svgRef",
|
|
644
|
-
ref:
|
|
645
|
-
xmlns: i(
|
|
646
|
-
class:
|
|
647
|
-
viewBox: `0 0 ${
|
|
668
|
+
ref: je,
|
|
669
|
+
xmlns: i(ol),
|
|
670
|
+
class: ve({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
671
|
+
viewBox: `0 0 ${S.value.width} ${S.value.height}`,
|
|
648
672
|
width: "100%",
|
|
649
|
-
style:
|
|
673
|
+
style: w(`overflow: visible; background:transparent;color:${e.value.style.color}`),
|
|
650
674
|
"aria-live": "polite",
|
|
651
675
|
role: "img",
|
|
652
676
|
preserveAspectRatio: "xMidYMid"
|
|
653
677
|
}, [
|
|
654
|
-
|
|
678
|
+
we(i(X)),
|
|
655
679
|
t.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
656
680
|
key: 0,
|
|
657
681
|
x: l.value.left,
|
|
@@ -663,38 +687,38 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
663
687
|
}
|
|
664
688
|
}, [
|
|
665
689
|
T(t.$slots, "chart-background", {}, void 0, !0)
|
|
666
|
-
], 8,
|
|
690
|
+
], 8, Al)) : h("", !0),
|
|
667
691
|
e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
|
|
668
692
|
key: 1,
|
|
669
693
|
ref_key: "xAxisSumRects",
|
|
670
|
-
ref:
|
|
694
|
+
ref: At
|
|
671
695
|
}, [
|
|
672
|
-
(u(!0), n(
|
|
696
|
+
(u(!0), n(C, null, F(p.value.xTotals, (o, s) => (u(), n("rect", {
|
|
673
697
|
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 * (
|
|
698
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (S.value.height / S.value.width),
|
|
675
699
|
height: l.value.sumCellXHeight,
|
|
676
700
|
width: l.value.cellSize.width - r.value,
|
|
677
701
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
678
702
|
stroke: e.value.style.backgroundColor,
|
|
679
703
|
"stroke-width": r.value
|
|
680
|
-
}, null, 8,
|
|
681
|
-
(u(!0), n(
|
|
704
|
+
}, null, 8, Cl))), 256)),
|
|
705
|
+
(u(!0), n(C, null, F(p.value.xTotals, (o, s) => (u(), n("rect", {
|
|
682
706
|
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 * (
|
|
707
|
+
y: l.value.top - l.value.sumCellXHeight + r.value * (S.value.height / S.value.width),
|
|
684
708
|
height: l.value.sumCellXHeight,
|
|
685
709
|
width: l.value.cellSize.width - r.value,
|
|
686
710
|
fill: o.color,
|
|
687
711
|
stroke: e.value.style.backgroundColor,
|
|
688
712
|
"stroke-width": r.value
|
|
689
|
-
}, null, 8,
|
|
690
|
-
], 512)) :
|
|
691
|
-
|
|
713
|
+
}, null, 8, Ll))), 256))
|
|
714
|
+
], 512)) : h("", !0),
|
|
715
|
+
f("g", {
|
|
692
716
|
ref_key: "datapoints",
|
|
693
|
-
ref:
|
|
717
|
+
ref: xt
|
|
694
718
|
}, [
|
|
695
|
-
(u(!0), n(
|
|
696
|
-
(u(!0), n(
|
|
697
|
-
|
|
719
|
+
(u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
|
|
720
|
+
(u(!0), n(C, null, F(o.temperatures, (d, v) => (u(), n("g", null, [
|
|
721
|
+
f("rect", {
|
|
698
722
|
x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
|
|
699
723
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
700
724
|
width: l.value.cellSize.width - r.value,
|
|
@@ -702,8 +726,8 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
702
726
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
703
727
|
stroke: e.value.style.backgroundColor,
|
|
704
728
|
"stroke-width": r.value
|
|
705
|
-
}, null, 8,
|
|
706
|
-
|
|
729
|
+
}, null, 8, Tl),
|
|
730
|
+
f("rect", {
|
|
707
731
|
x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
|
|
708
732
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
709
733
|
width: l.value.cellSize.width - r.value,
|
|
@@ -712,20 +736,20 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
712
736
|
stroke: e.value.style.backgroundColor,
|
|
713
737
|
"stroke-width": r.value,
|
|
714
738
|
onMouseover: (x) => Ht(d, s, l.value.left + l.value.cellSize.width * v, l.value.top + l.value.cellSize.height * s),
|
|
715
|
-
onMouseout: () =>
|
|
739
|
+
onMouseout: () => Pt({ datapoint: d, seriesIndex: s }),
|
|
716
740
|
onClick: () => Vt(d, s)
|
|
717
|
-
}, null, 40,
|
|
718
|
-
e.value.style.layout.cells.value.show ?
|
|
741
|
+
}, null, 40, _l),
|
|
742
|
+
e.value.style.layout.cells.value.show ? yt((u(), n("text", {
|
|
719
743
|
key: 0,
|
|
720
744
|
"text-anchor": "middle",
|
|
721
745
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
722
746
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
723
|
-
fill: i(
|
|
747
|
+
fill: i(ke)(d.color),
|
|
724
748
|
x: l.value.left + l.value.cellSize.width * v + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
|
|
725
749
|
y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
|
|
726
750
|
style: { pointerEvents: "none", userSelect: "none" }
|
|
727
751
|
}, [
|
|
728
|
-
|
|
752
|
+
He(_(i(B)(
|
|
729
753
|
e.value.style.layout.cells.value.formatter,
|
|
730
754
|
d.value,
|
|
731
755
|
i(H)({
|
|
@@ -736,29 +760,29 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
736
760
|
}),
|
|
737
761
|
{ datapoint: d }
|
|
738
762
|
)), 1)
|
|
739
|
-
], 8,
|
|
740
|
-
[i(
|
|
763
|
+
], 8, Sl)), [
|
|
764
|
+
[i(xl), {
|
|
741
765
|
cellWidth: l.value.cellSize.width - r.value,
|
|
742
766
|
cellHeight: l.value.cellSize.height - r.value,
|
|
743
767
|
maxFontSize: e.value.style.layout.cells.value.fontSize,
|
|
744
768
|
minFontSize: 10,
|
|
745
|
-
index: s *
|
|
746
|
-
reportHide:
|
|
747
|
-
reportRotation:
|
|
748
|
-
hideAll:
|
|
749
|
-
rotateAll:
|
|
769
|
+
index: s * N.value + v,
|
|
770
|
+
reportHide: Dt,
|
|
771
|
+
reportRotation: Ft,
|
|
772
|
+
hideAll: Nt.value,
|
|
773
|
+
rotateAll: Rt.value
|
|
750
774
|
}]
|
|
751
|
-
]) :
|
|
775
|
+
]) : h("", !0)
|
|
752
776
|
]))), 256))
|
|
753
777
|
], 64))), 256))
|
|
754
778
|
], 512),
|
|
755
779
|
e.value.style.layout.cells.rowTotal.color.show ? (u(), n("g", {
|
|
756
780
|
key: 2,
|
|
757
781
|
ref_key: "yAxisSumRects",
|
|
758
|
-
ref:
|
|
782
|
+
ref: kt
|
|
759
783
|
}, [
|
|
760
|
-
(u(!0), n(
|
|
761
|
-
|
|
784
|
+
(u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
|
|
785
|
+
f("rect", {
|
|
762
786
|
x: l.value.left,
|
|
763
787
|
y: l.value.top + l.value.cellSize.height * s,
|
|
764
788
|
width: l.value.sumCellXHeight,
|
|
@@ -766,51 +790,51 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
766
790
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
767
791
|
stroke: e.value.style.backgroundColor,
|
|
768
792
|
"stroke-width": r.value
|
|
769
|
-
}, null, 8,
|
|
770
|
-
|
|
793
|
+
}, null, 8, $l),
|
|
794
|
+
f("rect", {
|
|
771
795
|
x: l.value.left,
|
|
772
796
|
y: l.value.top + l.value.cellSize.height * s + r.value / 2,
|
|
773
797
|
width: l.value.sumCellXHeight,
|
|
774
798
|
height: l.value.cellSize.height - r.value,
|
|
775
|
-
fill:
|
|
799
|
+
fill: p.value.yTotals[s].color,
|
|
776
800
|
stroke: e.value.style.backgroundColor,
|
|
777
801
|
"stroke-width": r.value
|
|
778
|
-
}, null, 8,
|
|
802
|
+
}, null, 8, zl)
|
|
779
803
|
], 64))), 256))
|
|
780
|
-
], 512)) :
|
|
804
|
+
], 512)) : h("", !0),
|
|
781
805
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), n("g", {
|
|
782
806
|
key: 3,
|
|
783
807
|
ref_key: "yAxisLabels",
|
|
784
|
-
ref:
|
|
808
|
+
ref: Ye
|
|
785
809
|
}, [
|
|
786
|
-
(u(!0), n(
|
|
787
|
-
|
|
810
|
+
(u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
|
|
811
|
+
f("text", {
|
|
788
812
|
class: "vue-ui-heatmap-row-name",
|
|
789
813
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
790
814
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
791
|
-
x:
|
|
815
|
+
x: Q.value,
|
|
792
816
|
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),
|
|
793
817
|
"text-anchor": "end",
|
|
794
818
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
795
|
-
},
|
|
819
|
+
}, _(p.value.yLabels[s]), 9, Ml),
|
|
796
820
|
e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
|
|
797
821
|
key: 0,
|
|
798
822
|
class: "vue-ui-heatmap-row-total",
|
|
799
823
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
800
824
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
801
|
-
x:
|
|
825
|
+
x: Q.value,
|
|
802
826
|
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,
|
|
803
827
|
"text-anchor": "end",
|
|
804
828
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
805
|
-
},
|
|
829
|
+
}, _(Xt(s)), 9, Ol)) : h("", !0)
|
|
806
830
|
], 64))), 256))
|
|
807
|
-
], 512)) :
|
|
831
|
+
], 512)) : h("", !0),
|
|
808
832
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
|
|
809
833
|
key: 4,
|
|
810
834
|
ref_key: "xAxisLabels",
|
|
811
|
-
ref:
|
|
835
|
+
ref: _e
|
|
812
836
|
}, [
|
|
813
|
-
(u(!0), n(
|
|
837
|
+
(u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n(C, null, [
|
|
814
838
|
!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", {
|
|
815
839
|
key: 0,
|
|
816
840
|
class: "vue-ui-heatmap-col-name",
|
|
@@ -818,145 +842,145 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
818
842
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
819
843
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
820
844
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
821
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
822
|
-
},
|
|
845
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.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})`
|
|
846
|
+
}, _(o), 9, Rl)) : h("", !0)
|
|
823
847
|
], 64))), 256))
|
|
824
|
-
], 512)) :
|
|
848
|
+
], 512)) : h("", !0),
|
|
825
849
|
e.value.style.layout.cells.columnTotal.value.show ? (u(), n("g", {
|
|
826
850
|
key: 5,
|
|
827
851
|
ref_key: "xAxisSums",
|
|
828
|
-
ref:
|
|
852
|
+
ref: Se
|
|
829
853
|
}, [
|
|
830
|
-
(u(!0), n(
|
|
854
|
+
(u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n("text", {
|
|
831
855
|
class: "vue-ui-heatmap-col-total",
|
|
832
856
|
"text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
833
857
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
834
858
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
835
859
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
836
|
-
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width /
|
|
837
|
-
},
|
|
838
|
-
], 512)) :
|
|
839
|
-
|
|
840
|
-
|
|
860
|
+
transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.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})`
|
|
861
|
+
}, _(It(s)), 9, Fl))), 256))
|
|
862
|
+
], 512)) : h("", !0),
|
|
863
|
+
oe.value ? (u(), n("g", Nl, [
|
|
864
|
+
f("rect", {
|
|
841
865
|
style: { "pointer-events": "none" },
|
|
842
|
-
x:
|
|
843
|
-
y:
|
|
866
|
+
x: oe.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
|
|
867
|
+
y: oe.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
|
|
844
868
|
width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
845
869
|
height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
|
|
846
870
|
fill: "transparent",
|
|
847
871
|
stroke: e.value.style.layout.cells.selected.color,
|
|
848
872
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
849
873
|
rx: 1
|
|
850
|
-
}, null, 8,
|
|
851
|
-
])) :
|
|
852
|
-
T(t.$slots, "svg", { svg:
|
|
853
|
-
], 14,
|
|
874
|
+
}, null, 8, Dl)
|
|
875
|
+
])) : h("", !0),
|
|
876
|
+
T(t.$slots, "svg", { svg: S.value }, void 0, !0)
|
|
877
|
+
], 14, kl)),
|
|
854
878
|
e.value.style.legend.show ? (u(), n("div", {
|
|
855
879
|
key: 0,
|
|
856
880
|
ref_key: "legendRight",
|
|
857
|
-
ref:
|
|
881
|
+
ref: wt,
|
|
858
882
|
class: "vue-ui-heatmap-legend-right",
|
|
859
|
-
style:
|
|
883
|
+
style: w({
|
|
860
884
|
"--legend-width": e.value.style.legend.width + "px"
|
|
861
885
|
})
|
|
862
886
|
}, [
|
|
863
|
-
i(
|
|
887
|
+
i(fe) ? h("", !0) : (u(), n("div", {
|
|
864
888
|
key: 0,
|
|
865
889
|
class: "vue-ui-heatmap-legend-label-max",
|
|
866
|
-
style:
|
|
890
|
+
style: w({
|
|
867
891
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
868
892
|
color: e.value.style.legend.color
|
|
869
893
|
})
|
|
870
|
-
},
|
|
894
|
+
}, _(i(B)(
|
|
871
895
|
e.value.style.layout.cells.value.formatter,
|
|
872
|
-
i(
|
|
896
|
+
i(E)(V.value),
|
|
873
897
|
i(H)({
|
|
874
898
|
p: e.value.style.layout.dataLabels.prefix,
|
|
875
|
-
v: i(
|
|
899
|
+
v: i(E)(V.value),
|
|
876
900
|
s: e.value.style.layout.dataLabels.suffix,
|
|
877
901
|
r: e.value.style.legend.roundingValue
|
|
878
902
|
})
|
|
879
903
|
)), 5)),
|
|
880
|
-
|
|
881
|
-
|
|
904
|
+
f("div", Hl, [
|
|
905
|
+
f("div", {
|
|
882
906
|
class: "vue-ui-heatmap-gauge",
|
|
883
|
-
style:
|
|
907
|
+
style: w({
|
|
884
908
|
background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
|
|
885
909
|
})
|
|
886
910
|
}, [
|
|
887
|
-
|
|
911
|
+
yt(f("div", {
|
|
888
912
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
889
|
-
"data-value": i(
|
|
913
|
+
"data-value": i(B)(
|
|
890
914
|
e.value.style.layout.cells.value.formatter,
|
|
891
|
-
i(
|
|
915
|
+
i(E)(R.value),
|
|
892
916
|
i(H)({
|
|
893
917
|
p: e.value.style.layout.dataLabels.prefix,
|
|
894
|
-
v: i(
|
|
918
|
+
v: i(E)(R.value),
|
|
895
919
|
s: e.value.style.layout.dataLabels.suffix,
|
|
896
920
|
r: e.value.style.legend.roundingValue
|
|
897
921
|
})
|
|
898
922
|
),
|
|
899
|
-
style:
|
|
923
|
+
style: w({
|
|
900
924
|
position: "absolute",
|
|
901
925
|
width: "100%",
|
|
902
926
|
height: "2px",
|
|
903
|
-
background: [void 0, null].includes(
|
|
904
|
-
top: `${[void 0, null].includes(
|
|
927
|
+
background: [void 0, null].includes(R.value) ? "transparent" : i(ke)(ge.value.datapoint.color),
|
|
928
|
+
top: `${[void 0, null].includes(R.value) ? 0 : (1 - R.value / V.value) * 100}%`,
|
|
905
929
|
transition: "all 0.2s ease-in-out",
|
|
906
930
|
"--background-color": e.value.style.backgroundColor,
|
|
907
|
-
"--gauge-arrow-color": i(
|
|
908
|
-
"--gauge-arrow-text-color": i(
|
|
909
|
-
"--gauge-arrow-value":
|
|
931
|
+
"--gauge-arrow-color": i(ke)(e.value.style.backgroundColor),
|
|
932
|
+
"--gauge-arrow-text-color": i(ke)(e.value.style.backgroundColor),
|
|
933
|
+
"--gauge-arrow-value": R.value,
|
|
910
934
|
"--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
|
|
911
935
|
})
|
|
912
936
|
}, [
|
|
913
|
-
|
|
937
|
+
f("div", Xl, _(i(B)(
|
|
914
938
|
e.value.style.layout.cells.value.formatter,
|
|
915
|
-
i(
|
|
939
|
+
i(E)(R.value),
|
|
916
940
|
i(H)({
|
|
917
941
|
p: e.value.style.layout.dataLabels.prefix,
|
|
918
|
-
v: i(
|
|
942
|
+
v: i(E)(R.value),
|
|
919
943
|
s: e.value.style.layout.dataLabels.suffix,
|
|
920
944
|
r: e.value.style.legend.roundingValue
|
|
921
945
|
})
|
|
922
946
|
)), 1)
|
|
923
|
-
], 12,
|
|
924
|
-
[
|
|
947
|
+
], 12, Pl), [
|
|
948
|
+
[qt, ![void 0, null].includes(R.value)]
|
|
925
949
|
])
|
|
926
950
|
], 4)
|
|
927
951
|
]),
|
|
928
|
-
i(
|
|
952
|
+
i(fe) ? h("", !0) : (u(), n("div", {
|
|
929
953
|
key: 1,
|
|
930
954
|
class: "vue-ui-heatmap-legend-label-min",
|
|
931
|
-
style:
|
|
955
|
+
style: w({
|
|
932
956
|
fontSize: e.value.style.legend.fontSize + "px",
|
|
933
957
|
color: e.value.style.legend.color
|
|
934
958
|
})
|
|
935
|
-
},
|
|
959
|
+
}, _(i(B)(
|
|
936
960
|
e.value.style.layout.cells.value.formatter,
|
|
937
|
-
i(
|
|
961
|
+
i(E)(re.value),
|
|
938
962
|
i(H)({
|
|
939
963
|
p: e.value.style.layout.dataLabels.prefix,
|
|
940
|
-
v: i(
|
|
964
|
+
v: i(E)(re.value),
|
|
941
965
|
s: e.value.style.layout.dataLabels.suffix,
|
|
942
966
|
r: e.value.style.legend.roundingValue
|
|
943
967
|
})
|
|
944
968
|
)), 5))
|
|
945
|
-
], 4)) :
|
|
969
|
+
], 4)) : h("", !0)
|
|
946
970
|
], 2),
|
|
947
|
-
t.$slots.watermark ? (u(), n("div",
|
|
948
|
-
T(t.$slots, "watermark",
|
|
949
|
-
])) :
|
|
971
|
+
t.$slots.watermark ? (u(), n("div", Il, [
|
|
972
|
+
T(t.$slots, "watermark", ee(te({ isPrinting: i(Ke) || i(Je) })), void 0, !0)
|
|
973
|
+
])) : h("", !0),
|
|
950
974
|
t.$slots.source ? (u(), n("div", {
|
|
951
975
|
key: 5,
|
|
952
976
|
ref_key: "source",
|
|
953
|
-
ref:
|
|
977
|
+
ref: Ge,
|
|
954
978
|
dir: "auto"
|
|
955
979
|
}, [
|
|
956
980
|
T(t.$slots, "source", {}, void 0, !0)
|
|
957
|
-
], 512)) :
|
|
958
|
-
|
|
959
|
-
show:
|
|
981
|
+
], 512)) : h("", !0),
|
|
982
|
+
we(i(W), {
|
|
983
|
+
show: L.value.showTooltip && q.value,
|
|
960
984
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
961
985
|
color: e.value.style.tooltip.color,
|
|
962
986
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -966,113 +990,129 @@ const gl = ["id"], bl = ["xmlns", "viewBox"], ml = ["x", "y", "width", "height"]
|
|
|
966
990
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
967
991
|
position: e.value.style.tooltip.position,
|
|
968
992
|
offsetY: e.value.style.tooltip.offsetY,
|
|
969
|
-
parent:
|
|
970
|
-
content:
|
|
971
|
-
isFullscreen:
|
|
993
|
+
parent: O.value,
|
|
994
|
+
content: K.value,
|
|
995
|
+
isFullscreen: G.value,
|
|
972
996
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
973
997
|
smooth: e.value.style.tooltip.smooth,
|
|
974
998
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
975
999
|
}, {
|
|
976
|
-
"tooltip-before":
|
|
977
|
-
T(t.$slots, "tooltip-before",
|
|
1000
|
+
"tooltip-before": $(() => [
|
|
1001
|
+
T(t.$slots, "tooltip-before", ee(te({ ...ge.value })), void 0, !0)
|
|
978
1002
|
]),
|
|
979
|
-
"tooltip-after":
|
|
980
|
-
T(t.$slots, "tooltip-after",
|
|
1003
|
+
"tooltip-after": $(() => [
|
|
1004
|
+
T(t.$slots, "tooltip-after", ee(te({ ...ge.value })), void 0, !0)
|
|
981
1005
|
]),
|
|
982
1006
|
_: 3
|
|
983
1007
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
992
|
-
color: e.value.style.color
|
|
993
|
-
},
|
|
994
|
-
head: {
|
|
995
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
996
|
-
color: e.value.style.color
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}, {
|
|
1000
|
-
content: O(() => [
|
|
1001
|
-
h("div", {
|
|
1008
|
+
j.value ? (u(), ce(Kt(me.value.component), Jt({ key: 6 }, me.value.props, {
|
|
1009
|
+
ref_key: "tableUnit",
|
|
1010
|
+
ref: se,
|
|
1011
|
+
onClose: a[3] || (a[3] = (o) => L.value.showTable = !1)
|
|
1012
|
+
}), dt({
|
|
1013
|
+
content: $(() => [
|
|
1014
|
+
f("div", {
|
|
1002
1015
|
ref_key: "tableContainer",
|
|
1003
|
-
ref:
|
|
1004
|
-
class: "vue-ui-heatmap-table atom-data-table"
|
|
1016
|
+
ref: Ve,
|
|
1017
|
+
class: "vue-ui-heatmap-table atom-data-table",
|
|
1018
|
+
style: w(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1005
1019
|
}, [
|
|
1006
|
-
|
|
1007
|
-
style:
|
|
1008
|
-
class:
|
|
1020
|
+
f("div", {
|
|
1021
|
+
style: w(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1022
|
+
class: ve({ "vue-ui-responsive": i(Ut) })
|
|
1009
1023
|
}, [
|
|
1010
|
-
h("div", {
|
|
1024
|
+
e.value.table.useDialog ? h("", !0) : (u(), n("div", {
|
|
1025
|
+
key: 0,
|
|
1011
1026
|
role: "button",
|
|
1012
1027
|
tabindex: "0",
|
|
1013
|
-
style:
|
|
1014
|
-
onClick: a[
|
|
1015
|
-
onKeypress: a[
|
|
1028
|
+
style: w(`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};`),
|
|
1029
|
+
onClick: a[1] || (a[1] = (o) => L.value.showTable = !1),
|
|
1030
|
+
onKeypress: a[2] || (a[2] = Qt((o) => L.value.showTable = !1, ["enter"]))
|
|
1016
1031
|
}, [
|
|
1017
|
-
|
|
1032
|
+
we(i(le), {
|
|
1018
1033
|
name: "close",
|
|
1019
1034
|
stroke: e.value.table.th.color,
|
|
1020
1035
|
"stroke-width": 2
|
|
1021
1036
|
}, null, 8, ["stroke"])
|
|
1022
|
-
], 36),
|
|
1023
|
-
|
|
1024
|
-
h("caption", {
|
|
1025
|
-
|
|
1037
|
+
], 36)),
|
|
1038
|
+
f("table", Vl, [
|
|
1039
|
+
e.value.table.useDialog ? h("", !0) : (u(), n("caption", {
|
|
1040
|
+
key: 0,
|
|
1041
|
+
style: w(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1026
1042
|
}, [
|
|
1027
|
-
|
|
1028
|
-
e.value.style.title.subtitle.text ? (u(), n("span",
|
|
1029
|
-
], 4),
|
|
1030
|
-
|
|
1031
|
-
|
|
1043
|
+
He(_(e.value.style.title.text) + " ", 1),
|
|
1044
|
+
e.value.style.title.subtitle.text ? (u(), n("span", Bl, _(e.value.style.title.subtitle.text), 1)) : h("", !0)
|
|
1045
|
+
], 4)),
|
|
1046
|
+
f("thead", null, [
|
|
1047
|
+
f("tr", {
|
|
1032
1048
|
role: "row",
|
|
1033
|
-
style:
|
|
1049
|
+
style: w(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1034
1050
|
}, [
|
|
1035
|
-
|
|
1036
|
-
style:
|
|
1051
|
+
f("th", {
|
|
1052
|
+
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1037
1053
|
}, null, 4),
|
|
1038
|
-
(u(!0), n(
|
|
1054
|
+
(u(!0), n(C, null, F(b.dataset, (o, s) => (u(), n("th", {
|
|
1039
1055
|
align: "right",
|
|
1040
|
-
style:
|
|
1041
|
-
},
|
|
1056
|
+
style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
1057
|
+
}, _(o.name), 5))), 256))
|
|
1042
1058
|
], 4)
|
|
1043
1059
|
]),
|
|
1044
|
-
|
|
1045
|
-
(u(!0), n(
|
|
1060
|
+
f("tbody", null, [
|
|
1061
|
+
(u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n("tr", {
|
|
1046
1062
|
role: "row",
|
|
1047
|
-
class:
|
|
1048
|
-
style:
|
|
1063
|
+
class: ve({ "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 }),
|
|
1064
|
+
style: w(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1049
1065
|
}, [
|
|
1050
|
-
|
|
1066
|
+
f("td", {
|
|
1051
1067
|
"data-cell": e.value.table.colNames.xAxis,
|
|
1052
1068
|
class: "vue-ui-data-table__tbody__td",
|
|
1053
|
-
style:
|
|
1069
|
+
style: w(`outline:${e.value.table.td.outline}`)
|
|
1054
1070
|
}, [
|
|
1055
|
-
|
|
1056
|
-
], 12,
|
|
1057
|
-
(u(!0), n(
|
|
1071
|
+
f("div", Ul, _(o), 1)
|
|
1072
|
+
], 12, El),
|
|
1073
|
+
(u(!0), n(C, null, F(b.dataset, (d, v) => (u(), n("td", {
|
|
1058
1074
|
class: "vue-ui-data-table__tbody__td",
|
|
1059
1075
|
"data-cell": b.dataset[v].name,
|
|
1060
|
-
style:
|
|
1076
|
+
style: w(`outline:${e.value.table.td.outline}`)
|
|
1061
1077
|
}, [
|
|
1062
|
-
|
|
1063
|
-
], 12,
|
|
1078
|
+
f("div", Gl, _(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)
|
|
1079
|
+
], 12, Yl))), 256))
|
|
1064
1080
|
], 6))), 256))
|
|
1065
1081
|
])
|
|
1066
1082
|
])
|
|
1067
|
-
],
|
|
1068
|
-
],
|
|
1083
|
+
], 6)
|
|
1084
|
+
], 4)
|
|
1069
1085
|
]),
|
|
1070
|
-
_:
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1073
|
-
|
|
1086
|
+
_: 2
|
|
1087
|
+
}, [
|
|
1088
|
+
e.value.table.useDialog ? {
|
|
1089
|
+
name: "title",
|
|
1090
|
+
fn: $(() => [
|
|
1091
|
+
He(_(me.value.title), 1)
|
|
1092
|
+
]),
|
|
1093
|
+
key: "0"
|
|
1094
|
+
} : void 0,
|
|
1095
|
+
e.value.table.useDialog ? {
|
|
1096
|
+
name: "actions",
|
|
1097
|
+
fn: $(() => [
|
|
1098
|
+
f("button", {
|
|
1099
|
+
tabindex: "0",
|
|
1100
|
+
class: "vue-ui-user-options-button",
|
|
1101
|
+
onClick: a[0] || (a[0] = (o) => Re(e.value.userOptions.callbacks.csv))
|
|
1102
|
+
}, [
|
|
1103
|
+
we(i(le), {
|
|
1104
|
+
name: "excel",
|
|
1105
|
+
stroke: me.value.props.color
|
|
1106
|
+
}, null, 8, ["stroke"])
|
|
1107
|
+
])
|
|
1108
|
+
]),
|
|
1109
|
+
key: "1"
|
|
1110
|
+
} : void 0
|
|
1111
|
+
]), 1040)) : h("", !0),
|
|
1112
|
+
i(fe) ? (u(), ce(dl, { key: 7 })) : h("", !0)
|
|
1113
|
+
], 46, wl));
|
|
1074
1114
|
}
|
|
1075
|
-
},
|
|
1115
|
+
}, ra = /* @__PURE__ */ ml(Wl, [["__scopeId", "data-v-2b7d26d8"]]);
|
|
1076
1116
|
export {
|
|
1077
|
-
|
|
1117
|
+
ra as default
|
|
1078
1118
|
};
|