vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -0,0 +1,1606 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, Et as r, Rt as i, X as a, at as o, b as s, et as c, ft as l, i as u, nt as d, r as f, rn as p, t as ee, tn as te, vt as ne, wt as re } from "./lib-DOpaUOQx.js";
|
|
3
|
+
import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as oe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as se } from "./useConfig-C2uy4ltq.js";
|
|
6
|
+
import { t as ce } from "./usePrinter-BBBooAGP.js";
|
|
7
|
+
import { n as le, t as ue } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
+
import { t as de } from "./useNestedProp-Bux0f4iY.js";
|
|
9
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as pe } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
+
import { t as me } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as he } from "./img-W50sC9SC.js";
|
|
13
|
+
import { n as ge } from "./Title-DeqmC-vN.js";
|
|
14
|
+
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as be } from "./vue-ui-accordion-yHZMJLaY.js";
|
|
17
|
+
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as we } from "./useTableResponsive-BAqJPR68.js";
|
|
21
|
+
import { t as Te } from "./vue_ui_heatmap-B2BBBSWG.js";
|
|
22
|
+
import { Fragment as m, computed as h, createBlock as Ee, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as y, mergeProps as je, nextTick as Me, normalizeClass as Ne, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Pe, onMounted as Fe, openBlock as S, reactive as Ie, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as E, toRefs as ze, unref as D, useCssVars as Be, vShow as Ve, watch as He, watchEffect as Ue, withCtx as O, withDirectives as We, withKeys as Ge } from "vue";
|
|
23
|
+
//#region src/useLabelObserverEfffect.js
|
|
24
|
+
function Ke({ 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
|
+
Ue((t) => {
|
|
42
|
+
let n = e.value;
|
|
43
|
+
if (!n) return;
|
|
44
|
+
let r = !1;
|
|
45
|
+
(async () => {
|
|
46
|
+
await Me();
|
|
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 qe = {
|
|
93
|
+
mounted(e, t) {
|
|
94
|
+
Je(e, t.value);
|
|
95
|
+
},
|
|
96
|
+
updated(e, t) {
|
|
97
|
+
Je(e, t.value);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
function Je(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 Ye = /* @__PURE__ */ e({ default: () => Dt }), Xe = ["id"], Ze = ["id"], Qe = [
|
|
126
|
+
"xmlns",
|
|
127
|
+
"aria-describedby",
|
|
128
|
+
"viewBox"
|
|
129
|
+
], $e = [
|
|
130
|
+
"x",
|
|
131
|
+
"y",
|
|
132
|
+
"width",
|
|
133
|
+
"height"
|
|
134
|
+
], et = [
|
|
135
|
+
"x",
|
|
136
|
+
"y",
|
|
137
|
+
"height",
|
|
138
|
+
"width",
|
|
139
|
+
"fill",
|
|
140
|
+
"stroke",
|
|
141
|
+
"stroke-width"
|
|
142
|
+
], tt = [
|
|
143
|
+
"x",
|
|
144
|
+
"y",
|
|
145
|
+
"height",
|
|
146
|
+
"width",
|
|
147
|
+
"fill",
|
|
148
|
+
"stroke",
|
|
149
|
+
"stroke-width"
|
|
150
|
+
], nt = [
|
|
151
|
+
"x",
|
|
152
|
+
"y",
|
|
153
|
+
"width",
|
|
154
|
+
"height",
|
|
155
|
+
"fill",
|
|
156
|
+
"stroke",
|
|
157
|
+
"stroke-width"
|
|
158
|
+
], rt = [
|
|
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
|
+
], it = [
|
|
172
|
+
"font-size",
|
|
173
|
+
"font-weight",
|
|
174
|
+
"fill",
|
|
175
|
+
"x",
|
|
176
|
+
"y"
|
|
177
|
+
], at = [
|
|
178
|
+
"x",
|
|
179
|
+
"y",
|
|
180
|
+
"width",
|
|
181
|
+
"height",
|
|
182
|
+
"fill",
|
|
183
|
+
"stroke",
|
|
184
|
+
"stroke-width"
|
|
185
|
+
], ot = [
|
|
186
|
+
"x",
|
|
187
|
+
"y",
|
|
188
|
+
"width",
|
|
189
|
+
"height",
|
|
190
|
+
"fill",
|
|
191
|
+
"stroke",
|
|
192
|
+
"stroke-width"
|
|
193
|
+
], st = [
|
|
194
|
+
"font-size",
|
|
195
|
+
"fill",
|
|
196
|
+
"x",
|
|
197
|
+
"y",
|
|
198
|
+
"font-weight"
|
|
199
|
+
], ct = [
|
|
200
|
+
"font-size",
|
|
201
|
+
"fill",
|
|
202
|
+
"x",
|
|
203
|
+
"y",
|
|
204
|
+
"font-weight"
|
|
205
|
+
], lt = [
|
|
206
|
+
"text-anchor",
|
|
207
|
+
"font-size",
|
|
208
|
+
"fill",
|
|
209
|
+
"font-weight",
|
|
210
|
+
"transform"
|
|
211
|
+
], ut = [
|
|
212
|
+
"text-anchor",
|
|
213
|
+
"font-size",
|
|
214
|
+
"fill",
|
|
215
|
+
"font-weight",
|
|
216
|
+
"transform"
|
|
217
|
+
], dt = { key: 6 }, ft = [
|
|
218
|
+
"x",
|
|
219
|
+
"y",
|
|
220
|
+
"width",
|
|
221
|
+
"height",
|
|
222
|
+
"stroke",
|
|
223
|
+
"stroke-width"
|
|
224
|
+
], pt = { key: 7 }, mt = [
|
|
225
|
+
"x1",
|
|
226
|
+
"x2",
|
|
227
|
+
"y1",
|
|
228
|
+
"y2",
|
|
229
|
+
"stroke",
|
|
230
|
+
"stroke-width",
|
|
231
|
+
"stroke-dasharray"
|
|
232
|
+
], ht = [
|
|
233
|
+
"x1",
|
|
234
|
+
"x2",
|
|
235
|
+
"y1",
|
|
236
|
+
"y2",
|
|
237
|
+
"stroke",
|
|
238
|
+
"stroke-width",
|
|
239
|
+
"stroke-dasharray"
|
|
240
|
+
], gt = { class: "vue-ui-heatmap-legend-gauge-right" }, _t = ["data-value"], vt = { class: "vue-ui-heatmap-gauge-indicator-value" }, yt = {
|
|
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
|
+
}, bt = {
|
|
251
|
+
key: 5,
|
|
252
|
+
class: "vue-data-ui-watermark"
|
|
253
|
+
}, xt = { class: "vue-ui-data-table" }, St = { key: 0 }, Ct = ["data-cell"], wt = { style: {
|
|
254
|
+
display: "flex",
|
|
255
|
+
"align-items": "center",
|
|
256
|
+
gap: "5px",
|
|
257
|
+
"justify-content": "flex-end",
|
|
258
|
+
width: "100%",
|
|
259
|
+
"padding-right": "3px"
|
|
260
|
+
} }, Tt = ["data-cell"], Et = { style: {
|
|
261
|
+
display: "flex",
|
|
262
|
+
"align-items": "center",
|
|
263
|
+
gap: "5px",
|
|
264
|
+
"justify-content": "flex-end",
|
|
265
|
+
width: "100%",
|
|
266
|
+
"padding-right": "3px"
|
|
267
|
+
} }, Dt = /*#__PURE__*/ _e({
|
|
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: _e, emit: Je }) {
|
|
285
|
+
Be((e) => ({ v22af540c: e.tdo }));
|
|
286
|
+
let Ye = Ae(() => import("./Tooltip-DZ4a3XJQ.js")), Dt = Ae(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), Ot = Ae(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), kt = Ae(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), At = Ae(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), jt = Ae(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_heatmap: Mt } = se(), { isThemeValid: Nt, warnInvalidTheme: Pt } = fe(), k = e, Ft = Je, It = h({
|
|
287
|
+
get() {
|
|
288
|
+
return !!k.dataset && k.dataset.length;
|
|
289
|
+
},
|
|
290
|
+
set(e) {
|
|
291
|
+
return e;
|
|
292
|
+
}
|
|
293
|
+
}), Lt = C(a()), A = C(null), Rt = C(!1), zt = C(""), Bt = C(void 0), j = C(null), Vt = C(0), Ht = C(null), Ut = C(0), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = Re(null), M = C(null), rn = C(null), an = C({
|
|
294
|
+
x: 0,
|
|
295
|
+
y: 0
|
|
296
|
+
}), on = C("pointer"), sn = C(!1), N = C(_n()), P = h(() => N.value.style.layout.cells), F = h(() => N.value.style.layout.dataLabels), I = h(() => N.value.style.layout);
|
|
297
|
+
ie({
|
|
298
|
+
config: () => N.value,
|
|
299
|
+
dataset: () => k.dataset,
|
|
300
|
+
component: "VueUiHeatmap",
|
|
301
|
+
rules: [ae.emptyArray, ae.noHint]
|
|
302
|
+
});
|
|
303
|
+
let cn = h(() => N.value.userOptions.useCursorPointer);
|
|
304
|
+
function ln() {
|
|
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 un = h(() => te({
|
|
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: N.value.skeletonConfig ?? {}
|
|
340
|
+
})), { loading: dn, FINAL_DATASET: L, manualLoading: fn } = le({
|
|
341
|
+
...ze(k),
|
|
342
|
+
FINAL_CONFIG: N,
|
|
343
|
+
prepareConfig: _n,
|
|
344
|
+
callback: () => {
|
|
345
|
+
Promise.resolve().then(async () => {
|
|
346
|
+
await Me(), A.value && p(A.value, {
|
|
347
|
+
delta: .1,
|
|
348
|
+
delay: 250
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
},
|
|
352
|
+
skeletonDataset: k.config?.skeletonDataset ?? ln(),
|
|
353
|
+
skeletonConfig: te({
|
|
354
|
+
defaultConfig: N.value,
|
|
355
|
+
userConfig: un.value
|
|
356
|
+
})
|
|
357
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Se({ config: N.value }), { svgRef: R } = Ce({ config: N.value.style.title });
|
|
358
|
+
function gn(e) {
|
|
359
|
+
mn(e);
|
|
360
|
+
}
|
|
361
|
+
function _n() {
|
|
362
|
+
let e = de({
|
|
363
|
+
userConfig: k.config,
|
|
364
|
+
defaultConfig: Mt
|
|
365
|
+
}), t = {}, n = e.theme;
|
|
366
|
+
if (n) {
|
|
367
|
+
if (!Nt.value(e)) Pt(e), t = e;
|
|
368
|
+
else {
|
|
369
|
+
let r = de({
|
|
370
|
+
userConfig: Te[n] || k.config,
|
|
371
|
+
defaultConfig: e
|
|
372
|
+
});
|
|
373
|
+
t = { ...de({
|
|
374
|
+
userConfig: k.config,
|
|
375
|
+
defaultConfig: r
|
|
376
|
+
}) };
|
|
377
|
+
}
|
|
378
|
+
} else t = e;
|
|
379
|
+
return t;
|
|
380
|
+
}
|
|
381
|
+
function vn(e) {
|
|
382
|
+
let t = c(e);
|
|
383
|
+
return t?.style && delete t.style.tooltip, JSON.stringify(t);
|
|
384
|
+
}
|
|
385
|
+
let yn = vn(k.config);
|
|
386
|
+
He(() => k.config, (e, t) => {
|
|
387
|
+
let n = vn(e), r = n !== yn;
|
|
388
|
+
yn = n;
|
|
389
|
+
let i = _n();
|
|
390
|
+
if (!r) {
|
|
391
|
+
N.value.style.tooltip = i.style.tooltip, z.value.showTooltip = N.value.style.tooltip.show;
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
dn.value || (N.value = i), pn.value = !N.value.userOptions.showOnChartHover, Dn(), Ut.value += 1, z.value.showTable = N.value.table.show, z.value.showTooltip = N.value.style.tooltip.show, On.value = I.value.width, kn.value = I.value.height;
|
|
395
|
+
}, { deep: !0 }), He(() => k.dataset, (e) => {
|
|
396
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !1), Dn();
|
|
397
|
+
}, { deep: !0 });
|
|
398
|
+
let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = ce({
|
|
399
|
+
elementId: `heatmap__${Lt.value}`,
|
|
400
|
+
fileName: N.value.style.title.text || "vue-ui-heatmap",
|
|
401
|
+
options: N.value.userOptions.print
|
|
402
|
+
}), wn = h(() => N.value.userOptions.show && !N.value.style.title.text), z = C({
|
|
403
|
+
showTable: N.value.table.show,
|
|
404
|
+
showTooltip: N.value.style.tooltip.show
|
|
405
|
+
});
|
|
406
|
+
He(N, () => {
|
|
407
|
+
z.value = {
|
|
408
|
+
showTable: N.value.table.show,
|
|
409
|
+
showTooltip: N.value.style.tooltip.show
|
|
410
|
+
};
|
|
411
|
+
}, { immediate: !0 });
|
|
412
|
+
let Tn = h(() => N.value.table.responsiveBreakpoint), B = C(null), En = h(() => N.value.debug);
|
|
413
|
+
function Dn() {
|
|
414
|
+
if (i(k.dataset) && (o({
|
|
415
|
+
componentName: "VueUiHeatmap",
|
|
416
|
+
type: "dataset",
|
|
417
|
+
debug: En.value
|
|
418
|
+
}), It.value = !1, fn.value = !0), i(k.dataset) || (fn.value = N.value.loading), N.value.responsive) {
|
|
419
|
+
let e = ve(() => {
|
|
420
|
+
let { width: e, height: t } = ye({
|
|
421
|
+
chart: A.value,
|
|
422
|
+
title: N.value.style.title.text ? qt.value : null,
|
|
423
|
+
source: tn.value,
|
|
424
|
+
noTitle: Jt.value
|
|
425
|
+
});
|
|
426
|
+
requestAnimationFrame(() => {
|
|
427
|
+
On.value = e, kn.value = t;
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
B.value && (nn.value && B.value.unobserve(nn.value), B.value.disconnect()), B.value = new ResizeObserver(e), nn.value = A.value.parentNode, B.value.observe(nn.value);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
Pe(() => {
|
|
434
|
+
B.value && (nn.value && B.value.unobserve(nn.value), B.value.disconnect());
|
|
435
|
+
}), Fe(() => {
|
|
436
|
+
Dn();
|
|
437
|
+
});
|
|
438
|
+
let V = h(() => Math.max(...L.value.flatMap((e) => (e.values || []).length))), On = C(I.value.width), kn = C(I.value.height), H = h(() => ({
|
|
439
|
+
width: Math.max(10, On.value),
|
|
440
|
+
height: Math.max(10, kn.value)
|
|
441
|
+
})), An = C(0);
|
|
442
|
+
Ke({
|
|
443
|
+
elementRef: Qt,
|
|
444
|
+
callback: ve((e) => {
|
|
445
|
+
e !== An.value && (An.value = e);
|
|
446
|
+
}, 100),
|
|
447
|
+
attr: "height"
|
|
448
|
+
});
|
|
449
|
+
let U = C(0);
|
|
450
|
+
Ke({
|
|
451
|
+
elementRef: Xt,
|
|
452
|
+
callback: ve((e) => {
|
|
453
|
+
e !== U.value && (U.value = e);
|
|
454
|
+
}, 100),
|
|
455
|
+
attr: "width"
|
|
456
|
+
});
|
|
457
|
+
let jn = C(0);
|
|
458
|
+
Ke({
|
|
459
|
+
elementRef: $t,
|
|
460
|
+
callback: ve((e) => {
|
|
461
|
+
e !== jn.value && (jn.value = e);
|
|
462
|
+
}, 100),
|
|
463
|
+
attr: "height"
|
|
464
|
+
}), Pe(() => {
|
|
465
|
+
An.value = 0, U.value = 0, jn.value = 0;
|
|
466
|
+
});
|
|
467
|
+
let W = h(() => Math.min(H.value.height, H.value.width) / 1e3 * P.value.spacing), G = h(() => {
|
|
468
|
+
let e = 0;
|
|
469
|
+
N.value.style.legend.show && (e = N.value.style.legend.width);
|
|
470
|
+
let t = I.value.padding, n = F.value.xAxis.fontSize / 3, r = F.value.xAxis.fontSize / 2, i = H.value.height - t.top - t.bottom - An.value - n, a = H.value.width / 60, o = {
|
|
471
|
+
x: W.value * V.value,
|
|
472
|
+
y: W.value * ((L.value || []).length + 1)
|
|
473
|
+
}, s = H.value.width - t.left - t.right - o.x - a * 2 - 2 - e - U.value, c = i - a - o.y - jn.value - r - P.value.columnTotal.value.offsetY, l = {
|
|
474
|
+
width: Math.max(3, s / V.value),
|
|
475
|
+
height: Math.max(3, c / (L.value.length ?? 1))
|
|
476
|
+
};
|
|
477
|
+
return {
|
|
478
|
+
top: t.top + An.value + a + n,
|
|
479
|
+
topLabelsHeight: An.value,
|
|
480
|
+
sumCellXHeight: a,
|
|
481
|
+
height: c,
|
|
482
|
+
left: t.left + U.value + a / 2,
|
|
483
|
+
right: t.right - e,
|
|
484
|
+
bottom: H.value.height - t.bottom - jn.value,
|
|
485
|
+
width: s,
|
|
486
|
+
cellSize: l
|
|
487
|
+
};
|
|
488
|
+
}), Mn = h(() => Math.max(...L.value.flatMap((e) => e.values))), Nn = h(() => Math.min(...L.value.flatMap((e) => e.values))), K = h(() => P.value.scaleMax === null ? Mn.value : P.value.scaleMax), q = h(() => P.value.scaleMin === null ? Nn.value : P.value.scaleMin), J = h(() => {
|
|
489
|
+
let e = L.value.flatMap((e) => e.values);
|
|
490
|
+
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
491
|
+
}), Pn = C([]), Fn = C([]), In = 0;
|
|
492
|
+
Ue(() => {
|
|
493
|
+
let e = ++In;
|
|
494
|
+
(async () => {
|
|
495
|
+
let t = F.value.yAxis, n = await oe({
|
|
496
|
+
values: t.values.length ? t.values : L.value.map((e) => e.name),
|
|
497
|
+
maxDatapoints: L.value.length,
|
|
498
|
+
formatter: t.datetimeFormatter,
|
|
499
|
+
start: 0,
|
|
500
|
+
end: L.value.length
|
|
501
|
+
});
|
|
502
|
+
e === In && (Pn.value = n);
|
|
503
|
+
})();
|
|
504
|
+
});
|
|
505
|
+
let Ln = 0;
|
|
506
|
+
Ue(() => {
|
|
507
|
+
let e = ++Ln;
|
|
508
|
+
(async () => {
|
|
509
|
+
let t = F.value.xAxis, n = await oe({
|
|
510
|
+
values: t.values,
|
|
511
|
+
maxDatapoints: V.value,
|
|
512
|
+
formatter: t.datetimeFormatter,
|
|
513
|
+
start: 0,
|
|
514
|
+
end: V.value
|
|
515
|
+
});
|
|
516
|
+
e === Ln && (Fn.value = n);
|
|
517
|
+
})();
|
|
518
|
+
});
|
|
519
|
+
function Y(e, t, n) {
|
|
520
|
+
if (t === n) return P.value.colors.hot;
|
|
521
|
+
let r = Math.min(Math.max(e, t), n);
|
|
522
|
+
return re(P.value.colors.cold, P.value.colors.hot, t, n, r);
|
|
523
|
+
}
|
|
524
|
+
function Rn(e) {
|
|
525
|
+
if ([void 0, null].includes(e)) return 0;
|
|
526
|
+
let t = q.value, n = K.value;
|
|
527
|
+
if (t === n) return 0;
|
|
528
|
+
let r = (e - t) / (n - t);
|
|
529
|
+
return (1 - Math.min(Math.max(r, 0), 1)) * 100;
|
|
530
|
+
}
|
|
531
|
+
let X = h(() => {
|
|
532
|
+
let e = Pn.value.map((e) => e.text), t = Fn.value.map((e) => e.text), n = P.value.scaleMin !== null || P.value.scaleMax !== null, r = L.value.map((e) => e.values.reduce((e, t) => e + t, 0)), i = L.value.map((e) => Math.max(1, e.values.length)), a = Math.max(...r), o = Math.min(...r), s = [], c = [];
|
|
533
|
+
for (let e = 0; e < V.value; e += 1) {
|
|
534
|
+
let t = 0, n = 0;
|
|
535
|
+
L.value.forEach((r) => {
|
|
536
|
+
e < r.values.length && (t += r.values[e] || 0, n += 1);
|
|
537
|
+
}), s.push(t), c.push(Math.max(1, n));
|
|
538
|
+
}
|
|
539
|
+
let l = Math.max(...s), u = Math.min(...s);
|
|
540
|
+
return {
|
|
541
|
+
yTotals: r.map((e, t) => {
|
|
542
|
+
let r = isNaN(e / a) ? 0 : e / a, s = i[t], c = q.value * s, l = K.value * s;
|
|
543
|
+
return {
|
|
544
|
+
total: e,
|
|
545
|
+
proportion: r,
|
|
546
|
+
color: n ? Y(e, c, l) : Y(e, o, a)
|
|
547
|
+
};
|
|
548
|
+
}),
|
|
549
|
+
xTotals: s.map((e, t) => {
|
|
550
|
+
let r = isNaN(e / l) ? 0 : e / l, i = c[t], a = q.value * i, o = K.value * i;
|
|
551
|
+
return {
|
|
552
|
+
total: e,
|
|
553
|
+
proportion: r,
|
|
554
|
+
color: n ? Y(e, a, o) : Y(e, u, l)
|
|
555
|
+
};
|
|
556
|
+
}),
|
|
557
|
+
yLabels: e,
|
|
558
|
+
xLabels: t.slice(0, V.value)
|
|
559
|
+
};
|
|
560
|
+
}), Z = h(() => (L.value.forEach((e, t) => {
|
|
561
|
+
ne({
|
|
562
|
+
datasetObject: e,
|
|
563
|
+
requiredAttributes: ["values"]
|
|
564
|
+
}).forEach((e) => {
|
|
565
|
+
o({
|
|
566
|
+
componentName: "VueUiHeatmap",
|
|
567
|
+
type: "datasetSerieAttribute",
|
|
568
|
+
property: "values",
|
|
569
|
+
index: t,
|
|
570
|
+
debug: En.value
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
}), L.value.map((e, t) => ({
|
|
574
|
+
...e,
|
|
575
|
+
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
576
|
+
side: "up",
|
|
577
|
+
color: Y(e, q.value, K.value),
|
|
578
|
+
ratio: Math.abs(Math.abs(e - J.value) / Math.abs(Mn.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(e - J.value) / Math.abs(Mn.value - J.value)),
|
|
579
|
+
value: e,
|
|
580
|
+
yAxisName: X.value.yLabels[t],
|
|
581
|
+
xAxisName: X.value.xLabels[n],
|
|
582
|
+
id: `vue-data-ui-heatmap-cell-${a()}`
|
|
583
|
+
} : {
|
|
584
|
+
side: "down",
|
|
585
|
+
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
586
|
+
color: Y(e, q.value, K.value),
|
|
587
|
+
value: e,
|
|
588
|
+
yAxisName: X.value.yLabels[t],
|
|
589
|
+
xAxisName: X.value.xLabels[n],
|
|
590
|
+
id: `vue-data-ui-heatmap-cell-${a()}`
|
|
591
|
+
})
|
|
592
|
+
})))), zn = h(() => Z.value.flatMap((e, t) => e.temperatures.map((e, n) => {
|
|
593
|
+
let r = G.value.left + G.value.cellSize.width * n, i = G.value.top + G.value.cellSize.height * t;
|
|
594
|
+
return {
|
|
595
|
+
datapoint: e,
|
|
596
|
+
rowIndex: t,
|
|
597
|
+
columnIndex: n,
|
|
598
|
+
x: r + W.value / 2 + G.value.sumCellXHeight,
|
|
599
|
+
y: i + W.value / 2,
|
|
600
|
+
width: G.value.cellSize.width - W.value,
|
|
601
|
+
height: G.value.cellSize.height - W.value,
|
|
602
|
+
labelX: r + G.value.cellSize.width / 2 + G.value.sumCellXHeight,
|
|
603
|
+
labelY: i + G.value.cellSize.height / 2 + P.value.value.fontSize / 3,
|
|
604
|
+
selectionX: r,
|
|
605
|
+
selectionY: i
|
|
606
|
+
};
|
|
607
|
+
}))), Bn = h(() => L.value.length), Vn = Ie(Array(Bn.value * V.value || 1).fill(!1)), Hn = h(() => Vn.some((e) => e));
|
|
608
|
+
function Un(e, t) {
|
|
609
|
+
Vn[e] = t;
|
|
610
|
+
}
|
|
611
|
+
let Wn = Ie(Array(Bn.value * V.value || 1).fill(!1)), Gn = h(() => Wn.some((e) => e));
|
|
612
|
+
function Kn(e, t) {
|
|
613
|
+
Wn[e] = t;
|
|
614
|
+
}
|
|
615
|
+
let Q = C(null), qn = C(null);
|
|
616
|
+
function Jn() {
|
|
617
|
+
Rt.value = !1, Bt.value = void 0, Q.value = null, j.value = null, M.value = null, rn.value = null;
|
|
618
|
+
}
|
|
619
|
+
function Yn(e) {
|
|
620
|
+
if (!R.value || !e) return;
|
|
621
|
+
let t = R.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
622
|
+
if (!t) return;
|
|
623
|
+
let n = t.getBoundingClientRect();
|
|
624
|
+
an.value = {
|
|
625
|
+
x: n.left + n.width / 2,
|
|
626
|
+
y: n.top + n.height / 2
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
function Xn(e, n, i, a, o = "pointer", s = null) {
|
|
630
|
+
if (N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
631
|
+
datapoint: e,
|
|
632
|
+
seriesIndex: n
|
|
633
|
+
}), !z.value.showTooltip) return;
|
|
634
|
+
on.value = o, M.value = s, rn.value = e.id, j.value = {
|
|
635
|
+
x: i,
|
|
636
|
+
y: a
|
|
637
|
+
};
|
|
638
|
+
let { value: c, yAxisName: d, xAxisName: f, id: p } = e;
|
|
639
|
+
Bt.value = p, Q.value = c, qn.value = {
|
|
640
|
+
datapoint: e,
|
|
641
|
+
seriesIndex: n,
|
|
642
|
+
series: Z.value,
|
|
643
|
+
config: N.value
|
|
644
|
+
}, Rt.value = !0;
|
|
645
|
+
let ee = "", te = N.value.style.tooltip.customFormat;
|
|
646
|
+
r(te) && l(() => te({
|
|
647
|
+
datapoint: e,
|
|
648
|
+
seriesIndex: n,
|
|
649
|
+
series: Z.value,
|
|
650
|
+
config: N.value
|
|
651
|
+
})) ? zt.value = te({
|
|
652
|
+
datapoint: e,
|
|
653
|
+
seriesIndex: n,
|
|
654
|
+
series: Z.value,
|
|
655
|
+
config: N.value
|
|
656
|
+
}) : (ee += `<div>${d} ${f ? d ? ` - ${f}` : `${f}` : ""}</div>`, ee += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${N.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${Y(c, q.value, K.value)}">⬤</span><span>${isNaN(c) ? "-" : u(P.value.value.formatter, c, t({
|
|
657
|
+
p: F.value.prefix,
|
|
658
|
+
v: c,
|
|
659
|
+
s: F.value.suffix,
|
|
660
|
+
r: N.value.style.tooltip.roundingValue
|
|
661
|
+
}), {
|
|
662
|
+
datapoint: e,
|
|
663
|
+
seriesIndex: n
|
|
664
|
+
})}</span></div>`, zt.value = `<div style="font-size:${N.value.style.tooltip.fontSize}px">${ee}</div>`), o === "keyboard" && Me(() => {
|
|
665
|
+
Yn(e.id);
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
function Zn({ datapoint: e, seriesIndex: t }) {
|
|
669
|
+
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
670
|
+
datapoint: e,
|
|
671
|
+
seriesIndex: t
|
|
672
|
+
}), (rn.value !== e.id || on.value !== "keyboard") && (Rt.value = !1, Bt.value = void 0, Q.value = null, j.value = null);
|
|
673
|
+
}
|
|
674
|
+
function Qn(e) {
|
|
675
|
+
return u(P.value.value.formatter, X.value.yTotals[e].total, t({
|
|
676
|
+
p: F.value.prefix,
|
|
677
|
+
v: X.value.yTotals[e].total,
|
|
678
|
+
s: F.value.suffix,
|
|
679
|
+
r: P.value.value.roundingValue
|
|
680
|
+
}), {
|
|
681
|
+
datapoint: X.value.yTotals[e],
|
|
682
|
+
rowIndex: e
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
function $n(e) {
|
|
686
|
+
return u(P.value.value.formatter, X.value.xTotals[e].total, t({
|
|
687
|
+
p: F.value.prefix,
|
|
688
|
+
v: X.value.xTotals[e].total,
|
|
689
|
+
s: F.value.suffix,
|
|
690
|
+
r: P.value.value.roundingValue
|
|
691
|
+
}), {
|
|
692
|
+
datapoint: X.value.xTotals[e],
|
|
693
|
+
colIndex: e
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
h(() => ({
|
|
697
|
+
head: L.value.map((e) => ({ name: e.name })),
|
|
698
|
+
body: L.value.map((e) => e.values)
|
|
699
|
+
}));
|
|
700
|
+
function er(e = null) {
|
|
701
|
+
Me(() => {
|
|
702
|
+
let t = ["", ...L.value.map((e, t) => e.name)], r = [];
|
|
703
|
+
for (let e = 0; e < X.value.xLabels.length; e += 1) {
|
|
704
|
+
let t = [X.value.xLabels[e]];
|
|
705
|
+
for (let n = 0; n < L.value.length; n += 1) t.push([L.value[n].values[e]]);
|
|
706
|
+
r.push(t);
|
|
707
|
+
}
|
|
708
|
+
let i = [
|
|
709
|
+
[N.value.style.title.text],
|
|
710
|
+
[N.value.style.title.subtitle.text],
|
|
711
|
+
[
|
|
712
|
+
[""],
|
|
713
|
+
[""],
|
|
714
|
+
[""]
|
|
715
|
+
],
|
|
716
|
+
t
|
|
717
|
+
].concat(r), a = n(i);
|
|
718
|
+
e ? e(a) : d({
|
|
719
|
+
csvContent: a,
|
|
720
|
+
title: N.value.style.title.text || "vue-ui-heatmap"
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
let $ = C(!1);
|
|
725
|
+
function tr(e) {
|
|
726
|
+
$.value = e, Vt.value += 1;
|
|
727
|
+
}
|
|
728
|
+
function nr() {
|
|
729
|
+
z.value.showTable = !z.value.showTable;
|
|
730
|
+
}
|
|
731
|
+
function rr() {
|
|
732
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
733
|
+
}
|
|
734
|
+
let ir = C(!1);
|
|
735
|
+
function ar() {
|
|
736
|
+
ir.value = !ir.value;
|
|
737
|
+
}
|
|
738
|
+
function or(e, t) {
|
|
739
|
+
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
740
|
+
datapoint: e,
|
|
741
|
+
seriesIndex: t
|
|
742
|
+
}), Ft("selectDatapoint", e);
|
|
743
|
+
}
|
|
744
|
+
function sr() {
|
|
745
|
+
return Z.value;
|
|
746
|
+
}
|
|
747
|
+
async function cr({ scale: e = 2 } = {}) {
|
|
748
|
+
if (!A.value) return;
|
|
749
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
750
|
+
domElement: A.value,
|
|
751
|
+
base64: !0,
|
|
752
|
+
img: !0,
|
|
753
|
+
scale: e
|
|
754
|
+
});
|
|
755
|
+
return {
|
|
756
|
+
imageUri: i,
|
|
757
|
+
base64: a,
|
|
758
|
+
title: N.value.style.title.text,
|
|
759
|
+
width: t,
|
|
760
|
+
height: n,
|
|
761
|
+
aspectRatio: r
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
let lr = h(() => ({
|
|
765
|
+
start: 0,
|
|
766
|
+
end: V.value
|
|
767
|
+
})), ur = h(() => X.value.xLabels);
|
|
768
|
+
me({
|
|
769
|
+
timeLabelsEls: Qt,
|
|
770
|
+
timeLabels: ur,
|
|
771
|
+
slicer: lr,
|
|
772
|
+
configRef: N,
|
|
773
|
+
rotationPath: [
|
|
774
|
+
"style",
|
|
775
|
+
"layout",
|
|
776
|
+
"dataLabels",
|
|
777
|
+
"xAxis",
|
|
778
|
+
"rotation"
|
|
779
|
+
],
|
|
780
|
+
autoRotatePath: [
|
|
781
|
+
"style",
|
|
782
|
+
"layout",
|
|
783
|
+
"dataLabels",
|
|
784
|
+
"xAxis",
|
|
785
|
+
"autoRotate",
|
|
786
|
+
"enable"
|
|
787
|
+
],
|
|
788
|
+
isAutoSize: !1,
|
|
789
|
+
targetClass: ".vue-ui-heatmap-col-name",
|
|
790
|
+
rotation: F.value.xAxis.autoRotate.angle,
|
|
791
|
+
width: On,
|
|
792
|
+
height: kn
|
|
793
|
+
}), me({
|
|
794
|
+
timeLabelsEls: $t,
|
|
795
|
+
timeLabels: ur,
|
|
796
|
+
slicer: lr,
|
|
797
|
+
configRef: N,
|
|
798
|
+
rotationPath: [
|
|
799
|
+
"style",
|
|
800
|
+
"layout",
|
|
801
|
+
"cells",
|
|
802
|
+
"columnTotal",
|
|
803
|
+
"value",
|
|
804
|
+
"rotation"
|
|
805
|
+
],
|
|
806
|
+
autoRotatePath: [
|
|
807
|
+
"style",
|
|
808
|
+
"layout",
|
|
809
|
+
"cells",
|
|
810
|
+
"columnTotal",
|
|
811
|
+
"value",
|
|
812
|
+
"autoRotate",
|
|
813
|
+
"enable"
|
|
814
|
+
],
|
|
815
|
+
isAutoSize: !1,
|
|
816
|
+
targetClass: ".vue-ui-heatmap-col-total",
|
|
817
|
+
rotation: P.value.columnTotal.value.autoRotate.angle,
|
|
818
|
+
width: On,
|
|
819
|
+
height: kn
|
|
820
|
+
});
|
|
821
|
+
let dr = h(() => {
|
|
822
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = z.value.showTable;
|
|
823
|
+
return {
|
|
824
|
+
component: e ? jt : be,
|
|
825
|
+
title: `${N.value.style.title.text}${N.value.style.title.subtitle.text ? `: ${N.value.style.title.subtitle.text}` : ""}`,
|
|
826
|
+
props: e ? {
|
|
827
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
828
|
+
color: N.value.table.th.color,
|
|
829
|
+
headerColor: N.value.table.th.color,
|
|
830
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
831
|
+
isFullscreen: $.value,
|
|
832
|
+
fullscreenParent: A.value,
|
|
833
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
834
|
+
isCursorPointer: cn.value
|
|
835
|
+
} : {
|
|
836
|
+
hideDetails: !0,
|
|
837
|
+
config: {
|
|
838
|
+
open: t,
|
|
839
|
+
maxHeight: 1e4,
|
|
840
|
+
body: {
|
|
841
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
842
|
+
color: N.value.style.color
|
|
843
|
+
},
|
|
844
|
+
head: {
|
|
845
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
846
|
+
color: N.value.style.color
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
});
|
|
852
|
+
He(() => z.value.showTable, async (e) => {
|
|
853
|
+
N.value.table.show || (e && N.value.table.useDialog && Gt.value ? (await Me(), Gt.value.open()) : "close" in Gt.value && Gt.value.close());
|
|
854
|
+
});
|
|
855
|
+
let { isResponsive: fr } = we(Ht, Tn);
|
|
856
|
+
function pr() {
|
|
857
|
+
z.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
|
|
858
|
+
}
|
|
859
|
+
let mr = h(() => N.value.style.backgroundColor), hr = h(() => N.value.style.title), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = pe({
|
|
860
|
+
svg: R,
|
|
861
|
+
title: hr,
|
|
862
|
+
legend: null,
|
|
863
|
+
legendItems: null,
|
|
864
|
+
backgroundColor: mr,
|
|
865
|
+
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
866
|
+
generateImage: Cn
|
|
867
|
+
});
|
|
868
|
+
async function br() {
|
|
869
|
+
if (Ft("copyAlt", {
|
|
870
|
+
config: N.value,
|
|
871
|
+
dataset: Z.value
|
|
872
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
873
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
874
|
+
return;
|
|
875
|
+
}
|
|
876
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
877
|
+
config: N.value,
|
|
878
|
+
dataset: Z.value
|
|
879
|
+
}));
|
|
880
|
+
}
|
|
881
|
+
function xr(e, t) {
|
|
882
|
+
let n = Z.value[e];
|
|
883
|
+
if (!n) return null;
|
|
884
|
+
let r = n.temperatures[t];
|
|
885
|
+
return r ? {
|
|
886
|
+
cell: r,
|
|
887
|
+
rowIndex: e,
|
|
888
|
+
columnIndex: t
|
|
889
|
+
} : null;
|
|
890
|
+
}
|
|
891
|
+
function Sr(e, t) {
|
|
892
|
+
let n = 0;
|
|
893
|
+
for (let t = 0; t < e; t += 1) n += Z.value[t]?.temperatures?.length || 0;
|
|
894
|
+
return n + t;
|
|
895
|
+
}
|
|
896
|
+
function Cr() {
|
|
897
|
+
M.value = null, rn.value = null, sn.value = !0;
|
|
898
|
+
}
|
|
899
|
+
function wr() {
|
|
900
|
+
Jn(), sn.value = !1;
|
|
901
|
+
}
|
|
902
|
+
function Tr(e) {
|
|
903
|
+
if (!R.value || ir.value || document.activeElement !== R.value || !Or.value.length) return;
|
|
904
|
+
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";
|
|
905
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
906
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
907
|
+
Jn();
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
if (a) {
|
|
911
|
+
if (M.value === null) return;
|
|
912
|
+
let e = Or.value[M.value];
|
|
913
|
+
if (!e) return;
|
|
914
|
+
or(e.cell, e.rowIndex);
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
let s = M.value === null ? null : Or.value[M.value];
|
|
918
|
+
if (!s) {
|
|
919
|
+
let e = Bt.value ? Or.value.findIndex((e) => e.cell.id === Bt.value) : null;
|
|
920
|
+
if (e !== null && e >= 0 && e < Or.value.length) {
|
|
921
|
+
let a = Or.value[e];
|
|
922
|
+
if (!a) return;
|
|
923
|
+
let o = a.rowIndex, s = a.columnIndex;
|
|
924
|
+
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
925
|
+
let c = Dr.value.rowCount;
|
|
926
|
+
if (c <= 0) return;
|
|
927
|
+
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
928
|
+
let l = Z.value[o];
|
|
929
|
+
if (!l || !l.temperatures.length) return;
|
|
930
|
+
let u = l.temperatures.length;
|
|
931
|
+
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
932
|
+
let d = xr(o, s);
|
|
933
|
+
if (!d) return;
|
|
934
|
+
let f = Sr(o, s), p = G.value.left + G.value.cellSize.width * d.columnIndex, ee = G.value.top + G.value.cellSize.height * d.rowIndex;
|
|
935
|
+
Xn(d.cell, d.rowIndex, p, ee, "keyboard", f);
|
|
936
|
+
return;
|
|
937
|
+
}
|
|
938
|
+
let a = Or.value[0];
|
|
939
|
+
if (!a) return;
|
|
940
|
+
let o = G.value.left + G.value.cellSize.width * a.columnIndex, s = G.value.top + G.value.cellSize.height * a.rowIndex;
|
|
941
|
+
Xn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
let c = s.rowIndex, l = s.columnIndex;
|
|
945
|
+
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
946
|
+
let u = Dr.value.rowCount;
|
|
947
|
+
if (u <= 0) return;
|
|
948
|
+
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
949
|
+
let d = Z.value[c];
|
|
950
|
+
if (!d || !d.temperatures.length) return;
|
|
951
|
+
let f = d.temperatures.length;
|
|
952
|
+
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
953
|
+
let p = xr(c, l);
|
|
954
|
+
if (!p) return;
|
|
955
|
+
let ee = Sr(c, l), te = G.value.left + G.value.cellSize.width * p.columnIndex, ne = G.value.top + G.value.cellSize.height * p.rowIndex;
|
|
956
|
+
Xn(p.cell, p.rowIndex, te, ne, "keyboard", ee);
|
|
957
|
+
}
|
|
958
|
+
let Er = h(() => ({
|
|
959
|
+
headers: [N.value.table.colNames.xAxis, ...L.value.map((e) => e.name)],
|
|
960
|
+
rows: X.value.xLabels.map((e, n) => [e, ...L.value.map((e) => {
|
|
961
|
+
let r = e.values?.[n];
|
|
962
|
+
return isNaN(r) ? "-" : t({
|
|
963
|
+
p: F.value.prefix,
|
|
964
|
+
v: r,
|
|
965
|
+
s: F.value.suffix,
|
|
966
|
+
r: N.value.table.td.roundingValue
|
|
967
|
+
});
|
|
968
|
+
})])
|
|
969
|
+
})), Dr = h(() => ({
|
|
970
|
+
rowCount: Z.value.length,
|
|
971
|
+
columnCount: Math.max(0, ...Z.value.map((e) => e.temperatures.length))
|
|
972
|
+
})), Or = h(() => Z.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
973
|
+
cell: e,
|
|
974
|
+
rowIndex: t,
|
|
975
|
+
columnIndex: n
|
|
976
|
+
}))));
|
|
977
|
+
return _e({
|
|
978
|
+
getData: sr,
|
|
979
|
+
getImage: cr,
|
|
980
|
+
generatePdf: Sn,
|
|
981
|
+
generateCsv: er,
|
|
982
|
+
generateImage: Cn,
|
|
983
|
+
generateSvg: vr,
|
|
984
|
+
toggleTable: nr,
|
|
985
|
+
toggleTooltip: rr,
|
|
986
|
+
toggleAnnotator: ar,
|
|
987
|
+
toggleFullscreen: tr,
|
|
988
|
+
copyAlt: br
|
|
989
|
+
}), (n, r) => (S(), _("div", {
|
|
990
|
+
ref_key: "heatmapChart",
|
|
991
|
+
ref: A,
|
|
992
|
+
class: Ne(`vue-data-ui-component vue-ui-heatmap ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
993
|
+
style: x(`font-family:${N.value.style.fontFamily};width:100%;${N.value.responsive ? "height: 100%;" : ""} text-align:center;background:${N.value.style.backgroundColor}`),
|
|
994
|
+
id: `heatmap__${Lt.value}`,
|
|
995
|
+
onMouseenter: r[1] ||= () => gn(!0),
|
|
996
|
+
onMouseleave: r[2] ||= () => {
|
|
997
|
+
gn(!1), sn.value || Jn();
|
|
998
|
+
}
|
|
999
|
+
}, [
|
|
1000
|
+
v("div", {
|
|
1001
|
+
id: `chart-instructions-${Lt.value}`,
|
|
1002
|
+
class: "sr-only"
|
|
1003
|
+
}, [v("p", null, E(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1004
|
+
Er.value?.rows?.length ? (S(), Ee(xe, {
|
|
1005
|
+
key: 0,
|
|
1006
|
+
uid: Lt.value,
|
|
1007
|
+
head: Er.value.headers,
|
|
1008
|
+
body: Er.value.rows,
|
|
1009
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
1010
|
+
caption: N.value.a11y.translations.tableCaption
|
|
1011
|
+
}, null, 8, [
|
|
1012
|
+
"uid",
|
|
1013
|
+
"head",
|
|
1014
|
+
"body",
|
|
1015
|
+
"notice",
|
|
1016
|
+
"caption"
|
|
1017
|
+
])) : g("", !0),
|
|
1018
|
+
N.value.userOptions.buttons.annotator ? (S(), Ee(D(Ot), {
|
|
1019
|
+
key: 1,
|
|
1020
|
+
svgRef: D(R),
|
|
1021
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
1022
|
+
color: N.value.style.color,
|
|
1023
|
+
active: ir.value,
|
|
1024
|
+
isCursorPointer: cn.value,
|
|
1025
|
+
palette: N.value.userOptions.annotatorPalette,
|
|
1026
|
+
onClose: ar
|
|
1027
|
+
}, {
|
|
1028
|
+
"annotator-action-close": O(() => [T(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1029
|
+
"annotator-action-color": O(({ color: e }) => [T(n.$slots, "annotator-action-color", b(y({ color: e })), void 0, !0)]),
|
|
1030
|
+
"annotator-action-draw": O(({ mode: e }) => [T(n.$slots, "annotator-action-draw", b(y({ mode: e })), void 0, !0)]),
|
|
1031
|
+
"annotator-action-undo": O(({ disabled: e }) => [T(n.$slots, "annotator-action-undo", b(y({ disabled: e })), void 0, !0)]),
|
|
1032
|
+
"annotator-action-redo": O(({ disabled: e }) => [T(n.$slots, "annotator-action-redo", b(y({ disabled: e })), void 0, !0)]),
|
|
1033
|
+
"annotator-action-delete": O(({ disabled: e }) => [T(n.$slots, "annotator-action-delete", b(y({ disabled: e })), void 0, !0)]),
|
|
1034
|
+
_: 3
|
|
1035
|
+
}, 8, [
|
|
1036
|
+
"svgRef",
|
|
1037
|
+
"backgroundColor",
|
|
1038
|
+
"color",
|
|
1039
|
+
"active",
|
|
1040
|
+
"isCursorPointer",
|
|
1041
|
+
"palette"
|
|
1042
|
+
])) : g("", !0),
|
|
1043
|
+
wn.value ? (S(), _("div", {
|
|
1044
|
+
key: 2,
|
|
1045
|
+
ref_key: "noTitle",
|
|
1046
|
+
ref: Jt,
|
|
1047
|
+
class: "vue-data-ui-no-title-space",
|
|
1048
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1049
|
+
}, null, 512)) : g("", !0),
|
|
1050
|
+
N.value.style.title.text ? (S(), _("div", {
|
|
1051
|
+
key: 3,
|
|
1052
|
+
ref_key: "chartTitle",
|
|
1053
|
+
ref: qt,
|
|
1054
|
+
style: "width:100%;background:transparent"
|
|
1055
|
+
}, [(S(), Ee(ge, {
|
|
1056
|
+
key: `title_${Ut.value}`,
|
|
1057
|
+
config: {
|
|
1058
|
+
title: {
|
|
1059
|
+
cy: "heatmap-div-title",
|
|
1060
|
+
...N.value.style.title
|
|
1061
|
+
},
|
|
1062
|
+
subtitle: {
|
|
1063
|
+
cy: "heatmap-div-subtitle",
|
|
1064
|
+
...N.value.style.title.subtitle
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1068
|
+
N.value.userOptions.show && It.value && (D(hn) || D(pn)) ? (S(), Ee(D(kt), {
|
|
1069
|
+
ref_key: "userOptionsRef",
|
|
1070
|
+
ref: Kt,
|
|
1071
|
+
key: `user_options_${Vt.value}`,
|
|
1072
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
1073
|
+
color: N.value.style.color,
|
|
1074
|
+
isImaging: D(xn),
|
|
1075
|
+
isPrinting: D(bn),
|
|
1076
|
+
uid: Lt.value,
|
|
1077
|
+
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.tooltip.show,
|
|
1078
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1079
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
1080
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
1081
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
1082
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
1083
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1084
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1085
|
+
isFullscreen: $.value,
|
|
1086
|
+
isTooltip: z.value.showTooltip,
|
|
1087
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
1088
|
+
chartElement: A.value,
|
|
1089
|
+
position: N.value.userOptions.position,
|
|
1090
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1091
|
+
isAnnotation: ir.value,
|
|
1092
|
+
callbacks: N.value.userOptions.callbacks,
|
|
1093
|
+
printScale: N.value.userOptions.print.scale,
|
|
1094
|
+
tableDialog: N.value.table.useDialog,
|
|
1095
|
+
isCursorPointer: cn.value,
|
|
1096
|
+
onToggleFullscreen: tr,
|
|
1097
|
+
onGeneratePdf: D(Sn),
|
|
1098
|
+
onGenerateCsv: er,
|
|
1099
|
+
onGenerateImage: D(yr),
|
|
1100
|
+
onGenerateSvg: D(vr),
|
|
1101
|
+
onToggleTable: nr,
|
|
1102
|
+
onToggleTooltip: rr,
|
|
1103
|
+
onToggleAnnotator: ar,
|
|
1104
|
+
onCopyAlt: br,
|
|
1105
|
+
style: x({ visibility: D(hn) ? D(pn) ? "visible" : "hidden" : "visible" })
|
|
1106
|
+
}, De({ _: 2 }, [
|
|
1107
|
+
n.$slots.menuIcon ? {
|
|
1108
|
+
name: "menuIcon",
|
|
1109
|
+
fn: O(({ isOpen: e, color: t }) => [T(n.$slots, "menuIcon", b(y({
|
|
1110
|
+
isOpen: e,
|
|
1111
|
+
color: t
|
|
1112
|
+
})), void 0, !0)]),
|
|
1113
|
+
key: "0"
|
|
1114
|
+
} : void 0,
|
|
1115
|
+
n.$slots.optionTooltip ? {
|
|
1116
|
+
name: "optionTooltip",
|
|
1117
|
+
fn: O(() => [T(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1118
|
+
key: "1"
|
|
1119
|
+
} : void 0,
|
|
1120
|
+
n.$slots.optionPdf ? {
|
|
1121
|
+
name: "optionPdf",
|
|
1122
|
+
fn: O(() => [T(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1123
|
+
key: "2"
|
|
1124
|
+
} : void 0,
|
|
1125
|
+
n.$slots.optionCsv ? {
|
|
1126
|
+
name: "optionCsv",
|
|
1127
|
+
fn: O(() => [T(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1128
|
+
key: "3"
|
|
1129
|
+
} : void 0,
|
|
1130
|
+
n.$slots.optionImg ? {
|
|
1131
|
+
name: "optionImg",
|
|
1132
|
+
fn: O(() => [T(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1133
|
+
key: "4"
|
|
1134
|
+
} : void 0,
|
|
1135
|
+
n.$slots.optionSvg ? {
|
|
1136
|
+
name: "optionSvg",
|
|
1137
|
+
fn: O(() => [T(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1138
|
+
key: "5"
|
|
1139
|
+
} : void 0,
|
|
1140
|
+
n.$slots.optionTable ? {
|
|
1141
|
+
name: "optionTable",
|
|
1142
|
+
fn: O(() => [T(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1143
|
+
key: "6"
|
|
1144
|
+
} : void 0,
|
|
1145
|
+
n.$slots.optionFullscreen ? {
|
|
1146
|
+
name: "optionFullscreen",
|
|
1147
|
+
fn: O(({ toggleFullscreen: e, isFullscreen: t }) => [T(n.$slots, "optionFullscreen", b(y({
|
|
1148
|
+
toggleFullscreen: e,
|
|
1149
|
+
isFullscreen: t
|
|
1150
|
+
})), void 0, !0)]),
|
|
1151
|
+
key: "7"
|
|
1152
|
+
} : void 0,
|
|
1153
|
+
n.$slots.optionAnnotator ? {
|
|
1154
|
+
name: "optionAnnotator",
|
|
1155
|
+
fn: O(({ toggleAnnotator: e, isAnnotator: t }) => [T(n.$slots, "optionAnnotator", b(y({
|
|
1156
|
+
toggleAnnotator: e,
|
|
1157
|
+
isAnnotator: t
|
|
1158
|
+
})), void 0, !0)]),
|
|
1159
|
+
key: "8"
|
|
1160
|
+
} : void 0,
|
|
1161
|
+
n.$slots.optionAltCopy ? {
|
|
1162
|
+
name: "optionAltCopy",
|
|
1163
|
+
fn: O(({ altCopy: e }) => [T(n.$slots, "optionAltCopy", b(y({ altCopy: e })), void 0, !0)]),
|
|
1164
|
+
key: "9"
|
|
1165
|
+
} : void 0,
|
|
1166
|
+
n.$slots["custom-menu-before"] ? {
|
|
1167
|
+
name: "custom-menu-before",
|
|
1168
|
+
fn: O(() => [T(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1169
|
+
key: "10"
|
|
1170
|
+
} : void 0,
|
|
1171
|
+
n.$slots["custom-menu-after"] ? {
|
|
1172
|
+
name: "custom-menu-after",
|
|
1173
|
+
fn: O(() => [T(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1174
|
+
key: "11"
|
|
1175
|
+
} : void 0
|
|
1176
|
+
]), 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("."))) : g("", !0),
|
|
1177
|
+
v("div", { class: Ne({
|
|
1178
|
+
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1179
|
+
"vue-ui-heatmap-chart-wrapper-legend-right": N.value.style.legend.show
|
|
1180
|
+
}) }, [
|
|
1181
|
+
(S(), _("svg", {
|
|
1182
|
+
ref_key: "svgRef",
|
|
1183
|
+
ref: R,
|
|
1184
|
+
xmlns: D(ee),
|
|
1185
|
+
"aria-describedby": `chart-instructions-${Lt.value}`,
|
|
1186
|
+
class: Ne({
|
|
1187
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1188
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1189
|
+
}),
|
|
1190
|
+
viewBox: `0 0 ${H.value.width} ${H.value.height}`,
|
|
1191
|
+
width: "100%",
|
|
1192
|
+
style: x(`overflow: visible; background:transparent;color:${N.value.style.color}`),
|
|
1193
|
+
"aria-live": "polite",
|
|
1194
|
+
role: "img",
|
|
1195
|
+
preserveAspectRatio: "xMidYMid",
|
|
1196
|
+
tabindex: "0",
|
|
1197
|
+
onFocus: Cr,
|
|
1198
|
+
onBlur: wr,
|
|
1199
|
+
onKeydown: Tr
|
|
1200
|
+
}, [
|
|
1201
|
+
ke(D(At)),
|
|
1202
|
+
n.$slots["chart-background"] ? (S(), _("foreignObject", {
|
|
1203
|
+
key: 0,
|
|
1204
|
+
x: G.value.left,
|
|
1205
|
+
y: G.value.top,
|
|
1206
|
+
width: G.value.width,
|
|
1207
|
+
height: G.value.height,
|
|
1208
|
+
style: { pointerEvents: "none" }
|
|
1209
|
+
}, [T(n.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : g("", !0),
|
|
1210
|
+
P.value.columnTotal.color.show ? (S(), _("g", {
|
|
1211
|
+
key: 1,
|
|
1212
|
+
ref_key: "xAxisSumRects",
|
|
1213
|
+
ref: en
|
|
1214
|
+
}, [(S(!0), _(m, null, w(X.value.xTotals, (e, t) => (S(), _("rect", {
|
|
1215
|
+
x: G.value.left + G.value.cellSize.width * t + W.value / 2 + G.value.sumCellXHeight,
|
|
1216
|
+
y: G.value.top - G.value.sumCellXHeight + W.value * (H.value.height / H.value.width),
|
|
1217
|
+
height: G.value.sumCellXHeight,
|
|
1218
|
+
width: G.value.cellSize.width - W.value,
|
|
1219
|
+
fill: P.value.colors.underlayer,
|
|
1220
|
+
stroke: N.value.style.backgroundColor,
|
|
1221
|
+
"stroke-width": W.value
|
|
1222
|
+
}, null, 8, et))), 256)), (S(!0), _(m, null, w(X.value.xTotals, (e, t) => (S(), _("rect", {
|
|
1223
|
+
x: G.value.left + G.value.cellSize.width * t + W.value / 2 + G.value.sumCellXHeight,
|
|
1224
|
+
y: G.value.top - G.value.sumCellXHeight + W.value * (H.value.height / H.value.width),
|
|
1225
|
+
height: G.value.sumCellXHeight,
|
|
1226
|
+
width: G.value.cellSize.width - W.value,
|
|
1227
|
+
fill: e.color,
|
|
1228
|
+
stroke: N.value.style.backgroundColor,
|
|
1229
|
+
"stroke-width": W.value
|
|
1230
|
+
}, null, 8, tt))), 256))], 512)) : g("", !0),
|
|
1231
|
+
v("g", {
|
|
1232
|
+
ref_key: "datapoints",
|
|
1233
|
+
ref: Wt
|
|
1234
|
+
}, [(S(!0), _(m, null, w(zn.value, (e) => (S(), _("g", null, [
|
|
1235
|
+
v("rect", {
|
|
1236
|
+
x: e.x,
|
|
1237
|
+
y: e.y,
|
|
1238
|
+
width: e.width,
|
|
1239
|
+
height: e.height,
|
|
1240
|
+
fill: P.value.colors.underlayer,
|
|
1241
|
+
stroke: N.value.style.backgroundColor,
|
|
1242
|
+
"stroke-width": W.value
|
|
1243
|
+
}, null, 8, nt),
|
|
1244
|
+
v("rect", {
|
|
1245
|
+
"data-a11y-cell-id": e.datapoint.id,
|
|
1246
|
+
x: e.x,
|
|
1247
|
+
y: e.y,
|
|
1248
|
+
width: e.width,
|
|
1249
|
+
height: e.height,
|
|
1250
|
+
fill: e.datapoint.color,
|
|
1251
|
+
stroke: N.value.style.backgroundColor,
|
|
1252
|
+
"stroke-width": W.value,
|
|
1253
|
+
"aria-label": `${e.datapoint.yAxisName}${e.datapoint.xAxisName ? ` - ${e.datapoint.xAxisName}` : ""}: ${isNaN(e.datapoint.value) ? "-" : e.datapoint.value}`,
|
|
1254
|
+
onMouseover: (t) => Xn(e.datapoint, e.rowIndex, e.selectionX, e.selectionY, "pointer", Sr(e.rowIndex, e.columnIndex)),
|
|
1255
|
+
onMouseout: () => Zn({
|
|
1256
|
+
datapoint: e.datapoint,
|
|
1257
|
+
seriesIndex: e.rowIndex
|
|
1258
|
+
}),
|
|
1259
|
+
onClick: () => or(e.datapoint, e.rowIndex)
|
|
1260
|
+
}, null, 40, rt),
|
|
1261
|
+
P.value.value.show ? We((S(), _("text", {
|
|
1262
|
+
key: 0,
|
|
1263
|
+
"text-anchor": "middle",
|
|
1264
|
+
"font-size": P.value.value.fontSize,
|
|
1265
|
+
"font-weight": P.value.value.bold ? "bold" : "normal",
|
|
1266
|
+
fill: D(f)(e.datapoint.color),
|
|
1267
|
+
x: e.labelX,
|
|
1268
|
+
y: e.labelY,
|
|
1269
|
+
style: {
|
|
1270
|
+
pointerEvents: "none",
|
|
1271
|
+
userSelect: "none"
|
|
1272
|
+
}
|
|
1273
|
+
}, [Oe(E(D(u)(P.value.value.formatter, e.datapoint.value, D(t)({
|
|
1274
|
+
p: F.value.prefix,
|
|
1275
|
+
v: e.datapoint.value,
|
|
1276
|
+
s: F.value.suffix,
|
|
1277
|
+
r: P.value.value.roundingValue
|
|
1278
|
+
}), { datapoint: e.datapoint })), 1)], 8, it)), [[D(qe), {
|
|
1279
|
+
cellWidth: e.width,
|
|
1280
|
+
cellHeight: e.height,
|
|
1281
|
+
maxFontSize: P.value.value.fontSize,
|
|
1282
|
+
minFontSize: 10,
|
|
1283
|
+
index: e.rowIndex * V.value + e.columnIndex,
|
|
1284
|
+
reportHide: Kn,
|
|
1285
|
+
reportRotation: Un,
|
|
1286
|
+
hideAll: Gn.value,
|
|
1287
|
+
rotateAll: Hn.value
|
|
1288
|
+
}]]) : g("", !0)
|
|
1289
|
+
]))), 256))], 512),
|
|
1290
|
+
P.value.rowTotal.color.show ? (S(), _("g", {
|
|
1291
|
+
key: 2,
|
|
1292
|
+
ref_key: "yAxisSumRects",
|
|
1293
|
+
ref: Zt
|
|
1294
|
+
}, [(S(!0), _(m, null, w(Z.value, (e, t) => (S(), _(m, null, [v("rect", {
|
|
1295
|
+
x: G.value.left,
|
|
1296
|
+
y: G.value.top + G.value.cellSize.height * t,
|
|
1297
|
+
width: G.value.sumCellXHeight,
|
|
1298
|
+
height: G.value.cellSize.height - W.value,
|
|
1299
|
+
fill: P.value.colors.underlayer,
|
|
1300
|
+
stroke: N.value.style.backgroundColor,
|
|
1301
|
+
"stroke-width": W.value
|
|
1302
|
+
}, null, 8, at), v("rect", {
|
|
1303
|
+
x: G.value.left,
|
|
1304
|
+
y: G.value.top + G.value.cellSize.height * t + W.value / 2,
|
|
1305
|
+
width: G.value.sumCellXHeight,
|
|
1306
|
+
height: G.value.cellSize.height - W.value,
|
|
1307
|
+
fill: X.value.yTotals[t].color,
|
|
1308
|
+
stroke: N.value.style.backgroundColor,
|
|
1309
|
+
"stroke-width": W.value
|
|
1310
|
+
}, null, 8, ot)], 64))), 256))], 512)) : g("", !0),
|
|
1311
|
+
F.value.yAxis.show ? (S(), _("g", {
|
|
1312
|
+
key: 3,
|
|
1313
|
+
ref_key: "yAxisLabels",
|
|
1314
|
+
ref: Xt
|
|
1315
|
+
}, [(S(!0), _(m, null, w(Z.value, (e, t) => (S(), _(m, null, [v("text", {
|
|
1316
|
+
class: "vue-ui-heatmap-row-name",
|
|
1317
|
+
"font-size": F.value.yAxis.fontSize,
|
|
1318
|
+
fill: F.value.yAxis.color,
|
|
1319
|
+
x: U.value,
|
|
1320
|
+
y: G.value.top + G.value.cellSize.height * t + G.value.cellSize.height / 2 + F.value.yAxis.fontSize / 3 + F.value.yAxis.offsetY - (P.value.rowTotal.value.show ? F.value.yAxis.fontSize / 1.5 : 0),
|
|
1321
|
+
"text-anchor": "end",
|
|
1322
|
+
"font-weight": F.value.yAxis.bold ? "bold" : "normal"
|
|
1323
|
+
}, E(X.value.yLabels[t]), 9, st), P.value.rowTotal.value.show ? (S(), _("text", {
|
|
1324
|
+
key: 0,
|
|
1325
|
+
class: "vue-ui-heatmap-row-total",
|
|
1326
|
+
"font-size": F.value.yAxis.fontSize,
|
|
1327
|
+
fill: F.value.yAxis.color,
|
|
1328
|
+
x: U.value,
|
|
1329
|
+
y: G.value.top + G.value.cellSize.height * t + G.value.cellSize.height / 2 + F.value.yAxis.fontSize + F.value.yAxis.offsetY,
|
|
1330
|
+
"text-anchor": "end",
|
|
1331
|
+
"font-weight": F.value.yAxis.bold ? "bold" : "normal"
|
|
1332
|
+
}, E(Qn(t)), 9, ct)) : g("", !0)], 64))), 256))], 512)) : g("", !0),
|
|
1333
|
+
F.value.xAxis.show ? (S(), _("g", {
|
|
1334
|
+
key: 4,
|
|
1335
|
+
ref_key: "xAxisLabels",
|
|
1336
|
+
ref: Qt
|
|
1337
|
+
}, [(S(!0), _(m, null, w(X.value.xLabels, (e, t) => (S(), _(m, null, [!F.value.xAxis.showOnlyAtModulo || F.value.xAxis.showOnlyAtModulo && t % F.value.xAxis.showOnlyAtModulo === 0 ? (S(), _("text", {
|
|
1338
|
+
key: 0,
|
|
1339
|
+
class: "vue-ui-heatmap-col-name",
|
|
1340
|
+
"text-anchor": F.value.xAxis.rotation === 0 ? "middle" : F.value.xAxis.rotation < 0 ? "start" : "end",
|
|
1341
|
+
"font-size": F.value.xAxis.fontSize,
|
|
1342
|
+
fill: F.value.xAxis.color,
|
|
1343
|
+
"font-weight": F.value.xAxis.bold ? "bold" : "normal",
|
|
1344
|
+
transform: `translate(${G.value.left + G.value.cellSize.width / 2 + G.value.width / X.value.xLabels.length * t + F.value.xAxis.offsetX + G.value.sumCellXHeight}, ${G.value.topLabelsHeight}), rotate(${F.value.xAxis.rotation})`
|
|
1345
|
+
}, E(e), 9, lt)) : g("", !0)], 64))), 256))], 512)) : g("", !0),
|
|
1346
|
+
P.value.columnTotal.value.show ? (S(), _("g", {
|
|
1347
|
+
key: 5,
|
|
1348
|
+
ref_key: "xAxisSums",
|
|
1349
|
+
ref: $t
|
|
1350
|
+
}, [(S(!0), _(m, null, w(X.value.xLabels, (e, t) => (S(), _("text", {
|
|
1351
|
+
class: "vue-ui-heatmap-col-total",
|
|
1352
|
+
"text-anchor": P.value.columnTotal.value.rotation === 0 ? "middle" : P.value.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1353
|
+
"font-size": F.value.xAxis.fontSize,
|
|
1354
|
+
fill: F.value.xAxis.color,
|
|
1355
|
+
"font-weight": F.value.xAxis.bold ? "bold" : "normal",
|
|
1356
|
+
transform: `translate(${G.value.left + G.value.cellSize.width / 2 + G.value.width / X.value.xLabels.length * t + F.value.xAxis.offsetX + P.value.columnTotal.value.offsetX + G.value.sumCellXHeight}, ${G.value.bottom + F.value.xAxis.fontSize / 2}), rotate(${P.value.columnTotal.value.rotation})`
|
|
1357
|
+
}, E($n(t)), 9, ut))), 256))], 512)) : g("", !0),
|
|
1358
|
+
j.value ? (S(), _("g", dt, [v("rect", {
|
|
1359
|
+
style: { "pointer-events": "none" },
|
|
1360
|
+
x: j.value.x - P.value.selected.border / 2 + W.value + G.value.sumCellXHeight,
|
|
1361
|
+
y: j.value.y - P.value.selected.border / 2 + W.value,
|
|
1362
|
+
width: G.value.cellSize.width - W.value + P.value.selected.border - W.value,
|
|
1363
|
+
height: G.value.cellSize.height - W.value + P.value.selected.border - W.value,
|
|
1364
|
+
fill: "transparent",
|
|
1365
|
+
stroke: P.value.selected.color,
|
|
1366
|
+
"stroke-width": P.value.selected.border,
|
|
1367
|
+
rx: 1
|
|
1368
|
+
}, null, 8, ft)])) : g("", !0),
|
|
1369
|
+
I.value.crosshairs.show && j.value ? (S(), _("g", pt, [v("line", {
|
|
1370
|
+
x1: G.value.left + G.value.sumCellXHeight,
|
|
1371
|
+
x2: j.value.x + G.value.sumCellXHeight,
|
|
1372
|
+
y1: j.value.y + (G.value.cellSize.height - W.value) / 2,
|
|
1373
|
+
y2: j.value.y + (G.value.cellSize.height - W.value) / 2,
|
|
1374
|
+
stroke: I.value.crosshairs.stroke,
|
|
1375
|
+
"stroke-width": I.value.crosshairs.strokeWidth,
|
|
1376
|
+
"stroke-dasharray": I.value.crosshairs.strokeDasharray,
|
|
1377
|
+
"stroke-linecap": "round"
|
|
1378
|
+
}, null, 8, mt), v("line", {
|
|
1379
|
+
x1: j.value.x + G.value.sumCellXHeight + (G.value.cellSize.width - W.value) / 2,
|
|
1380
|
+
x2: j.value.x + G.value.sumCellXHeight + (G.value.cellSize.width - W.value) / 2,
|
|
1381
|
+
y1: j.value.y,
|
|
1382
|
+
y2: G.value.top,
|
|
1383
|
+
stroke: I.value.crosshairs.stroke,
|
|
1384
|
+
"stroke-width": I.value.crosshairs.strokeWidth,
|
|
1385
|
+
"stroke-dasharray": I.value.crosshairs.strokeDasharray,
|
|
1386
|
+
"stroke-linecap": "round"
|
|
1387
|
+
}, null, 8, ht)])) : g("", !0),
|
|
1388
|
+
T(n.$slots, "svg", { svg: {
|
|
1389
|
+
...H.value,
|
|
1390
|
+
drawingArea: G.value,
|
|
1391
|
+
cells: zn.value,
|
|
1392
|
+
isPrintingImg: D(bn) || D(xn) || D(gr),
|
|
1393
|
+
isPrintingSvg: D(_r)
|
|
1394
|
+
} }, void 0, !0)
|
|
1395
|
+
], 46, Qe)),
|
|
1396
|
+
N.value.style.legend.show ? (S(), _("div", {
|
|
1397
|
+
key: 0,
|
|
1398
|
+
ref_key: "legendRight",
|
|
1399
|
+
ref: Yt,
|
|
1400
|
+
class: "vue-ui-heatmap-legend-right",
|
|
1401
|
+
style: x({ "--legend-width": N.value.style.legend.width + "px" })
|
|
1402
|
+
}, [
|
|
1403
|
+
D(dn) ? g("", !0) : (S(), _("div", {
|
|
1404
|
+
key: 0,
|
|
1405
|
+
class: "vue-ui-heatmap-legend-label-max",
|
|
1406
|
+
style: x({
|
|
1407
|
+
fontSize: N.value.style.legend.fontSize + "px",
|
|
1408
|
+
color: N.value.style.legend.color
|
|
1409
|
+
})
|
|
1410
|
+
}, E(D(u)(P.value.value.formatter, D(s)(K.value), D(t)({
|
|
1411
|
+
p: F.value.prefix,
|
|
1412
|
+
v: D(s)(K.value),
|
|
1413
|
+
s: F.value.suffix,
|
|
1414
|
+
r: N.value.style.legend.roundingValue
|
|
1415
|
+
}))), 5)),
|
|
1416
|
+
v("div", gt, [v("div", {
|
|
1417
|
+
class: "vue-ui-heatmap-gauge",
|
|
1418
|
+
style: x({ background: `linear-gradient(to bottom, ${P.value.colors.hot}, ${P.value.colors.cold})` })
|
|
1419
|
+
}, [We(v("div", {
|
|
1420
|
+
class: "vue-ui-heatmap-gauge-indicator",
|
|
1421
|
+
"data-value": D(u)(P.value.value.formatter, D(s)(Q.value), D(t)({
|
|
1422
|
+
p: F.value.prefix,
|
|
1423
|
+
v: D(s)(Q.value),
|
|
1424
|
+
s: F.value.suffix,
|
|
1425
|
+
r: N.value.style.legend.roundingValue
|
|
1426
|
+
})),
|
|
1427
|
+
style: x({
|
|
1428
|
+
position: "absolute",
|
|
1429
|
+
width: "100%",
|
|
1430
|
+
height: "2px",
|
|
1431
|
+
background: [void 0, null].includes(Q.value) ? "transparent" : D(f)(qn.value.datapoint.color),
|
|
1432
|
+
top: `${Rn(Q.value)}%`,
|
|
1433
|
+
transition: "all 0.2s ease-in-out",
|
|
1434
|
+
"--background-color": N.value.style.backgroundColor,
|
|
1435
|
+
"--gauge-arrow-color": D(f)(N.value.style.backgroundColor),
|
|
1436
|
+
"--gauge-arrow-text-color": D(f)(N.value.style.backgroundColor),
|
|
1437
|
+
"--gauge-arrow-value": Q.value,
|
|
1438
|
+
"--gauge-arrow-font-size": N.value.style.legend.fontSize + "px"
|
|
1439
|
+
})
|
|
1440
|
+
}, [v("div", vt, E(D(u)(P.value.value.formatter, D(s)(Q.value), D(t)({
|
|
1441
|
+
p: F.value.prefix,
|
|
1442
|
+
v: D(s)(Q.value),
|
|
1443
|
+
s: F.value.suffix,
|
|
1444
|
+
r: N.value.style.legend.roundingValue
|
|
1445
|
+
}))), 1)], 12, _t), [[Ve, ![void 0, null].includes(Q.value)]])], 4)]),
|
|
1446
|
+
D(dn) ? g("", !0) : (S(), _("div", {
|
|
1447
|
+
key: 1,
|
|
1448
|
+
class: "vue-ui-heatmap-legend-label-min",
|
|
1449
|
+
style: x({
|
|
1450
|
+
fontSize: N.value.style.legend.fontSize + "px",
|
|
1451
|
+
color: N.value.style.legend.color
|
|
1452
|
+
})
|
|
1453
|
+
}, E(D(u)(P.value.value.formatter, D(s)(q.value), D(t)({
|
|
1454
|
+
p: F.value.prefix,
|
|
1455
|
+
v: D(s)(q.value),
|
|
1456
|
+
s: F.value.suffix,
|
|
1457
|
+
r: N.value.style.legend.roundingValue
|
|
1458
|
+
}))), 5))
|
|
1459
|
+
], 4)) : g("", !0),
|
|
1460
|
+
n.$slots.hint ? (S(), _("div", yt, [T(n.$slots, "hint", b(y({
|
|
1461
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1462
|
+
isVisible: sn.value
|
|
1463
|
+
})), void 0, !0)])) : g("", !0)
|
|
1464
|
+
], 2),
|
|
1465
|
+
n.$slots.watermark ? (S(), _("div", bt, [T(n.$slots, "watermark", b(y({ isPrinting: D(bn) || D(xn) || D(gr) || D(_r) })), void 0, !0)])) : g("", !0),
|
|
1466
|
+
n.$slots.source ? (S(), _("div", {
|
|
1467
|
+
key: 6,
|
|
1468
|
+
ref_key: "source",
|
|
1469
|
+
ref: tn,
|
|
1470
|
+
dir: "auto"
|
|
1471
|
+
}, [T(n.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1472
|
+
ke(D(Ye), {
|
|
1473
|
+
teleportTo: N.value.style.tooltip.teleportTo,
|
|
1474
|
+
show: z.value.showTooltip && Rt.value,
|
|
1475
|
+
backgroundColor: N.value.style.tooltip.backgroundColor,
|
|
1476
|
+
color: N.value.style.tooltip.color,
|
|
1477
|
+
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1478
|
+
borderColor: N.value.style.tooltip.borderColor,
|
|
1479
|
+
borderWidth: N.value.style.tooltip.borderWidth,
|
|
1480
|
+
fontSize: N.value.style.tooltip.fontSize,
|
|
1481
|
+
backgroundOpacity: N.value.style.tooltip.backgroundOpacity,
|
|
1482
|
+
position: N.value.style.tooltip.position,
|
|
1483
|
+
offsetX: N.value.style.tooltip.offsetX,
|
|
1484
|
+
offsetY: N.value.style.tooltip.offsetY,
|
|
1485
|
+
parent: A.value,
|
|
1486
|
+
content: zt.value,
|
|
1487
|
+
isFullscreen: $.value,
|
|
1488
|
+
isCustom: N.value.style.tooltip.customFormat && typeof N.value.style.tooltip.customFormat == "function",
|
|
1489
|
+
smooth: N.value.style.tooltip.smooth,
|
|
1490
|
+
backdropFilter: N.value.style.tooltip.backdropFilter,
|
|
1491
|
+
smoothForce: N.value.style.tooltip.smoothForce,
|
|
1492
|
+
smoothSnapThreshold: N.value.style.tooltip.smoothSnapThreshold,
|
|
1493
|
+
isA11yMode: on.value === "keyboard",
|
|
1494
|
+
a11yPosition: an.value
|
|
1495
|
+
}, {
|
|
1496
|
+
"tooltip-before": O(() => [T(n.$slots, "tooltip-before", b(y({ ...qn.value })), void 0, !0)]),
|
|
1497
|
+
tooltip: O(() => [T(n.$slots, "tooltip", b(y({ ...qn.value })), void 0, !0)]),
|
|
1498
|
+
"tooltip-after": O(() => [T(n.$slots, "tooltip-after", b(y({ ...qn.value })), void 0, !0)]),
|
|
1499
|
+
_: 3
|
|
1500
|
+
}, 8, [
|
|
1501
|
+
"teleportTo",
|
|
1502
|
+
"show",
|
|
1503
|
+
"backgroundColor",
|
|
1504
|
+
"color",
|
|
1505
|
+
"borderRadius",
|
|
1506
|
+
"borderColor",
|
|
1507
|
+
"borderWidth",
|
|
1508
|
+
"fontSize",
|
|
1509
|
+
"backgroundOpacity",
|
|
1510
|
+
"position",
|
|
1511
|
+
"offsetX",
|
|
1512
|
+
"offsetY",
|
|
1513
|
+
"parent",
|
|
1514
|
+
"content",
|
|
1515
|
+
"isFullscreen",
|
|
1516
|
+
"isCustom",
|
|
1517
|
+
"smooth",
|
|
1518
|
+
"backdropFilter",
|
|
1519
|
+
"smoothForce",
|
|
1520
|
+
"smoothSnapThreshold",
|
|
1521
|
+
"isA11yMode",
|
|
1522
|
+
"a11yPosition"
|
|
1523
|
+
]),
|
|
1524
|
+
It.value && N.value.userOptions.buttons.table ? (S(), Ee(Le(dr.value.component), je({ key: 7 }, dr.value.props, {
|
|
1525
|
+
ref_key: "tableUnit",
|
|
1526
|
+
ref: Gt,
|
|
1527
|
+
onClose: pr
|
|
1528
|
+
}), De({
|
|
1529
|
+
content: O(() => [v("div", {
|
|
1530
|
+
ref_key: "tableContainer",
|
|
1531
|
+
ref: Ht,
|
|
1532
|
+
class: "vue-ui-heatmap-table atom-data-table",
|
|
1533
|
+
style: x(`${N.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1534
|
+
}, [v("div", {
|
|
1535
|
+
style: x(`width:100%;overflow-x:auto;position:relative;${N.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1536
|
+
class: Ne({ "vue-ui-responsive": D(fr) })
|
|
1537
|
+
}, [N.value.table.useDialog ? g("", !0) : (S(), _("div", {
|
|
1538
|
+
key: 0,
|
|
1539
|
+
role: "button",
|
|
1540
|
+
tabindex: "0",
|
|
1541
|
+
style: x(`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:${N.value.table.th.backgroundColor};`),
|
|
1542
|
+
onClick: pr,
|
|
1543
|
+
onKeypress: Ge(pr, ["enter"])
|
|
1544
|
+
}, [ke(D(Dt), {
|
|
1545
|
+
name: "close",
|
|
1546
|
+
stroke: N.value.table.th.color,
|
|
1547
|
+
"stroke-width": 2
|
|
1548
|
+
}, null, 8, ["stroke"])], 36)), v("table", xt, [
|
|
1549
|
+
N.value.table.useDialog ? g("", !0) : (S(), _("caption", {
|
|
1550
|
+
key: 0,
|
|
1551
|
+
style: x(`backgroundColor:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`)
|
|
1552
|
+
}, [Oe(E(N.value.style.title.text) + " ", 1), N.value.style.title.subtitle.text ? (S(), _("span", St, E(N.value.style.title.subtitle.text), 1)) : g("", !0)], 4)),
|
|
1553
|
+
v("thead", null, [v("tr", {
|
|
1554
|
+
role: "row",
|
|
1555
|
+
style: x(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
|
|
1556
|
+
}, [v("th", { style: x(`outline:${N.value.table.th.outline};padding-right:6px`) }, null, 4), (S(!0), _(m, null, w(e.dataset, (e, t) => (S(), _("th", {
|
|
1557
|
+
align: "right",
|
|
1558
|
+
style: x(`outline:${N.value.table.th.outline};padding-right:6px`)
|
|
1559
|
+
}, E(e.name), 5))), 256))], 4)]),
|
|
1560
|
+
v("tbody", null, [(S(!0), _(m, null, w(X.value.xLabels, (n, r) => (S(), _("tr", {
|
|
1561
|
+
role: "row",
|
|
1562
|
+
class: Ne({
|
|
1563
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
1564
|
+
"vue-ui-data-table__tbody__row-even": r % 2 == 0,
|
|
1565
|
+
"vue-ui-data-table__tbody__row-odd": r % 2 != 0
|
|
1566
|
+
}),
|
|
1567
|
+
style: x(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
|
|
1568
|
+
}, [v("td", {
|
|
1569
|
+
"data-cell": N.value.table.colNames.xAxis,
|
|
1570
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1571
|
+
style: x(`outline:${N.value.table.td.outline}`)
|
|
1572
|
+
}, [v("div", wt, E(n), 1)], 12, Ct), (S(!0), _(m, null, w(e.dataset, (n, i) => (S(), _("td", {
|
|
1573
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1574
|
+
"data-cell": e.dataset[i].name,
|
|
1575
|
+
style: x(`outline:${N.value.table.td.outline}`)
|
|
1576
|
+
}, [v("div", Et, E(isNaN(n.values[r]) ? "-" : D(t)({
|
|
1577
|
+
p: F.value.prefix,
|
|
1578
|
+
v: n.values[r],
|
|
1579
|
+
s: F.value.suffix,
|
|
1580
|
+
r: N.value.table.td.roundingValue
|
|
1581
|
+
})), 1)], 12, Tt))), 256))], 6))), 256))])
|
|
1582
|
+
])], 6)], 4)]),
|
|
1583
|
+
_: 2
|
|
1584
|
+
}, [N.value.table.useDialog ? {
|
|
1585
|
+
name: "title",
|
|
1586
|
+
fn: O(() => [Oe(E(dr.value.title), 1)]),
|
|
1587
|
+
key: "0"
|
|
1588
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1589
|
+
name: "actions",
|
|
1590
|
+
fn: O(() => [v("button", {
|
|
1591
|
+
tabindex: "0",
|
|
1592
|
+
class: "vue-ui-user-options-button",
|
|
1593
|
+
onClick: r[0] ||= (e) => er(N.value.userOptions.callbacks.csv),
|
|
1594
|
+
style: x({ cursor: cn.value ? "pointer" : "default" })
|
|
1595
|
+
}, [ke(D(Dt), {
|
|
1596
|
+
name: "fileCsv",
|
|
1597
|
+
stroke: dr.value.props.color
|
|
1598
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1599
|
+
key: "1"
|
|
1600
|
+
} : void 0]), 1040)) : g("", !0),
|
|
1601
|
+
T(n.$slots, "skeleton", {}, () => [D(dn) ? (S(), Ee(ue, { key: 0 })) : g("", !0)], !0)
|
|
1602
|
+
], 46, Xe));
|
|
1603
|
+
}
|
|
1604
|
+
}, [["__scopeId", "data-v-2b466c1a"]]);
|
|
1605
|
+
//#endregion
|
|
1606
|
+
export { Ye as n, Dt as t };
|