vue-data-ui 2.17.0 → 2.17.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 (91) hide show
  1. package/README.md +2 -1
  2. package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
  11. package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +63 -160
  23. package/dist/types/vue-data-ui.d.ts +63 -160
  24. package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
  29. package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
  31. package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
  33. package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
  34. package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
  36. package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
  37. package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
  38. package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
  42. package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
  43. package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
  44. package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
  45. package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
  46. package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
  47. package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
  48. package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
  50. package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
  51. package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
  54. package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
  55. package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
  56. package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
  57. package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
  58. package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
  59. package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
  60. package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
  61. package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
  63. package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
  64. package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
  65. package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
  66. package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
  75. package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
  76. package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
  80. package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
  82. package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
  84. package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
  85. package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
  86. package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
  87. package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
  88. package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
  89. package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
  90. package/package.json +1 -1
  91. package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
@@ -1,12 +1,12 @@
1
- import { useCssVars as el, defineAsyncComponent as B, computed as f, ref as b, watch as Me, shallowRef as ll, onMounted as tl, onBeforeUnmount as al, createElementBlock as i, openBlock as o, unref as r, normalizeStyle as T, normalizeClass as te, createBlock as J, createCommentVNode as d, createVNode as ve, createSlots as ol, withCtx as A, renderSlot as m, normalizeProps as D, guardReactiveProps as E, Fragment as _, renderList as z, createElementVNode as v, toDisplayString as x, withKeys as sl, createTextVNode as ul, nextTick as nl } from "vue";
2
- import { u as il, o as rl, e as Oe, c as ye, a as vl, C as yl, P as Q, g as dl, X as cl, F as de, i as S, f as M, v as N, q as hl, r as gl, x as pl, y as fl } from "./index-pPGk-uhD.js";
3
- import { u as Se } from "./useNestedProp-DjACxgdZ.js";
4
- import { u as bl } from "./usePrinter-DDHcrl0A.js";
1
+ import { useCssVars as el, defineAsyncComponent as D, computed as f, ref as b, watch as Me, shallowRef as ll, onMounted as tl, onBeforeUnmount as al, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as T, normalizeClass as te, createBlock as J, createCommentVNode as d, createVNode as ve, createSlots as ol, withCtx as A, renderSlot as m, normalizeProps as E, guardReactiveProps as U, Fragment as _, renderList as z, createElementVNode as v, toDisplayString as x, withKeys as sl, createTextVNode as ul, nextTick as nl } from "vue";
2
+ import { u as il, o as rl, e as Oe, c as ye, a as vl, C as yl, P as Q, g as dl, X as cl, F as de, i as S, f as M, v as N, q as hl, r as gl, x as pl, y as fl } from "./index-CobsZUkv.js";
3
+ import { u as Se } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as bl } from "./usePrinter-DPh6U_Qk.js";
5
5
  import { u as ml } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
7
- import wl from "./vue-ui-accordion-CVnA550V.js";
8
- import kl from "./Title-B-2bV0SW.js";
9
- import _l from "./img-Y_hYz-ZC.js";
7
+ import wl from "./vue-ui-accordion-UewqY6OI.js";
8
+ import kl from "./Title-DpERl1yr.js";
9
+ import _l from "./img-utitT2Gd.js";
10
10
  import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const $l = ["id"], Ll = {
12
12
  key: 2,
@@ -41,16 +41,16 @@ const $l = ["id"], Ll = {
41
41
  }
42
42
  },
43
43
  emits: ["selectDatapoint"],
