vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
2
|
+
import { $ as t, D as n, Jt as r, X as i, Xt as a, b as o, ct as s, i as c, jt as l, pt as u, q as d, r as f, t as p, tt as m, xt as ee, yt as h } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as te, t as ne } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as re } from "./useTimeLabels-B9CEuiLZ.js";
|
|
5
|
+
import { t as ie } from "./useConfig-BilxnBNr.js";
|
|
6
|
+
import { t as ae } from "./usePrinter-BFvi4jVy.js";
|
|
7
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as ce } from "./useSvgExport-Ba9qBr9M.js";
|
|
9
|
+
import { t as le } from "./useNestedProp--NSEmhOH.js";
|
|
10
|
+
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
11
|
+
import { t as de } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as fe } from "./img-DIQG5q8T.js";
|
|
13
|
+
import { n as pe } from "./Title-BODtwViI.js";
|
|
14
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as _e } from "./vue-ui-accordion-61MlW-Ge.js";
|
|
17
|
+
import { t as ve } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as be } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as xe } from "./useTableResponsive-BAqJPR68.js";
|
|
21
|
+
import { t as Se } from "./vue_ui_heatmap-B2BBBSWG.js";
|
|
22
|
+
import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as S, guardReactiveProps as C, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as ke, onMounted as Ae, openBlock as E, reactive as je, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as A, toRefs as Pe, unref as j, useCssVars as Fe, vShow as Ie, watch as Le, watchEffect as Re, withCtx as M, withDirectives as ze, withKeys as Be } from "vue";
|
|
22
23
|
//#region src/useLabelObserverEfffect.js
|
|
23
|
-
function
|
|
24
|
+
function Ve({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
24
25
|
if (r) return;
|
|
25
26
|
let o = (e) => {
|
|
26
27
|
if (!e) return;
|
|
@@ -37,12 +38,12 @@ function Be({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFra
|
|
|
37
38
|
}
|
|
38
39
|
typeof r == "number" && !Number.isNaN(r) && t(r);
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
Re((t) => {
|
|
41
42
|
let n = e.value;
|
|
42
43
|
if (!n) return;
|
|
43
44
|
let r = !1;
|
|
44
45
|
(async () => {
|
|
45
|
-
await
|
|
46
|
+
await De();
|
|
46
47
|
for (let t = 0; t < i; t += 1) {
|
|
47
48
|
if (r) return;
|
|
48
49
|
await new Promise((e) => requestAnimationFrame(e));
|
|
@@ -88,15 +89,15 @@ function Be({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFra
|
|
|
88
89
|
}
|
|
89
90
|
//#endregion
|
|
90
91
|
//#region src/directives/vFitText.js
|
|
91
|
-
var
|
|
92
|
+
var He = {
|
|
92
93
|
mounted(e, t) {
|
|
93
|
-
|
|
94
|
+
Ue(e, t.value);
|
|
94
95
|
},
|
|
95
96
|
updated(e, t) {
|
|
96
|
-
|
|
97
|
+
Ue(e, t.value);
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
|
-
function
|
|
100
|
+
function Ue(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
|
|
100
101
|
e.removeAttribute("transform"), e.removeAttribute("visibility");
|
|
101
102
|
let u = !1, d = !1;
|
|
102
103
|
e.setAttribute("font-size", r);
|
|
@@ -121,16 +122,16 @@ function He(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, in
|
|
|
121
122
|
}
|
|
122
123
|
//#endregion
|
|
123
124
|
//#region src/components/vue-ui-heatmap.vue
|
|
124
|
-
var
|
|
125
|
+
var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe = [
|
|
125
126
|
"xmlns",
|
|
126
127
|
"aria-describedby",
|
|
127
128
|
"viewBox"
|
|
128
|
-
],
|
|
129
|
+
], Je = [
|
|
129
130
|
"x",
|
|
130
131
|
"y",
|
|
131
132
|
"width",
|
|
132
133
|
"height"
|
|
133
|
-
],
|
|
134
|
+
], Ye = [
|
|
134
135
|
"x",
|
|
135
136
|
"y",
|
|
136
137
|
"height",
|
|
@@ -138,7 +139,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
138
139
|
"fill",
|
|
139
140
|
"stroke",
|
|
140
141
|
"stroke-width"
|
|
141
|
-
],
|
|
142
|
+
], Xe = [
|
|
142
143
|
"x",
|
|
143
144
|
"y",
|
|
144
145
|
"height",
|
|
@@ -146,7 +147,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
146
147
|
"fill",
|
|
147
148
|
"stroke",
|
|
148
149
|
"stroke-width"
|
|
149
|
-
],
|
|
150
|
+
], Ze = [
|
|
150
151
|
"x",
|
|
151
152
|
"y",
|
|
152
153
|
"width",
|
|
@@ -154,7 +155,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
154
155
|
"fill",
|
|
155
156
|
"stroke",
|
|
156
157
|
"stroke-width"
|
|
157
|
-
],
|
|
158
|
+
], Qe = [
|
|
158
159
|
"data-a11y-cell-id",
|
|
159
160
|
"x",
|
|
160
161
|
"y",
|
|
@@ -167,13 +168,13 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
167
168
|
"onMouseover",
|
|
168
169
|
"onMouseout",
|
|
169
170
|
"onClick"
|
|
170
|
-
],
|
|
171
|
+
], $e = [
|
|
171
172
|
"font-size",
|
|
172
173
|
"font-weight",
|
|
173
174
|
"fill",
|
|
174
175
|
"x",
|
|
175
176
|
"y"
|
|
176
|
-
],
|
|
177
|
+
], et = [
|
|
177
178
|
"x",
|
|
178
179
|
"y",
|
|
179
180
|
"width",
|
|
@@ -181,7 +182,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
181
182
|
"fill",
|
|
182
183
|
"stroke",
|
|
183
184
|
"stroke-width"
|
|
184
|
-
],
|
|
185
|
+
], tt = [
|
|
185
186
|
"x",
|
|
186
187
|
"y",
|
|
187
188
|
"width",
|
|
@@ -189,38 +190,38 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
189
190
|
"fill",
|
|
190
191
|
"stroke",
|
|
191
192
|
"stroke-width"
|
|
192
|
-
],
|
|
193
|
+
], nt = [
|
|
193
194
|
"font-size",
|
|
194
195
|
"fill",
|
|
195
196
|
"x",
|
|
196
197
|
"y",
|
|
197
198
|
"font-weight"
|
|
198
|
-
],
|
|
199
|
+
], rt = [
|
|
199
200
|
"font-size",
|
|
200
201
|
"fill",
|
|
201
202
|
"x",
|
|
202
203
|
"y",
|
|
203
204
|
"font-weight"
|
|
204
|
-
],
|
|
205
|
+
], it = [
|
|
205
206
|
"text-anchor",
|
|
206
207
|
"font-size",
|
|
207
208
|
"fill",
|
|
208
209
|
"font-weight",
|
|
209
210
|
"transform"
|
|
210
|
-
],
|
|
211
|
+
], at = [
|
|
211
212
|
"text-anchor",
|
|
212
213
|
"font-size",
|
|
213
214
|
"fill",
|
|
214
215
|
"font-weight",
|
|
215
216
|
"transform"
|
|
216
|
-
],
|
|
217
|
+
], ot = { key: 6 }, st = [
|
|
217
218
|
"x",
|
|
218
219
|
"y",
|
|
219
220
|
"width",
|
|
220
221
|
"height",
|
|
221
222
|
"stroke",
|
|
222
223
|
"stroke-width"
|
|
223
|
-
],
|
|
224
|
+
], ct = { key: 7 }, lt = [
|
|
224
225
|
"x1",
|
|
225
226
|
"x2",
|
|
226
227
|
"y1",
|
|
@@ -228,7 +229,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
228
229
|
"stroke",
|
|
229
230
|
"stroke-width",
|
|
230
231
|
"stroke-dasharray"
|
|
231
|
-
],
|
|
232
|
+
], ut = [
|
|
232
233
|
"x1",
|
|
233
234
|
"x2",
|
|
234
235
|
"y1",
|
|
@@ -236,7 +237,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
236
237
|
"stroke",
|
|
237
238
|
"stroke-width",
|
|
238
239
|
"stroke-dasharray"
|
|
239
|
-
],
|
|
240
|
+
], dt = { class: "vue-ui-heatmap-legend-gauge-right" }, ft = ["data-value"], pt = { class: "vue-ui-heatmap-gauge-indicator-value" }, mt = {
|
|
240
241
|
key: 1,
|
|
241
242
|
style: {
|
|
242
243
|
position: "absolute",
|
|
@@ -246,24 +247,24 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
246
247
|
},
|
|
247
248
|
"data-dom-to-png-ignore": "",
|
|
248
249
|
"aria-hidden": "true"
|
|
249
|
-
},
|
|
250
|
+
}, ht = {
|
|
250
251
|
key: 5,
|
|
251
252
|
class: "vue-data-ui-watermark"
|
|
252
|
-
},
|
|
253
|
+
}, gt = { class: "vue-ui-data-table" }, _t = { key: 0 }, vt = ["data-cell"], yt = { style: {
|
|
253
254
|
display: "flex",
|
|
254
255
|
"align-items": "center",
|
|
255
256
|
gap: "5px",
|
|
256
257
|
"justify-content": "flex-end",
|
|
257
258
|
width: "100%",
|
|
258
259
|
"padding-right": "3px"
|
|
259
|
-
} },
|
|
260
|
+
} }, bt = ["data-cell"], xt = { style: {
|
|
260
261
|
display: "flex",
|
|
261
262
|
"align-items": "center",
|
|
262
263
|
gap: "5px",
|
|
263
264
|
"justify-content": "flex-end",
|
|
264
265
|
width: "100%",
|
|
265
266
|
"padding-right": "3px"
|
|
266
|
-
} },
|
|
267
|
+
} }, St = /*#__PURE__*/ me({
|
|
267
268
|
__name: "vue-ui-heatmap",
|
|
268
269
|
props: {
|
|
269
270
|
config: {
|
|
@@ -280,20 +281,27 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
280
281
|
}
|
|
281
282
|
},
|
|
282
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
283
|
-
setup(e, { expose:
|
|
284
|
-
|
|
285
|
-
let
|
|
284
|
+
setup(e, { expose: me, emit: Ue }) {
|
|
285
|
+
Fe((e) => ({ v1e3a906a: e.tdo }));
|
|
286
|
+
let We = S(() => import("./Tooltip-CMTGxeYO.js")), St = S(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Ct = S(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), wt = S(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Tt = S(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Et = S(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_heatmap: Dt } = ie(), { isThemeValid: Ot, warnInvalidTheme: kt } = ue(), N = e, At = Ue, jt = _({
|
|
286
287
|
get() {
|
|
287
|
-
return !!
|
|
288
|
+
return !!N.dataset && N.dataset.length;
|
|
288
289
|
},
|
|
289
290
|
set(e) {
|
|
290
291
|
return e;
|
|
291
292
|
}
|
|
292
|
-
}),
|
|
293
|
+
}), Mt = D(d()), P = D(null), Nt = D(!1), Pt = D(""), Ft = D(void 0), F = D(null), It = D(0), Lt = D(null), Rt = D(0), zt = D(null), Bt = D(null), Vt = D(null), Ht = D(!1), Ut = D(!1), Wt = D(null), Gt = D(null), Kt = D(null), qt = D(null), Jt = D(null), Yt = D(null), Xt = D(null), Zt = D(null), Qt = D(null), $t = Ne(null), I = D(null), en = D(null), tn = D({
|
|
293
294
|
x: 0,
|
|
294
295
|
y: 0
|
|
295
|
-
}),
|
|
296
|
-
|
|
296
|
+
}), nn = D("pointer"), rn = D(!1), L = D(mn());
|
|
297
|
+
te({
|
|
298
|
+
config: () => L.value,
|
|
299
|
+
dataset: () => N.dataset,
|
|
300
|
+
component: "VueUiHeatmap",
|
|
301
|
+
rules: [ne.emptyArray, ne.noHint]
|
|
302
|
+
});
|
|
303
|
+
let an = _(() => L.value.userOptions.useCursorPointer);
|
|
304
|
+
function on() {
|
|
297
305
|
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
298
306
|
for (let r = 0; r < n; r += 1) {
|
|
299
307
|
let n = [];
|
|
@@ -305,7 +313,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
305
313
|
}
|
|
306
314
|
return t;
|
|
307
315
|
}
|
|
308
|
-
let
|
|
316
|
+
let sn = _(() => r({
|
|
309
317
|
defaultConfig: {
|
|
310
318
|
table: { show: !1 },
|
|
311
319
|
userOptions: { show: !1 },
|
|
@@ -329,291 +337,291 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
329
337
|
}
|
|
330
338
|
},
|
|
331
339
|
userConfig: L.value.skeletonConfig ?? {}
|
|
332
|
-
})), { loading:
|
|
333
|
-
...
|
|
340
|
+
})), { loading: cn, FINAL_DATASET: R, manualLoading: ln } = oe({
|
|
341
|
+
...Pe(N),
|
|
334
342
|
FINAL_CONFIG: L,
|
|
335
|
-
prepareConfig:
|
|
343
|
+
prepareConfig: mn,
|
|
336
344
|
callback: () => {
|
|
337
345
|
Promise.resolve().then(async () => {
|
|
338
|
-
await
|
|
346
|
+
await De(), P.value && a(P.value, {
|
|
339
347
|
delta: .1,
|
|
340
348
|
delay: 250
|
|
341
349
|
});
|
|
342
350
|
});
|
|
343
351
|
},
|
|
344
|
-
skeletonDataset:
|
|
345
|
-
skeletonConfig:
|
|
352
|
+
skeletonDataset: N.config?.skeletonDataset ?? on(),
|
|
353
|
+
skeletonConfig: r({
|
|
346
354
|
defaultConfig: L.value,
|
|
347
|
-
userConfig:
|
|
355
|
+
userConfig: sn.value
|
|
348
356
|
})
|
|
349
|
-
}), { userOptionsVisible:
|
|
350
|
-
function
|
|
351
|
-
|
|
357
|
+
}), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } = ye({ config: L.value }), { svgRef: z } = be({ config: L.value.style.title });
|
|
358
|
+
function pn(e) {
|
|
359
|
+
dn(e);
|
|
352
360
|
}
|
|
353
|
-
function
|
|
354
|
-
let e =
|
|
355
|
-
userConfig:
|
|
356
|
-
defaultConfig:
|
|
361
|
+
function mn() {
|
|
362
|
+
let e = le({
|
|
363
|
+
userConfig: N.config,
|
|
364
|
+
defaultConfig: Dt
|
|
357
365
|
}), t = {}, n = e.theme;
|
|
358
|
-
if (n) if (!
|
|
366
|
+
if (n) if (!Ot.value(e)) kt(e), t = e;
|
|
359
367
|
else {
|
|
360
|
-
let r =
|
|
361
|
-
userConfig:
|
|
368
|
+
let r = le({
|
|
369
|
+
userConfig: Se[n] || N.config,
|
|
362
370
|
defaultConfig: e
|
|
363
371
|
});
|
|
364
|
-
t = { ...
|
|
365
|
-
userConfig:
|
|
372
|
+
t = { ...le({
|
|
373
|
+
userConfig: N.config,
|
|
366
374
|
defaultConfig: r
|
|
367
375
|
}) };
|
|
368
376
|
}
|
|
369
377
|
else t = e;
|
|
370
378
|
return t;
|
|
371
379
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}, { deep: !0 }),
|
|
375
|
-
Array.isArray(e) && e.length > 0 && (
|
|
380
|
+
Le(() => N.config, (e) => {
|
|
381
|
+
cn.value || (L.value = mn()), un.value = !L.value.userOptions.showOnChartHover, Sn(), Rt.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.tooltip.show, Cn.value = L.value.style.layout.width, wn.value = L.value.style.layout.height;
|
|
382
|
+
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
383
|
+
Array.isArray(e) && e.length > 0 && (ln.value = !1), Sn();
|
|
376
384
|
}, { deep: !0 });
|
|
377
|
-
let { isPrinting:
|
|
378
|
-
elementId: `heatmap__${
|
|
385
|
+
let { isPrinting: hn, isImaging: gn, generatePdf: _n, generateImage: vn } = ae({
|
|
386
|
+
elementId: `heatmap__${Mt.value}`,
|
|
379
387
|
fileName: L.value.style.title.text || "vue-ui-heatmap",
|
|
380
388
|
options: L.value.userOptions.print
|
|
381
|
-
}),
|
|
389
|
+
}), yn = _(() => L.value.userOptions.show && !L.value.style.title.text), B = D({
|
|
382
390
|
showTable: L.value.table.show,
|
|
383
391
|
showTooltip: L.value.style.tooltip.show
|
|
384
392
|
});
|
|
385
|
-
|
|
393
|
+
Le(L, () => {
|
|
386
394
|
B.value = {
|
|
387
395
|
showTable: L.value.table.show,
|
|
388
396
|
showTooltip: L.value.style.tooltip.show
|
|
389
397
|
};
|
|
390
398
|
}, { immediate: !0 });
|
|
391
|
-
let
|
|
392
|
-
function
|
|
393
|
-
if (
|
|
399
|
+
let bn = _(() => L.value.table.responsiveBreakpoint), V = D(null), xn = _(() => !!L.value.debug);
|
|
400
|
+
function Sn() {
|
|
401
|
+
if (l(N.dataset) && (m({
|
|
394
402
|
componentName: "VueUiHeatmap",
|
|
395
403
|
type: "dataset",
|
|
396
|
-
debug:
|
|
397
|
-
}),
|
|
398
|
-
let e =
|
|
399
|
-
let { width: e, height: t } =
|
|
400
|
-
chart:
|
|
401
|
-
title: L.value.style.title.text ?
|
|
402
|
-
source:
|
|
403
|
-
noTitle:
|
|
404
|
+
debug: xn.value
|
|
405
|
+
}), jt.value = !1, ln.value = !0), l(N.dataset) || (ln.value = L.value.loading), L.value.responsive) {
|
|
406
|
+
let e = he(() => {
|
|
407
|
+
let { width: e, height: t } = ge({
|
|
408
|
+
chart: P.value,
|
|
409
|
+
title: L.value.style.title.text ? Wt.value : null,
|
|
410
|
+
source: Qt.value,
|
|
411
|
+
noTitle: Gt.value
|
|
404
412
|
});
|
|
405
413
|
requestAnimationFrame(() => {
|
|
406
|
-
|
|
414
|
+
Cn.value = e, wn.value = t;
|
|
407
415
|
});
|
|
408
416
|
});
|
|
409
|
-
V.value && (
|
|
417
|
+
V.value && ($t.value && V.value.unobserve($t.value), V.value.disconnect()), V.value = new ResizeObserver(e), $t.value = P.value.parentNode, V.value.observe($t.value);
|
|
410
418
|
}
|
|
411
419
|
}
|
|
412
|
-
|
|
413
|
-
V.value && (
|
|
414
|
-
}),
|
|
415
|
-
|
|
420
|
+
ke(() => {
|
|
421
|
+
V.value && ($t.value && V.value.unobserve($t.value), V.value.disconnect());
|
|
422
|
+
}), Ae(() => {
|
|
423
|
+
Sn();
|
|
416
424
|
});
|
|
417
|
-
let H = _(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))),
|
|
418
|
-
width: Math.max(10,
|
|
419
|
-
height: Math.max(10,
|
|
420
|
-
})),
|
|
421
|
-
|
|
422
|
-
elementRef:
|
|
423
|
-
callback:
|
|
424
|
-
e !==
|
|
425
|
+
let H = _(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), Cn = D(L.value.style.layout.width), wn = D(L.value.style.layout.height), U = _(() => ({
|
|
426
|
+
width: Math.max(10, Cn.value),
|
|
427
|
+
height: Math.max(10, wn.value)
|
|
428
|
+
})), Tn = D(0);
|
|
429
|
+
Ve({
|
|
430
|
+
elementRef: Yt,
|
|
431
|
+
callback: he((e) => {
|
|
432
|
+
e !== Tn.value && (Tn.value = e);
|
|
425
433
|
}, 100),
|
|
426
434
|
attr: "height"
|
|
427
435
|
});
|
|
428
|
-
let W =
|
|
429
|
-
|
|
430
|
-
elementRef:
|
|
431
|
-
callback:
|
|
436
|
+
let W = D(0);
|
|
437
|
+
Ve({
|
|
438
|
+
elementRef: qt,
|
|
439
|
+
callback: he((e) => {
|
|
432
440
|
e !== W.value && (W.value = e);
|
|
433
441
|
}, 100),
|
|
434
442
|
attr: "width"
|
|
435
443
|
});
|
|
436
|
-
let
|
|
437
|
-
|
|
438
|
-
elementRef:
|
|
439
|
-
callback:
|
|
440
|
-
e !==
|
|
444
|
+
let En = D(0);
|
|
445
|
+
Ve({
|
|
446
|
+
elementRef: Xt,
|
|
447
|
+
callback: he((e) => {
|
|
448
|
+
e !== En.value && (En.value = e);
|
|
441
449
|
}, 100),
|
|
442
450
|
attr: "height"
|
|
443
|
-
}),
|
|
444
|
-
|
|
451
|
+
}), ke(() => {
|
|
452
|
+
Tn.value = 0, W.value = 0, En.value = 0;
|
|
445
453
|
});
|
|
446
454
|
let G = _(() => Math.min(U.value.height, U.value.width) / 1e3 * L.value.style.layout.cells.spacing), K = _(() => {
|
|
447
455
|
let e = 0;
|
|
448
456
|
L.value.style.legend.show && (e = L.value.style.legend.width);
|
|
449
|
-
let t = L.value.style.layout.padding, n = L.value.style.layout.dataLabels.xAxis.fontSize / 3, r = L.value.style.layout.dataLabels.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom -
|
|
457
|
+
let t = L.value.style.layout.padding, n = L.value.style.layout.dataLabels.xAxis.fontSize / 3, r = L.value.style.layout.dataLabels.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom - Tn.value - n, a = U.value.width / 60, o = {
|
|
450
458
|
x: G.value * H.value,
|
|
451
459
|
y: G.value * ((R.value || []).length + 1)
|
|
452
|
-
}, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y -
|
|
460
|
+
}, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - En.value - r - L.value.style.layout.cells.columnTotal.value.offsetY, l = {
|
|
453
461
|
width: Math.max(3, s / H.value),
|
|
454
462
|
height: Math.max(3, c / (R.value.length ?? 1))
|
|
455
463
|
};
|
|
456
464
|
return {
|
|
457
|
-
top: t.top +
|
|
458
|
-
topLabelsHeight:
|
|
465
|
+
top: t.top + Tn.value + a + n,
|
|
466
|
+
topLabelsHeight: Tn.value,
|
|
459
467
|
sumCellXHeight: a,
|
|
460
468
|
height: c,
|
|
461
469
|
left: t.left + W.value + a / 2,
|
|
462
470
|
right: t.right - e,
|
|
463
|
-
bottom: U.value.height - t.bottom -
|
|
471
|
+
bottom: U.value.height - t.bottom - En.value,
|
|
464
472
|
width: s,
|
|
465
473
|
cellSize: l
|
|
466
474
|
};
|
|
467
|
-
}), q = _(() => Math.max(...R.value.flatMap((e) => e.values))),
|
|
475
|
+
}), q = _(() => Math.max(...R.value.flatMap((e) => e.values))), Dn = _(() => Math.min(...R.value.flatMap((e) => e.values))), J = _(() => {
|
|
468
476
|
let e = R.value.flatMap((e) => e.values);
|
|
469
477
|
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
470
|
-
}),
|
|
471
|
-
|
|
472
|
-
let e = ++
|
|
478
|
+
}), On = D([]), kn = D([]), An = 0;
|
|
479
|
+
Re(() => {
|
|
480
|
+
let e = ++An;
|
|
473
481
|
(async () => {
|
|
474
|
-
let t = L.value.style.layout.dataLabels.yAxis, n = await
|
|
482
|
+
let t = L.value.style.layout.dataLabels.yAxis, n = await re({
|
|
475
483
|
values: t.values.length ? t.values : R.value.map((e) => e.name),
|
|
476
484
|
maxDatapoints: R.value.length,
|
|
477
485
|
formatter: t.datetimeFormatter,
|
|
478
486
|
start: 0,
|
|
479
487
|
end: R.value.length
|
|
480
488
|
});
|
|
481
|
-
e ===
|
|
489
|
+
e === An && (On.value = n);
|
|
482
490
|
})();
|
|
483
491
|
});
|
|
484
|
-
let
|
|
485
|
-
|
|
486
|
-
let e = ++
|
|
492
|
+
let jn = 0;
|
|
493
|
+
Re(() => {
|
|
494
|
+
let e = ++jn;
|
|
487
495
|
(async () => {
|
|
488
|
-
let t = L.value.style.layout.dataLabels.xAxis, n = await
|
|
496
|
+
let t = L.value.style.layout.dataLabels.xAxis, n = await re({
|
|
489
497
|
values: t.values,
|
|
490
498
|
maxDatapoints: H.value,
|
|
491
499
|
formatter: t.datetimeFormatter,
|
|
492
500
|
start: 0,
|
|
493
501
|
end: H.value
|
|
494
502
|
});
|
|
495
|
-
e ===
|
|
503
|
+
e === jn && (kn.value = n);
|
|
496
504
|
})();
|
|
497
505
|
});
|
|
498
506
|
let Y = _(() => {
|
|
499
|
-
let e =
|
|
507
|
+
let e = On.value.map((e) => e.text), t = kn.value.map((e) => e.text), n = R.value.map((e) => e.values.reduce((e, t) => e + t, 0)), r = Math.max(...n), i = Math.min(...n), a = [];
|
|
500
508
|
for (let e = 0; e < H.value; e += 1) a.push(R.value.map((t) => t.values[e] || 0).reduce((e, t) => e + t, 0));
|
|
501
509
|
let o = Math.max(...a), s = Math.min(...a);
|
|
502
510
|
return {
|
|
503
511
|
yTotals: n.map((e) => ({
|
|
504
512
|
total: e,
|
|
505
513
|
proportion: isNaN(e / r) ? 0 : e / r,
|
|
506
|
-
color:
|
|
514
|
+
color: h(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, i, r, e)
|
|
507
515
|
})),
|
|
508
516
|
xTotals: a.map((e) => ({
|
|
509
517
|
total: e,
|
|
510
518
|
proportion: isNaN(e / o) ? 0 : e / o,
|
|
511
|
-
color:
|
|
519
|
+
color: h(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, s, o, e)
|
|
512
520
|
})),
|
|
513
521
|
yLabels: e,
|
|
514
522
|
xLabels: t.slice(0, H.value)
|
|
515
523
|
};
|
|
516
524
|
}), X = _(() => (R.value.forEach((e, t) => {
|
|
517
|
-
|
|
525
|
+
u({
|
|
518
526
|
datasetObject: e,
|
|
519
527
|
requiredAttributes: ["values"]
|
|
520
528
|
}).forEach((e) => {
|
|
521
|
-
|
|
529
|
+
m({
|
|
522
530
|
componentName: "VueUiHeatmap",
|
|
523
531
|
type: "datasetSerieAttribute",
|
|
524
532
|
property: "values",
|
|
525
533
|
index: t,
|
|
526
|
-
debug:
|
|
534
|
+
debug: xn.value
|
|
527
535
|
});
|
|
528
536
|
});
|
|
529
537
|
}), R.value.map((e, t) => ({
|
|
530
538
|
...e,
|
|
531
539
|
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
532
540
|
side: "up",
|
|
533
|
-
color:
|
|
541
|
+
color: h(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Dn.value, q.value, e),
|
|
534
542
|
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)),
|
|
535
543
|
value: e,
|
|
536
544
|
yAxisName: Y.value.yLabels[t],
|
|
537
545
|
xAxisName: Y.value.xLabels[n],
|
|
538
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
546
|
+
id: `vue-data-ui-heatmap-cell-${d()}`
|
|
539
547
|
} : {
|
|
540
548
|
side: "down",
|
|
541
549
|
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
542
|
-
color:
|
|
550
|
+
color: h(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Dn.value, q.value, e),
|
|
543
551
|
value: e,
|
|
544
552
|
yAxisName: Y.value.yLabels[t],
|
|
545
553
|
xAxisName: Y.value.xLabels[n],
|
|
546
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
554
|
+
id: `vue-data-ui-heatmap-cell-${d()}`
|
|
547
555
|
})
|
|
548
|
-
})))),
|
|
549
|
-
function
|
|
550
|
-
|
|
556
|
+
})))), Mn = _(() => R.value.length), Nn = je(Array(Mn.value * H.value || 1).fill(!1)), Pn = _(() => Nn.some((e) => e));
|
|
557
|
+
function Fn(e, t) {
|
|
558
|
+
Nn[e] = t;
|
|
551
559
|
}
|
|
552
|
-
let
|
|
553
|
-
function
|
|
554
|
-
|
|
560
|
+
let In = je(Array(Mn.value * H.value || 1).fill(!1)), Ln = _(() => In.some((e) => e));
|
|
561
|
+
function Rn(e, t) {
|
|
562
|
+
In[e] = t;
|
|
555
563
|
}
|
|
556
|
-
let Z =
|
|
557
|
-
function
|
|
558
|
-
|
|
564
|
+
let Z = D(null), zn = D(null);
|
|
565
|
+
function Bn() {
|
|
566
|
+
Nt.value = !1, Ft.value = void 0, Z.value = null, F.value = null, I.value = null, en.value = null;
|
|
559
567
|
}
|
|
560
|
-
function
|
|
568
|
+
function Vn(e) {
|
|
561
569
|
if (!z.value || !e) return;
|
|
562
570
|
let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
563
571
|
if (!t) return;
|
|
564
572
|
let n = t.getBoundingClientRect();
|
|
565
|
-
|
|
573
|
+
tn.value = {
|
|
566
574
|
x: n.left + n.width / 2,
|
|
567
575
|
y: n.top + n.height / 2
|
|
568
576
|
};
|
|
569
577
|
}
|
|
570
|
-
function
|
|
578
|
+
function Hn(e, t, n, r, a = "pointer", o = null) {
|
|
571
579
|
if (L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
572
580
|
datapoint: e,
|
|
573
581
|
seriesIndex: t
|
|
574
582
|
}), !B.value.showTooltip) return;
|
|
575
|
-
|
|
583
|
+
nn.value = a, I.value = o, en.value = e.id, F.value = {
|
|
576
584
|
x: n,
|
|
577
585
|
y: r
|
|
578
586
|
};
|
|
579
|
-
let { value:
|
|
580
|
-
|
|
587
|
+
let { value: l, yAxisName: u, xAxisName: d, id: f } = e;
|
|
588
|
+
Ft.value = f, Z.value = l, zn.value = {
|
|
581
589
|
datapoint: e,
|
|
582
590
|
seriesIndex: t,
|
|
583
591
|
series: X.value,
|
|
584
592
|
config: L.value
|
|
585
|
-
},
|
|
586
|
-
let
|
|
587
|
-
|
|
593
|
+
}, Nt.value = !0;
|
|
594
|
+
let p = "", m = L.value.style.tooltip.customFormat;
|
|
595
|
+
ee(m) && s(() => m({
|
|
588
596
|
datapoint: e,
|
|
589
597
|
seriesIndex: t,
|
|
590
598
|
series: X.value,
|
|
591
599
|
config: L.value
|
|
592
|
-
})) ?
|
|
600
|
+
})) ? Pt.value = m({
|
|
593
601
|
datapoint: e,
|
|
594
602
|
seriesIndex: t,
|
|
595
603
|
series: X.value,
|
|
596
604
|
config: L.value
|
|
597
|
-
}) : (
|
|
605
|
+
}) : (p += `<div>${u} ${d ? u ? ` - ${d}` : `${d}` : ""}</div>`, p += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${L.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${h(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Dn.value, q.value, l)}">⬤</span><span>${isNaN(l) ? "-" : c(L.value.style.layout.cells.value.formatter, l, i({
|
|
598
606
|
p: L.value.style.layout.dataLabels.prefix,
|
|
599
|
-
v:
|
|
607
|
+
v: l,
|
|
600
608
|
s: L.value.style.layout.dataLabels.suffix,
|
|
601
609
|
r: L.value.style.tooltip.roundingValue
|
|
602
610
|
}), {
|
|
603
611
|
datapoint: e,
|
|
604
612
|
seriesIndex: t
|
|
605
|
-
})}</span></div>`,
|
|
606
|
-
|
|
613
|
+
})}</span></div>`, Pt.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && De(() => {
|
|
614
|
+
Vn(e.id);
|
|
607
615
|
});
|
|
608
616
|
}
|
|
609
|
-
function
|
|
617
|
+
function Un({ datapoint: e, seriesIndex: t }) {
|
|
610
618
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
611
619
|
datapoint: e,
|
|
612
620
|
seriesIndex: t
|
|
613
|
-
}), !(
|
|
621
|
+
}), !(en.value === e.id && nn.value === "keyboard") && (Nt.value = !1, Ft.value = void 0, Z.value = null, F.value = null);
|
|
614
622
|
}
|
|
615
|
-
function
|
|
616
|
-
return
|
|
623
|
+
function Wn(e) {
|
|
624
|
+
return c(L.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, i({
|
|
617
625
|
p: L.value.style.layout.dataLabels.prefix,
|
|
618
626
|
v: Y.value.yTotals[e].total,
|
|
619
627
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -623,8 +631,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
623
631
|
rowIndex: e
|
|
624
632
|
});
|
|
625
633
|
}
|
|
626
|
-
function
|
|
627
|
-
return
|
|
634
|
+
function Gn(e) {
|
|
635
|
+
return c(L.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, i({
|
|
628
636
|
p: L.value.style.layout.dataLabels.prefix,
|
|
629
637
|
v: Y.value.xTotals[e].total,
|
|
630
638
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -638,13 +646,13 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
638
646
|
head: R.value.map((e) => ({ name: e.name })),
|
|
639
647
|
body: R.value.map((e) => e.values)
|
|
640
648
|
}));
|
|
641
|
-
function
|
|
642
|
-
|
|
643
|
-
let
|
|
649
|
+
function Kn(e = null) {
|
|
650
|
+
De(() => {
|
|
651
|
+
let r = ["", ...R.value.map((e, t) => e.name)], i = [];
|
|
644
652
|
for (let e = 0; e < Y.value.xLabels.length; e += 1) {
|
|
645
653
|
let t = [Y.value.xLabels[e]];
|
|
646
654
|
for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
|
|
647
|
-
|
|
655
|
+
i.push(t);
|
|
648
656
|
}
|
|
649
657
|
let a = n([
|
|
650
658
|
[L.value.style.title.text],
|
|
@@ -654,41 +662,41 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
654
662
|
[""],
|
|
655
663
|
[""]
|
|
656
664
|
],
|
|
657
|
-
|
|
658
|
-
].concat(
|
|
659
|
-
e ? e(a) :
|
|
665
|
+
r
|
|
666
|
+
].concat(i));
|
|
667
|
+
e ? e(a) : t({
|
|
660
668
|
csvContent: a,
|
|
661
669
|
title: L.value.style.title.text || "vue-ui-heatmap"
|
|
662
670
|
});
|
|
663
671
|
});
|
|
664
672
|
}
|
|
665
|
-
let Q =
|
|
666
|
-
function
|
|
667
|
-
Q.value = e,
|
|
673
|
+
let Q = D(!1);
|
|
674
|
+
function qn(e) {
|
|
675
|
+
Q.value = e, It.value += 1;
|
|
668
676
|
}
|
|
669
|
-
function
|
|
677
|
+
function Jn() {
|
|
670
678
|
B.value.showTable = !B.value.showTable;
|
|
671
679
|
}
|
|
672
|
-
function
|
|
680
|
+
function Yn() {
|
|
673
681
|
B.value.showTooltip = !B.value.showTooltip;
|
|
674
682
|
}
|
|
675
|
-
let
|
|
676
|
-
function
|
|
677
|
-
|
|
683
|
+
let Xn = D(!1);
|
|
684
|
+
function Zn() {
|
|
685
|
+
Xn.value = !Xn.value;
|
|
678
686
|
}
|
|
679
|
-
function
|
|
687
|
+
function Qn(e, t) {
|
|
680
688
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
681
689
|
datapoint: e,
|
|
682
690
|
seriesIndex: t
|
|
683
|
-
}),
|
|
691
|
+
}), At("selectDatapoint", e);
|
|
684
692
|
}
|
|
685
|
-
function
|
|
693
|
+
function $n() {
|
|
686
694
|
return X.value;
|
|
687
695
|
}
|
|
688
|
-
async function
|
|
689
|
-
if (!
|
|
690
|
-
let { width: t, height: n } =
|
|
691
|
-
domElement:
|
|
696
|
+
async function er({ scale: e = 2 } = {}) {
|
|
697
|
+
if (!P.value) return;
|
|
698
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
699
|
+
domElement: P.value,
|
|
692
700
|
base64: !0,
|
|
693
701
|
img: !0,
|
|
694
702
|
scale: e
|
|
@@ -702,14 +710,14 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
702
710
|
aspectRatio: r
|
|
703
711
|
};
|
|
704
712
|
}
|
|
705
|
-
let
|
|
713
|
+
let tr = _(() => ({
|
|
706
714
|
start: 0,
|
|
707
715
|
end: H.value
|
|
708
|
-
})),
|
|
709
|
-
|
|
710
|
-
timeLabelsEls:
|
|
711
|
-
timeLabels:
|
|
712
|
-
slicer:
|
|
716
|
+
})), nr = _(() => Y.value.xLabels);
|
|
717
|
+
de({
|
|
718
|
+
timeLabelsEls: Yt,
|
|
719
|
+
timeLabels: nr,
|
|
720
|
+
slicer: tr,
|
|
713
721
|
configRef: L,
|
|
714
722
|
rotationPath: [
|
|
715
723
|
"style",
|
|
@@ -729,12 +737,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
729
737
|
isAutoSize: !1,
|
|
730
738
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
731
739
|
rotation: L.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
732
|
-
width:
|
|
733
|
-
height:
|
|
734
|
-
}),
|
|
735
|
-
timeLabelsEls:
|
|
736
|
-
timeLabels:
|
|
737
|
-
slicer:
|
|
740
|
+
width: Cn,
|
|
741
|
+
height: wn
|
|
742
|
+
}), de({
|
|
743
|
+
timeLabelsEls: Xt,
|
|
744
|
+
timeLabels: nr,
|
|
745
|
+
slicer: tr,
|
|
738
746
|
configRef: L,
|
|
739
747
|
rotationPath: [
|
|
740
748
|
"style",
|
|
@@ -756,13 +764,13 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
756
764
|
isAutoSize: !1,
|
|
757
765
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
758
766
|
rotation: L.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
759
|
-
width:
|
|
760
|
-
height:
|
|
767
|
+
width: Cn,
|
|
768
|
+
height: wn
|
|
761
769
|
});
|
|
762
|
-
let
|
|
770
|
+
let rr = _(() => {
|
|
763
771
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
764
772
|
return {
|
|
765
|
-
component: e ?
|
|
773
|
+
component: e ? Et : _e,
|
|
766
774
|
title: `${L.value.style.title.text}${L.value.style.title.subtitle.text ? `: ${L.value.style.title.subtitle.text}` : ""}`,
|
|
767
775
|
props: e ? {
|
|
768
776
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -770,9 +778,9 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
770
778
|
headerColor: L.value.table.th.color,
|
|
771
779
|
headerBg: L.value.table.th.backgroundColor,
|
|
772
780
|
isFullscreen: Q.value,
|
|
773
|
-
fullscreenParent:
|
|
781
|
+
fullscreenParent: P.value,
|
|
774
782
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
775
|
-
isCursorPointer:
|
|
783
|
+
isCursorPointer: an.value
|
|
776
784
|
} : {
|
|
777
785
|
hideDetails: !0,
|
|
778
786
|
config: {
|
|
@@ -790,47 +798,47 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
790
798
|
}
|
|
791
799
|
};
|
|
792
800
|
});
|
|
793
|
-
|
|
794
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
801
|
+
Le(() => B.value.showTable, async (e) => {
|
|
802
|
+
L.value.table.show || (e && L.value.table.useDialog && Bt.value ? (await De(), Bt.value.open()) : "close" in Bt.value && Bt.value.close());
|
|
795
803
|
});
|
|
796
|
-
let { isResponsive:
|
|
797
|
-
function
|
|
798
|
-
B.value.showTable = !1,
|
|
804
|
+
let { isResponsive: ir } = xe(Lt, bn);
|
|
805
|
+
function ar() {
|
|
806
|
+
B.value.showTable = !1, Vt.value && Vt.value.setTableIconState(!1);
|
|
799
807
|
}
|
|
800
|
-
let
|
|
808
|
+
let or = _(() => L.value.style.backgroundColor), { exportSvg: sr, getSvg: cr } = ce({
|
|
801
809
|
svg: z,
|
|
802
810
|
title: _(() => L.value.style.title),
|
|
803
|
-
backgroundColor:
|
|
811
|
+
backgroundColor: or
|
|
804
812
|
});
|
|
805
|
-
async function
|
|
806
|
-
|
|
813
|
+
async function lr({ isCb: e }) {
|
|
814
|
+
Ut.value = !0, await De();
|
|
807
815
|
try {
|
|
808
816
|
if (e) {
|
|
809
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
817
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await cr();
|
|
810
818
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
811
819
|
blob: e,
|
|
812
820
|
url: t,
|
|
813
821
|
text: n,
|
|
814
822
|
dataUrl: r
|
|
815
823
|
}));
|
|
816
|
-
} else await Promise.resolve(
|
|
824
|
+
} else await Promise.resolve(sr());
|
|
817
825
|
} finally {
|
|
818
|
-
|
|
826
|
+
Ut.value = !1;
|
|
819
827
|
}
|
|
820
828
|
}
|
|
821
|
-
function
|
|
829
|
+
function ur(e) {
|
|
822
830
|
if (e?.stage === "start") {
|
|
823
|
-
|
|
831
|
+
Ht.value = !0;
|
|
824
832
|
return;
|
|
825
833
|
}
|
|
826
834
|
if (e?.stage === "end") {
|
|
827
|
-
|
|
835
|
+
Ht.value = !1;
|
|
828
836
|
return;
|
|
829
837
|
}
|
|
830
|
-
|
|
838
|
+
vn();
|
|
831
839
|
}
|
|
832
|
-
async function
|
|
833
|
-
if (
|
|
840
|
+
async function dr() {
|
|
841
|
+
if (At("copyAlt", {
|
|
834
842
|
config: L.value,
|
|
835
843
|
dataset: X.value
|
|
836
844
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -842,7 +850,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
842
850
|
dataset: X.value
|
|
843
851
|
}));
|
|
844
852
|
}
|
|
845
|
-
function
|
|
853
|
+
function fr(e, t) {
|
|
846
854
|
let n = X.value[e];
|
|
847
855
|
if (!n) return null;
|
|
848
856
|
let r = n.temperatures[t];
|
|
@@ -852,85 +860,85 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
852
860
|
columnIndex: t
|
|
853
861
|
} : null;
|
|
854
862
|
}
|
|
855
|
-
function
|
|
863
|
+
function pr(e, t) {
|
|
856
864
|
let n = 0;
|
|
857
865
|
for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
|
|
858
866
|
return n + t;
|
|
859
867
|
}
|
|
860
|
-
function
|
|
861
|
-
I.value = null,
|
|
868
|
+
function mr() {
|
|
869
|
+
I.value = null, en.value = null, rn.value = !0;
|
|
862
870
|
}
|
|
863
|
-
function
|
|
864
|
-
|
|
871
|
+
function hr() {
|
|
872
|
+
Bn(), rn.value = !1;
|
|
865
873
|
}
|
|
866
|
-
function
|
|
867
|
-
if (!z.value ||
|
|
874
|
+
function gr(e) {
|
|
875
|
+
if (!z.value || Xn.value || document.activeElement !== z.value || !$.value.length) return;
|
|
868
876
|
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";
|
|
869
877
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
870
878
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
871
|
-
|
|
879
|
+
Bn();
|
|
872
880
|
return;
|
|
873
881
|
}
|
|
874
882
|
if (a) {
|
|
875
883
|
if (I.value === null) return;
|
|
876
884
|
let e = $.value[I.value];
|
|
877
885
|
if (!e) return;
|
|
878
|
-
|
|
886
|
+
Qn(e.cell, e.rowIndex);
|
|
879
887
|
return;
|
|
880
888
|
}
|
|
881
889
|
let s = I.value === null ? null : $.value[I.value];
|
|
882
890
|
if (!s) {
|
|
883
|
-
let e =
|
|
891
|
+
let e = Ft.value ? $.value.findIndex((e) => e.cell.id === Ft.value) : null;
|
|
884
892
|
if (e !== null && e >= 0 && e < $.value.length) {
|
|
885
893
|
let a = $.value[e];
|
|
886
894
|
if (!a) return;
|
|
887
895
|
let o = a.rowIndex, s = a.columnIndex;
|
|
888
896
|
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
889
|
-
let c =
|
|
897
|
+
let c = vr.value.rowCount;
|
|
890
898
|
if (c <= 0) return;
|
|
891
899
|
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
892
900
|
let l = X.value[o];
|
|
893
901
|
if (!l || !l.temperatures.length) return;
|
|
894
902
|
let u = l.temperatures.length;
|
|
895
903
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
896
|
-
let d =
|
|
904
|
+
let d = fr(o, s);
|
|
897
905
|
if (!d) return;
|
|
898
|
-
let f =
|
|
899
|
-
|
|
906
|
+
let f = pr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
907
|
+
Hn(d.cell, d.rowIndex, p, m, "keyboard", f);
|
|
900
908
|
return;
|
|
901
909
|
}
|
|
902
910
|
let a = $.value[0];
|
|
903
911
|
if (!a) return;
|
|
904
912
|
let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
|
|
905
|
-
|
|
913
|
+
Hn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
906
914
|
return;
|
|
907
915
|
}
|
|
908
916
|
let c = s.rowIndex, l = s.columnIndex;
|
|
909
917
|
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
910
|
-
let u =
|
|
918
|
+
let u = vr.value.rowCount;
|
|
911
919
|
if (u <= 0) return;
|
|
912
920
|
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
913
921
|
let d = X.value[c];
|
|
914
922
|
if (!d || !d.temperatures.length) return;
|
|
915
923
|
let f = d.temperatures.length;
|
|
916
924
|
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
917
|
-
let p =
|
|
925
|
+
let p = fr(c, l);
|
|
918
926
|
if (!p) return;
|
|
919
|
-
let m =
|
|
920
|
-
|
|
927
|
+
let m = pr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, h = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
928
|
+
Hn(p.cell, p.rowIndex, ee, h, "keyboard", m);
|
|
921
929
|
}
|
|
922
|
-
let
|
|
930
|
+
let _r = _(() => ({
|
|
923
931
|
headers: [L.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
924
932
|
rows: Y.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
|
|
925
933
|
let n = e.values?.[t];
|
|
926
|
-
return isNaN(n) ? "-" :
|
|
934
|
+
return isNaN(n) ? "-" : i({
|
|
927
935
|
p: L.value.style.layout.dataLabels.prefix,
|
|
928
936
|
v: n,
|
|
929
937
|
s: L.value.style.layout.dataLabels.suffix,
|
|
930
938
|
r: L.value.table.td.roundingValue
|
|
931
939
|
});
|
|
932
940
|
})])
|
|
933
|
-
})),
|
|
941
|
+
})), vr = _(() => ({
|
|
934
942
|
rowCount: X.value.length,
|
|
935
943
|
columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
|
|
936
944
|
})), $ = _(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
@@ -938,38 +946,38 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
938
946
|
rowIndex: t,
|
|
939
947
|
columnIndex: n
|
|
940
948
|
}))));
|
|
941
|
-
return
|
|
942
|
-
getData:
|
|
943
|
-
getImage:
|
|
944
|
-
generatePdf:
|
|
945
|
-
generateCsv:
|
|
946
|
-
generateImage:
|
|
947
|
-
generateSvg:
|
|
948
|
-
toggleTable:
|
|
949
|
-
toggleTooltip:
|
|
950
|
-
toggleAnnotator:
|
|
951
|
-
toggleFullscreen:
|
|
952
|
-
copyAlt:
|
|
953
|
-
}), (t, n) => (
|
|
949
|
+
return me({
|
|
950
|
+
getData: $n,
|
|
951
|
+
getImage: er,
|
|
952
|
+
generatePdf: _n,
|
|
953
|
+
generateCsv: Kn,
|
|
954
|
+
generateImage: vn,
|
|
955
|
+
generateSvg: lr,
|
|
956
|
+
toggleTable: Jn,
|
|
957
|
+
toggleTooltip: Yn,
|
|
958
|
+
toggleAnnotator: Zn,
|
|
959
|
+
toggleFullscreen: qn,
|
|
960
|
+
copyAlt: dr
|
|
961
|
+
}), (t, n) => (E(), b("div", {
|
|
954
962
|
ref_key: "heatmapChart",
|
|
955
|
-
ref:
|
|
956
|
-
class:
|
|
957
|
-
style:
|
|
958
|
-
id: `heatmap__${
|
|
959
|
-
onMouseenter: n[1] ||= () =>
|
|
963
|
+
ref: P,
|
|
964
|
+
class: Oe(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
965
|
+
style: T(`font-family:${L.value.style.fontFamily};width:100%;${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.backgroundColor}`),
|
|
966
|
+
id: `heatmap__${Mt.value}`,
|
|
967
|
+
onMouseenter: n[1] ||= () => pn(!0),
|
|
960
968
|
onMouseleave: n[2] ||= () => {
|
|
961
|
-
|
|
969
|
+
pn(!1), rn.value || Bn();
|
|
962
970
|
}
|
|
963
971
|
}, [
|
|
964
|
-
|
|
965
|
-
id: `chart-instructions-${
|
|
972
|
+
x("div", {
|
|
973
|
+
id: `chart-instructions-${Mt.value}`,
|
|
966
974
|
class: "sr-only"
|
|
967
|
-
}, [
|
|
968
|
-
|
|
975
|
+
}, [x("p", null, A(L.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
976
|
+
_r.value?.rows?.length ? (E(), v(ve, {
|
|
969
977
|
key: 0,
|
|
970
|
-
uid:
|
|
971
|
-
head:
|
|
972
|
-
body:
|
|
978
|
+
uid: Mt.value,
|
|
979
|
+
head: _r.value.headers,
|
|
980
|
+
body: _r.value.rows,
|
|
973
981
|
notice: L.value.a11y.translations.tableAvailable,
|
|
974
982
|
caption: L.value.a11y.translations.tableCaption
|
|
975
983
|
}, null, 8, [
|
|
@@ -978,22 +986,22 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
978
986
|
"body",
|
|
979
987
|
"notice",
|
|
980
988
|
"caption"
|
|
981
|
-
])) :
|
|
982
|
-
L.value.userOptions.buttons.annotator ? (
|
|
989
|
+
])) : y("", !0),
|
|
990
|
+
L.value.userOptions.buttons.annotator ? (E(), v(j(Ct), {
|
|
983
991
|
key: 1,
|
|
984
|
-
svgRef:
|
|
992
|
+
svgRef: j(z),
|
|
985
993
|
backgroundColor: L.value.style.backgroundColor,
|
|
986
994
|
color: L.value.style.color,
|
|
987
|
-
active:
|
|
988
|
-
isCursorPointer:
|
|
989
|
-
onClose:
|
|
995
|
+
active: Xn.value,
|
|
996
|
+
isCursorPointer: an.value,
|
|
997
|
+
onClose: Zn
|
|
990
998
|
}, {
|
|
991
|
-
"annotator-action-close":
|
|
992
|
-
"annotator-action-color":
|
|
993
|
-
"annotator-action-draw":
|
|
994
|
-
"annotator-action-undo":
|
|
995
|
-
"annotator-action-redo":
|
|
996
|
-
"annotator-action-delete":
|
|
999
|
+
"annotator-action-close": M(() => [k(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1000
|
+
"annotator-action-color": M(({ color: e }) => [k(t.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
1001
|
+
"annotator-action-draw": M(({ mode: e }) => [k(t.$slots, "annotator-action-draw", w(C({ mode: e })), void 0, !0)]),
|
|
1002
|
+
"annotator-action-undo": M(({ disabled: e }) => [k(t.$slots, "annotator-action-undo", w(C({ disabled: e })), void 0, !0)]),
|
|
1003
|
+
"annotator-action-redo": M(({ disabled: e }) => [k(t.$slots, "annotator-action-redo", w(C({ disabled: e })), void 0, !0)]),
|
|
1004
|
+
"annotator-action-delete": M(({ disabled: e }) => [k(t.$slots, "annotator-action-delete", w(C({ disabled: e })), void 0, !0)]),
|
|
997
1005
|
_: 3
|
|
998
1006
|
}, 8, [
|
|
999
1007
|
"svgRef",
|
|
@@ -1001,21 +1009,21 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1001
1009
|
"color",
|
|
1002
1010
|
"active",
|
|
1003
1011
|
"isCursorPointer"
|
|
1004
|
-
])) :
|
|
1005
|
-
|
|
1012
|
+
])) : y("", !0),
|
|
1013
|
+
yn.value ? (E(), b("div", {
|
|
1006
1014
|
key: 2,
|
|
1007
1015
|
ref_key: "noTitle",
|
|
1008
|
-
ref:
|
|
1016
|
+
ref: Gt,
|
|
1009
1017
|
class: "vue-data-ui-no-title-space",
|
|
1010
1018
|
style: "height:36px; width: 100%;background:transparent"
|
|
1011
|
-
}, null, 512)) :
|
|
1012
|
-
L.value.style.title.text ? (
|
|
1019
|
+
}, null, 512)) : y("", !0),
|
|
1020
|
+
L.value.style.title.text ? (E(), b("div", {
|
|
1013
1021
|
key: 3,
|
|
1014
1022
|
ref_key: "chartTitle",
|
|
1015
|
-
ref:
|
|
1023
|
+
ref: Wt,
|
|
1016
1024
|
style: "width:100%;background:transparent"
|
|
1017
|
-
}, [(
|
|
1018
|
-
key: `title_${
|
|
1025
|
+
}, [(E(), v(pe, {
|
|
1026
|
+
key: `title_${Rt.value}`,
|
|
1019
1027
|
config: {
|
|
1020
1028
|
title: {
|
|
1021
1029
|
cy: "heatmap-div-title",
|
|
@@ -1026,16 +1034,16 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1026
1034
|
...L.value.style.title.subtitle
|
|
1027
1035
|
}
|
|
1028
1036
|
}
|
|
1029
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1030
|
-
L.value.userOptions.show &&
|
|
1037
|
+
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1038
|
+
L.value.userOptions.show && jt.value && (j(fn) || j(un)) ? (E(), v(j(wt), {
|
|
1031
1039
|
ref_key: "userOptionsRef",
|
|
1032
|
-
ref:
|
|
1033
|
-
key: `user_options_${
|
|
1040
|
+
ref: Vt,
|
|
1041
|
+
key: `user_options_${It.value}`,
|
|
1034
1042
|
backgroundColor: L.value.style.backgroundColor,
|
|
1035
1043
|
color: L.value.style.color,
|
|
1036
|
-
isImaging:
|
|
1037
|
-
isPrinting:
|
|
1038
|
-
uid:
|
|
1044
|
+
isImaging: j(gn),
|
|
1045
|
+
isPrinting: j(hn),
|
|
1046
|
+
uid: Mt.value,
|
|
1039
1047
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.tooltip.show,
|
|
1040
1048
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1041
1049
|
hasImg: L.value.userOptions.buttons.img,
|
|
@@ -1047,28 +1055,28 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1047
1055
|
isFullscreen: Q.value,
|
|
1048
1056
|
isTooltip: B.value.showTooltip,
|
|
1049
1057
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1050
|
-
chartElement:
|
|
1058
|
+
chartElement: P.value,
|
|
1051
1059
|
position: L.value.userOptions.position,
|
|
1052
1060
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1053
|
-
isAnnotation:
|
|
1061
|
+
isAnnotation: Xn.value,
|
|
1054
1062
|
callbacks: L.value.userOptions.callbacks,
|
|
1055
1063
|
printScale: L.value.userOptions.print.scale,
|
|
1056
1064
|
tableDialog: L.value.table.useDialog,
|
|
1057
|
-
isCursorPointer:
|
|
1058
|
-
onToggleFullscreen:
|
|
1059
|
-
onGeneratePdf:
|
|
1060
|
-
onGenerateCsv:
|
|
1061
|
-
onGenerateImage:
|
|
1062
|
-
onGenerateSvg:
|
|
1063
|
-
onToggleTable:
|
|
1064
|
-
onToggleTooltip:
|
|
1065
|
-
onToggleAnnotator:
|
|
1066
|
-
onCopyAlt:
|
|
1067
|
-
style:
|
|
1068
|
-
},
|
|
1065
|
+
isCursorPointer: an.value,
|
|
1066
|
+
onToggleFullscreen: qn,
|
|
1067
|
+
onGeneratePdf: j(_n),
|
|
1068
|
+
onGenerateCsv: Kn,
|
|
1069
|
+
onGenerateImage: ur,
|
|
1070
|
+
onGenerateSvg: lr,
|
|
1071
|
+
onToggleTable: Jn,
|
|
1072
|
+
onToggleTooltip: Yn,
|
|
1073
|
+
onToggleAnnotator: Zn,
|
|
1074
|
+
onCopyAlt: dr,
|
|
1075
|
+
style: T({ visibility: j(fn) ? j(un) ? "visible" : "hidden" : "visible" })
|
|
1076
|
+
}, Ce({ _: 2 }, [
|
|
1069
1077
|
t.$slots.menuIcon ? {
|
|
1070
1078
|
name: "menuIcon",
|
|
1071
|
-
fn:
|
|
1079
|
+
fn: M(({ isOpen: e, color: n }) => [k(t.$slots, "menuIcon", w(C({
|
|
1072
1080
|
isOpen: e,
|
|
1073
1081
|
color: n
|
|
1074
1082
|
})), void 0, !0)]),
|
|
@@ -1076,37 +1084,37 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1076
1084
|
} : void 0,
|
|
1077
1085
|
t.$slots.optionTooltip ? {
|
|
1078
1086
|
name: "optionTooltip",
|
|
1079
|
-
fn:
|
|
1087
|
+
fn: M(() => [k(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1080
1088
|
key: "1"
|
|
1081
1089
|
} : void 0,
|
|
1082
1090
|
t.$slots.optionPdf ? {
|
|
1083
1091
|
name: "optionPdf",
|
|
1084
|
-
fn:
|
|
1092
|
+
fn: M(() => [k(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1085
1093
|
key: "2"
|
|
1086
1094
|
} : void 0,
|
|
1087
1095
|
t.$slots.optionCsv ? {
|
|
1088
1096
|
name: "optionCsv",
|
|
1089
|
-
fn:
|
|
1097
|
+
fn: M(() => [k(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1090
1098
|
key: "3"
|
|
1091
1099
|
} : void 0,
|
|
1092
1100
|
t.$slots.optionImg ? {
|
|
1093
1101
|
name: "optionImg",
|
|
1094
|
-
fn:
|
|
1102
|
+
fn: M(() => [k(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1095
1103
|
key: "4"
|
|
1096
1104
|
} : void 0,
|
|
1097
1105
|
t.$slots.optionSvg ? {
|
|
1098
1106
|
name: "optionSvg",
|
|
1099
|
-
fn:
|
|
1107
|
+
fn: M(() => [k(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1100
1108
|
key: "5"
|
|
1101
1109
|
} : void 0,
|
|
1102
1110
|
t.$slots.optionTable ? {
|
|
1103
1111
|
name: "optionTable",
|
|
1104
|
-
fn:
|
|
1112
|
+
fn: M(() => [k(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1105
1113
|
key: "6"
|
|
1106
1114
|
} : void 0,
|
|
1107
1115
|
t.$slots.optionFullscreen ? {
|
|
1108
1116
|
name: "optionFullscreen",
|
|
1109
|
-
fn:
|
|
1117
|
+
fn: M(({ toggleFullscreen: e, isFullscreen: n }) => [k(t.$slots, "optionFullscreen", w(C({
|
|
1110
1118
|
toggleFullscreen: e,
|
|
1111
1119
|
isFullscreen: n
|
|
1112
1120
|
})), void 0, !0)]),
|
|
@@ -1114,7 +1122,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1114
1122
|
} : void 0,
|
|
1115
1123
|
t.$slots.optionAnnotator ? {
|
|
1116
1124
|
name: "optionAnnotator",
|
|
1117
|
-
fn:
|
|
1125
|
+
fn: M(({ toggleAnnotator: e, isAnnotator: n }) => [k(t.$slots, "optionAnnotator", w(C({
|
|
1118
1126
|
toggleAnnotator: e,
|
|
1119
1127
|
isAnnotator: n
|
|
1120
1128
|
})), void 0, !0)]),
|
|
@@ -1122,58 +1130,58 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1122
1130
|
} : void 0,
|
|
1123
1131
|
t.$slots.optionAltCopy ? {
|
|
1124
1132
|
name: "optionAltCopy",
|
|
1125
|
-
fn:
|
|
1133
|
+
fn: M(({ altCopy: e }) => [k(t.$slots, "optionAltCopy", w(C({ altCopy: e })), void 0, !0)]),
|
|
1126
1134
|
key: "9"
|
|
1127
1135
|
} : void 0,
|
|
1128
1136
|
t.$slots["custom-menu-before"] ? {
|
|
1129
1137
|
name: "custom-menu-before",
|
|
1130
|
-
fn:
|
|
1138
|
+
fn: M(() => [k(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1131
1139
|
key: "10"
|
|
1132
1140
|
} : void 0,
|
|
1133
1141
|
t.$slots["custom-menu-after"] ? {
|
|
1134
1142
|
name: "custom-menu-after",
|
|
1135
|
-
fn:
|
|
1143
|
+
fn: M(() => [k(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1136
1144
|
key: "11"
|
|
1137
1145
|
} : void 0
|
|
1138
|
-
]), 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.style".split("."))) :
|
|
1139
|
-
|
|
1146
|
+
]), 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.style".split("."))) : y("", !0),
|
|
1147
|
+
x("div", { class: Oe({
|
|
1140
1148
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1141
1149
|
"vue-ui-heatmap-chart-wrapper-legend-right": L.value.style.legend.show
|
|
1142
1150
|
}) }, [
|
|
1143
|
-
(
|
|
1151
|
+
(E(), b("svg", {
|
|
1144
1152
|
ref_key: "svgRef",
|
|
1145
1153
|
ref: z,
|
|
1146
|
-
xmlns:
|
|
1147
|
-
"aria-describedby": `chart-instructions-${
|
|
1148
|
-
class:
|
|
1154
|
+
xmlns: j(p),
|
|
1155
|
+
"aria-describedby": `chart-instructions-${Mt.value}`,
|
|
1156
|
+
class: Oe({
|
|
1149
1157
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1150
1158
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1151
1159
|
}),
|
|
1152
1160
|
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
1153
1161
|
width: "100%",
|
|
1154
|
-
style:
|
|
1162
|
+
style: T(`overflow: visible; background:transparent;color:${L.value.style.color}`),
|
|
1155
1163
|
"aria-live": "polite",
|
|
1156
1164
|
role: "img",
|
|
1157
1165
|
preserveAspectRatio: "xMidYMid",
|
|
1158
1166
|
tabindex: "0",
|
|
1159
|
-
onFocus:
|
|
1160
|
-
onBlur:
|
|
1161
|
-
onKeydown:
|
|
1167
|
+
onFocus: mr,
|
|
1168
|
+
onBlur: hr,
|
|
1169
|
+
onKeydown: gr
|
|
1162
1170
|
}, [
|
|
1163
|
-
|
|
1164
|
-
t.$slots["chart-background"] ? (
|
|
1171
|
+
Te(j(Tt)),
|
|
1172
|
+
t.$slots["chart-background"] ? (E(), b("foreignObject", {
|
|
1165
1173
|
key: 0,
|
|
1166
1174
|
x: K.value.left,
|
|
1167
1175
|
y: K.value.top,
|
|
1168
1176
|
width: K.value.width,
|
|
1169
1177
|
height: K.value.height,
|
|
1170
1178
|
style: { pointerEvents: "none" }
|
|
1171
|
-
}, [
|
|
1172
|
-
L.value.style.layout.cells.columnTotal.color.show ? (
|
|
1179
|
+
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : y("", !0),
|
|
1180
|
+
L.value.style.layout.cells.columnTotal.color.show ? (E(), b("g", {
|
|
1173
1181
|
key: 1,
|
|
1174
1182
|
ref_key: "xAxisSumRects",
|
|
1175
|
-
ref:
|
|
1176
|
-
}, [(
|
|
1183
|
+
ref: Zt
|
|
1184
|
+
}, [(E(!0), b(g, null, O(Y.value.xTotals, (e, t) => (E(), b("rect", {
|
|
1177
1185
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1178
1186
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1179
1187
|
height: K.value.sumCellXHeight,
|
|
@@ -1181,7 +1189,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1181
1189
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1182
1190
|
stroke: L.value.style.backgroundColor,
|
|
1183
1191
|
"stroke-width": G.value
|
|
1184
|
-
}, null, 8,
|
|
1192
|
+
}, null, 8, Ye))), 256)), (E(!0), b(g, null, O(Y.value.xTotals, (e, t) => (E(), b("rect", {
|
|
1185
1193
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1186
1194
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1187
1195
|
height: K.value.sumCellXHeight,
|
|
@@ -1189,12 +1197,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1189
1197
|
fill: e.color,
|
|
1190
1198
|
stroke: L.value.style.backgroundColor,
|
|
1191
1199
|
"stroke-width": G.value
|
|
1192
|
-
}, null, 8,
|
|
1193
|
-
|
|
1200
|
+
}, null, 8, Xe))), 256))], 512)) : y("", !0),
|
|
1201
|
+
x("g", {
|
|
1194
1202
|
ref_key: "datapoints",
|
|
1195
|
-
ref:
|
|
1196
|
-
}, [(
|
|
1197
|
-
|
|
1203
|
+
ref: zt
|
|
1204
|
+
}, [(E(!0), b(g, null, O(X.value, (e, t) => (E(), b(g, null, [(E(!0), b(g, null, O(e.temperatures, (e, n) => (E(), b("g", null, [
|
|
1205
|
+
x("rect", {
|
|
1198
1206
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1199
1207
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1200
1208
|
width: K.value.cellSize.width - G.value,
|
|
@@ -1202,8 +1210,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1202
1210
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1203
1211
|
stroke: L.value.style.backgroundColor,
|
|
1204
1212
|
"stroke-width": G.value
|
|
1205
|
-
}, null, 8,
|
|
1206
|
-
|
|
1213
|
+
}, null, 8, Ze),
|
|
1214
|
+
x("rect", {
|
|
1207
1215
|
"data-a11y-cell-id": e.id,
|
|
1208
1216
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1209
1217
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
@@ -1213,47 +1221,47 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1213
1221
|
stroke: L.value.style.backgroundColor,
|
|
1214
1222
|
"stroke-width": G.value,
|
|
1215
1223
|
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1216
|
-
onMouseover: (r) =>
|
|
1217
|
-
onMouseout: () =>
|
|
1224
|
+
onMouseover: (r) => Hn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", pr(t, n)),
|
|
1225
|
+
onMouseout: () => Un({
|
|
1218
1226
|
datapoint: e,
|
|
1219
1227
|
seriesIndex: t
|
|
1220
1228
|
}),
|
|
1221
|
-
onClick: () =>
|
|
1222
|
-
}, null, 40,
|
|
1223
|
-
L.value.style.layout.cells.value.show ?
|
|
1229
|
+
onClick: () => Qn(e, t)
|
|
1230
|
+
}, null, 40, Qe),
|
|
1231
|
+
L.value.style.layout.cells.value.show ? ze((E(), b("text", {
|
|
1224
1232
|
key: 0,
|
|
1225
1233
|
"text-anchor": "middle",
|
|
1226
1234
|
"font-size": L.value.style.layout.cells.value.fontSize,
|
|
1227
1235
|
"font-weight": L.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1228
|
-
fill:
|
|
1236
|
+
fill: j(f)(e.color),
|
|
1229
1237
|
x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1230
1238
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.cells.value.fontSize / 3,
|
|
1231
1239
|
style: {
|
|
1232
1240
|
pointerEvents: "none",
|
|
1233
1241
|
userSelect: "none"
|
|
1234
1242
|
}
|
|
1235
|
-
}, [
|
|
1243
|
+
}, [we(A(j(c)(L.value.style.layout.cells.value.formatter, e.value, j(i)({
|
|
1236
1244
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1237
1245
|
v: e.value,
|
|
1238
1246
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1239
1247
|
r: L.value.style.layout.cells.value.roundingValue
|
|
1240
|
-
}), { datapoint: e })), 1)], 8,
|
|
1248
|
+
}), { datapoint: e })), 1)], 8, $e)), [[j(He), {
|
|
1241
1249
|
cellWidth: K.value.cellSize.width - G.value,
|
|
1242
1250
|
cellHeight: K.value.cellSize.height - G.value,
|
|
1243
1251
|
maxFontSize: L.value.style.layout.cells.value.fontSize,
|
|
1244
1252
|
minFontSize: 10,
|
|
1245
1253
|
index: t * H.value + n,
|
|
1246
|
-
reportHide:
|
|
1247
|
-
reportRotation:
|
|
1248
|
-
hideAll:
|
|
1249
|
-
rotateAll:
|
|
1250
|
-
}]]) :
|
|
1254
|
+
reportHide: Rn,
|
|
1255
|
+
reportRotation: Fn,
|
|
1256
|
+
hideAll: Ln.value,
|
|
1257
|
+
rotateAll: Pn.value
|
|
1258
|
+
}]]) : y("", !0)
|
|
1251
1259
|
]))), 256))], 64))), 256))], 512),
|
|
1252
|
-
L.value.style.layout.cells.rowTotal.color.show ? (
|
|
1260
|
+
L.value.style.layout.cells.rowTotal.color.show ? (E(), b("g", {
|
|
1253
1261
|
key: 2,
|
|
1254
1262
|
ref_key: "yAxisSumRects",
|
|
1255
|
-
ref:
|
|
1256
|
-
}, [(
|
|
1263
|
+
ref: Jt
|
|
1264
|
+
}, [(E(!0), b(g, null, O(X.value, (e, t) => (E(), b(g, null, [x("rect", {
|
|
1257
1265
|
x: K.value.left,
|
|
1258
1266
|
y: K.value.top + K.value.cellSize.height * t,
|
|
1259
1267
|
width: K.value.sumCellXHeight,
|
|
@@ -1261,7 +1269,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1261
1269
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1262
1270
|
stroke: L.value.style.backgroundColor,
|
|
1263
1271
|
"stroke-width": G.value
|
|
1264
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, et), x("rect", {
|
|
1265
1273
|
x: K.value.left,
|
|
1266
1274
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1267
1275
|
width: K.value.sumCellXHeight,
|
|
@@ -1269,12 +1277,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1269
1277
|
fill: Y.value.yTotals[t].color,
|
|
1270
1278
|
stroke: L.value.style.backgroundColor,
|
|
1271
1279
|
"stroke-width": G.value
|
|
1272
|
-
}, null, 8,
|
|
1273
|
-
L.value.style.layout.dataLabels.yAxis.show ? (
|
|
1280
|
+
}, null, 8, tt)], 64))), 256))], 512)) : y("", !0),
|
|
1281
|
+
L.value.style.layout.dataLabels.yAxis.show ? (E(), b("g", {
|
|
1274
1282
|
key: 3,
|
|
1275
1283
|
ref_key: "yAxisLabels",
|
|
1276
|
-
ref:
|
|
1277
|
-
}, [(
|
|
1284
|
+
ref: qt
|
|
1285
|
+
}, [(E(!0), b(g, null, O(X.value, (e, t) => (E(), b(g, null, [x("text", {
|
|
1278
1286
|
class: "vue-ui-heatmap-row-name",
|
|
1279
1287
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1280
1288
|
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -1282,7 +1290,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1282
1290
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.dataLabels.yAxis.fontSize / 3 + L.value.style.layout.dataLabels.yAxis.offsetY - (L.value.style.layout.cells.rowTotal.value.show ? L.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
1283
1291
|
"text-anchor": "end",
|
|
1284
1292
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1285
|
-
},
|
|
1293
|
+
}, A(Y.value.yLabels[t]), 9, nt), L.value.style.layout.cells.rowTotal.value.show ? (E(), b("text", {
|
|
1286
1294
|
key: 0,
|
|
1287
1295
|
class: "vue-ui-heatmap-row-total",
|
|
1288
1296
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1291,12 +1299,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1291
1299
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.dataLabels.yAxis.fontSize + L.value.style.layout.dataLabels.yAxis.offsetY,
|
|
1292
1300
|
"text-anchor": "end",
|
|
1293
1301
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1294
|
-
},
|
|
1295
|
-
L.value.style.layout.dataLabels.xAxis.show ? (
|
|
1302
|
+
}, A(Wn(t)), 9, rt)) : y("", !0)], 64))), 256))], 512)) : y("", !0),
|
|
1303
|
+
L.value.style.layout.dataLabels.xAxis.show ? (E(), b("g", {
|
|
1296
1304
|
key: 4,
|
|
1297
1305
|
ref_key: "xAxisLabels",
|
|
1298
|
-
ref:
|
|
1299
|
-
}, [(
|
|
1306
|
+
ref: Yt
|
|
1307
|
+
}, [(E(!0), b(g, null, O(Y.value.xLabels, (e, t) => (E(), b(g, null, [!L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && t % L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (E(), b("text", {
|
|
1300
1308
|
key: 0,
|
|
1301
1309
|
class: "vue-ui-heatmap-col-name",
|
|
1302
1310
|
"text-anchor": L.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : L.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
@@ -1304,135 +1312,135 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1304
1312
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1305
1313
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1306
1314
|
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + L.value.style.layout.dataLabels.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${L.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1307
|
-
},
|
|
1308
|
-
L.value.style.layout.cells.columnTotal.value.show ? (
|
|
1315
|
+
}, A(e), 9, it)) : y("", !0)], 64))), 256))], 512)) : y("", !0),
|
|
1316
|
+
L.value.style.layout.cells.columnTotal.value.show ? (E(), b("g", {
|
|
1309
1317
|
key: 5,
|
|
1310
1318
|
ref_key: "xAxisSums",
|
|
1311
|
-
ref:
|
|
1312
|
-
}, [(
|
|
1319
|
+
ref: Xt
|
|
1320
|
+
}, [(E(!0), b(g, null, O(Y.value.xLabels, (e, t) => (E(), b("text", {
|
|
1313
1321
|
class: "vue-ui-heatmap-col-total",
|
|
1314
1322
|
"text-anchor": L.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : L.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1315
1323
|
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1316
1324
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1317
1325
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1318
1326
|
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + L.value.style.layout.dataLabels.xAxis.offsetX + L.value.style.layout.cells.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + L.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${L.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1319
|
-
},
|
|
1320
|
-
|
|
1327
|
+
}, A(Gn(t)), 9, at))), 256))], 512)) : y("", !0),
|
|
1328
|
+
F.value ? (E(), b("g", ot, [x("rect", {
|
|
1321
1329
|
style: { "pointer-events": "none" },
|
|
1322
|
-
x:
|
|
1323
|
-
y:
|
|
1330
|
+
x: F.value.x - L.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1331
|
+
y: F.value.y - L.value.style.layout.cells.selected.border / 2 + G.value,
|
|
1324
1332
|
width: K.value.cellSize.width - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1325
1333
|
height: K.value.cellSize.height - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1326
1334
|
fill: "transparent",
|
|
1327
1335
|
stroke: L.value.style.layout.cells.selected.color,
|
|
1328
1336
|
"stroke-width": L.value.style.layout.cells.selected.border,
|
|
1329
1337
|
rx: 1
|
|
1330
|
-
}, null, 8,
|
|
1331
|
-
L.value.style.layout.crosshairs.show &&
|
|
1338
|
+
}, null, 8, st)])) : y("", !0),
|
|
1339
|
+
L.value.style.layout.crosshairs.show && F.value ? (E(), b("g", ct, [x("line", {
|
|
1332
1340
|
x1: K.value.left + K.value.sumCellXHeight,
|
|
1333
|
-
x2:
|
|
1334
|
-
y1:
|
|
1335
|
-
y2:
|
|
1341
|
+
x2: F.value.x + K.value.sumCellXHeight,
|
|
1342
|
+
y1: F.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1343
|
+
y2: F.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1336
1344
|
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1337
1345
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1338
1346
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1339
1347
|
"stroke-linecap": "round"
|
|
1340
|
-
}, null, 8,
|
|
1341
|
-
x1:
|
|
1342
|
-
x2:
|
|
1343
|
-
y1:
|
|
1348
|
+
}, null, 8, lt), x("line", {
|
|
1349
|
+
x1: F.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1350
|
+
x2: F.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1351
|
+
y1: F.value.y,
|
|
1344
1352
|
y2: K.value.top,
|
|
1345
1353
|
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1346
1354
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1347
1355
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1348
1356
|
"stroke-linecap": "round"
|
|
1349
|
-
}, null, 8,
|
|
1350
|
-
|
|
1357
|
+
}, null, 8, ut)])) : y("", !0),
|
|
1358
|
+
k(t.$slots, "svg", { svg: {
|
|
1351
1359
|
...U.value,
|
|
1352
1360
|
drawingArea: K.value,
|
|
1353
|
-
isPrintingImg:
|
|
1354
|
-
isPrintingSvg:
|
|
1361
|
+
isPrintingImg: j(hn) || j(gn) || Ht.value,
|
|
1362
|
+
isPrintingSvg: Ut.value
|
|
1355
1363
|
} }, void 0, !0)
|
|
1356
|
-
], 46,
|
|
1357
|
-
L.value.style.legend.show ? (
|
|
1364
|
+
], 46, qe)),
|
|
1365
|
+
L.value.style.legend.show ? (E(), b("div", {
|
|
1358
1366
|
key: 0,
|
|
1359
1367
|
ref_key: "legendRight",
|
|
1360
|
-
ref:
|
|
1368
|
+
ref: Kt,
|
|
1361
1369
|
class: "vue-ui-heatmap-legend-right",
|
|
1362
|
-
style:
|
|
1370
|
+
style: T({ "--legend-width": L.value.style.legend.width + "px" })
|
|
1363
1371
|
}, [
|
|
1364
|
-
|
|
1372
|
+
j(cn) ? y("", !0) : (E(), b("div", {
|
|
1365
1373
|
key: 0,
|
|
1366
1374
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1367
|
-
style:
|
|
1375
|
+
style: T({
|
|
1368
1376
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1369
1377
|
color: L.value.style.legend.color
|
|
1370
1378
|
})
|
|
1371
|
-
},
|
|
1379
|
+
}, A(j(c)(L.value.style.layout.cells.value.formatter, j(o)(q.value), j(i)({
|
|
1372
1380
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1373
|
-
v:
|
|
1381
|
+
v: j(o)(q.value),
|
|
1374
1382
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1375
1383
|
r: L.value.style.legend.roundingValue
|
|
1376
1384
|
}))), 5)),
|
|
1377
|
-
|
|
1385
|
+
x("div", dt, [x("div", {
|
|
1378
1386
|
class: "vue-ui-heatmap-gauge",
|
|
1379
|
-
style:
|
|
1380
|
-
}, [
|
|
1387
|
+
style: T({ background: `linear-gradient(to bottom, ${L.value.style.layout.cells.colors.hot}, ${L.value.style.layout.cells.colors.cold})` })
|
|
1388
|
+
}, [ze(x("div", {
|
|
1381
1389
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1382
|
-
"data-value":
|
|
1390
|
+
"data-value": j(c)(L.value.style.layout.cells.value.formatter, j(o)(Z.value), j(i)({
|
|
1383
1391
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1384
|
-
v:
|
|
1392
|
+
v: j(o)(Z.value),
|
|
1385
1393
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1386
1394
|
r: L.value.style.legend.roundingValue
|
|
1387
1395
|
})),
|
|
1388
|
-
style:
|
|
1396
|
+
style: T({
|
|
1389
1397
|
position: "absolute",
|
|
1390
1398
|
width: "100%",
|
|
1391
1399
|
height: "2px",
|
|
1392
|
-
background: [void 0, null].includes(Z.value) ? "transparent" :
|
|
1400
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : j(f)(zn.value.datapoint.color),
|
|
1393
1401
|
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1394
1402
|
transition: "all 0.2s ease-in-out",
|
|
1395
1403
|
"--background-color": L.value.style.backgroundColor,
|
|
1396
|
-
"--gauge-arrow-color":
|
|
1397
|
-
"--gauge-arrow-text-color":
|
|
1404
|
+
"--gauge-arrow-color": j(f)(L.value.style.backgroundColor),
|
|
1405
|
+
"--gauge-arrow-text-color": j(f)(L.value.style.backgroundColor),
|
|
1398
1406
|
"--gauge-arrow-value": Z.value,
|
|
1399
1407
|
"--gauge-arrow-font-size": L.value.style.legend.fontSize + "px"
|
|
1400
1408
|
})
|
|
1401
|
-
}, [
|
|
1409
|
+
}, [x("div", pt, A(j(c)(L.value.style.layout.cells.value.formatter, j(o)(Z.value), j(i)({
|
|
1402
1410
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1403
|
-
v:
|
|
1411
|
+
v: j(o)(Z.value),
|
|
1404
1412
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1405
1413
|
r: L.value.style.legend.roundingValue
|
|
1406
|
-
}))), 1)], 12,
|
|
1407
|
-
|
|
1414
|
+
}))), 1)], 12, ft), [[Ie, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1415
|
+
j(cn) ? y("", !0) : (E(), b("div", {
|
|
1408
1416
|
key: 1,
|
|
1409
1417
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1410
|
-
style:
|
|
1418
|
+
style: T({
|
|
1411
1419
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1412
1420
|
color: L.value.style.legend.color
|
|
1413
1421
|
})
|
|
1414
|
-
},
|
|
1422
|
+
}, A(j(c)(L.value.style.layout.cells.value.formatter, j(o)(Dn.value), j(i)({
|
|
1415
1423
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1416
|
-
v:
|
|
1424
|
+
v: j(o)(Dn.value),
|
|
1417
1425
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1418
1426
|
r: L.value.style.legend.roundingValue
|
|
1419
1427
|
}))), 5))
|
|
1420
|
-
], 4)) :
|
|
1421
|
-
t.$slots.hint ? (
|
|
1428
|
+
], 4)) : y("", !0),
|
|
1429
|
+
t.$slots.hint ? (E(), b("div", mt, [k(t.$slots, "hint", w(C({
|
|
1422
1430
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1423
|
-
isVisible:
|
|
1424
|
-
})), void 0, !0)])) :
|
|
1431
|
+
isVisible: rn.value
|
|
1432
|
+
})), void 0, !0)])) : y("", !0)
|
|
1425
1433
|
], 2),
|
|
1426
|
-
t.$slots.watermark ? (
|
|
1427
|
-
t.$slots.source ? (
|
|
1434
|
+
t.$slots.watermark ? (E(), b("div", ht, [k(t.$slots, "watermark", w(C({ isPrinting: j(hn) || j(gn) || Ht.value || Ut.value })), void 0, !0)])) : y("", !0),
|
|
1435
|
+
t.$slots.source ? (E(), b("div", {
|
|
1428
1436
|
key: 6,
|
|
1429
1437
|
ref_key: "source",
|
|
1430
|
-
ref:
|
|
1438
|
+
ref: Qt,
|
|
1431
1439
|
dir: "auto"
|
|
1432
|
-
}, [
|
|
1433
|
-
|
|
1440
|
+
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
1441
|
+
Te(j(We), {
|
|
1434
1442
|
teleportTo: L.value.style.tooltip.teleportTo,
|
|
1435
|
-
show: B.value.showTooltip &&
|
|
1443
|
+
show: B.value.showTooltip && Nt.value,
|
|
1436
1444
|
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
1437
1445
|
color: L.value.style.tooltip.color,
|
|
1438
1446
|
borderRadius: L.value.style.tooltip.borderRadius,
|
|
@@ -1443,20 +1451,20 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1443
1451
|
position: L.value.style.tooltip.position,
|
|
1444
1452
|
offsetX: L.value.style.tooltip.offsetX,
|
|
1445
1453
|
offsetY: L.value.style.tooltip.offsetY,
|
|
1446
|
-
parent:
|
|
1447
|
-
content:
|
|
1454
|
+
parent: P.value,
|
|
1455
|
+
content: Pt.value,
|
|
1448
1456
|
isFullscreen: Q.value,
|
|
1449
1457
|
isCustom: L.value.style.tooltip.customFormat && typeof L.value.style.tooltip.customFormat == "function",
|
|
1450
1458
|
smooth: L.value.style.tooltip.smooth,
|
|
1451
1459
|
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
1452
1460
|
smoothForce: L.value.style.tooltip.smoothForce,
|
|
1453
1461
|
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
1454
|
-
isA11yMode:
|
|
1455
|
-
a11yPosition:
|
|
1462
|
+
isA11yMode: nn.value === "keyboard",
|
|
1463
|
+
a11yPosition: tn.value
|
|
1456
1464
|
}, {
|
|
1457
|
-
"tooltip-before":
|
|
1458
|
-
tooltip:
|
|
1459
|
-
"tooltip-after":
|
|
1465
|
+
"tooltip-before": M(() => [k(t.$slots, "tooltip-before", w(C({ ...zn.value })), void 0, !0)]),
|
|
1466
|
+
tooltip: M(() => [k(t.$slots, "tooltip", w(C({ ...zn.value })), void 0, !0)]),
|
|
1467
|
+
"tooltip-after": M(() => [k(t.$slots, "tooltip-after", w(C({ ...zn.value })), void 0, !0)]),
|
|
1460
1468
|
_: 3
|
|
1461
1469
|
}, 8, [
|
|
1462
1470
|
"teleportTo",
|
|
@@ -1482,86 +1490,86 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1482
1490
|
"isA11yMode",
|
|
1483
1491
|
"a11yPosition"
|
|
1484
1492
|
]),
|
|
1485
|
-
|
|
1493
|
+
jt.value && L.value.userOptions.buttons.table ? (E(), v(Me(rr.value.component), Ee({ key: 7 }, rr.value.props, {
|
|
1486
1494
|
ref_key: "tableUnit",
|
|
1487
|
-
ref:
|
|
1488
|
-
onClose:
|
|
1489
|
-
}),
|
|
1490
|
-
content:
|
|
1495
|
+
ref: Bt,
|
|
1496
|
+
onClose: ar
|
|
1497
|
+
}), Ce({
|
|
1498
|
+
content: M(() => [x("div", {
|
|
1491
1499
|
ref_key: "tableContainer",
|
|
1492
|
-
ref:
|
|
1500
|
+
ref: Lt,
|
|
1493
1501
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1494
|
-
style:
|
|
1495
|
-
}, [
|
|
1496
|
-
style:
|
|
1497
|
-
class:
|
|
1498
|
-
}, [L.value.table.useDialog ?
|
|
1502
|
+
style: T(`${L.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1503
|
+
}, [x("div", {
|
|
1504
|
+
style: T(`width:100%;overflow-x:auto;position:relative;${L.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1505
|
+
class: Oe({ "vue-ui-responsive": j(ir) })
|
|
1506
|
+
}, [L.value.table.useDialog ? y("", !0) : (E(), b("div", {
|
|
1499
1507
|
key: 0,
|
|
1500
1508
|
role: "button",
|
|
1501
1509
|
tabindex: "0",
|
|
1502
|
-
style:
|
|
1503
|
-
onClick:
|
|
1504
|
-
onKeypress:
|
|
1505
|
-
}, [
|
|
1510
|
+
style: T(`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:${L.value.table.th.backgroundColor};`),
|
|
1511
|
+
onClick: ar,
|
|
1512
|
+
onKeypress: Be(ar, ["enter"])
|
|
1513
|
+
}, [Te(j(St), {
|
|
1506
1514
|
name: "close",
|
|
1507
1515
|
stroke: L.value.table.th.color,
|
|
1508
1516
|
"stroke-width": 2
|
|
1509
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1510
|
-
L.value.table.useDialog ?
|
|
1517
|
+
}, null, 8, ["stroke"])], 36)), x("table", gt, [
|
|
1518
|
+
L.value.table.useDialog ? y("", !0) : (E(), b("caption", {
|
|
1511
1519
|
key: 0,
|
|
1512
|
-
style:
|
|
1513
|
-
}, [
|
|
1514
|
-
|
|
1520
|
+
style: T(`backgroundColor:${L.value.table.th.backgroundColor};color:${L.value.table.th.color};outline:${L.value.table.th.outline}`)
|
|
1521
|
+
}, [we(A(L.value.style.title.text) + " ", 1), L.value.style.title.subtitle.text ? (E(), b("span", _t, A(L.value.style.title.subtitle.text), 1)) : y("", !0)], 4)),
|
|
1522
|
+
x("thead", null, [x("tr", {
|
|
1515
1523
|
role: "row",
|
|
1516
|
-
style:
|
|
1517
|
-
}, [
|
|
1524
|
+
style: T(`background:${L.value.table.th.backgroundColor};color:${L.value.table.th.color}`)
|
|
1525
|
+
}, [x("th", { style: T(`outline:${L.value.table.th.outline};padding-right:6px`) }, null, 4), (E(!0), b(g, null, O(e.dataset, (e, t) => (E(), b("th", {
|
|
1518
1526
|
align: "right",
|
|
1519
|
-
style:
|
|
1520
|
-
},
|
|
1521
|
-
|
|
1527
|
+
style: T(`outline:${L.value.table.th.outline};padding-right:6px`)
|
|
1528
|
+
}, A(e.name), 5))), 256))], 4)]),
|
|
1529
|
+
x("tbody", null, [(E(!0), b(g, null, O(Y.value.xLabels, (t, n) => (E(), b("tr", {
|
|
1522
1530
|
role: "row",
|
|
1523
|
-
class:
|
|
1531
|
+
class: Oe({
|
|
1524
1532
|
"vue-ui-data-table__tbody__row": !0,
|
|
1525
1533
|
"vue-ui-data-table__tbody__row-even": n % 2 == 0,
|
|
1526
1534
|
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1527
1535
|
}),
|
|
1528
|
-
style:
|
|
1529
|
-
}, [
|
|
1536
|
+
style: T(`background:${L.value.table.td.backgroundColor};color:${L.value.table.td.color}`)
|
|
1537
|
+
}, [x("td", {
|
|
1530
1538
|
"data-cell": L.value.table.colNames.xAxis,
|
|
1531
1539
|
class: "vue-ui-data-table__tbody__td",
|
|
1532
|
-
style:
|
|
1533
|
-
}, [
|
|
1540
|
+
style: T(`outline:${L.value.table.td.outline}`)
|
|
1541
|
+
}, [x("div", yt, A(t), 1)], 12, vt), (E(!0), b(g, null, O(e.dataset, (t, r) => (E(), b("td", {
|
|
1534
1542
|
class: "vue-ui-data-table__tbody__td",
|
|
1535
1543
|
"data-cell": e.dataset[r].name,
|
|
1536
|
-
style:
|
|
1537
|
-
}, [
|
|
1544
|
+
style: T(`outline:${L.value.table.td.outline}`)
|
|
1545
|
+
}, [x("div", xt, A(isNaN(t.values[n]) ? "-" : j(i)({
|
|
1538
1546
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1539
1547
|
v: t.values[n],
|
|
1540
1548
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1541
1549
|
r: L.value.table.td.roundingValue
|
|
1542
|
-
})), 1)], 12,
|
|
1550
|
+
})), 1)], 12, bt))), 256))], 6))), 256))])
|
|
1543
1551
|
])], 6)], 4)]),
|
|
1544
1552
|
_: 2
|
|
1545
1553
|
}, [L.value.table.useDialog ? {
|
|
1546
1554
|
name: "title",
|
|
1547
|
-
fn:
|
|
1555
|
+
fn: M(() => [we(A(rr.value.title), 1)]),
|
|
1548
1556
|
key: "0"
|
|
1549
1557
|
} : void 0, L.value.table.useDialog ? {
|
|
1550
1558
|
name: "actions",
|
|
1551
|
-
fn:
|
|
1559
|
+
fn: M(() => [x("button", {
|
|
1552
1560
|
tabindex: "0",
|
|
1553
1561
|
class: "vue-ui-user-options-button",
|
|
1554
|
-
onClick: n[0] ||= (e) =>
|
|
1555
|
-
style:
|
|
1556
|
-
}, [
|
|
1562
|
+
onClick: n[0] ||= (e) => Kn(L.value.userOptions.callbacks.csv),
|
|
1563
|
+
style: T({ cursor: an.value ? "pointer" : "default" })
|
|
1564
|
+
}, [Te(j(St), {
|
|
1557
1565
|
name: "fileCsv",
|
|
1558
|
-
stroke:
|
|
1566
|
+
stroke: rr.value.props.color
|
|
1559
1567
|
}, null, 8, ["stroke"])], 4)]),
|
|
1560
1568
|
key: "1"
|
|
1561
|
-
} : void 0]), 1040)) :
|
|
1562
|
-
|
|
1563
|
-
], 46,
|
|
1569
|
+
} : void 0]), 1040)) : y("", !0),
|
|
1570
|
+
k(t.$slots, "skeleton", {}, () => [j(cn) ? (E(), v(se, { key: 0 })) : y("", !0)], !0)
|
|
1571
|
+
], 46, Ge));
|
|
1564
1572
|
}
|
|
1565
|
-
}, [["__scopeId", "data-v-
|
|
1573
|
+
}, [["__scopeId", "data-v-2a26877c"]]);
|
|
1566
1574
|
//#endregion
|
|
1567
|
-
export {
|
|
1575
|
+
export { We as n, St as t };
|