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