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