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,1292 +0,0 @@
1
- import { defineAsyncComponent as F, ref as v, shallowRef as Ge, computed as h, onMounted as qt, onBeforeUnmount as Zt, toRefs as Jt, watch as ae, watchEffect as Kt, openBlock as s, createElementBlock as n, unref as i, normalizeStyle as $, normalizeClass as X, renderSlot as d, createBlock as N, withCtx as y, normalizeProps as A, guardReactiveProps as S, createCommentVNode as f, createElementVNode as L, createSlots as qe, createVNode as ke, Fragment as x, renderList as b, toDisplayString as M, Teleport as Qt, resolveDynamicComponent as el, mergeProps as tl, createTextVNode as Ze, nextTick as Je } from "vue";
2
- import { j as Ke, o as Qe, q as et, r as ll, t as tt, n as al, p as oe, s as ol, D as lt, k as H, l as E, X as sl, x as nl, w as rl, Z as ul, W as il, a2 as B, m as cl, a0 as vl, a1 as hl, T as dl } from "./lib-GwPnJSrY.js";
3
- import { t as at, u as yl } from "./useResponsive-DfdjqQps.js";
4
- import { u as fl } from "./useConfig-CIgyKZ6R.js";
5
- import { u as pl, B as gl } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as ml } from "./usePrinter-DiK5R6k-.js";
7
- import { u as xl } from "./useSvgExport-ByUukOZt.js";
8
- import { u as Ce } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as bl } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as kl } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Cl } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as wl } from "./useTimeLabelCollider-CIsgDrl9.js";
13
- import Al from "./img-BYYzY_QU.js";
14
- import Sl from "./Title-BfyrP-jp.js";
15
- import Tl from "./vue_ui_history_plot-BCKk1CrQ.js";
16
- import $l from "./Legend-1LMMsPxL.js";
17
- import { B as Ll } from "./BaseLegendToggle-Y61xahI4.js";
18
- import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
19
- const zl = ["id"], Pl = ["id"], Ol = ["xmlns", "viewBox"], Il = ["x", "y", "width", "height"], Nl = { key: 1 }, Ml = ["id"], Dl = ["stop-color"], Fl = ["stop-color"], Xl = ["stop-color"], Bl = { key: 2 }, Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yl = { key: 3 }, Hl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], El = ["x", "y", "fill", "font-size"], Wl = ["transform", "font-size", "fill", "font-weight"], Ul = { key: 6 }, jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vl = { key: 7 }, Gl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], ql = ["transform", "fill", "font-size", "text-anchor"], Zl = ["x", "y", "font-size", "fill", "font-weight"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ql = ["d", "stroke", "stroke-width"], ea = ["d", "stroke", "stroke-width"], ta = ["cx", "cy", "fill", "r"], la = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], aa = { key: 1 }, oa = ["x", "y", "font-size", "fill", "font-weight"], sa = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], na = { key: 2 }, ra = ["x", "y", "font-size", "font-weight", "fill"], ua = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ia = {
20
- key: 4,
21
- class: "vue-data-ui-watermark"
22
- }, ca = ["id"], va = ["onClick"], ha = ["innerHTML"], da = {
23
- __name: "vue-ui-history-plot",
24
- props: {
25
- config: {
26
- type: Object,
27
- default() {
28
- return {};
29
- }
30
- },
31
- dataset: {
32
- type: Array,
33
- default() {
34
- return [];
35
- }
36
- }
37
- },
38
- emits: ["selectLegend", "selectDatapoint", "copyAlt"],
39
- setup(ot, { expose: st, emit: nt }) {
40
- const rt = F(() => import("./Tooltip-DL3QgjZf.js")), ut = F(() => import("./BaseIcon-CNx8Tzl5.js")), it = F(() => import("./vue-ui-accordion-BGHTqIBt.js")), ct = F(() => import("./DataTable-Bo1pmAqG.js")), vt = F(() => import("./PenAndPaper-DWV1FMIi.js")), ht = F(() => import("./UserOptions-CrLqEimB.js")), dt = F(() => import("./PackageVersion-DN9d0ME5.js")), yt = F(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_history_plot: ft } = fl(), { isThemeValid: pt, warnInvalidTheme: gt } = bl(), C = ot, z = v(null), we = v(null), Ae = v(0), Se = v(null), Te = v(0), $e = v(0), Le = v(0), D = Ge(null), R = Ge(null), _e = v(null), P = v(Ke()), se = v(!1), ne = v(""), p = v([]), W = v(!1), T = v(null), U = v(!1), ze = v(null), Pe = v(!1), j = v(null), re = v(null), q = v(!1), Z = v(!1), ue = v(null), ie = v(null), J = v(null), ce = v(null), K = h({
41
- get: () => !!C.dataset && C.dataset.length,
42
- set: (t) => t
43
- }), ve = nt;
44
- qt(() => {
45
- Pe.value = !0, Ie();
46
- });
47
- const Oe = h(() => !!e.value.debug);
48
- function Ie() {
49
- if (Qe(C.dataset) ? (et({
50
- componentName: "VueUiHistoryPlot",
51
- type: "dataset",
52
- debug: Oe.value
53
- }), de.value = !0) : C.dataset.forEach((t, a) => {
54
- ll({
55
- datasetObject: t,
56
- requiredAttributes: ["name", "values"]
57
- }).forEach((l) => {
58
- K.value = !1, et({
59
- componentName: "VueUiHistoryPlot",
60
- type: "datasetSerieAttribute",
61
- property: l,
62
- index: a,
63
- debug: Oe.value
64
- });
65
- });
66
- }), Qe(C.dataset) || (de.value = e.value.loading), e.value.responsive) {
67
- const t = at(() => {
68
- const { width: a, height: l } = yl({
69
- chart: z.value,
70
- title: e.value.style.chart.title.text ? we.value : null,
71
- noTitle: _e.value,
72
- legend: e.value.style.chart.legend.show ? Se.value : null,
73
- source: ze.value
74
- });
75
- requestAnimationFrame(() => {
76
- g.value.width = a, g.value.height = l, e.value.responsiveProportionalSizing ? (r.value.plots = B({
77
- relator: Math.min(a, l),
78
- adjuster: 600,
79
- source: e.value.style.chart.plots.radius,
80
- threshold: 3,
81
- fallback: 3
82
- }), r.value.indexLabels = B({
83
- relator: Math.min(a, l),
84
- adjuster: 600,
85
- source: e.value.style.chart.plots.indexLabels.fontSize,
86
- threshold: 6,
87
- fallback: 6
88
- }), r.value.labels = B({
89
- relator: Math.min(a, l),
90
- adjuster: 600,
91
- source: e.value.style.chart.plots.labels.fontSize,
92
- threshold: 6,
93
- fallback: 6
94
- }), r.value.xAxisLabels = B({
95
- relator: Math.min(a, l),
96
- adjuster: 600,
97
- source: e.value.style.chart.axes.x.labels.fontSize,
98
- threshold: 6,
99
- fallback: 6
100
- }), r.value.xAxisName = B({
101
- relator: Math.min(a, l),
102
- adjuster: 600,
103
- source: e.value.style.chart.axes.x.name.fontSize,
104
- threshold: 6,
105
- fallback: 6
106
- }), r.value.yAxisLabels = B({
107
- relator: Math.min(a, l),
108
- adjuster: 600,
109
- source: e.value.style.chart.axes.y.labels.fontSize,
110
- threshold: 6,
111
- fallback: 6
112
- }), r.value.yAxisName = B({
113
- relator: Math.min(a, l),
114
- adjuster: 600,
115
- source: e.value.style.chart.axes.y.name.fontSize,
116
- threshold: 6,
117
- fallback: 6
118
- })) : (r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
119
- });
120
- });
121
- D.value && (R.value && D.value.unobserve(R.value), D.value.disconnect()), D.value = new ResizeObserver(t), R.value = z.value.parentNode, D.value.observe(R.value);
122
- }
123
- }
124
- Zt(() => {
125
- D.value && (R.value && D.value.unobserve(R.value), D.value.disconnect());
126
- });
127
- function he() {
128
- const t = Ce({
129
- userConfig: C.config,
130
- defaultConfig: ft
131
- });
132
- let a = {};
133
- const l = t.theme;
134
- if (l)
135
- if (!pt.value(t))
136
- gt(t), a = t;
137
- else {
138
- const u = Ce({
139
- userConfig: Tl[l] || C.config,
140
- defaultConfig: t
141
- });
142
- a = {
143
- ...Ce({
144
- userConfig: C.config,
145
- defaultConfig: u
146
- }),
147
- customPalette: t.customPalette.length ? t.customPalette : cl[l] || oe
148
- };
149
- }
150
- else
151
- a = t;
152
- return a;
153
- }
154
- const e = v(he()), Y = h(() => e.value.userOptions.useCursorPointer), mt = h(() => tt({
155
- defaultConfig: {
156
- userOptions: { show: !1 },
157
- table: { show: !1 },
158
- style: {
159
- chart: {
160
- backgroundColor: "#99999930",
161
- axes: {
162
- x: {
163
- scaleMin: 0,
164
- scaleMax: 10,
165
- labels: { show: !1 },
166
- name: { text: "" }
167
- },
168
- y: {
169
- scaleMin: 0,
170
- scaleMax: 10,
171
- labels: { show: !1 },
172
- name: { text: "" }
173
- }
174
- },
175
- grid: {
176
- xAxis: {
177
- stroke: "#6A6A6A"
178
- },
179
- horizontalLines: {
180
- stroke: "#6A6A6A50"
181
- },
182
- yAxis: {
183
- stroke: "#6A6A6A"
184
- },
185
- verticalLines: {
186
- stroke: "#6A6A6A50"
187
- }
188
- },
189
- legend: {
190
- backgroundColor: "transparent"
191
- },
192
- paths: {
193
- useSerieColor: !1,
194
- stroke: "#6A6A6A"
195
- },
196
- plots: {
197
- stroke: "#6A6A6A",
198
- indexLabels: { show: !1 },
199
- labels: { show: !1 }
200
- }
201
- }
202
- }
203
- },
204
- userConfig: e.value.skeletonConfig ?? {}
205
- })), { loading: O, FINAL_DATASET: xt, manualLoading: de } = pl({
206
- ...Jt(C),
207
- FINAL_CONFIG: e,
208
- prepareConfig: he,
209
- skeletonDataset: C.config?.skeletonDataset ?? [
210
- {
211
- name: "",
212
- color: "#CACACA",
213
- values: [
214
- { label: "", x: 1, y: 9 },
215
- { label: "", x: 4, y: 1 },
216
- { label: "", x: 7, y: 9 },
217
- { label: "", x: 9, y: 4 }
218
- ]
219
- }
220
- ],
221
- skeletonConfig: tt({
222
- defaultConfig: e.value,
223
- userConfig: mt.value
224
- })
225
- }), { userOptionsVisible: ye, setUserOptionsVisibility: Ne, keepUserOptionState: Me } = kl({ config: e.value }), { svgRef: fe } = Cl({ config: e.value.style.chart.title });
226
- ae(() => C.config, (t) => {
227
- O.value || (e.value = he()), ye.value = !e.value.userOptions.showOnChartHover, Ie(), Ae.value += 1, $e.value += 1, Te.value += 1, g.value.height = e.value.style.chart.height, g.value.width = e.value.style.chart.width, r.value.plots = e.value.style.chart.plots.radius, r.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, r.value.labels = e.value.style.chart.plots.labels.fontSize, r.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, r.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, r.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, r.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
228
- }, { deep: !0 }), ae(() => C.dataset, (t) => {
229
- Array.isArray(t) && t.length > 0 && (de.value = !1);
230
- }, { deep: !0 });
231
- const { isPrinting: pe, isImaging: ge, generatePdf: De, generateImage: Fe } = ml({
232
- elementId: `history_plot_${P.value}`,
233
- fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
234
- options: e.value.userOptions.print
235
- }), bt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), kt = h(() => al(e.value.customPalette)), w = v({
236
- showTable: e.value.table.show,
237
- showTooltip: e.value.style.chart.tooltip.show
238
- });
239
- ae(e, () => {
240
- w.value = {
241
- showTable: e.value.table.show,
242
- showTooltip: e.value.style.chart.tooltip.show
243
- };
244
- }, { immediate: !0 });
245
- const g = v({
246
- height: e.value.style.chart.height,
247
- width: e.value.style.chart.width
248
- }), Ct = h(() => g.value.width), wt = h(() => g.value.height);
249
- function At() {
250
- let t = 0;
251
- ce.value && (t = Array.from(ce.value.querySelectorAll("text")).reduce((u, o) => {
252
- const k = o.getComputedTextLength();
253
- return k > u ? k : u;
254
- }, 0));
255
- const a = ie.value ? ie.value.getBoundingClientRect().width : 0;
256
- return t + a + (a ? 24 : 0);
257
- }
258
- const Xe = v(0), St = at((t) => {
259
- Xe.value = t;
260
- });
261
- Kt((t) => {
262
- const a = J.value;
263
- if (!a) return;
264
- const l = new ResizeObserver((u) => {
265
- St(u[0].contentRect.height);
266
- });
267
- l.observe(a), t(() => l.disconnect());
268
- });
269
- const Be = h(() => {
270
- let t = 0;
271
- ue.value && (t = ue.value.getBBox().height + r.value.xAxisName / 2);
272
- let a = 0;
273
- return J.value && (a = Xe.value), t + a;
274
- }), c = h(() => {
275
- const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = At(), u = e.value.style.chart.plots.radius;
276
- return {
277
- left: t + l + e.value.style.chart.axes.y.name.offsetX,
278
- top: a + u,
279
- right: g.value.width - e.value.style.chart.padding.right - u - e.value.style.chart.axes.y.name.offsetX,
280
- bottom: g.value.height - e.value.style.chart.padding.bottom - Be.value - u - e.value.style.chart.axes.x.name.offsetY,
281
- width: g.value.width - t - e.value.style.chart.padding.right - l - u - e.value.style.chart.axes.y.name.offsetX,
282
- height: g.value.height - a - e.value.style.chart.padding.bottom - Be.value - u * 2 - e.value.style.chart.axes.x.name.offsetY
283
- };
284
- }), r = v({
285
- plots: e.value.style.chart.plots.radius,
286
- indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
287
- labels: e.value.style.chart.plots.labels.fontSize,
288
- xAxisLabels: e.value.style.chart.axes.x.labels.fontSize,
289
- xAxisName: e.value.style.chart.axes.x.name.fontSize,
290
- yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
291
- yAxisName: e.value.style.chart.axes.y.name.fontSize
292
- }), _ = h(() => xt.value.map((t, a) => ({
293
- ...t,
294
- color: t.color ? ol(t.color) : kt.value[a] || oe[a] || oe[a % oe.length],
295
- seriesIndex: a
296
- }))), Tt = h(() => Math.max(..._.value.filter((t) => !p.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), $t = h(() => {
297
- const t = Math.min(..._.value.filter((a) => !p.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
298
- return t < 0 ? t : 0;
299
- }), Lt = h(() => Math.max(..._.value.filter((t) => !p.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), _t = h(() => {
300
- const t = Math.min(..._.value.filter((a) => !p.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
301
- return t < 0 ? t : 0;
302
- }), m = h(() => {
303
- const t = lt(
304
- e.value.style.chart.axes.x.scaleMin ?? $t.value,
305
- e.value.style.chart.axes.x.scaleMax ?? Tt.value,
306
- e.value.style.chart.axes.x.ticks
307
- ), a = lt(
308
- e.value.style.chart.axes.y.scaleMin ?? _t.value,
309
- e.value.style.chart.axes.y.scaleMax ?? Lt.value,
310
- e.value.style.chart.axes.y.ticks
311
- );
312
- return {
313
- x: t,
314
- y: a,
315
- tickX: t.ticks.map((l) => ({
316
- x: c.value.left + (l - t.min) / (t.max - t.min) * c.value.width,
317
- y1: c.value.top,
318
- y2: c.value.bottom,
319
- value: l
320
- })),
321
- tickY: a.ticks.map((l) => ({
322
- y: c.value.bottom - (l - a.min) / (a.max - a.min) * c.value.height,
323
- x1: c.value.left,
324
- x2: c.value.right,
325
- value: l
326
- }))
327
- };
328
- });
329
- function zt(t) {
330
- const a = m.value.x.min < 0 ? Math.abs(m.value.x.min) : m.value.x.min > 0 ? -m.value.x.min : 0;
331
- return c.value.left + ((t || 0) + a) / (m.value.x.max + a) * c.value.width;
332
- }
333
- function Pt(t) {
334
- const a = m.value.y.min < 0 ? Math.abs(m.value.y.min) : m.value.y.min > 0 ? -m.value.y.min : 0;
335
- return c.value.bottom - ((t || 0) + a) / (m.value.y.max + a) * c.value.height;
336
- }
337
- const I = h(() => _.value.filter((t) => !p.value.includes(t.seriesIndex)).map((t, a) => {
338
- const l = t.values.map((o, k) => ({
339
- valueX: o.x,
340
- valueY: o.y,
341
- label: o.label,
342
- x: zt(o.x),
343
- y: Pt(o.y),
344
- color: t.color,
345
- seriesName: t.name,
346
- id: Ke()
347
- })), u = l.map((o) => `${o.x},${o.y} `).join("").trim();
348
- return {
349
- ...t,
350
- plots: l,
351
- path: `M${u}`
352
- };
353
- }));
354
- function Ot() {
355
- p.value.length ? p.value = [] : V.value.forEach((t) => {
356
- p.value.push(t.seriesIndex);
357
- });
358
- }
359
- function Q(t) {
360
- p.value.includes(t) ? p.value = p.value.filter((a) => a !== t) : p.value.push(t);
361
- }
362
- function Re(t) {
363
- if (!_.value.length)
364
- return e.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null;
365
- const a = _.value.find((l) => l.name === t);
366
- return a || (e.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${t}"`), null);
367
- }
368
- function It(t) {
369
- const a = Re(t);
370
- a !== null && p.value.includes(a.seriesIndex) && Q(a.seriesIndex);
371
- }
372
- function Nt(t) {
373
- const a = Re(t);
374
- a !== null && (p.value.includes(a.seriesIndex) || Q(a.seriesIndex));
375
- }
376
- const V = h(() => _.value.map((t) => ({
377
- ...t,
378
- opacity: p.value.includes(t.seriesIndex) ? 0.5 : 1,
379
- segregate: () => Q(t.seriesIndex),
380
- isSegregated: p.value.includes(t.seriesIndex),
381
- shape: "circle"
382
- }))), Mt = h(() => ({
383
- cy: "history-plot-div-legend",
384
- backgroundColor: e.value.style.chart.legend.backgroundColor,
385
- color: e.value.style.chart.legend.color,
386
- fontSize: e.value.style.chart.legend.fontSize,
387
- paddingBottom: 12,
388
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
389
- }));
390
- function Dt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
391
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), ve("selectDatapoint", t);
392
- }
393
- function Ye(t) {
394
- ve("selectLegend", {
395
- ...t,
396
- isSegregated: !t.isSegregated,
397
- opacity: t.isSegregated ? 1 : 0.5
398
- });
399
- }
400
- function He(t) {
401
- W.value = t, Le.value += 1;
402
- }
403
- const me = v(null);
404
- function Ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
405
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), se.value = !1, T.value = null;
406
- }
407
- function Xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
408
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), me.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: _.value }, T.value = t;
409
- const u = e.value.style.chart.tooltip.customFormat;
410
- if (U.value = !1, dl(u))
411
- try {
412
- const o = u({
413
- seriesIndex: l,
414
- datapoint: t,
415
- plotIndex: a,
416
- series: _.value,
417
- config: e.value
418
- });
419
- typeof o == "string" && (ne.value = o, U.value = !0);
420
- } catch {
421
- console.warn("Custom format cannot be applied."), U.value = !1;
422
- }
423
- if (!U.value) {
424
- let o = "";
425
- o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span>${t.seriesName}</span></div>`, o += `<div>${t.label}</div>`, o += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${H(
426
- e.value.style.chart.axes.x.labels.formatter,
427
- t.valueX,
428
- E({
429
- p: e.value.style.chart.axes.x.labels.prefix,
430
- v: t.valueX,
431
- s: e.value.style.chart.axes.x.labels.suffix,
432
- r: e.value.style.chart.axes.x.labels.rounding
433
- })
434
- )}</div>`, o += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${H(
435
- e.value.style.chart.axes.y.labels.formatter,
436
- t.valueY,
437
- E({
438
- p: e.value.style.chart.axes.y.labels.prefix,
439
- v: t.valueY,
440
- s: e.value.style.chart.axes.y.labels.suffix,
441
- r: e.value.style.chart.axes.y.labels.rounding
442
- })
443
- )}</div>`, ne.value = `<div>${o}</div>`;
444
- }
445
- se.value = !0;
446
- }
447
- h(() => ({ head: I.value.map((a) => ({
448
- name: a.name,
449
- color: a.color
450
- })) }));
451
- const ee = h(() => {
452
- const t = [
453
- e.value.table.columnNames.series,
454
- e.value.table.columnNames.datapoint,
455
- e.value.table.columnNames.x,
456
- e.value.table.columnNames.y
457
- ], a = I.value.flatMap((u) => u.plots.map((o) => [
458
- {
459
- color: o.color,
460
- name: o.seriesName
461
- },
462
- o.label,
463
- H(
464
- e.value.style.chart.axes.x.labels.formatter,
465
- o.valueX,
466
- E({
467
- p: e.value.style.chart.axes.x.labels.prefix,
468
- v: o.valueX,
469
- s: e.value.style.chart.axes.x.labels.suffix,
470
- r: e.value.style.chart.axes.x.labels.rounding
471
- })
472
- ),
473
- H(
474
- e.value.style.chart.axes.y.labels.formatter,
475
- o.valueY,
476
- E({
477
- p: e.value.style.chart.axes.y.labels.prefix,
478
- v: o.valueY,
479
- s: e.value.style.chart.axes.y.labels.suffix,
480
- r: e.value.style.chart.axes.y.labels.rounding
481
- })
482
- )
483
- ])), l = {
484
- th: {
485
- backgroundColor: e.value.table.th.backgroundColor,
486
- color: e.value.table.th.color,
487
- outline: e.value.table.th.outline
488
- },
489
- td: {
490
- backgroundColor: e.value.table.td.backgroundColor,
491
- color: e.value.table.td.color,
492
- outline: e.value.table.td.outline
493
- },
494
- breakpoint: e.value.table.responsiveBreakpoint
495
- };
496
- return {
497
- head: t,
498
- body: a,
499
- config: l,
500
- colNames: t
501
- };
502
- });
503
- function xe(t = null) {
504
- Je(() => {
505
- const a = [
506
- [e.value.table.columnNames.series],
507
- [e.value.table.columnNames.datapoint],
508
- [e.value.table.columnNames.x],
509
- [e.value.table.columnNames.y]
510
- ], l = I.value.flatMap((k) => k.plots.map((le) => [
511
- [le.seriesName],
512
- [le.label],
513
- [le.valueX],
514
- [le.valueY]
515
- ])), u = [
516
- [e.value.style.chart.title.text],
517
- [e.value.style.chart.title.subtitle.text],
518
- a
519
- ].concat(l), o = vl(u);
520
- t ? t(o) : hl({
521
- csvContent: o,
522
- title: e.value.style.chart.title.text || "vue-ui-history-plot"
523
- });
524
- });
525
- }
526
- const te = v(!1);
527
- function be() {
528
- te.value = !te.value;
529
- }
530
- function Ee() {
531
- w.value.showTable = !w.value.showTable;
532
- }
533
- function We() {
534
- w.value.showTooltip = !w.value.showTooltip;
535
- }
536
- function Bt() {
537
- return I.value;
538
- }
539
- async function Rt({ scale: t = 2 } = {}) {
540
- if (!z.value) return;
541
- const { width: a, height: l } = z.value.getBoundingClientRect(), u = a / l, { imageUri: o, base64: k } = await Al({ domElement: z.value, base64: !0, img: !0, scale: t });
542
- return {
543
- imageUri: o,
544
- base64: k,
545
- title: e.value.style.chart.title.text,
546
- width: a,
547
- height: l,
548
- aspectRatio: u
549
- };
550
- }
551
- const Yt = h(() => m.value.tickX), Ht = h(() => ({ start: 0, end: m.value.tickX.length }));
552
- wl({
553
- timeLabelsEls: J,
554
- timeLabels: Yt,
555
- slicer: Ht,
556
- configRef: e,
557
- rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
558
- autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
559
- isAutoSize: !1,
560
- width: Ct,
561
- height: wt,
562
- targetClass: ".vue-ui-history-plot-x-axis-scale",
563
- rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
564
- });
565
- const G = h(() => {
566
- const t = e.value.table.useDialog && !e.value.table.show, a = w.value.showTable;
567
- return {
568
- component: t ? yt : it,
569
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
570
- props: t ? {
571
- backgroundColor: e.value.table.th.backgroundColor,
572
- color: e.value.table.th.color,
573
- headerColor: e.value.table.th.color,
574
- headerBg: e.value.table.th.backgroundColor,
575
- isFullscreen: W.value,
576
- fullscreenParent: z.value,
577
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
578
- } : {
579
- hideDetails: !0,
580
- config: {
581
- open: a,
582
- maxHeight: 1e4,
583
- body: {
584
- backgroundColor: e.value.style.chart.backgroundColor,
585
- color: e.value.style.chart.color
586
- },
587
- head: {
588
- backgroundColor: e.value.style.chart.backgroundColor,
589
- color: e.value.style.chart.color
590
- }
591
- }
592
- }
593
- };
594
- });
595
- ae(() => w.value.showTable, (t) => {
596
- e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
597
- });
598
- function Ue() {
599
- w.value.showTable = !1, re.value && re.value.setTableIconState(!1);
600
- }
601
- const Et = h(() => e.value.style.chart.backgroundColor), Wt = h(() => e.value.style.chart.legend), Ut = h(() => e.value.style.chart.title), { exportSvg: jt, getSvg: Vt } = xl({
602
- svg: fe,
603
- title: Ut,
604
- legend: Wt,
605
- legendItems: V,
606
- backgroundColor: Et
607
- });
608
- async function je({ isCb: t }) {
609
- Z.value = !0, await Je();
610
- try {
611
- if (t) {
612
- const { blob: a, url: l, text: u, dataUrl: o } = await Vt();
613
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: u, dataUrl: o }));
614
- } else
615
- await Promise.resolve(jt());
616
- } finally {
617
- Z.value = !1;
618
- }
619
- }
620
- function Gt(t) {
621
- if (t?.stage === "start") {
622
- q.value = !0;
623
- return;
624
- }
625
- if (t?.stage === "end") {
626
- q.value = !1;
627
- return;
628
- }
629
- Fe();
630
- }
631
- async function Ve() {
632
- if (ve("copyAlt", {
633
- config: e.value,
634
- dataset: I.value
635
- }), !e.value.userOptions.callbacks.altCopy) {
636
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
637
- return;
638
- }
639
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
640
- config: e.value,
641
- dataset: I.value
642
- }));
643
- }
644
- return st({
645
- getData: Bt,
646
- getImage: Rt,
647
- generatePdf: De,
648
- generateCsv: xe,
649
- generateImage: Fe,
650
- generateSvg: je,
651
- hideSeries: Nt,
652
- showSeries: It,
653
- toggleTable: Ee,
654
- toggleTooltip: We,
655
- toggleAnnotator: be,
656
- toggleFullscreen: He,
657
- copyAlt: Ve
658
- }), (t, a) => (s(), n("div", {
659
- id: `history_plot_${P.value}`,
660
- ref_key: "historyPlotChart",
661
- ref: z,
662
- class: X({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": W.value }),
663
- style: $(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
664
- onMouseenter: a[2] || (a[2] = () => i(Ne)(!0)),
665
- onMouseleave: a[3] || (a[3] = () => i(Ne)(!1))
666
- }, [
667
- d(t.$slots, "userConfig", {}, void 0, !0),
668
- e.value.userOptions.buttons.annotator ? (s(), N(i(vt), {
669
- key: 0,
670
- svgRef: i(fe),
671
- backgroundColor: e.value.style.chart.backgroundColor,
672
- color: e.value.style.chart.color,
673
- active: te.value,
674
- isCursorPointer: Y.value,
675
- onClose: be
676
- }, {
677
- "annotator-action-close": y(() => [
678
- d(t.$slots, "annotator-action-close", {}, void 0, !0)
679
- ]),
680
- "annotator-action-color": y(({ color: l }) => [
681
- d(t.$slots, "annotator-action-color", A(S({ color: l })), void 0, !0)
682
- ]),
683
- "annotator-action-draw": y(({ mode: l }) => [
684
- d(t.$slots, "annotator-action-draw", A(S({ mode: l })), void 0, !0)
685
- ]),
686
- "annotator-action-undo": y(({ disabled: l }) => [
687
- d(t.$slots, "annotator-action-undo", A(S({ disabled: l })), void 0, !0)
688
- ]),
689
- "annotator-action-redo": y(({ disabled: l }) => [
690
- d(t.$slots, "annotator-action-redo", A(S({ disabled: l })), void 0, !0)
691
- ]),
692
- "annotator-action-delete": y(({ disabled: l }) => [
693
- d(t.$slots, "annotator-action-delete", A(S({ disabled: l })), void 0, !0)
694
- ]),
695
- _: 3
696
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : f("", !0),
697
- bt.value ? (s(), n("div", {
698
- key: 1,
699
- ref_key: "noTitle",
700
- ref: _e,
701
- class: "vue-data-ui-no-title-space",
702
- style: "height:36px; width: 100%;background:transparent"
703
- }, null, 512)) : f("", !0),
704
- e.value.style.chart.title.text ? (s(), n("div", {
705
- key: 2,
706
- ref_key: "chartTitle",
707
- ref: we,
708
- class: "vue-ui-xy-title",
709
- style: $(`font-family:${e.value.style.fontFamily}`)
710
- }, [
711
- (s(), N(Sl, {
712
- key: `title_${Ae.value}`,
713
- config: {
714
- title: {
715
- cy: "history-plot-div-title",
716
- ...e.value.style.chart.title
717
- },
718
- subtitle: {
719
- cy: "history-plot-div-subtitle",
720
- ...e.value.style.chart.title.subtitle
721
- }
722
- }
723
- }, null, 8, ["config"]))
724
- ], 4)) : f("", !0),
725
- L("div", {
726
- id: `legend-top-${P.value}`
727
- }, null, 8, Pl),
728
- e.value.userOptions.show && K.value && (i(Me) || i(ye)) ? (s(), N(i(ht), {
729
- ref_key: "userOptionsRef",
730
- ref: re,
731
- key: `user_option_${Le.value}`,
732
- backgroundColor: e.value.style.chart.backgroundColor,
733
- color: e.value.style.chart.color,
734
- isPrinting: i(pe),
735
- isImaging: i(ge),
736
- uid: P.value,
737
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
738
- hasPdf: e.value.userOptions.buttons.pdf,
739
- hasImg: e.value.userOptions.buttons.img,
740
- hasSvg: e.value.userOptions.buttons.svg,
741
- hasXls: e.value.userOptions.buttons.csv,
742
- hasTable: e.value.userOptions.buttons.table,
743
- hasLabel: !1,
744
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
745
- hasAltCopy: e.value.userOptions.buttons.altCopy,
746
- isFullscreen: W.value,
747
- chartElement: z.value,
748
- position: e.value.userOptions.position,
749
- isTooltip: w.value.showTooltip,
750
- titles: { ...e.value.userOptions.buttonTitles },
751
- hasAnnotator: e.value.userOptions.buttons.annotator,
752
- isAnnotation: te.value,
753
- callbacks: e.value.userOptions.callbacks,
754
- printScale: e.value.userOptions.print.scale,
755
- tableDialog: e.value.table.useDialog,
756
- isCursorPointer: Y.value,
757
- onToggleFullscreen: He,
758
- onGeneratePdf: i(De),
759
- onGenerateCsv: xe,
760
- onGenerateImage: Gt,
761
- onGenerateSvg: je,
762
- onToggleTable: Ee,
763
- onToggleTooltip: We,
764
- onToggleAnnotator: be,
765
- onCopyAlt: Ve,
766
- style: $({
767
- visibility: i(Me) ? i(ye) ? "visible" : "hidden" : "visible"
768
- })
769
- }, qe({ _: 2 }, [
770
- t.$slots.menuIcon ? {
771
- name: "menuIcon",
772
- fn: y(({ isOpen: l, color: u }) => [
773
- d(t.$slots, "menuIcon", A(S({ isOpen: l, color: u })), void 0, !0)
774
- ]),
775
- key: "0"
776
- } : void 0,
777
- t.$slots.optionTooltip ? {
778
- name: "optionTooltip",
779
- fn: y(() => [
780
- d(t.$slots, "optionTooltip", {}, void 0, !0)
781
- ]),
782
- key: "1"
783
- } : void 0,
784
- t.$slots.optionPdf ? {
785
- name: "optionPdf",
786
- fn: y(() => [
787
- d(t.$slots, "optionPdf", {}, void 0, !0)
788
- ]),
789
- key: "2"
790
- } : void 0,
791
- t.$slots.optionCsv ? {
792
- name: "optionCsv",
793
- fn: y(() => [
794
- d(t.$slots, "optionCsv", {}, void 0, !0)
795
- ]),
796
- key: "3"
797
- } : void 0,
798
- t.$slots.optionImg ? {
799
- name: "optionImg",
800
- fn: y(() => [
801
- d(t.$slots, "optionImg", {}, void 0, !0)
802
- ]),
803
- key: "4"
804
- } : void 0,
805
- t.$slots.optionSvg ? {
806
- name: "optionSvg",
807
- fn: y(() => [
808
- d(t.$slots, "optionSvg", {}, void 0, !0)
809
- ]),
810
- key: "5"
811
- } : void 0,
812
- t.$slots.optionTable ? {
813
- name: "optionTable",
814
- fn: y(() => [
815
- d(t.$slots, "optionTable", {}, void 0, !0)
816
- ]),
817
- key: "6"
818
- } : void 0,
819
- t.$slots.optionFullscreen ? {
820
- name: "optionFullscreen",
821
- fn: y(({ toggleFullscreen: l, isFullscreen: u }) => [
822
- d(t.$slots, "optionFullscreen", A(S({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
823
- ]),
824
- key: "7"
825
- } : void 0,
826
- t.$slots.optionAnnotator ? {
827
- name: "optionAnnotator",
828
- fn: y(({ toggleAnnotator: l, isAnnotator: u }) => [
829
- d(t.$slots, "optionAnnotator", A(S({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
830
- ]),
831
- key: "8"
832
- } : void 0,
833
- t.$slots.optionAltCopy ? {
834
- name: "optionAltCopy",
835
- fn: y(({ altCopy: l }) => [
836
- d(t.$slots, "optionAltCopy", A(S({ altCopy: l })), void 0, !0)
837
- ]),
838
- key: "9"
839
- } : void 0
840
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : f("", !0),
841
- (s(), n("svg", {
842
- ref_key: "svgRef",
843
- ref: fe,
844
- xmlns: i(sl),
845
- viewBox: `0 0 ${g.value.width < 0 ? 0.1 : g.value.width} ${g.value.height < 0 ? 0.1 : g.value.height}`,
846
- style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
847
- }, [
848
- ke(i(dt)),
849
- t.$slots["chart-background"] ? (s(), n("foreignObject", {
850
- key: 0,
851
- x: c.value.left,
852
- y: c.value.top,
853
- width: c.value.width <= 0 ? 10 : c.value.width,
854
- height: c.value.height <= 0 ? 10 : c.value.height,
855
- style: {
856
- pointerEvents: "none"
857
- }
858
- }, [
859
- d(t.$slots, "chart-background", {}, void 0, !0)
860
- ], 8, Il)) : f("", !0),
861
- e.value.style.chart.plots.gradient.show ? (s(), n("defs", Nl, [
862
- (s(!0), n(x, null, b(I.value, (l, u) => (s(), n("radialGradient", {
863
- id: `gradient_${u}_${P.value}`,
864
- fy: "30%"
865
- }, [
866
- L("stop", {
867
- offset: "10%",
868
- "stop-color": i(nl)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
869
- }, null, 8, Dl),
870
- L("stop", {
871
- offset: "90%",
872
- "stop-color": i(rl)(l.color, 0.1)
873
- }, null, 8, Fl),
874
- L("stop", {
875
- offset: "100%",
876
- "stop-color": l.color
877
- }, null, 8, Xl)
878
- ], 8, Ml))), 256))
879
- ])) : f("", !0),
880
- e.value.style.chart.grid.verticalLines.show ? (s(), n("g", Bl, [
881
- (s(!0), n(x, null, b(m.value.tickX, (l) => (s(), n("line", {
882
- x1: l.x,
883
- x2: l.x,
884
- y1: l.y1,
885
- y2: l.y2,
886
- stroke: e.value.style.chart.grid.verticalLines.stroke,
887
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
888
- "stroke-linecap": "round"
889
- }, null, 8, Rl))), 256))
890
- ])) : f("", !0),
891
- e.value.style.chart.axes.y.labels.show ? (s(), n("g", Yl, [
892
- (s(!0), n(x, null, b(m.value.tickY, (l) => (s(), n("line", {
893
- stroke: e.value.style.chart.grid.verticalLines.stroke,
894
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
895
- "stroke-linecap": "round",
896
- x1: c.value.left - 5,
897
- x2: c.value.left,
898
- y1: l.y,
899
- y2: l.y
900
- }, null, 8, Hl))), 256))
901
- ])) : f("", !0),
902
- e.value.style.chart.axes.y.labels.show ? (s(), n("g", {
903
- key: 4,
904
- ref_key: "yAxisScales",
905
- ref: ce
906
- }, [
907
- (s(!0), n(x, null, b(m.value.tickY, (l) => (s(), n("text", {
908
- x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
909
- y: l.y + r.value.yAxisLabels / 3,
910
- fill: e.value.style.chart.axes.y.labels.color,
911
- "font-size": r.value.yAxisLabels,
912
- "text-anchor": "end"
913
- }, M(i(H)(
914
- e.value.style.chart.axes.y.labels.formatter,
915
- l.value,
916
- i(E)({
917
- p: e.value.style.chart.axes.y.labels.prefix,
918
- v: l.value,
919
- s: e.value.style.chart.axes.y.labels.suffix,
920
- r: e.value.style.chart.axes.y.labels.rounding
921
- })
922
- )), 9, El))), 256))
923
- ], 512)) : f("", !0),
924
- e.value.style.chart.axes.y.name.text ? (s(), n("text", {
925
- key: 5,
926
- ref_key: "yAxisLabel",
927
- ref: ie,
928
- transform: `translate(${r.value.yAxisName}, ${g.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
929
- "font-size": r.value.yAxisName,
930
- fill: e.value.style.chart.axes.y.name.color,
931
- "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
932
- "text-anchor": "middle"
933
- }, M(e.value.style.chart.axes.y.name.text), 9, Wl)) : f("", !0),
934
- e.value.style.chart.grid.horizontalLines.show ? (s(), n("g", Ul, [
935
- (s(!0), n(x, null, b(m.value.tickY, (l) => (s(), n("line", {
936
- x1: l.x1,
937
- x2: l.x2,
938
- y1: l.y,
939
- y2: l.y,
940
- stroke: e.value.style.chart.grid.horizontalLines.stroke,
941
- "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
942
- "stroke-linecap": "round"
943
- }, null, 8, jl))), 256))
944
- ])) : f("", !0),
945
- e.value.style.chart.axes.x.labels.show ? (s(), n("g", Vl, [
946
- (s(!0), n(x, null, b(m.value.tickX, (l) => (s(), n("line", {
947
- stroke: e.value.style.chart.grid.verticalLines.stroke,
948
- "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
949
- "stroke-linecap": "round",
950
- x1: l.x,
951
- x2: l.x,
952
- y1: c.value.bottom,
953
- y2: c.value.bottom + 5
954
- }, null, 8, Gl))), 256))
955
- ])) : f("", !0),
956
- e.value.style.chart.axes.x.labels.show ? (s(), n("g", {
957
- key: 8,
958
- ref_key: "xAxisScales",
959
- ref: J
960
- }, [
961
- (s(!0), n(x, null, b(m.value.tickX, (l) => (s(), n("text", {
962
- class: "vue-ui-history-plot-x-axis-scale",
963
- transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + r.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
964
- fill: e.value.style.chart.axes.x.labels.color,
965
- "font-size": r.value.xAxisLabels,
966
- "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
967
- }, M(i(H)(
968
- e.value.style.chart.axes.x.labels.formatter,
969
- l.value,
970
- i(E)({
971
- p: e.value.style.chart.axes.x.labels.prefix,
972
- v: l.value,
973
- s: e.value.style.chart.axes.x.labels.suffix,
974
- r: e.value.style.chart.axes.x.labels.rounding
975
- })
976
- )), 9, ql))), 256))
977
- ], 512)) : f("", !0),
978
- e.value.style.chart.axes.x.name.text ? (s(), n("text", {
979
- key: 9,
980
- ref_key: "xAxisLabel",
981
- ref: ue,
982
- x: g.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
983
- y: g.value.height,
984
- "font-size": r.value.xAxisName,
985
- fill: e.value.style.chart.axes.x.name.color,
986
- "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
987
- "text-anchor": "middle"
988
- }, M(e.value.style.chart.axes.x.name.text), 9, Zl)) : f("", !0),
989
- e.value.style.chart.grid.xAxis.show ? (s(), n("line", {
990
- key: 10,
991
- x1: c.value.left,
992
- x2: c.value.left + c.value.width,
993
- y1: c.value.bottom,
994
- y2: c.value.bottom,
995
- stroke: e.value.style.chart.grid.xAxis.stroke,
996
- "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
997
- "stroke-linecap": "round"
998
- }, null, 8, Jl)) : f("", !0),
999
- e.value.style.chart.grid.yAxis.show ? (s(), n("line", {
1000
- key: 11,
1001
- x1: c.value.left,
1002
- x2: c.value.left,
1003
- y1: c.value.top,
1004
- y2: c.value.bottom,
1005
- stroke: e.value.style.chart.grid.yAxis.stroke,
1006
- "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
1007
- "stroke-linecap": "round"
1008
- }, null, 8, Kl)) : f("", !0),
1009
- (s(!0), n(x, null, b(I.value, (l, u) => (s(), n("g", null, [
1010
- e.value.style.chart.paths.show ? (s(), n("g", {
1011
- key: 0,
1012
- style: $({
1013
- opacity: T.value === null ? 1 : 0.3
1014
- })
1015
- }, [
1016
- L("path", {
1017
- d: l.path,
1018
- stroke: e.value.style.chart.backgroundColor,
1019
- "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
1020
- fill: "none",
1021
- "stroke-linecap": "round",
1022
- "stroke-linejoin": "round",
1023
- class: X({ animated: e.value.useCssAnimation && !i(O) })
1024
- }, null, 10, Ql),
1025
- L("path", {
1026
- d: l.path,
1027
- stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
1028
- "stroke-width": e.value.style.chart.paths.strokeWidth,
1029
- fill: "none",
1030
- "stroke-linecap": "round",
1031
- "stroke-linejoin": "round",
1032
- class: X({ animated: e.value.useCssAnimation && !i(O) })
1033
- }, null, 10, ea)
1034
- ], 4)) : f("", !0),
1035
- (s(!0), n(x, null, b(l.plots, (o) => (s(), n("circle", {
1036
- cx: o.x,
1037
- cy: o.y,
1038
- fill: e.value.style.chart.backgroundColor,
1039
- r: r.value.plots,
1040
- stroke: "none"
1041
- }, null, 8, ta))), 256)),
1042
- (s(!0), n(x, null, b(l.plots, (o) => (s(), n("circle", {
1043
- cx: o.x,
1044
- cy: o.y,
1045
- fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${u}_${P.value})` : o.color,
1046
- r: r.value.plots,
1047
- stroke: e.value.style.chart.plots.stroke,
1048
- "stroke-width": e.value.style.chart.plots.strokeWidth,
1049
- class: X({ animated: e.value.useCssAnimation && !i(O) }),
1050
- style: $({
1051
- opacity: T.value === null || T.value.id === o.id ? 1 : 0.3,
1052
- transition: "opacity 0.2s ease-in-out"
1053
- })
1054
- }, null, 14, la))), 256)),
1055
- e.value.style.chart.plots.labels.show ? (s(), n("g", aa, [
1056
- (s(!0), n(x, null, b(l.plots, (o) => (s(), n("g", null, [
1057
- String(o.label).includes(`
1058
- `) ? (s(), n("text", {
1059
- key: 1,
1060
- x: o.x + e.value.style.chart.plots.labels.offsetX,
1061
- y: o.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
1062
- "font-size": r.value.labels,
1063
- fill: e.value.style.chart.plots.labels.color,
1064
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
1065
- "text-anchor": "middle",
1066
- class: X({ animated: e.value.useCssAnimation && !i(O) }),
1067
- style: $({
1068
- opacity: T.value === null || T.value.id === o.id ? 1 : 0.3,
1069
- transition: "opacity 0.2s ease-in-out"
1070
- }),
1071
- innerHTML: i(ul)({
1072
- content: String(o.label),
1073
- fontSize: r.value.labels,
1074
- fill: e.value.style.chart.plots.labels.color,
1075
- x: o.x + e.value.style.chart.plots.labels.offsetX,
1076
- y: o.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels
1077
- })
1078
- }, null, 14, sa)) : (s(), n("text", {
1079
- key: 0,
1080
- x: o.x + e.value.style.chart.plots.labels.offsetX,
1081
- y: o.y + e.value.style.chart.plots.labels.offsetY + r.value.plots + r.value.labels,
1082
- "font-size": r.value.labels,
1083
- fill: e.value.style.chart.plots.labels.color,
1084
- "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
1085
- "text-anchor": "middle",
1086
- class: X({ animated: e.value.useCssAnimation && !i(O) }),
1087
- style: $({
1088
- opacity: T.value === null || T.value.id === o.id ? 1 : 0.3,
1089
- transition: "opacity 0.2s ease-in-out"
1090
- })
1091
- }, M(o.label), 15, oa))
1092
- ]))), 256))
1093
- ])) : f("", !0),
1094
- e.value.style.chart.plots.indexLabels.show ? (s(), n("g", na, [
1095
- (s(!0), n(x, null, b(l.plots, (o, k) => (s(), n("text", {
1096
- x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
1097
- y: o.y + e.value.style.chart.plots.indexLabels.offsetY + r.value.indexLabels / 3,
1098
- "font-size": r.value.indexLabels,
1099
- "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1100
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(il)(l.color) : e.value.style.chart.plots.indexLabels.color,
1101
- "text-anchor": "middle",
1102
- class: X({ animated: e.value.useCssAnimation && !i(O) }),
1103
- style: $({
1104
- opacity: T.value === null || T.value.id === o.id ? 1 : 0.3,
1105
- transition: "opacity 0.2s ease-in-out"
1106
- })
1107
- }, M(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, ra))), 256))
1108
- ])) : f("", !0)
1109
- ]))), 256)),
1110
- (s(!0), n(x, null, b(I.value, (l) => (s(), n("g", null, [
1111
- (s(!0), n(x, null, b(l.plots, (u, o) => (s(), n("circle", {
1112
- cx: u.x,
1113
- cy: u.y,
1114
- fill: "transparent",
1115
- r: r.value.plots,
1116
- stroke: "none",
1117
- onMouseenter: (k) => Xt({
1118
- datapoint: u,
1119
- plotIndex: o,
1120
- seriesIndex: l.seriesIndex
1121
- }),
1122
- onMouseleave: (k) => Ft({
1123
- datapoint: u,
1124
- plotIndex: o,
1125
- seriesIndex: l.seriesIndex
1126
- }),
1127
- onClick: (k) => Dt({
1128
- datapoint: u,
1129
- plotIndex: o,
1130
- seriesIndex: l.seriesIndex
1131
- })
1132
- }, null, 40, ua))), 256))
1133
- ]))), 256)),
1134
- d(t.$slots, "svg", {
1135
- svg: {
1136
- ...g.value,
1137
- isPrintingImg: i(pe) | i(ge) | q.value,
1138
- isPrintingSvg: Z.value
1139
- }
1140
- }, void 0, !0)
1141
- ], 12, Ol)),
1142
- t.$slots.watermark ? (s(), n("div", ia, [
1143
- d(t.$slots, "watermark", A(S({ isPrinting: i(pe) || i(ge) || q.value || Z.value })), void 0, !0)
1144
- ])) : f("", !0),
1145
- L("div", {
1146
- id: `legend-bottom-${P.value}`
1147
- }, null, 8, ca),
1148
- Pe.value ? (s(), N(Qt, {
1149
- key: 5,
1150
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1151
- }, [
1152
- L("div", {
1153
- ref_key: "chartLegend",
1154
- ref: Se
1155
- }, [
1156
- e.value.style.chart.legend.show && K.value ? (s(), N($l, {
1157
- key: `legend_${Te.value}`,
1158
- legendSet: V.value,
1159
- config: Mt.value,
1160
- isCursorPointer: Y.value,
1161
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
1162
- Q(l.seriesIndex), Ye(l);
1163
- })
1164
- }, {
1165
- item: y(({ legend: l, index: u }) => [
1166
- L("div", {
1167
- onClick: (o) => {
1168
- l.segregate(), Ye(l);
1169
- },
1170
- style: $(`opacity:${p.value.includes(l.seriesIndex) ? 0.5 : 1}`)
1171
- }, M(l.name), 13, va)
1172
- ]),
1173
- legendToggle: y(() => [
1174
- V.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(O) ? (s(), N(Ll, {
1175
- key: 0,
1176
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1177
- color: e.value.style.chart.legend.selectAllToggle.color,
1178
- fontSize: e.value.style.chart.legend.fontSize,
1179
- checked: p.value.length > 0,
1180
- isCursorPointer: Y.value,
1181
- onToggle: Ot
1182
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : f("", !0)
1183
- ]),
1184
- _: 1
1185
- }, 8, ["legendSet", "config", "isCursorPointer"])) : d(t.$slots, "legend", {
1186
- key: 1,
1187
- legend: V.value
1188
- }, void 0, !0)
1189
- ], 512)
1190
- ], 8, ["to"])) : f("", !0),
1191
- t.$slots.source ? (s(), n("div", {
1192
- key: 6,
1193
- ref_key: "source",
1194
- ref: ze,
1195
- dir: "auto"
1196
- }, [
1197
- d(t.$slots, "source", {}, void 0, !0)
1198
- ], 512)) : f("", !0),
1199
- ke(i(rt), {
1200
- teleportTo: e.value.style.chart.tooltip.teleportTo,
1201
- show: w.value.showTooltip && se.value,
1202
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1203
- color: e.value.style.chart.tooltip.color,
1204
- fontSize: e.value.style.chart.tooltip.fontSize,
1205
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1206
- borderColor: e.value.style.chart.tooltip.borderColor,
1207
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1208
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1209
- position: e.value.style.chart.tooltip.position,
1210
- offsetY: e.value.style.chart.tooltip.offsetY,
1211
- parent: z.value,
1212
- content: ne.value,
1213
- isCustom: U.value,
1214
- isFullscreen: W.value,
1215
- smooth: e.value.style.chart.tooltip.smooth,
1216
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1217
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1218
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1219
- }, {
1220
- "tooltip-before": y(() => [
1221
- d(t.$slots, "tooltip-before", A(S({ ...me.value })), void 0, !0)
1222
- ]),
1223
- "tooltip-after": y(() => [
1224
- d(t.$slots, "tooltip-after", A(S({ ...me.value })), void 0, !0)
1225
- ]),
1226
- _: 3
1227
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1228
- K.value && e.value.userOptions.buttons.table ? (s(), N(el(G.value.component), tl({ key: 7 }, G.value.props, {
1229
- ref_key: "tableUnit",
1230
- ref: j,
1231
- onClose: Ue
1232
- }), qe({
1233
- content: y(() => [
1234
- (s(), N(i(ct), {
1235
- key: `table_${$e.value}`,
1236
- colNames: ee.value.colNames,
1237
- head: ee.value.head,
1238
- body: ee.value.body,
1239
- config: ee.value.config,
1240
- title: e.value.table.useDialog ? "" : G.value.title,
1241
- withCloseButton: !e.value.table.useDialog,
1242
- isCursorPointer: Y.value,
1243
- onClose: Ue
1244
- }, {
1245
- th: y(({ th: l }) => [
1246
- L("div", {
1247
- innerHTML: l,
1248
- style: { display: "flex", "align-items": "center" }
1249
- }, null, 8, ha)
1250
- ]),
1251
- td: y(({ td: l }) => [
1252
- Ze(M(l.name || l), 1)
1253
- ]),
1254
- _: 1
1255
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1256
- ]),
1257
- _: 2
1258
- }, [
1259
- e.value.table.useDialog ? {
1260
- name: "title",
1261
- fn: y(() => [
1262
- Ze(M(G.value.title), 1)
1263
- ]),
1264
- key: "0"
1265
- } : void 0,
1266
- e.value.table.useDialog ? {
1267
- name: "actions",
1268
- fn: y(() => [
1269
- L("button", {
1270
- tabindex: "0",
1271
- class: "vue-ui-user-options-button",
1272
- onClick: a[1] || (a[1] = (l) => xe(e.value.userOptions.callbacks.csv)),
1273
- style: $({ cursor: Y.value ? "pointer" : "default" })
1274
- }, [
1275
- ke(i(ut), {
1276
- name: "fileCsv",
1277
- stroke: G.value.props.color
1278
- }, null, 8, ["stroke"])
1279
- ], 4)
1280
- ]),
1281
- key: "1"
1282
- } : void 0
1283
- ]), 1040)) : f("", !0),
1284
- d(t.$slots, "skeleton", {}, () => [
1285
- i(O) ? (s(), N(gl, { key: 0 })) : f("", !0)
1286
- ], !0)
1287
- ], 46, zl));
1288
- }
1289
- }, Oa = /* @__PURE__ */ _l(da, [["__scopeId", "data-v-e7c471f3"]]);
1290
- export {
1291
- Oa as default
1292
- };