vue-data-ui 3.25.5 → 3.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,738 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Lt as r, Pt as i, S as a, X as o, Yt as ee, ht as te, i as ne, m as re, nt as ie, q as ae, w as oe } from "./lib-Dql7cqyA.js";
3
+ import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
4
+ import { t as le } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as ue } from "./usePrinter-DISD7q5m.js";
6
+ import { t as de } from "./useNestedProp-Chvyfpl-.js";
7
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
+ import { t as me } from "./useUserOptionState-DK-_1ddE.js";
10
+ import { t as he } from "./vClickOutside-DUrZWttG.js";
11
+ import { t as ge } from "./vue_ui_table_sparkline-DAbkUrNz.js";
12
+ import { Fragment as s, computed as c, createBlock as _e, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as ve, createVNode as f, defineAsyncComponent as p, mergeProps as m, nextTick as ye, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as be, onMounted as xe, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as Se, toDisplayString as x, unref as S, useCssVars as Ce, useSlots as we, watch as Te, withCtx as C, withDirectives as Ee } from "vue";
13
+ //#region src/components/vue-ui-table-sparkline.vue
14
+ var De = /* @__PURE__ */ e({ default: () => Ve }), Oe = ["id"], ke = { style: {
15
+ "z-index": "1",
16
+ "padding-right": "24px"
17
+ } }, Ae = {
18
+ key: 0,
19
+ style: {
20
+ display: "flex",
21
+ flexDirection: "row",
22
+ alignItems: "center"
23
+ }
24
+ }, je = {
25
+ key: 0,
26
+ style: {
27
+ display: "flex",
28
+ flexDirection: "row",
29
+ alignItems: "center"
30
+ }
31
+ }, Me = ["onClick"], Ne = ["onClick"], Pe = ["data-cell"], Fe = ["data-cell", "onPointerenter"], Ie = ["data-cell"], Le = ["data-cell"], Re = ["data-cell"], ze = ["data-cell"], Be = {
32
+ key: 1,
33
+ ref: "source",
34
+ dir: "auto"
35
+ }, Ve = /*#__PURE__*/ pe({
36
+ __name: "vue-ui-table-sparkline",
37
+ props: {
38
+ config: {
39
+ type: Object,
40
+ default() {
41
+ return {};
42
+ }
43
+ },
44
+ dataset: {
45
+ type: Array,
46
+ default() {
47
+ return [];
48
+ }
49
+ }
50
+ },
51
+ emits: ["copyAlt"],
52
+ setup(e, { expose: pe, emit: De }) {
53
+ Ce((e) => ({ v847ffcd0: e.tdo }));
54
+ let Ve = p(() => import("./vue-ui-sparkline-CSZGBFfI.js").then((e) => e.n)), w = p(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), He = p(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), { vue_ui_table_sparkline: Ue } = le(), { isThemeValid: We, warnInvalidTheme: Ge } = fe(), T = e, Ke = De, qe = v(ae()), Je = v(0), Ye = v(0), Xe = v(null), Ze = we(), Qe = v(!1), E = c({
55
+ get: () => tt(),
56
+ set: (e) => e
57
+ }), D = c(() => E.value.userOptions), O = c(() => E.value.sparkline), k = c(() => E.value.thead), A = c(() => E.value.tbody), j = c(() => E.value.title);
58
+ xe(() => {
59
+ Ze["chart-background"] && E.value.debug && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
60
+ }), se({
61
+ config: () => E.value,
62
+ dataset: () => T.dataset,
63
+ component: "VueUiTableSparkline",
64
+ rules: [
65
+ ce.emptyArray,
66
+ {
67
+ test: (e) => e.some((e) => e?.values && e.values.length > 500),
68
+ message: [
69
+ "👀 One or more series have > 500 datapoints. Consider if you really need this level of detail.",
70
+ "",
71
+ "▶️ Use larger time scales, or aggregated values"
72
+ ]
73
+ },
74
+ {
75
+ test: (e) => e.some((e) => e?.values && e.values.length > 1095),
76
+ message: [
77
+ "👀 One or more series have > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.",
78
+ "",
79
+ "▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted."
80
+ ]
81
+ }
82
+ ]
83
+ });
84
+ let M = c(() => E.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: $e, keepUserOptionState: et } = me({ config: E.value });
85
+ function tt() {
86
+ let e = de({
87
+ userConfig: T.config,
88
+ defaultConfig: Ue
89
+ }), t = e.theme;
90
+ if (!t) return e;
91
+ if (!We.value(e)) return Ge(e), e;
92
+ let n = de({
93
+ userConfig: ge[t] || T.config,
94
+ defaultConfig: e
95
+ }), i = de({
96
+ userConfig: T.config,
97
+ defaultConfig: n
98
+ });
99
+ return {
100
+ ...i,
101
+ customPalette: i.customPalette.length ? i.customPalette : ee[t] || r
102
+ };
103
+ }
104
+ Te(() => T.config, (e) => {
105
+ E.value = tt(), N.value = !E.value.userOptions.showOnChartHover, ct(), Ye.value += 1;
106
+ }, { deep: !0 }), Te(() => T.dataset, (e) => {
107
+ W.value = U.value, Ye.value += 1;
108
+ }, { deep: !0 });
109
+ let { isPrinting: nt, isImaging: rt, generatePdf: it, generateImage: at } = ue({
110
+ elementId: `table_${qe.value}`,
111
+ fileName: j.value.text || "vue-ui-table-sparkline",
112
+ options: E.value.userOptions.print
113
+ }), ot = c(() => oe(E.value.customPalette)), P = v(null), F = v(!1), st = c(() => E.value.responsiveBreakpoint);
114
+ xe(() => {
115
+ ct();
116
+ });
117
+ let I = v(E.value.colNames), L = Se(null);
118
+ function ct() {
119
+ i(T.dataset) && ie({
120
+ componentName: "VueUiTableSparkline",
121
+ type: "dataset"
122
+ }), L.value && L.value.disconnect(), L.value = new ResizeObserver((e) => {
123
+ e.forEach((e) => {
124
+ F.value = e.contentRect.width < st.value;
125
+ });
126
+ }), P.value && L.value.observe(P.value), I.value = [];
127
+ for (let e = 0; e < mt.value; e += 1) I.value.push(E.value.colNames[e] || `col ${e}`);
128
+ }
129
+ be(() => {
130
+ L.value && L.value.disconnect();
131
+ });
132
+ function R(e) {
133
+ if ([null, void 0].includes(e)) return null;
134
+ let t = Number(e);
135
+ return Number.isFinite(t) ? t : null;
136
+ }
137
+ function z(e) {
138
+ return typeof e == "number" && Number.isFinite(e);
139
+ }
140
+ function lt(e = []) {
141
+ return e.map(R).filter(z);
142
+ }
143
+ function B(e, t, n) {
144
+ let r = R(e), i = R(t), a = z(r), o = z(i);
145
+ return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
146
+ }
147
+ function V(e, t, n = {}) {
148
+ let r = R(e);
149
+ return r === null ? "-" : ne(E.value.formatter, r, o({
150
+ p: E.value.prefix,
151
+ v: r,
152
+ s: E.value.suffix,
153
+ r: t
154
+ }), n);
155
+ }
156
+ let H = c(() => (T.dataset.forEach((e, t) => {
157
+ te({
158
+ datasetObject: e,
159
+ requiredAttributes: ["name", "values"]
160
+ }).forEach((e) => {
161
+ ie({
162
+ componentName: "VueUiTableSparkline",
163
+ type: "datasetSerieAttribute",
164
+ property: e,
165
+ index: t
166
+ });
167
+ });
168
+ }), T.dataset.map((e, t) => {
169
+ let n = e.values || [], i = lt(n), o = i.length ? i.reduce((e, t) => e + t, 0) : null, ee = i.length ? o / i.length : null, te = i.length ? re(i) : null;
170
+ return {
171
+ ...e,
172
+ values: n,
173
+ color: a(e.color) || ot.value[t] || r[t] || r[t % r.length],
174
+ sum: o,
175
+ average: ee,
176
+ median: te,
177
+ sparklineDataset: n.map((e, t) => ({
178
+ period: E.value.colNames[t] || `col ${t}`,
179
+ value: R(e)
180
+ }))
181
+ };
182
+ })));
183
+ function ut(e) {
184
+ let t = (e[0]?.values || []).map((t, n) => e.map((e) => e?.values?.[n] ?? null)).map((e) => e.map((e, t) => [e, t]).sort((e, t) => B(e[0], t[0], 1)).map((e) => e[1]));
185
+ return e.map((e, n) => ({
186
+ ...e,
187
+ values: e.values || [],
188
+ orders: t[n]
189
+ }));
190
+ }
191
+ let U = c(() => ut(H.value)), W = v(U.value), dt = c(() => Math.max(...W.value.map((e) => (e.values || []).length))), G = v(void 0), ft = v(!1), K = v(void 0), pt = v(1);
192
+ function q() {
193
+ ft.value = !1, K.value = void 0, Z.value = void 0, pt.value = 1, $.value.forEach((e) => e.state = 1), X.value = {
194
+ name: 1,
195
+ sum: 1,
196
+ average: 1,
197
+ median: 1
198
+ }, W.value = U.value;
199
+ }
200
+ function J(e, t, n) {
201
+ if ([
202
+ "name",
203
+ "sum",
204
+ "average",
205
+ "median"
206
+ ].includes(e.type)) {
207
+ ht(e.type, t, n);
208
+ return;
209
+ }
210
+ if (!xt(t)) return;
211
+ if (Q.value = t, Z.value = void 0, ![null, void 0].includes(K.value) && t !== K.value && (K.value = void 0, q()), $.value[t].state === n && K.value === t) {
212
+ K.value = void 0, q();
213
+ return;
214
+ }
215
+ ft.value = !0, K.value = t;
216
+ let r = U.value.map((e) => e.values?.[t] ?? null), i = n;
217
+ $.value[t].state = i, pt.value = i, t === G.value ? G.value = void 0 : G.value = t;
218
+ let a = r.map((e, t) => [t, e]).sort((e, t) => B(e[1], t[1], i)).map((e) => e[0]).map((e) => U.value[e]);
219
+ W.value = a, Ye.value += 1;
220
+ }
221
+ let mt = c(() => Math.max(...T.dataset.map((e) => (e.values || []).length))), Y = c(() => {
222
+ let e = I.value.map((e) => ({
223
+ type: "reg",
224
+ value: e
225
+ }));
226
+ if (!e.length) for (let t = 0; t < mt.value; t += 1) e.push({
227
+ type: "reg",
228
+ value: `col ${t + 1}`
229
+ });
230
+ E.value.showTotal && (e = [...e, {
231
+ type: "sum",
232
+ value: E.value.translations.total
233
+ }]);
234
+ let t;
235
+ return t = E.value.showAverage && E.value.showMedian ? [
236
+ ...e,
237
+ {
238
+ type: "average",
239
+ value: E.value.translations.average
240
+ },
241
+ {
242
+ type: "median",
243
+ value: E.value.translations.median
244
+ }
245
+ ] : E.value.showAverage && !E.value.showMedian ? [...e, {
246
+ type: "average",
247
+ value: E.value.translations.average
248
+ }] : !E.value.showAverage && E.value.showMedian ? [...e, {
249
+ type: "median",
250
+ value: E.value.translations.median
251
+ }] : e, E.value.showSparklines ? [...t, {
252
+ type: "chart",
253
+ value: E.value.translations.chart
254
+ }] : t;
255
+ }), X = v({
256
+ name: 1,
257
+ sum: 1,
258
+ average: 1,
259
+ median: 1
260
+ }), Z = v(void 0);
261
+ function ht(e, t, n) {
262
+ if (!W.value || W.value.length === 0 || !St(e)) return;
263
+ if (Z.value !== e && (Z.value = void 0), ![null, void 0].includes(K.value) && t !== K.value && q(), K.value = void 0, X.value[e] === n && Z.value) {
264
+ Z.value = void 0, q();
265
+ return;
266
+ }
267
+ Z.value = e, ft.value = !0, X.value[e] = n, [null, void 0].includes(t) || ($.value[t].state = X.value[e]);
268
+ let r = X.value[e], i = [...W.value].sort((t, n) => {
269
+ let i = t[e], a = n[e];
270
+ return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : B(i, a, r);
271
+ });
272
+ W.value = i;
273
+ }
274
+ let Q = v(void 0), gt = v(void 0);
275
+ function _t({ dataIndex: e, serieIndex: t }) {
276
+ Q.value = e, gt.value = t, Xe.value[e] && !F.value && Xe.value[e].scrollIntoView({
277
+ behavior: "smooth",
278
+ block: "nearest",
279
+ inline: "center"
280
+ });
281
+ }
282
+ let vt = v(!1);
283
+ function yt(e) {
284
+ vt.value = e, Je.value += 1;
285
+ }
286
+ function bt(e = null) {
287
+ ye(() => {
288
+ let r = [E.value.translations.serie].concat(Y.value), i = H.value.map((e, t) => [
289
+ [e.name],
290
+ e.values,
291
+ [e.sum],
292
+ [e.average],
293
+ [e.median]
294
+ ]), a = [r].concat(i), o = n(a);
295
+ e ? e(o) : t({
296
+ csvContent: o,
297
+ title: j.value.text || "vue-ui-table-sparkline"
298
+ });
299
+ });
300
+ }
301
+ function xt(e) {
302
+ return E.value.sortedDataColumnIndices.includes(e);
303
+ }
304
+ function St(e) {
305
+ return e.type === "name" || e === "name" ? E.value.sortedSeriesName : e.type === "sum" || e === "sum" ? E.value.sortedSum : e.type === "average" || e === "average" ? E.value.sortedAverage : e.type === "median" || e === "median" ? E.value.sortedMedian : !1;
306
+ }
307
+ function Ct(e, t, n) {
308
+ return [
309
+ "sum",
310
+ "average",
311
+ "median"
312
+ ].includes(t.type) ? Z.value === t.type && X.value[t.type] === n ? 1 : .3 : e === K.value && $.value[e].state === n ? 1 : .3;
313
+ }
314
+ function wt() {
315
+ E.value.resetSortOnClickOutside && q();
316
+ }
317
+ let $ = c({
318
+ get: () => Y.value.map((e) => ({ state: 1 })),
319
+ set: (e) => e
320
+ });
321
+ function Tt(e) {
322
+ if (e?.stage === "start") {
323
+ Qe.value = !0;
324
+ return;
325
+ }
326
+ if (e?.stage === "end") {
327
+ Qe.value = !1;
328
+ return;
329
+ }
330
+ at();
331
+ }
332
+ async function Et() {
333
+ if (Ke("copyAlt", {
334
+ config: E.value,
335
+ dataset: H.value
336
+ }), !E.value.userOptions.callbacks.altCopy) {
337
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
338
+ return;
339
+ }
340
+ await Promise.resolve(E.value.userOptions.callbacks.altCopy({
341
+ config: E.value,
342
+ dataset: H.value
343
+ }));
344
+ }
345
+ return pe({
346
+ generatePdf: it,
347
+ generateImage: at,
348
+ generateCsv: bt,
349
+ restoreOrder: q,
350
+ copyAlt: Et
351
+ }), (e, t) => (_(), u("div", {
352
+ ref_key: "tableContainer",
353
+ ref: P,
354
+ class: h({
355
+ "vue-data-ui-component": !0,
356
+ "vue-ui-table-sparkline": !0,
357
+ "vue-ui-responsive": F.value
358
+ }),
359
+ style: { overflow: "hidden" },
360
+ id: `table_${qe.value}`,
361
+ onMouseenter: t[3] ||= () => S($e)(!0),
362
+ onMouseleave: t[4] ||= () => S($e)(!1)
363
+ }, [
364
+ j.value.text ? (_(), u("div", {
365
+ key: 0,
366
+ class: "vue-ui-table-sparkline-caption",
367
+ style: g({ backgroundColor: j.value.backgroundColor })
368
+ }, [d("div", {
369
+ class: "atom-title",
370
+ style: g({
371
+ fontSize: `${j.value.fontSize}px`,
372
+ fontWeight: j.value.bold ? "bold" : "normal",
373
+ color: j.value.color,
374
+ textAlign: j.value.textAlign
375
+ })
376
+ }, x(j.value.text), 5), j.value.subtitle.text ? (_(), u("div", {
377
+ key: 0,
378
+ class: "atom-subtitle",
379
+ style: g({
380
+ fontSize: `${j.value.subtitle.fontSize}px`,
381
+ fontWeight: j.value.subtitle.bold ? "bold" : "normal",
382
+ color: j.value.subtitle.color,
383
+ textAlign: j.value.textAlign
384
+ })
385
+ }, x(j.value.subtitle.text), 5)) : l("", !0)], 4)) : l("", !0),
386
+ d("div", {
387
+ style: { overflow: "auto" },
388
+ onPointerleave: t[2] ||= (e) => {
389
+ gt.value = void 0, Q.value = void 0;
390
+ }
391
+ }, [d("table", {
392
+ class: "vue-ui-data-table",
393
+ style: g({
394
+ fontFamily: E.value.fontFamily,
395
+ position: "relative"
396
+ })
397
+ }, [d("thead", ke, [Ee((_(), u("tr", {
398
+ role: "row",
399
+ class: "vue-ui-data-table__thead-row",
400
+ style: g({
401
+ backgroundColor: k.value.backgroundColor,
402
+ color: k.value.color
403
+ })
404
+ }, [d("th", {
405
+ role: "cell",
406
+ style: g({
407
+ backgroundColor: k.value.backgroundColor,
408
+ border: k.value.outline,
409
+ textAlign: k.value.textAlign,
410
+ fontWeight: k.value.bold ? "bold" : "normal"
411
+ }),
412
+ class: "sticky-col-first"
413
+ }, [d("div", { style: g({
414
+ display: "flex",
415
+ flexDirection: "row",
416
+ alignItems: "center",
417
+ gap: "3px",
418
+ justifyContent: k.value.textAlign
419
+ }) }, [d("span", null, x(E.value.translations.serie), 1), W.value.length > 1 && E.value.sortedSeriesName ? (_(), u("div", Ae, [d("button", {
420
+ class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
421
+ onClick: t[0] ||= (e) => J({ type: "name" }, null, -1),
422
+ style: g({ cursor: M.value ? "pointer" : "default" })
423
+ }, [f(S(w), {
424
+ size: 12,
425
+ name: "arrowBottom",
426
+ stroke: k.value.color,
427
+ style: g({ opacity: Z.value === "name" && X.value.name === -1 ? 1 : .3 })
428
+ }, null, 8, ["stroke", "style"])], 4), d("button", {
429
+ class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
430
+ onClick: t[1] ||= (e) => J({ type: "name" }, null, 1),
431
+ style: g({ cursor: M.value ? "pointer" : "default" })
432
+ }, [f(S(w), {
433
+ size: 12,
434
+ name: "arrowTop",
435
+ stroke: k.value.color,
436
+ style: g({ opacity: Z.value === "name" && X.value.name === 1 ? 1 : .3 })
437
+ }, null, 8, ["stroke", "style"])], 4)])) : l("", !0)], 4)], 4), (_(!0), u(s, null, y(Y.value, (t, n) => (_(), u("th", {
438
+ role: "cell",
439
+ style: g({
440
+ background: k.value.backgroundColor,
441
+ border: k.value.outline,
442
+ textAlign: k.value.textAlign,
443
+ fontWeight: k.value.bold ? "bold" : "normal",
444
+ minWidth: n === Y.value.length - 1 ? `${O.value.dimensions.width}px` : "48px",
445
+ paddingRight: n === Y.value.length - 1 && D.value.show ? "36px" : ""
446
+ }),
447
+ class: h({ "sticky-col": n === Y.value.length - 1 && E.value.showSparklines })
448
+ }, [d("div", { style: g({
449
+ display: "flex",
450
+ flexDirection: "row",
451
+ alignItems: "center",
452
+ gap: "3px",
453
+ justifyContent: k.value.textAlign
454
+ }) }, [d("span", null, x(t.value), 1), W.value.length > 1 && (xt(n) || St(t)) ? (_(), u("div", je, [d("button", {
455
+ class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
456
+ onClick: () => J(t, n, -1),
457
+ style: g({ cursor: M.value ? "pointer" : "default" })
458
+ }, [f(S(w), {
459
+ size: 12,
460
+ name: "arrowBottom",
461
+ stroke: k.value.color,
462
+ style: g({ opacity: Ct(n, t, -1) })
463
+ }, null, 8, ["stroke", "style"])], 12, Me), d("button", {
464
+ class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
465
+ onClick: () => J(t, n, 1),
466
+ style: g({ cursor: M.value ? "pointer" : "default" })
467
+ }, [f(S(w), {
468
+ size: 12,
469
+ name: "arrowTop",
470
+ stroke: k.value.color,
471
+ style: g({ opacity: Ct(n, t, 1) })
472
+ }, null, 8, ["stroke", "style"])], 12, Ne)])) : l("", !0)], 4), D.value.show && n === Y.value.length - 1 && (S(et) || S(N)) ? (_(), _e(S(He), {
473
+ ref_for: !0,
474
+ ref: "details",
475
+ key: `user_option_${Je.value}`,
476
+ backgroundColor: k.value.backgroundColor,
477
+ color: k.value.color,
478
+ isPrinting: S(nt),
479
+ isImaging: S(rt),
480
+ uid: qe.value,
481
+ hasPdf: D.value.buttons.pdf,
482
+ hasXls: D.value.buttons.csv,
483
+ hasImg: D.value.buttons.img,
484
+ hasFullscreen: D.value.buttons.fullscreen,
485
+ hasAltCopy: D.value.buttons.altCopy,
486
+ isFullscreen: vt.value,
487
+ titles: { ...D.value.buttonTitles },
488
+ chartElement: P.value,
489
+ position: D.value.position,
490
+ callbacks: D.value.callbacks,
491
+ printScale: D.value.print.scale,
492
+ isCursorPointer: M.value,
493
+ onToggleFullscreen: yt,
494
+ onGeneratePdf: S(it),
495
+ onGenerateImage: Tt,
496
+ onGenerateCsv: bt,
497
+ onCopyAlt: Et,
498
+ style: g({ visibility: S(et) ? S(N) ? "visible" : "hidden" : "visible" })
499
+ }, ve({ _: 2 }, [
500
+ e.$slots.menuIcon ? {
501
+ name: "menuIcon",
502
+ fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", m({ ref_for: !0 }, {
503
+ isOpen: t,
504
+ color: n
505
+ }), void 0, !0)]),
506
+ key: "0"
507
+ } : void 0,
508
+ e.$slots.optionPdf ? {
509
+ name: "optionPdf",
510
+ fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
511
+ key: "1"
512
+ } : void 0,
513
+ e.$slots.optionCsv ? {
514
+ name: "optionCsv",
515
+ fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
516
+ key: "2"
517
+ } : void 0,
518
+ e.$slots.optionImg ? {
519
+ name: "optionImg",
520
+ fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
521
+ key: "3"
522
+ } : void 0,
523
+ e.$slots.optionFullscreen ? {
524
+ name: "optionFullscreen",
525
+ fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", m({ ref_for: !0 }, {
526
+ toggleFullscreen: t,
527
+ isFullscreen: n
528
+ }), void 0, !0)]),
529
+ key: "4"
530
+ } : void 0,
531
+ e.$slots.optionAltCopy ? {
532
+ name: "optionAltCopy",
533
+ fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", m({ ref_for: !0 }, { altCopy: t }), void 0, !0)]),
534
+ key: "5"
535
+ } : void 0,
536
+ e.$slots["custom-menu-before"] ? {
537
+ name: "custom-menu-before",
538
+ fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
539
+ key: "6"
540
+ } : void 0,
541
+ e.$slots["custom-menu-after"] ? {
542
+ name: "custom-menu-after",
543
+ fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
544
+ key: "7"
545
+ } : void 0
546
+ ]), 1032, [
547
+ "backgroundColor",
548
+ "color",
549
+ "isPrinting",
550
+ "isImaging",
551
+ "uid",
552
+ "hasPdf",
553
+ "hasXls",
554
+ "hasImg",
555
+ "hasFullscreen",
556
+ "hasAltCopy",
557
+ "isFullscreen",
558
+ "titles",
559
+ "chartElement",
560
+ "position",
561
+ "callbacks",
562
+ "printScale",
563
+ "isCursorPointer",
564
+ "onGeneratePdf",
565
+ "style"
566
+ ])) : l("", !0)], 6))), 256))], 4)), [[S(he), wt]])]), d("tbody", null, [(_(!0), u(s, null, y(W.value, (e, t) => (_(), u("tr", {
567
+ role: "row",
568
+ style: g({
569
+ backgroundColor: A.value.backgroundColor,
570
+ color: A.value.color
571
+ }),
572
+ class: h({
573
+ "vue-ui-data-table__tbody__row": !0,
574
+ "vue-ui-data-table__tbody__row-even": t % 2 == 0,
575
+ "vue-ui-data-table__tbody__row-odd": t % 2 != 0
576
+ })
577
+ }, [
578
+ d("td", {
579
+ role: "cell",
580
+ style: g({
581
+ backgroundColor: A.value.backgroundColor,
582
+ border: A.value.outline,
583
+ fontSize: `${A.value.fontSize}px`,
584
+ fontWeight: A.value.bold ? "bold" : "normal",
585
+ textAlign: A.value.textAlign
586
+ }),
587
+ "data-cell": E.value.translations.serie,
588
+ class: "vue-ui-data-table__tbody__td sticky-col-first"
589
+ }, [d("div", {
590
+ dir: "auto",
591
+ style: g({
592
+ display: "flex",
593
+ flexDirection: "row",
594
+ alignItems: "center",
595
+ gap: "6px",
596
+ justifyContent: A.value.textAlign
597
+ })
598
+ }, [A.value.showColorMarker ? (_(), u("span", {
599
+ key: 0,
600
+ style: g({ color: e.color })
601
+ }, "⬤", 4)) : l("", !0), d("span", null, x(e.name ?? "-"), 1)], 4)], 12, Pe),
602
+ (_(!0), u(s, null, y(dt.value, (n, r) => (_(), u("td", {
603
+ dir: "auto",
604
+ role: "cell",
605
+ ref_for: !0,
606
+ ref_key: "TD",
607
+ ref: Xe,
608
+ style: g({
609
+ border: A.value.outline,
610
+ fontSize: `${A.value.fontSize}px`,
611
+ fontWeight: A.value.bold ? "bold" : "normal",
612
+ textAlign: A.value.textAlign,
613
+ background: Q.value !== void 0 && r === Q.value ? A.value.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : A.value.selectedColor.fallback : ""
614
+ }),
615
+ "data-cell": Y.value[r] ? Y.value[r].value : "",
616
+ class: "vue-ui-data-table__tbody__td",
617
+ onPointerenter: (e) => {
618
+ gt.value = t, Q.value = r;
619
+ }
620
+ }, x(V(e.values[r], E.value.roundingValues, {
621
+ datapoint: e,
622
+ seriesIndex: t,
623
+ datapointIndex: r
624
+ })), 45, Fe))), 256)),
625
+ E.value.showTotal ? (_(), u("td", {
626
+ key: 0,
627
+ dir: "auto",
628
+ role: "cell",
629
+ style: g({
630
+ border: A.value.outline,
631
+ fontSize: `${A.value.fontSize}px`,
632
+ fontWeight: A.value.bold ? "bold" : "normal",
633
+ textAlign: A.value.textAlign
634
+ }),
635
+ "data-cell": E.value.translations.total,
636
+ class: "vue-ui-data-table__tbody__td"
637
+ }, x(V(e.sum, E.value.roundingTotal, {
638
+ datapoint: e.sum,
639
+ seriesIndex: t
640
+ })), 13, Ie)) : l("", !0),
641
+ E.value.showAverage ? (_(), u("td", {
642
+ key: 1,
643
+ dir: "auto",
644
+ role: "cell",
645
+ style: g({
646
+ border: A.value.outline,
647
+ fontSize: `${A.value.fontSize}px`,
648
+ fontWeight: A.value.bold ? "bold" : "normal",
649
+ textAlign: A.value.textAlign
650
+ }),
651
+ "data-cell": E.value.translations.average,
652
+ class: "vue-ui-data-table__tbody__td"
653
+ }, x(V(e.average, E.value.roundingAverage, {
654
+ datapoint: e.average,
655
+ seriesIndex: t
656
+ })), 13, Le)) : l("", !0),
657
+ E.value.showMedian ? (_(), u("td", {
658
+ key: 2,
659
+ dir: "auto",
660
+ role: "cell",
661
+ style: g({
662
+ border: A.value.outline,
663
+ fontSize: `${A.value.fontSize}px`,
664
+ fontWeight: A.value.bold ? "bold" : "normal",
665
+ textAlign: A.value.textAlign
666
+ }),
667
+ "data-cell": E.value.translations.median,
668
+ class: "vue-ui-data-table__tbody__td"
669
+ }, x(V(e.median, E.value.roundingMedian, {
670
+ datapoint: e.median,
671
+ seriesIndex: t
672
+ })), 13, Re)) : l("", !0),
673
+ E.value.showSparklines ? (_(), u("td", {
674
+ key: 3,
675
+ role: "cell",
676
+ "data-cell": E.value.translations.chart,
677
+ style: g({
678
+ border: A.value.outline,
679
+ fontSize: `${A.value.fontSize}px`,
680
+ fontWeight: A.value.bold ? "bold" : "normal",
681
+ textAlign: A.value.textAlign,
682
+ backgroundColor: A.value.backgroundColor,
683
+ padding: "0"
684
+ }),
685
+ class: "vue-ui-data-table__tbody__td sticky-col"
686
+ }, [f(S(Ve), {
687
+ onHoverIndex: ({ index: e }) => _t({
688
+ dataIndex: e,
689
+ serieIndex: t
690
+ }),
691
+ "height-ratio": O.value.dimensions.heightRatio,
692
+ "forced-padding": 30,
693
+ dataset: e.sparklineDataset,
694
+ showInfo: !1,
695
+ selectedIndex: Q.value,
696
+ config: {
697
+ type: O.value.type,
698
+ style: {
699
+ backgroundColor: "transparent",
700
+ animation: {
701
+ show: O.value.animation.show && !S(nt) && !S(rt),
702
+ animationFrames: O.value.animation.animationFrames
703
+ },
704
+ padding: { right: 12 },
705
+ line: {
706
+ color: e.color,
707
+ smooth: O.value.smooth,
708
+ cutNullValues: O.value.cutNullValues,
709
+ strokeWidth: O.value.strokeWidth
710
+ },
711
+ bar: { color: e.color },
712
+ area: {
713
+ color: e.color,
714
+ opacity: O.value.showArea ? 16 : 0,
715
+ useGradient: O.value.useGradient
716
+ },
717
+ verticalIndicator: { color: e.color },
718
+ plot: {
719
+ radius: 9,
720
+ stroke: A.value.backgroundColor,
721
+ strokeWidth: 3
722
+ }
723
+ }
724
+ }
725
+ }, null, 8, [
726
+ "onHoverIndex",
727
+ "height-ratio",
728
+ "dataset",
729
+ "selectedIndex",
730
+ "config"
731
+ ])], 12, ze)) : l("", !0)
732
+ ], 6))), 256))])], 4)], 32),
733
+ e.$slots.source ? (_(), u("div", Be, [b(e.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
734
+ ], 42, Oe));
735
+ }
736
+ }, [["__scopeId", "data-v-9bb6bbc7"]]);
737
+ //#endregion
738
+ export { De as n, Ve as t };