vue-data-ui 2.3.3 → 2.3.5

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 (154) hide show
  1. package/README.md +19 -15
  2. package/dist/Arrow-BSOdhAJO.cjs +1 -0
  3. package/dist/Arrow-BjDVSrfA.js +101 -0
  4. package/dist/BaseIcon-BoKtpbrI.cjs +1 -0
  5. package/dist/BaseIcon-vmmfWlyR.js +174 -0
  6. package/dist/DataTable-CaB7GIwQ.js +127 -0
  7. package/dist/DataTable-ssrNbONo.cjs +1 -0
  8. package/dist/Legend-DHpoRTAE.js +62 -0
  9. package/dist/Legend-Dl5IYoxK.cjs +1 -0
  10. package/dist/Shape-CQT4S7N-.js +107 -0
  11. package/dist/Shape-CaF4pvOn.cjs +1 -0
  12. package/dist/Slicer-Bdb1BlrC.js +156 -0
  13. package/dist/Slicer-QC8nTm24.cjs +1 -0
  14. package/dist/Title-BNPZwnkp.js +46 -0
  15. package/dist/Title-Cj_xubjI.cjs +1 -0
  16. package/dist/Tooltip-CdJ5hegk.cjs +1 -0
  17. package/dist/Tooltip-ZnJAz6dl.js +94 -0
  18. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  19. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  20. package/dist/documentation/installation.md +14 -13
  21. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  22. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  23. package/dist/index-BMCvLyab.js +10369 -0
  24. package/dist/index-BkomIE9L.cjs +4 -0
  25. package/dist/{index.es-ypwniJN8.js → index.es-YufTdp0y.js} +1 -1
  26. package/dist/{index.es-Dnua3tHc.cjs → index.es-uyeSCnWE.cjs} +1 -1
  27. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  28. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  29. package/dist/pdf-97UbtKC2.js +44 -0
  30. package/dist/pdf-Cz3729tZ.cjs +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +105 -5
  33. package/dist/types/vue-data-ui.d.ts +105 -5
  34. package/dist/useNestedProp-BMxXyPbW.cjs +1 -0
  35. package/dist/useNestedProp-CkP8xhG_.js +13 -0
  36. package/dist/usePrinter-BuuBz5JR.js +513 -0
  37. package/dist/usePrinter-r6uHYEcR.cjs +1 -0
  38. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  39. package/dist/useResponsive-NZB-WLRF.js +187 -0
  40. package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
  41. package/dist/vue-data-ui-DxeO0iaC.js +254 -0
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +61 -59
  44. package/dist/vue-ui-3d-bar-32wM0tiX.js +1085 -0
  45. package/dist/vue-ui-3d-bar-CgB0fLQT.cjs +19 -0
  46. package/dist/vue-ui-accordion-CLlVxx3Q.js +77 -0
  47. package/dist/vue-ui-accordion-SXsobrUt.cjs +1 -0
  48. package/dist/vue-ui-age-pyramid-D_CY99xF.js +596 -0
  49. package/dist/vue-ui-age-pyramid-DqiwcOIr.cjs +1 -0
  50. package/dist/vue-ui-annotator-DvP-IxDm.js +2177 -0
  51. package/dist/vue-ui-annotator-mntqd3q_.cjs +371 -0
  52. package/dist/vue-ui-candlestick-C-5u3i-1.js +657 -0
  53. package/dist/vue-ui-candlestick-C_TvUQvH.cjs +2 -0
  54. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
  55. package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
  56. package/dist/vue-ui-chestnut-DhWlw2MD.cjs +6 -0
  57. package/dist/vue-ui-chestnut-DylSfYMB.js +1051 -0
  58. package/dist/vue-ui-cursor-B04HJQVl.cjs +1 -0
  59. package/dist/vue-ui-cursor-DTYEMgbU.js +229 -0
  60. package/dist/vue-ui-dashboard-Bd0-cmSZ.js +232 -0
  61. package/dist/vue-ui-dashboard-DFIYwP1s.cjs +1 -0
  62. package/dist/vue-ui-digits-CW5qNMIk.js +153 -0
  63. package/dist/vue-ui-digits-Ced5mBJZ.cjs +1 -0
  64. package/dist/vue-ui-donut-DIhhgvWp.cjs +1 -0
  65. package/dist/vue-ui-donut-EeVmrVJs.js +743 -0
  66. package/dist/vue-ui-donut-evolution-BN08Y2hy.js +799 -0
  67. package/dist/vue-ui-donut-evolution-Ct6KAzs-.cjs +1 -0
  68. package/dist/vue-ui-dumbbell-BMlxS1Nq.js +624 -0
  69. package/dist/vue-ui-dumbbell-pextarqH.cjs +9 -0
  70. package/dist/vue-ui-flow-BXVsbmyb.cjs +1 -0
  71. package/dist/vue-ui-flow-CHmkgfyb.js +454 -0
  72. package/dist/vue-ui-galaxy-D4xyd-J1.cjs +1 -0
  73. package/dist/vue-ui-galaxy-kiVOZOBz.js +485 -0
  74. package/dist/vue-ui-gauge-BcO-z97J.js +466 -0
  75. package/dist/vue-ui-gauge-DPFBsbFj.cjs +1 -0
  76. package/dist/vue-ui-heatmap-DBOKYaJz.cjs +1 -0
  77. package/dist/vue-ui-heatmap-DD-Bzddj.js +598 -0
  78. package/dist/vue-ui-kpi-BEgf5yDv.cjs +1 -0
  79. package/dist/vue-ui-kpi-BS0o7zb9.js +54 -0
  80. package/dist/vue-ui-mini-loader-Bm5EJxtG.cjs +1 -0
  81. package/dist/vue-ui-mini-loader-DJEvG6ju.js +131 -0
  82. package/dist/vue-ui-molecule-DdwnFEBJ.js +750 -0
  83. package/dist/vue-ui-molecule-DzUqcaxd.cjs +1 -0
  84. package/dist/vue-ui-mood-radar-B9Gczs_Z.js +548 -0
  85. package/dist/vue-ui-mood-radar-DbB7m4Ku.cjs +1 -0
  86. package/dist/vue-ui-nested-donuts-BSINf8hd.cjs +16 -0
  87. package/dist/vue-ui-nested-donuts-CVQ1CaXo.js +771 -0
  88. package/dist/vue-ui-onion-D3-6Tv4u.cjs +1 -0
  89. package/dist/vue-ui-onion-Ut75t7hB.js +554 -0
  90. package/dist/vue-ui-parallel-coordinate-plot-Bjo09ZTX.js +651 -0
  91. package/dist/vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs +8 -0
  92. package/dist/vue-ui-quadrant-CzCvejGn.cjs +1 -0
  93. package/dist/vue-ui-quadrant-Du9PKvlO.js +1178 -0
  94. package/dist/vue-ui-quick-chart-BsxsPbjz.cjs +13 -0
  95. package/dist/vue-ui-quick-chart-u0cPmD3q.js +1310 -0
  96. package/dist/vue-ui-radar-CBrpuE5r.js +614 -0
  97. package/dist/vue-ui-radar-DIpCrj1h.cjs +1 -0
  98. package/dist/vue-ui-rating-CaeGGlCw.js +271 -0
  99. package/dist/vue-ui-rating-D8fJC8Yt.cjs +1 -0
  100. package/dist/vue-ui-relation-circle-5DNf880s.js +304 -0
  101. package/dist/vue-ui-relation-circle-Ky3nPk6S.cjs +1 -0
  102. package/dist/vue-ui-rings-CffZ4T2S.cjs +1 -0
  103. package/dist/vue-ui-rings-IE3IdNRF.js +510 -0
  104. package/dist/vue-ui-scatter-C4GCZm0V.js +874 -0
  105. package/dist/vue-ui-scatter-TsX5dW9l.cjs +1 -0
  106. package/dist/vue-ui-screenshot-Bl3oooKI.js +160 -0
  107. package/dist/vue-ui-screenshot-Bzpg6yof.cjs +3 -0
  108. package/dist/vue-ui-skeleton-BisWX1sO.js +2064 -0
  109. package/dist/vue-ui-skeleton-JmGp11-u.cjs +41 -0
  110. package/dist/vue-ui-smiley-BhSrt9f-.cjs +2 -0
  111. package/dist/vue-ui-smiley-Sth2pqG1.js +763 -0
  112. package/dist/vue-ui-spark-trend-C8NSz4l8.cjs +1 -0
  113. package/dist/vue-ui-spark-trend-DAqO0TW2.js +246 -0
  114. package/dist/vue-ui-sparkbar-B0zX7NU7.js +242 -0
  115. package/dist/vue-ui-sparkbar-hL1Q6ObK.cjs +1 -0
  116. package/dist/vue-ui-sparkgauge-CWR8zJnU.js +157 -0
  117. package/dist/vue-ui-sparkgauge-tbVqaLCK.cjs +1 -0
  118. package/dist/vue-ui-sparkhistogram-Dv-lml4g.cjs +1 -0
  119. package/dist/vue-ui-sparkhistogram-DxqCtDpw.js +244 -0
  120. package/dist/vue-ui-sparkline-B6pvaBY_.cjs +1 -0
  121. package/dist/vue-ui-sparkline-BpL1jn7F.js +333 -0
  122. package/dist/vue-ui-sparkstackbar-BzbuBNIV.js +244 -0
  123. package/dist/vue-ui-sparkstackbar-CQ2TEi4p.cjs +1 -0
  124. package/dist/vue-ui-strip-plot-DCC6F4VM.cjs +1 -0
  125. package/dist/vue-ui-strip-plot-DCcbD6UE.js +618 -0
  126. package/dist/vue-ui-table-CFqIWfxl.js +1430 -0
  127. package/dist/vue-ui-table-CseaFWgX.cjs +14 -0
  128. package/dist/vue-ui-table-heatmap-Bwut-V1D.cjs +1 -0
  129. package/dist/vue-ui-table-heatmap-Bz8KYDxr.js +237 -0
  130. package/dist/vue-ui-table-sparkline-CJBU3y8-.cjs +1 -0
  131. package/dist/vue-ui-table-sparkline-z29ND2lq.js +420 -0
  132. package/dist/vue-ui-thermometer-BNAITzJa.js +385 -0
  133. package/dist/vue-ui-thermometer-DM2IKhqN.cjs +1 -0
  134. package/dist/vue-ui-timer-DLfXuW8T.cjs +64 -0
  135. package/dist/vue-ui-timer-DV6lQVHU.js +453 -0
  136. package/dist/vue-ui-tiremarks-B1bd1jPf.cjs +1 -0
  137. package/dist/vue-ui-tiremarks-WyQPg7yo.js +249 -0
  138. package/dist/vue-ui-treemap-BZGmoDHb.cjs +1 -0
  139. package/dist/vue-ui-treemap-DKmBhzV-.js +722 -0
  140. package/dist/vue-ui-vertical-bar-Bi-0rRN3.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-C-ySfrhJ.js +737 -0
  142. package/dist/vue-ui-waffle-CGRWu-da.js +638 -0
  143. package/dist/vue-ui-waffle-VLYkR-YZ.cjs +1 -0
  144. package/dist/vue-ui-wheel-D2q5vy5V.cjs +1 -0
  145. package/dist/vue-ui-wheel-Pj9OPk9f.js +227 -0
  146. package/dist/vue-ui-word-cloud-8Vr-jo1p.js +346 -0
  147. package/dist/vue-ui-word-cloud-Ba4BjatU.cjs +1 -0
  148. package/dist/vue-ui-xy-C4QW5Lfl.cjs +3 -0
  149. package/dist/vue-ui-xy-canvas-Be-Da_0x.cjs +9 -0
  150. package/dist/vue-ui-xy-canvas-DnLWrf0e.js +1006 -0
  151. package/dist/vue-ui-xy-qToggEfh.js +2064 -0
  152. package/package.json +1 -1
  153. package/dist/index-BcMihqI4.cjs +0 -843
  154. package/dist/index-C7FeCQ7K.js +0 -57303
