vue-data-ui 3.22.13 → 3.23.0

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