vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  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 +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -1,1444 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, G as i, Jt as a, Lt as o, P as s, Pt as c, S as ee, V as te, X as ne, Xt as re, Yt as ie, Z as ae, Zt as oe, _ as se, _t as ce, ht as le, i as ue, lt as de, nt as fe, q as pe, t as me, w as he } from "./lib-Dql7cqyA.js";
3
- import { n as ge, t as _e } from "./useHints-Dq_w2E8B.js";
4
- import { t as ve } from "./useConfig-D32D002m.js";
5
- import { t as ye } from "./usePrinter-hohanNCX.js";
6
- import { n as be, t as xe } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as Se } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as we } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Te } from "./useTransitions-g_zBREk2.js";
11
- import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as De } from "./img-BkMKbWsI.js";
13
- import { n as Oe } from "./Title-CPHi-evi.js";
14
- import { t as ke } from "./Shape-CIqU-p2F.js";
15
- import { t as Ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as je, t as Me } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Ne } from "./BaseLegendToggle-CXQrLjd-.js";
18
- import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Le } from "./Legend-X4kF4PvW.js";
22
- import { t as Re } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
23
- import { Fragment as l, Teleport as ze, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ue, nextTick as We, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Ge, onMounted as Ke, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as w, toRefs as Ye, unref as T, watch as Xe, watchEffect as Ze, withCtx as E } from "vue";
24
- //#region src/components/vue-ui-parallel-coordinate-plot.vue
25
- var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], it = [
30
- "x",
31
- "y",
32
- "width",
33
- "height"
34
- ], at = { style: { "pointer-events": "none" } }, ot = [
35
- "x1",
36
- "x2",
37
- "y1",
38
- "y2",
39
- "stroke",
40
- "stroke-width"
41
- ], st = [
42
- "d",
43
- "stroke",
44
- "stroke-width"
45
- ], ct = { key: 0 }, lt = [
46
- "transform",
47
- "fill",
48
- "font-size",
49
- "font-weight"
50
- ], ut = [
51
- "fill",
52
- "font-size",
53
- "font-weight",
54
- "text-anchor",
55
- "transform"
56
- ], dt = [
57
- "fill",
58
- "font-size",
59
- "font-weight",
60
- "text-anchor",
61
- "transform",
62
- "innerHTML"
63
- ], ft = { key: 0 }, pt = [
64
- "x",
65
- "y",
66
- "font-size",
67
- "fill"
68
- ], mt = [
69
- "width",
70
- "x",
71
- "y"
72
- ], ht = { style: { width: "100%" } }, gt = [
73
- "d",
74
- "stroke",
75
- "stroke-width",
76
- "onMouseenter",
77
- "onMouseleave",
78
- "onClick"
79
- ], _t = [
80
- "d",
81
- "onMouseenter",
82
- "onMouseleave",
83
- "onClick"
84
- ], vt = [
85
- "transform",
86
- "fill",
87
- "font-weight",
88
- "font-size",
89
- "stroke",
90
- "onMouseenter",
91
- "onMouseleave",
92
- "onClick"
93
- ], yt = {
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
- }, bt = {
104
- key: 5,
105
- class: "vue-data-ui-watermark"
106
- }, xt = ["id"], St = ["onClick"], Ct = /*#__PURE__*/ Ae({
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: Ae, emit: Qe }) {
128
- let Ct = h(() => import("./Tooltip-hhrkQ3Lk.js")), wt = h(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Tt = h(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Et = h(() => import("./DataTable-oiM9uWrQ.js")), Dt = h(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Ot = h(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), kt = h(() => import("./PackageVersion-CEvZNFTz.js").then((e) => e.t)), At = h(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: jt } = ve(), { isThemeValid: Mt, warnInvalidTheme: Nt } = Ce(), D = e, Pt = u({
129
- get() {
130
- return !!D.dataset && D.dataset.length;
131
- },
132
- set(e) {
133
- return e;
134
- }
135
- }), Ft = x(0), O = x(null), It = x(null), Lt = x(null), Rt = x(null), zt = x(null), Bt = x(0), Vt = x(0), Ht = x(0), Ut = x(!1), Wt = x(null), Gt = x(null), Kt = x(null), k = x(null), qt = x({
136
- x: 0,
137
- y: 0
138
- }), Jt = x("pointer"), Yt = x(!1), A = x(pe()), j = x(!1);
139
- function Xt(e) {
140
- j.value = e, Ft.value += 1;
141
- }
142
- let M = x(an()), N = u(() => M.value.userOptions), P = u(() => M.value.style.chart.yAxis.labels), F = u(() => M.value.style.chart.tooltip), I = u(() => M.value.style.chart), { transitionEnabled: L } = Te({
143
- config: () => M.value.transitions,
144
- dataset: () => D.dataset
145
- });
146
- ge({
147
- config: () => M.value,
148
- dataset: () => D.dataset,
149
- component: "VueUiParallelCoordinatePlot",
150
- rules: [
151
- _e.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 R = u(() => M.value.userOptions.useCursorPointer), Zt = u(() => oe({
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: M.value.skeletonConfig ?? {}
200
- })), { loading: Qt, FINAL_DATASET: $t, manualLoading: en } = be({
201
- ...Ye(D),
202
- FINAL_CONFIG: M,
203
- prepareConfig: an,
204
- callback: () => {
205
- Promise.resolve().then(async () => {
206
- await We(), W.value.showTable = M.value.table.show;
207
- });
208
- },
209
- skeletonDataset: D.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: oe({
254
- defaultConfig: M.value,
255
- userConfig: Zt.value
256
- })
257
- }), { userOptionsVisible: tn, setUserOptionsVisibility: nn, keepUserOptionState: rn } = Fe({ config: M.value }), { svgRef: z } = Ie({ config: I.value.title });
258
- function an() {
259
- let e = Se({
260
- userConfig: D.config,
261
- defaultConfig: jt
262
- }), t = e.theme;
263
- if (!t) return e;
264
- if (!Mt.value(e)) return Nt(e), e;
265
- let n = Se({
266
- userConfig: Re[t] || D.config,
267
- defaultConfig: e
268
- }), r = Se({
269
- userConfig: D.config,
270
- defaultConfig: n
271
- });
272
- return {
273
- ...r,
274
- customPalette: r.customPalette.length ? r.customPalette : ie[t] || o
275
- };
276
- }
277
- function on(e) {
278
- let t = ae(e);
279
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
280
- }
281
- let sn = on(D.config);
282
- Xe(() => D.config, (e, t) => {
283
- let n = on(e), r = n !== sn;
284
- sn = n;
285
- let i = an();
286
- if (!r) {
287
- M.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = M.value.style.chart.tooltip.show;
288
- return;
289
- }
290
- Qt.value || (M.value = i), tn.value = !M.value.userOptions.showOnChartHover, ln(), Bt.value += 1, Ht.value += 1, Vt.value += 1, W.value.dataLabels.show = P.value.datapoints.show, W.value.showTable = M.value.table.show, W.value.showTooltip = F.value.show;
291
- }, { deep: !0 }), Xe(() => D.dataset, (e) => {
292
- Array.isArray(e) && e.length > 0 && (en.value = !1);
293
- }, { deep: !0 });
294
- let B = Je(null), V = Je(null);
295
- Ke(() => {
296
- Ut.value = !0, ln();
297
- });
298
- let cn = u(() => M.value.debug);
299
- function ln() {
300
- if (c(D.dataset) ? (fe({
301
- componentName: "VueUiParallelCoordinatePlot",
302
- type: "dataset",
303
- debug: cn.value
304
- }), en.value = !0) : D.dataset.forEach((e, t) => {
305
- le({
306
- datasetObject: e,
307
- requiredAttributes: ["name", "series"]
308
- }).forEach((e) => {
309
- Pt.value = !1, fe({
310
- componentName: "VueUiParallelCoordinatePlot",
311
- type: "datasetSerieAttribute",
312
- property: e,
313
- index: t,
314
- debug: cn.value
315
- });
316
- });
317
- }), c(D.dataset) || (en.value = M.value.loading), M.value.responsive) {
318
- let e = je(() => {
319
- let { width: e, height: t } = Me({
320
- chart: O.value,
321
- title: I.value.title.text ? It.value : null,
322
- legend: I.value.legend.show ? Lt.value : null,
323
- source: Rt.value,
324
- noTitle: zt.value
325
- });
326
- requestAnimationFrame(() => {
327
- H.value.width = e, H.value.height = t - 12, M.value.responsiveProportionalSizing ? (H.value.plotSize = re({
328
- relator: Math.min(e, t),
329
- adjuster: 600,
330
- source: I.value.plots.radius,
331
- threshold: 2,
332
- fallback: 2
333
- }), H.value.ticksFontSize = re({
334
- relator: Math.min(e, t),
335
- adjuster: 600,
336
- source: P.value.ticks.fontSize,
337
- threshold: 10,
338
- fallback: 10
339
- }), H.value.datapointFontSize = re({
340
- relator: Math.min(e, t),
341
- adjuster: 600,
342
- source: P.value.datapoints.fontSize,
343
- threshold: 10,
344
- fallback: 10
345
- }), H.value.axisNameFontSize = re({
346
- relator: Math.min(e, t),
347
- adjuster: 600,
348
- source: P.value.axisNamesFontSize,
349
- threshold: 12,
350
- fallback: 12
351
- })) : (H.value.plotSize = I.value.plots.radius, H.value.ticksFontSize = P.value.ticks.fontSize, H.value.datapointFontSize = P.value.datapoints.fontSize, H.value.axisNameFontSize = P.value.axisNamesFontSize);
352
- });
353
- });
354
- B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = O.value.parentNode, B.value.observe(V.value);
355
- }
356
- }
357
- Ge(() => {
358
- B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
359
- });
360
- let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = ye({
361
- elementId: `pcp_${A.value}`,
362
- fileName: I.value.title.text || "vue-ui-parallel-coordinate-plot",
363
- options: M.value.userOptions.print
364
- }), mn = u(() => M.value.userOptions.show && !I.value.title.text), H = x({
365
- height: I.value.height,
366
- width: I.value.width,
367
- plotSize: I.value.plots.radius,
368
- ticksFontSize: P.value.ticks.fontSize,
369
- datapointFontSize: P.value.datapoints.fontSize,
370
- axisNameFontSize: P.value.axisNamesFontSize
371
- }), hn = u(() => H.value.width), gn = u(() => H.value.height), _n = x(0), vn = je((e) => {
372
- _n.value = e;
373
- }, 100);
374
- Ze((e) => {
375
- let t = Kt.value;
376
- if (!t) return;
377
- let n = new ResizeObserver((e) => {
378
- vn(e[0].contentRect.height);
379
- });
380
- n.observe(t), e(() => n.disconnect());
381
- });
382
- let U = u(() => {
383
- let { top: e, right: t, bottom: n, left: r } = I.value.padding, i = gn.value, a = hn.value;
384
- return {
385
- chartHeight: Math.max(.001, i),
386
- chartWidth: Math.max(.001, a),
387
- height: Math.max(.001, i - e - n - _n.value - H.value.datapointFontSize * 2),
388
- width: Math.max(.001, a - r - t),
389
- top: e + _n.value + H.value.datapointFontSize,
390
- left: r,
391
- right: a - t,
392
- bottom: i - n - H.value.datapointFontSize
393
- };
394
- }), yn = u(() => he(M.value.customPalette)), W = x({
395
- dataLabels: { show: P.value.datapoints.show },
396
- showTable: M.value.table.show,
397
- showTooltip: F.value.show
398
- });
399
- Xe(M, () => {
400
- W.value = {
401
- dataLabels: { show: P.value.datapoints.show },
402
- showTable: M.value.table.show,
403
- showTooltip: F.value.show
404
- };
405
- }, { immediate: !0 });
406
- let G = x([]);
407
- function bn() {
408
- G.value.length ? G.value = [] : Tn.value.forEach((e) => {
409
- G.value.push(e.id);
410
- }), Rn("selectLegend", On.value);
411
- }
412
- function xn(e) {
413
- G.value.includes(e) ? G.value = G.value.filter((t) => t !== e) : G.value.push(e), Rn("selectLegend", On.value);
414
- }
415
- let K = u(() => $t.value.map((e, t) => {
416
- let n = ee(e.color) || yn.value[t] || o[t] || o[t % o.length];
417
- return {
418
- ...e,
419
- series: e.series.map((e) => ({
420
- ...e,
421
- id: pe(),
422
- color: n
423
- })),
424
- seriesIndex: t,
425
- color: n,
426
- id: pe(),
427
- shape: e.shape || "circle"
428
- };
429
- }));
430
- function Sn(e) {
431
- return K.value.length ? K.value.find((t) => t.name === e) || (cn.value && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`), null) : (cn.value && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null);
432
- }
433
- function Cn(e) {
434
- let t = Sn(e);
435
- t !== null && G.value.includes(t.id) && xn(t.id);
436
- }
437
- function wn(e) {
438
- let t = Sn(e);
439
- t !== null && (G.value.includes(t.id) || xn(t.id));
440
- }
441
- let Tn = u(() => K.value.map((e) => ({
442
- ...e,
443
- opacity: G.value.includes(e.id) ? .5 : 1,
444
- segregate: () => xn(e.id),
445
- isSegregated: G.value.includes(e.id),
446
- shape: e.shape || "circle"
447
- }))), En = u(() => ({
448
- cy: "pcp-div-legend",
449
- backgroundColor: I.value.legend.backgroundColor,
450
- color: I.value.legend.color,
451
- fontSize: I.value.legend.fontSize,
452
- paddingBottom: 12,
453
- fontWeight: I.value.legend.bold ? "bold" : ""
454
- })), Dn = u(() => Math.max(...K.value.filter((e) => !G.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), q = u(() => U.value.width / Dn.value), On = u(() => K.value.filter((e) => !G.value.includes(e.id))), J = u(() => {
455
- let e = [];
456
- for (let t = 0; t < Dn.value; t += 1) {
457
- let n = Math.min(...On.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...On.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 = se(i, a, I.value.yAxis.scaleTicks), s = 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: U.value.bottom - U.value.height * (r / i),
461
- x: U.value.left + q.value * t + q.value / 2,
462
- value: e
463
- };
464
- });
465
- e.push({
466
- scale: o,
467
- ticks: s,
468
- name: P.value.axisNames[t] || `Y-${t + 1}`
469
- });
470
- }
471
- return e;
472
- }), Y = u(() => On.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 = J.value[a].scale.min < 0 ? (i || 0) + Math.abs(J.value[a].scale.min) : (i || 0) - Math.abs(J.value[a].scale.min), s = J.value[a].scale.min < 0 ? J.value[a].scale.max + Math.abs(J.value[a].scale.min) : J.value[a].scale.max - Math.abs(J.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: U.value.left + q.value * a + q.value / 2,
486
- y: U.value.bottom - U.value.height * (o / s),
487
- comment: n.comments && n.comments[a] || ""
488
- };
489
- })
490
- }))
491
- })).map((e) => ({
492
- ...e,
493
- series: e.series.map((e) => {
494
- let t = te(e.datapoints), n = s(e.datapoints, .12), r = ce(I.value.lines.smooth ? `M ${n}` : `M ${t}`);
495
- return {
496
- ...e,
497
- smoothPath: n,
498
- straightPath: t,
499
- pathLength: r
500
- };
501
- })
502
- }))), X = u(() => Y.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 kn({ value: e, index: t, datapoint: n }) {
512
- return ue(P.value.formatters[t] || null, e, ne({
513
- p: P.value.prefixes[t] || "",
514
- v: e,
515
- s: P.value.suffixes[t] || "",
516
- r: P.value.roundings[t] || 0
517
- }), {
518
- datapoint: n,
519
- seriesIndex: t
520
- });
521
- }
522
- let Z = x(null), An = x(null), jn = x(!1), Mn = x("");
523
- function Q({ shape: e, serie: t, S: n }) {
524
- M.value.events.datapointLeave && M.value.events.datapointLeave({
525
- datapoint: {
526
- ...t,
527
- shape: e
528
- },
529
- seriesIndex: n
530
- });
531
- let r = k.value === null ? null : X.value[k.value];
532
- Jt.value === "keyboard" && r && r.serie.id === t.id || (Z.value = null, jn.value = !1);
533
- }
534
- function Nn(e) {
535
- if (!z.value || !e?.datapoints?.length) return;
536
- let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
537
- if (!t) return;
538
- let n = a(t.x, t.y, z.value);
539
- n && (qt.value = n);
540
- }
541
- function Pn({ shape: e, serieName: t, serie: r, relativeIndex: i, seriesIndex: a, S: o, triggerMode: s = "pointer" }) {
542
- M.value.events.datapointEnter && M.value.events.datapointEnter({
543
- datapoint: {
544
- ...r,
545
- shape: e
546
- },
547
- seriesIndex: o
548
- }), Jt.value = s, An.value = {
549
- config: M.value,
550
- datapoint: r,
551
- serie: r,
552
- relativeIndex: i,
553
- seriesIndex: a,
554
- series: K.value,
555
- scales: J.value
556
- }, jn.value = !0, Z.value = r.id;
557
- let c = "", ee = F.value.customFormat;
558
- n(ee) && de(() => ee({
559
- serie: r,
560
- seriesIndex: r.seriesIndex,
561
- series: K.value,
562
- config: M.value,
563
- scales: J.value
564
- })) ? Mn.value = ee({
565
- serie: r,
566
- seriesIndex: r.seriesIndex,
567
- series: K.value,
568
- config: M.value,
569
- scales: J.value
570
- }) : (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${r.name}</div>`, J.value.map((e) => e.name).forEach((e, t) => {
571
- c += `
572
- <div class="vue-ui-tooltip-item" style="text-align:left">
573
- <span>${e}: </span>
574
- <span>
575
- ${ue(P.value.formatters[t] || null, r.datapoints[t].value, ne({
576
- p: P.value.prefixes[t] || "",
577
- v: r.datapoints[t].value,
578
- s: P.value.suffixes[t] || "",
579
- r: P.value.roundings[t] || ""
580
- }), {
581
- datapoint: r.datapoints[t],
582
- seriesIndex: t
583
- })}
584
- </span>
585
- </div>
586
- `, I.value.comments.showInTooltip && r.datapoints[t].comment && (c += `<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[t].comment}</div>`);
587
- }), Mn.value = `<div>${c}</div>`), s === "keyboard" && We(() => {
588
- Nn(r);
589
- });
590
- }
591
- function Fn() {
592
- return K.value;
593
- }
594
- let $ = u(() => {
595
- let e = [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(J.value.map((e) => e.name));
596
- return {
597
- body: Y.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
598
- head: e,
599
- config: {
600
- th: {
601
- backgroundColor: M.value.table.th.backgroundColor,
602
- color: M.value.table.th.color,
603
- outline: M.value.table.th.outline
604
- },
605
- td: {
606
- backgroundColor: M.value.table.td.backgroundColor,
607
- color: M.value.table.td.color,
608
- outline: M.value.table.td.outline
609
- },
610
- breakpoint: M.value.table.responsiveBreakpoint
611
- },
612
- colNames: [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(J.value.map((e) => e.name))
613
- };
614
- }), In = u(() => Y.value.length === 0 ? {
615
- head: [],
616
- body: [],
617
- config: {},
618
- columnNames: []
619
- } : {
620
- head: $.value.head,
621
- body: $.value.body
622
- });
623
- function Ln(e = null) {
624
- let n = [
625
- [I.value.title.text],
626
- [I.value.title.subtitle.text],
627
- [""]
628
- ], i = In.value.head, a = In.value.body, o = n.concat([i]).concat(a), s = r(o);
629
- e ? e(s) : t({
630
- csvContent: s,
631
- title: I.value.title.text || "vue-ui-parallel-coordinate-plot"
632
- });
633
- }
634
- let Rn = Qe;
635
- function zn({ serie: e, shape: t, S: n }) {
636
- M.value.events.datapointClick && M.value.events.datapointClick({
637
- datapoint: {
638
- ...e,
639
- shape: t
640
- },
641
- seriesIndex: n
642
- }), Rn("selectDatapoint", e);
643
- }
644
- function Bn() {
645
- W.value.showTable = !W.value.showTable;
646
- }
647
- function Vn() {
648
- W.value.dataLabels.show = !W.value.dataLabels.show;
649
- }
650
- function Hn() {
651
- W.value.showTooltip = !W.value.showTooltip;
652
- }
653
- let Un = x(!1);
654
- function Wn() {
655
- Un.value = !Un.value;
656
- }
657
- async function Gn({ scale: e = 2 } = {}) {
658
- if (!O.value) return;
659
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
660
- domElement: O.value,
661
- base64: !0,
662
- img: !0,
663
- scale: e
664
- });
665
- return {
666
- imageUri: i,
667
- base64: a,
668
- title: I.value.title.text,
669
- width: t,
670
- height: n,
671
- aspectRatio: r
672
- };
673
- }
674
- let Kn = x({
675
- start: 0,
676
- end: 1
677
- }), qn = u(() => J.value.map((e) => e.name));
678
- Ee({
679
- timeLabelsEls: Kt,
680
- timeLabels: qn,
681
- slicer: Kn,
682
- configRef: M,
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: hn,
700
- height: gn,
701
- targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
702
- rotation: P.value.axisNamesAutoRotate.angle
703
- });
704
- let Jn = u(() => {
705
- let e = M.value.table.useDialog && !M.value.table.show, t = W.value.showTable;
706
- return {
707
- component: e ? At : Tt,
708
- title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
709
- props: e ? {
710
- backgroundColor: M.value.table.th.backgroundColor,
711
- color: M.value.table.th.color,
712
- headerColor: M.value.table.th.color,
713
- headerBg: M.value.table.th.backgroundColor,
714
- isFullscreen: j.value,
715
- fullscreenParent: O.value,
716
- forcedWidth: Math.min(800, window.innerWidth * .8),
717
- isCursorPointer: R.value
718
- } : {
719
- hideDetails: !0,
720
- config: {
721
- open: t,
722
- maxHeight: 1e4,
723
- body: {
724
- backgroundColor: I.value.backgroundColor,
725
- color: I.value.color
726
- },
727
- head: {
728
- backgroundColor: I.value.backgroundColor,
729
- color: I.value.color
730
- }
731
- }
732
- }
733
- };
734
- });
735
- Xe(() => W.value.showTable, (e) => {
736
- M.value.table.show || (e && M.value.table.useDialog && Wt.value ? Wt.value.open() : "close" in Wt.value && Wt.value.close());
737
- });
738
- function Yn() {
739
- W.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
740
- }
741
- let Xn = u(() => I.value.backgroundColor), Zn = u(() => I.value.legend), Qn = u(() => I.value.title), { isCallbackImaging: $n, isCallbackSvg: er, generateSvg: tr, onGenerateImage: nr } = we({
742
- svg: z,
743
- title: Qn,
744
- legend: Zn,
745
- legendItems: Tn,
746
- backgroundColor: Xn,
747
- getSvgCallback: () => M.value.userOptions.callbacks.svg,
748
- generateImage: pn
749
- });
750
- async function rr() {
751
- if (Rn("copyAlt", {
752
- config: M.value,
753
- dataset: Y.value
754
- }), !M.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(M.value.userOptions.callbacks.altCopy({
759
- config: M.value,
760
- dataset: Y.value
761
- }));
762
- }
763
- function ir(e) {
764
- let t = X.value.length;
765
- return t ? (e % t + t) % t : null;
766
- }
767
- function ar() {
768
- if (k.value !== null) {
769
- let e = X.value[k.value];
770
- e && Q({
771
- shape: e.shape,
772
- serie: e.serie,
773
- S: e.S
774
- });
775
- }
776
- k.value = null, Jt.value = "pointer", Z.value = null, jn.value = !1;
777
- }
778
- function or() {
779
- k.value = null, Yt.value = !0;
780
- }
781
- function sr() {
782
- ar(), Yt.value = !1;
783
- }
784
- function cr(e) {
785
- if (!z.value || Un.value || document.activeElement !== z.value || !X.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
- ar();
790
- return;
791
- }
792
- if (r) {
793
- if (k.value === null) return;
794
- let e = X.value[k.value];
795
- if (!e) return;
796
- zn({
797
- serie: e.serie,
798
- shape: e.shape,
799
- S: e.S
800
- });
801
- return;
802
- }
803
- let a = k.value;
804
- a = a === null ? n ? 0 : X.value.length - 1 : ir(a + (n ? 1 : -1));
805
- let o = X.value[a];
806
- o && (k.value = a, Pn({
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 lr = u(() => ({
817
- head: $.value.head,
818
- body: $.value.body.map((e) => [
819
- e[0] ?? "",
820
- e[1] ?? "",
821
- ...e.slice(2)
822
- ]),
823
- caption: M.value.a11y.translations.tableCaption,
824
- notice: M.value.a11y.translations.tableAvailable
825
- }));
826
- return Ae({
827
- getData: Fn,
828
- getImage: Gn,
829
- generateCsv: Ln,
830
- generatePdf: fn,
831
- generateImage: pn,
832
- generateSvg: tr,
833
- hideSeries: wn,
834
- showSeries: Cn,
835
- toggleTable: Bn,
836
- toggleLabels: Vn,
837
- toggleTooltip: Hn,
838
- toggleAnnotator: Wn,
839
- toggleFullscreen: Xt,
840
- copyAlt: rr
841
- }), (e, t) => (b(), p("div", {
842
- ref_key: "pcpChart",
843
- ref: O,
844
- class: _(`vue-data-ui-component vue-ui-pcp ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
845
- style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${M.value.responsive ? "height:100%" : ""}`),
846
- id: `pcp_${A.value}`,
847
- onMouseenter: t[2] ||= () => T(nn)(!0),
848
- onMouseleave: t[3] ||= () => T(nn)(!1)
849
- }, [
850
- m("div", {
851
- id: `chart-instructions-${A.value}`,
852
- class: "sr-only"
853
- }, [m("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, et),
854
- lr.value.body.length ? (b(), d(Pe, {
855
- key: 0,
856
- uid: A.value,
857
- head: lr.value.head,
858
- body: lr.value.body,
859
- caption: lr.value.caption,
860
- notice: lr.value.notice
861
- }, null, 8, [
862
- "uid",
863
- "head",
864
- "body",
865
- "caption",
866
- "notice"
867
- ])) : f("", !0),
868
- N.value.buttons.annotator ? (b(), d(T(Dt), {
869
- key: 1,
870
- svgRef: T(z),
871
- backgroundColor: I.value.backgroundColor,
872
- color: I.value.color,
873
- active: Un.value,
874
- isCursorPointer: R.value,
875
- palette: N.value.annotatorPalette,
876
- onClose: Wn
877
- }, {
878
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
879
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
880
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
881
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
882
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
883
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
884
- _: 3
885
- }, 8, [
886
- "svgRef",
887
- "backgroundColor",
888
- "color",
889
- "active",
890
- "isCursorPointer",
891
- "palette"
892
- ])) : f("", !0),
893
- mn.value ? (b(), p("div", {
894
- key: 2,
895
- ref_key: "noTitle",
896
- ref: zt,
897
- class: "vue-data-ui-no-title-space",
898
- style: "height:36px; width: 100%;background:transparent"
899
- }, null, 512)) : f("", !0),
900
- I.value.title.text ? (b(), p("div", {
901
- key: 3,
902
- ref_key: "chartTitle",
903
- ref: It,
904
- style: "width:100%;background:transparent;padding-bottom:24px"
905
- }, [(b(), d(Oe, {
906
- key: `title_${Bt.value}`,
907
- config: {
908
- title: {
909
- cy: "pcp-div-title",
910
- ...I.value.title
911
- },
912
- subtitle: {
913
- cy: "pcp-div-subtitle",
914
- ...I.value.title.subtitle
915
- }
916
- }
917
- }, null, 8, ["config"]))], 512)) : f("", !0),
918
- m("div", { id: `legend-top-${A.value}` }, null, 8, tt),
919
- N.value.show && Pt.value && (T(rn) || T(tn)) ? (b(), d(T(Ot), {
920
- ref_key: "userOptionsRef",
921
- ref: Gt,
922
- key: `user_options_${Ft.value}`,
923
- backgroundColor: I.value.backgroundColor,
924
- color: I.value.color,
925
- isPrinting: T(un),
926
- isImaging: T(dn),
927
- uid: A.value,
928
- hasTooltip: N.value.buttons.tooltip && F.value.show,
929
- hasPdf: N.value.buttons.pdf,
930
- hasXls: N.value.buttons.csv,
931
- hasImg: N.value.buttons.img,
932
- hasSvg: N.value.buttons.svg,
933
- hasTable: N.value.buttons.table,
934
- hasLabel: N.value.buttons.labels,
935
- hasFullscreen: N.value.buttons.fullscreen,
936
- hasAltCopy: N.value.buttons.altCopy,
937
- isFullscreen: j.value,
938
- isTooltip: W.value.showTooltip,
939
- titles: { ...N.value.buttonTitles },
940
- chartElement: O.value,
941
- position: N.value.position,
942
- hasAnnotator: N.value.buttons.annotator,
943
- isAnnotation: Un.value,
944
- callbacks: N.value.callbacks,
945
- printScale: N.value.print.scale,
946
- tableDialog: M.value.table.useDialog,
947
- isCursorPointer: R.value,
948
- onToggleFullscreen: Xt,
949
- onGeneratePdf: T(fn),
950
- onGenerateCsv: Ln,
951
- onGenerateImage: T(nr),
952
- onGenerateSvg: T(tr),
953
- onToggleTable: Bn,
954
- onToggleLabels: Vn,
955
- onToggleTooltip: Hn,
956
- onToggleAnnotator: Wn,
957
- onCopyAlt: rr,
958
- style: y({ visibility: T(rn) ? T(tn) ? "visible" : "hidden" : "visible" })
959
- }, Be({ _: 2 }, [
960
- e.$slots.menuIcon ? {
961
- name: "menuIcon",
962
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
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: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
971
- key: "1"
972
- } : void 0,
973
- e.$slots.optionPdf ? {
974
- name: "optionPdf",
975
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
976
- key: "2"
977
- } : void 0,
978
- e.$slots.optionCsv ? {
979
- name: "optionCsv",
980
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
981
- key: "3"
982
- } : void 0,
983
- e.$slots.optionImg ? {
984
- name: "optionImg",
985
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
986
- key: "4"
987
- } : void 0,
988
- e.$slots.optionSvg ? {
989
- name: "optionSvg",
990
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
991
- key: "5"
992
- } : void 0,
993
- e.$slots.optionTable ? {
994
- name: "optionTable",
995
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
996
- key: "6"
997
- } : void 0,
998
- e.$slots.optionLabels ? {
999
- name: "optionLabels",
1000
- fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
1001
- key: "7"
1002
- } : void 0,
1003
- e.$slots.optionFullscreen ? {
1004
- name: "optionFullscreen",
1005
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
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: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1022
- key: "10"
1023
- } : void 0,
1024
- e.$slots["custom-menu-before"] ? {
1025
- name: "custom-menu-before",
1026
- fn: E(() => [C(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: E(() => [C(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("."))) : f("", !0),
1035
- m("div", nt, [(b(), p("svg", {
1036
- ref_key: "svgRef",
1037
- ref: z,
1038
- xmlns: T(me),
1039
- "aria-describedby": `chart-instructions-${A.value}`,
1040
- class: _({
1041
- "vue-data-ui-fullscreen--on": j.value,
1042
- "vue-data-ui-fulscreen--off": !j.value,
1043
- "vue-data-ui-no-transition": !T(L)
1044
- }),
1045
- viewBox: `0 0 ${U.value.chartWidth <= 0 ? 10 : U.value.chartWidth} ${U.value.chartHeight <= 0 ? 10 : U.value.chartHeight}`,
1046
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${I.value.color}`),
1047
- tabindex: "0",
1048
- onFocus: or,
1049
- onBlur: sr,
1050
- onKeydown: cr
1051
- }, [
1052
- He(T(kt)),
1053
- e.$slots["chart-background"] ? (b(), p("foreignObject", {
1054
- key: 0,
1055
- x: U.value.left,
1056
- y: U.value.top,
1057
- width: U.value.width,
1058
- height: U.value.height,
1059
- style: { pointerEvents: "none" }
1060
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : f("", !0),
1061
- (b(!0), p(l, null, S(J.value, (e, t) => (b(), p("g", at, [m("line", {
1062
- x1: U.value.left + q.value * t + q.value / 2,
1063
- x2: U.value.left + q.value * t + q.value / 2,
1064
- y1: U.value.top,
1065
- y2: U.value.bottom,
1066
- stroke: I.value.yAxis.stroke,
1067
- "stroke-width": I.value.yAxis.strokeWidth
1068
- }, null, 8, ot), P.value.ticks.show ? (b(), p(l, { key: 0 }, [(b(!0), p(l, null, S(e.ticks, (t, n) => (b(), p("path", {
1069
- class: _({ "vue-data-ui-transition": T(L) }),
1070
- key: `tick_${e.name}_${n}`,
1071
- d: `M${t.x},${t.y} ${t.x - 10},${t.y}`,
1072
- stroke: I.value.yAxis.stroke,
1073
- "stroke-width": I.value.yAxis.strokeWidth,
1074
- style: y(`opacity:${Z.value && !W.value.showTooltip ? .2 : 1}`)
1075
- }, null, 14, st))), 128)), T(Qt) ? f("", !0) : (b(), p("g", ct, [(b(!0), p(l, null, S(e.ticks, (n, r) => (b(), p("text", {
1076
- key: `tl_${e.name}_${r}`,
1077
- class: _({ "vue-data-ui-transition": T(L) }),
1078
- transform: `translate(${n.x - 12 + P.value.ticks.offsetX}, ${n.y + P.value.ticks.offsetY + H.value.ticksFontSize / 3})`,
1079
- fill: P.value.ticks.color,
1080
- "text-anchor": "end",
1081
- "font-size": H.value.ticksFontSize,
1082
- "font-weight": P.value.ticks.bold ? "bold" : "normal",
1083
- style: y(`opacity:${Z.value && !W.value.showTooltip ? .2 : 1}`)
1084
- }, w(kn({
1085
- value: n.value,
1086
- index: t,
1087
- datapoint: n
1088
- })), 15, lt))), 128))]))], 64)) : f("", !0)]))), 256)),
1089
- P.value.showAxisNames ? (b(), p("g", {
1090
- key: 1,
1091
- ref_key: "xAxisLabels",
1092
- ref: Kt
1093
- }, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p(l, null, [String(e.name).includes("\n") ? (b(), p("text", {
1094
- key: 1,
1095
- class: "vue-ui-parallel-coordinate-plot-x-label",
1096
- fill: P.value.axisNamesColor,
1097
- "font-size": H.value.axisNameFontSize,
1098
- "font-weight": P.value.axisNamesBold ? "bold" : "",
1099
- "text-anchor": P.value.axisNamesRotation === 0 ? "middle" : P.value.axisNamesRotation < 0 ? "start" : "end",
1100
- transform: `translate(${U.value.left + q.value * t + q.value / 2}, ${_n.value - H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`,
1101
- innerHTML: T(i)({
1102
- content: String(e.name),
1103
- fontSize: H.value.axisNameFontSize,
1104
- fill: P.value.axisNamesColor,
1105
- x: 0,
1106
- y: 0
1107
- })
1108
- }, null, 8, dt)) : (b(), p("text", {
1109
- key: 0,
1110
- class: "vue-ui-parallel-coordinate-plot-x-label",
1111
- fill: P.value.axisNamesColor,
1112
- "font-size": H.value.axisNameFontSize,
1113
- "font-weight": P.value.axisNamesBold ? "bold" : "",
1114
- "text-anchor": P.value.axisNamesRotation === 0 ? "middle" : P.value.axisNamesRotation < 0 ? "start" : "end",
1115
- transform: `translate(${U.value.left + q.value * t + q.value / 2}, ${_n.value - H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`
1116
- }, w(e.name), 9, ut))], 64))), 256))], 512)) : f("", !0),
1117
- (b(!0), p(l, null, S(Y.value, (t, n) => (b(), p("g", null, [(b(!0), p(l, null, S(t.series, (r, i) => (b(), p("g", null, [
1118
- I.value.plots.show ? (b(), p("g", ft, [
1119
- (b(!0), p(l, null, S(r.datapoints, (e, a) => (b(), d(ke, {
1120
- plot: {
1121
- x: e.x,
1122
- y: e.y
1123
- },
1124
- color: t.color,
1125
- shape: t.shape,
1126
- radius: t.shape === "triangle" ? H.value.plotSize * 1.2 : H.value.plotSize,
1127
- stroke: I.value.backgroundColor,
1128
- strokeWidth: .5,
1129
- onMouseenter: (e) => Pn({
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) => Q({
1139
- serie: r,
1140
- shape: t.shape,
1141
- S: n
1142
- }),
1143
- style: y(`opacity:${Z.value ? Z.value === r.id ? I.value.plots.opacity : .2 : I.value.plots.opacity}`),
1144
- onClick: () => zn({
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
- W.value.showTooltip ? f("", !0) : (b(), p(l, { key: 0 }, [Z.value && Z.value === r.id && r.datapoints.length ? (b(), p("text", {
1161
- key: 0,
1162
- x: r.datapoints[0].x - H.value.ticksFontSize,
1163
- y: r.datapoints[0].y + H.value.ticksFontSize / 3,
1164
- "text-anchor": "end",
1165
- "font-size": H.value.ticksFontSize,
1166
- fill: t.color,
1167
- "font-weight": "bold"
1168
- }, w(r.name), 9, pt)) : f("", !0)], 64)),
1169
- I.value.comments.show ? (b(!0), p(l, { key: 1 }, S(r.datapoints, (n) => (b(), p("g", null, [n.comment ? (b(), p("foreignObject", {
1170
- key: 0,
1171
- style: { overflow: "visible" },
1172
- height: "12",
1173
- width: I.value.comments.width,
1174
- x: n.x - I.value.comments.width / 2 + I.value.comments.offsetX,
1175
- y: n.y + I.value.comments.offsetY + 6
1176
- }, [m("div", ht, [C(e.$slots, "plot-comment", { plot: {
1177
- ...n,
1178
- color: t.color
1179
- } }, void 0, !0)])], 8, mt)) : f("", !0)]))), 256)) : f("", !0)
1180
- ])) : f("", !0),
1181
- m("path", {
1182
- d: `M${I.value.lines.smooth ? r.smoothPath : r.straightPath}`,
1183
- stroke: t.color,
1184
- "stroke-width": I.value.lines.strokeWidth,
1185
- fill: "none",
1186
- class: _({
1187
- "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1188
- "vue-data-ui-transition": T(L)
1189
- }),
1190
- onMouseenter: (e) => Pn({
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) => Q({
1200
- serie: r,
1201
- shape: t.shape,
1202
- S: n
1203
- }),
1204
- onClick: () => zn({
1205
- serie: r,
1206
- shape: t.shape,
1207
- S: n
1208
- }),
1209
- style: y(`opacity:${Z.value ? Z.value === r.id ? I.value.lines.opacity : .2 : I.value.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation ? r.pathLength : 0}`)
1210
- }, null, 46, gt),
1211
- W.value.showTooltip ? (b(), p("path", {
1212
- key: 1,
1213
- d: `M${I.value.lines.smooth ? r.smoothPath : r.straightPath}`,
1214
- stroke: "transparent",
1215
- "stroke-width": 12,
1216
- fill: "none",
1217
- class: _({
1218
- "vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
1219
- "vue-data-ui-transition": T(L)
1220
- }),
1221
- onMouseenter: (e) => Pn({
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) => Q({
1231
- serie: r,
1232
- shape: t.shape,
1233
- S: n
1234
- }),
1235
- onClick: () => zn({
1236
- serie: r,
1237
- shape: t.shape,
1238
- S: n
1239
- }),
1240
- style: { opacity: "0" }
1241
- }, null, 42, _t)) : f("", !0)
1242
- ]))), 256))]))), 256)),
1243
- (b(!0), p(l, null, S(Y.value, (e, t) => (b(), p("g", null, [(b(!0), p(l, null, S(e.series, (n, r) => (b(), p("g", null, [!T(Qt) && (W.value.dataLabels.show || Z.value && Z.value === n.id) ? (b(!0), p(l, { key: 0 }, S(n.datapoints, (i, a) => (b(), p("text", {
1244
- key: `pl_${n.id}_${a}`,
1245
- transform: `translate(${i.x + 12 + P.value.datapoints.offsetX}, ${i.y + P.value.datapoints.offsetY + H.value.datapointFontSize / 3})`,
1246
- fill: P.value.datapoints.useSerieColor ? e.color : P.value.datapoints.color,
1247
- "text-anchor": "start",
1248
- "font-weight": P.value.datapoints.bold ? "bold" : "normal",
1249
- class: _({
1250
- "vue-ui-pcp-plot-label": !0,
1251
- "vue-data-ui-transition": T(L)
1252
- }),
1253
- "font-size": H.value.datapointFontSize,
1254
- stroke: I.value.backgroundColor,
1255
- "stroke-width": 3,
1256
- "stroke-linecap": "round",
1257
- "stroke-linejoin": "round",
1258
- "paint-order": "stroke fill",
1259
- onMouseenter: (i) => Pn({
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) => Q({
1269
- serie: n,
1270
- shape: e.shape,
1271
- S: t
1272
- }),
1273
- onClick: () => zn({
1274
- serie: n,
1275
- shape: e.shape,
1276
- S: t
1277
- }),
1278
- style: y(`opacity:${Z.value ? Z.value === n.id ? 1 : .2 : 1}`)
1279
- }, w(kn({
1280
- value: i.value,
1281
- index: a,
1282
- datapoint: i
1283
- })), 47, vt))), 128)) : f("", !0)]))), 256))]))), 256)),
1284
- C(e.$slots, "svg", { svg: {
1285
- ...U.value,
1286
- isPrintingImg: T(un) || T(dn) || T($n),
1287
- isPrintingSvg: T(er)
1288
- } }, void 0, !0)
1289
- ], 46, rt)), e.$slots.hint ? (b(), p("div", yt, [C(e.$slots, "hint", v(g({
1290
- hint: M.value.a11y.translations.keyboardNavigation,
1291
- isVisible: Yt.value
1292
- })), void 0, !0)])) : f("", !0)]),
1293
- e.$slots.watermark ? (b(), p("div", bt, [C(e.$slots, "watermark", v(g({ isPrinting: T(un) || T(dn) || T($n) || T(er) })), void 0, !0)])) : f("", !0),
1294
- m("div", { id: `legend-bottom-${A.value}` }, null, 8, xt),
1295
- Ut.value && (I.value.legend.show || e.$slots.legend) ? (b(), d(ze, {
1296
- key: 6,
1297
- to: I.value.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1298
- }, [m("div", {
1299
- ref_key: "chartLegend",
1300
- ref: Lt
1301
- }, [C(e.$slots, "legend", { legend: Tn.value }, () => [I.value.legend.show && Pt.value ? (b(), d(Le, {
1302
- key: `legend_${Vt.value}`,
1303
- legendSet: Tn.value,
1304
- config: En.value,
1305
- isCursorPointer: R.value,
1306
- onClickMarker: t[0] ||= ({ legend: e }) => {
1307
- xn(e.id);
1308
- }
1309
- }, {
1310
- item: E(({ legend: e, index: t }) => [m("div", {
1311
- onClick: (t) => e.segregate(),
1312
- style: y(`opacity:${G.value.includes(e.id) ? .5 : 1}`)
1313
- }, w(e.name), 13, St)]),
1314
- legendToggle: E(() => [Tn.value.length > 2 && I.value.legend.selectAllToggle.show && !T(Qt) ? (b(), d(Ne, {
1315
- key: 0,
1316
- backgroundColor: I.value.legend.selectAllToggle.backgroundColor,
1317
- color: I.value.legend.selectAllToggle.color,
1318
- fontSize: I.value.legend.fontSize,
1319
- checked: G.value.length > 0,
1320
- isCursorPointer: R.value,
1321
- onToggle: bn
1322
- }, null, 8, [
1323
- "backgroundColor",
1324
- "color",
1325
- "fontSize",
1326
- "checked",
1327
- "isCursorPointer"
1328
- ])) : f("", !0)]),
1329
- _: 1
1330
- }, 8, [
1331
- "legendSet",
1332
- "config",
1333
- "isCursorPointer"
1334
- ])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
1335
- e.$slots.source ? (b(), p("div", {
1336
- key: 7,
1337
- ref_key: "source",
1338
- ref: Rt,
1339
- dir: "auto"
1340
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1341
- He(T(Ct), {
1342
- teleportTo: F.value.teleportTo,
1343
- show: W.value.showTooltip && jn.value,
1344
- backgroundColor: F.value.backgroundColor,
1345
- color: F.value.color,
1346
- fontSize: F.value.fontSize,
1347
- borderRadius: F.value.borderRadius,
1348
- borderColor: F.value.borderColor,
1349
- borderWidth: F.value.borderWidth,
1350
- backgroundOpacity: F.value.backgroundOpacity,
1351
- position: F.value.position,
1352
- offsetX: F.value.offsetX,
1353
- offsetY: F.value.offsetY,
1354
- parent: O.value,
1355
- content: Mn.value,
1356
- isFullscreen: j.value,
1357
- isCustom: T(n)(F.value.customFormat),
1358
- smooth: F.value.smooth,
1359
- backdropFilter: F.value.backdropFilter,
1360
- smoothForce: F.value.smoothForce,
1361
- smoothSnapThreshold: F.value.smoothSnapThreshold,
1362
- isA11yMode: Jt.value === "keyboard",
1363
- a11yPosition: qt.value
1364
- }, {
1365
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...An.value })), void 0, !0)]),
1366
- tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...An.value })), void 0, !0)]),
1367
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...An.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
- Pt.value && N.value.buttons.table ? (b(), d(qe(Jn.value.component), Ue({ key: 8 }, Jn.value.props, {
1394
- ref_key: "tableUnit",
1395
- ref: Wt,
1396
- onClose: Yn
1397
- }), Be({
1398
- content: E(() => [(b(), d(T(Et), {
1399
- key: `table_${Ht.value}`,
1400
- colNames: $.value.colNames,
1401
- head: $.value.head,
1402
- body: $.value.body,
1403
- config: $.value.config,
1404
- title: M.value.table.useDialog ? "" : Jn.value.title,
1405
- withCloseButton: !M.value.table.useDialog,
1406
- isCursorPointer: R.value,
1407
- onClose: Yn
1408
- }, {
1409
- th: E(({ th: e }) => [m("div", null, w(e), 1)]),
1410
- td: E(({ td: e }) => [Ve(w(e), 1)]),
1411
- _: 1
1412
- }, 8, [
1413
- "colNames",
1414
- "head",
1415
- "body",
1416
- "config",
1417
- "title",
1418
- "withCloseButton",
1419
- "isCursorPointer"
1420
- ]))]),
1421
- _: 2
1422
- }, [M.value.table.useDialog ? {
1423
- name: "title",
1424
- fn: E(() => [Ve(w(Jn.value.title), 1)]),
1425
- key: "0"
1426
- } : void 0, M.value.table.useDialog ? {
1427
- name: "actions",
1428
- fn: E(() => [m("button", {
1429
- tabindex: "0",
1430
- class: "vue-ui-user-options-button",
1431
- onClick: t[1] ||= (e) => Ln(N.value.callbacks.csv),
1432
- style: y({ cursor: R.value ? "pointer" : "default" })
1433
- }, [He(T(wt), {
1434
- name: "fileCsv",
1435
- stroke: Jn.value.props.color
1436
- }, null, 8, ["stroke"])], 4)]),
1437
- key: "1"
1438
- } : void 0]), 1040)) : f("", !0),
1439
- C(e.$slots, "skeleton", {}, () => [T(Qt) ? (b(), d(xe, { key: 0 })) : f("", !0)], !0)
1440
- ], 46, $e));
1441
- }
1442
- }, [["__scopeId", "data-v-17b547b4"]]);
1443
- //#endregion
1444
- export { Qe as n, Ct as t };