vue-data-ui 2.3.3 → 2.3.5

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 (154) hide show
  1. package/README.md +19 -15
  2. package/dist/Arrow-BSOdhAJO.cjs +1 -0
  3. package/dist/Arrow-BjDVSrfA.js +101 -0
  4. package/dist/BaseIcon-BoKtpbrI.cjs +1 -0
  5. package/dist/BaseIcon-vmmfWlyR.js +174 -0
  6. package/dist/DataTable-CaB7GIwQ.js +127 -0
  7. package/dist/DataTable-ssrNbONo.cjs +1 -0
  8. package/dist/Legend-DHpoRTAE.js +62 -0
  9. package/dist/Legend-Dl5IYoxK.cjs +1 -0
  10. package/dist/Shape-CQT4S7N-.js +107 -0
  11. package/dist/Shape-CaF4pvOn.cjs +1 -0
  12. package/dist/Slicer-Bdb1BlrC.js +156 -0
  13. package/dist/Slicer-QC8nTm24.cjs +1 -0
  14. package/dist/Title-BNPZwnkp.js +46 -0
  15. package/dist/Title-Cj_xubjI.cjs +1 -0
  16. package/dist/Tooltip-CdJ5hegk.cjs +1 -0
  17. package/dist/Tooltip-ZnJAz6dl.js +94 -0
  18. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  19. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  20. package/dist/documentation/installation.md +14 -13
  21. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  22. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  23. package/dist/index-BMCvLyab.js +10369 -0
  24. package/dist/index-BkomIE9L.cjs +4 -0
  25. package/dist/{index.es-ypwniJN8.js → index.es-YufTdp0y.js} +1 -1
  26. package/dist/{index.es-Dnua3tHc.cjs → index.es-uyeSCnWE.cjs} +1 -1
  27. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  28. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  29. package/dist/pdf-97UbtKC2.js +44 -0
  30. package/dist/pdf-Cz3729tZ.cjs +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +105 -5
  33. package/dist/types/vue-data-ui.d.ts +105 -5
  34. package/dist/useNestedProp-BMxXyPbW.cjs +1 -0
  35. package/dist/useNestedProp-CkP8xhG_.js +13 -0
  36. package/dist/usePrinter-BuuBz5JR.js +513 -0
  37. package/dist/usePrinter-r6uHYEcR.cjs +1 -0
  38. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  39. package/dist/useResponsive-NZB-WLRF.js +187 -0
  40. package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
  41. package/dist/vue-data-ui-DxeO0iaC.js +254 -0
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +61 -59
  44. package/dist/vue-ui-3d-bar-32wM0tiX.js +1085 -0
  45. package/dist/vue-ui-3d-bar-CgB0fLQT.cjs +19 -0
  46. package/dist/vue-ui-accordion-CLlVxx3Q.js +77 -0
  47. package/dist/vue-ui-accordion-SXsobrUt.cjs +1 -0
  48. package/dist/vue-ui-age-pyramid-D_CY99xF.js +596 -0
  49. package/dist/vue-ui-age-pyramid-DqiwcOIr.cjs +1 -0
  50. package/dist/vue-ui-annotator-DvP-IxDm.js +2177 -0
  51. package/dist/vue-ui-annotator-mntqd3q_.cjs +371 -0
  52. package/dist/vue-ui-candlestick-C-5u3i-1.js +657 -0
  53. package/dist/vue-ui-candlestick-C_TvUQvH.cjs +2 -0
  54. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
  55. package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
  56. package/dist/vue-ui-chestnut-DhWlw2MD.cjs +6 -0
  57. package/dist/vue-ui-chestnut-DylSfYMB.js +1051 -0
  58. package/dist/vue-ui-cursor-B04HJQVl.cjs +1 -0
  59. package/dist/vue-ui-cursor-DTYEMgbU.js +229 -0
  60. package/dist/vue-ui-dashboard-Bd0-cmSZ.js +232 -0
  61. package/dist/vue-ui-dashboard-DFIYwP1s.cjs +1 -0
  62. package/dist/vue-ui-digits-CW5qNMIk.js +153 -0
  63. package/dist/vue-ui-digits-Ced5mBJZ.cjs +1 -0
  64. package/dist/vue-ui-donut-DIhhgvWp.cjs +1 -0
  65. package/dist/vue-ui-donut-EeVmrVJs.js +743 -0
  66. package/dist/vue-ui-donut-evolution-BN08Y2hy.js +799 -0
  67. package/dist/vue-ui-donut-evolution-Ct6KAzs-.cjs +1 -0
  68. package/dist/vue-ui-dumbbell-BMlxS1Nq.js +624 -0
  69. package/dist/vue-ui-dumbbell-pextarqH.cjs +9 -0
  70. package/dist/vue-ui-flow-BXVsbmyb.cjs +1 -0
  71. package/dist/vue-ui-flow-CHmkgfyb.js +454 -0
  72. package/dist/vue-ui-galaxy-D4xyd-J1.cjs +1 -0
  73. package/dist/vue-ui-galaxy-kiVOZOBz.js +485 -0
  74. package/dist/vue-ui-gauge-BcO-z97J.js +466 -0
  75. package/dist/vue-ui-gauge-DPFBsbFj.cjs +1 -0
  76. package/dist/vue-ui-heatmap-DBOKYaJz.cjs +1 -0
  77. package/dist/vue-ui-heatmap-DD-Bzddj.js +598 -0
  78. package/dist/vue-ui-kpi-BEgf5yDv.cjs +1 -0
  79. package/dist/vue-ui-kpi-BS0o7zb9.js +54 -0
  80. package/dist/vue-ui-mini-loader-Bm5EJxtG.cjs +1 -0
  81. package/dist/vue-ui-mini-loader-DJEvG6ju.js +131 -0
  82. package/dist/vue-ui-molecule-DdwnFEBJ.js +750 -0
  83. package/dist/vue-ui-molecule-DzUqcaxd.cjs +1 -0
  84. package/dist/vue-ui-mood-radar-B9Gczs_Z.js +548 -0
  85. package/dist/vue-ui-mood-radar-DbB7m4Ku.cjs +1 -0
  86. package/dist/vue-ui-nested-donuts-BSINf8hd.cjs +16 -0
  87. package/dist/vue-ui-nested-donuts-CVQ1CaXo.js +771 -0
  88. package/dist/vue-ui-onion-D3-6Tv4u.cjs +1 -0
  89. package/dist/vue-ui-onion-Ut75t7hB.js +554 -0
  90. package/dist/vue-ui-parallel-coordinate-plot-Bjo09ZTX.js +651 -0
  91. package/dist/vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs +8 -0
  92. package/dist/vue-ui-quadrant-CzCvejGn.cjs +1 -0
  93. package/dist/vue-ui-quadrant-Du9PKvlO.js +1178 -0
  94. package/dist/vue-ui-quick-chart-BsxsPbjz.cjs +13 -0
  95. package/dist/vue-ui-quick-chart-u0cPmD3q.js +1310 -0
  96. package/dist/vue-ui-radar-CBrpuE5r.js +614 -0
  97. package/dist/vue-ui-radar-DIpCrj1h.cjs +1 -0
  98. package/dist/vue-ui-rating-CaeGGlCw.js +271 -0
  99. package/dist/vue-ui-rating-D8fJC8Yt.cjs +1 -0
  100. package/dist/vue-ui-relation-circle-5DNf880s.js +304 -0
  101. package/dist/vue-ui-relation-circle-Ky3nPk6S.cjs +1 -0
  102. package/dist/vue-ui-rings-CffZ4T2S.cjs +1 -0
  103. package/dist/vue-ui-rings-IE3IdNRF.js +510 -0
  104. package/dist/vue-ui-scatter-C4GCZm0V.js +874 -0
  105. package/dist/vue-ui-scatter-TsX5dW9l.cjs +1 -0
  106. package/dist/vue-ui-screenshot-Bl3oooKI.js +160 -0
  107. package/dist/vue-ui-screenshot-Bzpg6yof.cjs +3 -0
  108. package/dist/vue-ui-skeleton-BisWX1sO.js +2064 -0
  109. package/dist/vue-ui-skeleton-JmGp11-u.cjs +41 -0
  110. package/dist/vue-ui-smiley-BhSrt9f-.cjs +2 -0
  111. package/dist/vue-ui-smiley-Sth2pqG1.js +763 -0
  112. package/dist/vue-ui-spark-trend-C8NSz4l8.cjs +1 -0
  113. package/dist/vue-ui-spark-trend-DAqO0TW2.js +246 -0
  114. package/dist/vue-ui-sparkbar-B0zX7NU7.js +242 -0
  115. package/dist/vue-ui-sparkbar-hL1Q6ObK.cjs +1 -0
  116. package/dist/vue-ui-sparkgauge-CWR8zJnU.js +157 -0
  117. package/dist/vue-ui-sparkgauge-tbVqaLCK.cjs +1 -0
  118. package/dist/vue-ui-sparkhistogram-Dv-lml4g.cjs +1 -0
  119. package/dist/vue-ui-sparkhistogram-DxqCtDpw.js +244 -0
  120. package/dist/vue-ui-sparkline-B6pvaBY_.cjs +1 -0
  121. package/dist/vue-ui-sparkline-BpL1jn7F.js +333 -0
  122. package/dist/vue-ui-sparkstackbar-BzbuBNIV.js +244 -0
  123. package/dist/vue-ui-sparkstackbar-CQ2TEi4p.cjs +1 -0
  124. package/dist/vue-ui-strip-plot-DCC6F4VM.cjs +1 -0
  125. package/dist/vue-ui-strip-plot-DCcbD6UE.js +618 -0
  126. package/dist/vue-ui-table-CFqIWfxl.js +1430 -0
  127. package/dist/vue-ui-table-CseaFWgX.cjs +14 -0
  128. package/dist/vue-ui-table-heatmap-Bwut-V1D.cjs +1 -0
  129. package/dist/vue-ui-table-heatmap-Bz8KYDxr.js +237 -0
  130. package/dist/vue-ui-table-sparkline-CJBU3y8-.cjs +1 -0
  131. package/dist/vue-ui-table-sparkline-z29ND2lq.js +420 -0
  132. package/dist/vue-ui-thermometer-BNAITzJa.js +385 -0
  133. package/dist/vue-ui-thermometer-DM2IKhqN.cjs +1 -0
  134. package/dist/vue-ui-timer-DLfXuW8T.cjs +64 -0
  135. package/dist/vue-ui-timer-DV6lQVHU.js +453 -0
  136. package/dist/vue-ui-tiremarks-B1bd1jPf.cjs +1 -0
  137. package/dist/vue-ui-tiremarks-WyQPg7yo.js +249 -0
  138. package/dist/vue-ui-treemap-BZGmoDHb.cjs +1 -0
  139. package/dist/vue-ui-treemap-DKmBhzV-.js +722 -0
  140. package/dist/vue-ui-vertical-bar-Bi-0rRN3.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-C-ySfrhJ.js +737 -0
  142. package/dist/vue-ui-waffle-CGRWu-da.js +638 -0
  143. package/dist/vue-ui-waffle-VLYkR-YZ.cjs +1 -0
  144. package/dist/vue-ui-wheel-D2q5vy5V.cjs +1 -0
  145. package/dist/vue-ui-wheel-Pj9OPk9f.js +227 -0
  146. package/dist/vue-ui-word-cloud-8Vr-jo1p.js +346 -0
  147. package/dist/vue-ui-word-cloud-Ba4BjatU.cjs +1 -0
  148. package/dist/vue-ui-xy-C4QW5Lfl.cjs +3 -0
  149. package/dist/vue-ui-xy-canvas-Be-Da_0x.cjs +9 -0
  150. package/dist/vue-ui-xy-canvas-DnLWrf0e.js +1006 -0
  151. package/dist/vue-ui-xy-qToggEfh.js +2064 -0
  152. package/package.json +1 -1
  153. package/dist/index-BcMihqI4.cjs +0 -843
  154. package/dist/index-C7FeCQ7K.js +0 -57303