44
- setup(U, { expose: Ne, emit: Ve }) {
44
+ setup(Y, { expose: Ne, emit: Ve }) {
45
45
  el((l) => ({
46
- "2baa6172": l.tdo
46
+ "757909df": l.tdo
47
47
  }));
48
- const Fe = B(() => import("./BaseIcon-naqtCxVi.js")), Ie = B(() => import("./PackageVersion-5TR4ocqp.js")), Pe = B(() => import("./PenAndPaper-D6AqipIO.js")), Re = B(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = B(() => import("./Tooltip-CoQnTnr-.js")), Be = B(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_heatmap: De } = il(), y = U, Ee = Ve, Z = f(() => !!y.dataset && y.dataset.length);
48
+ const Fe = D(() => import("./BaseIcon-D9Tz8ARD.js")), Ie = D(() => import("./PackageVersion-C-4Ee8BQ.js")), Pe = D(() => import("./PenAndPaper-Cde-wJ3N.js")), Re = D(() => import("./vue-ui-skeleton-8s4xts8z.js")), Xe = D(() => import("./Tooltip-DA0bYKFG.js")), Be = D(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_heatmap: De } = il(), y = Y, Ee = Ve, Z = f(() => !!y.dataset && y.dataset.length);
49
49
  rl(y.dataset) && Oe({
50
50
  componentName: "VueUiHeatmap",
51
51
  type: "dataset"
52
52
  });
53
- const Y = b(ye()), G = b(null), Ue = b(null), ae = b(!1), oe = b(""), ce = b(void 0), H = b(null), he = b(0), ge = b(null), Ye = b(null), pe = b(!1), fe = b(0), e = f({
53
+ const G = b(ye()), R = b(null), Ue = b(null), ae = b(!1), oe = b(""), ce = b(void 0), H = b(null), he = b(0), ge = b(null), Ye = b(null), pe = b(!1), fe = b(0), e = f({
54
54
  get: () => we(),
55
55
  set: (l) => l
56
56
  }), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = ml({ config: e.value }), { svgRef: xe } = xl({ config: e.value.style.title });
@@ -59,13 +59,13 @@ const $l = ["id"], Ll = {
59
59
  userConfig: y.config,
60
60
  defaultConfig: De
61
61
  });
62
- let s = {};
63
- return l.theme ? s = {
62
+ let o = {};
63
+ return l.theme ? o = {
64
64
  ...Se({
65
65
  userConfig: vl.vue_ui_heatmap[l.theme] || y.config,
66
66
  defaultConfig: l
67
67
  })
68
- } : s = l, y.config && yl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? s.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : s.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, s;
68
+ } : o = l, y.config && yl(y.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? o.style.layout.dataLabels.xAxis.showOnlyAtModulo = y.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : o.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, o;
69
69
  }
70
70
  Me(() => y.config, (l) => {
71
71
  e.value = we(), se.value = !e.value.userOptions.showOnChartHover, ue(), fe.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.tooltip.show;
@@ -73,32 +73,32 @@ const $l = ["id"], Ll = {
73
73
  ue();
74
74
  }, { deep: !0 });
75
75
  const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = bl({
76
- elementId: `heatmap__${Y.value}`,
76
+ elementId: `heatmap__${G.value}`,
77
77
  fileName: e.value.style.title.text || "vue-ui-heatmap",
78
78
  options: e.value.userOptions.print
79
79
  }), Ge = f(() => e.value.userOptions.show && !e.value.style.title.text), C = b({
80
80
  showTable: e.value.table.show,
81
81
  showTooltip: e.value.style.tooltip.show
82
- }), He = f(() => e.value.table.responsiveBreakpoint), R = ll(null);
82
+ }), He = f(() => e.value.table.responsiveBreakpoint), X = ll(null);
83
83
  function je() {
84
- R.value && R.value.disconnect(), R.value = new ResizeObserver((l) => {
85
- l.forEach((s) => {
86
- pe.value = s.contentRect.width < He.value;
84
+ X.value && X.value.disconnect(), X.value = new ResizeObserver((l) => {
85
+ l.forEach((o) => {
86
+ pe.value = o.contentRect.width < He.value;
87
87
  });
88
- }), R.value.observe(ge.value);
88
+ }), X.value.observe(ge.value);
89
89
  }
90
90
  tl(ue), al(() => {
91
- R.value && R.value.disconnect();
91
+ X.value && X.value.disconnect();
92
92
  });
93
93
  function ue() {
94
94
  je();
95
95
  }
96
96
  const V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))), $ = f(() => {
97
- const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, s = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (V.value < y.dataset.length ? y.dataset.length : V.value) * e.value.style.layout.cells.height, u = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
97
+ const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, o = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (V.value < y.dataset.length ? y.dataset.length : V.value) * e.value.style.layout.cells.height, n = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
98
98
  return {
99
99
  height: l,
100
- heightWithLegend: u,
101
- width: s
100
+ heightWithLegend: n,
101
+ width: o
102
102
  };
103
103
  }), ee = f(() => e.value.style.legend.position), t = f(() => ({
104
104
  top: e.value.style.layout.padding.top,
@@ -108,23 +108,23 @@ const $l = ["id"], Ll = {
108
108
  height: $.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
109
109
  width: $.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (ee.value === "right" && e.value.style.legend.show ? 92 : 0)
110
110
  })), ne = f(() => a.value.height * y.dataset.length), L = f(() => Math.max(...y.dataset.flatMap((l) => l.values))), F = f(() => Math.min(...y.dataset.flatMap((l) => l.values))), I = f(() => {
111
- const l = y.dataset.flatMap((u) => u.values);
112
- return l.reduce((u, n) => u + n, 0) / l.length;
111
+ const l = y.dataset.flatMap((n) => n.values);
112
+ return l.reduce((n, s) => n + s, 0) / l.length;
113
113
  }), a = f(() => ({
114
114
  width: t.value.width / V.value,
115
115
  height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.value)
116
116
  })), p = f(() => {
117
- const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((g) => g.name), s = e.value.style.layout.dataLabels.xAxis.values, u = y.dataset.map((g) => g.values.reduce((w, re) => w + re, 0)), n = Math.max(...u), c = Math.min(...u), h = [];
117
+ const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : y.dataset.map((g) => g.name), o = e.value.style.layout.dataLabels.xAxis.values, n = y.dataset.map((g) => g.values.reduce((w, re) => w + re, 0)), s = Math.max(...n), c = Math.min(...n), h = [];
118
118
  for (let g = 0; g < V.value; g += 1)
119
119
  h.push(y.dataset.map((w) => w.values[g] || 0).reduce((w, re) => w + re, 0));
120
120
  const k = Math.max(...h), P = Math.min(...h);
121
121
  return {
122
- yTotals: u.map((g) => {
123
- const w = isNaN(g / n) ? 0 : g / n;
122
+ yTotals: n.map((g) => {
123
+ const w = isNaN(g / s) ? 0 : g / s;
124
124
  return {
125
125
  total: g,
126
126
  proportion: w,
127
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, n, g)
127
+ color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, s, g)
128
128
  };
129
129
  }),
130
130
  xTotals: h.map((g) => {
@@ -136,46 +136,46 @@ const $l = ["id"], Ll = {
136
136
  };
137
137
  }),
138
138
  yLabels: l,
139
- xLabels: s.slice(0, V.value)
139
+ xLabels: o.slice(0, V.value)
140
140
  };
141
- }), j = f(() => (y.dataset.forEach((l, s) => {
141
+ }), j = f(() => (y.dataset.forEach((l, o) => {
142
142
  dl({
143
143
  datasetObject: l,
144
144
  requiredAttributes: ["values"]
145
- }).forEach((u) => {
145
+ }).forEach((n) => {
146
146
  Oe({
147
147
  componentName: "VueUiHeatmap",
148
148
  type: "datasetSerieAttribute",
149
149
  property: "values",
150
- index: s
150
+ index: o
151
151
  });
152
152
  });
153
153
  }), y.dataset.map((l) => ({
154
154
  ...l,
155
- temperatures: (l.values || []).map((s, u) => s >= I.value ? {
155
+ temperatures: (l.values || []).map((o, n) => o >= I.value ? {
156
156
  side: "up",
157
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, s),
158
- ratio: Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(s - I.value) / Math.abs(L.value - I.value)),
159
- value: s,
157
+ color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, o),
158
+ ratio: Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)),
159
+ value: o,
160
160
  yAxisName: l.name,
161
- xAxisName: p.value.xLabels[u],
161
+ xAxisName: p.value.xLabels[n],
162
162
  id: `vue-data-ui-heatmap-cell-${ye()}`
163
163
  } : {
164
164
  side: "down",
165
- ratio: Math.abs(1 - Math.abs(s) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(s) / Math.abs(I.value)),
166
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, s),
167
- value: s,
165
+ ratio: Math.abs(1 - Math.abs(o) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(I.value)),
166
+ color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, o),
167
+ value: o,
168
168
  yAxisName: l.name,
169
- xAxisName: p.value.xLabels[u],
169
+ xAxisName: p.value.xLabels[n],
170
170
  id: `vue-data-ui-heatmap-cell-${ye()}`
171
171
  })
172
172
  })))), O = b(null), W = b(null);
