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
@@ -0,0 +1,1759 @@
1
+ import { defineAsyncComponent as R, computed as m, ref as h, toRefs as sl, watch as Fe, shallowRef as xt, onMounted as nl, onBeforeUnmount as rl, openBlock as n, createElementBlock as r, unref as v, normalizeStyle as _, normalizeClass as O, createElementVNode as d, toDisplayString as w, createBlock as B, createCommentVNode as y, withCtx as p, renderSlot as g, normalizeProps as T, guardReactiveProps as q, createSlots as $t, createVNode as de, Fragment as A, renderList as N, mergeProps as kt, Teleport as il, resolveDynamicComponent as vl, createTextVNode as wt, nextTick as Ce } from "vue";
2
+ import { j as Lt, t as dl, m as cl, p as Ie, o as hl, q as ae, n as yl, s as bl, ak as fl, k as D, l as H, X as pl, u as Se, v as gl, al as ml, Z as xl, W as $l, a0 as kl, a1 as wl, T as Ll, U as Cl } from "./lib-DBptbyyI.js";
3
+ import { t as Sl, u as _l } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Tl } from "./useConfig-DO94Aj5s.js";
5
+ import { u as ql, B as Al } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as zl } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as Wl } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as Xl } from "./useThemeCheck-D1ZYXUwG.js";
9
+ import { u as Re } from "./useNestedProp-Bf5XFbs8.js";
10
+ import { u as Pl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as Yl } from "./useChartAccessibility-9icAAmYg.js";
12
+ import Ml from "./img-LXxMLmCg.js";
13
+ import Ol from "./Title-BeMKE1cj.js";
14
+ import { _ as Ct } from "./Shape-BKRUOeKk.js";
15
+ import Bl from "./vue_ui_quadrant-DjRs--Uz.js";
16
+ import Nl from "./Legend-CS7Xo5LK.js";
17
+ import { A as Vl } from "./A11yDataTable-KcVAX2cP.js";
18
+ import { B as Fl } from "./BaseLegendToggle-BQVIawmA.js";
19
+ import { _ as Il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
+ const Rl = ["id"], Dl = ["id"], Hl = ["id"], El = { style: { position: "relative" } }, Ul = ["xmlns", "aria-describedby", "viewBox", "id"], Ql = ["x", "y", "width", "height"], Gl = ["id"], Kl = ["stop-color"], jl = ["stop-color"], Jl = { key: 1 }, Zl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ta = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], la = { key: 2 }, aa = ["points", "fill"], oa = ["points", "fill"], ua = ["points", "fill"], sa = ["points", "fill"], na = { key: 3 }, ra = ["y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], va = ["x", "y", "fill", "font-size"], da = ["y", "fill", "font-size"], ca = { key: 4 }, ha = ["x", "y", "font-size", "fill"], ya = ["x", "y", "font-size", "fill"], ba = ["x", "y", "font-size", "fill"], fa = ["id", "font-size", "transform", "fill"], pa = ["id", "font-size", "transform", "fill"], ga = ["id", "font-size", "transform", "fill"], ma = { key: 5 }, xa = ["fill", "points"], $a = ["x", "y", "width", "height"], ka = ["x", "y", "width", "height"], wa = ["x", "y", "width", "height"], La = ["x", "y", "width", "height"], Ca = ["x", "y", "onMouseenter", "onMouseleave", "onClick"], Sa = ["data-a11y-plot-id", "cx", "cy", "r", "aria-label"], _a = ["data-a11y-plot-id", "cx", "cy", "r", "aria-label"], Ta = {
21
+ key: 0,
22
+ style: { "pointer-events": "none" }
23
+ }, qa = ["x", "y", "font-size", "fill"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], za = { key: 0 }, Wa = ["x", "y", "onMouseover", "onMouseleave", "onClick"], Xa = {
24
+ key: 8,
25
+ class: "vue-ui-dna"
26
+ }, Pa = ["points", "fill"], Ya = ["points", "fill"], Ma = ["points", "fill"], Oa = ["points", "fill"], Ba = { key: 9 }, Na = ["x", "y", "font-size", "fill", "font-weight"], Va = { key: 10 }, Fa = ["x", "y", "fill"], Ia = ["x", "y", "fill"], Ra = ["x", "y", "fill"], Da = ["x", "y", "fill"], Ha = ["stroke", "d"], Ea = ["stroke", "d"], Ua = {
27
+ key: 0,
28
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
29
+ "data-dom-to-png-ignore": "",
30
+ "aria-hidden": "true"
31
+ }, Qa = {
32
+ key: 5,
33
+ class: "vue-data-ui-watermark"
34
+ }, Ga = ["id"], Ka = ["onClick"], ja = {
35
+ key: 0,
36
+ height: "14",
37
+ width: "14",
38
+ viewBox: "0 0 20 20"
39
+ }, Ja = ["innerHTML"], Za = {
40
+ __name: "vue-ui-quadrant",
41
+ props: {
42
+ config: {
43
+ type: Object,
44
+ default() {
45
+ return {};
46
+ }
47
+ },
48
+ dataset: {
49
+ type: Array,
50
+ default() {
51
+ return [];
52
+ }
53
+ }
54
+ },
55
+ emits: ["selectPlot", "selectSide", "selectLegend", "copyAlt"],
56
+ setup(St, { expose: _t, emit: Tt }) {
57
+ const qt = R(() => import("./Tooltip-Bf-kM3_A.js")), At = R(() => import("./BaseIcon-Cb3zzG6s.js")), zt = R(() => import("./vue-ui-accordion-nvggWcGN.js")), Wt = R(() => import("./DataTable-DT2kIdQ6.js")), Xt = R(() => import("./PenAndPaper-Ct3qJ4lA.js")), Pt = R(() => import("./UserOptions-rW2fRf3V.js")), Yt = R(() => import("./PackageVersion-DPO-OOVI.js")), Mt = R(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_quadrant: Ot } = Tl(), { isThemeValid: Bt, warnInvalidTheme: Nt } = Xl(), M = St, De = m(() => !!M.dataset && M.dataset.length), $ = h(Lt()), ce = Tt, he = h(!1), _e = h(""), He = h(0), x = h(!1), V = h(null), Ee = h(null), Ue = h(null), Qe = h(null), Ge = h(null), Ke = h(0), je = h(0), Je = h(0), Ze = h(!1), oe = h(null), Te = h(null), ye = h(!1), be = h(!1), j = h(null), fe = h(null), et = h({ x: 0, y: 0 }), qe = h("pointer"), pe = h(!1), e = h(ze()), X = m(() => e.value.userOptions.useCursorPointer), Vt = m(() => ({
58
+ defaultConfig: {
59
+ userOptions: { show: !1 },
60
+ table: { show: !1 },
61
+ style: {
62
+ chart: {
63
+ backgroundColor: "#99999930",
64
+ layout: {
65
+ grid: {
66
+ stroke: "#6A6A6A",
67
+ graduations: {
68
+ stroke: "#6A6A6A",
69
+ color: "#6A6A6A90"
70
+ },
71
+ xAxis: {
72
+ auto: !0
73
+ },
74
+ yAxis: {
75
+ auto: !0
76
+ }
77
+ },
78
+ labels: {
79
+ quadrantLabels: { show: !1 },
80
+ plotLabels: { show: !1 },
81
+ axisLabels: { show: !1 }
82
+ },
83
+ plots: {
84
+ outlineColor: "#6A6A6A"
85
+ }
86
+ },
87
+ legend: {
88
+ backgroundColor: "transparent"
89
+ }
90
+ }
91
+ }
92
+ },
93
+ userConfig: e.value.skeletonConfig ?? {}
94
+ })), { loading: ge, FINAL_DATASET: tt } = ql({
95
+ ...sl(M),
96
+ FINAL_CONFIG: e,
97
+ prepareConfig: ze,
98
+ callback: () => {
99
+ Promise.resolve().then(async () => {
100
+ await Ce(), k.value.showTable = e.value.table.show;
101
+ });
102
+ },
103
+ skeletonDataset: M.config?.skeletonDataset ?? [
104
+ {
105
+ name: "_",
106
+ shape: "circle",
107
+ color: "#CACACA",
108
+ series: [
109
+ { name: "_", x: -6, y: -4 },
110
+ { name: "_", x: -5, y: -2 },
111
+ { name: "_", x: -4, y: -1 },
112
+ { name: "_", x: -3, y: -0.5 },
113
+ { name: "_", x: -2, y: -0.25 },
114
+ { name: "_", x: -1, y: -0.135 },
115
+ { name: "_", x: 0, y: 0 },
116
+ { name: "_", x: 1, y: 0.135 },
117
+ { name: "_", x: 2, y: 0.25 },
118
+ { name: "_", x: 3, y: 0.5 },
119
+ { name: "_", x: 4, y: 1 },
120
+ { name: "_", x: 5, y: 2 },
121
+ { name: "_", x: 6, y: 4 }
122
+ ]
123
+ }
124
+ ],
125
+ skeletonConfig: dl({
126
+ defaultConfig: e.value,
127
+ userConfig: Vt.value
128
+ })
129
+ }), { userOptionsVisible: Ae, setUserOptionsVisibility: lt, keepUserOptionState: at } = Pl({ config: e.value }), { svgRef: E } = Yl({ config: e.value.style.chart.title });
130
+ function ze() {
131
+ const l = Re({
132
+ userConfig: M.config,
133
+ defaultConfig: Ot
134
+ }), o = l.theme;
135
+ if (!o) return l;
136
+ if (!Bt.value(l))
137
+ return Nt(l), l;
138
+ const a = Re({
139
+ userConfig: Bl[o] || M.config,
140
+ defaultConfig: l
141
+ }), s = Re({
142
+ userConfig: M.config,
143
+ defaultConfig: a
144
+ });
145
+ return {
146
+ ...s,
147
+ customPalette: s.customPalette.length ? s.customPalette : cl[o] || Ie
148
+ };
149
+ }
150
+ Fe(() => M.config, (l) => {
151
+ e.value = ze(), Ae.value = !e.value.userOptions.showOnChartHover, ot(), Ke.value += 1, je.value += 1, Je.value += 1, k.value.plotLabels.show = e.value.style.chart.layout.labels.plotLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
152
+ }, { deep: !0 });
153
+ const F = xt(null), J = xt(null), Z = m(() => e.value.debug);
154
+ function ot() {
155
+ if (hl(M.dataset) ? ae({
156
+ componentName: "VueUiQuadrant",
157
+ type: "dataset",
158
+ debug: Z.value
159
+ }) : M.dataset.forEach((l, o) => {
160
+ [null, void 0].includes(l.name) && ae({
161
+ componentName: "VueUiQuadrant",
162
+ type: "datasetSerieAttribute",
163
+ property: "name",
164
+ index: o,
165
+ debug: Z.value
166
+ }), [null, void 0].includes(l.series) ? ae({
167
+ componentName: "VueUiQuadrant",
168
+ type: "datasetSerieAttribute",
169
+ property: "series",
170
+ index: o,
171
+ debug: Z.value
172
+ }) : l.series.forEach((a, s) => {
173
+ [null, void 0].includes(a.name) && ae({
174
+ componentName: "VueUiQuadrant",
175
+ type: "datasetSerieAttribute",
176
+ property: "name",
177
+ key: "series",
178
+ index: s,
179
+ debug: Z.value
180
+ });
181
+ });
182
+ }), e.value.responsive) {
183
+ const l = Sl(() => {
184
+ const { width: o, height: a } = _l({
185
+ chart: V.value,
186
+ title: e.value.style.chart.title.text ? Ee.value : null,
187
+ legend: e.value.style.chart.legend.show ? Ue.value : null,
188
+ source: Qe.value,
189
+ noTitle: Ge.value
190
+ });
191
+ L.value = 48, requestAnimationFrame(() => {
192
+ t.value.height = a, t.value.usableHeight = a - L.value * 2, t.value.width = o, t.value.usableWidth = o - L.value * 2, t.value.top = L.value, t.value.left = L.value, t.value.right = o - L.value, t.value.bottom = a - L.value, t.value.centerX = o / 2, t.value.centerY = a - a / 2, t.value.padding = L.value;
193
+ });
194
+ });
195
+ F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect()), F.value = new ResizeObserver(l), J.value = V.value.parentNode, F.value.observe(J.value);
196
+ }
197
+ }
198
+ nl(() => {
199
+ Ze.value = !0, ot();
200
+ }), rl(() => {
201
+ F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect());
202
+ });
203
+ const { isPrinting: We, isImaging: Xe, generatePdf: ut, generateImage: st } = zl({
204
+ elementId: `vue-ui-quadrant_${$.value}`,
205
+ fileName: e.value.style.chart.title.text || "vue-ui-quadrant",
206
+ options: e.value.userOptions.print
207
+ }), Ft = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), nt = m(() => yl(e.value.customPalette)), k = h({
208
+ plotLabels: {
209
+ show: e.value.style.chart.layout.labels.plotLabels.show
210
+ },
211
+ showTable: e.value.table.show,
212
+ showTooltip: e.value.style.chart.tooltip.show
213
+ }), L = h(48), t = h({
214
+ height: e.value.style.chart.height,
215
+ usableHeight: e.value.style.chart.height - L.value * 2,
216
+ width: e.value.style.chart.width,
217
+ usableWidth: e.value.style.chart.width - L.value * 2,
218
+ top: L.value,
219
+ left: L.value,
220
+ right: e.value.style.chart.width - L.value,
221
+ bottom: e.value.style.chart.height - L.value,
222
+ centerX: e.value.style.chart.width / 2,
223
+ centerY: e.value.style.chart.height - e.value.style.chart.height / 2,
224
+ padding: L.value
225
+ }), b = h({
226
+ ...JSON.parse(JSON.stringify(t.value)),
227
+ startX: 0,
228
+ startY: 0
229
+ });
230
+ Fe(() => t.value, (l) => {
231
+ l && (b.value = {
232
+ ...JSON.parse(JSON.stringify(t.value)),
233
+ startX: 0,
234
+ startY: 0
235
+ });
236
+ }, { deep: !0 });
237
+ const f = h(null), U = m(() => {
238
+ switch (f.value) {
239
+ case "TL":
240
+ return {
241
+ x: b.value.startX + b.value.width / 2,
242
+ y: b.value.height,
243
+ text: e.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
244
+ fontSize: e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
245
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
246
+ bold: e.value.style.chart.layout.labels.quadrantLabels.tl.bold
247
+ };
248
+ case "TR":
249
+ return {
250
+ x: b.value.startX + b.value.width / 2,
251
+ y: b.value.height,
252
+ text: e.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
253
+ fontSize: e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
254
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
255
+ bold: e.value.style.chart.layout.labels.quadrantLabels.tr.bold
256
+ };
257
+ case "BR":
258
+ return {
259
+ x: b.value.startX + b.value.width / 2,
260
+ y: b.value.height * 1.678,
261
+ text: e.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
262
+ fontSize: e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
263
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
264
+ bold: e.value.style.chart.layout.labels.quadrantLabels.br.bold
265
+ };
266
+ case "BL":
267
+ return {
268
+ x: b.value.startX + b.value.width / 2,
269
+ y: b.value.height * 1.678,
270
+ text: e.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
271
+ fontSize: e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
272
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
273
+ bold: e.value.style.chart.layout.labels.quadrantLabels.bl.bold
274
+ };
275
+ default:
276
+ return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
277
+ }
278
+ }), It = h(null), me = h(!1);
279
+ function ue({ targetX: l, targetY: o, targetW: a, targetH: s, side: u }) {
280
+ f.value && re(u);
281
+ const i = {
282
+ x: l - b.value.startX,
283
+ y: o - b.value.startY,
284
+ w: a - b.value.width,
285
+ h: s - b.value.height
286
+ }, c = e.value.zoomAnimationFrames;
287
+ let Y = 0;
288
+ function we() {
289
+ me.value = !0, b.value.startX += i.x / c, b.value.startY += i.y / c, b.value.width += i.w / c, b.value.height += i.h / c, Y += 1, Y < c ? It.value = requestAnimationFrame(we) : me.value = !1;
290
+ }
291
+ we();
292
+ }
293
+ function I(l) {
294
+ if (!me.value)
295
+ if (x.value && f.value === l)
296
+ ue({
297
+ targetX: 0,
298
+ targetY: 0,
299
+ targetW: t.value.width,
300
+ targetH: t.value.height
301
+ }), f.value = null, x.value = !1;
302
+ else {
303
+ switch (f.value = l, l) {
304
+ case "TL":
305
+ ue({
306
+ targetX: 0,
307
+ targetY: 0,
308
+ targetW: t.value.width / 2 + t.value.left,
309
+ targetH: t.value.height / 2 + t.value.top,
310
+ side: "tl"
311
+ });
312
+ break;
313
+ case "TR":
314
+ ue({
315
+ targetX: t.value.width / 2 - t.value.left,
316
+ targetY: 0,
317
+ targetW: t.value.width / 2 + t.value.left,
318
+ targetH: t.value.height / 2 + t.value.top,
319
+ side: "tr"
320
+ });
321
+ break;
322
+ case "BR":
323
+ ue({
324
+ targetX: t.value.width / 2 - t.value.left,
325
+ targetY: t.value.height / 2 - t.value.top,
326
+ targetW: t.value.width / 2 + t.value.left,
327
+ targetH: t.value.height / 2 + t.value.top,
328
+ side: "br"
329
+ });
330
+ break;
331
+ case "BL":
332
+ ue({
333
+ targetX: 0,
334
+ targetY: t.value.height / 2 - t.value.top,
335
+ targetW: t.value.width / 2 + t.value.left,
336
+ targetH: t.value.height / 2 + t.value.top,
337
+ side: "bl"
338
+ });
339
+ break;
340
+ default:
341
+ b.value.startX = 0, b.value.startY = 0, b.value.width = t.value.width, b.value.height = t.value.height;
342
+ break;
343
+ }
344
+ x.value = !0;
345
+ }
346
+ }
347
+ const Rt = m(() => {
348
+ const l = e.value.style.chart.layout.grid.graduations.steps, o = t.value.usableWidth / (l * 2), a = t.value.top, s = [];
349
+ for (let u = 0; u < l; u += 1)
350
+ s.push({
351
+ x: t.value.padding + o * u,
352
+ y: a + t.value.usableHeight * (u / l / 2),
353
+ height: t.value.usableHeight * (1 - u / l),
354
+ width: t.value.usableWidth * (1 - u / l),
355
+ opacity: Math.round((u + 1) / l * 20)
356
+ });
357
+ return s;
358
+ }), z = m(() => {
359
+ let l = e.value.style.chart.layout.grid.xAxis.max, o = e.value.style.chart.layout.grid.xAxis.min, a = e.value.style.chart.layout.grid.yAxis.max, s = e.value.style.chart.layout.grid.yAxis.min;
360
+ return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...ee.value.flatMap((u) => u.series.map((i) => i.x))), o = Math.min(...ee.value.flatMap((u) => u.series.map((i) => i.x)))), e.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...ee.value.flatMap((u) => u.series.map((i) => i.y))), s = Math.min(...ee.value.flatMap((u) => u.series.map((i) => i.y)))), {
361
+ x: {
362
+ max: l,
363
+ min: o
364
+ },
365
+ y: {
366
+ max: a,
367
+ min: s
368
+ }
369
+ };
370
+ }), C = h([]), ee = m(() => tt.value.map((l, o) => ({
371
+ ...l,
372
+ series: fl({
373
+ data: l.series,
374
+ threshold: e.value.downsample.threshold
375
+ }),
376
+ id: `cat_${o}_${$.value}`,
377
+ color: bl(l.color) || nt.value[o] || Ie[o]
378
+ }))), Pe = m(() => ee.value.filter((l) => !C.value.includes(l.id))), Dt = m(() => ee.value.map((l, o) => ({
379
+ ...l,
380
+ shape: l.shape || "circle",
381
+ series: l.series.map((a) => ({
382
+ ...a,
383
+ x: rt(a.x),
384
+ y: it(a.y),
385
+ xValue: a.x,
386
+ yValue: a.y,
387
+ quadrantSide: dt({ x: a.x, y: a.y }),
388
+ categoryName: l.name,
389
+ shape: l.shape,
390
+ color: l.color
391
+ }))
392
+ }))), W = m(() => (tt.value.forEach((l, o) => {
393
+ l.series.forEach((a, s) => {
394
+ [null, void 0].includes(a.x) && ae({
395
+ componentName: "VueUiQuadrant",
396
+ type: "datasetSerieAttribute",
397
+ property: "x",
398
+ key: "series",
399
+ index: s,
400
+ debug: Z.value
401
+ }), [null, void 0].includes(a.y) && ae({
402
+ componentName: "VueUiQuadrant",
403
+ type: "datasetSerieAttribute",
404
+ property: "y",
405
+ key: "series",
406
+ index: s,
407
+ debug: Z.value
408
+ });
409
+ });
410
+ }), Pe.value.map((l, o) => ({
411
+ ...l,
412
+ shape: l.shape || "circle",
413
+ color: l.color || nt.value[o] || Ie[o],
414
+ series: l.series.map((a) => ({
415
+ ...a,
416
+ x: rt(a.x),
417
+ y: it(a.y),
418
+ xValue: a.x,
419
+ yValue: a.y,
420
+ quadrantSide: dt({ x: a.x, y: a.y }),
421
+ categoryName: l.name,
422
+ shape: l.shape,
423
+ color: l.color,
424
+ uid: Lt()
425
+ }))
426
+ }))));
427
+ function rt(l) {
428
+ if (l >= 0) {
429
+ const o = l / z.value.x.max;
430
+ return t.value.centerX + t.value.usableWidth / 2 * o;
431
+ } else {
432
+ const o = Math.abs(l) / Math.abs(z.value.x.min);
433
+ return t.value.centerX - t.value.usableWidth / 2 * o;
434
+ }
435
+ }
436
+ function it(l) {
437
+ if (l >= 0) {
438
+ const o = l / z.value.y.max;
439
+ return t.value.centerY + (1 - t.value.usableHeight / 2 * o);
440
+ } else {
441
+ const o = Math.abs(l) / Math.abs(z.value.y.min);
442
+ return t.value.centerY - (1 - t.value.usableHeight / 2 * o);
443
+ }
444
+ }
445
+ const xe = m(() => {
446
+ const l = W.value.flatMap((c) => c.series.map((Y) => ({
447
+ x: Y.xValue,
448
+ y: Y.yValue,
449
+ name: Y.name,
450
+ category: Y.categoryName,
451
+ quadrantSide: Y.quadrantSide,
452
+ sideName: e.value.style.chart.layout.labels.quadrantLabels[Y.quadrantSide].text,
453
+ color: c.color,
454
+ shape: c.shape
455
+ }))), o = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", s = [e.value.translations.category, e.value.translations.item, o, a, e.value.translations.side], u = l.map((c) => [c.category, c.name, c.x, c.y, c.sideName || c.quadrantSide]), i = l.map((c) => ({
456
+ shape: c.shape,
457
+ color: c.color
458
+ }));
459
+ return { head: s, body: u, itsShapes: i, tableData: l };
460
+ }), te = m(() => {
461
+ const l = xe.value.head, o = xe.value.tableData.map((u) => [
462
+ {
463
+ shape: u.shape,
464
+ color: u.color,
465
+ name: u.category
466
+ },
467
+ u.name,
468
+ D(
469
+ e.value.style.chart.layout.labels.plotLabels.x.formatter,
470
+ u.x,
471
+ H({
472
+ v: u.x,
473
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
474
+ })
475
+ ),
476
+ D(
477
+ e.value.style.chart.layout.labels.plotLabels.y.formatter,
478
+ u.y,
479
+ H({
480
+ v: u.y,
481
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
482
+ })
483
+ ),
484
+ u.sideName || u.quadrantSide
485
+ ]), a = o.map((u) => u.map((i, c) => c === 0 ? i.name ?? "" : i)), s = {
486
+ th: {
487
+ backgroundColor: e.value.table.th.backgroundColor,
488
+ color: e.value.table.th.color,
489
+ outline: e.value.table.th.outline
490
+ },
491
+ td: {
492
+ backgroundColor: e.value.table.td.backgroundColor,
493
+ color: e.value.table.td.color,
494
+ outline: e.value.table.td.outline
495
+ },
496
+ breakpoint: e.value.table.responsiveBreakpoint
497
+ };
498
+ return { head: l, body: o, a11yBody: a, config: s, colNames: l };
499
+ });
500
+ function Ht() {
501
+ C.value.length ? C.value = [] : Q.value.forEach((l) => {
502
+ C.value.push(l.id);
503
+ });
504
+ }
505
+ function se(l) {
506
+ C.value.includes(l) ? C.value = C.value.filter((a) => a !== l) : C.value.push(l);
507
+ const o = ct();
508
+ ce("selectLegend", o);
509
+ }
510
+ const Q = m(() => Dt.value.map((l) => ({
511
+ name: l.name,
512
+ shape: l.shape,
513
+ color: l.color,
514
+ id: l.id,
515
+ opacity: C.value.includes(l.id) ? 0.5 : 1,
516
+ segregate: () => se(l.id),
517
+ isSegregated: C.value.includes(l.id)
518
+ })));
519
+ function vt(l) {
520
+ if (!Q.value.length)
521
+ return e.value.debug && console.warn("VueUiQuadrant - There are no series to show."), null;
522
+ const o = Q.value.find((a) => a.name === l);
523
+ return o || (e.value.debug && console.warn(`VueUiQuadrant - Series name not found "${l}"`), null);
524
+ }
525
+ function Et(l) {
526
+ const o = vt(l);
527
+ o !== null && C.value.includes(o.id) && se(o.id);
528
+ }
529
+ function Ut(l) {
530
+ const o = vt(l);
531
+ o !== null && (C.value.includes(o.id) || se(o.id));
532
+ }
533
+ const Qt = m(() => ({
534
+ cy: "quadrant-div-legend",
535
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
536
+ color: e.value.style.chart.legend.color,
537
+ fontSize: e.value.style.chart.legend.fontSize,
538
+ paddingBottom: 12,
539
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
540
+ }));
541
+ function dt(l) {
542
+ switch (!0) {
543
+ case (l.x >= 0 && l.y >= 0):
544
+ return "tr";
545
+ case (l.x >= 0 && l.y < 0):
546
+ return "br";
547
+ case (l.x < 0 && l.y < 0):
548
+ return "bl";
549
+ case (l.x < 0 && l.y >= 0):
550
+ return "tl";
551
+ default:
552
+ return "";
553
+ }
554
+ }
555
+ const G = h(null), ne = h(null), Ye = h(null);
556
+ function Me() {
557
+ G.value = null, ne.value = null, j.value = null, fe.value = null, he.value = !1;
558
+ }
559
+ function Gt(l) {
560
+ if (!E.value || !l) return;
561
+ const o = `[data-a11y-plot-id="${l}"]`, a = E.value.querySelector(o);
562
+ if (!a) return;
563
+ const s = a.getBoundingClientRect();
564
+ et.value = {
565
+ x: s.left + s.width / 2,
566
+ y: s.top + s.height / 2
567
+ };
568
+ }
569
+ function $e(l, o, a, s = "pointer", u = null) {
570
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: a }), G.value = o.uid, ne.value = {
571
+ color: l.color,
572
+ shape: l.shape
573
+ }, qe.value = s, j.value = u, fe.value = o.uid, Ye.value = {
574
+ datapoint: o,
575
+ seriesIndex: a,
576
+ series: W.value,
577
+ config: e.value
578
+ };
579
+ const i = e.value.style.chart.tooltip.customFormat;
580
+ if (Ll(i) && Cl(() => i({
581
+ seriesIndex: a,
582
+ datapoint: o,
583
+ series: W.value,
584
+ config: e.value
585
+ })))
586
+ _e.value = i({
587
+ seriesIndex: a,
588
+ datapoint: o,
589
+ series: W.value,
590
+ config: e.value
591
+ });
592
+ else {
593
+ let c = "";
594
+ o.quadrantSide && (c += `<div style="color:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].color};font-weight:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].bold ? "bold" : "400"}">${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text}</div>`), c += `<div>${l.name}</div>`, c += `<div style="padding-bottom:6px;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px">${o.name}</div>`, c += `<div>${e.value.style.chart.layout.grid.xAxis.name ? e.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${D(
595
+ e.value.style.chart.layout.labels.plotLabels.x.formatter,
596
+ o.xValue,
597
+ H({
598
+ v: o.xValue,
599
+ r: e.value.style.chart.tooltip.roundingValue
600
+ }),
601
+ { datapoint: o, category: l, categoryIndex: a }
602
+ )}</b></div>`, c += `<div>${e.value.style.chart.layout.grid.yAxis.name ? e.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${D(
603
+ e.value.style.chart.layout.labels.plotLabels.y.formatter,
604
+ o.yValue,
605
+ H({
606
+ v: o.yValue,
607
+ r: e.value.style.chart.tooltip.roundingValue
608
+ }),
609
+ { datapoint: o, category: l, categoryIndex: a }
610
+ )}</b></div>`, _e.value = `<div style="text-align:left;font-size:${e.value.style.chart.tooltip.fontSize}px">${c}</div>`;
611
+ }
612
+ s === "keyboard" && Ce(() => {
613
+ Gt(o.uid);
614
+ }), he.value = !0;
615
+ }
616
+ function Oe(l, o) {
617
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), !(fe.value === l.uid && qe.value === "keyboard") && (he.value = !1, G.value = null, ne.value = null);
618
+ }
619
+ function ke(l, o, a) {
620
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: a });
621
+ const s = {
622
+ category: l.name,
623
+ shape: l.shape,
624
+ itemName: o.name,
625
+ x: o.xValue,
626
+ y: o.yValue,
627
+ quadrantSide: o.quadrantSide,
628
+ sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
629
+ };
630
+ ce("selectPlot", s);
631
+ }
632
+ function re(l) {
633
+ if (!l) return;
634
+ const o = W.value.flatMap((s) => s.series.filter((u) => u.quadrantSide === l).map((u) => ({
635
+ category: u.categoryName,
636
+ itemName: u.name,
637
+ x: u.xValue,
638
+ y: u.yValue
639
+ }))), a = {
640
+ quadrantSide: l,
641
+ sideName: e.value.style.chart.layout.labels.quadrantLabels[l].text,
642
+ items: [...o]
643
+ };
644
+ ce("selectSide", a);
645
+ }
646
+ const S = m(() => ({
647
+ TL: {
648
+ tl: {
649
+ x: t.value.left + t.value.usableWidth / 4 - 20,
650
+ y: 0,
651
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
652
+ },
653
+ tr: {
654
+ x: t.value.left + t.value.usableWidth / 4,
655
+ y: 0,
656
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
657
+ },
658
+ br: {
659
+ x: t.value.left + t.value.usableWidth / 4,
660
+ y: 20,
661
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
662
+ },
663
+ bl: {
664
+ x: t.value.left + t.value.usableWidth / 4 - 20,
665
+ y: 20,
666
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
667
+ },
668
+ crosshairs: {
669
+ horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},20 ${t.value.left + t.value.usableWidth / 4 + 20},20`,
670
+ vertical: `M ${t.value.left + t.value.usableWidth / 4},0 ${t.value.left + t.value.usableWidth / 4},40`
671
+ }
672
+ },
673
+ TR: {
674
+ tl: {
675
+ x: t.value.centerX + t.value.usableWidth / 4 - 20,
676
+ y: 0,
677
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
678
+ },
679
+ tr: {
680
+ x: t.value.centerX + t.value.usableWidth / 4,
681
+ y: 0,
682
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
683
+ },
684
+ br: {
685
+ x: t.value.centerX + t.value.usableWidth / 4,
686
+ y: 20,
687
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
688
+ },
689
+ bl: {
690
+ x: t.value.centerX + t.value.usableWidth / 4 - 20,
691
+ y: 20,
692
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
693
+ },
694
+ crosshairs: {
695
+ horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},20 ${t.value.centerX + t.value.usableWidth / 4 + 20},20`,
696
+ vertical: `M ${t.value.centerX + t.value.usableWidth / 4},0 ${t.value.centerX + t.value.usableWidth / 4},40`
697
+ }
698
+ },
699
+ BR: {
700
+ tl: {
701
+ x: t.value.centerX + t.value.usableWidth / 4 - 20,
702
+ y: t.value.centerY - 48,
703
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
704
+ },
705
+ tr: {
706
+ x: t.value.centerX + t.value.usableWidth / 4,
707
+ y: t.value.centerY - 48,
708
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
709
+ },
710
+ br: {
711
+ x: t.value.centerX + t.value.usableWidth / 4,
712
+ y: t.value.centerY - 28,
713
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
714
+ },
715
+ bl: {
716
+ x: t.value.centerX + t.value.usableWidth / 4 - 20,
717
+ y: t.value.centerY - 28,
718
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
719
+ },
720
+ crosshairs: {
721
+ horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.centerX + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
722
+ vertical: `M ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 8}`
723
+ }
724
+ },
725
+ BL: {
726
+ tl: {
727
+ x: t.value.left + t.value.usableWidth / 4 - 20,
728
+ y: t.value.centerY - 48,
729
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
730
+ },
731
+ tr: {
732
+ x: t.value.left + t.value.usableWidth / 4,
733
+ y: t.value.centerY - 48,
734
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
735
+ },
736
+ br: {
737
+ x: t.value.left + t.value.usableWidth / 4,
738
+ y: t.value.centerY - 28,
739
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
740
+ },
741
+ bl: {
742
+ x: t.value.left + t.value.usableWidth / 4 - 20,
743
+ y: t.value.centerY - 28,
744
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
745
+ },
746
+ crosshairs: {
747
+ horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.left + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
748
+ vertical: `M ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 8}`
749
+ }
750
+ }
751
+ }));
752
+ function ct() {
753
+ return W.value.map((l) => ({
754
+ color: l.color,
755
+ name: l.name,
756
+ shape: l.shape,
757
+ series: l.series.map((o) => ({
758
+ name: o.name,
759
+ x: o.xValue,
760
+ y: o.yValue,
761
+ quadrantSide: o.quadrantSide,
762
+ sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
763
+ }))
764
+ }));
765
+ }
766
+ function Be(l = null) {
767
+ Ce(() => {
768
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = xe.value.head, s = xe.value.body, u = o.concat([a]).concat(s), i = kl(u);
769
+ l ? l(i) : wl({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-quadrant" });
770
+ });
771
+ }
772
+ const K = h(!1);
773
+ function ht(l) {
774
+ K.value = l, He.value += 1;
775
+ }
776
+ function yt() {
777
+ k.value.showTable = !k.value.showTable;
778
+ }
779
+ function bt() {
780
+ k.value.plotLabels.show = !k.value.plotLabels.show;
781
+ }
782
+ function ft() {
783
+ k.value.showTooltip = !k.value.showTooltip;
784
+ }
785
+ const ie = h(!1);
786
+ function Ne() {
787
+ ie.value = !ie.value;
788
+ }
789
+ async function Kt({ scale: l = 2 } = {}) {
790
+ if (!V.value) return;
791
+ const { width: o, height: a } = V.value.getBoundingClientRect(), s = o / a, { imageUri: u, base64: i } = await Ml({ domElement: V.value, base64: !0, img: !0, scale: l });
792
+ return {
793
+ imageUri: u,
794
+ base64: i,
795
+ title: e.value.style.chart.title.text,
796
+ width: o,
797
+ height: a,
798
+ aspectRatio: s
799
+ };
800
+ }
801
+ const ve = m(() => {
802
+ const l = e.value.table.useDialog && !e.value.table.show, o = k.value.showTable;
803
+ return {
804
+ component: l ? Mt : zt,
805
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
806
+ props: l ? {
807
+ backgroundColor: e.value.table.th.backgroundColor,
808
+ color: e.value.table.th.color,
809
+ headerColor: e.value.table.th.color,
810
+ headerBg: e.value.table.th.backgroundColor,
811
+ isFullscreen: K.value,
812
+ fullscreenParent: V.value,
813
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
814
+ isCursorPointer: X.value
815
+ } : {
816
+ hideDetails: !0,
817
+ config: {
818
+ open: o,
819
+ maxHeight: 1e4,
820
+ body: {
821
+ backgroundColor: e.value.style.chart.backgroundColor,
822
+ color: e.value.style.chart.color
823
+ },
824
+ head: {
825
+ backgroundColor: e.value.style.chart.backgroundColor,
826
+ color: e.value.style.chart.color
827
+ }
828
+ }
829
+ }
830
+ };
831
+ });
832
+ Fe(() => k.value.showTable, (l) => {
833
+ e.value.table.show || (l && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
834
+ });
835
+ function pt() {
836
+ k.value.showTable = !1, Te.value && Te.value.setTableIconState(!1);
837
+ }
838
+ const jt = m(() => e.value.style.chart.backgroundColor), Jt = m(() => e.value.style.chart.legend), Zt = m(() => e.value.style.chart.title), { exportSvg: el, getSvg: tl } = Wl({
839
+ svg: E,
840
+ title: Zt,
841
+ legend: Jt,
842
+ legendItems: Q,
843
+ backgroundColor: jt
844
+ });
845
+ async function gt({ isCb: l }) {
846
+ be.value = !0, await Ce();
847
+ try {
848
+ if (l) {
849
+ const { blob: o, url: a, text: s, dataUrl: u } = await tl();
850
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: u }));
851
+ } else
852
+ await Promise.resolve(el());
853
+ } finally {
854
+ be.value = !1;
855
+ }
856
+ }
857
+ function ll(l) {
858
+ if (l?.stage === "start") {
859
+ ye.value = !0;
860
+ return;
861
+ }
862
+ if (l?.stage === "end") {
863
+ ye.value = !1;
864
+ return;
865
+ }
866
+ st();
867
+ }
868
+ async function mt() {
869
+ if (ce("copyAlt", {
870
+ config: e.value,
871
+ dataset: Pe.value
872
+ }), !e.value.userOptions.callbacks.altCopy) {
873
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
874
+ return;
875
+ }
876
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
877
+ config: e.value,
878
+ dataset: Pe.value
879
+ }));
880
+ }
881
+ function al() {
882
+ j.value = null, fe.value = null, pe.value = !0;
883
+ }
884
+ function ol() {
885
+ Me(), pe.value = !1;
886
+ }
887
+ function ul(l) {
888
+ if (!E.value || ie.value || document.activeElement !== E.value || !P.value.length) return;
889
+ const o = l.key === "ArrowLeft" || l.key === "ArrowUp", a = l.key === "ArrowRight" || l.key === "ArrowDown", s = l.key === "Enter" || l.key === " ", u = l.key === "Escape";
890
+ if (!o && !a && !s && !u) return;
891
+ if (l.preventDefault(), l.stopPropagation(), u) {
892
+ Me();
893
+ return;
894
+ }
895
+ if (s) {
896
+ if (j.value === null) return;
897
+ const le = P.value[j.value];
898
+ if (!le) return;
899
+ ke(le.category, le.plot, le.categoryIndex);
900
+ return;
901
+ }
902
+ let i = j.value;
903
+ const c = G.value ? P.value.findIndex((le) => le.plot.uid === G.value) : null, Y = i !== null && i >= 0 && i < P.value.length, we = c !== null && c >= 0 && c < P.value.length;
904
+ Y ? (i += a ? 1 : -1, i < 0 && (i = P.value.length - 1), i >= P.value.length && (i = 0)) : we ? (i = a ? c + 1 : c - 1, i >= P.value.length && (i = 0), i < 0 && (i = P.value.length - 1)) : a ? i = 0 : i = P.value.length - 1;
905
+ const Le = P.value[i];
906
+ Le && $e(Le.category, Le.plot, Le.categoryIndex, "keyboard", i);
907
+ }
908
+ const Ve = m(() => {
909
+ const l = te.value?.colNames ?? [], o = te.value?.a11yBody ?? [];
910
+ return { headers: l, rows: o };
911
+ }), P = m(() => W.value.flatMap((l, o) => l.series.map((a) => ({
912
+ category: l,
913
+ plot: a,
914
+ categoryIndex: o
915
+ }))));
916
+ return _t({
917
+ getData: ct,
918
+ getImage: Kt,
919
+ generatePdf: ut,
920
+ generateCsv: Be,
921
+ generateImage: st,
922
+ generateSvg: gt,
923
+ hideSeries: Ut,
924
+ showSeries: Et,
925
+ toggleTable: yt,
926
+ toggleLabels: bt,
927
+ toggleTooltip: ft,
928
+ toggleAnnotator: Ne,
929
+ toggleFullscreen: ht,
930
+ copyAlt: mt
931
+ }), (l, o) => (n(), r("div", {
932
+ class: O(`vue-data-ui-component vue-ui-quadrant ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
933
+ ref_key: "quadrantChart",
934
+ ref: V,
935
+ id: `vue-ui-quadrant_${$.value}`,
936
+ style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
937
+ onMouseenter: o[14] || (o[14] = () => v(lt)(!0)),
938
+ onMouseleave: o[15] || (o[15] = () => {
939
+ v(lt)(!1), pe.value || Me();
940
+ })
941
+ }, [
942
+ d("div", {
943
+ id: `chart-instructions-${$.value}`,
944
+ class: "sr-only"
945
+ }, [
946
+ d("p", null, w(e.value.a11y.translations.keyboardNavigation), 1)
947
+ ], 8, Dl),
948
+ Ve.value?.rows?.length ? (n(), B(Vl, {
949
+ key: 0,
950
+ uid: $.value,
951
+ head: Ve.value.headers,
952
+ body: Ve.value.rows,
953
+ notice: e.value.a11y.translations.tableAvailable,
954
+ caption: e.value.a11y.translations.tableCaption
955
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : y("", !0),
956
+ e.value.userOptions.buttons.annotator ? (n(), B(v(Xt), {
957
+ key: 1,
958
+ svgRef: v(E),
959
+ backgroundColor: e.value.style.chart.backgroundColor,
960
+ color: e.value.style.chart.color,
961
+ active: ie.value,
962
+ isCursorPointer: X.value,
963
+ onClose: Ne
964
+ }, {
965
+ "annotator-action-close": p(() => [
966
+ g(l.$slots, "annotator-action-close", {}, void 0, !0)
967
+ ]),
968
+ "annotator-action-color": p(({ color: a }) => [
969
+ g(l.$slots, "annotator-action-color", T(q({ color: a })), void 0, !0)
970
+ ]),
971
+ "annotator-action-draw": p(({ mode: a }) => [
972
+ g(l.$slots, "annotator-action-draw", T(q({ mode: a })), void 0, !0)
973
+ ]),
974
+ "annotator-action-undo": p(({ disabled: a }) => [
975
+ g(l.$slots, "annotator-action-undo", T(q({ disabled: a })), void 0, !0)
976
+ ]),
977
+ "annotator-action-redo": p(({ disabled: a }) => [
978
+ g(l.$slots, "annotator-action-redo", T(q({ disabled: a })), void 0, !0)
979
+ ]),
980
+ "annotator-action-delete": p(({ disabled: a }) => [
981
+ g(l.$slots, "annotator-action-delete", T(q({ disabled: a })), void 0, !0)
982
+ ]),
983
+ _: 3
984
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
985
+ Ft.value ? (n(), r("div", {
986
+ key: 2,
987
+ ref_key: "noTitle",
988
+ ref: Ge,
989
+ class: "vue-data-ui-no-title-space",
990
+ style: "height:36px; width: 100%;background:transparent"
991
+ }, null, 512)) : y("", !0),
992
+ e.value.style.chart.title.text ? (n(), r("div", {
993
+ key: 3,
994
+ ref_key: "chartTitle",
995
+ ref: Ee,
996
+ style: "width:100%;background:transparent;padding-bottom:12px"
997
+ }, [
998
+ (n(), B(Ol, {
999
+ key: `table_${Ke.value}`,
1000
+ config: {
1001
+ title: {
1002
+ cy: "quadrant-title",
1003
+ ...e.value.style.chart.title
1004
+ },
1005
+ subtitle: {
1006
+ cy: "quadrant-subtitle",
1007
+ ...e.value.style.chart.title.subtitle
1008
+ }
1009
+ }
1010
+ }, null, 8, ["config"]))
1011
+ ], 512)) : y("", !0),
1012
+ d("div", {
1013
+ id: `legend-top-${$.value}`
1014
+ }, null, 8, Hl),
1015
+ e.value.userOptions.show && De.value && (v(at) || v(Ae)) ? (n(), B(v(Pt), {
1016
+ ref_key: "userOptionsRef",
1017
+ ref: Te,
1018
+ key: `user_options_${He.value}`,
1019
+ backgroundColor: e.value.style.chart.backgroundColor,
1020
+ color: e.value.style.chart.color,
1021
+ isImaging: v(Xe),
1022
+ isPrinting: v(We),
1023
+ uid: $.value,
1024
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
1025
+ hasPdf: e.value.userOptions.buttons.pdf,
1026
+ hasImg: e.value.userOptions.buttons.img,
1027
+ hasSvg: e.value.userOptions.buttons.svg,
1028
+ hasXls: e.value.userOptions.buttons.csv,
1029
+ hasTable: e.value.userOptions.buttons.table,
1030
+ hasLabel: e.value.userOptions.buttons.labels,
1031
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
1032
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
1033
+ isFullscreen: K.value,
1034
+ isTooltip: k.value.showTooltip,
1035
+ titles: { ...e.value.userOptions.buttonTitles },
1036
+ chartElement: V.value,
1037
+ position: e.value.userOptions.position,
1038
+ hasAnnotator: e.value.userOptions.buttons.annotator,
1039
+ isAnnotation: ie.value,
1040
+ callbacks: e.value.userOptions.callbacks,
1041
+ printScale: e.value.userOptions.print.scale,
1042
+ tableDialog: e.value.table.useDialog,
1043
+ isCursorPointer: X.value,
1044
+ onToggleFullscreen: ht,
1045
+ onGeneratePdf: v(ut),
1046
+ onGenerateCsv: Be,
1047
+ onGenerateImage: ll,
1048
+ onGenerateSvg: gt,
1049
+ onToggleTable: yt,
1050
+ onToggleLabels: bt,
1051
+ onToggleTooltip: ft,
1052
+ onToggleAnnotator: Ne,
1053
+ onCopyAlt: mt,
1054
+ style: _({
1055
+ visibility: v(at) ? v(Ae) ? "visible" : "hidden" : "visible"
1056
+ })
1057
+ }, $t({ _: 2 }, [
1058
+ l.$slots.menuIcon ? {
1059
+ name: "menuIcon",
1060
+ fn: p(({ isOpen: a, color: s }) => [
1061
+ g(l.$slots, "menuIcon", T(q({ isOpen: a, color: s })), void 0, !0)
1062
+ ]),
1063
+ key: "0"
1064
+ } : void 0,
1065
+ l.$slots.optionTooltip ? {
1066
+ name: "optionTooltip",
1067
+ fn: p(() => [
1068
+ g(l.$slots, "optionTooltip", {}, void 0, !0)
1069
+ ]),
1070
+ key: "1"
1071
+ } : void 0,
1072
+ l.$slots.optionPdf ? {
1073
+ name: "optionPdf",
1074
+ fn: p(() => [
1075
+ g(l.$slots, "optionPdf", {}, void 0, !0)
1076
+ ]),
1077
+ key: "2"
1078
+ } : void 0,
1079
+ l.$slots.optionCsv ? {
1080
+ name: "optionCsv",
1081
+ fn: p(() => [
1082
+ g(l.$slots, "optionCsv", {}, void 0, !0)
1083
+ ]),
1084
+ key: "3"
1085
+ } : void 0,
1086
+ l.$slots.optionImg ? {
1087
+ name: "optionImg",
1088
+ fn: p(() => [
1089
+ g(l.$slots, "optionImg", {}, void 0, !0)
1090
+ ]),
1091
+ key: "4"
1092
+ } : void 0,
1093
+ l.$slots.optionSvg ? {
1094
+ name: "optionSvg",
1095
+ fn: p(() => [
1096
+ g(l.$slots, "optionSvg", {}, void 0, !0)
1097
+ ]),
1098
+ key: "5"
1099
+ } : void 0,
1100
+ l.$slots.optionTable ? {
1101
+ name: "optionTable",
1102
+ fn: p(() => [
1103
+ g(l.$slots, "optionTable", {}, void 0, !0)
1104
+ ]),
1105
+ key: "6"
1106
+ } : void 0,
1107
+ l.$slots.optionLabels ? {
1108
+ name: "optionLabels",
1109
+ fn: p(() => [
1110
+ g(l.$slots, "optionLabels", {}, void 0, !0)
1111
+ ]),
1112
+ key: "7"
1113
+ } : void 0,
1114
+ l.$slots.optionFullscreen ? {
1115
+ name: "optionFullscreen",
1116
+ fn: p(({ toggleFullscreen: a, isFullscreen: s }) => [
1117
+ g(l.$slots, "optionFullscreen", T(q({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
1118
+ ]),
1119
+ key: "8"
1120
+ } : void 0,
1121
+ l.$slots.optionAnnotator ? {
1122
+ name: "optionAnnotator",
1123
+ fn: p(({ toggleAnnotator: a, isAnnotator: s }) => [
1124
+ g(l.$slots, "optionAnnotator", T(q({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
1125
+ ]),
1126
+ key: "9"
1127
+ } : void 0,
1128
+ l.$slots.optionAltCopy ? {
1129
+ name: "optionAltCopy",
1130
+ fn: p(({ altCopy: a }) => [
1131
+ g(l.$slots, "optionAltCopy", T(q({ altCopy: a })), void 0, !0)
1132
+ ]),
1133
+ key: "10"
1134
+ } : void 0
1135
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
1136
+ d("div", El, [
1137
+ (n(), r("svg", {
1138
+ ref_key: "svgRef",
1139
+ ref: E,
1140
+ xmlns: v(pl),
1141
+ "aria-describedby": `chart-instructions-${$.value}`,
1142
+ class: O({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
1143
+ viewBox: `${b.value.startX} ${b.value.startY} ${b.value.width} ${b.value.height}`,
1144
+ style: _(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
1145
+ id: `svg_${$.value}`,
1146
+ tabindex: "0",
1147
+ onFocus: al,
1148
+ onBlur: ol,
1149
+ onKeydown: ul
1150
+ }, [
1151
+ de(v(Yt)),
1152
+ l.$slots["chart-background"] ? (n(), r("foreignObject", {
1153
+ key: 0,
1154
+ x: b.value.startX,
1155
+ y: b.value.startY,
1156
+ width: b.value.width,
1157
+ height: b.value.height,
1158
+ style: {
1159
+ pointerEvents: "none"
1160
+ }
1161
+ }, [
1162
+ g(l.$slots, "chart-background", {}, void 0, !0)
1163
+ ], 8, Ql)) : y("", !0),
1164
+ d("defs", null, [
1165
+ (n(!0), r(A, null, N(W.value, (a, s) => (n(), r("radialGradient", {
1166
+ cx: "50%",
1167
+ cy: "50%",
1168
+ r: "50%",
1169
+ fx: "50%",
1170
+ fy: "50%",
1171
+ id: `quadrant_gradient_${$.value}_${s}`
1172
+ }, [
1173
+ d("stop", {
1174
+ offset: "0%",
1175
+ "stop-color": v(Se)(v(gl)(a.color, 0.05), e.value.style.chart.layout.areas.opacity)
1176
+ }, null, 8, Kl),
1177
+ d("stop", {
1178
+ offset: "100%",
1179
+ "stop-color": v(Se)(a.color, e.value.style.chart.layout.areas.opacity)
1180
+ }, null, 8, jl)
1181
+ ], 8, Gl))), 256))
1182
+ ]),
1183
+ e.value.style.chart.layout.grid.graduations.show ? (n(), r("g", Jl, [
1184
+ (n(!0), r(A, null, N(Rt.value, (a) => (n(), r("rect", {
1185
+ fill: e.value.style.chart.layout.grid.graduations.fill ? v(Se)(e.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
1186
+ x: a.x,
1187
+ y: a.y,
1188
+ height: a.height <= 0 ? 1e-3 : a.height,
1189
+ width: a.width <= 0 ? 1e-3 : a.width,
1190
+ "stroke-width": e.value.style.chart.layout.grid.graduations.strokeWidth,
1191
+ stroke: e.value.style.chart.layout.grid.graduations.stroke,
1192
+ rx: e.value.style.chart.layout.grid.graduations.roundingForce
1193
+ }, null, 8, Zl))), 256))
1194
+ ])) : y("", !0),
1195
+ d("line", {
1196
+ x1: t.value.left,
1197
+ y1: t.value.centerY,
1198
+ x2: t.value.right,
1199
+ y2: t.value.centerY,
1200
+ stroke: e.value.style.chart.layout.grid.stroke,
1201
+ "stroke-width": e.value.style.chart.layout.grid.strokeWidth
1202
+ }, null, 8, ea),
1203
+ d("line", {
1204
+ x1: t.value.centerX,
1205
+ y1: t.value.top,
1206
+ x2: t.value.centerX,
1207
+ y2: t.value.bottom,
1208
+ stroke: e.value.style.chart.layout.grid.stroke,
1209
+ "stroke-width": e.value.style.chart.layout.grid.strokeWidth
1210
+ }, null, 8, ta),
1211
+ e.value.style.chart.layout.grid.showArrows ? (n(), r("g", la, [
1212
+ d("polygon", {
1213
+ points: `${t.value.right - 8},${t.value.centerY - 6} ${t.value.right},${t.value.centerY} ${t.value.right - 8},${t.value.centerY + 6}`,
1214
+ fill: e.value.style.chart.layout.grid.stroke,
1215
+ stroke: "none"
1216
+ }, null, 8, aa),
1217
+ d("polygon", {
1218
+ points: `${t.value.left + 8},${t.value.centerY - 6} ${t.value.left},${t.value.centerY} ${t.value.left + 8},${t.value.centerY + 6}`,
1219
+ fill: e.value.style.chart.layout.grid.stroke,
1220
+ stroke: "none"
1221
+ }, null, 8, oa),
1222
+ d("polygon", {
1223
+ points: `${t.value.centerX - 6},${t.value.top + 8} ${t.value.centerX},${t.value.top} ${t.value.centerX + 6},${t.value.top + 8}`,
1224
+ fill: e.value.style.chart.layout.grid.stroke,
1225
+ stroke: "none"
1226
+ }, null, 8, ua),
1227
+ d("polygon", {
1228
+ points: `${t.value.centerX - 6},${t.value.bottom - 8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX + 6},${t.value.bottom - 8}`,
1229
+ fill: e.value.style.chart.layout.grid.stroke,
1230
+ stroke: "none"
1231
+ }, null, 8, sa)
1232
+ ])) : y("", !0),
1233
+ e.value.style.chart.layout.labels.quadrantLabels.show && !x.value ? (n(), r("g", na, [
1234
+ e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (n(), r("text", {
1235
+ key: 0,
1236
+ x: 0,
1237
+ y: t.value.top - t.value.padding / 2,
1238
+ "text-anchor": "start",
1239
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
1240
+ "font-size": e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
1241
+ style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
1242
+ onClick: o[0] || (o[0] = (a) => re("tl"))
1243
+ }, w(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, ra)) : y("", !0),
1244
+ e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (n(), r("text", {
1245
+ key: 1,
1246
+ x: t.value.width,
1247
+ y: t.value.top - t.value.padding / 2,
1248
+ "text-anchor": "end",
1249
+ fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
1250
+ "font-size": e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
1251
+ style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
1252
+ onClick: o[1] || (o[1] = (a) => re("tr"))
1253
+ }, w(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ia)) : y("", !0),
1254
+ e.value.style.chart.layout.labels.quadrantLabels.br.text ? (n(), r("text", {
1255
+ key: 2,
1256
+ x: t.value.width,
1257
+ y: t.value.bottom + t.value.padding * 0.7,
1258
+ "text-anchor": "end",
1259
+ fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
1260
+ "font-size": e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
1261
+ style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
1262
+ onClick: o[2] || (o[2] = (a) => re("br"))
1263
+ }, w(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13, va)) : y("", !0),
1264
+ e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (n(), r("text", {
1265
+ key: 3,
1266
+ x: 0,
1267
+ y: t.value.bottom + t.value.padding * 0.7,
1268
+ "text-anchor": "start",
1269
+ fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
1270
+ "font-size": e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
1271
+ style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
1272
+ onClick: o[3] || (o[3] = (a) => re("bl"))
1273
+ }, w(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, da)) : y("", !0)
1274
+ ])) : y("", !0),
1275
+ e.value.style.chart.layout.labels.axisLabels.show ? (n(), r("g", ca, [
1276
+ d("text", {
1277
+ x: t.value.centerX,
1278
+ y: t.value.top - t.value.padding / 6,
1279
+ "text-anchor": "middle",
1280
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1281
+ fill: e.value.style.chart.layout.labels.axisLabels.color.positive
1282
+ }, w(v(D)(
1283
+ e.value.style.chart.layout.labels.plotLabels.y.formatter,
1284
+ z.value.y.max,
1285
+ v(H)({
1286
+ v: z.value.y.max,
1287
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
1288
+ })
1289
+ )), 9, ha),
1290
+ d("text", {
1291
+ x: t.value.centerX,
1292
+ y: t.value.top - t.value.padding / 2,
1293
+ "text-anchor": "middle",
1294
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1295
+ fill: e.value.style.chart.layout.labels.axisLabels.color.positive
1296
+ }, w(e.value.style.chart.layout.grid.yAxis.name), 9, ya),
1297
+ d("text", {
1298
+ x: t.value.centerX,
1299
+ y: t.value.bottom + t.value.padding * 0.35,
1300
+ "text-anchor": "middle",
1301
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1302
+ fill: e.value.style.chart.layout.labels.axisLabels.color.negative
1303
+ }, w(v(D)(
1304
+ e.value.style.chart.layout.labels.plotLabels.y.formatter,
1305
+ z.value.y.min,
1306
+ v(H)({
1307
+ v: z.value.y.min,
1308
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
1309
+ })
1310
+ )), 9, ba),
1311
+ d("text", {
1312
+ id: `xLabelMin_${$.value}`,
1313
+ "text-anchor": "middle",
1314
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1315
+ transform: `translate(${t.value.padding - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(-90)`,
1316
+ fill: e.value.style.chart.layout.labels.axisLabels.color.negative
1317
+ }, w(v(D)(
1318
+ e.value.style.chart.layout.labels.plotLabels.x.formatter,
1319
+ z.value.x.min,
1320
+ v(H)({
1321
+ v: z.value.x.min,
1322
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
1323
+ })
1324
+ )), 9, fa),
1325
+ d("text", {
1326
+ id: `xLabelMax_${$.value}`,
1327
+ "text-anchor": "middle",
1328
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1329
+ transform: `translate(${t.value.width - t.value.padding + e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
1330
+ fill: e.value.style.chart.layout.labels.axisLabels.color.positive
1331
+ }, w(v(D)(
1332
+ e.value.style.chart.layout.labels.plotLabels.x.formatter,
1333
+ z.value.x.max,
1334
+ v(H)({
1335
+ v: z.value.x.max,
1336
+ r: e.value.style.chart.layout.labels.plotLabels.rounding
1337
+ })
1338
+ )), 9, pa),
1339
+ d("text", {
1340
+ id: `xLabelMaxName_${$.value}`,
1341
+ "text-anchor": "middle",
1342
+ "font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
1343
+ transform: `translate(${t.value.width - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
1344
+ fill: e.value.style.chart.layout.labels.axisLabels.color.positive
1345
+ }, w(e.value.style.chart.layout.grid.xAxis.name), 9, ga)
1346
+ ])) : y("", !0),
1347
+ e.value.style.chart.layout.areas.show ? (n(), r("g", ma, [
1348
+ (n(!0), r(A, null, N(W.value, (a, s) => (n(), r("g", null, [
1349
+ a.series.length > 2 ? (n(), r("polygon", {
1350
+ key: 0,
1351
+ "data-cy-quadrant-area": "",
1352
+ fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${$.value}_${s})` : v(Se)(a.color, e.value.style.chart.layout.areas.opacity),
1353
+ points: v(ml)(a)
1354
+ }, null, 8, xa)) : y("", !0)
1355
+ ]))), 256))
1356
+ ])) : y("", !0),
1357
+ d("g", null, [
1358
+ d("rect", {
1359
+ onClick: o[4] || (o[4] = (a) => I("TL")),
1360
+ x: t.value.left,
1361
+ y: t.value.top,
1362
+ width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
1363
+ height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
1364
+ fill: "transparent",
1365
+ class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
1366
+ }, null, 10, $a),
1367
+ d("rect", {
1368
+ onClick: o[5] || (o[5] = (a) => I("TR")),
1369
+ x: t.value.centerX,
1370
+ y: t.value.top,
1371
+ width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
1372
+ height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
1373
+ fill: "transparent",
1374
+ class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
1375
+ }, null, 10, ka),
1376
+ d("rect", {
1377
+ onClick: o[6] || (o[6] = (a) => I("BR")),
1378
+ x: t.value.centerX,
1379
+ y: t.value.centerY,
1380
+ width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
1381
+ height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
1382
+ fill: "transparent",
1383
+ class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
1384
+ }, null, 10, wa),
1385
+ d("rect", {
1386
+ onClick: o[7] || (o[7] = (a) => I("BL")),
1387
+ x: t.value.left,
1388
+ y: t.value.centerY,
1389
+ width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
1390
+ height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
1391
+ fill: "transparent",
1392
+ class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
1393
+ }, null, 10, La)
1394
+ ]),
1395
+ e.value.style.chart.layout.labels.plotLabels.showAsTag ? (n(), r(A, { key: 7 }, [
1396
+ k.value.plotLabels.show ? (n(), r("g", za, [
1397
+ (n(!0), r(A, null, N(W.value, (a, s) => (n(), r(A, null, [
1398
+ (n(!0), r(A, null, N(a.series, (u) => (n(), r("foreignObject", {
1399
+ style: { overflow: "visible" },
1400
+ height: "10",
1401
+ width: "100",
1402
+ x: u.x - 50,
1403
+ y: u.y - e.value.style.chart.layout.labels.plotLabels.fontSize,
1404
+ onMouseover: (i) => $e(a, u, s),
1405
+ onMouseleave: (i) => Oe(u, s),
1406
+ onClick: (i) => ke(a, u, s)
1407
+ }, [
1408
+ d("div", {
1409
+ style: _(`color:${v($l)(a.color)};margin: 0 auto; font-size:${e.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
1410
+ }, w(u.name), 5)
1411
+ ], 40, Wa))), 256))
1412
+ ], 64))), 256))
1413
+ ])) : y("", !0)
1414
+ ], 64)) : (n(), r(A, { key: 6 }, [
1415
+ (n(!0), r(A, null, N(W.value, (a, s) => (n(), r("g", null, [
1416
+ l.$slots.datapoint && !v(ge) ? (n(!0), r(A, { key: 0 }, N(a.series, (u) => (n(), r("g", {
1417
+ key: u.uid
1418
+ }, [
1419
+ (n(), r("foreignObject", {
1420
+ x: u.x - 1,
1421
+ y: u.y - 1,
1422
+ width: "2",
1423
+ height: "2",
1424
+ style: { overflow: "visible", "pointer-events": "none" },
1425
+ onMouseenter: (i) => $e(a, u, s),
1426
+ onMouseleave: (i) => Oe(u, s),
1427
+ onClick: (i) => ke(a, u, s)
1428
+ }, [
1429
+ g(l.$slots, "datapoint", kt({ ref_for: !0 }, { datapoint: u }), void 0, !0)
1430
+ ], 40, Ca)),
1431
+ d("circle", {
1432
+ "data-a11y-plot-id": u.uid,
1433
+ cx: u.x,
1434
+ cy: u.y,
1435
+ r: Math.max(e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1), 10),
1436
+ fill: "transparent",
1437
+ "aria-label": `${a.name} ${u.name}: ${e.value.style.chart.layout.grid.xAxis.name || "x"} ${u.xValue}, ${e.value.style.chart.layout.grid.yAxis.name || "y"} ${u.yValue}`,
1438
+ style: { "pointer-events": "none" }
1439
+ }, null, 8, Sa)
1440
+ ]))), 128)) : (n(!0), r(A, { key: 1 }, N(a.series, (u, i) => (n(), r("g", {
1441
+ key: u.uid
1442
+ }, [
1443
+ de(Ct, {
1444
+ color: a.color,
1445
+ isSelected: G.value && u.uid === G.value,
1446
+ plot: u,
1447
+ radius: e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1),
1448
+ shape: a.shape,
1449
+ stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
1450
+ strokeWidth: e.value.style.chart.layout.plots.outlineWidth,
1451
+ onMouseenter: (c) => $e(a, u, s, "pointer"),
1452
+ onMouseleave: (c) => Oe(u, s),
1453
+ onClick: (c) => ke(a, u, s)
1454
+ }, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]),
1455
+ d("circle", {
1456
+ "data-dom-to-png-ignore": "",
1457
+ "data-a11y-plot-id": u.uid,
1458
+ cx: u.x,
1459
+ cy: u.y,
1460
+ r: Math.max(e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1), 10),
1461
+ fill: "transparent",
1462
+ "aria-label": `${a.name} ${u.name}: ${e.value.style.chart.layout.grid.xAxis.name || "x"} ${u.xValue}, ${e.value.style.chart.layout.grid.yAxis.name || "y"} ${u.yValue}`,
1463
+ style: { "pointer-events": "none" }
1464
+ }, null, 8, _a)
1465
+ ]))), 128))
1466
+ ]))), 256)),
1467
+ k.value.plotLabels.show ? (n(), r("g", Ta, [
1468
+ (n(!0), r(A, null, N(W.value, (a) => (n(), r("g", null, [
1469
+ (n(!0), r(A, null, N(a.series, (s) => (n(), r("g", null, [
1470
+ String(s.name).includes(`
1471
+ `) ? (n(), r("text", {
1472
+ key: 1,
1473
+ x: s.x,
1474
+ y: s.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
1475
+ "text-anchor": "middle",
1476
+ "font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
1477
+ fill: e.value.style.chart.layout.labels.plotLabels.color,
1478
+ innerHTML: v(xl)({
1479
+ content: String(s.name),
1480
+ fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
1481
+ fill: e.value.style.chart.layout.labels.plotLabels.color,
1482
+ x: s.x,
1483
+ y: s.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius
1484
+ })
1485
+ }, null, 8, Aa)) : (n(), r("text", {
1486
+ key: 0,
1487
+ x: s.x,
1488
+ y: s.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
1489
+ "text-anchor": "middle",
1490
+ "font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
1491
+ fill: e.value.style.chart.layout.labels.plotLabels.color
1492
+ }, w(s.name), 9, qa))
1493
+ ]))), 256))
1494
+ ]))), 256))
1495
+ ])) : y("", !0)
1496
+ ], 64)),
1497
+ x.value ? (n(), r("g", Xa, [
1498
+ f.value === "TL" ? (n(), r("polygon", {
1499
+ key: 0,
1500
+ points: `${t.value.left - 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top - 1} ${t.value.right},${t.value.top - 1} ${t.value.right},${t.value.bottom} ${t.value.left - 1},${t.value.bottom} ${t.value.left - 1},${t.value.centerY}`,
1501
+ fill: e.value.style.chart.backgroundColor,
1502
+ style: { opacity: "1" }
1503
+ }, null, 8, Pa)) : y("", !0),
1504
+ f.value === "TR" ? (n(), r("polygon", {
1505
+ key: 1,
1506
+ points: `${t.value.left},${t.value.top - 1} ${t.value.centerX},${t.value.top - 1} ${t.value.centerX},${t.value.centerY} ${t.value.right + 1},${t.value.centerY} ${t.value.right + 1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top - 1}`,
1507
+ fill: e.value.style.chart.backgroundColor,
1508
+ style: { opacity: "1" }
1509
+ }, null, 8, Ya)) : y("", !0),
1510
+ f.value === "BR" ? (n(), r("polygon", {
1511
+ key: 2,
1512
+ points: `${t.value.left},${t.value.top} ${t.value.right + 1},${t.value.top} ${t.value.right + 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom + 1} ${t.value.left},${t.value.bottom + 1} ${t.value.left},${t.value.top}`,
1513
+ fill: e.value.style.chart.backgroundColor,
1514
+ style: { opacity: "1" }
1515
+ }, null, 8, Ma)) : y("", !0),
1516
+ f.value === "BL" ? (n(), r("polygon", {
1517
+ key: 3,
1518
+ points: `${t.value.left - 1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom + 1} ${t.value.centerX},${t.value.bottom + 1} ${t.value.centerX},${t.value.centerY} ${t.value.left - 1},${t.value.centerY} ${t.value.left - 1},${t.value.top}`,
1519
+ fill: e.value.style.chart.backgroundColor,
1520
+ style: { opacity: "1" }
1521
+ }, null, 8, Oa)) : y("", !0)
1522
+ ])) : y("", !0),
1523
+ f.value && !me.value ? (n(), r("g", Ba, [
1524
+ d("text", {
1525
+ x: U.value.x,
1526
+ y: U.value.y - U.value.fontSize / 1.5,
1527
+ "font-size": U.value.fontSize / 1.5,
1528
+ fill: U.value.fill,
1529
+ "text-anchor": "middle",
1530
+ "font-weight": U.value.bold ? "bold" : "normal"
1531
+ }, w(U.value.text), 9, Na)
1532
+ ])) : y("", !0),
1533
+ x.value && f.value ? (n(), r("g", Va, [
1534
+ d("rect", {
1535
+ x: S.value[f.value].tl.x,
1536
+ y: S.value[f.value].tl.y,
1537
+ height: "20",
1538
+ width: "20",
1539
+ fill: S.value[f.value].tl.fill,
1540
+ style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "TL" ? 1 : 0.2}`),
1541
+ onClick: o[8] || (o[8] = (a) => I("TL")),
1542
+ class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "TL" })
1543
+ }, null, 14, Fa),
1544
+ d("rect", {
1545
+ x: S.value[f.value].tr.x,
1546
+ y: S.value[f.value].tr.y,
1547
+ height: "20",
1548
+ width: "20",
1549
+ fill: S.value[f.value].tr.fill,
1550
+ style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "TR" ? 1 : 0.2}`),
1551
+ onClick: o[9] || (o[9] = (a) => I("TR")),
1552
+ class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "TR" })
1553
+ }, null, 14, Ia),
1554
+ d("rect", {
1555
+ x: S.value[f.value].br.x,
1556
+ y: S.value[f.value].br.y,
1557
+ height: "20",
1558
+ width: "20",
1559
+ fill: S.value[f.value].br.fill,
1560
+ style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "BR" ? 1 : 0.2}`),
1561
+ onClick: o[10] || (o[10] = (a) => I("BR")),
1562
+ class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "BR" })
1563
+ }, null, 14, Ra),
1564
+ d("rect", {
1565
+ x: S.value[f.value].bl.x,
1566
+ y: S.value[f.value].bl.y,
1567
+ height: "20",
1568
+ width: "20",
1569
+ fill: S.value[f.value].bl.fill,
1570
+ style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "BL" ? 1 : 0.2}`),
1571
+ onClick: o[11] || (o[11] = (a) => I("BL")),
1572
+ class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "BL" })
1573
+ }, null, 14, Da),
1574
+ d("path", {
1575
+ class: "vue-ui-quadrant-minimap-crosshairs",
1576
+ stroke: e.value.style.chart.backgroundColor,
1577
+ "stroke-width": 1,
1578
+ d: S.value[f.value].crosshairs.horizontal
1579
+ }, null, 8, Ha),
1580
+ d("path", {
1581
+ class: "vue-ui-quadrant-minimap-crosshairs",
1582
+ stroke: e.value.style.chart.backgroundColor,
1583
+ "stroke-width": 1,
1584
+ d: S.value[f.value].crosshairs.vertical
1585
+ }, null, 8, Ea)
1586
+ ])) : y("", !0),
1587
+ g(l.$slots, "svg", {
1588
+ svg: {
1589
+ ...t.value,
1590
+ isPrintingImg: v(We) | v(Xe) | ye.value,
1591
+ isPrintingSvg: be.value
1592
+ }
1593
+ }, void 0, !0)
1594
+ ], 46, Ul)),
1595
+ l.$slots.hint ? (n(), r("div", Ua, [
1596
+ g(l.$slots, "hint", T(q({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: pe.value })), void 0, !0)
1597
+ ])) : y("", !0)
1598
+ ]),
1599
+ l.$slots.watermark ? (n(), r("div", Qa, [
1600
+ g(l.$slots, "watermark", T(q({ isPrinting: v(We) || v(Xe) || ye.value || be.value })), void 0, !0)
1601
+ ])) : y("", !0),
1602
+ d("div", {
1603
+ id: `legend-bottom-${$.value}`
1604
+ }, null, 8, Ga),
1605
+ Ze.value ? (n(), B(il, {
1606
+ key: 6,
1607
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
1608
+ }, [
1609
+ d("div", {
1610
+ ref_key: "chartLegend",
1611
+ ref: Ue
1612
+ }, [
1613
+ e.value.style.chart.legend.show ? (n(), B(Nl, {
1614
+ key: `legend_${Je.value}`,
1615
+ legendSet: Q.value,
1616
+ config: Qt.value,
1617
+ isCursorPointer: X.value,
1618
+ onClickMarker: o[12] || (o[12] = ({ legend: a }) => se(a.id))
1619
+ }, {
1620
+ item: p(({ legend: a }) => [
1621
+ v(ge) ? y("", !0) : (n(), r("div", {
1622
+ key: 0,
1623
+ onClick: (s) => se(a.id),
1624
+ style: _(`opacity:${C.value.includes(a.id) ? 0.5 : 1}`)
1625
+ }, w(a.name), 13, Ka))
1626
+ ]),
1627
+ legendToggle: p(() => [
1628
+ Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(ge) ? (n(), B(Fl, {
1629
+ key: 0,
1630
+ backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1631
+ color: e.value.style.chart.legend.selectAllToggle.color,
1632
+ fontSize: e.value.style.chart.legend.fontSize,
1633
+ checked: C.value.length > 0,
1634
+ isCursorPointer: X.value,
1635
+ onToggle: Ht
1636
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : y("", !0)
1637
+ ]),
1638
+ _: 1
1639
+ }, 8, ["legendSet", "config", "isCursorPointer"])) : g(l.$slots, "legend", {
1640
+ key: 1,
1641
+ legend: Q.value
1642
+ }, void 0, !0)
1643
+ ], 512)
1644
+ ], 8, ["to"])) : y("", !0),
1645
+ l.$slots.source ? (n(), r("div", {
1646
+ key: 7,
1647
+ ref_key: "source",
1648
+ ref: Qe,
1649
+ dir: "auto"
1650
+ }, [
1651
+ g(l.$slots, "source", {}, void 0, !0)
1652
+ ], 512)) : y("", !0),
1653
+ de(v(qt), {
1654
+ teleportTo: e.value.style.chart.tooltip.teleportTo,
1655
+ show: k.value.showTooltip && he.value,
1656
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1657
+ color: e.value.style.chart.tooltip.color,
1658
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1659
+ borderColor: e.value.style.chart.tooltip.borderColor,
1660
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1661
+ fontSize: e.value.style.chart.tooltip.fontSize,
1662
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1663
+ position: e.value.style.chart.tooltip.position,
1664
+ offsetY: e.value.style.chart.tooltip.offsetY,
1665
+ parent: V.value,
1666
+ content: _e.value,
1667
+ isFullscreen: K.value,
1668
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
1669
+ smooth: e.value.style.chart.tooltip.smooth,
1670
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1671
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
1672
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1673
+ isA11yMode: qe.value === "keyboard",
1674
+ a11yPosition: et.value
1675
+ }, {
1676
+ "tooltip-before": p(() => [
1677
+ g(l.$slots, "tooltip-before", T(q({ ...Ye.value })), void 0, !0)
1678
+ ]),
1679
+ "tooltip-after": p(() => [
1680
+ g(l.$slots, "tooltip-after", T(q({ ...Ye.value })), void 0, !0)
1681
+ ]),
1682
+ default: p(() => [
1683
+ e.value.style.chart.tooltip.showShape ? (n(), r("svg", ja, [
1684
+ de(Ct, {
1685
+ plot: { x: 10, y: 10 },
1686
+ shape: ne.value.shape,
1687
+ color: ne.value.color,
1688
+ radius: 8,
1689
+ stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
1690
+ "stroke-width": e.value.style.chart.layout.plots.outlineWidth
1691
+ }, null, 8, ["shape", "color", "stroke", "stroke-width"])
1692
+ ])) : y("", !0)
1693
+ ]),
1694
+ _: 3
1695
+ }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1696
+ De.value && e.value.userOptions.buttons.table ? (n(), B(vl(ve.value.component), kt({ key: 8 }, ve.value.props, {
1697
+ ref_key: "tableUnit",
1698
+ ref: oe,
1699
+ onClose: pt
1700
+ }), $t({
1701
+ content: p(() => [
1702
+ (n(), B(v(Wt), {
1703
+ key: `table_${je.value}`,
1704
+ colNames: te.value.colNames,
1705
+ head: te.value.head,
1706
+ body: te.value.body,
1707
+ config: te.value.config,
1708
+ title: e.value.table.useDialog ? "" : ve.value.title,
1709
+ withCloseButton: !e.value.table.useDialog,
1710
+ isCursorPointer: X.value,
1711
+ onClose: pt
1712
+ }, {
1713
+ th: p(({ th: a }) => [
1714
+ wt(w(a), 1)
1715
+ ]),
1716
+ td: p(({ td: a }) => [
1717
+ d("div", {
1718
+ innerHTML: a.name || a
1719
+ }, null, 8, Ja)
1720
+ ]),
1721
+ _: 1
1722
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1723
+ ]),
1724
+ _: 2
1725
+ }, [
1726
+ e.value.table.useDialog ? {
1727
+ name: "title",
1728
+ fn: p(() => [
1729
+ wt(w(ve.value.title), 1)
1730
+ ]),
1731
+ key: "0"
1732
+ } : void 0,
1733
+ e.value.table.useDialog ? {
1734
+ name: "actions",
1735
+ fn: p(() => [
1736
+ d("button", {
1737
+ tabindex: "0",
1738
+ class: "vue-ui-user-options-button",
1739
+ onClick: o[13] || (o[13] = (a) => Be(e.value.userOptions.callbacks.csv)),
1740
+ style: _({ cursor: X.value ? "pointer" : "default" })
1741
+ }, [
1742
+ de(v(At), {
1743
+ name: "fileCsv",
1744
+ stroke: ve.value.props.color
1745
+ }, null, 8, ["stroke"])
1746
+ ], 4)
1747
+ ]),
1748
+ key: "1"
1749
+ } : void 0
1750
+ ]), 1040)) : y("", !0),
1751
+ g(l.$slots, "skeleton", {}, () => [
1752
+ v(ge) ? (n(), B(Al, { key: 0 })) : y("", !0)
1753
+ ], !0)
1754
+ ], 46, Rl));
1755
+ }
1756
+ }, xo = /* @__PURE__ */ Il(Za, [["__scopeId", "data-v-89557c20"]]);
1757
+ export {
1758
+ xo as default
1759
+ };