vue-data-ui 3.6.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  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 +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,808 +0,0 @@
1
- import { defineAsyncComponent as O, ref as o, computed as v, toRefs as Tt, onMounted as xt, watch as Fe, createElementBlock as d, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as U, createBlock as P, createCommentVNode as h, createElementVNode as $, createVNode as ae, withCtx as i, renderSlot as c, normalizeProps as y, guardReactiveProps as b, createSlots as Ae, Fragment as Ne, renderList as Be, Teleport as St, toDisplayString as oe, resolveDynamicComponent as Ot, mergeProps as Pt, createTextVNode as Ve, nextTick as Ee } from "vue";
2
- import { c as Me, t as It, o as _t, f as Ge, g as Dt, b as Lt, p as z, e as Ft, a1 as Re, h as At, a5 as Nt, a as We, d as I, X as Bt, G as Ue, P as Vt, Q as Et, H as Mt } from "./lib-C_mNZmhD.js";
3
- import { t as Gt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Wt, a as ze } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as Ut, B as zt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Ht } from "./usePrinter-DTzqpYKF.js";
7
- import { u as Xt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
9
- import jt from "./img-BecE5qXd.js";
10
- import { t as qt } from "./themes-DH-N_ePR.js";
11
- import Qt from "./Title-Bb1VWCtR.js";
12
- import Jt from "./Legend-D9ZTJKjh.js";
13
- import { u as Kt } from "./useSvgExport-DrjCWun4.js";
14
- import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "height"], ol = ["id"], sl = ["stdDeviation"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["filter"], il = ["d", "stroke", "stroke-width"], cl = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], vl = {
16
- key: 4,
17
- class: "vue-data-ui-watermark"
18
- }, dl = ["id"], hl = ["onClick"], gl = ["innerHTML"], pl = {
19
- __name: "vue-ui-galaxy",
20
- props: {
21
- config: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- },
27
- dataset: {
28
- type: Array,
29
- default() {
30
- return [];
31
- }
32
- }
33
- },
34
- emits: ["selectLegend", "selectDatapoint"],
35
- setup(He, { expose: Xe, emit: Ye }) {
36
- const je = O(() => import("./Tooltip-oWCO1HKy.js")), qe = O(() => import("./BaseIcon-DLFL0M4-.js")), Qe = O(() => import("./vue-ui-accordion-SSLXLlNz.js")), Je = O(() => import("./DataTable-UCyd_BQI.js")), Ke = O(() => import("./PenAndPaper-BJSMejV9.js")), Ze = O(() => import("./UserOptions-BqmUW9Kp.js")), et = O(() => import("./PackageVersion-D_4Hr4S4.js")), tt = O(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_galaxy: lt } = Wt(), T = He, m = o(Me()), k = o(null), H = o(!1), X = o(""), _ = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ce = o(null), ve = o(null), de = o(null), L = o(null), V = o(null), he = o(!1), F = o(null), Y = o(null), ge = v(() => !!T.dataset && T.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: pe } = Ut({
37
- ...Tt(T),
38
- FINAL_CONFIG: e,
39
- prepareConfig: J,
40
- callback: () => {
41
- Promise.resolve().then(async () => {
42
- await Ee(), p.value.showTable = e.value.table.show;
43
- });
44
- },
45
- skeletonDataset: [
46
- { name: "_", values: [21], color: "#DBDBDB" },
47
- { name: "_", values: [13], color: "#C4C4C4" },
48
- { name: "_", values: [8], color: "#ADADAD" }
49
- ],
50
- skeletonConfig: It({
51
- defaultConfig: e.value,
52
- userConfig: {
53
- userOptions: { show: !1 },
54
- table: { show: !1 },
55
- useCssAnimation: !1,
56
- style: {
57
- chart: {
58
- backgroundColor: "#99999930",
59
- legend: {
60
- backgroundColor: "transparent"
61
- }
62
- }
63
- }
64
- }
65
- })
66
- });
67
- xt(() => {
68
- he.value = !0, ye();
69
- });
70
- const fe = v(() => !!e.value.debug);
71
- function ye() {
72
- if (_t(T.dataset) ? Ge({
73
- componentName: "VueUiGalaxy",
74
- type: "dataset",
75
- debug: fe.value
76
- }) : T.dataset.forEach((t, a) => {
77
- Dt({
78
- datasetObject: t,
79
- requiredAttributes: ["name", "values"]
80
- }).forEach((l) => {
81
- Ge({
82
- componentName: "VueUiGalaxy",
83
- type: "datasetSerieAttribute",
84
- property: l,
85
- index: a,
86
- debug: fe.value
87
- });
88
- });
89
- }), e.value.responsive) {
90
- const t = Gt(() => {
91
- const { width: a, height: l } = Rt({
92
- chart: k.value,
93
- title: e.value.style.chart.title.text ? ie.value : null,
94
- legend: e.value.style.chart.legend.show ? ce.value : null,
95
- noTitle: de.value,
96
- source: ve.value
97
- });
98
- requestAnimationFrame(() => {
99
- E.value = Math.max(0.1, a), M.value = Math.max(0.1, l - 12);
100
- });
101
- });
102
- L.value && (V.value && L.value.unobserve(V.value), L.value.disconnect()), L.value = new ResizeObserver(t), V.value = k.value.parentNode, L.value.observe(V.value);
103
- }
104
- }
105
- const { userOptionsVisible: q, setUserOptionsVisibility: be, keepUserOptionState: me } = Xt({ config: e.value }), { svgRef: Q } = Yt({ config: e.value.style.chart.title });
106
- function J() {
107
- const t = ze({
108
- userConfig: T.config,
109
- defaultConfig: lt
110
- });
111
- return t.theme ? {
112
- ...ze({
113
- userConfig: qt.vue_ui_galaxy[t.theme] || T.config,
114
- defaultConfig: t
115
- }),
116
- customPalette: Lt[t.theme] || z
117
- } : t;
118
- }
119
- Fe(() => T.config, (t) => {
120
- e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ye(), ne.value += 1, ue.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
121
- }, { deep: !0 });
122
- const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Ht({
123
- elementId: `galaxy_${m.value}`,
124
- fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
125
- options: e.value.userOptions.print
126
- }), at = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), ot = v(() => Ft(e.value.customPalette)), p = o({
127
- dataLabels: {
128
- show: e.value.style.chart.layout.labels.dataLabels.show
129
- },
130
- showTable: e.value.table.show,
131
- showTooltip: e.value.style.chart.tooltip.show
132
- }), E = o(250), M = o(180), st = o(0), nt = o(0), x = v(() => ({
133
- width: E.value,
134
- height: M.value,
135
- viewBox: `${st.value} ${nt.value} ${E.value} ${M.value}`
136
- })), Te = Ye, f = o([]);
137
- function A(t) {
138
- f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), Te("selectLegend", N.value.map((a) => ({
139
- name: a.name,
140
- color: a.color,
141
- value: a.value
142
- })));
143
- }
144
- function xe(t) {
145
- if (!w.value.length)
146
- return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
147
- const a = w.value.find((l) => l.name === t);
148
- return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
149
- }
150
- function ut(t) {
151
- const a = xe(t);
152
- a !== null && f.value.includes(a.id) && A({ id: a.id });
153
- }
154
- function rt(t) {
155
- const a = xe(t);
156
- a !== null && (f.value.includes(a.id) || A({ id: a.id }));
157
- }
158
- const w = v(() => pe.value.map((t, a) => ({
159
- name: t.name,
160
- color: At(t.color) || ot.value[a] || z[a] || z[a % z.length],
161
- value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
162
- absoluteValues: Re(t.values),
163
- id: Me()
164
- })).sort((t, a) => a.value - t.value).map((t, a) => ({
165
- ...t,
166
- absoluteIndex: a
167
- })));
168
- function it() {
169
- return w.value.map((t) => ({
170
- name: t.name,
171
- color: t.color,
172
- value: t.value
173
- }));
174
- }
175
- const C = v(() => w.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Se = o(190), Oe = v(() => w.value.filter((t) => !f.value.includes(t.id))), ct = v(
176
- () => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
177
- ), vt = v(() => Nt({
178
- maxPoints: Se.value,
179
- a: e.value.style.chart.layout.arcs.a ?? 6,
180
- b: e.value.style.chart.layout.arcs.b ?? 6,
181
- angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
182
- startX: x.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
183
- startY: x.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
184
- boxWidth: x.value.width,
185
- boxHeight: x.value.height,
186
- padding: ct.value
187
- })), N = v(() => {
188
- const t = [];
189
- for (let a = 0; a < Oe.value.length; a += 1) {
190
- const l = Oe.value[a], s = l.value / C.value * Se.value + (a > 0 && t.length ? t[a - 1].points : 0);
191
- t.push({
192
- points: s,
193
- ...l,
194
- seriesIndex: a,
195
- proportion: l.value / C.value,
196
- path: vt.value(s)
197
- });
198
- }
199
- return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
200
- });
201
- function K(t) {
202
- const a = Math.min(E.value, M.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, g = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
203
- return {
204
- border: s / 180 * a,
205
- path: r / 180 * a,
206
- blur: g / 180 * a
207
- };
208
- }
209
- const D = o(!1);
210
- function Pe(t) {
211
- D.value = t, se.value += 1;
212
- }
213
- const Z = o(null);
214
- function dt(t) {
215
- H.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
216
- }
217
- function ht(t) {
218
- Te("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
219
- }
220
- function gt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
221
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
222
- datapoint: t,
223
- seriesIndex: l,
224
- series: w.value,
225
- config: e.value
226
- }, H.value = s, _.value = t.id;
227
- let r = "";
228
- const g = e.value.style.chart.tooltip.customFormat;
229
- Ue(g) && Mt(() => g({
230
- seriesIndex: l,
231
- datapoint: t,
232
- series: w.value,
233
- config: e.value
234
- })) ? X.value = g({
235
- seriesIndex: l,
236
- datapoint: t,
237
- series: w.value,
238
- config: e.value
239
- }) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${We(
240
- e.value.style.chart.layout.labels.dataLabels.formatter,
241
- t.value,
242
- I({
243
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
244
- v: t.value,
245
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
246
- r: e.value.style.chart.tooltip.roundingValue
247
- }),
248
- { datapoint: t, seriesIndex: l }
249
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${I({
250
- v: t.proportion * 100,
251
- s: "%",
252
- r: e.value.style.chart.tooltip.roundingPercentage
253
- })})</span></div>` : r += `<b>${I({
254
- v: t.proportion * 100,
255
- s: "%",
256
- r: e.value.style.chart.tooltip.roundingPercentage
257
- })}</b></div>`), X.value = `<div>${r}</div>`);
258
- }
259
- const ee = v(() => w.value.map((t, a) => ({
260
- ...t,
261
- proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
262
- opacity: f.value.includes(t.id) ? 0.5 : 1,
263
- shape: t.shape || "circle",
264
- segregate: () => A(t),
265
- isSegregated: f.value.includes(t.id),
266
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, I({
267
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
268
- v: t.value,
269
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
270
- r: e.value.style.chart.legend.roundingValue
271
- }), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / C.value) ? "-" : I({ v: t.value / C.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
272
- }))), pt = v(() => ({
273
- cy: "galaxy-div-legend",
274
- backgroundColor: e.value.style.chart.legend.backgroundColor,
275
- color: e.value.style.chart.legend.color,
276
- fontSize: e.value.style.chart.legend.fontSize,
277
- paddingBottom: 12,
278
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
279
- })), S = v(() => {
280
- const t = N.value.map((l) => ({
281
- name: l.name,
282
- color: l.color
283
- })), a = N.value.map((l) => l.value);
284
- return { head: t, body: a };
285
- });
286
- function te(t = null) {
287
- Ee(() => {
288
- const a = S.value.head.map((r, g) => [[
289
- r.name
290
- ], [S.value.body[g]], [isNaN(S.value.body[g] / C.value) ? "-" : S.value.body[g] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Vt(l);
291
- t ? t(s) : Et({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
292
- });
293
- }
294
- const G = v(() => {
295
- const t = [
296
- ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
297
- I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
298
- "100%"
299
- ], a = S.value.head.map((r, g) => {
300
- const $t = I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
301
- return [
302
- {
303
- color: r.color,
304
- name: r.name
305
- },
306
- $t,
307
- isNaN(S.value.body[g] / C.value) ? "-" : I({
308
- v: S.value.body[g] / C.value * 100,
309
- s: "%",
310
- r: e.value.table.td.roundingPercentage
311
- })
312
- ];
313
- }), l = {
314
- th: {
315
- backgroundColor: e.value.table.th.backgroundColor,
316
- color: e.value.table.th.color,
317
- outline: e.value.table.th.outline
318
- },
319
- td: {
320
- backgroundColor: e.value.table.td.backgroundColor,
321
- color: e.value.table.td.color,
322
- outline: e.value.table.td.outline
323
- },
324
- breakpoint: e.value.table.responsiveBreakpoint
325
- };
326
- return {
327
- colNames: [
328
- e.value.table.columnNames.series,
329
- e.value.table.columnNames.value,
330
- e.value.table.columnNames.percentage
331
- ],
332
- head: t,
333
- body: a,
334
- config: l
335
- };
336
- });
337
- function Ie() {
338
- p.value.showTable = !p.value.showTable;
339
- }
340
- function _e() {
341
- p.value.showTooltip = !p.value.showTooltip;
342
- }
343
- const R = o(!1);
344
- function le() {
345
- R.value = !R.value;
346
- }
347
- async function ft({ scale: t = 2 } = {}) {
348
- if (!k.value) return;
349
- const { width: a, height: l } = k.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: g } = await jt({ domElement: k.value, base64: !0, img: !0, scale: t });
350
- return {
351
- imageUri: r,
352
- base64: g,
353
- title: e.value.style.chart.title.text,
354
- width: a,
355
- height: l,
356
- aspectRatio: s
357
- };
358
- }
359
- const B = v(() => {
360
- const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
361
- return {
362
- component: t ? tt : Qe,
363
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
364
- props: t ? {
365
- backgroundColor: e.value.table.th.backgroundColor,
366
- color: e.value.table.th.color,
367
- headerColor: e.value.table.th.color,
368
- headerBg: e.value.table.th.backgroundColor,
369
- isFullscreen: D.value,
370
- fullscreenParent: k.value,
371
- forcedWidth: Math.min(500, window.innerWidth * 0.8)
372
- } : {
373
- hideDetails: !0,
374
- config: {
375
- open: a,
376
- maxHeight: 1e4,
377
- body: {
378
- backgroundColor: e.value.style.chart.backgroundColor,
379
- color: e.value.style.chart.color
380
- },
381
- head: {
382
- backgroundColor: e.value.style.chart.backgroundColor,
383
- color: e.value.style.chart.color
384
- }
385
- }
386
- }
387
- };
388
- });
389
- Fe(() => p.value.showTable, (t) => {
390
- e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
391
- });
392
- function De() {
393
- p.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
394
- }
395
- const yt = v(() => ee.value.map((t) => ({
396
- ...t,
397
- name: t.display
398
- }))), bt = v(() => e.value.style.chart.backgroundColor), mt = v(() => e.value.style.chart.legend), kt = v(() => e.value.style.chart.title), { exportSvg: wt, getSvg: Ct } = Kt({
399
- svg: Q,
400
- title: kt,
401
- legend: mt,
402
- legendItems: yt,
403
- backgroundColor: bt
404
- });
405
- async function Le({ isCb: t }) {
406
- if (t) {
407
- const { blob: a, url: l, text: s, dataUrl: r } = await Ct();
408
- e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: r });
409
- } else
410
- wt();
411
- }
412
- return Xe({
413
- getData: it,
414
- getImage: ft,
415
- generatePdf: Ce,
416
- generateCsv: te,
417
- generateImage: $e,
418
- generateSvg: Le,
419
- hideSeries: rt,
420
- showSeries: ut,
421
- toggleTable: Ie,
422
- toggleTooltip: _e,
423
- toggleAnnotator: le,
424
- toggleFullscreen: Pe
425
- }), (t, a) => (n(), d("div", {
426
- ref_key: "galaxyChart",
427
- ref: k,
428
- class: U(`vue-data-ui-component vue-ui-galaxy ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
429
- style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
430
- id: `galaxy_${m.value}`,
431
- onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
432
- onMouseleave: a[3] || (a[3] = () => u(be)(!1))
433
- }, [
434
- e.value.userOptions.buttons.annotator ? (n(), P(u(Ke), {
435
- key: 0,
436
- svgRef: u(Q),
437
- backgroundColor: e.value.style.chart.backgroundColor,
438
- color: e.value.style.chart.color,
439
- active: R.value,
440
- onClose: le
441
- }, {
442
- "annotator-action-close": i(() => [
443
- c(t.$slots, "annotator-action-close", {}, void 0, !0)
444
- ]),
445
- "annotator-action-color": i(({ color: l }) => [
446
- c(t.$slots, "annotator-action-color", y(b({ color: l })), void 0, !0)
447
- ]),
448
- "annotator-action-draw": i(({ mode: l }) => [
449
- c(t.$slots, "annotator-action-draw", y(b({ mode: l })), void 0, !0)
450
- ]),
451
- "annotator-action-undo": i(({ disabled: l }) => [
452
- c(t.$slots, "annotator-action-undo", y(b({ disabled: l })), void 0, !0)
453
- ]),
454
- "annotator-action-redo": i(({ disabled: l }) => [
455
- c(t.$slots, "annotator-action-redo", y(b({ disabled: l })), void 0, !0)
456
- ]),
457
- "annotator-action-delete": i(({ disabled: l }) => [
458
- c(t.$slots, "annotator-action-delete", y(b({ disabled: l })), void 0, !0)
459
- ]),
460
- _: 3
461
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
462
- at.value ? (n(), d("div", {
463
- key: 1,
464
- ref_key: "noTitle",
465
- ref: de,
466
- class: "vue-data-ui-no-title-space",
467
- style: "height:36px; width: 100%;background:transparent"
468
- }, null, 512)) : h("", !0),
469
- e.value.style.chart.title.text ? (n(), d("div", {
470
- key: 2,
471
- ref_key: "chartTitle",
472
- ref: ie,
473
- style: "width:100%;background:transparent;padding-bottom:24px"
474
- }, [
475
- (n(), P(Qt, {
476
- key: `title_${ne.value}`,
477
- config: {
478
- title: {
479
- cy: "galaxy-div-title",
480
- ...e.value.style.chart.title
481
- },
482
- subtitle: {
483
- cy: "galaxy-div-subtitle",
484
- ...e.value.style.chart.title.subtitle
485
- }
486
- }
487
- }, null, 8, ["config"]))
488
- ], 512)) : h("", !0),
489
- $("div", {
490
- id: `legend-top-${m.value}`
491
- }, null, 8, tl),
492
- e.value.userOptions.show && ge.value && (u(me) || u(q)) ? (n(), P(u(Ze), {
493
- ref_key: "userOptionsRef",
494
- ref: Y,
495
- key: `user_option_${se.value}`,
496
- backgroundColor: e.value.style.chart.backgroundColor,
497
- color: e.value.style.chart.color,
498
- isPrinting: u(ke),
499
- isImaging: u(we),
500
- uid: m.value,
501
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
502
- hasPdf: e.value.userOptions.buttons.pdf,
503
- hasXls: e.value.userOptions.buttons.csv,
504
- hasImg: e.value.userOptions.buttons.img,
505
- hasSvg: e.value.userOptions.buttons.svg,
506
- hasTable: e.value.userOptions.buttons.table,
507
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
508
- isTooltip: p.value.showTooltip,
509
- isFullscreen: D.value,
510
- titles: { ...e.value.userOptions.buttonTitles },
511
- chartElement: k.value,
512
- position: e.value.userOptions.position,
513
- hasAnnotator: e.value.userOptions.buttons.annotator,
514
- isAnnotation: R.value,
515
- callbacks: e.value.userOptions.callbacks,
516
- printScale: e.value.userOptions.print.scale,
517
- tableDialog: e.value.table.useDialog,
518
- onToggleFullscreen: Pe,
519
- onGeneratePdf: u(Ce),
520
- onGenerateCsv: te,
521
- onGenerateImage: u($e),
522
- onGenerateSvg: Le,
523
- onToggleTable: Ie,
524
- onToggleTooltip: _e,
525
- onToggleAnnotator: le,
526
- style: W({
527
- visibility: u(me) ? u(q) ? "visible" : "hidden" : "visible"
528
- })
529
- }, Ae({ _: 2 }, [
530
- t.$slots.menuIcon ? {
531
- name: "menuIcon",
532
- fn: i(({ isOpen: l, color: s }) => [
533
- c(t.$slots, "menuIcon", y(b({ isOpen: l, color: s })), void 0, !0)
534
- ]),
535
- key: "0"
536
- } : void 0,
537
- t.$slots.optionTooltip ? {
538
- name: "optionTooltip",
539
- fn: i(() => [
540
- c(t.$slots, "optionTooltip", {}, void 0, !0)
541
- ]),
542
- key: "1"
543
- } : void 0,
544
- t.$slots.optionPdf ? {
545
- name: "optionPdf",
546
- fn: i(() => [
547
- c(t.$slots, "optionPdf", {}, void 0, !0)
548
- ]),
549
- key: "2"
550
- } : void 0,
551
- t.$slots.optionCsv ? {
552
- name: "optionCsv",
553
- fn: i(() => [
554
- c(t.$slots, "optionCsv", {}, void 0, !0)
555
- ]),
556
- key: "3"
557
- } : void 0,
558
- t.$slots.optionImg ? {
559
- name: "optionImg",
560
- fn: i(() => [
561
- c(t.$slots, "optionImg", {}, void 0, !0)
562
- ]),
563
- key: "4"
564
- } : void 0,
565
- t.$slots.optionSvg ? {
566
- name: "optionSvg",
567
- fn: i(() => [
568
- c(t.$slots, "optionSvg", {}, void 0, !0)
569
- ]),
570
- key: "5"
571
- } : void 0,
572
- t.$slots.optionTable ? {
573
- name: "optionTable",
574
- fn: i(() => [
575
- c(t.$slots, "optionTable", {}, void 0, !0)
576
- ]),
577
- key: "6"
578
- } : void 0,
579
- t.$slots.optionFullscreen ? {
580
- name: "optionFullscreen",
581
- fn: i(({ toggleFullscreen: l, isFullscreen: s }) => [
582
- c(t.$slots, "optionFullscreen", y(b({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
583
- ]),
584
- key: "7"
585
- } : void 0,
586
- t.$slots.optionAnnotator ? {
587
- name: "optionAnnotator",
588
- fn: i(({ toggleAnnotator: l, isAnnotator: s }) => [
589
- c(t.$slots, "optionAnnotator", y(b({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
590
- ]),
591
- key: "8"
592
- } : void 0
593
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
594
- (n(), d("svg", {
595
- ref_key: "svgRef",
596
- ref: Q,
597
- xmlns: u(Bt),
598
- class: U({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
599
- viewBox: x.value.viewBox,
600
- style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
601
- }, [
602
- ae(u(et)),
603
- t.$slots["chart-background"] ? (n(), d("foreignObject", {
604
- key: 0,
605
- x: 0,
606
- y: 0,
607
- width: x.value.width,
608
- height: x.value.height,
609
- style: {
610
- pointerEvents: "none"
611
- }
612
- }, [
613
- c(t.$slots, "chart-background", {}, void 0, !0)
614
- ], 8, al)) : h("", !0),
615
- $("defs", null, [
616
- $("filter", {
617
- id: `blur_${m.value}`,
618
- x: "-50%",
619
- y: "-50%",
620
- width: "200%",
621
- height: "200%"
622
- }, [
623
- $("feGaussianBlur", {
624
- in: "SourceGraphic",
625
- stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
626
- }, null, 8, sl)
627
- ], 8, ol)
628
- ]),
629
- (n(!0), d(Ne, null, Be(N.value, (l) => (n(), d("g", null, [
630
- l.value ? (n(), d("path", {
631
- key: 0,
632
- d: l.path,
633
- fill: "none",
634
- stroke: e.value.style.chart.backgroundColor,
635
- "stroke-width": K(l).border,
636
- "stroke-linecap": "round"
637
- }, null, 8, nl)) : h("", !0),
638
- l.value ? (n(), d("path", {
639
- key: 1,
640
- d: l.path,
641
- fill: "none",
642
- stroke: l.color,
643
- "stroke-width": K(l).path,
644
- "stroke-linecap": "round",
645
- class: U(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
646
- }, null, 10, ul)) : h("", !0),
647
- l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), d("g", {
648
- key: 2,
649
- filter: `url(#blur_${m.value})`
650
- }, [
651
- $("path", {
652
- d: l.path,
653
- fill: "none",
654
- stroke: e.value.style.chart.layout.arcs.gradient.color,
655
- "stroke-width": K(l).blur,
656
- "stroke-linecap": "round",
657
- class: U(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
658
- }, null, 10, il)
659
- ], 8, rl)) : h("", !0)
660
- ]))), 256)),
661
- (n(!0), d(Ne, null, Be(N.value, (l, s) => (n(), d("g", null, [
662
- l.value ? (n(), d("path", {
663
- key: 0,
664
- d: l.path,
665
- fill: "none",
666
- stroke: "transparent",
667
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
668
- "stroke-linecap": "round",
669
- onMouseenter: (r) => gt({
670
- datapoint: l,
671
- seriesIndex: l.seriesIndex,
672
- show: !0
673
- }),
674
- onMouseleave: (r) => dt(l),
675
- onClick: (r) => ht(l)
676
- }, null, 40, cl)) : h("", !0)
677
- ]))), 256)),
678
- c(t.$slots, "svg", { svg: x.value }, void 0, !0)
679
- ], 14, ll)),
680
- t.$slots.watermark ? (n(), d("div", vl, [
681
- c(t.$slots, "watermark", y(b({ isPrinting: u(ke) || u(we) })), void 0, !0)
682
- ])) : h("", !0),
683
- $("div", {
684
- id: `legend-bottom-${m.value}`
685
- }, null, 8, dl),
686
- he.value ? (n(), P(St, {
687
- key: 5,
688
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
689
- }, [
690
- $("div", {
691
- ref_key: "chartLegend",
692
- ref: ce
693
- }, [
694
- e.value.style.chart.legend.show ? (n(), P(Jt, {
695
- key: `legend_${re.value}`,
696
- legendSet: ee.value,
697
- config: pt.value,
698
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => A(l))
699
- }, {
700
- item: i(({ legend: l, index: s }) => [
701
- u(j) ? h("", !0) : (n(), d("div", {
702
- key: 0,
703
- onClick: (r) => A(l),
704
- style: W(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
705
- }, oe(l.display), 13, hl))
706
- ]),
707
- _: 1
708
- }, 8, ["legendSet", "config"])) : h("", !0),
709
- c(t.$slots, "legend", { legend: ee.value }, void 0, !0)
710
- ], 512)
711
- ], 8, ["to"])) : h("", !0),
712
- t.$slots.source ? (n(), d("div", {
713
- key: 6,
714
- ref_key: "source",
715
- ref: ve,
716
- dir: "auto"
717
- }, [
718
- c(t.$slots, "source", {}, void 0, !0)
719
- ], 512)) : h("", !0),
720
- ae(u(je), {
721
- show: p.value.showTooltip && H.value,
722
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
723
- color: e.value.style.chart.tooltip.color,
724
- borderRadius: e.value.style.chart.tooltip.borderRadius,
725
- borderColor: e.value.style.chart.tooltip.borderColor,
726
- borderWidth: e.value.style.chart.tooltip.borderWidth,
727
- fontSize: e.value.style.chart.tooltip.fontSize,
728
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
729
- position: e.value.style.chart.tooltip.position,
730
- offsetY: e.value.style.chart.tooltip.offsetY,
731
- parent: k.value,
732
- content: X.value,
733
- isFullscreen: D.value,
734
- isCustom: u(Ue)(e.value.style.chart.tooltip.customFormat),
735
- smooth: e.value.style.chart.tooltip.smooth,
736
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
737
- smoothForce: e.value.style.chart.tooltip.smoothForce,
738
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
739
- }, {
740
- "tooltip-before": i(() => [
741
- c(t.$slots, "tooltip-before", y(b({ ...Z.value })), void 0, !0)
742
- ]),
743
- "tooltip-after": i(() => [
744
- c(t.$slots, "tooltip-after", y(b({ ...Z.value })), void 0, !0)
745
- ]),
746
- _: 3
747
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
748
- ge.value && e.value.userOptions.buttons.table ? (n(), P(Ot(B.value.component), Pt({ key: 7 }, B.value.props, {
749
- ref_key: "tableUnit",
750
- ref: F,
751
- onClose: De
752
- }), Ae({
753
- content: i(() => [
754
- (n(), P(u(Je), {
755
- key: `table_${ue.value}`,
756
- colNames: G.value.colNames,
757
- head: G.value.head,
758
- body: G.value.body,
759
- config: G.value.config,
760
- title: e.value.table.useDialog ? "" : B.value.title,
761
- withCloseButton: !e.value.table.useDialog,
762
- onClose: De
763
- }, {
764
- th: i(({ th: l }) => [
765
- $("div", {
766
- innerHTML: l,
767
- style: { display: "flex", "align-items": "center" }
768
- }, null, 8, gl)
769
- ]),
770
- td: i(({ td: l }) => [
771
- Ve(oe(l.name || l), 1)
772
- ]),
773
- _: 1
774
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
775
- ]),
776
- _: 2
777
- }, [
778
- e.value.table.useDialog ? {
779
- name: "title",
780
- fn: i(() => [
781
- Ve(oe(B.value.title), 1)
782
- ]),
783
- key: "0"
784
- } : void 0,
785
- e.value.table.useDialog ? {
786
- name: "actions",
787
- fn: i(() => [
788
- $("button", {
789
- tabindex: "0",
790
- class: "vue-ui-user-options-button",
791
- onClick: a[1] || (a[1] = (l) => te(e.value.userOptions.callbacks.csv))
792
- }, [
793
- ae(u(qe), {
794
- name: "excel",
795
- stroke: B.value.props.color
796
- }, null, 8, ["stroke"])
797
- ])
798
- ]),
799
- key: "1"
800
- } : void 0
801
- ]), 1040)) : h("", !0),
802
- u(j) ? (n(), P(zt, { key: 8 })) : h("", !0)
803
- ], 46, el));
804
- }
805
- }, _l = /* @__PURE__ */ Zt(pl, [["__scopeId", "data-v-2bf9793a"]]);
806
- export {
807
- _l as default
808
- };