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