vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,1080 +0,0 @@
1
- import { defineAsyncComponent as T, computed as d, ref as i, toRefs as Ut, watch as Q, shallowRef as Qe, onMounted as Vt, onBeforeUnmount as et, watchEffect as Xt, openBlock as r, createElementBlock as u, unref as v, normalizeStyle as G, normalizeClass as H, createBlock as z, withCtx as c, renderSlot as h, normalizeProps as g, guardReactiveProps as k, createCommentVNode as f, createSlots as tt, createVNode as Ae, Fragment as x, renderList as S, createElementVNode as C, toDisplayString as _, mergeProps as lt, resolveDynamicComponent as jt, createTextVNode as at, nextTick as ot } from "vue";
2
- import { j as Le, t as st, m as Yt, p as D, o as rt, q as $e, r as nt, n as qt, s as ut, K as Jt, D as Kt, l as ee, X as Zt, k as Te, Z as Qt, at as el, x as tl, w as ll, T as it, a2 as al, a0 as ol, a1 as sl, U as rl } from "./lib-GwPnJSrY.js";
3
- import { t as vt, u as nl } from "./useResponsive-DfdjqQps.js";
4
- import { u as ul } from "./useConfig-CIgyKZ6R.js";
5
- import { u as il, B as vl } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as cl } from "./usePrinter-DiK5R6k-.js";
7
- import { u as hl } from "./useSvgExport-ByUukOZt.js";
8
- import { u as Se } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as dl } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as fl } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as bl } from "./useTimeLabelCollider-CIsgDrl9.js";
13
- import yl from "./img-BYYzY_QU.js";
14
- import { _ as ml } from "./Shape-CSyWYgXc.js";
15
- import gl from "./Title-BfyrP-jp.js";
16
- import kl from "./vue_ui_strip_plot-B9ypi_F3.js";
17
- import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Cl = ["id"], wl = ["xmlns", "viewBox"], Al = ["x", "y", "width", "height"], Ll = { key: 1 }, $l = { key: 0 }, Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Sl = { key: 1 }, _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x", "y", "fill", "font-size"], Dl = ["transform", "font-size", "fill", "text-anchor"], Nl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], Il = ["fill", "font-size", "transform"], Fl = ["fill", "font-size", "x", "y"], Ml = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["cx", "cy", "fill"], Bl = ["cx", "cy", "fill"], Wl = ["id"], El = ["stop-color"], Gl = ["stop-color"], Hl = ["stop-color"], Ul = { key: 0 }, Vl = ["x", "y", "font-size", "fill"], Xl = {
19
- key: 4,
20
- class: "vue-data-ui-watermark"
21
- }, jl = ["innerHTML"], Yl = {
22
- __name: "vue-ui-strip-plot",
23
- props: {
24
- config: {
25
- type: Object,
26
- default() {
27
- return {};
28
- }
29
- },
30
- dataset: {
31
- type: Array,
32
- default() {
33
- return [];
34
- }
35
- }
36
- },
37
- emits: ["selectDatapoint", "copyAlt"],
38
- setup(ct, { expose: ht, emit: dt }) {
39
- const pt = T(() => import("./Tooltip-DL3QgjZf.js")), ft = T(() => import("./BaseIcon-CNx8Tzl5.js")), bt = T(() => import("./vue-ui-accordion-BGHTqIBt.js")), yt = T(() => import("./DataTable-Bo1pmAqG.js")), mt = T(() => import("./UserOptions-CrLqEimB.js")), gt = T(() => import("./PenAndPaper-DWV1FMIi.js")), kt = T(() => import("./PackageVersion-DN9d0ME5.js")), xt = T(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_strip_plot: Ct } = ul(), { isThemeValid: wt, warnInvalidTheme: At } = dl(), m = ct, _e = dt, U = d({
40
- get() {
41
- return !!m.dataset && m.dataset.length;
42
- },
43
- set(t) {
44
- return t;
45
- }
46
- }), te = i(Le()), Pe = i(0), le = i(!1), ae = i(""), A = i(null), Oe = i(null), ze = i(null), De = i(null), Ne = i(!1), Ie = i(0), Fe = i(0), M = i(null), oe = i(null), V = i(!1), X = i(!1), se = i(null), re = i(null), j = i(null), ne = i(null), e = i(de()), R = d(() => e.value.userOptions.useCursorPointer), Lt = d(() => st({
47
- defaultConfig: {
48
- userOptions: { show: !1 },
49
- table: { show: !1 },
50
- style: {
51
- chart: {
52
- backgroundColor: "#99999930",
53
- padding: {
54
- top: 24,
55
- left: 24,
56
- right: 24,
57
- bottom: 24
58
- },
59
- grid: {
60
- stroke: "#6A6A6A",
61
- horizontalGrid: {
62
- stroke: "#6A6A6A"
63
- },
64
- verticalGrid: {
65
- stroke: "#6A6A6A"
66
- }
67
- },
68
- plots: {
69
- stroke: "#6A6A6A"
70
- },
71
- labels: {
72
- bestPlotLabel: { show: !1 },
73
- axis: {
74
- xLabel: "",
75
- yLabel: ""
76
- },
77
- xAxisLabels: { show: !1 },
78
- yAxisLabels: { show: !1 }
79
- }
80
- }
81
- }
82
- },
83
- userConfig: e.value.skeletonConfig ?? {}
84
- })), { loading: ue, FINAL_DATASET: ie, manualLoading: ve } = il({
85
- ...Ut(m),
86
- FINAL_CONFIG: e,
87
- prepareConfig: de,
88
- skeletonDataset: m.config?.skeletonDataset ?? [
89
- {
90
- name: "_",
91
- color: "#DBDBDB",
92
- plots: [
93
- { name: "_", value: 1 },
94
- { name: "_", value: 2 },
95
- { name: "_", value: 3 }
96
- ]
97
- },
98
- {
99
- name: "_",
100
- color: "#C4C4C4",
101
- plots: [
102
- { name: "_", value: 3 },
103
- { name: "_", value: 5 },
104
- { name: "_", value: 8 }
105
- ]
106
- },
107
- {
108
- name: "_",
109
- color: "#ADADAD",
110
- plots: [
111
- { name: "_", value: 8 },
112
- { name: "_", value: 13 },
113
- { name: "_", value: 21 }
114
- ]
115
- },
116
- {
117
- name: "_",
118
- color: "#969696",
119
- plots: [
120
- { name: "_", value: 21 },
121
- { name: "_", value: 34 },
122
- { name: "_", value: 55 }
123
- ]
124
- },
125
- {
126
- name: "_",
127
- color: "#808080",
128
- plots: [
129
- { name: "_", value: 55 },
130
- { name: "_", value: 89 },
131
- { name: "_", value: 144 }
132
- ]
133
- }
134
- ],
135
- skeletonConfig: st({
136
- defaultConfig: e.value,
137
- userConfig: Lt.value
138
- })
139
- }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: Re } = pl({ config: e.value }), { svgRef: he } = fl({ config: e.value.style.chart.title });
140
- function de() {
141
- const t = Se({
142
- userConfig: m.config,
143
- defaultConfig: Ct
144
- }), a = t.theme;
145
- if (!a) return t;
146
- if (!wt.value(t))
147
- return At(t), t;
148
- const l = Se({
149
- userConfig: kl[a] || m.config,
150
- defaultConfig: t
151
- }), o = Se({
152
- userConfig: m.config,
153
- defaultConfig: l
154
- });
155
- return {
156
- ...o,
157
- customPalette: o.customPalette.length ? o.customPalette : Yt[a] || D
158
- };
159
- }
160
- Q(() => m.config, async (t) => {
161
- ue.value || (e.value = de()), ce.value = !e.value.userOptions.showOnChartHover, Be(), Ie.value += 1, Fe.value += 1, b.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tooltip.show, I.value = e.value.style.chart.width, $.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
162
- }, { deep: !0 }), Q(() => m.dataset, (t) => {
163
- Array.isArray(t) && t.length > 0 && (ve.value = !1);
164
- }, { deep: !0 });
165
- const L = Qe(null), N = Qe(null);
166
- Vt(() => {
167
- Be();
168
- });
169
- const pe = d(() => !!e.value.debug);
170
- function Be() {
171
- if (rt(m.dataset) ? ($e({
172
- componentName: "VueUiStripPlot",
173
- type: "dataset",
174
- debug: pe.value
175
- }), ve.value = !0) : m.dataset.forEach((t, a) => {
176
- nt({
177
- datasetObject: t,
178
- requiredAttributes: ["name", "plots"]
179
- }).forEach((l) => {
180
- U.value = !1, $e({
181
- componentName: "VueUiStripPlot",
182
- type: "datasetSerieAttribute",
183
- property: l,
184
- index: a,
185
- debug: pe.value
186
- });
187
- }), t.plots && t.plots.forEach((l, o) => {
188
- nt({
189
- datasetObject: l,
190
- requiredAttributes: ["name", "value"]
191
- }).forEach((n) => {
192
- U.value = !1, $e({
193
- componentName: "VueUiStripPlot",
194
- type: "datasetSerieAttribute",
195
- property: n,
196
- index: `${a},${o}`,
197
- debug: pe.value
198
- });
199
- });
200
- });
201
- }), rt(m.dataset) || (ve.value = e.value.loading), e.value.responsive) {
202
- const t = vt(() => {
203
- const { width: a, height: l } = nl({
204
- chart: A.value,
205
- title: e.value.style.chart.title.text ? Oe.value : null,
206
- source: ze.value,
207
- noTitle: De.value
208
- });
209
- requestAnimationFrame(() => {
210
- Tt.value = l, I.value = Math.max(0.1, a), $.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? W.value = al({
211
- relator: Math.min(l, a),
212
- adjuster: 600,
213
- source: e.value.style.chart.plots.radius,
214
- threshold: 6,
215
- fallback: 6
216
- }) : W.value = e.value.style.chart.plots.radius;
217
- });
218
- });
219
- L.value && (N.value && L.value.unobserve(N.value), L.value.disconnect()), L.value = new ResizeObserver(t), N.value = A.value.parentNode, L.value.observe(N.value);
220
- }
221
- Ne.value = !0, setTimeout(() => {
222
- B.value = !1;
223
- }, Ot.value * 50);
224
- }
225
- et(() => {
226
- L.value && (N.value && L.value.unobserve(N.value), L.value.disconnect());
227
- });
228
- const { isPrinting: fe, isImaging: be, generatePdf: We, generateImage: Ee } = cl({
229
- elementId: `strip-plot_${te.value}`,
230
- fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
231
- options: e.value.userOptions.print
232
- }), $t = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = d(() => qt(e.value.customPalette)), B = i(e.value.useCssAnimation), Y = i({
233
- top: e.value.style.chart.padding.top,
234
- bottom: e.value.style.chart.padding.bottom,
235
- left: e.value.style.chart.padding.left,
236
- right: e.value.style.chart.padding.right
237
- }), I = i(e.value.style.chart.width), $ = i(e.value.style.chart.height), Tt = i(e.value.style.chart.height), W = i(e.value.style.chart.plots.radius), b = i({
238
- showTable: e.value.table.show,
239
- dataLabels: {
240
- show: e.value.style.chart.labels.bestPlotLabel.show
241
- },
242
- showTooltip: e.value.style.chart.tooltip.show
243
- });
244
- Q(e, () => {
245
- b.value = {
246
- showTable: e.value.table.show,
247
- dataLabels: {
248
- show: e.value.style.chart.labels.bestPlotLabel.show
249
- },
250
- showTooltip: e.value.style.chart.tooltip.show
251
- }, I.value = e.value.style.chart.width, $.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
252
- }, { immediate: !0 });
253
- const ye = d(() => Math.min(W.value, s.value.stripWidth / 2 * 0.9));
254
- function St() {
255
- let t = 0;
256
- ne.value && (t = Array.from(ne.value.querySelectorAll("text")).reduce((o, n) => {
257
- const p = n.getComputedTextLength();
258
- return p > o ? p : o;
259
- }, 0));
260
- const a = re.value ? re.value.getBoundingClientRect().width : 0;
261
- return t + a + (a ? 24 : 0);
262
- }
263
- const me = i(0), _t = vt((t) => {
264
- me.value = t;
265
- }, 100);
266
- Xt((t) => {
267
- const a = j.value;
268
- if (!a) return;
269
- const l = new ResizeObserver((o) => {
270
- _t(o[0].contentRect.height);
271
- });
272
- l.observe(a), t(() => l.disconnect());
273
- }), et(() => {
274
- me.value = 0;
275
- });
276
- const Pt = d(() => {
277
- let t = 0;
278
- se.value && (t = se.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
279
- let a = 0;
280
- return j.value && (a = me.value + 12), t + a;
281
- }), s = d(() => {
282
- const t = St(), a = Y.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = I.value - Y.value.right, o = Math.max(0, l - a), n = Y.value.top + e.value.style.chart.plots.radius + e.value.style.chart.labels.bestPlotLabel.fontSize, p = $.value - Y.value.bottom - Pt.value, F = Math.max(0, p - n), Ze = Array.isArray(ie.value) ? ie.value.length : 0, Ht = Ze > 0 ? o / Ze : 0;
283
- return {
284
- left: a,
285
- right: l,
286
- top: n,
287
- bottom: p,
288
- width: o,
289
- height: F,
290
- stripWidth: Ht,
291
- absoluteHeight: $.value
292
- };
293
- }), q = d(() => ie.value.map((t, a) => {
294
- const l = Le();
295
- return {
296
- ...t,
297
- id: l,
298
- color: t.color ? ut(t.color) : Ge.value[a] || D[a] || D[a % D.length],
299
- plots: t.plots.map((o, n) => ({
300
- ...o,
301
- value: Jt(o.value),
302
- parentId: l,
303
- parentName: t.name,
304
- parentIndex: a,
305
- plotIndex: n,
306
- color: t.color ? ut(t.color) : Ge.value[a] || D[a] || D[a % D.length],
307
- id: Le()
308
- })).sort((o, n) => o.value - n.value)
309
- };
310
- })), w = d(() => (q.value || []).map((t, a) => ({
311
- ...t,
312
- plots: t.plots.map((l) => ({
313
- ...l,
314
- x: s.value.left + (a + 1) * s.value.stripWidth - s.value.stripWidth / 2
315
- }))
316
- }))), Ot = d(() => Math.max(...w.value.map((t) => t.plots.length))), ge = d(() => {
317
- const t = w.value.flatMap((a) => a.plots.map((l) => l.value));
318
- return {
319
- max: Math.max(...t),
320
- min: Math.min(...t)
321
- };
322
- }), P = d(() => Kt(ge.value.min < 0 ? ge.value.min : 0, ge.value.max, e.value.style.chart.grid.scaleSteps)), ke = d(() => (w.value || []).map((t, a) => ({
323
- ...t,
324
- plots: t.plots.map((l) => ({
325
- ...l,
326
- y: s.value.bottom - (l.value + Math.abs(P.value.min)) / (P.value.max + Math.abs(P.value.min)) * s.value.height
327
- }))
328
- }))), He = d(() => P.value.ticks.map((t) => ({
329
- y: s.value.bottom - s.value.height * ((t + Math.abs(P.value.min)) / (P.value.max + Math.abs(P.value.min))),
330
- x1: s.value.left,
331
- x2: s.value.right,
332
- value: t
333
- }))), xe = i(null), y = i(null);
334
- function zt({ datapoint: t, seriesIndex: a }) {
335
- le.value = !1, y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
336
- }
337
- function Dt({ datapoint: t, seriesIndex: a }) {
338
- _e("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
339
- }
340
- function Nt({ datapoint: t, seriesIndex: a }) {
341
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), xe.value = { datapoint: t, seriesIndex: a, config: e.value, series: q.value }, le.value = !0, y.value = t;
342
- const l = e.value.style.chart.tooltip.customFormat;
343
- if (it(l) && rl(() => l({
344
- seriesIndex: a,
345
- datapoint: t,
346
- series: q.value,
347
- config: e.value
348
- })))
349
- ae.value = l({
350
- seriesIndex: a,
351
- datapoint: t,
352
- series: q.value,
353
- config: e.value
354
- });
355
- else {
356
- let o = "";
357
- o += `<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="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, o += `<div>${Te(
358
- e.value.style.chart.labels.formatter,
359
- t.value,
360
- ee({
361
- p: e.value.style.chart.labels.prefix,
362
- v: t.value,
363
- s: e.value.style.chart.labels.suffix,
364
- r: e.value.style.chart.tooltip.roundingValue
365
- }),
366
- { datapoint: t, seriesIndex: a }
367
- )}</div>`, ae.value = `<div>${o}</div>`;
368
- }
369
- }
370
- const J = d(() => {
371
- const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
372
- name: `${l.name} - ${o.name}`,
373
- color: o.color
374
- }))), a = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
375
- return { head: t, body: a };
376
- });
377
- function Ce(t = null) {
378
- ot(() => {
379
- const a = J.value.head.map((n, p) => [[
380
- n.name
381
- ], [J.value.body[p]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o = ol(l);
382
- t ? t(o) : sl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
383
- });
384
- }
385
- const K = d(() => {
386
- const t = [
387
- e.value.table.columnNames.series,
388
- e.value.table.columnNames.value
389
- ], a = J.value.head.map((n, p) => {
390
- const F = ee({
391
- p: e.value.style.chart.labels.prefix,
392
- v: J.value.body[p],
393
- s: e.value.style.chart.labels.suffix,
394
- r: e.value.table.td.roundingValue
395
- });
396
- return [
397
- {
398
- color: n.color,
399
- name: n.name
400
- },
401
- F
402
- ];
403
- }), l = {
404
- th: {
405
- backgroundColor: e.value.table.th.backgroundColor,
406
- color: e.value.table.th.color,
407
- outline: e.value.table.th.outline
408
- },
409
- td: {
410
- backgroundColor: e.value.table.td.backgroundColor,
411
- color: e.value.table.td.color,
412
- outline: e.value.table.td.outline
413
- },
414
- breakpoint: e.value.table.responsiveBreakpoint
415
- };
416
- return {
417
- colNames: [
418
- e.value.table.columnNames.series,
419
- e.value.table.columnNames.value
420
- ],
421
- head: t,
422
- body: a,
423
- config: l
424
- };
425
- }), O = i(!1);
426
- function Ue(t) {
427
- O.value = t, Pe.value += 1;
428
- }
429
- function It() {
430
- return w.value;
431
- }
432
- function Ve() {
433
- b.value.showTable = !b.value.showTable;
434
- }
435
- function Xe() {
436
- b.value.dataLabels.show = !b.value.dataLabels.show;
437
- }
438
- function je() {
439
- b.value.showTooltip = !b.value.showTooltip;
440
- }
441
- const Z = i(!1);
442
- function we() {
443
- Z.value = !Z.value;
444
- }
445
- async function Ft({ scale: t = 2 } = {}) {
446
- if (!A.value) return;
447
- const { width: a, height: l } = A.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: p } = await yl({ domElement: A.value, base64: !0, img: !0, scale: t });
448
- return {
449
- imageUri: n,
450
- base64: p,
451
- title: e.value.style.chart.title.text,
452
- width: a,
453
- height: l,
454
- aspectRatio: o
455
- };
456
- }
457
- const Ye = d(() => w.value.map((t) => t.name)), Mt = i({ start: 0, end: w.value.length });
458
- bl({
459
- timeLabelsEls: j,
460
- timeLabels: Ye,
461
- slicer: Mt,
462
- configRef: e,
463
- rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
464
- autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
465
- isAutoSize: !1,
466
- width: I,
467
- height: $,
468
- targetClass: ".vue-ui-strip-plot-category-name",
469
- rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
470
- });
471
- const E = d(() => {
472
- const t = e.value.table.useDialog && !e.value.table.show, a = b.value.showTable;
473
- return {
474
- component: t ? xt : bt,
475
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
476
- props: t ? {
477
- backgroundColor: e.value.table.th.backgroundColor,
478
- color: e.value.table.th.color,
479
- headerColor: e.value.table.th.color,
480
- headerBg: e.value.table.th.backgroundColor,
481
- isFullscreen: O.value,
482
- fullscreenParent: A.value,
483
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
484
- isCursorPointer: R.value
485
- } : {
486
- hideDetails: !0,
487
- config: {
488
- open: a,
489
- maxHeight: 1e4,
490
- body: {
491
- backgroundColor: e.value.style.chart.backgroundColor,
492
- color: e.value.style.chart.color
493
- },
494
- head: {
495
- backgroundColor: e.value.style.chart.backgroundColor,
496
- color: e.value.style.chart.color
497
- }
498
- }
499
- }
500
- };
501
- });
502
- Q(() => b.value.showTable, (t) => {
503
- e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
504
- });
505
- function qe() {
506
- b.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
507
- }
508
- const Rt = d(() => e.value.style.chart.backgroundColor), Bt = d(() => e.value.style.chart.title), { exportSvg: Wt, getSvg: Et } = hl({
509
- svg: he,
510
- title: Bt,
511
- backgroundColor: Rt
512
- });
513
- async function Je({ isCb: t }) {
514
- X.value = !0, await ot();
515
- try {
516
- if (t) {
517
- const { blob: a, url: l, text: o, dataUrl: n } = await Et();
518
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: n }));
519
- } else
520
- await Promise.resolve(Wt());
521
- } finally {
522
- X.value = !1;
523
- }
524
- }
525
- function Gt(t) {
526
- if (t?.stage === "start") {
527
- V.value = !0;
528
- return;
529
- }
530
- if (t?.stage === "end") {
531
- V.value = !1;
532
- return;
533
- }
534
- Ee();
535
- }
536
- async function Ke() {
537
- if (_e("copyAlt", {
538
- config: e.value,
539
- dataset: ke.value
540
- }), !e.value.userOptions.callbacks.altCopy) {
541
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
542
- return;
543
- }
544
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
545
- config: e.value,
546
- dataset: ke.value
547
- }));
548
- }
549
- return ht({
550
- getData: It,
551
- getImage: Ft,
552
- generatePdf: We,
553
- generateCsv: Ce,
554
- generateImage: Ee,
555
- generateSvg: Je,
556
- toggleTable: Ve,
557
- toggleLabels: Xe,
558
- toggleTooltip: je,
559
- toggleAnnotator: we,
560
- toggleFullscreen: Ue,
561
- copyAlt: Ke
562
- }), (t, a) => (r(), u("div", {
563
- ref_key: "stripPlotChart",
564
- ref: A,
565
- class: H(`vue-data-ui-component vue-ui-strip-plot ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
566
- style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
567
- id: `strip-plot_${te.value}`,
568
- onMouseenter: a[1] || (a[1] = () => v(Me)(!0)),
569
- onMouseleave: a[2] || (a[2] = () => v(Me)(!1))
570
- }, [
571
- e.value.userOptions.buttons.annotator ? (r(), z(v(gt), {
572
- key: 0,
573
- svgRef: v(he),
574
- backgroundColor: e.value.style.chart.backgroundColor,
575
- color: e.value.style.chart.color,
576
- active: Z.value,
577
- isCursorPointer: R.value,
578
- onClose: we
579
- }, {
580
- "annotator-action-close": c(() => [
581
- h(t.$slots, "annotator-action-close", {}, void 0, !0)
582
- ]),
583
- "annotator-action-color": c(({ color: l }) => [
584
- h(t.$slots, "annotator-action-color", g(k({ color: l })), void 0, !0)
585
- ]),
586
- "annotator-action-draw": c(({ mode: l }) => [
587
- h(t.$slots, "annotator-action-draw", g(k({ mode: l })), void 0, !0)
588
- ]),
589
- "annotator-action-undo": c(({ disabled: l }) => [
590
- h(t.$slots, "annotator-action-undo", g(k({ disabled: l })), void 0, !0)
591
- ]),
592
- "annotator-action-redo": c(({ disabled: l }) => [
593
- h(t.$slots, "annotator-action-redo", g(k({ disabled: l })), void 0, !0)
594
- ]),
595
- "annotator-action-delete": c(({ disabled: l }) => [
596
- h(t.$slots, "annotator-action-delete", g(k({ disabled: l })), void 0, !0)
597
- ]),
598
- _: 3
599
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : f("", !0),
600
- $t.value ? (r(), u("div", {
601
- key: 1,
602
- ref_key: "noTitle",
603
- ref: De,
604
- class: "vue-data-ui-no-title-space",
605
- style: "height:36px; width: 100%;background:transparent"
606
- }, null, 512)) : f("", !0),
607
- e.value.style.chart.title.text ? (r(), u("div", {
608
- key: 2,
609
- ref_key: "chartTitle",
610
- ref: Oe,
611
- style: "width:100%;background:transparent;padding-bottom:24px"
612
- }, [
613
- (r(), z(gl, {
614
- key: `title_${Ie.value}`,
615
- config: {
616
- title: {
617
- cy: "donut-div-title",
618
- ...e.value.style.chart.title
619
- },
620
- subtitle: {
621
- cy: "donut-div-subtitle",
622
- ...e.value.style.chart.title.subtitle
623
- }
624
- }
625
- }, null, 8, ["config"]))
626
- ], 512)) : f("", !0),
627
- e.value.userOptions.show && U.value && (v(Re) || v(ce)) ? (r(), z(v(mt), {
628
- ref_key: "userOptionsRef",
629
- ref: oe,
630
- key: `user_option_${Pe.value}`,
631
- backgroundColor: e.value.style.chart.backgroundColor,
632
- color: e.value.style.chart.color,
633
- isPrinting: v(fe),
634
- isImaging: v(be),
635
- uid: te.value,
636
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
637
- hasPdf: e.value.userOptions.buttons.pdf,
638
- hasXls: e.value.userOptions.buttons.csv,
639
- hasImg: e.value.userOptions.buttons.img,
640
- hasSvg: e.value.userOptions.buttons.svg,
641
- hasTable: e.value.userOptions.buttons.table,
642
- hasLabel: e.value.userOptions.buttons.labels,
643
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
644
- hasAltCopy: e.value.userOptions.buttons.altCopy,
645
- isTooltip: b.value.showTooltip,
646
- isFullscreen: O.value,
647
- titles: { ...e.value.userOptions.buttonTitles },
648
- chartElement: A.value,
649
- position: e.value.userOptions.position,
650
- hasAnnotator: e.value.userOptions.buttons.annotator,
651
- isAnnotation: Z.value,
652
- callbacks: e.value.userOptions.callbacks,
653
- printScale: e.value.userOptions.print.scale,
654
- tableDialog: e.value.table.useDialog,
655
- isCursorPointer: R.value,
656
- onToggleFullscreen: Ue,
657
- onGeneratePdf: v(We),
658
- onGenerateCsv: Ce,
659
- onGenerateImage: Gt,
660
- onGenerateSvg: Je,
661
- onToggleTable: Ve,
662
- onToggleLabels: Xe,
663
- onToggleTooltip: je,
664
- onToggleAnnotator: we,
665
- onCopyAlt: Ke,
666
- style: G({
667
- visibility: v(Re) ? v(ce) ? "visible" : "hidden" : "visible"
668
- })
669
- }, tt({ _: 2 }, [
670
- t.$slots.menuIcon ? {
671
- name: "menuIcon",
672
- fn: c(({ isOpen: l, color: o }) => [
673
- h(t.$slots, "menuIcon", g(k({ isOpen: l, color: o })), void 0, !0)
674
- ]),
675
- key: "0"
676
- } : void 0,
677
- t.$slots.optionTooltip ? {
678
- name: "optionTooltip",
679
- fn: c(() => [
680
- h(t.$slots, "optionTooltip", {}, void 0, !0)
681
- ]),
682
- key: "1"
683
- } : void 0,
684
- t.$slots.optionPdf ? {
685
- name: "optionPdf",
686
- fn: c(() => [
687
- h(t.$slots, "optionPdf", {}, void 0, !0)
688
- ]),
689
- key: "2"
690
- } : void 0,
691
- t.$slots.optionCsv ? {
692
- name: "optionCsv",
693
- fn: c(() => [
694
- h(t.$slots, "optionCsv", {}, void 0, !0)
695
- ]),
696
- key: "3"
697
- } : void 0,
698
- t.$slots.optionImg ? {
699
- name: "optionImg",
700
- fn: c(() => [
701
- h(t.$slots, "optionImg", {}, void 0, !0)
702
- ]),
703
- key: "4"
704
- } : void 0,
705
- t.$slots.optionSvg ? {
706
- name: "optionSvg",
707
- fn: c(() => [
708
- h(t.$slots, "optionSvg", {}, void 0, !0)
709
- ]),
710
- key: "5"
711
- } : void 0,
712
- t.$slots.optionTable ? {
713
- name: "optionTable",
714
- fn: c(() => [
715
- h(t.$slots, "optionTable", {}, void 0, !0)
716
- ]),
717
- key: "6"
718
- } : void 0,
719
- t.$slots.optionLabels ? {
720
- name: "optionLabels",
721
- fn: c(() => [
722
- h(t.$slots, "optionLabels", {}, void 0, !0)
723
- ]),
724
- key: "7"
725
- } : void 0,
726
- t.$slots.optionFullscreen ? {
727
- name: "optionFullscreen",
728
- fn: c(({ toggleFullscreen: l, isFullscreen: o }) => [
729
- h(t.$slots, "optionFullscreen", g(k({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
730
- ]),
731
- key: "8"
732
- } : void 0,
733
- t.$slots.optionAnnotator ? {
734
- name: "optionAnnotator",
735
- fn: c(({ toggleAnnotator: l, isAnnotator: o }) => [
736
- h(t.$slots, "optionAnnotator", g(k({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
737
- ]),
738
- key: "9"
739
- } : void 0,
740
- t.$slots.optionAltCopy ? {
741
- name: "optionAltCopy",
742
- fn: c(({ altCopy: l }) => [
743
- h(t.$slots, "optionAltCopy", g(k({ altCopy: l })), void 0, !0)
744
- ]),
745
- key: "10"
746
- } : void 0
747
- ]), 1032, ["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"])) : f("", !0),
748
- (r(), u("svg", {
749
- ref_key: "svgRef",
750
- ref: he,
751
- xmlns: v(Zt),
752
- class: H({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
753
- viewBox: `0 0 ${I.value} ${$.value}`,
754
- style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
755
- }, [
756
- Ae(v(kt)),
757
- t.$slots["chart-background"] ? (r(), u("foreignObject", {
758
- key: 0,
759
- x: s.value.left,
760
- y: s.value.top,
761
- width: Math.max(0.1, s.value.width),
762
- height: Math.max(0.1, s.value.height),
763
- style: {
764
- pointerEvents: "none"
765
- }
766
- }, [
767
- h(t.$slots, "chart-background", {}, void 0, !0)
768
- ], 8, Al)) : f("", !0),
769
- e.value.style.chart.grid.show ? (r(), u("g", Ll, [
770
- e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", $l, [
771
- (r(!0), u(x, null, S(He.value, (l) => (r(), u("line", {
772
- x1: l.x1,
773
- x2: l.x2,
774
- y1: l.y,
775
- y2: l.y,
776
- stroke: e.value.style.chart.grid.horizontalGrid.stroke,
777
- "stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
778
- "stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
779
- "stroke-linecap": "round"
780
- }, null, 8, Tl))), 256))
781
- ])) : f("", !0),
782
- e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Sl, [
783
- (r(!0), u(x, null, S(w.value, (l, o) => (r(), u("line", {
784
- x1: s.value.left + (o + 1) * s.value.stripWidth,
785
- x2: s.value.left + (o + 1) * s.value.stripWidth,
786
- y1: s.value.top,
787
- y2: s.value.bottom,
788
- stroke: e.value.style.chart.grid.verticalGrid.stroke,
789
- "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
790
- "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
791
- "stroke-linecap": "round"
792
- }, null, 8, _l))), 256))
793
- ])) : f("", !0),
794
- C("line", {
795
- x1: s.value.left,
796
- x2: s.value.left,
797
- y1: s.value.top,
798
- y2: s.value.bottom,
799
- stroke: e.value.style.chart.grid.stroke,
800
- "stroke-width": e.value.style.chart.grid.strokeWidth,
801
- "stroke-linecap": "round"
802
- }, null, 8, Pl),
803
- C("line", {
804
- x1: s.value.left,
805
- x2: s.value.right,
806
- y1: s.value.bottom,
807
- y2: s.value.bottom,
808
- stroke: e.value.style.chart.grid.stroke,
809
- "stroke-width": e.value.style.chart.grid.strokeWidth,
810
- "stroke-linecap": "round"
811
- }, null, 8, Ol)
812
- ])) : f("", !0),
813
- e.value.style.chart.labels.yAxisLabels.show ? (r(), u("g", {
814
- key: 2,
815
- ref_key: "scaleLabels",
816
- ref: ne
817
- }, [
818
- (r(!0), u(x, null, S(He.value, (l, o) => (r(), u("text", {
819
- x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
820
- y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
821
- fill: e.value.style.chart.labels.yAxisLabels.color,
822
- "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
823
- "text-anchor": "end"
824
- }, _(v(Te)(
825
- e.value.style.chart.labels.formatter,
826
- l.value,
827
- v(ee)({
828
- p: e.value.style.chart.labels.prefix,
829
- v: l.value,
830
- s: e.value.style.chart.labels.suffix,
831
- r: e.value.style.chart.labels.yAxisLabels.rounding
832
- }),
833
- { datapoint: l, seriesIndex: o }
834
- )), 9, zl))), 256))
835
- ], 512)) : f("", !0),
836
- e.value.style.chart.labels.xAxisLabels.show ? (r(), u("g", {
837
- key: 3,
838
- ref_key: "timeLabelsEls",
839
- ref: j
840
- }, [
841
- (r(!0), u(x, null, S(Ye.value, (l, o) => (r(), u("g", null, [
842
- String(l).includes(`
843
- `) ? (r(), u("text", {
844
- key: 1,
845
- class: "vue-ui-strip-plot-category-name",
846
- transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
847
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
848
- fill: e.value.style.chart.labels.xAxisLabels.color,
849
- "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
850
- innerHTML: v(Qt)({
851
- content: v(el)(String(l)),
852
- fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
853
- fill: e.value.style.chart.labels.xAxisLabels.color,
854
- x: 0,
855
- y: 0
856
- })
857
- }, null, 8, Nl)) : (r(), u("text", {
858
- key: 0,
859
- class: "vue-ui-strip-plot-category-name",
860
- transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
861
- "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
862
- fill: e.value.style.chart.labels.xAxisLabels.color,
863
- "text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
864
- }, _(String(l)), 9, Dl))
865
- ]))), 256))
866
- ], 512)) : f("", !0),
867
- e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
868
- key: 4,
869
- ref_key: "yAxisLabel",
870
- ref: re,
871
- fill: e.value.style.chart.labels.axis.color,
872
- "font-size": e.value.style.chart.labels.axis.fontSize,
873
- transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
874
- "text-anchor": "middle"
875
- }, _(e.value.style.chart.labels.axis.yLabel), 9, Il)) : f("", !0),
876
- e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
877
- key: 5,
878
- ref_key: "xAxisLabel",
879
- ref: se,
880
- fill: e.value.style.chart.labels.axis.color,
881
- "font-size": e.value.style.chart.labels.axis.fontSize,
882
- x: s.value.left + s.value.width / 2,
883
- y: $.value - e.value.style.chart.labels.axis.fontSize / 3,
884
- "text-anchor": "middle"
885
- }, _(e.value.style.chart.labels.axis.xLabel), 9, Fl)) : f("", !0),
886
- y.value ? (r(), u(x, { key: 6 }, [
887
- C("line", {
888
- x1: s.value.left,
889
- x2: s.value.right,
890
- y1: y.value.y,
891
- y2: y.value.y,
892
- stroke: y.value.color,
893
- "stroke-width": 1,
894
- class: H({ "select-circle": e.value.useCssAnimation })
895
- }, null, 10, Ml),
896
- C("circle", {
897
- cx: s.value.left,
898
- cy: y.value.y,
899
- r: 3,
900
- fill: y.value.color,
901
- class: H({ "select-circle": e.value.useCssAnimation })
902
- }, null, 10, Rl),
903
- C("circle", {
904
- cx: s.value.right,
905
- cy: y.value.y,
906
- r: 3,
907
- fill: y.value.color,
908
- class: H({ "select-circle": e.value.useCssAnimation })
909
- }, null, 10, Bl)
910
- ], 64)) : f("", !0),
911
- C("defs", null, [
912
- (r(!0), u(x, null, S(w.value, (l) => (r(), u("radialGradient", {
913
- id: l.id,
914
- fy: "30%"
915
- }, [
916
- C("stop", {
917
- offset: "10%",
918
- "stop-color": v(tl)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
919
- }, null, 8, El),
920
- C("stop", {
921
- offset: "90%",
922
- "stop-color": v(ll)(l.color, 0.1)
923
- }, null, 8, Gl),
924
- C("stop", {
925
- offset: "100%",
926
- "stop-color": l.color
927
- }, null, 8, Hl)
928
- ], 8, Wl))), 256))
929
- ]),
930
- (r(!0), u(x, null, S(ke.value, (l, o) => (r(), u(x, null, [
931
- (r(!0), u(x, null, S(l.plots, (n, p) => (r(), z(ml, lt({ ref_for: !0 }, t.$attrs, {
932
- plot: { x: n.x, y: Ne.value ? n.y : s.value.top },
933
- radius: y.value && y.value.id === n.id ? ye.value * 1.5 : ye.value,
934
- shape: e.value.style.chart.plots.shape,
935
- stroke: e.value.style.chart.plots.stroke,
936
- strokeWidth: e.value.style.chart.plots.strokeWidth,
937
- color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
938
- style: `transition: all 0.2s ease-in-out; opacity:${y.value ? y.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${B.value ? `transition-delay:${p * 50}ms` : ""}`,
939
- class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && B.value && !v(ue), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !B.value },
940
- onMouseenter: (F) => Nt({ datapoint: n, seriesIndex: p }),
941
- onMouseleave: (F) => zt({ datapoint: n, seriesIndex: p }),
942
- onClick: (F) => Dt({ datapoint: n, seriesIndex: p })
943
- }), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
944
- b.value.dataLabels.show ? (r(), u("g", Ul, [
945
- (r(!0), u(x, null, S(l.plots, (n, p) => (r(), u(x, null, [
946
- p === l.plots.length - 1 || y.value && y.value.id === n.id && !b.value.showTooltip ? (r(), u("text", {
947
- key: 0,
948
- x: n.x,
949
- y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - ye.value * (y.value && y.value.id === n.id && !b.value.showTooltip ? 2 : 1.5),
950
- "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
951
- fill: e.value.style.chart.labels.bestPlotLabel.color,
952
- "text-anchor": "middle",
953
- style: G(`opacity:${e.value.useCssAnimation && B.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
954
- }, _(n.name) + " " + _(e.value.style.chart.labels.bestPlotLabel.showValue ? v(Te)(
955
- e.value.style.chart.labels.formatter,
956
- n.value,
957
- v(ee)({
958
- p: `(${e.value.style.chart.labels.prefix}`,
959
- v: n.value,
960
- s: `${e.value.style.chart.labels.suffix})`,
961
- r: e.value.style.chart.labels.bestPlotLabel.rounding
962
- }),
963
- { datapoint: n, seriesIndex: p }
964
- ) : ""), 13, Vl)) : f("", !0)
965
- ], 64))), 256))
966
- ])) : f("", !0)
967
- ], 64))), 256)),
968
- h(t.$slots, "svg", {
969
- svg: {
970
- ...s.value,
971
- isPrintingImg: v(fe) | v(be) | V.value,
972
- isPrintingSvg: X.value
973
- }
974
- }, void 0, !0)
975
- ], 14, wl)),
976
- t.$slots.watermark ? (r(), u("div", Xl, [
977
- h(t.$slots, "watermark", g(k({ isPrinting: v(fe) || v(be) || V.value || X.value })), void 0, !0)
978
- ])) : f("", !0),
979
- t.$slots.source ? (r(), u("div", {
980
- key: 5,
981
- ref_key: "source",
982
- ref: ze,
983
- dir: "auto"
984
- }, [
985
- h(t.$slots, "source", {}, void 0, !0)
986
- ], 512)) : f("", !0),
987
- Ae(v(pt), {
988
- teleportTo: e.value.style.chart.tooltip.teleportTo,
989
- show: b.value.showTooltip && le.value,
990
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
991
- color: e.value.style.chart.tooltip.color,
992
- borderRadius: e.value.style.chart.tooltip.borderRadius,
993
- borderColor: e.value.style.chart.tooltip.borderColor,
994
- borderWidth: e.value.style.chart.tooltip.borderWidth,
995
- fontSize: e.value.style.chart.tooltip.fontSize,
996
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
997
- position: e.value.style.chart.tooltip.position,
998
- offsetY: e.value.style.chart.tooltip.offsetY,
999
- parent: A.value,
1000
- content: ae.value,
1001
- isFullscreen: O.value,
1002
- isCustom: v(it)(e.value.style.chart.tooltip.customFormat),
1003
- smooth: e.value.style.chart.tooltip.smooth,
1004
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1005
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1006
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1007
- }, {
1008
- "tooltip-before": c(() => [
1009
- h(t.$slots, "tooltip-before", g(k({ ...xe.value })), void 0, !0)
1010
- ]),
1011
- "tooltip-after": c(() => [
1012
- h(t.$slots, "tooltip-after", g(k({ ...xe.value })), void 0, !0)
1013
- ]),
1014
- _: 3
1015
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1016
- U.value && e.value.userOptions.buttons.table ? (r(), z(jt(E.value.component), lt({ key: 6 }, E.value.props, {
1017
- ref_key: "tableUnit",
1018
- ref: M,
1019
- onClose: qe
1020
- }), tt({
1021
- content: c(() => [
1022
- (r(), z(v(yt), {
1023
- key: `table_${Fe.value}`,
1024
- colNames: K.value.colNames,
1025
- head: K.value.head,
1026
- body: K.value.body,
1027
- config: K.value.config,
1028
- title: e.value.table.useDialog ? "" : E.value.title,
1029
- withCloseButton: !e.value.table.useDialog,
1030
- isCursorPointer: R.value,
1031
- onClose: qe
1032
- }, {
1033
- th: c(({ th: l }) => [
1034
- C("div", {
1035
- innerHTML: l,
1036
- style: { display: "flex", "align-items": "center" }
1037
- }, null, 8, jl)
1038
- ]),
1039
- td: c(({ td: l }) => [
1040
- at(_(l.name || l), 1)
1041
- ]),
1042
- _: 1
1043
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1044
- ]),
1045
- _: 2
1046
- }, [
1047
- e.value.table.useDialog ? {
1048
- name: "title",
1049
- fn: c(() => [
1050
- at(_(E.value.title), 1)
1051
- ]),
1052
- key: "0"
1053
- } : void 0,
1054
- e.value.table.useDialog ? {
1055
- name: "actions",
1056
- fn: c(() => [
1057
- C("button", {
1058
- tabindex: "0",
1059
- class: "vue-ui-user-options-button",
1060
- onClick: a[0] || (a[0] = (l) => Ce(e.value.userOptions.callbacks.csv)),
1061
- style: G({ cursor: R.value ? "pointer" : "default" })
1062
- }, [
1063
- Ae(v(ft), {
1064
- name: "fileCsv",
1065
- stroke: E.value.props.color
1066
- }, null, 8, ["stroke"])
1067
- ], 4)
1068
- ]),
1069
- key: "1"
1070
- } : void 0
1071
- ]), 1040)) : f("", !0),
1072
- h(t.$slots, "skeleton", {}, () => [
1073
- v(ue) ? (r(), z(vl, { key: 0 })) : f("", !0)
1074
- ], !0)
1075
- ], 46, Cl));
1076
- }
1077
- }, ha = /* @__PURE__ */ xl(Yl, [["__scopeId", "data-v-1ba81519"]]);
1078
- export {
1079
- ha as default
1080
- };