vue-data-ui 3.22.6 → 3.22.7

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 (191) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
  16. package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
  89. package/dist/exposedLib-Be0ifkti.js +19 -0
  90. package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
  91. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
  92. package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
  93. package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
  94. package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
  95. package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
  101. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
  102. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
  103. package/dist/utils.js +10 -10
  104. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
  105. package/dist/vue-data-ui.js +72 -72
  106. package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
  107. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
  108. package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
  109. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
  110. package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
  111. package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
  112. package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
  113. package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
  114. package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
  115. package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
  116. package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
  117. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
  118. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
  119. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
  120. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
  121. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
  122. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
  123. package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
  124. package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
  125. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
  126. package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
  127. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
  128. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
  129. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
  130. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
  131. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
  132. package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
  133. package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
  134. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
  136. package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
  137. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
  138. package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
  139. package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
  140. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
  141. package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
  142. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
  143. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
  144. package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
  145. package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
  146. package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
  147. package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
  148. package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
  149. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
  150. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
  151. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
  152. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
  153. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
  154. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
  155. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
  156. package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
  157. package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
  158. package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
  159. package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
  160. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
  161. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
  162. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
  163. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
  164. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
  165. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
  166. package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
  167. package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
  168. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
  169. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
  170. package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
  171. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
  172. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
  173. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
  174. package/package.json +1 -1
  175. package/dist/exposedLib-CjwriUaG.js +0 -19
  176. package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
  177. package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
  178. package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
  179. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  180. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  181. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  182. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  183. package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
  184. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  185. package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
  186. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  187. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  188. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  189. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  190. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  191. package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
