vue-data-ui 3.0.0-next.33 → 3.0.0-next.34

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 (92) hide show
  1. package/dist/{Arrow-VgHimrRb.js → Arrow-7o1zcGGd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-fZ1Z5U4d.js} +2 -2
  3. package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-Cq9SmUOT.js} +1 -1
  4. package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-BNmC5tPY.js} +2 -2
  5. package/dist/{DataTable-CQqQt3fP.js → DataTable-DonNp9Tn.js} +2 -2
  6. package/dist/{Legend-DAN5L1lo.js → Legend-De_LcU2x.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-DCCmvppN.js} +3 -3
  8. package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-F_KOshQ5.js} +1 -1
  9. package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-BzsPyqiU.js} +3 -3
  10. package/dist/{Shape-CjeprST6.js → Shape-CJI8rA0G.js} +1 -1
  11. package/dist/{Slicer-8WIL9Cfq.js → Slicer-BCCGJwNV.js} +2 -2
  12. package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-ZSo6Sdhj.js} +1 -1
  13. package/dist/{Title-Bo-MVYcn.js → Title-CbfJu3Bz.js} +1 -1
  14. package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-BuuVsO8D.js} +1 -1
  15. package/dist/{UserOptions-dJLhbxrH.js → UserOptions-32osgWD2.js} +2 -2
  16. package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-B4iPnzPd.js} +1 -1
  17. package/dist/{img-59KgIaXp.js → img-Domj-5hZ.js} +1 -1
  18. package/dist/{index-h6tbqLot.js → index-BeBasrrG.js} +672 -660
  19. package/dist/{pdf-CVKcemYx.js → pdf-KclgkN6e.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +12 -7
  22. package/dist/types/vue-data-ui.d.ts +12 -7
  23. package/dist/{useNestedProp-D059IOwh.js → useNestedProp-BI69cynt.js} +1 -1
  24. package/dist/{usePrinter-BuJDNOzF.js → usePrinter-DpTBVYGM.js} +2 -2
  25. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  26. package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-DfOSI-cw.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BFUcEqAl.js} +6 -6
  29. package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-BBZQktvS.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-C1fCszkG.js} +6 -6
  31. package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BThZoiBl.js} +2 -2
  32. package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-D0-jL6aT.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-BKY_1NxQ.js} +163 -160
  34. package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-RqYXqUym.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-QLx875w4.js} +5 -5
  36. package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-rUYoYkRO.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-DX5resGr.js} +6 -6
  38. package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-Day-0aL1.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-G0W4wq1U.js} +62 -62
  40. package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-DFREi_Ky.js} +2 -2
  41. package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-BdxnEUCr.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DYeMgZMU.js} +215 -212
  43. package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-ajhNYekO.js} +7 -7
  44. package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-BOq3_apj.js} +7 -7
  45. package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-1Tc-WWAK.js} +6 -6
  46. package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-DRdIquCv.js} +5 -5
  47. package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-B0a3J_d1.js} +6 -6
  48. package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-5G0uR26C.js} +3 -3
  49. package/dist/vue-ui-heatmap-BGYSmKC-.js +1084 -0
  50. package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-kHo6293P.js} +7 -7
  51. package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-6zONwNMN.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-XyVfmLch.js} +2 -2
  53. package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-BoQKd6NP.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-DncLIzjX.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-DXMadqNK.js} +9 -9
  56. package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-CbtXXJHJ.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-D-zLAqYN.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-DqN9de-E.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-fAHV8BFQ.js} +6 -6
  60. package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-Dcr4Y35J.js} +7 -7
  61. package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-Y_X6wrM8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-CsjfP4w3.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-COQZjWXD.js} +8 -8
  64. package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-IWHU4YHR.js} +8 -8
  65. package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-zG4nPspJ.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-BLCAe0aL.js} +3 -3
  67. package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-CgMyaK6w.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-Dn2iTtuB.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-BA_s34xX.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-CGoeUY4p.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-BuSn8iJi.js} +4 -4
  72. package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-CYJUhGaJ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-BDQWVxNP.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-B92-pzwh.js} +301 -298
  75. package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-BLTjzATL.js} +7 -7
  76. package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-Ba7Z_7OX.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-C29u3mfg.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-BLR9glHo.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-BAm6l97t.js} +6 -6
  80. package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-CqbbNnBk.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-BnZr2Vrp.js} +6 -6
  82. package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-J8OANLCg.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-DdR3STYF.js} +9 -9
  84. package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-w5VJA7gR.js} +8 -8
  85. package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-D5yea4oH.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-OugLGxgB.js} +6 -6
  87. package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-BSptBo4h.js} +6 -6
  88. package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-DnYo2K58.js} +56 -54
  89. package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-Cmn0RWbG.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
  92. package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
