vue-data-ui 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
  3. package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
  4. package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
  5. package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
  6. package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
  8. package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
  9. package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
  10. package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
  11. package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
  12. package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
  13. package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
  14. package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
  15. package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
  16. package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
  17. package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
  18. package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
  19. package/dist/pdf-Bdf65IBz.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +25 -2
  22. package/dist/types/vue-data-ui.d.ts +25 -2
  23. package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
  24. package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
  25. package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
  26. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  27. package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
  30. package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
  32. package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
  33. package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
  34. package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
  35. package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
  36. package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
  37. package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
  38. package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
  39. package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
  40. package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
  41. package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
  43. package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
  44. package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
  45. package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
  46. package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
  47. package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
  48. package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
  49. package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
  50. package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
  51. package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
  52. package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
  54. package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
  55. package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
  56. package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
  57. package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
  58. package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
  59. package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
  60. package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
  61. package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
  62. package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
  64. package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
  65. package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
  66. package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
  67. package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
  68. package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
  73. package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
  76. package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
  77. package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
  78. package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
  79. package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
  80. package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
  81. package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
  83. package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
  84. package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
  85. package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
  86. package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
  87. package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
  88. package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
  89. package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
  90. package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
  91. package/package.json +1 -1
  92. package/dist/pdf-Dd-LIJqz.js +0 -61
  93. package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
  94. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
