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