vue-data-ui 3.23.1 → 3.23.2
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/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -2,24 +2,24 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
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
3
|
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ie } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as ae } from "./useConfig-
|
|
5
|
+
import { t as ae } from "./useConfig-DlNpz6P8.js";
|
|
6
6
|
import { t as oe } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as le } from "./
|
|
9
|
-
import { t as ue } from "./
|
|
10
|
-
import { t as de } from "./
|
|
8
|
+
import { t as le } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as de } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
12
|
import { t as pe } from "./img-Bnokohej.js";
|
|
13
13
|
import { n as me } from "./Title-BE3qg9xl.js";
|
|
14
14
|
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
-
import { t as ve } from "./vue-ui-accordion-
|
|
16
|
+
import { t as ve } from "./vue-ui-accordion-DegI2lzR.js";
|
|
17
17
|
import { t as ye } from "./A11yDataTable-DdRsVULz.js";
|
|
18
18
|
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
20
|
import { t as Se } from "./useTableResponsive-BAqJPR68.js";
|
|
21
21
|
import { t as Ce } 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 we, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as b, guardReactiveProps as x, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as je, onMounted as Me, openBlock as w, reactive as Ne, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as O, toRefs as Ie, unref as k, useCssVars as Le, vShow as Re, watch as ze, watchEffect as Be, withCtx as A, withDirectives as Ve, withKeys as He } from "vue";
|
|
23
23
|
//#region src/useLabelObserverEfffect.js
|
|
24
24
|
function Ue({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
25
25
|
if (r) return;
|
|
@@ -282,26 +282,26 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
282
282
|
},
|
|
283
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
284
284
|
setup(e, { expose: he, emit: Ge }) {
|
|
285
|
-
Le((e) => ({
|
|
286
|
-
let Ke =
|
|
285
|
+
Le((e) => ({ v3fc9460c: e.tdo }));
|
|
286
|
+
let Ke = b(() => import("./Tooltip-DhjyfHwz.js")), wt = b(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Tt = b(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Et = b(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Dt = b(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Ot = b(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_heatmap: kt } = ae(), { isThemeValid: At, warnInvalidTheme: jt } = ue(), j = e, Mt = Ge, Nt = g({
|
|
287
287
|
get() {
|
|
288
288
|
return !!j.dataset && j.dataset.length;
|
|
289
289
|
},
|
|
290
290
|
set(e) {
|
|
291
291
|
return e;
|
|
292
292
|
}
|
|
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(
|
|
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(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 = Fe(null), I = T(null), Qt = T(null), $t = T({
|
|
294
294
|
x: 0,
|
|
295
295
|
y: 0
|
|
296
|
-
}),
|
|
296
|
+
}), en = T("pointer"), tn = T(!1), L = T(fn());
|
|
297
297
|
ne({
|
|
298
298
|
config: () => L.value,
|
|
299
299
|
dataset: () => j.dataset,
|
|
300
300
|
component: "VueUiHeatmap",
|
|
301
301
|
rules: [re.emptyArray, re.noHint]
|
|
302
302
|
});
|
|
303
|
-
let
|
|
304
|
-
function
|
|
303
|
+
let nn = g(() => L.value.userOptions.useCursorPointer);
|
|
304
|
+
function rn() {
|
|
305
305
|
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
306
306
|
for (let r = 0; r < n; r += 1) {
|
|
307
307
|
let n = [];
|
|
@@ -313,7 +313,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
313
313
|
}
|
|
314
314
|
return t;
|
|
315
315
|
}
|
|
316
|
-
let
|
|
316
|
+
let an = g(() => r({
|
|
317
317
|
defaultConfig: {
|
|
318
318
|
table: { show: !1 },
|
|
319
319
|
userOptions: { show: !1 },
|
|
@@ -337,10 +337,10 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
userConfig: L.value.skeletonConfig ?? {}
|
|
340
|
-
})), { loading:
|
|
340
|
+
})), { loading: on, FINAL_DATASET: R, manualLoading: sn } = se({
|
|
341
341
|
...Ie(j),
|
|
342
342
|
FINAL_CONFIG: L,
|
|
343
|
-
prepareConfig:
|
|
343
|
+
prepareConfig: fn,
|
|
344
344
|
callback: () => {
|
|
345
345
|
Promise.resolve().then(async () => {
|
|
346
346
|
await ke(), N.value && a(N.value, {
|
|
@@ -349,27 +349,27 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
349
349
|
});
|
|
350
350
|
});
|
|
351
351
|
},
|
|
352
|
-
skeletonDataset: j.config?.skeletonDataset ??
|
|
352
|
+
skeletonDataset: j.config?.skeletonDataset ?? rn(),
|
|
353
353
|
skeletonConfig: r({
|
|
354
354
|
defaultConfig: L.value,
|
|
355
|
-
userConfig:
|
|
355
|
+
userConfig: an.value
|
|
356
356
|
})
|
|
357
|
-
}), { userOptionsVisible:
|
|
358
|
-
function
|
|
359
|
-
|
|
357
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = be({ config: L.value }), { svgRef: z } = xe({ config: L.value.style.title });
|
|
358
|
+
function dn(e) {
|
|
359
|
+
ln(e);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let e =
|
|
361
|
+
function fn() {
|
|
362
|
+
let e = le({
|
|
363
363
|
userConfig: j.config,
|
|
364
364
|
defaultConfig: kt
|
|
365
365
|
}), t = {}, n = e.theme;
|
|
366
366
|
if (n) if (!At.value(e)) jt(e), t = e;
|
|
367
367
|
else {
|
|
368
|
-
let r =
|
|
368
|
+
let r = le({
|
|
369
369
|
userConfig: Ce[n] || j.config,
|
|
370
370
|
defaultConfig: e
|
|
371
371
|
});
|
|
372
|
-
t = { ...
|
|
372
|
+
t = { ...le({
|
|
373
373
|
userConfig: j.config,
|
|
374
374
|
defaultConfig: r
|
|
375
375
|
}) };
|
|
@@ -378,15 +378,15 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
378
378
|
return t;
|
|
379
379
|
}
|
|
380
380
|
ze(() => j.config, (e) => {
|
|
381
|
-
|
|
381
|
+
on.value || (L.value = fn()), cn.value = !L.value.userOptions.showOnChartHover, bn(), zt.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;
|
|
382
382
|
}, { deep: !0 }), ze(() => j.dataset, (e) => {
|
|
383
|
-
Array.isArray(e) && e.length > 0 && (
|
|
383
|
+
Array.isArray(e) && e.length > 0 && (sn.value = !1), bn();
|
|
384
384
|
}, { deep: !0 });
|
|
385
|
-
let { isPrinting:
|
|
385
|
+
let { isPrinting: pn, isImaging: mn, generatePdf: hn, generateImage: gn } = oe({
|
|
386
386
|
elementId: `heatmap__${M.value}`,
|
|
387
387
|
fileName: L.value.style.title.text || "vue-ui-heatmap",
|
|
388
388
|
options: L.value.userOptions.print
|
|
389
|
-
}),
|
|
389
|
+
}), _n = 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
|
});
|
|
@@ -396,22 +396,22 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
396
396
|
showTooltip: L.value.style.tooltip.show
|
|
397
397
|
};
|
|
398
398
|
}, { immediate: !0 });
|
|
399
|
-
let
|
|
400
|
-
function
|
|
399
|
+
let vn = g(() => L.value.table.responsiveBreakpoint), V = T(null), yn = g(() => L.value.debug);
|
|
400
|
+
function bn() {
|
|
401
401
|
if (l(j.dataset) && (m({
|
|
402
402
|
componentName: "VueUiHeatmap",
|
|
403
403
|
type: "dataset",
|
|
404
|
-
debug:
|
|
405
|
-
}), Nt.value = !1,
|
|
404
|
+
debug: yn.value
|
|
405
|
+
}), Nt.value = !1, sn.value = !0), l(j.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
406
406
|
let e = ge(() => {
|
|
407
407
|
let { width: e, height: t } = _e({
|
|
408
408
|
chart: N.value,
|
|
409
|
-
title: L.value.style.title.text ?
|
|
410
|
-
source:
|
|
411
|
-
noTitle:
|
|
409
|
+
title: L.value.style.title.text ? Ut.value : null,
|
|
410
|
+
source: Zt.value,
|
|
411
|
+
noTitle: Wt.value
|
|
412
412
|
});
|
|
413
413
|
requestAnimationFrame(() => {
|
|
414
|
-
|
|
414
|
+
xn.value = e, Sn.value = t;
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
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);
|
|
@@ -420,64 +420,64 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
420
420
|
je(() => {
|
|
421
421
|
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect());
|
|
422
422
|
}), Me(() => {
|
|
423
|
-
|
|
423
|
+
bn();
|
|
424
424
|
});
|
|
425
|
-
let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))),
|
|
426
|
-
width: Math.max(10,
|
|
427
|
-
height: Math.max(10,
|
|
428
|
-
})),
|
|
425
|
+
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(() => ({
|
|
426
|
+
width: Math.max(10, xn.value),
|
|
427
|
+
height: Math.max(10, Sn.value)
|
|
428
|
+
})), Cn = T(0);
|
|
429
429
|
Ue({
|
|
430
|
-
elementRef:
|
|
430
|
+
elementRef: Jt,
|
|
431
431
|
callback: ge((e) => {
|
|
432
|
-
e !==
|
|
432
|
+
e !== Cn.value && (Cn.value = e);
|
|
433
433
|
}, 100),
|
|
434
434
|
attr: "height"
|
|
435
435
|
});
|
|
436
436
|
let W = T(0);
|
|
437
437
|
Ue({
|
|
438
|
-
elementRef:
|
|
438
|
+
elementRef: Kt,
|
|
439
439
|
callback: ge((e) => {
|
|
440
440
|
e !== W.value && (W.value = e);
|
|
441
441
|
}, 100),
|
|
442
442
|
attr: "width"
|
|
443
443
|
});
|
|
444
|
-
let
|
|
444
|
+
let wn = T(0);
|
|
445
445
|
Ue({
|
|
446
|
-
elementRef:
|
|
446
|
+
elementRef: Yt,
|
|
447
447
|
callback: ge((e) => {
|
|
448
|
-
e !==
|
|
448
|
+
e !== wn.value && (wn.value = e);
|
|
449
449
|
}, 100),
|
|
450
450
|
attr: "height"
|
|
451
451
|
}), je(() => {
|
|
452
|
-
|
|
452
|
+
Cn.value = 0, W.value = 0, wn.value = 0;
|
|
453
453
|
});
|
|
454
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
|
-
let t = L.value.style.layout.padding, n = L.value.style.layout.dataLabels.xAxis.fontSize / 3, r = L.value.style.layout.dataLabels.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom -
|
|
457
|
+
let t = L.value.style.layout.padding, n = L.value.style.layout.dataLabels.xAxis.fontSize / 3, r = L.value.style.layout.dataLabels.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom - Cn.value - n, a = U.value.width / 60, o = {
|
|
458
458
|
x: G.value * H.value,
|
|
459
459
|
y: G.value * ((R.value || []).length + 1)
|
|
460
|
-
}, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y -
|
|
460
|
+
}, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - wn.value - r - L.value.style.layout.cells.columnTotal.value.offsetY, l = {
|
|
461
461
|
width: Math.max(3, s / H.value),
|
|
462
462
|
height: Math.max(3, c / (R.value.length ?? 1))
|
|
463
463
|
};
|
|
464
464
|
return {
|
|
465
|
-
top: t.top +
|
|
466
|
-
topLabelsHeight:
|
|
465
|
+
top: t.top + Cn.value + a + n,
|
|
466
|
+
topLabelsHeight: Cn.value,
|
|
467
467
|
sumCellXHeight: a,
|
|
468
468
|
height: c,
|
|
469
469
|
left: t.left + W.value + a / 2,
|
|
470
470
|
right: t.right - e,
|
|
471
|
-
bottom: U.value.height - t.bottom -
|
|
471
|
+
bottom: U.value.height - t.bottom - wn.value,
|
|
472
472
|
width: s,
|
|
473
473
|
cellSize: l
|
|
474
474
|
};
|
|
475
|
-
}), q = g(() => Math.max(...R.value.flatMap((e) => e.values))),
|
|
475
|
+
}), q = g(() => Math.max(...R.value.flatMap((e) => e.values))), Tn = 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
|
-
}),
|
|
478
|
+
}), En = T([]), Dn = T([]), On = 0;
|
|
479
479
|
Be(() => {
|
|
480
|
-
let e = ++
|
|
480
|
+
let e = ++On;
|
|
481
481
|
(async () => {
|
|
482
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),
|
|
@@ -486,12 +486,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
486
486
|
start: 0,
|
|
487
487
|
end: R.value.length
|
|
488
488
|
});
|
|
489
|
-
e ===
|
|
489
|
+
e === On && (En.value = n);
|
|
490
490
|
})();
|
|
491
491
|
});
|
|
492
|
-
let
|
|
492
|
+
let kn = 0;
|
|
493
493
|
Be(() => {
|
|
494
|
-
let e = ++
|
|
494
|
+
let e = ++kn;
|
|
495
495
|
(async () => {
|
|
496
496
|
let t = L.value.style.layout.dataLabels.xAxis, n = await ie({
|
|
497
497
|
values: t.values,
|
|
@@ -500,11 +500,11 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
500
500
|
start: 0,
|
|
501
501
|
end: H.value
|
|
502
502
|
});
|
|
503
|
-
e ===
|
|
503
|
+
e === kn && (Dn.value = n);
|
|
504
504
|
})();
|
|
505
505
|
});
|
|
506
506
|
let Y = g(() => {
|
|
507
|
-
let e =
|
|
507
|
+
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 = [];
|
|
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);
|
|
510
510
|
return {
|
|
@@ -531,14 +531,14 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
531
531
|
type: "datasetSerieAttribute",
|
|
532
532
|
property: "values",
|
|
533
533
|
index: t,
|
|
534
|
-
debug:
|
|
534
|
+
debug: yn.value
|
|
535
535
|
});
|
|
536
536
|
});
|
|
537
537
|
}), R.value.map((e, t) => ({
|
|
538
538
|
...e,
|
|
539
539
|
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
540
540
|
side: "up",
|
|
541
|
-
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot,
|
|
541
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.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,45 +547,45 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
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: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot,
|
|
550
|
+
color: te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.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
|
-
})))),
|
|
557
|
-
function
|
|
558
|
-
|
|
556
|
+
})))), An = g(() => R.value.length), jn = Ne(Array(An.value * H.value || 1).fill(!1)), Mn = g(() => jn.some((e) => e));
|
|
557
|
+
function Nn(e, t) {
|
|
558
|
+
jn[e] = t;
|
|
559
559
|
}
|
|
560
|
-
let
|
|
561
|
-
function
|
|
562
|
-
|
|
560
|
+
let Pn = Ne(Array(An.value * H.value || 1).fill(!1)), Fn = g(() => Pn.some((e) => e));
|
|
561
|
+
function In(e, t) {
|
|
562
|
+
Pn[e] = t;
|
|
563
563
|
}
|
|
564
|
-
let Z = T(null),
|
|
565
|
-
function
|
|
566
|
-
Pt.value = !1, It.value = void 0, Z.value = null, P.value = null, I.value = null,
|
|
564
|
+
let Z = T(null), Ln = T(null);
|
|
565
|
+
function Rn() {
|
|
566
|
+
Pt.value = !1, It.value = void 0, Z.value = null, P.value = null, I.value = null, Qt.value = null;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function zn(e) {
|
|
569
569
|
if (!z.value || !e) return;
|
|
570
570
|
let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
571
571
|
if (!t) return;
|
|
572
572
|
let n = t.getBoundingClientRect();
|
|
573
|
-
|
|
573
|
+
$t.value = {
|
|
574
574
|
x: n.left + n.width / 2,
|
|
575
575
|
y: n.top + n.height / 2
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Bn(e, t, n, r, a = "pointer", o = null) {
|
|
579
579
|
if (L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
580
580
|
datapoint: e,
|
|
581
581
|
seriesIndex: t
|
|
582
582
|
}), !B.value.showTooltip) return;
|
|
583
|
-
|
|
583
|
+
en.value = a, I.value = o, Qt.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
|
-
It.value = f, Z.value = l,
|
|
588
|
+
It.value = f, Z.value = l, Ln.value = {
|
|
589
589
|
datapoint: e,
|
|
590
590
|
seriesIndex: t,
|
|
591
591
|
series: X.value,
|
|
@@ -602,7 +602,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
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:${te(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot,
|
|
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, Tn.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,
|
|
@@ -611,16 +611,16 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
611
611
|
datapoint: e,
|
|
612
612
|
seriesIndex: t
|
|
613
613
|
})}</span></div>`, Ft.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && ke(() => {
|
|
614
|
-
|
|
614
|
+
zn(e.id);
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
618
618
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
619
619
|
datapoint: e,
|
|
620
620
|
seriesIndex: t
|
|
621
|
-
}), (
|
|
621
|
+
}), (Qt.value !== e.id || en.value !== "keyboard") && (Pt.value = !1, It.value = void 0, Z.value = null, P.value = null);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Hn(e) {
|
|
624
624
|
return c(L.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, i({
|
|
625
625
|
p: L.value.style.layout.dataLabels.prefix,
|
|
626
626
|
v: Y.value.yTotals[e].total,
|
|
@@ -631,7 +631,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
631
631
|
rowIndex: e
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Un(e) {
|
|
635
635
|
return c(L.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, i({
|
|
636
636
|
p: L.value.style.layout.dataLabels.prefix,
|
|
637
637
|
v: Y.value.xTotals[e].total,
|
|
@@ -646,7 +646,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
646
646
|
head: R.value.map((e) => ({ name: e.name })),
|
|
647
647
|
body: R.value.map((e) => e.values)
|
|
648
648
|
}));
|
|
649
|
-
function
|
|
649
|
+
function Wn(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) {
|
|
@@ -671,29 +671,29 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
let Q = T(!1);
|
|
674
|
-
function
|
|
674
|
+
function Gn(e) {
|
|
675
675
|
Q.value = e, Lt.value += 1;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Kn() {
|
|
678
678
|
B.value.showTable = !B.value.showTable;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function qn() {
|
|
681
681
|
B.value.showTooltip = !B.value.showTooltip;
|
|
682
682
|
}
|
|
683
|
-
let
|
|
684
|
-
function
|
|
685
|
-
|
|
683
|
+
let Jn = T(!1);
|
|
684
|
+
function Yn() {
|
|
685
|
+
Jn.value = !Jn.value;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Xn(e, t) {
|
|
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
|
-
function
|
|
693
|
+
function Zn() {
|
|
694
694
|
return X.value;
|
|
695
695
|
}
|
|
696
|
-
async function
|
|
696
|
+
async function Qn({ scale: e = 2 } = {}) {
|
|
697
697
|
if (!N.value) return;
|
|
698
698
|
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
699
699
|
domElement: N.value,
|
|
@@ -710,14 +710,14 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
710
710
|
aspectRatio: r
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
let
|
|
713
|
+
let $n = g(() => ({
|
|
714
714
|
start: 0,
|
|
715
715
|
end: H.value
|
|
716
|
-
})),
|
|
716
|
+
})), er = g(() => Y.value.xLabels);
|
|
717
717
|
fe({
|
|
718
|
-
timeLabelsEls:
|
|
719
|
-
timeLabels:
|
|
720
|
-
slicer:
|
|
718
|
+
timeLabelsEls: Jt,
|
|
719
|
+
timeLabels: er,
|
|
720
|
+
slicer: $n,
|
|
721
721
|
configRef: L,
|
|
722
722
|
rotationPath: [
|
|
723
723
|
"style",
|
|
@@ -737,12 +737,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
737
737
|
isAutoSize: !1,
|
|
738
738
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
739
739
|
rotation: L.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
740
|
-
width:
|
|
741
|
-
height:
|
|
740
|
+
width: xn,
|
|
741
|
+
height: Sn
|
|
742
742
|
}), fe({
|
|
743
|
-
timeLabelsEls:
|
|
744
|
-
timeLabels:
|
|
745
|
-
slicer:
|
|
743
|
+
timeLabelsEls: Yt,
|
|
744
|
+
timeLabels: er,
|
|
745
|
+
slicer: $n,
|
|
746
746
|
configRef: L,
|
|
747
747
|
rotationPath: [
|
|
748
748
|
"style",
|
|
@@ -764,10 +764,10 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
764
764
|
isAutoSize: !1,
|
|
765
765
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
766
766
|
rotation: L.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
767
|
-
width:
|
|
768
|
-
height:
|
|
767
|
+
width: xn,
|
|
768
|
+
height: Sn
|
|
769
769
|
});
|
|
770
|
-
let
|
|
770
|
+
let tr = g(() => {
|
|
771
771
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
772
772
|
return {
|
|
773
773
|
component: e ? Ot : ve,
|
|
@@ -780,7 +780,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
780
780
|
isFullscreen: Q.value,
|
|
781
781
|
fullscreenParent: N.value,
|
|
782
782
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
783
|
-
isCursorPointer:
|
|
783
|
+
isCursorPointer: nn.value
|
|
784
784
|
} : {
|
|
785
785
|
hideDetails: !0,
|
|
786
786
|
config: {
|
|
@@ -801,43 +801,20 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
801
801
|
ze(() => B.value.showTable, async (e) => {
|
|
802
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:
|
|
805
|
-
function
|
|
804
|
+
let { isResponsive: nr } = Se(Rt, vn);
|
|
805
|
+
function rr() {
|
|
806
806
|
B.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
807
807
|
}
|
|
808
|
-
let
|
|
808
|
+
let ir = g(() => L.value.style.backgroundColor), ar = g(() => L.value.style.title), { isCallbackImaging: or, isCallbackSvg: sr, generateSvg: cr, onGenerateImage: lr } = de({
|
|
809
809
|
svg: z,
|
|
810
|
-
title:
|
|
811
|
-
|
|
810
|
+
title: ar,
|
|
811
|
+
legend: null,
|
|
812
|
+
legendItems: null,
|
|
813
|
+
backgroundColor: ir,
|
|
814
|
+
getSvgCallback: () => L.value.userOptions.callbacks.svg,
|
|
815
|
+
generateImage: gn
|
|
812
816
|
});
|
|
813
|
-
async function ur(
|
|
814
|
-
Wt.value = !0, await ke();
|
|
815
|
-
try {
|
|
816
|
-
if (e) {
|
|
817
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await lr();
|
|
818
|
-
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
819
|
-
blob: e,
|
|
820
|
-
url: t,
|
|
821
|
-
text: n,
|
|
822
|
-
dataUrl: r
|
|
823
|
-
}));
|
|
824
|
-
} else await Promise.resolve(cr());
|
|
825
|
-
} finally {
|
|
826
|
-
Wt.value = !1;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
function dr(e) {
|
|
830
|
-
if (e?.stage === "start") {
|
|
831
|
-
Ut.value = !0;
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
if (e?.stage === "end") {
|
|
835
|
-
Ut.value = !1;
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
vn();
|
|
839
|
-
}
|
|
840
|
-
async function fr() {
|
|
817
|
+
async function ur() {
|
|
841
818
|
if (Mt("copyAlt", {
|
|
842
819
|
config: L.value,
|
|
843
820
|
dataset: X.value
|
|
@@ -850,7 +827,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
850
827
|
dataset: X.value
|
|
851
828
|
}));
|
|
852
829
|
}
|
|
853
|
-
function
|
|
830
|
+
function dr(e, t) {
|
|
854
831
|
let n = X.value[e];
|
|
855
832
|
if (!n) return null;
|
|
856
833
|
let r = n.temperatures[t];
|
|
@@ -860,30 +837,30 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
860
837
|
columnIndex: t
|
|
861
838
|
} : null;
|
|
862
839
|
}
|
|
863
|
-
function
|
|
840
|
+
function fr(e, t) {
|
|
864
841
|
let n = 0;
|
|
865
842
|
for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
|
|
866
843
|
return n + t;
|
|
867
844
|
}
|
|
868
|
-
function
|
|
869
|
-
I.value = null,
|
|
845
|
+
function pr() {
|
|
846
|
+
I.value = null, Qt.value = null, tn.value = !0;
|
|
870
847
|
}
|
|
871
|
-
function
|
|
872
|
-
|
|
848
|
+
function mr() {
|
|
849
|
+
Rn(), tn.value = !1;
|
|
873
850
|
}
|
|
874
|
-
function
|
|
875
|
-
if (!z.value ||
|
|
851
|
+
function hr(e) {
|
|
852
|
+
if (!z.value || Jn.value || document.activeElement !== z.value || !$.value.length) return;
|
|
876
853
|
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
854
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
878
855
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
879
|
-
|
|
856
|
+
Rn();
|
|
880
857
|
return;
|
|
881
858
|
}
|
|
882
859
|
if (a) {
|
|
883
860
|
if (I.value === null) return;
|
|
884
861
|
let e = $.value[I.value];
|
|
885
862
|
if (!e) return;
|
|
886
|
-
|
|
863
|
+
Xn(e.cell, e.rowIndex);
|
|
887
864
|
return;
|
|
888
865
|
}
|
|
889
866
|
let s = I.value === null ? null : $.value[I.value];
|
|
@@ -894,40 +871,40 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
894
871
|
if (!a) return;
|
|
895
872
|
let o = a.rowIndex, s = a.columnIndex;
|
|
896
873
|
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
897
|
-
let c =
|
|
874
|
+
let c = _r.value.rowCount;
|
|
898
875
|
if (c <= 0) return;
|
|
899
876
|
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
900
877
|
let l = X.value[o];
|
|
901
878
|
if (!l || !l.temperatures.length) return;
|
|
902
879
|
let u = l.temperatures.length;
|
|
903
880
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
904
|
-
let d =
|
|
881
|
+
let d = dr(o, s);
|
|
905
882
|
if (!d) return;
|
|
906
|
-
let f =
|
|
907
|
-
|
|
883
|
+
let f = fr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
884
|
+
Bn(d.cell, d.rowIndex, p, m, "keyboard", f);
|
|
908
885
|
return;
|
|
909
886
|
}
|
|
910
887
|
let a = $.value[0];
|
|
911
888
|
if (!a) return;
|
|
912
889
|
let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
|
|
913
|
-
|
|
890
|
+
Bn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
914
891
|
return;
|
|
915
892
|
}
|
|
916
893
|
let c = s.rowIndex, l = s.columnIndex;
|
|
917
894
|
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
918
|
-
let u =
|
|
895
|
+
let u = _r.value.rowCount;
|
|
919
896
|
if (u <= 0) return;
|
|
920
897
|
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
921
898
|
let d = X.value[c];
|
|
922
899
|
if (!d || !d.temperatures.length) return;
|
|
923
900
|
let f = d.temperatures.length;
|
|
924
901
|
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
925
|
-
let p =
|
|
902
|
+
let p = dr(c, l);
|
|
926
903
|
if (!p) return;
|
|
927
|
-
let m =
|
|
928
|
-
|
|
904
|
+
let m = fr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
905
|
+
Bn(p.cell, p.rowIndex, ee, te, "keyboard", m);
|
|
929
906
|
}
|
|
930
|
-
let
|
|
907
|
+
let gr = g(() => ({
|
|
931
908
|
headers: [L.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
932
909
|
rows: Y.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
|
|
933
910
|
let n = e.values?.[t];
|
|
@@ -938,7 +915,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
938
915
|
r: L.value.table.td.roundingValue
|
|
939
916
|
});
|
|
940
917
|
})])
|
|
941
|
-
})),
|
|
918
|
+
})), _r = g(() => ({
|
|
942
919
|
rowCount: X.value.length,
|
|
943
920
|
columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
|
|
944
921
|
})), $ = g(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
@@ -947,37 +924,37 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
947
924
|
columnIndex: n
|
|
948
925
|
}))));
|
|
949
926
|
return he({
|
|
950
|
-
getData:
|
|
951
|
-
getImage:
|
|
952
|
-
generatePdf:
|
|
953
|
-
generateCsv:
|
|
954
|
-
generateImage:
|
|
955
|
-
generateSvg:
|
|
956
|
-
toggleTable:
|
|
957
|
-
toggleTooltip:
|
|
958
|
-
toggleAnnotator:
|
|
959
|
-
toggleFullscreen:
|
|
960
|
-
copyAlt:
|
|
961
|
-
}), (t, n) => (w(),
|
|
927
|
+
getData: Zn,
|
|
928
|
+
getImage: Qn,
|
|
929
|
+
generatePdf: hn,
|
|
930
|
+
generateCsv: Wn,
|
|
931
|
+
generateImage: gn,
|
|
932
|
+
generateSvg: cr,
|
|
933
|
+
toggleTable: Kn,
|
|
934
|
+
toggleTooltip: qn,
|
|
935
|
+
toggleAnnotator: Yn,
|
|
936
|
+
toggleFullscreen: Gn,
|
|
937
|
+
copyAlt: ur
|
|
938
|
+
}), (t, n) => (w(), v("div", {
|
|
962
939
|
ref_key: "heatmapChart",
|
|
963
940
|
ref: N,
|
|
964
941
|
class: Ae(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
965
942
|
style: C(`font-family:${L.value.style.fontFamily};width:100%;${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.backgroundColor}`),
|
|
966
943
|
id: `heatmap__${M.value}`,
|
|
967
|
-
onMouseenter: n[1] ||= () =>
|
|
944
|
+
onMouseenter: n[1] ||= () => dn(!0),
|
|
968
945
|
onMouseleave: n[2] ||= () => {
|
|
969
|
-
|
|
946
|
+
dn(!1), tn.value || Rn();
|
|
970
947
|
}
|
|
971
948
|
}, [
|
|
972
|
-
|
|
949
|
+
y("div", {
|
|
973
950
|
id: `chart-instructions-${M.value}`,
|
|
974
951
|
class: "sr-only"
|
|
975
|
-
}, [
|
|
976
|
-
|
|
952
|
+
}, [y("p", null, O(L.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
953
|
+
gr.value?.rows?.length ? (w(), we(ye, {
|
|
977
954
|
key: 0,
|
|
978
955
|
uid: M.value,
|
|
979
|
-
head:
|
|
980
|
-
body:
|
|
956
|
+
head: gr.value.headers,
|
|
957
|
+
body: gr.value.rows,
|
|
981
958
|
notice: L.value.a11y.translations.tableAvailable,
|
|
982
959
|
caption: L.value.a11y.translations.tableCaption
|
|
983
960
|
}, null, 8, [
|
|
@@ -986,15 +963,15 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
986
963
|
"body",
|
|
987
964
|
"notice",
|
|
988
965
|
"caption"
|
|
989
|
-
])) :
|
|
990
|
-
L.value.userOptions.buttons.annotator ? (w(),
|
|
966
|
+
])) : _("", !0),
|
|
967
|
+
L.value.userOptions.buttons.annotator ? (w(), we(k(Tt), {
|
|
991
968
|
key: 1,
|
|
992
969
|
svgRef: k(z),
|
|
993
970
|
backgroundColor: L.value.style.backgroundColor,
|
|
994
971
|
color: L.value.style.color,
|
|
995
|
-
active:
|
|
996
|
-
isCursorPointer:
|
|
997
|
-
onClose:
|
|
972
|
+
active: Jn.value,
|
|
973
|
+
isCursorPointer: nn.value,
|
|
974
|
+
onClose: Yn
|
|
998
975
|
}, {
|
|
999
976
|
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1000
977
|
"annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(x({ color: e })), void 0, !0)]),
|
|
@@ -1009,20 +986,20 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1009
986
|
"color",
|
|
1010
987
|
"active",
|
|
1011
988
|
"isCursorPointer"
|
|
1012
|
-
])) :
|
|
1013
|
-
|
|
989
|
+
])) : _("", !0),
|
|
990
|
+
_n.value ? (w(), v("div", {
|
|
1014
991
|
key: 2,
|
|
1015
992
|
ref_key: "noTitle",
|
|
1016
|
-
ref:
|
|
993
|
+
ref: Wt,
|
|
1017
994
|
class: "vue-data-ui-no-title-space",
|
|
1018
995
|
style: "height:36px; width: 100%;background:transparent"
|
|
1019
|
-
}, null, 512)) :
|
|
1020
|
-
L.value.style.title.text ? (w(),
|
|
996
|
+
}, null, 512)) : _("", !0),
|
|
997
|
+
L.value.style.title.text ? (w(), v("div", {
|
|
1021
998
|
key: 3,
|
|
1022
999
|
ref_key: "chartTitle",
|
|
1023
|
-
ref:
|
|
1000
|
+
ref: Ut,
|
|
1024
1001
|
style: "width:100%;background:transparent"
|
|
1025
|
-
}, [(w(),
|
|
1002
|
+
}, [(w(), we(me, {
|
|
1026
1003
|
key: `title_${zt.value}`,
|
|
1027
1004
|
config: {
|
|
1028
1005
|
title: {
|
|
@@ -1034,15 +1011,15 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1034
1011
|
...L.value.style.title.subtitle
|
|
1035
1012
|
}
|
|
1036
1013
|
}
|
|
1037
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1038
|
-
L.value.userOptions.show && Nt.value && (k(
|
|
1014
|
+
}, null, 8, ["config"]))], 512)) : _("", !0),
|
|
1015
|
+
L.value.userOptions.show && Nt.value && (k(un) || k(cn)) ? (w(), we(k(Et), {
|
|
1039
1016
|
ref_key: "userOptionsRef",
|
|
1040
1017
|
ref: Ht,
|
|
1041
1018
|
key: `user_options_${Lt.value}`,
|
|
1042
1019
|
backgroundColor: L.value.style.backgroundColor,
|
|
1043
1020
|
color: L.value.style.color,
|
|
1044
|
-
isImaging: k(
|
|
1045
|
-
isPrinting: k(
|
|
1021
|
+
isImaging: k(mn),
|
|
1022
|
+
isPrinting: k(pn),
|
|
1046
1023
|
uid: M.value,
|
|
1047
1024
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.tooltip.show,
|
|
1048
1025
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1058,22 +1035,22 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1058
1035
|
chartElement: N.value,
|
|
1059
1036
|
position: L.value.userOptions.position,
|
|
1060
1037
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1061
|
-
isAnnotation:
|
|
1038
|
+
isAnnotation: Jn.value,
|
|
1062
1039
|
callbacks: L.value.userOptions.callbacks,
|
|
1063
1040
|
printScale: L.value.userOptions.print.scale,
|
|
1064
1041
|
tableDialog: L.value.table.useDialog,
|
|
1065
|
-
isCursorPointer:
|
|
1066
|
-
onToggleFullscreen:
|
|
1067
|
-
onGeneratePdf: k(
|
|
1068
|
-
onGenerateCsv:
|
|
1069
|
-
onGenerateImage:
|
|
1070
|
-
onGenerateSvg:
|
|
1071
|
-
onToggleTable:
|
|
1072
|
-
onToggleTooltip:
|
|
1073
|
-
onToggleAnnotator:
|
|
1074
|
-
onCopyAlt:
|
|
1075
|
-
style: C({ visibility: k(
|
|
1076
|
-
},
|
|
1042
|
+
isCursorPointer: nn.value,
|
|
1043
|
+
onToggleFullscreen: Gn,
|
|
1044
|
+
onGeneratePdf: k(hn),
|
|
1045
|
+
onGenerateCsv: Wn,
|
|
1046
|
+
onGenerateImage: k(lr),
|
|
1047
|
+
onGenerateSvg: k(cr),
|
|
1048
|
+
onToggleTable: Kn,
|
|
1049
|
+
onToggleTooltip: qn,
|
|
1050
|
+
onToggleAnnotator: Yn,
|
|
1051
|
+
onCopyAlt: ur,
|
|
1052
|
+
style: C({ visibility: k(un) ? k(cn) ? "visible" : "hidden" : "visible" })
|
|
1053
|
+
}, Te({ _: 2 }, [
|
|
1077
1054
|
t.$slots.menuIcon ? {
|
|
1078
1055
|
name: "menuIcon",
|
|
1079
1056
|
fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
|
|
@@ -1143,12 +1120,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1143
1120
|
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1144
1121
|
key: "11"
|
|
1145
1122
|
} : 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
|
-
|
|
1123
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : _("", !0),
|
|
1124
|
+
y("div", { class: Ae({
|
|
1148
1125
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1149
1126
|
"vue-ui-heatmap-chart-wrapper-legend-right": L.value.style.legend.show
|
|
1150
1127
|
}) }, [
|
|
1151
|
-
(w(),
|
|
1128
|
+
(w(), v("svg", {
|
|
1152
1129
|
ref_key: "svgRef",
|
|
1153
1130
|
ref: z,
|
|
1154
1131
|
xmlns: k(p),
|
|
@@ -1164,24 +1141,24 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1164
1141
|
role: "img",
|
|
1165
1142
|
preserveAspectRatio: "xMidYMid",
|
|
1166
1143
|
tabindex: "0",
|
|
1167
|
-
onFocus:
|
|
1168
|
-
onBlur:
|
|
1169
|
-
onKeydown:
|
|
1144
|
+
onFocus: pr,
|
|
1145
|
+
onBlur: mr,
|
|
1146
|
+
onKeydown: hr
|
|
1170
1147
|
}, [
|
|
1171
|
-
|
|
1172
|
-
t.$slots["chart-background"] ? (w(),
|
|
1148
|
+
De(k(Dt)),
|
|
1149
|
+
t.$slots["chart-background"] ? (w(), v("foreignObject", {
|
|
1173
1150
|
key: 0,
|
|
1174
1151
|
x: K.value.left,
|
|
1175
1152
|
y: K.value.top,
|
|
1176
1153
|
width: K.value.width,
|
|
1177
1154
|
height: K.value.height,
|
|
1178
1155
|
style: { pointerEvents: "none" }
|
|
1179
|
-
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) :
|
|
1180
|
-
L.value.style.layout.cells.columnTotal.color.show ? (w(),
|
|
1156
|
+
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : _("", !0),
|
|
1157
|
+
L.value.style.layout.cells.columnTotal.color.show ? (w(), v("g", {
|
|
1181
1158
|
key: 1,
|
|
1182
1159
|
ref_key: "xAxisSumRects",
|
|
1183
|
-
ref:
|
|
1184
|
-
}, [(w(!0),
|
|
1160
|
+
ref: Xt
|
|
1161
|
+
}, [(w(!0), v(h, null, E(Y.value.xTotals, (e, t) => (w(), v("rect", {
|
|
1185
1162
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1186
1163
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1187
1164
|
height: K.value.sumCellXHeight,
|
|
@@ -1189,7 +1166,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1189
1166
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1190
1167
|
stroke: L.value.style.backgroundColor,
|
|
1191
1168
|
"stroke-width": G.value
|
|
1192
|
-
}, null, 8, Ze))), 256)), (w(!0),
|
|
1169
|
+
}, null, 8, Ze))), 256)), (w(!0), v(h, null, E(Y.value.xTotals, (e, t) => (w(), v("rect", {
|
|
1193
1170
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1194
1171
|
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1195
1172
|
height: K.value.sumCellXHeight,
|
|
@@ -1197,12 +1174,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1197
1174
|
fill: e.color,
|
|
1198
1175
|
stroke: L.value.style.backgroundColor,
|
|
1199
1176
|
"stroke-width": G.value
|
|
1200
|
-
}, null, 8, Qe))), 256))], 512)) :
|
|
1201
|
-
|
|
1177
|
+
}, null, 8, Qe))), 256))], 512)) : _("", !0),
|
|
1178
|
+
y("g", {
|
|
1202
1179
|
ref_key: "datapoints",
|
|
1203
1180
|
ref: Bt
|
|
1204
|
-
}, [(w(!0),
|
|
1205
|
-
|
|
1181
|
+
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [(w(!0), v(h, null, E(e.temperatures, (e, n) => (w(), v("g", null, [
|
|
1182
|
+
y("rect", {
|
|
1206
1183
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1207
1184
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1208
1185
|
width: K.value.cellSize.width - G.value,
|
|
@@ -1211,7 +1188,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1211
1188
|
stroke: L.value.style.backgroundColor,
|
|
1212
1189
|
"stroke-width": G.value
|
|
1213
1190
|
}, null, 8, $e),
|
|
1214
|
-
|
|
1191
|
+
y("rect", {
|
|
1215
1192
|
"data-a11y-cell-id": e.id,
|
|
1216
1193
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1217
1194
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
@@ -1221,14 +1198,14 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1221
1198
|
stroke: L.value.style.backgroundColor,
|
|
1222
1199
|
"stroke-width": G.value,
|
|
1223
1200
|
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1224
|
-
onMouseover: (r) =>
|
|
1225
|
-
onMouseout: () =>
|
|
1201
|
+
onMouseover: (r) => Bn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", fr(t, n)),
|
|
1202
|
+
onMouseout: () => Vn({
|
|
1226
1203
|
datapoint: e,
|
|
1227
1204
|
seriesIndex: t
|
|
1228
1205
|
}),
|
|
1229
|
-
onClick: () =>
|
|
1206
|
+
onClick: () => Xn(e, t)
|
|
1230
1207
|
}, null, 40, et),
|
|
1231
|
-
L.value.style.layout.cells.value.show ? Ve((w(),
|
|
1208
|
+
L.value.style.layout.cells.value.show ? Ve((w(), v("text", {
|
|
1232
1209
|
key: 0,
|
|
1233
1210
|
"text-anchor": "middle",
|
|
1234
1211
|
"font-size": L.value.style.layout.cells.value.fontSize,
|
|
@@ -1240,7 +1217,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1240
1217
|
pointerEvents: "none",
|
|
1241
1218
|
userSelect: "none"
|
|
1242
1219
|
}
|
|
1243
|
-
}, [
|
|
1220
|
+
}, [Ee(O(k(c)(L.value.style.layout.cells.value.formatter, e.value, k(i)({
|
|
1244
1221
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1245
1222
|
v: e.value,
|
|
1246
1223
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -1251,17 +1228,17 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1251
1228
|
maxFontSize: L.value.style.layout.cells.value.fontSize,
|
|
1252
1229
|
minFontSize: 10,
|
|
1253
1230
|
index: t * H.value + n,
|
|
1254
|
-
reportHide:
|
|
1255
|
-
reportRotation:
|
|
1256
|
-
hideAll:
|
|
1257
|
-
rotateAll:
|
|
1258
|
-
}]]) :
|
|
1231
|
+
reportHide: In,
|
|
1232
|
+
reportRotation: Nn,
|
|
1233
|
+
hideAll: Fn.value,
|
|
1234
|
+
rotateAll: Mn.value
|
|
1235
|
+
}]]) : _("", !0)
|
|
1259
1236
|
]))), 256))], 64))), 256))], 512),
|
|
1260
|
-
L.value.style.layout.cells.rowTotal.color.show ? (w(),
|
|
1237
|
+
L.value.style.layout.cells.rowTotal.color.show ? (w(), v("g", {
|
|
1261
1238
|
key: 2,
|
|
1262
1239
|
ref_key: "yAxisSumRects",
|
|
1263
|
-
ref:
|
|
1264
|
-
}, [(w(!0),
|
|
1240
|
+
ref: qt
|
|
1241
|
+
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [y("rect", {
|
|
1265
1242
|
x: K.value.left,
|
|
1266
1243
|
y: K.value.top + K.value.cellSize.height * t,
|
|
1267
1244
|
width: K.value.sumCellXHeight,
|
|
@@ -1269,7 +1246,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1269
1246
|
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1270
1247
|
stroke: L.value.style.backgroundColor,
|
|
1271
1248
|
"stroke-width": G.value
|
|
1272
|
-
}, null, 8, nt),
|
|
1249
|
+
}, null, 8, nt), y("rect", {
|
|
1273
1250
|
x: K.value.left,
|
|
1274
1251
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1275
1252
|
width: K.value.sumCellXHeight,
|
|
@@ -1277,12 +1254,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1277
1254
|
fill: Y.value.yTotals[t].color,
|
|
1278
1255
|
stroke: L.value.style.backgroundColor,
|
|
1279
1256
|
"stroke-width": G.value
|
|
1280
|
-
}, null, 8, rt)], 64))), 256))], 512)) :
|
|
1281
|
-
L.value.style.layout.dataLabels.yAxis.show ? (w(),
|
|
1257
|
+
}, null, 8, rt)], 64))), 256))], 512)) : _("", !0),
|
|
1258
|
+
L.value.style.layout.dataLabels.yAxis.show ? (w(), v("g", {
|
|
1282
1259
|
key: 3,
|
|
1283
1260
|
ref_key: "yAxisLabels",
|
|
1284
|
-
ref:
|
|
1285
|
-
}, [(w(!0),
|
|
1261
|
+
ref: Kt
|
|
1262
|
+
}, [(w(!0), v(h, null, E(X.value, (e, t) => (w(), v(h, null, [y("text", {
|
|
1286
1263
|
class: "vue-ui-heatmap-row-name",
|
|
1287
1264
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1288
1265
|
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
@@ -1290,7 +1267,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1290
1267
|
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
1268
|
"text-anchor": "end",
|
|
1292
1269
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1293
|
-
}, O(Y.value.yLabels[t]), 9, it), L.value.style.layout.cells.rowTotal.value.show ? (w(),
|
|
1270
|
+
}, O(Y.value.yLabels[t]), 9, it), L.value.style.layout.cells.rowTotal.value.show ? (w(), v("text", {
|
|
1294
1271
|
key: 0,
|
|
1295
1272
|
class: "vue-ui-heatmap-row-total",
|
|
1296
1273
|
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1299,12 +1276,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1299
1276
|
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
1277
|
"text-anchor": "end",
|
|
1301
1278
|
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1302
|
-
}, O(
|
|
1303
|
-
L.value.style.layout.dataLabels.xAxis.show ? (w(),
|
|
1279
|
+
}, O(Hn(t)), 9, at)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1280
|
+
L.value.style.layout.dataLabels.xAxis.show ? (w(), v("g", {
|
|
1304
1281
|
key: 4,
|
|
1305
1282
|
ref_key: "xAxisLabels",
|
|
1306
|
-
ref:
|
|
1307
|
-
}, [(w(!0),
|
|
1283
|
+
ref: Jt
|
|
1284
|
+
}, [(w(!0), v(h, null, E(Y.value.xLabels, (e, t) => (w(), v(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(), v("text", {
|
|
1308
1285
|
key: 0,
|
|
1309
1286
|
class: "vue-ui-heatmap-col-name",
|
|
1310
1287
|
"text-anchor": L.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : L.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
@@ -1312,20 +1289,20 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1312
1289
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1313
1290
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1314
1291
|
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
|
-
}, O(e), 9, ot)) :
|
|
1316
|
-
L.value.style.layout.cells.columnTotal.value.show ? (w(),
|
|
1292
|
+
}, O(e), 9, ot)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1293
|
+
L.value.style.layout.cells.columnTotal.value.show ? (w(), v("g", {
|
|
1317
1294
|
key: 5,
|
|
1318
1295
|
ref_key: "xAxisSums",
|
|
1319
|
-
ref:
|
|
1320
|
-
}, [(w(!0),
|
|
1296
|
+
ref: Yt
|
|
1297
|
+
}, [(w(!0), v(h, null, E(Y.value.xLabels, (e, t) => (w(), v("text", {
|
|
1321
1298
|
class: "vue-ui-heatmap-col-total",
|
|
1322
1299
|
"text-anchor": L.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : L.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1323
1300
|
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1324
1301
|
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1325
1302
|
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1326
1303
|
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
|
-
}, O(
|
|
1328
|
-
P.value ? (w(),
|
|
1304
|
+
}, O(Un(t)), 9, st))), 256))], 512)) : _("", !0),
|
|
1305
|
+
P.value ? (w(), v("g", ct, [y("rect", {
|
|
1329
1306
|
style: { "pointer-events": "none" },
|
|
1330
1307
|
x: P.value.x - L.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1331
1308
|
y: P.value.y - L.value.style.layout.cells.selected.border / 2 + G.value,
|
|
@@ -1335,8 +1312,8 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1335
1312
|
stroke: L.value.style.layout.cells.selected.color,
|
|
1336
1313
|
"stroke-width": L.value.style.layout.cells.selected.border,
|
|
1337
1314
|
rx: 1
|
|
1338
|
-
}, null, 8, lt)])) :
|
|
1339
|
-
L.value.style.layout.crosshairs.show && P.value ? (w(),
|
|
1315
|
+
}, null, 8, lt)])) : _("", !0),
|
|
1316
|
+
L.value.style.layout.crosshairs.show && P.value ? (w(), v("g", ut, [y("line", {
|
|
1340
1317
|
x1: K.value.left + K.value.sumCellXHeight,
|
|
1341
1318
|
x2: P.value.x + K.value.sumCellXHeight,
|
|
1342
1319
|
y1: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
@@ -1345,7 +1322,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1345
1322
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1346
1323
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1347
1324
|
"stroke-linecap": "round"
|
|
1348
|
-
}, null, 8, dt),
|
|
1325
|
+
}, null, 8, dt), y("line", {
|
|
1349
1326
|
x1: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1350
1327
|
x2: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1351
1328
|
y1: P.value.y,
|
|
@@ -1354,22 +1331,22 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1354
1331
|
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1355
1332
|
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1356
1333
|
"stroke-linecap": "round"
|
|
1357
|
-
}, null, 8, ft)])) :
|
|
1334
|
+
}, null, 8, ft)])) : _("", !0),
|
|
1358
1335
|
D(t.$slots, "svg", { svg: {
|
|
1359
1336
|
...U.value,
|
|
1360
1337
|
drawingArea: K.value,
|
|
1361
|
-
isPrintingImg: k(
|
|
1362
|
-
isPrintingSvg:
|
|
1338
|
+
isPrintingImg: k(pn) || k(mn) || k(or),
|
|
1339
|
+
isPrintingSvg: k(sr)
|
|
1363
1340
|
} }, void 0, !0)
|
|
1364
1341
|
], 46, Ye)),
|
|
1365
|
-
L.value.style.legend.show ? (w(),
|
|
1342
|
+
L.value.style.legend.show ? (w(), v("div", {
|
|
1366
1343
|
key: 0,
|
|
1367
1344
|
ref_key: "legendRight",
|
|
1368
|
-
ref:
|
|
1345
|
+
ref: Gt,
|
|
1369
1346
|
class: "vue-ui-heatmap-legend-right",
|
|
1370
1347
|
style: C({ "--legend-width": L.value.style.legend.width + "px" })
|
|
1371
1348
|
}, [
|
|
1372
|
-
k(
|
|
1349
|
+
k(on) ? _("", !0) : (w(), v("div", {
|
|
1373
1350
|
key: 0,
|
|
1374
1351
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1375
1352
|
style: C({
|
|
@@ -1382,10 +1359,10 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1382
1359
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1383
1360
|
r: L.value.style.legend.roundingValue
|
|
1384
1361
|
}))), 5)),
|
|
1385
|
-
|
|
1362
|
+
y("div", pt, [y("div", {
|
|
1386
1363
|
class: "vue-ui-heatmap-gauge",
|
|
1387
1364
|
style: C({ background: `linear-gradient(to bottom, ${L.value.style.layout.cells.colors.hot}, ${L.value.style.layout.cells.colors.cold})` })
|
|
1388
|
-
}, [Ve(
|
|
1365
|
+
}, [Ve(y("div", {
|
|
1389
1366
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1390
1367
|
"data-value": k(c)(L.value.style.layout.cells.value.formatter, k(o)(Z.value), k(i)({
|
|
1391
1368
|
p: L.value.style.layout.dataLabels.prefix,
|
|
@@ -1397,7 +1374,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1397
1374
|
position: "absolute",
|
|
1398
1375
|
width: "100%",
|
|
1399
1376
|
height: "2px",
|
|
1400
|
-
background: [void 0, null].includes(Z.value) ? "transparent" : k(f)(
|
|
1377
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : k(f)(Ln.value.datapoint.color),
|
|
1401
1378
|
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1402
1379
|
transition: "all 0.2s ease-in-out",
|
|
1403
1380
|
"--background-color": L.value.style.backgroundColor,
|
|
@@ -1406,39 +1383,39 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1406
1383
|
"--gauge-arrow-value": Z.value,
|
|
1407
1384
|
"--gauge-arrow-font-size": L.value.style.legend.fontSize + "px"
|
|
1408
1385
|
})
|
|
1409
|
-
}, [
|
|
1386
|
+
}, [y("div", ht, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(Z.value), k(i)({
|
|
1410
1387
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1411
1388
|
v: k(o)(Z.value),
|
|
1412
1389
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1413
1390
|
r: L.value.style.legend.roundingValue
|
|
1414
1391
|
}))), 1)], 12, mt), [[Re, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1415
|
-
k(
|
|
1392
|
+
k(on) ? _("", !0) : (w(), v("div", {
|
|
1416
1393
|
key: 1,
|
|
1417
1394
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1418
1395
|
style: C({
|
|
1419
1396
|
fontSize: L.value.style.legend.fontSize + "px",
|
|
1420
1397
|
color: L.value.style.legend.color
|
|
1421
1398
|
})
|
|
1422
|
-
}, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(
|
|
1399
|
+
}, O(k(c)(L.value.style.layout.cells.value.formatter, k(o)(Tn.value), k(i)({
|
|
1423
1400
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1424
|
-
v: k(o)(
|
|
1401
|
+
v: k(o)(Tn.value),
|
|
1425
1402
|
s: L.value.style.layout.dataLabels.suffix,
|
|
1426
1403
|
r: L.value.style.legend.roundingValue
|
|
1427
1404
|
}))), 5))
|
|
1428
|
-
], 4)) :
|
|
1429
|
-
t.$slots.hint ? (w(),
|
|
1405
|
+
], 4)) : _("", !0),
|
|
1406
|
+
t.$slots.hint ? (w(), v("div", gt, [D(t.$slots, "hint", S(x({
|
|
1430
1407
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1431
|
-
isVisible:
|
|
1432
|
-
})), void 0, !0)])) :
|
|
1408
|
+
isVisible: tn.value
|
|
1409
|
+
})), void 0, !0)])) : _("", !0)
|
|
1433
1410
|
], 2),
|
|
1434
|
-
t.$slots.watermark ? (w(),
|
|
1435
|
-
t.$slots.source ? (w(),
|
|
1411
|
+
t.$slots.watermark ? (w(), v("div", _t, [D(t.$slots, "watermark", S(x({ isPrinting: k(pn) || k(mn) || k(or) || k(sr) })), void 0, !0)])) : _("", !0),
|
|
1412
|
+
t.$slots.source ? (w(), v("div", {
|
|
1436
1413
|
key: 6,
|
|
1437
1414
|
ref_key: "source",
|
|
1438
|
-
ref:
|
|
1415
|
+
ref: Zt,
|
|
1439
1416
|
dir: "auto"
|
|
1440
|
-
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1441
|
-
|
|
1417
|
+
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1418
|
+
De(k(Ke), {
|
|
1442
1419
|
teleportTo: L.value.style.tooltip.teleportTo,
|
|
1443
1420
|
show: B.value.showTooltip && Pt.value,
|
|
1444
1421
|
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
@@ -1459,12 +1436,12 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1459
1436
|
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
1460
1437
|
smoothForce: L.value.style.tooltip.smoothForce,
|
|
1461
1438
|
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
1462
|
-
isA11yMode:
|
|
1463
|
-
a11yPosition:
|
|
1439
|
+
isA11yMode: en.value === "keyboard",
|
|
1440
|
+
a11yPosition: $t.value
|
|
1464
1441
|
}, {
|
|
1465
|
-
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...
|
|
1466
|
-
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...
|
|
1467
|
-
"tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...
|
|
1442
|
+
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1443
|
+
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1444
|
+
"tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1468
1445
|
_: 3
|
|
1469
1446
|
}, 8, [
|
|
1470
1447
|
"teleportTo",
|
|
@@ -1490,43 +1467,43 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1490
1467
|
"isA11yMode",
|
|
1491
1468
|
"a11yPosition"
|
|
1492
1469
|
]),
|
|
1493
|
-
Nt.value && L.value.userOptions.buttons.table ? (w(),
|
|
1470
|
+
Nt.value && L.value.userOptions.buttons.table ? (w(), we(Pe(tr.value.component), Oe({ key: 7 }, tr.value.props, {
|
|
1494
1471
|
ref_key: "tableUnit",
|
|
1495
1472
|
ref: Vt,
|
|
1496
|
-
onClose:
|
|
1497
|
-
}),
|
|
1498
|
-
content: A(() => [
|
|
1473
|
+
onClose: rr
|
|
1474
|
+
}), Te({
|
|
1475
|
+
content: A(() => [y("div", {
|
|
1499
1476
|
ref_key: "tableContainer",
|
|
1500
1477
|
ref: Rt,
|
|
1501
1478
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1502
1479
|
style: C(`${L.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1503
|
-
}, [
|
|
1480
|
+
}, [y("div", {
|
|
1504
1481
|
style: C(`width:100%;overflow-x:auto;position:relative;${L.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1505
|
-
class: Ae({ "vue-ui-responsive": k(
|
|
1506
|
-
}, [L.value.table.useDialog ?
|
|
1482
|
+
class: Ae({ "vue-ui-responsive": k(nr) })
|
|
1483
|
+
}, [L.value.table.useDialog ? _("", !0) : (w(), v("div", {
|
|
1507
1484
|
key: 0,
|
|
1508
1485
|
role: "button",
|
|
1509
1486
|
tabindex: "0",
|
|
1510
1487
|
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
|
-
onClick:
|
|
1512
|
-
onKeypress: He(
|
|
1513
|
-
}, [
|
|
1488
|
+
onClick: rr,
|
|
1489
|
+
onKeypress: He(rr, ["enter"])
|
|
1490
|
+
}, [De(k(wt), {
|
|
1514
1491
|
name: "close",
|
|
1515
1492
|
stroke: L.value.table.th.color,
|
|
1516
1493
|
"stroke-width": 2
|
|
1517
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1518
|
-
L.value.table.useDialog ?
|
|
1494
|
+
}, null, 8, ["stroke"])], 36)), y("table", vt, [
|
|
1495
|
+
L.value.table.useDialog ? _("", !0) : (w(), v("caption", {
|
|
1519
1496
|
key: 0,
|
|
1520
1497
|
style: C(`backgroundColor:${L.value.table.th.backgroundColor};color:${L.value.table.th.color};outline:${L.value.table.th.outline}`)
|
|
1521
|
-
}, [
|
|
1522
|
-
|
|
1498
|
+
}, [Ee(O(L.value.style.title.text) + " ", 1), L.value.style.title.subtitle.text ? (w(), v("span", yt, O(L.value.style.title.subtitle.text), 1)) : _("", !0)], 4)),
|
|
1499
|
+
y("thead", null, [y("tr", {
|
|
1523
1500
|
role: "row",
|
|
1524
1501
|
style: C(`background:${L.value.table.th.backgroundColor};color:${L.value.table.th.color}`)
|
|
1525
|
-
}, [
|
|
1502
|
+
}, [y("th", { style: C(`outline:${L.value.table.th.outline};padding-right:6px`) }, null, 4), (w(!0), v(h, null, E(e.dataset, (e, t) => (w(), v("th", {
|
|
1526
1503
|
align: "right",
|
|
1527
1504
|
style: C(`outline:${L.value.table.th.outline};padding-right:6px`)
|
|
1528
1505
|
}, O(e.name), 5))), 256))], 4)]),
|
|
1529
|
-
|
|
1506
|
+
y("tbody", null, [(w(!0), v(h, null, E(Y.value.xLabels, (t, n) => (w(), v("tr", {
|
|
1530
1507
|
role: "row",
|
|
1531
1508
|
class: Ae({
|
|
1532
1509
|
"vue-ui-data-table__tbody__row": !0,
|
|
@@ -1534,15 +1511,15 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1534
1511
|
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1535
1512
|
}),
|
|
1536
1513
|
style: C(`background:${L.value.table.td.backgroundColor};color:${L.value.table.td.color}`)
|
|
1537
|
-
}, [
|
|
1514
|
+
}, [y("td", {
|
|
1538
1515
|
"data-cell": L.value.table.colNames.xAxis,
|
|
1539
1516
|
class: "vue-ui-data-table__tbody__td",
|
|
1540
1517
|
style: C(`outline:${L.value.table.td.outline}`)
|
|
1541
|
-
}, [
|
|
1518
|
+
}, [y("div", xt, O(t), 1)], 12, bt), (w(!0), v(h, null, E(e.dataset, (t, r) => (w(), v("td", {
|
|
1542
1519
|
class: "vue-ui-data-table__tbody__td",
|
|
1543
1520
|
"data-cell": e.dataset[r].name,
|
|
1544
1521
|
style: C(`outline:${L.value.table.td.outline}`)
|
|
1545
|
-
}, [
|
|
1522
|
+
}, [y("div", Ct, O(isNaN(t.values[n]) ? "-" : k(i)({
|
|
1546
1523
|
p: L.value.style.layout.dataLabels.prefix,
|
|
1547
1524
|
v: t.values[n],
|
|
1548
1525
|
s: L.value.style.layout.dataLabels.suffix,
|
|
@@ -1552,24 +1529,24 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1552
1529
|
_: 2
|
|
1553
1530
|
}, [L.value.table.useDialog ? {
|
|
1554
1531
|
name: "title",
|
|
1555
|
-
fn: A(() => [
|
|
1532
|
+
fn: A(() => [Ee(O(tr.value.title), 1)]),
|
|
1556
1533
|
key: "0"
|
|
1557
1534
|
} : void 0, L.value.table.useDialog ? {
|
|
1558
1535
|
name: "actions",
|
|
1559
|
-
fn: A(() => [
|
|
1536
|
+
fn: A(() => [y("button", {
|
|
1560
1537
|
tabindex: "0",
|
|
1561
1538
|
class: "vue-ui-user-options-button",
|
|
1562
|
-
onClick: n[0] ||= (e) =>
|
|
1563
|
-
style: C({ cursor:
|
|
1564
|
-
}, [
|
|
1539
|
+
onClick: n[0] ||= (e) => Wn(L.value.userOptions.callbacks.csv),
|
|
1540
|
+
style: C({ cursor: nn.value ? "pointer" : "default" })
|
|
1541
|
+
}, [De(k(wt), {
|
|
1565
1542
|
name: "fileCsv",
|
|
1566
|
-
stroke:
|
|
1543
|
+
stroke: tr.value.props.color
|
|
1567
1544
|
}, null, 8, ["stroke"])], 4)]),
|
|
1568
1545
|
key: "1"
|
|
1569
|
-
} : void 0]), 1040)) :
|
|
1570
|
-
D(t.$slots, "skeleton", {}, () => [k(
|
|
1546
|
+
} : void 0]), 1040)) : _("", !0),
|
|
1547
|
+
D(t.$slots, "skeleton", {}, () => [k(on) ? (w(), we(ce, { key: 0 })) : _("", !0)], !0)
|
|
1571
1548
|
], 46, qe));
|
|
1572
1549
|
}
|
|
1573
|
-
}, [["__scopeId", "data-v-
|
|
1550
|
+
}, [["__scopeId", "data-v-9e3f53ee"]]);
|
|
1574
1551
|
//#endregion
|
|
1575
1552
|
export { Ke as n, wt as t };
|