vue-data-ui 3.0.0-next.8 → 3.0.0

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  35. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-O07lQwRC.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-Hh7nGEjp.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
  107. package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
  108. package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
  109. package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
  110. package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
  111. package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
  112. package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
  113. package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
  114. package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
  115. package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
  116. package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
  117. package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
  118. package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
  119. package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
  120. package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
  121. package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
  122. package/dist/vue-ui-onion-B9thdF_c.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
  124. package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
  125. package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
  126. package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
  127. package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
  128. package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
  129. package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
  130. package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
  131. package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
  132. package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
  134. package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
  136. package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
  137. package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
  138. package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
  139. package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
  140. package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
  141. package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
  142. package/dist/vue-ui-wheel-C6uAotal.js +0 -352
  143. package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
  144. package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
@@ -1,877 +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-Cfm5-hMQ.js";
3
- import { u as Se } from "./useNestedProp-Hh7nGEjp.js";
4
- import { u as bl } from "./usePrinter-B1Hgs47c.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-CEDGlyKI.js";
8
- import kl from "./Title-BSlAPr_H.js";
9
- import _l from "./img-CgMUOQnb.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"], Vl = ["x", "y", "width", "height", "onMouseover", "onClick"], Fl = { 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: Ve }) {
45
- el((l) => ({
46
- e16f0f96: l.tdo
47
- }));
48
- const Fe = D(() => import("./BaseIcon-BuOIF6t5.js")), Ie = D(() => import("./PackageVersion-CGQlqnmq.js")), Pe = D(() => import("./PenAndPaper-B5slIHlh.js")), Re = D(() => import("./vue-ui-skeleton-P-1SRvsT.js")), Xe = D(() => import("./Tooltip-lPcsweXz.js")), Be = D(() => import("./UserOptions-Dn5TCQxg.js")), { vue_ui_heatmap: De } = il(), y = Y, Ee = Ve, 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 V = f(() => Math.max(...y.dataset.flatMap((l) => (l.values || []).length))), $ = f(() => {
97
- const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + y.dataset.length * e.value.style.layout.cells.height, o = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (V.value < y.dataset.length ? y.dataset.length : V.value) * e.value.style.layout.cells.height, n = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
98
- 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))), F = 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 / V.value,
115
- height: t.value.width / (V.value < y.dataset.length ? y.dataset.length : V.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 < V.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, V.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, F.value, L.value, o),
158
- ratio: Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)) > 1 ? 1 : Math.abs(Math.abs(o - I.value) / Math.abs(L.value - I.value)),
159
- value: o,
160
- 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, F.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, F.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, Vl)
521
- ]))), 256)),
522
- e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", Fl, [
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)(F.value),
648
- r(M)({
649
- p: e.value.style.layout.dataLabels.prefix,
650
- v: r(N)(F.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)(F.value),
701
- r(M)({
702
- p: e.value.style.layout.dataLabels.prefix,
703
- v: r(N)(F.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
- }, {
776
- "tooltip-before": A(() => [
777
- m(l.$slots, "tooltip-before", E(U({ ...W.value })), void 0, !0)
778
- ]),
779
- "tooltip-after": A(() => [
780
- m(l.$slots, "tooltip-after", E(U({ ...W.value })), void 0, !0)
781
- ]),
782
- _: 3
783
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
784
- Z.value ? (u(), J(wl, {
785
- key: 8,
786
- hideDetails: "",
787
- config: {
788
- open: C.value.showTable,
789
- maxHeight: 1e4,
790
- body: {
791
- backgroundColor: e.value.style.backgroundColor,
792
- color: e.value.style.color
793
- },
794
- head: {
795
- backgroundColor: e.value.style.backgroundColor,
796
- color: e.value.style.color
797
- }
798
- }
799
- }, {
800
- content: A(() => [
801
- v("div", {
802
- ref_key: "tableContainer",
803
- ref: ge,
804
- class: "vue-ui-heatmap-table atom-data-table"
805
- }, [
806
- v("div", {
807
- style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
808
- class: te({ "vue-ui-responsive": pe.value })
809
- }, [
810
- v("div", {
811
- role: "button",
812
- tabindex: "0",
813
- style: T(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
814
- onClick: o[1] || (o[1] = (n) => C.value.showTable = !1),
815
- onKeypress: o[2] || (o[2] = sl((n) => C.value.showTable = !1, ["enter"]))
816
- }, [
817
- ve(r(Fe), {
818
- name: "close",
819
- stroke: e.value.table.th.color,
820
- "stroke-width": 2
821
- }, null, 8, ["stroke"])
822
- ], 36),
823
- v("table", dt, [
824
- v("caption", {
825
- style: T(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
826
- }, [
827
- ul(x(e.value.style.title.text) + " ", 1),
828
- e.value.style.title.subtitle.text ? (u(), i("span", ct, x(e.value.style.title.subtitle.text), 1)) : d("", !0)
829
- ], 4),
830
- v("thead", null, [
831
- v("tr", {
832
- role: "row",
833
- style: T(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
834
- }, [
835
- v("th", {
836
- style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
837
- }, null, 4),
838
- (u(!0), i(_, null, z(Y.dataset, (n, s) => (u(), i("th", {
839
- align: "right",
840
- style: T(`outline:${e.value.table.th.outline};padding-right:6px`)
841
- }, x(n.name), 5))), 256))
842
- ], 4)
843
- ]),
844
- v("tbody", null, [
845
- (u(!0), i(_, null, z(p.value.xLabels, (n, s) => (u(), i("tr", {
846
- role: "row",
847
- class: te({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
848
- style: T(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
849
- }, [
850
- v("td", {
851
- "data-cell": e.value.table.colNames.xAxis,
852
- class: "vue-ui-data-table__tbody__td",
853
- style: T(`outline:${e.value.table.td.outline}`)
854
- }, [
855
- v("div", gt, x(n), 1)
856
- ], 12, ht),
857
- (u(!0), i(_, null, z(Y.dataset, (c, h) => (u(), i("td", {
858
- class: "vue-ui-data-table__tbody__td",
859
- "data-cell": Y.dataset[h].name,
860
- style: T(`outline:${e.value.table.td.outline}`)
861
- }, [
862
- v("div", ft, x(isNaN(c.values[s]) ? "-" : r(M)({ p: e.value.style.layout.dataLabels.prefix, v: c.values[s], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
863
- ], 12, pt))), 256))
864
- ], 6))), 256))
865
- ])
866
- ])
867
- ], 2)
868
- ], 512)
869
- ]),
870
- _: 1
871
- }, 8, ["config"])) : d("", !0)
872
- ], 46, $l));
873
- }
874
- }, zt = /* @__PURE__ */ Cl(bt, [["__scopeId", "data-v-a3e4a488"]]);
875
- export {
876
- zt as default
877
- };