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,1059 +0,0 @@
1
- import { defineAsyncComponent as _, computed as p, ref as d, toRefs as jt, onMounted as qt, watch as ne, shallowRef as qe, onBeforeUnmount as Ge, watchEffect as Ze, openBlock as i, createElementBlock as c, normalizeStyle as L, normalizeClass as Je, createBlock as Y, unref as h, withCtx as g, renderSlot as y, normalizeProps as $, guardReactiveProps as S, createCommentVNode as b, createSlots as Ke, createVNode as we, Fragment as w, renderList as M, createElementVNode as se, toDisplayString as j, mergeProps as Le, resolveDynamicComponent as Gt, createTextVNode as Qe, nextTick as Zt } from "vue";
2
- import { j as et, t as tt, m as Jt, p as ue, n as Kt, o as at, q as lt, r as Qt, s as ot, k as ea, l as ta, W as nt, a8 as q, c as aa, b as la, I as oa, X as na, Z as xe, a0 as sa, a1 as ua } from "./lib-GwPnJSrY.js";
3
- import { t as st, u as ra } from "./useResponsive-DfdjqQps.js";
4
- import { u as ia } from "./useConfig-CIgyKZ6R.js";
5
- import { u as ca, B as va } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as ha } from "./usePrinter-DiK5R6k-.js";
7
- import { u as da } from "./useSvgExport-ByUukOZt.js";
8
- import { u as $e } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as ya } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as fa } from "./useTimeLabels-C-A2uZKi.js";
11
- import { u as pa } from "./useUserOptionState-BIvW1Kz7.js";
12
- import { u as ma } from "./useChartAccessibility-9icAAmYg.js";
13
- import { u as ga } from "./useTimeLabelCollider-CIsgDrl9.js";
14
- import ba from "./vue_ui_bump-CIht647H.js";
15
- import ka from "./Title-BfyrP-jp.js";
16
- import Ca from "./BaseDraggableDialog-DSpKTn3R.js";
17
- import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const La = ["id"], xa = ["xmlns", "viewBox"], $a = ["x", "y", "width", "height"], Sa = ["d", "stroke", "stroke-width", "onMouseenter"], Aa = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ma = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ta = ["x", "y", "fill", "font-size"], Pa = ["onMouseenter", "onMouseleave", "onClick"], Ia = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Oa = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Ra = { key: 0 }, Ha = { key: 1 }, Da = ["text-anchor", "font-size", "font-weight", "fill", "transform"], _a = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Wa = {
19
- key: 4,
20
- class: "vue-data-ui-watermark"
21
- }, Ea = ["innerHTML"], Fa = {
22
- __name: "vue-ui-bump",
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: ["copyAlt"],
38
- setup(ut, { expose: rt, emit: it }) {
39
- const ct = _(() => import("./BaseIcon-CNx8Tzl5.js")), vt = _(() => import("./vue-ui-accordion-BGHTqIBt.js")), ht = _(() => import("./DataTable-Bo1pmAqG.js")), dt = _(() => import("./PenAndPaper-DWV1FMIi.js")), yt = _(() => import("./UserOptions-CrLqEimB.js")), ft = _(() => import("./PackageVersion-DN9d0ME5.js")), { vue_ui_bump: pt } = ia(), { isThemeValid: mt, warnInvalidTheme: gt } = ya(), C = ut, bt = it, G = p({
40
- get() {
41
- return !!C.dataset && C.dataset.length;
42
- },
43
- set(a) {
44
- return a;
45
- }
46
- }), T = d(null), re = d(et()), Se = d(0), Ae = d(null), Me = d(null), Te = d(null), Z = d(!1), ie = d(!1), Pe = d(0), kt = d(0), W = d(null), ce = d(null), Ie = d(!1), J = d(!1), K = d(!1), ve = d(null), he = d(null), de = d(null), m = d(null), e = d(ye()), E = p(() => e.value.userOptions.useCursorPointer), Ct = p(() => tt({
47
- defaultConfig: {
48
- userOptions: { show: !1 },
49
- style: {
50
- chart: {
51
- backgroundColor: "#99999930",
52
- layout: {
53
- timeLabels: { show: !1 },
54
- lines: {
55
- coatingColor: "#4A4A4A"
56
- },
57
- plots: {
58
- stroke: "#4A4A4A",
59
- labels: {
60
- show: !1,
61
- displayedValue: "rank"
62
- }
63
- },
64
- nameLabels: {
65
- useSerieColor: !0
66
- }
67
- }
68
- }
69
- }
70
- },
71
- userConfig: e.value.skeletonConfig ?? {}
72
- })), { loading: Q, FINAL_DATASET: wt, manualLoading: ee } = ca({
73
- ...jt(C),
74
- FINAL_CONFIG: e,
75
- prepareConfig: ye,
76
- skeletonDataset: C.config?.skeletonDataset ?? [
77
- { name: "————", values: [1, 1, 1, 2, 2, 2, 3, 3, 2, 2], color: "#4A4A4A" },
78
- { name: "————", values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3], color: "#6A6A6A" },
79
- { name: "————", values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1], color: "#8A8A8A" }
80
- ],
81
- skeletonConfig: tt({
82
- defaultConfig: e.value,
83
- userConfig: Ct.value
84
- })
85
- });
86
- qt(We);
87
- function ye() {
88
- const a = $e({
89
- userConfig: C.config,
90
- defaultConfig: pt
91
- });
92
- let l = {};
93
- const t = a.theme;
94
- if (t)
95
- if (!mt.value(a))
96
- gt(a), l = a;
97
- else {
98
- const o = $e({
99
- userConfig: ba[t] || C.config,
100
- defaultConfig: a
101
- });
102
- l = {
103
- ...$e({
104
- userConfig: C.config,
105
- defaultConfig: o
106
- }),
107
- customPalette: a.customPalette.length ? a.customPalette : Jt[t] || ue
108
- };
109
- }
110
- else
111
- l = a;
112
- return l;
113
- }
114
- const { userOptionsVisible: fe, setUserOptionsVisibility: ze, keepUserOptionState: Oe } = pa({ config: e.value }), { svgRef: pe } = ma({ config: e.value.style.chart.title });
115
- function Lt() {
116
- Ie.value = !0, ze(!0);
117
- }
118
- function xt() {
119
- ze(!1), Ie.value = !1;
120
- }
121
- const z = d({
122
- showTable: e.value.table.show
123
- });
124
- ne(e, () => {
125
- z.value = {
126
- showTable: e.value.table.show
127
- };
128
- }, { immediate: !0 }), ne(() => C.config, (a) => {
129
- Q.value || (e.value = ye()), fe.value = !e.value.userOptions.showOnChartHover, We(), Pe.value += 1, kt.value += 1, z.value.showTable = e.value.table.show, A.value.width = e.value.style.chart.width, A.value.height = e.value.style.chart.height, A.value.paddingRatio = {
130
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
131
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
132
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
133
- left: e.value.style.chart.padding.left / e.value.style.chart.width
134
- };
135
- }), ne(() => C.dataset, (a) => {
136
- Array.isArray(a) && a.length > 0 && (ee.value = !1);
137
- }, { deep: !0 });
138
- const { isPrinting: me, isImaging: ge, generatePdf: Re, generateImage: He } = ha({
139
- elementId: `bump_${re.value}`,
140
- fileName: e.value.style.chart.title.text || "vue-ui-bump",
141
- options: e.value.userOptions.print
142
- }), $t = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = d({
143
- width: e.value.style.chart.width,
144
- height: e.value.style.chart.height,
145
- paddingRatio: {
146
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
147
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
148
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
149
- left: e.value.style.chart.padding.left / e.value.style.chart.width
150
- }
151
- }), St = p(() => Kt(e.value.customPalette)), P = qe(null), H = qe(null), De = d(null), _e = p(() => !!e.value.debug);
152
- function We() {
153
- if (at(C.dataset) ? (lt({
154
- componentName: "VueUiBump",
155
- type: "dataset",
156
- debug: _e.value
157
- }), ee.value = !0) : C.dataset.forEach((a, l) => {
158
- Qt({
159
- datasetObject: a,
160
- requiredAttributes: ["name", "values"]
161
- }).forEach((t) => {
162
- G.value = !1, lt({
163
- componentName: "VueUiBump",
164
- type: "datasetSerieAttribute",
165
- property: t,
166
- index: l,
167
- debug: _e.value
168
- }), ee.value = !0;
169
- });
170
- }), at(C.dataset) || (ee.value = e.value.loading), setTimeout(() => {
171
- ie.value = !0;
172
- }, 10), e.value.responsive) {
173
- const a = st(() => {
174
- ie.value = !1;
175
- const { width: l, height: t } = ra({
176
- chart: T.value,
177
- noTitle: Me.value,
178
- title: e.value.style.chart.title.text ? Ae.value : null,
179
- legend: null,
180
- slicer: null,
181
- source: Te.value
182
- });
183
- requestAnimationFrame(() => {
184
- A.value.width = l, A.value.height = t - 12, clearTimeout(De.value), De.value = setTimeout(() => {
185
- ie.value = !0;
186
- }, 10);
187
- });
188
- });
189
- P.value && (H.value && P.value.unobserve(H.value), P.value.disconnect()), P.value = new ResizeObserver(a), H.value = T.value.parentNode, P.value.observe(H.value);
190
- }
191
- }
192
- Ge(() => {
193
- P.value && (H.value && P.value.unobserve(H.value), P.value.disconnect());
194
- });
195
- const te = p(() => wt.value.map((a, l) => {
196
- const t = ot(a.color) || St.value[l] || ue[l] || ue[l % ue.length];
197
- return {
198
- ...a,
199
- absoluteIndex: l,
200
- id: et(),
201
- color: t
202
- };
203
- })), D = p(() => Math.max(...te.value.map((a) => a.values.length)));
204
- function At(a) {
205
- const l = a.map(() => Array(D.value).fill(null));
206
- for (let t = 0; t < D.value; t += 1) {
207
- const o = a.map((n, s) => ({
208
- seriesIndex: s,
209
- value: n.values?.[t],
210
- previousPosition: t > 0 ? l[s][t - 1] : s
211
- })).filter((n) => Number.isFinite(n.value));
212
- o.sort((n, s) => s.value !== n.value ? s.value - n.value : n.previousPosition - s.previousPosition);
213
- for (let n = 0; n < o.length; n += 1) {
214
- const s = o[n];
215
- l[s.seriesIndex][t] = n;
216
- }
217
- }
218
- return l;
219
- }
220
- function Mt() {
221
- let a = 0;
222
- return ve.value && (a = Array.from(ve.value.querySelectorAll("tspan")).reduce((t, o) => {
223
- const n = o.getComputedTextLength();
224
- return n > t ? n : t;
225
- }, 0)), a;
226
- }
227
- function Tt() {
228
- let a = 0;
229
- return he.value && (a = Array.from(he.value.querySelectorAll("tspan")).reduce((t, o) => {
230
- const n = o.getComputedTextLength();
231
- return n > t ? n : t;
232
- }, 0)), a;
233
- }
234
- const Ee = d(0), Pt = st((a) => {
235
- Ee.value = a;
236
- }, 100);
237
- Ze((a) => {
238
- const l = de.value;
239
- if (!l) return;
240
- const t = new ResizeObserver((o) => {
241
- Pt(o[0].contentRect.height);
242
- });
243
- t.observe(l), a(() => t.disconnect());
244
- }), Ge(() => {
245
- Ee.value = 0;
246
- });
247
- const It = p(() => {
248
- const a = e.value.style.chart.layout.timeLabels;
249
- if (!a.show) return 0;
250
- const l = a.fontSize, t = a.rotation, o = Math.PI / 180 * t, n = F.value || [];
251
- if (!n.length) return 0;
252
- const s = n.reduce((U, X) => {
253
- const oe = String(X?.text ?? "").split(`
254
- `).length;
255
- return Math.max(U, oe);
256
- }, 1), u = n.reduce((U, X) => {
257
- const Ut = String(X?.text ?? "").split(`
258
- `).reduce((Xt, Yt) => Math.max(Xt, Yt.length), 0);
259
- return Math.max(U, Ut);
260
- }, 0), v = l * 1.3, f = s * v, k = u * l * (u === 1 ? 1 : 0.6), I = Math.abs(Math.sin(o)) * k + Math.abs(Math.cos(o)) * f, B = l * 0.3;
261
- return Math.max(0, I + Math.abs(a.offsetY) + B);
262
- }), r = p(() => {
263
- const { height: a, width: l } = A.value, { right: t, left: o } = A.value.paddingRatio;
264
- let n = Mt(), s = Tt();
265
- const u = e.value.style.chart.padding.top, v = l - l * t - s, f = l * o + n, k = l - l * t - l * o - n - s, I = a - u - e.value.style.chart.padding.bottom - It.value, B = u + I, U = u + I, X = Math.max(0, a), oe = Math.max(0, l);
266
- return {
267
- chartHeight: U,
268
- chartWidth: oe,
269
- top: u,
270
- right: Math.max(0, v),
271
- bottom: Math.max(0, B),
272
- left: Math.max(0, f),
273
- width: Math.max(0, k),
274
- height: Math.max(0, I),
275
- unitH: Math.max(0, I) / te.value.length,
276
- unitW: Math.max(0, k) / D.value,
277
- svgHeight: X
278
- };
279
- }), x = p(() => {
280
- if (!G.value && !Q.value) return [];
281
- const a = At(te.value);
282
- return te.value.map((l, t) => ({
283
- ...l,
284
- positions: a[t]
285
- })).map((l) => {
286
- const t = l.positions.map((s, u) => {
287
- const v = ea(
288
- e.value.style.chart.layout.plots.labels.formatter,
289
- l.values[u],
290
- ta({
291
- p: e.value.style.chart.layout.plots.labels.prefix,
292
- v: l.values[u],
293
- s: e.value.style.chart.layout.plots.labels.suffix,
294
- r: e.value.style.chart.layout.plots.labels.rounding
295
- })
296
- );
297
- return {
298
- name: l.name,
299
- id: l.id,
300
- x: r.value.left + u * r.value.unitW + r.value.unitW / 2,
301
- y: r.value.top + s * r.value.unitH + r.value.unitH / 2,
302
- value: l.values[u],
303
- displayValue: v,
304
- rank: l.positions[u] + 1,
305
- color: l.color,
306
- labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? nt(l.color) : ot(e.value.style.chart.layout.plots.labels.color) ?? nt(l.color)
307
- };
308
- }), o = t.filter((s) => q(s.value)), n = e.value.style.chart.layout.lines.smooth ? aa(o) : la(o);
309
- return {
310
- ...l,
311
- coordinates: t,
312
- path: n
313
- };
314
- });
315
- });
316
- function Fe(a, l, t, o) {
317
- const n = a.toSorted((u, v) => u.y - v.y);
318
- for (let u = 1; u < n.length; u += 1) {
319
- const v = n[u - 1], f = n[u];
320
- f.y < v.y + l && (f.y = v.y + l);
321
- }
322
- const s = n.length - 1;
323
- if (s >= 0 && n[s].y > o) {
324
- n[s].y = o;
325
- for (let u = s - 1; u >= 0; u -= 1) {
326
- const v = n[u + 1], f = n[u];
327
- f.y > v.y - l && (f.y = v.y - l);
328
- }
329
- }
330
- if (n.length && n[0].y < t) {
331
- const u = t - n[0].y;
332
- for (let v = 0; v < n.length; v += 1)
333
- n[v].y += u;
334
- }
335
- return n;
336
- }
337
- const Ve = p(() => {
338
- const a = [], l = [];
339
- x.value.forEach((f) => {
340
- const k = f.coordinates.filter((B) => Number.isFinite(B.rank));
341
- if (!k.length) return;
342
- a.push({ ...k[0] });
343
- const I = k[k.length - 1];
344
- l.push({ ...I });
345
- });
346
- const t = e.value.style.chart.layout.nameLabels.fontSize, o = t * 1.4, n = r.value.top + t, s = r.value.bottom - t, u = Fe(
347
- l,
348
- o,
349
- n,
350
- s
351
- );
352
- return {
353
- left: Fe(
354
- a,
355
- o,
356
- n,
357
- s
358
- ),
359
- right: u
360
- };
361
- });
362
- function zt(a) {
363
- const l = e.value.style.chart.layout.plots.labels.fontSize * 0.4, t = a.displayValue, o = t.length * (e.value.style.chart.layout.plots.labels.fontSize * (t.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, s = o + l * 2, u = n + l * 2, v = a.x - s / 2, f = a.y - u / 2, k = e.value.style.chart.layout.plots.strokeWidth;
364
- return {
365
- x: v - k / 2,
366
- y: f - k / 2,
367
- width: s + k,
368
- height: u + k,
369
- fill: a.color,
370
- stroke: e.value.style.chart.layout.plots.stroke,
371
- "stroke-width": k,
372
- rx: u / 2
373
- };
374
- }
375
- const O = d([]);
376
- let Ne = 0;
377
- Ze(() => {
378
- const a = ++Ne, l = e.value.style.chart.layout.timeLabels, t = l.values, o = l.datetimeFormatter, n = D.value;
379
- if (!n || !Array.isArray(t) || t.length === 0) {
380
- O.value = [];
381
- return;
382
- }
383
- (async () => {
384
- const s = await fa({
385
- values: t,
386
- maxDatapoints: n,
387
- formatter: o,
388
- start: 0,
389
- end: n
390
- });
391
- a === Ne && (O.value = s);
392
- })();
393
- });
394
- const Ot = p(() => {
395
- const a = e.value.style.chart.layout.timeLabels.modulo;
396
- return O.value.length ? Math.min(a, [...new Set(O.value.map((l) => l.text))].length) : a;
397
- }), F = p(() => {
398
- const a = e.value.style.chart.layout.timeLabels, l = O.value || [], t = O.value || [], o = 0, n = null, s = D.value, u = l.map((f) => f?.text ?? ""), v = t.map((f) => f?.text ?? "");
399
- return oa(
400
- !!a.showOnlyFirstAndLast,
401
- !!a.showOnlyAtModulo,
402
- Math.max(1, Ot.value || 1),
403
- u,
404
- v,
405
- o,
406
- n,
407
- s
408
- );
409
- }), Rt = p(() => A.value.width), Ht = p(() => A.value.height), Dt = p(() => ({
410
- start: 0,
411
- end: D.value
412
- }));
413
- ga({
414
- timeLabelsEls: de,
415
- timeLabels: O,
416
- slicer: Dt,
417
- configRef: e,
418
- rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
419
- autoRotatePath: ["style", "chart", "layout", "timeLabels", "autoRotate", "enable"],
420
- isAutoSize: !1,
421
- width: Rt,
422
- height: Ht,
423
- rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
424
- });
425
- const ae = d(!1);
426
- function be() {
427
- ae.value = !ae.value;
428
- }
429
- function Be(a) {
430
- Z.value = a, Se.value += 1;
431
- }
432
- function Ue() {
433
- z.value.showTable = !z.value.showTable;
434
- }
435
- ne(() => z.value.showTable, (a) => {
436
- e.value.table.show || (a && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
437
- });
438
- function Xe() {
439
- z.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
440
- }
441
- function _t() {
442
- return x.value;
443
- }
444
- function ke(a = null) {
445
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...F.value.map((v) => v?.text ?? "")], o = x.value.map((v) => [
446
- v.name,
447
- ...v.coordinates.map((f) => `${f.displayValue}`)
448
- ]), n = x.value.map((v) => [
449
- v.name,
450
- ...v.coordinates.map((f) => `${f.rank}`)
451
- ]), s = l.concat([[e.value.table.columnNames.values]]).concat([t]).concat(o).concat([[""], [e.value.table.columnNames.ranking], [t]]).concat(n), u = sa(s);
452
- a ? a(u) : ua({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-bump" });
453
- }
454
- const V = p(() => {
455
- const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
456
- return {
457
- component: a ? Ca : vt,
458
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
459
- props: a ? {
460
- backgroundColor: e.value.table.th.backgroundColor,
461
- color: e.value.table.th.color,
462
- headerColor: e.value.table.th.color,
463
- headerBg: e.value.table.th.backgroundColor,
464
- isFullscreen: Z.value,
465
- fullscreenParent: T.value,
466
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
467
- isCursorPointer: E.value
468
- } : {
469
- hideDetails: !0,
470
- config: {
471
- open: l,
472
- maxHeight: 1e4,
473
- body: {
474
- backgroundColor: e.value.style.chart.backgroundColor,
475
- color: e.value.style.chart.color
476
- },
477
- head: {
478
- backgroundColor: e.value.style.chart.backgroundColor,
479
- color: e.value.style.chart.color
480
- }
481
- }
482
- }
483
- };
484
- }), le = p(() => {
485
- const a = [""].concat(F.value.map((n) => n.text)), l = x.value.map((n, s) => [
486
- n.name,
487
- ...n.coordinates.map((u) => `${u.displayValue} (${u.rank})`)
488
- ]), t = {
489
- th: {
490
- backgroundColor: e.value.table.th.backgroundColor,
491
- color: e.value.table.th.color,
492
- outline: e.value.table.th.outline
493
- },
494
- td: {
495
- backgroundColor: e.value.table.td.backgroundColor,
496
- color: e.value.table.td.color,
497
- outline: e.value.table.td.outline
498
- },
499
- breakpoint: e.value.table.responsiveBreakpoint
500
- }, o = [e.value.table.columnNames.series];
501
- return { head: a, body: l, config: t, colNames: o };
502
- }), Wt = p(() => e.value.style.chart.backgroundColor), Et = p(() => e.value.style.chart.title), { exportSvg: Ft, getSvg: Vt } = da({
503
- svg: pe,
504
- title: Et,
505
- legend: null,
506
- legendItems: null,
507
- backgroundColor: Wt
508
- });
509
- async function Ye({ isCb: a }) {
510
- K.value = !0, await Zt();
511
- try {
512
- if (a) {
513
- const { blob: l, url: t, text: o, dataUrl: n } = await Vt();
514
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: t, text: o, dataUrl: n }));
515
- } else
516
- await Promise.resolve(Ft());
517
- } finally {
518
- K.value = !1;
519
- }
520
- }
521
- async function Nt({ scale: a = 2 } = {}) {
522
- if (!T.value) return;
523
- const { width: l, height: t } = T.value.getBoundingClientRect(), o = l / t, { imageUri: n, base64: s } = await img({ domElement: T.value, base64: !0, img: !0, scale: a });
524
- return {
525
- imageUri: n,
526
- base64: s,
527
- title: e.value.style.chart.title.text,
528
- width: l,
529
- height: t,
530
- aspectRatio: o
531
- };
532
- }
533
- function R(a, l) {
534
- m.value = l.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
535
- datapoint: a,
536
- seriesIndex: a?.pointIndex ?? null
537
- });
538
- }
539
- function N(a, l) {
540
- m.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
541
- datapoint: a,
542
- seriesIndex: a?.pointIndex ?? null
543
- });
544
- }
545
- function Ce(a, l) {
546
- e.value.events.datapointClick && e.value.events.datapointClick({
547
- datapoint: a,
548
- seriesIndex: a?.pointIndex ?? null
549
- });
550
- }
551
- function Bt(a) {
552
- if (a?.stage === "start") {
553
- J.value = !0;
554
- return;
555
- }
556
- if (a?.stage === "end") {
557
- J.value = !1;
558
- return;
559
- }
560
- He();
561
- }
562
- async function je() {
563
- if (bt("copyAlt", {
564
- config: e.value,
565
- dataset: x.value
566
- }), !e.value.userOptions.callbacks.altCopy) {
567
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
568
- return;
569
- }
570
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
571
- config: e.value,
572
- dataset: x.value
573
- }));
574
- }
575
- return rt({
576
- getData: _t,
577
- getImage: Nt,
578
- generatePdf: Re,
579
- generateCsv: ke,
580
- generateImage: He,
581
- generateSvg: Ye,
582
- toggleTable: Ue,
583
- toggleAnnotator: be,
584
- toggleFullscreen: Be,
585
- copyAlt: je
586
- }), (a, l) => (i(), c("div", {
587
- id: `bump_${re.value}`,
588
- ref_key: "bumpChart",
589
- ref: T,
590
- class: Je({ "vue-data-ui-component": !0, "vue-ui-bump": !0, "vue-data-ui-wrapper-fullscreen": Z.value }),
591
- style: L(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
592
- onMouseenter: Lt,
593
- onMouseleave: xt
594
- }, [
595
- e.value.userOptions.buttons.annotator ? (i(), Y(h(dt), {
596
- key: 0,
597
- svgRef: h(pe),
598
- backgroundColor: e.value.style.chart.backgroundColor,
599
- color: e.value.style.chart.color,
600
- active: ae.value,
601
- isCursorPointer: E.value,
602
- onClose: be
603
- }, {
604
- "annotator-action-close": g(() => [
605
- y(a.$slots, "annotator-action-close", {}, void 0, !0)
606
- ]),
607
- "annotator-action-color": g(({ color: t }) => [
608
- y(a.$slots, "annotator-action-color", $(S({ color: t })), void 0, !0)
609
- ]),
610
- "annotator-action-draw": g(({ mode: t }) => [
611
- y(a.$slots, "annotator-action-draw", $(S({ mode: t })), void 0, !0)
612
- ]),
613
- "annotator-action-undo": g(({ disabled: t }) => [
614
- y(a.$slots, "annotator-action-undo", $(S({ disabled: t })), void 0, !0)
615
- ]),
616
- "annotator-action-redo": g(({ disabled: t }) => [
617
- y(a.$slots, "annotator-action-redo", $(S({ disabled: t })), void 0, !0)
618
- ]),
619
- "annotator-action-delete": g(({ disabled: t }) => [
620
- y(a.$slots, "annotator-action-delete", $(S({ disabled: t })), void 0, !0)
621
- ]),
622
- _: 3
623
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : b("", !0),
624
- y(a.$slots, "userConfig", {}, void 0, !0),
625
- $t.value ? (i(), c("div", {
626
- key: 1,
627
- ref_key: "noTitle",
628
- ref: Me,
629
- class: "vue-data-ui-no-title-space",
630
- style: "height:36px; width: 100%;background:transparent"
631
- }, null, 512)) : b("", !0),
632
- e.value.style.chart.title.text ? (i(), c("div", {
633
- key: 2,
634
- ref_key: "chartTitle",
635
- ref: Ae,
636
- style: "width:100%;background:transparent;"
637
- }, [
638
- (i(), Y(ka, {
639
- key: `title_${Pe.value}`,
640
- config: {
641
- title: {
642
- cy: "bump-title",
643
- ...e.value.style.chart.title
644
- },
645
- subtitle: {
646
- cy: "bump-subtitle",
647
- ...e.value.style.chart.title.subtitle
648
- }
649
- }
650
- }, null, 8, ["config"]))
651
- ], 512)) : b("", !0),
652
- e.value.userOptions.show && G.value && (h(Oe) || h(fe)) ? (i(), Y(h(yt), {
653
- ref_key: "userOptionsRef",
654
- ref: ce,
655
- key: `user_option_${Se.value}`,
656
- backgroundColor: e.value.style.chart.backgroundColor,
657
- color: e.value.style.chart.color,
658
- isPrinting: h(me),
659
- isImaging: h(ge),
660
- uid: re.value,
661
- hasTooltip: !1,
662
- hasPdf: e.value.userOptions.buttons.pdf,
663
- hasImg: e.value.userOptions.buttons.img,
664
- hasSvg: e.value.userOptions.buttons.svg,
665
- hasXls: e.value.userOptions.buttons.csv,
666
- hasTable: e.value.userOptions.buttons.table,
667
- hasLabel: !1,
668
- hasAltCopy: e.value.userOptions.buttons.altCopy,
669
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
670
- isFullcreen: Z.value,
671
- chartElement: T.value,
672
- position: e.value.userOptions.position,
673
- titles: { ...e.value.userOptions.buttonTitles },
674
- hasAnnotator: e.value.userOptions.buttons.annotator,
675
- isAnnotation: ae.value,
676
- callbacks: e.value.userOptions.callbacks,
677
- printScale: e.value.userOptions.print.scale,
678
- tableDialog: e.value.table.useDialog,
679
- isCursorPointer: E.value,
680
- onToggleFullscreen: Be,
681
- onGeneratePdf: h(Re),
682
- onGenerateCsv: ke,
683
- onGenerateImage: Bt,
684
- onGenerateSvg: Ye,
685
- onToggleTable: Ue,
686
- onToggleAnnotator: be,
687
- onCopyAlt: je,
688
- style: L({
689
- visibility: h(Oe) ? h(fe) ? "visible" : "hidden" : "visible"
690
- })
691
- }, Ke({ _: 2 }, [
692
- a.$slots.menuIcon ? {
693
- name: "menuIcon",
694
- fn: g(({ isOpen: t, color: o }) => [
695
- y(a.$slots, "menuIcon", $(S({ isOpen: t, color: o })), void 0, !0)
696
- ]),
697
- key: "0"
698
- } : void 0,
699
- a.$slots.optionPdf ? {
700
- name: "optionPdf",
701
- fn: g(() => [
702
- y(a.$slots, "optionPdf", {}, void 0, !0)
703
- ]),
704
- key: "1"
705
- } : void 0,
706
- a.$slots.optionCsv ? {
707
- name: "optionCsv",
708
- fn: g(() => [
709
- y(a.$slots, "optionCsv", {}, void 0, !0)
710
- ]),
711
- key: "2"
712
- } : void 0,
713
- a.$slots.optionImg ? {
714
- name: "optionImg",
715
- fn: g(() => [
716
- y(a.$slots, "optionImg", {}, void 0, !0)
717
- ]),
718
- key: "3"
719
- } : void 0,
720
- a.$slots.optionSvg ? {
721
- name: "optionSvg",
722
- fn: g(() => [
723
- y(a.$slots, "optionSvg", {}, void 0, !0)
724
- ]),
725
- key: "4"
726
- } : void 0,
727
- a.$slots.optionTable ? {
728
- name: "optionTable",
729
- fn: g(() => [
730
- y(a.$slots, "optionTable", {}, void 0, !0)
731
- ]),
732
- key: "5"
733
- } : void 0,
734
- a.$slots.optionFullscreen ? {
735
- name: "optionFullscreen",
736
- fn: g(({ toggleFullscreen: t, isFullscreen: o }) => [
737
- y(a.$slots, "optionFullscreen", $(S({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
738
- ]),
739
- key: "6"
740
- } : void 0,
741
- a.$slots.optionAnnotator ? {
742
- name: "optionAnnotator",
743
- fn: g(({ toggleAnnotator: t, isAnnotator: o }) => [
744
- y(a.$slots, "optionAnnotator", $(S({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
745
- ]),
746
- key: "7"
747
- } : void 0,
748
- a.$slots.optionAltCopy ? {
749
- name: "optionAltCopy",
750
- fn: g(({ altCopy: t }) => [
751
- y(a.$slots, "optionAltCopy", $(S({ altCopy: t })), void 0, !0)
752
- ]),
753
- key: "8"
754
- } : void 0
755
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasAltCopy", "hasFullscreen", "isFullcreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : b("", !0),
756
- (i(), c("svg", {
757
- ref_key: "svgRef",
758
- ref: pe,
759
- xmlns: h(na),
760
- viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.svgHeight <= 0 ? 10 : r.value.svgHeight}`,
761
- class: Je({ "vue-data-ui-loading": h(Q), "no-transition": !e.value.useCssAnimation, "with-transition": e.value.useCssAnimation }),
762
- style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
763
- role: "img",
764
- "aria-live": "polite",
765
- preserveAspectRatio: "xMidYMid"
766
- }, [
767
- we(h(ft)),
768
- a.$slots["chart-background"] ? (i(), c("foreignObject", {
769
- key: 0,
770
- x: r.value.left,
771
- y: r.value.top,
772
- width: r.value.width <= 0 ? 10 : r.value.width,
773
- height: r.value.height <= 0 ? 10 : r.value.height,
774
- style: {
775
- pointerEvents: "none"
776
- }
777
- }, [
778
- y(a.$slots, "chart-background", {}, void 0, !0)
779
- ], 8, $a)) : b("", !0),
780
- (i(!0), c(w, null, M(x.value, (t) => (i(), c(w, null, [
781
- se("path", {
782
- class: "transition-opacity",
783
- d: `M${t.path}`,
784
- stroke: e.value.style.chart.layout.lines.coatingColor,
785
- "stroke-width": e.value.style.chart.layout.lines.strokeWidth + 2,
786
- "stroke-linecap": "round",
787
- "stroke-linejoin": "round",
788
- fill: "none",
789
- style: L({
790
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
791
- }),
792
- onMouseenter: (o) => m.value = t.id,
793
- onMouseleave: l[0] || (l[0] = (o) => m.value = null)
794
- }, null, 44, Sa),
795
- se("path", {
796
- class: "transition-opacity",
797
- d: `M${t.path}`,
798
- stroke: t.color,
799
- "stroke-width": e.value.style.chart.layout.lines.strokeWidth,
800
- "stroke-linecap": "round",
801
- "stroke-linejoin": "round",
802
- fill: "none",
803
- style: L({
804
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
805
- }),
806
- onMouseenter: (o) => R(t, t),
807
- onMouseleave: (o) => N(t),
808
- onClick: (o) => Ce(t)
809
- }, null, 44, Aa)
810
- ], 64))), 256)),
811
- (i(!0), c(w, null, M(x.value, (t) => (i(), c(w, null, [
812
- e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (i(!0), c(w, { key: 0 }, M(t.coordinates, (o, n) => (i(), c("circle", {
813
- class: "transition-opacity",
814
- cx: o.x,
815
- cy: o.y,
816
- r: e.value.style.chart.layout.plots.radius,
817
- fill: t.color,
818
- stroke: e.value.style.chart.layout.plots.stroke,
819
- "stroke-width": e.value.style.chart.layout.plots.strokeWidth,
820
- style: L({
821
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
822
- }),
823
- onMouseenter: (s) => R({ ...o, pointIndex: n }, t),
824
- onMouseleave: (s) => N({ ...o, pointIndex: n }),
825
- onClick: (s) => R({ ...o, pointIndex: n }, t)
826
- }, null, 44, Ma))), 256)) : b("", !0),
827
- e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (i(!0), c(w, { key: 1 }, M(t.coordinates, (o) => (i(), c("text", {
828
- class: "transition-opacity",
829
- x: o.x,
830
- y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
831
- fill: o.labelColor,
832
- "font-size": e.value.style.chart.layout.plots.labels.fontSize,
833
- "text-anchor": "middle",
834
- style: L({
835
- userSelect: "none",
836
- pointerEvents: "none",
837
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
838
- })
839
- }, j(o.rank), 13, Ta))), 256)) : b("", !0),
840
- e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (i(!0), c(w, { key: 2 }, M(t.coordinates, (o) => (i(), c(w, null, [
841
- h(q)(o.value) ? (i(), c("rect", Le({
842
- key: 0,
843
- class: "transition-opacity"
844
- }, { ref_for: !0 }, zt(o), {
845
- style: {
846
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
847
- },
848
- onMouseenter: (n) => R({ ...a.point, pointIndex: a.i }, t),
849
- onMouseleave: (n) => N({ ...a.point, pointIndex: a.i }),
850
- onClick: (n) => R({ ...a.point, pointIndex: a.i }, t)
851
- }), null, 16, Pa)) : b("", !0),
852
- h(q)(o.value) && e.value.style.chart.layout.plots.labels.show ? (i(), c("text", {
853
- key: 1,
854
- class: "transition-opacity",
855
- x: o.x,
856
- y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
857
- fill: o.labelColor,
858
- "font-size": e.value.style.chart.layout.plots.labels.fontSize,
859
- "text-anchor": "middle",
860
- style: L({
861
- userSelect: "none",
862
- pointerEvents: "none",
863
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
864
- })
865
- }, j(o.displayValue), 13, Ia)) : b("", !0)
866
- ], 64))), 256)) : b("", !0)
867
- ], 64))), 256)),
868
- e.value.style.chart.layout.nameLabels.leftLabels.show ? (i(), c("g", {
869
- key: 1,
870
- ref_key: "labelsLeft",
871
- ref: ve
872
- }, [
873
- (i(!0), c(w, null, M(Ve.value.left.filter((t) => h(q)(t.value)), (t, o) => (i(), c("text", {
874
- class: "transition-opacity",
875
- x: r.value.left,
876
- y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
877
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
878
- "font-size": e.value.style.chart.layout.nameLabels.fontSize,
879
- "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
880
- "text-anchor": "end",
881
- innerHTML: h(xe)({
882
- content: t.name,
883
- fontSize: e.value.style.chart.layout.nameLabels.fontSize,
884
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
885
- x: r.value.left - e.value.style.chart.layout.nameLabels.offsetX,
886
- y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
887
- translateY: !0
888
- }),
889
- style: L({
890
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
891
- }),
892
- onMouseenter: (n) => R(t, t),
893
- onMouseleave: (n) => N(t),
894
- onClick: (n) => Ce(t)
895
- }, null, 44, za))), 256))
896
- ], 512)) : b("", !0),
897
- e.value.style.chart.layout.nameLabels.rightLabels.show ? (i(), c("g", {
898
- key: 2,
899
- ref_key: "labelsRight",
900
- ref: he
901
- }, [
902
- (i(!0), c(w, null, M(Ve.value.right.filter((t) => h(q)(t.value)), (t, o) => (i(), c("text", {
903
- class: "transition-opacity",
904
- x: r.value.right,
905
- y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
906
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
907
- "font-size": e.value.style.chart.layout.nameLabels.fontSize,
908
- "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
909
- "text-anchor": "start",
910
- innerHTML: h(xe)({
911
- content: t.name,
912
- fontSize: e.value.style.chart.layout.nameLabels.fontSize,
913
- fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
914
- x: r.value.right + e.value.style.chart.layout.nameLabels.offsetX,
915
- y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
916
- translateY: !0
917
- }),
918
- style: L({
919
- opacity: m.value == null || m.value === t.id ? 1 : 0.1
920
- }),
921
- onMouseenter: (n) => R(t, t),
922
- onMouseleave: (n) => N(t),
923
- onClick: (n) => Ce(t)
924
- }, null, 44, Oa))), 256))
925
- ], 512)) : b("", !0),
926
- e.value.style.chart.layout.timeLabels.show ? (i(), c("g", {
927
- key: 3,
928
- ref_key: "timeLabelsEls",
929
- ref: de
930
- }, [
931
- a.$slots["time-label"] ? (i(), c("g", Ra, [
932
- (i(!0), c(w, null, M(F.value, (t, o) => (i(), c("g", null, [
933
- y(a.$slots, "time-label", Le({ ref_for: !0 }, {
934
- x: r.value.unitW * o + r.value.unitW / 2 + r.value.left,
935
- y: r.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
936
- fontSize: e.value.style.chart.layout.timeLabels.fontSize,
937
- fill: e.value.style.chart.layout.timeLabels.color,
938
- transform: `translate(${r.value.unitW * o + r.value.unitW / 2 + r.value.left}, ${r.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
939
- absoluteIndex: t.absoluteIndex,
940
- content: t.text,
941
- textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
942
- show: !0
943
- }), void 0, !0)
944
- ]))), 256))
945
- ])) : (i(), c("g", Ha, [
946
- (i(!0), c(w, null, M(F.value, (t, o) => (i(), c("g", null, [
947
- String(t.text).includes(`
948
- `) ? (i(), c("text", {
949
- key: o + "-multi",
950
- "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
951
- "font-size": e.value.style.chart.layout.timeLabels.fontSize,
952
- fill: e.value.style.chart.layout.timeLabels.color,
953
- transform: `
954
- translate(
955
- ${r.value.unitW * o + r.value.unitW / 2 + r.value.left},
956
- ${r.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
957
- ),
958
- rotate(${e.value.style.chart.layout.timeLabels.rotation})
959
- `,
960
- innerHTML: h(xe)({
961
- content: String(t.text),
962
- fontSize: e.value.style.chart.layout.timeLabels.fontSize,
963
- fill: e.value.style.chart.layout.timeLabels.color,
964
- x: 0,
965
- y: 0
966
- })
967
- }, null, 8, _a)) : (i(), c("text", {
968
- class: "vue-data-ui-time-label",
969
- key: o,
970
- "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
971
- "font-size": e.value.style.chart.layout.timeLabels.fontSize,
972
- "font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
973
- fill: e.value.style.chart.layout.timeLabels.color,
974
- transform: `translate(${r.value.unitW * o + r.value.unitW / 2 + r.value.left}, ${r.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
975
- }, j(t.text), 9, Da))
976
- ]))), 256))
977
- ]))
978
- ], 512)) : b("", !0),
979
- y(a.$slots, "svg", {
980
- svg: {
981
- drawingArea: r.value,
982
- data: x.value,
983
- isPrintingImg: h(me) | h(ge) | J.value,
984
- isPrintingSvg: K.value
985
- }
986
- }, void 0, !0)
987
- ], 14, xa)),
988
- a.$slots.watermark ? (i(), c("div", Wa, [
989
- y(a.$slots, "watermark", $(S({ isPrinting: h(me) || h(ge) || J.value || K.value })), void 0, !0)
990
- ])) : b("", !0),
991
- G.value && e.value.userOptions.buttons.table ? (i(), Y(Gt(V.value.component), Le({ key: 5 }, V.value.props, {
992
- ref_key: "tableUnit",
993
- ref: W,
994
- onClose: Xe
995
- }), Ke({
996
- content: g(() => [
997
- we(h(ht), {
998
- colNames: le.value.colNames,
999
- head: le.value.head,
1000
- body: le.value.body,
1001
- config: le.value.config,
1002
- title: e.value.table.useDialog ? "" : V.value.title,
1003
- withCloseButton: !e.value.table.useDialog,
1004
- isCursorPointer: E.value,
1005
- onClose: Xe
1006
- }, {
1007
- th: g(({ th: t }) => [
1008
- se("div", { innerHTML: t }, null, 8, Ea)
1009
- ]),
1010
- td: g(({ td: t }) => [
1011
- Qe(j(t), 1)
1012
- ]),
1013
- _: 1
1014
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
1015
- ]),
1016
- _: 2
1017
- }, [
1018
- e.value.table.useDialog ? {
1019
- name: "title",
1020
- fn: g(() => [
1021
- Qe(j(V.value.title), 1)
1022
- ]),
1023
- key: "0"
1024
- } : void 0,
1025
- e.value.table.useDialog ? {
1026
- name: "actions",
1027
- fn: g(() => [
1028
- se("button", {
1029
- tabindex: "0",
1030
- class: "vue-ui-user-options-button",
1031
- onClick: l[1] || (l[1] = (t) => ke(e.value.userOptions.callbacks.csv)),
1032
- style: L({ cursor: E.value ? "pointer" : "default" })
1033
- }, [
1034
- we(h(ct), {
1035
- name: "fileCsv",
1036
- stroke: V.value.props.color
1037
- }, null, 8, ["stroke"])
1038
- ], 4)
1039
- ]),
1040
- key: "1"
1041
- } : void 0
1042
- ]), 1040)) : b("", !0),
1043
- a.$slots.source ? (i(), c("div", {
1044
- key: 6,
1045
- ref_key: "source",
1046
- ref: Te,
1047
- dir: "auto"
1048
- }, [
1049
- y(a.$slots, "source", {}, void 0, !0)
1050
- ], 512)) : b("", !0),
1051
- y(a.$slots, "skeleton", {}, () => [
1052
- h(Q) ? (i(), Y(va, { key: 0 })) : b("", !0)
1053
- ], !0)
1054
- ], 46, La));
1055
- }
1056
- }, ol = /* @__PURE__ */ wa(Fa, [["__scopeId", "data-v-2133380e"]]);
1057
- export {
1058
- ol as default
1059
- };