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
@@ -1,1757 +0,0 @@
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-BuMGJ_a0.js";
3
- import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
- import { t as he } from "./useConfig-BilxnBNr.js";
5
- import { t as ge } from "./usePrinter-BFvi4jVy.js";
6
- import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as ye } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as be } from "./useNestedProp--NSEmhOH.js";
9
- import { t as xe } from "./useThemeCheck-C43Tcqmk.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-DIQG5q8T.js";
13
- import { n as Te } from "./Title-BODtwViI.js";
14
- import { t as Ee } from "./Shape-BPMV94Ij.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 Be, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ve, onMounted as He, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as E, toRefs as Ge, unref as D, watch as Ke, watchEffect as qe, withCtx as O } from "vue";
23
- //#region src/components/vue-ui-strip-plot.vue
24
- var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
25
- "xmlns",
26
- "viewBox",
27
- "aria-describedby"
28
- ], $e = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], et = { key: 1 }, tt = { key: 0 }, nt = [
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2",
38
- "stroke",
39
- "stroke-width",
40
- "stroke-dasharray"
41
- ], rt = { key: 1 }, it = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width",
48
- "stroke-dasharray"
49
- ], at = [
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2",
54
- "stroke",
55
- "stroke-width"
56
- ], ot = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], st = [
64
- "transform",
65
- "fill",
66
- "font-size"
67
- ], ct = [
68
- "transform",
69
- "font-size",
70
- "fill",
71
- "text-anchor"
72
- ], lt = [
73
- "transform",
74
- "font-size",
75
- "fill",
76
- "text-anchor",
77
- "innerHTML"
78
- ], ut = [
79
- "fill",
80
- "font-size",
81
- "transform"
82
- ], dt = [
83
- "fill",
84
- "font-size",
85
- "x",
86
- "y"
87
- ], ft = [
88
- "x1",
89
- "x2",
90
- "y1",
91
- "y2",
92
- "stroke"
93
- ], pt = [
94
- "cx",
95
- "cy",
96
- "fill"
97
- ], mt = [
98
- "cx",
99
- "cy",
100
- "fill"
101
- ], ht = [
102
- "d",
103
- "fill",
104
- "stroke",
105
- "fill-opacity",
106
- "stroke-opacity",
107
- "stroke-width",
108
- "onMouseenter"
109
- ], gt = [
110
- "x1",
111
- "x2",
112
- "y1",
113
- "y2",
114
- "stroke",
115
- "stroke-opacity",
116
- "stroke-width"
117
- ], _t = ["onMouseenter"], vt = [
118
- "x1",
119
- "x2",
120
- "y1",
121
- "y2",
122
- "stroke",
123
- "stroke-width"
124
- ], yt = [
125
- "x",
126
- "y",
127
- "width",
128
- "height",
129
- "fill",
130
- "stroke",
131
- "stroke-width",
132
- "rx"
133
- ], bt = [
134
- "cx",
135
- "cy",
136
- "r",
137
- "fill",
138
- "stroke"
139
- ], xt = { key: 1 }, St = [
140
- "x",
141
- "y",
142
- "font-size",
143
- "fill"
144
- ], Ct = {
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
- }, wt = {
155
- key: 5,
156
- class: "vue-data-ui-watermark"
157
- }, Tt = ["innerHTML"], Et = /*#__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: Je }) {
175
- let Et = v(() => import("./Tooltip-CMTGxeYO.js")), Dt = v(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Ot = v(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), kt = v(() => import("./DataTable-D4tM9s5Y.js")), At = v(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), jt = v(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Mt = v(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Nt = v(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), Pt = [
176
- "classic",
177
- "scatter",
178
- "violin"
179
- ], { vue_ui_strip_plot: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), k = e, Rt = Je, zt = p({
180
- get() {
181
- return !!k.dataset && k.dataset.length;
182
- },
183
- set(e) {
184
- return e;
185
- }
186
- }), A = C(se()), Bt = C(0), j = C(!1), Vt = C(""), M = C(null), Ht = C(null), Ut = C(null), Wt = C(null), Gt = C(!1), Kt = C(0), qt = C(0), Jt = C(null), Yt = C(null), Xt = C(!1), Zt = C(!1), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = C(null), rn = C(null), N = C("pointer"), an = C({
187
- x: 0,
188
- y: 0
189
- }), on = C(!1), P = C(gn());
190
- pe({
191
- config: () => P.value,
192
- dataset: () => k.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: sn } = Se({
206
- config: () => P.value.transitions,
207
- dataset: () => k.dataset
208
- }), cn = p(() => _n(P.value.type)), F = p(() => P.value.userOptions.useCursorPointer), ln = 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: P.value.skeletonConfig ?? {}
238
- })), { loading: un, FINAL_DATASET: dn, manualLoading: fn } = _e({
239
- ...Ge(k),
240
- FINAL_CONFIG: P,
241
- prepareConfig: gn,
242
- skeletonDataset: k.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: P.value,
336
- userConfig: ln.value
337
- })
338
- }), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: P.value }), { svgRef: I } = Ne({ config: P.value.style.chart.title });
339
- function gn() {
340
- let e = be({
341
- userConfig: k.config,
342
- defaultConfig: Ft
343
- }), t = e.theme;
344
- if (!t) return e;
345
- if (!It.value(e)) return Lt(e), e;
346
- let n = be({
347
- userConfig: Pe[t] || k.config,
348
- defaultConfig: e
349
- }), r = be({
350
- userConfig: k.config,
351
- defaultConfig: n
352
- });
353
- return {
354
- ...r,
355
- customPalette: r.customPalette.length ? r.customPalette : a[t] || s
356
- };
357
- }
358
- function _n(e) {
359
- return Pt.includes(e) ? e : "classic";
360
- }
361
- Ke(() => k.config, async (e) => {
362
- un.value || (P.value = gn()), pn.value = !P.value.userOptions.showOnChartHover, yn(), Kt.value += 1, qt.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, kn.value = P.value.style.chart.plots.radius;
363
- }, { deep: !0 }), Ke(() => k.dataset, (e) => {
364
- Array.isArray(e) && e.length > 0 && (fn.value = !1);
365
- }, { deep: !0 });
366
- let L = We(null), R = We(null);
367
- He(() => {
368
- yn();
369
- });
370
- let vn = p(() => !!P.value.debug);
371
- function yn() {
372
- if (ae(k.dataset) ? (ue({
373
- componentName: "VueUiStripPlot",
374
- type: "dataset",
375
- debug: vn.value
376
- }), fn.value = !0) : k.dataset.forEach((e, t) => {
377
- oe({
378
- datasetObject: e,
379
- requiredAttributes: ["name", "plots"]
380
- }).forEach((e) => {
381
- zt.value = !1, ue({
382
- componentName: "VueUiStripPlot",
383
- type: "datasetSerieAttribute",
384
- property: e,
385
- index: t,
386
- debug: vn.value
387
- });
388
- }), e.plots && e.plots.forEach((e, n) => {
389
- oe({
390
- datasetObject: e,
391
- requiredAttributes: ["name", "value"]
392
- }).forEach((e) => {
393
- zt.value = !1, ue({
394
- componentName: "VueUiStripPlot",
395
- type: "datasetSerieAttribute",
396
- property: e,
397
- index: `${t},${n}`,
398
- debug: vn.value
399
- });
400
- });
401
- });
402
- }), ae(k.dataset) || (fn.value = P.value.loading), P.value.responsive) {
403
- let e = Oe(() => {
404
- let { width: e, height: t } = ke({
405
- chart: M.value,
406
- title: P.value.style.chart.title.text ? Ht.value : null,
407
- source: Ut.value,
408
- noTitle: Wt.value
409
- });
410
- requestAnimationFrame(() => {
411
- On.value = t, z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12), P.value.responsiveProportionalSizing ? kn.value = ce({
412
- relator: Math.min(t, e),
413
- adjuster: 600,
414
- source: P.value.style.chart.plots.radius,
415
- threshold: 6,
416
- fallback: 6
417
- }) : kn.value = P.value.style.chart.plots.radius;
418
- });
419
- });
420
- 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);
421
- }
422
- Gt.value = !0, setTimeout(() => {
423
- En.value = !1;
424
- }, In.value * 50);
425
- }
426
- Ve(() => {
427
- L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
428
- });
429
- let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = ge({
430
- elementId: `strip-plot_${A.value}`,
431
- fileName: P.value.style.chart.title.text || "vue-ui-strip-plot",
432
- options: P.value.userOptions.print
433
- }), wn = p(() => P.value.userOptions.show && !P.value.style.chart.title.text), Tn = p(() => de(P.value.customPalette)), En = C(P.value.useCssAnimation), Dn = C({
434
- top: P.value.style.chart.padding.top,
435
- bottom: P.value.style.chart.padding.bottom,
436
- left: P.value.style.chart.padding.left,
437
- right: P.value.style.chart.padding.right
438
- }), z = C(P.value.style.chart.width), B = C(P.value.style.chart.height), On = C(P.value.style.chart.height), kn = C(P.value.style.chart.plots.radius), V = C({
439
- showTable: P.value.table.show,
440
- dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
441
- showTooltip: P.value.style.chart.tooltip.show
442
- });
443
- Ke(P, () => {
444
- V.value = {
445
- showTable: P.value.table.show,
446
- dataLabels: { show: P.value.style.chart.labels.bestPlotLabel.show },
447
- showTooltip: P.value.style.chart.tooltip.show
448
- }, z.value = P.value.style.chart.width, B.value = P.value.style.chart.height, kn.value = P.value.style.chart.plots.radius;
449
- }, { immediate: !0 });
450
- let H = p(() => Math.min(kn.value, W.value.stripWidth / 2 * .9));
451
- function U(e) {
452
- return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
453
- }
454
- function An() {
455
- return Math.max(0, (W.value.stripWidth / 2 - H.value * 1.8) * .86) * Math.min(1, P.value.style.chart.violin.widthRatio);
456
- }
457
- function jn() {
458
- let e = 0;
459
- tn.value && (e = Array.from(tn.value.querySelectorAll("text")).reduce((e, t) => {
460
- let n = t.getComputedTextLength();
461
- return n > e ? n : e;
462
- }, 0));
463
- let t = $t.value ? $t.value.getBoundingClientRect().width : 0;
464
- return e + t + (t ? 24 : 0);
465
- }
466
- let Mn = C(0), Nn = Oe((e) => {
467
- Mn.value = e;
468
- }, 100);
469
- qe((e) => {
470
- let t = en.value;
471
- if (!t) return;
472
- let n = new ResizeObserver((e) => {
473
- Nn(e[0].contentRect.height);
474
- });
475
- n.observe(t), e(() => n.disconnect());
476
- }), Ve(() => {
477
- Mn.value = 0;
478
- });
479
- let Pn = p(() => {
480
- let e = 0;
481
- Qt.value && (e = Qt.value.getBBox().height + P.value.style.chart.labels.axis.fontSize / 3 + 12 + P.value.style.chart.labels.axis.xLabelOffsetY);
482
- let t = 0;
483
- return en.value && (t = Mn.value + 12), e + t;
484
- }), W = p(() => {
485
- let e = jn(), t = Dn.value.left + e + P.value.style.chart.labels.axis.yLabelOffsetX + 5, n = z.value - Dn.value.right, r = Math.max(0, n - t), i = Dn.value.top + P.value.style.chart.plots.radius + P.value.style.chart.labels.bestPlotLabel.fontSize, a = B.value - Dn.value.bottom - Pn.value, o = Math.max(0, a - i), s = Array.isArray(dn.value) ? dn.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: B.value
495
- };
496
- });
497
- function Fn(e) {
498
- return W.value.left + (e + 1) * W.value.stripWidth - W.value.stripWidth / 2;
499
- }
500
- let G = p(() => dn.value.map((e, t) => {
501
- let n = se();
502
- return {
503
- ...e,
504
- id: n,
505
- color: e.color ? c(e.color) : Tn.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) : Tn.value[t] || s[t] || s[t % s.length],
514
- id: se()
515
- })).sort((e, t) => e.value - t.value)
516
- };
517
- })), K = p(() => (G.value || []).map((e, t) => ({
518
- ...e,
519
- plots: e.plots.map((e) => ({
520
- ...e,
521
- x: Fn(t)
522
- }))
523
- }))), In = p(() => Math.max(...K.value.map((e) => e.plots.length))), Ln = p(() => {
524
- let e = K.value.flatMap((e) => e.plots.map((e) => e.value));
525
- return {
526
- max: Math.max(...e),
527
- min: Math.min(...e)
528
- };
529
- }), q = p(() => te(Ln.value.min < 0 ? Ln.value.min : 0, Ln.value.max, P.value.style.chart.grid.scaleSteps)), J = p(() => (K.value || []).map((e, t) => {
530
- let n = e.plots.map((e) => ({
531
- ...e,
532
- y: W.value.bottom - (e.value + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min)) * W.value.height
533
- })), r = cn.value === "classic" ? n.map(() => 0) : Hn(n);
534
- return {
535
- ...e,
536
- plots: n.map((e, t) => ({
537
- ...e,
538
- x: e.x + r[t]
539
- }))
540
- };
541
- })), Y = p(() => cn.value === "violin" && !!P.value.style.chart.violin?.boxPlot?.show);
542
- function Rn(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 zn(e) {
549
- let t = q.value.max + Math.abs(q.value.min);
550
- return t ? W.value.bottom - (e + Math.abs(q.value.min)) / t * W.value.height : W.value.bottom;
551
- }
552
- let X = p(() => Y.value ? J.value.map((e, t) => {
553
- 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, l = n.find((e) => e >= s), u = n.slice().reverse().find((e) => e <= c), ee = Fn(t), te = Math.max(H.value * 2.8, Math.min(An() * .32, W.value.stripWidth * .12)) * Math.min(1.5, P.value.style.chart.violin.boxPlot.widthRatio);
554
- return {
555
- id: e.id,
556
- boxPlotColor: P.value.style.chart.violin.boxPlot.useSerieColor ? e.color : P.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: zn(r),
572
- medianY: zn(i),
573
- q3Y: zn(a),
574
- lowerY: zn(l ?? n[0]),
575
- upperY: zn(u ?? n[n.length - 1])
576
- };
577
- }) : []), Bn = p(() => [
578
- P.value.table.columnNames.series,
579
- P.value.style.chart.violin.tooltipLabels.lowerAdjacent,
580
- P.value.style.chart.violin.tooltipLabels.q1,
581
- P.value.style.chart.violin.tooltipLabels.median,
582
- P.value.style.chart.violin.tooltipLabels.q3,
583
- P.value.style.chart.violin.tooltipLabels.upperAdjacent,
584
- P.value.style.chart.violin.tooltipLabels.iqr,
585
- P.value.style.chart.violin.tooltipLabels.count
586
- ]);
587
- function Vn(e) {
588
- return l({
589
- p: P.value.style.chart.labels.prefix,
590
- v: e,
591
- s: P.value.style.chart.labels.suffix,
592
- r: P.value.table.td.roundingValue
593
- });
594
- }
595
- function Hn(e) {
596
- let t = cn.value === "violin" ? Math.max(0, An() - H.value * 1.15) : Math.max(0, W.value.stripWidth / 2 - H.value * 1.5);
597
- if (!e.length || !t) return e.map(() => 0);
598
- let n = e.map(() => 0), r = H.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 Un = p(() => cn.value === "violin" ? J.value.map((e, t) => ({
613
- id: e.id,
614
- color: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.stroke,
615
- fill: P.value.style.chart.violin.useSerieColor ? e.color : P.value.style.chart.violin.fill,
616
- path: Wn(e.plots, t),
617
- connectors: Gn(e.plots, t)
618
- })) : []);
619
- function Wn(e, t) {
620
- let n = An();
621
- if (!e.length || !W.value.height || !n) return "";
622
- let r = Fn(t), i = e.map((e) => e.y), a = Z(i), o = qn({
623
- yValues: i,
624
- bandwidth: a
625
- });
626
- return o.length > 1 ? o.map((e) => Yn({
627
- yValues: e,
628
- centerX: r,
629
- maxWidth: Kn({
630
- clusterLength: e.length,
631
- totalLength: i.length,
632
- maxWidth: n
633
- }),
634
- bandwidth: Z(e)
635
- })).join(" ") : Yn({
636
- yValues: i,
637
- centerX: r,
638
- maxWidth: n,
639
- bandwidth: a
640
- });
641
- }
642
- function Gn(e, t) {
643
- if (!e.length) return [];
644
- let n = Fn(t), r = e.map((e) => e.y), i = qn({
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, W.value.top, W.value.bottom), c = d(Math.min(...e) - o * 2.35, W.value.top, W.value.bottom);
650
- return {
651
- x: U(n),
652
- y1: U(s),
653
- y2: U(c)
654
- };
655
- });
656
- }
657
- function Kn({ clusterLength: e, totalLength: t, maxWidth: n }) {
658
- let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
659
- return Math.max(H.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(H.value * 2.6, W.value.height / 48) : H.value * 2.1;
663
- return d(1.06 * r * e.length ** -.2, i, W.value.height / 5);
664
- }
665
- function qn({ 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, H.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), Jn(i);
670
- }
671
- function Jn(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 Yn({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
680
- let i = d(Math.min(...e) - r * 2.35, W.value.top, W.value.bottom), a = d(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) => {
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: U(e.y),
695
- width: U(r)
696
- };
697
- }), u = l.map((e) => ({
698
- x: U(t - e.width),
699
- y: e.y
700
- })), ee = l.slice(0, -1).reverse().map((e) => ({
701
- x: U(t + e.width),
702
- y: e.y
703
- }));
704
- return `${Xn([...u, ...ee])} Z`;
705
- }
706
- function Xn(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 = U((r.x + i.x) / 2), o = U((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 Zn = p(() => q.value.ticks.map((e) => ({
718
- y: W.value.bottom - W.value.height * ((e + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min))),
719
- x1: W.value.left,
720
- x2: W.value.right,
721
- value: e
722
- }))), Qn = C(null), Q = C(null);
723
- function $n({ datapoint: e, seriesIndex: t }) {
724
- N.value !== "keyboard" && (j.value = !1, Q.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
725
- datapoint: e,
726
- seriesIndex: t
727
- }));
728
- }
729
- function er({ datapoint: e, seriesIndex: t }) {
730
- Rt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
731
- datapoint: e,
732
- seriesIndex: t
733
- });
734
- }
735
- function tr(e, t = {}) {
736
- return ie(P.value.style.chart.labels.formatter, e, l({
737
- p: P.value.style.chart.labels.prefix,
738
- v: e,
739
- s: P.value.style.chart.labels.suffix,
740
- r: P.value.style.chart.tooltip.roundingValue
741
- }), t);
742
- }
743
- function nr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
744
- P.value.events.datapointEnter && P.value.events.datapointEnter({
745
- datapoint: e,
746
- seriesIndex: t
747
- }), N.value = n, Qn.value = {
748
- datapoint: e,
749
- seriesIndex: t,
750
- config: P.value,
751
- series: G.value
752
- }, j.value = !0, Q.value = e;
753
- let r = P.value.style.chart.tooltip.customFormat;
754
- if (fe(r) && re(() => r({
755
- seriesIndex: t,
756
- datapoint: e,
757
- series: G.value,
758
- config: P.value
759
- }))) Vt.value = r({
760
- seriesIndex: t,
761
- datapoint: e,
762
- series: G.value,
763
- config: P.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="${P.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${tr(e.value, {
768
- datapoint: e,
769
- seriesIndex: t
770
- })}</div>`, Vt.value = `<div>${n}</div>`;
771
- }
772
- }
773
- function rr() {
774
- N.value !== "keyboard" && (j.value = !1, Q.value = null);
775
- }
776
- function ir({ boxPlot: e, seriesIndex: t, triggerMode: n = "pointer" }) {
777
- N.value = n, Q.value = null, j.value = !0, Qn.value = {
778
- boxPlot: e,
779
- seriesIndex: t,
780
- config: P.value,
781
- series: G.value
782
- };
783
- let r = P.value.style.chart.tooltip.customFormat;
784
- if (fe(r)) try {
785
- let n = {
786
- boxPlot: e,
787
- seriesIndex: t,
788
- series: G.value,
789
- config: P.value
790
- };
791
- if (re(() => r(n))) {
792
- Vt.value = r(n);
793
- return;
794
- }
795
- } catch {}
796
- let i = [
797
- [P.value.style.chart.violin.tooltipLabels.upperAdjacent, e.upperAdjacent],
798
- [P.value.style.chart.violin.tooltipLabels.q3, e.q3],
799
- [P.value.style.chart.violin.tooltipLabels.median, e.median],
800
- [P.value.style.chart.violin.tooltipLabels.q1, e.q1],
801
- [P.value.style.chart.violin.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
802
- [P.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>${tr(r, {
804
- boxPlot: e,
805
- seriesIndex: t
806
- })}</b></div>`).join("");
807
- Vt.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>${P.value.style.chart.violin.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
808
- }
809
- let ar = p(() => ({
810
- head: K.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: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
815
- }));
816
- function or(e = null) {
817
- ze(() => {
818
- let r = [], i = [P.value.table.columnNames.series, P.value.table.columnNames.value];
819
- Y.value ? (i = Bn.value, r = X.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 = ar.value.head.map((e, t) => [[e.name], [ar.value.body[t]]]);
829
- let a = n([
830
- [P.value.style.chart.title.text],
831
- [P.value.style.chart.title.subtitle.text],
832
- i.map((e) => [e])
833
- ].concat(r));
834
- e ? e(a) : t({
835
- csvContent: a,
836
- title: P.value.style.chart.title.text || "vue-ui-strip-plot"
837
- });
838
- });
839
- }
840
- let sr = p(() => {
841
- if (Y.value) {
842
- let e = Bn.value;
843
- return {
844
- colNames: e,
845
- head: e,
846
- body: X.value.map((e) => [
847
- {
848
- color: e.color,
849
- name: e.name
850
- },
851
- Vn(e.lowerAdjacent),
852
- Vn(e.q1),
853
- Vn(e.median),
854
- Vn(e.q3),
855
- Vn(e.upperAdjacent),
856
- Vn(e.iqr),
857
- e.count
858
- ]),
859
- config: {
860
- th: {
861
- backgroundColor: P.value.table.th.backgroundColor,
862
- color: P.value.table.th.color,
863
- outline: P.value.table.th.outline
864
- },
865
- td: {
866
- backgroundColor: P.value.table.td.backgroundColor,
867
- color: P.value.table.td.color,
868
- outline: P.value.table.td.outline
869
- },
870
- breakpoint: P.value.table.responsiveBreakpoint
871
- }
872
- };
873
- }
874
- let e = [P.value.table.columnNames.series, P.value.table.columnNames.value], t = ar.value.head.map((e, t) => {
875
- let n = l({
876
- p: P.value.style.chart.labels.prefix,
877
- v: ar.value.body[t],
878
- s: P.value.style.chart.labels.suffix,
879
- r: P.value.table.td.roundingValue
880
- });
881
- return [{
882
- color: e.color,
883
- name: e.name
884
- }, n];
885
- }), n = {
886
- th: {
887
- backgroundColor: P.value.table.th.backgroundColor,
888
- color: P.value.table.th.color,
889
- outline: P.value.table.th.outline
890
- },
891
- td: {
892
- backgroundColor: P.value.table.td.backgroundColor,
893
- color: P.value.table.td.color,
894
- outline: P.value.table.td.outline
895
- },
896
- breakpoint: P.value.table.responsiveBreakpoint
897
- };
898
- return {
899
- colNames: [P.value.table.columnNames.series, P.value.table.columnNames.value],
900
- head: e,
901
- body: t,
902
- config: n
903
- };
904
- }), $ = C(!1);
905
- function cr(e) {
906
- $.value = e, Bt.value += 1;
907
- }
908
- function lr() {
909
- return K.value;
910
- }
911
- function ur() {
912
- V.value.showTable = !V.value.showTable;
913
- }
914
- function dr() {
915
- V.value.dataLabels.show = !V.value.dataLabels.show;
916
- }
917
- function fr() {
918
- V.value.showTooltip = !V.value.showTooltip;
919
- }
920
- let pr = C(!1);
921
- function mr() {
922
- pr.value = !pr.value;
923
- }
924
- async function hr({ scale: e = 2 } = {}) {
925
- if (!M.value) return;
926
- let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
927
- domElement: M.value,
928
- base64: !0,
929
- img: !0,
930
- scale: e
931
- });
932
- return {
933
- imageUri: i,
934
- base64: a,
935
- title: P.value.style.chart.title.text,
936
- width: t,
937
- height: n,
938
- aspectRatio: r
939
- };
940
- }
941
- let gr = p(() => K.value.map((e) => e.name));
942
- Ce({
943
- timeLabelsEls: en,
944
- timeLabels: gr,
945
- slicer: C({
946
- start: 0,
947
- end: K.value.length
948
- }),
949
- configRef: P,
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: z,
967
- height: B,
968
- targetClass: ".vue-ui-strip-plot-category-name",
969
- rotation: P.value.style.chart.labels.xAxisLabels.autoRotate.angle
970
- });
971
- let _r = p(() => {
972
- let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
973
- return {
974
- component: e ? Nt : Ot,
975
- title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
976
- props: e ? {
977
- backgroundColor: P.value.table.th.backgroundColor,
978
- color: P.value.table.th.color,
979
- headerColor: P.value.table.th.color,
980
- headerBg: P.value.table.th.backgroundColor,
981
- isFullscreen: $.value,
982
- fullscreenParent: M.value,
983
- forcedWidth: Math.min(800, window.innerWidth * .8),
984
- isCursorPointer: F.value
985
- } : {
986
- hideDetails: !0,
987
- config: {
988
- open: t,
989
- maxHeight: 1e4,
990
- body: {
991
- backgroundColor: P.value.style.chart.backgroundColor,
992
- color: P.value.style.chart.color
993
- },
994
- head: {
995
- backgroundColor: P.value.style.chart.backgroundColor,
996
- color: P.value.style.chart.color
997
- }
998
- }
999
- }
1000
- };
1001
- });
1002
- Ke(() => V.value.showTable, (e) => {
1003
- P.value.table.show || (e && P.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
1004
- });
1005
- function vr() {
1006
- V.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
1007
- }
1008
- let yr = p(() => P.value.style.chart.backgroundColor), { exportSvg: br, getSvg: xr } = ye({
1009
- svg: I,
1010
- title: p(() => P.value.style.chart.title),
1011
- backgroundColor: yr
1012
- });
1013
- async function Sr({ isCb: e }) {
1014
- Zt.value = !0, await ze();
1015
- try {
1016
- if (e) {
1017
- let { blob: e, url: t, text: n, dataUrl: r } = await xr();
1018
- await Promise.resolve(P.value.userOptions.callbacks.svg({
1019
- blob: e,
1020
- url: t,
1021
- text: n,
1022
- dataUrl: r
1023
- }));
1024
- } else await Promise.resolve(br());
1025
- } finally {
1026
- Zt.value = !1;
1027
- }
1028
- }
1029
- function Cr(e) {
1030
- if (e?.stage === "start") {
1031
- Xt.value = !0;
1032
- return;
1033
- }
1034
- if (e?.stage === "end") {
1035
- Xt.value = !1;
1036
- return;
1037
- }
1038
- Cn();
1039
- }
1040
- async function wr() {
1041
- if (Rt("copyAlt", {
1042
- config: P.value,
1043
- dataset: J.value
1044
- }), !P.value.userOptions.callbacks.altCopy) {
1045
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1046
- return;
1047
- }
1048
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
1049
- config: P.value,
1050
- dataset: J.value
1051
- }));
1052
- }
1053
- function Tr() {
1054
- return J.value.length;
1055
- }
1056
- function Er(e) {
1057
- return J.value[e]?.plots ?? [];
1058
- }
1059
- function Dr(e = nn.value, t = rn.value) {
1060
- return !Number.isInteger(e) || !Number.isInteger(t) ? null : Er(e)[t] ?? null;
1061
- }
1062
- function Or() {
1063
- nn.value = null, rn.value = null, N.value = "pointer", j.value = !1, Q.value = null;
1064
- }
1065
- function kr(e) {
1066
- if (!e || !I.value) return;
1067
- let t = I.value.getBoundingClientRect();
1068
- an.value = {
1069
- x: t.left + e.x / z.value * t.width,
1070
- y: t.top + e.y / B.value * t.height
1071
- };
1072
- }
1073
- function Ar(e, t) {
1074
- let n = Dr(e, t);
1075
- n && (nn.value = e, rn.value = t, N.value = "keyboard", kr(n), nr({
1076
- datapoint: n,
1077
- seriesIndex: e,
1078
- triggerMode: "keyboard"
1079
- }));
1080
- }
1081
- function jr() {
1082
- on.value = !0, nn.value = null, rn.value = null;
1083
- }
1084
- function Mr() {
1085
- on.value = !1, Or();
1086
- }
1087
- function Nr(e) {
1088
- if (!I.value || pr.value || document.activeElement !== I.value || !Tr()) return;
1089
- 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";
1090
- if (!t && !n && !r && !i && !a && !o) return;
1091
- if (e.preventDefault(), e.stopPropagation(), o) {
1092
- Or();
1093
- return;
1094
- }
1095
- let s = nn.value, c = rn.value;
1096
- if (s === null || c === null) s = 0, c = 0;
1097
- else if (t || n) {
1098
- let e = Tr();
1099
- s = n ? (s + 1) % e : (s - 1 + e) % e;
1100
- let t = Er(s);
1101
- if (!t.length) return;
1102
- c = Math.min(c, t.length - 1);
1103
- } else if (r || i) {
1104
- let e = Er(s);
1105
- if (!e.length) return;
1106
- c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
1107
- }
1108
- if (a) {
1109
- let e = Dr();
1110
- if (!e) return;
1111
- er({
1112
- datapoint: e,
1113
- seriesIndex: nn.value
1114
- });
1115
- return;
1116
- }
1117
- Ar(s, c);
1118
- }
1119
- let Pr = p(() => ({
1120
- headers: sr.value?.colNames ?? [],
1121
- rows: sr.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
1122
- }));
1123
- return De({
1124
- getData: lr,
1125
- getImage: hr,
1126
- generatePdf: Sn,
1127
- generateCsv: or,
1128
- generateImage: Cn,
1129
- generateSvg: Sr,
1130
- toggleTable: ur,
1131
- toggleLabels: dr,
1132
- toggleTooltip: fr,
1133
- toggleAnnotator: mr,
1134
- toggleFullscreen: cr,
1135
- copyAlt: wr
1136
- }), (e, t) => (S(), g("div", {
1137
- ref_key: "stripPlotChart",
1138
- ref: M,
1139
- class: Be(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1140
- style: x(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor};${P.value.responsive ? "height:100%" : ""}`),
1141
- id: `strip-plot_${A.value}`,
1142
- onMouseenter: t[2] ||= () => D(mn)(!0),
1143
- onMouseleave: t[3] ||= () => D(mn)(!1)
1144
- }, [
1145
- _("div", {
1146
- id: `chart-instructions-${A.value}`,
1147
- class: "sr-only"
1148
- }, [_("p", null, E(P.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
1149
- Pr.value?.rows?.length ? (S(), m(je, {
1150
- key: 0,
1151
- uid: A.value,
1152
- head: Pr.value.headers,
1153
- body: Pr.value.rows,
1154
- notice: P.value.a11y.translations.tableAvailable,
1155
- caption: P.value.a11y.translations.tableCaption
1156
- }, null, 8, [
1157
- "uid",
1158
- "head",
1159
- "body",
1160
- "notice",
1161
- "caption"
1162
- ])) : h("", !0),
1163
- P.value.userOptions.buttons.annotator ? (S(), m(D(jt), {
1164
- key: 1,
1165
- svgRef: D(I),
1166
- backgroundColor: P.value.style.chart.backgroundColor,
1167
- color: P.value.style.chart.color,
1168
- active: pr.value,
1169
- isCursorPointer: F.value,
1170
- onClose: mr
1171
- }, {
1172
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1173
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
1174
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
1175
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
1176
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
1177
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
1178
- _: 3
1179
- }, 8, [
1180
- "svgRef",
1181
- "backgroundColor",
1182
- "color",
1183
- "active",
1184
- "isCursorPointer"
1185
- ])) : h("", !0),
1186
- wn.value ? (S(), g("div", {
1187
- key: 2,
1188
- ref_key: "noTitle",
1189
- ref: Wt,
1190
- class: "vue-data-ui-no-title-space",
1191
- style: "height:36px; width: 100%;background:transparent"
1192
- }, null, 512)) : h("", !0),
1193
- P.value.style.chart.title.text ? (S(), g("div", {
1194
- key: 3,
1195
- ref_key: "chartTitle",
1196
- ref: Ht,
1197
- style: "width:100%;background:transparent;padding-bottom:24px"
1198
- }, [(S(), m(Te, {
1199
- key: `title_${Kt.value}`,
1200
- config: {
1201
- title: {
1202
- cy: "donut-div-title",
1203
- ...P.value.style.chart.title
1204
- },
1205
- subtitle: {
1206
- cy: "donut-div-subtitle",
1207
- ...P.value.style.chart.title.subtitle
1208
- }
1209
- }
1210
- }, null, 8, ["config"]))], 512)) : h("", !0),
1211
- P.value.userOptions.show && zt.value && (D(hn) || D(pn)) ? (S(), m(D(At), {
1212
- ref_key: "userOptionsRef",
1213
- ref: Yt,
1214
- key: `user_option_${Bt.value}`,
1215
- backgroundColor: P.value.style.chart.backgroundColor,
1216
- color: P.value.style.chart.color,
1217
- isPrinting: D(bn),
1218
- isImaging: D(xn),
1219
- uid: A.value,
1220
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
1221
- hasPdf: P.value.userOptions.buttons.pdf,
1222
- hasXls: P.value.userOptions.buttons.csv,
1223
- hasImg: P.value.userOptions.buttons.img,
1224
- hasSvg: P.value.userOptions.buttons.svg,
1225
- hasTable: P.value.userOptions.buttons.table,
1226
- hasLabel: P.value.userOptions.buttons.labels && P.value.type !== "violin",
1227
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
1228
- hasAltCopy: P.value.userOptions.buttons.altCopy,
1229
- isTooltip: V.value.showTooltip,
1230
- isFullscreen: $.value,
1231
- titles: { ...P.value.userOptions.buttonTitles },
1232
- chartElement: M.value,
1233
- position: P.value.userOptions.position,
1234
- hasAnnotator: P.value.userOptions.buttons.annotator,
1235
- isAnnotation: pr.value,
1236
- callbacks: P.value.userOptions.callbacks,
1237
- printScale: P.value.userOptions.print.scale,
1238
- tableDialog: P.value.table.useDialog,
1239
- isCursorPointer: F.value,
1240
- onToggleFullscreen: cr,
1241
- onGeneratePdf: D(Sn),
1242
- onGenerateCsv: or,
1243
- onGenerateImage: Cr,
1244
- onGenerateSvg: Sr,
1245
- onToggleTable: ur,
1246
- onToggleLabels: dr,
1247
- onToggleTooltip: fr,
1248
- onToggleAnnotator: mr,
1249
- onCopyAlt: wr,
1250
- style: x({ visibility: D(hn) ? D(pn) ? "visible" : "hidden" : "visible" })
1251
- }, Fe({ _: 2 }, [
1252
- e.$slots.menuIcon ? {
1253
- name: "menuIcon",
1254
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(y({
1255
- isOpen: t,
1256
- color: n
1257
- })), void 0, !0)]),
1258
- key: "0"
1259
- } : void 0,
1260
- e.$slots.optionTooltip ? {
1261
- name: "optionTooltip",
1262
- fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1263
- key: "1"
1264
- } : void 0,
1265
- e.$slots.optionPdf ? {
1266
- name: "optionPdf",
1267
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1268
- key: "2"
1269
- } : void 0,
1270
- e.$slots.optionCsv ? {
1271
- name: "optionCsv",
1272
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1273
- key: "3"
1274
- } : void 0,
1275
- e.$slots.optionImg ? {
1276
- name: "optionImg",
1277
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1278
- key: "4"
1279
- } : void 0,
1280
- e.$slots.optionSvg ? {
1281
- name: "optionSvg",
1282
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1283
- key: "5"
1284
- } : void 0,
1285
- e.$slots.optionTable ? {
1286
- name: "optionTable",
1287
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1288
- key: "6"
1289
- } : void 0,
1290
- e.$slots.optionLabels ? {
1291
- name: "optionLabels",
1292
- fn: O(() => [T(e.$slots, "optionLabels", {}, void 0, !0)]),
1293
- key: "7"
1294
- } : void 0,
1295
- e.$slots.optionFullscreen ? {
1296
- name: "optionFullscreen",
1297
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(y({
1298
- toggleFullscreen: t,
1299
- isFullscreen: n
1300
- })), void 0, !0)]),
1301
- key: "8"
1302
- } : void 0,
1303
- e.$slots.optionAnnotator ? {
1304
- name: "optionAnnotator",
1305
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(y({
1306
- toggleAnnotator: t,
1307
- isAnnotator: n
1308
- })), void 0, !0)]),
1309
- key: "9"
1310
- } : void 0,
1311
- e.$slots.optionAltCopy ? {
1312
- name: "optionAltCopy",
1313
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
1314
- key: "10"
1315
- } : void 0,
1316
- e.$slots["custom-menu-before"] ? {
1317
- name: "custom-menu-before",
1318
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1319
- key: "11"
1320
- } : void 0,
1321
- e.$slots["custom-menu-after"] ? {
1322
- name: "custom-menu-after",
1323
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1324
- key: "12"
1325
- } : void 0
1326
- ]), 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.style".split("."))) : h("", !0),
1327
- _("div", Ze, [(S(), g("svg", {
1328
- ref_key: "svgRef",
1329
- ref: I,
1330
- xmlns: D(le),
1331
- class: Be({
1332
- "vue-data-ui-fullscreen--on": $.value,
1333
- "vue-data-ui-fulscreen--off": !$.value,
1334
- "vue-data-ui-no-transition": !D(sn)
1335
- }),
1336
- viewBox: `0 0 ${z.value} ${B.value}`,
1337
- style: x(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color};`),
1338
- "aria-describedby": `chart-instructions-${A.value}`,
1339
- tabindex: "0",
1340
- onFocus: jr,
1341
- onBlur: Mr,
1342
- onKeydown: Nr
1343
- }, [
1344
- Le(D(Mt)),
1345
- e.$slots["chart-background"] ? (S(), g("foreignObject", {
1346
- key: 0,
1347
- x: W.value.left,
1348
- y: W.value.top,
1349
- width: Math.max(.1, W.value.width),
1350
- height: Math.max(.1, W.value.height),
1351
- style: { pointerEvents: "none" }
1352
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : h("", !0),
1353
- P.value.style.chart.grid.show ? (S(), g("g", et, [
1354
- P.value.style.chart.grid.horizontalGrid.show ? (S(), g("g", tt, [(S(!0), g(f, null, w(Zn.value, (e) => (S(), g("line", {
1355
- x1: e.x1,
1356
- x2: e.x2,
1357
- y1: e.y,
1358
- y2: e.y,
1359
- stroke: P.value.style.chart.grid.horizontalGrid.stroke,
1360
- "stroke-width": P.value.style.chart.grid.horizontalGrid.strokeWidth,
1361
- "stroke-dasharray": P.value.style.chart.grid.horizontalGrid.strokeDasharray,
1362
- "stroke-linecap": "round"
1363
- }, null, 8, nt))), 256))])) : h("", !0),
1364
- P.value.style.chart.grid.verticalGrid.show ? (S(), g("g", rt, [(S(!0), g(f, null, w(K.value, (e, t) => (S(), g("line", {
1365
- x1: W.value.left + (t + 1) * W.value.stripWidth,
1366
- x2: W.value.left + (t + 1) * W.value.stripWidth,
1367
- y1: W.value.top,
1368
- y2: W.value.bottom,
1369
- stroke: P.value.style.chart.grid.verticalGrid.stroke,
1370
- "stroke-width": P.value.style.chart.grid.verticalGrid.strokeWidth,
1371
- "stroke-dasharray": P.value.style.chart.grid.verticalGrid.strokeDasharray,
1372
- "stroke-linecap": "round"
1373
- }, null, 8, it))), 256))])) : h("", !0),
1374
- _("line", {
1375
- x1: W.value.left,
1376
- x2: W.value.left,
1377
- y1: W.value.top,
1378
- y2: W.value.bottom,
1379
- stroke: P.value.style.chart.grid.stroke,
1380
- "stroke-width": P.value.style.chart.grid.strokeWidth,
1381
- "stroke-linecap": "round"
1382
- }, null, 8, at),
1383
- _("line", {
1384
- x1: W.value.left,
1385
- x2: W.value.right,
1386
- y1: W.value.bottom,
1387
- y2: W.value.bottom,
1388
- stroke: P.value.style.chart.grid.stroke,
1389
- "stroke-width": P.value.style.chart.grid.strokeWidth,
1390
- "stroke-linecap": "round"
1391
- }, null, 8, ot)
1392
- ])) : h("", !0),
1393
- P.value.style.chart.labels.yAxisLabels.show ? (S(), g("g", {
1394
- key: 2,
1395
- ref_key: "scaleLabels",
1396
- ref: tn
1397
- }, [(S(!0), g(f, null, w(Zn.value, (e, t) => (S(), g("text", {
1398
- class: Be({ "vue-data-ui-transition": D(sn) }),
1399
- key: `sl_${t}`,
1400
- transform: `translate(${e.x1 + P.value.style.chart.labels.yAxisLabels.offsetX - 5}, ${e.y + P.value.style.chart.labels.yAxisLabels.fontSize / 3})`,
1401
- fill: P.value.style.chart.labels.yAxisLabels.color,
1402
- "font-size": P.value.style.chart.labels.yAxisLabels.fontSize,
1403
- "text-anchor": "end"
1404
- }, E(D(ie)(P.value.style.chart.labels.formatter, e.value, D(l)({
1405
- p: P.value.style.chart.labels.prefix,
1406
- v: e.value,
1407
- s: P.value.style.chart.labels.suffix,
1408
- r: P.value.style.chart.labels.yAxisLabels.rounding
1409
- }), {
1410
- datapoint: e,
1411
- seriesIndex: t
1412
- })), 11, st))), 128))], 512)) : h("", !0),
1413
- P.value.style.chart.labels.xAxisLabels.show ? (S(), g("g", {
1414
- key: 3,
1415
- ref_key: "timeLabelsEls",
1416
- ref: en
1417
- }, [(S(!0), g(f, null, w(gr.value, (e, t) => (S(), g("g", null, [String(e).includes("\n") ? (S(), g("text", {
1418
- key: 1,
1419
- class: "vue-ui-strip-plot-category-name",
1420
- 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})`,
1421
- "font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
1422
- fill: P.value.style.chart.labels.xAxisLabels.color,
1423
- "text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
1424
- innerHTML: D(r)({
1425
- content: D(ee)(String(e)),
1426
- fontSize: P.value.style.chart.labels.xAxisLabels.fontSize,
1427
- fill: P.value.style.chart.labels.xAxisLabels.color,
1428
- x: 0,
1429
- y: 0
1430
- })
1431
- }, null, 8, lt)) : (S(), g("text", {
1432
- key: 0,
1433
- class: "vue-ui-strip-plot-category-name",
1434
- 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})`,
1435
- "font-size": P.value.style.chart.labels.xAxisLabels.fontSize,
1436
- fill: P.value.style.chart.labels.xAxisLabels.color,
1437
- "text-anchor": P.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : P.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
1438
- }, E(String(e)), 9, ct))]))), 256))], 512)) : h("", !0),
1439
- P.value.style.chart.labels.axis.yLabel ? (S(), g("text", {
1440
- key: 4,
1441
- ref_key: "yAxisLabel",
1442
- ref: $t,
1443
- fill: P.value.style.chart.labels.axis.color,
1444
- "font-size": P.value.style.chart.labels.axis.fontSize,
1445
- transform: `translate(${P.value.style.chart.labels.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1446
- "text-anchor": "middle"
1447
- }, E(P.value.style.chart.labels.axis.yLabel), 9, ut)) : h("", !0),
1448
- P.value.style.chart.labels.axis.xLabel ? (S(), g("text", {
1449
- key: 5,
1450
- ref_key: "xAxisLabel",
1451
- ref: Qt,
1452
- fill: P.value.style.chart.labels.axis.color,
1453
- "font-size": P.value.style.chart.labels.axis.fontSize,
1454
- x: W.value.left + W.value.width / 2,
1455
- y: B.value - P.value.style.chart.labels.axis.fontSize / 3,
1456
- "text-anchor": "middle"
1457
- }, E(P.value.style.chart.labels.axis.xLabel), 9, dt)) : h("", !0),
1458
- Q.value ? (S(), g(f, { key: 6 }, [
1459
- _("line", {
1460
- x1: W.value.left,
1461
- x2: W.value.right,
1462
- y1: Q.value.y,
1463
- y2: Q.value.y,
1464
- stroke: Q.value.color,
1465
- "stroke-width": 1,
1466
- class: Be({ "select-circle": P.value.useCssAnimation })
1467
- }, null, 10, ft),
1468
- _("circle", {
1469
- cx: W.value.left,
1470
- cy: Q.value.y,
1471
- r: 3,
1472
- fill: Q.value.color,
1473
- class: Be({ "select-circle": P.value.useCssAnimation })
1474
- }, null, 10, pt),
1475
- _("circle", {
1476
- cx: W.value.right,
1477
- cy: Q.value.y,
1478
- r: 3,
1479
- fill: Q.value.color,
1480
- class: Be({ "select-circle": P.value.useCssAnimation })
1481
- }, null, 10, mt)
1482
- ], 64)) : h("", !0),
1483
- _("defs", null, [(S(!0), g(f, null, w(K.value, (e) => (S(), m(Ae, {
1484
- t: "radial",
1485
- id: e.id,
1486
- key: `r_${e.id}`,
1487
- fy: "30%",
1488
- stops: [
1489
- [
1490
- "10%",
1491
- D(o)(e.color, P.value.style.chart.plots.gradient.intensity / 100),
1492
- 1
1493
- ],
1494
- [
1495
- "90%",
1496
- D(u)(e.color, .1),
1497
- 1
1498
- ],
1499
- [
1500
- "100%",
1501
- e.color,
1502
- 1
1503
- ]
1504
- ]
1505
- }, null, 8, ["id", "stops"]))), 128))]),
1506
- (S(!0), g(f, null, w(Un.value, (e, n) => (S(), g(f, { key: e.id }, [e.path ? (S(), g("path", {
1507
- key: 0,
1508
- d: e.path,
1509
- fill: e.fill,
1510
- stroke: e.color,
1511
- "fill-opacity": P.value.style.chart.violin.opacity,
1512
- "stroke-opacity": P.value.style.chart.violin.strokeOpacity,
1513
- "stroke-width": P.value.style.chart.violin.strokeWidth,
1514
- style: x({
1515
- pointerEvents: Y.value ? "auto" : "none",
1516
- cursor: Y.value && F.value ? "pointer" : "default"
1517
- }),
1518
- onMouseenter: (e) => Y.value && X.value[n] && ir({
1519
- boxPlot: X.value[n],
1520
- seriesIndex: n,
1521
- triggerMode: "pointer"
1522
- }),
1523
- onMouseleave: t[0] ||= (e) => Y.value && rr()
1524
- }, null, 44, ht)) : h("", !0), (S(!0), g(f, null, w(e.connectors, (t, n) => (S(), g("line", {
1525
- key: `violin_connector_${e.id}_${n}`,
1526
- x1: t.x,
1527
- x2: t.x,
1528
- y1: t.y1,
1529
- y2: t.y2,
1530
- stroke: e.color,
1531
- "stroke-opacity": P.value.style.chart.violin.strokeOpacity,
1532
- "stroke-width": P.value.style.chart.violin.strokeWidth,
1533
- "stroke-linecap": "round",
1534
- style: { "pointer-events": "none" }
1535
- }, null, 8, gt))), 128))], 64))), 128)),
1536
- (S(!0), g(f, null, w(X.value, (e, t) => (S(), g("g", {
1537
- key: `boxplot_${e.id}`,
1538
- style: x({ cursor: F.value ? "pointer" : "default" }),
1539
- onMouseenter: (n) => ir({
1540
- boxPlot: e,
1541
- seriesIndex: t,
1542
- triggerMode: "pointer"
1543
- }),
1544
- onMouseleave: rr
1545
- }, [
1546
- _("line", {
1547
- x1: e.centerX,
1548
- x2: e.centerX,
1549
- y1: e.upperY,
1550
- y2: e.lowerY,
1551
- stroke: D(u)(e.boxPlotColor, .2),
1552
- "stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
1553
- "stroke-linecap": "round"
1554
- }, null, 8, vt),
1555
- _("rect", {
1556
- x: e.boxLeft,
1557
- y: Math.min(e.q1Y, e.q3Y),
1558
- width: e.boxWidth,
1559
- height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
1560
- fill: e.boxPlotColor,
1561
- stroke: D(u)(e.boxPlotColor, .2),
1562
- "stroke-width": Math.max(1, P.value.style.chart.violin.strokeWidth),
1563
- rx: e.boxWidth / 20
1564
- }, null, 8, yt),
1565
- _("circle", {
1566
- cx: e.boxLeft + e.boxWidth / 2,
1567
- cy: e.medianY,
1568
- r: e.boxWidth / 3 * Math.min(1, P.value.style.chart.violin.boxPlot.medianCircleRadiusRatio),
1569
- fill: P.value.style.chart.violin.boxPlot.medianCircleFill,
1570
- stroke: D(u)(e.boxPlotColor, .2)
1571
- }, null, 8, bt)
1572
- ], 44, _t))), 128)),
1573
- (S(!0), g(f, null, w(J.value, (t, n) => (S(), g(f, null, [Y.value ? h("", !0) : (S(!0), g(f, { key: 0 }, w(t.plots, (n, r) => (S(), m(Ee, Re({ ref_for: !0 }, e.$attrs, {
1574
- plot: {
1575
- x: n.x,
1576
- y: Gt.value ? n.y : W.value.top
1577
- },
1578
- radius: Q.value && Q.value.id === n.id ? H.value * 1.5 : H.value,
1579
- shape: P.value.style.chart.plots.shape,
1580
- stroke: P.value.style.chart.plots.stroke,
1581
- strokeWidth: P.value.style.chart.plots.strokeWidth,
1582
- color: P.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
1583
- style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === n.id ? 1 : .2 : P.value.style.chart.plots.opacity};${En.value ? `transition-delay:${r * 50}ms` : ""}`,
1584
- class: {
1585
- "vue-ui-strip-plot-animated": P.value.useCssAnimation && En.value && !D(un),
1586
- "vue-ui-strip-plot-select-circle": P.value.useCssAnimation && !En.value
1587
- },
1588
- onMouseenter: (e) => nr({
1589
- datapoint: n,
1590
- seriesIndex: r,
1591
- triggerMode: "pointer"
1592
- }),
1593
- onMouseleave: (e) => $n({
1594
- datapoint: n,
1595
- seriesIndex: r
1596
- }),
1597
- onClick: (e) => er({
1598
- datapoint: n,
1599
- seriesIndex: r
1600
- })
1601
- }), null, 16, [
1602
- "plot",
1603
- "radius",
1604
- "shape",
1605
- "stroke",
1606
- "strokeWidth",
1607
- "color",
1608
- "style",
1609
- "class",
1610
- "onMouseenter",
1611
- "onMouseleave",
1612
- "onClick"
1613
- ]))), 256)), V.value.dataLabels.show && !Y.value ? (S(), g("g", xt, [(S(!0), g(f, null, w(t.plots, (e, n) => (S(), g(f, null, [n === t.plots.length - 1 || Q.value && Q.value.id === e.id && !V.value.showTooltip ? (S(), g("text", {
1614
- key: 0,
1615
- x: e.x,
1616
- 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),
1617
- "font-size": P.value.style.chart.labels.bestPlotLabel.fontSize,
1618
- fill: P.value.style.chart.labels.bestPlotLabel.color,
1619
- "text-anchor": "middle",
1620
- style: x(`opacity:${P.value.useCssAnimation ? +!En.value : 1};transition:opacity 0.2s ease-in;`)
1621
- }, E(e.name) + " " + E(P.value.style.chart.labels.bestPlotLabel.showValue ? D(ie)(P.value.style.chart.labels.formatter, e.value, D(l)({
1622
- p: `(${P.value.style.chart.labels.prefix}`,
1623
- v: e.value,
1624
- s: `${P.value.style.chart.labels.suffix})`,
1625
- r: P.value.style.chart.labels.bestPlotLabel.rounding
1626
- }), {
1627
- datapoint: e,
1628
- seriesIndex: n
1629
- }) : ""), 13, St)) : h("", !0)], 64))), 256))])) : h("", !0)], 64))), 256)),
1630
- T(e.$slots, "svg", { svg: {
1631
- ...W.value,
1632
- isPrintingImg: D(bn) || D(xn) || Xt.value,
1633
- isPrintingSvg: Zt.value,
1634
- boxPlotSummaries: X.value,
1635
- series: K.value
1636
- } }, void 0, !0)
1637
- ], 46, Qe)), e.$slots.hint ? (S(), g("div", Ct, [T(e.$slots, "hint", b(y({
1638
- hint: P.value.a11y.translations.keyboardNavigation,
1639
- isVisible: on.value
1640
- })), void 0, !0)])) : h("", !0)]),
1641
- e.$slots.watermark ? (S(), g("div", wt, [T(e.$slots, "watermark", b(y({ isPrinting: D(bn) || D(xn) || Xt.value || Zt.value })), void 0, !0)])) : h("", !0),
1642
- e.$slots.source ? (S(), g("div", {
1643
- key: 6,
1644
- ref_key: "source",
1645
- ref: Ut,
1646
- dir: "auto"
1647
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1648
- Le(D(Et), {
1649
- teleportTo: P.value.style.chart.tooltip.teleportTo,
1650
- show: V.value.showTooltip && j.value,
1651
- backgroundColor: P.value.style.chart.tooltip.backgroundColor,
1652
- color: P.value.style.chart.tooltip.color,
1653
- borderRadius: P.value.style.chart.tooltip.borderRadius,
1654
- borderColor: P.value.style.chart.tooltip.borderColor,
1655
- borderWidth: P.value.style.chart.tooltip.borderWidth,
1656
- fontSize: P.value.style.chart.tooltip.fontSize,
1657
- backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
1658
- position: P.value.style.chart.tooltip.position,
1659
- offsetX: P.value.style.chart.tooltip.offsetX,
1660
- offsetY: P.value.style.chart.tooltip.offsetY,
1661
- parent: M.value,
1662
- content: Vt.value,
1663
- isFullscreen: $.value,
1664
- isCustom: D(fe)(P.value.style.chart.tooltip.customFormat),
1665
- smooth: P.value.style.chart.tooltip.smooth,
1666
- backdropFilter: P.value.style.chart.tooltip.backdropFilter,
1667
- smoothForce: P.value.style.chart.tooltip.smoothForce,
1668
- smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
1669
- isA11yMode: N.value === "keyboard",
1670
- a11yPosition: an.value
1671
- }, {
1672
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(y({ ...Qn.value })), void 0, !0)]),
1673
- tooltip: O(() => [T(e.$slots, "tooltip", b(y({ ...Qn.value })), void 0, !0)]),
1674
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(y({ ...Qn.value })), void 0, !0)]),
1675
- _: 3
1676
- }, 8, [
1677
- "teleportTo",
1678
- "show",
1679
- "backgroundColor",
1680
- "color",
1681
- "borderRadius",
1682
- "borderColor",
1683
- "borderWidth",
1684
- "fontSize",
1685
- "backgroundOpacity",
1686
- "position",
1687
- "offsetX",
1688
- "offsetY",
1689
- "parent",
1690
- "content",
1691
- "isFullscreen",
1692
- "isCustom",
1693
- "smooth",
1694
- "backdropFilter",
1695
- "smoothForce",
1696
- "smoothSnapThreshold",
1697
- "isA11yMode",
1698
- "a11yPosition"
1699
- ]),
1700
- zt.value && P.value.userOptions.buttons.table ? (S(), m(Ue(_r.value.component), Re({ key: 7 }, _r.value.props, {
1701
- ref_key: "tableUnit",
1702
- ref: Jt,
1703
- onClose: vr
1704
- }), Fe({
1705
- content: O(() => [(S(), m(D(kt), {
1706
- key: `table_${qt.value}`,
1707
- colNames: sr.value.colNames,
1708
- head: sr.value.head,
1709
- body: sr.value.body,
1710
- config: sr.value.config,
1711
- title: P.value.table.useDialog ? "" : _r.value.title,
1712
- withCloseButton: !P.value.table.useDialog,
1713
- isCursorPointer: F.value,
1714
- onClose: vr
1715
- }, {
1716
- th: O(({ th: e }) => [_("div", {
1717
- innerHTML: e,
1718
- style: {
1719
- display: "flex",
1720
- "align-items": "center"
1721
- }
1722
- }, null, 8, Tt)]),
1723
- td: O(({ td: e }) => [Ie(E(e.name || e), 1)]),
1724
- _: 1
1725
- }, 8, [
1726
- "colNames",
1727
- "head",
1728
- "body",
1729
- "config",
1730
- "title",
1731
- "withCloseButton",
1732
- "isCursorPointer"
1733
- ]))]),
1734
- _: 2
1735
- }, [P.value.table.useDialog ? {
1736
- name: "title",
1737
- fn: O(() => [Ie(E(_r.value.title), 1)]),
1738
- key: "0"
1739
- } : void 0, P.value.table.useDialog ? {
1740
- name: "actions",
1741
- fn: O(() => [_("button", {
1742
- tabindex: "0",
1743
- class: "vue-ui-user-options-button",
1744
- onClick: t[1] ||= (e) => or(P.value.userOptions.callbacks.csv),
1745
- style: x({ cursor: F.value ? "pointer" : "default" })
1746
- }, [Le(D(Dt), {
1747
- name: "fileCsv",
1748
- stroke: _r.value.props.color
1749
- }, null, 8, ["stroke"])], 4)]),
1750
- key: "1"
1751
- } : void 0]), 1040)) : h("", !0),
1752
- T(e.$slots, "skeleton", {}, () => [D(un) ? (S(), m(ve, { key: 0 })) : h("", !0)], !0)
1753
- ], 46, Ye));
1754
- }
1755
- }, [["__scopeId", "data-v-3b98774b"]]);
1756
- //#endregion
1757
- export { Je as n, Et as t };