vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n,
|
|
2
|
+
import { $ as t, D as n, Nt as r, Qt as i, St as a, X as o, Xt as s, b as c, bt as l, i as u, lt as d, mt as f, nt as p, q as ee, r as m, t as te } from "./lib-Dqr_-I6Y.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
5
|
import { t as ae } from "./useConfig-DwdGsXTx.js";
|
|
6
|
-
import { t as oe } from "./usePrinter-
|
|
6
|
+
import { t as oe } from "./usePrinter-CEiH1b6R.js";
|
|
7
7
|
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as le } from "./useNestedProp-
|
|
8
|
+
import { t as le } from "./useNestedProp-CulPqtou.js";
|
|
9
9
|
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as de } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as pe } from "./img-
|
|
13
|
-
import { n as me } from "./Title-
|
|
12
|
+
import { t as pe } from "./img-Bkzj3lDD.js";
|
|
13
|
+
import { n as me } from "./Title-CaVA8EIw.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-C6L7glHU.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 _, 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
24
|
function Ue({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
25
25
|
if (r) return;
|
|
@@ -283,25 +283,25 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
283
283
|
emits: ["selectDatapoint", "copyAlt"],
|
|
284
284
|
setup(e, { expose: he, emit: Ge }) {
|
|
285
285
|
Le((e) => ({ v3fc9460c: e.tdo }));
|
|
286
|
-
let Ke =
|
|
286
|
+
let Ke = De(() => import("./Tooltip-CVxJe3UW.js")), wt = De(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Tt = De(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Et = De(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Dt = De(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Ot = De(() => import("./BaseDraggableDialog-Dr_Q6Yt5.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
|
-
}),
|
|
293
|
+
}), Pt = T(ee()), M = T(null), Ft = T(!1), It = T(""), Lt = T(void 0), N = T(null), Rt = T(0), zt = T(null), Bt = T(0), 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), Qt = T(null), P = Fe(null), F = T(null), $t = T(null), en = T({
|
|
294
294
|
x: 0,
|
|
295
295
|
y: 0
|
|
296
|
-
}),
|
|
296
|
+
}), tn = T("pointer"), nn = T(!1), I = T(pn());
|
|
297
297
|
ne({
|
|
298
|
-
config: () =>
|
|
298
|
+
config: () => I.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 rn = g(() => I.value.userOptions.useCursorPointer);
|
|
304
|
+
function an() {
|
|
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 on = g(() => s({
|
|
317
317
|
defaultConfig: {
|
|
318
318
|
table: { show: !1 },
|
|
319
319
|
userOptions: { show: !1 },
|
|
@@ -336,29 +336,29 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
|
-
userConfig:
|
|
340
|
-
})), { loading:
|
|
339
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
340
|
+
})), { loading: sn, FINAL_DATASET: L, manualLoading: cn } = se({
|
|
341
341
|
...Ie(j),
|
|
342
|
-
FINAL_CONFIG:
|
|
343
|
-
prepareConfig:
|
|
342
|
+
FINAL_CONFIG: I,
|
|
343
|
+
prepareConfig: pn,
|
|
344
344
|
callback: () => {
|
|
345
345
|
Promise.resolve().then(async () => {
|
|
346
|
-
await ke(),
|
|
346
|
+
await ke(), M.value && i(M.value, {
|
|
347
347
|
delta: .1,
|
|
348
348
|
delay: 250
|
|
349
349
|
});
|
|
350
350
|
});
|
|
351
351
|
},
|
|
352
|
-
skeletonDataset: j.config?.skeletonDataset ??
|
|
353
|
-
skeletonConfig:
|
|
354
|
-
defaultConfig:
|
|
355
|
-
userConfig:
|
|
352
|
+
skeletonDataset: j.config?.skeletonDataset ?? an(),
|
|
353
|
+
skeletonConfig: s({
|
|
354
|
+
defaultConfig: I.value,
|
|
355
|
+
userConfig: on.value
|
|
356
356
|
})
|
|
357
|
-
}), { userOptionsVisible:
|
|
358
|
-
function
|
|
359
|
-
|
|
357
|
+
}), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.title });
|
|
358
|
+
function fn(e) {
|
|
359
|
+
un(e);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function pn() {
|
|
362
362
|
let e = le({
|
|
363
363
|
userConfig: j.config,
|
|
364
364
|
defaultConfig: kt
|
|
@@ -378,64 +378,64 @@ 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
|
+
sn.value || (I.value = pn()), ln.value = !I.value.userOptions.showOnChartHover, xn(), Bt.value += 1, z.value.showTable = I.value.table.show, z.value.showTooltip = I.value.style.tooltip.show, Sn.value = I.value.style.layout.width, Cn.value = I.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 && (cn.value = !1), xn();
|
|
384
384
|
}, { deep: !0 });
|
|
385
|
-
let { isPrinting:
|
|
386
|
-
elementId: `heatmap__${
|
|
387
|
-
fileName:
|
|
388
|
-
options:
|
|
389
|
-
}),
|
|
390
|
-
showTable:
|
|
391
|
-
showTooltip:
|
|
385
|
+
let { isPrinting: mn, isImaging: hn, generatePdf: gn, generateImage: _n } = oe({
|
|
386
|
+
elementId: `heatmap__${Pt.value}`,
|
|
387
|
+
fileName: I.value.style.title.text || "vue-ui-heatmap",
|
|
388
|
+
options: I.value.userOptions.print
|
|
389
|
+
}), vn = g(() => I.value.userOptions.show && !I.value.style.title.text), z = T({
|
|
390
|
+
showTable: I.value.table.show,
|
|
391
|
+
showTooltip: I.value.style.tooltip.show
|
|
392
392
|
});
|
|
393
|
-
ze(
|
|
394
|
-
|
|
395
|
-
showTable:
|
|
396
|
-
showTooltip:
|
|
393
|
+
ze(I, () => {
|
|
394
|
+
z.value = {
|
|
395
|
+
showTable: I.value.table.show,
|
|
396
|
+
showTooltip: I.value.style.tooltip.show
|
|
397
397
|
};
|
|
398
398
|
}, { immediate: !0 });
|
|
399
|
-
let
|
|
400
|
-
function
|
|
401
|
-
if (
|
|
399
|
+
let yn = g(() => I.value.table.responsiveBreakpoint), B = T(null), bn = g(() => I.value.debug);
|
|
400
|
+
function xn() {
|
|
401
|
+
if (r(j.dataset) && (p({
|
|
402
402
|
componentName: "VueUiHeatmap",
|
|
403
403
|
type: "dataset",
|
|
404
|
-
debug:
|
|
405
|
-
}), Nt.value = !1,
|
|
404
|
+
debug: bn.value
|
|
405
|
+
}), Nt.value = !1, cn.value = !0), r(j.dataset) || (cn.value = I.value.loading), I.value.responsive) {
|
|
406
406
|
let e = ge(() => {
|
|
407
407
|
let { width: e, height: t } = _e({
|
|
408
|
-
chart:
|
|
409
|
-
title:
|
|
410
|
-
source:
|
|
411
|
-
noTitle:
|
|
408
|
+
chart: M.value,
|
|
409
|
+
title: I.value.style.title.text ? Wt.value : null,
|
|
410
|
+
source: Qt.value,
|
|
411
|
+
noTitle: Gt.value
|
|
412
412
|
});
|
|
413
413
|
requestAnimationFrame(() => {
|
|
414
|
-
|
|
414
|
+
Sn.value = e, Cn.value = t;
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
|
-
|
|
417
|
+
B.value && (P.value && B.value.unobserve(P.value), B.value.disconnect()), B.value = new ResizeObserver(e), P.value = M.value.parentNode, B.value.observe(P.value);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
je(() => {
|
|
421
|
-
|
|
421
|
+
B.value && (P.value && B.value.unobserve(P.value), B.value.disconnect());
|
|
422
422
|
}), Me(() => {
|
|
423
|
-
|
|
423
|
+
xn();
|
|
424
424
|
});
|
|
425
|
-
let
|
|
426
|
-
width: Math.max(10,
|
|
427
|
-
height: Math.max(10,
|
|
428
|
-
})),
|
|
425
|
+
let V = g(() => Math.max(...L.value.flatMap((e) => (e.values || []).length))), Sn = T(I.value.style.layout.width), Cn = T(I.value.style.layout.height), H = g(() => ({
|
|
426
|
+
width: Math.max(10, Sn.value),
|
|
427
|
+
height: Math.max(10, Cn.value)
|
|
428
|
+
})), U = T(0);
|
|
429
429
|
Ue({
|
|
430
|
-
elementRef:
|
|
430
|
+
elementRef: Yt,
|
|
431
431
|
callback: ge((e) => {
|
|
432
|
-
e !==
|
|
432
|
+
e !== U.value && (U.value = e);
|
|
433
433
|
}, 100),
|
|
434
434
|
attr: "height"
|
|
435
435
|
});
|
|
436
436
|
let W = T(0);
|
|
437
437
|
Ue({
|
|
438
|
-
elementRef:
|
|
438
|
+
elementRef: qt,
|
|
439
439
|
callback: ge((e) => {
|
|
440
440
|
e !== W.value && (W.value = e);
|
|
441
441
|
}, 100),
|
|
@@ -443,48 +443,48 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
443
443
|
});
|
|
444
444
|
let wn = T(0);
|
|
445
445
|
Ue({
|
|
446
|
-
elementRef:
|
|
446
|
+
elementRef: Xt,
|
|
447
447
|
callback: ge((e) => {
|
|
448
448
|
e !== wn.value && (wn.value = e);
|
|
449
449
|
}, 100),
|
|
450
450
|
attr: "height"
|
|
451
451
|
}), je(() => {
|
|
452
|
-
|
|
452
|
+
U.value = 0, W.value = 0, wn.value = 0;
|
|
453
453
|
});
|
|
454
|
-
let G = g(() => Math.min(
|
|
454
|
+
let G = g(() => Math.min(H.value.height, H.value.width) / 1e3 * I.value.style.layout.cells.spacing), K = g(() => {
|
|
455
455
|
let e = 0;
|
|
456
|
-
|
|
457
|
-
let t =
|
|
458
|
-
x: G.value *
|
|
459
|
-
y: G.value * ((
|
|
460
|
-
}, s =
|
|
461
|
-
width: Math.max(3, s /
|
|
462
|
-
height: Math.max(3, c / (
|
|
456
|
+
I.value.style.legend.show && (e = I.value.style.legend.width);
|
|
457
|
+
let t = I.value.style.layout.padding, n = I.value.style.layout.dataLabels.xAxis.fontSize / 3, r = I.value.style.layout.dataLabels.xAxis.fontSize / 2, i = H.value.height - t.top - t.bottom - U.value - n, a = H.value.width / 60, o = {
|
|
458
|
+
x: G.value * V.value,
|
|
459
|
+
y: G.value * ((L.value || []).length + 1)
|
|
460
|
+
}, s = H.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - wn.value - r - I.value.style.layout.cells.columnTotal.value.offsetY, l = {
|
|
461
|
+
width: Math.max(3, s / V.value),
|
|
462
|
+
height: Math.max(3, c / (L.value.length ?? 1))
|
|
463
463
|
};
|
|
464
464
|
return {
|
|
465
|
-
top: t.top +
|
|
466
|
-
topLabelsHeight:
|
|
465
|
+
top: t.top + U.value + a + n,
|
|
466
|
+
topLabelsHeight: U.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:
|
|
471
|
+
bottom: H.value.height - t.bottom - wn.value,
|
|
472
472
|
width: s,
|
|
473
473
|
cellSize: l
|
|
474
474
|
};
|
|
475
|
-
}), q = g(() => Math.max(...
|
|
476
|
-
let e =
|
|
475
|
+
}), q = g(() => Math.max(...L.value.flatMap((e) => e.values))), Tn = g(() => Math.min(...L.value.flatMap((e) => e.values))), J = g(() => {
|
|
476
|
+
let e = L.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
480
|
let e = ++On;
|
|
481
481
|
(async () => {
|
|
482
|
-
let t =
|
|
483
|
-
values: t.values.length ? t.values :
|
|
484
|
-
maxDatapoints:
|
|
482
|
+
let t = I.value.style.layout.dataLabels.yAxis, n = await ie({
|
|
483
|
+
values: t.values.length ? t.values : L.value.map((e) => e.name),
|
|
484
|
+
maxDatapoints: L.value.length,
|
|
485
485
|
formatter: t.datetimeFormatter,
|
|
486
486
|
start: 0,
|
|
487
|
-
end:
|
|
487
|
+
end: L.value.length
|
|
488
488
|
});
|
|
489
489
|
e === On && (En.value = n);
|
|
490
490
|
})();
|
|
@@ -493,170 +493,170 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
493
493
|
Be(() => {
|
|
494
494
|
let e = ++kn;
|
|
495
495
|
(async () => {
|
|
496
|
-
let t =
|
|
496
|
+
let t = I.value.style.layout.dataLabels.xAxis, n = await ie({
|
|
497
497
|
values: t.values,
|
|
498
|
-
maxDatapoints:
|
|
498
|
+
maxDatapoints: V.value,
|
|
499
499
|
formatter: t.datetimeFormatter,
|
|
500
500
|
start: 0,
|
|
501
|
-
end:
|
|
501
|
+
end: V.value
|
|
502
502
|
});
|
|
503
503
|
e === kn && (Dn.value = n);
|
|
504
504
|
})();
|
|
505
505
|
});
|
|
506
506
|
let Y = g(() => {
|
|
507
|
-
let e = En.value.map((e) => e.text), t = Dn.value.map((e) => e.text), n =
|
|
508
|
-
for (let e = 0; e <
|
|
507
|
+
let e = En.value.map((e) => e.text), t = Dn.value.map((e) => e.text), n = L.value.map((e) => e.values.reduce((e, t) => e + t, 0)), r = Math.max(...n), i = Math.min(...n), a = [];
|
|
508
|
+
for (let e = 0; e < V.value; e += 1) a.push(L.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 {
|
|
511
511
|
yTotals: n.map((e) => ({
|
|
512
512
|
total: e,
|
|
513
513
|
proportion: isNaN(e / r) ? 0 : e / r,
|
|
514
|
-
color:
|
|
514
|
+
color: l(I.value.style.layout.cells.colors.cold, I.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: l(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, s, o, e)
|
|
520
520
|
})),
|
|
521
521
|
yLabels: e,
|
|
522
|
-
xLabels: t.slice(0,
|
|
522
|
+
xLabels: t.slice(0, V.value)
|
|
523
523
|
};
|
|
524
|
-
}), X = g(() => (
|
|
525
|
-
|
|
524
|
+
}), X = g(() => (L.value.forEach((e, t) => {
|
|
525
|
+
f({
|
|
526
526
|
datasetObject: e,
|
|
527
527
|
requiredAttributes: ["values"]
|
|
528
528
|
}).forEach((e) => {
|
|
529
|
-
|
|
529
|
+
p({
|
|
530
530
|
componentName: "VueUiHeatmap",
|
|
531
531
|
type: "datasetSerieAttribute",
|
|
532
532
|
property: "values",
|
|
533
533
|
index: t,
|
|
534
|
-
debug:
|
|
534
|
+
debug: bn.value
|
|
535
535
|
});
|
|
536
536
|
});
|
|
537
|
-
}),
|
|
537
|
+
}), L.value.map((e, t) => ({
|
|
538
538
|
...e,
|
|
539
539
|
temperatures: (e.values || []).map((e, n) => e >= J.value ? {
|
|
540
540
|
side: "up",
|
|
541
|
-
color:
|
|
541
|
+
color: l(I.value.style.layout.cells.colors.cold, I.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],
|
|
545
545
|
xAxisName: Y.value.xLabels[n],
|
|
546
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
546
|
+
id: `vue-data-ui-heatmap-cell-${ee()}`
|
|
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: l(I.value.style.layout.cells.colors.cold, I.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
|
-
id: `vue-data-ui-heatmap-cell-${
|
|
554
|
+
id: `vue-data-ui-heatmap-cell-${ee()}`
|
|
555
555
|
})
|
|
556
|
-
})))), An = g(() =>
|
|
556
|
+
})))), An = g(() => L.value.length), jn = Ne(Array(An.value * V.value || 1).fill(!1)), Mn = g(() => jn.some((e) => e));
|
|
557
557
|
function Nn(e, t) {
|
|
558
558
|
jn[e] = t;
|
|
559
559
|
}
|
|
560
|
-
let Pn = Ne(Array(An.value *
|
|
560
|
+
let Pn = Ne(Array(An.value * V.value || 1).fill(!1)), Fn = g(() => Pn.some((e) => e));
|
|
561
561
|
function In(e, t) {
|
|
562
562
|
Pn[e] = t;
|
|
563
563
|
}
|
|
564
564
|
let Z = T(null), Ln = T(null);
|
|
565
565
|
function Rn() {
|
|
566
|
-
|
|
566
|
+
Ft.value = !1, Lt.value = void 0, Z.value = null, N.value = null, F.value = null, $t.value = null;
|
|
567
567
|
}
|
|
568
568
|
function zn(e) {
|
|
569
|
-
if (!
|
|
570
|
-
let t =
|
|
569
|
+
if (!R.value || !e) return;
|
|
570
|
+
let t = R.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
571
571
|
if (!t) return;
|
|
572
572
|
let n = t.getBoundingClientRect();
|
|
573
|
-
|
|
573
|
+
en.value = {
|
|
574
574
|
x: n.left + n.width / 2,
|
|
575
575
|
y: n.top + n.height / 2
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
function Bn(e, t, n, r,
|
|
579
|
-
if (
|
|
578
|
+
function Bn(e, t, n, r, i = "pointer", s = null) {
|
|
579
|
+
if (I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
580
580
|
datapoint: e,
|
|
581
581
|
seriesIndex: t
|
|
582
|
-
}), !
|
|
583
|
-
|
|
582
|
+
}), !z.value.showTooltip) return;
|
|
583
|
+
tn.value = i, F.value = s, $t.value = e.id, N.value = {
|
|
584
584
|
x: n,
|
|
585
585
|
y: r
|
|
586
586
|
};
|
|
587
|
-
let { value:
|
|
588
|
-
|
|
587
|
+
let { value: c, yAxisName: f, xAxisName: p, id: ee } = e;
|
|
588
|
+
Lt.value = ee, Z.value = c, Ln.value = {
|
|
589
589
|
datapoint: e,
|
|
590
590
|
seriesIndex: t,
|
|
591
591
|
series: X.value,
|
|
592
|
-
config:
|
|
593
|
-
},
|
|
594
|
-
let
|
|
595
|
-
|
|
592
|
+
config: I.value
|
|
593
|
+
}, Ft.value = !0;
|
|
594
|
+
let m = "", te = I.value.style.tooltip.customFormat;
|
|
595
|
+
a(te) && d(() => te({
|
|
596
596
|
datapoint: e,
|
|
597
597
|
seriesIndex: t,
|
|
598
598
|
series: X.value,
|
|
599
|
-
config:
|
|
600
|
-
})) ?
|
|
599
|
+
config: I.value
|
|
600
|
+
})) ? It.value = te({
|
|
601
601
|
datapoint: e,
|
|
602
602
|
seriesIndex: t,
|
|
603
603
|
series: X.value,
|
|
604
|
-
config:
|
|
605
|
-
}) : (
|
|
606
|
-
p:
|
|
607
|
-
v:
|
|
608
|
-
s:
|
|
609
|
-
r:
|
|
604
|
+
config: I.value
|
|
605
|
+
}) : (m += `<div>${f} ${p ? f ? ` - ${p}` : `${p}` : ""}</div>`, m += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${l(I.value.style.layout.cells.colors.cold, I.value.style.layout.cells.colors.hot, Tn.value, q.value, c)}">⬤</span><span>${isNaN(c) ? "-" : u(I.value.style.layout.cells.value.formatter, c, o({
|
|
606
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
607
|
+
v: c,
|
|
608
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
609
|
+
r: I.value.style.tooltip.roundingValue
|
|
610
610
|
}), {
|
|
611
611
|
datapoint: e,
|
|
612
612
|
seriesIndex: t
|
|
613
|
-
})}</span></div>`,
|
|
613
|
+
})}</span></div>`, It.value = `<div style="font-size:${I.value.style.tooltip.fontSize}px">${m}</div>`), i === "keyboard" && ke(() => {
|
|
614
614
|
zn(e.id);
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
618
|
-
|
|
618
|
+
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
619
619
|
datapoint: e,
|
|
620
620
|
seriesIndex: t
|
|
621
|
-
}), (
|
|
621
|
+
}), ($t.value !== e.id || tn.value !== "keyboard") && (Ft.value = !1, Lt.value = void 0, Z.value = null, N.value = null);
|
|
622
622
|
}
|
|
623
623
|
function Hn(e) {
|
|
624
|
-
return
|
|
625
|
-
p:
|
|
624
|
+
return u(I.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, o({
|
|
625
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
626
626
|
v: Y.value.yTotals[e].total,
|
|
627
|
-
s:
|
|
628
|
-
r:
|
|
627
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
628
|
+
r: I.value.style.layout.cells.value.roundingValue
|
|
629
629
|
}), {
|
|
630
630
|
datapoint: Y.value.yTotals[e],
|
|
631
631
|
rowIndex: e
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
function Un(e) {
|
|
635
|
-
return
|
|
636
|
-
p:
|
|
635
|
+
return u(I.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, o({
|
|
636
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
637
637
|
v: Y.value.xTotals[e].total,
|
|
638
|
-
s:
|
|
639
|
-
r:
|
|
638
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
639
|
+
r: I.value.style.layout.cells.value.roundingValue
|
|
640
640
|
}), {
|
|
641
641
|
datapoint: Y.value.xTotals[e],
|
|
642
642
|
colIndex: e
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
g(() => ({
|
|
646
|
-
head:
|
|
647
|
-
body:
|
|
646
|
+
head: L.value.map((e) => ({ name: e.name })),
|
|
647
|
+
body: L.value.map((e) => e.values)
|
|
648
648
|
}));
|
|
649
649
|
function Wn(e = null) {
|
|
650
650
|
ke(() => {
|
|
651
|
-
let r = ["", ...
|
|
651
|
+
let r = ["", ...L.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
|
-
for (let n = 0; n <
|
|
654
|
+
for (let n = 0; n < L.value.length; n += 1) t.push([L.value[n].values[e]]);
|
|
655
655
|
i.push(t);
|
|
656
656
|
}
|
|
657
657
|
let a = [
|
|
658
|
-
[
|
|
659
|
-
[
|
|
658
|
+
[I.value.style.title.text],
|
|
659
|
+
[I.value.style.title.subtitle.text],
|
|
660
660
|
[
|
|
661
661
|
[""],
|
|
662
662
|
[""],
|
|
@@ -666,26 +666,26 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
666
666
|
].concat(i), o = n(a);
|
|
667
667
|
e ? e(o) : t({
|
|
668
668
|
csvContent: o,
|
|
669
|
-
title:
|
|
669
|
+
title: I.value.style.title.text || "vue-ui-heatmap"
|
|
670
670
|
});
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
let Q = T(!1);
|
|
674
674
|
function Gn(e) {
|
|
675
|
-
Q.value = e,
|
|
675
|
+
Q.value = e, Rt.value += 1;
|
|
676
676
|
}
|
|
677
677
|
function Kn() {
|
|
678
|
-
|
|
678
|
+
z.value.showTable = !z.value.showTable;
|
|
679
679
|
}
|
|
680
680
|
function qn() {
|
|
681
|
-
|
|
681
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
682
682
|
}
|
|
683
683
|
let Jn = T(!1);
|
|
684
684
|
function Yn() {
|
|
685
685
|
Jn.value = !Jn.value;
|
|
686
686
|
}
|
|
687
687
|
function Xn(e, t) {
|
|
688
|
-
|
|
688
|
+
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
689
689
|
datapoint: e,
|
|
690
690
|
seriesIndex: t
|
|
691
691
|
}), Mt("selectDatapoint", e);
|
|
@@ -694,9 +694,9 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
694
694
|
return X.value;
|
|
695
695
|
}
|
|
696
696
|
async function Qn({ scale: e = 2 } = {}) {
|
|
697
|
-
if (!
|
|
698
|
-
let { width: t, height: n } =
|
|
699
|
-
domElement:
|
|
697
|
+
if (!M.value) return;
|
|
698
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
699
|
+
domElement: M.value,
|
|
700
700
|
base64: !0,
|
|
701
701
|
img: !0,
|
|
702
702
|
scale: e
|
|
@@ -704,7 +704,7 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
704
704
|
return {
|
|
705
705
|
imageUri: i,
|
|
706
706
|
base64: a,
|
|
707
|
-
title:
|
|
707
|
+
title: I.value.style.title.text,
|
|
708
708
|
width: t,
|
|
709
709
|
height: n,
|
|
710
710
|
aspectRatio: r
|
|
@@ -712,13 +712,13 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
712
712
|
}
|
|
713
713
|
let $n = g(() => ({
|
|
714
714
|
start: 0,
|
|
715
|
-
end:
|
|
715
|
+
end: V.value
|
|
716
716
|
})), er = g(() => Y.value.xLabels);
|
|
717
717
|
fe({
|
|
718
|
-
timeLabelsEls:
|
|
718
|
+
timeLabelsEls: Yt,
|
|
719
719
|
timeLabels: er,
|
|
720
720
|
slicer: $n,
|
|
721
|
-
configRef:
|
|
721
|
+
configRef: I,
|
|
722
722
|
rotationPath: [
|
|
723
723
|
"style",
|
|
724
724
|
"layout",
|
|
@@ -736,14 +736,14 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
736
736
|
],
|
|
737
737
|
isAutoSize: !1,
|
|
738
738
|
targetClass: ".vue-ui-heatmap-col-name",
|
|
739
|
-
rotation:
|
|
740
|
-
width:
|
|
741
|
-
height:
|
|
739
|
+
rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
740
|
+
width: Sn,
|
|
741
|
+
height: Cn
|
|
742
742
|
}), fe({
|
|
743
|
-
timeLabelsEls:
|
|
743
|
+
timeLabelsEls: Xt,
|
|
744
744
|
timeLabels: er,
|
|
745
745
|
slicer: $n,
|
|
746
|
-
configRef:
|
|
746
|
+
configRef: I,
|
|
747
747
|
rotationPath: [
|
|
748
748
|
"style",
|
|
749
749
|
"layout",
|
|
@@ -763,67 +763,67 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
763
763
|
],
|
|
764
764
|
isAutoSize: !1,
|
|
765
765
|
targetClass: ".vue-ui-heatmap-col-total",
|
|
766
|
-
rotation:
|
|
767
|
-
width:
|
|
768
|
-
height:
|
|
766
|
+
rotation: I.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
767
|
+
width: Sn,
|
|
768
|
+
height: Cn
|
|
769
769
|
});
|
|
770
770
|
let tr = g(() => {
|
|
771
|
-
let e =
|
|
771
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = z.value.showTable;
|
|
772
772
|
return {
|
|
773
773
|
component: e ? Ot : ve,
|
|
774
|
-
title: `${
|
|
774
|
+
title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
|
|
775
775
|
props: e ? {
|
|
776
|
-
backgroundColor:
|
|
777
|
-
color:
|
|
778
|
-
headerColor:
|
|
779
|
-
headerBg:
|
|
776
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
777
|
+
color: I.value.table.th.color,
|
|
778
|
+
headerColor: I.value.table.th.color,
|
|
779
|
+
headerBg: I.value.table.th.backgroundColor,
|
|
780
780
|
isFullscreen: Q.value,
|
|
781
|
-
fullscreenParent:
|
|
781
|
+
fullscreenParent: M.value,
|
|
782
782
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
783
|
-
isCursorPointer:
|
|
783
|
+
isCursorPointer: rn.value
|
|
784
784
|
} : {
|
|
785
785
|
hideDetails: !0,
|
|
786
786
|
config: {
|
|
787
787
|
open: t,
|
|
788
788
|
maxHeight: 1e4,
|
|
789
789
|
body: {
|
|
790
|
-
backgroundColor:
|
|
791
|
-
color:
|
|
790
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
791
|
+
color: I.value.style.color
|
|
792
792
|
},
|
|
793
793
|
head: {
|
|
794
|
-
backgroundColor:
|
|
795
|
-
color:
|
|
794
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
795
|
+
color: I.value.style.color
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
800
|
});
|
|
801
|
-
ze(() =>
|
|
802
|
-
|
|
801
|
+
ze(() => z.value.showTable, async (e) => {
|
|
802
|
+
I.value.table.show || (e && I.value.table.useDialog && Ht.value ? (await ke(), Ht.value.open()) : "close" in Ht.value && Ht.value.close());
|
|
803
803
|
});
|
|
804
|
-
let { isResponsive: nr } = Se(
|
|
804
|
+
let { isResponsive: nr } = Se(zt, yn);
|
|
805
805
|
function rr() {
|
|
806
|
-
|
|
806
|
+
z.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
807
807
|
}
|
|
808
|
-
let ir = g(() =>
|
|
809
|
-
svg:
|
|
808
|
+
let ir = g(() => I.value.style.backgroundColor), ar = g(() => I.value.style.title), { isCallbackImaging: or, isCallbackSvg: sr, generateSvg: cr, onGenerateImage: lr } = de({
|
|
809
|
+
svg: R,
|
|
810
810
|
title: ar,
|
|
811
811
|
legend: null,
|
|
812
812
|
legendItems: null,
|
|
813
813
|
backgroundColor: ir,
|
|
814
|
-
getSvgCallback: () =>
|
|
815
|
-
generateImage:
|
|
814
|
+
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
815
|
+
generateImage: _n
|
|
816
816
|
});
|
|
817
817
|
async function ur() {
|
|
818
818
|
if (Mt("copyAlt", {
|
|
819
|
-
config:
|
|
819
|
+
config: I.value,
|
|
820
820
|
dataset: X.value
|
|
821
|
-
}), !
|
|
821
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
822
822
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
await Promise.resolve(
|
|
826
|
-
config:
|
|
825
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
826
|
+
config: I.value,
|
|
827
827
|
dataset: X.value
|
|
828
828
|
}));
|
|
829
829
|
}
|
|
@@ -843,13 +843,13 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
843
843
|
return n + t;
|
|
844
844
|
}
|
|
845
845
|
function pr() {
|
|
846
|
-
|
|
846
|
+
F.value = null, $t.value = null, nn.value = !0;
|
|
847
847
|
}
|
|
848
848
|
function mr() {
|
|
849
|
-
Rn(),
|
|
849
|
+
Rn(), nn.value = !1;
|
|
850
850
|
}
|
|
851
851
|
function hr(e) {
|
|
852
|
-
if (!
|
|
852
|
+
if (!R.value || Jn.value || document.activeElement !== R.value || !$.value.length) return;
|
|
853
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";
|
|
854
854
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
855
855
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
@@ -857,15 +857,15 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
859
|
if (a) {
|
|
860
|
-
if (
|
|
861
|
-
let e = $.value[
|
|
860
|
+
if (F.value === null) return;
|
|
861
|
+
let e = $.value[F.value];
|
|
862
862
|
if (!e) return;
|
|
863
863
|
Xn(e.cell, e.rowIndex);
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
|
-
let s =
|
|
866
|
+
let s = F.value === null ? null : $.value[F.value];
|
|
867
867
|
if (!s) {
|
|
868
|
-
let e =
|
|
868
|
+
let e = Lt.value ? $.value.findIndex((e) => e.cell.id === Lt.value) : null;
|
|
869
869
|
if (e !== null && e >= 0 && e < $.value.length) {
|
|
870
870
|
let a = $.value[e];
|
|
871
871
|
if (!a) return;
|
|
@@ -880,8 +880,8 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
880
880
|
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
881
881
|
let d = dr(o, s);
|
|
882
882
|
if (!d) return;
|
|
883
|
-
let f = fr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex,
|
|
884
|
-
Bn(d.cell, d.rowIndex, p,
|
|
883
|
+
let f = fr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, ee = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
884
|
+
Bn(d.cell, d.rowIndex, p, ee, "keyboard", f);
|
|
885
885
|
return;
|
|
886
886
|
}
|
|
887
887
|
let a = $.value[0];
|
|
@@ -901,18 +901,18 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
901
901
|
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
902
902
|
let p = dr(c, l);
|
|
903
903
|
if (!p) return;
|
|
904
|
-
let
|
|
905
|
-
Bn(p.cell, p.rowIndex,
|
|
904
|
+
let ee = fr(c, l), m = 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, m, te, "keyboard", ee);
|
|
906
906
|
}
|
|
907
907
|
let gr = g(() => ({
|
|
908
|
-
headers: [
|
|
909
|
-
rows: Y.value.xLabels.map((e, t) => [e, ...
|
|
908
|
+
headers: [I.value.table.colNames.xAxis, ...L.value.map((e) => e.name)],
|
|
909
|
+
rows: Y.value.xLabels.map((e, t) => [e, ...L.value.map((e) => {
|
|
910
910
|
let n = e.values?.[t];
|
|
911
|
-
return isNaN(n) ? "-" :
|
|
912
|
-
p:
|
|
911
|
+
return isNaN(n) ? "-" : o({
|
|
912
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
913
913
|
v: n,
|
|
914
|
-
s:
|
|
915
|
-
r:
|
|
914
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
915
|
+
r: I.value.table.td.roundingValue
|
|
916
916
|
});
|
|
917
917
|
})])
|
|
918
918
|
})), _r = g(() => ({
|
|
@@ -926,51 +926,51 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
926
926
|
return he({
|
|
927
927
|
getData: Zn,
|
|
928
928
|
getImage: Qn,
|
|
929
|
-
generatePdf:
|
|
929
|
+
generatePdf: gn,
|
|
930
930
|
generateCsv: Wn,
|
|
931
|
-
generateImage:
|
|
931
|
+
generateImage: _n,
|
|
932
932
|
generateSvg: cr,
|
|
933
933
|
toggleTable: Kn,
|
|
934
934
|
toggleTooltip: qn,
|
|
935
935
|
toggleAnnotator: Yn,
|
|
936
936
|
toggleFullscreen: Gn,
|
|
937
937
|
copyAlt: ur
|
|
938
|
-
}), (t, n) => (w(),
|
|
938
|
+
}), (t, n) => (w(), y("div", {
|
|
939
939
|
ref_key: "heatmapChart",
|
|
940
|
-
ref:
|
|
940
|
+
ref: M,
|
|
941
941
|
class: Ae(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
942
|
-
style: C(`font-family:${
|
|
943
|
-
id: `heatmap__${
|
|
944
|
-
onMouseenter: n[1] ||= () =>
|
|
942
|
+
style: C(`font-family:${I.value.style.fontFamily};width:100%;${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.backgroundColor}`),
|
|
943
|
+
id: `heatmap__${Pt.value}`,
|
|
944
|
+
onMouseenter: n[1] ||= () => fn(!0),
|
|
945
945
|
onMouseleave: n[2] ||= () => {
|
|
946
|
-
|
|
946
|
+
fn(!1), nn.value || Rn();
|
|
947
947
|
}
|
|
948
948
|
}, [
|
|
949
|
-
|
|
950
|
-
id: `chart-instructions-${
|
|
949
|
+
b("div", {
|
|
950
|
+
id: `chart-instructions-${Pt.value}`,
|
|
951
951
|
class: "sr-only"
|
|
952
|
-
}, [
|
|
953
|
-
gr.value?.rows?.length ? (w(),
|
|
952
|
+
}, [b("p", null, O(I.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
953
|
+
gr.value?.rows?.length ? (w(), _(ye, {
|
|
954
954
|
key: 0,
|
|
955
|
-
uid:
|
|
955
|
+
uid: Pt.value,
|
|
956
956
|
head: gr.value.headers,
|
|
957
957
|
body: gr.value.rows,
|
|
958
|
-
notice:
|
|
959
|
-
caption:
|
|
958
|
+
notice: I.value.a11y.translations.tableAvailable,
|
|
959
|
+
caption: I.value.a11y.translations.tableCaption
|
|
960
960
|
}, null, 8, [
|
|
961
961
|
"uid",
|
|
962
962
|
"head",
|
|
963
963
|
"body",
|
|
964
964
|
"notice",
|
|
965
965
|
"caption"
|
|
966
|
-
])) :
|
|
967
|
-
|
|
966
|
+
])) : v("", !0),
|
|
967
|
+
I.value.userOptions.buttons.annotator ? (w(), _(k(Tt), {
|
|
968
968
|
key: 1,
|
|
969
|
-
svgRef: k(
|
|
970
|
-
backgroundColor:
|
|
971
|
-
color:
|
|
969
|
+
svgRef: k(R),
|
|
970
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
971
|
+
color: I.value.style.color,
|
|
972
972
|
active: Jn.value,
|
|
973
|
-
isCursorPointer:
|
|
973
|
+
isCursorPointer: rn.value,
|
|
974
974
|
onClose: Yn
|
|
975
975
|
}, {
|
|
976
976
|
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -986,62 +986,62 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
986
986
|
"color",
|
|
987
987
|
"active",
|
|
988
988
|
"isCursorPointer"
|
|
989
|
-
])) :
|
|
990
|
-
|
|
989
|
+
])) : v("", !0),
|
|
990
|
+
vn.value ? (w(), y("div", {
|
|
991
991
|
key: 2,
|
|
992
992
|
ref_key: "noTitle",
|
|
993
|
-
ref:
|
|
993
|
+
ref: Gt,
|
|
994
994
|
class: "vue-data-ui-no-title-space",
|
|
995
995
|
style: "height:36px; width: 100%;background:transparent"
|
|
996
|
-
}, null, 512)) :
|
|
997
|
-
|
|
996
|
+
}, null, 512)) : v("", !0),
|
|
997
|
+
I.value.style.title.text ? (w(), y("div", {
|
|
998
998
|
key: 3,
|
|
999
999
|
ref_key: "chartTitle",
|
|
1000
|
-
ref:
|
|
1000
|
+
ref: Wt,
|
|
1001
1001
|
style: "width:100%;background:transparent"
|
|
1002
|
-
}, [(w(),
|
|
1003
|
-
key: `title_${
|
|
1002
|
+
}, [(w(), _(me, {
|
|
1003
|
+
key: `title_${Bt.value}`,
|
|
1004
1004
|
config: {
|
|
1005
1005
|
title: {
|
|
1006
1006
|
cy: "heatmap-div-title",
|
|
1007
|
-
...
|
|
1007
|
+
...I.value.style.title
|
|
1008
1008
|
},
|
|
1009
1009
|
subtitle: {
|
|
1010
1010
|
cy: "heatmap-div-subtitle",
|
|
1011
|
-
...
|
|
1011
|
+
...I.value.style.title.subtitle
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1015
|
-
|
|
1014
|
+
}, null, 8, ["config"]))], 512)) : v("", !0),
|
|
1015
|
+
I.value.userOptions.show && Nt.value && (k(dn) || k(ln)) ? (w(), _(k(Et), {
|
|
1016
1016
|
ref_key: "userOptionsRef",
|
|
1017
|
-
ref:
|
|
1018
|
-
key: `user_options_${
|
|
1019
|
-
backgroundColor:
|
|
1020
|
-
color:
|
|
1021
|
-
isImaging: k(
|
|
1022
|
-
isPrinting: k(
|
|
1023
|
-
uid:
|
|
1024
|
-
hasTooltip:
|
|
1025
|
-
hasPdf:
|
|
1026
|
-
hasImg:
|
|
1027
|
-
hasSvg:
|
|
1028
|
-
hasXls:
|
|
1029
|
-
hasTable:
|
|
1030
|
-
hasFullscreen:
|
|
1031
|
-
hasAltCopy:
|
|
1017
|
+
ref: Ut,
|
|
1018
|
+
key: `user_options_${Rt.value}`,
|
|
1019
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
1020
|
+
color: I.value.style.color,
|
|
1021
|
+
isImaging: k(hn),
|
|
1022
|
+
isPrinting: k(mn),
|
|
1023
|
+
uid: Pt.value,
|
|
1024
|
+
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
|
|
1025
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1026
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
1027
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
1028
|
+
hasXls: I.value.userOptions.buttons.csv,
|
|
1029
|
+
hasTable: I.value.userOptions.buttons.table,
|
|
1030
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1031
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1032
1032
|
isFullscreen: Q.value,
|
|
1033
|
-
isTooltip:
|
|
1034
|
-
titles: { ...
|
|
1035
|
-
chartElement:
|
|
1036
|
-
position:
|
|
1037
|
-
hasAnnotator:
|
|
1033
|
+
isTooltip: z.value.showTooltip,
|
|
1034
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
1035
|
+
chartElement: M.value,
|
|
1036
|
+
position: I.value.userOptions.position,
|
|
1037
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1038
1038
|
isAnnotation: Jn.value,
|
|
1039
|
-
callbacks:
|
|
1040
|
-
printScale:
|
|
1041
|
-
tableDialog:
|
|
1042
|
-
isCursorPointer:
|
|
1039
|
+
callbacks: I.value.userOptions.callbacks,
|
|
1040
|
+
printScale: I.value.userOptions.print.scale,
|
|
1041
|
+
tableDialog: I.value.table.useDialog,
|
|
1042
|
+
isCursorPointer: rn.value,
|
|
1043
1043
|
onToggleFullscreen: Gn,
|
|
1044
|
-
onGeneratePdf: k(
|
|
1044
|
+
onGeneratePdf: k(gn),
|
|
1045
1045
|
onGenerateCsv: Wn,
|
|
1046
1046
|
onGenerateImage: k(lr),
|
|
1047
1047
|
onGenerateSvg: k(cr),
|
|
@@ -1049,8 +1049,8 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1049
1049
|
onToggleTooltip: qn,
|
|
1050
1050
|
onToggleAnnotator: Yn,
|
|
1051
1051
|
onCopyAlt: ur,
|
|
1052
|
-
style: C({ visibility: k(
|
|
1053
|
-
},
|
|
1052
|
+
style: C({ visibility: k(dn) ? k(ln) ? "visible" : "hidden" : "visible" })
|
|
1053
|
+
}, we({ _: 2 }, [
|
|
1054
1054
|
t.$slots.menuIcon ? {
|
|
1055
1055
|
name: "menuIcon",
|
|
1056
1056
|
fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
|
|
@@ -1120,23 +1120,23 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1120
1120
|
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1121
1121
|
key: "11"
|
|
1122
1122
|
} : void 0
|
|
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("."))) :
|
|
1124
|
-
|
|
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("."))) : v("", !0),
|
|
1124
|
+
b("div", { class: Ae({
|
|
1125
1125
|
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1126
|
-
"vue-ui-heatmap-chart-wrapper-legend-right":
|
|
1126
|
+
"vue-ui-heatmap-chart-wrapper-legend-right": I.value.style.legend.show
|
|
1127
1127
|
}) }, [
|
|
1128
|
-
(w(),
|
|
1128
|
+
(w(), y("svg", {
|
|
1129
1129
|
ref_key: "svgRef",
|
|
1130
|
-
ref:
|
|
1131
|
-
xmlns: k(
|
|
1132
|
-
"aria-describedby": `chart-instructions-${
|
|
1130
|
+
ref: R,
|
|
1131
|
+
xmlns: k(te),
|
|
1132
|
+
"aria-describedby": `chart-instructions-${Pt.value}`,
|
|
1133
1133
|
class: Ae({
|
|
1134
1134
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1135
1135
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1136
1136
|
}),
|
|
1137
|
-
viewBox: `0 0 ${
|
|
1137
|
+
viewBox: `0 0 ${H.value.width} ${H.value.height}`,
|
|
1138
1138
|
width: "100%",
|
|
1139
|
-
style: C(`overflow: visible; background:transparent;color:${
|
|
1139
|
+
style: C(`overflow: visible; background:transparent;color:${I.value.style.color}`),
|
|
1140
1140
|
"aria-live": "polite",
|
|
1141
1141
|
role: "img",
|
|
1142
1142
|
preserveAspectRatio: "xMidYMid",
|
|
@@ -1145,57 +1145,57 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1145
1145
|
onBlur: mr,
|
|
1146
1146
|
onKeydown: hr
|
|
1147
1147
|
}, [
|
|
1148
|
-
|
|
1149
|
-
t.$slots["chart-background"] ? (w(),
|
|
1148
|
+
Ee(k(Dt)),
|
|
1149
|
+
t.$slots["chart-background"] ? (w(), y("foreignObject", {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
x: K.value.left,
|
|
1152
1152
|
y: K.value.top,
|
|
1153
1153
|
width: K.value.width,
|
|
1154
1154
|
height: K.value.height,
|
|
1155
1155
|
style: { pointerEvents: "none" }
|
|
1156
|
-
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) :
|
|
1157
|
-
|
|
1156
|
+
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : v("", !0),
|
|
1157
|
+
I.value.style.layout.cells.columnTotal.color.show ? (w(), y("g", {
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
ref_key: "xAxisSumRects",
|
|
1160
|
-
ref:
|
|
1161
|
-
}, [(w(!0),
|
|
1160
|
+
ref: Zt
|
|
1161
|
+
}, [(w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1162
1162
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1163
|
-
y: K.value.top - K.value.sumCellXHeight + G.value * (
|
|
1163
|
+
y: K.value.top - K.value.sumCellXHeight + G.value * (H.value.height / H.value.width),
|
|
1164
1164
|
height: K.value.sumCellXHeight,
|
|
1165
1165
|
width: K.value.cellSize.width - G.value,
|
|
1166
|
-
fill:
|
|
1167
|
-
stroke:
|
|
1166
|
+
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1167
|
+
stroke: I.value.style.backgroundColor,
|
|
1168
1168
|
"stroke-width": G.value
|
|
1169
|
-
}, null, 8, Ze))), 256)), (w(!0),
|
|
1169
|
+
}, null, 8, Ze))), 256)), (w(!0), y(h, null, E(Y.value.xTotals, (e, t) => (w(), y("rect", {
|
|
1170
1170
|
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1171
|
-
y: K.value.top - K.value.sumCellXHeight + G.value * (
|
|
1171
|
+
y: K.value.top - K.value.sumCellXHeight + G.value * (H.value.height / H.value.width),
|
|
1172
1172
|
height: K.value.sumCellXHeight,
|
|
1173
1173
|
width: K.value.cellSize.width - G.value,
|
|
1174
1174
|
fill: e.color,
|
|
1175
|
-
stroke:
|
|
1175
|
+
stroke: I.value.style.backgroundColor,
|
|
1176
1176
|
"stroke-width": G.value
|
|
1177
|
-
}, null, 8, Qe))), 256))], 512)) :
|
|
1178
|
-
|
|
1177
|
+
}, null, 8, Qe))), 256))], 512)) : v("", !0),
|
|
1178
|
+
b("g", {
|
|
1179
1179
|
ref_key: "datapoints",
|
|
1180
|
-
ref:
|
|
1181
|
-
}, [(w(!0),
|
|
1182
|
-
|
|
1180
|
+
ref: Vt
|
|
1181
|
+
}, [(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, [
|
|
1182
|
+
b("rect", {
|
|
1183
1183
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1184
1184
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1185
1185
|
width: K.value.cellSize.width - G.value,
|
|
1186
1186
|
height: K.value.cellSize.height - G.value,
|
|
1187
|
-
fill:
|
|
1188
|
-
stroke:
|
|
1187
|
+
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1188
|
+
stroke: I.value.style.backgroundColor,
|
|
1189
1189
|
"stroke-width": G.value
|
|
1190
1190
|
}, null, 8, $e),
|
|
1191
|
-
|
|
1191
|
+
b("rect", {
|
|
1192
1192
|
"data-a11y-cell-id": e.id,
|
|
1193
1193
|
x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
|
|
1194
1194
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1195
1195
|
width: K.value.cellSize.width - G.value,
|
|
1196
1196
|
height: K.value.cellSize.height - G.value,
|
|
1197
1197
|
fill: e.color,
|
|
1198
|
-
stroke:
|
|
1198
|
+
stroke: I.value.style.backgroundColor,
|
|
1199
1199
|
"stroke-width": G.value,
|
|
1200
1200
|
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1201
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)),
|
|
@@ -1205,239 +1205,239 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1205
1205
|
}),
|
|
1206
1206
|
onClick: () => Xn(e, t)
|
|
1207
1207
|
}, null, 40, et),
|
|
1208
|
-
|
|
1208
|
+
I.value.style.layout.cells.value.show ? Ve((w(), y("text", {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
"text-anchor": "middle",
|
|
1211
|
-
"font-size":
|
|
1212
|
-
"font-weight":
|
|
1213
|
-
fill: k(
|
|
1211
|
+
"font-size": I.value.style.layout.cells.value.fontSize,
|
|
1212
|
+
"font-weight": I.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1213
|
+
fill: k(m)(e.color),
|
|
1214
1214
|
x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1215
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 +
|
|
1215
|
+
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.cells.value.fontSize / 3,
|
|
1216
1216
|
style: {
|
|
1217
1217
|
pointerEvents: "none",
|
|
1218
1218
|
userSelect: "none"
|
|
1219
1219
|
}
|
|
1220
|
-
}, [
|
|
1221
|
-
p:
|
|
1220
|
+
}, [Te(O(k(u)(I.value.style.layout.cells.value.formatter, e.value, k(o)({
|
|
1221
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1222
1222
|
v: e.value,
|
|
1223
|
-
s:
|
|
1224
|
-
r:
|
|
1223
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1224
|
+
r: I.value.style.layout.cells.value.roundingValue
|
|
1225
1225
|
}), { datapoint: e })), 1)], 8, tt)), [[k(We), {
|
|
1226
1226
|
cellWidth: K.value.cellSize.width - G.value,
|
|
1227
1227
|
cellHeight: K.value.cellSize.height - G.value,
|
|
1228
|
-
maxFontSize:
|
|
1228
|
+
maxFontSize: I.value.style.layout.cells.value.fontSize,
|
|
1229
1229
|
minFontSize: 10,
|
|
1230
|
-
index: t *
|
|
1230
|
+
index: t * V.value + n,
|
|
1231
1231
|
reportHide: In,
|
|
1232
1232
|
reportRotation: Nn,
|
|
1233
1233
|
hideAll: Fn.value,
|
|
1234
1234
|
rotateAll: Mn.value
|
|
1235
|
-
}]]) :
|
|
1235
|
+
}]]) : v("", !0)
|
|
1236
1236
|
]))), 256))], 64))), 256))], 512),
|
|
1237
|
-
|
|
1237
|
+
I.value.style.layout.cells.rowTotal.color.show ? (w(), y("g", {
|
|
1238
1238
|
key: 2,
|
|
1239
1239
|
ref_key: "yAxisSumRects",
|
|
1240
|
-
ref:
|
|
1241
|
-
}, [(w(!0),
|
|
1240
|
+
ref: Jt
|
|
1241
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("rect", {
|
|
1242
1242
|
x: K.value.left,
|
|
1243
1243
|
y: K.value.top + K.value.cellSize.height * t,
|
|
1244
1244
|
width: K.value.sumCellXHeight,
|
|
1245
1245
|
height: K.value.cellSize.height - G.value,
|
|
1246
|
-
fill:
|
|
1247
|
-
stroke:
|
|
1246
|
+
fill: I.value.style.layout.cells.colors.underlayer,
|
|
1247
|
+
stroke: I.value.style.backgroundColor,
|
|
1248
1248
|
"stroke-width": G.value
|
|
1249
|
-
}, null, 8, nt),
|
|
1249
|
+
}, null, 8, nt), b("rect", {
|
|
1250
1250
|
x: K.value.left,
|
|
1251
1251
|
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1252
1252
|
width: K.value.sumCellXHeight,
|
|
1253
1253
|
height: K.value.cellSize.height - G.value,
|
|
1254
1254
|
fill: Y.value.yTotals[t].color,
|
|
1255
|
-
stroke:
|
|
1255
|
+
stroke: I.value.style.backgroundColor,
|
|
1256
1256
|
"stroke-width": G.value
|
|
1257
|
-
}, null, 8, rt)], 64))), 256))], 512)) :
|
|
1258
|
-
|
|
1257
|
+
}, null, 8, rt)], 64))), 256))], 512)) : v("", !0),
|
|
1258
|
+
I.value.style.layout.dataLabels.yAxis.show ? (w(), y("g", {
|
|
1259
1259
|
key: 3,
|
|
1260
1260
|
ref_key: "yAxisLabels",
|
|
1261
|
-
ref:
|
|
1262
|
-
}, [(w(!0),
|
|
1261
|
+
ref: qt
|
|
1262
|
+
}, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), y(h, null, [b("text", {
|
|
1263
1263
|
class: "vue-ui-heatmap-row-name",
|
|
1264
|
-
"font-size":
|
|
1265
|
-
fill:
|
|
1264
|
+
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1265
|
+
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1266
1266
|
x: W.value,
|
|
1267
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 +
|
|
1267
|
+
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.dataLabels.yAxis.fontSize / 3 + I.value.style.layout.dataLabels.yAxis.offsetY - (I.value.style.layout.cells.rowTotal.value.show ? I.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
1268
1268
|
"text-anchor": "end",
|
|
1269
|
-
"font-weight":
|
|
1270
|
-
}, O(Y.value.yLabels[t]), 9, it),
|
|
1269
|
+
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1270
|
+
}, O(Y.value.yLabels[t]), 9, it), I.value.style.layout.cells.rowTotal.value.show ? (w(), y("text", {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
class: "vue-ui-heatmap-row-total",
|
|
1273
|
-
"font-size":
|
|
1274
|
-
fill:
|
|
1273
|
+
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1274
|
+
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1275
1275
|
x: W.value,
|
|
1276
|
-
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 +
|
|
1276
|
+
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.style.layout.dataLabels.yAxis.fontSize + I.value.style.layout.dataLabels.yAxis.offsetY,
|
|
1277
1277
|
"text-anchor": "end",
|
|
1278
|
-
"font-weight":
|
|
1279
|
-
}, O(Hn(t)), 9, at)) :
|
|
1280
|
-
|
|
1278
|
+
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1279
|
+
}, O(Hn(t)), 9, at)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1280
|
+
I.value.style.layout.dataLabels.xAxis.show ? (w(), y("g", {
|
|
1281
1281
|
key: 4,
|
|
1282
1282
|
ref_key: "xAxisLabels",
|
|
1283
|
-
ref:
|
|
1284
|
-
}, [(w(!0),
|
|
1283
|
+
ref: Yt
|
|
1284
|
+
}, [(w(!0), y(h, null, E(Y.value.xLabels, (e, t) => (w(), y(h, null, [!I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && t % I.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (w(), y("text", {
|
|
1285
1285
|
key: 0,
|
|
1286
1286
|
class: "vue-ui-heatmap-col-name",
|
|
1287
|
-
"text-anchor":
|
|
1288
|
-
"font-size":
|
|
1289
|
-
fill:
|
|
1290
|
-
"font-weight":
|
|
1291
|
-
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t +
|
|
1292
|
-
}, O(e), 9, ot)) :
|
|
1293
|
-
|
|
1287
|
+
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
1288
|
+
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1289
|
+
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1290
|
+
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1291
|
+
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.style.layout.dataLabels.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1292
|
+
}, O(e), 9, ot)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1293
|
+
I.value.style.layout.cells.columnTotal.value.show ? (w(), y("g", {
|
|
1294
1294
|
key: 5,
|
|
1295
1295
|
ref_key: "xAxisSums",
|
|
1296
|
-
ref:
|
|
1297
|
-
}, [(w(!0),
|
|
1296
|
+
ref: Xt
|
|
1297
|
+
}, [(w(!0), y(h, null, E(Y.value.xLabels, (e, t) => (w(), y("text", {
|
|
1298
1298
|
class: "vue-ui-heatmap-col-total",
|
|
1299
|
-
"text-anchor":
|
|
1300
|
-
"font-size":
|
|
1301
|
-
fill:
|
|
1302
|
-
"font-weight":
|
|
1303
|
-
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t +
|
|
1304
|
-
}, O(Un(t)), 9, st))), 256))], 512)) :
|
|
1305
|
-
|
|
1299
|
+
"text-anchor": I.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : I.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1300
|
+
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1301
|
+
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1302
|
+
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1303
|
+
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.style.layout.dataLabels.xAxis.offsetX + I.value.style.layout.cells.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${I.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1304
|
+
}, O(Un(t)), 9, st))), 256))], 512)) : v("", !0),
|
|
1305
|
+
N.value ? (w(), y("g", ct, [b("rect", {
|
|
1306
1306
|
style: { "pointer-events": "none" },
|
|
1307
|
-
x:
|
|
1308
|
-
y:
|
|
1309
|
-
width: K.value.cellSize.width - G.value +
|
|
1310
|
-
height: K.value.cellSize.height - G.value +
|
|
1307
|
+
x: N.value.x - I.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1308
|
+
y: N.value.y - I.value.style.layout.cells.selected.border / 2 + G.value,
|
|
1309
|
+
width: K.value.cellSize.width - G.value + I.value.style.layout.cells.selected.border - G.value,
|
|
1310
|
+
height: K.value.cellSize.height - G.value + I.value.style.layout.cells.selected.border - G.value,
|
|
1311
1311
|
fill: "transparent",
|
|
1312
|
-
stroke:
|
|
1313
|
-
"stroke-width":
|
|
1312
|
+
stroke: I.value.style.layout.cells.selected.color,
|
|
1313
|
+
"stroke-width": I.value.style.layout.cells.selected.border,
|
|
1314
1314
|
rx: 1
|
|
1315
|
-
}, null, 8, lt)])) :
|
|
1316
|
-
|
|
1315
|
+
}, null, 8, lt)])) : v("", !0),
|
|
1316
|
+
I.value.style.layout.crosshairs.show && N.value ? (w(), y("g", ut, [b("line", {
|
|
1317
1317
|
x1: K.value.left + K.value.sumCellXHeight,
|
|
1318
|
-
x2:
|
|
1319
|
-
y1:
|
|
1320
|
-
y2:
|
|
1321
|
-
stroke:
|
|
1322
|
-
"stroke-width":
|
|
1323
|
-
"stroke-dasharray":
|
|
1318
|
+
x2: N.value.x + K.value.sumCellXHeight,
|
|
1319
|
+
y1: N.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1320
|
+
y2: N.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1321
|
+
stroke: I.value.style.layout.crosshairs.stroke,
|
|
1322
|
+
"stroke-width": I.value.style.layout.crosshairs.strokeWidth,
|
|
1323
|
+
"stroke-dasharray": I.value.style.layout.crosshairs.strokeDasharray,
|
|
1324
1324
|
"stroke-linecap": "round"
|
|
1325
|
-
}, null, 8, dt),
|
|
1326
|
-
x1:
|
|
1327
|
-
x2:
|
|
1328
|
-
y1:
|
|
1325
|
+
}, null, 8, dt), b("line", {
|
|
1326
|
+
x1: N.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1327
|
+
x2: N.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1328
|
+
y1: N.value.y,
|
|
1329
1329
|
y2: K.value.top,
|
|
1330
|
-
stroke:
|
|
1331
|
-
"stroke-width":
|
|
1332
|
-
"stroke-dasharray":
|
|
1330
|
+
stroke: I.value.style.layout.crosshairs.stroke,
|
|
1331
|
+
"stroke-width": I.value.style.layout.crosshairs.strokeWidth,
|
|
1332
|
+
"stroke-dasharray": I.value.style.layout.crosshairs.strokeDasharray,
|
|
1333
1333
|
"stroke-linecap": "round"
|
|
1334
|
-
}, null, 8, ft)])) :
|
|
1334
|
+
}, null, 8, ft)])) : v("", !0),
|
|
1335
1335
|
D(t.$slots, "svg", { svg: {
|
|
1336
|
-
...
|
|
1336
|
+
...H.value,
|
|
1337
1337
|
drawingArea: K.value,
|
|
1338
|
-
isPrintingImg: k(
|
|
1338
|
+
isPrintingImg: k(mn) || k(hn) || k(or),
|
|
1339
1339
|
isPrintingSvg: k(sr)
|
|
1340
1340
|
} }, void 0, !0)
|
|
1341
1341
|
], 46, Ye)),
|
|
1342
|
-
|
|
1342
|
+
I.value.style.legend.show ? (w(), y("div", {
|
|
1343
1343
|
key: 0,
|
|
1344
1344
|
ref_key: "legendRight",
|
|
1345
|
-
ref:
|
|
1345
|
+
ref: Kt,
|
|
1346
1346
|
class: "vue-ui-heatmap-legend-right",
|
|
1347
|
-
style: C({ "--legend-width":
|
|
1347
|
+
style: C({ "--legend-width": I.value.style.legend.width + "px" })
|
|
1348
1348
|
}, [
|
|
1349
|
-
k(
|
|
1349
|
+
k(sn) ? v("", !0) : (w(), y("div", {
|
|
1350
1350
|
key: 0,
|
|
1351
1351
|
class: "vue-ui-heatmap-legend-label-max",
|
|
1352
1352
|
style: C({
|
|
1353
|
-
fontSize:
|
|
1354
|
-
color:
|
|
1353
|
+
fontSize: I.value.style.legend.fontSize + "px",
|
|
1354
|
+
color: I.value.style.legend.color
|
|
1355
1355
|
})
|
|
1356
|
-
}, O(k(
|
|
1357
|
-
p:
|
|
1358
|
-
v: k(
|
|
1359
|
-
s:
|
|
1360
|
-
r:
|
|
1356
|
+
}, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(q.value), k(o)({
|
|
1357
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1358
|
+
v: k(c)(q.value),
|
|
1359
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1360
|
+
r: I.value.style.legend.roundingValue
|
|
1361
1361
|
}))), 5)),
|
|
1362
|
-
|
|
1362
|
+
b("div", pt, [b("div", {
|
|
1363
1363
|
class: "vue-ui-heatmap-gauge",
|
|
1364
|
-
style: C({ background: `linear-gradient(to bottom, ${
|
|
1365
|
-
}, [Ve(
|
|
1364
|
+
style: C({ background: `linear-gradient(to bottom, ${I.value.style.layout.cells.colors.hot}, ${I.value.style.layout.cells.colors.cold})` })
|
|
1365
|
+
}, [Ve(b("div", {
|
|
1366
1366
|
class: "vue-ui-heatmap-gauge-indicator",
|
|
1367
|
-
"data-value": k(
|
|
1368
|
-
p:
|
|
1369
|
-
v: k(
|
|
1370
|
-
s:
|
|
1371
|
-
r:
|
|
1367
|
+
"data-value": k(u)(I.value.style.layout.cells.value.formatter, k(c)(Z.value), k(o)({
|
|
1368
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1369
|
+
v: k(c)(Z.value),
|
|
1370
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1371
|
+
r: I.value.style.legend.roundingValue
|
|
1372
1372
|
})),
|
|
1373
1373
|
style: C({
|
|
1374
1374
|
position: "absolute",
|
|
1375
1375
|
width: "100%",
|
|
1376
1376
|
height: "2px",
|
|
1377
|
-
background: [void 0, null].includes(Z.value) ? "transparent" : k(
|
|
1377
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : k(m)(Ln.value.datapoint.color),
|
|
1378
1378
|
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1379
1379
|
transition: "all 0.2s ease-in-out",
|
|
1380
|
-
"--background-color":
|
|
1381
|
-
"--gauge-arrow-color": k(
|
|
1382
|
-
"--gauge-arrow-text-color": k(
|
|
1380
|
+
"--background-color": I.value.style.backgroundColor,
|
|
1381
|
+
"--gauge-arrow-color": k(m)(I.value.style.backgroundColor),
|
|
1382
|
+
"--gauge-arrow-text-color": k(m)(I.value.style.backgroundColor),
|
|
1383
1383
|
"--gauge-arrow-value": Z.value,
|
|
1384
|
-
"--gauge-arrow-font-size":
|
|
1384
|
+
"--gauge-arrow-font-size": I.value.style.legend.fontSize + "px"
|
|
1385
1385
|
})
|
|
1386
|
-
}, [
|
|
1387
|
-
p:
|
|
1388
|
-
v: k(
|
|
1389
|
-
s:
|
|
1390
|
-
r:
|
|
1386
|
+
}, [b("div", ht, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(Z.value), k(o)({
|
|
1387
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1388
|
+
v: k(c)(Z.value),
|
|
1389
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1390
|
+
r: I.value.style.legend.roundingValue
|
|
1391
1391
|
}))), 1)], 12, mt), [[Re, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1392
|
-
k(
|
|
1392
|
+
k(sn) ? v("", !0) : (w(), y("div", {
|
|
1393
1393
|
key: 1,
|
|
1394
1394
|
class: "vue-ui-heatmap-legend-label-min",
|
|
1395
1395
|
style: C({
|
|
1396
|
-
fontSize:
|
|
1397
|
-
color:
|
|
1396
|
+
fontSize: I.value.style.legend.fontSize + "px",
|
|
1397
|
+
color: I.value.style.legend.color
|
|
1398
1398
|
})
|
|
1399
|
-
}, O(k(
|
|
1400
|
-
p:
|
|
1401
|
-
v: k(
|
|
1402
|
-
s:
|
|
1403
|
-
r:
|
|
1399
|
+
}, O(k(u)(I.value.style.layout.cells.value.formatter, k(c)(Tn.value), k(o)({
|
|
1400
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1401
|
+
v: k(c)(Tn.value),
|
|
1402
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1403
|
+
r: I.value.style.legend.roundingValue
|
|
1404
1404
|
}))), 5))
|
|
1405
|
-
], 4)) :
|
|
1406
|
-
t.$slots.hint ? (w(),
|
|
1407
|
-
hint:
|
|
1408
|
-
isVisible:
|
|
1409
|
-
})), void 0, !0)])) :
|
|
1405
|
+
], 4)) : v("", !0),
|
|
1406
|
+
t.$slots.hint ? (w(), y("div", gt, [D(t.$slots, "hint", S(x({
|
|
1407
|
+
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1408
|
+
isVisible: nn.value
|
|
1409
|
+
})), void 0, !0)])) : v("", !0)
|
|
1410
1410
|
], 2),
|
|
1411
|
-
t.$slots.watermark ? (w(),
|
|
1412
|
-
t.$slots.source ? (w(),
|
|
1411
|
+
t.$slots.watermark ? (w(), y("div", _t, [D(t.$slots, "watermark", S(x({ isPrinting: k(mn) || k(hn) || k(or) || k(sr) })), void 0, !0)])) : v("", !0),
|
|
1412
|
+
t.$slots.source ? (w(), y("div", {
|
|
1413
1413
|
key: 6,
|
|
1414
1414
|
ref_key: "source",
|
|
1415
|
-
ref:
|
|
1415
|
+
ref: Qt,
|
|
1416
1416
|
dir: "auto"
|
|
1417
|
-
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1418
|
-
|
|
1419
|
-
teleportTo:
|
|
1420
|
-
show:
|
|
1421
|
-
backgroundColor:
|
|
1422
|
-
color:
|
|
1423
|
-
borderRadius:
|
|
1424
|
-
borderColor:
|
|
1425
|
-
borderWidth:
|
|
1426
|
-
fontSize:
|
|
1427
|
-
backgroundOpacity:
|
|
1428
|
-
position:
|
|
1429
|
-
offsetX:
|
|
1430
|
-
offsetY:
|
|
1431
|
-
parent:
|
|
1432
|
-
content:
|
|
1417
|
+
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
1418
|
+
Ee(k(Ke), {
|
|
1419
|
+
teleportTo: I.value.style.tooltip.teleportTo,
|
|
1420
|
+
show: z.value.showTooltip && Ft.value,
|
|
1421
|
+
backgroundColor: I.value.style.tooltip.backgroundColor,
|
|
1422
|
+
color: I.value.style.tooltip.color,
|
|
1423
|
+
borderRadius: I.value.style.tooltip.borderRadius,
|
|
1424
|
+
borderColor: I.value.style.tooltip.borderColor,
|
|
1425
|
+
borderWidth: I.value.style.tooltip.borderWidth,
|
|
1426
|
+
fontSize: I.value.style.tooltip.fontSize,
|
|
1427
|
+
backgroundOpacity: I.value.style.tooltip.backgroundOpacity,
|
|
1428
|
+
position: I.value.style.tooltip.position,
|
|
1429
|
+
offsetX: I.value.style.tooltip.offsetX,
|
|
1430
|
+
offsetY: I.value.style.tooltip.offsetY,
|
|
1431
|
+
parent: M.value,
|
|
1432
|
+
content: It.value,
|
|
1433
1433
|
isFullscreen: Q.value,
|
|
1434
|
-
isCustom:
|
|
1435
|
-
smooth:
|
|
1436
|
-
backdropFilter:
|
|
1437
|
-
smoothForce:
|
|
1438
|
-
smoothSnapThreshold:
|
|
1439
|
-
isA11yMode:
|
|
1440
|
-
a11yPosition:
|
|
1434
|
+
isCustom: I.value.style.tooltip.customFormat && typeof I.value.style.tooltip.customFormat == "function",
|
|
1435
|
+
smooth: I.value.style.tooltip.smooth,
|
|
1436
|
+
backdropFilter: I.value.style.tooltip.backdropFilter,
|
|
1437
|
+
smoothForce: I.value.style.tooltip.smoothForce,
|
|
1438
|
+
smoothSnapThreshold: I.value.style.tooltip.smoothSnapThreshold,
|
|
1439
|
+
isA11yMode: tn.value === "keyboard",
|
|
1440
|
+
a11yPosition: en.value
|
|
1441
1441
|
}, {
|
|
1442
1442
|
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...Ln.value })), void 0, !0)]),
|
|
1443
1443
|
tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...Ln.value })), void 0, !0)]),
|
|
@@ -1467,84 +1467,84 @@ var Ke = /* @__PURE__ */ e({ default: () => wt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1467
1467
|
"isA11yMode",
|
|
1468
1468
|
"a11yPosition"
|
|
1469
1469
|
]),
|
|
1470
|
-
Nt.value &&
|
|
1470
|
+
Nt.value && I.value.userOptions.buttons.table ? (w(), _(Pe(tr.value.component), Oe({ key: 7 }, tr.value.props, {
|
|
1471
1471
|
ref_key: "tableUnit",
|
|
1472
|
-
ref:
|
|
1472
|
+
ref: Ht,
|
|
1473
1473
|
onClose: rr
|
|
1474
|
-
}),
|
|
1475
|
-
content: A(() => [
|
|
1474
|
+
}), we({
|
|
1475
|
+
content: A(() => [b("div", {
|
|
1476
1476
|
ref_key: "tableContainer",
|
|
1477
|
-
ref:
|
|
1477
|
+
ref: zt,
|
|
1478
1478
|
class: "vue-ui-heatmap-table atom-data-table",
|
|
1479
|
-
style: C(`${
|
|
1480
|
-
}, [
|
|
1481
|
-
style: C(`width:100%;overflow-x:auto;position:relative;${
|
|
1479
|
+
style: C(`${I.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1480
|
+
}, [b("div", {
|
|
1481
|
+
style: C(`width:100%;overflow-x:auto;position:relative;${I.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1482
1482
|
class: Ae({ "vue-ui-responsive": k(nr) })
|
|
1483
|
-
}, [
|
|
1483
|
+
}, [I.value.table.useDialog ? v("", !0) : (w(), y("div", {
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
role: "button",
|
|
1486
1486
|
tabindex: "0",
|
|
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:${
|
|
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:${I.value.table.th.backgroundColor};`),
|
|
1488
1488
|
onClick: rr,
|
|
1489
1489
|
onKeypress: He(rr, ["enter"])
|
|
1490
|
-
}, [
|
|
1490
|
+
}, [Ee(k(wt), {
|
|
1491
1491
|
name: "close",
|
|
1492
|
-
stroke:
|
|
1492
|
+
stroke: I.value.table.th.color,
|
|
1493
1493
|
"stroke-width": 2
|
|
1494
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1495
|
-
|
|
1494
|
+
}, null, 8, ["stroke"])], 36)), b("table", vt, [
|
|
1495
|
+
I.value.table.useDialog ? v("", !0) : (w(), y("caption", {
|
|
1496
1496
|
key: 0,
|
|
1497
|
-
style: C(`backgroundColor:${
|
|
1498
|
-
}, [
|
|
1499
|
-
|
|
1497
|
+
style: C(`backgroundColor:${I.value.table.th.backgroundColor};color:${I.value.table.th.color};outline:${I.value.table.th.outline}`)
|
|
1498
|
+
}, [Te(O(I.value.style.title.text) + " ", 1), I.value.style.title.subtitle.text ? (w(), y("span", yt, O(I.value.style.title.subtitle.text), 1)) : v("", !0)], 4)),
|
|
1499
|
+
b("thead", null, [b("tr", {
|
|
1500
1500
|
role: "row",
|
|
1501
|
-
style: C(`background:${
|
|
1502
|
-
}, [
|
|
1501
|
+
style: C(`background:${I.value.table.th.backgroundColor};color:${I.value.table.th.color}`)
|
|
1502
|
+
}, [b("th", { style: C(`outline:${I.value.table.th.outline};padding-right:6px`) }, null, 4), (w(!0), y(h, null, E(e.dataset, (e, t) => (w(), y("th", {
|
|
1503
1503
|
align: "right",
|
|
1504
|
-
style: C(`outline:${
|
|
1504
|
+
style: C(`outline:${I.value.table.th.outline};padding-right:6px`)
|
|
1505
1505
|
}, O(e.name), 5))), 256))], 4)]),
|
|
1506
|
-
|
|
1506
|
+
b("tbody", null, [(w(!0), y(h, null, E(Y.value.xLabels, (t, n) => (w(), y("tr", {
|
|
1507
1507
|
role: "row",
|
|
1508
1508
|
class: Ae({
|
|
1509
1509
|
"vue-ui-data-table__tbody__row": !0,
|
|
1510
1510
|
"vue-ui-data-table__tbody__row-even": n % 2 == 0,
|
|
1511
1511
|
"vue-ui-data-table__tbody__row-odd": n % 2 != 0
|
|
1512
1512
|
}),
|
|
1513
|
-
style: C(`background:${
|
|
1514
|
-
}, [
|
|
1515
|
-
"data-cell":
|
|
1513
|
+
style: C(`background:${I.value.table.td.backgroundColor};color:${I.value.table.td.color}`)
|
|
1514
|
+
}, [b("td", {
|
|
1515
|
+
"data-cell": I.value.table.colNames.xAxis,
|
|
1516
1516
|
class: "vue-ui-data-table__tbody__td",
|
|
1517
|
-
style: C(`outline:${
|
|
1518
|
-
}, [
|
|
1517
|
+
style: C(`outline:${I.value.table.td.outline}`)
|
|
1518
|
+
}, [b("div", xt, O(t), 1)], 12, bt), (w(!0), y(h, null, E(e.dataset, (t, r) => (w(), y("td", {
|
|
1519
1519
|
class: "vue-ui-data-table__tbody__td",
|
|
1520
1520
|
"data-cell": e.dataset[r].name,
|
|
1521
|
-
style: C(`outline:${
|
|
1522
|
-
}, [
|
|
1523
|
-
p:
|
|
1521
|
+
style: C(`outline:${I.value.table.td.outline}`)
|
|
1522
|
+
}, [b("div", Ct, O(isNaN(t.values[n]) ? "-" : k(o)({
|
|
1523
|
+
p: I.value.style.layout.dataLabels.prefix,
|
|
1524
1524
|
v: t.values[n],
|
|
1525
|
-
s:
|
|
1526
|
-
r:
|
|
1525
|
+
s: I.value.style.layout.dataLabels.suffix,
|
|
1526
|
+
r: I.value.table.td.roundingValue
|
|
1527
1527
|
})), 1)], 12, St))), 256))], 6))), 256))])
|
|
1528
1528
|
])], 6)], 4)]),
|
|
1529
1529
|
_: 2
|
|
1530
|
-
}, [
|
|
1530
|
+
}, [I.value.table.useDialog ? {
|
|
1531
1531
|
name: "title",
|
|
1532
|
-
fn: A(() => [
|
|
1532
|
+
fn: A(() => [Te(O(tr.value.title), 1)]),
|
|
1533
1533
|
key: "0"
|
|
1534
|
-
} : void 0,
|
|
1534
|
+
} : void 0, I.value.table.useDialog ? {
|
|
1535
1535
|
name: "actions",
|
|
1536
|
-
fn: A(() => [
|
|
1536
|
+
fn: A(() => [b("button", {
|
|
1537
1537
|
tabindex: "0",
|
|
1538
1538
|
class: "vue-ui-user-options-button",
|
|
1539
|
-
onClick: n[0] ||= (e) => Wn(
|
|
1540
|
-
style: C({ cursor:
|
|
1541
|
-
}, [
|
|
1539
|
+
onClick: n[0] ||= (e) => Wn(I.value.userOptions.callbacks.csv),
|
|
1540
|
+
style: C({ cursor: rn.value ? "pointer" : "default" })
|
|
1541
|
+
}, [Ee(k(wt), {
|
|
1542
1542
|
name: "fileCsv",
|
|
1543
1543
|
stroke: tr.value.props.color
|
|
1544
1544
|
}, null, 8, ["stroke"])], 4)]),
|
|
1545
1545
|
key: "1"
|
|
1546
|
-
} : void 0]), 1040)) :
|
|
1547
|
-
D(t.$slots, "skeleton", {}, () => [k(
|
|
1546
|
+
} : void 0]), 1040)) : v("", !0),
|
|
1547
|
+
D(t.$slots, "skeleton", {}, () => [k(sn) ? (w(), _(ce, { key: 0 })) : v("", !0)], !0)
|
|
1548
1548
|
], 46, qe));
|
|
1549
1549
|
}
|
|
1550
1550
|
}, [["__scopeId", "data-v-9e3f53ee"]]);
|