@@ -0,0 +1,420 @@
1
+ import { useCssVars as se, ref as i, computed as p, onMounted as ue, openBlock as u, createElementBlock as d, normalizeClass as N, createElementVNode as v, normalizeStyle as r, toDisplayString as b, createCommentVNode as m, Fragment as O, renderList as W, createBlock as T, unref as k, createSlots as re, withCtx as A, renderSlot as I, normalizeProps as ie, guardReactiveProps as de, nextTick as ve } from "vue";
2
+ import { u as ce, c as be, t as fe, a as pe, p as w, b as me, o as ge, e as q, g as he, d as ye, Q as _e, n as ke, q as xe } from "./index-BMCvLyab.js";
3
+ import { u as X } from "./useNestedProp-CkP8xhG_.js";
4
+ import Ce from "./vue-ui-sparkline-BpL1jn7F.js";
5
+ import Se from "./BaseIcon-vmmfWlyR.js";
6
+ import { u as Ae, U as Ie } from "./usePrinter-BuuBz5JR.js";
7
+ import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const $e = ["id"], Fe = { style: { "z-index": "1", "padding-right": "24px" } }, Pe = ["onClick"], ze = { style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center" } }, Ne = ["data-cell"], Oe = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "6px" } }, We = ["data-cell", "onPointerenter"], Te = ["data-cell"], De = ["data-cell"], Me = ["data-cell"], Ve = ["data-cell"], Ee = {
9
+ __name: "vue-ui-table-sparkline",
10
+ props: {
11
+ config: {
12
+ type: Object,
13
+ default() {
14
+ return {};
15
+ }
16
+ },
17
+ dataset: {
18
+ type: Array,
19
+ default() {
20
+ return [];
21
+ }
22
+ }
23
+ },
24
+ setup(Q, { expose: J }) {
25
+ const h = Q;
26
+ se((t) => ({
27
+ "2af6bd52": t.tdo
28
+ }));
29
+ const { vue_ui_table_sparkline: K } = ce(), $ = i(be()), D = i(0), M = i(0), e = p(() => {
30
+ const t = X({
31
+ userConfig: h.config,
32
+ defaultConfig: K
33
+ });
34
+ return t.theme ? {
35
+ ...X({
36
+ userConfig: fe.vue_ui_table_sparkline[t.theme] || h.config,
37
+ defaultConfig: t
38
+ }),
39
+ customPalette: pe[t.theme] || w
40
+ } : t;
41
+ }), { isPrinting: V, isImaging: E, generatePdf: G, generateImage: L } = Ae({
42
+ elementId: `table_${$.value}`,
43
+ fileName: e.value.title.text || "vue-ui-table-sparkline"
44
+ }), Y = p(() => me(e.value.customPalette)), x = i(null), B = i(!1), Z = p(() => e.value.responsiveBreakpoint);
45
+ ue(() => {
46
+ ge(h.dataset) && q({
47
+ componentName: "VueUiTableSparkline",
48
+ type: "dataset"
49
+ });
50
+ const t = new ResizeObserver((n) => {
51
+ n.forEach((l) => {
52
+ B.value = l.contentRect.width < Z.value;
53
+ });
54
+ });
55
+ x.value && t.observe(x.value);
56
+ });
57
+ const R = p(() => (h.dataset.forEach((t, n) => {
58
+ he({
59
+ datasetObject: t,
60
+ requiredAttributes: ["name", "values"]
61
+ }).forEach((l) => {
62
+ q({
63
+ componentName: "VueUiTableSparkline",
64
+ type: "datasetSerieAttribute",
65
+ property: l,
66
+ index: n
67
+ });
68
+ });
69
+ }), h.dataset.map((t, n) => {
70
+ const l = (t.values || []).map((o) => isNaN(o) ? 0 : o ?? 0), s = l.reduce((o, a) => o + a, 0);
71
+ return {
72
+ ...t,
73
+ values: t.values || [],
74
+ color: ye(t.color) || Y.value[n] || w[n] || w[n % w.length],
75
+ sum: s,
76
+ average: s / l.length,
77
+ median: _e(l),
78
+ sparklineDataset: l.map((o, a) => ({
79
+ period: e.value.colNames[a] || `col ${a}`,
80
+ value: o || 0
81
+ }))
82
+ };
83
+ })));
84
+ function j(t) {
85
+ const l = (t[0].values || []).map(
86
+ (o, a) => t.map((c) => c.values[a] || [])
87
+ ).map(
88
+ (o) => o.map((a, c) => [a, c]).sort((a, c) => c[0] - a[0]).map((a) => a[1])
89
+ );
90
+ return t.map((o, a) => ({
91
+ ...o,
92
+ values: o.values || [],
93
+ orders: l[a]
94
+ }));
95
+ }
96
+ const y = p(() => j(R.value)), C = i(y.value), ee = p(() => Math.max(...C.value.map((t) => (t.values || []).length))), S = i(void 0), F = i(!1), P = i(void 0), z = i(-1);
97
+ function te() {
98
+ F.value = !1, P.value = void 0, z.value = -1, C.value = y.value;
99
+ }
100
+ function le(t) {
101
+ F.value = !0, P.value = t;
102
+ const n = y.value.map((a) => a.values[t] || []), l = S.value === t ? 1 : -1;
103
+ z.value = l, t === S.value ? S.value = void 0 : S.value = t;
104
+ const o = n.map((a, c) => [c, a]).sort((a, c) => l * (c[1] - a[1])).map((a) => a[0]).map((a) => y.value[a]);
105
+ C.value = o, M.value += 1;
106
+ }
107
+ const ae = p(() => Math.max(...h.dataset.map((t) => (t.values || []).length))), _ = p(() => {
108
+ let t = e.value.colNames;
109
+ if (!t.length)
110
+ for (let l = 0; l < ae.value; l += 1)
111
+ t.push(`col ${l + 1}`);
112
+ e.value.showTotal && (t = [...t, e.value.translations.total]);
113
+ let n;
114
+ return e.value.showAverage && e.value.showMedian ? n = [
115
+ ...t,
116
+ e.value.translations.average,
117
+ e.value.translations.median
118
+ ] : e.value.showAverage && !e.value.showMedian ? n = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? n = [...t, e.value.translations.median] : n = t, e.value.showSparklines ? [...n, e.value.translations.chart] : n;
119
+ }), f = i(void 0), g = i(void 0);
120
+ function oe({ dataIndex: t, serieIndex: n }) {
121
+ f.value = t, g.value = n;
122
+ }
123
+ const U = i(!1);
124
+ function ne(t) {
125
+ U.value = t, D.value += 1;
126
+ }
127
+ function H() {
128
+ ve(() => {
129
+ const t = [e.value.translations.serie].concat(_.value), n = R.value.map((o, a) => [
130
+ [o.name],
131
+ o.values,
132
+ [o.sum],
133
+ [o.average],
134
+ [o.median]
135
+ ]), l = [t].concat(n), s = ke(l);
136
+ xe({
137
+ csvContent: s,
138
+ title: e.value.title.text || "vue-ui-table-sparkline"
139
+ });
140
+ });
141
+ }
142
+ return J({
143
+ generatePdf: G,
144
+ generateImage: L,
145
+ generateCsv: H,
146
+ restoreOrder: te
147
+ }), (t, n) => (u(), d("div", {
148
+ ref_key: "tableContainer",
149
+ ref: x,
150
+ class: N({ "vue-ui-responsive": B.value }),
151
+ style: { overflow: "hidden" },
152
+ id: `table_${$.value}`
153
+ }, [
154
+ v("div", {
155
+ style: { overflow: "auto" },
156
+ onPointerleave: n[0] || (n[0] = (l) => {
157
+ g.value = void 0, f.value = void 0;
158
+ })
159
+ }, [
160
+ v("table", {
161
+ class: "vue-ui-data-table",
162
+ style: r({ fontFamily: e.value.fontFamily, position: "relative" })
163
+ }, [
164
+ e.value.title.text ? (u(), d("caption", {
165
+ key: 0,
166
+ style: r({ backgroundColor: e.value.title.backgroundColor })
167
+ }, [
168
+ v("div", {
169
+ style: r({
170
+ fontSize: `${e.value.title.fontSize}px`,
171
+ fontWeight: e.value.title.bold ? "bold" : "normal",
172
+ color: e.value.title.color,
173
+ textAlign: e.value.title.textAlign
174
+ })
175
+ }, b(e.value.title.text), 5),
176
+ e.value.title.subtitle.text ? (u(), d("div", {
177
+ key: 0,
178
+ style: r({
179
+ fontSize: `${e.value.title.subtitle.fontSize}px`,
180
+ fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
181
+ color: e.value.title.subtitle.color,
182
+ textAlign: e.value.title.textAlign
183
+ })
184
+ }, b(e.value.title.subtitle.text), 5)) : m("", !0)
185
+ ], 4)) : m("", !0),
186
+ v("thead", Fe, [
187
+ v("tr", {
188
+ role: "row",
189
+ class: "vue-ui-data-table__thead-row",
190
+ style: r({
191
+ backgroundColor: e.value.thead.backgroundColor,
192
+ color: e.value.thead.color
193
+ })
194
+ }, [
195
+ v("th", {
196
+ role: "cell",
197
+ style: r({
198
+ backgroundColor: e.value.thead.backgroundColor,
199
+ outline: e.value.thead.outline,
200
+ textAlign: e.value.thead.textAlign,
201
+ fontWeight: e.value.thead.bold ? "bold" : "normal"
202
+ }),
203
+ class: "sticky-col-first"
204
+ }, b(e.value.translations.serie), 5),
205
+ (u(!0), d(O, null, W(_.value, (l, s) => (u(), d("th", {
206
+ role: "cell",
207
+ style: r({
208
+ background: e.value.thead.backgroundColor,
209
+ outline: e.value.thead.outline,
210
+ textAlign: e.value.thead.textAlign,
211
+ fontWeight: e.value.thead.bold ? "bold" : "normal",
212
+ minWidth: s === _.value.length - 1 ? "150px" : "",
213
+ cursor: y.value[0].values[s] !== void 0 ? "pointer" : "default"
214
+ }),
215
+ onClick: () => le(s),
216
+ class: N({ "sticky-col": s === _.value.length - 1 && e.value.showSparklines })
217
+ }, [
218
+ v("div", ze, [
219
+ v("span", null, b(l), 1),
220
+ F.value && s === P.value && y.value[0].values[s] !== void 0 ? (u(), T(Se, {
221
+ key: 0,
222
+ size: 18,
223
+ name: z.value === 1 ? "sort" : "sortReverse",
224
+ stroke: e.value.thead.color
225
+ }, null, 8, ["name", "stroke"])) : m("", !0)
226
+ ]),
227
+ e.value.userOptions.show && s === _.value.length - 1 ? (u(), T(Ie, {
228
+ ref_for: !0,
229
+ ref: "details",
230
+ key: `user_option_${D.value}`,
231
+ backgroundColor: e.value.thead.backgroundColor,
232
+ color: e.value.thead.color,
233
+ isPrinting: k(V),
234
+ isImaging: k(E),
235
+ uid: $.value,
236
+ hasPdf: e.value.userOptions.buttons.pdf,
237
+ hasXls: e.value.userOptions.buttons.csv,
238
+ hasImg: e.value.userOptions.buttons.img,
239
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
240
+ isFullscreen: U.value,
241
+ titles: { ...e.value.userOptions.buttonTitles },
242
+ chartElement: x.value,
243
+ onToggleFullscreen: ne,
244
+ onGeneratePdf: k(G),
245
+ onGenerateImage: k(L),
246
+ onGenerateCsv: H
247
+ }, re({ _: 2 }, [
248
+ t.$slots.optionPdf ? {
249
+ name: "optionPdf",
250
+ fn: A(() => [
251
+ I(t.$slots, "optionPdf", {}, void 0, !0)
252
+ ]),
253
+ key: "0"
254
+ } : void 0,
255
+ t.$slots.optionCsv ? {
256
+ name: "optionCsv",
257
+ fn: A(() => [
258
+ I(t.$slots, "optionCsv", {}, void 0, !0)
259
+ ]),
260
+ key: "1"
261
+ } : void 0,
262
+ t.$slots.optionImg ? {
263
+ name: "optionImg",
264
+ fn: A(() => [
265
+ I(t.$slots, "optionImg", {}, void 0, !0)
266
+ ]),
267
+ key: "2"
268
+ } : void 0,
269
+ t.$slots.optionFullscreen ? {
270
+ name: "optionFullscreen",
271
+ fn: A(({ toggleFullscreen: o, isFullscreen: a }) => [
272
+ I(t.$slots, "optionFullscreen", ie(de({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
273
+ ]),
274
+ key: "3"
275
+ } : void 0
276
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0)
277
+ ], 14, Pe))), 256))
278
+ ], 4)
279
+ ]),
280
+ v("tbody", null, [
281
+ (u(!0), d(O, null, W(C.value, (l, s) => (u(), d("tr", {
282
+ role: "row",
283
+ style: r({
284
+ backgroundColor: e.value.tbody.backgroundColor,
285
+ color: e.value.tbody.color
286
+ }),
287
+ class: N({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 })
288
+ }, [
289
+ v("td", {
290
+ role: "cell",
291
+ style: r({
292
+ backgroundColor: e.value.tbody.backgroundColor,
293
+ outline: e.value.tbody.outline,
294
+ fontSize: `${e.value.tbody.fontSize}px`,
295
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
296
+ textAlign: e.value.tbody.textAlign
297
+ }),
298
+ "data-cell": e.value.translations.serie,
299
+ class: "vue-ui-data-table__tbody__td sticky-col-first"
300
+ }, [
301
+ v("div", Oe, [
302
+ v("span", {
303
+ style: r({ color: l.color })
304
+ }, "⬤", 4),
305
+ v("span", null, b(l.name ?? "-"), 1)
306
+ ])
307
+ ], 12, Ne),
308
+ (u(!0), d(O, null, W(ee.value, (o, a) => (u(), d("td", {
309
+ role: "cell",
310
+ style: r({
311
+ outline: e.value.tbody.outline,
312
+ fontSize: `${e.value.tbody.fontSize}px`,
313
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
314
+ textAlign: e.value.tbody.textAlign,
315
+ backgroundColor: f.value !== void 0 && g.value !== void 0 && a === f.value && g.value === s ? `${l.color}33` : "",
316
+ borderRadius: f.value !== void 0 && g.value !== void 0 && a === f.value && g.value === s ? "3px" : ""
317
+ }),
318
+ "data-cell": _.value[a],
319
+ class: "vue-ui-data-table__tbody__td",
320
+ onPointerenter: (c) => {
321
+ g.value = s, f.value = a;
322
+ }
323
+ }, b([null, void 0].includes(l.values[a]) ? "-" : Number(l.values[a].toFixed(e.value.roundingValues)).toLocaleString()), 45, We))), 256)),
324
+ e.value.showTotal ? (u(), d("td", {
325
+ key: 0,
326
+ role: "cell",
327
+ style: r({
328
+ outline: e.value.tbody.outline,
329
+ fontSize: `${e.value.tbody.fontSize}px`,
330
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
331
+ textAlign: e.value.tbody.textAlign
332
+ }),
333
+ "data-cell": e.value.translations.total,
334
+ class: "vue-ui-data-table__tbody__td"
335
+ }, b(Number(l.sum.toFixed(e.value.roundingTotal)).toLocaleString()), 13, Te)) : m("", !0),
336
+ e.value.showAverage ? (u(), d("td", {
337
+ key: 1,
338
+ role: "cell",
339
+ style: r({
340
+ outline: e.value.tbody.outline,
341
+ fontSize: `${e.value.tbody.fontSize}px`,
342
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
343
+ textAlign: e.value.tbody.textAlign
344
+ }),
345
+ "data-cell": e.value.translations.average,
346
+ class: "vue-ui-data-table__tbody__td"
347
+ }, b(Number(l.average.toFixed(e.value.roundingAverage)).toLocaleString()), 13, De)) : m("", !0),
348
+ e.value.showMedian ? (u(), d("td", {
349
+ key: 2,
350
+ role: "cell",
351
+ style: r({
352
+ outline: e.value.tbody.outline,
353
+ fontSize: `${e.value.tbody.fontSize}px`,
354
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
355
+ textAlign: e.value.tbody.textAlign
356
+ }),
357
+ "data-cell": e.value.translations.median,
358
+ class: "vue-ui-data-table__tbody__td"
359
+ }, b(Number(l.median.toFixed(e.value.roundingMedian)).toLocaleString()), 13, Me)) : m("", !0),
360
+ e.value.showSparklines ? (u(), d("td", {
361
+ key: 3,
362
+ role: "cell",
363
+ "data-cell": e.value.translations.chart,
364
+ style: r({
365
+ outline: e.value.tbody.outline,
366
+ fontSize: `${e.value.tbody.fontSize}px`,
367
+ fontWeight: e.value.tbody.bold ? "bold" : "normal",
368
+ textAlign: e.value.tbody.textAlign
369
+ }),
370
+ class: "vue-ui-data-table__tbody__td sticky-col"
371
+ }, [
372
+ (u(), T(Ce, {
373
+ key: `sparkline_${s}_${M.value}`,
374
+ onHoverIndex: ({ index: o }) => oe({ dataIndex: o, serieIndex: s }),
375
+ dataset: l.sparklineDataset,
376
+ showInfo: !1,
377
+ selectedIndex: f.value,
378
+ config: {
379
+ type: e.value.sparkline.type,
380
+ style: {
381
+ backgroundColor: e.value.tbody.backgroundColor,
382
+ animation: {
383
+ show: e.value.sparkline.animation.show && !k(V) && !k(E),
384
+ animationFrames: e.value.sparkline.animation.animationFrames
385
+ },
386
+ line: {
387
+ color: l.color,
388
+ smooth: e.value.sparkline.smooth,
389
+ strokeWidth: e.value.sparkline.strokeWidth
390
+ },
391
+ bar: {
392
+ color: l.color
393
+ },
394
+ area: {
395
+ color: l.color,
396
+ opacity: e.value.sparkline.showArea ? 16 : 0,
397
+ useGradient: e.value.sparkline.useGradient
398
+ },
399
+ verticalIndicator: {
400
+ color: l.color
401
+ },
402
+ plot: {
403
+ radius: 9,
404
+ stroke: e.value.tbody.backgroundColor,
405
+ strokeWidth: 3
406
+ }
407
+ }
408
+ }
409
+ }, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
410
+ ], 12, Ve)) : m("", !0)
411
+ ], 6))), 256))
412
+ ])
413
+ ], 4)
414
+ ], 32)
415
+ ], 10, $e));
416
+ }
417
+ }, Xe = /* @__PURE__ */ we(Ee, [["__scopeId", "data-v-3af92d54"]]);
418
+ export {
419
+ Xe as default
420
+ };