@@ -1,881 +0,0 @@
1
- import { useCssVars as el, defineAsyncComponent as D, computed as b, ref as f, 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-h6tbqLot.js";
3
- import { u as Se } from "./useNestedProp-D059IOwh.js";
4
- import { u as bl } from "./usePrinter-BuJDNOzF.js";
5
- import { u as ml } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
7
- import wl from "./vue-ui-accordion-DyBJ-mad.js";
8
- import kl from "./Title-Bo-MVYcn.js";
9
- import _l from "./img-59KgIaXp.js";
10
- import { _ as Cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const $l = ["id"], Ll = {
12
- key: 2,
13
- style: "width:100%;background:transparent"
14
- }, Tl = ["xmlns", "viewBox"], Al = ["width", "height"], zl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ml = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ol = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Sl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Nl = ["font-size", "font-weight", "fill", "x", "y"], Fl = ["x", "y", "width", "height", "onMouseover", "onClick"], Vl = { key: 0 }, Il = ["font-size", "fill", "x", "y", "font-weight"], Pl = ["font-size", "fill", "x", "y", "font-weight"], Rl = { key: 1 }, Xl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Bl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Dl = { key: 2 }, El = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Ul = ["text-anchor", "font-size", "fill", "font-weight", "transform"], Yl = { key: 4 }, Gl = ["x", "y", "width", "height", "stroke", "stroke-width"], Hl = { key: 5 }, jl = ["id"], Wl = ["stop-color"], ql = ["stop-color"], Kl = ["x", "y", "font-size", "fill"], Jl = ["x", "y", "height", "rx", "fill"], Ql = ["x", "y", "font-size", "fill"], Zl = ["stroke", "x1", "x2", "y1", "y2"], et = ["fill", "d"], lt = { key: 6 }, tt = {
15
- id: "colorScaleHorizontal",
16
- x1: "0%",
17
- x2: "100%",
18
- y1: "0%",
19
- y2: "0%"
20
- }, at = ["stop-color"], ot = ["stop-color"], st = ["x", "y", "width", "height", "rx"], ut = ["x", "y", "font-size", "fill"], nt = ["x", "y", "font-size", "fill"], it = ["stroke", "x1", "x2", "y1", "y2"], rt = ["fill", "d"], vt = {
21
- key: 5,
22
- class: "vue-data-ui-watermark"
23
- }, yt = {
24
- key: 6,
25
- ref: "source",
26
- dir: "auto"
27
- }, dt = { class: "vue-ui-data-table" }, ct = { key: 0 }, ht = ["data-cell"], gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pt = ["data-cell"], ft = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bt = {
28
- __name: "vue-ui-heatmap",
29
- props: {
30
- config: {
31
- type: Object,
32
- default() {
33
- return {};
34
- }
35
- },
36
- dataset: {
37
- type: Array,
38
- default() {
39
- return [];
40
- }
41
- }
42
- },
43
- emits: ["selectDatapoint"],
44
- setup(Y, { expose: Ne, emit: Fe }) {
45
- el((l) => ({
46
- "5dabc842": l.tdo
47
- }));
48
- const Ve = D(() => import("./BaseIcon-CVvwtj-w.js")), Ie = D(() => import("./PackageVersion-DGlLBQOn.js")), Pe = D(() => import("./PenAndPaper-hAK7vneq.js")), Re = D(() => import("./vue-ui-skeleton-DIJ5u0HF.js")), Xe = D(() => import("./Tooltip-DD9Ly0Pw.js")), Be = D(() => import("./UserOptions-dJLhbxrH.js")), { vue_ui_heatmap: De } = il(), y = Y, Ee = Fe, Z = b(() => !!y.dataset && y.dataset.length);
49
- rl(y.dataset) && Oe({
50
- componentName: "VueUiHeatmap",
51
- type: "dataset"
52
- });
53
- const G = f(ye()), R = f(null), Ue = f(null), ae = f(!1), oe = f(""), ce = f(void 0), H = f(null), he = f(0), ge = f(null), Ye = f(null), pe = f(!1), fe = f(0), e = b({
54
- get: () => we(),
55
- set: (l) => l
56
- }), { userOptionsVisible: se, setUserOptionsVisibility: be, keepUserOptionState: me } = ml({ config: e.value }), { svgRef: xe } = xl({ config: e.value.style.title });
57
- function we() {
58
- const l = Se({
59
- userConfig: y.config,
60
- defaultConfig: De
61
- });
62
- let o = {};
63
- return l.theme ? o = {
64
- ...Se({
65
- userConfig: vl.vue_ui_heatmap[l.theme] || y.config,
66
- defaultConfig: l
67
- })
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
- }
70
- Me(() => y.config, (l) => {
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;
72
- }, { deep: !0 }), Me(() => y.dataset, () => {
73
- ue();
74
- }, { deep: !0 });
75
- const { isPrinting: ke, isImaging: _e, generatePdf: Ce, generateImage: $e } = bl({
76
- elementId: `heatmap__${G.value}`,
77
- fileName: e.value.style.title.text || "vue-ui-heatmap",
78
- options: e.value.userOptions.print
79
- }), Ge = b(() => e.value.userOptions.show && !e.value.style.title.text), C = f({
80
- showTable: e.value.table.show,
81
- showTooltip: e.value.style.tooltip.show
82
- }), He = b(() => e.value.table.responsiveBreakpoint), X = ll(null);
83
- function je() {
84
- X.value && X.value.disconnect(), X.value = new ResizeObserver((l) => {
85
- l.forEach((o) => {
86
- pe.value = o.contentRect.width < He.value;
87
- });
88
- }), X.value.observe(ge.value);
89
- }
90
- tl(ue), al(() => {
91
- X.value && X.value.disconnect();
92
- });
93
- function ue() {
94
- je();
95
- }
96
- const F = b(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length)));
97
- f(1e3), f(300);
98
- const $ = b(() => {
99
- 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 + (F.value < y.dataset.length ? y.dataset.length : F.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);
100
- return {
101
- height: l,
102
- heightWithLegend: n,
103
- width: o
104
- };
105
- }), ee = b(() => e.value.style.legend.position), t = b(() => ({
106
- top: e.value.style.layout.padding.top,
107
- left: e.value.style.layout.padding.left,
108
- right: $.value.width - e.value.style.layout.padding.right - (ee.value === "right" && e.value.style.legend.show ? 92 : 0),
109
- bottom: $.value.height - e.value.style.layout.padding.bottom,
110
- height: $.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
111
- 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)
112
- })), ne = b(() => a.value.height * y.dataset.length), L = b(() => Math.max(...y.dataset.flatMap((l) => l.values))), V = b(() => Math.min(...y.dataset.flatMap((l) => l.values))), I = b(() => {
113
- const l = y.dataset.flatMap((n) => n.values);
114
- return l.reduce((n, s) => n + s, 0) / l.length;
115
- }), a = b(() => ({
116
- width: t.value.width / F.value,
117
- height: t.value.width / (F.value < y.dataset.length ? y.dataset.length : F.value)
118
- })), p = b(() => {
119
- 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 = [];
120
- for (let g = 0; g < F.value; g += 1)
121
- h.push(y.dataset.map((w) => w.values[g] || 0).reduce((w, re) => w + re, 0));
122
- const k = Math.max(...h), P = Math.min(...h);
123
- return {
124
- yTotals: n.map((g) => {
125
- const w = isNaN(g / s) ? 0 : g / s;
126
- return {
127
- total: g,
128
- proportion: w,
129
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, c, s, g)
130
- };
131
- }),
132
- xTotals: h.map((g) => {
133
- const w = isNaN(g / k) ? 0 : g / k;
134
- return {
135
- total: g,
136
- proportion: w,
137
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, P, k, g)
138
- };
139
- }),
140
- yLabels: l,
141
- xLabels: o.slice(0, F.value)
142
- };
143
- }), j = b(() => (y.dataset.forEach((l, o) => {
144
- dl({
145
- datasetObject: l,
146
- requiredAttributes: ["values"]
147
- }).forEach((n) => {
148
- Oe({
149
- componentName: "VueUiHeatmap",
150
- type: "datasetSerieAttribute",
151
- property: "values",
152
- index: o
153
- });
154
- });
155
- }), y.dataset.map((l) => ({
156
- ...l,
157
- temperatures: (l.values || []).map((o, n) => o >= I.value ? {
158
- side: "up",
159
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, V.value, L.value, o),
160
- 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)),
161
- value: o,
162
- yAxisName: l.name,
163
- xAxisName: p.value.xLabels[n],
164
- id: `vue-data-ui-heatmap-cell-${ye()}`
165
- } : {
166
- side: "down",
167
- ratio: Math.abs(1 - Math.abs(o) / Math.abs(I.value)) > 1 ? 1 : Math.abs(1 - Math.abs(o) / Math.abs(I.value)),
168
- color: Q(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, V.value, L.value, o),
169
- value: o,
170
- yAxisName: l.name,
171
- xAxisName: p.value.xLabels[n],
172
- id: `vue-data-ui-heatmap-cell-${ye()}`
173
- })
174
- })))), O = f(null), W = f(null);
175
- function We(l, o, n, s) {
176
- H.value = { x: n, y: s };
177
- const { value: c, yAxisName: h, xAxisName: k, id: P } = l;
178
- ce.value = P, O.value = c, W.value = {
179
- datapoint: l,
180
- seriesIndex: o,
181
- series: j.value,
182
- config: e.value
183
- }, ae.value = !0;
184
- let g = "";
185
- const w = e.value.style.tooltip.customFormat;
186
- pl(w) && fl(() => w({
187
- datapoint: l,
188
- seriesIndex: o,
189
- series: j.value,
190
- config: e.value
191
- })) ? oe.value = w({
192
- datapoint: l,
193
- seriesIndex: o,
194
- series: j.value,
195
- config: e.value
196
- }) : (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, V.value, L.value, c)}">⬤</span><span>${isNaN(c) ? "-" : S(
197
- e.value.style.layout.cells.value.formatter,
198
- c,
199
- M({
200
- p: e.value.style.layout.dataLabels.prefix,
201
- v: c,
202
- s: e.value.style.layout.dataLabels.suffix,
203
- r: e.value.style.tooltip.roundingValue
204
- }),
205
- { datapoint: l, seriesIndex: o }
206
- )}</span></div>`, oe.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${g}</div>`);
207
- }
208
- const q = b(() => t.value.top + ne.value * (1 - O.value / L.value)), K = b(() => t.value.left + ($.value.width - t.value.left - e.value.style.layout.padding.right) * (O.value / L.value));
209
- function qe(l) {
210
- return S(
211
- e.value.style.layout.cells.value.formatter,
212
- p.value.yTotals[l].total,
213
- M({
214
- p: e.value.style.layout.dataLabels.prefix,
215
- v: p.value.yTotals[l].total,
216
- s: e.value.style.layout.dataLabels.suffix,
217
- r: e.value.style.layout.cells.value.roundingValue
218
- }),
219
- { datapoint: p.value.yTotals[l], rowIndex: l }
220
- );
221
- }
222
- function Ke(l) {
223
- return S(
224
- e.value.style.layout.cells.value.formatter,
225
- p.value.xTotals[l].total,
226
- M({
227
- p: e.value.style.layout.dataLabels.prefix,
228
- v: p.value.xTotals[l].total,
229
- s: e.value.style.layout.dataLabels.suffix,
230
- r: e.value.style.layout.cells.value.roundingValue
231
- }),
232
- { datapoint: p.value.xTotals[l], colIndex: l }
233
- );
234
- }
235
- b(() => {
236
- const l = y.dataset.map((n) => ({
237
- name: n.name
238
- })), o = y.dataset.map((n) => n.values);
239
- return { head: l, body: o };
240
- });
241
- function Le(l = null) {
242
- nl(() => {
243
- const o = ["", ...y.dataset.map((h, k) => h.name)], n = [];
244
- for (let h = 0; h < p.value.xLabels.length; h += 1) {
245
- const k = [p.value.xLabels[h]];
246
- for (let P = 0; P < y.dataset.length; P += 1)
247
- k.push([y.dataset[P].values[h]]);
248
- n.push(k);
249
- }
250
- const s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(n), c = hl(s);
251
- l ? l(c) : gl({ csvContent: c, title: e.value.style.title.text || "vue-ui-heatmap" });
252
- });
253
- }
254
- const B = f(!1);
255
- function Te(l) {
256
- B.value = l, he.value += 1;
257
- }
258
- function Ae() {
259
- C.value.showTable = !C.value.showTable;
260
- }
261
- function ze() {
262
- C.value.showTooltip = !C.value.showTooltip;
263
- }
264
- const le = f(!1);
265
- function ie() {
266
- le.value = !le.value;
267
- }
268
- function Je(l) {
269
- Ee("selectDatapoint", l);
270
- }
271
- function Qe() {
272
- return j.value;
273
- }
274
- async function Ze({ scale: l = 2 } = {}) {
275
- if (!R.value) return;
276
- 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 });
277
- return {
278
- imageUri: c,
279
- base64: h,
280
- title: e.value.style.title.text,
281
- width: o,
282
- height: n,
283
- aspectRatio: s
284
- };
285
- }
286
- return Ne({
287
- getData: Qe,
288
- getImage: Ze,
289
- generatePdf: Ce,
290
- generateCsv: Le,
291
- generateImage: $e,
292
- toggleTable: Ae,
293
- toggleTooltip: ze,
294
- toggleAnnotator: ie,
295
- toggleFullscreen: Te
296
- }), (l, o) => (u(), i("div", {
297
- ref_key: "heatmapChart",
298
- ref: R,
299
- class: te(`vue-ui-heatmap ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
300
- style: T(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
301
- id: `heatmap__${G.value}`,
302
- onMouseenter: o[3] || (o[3] = () => r(be)(!0)),
303
- onMouseleave: o[4] || (o[4] = () => r(be)(!1))
304
- }, [
305
- e.value.userOptions.buttons.annotator ? (u(), J(r(Pe), {
306
- key: 0,
307
- svgRef: r(xe),
308
- backgroundColor: e.value.style.backgroundColor,
309
- color: e.value.style.color,
310
- active: le.value,
311
- onClose: ie
312
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
313
- Ge.value ? (u(), i("div", {
314
- key: 1,
315
- ref_key: "noTitle",
316
- ref: Ye,
317
- class: "vue-data-ui-no-title-space",
318
- style: "height:36px; width: 100%;background:transparent"
319
- }, null, 512)) : d("", !0),
320
- e.value.style.title.text ? (u(), i("div", Ll, [
321
- (u(), J(kl, {
322
- key: `title_${fe.value}`,
323
- config: {
324
- title: {
325
- cy: "heatmap-div-title",
326
- ...e.value.style.title
327
- },
328
- subtitle: {
329
- cy: "heatmap-div-subtitle",
330
- ...e.value.style.title.subtitle
331
- }
332
- }
333
- }, null, 8, ["config"]))
334
- ])) : d("", !0),
335
- e.value.userOptions.show && Z.value && (r(me) || r(se)) ? (u(), J(r(Be), {
336
- ref_key: "details",
337
- ref: Ue,
338
- key: `user_options_${he.value}`,
339
- backgroundColor: e.value.style.backgroundColor,
340
- color: e.value.style.color,
341
- isImaging: r(_e),
342
- isPrinting: r(ke),
343
- uid: G.value,
344
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
345
- hasPdf: e.value.userOptions.buttons.pdf,
346
- hasImg: e.value.userOptions.buttons.img,
347
- hasXls: e.value.userOptions.buttons.csv,
348
- hasTable: e.value.userOptions.buttons.table,
349
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
350
- isFullscreen: B.value,
351
- isTooltip: C.value.showTooltip,
352
- titles: { ...e.value.userOptions.buttonTitles },
353
- chartElement: R.value,
354
- position: e.value.userOptions.position,
355
- hasAnnotator: e.value.userOptions.buttons.annotator,
356
- isAnnotation: le.value,
357
- callbacks: e.value.userOptions.callbacks,
358
- printScale: e.value.userOptions.print.scale,
359
- onToggleFullscreen: Te,
360
- onGeneratePdf: r(Ce),
361
- onGenerateCsv: Le,
362
- onGenerateImage: r($e),
363
- onToggleTable: Ae,
364
- onToggleTooltip: ze,
365
- onToggleAnnotator: ie,
366
- style: T({
367
- visibility: r(me) ? r(se) ? "visible" : "hidden" : "visible"
368
- })
369
- }, ol({ _: 2 }, [
370
- l.$slots.menuIcon ? {
371
- name: "menuIcon",
372
- fn: A(({ isOpen: n, color: s }) => [
373
- m(l.$slots, "menuIcon", E(U({ isOpen: n, color: s })), void 0, !0)
374
- ]),
375
- key: "0"
376
- } : void 0,
377
- l.$slots.optionTooltip ? {
378
- name: "optionTooltip",
379
- fn: A(() => [
380
- m(l.$slots, "optionTooltip", {}, void 0, !0)
381
- ]),
382
- key: "1"
383
- } : void 0,
384
- l.$slots.optionPdf ? {
385
- name: "optionPdf",
386
- fn: A(() => [
387
- m(l.$slots, "optionPdf", {}, void 0, !0)
388
- ]),
389
- key: "2"
390
- } : void 0,
391
- l.$slots.optionCsv ? {
392
- name: "optionCsv",
393
- fn: A(() => [
394
- m(l.$slots, "optionCsv", {}, void 0, !0)
395
- ]),
396
- key: "3"
397
- } : void 0,
398
- l.$slots.optionImg ? {
399
- name: "optionImg",
400
- fn: A(() => [
401
- m(l.$slots, "optionImg", {}, void 0, !0)
402
- ]),
403
- key: "4"
404
- } : void 0,
405
- l.$slots.optionTable ? {
406
- name: "optionTable",
407
- fn: A(() => [
408
- m(l.$slots, "optionTable", {}, void 0, !0)
409
- ]),
410
- key: "5"
411
- } : void 0,
412
- l.$slots.optionFullscreen ? {
413
- name: "optionFullscreen",
414
- fn: A(({ toggleFullscreen: n, isFullscreen: s }) => [
415
- m(l.$slots, "optionFullscreen", E(U({ toggleFullscreen: n, isFullscreen: s })), void 0, !0)
416
- ]),
417
- key: "6"
418
- } : void 0,
419
- l.$slots.optionAnnotator ? {
420
- name: "optionAnnotator",
421
- fn: A(({ toggleAnnotator: n, isAnnotator: s }) => [
422
- m(l.$slots, "optionAnnotator", E(U({ toggleAnnotator: n, isAnnotator: s })), void 0, !0)
423
- ]),
424
- key: "7"
425
- } : void 0
426
- ]), 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),
427
- Z.value ? (u(), i("svg", {
428
- key: 4,
429
- ref_key: "svgRef",
430
- ref: xe,
431
- xmlns: r(cl),
432
- class: te({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
433
- viewBox: `0 0 ${$.value.width} ${$.value.heightWithLegend}`,
434
- style: T(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
435
- }, [
436
- ve(r(Ie)),
437
- l.$slots["chart-background"] ? (u(), i("foreignObject", {
438
- key: 0,
439
- x: 0,
440
- y: 0,
441
- width: $.value.width,
442
- height: $.value.heightWithLegend,
443
- style: {
444
- pointerEvents: "none"
445
- }
446
- }, [
447
- m(l.$slots, "chart-background", {}, void 0, !0)
448
- ], 8, Al)) : d("", !0),
449
- e.value.style.layout.cells.columnTotal.color.show ? (u(), i(_, { key: 1 }, [
450
- (u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
451
- 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
- y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
453
- height: a.value.height / 3,
454
- width: a.value.width - e.value.style.layout.cells.spacing,
455
- fill: e.value.style.layout.cells.colors.underlayer,
456
- stroke: e.value.style.backgroundColor,
457
- "stroke-width": e.value.style.layout.cells.spacing
458
- }, null, 8, zl))), 256)),
459
- (u(!0), i(_, null, z(p.value.xTotals, (n, s) => (u(), i("rect", {
460
- 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),
461
- y: t.value.top - a.value.height / 3 - e.value.style.layout.cells.spacing,
462
- height: a.value.height / 3,
463
- width: a.value.width - e.value.style.layout.cells.spacing,
464
- fill: n.color,
465
- stroke: e.value.style.backgroundColor,
466
- "stroke-width": e.value.style.layout.cells.spacing
467
- }, null, 8, Ml))), 256))
468
- ], 64)) : d("", !0),
469
- (u(!0), i(_, null, z(j.value, (n, s) => (u(), i("g", null, [
470
- (u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
471
- v("rect", {
472
- 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 * s + e.value.style.layout.cells.spacing / 2,
474
- width: a.value.width - e.value.style.layout.cells.spacing,
475
- height: a.value.height - e.value.style.layout.cells.spacing,
476
- fill: e.value.style.layout.cells.colors.underlayer,
477
- stroke: e.value.style.backgroundColor,
478
- "stroke-width": e.value.style.layout.cells.spacing
479
- }, null, 8, Ol),
480
- v("rect", {
481
- 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),
482
- y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
483
- width: a.value.width - e.value.style.layout.cells.spacing,
484
- height: a.value.height - e.value.style.layout.cells.spacing,
485
- fill: c.color,
486
- stroke: e.value.style.backgroundColor,
487
- "stroke-width": e.value.style.layout.cells.spacing
488
- }, null, 8, Sl),
489
- e.value.style.layout.cells.value.show ? (u(), i("text", {
490
- key: 0,
491
- "text-anchor": "middle",
492
- "font-size": e.value.style.layout.cells.value.fontSize,
493
- "font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
494
- fill: r(de)(c.color),
495
- 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),
496
- y: t.value.top + a.value.height * s + a.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
497
- }, x(r(S)(
498
- e.value.style.layout.cells.value.formatter,
499
- c.value,
500
- r(M)({
501
- p: e.value.style.layout.dataLabels.prefix,
502
- v: c.value,
503
- s: e.value.style.layout.dataLabels.suffix,
504
- r: e.value.style.layout.cells.value.roundingValue
505
- }),
506
- { datapoint: c }
507
- )), 9, Nl)) : d("", !0)
508
- ]))), 256)),
509
- (u(!0), i(_, null, z(n.temperatures, (c, h) => (u(), i("g", null, [
510
- v("rect", {
511
- 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),
512
- y: t.value.top + a.value.height * s,
513
- width: a.value.width,
514
- height: a.value.height,
515
- fill: "transparent",
516
- stroke: "none",
517
- onMouseover: (k) => We(c, s, t.value.left + a.value.width * h, t.value.top + a.value.height * s),
518
- onMouseout: o[0] || (o[0] = (k) => {
519
- ae.value = !1, ce.value = void 0, O.value = null, H.value = null;
520
- }),
521
- onClick: () => Je(c)
522
- }, null, 40, Fl)
523
- ]))), 256)),
524
- e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", Vl, [
525
- v("text", {
526
- class: "vue-ui-heatmap-row-name",
527
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
528
- fill: e.value.style.layout.dataLabels.yAxis.color,
529
- x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
530
- 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),
531
- "text-anchor": "end",
532
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
533
- }, x(p.value.yLabels[s]), 9, Il),
534
- e.value.style.layout.cells.rowTotal.value.show ? (u(), i("text", {
535
- key: 0,
536
- class: "vue-ui-heatmap-row-total",
537
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
538
- fill: e.value.style.layout.dataLabels.yAxis.color,
539
- x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
540
- 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,
541
- "text-anchor": "end",
542
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
543
- }, x(qe(s)), 9, Pl)) : d("", !0)
544
- ])) : d("", !0),
545
- e.value.style.layout.cells.rowTotal.color.show ? (u(), i("g", Rl, [
546
- v("rect", {
547
- x: t.value.left,
548
- y: t.value.top + a.value.height * s,
549
- width: a.value.height / 3,
550
- height: a.value.height - e.value.style.layout.cells.spacing,
551
- fill: e.value.style.layout.cells.colors.underlayer,
552
- stroke: e.value.style.backgroundColor,
553
- "stroke-width": e.value.style.layout.cells.spacing
554
- }, null, 8, Xl),
555
- v("rect", {
556
- x: t.value.left,
557
- y: t.value.top + a.value.height * s + e.value.style.layout.cells.spacing / 2,
558
- width: a.value.height / 3,
559
- height: a.value.height - e.value.style.layout.cells.spacing,
560
- fill: p.value.yTotals[s].color,
561
- stroke: e.value.style.backgroundColor,
562
- "stroke-width": e.value.style.layout.cells.spacing
563
- }, null, 8, Bl)
564
- ])) : d("", !0)
565
- ]))), 256)),
566
- e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", Dl, [
567
- (u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i(_, null, [
568
- !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", {
569
- key: 0,
570
- class: "vue-ui-heatmap-col-name",
571
- "text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
572
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
573
- fill: e.value.style.layout.dataLabels.xAxis.color,
574
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
575
- 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})`
576
- }, x(n), 9, El)) : d("", !0)
577
- ], 64))), 256))
578
- ])) : d("", !0),
579
- e.value.style.layout.cells.columnTotal.value.show ? (u(!0), i(_, { key: 3 }, z(p.value.xLabels, (n, s) => (u(), i("text", {
580
- class: "vue-ui-heatmap-col-total",
581
- "text-anchor": e.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : e.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
582
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
583
- fill: e.value.style.layout.dataLabels.xAxis.color,
584
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
585
- 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})`
586
- }, x(Ke(s)), 9, Ul))), 256)) : d("", !0),
587
- H.value ? (u(), i("g", Yl, [
588
- v("rect", {
589
- style: { "pointer-events": "none" },
590
- 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),
591
- y: H.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
592
- width: a.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
593
- height: a.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
594
- fill: "transparent",
595
- stroke: e.value.style.layout.cells.selected.color,
596
- "stroke-width": e.value.style.layout.cells.selected.border,
597
- rx: 1
598
- }, null, 8, Gl)
599
- ])) : d("", !0),
600
- e.value.style.legend.show && ee.value === "right" ? (u(), i("g", Hl, [
601
- v("defs", null, [
602
- v("linearGradient", {
603
- id: `colorScaleVertical_${G.value}`,
604
- x2: "0%",
605
- y2: "100%"
606
- }, [
607
- v("stop", {
608
- offset: "0%",
609
- "stop-color": e.value.style.layout.cells.colors.hot
610
- }, null, 8, Wl),
611
- v("stop", {
612
- offset: "100%",
613
- "stop-color": e.value.style.layout.cells.colors.cold
614
- }, null, 8, ql)
615
- ], 8, jl)
616
- ]),
617
- v("text", {
618
- x: t.value.right + 36 + 18,
619
- y: t.value.top - e.value.style.legend.fontSize * 1.5,
620
- "text-anchor": "middle",
621
- "font-size": e.value.style.legend.fontSize * 2,
622
- fill: e.value.style.legend.color
623
- }, x(r(S)(
624
- e.value.style.layout.cells.value.formatter,
625
- r(N)(L.value),
626
- r(M)({
627
- p: e.value.style.layout.dataLabels.prefix,
628
- v: r(N)(L.value),
629
- s: e.value.style.layout.dataLabels.suffix,
630
- r: e.value.style.legend.roundingValue
631
- })
632
- )), 9, Kl),
633
- v("rect", {
634
- x: t.value.right + 36,
635
- y: t.value.top,
636
- width: 36,
637
- height: ne.value,
638
- rx: e.value.style.legend.scaleBorderRadius,
639
- fill: `url(#colorScaleVertical_${G.value})`
640
- }, null, 8, Jl),
641
- v("text", {
642
- x: t.value.right + 36 + 18,
643
- y: t.value.top + ne.value + e.value.style.legend.fontSize * 2.5,
644
- "text-anchor": "middle",
645
- "font-size": e.value.style.legend.fontSize * 2,
646
- fill: e.value.style.legend.color
647
- }, x(r(S)(
648
- e.value.style.layout.cells.value.formatter,
649
- r(N)(V.value),
650
- r(M)({
651
- p: e.value.style.layout.dataLabels.prefix,
652
- v: r(N)(V.value),
653
- s: e.value.style.layout.dataLabels.suffix,
654
- r: e.value.style.legend.roundingValue
655
- })
656
- )), 9, Ql),
657
- O.value !== null ? (u(), i("line", {
658
- key: 0,
659
- stroke: r(de)(W.value.datapoint.color),
660
- "stroke-width": "2",
661
- x1: t.value.right + 36,
662
- x2: t.value.right + 72,
663
- y1: q.value,
664
- y2: q.value
665
- }, null, 8, Zl)) : d("", !0),
666
- O.value !== null ? (u(), i("path", {
667
- key: 1,
668
- fill: e.value.style.color,
669
- stroke: "none",
670
- d: `M ${t.value.right + 36},${q.value} ${t.value.right + 26},${q.value - 8} ${t.value.right + 26},${q.value + 8}z`
671
- }, null, 8, et)) : d("", !0)
672
- ])) : d("", !0),
673
- e.value.style.legend.show && ee.value === "bottom" ? (u(), i("g", lt, [
674
- v("defs", null, [
675
- v("linearGradient", tt, [
676
- v("stop", {
677
- offset: "0%",
678
- "stop-color": e.value.style.layout.cells.colors.cold
679
- }, null, 8, at),
680
- v("stop", {
681
- offset: "100%",
682
- "stop-color": e.value.style.layout.cells.colors.hot
683
- }, null, 8, ot)
684
- ])
685
- ]),
686
- v("rect", {
687
- x: t.value.left,
688
- y: t.value.bottom + e.value.style.layout.cells.height,
689
- width: $.value.width - t.value.left - e.value.style.layout.padding.right,
690
- height: e.value.style.layout.cells.height,
691
- rx: e.value.style.legend.scaleBorderRadius > e.value.style.layout.cells.height / 2 ? e.value.style.layout.cells.height / 2 : e.value.style.legend.scaleBorderRadius,
692
- fill: "url(#colorScaleHorizontal)"
693
- }, null, 8, st),
694
- v("text", {
695
- x: t.value.left,
696
- y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
697
- "text-anchor": "start",
698
- "font-size": e.value.style.legend.fontSize * 2,
699
- fill: e.value.style.legend.color
700
- }, x(r(S)(
701
- e.value.style.layout.cells.value.formatter,
702
- r(N)(V.value),
703
- r(M)({
704
- p: e.value.style.layout.dataLabels.prefix,
705
- v: r(N)(V.value),
706
- s: e.value.style.layout.dataLabels.suffix,
707
- r: e.value.style.legend.roundingValue
708
- })
709
- )), 9, ut),
710
- v("text", {
711
- x: t.value.right,
712
- y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
713
- "text-anchor": "end",
714
- "font-size": e.value.style.legend.fontSize * 2,
715
- fill: e.value.style.legend.color
716
- }, x(r(S)(
717
- e.value.style.layout.cells.value.formatter,
718
- r(N)(L.value),
719
- r(M)({
720
- p: e.value.style.layout.dataLabels.prefix,
721
- v: r(N)(L.value),
722
- s: e.value.style.layout.dataLabels.suffix,
723
- r: e.value.style.legend.roundingValue
724
- })
725
- )), 9, nt),
726
- O.value !== null ? (u(), i("line", {
727
- key: 0,
728
- stroke: r(de)(W.value.datapoint.color),
729
- "stroke-width": "2",
730
- x1: K.value,
731
- x2: K.value,
732
- y1: t.value.bottom + e.value.style.layout.cells.height,
733
- y2: t.value.bottom + e.value.style.layout.cells.height * 2
734
- }, null, 8, it)) : d("", !0),
735
- O.value !== null ? (u(), i("path", {
736
- key: 1,
737
- fill: e.value.style.color,
738
- stroke: "none",
739
- d: `M ${K.value},${t.value.bottom + e.value.style.layout.cells.height} ${K.value - 12},${t.value.bottom + e.value.style.layout.cells.height - 20} ${K.value + 12},${t.value.bottom + e.value.style.layout.cells.height - 20}z`
740
- }, null, 8, rt)) : d("", !0)
741
- ])) : d("", !0),
742
- m(l.$slots, "svg", { svg: $.value }, void 0, !0)
743
- ], 14, Tl)) : d("", !0),
744
- l.$slots.watermark ? (u(), i("div", vt, [
745
- m(l.$slots, "watermark", E(U({ isPrinting: r(ke) || r(_e) })), void 0, !0)
746
- ])) : d("", !0),
747
- l.$slots.source ? (u(), i("div", yt, [
748
- m(l.$slots, "source", {}, void 0, !0)
749
- ], 512)) : d("", !0),
750
- Z.value ? d("", !0) : (u(), J(r(Re), {
751
- key: 7,
752
- config: {
753
- type: "heatmap",
754
- style: {
755
- backgroundColor: e.value.style.backgroundColor,
756
- heatmap: {
757
- color: "#CCCCCC"
758
- }
759
- }
760
- }
761
- }, null, 8, ["config"])),
762
- ve(r(Xe), {
763
- show: C.value.showTooltip && ae.value,
764
- backgroundColor: e.value.style.tooltip.backgroundColor,
765
- color: e.value.style.tooltip.color,
766
- borderRadius: e.value.style.tooltip.borderRadius,
767
- borderColor: e.value.style.tooltip.borderColor,
768
- borderWidth: e.value.style.tooltip.borderWidth,
769
- fontSize: e.value.style.tooltip.fontSize,
770
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
771
- position: e.value.style.tooltip.position,
772
- offsetY: e.value.style.tooltip.offsetY,
773
- parent: R.value,
774
- content: oe.value,
775
- isFullscreen: B.value,
776
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
777
- smooth: e.value.style.tooltip.smooth,
778
- backdropFilter: e.value.style.tooltip.backdropFilter
779
- }, {
780
- "tooltip-before": A(() => [
781
- m(l.$slots, "tooltip-before", E(U({ ...W.value })), void 0, !0)
782
- ]),
783
- "tooltip-after": A(() => [
784
- m(l.$slots, "tooltip-after", E(U({ ...W.value })), void 0, !0)
785
- ]),
786
- _: 3
787
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
788
- Z.value ? (u(), J(wl, {
789
- key: 8,
790
- hideDetails: "",
791
- config: {
792
- open: C.value.showTable,
793
- maxHeight: 1e4,
794
- body: {
795
- backgroundColor: e.value.style.backgroundColor,
796
- color: e.value.style.color
797
- },
798
- head: {
799
- backgroundColor: e.value.style.backgroundColor,
800
- color: e.value.style.color
801
- }
802
- }
803
- }, {
804
- content: A(() => [
805
- v("div", {
806
- ref_key: "tableContainer",
807
- ref: ge,
808
- class: "vue-ui-heatmap-table atom-data-table"
809
- }, [
810
- v("div", {
811
- style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
812
- class: te({ "vue-ui-responsive": pe.value })
813
- }, [
814
- v("div", {
815
- role: "button",
816
- tabindex: "0",
817
- 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};`),
818
- onClick: o[1] || (o[1] = (n) => C.value.showTable = !1),
819
- onKeypress: o[2] || (o[2] = sl((n) => C.value.showTable = !1, ["enter"]))
820
- }, [
821
- ve(r(Ve), {
822
- name: "close",
823
- stroke: e.value.table.th.color,
824
- "stroke-width": 2
825
- }, null, 8, ["stroke"])
826
- ], 36),
827
- v("table", dt, [
828
- v("caption", {
829
- style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
830
- }, [
831
- ul(x(e.value.style.title.text) + " ", 1),
832
- e.value.style.title.subtitle.text ? (u(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
833
- ], 4),
834
- v("thead", null, [
835
- v("tr", {
836
- role: "row",
837
- style: T(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
838
- }, [
839
- v("th", {
840
- style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
841
- }, null, 4),
842
- (u(!0), i(_, null, z(Y.dataset, (n, s) => (u(), i("th", {
843
- align: "right",
844
- style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
845
- }, x(n.name), 5))), 256))
846
- ], 4)
847
- ]),
848
- v("tbody", null, [
849
- (u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i("tr", {
850
- role: "row",
851
- 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 }),
852
- style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
853
- }, [
854
- v("td", {
855
- "data-cell": e.value.table.colNames.xAxis,
856
- class: "vue-ui-data-table__tbody__td",
857
- style: T(`outline:${e.value.table.td.outline}`)
858
- }, [
859
- v("div", gt, x(n), 1)
860
- ], 12, ht),
861
- (u(!0), i(_, null, z(Y.dataset, (c, h) => (u(), i("td", {
862
- class: "vue-ui-data-table__tbody__td",
863
- "data-cell": Y.dataset[h].name,
864
- style: T(`outline:${e.value.table.td.outline}`)
865
- }, [
866
- 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)
867
- ], 12, pt))), 256))
868
- ], 6))), 256))
869
- ])
870
- ])
871
- ], 2)
872
- ], 512)
873
- ]),
874
- _: 1
875
- }, 8, ["config"])) : d("", !0)
876
- ], 46, $l));
877
- }
878
- }, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-06f6f722"]]);
879
- export {
880
- zt as default
881
- };