vue-data-ui 3.22.4 → 3.22.6

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