vue-data-ui 3.25.5 → 3.25.7

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,1558 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, $t as n, Ct as r, D as i, Pt as a, X as o, Zt as s, b as c, ht as l, i as u, lt as d, nt as f, q as p, r as m, t as ee, xt as te } from "./lib-Dql7cqyA.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-CIQZ6_r7.js";
6
+ import { t as oe } from "./usePrinter-DISD7q5m.js";
7
+ import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as le } from "./useNestedProp-Chvyfpl-.js";
9
+ import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as de } from "./useChartExport-iwOqiIWX.js";
11
+ import { t as fe } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as pe } from "./img-DhGApYG0.js";
13
+ import { n as me } from "./Title-CPHi-evi.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-BSmBUjwZ.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 we, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as Oe, guardReactiveProps as b, mergeProps as ke, nextTick as Ae, normalizeClass as je, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Me, onMounted as Ne, openBlock as C, reactive as Pe, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as D, toRefs as Le, unref as O, useCssVars as Re, vShow as ze, watch as Be, watchEffect as Ve, withCtx as k, withDirectives as He, withKeys as Ue } from "vue";
23
+ //#region src/useLabelObserverEfffect.js
24
+ function We({ 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
+ Ve((t) => {
42
+ let n = e.value;
43
+ if (!n) return;
44
+ let r = !1;
45
+ (async () => {
46
+ await Ae();
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 Ge = {
93
+ mounted(e, t) {
94
+ Ke(e, t.value);
95
+ },
96
+ updated(e, t) {
97
+ Ke(e, t.value);
98
+ }
99
+ };
100
+ function Ke(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 qe = /* @__PURE__ */ e({ default: () => Tt }), Je = ["id"], Ye = ["id"], Xe = [
126
+ "xmlns",
127
+ "aria-describedby",
128
+ "viewBox"
129
+ ], Ze = [
130
+ "x",
131
+ "y",
132
+ "width",
133
+ "height"
134
+ ], Qe = [
135
+ "x",
136
+ "y",
137
+ "height",
138
+ "width",
139
+ "fill",
140
+ "stroke",
141
+ "stroke-width"
142
+ ], $e = [
143
+ "x",
144
+ "y",
145
+ "height",
146
+ "width",
147
+ "fill",
148
+ "stroke",
149
+ "stroke-width"
150
+ ], et = [
151
+ "x",
152
+ "y",
153
+ "width",
154
+ "height",
155
+ "fill",
156
+ "stroke",
157
+ "stroke-width"
158
+ ], tt = [
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
+ ], nt = [
172
+ "font-size",
173
+ "font-weight",
174
+ "fill",
175
+ "x",
176
+ "y"
177
+ ], rt = [
178
+ "x",
179
+ "y",
180
+ "width",
181
+ "height",
182
+ "fill",
183
+ "stroke",
184
+ "stroke-width"
185
+ ], it = [
186
+ "x",
187
+ "y",
188
+ "width",
189
+ "height",
190
+ "fill",
191
+ "stroke",
192
+ "stroke-width"
193
+ ], at = [
194
+ "font-size",
195
+ "fill",
196
+ "x",
197
+ "y",
198
+ "font-weight"
199
+ ], ot = [
200
+ "font-size",
201
+ "fill",
202
+ "x",
203
+ "y",
204
+ "font-weight"
205
+ ], st = [
206
+ "text-anchor",
207
+ "font-size",
208
+ "fill",
209
+ "font-weight",
210
+ "transform"
211
+ ], ct = [
212
+ "text-anchor",
213
+ "font-size",
214
+ "fill",
215
+ "font-weight",
216
+ "transform"
217
+ ], lt = { key: 6 }, ut = [
218
+ "x",
219
+ "y",
220
+ "width",
221
+ "height",
222
+ "stroke",
223
+ "stroke-width"
224
+ ], dt = { key: 7 }, ft = [
225
+ "x1",
226
+ "x2",
227
+ "y1",
228
+ "y2",
229
+ "stroke",
230
+ "stroke-width",
231
+ "stroke-dasharray"
232
+ ], pt = [
233
+ "x1",
234
+ "x2",
235
+ "y1",
236
+ "y2",
237
+ "stroke",
238
+ "stroke-width",
239
+ "stroke-dasharray"
240
+ ], mt = { class: "vue-ui-heatmap-legend-gauge-right" }, ht = ["data-value"], gt = { class: "vue-ui-heatmap-gauge-indicator-value" }, _t = {
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
+ }, vt = {
251
+ key: 5,
252
+ class: "vue-data-ui-watermark"
253
+ }, yt = { class: "vue-ui-data-table" }, bt = { key: 0 }, xt = ["data-cell"], St = { style: {
254
+ display: "flex",
255
+ "align-items": "center",
256
+ gap: "5px",
257
+ "justify-content": "flex-end",
258
+ width: "100%",
259
+ "padding-right": "3px"
260
+ } }, Ct = ["data-cell"], wt = { style: {
261
+ display: "flex",
262
+ "align-items": "center",
263
+ gap: "5px",
264
+ "justify-content": "flex-end",
265
+ width: "100%",
266
+ "padding-right": "3px"
267
+ } }, Tt = /*#__PURE__*/ he({
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: he, emit: Ke }) {
285
+ Re((e) => ({ v057989b1: e.tdo }));
286
+ let qe = Oe(() => import("./Tooltip-hhrkQ3Lk.js")), Tt = Oe(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Et = Oe(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Dt = Oe(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ot = Oe(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), kt = Oe(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_heatmap: At } = ae(), { isThemeValid: jt, warnInvalidTheme: Mt } = ue(), A = e, Nt = Ke, Pt = g({
287
+ get() {
288
+ return !!A.dataset && A.dataset.length;
289
+ },
290
+ set(e) {
291
+ return e;
292
+ }
293
+ }), Ft = w(p()), j = w(null), It = w(!1), Lt = w(""), Rt = w(void 0), M = w(null), zt = w(0), Bt = w(null), Vt = w(0), Ht = w(null), Ut = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = w(null), Yt = w(null), Xt = w(null), Zt = w(null), Qt = w(null), $t = w(null), en = Ie(null), N = w(null), tn = w(null), nn = w({
294
+ x: 0,
295
+ y: 0
296
+ }), rn = w("pointer"), an = w(!1), P = w(hn()), F = g(() => P.value.style.layout.cells), I = g(() => P.value.style.layout.dataLabels), L = g(() => P.value.style.layout);
297
+ ne({
298
+ config: () => P.value,
299
+ dataset: () => A.dataset,
300
+ component: "VueUiHeatmap",
301
+ rules: [re.emptyArray, re.noHint]
302
+ });
303
+ let on = g(() => P.value.userOptions.useCursorPointer);
304
+ function sn() {
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 cn = g(() => s({
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: P.value.skeletonConfig ?? {}
340
+ })), { loading: ln, FINAL_DATASET: R, manualLoading: un } = se({
341
+ ...Le(A),
342
+ FINAL_CONFIG: P,
343
+ prepareConfig: hn,
344
+ callback: () => {
345
+ Promise.resolve().then(async () => {
346
+ await Ae(), j.value && n(j.value, {
347
+ delta: .1,
348
+ delay: 250
349
+ });
350
+ });
351
+ },
352
+ skeletonDataset: A.config?.skeletonDataset ?? sn(),
353
+ skeletonConfig: s({
354
+ defaultConfig: P.value,
355
+ userConfig: cn.value
356
+ })
357
+ }), { userOptionsVisible: dn, setUserOptionsVisibility: fn, keepUserOptionState: pn } = be({ config: P.value }), { svgRef: z } = xe({ config: P.value.style.title });
358
+ function mn(e) {
359
+ fn(e);
360
+ }
361
+ function hn() {
362
+ let e = le({
363
+ userConfig: A.config,
364
+ defaultConfig: At
365
+ }), t = {}, n = e.theme;
366
+ if (n) {
367
+ if (!jt.value(e)) Mt(e), t = e;
368
+ else {
369
+ let r = le({
370
+ userConfig: Ce[n] || A.config,
371
+ defaultConfig: e
372
+ });
373
+ t = { ...le({
374
+ userConfig: A.config,
375
+ defaultConfig: r
376
+ }) };
377
+ }
378
+ } else t = e;
379
+ return t;
380
+ }
381
+ Be(() => A.config, (e) => {
382
+ ln.value || (P.value = hn()), dn.value = !P.value.userOptions.showOnChartHover, Cn(), Vt.value += 1, B.value.showTable = P.value.table.show, B.value.showTooltip = P.value.style.tooltip.show, wn.value = L.value.width, Tn.value = L.value.height;
383
+ }, { deep: !0 }), Be(() => A.dataset, (e) => {
384
+ Array.isArray(e) && e.length > 0 && (un.value = !1), Cn();
385
+ }, { deep: !0 });
386
+ let { isPrinting: gn, isImaging: _n, generatePdf: vn, generateImage: yn } = oe({
387
+ elementId: `heatmap__${Ft.value}`,
388
+ fileName: P.value.style.title.text || "vue-ui-heatmap",
389
+ options: P.value.userOptions.print
390
+ }), bn = g(() => P.value.userOptions.show && !P.value.style.title.text), B = w({
391
+ showTable: P.value.table.show,
392
+ showTooltip: P.value.style.tooltip.show
393
+ });
394
+ Be(P, () => {
395
+ B.value = {
396
+ showTable: P.value.table.show,
397
+ showTooltip: P.value.style.tooltip.show
398
+ };
399
+ }, { immediate: !0 });
400
+ let xn = g(() => P.value.table.responsiveBreakpoint), V = w(null), Sn = g(() => P.value.debug);
401
+ function Cn() {
402
+ if (a(A.dataset) && (f({
403
+ componentName: "VueUiHeatmap",
404
+ type: "dataset",
405
+ debug: Sn.value
406
+ }), Pt.value = !1, un.value = !0), a(A.dataset) || (un.value = P.value.loading), P.value.responsive) {
407
+ let e = ge(() => {
408
+ let { width: e, height: t } = _e({
409
+ chart: j.value,
410
+ title: P.value.style.title.text ? Gt.value : null,
411
+ source: $t.value,
412
+ noTitle: Kt.value
413
+ });
414
+ requestAnimationFrame(() => {
415
+ wn.value = e, Tn.value = t;
416
+ });
417
+ });
418
+ V.value && (en.value && V.value.unobserve(en.value), V.value.disconnect()), V.value = new ResizeObserver(e), en.value = j.value.parentNode, V.value.observe(en.value);
419
+ }
420
+ }
421
+ Me(() => {
422
+ V.value && (en.value && V.value.unobserve(en.value), V.value.disconnect());
423
+ }), Ne(() => {
424
+ Cn();
425
+ });
426
+ let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), wn = w(L.value.width), Tn = w(L.value.height), U = g(() => ({
427
+ width: Math.max(10, wn.value),
428
+ height: Math.max(10, Tn.value)
429
+ })), En = w(0);
430
+ We({
431
+ elementRef: Xt,
432
+ callback: ge((e) => {
433
+ e !== En.value && (En.value = e);
434
+ }, 100),
435
+ attr: "height"
436
+ });
437
+ let W = w(0);
438
+ We({
439
+ elementRef: Jt,
440
+ callback: ge((e) => {
441
+ e !== W.value && (W.value = e);
442
+ }, 100),
443
+ attr: "width"
444
+ });
445
+ let Dn = w(0);
446
+ We({
447
+ elementRef: Zt,
448
+ callback: ge((e) => {
449
+ e !== Dn.value && (Dn.value = e);
450
+ }, 100),
451
+ attr: "height"
452
+ }), Me(() => {
453
+ En.value = 0, W.value = 0, Dn.value = 0;
454
+ });
455
+ let G = g(() => Math.min(U.value.height, U.value.width) / 1e3 * F.value.spacing), K = g(() => {
456
+ let e = 0;
457
+ P.value.style.legend.show && (e = P.value.style.legend.width);
458
+ let t = L.value.padding, n = I.value.xAxis.fontSize / 3, r = I.value.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom - En.value - n, a = U.value.width / 60, o = {
459
+ x: G.value * H.value,
460
+ y: G.value * ((R.value || []).length + 1)
461
+ }, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - Dn.value - r - F.value.columnTotal.value.offsetY, l = {
462
+ width: Math.max(3, s / H.value),
463
+ height: Math.max(3, c / (R.value.length ?? 1))
464
+ };
465
+ return {
466
+ top: t.top + En.value + a + n,
467
+ topLabelsHeight: En.value,
468
+ sumCellXHeight: a,
469
+ height: c,
470
+ left: t.left + W.value + a / 2,
471
+ right: t.right - e,
472
+ bottom: U.value.height - t.bottom - Dn.value,
473
+ width: s,
474
+ cellSize: l
475
+ };
476
+ }), q = g(() => Math.max(...R.value.flatMap((e) => e.values))), On = g(() => Math.min(...R.value.flatMap((e) => e.values))), J = g(() => {
477
+ let e = R.value.flatMap((e) => e.values);
478
+ return e.reduce((e, t) => e + t, 0) / e.length;
479
+ }), kn = w([]), An = w([]), jn = 0;
480
+ Ve(() => {
481
+ let e = ++jn;
482
+ (async () => {
483
+ let t = I.value.yAxis, n = await ie({
484
+ values: t.values.length ? t.values : R.value.map((e) => e.name),
485
+ maxDatapoints: R.value.length,
486
+ formatter: t.datetimeFormatter,
487
+ start: 0,
488
+ end: R.value.length
489
+ });
490
+ e === jn && (kn.value = n);
491
+ })();
492
+ });
493
+ let Mn = 0;
494
+ Ve(() => {
495
+ let e = ++Mn;
496
+ (async () => {
497
+ let t = I.value.xAxis, n = await ie({
498
+ values: t.values,
499
+ maxDatapoints: H.value,
500
+ formatter: t.datetimeFormatter,
501
+ start: 0,
502
+ end: H.value
503
+ });
504
+ e === Mn && (An.value = n);
505
+ })();
506
+ });
507
+ function Nn(e, t, n) {
508
+ return t === n ? F.value.colors.hot : te(F.value.colors.cold, F.value.colors.hot, t, n, e);
509
+ }
510
+ let Y = g(() => {
511
+ let e = kn.value.map((e) => e.text), t = An.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 = [];
512
+ 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));
513
+ let o = Math.max(...a), s = Math.min(...a);
514
+ return {
515
+ yTotals: n.map((e) => ({
516
+ total: e,
517
+ proportion: isNaN(e / r) ? 0 : e / r,
518
+ color: Nn(e, i, r)
519
+ })),
520
+ xTotals: a.map((e) => ({
521
+ total: e,
522
+ proportion: isNaN(e / o) ? 0 : e / o,
523
+ color: Nn(e, s, o)
524
+ })),
525
+ yLabels: e,
526
+ xLabels: t.slice(0, H.value)
527
+ };
528
+ }), X = g(() => (R.value.forEach((e, t) => {
529
+ l({
530
+ datasetObject: e,
531
+ requiredAttributes: ["values"]
532
+ }).forEach((e) => {
533
+ f({
534
+ componentName: "VueUiHeatmap",
535
+ type: "datasetSerieAttribute",
536
+ property: "values",
537
+ index: t,
538
+ debug: Sn.value
539
+ });
540
+ });
541
+ }), R.value.map((e, t) => ({
542
+ ...e,
543
+ temperatures: (e.values || []).map((e, n) => e >= J.value ? {
544
+ side: "up",
545
+ color: Nn(e, On.value, q.value),
546
+ 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)),
547
+ value: e,
548
+ yAxisName: Y.value.yLabels[t],
549
+ xAxisName: Y.value.xLabels[n],
550
+ id: `vue-data-ui-heatmap-cell-${p()}`
551
+ } : {
552
+ side: "down",
553
+ ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
554
+ color: Nn(e, On.value, q.value),
555
+ value: e,
556
+ yAxisName: Y.value.yLabels[t],
557
+ xAxisName: Y.value.xLabels[n],
558
+ id: `vue-data-ui-heatmap-cell-${p()}`
559
+ })
560
+ })))), Pn = g(() => R.value.length), Fn = Pe(Array(Pn.value * H.value || 1).fill(!1)), In = g(() => Fn.some((e) => e));
561
+ function Ln(e, t) {
562
+ Fn[e] = t;
563
+ }
564
+ let Rn = Pe(Array(Pn.value * H.value || 1).fill(!1)), zn = g(() => Rn.some((e) => e));
565
+ function Bn(e, t) {
566
+ Rn[e] = t;
567
+ }
568
+ let Z = w(null), Vn = w(null);
569
+ function Hn() {
570
+ It.value = !1, Rt.value = void 0, Z.value = null, M.value = null, N.value = null, tn.value = null;
571
+ }
572
+ function Un(e) {
573
+ if (!z.value || !e) return;
574
+ let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
575
+ if (!t) return;
576
+ let n = t.getBoundingClientRect();
577
+ nn.value = {
578
+ x: n.left + n.width / 2,
579
+ y: n.top + n.height / 2
580
+ };
581
+ }
582
+ function Wn(e, t, n, i, a = "pointer", s = null) {
583
+ if (P.value.events.datapointEnter && P.value.events.datapointEnter({
584
+ datapoint: e,
585
+ seriesIndex: t
586
+ }), !B.value.showTooltip) return;
587
+ rn.value = a, N.value = s, tn.value = e.id, M.value = {
588
+ x: n,
589
+ y: i
590
+ };
591
+ let { value: c, yAxisName: l, xAxisName: f, id: p } = e;
592
+ Rt.value = p, Z.value = c, Vn.value = {
593
+ datapoint: e,
594
+ seriesIndex: t,
595
+ series: X.value,
596
+ config: P.value
597
+ }, It.value = !0;
598
+ let m = "", ee = P.value.style.tooltip.customFormat;
599
+ r(ee) && d(() => ee({
600
+ datapoint: e,
601
+ seriesIndex: t,
602
+ series: X.value,
603
+ config: P.value
604
+ })) ? Lt.value = ee({
605
+ datapoint: e,
606
+ seriesIndex: t,
607
+ series: X.value,
608
+ config: P.value
609
+ }) : (m += `<div>${l} ${f ? l ? ` - ${f}` : `${f}` : ""}</div>`, m += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${Nn(c, On.value, q.value)}">⬤</span><span>${isNaN(c) ? "-" : u(F.value.value.formatter, c, o({
610
+ p: I.value.prefix,
611
+ v: c,
612
+ s: I.value.suffix,
613
+ r: P.value.style.tooltip.roundingValue
614
+ }), {
615
+ datapoint: e,
616
+ seriesIndex: t
617
+ })}</span></div>`, Lt.value = `<div style="font-size:${P.value.style.tooltip.fontSize}px">${m}</div>`), a === "keyboard" && Ae(() => {
618
+ Un(e.id);
619
+ });
620
+ }
621
+ function Gn({ datapoint: e, seriesIndex: t }) {
622
+ P.value.events.datapointLeave && P.value.events.datapointLeave({
623
+ datapoint: e,
624
+ seriesIndex: t
625
+ }), (tn.value !== e.id || rn.value !== "keyboard") && (It.value = !1, Rt.value = void 0, Z.value = null, M.value = null);
626
+ }
627
+ function Kn(e) {
628
+ return u(F.value.value.formatter, Y.value.yTotals[e].total, o({
629
+ p: I.value.prefix,
630
+ v: Y.value.yTotals[e].total,
631
+ s: I.value.suffix,
632
+ r: F.value.value.roundingValue
633
+ }), {
634
+ datapoint: Y.value.yTotals[e],
635
+ rowIndex: e
636
+ });
637
+ }
638
+ function qn(e) {
639
+ return u(F.value.value.formatter, Y.value.xTotals[e].total, o({
640
+ p: I.value.prefix,
641
+ v: Y.value.xTotals[e].total,
642
+ s: I.value.suffix,
643
+ r: F.value.value.roundingValue
644
+ }), {
645
+ datapoint: Y.value.xTotals[e],
646
+ colIndex: e
647
+ });
648
+ }
649
+ g(() => ({
650
+ head: R.value.map((e) => ({ name: e.name })),
651
+ body: R.value.map((e) => e.values)
652
+ }));
653
+ function Jn(e = null) {
654
+ Ae(() => {
655
+ let n = ["", ...R.value.map((e, t) => e.name)], r = [];
656
+ for (let e = 0; e < Y.value.xLabels.length; e += 1) {
657
+ let t = [Y.value.xLabels[e]];
658
+ for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
659
+ r.push(t);
660
+ }
661
+ let a = [
662
+ [P.value.style.title.text],
663
+ [P.value.style.title.subtitle.text],
664
+ [
665
+ [""],
666
+ [""],
667
+ [""]
668
+ ],
669
+ n
670
+ ].concat(r), o = i(a);
671
+ e ? e(o) : t({
672
+ csvContent: o,
673
+ title: P.value.style.title.text || "vue-ui-heatmap"
674
+ });
675
+ });
676
+ }
677
+ let Q = w(!1);
678
+ function Yn(e) {
679
+ Q.value = e, zt.value += 1;
680
+ }
681
+ function Xn() {
682
+ B.value.showTable = !B.value.showTable;
683
+ }
684
+ function Zn() {
685
+ B.value.showTooltip = !B.value.showTooltip;
686
+ }
687
+ let Qn = w(!1);
688
+ function $n() {
689
+ Qn.value = !Qn.value;
690
+ }
691
+ function er(e, t) {
692
+ P.value.events.datapointClick && P.value.events.datapointClick({
693
+ datapoint: e,
694
+ seriesIndex: t
695
+ }), Nt("selectDatapoint", e);
696
+ }
697
+ function tr() {
698
+ return X.value;
699
+ }
700
+ async function nr({ scale: e = 2 } = {}) {
701
+ if (!j.value) return;
702
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
703
+ domElement: j.value,
704
+ base64: !0,
705
+ img: !0,
706
+ scale: e
707
+ });
708
+ return {
709
+ imageUri: i,
710
+ base64: a,
711
+ title: P.value.style.title.text,
712
+ width: t,
713
+ height: n,
714
+ aspectRatio: r
715
+ };
716
+ }
717
+ let rr = g(() => ({
718
+ start: 0,
719
+ end: H.value
720
+ })), ir = g(() => Y.value.xLabels);
721
+ fe({
722
+ timeLabelsEls: Xt,
723
+ timeLabels: ir,
724
+ slicer: rr,
725
+ configRef: P,
726
+ rotationPath: [
727
+ "style",
728
+ "layout",
729
+ "dataLabels",
730
+ "xAxis",
731
+ "rotation"
732
+ ],
733
+ autoRotatePath: [
734
+ "style",
735
+ "layout",
736
+ "dataLabels",
737
+ "xAxis",
738
+ "autoRotate",
739
+ "enable"
740
+ ],
741
+ isAutoSize: !1,
742
+ targetClass: ".vue-ui-heatmap-col-name",
743
+ rotation: I.value.xAxis.autoRotate.angle,
744
+ width: wn,
745
+ height: Tn
746
+ }), fe({
747
+ timeLabelsEls: Zt,
748
+ timeLabels: ir,
749
+ slicer: rr,
750
+ configRef: P,
751
+ rotationPath: [
752
+ "style",
753
+ "layout",
754
+ "cells",
755
+ "columnTotal",
756
+ "value",
757
+ "rotation"
758
+ ],
759
+ autoRotatePath: [
760
+ "style",
761
+ "layout",
762
+ "cells",
763
+ "columnTotal",
764
+ "value",
765
+ "autoRotate",
766
+ "enable"
767
+ ],
768
+ isAutoSize: !1,
769
+ targetClass: ".vue-ui-heatmap-col-total",
770
+ rotation: F.value.columnTotal.value.autoRotate.angle,
771
+ width: wn,
772
+ height: Tn
773
+ });
774
+ let ar = g(() => {
775
+ let e = P.value.table.useDialog && !P.value.table.show, t = B.value.showTable;
776
+ return {
777
+ component: e ? kt : ve,
778
+ title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
779
+ props: e ? {
780
+ backgroundColor: P.value.table.th.backgroundColor,
781
+ color: P.value.table.th.color,
782
+ headerColor: P.value.table.th.color,
783
+ headerBg: P.value.table.th.backgroundColor,
784
+ isFullscreen: Q.value,
785
+ fullscreenParent: j.value,
786
+ forcedWidth: Math.min(800, window.innerWidth * .8),
787
+ isCursorPointer: on.value
788
+ } : {
789
+ hideDetails: !0,
790
+ config: {
791
+ open: t,
792
+ maxHeight: 1e4,
793
+ body: {
794
+ backgroundColor: P.value.style.backgroundColor,
795
+ color: P.value.style.color
796
+ },
797
+ head: {
798
+ backgroundColor: P.value.style.backgroundColor,
799
+ color: P.value.style.color
800
+ }
801
+ }
802
+ }
803
+ };
804
+ });
805
+ Be(() => B.value.showTable, async (e) => {
806
+ P.value.table.show || (e && P.value.table.useDialog && Ut.value ? (await Ae(), Ut.value.open()) : "close" in Ut.value && Ut.value.close());
807
+ });
808
+ let { isResponsive: or } = Se(Bt, xn);
809
+ function sr() {
810
+ B.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
811
+ }
812
+ let cr = g(() => P.value.style.backgroundColor), lr = g(() => P.value.style.title), { isCallbackImaging: ur, isCallbackSvg: dr, generateSvg: fr, onGenerateImage: pr } = de({
813
+ svg: z,
814
+ title: lr,
815
+ legend: null,
816
+ legendItems: null,
817
+ backgroundColor: cr,
818
+ getSvgCallback: () => P.value.userOptions.callbacks.svg,
819
+ generateImage: yn
820
+ });
821
+ async function mr() {
822
+ if (Nt("copyAlt", {
823
+ config: P.value,
824
+ dataset: X.value
825
+ }), !P.value.userOptions.callbacks.altCopy) {
826
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
827
+ return;
828
+ }
829
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
830
+ config: P.value,
831
+ dataset: X.value
832
+ }));
833
+ }
834
+ function hr(e, t) {
835
+ let n = X.value[e];
836
+ if (!n) return null;
837
+ let r = n.temperatures[t];
838
+ return r ? {
839
+ cell: r,
840
+ rowIndex: e,
841
+ columnIndex: t
842
+ } : null;
843
+ }
844
+ function gr(e, t) {
845
+ let n = 0;
846
+ for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
847
+ return n + t;
848
+ }
849
+ function _r() {
850
+ N.value = null, tn.value = null, an.value = !0;
851
+ }
852
+ function vr() {
853
+ Hn(), an.value = !1;
854
+ }
855
+ function yr(e) {
856
+ if (!z.value || Qn.value || document.activeElement !== z.value || !$.value.length) return;
857
+ 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";
858
+ if (!t && !n && !r && !i && !a && !o) return;
859
+ if (e.preventDefault(), e.stopPropagation(), o) {
860
+ Hn();
861
+ return;
862
+ }
863
+ if (a) {
864
+ if (N.value === null) return;
865
+ let e = $.value[N.value];
866
+ if (!e) return;
867
+ er(e.cell, e.rowIndex);
868
+ return;
869
+ }
870
+ let s = N.value === null ? null : $.value[N.value];
871
+ if (!s) {
872
+ let e = Rt.value ? $.value.findIndex((e) => e.cell.id === Rt.value) : null;
873
+ if (e !== null && e >= 0 && e < $.value.length) {
874
+ let a = $.value[e];
875
+ if (!a) return;
876
+ let o = a.rowIndex, s = a.columnIndex;
877
+ n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
878
+ let c = xr.value.rowCount;
879
+ if (c <= 0) return;
880
+ o < 0 && (o = c - 1), o >= c && (o = 0);
881
+ let l = X.value[o];
882
+ if (!l || !l.temperatures.length) return;
883
+ let u = l.temperatures.length;
884
+ s < 0 && (s = u - 1), s >= u && (s = 0);
885
+ let d = hr(o, s);
886
+ if (!d) return;
887
+ let f = gr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, m = K.value.top + K.value.cellSize.height * d.rowIndex;
888
+ Wn(d.cell, d.rowIndex, p, m, "keyboard", f);
889
+ return;
890
+ }
891
+ let a = $.value[0];
892
+ if (!a) return;
893
+ let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
894
+ Wn(a.cell, a.rowIndex, o, s, "keyboard", 0);
895
+ return;
896
+ }
897
+ let c = s.rowIndex, l = s.columnIndex;
898
+ n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
899
+ let u = xr.value.rowCount;
900
+ if (u <= 0) return;
901
+ c < 0 && (c = u - 1), c >= u && (c = 0);
902
+ let d = X.value[c];
903
+ if (!d || !d.temperatures.length) return;
904
+ let f = d.temperatures.length;
905
+ l < 0 && (l = f - 1), l >= f && (l = 0);
906
+ let p = hr(c, l);
907
+ if (!p) return;
908
+ let m = gr(c, l), ee = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
909
+ Wn(p.cell, p.rowIndex, ee, te, "keyboard", m);
910
+ }
911
+ let br = g(() => ({
912
+ headers: [P.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
913
+ rows: Y.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
914
+ let n = e.values?.[t];
915
+ return isNaN(n) ? "-" : o({
916
+ p: I.value.prefix,
917
+ v: n,
918
+ s: I.value.suffix,
919
+ r: P.value.table.td.roundingValue
920
+ });
921
+ })])
922
+ })), xr = g(() => ({
923
+ rowCount: X.value.length,
924
+ columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
925
+ })), $ = g(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
926
+ cell: e,
927
+ rowIndex: t,
928
+ columnIndex: n
929
+ }))));
930
+ return he({
931
+ getData: tr,
932
+ getImage: nr,
933
+ generatePdf: vn,
934
+ generateCsv: Jn,
935
+ generateImage: yn,
936
+ generateSvg: fr,
937
+ toggleTable: Xn,
938
+ toggleTooltip: Zn,
939
+ toggleAnnotator: $n,
940
+ toggleFullscreen: Yn,
941
+ copyAlt: mr
942
+ }), (t, n) => (C(), v("div", {
943
+ ref_key: "heatmapChart",
944
+ ref: j,
945
+ class: je(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
946
+ style: S(`font-family:${P.value.style.fontFamily};width:100%;${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.backgroundColor}`),
947
+ id: `heatmap__${Ft.value}`,
948
+ onMouseenter: n[1] ||= () => mn(!0),
949
+ onMouseleave: n[2] ||= () => {
950
+ mn(!1), an.value || Hn();
951
+ }
952
+ }, [
953
+ y("div", {
954
+ id: `chart-instructions-${Ft.value}`,
955
+ class: "sr-only"
956
+ }, [y("p", null, D(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
957
+ br.value?.rows?.length ? (C(), we(ye, {
958
+ key: 0,
959
+ uid: Ft.value,
960
+ head: br.value.headers,
961
+ body: br.value.rows,
962
+ notice: P.value.a11y.translations.tableAvailable,
963
+ caption: P.value.a11y.translations.tableCaption
964
+ }, null, 8, [
965
+ "uid",
966
+ "head",
967
+ "body",
968
+ "notice",
969
+ "caption"
970
+ ])) : _("", !0),
971
+ P.value.userOptions.buttons.annotator ? (C(), we(O(Et), {
972
+ key: 1,
973
+ svgRef: O(z),
974
+ backgroundColor: P.value.style.backgroundColor,
975
+ color: P.value.style.color,
976
+ active: Qn.value,
977
+ isCursorPointer: on.value,
978
+ palette: P.value.userOptions.annotatorPalette,
979
+ onClose: $n
980
+ }, {
981
+ "annotator-action-close": k(() => [E(t.$slots, "annotator-action-close", {}, void 0, !0)]),
982
+ "annotator-action-color": k(({ color: e }) => [E(t.$slots, "annotator-action-color", x(b({ color: e })), void 0, !0)]),
983
+ "annotator-action-draw": k(({ mode: e }) => [E(t.$slots, "annotator-action-draw", x(b({ mode: e })), void 0, !0)]),
984
+ "annotator-action-undo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-undo", x(b({ disabled: e })), void 0, !0)]),
985
+ "annotator-action-redo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-redo", x(b({ disabled: e })), void 0, !0)]),
986
+ "annotator-action-delete": k(({ disabled: e }) => [E(t.$slots, "annotator-action-delete", x(b({ disabled: e })), void 0, !0)]),
987
+ _: 3
988
+ }, 8, [
989
+ "svgRef",
990
+ "backgroundColor",
991
+ "color",
992
+ "active",
993
+ "isCursorPointer",
994
+ "palette"
995
+ ])) : _("", !0),
996
+ bn.value ? (C(), v("div", {
997
+ key: 2,
998
+ ref_key: "noTitle",
999
+ ref: Kt,
1000
+ class: "vue-data-ui-no-title-space",
1001
+ style: "height:36px; width: 100%;background:transparent"
1002
+ }, null, 512)) : _("", !0),
1003
+ P.value.style.title.text ? (C(), v("div", {
1004
+ key: 3,
1005
+ ref_key: "chartTitle",
1006
+ ref: Gt,
1007
+ style: "width:100%;background:transparent"
1008
+ }, [(C(), we(me, {
1009
+ key: `title_${Vt.value}`,
1010
+ config: {
1011
+ title: {
1012
+ cy: "heatmap-div-title",
1013
+ ...P.value.style.title
1014
+ },
1015
+ subtitle: {
1016
+ cy: "heatmap-div-subtitle",
1017
+ ...P.value.style.title.subtitle
1018
+ }
1019
+ }
1020
+ }, null, 8, ["config"]))], 512)) : _("", !0),
1021
+ P.value.userOptions.show && Pt.value && (O(pn) || O(dn)) ? (C(), we(O(Dt), {
1022
+ ref_key: "userOptionsRef",
1023
+ ref: Wt,
1024
+ key: `user_options_${zt.value}`,
1025
+ backgroundColor: P.value.style.backgroundColor,
1026
+ color: P.value.style.color,
1027
+ isImaging: O(_n),
1028
+ isPrinting: O(gn),
1029
+ uid: Ft.value,
1030
+ hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
1031
+ hasPdf: P.value.userOptions.buttons.pdf,
1032
+ hasImg: P.value.userOptions.buttons.img,
1033
+ hasSvg: P.value.userOptions.buttons.svg,
1034
+ hasXls: P.value.userOptions.buttons.csv,
1035
+ hasTable: P.value.userOptions.buttons.table,
1036
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
1037
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
1038
+ isFullscreen: Q.value,
1039
+ isTooltip: B.value.showTooltip,
1040
+ titles: { ...P.value.userOptions.buttonTitles },
1041
+ chartElement: j.value,
1042
+ position: P.value.userOptions.position,
1043
+ hasAnnotator: P.value.userOptions.buttons.annotator,
1044
+ isAnnotation: Qn.value,
1045
+ callbacks: P.value.userOptions.callbacks,
1046
+ printScale: P.value.userOptions.print.scale,
1047
+ tableDialog: P.value.table.useDialog,
1048
+ isCursorPointer: on.value,
1049
+ onToggleFullscreen: Yn,
1050
+ onGeneratePdf: O(vn),
1051
+ onGenerateCsv: Jn,
1052
+ onGenerateImage: O(pr),
1053
+ onGenerateSvg: O(fr),
1054
+ onToggleTable: Xn,
1055
+ onToggleTooltip: Zn,
1056
+ onToggleAnnotator: $n,
1057
+ onCopyAlt: mr,
1058
+ style: S({ visibility: O(pn) ? O(dn) ? "visible" : "hidden" : "visible" })
1059
+ }, Te({ _: 2 }, [
1060
+ t.$slots.menuIcon ? {
1061
+ name: "menuIcon",
1062
+ fn: k(({ isOpen: e, color: n }) => [E(t.$slots, "menuIcon", x(b({
1063
+ isOpen: e,
1064
+ color: n
1065
+ })), void 0, !0)]),
1066
+ key: "0"
1067
+ } : void 0,
1068
+ t.$slots.optionTooltip ? {
1069
+ name: "optionTooltip",
1070
+ fn: k(() => [E(t.$slots, "optionTooltip", {}, void 0, !0)]),
1071
+ key: "1"
1072
+ } : void 0,
1073
+ t.$slots.optionPdf ? {
1074
+ name: "optionPdf",
1075
+ fn: k(() => [E(t.$slots, "optionPdf", {}, void 0, !0)]),
1076
+ key: "2"
1077
+ } : void 0,
1078
+ t.$slots.optionCsv ? {
1079
+ name: "optionCsv",
1080
+ fn: k(() => [E(t.$slots, "optionCsv", {}, void 0, !0)]),
1081
+ key: "3"
1082
+ } : void 0,
1083
+ t.$slots.optionImg ? {
1084
+ name: "optionImg",
1085
+ fn: k(() => [E(t.$slots, "optionImg", {}, void 0, !0)]),
1086
+ key: "4"
1087
+ } : void 0,
1088
+ t.$slots.optionSvg ? {
1089
+ name: "optionSvg",
1090
+ fn: k(() => [E(t.$slots, "optionSvg", {}, void 0, !0)]),
1091
+ key: "5"
1092
+ } : void 0,
1093
+ t.$slots.optionTable ? {
1094
+ name: "optionTable",
1095
+ fn: k(() => [E(t.$slots, "optionTable", {}, void 0, !0)]),
1096
+ key: "6"
1097
+ } : void 0,
1098
+ t.$slots.optionFullscreen ? {
1099
+ name: "optionFullscreen",
1100
+ fn: k(({ toggleFullscreen: e, isFullscreen: n }) => [E(t.$slots, "optionFullscreen", x(b({
1101
+ toggleFullscreen: e,
1102
+ isFullscreen: n
1103
+ })), void 0, !0)]),
1104
+ key: "7"
1105
+ } : void 0,
1106
+ t.$slots.optionAnnotator ? {
1107
+ name: "optionAnnotator",
1108
+ fn: k(({ toggleAnnotator: e, isAnnotator: n }) => [E(t.$slots, "optionAnnotator", x(b({
1109
+ toggleAnnotator: e,
1110
+ isAnnotator: n
1111
+ })), void 0, !0)]),
1112
+ key: "8"
1113
+ } : void 0,
1114
+ t.$slots.optionAltCopy ? {
1115
+ name: "optionAltCopy",
1116
+ fn: k(({ altCopy: e }) => [E(t.$slots, "optionAltCopy", x(b({ altCopy: e })), void 0, !0)]),
1117
+ key: "9"
1118
+ } : void 0,
1119
+ t.$slots["custom-menu-before"] ? {
1120
+ name: "custom-menu-before",
1121
+ fn: k(() => [E(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1122
+ key: "10"
1123
+ } : void 0,
1124
+ t.$slots["custom-menu-after"] ? {
1125
+ name: "custom-menu-after",
1126
+ fn: k(() => [E(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1127
+ key: "11"
1128
+ } : void 0
1129
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : _("", !0),
1130
+ y("div", { class: je({
1131
+ "vue-ui-heatmap-chart-wrapper": !0,
1132
+ "vue-ui-heatmap-chart-wrapper-legend-right": P.value.style.legend.show
1133
+ }) }, [
1134
+ (C(), v("svg", {
1135
+ ref_key: "svgRef",
1136
+ ref: z,
1137
+ xmlns: O(ee),
1138
+ "aria-describedby": `chart-instructions-${Ft.value}`,
1139
+ class: je({
1140
+ "vue-data-ui-fullscreen--on": Q.value,
1141
+ "vue-data-ui-fulscreen--off": !Q.value
1142
+ }),
1143
+ viewBox: `0 0 ${U.value.width} ${U.value.height}`,
1144
+ width: "100%",
1145
+ style: S(`overflow: visible; background:transparent;color:${P.value.style.color}`),
1146
+ "aria-live": "polite",
1147
+ role: "img",
1148
+ preserveAspectRatio: "xMidYMid",
1149
+ tabindex: "0",
1150
+ onFocus: _r,
1151
+ onBlur: vr,
1152
+ onKeydown: yr
1153
+ }, [
1154
+ De(O(Ot)),
1155
+ t.$slots["chart-background"] ? (C(), v("foreignObject", {
1156
+ key: 0,
1157
+ x: K.value.left,
1158
+ y: K.value.top,
1159
+ width: K.value.width,
1160
+ height: K.value.height,
1161
+ style: { pointerEvents: "none" }
1162
+ }, [E(t.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : _("", !0),
1163
+ F.value.columnTotal.color.show ? (C(), v("g", {
1164
+ key: 1,
1165
+ ref_key: "xAxisSumRects",
1166
+ ref: Qt
1167
+ }, [(C(!0), v(h, null, T(Y.value.xTotals, (e, t) => (C(), v("rect", {
1168
+ x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1169
+ y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1170
+ height: K.value.sumCellXHeight,
1171
+ width: K.value.cellSize.width - G.value,
1172
+ fill: F.value.colors.underlayer,
1173
+ stroke: P.value.style.backgroundColor,
1174
+ "stroke-width": G.value
1175
+ }, null, 8, Qe))), 256)), (C(!0), v(h, null, T(Y.value.xTotals, (e, t) => (C(), v("rect", {
1176
+ x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1177
+ y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1178
+ height: K.value.sumCellXHeight,
1179
+ width: K.value.cellSize.width - G.value,
1180
+ fill: e.color,
1181
+ stroke: P.value.style.backgroundColor,
1182
+ "stroke-width": G.value
1183
+ }, null, 8, $e))), 256))], 512)) : _("", !0),
1184
+ y("g", {
1185
+ ref_key: "datapoints",
1186
+ ref: Ht
1187
+ }, [(C(!0), v(h, null, T(X.value, (e, t) => (C(), v(h, null, [(C(!0), v(h, null, T(e.temperatures, (e, n) => (C(), v("g", null, [
1188
+ y("rect", {
1189
+ x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
1190
+ y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1191
+ width: K.value.cellSize.width - G.value,
1192
+ height: K.value.cellSize.height - G.value,
1193
+ fill: F.value.colors.underlayer,
1194
+ stroke: P.value.style.backgroundColor,
1195
+ "stroke-width": G.value
1196
+ }, null, 8, et),
1197
+ y("rect", {
1198
+ "data-a11y-cell-id": e.id,
1199
+ x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
1200
+ y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1201
+ width: K.value.cellSize.width - G.value,
1202
+ height: K.value.cellSize.height - G.value,
1203
+ fill: e.color,
1204
+ stroke: P.value.style.backgroundColor,
1205
+ "stroke-width": G.value,
1206
+ "aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
1207
+ onMouseover: (r) => Wn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", gr(t, n)),
1208
+ onMouseout: () => Gn({
1209
+ datapoint: e,
1210
+ seriesIndex: t
1211
+ }),
1212
+ onClick: () => er(e, t)
1213
+ }, null, 40, tt),
1214
+ F.value.value.show ? He((C(), v("text", {
1215
+ key: 0,
1216
+ "text-anchor": "middle",
1217
+ "font-size": F.value.value.fontSize,
1218
+ "font-weight": F.value.value.bold ? "bold" : "normal",
1219
+ fill: O(m)(e.color),
1220
+ x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
1221
+ y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + F.value.value.fontSize / 3,
1222
+ style: {
1223
+ pointerEvents: "none",
1224
+ userSelect: "none"
1225
+ }
1226
+ }, [Ee(D(O(u)(F.value.value.formatter, e.value, O(o)({
1227
+ p: I.value.prefix,
1228
+ v: e.value,
1229
+ s: I.value.suffix,
1230
+ r: F.value.value.roundingValue
1231
+ }), { datapoint: e })), 1)], 8, nt)), [[O(Ge), {
1232
+ cellWidth: K.value.cellSize.width - G.value,
1233
+ cellHeight: K.value.cellSize.height - G.value,
1234
+ maxFontSize: F.value.value.fontSize,
1235
+ minFontSize: 10,
1236
+ index: t * H.value + n,
1237
+ reportHide: Bn,
1238
+ reportRotation: Ln,
1239
+ hideAll: zn.value,
1240
+ rotateAll: In.value
1241
+ }]]) : _("", !0)
1242
+ ]))), 256))], 64))), 256))], 512),
1243
+ F.value.rowTotal.color.show ? (C(), v("g", {
1244
+ key: 2,
1245
+ ref_key: "yAxisSumRects",
1246
+ ref: Yt
1247
+ }, [(C(!0), v(h, null, T(X.value, (e, t) => (C(), v(h, null, [y("rect", {
1248
+ x: K.value.left,
1249
+ y: K.value.top + K.value.cellSize.height * t,
1250
+ width: K.value.sumCellXHeight,
1251
+ height: K.value.cellSize.height - G.value,
1252
+ fill: F.value.colors.underlayer,
1253
+ stroke: P.value.style.backgroundColor,
1254
+ "stroke-width": G.value
1255
+ }, null, 8, rt), y("rect", {
1256
+ x: K.value.left,
1257
+ y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1258
+ width: K.value.sumCellXHeight,
1259
+ height: K.value.cellSize.height - G.value,
1260
+ fill: Y.value.yTotals[t].color,
1261
+ stroke: P.value.style.backgroundColor,
1262
+ "stroke-width": G.value
1263
+ }, null, 8, it)], 64))), 256))], 512)) : _("", !0),
1264
+ I.value.yAxis.show ? (C(), v("g", {
1265
+ key: 3,
1266
+ ref_key: "yAxisLabels",
1267
+ ref: Jt
1268
+ }, [(C(!0), v(h, null, T(X.value, (e, t) => (C(), v(h, null, [y("text", {
1269
+ class: "vue-ui-heatmap-row-name",
1270
+ "font-size": I.value.yAxis.fontSize,
1271
+ fill: I.value.yAxis.color,
1272
+ x: W.value,
1273
+ y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize / 3 + I.value.yAxis.offsetY - (F.value.rowTotal.value.show ? I.value.yAxis.fontSize / 1.5 : 0),
1274
+ "text-anchor": "end",
1275
+ "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1276
+ }, D(Y.value.yLabels[t]), 9, at), F.value.rowTotal.value.show ? (C(), v("text", {
1277
+ key: 0,
1278
+ class: "vue-ui-heatmap-row-total",
1279
+ "font-size": I.value.yAxis.fontSize,
1280
+ fill: I.value.yAxis.color,
1281
+ x: W.value,
1282
+ y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize + I.value.yAxis.offsetY,
1283
+ "text-anchor": "end",
1284
+ "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1285
+ }, D(Kn(t)), 9, ot)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1286
+ I.value.xAxis.show ? (C(), v("g", {
1287
+ key: 4,
1288
+ ref_key: "xAxisLabels",
1289
+ ref: Xt
1290
+ }, [(C(!0), v(h, null, T(Y.value.xLabels, (e, t) => (C(), v(h, null, [!I.value.xAxis.showOnlyAtModulo || I.value.xAxis.showOnlyAtModulo && t % I.value.xAxis.showOnlyAtModulo === 0 ? (C(), v("text", {
1291
+ key: 0,
1292
+ class: "vue-ui-heatmap-col-name",
1293
+ "text-anchor": I.value.xAxis.rotation === 0 ? "middle" : I.value.xAxis.rotation < 0 ? "start" : "end",
1294
+ "font-size": I.value.xAxis.fontSize,
1295
+ fill: I.value.xAxis.color,
1296
+ "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1297
+ transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${I.value.xAxis.rotation})`
1298
+ }, D(e), 9, st)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1299
+ F.value.columnTotal.value.show ? (C(), v("g", {
1300
+ key: 5,
1301
+ ref_key: "xAxisSums",
1302
+ ref: Zt
1303
+ }, [(C(!0), v(h, null, T(Y.value.xLabels, (e, t) => (C(), v("text", {
1304
+ class: "vue-ui-heatmap-col-total",
1305
+ "text-anchor": F.value.columnTotal.value.rotation === 0 ? "middle" : F.value.columnTotal.value.rotation < 0 ? "end" : "start",
1306
+ "font-size": I.value.xAxis.fontSize,
1307
+ fill: I.value.xAxis.color,
1308
+ "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1309
+ transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + I.value.xAxis.offsetX + F.value.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + I.value.xAxis.fontSize / 2}), rotate(${F.value.columnTotal.value.rotation})`
1310
+ }, D(qn(t)), 9, ct))), 256))], 512)) : _("", !0),
1311
+ M.value ? (C(), v("g", lt, [y("rect", {
1312
+ style: { "pointer-events": "none" },
1313
+ x: M.value.x - F.value.selected.border / 2 + G.value + K.value.sumCellXHeight,
1314
+ y: M.value.y - F.value.selected.border / 2 + G.value,
1315
+ width: K.value.cellSize.width - G.value + F.value.selected.border - G.value,
1316
+ height: K.value.cellSize.height - G.value + F.value.selected.border - G.value,
1317
+ fill: "transparent",
1318
+ stroke: F.value.selected.color,
1319
+ "stroke-width": F.value.selected.border,
1320
+ rx: 1
1321
+ }, null, 8, ut)])) : _("", !0),
1322
+ L.value.crosshairs.show && M.value ? (C(), v("g", dt, [y("line", {
1323
+ x1: K.value.left + K.value.sumCellXHeight,
1324
+ x2: M.value.x + K.value.sumCellXHeight,
1325
+ y1: M.value.y + (K.value.cellSize.height - G.value) / 2,
1326
+ y2: M.value.y + (K.value.cellSize.height - G.value) / 2,
1327
+ stroke: L.value.crosshairs.stroke,
1328
+ "stroke-width": L.value.crosshairs.strokeWidth,
1329
+ "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1330
+ "stroke-linecap": "round"
1331
+ }, null, 8, ft), y("line", {
1332
+ x1: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1333
+ x2: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1334
+ y1: M.value.y,
1335
+ y2: K.value.top,
1336
+ stroke: L.value.crosshairs.stroke,
1337
+ "stroke-width": L.value.crosshairs.strokeWidth,
1338
+ "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1339
+ "stroke-linecap": "round"
1340
+ }, null, 8, pt)])) : _("", !0),
1341
+ E(t.$slots, "svg", { svg: {
1342
+ ...U.value,
1343
+ drawingArea: K.value,
1344
+ isPrintingImg: O(gn) || O(_n) || O(ur),
1345
+ isPrintingSvg: O(dr)
1346
+ } }, void 0, !0)
1347
+ ], 46, Xe)),
1348
+ P.value.style.legend.show ? (C(), v("div", {
1349
+ key: 0,
1350
+ ref_key: "legendRight",
1351
+ ref: qt,
1352
+ class: "vue-ui-heatmap-legend-right",
1353
+ style: S({ "--legend-width": P.value.style.legend.width + "px" })
1354
+ }, [
1355
+ O(ln) ? _("", !0) : (C(), v("div", {
1356
+ key: 0,
1357
+ class: "vue-ui-heatmap-legend-label-max",
1358
+ style: S({
1359
+ fontSize: P.value.style.legend.fontSize + "px",
1360
+ color: P.value.style.legend.color
1361
+ })
1362
+ }, D(O(u)(F.value.value.formatter, O(c)(q.value), O(o)({
1363
+ p: I.value.prefix,
1364
+ v: O(c)(q.value),
1365
+ s: I.value.suffix,
1366
+ r: P.value.style.legend.roundingValue
1367
+ }))), 5)),
1368
+ y("div", mt, [y("div", {
1369
+ class: "vue-ui-heatmap-gauge",
1370
+ style: S({ background: `linear-gradient(to bottom, ${F.value.colors.hot}, ${F.value.colors.cold})` })
1371
+ }, [He(y("div", {
1372
+ class: "vue-ui-heatmap-gauge-indicator",
1373
+ "data-value": O(u)(F.value.value.formatter, O(c)(Z.value), O(o)({
1374
+ p: I.value.prefix,
1375
+ v: O(c)(Z.value),
1376
+ s: I.value.suffix,
1377
+ r: P.value.style.legend.roundingValue
1378
+ })),
1379
+ style: S({
1380
+ position: "absolute",
1381
+ width: "100%",
1382
+ height: "2px",
1383
+ background: [void 0, null].includes(Z.value) ? "transparent" : O(m)(Vn.value.datapoint.color),
1384
+ top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
1385
+ transition: "all 0.2s ease-in-out",
1386
+ "--background-color": P.value.style.backgroundColor,
1387
+ "--gauge-arrow-color": O(m)(P.value.style.backgroundColor),
1388
+ "--gauge-arrow-text-color": O(m)(P.value.style.backgroundColor),
1389
+ "--gauge-arrow-value": Z.value,
1390
+ "--gauge-arrow-font-size": P.value.style.legend.fontSize + "px"
1391
+ })
1392
+ }, [y("div", gt, D(O(u)(F.value.value.formatter, O(c)(Z.value), O(o)({
1393
+ p: I.value.prefix,
1394
+ v: O(c)(Z.value),
1395
+ s: I.value.suffix,
1396
+ r: P.value.style.legend.roundingValue
1397
+ }))), 1)], 12, ht), [[ze, ![void 0, null].includes(Z.value)]])], 4)]),
1398
+ O(ln) ? _("", !0) : (C(), v("div", {
1399
+ key: 1,
1400
+ class: "vue-ui-heatmap-legend-label-min",
1401
+ style: S({
1402
+ fontSize: P.value.style.legend.fontSize + "px",
1403
+ color: P.value.style.legend.color
1404
+ })
1405
+ }, D(O(u)(F.value.value.formatter, O(c)(On.value), O(o)({
1406
+ p: I.value.prefix,
1407
+ v: O(c)(On.value),
1408
+ s: I.value.suffix,
1409
+ r: P.value.style.legend.roundingValue
1410
+ }))), 5))
1411
+ ], 4)) : _("", !0),
1412
+ t.$slots.hint ? (C(), v("div", _t, [E(t.$slots, "hint", x(b({
1413
+ hint: P.value.a11y.translations.keyboardNavigation,
1414
+ isVisible: an.value
1415
+ })), void 0, !0)])) : _("", !0)
1416
+ ], 2),
1417
+ t.$slots.watermark ? (C(), v("div", vt, [E(t.$slots, "watermark", x(b({ isPrinting: O(gn) || O(_n) || O(ur) || O(dr) })), void 0, !0)])) : _("", !0),
1418
+ t.$slots.source ? (C(), v("div", {
1419
+ key: 6,
1420
+ ref_key: "source",
1421
+ ref: $t,
1422
+ dir: "auto"
1423
+ }, [E(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
1424
+ De(O(qe), {
1425
+ teleportTo: P.value.style.tooltip.teleportTo,
1426
+ show: B.value.showTooltip && It.value,
1427
+ backgroundColor: P.value.style.tooltip.backgroundColor,
1428
+ color: P.value.style.tooltip.color,
1429
+ borderRadius: P.value.style.tooltip.borderRadius,
1430
+ borderColor: P.value.style.tooltip.borderColor,
1431
+ borderWidth: P.value.style.tooltip.borderWidth,
1432
+ fontSize: P.value.style.tooltip.fontSize,
1433
+ backgroundOpacity: P.value.style.tooltip.backgroundOpacity,
1434
+ position: P.value.style.tooltip.position,
1435
+ offsetX: P.value.style.tooltip.offsetX,
1436
+ offsetY: P.value.style.tooltip.offsetY,
1437
+ parent: j.value,
1438
+ content: Lt.value,
1439
+ isFullscreen: Q.value,
1440
+ isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
1441
+ smooth: P.value.style.tooltip.smooth,
1442
+ backdropFilter: P.value.style.tooltip.backdropFilter,
1443
+ smoothForce: P.value.style.tooltip.smoothForce,
1444
+ smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
1445
+ isA11yMode: rn.value === "keyboard",
1446
+ a11yPosition: nn.value
1447
+ }, {
1448
+ "tooltip-before": k(() => [E(t.$slots, "tooltip-before", x(b({ ...Vn.value })), void 0, !0)]),
1449
+ tooltip: k(() => [E(t.$slots, "tooltip", x(b({ ...Vn.value })), void 0, !0)]),
1450
+ "tooltip-after": k(() => [E(t.$slots, "tooltip-after", x(b({ ...Vn.value })), void 0, !0)]),
1451
+ _: 3
1452
+ }, 8, [
1453
+ "teleportTo",
1454
+ "show",
1455
+ "backgroundColor",
1456
+ "color",
1457
+ "borderRadius",
1458
+ "borderColor",
1459
+ "borderWidth",
1460
+ "fontSize",
1461
+ "backgroundOpacity",
1462
+ "position",
1463
+ "offsetX",
1464
+ "offsetY",
1465
+ "parent",
1466
+ "content",
1467
+ "isFullscreen",
1468
+ "isCustom",
1469
+ "smooth",
1470
+ "backdropFilter",
1471
+ "smoothForce",
1472
+ "smoothSnapThreshold",
1473
+ "isA11yMode",
1474
+ "a11yPosition"
1475
+ ]),
1476
+ Pt.value && P.value.userOptions.buttons.table ? (C(), we(Fe(ar.value.component), ke({ key: 7 }, ar.value.props, {
1477
+ ref_key: "tableUnit",
1478
+ ref: Ut,
1479
+ onClose: sr
1480
+ }), Te({
1481
+ content: k(() => [y("div", {
1482
+ ref_key: "tableContainer",
1483
+ ref: Bt,
1484
+ class: "vue-ui-heatmap-table atom-data-table",
1485
+ style: S(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
1486
+ }, [y("div", {
1487
+ style: S(`width:100%;overflow-x:auto;position:relative;${P.value.table.useDialog ? "" : "padding-top:36px"};`),
1488
+ class: je({ "vue-ui-responsive": O(or) })
1489
+ }, [P.value.table.useDialog ? _("", !0) : (C(), v("div", {
1490
+ key: 0,
1491
+ role: "button",
1492
+ tabindex: "0",
1493
+ style: S(`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:${P.value.table.th.backgroundColor};`),
1494
+ onClick: sr,
1495
+ onKeypress: Ue(sr, ["enter"])
1496
+ }, [De(O(Tt), {
1497
+ name: "close",
1498
+ stroke: P.value.table.th.color,
1499
+ "stroke-width": 2
1500
+ }, null, 8, ["stroke"])], 36)), y("table", yt, [
1501
+ P.value.table.useDialog ? _("", !0) : (C(), v("caption", {
1502
+ key: 0,
1503
+ style: S(`backgroundColor:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`)
1504
+ }, [Ee(D(P.value.style.title.text) + " ", 1), P.value.style.title.subtitle.text ? (C(), v("span", bt, D(P.value.style.title.subtitle.text), 1)) : _("", !0)], 4)),
1505
+ y("thead", null, [y("tr", {
1506
+ role: "row",
1507
+ style: S(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
1508
+ }, [y("th", { style: S(`outline:${P.value.table.th.outline};padding-right:6px`) }, null, 4), (C(!0), v(h, null, T(e.dataset, (e, t) => (C(), v("th", {
1509
+ align: "right",
1510
+ style: S(`outline:${P.value.table.th.outline};padding-right:6px`)
1511
+ }, D(e.name), 5))), 256))], 4)]),
1512
+ y("tbody", null, [(C(!0), v(h, null, T(Y.value.xLabels, (t, n) => (C(), v("tr", {
1513
+ role: "row",
1514
+ class: je({
1515
+ "vue-ui-data-table__tbody__row": !0,
1516
+ "vue-ui-data-table__tbody__row-even": n % 2 == 0,
1517
+ "vue-ui-data-table__tbody__row-odd": n % 2 != 0
1518
+ }),
1519
+ style: S(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
1520
+ }, [y("td", {
1521
+ "data-cell": P.value.table.colNames.xAxis,
1522
+ class: "vue-ui-data-table__tbody__td",
1523
+ style: S(`outline:${P.value.table.td.outline}`)
1524
+ }, [y("div", St, D(t), 1)], 12, xt), (C(!0), v(h, null, T(e.dataset, (t, r) => (C(), v("td", {
1525
+ class: "vue-ui-data-table__tbody__td",
1526
+ "data-cell": e.dataset[r].name,
1527
+ style: S(`outline:${P.value.table.td.outline}`)
1528
+ }, [y("div", wt, D(isNaN(t.values[n]) ? "-" : O(o)({
1529
+ p: I.value.prefix,
1530
+ v: t.values[n],
1531
+ s: I.value.suffix,
1532
+ r: P.value.table.td.roundingValue
1533
+ })), 1)], 12, Ct))), 256))], 6))), 256))])
1534
+ ])], 6)], 4)]),
1535
+ _: 2
1536
+ }, [P.value.table.useDialog ? {
1537
+ name: "title",
1538
+ fn: k(() => [Ee(D(ar.value.title), 1)]),
1539
+ key: "0"
1540
+ } : void 0, P.value.table.useDialog ? {
1541
+ name: "actions",
1542
+ fn: k(() => [y("button", {
1543
+ tabindex: "0",
1544
+ class: "vue-ui-user-options-button",
1545
+ onClick: n[0] ||= (e) => Jn(P.value.userOptions.callbacks.csv),
1546
+ style: S({ cursor: on.value ? "pointer" : "default" })
1547
+ }, [De(O(Tt), {
1548
+ name: "fileCsv",
1549
+ stroke: ar.value.props.color
1550
+ }, null, 8, ["stroke"])], 4)]),
1551
+ key: "1"
1552
+ } : void 0]), 1040)) : _("", !0),
1553
+ E(t.$slots, "skeleton", {}, () => [O(ln) ? (C(), we(ce, { key: 0 })) : _("", !0)], !0)
1554
+ ], 46, Je));
1555
+ }
1556
+ }, [["__scopeId", "data-v-4d48d63e"]]);
1557
+ //#endregion
1558
+ export { qe as n, Tt as t };