vue-data-ui 3.22.9 → 3.22.11

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