vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,2030 +0,0 @@
1
- import { defineAsyncComponent as Pe, ref as L, computed as O, toRefs as La, watch as Me, shallowRef as Ut, onMounted as Ca, onBeforeUnmount as Vt, nextTick as ot, watchEffect as qt, openBlock as o, createElementBlock as n, normalizeStyle as N, normalizeClass as fe, createBlock as we, unref as v, withCtx as H, renderSlot as M, normalizeProps as Z, guardReactiveProps as Y, createCommentVNode as m, createSlots as _a, toDisplayString as U, createElementVNode as $, createVNode as Ae, Fragment as x, renderList as I, Teleport as za, mergeProps as nt } from "vue";
2
- import { j as $a, t as Ht, m as Ta, p as ee, n as Ea, a7 as Ia, q as Pa, o as Ma, s as it, a3 as Oa, D as Xe, X as Ra, a4 as Fa, a5 as ut, a6 as Oe, k as se, l as J, Z as Wt, c as Xt, K as ve, T as je, U as rt } from "./lib-GwPnJSrY.js";
3
- import { t as jt, u as Ba } from "./useResponsive-DfdjqQps.js";
4
- import { u as Na } from "./useConfig-CIgyKZ6R.js";
5
- import { u as Da, B as Ua } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as Va } from "./usePrinter-DiK5R6k-.js";
7
- import { u as qa } from "./useSvgExport-ByUukOZt.js";
8
- import { u as st } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as Ha } from "./useTimeLabels-C-A2uZKi.js";
10
- import { u as Wa } from "./useThemeCheck-D1ZYXUwG.js";
11
- import { u as Xa } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as ja } from "./useTimeLabelCollider-CIsgDrl9.js";
13
- import Ga from "./img-BYYzY_QU.js";
14
- import { S as Za } from "./Slicer-DZJA9IG-.js";
15
- import Ya from "./vue_ui_quick_chart-DMCjEjPe.js";
16
- import { B as Ja } from "./BaseLegendToggle-Y61xahI4.js";
17
- import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const w = {
19
- LINE: "LINE",
20
- BAR: "BAR",
21
- DONUT: "DONUT"
22
- }, Qa = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
23
- function el({ dataset: f, barLineSwitch: R = 6, debug: C = !0 }) {
24
- let V = null, G = null, ce = 0;
25
- if ((typeof f == "number" || typeof f == "string") && C && console.warn(`The provided dataset (${f}) is not sufficient to build a chart`), Ze(f) && (de(f) && (f.length < R ? V = w.BAR : V = w.LINE, G = f, ce = f.length), Ge(f))) {
26
- if (!al(f))
27
- return C && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
28
- const Ye = Object.keys(f[0]), Re = Object.values(f[0]);
29
- if (!Ye.some((X) => ll(X)))
30
- return C && 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;
31
- Gt(Re, (X) => typeof X == "number") && (V = w.DONUT, G = f), Gt(Re, (X) => Array.isArray(X) && de(X)) && (Zt(f) > R ? V = w.LINE : V = w.BAR, ce = Zt(f), G = f.map((X) => ({
32
- ...X,
33
- data: ol(X, (te) => de(te))
34
- }))), f = f.map((X) => Yt(X)), G = G.map((X) => Yt(X));
35
- }
36
- return {
37
- dataset: f,
38
- type: V,
39
- usableDataset: G,
40
- maxSeriesLength: ce
41
- };
42
- }
43
- function Jt(f) {
44
- return !f || Ze(f) && !f.length;
45
- }
46
- function Ze(f) {
47
- return Array.isArray(f);
48
- }
49
- function de(f) {
50
- if (!Ze(f) || Jt(f)) return !1;
51
- const R = f.map((C) => Number(C));
52
- return ![...new Set(R.flatMap((C) => typeof C == "number" && !isNaN(C)))].includes(!1);
53
- }
54
- function Ge(f) {
55
- return !Ze(f) || Jt(f) || !![...new Set(f.flatMap((C) => typeof C == "object" && !Array.isArray(C)))].includes(!1) ? !1 : !f.map((C) => Object.keys(C).length > 0).includes(!1);
56
- }
57
- function tl(f, R) {
58
- const C = Object.keys(f).sort(), V = Object.keys(R).sort();
59
- if (C.length !== V.length)
60
- return !1;
61
- for (let G = 0; G < C.length; G += 1) {
62
- const ce = C[G], Le = V[G];
63
- if (ce !== Le || typeof f[ce] != typeof R[Le])
64
- return !1;
65
- }
66
- return !0;
67
- }
68
- function al(f) {
69
- if (f.length <= 1) return !0;
70
- for (let R = 0; R < f.length; R += 1)
71
- for (let C = R + 1; C < f.length; C += 1)
72
- if (!tl(f[R], f[C]))
73
- return !1;
74
- return !0;
75
- }
76
- function ll(f) {
77
- return Qa.includes(f.toUpperCase());
78
- }
79
- function Gt(f, R) {
80
- let C = [];
81
- for (let V = 0; V < f.length; V += 1)
82
- C.push(R(f[V]));
83
- return C.includes(!0);
84
- }
85
- function Zt(f) {
86
- return Math.max(...[...f].flatMap((R) => Object.values(R).filter((C) => de(C)).map((C) => C.length)));
87
- }
88
- function ol(f, R) {
89
- return Object.values(f).filter((C) => R(C))[0];
90
- }
91
- function Yt(f) {
92
- const R = {};
93
- for (let C in f)
94
- f.hasOwnProperty(C) && (R[C.toUpperCase()] = f[C]);
95
- return R;
96
- }
97
- const nl = ["id"], il = ["id"], ul = ["xmlns", "viewBox"], rl = ["x", "y", "width", "height"], sl = ["x", "y", "width", "height"], vl = ["width", "height"], dl = ["id"], cl = ["id"], hl = ["id"], fl = ["flood-color"], ml = {
98
- key: 0,
99
- class: "donut-label-connectors"
100
- }, gl = ["d", "stroke", "stroke-width", "filter"], pl = ["cx", "cy", "r", "fill", "filter"], yl = { class: "donut" }, xl = ["d", "fill", "stroke", "stroke-width", "filter"], kl = ["d", "onMouseenter", "onMouseout", "onClick"], bl = {
101
- key: 1,
102
- class: "donut-labels quick-animation"
103
- }, Sl = ["cx", "cy", "fill", "stroke", "filter"], wl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Al = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Ll = {
104
- key: 2,
105
- class: "donut-hollow quick-animation"
106
- }, Cl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], zl = {
107
- key: 0,
108
- class: "line-grid"
109
- }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = {
110
- key: 1,
111
- class: "line-axis"
112
- }, Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x", "y", "font-size", "fill"], Rl = {
113
- key: 3,
114
- class: "periodLabels"
115
- }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bl = { key: 0 }, Nl = ["font-size", "text-anchor", "fill", "transform"], Dl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ul = { class: "plots" }, Vl = { class: "line-plot-series" }, ql = ["d", "stroke", "stroke-width"], Hl = ["d", "stroke", "stroke-width"], Wl = ["d", "stroke", "stroke-width"], Xl = ["d", "stroke", "stroke-width"], jl = ["cx", "cy", "fill", "stroke"], Gl = {
116
- key: 4,
117
- class: "dataLabels"
118
- }, Zl = ["font-size", "fill", "x", "y"], Yl = {
119
- key: 5,
120
- class: "tooltip-traps"
121
- }, Jl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Kl = {
122
- key: 0,
123
- class: "line-grid"
124
- }, Ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], eo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], to = {
125
- key: 1,
126
- class: "line-axis"
127
- }, ao = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], lo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], no = ["x", "y", "font-size", "fill"], io = {
128
- key: 3,
129
- class: "periodLabels"
130
- }, uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ro = { key: 0 }, so = ["font-size", "text-anchor", "fill", "transform"], vo = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], co = { class: "plots" }, ho = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], fo = ["to"], mo = ["from", "to"], go = {
131
- key: 4,
132
- class: "dataLabels"
133
- }, po = ["x", "y", "font-size", "fill"], yo = {
134
- key: 5,
135
- class: "tooltip-traps"
136
- }, xo = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], ko = {
137
- key: 6,
138
- class: "axis-labels"
139
- }, bo = ["font-size", "fill", "x", "y"], So = ["font-size", "fill", "x", "y"], wo = ["font-size", "fill", "transform"], Ao = ["font-size", "fill", "transform"], Lo = {
140
- key: 5,
141
- class: "vue-data-ui-watermark"
142
- }, Co = ["id"], _o = ["onClick"], zo = ["onClick"], $o = ["onClick"], To = {
143
- key: 1,
144
- class: "vue-ui-quick-chart-not-processable"
145
- }, Eo = {
146
- __name: "vue-ui-quick-chart",
147
- props: {
148
- config: {
149
- type: Object,
150
- default() {
151
- return {};
152
- }
153
- },
154
- dataset: {
155
- type: [Array, Object, String, Number],
156
- default() {
157
- return null;
158
- }
159
- }
160
- },
161
- emits: ["selectDatapoint", "selectLegend", "copyAlt"],
162
- setup(f, { expose: R, emit: C }) {
163
- const V = Pe(() => import("./BaseIcon-CNx8Tzl5.js")), G = Pe(() => import("./PackageVersion-DN9d0ME5.js")), ce = Pe(() => import("./PenAndPaper-DWV1FMIi.js")), Le = Pe(() => import("./Tooltip-DL3QgjZf.js")), vt = Pe(() => import("./UserOptions-CrLqEimB.js")), { vue_ui_quick_chart: Ye } = Na(), { isThemeValid: Re, warnInvalidTheme: X } = Wa(), te = f, ne = L(null), dt = L(null), ct = L(null), ht = L(null), K = L($a()), me = L(!1), Ce = L(null), ge = L(""), oe = L(null), ft = L(null), mt = L(null), k = L([]), gt = L(0), Fe = L(0), pt = L(!1), _e = L(null), ze = L(null), ie = L(null), Be = L(null), yt = L(null), xt = L(null);
164
- L("#FFFFFF");
165
- const e = L(et()), Je = O(() => !!e.value.debug), xe = O(() => e.value.useCursorPointer), Kt = O(() => Ht({
166
- userConfig: e.value.skeletonConfig ?? {}
167
- })), { loading: D, FINAL_DATASET: Qt, manualLoading: kt } = Da({
168
- ...La(te),
169
- FINAL_CONFIG: e,
170
- prepareConfig: et,
171
- callback: () => {
172
- Promise.resolve().then(async () => {
173
- await ot(), _.value === w.LINE && e.value.lineAnimated && !D.value && fa({
174
- pathDuration: 1e3,
175
- pointDuration: 1200,
176
- labelDuration: 1200
177
- });
178
- });
179
- },
180
- skeletonDataset: te.config?.skeletonDataset ?? [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
181
- skeletonConfig: Ht({
182
- defaultConfig: e.value,
183
- userConfig: Kt.value
184
- })
185
- }), { svgRef: Ke } = Xa({ config: { text: e.value.title } }), ea = O(() => e.value.showUserOptionsOnChartHover), bt = O(() => e.value.keepUserOptionsStateOnChartLeave), Ne = L(!e.value.showUserOptionsOnChartHover), Qe = L(!1);
186
- function St(a = !1) {
187
- Qe.value = a, ea.value && (Ne.value = a);
188
- }
189
- function et() {
190
- const a = st({
191
- userConfig: te.config,
192
- defaultConfig: Ye
193
- });
194
- let r = {};
195
- const t = a.theme;
196
- if (t)
197
- if (!Re.value(a))
198
- X(a), r = a;
199
- else {
200
- const l = st({
201
- userConfig: Ya[t] || te.config,
202
- defaultConfig: a
203
- });
204
- r = {
205
- ...st({
206
- userConfig: te.config,
207
- defaultConfig: l
208
- }),
209
- customPalette: a.customPalette.length ? a.customPalette : Ta[t] || ee
210
- };
211
- }
212
- else
213
- r = a;
214
- return r;
215
- }
216
- Me(() => te.config, (a) => {
217
- D.value || (e.value = et()), A.value.width = e.value.width, A.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, Lt(), ke.value.showTooltip = e.value.showTooltip;
218
- }, { deep: !0 }), Me(() => te.dataset, (a) => {
219
- b.value = Te.value, y.value.start = 0, y.value.end = b.value.maxSeriesLength, Fe.value += 1;
220
- }, { deep: !0 }), Me(() => te.dataset, (a) => {
221
- Array.isArray(a) && a.length > 0 && (kt.value = !1);
222
- }, { immediate: !0 });
223
- const $e = O(() => Ea(e.value.customPalette)), pe = C, Te = O(() => {
224
- const a = el({ debug: Je.value, dataset: Ia(Qt.value, [
225
- "serie",
226
- "series",
227
- "data",
228
- "value",
229
- "values",
230
- "num"
231
- ]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
232
- return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
233
- }), b = L(Te.value), ta = O(() => !!b.value), _ = O(() => b.value ? b.value.type : null);
234
- Me(() => _.value, (a) => {
235
- a || Pa({
236
- componentName: "VueUiQuickChart",
237
- type: "dataset",
238
- debug: Je.value
239
- });
240
- }, { immediate: !0 });
241
- const { isPrinting: De, isImaging: Ue, generatePdf: wt, generateImage: At } = Va({
242
- elementId: `${_.value}_${K.value}`,
243
- fileName: e.value.title || _.value,
244
- options: e.value.userOptionsPrint
245
- }), aa = O(() => e.value.showUserOptions && !e.value.title), A = L({
246
- width: e.value.width,
247
- height: e.value.height
248
- }), ke = L({
249
- showTooltip: e.value.showTooltip
250
- });
251
- Me(e, () => {
252
- ke.value = {
253
- showTooltip: e.value.showTooltip
254
- };
255
- }, { immediate: !0 });
256
- const he = Ut(null), be = Ut(null);
257
- Ca(async () => {
258
- pt.value = !0, Lt();
259
- });
260
- function Lt() {
261
- if (Ma(te.dataset) || (kt.value = e.value.loading), e.value.responsive) {
262
- const a = jt(() => {
263
- const { width: r, height: t } = Ba({
264
- chart: ne.value,
265
- title: e.value.title ? dt.value : null,
266
- legend: e.value.showLegend ? ct.value : null,
267
- slicer: [w.BAR, w.LINE].includes(_.value) && e.value.zoomXy && b.value.maxSeriesLength > 1 ? ht.value : null,
268
- source: ft.value,
269
- noTitle: mt.value
270
- });
271
- requestAnimationFrame(() => {
272
- A.value.width = r, A.value.height = t;
273
- });
274
- });
275
- he.value && (be.value && he.value.unobserve(be.value), he.value.disconnect()), he.value = new ResizeObserver(a), be.value = ne.value.parentNode, he.value.observe(be.value);
276
- }
277
- It();
278
- }
279
- Vt(() => {
280
- he.value && (be.value && he.value.unobserve(be.value), he.value.disconnect());
281
- });
282
- const la = O(() => {
283
- switch (_.value) {
284
- case w.LINE:
285
- return `0 0 ${A.value.width <= 0 ? 10 : A.value.width} ${A.value.height <= 0 ? 10 : A.value.height}`;
286
- case w.BAR:
287
- return `0 0 ${A.value.width <= 0 ? 10 : A.value.width} ${A.value.height <= 0 ? 10 : A.value.height}`;
288
- case w.DONUT:
289
- return `0 0 ${A.value.width <= 0 ? 10 : A.value.width} ${A.value.height <= 0 ? 10 : A.value.height}`;
290
- default:
291
- return `0 0 ${A.value.width <= 0 ? 10 : A.value.width} ${A.value.height <= 0 ? 10 : A.value.height}`;
292
- }
293
- });
294
- function Ct(a) {
295
- return [...a].map((r) => r.value).reduce((r, t) => r + t, 0);
296
- }
297
- function Ee(a) {
298
- return e.value.blurOnHover && ![null, void 0].includes(oe.value) && oe.value !== a ? `url(#blur_${K.value})` : "";
299
- }
300
- function oa() {
301
- k.value.length ? k.value = [] : _.value === w.DONUT ? T.value.legend.forEach((a) => {
302
- k.value.push(a.id);
303
- }) : _.value === w.LINE ? d.value.legend.forEach((a) => {
304
- k.value.push(a.id);
305
- }) : _.value === w.BAR && s.value.legend.forEach((a) => {
306
- k.value.push(a.id);
307
- });
308
- }
309
- function _t(a, r) {
310
- k.value.includes(a) ? k.value = k.value.filter((t) => t !== a) : k.value.length < r && k.value.push(a);
311
- }
312
- const zt = L(null), $t = L(null), Ve = L(!1);
313
- function na(a, r) {
314
- Ve.value = !0;
315
- let t = a.value;
316
- const l = Te.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
317
- if (k.value.includes(a.id)) {
318
- let u = function() {
319
- t > l ? (Ve.value = !1, cancelAnimationFrame($t.value), b.value = {
320
- ...b.value,
321
- dataset: b.value.dataset.map((p, S) => a.id === `donut_${S}` ? {
322
- ...p,
323
- value: l,
324
- VALUE: l
325
- } : p)
326
- }) : (t += l * 0.025, b.value = {
327
- ...b.value,
328
- dataset: b.value.dataset.map((p, S) => a.id === `donut_${S}` ? {
329
- ...p,
330
- value: t,
331
- VALUE: t
332
- } : p)
333
- }, $t.value = requestAnimationFrame(u));
334
- };
335
- k.value = k.value.filter((p) => p !== a.id), u();
336
- } else if (r.length > 1) {
337
- let u = function() {
338
- t < l / 100 ? (Ve.value = !1, cancelAnimationFrame(zt.value), k.value.push(a.id), b.value = {
339
- ...b.value,
340
- dataset: b.value.dataset.map((p, S) => a.id === `donut_${S}` ? {
341
- ...p,
342
- value: 0,
343
- VALUE: 0
344
- } : p)
345
- }) : (t /= 1.1, b.value = {
346
- ...b.value,
347
- dataset: b.value.dataset.map((p, S) => a.id === `donut_${S}` ? {
348
- ...p,
349
- value: t,
350
- VALUE: t
351
- } : p)
352
- }, zt.value = requestAnimationFrame(u));
353
- };
354
- u();
355
- }
356
- }
357
- const ue = L(null);
358
- function ia(a) {
359
- ue.value = a;
360
- }
361
- const Tt = O(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), T = O(() => {
362
- if (_.value !== w.DONUT) return null;
363
- const a = b.value.dataset.map((h, z) => ({
364
- ...h,
365
- value: h.VALUE || h.DATA || h.SERIE || h.VALUES || h.NUM || 0,
366
- name: h.NAME || h.DESCRIPTION || h.TITLE || h.LABEL || `Serie ${z}`,
367
- id: `donut_${z}`
368
- })).map((h, z) => ({
369
- ...h,
370
- color: h.COLOR ? it(h.COLOR) : $e.value[z + e.value.paletteStartIndex] || ee[z + e.value.paletteStartIndex] || ee[(z + e.value.paletteStartIndex) % ee.length],
371
- immutableValue: h.value
372
- }));
373
- function r(h, z) {
374
- return J({
375
- v: isNaN(h.value / Ct(z)) ? 0 : h.value / Ct(z) * 100,
376
- s: "%",
377
- r: e.value.dataLabelRoundingPercentage
378
- });
379
- }
380
- function t(h) {
381
- return h.proportion * 100 > e.value.donutHideLabelUnderPercentage;
382
- }
383
- function l(h, z) {
384
- const c = Te.value.dataset.find((g, E) => `donut_${E}` === h).VALUE;
385
- return Math.abs(String(Number(c.toFixed(0))).length - String(Number(z.toFixed(0))).length);
386
- }
387
- function u({ datapoint: h, seriesIndex: z }) {
388
- Ce.value = { datapoint: h, seriesIndex: z, config: e.value, dataset: a }, oe.value = h.id;
389
- const c = e.value.tooltipCustomFormat;
390
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: h, seriesIndex: z }), je(c) && rt(() => c({
391
- datapoint: h,
392
- seriesIndex: z,
393
- series: a,
394
- config: e.value
395
- })))
396
- ge.value = c({
397
- datapoint: h,
398
- seriesIndex: z,
399
- series: a,
400
- config: e.value
401
- });
402
- else {
403
- let i = "";
404
- i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${h.name}</div>`, i += `<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="${h.color}"/></svg>`, i += `<b>${se(
405
- e.value.formatter,
406
- h.value,
407
- J({
408
- p: e.value.valuePrefix,
409
- v: h.value,
410
- s: e.value.valueSuffix,
411
- r: e.value.dataLabelRoundingValue
412
- }),
413
- { datapoint: h, seriesIndex: z }
414
- )}</b>`, i += `<span>(${J({ v: h.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, ge.value = `<div>${i}</div>`;
415
- }
416
- me.value = !0;
417
- }
418
- function p({ datapoint: h, seriesIndex: z }) {
419
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: h, seriesIndex: z }), me.value = !1, oe.value = null, ue.value = null;
420
- }
421
- function S({ datapoint: h, seriesIndex: z }) {
422
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: h, seriesIndex: z }), pe("selectDatapoint", h);
423
- }
424
- const P = {
425
- centerX: A.value.width / 2,
426
- centerY: A.value.height / 2
427
- }, F = a.filter((h) => !k.value.includes(h.id)).map((h) => h.value || 0).reduce((h, z) => h + z, 0), ae = a.map((h, z) => ({
428
- ...h,
429
- proportion: (h.value || 0) / F,
430
- value: h.value || 0,
431
- absoluteValue: Te.value.dataset.find((c, i) => `donut_${i}` === h.id).VALUE,
432
- shape: "circle"
433
- })), re = A.value.width / 2, Q = A.value.height / 2, W = A.value.height * e.value.donutRadiusRatio;
434
- return {
435
- dataset: ae.filter((h) => !k.value.includes(h.id)),
436
- legend: ae,
437
- drawingArea: P,
438
- displayArcPercentage: r,
439
- isArcBigEnough: t,
440
- useTooltip: u,
441
- killTooltip: p,
442
- selectDatapoint: S,
443
- getSpaces: l,
444
- total: F,
445
- cx: re,
446
- cy: Q,
447
- radius: W,
448
- chart: Oa(
449
- { series: a.filter((h) => !k.value.includes(h.id)) },
450
- re,
451
- Q,
452
- W,
453
- W,
454
- 1.99999,
455
- 2,
456
- 1,
457
- 360,
458
- 105.25,
459
- A.value.height * Tt.value
460
- )
461
- };
462
- }), y = L({
463
- start: 0,
464
- end: b.value.maxSeriesLength
465
- });
466
- function ua() {
467
- It();
468
- }
469
- const Et = L(null);
470
- async function It() {
471
- await ot(), await ot();
472
- const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t = Et.value;
473
- (a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ra(r + 1))) : (y.value = {
474
- start: 0,
475
- end: b.value.maxSeriesLength
476
- }, Fe.value += 1);
477
- }
478
- function ra(a) {
479
- const r = b.value.maxSeriesLength;
480
- return a > r ? r : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
481
- }
482
- const sa = O(() => {
483
- if (!e.value.zoomMinimap.show || _.value === w.DONUT) return [];
484
- let a = [];
485
- de(b.value.dataset) && (a = b.value.dataset), Ge(b.value.dataset) && (a = b.value.dataset.map((u, p) => ({
486
- values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
487
- id: _.value === w.LINE ? `line_${p}` : `bar_${p}`
488
- })).filter((u) => !k.value.includes(u.id)));
489
- const r = de(a) ? a.length : Math.max(...a.map((u) => u.values.length));
490
- let t = [];
491
- if (de(a))
492
- t = a;
493
- else
494
- for (let u = 0; u < r; u += 1)
495
- t.push(a.map((p) => p.values[u] || 0).reduce((p, S) => (p || 0) + (S || 0), 0));
496
- const l = Math.min(...t);
497
- return t.map((u) => u + (l < 0 ? Math.abs(l) : 0));
498
- });
499
- function Pt() {
500
- let a = 0;
501
- return Be.value && (a = Array.from(Be.value.querySelectorAll("text")).reduce((l, u) => {
502
- const p = u.getComputedTextLength();
503
- return p > l ? p : l;
504
- }, 0)), a + 4;
505
- }
506
- const tt = L(0), va = jt((a) => {
507
- tt.value = a;
508
- }, 100);
509
- qt((a) => {
510
- const r = ie.value;
511
- if (!r) return;
512
- const t = new ResizeObserver((l) => {
513
- va(l[0].contentRect.height);
514
- });
515
- t.observe(r), a(() => t.disconnect());
516
- }), Vt(() => {
517
- tt.value = 0;
518
- });
519
- const qe = O(() => {
520
- let a = 0, r = 0;
521
- return ie.value && (r = tt.value), a + r;
522
- }), d = O(() => {
523
- if (_.value !== w.LINE) return null;
524
- const a = {
525
- height: A.value.height,
526
- width: A.value.width
527
- };
528
- let r = Pt();
529
- if (ie.value) {
530
- const c = ie.value.getBBox().x;
531
- c < 0 && (r += Math.abs(c));
532
- }
533
- const t = {
534
- left: r + e.value.xyPaddingLeft,
535
- top: e.value.xyPaddingTop,
536
- right: a.width - e.value.xyPaddingRight,
537
- bottom: a.height - e.value.xyPaddingBottom - qe.value,
538
- width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
539
- height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - qe.value)
540
- };
541
- let l = [];
542
- de(b.value.dataset) && (l = [
543
- {
544
- values: b.value.dataset.slice(y.value.start, y.value.end),
545
- absoluteValues: b.value.dataset,
546
- absoluteIndices: b.value.dataset.map((c, i) => i).slice(y.value.start, y.value.end),
547
- name: e.value.title,
548
- color: $e.value[e.value.paletteStartIndex] || ee[e.value.paletteStartIndex],
549
- id: "line_0"
550
- }
551
- ]), Ge(b.value.dataset) && (l = b.value.dataset.map((c, i) => ({
552
- ...c,
553
- values: c.VALUE || c.DATA || c.SERIE || c.SERIES || c.VALUES || c.NUM || 0,
554
- name: c.NAME || c.DESCRIPTION || c.TITLE || c.LABEL || `Serie ${i}`,
555
- id: `line_${i}`
556
- })).map((c, i) => ({
557
- ...c,
558
- color: c.COLOR ? it(c.COLOR) : $e.value[i + e.value.paletteStartIndex] || ee[i + e.value.paletteStartIndex] || ee[(i + e.value.paletteStartIndex) % ee.length],
559
- values: c.values.slice(y.value.start, y.value.end),
560
- absoluteValues: c.values,
561
- absoluteIndices: c.values.map((g, E) => E).slice(y.value.start, y.value.end)
562
- })));
563
- const u = {
564
- max: Math.max(...l.filter((c) => !k.value.includes(c.id)).flatMap((c) => c.values)),
565
- min: Math.min(...l.filter((c) => !k.value.includes(c.id)).flatMap((c) => c.values)),
566
- maxSeries: Math.max(...l.map((c) => c.values.length))
567
- }, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), S = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - S / (p.max + S) * t.height, F = t.width / u.maxSeries, ae = p.ticks.map((c) => ({
568
- y: t.bottom - t.height * ((c + S) / (p.max + S)),
569
- x: t.left - 8,
570
- value: c
571
- })), re = l.map((c, i) => ({
572
- ...c,
573
- shape: "circle",
574
- coordinates: c.values.map((g, E) => ({
575
- x: t.left + F * (E + 1) - F / 2,
576
- y: t.bottom - (g + S) / (p.max + S) * t.height,
577
- value: g
578
- }))
579
- })).map((c) => {
580
- let i = [];
581
- return c.coordinates.forEach((g) => {
582
- i.push(`${g.x},${g.y} `);
583
- }), {
584
- ...c,
585
- linePath: i.join(" ")
586
- };
587
- });
588
- function Q(c) {
589
- return l.map((i) => ({
590
- ...i,
591
- value: i.values[c],
592
- absoluteIndex: i.absoluteIndices[c]
593
- })).filter((i) => !k.value.includes(i.id));
594
- }
595
- function W(c) {
596
- oe.value = c, ue.value = c;
597
- const i = Q(c);
598
- Ce.value = { datapoint: i, seriesIndex: c, config: e.value, dataset: l };
599
- const g = e.value.tooltipCustomFormat;
600
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: c + y.value.start }), je(g) && rt(() => g({
601
- datapoint: i,
602
- seriesIndex: c,
603
- series: l,
604
- config: e.value
605
- })))
606
- ge.value = g({
607
- datapoint: i,
608
- seriesIndex: c,
609
- series: l,
610
- config: e.value
611
- });
612
- else {
613
- let E = "";
614
- j.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${j.value[i[0].absoluteIndex].text}</div>`), i.forEach((B, q) => {
615
- E += `
616
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
617
- <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${B.color}"/></svg>
618
- <span>${B.name}:</span>
619
- <b>${se(
620
- e.value.formatter,
621
- B.value,
622
- J({
623
- p: e.value.valuePrefix,
624
- v: B.value,
625
- s: e.value.valueSuffix,
626
- r: e.value.dataLabelRoundingValue
627
- }),
628
- { datapoint: B, seriesIndex: q }
629
- )}
630
- </b>
631
- </div>
632
- `;
633
- }), ge.value = E;
634
- }
635
- me.value = !0;
636
- }
637
- function h(c) {
638
- const i = Q(c);
639
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: c + y.value.start }), oe.value = null, ue.value = null, me.value = !1;
640
- }
641
- function z(c) {
642
- const i = Q(c);
643
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex: c + y.value.start }), pe("selectDatapoint", i);
644
- }
645
- return {
646
- absoluteZero: P,
647
- dataset: re.filter((c) => !k.value.includes(c.id)),
648
- legend: re,
649
- drawingArea: t,
650
- extremes: u,
651
- slotSize: F,
652
- yLabels: ae,
653
- useTooltip: W,
654
- killTooltip: h,
655
- selectDatapoint: z
656
- };
657
- }), s = O(() => {
658
- if (_.value !== w.BAR) return null;
659
- const a = {
660
- height: A.value.height,
661
- width: A.value.width
662
- };
663
- let r = Pt();
664
- if (ie.value) {
665
- const i = ie.value.getBBox().x;
666
- i < 0 && (r += Math.abs(i));
667
- }
668
- const t = {
669
- left: r + e.value.xyPaddingLeft,
670
- top: e.value.xyPaddingTop,
671
- right: a.width - e.value.xyPaddingRight,
672
- bottom: a.height - e.value.xyPaddingBottom - qe.value,
673
- width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
674
- height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - qe.value)
675
- };
676
- let l = [];
677
- de(b.value.dataset) && (l = [
678
- {
679
- values: b.value.dataset.slice(y.value.start, y.value.end),
680
- absoluteValues: b.value.dataset,
681
- absoluteIndices: b.value.dataset.map((i, g) => g).slice(y.value.start, y.value.end),
682
- name: e.value.title,
683
- color: $e.value[e.value.paletteStartIndex] || ee[e.value.paletteStartIndex],
684
- id: "bar_0"
685
- }
686
- ]), Ge(b.value.dataset) && (l = b.value.dataset.map((i, g) => ({
687
- ...i,
688
- values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
689
- name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
690
- id: `bar_${g}`
691
- })).map((i, g) => ({
692
- ...i,
693
- color: i.COLOR ? it(i.COLOR) : $e.value[g + e.value.paletteStartIndex] || ee[g + e.value.paletteStartIndex] || ee[(g + e.value.paletteStartIndex) % ee.length],
694
- values: i.values.slice(y.value.start, y.value.end),
695
- absoluteValues: i.values,
696
- absoluteIndices: i.values.map((E, B) => B).slice(y.value.start, y.value.end)
697
- })));
698
- const u = {
699
- max: Math.max(...l.filter((i) => !k.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !k.value.includes(i.id)).flatMap((i) => i.values)) ?? 1,
700
- min: Math.min(...l.filter((i) => !k.value.includes(i.id)).flatMap((i) => i.values)) ?? 0,
701
- maxSeries: Math.max(...l.filter((i) => !k.value.includes(i.id)).map((i) => i.values.length)) ?? 0
702
- }, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), S = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - S / (p.max + S) * t.height, F = t.width / u.maxSeries, ae = p.ticks.map((i) => ({
703
- y: t.bottom - t.height * ((i + S) / (p.max + S)),
704
- x: t.left - 8,
705
- value: i
706
- })), re = l.map((i, g) => ({
707
- ...i,
708
- shape: "square",
709
- coordinates: i.values.map((E, B) => {
710
- const q = (E + S) / (u.max + S) * t.height, le = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = S / (u.max + S) * t.height, Ie = F / l.filter((ye) => !k.value.includes(ye.id)).length - e.value.barGap / l.filter((ye) => !k.value.includes(ye.id)).length;
711
- return {
712
- x: t.left + F * B + Ie * g + e.value.barGap / 2,
713
- y: E > 0 ? t.bottom - q : P,
714
- height: E > 0 ? q - lt : le,
715
- value: E,
716
- width: Ie
717
- };
718
- })
719
- })), Q = l.filter((i) => !k.value.includes(i.id)).map((i, g) => ({
720
- ...i,
721
- coordinates: i.values.map((E, B) => {
722
- const q = (E + S) / (u.max + S) * t.height, le = Math.abs(E) / (u.max + S) * t.height, lt = S / (u.max + S) * t.height, Ie = F / l.filter((ye) => !k.value.includes(ye.id)).length - e.value.barGap / l.filter((ye) => !k.value.includes(ye.id)).length;
723
- return {
724
- x: t.left + F * B + Ie * g + e.value.barGap / 2,
725
- y: E > 0 ? t.bottom - q : P,
726
- height: E > 0 ? q - lt : le,
727
- value: E,
728
- width: Ie
729
- };
730
- })
731
- }));
732
- function W(i) {
733
- return l.map((g) => ({
734
- ...g,
735
- value: g.values[i],
736
- absoluteIndex: g.absoluteIndices[i]
737
- })).filter((g) => !k.value.includes(g.id));
738
- }
739
- function h(i) {
740
- oe.value = i, ue.value = i;
741
- const g = W(i);
742
- Ce.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
743
- const E = e.value.tooltipCustomFormat;
744
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) && rt(() => E({
745
- datapoint: g,
746
- seriesIndex: i,
747
- series: l,
748
- config: e.value
749
- })))
750
- ge.value = E({
751
- point: g,
752
- seriesIndex: i,
753
- series: l,
754
- config: e.value
755
- });
756
- else {
757
- let B = "";
758
- j.value[g[0].absoluteIndex] && (B += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${j.value[g[0].absoluteIndex].text}</div>`), g.forEach((q, le) => {
759
- B += `
760
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
761
- <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${q.color}"/></svg>
762
- <span>${q.name}:</span>
763
- <b>${se(
764
- e.value.formatter,
765
- q.value,
766
- J({
767
- p: e.value.valuePrefix,
768
- v: q.value,
769
- s: e.value.valueSuffix,
770
- r: e.value.dataLabelRoundingValue
771
- }),
772
- { datapoint: q, seriesIndex: le }
773
- )}
774
- </b>
775
- </div>
776
- `;
777
- }), ge.value = B;
778
- }
779
- me.value = !0;
780
- }
781
- function z(i) {
782
- const g = W(i);
783
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), me.value = !1, oe.value = null, ue.value = null;
784
- }
785
- function c(i) {
786
- const g = W(i);
787
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: g, seriesIndex: i + y.value.start }), pe("selectDatapoint", g);
788
- }
789
- return {
790
- absoluteZero: P,
791
- dataset: Q.filter((i) => !k.value.includes(i.id)),
792
- absoluteDataset: Q,
793
- legend: re,
794
- drawingArea: t,
795
- extremes: u,
796
- slotSize: F,
797
- yLabels: ae,
798
- useTooltip: h,
799
- killTooltip: z,
800
- selectDatapoint: c
801
- };
802
- });
803
- function da(a) {
804
- if (!a) return;
805
- const r = a.getTotalLength();
806
- a.style.transition = "none", a.style.strokeDasharray = `${r}`, a.style.strokeDashoffset = `${r}`;
807
- }
808
- function Mt(a, { fromOpacity: r = "0", fromScale: t = "0.85" } = {}) {
809
- a.forEach((l) => {
810
- l.style.animation = "none", l.style.transition = "none", l.style.opacity = r, l.style.transform = `scale(${t})`, l.style.transformBox = "fill-box", l.style.transformOrigin = "50% 50%";
811
- });
812
- }
813
- function ca(a) {
814
- return a.cx?.baseVal?.value ?? parseFloat(a.getAttribute("cx"));
815
- }
816
- function ha(a) {
817
- const r = a.getAttribute("x");
818
- if (r != null) return parseFloat(r);
819
- const t = a.getCTM?.();
820
- return t ? t.e : 0;
821
- }
822
- function Ot(a, r) {
823
- if (!a.length) return [];
824
- const t = a.map((P) => ({ el: P, x: r(P) })).filter((P) => Number.isFinite(P.x));
825
- t.sort((P, F) => P.x - F.x);
826
- let l = 1 / 0;
827
- for (let P = 1; P < t.length; P++) {
828
- const F = t[P].x - t[P - 1].x;
829
- F > 0 && F < l && (l = F);
830
- }
831
- const u = (l === 1 / 0 ? 1 : l) / 2, p = [];
832
- let S = { x: t[0].x, items: [t[0].el] };
833
- for (let P = 1; P < t.length; P++) {
834
- const { x: F, el: ae } = t[P];
835
- Math.abs(F - S.x) <= u ? S.items.push(ae) : (p.push(S), S = { x: F, items: [ae] });
836
- }
837
- return p.push(S), p;
838
- }
839
- function fa({
840
- pathDuration: a,
841
- pathEasing: r = "ease-in-out",
842
- pointDuration: t,
843
- labelDuration: l,
844
- pointDelay: u = 0,
845
- labelDelay: p = 0,
846
- pointStep: S = 0,
847
- labelStep: P = 0,
848
- intraSeriesStep: F = 0
849
- } = {}) {
850
- const ae = Array.isArray(_e?.value) ? _e.value : [_e?.value].filter(Boolean), re = Array.isArray(ze?.value) ? ze.value : [ze?.value].filter(Boolean), Q = [...ae, ...re].filter(Boolean), W = ne?.value || null, h = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-label")) : [];
851
- Q.forEach(da), Mt(h, { fromOpacity: "0", fromScale: "0.75" }), Mt(z, { fromOpacity: "0", fromScale: "0.98" }), h.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), W && W.offsetWidth;
852
- const c = h.length ? Ot(h, ca) : [], i = z.length ? Ot(z, ha) : [];
853
- requestAnimationFrame(() => {
854
- requestAnimationFrame(() => {
855
- Q.forEach((g) => {
856
- g.style.transition = `stroke-dashoffset ${a}ms ${r}`, g.style.strokeDashoffset = "0";
857
- }), c.forEach((g, E) => {
858
- g.items.forEach((B, q) => {
859
- const le = u + E * S + q * F;
860
- B.style.transition = `opacity ${t}ms ease-out ${le}ms, transform ${t}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
861
- });
862
- }), i.forEach((g, E) => {
863
- g.items.forEach((B, q) => {
864
- const le = p + E * P + q * F;
865
- B.style.transition = `opacity ${l}ms ease-out ${le}ms, transform ${l}ms ease-out ${le}ms`, B.style.opacity = "1", B.style.transform = "scale(1)";
866
- });
867
- });
868
- });
869
- });
870
- }
871
- const ma = O(() => {
872
- if (_.value === w.LINE)
873
- return d.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
874
- ...a,
875
- isVisible: !k.value.includes(a.id),
876
- type: "line",
877
- series: a.absoluteValues
878
- }));
879
- if (_.value === w.BAR)
880
- return s.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
881
- ...a,
882
- isVisible: !k.value.includes(a.id),
883
- type: "bar",
884
- series: a.absoluteValues
885
- }));
886
- }), j = L([]);
887
- let Rt = 0;
888
- qt(() => {
889
- const a = ++Rt;
890
- (async () => {
891
- const r = await Ha({
892
- values: e.value.xyPeriods,
893
- maxDatapoints: b.value.maxSeriesLength,
894
- formatter: e.value.datetimeFormatter,
895
- start: y.value.start,
896
- end: y.value.end
897
- });
898
- a === Rt && (j.value = r);
899
- })();
900
- });
901
- const Se = O(() => {
902
- const a = e.value.xyPeriodsModulo;
903
- return e.value.xyPeriods.length ? Math.min(a, [...new Set(j.value.map((r) => r.text))].length) : a;
904
- }), He = L(!1);
905
- function Ft(a) {
906
- He.value = a, gt.value += 1;
907
- }
908
- function Bt() {
909
- ke.value.showTooltip = !ke.value.showTooltip;
910
- }
911
- const We = L(!1);
912
- function at() {
913
- We.value = !We.value;
914
- }
915
- async function ga({ scale: a = 2 } = {}) {
916
- if (!ne.value) return;
917
- const { width: r, height: t } = ne.value.getBoundingClientRect(), l = r / t, { imageUri: u, base64: p } = await Ga({ domElement: ne.value, base64: !0, img: !0, scale: a });
918
- return {
919
- imageUri: u,
920
- base64: p,
921
- title: e.value.title,
922
- width: r,
923
- height: t,
924
- aspectRatio: l
925
- };
926
- }
927
- const pa = O(() => A.value.width), ya = O(() => A.value.height);
928
- ja({
929
- timeLabelsEls: ie,
930
- timeLabels: j,
931
- slicer: y,
932
- configRef: e,
933
- rotationPath: ["xyPeriodLabelsRotation"],
934
- autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
935
- isAutoSize: !1,
936
- rotation: e.value.xyPeriodLabelsAutoRotate.angle,
937
- height: ya.value,
938
- width: pa.value
939
- });
940
- const xa = O(() => e.value.backgroundColor), ka = O(() => _.value === w.DONUT ? T.value.legend : _.value === w.LINE ? d.value.legend : s.value.legend), ba = O(() => ({
941
- show: e.value.showLegend,
942
- bold: !1,
943
- backgroundColor: e.value.backgroundColor,
944
- color: e.value.color,
945
- fontSize: e.value.legendFontSize,
946
- position: e.value.legendPosition
947
- })), Sa = O(() => ({
948
- text: e.value.title,
949
- color: e.value.color,
950
- fontSize: e.value.titleFontSize,
951
- bold: e.value.titleBold,
952
- textAlign: e.value.titleTextAlign,
953
- subtitle: {
954
- text: ""
955
- }
956
- })), { exportSvg: wa, getSvg: Aa } = qa({
957
- svg: Ke,
958
- title: Sa,
959
- legend: ba,
960
- legendItems: ka,
961
- backgroundColor: xa
962
- });
963
- async function Nt({ isCb: a }) {
964
- if (a) {
965
- const { blob: r, url: t, text: l, dataUrl: u } = await Aa();
966
- e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: l, dataUrl: u });
967
- } else
968
- wa();
969
- }
970
- async function Dt() {
971
- if (pe("copyAlt", {
972
- config: e.value,
973
- dataset: {
974
- line: d.value,
975
- bar: s.value,
976
- donut: T.value
977
- }
978
- }), !e.value.userOptionsCallbacks.altCopy) {
979
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
980
- return;
981
- }
982
- await Promise.resolve(e.value.userOptionsCallbacks.altCopy({
983
- config: e.value,
984
- dataset: {
985
- line: d.value,
986
- bar: s.value,
987
- donut: T.value
988
- }
989
- }));
990
- }
991
- return R({
992
- getImage: ga,
993
- generatePdf: wt,
994
- generateImage: At,
995
- generateSvg: Nt,
996
- toggleTooltip: Bt,
997
- toggleAnnotator: at,
998
- toggleFullscreen: Ft,
999
- copyAlt: Dt
1000
- }), (a, r) => ta.value ? (o(), n("div", {
1001
- key: 0,
1002
- id: `${_.value}_${K.value}`,
1003
- ref_key: "quickChart",
1004
- ref: ne,
1005
- class: fe({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": He.value }),
1006
- style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
1007
- onMouseenter: r[2] || (r[2] = () => St(!0)),
1008
- onMouseleave: r[3] || (r[3] = () => St(!1))
1009
- }, [
1010
- e.value.userOptionsButtons.annotator ? (o(), we(v(ce), {
1011
- key: 0,
1012
- svgRef: v(Ke),
1013
- backgroundColor: e.value.backgroundColor,
1014
- color: e.value.color,
1015
- active: We.value,
1016
- isCursorPointer: xe.value,
1017
- onClose: at
1018
- }, {
1019
- "annotator-action-close": H(() => [
1020
- M(a.$slots, "annotator-action-close", {}, void 0, !0)
1021
- ]),
1022
- "annotator-action-color": H(({ color: t }) => [
1023
- M(a.$slots, "annotator-action-color", Z(Y({ color: t })), void 0, !0)
1024
- ]),
1025
- "annotator-action-draw": H(({ mode: t }) => [
1026
- M(a.$slots, "annotator-action-draw", Z(Y({ mode: t })), void 0, !0)
1027
- ]),
1028
- "annotator-action-undo": H(({ disabled: t }) => [
1029
- M(a.$slots, "annotator-action-undo", Z(Y({ disabled: t })), void 0, !0)
1030
- ]),
1031
- "annotator-action-redo": H(({ disabled: t }) => [
1032
- M(a.$slots, "annotator-action-redo", Z(Y({ disabled: t })), void 0, !0)
1033
- ]),
1034
- "annotator-action-delete": H(({ disabled: t }) => [
1035
- M(a.$slots, "annotator-action-delete", Z(Y({ disabled: t })), void 0, !0)
1036
- ]),
1037
- _: 3
1038
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : m("", !0),
1039
- aa.value ? (o(), n("div", {
1040
- key: 1,
1041
- ref_key: "noTitle",
1042
- ref: mt,
1043
- class: "vue-data-ui-no-title-space",
1044
- style: "height:36px; width: 100%;background:transparent"
1045
- }, null, 512)) : m("", !0),
1046
- e.value.showUserOptions && (bt.value || Ne.value) ? (o(), we(v(vt), {
1047
- ref: "details",
1048
- key: `user_option_${gt.value}`,
1049
- backgroundColor: e.value.backgroundColor,
1050
- color: e.value.color,
1051
- isPrinting: v(De),
1052
- isImaging: v(Ue),
1053
- uid: K.value,
1054
- hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
1055
- hasPdf: e.value.userOptionsButtons.pdf,
1056
- hasImg: e.value.userOptionsButtons.img,
1057
- hasSvg: e.value.userOptionsButtons.svg,
1058
- hasFullscreen: e.value.userOptionsButtons.fullscreen,
1059
- hasAltCopy: e.value.userOptionsButtons.altCopy,
1060
- hasXls: !1,
1061
- isTooltip: ke.value.showTooltip,
1062
- isFullscreen: He.value,
1063
- titles: { ...e.value.userOptionsButtonTitles },
1064
- chartElement: ne.value,
1065
- position: e.value.userOptionsPosition,
1066
- hasAnnotator: e.value.userOptionsButtons.annotator,
1067
- isAnnotation: We.value,
1068
- callbacks: e.value.userOptionsCallbacks,
1069
- printScale: e.value.userOptionsPrint.scale,
1070
- isCursorPointer: xe.value,
1071
- onToggleFullscreen: Ft,
1072
- onGeneratePdf: v(wt),
1073
- onGenerateImage: v(At),
1074
- onGenerateSvg: Nt,
1075
- onToggleTooltip: Bt,
1076
- onToggleAnnotator: at,
1077
- onCopyAlt: Dt,
1078
- style: N({
1079
- visibility: bt.value ? Ne.value ? "visible" : "hidden" : "visible"
1080
- })
1081
- }, _a({ _: 2 }, [
1082
- a.$slots.menuIcon ? {
1083
- name: "menuIcon",
1084
- fn: H(({ isOpen: t, color: l }) => [
1085
- M(a.$slots, "menuIcon", Z(Y({ isOpen: t, color: l })), void 0, !0)
1086
- ]),
1087
- key: "0"
1088
- } : void 0,
1089
- a.$slots.optionTooltip ? {
1090
- name: "optionTooltip",
1091
- fn: H(() => [
1092
- M(a.$slots, "optionTooltip", {}, void 0, !0)
1093
- ]),
1094
- key: "1"
1095
- } : void 0,
1096
- a.$slots.optionPdf ? {
1097
- name: "optionPdf",
1098
- fn: H(() => [
1099
- M(a.$slots, "optionPdf", {}, void 0, !0)
1100
- ]),
1101
- key: "2"
1102
- } : void 0,
1103
- a.$slots.optionImg ? {
1104
- name: "optionImg",
1105
- fn: H(() => [
1106
- M(a.$slots, "optionImg", {}, void 0, !0)
1107
- ]),
1108
- key: "3"
1109
- } : void 0,
1110
- a.$slots.optionSvg ? {
1111
- name: "optionSvg",
1112
- fn: H(() => [
1113
- M(a.$slots, "optionSvg", {}, void 0, !0)
1114
- ]),
1115
- key: "4"
1116
- } : void 0,
1117
- a.$slots.optionFullscreen ? {
1118
- name: "optionFullscreen",
1119
- fn: H(({ toggleFullscreen: t, isFullscreen: l }) => [
1120
- M(a.$slots, "optionFullscreen", Z(Y({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
1121
- ]),
1122
- key: "5"
1123
- } : void 0,
1124
- a.$slots.optionAnnotator ? {
1125
- name: "optionAnnotator",
1126
- fn: H(({ toggleAnnotator: t, isAnnotator: l }) => [
1127
- M(a.$slots, "optionAnnotator", Z(Y({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
1128
- ]),
1129
- key: "6"
1130
- } : void 0,
1131
- a.$slots.optionAltCopy ? {
1132
- name: "optionAltCopy",
1133
- fn: H(({ altCopy: t }) => [
1134
- M(a.$slots, "optionAltCopy", Z(Y({ altCopy: t })), void 0, !0)
1135
- ]),
1136
- key: "7"
1137
- } : void 0
1138
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
1139
- e.value.title ? (o(), n("div", {
1140
- key: 3,
1141
- ref_key: "quickChartTitle",
1142
- ref: dt,
1143
- class: "vue-ui-quick-chart-title",
1144
- style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
1145
- }, U(e.value.title), 5)) : m("", !0),
1146
- $("div", {
1147
- id: `legend-top-${K.value}`
1148
- }, null, 8, il),
1149
- _.value ? (o(), n("svg", {
1150
- key: 4,
1151
- ref_key: "svgRef",
1152
- ref: Ke,
1153
- xmlns: v(Ra),
1154
- viewBox: la.value,
1155
- style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
1156
- }, [
1157
- Ae(v(G)),
1158
- a.$slots["chart-background"] && _.value === w.BAR ? (o(), n("foreignObject", {
1159
- key: 0,
1160
- x: s.value.drawingArea.left,
1161
- y: s.value.drawingArea.top,
1162
- width: s.value.drawingArea.width,
1163
- height: s.value.drawingArea.height,
1164
- style: {
1165
- pointerEvents: "none"
1166
- }
1167
- }, [
1168
- M(a.$slots, "chart-background", {}, void 0, !0)
1169
- ], 8, rl)) : m("", !0),
1170
- a.$slots["chart-background"] && _.value === w.LINE ? (o(), n("foreignObject", {
1171
- key: 1,
1172
- x: d.value.drawingArea.left,
1173
- y: d.value.drawingArea.top,
1174
- width: d.value.drawingArea.width,
1175
- height: d.value.drawingArea.height,
1176
- style: {
1177
- pointerEvents: "none"
1178
- }
1179
- }, [
1180
- M(a.$slots, "chart-background", {}, void 0, !0)
1181
- ], 8, sl)) : m("", !0),
1182
- a.$slots["chart-background"] && _.value === w.DONUT ? (o(), n("foreignObject", {
1183
- key: 2,
1184
- x: 0,
1185
- y: 0,
1186
- width: A.value.width,
1187
- height: A.value.height,
1188
- style: {
1189
- pointerEvents: "none"
1190
- }
1191
- }, [
1192
- M(a.$slots, "chart-background", {}, void 0, !0)
1193
- ], 8, vl)) : m("", !0),
1194
- $("defs", null, [
1195
- $("filter", {
1196
- id: `blur_${K.value}`,
1197
- x: "-50%",
1198
- y: "-50%",
1199
- width: "200%",
1200
- height: "200%"
1201
- }, [
1202
- $("feGaussianBlur", {
1203
- in: "SourceGraphic",
1204
- stdDeviation: 2,
1205
- id: `blur_std_${K.value}`
1206
- }, null, 8, cl),
1207
- r[4] || (r[4] = $("feColorMatrix", {
1208
- type: "saturate",
1209
- values: "0"
1210
- }, null, -1))
1211
- ], 8, dl),
1212
- $("filter", {
1213
- id: `shadow_${K.value}`,
1214
- "color-interpolation-filters": "sRGB"
1215
- }, [
1216
- $("feDropShadow", {
1217
- dx: "0",
1218
- dy: "0",
1219
- stdDeviation: "10",
1220
- "flood-opacity": "0.5",
1221
- "flood-color": e.value.donutShadowColor
1222
- }, null, 8, fl)
1223
- ], 8, hl)
1224
- ]),
1225
- _.value === w.DONUT ? (o(), n(x, { key: 3 }, [
1226
- e.value.showDataLabels ? (o(), n("g", ml, [
1227
- (o(!0), n(x, null, I(T.value.chart, (t, l) => (o(), n(x, null, [
1228
- T.value.isArcBigEnough(t) ? (o(), n("path", {
1229
- key: 0,
1230
- d: v(Fa)(t, { x: A.value.width / 2, y: A.value.height / 2 }, 16, 16, !1, !1, A.value.height * Tt.value, 12, e.value.donutCurvedMarkers),
1231
- stroke: t.color,
1232
- "stroke-width": e.value.donutLabelMarkerStrokeWidth,
1233
- "stroke-linecap": "round",
1234
- "stroke-linejoin": "round",
1235
- fill: "none",
1236
- filter: Ee(t.id)
1237
- }, null, 8, gl)) : m("", !0)
1238
- ], 64))), 256))
1239
- ])) : m("", !0),
1240
- $("circle", {
1241
- cx: T.value.cx,
1242
- cy: T.value.cy,
1243
- r: T.value.radius,
1244
- fill: e.value.backgroundColor,
1245
- filter: e.value.donutUseShadow ? `url(#shadow_${K.value})` : ""
1246
- }, null, 8, pl),
1247
- $("g", yl, [
1248
- (o(!0), n(x, null, I(T.value.chart, (t, l) => (o(), n("path", {
1249
- d: t.arcSlice,
1250
- fill: t.color,
1251
- stroke: e.value.donutStroke || e.value.backgroundColor,
1252
- "stroke-width": e.value.donutStrokeWidth,
1253
- filter: Ee(t.id)
1254
- }, null, 8, xl))), 256)),
1255
- (o(!0), n(x, null, I(T.value.chart, (t, l) => (o(), n("path", {
1256
- d: t.arcSlice,
1257
- fill: "transparent",
1258
- onMouseenter: (u) => T.value.useTooltip({ datapoint: t, seriesIndex: l }),
1259
- onMouseout: (u) => T.value.killTooltip({ datapoint: t, seriesIndex: l }),
1260
- onClick: (u) => T.value.selectDatapoint({ datapoint: t, seriesIndex: l })
1261
- }, null, 40, kl))), 256))
1262
- ]),
1263
- e.value.showDataLabels ? (o(), n("g", bl, [
1264
- (o(!0), n(x, null, I(T.value.chart, (t, l) => (o(), n(x, null, [
1265
- T.value.isArcBigEnough(t) ? (o(), n("circle", {
1266
- key: 0,
1267
- cx: v(Oe)(t).x,
1268
- cy: v(ut)(t) - 3.7,
1269
- fill: t.color,
1270
- stroke: e.value.backgroundColor,
1271
- "stroke-width": 1,
1272
- r: 3,
1273
- filter: Ee(t.id)
1274
- }, null, 8, Sl)) : m("", !0),
1275
- T.value.isArcBigEnough(t) ? (o(), n("text", {
1276
- key: 1,
1277
- "text-anchor": v(Oe)(t, !0, 20).anchor,
1278
- x: v(Oe)(t, !0).x,
1279
- y: v(ut)(t),
1280
- fill: e.value.color,
1281
- "font-size": e.value.dataLabelFontSize,
1282
- filter: Ee(t.id)
1283
- }, U(T.value.displayArcPercentage(t, T.value.chart)) + " (" + U(v(se)(
1284
- e.value.formatter,
1285
- t.value,
1286
- v(J)({
1287
- p: e.value.valuePrefix,
1288
- v: t.value,
1289
- s: e.value.valueSuffix,
1290
- r: e.value.dataLabelRoundingValue
1291
- }),
1292
- { datapoint: t, seriesIndex: l }
1293
- )) + ") ", 9, wl)) : m("", !0),
1294
- T.value.isArcBigEnough(t, !0, 20) ? (o(), n("text", {
1295
- key: 2,
1296
- "text-anchor": v(Oe)(t).anchor,
1297
- x: v(Oe)(t, !0).x,
1298
- y: v(ut)(t) + e.value.dataLabelFontSize,
1299
- fill: e.value.color,
1300
- "font-size": e.value.dataLabelFontSize,
1301
- filter: Ee(t.id)
1302
- }, U(t.name), 9, Al)) : m("", !0)
1303
- ], 64))), 256))
1304
- ])) : m("", !0),
1305
- e.value.donutShowTotal ? (o(), n("g", Ll, [
1306
- $("text", {
1307
- "text-anchor": "middle",
1308
- x: T.value.drawingArea.centerX,
1309
- y: T.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
1310
- "font-size": e.value.donutTotalLabelFontSize,
1311
- fill: e.value.color
1312
- }, U(e.value.donutTotalLabelText), 9, Cl),
1313
- $("text", {
1314
- "text-anchor": "middle",
1315
- x: T.value.drawingArea.centerX,
1316
- y: T.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
1317
- "font-size": e.value.donutTotalLabelFontSize,
1318
- fill: e.value.color
1319
- }, U(v(J)({
1320
- p: e.value.valuePrefix,
1321
- v: T.value.total,
1322
- s: e.value.valueSuffix,
1323
- r: e.value.dataLabelRoundingValue
1324
- })), 9, _l)
1325
- ])) : m("", !0)
1326
- ], 64)) : m("", !0),
1327
- _.value === w.LINE ? (o(), n(x, { key: 4 }, [
1328
- e.value.xyShowGrid ? (o(), n("g", zl, [
1329
- (o(!0), n(x, null, I(d.value.yLabels, (t) => (o(), n(x, null, [
1330
- t.y <= d.value.drawingArea.bottom ? (o(), n("line", {
1331
- key: 0,
1332
- x1: d.value.drawingArea.left,
1333
- x2: d.value.drawingArea.right,
1334
- y1: t.y,
1335
- y2: t.y,
1336
- stroke: e.value.xyGridStroke,
1337
- "stroke-width": e.value.xyGridStrokeWidth,
1338
- "stroke-linecap": "round"
1339
- }, null, 8, $l)) : m("", !0)
1340
- ], 64))), 256)),
1341
- (o(!0), n(x, null, I(d.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
1342
- x1: d.value.drawingArea.left + d.value.slotSize * l,
1343
- x2: d.value.drawingArea.left + d.value.slotSize * l,
1344
- y1: d.value.drawingArea.top,
1345
- y2: d.value.drawingArea.bottom,
1346
- stroke: e.value.xyGridStroke,
1347
- "stroke-width": e.value.xyGridStrokeWidth,
1348
- "stroke-linecap": "round"
1349
- }, null, 8, Tl))), 256))
1350
- ])) : m("", !0),
1351
- e.value.xyShowAxis ? (o(), n("g", El, [
1352
- $("line", {
1353
- x1: d.value.drawingArea.left,
1354
- x2: d.value.drawingArea.left,
1355
- y1: d.value.drawingArea.top,
1356
- y2: d.value.drawingArea.bottom,
1357
- stroke: e.value.xyAxisStroke,
1358
- "stroke-width": e.value.xyAxisStrokeWidth,
1359
- "stroke-linecap": "round"
1360
- }, null, 8, Il),
1361
- $("line", {
1362
- x1: d.value.drawingArea.left,
1363
- x2: d.value.drawingArea.right,
1364
- y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
1365
- y2: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
1366
- stroke: e.value.xyAxisStroke,
1367
- "stroke-width": e.value.xyAxisStrokeWidth,
1368
- "stroke-linecap": "round"
1369
- }, null, 8, Pl)
1370
- ])) : m("", !0),
1371
- e.value.xyShowScale ? (o(), n("g", {
1372
- key: 2,
1373
- class: "yLabels",
1374
- ref_key: "scaleLabels",
1375
- ref: Be
1376
- }, [
1377
- (o(!0), n(x, null, I(d.value.yLabels, (t, l) => (o(), n(x, null, [
1378
- t.y <= d.value.drawingArea.bottom ? (o(), n("line", {
1379
- key: 0,
1380
- x1: t.x + 4,
1381
- x2: d.value.drawingArea.left,
1382
- y1: t.y,
1383
- y2: t.y,
1384
- stroke: e.value.xyAxisStroke,
1385
- "stroke-width": e.value.xyAxisStrokeWidth,
1386
- "stroke-linecap": "round"
1387
- }, null, 8, Ml)) : m("", !0),
1388
- t.y <= d.value.drawingArea.bottom ? (o(), n("text", {
1389
- key: 1,
1390
- x: t.x,
1391
- y: t.y + e.value.xyLabelsYFontSize / 3,
1392
- "text-anchor": "end",
1393
- "font-size": e.value.xyLabelsYFontSize,
1394
- fill: e.value.color
1395
- }, U(v(se)(
1396
- e.value.formatter,
1397
- t.value,
1398
- v(J)({
1399
- p: e.value.valuePrefix,
1400
- v: t.value,
1401
- s: e.value.valueSuffix,
1402
- r: e.value.dataLabelRoundingValue
1403
- }),
1404
- { datapoint: t, seriesIndex: l }
1405
- )), 9, Ol)) : m("", !0)
1406
- ], 64))), 256))
1407
- ], 512)) : m("", !0),
1408
- e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Rl, [
1409
- (o(!0), n(x, null, I(j.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1410
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / Se.value) === 0 || y.value.end - y.value.start <= Se.value ? (o(), n("line", {
1411
- key: 0,
1412
- x1: d.value.drawingArea.left + d.value.slotSize * (l + 1) - d.value.slotSize / 2,
1413
- x2: d.value.drawingArea.left + d.value.slotSize * (l + 1) - d.value.slotSize / 2,
1414
- y1: d.value.drawingArea.bottom,
1415
- y2: d.value.drawingArea.bottom + 4,
1416
- stroke: e.value.xyAxisStroke,
1417
- "stroke-width": e.value.xyAxisStrokeWidth,
1418
- "stroke-linecap": "round"
1419
- }, null, 8, Fl)) : m("", !0)
1420
- ], 64))), 256)),
1421
- $("g", {
1422
- ref_key: "timeLabelsEls",
1423
- ref: ie
1424
- }, [
1425
- (o(!0), n(x, null, I(j.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1426
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / Se.value) === 0 || y.value.end - y.value.start <= Se.value ? (o(), n("g", Bl, [
1427
- String(t).includes(`
1428
- `) ? (o(), n("text", {
1429
- key: 1,
1430
- class: "vue-data-ui-time-label",
1431
- "font-size": e.value.xyLabelsXFontSize,
1432
- "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1433
- fill: e.value.color,
1434
- transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (l + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1435
- innerHTML: v(Wt)({
1436
- content: String(t),
1437
- fontSize: e.value.xyLabelsXFontSize,
1438
- fill: e.value.color,
1439
- x: 0,
1440
- y: 0
1441
- })
1442
- }, null, 8, Dl)) : (o(), n("text", {
1443
- key: 0,
1444
- class: "vue-data-ui-time-label",
1445
- "font-size": e.value.xyLabelsXFontSize,
1446
- "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1447
- fill: e.value.color,
1448
- transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (l + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1449
- }, U(t), 9, Nl))
1450
- ])) : m("", !0)
1451
- ], 64))), 256))
1452
- ], 512)
1453
- ])) : m("", !0),
1454
- $("g", Ul, [
1455
- (o(!0), n(x, null, I(d.value.dataset, (t, l) => (o(), n("g", Vl, [
1456
- e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
1457
- $("path", {
1458
- ref_for: !0,
1459
- ref_key: "pathWrapper",
1460
- ref: _e,
1461
- d: `M ${v(Xt)(t.coordinates)}`,
1462
- stroke: e.value.backgroundColor,
1463
- "stroke-width": e.value.lineStrokeWidth + 1,
1464
- "stroke-linecap": "round",
1465
- fill: "none",
1466
- class: fe({ "quick-animation": !v(D), "vue-data-ui-line-animated": e.value.lineAnimated && !v(D) }),
1467
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1468
- }, null, 14, ql),
1469
- $("path", {
1470
- ref_for: !0,
1471
- ref_key: "pathTop",
1472
- ref: ze,
1473
- d: `M ${v(Xt)(t.coordinates)}`,
1474
- stroke: t.color,
1475
- "stroke-width": e.value.lineStrokeWidth,
1476
- "stroke-linecap": "round",
1477
- fill: "none",
1478
- class: fe({ "quick-animation": !v(D), "vue-data-ui-line-animated": e.value.lineAnimated && !v(D) }),
1479
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1480
- }, null, 14, Hl)
1481
- ], 64)) : (o(), n(x, { key: 1 }, [
1482
- $("path", {
1483
- ref_for: !0,
1484
- ref_key: "pathWrapper",
1485
- ref: _e,
1486
- d: `M ${t.linePath}`,
1487
- stroke: e.value.backgroundColor,
1488
- "stroke-width": e.value.lineStrokeWidth + 1,
1489
- "stroke-linecap": "round",
1490
- fill: "none",
1491
- class: fe({ "quick-animation": !v(D), "vue-data-ui-line-animated": e.value.lineAnimated && !v(D) }),
1492
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1493
- }, null, 14, Wl),
1494
- $("path", {
1495
- ref_for: !0,
1496
- ref_key: "pathTop",
1497
- ref: ze,
1498
- d: `M ${t.linePath}`,
1499
- stroke: t.color,
1500
- "stroke-width": e.value.lineStrokeWidth,
1501
- "stroke-linecap": "round",
1502
- fill: "none",
1503
- class: fe({ "quick-animation": !v(D), "vue-data-ui-line-animated": e.value.lineAnimated && !v(D) }),
1504
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1505
- }, null, 14, Xl)
1506
- ], 64)),
1507
- (o(!0), n(x, null, I(t.coordinates, (u, p) => (o(), n("circle", {
1508
- cx: u.x,
1509
- cy: v(ve)(u.y),
1510
- r: 3,
1511
- fill: t.color,
1512
- stroke: e.value.backgroundColor,
1513
- "stroke-width": "0.5",
1514
- class: fe({ "vue-ui-quick-chart-plot": !0, "quick-animation": !v(D) }),
1515
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1516
- }, null, 14, jl))), 256))
1517
- ]))), 256))
1518
- ]),
1519
- e.value.showDataLabels ? (o(), n("g", Gl, [
1520
- (o(!0), n(x, null, I(d.value.dataset, (t, l) => (o(), n(x, null, [
1521
- (o(!0), n(x, null, I(t.coordinates, (u, p) => (o(), n("text", {
1522
- "text-anchor": "middle",
1523
- "font-size": e.value.dataLabelFontSize,
1524
- fill: t.color,
1525
- x: u.x,
1526
- y: v(ve)(u.y) - e.value.dataLabelFontSize / 2,
1527
- class: fe({ "vue-ui-quick-chart-label": !0, "quick-animation": !v(D) }),
1528
- style: N({ transition: v(D) ? void 0 : "all 0.3s ease-in-out" })
1529
- }, U(v(se)(
1530
- e.value.formatter,
1531
- v(ve)(u.value),
1532
- v(J)({
1533
- p: e.value.valuePrefix,
1534
- v: v(ve)(u.value),
1535
- s: e.value.valueSuffix,
1536
- r: e.value.dataLabelRoundingValue
1537
- }),
1538
- { datapoint: u, seriesIndex: p }
1539
- )), 15, Zl))), 256))
1540
- ], 64))), 256))
1541
- ])) : m("", !0),
1542
- Qe.value ? (o(), n("g", Yl, [
1543
- (o(!0), n(x, null, I(d.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
1544
- x: d.value.drawingArea.left + l * d.value.slotSize,
1545
- y: d.value.drawingArea.top,
1546
- height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
1547
- width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
1548
- fill: [oe.value, ue.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
1549
- style: N(`opacity:${e.value.xyHighlighterOpacity}`),
1550
- onMouseenter: (u) => d.value.useTooltip(l),
1551
- onMouseleave: (u) => d.value.killTooltip(l),
1552
- onClick: (u) => d.value.selectDatapoint(l)
1553
- }, null, 44, Jl))), 256))
1554
- ])) : m("", !0)
1555
- ], 64)) : m("", !0),
1556
- _.value === w.BAR ? (o(), n(x, { key: 5 }, [
1557
- e.value.xyShowGrid ? (o(), n("g", Kl, [
1558
- (o(!0), n(x, null, I(s.value.yLabels, (t) => (o(), n(x, null, [
1559
- t.y <= s.value.drawingArea.bottom ? (o(), n("line", {
1560
- key: 0,
1561
- x1: s.value.drawingArea.left,
1562
- x2: s.value.drawingArea.right,
1563
- y1: t.y,
1564
- y2: t.y,
1565
- stroke: e.value.xyGridStroke,
1566
- "stroke-width": e.value.xyGridStrokeWidth,
1567
- "stroke-linecap": "round"
1568
- }, null, 8, Ql)) : m("", !0)
1569
- ], 64))), 256)),
1570
- k.value.length < s.value.legend.length ? (o(!0), n(x, { key: 0 }, I(s.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
1571
- x1: s.value.drawingArea.left + s.value.slotSize * l,
1572
- x2: s.value.drawingArea.left + s.value.slotSize * l,
1573
- y1: s.value.drawingArea.top,
1574
- y2: s.value.drawingArea.bottom,
1575
- stroke: e.value.xyGridStroke,
1576
- "stroke-width": e.value.xyGridStrokeWidth,
1577
- "stroke-linecap": "round"
1578
- }, null, 8, eo))), 256)) : m("", !0)
1579
- ])) : m("", !0),
1580
- e.value.xyShowAxis ? (o(), n("g", to, [
1581
- $("line", {
1582
- x1: s.value.drawingArea.left,
1583
- x2: s.value.drawingArea.left,
1584
- y1: s.value.drawingArea.top,
1585
- y2: s.value.drawingArea.bottom,
1586
- stroke: e.value.xyAxisStroke,
1587
- "stroke-width": e.value.xyAxisStrokeWidth,
1588
- "stroke-linecap": "round"
1589
- }, null, 8, ao),
1590
- $("line", {
1591
- x1: s.value.drawingArea.left,
1592
- x2: s.value.drawingArea.right,
1593
- y1: isNaN(s.value.absoluteZero) ? s.value.drawingArea.bottom : s.value.absoluteZero,
1594
- y2: isNaN(s.value.absoluteZero) ? s.value.drawingArea.bottom : s.value.absoluteZero,
1595
- stroke: e.value.xyAxisStroke,
1596
- "stroke-width": e.value.xyAxisStrokeWidth,
1597
- "stroke-linecap": "round"
1598
- }, null, 8, lo)
1599
- ])) : m("", !0),
1600
- e.value.xyShowScale ? (o(), n("g", {
1601
- key: 2,
1602
- class: "yLabels",
1603
- ref_key: "scaleLabels",
1604
- ref: Be
1605
- }, [
1606
- (o(!0), n(x, null, I(s.value.yLabels, (t, l) => (o(), n(x, null, [
1607
- t.y <= s.value.drawingArea.bottom ? (o(), n("line", {
1608
- key: 0,
1609
- x1: t.x + 4,
1610
- x2: s.value.drawingArea.left,
1611
- y1: t.y,
1612
- y2: t.y,
1613
- stroke: e.value.xyAxisStroke,
1614
- "stroke-width": e.value.xyAxisStrokeWidth,
1615
- "stroke-linecap": "round"
1616
- }, null, 8, oo)) : m("", !0),
1617
- t.y <= s.value.drawingArea.bottom ? (o(), n("text", {
1618
- key: 1,
1619
- x: t.x,
1620
- y: t.y + e.value.xyLabelsYFontSize / 3,
1621
- "text-anchor": "end",
1622
- "font-size": e.value.xyLabelsYFontSize,
1623
- fill: e.value.color
1624
- }, U(v(se)(
1625
- e.value.formatter,
1626
- t.value,
1627
- v(J)({
1628
- p: e.value.valuePrefix,
1629
- v: t.value,
1630
- s: e.value.valueSuffix,
1631
- r: e.value.dataLabelRoundingValue
1632
- }),
1633
- { datapoint: t, seriesIndex: l }
1634
- )), 9, no)) : m("", !0)
1635
- ], 64))), 256))
1636
- ], 512)) : m("", !0),
1637
- e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", io, [
1638
- (o(!0), n(x, null, I(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, l) => (o(), n("line", {
1639
- x1: s.value.drawingArea.left + s.value.slotSize * (l + 1) - s.value.slotSize / 2,
1640
- x2: s.value.drawingArea.left + s.value.slotSize * (l + 1) - s.value.slotSize / 2,
1641
- y1: s.value.drawingArea.bottom,
1642
- y2: s.value.drawingArea.bottom + 4,
1643
- stroke: e.value.xyAxisStroke,
1644
- "stroke-width": e.value.xyAxisStrokeWidth,
1645
- "stroke-linecap": "round"
1646
- }, null, 8, uo))), 256)),
1647
- $("g", {
1648
- ref_key: "timeLabelsEls",
1649
- ref: ie
1650
- }, [
1651
- (o(!0), n(x, null, I(j.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
1652
- !e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / Se.value) === 0 || y.value.end - y.value.start <= Se.value ? (o(), n("g", ro, [
1653
- String(t).includes(`
1654
- `) ? (o(), n("text", {
1655
- key: 1,
1656
- class: "vue-data-ui-time-label",
1657
- "font-size": e.value.xyLabelsXFontSize,
1658
- "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1659
- fill: e.value.color,
1660
- transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (l + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
1661
- innerHTML: v(Wt)({
1662
- content: String(t),
1663
- fontSize: e.value.xyLabelsXFontSize,
1664
- fill: e.value.color,
1665
- x: 0,
1666
- y: 0
1667
- })
1668
- }, null, 8, vo)) : (o(), n("text", {
1669
- key: 0,
1670
- class: "vue-data-ui-time-label",
1671
- "font-size": e.value.xyLabelsXFontSize,
1672
- "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1673
- fill: e.value.color,
1674
- transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (l + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
1675
- }, U(t), 9, so))
1676
- ])) : m("", !0)
1677
- ], 64))), 256))
1678
- ], 512)
1679
- ])) : m("", !0),
1680
- $("g", co, [
1681
- (o(!0), n(x, null, I(s.value.dataset, (t, l) => (o(), n(x, null, [
1682
- (o(!0), n(x, null, I(t.coordinates, (u, p) => (o(), n("rect", {
1683
- x: u.x,
1684
- width: u.width <= 0 ? 1e-5 : u.width,
1685
- height: v(ve)(u.height <= 0 ? 1e-5 : u.height),
1686
- y: v(ve)(u.y),
1687
- fill: t.color,
1688
- stroke: e.value.backgroundColor,
1689
- "stroke-width": e.value.barStrokeWidth,
1690
- "stroke-linecap": "round",
1691
- class: fe({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !v(D) })
1692
- }, [
1693
- e.value.barAnimated && u.value > 0 && !v(De) && !v(Ue) ? (o(), n("animate", {
1694
- key: 0,
1695
- attributeName: "height",
1696
- from: 0,
1697
- to: u.height,
1698
- dur: "0.5s"
1699
- }, null, 8, fo)) : m("", !0),
1700
- e.value.barAnimated && u.value > 0 && !v(De) && !v(Ue) ? (o(), n("animate", {
1701
- key: 1,
1702
- attributeName: "y",
1703
- from: s.value.absoluteZero,
1704
- to: s.value.absoluteZero - u.height,
1705
- dur: "0.5s"
1706
- }, null, 8, mo)) : m("", !0)
1707
- ], 10, ho))), 256))
1708
- ], 64))), 256))
1709
- ]),
1710
- e.value.showDataLabels ? (o(), n("g", go, [
1711
- (o(!0), n(x, null, I(s.value.dataset, (t, l) => (o(), n(x, null, [
1712
- (o(!0), n(x, null, I(t.coordinates, (u, p) => (o(), n("text", {
1713
- x: u.x + u.width / 2,
1714
- y: v(ve)(u.y) - e.value.dataLabelFontSize / 2,
1715
- "text-anchor": "middle",
1716
- "font-size": e.value.dataLabelFontSize,
1717
- fill: t.color,
1718
- class: "quick-animation"
1719
- }, U(v(se)(
1720
- e.value.formatter,
1721
- v(ve)(u.value),
1722
- v(J)({
1723
- p: e.value.valuePrefix,
1724
- v: v(ve)(u.value),
1725
- s: e.value.valueSuffix,
1726
- r: e.value.dataLabelRoundingValue
1727
- }),
1728
- { datapoint: u, seriesIndex: p }
1729
- )), 9, po))), 256))
1730
- ], 64))), 256))
1731
- ])) : m("", !0),
1732
- Qe.value && k.value.length < s.value.legend.length ? (o(), n("g", yo, [
1733
- (o(!0), n(x, null, I(s.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
1734
- x: s.value.drawingArea.left + l * s.value.slotSize,
1735
- y: s.value.drawingArea.top,
1736
- height: s.value.drawingArea.height <= 0 ? 1e-5 : s.value.drawingArea.height,
1737
- width: s.value.slotSize <= 0 ? 1e-5 : s.value.slotSize,
1738
- fill: [oe.value, ue.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
1739
- style: N(`opacity:${e.value.xyHighlighterOpacity}`),
1740
- onMouseenter: (u) => s.value.useTooltip(l),
1741
- onMouseleave: (u) => s.value.killTooltip(l),
1742
- onClick: (u) => s.value.selectDatapoint(l)
1743
- }, null, 44, xo))), 256))
1744
- ])) : m("", !0)
1745
- ], 64)) : m("", !0),
1746
- [w.LINE, w.BAR].includes(_.value) ? (o(), n("g", ko, [
1747
- e.value.xAxisLabel && _.value === w.LINE ? (o(), n("g", {
1748
- key: 0,
1749
- ref_key: "xAxisLabel",
1750
- ref: yt
1751
- }, [
1752
- $("text", {
1753
- "font-size": e.value.axisLabelsFontSize,
1754
- fill: e.value.color,
1755
- "text-anchor": "middle",
1756
- x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
1757
- y: A.value.height - e.value.axisLabelsFontSize / 3
1758
- }, U(e.value.xAxisLabel), 9, bo)
1759
- ], 512)) : m("", !0),
1760
- e.value.xAxisLabel && _.value === w.BAR ? (o(), n("g", {
1761
- key: 1,
1762
- ref_key: "xAxisLabel",
1763
- ref: yt
1764
- }, [
1765
- $("text", {
1766
- "font-size": e.value.axisLabelsFontSize,
1767
- fill: e.value.color,
1768
- "text-anchor": "middle",
1769
- x: s.value.drawingArea.left + s.value.drawingArea.width / 2,
1770
- y: A.value.height - e.value.axisLabelsFontSize / 3
1771
- }, U(e.value.xAxisLabel), 9, So)
1772
- ], 512)) : m("", !0),
1773
- e.value.yAxisLabel && _.value === w.LINE ? (o(), n("g", {
1774
- key: 2,
1775
- ref_key: "yAxisLabel",
1776
- ref: xt
1777
- }, [
1778
- $("text", {
1779
- "font-size": e.value.axisLabelsFontSize,
1780
- fill: e.value.color,
1781
- transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
1782
- "text-anchor": "middle"
1783
- }, U(e.value.yAxisLabel), 9, wo)
1784
- ], 512)) : m("", !0),
1785
- e.value.yAxisLabel && _.value === w.BAR ? (o(), n("g", {
1786
- key: 3,
1787
- ref_key: "yAxisLabel",
1788
- ref: xt
1789
- }, [
1790
- $("text", {
1791
- "font-size": e.value.axisLabelsFontSize,
1792
- fill: e.value.color,
1793
- transform: `translate(${e.value.axisLabelsFontSize}, ${s.value.drawingArea.top + s.value.drawingArea.height / 2}) rotate(-90)`,
1794
- "text-anchor": "middle"
1795
- }, U(e.value.yAxisLabel), 9, Ao)
1796
- ], 512)) : m("", !0)
1797
- ])) : m("", !0)
1798
- ], 12, ul)) : m("", !0),
1799
- a.$slots.watermark ? (o(), n("div", Lo, [
1800
- M(a.$slots, "watermark", Z(Y({ isPrinting: v(De) || v(Ue) })), void 0, !0)
1801
- ])) : m("", !0),
1802
- [w.BAR, w.LINE].includes(_.value) && e.value.zoomXy && b.value.maxSeriesLength > 1 ? (o(), n("div", {
1803
- key: `slicer_${Fe.value}`,
1804
- ref_key: "quickChartSlicer",
1805
- ref: ht
1806
- }, [
1807
- (o(), we(Za, {
1808
- ref_key: "slicerComponent",
1809
- ref: Et,
1810
- key: `slicer_${Fe.value}`,
1811
- background: e.value.zoomColor,
1812
- borderColor: e.value.backgroundColor,
1813
- fontSize: e.value.zoomFontSize,
1814
- useResetSlot: e.value.zoomUseResetSlot,
1815
- labelLeft: e.value.xyPeriods[y.value.start] && j.value[0] ? j.value[0].text : "",
1816
- labelRight: e.value.xyPeriods[y.value.end - 1] && j.value?.length ? j.value.at(-1).text : "",
1817
- textColor: e.value.color,
1818
- inputColor: e.value.zoomColor,
1819
- selectColor: e.value.zoomHighlightColor,
1820
- max: b.value.maxSeriesLength,
1821
- min: 0,
1822
- valueStart: y.value.start,
1823
- valueEnd: y.value.end,
1824
- smoothMinimap: e.value.zoomMinimap.smooth,
1825
- minimapSelectedColor: e.value.zoomMinimap.selectedColor,
1826
- minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
1827
- minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
1828
- minimapLineColor: e.value.zoomMinimap.lineColor,
1829
- minimap: sa.value,
1830
- minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
1831
- verticalHandles: e.value.zoomMinimap.verticalHandles,
1832
- minimapSelectedIndex: ue.value,
1833
- start: y.value.start,
1834
- "onUpdate:start": r[0] || (r[0] = (t) => y.value.start = t),
1835
- end: y.value.end,
1836
- "onUpdate:end": r[1] || (r[1] = (t) => y.value.end = t),
1837
- refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
1838
- refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : b.value.maxSeriesLength,
1839
- enableRangeHandles: e.value.zoomEnableRangeHandles,
1840
- enableSelectionDrag: e.value.zoomEnableSelectionDrag,
1841
- minimapCompact: e.value.zoomMinimap.compact,
1842
- minimapMerged: e.value.zoomMinimap.merged,
1843
- allMinimaps: ma.value,
1844
- minimapFrameColor: e.value.zoomMinimap.frameColor,
1845
- additionalMinimapHeight: e.value.zoomMinimap.additionalHeight,
1846
- handleType: e.value.zoomMinimap.handleType,
1847
- handleWidth: e.value.zoomMinimap.handleWidth,
1848
- handleBorderWidth: e.value.zoomMinimap.handleBorderWidth,
1849
- handleIconColor: e.value.zoomMinimap.handleIconColor,
1850
- handleBorderColor: e.value.zoomMinimap.handleBorderColor,
1851
- handleFill: e.value.zoomMinimap.handleFill,
1852
- focusOnDrag: e.value.zoomFocusOnDrag,
1853
- focusRangeRatio: e.value.zoomFocusRangeRatio,
1854
- maxWidth: e.value.zoomMaxWidth,
1855
- onReset: ua,
1856
- onTrapMouse: ia
1857
- }, {
1858
- "reset-action": H(({ reset: t }) => [
1859
- M(a.$slots, "reset-action", Z(Y({ reset: t })), void 0, !0)
1860
- ]),
1861
- _: 3
1862
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "minimapMerged", "allMinimaps", "minimapFrameColor", "additionalMinimapHeight", "handleType", "handleWidth", "handleBorderWidth", "handleIconColor", "handleBorderColor", "handleFill", "focusOnDrag", "focusRangeRatio", "maxWidth"]))
1863
- ])) : m("", !0),
1864
- $("div", {
1865
- id: `legend-bottom-${K.value}`
1866
- }, null, 8, Co),
1867
- pt.value ? (o(), we(za, {
1868
- key: 7,
1869
- to: e.value.legendPosition === "top" ? `#legend-top-${K.value}` : `#legend-bottom-${K.value}`
1870
- }, [
1871
- e.value.showLegend ? (o(), n("div", {
1872
- key: 0,
1873
- ref_key: "quickChartLegend",
1874
- ref: ct,
1875
- class: "vue-ui-quick-chart-legend",
1876
- style: N(`background:transparent;color:${e.value.color}`)
1877
- }, [
1878
- (T.value?.legend?.length > 2 || d.value?.legend?.length > 2 || s.value?.legend?.length > 2) && e.value.showLegendSelectAllToggle && !v(D) ? (o(), we(Ja, {
1879
- key: 0,
1880
- backgroundColor: e.value.legendSelectAllToggleBackgroundColor,
1881
- color: e.value.legendSelectAllToggleColor,
1882
- fontSize: e.value.legendFontSize,
1883
- checked: k.value.length > 0,
1884
- isCursorPointer: xe.value,
1885
- onToggle: oa
1886
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : m("", !0),
1887
- _.value === w.DONUT ? (o(!0), n(x, { key: 1 }, I(T.value.legend, (t, l) => (o(), n("div", {
1888
- class: "vue-ui-quick-chart-legend-item",
1889
- onClick: (u) => {
1890
- na(t, T.value.dataset), pe("selectLegend", t);
1891
- },
1892
- style: N(`cursor: ${T.value.legend.length > 1 && xe.value ? "pointer" : "default"}; opacity:${k.value.includes(t.id) ? "0.5" : "1"}`)
1893
- }, [
1894
- e.value.useCustomLegend ? M(a.$slots, "legend", nt({
1895
- key: 0,
1896
- ref_for: !0
1897
- }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1898
- Ae(v(V), {
1899
- name: e.value.legendIcon,
1900
- stroke: t.color,
1901
- size: e.value.legendIconSize
1902
- }, null, 8, ["name", "stroke", "size"]),
1903
- $("span", {
1904
- style: N(`font-size:${e.value.legendFontSize}px`)
1905
- }, U(t.name), 5),
1906
- $("span", {
1907
- style: N(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1908
- }, U(k.value.includes(t.id) ? "-" : v(se)(
1909
- e.value.formatter,
1910
- t.absoluteValue,
1911
- v(J)({
1912
- p: e.value.valuePrefix,
1913
- v: t.absoluteValue,
1914
- s: e.value.valueSuffix,
1915
- r: e.value.dataLabelRoundingValue
1916
- }),
1917
- { datapoint: t, seriesIndex: l }
1918
- )), 5),
1919
- k.value.includes(t.id) ? (o(), n("span", {
1920
- key: 0,
1921
- style: N(`font-size:${e.value.legendFontSize}px`)
1922
- }, " ( - % ) ", 4)) : Ve.value ? (o(), n("span", {
1923
- key: 1,
1924
- style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1925
- }, " ( - % ) ", 4)) : (o(), n("span", {
1926
- key: 2,
1927
- style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1928
- }, " (" + U(v(J)({
1929
- v: t.value / T.value.total * 100,
1930
- s: "%",
1931
- r: e.value.dataLabelRoundingPercentage
1932
- })) + ") ", 5))
1933
- ], 64))
1934
- ], 12, _o))), 256)) : m("", !0),
1935
- _.value === w.LINE ? (o(!0), n(x, { key: 2 }, I(d.value.legend, (t, l) => (o(), n("div", {
1936
- class: "vue-ui-quick-chart-legend-item",
1937
- onClick: (u) => {
1938
- _t(t.id, d.value.legend.length - 1), pe("selectLegend", t);
1939
- },
1940
- style: N(`cursor: ${d.value.legend.length > 1 && xe.value ? "pointer" : "default"}; opacity:${k.value.includes(t.id) ? "0.5" : "1"}`)
1941
- }, [
1942
- e.value.useCustomLegend ? M(a.$slots, "legend", nt({
1943
- key: 0,
1944
- ref_for: !0
1945
- }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1946
- Ae(v(V), {
1947
- name: e.value.legendIcon,
1948
- stroke: t.color,
1949
- size: e.value.legendIconSize
1950
- }, null, 8, ["name", "stroke", "size"]),
1951
- $("span", {
1952
- style: N(`font-size:${e.value.legendFontSize}px`)
1953
- }, U(t.name), 5)
1954
- ], 64))
1955
- ], 12, zo))), 256)) : m("", !0),
1956
- _.value === w.BAR ? (o(!0), n(x, { key: 3 }, I(s.value.legend, (t, l) => (o(), n("div", {
1957
- class: "vue-ui-quick-chart-legend-item",
1958
- onClick: (u) => {
1959
- _t(t.id, s.value.legend.length - 1), pe("selectLegend", t);
1960
- },
1961
- style: N(`cursor: ${s.value.legend.length > 1 && xe.value ? "pointer" : "default"}; opacity:${k.value.includes(t.id) ? "0.5" : "1"}`)
1962
- }, [
1963
- e.value.useCustomLegend ? M(a.$slots, "legend", nt({
1964
- key: 0,
1965
- ref_for: !0
1966
- }, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
1967
- Ae(v(V), {
1968
- name: e.value.legendIcon,
1969
- stroke: t.color,
1970
- size: e.value.legendIconSize
1971
- }, null, 8, ["name", "stroke", "size"]),
1972
- $("span", {
1973
- style: N(`font-size:${e.value.legendFontSize}px`)
1974
- }, U(t.name), 5)
1975
- ], 64))
1976
- ], 12, $o))), 256)) : m("", !0)
1977
- ], 4)) : m("", !0)
1978
- ], 8, ["to"])) : m("", !0),
1979
- a.$slots.source ? (o(), n("div", {
1980
- key: 8,
1981
- ref_key: "source",
1982
- ref: ft,
1983
- dir: "auto"
1984
- }, [
1985
- M(a.$slots, "source", {}, void 0, !0)
1986
- ], 512)) : m("", !0),
1987
- Ae(v(Le), {
1988
- teleportTo: e.value.tooltipTeleportTo,
1989
- show: ke.value.showTooltip && me.value,
1990
- backgroundColor: e.value.backgroundColor,
1991
- color: e.value.color,
1992
- borderRadius: e.value.tooltipBorderRadius,
1993
- borderColor: e.value.tooltipBorderColor,
1994
- borderWidth: e.value.tooltipBorderWidth,
1995
- fontSize: e.value.tooltipFontSize,
1996
- backgroundOpacity: e.value.tooltipBackgroundOpacity,
1997
- position: e.value.tooltipPosition,
1998
- offsetY: e.value.tooltipOffsetY,
1999
- parent: ne.value,
2000
- content: ge.value,
2001
- isFullscreen: He.value,
2002
- isCustom: v(je)(e.value.tooltipCustomFormat),
2003
- smooth: e.value.tooltipSmooth,
2004
- smoothForce: e.value.tooltipSmoothForce,
2005
- smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
2006
- backdropFilter: e.value.tooltipBackdropFilter
2007
- }, {
2008
- "tooltip-before": H(() => [
2009
- M(a.$slots, "tooltip-before", Z(Y({ ...Ce.value })), void 0, !0)
2010
- ]),
2011
- "tooltip-after": H(() => [
2012
- M(a.$slots, "tooltip-after", Z(Y({ ...Ce.value })), void 0, !0)
2013
- ]),
2014
- _: 3
2015
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
2016
- M(a.$slots, "skeleton", {}, () => [
2017
- v(D) ? (o(), we(Ua, { key: 0 })) : m("", !0)
2018
- ], !0)
2019
- ], 46, nl)) : (o(), n("div", To, [
2020
- Ae(v(V), {
2021
- name: "circleCancel",
2022
- stroke: "red"
2023
- }),
2024
- r[5] || (r[5] = $("span", null, "Dataset is not processable", -1))
2025
- ]));
2026
- }
2027
- }, Zo = /* @__PURE__ */ Ka(Eo, [["__scopeId", "data-v-4baff879"]]);
2028
- export {
2029
- Zo as default
2030
- };