vue-data-ui 3.22.3 → 3.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-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-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
- 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 +59 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Gt as t, Ot as n, Q as r, W as i, X as a, gt as o, i as s, ot as c, q as l, qt as u, r as d, t as f, ut as p, v as m, vt as ee, w as te } from "./lib-CuwHGt1j.js";
|
|
3
3
|
import { t as ne } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as re } from "./useConfig-
|
|
5
|
-
import { t as ie } from "./usePrinter-
|
|
4
|
+
import { t as re } from "./useConfig-pVLia3dt.js";
|
|
5
|
+
import { t as ie } from "./usePrinter-C0wAS8yc.js";
|
|
6
6
|
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as se } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as ce } from "./useNestedProp-
|
|
8
|
+
import { t as ce } from "./useNestedProp-BjkuFaz1.js";
|
|
9
9
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as ue } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as de } from "./img-
|
|
12
|
-
import { n as fe } from "./Title-
|
|
11
|
+
import { t as de } from "./img-B29J8tV5.js";
|
|
12
|
+
import { n as fe } from "./Title-DDEEO-Nr.js";
|
|
13
13
|
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { c as me } from "./canvas-lib-BOP_HS11.js";
|
|
15
15
|
import { t as he } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
-
import { t as ge } from "./vue-ui-accordion-
|
|
16
|
+
import { t as ge } from "./vue-ui-accordion-B64IJyPU.js";
|
|
17
17
|
import { t as _e } from "./A11yDataTable-DdRsVULz.js";
|
|
18
18
|
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
20
|
import { t as be } from "./useTableResponsive-B24Uwt2E.js";
|
|
21
21
|
import { t as xe } from "./vue_ui_heatmap-B2BBBSWG.js";
|
|
22
|
-
import { Fragment as h, computed as g, createBlock as
|
|
22
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as Se, createTextVNode as Ce, createVNode as we, defineAsyncComponent as Te, guardReactiveProps as x, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as ke, onMounted as Ae, openBlock as w, reactive as je, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Me, shallowRef as Ne, toDisplayString as O, toRefs as Pe, unref as k, useCssVars as Fe, vShow as Ie, watch as Le, watchEffect as Re, withCtx as A, withDirectives as ze, withKeys as Be } from "vue";
|
|
23
23
|
//#region src/useLabelObserverEfffect.js
|
|
24
|
-
function
|
|
24
|
+
function Ve({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
25
25
|
if (r) return;
|
|
26
26
|
let o = (e) => {
|
|
27
27
|
if (!e) return;
|
|
@@ -38,12 +38,12 @@ function Be({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFra
|
|
|
38
38
|
}
|
|
39
39
|
typeof r == "number" && !Number.isNaN(r) && t(r);
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
Re((t) => {
|
|
42
42
|
let n = e.value;
|
|
43
43
|
if (!n) return;
|
|
44
44
|
let r = !1;
|
|
45
45
|
(async () => {
|
|
46
|
-
await
|
|
46
|
+
await De();
|
|
47
47
|
for (let t = 0; t < i; t += 1) {
|
|
48
48
|
if (r) return;
|
|
49
49
|
await new Promise((e) => requestAnimationFrame(e));
|
|
@@ -89,22 +89,22 @@ function Be({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFra
|
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/directives/vFitText.js
|
|
92
|
-
var
|
|
92
|
+
var He = {
|
|
93
93
|
mounted(e, t) {
|
|
94
|
-
|
|
94
|
+
Ue(e, t.value);
|
|
95
95
|
},
|
|
96
96
|
updated(e, t) {
|
|
97
|
-
|
|
97
|
+
Ue(e, t.value);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Ue(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
|
|
101
101
|
e.removeAttribute("transform"), e.removeAttribute("visibility");
|
|
102
102
|
let u = !1, d = !1;
|
|
103
103
|
e.setAttribute("font-size", r);
|
|
104
|
-
let
|
|
105
|
-
if (
|
|
104
|
+
let f = e.getComputedTextLength();
|
|
105
|
+
if (f <= t) o(a, !1), s(a, !1);
|
|
106
106
|
else {
|
|
107
|
-
let n = Math.floor(r * t /
|
|
107
|
+
let n = Math.floor(r * t / f);
|
|
108
108
|
n >= i ? (e.setAttribute("font-size", n), o(a, !1), s(a, !1)) : (o(a, !0), s(a, !1), u = !0);
|
|
109
109
|
}
|
|
110
110
|
if (c && (u = !0), u) {
|
|
@@ -122,16 +122,16 @@ function He(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, in
|
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/components/vue-ui-heatmap.vue
|
|
125
|
-
var
|
|
125
|
+
var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe = [
|
|
126
126
|
"xmlns",
|
|
127
127
|
"aria-describedby",
|
|
128
128
|
"viewBox"
|
|
129
|
-
],
|
|
129
|
+
], Je = [
|
|
130
130
|
"x",
|
|
131
131
|
"y",
|
|
132
132
|
"width",
|
|
133
133
|
"height"
|
|
134
|
-
],
|
|
134
|
+
], Ye = [
|
|
135
135
|
"x",
|
|
136
136
|
"y",
|
|
137
137
|
"height",
|
|
@@ -139,7 +139,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
139
139
|
"fill",
|
|
140
140
|
"stroke",
|
|
141
141
|
"stroke-width"
|
|
142
|
-
],
|
|
142
|
+
], Xe = [
|
|
143
143
|
"x",
|
|
144
144
|
"y",
|
|
145
145
|
"height",
|
|
@@ -147,7 +147,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
147
147
|
"fill",
|
|
148
148
|
"stroke",
|
|
149
149
|
"stroke-width"
|
|
150
|
-
],
|
|
150
|
+
], Ze = [
|
|
151
151
|
"x",
|
|
152
152
|
"y",
|
|
153
153
|
"width",
|
|
@@ -155,7 +155,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
155
155
|
"fill",
|
|
156
156
|
"stroke",
|
|
157
157
|
"stroke-width"
|
|
158
|
-
],
|
|
158
|
+
], Qe = [
|
|
159
159
|
"data-a11y-cell-id",
|
|
160
160
|
"x",
|
|
161
161
|
"y",
|
|
@@ -168,13 +168,13 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
168
168
|
"onMouseover",
|
|
169
169
|
"onMouseout",
|
|
170
170
|
"onClick"
|
|
171
|
-
],
|
|
171
|
+
], $e = [
|
|
172
172
|
"font-size",
|
|
173
173
|
"font-weight",
|
|
174
174
|
"fill",
|
|
175
175
|
"x",
|
|
176
176
|
"y"
|
|
177
|
-
],
|
|
177
|
+
], et = [
|
|
178
178
|
"x",
|
|
179
179
|
"y",
|
|
180
180
|
"width",
|
|
@@ -182,7 +182,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
182
182
|
"fill",
|
|
183
183
|
"stroke",
|
|
184
184
|
"stroke-width"
|
|
185
|
-
],
|
|
185
|
+
], tt = [
|
|
186
186
|
"x",
|
|
187
187
|
"y",
|
|
188
188
|
"width",
|
|
@@ -190,38 +190,38 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
190
190
|
"fill",
|
|
191
191
|
"stroke",
|
|
192
192
|
"stroke-width"
|
|
193
|
-
],
|
|
193
|
+
], nt = [
|
|
194
194
|
"font-size",
|
|
195
195
|
"fill",
|
|
196
196
|
"x",
|
|
197
197
|
"y",
|
|
198
198
|
"font-weight"
|
|
199
|
-
],
|
|
199
|
+
], rt = [
|
|
200
200
|
"font-size",
|
|
201
201
|
"fill",
|
|
202
202
|
"x",
|
|
203
203
|
"y",
|
|
204
204
|
"font-weight"
|
|
205
|
-
],
|
|
205
|
+
], it = [
|
|
206
206
|
"text-anchor",
|
|
207
207
|
"font-size",
|
|
208
208
|
"fill",
|
|
209
209
|
"font-weight",
|
|
210
210
|
"transform"
|
|
211
|
-
],
|
|
211
|
+
], at = [
|
|
212
212
|
"text-anchor",
|
|
213
213
|
"font-size",
|
|
214
214
|
"fill",
|
|
215
215
|
"font-weight",
|
|
216
216
|
"transform"
|
|
217
|
-
],
|
|
217
|
+
], ot = { key: 6 }, st = [
|
|
218
218
|
"x",
|
|
219
219
|
"y",
|
|
220
220
|
"width",
|
|
221
221
|
"height",
|
|
222
222
|
"stroke",
|
|
223
223
|
"stroke-width"
|
|
224
|
-
],
|
|
224
|
+
], ct = { key: 7 }, lt = [
|
|
225
225
|
"x1",
|
|
226
226
|
"x2",
|
|
227
227
|
"y1",
|
|
@@ -229,7 +229,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
229
229
|
"stroke",
|
|
230
230
|
"stroke-width",
|
|
231
231
|
"stroke-dasharray"
|
|
232
|
-
],
|
|
232
|
+
], ut = [
|
|
233
233
|
"x1",
|
|
234
234
|
"x2",
|
|
235
235
|
"y1",
|
|
@@ -237,7 +237,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
237
237
|
"stroke",
|
|
238
238
|
"stroke-width",
|
|
239
239
|
"stroke-dasharray"
|
|
240
|
-
],
|
|
240
|
+
], dt = { class: "vue-ui-heatmap-legend-gauge-right" }, ft = ["data-value"], pt = { class: "vue-ui-heatmap-gauge-indicator-value" }, mt = {
|
|
241
241
|
key: 1,
|
|
242
242
|
style: {
|
|
243
243
|
position: "absolute",
|
|
@@ -247,24 +247,24 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
247
247
|
},
|
|
248
248
|
"data-dom-to-png-ignore": "",
|
|
249
249
|
"aria-hidden": "true"
|
|
250
|
-
},
|
|
250
|
+
}, ht = {
|
|
251
251
|
key: 5,
|
|
252
252
|
class: "vue-data-ui-watermark"
|
|
253
|
-
},
|
|
253
|
+
}, gt = { class: "vue-ui-data-table" }, _t = { key: 0 }, vt = ["data-cell"], yt = { style: {
|
|
254
254
|
display: "flex",
|
|
255
255
|
"align-items": "center",
|
|
256
256
|
gap: "5px",
|
|
257
257
|
"justify-content": "flex-end",
|
|
258
258
|
width: "100%",
|
|
259
259
|
"padding-right": "3px"
|
|
260
|
-
} },
|
|
260
|
+
} }, bt = ["data-cell"], xt = { style: {
|
|
261
261
|
display: "flex",
|
|
262
262
|
"align-items": "center",
|
|
263
263
|
gap: "5px",
|
|
264
264
|
"justify-content": "flex-end",
|
|
265
265
|
width: "100%",
|
|
266
266
|
"padding-right": "3px"
|
|
267
|
-
} },
|
|
267
|
+
} }, St = /*#__PURE__*/ pe({
|
|
268
268
|
__name: "vue-ui-heatmap",
|
|
269
269
|
props: {
|
|
270
270
|
config: {
|
|
@@ -281,19 +281,19 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
284
|
-
setup(e, { expose: pe, emit:
|
|
285
|
-
|
|
286
|
-
let
|
|
284
|
+
setup(e, { expose: pe, emit: Ue }) {
|
|
285
|
+
Fe((e) => ({ v4596c7e2: e.tdo }));
|
|
286
|
+
let We = Te(() => import("./Tooltip-BhKov422.js")), St = Te(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Ct = Te(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), wt = Te(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Tt = Te(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Et = Te(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_heatmap: Dt } = re(), { isThemeValid: Ot, warnInvalidTheme: kt } = le(), j = e, At = Ue, jt = g({
|
|
287
287
|
get() {
|
|
288
|
-
return !!
|
|
288
|
+
return !!j.dataset && j.dataset.length;
|
|
289
289
|
},
|
|
290
290
|
set(e) {
|
|
291
291
|
return e;
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), M = T(i()), N = T(null), Mt = T(!1), Nt = T(""), Pt = T(void 0), P = T(null), Ft = T(0), It = T(null), Lt = T(0), Rt = T(null), zt = T(null), Bt = T(null), Vt = T(!1), Ht = T(!1), Ut = T(null), Wt = T(null), Gt = T(null), Kt = T(null), qt = T(null), Jt = T(null), Yt = T(null), Xt = T(null), Zt = T(null), F = Ne(null), I = T(null), Qt = T(null), $t = T({
|
|
294
294
|
x: 0,
|
|
295
295
|
y: 0
|
|
296
|
-
}), en =
|
|
296
|
+
}), en = T("pointer"), tn = T(!1), L = T(fn()), nn = g(() => L.value.userOptions.useCursorPointer);
|
|
297
297
|
function rn() {
|
|
298
298
|
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
299
299
|
for (let r = 0; r < n; r += 1) {
|
|
@@ -306,7 +306,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
306
306
|
}
|
|
307
307
|
return t;
|
|
308
308
|
}
|
|
309
|
-
let an = g(() =>
|
|
309
|
+
let an = g(() => t({
|
|
310
310
|
defaultConfig: {
|
|
311
311
|
table: { show: !1 },
|
|
312
312
|
userOptions: { show: !1 },
|
|
@@ -331,19 +331,19 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
331
331
|
},
|
|
332
332
|
userConfig: L.value.skeletonConfig ?? {}
|
|
333
333
|
})), { loading: on, FINAL_DATASET: R, manualLoading: sn } = ae({
|
|
334
|
-
...
|
|
334
|
+
...Pe(j),
|
|
335
335
|
FINAL_CONFIG: L,
|
|
336
336
|
prepareConfig: fn,
|
|
337
337
|
callback: () => {
|
|
338
338
|
Promise.resolve().then(async () => {
|
|
339
|
-
await
|
|
339
|
+
await De(), N.value && u(N.value, {
|
|
340
340
|
delta: .1,
|
|
341
341
|
delay: 250
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
},
|
|
345
|
-
skeletonDataset:
|
|
346
|
-
skeletonConfig:
|
|
345
|
+
skeletonDataset: j.config?.skeletonDataset ?? rn(),
|
|
346
|
+
skeletonConfig: t({
|
|
347
347
|
defaultConfig: L.value,
|
|
348
348
|
userConfig: an.value
|
|
349
349
|
})
|
|
@@ -353,49 +353,49 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
353
353
|
}
|
|
354
354
|
function fn() {
|
|
355
355
|
let e = ce({
|
|
356
|
-
userConfig:
|
|
357
|
-
defaultConfig:
|
|
356
|
+
userConfig: j.config,
|
|
357
|
+
defaultConfig: Dt
|
|
358
358
|
}), t = {}, n = e.theme;
|
|
359
|
-
if (n) if (!
|
|
359
|
+
if (n) if (!Ot.value(e)) kt(e), t = e;
|
|
360
360
|
else {
|
|
361
361
|
let r = ce({
|
|
362
|
-
userConfig: xe[n] ||
|
|
362
|
+
userConfig: xe[n] || j.config,
|
|
363
363
|
defaultConfig: e
|
|
364
364
|
});
|
|
365
365
|
t = { ...ce({
|
|
366
|
-
userConfig:
|
|
366
|
+
userConfig: j.config,
|
|
367
367
|
defaultConfig: r
|
|
368
368
|
}) };
|
|
369
369
|
}
|
|
370
370
|
else t = e;
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
Le(() => j.config, (e) => {
|
|
374
374
|
on.value || (L.value = fn()), cn.value = !L.value.userOptions.showOnChartHover, bn(), Lt.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.tooltip.show, xn.value = L.value.style.layout.width, Sn.value = L.value.style.layout.height;
|
|
375
|
-
}, { deep: !0 }),
|
|
375
|
+
}, { deep: !0 }), Le(() => j.dataset, (e) => {
|
|
376
376
|
Array.isArray(e) && e.length > 0 && (sn.value = !1), bn();
|
|
377
377
|
}, { deep: !0 });
|
|
378
378
|
let { isPrinting: pn, isImaging: mn, generatePdf: hn, generateImage: gn } = ie({
|
|
379
|
-
elementId: `heatmap__${
|
|
379
|
+
elementId: `heatmap__${M.value}`,
|
|
380
380
|
fileName: L.value.style.title.text || "vue-ui-heatmap",
|
|
381
381
|
options: L.value.userOptions.print
|
|
382
|
-
}), _n = g(() => L.value.userOptions.show && !L.value.style.title.text), B =
|
|
382
|
+
}), _n = g(() => L.value.userOptions.show && !L.value.style.title.text), B = T({
|
|
383
383
|
showTable: L.value.table.show,
|
|
384
384
|
showTooltip: L.value.style.tooltip.show
|
|
385
385
|
});
|
|
386
|
-
|
|
386
|
+
Le(L, () => {
|
|
387
387
|
B.value = {
|
|
388
388
|
showTable: L.value.table.show,
|
|
389
389
|
showTooltip: L.value.style.tooltip.show
|
|
390
390
|
};
|
|
391
391
|
}, { immediate: !0 });
|
|
392
|
-
let vn = g(() => L.value.table.responsiveBreakpoint), V =
|
|
392
|
+
let vn = g(() => L.value.table.responsiveBreakpoint), V = T(null), yn = g(() => !!L.value.debug);
|
|
393
393
|
function bn() {
|
|
394
|
-
if (
|
|
394
|
+
if (n(j.dataset) && (r({
|
|
395
395
|
componentName: "VueUiHeatmap",
|
|
396
396
|
type: "dataset",
|
|
397
397
|
debug: yn.value
|
|
398
|
-
}),
|
|
398
|
+
}), jt.value = !1, sn.value = !0), n(j.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
399
399
|
let e = me(() => {
|
|
400
400
|
let { width: e, height: t } = he({
|
|
401
401
|
chart: N.value,
|
|
@@ -410,38 +410,38 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
410
410
|
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect()), V.value = new ResizeObserver(e), F.value = N.value.parentNode, V.value.observe(F.value);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
|
|
413
|
+
ke(() => {
|
|
414
414
|
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect());
|
|
415
|
-
}),
|
|
415
|
+
}), Ae(() => {
|
|
416
416
|
bn();
|
|
417
417
|
});
|
|
418
|
-
let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), xn =
|
|
418
|
+
let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), xn = T(L.value.style.layout.width), Sn = T(L.value.style.layout.height), U = g(() => ({
|
|
419
419
|
width: Math.max(10, xn.value),
|
|
420
420
|
height: Math.max(10, Sn.value)
|
|
421
|
-
})), Cn =
|
|
422
|
-
|
|
421
|
+
})), Cn = T(0);
|
|
422
|
+
Ve({
|
|
423
423
|
elementRef: Jt,
|
|
424
424
|
callback: me((e) => {
|
|
425
425
|
e !== Cn.value && (Cn.value = e);
|
|
426
426
|
}, 100),
|
|
427
427
|
attr: "height"
|
|
428
428
|
});
|
|
429
|
-
let W =
|
|
430
|
-
|
|
429
|
+
let W = T(0);
|
|
430
|
+
Ve({
|
|
431
431
|
elementRef: Kt,
|
|
432
432
|
callback: me((e) => {
|
|
433
433
|
e !== W.value && (W.value = e);
|
|
434
434
|
}, 100),
|
|
435
435
|
attr: "width"
|
|
436
436
|
});
|
|
437
|
-
let wn =
|
|
438
|
-
|
|
437
|
+
let wn = T(0);
|
|
438
|
+
Ve({
|
|
439
439
|
elementRef: Yt,
|
|
440
440
|
callback: me((e) => {
|
|
441
441
|
e !== wn.value && (wn.value = e);
|
|
442
442
|
}, 100),
|
|
443
443
|
attr: "height"
|
|
444
|
-
}),
|
|
444
|
+
}), ke(() => {
|
|
445
445
|
Cn.value = 0, W.value = 0, wn.value = 0;
|
|
446
446
|
});
|
|
447
447
|
let G = g(() => Math.min(U.value.height, U.value.width) / 1e3 * L.value.style.layout.cells.spacing), K = g(() => {
|
|
@@ -468,8 +468,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
468
468
|
}), q = g(() => Math.max(...R.value.flatMap((e) => e.values))), Tn = g(() => Math.min(...R.value.flatMap((e) => e.values))), J = g(() => {
|
|
469
469
|
let e = R.value.flatMap((e) => e.values);
|
|
470
470
|
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
471
|
-
}), En =
|
|
472
|
-
|
|
471
|
+
}), En = T([]), Dn = T([]), On = 0;
|
|
472
|
+
Re(() => {
|
|
473
473
|
let e = ++On;
|
|
474
474
|
(async () => {
|
|
475
475
|
let t = L.value.style.layout.dataLabels.yAxis, n = await ne({
|
|
@@ -483,7 +483,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
483
483
|
})();
|
|
484
484
|
});
|
|
485
485
|
let kn = 0;
|
|
486
|
-
|
|
486
|
+
Re(() => {
|
|
487
487
|
let e = ++kn;
|
|
488
488
|
(async () => {
|
|
489
489
|
let t = L.value.style.layout.dataLabels.xAxis, n = await ne({
|
|
@@ -499,27 +499,27 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
499
499
|
let Y = g(() => {
|
|
500
500
|
let e = En.value.map((e) => e.text), t = Dn.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 = [];
|
|
501
501
|
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));
|
|
502
|
-
let
|
|
502
|
+
let s = Math.max(...a), c = Math.min(...a);
|
|
503
503
|
return {
|
|
504
504
|
yTotals: n.map((e) => ({
|
|
505
505
|
total: e,
|
|
506
506
|
proportion: isNaN(e / r) ? 0 : e / r,
|
|
507
|
-
color:
|
|
507
|
+
color: o(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, i, r, e)
|
|
508
508
|
})),
|
|
509
509
|
xTotals: a.map((e) => ({
|
|
510
510
|
total: e,
|
|
511
|
-
proportion: isNaN(e /
|
|
512
|
-
color:
|
|
511
|
+
proportion: isNaN(e / s) ? 0 : e / s,
|
|
512
|
+
color: o(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, c, s, e)
|
|
513
513
|
})),
|
|
514
514
|
yLabels: e,
|
|
515
515
|
xLabels: t.slice(0, H.value)
|
|
516
516
|
};
|
|
517
517
|
}), X = g(() => (R.value.forEach((e, t) => {
|
|
518
|
-
|
|
518
|
+
p({
|
|
519
519
|
datasetObject: e,
|
|
520
520
|
requiredAttributes: ["values"]
|
|
521
521
|
}).forEach((e) => {
|
|
522
|
-
|
|
522
|
+
r({
|
|
523
523
|
componentName: "VueUiHeatmap",
|
|
524
524
|
type: "datasetSerieAttribute",
|
|
525
525
|
property: "values",
|
|
@@ -531,7 +531,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
531
531
|
...e,
|
|
532
532
|
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
533
533
|
side: "up",
|
|
534
|
-
color:
|
|
534
|
+
color: o(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
535
535
|
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)),
|
|
536
536
|
value: e,
|
|
537
537
|
yAxisName: Y.value.yLabels[t],
|
|
@@ -540,21 +540,21 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
540
540
|
} : {
|
|
541
541
|
side: "down",
|
|
542
542
|
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
543
|
-
color:
|
|
543
|
+
color: o(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
544
544
|
value: e,
|
|
545
545
|
yAxisName: Y.value.yLabels[t],
|
|
546
546
|
xAxisName: Y.value.xLabels[n],
|
|
547
547
|
id: `vue-data-ui-heatmap-cell-${i()}`
|
|
548
548
|
})
|
|
549
|
-
})))), An = g(() => R.value.length), jn =
|
|
549
|
+
})))), An = g(() => R.value.length), jn = je(Array(An.value * H.value || 1).fill(!1)), Mn = g(() => jn.some((e) => e));
|
|
550
550
|
function Nn(e, t) {
|
|
551
551
|
jn[e] = t;
|
|
552
552
|
}
|
|
553
|
-
let Pn =
|
|
553
|
+
let Pn = je(Array(An.value * H.value || 1).fill(!1)), Fn = g(() => Pn.some((e) => e));
|
|
554
554
|
function In(e, t) {
|
|
555
555
|
Pn[e] = t;
|
|
556
556
|
}
|
|
557
|
-
let Z =
|
|
557
|
+
let Z = T(null), Ln = T(null);
|
|
558
558
|
function Rn() {
|
|
559
559
|
Mt.value = !1, Pt.value = void 0, Z.value = null, P.value = null, I.value = null, Qt.value = null;
|
|
560
560
|
}
|
|
@@ -568,42 +568,42 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
568
568
|
y: n.top + n.height / 2
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
function Bn(e, t, r, i
|
|
571
|
+
function Bn(e, t, n, r, i = "pointer", a = null) {
|
|
572
572
|
if (L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
573
573
|
datapoint: e,
|
|
574
574
|
seriesIndex: t
|
|
575
575
|
}), !B.value.showTooltip) return;
|
|
576
|
-
en.value =
|
|
577
|
-
x:
|
|
578
|
-
y:
|
|
576
|
+
en.value = i, I.value = a, Qt.value = e.id, P.value = {
|
|
577
|
+
x: n,
|
|
578
|
+
y: r
|
|
579
579
|
};
|
|
580
|
-
let { value:
|
|
581
|
-
Pt.value = p, Z.value =
|
|
580
|
+
let { value: u, yAxisName: d, xAxisName: f, id: p } = e;
|
|
581
|
+
Pt.value = p, Z.value = u, Ln.value = {
|
|
582
582
|
datapoint: e,
|
|
583
583
|
seriesIndex: t,
|
|
584
584
|
series: X.value,
|
|
585
585
|
config: L.value
|
|
586
586
|
}, Mt.value = !0;
|
|
587
|
-
let
|
|
588
|
-
|
|
587
|
+
let m = "", te = L.value.style.tooltip.customFormat;
|
|
588
|
+
ee(te) && c(() => te({
|
|
589
589
|
datapoint: e,
|
|
590
590
|
seriesIndex: t,
|
|
591
591
|
series: X.value,
|
|
592
592
|
config: L.value
|
|
593
|
-
})) ? Nt.value =
|
|
593
|
+
})) ? Nt.value = te({
|
|
594
594
|
datapoint: e,
|
|
595
595
|
seriesIndex: t,
|
|
596
596
|
series: X.value,
|
|
597
597
|
config: L.value
|
|
598
|
-
}) : (
|
|
598
|
+
}) : (m += `<div>${d} ${f ? d ? ` - ${f}` : `${f}` : ""}</div>`, m += `<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:${o(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, u)}">⬤</span><span>${isNaN(u) ? "-" : s(L.value.style.layout.cells.value.formatter, u, l({
|
|
599
599
|
p: L.value.style.layout.dataLabels.prefix,
|
|
600
|
-
v:
|
|
600
|
+
v: u,
|
|
601
601
|
s: L.value.style.layout.dataLabels.suffix,
|
|
602
602
|
r: L.value.style.tooltip.roundingValue
|
|
603
603
|
}), {
|
|
604
604
|
datapoint: e,
|
|
605
605
|
seriesIndex: t
|
|
606
|
-
})}</span></div>`, Nt.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${
|
|
606
|
+
})}</span></div>`, Nt.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${m}</div>`), i === "keyboard" && De(() => {
|
|
607
607
|
zn(e.id);
|
|
608
608
|
});
|
|
609
609
|
}
|
|
@@ -614,7 +614,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
614
614
|
}), !(Qt.value === e.id && en.value === "keyboard") && (Mt.value = !1, Pt.value = void 0, Z.value = null, P.value = null);
|
|
615
615
|
}
|
|
616
616
|
function Hn(e) {
|
|
617
|
-
return
|
|
617
|
+
return s(L.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, l({
|
|
618
618
|
p: L.value.style.layout.dataLabels.prefix,
|
|
619
619
|
v: Y.value.yTotals[e].total,
|
|
620
620
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -625,7 +625,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
function Un(e) {
|
|
628
|
-
return
|
|
628
|
+
return s(L.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, l({
|
|
629
629
|
p: L.value.style.layout.dataLabels.prefix,
|
|
630
630
|
v: Y.value.xTotals[e].total,
|
|
631
631
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -640,14 +640,14 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
640
640
|
body: R.value.map((e) => e.values)
|
|
641
641
|
}));
|
|
642
642
|
function Wn(e = null) {
|
|
643
|
-
|
|
643
|
+
De(() => {
|
|
644
644
|
let t = ["", ...R.value.map((e, t) => e.name)], n = [];
|
|
645
645
|
for (let e = 0; e < Y.value.xLabels.length; e += 1) {
|
|
646
646
|
let t = [Y.value.xLabels[e]];
|
|
647
647
|
for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
|
|
648
648
|
n.push(t);
|
|
649
649
|
}
|
|
650
|
-
let r =
|
|
650
|
+
let r = te([
|
|
651
651
|
[L.value.style.title.text],
|
|
652
652
|
[L.value.style.title.subtitle.text],
|
|
653
653
|
[
|
|
@@ -663,7 +663,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
663
663
|
});
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
let Q =
|
|
666
|
+
let Q = T(!1);
|
|
667
667
|
function Gn(e) {
|
|
668
668
|
Q.value = e, Ft.value += 1;
|
|
669
669
|
}
|
|
@@ -673,7 +673,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
673
673
|
function qn() {
|
|
674
674
|
B.value.showTooltip = !B.value.showTooltip;
|
|
675
675
|
}
|
|
676
|
-
let Jn =
|
|
676
|
+
let Jn = T(!1);
|
|
677
677
|
function Yn() {
|
|
678
678
|
Jn.value = !Jn.value;
|
|
679
679
|
}
|
|
@@ -681,7 +681,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
681
681
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
682
682
|
datapoint: e,
|
|
683
683
|
seriesIndex: t
|
|
684
|
-
}),
|
|
684
|
+
}), At("selectDatapoint", e);
|
|
685
685
|
}
|
|
686
686
|
function Zn() {
|
|
687
687
|
return X.value;
|
|
@@ -763,7 +763,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
763
763
|
let tr = g(() => {
|
|
764
764
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
765
765
|
return {
|
|
766
|
-
component: e ?
|
|
766
|
+
component: e ? Et : ge,
|
|
767
767
|
title: `${L.value.style.title.text}${L.value.style.title.subtitle.text ? `: ${L.value.style.title.subtitle.text}` : ""}`,
|
|
768
768
|
props: e ? {
|
|
769
769
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -791,8 +791,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
});
|
|
794
|
-
|
|
795
|
-
L.value.table.show || (e && L.value.table.useDialog && zt.value ? (await
|
|
794
|
+
Le(() => B.value.showTable, async (e) => {
|
|
795
|
+
L.value.table.show || (e && L.value.table.useDialog && zt.value ? (await De(), zt.value.open()) : "close" in zt.value && zt.value.close());
|
|
796
796
|
});
|
|
797
797
|
let { isResponsive: nr } = be(It, vn);
|
|
798
798
|
function rr() {
|
|
@@ -804,7 +804,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
804
804
|
backgroundColor: ir
|
|
805
805
|
});
|
|
806
806
|
async function sr({ isCb: e }) {
|
|
807
|
-
Ht.value = !0, await
|
|
807
|
+
Ht.value = !0, await De();
|
|
808
808
|
try {
|
|
809
809
|
if (e) {
|
|
810
810
|
let { blob: e, url: t, text: n, dataUrl: r } = await or();
|
|
@@ -831,7 +831,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
831
831
|
gn();
|
|
832
832
|
}
|
|
833
833
|
async function lr() {
|
|
834
|
-
if (
|
|
834
|
+
if (At("copyAlt", {
|
|
835
835
|
config: L.value,
|
|
836
836
|
dataset: X.value
|
|
837
837
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -896,8 +896,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
896
896
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
897
897
|
let d = ur(o, s);
|
|
898
898
|
if (!d) return;
|
|
899
|
-
let
|
|
900
|
-
Bn(d.cell, d.rowIndex,
|
|
899
|
+
let f = dr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
900
|
+
Bn(d.cell, d.rowIndex, p, m, "keyboard", f);
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
903
|
let a = $.value[0];
|
|
@@ -913,20 +913,20 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
913
913
|
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
914
914
|
let d = X.value[c];
|
|
915
915
|
if (!d || !d.temperatures.length) return;
|
|
916
|
-
let
|
|
917
|
-
l < 0 && (l =
|
|
918
|
-
let
|
|
919
|
-
if (!
|
|
920
|
-
let
|
|
921
|
-
Bn(
|
|
916
|
+
let f = d.temperatures.length;
|
|
917
|
+
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
918
|
+
let p = ur(c, l);
|
|
919
|
+
if (!p) return;
|
|
920
|
+
let m = dr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
921
|
+
Bn(p.cell, p.rowIndex, ee, te, "keyboard", m);
|
|
922
922
|
}
|
|
923
923
|
let hr = g(() => ({
|
|
924
924
|
headers: [L.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
925
925
|
rows: Y.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
|
|
926
|
-
let
|
|
927
|
-
return isNaN(
|
|
926
|
+
let n = e.values?.[t];
|
|
927
|
+
return isNaN(n) ? "-" : l({
|
|
928
928
|
p: L.value.style.layout.dataLabels.prefix,
|
|
929
|
-
v:
|
|
929
|
+
v: n,
|
|
930
930
|
s: L.value.style.layout.dataLabels.suffix,
|
|
931
931
|
r: L.value.table.td.roundingValue
|
|
932
932
|
});
|
|
@@ -951,24 +951,24 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
951
951
|
toggleAnnotator: Yn,
|
|
952
952
|
toggleFullscreen: Gn,
|
|
953
953
|
copyAlt: lr
|
|
954
|
-
}), (t,
|
|
954
|
+
}), (t, n) => (w(), y("div", {
|
|
955
955
|
ref_key: "heatmapChart",
|
|
956
956
|
ref: N,
|
|
957
|
-
class:
|
|
958
|
-
style:
|
|
959
|
-
id: `heatmap__${
|
|
960
|
-
onMouseenter:
|
|
961
|
-
onMouseleave:
|
|
957
|
+
class: Oe(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
958
|
+
style: C(`font-family:${L.value.style.fontFamily};width:100%;${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.backgroundColor}`),
|
|
959
|
+
id: `heatmap__${M.value}`,
|
|
960
|
+
onMouseenter: n[1] ||= () => dn(!0),
|
|
961
|
+
onMouseleave: n[2] ||= () => {
|
|
962
962
|
dn(!1), tn.value || Rn();
|
|
963
963
|
}
|
|
964
964
|
}, [
|
|
965
|
-
|
|
966
|
-
id: `chart-instructions-${
|
|
965
|
+
b("div", {
|
|
966
|
+
id: `chart-instructions-${M.value}`,
|
|
967
967
|
class: "sr-only"
|
|
968
|
-
}, [
|
|
969
|
-
hr.value?.rows?.length ? (
|
|
968
|
+
}, [b("p", null, O(L.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
969
|
+
hr.value?.rows?.length ? (w(), _(_e, {
|
|
970
970
|
key: 0,
|
|
971
|
-
uid:
|
|
971
|
+
uid: M.value,
|
|
972
972
|
head: hr.value.headers,
|
|
973
973
|
body: hr.value.rows,
|
|
974
974
|
notice: L.value.a11y.translations.tableAvailable,
|
|
@@ -979,22 +979,22 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
979
979
|
"body",
|
|
980
980
|
"notice",
|
|
981
981
|
"caption"
|
|
982
|
-
])) :
|
|
983
|
-
L.value.userOptions.buttons.annotator ? (
|
|
982
|
+
])) : v("", !0),
|
|
983
|
+
L.value.userOptions.buttons.annotator ? (w(), _(k(Ct), {
|
|
984
984
|
key: 1,
|
|
985
|
-
svgRef:
|
|
985
|
+
svgRef: k(z),
|
|
986
986
|
backgroundColor: L.value.style.backgroundColor,
|
|
987
987
|
color: L.value.style.color,
|
|
988
988
|
active: Jn.value,
|
|
989
989
|
isCursorPointer: nn.value,
|
|
990
990
|
onClose: Yn
|
|
991
991
|
}, {
|
|
992
|
-
"annotator-action-close":
|
|
993
|
-
"annotator-action-color":
|
|
994
|
-
"annotator-action-draw":
|
|
995
|
-
"annotator-action-undo":
|
|
996
|
-
"annotator-action-redo":
|
|
997
|
-
"annotator-action-delete":
|
|
992
|
+
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
993
|
+
"annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(x({ color: e })), void 0, !0)]),
|
|
994
|
+
"annotator-action-draw": A(({ mode: e }) => [D(t.$slots, "annotator-action-draw", S(x({ mode: e })), void 0, !0)]),
|
|
995
|
+
"annotator-action-undo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-undo", S(x({ disabled: e })), void 0, !0)]),
|
|
996
|
+
"annotator-action-redo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-redo", S(x({ disabled: e })), void 0, !0)]),
|
|
997
|
+
"annotator-action-delete": A(({ disabled: e }) => [D(t.$slots, "annotator-action-delete", S(x({ disabled: e })), void 0, !0)]),
|
|
998
998
|
_: 3
|
|
999
999
|
}, 8, [
|
|
1000
1000
|
"svgRef",
|
|
@@ -1002,20 +1002,20 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1002
1002
|
"color",
|
|
1003
1003
|
"active",
|
|
1004
1004
|
"isCursorPointer"
|
|
1005
|
-
])) :
|
|
1006
|
-
_n.value ? (
|
|
1005
|
+
])) : v("", !0),
|
|
1006
|
+
_n.value ? (w(), y("div", {
|
|
1007
1007
|
key: 2,
|
|
1008
1008
|
ref_key: "noTitle",
|
|
1009
1009
|
ref: Wt,
|
|
1010
1010
|
class: "vue-data-ui-no-title-space",
|
|
1011
1011
|
style: "height:36px; width: 100%;background:transparent"
|
|
1012
|
-
}, null, 512)) :
|
|
1013
|
-
L.value.style.title.text ? (
|
|
1012
|
+
}, null, 512)) : v("", !0),
|
|
1013
|
+
L.value.style.title.text ? (w(), y("div", {
|
|
1014
1014
|
key: 3,
|
|
1015
1015
|
ref_key: "chartTitle",
|
|
1016
1016
|
ref: Ut,
|
|
1017
1017
|
style: "width:100%;background:transparent"
|
|
1018
|
-
}, [(
|
|
1018
|
+
}, [(w(), _(fe, {
|
|
1019
1019
|
key: `title_${Lt.value}`,
|
|
1020
1020
|
config: {
|
|
1021
1021
|
title: {
|
|
@@ -1027,16 +1027,16 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1027
1027
|
...L.value.style.title.subtitle
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1031
|
-
L.value.userOptions.show &&
|
|
1030
|
+
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1031
|
+
L.value.userOptions.show && jt.value && (k(un) || k(cn)) ? (w(), _(k(wt), {
|
|
1032
1032
|
ref_key: "userOptionsRef",
|
|
1033
1033
|
ref: Bt,
|
|
1034
1034
|
key: `user_options_${Ft.value}`,
|
|
1035
1035
|
backgroundColor: L.value.style.backgroundColor,
|
|
1036
1036
|
color: L.value.style.color,
|
|
1037
|
-
isImaging:
|
|
1038
|
-
isPrinting:
|
|
1039
|
-
uid:
|
|
1037
|
+
isImaging: k(mn),
|
|
1038
|
+
isPrinting: k(pn),
|
|
1039
|
+
uid: M.value,
|
|
1040
1040
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.tooltip.show,
|
|
1041
1041
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1042
1042
|
hasImg: L.value.userOptions.buttons.img,
|
|
@@ -1057,7 +1057,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1057
1057
|
tableDialog: L.value.table.useDialog,
|
|
1058
1058
|
isCursorPointer: nn.value,
|
|
1059
1059
|
onToggleFullscreen: Gn,
|
|
1060
|
-
onGeneratePdf:
|
|
1060
|
+
onGeneratePdf: k(hn),
|
|
1061
1061
|
onGenerateCsv: Wn,
|
|
1062
1062
|
onGenerateImage: cr,
|
|
1063
1063
|
onGenerateSvg: sr,
|
|
@@ -1065,11 +1065,11 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1065
1065
|
onToggleTooltip: qn,
|
|
1066
1066
|
onToggleAnnotator: Yn,
|
|
1067
1067
|
onCopyAlt: lr,
|
|
1068
|
-
style:
|
|
1069
|
-
},
|
|
1068
|
+
style: C({ visibility: k(un) ? k(cn) ? "visible" : "hidden" : "visible" })
|
|
1069
|
+
}, Se({ _: 2 }, [
|
|
1070
1070
|
t.$slots.menuIcon ? {
|
|
1071
1071
|
name: "menuIcon",
|
|
1072
|
-
fn:
|
|
1072
|
+
fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
|
|
1073
1073
|
isOpen: e,
|
|
1074
1074
|
color: n
|
|
1075
1075
|
})), void 0, !0)]),
|
|
@@ -1077,37 +1077,37 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1077
1077
|
} : void 0,
|
|
1078
1078
|
t.$slots.optionTooltip ? {
|
|
1079
1079
|
name: "optionTooltip",
|
|
1080
|
-
fn:
|
|
1080
|
+
fn: A(() => [D(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1081
1081
|
key: "1"
|
|
1082
1082
|
} : void 0,
|
|
1083
1083
|
t.$slots.optionPdf ? {
|
|
1084
1084
|
name: "optionPdf",
|
|
1085
|
-
fn:
|
|
1085
|
+
fn: A(() => [D(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1086
1086
|
key: "2"
|
|
1087
1087
|
} : void 0,
|
|
1088
1088
|
t.$slots.optionCsv ? {
|
|
1089
1089
|
name: "optionCsv",
|
|
1090
|
-
fn:
|
|
1090
|
+
fn: A(() => [D(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1091
1091
|
key: "3"
|
|
1092
1092
|
} : void 0,
|
|
1093
1093
|
t.$slots.optionImg ? {
|
|
1094
1094
|
name: "optionImg",
|
|
1095
|
-
fn:
|
|
1095
|
+
fn: A(() => [D(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1096
1096
|
key: "4"
|
|
1097
1097
|
} : void 0,
|
|
1098
1098
|
t.$slots.optionSvg ? {
|
|
1099
1099
|
name: "optionSvg",
|
|
1100
|
-
fn:
|
|
1100
|
+
fn: A(() => [D(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1101
1101
|
key: "5"
|
|
1102
1102
|
} : void 0,
|
|
1103
1103
|
t.$slots.optionTable ? {
|
|
1104
1104
|
name: "optionTable",
|
|
1105
|
-
fn:
|
|
1105
|
+
fn: A(() => [D(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1106
1106
|
key: "6"
|
|
1107
1107
|
} : void 0,
|
|
1108
1108
|
t.$slots.optionFullscreen ? {
|
|
1109
1109
|
name: "optionFullscreen",
|
|
1110
|
-
fn:
|
|
1110
|
+
fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [D(t.$slots, "optionFullscreen", S(x({
|
|
1111
1111
|
toggleFullscreen: e,
|
|
1112
1112
|
isFullscreen: n
|
|
1113
1113
|
})), void 0, !0)]),
|
|
@@ -1115,7 +1115,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1115
1115
|
} : void 0,
|
|
1116
1116
|
t.$slots.optionAnnotator ? {
|
|
1117
1117
|
name: "optionAnnotator",
|
|
1118
|
-
fn:
|
|
1118
|
+
fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [D(t.$slots, "optionAnnotator", S(x({
|
|
1119
1119
|
toggleAnnotator: e,
|
|
1120
1120
|
isAnnotator: n
|
|
1121
1121
|
})), void 0, !0)]),
|
|
@@ -1123,36 +1123,36 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1123
1123
|
} : void 0,
|
|
1124
1124
|
t.$slots.optionAltCopy ? {
|
|
1125
1125
|
name: "optionAltCopy",
|
|
1126
|
-
fn:
|
|
1126
|
+
fn: A(({ altCopy: e }) => [D(t.$slots, "optionAltCopy", S(x({ altCopy: e })), void 0, !0)]),
|
|
1127
1127
|
key: "9"
|
|
1128
1128
|
} : void 0,
|
|
1129
1129
|
t.$slots["custom-menu-before"] ? {
|
|
1130
1130
|
name: "custom-menu-before",
|
|
1131
|
-
fn:
|
|
1131
|
+
fn: A(() => [D(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1132
1132
|
key: "10"
|
|
1133
1133
|
} : void 0,
|
|
1134
1134
|
t.$slots["custom-menu-after"] ? {
|
|
1135
1135
|
name: "custom-menu-after",
|
|
1136
|
-
fn:
|
|
1136
|
+
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1137
1137
|
key: "11"
|
|
1138
1138
|
} : void 0
|
|
1139
|
-
]), 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("."))) :
|
|
1140
|
-
|
|
1139
|
+
]), 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("."))) : v("", !0),
|
|
1140
|
+
b("div", { class: Oe({
|
|
1141
1141
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1142
1142
|
"vue-ui-heatmap-chart-wrapper-legend-right": L.value.style.legend.show
|
|
1143
1143
|
}) }, [
|
|
1144
|
-
(
|
|
1144
|
+
(w(), y("svg", {
|
|
1145
1145
|
ref_key: "svgRef",
|
|
1146
1146
|
ref: z,
|
|
1147
|
-
xmlns:
|
|
1148
|
-
"aria-describedby": `chart-instructions-${
|
|
1149
|
-
class:
|
|
1147
|
+
xmlns: k(f),
|
|
1148
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1149
|
+
class: Oe({
|
|
1150
1150
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1151
1151
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1152
1152
|
}),
|
|
1153
1153
|
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
1154
1154
|
width: "100%",
|
|
1155
|
-
style:
|
|
1155
|
+
style: C(`overflow: visible; background:transparent;color:${L.value.style.color}`),
|
|
1156
1156
|
"aria-live": "polite",
|
|
1157
1157
|
role: "img",
|
|
1158
1158
|
preserveAspectRatio: "xMidYMid",
|
|
@@ -1161,20 +1161,20 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1161
1161
|
onBlur: pr,
|
|
1162
1162
|
onKeydown: mr
|
|
1163
1163
|
}, [
|
|
1164
|
-
|
|
1165
|
-
t.$slots["chart-background"] ? (
|
|
1164
|
+
we(k(Tt)),
|
|
1165
|
+
t.$slots["chart-background"] ? (w(), y("foreignObject", {
|
|
1166
1166
|
key: 0,
|
|
1167
1167
|
x: K.value.left,
|
|
1168
1168
|
y: K.value.top,
|
|
1169
1169
|
width: K.value.width,
|
|
1170
1170
|
height: K.value.height,
|
|
1171
1171
|
style: { pointerEvents: "none" }
|
|
1172
|
-
}, [
|
|
1173
|
-
L.value.style.layout.cells.columnTotal.color.show ? (
|
|
1172
|
+
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : v("", !0),
|
|
1173
|
+
L.value.style.layout.cells.columnTotal.color.show ? (w(), y("g", {
|
|
1174
1174
|
key: 1,
|
|
1175
1175
|
ref_key: "xAxisSumRects",
|
|
1176
1176
|
ref: Xt
|
|
1177
|
-
}, [(
|
|
1177
|
+
}, [(w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1178
1178
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1179
1179
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1180
1180
|
height: K.value.sumCellXHeight,
|
|
@@ -1182,7 +1182,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1182
1182
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1183
1183
|
stroke: L.value.style.backgroundColor,
|
|
1184
1184
|
"stroke-width": G.value
|
|
1185
|
-
}, null, 8,
|
|
1185
|
+
}, null, 8, Ye))), 256)), (w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1186
1186
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1187
1187
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1188
1188
|
height: K.value.sumCellXHeight,
|
|
@@ -1190,23 +1190,23 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1190
1190
|
fill: e.color,
|
|
1191
1191
|
stroke: L.value.style.backgroundColor,
|
|
1192
1192
|
"stroke-width": G.value
|
|
1193
|
-
}, null, 8,
|
|
1194
|
-
|
|
1193
|
+
}, null, 8, Xe))), 256))], 512)) : v("", !0),
|
|
1194
|
+
b("g", {
|
|
1195
1195
|
ref_key: "datapoints",
|
|
1196
1196
|
ref: Rt
|
|
1197
|
-
}, [(
|
|
1198
|
-
|
|
1199
|
-
x: K.value.left + K.value.cellSize.width *
|
|
1197
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [(w(!0), y(h, null, E(e.temperatures, (e, n) => (w(), y("g", null, [
|
|
1198
|
+
b("rect", {
|
|
1199
|
+
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1200
1200
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1201
1201
|
width: K.value.cellSize.width - G.value,
|
|
1202
1202
|
height: K.value.cellSize.height - G.value,
|
|
1203
1203
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1204
1204
|
stroke: L.value.style.backgroundColor,
|
|
1205
1205
|
"stroke-width": G.value
|
|
1206
|
-
}, null, 8,
|
|
1207
|
-
|
|
1206
|
+
}, null, 8, Ze),
|
|
1207
|
+
b("rect", {
|
|
1208
1208
|
"data-a11y-cell-id": e.id,
|
|
1209
|
-
x: K.value.left + K.value.cellSize.width *
|
|
1209
|
+
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1210
1210
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1211
1211
|
width: K.value.cellSize.width - G.value,
|
|
1212
1212
|
height: K.value.cellSize.height - G.value,
|
|
@@ -1214,47 +1214,47 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1214
1214
|
stroke: L.value.style.backgroundColor,
|
|
1215
1215
|
"stroke-width": G.value,
|
|
1216
1216
|
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1217
|
-
onMouseover: (
|
|
1217
|
+
onMouseover: (r) => Bn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", dr(t, n)),
|
|
1218
1218
|
onMouseout: () => Vn({
|
|
1219
1219
|
datapoint: e,
|
|
1220
1220
|
seriesIndex: t
|
|
1221
1221
|
}),
|
|
1222
1222
|
onClick: () => Xn(e, t)
|
|
1223
|
-
}, null, 40,
|
|
1224
|
-
L.value.style.layout.cells.value.show ?
|
|
1223
|
+
}, null, 40, Qe),
|
|
1224
|
+
L.value.style.layout.cells.value.show ? ze((w(), y("text", {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
"text-anchor": "middle",
|
|
1227
1227
|
"font-size": L.value.style.layout.cells.value.fontSize,
|
|
1228
1228
|
"font-weight": L.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1229
|
-
fill:
|
|
1230
|
-
x: K.value.left + K.value.cellSize.width *
|
|
1229
|
+
fill: k(d)(e.color),
|
|
1230
|
+
x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1231
1231
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.cells.value.fontSize / 3,
|
|
1232
1232
|
style: {
|
|
1233
1233
|
pointerEvents: "none",
|
|
1234
1234
|
userSelect: "none"
|
|
1235
1235
|
}
|
|
1236
|
-
}, [
|
|
1236
|
+
}, [Ce(O(k(s)(L.value.style.layout.cells.value.formatter, e.value, k(l)({
|
|
1237
1237
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1238
1238
|
v: e.value,
|
|
1239
1239
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1240
1240
|
r: L.value.style.layout.cells.value.roundingValue
|
|
1241
|
-
}), { datapoint: e })), 1)], 8,
|
|
1241
|
+
}), { datapoint: e })), 1)], 8, $e)), [[k(He), {
|
|
1242
1242
|
cellWidth: K.value.cellSize.width - G.value,
|
|
1243
1243
|
cellHeight: K.value.cellSize.height - G.value,
|
|
1244
1244
|
maxFontSize: L.value.style.layout.cells.value.fontSize,
|
|
1245
1245
|
minFontSize: 10,
|
|
1246
|
-
index: t * H.value +
|
|
1246
|
+
index: t * H.value + n,
|
|
1247
1247
|
reportHide: In,
|
|
1248
1248
|
reportRotation: Nn,
|
|
1249
1249
|
hideAll: Fn.value,
|
|
1250
1250
|
rotateAll: Mn.value
|
|
1251
|
-
}]]) :
|
|
1251
|
+
}]]) : v("", !0)
|
|
1252
1252
|
]))), 256))], 64))), 256))], 512),
|
|
1253
|
-
L.value.style.layout.cells.rowTotal.color.show ? (
|
|
1253
|
+
L.value.style.layout.cells.rowTotal.color.show ? (w(), y("g", {
|
|
1254
1254
|
key: 2,
|
|
1255
1255
|
ref_key: "yAxisSumRects",
|
|
1256
1256
|
ref: qt
|
|
1257
|
-
}, [(
|
|
1257
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("rect", {
|
|
1258
1258
|
x: K.value.left,
|
|
1259
1259
|
y: K.value.top + K.value.cellSize.height * t,
|
|
1260
1260
|
width: K.value.sumCellXHeight,
|
|
@@ -1262,7 +1262,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1262
1262
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1263
1263
|
stroke: L.value.style.backgroundColor,
|
|
1264
1264
|
"stroke-width": G.value
|
|
1265
|
-
}, null, 8,
|
|
1265
|
+
}, null, 8, et), b("rect", {
|
|
1266
1266
|
x: K.value.left,
|
|
1267
1267
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1268
1268
|
width: K.value.sumCellXHeight,
|
|
@@ -1270,12 +1270,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1270
1270
|
fill: Y.value.yTotals[t].color,
|
|
1271
1271
|
stroke: L.value.style.backgroundColor,
|
|
1272
1272
|
"stroke-width": G.value
|
|
1273
|
-
}, null, 8,
|
|
1274
|
-
L.value.style.layout.dataLabels.yAxis.show ? (
|
|
1273
|
+
}, null, 8, tt)], 64))), 256))], 512)) : v("", !0),
|
|
1274
|
+
L.value.style.layout.dataLabels.yAxis.show ? (w(), y("g", {
|
|
1275
1275
|
key: 3,
|
|
1276
1276
|
ref_key: "yAxisLabels",
|
|
1277
1277
|
ref: Kt
|
|
1278
|
-
}, [(
|
|
1278
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("text", {
|
|
1279
1279
|
class: "vue-ui-heatmap-row-name",
|
|
1280
1280
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1281
1281
|
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -1283,7 +1283,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1283
1283
|
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),
|
|
1284
1284
|
"text-anchor": "end",
|
|
1285
1285
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1286
|
-
},
|
|
1286
|
+
}, O(Y.value.yLabels[t]), 9, nt), L.value.style.layout.cells.rowTotal.value.show ? (w(), y("text", {
|
|
1287
1287
|
key: 0,
|
|
1288
1288
|
class: "vue-ui-heatmap-row-total",
|
|
1289
1289
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1292,12 +1292,12 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1292
1292
|
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,
|
|
1293
1293
|
"text-anchor": "end",
|
|
1294
1294
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1295
|
-
},
|
|
1296
|
-
L.value.style.layout.dataLabels.xAxis.show ? (
|
|
1295
|
+
}, O(Hn(t)), 9, rt)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1296
|
+
L.value.style.layout.dataLabels.xAxis.show ? (w(), y("g", {
|
|
1297
1297
|
key: 4,
|
|
1298
1298
|
ref_key: "xAxisLabels",
|
|
1299
1299
|
ref: Jt
|
|
1300
|
-
}, [(
|
|
1300
|
+
}, [(w(!0), y(h, null, E(Y.value.xLabels, (e, t) => (w(), y(h, null, [!L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && t % L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (w(), y("text", {
|
|
1301
1301
|
key: 0,
|
|
1302
1302
|
class: "vue-ui-heatmap-col-name",
|
|
1303
1303
|
"text-anchor": L.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : L.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
@@ -1305,20 +1305,20 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1305
1305
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1306
1306
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1307
1307
|
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})`
|
|
1308
|
-
},
|
|
1309
|
-
L.value.style.layout.cells.columnTotal.value.show ? (
|
|
1308
|
+
}, O(e), 9, it)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1309
|
+
L.value.style.layout.cells.columnTotal.value.show ? (w(), y("g", {
|
|
1310
1310
|
key: 5,
|
|
1311
1311
|
ref_key: "xAxisSums",
|
|
1312
1312
|
ref: Yt
|
|
1313
|
-
}, [(
|
|
1313
|
+
}, [(w(!0), y(h, null, E(Y.value.xLabels, (e, t) => (w(), y("text", {
|
|
1314
1314
|
class: "vue-ui-heatmap-col-total",
|
|
1315
1315
|
"text-anchor": L.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : L.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1316
1316
|
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1317
1317
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1318
1318
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1319
1319
|
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})`
|
|
1320
|
-
},
|
|
1321
|
-
P.value ? (
|
|
1320
|
+
}, O(Un(t)), 9, at))), 256))], 512)) : v("", !0),
|
|
1321
|
+
P.value ? (w(), y("g", ot, [b("rect", {
|
|
1322
1322
|
style: { "pointer-events": "none" },
|
|
1323
1323
|
x: P.value.x - L.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1324
1324
|
y: P.value.y - L.value.style.layout.cells.selected.border / 2 + G.value,
|
|
@@ -1328,8 +1328,8 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1328
1328
|
stroke: L.value.style.layout.cells.selected.color,
|
|
1329
1329
|
"stroke-width": L.value.style.layout.cells.selected.border,
|
|
1330
1330
|
rx: 1
|
|
1331
|
-
}, null, 8,
|
|
1332
|
-
L.value.style.layout.crosshairs.show && P.value ? (
|
|
1331
|
+
}, null, 8, st)])) : v("", !0),
|
|
1332
|
+
L.value.style.layout.crosshairs.show && P.value ? (w(), y("g", ct, [b("line", {
|
|
1333
1333
|
x1: K.value.left + K.value.sumCellXHeight,
|
|
1334
1334
|
x2: P.value.x + K.value.sumCellXHeight,
|
|
1335
1335
|
y1: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
@@ -1338,7 +1338,7 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1338
1338
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1339
1339
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1340
1340
|
"stroke-linecap": "round"
|
|
1341
|
-
}, null, 8,
|
|
1341
|
+
}, null, 8, lt), b("line", {
|
|
1342
1342
|
x1: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1343
1343
|
x2: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1344
1344
|
y1: P.value.y,
|
|
@@ -1347,91 +1347,91 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1347
1347
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1348
1348
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1349
1349
|
"stroke-linecap": "round"
|
|
1350
|
-
}, null, 8,
|
|
1351
|
-
|
|
1350
|
+
}, null, 8, ut)])) : v("", !0),
|
|
1351
|
+
D(t.$slots, "svg", { svg: {
|
|
1352
1352
|
...U.value,
|
|
1353
1353
|
drawingArea: K.value,
|
|
1354
|
-
isPrintingImg:
|
|
1354
|
+
isPrintingImg: k(pn) || k(mn) || Vt.value,
|
|
1355
1355
|
isPrintingSvg: Ht.value
|
|
1356
1356
|
} }, void 0, !0)
|
|
1357
|
-
], 46,
|
|
1358
|
-
L.value.style.legend.show ? (
|
|
1357
|
+
], 46, qe)),
|
|
1358
|
+
L.value.style.legend.show ? (w(), y("div", {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
ref_key: "legendRight",
|
|
1361
1361
|
ref: Gt,
|
|
1362
1362
|
class: "vue-ui-heatmap-legend-right",
|
|
1363
|
-
style:
|
|
1363
|
+
style: C({ "--legend-width": L.value.style.legend.width + "px" })
|
|
1364
1364
|
}, [
|
|
1365
|
-
|
|
1365
|
+
k(on) ? v("", !0) : (w(), y("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1368
|
-
style:
|
|
1368
|
+
style: C({
|
|
1369
1369
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1370
1370
|
color: L.value.style.legend.color
|
|
1371
1371
|
})
|
|
1372
|
-
}, k(
|
|
1372
|
+
}, O(k(s)(L.value.style.layout.cells.value.formatter, k(m)(q.value), k(l)({
|
|
1373
1373
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1374
|
-
v:
|
|
1374
|
+
v: k(m)(q.value),
|
|
1375
1375
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1376
1376
|
r: L.value.style.legend.roundingValue
|
|
1377
1377
|
}))), 5)),
|
|
1378
|
-
|
|
1378
|
+
b("div", dt, [b("div", {
|
|
1379
1379
|
class: "vue-ui-heatmap-gauge",
|
|
1380
|
-
style:
|
|
1381
|
-
}, [
|
|
1380
|
+
style: C({ background: `linear-gradient(to bottom, ${L.value.style.layout.cells.colors.hot}, ${L.value.style.layout.cells.colors.cold})` })
|
|
1381
|
+
}, [ze(b("div", {
|
|
1382
1382
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1383
|
-
"data-value":
|
|
1383
|
+
"data-value": k(s)(L.value.style.layout.cells.value.formatter, k(m)(Z.value), k(l)({
|
|
1384
1384
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1385
|
-
v:
|
|
1385
|
+
v: k(m)(Z.value),
|
|
1386
1386
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1387
1387
|
r: L.value.style.legend.roundingValue
|
|
1388
1388
|
})),
|
|
1389
|
-
style:
|
|
1389
|
+
style: C({
|
|
1390
1390
|
position: "absolute",
|
|
1391
1391
|
width: "100%",
|
|
1392
1392
|
height: "2px",
|
|
1393
|
-
background: [void 0, null].includes(Z.value) ? "transparent" :
|
|
1393
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : k(d)(Ln.value.datapoint.color),
|
|
1394
1394
|
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1395
1395
|
transition: "all 0.2s ease-in-out",
|
|
1396
1396
|
"--background-color": L.value.style.backgroundColor,
|
|
1397
|
-
"--gauge-arrow-color":
|
|
1398
|
-
"--gauge-arrow-text-color":
|
|
1397
|
+
"--gauge-arrow-color": k(d)(L.value.style.backgroundColor),
|
|
1398
|
+
"--gauge-arrow-text-color": k(d)(L.value.style.backgroundColor),
|
|
1399
1399
|
"--gauge-arrow-value": Z.value,
|
|
1400
1400
|
"--gauge-arrow-font-size": L.value.style.legend.fontSize + "px"
|
|
1401
1401
|
})
|
|
1402
|
-
}, [
|
|
1402
|
+
}, [b("div", pt, O(k(s)(L.value.style.layout.cells.value.formatter, k(m)(Z.value), k(l)({
|
|
1403
1403
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1404
|
-
v:
|
|
1404
|
+
v: k(m)(Z.value),
|
|
1405
1405
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1406
1406
|
r: L.value.style.legend.roundingValue
|
|
1407
|
-
}))), 1)], 12,
|
|
1408
|
-
|
|
1407
|
+
}))), 1)], 12, ft), [[Ie, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1408
|
+
k(on) ? v("", !0) : (w(), y("div", {
|
|
1409
1409
|
key: 1,
|
|
1410
1410
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1411
|
-
style:
|
|
1411
|
+
style: C({
|
|
1412
1412
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1413
1413
|
color: L.value.style.legend.color
|
|
1414
1414
|
})
|
|
1415
|
-
}, k(
|
|
1415
|
+
}, O(k(s)(L.value.style.layout.cells.value.formatter, k(m)(Tn.value), k(l)({
|
|
1416
1416
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1417
|
-
v:
|
|
1417
|
+
v: k(m)(Tn.value),
|
|
1418
1418
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1419
1419
|
r: L.value.style.legend.roundingValue
|
|
1420
1420
|
}))), 5))
|
|
1421
|
-
], 4)) :
|
|
1422
|
-
t.$slots.hint ? (
|
|
1421
|
+
], 4)) : v("", !0),
|
|
1422
|
+
t.$slots.hint ? (w(), y("div", mt, [D(t.$slots, "hint", S(x({
|
|
1423
1423
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1424
1424
|
isVisible: tn.value
|
|
1425
|
-
})), void 0, !0)])) :
|
|
1425
|
+
})), void 0, !0)])) : v("", !0)
|
|
1426
1426
|
], 2),
|
|
1427
|
-
t.$slots.watermark ? (
|
|
1428
|
-
t.$slots.source ? (
|
|
1427
|
+
t.$slots.watermark ? (w(), y("div", ht, [D(t.$slots, "watermark", S(x({ isPrinting: k(pn) || k(mn) || Vt.value || Ht.value })), void 0, !0)])) : v("", !0),
|
|
1428
|
+
t.$slots.source ? (w(), y("div", {
|
|
1429
1429
|
key: 6,
|
|
1430
1430
|
ref_key: "source",
|
|
1431
1431
|
ref: Zt,
|
|
1432
1432
|
dir: "auto"
|
|
1433
|
-
}, [
|
|
1434
|
-
|
|
1433
|
+
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1434
|
+
we(k(We), {
|
|
1435
1435
|
teleportTo: L.value.style.tooltip.teleportTo,
|
|
1436
1436
|
show: B.value.showTooltip && Mt.value,
|
|
1437
1437
|
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
@@ -1455,9 +1455,9 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1455
1455
|
isA11yMode: en.value === "keyboard",
|
|
1456
1456
|
a11yPosition: $t.value
|
|
1457
1457
|
}, {
|
|
1458
|
-
"tooltip-before":
|
|
1459
|
-
tooltip:
|
|
1460
|
-
"tooltip-after":
|
|
1458
|
+
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1459
|
+
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1460
|
+
"tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1461
1461
|
_: 3
|
|
1462
1462
|
}, 8, [
|
|
1463
1463
|
"teleportTo",
|
|
@@ -1483,86 +1483,86 @@ var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke
|
|
|
1483
1483
|
"isA11yMode",
|
|
1484
1484
|
"a11yPosition"
|
|
1485
1485
|
]),
|
|
1486
|
-
|
|
1486
|
+
jt.value && L.value.userOptions.buttons.table ? (w(), _(Me(tr.value.component), Ee({ key: 7 }, tr.value.props, {
|
|
1487
1487
|
ref_key: "tableUnit",
|
|
1488
1488
|
ref: zt,
|
|
1489
1489
|
onClose: rr
|
|
1490
|
-
}),
|
|
1491
|
-
content:
|
|
1490
|
+
}), Se({
|
|
1491
|
+
content: A(() => [b("div", {
|
|
1492
1492
|
ref_key: "tableContainer",
|
|
1493
1493
|
ref: It,
|
|
1494
1494
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1495
|
-
style:
|
|
1496
|
-
}, [
|
|
1497
|
-
style:
|
|
1498
|
-
class:
|
|
1499
|
-
}, [L.value.table.useDialog ?
|
|
1495
|
+
style: C(`${L.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1496
|
+
}, [b("div", {
|
|
1497
|
+
style: C(`width:100%;overflow-x:auto;position:relative;${L.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1498
|
+
class: Oe({ "vue-ui-responsive": k(nr) })
|
|
1499
|
+
}, [L.value.table.useDialog ? v("", !0) : (w(), y("div", {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
role: "button",
|
|
1502
1502
|
tabindex: "0",
|
|
1503
|
-
style:
|
|
1503
|
+
style: C(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${L.value.table.th.backgroundColor};`),
|
|
1504
1504
|
onClick: rr,
|
|
1505
|
-
onKeypress:
|
|
1506
|
-
}, [
|
|
1505
|
+
onKeypress: Be(rr, ["enter"])
|
|
1506
|
+
}, [we(k(St), {
|
|
1507
1507
|
name: "close",
|
|
1508
1508
|
stroke: L.value.table.th.color,
|
|
1509
1509
|
"stroke-width": 2
|
|
1510
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1511
|
-
L.value.table.useDialog ?
|
|
1510
|
+
}, null, 8, ["stroke"])], 36)), b("table", gt, [
|
|
1511
|
+
L.value.table.useDialog ? v("", !0) : (w(), y("caption", {
|
|
1512
1512
|
key: 0,
|
|
1513
|
-
style:
|
|
1514
|
-
}, [
|
|
1515
|
-
|
|
1513
|
+
style: C(`backgroundColor:${L.value.table.th.backgroundColor};color:${L.value.table.th.color};outline:${L.value.table.th.outline}`)
|
|
1514
|
+
}, [Ce(O(L.value.style.title.text) + " ", 1), L.value.style.title.subtitle.text ? (w(), y("span", _t, O(L.value.style.title.subtitle.text), 1)) : v("", !0)], 4)),
|
|
1515
|
+
b("thead", null, [b("tr", {
|
|
1516
1516
|
role: "row",
|
|
1517
|
-
style:
|
|
1518
|
-
}, [
|
|
1517
|
+
style: C(`background:${L.value.table.th.backgroundColor};color:${L.value.table.th.color}`)
|
|
1518
|
+
}, [b("th", { style: C(`outline:${L.value.table.th.outline};padding-right:6px`) }, null, 4), (w(!0), y(h, null, E(e.dataset, (e, t) => (w(), y("th", {
|
|
1519
1519
|
align: "right",
|
|
1520
|
-
style:
|
|
1521
|
-
},
|
|
1522
|
-
|
|
1520
|
+
style: C(`outline:${L.value.table.th.outline};padding-right:6px`)
|
|
1521
|
+
}, O(e.name), 5))), 256))], 4)]),
|
|
1522
|
+
b("tbody", null, [(w(!0), y(h, null, E(Y.value.xLabels, (t, n) => (w(), y("tr", {
|
|
1523
1523
|
role: "row",
|
|
1524
|
-
class:
|
|
1524
|
+
class: Oe({
|
|
1525
1525
|
"vue-ui-data-table__tbody__row": !0,
|
|
1526
|
-
"vue-ui-data-table__tbody__row-even":
|
|
1527
|
-
"vue-ui-data-table__tbody__row-odd":
|
|
1526
|
+
"vue-ui-data-table__tbody__row-even": n % 2 == 0,
|
|
1527
|
+
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1528
1528
|
}),
|
|
1529
|
-
style:
|
|
1530
|
-
}, [
|
|
1529
|
+
style: C(`background:${L.value.table.td.backgroundColor};color:${L.value.table.td.color}`)
|
|
1530
|
+
}, [b("td", {
|
|
1531
1531
|
"data-cell": L.value.table.colNames.xAxis,
|
|
1532
1532
|
class: "vue-ui-data-table__tbody__td",
|
|
1533
|
-
style:
|
|
1534
|
-
}, [
|
|
1533
|
+
style: C(`outline:${L.value.table.td.outline}`)
|
|
1534
|
+
}, [b("div", yt, O(t), 1)], 12, vt), (w(!0), y(h, null, E(e.dataset, (t, r) => (w(), y("td", {
|
|
1535
1535
|
class: "vue-ui-data-table__tbody__td",
|
|
1536
|
-
"data-cell": e.dataset[
|
|
1537
|
-
style:
|
|
1538
|
-
}, [
|
|
1536
|
+
"data-cell": e.dataset[r].name,
|
|
1537
|
+
style: C(`outline:${L.value.table.td.outline}`)
|
|
1538
|
+
}, [b("div", xt, O(isNaN(t.values[n]) ? "-" : k(l)({
|
|
1539
1539
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1540
|
-
v: t.values[
|
|
1540
|
+
v: t.values[n],
|
|
1541
1541
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1542
1542
|
r: L.value.table.td.roundingValue
|
|
1543
|
-
})), 1)], 12,
|
|
1543
|
+
})), 1)], 12, bt))), 256))], 6))), 256))])
|
|
1544
1544
|
])], 6)], 4)]),
|
|
1545
1545
|
_: 2
|
|
1546
1546
|
}, [L.value.table.useDialog ? {
|
|
1547
1547
|
name: "title",
|
|
1548
|
-
fn:
|
|
1548
|
+
fn: A(() => [Ce(O(tr.value.title), 1)]),
|
|
1549
1549
|
key: "0"
|
|
1550
1550
|
} : void 0, L.value.table.useDialog ? {
|
|
1551
1551
|
name: "actions",
|
|
1552
|
-
fn:
|
|
1552
|
+
fn: A(() => [b("button", {
|
|
1553
1553
|
tabindex: "0",
|
|
1554
1554
|
class: "vue-ui-user-options-button",
|
|
1555
|
-
onClick:
|
|
1556
|
-
style:
|
|
1557
|
-
}, [
|
|
1555
|
+
onClick: n[0] ||= (e) => Wn(L.value.userOptions.callbacks.csv),
|
|
1556
|
+
style: C({ cursor: nn.value ? "pointer" : "default" })
|
|
1557
|
+
}, [we(k(St), {
|
|
1558
1558
|
name: "fileCsv",
|
|
1559
1559
|
stroke: tr.value.props.color
|
|
1560
1560
|
}, null, 8, ["stroke"])], 4)]),
|
|
1561
1561
|
key: "1"
|
|
1562
|
-
} : void 0]), 1040)) :
|
|
1563
|
-
|
|
1564
|
-
], 46,
|
|
1562
|
+
} : void 0]), 1040)) : v("", !0),
|
|
1563
|
+
D(t.$slots, "skeleton", {}, () => [k(on) ? (w(), _(oe, { key: 0 })) : v("", !0)], !0)
|
|
1564
|
+
], 46, Ge));
|
|
1565
1565
|
}
|
|
1566
1566
|
}, [["__scopeId", "data-v-57a8b077"]]);
|
|
1567
1567
|
//#endregion
|
|
1568
|
-
export {
|
|
1568
|
+
export { We as n, St as t };
|