vue-data-ui 3.25.5 → 3.25.6
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,1555 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, Ct as r, D as i, Pt as a, X as o, Zt as s, b as c, ht as l, i as u, lt as d, nt as f, q as p, r as m, t as ee, xt as te } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ie } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as ae } from "./useConfig-C_mX5pOZ.js";
|
|
6
|
-
import { t as oe } from "./usePrinter-DISD7q5m.js";
|
|
7
|
-
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as le } from "./useNestedProp-Chvyfpl-.js";
|
|
9
|
-
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as de } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
-
import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as pe } from "./img-DhGApYG0.js";
|
|
13
|
-
import { n as me } from "./Title-CPHi-evi.js";
|
|
14
|
-
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
-
import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
-
import { t as ve } from "./vue-ui-accordion-DRf3NQyH.js";
|
|
17
|
-
import { t as ye } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
-
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
-
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { t as Se } from "./useTableResponsive-BAqJPR68.js";
|
|
21
|
-
import { t as Ce } from "./vue_ui_heatmap-B2BBBSWG.js";
|
|
22
|
-
import { Fragment as h, computed as g, createBlock as we, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as b, guardReactiveProps as x, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as je, onMounted as Me, openBlock as w, reactive as Ne, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as O, toRefs as Ie, unref as k, useCssVars as Le, vShow as Re, watch as ze, watchEffect as Be, withCtx as A, withDirectives as Ve, withKeys as He } from "vue";
|
|
23
|
-
//#region src/useLabelObserverEfffect.js
|
|
24
|
-
function Ue({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
25
|
-
if (r) return;
|
|
26
|
-
let o = (e) => {
|
|
27
|
-
if (!e) return;
|
|
28
|
-
let r;
|
|
29
|
-
if (typeof e.getBBox == "function") try {
|
|
30
|
-
let t = e.getBBox();
|
|
31
|
-
r = n === "width" ? t.width : t.height;
|
|
32
|
-
} catch {}
|
|
33
|
-
if (typeof r != "number" || Number.isNaN(r)) try {
|
|
34
|
-
let t = e.getBoundingClientRect();
|
|
35
|
-
r = n === "width" ? t.width : t.height;
|
|
36
|
-
} catch {
|
|
37
|
-
r = void 0;
|
|
38
|
-
}
|
|
39
|
-
typeof r == "number" && !Number.isNaN(r) && t(r);
|
|
40
|
-
};
|
|
41
|
-
Be((t) => {
|
|
42
|
-
let n = e.value;
|
|
43
|
-
if (!n) return;
|
|
44
|
-
let r = !1;
|
|
45
|
-
(async () => {
|
|
46
|
-
await ke();
|
|
47
|
-
for (let t = 0; t < i; t += 1) {
|
|
48
|
-
if (r) return;
|
|
49
|
-
await new Promise((e) => requestAnimationFrame(e));
|
|
50
|
-
let t = e.value;
|
|
51
|
-
if (!t) return;
|
|
52
|
-
o(t);
|
|
53
|
-
}
|
|
54
|
-
if (a && typeof document < "u" && document.fonts && document.fonts.ready) {
|
|
55
|
-
try {
|
|
56
|
-
await document.fonts.ready;
|
|
57
|
-
} catch {}
|
|
58
|
-
!r && e.value && o(e.value);
|
|
59
|
-
}
|
|
60
|
-
})();
|
|
61
|
-
let s = new MutationObserver(() => {
|
|
62
|
-
e.value && requestAnimationFrame(() => {
|
|
63
|
-
e.value && o(e.value);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
s.observe(n, {
|
|
67
|
-
childList: !0,
|
|
68
|
-
subtree: !0,
|
|
69
|
-
characterData: !0,
|
|
70
|
-
attributes: !0,
|
|
71
|
-
attributeFilter: [
|
|
72
|
-
"transform",
|
|
73
|
-
"style",
|
|
74
|
-
"class"
|
|
75
|
-
]
|
|
76
|
-
});
|
|
77
|
-
let c;
|
|
78
|
-
if (typeof ResizeObserver < "u") {
|
|
79
|
-
let t = n.ownerSVGElement ? n.ownerSVGElement : n;
|
|
80
|
-
c = new ResizeObserver(() => {
|
|
81
|
-
let t = e.value;
|
|
82
|
-
t && o(t);
|
|
83
|
-
}), c.observe(t);
|
|
84
|
-
}
|
|
85
|
-
t(() => {
|
|
86
|
-
r = !0, s.disconnect(), c && c.disconnect();
|
|
87
|
-
});
|
|
88
|
-
}, { flush: "post" });
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/directives/vFitText.js
|
|
92
|
-
var We = {
|
|
93
|
-
mounted(e, t) {
|
|
94
|
-
Ge(e, t.value);
|
|
95
|
-
},
|
|
96
|
-
updated(e, t) {
|
|
97
|
-
Ge(e, t.value);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
function Ge(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
|
|
101
|
-
e.removeAttribute("transform"), e.removeAttribute("visibility");
|
|
102
|
-
let u = !1, d = !1;
|
|
103
|
-
e.setAttribute("font-size", r);
|
|
104
|
-
let f = e.getComputedTextLength();
|
|
105
|
-
if (f <= t) o(a, !1), s(a, !1);
|
|
106
|
-
else {
|
|
107
|
-
let n = Math.floor(r * t / f);
|
|
108
|
-
n >= i ? (e.setAttribute("font-size", n), o(a, !1), s(a, !1)) : (o(a, !0), s(a, !1), u = !0);
|
|
109
|
-
}
|
|
110
|
-
if (c && (u = !0), u) {
|
|
111
|
-
e.setAttribute("font-size", r);
|
|
112
|
-
let t = e.getBBox(), o = t.x + t.width / 2, c = t.y + t.height / 2;
|
|
113
|
-
e.setAttribute("transform", `rotate(-90 ${o} ${c})`);
|
|
114
|
-
let l = e.getBBox().width;
|
|
115
|
-
if (l <= n) s(a, !1);
|
|
116
|
-
else {
|
|
117
|
-
let t = Math.floor(r * n / l);
|
|
118
|
-
t >= i ? (e.setAttribute("font-size", t), s(a, !1)) : (d = !0, s(a, !0));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
(l || d) && e.setAttribute("visibility", "hidden");
|
|
122
|
-
}
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region src/components/vue-ui-heatmap.vue
|
|
125
|
-
var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye = [
|
|
126
|
-
"xmlns",
|
|
127
|
-
"aria-describedby",
|
|
128
|
-
"viewBox"
|
|
129
|
-
], Xe = [
|
|
130
|
-
"x",
|
|
131
|
-
"y",
|
|
132
|
-
"width",
|
|
133
|
-
"height"
|
|
134
|
-
], Ze = [
|
|
135
|
-
"x",
|
|
136
|
-
"y",
|
|
137
|
-
"height",
|
|
138
|
-
"width",
|
|
139
|
-
"fill",
|
|
140
|
-
"stroke",
|
|
141
|
-
"stroke-width"
|
|
142
|
-
], Qe = [
|
|
143
|
-
"x",
|
|
144
|
-
"y",
|
|
145
|
-
"height",
|
|
146
|
-
"width",
|
|
147
|
-
"fill",
|
|
148
|
-
"stroke",
|
|
149
|
-
"stroke-width"
|
|
150
|
-
], $e = [
|
|
151
|
-
"x",
|
|
152
|
-
"y",
|
|
153
|
-
"width",
|
|
154
|
-
"height",
|
|
155
|
-
"fill",
|
|
156
|
-
"stroke",
|
|
157
|
-
"stroke-width"
|
|
158
|
-
], et = [
|
|
159
|
-
"data-a11y-cell-id",
|
|
160
|
-
"x",
|
|
161
|
-
"y",
|
|
162
|
-
"width",
|
|
163
|
-
"height",
|
|
164
|
-
"fill",
|
|
165
|
-
"stroke",
|
|
166
|
-
"stroke-width",
|
|
167
|
-
"aria-label",
|
|
168
|
-
"onMouseover",
|
|
169
|
-
"onMouseout",
|
|
170
|
-
"onClick"
|
|
171
|
-
], tt = [
|
|
172
|
-
"font-size",
|
|
173
|
-
"font-weight",
|
|
174
|
-
"fill",
|
|
175
|
-
"x",
|
|
176
|
-
"y"
|
|
177
|
-
], nt = [
|
|
178
|
-
"x",
|
|
179
|
-
"y",
|
|
180
|
-
"width",
|
|
181
|
-
"height",
|
|
182
|
-
"fill",
|
|
183
|
-
"stroke",
|
|
184
|
-
"stroke-width"
|
|
185
|
-
], rt = [
|
|
186
|
-
"x",
|
|
187
|
-
"y",
|
|
188
|
-
"width",
|
|
189
|
-
"height",
|
|
190
|
-
"fill",
|
|
191
|
-
"stroke",
|
|
192
|
-
"stroke-width"
|
|
193
|
-
], it = [
|
|
194
|
-
"font-size",
|
|
195
|
-
"fill",
|
|
196
|
-
"x",
|
|
197
|
-
"y",
|
|
198
|
-
"font-weight"
|
|
199
|
-
], at = [
|
|
200
|
-
"font-size",
|
|
201
|
-
"fill",
|
|
202
|
-
"x",
|
|
203
|
-
"y",
|
|
204
|
-
"font-weight"
|
|
205
|
-
], ot = [
|
|
206
|
-
"text-anchor",
|
|
207
|
-
"font-size",
|
|
208
|
-
"fill",
|
|
209
|
-
"font-weight",
|
|
210
|
-
"transform"
|
|
211
|
-
], st = [
|
|
212
|
-
"text-anchor",
|
|
213
|
-
"font-size",
|
|
214
|
-
"fill",
|
|
215
|
-
"font-weight",
|
|
216
|
-
"transform"
|
|
217
|
-
], ct = { key: 6 }, lt = [
|
|
218
|
-
"x",
|
|
219
|
-
"y",
|
|
220
|
-
"width",
|
|
221
|
-
"height",
|
|
222
|
-
"stroke",
|
|
223
|
-
"stroke-width"
|
|
224
|
-
], ut = { key: 7 }, dt = [
|
|
225
|
-
"x1",
|
|
226
|
-
"x2",
|
|
227
|
-
"y1",
|
|
228
|
-
"y2",
|
|
229
|
-
"stroke",
|
|
230
|
-
"stroke-width",
|
|
231
|
-
"stroke-dasharray"
|
|
232
|
-
], ft = [
|
|
233
|
-
"x1",
|
|
234
|
-
"x2",
|
|
235
|
-
"y1",
|
|
236
|
-
"y2",
|
|
237
|
-
"stroke",
|
|
238
|
-
"stroke-width",
|
|
239
|
-
"stroke-dasharray"
|
|
240
|
-
], pt = { class: "vue-ui-heatmap-legend-gauge-right" }, mt = ["data-value"], ht = { class: "vue-ui-heatmap-gauge-indicator-value" }, gt = {
|
|
241
|
-
key: 1,
|
|
242
|
-
style: {
|
|
243
|
-
position: "absolute",
|
|
244
|
-
top: "100%",
|
|
245
|
-
left: "0",
|
|
246
|
-
width: "100%"
|
|
247
|
-
},
|
|
248
|
-
"data-dom-to-png-ignore": "",
|
|
249
|
-
"aria-hidden": "true"
|
|
250
|
-
}, _t = {
|
|
251
|
-
key: 5,
|
|
252
|
-
class: "vue-data-ui-watermark"
|
|
253
|
-
}, vt = { class: "vue-ui-data-table" }, yt = { key: 0 }, bt = ["data-cell"], xt = { style: {
|
|
254
|
-
display: "flex",
|
|
255
|
-
"align-items": "center",
|
|
256
|
-
gap: "5px",
|
|
257
|
-
"justify-content": "flex-end",
|
|
258
|
-
width: "100%",
|
|
259
|
-
"padding-right": "3px"
|
|
260
|
-
} }, St = ["data-cell"], Ct = { style: {
|
|
261
|
-
display: "flex",
|
|
262
|
-
"align-items": "center",
|
|
263
|
-
gap: "5px",
|
|
264
|
-
"justify-content": "flex-end",
|
|
265
|
-
width: "100%",
|
|
266
|
-
"padding-right": "3px"
|
|
267
|
-
} }, wt = /*#__PURE__*/ he({
|
|
268
|
-
__name: "vue-ui-heatmap",
|
|
269
|
-
props: {
|
|
270
|
-
config: {
|
|
271
|
-
type: Object,
|
|
272
|
-
default() {
|
|
273
|
-
return {};
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
dataset: {
|
|
277
|
-
type: Array,
|
|
278
|
-
default() {
|
|
279
|
-
return [];
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
emits: ["selectDatapoint", "copyAlt"],
|
|
284
|
-
setup(e, { expose: he, emit: Ge }) {
|
|
285
|
-
Le((e) => ({ v47b2e7a9: e.tdo }));
|
|
286
|
-
let Ke = b(() => import("./Tooltip-hhrkQ3Lk.js")), wt = b(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Tt = b(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Et = b(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Dt = b(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Ot = b(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_heatmap: kt } = ae(), { isThemeValid: At, warnInvalidTheme: jt } = ue(), j = e, Mt = Ge, Nt = g({
|
|
287
|
-
get() {
|
|
288
|
-
return !!j.dataset && j.dataset.length;
|
|
289
|
-
},
|
|
290
|
-
set(e) {
|
|
291
|
-
return e;
|
|
292
|
-
}
|
|
293
|
-
}), M = T(p()), N = T(null), Pt = T(!1), Ft = T(""), It = T(void 0), P = T(null), Lt = T(0), Rt = T(null), zt = T(0), Bt = T(null), Vt = T(null), Ht = T(null), Ut = T(null), Wt = T(null), Gt = T(null), Kt = T(null), qt = T(null), Jt = T(null), Yt = T(null), Xt = T(null), Zt = T(null), Qt = Fe(null), F = T(null), $t = T(null), en = T({
|
|
294
|
-
x: 0,
|
|
295
|
-
y: 0
|
|
296
|
-
}), tn = T("pointer"), nn = T(!1), I = T(pn());
|
|
297
|
-
ne({
|
|
298
|
-
config: () => I.value,
|
|
299
|
-
dataset: () => j.dataset,
|
|
300
|
-
component: "VueUiHeatmap",
|
|
301
|
-
rules: [re.emptyArray, re.noHint]
|
|
302
|
-
});
|
|
303
|
-
let rn = g(() => I.value.userOptions.useCursorPointer);
|
|
304
|
-
function an() {
|
|
305
|
-
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
306
|
-
for (let r = 0; r < n; r += 1) {
|
|
307
|
-
let n = [];
|
|
308
|
-
for (let e = 0; e < 14; e += 1) n.push(r + e * 2);
|
|
309
|
-
t.push({
|
|
310
|
-
name: `${e[r]}`,
|
|
311
|
-
values: n
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
return t;
|
|
315
|
-
}
|
|
316
|
-
let on = g(() => s({
|
|
317
|
-
defaultConfig: {
|
|
318
|
-
table: { show: !1 },
|
|
319
|
-
userOptions: { show: !1 },
|
|
320
|
-
style: {
|
|
321
|
-
backgroundColor: "#99999930",
|
|
322
|
-
layout: {
|
|
323
|
-
cells: {
|
|
324
|
-
colors: {
|
|
325
|
-
hot: "#999999",
|
|
326
|
-
cold: "#CACACA"
|
|
327
|
-
},
|
|
328
|
-
columnTotal: { value: { show: !1 } },
|
|
329
|
-
rowTotal: { value: { show: !1 } },
|
|
330
|
-
value: { show: !1 }
|
|
331
|
-
},
|
|
332
|
-
dataLabels: {
|
|
333
|
-
xAxis: { show: !1 },
|
|
334
|
-
yAxis: { show: !1 }
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
userConfig: I.value.skeletonConfig ?? {}
|
|
340
|
-
})), { loading: sn, FINAL_DATASET: L, manualLoading: cn } = se({
|
|
341
|
-
...Ie(j),
|
|
342
|
-
FINAL_CONFIG: I,
|
|
343
|
-
prepareConfig: pn,
|
|
344
|
-
callback: () => {
|
|
345
|
-
Promise.resolve().then(async () => {
|
|
346
|
-
await ke(), N.value && n(N.value, {
|
|
347
|
-
delta: .1,
|
|
348
|
-
delay: 250
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
},
|
|
352
|
-
skeletonDataset: j.config?.skeletonDataset ?? an(),
|
|
353
|
-
skeletonConfig: s({
|
|
354
|
-
defaultConfig: I.value,
|
|
355
|
-
userConfig: on.value
|
|
356
|
-
})
|
|
357
|
-
}), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.title });
|
|
358
|
-
function fn(e) {
|
|
359
|
-
un(e);
|
|
360
|
-
}
|
|
361
|
-
function pn() {
|
|
362
|
-
let e = le({
|
|
363
|
-
userConfig: j.config,
|
|
364
|
-
defaultConfig: kt
|
|
365
|
-
}), t = {}, n = e.theme;
|
|
366
|
-
if (n) {
|
|
367
|
-
if (!At.value(e)) jt(e), t = e;
|
|
368
|
-
else {
|
|
369
|
-
let r = le({
|
|
370
|
-
userConfig: Ce[n] || j.config,
|
|
371
|
-
defaultConfig: e
|
|
372
|
-
});
|
|
373
|
-
t = { ...le({
|
|
374
|
-
userConfig: j.config,
|
|
375
|
-
defaultConfig: r
|
|
376
|
-
}) };
|
|
377
|
-
}
|
|
378
|
-
} else t = e;
|
|
379
|
-
return t;
|
|
380
|
-
}
|
|
381
|
-
ze(() => j.config, (e) => {
|
|
382
|
-
sn.value || (I.value = pn()), ln.value = !I.value.userOptions.showOnChartHover, xn(), zt.value += 1, z.value.showTable = I.value.table.show, z.value.showTooltip = I.value.style.tooltip.show, Sn.value = I.value.style.layout.width, Cn.value = I.value.style.layout.height;
|
|
383
|
-
}, { deep: !0 }), ze(() => j.dataset, (e) => {
|
|
384
|
-
Array.isArray(e) && e.length > 0 && (cn.value = !1), xn();
|
|
385
|
-
}, { deep: !0 });
|
|
386
|
-
let { isPrinting: mn, isImaging: hn, generatePdf: gn, generateImage: _n } = oe({
|
|
387
|
-
elementId: `heatmap__${M.value}`,
|
|
388
|
-
fileName: I.value.style.title.text || "vue-ui-heatmap",
|
|
389
|
-
options: I.value.userOptions.print
|
|
390
|
-
}), vn = g(() => I.value.userOptions.show && !I.value.style.title.text), z = T({
|
|
391
|
-
showTable: I.value.table.show,
|
|
392
|
-
showTooltip: I.value.style.tooltip.show
|
|
393
|
-
});
|
|
394
|
-
ze(I, () => {
|
|
395
|
-
z.value = {
|
|
396
|
-
showTable: I.value.table.show,
|
|
397
|
-
showTooltip: I.value.style.tooltip.show
|
|
398
|
-
};
|
|
399
|
-
}, { immediate: !0 });
|
|
400
|
-
let yn = g(() => I.value.table.responsiveBreakpoint), B = T(null), bn = g(() => I.value.debug);
|
|
401
|
-
function xn() {
|
|
402
|
-
if (a(j.dataset) && (f({
|
|
403
|
-
componentName: "VueUiHeatmap",
|
|
404
|
-
type: "dataset",
|
|
405
|
-
debug: bn.value
|
|
406
|
-
}), Nt.value = !1, cn.value = !0), a(j.dataset) || (cn.value = I.value.loading), I.value.responsive) {
|
|
407
|
-
let e = ge(() => {
|
|
408
|
-
let { width: e, height: t } = _e({
|
|
409
|
-
chart: N.value,
|
|
410
|
-
title: I.value.style.title.text ? Ut.value : null,
|
|
411
|
-
source: Zt.value,
|
|
412
|
-
noTitle: Wt.value
|
|
413
|
-
});
|
|
414
|
-
requestAnimationFrame(() => {
|
|
415
|
-
Sn.value = e, Cn.value = t;
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
B.value && (Qt.value && B.value.unobserve(Qt.value), B.value.disconnect()), B.value = new ResizeObserver(e), Qt.value = N.value.parentNode, B.value.observe(Qt.value);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
je(() => {
|
|
422
|
-
B.value && (Qt.value && B.value.unobserve(Qt.value), B.value.disconnect());
|
|
423
|
-
}), Me(() => {
|
|
424
|
-
xn();
|
|
425
|
-
});
|
|
426
|
-
let V = g(() => Math.max(...L.value.flatMap((e) => (e.values || []).length))), Sn = T(I.value.style.layout.width), Cn = T(I.value.style.layout.height), H = g(() => ({
|
|
427
|
-
width: Math.max(10, Sn.value),
|
|
428
|
-
height: Math.max(10, Cn.value)
|
|
429
|
-
})), U = T(0);
|
|
430
|
-
Ue({
|
|
431
|
-
elementRef: Jt,
|
|
432
|
-
callback: ge((e) => {
|
|
433
|
-
e !== U.value && (U.value = e);
|
|
434
|
-
}, 100),
|
|
435
|
-
attr: "height"
|
|
436
|
-
});
|
|
437
|
-
let W = T(0);
|
|
438
|
-
Ue({
|
|
439
|
-
elementRef: Kt,
|
|
440
|
-
callback: ge((e) => {
|
|
441
|
-
e !== W.value && (W.value = e);
|
|
442
|
-
}, 100),
|
|
443
|
-
attr: "width"
|
|
444
|
-
});
|
|
445
|
-
let wn = T(0);
|
|
446
|
-
Ue({
|
|
447
|
-
elementRef: Yt,
|
|
448
|
-
callback: ge((e) => {
|
|
449
|
-
e !== wn.value && (wn.value = e);
|
|
450
|
-
}, 100),
|
|
451
|
-
attr: "height"
|
|
452
|
-
}), je(() => {
|
|
453
|
-
U.value = 0, W.value = 0, wn.value = 0;
|
|
454
|
-
});
|
|
455
|
-
let G = g(() => Math.min(H.value.height, H.value.width) / 1e3 * I.value.style.layout.cells.spacing), K = g(() => {
|
|
456
|
-
let e = 0;
|
|
457
|
-
I.value.style.legend.show && (e = I.value.style.legend.width);
|
|
458
|
-
let t = I.value.style.layout.padding, n = I.value.style.layout.dataLabels.xAxis.fontSize / 3, r = I.value.style.layout.dataLabels.xAxis.fontSize / 2, i = H.value.height - t.top - t.bottom - U.value - n, a = H.value.width / 60, o = {
|
|
459
|
-
x: G.value * V.value,
|
|
460
|
-
y: G.value * ((L.value || []).length + 1)
|
|
461
|
-
}, s = H.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - wn.value - r - I.value.style.layout.cells.columnTotal.value.offsetY, l = {
|
|
462
|
-
width: Math.max(3, s / V.value),
|
|
463
|
-
height: Math.max(3, c / (L.value.length ?? 1))
|
|
464
|
-
};
|
|
465
|
-
return {
|
|
466
|
-
top: t.top + U.value + a + n,
|
|
467
|
-
topLabelsHeight: U.value,
|
|
468
|
-
sumCellXHeight: a,
|
|
469
|
-
height: c,
|
|
470
|
-
left: t.left + W.value + a / 2,
|
|
471
|
-
right: t.right - e,
|
|
472
|
-
bottom: H.value.height - t.bottom - wn.value,
|
|
473
|
-
width: s,
|
|
474
|
-
cellSize: l
|
|
475
|
-
};
|
|
476
|
-
}), q = g(() => Math.max(...L.value.flatMap((e) => e.values))), Tn = g(() => Math.min(...L.value.flatMap((e) => e.values))), J = g(() => {
|
|
477
|
-
let e = L.value.flatMap((e) => e.values);
|
|
478
|
-
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
479
|
-
}), En = T([]), Dn = T([]), On = 0;
|
|
480
|
-
Be(() => {
|
|
481
|
-
let e = ++On;
|
|
482
|
-
(async () => {
|
|
483
|
-
let t = I.value.style.layout.dataLabels.yAxis, n = await ie({
|
|
484
|
-
values: t.values.length ? t.values : L.value.map((e) => e.name),
|
|
485
|
-
maxDatapoints: L.value.length,
|
|
486
|
-
formatter: t.datetimeFormatter,
|
|
487
|
-
start: 0,
|
|
488
|
-
end: L.value.length
|
|
489
|
-
});
|
|
490
|
-
e === On && (En.value = n);
|
|
491
|
-
})();
|
|
492
|
-
});
|
|
493
|
-
let kn = 0;
|
|
494
|
-
Be(() => {
|
|
495
|
-
let e = ++kn;
|
|
496
|
-
(async () => {
|
|
497
|
-
let t = I.value.style.layout.dataLabels.xAxis, n = await ie({
|
|
498
|
-
values: t.values,
|
|
499
|
-
maxDatapoints: V.value,
|
|
500
|
-
formatter: t.datetimeFormatter,
|
|
501
|
-
start: 0,
|
|
502
|
-
end: V.value
|
|
503
|
-
});
|
|
504
|
-
e === kn && (Dn.value = n);
|
|
505
|
-
})();
|
|
506
|
-
});
|
|
507
|
-
let Y = g(() => {
|
|
508
|
-
let e = En.value.map((e) => e.text), t = Dn.value.map((e) => e.text), n = L.value.map((e) => e.values.reduce((e, t) => e + t, 0)), r = Math.max(...n), i = Math.min(...n), a = [];
|
|
509
|
-
for (let e = 0; e < V.value; e += 1) a.push(L.value.map((t) => t.values[e] || 0).reduce((e, t) => e + t, 0));
|
|
510
|
-
let o = Math.max(...a), s = Math.min(...a);
|
|
511
|
-
return {
|
|
512
|
-
yTotals: n.map((e) => ({
|
|
513
|
-
total: e,
|
|
514
|
-
proportion: isNaN(e / r) ? 0 : e / r,
|
|
515
|
-
color: te(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, i, r, e)
|
|
516
|
-
})),
|
|
517
|
-
xTotals: a.map((e) => ({
|
|
518
|
-
total: e,
|
|
519
|
-
proportion: isNaN(e / o) ? 0 : e / o,
|
|
520
|
-
color: te(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, s, o, e)
|
|
521
|
-
})),
|
|
522
|
-
yLabels: e,
|
|
523
|
-
xLabels: t.slice(0, V.value)
|
|
524
|
-
};
|
|
525
|
-
}), X = g(() => (L.value.forEach((e, t) => {
|
|
526
|
-
l({
|
|
527
|
-
datasetObject: e,
|
|
528
|
-
requiredAttributes: ["values"]
|
|
529
|
-
}).forEach((e) => {
|
|
530
|
-
f({
|
|
531
|
-
componentName: "VueUiHeatmap",
|
|
532
|
-
type: "datasetSerieAttribute",
|
|
533
|
-
property: "values",
|
|
534
|
-
index: t,
|
|
535
|
-
debug: bn.value
|
|
536
|
-
});
|
|
537
|
-
});
|
|
538
|
-
}), L.value.map((e, t) => ({
|
|
539
|
-
...e,
|
|
540
|
-
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
541
|
-
side: "up",
|
|
542
|
-
color: te(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
543
|
-
ratio: Math.abs(Math.abs(e - J.value) / Math.abs(q.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(e - J.value) / Math.abs(q.value - J.value)),
|
|
544
|
-
value: e,
|
|
545
|
-
yAxisName: Y.value.yLabels[t],
|
|
546
|
-
xAxisName: Y.value.xLabels[n],
|
|
547
|
-
id: `vue-data-ui-heatmap-cell-${p()}`
|
|
548
|
-
} : {
|
|
549
|
-
side: "down",
|
|
550
|
-
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
551
|
-
color: te(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
552
|
-
value: e,
|
|
553
|
-
yAxisName: Y.value.yLabels[t],
|
|
554
|
-
xAxisName: Y.value.xLabels[n],
|
|
555
|
-
id: `vue-data-ui-heatmap-cell-${p()}`
|
|
556
|
-
})
|
|
557
|
-
})))), An = g(() => L.value.length), jn = Ne(Array(An.value * V.value || 1).fill(!1)), Mn = g(() => jn.some((e) => e));
|
|
558
|
-
function Nn(e, t) {
|
|
559
|
-
jn[e] = t;
|
|
560
|
-
}
|
|
561
|
-
let Pn = Ne(Array(An.value * V.value || 1).fill(!1)), Fn = g(() => Pn.some((e) => e));
|
|
562
|
-
function In(e, t) {
|
|
563
|
-
Pn[e] = t;
|
|
564
|
-
}
|
|
565
|
-
let Z = T(null), Ln = T(null);
|
|
566
|
-
function Rn() {
|
|
567
|
-
Pt.value = !1, It.value = void 0, Z.value = null, P.value = null, F.value = null, $t.value = null;
|
|
568
|
-
}
|
|
569
|
-
function zn(e) {
|
|
570
|
-
if (!R.value || !e) return;
|
|
571
|
-
let t = R.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
572
|
-
if (!t) return;
|
|
573
|
-
let n = t.getBoundingClientRect();
|
|
574
|
-
en.value = {
|
|
575
|
-
x: n.left + n.width / 2,
|
|
576
|
-
y: n.top + n.height / 2
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
function Bn(e, t, n, i, a = "pointer", s = null) {
|
|
580
|
-
if (I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
581
|
-
datapoint: e,
|
|
582
|
-
seriesIndex: t
|
|
583
|
-
}), !z.value.showTooltip) return;
|
|
584
|
-
tn.value = a, F.value = s, $t.value = e.id, P.value = {
|
|
585
|
-
x: n,
|
|
586
|
-
y: i
|
|
587
|
-
};
|
|
588
|
-
let { value: c, yAxisName: l, xAxisName: f, id: p } = e;
|
|
589
|
-
It.value = p, Z.value = c, Ln.value = {
|
|
590
|
-
datapoint: e,
|
|
591
|
-
seriesIndex: t,
|
|
592
|
-
series: X.value,
|
|
593
|
-
config: I.value
|
|
594
|
-
}, Pt.value = !0;
|
|
595
|
-
let m = "", ee = I.value.style.tooltip.customFormat;
|
|
596
|
-
r(ee) && d(() => ee({
|
|
597
|
-
datapoint: e,
|
|
598
|
-
seriesIndex: t,
|
|
599
|
-
series: X.value,
|
|
600
|
-
config: I.value
|
|
601
|
-
})) ? Ft.value = ee({
|
|
602
|
-
datapoint: e,
|
|
603
|
-
seriesIndex: t,
|
|
604
|
-
series: X.value,
|
|
605
|
-
config: I.value
|
|
606
|
-
}) : (m += `<div>${l} ${f ? l ? ` - ${f}` : `${f}` : ""}</div>`, m += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${te(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, Tn.value, q.value, c)}">⬤</span><span>${isNaN(c) ? "-" : u(I.value.style.layout.cells.value.formatter, c, o({
|
|
607
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
608
|
-
v: c,
|
|
609
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
610
|
-
r: I.value.style.tooltip.roundingValue
|
|
611
|
-
}), {
|
|
612
|
-
datapoint: e,
|
|
613
|
-
seriesIndex: t
|
|
614
|
-
})}</span></div>`, Ft.value = `<div style="font-size:${I.value.style.tooltip.fontSize}px">${m}</div>`), a === "keyboard" && ke(() => {
|
|
615
|
-
zn(e.id);
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
619
|
-
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
620
|
-
datapoint: e,
|
|
621
|
-
seriesIndex: t
|
|
622
|
-
}), ($t.value !== e.id || tn.value !== "keyboard") && (Pt.value = !1, It.value = void 0, Z.value = null, P.value = null);
|
|
623
|
-
}
|
|
624
|
-
function Hn(e) {
|
|
625
|
-
return u(I.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, o({
|
|
626
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
627
|
-
v: Y.value.yTotals[e].total,
|
|
628
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
629
|
-
r: I.value.style.layout.cells.value.roundingValue
|
|
630
|
-
}), {
|
|
631
|
-
datapoint: Y.value.yTotals[e],
|
|
632
|
-
rowIndex: e
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
function Un(e) {
|
|
636
|
-
return u(I.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, o({
|
|
637
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
638
|
-
v: Y.value.xTotals[e].total,
|
|
639
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
640
|
-
r: I.value.style.layout.cells.value.roundingValue
|
|
641
|
-
}), {
|
|
642
|
-
datapoint: Y.value.xTotals[e],
|
|
643
|
-
colIndex: e
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
g(() => ({
|
|
647
|
-
head: L.value.map((e) => ({ name: e.name })),
|
|
648
|
-
body: L.value.map((e) => e.values)
|
|
649
|
-
}));
|
|
650
|
-
function Wn(e = null) {
|
|
651
|
-
ke(() => {
|
|
652
|
-
let n = ["", ...L.value.map((e, t) => e.name)], r = [];
|
|
653
|
-
for (let e = 0; e < Y.value.xLabels.length; e += 1) {
|
|
654
|
-
let t = [Y.value.xLabels[e]];
|
|
655
|
-
for (let n = 0; n < L.value.length; n += 1) t.push([L.value[n].values[e]]);
|
|
656
|
-
r.push(t);
|
|
657
|
-
}
|
|
658
|
-
let a = [
|
|
659
|
-
[I.value.style.title.text],
|
|
660
|
-
[I.value.style.title.subtitle.text],
|
|
661
|
-
[
|
|
662
|
-
[""],
|
|
663
|
-
[""],
|
|
664
|
-
[""]
|
|
665
|
-
],
|
|
666
|
-
n
|
|
667
|
-
].concat(r), o = i(a);
|
|
668
|
-
e ? e(o) : t({
|
|
669
|
-
csvContent: o,
|
|
670
|
-
title: I.value.style.title.text || "vue-ui-heatmap"
|
|
671
|
-
});
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
let Q = T(!1);
|
|
675
|
-
function Gn(e) {
|
|
676
|
-
Q.value = e, Lt.value += 1;
|
|
677
|
-
}
|
|
678
|
-
function Kn() {
|
|
679
|
-
z.value.showTable = !z.value.showTable;
|
|
680
|
-
}
|
|
681
|
-
function qn() {
|
|
682
|
-
z.value.showTooltip = !z.value.showTooltip;
|
|
683
|
-
}
|
|
684
|
-
let Jn = T(!1);
|
|
685
|
-
function Yn() {
|
|
686
|
-
Jn.value = !Jn.value;
|
|
687
|
-
}
|
|
688
|
-
function Xn(e, t) {
|
|
689
|
-
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
690
|
-
datapoint: e,
|
|
691
|
-
seriesIndex: t
|
|
692
|
-
}), Mt("selectDatapoint", e);
|
|
693
|
-
}
|
|
694
|
-
function Zn() {
|
|
695
|
-
return X.value;
|
|
696
|
-
}
|
|
697
|
-
async function Qn({ scale: e = 2 } = {}) {
|
|
698
|
-
if (!N.value) return;
|
|
699
|
-
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
700
|
-
domElement: N.value,
|
|
701
|
-
base64: !0,
|
|
702
|
-
img: !0,
|
|
703
|
-
scale: e
|
|
704
|
-
});
|
|
705
|
-
return {
|
|
706
|
-
imageUri: i,
|
|
707
|
-
base64: a,
|
|
708
|
-
title: I.value.style.title.text,
|
|
709
|
-
width: t,
|
|
710
|
-
height: n,
|
|
711
|
-
aspectRatio: r
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
let $n = g(() => ({
|
|
715
|
-
start: 0,
|
|
716
|
-
end: V.value
|
|
717
|
-
})), er = g(() => Y.value.xLabels);
|
|
718
|
-
fe({
|
|
719
|
-
timeLabelsEls: Jt,
|
|
720
|
-
timeLabels: er,
|
|
721
|
-
slicer: $n,
|
|
722
|
-
configRef: I,
|
|
723
|
-
rotationPath: [
|
|
724
|
-
"style",
|
|
725
|
-
"layout",
|
|
726
|
-
"dataLabels",
|
|
727
|
-
"xAxis",
|
|
728
|
-
"rotation"
|
|
729
|
-
],
|
|
730
|
-
autoRotatePath: [
|
|
731
|
-
"style",
|
|
732
|
-
"layout",
|
|
733
|
-
"dataLabels",
|
|
734
|
-
"xAxis",
|
|
735
|
-
"autoRotate",
|
|
736
|
-
"enable"
|
|
737
|
-
],
|
|
738
|
-
isAutoSize: !1,
|
|
739
|
-
targetClass: ".vue-ui-heatmap-col-name",
|
|
740
|
-
rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
741
|
-
width: Sn,
|
|
742
|
-
height: Cn
|
|
743
|
-
}), fe({
|
|
744
|
-
timeLabelsEls: Yt,
|
|
745
|
-
timeLabels: er,
|
|
746
|
-
slicer: $n,
|
|
747
|
-
configRef: I,
|
|
748
|
-
rotationPath: [
|
|
749
|
-
"style",
|
|
750
|
-
"layout",
|
|
751
|
-
"cells",
|
|
752
|
-
"columnTotal",
|
|
753
|
-
"value",
|
|
754
|
-
"rotation"
|
|
755
|
-
],
|
|
756
|
-
autoRotatePath: [
|
|
757
|
-
"style",
|
|
758
|
-
"layout",
|
|
759
|
-
"cells",
|
|
760
|
-
"columnTotal",
|
|
761
|
-
"value",
|
|
762
|
-
"autoRotate",
|
|
763
|
-
"enable"
|
|
764
|
-
],
|
|
765
|
-
isAutoSize: !1,
|
|
766
|
-
targetClass: ".vue-ui-heatmap-col-total",
|
|
767
|
-
rotation: I.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
768
|
-
width: Sn,
|
|
769
|
-
height: Cn
|
|
770
|
-
});
|
|
771
|
-
let tr = g(() => {
|
|
772
|
-
let e = I.value.table.useDialog && !I.value.table.show, t = z.value.showTable;
|
|
773
|
-
return {
|
|
774
|
-
component: e ? Ot : ve,
|
|
775
|
-
title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
|
|
776
|
-
props: e ? {
|
|
777
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
778
|
-
color: I.value.table.th.color,
|
|
779
|
-
headerColor: I.value.table.th.color,
|
|
780
|
-
headerBg: I.value.table.th.backgroundColor,
|
|
781
|
-
isFullscreen: Q.value,
|
|
782
|
-
fullscreenParent: N.value,
|
|
783
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
784
|
-
isCursorPointer: rn.value
|
|
785
|
-
} : {
|
|
786
|
-
hideDetails: !0,
|
|
787
|
-
config: {
|
|
788
|
-
open: t,
|
|
789
|
-
maxHeight: 1e4,
|
|
790
|
-
body: {
|
|
791
|
-
backgroundColor: I.value.style.backgroundColor,
|
|
792
|
-
color: I.value.style.color
|
|
793
|
-
},
|
|
794
|
-
head: {
|
|
795
|
-
backgroundColor: I.value.style.backgroundColor,
|
|
796
|
-
color: I.value.style.color
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
});
|
|
802
|
-
ze(() => z.value.showTable, async (e) => {
|
|
803
|
-
I.value.table.show || (e && I.value.table.useDialog && Vt.value ? (await ke(), Vt.value.open()) : "close" in Vt.value && Vt.value.close());
|
|
804
|
-
});
|
|
805
|
-
let { isResponsive: nr } = Se(Rt, yn);
|
|
806
|
-
function rr() {
|
|
807
|
-
z.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
808
|
-
}
|
|
809
|
-
let ir = g(() => I.value.style.backgroundColor), ar = g(() => I.value.style.title), { isCallbackImaging: or, isCallbackSvg: sr, generateSvg: cr, onGenerateImage: lr } = de({
|
|
810
|
-
svg: R,
|
|
811
|
-
title: ar,
|
|
812
|
-
legend: null,
|
|
813
|
-
legendItems: null,
|
|
814
|
-
backgroundColor: ir,
|
|
815
|
-
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
816
|
-
generateImage: _n
|
|
817
|
-
});
|
|
818
|
-
async function ur() {
|
|
819
|
-
if (Mt("copyAlt", {
|
|
820
|
-
config: I.value,
|
|
821
|
-
dataset: X.value
|
|
822
|
-
}), !I.value.userOptions.callbacks.altCopy) {
|
|
823
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
824
|
-
return;
|
|
825
|
-
}
|
|
826
|
-
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
827
|
-
config: I.value,
|
|
828
|
-
dataset: X.value
|
|
829
|
-
}));
|
|
830
|
-
}
|
|
831
|
-
function dr(e, t) {
|
|
832
|
-
let n = X.value[e];
|
|
833
|
-
if (!n) return null;
|
|
834
|
-
let r = n.temperatures[t];
|
|
835
|
-
return r ? {
|
|
836
|
-
cell: r,
|
|
837
|
-
rowIndex: e,
|
|
838
|
-
columnIndex: t
|
|
839
|
-
} : null;
|
|
840
|
-
}
|
|
841
|
-
function fr(e, t) {
|
|
842
|
-
let n = 0;
|
|
843
|
-
for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
|
|
844
|
-
return n + t;
|
|
845
|
-
}
|
|
846
|
-
function pr() {
|
|
847
|
-
F.value = null, $t.value = null, nn.value = !0;
|
|
848
|
-
}
|
|
849
|
-
function mr() {
|
|
850
|
-
Rn(), nn.value = !1;
|
|
851
|
-
}
|
|
852
|
-
function hr(e) {
|
|
853
|
-
if (!R.value || Jn.value || document.activeElement !== R.value || !$.value.length) return;
|
|
854
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
855
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
856
|
-
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
857
|
-
Rn();
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
if (a) {
|
|
861
|
-
if (F.value === null) return;
|
|
862
|
-
let e = $.value[F.value];
|
|
863
|
-
if (!e) return;
|
|
864
|
-
Xn(e.cell, e.rowIndex);
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
let s = F.value === null ? null : $.value[F.value];
|
|
868
|
-
if (!s) {
|
|
869
|
-
let e = It.value ? $.value.findIndex((e) => e.cell.id === It.value) : null;
|
|
870
|
-
if (e !== null && e >= 0 && e < $.value.length) {
|
|
871
|
-
let a = $.value[e];
|
|
872
|
-
if (!a) return;
|
|
873
|
-
let o = a.rowIndex, s = a.columnIndex;
|
|
874
|
-
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
875
|
-
let c = _r.value.rowCount;
|
|
876
|
-
if (c <= 0) return;
|
|
877
|
-
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
878
|
-
let l = X.value[o];
|
|
879
|
-
if (!l || !l.temperatures.length) return;
|
|
880
|
-
let u = l.temperatures.length;
|
|
881
|
-
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
882
|
-
let d = dr(o, s);
|
|
883
|
-
if (!d) return;
|
|
884
|
-
let f = fr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
885
|
-
Bn(d.cell, d.rowIndex, p, m, "keyboard", f);
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
let a = $.value[0];
|
|
889
|
-
if (!a) return;
|
|
890
|
-
let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
|
|
891
|
-
Bn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
892
|
-
return;
|
|
893
|
-
}
|
|
894
|
-
let c = s.rowIndex, l = s.columnIndex;
|
|
895
|
-
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
896
|
-
let u = _r.value.rowCount;
|
|
897
|
-
if (u <= 0) return;
|
|
898
|
-
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
899
|
-
let d = X.value[c];
|
|
900
|
-
if (!d || !d.temperatures.length) return;
|
|
901
|
-
let f = d.temperatures.length;
|
|
902
|
-
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
903
|
-
let p = dr(c, l);
|
|
904
|
-
if (!p) return;
|
|
905
|
-
let m = fr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
906
|
-
Bn(p.cell, p.rowIndex, ee, te, "keyboard", m);
|
|
907
|
-
}
|
|
908
|
-
let gr = g(() => ({
|
|
909
|
-
headers: [I.value.table.colNames.xAxis, ...L.value.map((e) => e.name)],
|
|
910
|
-
rows: Y.value.xLabels.map((e, t) => [e, ...L.value.map((e) => {
|
|
911
|
-
let n = e.values?.[t];
|
|
912
|
-
return isNaN(n) ? "-" : o({
|
|
913
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
914
|
-
v: n,
|
|
915
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
916
|
-
r: I.value.table.td.roundingValue
|
|
917
|
-
});
|
|
918
|
-
})])
|
|
919
|
-
})), _r = g(() => ({
|
|
920
|
-
rowCount: X.value.length,
|
|
921
|
-
columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
|
|
922
|
-
})), $ = g(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
923
|
-
cell: e,
|
|
924
|
-
rowIndex: t,
|
|
925
|
-
columnIndex: n
|
|
926
|
-
}))));
|
|
927
|
-
return he({
|
|
928
|
-
getData: Zn,
|
|
929
|
-
getImage: Qn,
|
|
930
|
-
generatePdf: gn,
|
|
931
|
-
generateCsv: Wn,
|
|
932
|
-
generateImage: _n,
|
|
933
|
-
generateSvg: cr,
|
|
934
|
-
toggleTable: Kn,
|
|
935
|
-
toggleTooltip: qn,
|
|
936
|
-
toggleAnnotator: Yn,
|
|
937
|
-
toggleFullscreen: Gn,
|
|
938
|
-
copyAlt: ur
|
|
939
|
-
}), (t, n) => (w(), v("div", {
|
|
940
|
-
ref_key: "heatmapChart",
|
|
941
|
-
ref: N,
|
|
942
|
-
class: Ae(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
943
|
-
style: C(`font-family:${I.value.style.fontFamily};width:100%;${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.backgroundColor}`),
|
|
944
|
-
id: `heatmap__${M.value}`,
|
|
945
|
-
onMouseenter: n[1] ||= () => fn(!0),
|
|
946
|
-
onMouseleave: n[2] ||= () => {
|
|
947
|
-
fn(!1), nn.value || Rn();
|
|
948
|
-
}
|
|
949
|
-
}, [
|
|
950
|
-
y("div", {
|
|
951
|
-
id: `chart-instructions-${M.value}`,
|
|
952
|
-
class: "sr-only"
|
|
953
|
-
}, [y("p", null, O(I.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
954
|
-
gr.value?.rows?.length ? (w(), we(ye, {
|
|
955
|
-
key: 0,
|
|
956
|
-
uid: M.value,
|
|
957
|
-
head: gr.value.headers,
|
|
958
|
-
body: gr.value.rows,
|
|
959
|
-
notice: I.value.a11y.translations.tableAvailable,
|
|
960
|
-
caption: I.value.a11y.translations.tableCaption
|
|
961
|
-
}, null, 8, [
|
|
962
|
-
"uid",
|
|
963
|
-
"head",
|
|
964
|
-
"body",
|
|
965
|
-
"notice",
|
|
966
|
-
"caption"
|
|
967
|
-
])) : _("", !0),
|
|
968
|
-
I.value.userOptions.buttons.annotator ? (w(), we(k(Tt), {
|
|
969
|
-
key: 1,
|
|
970
|
-
svgRef: k(R),
|
|
971
|
-
backgroundColor: I.value.style.backgroundColor,
|
|
972
|
-
color: I.value.style.color,
|
|
973
|
-
active: Jn.value,
|
|
974
|
-
isCursorPointer: rn.value,
|
|
975
|
-
palette: I.value.userOptions.annotatorPalette,
|
|
976
|
-
onClose: Yn
|
|
977
|
-
}, {
|
|
978
|
-
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
979
|
-
"annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(x({ color: e })), void 0, !0)]),
|
|
980
|
-
"annotator-action-draw": A(({ mode: e }) => [D(t.$slots, "annotator-action-draw", S(x({ mode: e })), void 0, !0)]),
|
|
981
|
-
"annotator-action-undo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-undo", S(x({ disabled: e })), void 0, !0)]),
|
|
982
|
-
"annotator-action-redo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-redo", S(x({ disabled: e })), void 0, !0)]),
|
|
983
|
-
"annotator-action-delete": A(({ disabled: e }) => [D(t.$slots, "annotator-action-delete", S(x({ disabled: e })), void 0, !0)]),
|
|
984
|
-
_: 3
|
|
985
|
-
}, 8, [
|
|
986
|
-
"svgRef",
|
|
987
|
-
"backgroundColor",
|
|
988
|
-
"color",
|
|
989
|
-
"active",
|
|
990
|
-
"isCursorPointer",
|
|
991
|
-
"palette"
|
|
992
|
-
])) : _("", !0),
|
|
993
|
-
vn.value ? (w(), v("div", {
|
|
994
|
-
key: 2,
|
|
995
|
-
ref_key: "noTitle",
|
|
996
|
-
ref: Wt,
|
|
997
|
-
class: "vue-data-ui-no-title-space",
|
|
998
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
999
|
-
}, null, 512)) : _("", !0),
|
|
1000
|
-
I.value.style.title.text ? (w(), v("div", {
|
|
1001
|
-
key: 3,
|
|
1002
|
-
ref_key: "chartTitle",
|
|
1003
|
-
ref: Ut,
|
|
1004
|
-
style: "width:100%;background:transparent"
|
|
1005
|
-
}, [(w(), we(me, {
|
|
1006
|
-
key: `title_${zt.value}`,
|
|
1007
|
-
config: {
|
|
1008
|
-
title: {
|
|
1009
|
-
cy: "heatmap-div-title",
|
|
1010
|
-
...I.value.style.title
|
|
1011
|
-
},
|
|
1012
|
-
subtitle: {
|
|
1013
|
-
cy: "heatmap-div-subtitle",
|
|
1014
|
-
...I.value.style.title.subtitle
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
}, null, 8, ["config"]))], 512)) : _("", !0),
|
|
1018
|
-
I.value.userOptions.show && Nt.value && (k(dn) || k(ln)) ? (w(), we(k(Et), {
|
|
1019
|
-
ref_key: "userOptionsRef",
|
|
1020
|
-
ref: Ht,
|
|
1021
|
-
key: `user_options_${Lt.value}`,
|
|
1022
|
-
backgroundColor: I.value.style.backgroundColor,
|
|
1023
|
-
color: I.value.style.color,
|
|
1024
|
-
isImaging: k(hn),
|
|
1025
|
-
isPrinting: k(mn),
|
|
1026
|
-
uid: M.value,
|
|
1027
|
-
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
|
|
1028
|
-
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1029
|
-
hasImg: I.value.userOptions.buttons.img,
|
|
1030
|
-
hasSvg: I.value.userOptions.buttons.svg,
|
|
1031
|
-
hasXls: I.value.userOptions.buttons.csv,
|
|
1032
|
-
hasTable: I.value.userOptions.buttons.table,
|
|
1033
|
-
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1034
|
-
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1035
|
-
isFullscreen: Q.value,
|
|
1036
|
-
isTooltip: z.value.showTooltip,
|
|
1037
|
-
titles: { ...I.value.userOptions.buttonTitles },
|
|
1038
|
-
chartElement: N.value,
|
|
1039
|
-
position: I.value.userOptions.position,
|
|
1040
|
-
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1041
|
-
isAnnotation: Jn.value,
|
|
1042
|
-
callbacks: I.value.userOptions.callbacks,
|
|
1043
|
-
printScale: I.value.userOptions.print.scale,
|
|
1044
|
-
tableDialog: I.value.table.useDialog,
|
|
1045
|
-
isCursorPointer: rn.value,
|
|
1046
|
-
onToggleFullscreen: Gn,
|
|
1047
|
-
onGeneratePdf: k(gn),
|
|
1048
|
-
onGenerateCsv: Wn,
|
|
1049
|
-
onGenerateImage: k(lr),
|
|
1050
|
-
onGenerateSvg: k(cr),
|
|
1051
|
-
onToggleTable: Kn,
|
|
1052
|
-
onToggleTooltip: qn,
|
|
1053
|
-
onToggleAnnotator: Yn,
|
|
1054
|
-
onCopyAlt: ur,
|
|
1055
|
-
style: C({ visibility: k(dn) ? k(ln) ? "visible" : "hidden" : "visible" })
|
|
1056
|
-
}, Te({ _: 2 }, [
|
|
1057
|
-
t.$slots.menuIcon ? {
|
|
1058
|
-
name: "menuIcon",
|
|
1059
|
-
fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
|
|
1060
|
-
isOpen: e,
|
|
1061
|
-
color: n
|
|
1062
|
-
})), void 0, !0)]),
|
|
1063
|
-
key: "0"
|
|
1064
|
-
} : void 0,
|
|
1065
|
-
t.$slots.optionTooltip ? {
|
|
1066
|
-
name: "optionTooltip",
|
|
1067
|
-
fn: A(() => [D(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1068
|
-
key: "1"
|
|
1069
|
-
} : void 0,
|
|
1070
|
-
t.$slots.optionPdf ? {
|
|
1071
|
-
name: "optionPdf",
|
|
1072
|
-
fn: A(() => [D(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1073
|
-
key: "2"
|
|
1074
|
-
} : void 0,
|
|
1075
|
-
t.$slots.optionCsv ? {
|
|
1076
|
-
name: "optionCsv",
|
|
1077
|
-
fn: A(() => [D(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1078
|
-
key: "3"
|
|
1079
|
-
} : void 0,
|
|
1080
|
-
t.$slots.optionImg ? {
|
|
1081
|
-
name: "optionImg",
|
|
1082
|
-
fn: A(() => [D(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1083
|
-
key: "4"
|
|
1084
|
-
} : void 0,
|
|
1085
|
-
t.$slots.optionSvg ? {
|
|
1086
|
-
name: "optionSvg",
|
|
1087
|
-
fn: A(() => [D(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1088
|
-
key: "5"
|
|
1089
|
-
} : void 0,
|
|
1090
|
-
t.$slots.optionTable ? {
|
|
1091
|
-
name: "optionTable",
|
|
1092
|
-
fn: A(() => [D(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1093
|
-
key: "6"
|
|
1094
|
-
} : void 0,
|
|
1095
|
-
t.$slots.optionFullscreen ? {
|
|
1096
|
-
name: "optionFullscreen",
|
|
1097
|
-
fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [D(t.$slots, "optionFullscreen", S(x({
|
|
1098
|
-
toggleFullscreen: e,
|
|
1099
|
-
isFullscreen: n
|
|
1100
|
-
})), void 0, !0)]),
|
|
1101
|
-
key: "7"
|
|
1102
|
-
} : void 0,
|
|
1103
|
-
t.$slots.optionAnnotator ? {
|
|
1104
|
-
name: "optionAnnotator",
|
|
1105
|
-
fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [D(t.$slots, "optionAnnotator", S(x({
|
|
1106
|
-
toggleAnnotator: e,
|
|
1107
|
-
isAnnotator: n
|
|
1108
|
-
})), void 0, !0)]),
|
|
1109
|
-
key: "8"
|
|
1110
|
-
} : void 0,
|
|
1111
|
-
t.$slots.optionAltCopy ? {
|
|
1112
|
-
name: "optionAltCopy",
|
|
1113
|
-
fn: A(({ altCopy: e }) => [D(t.$slots, "optionAltCopy", S(x({ altCopy: e })), void 0, !0)]),
|
|
1114
|
-
key: "9"
|
|
1115
|
-
} : void 0,
|
|
1116
|
-
t.$slots["custom-menu-before"] ? {
|
|
1117
|
-
name: "custom-menu-before",
|
|
1118
|
-
fn: A(() => [D(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1119
|
-
key: "10"
|
|
1120
|
-
} : void 0,
|
|
1121
|
-
t.$slots["custom-menu-after"] ? {
|
|
1122
|
-
name: "custom-menu-after",
|
|
1123
|
-
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1124
|
-
key: "11"
|
|
1125
|
-
} : void 0
|
|
1126
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : _("", !0),
|
|
1127
|
-
y("div", { class: Ae({
|
|
1128
|
-
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1129
|
-
"vue-ui-heatmap-chart-wrapper-legend-right": I.value.style.legend.show
|
|
1130
|
-
}) }, [
|
|
1131
|
-
(w(), v("svg", {
|
|
1132
|
-
ref_key: "svgRef",
|
|
1133
|
-
ref: R,
|
|
1134
|
-
xmlns: k(ee),
|
|
1135
|
-
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1136
|
-
class: Ae({
|
|
1137
|
-
"vue-data-ui-fullscreen--on": Q.value,
|
|
1138
|
-
"vue-data-ui-fulscreen--off": !Q.value
|
|
1139
|
-
}),
|
|
1140
|
-
viewBox: `0 0 ${H.value.width} ${H.value.height}`,
|
|
1141
|
-
width: "100%",
|
|
1142
|
-
style: C(`overflow: visible; background:transparent;color:${I.value.style.color}`),
|
|
1143
|
-
"aria-live": "polite",
|
|
1144
|
-
role: "img",
|
|
1145
|
-
preserveAspectRatio: "xMidYMid",
|
|
1146
|
-
tabindex: "0",
|
|
1147
|
-
onFocus: pr,
|
|
1148
|
-
onBlur: mr,
|
|
1149
|
-
onKeydown: hr
|
|
1150
|
-
}, [
|
|
1151
|
-
De(k(Dt)),
|
|
1152
|
-
t.$slots["chart-background"] ? (w(), v("foreignObject", {
|
|
1153
|
-
key: 0,
|
|
1154
|
-
x: K.value.left,
|
|
1155
|
-
y: K.value.top,
|
|
1156
|
-
width: K.value.width,
|
|
1157
|
-
height: K.value.height,
|
|
1158
|
-
style: { pointerEvents: "none" }
|
|
1159
|
-
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : _("", !0),
|
|
1160
|
-
I.value.style.layout.cells.columnTotal.color.show ? (w(), v("g", {
|
|
1161
|
-
key: 1,
|
|
1162
|
-
ref_key: "xAxisSumRects",
|
|
1163
|
-
ref: Xt
|
|
1164
|
-
}, [(w(!0), v(h, null, E(Y.value.xTotals, (e, t) => (w(), v("rect", {
|
|
1165
|
-
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1166
|
-
y: K.value.top - K.value.sumCellXHeight + G.value * (H.value.height / H.value.width),
|
|
1167
|
-
height: K.value.sumCellXHeight,
|
|
1168
|
-
width: K.value.cellSize.width - G.value,
|
|
1169
|
-
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1170
|
-
stroke: I.value.style.backgroundColor,
|
|
1171
|
-
"stroke-width": G.value
|
|
1172
|
-
}, null, 8, Ze))), 256)), (w(!0), v(h, null, E(Y.value.xTotals, (e, t) => (w(), v("rect", {
|
|
1173
|
-
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1174
|
-
y: K.value.top - K.value.sumCellXHeight + G.value * (H.value.height / H.value.width),
|
|
1175
|
-
height: K.value.sumCellXHeight,
|
|
1176
|
-
width: K.value.cellSize.width - G.value,
|
|
1177
|
-
fill: e.color,
|
|
1178
|
-
stroke: I.value.style.backgroundColor,
|
|
1179
|
-
"stroke-width": G.value
|
|
1180
|
-
}, null, 8, Qe))), 256))], 512)) : _("", !0),
|
|
1181
|
-
y("g", {
|
|
1182
|
-
ref_key: "datapoints",
|
|
1183
|
-
ref: Bt
|
|
1184
|
-
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [(w(!0), v(h, null, E(e.temperatures, (e, n) => (w(), v("g", null, [
|
|
1185
|
-
y("rect", {
|
|
1186
|
-
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1187
|
-
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1188
|
-
width: K.value.cellSize.width - G.value,
|
|
1189
|
-
height: K.value.cellSize.height - G.value,
|
|
1190
|
-
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1191
|
-
stroke: I.value.style.backgroundColor,
|
|
1192
|
-
"stroke-width": G.value
|
|
1193
|
-
}, null, 8, $e),
|
|
1194
|
-
y("rect", {
|
|
1195
|
-
"data-a11y-cell-id": e.id,
|
|
1196
|
-
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1197
|
-
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1198
|
-
width: K.value.cellSize.width - G.value,
|
|
1199
|
-
height: K.value.cellSize.height - G.value,
|
|
1200
|
-
fill: e.color,
|
|
1201
|
-
stroke: I.value.style.backgroundColor,
|
|
1202
|
-
"stroke-width": G.value,
|
|
1203
|
-
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1204
|
-
onMouseover: (r) => Bn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", fr(t, n)),
|
|
1205
|
-
onMouseout: () => Vn({
|
|
1206
|
-
datapoint: e,
|
|
1207
|
-
seriesIndex: t
|
|
1208
|
-
}),
|
|
1209
|
-
onClick: () => Xn(e, t)
|
|
1210
|
-
}, null, 40, et),
|
|
1211
|
-
I.value.style.layout.cells.value.show ? Ve((w(), v("text", {
|
|
1212
|
-
key: 0,
|
|
1213
|
-
"text-anchor": "middle",
|
|
1214
|
-
"font-size": I.value.style.layout.cells.value.fontSize,
|
|
1215
|
-
"font-weight": I.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1216
|
-
fill: k(m)(e.color),
|
|
1217
|
-
x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1218
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.cells.value.fontSize / 3,
|
|
1219
|
-
style: {
|
|
1220
|
-
pointerEvents: "none",
|
|
1221
|
-
userSelect: "none"
|
|
1222
|
-
}
|
|
1223
|
-
}, [Ee(O(k(u)(I.value.style.layout.cells.value.formatter, e.value, k(o)({
|
|
1224
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1225
|
-
v: e.value,
|
|
1226
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1227
|
-
r: I.value.style.layout.cells.value.roundingValue
|
|
1228
|
-
}), { datapoint: e })), 1)], 8, tt)), [[k(We), {
|
|
1229
|
-
cellWidth: K.value.cellSize.width - G.value,
|
|
1230
|
-
cellHeight: K.value.cellSize.height - G.value,
|
|
1231
|
-
maxFontSize: I.value.style.layout.cells.value.fontSize,
|
|
1232
|
-
minFontSize: 10,
|
|
1233
|
-
index: t * V.value + n,
|
|
1234
|
-
reportHide: In,
|
|
1235
|
-
reportRotation: Nn,
|
|
1236
|
-
hideAll: Fn.value,
|
|
1237
|
-
rotateAll: Mn.value
|
|
1238
|
-
}]]) : _("", !0)
|
|
1239
|
-
]))), 256))], 64))), 256))], 512),
|
|
1240
|
-
I.value.style.layout.cells.rowTotal.color.show ? (w(), v("g", {
|
|
1241
|
-
key: 2,
|
|
1242
|
-
ref_key: "yAxisSumRects",
|
|
1243
|
-
ref: qt
|
|
1244
|
-
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [y("rect", {
|
|
1245
|
-
x: K.value.left,
|
|
1246
|
-
y: K.value.top + K.value.cellSize.height * t,
|
|
1247
|
-
width: K.value.sumCellXHeight,
|
|
1248
|
-
height: K.value.cellSize.height - G.value,
|
|
1249
|
-
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1250
|
-
stroke: I.value.style.backgroundColor,
|
|
1251
|
-
"stroke-width": G.value
|
|
1252
|
-
}, null, 8, nt), y("rect", {
|
|
1253
|
-
x: K.value.left,
|
|
1254
|
-
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1255
|
-
width: K.value.sumCellXHeight,
|
|
1256
|
-
height: K.value.cellSize.height - G.value,
|
|
1257
|
-
fill: Y.value.yTotals[t].color,
|
|
1258
|
-
stroke: I.value.style.backgroundColor,
|
|
1259
|
-
"stroke-width": G.value
|
|
1260
|
-
}, null, 8, rt)], 64))), 256))], 512)) : _("", !0),
|
|
1261
|
-
I.value.style.layout.dataLabels.yAxis.show ? (w(), v("g", {
|
|
1262
|
-
key: 3,
|
|
1263
|
-
ref_key: "yAxisLabels",
|
|
1264
|
-
ref: Kt
|
|
1265
|
-
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [y("text", {
|
|
1266
|
-
class: "vue-ui-heatmap-row-name",
|
|
1267
|
-
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1268
|
-
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1269
|
-
x: W.value,
|
|
1270
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.dataLabels.yAxis.fontSize / 3 + I.value.style.layout.dataLabels.yAxis.offsetY - (I.value.style.layout.cells.rowTotal.value.show ? I.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
1271
|
-
"text-anchor": "end",
|
|
1272
|
-
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1273
|
-
}, O(Y.value.yLabels[t]), 9, it), I.value.style.layout.cells.rowTotal.value.show ? (w(), v("text", {
|
|
1274
|
-
key: 0,
|
|
1275
|
-
class: "vue-ui-heatmap-row-total",
|
|
1276
|
-
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1277
|
-
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1278
|
-
x: W.value,
|
|
1279
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.dataLabels.yAxis.fontSize + I.value.style.layout.dataLabels.yAxis.offsetY,
|
|
1280
|
-
"text-anchor": "end",
|
|
1281
|
-
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1282
|
-
}, O(Hn(t)), 9, at)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1283
|
-
I.value.style.layout.dataLabels.xAxis.show ? (w(), v("g", {
|
|
1284
|
-
key: 4,
|
|
1285
|
-
ref_key: "xAxisLabels",
|
|
1286
|
-
ref: Jt
|
|
1287
|
-
}, [(w(!0), v(h, null, E(Y.value.xLabels, (e, t) => (w(), v(h, null, [!I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && t % I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (w(), v("text", {
|
|
1288
|
-
key: 0,
|
|
1289
|
-
class: "vue-ui-heatmap-col-name",
|
|
1290
|
-
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
1291
|
-
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1292
|
-
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1293
|
-
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1294
|
-
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.style.layout.dataLabels.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1295
|
-
}, O(e), 9, ot)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1296
|
-
I.value.style.layout.cells.columnTotal.value.show ? (w(), v("g", {
|
|
1297
|
-
key: 5,
|
|
1298
|
-
ref_key: "xAxisSums",
|
|
1299
|
-
ref: Yt
|
|
1300
|
-
}, [(w(!0), v(h, null, E(Y.value.xLabels, (e, t) => (w(), v("text", {
|
|
1301
|
-
class: "vue-ui-heatmap-col-total",
|
|
1302
|
-
"text-anchor": I.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : I.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1303
|
-
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1304
|
-
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1305
|
-
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1306
|
-
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.style.layout.dataLabels.xAxis.offsetX + I.value.style.layout.cells.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${I.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1307
|
-
}, O(Un(t)), 9, st))), 256))], 512)) : _("", !0),
|
|
1308
|
-
P.value ? (w(), v("g", ct, [y("rect", {
|
|
1309
|
-
style: { "pointer-events": "none" },
|
|
1310
|
-
x: P.value.x - I.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1311
|
-
y: P.value.y - I.value.style.layout.cells.selected.border / 2 + G.value,
|
|
1312
|
-
width: K.value.cellSize.width - G.value + I.value.style.layout.cells.selected.border - G.value,
|
|
1313
|
-
height: K.value.cellSize.height - G.value + I.value.style.layout.cells.selected.border - G.value,
|
|
1314
|
-
fill: "transparent",
|
|
1315
|
-
stroke: I.value.style.layout.cells.selected.color,
|
|
1316
|
-
"stroke-width": I.value.style.layout.cells.selected.border,
|
|
1317
|
-
rx: 1
|
|
1318
|
-
}, null, 8, lt)])) : _("", !0),
|
|
1319
|
-
I.value.style.layout.crosshairs.show && P.value ? (w(), v("g", ut, [y("line", {
|
|
1320
|
-
x1: K.value.left + K.value.sumCellXHeight,
|
|
1321
|
-
x2: P.value.x + K.value.sumCellXHeight,
|
|
1322
|
-
y1: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1323
|
-
y2: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1324
|
-
stroke: I.value.style.layout.crosshairs.stroke,
|
|
1325
|
-
"stroke-width": I.value.style.layout.crosshairs.strokeWidth,
|
|
1326
|
-
"stroke-dasharray": I.value.style.layout.crosshairs.strokeDasharray,
|
|
1327
|
-
"stroke-linecap": "round"
|
|
1328
|
-
}, null, 8, dt), y("line", {
|
|
1329
|
-
x1: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1330
|
-
x2: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1331
|
-
y1: P.value.y,
|
|
1332
|
-
y2: K.value.top,
|
|
1333
|
-
stroke: I.value.style.layout.crosshairs.stroke,
|
|
1334
|
-
"stroke-width": I.value.style.layout.crosshairs.strokeWidth,
|
|
1335
|
-
"stroke-dasharray": I.value.style.layout.crosshairs.strokeDasharray,
|
|
1336
|
-
"stroke-linecap": "round"
|
|
1337
|
-
}, null, 8, ft)])) : _("", !0),
|
|
1338
|
-
D(t.$slots, "svg", { svg: {
|
|
1339
|
-
...H.value,
|
|
1340
|
-
drawingArea: K.value,
|
|
1341
|
-
isPrintingImg: k(mn) || k(hn) || k(or),
|
|
1342
|
-
isPrintingSvg: k(sr)
|
|
1343
|
-
} }, void 0, !0)
|
|
1344
|
-
], 46, Ye)),
|
|
1345
|
-
I.value.style.legend.show ? (w(), v("div", {
|
|
1346
|
-
key: 0,
|
|
1347
|
-
ref_key: "legendRight",
|
|
1348
|
-
ref: Gt,
|
|
1349
|
-
class: "vue-ui-heatmap-legend-right",
|
|
1350
|
-
style: C({ "--legend-width": I.value.style.legend.width + "px" })
|
|
1351
|
-
}, [
|
|
1352
|
-
k(sn) ? _("", !0) : (w(), v("div", {
|
|
1353
|
-
key: 0,
|
|
1354
|
-
class: "vue-ui-heatmap-legend-label-max",
|
|
1355
|
-
style: C({
|
|
1356
|
-
fontSize: I.value.style.legend.fontSize + "px",
|
|
1357
|
-
color: I.value.style.legend.color
|
|
1358
|
-
})
|
|
1359
|
-
}, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(q.value), k(o)({
|
|
1360
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1361
|
-
v: k(c)(q.value),
|
|
1362
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1363
|
-
r: I.value.style.legend.roundingValue
|
|
1364
|
-
}))), 5)),
|
|
1365
|
-
y("div", pt, [y("div", {
|
|
1366
|
-
class: "vue-ui-heatmap-gauge",
|
|
1367
|
-
style: C({ background: `linear-gradient(to bottom, ${I.value.style.layout.cells.colors.hot}, ${I.value.style.layout.cells.colors.cold})` })
|
|
1368
|
-
}, [Ve(y("div", {
|
|
1369
|
-
class: "vue-ui-heatmap-gauge-indicator",
|
|
1370
|
-
"data-value": k(u)(I.value.style.layout.cells.value.formatter, k(c)(Z.value), k(o)({
|
|
1371
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1372
|
-
v: k(c)(Z.value),
|
|
1373
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1374
|
-
r: I.value.style.legend.roundingValue
|
|
1375
|
-
})),
|
|
1376
|
-
style: C({
|
|
1377
|
-
position: "absolute",
|
|
1378
|
-
width: "100%",
|
|
1379
|
-
height: "2px",
|
|
1380
|
-
background: [void 0, null].includes(Z.value) ? "transparent" : k(m)(Ln.value.datapoint.color),
|
|
1381
|
-
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1382
|
-
transition: "all 0.2s ease-in-out",
|
|
1383
|
-
"--background-color": I.value.style.backgroundColor,
|
|
1384
|
-
"--gauge-arrow-color": k(m)(I.value.style.backgroundColor),
|
|
1385
|
-
"--gauge-arrow-text-color": k(m)(I.value.style.backgroundColor),
|
|
1386
|
-
"--gauge-arrow-value": Z.value,
|
|
1387
|
-
"--gauge-arrow-font-size": I.value.style.legend.fontSize + "px"
|
|
1388
|
-
})
|
|
1389
|
-
}, [y("div", ht, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(Z.value), k(o)({
|
|
1390
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1391
|
-
v: k(c)(Z.value),
|
|
1392
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1393
|
-
r: I.value.style.legend.roundingValue
|
|
1394
|
-
}))), 1)], 12, mt), [[Re, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1395
|
-
k(sn) ? _("", !0) : (w(), v("div", {
|
|
1396
|
-
key: 1,
|
|
1397
|
-
class: "vue-ui-heatmap-legend-label-min",
|
|
1398
|
-
style: C({
|
|
1399
|
-
fontSize: I.value.style.legend.fontSize + "px",
|
|
1400
|
-
color: I.value.style.legend.color
|
|
1401
|
-
})
|
|
1402
|
-
}, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(Tn.value), k(o)({
|
|
1403
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1404
|
-
v: k(c)(Tn.value),
|
|
1405
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1406
|
-
r: I.value.style.legend.roundingValue
|
|
1407
|
-
}))), 5))
|
|
1408
|
-
], 4)) : _("", !0),
|
|
1409
|
-
t.$slots.hint ? (w(), v("div", gt, [D(t.$slots, "hint", S(x({
|
|
1410
|
-
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1411
|
-
isVisible: nn.value
|
|
1412
|
-
})), void 0, !0)])) : _("", !0)
|
|
1413
|
-
], 2),
|
|
1414
|
-
t.$slots.watermark ? (w(), v("div", _t, [D(t.$slots, "watermark", S(x({ isPrinting: k(mn) || k(hn) || k(or) || k(sr) })), void 0, !0)])) : _("", !0),
|
|
1415
|
-
t.$slots.source ? (w(), v("div", {
|
|
1416
|
-
key: 6,
|
|
1417
|
-
ref_key: "source",
|
|
1418
|
-
ref: Zt,
|
|
1419
|
-
dir: "auto"
|
|
1420
|
-
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1421
|
-
De(k(Ke), {
|
|
1422
|
-
teleportTo: I.value.style.tooltip.teleportTo,
|
|
1423
|
-
show: z.value.showTooltip && Pt.value,
|
|
1424
|
-
backgroundColor: I.value.style.tooltip.backgroundColor,
|
|
1425
|
-
color: I.value.style.tooltip.color,
|
|
1426
|
-
borderRadius: I.value.style.tooltip.borderRadius,
|
|
1427
|
-
borderColor: I.value.style.tooltip.borderColor,
|
|
1428
|
-
borderWidth: I.value.style.tooltip.borderWidth,
|
|
1429
|
-
fontSize: I.value.style.tooltip.fontSize,
|
|
1430
|
-
backgroundOpacity: I.value.style.tooltip.backgroundOpacity,
|
|
1431
|
-
position: I.value.style.tooltip.position,
|
|
1432
|
-
offsetX: I.value.style.tooltip.offsetX,
|
|
1433
|
-
offsetY: I.value.style.tooltip.offsetY,
|
|
1434
|
-
parent: N.value,
|
|
1435
|
-
content: Ft.value,
|
|
1436
|
-
isFullscreen: Q.value,
|
|
1437
|
-
isCustom: I.value.style.tooltip.customFormat && typeof I.value.style.tooltip.customFormat == "function",
|
|
1438
|
-
smooth: I.value.style.tooltip.smooth,
|
|
1439
|
-
backdropFilter: I.value.style.tooltip.backdropFilter,
|
|
1440
|
-
smoothForce: I.value.style.tooltip.smoothForce,
|
|
1441
|
-
smoothSnapThreshold: I.value.style.tooltip.smoothSnapThreshold,
|
|
1442
|
-
isA11yMode: tn.value === "keyboard",
|
|
1443
|
-
a11yPosition: en.value
|
|
1444
|
-
}, {
|
|
1445
|
-
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1446
|
-
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1447
|
-
"tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1448
|
-
_: 3
|
|
1449
|
-
}, 8, [
|
|
1450
|
-
"teleportTo",
|
|
1451
|
-
"show",
|
|
1452
|
-
"backgroundColor",
|
|
1453
|
-
"color",
|
|
1454
|
-
"borderRadius",
|
|
1455
|
-
"borderColor",
|
|
1456
|
-
"borderWidth",
|
|
1457
|
-
"fontSize",
|
|
1458
|
-
"backgroundOpacity",
|
|
1459
|
-
"position",
|
|
1460
|
-
"offsetX",
|
|
1461
|
-
"offsetY",
|
|
1462
|
-
"parent",
|
|
1463
|
-
"content",
|
|
1464
|
-
"isFullscreen",
|
|
1465
|
-
"isCustom",
|
|
1466
|
-
"smooth",
|
|
1467
|
-
"backdropFilter",
|
|
1468
|
-
"smoothForce",
|
|
1469
|
-
"smoothSnapThreshold",
|
|
1470
|
-
"isA11yMode",
|
|
1471
|
-
"a11yPosition"
|
|
1472
|
-
]),
|
|
1473
|
-
Nt.value && I.value.userOptions.buttons.table ? (w(), we(Pe(tr.value.component), Oe({ key: 7 }, tr.value.props, {
|
|
1474
|
-
ref_key: "tableUnit",
|
|
1475
|
-
ref: Vt,
|
|
1476
|
-
onClose: rr
|
|
1477
|
-
}), Te({
|
|
1478
|
-
content: A(() => [y("div", {
|
|
1479
|
-
ref_key: "tableContainer",
|
|
1480
|
-
ref: Rt,
|
|
1481
|
-
class: "vue-ui-heatmap-table atom-data-table",
|
|
1482
|
-
style: C(`${I.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1483
|
-
}, [y("div", {
|
|
1484
|
-
style: C(`width:100%;overflow-x:auto;position:relative;${I.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1485
|
-
class: Ae({ "vue-ui-responsive": k(nr) })
|
|
1486
|
-
}, [I.value.table.useDialog ? _("", !0) : (w(), v("div", {
|
|
1487
|
-
key: 0,
|
|
1488
|
-
role: "button",
|
|
1489
|
-
tabindex: "0",
|
|
1490
|
-
style: C(`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:${I.value.table.th.backgroundColor};`),
|
|
1491
|
-
onClick: rr,
|
|
1492
|
-
onKeypress: He(rr, ["enter"])
|
|
1493
|
-
}, [De(k(wt), {
|
|
1494
|
-
name: "close",
|
|
1495
|
-
stroke: I.value.table.th.color,
|
|
1496
|
-
"stroke-width": 2
|
|
1497
|
-
}, null, 8, ["stroke"])], 36)), y("table", vt, [
|
|
1498
|
-
I.value.table.useDialog ? _("", !0) : (w(), v("caption", {
|
|
1499
|
-
key: 0,
|
|
1500
|
-
style: C(`backgroundColor:${I.value.table.th.backgroundColor};color:${I.value.table.th.color};outline:${I.value.table.th.outline}`)
|
|
1501
|
-
}, [Ee(O(I.value.style.title.text) + " ", 1), I.value.style.title.subtitle.text ? (w(), v("span", yt, O(I.value.style.title.subtitle.text), 1)) : _("", !0)], 4)),
|
|
1502
|
-
y("thead", null, [y("tr", {
|
|
1503
|
-
role: "row",
|
|
1504
|
-
style: C(`background:${I.value.table.th.backgroundColor};color:${I.value.table.th.color}`)
|
|
1505
|
-
}, [y("th", { style: C(`outline:${I.value.table.th.outline};padding-right:6px`) }, null, 4), (w(!0), v(h, null, E(e.dataset, (e, t) => (w(), v("th", {
|
|
1506
|
-
align: "right",
|
|
1507
|
-
style: C(`outline:${I.value.table.th.outline};padding-right:6px`)
|
|
1508
|
-
}, O(e.name), 5))), 256))], 4)]),
|
|
1509
|
-
y("tbody", null, [(w(!0), v(h, null, E(Y.value.xLabels, (t, n) => (w(), v("tr", {
|
|
1510
|
-
role: "row",
|
|
1511
|
-
class: Ae({
|
|
1512
|
-
"vue-ui-data-table__tbody__row": !0,
|
|
1513
|
-
"vue-ui-data-table__tbody__row-even": n % 2 == 0,
|
|
1514
|
-
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1515
|
-
}),
|
|
1516
|
-
style: C(`background:${I.value.table.td.backgroundColor};color:${I.value.table.td.color}`)
|
|
1517
|
-
}, [y("td", {
|
|
1518
|
-
"data-cell": I.value.table.colNames.xAxis,
|
|
1519
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1520
|
-
style: C(`outline:${I.value.table.td.outline}`)
|
|
1521
|
-
}, [y("div", xt, O(t), 1)], 12, bt), (w(!0), v(h, null, E(e.dataset, (t, r) => (w(), v("td", {
|
|
1522
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1523
|
-
"data-cell": e.dataset[r].name,
|
|
1524
|
-
style: C(`outline:${I.value.table.td.outline}`)
|
|
1525
|
-
}, [y("div", Ct, O(isNaN(t.values[n]) ? "-" : k(o)({
|
|
1526
|
-
p: I.value.style.layout.dataLabels.prefix,
|
|
1527
|
-
v: t.values[n],
|
|
1528
|
-
s: I.value.style.layout.dataLabels.suffix,
|
|
1529
|
-
r: I.value.table.td.roundingValue
|
|
1530
|
-
})), 1)], 12, St))), 256))], 6))), 256))])
|
|
1531
|
-
])], 6)], 4)]),
|
|
1532
|
-
_: 2
|
|
1533
|
-
}, [I.value.table.useDialog ? {
|
|
1534
|
-
name: "title",
|
|
1535
|
-
fn: A(() => [Ee(O(tr.value.title), 1)]),
|
|
1536
|
-
key: "0"
|
|
1537
|
-
} : void 0, I.value.table.useDialog ? {
|
|
1538
|
-
name: "actions",
|
|
1539
|
-
fn: A(() => [y("button", {
|
|
1540
|
-
tabindex: "0",
|
|
1541
|
-
class: "vue-ui-user-options-button",
|
|
1542
|
-
onClick: n[0] ||= (e) => Wn(I.value.userOptions.callbacks.csv),
|
|
1543
|
-
style: C({ cursor: rn.value ? "pointer" : "default" })
|
|
1544
|
-
}, [De(k(wt), {
|
|
1545
|
-
name: "fileCsv",
|
|
1546
|
-
stroke: tr.value.props.color
|
|
1547
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1548
|
-
key: "1"
|
|
1549
|
-
} : void 0]), 1040)) : _("", !0),
|
|
1550
|
-
D(t.$slots, "skeleton", {}, () => [k(sn) ? (w(), we(ce, { key: 0 })) : _("", !0)], !0)
|
|
1551
|
-
], 46, qe));
|
|
1552
|
-
}
|
|
1553
|
-
}, [["__scopeId", "data-v-483e0cb9"]]);
|
|
1554
|
-
//#endregion
|
|
1555
|
-
export { Ke as n, wt as t };
|