vue-data-ui 3.25.5 → 3.25.7

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,1740 +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, Lt as a, Pt as o, S as s, X as c, Xt as ee, Y as l, Yt as te, Zt as ne, _ as re, b as ie, en as ae, ht as oe, i as se, jt as ce, lt as le, nt as ue, q as de, t as fe, v as pe, w as me, x as u } from "./lib-Dql7cqyA.js";
3
- import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
- import { t as _e } from "./useConfig-C_mX5pOZ.js";
5
- import { t as ve } from "./usePrinter-DISD7q5m.js";
6
- import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as xe } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Ce } from "./useChartExport-iwOqiIWX.js";
10
- import { t as we } from "./useTransitions-g_zBREk2.js";
11
- import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as Ee } from "./img-DhGApYG0.js";
13
- import { n as De } from "./Title-CPHi-evi.js";
14
- import { t as Oe } from "./Shape-CIqU-p2F.js";
15
- import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Me } from "./DefGrad-DVBqDjhO.js";
18
- import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Ie } from "./vue_ui_strip_plot-BaHbnnwN.js";
22
- import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Be, nextTick as Ve, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as He, onMounted as Ue, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as E, toRefs as Ke, unref as D, watch as qe, watchEffect as Je, withCtx as O } from "vue";
23
- //#region src/components/vue-ui-strip-plot.vue
24
- var Ye = /* @__PURE__ */ e({ default: () => Dt }), Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
25
- "xmlns",
26
- "viewBox",
27
- "aria-describedby"
28
- ], et = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], tt = { key: 1 }, nt = { key: 0 }, rt = [
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2",
38
- "stroke",
39
- "stroke-width",
40
- "stroke-dasharray"
41
- ], it = { key: 1 }, at = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width",
48
- "stroke-dasharray"
49
- ], ot = [
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2",
54
- "stroke",
55
- "stroke-width"
56
- ], st = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], ct = [
64
- "transform",
65
- "fill",
66
- "font-size"
67
- ], lt = [
68
- "transform",
69
- "font-size",
70
- "fill",
71
- "text-anchor"
72
- ], ut = [
73
- "transform",
74
- "font-size",
75
- "fill",
76
- "text-anchor",
77
- "innerHTML"
78
- ], dt = [
79
- "fill",
80
- "font-size",
81
- "transform"
82
- ], ft = [
83
- "fill",
84
- "font-size",
85
- "x",
86
- "y"
87
- ], pt = [
88
- "x1",
89
- "x2",
90
- "y1",
91
- "y2",
92
- "stroke"
93
- ], mt = [
94
- "cx",
95
- "cy",
96
- "fill"
97
- ], ht = [
98
- "cx",
99
- "cy",
100
- "fill"
101
- ], gt = [
102
- "d",
103
- "fill",
104
- "stroke",
105
- "fill-opacity",
106
- "stroke-opacity",
107
- "stroke-width",
108
- "onMouseenter"
109
- ], _t = [
110
- "x1",
111
- "x2",
112
- "y1",
113
- "y2",
114
- "stroke",
115
- "stroke-opacity",
116
- "stroke-width"
117
- ], vt = ["onMouseenter"], yt = [
118
- "x1",
119
- "x2",
120
- "y1",
121
- "y2",
122
- "stroke",
123
- "stroke-width"
124
- ], bt = [
125
- "x",
126
- "y",
127
- "width",
128
- "height",
129
- "fill",
130
- "stroke",
131
- "stroke-width",
132
- "rx"
133
- ], xt = [
134
- "cx",
135
- "cy",
136
- "r",
137
- "fill",
138
- "stroke"
139
- ], St = { key: 1 }, Ct = [
140
- "x",
141
- "y",
142
- "font-size",
143
- "fill"
144
- ], wt = {
145
- key: 0,
146
- style: {
147
- position: "absolute",
148
- top: "100%",
149
- left: "0",
150
- width: "100%"
151
- },
152
- "data-dom-to-png-ignore": "",
153
- "aria-hidden": "true"
154
- }, Tt = {
155
- key: 5,
156
- class: "vue-data-ui-watermark"
157
- }, Et = { style: {
158
- display: "flex",
159
- "align-items": "center"
160
- } }, Dt = /*#__PURE__*/ ke({
161
- __name: "vue-ui-strip-plot",
162
- props: {
163
- config: {
164
- type: Object,
165
- default() {
166
- return {};
167
- }
168
- },
169
- dataset: {
170
- type: Array,
171
- default() {
172
- return [];
173
- }
174
- }
175
- },
176
- emits: ["selectDatapoint", "copyAlt"],
177
- setup(e, { expose: ke, emit: Ye }) {
178
- let Dt = _(() => import("./Tooltip-hhrkQ3Lk.js")), Ot = _(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), kt = _(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), At = _(() => import("./DataTable-COIO9gi4.js")), jt = _(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Mt = _(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Nt = _(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Pt = _(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), Ft = [
179
- "classic",
180
- "scatter",
181
- "violin"
182
- ], { vue_ui_strip_plot: It } = _e(), { isThemeValid: Lt, warnInvalidTheme: Rt } = Se(), k = e, zt = Ye, Bt = f({
183
- get() {
184
- return !!k.dataset && k.dataset.length;
185
- },
186
- set(e) {
187
- return e;
188
- }
189
- }), A = C(de()), Vt = C(0), j = C(!1), Ht = C(""), M = C(null), Ut = C(null), Wt = C(null), Gt = C(null), Kt = C(!1), qt = C(0), Jt = C(0), Yt = C(null), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = C(null), N = C("pointer"), rn = C({
190
- x: 0,
191
- y: 0
192
- }), an = C(!1), P = C(hn());
193
- he({
194
- config: () => P.value,
195
- dataset: () => k.dataset,
196
- component: "VueUiStripPlot",
197
- rules: [ge.emptyArray, {
198
- test: (e) => e.length > 12,
199
- message: [
200
- "👀 The number of series is > 12. Consider:",
201
- "",
202
- "▶️ Using filters to let users choose a maximum number of series to display.",
203
- "",
204
- "▶️ Using multiple instances of the chart to display related series."
205
- ]
206
- }]
207
- });
208
- let { transitionEnabled: on } = we({
209
- config: () => P.value.transitions,
210
- dataset: () => k.dataset
211
- }), sn = f(() => gn(P.value.type)), F = f(() => P.value.userOptions.useCursorPointer), cn = f(() => ne({
212
- defaultConfig: {
213
- userOptions: { show: !1 },
214
- table: { show: !1 },
215
- style: { chart: {
216
- backgroundColor: "#99999930",
217
- padding: {
218
- top: 24,
219
- left: 24,
220
- right: 24,
221
- bottom: 24
222
- },
223
- grid: {
224
- stroke: "#6A6A6A",
225
- horizontalGrid: { stroke: "#6A6A6A" },
226
- verticalGrid: { stroke: "#6A6A6A" }
227
- },
228
- plots: { stroke: "#6A6A6A" },
229
- labels: {
230
- bestPlotLabel: { show: !1 },
231
- axis: {
232
- xLabel: "",
233
- yLabel: ""
234
- },
235
- xAxisLabels: { show: !1 },
236
- yAxisLabels: { show: !1 }
237
- }
238
- } }
239
- },
240
- userConfig: P.value.skeletonConfig ?? {}
241
- })), { loading: ln, FINAL_DATASET: un, manualLoading: dn } = ye({
242
- ...Ke(k),
243
- FINAL_CONFIG: P,
244
- prepareConfig: hn,
245
- skeletonDataset: k.config?.skeletonDataset ?? [
246
- {
247
- name: "_",
248
- color: "#DBDBDB",
249
- plots: [
250
- {
251
- name: "_",
252
- value: 1
253
- },
254
- {
255
- name: "_",
256
- value: 2
257
- },
258
- {
259
- name: "_",
260
- value: 3
261
- }
262
- ]
263
- },
264
- {
265
- name: "_",
266
- color: "#C4C4C4",
267
- plots: [
268
- {
269
- name: "_",
270
- value: 3
271
- },
272
- {
273
- name: "_",
274
- value: 5
275
- },
276
- {
277
- name: "_",
278
- value: 8
279
- }
280
- ]
281
- },
282
- {
283
- name: "_",
284
- color: "#ADADAD",
285
- plots: [
286
- {
287
- name: "_",
288
- value: 8
289
- },
290
- {
291
- name: "_",
292
- value: 13
293
- },
294
- {
295
- name: "_",
296
- value: 21
297
- }
298
- ]
299
- },
300
- {
301
- name: "_",
302
- color: "#969696",
303
- plots: [
304
- {
305
- name: "_",
306
- value: 21
307
- },
308
- {
309
- name: "_",
310
- value: 34
311
- },
312
- {
313
- name: "_",
314
- value: 55
315
- }
316
- ]
317
- },
318
- {
319
- name: "_",
320
- color: "#808080",
321
- plots: [
322
- {
323
- name: "_",
324
- value: 55
325
- },
326
- {
327
- name: "_",
328
- value: 89
329
- },
330
- {
331
- name: "_",
332
- value: 144
333
- }
334
- ]
335
- }
336
- ],
337
- skeletonConfig: ne({
338
- defaultConfig: P.value,
339
- userConfig: cn.value
340
- })
341
- }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Pe({ config: P.value }), { svgRef: I } = Fe({ config: P.value.style.chart.title });
342
- function hn() {
343
- let e = xe({
344
- userConfig: k.config,
345
- defaultConfig: It
346
- }), t = e.theme;
347
- if (!t) return e;
348
- if (!Lt.value(e)) return Rt(e), e;
349
- let n = xe({
350
- userConfig: Ie[t] || k.config,
351
- defaultConfig: e
352
- }), r = xe({
353
- userConfig: k.config,
354
- defaultConfig: n
355
- });
356
- return {
357
- ...r,
358
- customPalette: r.customPalette.length ? r.customPalette : te[t] || a
359
- };
360
- }
361
- function gn(e) {
362
- return Ft.includes(e) ? e : "classic";
363
- }
364
- qe(() => k.config, async (e) => {
365
- ln.value || (P.value = hn()), fn.value = !P.value.userOptions.showOnChartHover, vn(), qt.value += 1, Jt.value += 1, V.value.dataLabels.show = P.value.style.chart.labels.bestPlotLabel.show, V.value.showTable = P.value.table.show, V.value.showTooltip = P.value.style.chart.tooltip.show, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height, On.value = P.value.style.chart.plots.radius;
366
- }, { deep: !0 }), qe(() => k.dataset, (e) => {
367
- Array.isArray(e) && e.length > 0 && (dn.value = !1);
368
- }, { deep: !0 });
369
- let L = Ge(null), R = Ge(null);
370
- Ue(() => {
371
- vn();
372
- });
373
- let _n = f(() => P.value.debug);
374
- function vn() {
375
- if (o(k.dataset) ? (ue({
376
- componentName: "VueUiStripPlot",
377
- type: "dataset",
378
- debug: _n.value
379
- }), dn.value = !0) : k.dataset.forEach((e, t) => {
380
- oe({
381
- datasetObject: e,
382
- requiredAttributes: ["name", "plots"]
383
- }).forEach((e) => {
384
- Bt.value = !1, ue({
385
- componentName: "VueUiStripPlot",
386
- type: "datasetSerieAttribute",
387
- property: e,
388
- index: t,
389
- debug: _n.value
390
- });
391
- }), e.plots && e.plots.forEach((e, n) => {
392
- oe({
393
- datasetObject: e,
394
- requiredAttributes: ["name", "value"]
395
- }).forEach((e) => {
396
- Bt.value = !1, ue({
397
- componentName: "VueUiStripPlot",
398
- type: "datasetSerieAttribute",
399
- property: e,
400
- index: `${t},${n}`,
401
- debug: _n.value
402
- });
403
- });
404
- });
405
- }), o(k.dataset) || (dn.value = P.value.loading), P.value.responsive) {
406
- let e = Ae(() => {
407
- let { width: e, height: t } = je({
408
- chart: M.value,
409
- title: P.value.style.chart.title.text ? Ut.value : null,
410
- source: Wt.value,
411
- noTitle: Gt.value
412
- });
413
- requestAnimationFrame(() => {
414
- Dn.value = t, z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12), P.value.responsiveProportionalSizing ? On.value = ee({
415
- relator: Math.min(t, e),
416
- adjuster: 600,
417
- source: P.value.style.chart.plots.radius,
418
- threshold: 6,
419
- fallback: 6
420
- }) : On.value = P.value.style.chart.plots.radius;
421
- });
422
- });
423
- L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = M.value.parentNode, L.value.observe(R.value);
424
- }
425
- Kt.value = !0, setTimeout(() => {
426
- Tn.value = !1;
427
- }, Fn.value * 50);
428
- }
429
- He(() => {
430
- L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
431
- });
432
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = ve({
433
- elementId: `strip-plot_${A.value}`,
434
- fileName: P.value.style.chart.title.text || "vue-ui-strip-plot",
435
- options: P.value.userOptions.print
436
- }), Cn = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), wn = f(() => me(P.value.customPalette)), Tn = C(P.value.useCssAnimation), En = C({
437
- top: P.value.style.chart.padding.top,
438
- bottom: P.value.style.chart.padding.bottom,
439
- left: P.value.style.chart.padding.left,
440
- right: P.value.style.chart.padding.right
441
- }), z = C(P.value.style.chart.width), B = C(P.value.style.chart.height), Dn = C(P.value.style.chart.height), On = C(P.value.style.chart.plots.radius), V = C({
442
- showTable: P.value.table.show,
443
- dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
444
- showTooltip: P.value.style.chart.tooltip.show
445
- });
446
- qe(P, () => {
447
- V.value = {
448
- showTable: P.value.table.show,
449
- dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
450
- showTooltip: P.value.style.chart.tooltip.show
451
- }, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height, On.value = P.value.style.chart.plots.radius;
452
- }, { immediate: !0 });
453
- let H = f(() => Math.min(On.value, W.value.stripWidth / 2 * .9));
454
- function U(e) {
455
- return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
456
- }
457
- function kn() {
458
- return Math.max(0, (W.value.stripWidth / 2 - H.value * 1.8) * .86) * Math.min(1, P.value.style.chart.violin.widthRatio);
459
- }
460
- function An() {
461
- let e = 0;
462
- en.value && (e = Array.from(en.value.querySelectorAll("text")).reduce((e, t) => {
463
- let n = t.getComputedTextLength();
464
- return n > e ? n : e;
465
- }, 0));
466
- let t = Qt.value ? Qt.value.getBoundingClientRect().width : 0;
467
- return e + t + (t ? 24 : 0);
468
- }
469
- let jn = C(0), Mn = Ae((e) => {
470
- jn.value = e;
471
- }, 100);
472
- Je((e) => {
473
- let t = $t.value;
474
- if (!t) return;
475
- let n = new ResizeObserver((e) => {
476
- Mn(e[0].contentRect.height);
477
- });
478
- n.observe(t), e(() => n.disconnect());
479
- }), He(() => {
480
- jn.value = 0;
481
- });
482
- let Nn = f(() => {
483
- let e = 0;
484
- Zt.value && (e = Zt.value.getBBox().height + P.value.style.chart.labels.axis.fontSize / 3 + 12 + P.value.style.chart.labels.axis.xLabelOffsetY);
485
- let t = 0;
486
- return $t.value && (t = jn.value + 12), e + t;
487
- }), W = f(() => {
488
- let e = An(), t = En.value.left + e + P.value.style.chart.labels.axis.yLabelOffsetX + 5, n = z.value - En.value.right, r = Math.max(0, n - t), i = En.value.top + P.value.style.chart.plots.radius + P.value.style.chart.labels.bestPlotLabel.fontSize, a = B.value - En.value.bottom - Nn.value, o = Math.max(0, a - i), s = Array.isArray(un.value) ? un.value.length : 0;
489
- return {
490
- left: t,
491
- right: n,
492
- top: i,
493
- bottom: a,
494
- width: r,
495
- height: o,
496
- stripWidth: s > 0 ? r / s : 0,
497
- absoluteHeight: B.value
498
- };
499
- });
500
- function Pn(e) {
501
- return W.value.left + (e + 1) * W.value.stripWidth - W.value.stripWidth / 2;
502
- }
503
- let G = f(() => un.value.map((e, t) => {
504
- let n = de();
505
- return {
506
- ...e,
507
- id: n,
508
- color: e.color ? s(e.color) : wn.value[t] || a[t] || a[t % a.length],
509
- plots: e.plots.map((r, i) => ({
510
- ...r,
511
- value: ie(r.value),
512
- parentId: n,
513
- parentName: e.name,
514
- parentIndex: t,
515
- plotIndex: i,
516
- color: e.color ? s(e.color) : wn.value[t] || a[t] || a[t % a.length],
517
- id: de()
518
- })).sort((e, t) => e.value - t.value)
519
- };
520
- })), K = f(() => (G.value || []).map((e, t) => ({
521
- ...e,
522
- plots: e.plots.map((e) => ({
523
- ...e,
524
- x: Pn(t)
525
- }))
526
- }))), Fn = f(() => Math.max(...K.value.map((e) => e.plots.length))), In = f(() => {
527
- let e = K.value.flatMap((e) => e.plots.map((e) => e.value));
528
- return {
529
- max: Math.max(...e),
530
- min: Math.min(...e)
531
- };
532
- }), Ln = f(() => {
533
- let e = P.value.style.chart.grid.scaleMin, t = P.value.style.chart.grid.scaleMax, n = Math.max(2, P.value.style.chart.grid.scaleSteps), r = In.value.min < 0 ? In.value.min : 0, i = In.value.max;
534
- if (e === null && t === null) return re(r, i, n);
535
- if (e !== null && t !== null) return pe(e, t, n);
536
- let a = re(e === null ? r : e, t === null ? i : t, n);
537
- return pe(e === null ? a.min : e, t === null ? a.max : t, n);
538
- });
539
- function q(e) {
540
- let t = Ln.value.max - Ln.value.min;
541
- return t ? W.value.bottom - (e - Ln.value.min) / t * W.value.height : W.value.bottom;
542
- }
543
- let J = f(() => (K.value || []).map((e, t) => {
544
- let n = e.plots.map((e) => ({
545
- ...e,
546
- y: q(e.value)
547
- })), r = sn.value === "classic" ? n.map(() => 0) : Vn(n);
548
- return {
549
- ...e,
550
- plots: n.map((e, t) => ({
551
- ...e,
552
- x: e.x + r[t]
553
- }))
554
- };
555
- })), Y = f(() => sn.value === "violin" && !!P.value.style.chart.violin?.boxPlot?.show);
556
- function Rn(e, t) {
557
- if (!e.length) return 0;
558
- if (e.length === 1) return e[0];
559
- let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
560
- return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
561
- }
562
- let X = f(() => Y.value ? J.value.map((e, t) => {
563
- let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r = Rn(n, .25), i = Rn(n, .5), a = Rn(n, .75), o = a - r, s = r - o * 1.5, c = a + o * 1.5, ee = n.find((e) => e >= s), l = n.slice().reverse().find((e) => e <= c), te = Pn(t), ne = Math.max(H.value * 2.8, Math.min(kn() * .32, W.value.stripWidth * .12)) * Math.min(1.5, P.value.style.chart.violin.boxPlot.widthRatio);
564
- return {
565
- id: e.id,
566
- boxPlotColor: P.value.style.chart.violin.boxPlot.useSerieColor ? e.color : P.value.style.chart.violin.boxPlot.color,
567
- color: e.color,
568
- name: e.name,
569
- count: n.length,
570
- lowerAdjacent: ee ?? n[0],
571
- q1: r,
572
- median: i,
573
- q3: a,
574
- upperAdjacent: l ?? n[n.length - 1],
575
- iqr: o,
576
- lowerFence: s,
577
- upperFence: c,
578
- centerX: te,
579
- boxLeft: te - ne / 2,
580
- boxWidth: ne,
581
- q1Y: q(r),
582
- medianY: q(i),
583
- q3Y: q(a),
584
- lowerY: q(ee ?? n[0]),
585
- upperY: q(l ?? n[n.length - 1])
586
- };
587
- }) : []), zn = f(() => [
588
- P.value.table.columnNames.series,
589
- P.value.style.chart.violin.tooltipLabels.lowerAdjacent,
590
- P.value.style.chart.violin.tooltipLabels.q1,
591
- P.value.style.chart.violin.tooltipLabels.median,
592
- P.value.style.chart.violin.tooltipLabels.q3,
593
- P.value.style.chart.violin.tooltipLabels.upperAdjacent,
594
- P.value.style.chart.violin.tooltipLabels.iqr,
595
- P.value.style.chart.violin.tooltipLabels.count
596
- ]);
597
- function Bn(e) {
598
- return c({
599
- p: P.value.style.chart.labels.prefix,
600
- v: e,
601
- s: P.value.style.chart.labels.suffix,
602
- r: P.value.table.td.roundingValue
603
- });
604
- }
605
- function Vn(e) {
606
- let t = sn.value === "violin" ? Math.max(0, kn() - H.value * 1.15) : Math.max(0, W.value.stripWidth / 2 - H.value * 1.5);
607
- if (!e.length || !t) return e.map(() => 0);
608
- let n = e.map(() => 0), r = H.value * 2.1, i = Math.min(t, r), a = [0];
609
- for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
610
- let o = [];
611
- return e.forEach((e, t) => {
612
- let i = a.find((t) => o.every((n) => {
613
- let i = t - n.offset, a = e.y - n.y;
614
- return Math.hypot(i, a) >= r;
615
- })) ?? 0;
616
- n[t] = i, o.push({
617
- y: e.y,
618
- offset: i
619
- });
620
- }), n;
621
- }
622
- let Hn = f(() => sn.value === "violin" ? J.value.map((e, t) => ({
623
- id: e.id,
624
- color: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.stroke,
625
- fill: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.fill,
626
- path: Un(e.plots, t),
627
- connectors: Wn(e.plots, t)
628
- })) : []);
629
- function Un(e, t) {
630
- let n = kn();
631
- if (!e.length || !W.value.height || !n) return "";
632
- let r = Pn(t), i = e.map((e) => e.y), a = Z(i), o = Kn({
633
- yValues: i,
634
- bandwidth: a
635
- });
636
- return o.length > 1 ? o.map((e) => Jn({
637
- yValues: e,
638
- centerX: r,
639
- maxWidth: Gn({
640
- clusterLength: e.length,
641
- totalLength: i.length,
642
- maxWidth: n
643
- }),
644
- bandwidth: Z(e)
645
- })).join(" ") : Jn({
646
- yValues: i,
647
- centerX: r,
648
- maxWidth: n,
649
- bandwidth: a
650
- });
651
- }
652
- function Wn(e, t) {
653
- if (!e.length) return [];
654
- let n = Pn(t), r = e.map((e) => e.y), i = Kn({
655
- yValues: r,
656
- bandwidth: Z(r)
657
- });
658
- return i.length < 2 ? [] : i.slice(1).map((e, t) => {
659
- let r = i[t], a = Z(r), o = Z(e), s = u(Math.max(...r) + a * 2.35, W.value.top, W.value.bottom), c = u(Math.min(...e) - o * 2.35, W.value.top, W.value.bottom);
660
- return {
661
- x: U(n),
662
- y1: U(s),
663
- y2: U(c)
664
- };
665
- });
666
- }
667
- function Gn({ clusterLength: e, totalLength: t, maxWidth: n }) {
668
- let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
669
- return Math.max(H.value * 2.2, n * u(r * i, .18, 1));
670
- }
671
- function Z(e) {
672
- let t = e.reduce((e, t) => e + t, 0) / Math.max(1, e.length), n = e.reduce((e, n) => e + (n - t) ** 2, 0) / Math.max(1, e.length), r = Math.sqrt(n), i = e.length < 2 ? Math.max(H.value * 2.6, W.value.height / 48) : H.value * 2.1;
673
- return u(1.06 * r * e.length ** -.2, i, W.value.height / 5);
674
- }
675
- function Kn({ yValues: e, bandwidth: t }) {
676
- if (e.length < 2) return [e];
677
- let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, H.value * 5), i = [], a = [n[0]];
678
- for (let e = 1; e < n.length; e += 1) Math.abs(n[e] - n[e - 1]) > r ? (i.push(a), a = [n[e]]) : a.push(n[e]);
679
- return i.push(a), qn(i);
680
- }
681
- function qn(e) {
682
- return e.reduce((e, t) => {
683
- let n = e[e.length - 1];
684
- if (!n) return e.push(t), e;
685
- let r = Z(n), i = Z(t);
686
- return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
687
- }, []);
688
- }
689
- function Jn({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
690
- let i = u(Math.min(...e) - r * 2.35, W.value.top, W.value.bottom), a = u(Math.max(...e) + r * 2.35, W.value.top, W.value.bottom), o = Math.max(48, Math.min(120, Math.round((a - i) / Math.max(1, r / 4)))), s = Array.from({ length: o }, (t, n) => {
691
- let s = i + (a - i) * n / Math.max(1, o - 1);
692
- return {
693
- y: s,
694
- density: e.reduce((e, t) => {
695
- let n = (s - t) / r;
696
- return e + Math.exp(-.5 * n * n);
697
- }, 0)
698
- };
699
- }), c = Math.max(...s.map((e) => e.density));
700
- if (!c) return "";
701
- let ee = s.map((e, t) => {
702
- let r = t === 0 || t === s.length - 1 ? 0 : e.density / c * n;
703
- return {
704
- y: U(e.y),
705
- width: U(r)
706
- };
707
- }), l = ee.map((e) => ({
708
- x: U(t - e.width),
709
- y: e.y
710
- })), te = ee.slice(0, -1).reverse().map((e) => ({
711
- x: U(t + e.width),
712
- y: e.y
713
- }));
714
- return `${Yn([...l, ...te])} Z`;
715
- }
716
- function Yn(e) {
717
- if (!e.length) return "";
718
- if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
719
- let t = `M ${e[0].x} ${e[0].y}`;
720
- for (let n = 1; n < e.length - 1; n += 1) {
721
- let r = e[n], i = e[n + 1], a = U((r.x + i.x) / 2), o = U((r.y + i.y) / 2);
722
- t += ` Q ${r.x} ${r.y} ${a} ${o}`;
723
- }
724
- let n = e[e.length - 1];
725
- return `${t} L ${n.x} ${n.y}`;
726
- }
727
- let Xn = f(() => Ln.value.ticks.map((e) => ({
728
- y: q(e),
729
- x1: W.value.left,
730
- x2: W.value.right,
731
- value: e
732
- }))), Zn = C(null), Q = C(null);
733
- function Qn({ datapoint: e, seriesIndex: t }) {
734
- N.value !== "keyboard" && (j.value = !1, Q.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
735
- datapoint: e,
736
- seriesIndex: t
737
- }));
738
- }
739
- function $n({ datapoint: e, seriesIndex: t }) {
740
- zt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
741
- datapoint: e,
742
- seriesIndex: t
743
- });
744
- }
745
- function er(e, t = {}) {
746
- return se(P.value.style.chart.labels.formatter, e, c({
747
- p: P.value.style.chart.labels.prefix,
748
- v: e,
749
- s: P.value.style.chart.labels.suffix,
750
- r: P.value.style.chart.tooltip.roundingValue
751
- }), t);
752
- }
753
- function tr({ datapoint: e, seriesIndex: t, triggerMode: r = "pointer" }) {
754
- P.value.events.datapointEnter && P.value.events.datapointEnter({
755
- datapoint: e,
756
- seriesIndex: t
757
- }), N.value = r, Zn.value = {
758
- datapoint: e,
759
- seriesIndex: t,
760
- config: P.value,
761
- series: G.value
762
- }, j.value = !0, Q.value = e;
763
- let i = P.value.style.chart.tooltip.customFormat;
764
- if (n(i) && le(() => i({
765
- seriesIndex: t,
766
- datapoint: e,
767
- series: G.value,
768
- config: P.value
769
- }))) Ht.value = i({
770
- seriesIndex: t,
771
- datapoint: e,
772
- series: G.value,
773
- config: P.value
774
- });
775
- else {
776
- let n = "";
777
- n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${P.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${er(e.value, {
778
- datapoint: e,
779
- seriesIndex: t
780
- })}</div>`, Ht.value = `<div>${n}</div>`;
781
- }
782
- }
783
- function nr() {
784
- N.value !== "keyboard" && (j.value = !1, Q.value = null);
785
- }
786
- function rr({ boxPlot: e, seriesIndex: t, triggerMode: r = "pointer" }) {
787
- N.value = r, Q.value = null, j.value = !0, Zn.value = {
788
- boxPlot: e,
789
- seriesIndex: t,
790
- config: P.value,
791
- series: G.value
792
- };
793
- let i = P.value.style.chart.tooltip.customFormat;
794
- if (n(i)) try {
795
- let n = {
796
- boxPlot: e,
797
- seriesIndex: t,
798
- series: G.value,
799
- config: P.value
800
- };
801
- if (le(() => i(n))) {
802
- Ht.value = i(n);
803
- return;
804
- }
805
- } catch {}
806
- let a = [
807
- [P.value.style.chart.violin.tooltipLabels.upperAdjacent, e.upperAdjacent],
808
- [P.value.style.chart.violin.tooltipLabels.q3, e.q3],
809
- [P.value.style.chart.violin.tooltipLabels.median, e.median],
810
- [P.value.style.chart.violin.tooltipLabels.q1, e.q1],
811
- [P.value.style.chart.violin.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
812
- [P.value.style.chart.violin.tooltipLabels.iqr, e.iqr]
813
- ], o = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, s = a.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${er(r, {
814
- boxPlot: e,
815
- seriesIndex: t
816
- })}</b></div>`).join("");
817
- Ht.value = `<div style="min-width:160px;"><div style="display:flex;flex-direction:row;gap:6px;align-items:center;margin-bottom:6px;">${o}${e.name}</div>` + s + `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;margin-top:6px;"><span>${P.value.style.chart.violin.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
818
- }
819
- let ir = f(() => ({
820
- head: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
821
- name: `${e.name} - ${t.name}`,
822
- color: t.color
823
- }))),
824
- body: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
825
- }));
826
- function ar(e = null) {
827
- Ve(() => {
828
- let n = [], i = [P.value.table.columnNames.series, P.value.table.columnNames.value];
829
- Y.value ? (i = zn.value, n = X.value.map((e) => [
830
- [e.name],
831
- [e.lowerAdjacent],
832
- [e.q1],
833
- [e.median],
834
- [e.q3],
835
- [e.upperAdjacent],
836
- [e.iqr],
837
- [e.count]
838
- ])) : n = ir.value.head.map((e, t) => [[e.name], [ir.value.body[t]]]);
839
- let a = [
840
- [P.value.style.chart.title.text],
841
- [P.value.style.chart.title.subtitle.text],
842
- i.map((e) => [e])
843
- ].concat(n), o = r(a);
844
- e ? e(o) : t({
845
- csvContent: o,
846
- title: P.value.style.chart.title.text || "vue-ui-strip-plot"
847
- });
848
- });
849
- }
850
- let or = f(() => {
851
- if (Y.value) {
852
- let e = zn.value;
853
- return {
854
- colNames: e,
855
- head: e,
856
- body: X.value.map((e) => [
857
- {
858
- color: e.color,
859
- name: e.name
860
- },
861
- Bn(e.lowerAdjacent),
862
- Bn(e.q1),
863
- Bn(e.median),
864
- Bn(e.q3),
865
- Bn(e.upperAdjacent),
866
- Bn(e.iqr),
867
- e.count
868
- ]),
869
- config: {
870
- th: {
871
- backgroundColor: P.value.table.th.backgroundColor,
872
- color: P.value.table.th.color,
873
- outline: P.value.table.th.outline
874
- },
875
- td: {
876
- backgroundColor: P.value.table.td.backgroundColor,
877
- color: P.value.table.td.color,
878
- outline: P.value.table.td.outline
879
- },
880
- breakpoint: P.value.table.responsiveBreakpoint
881
- }
882
- };
883
- }
884
- let e = [P.value.table.columnNames.series, P.value.table.columnNames.value], t = ir.value.head.map((e, t) => {
885
- let n = c({
886
- p: P.value.style.chart.labels.prefix,
887
- v: ir.value.body[t],
888
- s: P.value.style.chart.labels.suffix,
889
- r: P.value.table.td.roundingValue
890
- });
891
- return [{
892
- color: e.color,
893
- name: e.name
894
- }, n];
895
- }), n = {
896
- th: {
897
- backgroundColor: P.value.table.th.backgroundColor,
898
- color: P.value.table.th.color,
899
- outline: P.value.table.th.outline
900
- },
901
- td: {
902
- backgroundColor: P.value.table.td.backgroundColor,
903
- color: P.value.table.td.color,
904
- outline: P.value.table.td.outline
905
- },
906
- breakpoint: P.value.table.responsiveBreakpoint
907
- };
908
- return {
909
- colNames: [P.value.table.columnNames.series, P.value.table.columnNames.value],
910
- head: e,
911
- body: t,
912
- config: n
913
- };
914
- }), $ = C(!1);
915
- function sr(e) {
916
- $.value = e, Vt.value += 1;
917
- }
918
- function cr() {
919
- return K.value;
920
- }
921
- function lr() {
922
- V.value.showTable = !V.value.showTable;
923
- }
924
- function ur() {
925
- V.value.dataLabels.show = !V.value.dataLabels.show;
926
- }
927
- function dr() {
928
- V.value.showTooltip = !V.value.showTooltip;
929
- }
930
- let fr = C(!1);
931
- function pr() {
932
- fr.value = !fr.value;
933
- }
934
- async function mr({ scale: e = 2 } = {}) {
935
- if (!M.value) return;
936
- let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
937
- domElement: M.value,
938
- base64: !0,
939
- img: !0,
940
- scale: e
941
- });
942
- return {
943
- imageUri: i,
944
- base64: a,
945
- title: P.value.style.chart.title.text,
946
- width: t,
947
- height: n,
948
- aspectRatio: r
949
- };
950
- }
951
- let hr = f(() => K.value.map((e) => e.name)), gr = C({
952
- start: 0,
953
- end: K.value.length
954
- });
955
- Te({
956
- timeLabelsEls: $t,
957
- timeLabels: hr,
958
- slicer: gr,
959
- configRef: P,
960
- rotationPath: [
961
- "style",
962
- "chart",
963
- "labels",
964
- "xAxisLabels",
965
- "rotation"
966
- ],
967
- autoRotatePath: [
968
- "style",
969
- "chart",
970
- "labels",
971
- "xAxisLabels",
972
- "autoRotate",
973
- "enable"
974
- ],
975
- isAutoSize: !1,
976
- width: z,
977
- height: B,
978
- targetClass: ".vue-ui-strip-plot-category-name",
979
- rotation: P.value.style.chart.labels.xAxisLabels.autoRotate.angle
980
- });
981
- let _r = f(() => {
982
- let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
983
- return {
984
- component: e ? Pt : kt,
985
- title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
986
- props: e ? {
987
- backgroundColor: P.value.table.th.backgroundColor,
988
- color: P.value.table.th.color,
989
- headerColor: P.value.table.th.color,
990
- headerBg: P.value.table.th.backgroundColor,
991
- isFullscreen: $.value,
992
- fullscreenParent: M.value,
993
- forcedWidth: Math.min(800, window.innerWidth * .8),
994
- isCursorPointer: F.value
995
- } : {
996
- hideDetails: !0,
997
- config: {
998
- open: t,
999
- maxHeight: 1e4,
1000
- body: {
1001
- backgroundColor: P.value.style.chart.backgroundColor,
1002
- color: P.value.style.chart.color
1003
- },
1004
- head: {
1005
- backgroundColor: P.value.style.chart.backgroundColor,
1006
- color: P.value.style.chart.color
1007
- }
1008
- }
1009
- }
1010
- };
1011
- });
1012
- qe(() => V.value.showTable, (e) => {
1013
- P.value.table.show || (e && P.value.table.useDialog && Yt.value ? Yt.value.open() : "close" in Yt.value && Yt.value.close());
1014
- });
1015
- function vr() {
1016
- V.value.showTable = !1, Xt.value && Xt.value.setTableIconState(!1);
1017
- }
1018
- let yr = f(() => P.value.style.chart.backgroundColor), br = f(() => P.value.style.chart.title), { isCallbackImaging: xr, isCallbackSvg: Sr, generateSvg: Cr, onGenerateImage: wr } = Ce({
1019
- svg: I,
1020
- title: br,
1021
- legend: null,
1022
- legendItems: null,
1023
- backgroundColor: yr,
1024
- getSvgCallback: () => P.value.userOptions.callbacks.svg,
1025
- generateImage: Sn
1026
- });
1027
- async function Tr() {
1028
- if (zt("copyAlt", {
1029
- config: P.value,
1030
- dataset: J.value
1031
- }), !P.value.userOptions.callbacks.altCopy) {
1032
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1033
- return;
1034
- }
1035
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
1036
- config: P.value,
1037
- dataset: J.value
1038
- }));
1039
- }
1040
- function Er() {
1041
- return J.value.length;
1042
- }
1043
- function Dr(e) {
1044
- return J.value[e]?.plots ?? [];
1045
- }
1046
- function Or(e = tn.value, t = nn.value) {
1047
- return !Number.isInteger(e) || !Number.isInteger(t) ? null : Dr(e)[t] ?? null;
1048
- }
1049
- function kr() {
1050
- tn.value = null, nn.value = null, N.value = "pointer", j.value = !1, Q.value = null;
1051
- }
1052
- function Ar(e) {
1053
- if (!e || !I.value) return;
1054
- let t = I.value.getBoundingClientRect();
1055
- rn.value = {
1056
- x: t.left + e.x / z.value * t.width,
1057
- y: t.top + e.y / B.value * t.height
1058
- };
1059
- }
1060
- function jr(e, t) {
1061
- let n = Or(e, t);
1062
- n && (tn.value = e, nn.value = t, N.value = "keyboard", Ar(n), tr({
1063
- datapoint: n,
1064
- seriesIndex: e,
1065
- triggerMode: "keyboard"
1066
- }));
1067
- }
1068
- function Mr() {
1069
- an.value = !0, tn.value = null, nn.value = null;
1070
- }
1071
- function Nr() {
1072
- an.value = !1, kr();
1073
- }
1074
- function Pr(e) {
1075
- if (!I.value || fr.value || document.activeElement !== I.value || !Er()) return;
1076
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1077
- if (!t && !n && !r && !i && !a && !o) return;
1078
- if (e.preventDefault(), e.stopPropagation(), o) {
1079
- kr();
1080
- return;
1081
- }
1082
- let s = tn.value, c = nn.value;
1083
- if (s === null || c === null) s = 0, c = 0;
1084
- else if (t || n) {
1085
- let e = Er();
1086
- s = n ? (s + 1) % e : (s - 1 + e) % e;
1087
- let t = Dr(s);
1088
- if (!t.length) return;
1089
- c = Math.min(c, t.length - 1);
1090
- } else if (r || i) {
1091
- let e = Dr(s);
1092
- if (!e.length) return;
1093
- c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
1094
- }
1095
- if (a) {
1096
- let e = Or();
1097
- if (!e) return;
1098
- $n({
1099
- datapoint: e,
1100
- seriesIndex: tn.value
1101
- });
1102
- return;
1103
- }
1104
- jr(s, c);
1105
- }
1106
- let Fr = f(() => ({
1107
- headers: or.value?.colNames ?? [],
1108
- rows: or.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
1109
- }));
1110
- return ke({
1111
- getData: cr,
1112
- getImage: mr,
1113
- generatePdf: xn,
1114
- generateCsv: ar,
1115
- generateImage: Sn,
1116
- generateSvg: Cr,
1117
- toggleTable: lr,
1118
- toggleLabels: ur,
1119
- toggleTooltip: dr,
1120
- toggleAnnotator: pr,
1121
- toggleFullscreen: sr,
1122
- copyAlt: Tr
1123
- }), (e, t) => (S(), h("div", {
1124
- ref_key: "stripPlotChart",
1125
- ref: M,
1126
- class: y(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1127
- style: x(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor};${P.value.responsive ? "height:100%" : ""}`),
1128
- id: `strip-plot_${A.value}`,
1129
- onMouseenter: t[2] ||= () => D(pn)(!0),
1130
- onMouseleave: t[3] ||= () => D(pn)(!1)
1131
- }, [
1132
- g("div", {
1133
- id: `chart-instructions-${A.value}`,
1134
- class: "sr-only"
1135
- }, [g("p", null, E(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
1136
- Fr.value?.rows?.length ? (S(), p(Ne, {
1137
- key: 0,
1138
- uid: A.value,
1139
- head: Fr.value.headers,
1140
- body: Fr.value.rows,
1141
- notice: P.value.a11y.translations.tableAvailable,
1142
- caption: P.value.a11y.translations.tableCaption
1143
- }, null, 8, [
1144
- "uid",
1145
- "head",
1146
- "body",
1147
- "notice",
1148
- "caption"
1149
- ])) : m("", !0),
1150
- P.value.userOptions.buttons.annotator ? (S(), p(D(Mt), {
1151
- key: 1,
1152
- svgRef: D(I),
1153
- backgroundColor: P.value.style.chart.backgroundColor,
1154
- color: P.value.style.chart.color,
1155
- active: fr.value,
1156
- isCursorPointer: F.value,
1157
- palette: P.value.userOptions.annotatorPalette,
1158
- onClose: pr
1159
- }, {
1160
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1161
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
1162
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
1163
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
1164
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
1165
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
1166
- _: 3
1167
- }, 8, [
1168
- "svgRef",
1169
- "backgroundColor",
1170
- "color",
1171
- "active",
1172
- "isCursorPointer",
1173
- "palette"
1174
- ])) : m("", !0),
1175
- Cn.value ? (S(), h("div", {
1176
- key: 2,
1177
- ref_key: "noTitle",
1178
- ref: Gt,
1179
- class: "vue-data-ui-no-title-space",
1180
- style: "height:36px; width: 100%;background:transparent"
1181
- }, null, 512)) : m("", !0),
1182
- P.value.style.chart.title.text ? (S(), h("div", {
1183
- key: 3,
1184
- ref_key: "chartTitle",
1185
- ref: Ut,
1186
- style: "width:100%;background:transparent;padding-bottom:24px"
1187
- }, [(S(), p(De, {
1188
- key: `title_${qt.value}`,
1189
- config: {
1190
- title: {
1191
- cy: "donut-div-title",
1192
- ...P.value.style.chart.title
1193
- },
1194
- subtitle: {
1195
- cy: "donut-div-subtitle",
1196
- ...P.value.style.chart.title.subtitle
1197
- }
1198
- }
1199
- }, null, 8, ["config"]))], 512)) : m("", !0),
1200
- P.value.userOptions.show && Bt.value && (D(mn) || D(fn)) ? (S(), p(D(jt), {
1201
- ref_key: "userOptionsRef",
1202
- ref: Xt,
1203
- key: `user_option_${Vt.value}`,
1204
- backgroundColor: P.value.style.chart.backgroundColor,
1205
- color: P.value.style.chart.color,
1206
- isPrinting: D(yn),
1207
- isImaging: D(bn),
1208
- uid: A.value,
1209
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
1210
- hasPdf: P.value.userOptions.buttons.pdf,
1211
- hasXls: P.value.userOptions.buttons.csv,
1212
- hasImg: P.value.userOptions.buttons.img,
1213
- hasSvg: P.value.userOptions.buttons.svg,
1214
- hasTable: P.value.userOptions.buttons.table,
1215
- hasLabel: P.value.userOptions.buttons.labels && P.value.type !== "violin",
1216
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
1217
- hasAltCopy: P.value.userOptions.buttons.altCopy,
1218
- isTooltip: V.value.showTooltip,
1219
- isFullscreen: $.value,
1220
- titles: { ...P.value.userOptions.buttonTitles },
1221
- chartElement: M.value,
1222
- position: P.value.userOptions.position,
1223
- hasAnnotator: P.value.userOptions.buttons.annotator,
1224
- isAnnotation: fr.value,
1225
- callbacks: P.value.userOptions.callbacks,
1226
- printScale: P.value.userOptions.print.scale,
1227
- tableDialog: P.value.table.useDialog,
1228
- isCursorPointer: F.value,
1229
- onToggleFullscreen: sr,
1230
- onGeneratePdf: D(xn),
1231
- onGenerateCsv: ar,
1232
- onGenerateImage: D(wr),
1233
- onGenerateSvg: D(Cr),
1234
- onToggleTable: lr,
1235
- onToggleLabels: ur,
1236
- onToggleTooltip: dr,
1237
- onToggleAnnotator: pr,
1238
- onCopyAlt: Tr,
1239
- style: x({ visibility: D(mn) ? D(fn) ? "visible" : "hidden" : "visible" })
1240
- }, Le({ _: 2 }, [
1241
- e.$slots.menuIcon ? {
1242
- name: "menuIcon",
1243
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
1244
- isOpen: t,
1245
- color: n
1246
- })), void 0, !0)]),
1247
- key: "0"
1248
- } : void 0,
1249
- e.$slots.optionTooltip ? {
1250
- name: "optionTooltip",
1251
- fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1252
- key: "1"
1253
- } : void 0,
1254
- e.$slots.optionPdf ? {
1255
- name: "optionPdf",
1256
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1257
- key: "2"
1258
- } : void 0,
1259
- e.$slots.optionCsv ? {
1260
- name: "optionCsv",
1261
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1262
- key: "3"
1263
- } : void 0,
1264
- e.$slots.optionImg ? {
1265
- name: "optionImg",
1266
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1267
- key: "4"
1268
- } : void 0,
1269
- e.$slots.optionSvg ? {
1270
- name: "optionSvg",
1271
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1272
- key: "5"
1273
- } : void 0,
1274
- e.$slots.optionTable ? {
1275
- name: "optionTable",
1276
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1277
- key: "6"
1278
- } : void 0,
1279
- e.$slots.optionLabels ? {
1280
- name: "optionLabels",
1281
- fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
1282
- key: "7"
1283
- } : void 0,
1284
- e.$slots.optionFullscreen ? {
1285
- name: "optionFullscreen",
1286
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
1287
- toggleFullscreen: t,
1288
- isFullscreen: n
1289
- })), void 0, !0)]),
1290
- key: "8"
1291
- } : void 0,
1292
- e.$slots.optionAnnotator ? {
1293
- name: "optionAnnotator",
1294
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
1295
- toggleAnnotator: t,
1296
- isAnnotator: n
1297
- })), void 0, !0)]),
1298
- key: "9"
1299
- } : void 0,
1300
- e.$slots.optionAltCopy ? {
1301
- name: "optionAltCopy",
1302
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1303
- key: "10"
1304
- } : void 0,
1305
- e.$slots["custom-menu-before"] ? {
1306
- name: "custom-menu-before",
1307
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1308
- key: "11"
1309
- } : void 0,
1310
- e.$slots["custom-menu-after"] ? {
1311
- name: "custom-menu-after",
1312
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1313
- key: "12"
1314
- } : void 0
1315
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
1316
- g("div", Qe, [(S(), h("svg", {
1317
- ref_key: "svgRef",
1318
- ref: I,
1319
- xmlns: D(fe),
1320
- class: y({
1321
- "vue-data-ui-fullscreen--on": $.value,
1322
- "vue-data-ui-fulscreen--off": !$.value,
1323
- "vue-data-ui-no-transition": !D(on)
1324
- }),
1325
- viewBox: `0 0 ${z.value} ${B.value}`,
1326
- style: x(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color};`),
1327
- "aria-describedby": `chart-instructions-${A.value}`,
1328
- tabindex: "0",
1329
- onFocus: Mr,
1330
- onBlur: Nr,
1331
- onKeydown: Pr
1332
- }, [
1333
- ze(D(Nt)),
1334
- e.$slots["chart-background"] ? (S(), h("foreignObject", {
1335
- key: 0,
1336
- x: W.value.left,
1337
- y: W.value.top,
1338
- width: Math.max(.1, W.value.width),
1339
- height: Math.max(.1, W.value.height),
1340
- style: { pointerEvents: "none" }
1341
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
1342
- P.value.style.chart.grid.show ? (S(), h("g", tt, [
1343
- P.value.style.chart.grid.horizontalGrid.show ? (S(), h("g", nt, [(S(!0), h(d, null, w(Xn.value, (e) => (S(), h("line", {
1344
- x1: e.x1,
1345
- x2: e.x2,
1346
- y1: e.y,
1347
- y2: e.y,
1348
- stroke: P.value.style.chart.grid.horizontalGrid.stroke,
1349
- "stroke-width": P.value.style.chart.grid.horizontalGrid.strokeWidth,
1350
- "stroke-dasharray": P.value.style.chart.grid.horizontalGrid.strokeDasharray,
1351
- "stroke-linecap": "round"
1352
- }, null, 8, rt))), 256))])) : m("", !0),
1353
- P.value.style.chart.grid.verticalGrid.show ? (S(), h("g", it, [(S(!0), h(d, null, w(K.value, (e, t) => (S(), h("line", {
1354
- x1: W.value.left + (t + 1) * W.value.stripWidth,
1355
- x2: W.value.left + (t + 1) * W.value.stripWidth,
1356
- y1: W.value.top,
1357
- y2: W.value.bottom,
1358
- stroke: P.value.style.chart.grid.verticalGrid.stroke,
1359
- "stroke-width": P.value.style.chart.grid.verticalGrid.strokeWidth,
1360
- "stroke-dasharray": P.value.style.chart.grid.verticalGrid.strokeDasharray,
1361
- "stroke-linecap": "round"
1362
- }, null, 8, at))), 256))])) : m("", !0),
1363
- g("line", {
1364
- x1: W.value.left,
1365
- x2: W.value.left,
1366
- y1: W.value.top,
1367
- y2: W.value.bottom,
1368
- stroke: P.value.style.chart.grid.stroke,
1369
- "stroke-width": P.value.style.chart.grid.strokeWidth,
1370
- "stroke-linecap": "round"
1371
- }, null, 8, ot),
1372
- g("line", {
1373
- x1: W.value.left,
1374
- x2: W.value.right,
1375
- y1: W.value.bottom,
1376
- y2: W.value.bottom,
1377
- stroke: P.value.style.chart.grid.stroke,
1378
- "stroke-width": P.value.style.chart.grid.strokeWidth,
1379
- "stroke-linecap": "round"
1380
- }, null, 8, st)
1381
- ])) : m("", !0),
1382
- P.value.style.chart.labels.yAxisLabels.show ? (S(), h("g", {
1383
- key: 2,
1384
- ref_key: "scaleLabels",
1385
- ref: en
1386
- }, [(S(!0), h(d, null, w(Xn.value, (e, t) => (S(), h("text", {
1387
- class: y({ "vue-data-ui-transition": D(on) }),
1388
- key: `sl_${t}`,
1389
- transform: `translate(${e.x1 + P.value.style.chart.labels.yAxisLabels.offsetX - 5}, ${e.y + P.value.style.chart.labels.yAxisLabels.fontSize / 3})`,
1390
- fill: P.value.style.chart.labels.yAxisLabels.color,
1391
- "font-size": P.value.style.chart.labels.yAxisLabels.fontSize,
1392
- "text-anchor": "end"
1393
- }, E(D(se)(P.value.style.chart.labels.formatter, e.value, D(c)({
1394
- p: P.value.style.chart.labels.prefix,
1395
- v: e.value,
1396
- s: P.value.style.chart.labels.suffix,
1397
- r: P.value.style.chart.labels.yAxisLabels.rounding
1398
- }), {
1399
- datapoint: e,
1400
- seriesIndex: t
1401
- })), 11, ct))), 128))], 512)) : m("", !0),
1402
- P.value.style.chart.labels.xAxisLabels.show ? (S(), h("g", {
1403
- key: 3,
1404
- ref_key: "timeLabelsEls",
1405
- ref: $t
1406
- }, [(S(!0), h(d, null, w(hr.value, (e, t) => (S(), h("g", null, [String(e).includes("\n") ? (S(), h("text", {
1407
- key: 1,
1408
- class: "vue-ui-strip-plot-category-name",
1409
- transform: `translate(${W.value.left + (t + 1) * W.value.stripWidth - W.value.stripWidth / 2}, ${W.value.bottom + P.value.style.chart.labels.xAxisLabels.fontSize * 2 + P.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${P.value.style.chart.labels.xAxisLabels.rotation})`,
1410
- "font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
1411
- fill: P.value.style.chart.labels.xAxisLabels.color,
1412
- "text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
1413
- innerHTML: D(i)({
1414
- content: D(ae)(String(e)),
1415
- fontSize: P.value.style.chart.labels.xAxisLabels.fontSize,
1416
- fill: P.value.style.chart.labels.xAxisLabels.color,
1417
- x: 0,
1418
- y: 0
1419
- })
1420
- }, null, 8, ut)) : (S(), h("text", {
1421
- key: 0,
1422
- class: "vue-ui-strip-plot-category-name",
1423
- transform: `translate(${W.value.left + (t + 1) * W.value.stripWidth - W.value.stripWidth / 2}, ${W.value.bottom + P.value.style.chart.labels.xAxisLabels.fontSize * 2 + P.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${P.value.style.chart.labels.xAxisLabels.rotation})`,
1424
- "font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
1425
- fill: P.value.style.chart.labels.xAxisLabels.color,
1426
- "text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
1427
- }, E(String(e)), 9, lt))]))), 256))], 512)) : m("", !0),
1428
- P.value.style.chart.labels.axis.yLabel ? (S(), h("text", {
1429
- key: 4,
1430
- ref_key: "yAxisLabel",
1431
- ref: Qt,
1432
- fill: P.value.style.chart.labels.axis.color,
1433
- "font-size": P.value.style.chart.labels.axis.fontSize,
1434
- transform: `translate(${P.value.style.chart.labels.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1435
- "text-anchor": "middle"
1436
- }, E(P.value.style.chart.labels.axis.yLabel), 9, dt)) : m("", !0),
1437
- P.value.style.chart.labels.axis.xLabel ? (S(), h("text", {
1438
- key: 5,
1439
- ref_key: "xAxisLabel",
1440
- ref: Zt,
1441
- fill: P.value.style.chart.labels.axis.color,
1442
- "font-size": P.value.style.chart.labels.axis.fontSize,
1443
- x: W.value.left + W.value.width / 2,
1444
- y: B.value - P.value.style.chart.labels.axis.fontSize / 3,
1445
- "text-anchor": "middle"
1446
- }, E(P.value.style.chart.labels.axis.xLabel), 9, ft)) : m("", !0),
1447
- Q.value ? (S(), h(d, { key: 6 }, [
1448
- g("line", {
1449
- x1: W.value.left,
1450
- x2: W.value.right,
1451
- y1: Q.value.y,
1452
- y2: Q.value.y,
1453
- stroke: Q.value.color,
1454
- "stroke-width": 1,
1455
- class: y({ "select-circle": P.value.useCssAnimation })
1456
- }, null, 10, pt),
1457
- g("circle", {
1458
- cx: W.value.left,
1459
- cy: Q.value.y,
1460
- r: 3,
1461
- fill: Q.value.color,
1462
- class: y({ "select-circle": P.value.useCssAnimation })
1463
- }, null, 10, mt),
1464
- g("circle", {
1465
- cx: W.value.right,
1466
- cy: Q.value.y,
1467
- r: 3,
1468
- fill: Q.value.color,
1469
- class: y({ "select-circle": P.value.useCssAnimation })
1470
- }, null, 10, ht)
1471
- ], 64)) : m("", !0),
1472
- g("defs", null, [(S(!0), h(d, null, w(K.value, (e) => (S(), p(Me, {
1473
- t: "radial",
1474
- id: e.id,
1475
- key: `r_${e.id}`,
1476
- fy: "30%",
1477
- stops: [
1478
- [
1479
- "10%",
1480
- D(ce)(e.color, P.value.style.chart.plots.gradient.intensity / 100),
1481
- 1
1482
- ],
1483
- [
1484
- "90%",
1485
- D(l)(e.color, .1),
1486
- 1
1487
- ],
1488
- [
1489
- "100%",
1490
- e.color,
1491
- 1
1492
- ]
1493
- ]
1494
- }, null, 8, ["id", "stops"]))), 128))]),
1495
- (S(!0), h(d, null, w(Hn.value, (e, n) => (S(), h(d, { key: e.id }, [e.path ? (S(), h("path", {
1496
- key: 0,
1497
- d: e.path,
1498
- fill: e.fill,
1499
- stroke: e.color,
1500
- "fill-opacity": P.value.style.chart.violin.opacity,
1501
- "stroke-opacity": P.value.style.chart.violin.strokeOpacity,
1502
- "stroke-width": P.value.style.chart.violin.strokeWidth,
1503
- style: x({
1504
- pointerEvents: Y.value ? "auto" : "none",
1505
- cursor: Y.value && F.value ? "pointer" : "default"
1506
- }),
1507
- onMouseenter: (e) => Y.value && X.value[n] && rr({
1508
- boxPlot: X.value[n],
1509
- seriesIndex: n,
1510
- triggerMode: "pointer"
1511
- }),
1512
- onMouseleave: t[0] ||= (e) => Y.value && nr()
1513
- }, null, 44, gt)) : m("", !0), (S(!0), h(d, null, w(e.connectors, (t, n) => (S(), h("line", {
1514
- key: `violin_connector_${e.id}_${n}`,
1515
- x1: t.x,
1516
- x2: t.x,
1517
- y1: t.y1,
1518
- y2: t.y2,
1519
- stroke: e.color,
1520
- "stroke-opacity": P.value.style.chart.violin.strokeOpacity,
1521
- "stroke-width": P.value.style.chart.violin.strokeWidth,
1522
- "stroke-linecap": "round",
1523
- style: { "pointer-events": "none" }
1524
- }, null, 8, _t))), 128))], 64))), 128)),
1525
- (S(!0), h(d, null, w(X.value, (e, t) => (S(), h("g", {
1526
- key: `boxplot_${e.id}`,
1527
- style: x({ cursor: F.value ? "pointer" : "default" }),
1528
- onMouseenter: (n) => rr({
1529
- boxPlot: e,
1530
- seriesIndex: t,
1531
- triggerMode: "pointer"
1532
- }),
1533
- onMouseleave: nr
1534
- }, [
1535
- g("line", {
1536
- x1: e.centerX,
1537
- x2: e.centerX,
1538
- y1: e.upperY,
1539
- y2: e.lowerY,
1540
- stroke: D(l)(e.boxPlotColor, .2),
1541
- "stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
1542
- "stroke-linecap": "round"
1543
- }, null, 8, yt),
1544
- g("rect", {
1545
- x: e.boxLeft,
1546
- y: Math.min(e.q1Y, e.q3Y),
1547
- width: e.boxWidth,
1548
- height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
1549
- fill: e.boxPlotColor,
1550
- stroke: D(l)(e.boxPlotColor, .2),
1551
- "stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
1552
- rx: e.boxWidth / 20
1553
- }, null, 8, bt),
1554
- g("circle", {
1555
- cx: e.boxLeft + e.boxWidth / 2,
1556
- cy: e.medianY,
1557
- r: e.boxWidth / 3 * Math.min(1, P.value.style.chart.violin.boxPlot.medianCircleRadiusRatio),
1558
- fill: P.value.style.chart.violin.boxPlot.medianCircleFill,
1559
- stroke: D(l)(e.boxPlotColor, .2)
1560
- }, null, 8, xt)
1561
- ], 44, vt))), 128)),
1562
- (S(!0), h(d, null, w(J.value, (t, n) => (S(), h(d, null, [Y.value ? m("", !0) : (S(!0), h(d, { key: 0 }, w(t.plots, (n, r) => (S(), p(Oe, Be({ ref_for: !0 }, e.$attrs, {
1563
- plot: {
1564
- x: n.x,
1565
- y: Kt.value ? n.y : W.value.top
1566
- },
1567
- radius: Q.value && Q.value.id === n.id ? H.value * 1.5 : H.value,
1568
- shape: P.value.style.chart.plots.shape,
1569
- stroke: P.value.style.chart.plots.stroke,
1570
- strokeWidth: P.value.style.chart.plots.strokeWidth,
1571
- color: P.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
1572
- style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : P.value.style.chart.plots.opacity};${Tn.value ? `transition-delay:${r * 50}ms` : ""}`,
1573
- class: {
1574
- "vue-ui-strip-plot-animated": P.value.useCssAnimation && Tn.value && !D(ln),
1575
- "vue-ui-strip-plot-select-circle": P.value.useCssAnimation && !Tn.value
1576
- },
1577
- onMouseenter: (e) => tr({
1578
- datapoint: n,
1579
- seriesIndex: r,
1580
- triggerMode: "pointer"
1581
- }),
1582
- onMouseleave: (e) => Qn({
1583
- datapoint: n,
1584
- seriesIndex: r
1585
- }),
1586
- onClick: (e) => $n({
1587
- datapoint: n,
1588
- seriesIndex: r
1589
- })
1590
- }), null, 16, [
1591
- "plot",
1592
- "radius",
1593
- "shape",
1594
- "stroke",
1595
- "strokeWidth",
1596
- "color",
1597
- "style",
1598
- "class",
1599
- "onMouseenter",
1600
- "onMouseleave",
1601
- "onClick"
1602
- ]))), 256)), V.value.dataLabels.show && !Y.value ? (S(), h("g", St, [(S(!0), h(d, null, w(t.plots, (e, n) => (S(), h(d, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !V.value.showTooltip ? (S(), h("text", {
1603
- key: 0,
1604
- x: e.x,
1605
- y: e.y + P.value.style.chart.labels.bestPlotLabel.offsetY - H.value * (Q.value && Q.value.id === e.id && !V.value.showTooltip ? 2 : 1.5),
1606
- "font-size": P.value.style.chart.labels.bestPlotLabel.fontSize,
1607
- fill: P.value.style.chart.labels.bestPlotLabel.color,
1608
- "text-anchor": "middle",
1609
- style: x(`opacity:${P.value.useCssAnimation ? +!Tn.value : 1};transition:opacity 0.2s ease-in;`)
1610
- }, E(e.name) + " " + E(P.value.style.chart.labels.bestPlotLabel.showValue ? D(se)(P.value.style.chart.labels.formatter, e.value, D(c)({
1611
- p: `(${P.value.style.chart.labels.prefix}`,
1612
- v: e.value,
1613
- s: `${P.value.style.chart.labels.suffix})`,
1614
- r: P.value.style.chart.labels.bestPlotLabel.rounding
1615
- }), {
1616
- datapoint: e,
1617
- seriesIndex: n
1618
- }) : ""), 13, Ct)) : m("", !0)], 64))), 256))])) : m("", !0)], 64))), 256)),
1619
- T(e.$slots, "svg", { svg: {
1620
- ...W.value,
1621
- isPrintingImg: D(yn) || D(bn) || D(xr),
1622
- isPrintingSvg: D(Sr),
1623
- boxPlotSummaries: X.value,
1624
- series: K.value
1625
- } }, void 0, !0)
1626
- ], 46, $e)), e.$slots.hint ? (S(), h("div", wt, [T(e.$slots, "hint", b(v({
1627
- hint: P.value.a11y.translations.keyboardNavigation,
1628
- isVisible: an.value
1629
- })), void 0, !0)])) : m("", !0)]),
1630
- e.$slots.watermark ? (S(), h("div", Tt, [T(e.$slots, "watermark", b(v({ isPrinting: D(yn) || D(bn) || D(xr) || D(Sr) })), void 0, !0)])) : m("", !0),
1631
- e.$slots.source ? (S(), h("div", {
1632
- key: 6,
1633
- ref_key: "source",
1634
- ref: Wt,
1635
- dir: "auto"
1636
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1637
- ze(D(Dt), {
1638
- teleportTo: P.value.style.chart.tooltip.teleportTo,
1639
- show: V.value.showTooltip && j.value,
1640
- backgroundColor: P.value.style.chart.tooltip.backgroundColor,
1641
- color: P.value.style.chart.tooltip.color,
1642
- borderRadius: P.value.style.chart.tooltip.borderRadius,
1643
- borderColor: P.value.style.chart.tooltip.borderColor,
1644
- borderWidth: P.value.style.chart.tooltip.borderWidth,
1645
- fontSize: P.value.style.chart.tooltip.fontSize,
1646
- backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
1647
- position: P.value.style.chart.tooltip.position,
1648
- offsetX: P.value.style.chart.tooltip.offsetX,
1649
- offsetY: P.value.style.chart.tooltip.offsetY,
1650
- parent: M.value,
1651
- content: Ht.value,
1652
- isFullscreen: $.value,
1653
- isCustom: D(n)(P.value.style.chart.tooltip.customFormat),
1654
- smooth: P.value.style.chart.tooltip.smooth,
1655
- backdropFilter: P.value.style.chart.tooltip.backdropFilter,
1656
- smoothForce: P.value.style.chart.tooltip.smoothForce,
1657
- smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
1658
- isA11yMode: N.value === "keyboard",
1659
- a11yPosition: rn.value
1660
- }, {
1661
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...Zn.value })), void 0, !0)]),
1662
- tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...Zn.value })), void 0, !0)]),
1663
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...Zn.value })), void 0, !0)]),
1664
- _: 3
1665
- }, 8, [
1666
- "teleportTo",
1667
- "show",
1668
- "backgroundColor",
1669
- "color",
1670
- "borderRadius",
1671
- "borderColor",
1672
- "borderWidth",
1673
- "fontSize",
1674
- "backgroundOpacity",
1675
- "position",
1676
- "offsetX",
1677
- "offsetY",
1678
- "parent",
1679
- "content",
1680
- "isFullscreen",
1681
- "isCustom",
1682
- "smooth",
1683
- "backdropFilter",
1684
- "smoothForce",
1685
- "smoothSnapThreshold",
1686
- "isA11yMode",
1687
- "a11yPosition"
1688
- ]),
1689
- Bt.value && P.value.userOptions.buttons.table ? (S(), p(We(_r.value.component), Be({ key: 7 }, _r.value.props, {
1690
- ref_key: "tableUnit",
1691
- ref: Yt,
1692
- onClose: vr
1693
- }), Le({
1694
- content: O(() => [(S(), p(D(At), {
1695
- key: `table_${Jt.value}`,
1696
- colNames: or.value.colNames,
1697
- head: or.value.head,
1698
- body: or.value.body,
1699
- config: or.value.config,
1700
- title: P.value.table.useDialog ? "" : _r.value.title,
1701
- withCloseButton: !P.value.table.useDialog,
1702
- isCursorPointer: F.value,
1703
- onClose: vr
1704
- }, {
1705
- th: O(({ th: e }) => [g("div", Et, E(e), 1)]),
1706
- td: O(({ td: e }) => [Re(E(e.name || e), 1)]),
1707
- _: 1
1708
- }, 8, [
1709
- "colNames",
1710
- "head",
1711
- "body",
1712
- "config",
1713
- "title",
1714
- "withCloseButton",
1715
- "isCursorPointer"
1716
- ]))]),
1717
- _: 2
1718
- }, [P.value.table.useDialog ? {
1719
- name: "title",
1720
- fn: O(() => [Re(E(_r.value.title), 1)]),
1721
- key: "0"
1722
- } : void 0, P.value.table.useDialog ? {
1723
- name: "actions",
1724
- fn: O(() => [g("button", {
1725
- tabindex: "0",
1726
- class: "vue-ui-user-options-button",
1727
- onClick: t[1] ||= (e) => ar(P.value.userOptions.callbacks.csv),
1728
- style: x({ cursor: F.value ? "pointer" : "default" })
1729
- }, [ze(D(Ot), {
1730
- name: "fileCsv",
1731
- stroke: _r.value.props.color
1732
- }, null, 8, ["stroke"])], 4)]),
1733
- key: "1"
1734
- } : void 0]), 1040)) : m("", !0),
1735
- T(e.$slots, "skeleton", {}, () => [D(ln) ? (S(), p(be, { key: 0 })) : m("", !0)], !0)
1736
- ], 46, Xe));
1737
- }
1738
- }, [["__scopeId", "data-v-5783717c"]]);
1739
- //#endregion
1740
- export { Ye as n, Dt as t };