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
@@ -1,1246 +0,0 @@
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, b as ae, i as oe, jt as s, ot as se, q as c, t as ce, ut as le, v as ue, vt as de, w as fe } from "./lib-CuwHGt1j.js";
3
- import { t as pe } from "./useConfig-pVLia3dt.js";
4
- import { t as me } from "./usePrinter-C0wAS8yc.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-BjkuFaz1.js";
8
- import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as be } from "./img-B29J8tV5.js";
10
- import { n as xe } from "./Title-DDEEO-Nr.js";
11
- import { t as Se } from "./Shape-BnF9aMPX.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-C4Usj0LI.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-BFcL_t-A.js";
20
- import { t as je } from "./Legend-DXOzbXb-.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-BhKov422.js")), yt = m(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), bt = m(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), xt = m(() => import("./DataTable-PidUPOit.js")), St = m(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Ct = m(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), wt = m(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Tt = m(() => import("./BaseDraggableDialog-DjzNWkiE.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 || ae(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 = oe(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 || ae(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 = oe(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) && se(() => 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>${oe(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 };