vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -0,0 +1,1085 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Ct as n, D as r, Lt as i, Pt as a, R as o, S as s, Vt as c, X as l, Yt as ee, Zt as te, ht as ne, i as re, lt as ie, nt as ae, q as oe, t as se, w as ce } from "./lib-Dql7cqyA.js";
3
+ import { n as le, t as ue } from "./useHints-Dq_w2E8B.js";
4
+ import { t as de } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as fe } from "./usePrinter-DISD7q5m.js";
6
+ import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as he } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as _e } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as ve } from "./useTransitions-g_zBREk2.js";
11
+ import { t as ye } from "./img-DhGApYG0.js";
12
+ import { n as be } from "./Title-CPHi-evi.js";
13
+ import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as we } from "./BaseLegendToggle-CXQrLjd-.js";
16
+ import { t as Te } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as De } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Oe } from "./labelUtils-BXX2NzRe.js";
20
+ import { t as ke } from "./Legend-X4kF4PvW.js";
21
+ import { t as Ae } from "./vue_ui_galaxy-Ig0cc1_h.js";
22
+ import { Fragment as je, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Re, openBlock as b, ref as x, renderList as ze, renderSlot as S, resolveDynamicComponent as Be, toDisplayString as C, toRefs as Ve, unref as w, watch as He, withCtx as T } from "vue";
23
+ //#region src/components/vue-ui-galaxy.vue
24
+ var Ue = /* @__PURE__ */ e({ default: () => lt }), We = ["id"], Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
25
+ "xmlns",
26
+ "aria-describedby",
27
+ "viewBox"
28
+ ], Ye = ["width", "height"], Xe = ["id"], Ze = ["stdDeviation"], Qe = [
29
+ "d",
30
+ "stroke",
31
+ "stroke-width"
32
+ ], $e = [
33
+ "d",
34
+ "stroke",
35
+ "stroke-width"
36
+ ], et = ["filter"], tt = [
37
+ "d",
38
+ "stroke",
39
+ "stroke-width"
40
+ ], nt = [
41
+ "data-a11y-serie-id",
42
+ "d",
43
+ "stroke-width",
44
+ "aria-label",
45
+ "onMouseenter",
46
+ "onMouseleave",
47
+ "onClick"
48
+ ], rt = {
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
+ }, it = {
59
+ key: 5,
60
+ class: "vue-data-ui-watermark"
61
+ }, at = ["id"], ot = ["onClick"], st = { key: 0 }, ct = { key: 1 }, lt = /*#__PURE__*/ xe({
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: xe, emit: Ue }) {
83
+ let lt = h(() => import("./Tooltip-hhrkQ3Lk.js")), ut = h(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), dt = h(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), ft = h(() => import("./DataTable-oiM9uWrQ.js")), pt = h(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), mt = h(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), ht = h(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), gt = h(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_galaxy: _t } = de(), { isThemeValid: vt, warnInvalidTheme: yt } = ge(), E = e, D = x(oe()), O = x(null), bt = x(!1), xt = x(""), k = x(null), St = x(0), Ct = x(0), wt = x(0), Tt = x(0), Et = x(null), Dt = x(null), Ot = x(null), kt = x(null), A = x(null), At = x(null), jt = x(!1), j = x(null), Mt = x(null), M = x(null), Nt = x(null), Pt = x({
84
+ x: 0,
85
+ y: 0
86
+ }), Ft = x("pointer"), It = x(!1), Lt = u(() => !!E.dataset && E.dataset.length), N = x(qt()), P = u(() => N.value.style.chart.layout.arcs), F = u(() => N.value.style.chart.layout), I = u(() => N.value.style.chart);
87
+ le({
88
+ config: () => N.value,
89
+ dataset: () => E.dataset,
90
+ component: "VueUiGalaxy",
91
+ rules: [
92
+ ue.singleSeries,
93
+ ue.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: Rt } = ve({
109
+ config: () => N.value.transitions,
110
+ dataset: () => E.dataset
111
+ }), L = u(() => N.value.userOptions.useCursorPointer), zt = u(() => te({
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: N.value.skeletonConfig ?? {}
122
+ })), { loading: Bt, FINAL_DATASET: Vt } = pe({
123
+ ...Ve(E),
124
+ FINAL_CONFIG: N,
125
+ prepareConfig: qt,
126
+ callback: () => {
127
+ Promise.resolve().then(async () => {
128
+ await Le(), z.value.showTable = N.value.table.show;
129
+ });
130
+ },
131
+ skeletonDataset: E.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: te({
149
+ defaultConfig: N.value,
150
+ userConfig: zt.value
151
+ })
152
+ });
153
+ Re(() => {
154
+ jt.value = !0, Ut();
155
+ });
156
+ let Ht = u(() => N.value.debug);
157
+ function Ut() {
158
+ if (a(E.dataset) ? ae({
159
+ componentName: "VueUiGalaxy",
160
+ type: "dataset",
161
+ debug: Ht.value
162
+ }) : Ht.value && E.dataset.forEach((e, t) => {
163
+ ne({
164
+ datasetObject: e,
165
+ requiredAttributes: ["name", "values"]
166
+ }).forEach((e) => {
167
+ ae({
168
+ componentName: "VueUiGalaxy",
169
+ type: "datasetSerieAttribute",
170
+ property: e,
171
+ index: t
172
+ });
173
+ });
174
+ }), N.value.responsive) {
175
+ let e = Se(() => {
176
+ let { width: e, height: t } = Ce({
177
+ chart: O.value,
178
+ title: I.value.title.text ? Et.value : null,
179
+ legend: I.value.legend.show ? Dt.value : null,
180
+ noTitle: kt.value,
181
+ source: Ot.value
182
+ });
183
+ requestAnimationFrame(() => {
184
+ en.value = Math.max(.1, e), tn.value = Math.max(.1, t - 12);
185
+ });
186
+ });
187
+ A.value && (At.value && A.value.unobserve(At.value), A.value.disconnect()), A.value = new ResizeObserver(e), At.value = O.value.parentNode, A.value.observe(At.value);
188
+ }
189
+ }
190
+ let { userOptionsVisible: Wt, setUserOptionsVisibility: Gt, keepUserOptionState: Kt } = Ee({ config: N.value }), { svgRef: R } = De({ config: I.value.title });
191
+ function qt() {
192
+ let e = he({
193
+ userConfig: E.config,
194
+ defaultConfig: _t
195
+ }), t = e.theme;
196
+ if (!t) return e;
197
+ if (!vt.value(e)) return yt(e), e;
198
+ let n = he({
199
+ userConfig: Ae[t] || E.config,
200
+ defaultConfig: e
201
+ }), r = he({
202
+ userConfig: E.config,
203
+ defaultConfig: n
204
+ });
205
+ return {
206
+ ...r,
207
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
208
+ };
209
+ }
210
+ He(() => E.config, (e) => {
211
+ N.value = qt(), Wt.value = !N.value.userOptions.showOnChartHover, Ut(), Ct.value += 1, wt.value += 1, Tt.value += 1, z.value.dataLabels.show = F.value.labels.dataLabels.show, z.value.showTable = N.value.table.show, z.value.showTooltip = I.value.tooltip.show;
212
+ }, { deep: !0 });
213
+ let { isPrinting: Jt, isImaging: Yt, generatePdf: Xt, generateImage: Zt } = fe({
214
+ elementId: `galaxy_${D.value}`,
215
+ fileName: I.value.title.text || "vue-ui-galaxy",
216
+ options: N.value.userOptions.print
217
+ }), Qt = u(() => N.value.userOptions.show && !I.value.title.text), $t = u(() => ce(N.value.customPalette)), z = x({
218
+ dataLabels: { show: F.value.labels.dataLabels.show },
219
+ showTable: N.value.table.show,
220
+ showTooltip: I.value.tooltip.show
221
+ }), en = x(250), tn = x(180), nn = x(0), rn = x(0), B = u(() => ({
222
+ width: en.value,
223
+ height: tn.value,
224
+ viewBox: `${nn.value} ${rn.value} ${en.value} ${tn.value}`
225
+ })), an = Ue, V = x([]);
226
+ function on() {
227
+ an("selectLegend", G.value.map((e) => ({
228
+ name: e.name,
229
+ color: e.color,
230
+ value: e.value
231
+ })));
232
+ }
233
+ function sn() {
234
+ V.value.length ? V.value = [] : J.value.forEach((e) => {
235
+ V.value.push(e.id);
236
+ }), on();
237
+ }
238
+ function H(e) {
239
+ V.value.includes(e.id) ? V.value = V.value.filter((t) => t !== e.id) : V.value.push(e.id), on();
240
+ }
241
+ function cn(e) {
242
+ return U.value.length ? U.value.find((t) => t.name === e) || (Ht.value && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (Ht.value && console.warn("VueUiGalaxy - There are no series to show."), null);
243
+ }
244
+ function ln(e) {
245
+ let t = cn(e);
246
+ t !== null && V.value.includes(t.id) && H({ id: t.id });
247
+ }
248
+ function un(e) {
249
+ let t = cn(e);
250
+ t !== null && (V.value.includes(t.id) || H({ id: t.id }));
251
+ }
252
+ let U = u(() => Vt.value.map((e, t) => ({
253
+ name: e.name,
254
+ color: s(e.color) || $t.value[t] || i[t] || i[t % i.length],
255
+ value: e.values ? c(e.values).reduce((e, t) => e + t, 0) : 0,
256
+ absoluteValues: c(e.values),
257
+ id: oe()
258
+ })).sort((e, t) => t.value - e.value).map((e, t) => ({
259
+ ...e,
260
+ absoluteIndex: t
261
+ })));
262
+ function dn() {
263
+ return U.value.map((e) => ({
264
+ name: e.name,
265
+ color: e.color,
266
+ value: e.value
267
+ }));
268
+ }
269
+ let W = u(() => U.value.filter((e) => !V.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), fn = x(190), pn = u(() => U.value.filter((e) => !V.value.includes(e.id))), mn = u(() => (P.value.strokeWidth + P.value.borderWidth) / 2 + (F.value.padding ?? 12)), hn = u(() => o({
270
+ maxPoints: fn.value,
271
+ a: P.value.a ?? 6,
272
+ b: P.value.b ?? 6,
273
+ angleStep: P.value.angleStep ?? .07,
274
+ startX: B.value.width / 2 + P.value.offsetX,
275
+ startY: B.value.height / 2 + P.value.offsetY,
276
+ boxWidth: B.value.width,
277
+ boxHeight: B.value.height,
278
+ padding: mn.value
279
+ })), G = u(() => {
280
+ let e = [];
281
+ for (let t = 0; t < pn.value.length; t += 1) {
282
+ let n = pn.value[t], r = n.value / W.value * fn.value + (t > 0 && e.length ? e[t - 1].points : 0);
283
+ e.push({
284
+ points: r,
285
+ ...n,
286
+ seriesIndex: t,
287
+ proportion: n.value / W.value,
288
+ path: hn.value(r)
289
+ });
290
+ }
291
+ return e.filter((e) => !V.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
292
+ });
293
+ function gn(e) {
294
+ let t = Math.min(en.value, tn.value), n = k.value === e.id && P.value.hoverEffect.show ? P.value.hoverEffect.multiplicator : 1, r = (P.value.strokeWidth + P.value.borderWidth) * n, i = P.value.strokeWidth * n, a = P.value.strokeWidth / 2 * n;
295
+ return {
296
+ border: r / 180 * t,
297
+ path: i / 180 * t,
298
+ blur: a / 180 * t
299
+ };
300
+ }
301
+ let K = x(!1);
302
+ function _n(e) {
303
+ K.value = e, St.value += 1;
304
+ }
305
+ let q = x(null);
306
+ function vn() {
307
+ bt.value = !1, k.value = null, M.value = null, Nt.value = null;
308
+ }
309
+ function yn(e) {
310
+ if (!R.value || !e) return;
311
+ let t = R.value.querySelector(`[data-a11y-serie-id="${e}"]`);
312
+ if (!t) return;
313
+ let n = t.getBoundingClientRect();
314
+ Pt.value = {
315
+ x: n.left + n.width / 2,
316
+ y: n.top + n.height / 2
317
+ };
318
+ }
319
+ function bn(e) {
320
+ N.value.events.datapointLeave && N.value.events.datapointLeave({
321
+ datapoint: e,
322
+ seriesIndex: e.absoluteIndex
323
+ }), (Nt.value !== e.id || Ft.value !== "keyboard") && (bt.value = !1, k.value = null);
324
+ }
325
+ function xn(e) {
326
+ an("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
327
+ datapoint: e,
328
+ seriesIndex: e.absoluteIndex
329
+ });
330
+ }
331
+ function Sn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
332
+ let i = F.value.labels.dataLabels;
333
+ return Oe({
334
+ config: i,
335
+ val: e,
336
+ percentage: t,
337
+ showVal: n,
338
+ showPercentage: r
339
+ });
340
+ }
341
+ function Cn({ datapoint: e, _relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer", flatIndex: o = null }) {
342
+ if (N.value.events.datapointEnter && N.value.events.datapointEnter({
343
+ datapoint: e,
344
+ seriesIndex: e.absoluteIndex
345
+ }), !z.value.showTooltip) return;
346
+ Ft.value = a, M.value = o, Nt.value = e.id, q.value = {
347
+ datapoint: e,
348
+ seriesIndex: r,
349
+ series: U.value,
350
+ config: N.value
351
+ }, bt.value = i, k.value = e.id;
352
+ let s = "", c = I.value.tooltip.customFormat;
353
+ n(c) && ie(() => c({
354
+ seriesIndex: r,
355
+ datapoint: e,
356
+ series: U.value,
357
+ config: N.value
358
+ })) ? xt.value = c({
359
+ seriesIndex: r,
360
+ datapoint: e,
361
+ series: U.value,
362
+ config: N.value
363
+ }) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.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>${Sn({
364
+ showVal: I.value.tooltip.showValue,
365
+ showPercentage: I.value.tooltip.showPercentage,
366
+ val: re(F.value.labels.dataLabels.formatter, e.value, l({
367
+ p: F.value.labels.dataLabels.prefix,
368
+ v: e.value,
369
+ s: F.value.labels.dataLabels.suffix,
370
+ r: I.value.tooltip.roundingValue
371
+ }), {
372
+ datapoint: e,
373
+ seriesIndex: r
374
+ }),
375
+ percentage: l({
376
+ v: e.proportion * 100,
377
+ s: "%",
378
+ r: I.value.tooltip.roundingPercentage
379
+ })
380
+ })}</b></div>`, xt.value = `<div>${s}</div>`), a === "keyboard" && Le(() => {
381
+ yn(e.id);
382
+ });
383
+ }
384
+ let J = u(() => U.value.map((e, t) => {
385
+ let n = re(F.value.labels.dataLabels.formatter, e.value, l({
386
+ p: F.value.labels.dataLabels.prefix,
387
+ v: e.value,
388
+ s: F.value.labels.dataLabels.suffix,
389
+ r: I.value.legend.roundingValue
390
+ }), {
391
+ datapoint: e,
392
+ index: t
393
+ }), r = isNaN(e.value / W.value) || V.value.includes(e.id) ? "-" : l({
394
+ v: e.value / W.value * 100,
395
+ s: "%",
396
+ r: I.value.legend.roundingPercentage
397
+ }), i = Sn({
398
+ showVal: I.value.legend.showValue,
399
+ showPercentage: I.value.legend.showPercentage,
400
+ val: n,
401
+ percentage: r
402
+ });
403
+ return {
404
+ ...e,
405
+ proportion: (e.value || 0) / Vt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
406
+ opacity: V.value.includes(e.id) ? .5 : 1,
407
+ shape: e.shape || "circle",
408
+ segregate: () => H(e),
409
+ isSegregated: V.value.includes(e.id),
410
+ display: `${e.name}${I.value.legend.showPercentage || I.value.legend.showValue ? ": " : ""}${i}`
411
+ };
412
+ })), wn = u(() => ({
413
+ cy: "galaxy-div-legend",
414
+ backgroundColor: I.value.legend.backgroundColor,
415
+ color: I.value.legend.color,
416
+ fontSize: I.value.legend.fontSize,
417
+ paddingBottom: 12,
418
+ fontWeight: I.value.legend.bold ? "bold" : ""
419
+ })), Y = u(() => ({
420
+ head: G.value.map((e) => ({
421
+ name: e.name,
422
+ color: e.color
423
+ })),
424
+ body: G.value.map((e) => e.value)
425
+ }));
426
+ function Tn(e = null) {
427
+ Le(() => {
428
+ let n = Y.value.head.map((e, t) => [
429
+ [e.name],
430
+ [Y.value.body[t]],
431
+ [isNaN(Y.value.body[t] / W.value) ? "-" : Y.value.body[t] / W.value * 100]
432
+ ]), i = [
433
+ [I.value.title.text],
434
+ [I.value.title.subtitle.text],
435
+ [
436
+ [""],
437
+ ["val"],
438
+ ["%"]
439
+ ]
440
+ ].concat(n), a = r(i);
441
+ e ? e(a) : t({
442
+ csvContent: a,
443
+ title: I.value.title.text || "vue-ui-galaxy"
444
+ });
445
+ });
446
+ }
447
+ let X = u(() => {
448
+ let e = [
449
+ "__SUM__",
450
+ l({
451
+ p: F.value.labels.dataLabels.prefix,
452
+ v: W.value,
453
+ s: F.value.labels.dataLabels.suffix,
454
+ r: N.value.table.td.roundingValue
455
+ }),
456
+ "100%"
457
+ ], t = Y.value.head.map((e, t) => {
458
+ let n = l({
459
+ p: F.value.labels.dataLabels.prefix,
460
+ v: Y.value.body[t],
461
+ s: F.value.labels.dataLabels.suffix,
462
+ r: N.value.table.td.roundingValue
463
+ });
464
+ return [
465
+ {
466
+ color: e.color,
467
+ name: e.name
468
+ },
469
+ n,
470
+ isNaN(Y.value.body[t] / W.value) ? "-" : l({
471
+ v: Y.value.body[t] / W.value * 100,
472
+ s: "%",
473
+ r: N.value.table.td.roundingPercentage
474
+ })
475
+ ];
476
+ }), n = {
477
+ th: {
478
+ backgroundColor: N.value.table.th.backgroundColor,
479
+ color: N.value.table.th.color,
480
+ outline: N.value.table.th.outline
481
+ },
482
+ td: {
483
+ backgroundColor: N.value.table.td.backgroundColor,
484
+ color: N.value.table.td.color,
485
+ outline: N.value.table.td.outline
486
+ },
487
+ breakpoint: N.value.table.responsiveBreakpoint
488
+ };
489
+ return {
490
+ colNames: [
491
+ N.value.table.columnNames.series,
492
+ N.value.table.columnNames.value,
493
+ N.value.table.columnNames.percentage
494
+ ],
495
+ head: e,
496
+ body: t,
497
+ config: n
498
+ };
499
+ });
500
+ function En() {
501
+ z.value.showTable = !z.value.showTable;
502
+ }
503
+ function Dn() {
504
+ z.value.showTooltip = !z.value.showTooltip;
505
+ }
506
+ let Z = x(!1);
507
+ function On() {
508
+ Z.value = !Z.value;
509
+ }
510
+ async function kn({ scale: e = 2 } = {}) {
511
+ if (!O.value) return;
512
+ let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
513
+ domElement: O.value,
514
+ base64: !0,
515
+ img: !0,
516
+ scale: e
517
+ });
518
+ return {
519
+ imageUri: i,
520
+ base64: a,
521
+ title: I.value.title.text,
522
+ width: t,
523
+ height: n,
524
+ aspectRatio: r
525
+ };
526
+ }
527
+ let Q = u(() => {
528
+ let e = N.value.table.useDialog && !N.value.table.show, t = z.value.showTable;
529
+ return {
530
+ component: e ? gt : dt,
531
+ title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
532
+ props: e ? {
533
+ backgroundColor: N.value.table.th.backgroundColor,
534
+ color: N.value.table.th.color,
535
+ headerColor: N.value.table.th.color,
536
+ headerBg: N.value.table.th.backgroundColor,
537
+ isFullscreen: K.value,
538
+ fullscreenParent: O.value,
539
+ forcedWidth: Math.min(500, window.innerWidth * .8),
540
+ isCursorPointer: L.value
541
+ } : {
542
+ hideDetails: !0,
543
+ config: {
544
+ open: t,
545
+ maxHeight: 1e4,
546
+ body: {
547
+ backgroundColor: I.value.backgroundColor,
548
+ color: I.value.color
549
+ },
550
+ head: {
551
+ backgroundColor: I.value.backgroundColor,
552
+ color: I.value.color
553
+ }
554
+ }
555
+ }
556
+ };
557
+ });
558
+ He(() => z.value.showTable, (e) => {
559
+ N.value.table.show || (e && N.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
560
+ });
561
+ function An() {
562
+ z.value.showTable = !1, Mt.value && Mt.value.setTableIconState(!1);
563
+ }
564
+ let jn = u(() => J.value.map((e) => ({
565
+ ...e,
566
+ name: e.display
567
+ }))), Mn = u(() => I.value.backgroundColor), Nn = u(() => I.value.legend), Pn = u(() => I.value.title), { isCallbackImaging: Fn, isCallbackSvg: In, generateSvg: Ln, onGenerateImage: Rn } = _e({
568
+ svg: R,
569
+ title: Pn,
570
+ legend: Nn,
571
+ legendItems: jn,
572
+ backgroundColor: Mn,
573
+ getSvgCallback: () => N.value.userOptions.callbacks.svg,
574
+ generateImage: Zt
575
+ });
576
+ async function zn() {
577
+ if (an("copyAlt", {
578
+ config: N.value,
579
+ dataset: U.value
580
+ }), !N.value.userOptions.callbacks.altCopy) {
581
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
582
+ return;
583
+ }
584
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
585
+ config: N.value,
586
+ dataset: U.value
587
+ }));
588
+ }
589
+ function Bn() {
590
+ M.value = null, Nt.value = null, It.value = !0;
591
+ }
592
+ function Vn() {
593
+ vn(), It.value = !1;
594
+ }
595
+ function Hn(e) {
596
+ if (!R.value || Z.value || document.activeElement !== R.value || !$.value.length) return;
597
+ 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";
598
+ if (!t && !n && !r && !i) return;
599
+ if (e.preventDefault(), e.stopPropagation(), i) {
600
+ vn();
601
+ return;
602
+ }
603
+ if (r) {
604
+ if (M.value === null) return;
605
+ let e = $.value[M.value];
606
+ if (!e) return;
607
+ xn(e.datapoint);
608
+ return;
609
+ }
610
+ let a = M.value;
611
+ 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));
612
+ let o = $.value[a];
613
+ o && Cn({
614
+ datapoint: o.datapoint,
615
+ seriesIndex: o.datapoint.seriesIndex,
616
+ show: !0,
617
+ triggerMode: "keyboard",
618
+ flatIndex: a
619
+ });
620
+ }
621
+ let Un = u(() => ({
622
+ headers: X.value?.colNames ?? [],
623
+ rows: X.value?.body ?? []
624
+ })), $ = u(() => G.value.map((e, t) => ({
625
+ datapoint: e,
626
+ index: t
627
+ })));
628
+ return xe({
629
+ getData: dn,
630
+ getImage: kn,
631
+ generatePdf: Xt,
632
+ generateCsv: Tn,
633
+ generateImage: Zt,
634
+ generateSvg: Ln,
635
+ hideSeries: un,
636
+ showSeries: ln,
637
+ toggleTable: En,
638
+ toggleTooltip: Dn,
639
+ toggleAnnotator: On,
640
+ toggleFullscreen: _n,
641
+ copyAlt: zn
642
+ }), (e, t) => (b(), p("div", {
643
+ ref_key: "galaxyChart",
644
+ ref: O,
645
+ class: _(`vue-data-ui-component vue-ui-galaxy ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"} ${w(Bt) ? "loading" : ""}`),
646
+ style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;${I.value.title.text ? "" : "padding-top:36px"};background:${I.value.backgroundColor}`),
647
+ id: `galaxy_${D.value}`,
648
+ onMouseenter: t[2] ||= () => w(Gt)(!0),
649
+ onMouseleave: t[3] ||= () => {
650
+ w(Gt)(!1), It.value || vn();
651
+ }
652
+ }, [
653
+ m("div", {
654
+ id: `chart-instructions-${D.value}`,
655
+ class: "sr-only"
656
+ }, [m("p", null, C(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
657
+ Un.value?.rows?.length ? (b(), d(Te, {
658
+ key: 0,
659
+ uid: D.value,
660
+ head: Un.value.headers,
661
+ body: Un.value.rows,
662
+ notice: N.value.a11y.translations.tableAvailable,
663
+ caption: N.value.a11y.translations.tableCaption
664
+ }, null, 8, [
665
+ "uid",
666
+ "head",
667
+ "body",
668
+ "notice",
669
+ "caption"
670
+ ])) : f("", !0),
671
+ N.value.userOptions.buttons.annotator ? (b(), d(w(pt), {
672
+ key: 1,
673
+ svgRef: w(R),
674
+ backgroundColor: I.value.backgroundColor,
675
+ color: I.value.color,
676
+ active: Z.value,
677
+ isCursorPointer: L.value,
678
+ palette: N.value.userOptions.annotatorPalette,
679
+ onClose: On
680
+ }, {
681
+ "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
682
+ "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
683
+ "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
684
+ "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
685
+ "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
686
+ "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
687
+ _: 3
688
+ }, 8, [
689
+ "svgRef",
690
+ "backgroundColor",
691
+ "color",
692
+ "active",
693
+ "isCursorPointer",
694
+ "palette"
695
+ ])) : f("", !0),
696
+ Qt.value ? (b(), p("div", {
697
+ key: 2,
698
+ ref_key: "noTitle",
699
+ ref: kt,
700
+ class: "vue-data-ui-no-title-space",
701
+ style: "height:36px; width: 100%;background:transparent"
702
+ }, null, 512)) : f("", !0),
703
+ I.value.title.text ? (b(), p("div", {
704
+ key: 3,
705
+ ref_key: "chartTitle",
706
+ ref: Et,
707
+ style: "width:100%;background:transparent;padding-bottom:24px"
708
+ }, [(b(), d(be, {
709
+ key: `title_${Ct.value}`,
710
+ config: {
711
+ title: {
712
+ cy: "galaxy-div-title",
713
+ ...I.value.title
714
+ },
715
+ subtitle: {
716
+ cy: "galaxy-div-subtitle",
717
+ ...I.value.title.subtitle
718
+ }
719
+ }
720
+ }, null, 8, ["config"]))], 512)) : f("", !0),
721
+ m("div", { id: `legend-top-${D.value}` }, null, 8, Ke),
722
+ N.value.userOptions.show && Lt.value && (w(Kt) || w(Wt)) ? (b(), d(w(mt), {
723
+ ref_key: "userOptionsRef",
724
+ ref: Mt,
725
+ key: `user_option_${St.value}`,
726
+ backgroundColor: I.value.backgroundColor,
727
+ color: I.value.color,
728
+ isPrinting: w(Jt),
729
+ isImaging: w(Yt),
730
+ uid: D.value,
731
+ hasTooltip: N.value.userOptions.buttons.tooltip && I.value.tooltip.show,
732
+ hasPdf: N.value.userOptions.buttons.pdf,
733
+ hasXls: N.value.userOptions.buttons.csv,
734
+ hasImg: N.value.userOptions.buttons.img,
735
+ hasSvg: N.value.userOptions.buttons.svg,
736
+ hasTable: N.value.userOptions.buttons.table,
737
+ hasFullscreen: N.value.userOptions.buttons.fullscreen,
738
+ hasAltCopy: N.value.userOptions.buttons.altCopy,
739
+ isTooltip: z.value.showTooltip,
740
+ isFullscreen: K.value,
741
+ titles: { ...N.value.userOptions.buttonTitles },
742
+ chartElement: O.value,
743
+ position: N.value.userOptions.position,
744
+ hasAnnotator: N.value.userOptions.buttons.annotator,
745
+ isAnnotation: Z.value,
746
+ callbacks: N.value.userOptions.callbacks,
747
+ printScale: N.value.userOptions.print.scale,
748
+ tableDialog: N.value.table.useDialog,
749
+ isCursorPointer: L.value,
750
+ onToggleFullscreen: _n,
751
+ onGeneratePdf: w(Xt),
752
+ onGenerateCsv: Tn,
753
+ onGenerateImage: w(Rn),
754
+ onGenerateSvg: w(Ln),
755
+ onToggleTable: En,
756
+ onToggleTooltip: Dn,
757
+ onToggleAnnotator: On,
758
+ onCopyAlt: zn,
759
+ style: y({ visibility: w(Kt) ? w(Wt) ? "visible" : "hidden" : "visible" })
760
+ }, Ne({ _: 2 }, [
761
+ e.$slots.menuIcon ? {
762
+ name: "menuIcon",
763
+ fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
764
+ isOpen: t,
765
+ color: n
766
+ })), void 0, !0)]),
767
+ key: "0"
768
+ } : void 0,
769
+ e.$slots.optionTooltip ? {
770
+ name: "optionTooltip",
771
+ fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
772
+ key: "1"
773
+ } : void 0,
774
+ e.$slots.optionPdf ? {
775
+ name: "optionPdf",
776
+ fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
777
+ key: "2"
778
+ } : void 0,
779
+ e.$slots.optionCsv ? {
780
+ name: "optionCsv",
781
+ fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
782
+ key: "3"
783
+ } : void 0,
784
+ e.$slots.optionImg ? {
785
+ name: "optionImg",
786
+ fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
787
+ key: "4"
788
+ } : void 0,
789
+ e.$slots.optionSvg ? {
790
+ name: "optionSvg",
791
+ fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
792
+ key: "5"
793
+ } : void 0,
794
+ e.$slots.optionTable ? {
795
+ name: "optionTable",
796
+ fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
797
+ key: "6"
798
+ } : void 0,
799
+ e.$slots.optionFullscreen ? {
800
+ name: "optionFullscreen",
801
+ fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
802
+ toggleFullscreen: t,
803
+ isFullscreen: n
804
+ })), void 0, !0)]),
805
+ key: "7"
806
+ } : void 0,
807
+ e.$slots.optionAnnotator ? {
808
+ name: "optionAnnotator",
809
+ fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
810
+ toggleAnnotator: t,
811
+ isAnnotator: n
812
+ })), void 0, !0)]),
813
+ key: "8"
814
+ } : void 0,
815
+ e.$slots.optionAltCopy ? {
816
+ name: "optionAltCopy",
817
+ fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
818
+ key: "9"
819
+ } : void 0,
820
+ e.$slots["custom-menu-before"] ? {
821
+ name: "custom-menu-before",
822
+ fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
823
+ key: "10"
824
+ } : void 0,
825
+ e.$slots["custom-menu-after"] ? {
826
+ name: "custom-menu-after",
827
+ fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
828
+ key: "11"
829
+ } : void 0
830
+ ]), 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("."))) : f("", !0),
831
+ m("div", qe, [(b(), p("svg", {
832
+ ref_key: "svgRef",
833
+ ref: R,
834
+ xmlns: w(se),
835
+ "aria-describedby": `chart-instructions-${D.value}`,
836
+ class: _({
837
+ "vue-data-ui-fullscreen--on": K.value,
838
+ "vue-data-ui-fulscreen--off": !K.value
839
+ }),
840
+ viewBox: B.value.viewBox,
841
+ style: y(`max-width:100%; overflow: visible; background:transparent;color:${I.value.color}`),
842
+ tabindex: "0",
843
+ onFocus: Bn,
844
+ onBlur: Vn,
845
+ onKeydown: Hn
846
+ }, [
847
+ Fe(w(ht)),
848
+ e.$slots["chart-background"] ? (b(), p("foreignObject", {
849
+ key: 0,
850
+ x: 0,
851
+ y: 0,
852
+ width: B.value.width,
853
+ height: B.value.height,
854
+ style: { pointerEvents: "none" }
855
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : f("", !0),
856
+ m("defs", null, [m("filter", {
857
+ id: `blur_${D.value}`,
858
+ x: "-50%",
859
+ y: "-50%",
860
+ width: "200%",
861
+ height: "200%"
862
+ }, [m("feGaussianBlur", {
863
+ in: "SourceGraphic",
864
+ stdDeviation: 100 / P.value.gradient.intensity
865
+ }, null, 8, Ze)], 8, Xe)]),
866
+ (b(!0), p(je, null, ze(G.value, (e) => (b(), p("g", { key: `dp_${e.id}` }, [
867
+ e.value ? (b(), p("path", {
868
+ key: 0,
869
+ d: e.path,
870
+ fill: "none",
871
+ stroke: I.value.backgroundColor,
872
+ "stroke-width": gn(e).border,
873
+ class: _({ "vue-data-ui-transition": w(Rt) }),
874
+ "stroke-linecap": "round"
875
+ }, null, 10, Qe)) : f("", !0),
876
+ e.value ? (b(), p("path", {
877
+ key: 1,
878
+ d: e.path,
879
+ fill: "none",
880
+ stroke: e.color,
881
+ "stroke-width": gn(e).path,
882
+ "stroke-linecap": "round",
883
+ class: _({
884
+ "vue-data-ui-transition": w(Rt),
885
+ "vue-ui-galaxy-blur": k.value && k.value !== e.id && N.value.useBlurOnHover
886
+ })
887
+ }, null, 10, $e)) : f("", !0),
888
+ e.value && P.value.gradient.show ? (b(), p("g", {
889
+ key: 2,
890
+ filter: `url(#blur_${D.value})`
891
+ }, [m("path", {
892
+ d: e.path,
893
+ fill: "none",
894
+ stroke: P.value.gradient.color,
895
+ "stroke-width": gn(e).blur,
896
+ "stroke-linecap": "round",
897
+ class: _({
898
+ "vue-ui-galaxy-gradient": !0,
899
+ "vue-data-ui-transition": w(Rt),
900
+ "vue-ui-galaxy-blur": k.value && k.value !== e.id && N.value.useBlurOnHover
901
+ })
902
+ }, null, 10, tt)], 8, et)) : f("", !0)
903
+ ]))), 128)),
904
+ (b(!0), p(je, null, ze(G.value, (e, t) => (b(), p("g", null, [e.value ? (b(), p("path", {
905
+ key: 0,
906
+ "data-a11y-serie-id": e.id,
907
+ d: e.path,
908
+ fill: "none",
909
+ stroke: "transparent",
910
+ "stroke-width": P.value.strokeWidth + P.value.borderWidth,
911
+ "stroke-linecap": "round",
912
+ "aria-label": `${e.name}: ${w(l)({
913
+ p: F.value.labels.dataLabels.prefix,
914
+ v: e.value,
915
+ s: F.value.labels.dataLabels.suffix,
916
+ r: I.value.tooltip.roundingValue
917
+ })}`,
918
+ onMouseenter: (n) => Cn({
919
+ datapoint: e,
920
+ relativeIndex: t,
921
+ seriesIndex: e.seriesIndex,
922
+ show: !0,
923
+ triggerMode: "pointer",
924
+ flatIndex: t
925
+ }),
926
+ onMouseleave: (t) => bn(e),
927
+ onClick: (t) => xn(e)
928
+ }, null, 40, nt)) : f("", !0)]))), 256)),
929
+ S(e.$slots, "svg", { svg: {
930
+ ...B.value,
931
+ isPrintingImg: w(Jt) || w(Yt) || w(Fn),
932
+ isPrintingSvg: w(In)
933
+ } }, void 0, !0)
934
+ ], 46, Je)), e.$slots.hint ? (b(), p("div", rt, [S(e.$slots, "hint", v(g({
935
+ hint: N.value.a11y.translations.keyboardNavigation,
936
+ isVisible: It.value
937
+ })), void 0, !0)])) : f("", !0)]),
938
+ e.$slots.watermark ? (b(), p("div", it, [S(e.$slots, "watermark", v(g({ isPrinting: w(Jt) || w(Yt) || w(Fn) || w(In) })), void 0, !0)])) : f("", !0),
939
+ m("div", { id: `legend-bottom-${D.value}` }, null, 8, at),
940
+ jt.value && (I.value.legend.show || e.$slots.legend) ? (b(), d(Me, {
941
+ key: 6,
942
+ to: I.value.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
943
+ }, [m("div", {
944
+ ref_key: "chartLegend",
945
+ ref: Dt
946
+ }, [S(e.$slots, "legend", { legend: J.value }, () => [I.value.legend.show ? (b(), d(ke, {
947
+ key: `legend_${Tt.value}`,
948
+ legendSet: J.value,
949
+ config: wn.value,
950
+ onClickMarker: t[0] ||= ({ legend: e }) => H(e)
951
+ }, {
952
+ item: T(({ legend: e, index: t }) => [w(Bt) ? f("", !0) : (b(), p("div", {
953
+ key: 0,
954
+ onClick: (t) => H(e),
955
+ style: y(`opacity:${V.value.includes(e.id) ? .5 : 1}`)
956
+ }, C(e.display), 13, ot))]),
957
+ legendToggle: T(() => [J.value.length > 2 && I.value.legend.selectAllToggle.show && !w(Bt) ? (b(), d(we, {
958
+ key: 0,
959
+ backgroundColor: I.value.legend.selectAllToggle.backgroundColor,
960
+ color: I.value.legend.selectAllToggle.color,
961
+ fontSize: I.value.legend.fontSize,
962
+ checked: V.value.length > 0,
963
+ onToggle: sn
964
+ }, null, 8, [
965
+ "backgroundColor",
966
+ "color",
967
+ "fontSize",
968
+ "checked"
969
+ ])) : f("", !0)]),
970
+ _: 1
971
+ }, 8, ["legendSet", "config"])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
972
+ e.$slots.source ? (b(), p("div", {
973
+ key: 7,
974
+ ref_key: "source",
975
+ ref: Ot,
976
+ dir: "auto"
977
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
978
+ Fe(w(lt), {
979
+ teleportTo: I.value.tooltip.teleportTo,
980
+ show: z.value.showTooltip && bt.value,
981
+ backgroundColor: I.value.tooltip.backgroundColor,
982
+ color: I.value.tooltip.color,
983
+ borderRadius: I.value.tooltip.borderRadius,
984
+ borderColor: I.value.tooltip.borderColor,
985
+ borderWidth: I.value.tooltip.borderWidth,
986
+ fontSize: I.value.tooltip.fontSize,
987
+ backgroundOpacity: I.value.tooltip.backgroundOpacity,
988
+ position: I.value.tooltip.position,
989
+ offsetX: I.value.tooltip.offsetX,
990
+ offsetY: I.value.tooltip.offsetY,
991
+ parent: O.value,
992
+ content: xt.value,
993
+ isFullscreen: K.value,
994
+ isCustom: w(n)(I.value.tooltip.customFormat),
995
+ smooth: I.value.tooltip.smooth,
996
+ backdropFilter: I.value.tooltip.backdropFilter,
997
+ smoothForce: I.value.tooltip.smoothForce,
998
+ smoothSnapThreshold: I.value.tooltip.smoothSnapThreshold,
999
+ isA11yMode: Ft.value === "keyboard",
1000
+ a11yPosition: Pt.value
1001
+ }, {
1002
+ "tooltip-before": T(() => [S(e.$slots, "tooltip-before", v(g({ ...q.value })), void 0, !0)]),
1003
+ tooltip: T(() => [S(e.$slots, "tooltip", v(g({ ...q.value })), void 0, !0)]),
1004
+ "tooltip-after": T(() => [S(e.$slots, "tooltip-after", v(g({ ...q.value })), void 0, !0)]),
1005
+ _: 3
1006
+ }, 8, [
1007
+ "teleportTo",
1008
+ "show",
1009
+ "backgroundColor",
1010
+ "color",
1011
+ "borderRadius",
1012
+ "borderColor",
1013
+ "borderWidth",
1014
+ "fontSize",
1015
+ "backgroundOpacity",
1016
+ "position",
1017
+ "offsetX",
1018
+ "offsetY",
1019
+ "parent",
1020
+ "content",
1021
+ "isFullscreen",
1022
+ "isCustom",
1023
+ "smooth",
1024
+ "backdropFilter",
1025
+ "smoothForce",
1026
+ "smoothSnapThreshold",
1027
+ "isA11yMode",
1028
+ "a11yPosition"
1029
+ ]),
1030
+ Lt.value && N.value.userOptions.buttons.table ? (b(), d(Be(Q.value.component), Ie({ key: 8 }, Q.value.props, {
1031
+ ref_key: "tableUnit",
1032
+ ref: j,
1033
+ onClose: An
1034
+ }), Ne({
1035
+ content: T(() => [(b(), d(w(ft), {
1036
+ key: `table_${wt.value}`,
1037
+ colNames: X.value.colNames,
1038
+ head: X.value.head,
1039
+ body: X.value.body,
1040
+ config: X.value.config,
1041
+ title: N.value.table.useDialog ? "" : Q.value.title,
1042
+ withCloseButton: !N.value.table.useDialog,
1043
+ isCursorPointer: L.value,
1044
+ onClose: An
1045
+ }, {
1046
+ th: T(({ th: e }) => [e === "__SUM__" ? (b(), p("div", st, [Fe(w(ut), {
1047
+ name: "sigma",
1048
+ stroke: X.value.config.th.color,
1049
+ size: 16
1050
+ }, null, 8, ["stroke"])])) : (b(), p("div", ct, C(e), 1))]),
1051
+ td: T(({ td: e }) => [Pe(C(e.name || e), 1)]),
1052
+ _: 1
1053
+ }, 8, [
1054
+ "colNames",
1055
+ "head",
1056
+ "body",
1057
+ "config",
1058
+ "title",
1059
+ "withCloseButton",
1060
+ "isCursorPointer"
1061
+ ]))]),
1062
+ _: 2
1063
+ }, [N.value.table.useDialog ? {
1064
+ name: "title",
1065
+ fn: T(() => [Pe(C(Q.value.title), 1)]),
1066
+ key: "0"
1067
+ } : void 0, N.value.table.useDialog ? {
1068
+ name: "actions",
1069
+ fn: T(() => [m("button", {
1070
+ tabindex: "0",
1071
+ class: "vue-ui-user-options-button",
1072
+ onClick: t[1] ||= (e) => Tn(N.value.userOptions.callbacks.csv),
1073
+ style: y({ cursor: L.value ? "pointer" : "default" })
1074
+ }, [Fe(w(ut), {
1075
+ name: "fileCsv",
1076
+ stroke: Q.value.props.color
1077
+ }, null, 8, ["stroke"])], 4)]),
1078
+ key: "1"
1079
+ } : void 0]), 1040)) : f("", !0),
1080
+ S(e.$slots, "skeleton", {}, () => [w(Bt) ? (b(), d(me, { key: 0 })) : f("", !0)], !0)
1081
+ ], 46, We));
1082
+ }
1083
+ }, [["__scopeId", "data-v-5087d964"]]);
1084
+ //#endregion
1085
+ export { Ue as n, lt as t };