173
- function We(l, s, u, n) {
174
- H.value = { x: u, y: n };
173
+ function We(l, o, n, s) {
174
+ H.value = { x: n, y: s };
175
175
  const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
176
176
  ce.value = P, O.value = c, W.value = {
177
177
  datapoint: l,
178
- seriesIndex: s,
178
+ seriesIndex: o,
179
179
  series: j.value,
180
180
  config: e.value
181
181
  }, ae.value = !0;
@@ -183,12 +183,12 @@ const $l = ["id"], Ll = {
183
183
  const w = e.value.style.tooltip.customFormat;
184
184
  pl(w) && fl(() => w({
185
185
  datapoint: l,
186
- seriesIndex: s,
186
+ seriesIndex: o,
187
187
  series: j.value,
188
188
  config: e.value
189
189
  })) ? oe.value = w({
190
190
  datapoint: l,
191
- seriesIndex: s,
191
+ seriesIndex: o,
192
192
  series: j.value,
193
193
  config: e.value
194
194
  }) : (g += `<div>${h} ${k ? `${k}` : ""}</div>`, g += `<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:${Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, L.value, c)}">⬤</span><span>${isNaN(c) ? "-" : S(
@@ -200,7 +200,7 @@ const $l = ["id"], Ll = {
200
200
  s: e.value.style.layout.dataLabels.suffix,
201
201
  r: e.value.style.tooltip.roundingValue
202
202
  }),
203
- { datapoint: l, seriesIndex: s }
203
+ { datapoint: l, seriesIndex: o }
204
204
  )}</span></div>`, oe.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${g}</div>`);
205
205
  }
206
206
  const q = f(() => t.value.top + ne.value * (1 - O.value / L.value)), K = f(() => t.value.left + ($.value.width - t.value.left - e.value.style.layout.padding.right) * (O.value / L.value));
@@ -231,27 +231,27 @@ const $l = ["id"], Ll = {
231
231
  );
232
232
  }
233
233
  f(() => {
234
- const l = y.dataset.map((u) => ({
235
- name: u.name
236
- })), s = y.dataset.map((u) => u.values);
237
- return { head: l, body: s };
234
+ const l = y.dataset.map((n) => ({
235
+ name: n.name
236
+ })), o = y.dataset.map((n) => n.values);
237
+ return { head: l, body: o };
238
238
  });
239
239
  function Le(l = null) {
240
240
  nl(() => {
241
- const s = ["", ...y.dataset.map((h, k) => h.name)], u = [];
241
+ const o = ["", ...y.dataset.map((h, k) => h.name)], n = [];
242
242
  for (let h = 0; h < p.value.xLabels.length; h += 1) {
243
243
  const k = [p.value.xLabels[h]];
244
244
  for (let P = 0; P < y.dataset.length; P += 1)
245
245
  k.push([y.dataset[P].values[h]]);
246
- u.push(k);
246
+ n.push(k);
247
247
  }
248
- const n = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(u), c = hl(n);
248
+ const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(n), c = hl(s);
249
249
  l ? l(c) : gl({ csvContent: c, title: e.value.style.title.text || "vue-ui-heatmap" });
250
250
  });
251
251
  }
252
- const X = b(!1);
252
+ const B = b(!1);
253
253
  function Te(l) {
254
- X.value = l, he.value += 1;
254
+ B.value = l, he.value += 1;
255
255
  }
256
256
  function Ae() {
257
257
  C.value.showTable = !C.value.showTable;
@@ -270,9 +270,16 @@ const $l = ["id"], Ll = {
270
270
  return j.value;
271
271
  }
272
272
  async function Ze({ scale: l = 2 } = {}) {
273
- if (!G.value) return;
274
- const { imageUri: s, base64: u } = await _l({ domElement: G.value, base64: !0, img: !0, scale: l });
275
- return { imageUri: s, base64: u };
273
+ if (!R.value) return;
274
+ const { width: o, height: n } = R.value.getBoundingClientRect(), s = o / n, { imageUri: c, base64: h } = await _l({ domElement: R.value, base64: !0, img: !0, scale: l });
275
+ return {
276
+ imageUri: c,
277
+ base64: h,
278
+ title: e.value.style.title.text,
279
+ width: o,
280
+ height: n,
281
+ aspectRatio: s
282
+ };
276
283
  }
277
284
  return Ne({
278
285
  getData: Qe,
@@ -284,16 +291,16 @@ const $l = ["id"], Ll = {
284
291
  toggleTooltip: ze,
285
292
  toggleAnnotator: ie,
286
293
  toggleFullscreen: Te
287
- }), (l, s) => (o(), i("div", {
294
+ }), (l, o) => (u(), i("div", {
288
295
  ref_key: "heatmapChart",
289
- ref: G,
290
- class: te(`vue-ui-heatmap ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
296
+ ref: R,
297
+ class: te(`vue-ui-heatmap ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
291
298
  style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
292
- id: `heatmap__${Y.value}`,
293
- onMouseenter: s[3] || (s[3] = () => r(be)(!0)),
294
- onMouseleave: s[4] || (s[4] = () => r(be)(!1))
299
+ id: `heatmap__${G.value}`,
300
+ onMouseenter: o[3] || (o[3] = () => r(be)(!0)),
301
+ onMouseleave: o[4] || (o[4] = () => r(be)(!1))
295
302
  }, [
296
- e.value.userOptions.buttons.annotator ? (o(), J(r(Pe), {
303
+ e.value.userOptions.buttons.annotator ? (u(), J(r(Pe), {
297
304
  key: 0,
298
305
  svgRef: r(xe),
299
306
  backgroundColor: e.value.style.backgroundColor,
@@ -301,15 +308,15 @@ const $l = ["id"], Ll = {
301
308
  active: le.value,
302
309
  onClose: ie
303
310
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
304
- Ge.value ? (o(), i("div", {
311
+ Ge.value ? (u(), i("div", {
305
312
  key: 1,
306
313
  ref_key: "noTitle",
307
314
  ref: Ye,
308
315
  class: "vue-data-ui-no-title-space",
309
316
  style: "height:36px; width: 100%;background:transparent"
310
317
  }, null, 512)) : d("", !0),
311
- e.value.style.title.text ? (o(), i("div", Ll, [
312
- (o(), J(kl, {
318
+ e.value.style.title.text ? (u(), i("div", Ll, [
319
+ (u(), J(kl, {
313
320
  key: `title_${fe.value}`,
314
321
  config: {
315
322
  title: {
@@ -323,7 +330,7 @@ const $l = ["id"], Ll = {
323
330
  }
324
331
  }, null, 8, ["config"]))
325
332
  ])) : d("", !0),
326
- e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (o(), J(r(Be), {
333
+ e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (u(), J(r(Be), {
327
334
  ref_key: "details",
328
335
  ref: Ue,
329
336
  key: `user_options_${he.value}`,
@@ -331,17 +338,17 @@ const $l = ["id"], Ll = {
331
338
  color: e.value.style.color,
332
339
  isImaging: r(_e),
333
340
  isPrinting: r(ke),
334
- uid: Y.value,
341
+ uid: G.value,
335
342
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
336
343
  hasPdf: e.value.userOptions.buttons.pdf,
337
344
  hasImg: e.value.userOptions.buttons.img,
338
345
  hasXls: e.value.userOptions.buttons.csv,
339
346
  hasTable: e.value.userOptions.buttons.table,
340
347
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
341
- isFullscreen: X.value,
348
+ isFullscreen: B.value,
342
349
  isTooltip: C.value.showTooltip,
343
350
  titles: { ...e.value.userOptions.buttonTitles },
344
- chartElement: G.value,
351
+ chartElement: R.value,
345
352
  position: e.value.userOptions.position,
346
353
  hasAnnotator: e.value.userOptions.buttons.annotator,
347
354
  isAnnotation: le.value,
@@ -360,8 +367,8 @@ const $l = ["id"], Ll = {
360
367
  }, ol({ _: 2 }, [
361
368
  l.$slots.menuIcon ? {
362
369
  name: "menuIcon",
363
- fn: A(({ isOpen: u, color: n }) => [
364
- m(l.$slots, "menuIcon", D(E({ isOpen: u, color: n })), void 0, !0)
370
+ fn: A(({ isOpen: n, color: s }) => [
371
+ m(l.$slots, "menuIcon", E(U({ isOpen: n, color: s })), void 0, !0)
365
372
  ]),
366
373
  key: "0"
367
374
  } : void 0,
@@ -402,30 +409,30 @@ const $l = ["id"], Ll = {
402
409
  } : void 0,
403
410
  l.$slots.optionFullscreen ? {
404
411
  name: "optionFullscreen",
405
- fn: A(({ toggleFullscreen: u, isFullscreen: n }) => [
406
- m(l.$slots, "optionFullscreen", D(E({ toggleFullscreen: u, isFullscreen: n })), void 0, !0)
412
+ fn: A(({ toggleFullscreen: n, isFullscreen: s }) => [
413
+ m(l.$slots, "optionFullscreen", E(U({ toggleFullscreen: n, isFullscreen: s })), void 0, !0)
407
414
  ]),
408
415
  key: "6"
409
416
  } : void 0,
410
417
  l.$slots.optionAnnotator ? {
411
418
  name: "optionAnnotator",
412
- fn: A(({ toggleAnnotator: u, isAnnotator: n }) => [
413
- m(l.$slots, "optionAnnotator", D(E({ toggleAnnotator: u, isAnnotator: n })), void 0, !0)
419
+ fn: A(({ toggleAnnotator: n, isAnnotator: s }) => [
420
+ m(l.$slots, "optionAnnotator", E(U({ toggleAnnotator: n, isAnnotator: s })), void 0, !0)
414
421
  ]),
415
422
  key: "7"
416
423
  } : void 0
417
424
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
418
- Z.value ? (o(), i("svg", {
425
+ Z.value ? (u(), i("svg", {
419
426
  key: 4,
420
427
  ref_key: "svgRef",
421
428
  ref: xe,
422
429
  xmlns: r(cl),
423
- class: te({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
430
+ class: te({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
424
431
  viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
425
432
  style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
426
433
  }, [
427
434
  ve(r(Ie)),
428
- l.$slots["chart-background"] ? (o(), i("foreignObject", {
435
+ l.$slots["chart-background"] ? (u(), i("foreignObject", {
429
436
  key: 0,
430
437
  x: 0,
431
438
  y: 0,
@@ -437,9 +444,9 @@ const $l = ["id"], Ll = {
437
444
  }, [
438
445
  m(l.$slots, "chart-background", {}, void 0, !0)
439
446
  ], 8, Al)) : d("", !0),
440
- e.value.style.layout.cells.columnTotal.color.show ? (o(), i(_, { key: 1 }, [
441
- (o(!0), i(_, null, z(p.value.xTotals, (u, n) => (o(), i("rect", {
442
- x: t.value.left + a.value.width * n + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
447
+ e.value.style.layout.cells.columnTotal.color.show ? (u(), i(_, { key: 1 }, [
448
+ (u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
449
+ x: t.value.left + a.value.width * s + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
443
450
  y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
444
451
  height: a.value.height / 3,
445
452
  width: a.value.width - e.value.style.layout.cells.spacing,
@@ -447,21 +454,21 @@ const $l = ["id"], Ll = {
447
454
  stroke: e.value.style.backgroundColor,
448
455
  "stroke-width": e.value.style.layout.cells.spacing
449
456
  }, null, 8, zl))), 256)),
450
- (o(!0), i(_, null, z(p.value.xTotals, (u, n) => (o(), i("rect", {
451
- x: t.value.left + a.value.width * n + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
457
+ (u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
458
+ x: t.value.left + a.value.width * s + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
452
459
  y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
453
460
  height: a.value.height / 3,
454
461
  width: a.value.width - e.value.style.layout.cells.spacing,
455
- fill: u.color,
462
+ fill: n.color,
456
463
  stroke: e.value.style.backgroundColor,
457
464
  "stroke-width": e.value.style.layout.cells.spacing
458
465
  }, null, 8, Ml))), 256))
459
466
  ], 64)) : d("", !0),
460
- (o(!0), i(_, null, z(j.value, (u, n) => (o(), i("g", null, [
461
- (o(!0), i(_, null, z(u.temperatures, (c, h) => (o(), i("g", null, [
467
+ (u(!0), i(_, null, z(j.value, (n, s) => (u(), i("g", null, [
468
+ (u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
462
469
  v("rect", {
463
470
  x: t.value.left + a.value.width * h + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
464
- y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
471
+ y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
465
472
  width: a.value.width - e.value.style.layout.cells.spacing,
466
473
  height: a.value.height - e.value.style.layout.cells.spacing,
467
474
  fill: e.value.style.layout.cells.colors.underlayer,
@@ -470,21 +477,21 @@ const $l = ["id"], Ll = {
470
477
  }, null, 8, Ol),
471
478
  v("rect", {
472
479
  x: t.value.left + a.value.width * h + e.value.style.layout.cells.spacing / 2 + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
473
- y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
480
+ y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
474
481
  width: a.value.width - e.value.style.layout.cells.spacing,
475
482
  height: a.value.height - e.value.style.layout.cells.spacing,
476
483
  fill: c.color,
477
484
  stroke: e.value.style.backgroundColor,
478
485
  "stroke-width": e.value.style.layout.cells.spacing
479
486
  }, null, 8, Sl),
480
- e.value.style.layout.cells.value.show ? (o(), i("text", {
487
+ e.value.style.layout.cells.value.show ? (u(), i("text", {
481
488
  key: 0,
482
489
  "text-anchor": "middle",
483
490
  "font-size": e.value.style.layout.cells.value.fontSize,
484
491
  "font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
485
492
  fill: r(de)(c.color),
486
493
  x: t.value.left + a.value.width * h + a.value.width / 2 + +(e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
487
- y: t.value.top + a.value.height * n + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
494
+ y: t.value.top + a.value.height * s + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
488
495
  }, x(r(S)(
489
496
  e.value.style.layout.cells.value.formatter,
490
497
  c.value,
@@ -497,46 +504,46 @@ const $l = ["id"], Ll = {
497
504
  { datapoint: c }
498
505
  )), 9, Nl)) : d("", !0)
499
506
  ]))), 256)),
500
- (o(!0), i(_, null, z(u.temperatures, (c, h) => (o(), i("g", null, [
507
+ (u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
501
508
  v("rect", {
502
509
  x: t.value.left + a.value.width * h + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
503
- y: t.value.top + a.value.height * n,
510
+ y: t.value.top + a.value.height * s,
504
511
  width: a.value.width,
505
512
  height: a.value.height,
506
513
  fill: "transparent",
507
514
  stroke: "none",
508
- onMouseover: (k) => We(c, n, t.value.left + a.value.width * h, t.value.top + a.value.height * n),
509
- onMouseout: s[0] || (s[0] = (k) => {
515
+ onMouseover: (k) => We(c, s, t.value.left + a.value.width * h, t.value.top + a.value.height * s),
516
+ onMouseout: o[0] || (o[0] = (k) => {
510
517
  ae.value = !1, ce.value = void 0, O.value = null, H.value = null;
511
518
  }),
512
519
  onClick: () => Je(c)
513
520
  }, null, 40, Vl)
514
521
  ]))), 256)),
515
- e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", Fl, [
522
+ e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", Fl, [
516
523
  v("text", {
517
524
  class: "vue-ui-heatmap-row-name",
518
525
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
519
526
  fill: e.value.style.layout.dataLabels.yAxis.color,
520
527
  x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
521
- y: t.value.top + a.value.height * n + a.value.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),
528
+ y: t.value.top + a.value.height * s + a.value.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),
522
529
  "text-anchor": "end",
523
530
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
524
- }, x(p.value.yLabels[n]), 9, Il),
525
- e.value.style.layout.cells.rowTotal.value.show ? (o(), i("text", {
531
+ }, x(p.value.yLabels[s]), 9, Il),
532
+ e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
526
533
  key: 0,
527
534
  class: "vue-ui-heatmap-row-total",
528
535
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
529
536
  fill: e.value.style.layout.dataLabels.yAxis.color,
530
537
  x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
531
- y: t.value.top + a.value.height * n + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
538
+ y: t.value.top + a.value.height * s + a.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize + e.value.style.layout.dataLabels.yAxis.offsetY,
532
539
  "text-anchor": "end",
533
540
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
534
- }, x(qe(n)), 9, Pl)) : d("", !0)
541
+ }, x(qe(s)), 9, Pl)) : d("", !0)
535
542
  ])) : d("", !0),
536
- e.value.style.layout.cells.rowTotal.color.show ? (o(), i("g", Rl, [
543
+ e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", Rl, [
537
544
  v("rect", {
538
545
  x: t.value.left,
539
- y: t.value.top + a.value.height * n,
546
+ y: t.value.top + a.value.height * s,
540
547
  width: a.value.height / 3,
541
548
  height: a.value.height - e.value.style.layout.cells.spacing,
542
549
  fill: e.value.style.layout.cells.colors.underlayer,
@@ -545,37 +552,37 @@ const $l = ["id"], Ll = {
545
552
  }, null, 8, Xl),
546
553
  v("rect", {
547
554
  x: t.value.left,
548
- y: t.value.top + a.value.height * n + e.value.style.layout.cells.spacing / 2,
555
+ y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
549
556
  width: a.value.height / 3,
550
557
  height: a.value.height - e.value.style.layout.cells.spacing,
551
- fill: p.value.yTotals[n].color,
558
+ fill: p.value.yTotals[s].color,
552
559
  stroke: e.value.style.backgroundColor,
553
560
  "stroke-width": e.value.style.layout.cells.spacing
554
561
  }, null, 8, Bl)
555
562
  ])) : d("", !0)
556
563
  ]))), 256)),
557
- e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", Dl, [
558
- (o(!0), i(_, null, z(p.value.xLabels, (u, n) => (o(), i(_, null, [
559
- !e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && n % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (o(), i("text", {
564
+ e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", Dl, [
565
+ (u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i(_, null, [
566
+ !e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && s % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (u(), i("text", {
560
567
  key: 0,
561
568
  class: "vue-ui-heatmap-col-name",
562
569
  "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
563
570
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
564
571
  fill: e.value.style.layout.dataLabels.xAxis.color,
565
572
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
566
- transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * n + e.value.style.layout.dataLabels.xAxis.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${t.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6 - (e.value.style.layout.cells.columnTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
567
- }, x(u), 9, El)) : d("", !0)
573
+ transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${t.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6 - (e.value.style.layout.cells.columnTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
574
+ }, x(n), 9, El)) : d("", !0)
568
575
  ], 64))), 256))
569
576
  ])) : d("", !0),
570
- e.value.style.layout.cells.columnTotal.value.show ? (o(!0), i(_, { key: 3 }, z(p.value.xLabels, (u, n) => (o(), i("text", {
577
+ e.value.style.layout.cells.columnTotal.value.show ? (u(!0), i(_, { key: 3 }, z(p.value.xLabels, (n, s) => (u(), i("text", {
571
578
  class: "vue-ui-heatmap-col-total",
572
579
  "text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
573
580
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
574
581
  fill: e.value.style.layout.dataLabels.xAxis.color,
575
582
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
576
- transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * n + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (U.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
577
- }, x(Ke(n)), 9, Ul))), 256)) : d("", !0),
578
- H.value ? (o(), i("g", Yl, [
583
+ transform: `translate(${t.value.left + a.value.width / 2 + t.value.width / p.value.xLabels.length * s + e.value.style.layout.dataLabels.xAxis.offsetX + e.value.style.layout.cells.columnTotal.value.offsetX + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0)}, ${(a.value.height + e.value.style.layout.cells.spacing) * (Y.dataset.length + 1) + e.value.style.layout.cells.columnTotal.value.offsetY}), rotate(${e.value.style.layout.cells.columnTotal.value.rotation})`
584
+ }, x(Ke(s)), 9, Ul))), 256)) : d("", !0),
585
+ H.value ? (u(), i("g", Yl, [
579
586
  v("rect", {
580
587
  style: { "pointer-events": "none" },
581
588
  x: H.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing + (e.value.style.layout.cells.rowTotal.color.show ? a.value.height / 3 + e.value.style.layout.cells.spacing : 0),
@@ -588,10 +595,10 @@ const $l = ["id"], Ll = {
588
595
  rx: 1
589
596
  }, null, 8, Gl)
590
597
  ])) : d("", !0),
591
- e.value.style.legend.show && ee.value === "right" ? (o(), i("g", Hl, [
598
+ e.value.style.legend.show && ee.value === "right" ? (u(), i("g", Hl, [
592
599
  v("defs", null, [
593
600
  v("linearGradient", {
594
- id: `colorScaleVertical_${Y.value}`,
601
+ id: `colorScaleVertical_${G.value}`,
595
602
  x2: "0%",
596
603
  y2: "100%"
597
604
  }, [
@@ -627,7 +634,7 @@ const $l = ["id"], Ll = {
627
634
  width: 36,
628
635
  height: ne.value,
629
636
  rx: e.value.style.legend.scaleBorderRadius,
630
- fill: `url(#colorScaleVertical_${Y.value})`
637
+ fill: `url(#colorScaleVertical_${G.value})`
631
638
  }, null, 8, Jl),
632
639
  v("text", {
633
640
  x: t.value.right + 36 + 18,
@@ -645,7 +652,7 @@ const $l = ["id"], Ll = {
645
652
  r: e.value.style.legend.roundingValue
646
653
  })
647
654
  )), 9, Ql),
648
- O.value !== null ? (o(), i("line", {
655
+ O.value !== null ? (u(), i("line", {
649
656
  key: 0,
650
657
  stroke: r(de)(W.value.datapoint.color),
651
658
  "stroke-width": "2",
@@ -654,14 +661,14 @@ const $l = ["id"], Ll = {
654
661
  y1: q.value,
655
662
  y2: q.value
656
663
  }, null, 8, Zl)) : d("", !0),
657
- O.value !== null ? (o(), i("path", {
664
+ O.value !== null ? (u(), i("path", {
658
665
  key: 1,
659
666
  fill: e.value.style.color,
660
667
  stroke: "none",
661
668
  d: `M ${t.value.right + 36},${q.value} ${t.value.right + 26},${q.value - 8} ${t.value.right + 26},${q.value + 8}z`
662
669
  }, null, 8, et)) : d("", !0)
663
670
  ])) : d("", !0),
664
- e.value.style.legend.show && ee.value === "bottom" ? (o(), i("g", lt, [
671
+ e.value.style.legend.show && ee.value === "bottom" ? (u(), i("g", lt, [
665
672
  v("defs", null, [
666
673
  v("linearGradient", tt, [
667
674
  v("stop", {
@@ -714,7 +721,7 @@ const $l = ["id"], Ll = {
714
721
  r: e.value.style.legend.roundingValue
715
722
  })
716
723
  )), 9, nt),
717
- O.value !== null ? (o(), i("line", {
724
+ O.value !== null ? (u(), i("line", {
718
725
  key: 0,
719
726
  stroke: r(de)(W.value.datapoint.color),
720
727
  "stroke-width": "2",
@@ -723,7 +730,7 @@ const $l = ["id"], Ll = {
723
730
  y1: t.value.bottom + e.value.style.layout.cells.height,
724
731
  y2: t.value.bottom + e.value.style.layout.cells.height * 2
725
732
  }, null, 8, it)) : d("", !0),
726
- O.value !== null ? (o(), i("path", {
733
+ O.value !== null ? (u(), i("path", {
727
734
  key: 1,
728
735
  fill: e.value.style.color,
729
736
  stroke: "none",
@@ -732,13 +739,13 @@ const $l = ["id"], Ll = {
732
739
  ])) : d("", !0),
733
740
  m(l.$slots, "svg", { svg: $.value }, void 0, !0)
734
741
  ], 14, Tl)) : d("", !0),
735
- l.$slots.watermark ? (o(), i("div", vt, [
736
- m(l.$slots, "watermark", D(E({ isPrinting: r(ke) || r(_e) })), void 0, !0)
742
+ l.$slots.watermark ? (u(), i("div", vt, [
743
+ m(l.$slots, "watermark", E(U({ isPrinting: r(ke) || r(_e) })), void 0, !0)
737
744
  ])) : d("", !0),
738
- l.$slots.source ? (o(), i("div", yt, [
745
+ l.$slots.source ? (u(), i("div", yt, [
739
746
  m(l.$slots, "source", {}, void 0, !0)
740
747
  ], 512)) : d("", !0),
741
- Z.value ? d("", !0) : (o(), J(r(Re), {
748
+ Z.value ? d("", !0) : (u(), J(r(Re), {
742
749
  key: 7,
743
750
  config: {
744
751
  type: "heatmap",
@@ -761,20 +768,20 @@ const $l = ["id"], Ll = {
761
768
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
762
769
  position: e.value.style.tooltip.position,
763
770
  offsetY: e.value.style.tooltip.offsetY,
764
- parent: G.value,
771
+ parent: R.value,
765
772
  content: oe.value,
766
- isFullscreen: X.value,
773
+ isFullscreen: B.value,
767
774
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
768
775
  }, {
769
776
  "tooltip-before": A(() => [
770
- m(l.$slots, "tooltip-before", D(E({ ...W.value })), void 0, !0)
777
+ m(l.$slots, "tooltip-before", E(U({ ...W.value })), void 0, !0)
771
778
  ]),
772
779
  "tooltip-after": A(() => [
773
- m(l.$slots, "tooltip-after", D(E({ ...W.value })), void 0, !0)
780
+ m(l.$slots, "tooltip-after", E(U({ ...W.value })), void 0, !0)
774
781
  ]),
775
782
  _: 3
776
783
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
777
- Z.value ? (o(), J(wl, {
784
+ Z.value ? (u(), J(wl, {
778
785
  key: 8,
779
786
  hideDetails: "",
780
787
  config: {
@@ -804,8 +811,8 @@ const $l = ["id"], Ll = {
804
811
  role: "button",
805
812
  tabindex: "0",
806
813
  style: T(`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};`),
807
- onClick: s[1] || (s[1] = (u) => C.value.showTable = !1),
808
- onKeypress: s[2] || (s[2] = sl((u) => C.value.showTable = !1, ["enter"]))
814
+ onClick: o[1] || (o[1] = (n) => C.value.showTable = !1),
815
+ onKeypress: o[2] || (o[2] = sl((n) => C.value.showTable = !1, ["enter"]))
809
816
  }, [
810
817
  ve(r(Fe), {
811
818
  name: "close",
@@ -818,7 +825,7 @@ const $l = ["id"], Ll = {
818
825
  style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
819
826
  }, [
820
827
  ul(x(e.value.style.title.text) + " ", 1),
821
- e.value.style.title.subtitle.text ? (o(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
828
+ e.value.style.title.subtitle.text ? (u(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
822
829
  ], 4),
823
830
  v("thead", null, [
824
831
  v("tr", {
@@ -828,16 +835,16 @@ const $l = ["id"], Ll = {
828
835
  v("th", {
829
836
  style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
830
837
  }, null, 4),
831
- (o(!0), i(_, null, z(U.dataset, (u, n) => (o(), i("th", {
838
+ (u(!0), i(_, null, z(Y.dataset, (n, s) => (u(), i("th", {
832
839
  align: "right",
833
840
  style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
834
- }, x(u.name), 5))), 256))
841
+ }, x(n.name), 5))), 256))
835
842
  ], 4)
836
843
  ]),
837
844
  v("tbody", null, [
838
- (o(!0), i(_, null, z(p.value.xLabels, (u, n) => (o(), i("tr", {
845
+ (u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i("tr", {
839
846
  role: "row",
840
- class: te({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 }),
847
+ class: te({ "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 }),
841
848
  style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
842
849
  }, [
843
850
  v("td", {
@@ -845,14 +852,14 @@ const $l = ["id"], Ll = {
845
852
  class: "vue-ui-data-table__tbody__td",
846
853
  style: T(`outline:${e.value.table.td.outline}`)
847
854
  }, [
848
- v("div", gt, x(u), 1)
855
+ v("div", gt, x(n), 1)
849
856
  ], 12, ht),
850
- (o(!0), i(_, null, z(U.dataset, (c, h) => (o(), i("td", {
857
+ (u(!0), i(_, null, z(Y.dataset, (c, h) => (u(), i("td", {
851
858
  class: "vue-ui-data-table__tbody__td",
852
- "data-cell": U.dataset[h].name,
859
+ "data-cell": Y.dataset[h].name,
853
860
  style: T(`outline:${e.value.table.td.outline}`)
854
861
  }, [
855
- v("div", ft, x(isNaN(c.values[n]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[n], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
862
+ v("div", ft, x(isNaN(c.values[s]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
856
863
  ], 12, pt))), 256))
857
864
  ], 6))), 256))
858
865
  ])
@@ -864,7 +871,7 @@ const $l = ["id"], Ll = {
864
871
  }, 8, ["config"])) : d("", !0)
865
872
  ], 46, $l));
866
873
  }
867
- }, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-c11e7656"]]);
874
+ }, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-31ec32b1"]]);
868
875
  export {
869
876
  zt as default
870
877
  };