vue-data-ui 3.1.0 → 3.1.1

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