vue-data-ui 3.0.0-next.8 → 3.0.0

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 (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-BRtNjitS.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable-D36ZRtpU.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-DInM-hku.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-BGr3dQKt.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-BSlAPr_H.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-lPcsweXz.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-CgMUOQnb.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-Cfm5-hMQ.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-BMVHBLq5.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  35. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BtnIwS_E.js} +433 -424
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-C-i2dRnU.js} +107 -105
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-O07lQwRC.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-Hh7nGEjp.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-DWtJoryQ.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-DbrA1G0r.js +0 -746
  107. package/dist/vue-ui-bullet-9IB3mGon.js +0 -513
  108. package/dist/vue-ui-candlestick-CWqPF_zW.js +0 -873
  109. package/dist/vue-ui-chord-Crd3l1b6.js +0 -949
  110. package/dist/vue-ui-circle-pack-CAm2gxBi.js +0 -673
  111. package/dist/vue-ui-donut-evolution-Djp_eBqw.js +0 -903
  112. package/dist/vue-ui-dumbbell-B7GySnYf.js +0 -753
  113. package/dist/vue-ui-flow-XDpZAYWI.js +0 -765
  114. package/dist/vue-ui-galaxy-DBQy21se.js +0 -617
  115. package/dist/vue-ui-gauge-FBZaUrBD.js +0 -738
  116. package/dist/vue-ui-gizmo-CDbPxUzE.js +0 -192
  117. package/dist/vue-ui-heatmap-DsDWxYOS.js +0 -877
  118. package/dist/vue-ui-history-plot-CzO1Z1FH.js +0 -924
  119. package/dist/vue-ui-molecule-Ddd3FgID.js +0 -597
  120. package/dist/vue-ui-mood-radar-24XAq8mg.js +0 -670
  121. package/dist/vue-ui-nested-donuts-DjWASp62.js +0 -1212
  122. package/dist/vue-ui-onion-B9thdF_c.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-DT-GhOaA.js +0 -807
  124. package/dist/vue-ui-quick-chart-D0DukVN6.js +0 -1612
  125. package/dist/vue-ui-radar-DY8y6oRc.js +0 -741
  126. package/dist/vue-ui-relation-circle-8Gd7_fxt.js +0 -542
  127. package/dist/vue-ui-ridgeline-iPtG1McW.js +0 -969
  128. package/dist/vue-ui-rings-BXPo4MMo.js +0 -685
  129. package/dist/vue-ui-scatter-26d0eebx.js +0 -1045
  130. package/dist/vue-ui-spark-trend-Dt3ctzpl.js +0 -291
  131. package/dist/vue-ui-sparkbar-RrxErqrU.js +0 -301
  132. package/dist/vue-ui-sparkgauge-CyNi1b0O.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-DPpZCPuE.js +0 -313
  134. package/dist/vue-ui-sparkline-BMjQ_uYx.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-CjO8pfE-.js +0 -381
  136. package/dist/vue-ui-stackbar-wgyvMlE6.js +0 -1207
  137. package/dist/vue-ui-strip-plot-BF1o8lvY.js +0 -761
  138. package/dist/vue-ui-thermometer-CtuxuYVt.js +0 -495
  139. package/dist/vue-ui-tiremarks-DOwj4ZE-.js +0 -358
  140. package/dist/vue-ui-treemap-C4LtyFug.js +0 -965
  141. package/dist/vue-ui-waffle-D8mzGTeo.js +0 -863
  142. package/dist/vue-ui-wheel-C6uAotal.js +0 -352
  143. package/dist/vue-ui-word-cloud-Bge2211V.js +0 -659
  144. package/dist/vue-ui-xy-UzQacbnA.js +0 -2982
@@ -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-BtNwOUja.js";
3
+ import { t as It, u as Ot } from "./useResponsive-DfdjqQps.js";
4
+ import { u as St } from "./usePrinter-DUNjpQNe.js";
5
+ import { u as Pt, B as Nt } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Me } from "./useNestedProp-f2H3m6Yj.js";
7
+ import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Rt from "./Legend-BUk0WvWJ.js";
10
+ import Dt from "./Title-BGu6gEd2.js";
11
+ import { _ as Mt } from "./Shape-BRzOzubn.js";
12
+ import zt from "./img-DrR839Ot.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-BKUrAowe.js")), We = R(() => import("./DataTable-BSSXpM7w.js")), Ge = R(() => import("./PackageVersion-CJ6Vd7V5.js")), He = R(() => import("./PenAndPaper-D3zudcNI.js")), je = R(() => import("./Tooltip-Bh2zYSoM.js")), Xe = R(() => import("./UserOptions-Ck8fz9f4.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
+ };