vue-data-ui 3.23.8 → 3.23.10

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