@@ -0,0 +1,1246 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Ft as t, Gt as n, H as r, Lt as i, Ot as a, Q as o, Rt as ee, S as te, Ut as ne, W as re, X as ie, at as ae, b as oe, i as se, jt as s, q as c, t as ce, ut as le, v as ue, vt as de, w as fe } from "./lib-EAmk-PgA.js";
3
+ import { t as pe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as me } from "./usePrinter-DnGzpp6Q.js";
5
+ import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as _e } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ve } from "./useNestedProp-D8XqxgOU.js";
8
+ import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as be } from "./img-B_abIg0o.js";
10
+ import { n as xe } from "./Title-PiTKr6sp.js";
11
+ import { t as Se } from "./Shape-CiQIxyyT.js";
12
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as we } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as Te } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as Ee } from "./BaseLegendToggle-CHnlKalt.js";
16
+ import { t as De } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Ae } from "./labelUtils-CTDRZdP1.js";
20
+ import { t as je } from "./Legend-kAr7Vqqu.js";
21
+ import { t as Me } from "./vue_ui_rings-BVgD2aMn.js";
22
+ import { Fragment as Ne, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Be, onMounted as Ve, openBlock as y, ref as b, renderList as He, renderSlot as x, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as Ge, toRefs as Ke, unref as S, useSlots as qe, watch as Je, withCtx as C } from "vue";
23
+ //#region src/components/vue-ui-rings.vue
24
+ var Ye = /* @__PURE__ */ e({ default: () => vt }), Xe = ["id"], Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
25
+ "xmlns",
26
+ "viewBox",
27
+ "aria-describedby"
28
+ ], tt = ["width", "height"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], at = { key: 1 }, ot = [
29
+ "stroke",
30
+ "cx",
31
+ "cy",
32
+ "r",
33
+ "fill"
34
+ ], st = [
35
+ "stroke",
36
+ "stroke-width",
37
+ "cx",
38
+ "cy",
39
+ "r",
40
+ "fill"
41
+ ], ct = [
42
+ "stroke",
43
+ "stroke-width",
44
+ "cx",
45
+ "cy",
46
+ "r",
47
+ "fill"
48
+ ], lt = [
49
+ "cx",
50
+ "cy",
51
+ "r",
52
+ "onMouseenter",
53
+ "onMouseleave",
54
+ "onClick"
55
+ ], ut = [
56
+ "x",
57
+ "y",
58
+ "width",
59
+ "height",
60
+ "fill",
61
+ "rx"
62
+ ], dt = [
63
+ "cx",
64
+ "cy",
65
+ "r",
66
+ "fill",
67
+ "stroke"
68
+ ], ft = [
69
+ "x",
70
+ "y",
71
+ "text-anchor",
72
+ "font-size",
73
+ "fill",
74
+ "font-weight",
75
+ "onMouseenter",
76
+ "onMouseleave",
77
+ "onClick",
78
+ "innerHTML"
79
+ ], pt = {
80
+ key: 0,
81
+ style: {
82
+ position: "absolute",
83
+ top: "100%",
84
+ left: "0",
85
+ width: "100%"
86
+ },
87
+ "data-dom-to-png-ignore": "",
88
+ "aria-hidden": "true"
89
+ }, mt = {
90
+ key: 5,
91
+ class: "vue-data-ui-watermark"
92
+ }, ht = ["id"], gt = ["onClick"], _t = ["innerHTML"], vt = /*#__PURE__*/ Ce({
93
+ __name: "vue-ui-rings",
94
+ props: {
95
+ config: {
96
+ type: Object,
97
+ default() {
98
+ return {};
99
+ }
100
+ },
101
+ dataset: {
102
+ type: Array,
103
+ default() {
104
+ return [];
105
+ }
106
+ }
107
+ },
108
+ emits: ["selectLegend", "copyAlt"],
109
+ setup(e, { expose: Ce, emit: Ye }) {
110
+ let vt = m(() => import("./Tooltip-B8yYfISA.js")), yt = m(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), bt = m(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), xt = m(() => import("./DataTable-CVF7DoZn.js")), St = m(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Ct = m(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), wt = m(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Tt = m(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_rings: Et } = pe(), { isThemeValid: Dt, warnInvalidTheme: Ot } = ye(), kt = qe(), w = e, T = b(!1), At = l(() => !!w.dataset && w.dataset.length), E = b(re()), D = b(!1), jt = b(""), O = b(null), Mt = b(0), k = b(null), Nt = b(null), Pt = b(null), Ft = b(null), It = b(null), Lt = b(0), Rt = b(0), zt = b(0), Bt = b(!1), Vt = b(!1), A = b(null), Ht = b(null), Ut = b(!1), Wt = b(!1), j = b(null), Gt = b({
111
+ x: 0,
112
+ y: 0
113
+ }), M = b("pointer"), Kt = b(!1), N = b($t()), P = l(() => N.value.userOptions.useCursorPointer), qt = l(() => n({
114
+ defaultConfig: {
115
+ userOptions: { show: !1 },
116
+ table: { show: !1 },
117
+ style: { chart: {
118
+ backgroundColor: "#99999930",
119
+ layout: {
120
+ rings: {
121
+ stroke: "#6A6A6A",
122
+ gradient: { underlayerColor: "#FFFFFF" }
123
+ },
124
+ labels: { dataLabels: { show: !1 } }
125
+ },
126
+ legend: { backgroundColor: "transparent" }
127
+ } }
128
+ },
129
+ userConfig: N.value.skeletonConfig ?? {}
130
+ })), { loading: F, FINAL_DATASET: Jt, manualLoading: Yt } = he({
131
+ ...Ke(w),
132
+ FINAL_CONFIG: N,
133
+ prepareConfig: $t,
134
+ skeletonDataset: w.config?.skeletonDataset ?? [
135
+ {
136
+ name: "_",
137
+ values: [13],
138
+ color: "#808080"
139
+ },
140
+ {
141
+ name: "_",
142
+ values: [8],
143
+ color: "#969696"
144
+ },
145
+ {
146
+ name: "_",
147
+ values: [5],
148
+ color: "#ADADAD"
149
+ },
150
+ {
151
+ name: "_",
152
+ values: [3],
153
+ color: "#C4C4C4"
154
+ },
155
+ {
156
+ name: "_",
157
+ values: [2],
158
+ color: "#DBDBDB"
159
+ }
160
+ ],
161
+ skeletonConfig: n({
162
+ defaultConfig: N.value,
163
+ userConfig: qt.value
164
+ })
165
+ }), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Oe({ config: N.value }), { svgRef: I } = ke({ config: N.value.style.chart.title });
166
+ function $t() {
167
+ let e = ve({
168
+ userConfig: w.config,
169
+ defaultConfig: Et
170
+ }), t = e.theme;
171
+ if (!t) return e;
172
+ if (!Dt.value(e)) return Ot(e), e;
173
+ let n = ve({
174
+ userConfig: Me[t] || w.config,
175
+ defaultConfig: e
176
+ });
177
+ return {
178
+ ...ve({
179
+ userConfig: w.config,
180
+ defaultConfig: n
181
+ }),
182
+ customPalette: e.customPalette.length ? e.customPalette : ne[e.theme] || s
183
+ };
184
+ }
185
+ Je(() => w.config, (e) => {
186
+ F.value || (N.value = $t()), Xt.value = !N.value.userOptions.showOnChartHover, nn(), Lt.value += 1, Rt.value += 1, zt.value += 1, B.value.showTable = N.value.table.show, B.value.showTooltip = N.value.style.chart.tooltip.show, B.value.showLabels = N.value.style.chart.layout.labels.dataLabels.show, V.value.width = N.value.style.chart.size, V.value.height = N.value.style.chart.size;
187
+ }, { deep: !0 });
188
+ let en = l(() => {
189
+ let { markers: e } = N.value.style.chart.layout.labels.dataLabels, t = J.value / 2, n = B.value.showLabels ? e.position === "left" ? t : -t : 0, r = B.value.showLabels ? V.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
190
+ return {
191
+ x: N.value.responsive ? i : n / N.value.style.chart.size * V.value.width,
192
+ y: 0 / N.value.style.chart.size * V.value.height
193
+ };
194
+ }), L = l(() => ({
195
+ x: V.value.width / 2 + en.value.x,
196
+ y: V.value.height / 2 + en.value.y
197
+ }));
198
+ Je(() => w.dataset, (e) => {
199
+ Array.isArray(e) && e.length > 0 && (Yt.value = !1);
200
+ }, { deep: !0 });
201
+ let R = We(null), z = We(null);
202
+ Ve(() => {
203
+ Vt.value = !0, nn();
204
+ });
205
+ let tn = l(() => !!N.value.debug);
206
+ function nn() {
207
+ if (a(w.dataset) ? (o({
208
+ componentName: "VueUiRings",
209
+ type: "dataset",
210
+ debug: tn.value
211
+ }), Yt.value = !0) : w.dataset.forEach((e, t) => {
212
+ e.values.length || (o({
213
+ componentName: "VueUiRings",
214
+ type: "dataset",
215
+ debug: tn.value
216
+ }), Yt.value = !0), le({
217
+ datasetObject: e,
218
+ requiredAttributes: ["name", "values"]
219
+ }).forEach((e) => {
220
+ o({
221
+ componentName: "VueUiRings",
222
+ type: "datasetSerieAttribute",
223
+ property: e,
224
+ index: t,
225
+ debug: tn.value
226
+ });
227
+ });
228
+ }), a(w.dataset) || (Yt.value = N.value.loading), N.value.responsive) {
229
+ let e = we(() => {
230
+ Bt.value = !0;
231
+ let { width: e, height: t } = Te({
232
+ chart: k.value,
233
+ title: N.value.style.chart.title.text ? Nt.value : null,
234
+ legend: N.value.style.chart.legend.show ? Pt.value : null,
235
+ source: Ft.value,
236
+ noTitle: It.value
237
+ });
238
+ requestAnimationFrame(() => {
239
+ V.value.width = e, V.value.height = t - 12, Bt.value = !1;
240
+ });
241
+ });
242
+ R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = k.value.parentNode, R.value.observe(z.value);
243
+ }
244
+ setTimeout(() => {
245
+ T.value = !0;
246
+ }, 600);
247
+ }
248
+ Be(() => {
249
+ R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
250
+ });
251
+ let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = me({
252
+ elementId: `rings_${E.value}`,
253
+ fileName: N.value.style.chart.title.text || "vue-ui-rings",
254
+ options: N.value.userOptions.print
255
+ }), cn = l(() => N.value.userOptions.show && !N.value.style.chart.title.text), ln = l(() => te(N.value.customPalette)), B = b({
256
+ showTable: N.value.table.show,
257
+ showTooltip: N.value.style.chart.tooltip.show,
258
+ showLabels: N.value.style.chart.layout.labels.dataLabels.show
259
+ });
260
+ Je(N, () => {
261
+ B.value = {
262
+ showTable: N.value.table.show,
263
+ showTooltip: N.value.style.chart.tooltip.show,
264
+ showLabels: N.value.style.chart.layout.labels.dataLabels.show
265
+ };
266
+ }, { immediate: !0 });
267
+ let V = b({
268
+ height: N.value.style.chart.size,
269
+ width: N.value.style.chart.size
270
+ }), un = l(() => Math.min(V.value.height, V.value.width)), dn = Ye, H = b([]);
271
+ function fn() {
272
+ H.value.length ? H.value = [] : G.value.forEach((e) => {
273
+ H.value.push(e.uid);
274
+ }), pn();
275
+ }
276
+ function pn() {
277
+ dn("selectLegend", q.value.map((e) => ({
278
+ name: e.name,
279
+ color: e.color,
280
+ value: e.value
281
+ })));
282
+ }
283
+ function U(e) {
284
+ if (H.value.includes(e)) H.value = H.value.filter((t) => t !== e);
285
+ else {
286
+ if (H.value.length === W.value.length - 1) return;
287
+ H.value.push(e);
288
+ }
289
+ pn();
290
+ }
291
+ function mn(e) {
292
+ return W.value.length ? W.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiRings - There are no series to show."), null);
293
+ }
294
+ function hn(e) {
295
+ let t = mn(e);
296
+ t !== null && H.value.includes(t.uid) && U(t.uid);
297
+ }
298
+ function gn(e) {
299
+ let t = mn(e);
300
+ t !== null && (H.value.includes(t.uid) || U(t.uid));
301
+ }
302
+ let _n = l(() => Math.max(...W.value.filter((e) => !H.value.includes(e.uid)).map(({ value: e }) => e)));
303
+ function vn(e) {
304
+ return e / _n.value;
305
+ }
306
+ let W = l(() => Jt.value.map(({ values: e, name: n, color: r = null }, i) => {
307
+ let a = t(e).reduce((e, t) => e + t, 0);
308
+ return {
309
+ name: n,
310
+ color: r || oe(r) || ln.value[i] || s[i] || s[i % s.length],
311
+ value: a,
312
+ proportion: a / Jt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
313
+ uid: re(),
314
+ absoluteIndex: i
315
+ };
316
+ })), G = l(() => W.value.map((e, t) => {
317
+ let n = se(N.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
318
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
319
+ v: e.value,
320
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
321
+ r: N.value.style.chart.legend.roundingValue
322
+ }), {
323
+ datapoint: e,
324
+ index: t
325
+ }), r = isNaN(e.value / K.value) ? "-" : c({
326
+ v: e.value / K.value * 100,
327
+ s: "%",
328
+ r: N.value.style.chart.legend.roundingPercentage
329
+ }), i = Cn({
330
+ showVal: N.value.style.chart.legend.showValue,
331
+ showPercentage: N.value.style.chart.legend.showPercentage,
332
+ val: n,
333
+ percentage: H.value.includes(e.uid) ? "-%" : r
334
+ });
335
+ return {
336
+ ...e,
337
+ shape: "circle",
338
+ opacity: H.value.includes(e.uid) ? .5 : 1,
339
+ segregate: () => U(e.uid),
340
+ isSegregated: H.value.includes(e.uid),
341
+ display: `${e.name}${N.value.style.chart.legend.showPercentage || N.value.style.chart.legend.showValue ? ": " : ""}${i}`
342
+ };
343
+ }).toSorted((e, t) => t.value - e.value)), yn = l(() => ({
344
+ cy: "rings-div-legend",
345
+ backgroundColor: N.value.style.chart.legend.backgroundColor,
346
+ color: N.value.style.chart.legend.color,
347
+ fontSize: N.value.style.chart.legend.fontSize,
348
+ paddingBottom: 12,
349
+ fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
350
+ })), K = l(() => W.value.filter((e) => !H.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), q = l(() => W.value.filter((e) => !H.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, a) => ({
351
+ absoluteIndex: i,
352
+ uid: r,
353
+ name: e,
354
+ color: n || oe(n) || ln.value[a] || s[a] || s[a % s.length],
355
+ value: t,
356
+ proportion: vn(t),
357
+ percentage: t / K.value * 100,
358
+ strokeWidth: N.value.style.chart.layout.rings.strokeWidth * vn(t)
359
+ })).toSorted((e, t) => t.value - e.value));
360
+ function bn() {
361
+ return q.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
362
+ name: e,
363
+ color: t,
364
+ value: n,
365
+ absoluteValues: r,
366
+ percentage: i
367
+ }));
368
+ }
369
+ let J = l(() => un.value - N.value.style.chart.layout.rings.strokeWidth * 2);
370
+ function xn(e, t) {
371
+ N.value.events.datapointClick && N.value.events.datapointClick({
372
+ datapoint: e,
373
+ seriesIndex: t
374
+ });
375
+ }
376
+ function Sn(e, t) {
377
+ O.value = null, D.value = !1, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
378
+ datapoint: e,
379
+ seriesIndex: t
380
+ });
381
+ }
382
+ function Cn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
383
+ let i = N.value.style.chart.layout.labels.dataLabels;
384
+ return Ae({
385
+ config: i,
386
+ val: e,
387
+ percentage: t,
388
+ showVal: n,
389
+ showPercentage: r
390
+ });
391
+ }
392
+ function wn(e) {
393
+ let t = N.value.style.chart.layout.labels.dataLabels, n = se(t.formatter, e.value, c({
394
+ p: t.prefix,
395
+ v: e.value,
396
+ s: t.suffix,
397
+ r: t.roundingValue
398
+ })), r = c({
399
+ v: e.percentage,
400
+ s: "%",
401
+ r: t.roundingPercentage
402
+ });
403
+ return `${e.name}\n${Cn({
404
+ val: n,
405
+ percentage: r,
406
+ showVal: t.showValue,
407
+ showPercentage: t.showPercentage
408
+ })}`;
409
+ }
410
+ function Y(e) {
411
+ return ue(J.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : J.value * e.proportion / 2 * .9);
412
+ }
413
+ function Tn(e, t) {
414
+ return t === 0 ? L.value.y : L.value.y + J.value * q.value[0].proportion / 2 - J.value * e.proportion / 2 - 2 * (t + 1);
415
+ }
416
+ function X(e, t) {
417
+ let n = N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(J.value / 2) : J.value / 2;
418
+ return {
419
+ x: L.value.x + n,
420
+ y: Tn(e, t) - Y(e)
421
+ };
422
+ }
423
+ let En = b(null);
424
+ function Dn(e, t, n = "pointer") {
425
+ if (N.value.events.datapointEnter && N.value.events.datapointEnter({
426
+ datapoint: e,
427
+ seriesIndex: t
428
+ }), H.value.length === w.dataset.length) return;
429
+ En.value = {
430
+ datapoint: e,
431
+ seriesIndex: t,
432
+ series: q.value,
433
+ config: N.value
434
+ }, O.value = t, j.value = t, M.value = n;
435
+ let r = q.value[t], i = N.value.style.chart.tooltip.customFormat;
436
+ if (de(i) && ae(() => i({
437
+ seriesIndex: t,
438
+ datapoint: e,
439
+ series: q.value,
440
+ config: N.value
441
+ }))) jt.value = i({
442
+ seriesIndex: t,
443
+ datapoint: e,
444
+ series: q.value,
445
+ config: N.value
446
+ });
447
+ else {
448
+ let n = "";
449
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`, n += `<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="${r.color}" />${kt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${E.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${Cn({
450
+ showVal: N.value.style.chart.tooltip.showValue,
451
+ showPercentage: N.value.style.chart.tooltip.showPercentage,
452
+ val: `<span>${se(N.value.style.chart.layout.labels.dataLabels.formatter, r.value, c({
453
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
454
+ v: r.value,
455
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
456
+ r: N.value.style.chart.tooltip.roundingValue
457
+ }), {
458
+ datapoint: e,
459
+ seriesIndex: t
460
+ })}</span>`,
461
+ percentage: c({
462
+ v: r.value / K.value * 100,
463
+ s: "%",
464
+ r: N.value.style.chart.tooltip.roundingPercentage
465
+ })
466
+ })}</b></div>`, jt.value = n;
467
+ }
468
+ D.value = !0;
469
+ }
470
+ let Z = l(() => ({
471
+ head: q.value.map((e) => ({
472
+ name: e.name,
473
+ color: e.color
474
+ })),
475
+ body: q.value.map((e) => e.value)
476
+ })), Q = l(() => {
477
+ let e = [
478
+ " <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>",
479
+ c({
480
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
481
+ v: K.value,
482
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
483
+ r: N.value.table.td.roundingValue
484
+ }),
485
+ "100%"
486
+ ], t = Z.value.head.map((e, t) => [
487
+ {
488
+ color: e.color,
489
+ name: e.name
490
+ },
491
+ c({
492
+ p: N.value.style.chart.layout.labels.dataLabels.prefix,
493
+ v: Z.value.body[t],
494
+ s: N.value.style.chart.layout.labels.dataLabels.suffix,
495
+ r: N.value.table.td.roundingValue
496
+ }),
497
+ isNaN(Z.value.body[t] / K.value) ? "-" : (Z.value.body[t] / K.value * 100).toFixed(N.value.table.td.roundingPercentage) + "%"
498
+ ]);
499
+ return {
500
+ head: e,
501
+ body: t,
502
+ a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
503
+ config: {
504
+ th: {
505
+ backgroundColor: N.value.table.th.backgroundColor,
506
+ color: N.value.table.th.color,
507
+ outline: N.value.table.th.outline
508
+ },
509
+ td: {
510
+ backgroundColor: N.value.table.td.backgroundColor,
511
+ color: N.value.table.td.color,
512
+ outline: N.value.table.td.outline
513
+ },
514
+ breakpoint: N.value.table.responsiveBreakpoint
515
+ },
516
+ colNames: [
517
+ N.value.table.columnNames.series,
518
+ N.value.table.columnNames.value,
519
+ N.value.table.columnNames.percentage
520
+ ]
521
+ };
522
+ });
523
+ function On(e = null) {
524
+ ze(() => {
525
+ let t = Z.value.head.map((e, t) => [
526
+ [e.name],
527
+ [Z.value.body[t]],
528
+ [isNaN(Z.value.body[t] / K.value) ? "-" : Z.value.body[t] / K.value * 100]
529
+ ]), n = fe([
530
+ [N.value.style.chart.title.text],
531
+ [N.value.style.chart.title.subtitle.text],
532
+ [
533
+ [""],
534
+ ["val"],
535
+ ["%"]
536
+ ]
537
+ ].concat(t));
538
+ e ? e(n) : ie({
539
+ csvContent: n,
540
+ title: N.value.style.chart.title.text || "vue-ui-rings"
541
+ });
542
+ });
543
+ }
544
+ let $ = b(!1);
545
+ function kn(e) {
546
+ $.value = e, Mt.value += 1;
547
+ }
548
+ function An() {
549
+ B.value.showTable = !B.value.showTable;
550
+ }
551
+ function jn() {
552
+ B.value.showTooltip = !B.value.showTooltip;
553
+ }
554
+ function Mn() {
555
+ B.value.showLabels = !B.value.showLabels;
556
+ }
557
+ let Nn = b(!1);
558
+ function Pn() {
559
+ Nn.value = !Nn.value;
560
+ }
561
+ async function Fn({ scale: e = 2 } = {}) {
562
+ if (!k.value) return;
563
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
564
+ domElement: k.value,
565
+ base64: !0,
566
+ img: !0,
567
+ scale: e
568
+ });
569
+ return {
570
+ imageUri: i,
571
+ base64: a,
572
+ title: N.value.style.chart.title.text,
573
+ width: t,
574
+ height: n,
575
+ aspectRatio: r
576
+ };
577
+ }
578
+ let In = l(() => {
579
+ let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
580
+ return {
581
+ component: e ? Tt : bt,
582
+ title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
583
+ props: e ? {
584
+ backgroundColor: N.value.table.th.backgroundColor,
585
+ color: N.value.table.th.color,
586
+ headerColor: N.value.table.th.color,
587
+ headerBg: N.value.table.th.backgroundColor,
588
+ isFullscreen: $.value,
589
+ fullscreenParent: k.value,
590
+ forcedWidth: Math.min(800, window.innerWidth * .8),
591
+ isCursorPointer: P.value
592
+ } : {
593
+ hideDetails: !0,
594
+ config: {
595
+ open: t,
596
+ maxHeight: 1e4,
597
+ body: {
598
+ backgroundColor: N.value.style.chart.backgroundColor,
599
+ color: N.value.style.chart.color
600
+ },
601
+ head: {
602
+ backgroundColor: N.value.style.chart.backgroundColor,
603
+ color: N.value.style.chart.color
604
+ }
605
+ }
606
+ }
607
+ };
608
+ });
609
+ Je(() => B.value.showTable, (e) => {
610
+ N.value.table.show || (e && N.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
611
+ });
612
+ function Ln() {
613
+ B.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
614
+ }
615
+ let Rn = l(() => G.value.map((e) => ({
616
+ ...e,
617
+ name: e.display
618
+ }))), zn = l(() => N.value.style.chart.backgroundColor), Bn = l(() => N.value.style.chart.legend), { exportSvg: Vn, getSvg: Hn } = _e({
619
+ svg: I,
620
+ title: l(() => N.value.style.chart.title),
621
+ legend: Bn,
622
+ legendItems: Rn,
623
+ backgroundColor: zn
624
+ });
625
+ async function Un({ isCb: e }) {
626
+ Wt.value = !0, await ze();
627
+ try {
628
+ if (e) {
629
+ let { blob: e, url: t, text: n, dataUrl: r } = await Hn();
630
+ await Promise.resolve(N.value.userOptions.callbacks.svg({
631
+ blob: e,
632
+ url: t,
633
+ text: n,
634
+ dataUrl: r
635
+ }));
636
+ } else await Promise.resolve(Vn());
637
+ } finally {
638
+ Wt.value = !1;
639
+ }
640
+ }
641
+ function Wn(e) {
642
+ if (e?.stage === "start") {
643
+ Ut.value = !0;
644
+ return;
645
+ }
646
+ if (e?.stage === "end") {
647
+ Ut.value = !1;
648
+ return;
649
+ }
650
+ sn();
651
+ }
652
+ async function Gn() {
653
+ if (dn("copyAlt", {
654
+ config: N.value,
655
+ dataset: q.value
656
+ }), !N.value.userOptions.callbacks.altCopy) {
657
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
658
+ return;
659
+ }
660
+ await Promise.resolve(N.value.userOptions.callbacks.altCopy({
661
+ config: N.value,
662
+ dataset: q.value
663
+ }));
664
+ }
665
+ function Kn() {
666
+ j.value = null, Kt.value = !0;
667
+ }
668
+ function qn() {
669
+ j.value = null, M.value = "pointer", D.value = !1, O.value = null, Kt.value = !1;
670
+ }
671
+ function Jn(e) {
672
+ if (!I.value || Nn.value || document.activeElement !== I.value || !q.value.length || H.value.length === w.dataset.length) return;
673
+ let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
674
+ if (!t && !n && !r && !i) return;
675
+ if (e.preventDefault(), e.stopPropagation(), i) {
676
+ j.value = null, M.value = "pointer", D.value = !1, O.value = null;
677
+ return;
678
+ }
679
+ if (r) {
680
+ if (j.value === null) return;
681
+ let e = q.value[j.value];
682
+ if (!e) return;
683
+ xn(e, j.value);
684
+ return;
685
+ }
686
+ let a = j.value;
687
+ a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1));
688
+ let o = q.value[a];
689
+ o && (Yn(a), Dn(o, a, "keyboard"));
690
+ }
691
+ function Yn(e) {
692
+ if (!Number.isFinite(e) || !I.value) return;
693
+ let t = q.value[e];
694
+ if (!t) return;
695
+ let n = X(t, e), r = I.value.getBoundingClientRect();
696
+ Gt.value = {
697
+ x: r.left + n.x / V.value.width * r.width,
698
+ y: r.top + n.y / V.value.height * r.height
699
+ };
700
+ }
701
+ let Xn = l(() => ({
702
+ headers: Q.value?.colNames ?? [],
703
+ rows: Q.value?.a11yBody ?? []
704
+ }));
705
+ return Ce({
706
+ getData: bn,
707
+ getImage: Fn,
708
+ generatePdf: on,
709
+ generateCsv: On,
710
+ generateImage: sn,
711
+ generateSvg: Un,
712
+ hideSeries: gn,
713
+ showSeries: hn,
714
+ toggleTable: An,
715
+ toggleTooltip: jn,
716
+ toggleAnnotator: Pn,
717
+ toggleFullscreen: kn,
718
+ toggleLabels: Mn,
719
+ copyAlt: Gn
720
+ }), (e, t) => (y(), f("div", {
721
+ ref_key: "ringsChart",
722
+ ref: k,
723
+ class: g(`vue-data-ui-component vue-ui-rings ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
724
+ style: v(`font-family:${N.value.style.fontFamily};text-align:center;width:100%;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
725
+ id: `rings_${E.value}`,
726
+ onMouseleave: t[2] ||= (e) => {
727
+ O.value = null, D.value = !1, S(Zt)(!1);
728
+ },
729
+ onMouseenter: t[3] ||= () => S(Zt)(!0)
730
+ }, [
731
+ p("div", {
732
+ id: `chart-instructions-${E.value}`,
733
+ class: "sr-only"
734
+ }, [p("p", null, Ge(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
735
+ Xn.value?.rows?.length ? (y(), u(De, {
736
+ key: 0,
737
+ uid: E.value,
738
+ head: Xn.value.headers,
739
+ body: Xn.value.rows,
740
+ notice: N.value.a11y.translations.tableAvailable,
741
+ caption: N.value.a11y.translations.tableCaption
742
+ }, null, 8, [
743
+ "uid",
744
+ "head",
745
+ "body",
746
+ "notice",
747
+ "caption"
748
+ ])) : d("", !0),
749
+ N.value.userOptions.buttons.annotator ? (y(), u(S(St), {
750
+ key: 1,
751
+ svgRef: S(I),
752
+ backgroundColor: N.value.style.chart.backgroundColor,
753
+ color: N.value.style.chart.color,
754
+ active: Nn.value,
755
+ isCursorPointer: P.value,
756
+ onClose: Pn
757
+ }, {
758
+ "annotator-action-close": C(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
759
+ "annotator-action-color": C(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
760
+ "annotator-action-draw": C(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
761
+ "annotator-action-undo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
762
+ "annotator-action-redo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
763
+ "annotator-action-delete": C(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
764
+ _: 3
765
+ }, 8, [
766
+ "svgRef",
767
+ "backgroundColor",
768
+ "color",
769
+ "active",
770
+ "isCursorPointer"
771
+ ])) : d("", !0),
772
+ cn.value ? (y(), f("div", {
773
+ key: 2,
774
+ ref_key: "noTitle",
775
+ ref: It,
776
+ class: "vue-data-ui-no-title-space",
777
+ style: "height:36px; width: 100%;background:transparent"
778
+ }, null, 512)) : d("", !0),
779
+ N.value.style.chart.title.text ? (y(), f("div", {
780
+ key: 3,
781
+ ref_key: "chartTitle",
782
+ ref: Nt,
783
+ style: "width:100%;background:transparent"
784
+ }, [(y(), u(xe, {
785
+ key: `title_${Lt.value}`,
786
+ config: {
787
+ title: {
788
+ cy: "rings-div-title",
789
+ ...N.value.style.chart.title
790
+ },
791
+ subtitle: {
792
+ cy: "rings-div-subtitle",
793
+ ...N.value.style.chart.title.subtitle
794
+ }
795
+ }
796
+ }, null, 8, ["config"]))], 512)) : d("", !0),
797
+ p("div", { id: `legend-top-${E.value}` }, null, 8, Qe),
798
+ N.value.userOptions.show && At.value && (S(Qt) || S(Xt)) ? (y(), u(S(Ct), {
799
+ ref_key: "userOptionsRef",
800
+ ref: Ht,
801
+ key: `user_options_${Mt.value}`,
802
+ backgroundColor: N.value.style.chart.backgroundColor,
803
+ color: N.value.style.chart.color,
804
+ isPrinting: S(rn),
805
+ isImaging: S(an),
806
+ uid: E.value,
807
+ hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
808
+ hasPdf: N.value.userOptions.buttons.pdf,
809
+ hasXls: N.value.userOptions.buttons.csv,
810
+ hasImg: N.value.userOptions.buttons.img,
811
+ hasSvg: N.value.userOptions.buttons.svg,
812
+ hasTable: N.value.userOptions.buttons.table,
813
+ hasFullscreen: N.value.userOptions.buttons.fullscreen,
814
+ hasAltCopy: N.value.userOptions.buttons.altCopy,
815
+ hasLabel: N.value.userOptions.buttons.labels,
816
+ isTooltip: B.value.showTooltip,
817
+ isFullscreen: $.value,
818
+ titles: { ...N.value.userOptions.buttonTitles },
819
+ chartElement: k.value,
820
+ position: N.value.userOptions.position,
821
+ hasAnnotator: N.value.userOptions.buttons.annotator,
822
+ isAnnotation: Nn.value,
823
+ callbacks: N.value.userOptions.callbacks,
824
+ printScale: N.value.userOptions.print.scale,
825
+ tableDialog: N.value.table.useDialog,
826
+ isCursorPointer: P.value,
827
+ onToggleFullscreen: kn,
828
+ onGeneratePdf: S(on),
829
+ onGenerateCsv: On,
830
+ onGenerateImage: Wn,
831
+ onGenerateSvg: Un,
832
+ onToggleTable: An,
833
+ onToggleTooltip: jn,
834
+ onToggleAnnotator: Pn,
835
+ onToggleLabels: Mn,
836
+ onCopyAlt: Gn,
837
+ style: v({ visibility: S(Qt) ? S(Xt) ? "visible" : "hidden" : "visible" })
838
+ }, Fe({ _: 2 }, [
839
+ e.$slots.menuIcon ? {
840
+ name: "menuIcon",
841
+ fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
842
+ isOpen: t,
843
+ color: n
844
+ })), void 0, !0)]),
845
+ key: "0"
846
+ } : void 0,
847
+ e.$slots.optionTooltip ? {
848
+ name: "optionTooltip",
849
+ fn: C(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
850
+ key: "1"
851
+ } : void 0,
852
+ e.$slots.optionPdf ? {
853
+ name: "optionPdf",
854
+ fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
855
+ key: "2"
856
+ } : void 0,
857
+ e.$slots.optionCsv ? {
858
+ name: "optionCsv",
859
+ fn: C(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
860
+ key: "3"
861
+ } : void 0,
862
+ e.$slots.optionImg ? {
863
+ name: "optionImg",
864
+ fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
865
+ key: "4"
866
+ } : void 0,
867
+ e.$slots.optionSvg ? {
868
+ name: "optionSvg",
869
+ fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
870
+ key: "5"
871
+ } : void 0,
872
+ e.$slots.optionTable ? {
873
+ name: "optionTable",
874
+ fn: C(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
875
+ key: "6"
876
+ } : void 0,
877
+ e.$slots.optionLabels ? {
878
+ name: "optionLabels",
879
+ fn: C(() => [x(e.$slots, "optionLabels", {}, void 0, !0)]),
880
+ key: "7"
881
+ } : void 0,
882
+ e.$slots.optionFullscreen ? {
883
+ name: "optionFullscreen",
884
+ fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
885
+ toggleFullscreen: t,
886
+ isFullscreen: n
887
+ })), void 0, !0)]),
888
+ key: "8"
889
+ } : void 0,
890
+ e.$slots.optionAnnotator ? {
891
+ name: "optionAnnotator",
892
+ fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
893
+ toggleAnnotator: t,
894
+ isAnnotator: n
895
+ })), void 0, !0)]),
896
+ key: "9"
897
+ } : void 0,
898
+ e.$slots.optionAltCopy ? {
899
+ name: "optionAltCopy",
900
+ fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
901
+ key: "10"
902
+ } : void 0,
903
+ e.$slots["custom-menu-before"] ? {
904
+ name: "custom-menu-before",
905
+ fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
906
+ key: "11"
907
+ } : void 0,
908
+ e.$slots["custom-menu-after"] ? {
909
+ name: "custom-menu-after",
910
+ fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
911
+ key: "12"
912
+ } : void 0
913
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
914
+ p("div", $e, [(y(), f("svg", {
915
+ ref_key: "svgRef",
916
+ ref: I,
917
+ xmlns: S(ce),
918
+ class: g({
919
+ "vue-data-ui-fullscreen--on": $.value,
920
+ "vue-data-ui-fulscreen--off": !$.value,
921
+ resizing: Bt.value || S(F)
922
+ }),
923
+ viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
924
+ style: v(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
925
+ "aria-describedby": `chart-instructions-${E.value}`,
926
+ tabindex: "0",
927
+ onFocus: Kn,
928
+ onBlur: qn,
929
+ onKeydown: Jn
930
+ }, [
931
+ Le(S(wt)),
932
+ e.$slots["chart-background"] ? (y(), f("foreignObject", {
933
+ key: 0,
934
+ x: 0,
935
+ y: 0,
936
+ width: V.value.width <= 0 ? 10 : V.value.width,
937
+ height: V.value.height <= 0 ? 10 : V.value.height,
938
+ style: { pointerEvents: "none" }
939
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : d("", !0),
940
+ p("defs", null, [(y(!0), f(Ne, null, He(q.value, (e, t) => (y(), f("radialGradient", {
941
+ cx: "50%",
942
+ cy: "30%",
943
+ r: "50%",
944
+ fx: "50%",
945
+ fy: "50%",
946
+ id: `gradient_${E.value}_${t}`
947
+ }, [p("stop", {
948
+ offset: "0%",
949
+ "stop-color": S(i)(S(ee)(e.color, .05), 100 - N.value.style.chart.layout.rings.gradient.intensity)
950
+ }, null, 8, rt), p("stop", {
951
+ offset: "100%",
952
+ "stop-color": e.color
953
+ }, null, 8, it)], 8, nt))), 256))]),
954
+ e.$slots.pattern ? (y(), f("g", at, [(y(!0), f(Ne, null, He(q.value, (t) => (y(), f("defs", null, [x(e.$slots, "pattern", Re({ ref_for: !0 }, {
955
+ seriesIndex: t.absoluteIndex,
956
+ patternId: `pattern_${E.value}_${t.absoluteIndex}`
957
+ }), void 0, !0)]))), 256))])) : d("", !0),
958
+ (y(!0), f(Ne, null, He(q.value, (t, n) => (y(), f("g", null, [
959
+ p("circle", {
960
+ class: g({
961
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
962
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
963
+ "vue-ui-rings-opacity": O.value !== null && O.value !== n
964
+ }),
965
+ style: v(`animation-delay:${n * 100}ms`),
966
+ stroke: N.value.style.chart.layout.rings.stroke,
967
+ cx: L.value.x,
968
+ cy: Tn(t, n),
969
+ r: Y(t),
970
+ fill: N.value.style.chart.layout.rings.gradient.underlayerColor
971
+ }, null, 14, ot),
972
+ p("circle", {
973
+ class: g({
974
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
975
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
976
+ "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
977
+ "vue-ui-rings-blur": O.value !== null && O.value !== n
978
+ }),
979
+ style: v(`animation-delay:${n * 100}ms`),
980
+ stroke: N.value.style.chart.layout.rings.stroke,
981
+ "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
982
+ cx: L.value.x,
983
+ cy: Tn(t, n),
984
+ r: Y(t),
985
+ fill: N.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${E.value}_${n})` : t.color
986
+ }, null, 14, st),
987
+ e.$slots.pattern ? (y(), f("circle", {
988
+ key: 0,
989
+ class: g({
990
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
991
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
992
+ "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
993
+ "vue-ui-rings-blur": O.value !== null && O.value !== n
994
+ }),
995
+ style: v(`animation-delay:${n * 100}ms`),
996
+ stroke: N.value.style.chart.layout.rings.stroke,
997
+ "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
998
+ cx: L.value.x,
999
+ cy: Tn(t, n),
1000
+ r: Y(t),
1001
+ fill: `url(#pattern_${E.value}_${t.absoluteIndex})`
1002
+ }, null, 14, ct)) : d("", !0),
1003
+ p("circle", {
1004
+ stroke: "none",
1005
+ cx: L.value.x,
1006
+ cy: Tn(t, n),
1007
+ r: Y(t),
1008
+ fill: "transparent",
1009
+ onMouseenter: (e) => Dn(t, n, "pointer"),
1010
+ onMouseleave: (e) => Sn(t, n),
1011
+ onClick: (e) => xn(t, n)
1012
+ }, null, 40, lt),
1013
+ B.value.showLabels ? (y(), f(Ne, { key: 1 }, [
1014
+ p("rect", {
1015
+ x: N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? X(t, n).x : L.value.x,
1016
+ y: X(t, n).y - N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
1017
+ width: Math.abs(L.value.x - X(t, n).x),
1018
+ height: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1019
+ fill: N.value.style.chart.layout.labels.dataLabels.markers.stroke,
1020
+ rx: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1021
+ class: g({
1022
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
1023
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
1024
+ "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1025
+ "vue-ui-rings-blur": O.value !== null && O.value !== n
1026
+ })
1027
+ }, null, 10, ut),
1028
+ p("circle", {
1029
+ cx: X(t, n).x,
1030
+ cy: X(t, n).y,
1031
+ r: N.value.style.chart.layout.labels.dataLabels.markers.radius,
1032
+ fill: t.color,
1033
+ stroke: N.value.style.chart.backgroundColor,
1034
+ class: g({
1035
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
1036
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
1037
+ "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1038
+ "vue-ui-rings-blur": O.value !== null && O.value !== n
1039
+ })
1040
+ }, null, 10, dt),
1041
+ p("text", {
1042
+ x: X(t, n).x + (N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -N.value.style.chart.layout.labels.dataLabels.offsetX : N.value.style.chart.layout.labels.dataLabels.offsetX),
1043
+ y: X(t, n).y + N.value.style.chart.layout.labels.dataLabels.fontSize / 3,
1044
+ "text-anchor": N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
1045
+ "font-size": N.value.style.chart.layout.labels.dataLabels.fontSize,
1046
+ fill: N.value.style.chart.layout.labels.dataLabels.color,
1047
+ "font-weight": N.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
1048
+ class: g({
1049
+ "vue-ui-rings-item": T.value && N.value.useCssAnimation,
1050
+ "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(F),
1051
+ "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1052
+ "vue-ui-rings-blur": O.value !== null && O.value !== n
1053
+ }),
1054
+ onMouseenter: (e) => Dn(t, n, "pointer"),
1055
+ onMouseleave: (e) => Sn(t, n),
1056
+ onClick: (e) => xn(t, n),
1057
+ innerHTML: S(r)({
1058
+ content: wn(t),
1059
+ fontSize: N.value.style.chart.layout.labels.dataLabels.fontSize,
1060
+ fill: N.value.style.chart.layout.labels.dataLabels.color,
1061
+ x: X(t, n).x + (N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -N.value.style.chart.layout.labels.dataLabels.offsetX - 6 - N.value.style.chart.layout.labels.dataLabels.markers.radius : N.value.style.chart.layout.labels.dataLabels.offsetX + 6 + N.value.style.chart.layout.labels.dataLabels.markers.radius),
1062
+ y: X(t, n).y + N.value.style.chart.layout.labels.dataLabels.fontSize / 3,
1063
+ translateY: !0
1064
+ })
1065
+ }, null, 42, ft)
1066
+ ], 64)) : d("", !0)
1067
+ ]))), 256)),
1068
+ x(e.$slots, "svg", { svg: {
1069
+ ...V.value,
1070
+ isPrintingImg: S(rn) || S(an) || Ut.value,
1071
+ isPrintingSvg: Wt.value
1072
+ } }, void 0, !0)
1073
+ ], 46, et)), e.$slots.hint ? (y(), f("div", pt, [x(e.$slots, "hint", _(h({
1074
+ hint: N.value.a11y.translations.keyboardNavigation,
1075
+ isVisible: Kt.value
1076
+ })), void 0, !0)])) : d("", !0)]),
1077
+ e.$slots.watermark ? (y(), f("div", mt, [x(e.$slots, "watermark", _(h({ isPrinting: S(rn) || S(an) || Ut.value || Wt.value })), void 0, !0)])) : d("", !0),
1078
+ p("div", { id: `legend-bottom-${E.value}` }, null, 8, ht),
1079
+ Vt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Pe, {
1080
+ key: 6,
1081
+ to: N.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1082
+ }, [p("div", {
1083
+ ref_key: "chartLegend",
1084
+ ref: Pt
1085
+ }, [x(e.$slots, "legend", { legend: G.value }, () => [N.value.style.chart.legend.show ? (y(), u(je, {
1086
+ key: `legend_${zt.value}`,
1087
+ legendSet: G.value,
1088
+ config: yn.value,
1089
+ isCursorPointer: P.value,
1090
+ onClickMarker: t[0] ||= ({ legend: e }) => U(e.uid)
1091
+ }, Fe({
1092
+ item: C(({ legend: e, index: t }) => [S(F) ? d("", !0) : (y(), f("div", {
1093
+ key: 0,
1094
+ onClick: (t) => U(e.uid),
1095
+ style: v(`opacity:${H.value.includes(e.uid) ? .5 : 1}`)
1096
+ }, Ge(e.display), 13, gt))]),
1097
+ legendToggle: C(() => [G.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !S(F) ? (y(), u(Ee, {
1098
+ key: 0,
1099
+ backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1100
+ color: N.value.style.chart.legend.selectAllToggle.color,
1101
+ fontSize: N.value.style.chart.legend.fontSize,
1102
+ checked: H.value.length > 0,
1103
+ isCursorPointer: P.value,
1104
+ onToggle: fn
1105
+ }, null, 8, [
1106
+ "backgroundColor",
1107
+ "color",
1108
+ "fontSize",
1109
+ "checked",
1110
+ "isCursorPointer"
1111
+ ])) : d("", !0)]),
1112
+ _: 2
1113
+ }, [e.$slots.pattern ? {
1114
+ name: "legend-pattern",
1115
+ fn: C(({ legend: e, index: t }) => [Le(Se, {
1116
+ shape: e.shape,
1117
+ radius: 30,
1118
+ stroke: "none",
1119
+ plot: {
1120
+ x: 30,
1121
+ y: 30
1122
+ },
1123
+ fill: `url(#pattern_${E.value}_${t})`
1124
+ }, null, 8, ["shape", "fill"])]),
1125
+ key: "0"
1126
+ } : void 0]), 1032, [
1127
+ "legendSet",
1128
+ "config",
1129
+ "isCursorPointer"
1130
+ ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1131
+ e.$slots.source ? (y(), f("div", {
1132
+ key: 7,
1133
+ ref_key: "source",
1134
+ ref: Ft,
1135
+ dir: "auto"
1136
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1137
+ Le(S(vt), {
1138
+ teleportTo: N.value.style.chart.tooltip.teleportTo,
1139
+ show: B.value.showTooltip && D.value && H.value.length < w.dataset.length,
1140
+ backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1141
+ color: N.value.style.chart.tooltip.color,
1142
+ borderRadius: N.value.style.chart.tooltip.borderRadius,
1143
+ borderColor: N.value.style.chart.tooltip.borderColor,
1144
+ borderWidth: N.value.style.chart.tooltip.borderWidth,
1145
+ fontSize: N.value.style.chart.tooltip.fontSize,
1146
+ backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1147
+ position: N.value.style.chart.tooltip.position,
1148
+ offsetX: N.value.style.chart.tooltip.offsetX,
1149
+ offsetY: N.value.style.chart.tooltip.offsetY,
1150
+ parent: k.value,
1151
+ content: jt.value,
1152
+ isFullscreen: $.value,
1153
+ isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1154
+ smooth: N.value.style.chart.tooltip.smooth,
1155
+ backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1156
+ smoothForce: N.value.style.chart.tooltip.smoothForce,
1157
+ smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1158
+ isA11yMode: M.value === "keyboard",
1159
+ a11yPosition: Gt.value
1160
+ }, {
1161
+ "tooltip-before": C(() => [x(e.$slots, "tooltip-before", _(h({ ...En.value })), void 0, !0)]),
1162
+ tooltip: C(() => [x(e.$slots, "tooltip", _(h({ ...En.value })), void 0, !0)]),
1163
+ "tooltip-after": C(() => [x(e.$slots, "tooltip-after", _(h({ ...En.value })), void 0, !0)]),
1164
+ _: 3
1165
+ }, 8, [
1166
+ "teleportTo",
1167
+ "show",
1168
+ "backgroundColor",
1169
+ "color",
1170
+ "borderRadius",
1171
+ "borderColor",
1172
+ "borderWidth",
1173
+ "fontSize",
1174
+ "backgroundOpacity",
1175
+ "position",
1176
+ "offsetX",
1177
+ "offsetY",
1178
+ "parent",
1179
+ "content",
1180
+ "isFullscreen",
1181
+ "isCustom",
1182
+ "smooth",
1183
+ "backdropFilter",
1184
+ "smoothForce",
1185
+ "smoothSnapThreshold",
1186
+ "isA11yMode",
1187
+ "a11yPosition"
1188
+ ]),
1189
+ At.value && N.value.userOptions.buttons.table ? (y(), u(Ue(In.value.component), Re({ key: 8 }, In.value.props, {
1190
+ ref_key: "tableUnit",
1191
+ ref: A,
1192
+ onClose: Ln
1193
+ }), Fe({
1194
+ content: C(() => [(y(), u(S(xt), {
1195
+ key: `table_${Rt.value}`,
1196
+ colNames: Q.value.colNames,
1197
+ head: Q.value.head,
1198
+ body: Q.value.body,
1199
+ config: Q.value.config,
1200
+ title: N.value.table.useDialog ? "" : In.value.title,
1201
+ withCloseButton: !N.value.table.useDialog,
1202
+ isCursorPointer: P.value,
1203
+ onClose: Ln
1204
+ }, {
1205
+ th: C(({ th: e }) => [p("div", {
1206
+ innerHTML: e,
1207
+ style: {
1208
+ display: "flex",
1209
+ "align-items": "center"
1210
+ }
1211
+ }, null, 8, _t)]),
1212
+ td: C(({ td: e }) => [Ie(Ge(e.name || e), 1)]),
1213
+ _: 1
1214
+ }, 8, [
1215
+ "colNames",
1216
+ "head",
1217
+ "body",
1218
+ "config",
1219
+ "title",
1220
+ "withCloseButton",
1221
+ "isCursorPointer"
1222
+ ]))]),
1223
+ _: 2
1224
+ }, [N.value.table.useDialog ? {
1225
+ name: "title",
1226
+ fn: C(() => [Ie(Ge(In.value.title), 1)]),
1227
+ key: "0"
1228
+ } : void 0, N.value.table.useDialog ? {
1229
+ name: "actions",
1230
+ fn: C(() => [p("button", {
1231
+ tabindex: "0",
1232
+ class: "vue-ui-user-options-button",
1233
+ onClick: t[1] ||= (e) => On(N.value.userOptions.callbacks.csv),
1234
+ style: v({ cursor: P.value ? "pointer" : "default" })
1235
+ }, [Le(S(yt), {
1236
+ name: "fileCsv",
1237
+ stroke: In.value.props.color
1238
+ }, null, 8, ["stroke"])], 4)]),
1239
+ key: "1"
1240
+ } : void 0]), 1040)) : d("", !0),
1241
+ x(e.$slots, "skeleton", {}, () => [S(F) ? (y(), u(ge, { key: 0 })) : d("", !0)], !0)
1242
+ ], 46, Xe));
1243
+ }
1244
+ }, [["__scopeId", "data-v-ab14a465"]]);
1245
+ //#endregion
1246
+ export { Ye as n, vt as t };