vue-data-ui 3.26.5 → 3.27.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 (200) hide show
  1. package/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.js} +2 -2
  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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
  95. package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +212 -59
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
  184. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  185. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  186. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  187. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  189. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  190. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
  192. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  193. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  194. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  195. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  197. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  198. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  200. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
@@ -1,1444 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, D as r, Et as i, J as a, P as o, Qt as ee, Rt as te, S as ne, U as re, Vt as ie, X as ae, _ as oe, at as se, bt as ce, en as le, et as ue, ft as de, i as fe, nt as pe, t as me, tn as he, vt as ge, w as _e } from "./lib-TWIH5fGr.js";
3
- import { n as ve, t as ye } from "./useHints-Dq_w2E8B.js";
4
- import { t as be } from "./useConfig-DObkR9Aa.js";
5
- import { t as xe } from "./usePrinter-8Y1Rju0Y.js";
6
- import { n as Se, t as Ce } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as we } from "./useNestedProp-BxOdWM0c.js";
8
- import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Ee } from "./useChartExport-iwOqiIWX.js";
10
- import { t as De } from "./useTransitions-g_zBREk2.js";
11
- import { t as Oe } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as ke } from "./img-KURaWjZI.js";
13
- import { n as Ae } from "./Title-Bd98RysU.js";
14
- import { t as je } from "./Shape-BZgQLgu5.js";
15
- import { t as Me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Fe } from "./BaseLegendToggle-Doa5rYP2.js";
18
- import { t as Ie } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Le } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Re } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as ze } from "./Legend-D9FGXIbQ.js";
22
- import { t as Be } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
23
- import { Fragment as s, Teleport as Ve, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ge, nextTick as Ke, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as qe, onMounted as Je, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as S, toRefs as Ze, unref as C, watch as Qe, watchEffect as $e, withCtx as w } from "vue";
24
- //#region src/components/vue-ui-parallel-coordinate-plot.vue
25
- var et = /* @__PURE__ */ e({ default: () => Tt }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], ot = [
30
- "x",
31
- "y",
32
- "width",
33
- "height"
34
- ], st = { style: { "pointer-events": "none" } }, ct = [
35
- "x1",
36
- "x2",
37
- "y1",
38
- "y2",
39
- "stroke",
40
- "stroke-width"
41
- ], lt = [
42
- "d",
43
- "stroke",
44
- "stroke-width"
45
- ], ut = { key: 0 }, dt = [
46
- "transform",
47
- "fill",
48
- "font-size",
49
- "font-weight"
50
- ], ft = [
51
- "fill",
52
- "font-size",
53
- "font-weight",
54
- "text-anchor",
55
- "transform"
56
- ], pt = [
57
- "fill",
58
- "font-size",
59
- "font-weight",
60
- "text-anchor",
61
- "transform",
62
- "innerHTML"
63
- ], mt = { key: 0 }, ht = [
64
- "x",
65
- "y",
66
- "font-size",
67
- "fill"
68
- ], gt = [
69
- "width",
70
- "x",
71
- "y"
72
- ], _t = { style: { width: "100%" } }, vt = [
73
- "d",
74
- "stroke",
75
- "stroke-width",
76
- "onMouseenter",
77
- "onMouseleave",
78
- "onClick"
79
- ], yt = [
80
- "d",
81
- "onMouseenter",
82
- "onMouseleave",
83
- "onClick"
84
- ], bt = [
85
- "transform",
86
- "fill",
87
- "font-weight",
88
- "font-size",
89
- "stroke",
90
- "onMouseenter",
91
- "onMouseleave",
92
- "onClick"
93
- ], xt = {
94
- key: 0,
95
- style: {
96
- position: "absolute",
97
- top: "100%",
98
- left: "0",
99
- width: "100%"
100
- },
101
- "data-dom-to-png-ignore": "",
102
- "aria-hidden": "true"
103
- }, St = {
104
- key: 5,
105
- class: "vue-data-ui-watermark"
106
- }, Ct = ["id"], wt = ["onClick"], Tt = /*#__PURE__*/ Me({
107
- __name: "vue-ui-parallel-coordinate-plot",
108
- props: {
109
- config: {
110
- type: Object,
111
- default() {
112
- return {};
113
- }
114
- },
115
- dataset: {
116
- type: Array,
117
- default() {
118
- return [];
119
- }
120
- }
121
- },
122
- emits: [
123
- "selectLegend",
124
- "selectDatapoint",
125
- "copyAlt"
126
- ],
127
- setup(e, { expose: Me, emit: et }) {
128
- let Tt = p(() => import("./Tooltip-DmQeI5WE.js")), Et = p(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), Dt = p(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), Ot = p(() => import("./DataTable-B6LDCXBz.js")), kt = p(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), At = p(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), jt = p(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), Mt = p(() => import("./BaseDraggableDialog-BCFCiP_6.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: Nt } = be(), { isThemeValid: Pt, warnInvalidTheme: Ft } = Te(), T = e, It = c({
129
- get() {
130
- return !!T.dataset && T.dataset.length;
131
- },
132
- set(e) {
133
- return e;
134
- }
135
- }), Lt = y(0), E = y(null), Rt = y(null), zt = y(null), Bt = y(null), Vt = y(null), Ht = y(0), Ut = y(0), Wt = y(0), Gt = y(!1), Kt = y(null), qt = y(null), Jt = y(null), D = y(null), Yt = y({
136
- x: 0,
137
- y: 0
138
- }), Xt = y("pointer"), Zt = y(!1), O = y(ae()), k = y(!1);
139
- function Qt(e) {
140
- k.value = e, Lt.value += 1;
141
- }
142
- let A = y(on()), j = c(() => A.value.userOptions), M = c(() => A.value.style.chart.yAxis.labels), N = c(() => A.value.style.chart.tooltip), P = c(() => A.value.style.chart), { transitionEnabled: F } = De({
143
- config: () => A.value.transitions,
144
- dataset: () => T.dataset
145
- });
146
- ve({
147
- config: () => A.value,
148
- dataset: () => T.dataset,
149
- component: "VueUiParallelCoordinatePlot",
150
- rules: [
151
- ye.emptyArray,
152
- {
153
- test: (e) => e.length > 10,
154
- message: [
155
- "👀 There are > 10 series. Consider:",
156
- "",
157
- "▶️ Using filters, to show less series at the same time and make the chart more readable."
158
- ]
159
- },
160
- {
161
- test: (e) => e.some((e) => (e?.series ?? []).some((e) => (e?.values ?? []).length > 15)),
162
- message: [
163
- "👀 There are > 15 axes, which can make the chart hard to read. Consider:",
164
- "",
165
- "▶️ Using filters, to allow users to select a maximum set of metrics."
166
- ]
167
- },
168
- {
169
- test: (e) => e.some((e) => e?.series?.length > 5),
170
- message: [
171
- "👀 Some series have > 5 datapoints. Consider:",
172
- "",
173
- "▶️ Using filters, to allow users to select a maximum set of metrics."
174
- ]
175
- }
176
- ]
177
- });
178
- let I = c(() => A.value.userOptions.useCursorPointer), $t = c(() => he({
179
- defaultConfig: {
180
- useCssAnimation: !1,
181
- userOptions: { show: !1 },
182
- table: { show: !1 },
183
- style: { chart: {
184
- backgroundColor: "#99999930",
185
- legend: {
186
- show: !0,
187
- backgroundColor: "transparent"
188
- },
189
- yAxis: {
190
- stroke: "#6A6A6A",
191
- labels: {
192
- showAxisNames: !1,
193
- axisNames: [],
194
- ticks: { color: "#6A6A6A" }
195
- }
196
- }
197
- } }
198
- },
199
- userConfig: A.value.skeletonConfig ?? {}
200
- })), { loading: L, FINAL_DATASET: en, manualLoading: tn } = Se({
201
- ...Ze(T),
202
- FINAL_CONFIG: A,
203
- prepareConfig: on,
204
- callback: () => {
205
- Promise.resolve().then(async () => {
206
- await Ke(), U.value.showTable = A.value.table.show;
207
- });
208
- },
209
- skeletonDataset: T.config?.skeletonDataset ?? [
210
- {
211
- name: "",
212
- shape: "circle",
213
- color: "transparent",
214
- series: [{
215
- name: "",
216
- values: [
217
- 1,
218
- 10,
219
- 100,
220
- 1e3
221
- ]
222
- }]
223
- },
224
- {
225
- name: "",
226
- shape: "circle",
227
- color: "#CACACA",
228
- series: [{
229
- name: "",
230
- values: [
231
- .2,
232
- 3,
233
- 50,
234
- 800
235
- ]
236
- }]
237
- },
238
- {
239
- name: "",
240
- shape: "circle",
241
- color: "transparent",
242
- series: [{
243
- name: "",
244
- values: [
245
- 0,
246
- 0,
247
- 0,
248
- 0
249
- ]
250
- }]
251
- }
252
- ],
253
- skeletonConfig: he({
254
- defaultConfig: A.value,
255
- userConfig: $t.value
256
- })
257
- }), { userOptionsVisible: nn, setUserOptionsVisibility: rn, keepUserOptionState: an } = Le({ config: A.value }), { svgRef: R } = Re({ config: P.value.title });
258
- function on() {
259
- let e = we({
260
- userConfig: T.config,
261
- defaultConfig: Nt
262
- }), t = e.theme;
263
- if (!t) return e;
264
- if (!Pt.value(e)) return Ft(e), e;
265
- let r = we({
266
- userConfig: Be[t] || T.config,
267
- defaultConfig: e
268
- }), i = we({
269
- userConfig: T.config,
270
- defaultConfig: r
271
- });
272
- return {
273
- ...i,
274
- customPalette: i.customPalette.length ? i.customPalette : n[t] || ie
275
- };
276
- }
277
- function sn(e) {
278
- let t = ue(e);
279
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
280
- }
281
- let cn = sn(T.config);
282
- Qe(() => T.config, (e, t) => {
283
- let n = sn(e), r = n !== cn;
284
- cn = n;
285
- let i = on();
286
- if (!r) {
287
- A.value.style.chart.tooltip = i.style.chart.tooltip, U.value.showTooltip = A.value.style.chart.tooltip.show;
288
- return;
289
- }
290
- L.value || (A.value = i), nn.value = !A.value.userOptions.showOnChartHover, un(), Ht.value += 1, Wt.value += 1, Ut.value += 1, U.value.dataLabels.show = M.value.datapoints.show, U.value.showTable = A.value.table.show, U.value.showTooltip = N.value.show;
291
- }, { deep: !0 }), Qe(() => T.dataset, (e) => {
292
- Array.isArray(e) && e.length > 0 && (tn.value = !1);
293
- }, { deep: !0 });
294
- let z = Xe(null), B = Xe(null);
295
- Je(() => {
296
- Gt.value = !0, un();
297
- });
298
- let ln = c(() => A.value.debug);
299
- function un() {
300
- if (te(T.dataset) ? (se({
301
- componentName: "VueUiParallelCoordinatePlot",
302
- type: "dataset",
303
- debug: ln.value
304
- }), tn.value = !0) : T.dataset.forEach((e, t) => {
305
- ge({
306
- datasetObject: e,
307
- requiredAttributes: ["name", "series"]
308
- }).forEach((e) => {
309
- It.value = !1, se({
310
- componentName: "VueUiParallelCoordinatePlot",
311
- type: "datasetSerieAttribute",
312
- property: e,
313
- index: t,
314
- debug: ln.value
315
- });
316
- });
317
- }), te(T.dataset) || (tn.value = A.value.loading), A.value.responsive) {
318
- let e = Ne(() => {
319
- let { width: e, height: t } = Pe({
320
- chart: E.value,
321
- title: P.value.title.text ? Rt.value : null,
322
- legend: P.value.legend.show ? zt.value : null,
323
- source: Bt.value,
324
- noTitle: Vt.value
325
- });
326
- requestAnimationFrame(() => {
327
- V.value.width = e, V.value.height = t - 12, A.value.responsiveProportionalSizing ? (V.value.plotSize = le({
328
- relator: Math.min(e, t),
329
- adjuster: 600,
330
- source: P.value.plots.radius,
331
- threshold: 2,
332
- fallback: 2
333
- }), V.value.ticksFontSize = le({
334
- relator: Math.min(e, t),
335
- adjuster: 600,
336
- source: M.value.ticks.fontSize,
337
- threshold: 10,
338
- fallback: 10
339
- }), V.value.datapointFontSize = le({
340
- relator: Math.min(e, t),
341
- adjuster: 600,
342
- source: M.value.datapoints.fontSize,
343
- threshold: 10,
344
- fallback: 10
345
- }), V.value.axisNameFontSize = le({
346
- relator: Math.min(e, t),
347
- adjuster: 600,
348
- source: M.value.axisNamesFontSize,
349
- threshold: 12,
350
- fallback: 12
351
- })) : (V.value.plotSize = P.value.plots.radius, V.value.ticksFontSize = M.value.ticks.fontSize, V.value.datapointFontSize = M.value.datapoints.fontSize, V.value.axisNameFontSize = M.value.axisNamesFontSize);
352
- });
353
- });
354
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = E.value.parentNode, z.value.observe(B.value);
355
- }
356
- }
357
- qe(() => {
358
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
359
- });
360
- let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = xe({
361
- elementId: `pcp_${O.value}`,
362
- fileName: P.value.title.text || "vue-ui-parallel-coordinate-plot",
363
- options: A.value.userOptions.print
364
- }), hn = c(() => A.value.userOptions.show && !P.value.title.text), V = y({
365
- height: P.value.height,
366
- width: P.value.width,
367
- plotSize: P.value.plots.radius,
368
- ticksFontSize: M.value.ticks.fontSize,
369
- datapointFontSize: M.value.datapoints.fontSize,
370
- axisNameFontSize: M.value.axisNamesFontSize
371
- }), gn = c(() => V.value.width), _n = c(() => V.value.height), vn = y(0), yn = Ne((e) => {
372
- vn.value = e;
373
- }, 100);
374
- $e((e) => {
375
- let t = Jt.value;
376
- if (!t) return;
377
- let n = new ResizeObserver((e) => {
378
- yn(e[0].contentRect.height);
379
- });
380
- n.observe(t), e(() => n.disconnect());
381
- });
382
- let H = c(() => {
383
- let { top: e, right: t, bottom: n, left: r } = P.value.padding, i = _n.value, a = gn.value;
384
- return {
385
- chartHeight: Math.max(.001, i),
386
- chartWidth: Math.max(.001, a),
387
- height: Math.max(.001, i - e - n - vn.value - V.value.datapointFontSize * 2),
388
- width: Math.max(.001, a - r - t),
389
- top: e + vn.value + V.value.datapointFontSize,
390
- left: r,
391
- right: a - t,
392
- bottom: i - n - V.value.datapointFontSize
393
- };
394
- }), bn = c(() => _e(A.value.customPalette)), U = y({
395
- dataLabels: { show: M.value.datapoints.show },
396
- showTable: A.value.table.show,
397
- showTooltip: N.value.show
398
- });
399
- Qe(A, () => {
400
- U.value = {
401
- dataLabels: { show: M.value.datapoints.show },
402
- showTable: A.value.table.show,
403
- showTooltip: N.value.show
404
- };
405
- }, { immediate: !0 });
406
- let W = y([]);
407
- function xn() {
408
- W.value.length ? W.value = [] : En.value.forEach((e) => {
409
- W.value.push(e.id);
410
- }), Bn("selectLegend", kn.value);
411
- }
412
- function Sn(e) {
413
- W.value.includes(e) ? W.value = W.value.filter((t) => t !== e) : W.value.push(e), Bn("selectLegend", kn.value);
414
- }
415
- let G = c(() => en.value.map((e, t) => {
416
- let n = ne(e.color) || bn.value[t] || ie[t] || ie[t % ie.length];
417
- return {
418
- ...e,
419
- series: e.series.map((e) => ({
420
- ...e,
421
- id: ae(),
422
- color: n
423
- })),
424
- seriesIndex: t,
425
- color: n,
426
- id: ae(),
427
- shape: e.shape || "circle"
428
- };
429
- }));
430
- function Cn(e) {
431
- return G.value.length ? G.value.find((t) => t.name === e) || (ln.value && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (ln.value && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
432
- }
433
- function wn(e) {
434
- let t = Cn(e);
435
- t !== null && W.value.includes(t.id) && Sn(t.id);
436
- }
437
- function Tn(e) {
438
- let t = Cn(e);
439
- t !== null && (W.value.includes(t.id) || Sn(t.id));
440
- }
441
- let En = c(() => G.value.map((e) => ({
442
- ...e,
443
- opacity: W.value.includes(e.id) ? .5 : 1,
444
- segregate: () => Sn(e.id),
445
- isSegregated: W.value.includes(e.id),
446
- shape: e.shape || "circle"
447
- }))), Dn = c(() => ({
448
- cy: "pcp-div-legend",
449
- backgroundColor: P.value.legend.backgroundColor,
450
- color: P.value.legend.color,
451
- fontSize: P.value.legend.fontSize,
452
- paddingBottom: 12,
453
- fontWeight: P.value.legend.bold ? "bold" : ""
454
- })), On = c(() => Math.max(...G.value.filter((e) => !W.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), K = c(() => H.value.width / On.value), kn = c(() => G.value.filter((e) => !W.value.includes(e.id))), q = c(() => {
455
- let e = [];
456
- for (let t = 0; t < On.value; t += 1) {
457
- let n = Math.min(...kn.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...kn.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = r === n ? n / 4 : n, a = r === n ? r * 2 : r, o = oe(i, a, P.value.yAxis.scaleTicks), ee = o.ticks.map((e, n) => {
458
- let r = o.min < 0 ? e + Math.abs(o.min) : e - Math.abs(o.min), i = o.min < 0 ? o.max + Math.abs(o.min) : o.max - Math.abs(o.min);
459
- return {
460
- y: H.value.bottom - H.value.height * (r / i),
461
- x: H.value.left + K.value * t + K.value / 2,
462
- value: e
463
- };
464
- });
465
- e.push({
466
- scale: o,
467
- ticks: ee,
468
- name: M.value.axisNames[t] || `Y-${t + 1}`
469
- });
470
- }
471
- return e;
472
- }), J = c(() => kn.value.map((e, t) => ({
473
- ...e,
474
- series: e.series.map((n, r) => ({
475
- ...n,
476
- datapoints: n.values.map((i, a) => {
477
- 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), ee = 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);
478
- return {
479
- name: n.name,
480
- seriesName: e.name,
481
- axisIndex: a,
482
- datapointIndex: r,
483
- seriesIndex: t,
484
- value: i || 0,
485
- x: H.value.left + K.value * a + K.value / 2,
486
- y: H.value.bottom - H.value.height * (o / ee),
487
- comment: n.comments && n.comments[a] || ""
488
- };
489
- })
490
- }))
491
- })).map((e) => ({
492
- ...e,
493
- series: e.series.map((e) => {
494
- let t = re(e.datapoints), n = o(e.datapoints, .12), r = ce(P.value.lines.smooth ? `M ${n}` : `M ${t}`);
495
- return {
496
- ...e,
497
- smoothPath: n,
498
- straightPath: t,
499
- pathLength: r
500
- };
501
- })
502
- }))), Y = c(() => J.value.flatMap((e, t) => e.series.map((n, r) => ({
503
- shape: e.shape,
504
- serieName: e.name,
505
- serie: n,
506
- relativeIndex: r,
507
- seriesIndex: n.seriesIndex,
508
- S: t,
509
- key: `${t}_${r}`
510
- }))));
511
- function An({ value: e, index: n, datapoint: r }) {
512
- return fe(M.value.formatters[n] || null, e, t({
513
- p: M.value.prefixes[n] || "",
514
- v: e,
515
- s: M.value.suffixes[n] || "",
516
- r: M.value.roundings[n] || 0
517
- }), {
518
- datapoint: r,
519
- seriesIndex: n
520
- });
521
- }
522
- let X = y(null), jn = y(null), Mn = y(!1), Nn = y("");
523
- function Pn({ shape: e, serie: t, S: n }) {
524
- A.value.events.datapointLeave && A.value.events.datapointLeave({
525
- datapoint: {
526
- ...t,
527
- shape: e
528
- },
529
- seriesIndex: n
530
- });
531
- let r = D.value === null ? null : Y.value[D.value];
532
- Xt.value === "keyboard" && r && r.serie.id === t.id || (X.value = null, Mn.value = !1);
533
- }
534
- function Fn(e) {
535
- if (!R.value || !e?.datapoints?.length) return;
536
- let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
537
- if (!t) return;
538
- let n = ee(t.x, t.y, R.value);
539
- n && (Yt.value = n);
540
- }
541
- function In({ shape: e, serieName: n, serie: r, relativeIndex: a, seriesIndex: o, S: ee, triggerMode: te = "pointer" }) {
542
- A.value.events.datapointEnter && A.value.events.datapointEnter({
543
- datapoint: {
544
- ...r,
545
- shape: e
546
- },
547
- seriesIndex: ee
548
- }), Xt.value = te, jn.value = {
549
- config: A.value,
550
- datapoint: r,
551
- serie: r,
552
- relativeIndex: a,
553
- seriesIndex: o,
554
- series: G.value,
555
- scales: q.value
556
- }, Mn.value = !0, X.value = r.id;
557
- let ne = "", re = N.value.customFormat;
558
- i(re) && de(() => re({
559
- serie: r,
560
- seriesIndex: r.seriesIndex,
561
- series: G.value,
562
- config: A.value,
563
- scales: q.value
564
- })) ? Nn.value = re({
565
- serie: r,
566
- seriesIndex: r.seriesIndex,
567
- series: G.value,
568
- config: A.value,
569
- scales: q.value
570
- }) : (ne += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${n ? n + " - " : ""}${r.name}</div>`, q.value.map((e) => e.name).forEach((e, n) => {
571
- ne += `
572
- <div class="vue-ui-tooltip-item" style="text-align:left">
573
- <span>${e}: </span>
574
- <span>
575
- ${fe(M.value.formatters[n] || null, r.datapoints[n].value, t({
576
- p: M.value.prefixes[n] || "",
577
- v: r.datapoints[n].value,
578
- s: M.value.suffixes[n] || "",
579
- r: M.value.roundings[n] || ""
580
- }), {
581
- datapoint: r.datapoints[n],
582
- seriesIndex: n
583
- })}
584
- </span>
585
- </div>
586
- `, P.value.comments.showInTooltip && r.datapoints[n].comment && (ne += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.datapoints[n].comment}</div>`);
587
- }), Nn.value = `<div>${ne}</div>`), te === "keyboard" && Ke(() => {
588
- Fn(r);
589
- });
590
- }
591
- function Ln() {
592
- return G.value;
593
- }
594
- let Z = c(() => {
595
- let e = [A.value.table.columnNames.series, A.value.table.columnNames.item].concat(q.value.map((e) => e.name));
596
- return {
597
- body: J.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
598
- head: e,
599
- config: {
600
- th: {
601
- backgroundColor: A.value.table.th.backgroundColor,
602
- color: A.value.table.th.color,
603
- outline: A.value.table.th.outline
604
- },
605
- td: {
606
- backgroundColor: A.value.table.td.backgroundColor,
607
- color: A.value.table.td.color,
608
- outline: A.value.table.td.outline
609
- },
610
- breakpoint: A.value.table.responsiveBreakpoint
611
- },
612
- colNames: [A.value.table.columnNames.series, A.value.table.columnNames.item].concat(q.value.map((e) => e.name))
613
- };
614
- }), Rn = c(() => J.value.length === 0 ? {
615
- head: [],
616
- body: [],
617
- config: {},
618
- columnNames: []
619
- } : {
620
- head: Z.value.head,
621
- body: Z.value.body
622
- });
623
- function zn(e = null) {
624
- let t = [
625
- [P.value.title.text],
626
- [P.value.title.subtitle.text],
627
- [""]
628
- ], n = Rn.value.head, i = Rn.value.body, a = t.concat([n]).concat(i), o = r(a);
629
- e ? e(o) : pe({
630
- csvContent: o,
631
- title: P.value.title.text || "vue-ui-parallel-coordinate-plot"
632
- });
633
- }
634
- let Bn = et;
635
- function Q({ serie: e, shape: t, S: n }) {
636
- A.value.events.datapointClick && A.value.events.datapointClick({
637
- datapoint: {
638
- ...e,
639
- shape: t
640
- },
641
- seriesIndex: n
642
- }), Bn("selectDatapoint", e);
643
- }
644
- function Vn() {
645
- U.value.showTable = !U.value.showTable;
646
- }
647
- function Hn() {
648
- U.value.dataLabels.show = !U.value.dataLabels.show;
649
- }
650
- function Un() {
651
- U.value.showTooltip = !U.value.showTooltip;
652
- }
653
- let Wn = y(!1);
654
- function Gn() {
655
- Wn.value = !Wn.value;
656
- }
657
- async function Kn({ scale: e = 2 } = {}) {
658
- if (!E.value) return;
659
- let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ke({
660
- domElement: E.value,
661
- base64: !0,
662
- img: !0,
663
- scale: e
664
- });
665
- return {
666
- imageUri: i,
667
- base64: a,
668
- title: P.value.title.text,
669
- width: t,
670
- height: n,
671
- aspectRatio: r
672
- };
673
- }
674
- let qn = y({
675
- start: 0,
676
- end: 1
677
- }), Jn = c(() => q.value.map((e) => e.name));
678
- Oe({
679
- timeLabelsEls: Jt,
680
- timeLabels: Jn,
681
- slicer: qn,
682
- configRef: A,
683
- rotationPath: [
684
- "style",
685
- "chart",
686
- "yAxis",
687
- "labels",
688
- "axisNamesRotation"
689
- ],
690
- autoRotatePath: [
691
- "style",
692
- "chart",
693
- "yAxis",
694
- "labels",
695
- "axisNamesAutoRotate",
696
- "enable"
697
- ],
698
- isAutoSize: !1,
699
- width: gn,
700
- height: _n,
701
- targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
702
- rotation: M.value.axisNamesAutoRotate.angle
703
- });
704
- let Yn = c(() => {
705
- let e = A.value.table.useDialog && !A.value.table.show, t = U.value.showTable;
706
- return {
707
- component: e ? Mt : Dt,
708
- title: `${P.value.title.text}${P.value.title.subtitle.text ? `: ${P.value.title.subtitle.text}` : ""}`,
709
- props: e ? {
710
- backgroundColor: A.value.table.th.backgroundColor,
711
- color: A.value.table.th.color,
712
- headerColor: A.value.table.th.color,
713
- headerBg: A.value.table.th.backgroundColor,
714
- isFullscreen: k.value,
715
- fullscreenParent: E.value,
716
- forcedWidth: Math.min(800, window.innerWidth * .8),
717
- isCursorPointer: I.value
718
- } : {
719
- hideDetails: !0,
720
- config: {
721
- open: t,
722
- maxHeight: 1e4,
723
- body: {
724
- backgroundColor: P.value.backgroundColor,
725
- color: P.value.color
726
- },
727
- head: {
728
- backgroundColor: P.value.backgroundColor,
729
- color: P.value.color
730
- }
731
- }
732
- }
733
- };
734
- });
735
- Qe(() => U.value.showTable, (e) => {
736
- A.value.table.show || (e && A.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
737
- });
738
- function Xn() {
739
- U.value.showTable = !1, qt.value && qt.value.setTableIconState(!1);
740
- }
741
- let Zn = c(() => P.value.backgroundColor), Qn = c(() => P.value.legend), $n = c(() => P.value.title), { isCallbackImaging: er, isCallbackSvg: tr, generateSvg: nr, onGenerateImage: rr } = Ee({
742
- svg: R,
743
- title: $n,
744
- legend: Qn,
745
- legendItems: En,
746
- backgroundColor: Zn,
747
- getSvgCallback: () => A.value.userOptions.callbacks.svg,
748
- generateImage: mn
749
- });
750
- async function ir() {
751
- if (Bn("copyAlt", {
752
- config: A.value,
753
- dataset: J.value
754
- }), !A.value.userOptions.callbacks.altCopy) {
755
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
756
- return;
757
- }
758
- await Promise.resolve(A.value.userOptions.callbacks.altCopy({
759
- config: A.value,
760
- dataset: J.value
761
- }));
762
- }
763
- function ar(e) {
764
- let t = Y.value.length;
765
- return t ? (e % t + t) % t : null;
766
- }
767
- function or() {
768
- if (D.value !== null) {
769
- let e = Y.value[D.value];
770
- e && Pn({
771
- shape: e.shape,
772
- serie: e.serie,
773
- S: e.S
774
- });
775
- }
776
- D.value = null, Xt.value = "pointer", X.value = null, Mn.value = !1;
777
- }
778
- function sr() {
779
- D.value = null, Zt.value = !0;
780
- }
781
- function cr() {
782
- or(), Zt.value = !1;
783
- }
784
- function lr(e) {
785
- if (!R.value || Wn.value || document.activeElement !== R.value || !Y.value.length) return;
786
- let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
787
- if (!t && !n && !r && !i) return;
788
- if (e.preventDefault(), e.stopPropagation(), i) {
789
- or();
790
- return;
791
- }
792
- if (r) {
793
- if (D.value === null) return;
794
- let e = Y.value[D.value];
795
- if (!e) return;
796
- Q({
797
- serie: e.serie,
798
- shape: e.shape,
799
- S: e.S
800
- });
801
- return;
802
- }
803
- let a = D.value;
804
- a = a === null ? n ? 0 : Y.value.length - 1 : ar(a + (n ? 1 : -1));
805
- let o = Y.value[a];
806
- o && (D.value = a, In({
807
- shape: o.shape,
808
- serieName: o.serieName,
809
- serie: o.serie,
810
- relativeIndex: o.relativeIndex,
811
- seriesIndex: o.seriesIndex,
812
- S: o.S,
813
- triggerMode: "keyboard"
814
- }));
815
- }
816
- let $ = c(() => ({
817
- head: Z.value.head,
818
- body: Z.value.body.map((e) => [
819
- e[0] ?? "",
820
- e[1] ?? "",
821
- ...e.slice(2)
822
- ]),
823
- caption: A.value.a11y.translations.tableCaption,
824
- notice: A.value.a11y.translations.tableAvailable
825
- }));
826
- return Me({
827
- getData: Ln,
828
- getImage: Kn,
829
- generateCsv: zn,
830
- generatePdf: pn,
831
- generateImage: mn,
832
- generateSvg: nr,
833
- hideSeries: Tn,
834
- showSeries: wn,
835
- toggleTable: Vn,
836
- toggleLabels: Hn,
837
- toggleTooltip: Un,
838
- toggleAnnotator: Gn,
839
- toggleFullscreen: Qt,
840
- copyAlt: ir
841
- }), (e, t) => (v(), d("div", {
842
- ref_key: "pcpChart",
843
- ref: E,
844
- class: h(`vue-data-ui-component vue-ui-pcp ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${A.value.useCssAnimation ? "" : "vue-ui-dna"}`),
845
- style: _(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${P.value.backgroundColor};${A.value.responsive ? "height:100%" : ""}`),
846
- id: `pcp_${O.value}`,
847
- onMouseenter: t[2] ||= () => C(rn)(!0),
848
- onMouseleave: t[3] ||= () => C(rn)(!1)
849
- }, [
850
- f("div", {
851
- id: `chart-instructions-${O.value}`,
852
- class: "sr-only"
853
- }, [f("p", null, S(A.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
854
- $.value.body.length ? (v(), l(Ie, {
855
- key: 0,
856
- uid: O.value,
857
- head: $.value.head,
858
- body: $.value.body,
859
- caption: $.value.caption,
860
- notice: $.value.notice
861
- }, null, 8, [
862
- "uid",
863
- "head",
864
- "body",
865
- "caption",
866
- "notice"
867
- ])) : u("", !0),
868
- j.value.buttons.annotator ? (v(), l(C(kt), {
869
- key: 1,
870
- svgRef: C(R),
871
- backgroundColor: P.value.backgroundColor,
872
- color: P.value.color,
873
- active: Wn.value,
874
- isCursorPointer: I.value,
875
- palette: j.value.annotatorPalette,
876
- onClose: Gn
877
- }, {
878
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
879
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
880
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
881
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
882
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
883
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
884
- _: 3
885
- }, 8, [
886
- "svgRef",
887
- "backgroundColor",
888
- "color",
889
- "active",
890
- "isCursorPointer",
891
- "palette"
892
- ])) : u("", !0),
893
- hn.value ? (v(), d("div", {
894
- key: 2,
895
- ref_key: "noTitle",
896
- ref: Vt,
897
- class: "vue-data-ui-no-title-space",
898
- style: "height:36px; width: 100%;background:transparent"
899
- }, null, 512)) : u("", !0),
900
- P.value.title.text ? (v(), d("div", {
901
- key: 3,
902
- ref_key: "chartTitle",
903
- ref: Rt,
904
- style: "width:100%;background:transparent;padding-bottom:24px"
905
- }, [(v(), l(Ae, {
906
- key: `title_${Ht.value}`,
907
- config: {
908
- title: {
909
- cy: "pcp-div-title",
910
- ...P.value.title
911
- },
912
- subtitle: {
913
- cy: "pcp-div-subtitle",
914
- ...P.value.title.subtitle
915
- }
916
- }
917
- }, null, 8, ["config"]))], 512)) : u("", !0),
918
- f("div", { id: `legend-top-${O.value}` }, null, 8, rt),
919
- j.value.show && It.value && (C(an) || C(nn)) ? (v(), l(C(At), {
920
- ref_key: "userOptionsRef",
921
- ref: qt,
922
- key: `user_options_${Lt.value}`,
923
- backgroundColor: P.value.backgroundColor,
924
- color: P.value.color,
925
- isPrinting: C(dn),
926
- isImaging: C(fn),
927
- uid: O.value,
928
- hasTooltip: j.value.buttons.tooltip && N.value.show,
929
- hasPdf: j.value.buttons.pdf,
930
- hasXls: j.value.buttons.csv,
931
- hasImg: j.value.buttons.img,
932
- hasSvg: j.value.buttons.svg,
933
- hasTable: j.value.buttons.table,
934
- hasLabel: j.value.buttons.labels,
935
- hasFullscreen: j.value.buttons.fullscreen,
936
- hasAltCopy: j.value.buttons.altCopy,
937
- isFullscreen: k.value,
938
- isTooltip: U.value.showTooltip,
939
- titles: { ...j.value.buttonTitles },
940
- chartElement: E.value,
941
- position: j.value.position,
942
- hasAnnotator: j.value.buttons.annotator,
943
- isAnnotation: Wn.value,
944
- callbacks: j.value.callbacks,
945
- printScale: j.value.print.scale,
946
- tableDialog: A.value.table.useDialog,
947
- isCursorPointer: I.value,
948
- onToggleFullscreen: Qt,
949
- onGeneratePdf: C(pn),
950
- onGenerateCsv: zn,
951
- onGenerateImage: C(rr),
952
- onGenerateSvg: C(nr),
953
- onToggleTable: Vn,
954
- onToggleLabels: Hn,
955
- onToggleTooltip: Un,
956
- onToggleAnnotator: Gn,
957
- onCopyAlt: ir,
958
- style: _({ visibility: C(an) ? C(nn) ? "visible" : "hidden" : "visible" })
959
- }, He({ _: 2 }, [
960
- e.$slots.menuIcon ? {
961
- name: "menuIcon",
962
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(m({
963
- isOpen: t,
964
- color: n
965
- })), void 0, !0)]),
966
- key: "0"
967
- } : void 0,
968
- e.$slots.optionTooltip ? {
969
- name: "optionTooltip",
970
- fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
971
- key: "1"
972
- } : void 0,
973
- e.$slots.optionPdf ? {
974
- name: "optionPdf",
975
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
976
- key: "2"
977
- } : void 0,
978
- e.$slots.optionCsv ? {
979
- name: "optionCsv",
980
- fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
981
- key: "3"
982
- } : void 0,
983
- e.$slots.optionImg ? {
984
- name: "optionImg",
985
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
986
- key: "4"
987
- } : void 0,
988
- e.$slots.optionSvg ? {
989
- name: "optionSvg",
990
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
991
- key: "5"
992
- } : void 0,
993
- e.$slots.optionTable ? {
994
- name: "optionTable",
995
- fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
996
- key: "6"
997
- } : void 0,
998
- e.$slots.optionLabels ? {
999
- name: "optionLabels",
1000
- fn: w(() => [x(e.$slots, "optionLabels", {}, void 0, !0)]),
1001
- key: "7"
1002
- } : void 0,
1003
- e.$slots.optionFullscreen ? {
1004
- name: "optionFullscreen",
1005
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(m({
1006
- toggleFullscreen: t,
1007
- isFullscreen: n
1008
- })), void 0, !0)]),
1009
- key: "8"
1010
- } : void 0,
1011
- e.$slots.optionAnnotator ? {
1012
- name: "optionAnnotator",
1013
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(m({
1014
- toggleAnnotator: t,
1015
- isAnnotator: n
1016
- })), void 0, !0)]),
1017
- key: "9"
1018
- } : void 0,
1019
- e.$slots.optionAltCopy ? {
1020
- name: "optionAltCopy",
1021
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
1022
- key: "10"
1023
- } : void 0,
1024
- e.$slots["custom-menu-before"] ? {
1025
- name: "custom-menu-before",
1026
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1027
- key: "11"
1028
- } : void 0,
1029
- e.$slots["custom-menu-after"] ? {
1030
- name: "custom-menu-after",
1031
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1032
- key: "12"
1033
- } : void 0
1034
- ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
1035
- f("div", it, [(v(), d("svg", {
1036
- ref_key: "svgRef",
1037
- ref: R,
1038
- xmlns: C(me),
1039
- "aria-describedby": `chart-instructions-${O.value}`,
1040
- class: h({
1041
- "vue-data-ui-fullscreen--on": k.value,
1042
- "vue-data-ui-fulscreen--off": !k.value,
1043
- "vue-data-ui-no-transition": !C(F)
1044
- }),
1045
- viewBox: `0 0 ${H.value.chartWidth <= 0 ? 10 : H.value.chartWidth} ${H.value.chartHeight <= 0 ? 10 : H.value.chartHeight}`,
1046
- style: _(`max-width:100%; overflow: visible; background:transparent;color:${P.value.color}`),
1047
- tabindex: "0",
1048
- onFocus: sr,
1049
- onBlur: cr,
1050
- onKeydown: lr
1051
- }, [
1052
- We(C(jt)),
1053
- e.$slots["chart-background"] ? (v(), d("foreignObject", {
1054
- key: 0,
1055
- x: H.value.left,
1056
- y: H.value.top,
1057
- width: H.value.width,
1058
- height: H.value.height,
1059
- style: { pointerEvents: "none" }
1060
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : u("", !0),
1061
- (v(!0), d(s, null, b(q.value, (e, t) => (v(), d("g", st, [f("line", {
1062
- x1: H.value.left + K.value * t + K.value / 2,
1063
- x2: H.value.left + K.value * t + K.value / 2,
1064
- y1: H.value.top,
1065
- y2: H.value.bottom,
1066
- stroke: P.value.yAxis.stroke,
1067
- "stroke-width": P.value.yAxis.strokeWidth
1068
- }, null, 8, ct), M.value.ticks.show ? (v(), d(s, { key: 0 }, [(v(!0), d(s, null, b(e.ticks, (t, n) => (v(), d("path", {
1069
- class: h({ "vue-data-ui-transition": C(F) }),
1070
- key: `tick_${e.name}_${n}`,
1071
- d: `M${t.x},${t.y} ${t.x - 10},${t.y}`,
1072
- stroke: P.value.yAxis.stroke,
1073
- "stroke-width": P.value.yAxis.strokeWidth,
1074
- style: _(`opacity:${X.value && !U.value.showTooltip ? .2 : 1}`)
1075
- }, null, 14, lt))), 128)), C(L) ? u("", !0) : (v(), d("g", ut, [(v(!0), d(s, null, b(e.ticks, (n, r) => (v(), d("text", {
1076
- key: `tl_${e.name}_${r}`,
1077
- class: h({ "vue-data-ui-transition": C(F) }),
1078
- transform: `translate(${n.x - 12 + M.value.ticks.offsetX}, ${n.y + M.value.ticks.offsetY + V.value.ticksFontSize / 3})`,
1079
- fill: M.value.ticks.color,
1080
- "text-anchor": "end",
1081
- "font-size": V.value.ticksFontSize,
1082
- "font-weight": M.value.ticks.bold ? "bold" : "normal",
1083
- style: _(`opacity:${X.value && !U.value.showTooltip ? .2 : 1}`)
1084
- }, S(An({
1085
- value: n.value,
1086
- index: t,
1087
- datapoint: n
1088
- })), 15, dt))), 128))]))], 64)) : u("", !0)]))), 256)),
1089
- M.value.showAxisNames ? (v(), d("g", {
1090
- key: 1,
1091
- ref_key: "xAxisLabels",
1092
- ref: Jt
1093
- }, [(v(!0), d(s, null, b(q.value, (e, t) => (v(), d(s, null, [String(e.name).includes("\n") ? (v(), d("text", {
1094
- key: 1,
1095
- class: "vue-ui-parallel-coordinate-plot-x-label",
1096
- fill: M.value.axisNamesColor,
1097
- "font-size": V.value.axisNameFontSize,
1098
- "font-weight": M.value.axisNamesBold ? "bold" : "",
1099
- "text-anchor": M.value.axisNamesRotation === 0 ? "middle" : M.value.axisNamesRotation < 0 ? "start" : "end",
1100
- transform: `translate(${H.value.left + K.value * t + K.value / 2}, ${vn.value - V.value.axisNameFontSize}), rotate(${M.value.axisNamesRotation})`,
1101
- innerHTML: C(a)({
1102
- content: String(e.name),
1103
- fontSize: V.value.axisNameFontSize,
1104
- fill: M.value.axisNamesColor,
1105
- x: 0,
1106
- y: 0
1107
- })
1108
- }, null, 8, pt)) : (v(), d("text", {
1109
- key: 0,
1110
- class: "vue-ui-parallel-coordinate-plot-x-label",
1111
- fill: M.value.axisNamesColor,
1112
- "font-size": V.value.axisNameFontSize,
1113
- "font-weight": M.value.axisNamesBold ? "bold" : "",
1114
- "text-anchor": M.value.axisNamesRotation === 0 ? "middle" : M.value.axisNamesRotation < 0 ? "start" : "end",
1115
- transform: `translate(${H.value.left + K.value * t + K.value / 2}, ${vn.value - V.value.axisNameFontSize}), rotate(${M.value.axisNamesRotation})`
1116
- }, S(e.name), 9, ft))], 64))), 256))], 512)) : u("", !0),
1117
- (v(!0), d(s, null, b(J.value, (t, n) => (v(), d("g", null, [(v(!0), d(s, null, b(t.series, (r, i) => (v(), d("g", null, [
1118
- P.value.plots.show ? (v(), d("g", mt, [
1119
- (v(!0), d(s, null, b(r.datapoints, (e, a) => (v(), l(je, {
1120
- plot: {
1121
- x: e.x,
1122
- y: e.y
1123
- },
1124
- color: t.color,
1125
- shape: t.shape,
1126
- radius: t.shape === "triangle" ? V.value.plotSize * 1.2 : V.value.plotSize,
1127
- stroke: P.value.backgroundColor,
1128
- strokeWidth: .5,
1129
- onMouseenter: (e) => In({
1130
- shape: t.shape,
1131
- serieName: t.name,
1132
- serie: r,
1133
- relativeIndex: i,
1134
- seriesIndex: r.seriesIndex,
1135
- S: n,
1136
- triggerMode: "pointer"
1137
- }),
1138
- onMouseleave: (e) => Pn({
1139
- serie: r,
1140
- shape: t.shape,
1141
- S: n
1142
- }),
1143
- style: _(`opacity:${X.value ? X.value === r.id ? P.value.plots.opacity : .2 : P.value.plots.opacity}`),
1144
- onClick: () => Q({
1145
- serie: r,
1146
- shape: t.shape,
1147
- S: n
1148
- })
1149
- }, null, 8, [
1150
- "plot",
1151
- "color",
1152
- "shape",
1153
- "radius",
1154
- "stroke",
1155
- "onMouseenter",
1156
- "onMouseleave",
1157
- "style",
1158
- "onClick"
1159
- ]))), 256)),
1160
- U.value.showTooltip ? u("", !0) : (v(), d(s, { key: 0 }, [X.value && X.value === r.id && r.datapoints.length ? (v(), d("text", {
1161
- key: 0,
1162
- x: r.datapoints[0].x - V.value.ticksFontSize,
1163
- y: r.datapoints[0].y + V.value.ticksFontSize / 3,
1164
- "text-anchor": "end",
1165
- "font-size": V.value.ticksFontSize,
1166
- fill: t.color,
1167
- "font-weight": "bold"
1168
- }, S(r.name), 9, ht)) : u("", !0)], 64)),
1169
- P.value.comments.show ? (v(!0), d(s, { key: 1 }, b(r.datapoints, (n) => (v(), d("g", null, [n.comment ? (v(), d("foreignObject", {
1170
- key: 0,
1171
- style: { overflow: "visible" },
1172
- height: "12",
1173
- width: P.value.comments.width,
1174
- x: n.x - P.value.comments.width / 2 + P.value.comments.offsetX,
1175
- y: n.y + P.value.comments.offsetY + 6
1176
- }, [f("div", _t, [x(e.$slots, "plot-comment", { plot: {
1177
- ...n,
1178
- color: t.color
1179
- } }, void 0, !0)])], 8, gt)) : u("", !0)]))), 256)) : u("", !0)
1180
- ])) : u("", !0),
1181
- f("path", {
1182
- d: `M${P.value.lines.smooth ? r.smoothPath : r.straightPath}`,
1183
- stroke: t.color,
1184
- "stroke-width": P.value.lines.strokeWidth,
1185
- fill: "none",
1186
- class: h({
1187
- "vue-ui-pcp-animated vue-data-ui-line-animated": A.value.useCssAnimation,
1188
- "vue-data-ui-transition": C(F)
1189
- }),
1190
- onMouseenter: (e) => In({
1191
- shape: t.shape,
1192
- serieName: t.name,
1193
- serie: r,
1194
- relativeIndex: i,
1195
- seriesIndex: r.seriesIndex,
1196
- S: n,
1197
- triggerMode: "pointer"
1198
- }),
1199
- onMouseleave: (e) => Pn({
1200
- serie: r,
1201
- shape: t.shape,
1202
- S: n
1203
- }),
1204
- onClick: () => Q({
1205
- serie: r,
1206
- shape: t.shape,
1207
- S: n
1208
- }),
1209
- style: _(`opacity:${X.value ? X.value === r.id ? P.value.lines.opacity : .2 : P.value.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${A.value.useCssAnimation ? r.pathLength : 0}`)
1210
- }, null, 46, vt),
1211
- U.value.showTooltip ? (v(), d("path", {
1212
- key: 1,
1213
- d: `M${P.value.lines.smooth ? r.smoothPath : r.straightPath}`,
1214
- stroke: "transparent",
1215
- "stroke-width": 12,
1216
- fill: "none",
1217
- class: h({
1218
- "vue-ui-pcp-animated vue-data-ui-line-animated": A.value.useCssAnimation,
1219
- "vue-data-ui-transition": C(F)
1220
- }),
1221
- onMouseenter: (e) => In({
1222
- shape: t.shape,
1223
- serieName: t.name,
1224
- serie: r,
1225
- relativeIndex: i,
1226
- seriesIndex: r.seriesIndex,
1227
- S: n,
1228
- triggerMode: "pointer"
1229
- }),
1230
- onMouseleave: (e) => Pn({
1231
- serie: r,
1232
- shape: t.shape,
1233
- S: n
1234
- }),
1235
- onClick: () => Q({
1236
- serie: r,
1237
- shape: t.shape,
1238
- S: n
1239
- }),
1240
- style: { opacity: "0" }
1241
- }, null, 42, yt)) : u("", !0)
1242
- ]))), 256))]))), 256)),
1243
- (v(!0), d(s, null, b(J.value, (e, t) => (v(), d("g", null, [(v(!0), d(s, null, b(e.series, (n, r) => (v(), d("g", null, [!C(L) && (U.value.dataLabels.show || X.value && X.value === n.id) ? (v(!0), d(s, { key: 0 }, b(n.datapoints, (i, a) => (v(), d("text", {
1244
- key: `pl_${n.id}_${a}`,
1245
- transform: `translate(${i.x + 12 + M.value.datapoints.offsetX}, ${i.y + M.value.datapoints.offsetY + V.value.datapointFontSize / 3})`,
1246
- fill: M.value.datapoints.useSerieColor ? e.color : M.value.datapoints.color,
1247
- "text-anchor": "start",
1248
- "font-weight": M.value.datapoints.bold ? "bold" : "normal",
1249
- class: h({
1250
- "vue-ui-pcp-plot-label": !0,
1251
- "vue-data-ui-transition": C(F)
1252
- }),
1253
- "font-size": V.value.datapointFontSize,
1254
- stroke: P.value.backgroundColor,
1255
- "stroke-width": 3,
1256
- "stroke-linecap": "round",
1257
- "stroke-linejoin": "round",
1258
- "paint-order": "stroke fill",
1259
- onMouseenter: (i) => In({
1260
- shape: e.shape,
1261
- serieName: e.name,
1262
- serie: n,
1263
- relativeIndex: r,
1264
- seriesIndex: n.seriesIndex,
1265
- S: t,
1266
- triggerMode: "pointer"
1267
- }),
1268
- onMouseleave: (r) => Pn({
1269
- serie: n,
1270
- shape: e.shape,
1271
- S: t
1272
- }),
1273
- onClick: () => Q({
1274
- serie: n,
1275
- shape: e.shape,
1276
- S: t
1277
- }),
1278
- style: _(`opacity:${X.value ? X.value === n.id ? 1 : .2 : 1}`)
1279
- }, S(An({
1280
- value: i.value,
1281
- index: a,
1282
- datapoint: i
1283
- })), 47, bt))), 128)) : u("", !0)]))), 256))]))), 256)),
1284
- x(e.$slots, "svg", { svg: {
1285
- ...H.value,
1286
- isPrintingImg: C(dn) || C(fn) || C(er),
1287
- isPrintingSvg: C(tr)
1288
- } }, void 0, !0)
1289
- ], 46, at)), e.$slots.hint ? (v(), d("div", xt, [x(e.$slots, "hint", g(m({
1290
- hint: A.value.a11y.translations.keyboardNavigation,
1291
- isVisible: Zt.value
1292
- })), void 0, !0)])) : u("", !0)]),
1293
- e.$slots.watermark ? (v(), d("div", St, [x(e.$slots, "watermark", g(m({ isPrinting: C(dn) || C(fn) || C(er) || C(tr) })), void 0, !0)])) : u("", !0),
1294
- f("div", { id: `legend-bottom-${O.value}` }, null, 8, Ct),
1295
- Gt.value && (P.value.legend.show || e.$slots.legend) ? (v(), l(Ve, {
1296
- key: 6,
1297
- to: P.value.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1298
- }, [f("div", {
1299
- ref_key: "chartLegend",
1300
- ref: zt
1301
- }, [x(e.$slots, "legend", { legend: En.value }, () => [P.value.legend.show && It.value ? (v(), l(ze, {
1302
- key: `legend_${Ut.value}`,
1303
- legendSet: En.value,
1304
- config: Dn.value,
1305
- isCursorPointer: I.value,
1306
- onClickMarker: t[0] ||= ({ legend: e }) => {
1307
- Sn(e.id);
1308
- }
1309
- }, {
1310
- item: w(({ legend: e, index: t }) => [f("div", {
1311
- onClick: (t) => e.segregate(),
1312
- style: _(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
1313
- }, S(e.name), 13, wt)]),
1314
- legendToggle: w(() => [En.value.length > 2 && P.value.legend.selectAllToggle.show && !C(L) ? (v(), l(Fe, {
1315
- key: 0,
1316
- backgroundColor: P.value.legend.selectAllToggle.backgroundColor,
1317
- color: P.value.legend.selectAllToggle.color,
1318
- fontSize: P.value.legend.fontSize,
1319
- checked: W.value.length > 0,
1320
- isCursorPointer: I.value,
1321
- onToggle: xn
1322
- }, null, 8, [
1323
- "backgroundColor",
1324
- "color",
1325
- "fontSize",
1326
- "checked",
1327
- "isCursorPointer"
1328
- ])) : u("", !0)]),
1329
- _: 1
1330
- }, 8, [
1331
- "legendSet",
1332
- "config",
1333
- "isCursorPointer"
1334
- ])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
1335
- e.$slots.source ? (v(), d("div", {
1336
- key: 7,
1337
- ref_key: "source",
1338
- ref: Bt,
1339
- dir: "auto"
1340
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1341
- We(C(Tt), {
1342
- teleportTo: N.value.teleportTo,
1343
- show: U.value.showTooltip && Mn.value,
1344
- backgroundColor: N.value.backgroundColor,
1345
- color: N.value.color,
1346
- fontSize: N.value.fontSize,
1347
- borderRadius: N.value.borderRadius,
1348
- borderColor: N.value.borderColor,
1349
- borderWidth: N.value.borderWidth,
1350
- backgroundOpacity: N.value.backgroundOpacity,
1351
- position: N.value.position,
1352
- offsetX: N.value.offsetX,
1353
- offsetY: N.value.offsetY,
1354
- parent: E.value,
1355
- content: Nn.value,
1356
- isFullscreen: k.value,
1357
- isCustom: C(i)(N.value.customFormat),
1358
- smooth: N.value.smooth,
1359
- backdropFilter: N.value.backdropFilter,
1360
- smoothForce: N.value.smoothForce,
1361
- smoothSnapThreshold: N.value.smoothSnapThreshold,
1362
- isA11yMode: Xt.value === "keyboard",
1363
- a11yPosition: Yt.value
1364
- }, {
1365
- "tooltip-before": w(() => [x(e.$slots, "tooltip-before", g(m({ ...jn.value })), void 0, !0)]),
1366
- tooltip: w(() => [x(e.$slots, "tooltip", g(m({ ...jn.value })), void 0, !0)]),
1367
- "tooltip-after": w(() => [x(e.$slots, "tooltip-after", g(m({ ...jn.value })), void 0, !0)]),
1368
- _: 3
1369
- }, 8, [
1370
- "teleportTo",
1371
- "show",
1372
- "backgroundColor",
1373
- "color",
1374
- "fontSize",
1375
- "borderRadius",
1376
- "borderColor",
1377
- "borderWidth",
1378
- "backgroundOpacity",
1379
- "position",
1380
- "offsetX",
1381
- "offsetY",
1382
- "parent",
1383
- "content",
1384
- "isFullscreen",
1385
- "isCustom",
1386
- "smooth",
1387
- "backdropFilter",
1388
- "smoothForce",
1389
- "smoothSnapThreshold",
1390
- "isA11yMode",
1391
- "a11yPosition"
1392
- ]),
1393
- It.value && j.value.buttons.table ? (v(), l(Ye(Yn.value.component), Ge({ key: 8 }, Yn.value.props, {
1394
- ref_key: "tableUnit",
1395
- ref: Kt,
1396
- onClose: Xn
1397
- }), He({
1398
- content: w(() => [(v(), l(C(Ot), {
1399
- key: `table_${Wt.value}`,
1400
- colNames: Z.value.colNames,
1401
- head: Z.value.head,
1402
- body: Z.value.body,
1403
- config: Z.value.config,
1404
- title: A.value.table.useDialog ? "" : Yn.value.title,
1405
- withCloseButton: !A.value.table.useDialog,
1406
- isCursorPointer: I.value,
1407
- onClose: Xn
1408
- }, {
1409
- th: w(({ th: e }) => [f("div", null, S(e), 1)]),
1410
- td: w(({ td: e }) => [Ue(S(e), 1)]),
1411
- _: 1
1412
- }, 8, [
1413
- "colNames",
1414
- "head",
1415
- "body",
1416
- "config",
1417
- "title",
1418
- "withCloseButton",
1419
- "isCursorPointer"
1420
- ]))]),
1421
- _: 2
1422
- }, [A.value.table.useDialog ? {
1423
- name: "title",
1424
- fn: w(() => [Ue(S(Yn.value.title), 1)]),
1425
- key: "0"
1426
- } : void 0, A.value.table.useDialog ? {
1427
- name: "actions",
1428
- fn: w(() => [f("button", {
1429
- tabindex: "0",
1430
- class: "vue-ui-user-options-button",
1431
- onClick: t[1] ||= (e) => zn(j.value.callbacks.csv),
1432
- style: _({ cursor: I.value ? "pointer" : "default" })
1433
- }, [We(C(Et), {
1434
- name: "fileCsv",
1435
- stroke: Yn.value.props.color
1436
- }, null, 8, ["stroke"])], 4)]),
1437
- key: "1"
1438
- } : void 0]), 1040)) : u("", !0),
1439
- x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), l(Ce, { key: 0 })) : u("", !0)], !0)
1440
- ], 46, tt));
1441
- }
1442
- }, [["__scopeId", "data-v-17b547b4"]]);
1443
- //#endregion
1444
- export { et as n, Tt as t };