vue-data-ui 3.22.8 → 3.22.10

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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -0,0 +1,1416 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, B as n, C as r, E as i, Gt as a, K as o, Kt as s, N as ee, Nt as te, Q as ne, W as re, Wt as ie, Y as ae, bt as oe, et as se, ft as ce, g as le, i as ue, mt as de, qt as fe, st as pe, t as me, x as he } from "./lib-CnHx5WfV.js";
3
+ import { t as ge } from "./useConfig-DYM3f6EI.js";
4
+ import { t as _e } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as be } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as xe } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as we } from "./img-CNdXiUfZ.js";
11
+ import { n as Te } from "./Title-Cr3jP7Qd.js";
12
+ import { t as Ee } from "./Shape-B5ksaGa1.js";
13
+ import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { c as Oe } from "./canvas-lib-BOP_HS11.js";
15
+ import { t as ke } from "./useResponsive-BfnK0KxU.js";
16
+ import { t as Ae } from "./BaseLegendToggle-BrQ2OlzI.js";
17
+ import { t as je } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Pe } from "./Legend-5VQGLnmx.js";
21
+ import { t as Fe } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
22
+ import { Fragment as c, Teleport as Ie, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Be, nextTick as Ve, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as He, onMounted as Ue, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as C, toRefs as Ke, unref as w, watch as qe, watchEffect as Je, withCtx as T } from "vue";
23
+ //#region src/components/vue-ui-parallel-coordinate-plot.vue
24
+ var Ye = /* @__PURE__ */ e({ default: () => xt }), Xe = ["id"], Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
25
+ "xmlns",
26
+ "aria-describedby",
27
+ "viewBox"
28
+ ], tt = [
29
+ "x",
30
+ "y",
31
+ "width",
32
+ "height"
33
+ ], nt = { style: { "pointer-events": "none" } }, rt = [
34
+ "x1",
35
+ "x2",
36
+ "y1",
37
+ "y2",
38
+ "stroke",
39
+ "stroke-width"
40
+ ], it = [
41
+ "x1",
42
+ "x2",
43
+ "y1",
44
+ "y2",
45
+ "stroke",
46
+ "stroke-width"
47
+ ], at = { key: 0 }, ot = [
48
+ "x",
49
+ "y",
50
+ "fill",
51
+ "font-size",
52
+ "font-weight"
53
+ ], st = [
54
+ "fill",
55
+ "font-size",
56
+ "font-weight",
57
+ "text-anchor",
58
+ "transform"
59
+ ], ct = [
60
+ "fill",
61
+ "font-size",
62
+ "font-weight",
63
+ "text-anchor",
64
+ "transform",
65
+ "innerHTML"
66
+ ], lt = { key: 0 }, ut = [
67
+ "x",
68
+ "y",
69
+ "font-size",
70
+ "fill"
71
+ ], dt = [
72
+ "width",
73
+ "x",
74
+ "y"
75
+ ], ft = { style: { width: "100%" } }, pt = [
76
+ "x",
77
+ "y",
78
+ "fill",
79
+ "font-weight",
80
+ "font-size",
81
+ "onMouseenter",
82
+ "onMouseleave",
83
+ "onClick"
84
+ ], mt = [
85
+ "d",
86
+ "stroke",
87
+ "stroke-width",
88
+ "onMouseenter",
89
+ "onMouseleave",
90
+ "onClick"
91
+ ], ht = [
92
+ "d",
93
+ "onMouseenter",
94
+ "onMouseleave",
95
+ "onClick"
96
+ ], gt = {
97
+ key: 0,
98
+ style: {
99
+ position: "absolute",
100
+ top: "100%",
101
+ left: "0",
102
+ width: "100%"
103
+ },
104
+ "data-dom-to-png-ignore": "",
105
+ "aria-hidden": "true"
106
+ }, _t = {
107
+ key: 5,
108
+ class: "vue-data-ui-watermark"
109
+ }, vt = ["id"], yt = ["onClick"], bt = ["innerHTML"], xt = /*#__PURE__*/ De({
110
+ __name: "vue-ui-parallel-coordinate-plot",
111
+ props: {
112
+ config: {
113
+ type: Object,
114
+ default() {
115
+ return {};
116
+ }
117
+ },
118
+ dataset: {
119
+ type: Array,
120
+ default() {
121
+ return [];
122
+ }
123
+ }
124
+ },
125
+ emits: [
126
+ "selectLegend",
127
+ "selectDatapoint",
128
+ "copyAlt"
129
+ ],
130
+ setup(e, { expose: De, emit: Ye }) {
131
+ let xt = m(() => import("./Tooltip-CDbLl3TD.js")), St = m(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), Ct = m(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), wt = m(() => import("./DataTable-ByZy5gt1.js")), Tt = m(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Et = m(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Dt = m(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), Ot = m(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: kt } = ge(), { isThemeValid: At, warnInvalidTheme: jt } = Se(), E = e, Mt = l({
132
+ get() {
133
+ return !!E.dataset && E.dataset.length;
134
+ },
135
+ set(e) {
136
+ return e;
137
+ }
138
+ }), Nt = b(0), D = b(null), Pt = b(null), Ft = b(null), It = b(null), Lt = b(null), Rt = b(0), zt = b(0), Bt = b(0), Vt = b(!1), O = b(null), Ht = b(null), Ut = b(!1), Wt = b(!1), Gt = b(null), k = b(null), Kt = b({
139
+ x: 0,
140
+ y: 0
141
+ }), qt = b("pointer"), Jt = b(!1), A = b(o()), j = b(!1);
142
+ function Yt(e) {
143
+ j.value = e, Nt.value += 1;
144
+ }
145
+ let M = b(nn()), N = l(() => M.value.userOptions.useCursorPointer), Xt = l(() => fe({
146
+ defaultConfig: {
147
+ useCssAnimation: !1,
148
+ userOptions: { show: !1 },
149
+ table: { show: !1 },
150
+ style: { chart: {
151
+ backgroundColor: "#99999930",
152
+ legend: {
153
+ show: !0,
154
+ backgroundColor: "transparent"
155
+ },
156
+ yAxis: {
157
+ stroke: "#6A6A6A",
158
+ labels: {
159
+ showAxisNames: !1,
160
+ axisNames: [],
161
+ ticks: { color: "#6A6A6A" }
162
+ }
163
+ }
164
+ } }
165
+ },
166
+ userConfig: M.value.skeletonConfig ?? {}
167
+ })), { loading: P, FINAL_DATASET: Zt, manualLoading: Qt } = ve({
168
+ ...Ke(E),
169
+ FINAL_CONFIG: M,
170
+ prepareConfig: nn,
171
+ callback: () => {
172
+ Promise.resolve().then(async () => {
173
+ await Ve(), V.value.showTable = M.value.table.show;
174
+ });
175
+ },
176
+ skeletonDataset: E.config?.skeletonDataset ?? [
177
+ {
178
+ name: "",
179
+ shape: "circle",
180
+ color: "transparent",
181
+ series: [{
182
+ name: "",
183
+ values: [
184
+ 1,
185
+ 10,
186
+ 100,
187
+ 1e3
188
+ ]
189
+ }]
190
+ },
191
+ {
192
+ name: "",
193
+ shape: "circle",
194
+ color: "#CACACA",
195
+ series: [{
196
+ name: "",
197
+ values: [
198
+ .2,
199
+ 3,
200
+ 50,
201
+ 800
202
+ ]
203
+ }]
204
+ },
205
+ {
206
+ name: "",
207
+ shape: "circle",
208
+ color: "transparent",
209
+ series: [{
210
+ name: "",
211
+ values: [
212
+ 0,
213
+ 0,
214
+ 0,
215
+ 0
216
+ ]
217
+ }]
218
+ }
219
+ ],
220
+ skeletonConfig: fe({
221
+ defaultConfig: M.value,
222
+ userConfig: Xt.value
223
+ })
224
+ }), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Me({ config: M.value }), { svgRef: F } = Ne({ config: M.value.style.chart.title });
225
+ function nn() {
226
+ let e = xe({
227
+ userConfig: E.config,
228
+ defaultConfig: kt
229
+ }), t = e.theme;
230
+ if (!t) return e;
231
+ if (!At.value(e)) return jt(e), e;
232
+ let n = xe({
233
+ userConfig: Fe[t] || E.config,
234
+ defaultConfig: e
235
+ }), r = xe({
236
+ userConfig: E.config,
237
+ defaultConfig: n
238
+ });
239
+ return {
240
+ ...r,
241
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || te
242
+ };
243
+ }
244
+ qe(() => E.config, (e) => {
245
+ P.value || (M.value = nn()), $t.value = !M.value.userOptions.showOnChartHover, an(), Rt.value += 1, Bt.value += 1, zt.value += 1, V.value.dataLabels.show = M.value.style.chart.yAxis.labels.datapoints.show, V.value.showTable = M.value.table.show, V.value.showTooltip = M.value.style.chart.tooltip.show;
246
+ }, { deep: !0 }), qe(() => E.dataset, (e) => {
247
+ Array.isArray(e) && e.length > 0 && (Qt.value = !1);
248
+ }, { deep: !0 });
249
+ let I = Ge(null), L = Ge(null);
250
+ Ue(() => {
251
+ Vt.value = !0, an();
252
+ });
253
+ let rn = l(() => !!M.value.debug);
254
+ function an() {
255
+ if (t(E.dataset) ? (se({
256
+ componentName: "VueUiParallelCoordinatePlot",
257
+ type: "dataset",
258
+ debug: rn.value
259
+ }), Qt.value = !0) : E.dataset.forEach((e, t) => {
260
+ ce({
261
+ datasetObject: e,
262
+ requiredAttributes: ["name", "series"]
263
+ }).forEach((e) => {
264
+ Mt.value = !1, se({
265
+ componentName: "VueUiParallelCoordinatePlot",
266
+ type: "datasetSerieAttribute",
267
+ property: e,
268
+ index: t,
269
+ debug: rn.value
270
+ });
271
+ });
272
+ }), t(E.dataset) || (Qt.value = M.value.loading), M.value.responsive) {
273
+ let e = Oe(() => {
274
+ let { width: e, height: t } = ke({
275
+ chart: D.value,
276
+ title: M.value.style.chart.title.text ? Pt.value : null,
277
+ legend: M.value.style.chart.legend.show ? Ft.value : null,
278
+ source: It.value,
279
+ noTitle: Lt.value
280
+ });
281
+ requestAnimationFrame(() => {
282
+ R.value.width = e, R.value.height = t - 12, M.value.responsiveProportionalSizing ? (R.value.plotSize = s({
283
+ relator: Math.min(e, t),
284
+ adjuster: 600,
285
+ source: M.value.style.chart.plots.radius,
286
+ threshold: 2,
287
+ fallback: 2
288
+ }), R.value.ticksFontSize = s({
289
+ relator: Math.min(e, t),
290
+ adjuster: 600,
291
+ source: M.value.style.chart.yAxis.labels.ticks.fontSize,
292
+ threshold: 10,
293
+ fallback: 10
294
+ }), R.value.datapointFontSize = s({
295
+ relator: Math.min(e, t),
296
+ adjuster: 600,
297
+ source: M.value.style.chart.yAxis.labels.datapoints.fontSize,
298
+ threshold: 10,
299
+ fallback: 10
300
+ }), R.value.axisNameFontSize = s({
301
+ relator: Math.min(e, t),
302
+ adjuster: 600,
303
+ source: M.value.style.chart.yAxis.labels.axisNamesFontSize,
304
+ threshold: 12,
305
+ fallback: 12
306
+ })) : (R.value.plotSize = M.value.style.chart.plots.radius, R.value.ticksFontSize = M.value.style.chart.yAxis.labels.ticks.fontSize, R.value.datapointFontSize = M.value.style.chart.yAxis.labels.datapoints.fontSize, R.value.axisNameFontSize = M.value.style.chart.yAxis.labels.axisNamesFontSize);
307
+ });
308
+ });
309
+ I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = D.value.parentNode, I.value.observe(L.value);
310
+ }
311
+ }
312
+ He(() => {
313
+ I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
314
+ });
315
+ let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = _e({
316
+ elementId: `pcp_${A.value}`,
317
+ fileName: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
318
+ options: M.value.userOptions.print
319
+ }), un = l(() => M.value.userOptions.show && !M.value.style.chart.title.text), R = b({
320
+ height: M.value.style.chart.height,
321
+ width: M.value.style.chart.width,
322
+ plotSize: M.value.style.chart.plots.radius,
323
+ ticksFontSize: M.value.style.chart.yAxis.labels.ticks.fontSize,
324
+ datapointFontSize: M.value.style.chart.yAxis.labels.datapoints.fontSize,
325
+ axisNameFontSize: M.value.style.chart.yAxis.labels.axisNamesFontSize
326
+ }), dn = l(() => R.value.width), fn = l(() => R.value.height), z = b(0), pn = Oe((e) => {
327
+ z.value = e;
328
+ }, 100);
329
+ Je((e) => {
330
+ let t = Gt.value;
331
+ if (!t) return;
332
+ let n = new ResizeObserver((e) => {
333
+ pn(e[0].contentRect.height);
334
+ });
335
+ n.observe(t), e(() => n.disconnect());
336
+ });
337
+ let B = l(() => {
338
+ let { top: e, right: t, bottom: n, left: r } = M.value.style.chart.padding, i = fn.value, a = dn.value;
339
+ return {
340
+ chartHeight: Math.max(.001, i),
341
+ chartWidth: Math.max(.001, a),
342
+ height: Math.max(.001, i - e - n - z.value - R.value.datapointFontSize * 2),
343
+ width: Math.max(.001, a - r - t),
344
+ top: e + z.value + R.value.datapointFontSize,
345
+ left: r,
346
+ right: a - t,
347
+ bottom: i - n - R.value.datapointFontSize
348
+ };
349
+ }), mn = l(() => r(M.value.customPalette)), V = b({
350
+ dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
351
+ showTable: M.value.table.show,
352
+ showTooltip: M.value.style.chart.tooltip.show
353
+ });
354
+ qe(M, () => {
355
+ V.value = {
356
+ dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
357
+ showTable: M.value.table.show,
358
+ showTooltip: M.value.style.chart.tooltip.show
359
+ };
360
+ }, { immediate: !0 });
361
+ let H = b([]);
362
+ function hn() {
363
+ H.value.length ? H.value = [] : W.value.forEach((e) => {
364
+ H.value.push(e.id);
365
+ }), jn("selectLegend", K.value);
366
+ }
367
+ function gn(e) {
368
+ H.value.includes(e) ? H.value = H.value.filter((t) => t !== e) : H.value.push(e), jn("selectLegend", K.value);
369
+ }
370
+ let U = l(() => Zt.value.map((e, t) => {
371
+ let n = he(e.color) || mn.value[t] || te[t] || te[t % te.length];
372
+ return {
373
+ ...e,
374
+ series: e.series.map((e) => ({
375
+ ...e,
376
+ id: o(),
377
+ color: n
378
+ })),
379
+ seriesIndex: t,
380
+ color: n,
381
+ id: o(),
382
+ shape: e.shape || "circle"
383
+ };
384
+ }));
385
+ function _n(e) {
386
+ return U.value.length ? U.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
387
+ }
388
+ function vn(e) {
389
+ let t = _n(e);
390
+ t !== null && H.value.includes(t.id) && gn(t.id);
391
+ }
392
+ function yn(e) {
393
+ let t = _n(e);
394
+ t !== null && (H.value.includes(t.id) || gn(t.id));
395
+ }
396
+ let W = l(() => U.value.map((e) => ({
397
+ ...e,
398
+ opacity: H.value.includes(e.id) ? .5 : 1,
399
+ segregate: () => gn(e.id),
400
+ isSegregated: H.value.includes(e.id),
401
+ shape: e.shape || "circle"
402
+ }))), bn = l(() => ({
403
+ cy: "pcp-div-legend",
404
+ backgroundColor: M.value.style.chart.legend.backgroundColor,
405
+ color: M.value.style.chart.legend.color,
406
+ fontSize: M.value.style.chart.legend.fontSize,
407
+ paddingBottom: 12,
408
+ fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
409
+ })), xn = l(() => Math.max(...U.value.filter((e) => !H.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), G = l(() => B.value.width / xn.value), K = l(() => U.value.filter((e) => !H.value.includes(e.id))), q = l(() => {
410
+ let e = [];
411
+ for (let t = 0; t < xn.value; t += 1) {
412
+ let n = Math.min(...K.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...K.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = le(r === n ? n / 4 : n, r === n ? r * 2 : r, M.value.style.chart.yAxis.scaleTicks), a = i.ticks.map((e, n) => {
413
+ let r = i.min < 0 ? e + Math.abs(i.min) : e - Math.abs(i.min), a = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
414
+ return {
415
+ y: B.value.bottom - B.value.height * (r / a),
416
+ x: B.value.left + G.value * t + G.value / 2,
417
+ value: e
418
+ };
419
+ });
420
+ e.push({
421
+ scale: i,
422
+ ticks: a,
423
+ name: M.value.style.chart.yAxis.labels.axisNames[t] || `Y-${t + 1}`
424
+ });
425
+ }
426
+ return e;
427
+ }), J = l(() => K.value.map((e, t) => ({
428
+ ...e,
429
+ series: e.series.map((n, r) => ({
430
+ ...n,
431
+ datapoints: n.values.map((i, a) => {
432
+ let o = q.value[a].scale.min < 0 ? (i || 0) + Math.abs(q.value[a].scale.min) : (i || 0) - Math.abs(q.value[a].scale.min), s = q.value[a].scale.min < 0 ? q.value[a].scale.max + Math.abs(q.value[a].scale.min) : q.value[a].scale.max - Math.abs(q.value[a].scale.min);
433
+ return {
434
+ name: n.name,
435
+ seriesName: e.name,
436
+ axisIndex: a,
437
+ datapointIndex: r,
438
+ seriesIndex: t,
439
+ value: i || 0,
440
+ x: B.value.left + G.value * a + G.value / 2,
441
+ y: B.value.bottom - B.value.height * (o / s),
442
+ comment: n.comments && n.comments[a] || ""
443
+ };
444
+ })
445
+ }))
446
+ })).map((e) => ({
447
+ ...e,
448
+ series: e.series.map((e) => {
449
+ let t = n(e.datapoints), r = ee(e.datapoints, .12), i = de(M.value.style.chart.lines.smooth ? `M ${r}` : `M ${t}`);
450
+ return {
451
+ ...e,
452
+ smoothPath: r,
453
+ straightPath: t,
454
+ pathLength: i
455
+ };
456
+ })
457
+ }))), Y = l(() => J.value.flatMap((e, t) => e.series.map((n, r) => ({
458
+ shape: e.shape,
459
+ serieName: e.name,
460
+ serie: n,
461
+ relativeIndex: r,
462
+ seriesIndex: n.seriesIndex,
463
+ S: t,
464
+ key: `${t}_${r}`
465
+ }))));
466
+ function Sn({ value: e, index: t, datapoint: n }) {
467
+ return ue(M.value.style.chart.yAxis.labels.formatters[t] || null, e, ae({
468
+ p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
469
+ v: e,
470
+ s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
471
+ r: M.value.style.chart.yAxis.labels.roundings[t] || 0
472
+ }), {
473
+ datapoint: n,
474
+ seriesIndex: t
475
+ });
476
+ }
477
+ let X = b(null), Cn = b(null), wn = b(!1), Tn = b("");
478
+ function Z({ shape: e, serie: t, S: n }) {
479
+ M.value.events.datapointLeave && M.value.events.datapointLeave({
480
+ datapoint: {
481
+ ...t,
482
+ shape: e
483
+ },
484
+ seriesIndex: n
485
+ });
486
+ let r = k.value === null ? null : Y.value[k.value];
487
+ qt.value === "keyboard" && r && r.serie.id === t.id || (X.value = null, wn.value = !1);
488
+ }
489
+ function En(e) {
490
+ if (!F.value || !e?.datapoints?.length) return;
491
+ let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
492
+ if (!t) return;
493
+ let n = ie(t.x, t.y, F.value);
494
+ n && (Kt.value = n);
495
+ }
496
+ function Dn({ shape: e, serieName: t, serie: n, relativeIndex: r, seriesIndex: i, S: a, triggerMode: o = "pointer" }) {
497
+ M.value.events.datapointEnter && M.value.events.datapointEnter({
498
+ datapoint: {
499
+ ...n,
500
+ shape: e
501
+ },
502
+ seriesIndex: a
503
+ }), qt.value = o, Cn.value = {
504
+ config: M.value,
505
+ datapoint: n,
506
+ serie: n,
507
+ relativeIndex: r,
508
+ seriesIndex: i,
509
+ series: U.value,
510
+ scales: q.value
511
+ }, wn.value = !0, X.value = n.id;
512
+ let s = "", ee = M.value.style.chart.tooltip.customFormat;
513
+ oe(ee) && pe(() => ee({
514
+ serie: n,
515
+ seriesIndex: n.seriesIndex,
516
+ series: U.value,
517
+ config: M.value,
518
+ scales: q.value
519
+ })) ? Tn.value = ee({
520
+ serie: n,
521
+ seriesIndex: n.seriesIndex,
522
+ series: U.value,
523
+ config: M.value,
524
+ scales: q.value
525
+ }) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${n.name}</div>`, q.value.map((e) => e.name).forEach((e, t) => {
526
+ s += `
527
+ <div class="vue-ui-tooltip-item" style="text-align:left">
528
+ <span>${e}: </span>
529
+ <span>
530
+ ${ue(M.value.style.chart.yAxis.labels.formatters[t] || null, n.datapoints[t].value, ae({
531
+ p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
532
+ v: n.datapoints[t].value,
533
+ s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
534
+ r: M.value.style.chart.yAxis.labels.roundings[t] || ""
535
+ }), {
536
+ datapoint: n.datapoints[t],
537
+ seriesIndex: t
538
+ })}
539
+ </span>
540
+ </div>
541
+ `, M.value.style.chart.comments.showInTooltip && n.datapoints[t].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.datapoints[t].comment}</div>`);
542
+ }), Tn.value = `<div>${s}</div>`), o === "keyboard" && Ve(() => {
543
+ En(n);
544
+ });
545
+ }
546
+ function On() {
547
+ return U.value;
548
+ }
549
+ let Q = l(() => {
550
+ let e = [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(q.value.map((e) => e.name));
551
+ return {
552
+ body: J.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
553
+ head: e,
554
+ config: {
555
+ th: {
556
+ backgroundColor: M.value.table.th.backgroundColor,
557
+ color: M.value.table.th.color,
558
+ outline: M.value.table.th.outline
559
+ },
560
+ td: {
561
+ backgroundColor: M.value.table.td.backgroundColor,
562
+ color: M.value.table.td.color,
563
+ outline: M.value.table.td.outline
564
+ },
565
+ breakpoint: M.value.table.responsiveBreakpoint
566
+ },
567
+ colNames: [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(q.value.map((e) => e.name))
568
+ };
569
+ }), kn = l(() => J.value.length === 0 ? {
570
+ head: [],
571
+ body: [],
572
+ config: {},
573
+ columnNames: []
574
+ } : {
575
+ head: Q.value.head,
576
+ body: Q.value.body
577
+ });
578
+ function An(e = null) {
579
+ let t = [
580
+ [M.value.style.chart.title.text],
581
+ [M.value.style.chart.title.subtitle.text],
582
+ [""]
583
+ ], n = kn.value.head, r = kn.value.body, a = i(t.concat([n]).concat(r));
584
+ e ? e(a) : ne({
585
+ csvContent: a,
586
+ title: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
587
+ });
588
+ }
589
+ let jn = Ye;
590
+ function Mn({ serie: e, shape: t, S: n }) {
591
+ M.value.events.datapointClick && M.value.events.datapointClick({
592
+ datapoint: {
593
+ ...e,
594
+ shape: t
595
+ },
596
+ seriesIndex: n
597
+ }), jn("selectDatapoint", e);
598
+ }
599
+ function Nn() {
600
+ V.value.showTable = !V.value.showTable;
601
+ }
602
+ function Pn() {
603
+ V.value.dataLabels.show = !V.value.dataLabels.show;
604
+ }
605
+ function Fn() {
606
+ V.value.showTooltip = !V.value.showTooltip;
607
+ }
608
+ let In = b(!1);
609
+ function Ln() {
610
+ In.value = !In.value;
611
+ }
612
+ async function Rn({ scale: e = 2 } = {}) {
613
+ if (!D.value) return;
614
+ let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
615
+ domElement: D.value,
616
+ base64: !0,
617
+ img: !0,
618
+ scale: e
619
+ });
620
+ return {
621
+ imageUri: i,
622
+ base64: a,
623
+ title: M.value.style.chart.title.text,
624
+ width: t,
625
+ height: n,
626
+ aspectRatio: r
627
+ };
628
+ }
629
+ let zn = b({
630
+ start: 0,
631
+ end: 1
632
+ });
633
+ Ce({
634
+ timeLabelsEls: Gt,
635
+ timeLabels: l(() => q.value.map((e) => e.name)),
636
+ slicer: zn,
637
+ configRef: M,
638
+ rotationPath: [
639
+ "style",
640
+ "chart",
641
+ "yAxis",
642
+ "labels",
643
+ "axisNamesRotation"
644
+ ],
645
+ autoRotatePath: [
646
+ "style",
647
+ "chart",
648
+ "yAxis",
649
+ "labels",
650
+ "axisNamesAutoRotate",
651
+ "enable"
652
+ ],
653
+ isAutoSize: !1,
654
+ width: dn,
655
+ height: fn,
656
+ targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
657
+ rotation: M.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
658
+ });
659
+ let Bn = l(() => {
660
+ let e = M.value.table.useDialog && !M.value.table.show, t = V.value.showTable;
661
+ return {
662
+ component: e ? Ot : Ct,
663
+ title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
664
+ props: e ? {
665
+ backgroundColor: M.value.table.th.backgroundColor,
666
+ color: M.value.table.th.color,
667
+ headerColor: M.value.table.th.color,
668
+ headerBg: M.value.table.th.backgroundColor,
669
+ isFullscreen: j.value,
670
+ fullscreenParent: D.value,
671
+ forcedWidth: Math.min(800, window.innerWidth * .8),
672
+ isCursorPointer: N.value
673
+ } : {
674
+ hideDetails: !0,
675
+ config: {
676
+ open: t,
677
+ maxHeight: 1e4,
678
+ body: {
679
+ backgroundColor: M.value.style.chart.backgroundColor,
680
+ color: M.value.style.chart.color
681
+ },
682
+ head: {
683
+ backgroundColor: M.value.style.chart.backgroundColor,
684
+ color: M.value.style.chart.color
685
+ }
686
+ }
687
+ }
688
+ };
689
+ });
690
+ qe(() => V.value.showTable, (e) => {
691
+ M.value.table.show || (e && M.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
692
+ });
693
+ function Vn() {
694
+ V.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
695
+ }
696
+ let Hn = l(() => M.value.style.chart.backgroundColor), Un = l(() => M.value.style.chart.legend), { exportSvg: Wn, getSvg: Gn } = be({
697
+ svg: F,
698
+ title: l(() => M.value.style.chart.title),
699
+ legend: Un,
700
+ legendItems: W,
701
+ backgroundColor: Hn
702
+ });
703
+ async function Kn({ isCb: e }) {
704
+ Wt.value = !0, await Ve();
705
+ try {
706
+ if (e) {
707
+ let { blob: e, url: t, text: n, dataUrl: r } = await Gn();
708
+ await Promise.resolve(M.value.userOptions.callbacks.svg({
709
+ blob: e,
710
+ url: t,
711
+ text: n,
712
+ dataUrl: r
713
+ }));
714
+ } else await Promise.resolve(Wn());
715
+ } finally {
716
+ Wt.value = !1;
717
+ }
718
+ }
719
+ function qn(e) {
720
+ if (e?.stage === "start") {
721
+ Ut.value = !0;
722
+ return;
723
+ }
724
+ if (e?.stage === "end") {
725
+ Ut.value = !1;
726
+ return;
727
+ }
728
+ ln();
729
+ }
730
+ async function Jn() {
731
+ if (jn("copyAlt", {
732
+ config: M.value,
733
+ dataset: J.value
734
+ }), !M.value.userOptions.callbacks.altCopy) {
735
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
736
+ return;
737
+ }
738
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
739
+ config: M.value,
740
+ dataset: J.value
741
+ }));
742
+ }
743
+ function Yn(e) {
744
+ let t = Y.value.length;
745
+ return t ? (e % t + t) % t : null;
746
+ }
747
+ function Xn() {
748
+ if (k.value !== null) {
749
+ let e = Y.value[k.value];
750
+ e && Z({
751
+ shape: e.shape,
752
+ serie: e.serie,
753
+ S: e.S
754
+ });
755
+ }
756
+ k.value = null, qt.value = "pointer", X.value = null, wn.value = !1;
757
+ }
758
+ function Zn() {
759
+ k.value = null, Jt.value = !0;
760
+ }
761
+ function Qn() {
762
+ Xn(), Jt.value = !1;
763
+ }
764
+ function $n(e) {
765
+ if (!F.value || In.value || document.activeElement !== F.value || !Y.value.length) return;
766
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
767
+ if (!t && !n && !r && !i) return;
768
+ if (e.preventDefault(), e.stopPropagation(), i) {
769
+ Xn();
770
+ return;
771
+ }
772
+ if (r) {
773
+ if (k.value === null) return;
774
+ let e = Y.value[k.value];
775
+ if (!e) return;
776
+ Mn({
777
+ serie: e.serie,
778
+ shape: e.shape,
779
+ S: e.S
780
+ });
781
+ return;
782
+ }
783
+ let a = k.value;
784
+ a = a === null ? n ? 0 : Y.value.length - 1 : Yn(a + (n ? 1 : -1));
785
+ let o = Y.value[a];
786
+ o && (k.value = a, Dn({
787
+ shape: o.shape,
788
+ serieName: o.serieName,
789
+ serie: o.serie,
790
+ relativeIndex: o.relativeIndex,
791
+ seriesIndex: o.seriesIndex,
792
+ S: o.S,
793
+ triggerMode: "keyboard"
794
+ }));
795
+ }
796
+ let $ = l(() => ({
797
+ head: Q.value.head,
798
+ body: Q.value.body.map((e) => [
799
+ e[0] ?? "",
800
+ e[1] ?? "",
801
+ ...e.slice(2)
802
+ ]),
803
+ caption: M.value.a11y.translations.tableCaption,
804
+ notice: M.value.a11y.translations.tableAvailable
805
+ }));
806
+ return De({
807
+ getData: On,
808
+ getImage: Rn,
809
+ generateCsv: An,
810
+ generatePdf: cn,
811
+ generateImage: ln,
812
+ generateSvg: Kn,
813
+ hideSeries: yn,
814
+ showSeries: vn,
815
+ toggleTable: Nn,
816
+ toggleLabels: Pn,
817
+ toggleTooltip: Fn,
818
+ toggleAnnotator: Ln,
819
+ toggleFullscreen: Yt,
820
+ copyAlt: Jn
821
+ }), (e, t) => (y(), f("div", {
822
+ ref_key: "pcpChart",
823
+ ref: D,
824
+ class: g(`vue-data-ui-component vue-ui-pcp ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
825
+ style: v(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height:100%" : ""}`),
826
+ id: `pcp_${A.value}`,
827
+ onMouseenter: t[2] ||= () => w(en)(!0),
828
+ onMouseleave: t[3] ||= () => w(en)(!1)
829
+ }, [
830
+ p("div", {
831
+ id: `chart-instructions-${A.value}`,
832
+ class: "sr-only"
833
+ }, [p("p", null, C(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
834
+ $.value.body.length ? (y(), u(je, {
835
+ key: 0,
836
+ uid: A.value,
837
+ head: $.value.head,
838
+ body: $.value.body,
839
+ caption: $.value.caption,
840
+ notice: $.value.notice
841
+ }, null, 8, [
842
+ "uid",
843
+ "head",
844
+ "body",
845
+ "caption",
846
+ "notice"
847
+ ])) : d("", !0),
848
+ M.value.userOptions.buttons.annotator ? (y(), u(w(Tt), {
849
+ key: 1,
850
+ svgRef: w(F),
851
+ backgroundColor: M.value.style.chart.backgroundColor,
852
+ color: M.value.style.chart.color,
853
+ active: In.value,
854
+ isCursorPointer: N.value,
855
+ onClose: Ln
856
+ }, {
857
+ "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
858
+ "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
859
+ "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
860
+ "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
861
+ "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
862
+ "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
863
+ _: 3
864
+ }, 8, [
865
+ "svgRef",
866
+ "backgroundColor",
867
+ "color",
868
+ "active",
869
+ "isCursorPointer"
870
+ ])) : d("", !0),
871
+ un.value ? (y(), f("div", {
872
+ key: 2,
873
+ ref_key: "noTitle",
874
+ ref: Lt,
875
+ class: "vue-data-ui-no-title-space",
876
+ style: "height:36px; width: 100%;background:transparent"
877
+ }, null, 512)) : d("", !0),
878
+ M.value.style.chart.title.text ? (y(), f("div", {
879
+ key: 3,
880
+ ref_key: "chartTitle",
881
+ ref: Pt,
882
+ style: "width:100%;background:transparent;padding-bottom:24px"
883
+ }, [(y(), u(Te, {
884
+ key: `title_${Rt.value}`,
885
+ config: {
886
+ title: {
887
+ cy: "pcp-div-title",
888
+ ...M.value.style.chart.title
889
+ },
890
+ subtitle: {
891
+ cy: "pcp-div-subtitle",
892
+ ...M.value.style.chart.title.subtitle
893
+ }
894
+ }
895
+ }, null, 8, ["config"]))], 512)) : d("", !0),
896
+ p("div", { id: `legend-top-${A.value}` }, null, 8, Qe),
897
+ M.value.userOptions.show && Mt.value && (w(tn) || w($t)) ? (y(), u(w(Et), {
898
+ ref_key: "userOptionsRef",
899
+ ref: Ht,
900
+ key: `user_options_${Nt.value}`,
901
+ backgroundColor: M.value.style.chart.backgroundColor,
902
+ color: M.value.style.chart.color,
903
+ isPrinting: w(on),
904
+ isImaging: w(sn),
905
+ uid: A.value,
906
+ hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
907
+ hasPdf: M.value.userOptions.buttons.pdf,
908
+ hasXls: M.value.userOptions.buttons.csv,
909
+ hasImg: M.value.userOptions.buttons.img,
910
+ hasSvg: M.value.userOptions.buttons.svg,
911
+ hasTable: M.value.userOptions.buttons.table,
912
+ hasLabel: M.value.userOptions.buttons.labels,
913
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
914
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
915
+ isFullscreen: j.value,
916
+ isTooltip: V.value.showTooltip,
917
+ titles: { ...M.value.userOptions.buttonTitles },
918
+ chartElement: D.value,
919
+ position: M.value.userOptions.position,
920
+ hasAnnotator: M.value.userOptions.buttons.annotator,
921
+ isAnnotation: In.value,
922
+ callbacks: M.value.userOptions.callbacks,
923
+ printScale: M.value.userOptions.print.scale,
924
+ tableDialog: M.value.table.useDialog,
925
+ isCursorPointer: N.value,
926
+ onToggleFullscreen: Yt,
927
+ onGeneratePdf: w(cn),
928
+ onGenerateCsv: An,
929
+ onGenerateImage: qn,
930
+ onGenerateSvg: Kn,
931
+ onToggleTable: Nn,
932
+ onToggleLabels: Pn,
933
+ onToggleTooltip: Fn,
934
+ onToggleAnnotator: Ln,
935
+ onCopyAlt: Jn,
936
+ style: v({ visibility: w(tn) ? w($t) ? "visible" : "hidden" : "visible" })
937
+ }, Le({ _: 2 }, [
938
+ e.$slots.menuIcon ? {
939
+ name: "menuIcon",
940
+ fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
941
+ isOpen: t,
942
+ color: n
943
+ })), void 0, !0)]),
944
+ key: "0"
945
+ } : void 0,
946
+ e.$slots.optionTooltip ? {
947
+ name: "optionTooltip",
948
+ fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
949
+ key: "1"
950
+ } : void 0,
951
+ e.$slots.optionPdf ? {
952
+ name: "optionPdf",
953
+ fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
954
+ key: "2"
955
+ } : void 0,
956
+ e.$slots.optionCsv ? {
957
+ name: "optionCsv",
958
+ fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
959
+ key: "3"
960
+ } : void 0,
961
+ e.$slots.optionImg ? {
962
+ name: "optionImg",
963
+ fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
964
+ key: "4"
965
+ } : void 0,
966
+ e.$slots.optionSvg ? {
967
+ name: "optionSvg",
968
+ fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
969
+ key: "5"
970
+ } : void 0,
971
+ e.$slots.optionTable ? {
972
+ name: "optionTable",
973
+ fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
974
+ key: "6"
975
+ } : void 0,
976
+ e.$slots.optionLabels ? {
977
+ name: "optionLabels",
978
+ fn: T(() => [S(e.$slots, "optionLabels", {}, void 0, !0)]),
979
+ key: "7"
980
+ } : void 0,
981
+ e.$slots.optionFullscreen ? {
982
+ name: "optionFullscreen",
983
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
984
+ toggleFullscreen: t,
985
+ isFullscreen: n
986
+ })), void 0, !0)]),
987
+ key: "8"
988
+ } : void 0,
989
+ e.$slots.optionAnnotator ? {
990
+ name: "optionAnnotator",
991
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
992
+ toggleAnnotator: t,
993
+ isAnnotator: n
994
+ })), void 0, !0)]),
995
+ key: "9"
996
+ } : void 0,
997
+ e.$slots.optionAltCopy ? {
998
+ name: "optionAltCopy",
999
+ fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
1000
+ key: "10"
1001
+ } : void 0,
1002
+ e.$slots["custom-menu-before"] ? {
1003
+ name: "custom-menu-before",
1004
+ fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1005
+ key: "11"
1006
+ } : void 0,
1007
+ e.$slots["custom-menu-after"] ? {
1008
+ name: "custom-menu-after",
1009
+ fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1010
+ key: "12"
1011
+ } : void 0
1012
+ ]), 1032, /* @__PURE__ */ "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".split("."))) : d("", !0),
1013
+ p("div", $e, [(y(), f("svg", {
1014
+ ref_key: "svgRef",
1015
+ ref: F,
1016
+ xmlns: w(me),
1017
+ "aria-describedby": `chart-instructions-${A.value}`,
1018
+ class: g({
1019
+ "vue-data-ui-fullscreen--on": j.value,
1020
+ "vue-data-ui-fulscreen--off": !j.value
1021
+ }),
1022
+ viewBox: `0 0 ${B.value.chartWidth <= 0 ? 10 : B.value.chartWidth} ${B.value.chartHeight <= 0 ? 10 : B.value.chartHeight}`,
1023
+ style: v(`max-width:100%; overflow: visible; background:transparent;color:${M.value.style.chart.color}`),
1024
+ tabindex: "0",
1025
+ onFocus: Zn,
1026
+ onBlur: Qn,
1027
+ onKeydown: $n
1028
+ }, [
1029
+ ze(w(Dt)),
1030
+ e.$slots["chart-background"] ? (y(), f("foreignObject", {
1031
+ key: 0,
1032
+ x: B.value.left,
1033
+ y: B.value.top,
1034
+ width: B.value.width,
1035
+ height: B.value.height,
1036
+ style: { pointerEvents: "none" }
1037
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : d("", !0),
1038
+ (y(!0), f(c, null, x(q.value, (e, t) => (y(), f("g", nt, [p("line", {
1039
+ x1: B.value.left + G.value * t + G.value / 2,
1040
+ x2: B.value.left + G.value * t + G.value / 2,
1041
+ y1: B.value.top,
1042
+ y2: B.value.bottom,
1043
+ stroke: M.value.style.chart.yAxis.stroke,
1044
+ "stroke-width": M.value.style.chart.yAxis.strokeWidth
1045
+ }, null, 8, rt), M.value.style.chart.yAxis.labels.ticks.show ? (y(), f(c, { key: 0 }, [(y(!0), f(c, null, x(e.ticks, (e) => (y(), f("line", {
1046
+ x1: e.x,
1047
+ x2: e.x - 10,
1048
+ y1: e.y,
1049
+ y2: e.y,
1050
+ stroke: M.value.style.chart.yAxis.stroke,
1051
+ "stroke-width": M.value.style.chart.yAxis.strokeWidth,
1052
+ style: v(`opacity:${X.value && !V.value.showTooltip ? .2 : 1}`)
1053
+ }, null, 12, it))), 256)), w(P) ? d("", !0) : (y(), f("g", at, [(y(!0), f(c, null, x(e.ticks, (e) => (y(), f("text", {
1054
+ x: e.x - 12 + M.value.style.chart.yAxis.labels.ticks.offsetX,
1055
+ y: e.y + M.value.style.chart.yAxis.labels.ticks.offsetY + R.value.ticksFontSize / 3,
1056
+ fill: M.value.style.chart.yAxis.labels.ticks.color,
1057
+ "text-anchor": "end",
1058
+ "font-size": R.value.ticksFontSize,
1059
+ "font-weight": M.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
1060
+ style: v(`opacity:${X.value && !V.value.showTooltip ? .2 : 1}`)
1061
+ }, C(Sn({
1062
+ value: e.value,
1063
+ index: t,
1064
+ datapoint: e
1065
+ })), 13, ot))), 256))]))], 64)) : d("", !0)]))), 256)),
1066
+ M.value.style.chart.yAxis.labels.showAxisNames ? (y(), f("g", {
1067
+ key: 1,
1068
+ ref_key: "xAxisLabels",
1069
+ ref: Gt
1070
+ }, [(y(!0), f(c, null, x(q.value, (e, t) => (y(), f(c, null, [String(e.name).includes("\n") ? (y(), f("text", {
1071
+ key: 1,
1072
+ class: "vue-ui-parallel-coordinate-plot-x-label",
1073
+ fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1074
+ "font-size": R.value.axisNameFontSize,
1075
+ "font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
1076
+ "text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
1077
+ transform: `translate(${B.value.left + G.value * t + G.value / 2}, ${z.value - R.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`,
1078
+ innerHTML: w(re)({
1079
+ content: String(e.name),
1080
+ fontSize: R.value.axisNameFontSize,
1081
+ fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1082
+ x: 0,
1083
+ y: 0
1084
+ })
1085
+ }, null, 8, ct)) : (y(), f("text", {
1086
+ key: 0,
1087
+ class: "vue-ui-parallel-coordinate-plot-x-label",
1088
+ fill: M.value.style.chart.yAxis.labels.axisNamesColor,
1089
+ "font-size": R.value.axisNameFontSize,
1090
+ "font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
1091
+ "text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
1092
+ transform: `translate(${B.value.left + G.value * t + G.value / 2}, ${z.value - R.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`
1093
+ }, C(e.name), 9, st))], 64))), 256))], 512)) : d("", !0),
1094
+ (y(!0), f(c, null, x(J.value, (t, n) => (y(), f("g", null, [(y(!0), f(c, null, x(t.series, (r, i) => (y(), f("g", null, [
1095
+ M.value.style.chart.plots.show ? (y(), f("g", lt, [
1096
+ (y(!0), f(c, null, x(r.datapoints, (e, a) => (y(), u(Ee, {
1097
+ plot: {
1098
+ x: e.x,
1099
+ y: e.y
1100
+ },
1101
+ color: t.color,
1102
+ shape: t.shape,
1103
+ radius: t.shape === "triangle" ? R.value.plotSize * 1.2 : R.value.plotSize,
1104
+ stroke: M.value.style.chart.backgroundColor,
1105
+ strokeWidth: .5,
1106
+ onMouseenter: (e) => Dn({
1107
+ shape: t.shape,
1108
+ serieName: t.name,
1109
+ serie: r,
1110
+ relativeIndex: i,
1111
+ seriesIndex: r.seriesIndex,
1112
+ S: n,
1113
+ triggerMode: "pointer"
1114
+ }),
1115
+ onMouseleave: (e) => Z({
1116
+ serie: r,
1117
+ shape: t.shape,
1118
+ S: n
1119
+ }),
1120
+ style: v(`opacity:${X.value ? X.value === r.id ? M.value.style.chart.plots.opacity : .2 : M.value.style.chart.plots.opacity}`),
1121
+ onClick: () => Mn({
1122
+ serie: r,
1123
+ shape: t.shape,
1124
+ S: n
1125
+ })
1126
+ }, null, 8, [
1127
+ "plot",
1128
+ "color",
1129
+ "shape",
1130
+ "radius",
1131
+ "stroke",
1132
+ "onMouseenter",
1133
+ "onMouseleave",
1134
+ "style",
1135
+ "onClick"
1136
+ ]))), 256)),
1137
+ V.value.showTooltip ? d("", !0) : (y(), f(c, { key: 0 }, [X.value && X.value === r.id && r.datapoints.length ? (y(), f("text", {
1138
+ key: 0,
1139
+ x: r.datapoints[0].x - R.value.ticksFontSize,
1140
+ y: r.datapoints[0].y + R.value.ticksFontSize / 3,
1141
+ "text-anchor": "end",
1142
+ "font-size": R.value.ticksFontSize,
1143
+ fill: t.color,
1144
+ "font-weight": "bold"
1145
+ }, C(r.name), 9, ut)) : d("", !0)], 64)),
1146
+ M.value.style.chart.comments.show ? (y(!0), f(c, { key: 1 }, x(r.datapoints, (n) => (y(), f("g", null, [n.comment ? (y(), f("foreignObject", {
1147
+ key: 0,
1148
+ style: { overflow: "visible" },
1149
+ height: "12",
1150
+ width: M.value.style.chart.comments.width,
1151
+ x: n.x - M.value.style.chart.comments.width / 2 + M.value.style.chart.comments.offsetX,
1152
+ y: n.y + M.value.style.chart.comments.offsetY + 6
1153
+ }, [p("div", ft, [S(e.$slots, "plot-comment", { plot: {
1154
+ ...n,
1155
+ color: t.color
1156
+ } }, void 0, !0)])], 8, dt)) : d("", !0)]))), 256)) : d("", !0)
1157
+ ])) : d("", !0),
1158
+ !w(P) && (V.value.dataLabels.show || X.value && X.value === r.id) ? (y(!0), f(c, { key: 1 }, x(r.datapoints, (e, a) => (y(), f("text", {
1159
+ x: e.x + 12 + M.value.style.chart.yAxis.labels.datapoints.offsetX,
1160
+ y: e.y + M.value.style.chart.yAxis.labels.datapoints.offsetY + R.value.datapointFontSize / 3,
1161
+ fill: M.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : M.value.style.chart.yAxis.labels.datapoints.color,
1162
+ "text-anchor": "start",
1163
+ "font-weight": M.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
1164
+ class: g({
1165
+ "vue-ui-pcp-animated": !1,
1166
+ "vue-ui-pcp-transition": !w(P)
1167
+ }),
1168
+ "font-size": R.value.datapointFontSize,
1169
+ onMouseenter: (e) => Dn({
1170
+ shape: t.shape,
1171
+ serieName: t.name,
1172
+ serie: r,
1173
+ relativeIndex: i,
1174
+ seriesIndex: r.seriesIndex,
1175
+ S: n,
1176
+ triggerMode: "pointer"
1177
+ }),
1178
+ onMouseleave: (e) => Z({
1179
+ serie: r,
1180
+ shape: t.shape,
1181
+ S: n
1182
+ }),
1183
+ onClick: () => Mn({
1184
+ serie: r,
1185
+ shape: t.shape,
1186
+ S: n
1187
+ }),
1188
+ style: v(`opacity:${X.value ? X.value === r.id ? 1 : .2 : 1}`)
1189
+ }, C(Sn({
1190
+ value: e.value,
1191
+ index: a,
1192
+ datapoint: e
1193
+ })), 47, pt))), 256)) : d("", !0),
1194
+ p("path", {
1195
+ d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
1196
+ stroke: t.color,
1197
+ "stroke-width": M.value.style.chart.lines.strokeWidth,
1198
+ fill: "none",
1199
+ class: g({
1200
+ "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1201
+ "vue-ui-pcp-transition": !w(P)
1202
+ }),
1203
+ onMouseenter: (e) => Dn({
1204
+ shape: t.shape,
1205
+ serieName: t.name,
1206
+ serie: r,
1207
+ relativeIndex: i,
1208
+ seriesIndex: r.seriesIndex,
1209
+ S: n,
1210
+ triggerMode: "pointer"
1211
+ }),
1212
+ onMouseleave: (e) => Z({
1213
+ serie: r,
1214
+ shape: t.shape,
1215
+ S: n
1216
+ }),
1217
+ onClick: () => Mn({
1218
+ serie: r,
1219
+ shape: t.shape,
1220
+ S: n
1221
+ }),
1222
+ style: v(`opacity:${X.value ? X.value === r.id ? M.value.style.chart.lines.opacity : .2 : M.value.style.chart.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation ? r.pathLength : 0}`)
1223
+ }, null, 46, mt),
1224
+ V.value.showTooltip ? (y(), f("path", {
1225
+ key: 2,
1226
+ d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
1227
+ stroke: "transparent",
1228
+ "stroke-width": 12,
1229
+ fill: "none",
1230
+ class: g({
1231
+ "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1232
+ "vue-ui-pcp-transition": !w(P)
1233
+ }),
1234
+ onMouseenter: (e) => Dn({
1235
+ shape: t.shape,
1236
+ serieName: t.name,
1237
+ serie: r,
1238
+ relativeIndex: i,
1239
+ seriesIndex: r.seriesIndex,
1240
+ S: n,
1241
+ triggerMode: "pointer"
1242
+ }),
1243
+ onMouseleave: (e) => Z({
1244
+ serie: r,
1245
+ shape: t.shape,
1246
+ S: n
1247
+ }),
1248
+ onClick: () => Mn({
1249
+ serie: r,
1250
+ shape: t.shape,
1251
+ S: n
1252
+ }),
1253
+ style: { opacity: "0" }
1254
+ }, null, 42, ht)) : d("", !0)
1255
+ ]))), 256))]))), 256)),
1256
+ S(e.$slots, "svg", { svg: {
1257
+ ...B.value,
1258
+ isPrintingImg: w(on) || w(sn) || Ut.value,
1259
+ isPrintingSvg: Wt.value
1260
+ } }, void 0, !0)
1261
+ ], 46, et)), e.$slots.hint ? (y(), f("div", gt, [S(e.$slots, "hint", _(h({
1262
+ hint: M.value.a11y.translations.keyboardNavigation,
1263
+ isVisible: Jt.value
1264
+ })), void 0, !0)])) : d("", !0)]),
1265
+ e.$slots.watermark ? (y(), f("div", _t, [S(e.$slots, "watermark", _(h({ isPrinting: w(on) || w(sn) || Ut.value || Wt.value })), void 0, !0)])) : d("", !0),
1266
+ p("div", { id: `legend-bottom-${A.value}` }, null, 8, vt),
1267
+ Vt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ie, {
1268
+ key: 6,
1269
+ to: M.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1270
+ }, [p("div", {
1271
+ ref_key: "chartLegend",
1272
+ ref: Ft
1273
+ }, [S(e.$slots, "legend", { legend: W.value }, () => [M.value.style.chart.legend.show && Mt.value ? (y(), u(Pe, {
1274
+ key: `legend_${zt.value}`,
1275
+ legendSet: W.value,
1276
+ config: bn.value,
1277
+ isCursorPointer: N.value,
1278
+ onClickMarker: t[0] ||= ({ legend: e }) => {
1279
+ gn(e.id);
1280
+ }
1281
+ }, {
1282
+ item: T(({ legend: e, index: t }) => [p("div", {
1283
+ onClick: (t) => e.segregate(),
1284
+ style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
1285
+ }, C(e.name), 13, yt)]),
1286
+ legendToggle: T(() => [W.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !w(P) ? (y(), u(Ae, {
1287
+ key: 0,
1288
+ backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1289
+ color: M.value.style.chart.legend.selectAllToggle.color,
1290
+ fontSize: M.value.style.chart.legend.fontSize,
1291
+ checked: H.value.length > 0,
1292
+ isCursorPointer: N.value,
1293
+ onToggle: hn
1294
+ }, null, 8, [
1295
+ "backgroundColor",
1296
+ "color",
1297
+ "fontSize",
1298
+ "checked",
1299
+ "isCursorPointer"
1300
+ ])) : d("", !0)]),
1301
+ _: 1
1302
+ }, 8, [
1303
+ "legendSet",
1304
+ "config",
1305
+ "isCursorPointer"
1306
+ ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1307
+ e.$slots.source ? (y(), f("div", {
1308
+ key: 7,
1309
+ ref_key: "source",
1310
+ ref: It,
1311
+ dir: "auto"
1312
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1313
+ ze(w(xt), {
1314
+ teleportTo: M.value.style.chart.tooltip.teleportTo,
1315
+ show: V.value.showTooltip && wn.value,
1316
+ backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1317
+ color: M.value.style.chart.tooltip.color,
1318
+ fontSize: M.value.style.chart.tooltip.fontSize,
1319
+ borderRadius: M.value.style.chart.tooltip.borderRadius,
1320
+ borderColor: M.value.style.chart.tooltip.borderColor,
1321
+ borderWidth: M.value.style.chart.tooltip.borderWidth,
1322
+ backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
1323
+ position: M.value.style.chart.tooltip.position,
1324
+ offsetX: M.value.style.chart.tooltip.offsetX,
1325
+ offsetY: M.value.style.chart.tooltip.offsetY,
1326
+ parent: D.value,
1327
+ content: Tn.value,
1328
+ isFullscreen: j.value,
1329
+ isCustom: w(oe)(M.value.style.chart.tooltip.customFormat),
1330
+ smooth: M.value.style.chart.tooltip.smooth,
1331
+ backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1332
+ smoothForce: M.value.style.chart.tooltip.smoothForce,
1333
+ smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1334
+ isA11yMode: qt.value === "keyboard",
1335
+ a11yPosition: Kt.value
1336
+ }, {
1337
+ "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Cn.value })), void 0, !0)]),
1338
+ tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Cn.value })), void 0, !0)]),
1339
+ "tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...Cn.value })), void 0, !0)]),
1340
+ _: 3
1341
+ }, 8, [
1342
+ "teleportTo",
1343
+ "show",
1344
+ "backgroundColor",
1345
+ "color",
1346
+ "fontSize",
1347
+ "borderRadius",
1348
+ "borderColor",
1349
+ "borderWidth",
1350
+ "backgroundOpacity",
1351
+ "position",
1352
+ "offsetX",
1353
+ "offsetY",
1354
+ "parent",
1355
+ "content",
1356
+ "isFullscreen",
1357
+ "isCustom",
1358
+ "smooth",
1359
+ "backdropFilter",
1360
+ "smoothForce",
1361
+ "smoothSnapThreshold",
1362
+ "isA11yMode",
1363
+ "a11yPosition"
1364
+ ]),
1365
+ Mt.value && M.value.userOptions.buttons.table ? (y(), u(We(Bn.value.component), Be({ key: 8 }, Bn.value.props, {
1366
+ ref_key: "tableUnit",
1367
+ ref: O,
1368
+ onClose: Vn
1369
+ }), Le({
1370
+ content: T(() => [(y(), u(w(wt), {
1371
+ key: `table_${Bt.value}`,
1372
+ colNames: Q.value.colNames,
1373
+ head: Q.value.head,
1374
+ body: Q.value.body,
1375
+ config: Q.value.config,
1376
+ title: M.value.table.useDialog ? "" : Bn.value.title,
1377
+ withCloseButton: !M.value.table.useDialog,
1378
+ isCursorPointer: N.value,
1379
+ onClose: Vn
1380
+ }, {
1381
+ th: T(({ th: e }) => [p("div", { innerHTML: e }, null, 8, bt)]),
1382
+ td: T(({ td: e }) => [Re(C(e), 1)]),
1383
+ _: 1
1384
+ }, 8, [
1385
+ "colNames",
1386
+ "head",
1387
+ "body",
1388
+ "config",
1389
+ "title",
1390
+ "withCloseButton",
1391
+ "isCursorPointer"
1392
+ ]))]),
1393
+ _: 2
1394
+ }, [M.value.table.useDialog ? {
1395
+ name: "title",
1396
+ fn: T(() => [Re(C(Bn.value.title), 1)]),
1397
+ key: "0"
1398
+ } : void 0, M.value.table.useDialog ? {
1399
+ name: "actions",
1400
+ fn: T(() => [p("button", {
1401
+ tabindex: "0",
1402
+ class: "vue-ui-user-options-button",
1403
+ onClick: t[1] ||= (e) => An(M.value.userOptions.callbacks.csv),
1404
+ style: v({ cursor: N.value ? "pointer" : "default" })
1405
+ }, [ze(w(St), {
1406
+ name: "fileCsv",
1407
+ stroke: Bn.value.props.color
1408
+ }, null, 8, ["stroke"])], 4)]),
1409
+ key: "1"
1410
+ } : void 0]), 1040)) : d("", !0),
1411
+ S(e.$slots, "skeleton", {}, () => [w(P) ? (y(), u(ye, { key: 0 })) : d("", !0)], !0)
1412
+ ], 46, Xe));
1413
+ }
1414
+ }, [["__scopeId", "data-v-a7286565"]]);
1415
+ //#endregion
1416
+ export { Ye as n, xt as t };