vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -0,0 +1,1097 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, $t as n, D as r, Et as i, Gt as a, Rt as o, S as ee, Vt as s, X as c, at as te, et as ne, ft as re, i as ie, nt as ae, t as oe, tn as se, vt as ce, w as le, z as ue } from "./lib-DOpaUOQx.js";
3
+ import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as pe } from "./useConfig-C2uy4ltq.js";
5
+ import { t as me } from "./usePrinter-BBBooAGP.js";
6
+ import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
7
+ import { t as _e } from "./useNestedProp-Bux0f4iY.js";
8
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ye } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as be } from "./useTransitions-g_zBREk2.js";
11
+ import { t as xe } from "./img-W50sC9SC.js";
12
+ import { n as Se } from "./Title-DeqmC-vN.js";
13
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as Ee } from "./BaseLegendToggle-DGG65LAR.js";
16
+ import { t as De } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Ae } from "./labelUtils-Dvm-7rse.js";
20
+ import { t as je } from "./Legend-C0Ln0VNe.js";
21
+ import { t as Me } from "./vue_ui_galaxy-Ig0cc1_h.js";
22
+ import { Fragment as Ne, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as Be, openBlock as y, ref as b, renderList as Ve, renderSlot as x, resolveDynamicComponent as He, toDisplayString as S, toRefs as Ue, unref as C, watch as We, withCtx as w } from "vue";
23
+ //#region src/components/vue-ui-galaxy.vue
24
+ var Ge = /* @__PURE__ */ e({ default: () => dt }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
25
+ "xmlns",
26
+ "aria-describedby",
27
+ "viewBox"
28
+ ], Ze = ["width", "height"], Qe = ["id"], $e = ["stdDeviation"], et = [
29
+ "d",
30
+ "stroke",
31
+ "stroke-width"
32
+ ], tt = [
33
+ "d",
34
+ "stroke",
35
+ "stroke-width"
36
+ ], nt = ["filter"], rt = [
37
+ "d",
38
+ "stroke",
39
+ "stroke-width"
40
+ ], it = [
41
+ "data-a11y-serie-id",
42
+ "d",
43
+ "stroke-width",
44
+ "aria-label",
45
+ "onMouseenter",
46
+ "onMouseleave",
47
+ "onClick"
48
+ ], at = {
49
+ key: 0,
50
+ style: {
51
+ position: "absolute",
52
+ top: "100%",
53
+ left: "0",
54
+ width: "100%"
55
+ },
56
+ "data-dom-to-png-ignore": "",
57
+ "aria-hidden": "true"
58
+ }, ot = {
59
+ key: 5,
60
+ class: "vue-data-ui-watermark"
61
+ }, st = ["id"], ct = ["onClick"], lt = { key: 0 }, ut = { key: 1 }, dt = /*#__PURE__*/ Ce({
62
+ __name: "vue-ui-galaxy",
63
+ props: {
64
+ config: {
65
+ type: Object,
66
+ default() {
67
+ return {};
68
+ }
69
+ },
70
+ dataset: {
71
+ type: Array,
72
+ default() {
73
+ return [];
74
+ }
75
+ }
76
+ },
77
+ emits: [
78
+ "selectLegend",
79
+ "selectDatapoint",
80
+ "copyAlt"
81
+ ],
82
+ setup(e, { expose: Ce, emit: Ge }) {
83
+ let dt = m(() => import("./Tooltip-DZ4a3XJQ.js")), ft = m(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), pt = m(() => import("./vue-ui-accordion-yHZMJLaY.js").then((e) => e.n)), mt = m(() => import("./DataTable-BD1eZ0zB.js")), ht = m(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), gt = m(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), _t = m(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), vt = m(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_galaxy: yt } = pe(), { isThemeValid: bt, warnInvalidTheme: xt } = ve(), T = e, E = b(c()), D = b(null), St = b(!1), Ct = b(""), O = b(null), wt = b(0), Tt = b(0), Et = b(0), Dt = b(0), Ot = b(null), kt = b(null), At = b(null), jt = b(null), k = b(null), Mt = b(null), Nt = b(!1), A = b(null), Pt = b(null), j = b(null), Ft = b(null), It = b({
84
+ x: 0,
85
+ y: 0
86
+ }), Lt = b("pointer"), Rt = b(!1), zt = l(() => !!T.dataset && T.dataset.length), M = b(Yt()), N = l(() => M.value.style.chart.layout.arcs), P = l(() => M.value.style.chart.layout), F = l(() => M.value.style.chart);
87
+ de({
88
+ config: () => M.value,
89
+ dataset: () => T.dataset,
90
+ component: "VueUiGalaxy",
91
+ rules: [
92
+ fe.singleSeries,
93
+ fe.emptyArray,
94
+ {
95
+ test: (e) => e.length > 6,
96
+ message: [
97
+ "👀 The number of series is > 6. Consider:",
98
+ "",
99
+ "▶️ Grouping small values dynamically into a single \"Other\" series.",
100
+ "",
101
+ "▶️ Using filters to let users choose a maximum number of series to display.",
102
+ "",
103
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
104
+ ]
105
+ }
106
+ ]
107
+ });
108
+ let { transitionEnabled: Bt } = be({
109
+ config: () => M.value.transitions,
110
+ dataset: () => T.dataset
111
+ }), I = l(() => M.value.userOptions.useCursorPointer), Vt = l(() => se({
112
+ defaultConfig: {
113
+ userOptions: { show: !1 },
114
+ table: { show: !1 },
115
+ useCssAnimation: !1,
116
+ style: { chart: {
117
+ backgroundColor: "#99999930",
118
+ legend: { backgroundColor: "transparent" }
119
+ } }
120
+ },
121
+ userConfig: M.value.skeletonConfig ?? {}
122
+ })), { loading: Ht, FINAL_DATASET: Ut } = he({
123
+ ...Ue(T),
124
+ FINAL_CONFIG: M,
125
+ prepareConfig: Yt,
126
+ callback: () => {
127
+ Promise.resolve().then(async () => {
128
+ await ze(), R.value.showTable = M.value.table.show;
129
+ });
130
+ },
131
+ skeletonDataset: T.config?.skeletonDataset ?? [
132
+ {
133
+ name: "_",
134
+ values: [21],
135
+ color: "#DBDBDB"
136
+ },
137
+ {
138
+ name: "_",
139
+ values: [13],
140
+ color: "#C4C4C4"
141
+ },
142
+ {
143
+ name: "_",
144
+ values: [8],
145
+ color: "#ADADAD"
146
+ }
147
+ ],
148
+ skeletonConfig: se({
149
+ defaultConfig: M.value,
150
+ userConfig: Vt.value
151
+ })
152
+ });
153
+ Be(() => {
154
+ Nt.value = !0, Gt();
155
+ });
156
+ let Wt = l(() => M.value.debug);
157
+ function Gt() {
158
+ if (o(T.dataset) ? te({
159
+ componentName: "VueUiGalaxy",
160
+ type: "dataset",
161
+ debug: Wt.value
162
+ }) : Wt.value && T.dataset.forEach((e, t) => {
163
+ ce({
164
+ datasetObject: e,
165
+ requiredAttributes: ["name", "values"]
166
+ }).forEach((e) => {
167
+ te({
168
+ componentName: "VueUiGalaxy",
169
+ type: "datasetSerieAttribute",
170
+ property: e,
171
+ index: t
172
+ });
173
+ });
174
+ }), M.value.responsive) {
175
+ let e = we(() => {
176
+ let { width: e, height: t } = Te({
177
+ chart: D.value,
178
+ title: F.value.title.text ? Ot.value : null,
179
+ legend: F.value.legend.show ? kt.value : null,
180
+ noTitle: jt.value,
181
+ source: At.value
182
+ });
183
+ requestAnimationFrame(() => {
184
+ z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
185
+ });
186
+ });
187
+ k.value && (Mt.value && k.value.unobserve(Mt.value), k.value.disconnect()), k.value = new ResizeObserver(e), Mt.value = D.value.parentNode, k.value.observe(Mt.value);
188
+ }
189
+ }
190
+ let { userOptionsVisible: Kt, setUserOptionsVisibility: qt, keepUserOptionState: Jt } = Oe({ config: M.value }), { svgRef: L } = ke({ config: F.value.title });
191
+ function Yt() {
192
+ let e = _e({
193
+ userConfig: T.config,
194
+ defaultConfig: yt
195
+ }), t = e.theme;
196
+ if (!t) return e;
197
+ if (!bt.value(e)) return xt(e), e;
198
+ let r = _e({
199
+ userConfig: Me[t] || T.config,
200
+ defaultConfig: e
201
+ }), i = _e({
202
+ userConfig: T.config,
203
+ defaultConfig: r
204
+ });
205
+ return {
206
+ ...i,
207
+ customPalette: i.customPalette.length ? i.customPalette : n[t] || s
208
+ };
209
+ }
210
+ function Xt(e) {
211
+ let t = ne(e);
212
+ return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
213
+ }
214
+ let Zt = Xt(T.config);
215
+ We(() => T.config, (e, t) => {
216
+ let n = Xt(e), r = n !== Zt;
217
+ Zt = n;
218
+ let i = Yt();
219
+ if (!r) {
220
+ M.value.style.chart.tooltip = i.style.chart.tooltip, R.value.showTooltip = M.value.style.chart.tooltip.show;
221
+ return;
222
+ }
223
+ M.value = i, Kt.value = !M.value.userOptions.showOnChartHover, Gt(), Tt.value += 1, Et.value += 1, Dt.value += 1, R.value.dataLabels.show = P.value.labels.dataLabels.show, R.value.showTable = M.value.table.show, R.value.showTooltip = F.value.tooltip.show;
224
+ }, { deep: !0 });
225
+ let { isPrinting: Qt, isImaging: $t, generatePdf: en, generateImage: tn } = me({
226
+ elementId: `galaxy_${E.value}`,
227
+ fileName: F.value.title.text || "vue-ui-galaxy",
228
+ options: M.value.userOptions.print
229
+ }), nn = l(() => M.value.userOptions.show && !F.value.title.text), rn = l(() => le(M.value.customPalette)), R = b({
230
+ dataLabels: { show: P.value.labels.dataLabels.show },
231
+ showTable: M.value.table.show,
232
+ showTooltip: F.value.tooltip.show
233
+ }), z = b(250), B = b(180), an = b(0), on = b(0), V = l(() => ({
234
+ width: z.value,
235
+ height: B.value,
236
+ viewBox: `${an.value} ${on.value} ${z.value} ${B.value}`
237
+ })), sn = Ge, H = b([]);
238
+ function cn() {
239
+ sn("selectLegend", K.value.map((e) => ({
240
+ name: e.name,
241
+ color: e.color,
242
+ value: e.value
243
+ })));
244
+ }
245
+ function ln() {
246
+ H.value.length ? H.value = [] : J.value.forEach((e) => {
247
+ H.value.push(e.id);
248
+ }), cn();
249
+ }
250
+ function U(e) {
251
+ H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), cn();
252
+ }
253
+ function un(e) {
254
+ return W.value.length ? W.value.find((t) => t.name === e) || (Wt.value && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (Wt.value && console.warn("VueUiGalaxy - There are no series to show."), null);
255
+ }
256
+ function dn(e) {
257
+ let t = un(e);
258
+ t !== null && H.value.includes(t.id) && U({ id: t.id });
259
+ }
260
+ function fn(e) {
261
+ let t = un(e);
262
+ t !== null && (H.value.includes(t.id) || U({ id: t.id }));
263
+ }
264
+ let W = l(() => Ut.value.map((e, t) => ({
265
+ name: e.name,
266
+ color: ee(e.color) || rn.value[t] || s[t] || s[t % s.length],
267
+ value: e.values ? a(e.values).reduce((e, t) => e + t, 0) : 0,
268
+ absoluteValues: a(e.values),
269
+ id: c()
270
+ })).sort((e, t) => t.value - e.value).map((e, t) => ({
271
+ ...e,
272
+ absoluteIndex: t
273
+ })));
274
+ function pn() {
275
+ return W.value.map((e) => ({
276
+ name: e.name,
277
+ color: e.color,
278
+ value: e.value
279
+ }));
280
+ }
281
+ let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), mn = b(190), hn = l(() => W.value.filter((e) => !H.value.includes(e.id))), gn = l(() => (N.value.strokeWidth + N.value.borderWidth) / 2 + (P.value.padding ?? 12)), _n = l(() => ue({
282
+ maxPoints: mn.value,
283
+ a: N.value.a ?? 6,
284
+ b: N.value.b ?? 6,
285
+ angleStep: N.value.angleStep ?? .07,
286
+ startX: V.value.width / 2 + N.value.offsetX,
287
+ startY: V.value.height / 2 + N.value.offsetY,
288
+ boxWidth: V.value.width,
289
+ boxHeight: V.value.height,
290
+ padding: gn.value
291
+ })), K = l(() => {
292
+ let e = [];
293
+ for (let t = 0; t < hn.value.length; t += 1) {
294
+ let n = hn.value[t], r = n.value / G.value * mn.value + (t > 0 && e.length ? e[t - 1].points : 0);
295
+ e.push({
296
+ points: r,
297
+ ...n,
298
+ seriesIndex: t,
299
+ proportion: n.value / G.value,
300
+ path: _n.value(r)
301
+ });
302
+ }
303
+ return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
304
+ });
305
+ function vn(e) {
306
+ let t = Math.min(z.value, B.value), n = O.value === e.id && N.value.hoverEffect.show ? N.value.hoverEffect.multiplicator : 1, r = (N.value.strokeWidth + N.value.borderWidth) * n, i = N.value.strokeWidth * n, a = N.value.strokeWidth / 2 * n;
307
+ return {
308
+ border: r / 180 * t,
309
+ path: i / 180 * t,
310
+ blur: a / 180 * t
311
+ };
312
+ }
313
+ let q = b(!1);
314
+ function yn(e) {
315
+ q.value = e, wt.value += 1;
316
+ }
317
+ let bn = b(null);
318
+ function xn() {
319
+ St.value = !1, O.value = null, j.value = null, Ft.value = null;
320
+ }
321
+ function Sn(e) {
322
+ if (!L.value || !e) return;
323
+ let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
324
+ if (!t) return;
325
+ let n = t.getBoundingClientRect();
326
+ It.value = {
327
+ x: n.left + n.width / 2,
328
+ y: n.top + n.height / 2
329
+ };
330
+ }
331
+ function Cn(e) {
332
+ M.value.events.datapointLeave && M.value.events.datapointLeave({
333
+ datapoint: e,
334
+ seriesIndex: e.absoluteIndex
335
+ }), (Ft.value !== e.id || Lt.value !== "keyboard") && (St.value = !1, O.value = null);
336
+ }
337
+ function wn(e) {
338
+ sn("selectDatapoint", e), M.value.events.datapointClick && M.value.events.datapointClick({
339
+ datapoint: e,
340
+ seriesIndex: e.absoluteIndex
341
+ });
342
+ }
343
+ function Tn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
344
+ let i = P.value.labels.dataLabels;
345
+ return Ae({
346
+ config: i,
347
+ val: e,
348
+ percentage: t,
349
+ showVal: n,
350
+ showPercentage: r
351
+ });
352
+ }
353
+ function En({ datapoint: e, _relativeIndex: n, seriesIndex: r, show: a = !1, triggerMode: o = "pointer", flatIndex: ee = null }) {
354
+ if (M.value.events.datapointEnter && M.value.events.datapointEnter({
355
+ datapoint: e,
356
+ seriesIndex: e.absoluteIndex
357
+ }), !R.value.showTooltip) return;
358
+ Lt.value = o, j.value = ee, Ft.value = e.id, bn.value = {
359
+ datapoint: e,
360
+ seriesIndex: r,
361
+ series: W.value,
362
+ config: M.value
363
+ }, St.value = a, O.value = e.id;
364
+ let s = "", c = F.value.tooltip.customFormat;
365
+ i(c) && re(() => c({
366
+ seriesIndex: r,
367
+ datapoint: e,
368
+ series: W.value,
369
+ config: M.value
370
+ })) ? Ct.value = c({
371
+ seriesIndex: r,
372
+ datapoint: e,
373
+ series: W.value,
374
+ config: M.value
375
+ }) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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>`, s += `<b>${Tn({
376
+ showVal: F.value.tooltip.showValue,
377
+ showPercentage: F.value.tooltip.showPercentage,
378
+ val: ie(P.value.labels.dataLabels.formatter, e.value, t({
379
+ p: P.value.labels.dataLabels.prefix,
380
+ v: e.value,
381
+ s: P.value.labels.dataLabels.suffix,
382
+ r: F.value.tooltip.roundingValue
383
+ }), {
384
+ datapoint: e,
385
+ seriesIndex: r
386
+ }),
387
+ percentage: t({
388
+ v: e.proportion * 100,
389
+ s: "%",
390
+ r: F.value.tooltip.roundingPercentage
391
+ })
392
+ })}</b></div>`, Ct.value = `<div>${s}</div>`), o === "keyboard" && ze(() => {
393
+ Sn(e.id);
394
+ });
395
+ }
396
+ let J = l(() => W.value.map((e, n) => {
397
+ let r = ie(P.value.labels.dataLabels.formatter, e.value, t({
398
+ p: P.value.labels.dataLabels.prefix,
399
+ v: e.value,
400
+ s: P.value.labels.dataLabels.suffix,
401
+ r: F.value.legend.roundingValue
402
+ }), {
403
+ datapoint: e,
404
+ index: n
405
+ }), i = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : t({
406
+ v: e.value / G.value * 100,
407
+ s: "%",
408
+ r: F.value.legend.roundingPercentage
409
+ }), a = Tn({
410
+ showVal: F.value.legend.showValue,
411
+ showPercentage: F.value.legend.showPercentage,
412
+ val: r,
413
+ percentage: i
414
+ });
415
+ return {
416
+ ...e,
417
+ proportion: (e.value || 0) / Ut.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
418
+ opacity: H.value.includes(e.id) ? .5 : 1,
419
+ shape: e.shape || "circle",
420
+ segregate: () => U(e),
421
+ isSegregated: H.value.includes(e.id),
422
+ display: `${e.name}${F.value.legend.showPercentage || F.value.legend.showValue ? ": " : ""}${a}`
423
+ };
424
+ })), Dn = l(() => ({
425
+ cy: "galaxy-div-legend",
426
+ backgroundColor: F.value.legend.backgroundColor,
427
+ color: F.value.legend.color,
428
+ fontSize: F.value.legend.fontSize,
429
+ paddingBottom: 12,
430
+ fontWeight: F.value.legend.bold ? "bold" : ""
431
+ })), Y = l(() => ({
432
+ head: K.value.map((e) => ({
433
+ name: e.name,
434
+ color: e.color
435
+ })),
436
+ body: K.value.map((e) => e.value)
437
+ }));
438
+ function On(e = null) {
439
+ ze(() => {
440
+ let t = Y.value.head.map((e, t) => [
441
+ [e.name],
442
+ [Y.value.body[t]],
443
+ [isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
444
+ ]), n = [
445
+ [F.value.title.text],
446
+ [F.value.title.subtitle.text],
447
+ [
448
+ [""],
449
+ ["val"],
450
+ ["%"]
451
+ ]
452
+ ].concat(t), i = r(n);
453
+ e ? e(i) : ae({
454
+ csvContent: i,
455
+ title: F.value.title.text || "vue-ui-galaxy"
456
+ });
457
+ });
458
+ }
459
+ let X = l(() => {
460
+ let e = [
461
+ "__SUM__",
462
+ t({
463
+ p: P.value.labels.dataLabels.prefix,
464
+ v: G.value,
465
+ s: P.value.labels.dataLabels.suffix,
466
+ r: M.value.table.td.roundingValue
467
+ }),
468
+ "100%"
469
+ ], n = Y.value.head.map((e, n) => {
470
+ let r = t({
471
+ p: P.value.labels.dataLabels.prefix,
472
+ v: Y.value.body[n],
473
+ s: P.value.labels.dataLabels.suffix,
474
+ r: M.value.table.td.roundingValue
475
+ });
476
+ return [
477
+ {
478
+ color: e.color,
479
+ name: e.name
480
+ },
481
+ r,
482
+ isNaN(Y.value.body[n] / G.value) ? "-" : t({
483
+ v: Y.value.body[n] / G.value * 100,
484
+ s: "%",
485
+ r: M.value.table.td.roundingPercentage
486
+ })
487
+ ];
488
+ }), r = {
489
+ th: {
490
+ backgroundColor: M.value.table.th.backgroundColor,
491
+ color: M.value.table.th.color,
492
+ outline: M.value.table.th.outline
493
+ },
494
+ td: {
495
+ backgroundColor: M.value.table.td.backgroundColor,
496
+ color: M.value.table.td.color,
497
+ outline: M.value.table.td.outline
498
+ },
499
+ breakpoint: M.value.table.responsiveBreakpoint
500
+ };
501
+ return {
502
+ colNames: [
503
+ M.value.table.columnNames.series,
504
+ M.value.table.columnNames.value,
505
+ M.value.table.columnNames.percentage
506
+ ],
507
+ head: e,
508
+ body: n,
509
+ config: r
510
+ };
511
+ });
512
+ function kn() {
513
+ R.value.showTable = !R.value.showTable;
514
+ }
515
+ function An() {
516
+ R.value.showTooltip = !R.value.showTooltip;
517
+ }
518
+ let Z = b(!1);
519
+ function jn() {
520
+ Z.value = !Z.value;
521
+ }
522
+ async function Mn({ scale: e = 2 } = {}) {
523
+ if (!D.value) return;
524
+ let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
525
+ domElement: D.value,
526
+ base64: !0,
527
+ img: !0,
528
+ scale: e
529
+ });
530
+ return {
531
+ imageUri: i,
532
+ base64: a,
533
+ title: F.value.title.text,
534
+ width: t,
535
+ height: n,
536
+ aspectRatio: r
537
+ };
538
+ }
539
+ let Q = l(() => {
540
+ let e = M.value.table.useDialog && !M.value.table.show, t = R.value.showTable;
541
+ return {
542
+ component: e ? vt : pt,
543
+ title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
544
+ props: e ? {
545
+ backgroundColor: M.value.table.th.backgroundColor,
546
+ color: M.value.table.th.color,
547
+ headerColor: M.value.table.th.color,
548
+ headerBg: M.value.table.th.backgroundColor,
549
+ isFullscreen: q.value,
550
+ fullscreenParent: D.value,
551
+ forcedWidth: Math.min(500, window.innerWidth * .8),
552
+ isCursorPointer: I.value
553
+ } : {
554
+ hideDetails: !0,
555
+ config: {
556
+ open: t,
557
+ maxHeight: 1e4,
558
+ body: {
559
+ backgroundColor: F.value.backgroundColor,
560
+ color: F.value.color
561
+ },
562
+ head: {
563
+ backgroundColor: F.value.backgroundColor,
564
+ color: F.value.color
565
+ }
566
+ }
567
+ }
568
+ };
569
+ });
570
+ We(() => R.value.showTable, (e) => {
571
+ M.value.table.show || (e && M.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
572
+ });
573
+ function Nn() {
574
+ R.value.showTable = !1, Pt.value && Pt.value.setTableIconState(!1);
575
+ }
576
+ let Pn = l(() => J.value.map((e) => ({
577
+ ...e,
578
+ name: e.display
579
+ }))), Fn = l(() => F.value.backgroundColor), In = l(() => F.value.legend), Ln = l(() => F.value.title), { isCallbackImaging: Rn, isCallbackSvg: zn, generateSvg: Bn, onGenerateImage: Vn } = ye({
580
+ svg: L,
581
+ title: Ln,
582
+ legend: In,
583
+ legendItems: Pn,
584
+ backgroundColor: Fn,
585
+ getSvgCallback: () => M.value.userOptions.callbacks.svg,
586
+ generateImage: tn
587
+ });
588
+ async function Hn() {
589
+ if (sn("copyAlt", {
590
+ config: M.value,
591
+ dataset: W.value
592
+ }), !M.value.userOptions.callbacks.altCopy) {
593
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
594
+ return;
595
+ }
596
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
597
+ config: M.value,
598
+ dataset: W.value
599
+ }));
600
+ }
601
+ function Un() {
602
+ j.value = null, Ft.value = null, Rt.value = !0;
603
+ }
604
+ function Wn() {
605
+ xn(), Rt.value = !1;
606
+ }
607
+ function Gn(e) {
608
+ if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
609
+ 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";
610
+ if (!t && !n && !r && !i) return;
611
+ if (e.preventDefault(), e.stopPropagation(), i) {
612
+ xn();
613
+ return;
614
+ }
615
+ if (r) {
616
+ if (j.value === null) return;
617
+ let e = $.value[j.value];
618
+ if (!e) return;
619
+ wn(e.datapoint);
620
+ return;
621
+ }
622
+ let a = j.value;
623
+ 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));
624
+ let o = $.value[a];
625
+ o && En({
626
+ datapoint: o.datapoint,
627
+ seriesIndex: o.datapoint.seriesIndex,
628
+ show: !0,
629
+ triggerMode: "keyboard",
630
+ flatIndex: a
631
+ });
632
+ }
633
+ let Kn = l(() => ({
634
+ headers: X.value?.colNames ?? [],
635
+ rows: X.value?.body ?? []
636
+ })), $ = l(() => K.value.map((e, t) => ({
637
+ datapoint: e,
638
+ index: t
639
+ })));
640
+ return Ce({
641
+ getData: pn,
642
+ getImage: Mn,
643
+ generatePdf: en,
644
+ generateCsv: On,
645
+ generateImage: tn,
646
+ generateSvg: Bn,
647
+ hideSeries: fn,
648
+ showSeries: dn,
649
+ toggleTable: kn,
650
+ toggleTooltip: An,
651
+ toggleAnnotator: jn,
652
+ toggleFullscreen: yn,
653
+ copyAlt: Hn
654
+ }), (e, n) => (y(), f("div", {
655
+ ref_key: "galaxyChart",
656
+ ref: D,
657
+ class: g(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"} ${C(Ht) ? "loading" : ""}`),
658
+ style: v(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;${F.value.title.text ? "" : "padding-top:36px"};background:${F.value.backgroundColor}`),
659
+ id: `galaxy_${E.value}`,
660
+ onMouseenter: n[2] ||= () => C(qt)(!0),
661
+ onMouseleave: n[3] ||= () => {
662
+ C(qt)(!1), Rt.value || xn();
663
+ }
664
+ }, [
665
+ p("div", {
666
+ id: `chart-instructions-${E.value}`,
667
+ class: "sr-only"
668
+ }, [p("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
669
+ Kn.value?.rows?.length ? (y(), u(De, {
670
+ key: 0,
671
+ uid: E.value,
672
+ head: Kn.value.headers,
673
+ body: Kn.value.rows,
674
+ notice: M.value.a11y.translations.tableAvailable,
675
+ caption: M.value.a11y.translations.tableCaption
676
+ }, null, 8, [
677
+ "uid",
678
+ "head",
679
+ "body",
680
+ "notice",
681
+ "caption"
682
+ ])) : d("", !0),
683
+ M.value.userOptions.buttons.annotator ? (y(), u(C(ht), {
684
+ key: 1,
685
+ svgRef: C(L),
686
+ backgroundColor: F.value.backgroundColor,
687
+ color: F.value.color,
688
+ active: Z.value,
689
+ isCursorPointer: I.value,
690
+ palette: M.value.userOptions.annotatorPalette,
691
+ onClose: jn
692
+ }, {
693
+ "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
694
+ "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
695
+ "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
696
+ "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
697
+ "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
698
+ "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
699
+ _: 3
700
+ }, 8, [
701
+ "svgRef",
702
+ "backgroundColor",
703
+ "color",
704
+ "active",
705
+ "isCursorPointer",
706
+ "palette"
707
+ ])) : d("", !0),
708
+ nn.value ? (y(), f("div", {
709
+ key: 2,
710
+ ref_key: "noTitle",
711
+ ref: jt,
712
+ class: "vue-data-ui-no-title-space",
713
+ style: "height:36px; width: 100%;background:transparent"
714
+ }, null, 512)) : d("", !0),
715
+ F.value.title.text ? (y(), f("div", {
716
+ key: 3,
717
+ ref_key: "chartTitle",
718
+ ref: Ot,
719
+ style: "width:100%;background:transparent;padding-bottom:24px"
720
+ }, [(y(), u(Se, {
721
+ key: `title_${Tt.value}`,
722
+ config: {
723
+ title: {
724
+ cy: "galaxy-div-title",
725
+ ...F.value.title
726
+ },
727
+ subtitle: {
728
+ cy: "galaxy-div-subtitle",
729
+ ...F.value.title.subtitle
730
+ }
731
+ }
732
+ }, null, 8, ["config"]))], 512)) : d("", !0),
733
+ p("div", { id: `legend-top-${E.value}` }, null, 8, Je),
734
+ M.value.userOptions.show && zt.value && (C(Jt) || C(Kt)) ? (y(), u(C(gt), {
735
+ ref_key: "userOptionsRef",
736
+ ref: Pt,
737
+ key: `user_option_${wt.value}`,
738
+ backgroundColor: F.value.backgroundColor,
739
+ color: F.value.color,
740
+ isPrinting: C(Qt),
741
+ isImaging: C($t),
742
+ uid: E.value,
743
+ hasTooltip: M.value.userOptions.buttons.tooltip && F.value.tooltip.show,
744
+ hasPdf: M.value.userOptions.buttons.pdf,
745
+ hasXls: M.value.userOptions.buttons.csv,
746
+ hasImg: M.value.userOptions.buttons.img,
747
+ hasSvg: M.value.userOptions.buttons.svg,
748
+ hasTable: M.value.userOptions.buttons.table,
749
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
750
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
751
+ isTooltip: R.value.showTooltip,
752
+ isFullscreen: q.value,
753
+ titles: { ...M.value.userOptions.buttonTitles },
754
+ chartElement: D.value,
755
+ position: M.value.userOptions.position,
756
+ hasAnnotator: M.value.userOptions.buttons.annotator,
757
+ isAnnotation: Z.value,
758
+ callbacks: M.value.userOptions.callbacks,
759
+ printScale: M.value.userOptions.print.scale,
760
+ tableDialog: M.value.table.useDialog,
761
+ isCursorPointer: I.value,
762
+ onToggleFullscreen: yn,
763
+ onGeneratePdf: C(en),
764
+ onGenerateCsv: On,
765
+ onGenerateImage: C(Vn),
766
+ onGenerateSvg: C(Bn),
767
+ onToggleTable: kn,
768
+ onToggleTooltip: An,
769
+ onToggleAnnotator: jn,
770
+ onCopyAlt: Hn,
771
+ style: v({ visibility: C(Jt) ? C(Kt) ? "visible" : "hidden" : "visible" })
772
+ }, Fe({ _: 2 }, [
773
+ e.$slots.menuIcon ? {
774
+ name: "menuIcon",
775
+ fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
776
+ isOpen: t,
777
+ color: n
778
+ })), void 0, !0)]),
779
+ key: "0"
780
+ } : void 0,
781
+ e.$slots.optionTooltip ? {
782
+ name: "optionTooltip",
783
+ fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
784
+ key: "1"
785
+ } : void 0,
786
+ e.$slots.optionPdf ? {
787
+ name: "optionPdf",
788
+ fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
789
+ key: "2"
790
+ } : void 0,
791
+ e.$slots.optionCsv ? {
792
+ name: "optionCsv",
793
+ fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
794
+ key: "3"
795
+ } : void 0,
796
+ e.$slots.optionImg ? {
797
+ name: "optionImg",
798
+ fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
799
+ key: "4"
800
+ } : void 0,
801
+ e.$slots.optionSvg ? {
802
+ name: "optionSvg",
803
+ fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
804
+ key: "5"
805
+ } : void 0,
806
+ e.$slots.optionTable ? {
807
+ name: "optionTable",
808
+ fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
809
+ key: "6"
810
+ } : void 0,
811
+ e.$slots.optionFullscreen ? {
812
+ name: "optionFullscreen",
813
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
814
+ toggleFullscreen: t,
815
+ isFullscreen: n
816
+ })), void 0, !0)]),
817
+ key: "7"
818
+ } : void 0,
819
+ e.$slots.optionAnnotator ? {
820
+ name: "optionAnnotator",
821
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
822
+ toggleAnnotator: t,
823
+ isAnnotator: n
824
+ })), void 0, !0)]),
825
+ key: "8"
826
+ } : void 0,
827
+ e.$slots.optionAltCopy ? {
828
+ name: "optionAltCopy",
829
+ fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
830
+ key: "9"
831
+ } : void 0,
832
+ e.$slots["custom-menu-before"] ? {
833
+ name: "custom-menu-before",
834
+ fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
835
+ key: "10"
836
+ } : void 0,
837
+ e.$slots["custom-menu-after"] ? {
838
+ name: "custom-menu-after",
839
+ fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
840
+ key: "11"
841
+ } : void 0
842
+ ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : d("", !0),
843
+ p("div", Ye, [(y(), f("svg", {
844
+ ref_key: "svgRef",
845
+ ref: L,
846
+ xmlns: C(oe),
847
+ "aria-describedby": `chart-instructions-${E.value}`,
848
+ class: g({
849
+ "vue-data-ui-fullscreen--on": q.value,
850
+ "vue-data-ui-fulscreen--off": !q.value
851
+ }),
852
+ viewBox: V.value.viewBox,
853
+ style: v(`max-width:100%; overflow: visible; background:transparent;color:${F.value.color}`),
854
+ tabindex: "0",
855
+ onFocus: Un,
856
+ onBlur: Wn,
857
+ onKeydown: Gn
858
+ }, [
859
+ Le(C(_t)),
860
+ e.$slots["chart-background"] ? (y(), f("foreignObject", {
861
+ key: 0,
862
+ x: 0,
863
+ y: 0,
864
+ width: V.value.width,
865
+ height: V.value.height,
866
+ style: { pointerEvents: "none" }
867
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : d("", !0),
868
+ p("defs", null, [p("filter", {
869
+ id: `blur_${E.value}`,
870
+ x: "-50%",
871
+ y: "-50%",
872
+ width: "200%",
873
+ height: "200%"
874
+ }, [p("feGaussianBlur", {
875
+ in: "SourceGraphic",
876
+ stdDeviation: 100 / N.value.gradient.intensity
877
+ }, null, 8, $e)], 8, Qe)]),
878
+ (y(!0), f(Ne, null, Ve(K.value, (e) => (y(), f("g", { key: `dp_${e.id}` }, [
879
+ e.value ? (y(), f("path", {
880
+ key: 0,
881
+ d: e.path,
882
+ fill: "none",
883
+ stroke: F.value.backgroundColor,
884
+ "stroke-width": vn(e).border,
885
+ class: g({ "vue-data-ui-transition": C(Bt) }),
886
+ "stroke-linecap": "round"
887
+ }, null, 10, et)) : d("", !0),
888
+ e.value ? (y(), f("path", {
889
+ key: 1,
890
+ d: e.path,
891
+ fill: "none",
892
+ stroke: e.color,
893
+ "stroke-width": vn(e).path,
894
+ "stroke-linecap": "round",
895
+ class: g({
896
+ "vue-data-ui-transition": C(Bt),
897
+ "vue-ui-galaxy-blur": O.value && O.value !== e.id && M.value.useBlurOnHover
898
+ })
899
+ }, null, 10, tt)) : d("", !0),
900
+ e.value && N.value.gradient.show ? (y(), f("g", {
901
+ key: 2,
902
+ filter: `url(#blur_${E.value})`
903
+ }, [p("path", {
904
+ d: e.path,
905
+ fill: "none",
906
+ stroke: N.value.gradient.color,
907
+ "stroke-width": vn(e).blur,
908
+ "stroke-linecap": "round",
909
+ class: g({
910
+ "vue-ui-galaxy-gradient": !0,
911
+ "vue-data-ui-transition": C(Bt),
912
+ "vue-ui-galaxy-blur": O.value && O.value !== e.id && M.value.useBlurOnHover
913
+ })
914
+ }, null, 10, rt)], 8, nt)) : d("", !0)
915
+ ]))), 128)),
916
+ (y(!0), f(Ne, null, Ve(K.value, (e, n) => (y(), f("g", null, [e.value ? (y(), f("path", {
917
+ key: 0,
918
+ "data-a11y-serie-id": e.id,
919
+ d: e.path,
920
+ fill: "none",
921
+ stroke: "transparent",
922
+ "stroke-width": N.value.strokeWidth + N.value.borderWidth,
923
+ "stroke-linecap": "round",
924
+ "aria-label": `${e.name}: ${C(t)({
925
+ p: P.value.labels.dataLabels.prefix,
926
+ v: e.value,
927
+ s: P.value.labels.dataLabels.suffix,
928
+ r: F.value.tooltip.roundingValue
929
+ })}`,
930
+ onMouseenter: (t) => En({
931
+ datapoint: e,
932
+ relativeIndex: n,
933
+ seriesIndex: e.seriesIndex,
934
+ show: !0,
935
+ triggerMode: "pointer",
936
+ flatIndex: n
937
+ }),
938
+ onMouseleave: (t) => Cn(e),
939
+ onClick: (t) => wn(e)
940
+ }, null, 40, it)) : d("", !0)]))), 256)),
941
+ x(e.$slots, "svg", { svg: {
942
+ ...V.value,
943
+ isPrintingImg: C(Qt) || C($t) || C(Rn),
944
+ isPrintingSvg: C(zn)
945
+ } }, void 0, !0)
946
+ ], 46, Xe)), e.$slots.hint ? (y(), f("div", at, [x(e.$slots, "hint", _(h({
947
+ hint: M.value.a11y.translations.keyboardNavigation,
948
+ isVisible: Rt.value
949
+ })), void 0, !0)])) : d("", !0)]),
950
+ e.$slots.watermark ? (y(), f("div", ot, [x(e.$slots, "watermark", _(h({ isPrinting: C(Qt) || C($t) || C(Rn) || C(zn) })), void 0, !0)])) : d("", !0),
951
+ p("div", { id: `legend-bottom-${E.value}` }, null, 8, st),
952
+ Nt.value && (F.value.legend.show || e.$slots.legend) ? (y(), u(Pe, {
953
+ key: 6,
954
+ to: F.value.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
955
+ }, [p("div", {
956
+ ref_key: "chartLegend",
957
+ ref: kt
958
+ }, [x(e.$slots, "legend", { legend: J.value }, () => [F.value.legend.show ? (y(), u(je, {
959
+ key: `legend_${Dt.value}`,
960
+ legendSet: J.value,
961
+ config: Dn.value,
962
+ onClickMarker: n[0] ||= ({ legend: e }) => U(e)
963
+ }, {
964
+ item: w(({ legend: e, index: t }) => [C(Ht) ? d("", !0) : (y(), f("div", {
965
+ key: 0,
966
+ onClick: (t) => U(e),
967
+ style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
968
+ }, S(e.display), 13, ct))]),
969
+ legendToggle: w(() => [J.value.length > 2 && F.value.legend.selectAllToggle.show && !C(Ht) ? (y(), u(Ee, {
970
+ key: 0,
971
+ backgroundColor: F.value.legend.selectAllToggle.backgroundColor,
972
+ color: F.value.legend.selectAllToggle.color,
973
+ fontSize: F.value.legend.fontSize,
974
+ checked: H.value.length > 0,
975
+ onToggle: ln
976
+ }, null, 8, [
977
+ "backgroundColor",
978
+ "color",
979
+ "fontSize",
980
+ "checked"
981
+ ])) : d("", !0)]),
982
+ _: 1
983
+ }, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
984
+ e.$slots.source ? (y(), f("div", {
985
+ key: 7,
986
+ ref_key: "source",
987
+ ref: At,
988
+ dir: "auto"
989
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
990
+ Le(C(dt), {
991
+ teleportTo: F.value.tooltip.teleportTo,
992
+ show: R.value.showTooltip && St.value,
993
+ backgroundColor: F.value.tooltip.backgroundColor,
994
+ color: F.value.tooltip.color,
995
+ borderRadius: F.value.tooltip.borderRadius,
996
+ borderColor: F.value.tooltip.borderColor,
997
+ borderWidth: F.value.tooltip.borderWidth,
998
+ fontSize: F.value.tooltip.fontSize,
999
+ backgroundOpacity: F.value.tooltip.backgroundOpacity,
1000
+ position: F.value.tooltip.position,
1001
+ offsetX: F.value.tooltip.offsetX,
1002
+ offsetY: F.value.tooltip.offsetY,
1003
+ parent: D.value,
1004
+ content: Ct.value,
1005
+ isFullscreen: q.value,
1006
+ isCustom: C(i)(F.value.tooltip.customFormat),
1007
+ smooth: F.value.tooltip.smooth,
1008
+ backdropFilter: F.value.tooltip.backdropFilter,
1009
+ smoothForce: F.value.tooltip.smoothForce,
1010
+ smoothSnapThreshold: F.value.tooltip.smoothSnapThreshold,
1011
+ isA11yMode: Lt.value === "keyboard",
1012
+ a11yPosition: It.value
1013
+ }, {
1014
+ "tooltip-before": w(() => [x(e.$slots, "tooltip-before", _(h({ ...bn.value })), void 0, !0)]),
1015
+ tooltip: w(() => [x(e.$slots, "tooltip", _(h({ ...bn.value })), void 0, !0)]),
1016
+ "tooltip-after": w(() => [x(e.$slots, "tooltip-after", _(h({ ...bn.value })), void 0, !0)]),
1017
+ _: 3
1018
+ }, 8, [
1019
+ "teleportTo",
1020
+ "show",
1021
+ "backgroundColor",
1022
+ "color",
1023
+ "borderRadius",
1024
+ "borderColor",
1025
+ "borderWidth",
1026
+ "fontSize",
1027
+ "backgroundOpacity",
1028
+ "position",
1029
+ "offsetX",
1030
+ "offsetY",
1031
+ "parent",
1032
+ "content",
1033
+ "isFullscreen",
1034
+ "isCustom",
1035
+ "smooth",
1036
+ "backdropFilter",
1037
+ "smoothForce",
1038
+ "smoothSnapThreshold",
1039
+ "isA11yMode",
1040
+ "a11yPosition"
1041
+ ]),
1042
+ zt.value && M.value.userOptions.buttons.table ? (y(), u(He(Q.value.component), Re({ key: 8 }, Q.value.props, {
1043
+ ref_key: "tableUnit",
1044
+ ref: A,
1045
+ onClose: Nn
1046
+ }), Fe({
1047
+ content: w(() => [(y(), u(C(mt), {
1048
+ key: `table_${Et.value}`,
1049
+ colNames: X.value.colNames,
1050
+ head: X.value.head,
1051
+ body: X.value.body,
1052
+ config: X.value.config,
1053
+ title: M.value.table.useDialog ? "" : Q.value.title,
1054
+ withCloseButton: !M.value.table.useDialog,
1055
+ isCursorPointer: I.value,
1056
+ onClose: Nn
1057
+ }, {
1058
+ th: w(({ th: e }) => [e === "__SUM__" ? (y(), f("div", lt, [Le(C(ft), {
1059
+ name: "sigma",
1060
+ stroke: X.value.config.th.color,
1061
+ size: 16
1062
+ }, null, 8, ["stroke"])])) : (y(), f("div", ut, S(e), 1))]),
1063
+ td: w(({ td: e }) => [Ie(S(e.name || e), 1)]),
1064
+ _: 1
1065
+ }, 8, [
1066
+ "colNames",
1067
+ "head",
1068
+ "body",
1069
+ "config",
1070
+ "title",
1071
+ "withCloseButton",
1072
+ "isCursorPointer"
1073
+ ]))]),
1074
+ _: 2
1075
+ }, [M.value.table.useDialog ? {
1076
+ name: "title",
1077
+ fn: w(() => [Ie(S(Q.value.title), 1)]),
1078
+ key: "0"
1079
+ } : void 0, M.value.table.useDialog ? {
1080
+ name: "actions",
1081
+ fn: w(() => [p("button", {
1082
+ tabindex: "0",
1083
+ class: "vue-ui-user-options-button",
1084
+ onClick: n[1] ||= (e) => On(M.value.userOptions.callbacks.csv),
1085
+ style: v({ cursor: I.value ? "pointer" : "default" })
1086
+ }, [Le(C(ft), {
1087
+ name: "fileCsv",
1088
+ stroke: Q.value.props.color
1089
+ }, null, 8, ["stroke"])], 4)]),
1090
+ key: "1"
1091
+ } : void 0]), 1040)) : d("", !0),
1092
+ x(e.$slots, "skeleton", {}, () => [C(Ht) ? (y(), u(ge, { key: 0 })) : d("", !0)], !0)
1093
+ ], 46, Ke));
1094
+ }
1095
+ }, [["__scopeId", "data-v-d02837da"]]);
1096
+ //#endregion
1097
+ export { Ge as n, dt as t };