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,855 +0,0 @@
1
- import { defineAsyncComponent as F, useSlots as _t, ref as r, computed as h, toRefs as xt, watch as q, shallowRef as Ue, onMounted as Ot, onBeforeUnmount as At, createElementBlock as f, openBlock as i, unref as n, normalizeStyle as R, normalizeClass as G, createBlock as I, createCommentVNode as b, createElementVNode as C, createVNode as Q, withCtx as v, renderSlot as c, normalizeProps as $, guardReactiveProps as T, createSlots as ie, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as Ft, toDisplayString as de, resolveDynamicComponent as It, createTextVNode as Ee, nextTick as Pt } from "vue";
2
- import { c as We, t as Lt, b as Nt, p as V, o as Ge, f as he, g as Dt, e as Rt, a1 as Vt, h as He, a as je, d as B, X as Bt, s as Mt, i as Ut, x as J, P as zt, Q as Et, G as Wt, H as Gt } from "./lib-C_mNZmhD.js";
3
- import { t as Ht, u as jt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Xt, a as Xe } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as Yt } from "./usePrinter-DTzqpYKF.js";
6
- import { u as qt, B as Qt } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Jt } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
10
- import el from "./img-BecE5qXd.js";
11
- import { _ as tl } from "./Shape-CNXKB8O0.js";
12
- import ll from "./Title-Bb1VWCtR.js";
13
- import { t as ol } from "./themes-DH-N_ePR.js";
14
- import al from "./Legend-D9ZTJKjh.js";
15
- import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const sl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = ["id"], cl = ["stop-color"], dl = ["stop-color"], hl = { key: 1 }, pl = ["stroke", "cx", "cy", "r", "fill"], gl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], fl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], yl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ml = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, bl = ["id"], kl = ["onClick"], wl = ["innerHTML"], Cl = {
20
- __name: "vue-ui-rings",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Array,
30
- default() {
31
- return [];
32
- }
33
- }
34
- },
35
- emits: ["selectLegend"],
36
- setup(Ye, { expose: qe, emit: Qe }) {
37
- const Je = F(() => import("./Tooltip-oWCO1HKy.js")), Ke = F(() => import("./BaseIcon-DLFL0M4-.js")), Ze = F(() => import("./vue-ui-accordion-SSLXLlNz.js")), et = F(() => import("./DataTable-UCyd_BQI.js")), tt = F(() => import("./PenAndPaper-BJSMejV9.js")), lt = F(() => import("./UserOptions-BqmUW9Kp.js")), ot = F(() => import("./PackageVersion-D_4Hr4S4.js")), at = F(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_rings: nt } = Xt(), st = _t(), k = Ye, P = r(!1), pe = h(() => !!k.dataset && k.dataset.length), m = r(We()), H = r(!1), K = r(""), _ = r(null), ge = r(0), x = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Z = r(!1), $e = r(!1), U = r(null), ee = r(null), e = r(oe()), { loading: L, FINAL_DATASET: Te, manualLoading: j } = qt({
38
- ...xt(k),
39
- FINAL_CONFIG: e,
40
- prepareConfig: oe,
41
- skeletonDataset: [
42
- { name: "_", values: [13], color: "#808080" },
43
- { name: "_", values: [8], color: "#969696" },
44
- { name: "_", values: [5], color: "#ADADAD" },
45
- { name: "_", values: [3], color: "#C4C4C4" },
46
- { name: "_", values: [2], color: "#DBDBDB" }
47
- ],
48
- skeletonConfig: Lt({
49
- defaultConfig: e.value,
50
- userConfig: {
51
- userOptions: { show: !1 },
52
- table: { show: !1 },
53
- style: {
54
- chart: {
55
- backgroundColor: "#99999930",
56
- layout: {
57
- rings: {
58
- stroke: "#6A6A6A",
59
- gradient: {
60
- underlayerColor: "#FFFFFF"
61
- }
62
- }
63
- },
64
- legend: {
65
- backgroundColor: "transparent"
66
- }
67
- }
68
- }
69
- }
70
- })
71
- }), { userOptionsVisible: te, setUserOptionsVisibility: Se, keepUserOptionState: _e } = Kt({ config: e.value }), { svgRef: le } = Zt({ config: e.value.style.chart.title });
72
- function oe() {
73
- const t = Xe({
74
- userConfig: k.config,
75
- defaultConfig: nt
76
- });
77
- return t.theme ? {
78
- ...Xe({
79
- userConfig: ol.vue_ui_rings[t.theme] || k.config,
80
- defaultConfig: t
81
- }),
82
- customPalette: Nt[t.theme] || V
83
- } : t;
84
- }
85
- q(() => k.config, (t) => {
86
- L.value || (e.value = oe()), te.value = !e.value.userOptions.showOnChartHover, xe(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
87
- }, { deep: !0 }), q(() => k.dataset, (t) => {
88
- Array.isArray(t) && t.length > 0 && (j.value = !1);
89
- }, { deep: !0 });
90
- const O = Ue(null), M = Ue(null);
91
- Ot(() => {
92
- $e.value = !0, xe();
93
- });
94
- const ae = h(() => !!e.value.debug);
95
- function xe() {
96
- if (Ge(k.dataset) ? (he({
97
- componentName: "VueUiRings",
98
- type: "dataset",
99
- debug: ae.value
100
- }), j.value = !0) : k.dataset.forEach((t, o) => {
101
- t.values.length || (he({
102
- componentName: "VueUiRings",
103
- type: "dataset",
104
- debug: ae.value
105
- }), j.value = !0), Dt({
106
- datasetObject: t,
107
- requiredAttributes: ["name", "values"]
108
- }).forEach((l) => {
109
- he({
110
- componentName: "VueUiRings",
111
- type: "datasetSerieAttribute",
112
- property: l,
113
- index: o,
114
- debug: ae.value
115
- });
116
- });
117
- }), Ge(k.dataset) || (j.value = e.value.loading), e.value.responsive) {
118
- const t = Ht(() => {
119
- Z.value = !0;
120
- const { width: o, height: l } = jt({
121
- chart: x.value,
122
- title: e.value.style.chart.title.text ? fe.value : null,
123
- legend: e.value.style.chart.legend.show ? ye.value : null,
124
- source: me.value,
125
- noTitle: be.value
126
- });
127
- requestAnimationFrame(() => {
128
- u.value.width = o, u.value.height = l - 12, Z.value = !1;
129
- });
130
- });
131
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(t), M.value = x.value.parentNode, O.value.observe(M.value);
132
- }
133
- setTimeout(() => {
134
- P.value = !0;
135
- }, 600);
136
- }
137
- At(() => {
138
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
139
- });
140
- const { isPrinting: Oe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } = Yt({
141
- elementId: `rings_${m.value}`,
142
- fileName: e.value.style.chart.title.text || "vue-ui-rings",
143
- options: e.value.userOptions.print
144
- }), ut = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = h(() => Rt(e.value.customPalette)), w = r({
145
- showTable: e.value.table.show,
146
- showTooltip: e.value.style.chart.tooltip.show
147
- });
148
- q(e, () => {
149
- w.value = {
150
- showTable: e.value.table.show,
151
- showTooltip: e.value.style.chart.tooltip.show
152
- };
153
- }, { immediate: !0 });
154
- const u = r({
155
- height: 360,
156
- width: 360
157
- }), rt = h(() => Math.min(u.value.height, u.value.width)), it = Qe, p = r([]);
158
- function z(t) {
159
- if (p.value.includes(t))
160
- p.value = p.value.filter((o) => o !== t);
161
- else {
162
- if (p.value.length === N.value.length - 1) return;
163
- p.value.push(t);
164
- }
165
- it("selectLegend", y.value.map((o) => ({
166
- name: o.name,
167
- color: o.color,
168
- value: o.value
169
- })));
170
- }
171
- function Le(t) {
172
- if (!N.value.length)
173
- return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
174
- const o = N.value.find((l) => l.name === t);
175
- return o || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
176
- }
177
- function vt(t) {
178
- const o = Le(t);
179
- o !== null && p.value.includes(o.uid) && z(o.uid);
180
- }
181
- function ct(t) {
182
- const o = Le(t);
183
- o !== null && (p.value.includes(o.uid) || z(o.uid));
184
- }
185
- const dt = h(() => Math.max(
186
- ...N.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t)
187
- ));
188
- function Ne(t) {
189
- return t / dt.value;
190
- }
191
- const N = h(() => Te.value.map(({ values: t, name: o, color: l = null }, a) => {
192
- const s = Vt(t).reduce((d, W) => d + W, 0);
193
- return {
194
- name: o,
195
- color: l || He(l) || Pe.value[a] || V[a] || V[a % V.length],
196
- value: s,
197
- proportion: s / Te.value.map((d) => (d.values || []).reduce((W, St) => W + St, 0)).reduce((d, W) => d + W, 0),
198
- uid: We(),
199
- absoluteIndex: a
200
- };
201
- })), ne = h(() => N.value.map((t, o) => ({
202
- ...t,
203
- shape: "circle",
204
- opacity: p.value.includes(t.uid) ? 0.5 : 1,
205
- segregate: () => z(t.uid),
206
- isSegregated: p.value.includes(t.uid),
207
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? je(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, B({
208
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
209
- v: t.value,
210
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
211
- r: e.value.style.chart.legend.roundingValue
212
- }), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? p.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / S.value) ? "-" : B({ v: t.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
213
- })).toSorted((t, o) => o.value - t.value)), ht = h(() => ({
214
- cy: "rings-div-legend",
215
- backgroundColor: e.value.style.chart.legend.backgroundColor,
216
- color: e.value.style.chart.legend.color,
217
- fontSize: e.value.style.chart.legend.fontSize,
218
- paddingBottom: 12,
219
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
220
- })), S = h(() => N.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), y = h(() => N.value.filter((t) => !p.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: s }, d) => ({
221
- absoluteIndex: s,
222
- uid: a,
223
- name: t,
224
- color: l || He(l) || Pe.value[d] || V[d] || V[d % V.length],
225
- value: o,
226
- proportion: Ne(o),
227
- percentage: o / S.value * 100,
228
- strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ne(o)
229
- })).toSorted((t, o) => o.value - t.value));
230
- function pt() {
231
- return y.value.map(
232
- ({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
233
- name: t,
234
- color: o,
235
- value: l,
236
- absoluteValues: a,
237
- percentage: s
238
- })
239
- );
240
- }
241
- const g = h(() => rt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
242
- function gt(t, o) {
243
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
244
- }
245
- function ft(t, o) {
246
- _.value = null, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
247
- }
248
- const se = r(null);
249
- function yt(t, o) {
250
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), p.value.length === k.dataset.length) return;
251
- se.value = {
252
- datapoint: t,
253
- seriesIndex: o,
254
- series: y.value,
255
- config: e.value
256
- }, _.value = o;
257
- const l = y.value[o], a = e.value.style.chart.tooltip.customFormat;
258
- if (Wt(a) && Gt(() => a({
259
- seriesIndex: o,
260
- datapoint: t,
261
- series: y.value,
262
- config: e.value
263
- })))
264
- K.value = a({
265
- seriesIndex: o,
266
- datapoint: t,
267
- series: y.value,
268
- config: e.value
269
- });
270
- else {
271
- let s = "";
272
- s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${st.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${je(
273
- e.value.style.chart.layout.labels.dataLabels.formatter,
274
- l.value,
275
- B({
276
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
277
- v: l.value,
278
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
279
- r: e.value.style.chart.tooltip.roundingValue
280
- }),
281
- { datapoint: t, seriesIndex: o }
282
- )}
283
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${B({
284
- v: l.value / S.value * 100,
285
- s: "%",
286
- r: e.value.style.chart.tooltip.roundingPercentage
287
- })})</span></div>` : s += `<b>${B({
288
- v: l.value / S.value * 100,
289
- s: "%",
290
- r: e.value.style.chart.tooltip.roundingPercentage
291
- })}</b></div>`), K.value = s;
292
- }
293
- H.value = !0;
294
- }
295
- const A = h(() => {
296
- const t = y.value.map((l) => ({
297
- name: l.name,
298
- color: l.color
299
- })), o = y.value.map((l) => l.value);
300
- return { head: t, body: o };
301
- }), X = h(() => {
302
- const t = [
303
- ' <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>',
304
- B({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
305
- "100%"
306
- ], o = A.value.head.map((s, d) => [
307
- {
308
- color: s.color,
309
- name: s.name
310
- },
311
- B({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
312
- isNaN(A.value.body[d] / S.value) ? "-" : (A.value.body[d] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
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
- }, a = [
326
- e.value.table.columnNames.series,
327
- e.value.table.columnNames.value,
328
- e.value.table.columnNames.percentage
329
- ];
330
- return {
331
- head: t,
332
- body: o,
333
- config: l,
334
- colNames: a
335
- };
336
- });
337
- function ue(t = null) {
338
- Pt(() => {
339
- const o = A.value.head.map((s, d) => [[
340
- s.name
341
- ], [A.value.body[d]], [isNaN(A.value.body[d] / S.value) ? "-" : A.value.body[d] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = zt(l);
342
- t ? t(a) : Et({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
343
- });
344
- }
345
- const D = r(!1);
346
- function De(t) {
347
- D.value = t, ge.value += 1;
348
- }
349
- function Re() {
350
- w.value.showTable = !w.value.showTable;
351
- }
352
- function Ve() {
353
- w.value.showTooltip = !w.value.showTooltip;
354
- }
355
- const Y = r(!1);
356
- function re() {
357
- Y.value = !Y.value;
358
- }
359
- async function mt({ scale: t = 2 } = {}) {
360
- if (!x.value) return;
361
- const { width: o, height: l } = x.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: d } = await el({ domElement: x.value, base64: !0, img: !0, scale: t });
362
- return {
363
- imageUri: s,
364
- base64: d,
365
- title: e.value.style.chart.title.text,
366
- width: o,
367
- height: l,
368
- aspectRatio: a
369
- };
370
- }
371
- const E = h(() => {
372
- const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
373
- return {
374
- component: t ? at : Ze,
375
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
376
- props: t ? {
377
- backgroundColor: e.value.table.th.backgroundColor,
378
- color: e.value.table.th.color,
379
- headerColor: e.value.table.th.color,
380
- headerBg: e.value.table.th.backgroundColor,
381
- isFullscreen: D.value,
382
- fullscreenParent: x.value,
383
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
384
- } : {
385
- hideDetails: !0,
386
- config: {
387
- open: o,
388
- maxHeight: 1e4,
389
- body: {
390
- backgroundColor: e.value.style.chart.backgroundColor,
391
- color: e.value.style.chart.color
392
- },
393
- head: {
394
- backgroundColor: e.value.style.chart.backgroundColor,
395
- color: e.value.style.chart.color
396
- }
397
- }
398
- }
399
- };
400
- });
401
- q(() => w.value.showTable, (t) => {
402
- e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
403
- });
404
- function Be() {
405
- w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
406
- }
407
- const bt = h(() => ne.value.map((t) => ({
408
- ...t,
409
- name: t.display
410
- }))), kt = h(() => e.value.style.chart.backgroundColor), wt = h(() => e.value.style.chart.legend), Ct = h(() => e.value.style.chart.title), { exportSvg: $t, getSvg: Tt } = Jt({
411
- svg: le,
412
- title: Ct,
413
- legend: wt,
414
- legendItems: bt,
415
- backgroundColor: kt
416
- });
417
- async function Me({ isCb: t }) {
418
- if (t) {
419
- const { blob: o, url: l, text: a, dataUrl: s } = await Tt();
420
- e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
421
- } else
422
- $t();
423
- }
424
- return qe({
425
- getData: pt,
426
- getImage: mt,
427
- generatePdf: Fe,
428
- generateCsv: ue,
429
- generateImage: Ie,
430
- generateSvg: Me,
431
- hideSeries: ct,
432
- showSeries: vt,
433
- toggleTable: Re,
434
- toggleTooltip: Ve,
435
- toggleAnnotator: re,
436
- toggleFullscreen: De
437
- }), (t, o) => (i(), f("div", {
438
- ref_key: "ringsChart",
439
- ref: x,
440
- class: G(`vue-data-ui-component vue-ui-rings ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
441
- style: R(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
442
- id: `rings_${m.value}`,
443
- onMouseleave: o[2] || (o[2] = (l) => {
444
- _.value = null, H.value = !1, n(Se)(!1);
445
- }),
446
- onMouseenter: o[3] || (o[3] = () => n(Se)(!0))
447
- }, [
448
- e.value.userOptions.buttons.annotator ? (i(), I(n(tt), {
449
- key: 0,
450
- svgRef: n(le),
451
- backgroundColor: e.value.style.chart.backgroundColor,
452
- color: e.value.style.chart.color,
453
- active: Y.value,
454
- onClose: re
455
- }, {
456
- "annotator-action-close": v(() => [
457
- c(t.$slots, "annotator-action-close", {}, void 0, !0)
458
- ]),
459
- "annotator-action-color": v(({ color: l }) => [
460
- c(t.$slots, "annotator-action-color", $(T({ color: l })), void 0, !0)
461
- ]),
462
- "annotator-action-draw": v(({ mode: l }) => [
463
- c(t.$slots, "annotator-action-draw", $(T({ mode: l })), void 0, !0)
464
- ]),
465
- "annotator-action-undo": v(({ disabled: l }) => [
466
- c(t.$slots, "annotator-action-undo", $(T({ disabled: l })), void 0, !0)
467
- ]),
468
- "annotator-action-redo": v(({ disabled: l }) => [
469
- c(t.$slots, "annotator-action-redo", $(T({ disabled: l })), void 0, !0)
470
- ]),
471
- "annotator-action-delete": v(({ disabled: l }) => [
472
- c(t.$slots, "annotator-action-delete", $(T({ disabled: l })), void 0, !0)
473
- ]),
474
- _: 3
475
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
476
- ut.value ? (i(), f("div", {
477
- key: 1,
478
- ref_key: "noTitle",
479
- ref: be,
480
- class: "vue-data-ui-no-title-space",
481
- style: "height:36px; width: 100%;background:transparent"
482
- }, null, 512)) : b("", !0),
483
- e.value.style.chart.title.text ? (i(), f("div", {
484
- key: 2,
485
- ref_key: "chartTitle",
486
- ref: fe,
487
- style: "width:100%;background:transparent"
488
- }, [
489
- (i(), I(ll, {
490
- key: `title_${ke.value}`,
491
- config: {
492
- title: {
493
- cy: "rings-div-title",
494
- ...e.value.style.chart.title
495
- },
496
- subtitle: {
497
- cy: "rings-div-subtitle",
498
- ...e.value.style.chart.title.subtitle
499
- }
500
- }
501
- }, null, 8, ["config"]))
502
- ], 512)) : b("", !0),
503
- C("div", {
504
- id: `legend-top-${m.value}`
505
- }, null, 8, ul),
506
- e.value.userOptions.show && pe.value && (n(_e) || n(te)) ? (i(), I(n(lt), {
507
- ref_key: "userOptionsRef",
508
- ref: ee,
509
- key: `user_options_${ge.value}`,
510
- backgroundColor: e.value.style.chart.backgroundColor,
511
- color: e.value.style.chart.color,
512
- isPrinting: n(Oe),
513
- isImaging: n(Ae),
514
- uid: m.value,
515
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
516
- hasPdf: e.value.userOptions.buttons.pdf,
517
- hasXls: e.value.userOptions.buttons.csv,
518
- hasImg: e.value.userOptions.buttons.img,
519
- hasSvg: e.value.userOptions.buttons.svg,
520
- hasTable: e.value.userOptions.buttons.table,
521
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
522
- isTooltip: w.value.showTooltip,
523
- isFullscreen: D.value,
524
- titles: { ...e.value.userOptions.buttonTitles },
525
- chartElement: x.value,
526
- position: e.value.userOptions.position,
527
- hasAnnotator: e.value.userOptions.buttons.annotator,
528
- isAnnotation: Y.value,
529
- callbacks: e.value.userOptions.callbacks,
530
- printScale: e.value.userOptions.print.scale,
531
- tableDialog: e.value.table.useDialog,
532
- onToggleFullscreen: De,
533
- onGeneratePdf: n(Fe),
534
- onGenerateCsv: ue,
535
- onGenerateImage: n(Ie),
536
- onGenerateSvg: Me,
537
- onToggleTable: Re,
538
- onToggleTooltip: Ve,
539
- onToggleAnnotator: re,
540
- style: R({
541
- visibility: n(_e) ? n(te) ? "visible" : "hidden" : "visible"
542
- })
543
- }, ie({ _: 2 }, [
544
- t.$slots.menuIcon ? {
545
- name: "menuIcon",
546
- fn: v(({ isOpen: l, color: a }) => [
547
- c(t.$slots, "menuIcon", $(T({ isOpen: l, color: a })), void 0, !0)
548
- ]),
549
- key: "0"
550
- } : void 0,
551
- t.$slots.optionTooltip ? {
552
- name: "optionTooltip",
553
- fn: v(() => [
554
- c(t.$slots, "optionTooltip", {}, void 0, !0)
555
- ]),
556
- key: "1"
557
- } : void 0,
558
- t.$slots.optionPdf ? {
559
- name: "optionPdf",
560
- fn: v(() => [
561
- c(t.$slots, "optionPdf", {}, void 0, !0)
562
- ]),
563
- key: "2"
564
- } : void 0,
565
- t.$slots.optionCsv ? {
566
- name: "optionCsv",
567
- fn: v(() => [
568
- c(t.$slots, "optionCsv", {}, void 0, !0)
569
- ]),
570
- key: "3"
571
- } : void 0,
572
- t.$slots.optionImg ? {
573
- name: "optionImg",
574
- fn: v(() => [
575
- c(t.$slots, "optionImg", {}, void 0, !0)
576
- ]),
577
- key: "4"
578
- } : void 0,
579
- t.$slots.optionSvg ? {
580
- name: "optionSvg",
581
- fn: v(() => [
582
- c(t.$slots, "optionSvg", {}, void 0, !0)
583
- ]),
584
- key: "5"
585
- } : void 0,
586
- t.$slots.optionTable ? {
587
- name: "optionTable",
588
- fn: v(() => [
589
- c(t.$slots, "optionTable", {}, void 0, !0)
590
- ]),
591
- key: "6"
592
- } : void 0,
593
- t.$slots.optionFullscreen ? {
594
- name: "optionFullscreen",
595
- fn: v(({ toggleFullscreen: l, isFullscreen: a }) => [
596
- c(t.$slots, "optionFullscreen", $(T({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
597
- ]),
598
- key: "7"
599
- } : void 0,
600
- t.$slots.optionAnnotator ? {
601
- name: "optionAnnotator",
602
- fn: v(({ toggleAnnotator: l, isAnnotator: a }) => [
603
- c(t.$slots, "optionAnnotator", $(T({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
604
- ]),
605
- key: "8"
606
- } : void 0
607
- ]), 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"])) : b("", !0),
608
- (i(), f("svg", {
609
- ref_key: "svgRef",
610
- ref: le,
611
- xmlns: n(Bt),
612
- class: G({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value, resizing: Z.value || n(L) }),
613
- viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
614
- style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
615
- }, [
616
- Q(n(ot)),
617
- t.$slots["chart-background"] ? (i(), f("foreignObject", {
618
- key: 0,
619
- x: 0,
620
- y: 0,
621
- width: u.value.width <= 0 ? 10 : u.value.width,
622
- height: u.value.height <= 0 ? 10 : u.value.height,
623
- style: {
624
- pointerEvents: "none"
625
- }
626
- }, [
627
- c(t.$slots, "chart-background", {}, void 0, !0)
628
- ], 8, il)) : b("", !0),
629
- C("defs", null, [
630
- (i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("radialGradient", {
631
- cx: "50%",
632
- cy: "30%",
633
- r: "50%",
634
- fx: "50%",
635
- fy: "50%",
636
- id: `gradient_${m.value}_${a}`
637
- }, [
638
- C("stop", {
639
- offset: "0%",
640
- "stop-color": n(Mt)(n(Ut)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
641
- }, null, 8, cl),
642
- C("stop", {
643
- offset: "100%",
644
- "stop-color": l.color
645
- }, null, 8, dl)
646
- ], 8, vl))), 256))
647
- ]),
648
- t.$slots.pattern ? (i(), f("g", hl, [
649
- (i(!0), f(ve, null, ce(y.value, (l) => (i(), f("defs", null, [
650
- c(t.$slots, "pattern", ze({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${m.value}_${l.absoluteIndex}` }), void 0, !0)
651
- ]))), 256))
652
- ])) : b("", !0),
653
- (i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("g", null, [
654
- C("circle", {
655
- class: G({
656
- "vue-ui-rings-item": P.value && e.value.useCssAnimation,
657
- "vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
658
- "vue-ui-rings-opacity": _.value !== null && _.value !== a
659
- }),
660
- style: R(`animation-delay:${a * 100}ms`),
661
- stroke: e.value.style.chart.layout.rings.stroke,
662
- cx: u.value.width / 2,
663
- cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
664
- r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
665
- fill: e.value.style.chart.layout.rings.gradient.underlayerColor
666
- }, null, 14, pl),
667
- C("circle", {
668
- class: G({
669
- "vue-ui-rings-item": P.value && e.value.useCssAnimation,
670
- "vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
671
- "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
672
- "vue-ui-rings-blur": _.value !== null && _.value !== a
673
- }),
674
- style: R(`animation-delay:${a * 100}ms`),
675
- stroke: e.value.style.chart.layout.rings.stroke,
676
- "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
677
- cx: u.value.width / 2,
678
- cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
679
- r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
680
- fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${m.value}_${a})` : l.color
681
- }, null, 14, gl),
682
- t.$slots.pattern ? (i(), f("circle", {
683
- key: 0,
684
- class: G({
685
- "vue-ui-rings-item": P.value && e.value.useCssAnimation,
686
- "vue-rings-item-onload": !P.value && e.value.useCssAnimation && !n(L),
687
- "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
688
- "vue-ui-rings-blur": _.value !== null && _.value !== a
689
- }),
690
- style: R(`animation-delay:${a * 100}ms`),
691
- stroke: e.value.style.chart.layout.rings.stroke,
692
- "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
693
- cx: u.value.width / 2,
694
- cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
695
- r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
696
- fill: `url(#pattern_${m.value}_${l.absoluteIndex})`
697
- }, null, 14, fl)) : b("", !0),
698
- C("circle", {
699
- stroke: "none",
700
- cx: u.value.width / 2,
701
- cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
702
- r: n(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
703
- fill: "transparent",
704
- onMouseenter: (s) => yt(l, a),
705
- onMouseleave: (s) => ft(l, a),
706
- onClick: (s) => gt(l, a)
707
- }, null, 40, yl)
708
- ]))), 256)),
709
- c(t.$slots, "svg", { svg: u.value }, void 0, !0)
710
- ], 14, rl)),
711
- t.$slots.watermark ? (i(), f("div", ml, [
712
- c(t.$slots, "watermark", $(T({ isPrinting: n(Oe) || n(Ae) })), void 0, !0)
713
- ])) : b("", !0),
714
- C("div", {
715
- id: `legend-bottom-${m.value}`
716
- }, null, 8, bl),
717
- $e.value ? (i(), I(Ft, {
718
- key: 5,
719
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
720
- }, [
721
- C("div", {
722
- ref_key: "chartLegend",
723
- ref: ye
724
- }, [
725
- e.value.style.chart.legend.show ? (i(), I(al, {
726
- key: `legend_${Ce.value}`,
727
- legendSet: ne.value,
728
- config: ht.value,
729
- onClickMarker: o[0] || (o[0] = ({ legend: l }) => z(l.uid))
730
- }, ie({
731
- item: v(({ legend: l, index: a }) => [
732
- n(L) ? b("", !0) : (i(), f("div", {
733
- key: 0,
734
- onClick: (s) => z(l.uid),
735
- style: R(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
736
- }, de(l.display), 13, kl))
737
- ]),
738
- _: 2
739
- }, [
740
- t.$slots.pattern ? {
741
- name: "legend-pattern",
742
- fn: v(({ legend: l, index: a }) => [
743
- Q(tl, {
744
- shape: l.shape,
745
- radius: 30,
746
- stroke: "none",
747
- plot: { x: 30, y: 30 },
748
- fill: `url(#pattern_${m.value}_${a})`
749
- }, null, 8, ["shape", "fill"])
750
- ]),
751
- key: "0"
752
- } : void 0
753
- ]), 1032, ["legendSet", "config"])) : c(t.$slots, "legend", {
754
- key: 1,
755
- legend: ne.value
756
- }, void 0, !0)
757
- ], 512)
758
- ], 8, ["to"])) : b("", !0),
759
- t.$slots.source ? (i(), f("div", {
760
- key: 6,
761
- ref_key: "source",
762
- ref: me,
763
- dir: "auto"
764
- }, [
765
- c(t.$slots, "source", {}, void 0, !0)
766
- ], 512)) : b("", !0),
767
- Q(n(Je), {
768
- show: w.value.showTooltip && H.value && p.value.length < k.dataset.length,
769
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
770
- color: e.value.style.chart.tooltip.color,
771
- borderRadius: e.value.style.chart.tooltip.borderRadius,
772
- borderColor: e.value.style.chart.tooltip.borderColor,
773
- borderWidth: e.value.style.chart.tooltip.borderWidth,
774
- fontSize: e.value.style.chart.tooltip.fontSize,
775
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
776
- position: e.value.style.chart.tooltip.position,
777
- offsetY: e.value.style.chart.tooltip.offsetY,
778
- parent: x.value,
779
- content: K.value,
780
- isFullscreen: D.value,
781
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
782
- smooth: e.value.style.chart.tooltip.smooth,
783
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
784
- smoothForce: e.value.style.chart.tooltip.smoothForce,
785
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
786
- }, {
787
- "tooltip-before": v(() => [
788
- c(t.$slots, "tooltip-before", $(T({ ...se.value })), void 0, !0)
789
- ]),
790
- "tooltip-after": v(() => [
791
- c(t.$slots, "tooltip-after", $(T({ ...se.value })), void 0, !0)
792
- ]),
793
- _: 3
794
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
795
- pe.value && e.value.userOptions.buttons.table ? (i(), I(It(E.value.component), ze({ key: 7 }, E.value.props, {
796
- ref_key: "tableUnit",
797
- ref: U,
798
- onClose: Be
799
- }), ie({
800
- content: v(() => [
801
- (i(), I(n(et), {
802
- key: `table_${we.value}`,
803
- colNames: X.value.colNames,
804
- head: X.value.head,
805
- body: X.value.body,
806
- config: X.value.config,
807
- title: e.value.table.useDialog ? "" : E.value.title,
808
- withCloseButton: !e.value.table.useDialog,
809
- onClose: Be
810
- }, {
811
- th: v(({ th: l }) => [
812
- C("div", {
813
- innerHTML: l,
814
- style: { display: "flex", "align-items": "center" }
815
- }, null, 8, wl)
816
- ]),
817
- td: v(({ td: l }) => [
818
- Ee(de(l.name || l), 1)
819
- ]),
820
- _: 1
821
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
822
- ]),
823
- _: 2
824
- }, [
825
- e.value.table.useDialog ? {
826
- name: "title",
827
- fn: v(() => [
828
- Ee(de(E.value.title), 1)
829
- ]),
830
- key: "0"
831
- } : void 0,
832
- e.value.table.useDialog ? {
833
- name: "actions",
834
- fn: v(() => [
835
- C("button", {
836
- tabindex: "0",
837
- class: "vue-ui-user-options-button",
838
- onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
839
- }, [
840
- Q(n(Ke), {
841
- name: "excel",
842
- stroke: E.value.props.color
843
- }, null, 8, ["stroke"])
844
- ])
845
- ]),
846
- key: "1"
847
- } : void 0
848
- ]), 1040)) : b("", !0),
849
- n(L) ? (i(), I(Qt, { key: 8 })) : b("", !0)
850
- ], 46, sl));
851
- }
852
- }, Bl = /* @__PURE__ */ nl(Cl, [["__scopeId", "data-v-46b6d787"]]);
853
- export {
854
- Bl as default
855
- };