@@ -0,0 +1,1310 @@
1
+ import { ref as P, computed as G, onMounted as Qe, onBeforeUnmount as et, openBlock as a, createElementBlock as l, normalizeClass as le, normalizeStyle as I, createBlock as Be, unref as _, createSlots as tt, withCtx as J, renderSlot as q, normalizeProps as K, guardReactiveProps as ye, createCommentVNode as x, toDisplayString as T, createElementVNode as S, Fragment as g, renderList as A, mergeProps as Le, createVNode as ve, pushScopeId as at, popScopeId as lt } from "vue";
2
+ import { u as ot, c as ut, t as it, a as nt, p as M, b as rt, d as ze, m as st, z as Ue, X as vt, i as dt, j as de, k as $e, f as B, L as De, v as pe, w as Ce } from "./index-BMCvLyab.js";
3
+ import { t as ct, u as ht } from "./useResponsive-NZB-WLRF.js";
4
+ import me from "./BaseIcon-vmmfWlyR.js";
5
+ import { _ as ft } from "./Tooltip-ZnJAz6dl.js";
6
+ import { u as gt, U as xt } from "./usePrinter-BuuBz5JR.js";
7
+ import { S as yt } from "./Slicer-Bdb1BlrC.js";
8
+ import { u as Ve } from "./useNestedProp-CkP8xhG_.js";
9
+ import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const L = {
11
+ LINE: "LINE",
12
+ BAR: "BAR",
13
+ DONUT: "DONUT"
14
+ }, mt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
15
+ function kt({ dataset: n, barLineSwitch: z = 6 }) {
16
+ let f = null, F = null, D = 0;
17
+ if ((typeof n == "number" || typeof n == "string") && console.warn(`The provided dataset (${n}) is not sufficient to build a chart`), ce(n) && (oe(n) && (n.length < z ? f = L.BAR : f = L.LINE, F = n, D = n.length), Pe(n))) {
18
+ if (!St(n))
19
+ return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
20
+ const ee = Object.keys(n[0]), ue = Object.values(n[0]);
21
+ if (!ee.some((C) => wt(C)))
22
+ return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
23
+ qe(ue, (C) => typeof C == "number") && (f = L.DONUT, F = n), qe(ue, (C) => Array.isArray(C) && oe(C)) && (We(n) > z ? f = L.LINE : f = L.BAR, D = We(n), F = n.map((C) => ({
24
+ ...C,
25
+ data: _t(C, (j) => oe(j))
26
+ }))), n = n.map((C) => je(C)), F = F.map((C) => je(C));
27
+ }
28
+ return ce(n) && [...new Set(n.flatMap((ee) => Array.isArray(ee)))][0], {
29
+ dataset: n,
30
+ type: f,
31
+ usableDataset: F,
32
+ maxSeriesLength: D
33
+ };
34
+ }
35
+ function Ge(n) {
36
+ return !n || ce(n) && !n.length;
37
+ }
38
+ function ce(n) {
39
+ return Array.isArray(n);
40
+ }
41
+ function oe(n) {
42
+ if (!ce(n) || Ge(n)) return !1;
43
+ const z = n.map((f) => Number(f));
44
+ return ![...new Set(z.flatMap((f) => typeof f == "number" && !isNaN(f)))].includes(!1);
45
+ }
46
+ function Pe(n) {
47
+ return !ce(n) || Ge(n) || !![...new Set(n.flatMap((f) => typeof f == "object" && !Array.isArray(f)))].includes(!1) ? !1 : !n.map((f) => Object.keys(f).length > 0).includes(!1);
48
+ }
49
+ function bt(n, z) {
50
+ const f = Object.keys(n).sort(), F = Object.keys(z).sort();
51
+ if (f.length !== F.length)
52
+ return !1;
53
+ for (let D = 0; D < f.length; D += 1) {
54
+ const W = f[D], Q = F[D];
55
+ if (W !== Q || typeof n[W] != typeof z[Q])
56
+ return !1;
57
+ }
58
+ return !0;
59
+ }
60
+ function St(n) {
61
+ if (n.length <= 1) return !0;
62
+ for (let z = 0; z < n.length; z += 1)
63
+ for (let f = z + 1; f < n.length; f += 1)
64
+ if (!bt(n[z], n[f]))
65
+ return !1;
66
+ return !0;
67
+ }
68
+ function wt(n) {
69
+ return mt.includes(n.toUpperCase());
70
+ }
71
+ function qe(n, z) {
72
+ let f = [];
73
+ for (let F = 0; F < n.length; F += 1)
74
+ f.push(z(n[F]));
75
+ return f.includes(!0);
76
+ }
77
+ function We(n) {
78
+ return Math.max(...[...n].flatMap((z) => Object.values(z).filter((f) => oe(f)).map((f) => f.length)));
79
+ }
80
+ function _t(n, z) {
81
+ return Object.values(n).filter((f) => z(f))[0];
82
+ }
83
+ function je(n) {
84
+ const z = {};
85
+ for (let f in n)
86
+ n.hasOwnProperty(f) && (z[f.toUpperCase()] = n[f]);
87
+ return z;
88
+ }
89
+ const He = (n) => (at("data-v-2223f1be"), n = n(), lt(), n), At = ["id"], Lt = ["xmlns", "viewBox"], zt = ["id"], $t = ["id"], Ct = /* @__PURE__ */ He(() => /* @__PURE__ */ S("feColorMatrix", {
90
+ type: "saturate",
91
+ values: "0"
92
+ }, null, -1)), Pt = ["id"], Tt = ["flood-color"], Et = {
93
+ key: 0,
94
+ class: "donut-label-connectors"
95
+ }, Rt = ["d", "stroke", "stroke-width", "filter"], Ft = ["cx", "cy", "r", "fill"], It = ["cx", "cy", "r", "fill", "filter"], Ot = { class: "donut" }, Nt = ["d", "fill", "stroke", "stroke-width", "filter"], Mt = ["d", "onMouseenter", "onClick"], Bt = {
96
+ key: 1,
97
+ class: "donut-labels quick-animation"
98
+ }, Ut = ["cx", "cy", "fill", "filter"], Dt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Vt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], qt = {
99
+ key: 2,
100
+ class: "donut-hollow quick-animation"
101
+ }, Wt = ["x", "y", "font-size", "fill"], jt = ["x", "y", "font-size", "fill"], Gt = {
102
+ key: 0,
103
+ class: "line-grid"
104
+ }, Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = {
105
+ key: 1,
106
+ class: "line-axis"
107
+ }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = {
108
+ key: 2,
109
+ class: "yLabels"
110
+ }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill"], ta = {
111
+ key: 3,
112
+ class: "periodLabels"
113
+ }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["font-size", "text-anchor", "fill", "transform"], oa = { class: "plots" }, ua = { class: "line-plot-series" }, ia = ["d", "stroke", "stroke-width"], na = ["d", "stroke", "stroke-width"], ra = ["d", "stroke", "stroke-width"], sa = ["d", "stroke", "stroke-width"], va = ["cx", "cy", "fill", "stroke"], da = {
114
+ key: 4,
115
+ class: "dataLabels"
116
+ }, ca = ["font-size", "fill", "x", "y"], ha = { class: "tooltip-traps" }, fa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], ga = {
117
+ key: 0,
118
+ class: "line-grid"
119
+ }, xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = {
120
+ key: 1,
121
+ class: "line-axis"
122
+ }, ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ba = {
123
+ key: 2,
124
+ class: "yLabels"
125
+ }, Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["x", "y", "font-size", "fill"], _a = {
126
+ key: 3,
127
+ class: "periodLabels"
128
+ }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = ["font-size", "text-anchor", "transform", "fill"], za = { class: "plots" }, $a = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Ca = ["to"], Pa = ["from", "to"], Ta = {
129
+ key: 4,
130
+ class: "dataLabels"
131
+ }, Ea = ["x", "y", "font-size", "fill"], Ra = { class: "tooltip-traps" }, Fa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ia = {
132
+ key: 3,
133
+ class: "axis-labels"
134
+ }, Oa = { key: 0 }, Na = ["font-size", "fill", "x", "y"], Ma = { key: 1 }, Ba = ["font-size", "fill", "x", "y"], Ua = { key: 2 }, Da = ["font-size", "fill", "transform"], Va = { key: 3 }, qa = ["font-size", "fill", "transform"], Wa = ["onClick"], ja = ["onClick"], Ga = ["onClick"], Ha = {
135
+ key: 1,
136
+ class: "vue-ui-quick-chart-not-processable"
137
+ }, Xa = /* @__PURE__ */ He(() => /* @__PURE__ */ S("span", null, "Dataset is not processable", -1)), Ya = {
138
+ __name: "vue-ui-quick-chart",
139
+ props: {
140
+ config: {
141
+ type: Object,
142
+ default() {
143
+ return {};
144
+ }
145
+ },
146
+ dataset: {
147
+ type: [Array, Object, String, Number],
148
+ default() {
149
+ return null;
150
+ }
151
+ }
152
+ },
153
+ emits: ["selectDatapoint", "selectLegend"],
154
+ setup(n, { expose: z, emit: f }) {
155
+ const F = n, { vue_ui_quick_chart: D } = ot(), W = P(null), Q = P(null), ee = P(null), ue = P(null), C = P(ut()), j = P(!1), ie = P(null), H = P(""), V = P(null), b = P([]), Te = P(0), ke = P(0), e = G(() => {
156
+ const r = Ve({
157
+ userConfig: F.config,
158
+ defaultConfig: D
159
+ });
160
+ return r.theme ? {
161
+ ...Ve({
162
+ userConfig: it.vue_ui_quick_chart[r.theme] || F.config,
163
+ defaultConfig: r
164
+ }),
165
+ customPalette: nt[r.theme] || M
166
+ } : r;
167
+ }), ne = G(() => rt(e.value.customPalette)), he = G(() => {
168
+ const r = kt({ dataset: F.dataset, barLineSwitch: e.value.chartIsBarUnderDatasetLength });
169
+ return r || console.error("VueUiQuickChart : Dataset is not processable"), r;
170
+ }), w = P(he.value), Xe = G(() => !!w.value), E = G(() => w.value ? w.value.type : null), { isPrinting: be, isImaging: Se, generatePdf: Ee, generateImage: Re } = gt({
171
+ elementId: `${E.value}_${C.value}`,
172
+ fileName: e.value.title || E.value
173
+ }), m = P({
174
+ width: e.value.width,
175
+ height: e.value.height
176
+ }), fe = P({
177
+ showTooltip: e.value.showTooltip
178
+ }), ge = P(null);
179
+ Qe(() => {
180
+ if (e.value.responsive) {
181
+ const r = ct(() => {
182
+ const { width: c, height: t } = ht({
183
+ chart: W.value,
184
+ title: e.value.title ? Q.value : null,
185
+ legend: e.value.showLegend ? ee.value : null,
186
+ slicer: [L.BAR, L.LINE].includes(E.value) && e.value.zoomXy && w.value.maxSeriesLength > 1 ? ue.value : null
187
+ });
188
+ m.value.width = c, m.value.height = t;
189
+ });
190
+ ge.value = new ResizeObserver(r), ge.value.observe(W.value.parentNode);
191
+ }
192
+ }), et(() => {
193
+ ge.value && ge.value.disconnect();
194
+ });
195
+ const Ye = G(() => {
196
+ switch (E.value) {
197
+ case L.LINE:
198
+ return `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`;
199
+ case L.BAR:
200
+ return `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`;
201
+ case L.DONUT:
202
+ return `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`;
203
+ default:
204
+ return `0 0 ${m.value.width <= 0 ? 10 : m.value.width} ${m.value.height <= 0 ? 10 : m.value.height}`;
205
+ }
206
+ });
207
+ function Fe(r) {
208
+ return [...r].map((c) => c.value).reduce((c, t) => c + t, 0);
209
+ }
210
+ function re(r) {
211
+ return e.value.blurOnHover && ![null, void 0].includes(V.value) && V.value !== r ? `url(#blur_${C.value})` : "";
212
+ }
213
+ function Ie(r, c) {
214
+ b.value.includes(r) ? b.value = b.value.filter((t) => t !== r) : b.value.length < c && b.value.push(r);
215
+ }
216
+ const Oe = P(null), Ne = P(null), xe = P(!1);
217
+ function Ze(r, c) {
218
+ xe.value = !0;
219
+ let t = r.value;
220
+ if (b.value.includes(r.id)) {
221
+ let v = function() {
222
+ t > i ? (xe.value = !1, cancelAnimationFrame(Ne.value), w.value = {
223
+ ...w.value,
224
+ dataset: w.value.dataset.map((h, O) => r.id === `donut_${O}` ? {
225
+ ...h,
226
+ value: i,
227
+ VALUE: i
228
+ } : h)
229
+ }) : (t += i * 0.025, w.value = {
230
+ ...w.value,
231
+ dataset: w.value.dataset.map((h, O) => r.id === `donut_${O}` ? {
232
+ ...h,
233
+ value: t,
234
+ VALUE: t
235
+ } : h)
236
+ }, Ne.value = requestAnimationFrame(v));
237
+ };
238
+ b.value = b.value.filter((h) => h !== r.id);
239
+ const i = he.value.dataset.find((h, O) => r.id === `donut_${O}`).VALUE;
240
+ v();
241
+ } else if (c.length > 1) {
242
+ let i = function() {
243
+ t < 0.1 ? (xe.value = !1, cancelAnimationFrame(Oe.value), b.value.push(r.id), w.value = {
244
+ ...w.value,
245
+ dataset: w.value.dataset.map((v, h) => r.id === `donut_${h}` ? {
246
+ ...v,
247
+ value: 0,
248
+ VALUE: 0
249
+ } : v)
250
+ }) : (t /= 1.1, w.value = {
251
+ ...w.value,
252
+ dataset: w.value.dataset.map((v, h) => r.id === `donut_${h}` ? {
253
+ ...v,
254
+ value: t,
255
+ VALUE: t
256
+ } : v)
257
+ }, Oe.value = requestAnimationFrame(i));
258
+ };
259
+ i();
260
+ }
261
+ }
262
+ const $ = G(() => {
263
+ if (E.value !== L.DONUT) return null;
264
+ const r = w.value.dataset.map((o, u) => ({
265
+ ...o,
266
+ value: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
267
+ name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${u}`,
268
+ id: `donut_${u}`
269
+ })).map((o, u) => ({
270
+ ...o,
271
+ color: o.COLOR ? ze(o.COLOR) : ne.value[u + e.value.paletteStartIndex] || M[u + e.value.paletteStartIndex] || M[(u + e.value.paletteStartIndex) % M.length],
272
+ immutableValue: o.value
273
+ }));
274
+ function c(o, u) {
275
+ return isNaN(o.value / Fe(u)) ? 0 : (o.value / Fe(u) * 100).toFixed(e.value.dataLabelRoundingPercentage) + "%";
276
+ }
277
+ function t(o) {
278
+ return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
279
+ }
280
+ function i(o, u) {
281
+ const p = he.value.dataset.find((R, U) => `donut_${U}` === o).VALUE;
282
+ return Math.abs(String(Number(p.toFixed(0))).length - String(Number(u.toFixed(0))).length);
283
+ }
284
+ function v({ datapoint: o, seriesIndex: u }) {
285
+ ie.value = { datapoint: o, seriesIndex: u, config: e.value, dataset: r }, V.value = o.id;
286
+ const p = e.value.tooltipCustomFormat;
287
+ if (pe(p) && Ce(() => p({
288
+ datapoint: o,
289
+ seriesIndex: u,
290
+ series: r,
291
+ config: e.value
292
+ })))
293
+ H.value = p({
294
+ datapoint: o,
295
+ seriesIndex: u,
296
+ series: r,
297
+ config: e.value
298
+ });
299
+ else {
300
+ let y = "";
301
+ y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, y += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`, y += `<b>${B({ p: e.value.valuePrefix, v: o.value, s: e.value.valueSuffix, r: e.value.dataLabelRoundingValue })}</b>`, y += `<span>(${B({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, H.value = `<div>${y}</div>`;
302
+ }
303
+ j.value = !0;
304
+ }
305
+ function h() {
306
+ j.value = !1, V.value = null;
307
+ }
308
+ const O = {
309
+ centerX: m.value.width / 2,
310
+ centerY: m.value.height / 2
311
+ }, N = r.filter((o) => !b.value.includes(o.id)).map((o) => o.value || 0).reduce((o, u) => o + u, 0), te = r.map((o, u) => ({
312
+ ...o,
313
+ proportion: (o.value || 0) / N,
314
+ value: o.value || 0,
315
+ absoluteValue: he.value.dataset.find((p, y) => `donut_${y}` === o.id).VALUE
316
+ })), X = m.value.width / 2, ae = m.value.height / 2, Y = m.value.height * e.value.donutRadiusRatio;
317
+ return {
318
+ dataset: te.filter((o) => !b.value.includes(o.id)),
319
+ legend: te,
320
+ drawingArea: O,
321
+ displayArcPercentage: c,
322
+ isArcBigEnough: t,
323
+ useTooltip: v,
324
+ killTooltip: h,
325
+ getSpaces: i,
326
+ total: N,
327
+ cx: X,
328
+ cy: ae,
329
+ radius: Y,
330
+ chart: st(
331
+ { series: r.filter((o) => !b.value.includes(o.id)) },
332
+ X,
333
+ ae,
334
+ Y,
335
+ Y,
336
+ 1.99999,
337
+ 2,
338
+ 1,
339
+ 360,
340
+ 105.25,
341
+ m.value.height * e.value.donutThicknessRatio
342
+ )
343
+ };
344
+ }), k = P({
345
+ start: 0,
346
+ end: w.value.maxSeriesLength
347
+ });
348
+ function Je() {
349
+ k.value = {
350
+ start: 0,
351
+ end: w.value.maxSeriesLength
352
+ }, ke.value += 1;
353
+ }
354
+ const d = G(() => {
355
+ if (E.value !== L.LINE) return null;
356
+ const r = {
357
+ height: m.value.height,
358
+ width: m.value.width
359
+ }, c = {
360
+ left: e.value.xyPaddingLeft,
361
+ top: e.value.xyPaddingTop,
362
+ right: r.width - e.value.xyPaddingRight,
363
+ bottom: r.height - e.value.xyPaddingBottom,
364
+ width: r.width - e.value.xyPaddingLeft - e.value.xyPaddingRight,
365
+ height: r.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
366
+ };
367
+ let t = [];
368
+ oe(w.value.dataset) && (t = [
369
+ {
370
+ values: w.value.dataset.slice(k.value.start, k.value.end),
371
+ absoluteIndices: w.value.dataset.map((o, u) => u).slice(k.value.start, k.value.end),
372
+ name: e.value.title,
373
+ color: ne.value[e.value.paletteStartIndex] || M[e.value.paletteStartIndex],
374
+ id: "line_0"
375
+ }
376
+ ]), Pe(w.value.dataset) && (t = w.value.dataset.map((o, u) => ({
377
+ ...o,
378
+ values: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
379
+ name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${u}`,
380
+ id: `line_${u}`
381
+ })).map((o, u) => ({
382
+ ...o,
383
+ color: o.COLOR ? ze(o.COLOR) : ne.value[u + e.value.paletteStartIndex] || M[u + e.value.paletteStartIndex] || M[(u + e.value.paletteStartIndex) % M.length],
384
+ values: o.values.slice(k.value.start, k.value.end),
385
+ absoluteIndices: o.values.map((p, y) => y).slice(k.value.start, k.value.end)
386
+ })));
387
+ const i = {
388
+ max: Math.max(...t.filter((o) => !b.value.includes(o.id)).flatMap((o) => o.values)),
389
+ min: Math.min(...t.filter((o) => !b.value.includes(o.id)).flatMap((o) => o.values)),
390
+ maxSeries: Math.max(...t.map((o) => o.values.length))
391
+ }, v = Ue(i.min < 0 ? i.min : 0, i.max < 0 ? 0 : i.max, e.value.xyScaleSegments), h = i.min < 0 ? Math.abs(i.min) : 0, O = i.max < 0 ? c.top : c.bottom - h / (v.max + h) * c.height, N = c.width / i.maxSeries, te = v.ticks.map((o) => ({
392
+ y: c.bottom - c.height * ((o + h) / (v.max + h)),
393
+ x: c.left - 8,
394
+ value: o
395
+ })), X = t.map((o, u) => ({
396
+ ...o,
397
+ coordinates: o.values.map((p, y) => ({
398
+ x: c.left + N * (y + 1) - N / 2,
399
+ y: c.bottom - (p + h) / (v.max + h) * c.height,
400
+ value: p
401
+ }))
402
+ })).map((o) => {
403
+ let u = [];
404
+ return o.coordinates.forEach((p) => {
405
+ u.push(`${p.x},${p.y} `);
406
+ }), {
407
+ ...o,
408
+ linePath: u.join(" ")
409
+ };
410
+ });
411
+ function ae(o) {
412
+ V.value = o;
413
+ const u = t.map((y) => ({
414
+ ...y,
415
+ value: y.values[o],
416
+ absoluteIndex: y.absoluteIndices[o]
417
+ })).filter((y) => !b.value.includes(y.id));
418
+ ie.value = { datapoint: u, seriesIndex: o, config: e.value, dataset: t };
419
+ const p = e.value.tooltipCustomFormat;
420
+ if (pe(p) && Ce(() => p({
421
+ datapoint: u,
422
+ seriesIndex: o,
423
+ series: t,
424
+ config: e.value
425
+ })))
426
+ H.value = p({
427
+ datapoint: u,
428
+ seriesIndex: o,
429
+ series: t,
430
+ config: e.value
431
+ });
432
+ else {
433
+ let y = "";
434
+ e.value.xyPeriods[u[0].absoluteIndex] && (y += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[u[0].absoluteIndex]}</div>`), u.forEach((R) => {
435
+ y += `
436
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
437
+ <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${R.color}"/></svg>
438
+ <span>${R.name}:</span>
439
+ <b>${B({
440
+ p: e.value.valuePrefix,
441
+ v: R.value,
442
+ s: e.value.valueSuffix,
443
+ r: e.value.dataLabelRoundingValue
444
+ })}</b>
445
+ </div>
446
+ `;
447
+ }), H.value = y;
448
+ }
449
+ j.value = !0;
450
+ }
451
+ function Y() {
452
+ V.value = null, j.value = !1;
453
+ }
454
+ return {
455
+ absoluteZero: O,
456
+ dataset: X.filter((o) => !b.value.includes(o.id)),
457
+ legend: X,
458
+ drawingArea: c,
459
+ extremes: i,
460
+ slotSize: N,
461
+ yLabels: te,
462
+ useTooltip: ae,
463
+ killTooltip: Y
464
+ };
465
+ }), s = G(() => {
466
+ if (E.value !== L.BAR) return null;
467
+ const r = {
468
+ height: m.value.height,
469
+ width: m.value.width
470
+ }, c = {
471
+ left: e.value.xyPaddingLeft,
472
+ top: e.value.xyPaddingTop,
473
+ right: r.width - e.value.xyPaddingRight,
474
+ bottom: r.height - e.value.xyPaddingBottom,
475
+ width: r.width - e.value.xyPaddingLeft - e.value.xyPaddingRight,
476
+ height: r.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
477
+ };
478
+ let t = [];
479
+ oe(w.value.dataset) && (t = [
480
+ {
481
+ values: w.value.dataset.slice(k.value.start, k.value.end),
482
+ absoluteIndices: w.value.dataset.map((u, p) => p).slice(k.value.start, k.value.end),
483
+ name: e.value.title,
484
+ color: ne.value[e.value.paletteStartIndex] || M[e.value.paletteStartIndex],
485
+ id: "bar_0"
486
+ }
487
+ ]), Pe(w.value.dataset) && (t = w.value.dataset.map((u, p) => ({
488
+ ...u,
489
+ values: u.VALUE || u.DATA || u.SERIE || u.VALUES || u.NUM || 0,
490
+ name: u.NAME || u.DESCRIPTION || u.TITLE || u.LABEL || `Serie ${p}`,
491
+ id: `bar_${p}`
492
+ })).map((u, p) => ({
493
+ ...u,
494
+ color: u.COLOR ? ze(u.COLOR) : ne.value[p + e.value.paletteStartIndex] || M[p + e.value.paletteStartIndex] || M[(p + e.value.paletteStartIndex) % M.length],
495
+ values: u.values.slice(k.value.start, k.value.end),
496
+ absoluteIndices: u.values.map((y, R) => R).slice(k.value.start, k.value.end)
497
+ })));
498
+ const i = {
499
+ max: Math.max(...t.filter((u) => !b.value.includes(u.id)).flatMap((u) => u.values)) < 0 ? 0 : Math.max(...t.filter((u) => !b.value.includes(u.id)).flatMap((u) => u.values)),
500
+ min: Math.min(...t.filter((u) => !b.value.includes(u.id)).flatMap((u) => u.values)),
501
+ maxSeries: Math.max(...t.filter((u) => !b.value.includes(u.id)).map((u) => u.values.length))
502
+ }, v = Ue(i.min < 0 ? i.min : 0, i.max, e.value.xyScaleSegments), h = v.min < 0 ? Math.abs(v.min) : 0, O = c.bottom - h / (v.max + h) * c.height, N = c.width / i.maxSeries, te = v.ticks.map((u) => ({
503
+ y: c.bottom - c.height * ((u + h) / (v.max + h)),
504
+ x: c.left - 8,
505
+ value: u
506
+ })), X = t.map((u, p) => ({
507
+ ...u,
508
+ coordinates: u.values.map((y, R) => {
509
+ const U = (y + h) / (i.max + h) * c.height, _e = Math.abs(y) / Math.abs(i.min) * (c.height - O), Ae = h / (i.max + h) * c.height, se = N / t.filter((Z) => !b.value.includes(Z.id)).length - e.value.barGap / t.filter((Z) => !b.value.includes(Z.id)).length;
510
+ return {
511
+ x: c.left + N * R + se * p + e.value.barGap / 2,
512
+ y: y > 0 ? c.bottom - U : O,
513
+ height: y > 0 ? U - Ae : _e,
514
+ value: y,
515
+ width: se
516
+ };
517
+ })
518
+ })), ae = t.filter((u) => !b.value.includes(u.id)).map((u, p) => ({
519
+ ...u,
520
+ coordinates: u.values.map((y, R) => {
521
+ const U = (y + h) / (i.max + h) * c.height, _e = Math.abs(y) / (i.max + h) * c.height, Ae = h / (i.max + h) * c.height, se = N / t.filter((Z) => !b.value.includes(Z.id)).length - e.value.barGap / t.filter((Z) => !b.value.includes(Z.id)).length;
522
+ return {
523
+ x: c.left + N * R + se * p + e.value.barGap / 2,
524
+ y: y > 0 ? c.bottom - U : O,
525
+ height: y > 0 ? U - Ae : _e,
526
+ value: y,
527
+ width: se
528
+ };
529
+ })
530
+ }));
531
+ function Y(u) {
532
+ V.value = u;
533
+ const p = t.map((R) => ({
534
+ ...R,
535
+ value: R.values[u],
536
+ absoluteIndex: R.absoluteIndices[u]
537
+ })).filter((R) => !b.value.includes(R.id));
538
+ ie.value = { datapoint: p, seriesIndex: u, config: e.value, dataset: t };
539
+ const y = e.value.tooltipCustomFormat;
540
+ if (pe(y) && Ce(() => y({
541
+ datapoint: p,
542
+ seriesIndex: u,
543
+ series: t,
544
+ config: e.value
545
+ })))
546
+ H.value = y({
547
+ point: p,
548
+ seriesIndex: u,
549
+ series: t,
550
+ config: e.value
551
+ });
552
+ else {
553
+ let R = "";
554
+ e.value.xyPeriods[p[0].absoluteIndex] && (R += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[p[0].absoluteIndex]}</div>`), p.forEach((U) => {
555
+ R += `
556
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
557
+ <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${U.color}"/></svg>
558
+ <span>${U.name}:</span>
559
+ <b>${B({
560
+ p: e.value.valuePrefix,
561
+ v: U.value,
562
+ s: e.value.valueSuffix,
563
+ r: e.value.dataLabelRoundingValue
564
+ })}</b>
565
+ </div>
566
+ `;
567
+ }), H.value = R;
568
+ }
569
+ j.value = !0;
570
+ }
571
+ function o() {
572
+ j.value = !1, V.value = null;
573
+ }
574
+ return {
575
+ absoluteZero: O,
576
+ dataset: ae.filter((u) => !b.value.includes(u.id)),
577
+ legend: X,
578
+ drawingArea: c,
579
+ extremes: i,
580
+ slotSize: N,
581
+ yLabels: te,
582
+ useTooltip: Y,
583
+ killTooltip: o
584
+ };
585
+ }), we = P(!1);
586
+ function Ke(r) {
587
+ we.value = r, Te.value += 1;
588
+ }
589
+ function Me() {
590
+ fe.value.showTooltip = !fe.value.showTooltip;
591
+ }
592
+ return z({
593
+ generatePdf: Ee,
594
+ generateImage: Re,
595
+ toggleTooltip: Me
596
+ }), (r, c) => Xe.value ? (a(), l("div", {
597
+ key: 0,
598
+ id: `${E.value}_${C.value}`,
599
+ ref_key: "quickChart",
600
+ ref: W,
601
+ class: le({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": we.value }),
602
+ style: I(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
603
+ }, [
604
+ e.value.showUserOptions ? (a(), Be(xt, {
605
+ ref: "details",
606
+ key: `user_option_${Te.value}`,
607
+ backgroundColor: e.value.backgroundColor,
608
+ color: e.value.color,
609
+ isPrinting: _(be),
610
+ isImaging: _(Se),
611
+ uid: C.value,
612
+ hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
613
+ hasPdf: e.value.userOptionsButtons.pdf,
614
+ hasImg: e.value.userOptionsButtons.img,
615
+ hasFullscreen: e.value.userOptionsButtons.fullscreen,
616
+ hasXls: !1,
617
+ isTooltip: fe.value.showTooltip,
618
+ isFullscreen: we.value,
619
+ titles: { ...e.value.userOptionsButtonTitles },
620
+ chartElement: W.value,
621
+ onToggleFullscreen: Ke,
622
+ onGeneratePdf: _(Ee),
623
+ onGenerateImage: _(Re),
624
+ onToggleTooltip: Me
625
+ }, tt({ _: 2 }, [
626
+ r.$slots.optionTooltip ? {
627
+ name: "optionTooltip",
628
+ fn: J(() => [
629
+ q(r.$slots, "optionTooltip", {}, void 0, !0)
630
+ ]),
631
+ key: "0"
632
+ } : void 0,
633
+ r.$slots.optionPdf ? {
634
+ name: "optionPdf",
635
+ fn: J(() => [
636
+ q(r.$slots, "optionPdf", {}, void 0, !0)
637
+ ]),
638
+ key: "1"
639
+ } : void 0,
640
+ r.$slots.optionImg ? {
641
+ name: "optionImg",
642
+ fn: J(() => [
643
+ q(r.$slots, "optionImg", {}, void 0, !0)
644
+ ]),
645
+ key: "2"
646
+ } : void 0,
647
+ r.$slots.optionFullscreen ? {
648
+ name: "optionFullscreen",
649
+ fn: J(({ toggleFullscreen: t, isFullscreen: i }) => [
650
+ q(r.$slots, "optionFullscreen", K(ye({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
651
+ ]),
652
+ key: "3"
653
+ } : void 0
654
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : x("", !0),
655
+ e.value.title ? (a(), l("div", {
656
+ key: 1,
657
+ ref_key: "quickChartTitle",
658
+ ref: Q,
659
+ class: "vue-ui-quick-chart-title",
660
+ style: I(`background:${e.value.backgroundColor};color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
661
+ }, T(e.value.title), 5)) : x("", !0),
662
+ (a(), l("svg", {
663
+ xmlns: _(vt),
664
+ viewBox: Ye.value,
665
+ style: I(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
666
+ }, [
667
+ S("defs", null, [
668
+ S("filter", {
669
+ id: `blur_${C.value}`,
670
+ x: "-50%",
671
+ y: "-50%",
672
+ width: "200%",
673
+ height: "200%"
674
+ }, [
675
+ S("feGaussianBlur", {
676
+ in: "SourceGraphic",
677
+ stdDeviation: 2,
678
+ id: `blur_std_${C.value}`
679
+ }, null, 8, $t),
680
+ Ct
681
+ ], 8, zt),
682
+ S("filter", {
683
+ id: `shadow_${C.value}`,
684
+ "color-interpolation-filters": "sRGB"
685
+ }, [
686
+ S("feDropShadow", {
687
+ dx: "0",
688
+ dy: "0",
689
+ stdDeviation: "10",
690
+ "flood-opacity": "0.5",
691
+ "flood-color": e.value.donutShadowColor
692
+ }, null, 8, Tt)
693
+ ], 8, Pt)
694
+ ]),
695
+ E.value === L.DONUT ? (a(), l(g, { key: 0 }, [
696
+ e.value.showDataLabels ? (a(), l("g", Et, [
697
+ (a(!0), l(g, null, A($.value.chart, (t, i) => (a(), l(g, null, [
698
+ $.value.isArcBigEnough(t) ? (a(), l("path", {
699
+ key: 0,
700
+ d: _(dt)(t, { x: (e.value.width || m.value.width) / 2, y: (e.value.height || m.value.height) / 2 }, 16, 16, !1, !1, e.value.donutLabelMarkerStrokeWidth),
701
+ stroke: t.color,
702
+ "stroke-width": e.value.donutLabelMarkerStrokeWidth,
703
+ "stroke-linecap": "round",
704
+ "stroke-linejoin": "round",
705
+ fill: "none",
706
+ filter: re(t.id)
707
+ }, null, 8, Rt)) : x("", !0)
708
+ ], 64))), 256))
709
+ ])) : x("", !0),
710
+ S("circle", {
711
+ class: "donut-hollow",
712
+ cx: (e.value.width || m.value.width) / 2,
713
+ cy: (e.value.height || m.value.height) / 2,
714
+ r: (e.value.height || m.value.height) * e.value.donutRadiusRatio,
715
+ fill: e.value.backgroundColor
716
+ }, null, 8, Ft),
717
+ S("circle", {
718
+ cx: $.value.cx,
719
+ cy: $.value.cy,
720
+ r: $.value.radius,
721
+ fill: e.value.backgroundColor,
722
+ filter: e.value.donutUseShadow ? `url(#shadow_${C.value})` : ""
723
+ }, null, 8, It),
724
+ S("g", Ot, [
725
+ (a(!0), l(g, null, A($.value.chart, (t, i) => (a(), l("path", {
726
+ d: t.arcSlice,
727
+ fill: t.color,
728
+ stroke: e.value.backgroundColor,
729
+ "stroke-width": e.value.donutStrokeWidth,
730
+ filter: re(t.id)
731
+ }, null, 8, Nt))), 256)),
732
+ (a(!0), l(g, null, A($.value.chart, (t, i) => (a(), l("path", {
733
+ d: t.arcSlice,
734
+ fill: "transparent",
735
+ onMouseenter: (v) => $.value.useTooltip({ datapoint: t, seriesIndex: i }),
736
+ onMouseout: c[0] || (c[0] = (v) => $.value.killTooltip()),
737
+ onClick: (v) => f("selectDatapoint", t)
738
+ }, null, 40, Mt))), 256))
739
+ ]),
740
+ e.value.showDataLabels ? (a(), l("g", Bt, [
741
+ (a(!0), l(g, null, A($.value.chart, (t, i) => (a(), l(g, null, [
742
+ $.value.isArcBigEnough(t) ? (a(), l("circle", {
743
+ key: 0,
744
+ cx: _(de)(t).x,
745
+ cy: _($e)(t) - 3.7,
746
+ fill: t.color,
747
+ r: 3,
748
+ filter: re(t.id)
749
+ }, null, 8, Ut)) : x("", !0),
750
+ $.value.isArcBigEnough(t) ? (a(), l("text", {
751
+ key: 1,
752
+ "text-anchor": _(de)(t, !0, 20).anchor,
753
+ x: _(de)(t, !0).x,
754
+ y: _($e)(t),
755
+ fill: e.value.color,
756
+ "font-size": e.value.dataLabelFontSize,
757
+ filter: re(t.id)
758
+ }, T($.value.displayArcPercentage(t, $.value.chart)) + " (" + T(_(B)({
759
+ p: e.value.valuePrefix,
760
+ v: t.value,
761
+ s: e.value.valueSuffix,
762
+ r: e.value.dataLabelRoundingValue
763
+ })) + ") ", 9, Dt)) : x("", !0),
764
+ $.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
765
+ key: 2,
766
+ "text-anchor": _(de)(t).anchor,
767
+ x: _(de)(t, !0).x,
768
+ y: _($e)(t) + e.value.dataLabelFontSize,
769
+ fill: e.value.color,
770
+ "font-size": e.value.dataLabelFontSize,
771
+ filter: re(t.id)
772
+ }, T(t.name), 9, Vt)) : x("", !0)
773
+ ], 64))), 256))
774
+ ])) : x("", !0),
775
+ e.value.donutShowTotal ? (a(), l("g", qt, [
776
+ S("text", {
777
+ "text-anchor": "middle",
778
+ x: $.value.drawingArea.centerX,
779
+ y: $.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
780
+ "font-size": e.value.donutTotalLabelFontSize,
781
+ fill: e.value.color
782
+ }, T(e.value.donutTotalLabelText), 9, Wt),
783
+ S("text", {
784
+ "text-anchor": "middle",
785
+ x: $.value.drawingArea.centerX,
786
+ y: $.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
787
+ "font-size": e.value.donutTotalLabelFontSize,
788
+ fill: e.value.color
789
+ }, T(_(B)({
790
+ p: e.value.valuePrefix,
791
+ v: $.value.total,
792
+ s: e.value.valueSuffix,
793
+ r: e.value.dataLabelRoundingValue
794
+ })), 9, jt)
795
+ ])) : x("", !0)
796
+ ], 64)) : x("", !0),
797
+ E.value === L.LINE ? (a(), l(g, { key: 1 }, [
798
+ e.value.xyShowGrid ? (a(), l("g", Gt, [
799
+ (a(!0), l(g, null, A(d.value.yLabels, (t) => (a(), l(g, null, [
800
+ t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
801
+ key: 0,
802
+ x1: d.value.drawingArea.left,
803
+ x2: d.value.drawingArea.right,
804
+ y1: t.y,
805
+ y2: t.y,
806
+ stroke: e.value.xyGridStroke,
807
+ "stroke-width": e.value.xyGridStrokeWidth,
808
+ "stroke-linecap": "round"
809
+ }, null, 8, Ht)) : x("", !0)
810
+ ], 64))), 256)),
811
+ (a(!0), l(g, null, A(d.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
812
+ x1: d.value.drawingArea.left + d.value.slotSize * i,
813
+ x2: d.value.drawingArea.left + d.value.slotSize * i,
814
+ y1: d.value.drawingArea.top,
815
+ y2: d.value.drawingArea.bottom,
816
+ stroke: e.value.xyGridStroke,
817
+ "stroke-width": e.value.xyGridStrokeWidth,
818
+ "stroke-linecap": "round"
819
+ }, null, 8, Xt))), 256))
820
+ ])) : x("", !0),
821
+ e.value.xyShowAxis ? (a(), l("g", Yt, [
822
+ S("line", {
823
+ x1: d.value.drawingArea.left,
824
+ x2: d.value.drawingArea.left,
825
+ y1: d.value.drawingArea.top,
826
+ y2: d.value.drawingArea.bottom,
827
+ stroke: e.value.xyAxisStroke,
828
+ "stroke-width": e.value.xyAxisStrokeWidth,
829
+ "stroke-linecap": "round"
830
+ }, null, 8, Zt),
831
+ S("line", {
832
+ x1: d.value.drawingArea.left,
833
+ x2: d.value.drawingArea.right,
834
+ y1: d.value.absoluteZero,
835
+ y2: d.value.absoluteZero,
836
+ stroke: e.value.xyAxisStroke,
837
+ "stroke-width": e.value.xyAxisStrokeWidth,
838
+ "stroke-linecap": "round"
839
+ }, null, 8, Jt)
840
+ ])) : x("", !0),
841
+ e.value.xyShowScale ? (a(), l("g", Kt, [
842
+ (a(!0), l(g, null, A(d.value.yLabels, (t) => (a(), l(g, null, [
843
+ t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
844
+ key: 0,
845
+ x1: t.x + 4,
846
+ x2: d.value.drawingArea.left,
847
+ y1: t.y,
848
+ y2: t.y,
849
+ stroke: e.value.xyAxisStroke,
850
+ "stroke-width": e.value.xyAxisStrokeWidth,
851
+ "stroke-linecap": "round"
852
+ }, null, 8, Qt)) : x("", !0),
853
+ t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
854
+ key: 1,
855
+ x: t.x,
856
+ y: t.y + e.value.xyLabelsYFontSize / 3,
857
+ "text-anchor": "end",
858
+ "font-size": e.value.xyLabelsYFontSize,
859
+ fill: e.value.color
860
+ }, T(_(B)({
861
+ p: e.value.valuePrefix,
862
+ v: t.value,
863
+ s: e.value.valueSuffix,
864
+ r: e.value.dataLabelRoundingValue
865
+ })), 9, ea)) : x("", !0)
866
+ ], 64))), 256))
867
+ ])) : x("", !0),
868
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", ta, [
869
+ (a(!0), l(g, null, A(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, i) => (a(), l("line", {
870
+ x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
871
+ x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
872
+ y1: d.value.drawingArea.bottom,
873
+ y2: d.value.drawingArea.bottom + 4,
874
+ stroke: e.value.xyAxisStroke,
875
+ "stroke-width": e.value.xyAxisStrokeWidth,
876
+ "stroke-linecap": "round"
877
+ }, null, 8, aa))), 256)),
878
+ (a(!0), l(g, null, A(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, i) => (a(), l("text", {
879
+ "font-size": e.value.xyLabelsXFontSize,
880
+ "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
881
+ fill: e.value.color,
882
+ transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
883
+ }, T(t), 9, la))), 256))
884
+ ])) : x("", !0),
885
+ S("g", oa, [
886
+ (a(!0), l(g, null, A(d.value.dataset, (t, i) => (a(), l("g", ua, [
887
+ e.value.lineSmooth ? (a(), l(g, { key: 0 }, [
888
+ S("path", {
889
+ d: `M ${_(De)(t.coordinates)}`,
890
+ stroke: e.value.backgroundColor,
891
+ "stroke-width": e.value.lineStrokeWidth + 1,
892
+ "stroke-linecap": "round",
893
+ fill: "none",
894
+ class: le({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
895
+ style: { transition: "all 0.3s ease-in-out" }
896
+ }, null, 10, ia),
897
+ S("path", {
898
+ d: `M ${_(De)(t.coordinates)}`,
899
+ stroke: t.color,
900
+ "stroke-width": e.value.lineStrokeWidth,
901
+ "stroke-linecap": "round",
902
+ fill: "none",
903
+ class: le({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
904
+ style: { transition: "all 0.3s ease-in-out" }
905
+ }, null, 10, na)
906
+ ], 64)) : (a(), l(g, { key: 1 }, [
907
+ S("path", {
908
+ d: `M ${t.linePath}`,
909
+ stroke: e.value.backgroundColor,
910
+ "stroke-width": e.value.lineStrokeWidth + 1,
911
+ "stroke-linecap": "round",
912
+ fill: "none",
913
+ class: le({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
914
+ style: { transition: "all 0.3s ease-in-out" }
915
+ }, null, 10, ra),
916
+ S("path", {
917
+ d: `M ${t.linePath}`,
918
+ stroke: t.color,
919
+ "stroke-width": e.value.lineStrokeWidth,
920
+ "stroke-linecap": "round",
921
+ fill: "none",
922
+ class: le({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
923
+ style: { transition: "all 0.3s ease-in-out" }
924
+ }, null, 10, sa)
925
+ ], 64)),
926
+ (a(!0), l(g, null, A(t.coordinates, (v, h) => (a(), l("circle", {
927
+ cx: v.x,
928
+ cy: v.y,
929
+ r: 3,
930
+ fill: t.color,
931
+ stroke: e.value.backgroundColor,
932
+ "stroke-width": "0.5",
933
+ class: "quick-animation",
934
+ style: { transition: "all 0.3s ease-in-out" }
935
+ }, null, 8, va))), 256))
936
+ ]))), 256))
937
+ ]),
938
+ e.value.showDataLabels ? (a(), l("g", da, [
939
+ (a(!0), l(g, null, A(d.value.dataset, (t, i) => (a(), l(g, null, [
940
+ (a(!0), l(g, null, A(t.coordinates, (v, h) => (a(), l("text", {
941
+ "text-anchor": "middle",
942
+ "font-size": e.value.dataLabelFontSize,
943
+ fill: t.color,
944
+ x: v.x,
945
+ y: v.y - e.value.dataLabelFontSize / 2,
946
+ class: "quick-animation",
947
+ style: { transition: "all 0.3s ease-in-out" }
948
+ }, T(_(B)({
949
+ p: e.value.valuePrefix,
950
+ v: v.value,
951
+ s: e.value.valueSuffix,
952
+ r: e.value.dataLabelRoundingValue
953
+ })), 9, ca))), 256))
954
+ ], 64))), 256))
955
+ ])) : x("", !0),
956
+ S("g", ha, [
957
+ (a(!0), l(g, null, A(d.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
958
+ x: d.value.drawingArea.left + i * d.value.slotSize,
959
+ y: d.value.drawingArea.top,
960
+ height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
961
+ width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
962
+ fill: V.value === i ? e.value.xyHighlighterColor : "transparent",
963
+ style: I(`opacity:${e.value.xyHighlighterOpacity}`),
964
+ onMouseenter: (v) => d.value.useTooltip(i),
965
+ onMouseleave: c[1] || (c[1] = (v) => d.value.killTooltip()),
966
+ onClick: (v) => f("selectDatapoint", d.value.dataset.map((h) => ({
967
+ ...h,
968
+ value: h.values[i]
969
+ })))
970
+ }, null, 44, fa))), 256))
971
+ ])
972
+ ], 64)) : x("", !0),
973
+ E.value === L.BAR ? (a(), l(g, { key: 2 }, [
974
+ e.value.xyShowGrid ? (a(), l("g", ga, [
975
+ (a(!0), l(g, null, A(s.value.yLabels, (t) => (a(), l(g, null, [
976
+ t.y <= s.value.drawingArea.bottom ? (a(), l("line", {
977
+ key: 0,
978
+ x1: s.value.drawingArea.left,
979
+ x2: s.value.drawingArea.right,
980
+ y1: t.y,
981
+ y2: t.y,
982
+ stroke: e.value.xyGridStroke,
983
+ "stroke-width": e.value.xyGridStrokeWidth,
984
+ "stroke-linecap": "round"
985
+ }, null, 8, xa)) : x("", !0)
986
+ ], 64))), 256)),
987
+ (a(!0), l(g, null, A(s.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
988
+ x1: s.value.drawingArea.left + s.value.slotSize * i,
989
+ x2: s.value.drawingArea.left + s.value.slotSize * i,
990
+ y1: s.value.drawingArea.top,
991
+ y2: s.value.drawingArea.bottom,
992
+ stroke: e.value.xyGridStroke,
993
+ "stroke-width": e.value.xyGridStrokeWidth,
994
+ "stroke-linecap": "round"
995
+ }, null, 8, ya))), 256))
996
+ ])) : x("", !0),
997
+ e.value.xyShowAxis ? (a(), l("g", pa, [
998
+ S("line", {
999
+ x1: s.value.drawingArea.left,
1000
+ x2: s.value.drawingArea.left,
1001
+ y1: s.value.drawingArea.top,
1002
+ y2: s.value.drawingArea.bottom,
1003
+ stroke: e.value.xyAxisStroke,
1004
+ "stroke-width": e.value.xyAxisStrokeWidth,
1005
+ "stroke-linecap": "round"
1006
+ }, null, 8, ma),
1007
+ S("line", {
1008
+ x1: s.value.drawingArea.left,
1009
+ x2: s.value.drawingArea.right,
1010
+ y1: s.value.absoluteZero,
1011
+ y2: s.value.absoluteZero,
1012
+ stroke: e.value.xyAxisStroke,
1013
+ "stroke-width": e.value.xyAxisStrokeWidth,
1014
+ "stroke-linecap": "round"
1015
+ }, null, 8, ka)
1016
+ ])) : x("", !0),
1017
+ e.value.xyShowScale ? (a(), l("g", ba, [
1018
+ (a(!0), l(g, null, A(s.value.yLabels, (t) => (a(), l(g, null, [
1019
+ t.y <= s.value.drawingArea.bottom ? (a(), l("line", {
1020
+ key: 0,
1021
+ x1: t.x + 4,
1022
+ x2: s.value.drawingArea.left,
1023
+ y1: t.y,
1024
+ y2: t.y,
1025
+ stroke: e.value.xyAxisStroke,
1026
+ "stroke-width": e.value.xyAxisStrokeWidth,
1027
+ "stroke-linecap": "round"
1028
+ }, null, 8, Sa)) : x("", !0),
1029
+ t.y <= s.value.drawingArea.bottom ? (a(), l("text", {
1030
+ key: 1,
1031
+ x: t.x,
1032
+ y: t.y + e.value.xyLabelsYFontSize / 3,
1033
+ "text-anchor": "end",
1034
+ "font-size": e.value.xyLabelsYFontSize,
1035
+ fill: e.value.color
1036
+ }, T(_(B)({
1037
+ p: e.value.valuePrefix,
1038
+ v: t.value,
1039
+ s: e.value.valueSuffix,
1040
+ r: e.value.dataLabelRoundingValue
1041
+ })), 9, wa)) : x("", !0)
1042
+ ], 64))), 256))
1043
+ ])) : x("", !0),
1044
+ e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", _a, [
1045
+ (a(!0), l(g, null, A(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, i) => (a(), l("line", {
1046
+ x1: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
1047
+ x2: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
1048
+ y1: s.value.drawingArea.bottom,
1049
+ y2: s.value.drawingArea.bottom + 4,
1050
+ stroke: e.value.xyAxisStroke,
1051
+ "stroke-width": e.value.xyAxisStrokeWidth,
1052
+ "stroke-linecap": "round"
1053
+ }, null, 8, Aa))), 256)),
1054
+ (a(!0), l(g, null, A(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, i) => (a(), l("text", {
1055
+ "font-size": e.value.xyLabelsXFontSize,
1056
+ "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1057
+ transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
1058
+ fill: e.value.color
1059
+ }, T(t), 9, La))), 256))
1060
+ ])) : x("", !0),
1061
+ S("g", za, [
1062
+ (a(!0), l(g, null, A(s.value.dataset, (t, i) => (a(), l(g, null, [
1063
+ (a(!0), l(g, null, A(t.coordinates, (v, h) => (a(), l("rect", {
1064
+ x: v.x,
1065
+ width: v.width <= 0 ? 1e-5 : v.width,
1066
+ height: v.height <= 0 ? 1e-5 : v.height,
1067
+ y: v.y,
1068
+ fill: t.color,
1069
+ stroke: e.value.backgroundColor,
1070
+ "stroke-width": e.value.barStrokeWidth,
1071
+ "stroke-linecap": "round",
1072
+ class: le({ "vue-data-ui-bar-animated": e.value.barAnimated && v.value < 0 })
1073
+ }, [
1074
+ e.value.barAnimated && v.value > 0 && !_(be) && !_(Se) ? (a(), l("animate", {
1075
+ key: 0,
1076
+ attributeName: "height",
1077
+ from: 0,
1078
+ to: v.height,
1079
+ dur: "0.5s"
1080
+ }, null, 8, Ca)) : x("", !0),
1081
+ e.value.barAnimated && v.value > 0 && !_(be) && !_(Se) ? (a(), l("animate", {
1082
+ key: 1,
1083
+ attributeName: "y",
1084
+ from: s.value.absoluteZero,
1085
+ to: s.value.absoluteZero - v.height,
1086
+ dur: "0.5s"
1087
+ }, null, 8, Pa)) : x("", !0)
1088
+ ], 10, $a))), 256))
1089
+ ], 64))), 256))
1090
+ ]),
1091
+ e.value.showDataLabels ? (a(), l("g", Ta, [
1092
+ (a(!0), l(g, null, A(s.value.dataset, (t, i) => (a(), l(g, null, [
1093
+ (a(!0), l(g, null, A(t.coordinates, (v, h) => (a(), l("text", {
1094
+ x: v.x + v.width / 2,
1095
+ y: v.y - e.value.dataLabelFontSize / 2,
1096
+ "text-anchor": "middle",
1097
+ "font-size": e.value.dataLabelFontSize,
1098
+ fill: t.color,
1099
+ class: "quick-animation"
1100
+ }, T(_(B)({
1101
+ p: e.value.valuePrefix,
1102
+ v: v.value,
1103
+ s: e.value.valueSuffix,
1104
+ r: e.value.dataLabelRoundingValue
1105
+ })), 9, Ea))), 256))
1106
+ ], 64))), 256))
1107
+ ])) : x("", !0),
1108
+ S("g", Ra, [
1109
+ (a(!0), l(g, null, A(s.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
1110
+ x: s.value.drawingArea.left + i * s.value.slotSize,
1111
+ y: s.value.drawingArea.top,
1112
+ height: s.value.drawingArea.height <= 0 ? 1e-5 : s.value.drawingArea.height,
1113
+ width: s.value.slotSize <= 0 ? 1e-5 : s.value.slotSize,
1114
+ fill: V.value === i ? e.value.xyHighlighterColor : "transparent",
1115
+ style: I(`opacity:${e.value.xyHighlighterOpacity}`),
1116
+ onMouseenter: (v) => s.value.useTooltip(i),
1117
+ onMouseleave: c[2] || (c[2] = (v) => s.value.killTooltip()),
1118
+ onClick: (v) => f("selectDatapoint", s.value.dataset.map((h) => ({
1119
+ ...h,
1120
+ value: h.values[i]
1121
+ })))
1122
+ }, null, 44, Fa))), 256))
1123
+ ])
1124
+ ], 64)) : x("", !0),
1125
+ [L.LINE, L.BAR].includes(E.value) ? (a(), l("g", Ia, [
1126
+ e.value.xAxisLabel && E.value === L.LINE ? (a(), l("g", Oa, [
1127
+ S("text", {
1128
+ "font-size": e.value.axisLabelsFontSize,
1129
+ fill: e.value.color,
1130
+ "text-anchor": "middle",
1131
+ x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
1132
+ y: m.value.height - e.value.axisLabelsFontSize / 3
1133
+ }, T(e.value.xAxisLabel), 9, Na)
1134
+ ])) : x("", !0),
1135
+ e.value.xAxisLabel && E.value === L.BAR ? (a(), l("g", Ma, [
1136
+ S("text", {
1137
+ "font-size": e.value.axisLabelsFontSize,
1138
+ fill: e.value.color,
1139
+ "text-anchor": "middle",
1140
+ x: s.value.drawingArea.left + s.value.drawingArea.width / 2,
1141
+ y: m.value.height - e.value.axisLabelsFontSize / 3
1142
+ }, T(e.value.xAxisLabel), 9, Ba)
1143
+ ])) : x("", !0),
1144
+ e.value.yAxisLabel && E.value === L.LINE ? (a(), l("g", Ua, [
1145
+ S("text", {
1146
+ "font-size": e.value.axisLabelsFontSize,
1147
+ fill: e.value.color,
1148
+ transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
1149
+ "text-anchor": "middle"
1150
+ }, T(e.value.yAxisLabel), 9, Da)
1151
+ ])) : x("", !0),
1152
+ e.value.yAxisLabel && E.value === L.BAR ? (a(), l("g", Va, [
1153
+ S("text", {
1154
+ "font-size": e.value.axisLabelsFontSize,
1155
+ fill: e.value.color,
1156
+ transform: `translate(${e.value.axisLabelsFontSize}, ${s.value.drawingArea.top + s.value.drawingArea.height / 2}) rotate(-90)`,
1157
+ "text-anchor": "middle"
1158
+ }, T(e.value.yAxisLabel), 9, qa)
1159
+ ])) : x("", !0)
1160
+ ])) : x("", !0)
1161
+ ], 12, Lt)),
1162
+ [L.BAR, L.LINE].includes(E.value) && e.value.zoomXy && w.value.maxSeriesLength > 1 ? (a(), l("div", {
1163
+ key: `slicer_${ke.value}`,
1164
+ ref_key: "quickChartSlicer",
1165
+ ref: ue
1166
+ }, [
1167
+ (a(), Be(yt, {
1168
+ key: `slicer_${ke.value}`,
1169
+ background: e.value.zoomColor,
1170
+ borderColor: e.value.backgroundColor,
1171
+ fontSize: e.value.zoomFontSize,
1172
+ useResetSlot: e.value.zoomUseResetSlot,
1173
+ labelLeft: e.value.xyPeriods[k.value.start] ? e.value.xyPeriods[k.value.start] : "",
1174
+ labelRight: e.value.xyPeriods[k.value.end - 1] ? e.value.xyPeriods[k.value.end - 1] : "",
1175
+ textColor: e.value.color,
1176
+ inputColor: e.value.zoomColor,
1177
+ selectColor: e.value.zoomHighlightColor,
1178
+ max: w.value.maxSeriesLength,
1179
+ min: 0,
1180
+ valueStart: k.value.start,
1181
+ valueEnd: k.value.end,
1182
+ start: k.value.start,
1183
+ "onUpdate:start": c[3] || (c[3] = (t) => k.value.start = t),
1184
+ end: k.value.end,
1185
+ "onUpdate:end": c[4] || (c[4] = (t) => k.value.end = t),
1186
+ onReset: Je
1187
+ }, {
1188
+ "reset-action": J(({ reset: t }) => [
1189
+ q(r.$slots, "reset-action", K(ye({ reset: t })), void 0, !0)
1190
+ ]),
1191
+ _: 3
1192
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"]))
1193
+ ])) : x("", !0),
1194
+ e.value.showLegend ? (a(), l("div", {
1195
+ key: 3,
1196
+ ref_key: "quickChartLegend",
1197
+ ref: ee,
1198
+ class: "vue-ui-quick-chart-legend",
1199
+ style: I(`background:${e.value.backgroundColor};color:${e.value.color}`)
1200
+ }, [
1201
+ E.value === L.DONUT ? (a(!0), l(g, { key: 0 }, A($.value.legend, (t, i) => (a(), l("div", {
1202
+ class: "vue-ui-quick-chart-legend-item",
1203
+ onClick: (v) => {
1204
+ Ze(t, $.value.dataset), f("selectLegend", t);
1205
+ },
1206
+ style: I(`cursor: ${$.value.legend.length > 1 ? "pointer" : "default"}; opacity:${b.value.includes(t.id) ? "0.5" : "1"}`)
1207
+ }, [
1208
+ e.value.useCustomLegend ? q(r.$slots, "legend", K(Le({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(g, { key: 1 }, [
1209
+ ve(me, {
1210
+ name: e.value.legendIcon,
1211
+ stroke: t.color,
1212
+ size: e.value.legendIconSize
1213
+ }, null, 8, ["name", "stroke", "size"]),
1214
+ S("span", {
1215
+ style: I(`font-size:${e.value.legendFontSize}px`)
1216
+ }, T(t.name), 5),
1217
+ S("span", {
1218
+ style: I(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1219
+ }, T(b.value.includes(t.id) ? "-" : _(B)({
1220
+ p: e.value.valuePrefix,
1221
+ v: t.absoluteValue,
1222
+ s: e.value.valueSuffix,
1223
+ r: e.value.dataLabelRoundingValue
1224
+ })), 5),
1225
+ b.value.includes(t.id) ? (a(), l("span", {
1226
+ key: 0,
1227
+ style: I(`font-size:${e.value.legendFontSize}px`)
1228
+ }, " ( - % ) ", 4)) : xe.value ? (a(), l("span", {
1229
+ key: 1,
1230
+ style: I(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1231
+ }, " ( - % ) ", 4)) : (a(), l("span", {
1232
+ key: 2,
1233
+ style: I(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1234
+ }, " (" + T(_(B)({
1235
+ v: t.value / $.value.total * 100,
1236
+ s: "%",
1237
+ r: e.value.dataLabelRoundingPercentage
1238
+ })) + ") ", 5))
1239
+ ], 64))
1240
+ ], 12, Wa))), 256)) : x("", !0),
1241
+ E.value === L.LINE ? (a(!0), l(g, { key: 1 }, A(d.value.legend, (t, i) => (a(), l("div", {
1242
+ class: "vue-ui-quick-chart-legend-item",
1243
+ onClick: (v) => {
1244
+ Ie(t.id, d.value.legend.length - 1), f("selectLegend", t);
1245
+ },
1246
+ style: I(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${b.value.includes(t.id) ? "0.5" : "1"}`)
1247
+ }, [
1248
+ e.value.useCustomLegend ? q(r.$slots, "legend", K(Le({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(g, { key: 1 }, [
1249
+ ve(me, {
1250
+ name: e.value.legendIcon,
1251
+ stroke: t.color,
1252
+ size: e.value.legendIconSize
1253
+ }, null, 8, ["name", "stroke", "size"]),
1254
+ S("span", {
1255
+ style: I(`font-size:${e.value.legendFontSize}px`)
1256
+ }, T(t.name), 5)
1257
+ ], 64))
1258
+ ], 12, ja))), 256)) : x("", !0),
1259
+ E.value === L.BAR ? (a(!0), l(g, { key: 2 }, A(s.value.legend, (t, i) => (a(), l("div", {
1260
+ class: "vue-ui-quick-chart-legend-item",
1261
+ onClick: (v) => {
1262
+ Ie(t.id, s.value.legend.length - 1), f("selectLegend", t);
1263
+ },
1264
+ style: I(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${b.value.includes(t.id) ? "0.5" : "1"}`)
1265
+ }, [
1266
+ e.value.useCustomLegend ? q(r.$slots, "legend", K(Le({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(g, { key: 1 }, [
1267
+ ve(me, {
1268
+ name: e.value.legendIcon,
1269
+ stroke: t.color,
1270
+ size: e.value.legendIconSize
1271
+ }, null, 8, ["name", "stroke", "size"]),
1272
+ S("span", {
1273
+ style: I(`font-size:${e.value.legendFontSize}px`)
1274
+ }, T(t.name), 5)
1275
+ ], 64))
1276
+ ], 12, Ga))), 256)) : x("", !0)
1277
+ ], 4)) : x("", !0),
1278
+ ve(ft, {
1279
+ show: fe.value.showTooltip && j.value,
1280
+ backgroundColor: e.value.backgroundColor,
1281
+ color: e.value.color,
1282
+ borderRadius: e.value.tooltipBorderRadius,
1283
+ borderColor: e.value.tooltipBorderColor,
1284
+ borderWidth: e.value.tooltipBorderWidth,
1285
+ fontSize: e.value.tooltipFontSize,
1286
+ backgroundOpacity: e.value.tooltipBackgroundOpacity,
1287
+ parent: W.value,
1288
+ content: H.value,
1289
+ isCustom: _(pe)(e.value.tooltipCustomFormat)
1290
+ }, {
1291
+ "tooltip-before": J(() => [
1292
+ q(r.$slots, "tooltip-before", K(ye({ ...ie.value })), void 0, !0)
1293
+ ]),
1294
+ "tooltip-after": J(() => [
1295
+ q(r.$slots, "tooltip-after", K(ye({ ...ie.value })), void 0, !0)
1296
+ ]),
1297
+ _: 3
1298
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"])
1299
+ ], 14, At)) : (a(), l("div", Ha, [
1300
+ ve(me, {
1301
+ name: "circleCancel",
1302
+ stroke: "red"
1303
+ }),
1304
+ Xa
1305
+ ]));
1306
+ }
1307
+ }, ul = /* @__PURE__ */ pt(Ya, [["__scopeId", "data-v-2223f1be"]]);
1308
+ export {
1309
+ ul as default
1310
+ };