vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,1076 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, E as r, Gt as i, K as a, L as o, Lt as s, Nt as ee, Q as te, Y as c, bt as ne, et as re, ft as ie, i as ae, qt as oe, st as se, t as ce, x as le } from "./lib-CFm_J26b.js";
3
- import { t as ue } from "./useConfig-C0V0eG7L.js";
4
- import { t as de } from "./usePrinter-BH-xle1O.js";
5
- import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as me } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as he } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as _e } from "./img-Bikk1dGb.js";
10
- import { n as ve } from "./Title-BuPs74IB.js";
11
- import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
13
- import { t as Se } from "./BaseLegendToggle-DsWphmIb.js";
14
- import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as we } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as Ee } from "./labelUtils-BUhssos9.js";
18
- import { t as De } from "./Legend-C0xAnJdO.js";
19
- import { t as Oe } from "./vue_ui_galaxy-Ig0cc1_h.js";
20
- import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as Fe, normalizeClass as Ie, normalizeProps as g, normalizeStyle as _, onMounted as Le, openBlock as v, ref as y, renderList as Re, renderSlot as b, resolveDynamicComponent as ze, toDisplayString as x, toRefs as Be, unref as S, watch as Ve, withCtx as C } from "vue";
21
- //#region src/components/vue-ui-galaxy.vue
22
- var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
23
- "xmlns",
24
- "aria-describedby",
25
- "viewBox"
26
- ], Je = ["width", "height"], Ye = ["id"], Xe = ["stdDeviation"], Ze = [
27
- "d",
28
- "stroke",
29
- "stroke-width"
30
- ], Qe = [
31
- "d",
32
- "stroke",
33
- "stroke-width"
34
- ], $e = ["filter"], et = [
35
- "d",
36
- "stroke",
37
- "stroke-width"
38
- ], tt = [
39
- "data-a11y-serie-id",
40
- "d",
41
- "stroke-width",
42
- "aria-label",
43
- "onMouseenter",
44
- "onMouseleave",
45
- "onClick"
46
- ], nt = {
47
- key: 0,
48
- style: {
49
- position: "absolute",
50
- top: "100%",
51
- left: "0",
52
- width: "100%"
53
- },
54
- "data-dom-to-png-ignore": "",
55
- "aria-hidden": "true"
56
- }, rt = {
57
- key: 5,
58
- class: "vue-data-ui-watermark"
59
- }, it = ["id"], at = ["onClick"], ot = ["innerHTML"], st = /*#__PURE__*/ ye({
60
- __name: "vue-ui-galaxy",
61
- props: {
62
- config: {
63
- type: Object,
64
- default() {
65
- return {};
66
- }
67
- },
68
- dataset: {
69
- type: Array,
70
- default() {
71
- return [];
72
- }
73
- }
74
- },
75
- emits: [
76
- "selectLegend",
77
- "selectDatapoint",
78
- "copyAlt"
79
- ],
80
- setup(e, { expose: ye, emit: He }) {
81
- let st = m(() => import("./Tooltip-CA1rtSyl.js")), ct = m(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), lt = m(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), ut = m(() => import("./DataTable-DzPEVvSo.js")), dt = m(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), ft = m(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), pt = m(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), mt = m(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_galaxy: ht } = ue(), { isThemeValid: gt, warnInvalidTheme: _t } = ge(), w = e, T = y(a()), E = y(null), D = y(!1), vt = y(""), O = y(null), yt = y(0), bt = y(0), xt = y(0), St = y(0), Ct = y(null), wt = y(null), Tt = y(null), Et = y(null), k = y(null), A = y(null), Dt = y(!1), j = y(null), Ot = y(null), kt = y(!1), At = y(!1), M = y(null), N = y(null), jt = y({
82
- x: 0,
83
- y: 0
84
- }), Mt = y("pointer"), Nt = y(!1), Pt = l(() => !!w.dataset && w.dataset.length), P = y(Ht()), F = l(() => P.value.userOptions.useCursorPointer), Ft = l(() => oe({
85
- defaultConfig: {
86
- userOptions: { show: !1 },
87
- table: { show: !1 },
88
- useCssAnimation: !1,
89
- style: { chart: {
90
- backgroundColor: "#99999930",
91
- legend: { backgroundColor: "transparent" }
92
- } }
93
- },
94
- userConfig: P.value.skeletonConfig ?? {}
95
- })), { loading: I, FINAL_DATASET: It } = fe({
96
- ...Be(w),
97
- FINAL_CONFIG: P,
98
- prepareConfig: Ht,
99
- callback: () => {
100
- Promise.resolve().then(async () => {
101
- await Fe(), R.value.showTable = P.value.table.show;
102
- });
103
- },
104
- skeletonDataset: w.config?.skeletonDataset ?? [
105
- {
106
- name: "_",
107
- values: [21],
108
- color: "#DBDBDB"
109
- },
110
- {
111
- name: "_",
112
- values: [13],
113
- color: "#C4C4C4"
114
- },
115
- {
116
- name: "_",
117
- values: [8],
118
- color: "#ADADAD"
119
- }
120
- ],
121
- skeletonConfig: oe({
122
- defaultConfig: P.value,
123
- userConfig: Ft.value
124
- })
125
- });
126
- Le(() => {
127
- Dt.value = !0, Rt();
128
- });
129
- let Lt = l(() => !!P.value.debug);
130
- function Rt() {
131
- if (t(w.dataset) ? re({
132
- componentName: "VueUiGalaxy",
133
- type: "dataset",
134
- debug: Lt.value
135
- }) : w.dataset.forEach((e, t) => {
136
- ie({
137
- datasetObject: e,
138
- requiredAttributes: ["name", "values"]
139
- }).forEach((e) => {
140
- re({
141
- componentName: "VueUiGalaxy",
142
- type: "datasetSerieAttribute",
143
- property: e,
144
- index: t,
145
- debug: Lt.value
146
- });
147
- });
148
- }), P.value.responsive) {
149
- let e = be(() => {
150
- let { width: e, height: t } = xe({
151
- chart: E.value,
152
- title: P.value.style.chart.title.text ? Ct.value : null,
153
- legend: P.value.style.chart.legend.show ? wt.value : null,
154
- noTitle: Et.value,
155
- source: Tt.value
156
- });
157
- requestAnimationFrame(() => {
158
- z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
159
- });
160
- });
161
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = E.value.parentNode, k.value.observe(A.value);
162
- }
163
- }
164
- let { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = we({ config: P.value }), { svgRef: L } = Te({ config: P.value.style.chart.title });
165
- function Ht() {
166
- let e = he({
167
- userConfig: w.config,
168
- defaultConfig: ht
169
- }), t = e.theme;
170
- if (!t) return e;
171
- if (!gt.value(e)) return _t(e), e;
172
- let n = he({
173
- userConfig: Oe[t] || w.config,
174
- defaultConfig: e
175
- }), r = he({
176
- userConfig: w.config,
177
- defaultConfig: n
178
- });
179
- return {
180
- ...r,
181
- customPalette: r.customPalette.length ? r.customPalette : i[t] || ee
182
- };
183
- }
184
- Ve(() => w.config, (e) => {
185
- P.value = Ht(), zt.value = !P.value.userOptions.showOnChartHover, Rt(), bt.value += 1, xt.value += 1, St.value += 1, R.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, R.value.showTable = P.value.table.show, R.value.showTooltip = P.value.style.chart.tooltip.show;
186
- }, { deep: !0 });
187
- let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = de({
188
- elementId: `galaxy_${T.value}`,
189
- fileName: P.value.style.chart.title.text || "vue-ui-galaxy",
190
- options: P.value.userOptions.print
191
- }), qt = l(() => P.value.userOptions.show && !P.value.style.chart.title.text), Jt = l(() => n(P.value.customPalette)), R = y({
192
- dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
193
- showTable: P.value.table.show,
194
- showTooltip: P.value.style.chart.tooltip.show
195
- }), z = y(250), B = y(180), Yt = y(0), Xt = y(0), V = l(() => ({
196
- width: z.value,
197
- height: B.value,
198
- viewBox: `${Yt.value} ${Xt.value} ${z.value} ${B.value}`
199
- })), Zt = He, H = y([]);
200
- function Qt() {
201
- Zt("selectLegend", K.value.map((e) => ({
202
- name: e.name,
203
- color: e.color,
204
- value: e.value
205
- })));
206
- }
207
- function $t() {
208
- H.value.length ? H.value = [] : J.value.forEach((e) => {
209
- H.value.push(e.id);
210
- }), Qt();
211
- }
212
- function U(e) {
213
- H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Qt();
214
- }
215
- function en(e) {
216
- return W.value.length ? W.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null);
217
- }
218
- function tn(e) {
219
- let t = en(e);
220
- t !== null && H.value.includes(t.id) && U({ id: t.id });
221
- }
222
- function nn(e) {
223
- let t = en(e);
224
- t !== null && (H.value.includes(t.id) || U({ id: t.id }));
225
- }
226
- let W = l(() => It.value.map((e, t) => ({
227
- name: e.name,
228
- color: le(e.color) || Jt.value[t] || ee[t] || ee[t % ee.length],
229
- value: e.values ? s(e.values).reduce((e, t) => e + t, 0) : 0,
230
- absoluteValues: s(e.values),
231
- id: a()
232
- })).sort((e, t) => t.value - e.value).map((e, t) => ({
233
- ...e,
234
- absoluteIndex: t
235
- })));
236
- function rn() {
237
- return W.value.map((e) => ({
238
- name: e.name,
239
- color: e.color,
240
- value: e.value
241
- }));
242
- }
243
- let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = y(190), on = l(() => W.value.filter((e) => !H.value.includes(e.id))), sn = l(() => (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) / 2 + (P.value.style.chart.layout.padding ?? 12)), cn = l(() => o({
244
- maxPoints: an.value,
245
- a: P.value.style.chart.layout.arcs.a ?? 6,
246
- b: P.value.style.chart.layout.arcs.b ?? 6,
247
- angleStep: P.value.style.chart.layout.arcs.angleStep ?? .07,
248
- startX: V.value.width / 2 + P.value.style.chart.layout.arcs.offsetX,
249
- startY: V.value.height / 2 + P.value.style.chart.layout.arcs.offsetY,
250
- boxWidth: V.value.width,
251
- boxHeight: V.value.height,
252
- padding: sn.value
253
- })), K = l(() => {
254
- let e = [];
255
- for (let t = 0; t < on.value.length; t += 1) {
256
- let n = on.value[t], r = n.value / G.value * an.value + (t > 0 && e.length ? e[t - 1].points : 0);
257
- e.push({
258
- points: r,
259
- ...n,
260
- seriesIndex: t,
261
- proportion: n.value / G.value,
262
- path: cn.value(r)
263
- });
264
- }
265
- return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
266
- });
267
- function ln(e) {
268
- let t = Math.min(z.value, B.value), n = O.value === e.id && P.value.style.chart.layout.arcs.hoverEffect.show ? P.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) * n, i = P.value.style.chart.layout.arcs.strokeWidth * n, a = P.value.style.chart.layout.arcs.strokeWidth / 2 * n;
269
- return {
270
- border: r / 180 * t,
271
- path: i / 180 * t,
272
- blur: a / 180 * t
273
- };
274
- }
275
- let q = y(!1);
276
- function un(e) {
277
- q.value = e, yt.value += 1;
278
- }
279
- let dn = y(null);
280
- function fn() {
281
- D.value = !1, O.value = null, M.value = null, N.value = null;
282
- }
283
- function pn(e) {
284
- if (!L.value || !e) return;
285
- let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
286
- if (!t) return;
287
- let n = t.getBoundingClientRect();
288
- jt.value = {
289
- x: n.left + n.width / 2,
290
- y: n.top + n.height / 2
291
- };
292
- }
293
- function mn(e) {
294
- P.value.events.datapointLeave && P.value.events.datapointLeave({
295
- datapoint: e,
296
- seriesIndex: e.absoluteIndex
297
- }), !(N.value === e.id && Mt.value === "keyboard") && (D.value = !1, O.value = null);
298
- }
299
- function hn(e) {
300
- Zt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
301
- datapoint: e,
302
- seriesIndex: e.absoluteIndex
303
- });
304
- }
305
- function gn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
306
- let i = P.value.style.chart.layout.labels.dataLabels;
307
- return Ee({
308
- config: i,
309
- val: e,
310
- percentage: t,
311
- showVal: n,
312
- showPercentage: r
313
- });
314
- }
315
- function _n({ datapoint: e, _relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer", flatIndex: a = null }) {
316
- if (P.value.events.datapointEnter && P.value.events.datapointEnter({
317
- datapoint: e,
318
- seriesIndex: e.absoluteIndex
319
- }), !R.value.showTooltip) return;
320
- Mt.value = i, M.value = a, N.value = e.id, dn.value = {
321
- datapoint: e,
322
- seriesIndex: n,
323
- series: W.value,
324
- config: P.value
325
- }, D.value = r, O.value = e.id;
326
- let o = "", s = P.value.style.chart.tooltip.customFormat;
327
- ne(s) && se(() => s({
328
- seriesIndex: n,
329
- datapoint: e,
330
- series: W.value,
331
- config: P.value
332
- })) ? vt.value = s({
333
- seriesIndex: n,
334
- datapoint: e,
335
- series: W.value,
336
- config: P.value
337
- }) : (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, 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.color}"/></svg>`, o += `<b>${gn({
338
- showVal: P.value.style.chart.tooltip.showValue,
339
- showPercentage: P.value.style.chart.tooltip.showPercentage,
340
- val: ae(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
341
- p: P.value.style.chart.layout.labels.dataLabels.prefix,
342
- v: e.value,
343
- s: P.value.style.chart.layout.labels.dataLabels.suffix,
344
- r: P.value.style.chart.tooltip.roundingValue
345
- }), {
346
- datapoint: e,
347
- seriesIndex: n
348
- }),
349
- percentage: c({
350
- v: e.proportion * 100,
351
- s: "%",
352
- r: P.value.style.chart.tooltip.roundingPercentage
353
- })
354
- })}</b></div>`, vt.value = `<div>${o}</div>`), i === "keyboard" && Fe(() => {
355
- pn(e.id);
356
- });
357
- }
358
- let J = l(() => W.value.map((e, t) => {
359
- let n = ae(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
360
- p: P.value.style.chart.layout.labels.dataLabels.prefix,
361
- v: e.value,
362
- s: P.value.style.chart.layout.labels.dataLabels.suffix,
363
- r: P.value.style.chart.legend.roundingValue
364
- }), {
365
- datapoint: e,
366
- index: t
367
- }), r = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : c({
368
- v: e.value / G.value * 100,
369
- s: "%",
370
- r: P.value.style.chart.legend.roundingPercentage
371
- }), i = gn({
372
- showVal: P.value.style.chart.legend.showValue,
373
- showPercentage: P.value.style.chart.legend.showPercentage,
374
- val: n,
375
- percentage: r
376
- });
377
- return {
378
- ...e,
379
- proportion: (e.value || 0) / It.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
380
- opacity: H.value.includes(e.id) ? .5 : 1,
381
- shape: e.shape || "circle",
382
- segregate: () => U(e),
383
- isSegregated: H.value.includes(e.id),
384
- display: `${e.name}${P.value.style.chart.legend.showPercentage || P.value.style.chart.legend.showValue ? ": " : ""}${i}`
385
- };
386
- })), vn = l(() => ({
387
- cy: "galaxy-div-legend",
388
- backgroundColor: P.value.style.chart.legend.backgroundColor,
389
- color: P.value.style.chart.legend.color,
390
- fontSize: P.value.style.chart.legend.fontSize,
391
- paddingBottom: 12,
392
- fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
393
- })), Y = l(() => ({
394
- head: K.value.map((e) => ({
395
- name: e.name,
396
- color: e.color
397
- })),
398
- body: K.value.map((e) => e.value)
399
- }));
400
- function yn(e = null) {
401
- Fe(() => {
402
- let t = Y.value.head.map((e, t) => [
403
- [e.name],
404
- [Y.value.body[t]],
405
- [isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
406
- ]), n = r([
407
- [P.value.style.chart.title.text],
408
- [P.value.style.chart.title.subtitle.text],
409
- [
410
- [""],
411
- ["val"],
412
- ["%"]
413
- ]
414
- ].concat(t));
415
- e ? e(n) : te({
416
- csvContent: n,
417
- title: P.value.style.chart.title.text || "vue-ui-galaxy"
418
- });
419
- });
420
- }
421
- let X = l(() => {
422
- let e = [
423
- " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
424
- c({
425
- p: P.value.style.chart.layout.labels.dataLabels.prefix,
426
- v: G.value,
427
- s: P.value.style.chart.layout.labels.dataLabels.suffix,
428
- r: P.value.table.td.roundingValue
429
- }),
430
- "100%"
431
- ], t = Y.value.head.map((e, t) => {
432
- let n = c({
433
- p: P.value.style.chart.layout.labels.dataLabels.prefix,
434
- v: Y.value.body[t],
435
- s: P.value.style.chart.layout.labels.dataLabels.suffix,
436
- r: P.value.table.td.roundingValue
437
- });
438
- return [
439
- {
440
- color: e.color,
441
- name: e.name
442
- },
443
- n,
444
- isNaN(Y.value.body[t] / G.value) ? "-" : c({
445
- v: Y.value.body[t] / G.value * 100,
446
- s: "%",
447
- r: P.value.table.td.roundingPercentage
448
- })
449
- ];
450
- }), n = {
451
- th: {
452
- backgroundColor: P.value.table.th.backgroundColor,
453
- color: P.value.table.th.color,
454
- outline: P.value.table.th.outline
455
- },
456
- td: {
457
- backgroundColor: P.value.table.td.backgroundColor,
458
- color: P.value.table.td.color,
459
- outline: P.value.table.td.outline
460
- },
461
- breakpoint: P.value.table.responsiveBreakpoint
462
- };
463
- return {
464
- colNames: [
465
- P.value.table.columnNames.series,
466
- P.value.table.columnNames.value,
467
- P.value.table.columnNames.percentage
468
- ],
469
- head: e,
470
- body: t,
471
- config: n
472
- };
473
- });
474
- function bn() {
475
- R.value.showTable = !R.value.showTable;
476
- }
477
- function xn() {
478
- R.value.showTooltip = !R.value.showTooltip;
479
- }
480
- let Z = y(!1);
481
- function Sn() {
482
- Z.value = !Z.value;
483
- }
484
- async function Cn({ scale: e = 2 } = {}) {
485
- if (!E.value) return;
486
- let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
487
- domElement: E.value,
488
- base64: !0,
489
- img: !0,
490
- scale: e
491
- });
492
- return {
493
- imageUri: i,
494
- base64: a,
495
- title: P.value.style.chart.title.text,
496
- width: t,
497
- height: n,
498
- aspectRatio: r
499
- };
500
- }
501
- let Q = l(() => {
502
- let e = P.value.table.useDialog && !P.value.table.show, t = R.value.showTable;
503
- return {
504
- component: e ? mt : lt,
505
- title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
506
- props: e ? {
507
- backgroundColor: P.value.table.th.backgroundColor,
508
- color: P.value.table.th.color,
509
- headerColor: P.value.table.th.color,
510
- headerBg: P.value.table.th.backgroundColor,
511
- isFullscreen: q.value,
512
- fullscreenParent: E.value,
513
- forcedWidth: Math.min(500, window.innerWidth * .8),
514
- isCursorPointer: F.value
515
- } : {
516
- hideDetails: !0,
517
- config: {
518
- open: t,
519
- maxHeight: 1e4,
520
- body: {
521
- backgroundColor: P.value.style.chart.backgroundColor,
522
- color: P.value.style.chart.color
523
- },
524
- head: {
525
- backgroundColor: P.value.style.chart.backgroundColor,
526
- color: P.value.style.chart.color
527
- }
528
- }
529
- }
530
- };
531
- });
532
- Ve(() => R.value.showTable, (e) => {
533
- P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
534
- });
535
- function wn() {
536
- R.value.showTable = !1, Ot.value && Ot.value.setTableIconState(!1);
537
- }
538
- let Tn = l(() => J.value.map((e) => ({
539
- ...e,
540
- name: e.display
541
- }))), En = l(() => P.value.style.chart.backgroundColor), Dn = l(() => P.value.style.chart.legend), { exportSvg: On, getSvg: kn } = me({
542
- svg: L,
543
- title: l(() => P.value.style.chart.title),
544
- legend: Dn,
545
- legendItems: Tn,
546
- backgroundColor: En
547
- });
548
- async function An({ isCb: e }) {
549
- At.value = !0, await Fe();
550
- try {
551
- if (e) {
552
- let { blob: e, url: t, text: n, dataUrl: r } = await kn();
553
- await Promise.resolve(P.value.userOptions.callbacks.svg({
554
- blob: e,
555
- url: t,
556
- text: n,
557
- dataUrl: r
558
- }));
559
- } else await Promise.resolve(On());
560
- } finally {
561
- At.value = !1;
562
- }
563
- }
564
- function jn(e) {
565
- if (e?.stage === "start") {
566
- kt.value = !0;
567
- return;
568
- }
569
- if (e?.stage === "end") {
570
- kt.value = !1;
571
- return;
572
- }
573
- Kt();
574
- }
575
- async function Mn() {
576
- if (Zt("copyAlt", {
577
- config: P.value,
578
- dataset: W.value
579
- }), !P.value.userOptions.callbacks.altCopy) {
580
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
581
- return;
582
- }
583
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
584
- config: P.value,
585
- dataset: W.value
586
- }));
587
- }
588
- function Nn() {
589
- M.value = null, N.value = null, Nt.value = !0;
590
- }
591
- function Pn() {
592
- fn(), Nt.value = !1;
593
- }
594
- function Fn(e) {
595
- if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
596
- let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
597
- if (!t && !n && !r && !i) return;
598
- if (e.preventDefault(), e.stopPropagation(), i) {
599
- fn();
600
- return;
601
- }
602
- if (r) {
603
- if (M.value === null) return;
604
- let e = $.value[M.value];
605
- if (!e) return;
606
- hn(e.datapoint);
607
- return;
608
- }
609
- let a = M.value;
610
- a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0));
611
- let o = $.value[a];
612
- o && _n({
613
- datapoint: o.datapoint,
614
- seriesIndex: o.datapoint.seriesIndex,
615
- show: !0,
616
- triggerMode: "keyboard",
617
- flatIndex: a
618
- });
619
- }
620
- let In = l(() => ({
621
- headers: X.value?.colNames ?? [],
622
- rows: X.value?.body ?? []
623
- })), $ = l(() => K.value.map((e, t) => ({
624
- datapoint: e,
625
- index: t
626
- })));
627
- return ye({
628
- getData: rn,
629
- getImage: Cn,
630
- generatePdf: Gt,
631
- generateCsv: yn,
632
- generateImage: Kt,
633
- generateSvg: An,
634
- hideSeries: nn,
635
- showSeries: tn,
636
- toggleTable: bn,
637
- toggleTooltip: xn,
638
- toggleAnnotator: Sn,
639
- toggleFullscreen: un,
640
- copyAlt: Mn
641
- }), (e, t) => (v(), f("div", {
642
- ref_key: "galaxyChart",
643
- ref: E,
644
- class: Ie(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${S(I) ? "loading" : ""}`),
645
- style: _(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;${P.value.style.chart.title.text ? "" : "padding-top:36px"};background:${P.value.style.chart.backgroundColor}`),
646
- id: `galaxy_${T.value}`,
647
- onMouseenter: t[2] ||= () => S(Bt)(!0),
648
- onMouseleave: t[3] ||= () => {
649
- S(Bt)(!1), Nt.value || fn();
650
- }
651
- }, [
652
- p("div", {
653
- id: `chart-instructions-${T.value}`,
654
- class: "sr-only"
655
- }, [p("p", null, x(P.value.a11y.translations.keyboardNavigation), 1)], 8, We),
656
- In.value?.rows?.length ? (v(), u(Ce, {
657
- key: 0,
658
- uid: T.value,
659
- head: In.value.headers,
660
- body: In.value.rows,
661
- notice: P.value.a11y.translations.tableAvailable,
662
- caption: P.value.a11y.translations.tableCaption
663
- }, null, 8, [
664
- "uid",
665
- "head",
666
- "body",
667
- "notice",
668
- "caption"
669
- ])) : d("", !0),
670
- P.value.userOptions.buttons.annotator ? (v(), u(S(dt), {
671
- key: 1,
672
- svgRef: S(L),
673
- backgroundColor: P.value.style.chart.backgroundColor,
674
- color: P.value.style.chart.color,
675
- active: Z.value,
676
- isCursorPointer: F.value,
677
- onClose: Sn
678
- }, {
679
- "annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
680
- "annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
681
- "annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
682
- "annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
683
- "annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
684
- "annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
685
- _: 3
686
- }, 8, [
687
- "svgRef",
688
- "backgroundColor",
689
- "color",
690
- "active",
691
- "isCursorPointer"
692
- ])) : d("", !0),
693
- qt.value ? (v(), f("div", {
694
- key: 2,
695
- ref_key: "noTitle",
696
- ref: Et,
697
- class: "vue-data-ui-no-title-space",
698
- style: "height:36px; width: 100%;background:transparent"
699
- }, null, 512)) : d("", !0),
700
- P.value.style.chart.title.text ? (v(), f("div", {
701
- key: 3,
702
- ref_key: "chartTitle",
703
- ref: Ct,
704
- style: "width:100%;background:transparent;padding-bottom:24px"
705
- }, [(v(), u(ve, {
706
- key: `title_${bt.value}`,
707
- config: {
708
- title: {
709
- cy: "galaxy-div-title",
710
- ...P.value.style.chart.title
711
- },
712
- subtitle: {
713
- cy: "galaxy-div-subtitle",
714
- ...P.value.style.chart.title.subtitle
715
- }
716
- }
717
- }, null, 8, ["config"]))], 512)) : d("", !0),
718
- p("div", { id: `legend-top-${T.value}` }, null, 8, Ge),
719
- P.value.userOptions.show && Pt.value && (S(Vt) || S(zt)) ? (v(), u(S(ft), {
720
- ref_key: "userOptionsRef",
721
- ref: Ot,
722
- key: `user_option_${yt.value}`,
723
- backgroundColor: P.value.style.chart.backgroundColor,
724
- color: P.value.style.chart.color,
725
- isPrinting: S(Ut),
726
- isImaging: S(Wt),
727
- uid: T.value,
728
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
729
- hasPdf: P.value.userOptions.buttons.pdf,
730
- hasXls: P.value.userOptions.buttons.csv,
731
- hasImg: P.value.userOptions.buttons.img,
732
- hasSvg: P.value.userOptions.buttons.svg,
733
- hasTable: P.value.userOptions.buttons.table,
734
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
735
- hasAltCopy: P.value.userOptions.buttons.altCopy,
736
- isTooltip: R.value.showTooltip,
737
- isFullscreen: q.value,
738
- titles: { ...P.value.userOptions.buttonTitles },
739
- chartElement: E.value,
740
- position: P.value.userOptions.position,
741
- hasAnnotator: P.value.userOptions.buttons.annotator,
742
- isAnnotation: Z.value,
743
- callbacks: P.value.userOptions.callbacks,
744
- printScale: P.value.userOptions.print.scale,
745
- tableDialog: P.value.table.useDialog,
746
- isCursorPointer: F.value,
747
- onToggleFullscreen: un,
748
- onGeneratePdf: S(Gt),
749
- onGenerateCsv: yn,
750
- onGenerateImage: jn,
751
- onGenerateSvg: An,
752
- onToggleTable: bn,
753
- onToggleTooltip: xn,
754
- onToggleAnnotator: Sn,
755
- onCopyAlt: Mn,
756
- style: _({ visibility: S(Vt) ? S(zt) ? "visible" : "hidden" : "visible" })
757
- }, je({ _: 2 }, [
758
- e.$slots.menuIcon ? {
759
- name: "menuIcon",
760
- fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(h({
761
- isOpen: t,
762
- color: n
763
- })), void 0, !0)]),
764
- key: "0"
765
- } : void 0,
766
- e.$slots.optionTooltip ? {
767
- name: "optionTooltip",
768
- fn: C(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
769
- key: "1"
770
- } : void 0,
771
- e.$slots.optionPdf ? {
772
- name: "optionPdf",
773
- fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
774
- key: "2"
775
- } : void 0,
776
- e.$slots.optionCsv ? {
777
- name: "optionCsv",
778
- fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
779
- key: "3"
780
- } : void 0,
781
- e.$slots.optionImg ? {
782
- name: "optionImg",
783
- fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
784
- key: "4"
785
- } : void 0,
786
- e.$slots.optionSvg ? {
787
- name: "optionSvg",
788
- fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
789
- key: "5"
790
- } : void 0,
791
- e.$slots.optionTable ? {
792
- name: "optionTable",
793
- fn: C(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
794
- key: "6"
795
- } : void 0,
796
- e.$slots.optionFullscreen ? {
797
- name: "optionFullscreen",
798
- fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(h({
799
- toggleFullscreen: t,
800
- isFullscreen: n
801
- })), void 0, !0)]),
802
- key: "7"
803
- } : void 0,
804
- e.$slots.optionAnnotator ? {
805
- name: "optionAnnotator",
806
- fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(h({
807
- toggleAnnotator: t,
808
- isAnnotator: n
809
- })), void 0, !0)]),
810
- key: "8"
811
- } : void 0,
812
- e.$slots.optionAltCopy ? {
813
- name: "optionAltCopy",
814
- fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
815
- key: "9"
816
- } : void 0,
817
- e.$slots["custom-menu-before"] ? {
818
- name: "custom-menu-before",
819
- fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
820
- key: "10"
821
- } : void 0,
822
- e.$slots["custom-menu-after"] ? {
823
- name: "custom-menu-after",
824
- fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
825
- key: "11"
826
- } : void 0
827
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
828
- p("div", Ke, [(v(), f("svg", {
829
- ref_key: "svgRef",
830
- ref: L,
831
- xmlns: S(ce),
832
- "aria-describedby": `chart-instructions-${T.value}`,
833
- class: Ie({
834
- "vue-data-ui-fullscreen--on": q.value,
835
- "vue-data-ui-fulscreen--off": !q.value
836
- }),
837
- viewBox: V.value.viewBox,
838
- style: _(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
839
- tabindex: "0",
840
- onFocus: Nn,
841
- onBlur: Pn,
842
- onKeydown: Fn
843
- }, [
844
- Ne(S(pt)),
845
- e.$slots["chart-background"] ? (v(), f("foreignObject", {
846
- key: 0,
847
- x: 0,
848
- y: 0,
849
- width: V.value.width,
850
- height: V.value.height,
851
- style: { pointerEvents: "none" }
852
- }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : d("", !0),
853
- p("defs", null, [p("filter", {
854
- id: `blur_${T.value}`,
855
- x: "-50%",
856
- y: "-50%",
857
- width: "200%",
858
- height: "200%"
859
- }, [p("feGaussianBlur", {
860
- in: "SourceGraphic",
861
- stdDeviation: 100 / P.value.style.chart.layout.arcs.gradient.intensity
862
- }, null, 8, Xe)], 8, Ye)]),
863
- (v(!0), f(ke, null, Re(K.value, (e) => (v(), f("g", null, [
864
- e.value ? (v(), f("path", {
865
- key: 0,
866
- d: e.path,
867
- fill: "none",
868
- stroke: P.value.style.chart.backgroundColor,
869
- "stroke-width": ln(e).border,
870
- "stroke-linecap": "round"
871
- }, null, 8, Ze)) : d("", !0),
872
- e.value ? (v(), f("path", {
873
- key: 1,
874
- d: e.path,
875
- fill: "none",
876
- stroke: e.color,
877
- "stroke-width": ln(e).path,
878
- "stroke-linecap": "round",
879
- class: Ie(`${O.value && O.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
880
- }, null, 10, Qe)) : d("", !0),
881
- e.value && P.value.style.chart.layout.arcs.gradient.show ? (v(), f("g", {
882
- key: 2,
883
- filter: `url(#blur_${T.value})`
884
- }, [p("path", {
885
- d: e.path,
886
- fill: "none",
887
- stroke: P.value.style.chart.layout.arcs.gradient.color,
888
- "stroke-width": ln(e).blur,
889
- "stroke-linecap": "round",
890
- class: Ie(`vue-ui-galaxy-gradient ${O.value && O.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
891
- }, null, 10, et)], 8, $e)) : d("", !0)
892
- ]))), 256)),
893
- (v(!0), f(ke, null, Re(K.value, (e, t) => (v(), f("g", null, [e.value ? (v(), f("path", {
894
- key: 0,
895
- "data-a11y-serie-id": e.id,
896
- d: e.path,
897
- fill: "none",
898
- stroke: "transparent",
899
- "stroke-width": P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth,
900
- "stroke-linecap": "round",
901
- "aria-label": `${e.name}: ${S(c)({
902
- p: P.value.style.chart.layout.labels.dataLabels.prefix,
903
- v: e.value,
904
- s: P.value.style.chart.layout.labels.dataLabels.suffix,
905
- r: P.value.style.chart.tooltip.roundingValue
906
- })}`,
907
- onMouseenter: (n) => _n({
908
- datapoint: e,
909
- relativeIndex: t,
910
- seriesIndex: e.seriesIndex,
911
- show: !0,
912
- triggerMode: "pointer",
913
- flatIndex: t
914
- }),
915
- onMouseleave: (t) => mn(e),
916
- onClick: (t) => hn(e)
917
- }, null, 40, tt)) : d("", !0)]))), 256)),
918
- b(e.$slots, "svg", { svg: {
919
- ...V.value,
920
- isPrintingImg: S(Ut) || S(Wt) || kt.value,
921
- isPrintingSvg: At.value
922
- } }, void 0, !0)
923
- ], 46, qe)), e.$slots.hint ? (v(), f("div", nt, [b(e.$slots, "hint", g(h({
924
- hint: P.value.a11y.translations.keyboardNavigation,
925
- isVisible: Nt.value
926
- })), void 0, !0)])) : d("", !0)]),
927
- e.$slots.watermark ? (v(), f("div", rt, [b(e.$slots, "watermark", g(h({ isPrinting: S(Ut) || S(Wt) || kt.value || At.value })), void 0, !0)])) : d("", !0),
928
- p("div", { id: `legend-bottom-${T.value}` }, null, 8, it),
929
- Dt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Ae, {
930
- key: 6,
931
- to: P.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
932
- }, [p("div", {
933
- ref_key: "chartLegend",
934
- ref: wt
935
- }, [b(e.$slots, "legend", { legend: J.value }, () => [P.value.style.chart.legend.show ? (v(), u(De, {
936
- key: `legend_${St.value}`,
937
- legendSet: J.value,
938
- config: vn.value,
939
- onClickMarker: t[0] ||= ({ legend: e }) => U(e)
940
- }, {
941
- item: C(({ legend: e, index: t }) => [S(I) ? d("", !0) : (v(), f("div", {
942
- key: 0,
943
- onClick: (t) => U(e),
944
- style: _(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
945
- }, x(e.display), 13, at))]),
946
- legendToggle: C(() => [J.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !S(I) ? (v(), u(Se, {
947
- key: 0,
948
- backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
949
- color: P.value.style.chart.legend.selectAllToggle.color,
950
- fontSize: P.value.style.chart.legend.fontSize,
951
- checked: H.value.length > 0,
952
- onToggle: $t
953
- }, null, 8, [
954
- "backgroundColor",
955
- "color",
956
- "fontSize",
957
- "checked"
958
- ])) : d("", !0)]),
959
- _: 1
960
- }, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
961
- e.$slots.source ? (v(), f("div", {
962
- key: 7,
963
- ref_key: "source",
964
- ref: Tt,
965
- dir: "auto"
966
- }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
967
- Ne(S(st), {
968
- teleportTo: P.value.style.chart.tooltip.teleportTo,
969
- show: R.value.showTooltip && D.value,
970
- backgroundColor: P.value.style.chart.tooltip.backgroundColor,
971
- color: P.value.style.chart.tooltip.color,
972
- borderRadius: P.value.style.chart.tooltip.borderRadius,
973
- borderColor: P.value.style.chart.tooltip.borderColor,
974
- borderWidth: P.value.style.chart.tooltip.borderWidth,
975
- fontSize: P.value.style.chart.tooltip.fontSize,
976
- backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
977
- position: P.value.style.chart.tooltip.position,
978
- offsetX: P.value.style.chart.tooltip.offsetX,
979
- offsetY: P.value.style.chart.tooltip.offsetY,
980
- parent: E.value,
981
- content: vt.value,
982
- isFullscreen: q.value,
983
- isCustom: S(ne)(P.value.style.chart.tooltip.customFormat),
984
- smooth: P.value.style.chart.tooltip.smooth,
985
- backdropFilter: P.value.style.chart.tooltip.backdropFilter,
986
- smoothForce: P.value.style.chart.tooltip.smoothForce,
987
- smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
988
- isA11yMode: Mt.value === "keyboard",
989
- a11yPosition: jt.value
990
- }, {
991
- "tooltip-before": C(() => [b(e.$slots, "tooltip-before", g(h({ ...dn.value })), void 0, !0)]),
992
- tooltip: C(() => [b(e.$slots, "tooltip", g(h({ ...dn.value })), void 0, !0)]),
993
- "tooltip-after": C(() => [b(e.$slots, "tooltip-after", g(h({ ...dn.value })), void 0, !0)]),
994
- _: 3
995
- }, 8, [
996
- "teleportTo",
997
- "show",
998
- "backgroundColor",
999
- "color",
1000
- "borderRadius",
1001
- "borderColor",
1002
- "borderWidth",
1003
- "fontSize",
1004
- "backgroundOpacity",
1005
- "position",
1006
- "offsetX",
1007
- "offsetY",
1008
- "parent",
1009
- "content",
1010
- "isFullscreen",
1011
- "isCustom",
1012
- "smooth",
1013
- "backdropFilter",
1014
- "smoothForce",
1015
- "smoothSnapThreshold",
1016
- "isA11yMode",
1017
- "a11yPosition"
1018
- ]),
1019
- Pt.value && P.value.userOptions.buttons.table ? (v(), u(ze(Q.value.component), Pe({ key: 8 }, Q.value.props, {
1020
- ref_key: "tableUnit",
1021
- ref: j,
1022
- onClose: wn
1023
- }), je({
1024
- content: C(() => [(v(), u(S(ut), {
1025
- key: `table_${xt.value}`,
1026
- colNames: X.value.colNames,
1027
- head: X.value.head,
1028
- body: X.value.body,
1029
- config: X.value.config,
1030
- title: P.value.table.useDialog ? "" : Q.value.title,
1031
- withCloseButton: !P.value.table.useDialog,
1032
- isCursorPointer: F.value,
1033
- onClose: wn
1034
- }, {
1035
- th: C(({ th: e }) => [p("div", {
1036
- innerHTML: e,
1037
- style: {
1038
- display: "flex",
1039
- "align-items": "center"
1040
- }
1041
- }, null, 8, ot)]),
1042
- td: C(({ td: e }) => [Me(x(e.name || e), 1)]),
1043
- _: 1
1044
- }, 8, [
1045
- "colNames",
1046
- "head",
1047
- "body",
1048
- "config",
1049
- "title",
1050
- "withCloseButton",
1051
- "isCursorPointer"
1052
- ]))]),
1053
- _: 2
1054
- }, [P.value.table.useDialog ? {
1055
- name: "title",
1056
- fn: C(() => [Me(x(Q.value.title), 1)]),
1057
- key: "0"
1058
- } : void 0, P.value.table.useDialog ? {
1059
- name: "actions",
1060
- fn: C(() => [p("button", {
1061
- tabindex: "0",
1062
- class: "vue-ui-user-options-button",
1063
- onClick: t[1] ||= (e) => yn(P.value.userOptions.callbacks.csv),
1064
- style: _({ cursor: F.value ? "pointer" : "default" })
1065
- }, [Ne(S(ct), {
1066
- name: "fileCsv",
1067
- stroke: Q.value.props.color
1068
- }, null, 8, ["stroke"])], 4)]),
1069
- key: "1"
1070
- } : void 0]), 1040)) : d("", !0),
1071
- b(e.$slots, "skeleton", {}, () => [S(I) ? (v(), u(pe, { key: 0 })) : d("", !0)], !0)
1072
- ], 46, Ue));
1073
- }
1074
- }, [["__scopeId", "data-v-d013ae09"]]);
1075
- //#endregion
1076
- export { He as n, st as t };