vue-data-ui 3.23.0 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-oDYGTc5P.js} +2 -2
- 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 +3 -0
- package/dist/{useConfig-BilxnBNr.js → useConfig-D3scuR88.js} +7 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-Brg8mm5J.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-DGWDPCwC.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-C_Su9fve.js} +45 -45
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CgnPWA93.js → vue-ui-age-pyramid-D4k1MkAL.js} +41 -40
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-CCtnM8Rv.js} +41 -68
- package/dist/{vue-ui-bullet-Bc3-WaN1.js → vue-ui-bullet-DLZr2Uk8.js} +21 -21
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-CcdzJZ9n.js} +32 -32
- package/dist/{vue-ui-candlestick-DvvsrIdp.js → vue-ui-candlestick-EEEt7ORC.js} +50 -48
- package/dist/{vue-ui-carousel-table-DtsNVim8.js → vue-ui-carousel-table-BicIpNAD.js} +8 -8
- package/dist/vue-ui-chestnut-BI7mC5dd.js +2068 -0
- package/dist/{vue-ui-chord-xX5gWZy8.js → vue-ui-chord-DXaq8ZMu.js} +46 -46
- package/dist/{vue-ui-circle-pack-D8wykmqg.js → vue-ui-circle-pack-XHJBMG51.js} +362 -341
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-BqHr0n1Z.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-jMLVoQkb.js} +715 -720
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-DVAUFETR.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Dy4gG6qm.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-C0cWRLbU.js} +48 -47
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-CYpxGBhl.js} +18 -17
- package/dist/{vue-ui-donut-evolution-D6vH_hfx.js → vue-ui-donut-evolution-DwR47A2r.js} +58 -53
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-DxVbRjKR.js} +85 -85
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-DWaZF4FS.js} +37 -37
- package/dist/{vue-ui-funnel-CjYosIik.js → vue-ui-funnel-Bmpx5GHR.js} +24 -24
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-CWBP9oH9.js} +151 -151
- package/dist/{vue-ui-gauge-CByT0_vF.js → vue-ui-gauge-ByE_txav.js} +20 -20
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-ZA7CBy8f.js} +186 -186
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-SQCou0bQ.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-CHd9gs_p.js} +385 -385
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/{vue-ui-history-plot-BhcU94Pt.js → vue-ui-history-plot-BwnlC1mx.js} +511 -510
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-BUar2HUH.js} +235 -235
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-BF_9WWoo.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CvfukjXi.js} +3 -3
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-_zpbmvJs.js} +50 -50
- package/dist/{vue-ui-nested-donuts-aS4YzaB3.js → vue-ui-nested-donuts-qHZAJ70u.js} +43 -43
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-BUwt-apg.js} +54 -54
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-CoROD3er.js} +74 -74
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-BcH7eY4-.js} +96 -88
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-DGbaXGme.js} +191 -191
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-Bo3zD3yW.js} +3 -3
- package/dist/{vue-ui-relation-circle-FLs8vOxQ.js → vue-ui-relation-circle-DaU1eTsG.js} +32 -32
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-BJUBn8_b.js} +40 -40
- package/dist/{vue-ui-scatter-CNA7jF-o.js → vue-ui-scatter-Pcft1bUt.js} +50 -50
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-EeJcGbCo.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-D0gibt5c.js} +3 -3
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-BRoQ7JpQ.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-DFp2k7-7.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-D0Bq85Hs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-BPln7v63.js} +13 -13
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-C6Q45Dqp.js} +7 -6
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-CjK4bcQg.js} +5 -5
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-Ca8EPf3e.js} +83 -80
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Pz5WWlWT.js} +189 -186
- package/dist/{vue-ui-strip-plot-ACeYOoHj.js → vue-ui-strip-plot-Dw4MGDSO.js} +66 -66
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-ljeYW8Wc.js} +10 -10
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-iRFmtK5S.js} +8 -8
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-D8uiOaeA.js} +26 -26
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-CYw983oL.js} +6 -6
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-h4VbnqPA.js} +77 -77
- package/dist/{vue-ui-waffle-iPpdk1Bm.js → vue-ui-waffle-cu0w_s6L.js} +41 -41
- package/dist/vue-ui-wheel-tLvJadk5.js +892 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-BjpGSsod.js} +68 -68
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-B4fCS3jN.js} +184 -184
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-7ZT9IRD8.js} +60 -60
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-BnLEwBpi.js} +20 -18
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-gyNS0yH0.js} +329 -326
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-chestnut-ArloORzP.js +0 -2068
- package/dist/vue-ui-hill-D7LYAgAL.js +0 -1768
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
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
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { l as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
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 te } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ie } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as ae } from "./useConfig-D3scuR88.js";
|
|
6
|
+
import { t as oe } from "./usePrinter-DN5bYhTG.js";
|
|
7
|
+
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as le } from "./useSvgExport-DH-FfcqQ.js";
|
|
9
|
+
import { t as ue } from "./useNestedProp-vPNvh7rV.js";
|
|
10
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
11
|
+
import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as pe } from "./img-Bnokohej.js";
|
|
13
|
+
import { n as me } from "./Title-BE3qg9xl.js";
|
|
14
|
+
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as ve } from "./vue-ui-accordion-BxGriZik.js";
|
|
17
|
+
import { t as ye } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Se } from "./useTableResponsive-BAqJPR68.js";
|
|
21
|
+
import { t as Ce } from "./vue_ui_heatmap-B2BBBSWG.js";
|
|
22
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as De, guardReactiveProps as x, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as je, onMounted as Me, openBlock as w, reactive as Ne, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as O, toRefs as Ie, unref as k, useCssVars as Le, vShow as Re, watch as ze, watchEffect as Be, withCtx as A, withDirectives as Ve, withKeys as He } from "vue";
|
|
23
23
|
//#region src/useLabelObserverEfffect.js
|
|
24
|
-
function
|
|
24
|
+
function Ue({ 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 Ve({ 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
|
+
Be((t) => {
|
|
42
42
|
let n = e.value;
|
|
43
43
|
if (!n) return;
|
|
44
44
|
let r = !1;
|
|
45
45
|
(async () => {
|
|
46
|
-
await
|
|
46
|
+
await ke();
|
|
47
47
|
for (let t = 0; t < i; t += 1) {
|
|
48
48
|
if (r) return;
|
|
49
49
|
await new Promise((e) => requestAnimationFrame(e));
|
|
@@ -89,15 +89,15 @@ function Ve({ 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 We = {
|
|
93
93
|
mounted(e, t) {
|
|
94
|
-
|
|
94
|
+
Ge(e, t.value);
|
|
95
95
|
},
|
|
96
96
|
updated(e, t) {
|
|
97
|
-
|
|
97
|
+
Ge(e, t.value);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Ge(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);
|
|
@@ -122,16 +122,16 @@ function Ue(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 Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye = [
|
|
126
126
|
"xmlns",
|
|
127
127
|
"aria-describedby",
|
|
128
128
|
"viewBox"
|
|
129
|
-
],
|
|
129
|
+
], Xe = [
|
|
130
130
|
"x",
|
|
131
131
|
"y",
|
|
132
132
|
"width",
|
|
133
133
|
"height"
|
|
134
|
-
],
|
|
134
|
+
], Ze = [
|
|
135
135
|
"x",
|
|
136
136
|
"y",
|
|
137
137
|
"height",
|
|
@@ -139,7 +139,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
139
139
|
"fill",
|
|
140
140
|
"stroke",
|
|
141
141
|
"stroke-width"
|
|
142
|
-
],
|
|
142
|
+
], Qe = [
|
|
143
143
|
"x",
|
|
144
144
|
"y",
|
|
145
145
|
"height",
|
|
@@ -147,7 +147,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
147
147
|
"fill",
|
|
148
148
|
"stroke",
|
|
149
149
|
"stroke-width"
|
|
150
|
-
],
|
|
150
|
+
], $e = [
|
|
151
151
|
"x",
|
|
152
152
|
"y",
|
|
153
153
|
"width",
|
|
@@ -155,7 +155,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
155
155
|
"fill",
|
|
156
156
|
"stroke",
|
|
157
157
|
"stroke-width"
|
|
158
|
-
],
|
|
158
|
+
], et = [
|
|
159
159
|
"data-a11y-cell-id",
|
|
160
160
|
"x",
|
|
161
161
|
"y",
|
|
@@ -168,13 +168,13 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
168
168
|
"onMouseover",
|
|
169
169
|
"onMouseout",
|
|
170
170
|
"onClick"
|
|
171
|
-
],
|
|
171
|
+
], tt = [
|
|
172
172
|
"font-size",
|
|
173
173
|
"font-weight",
|
|
174
174
|
"fill",
|
|
175
175
|
"x",
|
|
176
176
|
"y"
|
|
177
|
-
],
|
|
177
|
+
], nt = [
|
|
178
178
|
"x",
|
|
179
179
|
"y",
|
|
180
180
|
"width",
|
|
@@ -182,7 +182,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
182
182
|
"fill",
|
|
183
183
|
"stroke",
|
|
184
184
|
"stroke-width"
|
|
185
|
-
],
|
|
185
|
+
], rt = [
|
|
186
186
|
"x",
|
|
187
187
|
"y",
|
|
188
188
|
"width",
|
|
@@ -190,38 +190,38 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
190
190
|
"fill",
|
|
191
191
|
"stroke",
|
|
192
192
|
"stroke-width"
|
|
193
|
-
],
|
|
193
|
+
], it = [
|
|
194
194
|
"font-size",
|
|
195
195
|
"fill",
|
|
196
196
|
"x",
|
|
197
197
|
"y",
|
|
198
198
|
"font-weight"
|
|
199
|
-
],
|
|
199
|
+
], at = [
|
|
200
200
|
"font-size",
|
|
201
201
|
"fill",
|
|
202
202
|
"x",
|
|
203
203
|
"y",
|
|
204
204
|
"font-weight"
|
|
205
|
-
],
|
|
205
|
+
], ot = [
|
|
206
206
|
"text-anchor",
|
|
207
207
|
"font-size",
|
|
208
208
|
"fill",
|
|
209
209
|
"font-weight",
|
|
210
210
|
"transform"
|
|
211
|
-
],
|
|
211
|
+
], st = [
|
|
212
212
|
"text-anchor",
|
|
213
213
|
"font-size",
|
|
214
214
|
"fill",
|
|
215
215
|
"font-weight",
|
|
216
216
|
"transform"
|
|
217
|
-
],
|
|
217
|
+
], ct = { key: 6 }, lt = [
|
|
218
218
|
"x",
|
|
219
219
|
"y",
|
|
220
220
|
"width",
|
|
221
221
|
"height",
|
|
222
222
|
"stroke",
|
|
223
223
|
"stroke-width"
|
|
224
|
-
],
|
|
224
|
+
], ut = { key: 7 }, dt = [
|
|
225
225
|
"x1",
|
|
226
226
|
"x2",
|
|
227
227
|
"y1",
|
|
@@ -229,7 +229,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
229
229
|
"stroke",
|
|
230
230
|
"stroke-width",
|
|
231
231
|
"stroke-dasharray"
|
|
232
|
-
],
|
|
232
|
+
], ft = [
|
|
233
233
|
"x1",
|
|
234
234
|
"x2",
|
|
235
235
|
"y1",
|
|
@@ -237,7 +237,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
237
237
|
"stroke",
|
|
238
238
|
"stroke-width",
|
|
239
239
|
"stroke-dasharray"
|
|
240
|
-
],
|
|
240
|
+
], pt = { class: "vue-ui-heatmap-legend-gauge-right" }, mt = ["data-value"], ht = { class: "vue-ui-heatmap-gauge-indicator-value" }, gt = {
|
|
241
241
|
key: 1,
|
|
242
242
|
style: {
|
|
243
243
|
position: "absolute",
|
|
@@ -247,24 +247,24 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
247
247
|
},
|
|
248
248
|
"data-dom-to-png-ignore": "",
|
|
249
249
|
"aria-hidden": "true"
|
|
250
|
-
},
|
|
250
|
+
}, _t = {
|
|
251
251
|
key: 5,
|
|
252
252
|
class: "vue-data-ui-watermark"
|
|
253
|
-
},
|
|
253
|
+
}, vt = { class: "vue-ui-data-table" }, yt = { key: 0 }, bt = ["data-cell"], xt = { 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
|
+
} }, St = ["data-cell"], Ct = { 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
|
+
} }, wt = /*#__PURE__*/ he({
|
|
268
268
|
__name: "vue-ui-heatmap",
|
|
269
269
|
props: {
|
|
270
270
|
config: {
|
|
@@ -281,26 +281,26 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
284
|
-
setup(e, { expose:
|
|
285
|
-
|
|
286
|
-
let
|
|
284
|
+
setup(e, { expose: he, emit: Ge }) {
|
|
285
|
+
Le((e) => ({ v1e3a906a: e.tdo }));
|
|
286
|
+
let Ke = De(() => import("./Tooltip-DhjyfHwz.js")), wt = De(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Tt = De(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Et = De(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Dt = De(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Ot = De(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_heatmap: kt } = ae(), { isThemeValid: At, warnInvalidTheme: jt } = de(), j = e, Mt = Ge, Nt = 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(d()), N = T(null), Pt = T(!1), Ft = T(""), It = T(void 0), P = T(null), Lt = T(0), Rt = T(null), zt = T(0), Bt = T(null), Vt = T(null), Ht = T(null), Ut = T(!1), Wt = T(!1), Gt = T(null), Kt = T(null), qt = T(null), Jt = T(null), Yt = T(null), Xt = T(null), Zt = T(null), Qt = T(null), $t = T(null), F = Fe(null), I = T(null), en = T(null), tn = T({
|
|
294
294
|
x: 0,
|
|
295
295
|
y: 0
|
|
296
|
-
}), nn =
|
|
297
|
-
|
|
296
|
+
}), nn = T("pointer"), rn = T(!1), L = T(mn());
|
|
297
|
+
ne({
|
|
298
298
|
config: () => L.value,
|
|
299
|
-
dataset: () =>
|
|
299
|
+
dataset: () => j.dataset,
|
|
300
300
|
component: "VueUiHeatmap",
|
|
301
|
-
rules: [
|
|
301
|
+
rules: [re.emptyArray, re.noHint]
|
|
302
302
|
});
|
|
303
|
-
let an =
|
|
303
|
+
let an = g(() => L.value.userOptions.useCursorPointer);
|
|
304
304
|
function on() {
|
|
305
305
|
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
306
306
|
for (let r = 0; r < n; r += 1) {
|
|
@@ -313,7 +313,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
313
313
|
}
|
|
314
314
|
return t;
|
|
315
315
|
}
|
|
316
|
-
let sn =
|
|
316
|
+
let sn = g(() => r({
|
|
317
317
|
defaultConfig: {
|
|
318
318
|
table: { show: !1 },
|
|
319
319
|
userOptions: { show: !1 },
|
|
@@ -337,121 +337,121 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
userConfig: L.value.skeletonConfig ?? {}
|
|
340
|
-
})), { loading: cn, FINAL_DATASET: R, manualLoading: ln } =
|
|
341
|
-
...
|
|
340
|
+
})), { loading: cn, FINAL_DATASET: R, manualLoading: ln } = se({
|
|
341
|
+
...Ie(j),
|
|
342
342
|
FINAL_CONFIG: L,
|
|
343
343
|
prepareConfig: mn,
|
|
344
344
|
callback: () => {
|
|
345
345
|
Promise.resolve().then(async () => {
|
|
346
|
-
await
|
|
346
|
+
await ke(), N.value && a(N.value, {
|
|
347
347
|
delta: .1,
|
|
348
348
|
delay: 250
|
|
349
349
|
});
|
|
350
350
|
});
|
|
351
351
|
},
|
|
352
|
-
skeletonDataset:
|
|
352
|
+
skeletonDataset: j.config?.skeletonDataset ?? on(),
|
|
353
353
|
skeletonConfig: r({
|
|
354
354
|
defaultConfig: L.value,
|
|
355
355
|
userConfig: sn.value
|
|
356
356
|
})
|
|
357
|
-
}), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } =
|
|
357
|
+
}), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } = be({ config: L.value }), { svgRef: z } = xe({ config: L.value.style.title });
|
|
358
358
|
function pn(e) {
|
|
359
359
|
dn(e);
|
|
360
360
|
}
|
|
361
361
|
function mn() {
|
|
362
|
-
let e =
|
|
363
|
-
userConfig:
|
|
364
|
-
defaultConfig:
|
|
362
|
+
let e = ue({
|
|
363
|
+
userConfig: j.config,
|
|
364
|
+
defaultConfig: kt
|
|
365
365
|
}), t = {}, n = e.theme;
|
|
366
|
-
if (n) if (!
|
|
366
|
+
if (n) if (!At.value(e)) jt(e), t = e;
|
|
367
367
|
else {
|
|
368
|
-
let r =
|
|
369
|
-
userConfig:
|
|
368
|
+
let r = ue({
|
|
369
|
+
userConfig: Ce[n] || j.config,
|
|
370
370
|
defaultConfig: e
|
|
371
371
|
});
|
|
372
|
-
t = { ...
|
|
373
|
-
userConfig:
|
|
372
|
+
t = { ...ue({
|
|
373
|
+
userConfig: j.config,
|
|
374
374
|
defaultConfig: r
|
|
375
375
|
}) };
|
|
376
376
|
}
|
|
377
377
|
else t = e;
|
|
378
378
|
return t;
|
|
379
379
|
}
|
|
380
|
-
|
|
381
|
-
cn.value || (L.value = mn()), un.value = !L.value.userOptions.showOnChartHover, Sn(),
|
|
382
|
-
}, { deep: !0 }),
|
|
380
|
+
ze(() => j.config, (e) => {
|
|
381
|
+
cn.value || (L.value = mn()), un.value = !L.value.userOptions.showOnChartHover, Sn(), zt.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 }), ze(() => j.dataset, (e) => {
|
|
383
383
|
Array.isArray(e) && e.length > 0 && (ln.value = !1), Sn();
|
|
384
384
|
}, { deep: !0 });
|
|
385
|
-
let { isPrinting: hn, isImaging: gn, generatePdf: _n, generateImage: vn } =
|
|
386
|
-
elementId: `heatmap__${
|
|
385
|
+
let { isPrinting: hn, isImaging: gn, generatePdf: _n, generateImage: vn } = oe({
|
|
386
|
+
elementId: `heatmap__${M.value}`,
|
|
387
387
|
fileName: L.value.style.title.text || "vue-ui-heatmap",
|
|
388
388
|
options: L.value.userOptions.print
|
|
389
|
-
}), yn =
|
|
389
|
+
}), yn = g(() => L.value.userOptions.show && !L.value.style.title.text), B = T({
|
|
390
390
|
showTable: L.value.table.show,
|
|
391
391
|
showTooltip: L.value.style.tooltip.show
|
|
392
392
|
});
|
|
393
|
-
|
|
393
|
+
ze(L, () => {
|
|
394
394
|
B.value = {
|
|
395
395
|
showTable: L.value.table.show,
|
|
396
396
|
showTooltip: L.value.style.tooltip.show
|
|
397
397
|
};
|
|
398
398
|
}, { immediate: !0 });
|
|
399
|
-
let bn =
|
|
399
|
+
let bn = g(() => L.value.table.responsiveBreakpoint), V = T(null), xn = g(() => !!L.value.debug);
|
|
400
400
|
function Sn() {
|
|
401
|
-
if (l(
|
|
401
|
+
if (l(j.dataset) && (m({
|
|
402
402
|
componentName: "VueUiHeatmap",
|
|
403
403
|
type: "dataset",
|
|
404
404
|
debug: xn.value
|
|
405
|
-
}),
|
|
406
|
-
let e =
|
|
407
|
-
let { width: e, height: t } =
|
|
408
|
-
chart:
|
|
409
|
-
title: L.value.style.title.text ?
|
|
410
|
-
source:
|
|
411
|
-
noTitle:
|
|
405
|
+
}), Nt.value = !1, ln.value = !0), l(j.dataset) || (ln.value = L.value.loading), L.value.responsive) {
|
|
406
|
+
let e = ge(() => {
|
|
407
|
+
let { width: e, height: t } = _e({
|
|
408
|
+
chart: N.value,
|
|
409
|
+
title: L.value.style.title.text ? Gt.value : null,
|
|
410
|
+
source: $t.value,
|
|
411
|
+
noTitle: Kt.value
|
|
412
412
|
});
|
|
413
413
|
requestAnimationFrame(() => {
|
|
414
414
|
Cn.value = e, wn.value = t;
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
|
-
V.value && (
|
|
417
|
+
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);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
V.value && (
|
|
422
|
-
}),
|
|
420
|
+
je(() => {
|
|
421
|
+
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect());
|
|
422
|
+
}), Me(() => {
|
|
423
423
|
Sn();
|
|
424
424
|
});
|
|
425
|
-
let H =
|
|
425
|
+
let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), Cn = T(L.value.style.layout.width), wn = T(L.value.style.layout.height), U = g(() => ({
|
|
426
426
|
width: Math.max(10, Cn.value),
|
|
427
427
|
height: Math.max(10, wn.value)
|
|
428
|
-
})), Tn =
|
|
429
|
-
|
|
430
|
-
elementRef:
|
|
431
|
-
callback:
|
|
428
|
+
})), Tn = T(0);
|
|
429
|
+
Ue({
|
|
430
|
+
elementRef: Xt,
|
|
431
|
+
callback: ge((e) => {
|
|
432
432
|
e !== Tn.value && (Tn.value = e);
|
|
433
433
|
}, 100),
|
|
434
434
|
attr: "height"
|
|
435
435
|
});
|
|
436
|
-
let W =
|
|
437
|
-
|
|
438
|
-
elementRef:
|
|
439
|
-
callback:
|
|
436
|
+
let W = T(0);
|
|
437
|
+
Ue({
|
|
438
|
+
elementRef: Jt,
|
|
439
|
+
callback: ge((e) => {
|
|
440
440
|
e !== W.value && (W.value = e);
|
|
441
441
|
}, 100),
|
|
442
442
|
attr: "width"
|
|
443
443
|
});
|
|
444
|
-
let En =
|
|
445
|
-
|
|
446
|
-
elementRef:
|
|
447
|
-
callback:
|
|
444
|
+
let En = T(0);
|
|
445
|
+
Ue({
|
|
446
|
+
elementRef: Zt,
|
|
447
|
+
callback: ge((e) => {
|
|
448
448
|
e !== En.value && (En.value = e);
|
|
449
449
|
}, 100),
|
|
450
450
|
attr: "height"
|
|
451
|
-
}),
|
|
451
|
+
}), je(() => {
|
|
452
452
|
Tn.value = 0, W.value = 0, En.value = 0;
|
|
453
453
|
});
|
|
454
|
-
let G =
|
|
454
|
+
let G = g(() => Math.min(U.value.height, U.value.width) / 1e3 * L.value.style.layout.cells.spacing), K = g(() => {
|
|
455
455
|
let e = 0;
|
|
456
456
|
L.value.style.legend.show && (e = L.value.style.legend.width);
|
|
457
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 = {
|
|
@@ -472,14 +472,14 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
472
472
|
width: s,
|
|
473
473
|
cellSize: l
|
|
474
474
|
};
|
|
475
|
-
}), q =
|
|
475
|
+
}), q = g(() => Math.max(...R.value.flatMap((e) => e.values))), Dn = g(() => Math.min(...R.value.flatMap((e) => e.values))), J = g(() => {
|
|
476
476
|
let e = R.value.flatMap((e) => e.values);
|
|
477
477
|
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
478
|
-
}), On =
|
|
479
|
-
|
|
478
|
+
}), On = T([]), kn = T([]), An = 0;
|
|
479
|
+
Be(() => {
|
|
480
480
|
let e = ++An;
|
|
481
481
|
(async () => {
|
|
482
|
-
let t = L.value.style.layout.dataLabels.yAxis, n = await
|
|
482
|
+
let t = L.value.style.layout.dataLabels.yAxis, n = await ie({
|
|
483
483
|
values: t.values.length ? t.values : R.value.map((e) => e.name),
|
|
484
484
|
maxDatapoints: R.value.length,
|
|
485
485
|
formatter: t.datetimeFormatter,
|
|
@@ -490,10 +490,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
490
490
|
})();
|
|
491
491
|
});
|
|
492
492
|
let jn = 0;
|
|
493
|
-
|
|
493
|
+
Be(() => {
|
|
494
494
|
let e = ++jn;
|
|
495
495
|
(async () => {
|
|
496
|
-
let t = L.value.style.layout.dataLabels.xAxis, n = await
|
|
496
|
+
let t = L.value.style.layout.dataLabels.xAxis, n = await ie({
|
|
497
497
|
values: t.values,
|
|
498
498
|
maxDatapoints: H.value,
|
|
499
499
|
formatter: t.datetimeFormatter,
|
|
@@ -503,7 +503,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
503
503
|
e === jn && (kn.value = n);
|
|
504
504
|
})();
|
|
505
505
|
});
|
|
506
|
-
let Y =
|
|
506
|
+
let Y = g(() => {
|
|
507
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 = [];
|
|
508
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));
|
|
509
509
|
let o = Math.max(...a), s = Math.min(...a);
|
|
@@ -511,17 +511,17 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
511
511
|
yTotals: n.map((e) => ({
|
|
512
512
|
total: e,
|
|
513
513
|
proportion: isNaN(e / r) ? 0 : e / r,
|
|
514
|
-
color:
|
|
514
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, i, r, e)
|
|
515
515
|
})),
|
|
516
516
|
xTotals: a.map((e) => ({
|
|
517
517
|
total: e,
|
|
518
518
|
proportion: isNaN(e / o) ? 0 : e / o,
|
|
519
|
-
color:
|
|
519
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, s, o, e)
|
|
520
520
|
})),
|
|
521
521
|
yLabels: e,
|
|
522
522
|
xLabels: t.slice(0, H.value)
|
|
523
523
|
};
|
|
524
|
-
}), X =
|
|
524
|
+
}), X = g(() => (R.value.forEach((e, t) => {
|
|
525
525
|
u({
|
|
526
526
|
datasetObject: e,
|
|
527
527
|
requiredAttributes: ["values"]
|
|
@@ -538,7 +538,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
538
538
|
...e,
|
|
539
539
|
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
540
540
|
side: "up",
|
|
541
|
-
color:
|
|
541
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Dn.value, q.value, e),
|
|
542
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)),
|
|
543
543
|
value: e,
|
|
544
544
|
yAxisName: Y.value.yLabels[t],
|
|
@@ -547,23 +547,23 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
547
547
|
} : {
|
|
548
548
|
side: "down",
|
|
549
549
|
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
550
|
-
color:
|
|
550
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Dn.value, q.value, e),
|
|
551
551
|
value: e,
|
|
552
552
|
yAxisName: Y.value.yLabels[t],
|
|
553
553
|
xAxisName: Y.value.xLabels[n],
|
|
554
554
|
id: `vue-data-ui-heatmap-cell-${d()}`
|
|
555
555
|
})
|
|
556
|
-
})))), Mn =
|
|
556
|
+
})))), Mn = g(() => R.value.length), Nn = Ne(Array(Mn.value * H.value || 1).fill(!1)), Pn = g(() => Nn.some((e) => e));
|
|
557
557
|
function Fn(e, t) {
|
|
558
558
|
Nn[e] = t;
|
|
559
559
|
}
|
|
560
|
-
let In =
|
|
560
|
+
let In = Ne(Array(Mn.value * H.value || 1).fill(!1)), Ln = g(() => In.some((e) => e));
|
|
561
561
|
function Rn(e, t) {
|
|
562
562
|
In[e] = t;
|
|
563
563
|
}
|
|
564
|
-
let Z =
|
|
564
|
+
let Z = T(null), zn = T(null);
|
|
565
565
|
function Bn() {
|
|
566
|
-
|
|
566
|
+
Pt.value = !1, It.value = void 0, Z.value = null, P.value = null, I.value = null, en.value = null;
|
|
567
567
|
}
|
|
568
568
|
function Vn(e) {
|
|
569
569
|
if (!z.value || !e) return;
|
|
@@ -580,29 +580,29 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
580
580
|
datapoint: e,
|
|
581
581
|
seriesIndex: t
|
|
582
582
|
}), !B.value.showTooltip) return;
|
|
583
|
-
nn.value = a, I.value = o, en.value = e.id,
|
|
583
|
+
nn.value = a, I.value = o, en.value = e.id, P.value = {
|
|
584
584
|
x: n,
|
|
585
585
|
y: r
|
|
586
586
|
};
|
|
587
587
|
let { value: l, yAxisName: u, xAxisName: d, id: f } = e;
|
|
588
|
-
|
|
588
|
+
It.value = f, Z.value = l, zn.value = {
|
|
589
589
|
datapoint: e,
|
|
590
590
|
seriesIndex: t,
|
|
591
591
|
series: X.value,
|
|
592
592
|
config: L.value
|
|
593
|
-
},
|
|
593
|
+
}, Pt.value = !0;
|
|
594
594
|
let p = "", m = L.value.style.tooltip.customFormat;
|
|
595
595
|
ee(m) && s(() => m({
|
|
596
596
|
datapoint: e,
|
|
597
597
|
seriesIndex: t,
|
|
598
598
|
series: X.value,
|
|
599
599
|
config: L.value
|
|
600
|
-
})) ?
|
|
600
|
+
})) ? Ft.value = m({
|
|
601
601
|
datapoint: e,
|
|
602
602
|
seriesIndex: t,
|
|
603
603
|
series: X.value,
|
|
604
604
|
config: L.value
|
|
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:${
|
|
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:${te(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({
|
|
606
606
|
p: L.value.style.layout.dataLabels.prefix,
|
|
607
607
|
v: l,
|
|
608
608
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -610,7 +610,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
610
610
|
}), {
|
|
611
611
|
datapoint: e,
|
|
612
612
|
seriesIndex: t
|
|
613
|
-
})}</span></div>`,
|
|
613
|
+
})}</span></div>`, Ft.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && ke(() => {
|
|
614
614
|
Vn(e.id);
|
|
615
615
|
});
|
|
616
616
|
}
|
|
@@ -618,7 +618,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
618
618
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
619
619
|
datapoint: e,
|
|
620
620
|
seriesIndex: t
|
|
621
|
-
}),
|
|
621
|
+
}), (en.value !== e.id || nn.value !== "keyboard") && (Pt.value = !1, It.value = void 0, Z.value = null, P.value = null);
|
|
622
622
|
}
|
|
623
623
|
function Wn(e) {
|
|
624
624
|
return c(L.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, i({
|
|
@@ -642,19 +642,19 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
642
642
|
colIndex: e
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
|
-
|
|
645
|
+
g(() => ({
|
|
646
646
|
head: R.value.map((e) => ({ name: e.name })),
|
|
647
647
|
body: R.value.map((e) => e.values)
|
|
648
648
|
}));
|
|
649
649
|
function Kn(e = null) {
|
|
650
|
-
|
|
650
|
+
ke(() => {
|
|
651
651
|
let r = ["", ...R.value.map((e, t) => e.name)], i = [];
|
|
652
652
|
for (let e = 0; e < Y.value.xLabels.length; e += 1) {
|
|
653
653
|
let t = [Y.value.xLabels[e]];
|
|
654
654
|
for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
|
|
655
655
|
i.push(t);
|
|
656
656
|
}
|
|
657
|
-
let a =
|
|
657
|
+
let a = [
|
|
658
658
|
[L.value.style.title.text],
|
|
659
659
|
[L.value.style.title.subtitle.text],
|
|
660
660
|
[
|
|
@@ -663,16 +663,16 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
663
663
|
[""]
|
|
664
664
|
],
|
|
665
665
|
r
|
|
666
|
-
].concat(i));
|
|
667
|
-
e ? e(
|
|
668
|
-
csvContent:
|
|
666
|
+
].concat(i), o = n(a);
|
|
667
|
+
e ? e(o) : t({
|
|
668
|
+
csvContent: o,
|
|
669
669
|
title: L.value.style.title.text || "vue-ui-heatmap"
|
|
670
670
|
});
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
let Q =
|
|
673
|
+
let Q = T(!1);
|
|
674
674
|
function qn(e) {
|
|
675
|
-
Q.value = e,
|
|
675
|
+
Q.value = e, Lt.value += 1;
|
|
676
676
|
}
|
|
677
677
|
function Jn() {
|
|
678
678
|
B.value.showTable = !B.value.showTable;
|
|
@@ -680,7 +680,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
680
680
|
function Yn() {
|
|
681
681
|
B.value.showTooltip = !B.value.showTooltip;
|
|
682
682
|
}
|
|
683
|
-
let Xn =
|
|
683
|
+
let Xn = T(!1);
|
|
684
684
|
function Zn() {
|
|
685
685
|
Xn.value = !Xn.value;
|
|
686
686
|
}
|
|
@@ -688,15 +688,15 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
688
688
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
689
689
|
datapoint: e,
|
|
690
690
|
seriesIndex: t
|
|
691
|
-
}),
|
|
691
|
+
}), Mt("selectDatapoint", e);
|
|
692
692
|
}
|
|
693
693
|
function $n() {
|
|
694
694
|
return X.value;
|
|
695
695
|
}
|
|
696
696
|
async function er({ scale: e = 2 } = {}) {
|
|
697
|
-
if (!
|
|
698
|
-
let { width: t, height: n } =
|
|
699
|
-
domElement:
|
|
697
|
+
if (!N.value) return;
|
|
698
|
+
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
699
|
+
domElement: N.value,
|
|
700
700
|
base64: !0,
|
|
701
701
|
img: !0,
|
|
702
702
|
scale: e
|
|
@@ -710,12 +710,12 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
710
710
|
aspectRatio: r
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
let tr =
|
|
713
|
+
let tr = g(() => ({
|
|
714
714
|
start: 0,
|
|
715
715
|
end: H.value
|
|
716
|
-
})), nr =
|
|
717
|
-
|
|
718
|
-
timeLabelsEls:
|
|
716
|
+
})), nr = g(() => Y.value.xLabels);
|
|
717
|
+
fe({
|
|
718
|
+
timeLabelsEls: Xt,
|
|
719
719
|
timeLabels: nr,
|
|
720
720
|
slicer: tr,
|
|
721
721
|
configRef: L,
|
|
@@ -739,8 +739,8 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
739
739
|
rotation: L.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
740
740
|
width: Cn,
|
|
741
741
|
height: wn
|
|
742
|
-
}),
|
|
743
|
-
timeLabelsEls:
|
|
742
|
+
}), fe({
|
|
743
|
+
timeLabelsEls: Zt,
|
|
744
744
|
timeLabels: nr,
|
|
745
745
|
slicer: tr,
|
|
746
746
|
configRef: L,
|
|
@@ -767,10 +767,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
767
767
|
width: Cn,
|
|
768
768
|
height: wn
|
|
769
769
|
});
|
|
770
|
-
let rr =
|
|
770
|
+
let rr = g(() => {
|
|
771
771
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
772
772
|
return {
|
|
773
|
-
component: e ?
|
|
773
|
+
component: e ? Ot : ve,
|
|
774
774
|
title: `${L.value.style.title.text}${L.value.style.title.subtitle.text ? `: ${L.value.style.title.subtitle.text}` : ""}`,
|
|
775
775
|
props: e ? {
|
|
776
776
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -778,7 +778,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
778
778
|
headerColor: L.value.table.th.color,
|
|
779
779
|
headerBg: L.value.table.th.backgroundColor,
|
|
780
780
|
isFullscreen: Q.value,
|
|
781
|
-
fullscreenParent:
|
|
781
|
+
fullscreenParent: N.value,
|
|
782
782
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
783
783
|
isCursorPointer: an.value
|
|
784
784
|
} : {
|
|
@@ -798,47 +798,47 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
800
|
});
|
|
801
|
-
|
|
802
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
801
|
+
ze(() => B.value.showTable, async (e) => {
|
|
802
|
+
L.value.table.show || (e && L.value.table.useDialog && Vt.value ? (await ke(), Vt.value.open()) : "close" in Vt.value && Vt.value.close());
|
|
803
803
|
});
|
|
804
|
-
let { isResponsive: ir } =
|
|
804
|
+
let { isResponsive: ir } = Se(Rt, bn);
|
|
805
805
|
function ar() {
|
|
806
|
-
B.value.showTable = !1,
|
|
806
|
+
B.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
807
807
|
}
|
|
808
|
-
let or =
|
|
808
|
+
let or = g(() => L.value.style.backgroundColor), sr = g(() => L.value.style.title), { exportSvg: cr, getSvg: lr } = le({
|
|
809
809
|
svg: z,
|
|
810
|
-
title:
|
|
810
|
+
title: sr,
|
|
811
811
|
backgroundColor: or
|
|
812
812
|
});
|
|
813
|
-
async function
|
|
814
|
-
|
|
813
|
+
async function ur({ isCb: e }) {
|
|
814
|
+
Wt.value = !0, await ke();
|
|
815
815
|
try {
|
|
816
816
|
if (e) {
|
|
817
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
817
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await lr();
|
|
818
818
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
819
819
|
blob: e,
|
|
820
820
|
url: t,
|
|
821
821
|
text: n,
|
|
822
822
|
dataUrl: r
|
|
823
823
|
}));
|
|
824
|
-
} else await Promise.resolve(
|
|
824
|
+
} else await Promise.resolve(cr());
|
|
825
825
|
} finally {
|
|
826
|
-
|
|
826
|
+
Wt.value = !1;
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function dr(e) {
|
|
830
830
|
if (e?.stage === "start") {
|
|
831
|
-
|
|
831
|
+
Ut.value = !0;
|
|
832
832
|
return;
|
|
833
833
|
}
|
|
834
834
|
if (e?.stage === "end") {
|
|
835
|
-
|
|
835
|
+
Ut.value = !1;
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
vn();
|
|
839
839
|
}
|
|
840
|
-
async function
|
|
841
|
-
if (
|
|
840
|
+
async function fr() {
|
|
841
|
+
if (Mt("copyAlt", {
|
|
842
842
|
config: L.value,
|
|
843
843
|
dataset: X.value
|
|
844
844
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -850,7 +850,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
850
850
|
dataset: X.value
|
|
851
851
|
}));
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function pr(e, t) {
|
|
854
854
|
let n = X.value[e];
|
|
855
855
|
if (!n) return null;
|
|
856
856
|
let r = n.temperatures[t];
|
|
@@ -860,18 +860,18 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
860
860
|
columnIndex: t
|
|
861
861
|
} : null;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function mr(e, t) {
|
|
864
864
|
let n = 0;
|
|
865
865
|
for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
|
|
866
866
|
return n + t;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function hr() {
|
|
869
869
|
I.value = null, en.value = null, rn.value = !0;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function gr() {
|
|
872
872
|
Bn(), rn.value = !1;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function _r(e) {
|
|
875
875
|
if (!z.value || Xn.value || document.activeElement !== z.value || !$.value.length) return;
|
|
876
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";
|
|
877
877
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
@@ -888,22 +888,22 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
888
888
|
}
|
|
889
889
|
let s = I.value === null ? null : $.value[I.value];
|
|
890
890
|
if (!s) {
|
|
891
|
-
let e =
|
|
891
|
+
let e = It.value ? $.value.findIndex((e) => e.cell.id === It.value) : null;
|
|
892
892
|
if (e !== null && e >= 0 && e < $.value.length) {
|
|
893
893
|
let a = $.value[e];
|
|
894
894
|
if (!a) return;
|
|
895
895
|
let o = a.rowIndex, s = a.columnIndex;
|
|
896
896
|
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
897
|
-
let c =
|
|
897
|
+
let c = yr.value.rowCount;
|
|
898
898
|
if (c <= 0) return;
|
|
899
899
|
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
900
900
|
let l = X.value[o];
|
|
901
901
|
if (!l || !l.temperatures.length) return;
|
|
902
902
|
let u = l.temperatures.length;
|
|
903
903
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
904
|
-
let d =
|
|
904
|
+
let d = pr(o, s);
|
|
905
905
|
if (!d) return;
|
|
906
|
-
let f =
|
|
906
|
+
let f = mr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
907
907
|
Hn(d.cell, d.rowIndex, p, m, "keyboard", f);
|
|
908
908
|
return;
|
|
909
909
|
}
|
|
@@ -915,19 +915,19 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
915
915
|
}
|
|
916
916
|
let c = s.rowIndex, l = s.columnIndex;
|
|
917
917
|
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
918
|
-
let u =
|
|
918
|
+
let u = yr.value.rowCount;
|
|
919
919
|
if (u <= 0) return;
|
|
920
920
|
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
921
921
|
let d = X.value[c];
|
|
922
922
|
if (!d || !d.temperatures.length) return;
|
|
923
923
|
let f = d.temperatures.length;
|
|
924
924
|
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
925
|
-
let p =
|
|
925
|
+
let p = pr(c, l);
|
|
926
926
|
if (!p) return;
|
|
927
|
-
let m =
|
|
928
|
-
Hn(p.cell, p.rowIndex, ee,
|
|
927
|
+
let m = mr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
928
|
+
Hn(p.cell, p.rowIndex, ee, te, "keyboard", m);
|
|
929
929
|
}
|
|
930
|
-
let
|
|
930
|
+
let vr = g(() => ({
|
|
931
931
|
headers: [L.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
932
932
|
rows: Y.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
|
|
933
933
|
let n = e.values?.[t];
|
|
@@ -938,46 +938,46 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
938
938
|
r: L.value.table.td.roundingValue
|
|
939
939
|
});
|
|
940
940
|
})])
|
|
941
|
-
})),
|
|
941
|
+
})), yr = g(() => ({
|
|
942
942
|
rowCount: X.value.length,
|
|
943
943
|
columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
|
|
944
|
-
})), $ =
|
|
944
|
+
})), $ = g(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
945
945
|
cell: e,
|
|
946
946
|
rowIndex: t,
|
|
947
947
|
columnIndex: n
|
|
948
948
|
}))));
|
|
949
|
-
return
|
|
949
|
+
return he({
|
|
950
950
|
getData: $n,
|
|
951
951
|
getImage: er,
|
|
952
952
|
generatePdf: _n,
|
|
953
953
|
generateCsv: Kn,
|
|
954
954
|
generateImage: vn,
|
|
955
|
-
generateSvg:
|
|
955
|
+
generateSvg: ur,
|
|
956
956
|
toggleTable: Jn,
|
|
957
957
|
toggleTooltip: Yn,
|
|
958
958
|
toggleAnnotator: Zn,
|
|
959
959
|
toggleFullscreen: qn,
|
|
960
|
-
copyAlt:
|
|
961
|
-
}), (t, n) => (
|
|
960
|
+
copyAlt: fr
|
|
961
|
+
}), (t, n) => (w(), y("div", {
|
|
962
962
|
ref_key: "heatmapChart",
|
|
963
|
-
ref:
|
|
964
|
-
class:
|
|
965
|
-
style:
|
|
966
|
-
id: `heatmap__${
|
|
963
|
+
ref: N,
|
|
964
|
+
class: Ae(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
965
|
+
style: C(`font-family:${L.value.style.fontFamily};width:100%;${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.backgroundColor}`),
|
|
966
|
+
id: `heatmap__${M.value}`,
|
|
967
967
|
onMouseenter: n[1] ||= () => pn(!0),
|
|
968
968
|
onMouseleave: n[2] ||= () => {
|
|
969
969
|
pn(!1), rn.value || Bn();
|
|
970
970
|
}
|
|
971
971
|
}, [
|
|
972
|
-
|
|
973
|
-
id: `chart-instructions-${
|
|
972
|
+
b("div", {
|
|
973
|
+
id: `chart-instructions-${M.value}`,
|
|
974
974
|
class: "sr-only"
|
|
975
|
-
}, [
|
|
976
|
-
|
|
975
|
+
}, [b("p", null, O(L.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
976
|
+
vr.value?.rows?.length ? (w(), _(ye, {
|
|
977
977
|
key: 0,
|
|
978
|
-
uid:
|
|
979
|
-
head:
|
|
980
|
-
body:
|
|
978
|
+
uid: M.value,
|
|
979
|
+
head: vr.value.headers,
|
|
980
|
+
body: vr.value.rows,
|
|
981
981
|
notice: L.value.a11y.translations.tableAvailable,
|
|
982
982
|
caption: L.value.a11y.translations.tableCaption
|
|
983
983
|
}, null, 8, [
|
|
@@ -986,22 +986,22 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
986
986
|
"body",
|
|
987
987
|
"notice",
|
|
988
988
|
"caption"
|
|
989
|
-
])) :
|
|
990
|
-
L.value.userOptions.buttons.annotator ? (
|
|
989
|
+
])) : v("", !0),
|
|
990
|
+
L.value.userOptions.buttons.annotator ? (w(), _(k(Tt), {
|
|
991
991
|
key: 1,
|
|
992
|
-
svgRef:
|
|
992
|
+
svgRef: k(z),
|
|
993
993
|
backgroundColor: L.value.style.backgroundColor,
|
|
994
994
|
color: L.value.style.color,
|
|
995
995
|
active: Xn.value,
|
|
996
996
|
isCursorPointer: an.value,
|
|
997
997
|
onClose: Zn
|
|
998
998
|
}, {
|
|
999
|
-
"annotator-action-close":
|
|
1000
|
-
"annotator-action-color":
|
|
1001
|
-
"annotator-action-draw":
|
|
1002
|
-
"annotator-action-undo":
|
|
1003
|
-
"annotator-action-redo":
|
|
1004
|
-
"annotator-action-delete":
|
|
999
|
+
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1000
|
+
"annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(x({ color: e })), void 0, !0)]),
|
|
1001
|
+
"annotator-action-draw": A(({ mode: e }) => [D(t.$slots, "annotator-action-draw", S(x({ mode: e })), void 0, !0)]),
|
|
1002
|
+
"annotator-action-undo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-undo", S(x({ disabled: e })), void 0, !0)]),
|
|
1003
|
+
"annotator-action-redo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-redo", S(x({ disabled: e })), void 0, !0)]),
|
|
1004
|
+
"annotator-action-delete": A(({ disabled: e }) => [D(t.$slots, "annotator-action-delete", S(x({ disabled: e })), void 0, !0)]),
|
|
1005
1005
|
_: 3
|
|
1006
1006
|
}, 8, [
|
|
1007
1007
|
"svgRef",
|
|
@@ -1009,21 +1009,21 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1009
1009
|
"color",
|
|
1010
1010
|
"active",
|
|
1011
1011
|
"isCursorPointer"
|
|
1012
|
-
])) :
|
|
1013
|
-
yn.value ? (
|
|
1012
|
+
])) : v("", !0),
|
|
1013
|
+
yn.value ? (w(), y("div", {
|
|
1014
1014
|
key: 2,
|
|
1015
1015
|
ref_key: "noTitle",
|
|
1016
|
-
ref:
|
|
1016
|
+
ref: Kt,
|
|
1017
1017
|
class: "vue-data-ui-no-title-space",
|
|
1018
1018
|
style: "height:36px; width: 100%;background:transparent"
|
|
1019
|
-
}, null, 512)) :
|
|
1020
|
-
L.value.style.title.text ? (
|
|
1019
|
+
}, null, 512)) : v("", !0),
|
|
1020
|
+
L.value.style.title.text ? (w(), y("div", {
|
|
1021
1021
|
key: 3,
|
|
1022
1022
|
ref_key: "chartTitle",
|
|
1023
|
-
ref:
|
|
1023
|
+
ref: Gt,
|
|
1024
1024
|
style: "width:100%;background:transparent"
|
|
1025
|
-
}, [(
|
|
1026
|
-
key: `title_${
|
|
1025
|
+
}, [(w(), _(me, {
|
|
1026
|
+
key: `title_${zt.value}`,
|
|
1027
1027
|
config: {
|
|
1028
1028
|
title: {
|
|
1029
1029
|
cy: "heatmap-div-title",
|
|
@@ -1034,16 +1034,16 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1034
1034
|
...L.value.style.title.subtitle
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1038
|
-
L.value.userOptions.show &&
|
|
1037
|
+
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1038
|
+
L.value.userOptions.show && Nt.value && (k(fn) || k(un)) ? (w(), _(k(Et), {
|
|
1039
1039
|
ref_key: "userOptionsRef",
|
|
1040
|
-
ref:
|
|
1041
|
-
key: `user_options_${
|
|
1040
|
+
ref: Ht,
|
|
1041
|
+
key: `user_options_${Lt.value}`,
|
|
1042
1042
|
backgroundColor: L.value.style.backgroundColor,
|
|
1043
1043
|
color: L.value.style.color,
|
|
1044
|
-
isImaging:
|
|
1045
|
-
isPrinting:
|
|
1046
|
-
uid:
|
|
1044
|
+
isImaging: k(gn),
|
|
1045
|
+
isPrinting: k(hn),
|
|
1046
|
+
uid: M.value,
|
|
1047
1047
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.tooltip.show,
|
|
1048
1048
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1049
1049
|
hasImg: L.value.userOptions.buttons.img,
|
|
@@ -1055,7 +1055,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1055
1055
|
isFullscreen: Q.value,
|
|
1056
1056
|
isTooltip: B.value.showTooltip,
|
|
1057
1057
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1058
|
-
chartElement:
|
|
1058
|
+
chartElement: N.value,
|
|
1059
1059
|
position: L.value.userOptions.position,
|
|
1060
1060
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1061
1061
|
isAnnotation: Xn.value,
|
|
@@ -1064,19 +1064,19 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1064
1064
|
tableDialog: L.value.table.useDialog,
|
|
1065
1065
|
isCursorPointer: an.value,
|
|
1066
1066
|
onToggleFullscreen: qn,
|
|
1067
|
-
onGeneratePdf:
|
|
1067
|
+
onGeneratePdf: k(_n),
|
|
1068
1068
|
onGenerateCsv: Kn,
|
|
1069
|
-
onGenerateImage:
|
|
1070
|
-
onGenerateSvg:
|
|
1069
|
+
onGenerateImage: dr,
|
|
1070
|
+
onGenerateSvg: ur,
|
|
1071
1071
|
onToggleTable: Jn,
|
|
1072
1072
|
onToggleTooltip: Yn,
|
|
1073
1073
|
onToggleAnnotator: Zn,
|
|
1074
|
-
onCopyAlt:
|
|
1075
|
-
style:
|
|
1076
|
-
},
|
|
1074
|
+
onCopyAlt: fr,
|
|
1075
|
+
style: C({ visibility: k(fn) ? k(un) ? "visible" : "hidden" : "visible" })
|
|
1076
|
+
}, we({ _: 2 }, [
|
|
1077
1077
|
t.$slots.menuIcon ? {
|
|
1078
1078
|
name: "menuIcon",
|
|
1079
|
-
fn:
|
|
1079
|
+
fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
|
|
1080
1080
|
isOpen: e,
|
|
1081
1081
|
color: n
|
|
1082
1082
|
})), void 0, !0)]),
|
|
@@ -1084,37 +1084,37 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1084
1084
|
} : void 0,
|
|
1085
1085
|
t.$slots.optionTooltip ? {
|
|
1086
1086
|
name: "optionTooltip",
|
|
1087
|
-
fn:
|
|
1087
|
+
fn: A(() => [D(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1088
1088
|
key: "1"
|
|
1089
1089
|
} : void 0,
|
|
1090
1090
|
t.$slots.optionPdf ? {
|
|
1091
1091
|
name: "optionPdf",
|
|
1092
|
-
fn:
|
|
1092
|
+
fn: A(() => [D(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1093
1093
|
key: "2"
|
|
1094
1094
|
} : void 0,
|
|
1095
1095
|
t.$slots.optionCsv ? {
|
|
1096
1096
|
name: "optionCsv",
|
|
1097
|
-
fn:
|
|
1097
|
+
fn: A(() => [D(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1098
1098
|
key: "3"
|
|
1099
1099
|
} : void 0,
|
|
1100
1100
|
t.$slots.optionImg ? {
|
|
1101
1101
|
name: "optionImg",
|
|
1102
|
-
fn:
|
|
1102
|
+
fn: A(() => [D(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1103
1103
|
key: "4"
|
|
1104
1104
|
} : void 0,
|
|
1105
1105
|
t.$slots.optionSvg ? {
|
|
1106
1106
|
name: "optionSvg",
|
|
1107
|
-
fn:
|
|
1107
|
+
fn: A(() => [D(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1108
1108
|
key: "5"
|
|
1109
1109
|
} : void 0,
|
|
1110
1110
|
t.$slots.optionTable ? {
|
|
1111
1111
|
name: "optionTable",
|
|
1112
|
-
fn:
|
|
1112
|
+
fn: A(() => [D(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1113
1113
|
key: "6"
|
|
1114
1114
|
} : void 0,
|
|
1115
1115
|
t.$slots.optionFullscreen ? {
|
|
1116
1116
|
name: "optionFullscreen",
|
|
1117
|
-
fn:
|
|
1117
|
+
fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [D(t.$slots, "optionFullscreen", S(x({
|
|
1118
1118
|
toggleFullscreen: e,
|
|
1119
1119
|
isFullscreen: n
|
|
1120
1120
|
})), void 0, !0)]),
|
|
@@ -1122,7 +1122,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1122
1122
|
} : void 0,
|
|
1123
1123
|
t.$slots.optionAnnotator ? {
|
|
1124
1124
|
name: "optionAnnotator",
|
|
1125
|
-
fn:
|
|
1125
|
+
fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [D(t.$slots, "optionAnnotator", S(x({
|
|
1126
1126
|
toggleAnnotator: e,
|
|
1127
1127
|
isAnnotator: n
|
|
1128
1128
|
})), void 0, !0)]),
|
|
@@ -1130,58 +1130,58 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1130
1130
|
} : void 0,
|
|
1131
1131
|
t.$slots.optionAltCopy ? {
|
|
1132
1132
|
name: "optionAltCopy",
|
|
1133
|
-
fn:
|
|
1133
|
+
fn: A(({ altCopy: e }) => [D(t.$slots, "optionAltCopy", S(x({ altCopy: e })), void 0, !0)]),
|
|
1134
1134
|
key: "9"
|
|
1135
1135
|
} : void 0,
|
|
1136
1136
|
t.$slots["custom-menu-before"] ? {
|
|
1137
1137
|
name: "custom-menu-before",
|
|
1138
|
-
fn:
|
|
1138
|
+
fn: A(() => [D(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1139
1139
|
key: "10"
|
|
1140
1140
|
} : void 0,
|
|
1141
1141
|
t.$slots["custom-menu-after"] ? {
|
|
1142
1142
|
name: "custom-menu-after",
|
|
1143
|
-
fn:
|
|
1143
|
+
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1144
1144
|
key: "11"
|
|
1145
1145
|
} : void 0
|
|
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("."))) :
|
|
1147
|
-
|
|
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("."))) : v("", !0),
|
|
1147
|
+
b("div", { class: Ae({
|
|
1148
1148
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1149
1149
|
"vue-ui-heatmap-chart-wrapper-legend-right": L.value.style.legend.show
|
|
1150
1150
|
}) }, [
|
|
1151
|
-
(
|
|
1151
|
+
(w(), y("svg", {
|
|
1152
1152
|
ref_key: "svgRef",
|
|
1153
1153
|
ref: z,
|
|
1154
|
-
xmlns:
|
|
1155
|
-
"aria-describedby": `chart-instructions-${
|
|
1156
|
-
class:
|
|
1154
|
+
xmlns: k(p),
|
|
1155
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1156
|
+
class: Ae({
|
|
1157
1157
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1158
1158
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1159
1159
|
}),
|
|
1160
1160
|
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
1161
1161
|
width: "100%",
|
|
1162
|
-
style:
|
|
1162
|
+
style: C(`overflow: visible; background:transparent;color:${L.value.style.color}`),
|
|
1163
1163
|
"aria-live": "polite",
|
|
1164
1164
|
role: "img",
|
|
1165
1165
|
preserveAspectRatio: "xMidYMid",
|
|
1166
1166
|
tabindex: "0",
|
|
1167
|
-
onFocus:
|
|
1168
|
-
onBlur:
|
|
1169
|
-
onKeydown:
|
|
1167
|
+
onFocus: hr,
|
|
1168
|
+
onBlur: gr,
|
|
1169
|
+
onKeydown: _r
|
|
1170
1170
|
}, [
|
|
1171
|
-
|
|
1172
|
-
t.$slots["chart-background"] ? (
|
|
1171
|
+
Ee(k(Dt)),
|
|
1172
|
+
t.$slots["chart-background"] ? (w(), y("foreignObject", {
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
x: K.value.left,
|
|
1175
1175
|
y: K.value.top,
|
|
1176
1176
|
width: K.value.width,
|
|
1177
1177
|
height: K.value.height,
|
|
1178
1178
|
style: { pointerEvents: "none" }
|
|
1179
|
-
}, [
|
|
1180
|
-
L.value.style.layout.cells.columnTotal.color.show ? (
|
|
1179
|
+
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : v("", !0),
|
|
1180
|
+
L.value.style.layout.cells.columnTotal.color.show ? (w(), y("g", {
|
|
1181
1181
|
key: 1,
|
|
1182
1182
|
ref_key: "xAxisSumRects",
|
|
1183
|
-
ref:
|
|
1184
|
-
}, [(
|
|
1183
|
+
ref: Qt
|
|
1184
|
+
}, [(w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1185
1185
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1186
1186
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1187
1187
|
height: K.value.sumCellXHeight,
|
|
@@ -1189,7 +1189,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1189
1189
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1190
1190
|
stroke: L.value.style.backgroundColor,
|
|
1191
1191
|
"stroke-width": G.value
|
|
1192
|
-
}, null, 8,
|
|
1192
|
+
}, null, 8, Ze))), 256)), (w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1193
1193
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1194
1194
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1195
1195
|
height: K.value.sumCellXHeight,
|
|
@@ -1197,12 +1197,12 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1197
1197
|
fill: e.color,
|
|
1198
1198
|
stroke: L.value.style.backgroundColor,
|
|
1199
1199
|
"stroke-width": G.value
|
|
1200
|
-
}, null, 8,
|
|
1201
|
-
|
|
1200
|
+
}, null, 8, Qe))), 256))], 512)) : v("", !0),
|
|
1201
|
+
b("g", {
|
|
1202
1202
|
ref_key: "datapoints",
|
|
1203
|
-
ref:
|
|
1204
|
-
}, [(
|
|
1205
|
-
|
|
1203
|
+
ref: Bt
|
|
1204
|
+
}, [(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, [
|
|
1205
|
+
b("rect", {
|
|
1206
1206
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1207
1207
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1208
1208
|
width: K.value.cellSize.width - G.value,
|
|
@@ -1210,8 +1210,8 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1210
1210
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1211
1211
|
stroke: L.value.style.backgroundColor,
|
|
1212
1212
|
"stroke-width": G.value
|
|
1213
|
-
}, null, 8,
|
|
1214
|
-
|
|
1213
|
+
}, null, 8, $e),
|
|
1214
|
+
b("rect", {
|
|
1215
1215
|
"data-a11y-cell-id": e.id,
|
|
1216
1216
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1217
1217
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
@@ -1221,31 +1221,31 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1221
1221
|
stroke: L.value.style.backgroundColor,
|
|
1222
1222
|
"stroke-width": G.value,
|
|
1223
1223
|
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1224
|
-
onMouseover: (r) => Hn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer",
|
|
1224
|
+
onMouseover: (r) => Hn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", mr(t, n)),
|
|
1225
1225
|
onMouseout: () => Un({
|
|
1226
1226
|
datapoint: e,
|
|
1227
1227
|
seriesIndex: t
|
|
1228
1228
|
}),
|
|
1229
1229
|
onClick: () => Qn(e, t)
|
|
1230
|
-
}, null, 40,
|
|
1231
|
-
L.value.style.layout.cells.value.show ?
|
|
1230
|
+
}, null, 40, et),
|
|
1231
|
+
L.value.style.layout.cells.value.show ? Ve((w(), y("text", {
|
|
1232
1232
|
key: 0,
|
|
1233
1233
|
"text-anchor": "middle",
|
|
1234
1234
|
"font-size": L.value.style.layout.cells.value.fontSize,
|
|
1235
1235
|
"font-weight": L.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1236
|
-
fill:
|
|
1236
|
+
fill: k(f)(e.color),
|
|
1237
1237
|
x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1238
1238
|
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.cells.value.fontSize / 3,
|
|
1239
1239
|
style: {
|
|
1240
1240
|
pointerEvents: "none",
|
|
1241
1241
|
userSelect: "none"
|
|
1242
1242
|
}
|
|
1243
|
-
}, [
|
|
1243
|
+
}, [Te(O(k(c)(L.value.style.layout.cells.value.formatter, e.value, k(i)({
|
|
1244
1244
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1245
1245
|
v: e.value,
|
|
1246
1246
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1247
1247
|
r: L.value.style.layout.cells.value.roundingValue
|
|
1248
|
-
}), { datapoint: e })), 1)], 8,
|
|
1248
|
+
}), { datapoint: e })), 1)], 8, tt)), [[k(We), {
|
|
1249
1249
|
cellWidth: K.value.cellSize.width - G.value,
|
|
1250
1250
|
cellHeight: K.value.cellSize.height - G.value,
|
|
1251
1251
|
maxFontSize: L.value.style.layout.cells.value.fontSize,
|
|
@@ -1255,13 +1255,13 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1255
1255
|
reportRotation: Fn,
|
|
1256
1256
|
hideAll: Ln.value,
|
|
1257
1257
|
rotateAll: Pn.value
|
|
1258
|
-
}]]) :
|
|
1258
|
+
}]]) : v("", !0)
|
|
1259
1259
|
]))), 256))], 64))), 256))], 512),
|
|
1260
|
-
L.value.style.layout.cells.rowTotal.color.show ? (
|
|
1260
|
+
L.value.style.layout.cells.rowTotal.color.show ? (w(), y("g", {
|
|
1261
1261
|
key: 2,
|
|
1262
1262
|
ref_key: "yAxisSumRects",
|
|
1263
|
-
ref:
|
|
1264
|
-
}, [(
|
|
1263
|
+
ref: Yt
|
|
1264
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("rect", {
|
|
1265
1265
|
x: K.value.left,
|
|
1266
1266
|
y: K.value.top + K.value.cellSize.height * t,
|
|
1267
1267
|
width: K.value.sumCellXHeight,
|
|
@@ -1269,7 +1269,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1269
1269
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1270
1270
|
stroke: L.value.style.backgroundColor,
|
|
1271
1271
|
"stroke-width": G.value
|
|
1272
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, nt), b("rect", {
|
|
1273
1273
|
x: K.value.left,
|
|
1274
1274
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1275
1275
|
width: K.value.sumCellXHeight,
|
|
@@ -1277,12 +1277,12 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1277
1277
|
fill: Y.value.yTotals[t].color,
|
|
1278
1278
|
stroke: L.value.style.backgroundColor,
|
|
1279
1279
|
"stroke-width": G.value
|
|
1280
|
-
}, null, 8,
|
|
1281
|
-
L.value.style.layout.dataLabels.yAxis.show ? (
|
|
1280
|
+
}, null, 8, rt)], 64))), 256))], 512)) : v("", !0),
|
|
1281
|
+
L.value.style.layout.dataLabels.yAxis.show ? (w(), y("g", {
|
|
1282
1282
|
key: 3,
|
|
1283
1283
|
ref_key: "yAxisLabels",
|
|
1284
|
-
ref:
|
|
1285
|
-
}, [(
|
|
1284
|
+
ref: Jt
|
|
1285
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("text", {
|
|
1286
1286
|
class: "vue-ui-heatmap-row-name",
|
|
1287
1287
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1288
1288
|
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -1290,7 +1290,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1290
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),
|
|
1291
1291
|
"text-anchor": "end",
|
|
1292
1292
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1293
|
-
},
|
|
1293
|
+
}, O(Y.value.yLabels[t]), 9, it), L.value.style.layout.cells.rowTotal.value.show ? (w(), y("text", {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
class: "vue-ui-heatmap-row-total",
|
|
1296
1296
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1299,12 +1299,12 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1299
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,
|
|
1300
1300
|
"text-anchor": "end",
|
|
1301
1301
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1302
|
-
},
|
|
1303
|
-
L.value.style.layout.dataLabels.xAxis.show ? (
|
|
1302
|
+
}, O(Wn(t)), 9, at)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1303
|
+
L.value.style.layout.dataLabels.xAxis.show ? (w(), y("g", {
|
|
1304
1304
|
key: 4,
|
|
1305
1305
|
ref_key: "xAxisLabels",
|
|
1306
|
-
ref:
|
|
1307
|
-
}, [(
|
|
1306
|
+
ref: Xt
|
|
1307
|
+
}, [(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", {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "vue-ui-heatmap-col-name",
|
|
1310
1310
|
"text-anchor": L.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : L.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
@@ -1312,135 +1312,135 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1312
1312
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1313
1313
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1314
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})`
|
|
1315
|
-
},
|
|
1316
|
-
L.value.style.layout.cells.columnTotal.value.show ? (
|
|
1315
|
+
}, O(e), 9, ot)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1316
|
+
L.value.style.layout.cells.columnTotal.value.show ? (w(), y("g", {
|
|
1317
1317
|
key: 5,
|
|
1318
1318
|
ref_key: "xAxisSums",
|
|
1319
|
-
ref:
|
|
1320
|
-
}, [(
|
|
1319
|
+
ref: Zt
|
|
1320
|
+
}, [(w(!0), y(h, null, E(Y.value.xLabels, (e, t) => (w(), y("text", {
|
|
1321
1321
|
class: "vue-ui-heatmap-col-total",
|
|
1322
1322
|
"text-anchor": L.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : L.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1323
1323
|
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1324
1324
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1325
1325
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1326
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})`
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1327
|
+
}, O(Gn(t)), 9, st))), 256))], 512)) : v("", !0),
|
|
1328
|
+
P.value ? (w(), y("g", ct, [b("rect", {
|
|
1329
1329
|
style: { "pointer-events": "none" },
|
|
1330
|
-
x:
|
|
1331
|
-
y:
|
|
1330
|
+
x: P.value.x - L.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1331
|
+
y: P.value.y - L.value.style.layout.cells.selected.border / 2 + G.value,
|
|
1332
1332
|
width: K.value.cellSize.width - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1333
1333
|
height: K.value.cellSize.height - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1334
1334
|
fill: "transparent",
|
|
1335
1335
|
stroke: L.value.style.layout.cells.selected.color,
|
|
1336
1336
|
"stroke-width": L.value.style.layout.cells.selected.border,
|
|
1337
1337
|
rx: 1
|
|
1338
|
-
}, null, 8,
|
|
1339
|
-
L.value.style.layout.crosshairs.show &&
|
|
1338
|
+
}, null, 8, lt)])) : v("", !0),
|
|
1339
|
+
L.value.style.layout.crosshairs.show && P.value ? (w(), y("g", ut, [b("line", {
|
|
1340
1340
|
x1: K.value.left + K.value.sumCellXHeight,
|
|
1341
|
-
x2:
|
|
1342
|
-
y1:
|
|
1343
|
-
y2:
|
|
1341
|
+
x2: P.value.x + K.value.sumCellXHeight,
|
|
1342
|
+
y1: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1343
|
+
y2: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1344
1344
|
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1345
1345
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1346
1346
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1347
1347
|
"stroke-linecap": "round"
|
|
1348
|
-
}, null, 8,
|
|
1349
|
-
x1:
|
|
1350
|
-
x2:
|
|
1351
|
-
y1:
|
|
1348
|
+
}, null, 8, dt), b("line", {
|
|
1349
|
+
x1: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1350
|
+
x2: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1351
|
+
y1: P.value.y,
|
|
1352
1352
|
y2: K.value.top,
|
|
1353
1353
|
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1354
1354
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1355
1355
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1356
1356
|
"stroke-linecap": "round"
|
|
1357
|
-
}, null, 8,
|
|
1358
|
-
|
|
1357
|
+
}, null, 8, ft)])) : v("", !0),
|
|
1358
|
+
D(t.$slots, "svg", { svg: {
|
|
1359
1359
|
...U.value,
|
|
1360
1360
|
drawingArea: K.value,
|
|
1361
|
-
isPrintingImg:
|
|
1362
|
-
isPrintingSvg:
|
|
1361
|
+
isPrintingImg: k(hn) || k(gn) || Ut.value,
|
|
1362
|
+
isPrintingSvg: Wt.value
|
|
1363
1363
|
} }, void 0, !0)
|
|
1364
|
-
], 46,
|
|
1365
|
-
L.value.style.legend.show ? (
|
|
1364
|
+
], 46, Ye)),
|
|
1365
|
+
L.value.style.legend.show ? (w(), y("div", {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
ref_key: "legendRight",
|
|
1368
|
-
ref:
|
|
1368
|
+
ref: qt,
|
|
1369
1369
|
class: "vue-ui-heatmap-legend-right",
|
|
1370
|
-
style:
|
|
1370
|
+
style: C({ "--legend-width": L.value.style.legend.width + "px" })
|
|
1371
1371
|
}, [
|
|
1372
|
-
|
|
1372
|
+
k(cn) ? v("", !0) : (w(), y("div", {
|
|
1373
1373
|
key: 0,
|
|
1374
1374
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1375
|
-
style:
|
|
1375
|
+
style: C({
|
|
1376
1376
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1377
1377
|
color: L.value.style.legend.color
|
|
1378
1378
|
})
|
|
1379
|
-
},
|
|
1379
|
+
}, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(q.value), k(i)({
|
|
1380
1380
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1381
|
-
v:
|
|
1381
|
+
v: k(o)(q.value),
|
|
1382
1382
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1383
1383
|
r: L.value.style.legend.roundingValue
|
|
1384
1384
|
}))), 5)),
|
|
1385
|
-
|
|
1385
|
+
b("div", pt, [b("div", {
|
|
1386
1386
|
class: "vue-ui-heatmap-gauge",
|
|
1387
|
-
style:
|
|
1388
|
-
}, [
|
|
1387
|
+
style: C({ background: `linear-gradient(to bottom, ${L.value.style.layout.cells.colors.hot}, ${L.value.style.layout.cells.colors.cold})` })
|
|
1388
|
+
}, [Ve(b("div", {
|
|
1389
1389
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1390
|
-
"data-value":
|
|
1390
|
+
"data-value": k(c)(L.value.style.layout.cells.value.formatter, k(o)(Z.value), k(i)({
|
|
1391
1391
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1392
|
-
v:
|
|
1392
|
+
v: k(o)(Z.value),
|
|
1393
1393
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1394
1394
|
r: L.value.style.legend.roundingValue
|
|
1395
1395
|
})),
|
|
1396
|
-
style:
|
|
1396
|
+
style: C({
|
|
1397
1397
|
position: "absolute",
|
|
1398
1398
|
width: "100%",
|
|
1399
1399
|
height: "2px",
|
|
1400
|
-
background: [void 0, null].includes(Z.value) ? "transparent" :
|
|
1400
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : k(f)(zn.value.datapoint.color),
|
|
1401
1401
|
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1402
1402
|
transition: "all 0.2s ease-in-out",
|
|
1403
1403
|
"--background-color": L.value.style.backgroundColor,
|
|
1404
|
-
"--gauge-arrow-color":
|
|
1405
|
-
"--gauge-arrow-text-color":
|
|
1404
|
+
"--gauge-arrow-color": k(f)(L.value.style.backgroundColor),
|
|
1405
|
+
"--gauge-arrow-text-color": k(f)(L.value.style.backgroundColor),
|
|
1406
1406
|
"--gauge-arrow-value": Z.value,
|
|
1407
1407
|
"--gauge-arrow-font-size": L.value.style.legend.fontSize + "px"
|
|
1408
1408
|
})
|
|
1409
|
-
}, [
|
|
1409
|
+
}, [b("div", ht, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(Z.value), k(i)({
|
|
1410
1410
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1411
|
-
v:
|
|
1411
|
+
v: k(o)(Z.value),
|
|
1412
1412
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1413
1413
|
r: L.value.style.legend.roundingValue
|
|
1414
|
-
}))), 1)], 12,
|
|
1415
|
-
|
|
1414
|
+
}))), 1)], 12, mt), [[Re, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1415
|
+
k(cn) ? v("", !0) : (w(), y("div", {
|
|
1416
1416
|
key: 1,
|
|
1417
1417
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1418
|
-
style:
|
|
1418
|
+
style: C({
|
|
1419
1419
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1420
1420
|
color: L.value.style.legend.color
|
|
1421
1421
|
})
|
|
1422
|
-
},
|
|
1422
|
+
}, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(Dn.value), k(i)({
|
|
1423
1423
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1424
|
-
v:
|
|
1424
|
+
v: k(o)(Dn.value),
|
|
1425
1425
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1426
1426
|
r: L.value.style.legend.roundingValue
|
|
1427
1427
|
}))), 5))
|
|
1428
|
-
], 4)) :
|
|
1429
|
-
t.$slots.hint ? (
|
|
1428
|
+
], 4)) : v("", !0),
|
|
1429
|
+
t.$slots.hint ? (w(), y("div", gt, [D(t.$slots, "hint", S(x({
|
|
1430
1430
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1431
1431
|
isVisible: rn.value
|
|
1432
|
-
})), void 0, !0)])) :
|
|
1432
|
+
})), void 0, !0)])) : v("", !0)
|
|
1433
1433
|
], 2),
|
|
1434
|
-
t.$slots.watermark ? (
|
|
1435
|
-
t.$slots.source ? (
|
|
1434
|
+
t.$slots.watermark ? (w(), y("div", _t, [D(t.$slots, "watermark", S(x({ isPrinting: k(hn) || k(gn) || Ut.value || Wt.value })), void 0, !0)])) : v("", !0),
|
|
1435
|
+
t.$slots.source ? (w(), y("div", {
|
|
1436
1436
|
key: 6,
|
|
1437
1437
|
ref_key: "source",
|
|
1438
|
-
ref:
|
|
1438
|
+
ref: $t,
|
|
1439
1439
|
dir: "auto"
|
|
1440
|
-
}, [
|
|
1441
|
-
|
|
1440
|
+
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1441
|
+
Ee(k(Ke), {
|
|
1442
1442
|
teleportTo: L.value.style.tooltip.teleportTo,
|
|
1443
|
-
show: B.value.showTooltip &&
|
|
1443
|
+
show: B.value.showTooltip && Pt.value,
|
|
1444
1444
|
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
1445
1445
|
color: L.value.style.tooltip.color,
|
|
1446
1446
|
borderRadius: L.value.style.tooltip.borderRadius,
|
|
@@ -1451,8 +1451,8 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1451
1451
|
position: L.value.style.tooltip.position,
|
|
1452
1452
|
offsetX: L.value.style.tooltip.offsetX,
|
|
1453
1453
|
offsetY: L.value.style.tooltip.offsetY,
|
|
1454
|
-
parent:
|
|
1455
|
-
content:
|
|
1454
|
+
parent: N.value,
|
|
1455
|
+
content: Ft.value,
|
|
1456
1456
|
isFullscreen: Q.value,
|
|
1457
1457
|
isCustom: L.value.style.tooltip.customFormat && typeof L.value.style.tooltip.customFormat == "function",
|
|
1458
1458
|
smooth: L.value.style.tooltip.smooth,
|
|
@@ -1462,9 +1462,9 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1462
1462
|
isA11yMode: nn.value === "keyboard",
|
|
1463
1463
|
a11yPosition: tn.value
|
|
1464
1464
|
}, {
|
|
1465
|
-
"tooltip-before":
|
|
1466
|
-
tooltip:
|
|
1467
|
-
"tooltip-after":
|
|
1465
|
+
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...zn.value })), void 0, !0)]),
|
|
1466
|
+
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...zn.value })), void 0, !0)]),
|
|
1467
|
+
"tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...zn.value })), void 0, !0)]),
|
|
1468
1468
|
_: 3
|
|
1469
1469
|
}, 8, [
|
|
1470
1470
|
"teleportTo",
|
|
@@ -1490,86 +1490,86 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1490
1490
|
"isA11yMode",
|
|
1491
1491
|
"a11yPosition"
|
|
1492
1492
|
]),
|
|
1493
|
-
|
|
1493
|
+
Nt.value && L.value.userOptions.buttons.table ? (w(), _(Pe(rr.value.component), Oe({ key: 7 }, rr.value.props, {
|
|
1494
1494
|
ref_key: "tableUnit",
|
|
1495
|
-
ref:
|
|
1495
|
+
ref: Vt,
|
|
1496
1496
|
onClose: ar
|
|
1497
|
-
}),
|
|
1498
|
-
content:
|
|
1497
|
+
}), we({
|
|
1498
|
+
content: A(() => [b("div", {
|
|
1499
1499
|
ref_key: "tableContainer",
|
|
1500
|
-
ref:
|
|
1500
|
+
ref: Rt,
|
|
1501
1501
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1502
|
-
style:
|
|
1503
|
-
}, [
|
|
1504
|
-
style:
|
|
1505
|
-
class:
|
|
1506
|
-
}, [L.value.table.useDialog ?
|
|
1502
|
+
style: C(`${L.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1503
|
+
}, [b("div", {
|
|
1504
|
+
style: C(`width:100%;overflow-x:auto;position:relative;${L.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1505
|
+
class: Ae({ "vue-ui-responsive": k(ir) })
|
|
1506
|
+
}, [L.value.table.useDialog ? v("", !0) : (w(), y("div", {
|
|
1507
1507
|
key: 0,
|
|
1508
1508
|
role: "button",
|
|
1509
1509
|
tabindex: "0",
|
|
1510
|
-
style:
|
|
1510
|
+
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};`),
|
|
1511
1511
|
onClick: ar,
|
|
1512
|
-
onKeypress:
|
|
1513
|
-
}, [
|
|
1512
|
+
onKeypress: He(ar, ["enter"])
|
|
1513
|
+
}, [Ee(k(wt), {
|
|
1514
1514
|
name: "close",
|
|
1515
1515
|
stroke: L.value.table.th.color,
|
|
1516
1516
|
"stroke-width": 2
|
|
1517
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1518
|
-
L.value.table.useDialog ?
|
|
1517
|
+
}, null, 8, ["stroke"])], 36)), b("table", vt, [
|
|
1518
|
+
L.value.table.useDialog ? v("", !0) : (w(), y("caption", {
|
|
1519
1519
|
key: 0,
|
|
1520
|
-
style:
|
|
1521
|
-
}, [
|
|
1522
|
-
|
|
1520
|
+
style: C(`backgroundColor:${L.value.table.th.backgroundColor};color:${L.value.table.th.color};outline:${L.value.table.th.outline}`)
|
|
1521
|
+
}, [Te(O(L.value.style.title.text) + " ", 1), L.value.style.title.subtitle.text ? (w(), y("span", yt, O(L.value.style.title.subtitle.text), 1)) : v("", !0)], 4)),
|
|
1522
|
+
b("thead", null, [b("tr", {
|
|
1523
1523
|
role: "row",
|
|
1524
|
-
style:
|
|
1525
|
-
}, [
|
|
1524
|
+
style: C(`background:${L.value.table.th.backgroundColor};color:${L.value.table.th.color}`)
|
|
1525
|
+
}, [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", {
|
|
1526
1526
|
align: "right",
|
|
1527
|
-
style:
|
|
1528
|
-
},
|
|
1529
|
-
|
|
1527
|
+
style: C(`outline:${L.value.table.th.outline};padding-right:6px`)
|
|
1528
|
+
}, O(e.name), 5))), 256))], 4)]),
|
|
1529
|
+
b("tbody", null, [(w(!0), y(h, null, E(Y.value.xLabels, (t, n) => (w(), y("tr", {
|
|
1530
1530
|
role: "row",
|
|
1531
|
-
class:
|
|
1531
|
+
class: Ae({
|
|
1532
1532
|
"vue-ui-data-table__tbody__row": !0,
|
|
1533
1533
|
"vue-ui-data-table__tbody__row-even": n % 2 == 0,
|
|
1534
1534
|
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1535
1535
|
}),
|
|
1536
|
-
style:
|
|
1537
|
-
}, [
|
|
1536
|
+
style: C(`background:${L.value.table.td.backgroundColor};color:${L.value.table.td.color}`)
|
|
1537
|
+
}, [b("td", {
|
|
1538
1538
|
"data-cell": L.value.table.colNames.xAxis,
|
|
1539
1539
|
class: "vue-ui-data-table__tbody__td",
|
|
1540
|
-
style:
|
|
1541
|
-
}, [
|
|
1540
|
+
style: C(`outline:${L.value.table.td.outline}`)
|
|
1541
|
+
}, [b("div", xt, O(t), 1)], 12, bt), (w(!0), y(h, null, E(e.dataset, (t, r) => (w(), y("td", {
|
|
1542
1542
|
class: "vue-ui-data-table__tbody__td",
|
|
1543
1543
|
"data-cell": e.dataset[r].name,
|
|
1544
|
-
style:
|
|
1545
|
-
}, [
|
|
1544
|
+
style: C(`outline:${L.value.table.td.outline}`)
|
|
1545
|
+
}, [b("div", Ct, O(isNaN(t.values[n]) ? "-" : k(i)({
|
|
1546
1546
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1547
1547
|
v: t.values[n],
|
|
1548
1548
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1549
1549
|
r: L.value.table.td.roundingValue
|
|
1550
|
-
})), 1)], 12,
|
|
1550
|
+
})), 1)], 12, St))), 256))], 6))), 256))])
|
|
1551
1551
|
])], 6)], 4)]),
|
|
1552
1552
|
_: 2
|
|
1553
1553
|
}, [L.value.table.useDialog ? {
|
|
1554
1554
|
name: "title",
|
|
1555
|
-
fn:
|
|
1555
|
+
fn: A(() => [Te(O(rr.value.title), 1)]),
|
|
1556
1556
|
key: "0"
|
|
1557
1557
|
} : void 0, L.value.table.useDialog ? {
|
|
1558
1558
|
name: "actions",
|
|
1559
|
-
fn:
|
|
1559
|
+
fn: A(() => [b("button", {
|
|
1560
1560
|
tabindex: "0",
|
|
1561
1561
|
class: "vue-ui-user-options-button",
|
|
1562
1562
|
onClick: n[0] ||= (e) => Kn(L.value.userOptions.callbacks.csv),
|
|
1563
|
-
style:
|
|
1564
|
-
}, [
|
|
1563
|
+
style: C({ cursor: an.value ? "pointer" : "default" })
|
|
1564
|
+
}, [Ee(k(wt), {
|
|
1565
1565
|
name: "fileCsv",
|
|
1566
1566
|
stroke: rr.value.props.color
|
|
1567
1567
|
}, null, 8, ["stroke"])], 4)]),
|
|
1568
1568
|
key: "1"
|
|
1569
|
-
} : void 0]), 1040)) :
|
|
1570
|
-
|
|
1571
|
-
], 46,
|
|
1569
|
+
} : void 0]), 1040)) : v("", !0),
|
|
1570
|
+
D(t.$slots, "skeleton", {}, () => [k(cn) ? (w(), _(ce, { key: 0 })) : v("", !0)], !0)
|
|
1571
|
+
], 46, qe));
|
|
1572
1572
|
}
|
|
1573
1573
|
}, [["__scopeId", "data-v-2a26877c"]]);
|
|
1574
1574
|
//#endregion
|
|
1575
|
-
export {
|
|
1575
|
+
export { Ke as n, wt as t };
|