vue-data-ui 3.0.0-next.7 → 3.0.0-next.70

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,728 @@
1
+ import { defineAsyncComponent as R, useSlots as rt, ref as r, computed as f, toRefs as it, watch as le, shallowRef as Pe, onMounted as vt, onBeforeUnmount as ct, createElementBlock as d, openBlock as i, unref as s, normalizeStyle as O, normalizeClass as B, createBlock as S, createCommentVNode as b, createElementVNode as A, createVNode as ae, createSlots as Ne, withCtx as g, renderSlot as h, normalizeProps as D, guardReactiveProps as M, Fragment as oe, renderList as se, mergeProps as dt, toDisplayString as E, createTextVNode as ht, nextTick as pt } from "vue";
2
+ import { u as gt, c as Le, t as ft, a as yt, p as P, b as mt, o as Ve, f as ne, g as bt, d as kt, G as wt, e as Re, i as N, X as Ct, s as $t, x as Tt, h as X, k as De, v as _t, w as xt, y as At, z as Ft } from "./index-CnY41r21.js";
3
+ import { t as It, u as Ot } from "./useResponsive-DfdjqQps.js";
4
+ import { u as St } from "./usePrinter-CJ1uZx0D.js";
5
+ import { u as Pt, B as Nt } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Me } from "./useNestedProp-DtUATNAU.js";
7
+ import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Rt from "./Legend-ChXhJNzd.js";
10
+ import Dt from "./Title-feqCv0Si.js";
11
+ import { _ as Mt } from "./Shape-C1rNfsMY.js";
12
+ import zt from "./img-_RMhslMZ.js";
13
+ import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = { key: 1 }, Yt = ["stroke", "cx", "cy", "r", "fill"], qt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Jt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Kt = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Qt = {
15
+ key: 4,
16
+ class: "vue-data-ui-watermark"
17
+ }, Zt = ["onClick"], el = ["innerHTML"], tl = {
18
+ __name: "vue-ui-rings",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectLegend"],
34
+ setup(ze, { expose: Be, emit: Ee }) {
35
+ const Ue = R(() => import("./vue-ui-accordion-CnLY8CrQ.js")), We = R(() => import("./DataTable-CKpA_OA_.js")), Ge = R(() => import("./PackageVersion-CBHvscRY.js")), He = R(() => import("./PenAndPaper-BCcfYvgR.js")), je = R(() => import("./Tooltip-DQbksria.js")), Xe = R(() => import("./UserOptions-CGnAZpYs.js")), { vue_ui_rings: Ye } = gt(), qe = rt(), m = ze, F = r(!1), ue = f(() => !!m.dataset && m.dataset.length), C = r(Le()), Je = r(null), U = r(!1), Y = r(""), $ = r(null), re = r(0), T = r(null), ie = r(null), ve = r(null), ce = r(null), de = r(null), he = r(0), pe = r(0), ge = r(0), q = r(!1), e = r(K()), { loading: I, FINAL_DATASET: fe, manualLoading: W } = Pt({
36
+ ...it(m),
37
+ FINAL_CONFIG: e,
38
+ prepareConfig: K,
39
+ skeletonDataset: [
40
+ { name: "_", values: [13], color: "#808080" },
41
+ { name: "_", values: [8], color: "#969696" },
42
+ { name: "_", values: [5], color: "#ADADAD" },
43
+ { name: "_", values: [3], color: "#C4C4C4" },
44
+ { name: "_", values: [2], color: "#DBDBDB" }
45
+ ],
46
+ skeletonConfig: ft({
47
+ defaultConfig: e.value,
48
+ userConfig: {
49
+ userOptions: { show: !1 },
50
+ table: { show: !1 },
51
+ style: {
52
+ chart: {
53
+ backgroundColor: "#99999930",
54
+ layout: {
55
+ rings: {
56
+ stroke: "#6A6A6A",
57
+ gradient: {
58
+ underlayerColor: "#FFFFFF"
59
+ }
60
+ }
61
+ },
62
+ legend: {
63
+ backgroundColor: "transparent"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ })
69
+ }), { userOptionsVisible: J, setUserOptionsVisibility: ye, keepUserOptionState: me } = Lt({ config: e.value }), { svgRef: be } = Vt({ config: e.value.style.chart.title });
70
+ function K() {
71
+ const t = Me({
72
+ userConfig: m.config,
73
+ defaultConfig: Ye
74
+ });
75
+ return t.theme ? {
76
+ ...Me({
77
+ userConfig: mt.vue_ui_rings[t.theme] || m.config,
78
+ defaultConfig: t
79
+ }),
80
+ customPalette: yt[t.theme] || P
81
+ } : t;
82
+ }
83
+ le(() => m.config, (t) => {
84
+ I.value || (e.value = K()), J.value = !e.value.userOptions.showOnChartHover, ke(), he.value += 1, pe.value += 1, ge.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ }, { deep: !0 }), le(() => m.dataset, (t) => {
86
+ Array.isArray(t) && t.length > 0 && (W.value = !1);
87
+ }, { deep: !0 });
88
+ const _ = Pe(null), L = Pe(null);
89
+ vt(() => {
90
+ ke();
91
+ });
92
+ const Q = f(() => !!e.value.debug);
93
+ function ke() {
94
+ if (Ve(m.dataset) ? (ne({
95
+ componentName: "VueUiRings",
96
+ type: "dataset",
97
+ debug: Q.value
98
+ }), W.value = !0) : m.dataset.forEach((t, a) => {
99
+ t.values.length || (ne({
100
+ componentName: "VueUiRings",
101
+ type: "dataset",
102
+ debug: Q.value
103
+ }), W.value = !0), bt({
104
+ datasetObject: t,
105
+ requiredAttributes: ["name", "values"]
106
+ }).forEach((l) => {
107
+ ne({
108
+ componentName: "VueUiRings",
109
+ type: "datasetSerieAttribute",
110
+ property: l,
111
+ index: a,
112
+ debug: Q.value
113
+ });
114
+ });
115
+ }), Ve(m.dataset) || (W.value = e.value.loading), e.value.responsive) {
116
+ const t = It(() => {
117
+ q.value = !0;
118
+ const { width: a, height: l } = Ot({
119
+ chart: T.value,
120
+ title: e.value.style.chart.title.text ? ie.value : null,
121
+ legend: e.value.style.chart.legend.show ? ve.value : null,
122
+ source: ce.value,
123
+ noTitle: de.value
124
+ });
125
+ requestAnimationFrame(() => {
126
+ n.value.width = a, n.value.height = l - 12, q.value = !1;
127
+ });
128
+ });
129
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = T.value.parentNode, _.value.observe(L.value);
130
+ }
131
+ setTimeout(() => {
132
+ F.value = !0;
133
+ }, 600);
134
+ }
135
+ ct(() => {
136
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
137
+ });
138
+ const { isPrinting: we, isImaging: Ce, generatePdf: $e, generateImage: Te } = St({
139
+ elementId: `rings_${C.value}`,
140
+ fileName: e.value.style.chart.title.text || "vue-ui-rings",
141
+ options: e.value.userOptions.print
142
+ }), Ke = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), _e = f(() => kt(e.value.customPalette)), k = r({
143
+ showTable: e.value.table.show,
144
+ showTooltip: e.value.style.chart.tooltip.show
145
+ });
146
+ le(e, () => {
147
+ k.value = {
148
+ showTable: e.value.table.show,
149
+ showTooltip: e.value.style.chart.tooltip.show
150
+ };
151
+ }, { immediate: !0 });
152
+ const n = r({
153
+ height: 360,
154
+ width: 360
155
+ }), Qe = f(() => Math.min(n.value.height, n.value.width)), Ze = Ee, y = r([]);
156
+ function Z(t) {
157
+ y.value.includes(t) ? y.value = y.value.filter((a) => a !== t) : y.value.push(t), Ze("selectLegend", p.value.map((a) => ({
158
+ name: a.name,
159
+ color: a.color,
160
+ value: a.value
161
+ })));
162
+ }
163
+ const et = f(() => Math.max(
164
+ ...G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
165
+ ));
166
+ function xe(t) {
167
+ return t / et.value;
168
+ }
169
+ const G = f(() => fe.value.map(({ values: t, name: a, color: l = null }, o) => {
170
+ const u = wt(t).reduce((v, z) => v + z, 0);
171
+ return {
172
+ name: a,
173
+ color: l || Re(l) || _e.value[o] || P[o] || P[o % P.length],
174
+ value: u,
175
+ proportion: u / fe.value.map((v) => (v.values || []).reduce((z, ut) => z + ut, 0)).reduce((v, z) => v + z, 0),
176
+ uid: Le(),
177
+ absoluteIndex: o
178
+ };
179
+ })), Ae = f(() => G.value.map((t) => ({
180
+ ...t,
181
+ shape: "circle",
182
+ opacity: y.value.includes(t.uid) ? 0.5 : 1,
183
+ segregate: () => Z(t.uid),
184
+ isSegregated: y.value.includes(t.uid)
185
+ })).toSorted((t, a) => a.value - t.value)), tt = f(() => ({
186
+ cy: "rings-div-legend",
187
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
188
+ color: e.value.style.chart.legend.color,
189
+ fontSize: e.value.style.chart.legend.fontSize,
190
+ paddingBottom: 12,
191
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
192
+ })), w = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: u }, v) => ({
193
+ absoluteIndex: u,
194
+ uid: o,
195
+ name: t,
196
+ color: l || Re(l) || _e.value[v] || P[v] || P[v % P.length],
197
+ value: a,
198
+ proportion: xe(a),
199
+ percentage: a / w.value * 100,
200
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * xe(a)
201
+ })).toSorted((t, a) => a.value - t.value));
202
+ function lt() {
203
+ return p.value.map(
204
+ ({ name: t, color: a, value: l, absoluteValues: o, percentage: u }) => ({
205
+ name: t,
206
+ color: a,
207
+ value: l,
208
+ absoluteValues: o,
209
+ percentage: u
210
+ })
211
+ );
212
+ }
213
+ const c = f(() => Qe.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
+ function at(t, a) {
215
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
216
+ }
217
+ function ot(t, a) {
218
+ $.value = null, U.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
219
+ }
220
+ const ee = r(null);
221
+ function st(t, a) {
222
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), y.value.length === m.dataset.length) return;
223
+ ee.value = {
224
+ datapoint: t,
225
+ seriesIndex: a,
226
+ series: p.value,
227
+ config: e.value
228
+ }, $.value = a;
229
+ const l = p.value[a], o = e.value.style.chart.tooltip.customFormat;
230
+ if (At(o) && Ft(() => o({
231
+ seriesIndex: a,
232
+ datapoint: t,
233
+ series: p.value,
234
+ config: e.value
235
+ })))
236
+ Y.value = o({
237
+ seriesIndex: a,
238
+ datapoint: t,
239
+ series: p.value,
240
+ config: e.value
241
+ });
242
+ else {
243
+ let u = "";
244
+ u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${De(
245
+ e.value.style.chart.layout.labels.dataLabels.formatter,
246
+ l.value,
247
+ N({
248
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
249
+ v: l.value,
250
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
251
+ r: e.value.style.chart.tooltip.roundingValue
252
+ }),
253
+ { datapoint: t, seriesIndex: a }
254
+ )}
255
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${N({
256
+ v: l.value / w.value * 100,
257
+ s: "%",
258
+ r: e.value.style.chart.tooltip.roundingPercentage
259
+ })})</span></div>` : u += `<b>${N({
260
+ v: l.value / w.value * 100,
261
+ s: "%",
262
+ r: e.value.style.chart.tooltip.roundingPercentage
263
+ })}</b></div>`), Y.value = u;
264
+ }
265
+ U.value = !0;
266
+ }
267
+ const x = f(() => {
268
+ const t = p.value.map((l) => ({
269
+ name: l.name,
270
+ color: l.color
271
+ })), a = p.value.map((l) => l.value);
272
+ return { head: t, body: a };
273
+ }), H = f(() => {
274
+ const t = [
275
+ ' <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>',
276
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
277
+ "100%"
278
+ ], a = x.value.head.map((u, v) => [
279
+ {
280
+ color: u.color,
281
+ name: u.name
282
+ },
283
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
284
+ isNaN(x.value.body[v] / w.value) ? "-" : (x.value.body[v] / w.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
285
+ ]), l = {
286
+ th: {
287
+ backgroundColor: e.value.table.th.backgroundColor,
288
+ color: e.value.table.th.color,
289
+ outline: e.value.table.th.outline
290
+ },
291
+ td: {
292
+ backgroundColor: e.value.table.td.backgroundColor,
293
+ color: e.value.table.td.color,
294
+ outline: e.value.table.td.outline
295
+ },
296
+ breakpoint: e.value.table.responsiveBreakpoint
297
+ }, o = [
298
+ e.value.table.columnNames.series,
299
+ e.value.table.columnNames.value,
300
+ e.value.table.columnNames.percentage
301
+ ];
302
+ return {
303
+ head: t,
304
+ body: a,
305
+ config: l,
306
+ colNames: o
307
+ };
308
+ });
309
+ function Fe(t = null) {
310
+ pt(() => {
311
+ const a = x.value.head.map((u, v) => [[
312
+ u.name
313
+ ], [x.value.body[v]], [isNaN(x.value.body[v] / w.value) ? "-" : x.value.body[v] / w.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = _t(l);
314
+ t ? t(o) : xt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
315
+ });
316
+ }
317
+ const V = r(!1);
318
+ function Ie(t) {
319
+ V.value = t, re.value += 1;
320
+ }
321
+ function Oe() {
322
+ k.value.showTable = !k.value.showTable;
323
+ }
324
+ function Se() {
325
+ k.value.showTooltip = !k.value.showTooltip;
326
+ }
327
+ const j = r(!1);
328
+ function te() {
329
+ j.value = !j.value;
330
+ }
331
+ async function nt({ scale: t = 2 } = {}) {
332
+ if (!T.value) return;
333
+ const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: v } = await zt({ domElement: T.value, base64: !0, img: !0, scale: t });
334
+ return {
335
+ imageUri: u,
336
+ base64: v,
337
+ title: e.value.style.chart.title.text,
338
+ width: a,
339
+ height: l,
340
+ aspectRatio: o
341
+ };
342
+ }
343
+ return Be({
344
+ getData: lt,
345
+ getImage: nt,
346
+ generatePdf: $e,
347
+ generateCsv: Fe,
348
+ generateImage: Te,
349
+ toggleTable: Oe,
350
+ toggleTooltip: Se,
351
+ toggleAnnotator: te,
352
+ toggleFullscreen: Ie
353
+ }), (t, a) => (i(), d("div", {
354
+ ref_key: "ringsChart",
355
+ ref: T,
356
+ class: B(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
357
+ style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
358
+ id: `rings_${C.value}`,
359
+ onMouseleave: a[2] || (a[2] = (l) => {
360
+ $.value = null, U.value = !1, s(ye)(!1);
361
+ }),
362
+ onMouseenter: a[3] || (a[3] = () => s(ye)(!0))
363
+ }, [
364
+ e.value.userOptions.buttons.annotator ? (i(), S(s(He), {
365
+ key: 0,
366
+ svgRef: s(be),
367
+ backgroundColor: e.value.style.chart.backgroundColor,
368
+ color: e.value.style.chart.color,
369
+ active: j.value,
370
+ onClose: te
371
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
372
+ Ke.value ? (i(), d("div", {
373
+ key: 1,
374
+ ref_key: "noTitle",
375
+ ref: de,
376
+ class: "vue-data-ui-no-title-space",
377
+ style: "height:36px; width: 100%;background:transparent"
378
+ }, null, 512)) : b("", !0),
379
+ e.value.style.chart.title.text ? (i(), d("div", {
380
+ key: 2,
381
+ ref_key: "chartTitle",
382
+ ref: ie,
383
+ style: "width:100%;background:transparent"
384
+ }, [
385
+ (i(), S(Dt, {
386
+ key: `title_${he.value}`,
387
+ config: {
388
+ title: {
389
+ cy: "rings-div-title",
390
+ ...e.value.style.chart.title
391
+ },
392
+ subtitle: {
393
+ cy: "rings-div-subtitle",
394
+ ...e.value.style.chart.title.subtitle
395
+ }
396
+ }
397
+ }, null, 8, ["config"]))
398
+ ], 512)) : b("", !0),
399
+ e.value.userOptions.show && ue.value && (s(me) || s(J)) ? (i(), S(s(Xe), {
400
+ ref_key: "details",
401
+ ref: Je,
402
+ key: `user_options_${re.value}`,
403
+ backgroundColor: e.value.style.chart.backgroundColor,
404
+ color: e.value.style.chart.color,
405
+ isPrinting: s(we),
406
+ isImaging: s(Ce),
407
+ uid: C.value,
408
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
409
+ hasPdf: e.value.userOptions.buttons.pdf,
410
+ hasXls: e.value.userOptions.buttons.csv,
411
+ hasImg: e.value.userOptions.buttons.img,
412
+ hasTable: e.value.userOptions.buttons.table,
413
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
+ isTooltip: k.value.showTooltip,
415
+ isFullscreen: V.value,
416
+ titles: { ...e.value.userOptions.buttonTitles },
417
+ chartElement: T.value,
418
+ position: e.value.userOptions.position,
419
+ hasAnnotator: e.value.userOptions.buttons.annotator,
420
+ isAnnotation: j.value,
421
+ callbacks: e.value.userOptions.callbacks,
422
+ printScale: e.value.userOptions.print.scale,
423
+ onToggleFullscreen: Ie,
424
+ onGeneratePdf: s($e),
425
+ onGenerateCsv: Fe,
426
+ onGenerateImage: s(Te),
427
+ onToggleTable: Oe,
428
+ onToggleTooltip: Se,
429
+ onToggleAnnotator: te,
430
+ style: O({
431
+ visibility: s(me) ? s(J) ? "visible" : "hidden" : "visible"
432
+ })
433
+ }, Ne({ _: 2 }, [
434
+ t.$slots.menuIcon ? {
435
+ name: "menuIcon",
436
+ fn: g(({ isOpen: l, color: o }) => [
437
+ h(t.$slots, "menuIcon", D(M({ isOpen: l, color: o })), void 0, !0)
438
+ ]),
439
+ key: "0"
440
+ } : void 0,
441
+ t.$slots.optionTooltip ? {
442
+ name: "optionTooltip",
443
+ fn: g(() => [
444
+ h(t.$slots, "optionTooltip", {}, void 0, !0)
445
+ ]),
446
+ key: "1"
447
+ } : void 0,
448
+ t.$slots.optionPdf ? {
449
+ name: "optionPdf",
450
+ fn: g(() => [
451
+ h(t.$slots, "optionPdf", {}, void 0, !0)
452
+ ]),
453
+ key: "2"
454
+ } : void 0,
455
+ t.$slots.optionCsv ? {
456
+ name: "optionCsv",
457
+ fn: g(() => [
458
+ h(t.$slots, "optionCsv", {}, void 0, !0)
459
+ ]),
460
+ key: "3"
461
+ } : void 0,
462
+ t.$slots.optionImg ? {
463
+ name: "optionImg",
464
+ fn: g(() => [
465
+ h(t.$slots, "optionImg", {}, void 0, !0)
466
+ ]),
467
+ key: "4"
468
+ } : void 0,
469
+ t.$slots.optionTable ? {
470
+ name: "optionTable",
471
+ fn: g(() => [
472
+ h(t.$slots, "optionTable", {}, void 0, !0)
473
+ ]),
474
+ key: "5"
475
+ } : void 0,
476
+ t.$slots.optionFullscreen ? {
477
+ name: "optionFullscreen",
478
+ fn: g(({ toggleFullscreen: l, isFullscreen: o }) => [
479
+ h(t.$slots, "optionFullscreen", D(M({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
480
+ ]),
481
+ key: "6"
482
+ } : void 0,
483
+ t.$slots.optionAnnotator ? {
484
+ name: "optionAnnotator",
485
+ fn: g(({ toggleAnnotator: l, isAnnotator: o }) => [
486
+ h(t.$slots, "optionAnnotator", D(M({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
487
+ ]),
488
+ key: "7"
489
+ } : void 0
490
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
491
+ (i(), d("svg", {
492
+ ref_key: "svgRef",
493
+ ref: be,
494
+ xmlns: s(Ct),
495
+ class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: q.value || s(I) }),
496
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
497
+ style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
498
+ }, [
499
+ ae(s(Ge)),
500
+ t.$slots["chart-background"] ? (i(), d("foreignObject", {
501
+ key: 0,
502
+ x: 0,
503
+ y: 0,
504
+ width: n.value.width <= 0 ? 10 : n.value.width,
505
+ height: n.value.height <= 0 ? 10 : n.value.height,
506
+ style: {
507
+ pointerEvents: "none"
508
+ }
509
+ }, [
510
+ h(t.$slots, "chart-background", {}, void 0, !0)
511
+ ], 8, Wt)) : b("", !0),
512
+ A("defs", null, [
513
+ (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("radialGradient", {
514
+ cx: "50%",
515
+ cy: "30%",
516
+ r: "50%",
517
+ fx: "50%",
518
+ fy: "50%",
519
+ id: `gradient_${C.value}_${o}`
520
+ }, [
521
+ A("stop", {
522
+ offset: "0%",
523
+ "stop-color": s($t)(s(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
524
+ }, null, 8, Ht),
525
+ A("stop", {
526
+ offset: "100%",
527
+ "stop-color": l.color
528
+ }, null, 8, jt)
529
+ ], 8, Gt))), 256))
530
+ ]),
531
+ t.$slots.pattern ? (i(), d("g", Xt, [
532
+ (i(!0), d(oe, null, se(p.value, (l) => (i(), d("defs", null, [
533
+ h(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` }), void 0, !0)
534
+ ]))), 256))
535
+ ])) : b("", !0),
536
+ (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("g", null, [
537
+ A("circle", {
538
+ class: B({
539
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
540
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
541
+ "vue-ui-rings-opacity": $.value !== null && $.value !== o
542
+ }),
543
+ style: O(`animation-delay:${o * 100}ms`),
544
+ stroke: e.value.style.chart.layout.rings.stroke,
545
+ cx: n.value.width / 2,
546
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
547
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
548
+ fill: e.value.style.chart.layout.rings.gradient.underlayerColor
549
+ }, null, 14, Yt),
550
+ A("circle", {
551
+ class: B({
552
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
553
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
554
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
555
+ "vue-ui-rings-blur": $.value !== null && $.value !== o
556
+ }),
557
+ style: O(`animation-delay:${o * 100}ms`),
558
+ stroke: e.value.style.chart.layout.rings.stroke,
559
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
560
+ cx: n.value.width / 2,
561
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
562
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
563
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${C.value}_${o})` : l.color
564
+ }, null, 14, qt),
565
+ t.$slots.pattern ? (i(), d("circle", {
566
+ key: 0,
567
+ class: B({
568
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
569
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
570
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
571
+ "vue-ui-rings-blur": $.value !== null && $.value !== o
572
+ }),
573
+ style: O(`animation-delay:${o * 100}ms`),
574
+ stroke: e.value.style.chart.layout.rings.stroke,
575
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
576
+ cx: n.value.width / 2,
577
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
578
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
579
+ fill: `url(#pattern_${C.value}_${l.absoluteIndex})`
580
+ }, null, 14, Jt)) : b("", !0),
581
+ A("circle", {
582
+ stroke: "none",
583
+ cx: n.value.width / 2,
584
+ cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
585
+ r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
586
+ fill: "transparent",
587
+ onMouseenter: (u) => st(l, o),
588
+ onMouseleave: (u) => ot(l, o),
589
+ onClick: (u) => at(l, o)
590
+ }, null, 40, Kt)
591
+ ]))), 256)),
592
+ h(t.$slots, "svg", { svg: n.value }, void 0, !0)
593
+ ], 14, Ut)),
594
+ t.$slots.watermark ? (i(), d("div", Qt, [
595
+ h(t.$slots, "watermark", D(M({ isPrinting: s(we) || s(Ce) })), void 0, !0)
596
+ ])) : b("", !0),
597
+ A("div", {
598
+ ref_key: "chartLegend",
599
+ ref: ve
600
+ }, [
601
+ e.value.style.chart.legend.show ? (i(), S(Rt, {
602
+ key: `legend_${ge.value}`,
603
+ legendSet: Ae.value,
604
+ config: tt.value,
605
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
606
+ }, Ne({
607
+ item: g(({ legend: l, index: o }) => [
608
+ s(I) ? b("", !0) : (i(), d("div", {
609
+ key: 0,
610
+ onClick: (u) => Z(l.uid),
611
+ style: O(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
612
+ }, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(De)(
613
+ e.value.style.chart.layout.labels.dataLabels.formatter,
614
+ l.value,
615
+ s(N)({
616
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
617
+ v: l.value,
618
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
619
+ r: e.value.style.chart.legend.roundingValue
620
+ }),
621
+ { datapoint: l, seriesIndex: o }
622
+ ) : "") + " " + E(e.value.style.chart.legend.showPercentage ? y.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / w.value) ? "-" : s(N)({
623
+ v: l.value / w.value * 100,
624
+ s: "%",
625
+ r: e.value.style.chart.legend.roundingPercentage
626
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Zt))
627
+ ]),
628
+ _: 2
629
+ }, [
630
+ t.$slots.pattern ? {
631
+ name: "legend-pattern",
632
+ fn: g(({ legend: l, index: o }) => [
633
+ ae(Mt, {
634
+ shape: l.shape,
635
+ radius: 30,
636
+ stroke: "none",
637
+ plot: { x: 30, y: 30 },
638
+ fill: `url(#pattern_${C.value}_${o})`
639
+ }, null, 8, ["shape", "fill"])
640
+ ]),
641
+ key: "0"
642
+ } : void 0
643
+ ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
644
+ key: 1,
645
+ legend: Ae.value
646
+ }, void 0, !0)
647
+ ], 512),
648
+ t.$slots.source ? (i(), d("div", {
649
+ key: 5,
650
+ ref_key: "source",
651
+ ref: ce,
652
+ dir: "auto"
653
+ }, [
654
+ h(t.$slots, "source", {}, void 0, !0)
655
+ ], 512)) : b("", !0),
656
+ ae(s(je), {
657
+ show: k.value.showTooltip && U.value && y.value.length < m.dataset.length,
658
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
659
+ color: e.value.style.chart.tooltip.color,
660
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
661
+ borderColor: e.value.style.chart.tooltip.borderColor,
662
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
663
+ fontSize: e.value.style.chart.tooltip.fontSize,
664
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
665
+ position: e.value.style.chart.tooltip.position,
666
+ offsetY: e.value.style.chart.tooltip.offsetY,
667
+ parent: T.value,
668
+ content: Y.value,
669
+ isFullscreen: V.value,
670
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
671
+ smooth: e.value.style.chart.tooltip.smooth,
672
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
673
+ }, {
674
+ "tooltip-before": g(() => [
675
+ h(t.$slots, "tooltip-before", D(M({ ...ee.value })), void 0, !0)
676
+ ]),
677
+ "tooltip-after": g(() => [
678
+ h(t.$slots, "tooltip-after", D(M({ ...ee.value })), void 0, !0)
679
+ ]),
680
+ _: 3
681
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
682
+ ue.value ? (i(), S(s(Ue), {
683
+ key: 6,
684
+ hideDetails: "",
685
+ config: {
686
+ open: k.value.showTable,
687
+ maxHeight: 1e4,
688
+ body: {
689
+ backgroundColor: e.value.style.chart.backgroundColor,
690
+ color: e.value.style.chart.color
691
+ },
692
+ head: {
693
+ backgroundColor: e.value.style.chart.backgroundColor,
694
+ color: e.value.style.chart.color
695
+ }
696
+ }
697
+ }, {
698
+ content: g(() => [
699
+ (i(), S(s(We), {
700
+ key: `table_${pe.value}`,
701
+ colNames: H.value.colNames,
702
+ head: H.value.head,
703
+ body: H.value.body,
704
+ config: H.value.config,
705
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
706
+ onClose: a[1] || (a[1] = (l) => k.value.showTable = !1)
707
+ }, {
708
+ th: g(({ th: l }) => [
709
+ A("div", {
710
+ innerHTML: l,
711
+ style: { display: "flex", "align-items": "center" }
712
+ }, null, 8, el)
713
+ ]),
714
+ td: g(({ td: l }) => [
715
+ ht(E(l.name || l), 1)
716
+ ]),
717
+ _: 1
718
+ }, 8, ["colNames", "head", "body", "config", "title"]))
719
+ ]),
720
+ _: 1
721
+ }, 8, ["config"])) : b("", !0),
722
+ s(I) ? (i(), S(Nt, { key: 7 })) : b("", !0)
723
+ ], 46, Et));
724
+ }
725
+ }, gl = /* @__PURE__ */ Bt(tl, [["__scopeId", "data-v-96435534"]]);
726
+ export {
727
+ gl as default
728
+ };