vue-data-ui 3.23.0 → 3.23.2

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