vue-data-ui 3.26.4 → 3.27.0

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.
Files changed (200) hide show
  1. package/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
  95. package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +212 -60
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
  184. package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
  185. package/dist/vue-ui-funnel-eVH871L3.js +0 -749
  186. package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
  187. package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
  189. package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
  190. package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
  192. package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
  193. package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
  194. package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
  195. package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
  197. package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
  198. package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
  200. package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
@@ -1,1613 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Et as r, Rt as i, X as a, at as o, b as s, et as c, ft as l, i as u, nt as d, r as f, rn as p, t as ee, tn as te, vt as ne, wt as re } from "./lib-DTiqmM1G.js";
3
- import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
4
- import { t as oe } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as se } from "./useConfig-DObkR9Aa.js";
6
- import { t as ce } from "./usePrinter-R2nu9g4B.js";
7
- import { n as le, t as ue } from "./BaseScanner-Dzc8VT3j.js";
8
- import { t as de } from "./useNestedProp-D8cRQaVo.js";
9
- import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as pe } from "./useChartExport-iwOqiIWX.js";
11
- import { t as me } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as he } from "./img--C0otIB0.js";
13
- import { n as ge } from "./Title-B4UpMerH.js";
14
- import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
16
- import { t as be } from "./vue-ui-accordion-CxMo-mXC.js";
17
- import { t as xe } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as we } from "./useTableResponsive-BAqJPR68.js";
21
- import { t as Te } from "./vue_ui_heatmap-B2BBBSWG.js";
22
- import { Fragment as m, computed as h, createBlock as Ee, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as y, mergeProps as je, nextTick as Me, normalizeClass as Ne, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Pe, onMounted as Fe, openBlock as S, reactive as Ie, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as E, toRefs as ze, unref as D, useCssVars as Be, vShow as Ve, watch as He, watchEffect as Ue, withCtx as O, withDirectives as We, withKeys as Ge } from "vue";
23
- //#region src/useLabelObserverEfffect.js
24
- function Ke({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
25
- if (r) return;
26
- let o = (e) => {
27
- if (!e) return;
28
- let r;
29
- if (typeof e.getBBox == "function") try {
30
- let t = e.getBBox();
31
- r = n === "width" ? t.width : t.height;
32
- } catch {}
33
- if (typeof r != "number" || Number.isNaN(r)) try {
34
- let t = e.getBoundingClientRect();
35
- r = n === "width" ? t.width : t.height;
36
- } catch {
37
- r = void 0;
38
- }
39
- typeof r == "number" && !Number.isNaN(r) && t(r);
40
- };
41
- Ue((t) => {
42
- let n = e.value;
43
- if (!n) return;
44
- let r = !1;
45
- (async () => {
46
- await Me();
47
- for (let t = 0; t < i; t += 1) {
48
- if (r) return;
49
- await new Promise((e) => requestAnimationFrame(e));
50
- let t = e.value;
51
- if (!t) return;
52
- o(t);
53
- }
54
- if (a && typeof document < "u" && document.fonts && document.fonts.ready) {
55
- try {
56
- await document.fonts.ready;
57
- } catch {}
58
- !r && e.value && o(e.value);
59
- }
60
- })();
61
- let s = new MutationObserver(() => {
62
- e.value && requestAnimationFrame(() => {
63
- e.value && o(e.value);
64
- });
65
- });
66
- s.observe(n, {
67
- childList: !0,
68
- subtree: !0,
69
- characterData: !0,
70
- attributes: !0,
71
- attributeFilter: [
72
- "transform",
73
- "style",
74
- "class"
75
- ]
76
- });
77
- let c;
78
- if (typeof ResizeObserver < "u") {
79
- let t = n.ownerSVGElement ? n.ownerSVGElement : n;
80
- c = new ResizeObserver(() => {
81
- let t = e.value;
82
- t && o(t);
83
- }), c.observe(t);
84
- }
85
- t(() => {
86
- r = !0, s.disconnect(), c && c.disconnect();
87
- });
88
- }, { flush: "post" });
89
- }
90
- //#endregion
91
- //#region src/directives/vFitText.js
92
- var qe = {
93
- mounted(e, t) {
94
- Je(e, t.value);
95
- },
96
- updated(e, t) {
97
- Je(e, t.value);
98
- }
99
- };
100
- function Je(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
101
- e.removeAttribute("transform"), e.removeAttribute("visibility");
102
- let u = !1, d = !1;
103
- e.setAttribute("font-size", r);
104
- let f = e.getComputedTextLength();
105
- if (f <= t) o(a, !1), s(a, !1);
106
- else {
107
- let n = Math.floor(r * t / f);
108
- n >= i ? (e.setAttribute("font-size", n), o(a, !1), s(a, !1)) : (o(a, !0), s(a, !1), u = !0);
109
- }
110
- if (c && (u = !0), u) {
111
- e.setAttribute("font-size", r);
112
- let t = e.getBBox(), o = t.x + t.width / 2, c = t.y + t.height / 2;
113
- e.setAttribute("transform", `rotate(-90 ${o} ${c})`);
114
- let l = e.getBBox().width;
115
- if (l <= n) s(a, !1);
116
- else {
117
- let t = Math.floor(r * n / l);
118
- t >= i ? (e.setAttribute("font-size", t), s(a, !1)) : (d = !0, s(a, !0));
119
- }
120
- }
121
- (l || d) && e.setAttribute("visibility", "hidden");
122
- }
123
- //#endregion
124
- //#region src/components/vue-ui-heatmap.vue
125
- var Ye = /* @__PURE__ */ e({ default: () => Dt }), Xe = ["id"], Ze = ["id"], Qe = [
126
- "xmlns",
127
- "aria-describedby",
128
- "viewBox"
129
- ], $e = [
130
- "x",
131
- "y",
132
- "width",
133
- "height"
134
- ], et = [
135
- "x",
136
- "y",
137
- "height",
138
- "width",
139
- "fill",
140
- "stroke",
141
- "stroke-width"
142
- ], tt = [
143
- "x",
144
- "y",
145
- "height",
146
- "width",
147
- "fill",
148
- "stroke",
149
- "stroke-width"
150
- ], nt = [
151
- "x",
152
- "y",
153
- "width",
154
- "height",
155
- "fill",
156
- "stroke",
157
- "stroke-width"
158
- ], rt = [
159
- "data-a11y-cell-id",
160
- "x",
161
- "y",
162
- "width",
163
- "height",
164
- "fill",
165
- "stroke",
166
- "stroke-width",
167
- "aria-label",
168
- "onMouseover",
169
- "onMouseout",
170
- "onClick"
171
- ], it = [
172
- "font-size",
173
- "font-weight",
174
- "fill",
175
- "x",
176
- "y"
177
- ], at = [
178
- "x",
179
- "y",
180
- "width",
181
- "height",
182
- "fill",
183
- "stroke",
184
- "stroke-width"
185
- ], ot = [
186
- "x",
187
- "y",
188
- "width",
189
- "height",
190
- "fill",
191
- "stroke",
192
- "stroke-width"
193
- ], st = [
194
- "font-size",
195
- "fill",
196
- "x",
197
- "y",
198
- "font-weight"
199
- ], ct = [
200
- "font-size",
201
- "fill",
202
- "x",
203
- "y",
204
- "font-weight"
205
- ], lt = [
206
- "text-anchor",
207
- "font-size",
208
- "fill",
209
- "font-weight",
210
- "transform"
211
- ], ut = [
212
- "text-anchor",
213
- "font-size",
214
- "fill",
215
- "font-weight",
216
- "transform"
217
- ], dt = { key: 6 }, ft = [
218
- "x",
219
- "y",
220
- "width",
221
- "height",
222
- "stroke",
223
- "stroke-width"
224
- ], pt = { key: 7 }, mt = [
225
- "x1",
226
- "x2",
227
- "y1",
228
- "y2",
229
- "stroke",
230
- "stroke-width",
231
- "stroke-dasharray"
232
- ], ht = [
233
- "x1",
234
- "x2",
235
- "y1",
236
- "y2",
237
- "stroke",
238
- "stroke-width",
239
- "stroke-dasharray"
240
- ], gt = { class: "vue-ui-heatmap-legend-gauge-right" }, _t = ["data-value"], vt = { class: "vue-ui-heatmap-gauge-indicator-value" }, yt = {
241
- key: 1,
242
- style: {
243
- position: "absolute",
244
- top: "100%",
245
- left: "0",
246
- width: "100%"
247
- },
248
- "data-dom-to-png-ignore": "",
249
- "aria-hidden": "true"
250
- }, bt = {
251
- key: 5,
252
- class: "vue-data-ui-watermark"
253
- }, xt = { class: "vue-ui-data-table" }, St = { key: 0 }, Ct = ["data-cell"], wt = { style: {
254
- display: "flex",
255
- "align-items": "center",
256
- gap: "5px",
257
- "justify-content": "flex-end",
258
- width: "100%",
259
- "padding-right": "3px"
260
- } }, Tt = ["data-cell"], Et = { style: {
261
- display: "flex",
262
- "align-items": "center",
263
- gap: "5px",
264
- "justify-content": "flex-end",
265
- width: "100%",
266
- "padding-right": "3px"
267
- } }, Dt = /*#__PURE__*/ _e({
268
- __name: "vue-ui-heatmap",
269
- props: {
270
- config: {
271
- type: Object,
272
- default() {
273
- return {};
274
- }
275
- },
276
- dataset: {
277
- type: Array,
278
- default() {
279
- return [];
280
- }
281
- }
282
- },
283
- emits: ["selectDatapoint", "copyAlt"],
284
- setup(e, { expose: _e, emit: Je }) {
285
- Be((e) => ({ v54bd95c1: e.tdo }));
286
- let Ye = Ae(() => import("./Tooltip-BmfGHn1L.js")), Dt = Ae(() => import("./BaseIcon-CPBlYfWq.js").then((e) => e.n)), Ot = Ae(() => import("./PenAndPaper-Dv8WPVwA.js").then((e) => e.t)), kt = Ae(() => import("./UserOptions-C92R4ACT.js").then((e) => e.n)), At = Ae(() => import("./PackageVersion-DEAYvEjl.js").then((e) => e.t)), jt = Ae(() => import("./BaseDraggableDialog-BniZj4c8.js").then((e) => e.n)), { vue_ui_heatmap: Mt } = se(), { isThemeValid: Nt, warnInvalidTheme: Pt } = fe(), k = e, Ft = Je, It = h({
287
- get() {
288
- return !!k.dataset && k.dataset.length;
289
- },
290
- set(e) {
291
- return e;
292
- }
293
- }), Lt = C(a()), A = C(null), Rt = C(!1), zt = C(""), Bt = C(void 0), j = C(null), Vt = C(0), Ht = C(null), Ut = C(0), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = Re(null), M = C(null), rn = C(null), an = C({
294
- x: 0,
295
- y: 0
296
- }), on = C("pointer"), sn = C(!1), N = C(_n()), P = h(() => N.value.style.layout.cells), F = h(() => N.value.style.layout.dataLabels), I = h(() => N.value.style.layout);
297
- ie({
298
- config: () => N.value,
299
- dataset: () => k.dataset,
300
- component: "VueUiHeatmap",
301
- rules: [ae.emptyArray, ae.noHint]
302
- });
303
- let cn = h(() => N.value.userOptions.useCursorPointer);
304
- function ln() {
305
- let e = Array(7).fill("_"), t = [], n = e.length;
306
- for (let r = 0; r < n; r += 1) {
307
- let n = [];
308
- for (let e = 0; e < 14; e += 1) n.push(r + e * 2);
309
- t.push({
310
- name: `${e[r]}`,
311
- values: n
312
- });
313
- }
314
- return t;
315
- }
316
- let un = h(() => te({
317
- defaultConfig: {
318
- table: { show: !1 },
319
- userOptions: { show: !1 },
320
- style: {
321
- backgroundColor: "#99999930",
322
- layout: {
323
- cells: {
324
- colors: {
325
- hot: "#999999",
326
- cold: "#CACACA"
327
- },
328
- columnTotal: { value: { show: !1 } },
329
- rowTotal: { value: { show: !1 } },
330
- value: { show: !1 }
331
- },
332
- dataLabels: {
333
- xAxis: { show: !1 },
334
- yAxis: { show: !1 }
335
- }
336
- }
337
- }
338
- },
339
- userConfig: N.value.skeletonConfig ?? {}
340
- })), { loading: dn, FINAL_DATASET: L, manualLoading: fn } = le({
341
- ...ze(k),
342
- FINAL_CONFIG: N,
343
- prepareConfig: _n,
344
- callback: () => {
345
- Promise.resolve().then(async () => {
346
- await Me(), A.value && p(A.value, {
347
- delta: .1,
348
- delay: 250
349
- });
350
- });
351
- },
352
- skeletonDataset: k.config?.skeletonDataset ?? ln(),
353
- skeletonConfig: te({
354
- defaultConfig: N.value,
355
- userConfig: un.value
356
- })
357
- }), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Se({ config: N.value }), { svgRef: R } = Ce({ config: N.value.style.title });
358
- function gn(e) {
359
- mn(e);
360
- }
361
- function _n() {
362
- let e = de({
363
- userConfig: k.config,
364
- defaultConfig: Mt
365
- }), t = {}, n = e.theme;
366
- if (n) {
367
- if (!Nt.value(e)) Pt(e), t = e;
368
- else {
369
- let r = de({
370
- userConfig: Te[n] || k.config,
371
- defaultConfig: e
372
- });
373
- t = { ...de({
374
- userConfig: k.config,
375
- defaultConfig: r
376
- }) };
377
- }
378
- } else t = e;
379
- return t;
380
- }
381
- function vn(e) {
382
- let t = c(e);
383
- return t?.style && delete t.style.tooltip, JSON.stringify(t);
384
- }
385
- let yn = vn(k.config);
386
- He(() => k.config, (e, t) => {
387
- let n = vn(e), r = n !== yn;
388
- yn = n;
389
- let i = _n();
390
- if (!r) {
391
- N.value.style.tooltip = i.style.tooltip, z.value.showTooltip = N.value.style.tooltip.show;
392
- return;
393
- }
394
- dn.value || (N.value = i), pn.value = !N.value.userOptions.showOnChartHover, Dn(), Ut.value += 1, z.value.showTable = N.value.table.show, z.value.showTooltip = N.value.style.tooltip.show, On.value = I.value.width, kn.value = I.value.height;
395
- }, { deep: !0 }), He(() => k.dataset, (e) => {
396
- Array.isArray(e) && e.length > 0 && (fn.value = !1), Dn();
397
- }, { deep: !0 });
398
- let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = ce({
399
- elementId: `heatmap__${Lt.value}`,
400
- fileName: N.value.style.title.text || "vue-ui-heatmap",
401
- options: N.value.userOptions.print
402
- }), wn = h(() => N.value.userOptions.show && !N.value.style.title.text), z = C({
403
- showTable: N.value.table.show,
404
- showTooltip: N.value.style.tooltip.show
405
- });
406
- He(N, () => {
407
- z.value = {
408
- showTable: N.value.table.show,
409
- showTooltip: N.value.style.tooltip.show
410
- };
411
- }, { immediate: !0 });
412
- let Tn = h(() => N.value.table.responsiveBreakpoint), B = C(null), En = h(() => N.value.debug);
413
- function Dn() {
414
- if (i(k.dataset) && (o({
415
- componentName: "VueUiHeatmap",
416
- type: "dataset",
417
- debug: En.value
418
- }), It.value = !1, fn.value = !0), i(k.dataset) || (fn.value = N.value.loading), N.value.responsive) {
419
- let e = ve(() => {
420
- let { width: e, height: t } = ye({
421
- chart: A.value,
422
- title: N.value.style.title.text ? qt.value : null,
423
- source: tn.value,
424
- noTitle: Jt.value
425
- });
426
- requestAnimationFrame(() => {
427
- On.value = e, kn.value = t;
428
- });
429
- });
430
- B.value && (nn.value && B.value.unobserve(nn.value), B.value.disconnect()), B.value = new ResizeObserver(e), nn.value = A.value.parentNode, B.value.observe(nn.value);
431
- }
432
- }
433
- Pe(() => {
434
- B.value && (nn.value && B.value.unobserve(nn.value), B.value.disconnect());
435
- }), Fe(() => {
436
- Dn();
437
- });
438
- let V = h(() => Math.max(...L.value.flatMap((e) => (e.values || []).length))), On = C(I.value.width), kn = C(I.value.height), H = h(() => ({
439
- width: Math.max(10, On.value),
440
- height: Math.max(10, kn.value)
441
- })), An = C(0);
442
- Ke({
443
- elementRef: Qt,
444
- callback: ve((e) => {
445
- e !== An.value && (An.value = e);
446
- }, 100),
447
- attr: "height"
448
- });
449
- let U = C(0);
450
- Ke({
451
- elementRef: Xt,
452
- callback: ve((e) => {
453
- e !== U.value && (U.value = e);
454
- }, 100),
455
- attr: "width"
456
- });
457
- let jn = C(0);
458
- Ke({
459
- elementRef: $t,
460
- callback: ve((e) => {
461
- e !== jn.value && (jn.value = e);
462
- }, 100),
463
- attr: "height"
464
- }), Pe(() => {
465
- An.value = 0, U.value = 0, jn.value = 0;
466
- });
467
- let W = h(() => Math.min(H.value.height, H.value.width) / 1e3 * P.value.spacing), G = h(() => {
468
- let e = 0;
469
- N.value.style.legend.show && (e = N.value.style.legend.width);
470
- let t = I.value.padding, n = F.value.xAxis.fontSize / 3, r = F.value.xAxis.fontSize / 2, i = H.value.height - t.top - t.bottom - An.value - n, a = H.value.width / 60, o = {
471
- x: W.value * V.value,
472
- y: W.value * ((L.value || []).length + 1)
473
- }, s = H.value.width - t.left - t.right - o.x - a * 2 - 2 - e - U.value, c = i - a - o.y - jn.value - r - P.value.columnTotal.value.offsetY, l = {
474
- width: Math.max(3, s / V.value),
475
- height: Math.max(3, c / (L.value.length ?? 1))
476
- };
477
- return {
478
- top: t.top + An.value + a + n,
479
- topLabelsHeight: An.value,
480
- sumCellXHeight: a,
481
- height: c,
482
- left: t.left + U.value + a / 2,
483
- right: t.right - e,
484
- bottom: H.value.height - t.bottom - jn.value,
485
- width: s,
486
- cellSize: l
487
- };
488
- }), Mn = h(() => Math.max(...L.value.flatMap((e) => e.values))), Nn = h(() => Math.min(...L.value.flatMap((e) => e.values))), K = h(() => P.value.scaleMax === null ? Mn.value : P.value.scaleMax), q = h(() => P.value.scaleMin === null ? Nn.value : P.value.scaleMin), J = h(() => {
489
- let e = L.value.flatMap((e) => e.values);
490
- return e.reduce((e, t) => e + t, 0) / e.length;
491
- }), Pn = C([]), Fn = C([]), In = 0;
492
- Ue(() => {
493
- let e = ++In;
494
- (async () => {
495
- let t = F.value.yAxis, n = await oe({
496
- values: t.values.length ? t.values : L.value.map((e) => e.name),
497
- maxDatapoints: L.value.length,
498
- formatter: t.datetimeFormatter,
499
- start: 0,
500
- end: L.value.length
501
- });
502
- e === In && (Pn.value = n);
503
- })();
504
- });
505
- let Ln = 0;
506
- Ue(() => {
507
- let e = ++Ln;
508
- (async () => {
509
- let t = F.value.xAxis, n = await oe({
510
- values: t.values,
511
- maxDatapoints: V.value,
512
- formatter: t.datetimeFormatter,
513
- start: 0,
514
- end: V.value
515
- });
516
- e === Ln && (Fn.value = n);
517
- })();
518
- });
519
- function Y(e, t, n) {
520
- if (t === n) return P.value.colors.hot;
521
- let r = Math.min(Math.max(e, t), n);
522
- return re(P.value.colors.cold, P.value.colors.hot, t, n, r);
523
- }
524
- function Rn(e) {
525
- if ([void 0, null].includes(e)) return 0;
526
- let t = q.value, n = K.value;
527
- if (t === n) return 0;
528
- let r = (e - t) / (n - t);
529
- return (1 - Math.min(Math.max(r, 0), 1)) * 100;
530
- }
531
- let X = h(() => {
532
- let e = Pn.value.map((e) => e.text), t = Fn.value.map((e) => e.text), n = P.value.scaleMin !== null || P.value.scaleMax !== null, r = L.value.map((e) => e.values.reduce((e, t) => e + t, 0)), i = L.value.map((e) => Math.max(1, e.values.length)), a = Math.max(...r), o = Math.min(...r), s = [], c = [];
533
- for (let e = 0; e < V.value; e += 1) {
534
- let t = 0, n = 0;
535
- L.value.forEach((r) => {
536
- e < r.values.length && (t += r.values[e] || 0, n += 1);
537
- }), s.push(t), c.push(Math.max(1, n));
538
- }
539
- let l = Math.max(...s), u = Math.min(...s);
540
- return {
541
- yTotals: r.map((e, t) => {
542
- let r = isNaN(e / a) ? 0 : e / a, s = i[t], c = q.value * s, l = K.value * s;
543
- return {
544
- total: e,
545
- proportion: r,
546
- color: n ? Y(e, c, l) : Y(e, o, a)
547
- };
548
- }),
549
- xTotals: s.map((e, t) => {
550
- let r = isNaN(e / l) ? 0 : e / l, i = c[t], a = q.value * i, o = K.value * i;
551
- return {
552
- total: e,
553
- proportion: r,
554
- color: n ? Y(e, a, o) : Y(e, u, l)
555
- };
556
- }),
557
- yLabels: e,
558
- xLabels: t.slice(0, V.value)
559
- };
560
- }), Z = h(() => (L.value.forEach((e, t) => {
561
- ne({
562
- datasetObject: e,
563
- requiredAttributes: ["values"]
564
- }).forEach((e) => {
565
- o({
566
- componentName: "VueUiHeatmap",
567
- type: "datasetSerieAttribute",
568
- property: "values",
569
- index: t,
570
- debug: En.value
571
- });
572
- });
573
- }), L.value.map((e, t) => ({
574
- ...e,
575
- temperatures: (e.values || []).map((e, n) => e >= J.value ? {
576
- side: "up",
577
- color: Y(e, q.value, K.value),
578
- ratio: Math.abs(Math.abs(e - J.value) / Math.abs(Mn.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(e - J.value) / Math.abs(Mn.value - J.value)),
579
- value: e,
580
- yAxisName: X.value.yLabels[t],
581
- xAxisName: X.value.xLabels[n],
582
- id: `vue-data-ui-heatmap-cell-${a()}`
583
- } : {
584
- side: "down",
585
- ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
586
- color: Y(e, q.value, K.value),
587
- value: e,
588
- yAxisName: X.value.yLabels[t],
589
- xAxisName: X.value.xLabels[n],
590
- id: `vue-data-ui-heatmap-cell-${a()}`
591
- })
592
- })))), zn = h(() => Z.value.flatMap((e, t) => e.temperatures.map((e, n) => {
593
- let r = G.value.left + G.value.cellSize.width * n, i = G.value.top + G.value.cellSize.height * t;
594
- return {
595
- datapoint: e,
596
- rowIndex: t,
597
- columnIndex: n,
598
- x: r + W.value / 2 + G.value.sumCellXHeight,
599
- y: i + W.value / 2,
600
- width: G.value.cellSize.width - W.value,
601
- height: G.value.cellSize.height - W.value,
602
- labelX: r + G.value.cellSize.width / 2 + G.value.sumCellXHeight,
603
- labelY: i + G.value.cellSize.height / 2 + P.value.value.fontSize / 3,
604
- selectionX: r,
605
- selectionY: i
606
- };
607
- }))), Bn = h(() => L.value.length), Vn = Ie(Array(Bn.value * V.value || 1).fill(!1)), Hn = h(() => Vn.some((e) => e));
608
- function Un(e, t) {
609
- Vn[e] = t;
610
- }
611
- let Wn = Ie(Array(Bn.value * V.value || 1).fill(!1)), Gn = h(() => Wn.some((e) => e));
612
- function Kn(e, t) {
613
- Wn[e] = t;
614
- }
615
- let Q = C(null), qn = C(null);
616
- function Jn() {
617
- Rt.value = !1, Bt.value = void 0, Q.value = null, j.value = null, M.value = null, rn.value = null;
618
- }
619
- function Yn(e) {
620
- if (!R.value || !e) return;
621
- let t = R.value.querySelector(`[data-a11y-cell-id="${e}"]`);
622
- if (!t) return;
623
- let n = t.getBoundingClientRect();
624
- an.value = {
625
- x: n.left + n.width / 2,
626
- y: n.top + n.height / 2
627
- };
628
- }
629
- function Xn(e, n, i, a, o = "pointer", s = null) {
630
- let c = G.value.cellSize.width - W.value, d = {
631
- ...e,
632
- x: i + c,
633
- y: a,
634
- width: G.value.cellSize.width - W.value,
635
- height: G.value.cellSize.height - W.value
636
- };
637
- if (N.value.events.datapointEnter && N.value.events.datapointEnter({
638
- datapoint: d,
639
- seriesIndex: n
640
- }), !z.value.showTooltip) return;
641
- on.value = o, M.value = s, rn.value = e.id, j.value = {
642
- x: i,
643
- y: a
644
- };
645
- let { value: f, yAxisName: p, xAxisName: ee, id: te } = e;
646
- Bt.value = te, Q.value = f, qn.value = {
647
- datapoint: e,
648
- seriesIndex: n,
649
- series: Z.value,
650
- config: N.value
651
- }, Rt.value = !0;
652
- let ne = "", re = N.value.style.tooltip.customFormat;
653
- r(re) && l(() => re({
654
- datapoint: e,
655
- seriesIndex: n,
656
- series: Z.value,
657
- config: N.value
658
- })) ? zt.value = re({
659
- datapoint: e,
660
- seriesIndex: n,
661
- series: Z.value,
662
- config: N.value
663
- }) : (ne += `<div>${p} ${ee ? p ? ` - ${ee}` : `${ee}` : ""}</div>`, ne += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${N.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${Y(f, q.value, K.value)}">⬤</span><span>${isNaN(f) ? "-" : u(P.value.value.formatter, f, t({
664
- p: F.value.prefix,
665
- v: f,
666
- s: F.value.suffix,
667
- r: N.value.style.tooltip.roundingValue
668
- }), {
669
- datapoint: e,
670
- seriesIndex: n
671
- })}</span></div>`, zt.value = `<div style="font-size:${N.value.style.tooltip.fontSize}px">${ne}</div>`), o === "keyboard" && Me(() => {
672
- Yn(e.id);
673
- });
674
- }
675
- function Zn({ datapoint: e, seriesIndex: t }) {
676
- N.value.events.datapointLeave && N.value.events.datapointLeave({
677
- datapoint: e,
678
- seriesIndex: t
679
- }), (rn.value !== e.id || on.value !== "keyboard") && (Rt.value = !1, Bt.value = void 0, Q.value = null, j.value = null);
680
- }
681
- function Qn(e) {
682
- return u(P.value.value.formatter, X.value.yTotals[e].total, t({
683
- p: F.value.prefix,
684
- v: X.value.yTotals[e].total,
685
- s: F.value.suffix,
686
- r: P.value.value.roundingValue
687
- }), {
688
- datapoint: X.value.yTotals[e],
689
- rowIndex: e
690
- });
691
- }
692
- function $n(e) {
693
- return u(P.value.value.formatter, X.value.xTotals[e].total, t({
694
- p: F.value.prefix,
695
- v: X.value.xTotals[e].total,
696
- s: F.value.suffix,
697
- r: P.value.value.roundingValue
698
- }), {
699
- datapoint: X.value.xTotals[e],
700
- colIndex: e
701
- });
702
- }
703
- h(() => ({
704
- head: L.value.map((e) => ({ name: e.name })),
705
- body: L.value.map((e) => e.values)
706
- }));
707
- function er(e = null) {
708
- Me(() => {
709
- let t = ["", ...L.value.map((e, t) => e.name)], r = [];
710
- for (let e = 0; e < X.value.xLabels.length; e += 1) {
711
- let t = [X.value.xLabels[e]];
712
- for (let n = 0; n < L.value.length; n += 1) t.push([L.value[n].values[e]]);
713
- r.push(t);
714
- }
715
- let i = [
716
- [N.value.style.title.text],
717
- [N.value.style.title.subtitle.text],
718
- [
719
- [""],
720
- [""],
721
- [""]
722
- ],
723
- t
724
- ].concat(r), a = n(i);
725
- e ? e(a) : d({
726
- csvContent: a,
727
- title: N.value.style.title.text || "vue-ui-heatmap"
728
- });
729
- });
730
- }
731
- let $ = C(!1);
732
- function tr(e) {
733
- $.value = e, Vt.value += 1;
734
- }
735
- function nr() {
736
- z.value.showTable = !z.value.showTable;
737
- }
738
- function rr() {
739
- z.value.showTooltip = !z.value.showTooltip;
740
- }
741
- let ir = C(!1);
742
- function ar() {
743
- ir.value = !ir.value;
744
- }
745
- function or(e, t) {
746
- N.value.events.datapointClick && N.value.events.datapointClick({
747
- datapoint: e,
748
- seriesIndex: t
749
- }), Ft("selectDatapoint", e);
750
- }
751
- function sr() {
752
- return Z.value;
753
- }
754
- async function cr({ scale: e = 2 } = {}) {
755
- if (!A.value) return;
756
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
757
- domElement: A.value,
758
- base64: !0,
759
- img: !0,
760
- scale: e
761
- });
762
- return {
763
- imageUri: i,
764
- base64: a,
765
- title: N.value.style.title.text,
766
- width: t,
767
- height: n,
768
- aspectRatio: r
769
- };
770
- }
771
- let lr = h(() => ({
772
- start: 0,
773
- end: V.value
774
- })), ur = h(() => X.value.xLabels);
775
- me({
776
- timeLabelsEls: Qt,
777
- timeLabels: ur,
778
- slicer: lr,
779
- configRef: N,
780
- rotationPath: [
781
- "style",
782
- "layout",
783
- "dataLabels",
784
- "xAxis",
785
- "rotation"
786
- ],
787
- autoRotatePath: [
788
- "style",
789
- "layout",
790
- "dataLabels",
791
- "xAxis",
792
- "autoRotate",
793
- "enable"
794
- ],
795
- isAutoSize: !1,
796
- targetClass: ".vue-ui-heatmap-col-name",
797
- rotation: F.value.xAxis.autoRotate.angle,
798
- width: On,
799
- height: kn
800
- }), me({
801
- timeLabelsEls: $t,
802
- timeLabels: ur,
803
- slicer: lr,
804
- configRef: N,
805
- rotationPath: [
806
- "style",
807
- "layout",
808
- "cells",
809
- "columnTotal",
810
- "value",
811
- "rotation"
812
- ],
813
- autoRotatePath: [
814
- "style",
815
- "layout",
816
- "cells",
817
- "columnTotal",
818
- "value",
819
- "autoRotate",
820
- "enable"
821
- ],
822
- isAutoSize: !1,
823
- targetClass: ".vue-ui-heatmap-col-total",
824
- rotation: P.value.columnTotal.value.autoRotate.angle,
825
- width: On,
826
- height: kn
827
- });
828
- let dr = h(() => {
829
- let e = N.value.table.useDialog && !N.value.table.show, t = z.value.showTable;
830
- return {
831
- component: e ? jt : be,
832
- title: `${N.value.style.title.text}${N.value.style.title.subtitle.text ? `: ${N.value.style.title.subtitle.text}` : ""}`,
833
- props: e ? {
834
- backgroundColor: N.value.table.th.backgroundColor,
835
- color: N.value.table.th.color,
836
- headerColor: N.value.table.th.color,
837
- headerBg: N.value.table.th.backgroundColor,
838
- isFullscreen: $.value,
839
- fullscreenParent: A.value,
840
- forcedWidth: Math.min(800, window.innerWidth * .8),
841
- isCursorPointer: cn.value
842
- } : {
843
- hideDetails: !0,
844
- config: {
845
- open: t,
846
- maxHeight: 1e4,
847
- body: {
848
- backgroundColor: N.value.style.backgroundColor,
849
- color: N.value.style.color
850
- },
851
- head: {
852
- backgroundColor: N.value.style.backgroundColor,
853
- color: N.value.style.color
854
- }
855
- }
856
- }
857
- };
858
- });
859
- He(() => z.value.showTable, async (e) => {
860
- N.value.table.show || (e && N.value.table.useDialog && Gt.value ? (await Me(), Gt.value.open()) : "close" in Gt.value && Gt.value.close());
861
- });
862
- let { isResponsive: fr } = we(Ht, Tn);
863
- function pr() {
864
- z.value.showTable = !1, Kt.value && Kt.value.setTableIconState(!1);
865
- }
866
- let mr = h(() => N.value.style.backgroundColor), hr = h(() => N.value.style.title), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = pe({
867
- svg: R,
868
- title: hr,
869
- legend: null,
870
- legendItems: null,
871
- backgroundColor: mr,
872
- getSvgCallback: () => N.value.userOptions.callbacks.svg,
873
- generateImage: Cn
874
- });
875
- async function br() {
876
- if (Ft("copyAlt", {
877
- config: N.value,
878
- dataset: Z.value
879
- }), !N.value.userOptions.callbacks.altCopy) {
880
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
881
- return;
882
- }
883
- await Promise.resolve(N.value.userOptions.callbacks.altCopy({
884
- config: N.value,
885
- dataset: Z.value
886
- }));
887
- }
888
- function xr(e, t) {
889
- let n = Z.value[e];
890
- if (!n) return null;
891
- let r = n.temperatures[t];
892
- return r ? {
893
- cell: r,
894
- rowIndex: e,
895
- columnIndex: t
896
- } : null;
897
- }
898
- function Sr(e, t) {
899
- let n = 0;
900
- for (let t = 0; t < e; t += 1) n += Z.value[t]?.temperatures?.length || 0;
901
- return n + t;
902
- }
903
- function Cr() {
904
- M.value = null, rn.value = null, sn.value = !0;
905
- }
906
- function wr() {
907
- Jn(), sn.value = !1;
908
- }
909
- function Tr(e) {
910
- if (!R.value || ir.value || document.activeElement !== R.value || !Or.value.length) return;
911
- 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";
912
- if (!t && !n && !r && !i && !a && !o) return;
913
- if (e.preventDefault(), e.stopPropagation(), o) {
914
- Jn();
915
- return;
916
- }
917
- if (a) {
918
- if (M.value === null) return;
919
- let e = Or.value[M.value];
920
- if (!e) return;
921
- or(e.cell, e.rowIndex);
922
- return;
923
- }
924
- let s = M.value === null ? null : Or.value[M.value];
925
- if (!s) {
926
- let e = Bt.value ? Or.value.findIndex((e) => e.cell.id === Bt.value) : null;
927
- if (e !== null && e >= 0 && e < Or.value.length) {
928
- let a = Or.value[e];
929
- if (!a) return;
930
- let o = a.rowIndex, s = a.columnIndex;
931
- n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
932
- let c = Dr.value.rowCount;
933
- if (c <= 0) return;
934
- o < 0 && (o = c - 1), o >= c && (o = 0);
935
- let l = Z.value[o];
936
- if (!l || !l.temperatures.length) return;
937
- let u = l.temperatures.length;
938
- s < 0 && (s = u - 1), s >= u && (s = 0);
939
- let d = xr(o, s);
940
- if (!d) return;
941
- let f = Sr(o, s), p = G.value.left + G.value.cellSize.width * d.columnIndex, ee = G.value.top + G.value.cellSize.height * d.rowIndex;
942
- Xn(d.cell, d.rowIndex, p, ee, "keyboard", f);
943
- return;
944
- }
945
- let a = Or.value[0];
946
- if (!a) return;
947
- let o = G.value.left + G.value.cellSize.width * a.columnIndex, s = G.value.top + G.value.cellSize.height * a.rowIndex;
948
- Xn(a.cell, a.rowIndex, o, s, "keyboard", 0);
949
- return;
950
- }
951
- let c = s.rowIndex, l = s.columnIndex;
952
- n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
953
- let u = Dr.value.rowCount;
954
- if (u <= 0) return;
955
- c < 0 && (c = u - 1), c >= u && (c = 0);
956
- let d = Z.value[c];
957
- if (!d || !d.temperatures.length) return;
958
- let f = d.temperatures.length;
959
- l < 0 && (l = f - 1), l >= f && (l = 0);
960
- let p = xr(c, l);
961
- if (!p) return;
962
- let ee = Sr(c, l), te = G.value.left + G.value.cellSize.width * p.columnIndex, ne = G.value.top + G.value.cellSize.height * p.rowIndex;
963
- Xn(p.cell, p.rowIndex, te, ne, "keyboard", ee);
964
- }
965
- let Er = h(() => ({
966
- headers: [N.value.table.colNames.xAxis, ...L.value.map((e) => e.name)],
967
- rows: X.value.xLabels.map((e, n) => [e, ...L.value.map((e) => {
968
- let r = e.values?.[n];
969
- return isNaN(r) ? "-" : t({
970
- p: F.value.prefix,
971
- v: r,
972
- s: F.value.suffix,
973
- r: N.value.table.td.roundingValue
974
- });
975
- })])
976
- })), Dr = h(() => ({
977
- rowCount: Z.value.length,
978
- columnCount: Math.max(0, ...Z.value.map((e) => e.temperatures.length))
979
- })), Or = h(() => Z.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
980
- cell: e,
981
- rowIndex: t,
982
- columnIndex: n
983
- }))));
984
- return _e({
985
- getData: sr,
986
- getImage: cr,
987
- generatePdf: Sn,
988
- generateCsv: er,
989
- generateImage: Cn,
990
- generateSvg: vr,
991
- toggleTable: nr,
992
- toggleTooltip: rr,
993
- toggleAnnotator: ar,
994
- toggleFullscreen: tr,
995
- copyAlt: br
996
- }), (n, r) => (S(), _("div", {
997
- ref_key: "heatmapChart",
998
- ref: A,
999
- class: Ne(`vue-data-ui-component vue-ui-heatmap ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1000
- style: x(`font-family:${N.value.style.fontFamily};width:100%;${N.value.responsive ? "height: 100%;" : ""} text-align:center;background:${N.value.style.backgroundColor}`),
1001
- id: `heatmap__${Lt.value}`,
1002
- onMouseenter: r[1] ||= () => gn(!0),
1003
- onMouseleave: r[2] ||= () => {
1004
- gn(!1), sn.value || Jn();
1005
- }
1006
- }, [
1007
- v("div", {
1008
- id: `chart-instructions-${Lt.value}`,
1009
- class: "sr-only"
1010
- }, [v("p", null, E(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
1011
- Er.value?.rows?.length ? (S(), Ee(xe, {
1012
- key: 0,
1013
- uid: Lt.value,
1014
- head: Er.value.headers,
1015
- body: Er.value.rows,
1016
- notice: N.value.a11y.translations.tableAvailable,
1017
- caption: N.value.a11y.translations.tableCaption
1018
- }, null, 8, [
1019
- "uid",
1020
- "head",
1021
- "body",
1022
- "notice",
1023
- "caption"
1024
- ])) : g("", !0),
1025
- N.value.userOptions.buttons.annotator ? (S(), Ee(D(Ot), {
1026
- key: 1,
1027
- svgRef: D(R),
1028
- backgroundColor: N.value.style.backgroundColor,
1029
- color: N.value.style.color,
1030
- active: ir.value,
1031
- isCursorPointer: cn.value,
1032
- palette: N.value.userOptions.annotatorPalette,
1033
- onClose: ar
1034
- }, {
1035
- "annotator-action-close": O(() => [T(n.$slots, "annotator-action-close", {}, void 0, !0)]),
1036
- "annotator-action-color": O(({ color: e }) => [T(n.$slots, "annotator-action-color", b(y({ color: e })), void 0, !0)]),
1037
- "annotator-action-draw": O(({ mode: e }) => [T(n.$slots, "annotator-action-draw", b(y({ mode: e })), void 0, !0)]),
1038
- "annotator-action-undo": O(({ disabled: e }) => [T(n.$slots, "annotator-action-undo", b(y({ disabled: e })), void 0, !0)]),
1039
- "annotator-action-redo": O(({ disabled: e }) => [T(n.$slots, "annotator-action-redo", b(y({ disabled: e })), void 0, !0)]),
1040
- "annotator-action-delete": O(({ disabled: e }) => [T(n.$slots, "annotator-action-delete", b(y({ disabled: e })), void 0, !0)]),
1041
- _: 3
1042
- }, 8, [
1043
- "svgRef",
1044
- "backgroundColor",
1045
- "color",
1046
- "active",
1047
- "isCursorPointer",
1048
- "palette"
1049
- ])) : g("", !0),
1050
- wn.value ? (S(), _("div", {
1051
- key: 2,
1052
- ref_key: "noTitle",
1053
- ref: Jt,
1054
- class: "vue-data-ui-no-title-space",
1055
- style: "height:36px; width: 100%;background:transparent"
1056
- }, null, 512)) : g("", !0),
1057
- N.value.style.title.text ? (S(), _("div", {
1058
- key: 3,
1059
- ref_key: "chartTitle",
1060
- ref: qt,
1061
- style: "width:100%;background:transparent"
1062
- }, [(S(), Ee(ge, {
1063
- key: `title_${Ut.value}`,
1064
- config: {
1065
- title: {
1066
- cy: "heatmap-div-title",
1067
- ...N.value.style.title
1068
- },
1069
- subtitle: {
1070
- cy: "heatmap-div-subtitle",
1071
- ...N.value.style.title.subtitle
1072
- }
1073
- }
1074
- }, null, 8, ["config"]))], 512)) : g("", !0),
1075
- N.value.userOptions.show && It.value && (D(hn) || D(pn)) ? (S(), Ee(D(kt), {
1076
- ref_key: "userOptionsRef",
1077
- ref: Kt,
1078
- key: `user_options_${Vt.value}`,
1079
- backgroundColor: N.value.style.backgroundColor,
1080
- color: N.value.style.color,
1081
- isImaging: D(xn),
1082
- isPrinting: D(bn),
1083
- uid: Lt.value,
1084
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.tooltip.show,
1085
- hasPdf: N.value.userOptions.buttons.pdf,
1086
- hasImg: N.value.userOptions.buttons.img,
1087
- hasSvg: N.value.userOptions.buttons.svg,
1088
- hasXls: N.value.userOptions.buttons.csv,
1089
- hasTable: N.value.userOptions.buttons.table,
1090
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
1091
- hasAltCopy: N.value.userOptions.buttons.altCopy,
1092
- isFullscreen: $.value,
1093
- isTooltip: z.value.showTooltip,
1094
- titles: { ...N.value.userOptions.buttonTitles },
1095
- chartElement: A.value,
1096
- position: N.value.userOptions.position,
1097
- hasAnnotator: N.value.userOptions.buttons.annotator,
1098
- isAnnotation: ir.value,
1099
- callbacks: N.value.userOptions.callbacks,
1100
- printScale: N.value.userOptions.print.scale,
1101
- tableDialog: N.value.table.useDialog,
1102
- isCursorPointer: cn.value,
1103
- onToggleFullscreen: tr,
1104
- onGeneratePdf: D(Sn),
1105
- onGenerateCsv: er,
1106
- onGenerateImage: D(yr),
1107
- onGenerateSvg: D(vr),
1108
- onToggleTable: nr,
1109
- onToggleTooltip: rr,
1110
- onToggleAnnotator: ar,
1111
- onCopyAlt: br,
1112
- style: x({ visibility: D(hn) ? D(pn) ? "visible" : "hidden" : "visible" })
1113
- }, De({ _: 2 }, [
1114
- n.$slots.menuIcon ? {
1115
- name: "menuIcon",
1116
- fn: O(({ isOpen: e, color: t }) => [T(n.$slots, "menuIcon", b(y({
1117
- isOpen: e,
1118
- color: t
1119
- })), void 0, !0)]),
1120
- key: "0"
1121
- } : void 0,
1122
- n.$slots.optionTooltip ? {
1123
- name: "optionTooltip",
1124
- fn: O(() => [T(n.$slots, "optionTooltip", {}, void 0, !0)]),
1125
- key: "1"
1126
- } : void 0,
1127
- n.$slots.optionPdf ? {
1128
- name: "optionPdf",
1129
- fn: O(() => [T(n.$slots, "optionPdf", {}, void 0, !0)]),
1130
- key: "2"
1131
- } : void 0,
1132
- n.$slots.optionCsv ? {
1133
- name: "optionCsv",
1134
- fn: O(() => [T(n.$slots, "optionCsv", {}, void 0, !0)]),
1135
- key: "3"
1136
- } : void 0,
1137
- n.$slots.optionImg ? {
1138
- name: "optionImg",
1139
- fn: O(() => [T(n.$slots, "optionImg", {}, void 0, !0)]),
1140
- key: "4"
1141
- } : void 0,
1142
- n.$slots.optionSvg ? {
1143
- name: "optionSvg",
1144
- fn: O(() => [T(n.$slots, "optionSvg", {}, void 0, !0)]),
1145
- key: "5"
1146
- } : void 0,
1147
- n.$slots.optionTable ? {
1148
- name: "optionTable",
1149
- fn: O(() => [T(n.$slots, "optionTable", {}, void 0, !0)]),
1150
- key: "6"
1151
- } : void 0,
1152
- n.$slots.optionFullscreen ? {
1153
- name: "optionFullscreen",
1154
- fn: O(({ toggleFullscreen: e, isFullscreen: t }) => [T(n.$slots, "optionFullscreen", b(y({
1155
- toggleFullscreen: e,
1156
- isFullscreen: t
1157
- })), void 0, !0)]),
1158
- key: "7"
1159
- } : void 0,
1160
- n.$slots.optionAnnotator ? {
1161
- name: "optionAnnotator",
1162
- fn: O(({ toggleAnnotator: e, isAnnotator: t }) => [T(n.$slots, "optionAnnotator", b(y({
1163
- toggleAnnotator: e,
1164
- isAnnotator: t
1165
- })), void 0, !0)]),
1166
- key: "8"
1167
- } : void 0,
1168
- n.$slots.optionAltCopy ? {
1169
- name: "optionAltCopy",
1170
- fn: O(({ altCopy: e }) => [T(n.$slots, "optionAltCopy", b(y({ altCopy: e })), void 0, !0)]),
1171
- key: "9"
1172
- } : void 0,
1173
- n.$slots["custom-menu-before"] ? {
1174
- name: "custom-menu-before",
1175
- fn: O(() => [T(n.$slots, "custom-menu-before", {}, void 0, !0)]),
1176
- key: "10"
1177
- } : void 0,
1178
- n.$slots["custom-menu-after"] ? {
1179
- name: "custom-menu-after",
1180
- fn: O(() => [T(n.$slots, "custom-menu-after", {}, void 0, !0)]),
1181
- key: "11"
1182
- } : void 0
1183
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
1184
- v("div", { class: Ne({
1185
- "vue-ui-heatmap-chart-wrapper": !0,
1186
- "vue-ui-heatmap-chart-wrapper-legend-right": N.value.style.legend.show
1187
- }) }, [
1188
- (S(), _("svg", {
1189
- ref_key: "svgRef",
1190
- ref: R,
1191
- xmlns: D(ee),
1192
- "aria-describedby": `chart-instructions-${Lt.value}`,
1193
- class: Ne({
1194
- "vue-data-ui-fullscreen--on": $.value,
1195
- "vue-data-ui-fulscreen--off": !$.value
1196
- }),
1197
- viewBox: `0 0 ${H.value.width} ${H.value.height}`,
1198
- width: "100%",
1199
- style: x(`overflow: visible; background:transparent;color:${N.value.style.color}`),
1200
- "aria-live": "polite",
1201
- role: "img",
1202
- preserveAspectRatio: "xMidYMid",
1203
- tabindex: "0",
1204
- onFocus: Cr,
1205
- onBlur: wr,
1206
- onKeydown: Tr
1207
- }, [
1208
- ke(D(At)),
1209
- n.$slots["chart-background"] ? (S(), _("foreignObject", {
1210
- key: 0,
1211
- x: G.value.left,
1212
- y: G.value.top,
1213
- width: G.value.width,
1214
- height: G.value.height,
1215
- style: { pointerEvents: "none" }
1216
- }, [T(n.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : g("", !0),
1217
- P.value.columnTotal.color.show ? (S(), _("g", {
1218
- key: 1,
1219
- ref_key: "xAxisSumRects",
1220
- ref: en
1221
- }, [(S(!0), _(m, null, w(X.value.xTotals, (e, t) => (S(), _("rect", {
1222
- x: G.value.left + G.value.cellSize.width * t + W.value / 2 + G.value.sumCellXHeight,
1223
- y: G.value.top - G.value.sumCellXHeight + W.value * (H.value.height / H.value.width),
1224
- height: G.value.sumCellXHeight,
1225
- width: G.value.cellSize.width - W.value,
1226
- fill: P.value.colors.underlayer,
1227
- stroke: N.value.style.backgroundColor,
1228
- "stroke-width": W.value
1229
- }, null, 8, et))), 256)), (S(!0), _(m, null, w(X.value.xTotals, (e, t) => (S(), _("rect", {
1230
- x: G.value.left + G.value.cellSize.width * t + W.value / 2 + G.value.sumCellXHeight,
1231
- y: G.value.top - G.value.sumCellXHeight + W.value * (H.value.height / H.value.width),
1232
- height: G.value.sumCellXHeight,
1233
- width: G.value.cellSize.width - W.value,
1234
- fill: e.color,
1235
- stroke: N.value.style.backgroundColor,
1236
- "stroke-width": W.value
1237
- }, null, 8, tt))), 256))], 512)) : g("", !0),
1238
- v("g", {
1239
- ref_key: "datapoints",
1240
- ref: Wt
1241
- }, [(S(!0), _(m, null, w(zn.value, (e) => (S(), _("g", null, [
1242
- v("rect", {
1243
- x: e.x,
1244
- y: e.y,
1245
- width: e.width,
1246
- height: e.height,
1247
- fill: P.value.colors.underlayer,
1248
- stroke: N.value.style.backgroundColor,
1249
- "stroke-width": W.value
1250
- }, null, 8, nt),
1251
- v("rect", {
1252
- "data-a11y-cell-id": e.datapoint.id,
1253
- x: e.x,
1254
- y: e.y,
1255
- width: e.width,
1256
- height: e.height,
1257
- fill: e.datapoint.color,
1258
- stroke: N.value.style.backgroundColor,
1259
- "stroke-width": W.value,
1260
- "aria-label": `${e.datapoint.yAxisName}${e.datapoint.xAxisName ? ` - ${e.datapoint.xAxisName}` : ""}: ${isNaN(e.datapoint.value) ? "-" : e.datapoint.value}`,
1261
- onMouseover: (t) => Xn(e.datapoint, e.rowIndex, e.selectionX, e.selectionY, "pointer", Sr(e.rowIndex, e.columnIndex)),
1262
- onMouseout: () => Zn({
1263
- datapoint: e.datapoint,
1264
- seriesIndex: e.rowIndex
1265
- }),
1266
- onClick: () => or(e.datapoint, e.rowIndex)
1267
- }, null, 40, rt),
1268
- P.value.value.show ? We((S(), _("text", {
1269
- key: 0,
1270
- "text-anchor": "middle",
1271
- "font-size": P.value.value.fontSize,
1272
- "font-weight": P.value.value.bold ? "bold" : "normal",
1273
- fill: D(f)(e.datapoint.color),
1274
- x: e.labelX,
1275
- y: e.labelY,
1276
- style: {
1277
- pointerEvents: "none",
1278
- userSelect: "none"
1279
- }
1280
- }, [Oe(E(D(u)(P.value.value.formatter, e.datapoint.value, D(t)({
1281
- p: F.value.prefix,
1282
- v: e.datapoint.value,
1283
- s: F.value.suffix,
1284
- r: P.value.value.roundingValue
1285
- }), { datapoint: e.datapoint })), 1)], 8, it)), [[D(qe), {
1286
- cellWidth: e.width,
1287
- cellHeight: e.height,
1288
- maxFontSize: P.value.value.fontSize,
1289
- minFontSize: 10,
1290
- index: e.rowIndex * V.value + e.columnIndex,
1291
- reportHide: Kn,
1292
- reportRotation: Un,
1293
- hideAll: Gn.value,
1294
- rotateAll: Hn.value
1295
- }]]) : g("", !0)
1296
- ]))), 256))], 512),
1297
- P.value.rowTotal.color.show ? (S(), _("g", {
1298
- key: 2,
1299
- ref_key: "yAxisSumRects",
1300
- ref: Zt
1301
- }, [(S(!0), _(m, null, w(Z.value, (e, t) => (S(), _(m, null, [v("rect", {
1302
- x: G.value.left,
1303
- y: G.value.top + G.value.cellSize.height * t,
1304
- width: G.value.sumCellXHeight,
1305
- height: G.value.cellSize.height - W.value,
1306
- fill: P.value.colors.underlayer,
1307
- stroke: N.value.style.backgroundColor,
1308
- "stroke-width": W.value
1309
- }, null, 8, at), v("rect", {
1310
- x: G.value.left,
1311
- y: G.value.top + G.value.cellSize.height * t + W.value / 2,
1312
- width: G.value.sumCellXHeight,
1313
- height: G.value.cellSize.height - W.value,
1314
- fill: X.value.yTotals[t].color,
1315
- stroke: N.value.style.backgroundColor,
1316
- "stroke-width": W.value
1317
- }, null, 8, ot)], 64))), 256))], 512)) : g("", !0),
1318
- F.value.yAxis.show ? (S(), _("g", {
1319
- key: 3,
1320
- ref_key: "yAxisLabels",
1321
- ref: Xt
1322
- }, [(S(!0), _(m, null, w(Z.value, (e, t) => (S(), _(m, null, [v("text", {
1323
- class: "vue-ui-heatmap-row-name",
1324
- "font-size": F.value.yAxis.fontSize,
1325
- fill: F.value.yAxis.color,
1326
- x: U.value + F.value.yAxis.offsetX,
1327
- y: G.value.top + G.value.cellSize.height * t + G.value.cellSize.height / 2 + F.value.yAxis.fontSize / 3 + F.value.yAxis.offsetY - (P.value.rowTotal.value.show ? F.value.yAxis.fontSize / 1.5 : 0),
1328
- "text-anchor": "end",
1329
- "font-weight": F.value.yAxis.bold ? "bold" : "normal"
1330
- }, E(X.value.yLabels[t]), 9, st), P.value.rowTotal.value.show ? (S(), _("text", {
1331
- key: 0,
1332
- class: "vue-ui-heatmap-row-total",
1333
- "font-size": F.value.yAxis.fontSize,
1334
- fill: F.value.yAxis.color,
1335
- x: U.value,
1336
- y: G.value.top + G.value.cellSize.height * t + G.value.cellSize.height / 2 + F.value.yAxis.fontSize + F.value.yAxis.offsetY,
1337
- "text-anchor": "end",
1338
- "font-weight": F.value.yAxis.bold ? "bold" : "normal"
1339
- }, E(Qn(t)), 9, ct)) : g("", !0)], 64))), 256))], 512)) : g("", !0),
1340
- F.value.xAxis.show ? (S(), _("g", {
1341
- key: 4,
1342
- ref_key: "xAxisLabels",
1343
- ref: Qt
1344
- }, [(S(!0), _(m, null, w(X.value.xLabels, (e, t) => (S(), _(m, null, [!F.value.xAxis.showOnlyAtModulo || F.value.xAxis.showOnlyAtModulo && t % F.value.xAxis.showOnlyAtModulo === 0 ? (S(), _("text", {
1345
- key: 0,
1346
- class: "vue-ui-heatmap-col-name",
1347
- "text-anchor": F.value.xAxis.rotation === 0 ? "middle" : F.value.xAxis.rotation < 0 ? "start" : "end",
1348
- "font-size": F.value.xAxis.fontSize,
1349
- fill: F.value.xAxis.color,
1350
- "font-weight": F.value.xAxis.bold ? "bold" : "normal",
1351
- transform: `translate(${G.value.left + G.value.cellSize.width / 2 + G.value.width / X.value.xLabels.length * t + F.value.xAxis.offsetX + G.value.sumCellXHeight}, ${G.value.topLabelsHeight + F.value.xAxis.offsetY}), rotate(${F.value.xAxis.rotation})`
1352
- }, E(e), 9, lt)) : g("", !0)], 64))), 256))], 512)) : g("", !0),
1353
- P.value.columnTotal.value.show ? (S(), _("g", {
1354
- key: 5,
1355
- ref_key: "xAxisSums",
1356
- ref: $t
1357
- }, [(S(!0), _(m, null, w(X.value.xLabels, (e, t) => (S(), _("text", {
1358
- class: "vue-ui-heatmap-col-total",
1359
- "text-anchor": P.value.columnTotal.value.rotation === 0 ? "middle" : P.value.columnTotal.value.rotation < 0 ? "end" : "start",
1360
- "font-size": F.value.xAxis.fontSize,
1361
- fill: F.value.xAxis.color,
1362
- "font-weight": F.value.xAxis.bold ? "bold" : "normal",
1363
- transform: `translate(${G.value.left + G.value.cellSize.width / 2 + G.value.width / X.value.xLabels.length * t + F.value.xAxis.offsetX + P.value.columnTotal.value.offsetX + G.value.sumCellXHeight}, ${G.value.bottom + F.value.xAxis.fontSize / 2}), rotate(${P.value.columnTotal.value.rotation})`
1364
- }, E($n(t)), 9, ut))), 256))], 512)) : g("", !0),
1365
- j.value ? (S(), _("g", dt, [v("rect", {
1366
- style: { "pointer-events": "none" },
1367
- x: j.value.x - P.value.selected.border / 2 + W.value + G.value.sumCellXHeight,
1368
- y: j.value.y - P.value.selected.border / 2 + W.value,
1369
- width: G.value.cellSize.width - W.value + P.value.selected.border - W.value,
1370
- height: G.value.cellSize.height - W.value + P.value.selected.border - W.value,
1371
- fill: "transparent",
1372
- stroke: P.value.selected.color,
1373
- "stroke-width": P.value.selected.border,
1374
- rx: 1
1375
- }, null, 8, ft)])) : g("", !0),
1376
- I.value.crosshairs.show && j.value ? (S(), _("g", pt, [v("line", {
1377
- x1: G.value.left + G.value.sumCellXHeight,
1378
- x2: j.value.x + G.value.sumCellXHeight,
1379
- y1: j.value.y + (G.value.cellSize.height - W.value) / 2,
1380
- y2: j.value.y + (G.value.cellSize.height - W.value) / 2,
1381
- stroke: I.value.crosshairs.stroke,
1382
- "stroke-width": I.value.crosshairs.strokeWidth,
1383
- "stroke-dasharray": I.value.crosshairs.strokeDasharray,
1384
- "stroke-linecap": "round"
1385
- }, null, 8, mt), v("line", {
1386
- x1: j.value.x + G.value.sumCellXHeight + (G.value.cellSize.width - W.value) / 2,
1387
- x2: j.value.x + G.value.sumCellXHeight + (G.value.cellSize.width - W.value) / 2,
1388
- y1: j.value.y,
1389
- y2: G.value.top,
1390
- stroke: I.value.crosshairs.stroke,
1391
- "stroke-width": I.value.crosshairs.strokeWidth,
1392
- "stroke-dasharray": I.value.crosshairs.strokeDasharray,
1393
- "stroke-linecap": "round"
1394
- }, null, 8, ht)])) : g("", !0),
1395
- T(n.$slots, "svg", { svg: {
1396
- ...H.value,
1397
- drawingArea: G.value,
1398
- cells: zn.value,
1399
- isPrintingImg: D(bn) || D(xn) || D(gr),
1400
- isPrintingSvg: D(_r)
1401
- } }, void 0, !0)
1402
- ], 46, Qe)),
1403
- N.value.style.legend.show ? (S(), _("div", {
1404
- key: 0,
1405
- ref_key: "legendRight",
1406
- ref: Yt,
1407
- class: "vue-ui-heatmap-legend-right",
1408
- style: x({ "--legend-width": N.value.style.legend.width + "px" })
1409
- }, [
1410
- D(dn) ? g("", !0) : (S(), _("div", {
1411
- key: 0,
1412
- class: "vue-ui-heatmap-legend-label-max",
1413
- style: x({
1414
- fontSize: N.value.style.legend.fontSize + "px",
1415
- color: N.value.style.legend.color
1416
- })
1417
- }, E(D(u)(P.value.value.formatter, D(s)(K.value), D(t)({
1418
- p: F.value.prefix,
1419
- v: D(s)(K.value),
1420
- s: F.value.suffix,
1421
- r: N.value.style.legend.roundingValue
1422
- }))), 5)),
1423
- v("div", gt, [v("div", {
1424
- class: "vue-ui-heatmap-gauge",
1425
- style: x({ background: `linear-gradient(to bottom, ${P.value.colors.hot}, ${P.value.colors.cold})` })
1426
- }, [We(v("div", {
1427
- class: "vue-ui-heatmap-gauge-indicator",
1428
- "data-value": D(u)(P.value.value.formatter, D(s)(Q.value), D(t)({
1429
- p: F.value.prefix,
1430
- v: D(s)(Q.value),
1431
- s: F.value.suffix,
1432
- r: N.value.style.legend.roundingValue
1433
- })),
1434
- style: x({
1435
- position: "absolute",
1436
- width: "100%",
1437
- height: "2px",
1438
- background: [void 0, null].includes(Q.value) ? "transparent" : D(f)(qn.value.datapoint.color),
1439
- top: `${Rn(Q.value)}%`,
1440
- transition: "all 0.2s ease-in-out",
1441
- "--background-color": N.value.style.backgroundColor,
1442
- "--gauge-arrow-color": D(f)(N.value.style.backgroundColor),
1443
- "--gauge-arrow-text-color": D(f)(N.value.style.backgroundColor),
1444
- "--gauge-arrow-value": Q.value,
1445
- "--gauge-arrow-font-size": N.value.style.legend.fontSize + "px"
1446
- })
1447
- }, [v("div", vt, E(D(u)(P.value.value.formatter, D(s)(Q.value), D(t)({
1448
- p: F.value.prefix,
1449
- v: D(s)(Q.value),
1450
- s: F.value.suffix,
1451
- r: N.value.style.legend.roundingValue
1452
- }))), 1)], 12, _t), [[Ve, ![void 0, null].includes(Q.value)]])], 4)]),
1453
- D(dn) ? g("", !0) : (S(), _("div", {
1454
- key: 1,
1455
- class: "vue-ui-heatmap-legend-label-min",
1456
- style: x({
1457
- fontSize: N.value.style.legend.fontSize + "px",
1458
- color: N.value.style.legend.color
1459
- })
1460
- }, E(D(u)(P.value.value.formatter, D(s)(q.value), D(t)({
1461
- p: F.value.prefix,
1462
- v: D(s)(q.value),
1463
- s: F.value.suffix,
1464
- r: N.value.style.legend.roundingValue
1465
- }))), 5))
1466
- ], 4)) : g("", !0),
1467
- n.$slots.hint ? (S(), _("div", yt, [T(n.$slots, "hint", b(y({
1468
- hint: N.value.a11y.translations.keyboardNavigation,
1469
- isVisible: sn.value
1470
- })), void 0, !0)])) : g("", !0)
1471
- ], 2),
1472
- n.$slots.watermark ? (S(), _("div", bt, [T(n.$slots, "watermark", b(y({ isPrinting: D(bn) || D(xn) || D(gr) || D(_r) })), void 0, !0)])) : g("", !0),
1473
- n.$slots.source ? (S(), _("div", {
1474
- key: 6,
1475
- ref_key: "source",
1476
- ref: tn,
1477
- dir: "auto"
1478
- }, [T(n.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1479
- ke(D(Ye), {
1480
- teleportTo: N.value.style.tooltip.teleportTo,
1481
- show: z.value.showTooltip && Rt.value,
1482
- backgroundColor: N.value.style.tooltip.backgroundColor,
1483
- color: N.value.style.tooltip.color,
1484
- borderRadius: N.value.style.tooltip.borderRadius,
1485
- borderColor: N.value.style.tooltip.borderColor,
1486
- borderWidth: N.value.style.tooltip.borderWidth,
1487
- fontSize: N.value.style.tooltip.fontSize,
1488
- backgroundOpacity: N.value.style.tooltip.backgroundOpacity,
1489
- position: N.value.style.tooltip.position,
1490
- offsetX: N.value.style.tooltip.offsetX,
1491
- offsetY: N.value.style.tooltip.offsetY,
1492
- parent: A.value,
1493
- content: zt.value,
1494
- isFullscreen: $.value,
1495
- isCustom: N.value.style.tooltip.customFormat && typeof N.value.style.tooltip.customFormat == "function",
1496
- smooth: N.value.style.tooltip.smooth,
1497
- backdropFilter: N.value.style.tooltip.backdropFilter,
1498
- smoothForce: N.value.style.tooltip.smoothForce,
1499
- smoothSnapThreshold: N.value.style.tooltip.smoothSnapThreshold,
1500
- isA11yMode: on.value === "keyboard",
1501
- a11yPosition: an.value
1502
- }, {
1503
- "tooltip-before": O(() => [T(n.$slots, "tooltip-before", b(y({ ...qn.value })), void 0, !0)]),
1504
- tooltip: O(() => [T(n.$slots, "tooltip", b(y({ ...qn.value })), void 0, !0)]),
1505
- "tooltip-after": O(() => [T(n.$slots, "tooltip-after", b(y({ ...qn.value })), void 0, !0)]),
1506
- _: 3
1507
- }, 8, [
1508
- "teleportTo",
1509
- "show",
1510
- "backgroundColor",
1511
- "color",
1512
- "borderRadius",
1513
- "borderColor",
1514
- "borderWidth",
1515
- "fontSize",
1516
- "backgroundOpacity",
1517
- "position",
1518
- "offsetX",
1519
- "offsetY",
1520
- "parent",
1521
- "content",
1522
- "isFullscreen",
1523
- "isCustom",
1524
- "smooth",
1525
- "backdropFilter",
1526
- "smoothForce",
1527
- "smoothSnapThreshold",
1528
- "isA11yMode",
1529
- "a11yPosition"
1530
- ]),
1531
- It.value && N.value.userOptions.buttons.table ? (S(), Ee(Le(dr.value.component), je({ key: 7 }, dr.value.props, {
1532
- ref_key: "tableUnit",
1533
- ref: Gt,
1534
- onClose: pr
1535
- }), De({
1536
- content: O(() => [v("div", {
1537
- ref_key: "tableContainer",
1538
- ref: Ht,
1539
- class: "vue-ui-heatmap-table atom-data-table",
1540
- style: x(`${N.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
1541
- }, [v("div", {
1542
- style: x(`width:100%;overflow-x:auto;position:relative;${N.value.table.useDialog ? "" : "padding-top:36px"};`),
1543
- class: Ne({ "vue-ui-responsive": D(fr) })
1544
- }, [N.value.table.useDialog ? g("", !0) : (S(), _("div", {
1545
- key: 0,
1546
- role: "button",
1547
- tabindex: "0",
1548
- style: x(`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:${N.value.table.th.backgroundColor};`),
1549
- onClick: pr,
1550
- onKeypress: Ge(pr, ["enter"])
1551
- }, [ke(D(Dt), {
1552
- name: "close",
1553
- stroke: N.value.table.th.color,
1554
- "stroke-width": 2
1555
- }, null, 8, ["stroke"])], 36)), v("table", xt, [
1556
- N.value.table.useDialog ? g("", !0) : (S(), _("caption", {
1557
- key: 0,
1558
- style: x(`backgroundColor:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`)
1559
- }, [Oe(E(N.value.style.title.text) + " ", 1), N.value.style.title.subtitle.text ? (S(), _("span", St, E(N.value.style.title.subtitle.text), 1)) : g("", !0)], 4)),
1560
- v("thead", null, [v("tr", {
1561
- role: "row",
1562
- style: x(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
1563
- }, [v("th", { style: x(`outline:${N.value.table.th.outline};padding-right:6px`) }, null, 4), (S(!0), _(m, null, w(e.dataset, (e, t) => (S(), _("th", {
1564
- align: "right",
1565
- style: x(`outline:${N.value.table.th.outline};padding-right:6px`)
1566
- }, E(e.name), 5))), 256))], 4)]),
1567
- v("tbody", null, [(S(!0), _(m, null, w(X.value.xLabels, (n, r) => (S(), _("tr", {
1568
- role: "row",
1569
- class: Ne({
1570
- "vue-ui-data-table__tbody__row": !0,
1571
- "vue-ui-data-table__tbody__row-even": r % 2 == 0,
1572
- "vue-ui-data-table__tbody__row-odd": r % 2 != 0
1573
- }),
1574
- style: x(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
1575
- }, [v("td", {
1576
- "data-cell": N.value.table.colNames.xAxis,
1577
- class: "vue-ui-data-table__tbody__td",
1578
- style: x(`outline:${N.value.table.td.outline}`)
1579
- }, [v("div", wt, E(n), 1)], 12, Ct), (S(!0), _(m, null, w(e.dataset, (n, i) => (S(), _("td", {
1580
- class: "vue-ui-data-table__tbody__td",
1581
- "data-cell": e.dataset[i].name,
1582
- style: x(`outline:${N.value.table.td.outline}`)
1583
- }, [v("div", Et, E(isNaN(n.values[r]) ? "-" : D(t)({
1584
- p: F.value.prefix,
1585
- v: n.values[r],
1586
- s: F.value.suffix,
1587
- r: N.value.table.td.roundingValue
1588
- })), 1)], 12, Tt))), 256))], 6))), 256))])
1589
- ])], 6)], 4)]),
1590
- _: 2
1591
- }, [N.value.table.useDialog ? {
1592
- name: "title",
1593
- fn: O(() => [Oe(E(dr.value.title), 1)]),
1594
- key: "0"
1595
- } : void 0, N.value.table.useDialog ? {
1596
- name: "actions",
1597
- fn: O(() => [v("button", {
1598
- tabindex: "0",
1599
- class: "vue-ui-user-options-button",
1600
- onClick: r[0] ||= (e) => er(N.value.userOptions.callbacks.csv),
1601
- style: x({ cursor: cn.value ? "pointer" : "default" })
1602
- }, [ke(D(Dt), {
1603
- name: "fileCsv",
1604
- stroke: dr.value.props.color
1605
- }, null, 8, ["stroke"])], 4)]),
1606
- key: "1"
1607
- } : void 0]), 1040)) : g("", !0),
1608
- T(n.$slots, "skeleton", {}, () => [D(dn) ? (S(), Ee(ue, { key: 0 })) : g("", !0)], !0)
1609
- ], 46, Xe));
1610
- }
1611
- }, [["__scopeId", "data-v-73e24ad6"]]);
1612
- //#endregion
1613
- export { Ye as n, Dt as t };