@@ -1,32 +1,33 @@
1
- import { useCssVars as Wt, defineAsyncComponent as ee, computed as g, ref as r, shallowRef as dt, toRefs as jt, watch as we, onBeforeUnmount as Pe, onMounted as qt, watchEffect as Xe, reactive as yt, createElementBlock as n, openBlock as u, normalizeStyle as w, normalizeClass as ce, createBlock as de, createCommentVNode as h, createElementVNode as f, createVNode as ke, unref as i, createSlots as ht, withCtx as S, renderSlot as T, normalizeProps as te, guardReactiveProps as le, Fragment as C, renderList as F, withDirectives as ft, createTextVNode as Ie, toDisplayString as _, vShow as Kt, resolveDynamicComponent as Jt, mergeProps as Qt, withKeys as Zt, nextTick as el } from "vue";
2
- import { u as tl, c as Ve, t as ll, b as al, C as ol, o as pt, f as gt, P as ye, g as sl, X as ul, F as Ae, k as E, i as H, h as B, v as il, w as nl, y as rl, z as vl } from "./index-CDQbCd41.js";
3
- import { t as Ce, u as cl } from "./useResponsive-DfdjqQps.js";
4
- import { u as dl } from "./usePrinter-Bnl1YeUU.js";
5
- import { u as yl, B as hl } from "./BaseScanner-BgWxam9d.js";
6
- import { u as bt } from "./useNestedProp-BPEHGiYX.js";
7
- import { u as mt } from "./useTimeLabels-BGFjWgrv.js";
1
+ import { useCssVars as Gt, defineAsyncComponent as Q, computed as g, ref as c, shallowRef as Wt, toRefs as jt, watch as we, onBeforeUnmount as vt, onMounted as qt, watchEffect as Pe, reactive as ct, nextTick as dt, createElementBlock as n, openBlock as u, normalizeStyle as w, normalizeClass as ce, createBlock as de, createCommentVNode as h, createElementVNode as f, createVNode as ke, unref as i, createSlots as yt, withCtx as S, renderSlot as L, normalizeProps as Z, guardReactiveProps as ee, Fragment as C, renderList as F, withDirectives as ht, createTextVNode as Xe, toDisplayString as T, vShow as Kt, resolveDynamicComponent as Jt, mergeProps as Qt, withKeys as Zt } from "vue";
2
+ import { u as el, c as Ie, t as tl, b as ll, C as al, o as ft, f as pt, P as ye, g as ol, X as sl, F as Ae, k as B, i as H, h as E, v as ul, w as il, y as nl, z as rl } from "./index-BFqW8WA0.js";
3
+ import { t as Ce, u as vl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as cl } from "./usePrinter-DDIKRiOp.js";
5
+ import { u as dl, B as yl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as gt } from "./useNestedProp-BSZCnuGl.js";
7
+ import { u as bt } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { u as hl } from "./useTableResponsive-Cbx-ACcP.js";
8
9
  import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as xt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import { u as mt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
11
  import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
11
- import gl from "./img-JOqdlnUs.js";
12
- import bl from "./Title-Dq2_Z9kR.js";
13
- import ml from "./vue-ui-accordion-Bf_LHFFX.js";
12
+ import gl from "./img-DvuphHeJ.js";
13
+ import bl from "./Title-AGmmsSi_.js";
14
+ import ml from "./vue-ui-accordion-Cv747Pg6.js";
14
15
  import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
16
  const wl = {
16
17
  mounted(b, P) {
17
- wt(b, P.value);
18
+ xt(b, P.value);
18
19
  },
19
20
  updated(b, P) {
20
- wt(b, P.value);
21
+ xt(b, P.value);
21
22
  }
22
23
  };
23
- function wt(b, {
24
+ function xt(b, {
24
25
  cellWidth: P,
25
26
  cellHeight: he,
26
27
  maxFontSize: W,
27
- minFontSize: ae,
28
+ minFontSize: te,
28
29
  index: $,
29
- reportRotation: oe,
30
+ reportRotation: le,
30
31
  reportHide: X,
31
32
  rotateAll: Le,
32
33
  hideAll: Te
@@ -36,29 +37,29 @@ function wt(b, {
36
37
  b.setAttribute("font-size", W);
37
38
  const j = b.getComputedTextLength();
38
39
  if (j <= P)
39
- oe($, !1), X($, !1);
40
+ le($, !1), X($, !1);
40
41
  else {
41
42
  const M = Math.floor(W * P / j);
42
- M >= ae ? (b.setAttribute("font-size", M), oe($, !1), X($, !1)) : (oe($, !0), X($, !1), k = !0);
43
+ M >= te ? (b.setAttribute("font-size", M), le($, !1), X($, !1)) : (le($, !0), X($, !1), k = !0);
43
44
  }
44
45
  if (Le && (k = !0), k) {
45
46
  b.setAttribute("font-size", W);
46
- const M = b.getBBox(), O = M.x + M.width / 2, _e = M.y + M.height / 2;
47
- b.setAttribute("transform", `rotate(-90 ${O} ${_e})`);
47
+ const M = b.getBBox(), O = M.x + M.width / 2, ae = M.y + M.height / 2;
48
+ b.setAttribute("transform", `rotate(-90 ${O} ${ae})`);
48
49
  const q = b.getBBox().width;
49
50
  if (q <= he)
50
51
  X($, !1);
51
52
  else {
52
- const K = Math.floor(W * he / q);
53
- K >= ae ? (b.setAttribute("font-size", K), X($, !1)) : (fe = !0, X($, !0));
53
+ const oe = Math.floor(W * he / q);
54
+ oe >= te ? (b.setAttribute("font-size", oe), X($, !1)) : (fe = !0, X($, !0));
54
55
  }
55
56
  }
56
57
  (Te || fe) && b.setAttribute("visibility", "hidden");
57
58
  }
58
- const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], _l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], zl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], Sl = ["font-size", "font-weight", "fill", "x", "y"], $l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ol = ["font-size", "fill", "x", "y", "font-weight"], Rl = ["font-size", "fill", "x", "y", "font-weight"], Fl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Nl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Dl = { key: 6 }, Hl = ["x", "y", "width", "height", "stroke", "stroke-width"], Pl = { class: "vue-ui-heatmap-legend-gauge-right" }, Xl = ["data-value"], Il = { class: "vue-ui-heatmap-gauge-indicator-value" }, Vl = {
59
+ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], Ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], _l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Sl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "onMouseover", "onMouseout", "onClick"], zl = ["font-size", "font-weight", "fill", "x", "y"], $l = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ml = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ol = ["font-size", "fill", "x", "y", "font-weight"], Rl = ["font-size", "fill", "x", "y", "font-weight"], Fl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Dl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Nl = { key: 6 }, Hl = ["x", "y", "width", "height", "stroke", "stroke-width"], Pl = { class: "vue-ui-heatmap-legend-gauge-right" }, Xl = ["data-value"], Il = { class: "vue-ui-heatmap-gauge-indicator-value" }, Vl = {
59
60
  key: 4,
60
61
  class: "vue-data-ui-watermark"
61
- }, El = { class: "vue-ui-data-table" }, Bl = { key: 0 }, Ul = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Gl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = {
62
+ }, Bl = { class: "vue-ui-data-table" }, El = { key: 0 }, Ul = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Gl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = {
62
63
  __name: "vue-ui-heatmap",
63
64
  props: {
64
65
  config: {
@@ -76,36 +77,36 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
76
77
  },
77
78
  emits: ["selectDatapoint"],
78
79
  setup(b, { expose: P, emit: he }) {
79
- Wt((t) => ({
80
- "166abedb": t.tdo
80
+ Gt((t) => ({
81
+ "3df99572": t.tdo
81
82
  }));
82
- const W = ee(() => import("./Tooltip-Y219DXZO.js")), ae = ee(() => import("./BaseIcon-DHtro8us.js")), $ = ee(() => import("./PenAndPaper-B7QEDgx4.js")), oe = ee(() => import("./UserOptions-BuGfCdAY.js")), X = ee(() => import("./PackageVersion-DU12WH3O.js")), Le = ee(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_heatmap: Te } = tl(), k = b, fe = he, j = g({
83
+ const W = Q(() => import("./Tooltip-le0yZk_t.js")), te = Q(() => import("./BaseIcon-BLg8FaQ2.js")), $ = Q(() => import("./PenAndPaper-TgGWddgD.js")), le = Q(() => import("./UserOptions-DEFwuQIo.js")), X = Q(() => import("./PackageVersion-Jz9FlNXl.js")), Le = Q(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_heatmap: Te } = el(), k = b, fe = he, j = g({
83
84
  get() {
84
85
  return !!k.dataset && k.dataset.length;
85
86
  },
86
87
  set(t) {
87
88
  return t;
88
89
  }
89
- }), M = r(Ve()), O = r(null), _e = r(null), q = r(!1), K = r(""), Ee = r(void 0), se = r(null), Be = r(0), ze = r(null), Ue = r(!1), Ye = r(0), kt = r(null), ue = r(null), Ge = r(null), We = r(null), At = r(null), je = r(null), Ct = r(null), Se = r(null), $e = r(null), Lt = r(null), qe = r(null), J = dt(null), e = r(Re());
90
- function Tt() {
91
- const t = Array(7).fill("_"), a = [], o = 14, s = t.length;
90
+ }), M = c(Ie()), O = c(null), ae = c(!1), q = c(""), oe = c(void 0), se = c(null), Ve = c(0), Be = c(null), Ee = c(0), wt = c(null), ue = c(null), _e = c(null), Ue = c(null), Ye = c(null), kt = c(null), Ge = c(null), At = c(null), Se = c(null), ze = c(null), Ct = c(null), We = c(null), K = Wt(null), e = c(Oe());
91
+ function Lt() {
92
+ const t = Array(7).fill("_"), o = [], a = 14, s = t.length;
92
93
  for (let d = 0; d < s; d += 1) {
93
- const c = [];
94
- for (let x = 0; x < o; x += 1)
95
- c.push(d + x * 2);
96
- a.push({
94
+ const v = [];
95
+ for (let x = 0; x < a; x += 1)
96
+ v.push(d + x * 2);
97
+ o.push({
97
98
  name: `${t[d]}`,
98
- values: c
99
+ values: v
99
100
  });
100
101
  }
101
- return a;
102
+ return o;
102
103
  }
103
- const { loading: pe, FINAL_DATASET: m, manualLoading: Me } = yl({
104
+ const { loading: pe, FINAL_DATASET: m, manualLoading: $e } = dl({
104
105
  ...jt(k),
105
106
  FINAL_CONFIG: e,
106
- prepareConfig: Re,
107
- skeletonDataset: Tt(),
108
- skeletonConfig: ll({
107
+ prepareConfig: Oe,
108
+ skeletonDataset: Lt(),
109
+ skeletonConfig: tl({
109
110
  defaultConfig: e.value,
110
111
  userConfig: {
111
112
  table: { show: !1 },
@@ -130,163 +131,151 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
130
131
  }
131
132
  }
132
133
  })
133
- }), { userOptionsVisible: Oe, setUserOptionsVisibility: _t, keepUserOptionState: Ke } = fl({ config: e.value }), { svgRef: Je } = pl({ config: e.value.style.title });
134
- function Qe(t) {
135
- _t(t);
134
+ }), { userOptionsVisible: Me, setUserOptionsVisibility: Tt, keepUserOptionState: je } = fl({ config: e.value }), { svgRef: qe } = pl({ config: e.value.style.title });
135
+ function Ke(t) {
136
+ Tt(t);
136
137
  }
137
- function Re() {
138
- const t = bt({
138
+ function Oe() {
139
+ const t = gt({
139
140
  userConfig: k.config,
140
141
  defaultConfig: Te
141
142
  });
142
- let a = {};
143
- return t.theme ? a = {
144
- ...bt({
145
- userConfig: al.vue_ui_heatmap[t.theme] || k.config,
143
+ let o = {};
144
+ return t.theme ? o = {
145
+ ...gt({
146
+ userConfig: ll.vue_ui_heatmap[t.theme] || k.config,
146
147
  defaultConfig: t
147
148
  })
148
- } : a = t, k.config && ol(k.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? a.style.layout.dataLabels.xAxis.showOnlyAtModulo = k.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : a.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, a;
149
+ } : o = t, k.config && al(k.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? o.style.layout.dataLabels.xAxis.showOnlyAtModulo = k.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : o.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, o;
149
150
  }
150
151
  we(() => k.config, (t) => {
151
- pe.value || (e.value = Re()), Oe.value = !e.value.userOptions.showOnChartHover, Fe(), Ye.value += 1, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.tooltip.show, ie.value = e.value.style.layout.width, ne.value = e.value.style.layout.height;
152
+ pe.value || (e.value = Oe()), Me.value = !e.value.userOptions.showOnChartHover, Re(), Ee.value += 1, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.tooltip.show, ie.value = e.value.style.layout.width, ne.value = e.value.style.layout.height;
152
153
  }, { deep: !0 }), we(() => k.dataset, (t) => {
153
- Array.isArray(t) && t.length > 0 && (Me.value = !1), Fe();
154
+ Array.isArray(t) && t.length > 0 && ($e.value = !1), Re();
154
155
  }, { deep: !0 });
155
- const { isPrinting: Ze, isImaging: et, generatePdf: tt, generateImage: lt } = dl({
156
+ const { isPrinting: Je, isImaging: Qe, generatePdf: Ze, generateImage: et } = cl({
156
157
  elementId: `heatmap__${M.value}`,
157
158
  fileName: e.value.style.title.text || "vue-ui-heatmap",
158
159
  options: e.value.userOptions.print
159
- }), zt = g(() => e.value.userOptions.show && !e.value.style.title.text), L = r({
160
+ }), _t = g(() => e.value.userOptions.show && !e.value.style.title.text), z = c({
160
161
  showTable: e.value.table.show,
161
162
  showTooltip: e.value.style.tooltip.show
162
163
  });
163
164
  we(e, () => {
164
- L.value = {
165
+ z.value = {
165
166
  showTable: e.value.table.show,
166
167
  showTooltip: e.value.style.tooltip.show
167
168
  };
168
169
  }, { immediate: !0 });
169
- const St = g(() => e.value.table.responsiveBreakpoint), Q = dt(null);
170
- function $t() {
171
- Q.value && Q.value.disconnect(), Q.value = new ResizeObserver((t) => {
172
- t.forEach((a) => {
173
- Ue.value = a.contentRect.width < St.value;
174
- });
175
- }), ze.value && Q.value.observe(ze.value);
176
- }
177
- Pe(() => {
178
- Q.value && Q.value.disconnect();
179
- });
180
- const I = r(null), at = g(() => !!e.value.debug);
181
- function Fe() {
182
- if (pt(k.dataset) && (gt({
170
+ const St = g(() => e.value.table.responsiveBreakpoint), I = c(null), tt = g(() => !!e.value.debug);
171
+ function Re() {
172
+ if (ft(k.dataset) && (pt({
183
173
  componentName: "VueUiHeatmap",
184
174
  type: "dataset",
185
- debug: at.value
186
- }), j.value = !1, Me.value = !0), pt(k.dataset) || (Me.value = e.value.loading), e.value.responsive) {
175
+ debug: tt.value
176
+ }), j.value = !1, $e.value = !0), ft(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
187
177
  const t = Ce(() => {
188
- const { width: a, height: o } = cl({
178
+ const { width: o, height: a } = vl({
189
179
  chart: O.value,
190
- title: e.value.style.title.text ? Ge.value : null,
180
+ title: e.value.style.title.text ? Ue.value : null,
191
181
  // add legend hirizontal in legend attr
192
182
  // add legend vertical in some other attr and modify composable to subtract width
193
- source: qe.value,
194
- noTitle: We.value
183
+ source: We.value,
184
+ noTitle: Ye.value
195
185
  });
196
186
  requestAnimationFrame(() => {
197
- ie.value = a, ne.value = o;
187
+ ie.value = o, ne.value = a;
198
188
  });
199
189
  });
200
- I.value && (J.value && I.value.unobserve(J.value), I.value.disconnect()), I.value = new ResizeObserver(t), J.value = O.value.parentNode, I.value.observe(J.value);
190
+ I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect()), I.value = new ResizeObserver(t), K.value = O.value.parentNode, I.value.observe(K.value);
201
191
  }
202
- $t();
203
192
  }
204
- Pe(() => {
205
- I.value && (J.value && I.value.unobserve(J.value), I.value.disconnect());
193
+ vt(() => {
194
+ I.value && (K.value && I.value.unobserve(K.value), I.value.disconnect());
206
195
  }), qt(() => {
207
- Fe();
196
+ Re();
208
197
  });
209
- const N = g(() => Math.max(...m.value.flatMap((t) => (t.values || []).length))), ie = r(e.value.style.layout.width), ne = r(e.value.style.layout.height), z = g(() => ({
198
+ const D = g(() => Math.max(...m.value.flatMap((t) => (t.values || []).length))), ie = c(e.value.style.layout.width), ne = c(e.value.style.layout.height), _ = g(() => ({
210
199
  width: Math.max(10, ie.value),
211
200
  height: Math.max(10, ne.value)
212
- })), re = r(0), Mt = Ce((t) => {
201
+ })), re = c(0), zt = Ce((t) => {
213
202
  re.value = t;
214
203
  }, 100);
215
- Xe((t) => {
216
- const a = Se.value;
217
- if (!a) return;
218
- const o = new ResizeObserver((s) => {
219
- Mt(s[0].contentRect.height);
204
+ Pe((t) => {
205
+ const o = Se.value;
206
+ if (!o) return;
207
+ const a = new ResizeObserver((s) => {
208
+ zt(s[0].contentRect.height);
220
209
  });
221
- o.observe(a), t(() => o.disconnect());
210
+ a.observe(o), t(() => a.disconnect());
222
211
  });
223
- const Z = r(0), Ot = Ce((t) => {
224
- Z.value = t;
212
+ const J = c(0), $t = Ce((t) => {
213
+ J.value = t;
225
214
  }, 100);
226
- Xe((t) => {
227
- const a = je.value;
228
- if (!a) return;
229
- const o = new ResizeObserver((s) => {
230
- Ot(s[0].contentRect.width);
215
+ Pe((t) => {
216
+ const o = Ge.value;
217
+ if (!o) return;
218
+ const a = new ResizeObserver((s) => {
219
+ $t(s[0].contentRect.width);
231
220
  });
232
- o.observe(a), t(() => o.disconnect());
221
+ a.observe(o), t(() => a.disconnect());
233
222
  });
234
- const ge = r(0), Rt = Ce((t) => {
223
+ const ge = c(0), Mt = Ce((t) => {
235
224
  ge.value = t;
236
225
  }, 100);
237
- Xe((t) => {
238
- const a = $e.value;
239
- if (!a) return;
240
- const o = new ResizeObserver((s) => {
241
- Rt(s[0].contentRect.height);
226
+ Pe((t) => {
227
+ const o = ze.value;
228
+ if (!o) return;
229
+ const a = new ResizeObserver((s) => {
230
+ Mt(s[0].contentRect.height);
242
231
  });
243
- o.observe(a), t(() => o.disconnect());
244
- }), Pe(() => {
245
- re.value = 0, Z.value = 0, ge.value = 0;
232
+ a.observe(o), t(() => a.disconnect());
233
+ }), vt(() => {
234
+ re.value = 0, J.value = 0, ge.value = 0;
246
235
  });
247
- const v = g(() => Math.min(z.value.height, z.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
236
+ const r = g(() => Math.min(_.value.height, _.value.width) / 1e3 * e.value.style.layout.cells.spacing), l = g(() => {
248
237
  let t = 0;
249
238
  e.value.style.legend.show && (t = e.value.style.legend.width);
250
- const a = e.value.style.layout.padding, o = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, d = z.value.height - a.top - a.bottom - re.value - o, c = z.value.width / 60, x = {
251
- x: v.value * N.value,
252
- y: v.value * ((m.value || []).length + 1)
253
- }, D = z.value.width - a.left - a.right - x.x - c * 2 - 2 - t - Z.value, y = d - c - x.y - ge.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
254
- width: Math.max(3, D / N.value),
239
+ const o = e.value.style.layout.padding, a = e.value.style.layout.dataLabels.xAxis.fontSize / 3, s = e.value.style.layout.dataLabels.xAxis.fontSize / 2, d = _.value.height - o.top - o.bottom - re.value - a, v = _.value.width / 60, x = {
240
+ x: r.value * D.value,
241
+ y: r.value * ((m.value || []).length + 1)
242
+ }, N = _.value.width - o.left - o.right - x.x - v * 2 - 2 - t - J.value, y = d - v - x.y - ge.value - s - e.value.style.layout.cells.columnTotal.value.offsetY, A = {
243
+ width: Math.max(3, N / D.value),
255
244
  height: Math.max(3, y / (m.value.length ?? 1))
256
245
  };
257
246
  return {
258
- top: a.top + re.value + c + o,
247
+ top: o.top + re.value + v + a,
259
248
  topLabelsHeight: re.value,
260
- sumCellXHeight: c,
249
+ sumCellXHeight: v,
261
250
  height: y,
262
- left: a.left + Z.value + c / 2,
263
- right: a.right - t,
264
- bottom: z.value.height - a.bottom - ge.value,
265
- width: D,
251
+ left: o.left + J.value + v / 2,
252
+ right: o.right - t,
253
+ bottom: _.value.height - o.bottom - ge.value,
254
+ width: N,
266
255
  cellSize: A
267
256
  };
268
257
  }), V = g(() => Math.max(...m.value.flatMap((t) => t.values))), ve = g(() => Math.min(...m.value.flatMap((t) => t.values))), U = g(() => {
269
- const t = m.value.flatMap((o) => o.values);
270
- return t.reduce((o, s) => o + s, 0) / t.length;
271
- }), Ft = g(() => mt({
258
+ const t = m.value.flatMap((a) => a.values);
259
+ return t.reduce((a, s) => a + s, 0) / t.length;
260
+ }), Ot = g(() => bt({
272
261
  values: e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : m.value.map((t) => t.name),
273
262
  maxDatapoints: m.value.length,
274
263
  formatter: e.value.style.layout.dataLabels.yAxis.datetimeFormatter,
275
264
  start: 0,
276
265
  end: m.value.length
277
- })), Nt = g(() => mt({
266
+ })), Rt = g(() => bt({
278
267
  values: e.value.style.layout.dataLabels.xAxis.values,
279
- maxDatapoints: N.value,
268
+ maxDatapoints: D.value,
280
269
  formatter: e.value.style.layout.dataLabels.xAxis.datetimeFormatter,
281
270
  start: 0,
282
- end: N.value
271
+ end: D.value
283
272
  })), p = g(() => {
284
- const t = Ft.value.map((y) => y.text), a = Nt.value.map((y) => y.text), o = m.value.map((y) => y.values.reduce((A, He) => A + He, 0)), s = Math.max(...o), d = Math.min(...o), c = [];
285
- for (let y = 0; y < N.value; y += 1)
286
- c.push(m.value.map((A) => A.values[y] || 0).reduce((A, He) => A + He, 0));
287
- const x = Math.max(...c), D = Math.min(...c);
273
+ const t = Ot.value.map((y) => y.text), o = Rt.value.map((y) => y.text), a = m.value.map((y) => y.values.reduce((A, He) => A + He, 0)), s = Math.max(...a), d = Math.min(...a), v = [];
274
+ for (let y = 0; y < D.value; y += 1)
275
+ v.push(m.value.map((A) => A.values[y] || 0).reduce((A, He) => A + He, 0));
276
+ const x = Math.max(...v), N = Math.min(...v);
288
277
  return {
289
- yTotals: o.map((y) => {
278
+ yTotals: a.map((y) => {
290
279
  const A = isNaN(y / s) ? 0 : y / s;
291
280
  return {
292
281
  total: y,
@@ -294,80 +283,80 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
294
283
  color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, d, s, y)
295
284
  };
296
285
  }),
297
- xTotals: c.map((y) => {
286
+ xTotals: v.map((y) => {
298
287
  const A = isNaN(y / x) ? 0 : y / x;
299
288
  return {
300
289
  total: y,
301
290
  proportion: A,
302
- color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, D, x, y)
291
+ color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, N, x, y)
303
292
  };
304
293
  }),
305
294
  yLabels: t,
306
- xLabels: a.slice(0, N.value)
295
+ xLabels: o.slice(0, D.value)
307
296
  };
308
- }), Y = g(() => (m.value.forEach((t, a) => {
309
- sl({
297
+ }), Y = g(() => (m.value.forEach((t, o) => {
298
+ ol({
310
299
  datasetObject: t,
311
300
  requiredAttributes: ["values"]
312
- }).forEach((o) => {
313
- gt({
301
+ }).forEach((a) => {
302
+ pt({
314
303
  componentName: "VueUiHeatmap",
315
304
  type: "datasetSerieAttribute",
316
305
  property: "values",
317
- index: a,
318
- debug: at.value
306
+ index: o,
307
+ debug: tt.value
319
308
  });
320
309
  });
321
- }), m.value.map((t, a) => ({
310
+ }), m.value.map((t, o) => ({
322
311
  ...t,
323
- temperatures: (t.values || []).map((o, s) => o >= U.value ? {
312
+ temperatures: (t.values || []).map((a, s) => a >= U.value ? {
324
313
  side: "up",
325
- color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, o),
326
- ratio: Math.abs(Math.abs(o - U.value) / Math.abs(V.value - U.value)) > 1 ? 1 : Math.abs(Math.abs(o - U.value) / Math.abs(V.value - U.value)),
327
- value: o,
328
- yAxisName: p.value.yLabels[a],
314
+ color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
315
+ ratio: Math.abs(Math.abs(a - U.value) / Math.abs(V.value - U.value)) > 1 ? 1 : Math.abs(Math.abs(a - U.value) / Math.abs(V.value - U.value)),
316
+ value: a,
317
+ yAxisName: p.value.yLabels[o],
329
318
  xAxisName: p.value.xLabels[s],
330
- id: `vue-data-ui-heatmap-cell-${Ve()}`
319
+ id: `vue-data-ui-heatmap-cell-${Ie()}`
331
320
  } : {
332
321
  side: "down",
333
- ratio: Math.abs(1 - Math.abs(o) / Math.abs(U.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(U.value)),
334
- color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, o),
335
- value: o,
336
- yAxisName: p.value.yLabels[a],
322
+ ratio: Math.abs(1 - Math.abs(a) / Math.abs(U.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(U.value)),
323
+ color: ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, a),
324
+ value: a,
325
+ yAxisName: p.value.yLabels[o],
337
326
  xAxisName: p.value.xLabels[s],
338
- id: `vue-data-ui-heatmap-cell-${Ve()}`
327
+ id: `vue-data-ui-heatmap-cell-${Ie()}`
339
328
  })
340
- })))), ot = g(() => m.value.length), st = yt(Array(ot.value * N.value || 1).fill(!1)), Dt = g(() => st.some((t) => t));
341
- function Ht(t, a) {
342
- st[t] = a;
329
+ })))), lt = g(() => m.value.length), at = ct(Array(lt.value * D.value || 1).fill(!1)), Ft = g(() => at.some((t) => t));
330
+ function Dt(t, o) {
331
+ at[t] = o;
343
332
  }
344
- const ut = yt(Array(ot.value * N.value || 1).fill(!1)), Pt = g(() => ut.some((t) => t));
345
- function Xt(t, a) {
346
- ut[t] = a;
333
+ const ot = ct(Array(lt.value * D.value || 1).fill(!1)), Nt = g(() => ot.some((t) => t));
334
+ function Ht(t, o) {
335
+ ot[t] = o;
347
336
  }
348
- const R = r(null), be = r(null);
349
- function It(t, a, o, s) {
350
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), se.value = { x: o, y: s };
351
- const { value: d, yAxisName: c, xAxisName: x, id: D } = t;
352
- Ee.value = D, R.value = d, be.value = {
337
+ const R = c(null), be = c(null);
338
+ function Pt(t, o, a, s) {
339
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), se.value = { x: a, y: s };
340
+ const { value: d, yAxisName: v, xAxisName: x, id: N } = t;
341
+ oe.value = N, R.value = d, be.value = {
353
342
  datapoint: t,
354
- seriesIndex: a,
343
+ seriesIndex: o,
355
344
  series: Y.value,
356
345
  config: e.value
357
- }, q.value = !0;
346
+ }, ae.value = !0;
358
347
  let y = "";
359
348
  const A = e.value.style.tooltip.customFormat;
360
- rl(A) && vl(() => A({
349
+ nl(A) && rl(() => A({
361
350
  datapoint: t,
362
- seriesIndex: a,
351
+ seriesIndex: o,
363
352
  series: Y.value,
364
353
  config: e.value
365
- })) ? K.value = A({
354
+ })) ? q.value = A({
366
355
  datapoint: t,
367
- seriesIndex: a,
356
+ seriesIndex: o,
368
357
  series: Y.value,
369
358
  config: e.value
370
- }) : (y += `<div>${c} ${x ? c ? ` - ${x}` : `${x}` : ""}</div>`, y += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, d)}">⬤</span><span>${isNaN(d) ? "-" : E(
359
+ }) : (y += `<div>${v} ${x ? v ? ` - ${x}` : `${x}` : ""}</div>`, y += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ye(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, ve.value, V.value, d)}">⬤</span><span>${isNaN(d) ? "-" : B(
371
360
  e.value.style.layout.cells.value.formatter,
372
361
  d,
373
362
  H({
@@ -376,14 +365,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
376
365
  s: e.value.style.layout.dataLabels.suffix,
377
366
  r: e.value.style.tooltip.roundingValue
378
367
  }),
379
- { datapoint: t, seriesIndex: a }
380
- )}</span></div>`, K.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${y}</div>`);
368
+ { datapoint: t, seriesIndex: o }
369
+ )}</span></div>`, q.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${y}</div>`);
381
370
  }
382
- function Vt({ datapoint: t, seriesIndex: a }) {
383
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), q.value = !1, Ee.value = void 0, R.value = null, se.value = null;
371
+ function Xt({ datapoint: t, seriesIndex: o }) {
372
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), ae.value = !1, oe.value = void 0, R.value = null, se.value = null;
384
373
  }
385
- function Et(t) {
386
- return E(
374
+ function It(t) {
375
+ return B(
387
376
  e.value.style.layout.cells.value.formatter,
388
377
  p.value.yTotals[t].total,
389
378
  H({
@@ -395,8 +384,8 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
395
384
  { datapoint: p.value.yTotals[t], rowIndex: t }
396
385
  );
397
386
  }
398
- function Bt(t) {
399
- return E(
387
+ function Vt(t) {
388
+ return B(
400
389
  e.value.style.layout.cells.value.formatter,
401
390
  p.value.xTotals[t].total,
402
391
  H({
@@ -409,64 +398,64 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
409
398
  );
410
399
  }
411
400
  g(() => {
412
- const t = m.value.map((o) => ({
413
- name: o.name
414
- })), a = m.value.map((o) => o.values);
415
- return { head: t, body: a };
401
+ const t = m.value.map((a) => ({
402
+ name: a.name
403
+ })), o = m.value.map((a) => a.values);
404
+ return { head: t, body: o };
416
405
  });
417
- function Ne(t = null) {
418
- el(() => {
419
- const a = ["", ...m.value.map((c, x) => c.name)], o = [];
420
- for (let c = 0; c < p.value.xLabels.length; c += 1) {
421
- const x = [p.value.xLabels[c]];
422
- for (let D = 0; D < m.value.length; D += 1)
423
- x.push([m.value[D].values[c]]);
424
- o.push(x);
406
+ function Fe(t = null) {
407
+ dt(() => {
408
+ const o = ["", ...m.value.map((v, x) => v.name)], a = [];
409
+ for (let v = 0; v < p.value.xLabels.length; v += 1) {
410
+ const x = [p.value.xLabels[v]];
411
+ for (let N = 0; N < m.value.length; N += 1)
412
+ x.push([m.value[N].values[v]]);
413
+ a.push(x);
425
414
  }
426
- const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(o), d = il(s);
427
- t ? t(d) : nl({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
415
+ const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(a), d = ul(s);
416
+ t ? t(d) : il({ csvContent: d, title: e.value.style.title.text || "vue-ui-heatmap" });
428
417
  });
429
418
  }
430
- const G = r(!1);
431
- function it(t) {
432
- G.value = t, Be.value += 1;
419
+ const G = c(!1);
420
+ function st(t) {
421
+ G.value = t, Ve.value += 1;
433
422
  }
434
- function nt() {
435
- L.value.showTable = !L.value.showTable;
423
+ function ut() {
424
+ z.value.showTable = !z.value.showTable;
436
425
  }
437
- function rt() {
438
- L.value.showTooltip = !L.value.showTooltip;
426
+ function it() {
427
+ z.value.showTooltip = !z.value.showTooltip;
439
428
  }
440
- const me = r(!1);
429
+ const me = c(!1);
441
430
  function De() {
442
431
  me.value = !me.value;
443
432
  }
444
- function Ut(t, a) {
445
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), fe("selectDatapoint", t);
433
+ function Bt(t, o) {
434
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o }), fe("selectDatapoint", t);
446
435
  }
447
- function Yt() {
436
+ function Et() {
448
437
  return Y.value;
449
438
  }
450
- async function Gt({ scale: t = 2 } = {}) {
439
+ async function Ut({ scale: t = 2 } = {}) {
451
440
  if (!O.value) return;
452
- const { width: a, height: o } = O.value.getBoundingClientRect(), s = a / o, { imageUri: d, base64: c } = await gl({ domElement: O.value, base64: !0, img: !0, scale: t });
441
+ const { width: o, height: a } = O.value.getBoundingClientRect(), s = o / a, { imageUri: d, base64: v } = await gl({ domElement: O.value, base64: !0, img: !0, scale: t });
453
442
  return {
454
443
  imageUri: d,
455
- base64: c,
444
+ base64: v,
456
445
  title: e.value.style.title.text,
457
- width: a,
458
- height: o,
446
+ width: o,
447
+ height: a,
459
448
  aspectRatio: s
460
449
  };
461
450
  }
462
- const vt = g(() => ({
451
+ const nt = g(() => ({
463
452
  start: 0,
464
- end: N.value
465
- })), ct = g(() => p.value.xLabels);
466
- xt({
453
+ end: D.value
454
+ })), rt = g(() => p.value.xLabels);
455
+ mt({
467
456
  timeLabelsEls: Se,
468
- timeLabels: ct,
469
- slicer: vt,
457
+ timeLabels: rt,
458
+ slicer: nt,
470
459
  configRef: e,
471
460
  rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
472
461
  autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
@@ -475,10 +464,10 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
475
464
  rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle,
476
465
  width: ie,
477
466
  height: ne
478
- }), xt({
479
- timeLabelsEls: $e,
480
- timeLabels: ct,
481
- slicer: vt,
467
+ }), mt({
468
+ timeLabelsEls: ze,
469
+ timeLabels: rt,
470
+ slicer: nt,
482
471
  configRef: e,
483
472
  rotationPath: ["style", "layout", "cells", "columnTotal", "value", "rotation"],
484
473
  autoRotatePath: ["style", "layout", "cells", "columnTotal", "value", "autoRotate", "enable"],
@@ -489,7 +478,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
489
478
  height: ne
490
479
  });
491
480
  const xe = g(() => {
492
- const t = e.value.table.useDialog && !e.value.table.show, a = L.value.showTable;
481
+ const t = e.value.table.useDialog && !e.value.table.show, o = z.value.showTable;
493
482
  return {
494
483
  component: t ? Le : ml,
495
484
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
@@ -504,7 +493,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
504
493
  } : {
505
494
  hideDetails: !0,
506
495
  config: {
507
- open: a,
496
+ open: o,
508
497
  maxHeight: 1e4,
509
498
  body: {
510
499
  backgroundColor: e.value.style.backgroundColor,
@@ -518,50 +507,55 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
518
507
  }
519
508
  };
520
509
  });
521
- return we(() => L.value.showTable, (t) => {
522
- e.value.table.show || (t && e.value.table.useDialog && ue.value ? ue.value.open() : "close" in ue.value && ue.value.close());
523
- }), P({
524
- getData: Yt,
525
- getImage: Gt,
526
- generatePdf: tt,
527
- generateCsv: Ne,
528
- generateImage: lt,
529
- toggleTable: nt,
530
- toggleTooltip: rt,
510
+ we(() => z.value.showTable, async (t) => {
511
+ e.value.table.show || (t && e.value.table.useDialog && ue.value ? (await dt(), ue.value.open()) : "close" in ue.value && ue.value.close());
512
+ });
513
+ const { isResponsive: Yt } = hl(Be, St);
514
+ function Ne() {
515
+ z.value.showTable = !1, _e.value && _e.value.setTableIconState(!1);
516
+ }
517
+ return P({
518
+ getData: Et,
519
+ getImage: Ut,
520
+ generatePdf: Ze,
521
+ generateCsv: Fe,
522
+ generateImage: et,
523
+ toggleTable: ut,
524
+ toggleTooltip: it,
531
525
  toggleAnnotator: De,
532
- toggleFullscreen: it
533
- }), (t, a) => (u(), n("div", {
526
+ toggleFullscreen: st
527
+ }), (t, o) => (u(), n("div", {
534
528
  ref_key: "heatmapChart",
535
529
  ref: O,
536
530
  class: ce(`vue-ui-heatmap ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
537
531
  style: w(`font-family:${e.value.style.fontFamily};width:100%;${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.backgroundColor}`),
538
532
  id: `heatmap__${M.value}`,
539
- onMouseenter: a[4] || (a[4] = () => Qe(!0)),
540
- onMouseleave: a[5] || (a[5] = () => Qe(!1))
533
+ onMouseenter: o[1] || (o[1] = () => Ke(!0)),
534
+ onMouseleave: o[2] || (o[2] = () => Ke(!1))
541
535
  }, [
542
536
  e.value.userOptions.buttons.annotator ? (u(), de(i($), {
543
537
  key: 0,
544
- svgRef: i(Je),
538
+ svgRef: i(qe),
545
539
  backgroundColor: e.value.style.backgroundColor,
546
540
  color: e.value.style.color,
547
541
  active: me.value,
548
542
  onClose: De
549
543
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
550
- zt.value ? (u(), n("div", {
544
+ _t.value ? (u(), n("div", {
551
545
  key: 1,
552
546
  ref_key: "noTitle",
553
- ref: We,
547
+ ref: Ye,
554
548
  class: "vue-data-ui-no-title-space",
555
549
  style: "height:36px; width: 100%;background:transparent"
556
550
  }, null, 512)) : h("", !0),
557
551
  e.value.style.title.text ? (u(), n("div", {
558
552
  key: 2,
559
553
  ref_key: "chartTitle",
560
- ref: Ge,
554
+ ref: Ue,
561
555
  style: "width:100%;background:transparent"
562
556
  }, [
563
557
  (u(), de(bl, {
564
- key: `title_${Ye.value}`,
558
+ key: `title_${Ee.value}`,
565
559
  config: {
566
560
  title: {
567
561
  cy: "heatmap-div-title",
@@ -574,14 +568,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
574
568
  }
575
569
  }, null, 8, ["config"]))
576
570
  ], 512)) : h("", !0),
577
- e.value.userOptions.show && j.value && (i(Ke) || i(Oe)) ? (u(), de(i(oe), {
578
- ref_key: "details",
571
+ e.value.userOptions.show && j.value && (i(je) || i(Me)) ? (u(), de(i(le), {
572
+ ref_key: "userOptionsRef",
579
573
  ref: _e,
580
- key: `user_options_${Be.value}`,
574
+ key: `user_options_${Ve.value}`,
581
575
  backgroundColor: e.value.style.backgroundColor,
582
576
  color: e.value.style.color,
583
- isImaging: i(et),
584
- isPrinting: i(Ze),
577
+ isImaging: i(Qe),
578
+ isPrinting: i(Je),
585
579
  uid: M.value,
586
580
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
587
581
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -590,7 +584,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
590
584
  hasTable: e.value.userOptions.buttons.table,
591
585
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
592
586
  isFullscreen: G.value,
593
- isTooltip: L.value.showTooltip,
587
+ isTooltip: z.value.showTooltip,
594
588
  titles: { ...e.value.userOptions.buttonTitles },
595
589
  chartElement: O.value,
596
590
  position: e.value.userOptions.position,
@@ -598,74 +592,75 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
598
592
  isAnnotation: me.value,
599
593
  callbacks: e.value.userOptions.callbacks,
600
594
  printScale: e.value.userOptions.print.scale,
601
- onToggleFullscreen: it,
602
- onGeneratePdf: i(tt),
603
- onGenerateCsv: Ne,
604
- onGenerateImage: i(lt),
605
- onToggleTable: nt,
606
- onToggleTooltip: rt,
595
+ tableDialog: e.value.table.useDialog,
596
+ onToggleFullscreen: st,
597
+ onGeneratePdf: i(Ze),
598
+ onGenerateCsv: Fe,
599
+ onGenerateImage: i(et),
600
+ onToggleTable: ut,
601
+ onToggleTooltip: it,
607
602
  onToggleAnnotator: De,
608
603
  style: w({
609
- visibility: i(Ke) ? i(Oe) ? "visible" : "hidden" : "visible"
604
+ visibility: i(je) ? i(Me) ? "visible" : "hidden" : "visible"
610
605
  })
611
- }, ht({ _: 2 }, [
606
+ }, yt({ _: 2 }, [
612
607
  t.$slots.menuIcon ? {
613
608
  name: "menuIcon",
614
- fn: S(({ isOpen: o, color: s }) => [
615
- T(t.$slots, "menuIcon", te(le({ isOpen: o, color: s })), void 0, !0)
609
+ fn: S(({ isOpen: a, color: s }) => [
610
+ L(t.$slots, "menuIcon", Z(ee({ isOpen: a, color: s })), void 0, !0)
616
611
  ]),
617
612
  key: "0"
618
613
  } : void 0,
619
614
  t.$slots.optionTooltip ? {
620
615
  name: "optionTooltip",
621
616
  fn: S(() => [
622
- T(t.$slots, "optionTooltip", {}, void 0, !0)
617
+ L(t.$slots, "optionTooltip", {}, void 0, !0)
623
618
  ]),
624
619
  key: "1"
625
620
  } : void 0,
626
621
  t.$slots.optionPdf ? {
627
622
  name: "optionPdf",
628
623
  fn: S(() => [
629
- T(t.$slots, "optionPdf", {}, void 0, !0)
624
+ L(t.$slots, "optionPdf", {}, void 0, !0)
630
625
  ]),
631
626
  key: "2"
632
627
  } : void 0,
633
628
  t.$slots.optionCsv ? {
634
629
  name: "optionCsv",
635
630
  fn: S(() => [
636
- T(t.$slots, "optionCsv", {}, void 0, !0)
631
+ L(t.$slots, "optionCsv", {}, void 0, !0)
637
632
  ]),
638
633
  key: "3"
639
634
  } : void 0,
640
635
  t.$slots.optionImg ? {
641
636
  name: "optionImg",
642
637
  fn: S(() => [
643
- T(t.$slots, "optionImg", {}, void 0, !0)
638
+ L(t.$slots, "optionImg", {}, void 0, !0)
644
639
  ]),
645
640
  key: "4"
646
641
  } : void 0,
647
642
  t.$slots.optionTable ? {
648
643
  name: "optionTable",
649
644
  fn: S(() => [
650
- T(t.$slots, "optionTable", {}, void 0, !0)
645
+ L(t.$slots, "optionTable", {}, void 0, !0)
651
646
  ]),
652
647
  key: "5"
653
648
  } : void 0,
654
649
  t.$slots.optionFullscreen ? {
655
650
  name: "optionFullscreen",
656
- fn: S(({ toggleFullscreen: o, isFullscreen: s }) => [
657
- T(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
651
+ fn: S(({ toggleFullscreen: a, isFullscreen: s }) => [
652
+ L(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
658
653
  ]),
659
654
  key: "6"
660
655
  } : void 0,
661
656
  t.$slots.optionAnnotator ? {
662
657
  name: "optionAnnotator",
663
- fn: S(({ toggleAnnotator: o, isAnnotator: s }) => [
664
- T(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
658
+ fn: S(({ toggleAnnotator: a, isAnnotator: s }) => [
659
+ L(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
665
660
  ]),
666
661
  key: "7"
667
662
  } : void 0
668
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
663
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
669
664
  f("div", {
670
665
  class: ce({
671
666
  "vue-ui-heatmap-chart-wrapper": !0,
@@ -674,10 +669,10 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
674
669
  }, [
675
670
  (u(), n("svg", {
676
671
  ref_key: "svgRef",
677
- ref: Je,
678
- xmlns: i(ul),
672
+ ref: qe,
673
+ xmlns: i(sl),
679
674
  class: ce({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
680
- viewBox: `0 0 ${z.value.width} ${z.value.height}`,
675
+ viewBox: `0 0 ${_.value.width} ${_.value.height}`,
681
676
  width: "100%",
682
677
  style: w(`overflow: visible; background:transparent;color:${e.value.style.color}`),
683
678
  "aria-live": "polite",
@@ -695,70 +690,70 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
695
690
  pointerEvents: "none"
696
691
  }
697
692
  }, [
698
- T(t.$slots, "chart-background", {}, void 0, !0)
693
+ L(t.$slots, "chart-background", {}, void 0, !0)
699
694
  ], 8, Cl)) : h("", !0),
700
695
  e.value.style.layout.cells.columnTotal.color.show ? (u(), n("g", {
701
696
  key: 1,
702
697
  ref_key: "xAxisSumRects",
703
- ref: Lt
698
+ ref: Ct
704
699
  }, [
705
- (u(!0), n(C, null, F(p.value.xTotals, (o, s) => (u(), n("rect", {
706
- x: l.value.left + l.value.cellSize.width * s + v.value / 2 + l.value.sumCellXHeight,
707
- y: l.value.top - l.value.sumCellXHeight + v.value * (z.value.height / z.value.width),
700
+ (u(!0), n(C, null, F(p.value.xTotals, (a, s) => (u(), n("rect", {
701
+ x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
702
+ y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
708
703
  height: l.value.sumCellXHeight,
709
- width: l.value.cellSize.width - v.value,
704
+ width: l.value.cellSize.width - r.value,
710
705
  fill: e.value.style.layout.cells.colors.underlayer,
711
706
  stroke: e.value.style.backgroundColor,
712
- "stroke-width": v.value
707
+ "stroke-width": r.value
713
708
  }, null, 8, Ll))), 256)),
714
- (u(!0), n(C, null, F(p.value.xTotals, (o, s) => (u(), n("rect", {
715
- x: l.value.left + l.value.cellSize.width * s + v.value / 2 + l.value.sumCellXHeight,
716
- y: l.value.top - l.value.sumCellXHeight + v.value * (z.value.height / z.value.width),
709
+ (u(!0), n(C, null, F(p.value.xTotals, (a, s) => (u(), n("rect", {
710
+ x: l.value.left + l.value.cellSize.width * s + r.value / 2 + l.value.sumCellXHeight,
711
+ y: l.value.top - l.value.sumCellXHeight + r.value * (_.value.height / _.value.width),
717
712
  height: l.value.sumCellXHeight,
718
- width: l.value.cellSize.width - v.value,
719
- fill: o.color,
713
+ width: l.value.cellSize.width - r.value,
714
+ fill: a.color,
720
715
  stroke: e.value.style.backgroundColor,
721
- "stroke-width": v.value
716
+ "stroke-width": r.value
722
717
  }, null, 8, Tl))), 256))
723
718
  ], 512)) : h("", !0),
724
719
  f("g", {
725
720
  ref_key: "datapoints",
726
- ref: kt
721
+ ref: wt
727
722
  }, [
728
- (u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
729
- (u(!0), n(C, null, F(o.temperatures, (d, c) => (u(), n("g", null, [
723
+ (u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
724
+ (u(!0), n(C, null, F(a.temperatures, (d, v) => (u(), n("g", null, [
730
725
  f("rect", {
731
- x: l.value.left + l.value.cellSize.width * c + v.value / 2 + l.value.sumCellXHeight,
732
- y: l.value.top + l.value.cellSize.height * s + v.value / 2,
733
- width: l.value.cellSize.width - v.value,
734
- height: l.value.cellSize.height - v.value,
726
+ x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
727
+ y: l.value.top + l.value.cellSize.height * s + r.value / 2,
728
+ width: l.value.cellSize.width - r.value,
729
+ height: l.value.cellSize.height - r.value,
735
730
  fill: e.value.style.layout.cells.colors.underlayer,
736
731
  stroke: e.value.style.backgroundColor,
737
- "stroke-width": v.value
732
+ "stroke-width": r.value
738
733
  }, null, 8, _l),
739
734
  f("rect", {
740
- x: l.value.left + l.value.cellSize.width * c + v.value / 2 + l.value.sumCellXHeight,
741
- y: l.value.top + l.value.cellSize.height * s + v.value / 2,
742
- width: l.value.cellSize.width - v.value,
743
- height: l.value.cellSize.height - v.value,
735
+ x: l.value.left + l.value.cellSize.width * v + r.value / 2 + l.value.sumCellXHeight,
736
+ y: l.value.top + l.value.cellSize.height * s + r.value / 2,
737
+ width: l.value.cellSize.width - r.value,
738
+ height: l.value.cellSize.height - r.value,
744
739
  fill: d.color,
745
740
  stroke: e.value.style.backgroundColor,
746
- "stroke-width": v.value,
747
- onMouseover: (x) => It(d, s, l.value.left + l.value.cellSize.width * c, l.value.top + l.value.cellSize.height * s),
748
- onMouseout: () => Vt({ datapoint: d, seriesIndex: s }),
749
- onClick: () => Ut(d, s)
750
- }, null, 40, zl),
751
- e.value.style.layout.cells.value.show ? ft((u(), n("text", {
741
+ "stroke-width": r.value,
742
+ onMouseover: (x) => Pt(d, s, l.value.left + l.value.cellSize.width * v, l.value.top + l.value.cellSize.height * s),
743
+ onMouseout: () => Xt({ datapoint: d, seriesIndex: s }),
744
+ onClick: () => Bt(d, s)
745
+ }, null, 40, Sl),
746
+ e.value.style.layout.cells.value.show ? ht((u(), n("text", {
752
747
  key: 0,
753
748
  "text-anchor": "middle",
754
749
  "font-size": e.value.style.layout.cells.value.fontSize,
755
750
  "font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
756
751
  fill: i(Ae)(d.color),
757
- x: l.value.left + l.value.cellSize.width * c + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
752
+ x: l.value.left + l.value.cellSize.width * v + l.value.cellSize.width / 2 + l.value.sumCellXHeight,
758
753
  y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.cells.value.fontSize / 3,
759
754
  style: { pointerEvents: "none", userSelect: "none" }
760
755
  }, [
761
- Ie(_(i(E)(
756
+ Xe(T(i(B)(
762
757
  e.value.style.layout.cells.value.formatter,
763
758
  d.value,
764
759
  i(H)({
@@ -769,17 +764,17 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
769
764
  }),
770
765
  { datapoint: d }
771
766
  )), 1)
772
- ], 8, Sl)), [
767
+ ], 8, zl)), [
773
768
  [i(wl), {
774
- cellWidth: l.value.cellSize.width - v.value,
775
- cellHeight: l.value.cellSize.height - v.value,
769
+ cellWidth: l.value.cellSize.width - r.value,
770
+ cellHeight: l.value.cellSize.height - r.value,
776
771
  maxFontSize: e.value.style.layout.cells.value.fontSize,
777
772
  minFontSize: 10,
778
- index: s * N.value + c,
779
- reportHide: Xt,
780
- reportRotation: Ht,
781
- hideAll: Pt.value,
782
- rotateAll: Dt.value
773
+ index: s * D.value + v,
774
+ reportHide: Ht,
775
+ reportRotation: Dt,
776
+ hideAll: Nt.value,
777
+ rotateAll: Ft.value
783
778
  }]
784
779
  ]) : h("", !0)
785
780
  ]))), 256))
@@ -788,54 +783,54 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
788
783
  e.value.style.layout.cells.rowTotal.color.show ? (u(), n("g", {
789
784
  key: 2,
790
785
  ref_key: "yAxisSumRects",
791
- ref: Ct
786
+ ref: At
792
787
  }, [
793
- (u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
788
+ (u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
794
789
  f("rect", {
795
790
  x: l.value.left,
796
791
  y: l.value.top + l.value.cellSize.height * s,
797
792
  width: l.value.sumCellXHeight,
798
- height: l.value.cellSize.height - v.value,
793
+ height: l.value.cellSize.height - r.value,
799
794
  fill: e.value.style.layout.cells.colors.underlayer,
800
795
  stroke: e.value.style.backgroundColor,
801
- "stroke-width": v.value
796
+ "stroke-width": r.value
802
797
  }, null, 8, $l),
803
798
  f("rect", {
804
799
  x: l.value.left,
805
- y: l.value.top + l.value.cellSize.height * s + v.value / 2,
800
+ y: l.value.top + l.value.cellSize.height * s + r.value / 2,
806
801
  width: l.value.sumCellXHeight,
807
- height: l.value.cellSize.height - v.value,
802
+ height: l.value.cellSize.height - r.value,
808
803
  fill: p.value.yTotals[s].color,
809
804
  stroke: e.value.style.backgroundColor,
810
- "stroke-width": v.value
805
+ "stroke-width": r.value
811
806
  }, null, 8, Ml)
812
807
  ], 64))), 256))
813
808
  ], 512)) : h("", !0),
814
809
  e.value.style.layout.dataLabels.yAxis.show ? (u(), n("g", {
815
810
  key: 3,
816
811
  ref_key: "yAxisLabels",
817
- ref: je
812
+ ref: Ge
818
813
  }, [
819
- (u(!0), n(C, null, F(Y.value, (o, s) => (u(), n(C, null, [
814
+ (u(!0), n(C, null, F(Y.value, (a, s) => (u(), n(C, null, [
820
815
  f("text", {
821
816
  class: "vue-ui-heatmap-row-name",
822
817
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
823
818
  fill: e.value.style.layout.dataLabels.yAxis.color,
824
- x: Z.value,
819
+ x: J.value,
825
820
  y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY - (e.value.style.layout.cells.rowTotal.value.show ? e.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
826
821
  "text-anchor": "end",
827
822
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
828
- }, _(p.value.yLabels[s]), 9, Ol),
823
+ }, T(p.value.yLabels[s]), 9, Ol),
829
824
  e.value.style.layout.cells.rowTotal.value.show ? (u(), n("text", {
830
825
  key: 0,
831
826
  class: "vue-ui-heatmap-row-total",
832
827
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
833
828
  fill: e.value.style.layout.dataLabels.yAxis.color,
834
- x: Z.value,
829
+ x: J.value,
835
830
  y: l.value.top + l.value.cellSize.height * s + l.value.cellSize.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
836
831
  "text-anchor": "end",
837
832
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
838
- }, _(Et(s)), 9, Rl)) : h("", !0)
833
+ }, T(It(s)), 9, Rl)) : h("", !0)
839
834
  ], 64))), 256))
840
835
  ], 512)) : h("", !0),
841
836
  e.value.style.layout.dataLabels.xAxis.show ? (u(), n("g", {
@@ -843,7 +838,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
843
838
  ref_key: "xAxisLabels",
844
839
  ref: Se
845
840
  }, [
846
- (u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n(C, null, [
841
+ (u(!0), n(C, null, F(p.value.xLabels, (a, s) => (u(), n(C, null, [
847
842
  !e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), n("text", {
848
843
  key: 0,
849
844
  class: "vue-ui-heatmap-col-name",
@@ -852,42 +847,42 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
852
847
  fill: e.value.style.layout.dataLabels.xAxis.color,
853
848
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
854
849
  transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + l.value.sumCellXHeight}, ${l.value.topLabelsHeight}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
855
- }, _(o), 9, Fl)) : h("", !0)
850
+ }, T(a), 9, Fl)) : h("", !0)
856
851
  ], 64))), 256))
857
852
  ], 512)) : h("", !0),
858
853
  e.value.style.layout.cells.columnTotal.value.show ? (u(), n("g", {
859
854
  key: 5,
860
855
  ref_key: "xAxisSums",
861
- ref: $e
856
+ ref: ze
862
857
  }, [
863
- (u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n("text", {
858
+ (u(!0), n(C, null, F(p.value.xLabels, (a, s) => (u(), n("text", {
864
859
  class: "vue-ui-heatmap-col-total",
865
860
  "text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
866
861
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
867
862
  fill: e.value.style.layout.dataLabels.xAxis.color,
868
863
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
869
864
  transform: `translate(${l.value.left + l.value.cellSize.width / 2 + l.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + l.value.sumCellXHeight}, ${l.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
870
- }, _(Bt(s)), 9, Nl))), 256))
865
+ }, T(Vt(s)), 9, Dl))), 256))
871
866
  ], 512)) : h("", !0),
872
- se.value ? (u(), n("g", Dl, [
867
+ se.value ? (u(), n("g", Nl, [
873
868
  f("rect", {
874
869
  style: { "pointer-events": "none" },
875
- x: se.value.x - e.value.style.layout.cells.selected.border / 2 + v.value + l.value.sumCellXHeight,
876
- y: se.value.y - e.value.style.layout.cells.selected.border / 2 + v.value,
877
- width: l.value.cellSize.width - v.value + e.value.style.layout.cells.selected.border - v.value,
878
- height: l.value.cellSize.height - v.value + e.value.style.layout.cells.selected.border - v.value,
870
+ x: se.value.x - e.value.style.layout.cells.selected.border / 2 + r.value + l.value.sumCellXHeight,
871
+ y: se.value.y - e.value.style.layout.cells.selected.border / 2 + r.value,
872
+ width: l.value.cellSize.width - r.value + e.value.style.layout.cells.selected.border - r.value,
873
+ height: l.value.cellSize.height - r.value + e.value.style.layout.cells.selected.border - r.value,
879
874
  fill: "transparent",
880
875
  stroke: e.value.style.layout.cells.selected.color,
881
876
  "stroke-width": e.value.style.layout.cells.selected.border,
882
877
  rx: 1
883
878
  }, null, 8, Hl)
884
879
  ])) : h("", !0),
885
- T(t.$slots, "svg", { svg: z.value }, void 0, !0)
880
+ L(t.$slots, "svg", { svg: _.value }, void 0, !0)
886
881
  ], 14, Al)),
887
882
  e.value.style.legend.show ? (u(), n("div", {
888
883
  key: 0,
889
884
  ref_key: "legendRight",
890
- ref: At,
885
+ ref: kt,
891
886
  class: "vue-ui-heatmap-legend-right",
892
887
  style: w({
893
888
  "--legend-width": e.value.style.legend.width + "px"
@@ -900,12 +895,12 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
900
895
  fontSize: e.value.style.legend.fontSize + "px",
901
896
  color: e.value.style.legend.color
902
897
  })
903
- }, _(i(E)(
898
+ }, T(i(B)(
904
899
  e.value.style.layout.cells.value.formatter,
905
- i(B)(V.value),
900
+ i(E)(V.value),
906
901
  i(H)({
907
902
  p: e.value.style.layout.dataLabels.prefix,
908
- v: i(B)(V.value),
903
+ v: i(E)(V.value),
909
904
  s: e.value.style.layout.dataLabels.suffix,
910
905
  r: e.value.style.legend.roundingValue
911
906
  })
@@ -917,14 +912,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
917
912
  background: `linear-gradient(to bottom, ${e.value.style.layout.cells.colors.hot}, ${e.value.style.layout.cells.colors.cold})`
918
913
  })
919
914
  }, [
920
- ft(f("div", {
915
+ ht(f("div", {
921
916
  class: "vue-ui-heatmap-gauge-indicator",
922
- "data-value": i(E)(
917
+ "data-value": i(B)(
923
918
  e.value.style.layout.cells.value.formatter,
924
- i(B)(R.value),
919
+ i(E)(R.value),
925
920
  i(H)({
926
921
  p: e.value.style.layout.dataLabels.prefix,
927
- v: i(B)(R.value),
922
+ v: i(E)(R.value),
928
923
  s: e.value.style.layout.dataLabels.suffix,
929
924
  r: e.value.style.legend.roundingValue
930
925
  })
@@ -943,12 +938,12 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
943
938
  "--gauge-arrow-font-size": e.value.style.legend.fontSize + "px"
944
939
  })
945
940
  }, [
946
- f("div", Il, _(i(E)(
941
+ f("div", Il, T(i(B)(
947
942
  e.value.style.layout.cells.value.formatter,
948
- i(B)(R.value),
943
+ i(E)(R.value),
949
944
  i(H)({
950
945
  p: e.value.style.layout.dataLabels.prefix,
951
- v: i(B)(R.value),
946
+ v: i(E)(R.value),
952
947
  s: e.value.style.layout.dataLabels.suffix,
953
948
  r: e.value.style.legend.roundingValue
954
949
  })
@@ -965,12 +960,12 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
965
960
  fontSize: e.value.style.legend.fontSize + "px",
966
961
  color: e.value.style.legend.color
967
962
  })
968
- }, _(i(E)(
963
+ }, T(i(B)(
969
964
  e.value.style.layout.cells.value.formatter,
970
- i(B)(ve.value),
965
+ i(E)(ve.value),
971
966
  i(H)({
972
967
  p: e.value.style.layout.dataLabels.prefix,
973
- v: i(B)(ve.value),
968
+ v: i(E)(ve.value),
974
969
  s: e.value.style.layout.dataLabels.suffix,
975
970
  r: e.value.style.legend.roundingValue
976
971
  })
@@ -978,18 +973,18 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
978
973
  ], 4)) : h("", !0)
979
974
  ], 2),
980
975
  t.$slots.watermark ? (u(), n("div", Vl, [
981
- T(t.$slots, "watermark", te(le({ isPrinting: i(Ze) || i(et) })), void 0, !0)
976
+ L(t.$slots, "watermark", Z(ee({ isPrinting: i(Je) || i(Qe) })), void 0, !0)
982
977
  ])) : h("", !0),
983
978
  t.$slots.source ? (u(), n("div", {
984
979
  key: 5,
985
980
  ref_key: "source",
986
- ref: qe,
981
+ ref: We,
987
982
  dir: "auto"
988
983
  }, [
989
- T(t.$slots, "source", {}, void 0, !0)
984
+ L(t.$slots, "source", {}, void 0, !0)
990
985
  ], 512)) : h("", !0),
991
986
  ke(i(W), {
992
- show: L.value.showTooltip && q.value,
987
+ show: z.value.showTooltip && ae.value,
993
988
  backgroundColor: e.value.style.tooltip.backgroundColor,
994
989
  color: e.value.style.tooltip.color,
995
990
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -1000,57 +995,57 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1000
995
  position: e.value.style.tooltip.position,
1001
996
  offsetY: e.value.style.tooltip.offsetY,
1002
997
  parent: O.value,
1003
- content: K.value,
998
+ content: q.value,
1004
999
  isFullscreen: G.value,
1005
1000
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1006
1001
  smooth: e.value.style.tooltip.smooth,
1007
1002
  backdropFilter: e.value.style.tooltip.backdropFilter
1008
1003
  }, {
1009
1004
  "tooltip-before": S(() => [
1010
- T(t.$slots, "tooltip-before", te(le({ ...be.value })), void 0, !0)
1005
+ L(t.$slots, "tooltip-before", Z(ee({ ...be.value })), void 0, !0)
1011
1006
  ]),
1012
1007
  "tooltip-after": S(() => [
1013
- T(t.$slots, "tooltip-after", te(le({ ...be.value })), void 0, !0)
1008
+ L(t.$slots, "tooltip-after", Z(ee({ ...be.value })), void 0, !0)
1014
1009
  ]),
1015
1010
  _: 3
1016
1011
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1017
1012
  j.value ? (u(), de(Jt(xe.value.component), Qt({ key: 6 }, xe.value.props, {
1018
1013
  ref_key: "tableUnit",
1019
1014
  ref: ue,
1020
- onClose: a[3] || (a[3] = (o) => L.value.showTable = !1)
1021
- }), ht({
1015
+ onClose: Ne
1016
+ }), yt({
1022
1017
  content: S(() => [
1023
1018
  f("div", {
1024
1019
  ref_key: "tableContainer",
1025
- ref: ze,
1020
+ ref: Be,
1026
1021
  class: "vue-ui-heatmap-table atom-data-table",
1027
1022
  style: w(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
1028
1023
  }, [
1029
1024
  f("div", {
1030
1025
  style: w(`width:100%;overflow-x:auto;position:relative;${e.value.table.useDialog ? "" : "padding-top:36px"};`),
1031
- class: ce({ "vue-ui-responsive": Ue.value })
1026
+ class: ce({ "vue-ui-responsive": i(Yt) })
1032
1027
  }, [
1033
1028
  e.value.table.useDialog ? h("", !0) : (u(), n("div", {
1034
1029
  key: 0,
1035
1030
  role: "button",
1036
1031
  tabindex: "0",
1037
1032
  style: w(`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:${e.value.table.th.backgroundColor};`),
1038
- onClick: a[1] || (a[1] = (o) => L.value.showTable = !1),
1039
- onKeypress: a[2] || (a[2] = Zt((o) => L.value.showTable = !1, ["enter"]))
1033
+ onClick: Ne,
1034
+ onKeypress: Zt(Ne, ["enter"])
1040
1035
  }, [
1041
- ke(i(ae), {
1036
+ ke(i(te), {
1042
1037
  name: "close",
1043
1038
  stroke: e.value.table.th.color,
1044
1039
  "stroke-width": 2
1045
1040
  }, null, 8, ["stroke"])
1046
1041
  ], 36)),
1047
- f("table", El, [
1042
+ f("table", Bl, [
1048
1043
  e.value.table.useDialog ? h("", !0) : (u(), n("caption", {
1049
1044
  key: 0,
1050
1045
  style: w(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1051
1046
  }, [
1052
- Ie(_(e.value.style.title.text) + " ", 1),
1053
- e.value.style.title.subtitle.text ? (u(), n("span", Bl, _(e.value.style.title.subtitle.text), 1)) : h("", !0)
1047
+ Xe(T(e.value.style.title.text) + " ", 1),
1048
+ e.value.style.title.subtitle.text ? (u(), n("span", El, T(e.value.style.title.subtitle.text), 1)) : h("", !0)
1054
1049
  ], 4)),
1055
1050
  f("thead", null, [
1056
1051
  f("tr", {
@@ -1060,14 +1055,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1060
1055
  f("th", {
1061
1056
  style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
1062
1057
  }, null, 4),
1063
- (u(!0), n(C, null, F(b.dataset, (o, s) => (u(), n("th", {
1058
+ (u(!0), n(C, null, F(b.dataset, (a, s) => (u(), n("th", {
1064
1059
  align: "right",
1065
1060
  style: w(`outline:${e.value.table.th.outline};padding-right:6px`)
1066
- }, _(o.name), 5))), 256))
1061
+ }, T(a.name), 5))), 256))
1067
1062
  ], 4)
1068
1063
  ]),
1069
1064
  f("tbody", null, [
1070
- (u(!0), n(C, null, F(p.value.xLabels, (o, s) => (u(), n("tr", {
1065
+ (u(!0), n(C, null, F(p.value.xLabels, (a, s) => (u(), n("tr", {
1071
1066
  role: "row",
1072
1067
  class: ce({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
1073
1068
  style: w(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
@@ -1077,14 +1072,14 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1077
1072
  class: "vue-ui-data-table__tbody__td",
1078
1073
  style: w(`outline:${e.value.table.td.outline}`)
1079
1074
  }, [
1080
- f("div", Yl, _(o), 1)
1075
+ f("div", Yl, T(a), 1)
1081
1076
  ], 12, Ul),
1082
- (u(!0), n(C, null, F(b.dataset, (d, c) => (u(), n("td", {
1077
+ (u(!0), n(C, null, F(b.dataset, (d, v) => (u(), n("td", {
1083
1078
  class: "vue-ui-data-table__tbody__td",
1084
- "data-cell": b.dataset[c].name,
1079
+ "data-cell": b.dataset[v].name,
1085
1080
  style: w(`outline:${e.value.table.td.outline}`)
1086
1081
  }, [
1087
- f("div", Wl, _(isNaN(d.values[s]) ? "-" : i(H)({ p: e.value.style.layout.dataLabels.prefix, v: d.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
1082
+ f("div", Wl, T(isNaN(d.values[s]) ? "-" : i(H)({ p: e.value.style.layout.dataLabels.prefix, v: d.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
1088
1083
  ], 12, Gl))), 256))
1089
1084
  ], 6))), 256))
1090
1085
  ])
@@ -1097,7 +1092,7 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1097
1092
  e.value.table.useDialog ? {
1098
1093
  name: "title",
1099
1094
  fn: S(() => [
1100
- Ie(_(xe.value.title), 1)
1095
+ Xe(T(xe.value.title), 1)
1101
1096
  ]),
1102
1097
  key: "0"
1103
1098
  } : void 0,
@@ -1107,9 +1102,9 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1107
1102
  f("button", {
1108
1103
  tabindex: "0",
1109
1104
  class: "vue-ui-user-options-button",
1110
- onClick: a[0] || (a[0] = (o) => Ne(e.value.userOptions.callbacks.csv))
1105
+ onClick: o[0] || (o[0] = (a) => Fe(e.value.userOptions.callbacks.csv))
1111
1106
  }, [
1112
- ke(i(ae), {
1107
+ ke(i(te), {
1113
1108
  name: "excel",
1114
1109
  stroke: xe.value.props.color
1115
1110
  }, null, 8, ["stroke"])
@@ -1118,10 +1113,10 @@ const kl = ["id"], Al = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"]
1118
1113
  key: "1"
1119
1114
  } : void 0
1120
1115
  ]), 1040)) : h("", !0),
1121
- i(pe) ? (u(), de(hl, { key: 7 })) : h("", !0)
1116
+ i(pe) ? (u(), de(yl, { key: 7 })) : h("", !0)
1122
1117
  ], 46, kl));
1123
1118
  }
1124
- }, ra = /* @__PURE__ */ xl(jl, [["__scopeId", "data-v-19a7e357"]]);
1119
+ }, va = /* @__PURE__ */ xl(jl, [["__scopeId", "data-v-e3daac0e"]]);
1125
1120
  export {
1126
- ra as default
1121
+ va as default
1127
1122
  };