vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,30 +1,47 @@
1
- import { useCssVars as Fe, defineAsyncComponent as Q, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as v, unref as u, normalizeClass as J, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as P, Fragment as K, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as D, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
2
- import { u as Ge, a as ye } from "./useNestedProp-CIoDlpHu.js";
3
- import { c as Le, b as Re, p as T, e as He, o as Xe, f as he, g as qe, ag as Qe, h as Je, a as W, d as M, P as Ke, Q as Ye } from "./lib-C_mNZmhD.js";
4
- import { u as Ze } from "./usePrinter-DTzqpYKF.js";
5
- import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { v as et } from "./vClickOutside-C6WiFswA.js";
7
- import { t as tt } from "./themes-DH-N_ePR.js";
8
- import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } }, nt = {
1
+ import { useCssVars as Le, defineAsyncComponent as X, ref as f, useSlots as Re, onMounted as ge, computed as _, watch as me, shallowRef as je, onBeforeUnmount as He, createElementBlock as c, openBlock as v, unref as u, normalizeClass as J, createCommentVNode as m, createElementVNode as p, normalizeStyle as s, toDisplayString as A, withDirectives as qe, createVNode as F, Fragment as K, renderList as Q, createBlock as Xe, createSlots as Je, withCtx as z, renderSlot as O, mergeProps as ye, nextTick as Ke } from "vue";
2
+ import { u as Qe, a as Y } from "./useNestedProp-CWo6bftQ.js";
3
+ import { c as Ye, i as Ze, p as T, j as et, o as tt, g as ke, k as lt, ak as at, l as ot, a as B, d as V, u as nt, q as ut } from "./lib-C5BH09_g.js";
4
+ import { u as rt } from "./usePrinter-DCJzEiS8.js";
5
+ import { u as st } from "./useThemeCheck-DGJ31Vi5.js";
6
+ import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { v as dt } from "./vClickOutside-C6WiFswA.js";
8
+ import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const he = { title: { backgroundColor: "#1A1A1A", color: "#CCCCCC", subtitle: { color: "#757575" } }, thead: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, tbody: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, Ce = { title: { backgroundColor: "#FFF8E1", color: "#424242", subtitle: { color: "#757575" } }, thead: { backgroundColor: "#FFF8E1", color: "#424242" }, tbody: { backgroundColor: "#FFF8E1", color: "#424242" } }, _e = { title: { backgroundColor: "#1E1E1E", color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, thead: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, tbody: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, Ae = { title: { backgroundColor: "#1A1A1A", color: "#66CC66", subtitle: { color: "#99AA99" } }, thead: { backgroundColor: "#1A1A1A", color: "#99AA99" }, tbody: { backgroundColor: "#1A1A1A", color: "#99AA99" } }, xe = { title: { backgroundColor: "#fbfafa", color: "#8A9892", subtitle: { color: "#99AA99" } }, thead: { backgroundColor: "#fbfafa", color: "#8A9892" }, tbody: { backgroundColor: "#fbfafa", color: "#A0AC94" } }, Se = { title: { backgroundColor: "#f6f6fb", color: "#50606C", subtitle: { color: "#718890" } }, thead: { backgroundColor: "#f6f6fb", color: "#50606C" }, tbody: { backgroundColor: "#f6f6fb", color: "#50606C" } }, we = {
10
+ default: {},
11
+ dark: he,
12
+ celebration: Ce,
13
+ celebrationNight: _e,
14
+ hack: Ae,
15
+ zen: xe,
16
+ concrete: Se
17
+ }, Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ __proto__: null,
19
+ celebration: Ce,
20
+ celebrationNight: _e,
21
+ concrete: Se,
22
+ dark: he,
23
+ default: we,
24
+ hack: Ae,
25
+ zen: xe
26
+ }, Symbol.toStringTag, { value: "Module" })), ct = ["id"], ft = { style: { "z-index": "1", "padding-right": "24px" } }, pt = {
10
27
  key: 0,
11
28
  style: {
12
29
  display: "flex",
13
30
  flexDirection: "row",
14
31
  alignItems: "center"
15
32
  }
16
- }, ut = {
33
+ }, bt = {
17
34
  key: 0,
18
35
  style: {
19
36
  display: "flex",
20
37
  flexDirection: "row",
21
38
  alignItems: "center"
22
39
  }
23
- }, st = ["onClick"], rt = ["onClick"], it = ["data-cell"], dt = ["data-cell", "onPointerenter"], vt = ["data-cell"], ct = ["data-cell"], pt = ["data-cell"], ft = ["data-cell"], mt = {
40
+ }, gt = ["onClick"], mt = ["onClick"], yt = ["data-cell"], kt = ["data-cell", "onPointerenter"], ht = ["data-cell"], Ct = ["data-cell"], _t = ["data-cell"], At = ["data-cell"], xt = {
24
41
  key: 1,
25
42
  ref: "source",
26
43
  dir: "auto"
27
- }, bt = {
44
+ }, St = {
28
45
  __name: "vue-ui-table-sparkline",
29
46
  props: {
30
47
  config: {
@@ -40,258 +57,265 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
40
57
  }
41
58
  }
42
59
  },
43
- setup(ke, { expose: _e }) {
44
- Fe((t) => ({
45
- v310cbdc6: t.tdo
60
+ setup(Ie, { expose: Oe }) {
61
+ Le((t) => ({
62
+ v3ac96fca: t.tdo
46
63
  }));
47
- const Ce = Q(() => import("./vue-ui-sparkline-D7Wx1ejg.js")), N = Q(() => import("./BaseIcon-DLFL0M4-.js")), xe = Q(() => import("./UserOptions-BqmUW9Kp.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
48
- me(() => {
49
- Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
64
+ const $e = X(() => import("./vue-ui-sparkline-BHHwO_cV.js").then((t) => t.b)), P = X(() => import("./BaseIcon-CofSxalQ.js")), De = X(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_table_sparkline: Fe } = Qe(), { isThemeValid: ze, warnInvalidTheme: Pe } = st(), h = Ie, M = f(Ye()), Z = f(0), W = f(0), U = f(null), Ee = Re();
65
+ ge(() => {
66
+ Ee["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
50
67
  });
51
68
  const e = _({
52
- get: () => te(),
69
+ get: () => le(),
53
70
  set: (t) => t
54
- }), { userOptionsVisible: G, setUserOptionsVisibility: j, keepUserOptionState: ee } = je({ config: e.value });
55
- function te() {
56
- const t = ye({
57
- userConfig: x.config,
58
- defaultConfig: we
71
+ }), { userOptionsVisible: G, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value });
72
+ function le() {
73
+ const t = Y({
74
+ userConfig: h.config,
75
+ defaultConfig: Fe
76
+ }), a = t.theme;
77
+ if (!a) return t;
78
+ if (!ze.value(t))
79
+ return Pe(t), t;
80
+ const l = Y({
81
+ userConfig: we[a] || h.config,
82
+ defaultConfig: t
83
+ }), n = Y({
84
+ userConfig: h.config,
85
+ defaultConfig: l
59
86
  });
60
- return t.theme ? {
61
- ...ye({
62
- userConfig: tt.vue_ui_table_sparkline[t.theme] || x.config,
63
- defaultConfig: t
64
- }),
65
- customPalette: Re[t.theme] || T
66
- } : t;
87
+ return {
88
+ ...n,
89
+ customPalette: n.customPalette.length ? n.customPalette : Ze[a] || T
90
+ };
67
91
  }
68
- be(() => x.config, (t) => {
69
- e.value = te(), G.value = !e.value.userOptions.showOnChartHover, ue(), B.value += 1;
70
- }, { deep: !0 }), be(() => x.dataset, (t) => {
71
- m.value = $.value, B.value += 1;
92
+ me(() => h.config, (t) => {
93
+ e.value = le(), G.value = !e.value.userOptions.showOnChartHover, re(), W.value += 1;
94
+ }, { deep: !0 }), me(() => h.dataset, (t) => {
95
+ b.value = $.value, W.value += 1;
72
96
  }, { deep: !0 });
73
- const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: ne } = Ze({
74
- elementId: `table_${U.value}`,
97
+ const { isPrinting: ae, isImaging: oe, generatePdf: ne, generateImage: ue } = rt({
98
+ elementId: `table_${M.value}`,
75
99
  fileName: e.value.title.text || "vue-ui-table-sparkline",
76
100
  options: e.value.userOptions.print
77
- }), Ie = _(() => He(e.value.customPalette)), F = p(null), L = p(!1), Ae = _(() => e.value.responsiveBreakpoint);
78
- me(() => {
79
- ue();
101
+ }), Ne = _(() => et(e.value.customPalette)), E = f(null), L = f(!1), Te = _(() => e.value.responsiveBreakpoint);
102
+ ge(() => {
103
+ re();
80
104
  });
81
- const R = p(e.value.colNames), I = Te(null);
82
- function ue() {
83
- Xe(x.dataset) && he({
105
+ const R = f(e.value.colNames), w = je(null);
106
+ function re() {
107
+ tt(h.dataset) && ke({
84
108
  componentName: "VueUiTableSparkline",
85
109
  type: "dataset"
86
- }), I.value && I.value.disconnect(), I.value = new ResizeObserver((t) => {
87
- t.forEach((l) => {
88
- L.value = l.contentRect.width < Ae.value;
110
+ }), w.value && w.value.disconnect(), w.value = new ResizeObserver((t) => {
111
+ t.forEach((a) => {
112
+ L.value = a.contentRect.width < Te.value;
89
113
  });
90
- }), F.value && I.value.observe(F.value), R.value = [];
91
- for (let t = 0; t < ie.value; t += 1)
114
+ }), E.value && w.value.observe(E.value), R.value = [];
115
+ for (let t = 0; t < de.value; t += 1)
92
116
  R.value.push(e.value.colNames[t] || `col ${t}`);
93
117
  }
94
- We(() => {
95
- I.value && I.value.disconnect();
118
+ He(() => {
119
+ w.value && w.value.disconnect();
96
120
  });
97
- const se = _(() => (x.dataset.forEach((t, l) => {
98
- qe({
121
+ const se = _(() => (h.dataset.forEach((t, a) => {
122
+ lt({
99
123
  datasetObject: t,
100
124
  requiredAttributes: ["name", "values"]
101
- }).forEach((a) => {
102
- he({
125
+ }).forEach((l) => {
126
+ ke({
103
127
  componentName: "VueUiTableSparkline",
104
128
  type: "datasetSerieAttribute",
105
- property: a,
106
- index: l
129
+ property: l,
130
+ index: a
107
131
  });
108
132
  });
109
- }), x.dataset.map((t, l) => {
110
- const a = (t.values || []).map((d) => isNaN(d) ? 0 : d ?? 0), n = a.reduce((d, i) => d + i, 0), s = n / a.length, o = Qe(a);
133
+ }), h.dataset.map((t, a) => {
134
+ const l = (t.values || []).map((d) => isNaN(d) ? 0 : d ?? 0), n = l.reduce((d, i) => d + i, 0), r = n / l.length, o = at(l);
111
135
  return {
112
136
  ...t,
113
137
  values: t.values || [],
114
- color: Je(t.color) || Ie.value[l] || T[l] || T[l % T.length],
138
+ color: ot(t.color) || Ne.value[a] || T[a] || T[a % T.length],
115
139
  sum: n,
116
- average: s,
140
+ average: r,
117
141
  median: o,
118
- sparklineDataset: a.map((d, i) => ({
142
+ sparklineDataset: l.map((d, i) => ({
119
143
  period: e.value.colNames[i] || `col ${i}`,
120
144
  value: d || 0
121
145
  }))
122
146
  };
123
147
  })));
124
- function Oe(t) {
125
- const a = (t[0].values || []).map(
126
- (s, o) => t.map((d) => d.values[o] || [])
148
+ function Be(t) {
149
+ const l = (t[0].values || []).map(
150
+ (r, o) => t.map((d) => d.values[o] || [])
127
151
  ).map(
128
- (s) => s.map((o, d) => [o, d]).sort((o, d) => d[0] - o[0]).map((o) => o[1])
152
+ (r) => r.map((o, d) => [o, d]).sort((o, d) => d[0] - o[0]).map((o) => o[1])
129
153
  );
130
- return t.map((s, o) => ({
131
- ...s,
132
- values: s.values || [],
133
- orders: a[o]
154
+ return t.map((r, o) => ({
155
+ ...r,
156
+ values: r.values || [],
157
+ orders: l[o]
134
158
  }));
135
159
  }
136
- const $ = _(() => Oe(se.value)), m = p($.value), $e = _(() => Math.max(...m.value.map((t) => (t.values || []).length))), H = p(void 0), X = p(!1), b = p(void 0), re = p(1);
137
- function A() {
138
- X.value = !1, b.value = void 0, y.value = void 0, re.value = 1, z.value.forEach((t) => t.state = 1), w.value = {
160
+ const $ = _(() => Be(se.value)), b = f($.value), Ve = _(() => Math.max(...b.value.map((t) => (t.values || []).length))), j = f(void 0), H = f(!1), g = f(void 0), ie = f(1);
161
+ function I() {
162
+ H.value = !1, g.value = void 0, y.value = void 0, ie.value = 1, D.value.forEach((t) => t.state = 1), x.value = {
139
163
  name: 1,
140
164
  sum: 1,
141
165
  average: 1,
142
166
  median: 1
143
- }, m.value = $.value;
167
+ }, b.value = $.value;
144
168
  }
145
- function V(t, l, a) {
169
+ function N(t, a, l) {
146
170
  if (["name", "sum", "average", "median"].includes(t.type)) {
147
- ze(t.type, l, a);
171
+ Me(t.type, a, l);
148
172
  return;
149
173
  }
150
- if (!ce(l)) return;
151
- if (S.value = l, y.value = void 0, ![null, void 0].includes(b.value) && l !== b.value && (b.value = void 0, A()), z.value[l].state === a && b.value === l) {
152
- b.value = void 0, A();
174
+ if (!fe(a)) return;
175
+ if (S.value = a, y.value = void 0, ![null, void 0].includes(g.value) && a !== g.value && (g.value = void 0, I()), D.value[a].state === l && g.value === a) {
176
+ g.value = void 0, I();
153
177
  return;
154
178
  }
155
- X.value = !0, b.value = l;
156
- const n = $.value.map((i) => i.values[l] || []), s = a;
157
- z.value[l].state = s, re.value = s, l === H.value ? H.value = void 0 : H.value = l;
158
- const d = n.map((i, h) => [h, i]).sort((i, h) => s * (h[1] - i[1])).map((i) => i[0]).map((i) => $.value[i]);
159
- m.value = d, B.value += 1;
179
+ H.value = !0, g.value = a;
180
+ const n = $.value.map((i) => i.values[a] || []), r = l;
181
+ D.value[a].state = r, ie.value = r, a === j.value ? j.value = void 0 : j.value = a;
182
+ const d = n.map((i, k) => [k, i]).sort((i, k) => r * (k[1] - i[1])).map((i) => i[0]).map((i) => $.value[i]);
183
+ b.value = d, W.value += 1;
160
184
  }
161
- const ie = _(() => Math.max(...x.dataset.map((t) => (t.values || []).length))), k = _(() => {
162
- let t = R.value.map((a) => ({
185
+ const de = _(() => Math.max(...h.dataset.map((t) => (t.values || []).length))), C = _(() => {
186
+ let t = R.value.map((l) => ({
163
187
  type: "reg",
164
- value: a
188
+ value: l
165
189
  }));
166
190
  if (!t.length)
167
- for (let a = 0; a < ie.value; a += 1)
168
- t.push({ type: "reg", value: `col ${a + 1}` });
191
+ for (let l = 0; l < de.value; l += 1)
192
+ t.push({ type: "reg", value: `col ${l + 1}` });
169
193
  e.value.showTotal && (t = [...t, { type: "sum", value: e.value.translations.total }]);
170
- let l;
171
- return e.value.showAverage && e.value.showMedian ? l = [
194
+ let a;
195
+ return e.value.showAverage && e.value.showMedian ? a = [
172
196
  ...t,
173
197
  { type: "average", value: e.value.translations.average },
174
198
  { type: "median", value: e.value.translations.median }
175
- ] : e.value.showAverage && !e.value.showMedian ? l = [...t, { type: "average", value: e.value.translations.average }] : !e.value.showAverage && e.value.showMedian ? l = [...t, { type: "median", value: e.value.translations.median }] : l = t, e.value.showSparklines ? [...l, { type: "chart", value: e.value.translations.chart }] : l;
176
- }), w = p({
199
+ ] : e.value.showAverage && !e.value.showMedian ? a = [...t, { type: "average", value: e.value.translations.average }] : !e.value.showAverage && e.value.showMedian ? a = [...t, { type: "median", value: e.value.translations.median }] : a = t, e.value.showSparklines ? [...a, { type: "chart", value: e.value.translations.chart }] : a;
200
+ }), x = f({
177
201
  name: 1,
178
202
  sum: 1,
179
203
  average: 1,
180
204
  median: 1
181
- }), y = p(void 0);
182
- function ze(t, l, a) {
183
- if (!m.value || m.value.length === 0 || !pe(t)) return;
184
- if (y.value !== t && (y.value = void 0), ![null, void 0].includes(b.value) && l !== b.value && A(), b.value = void 0, w.value[t] === a && y.value) {
185
- y.value = void 0, A();
205
+ }), y = f(void 0);
206
+ function Me(t, a, l) {
207
+ if (!b.value || b.value.length === 0 || !pe(t)) return;
208
+ if (y.value !== t && (y.value = void 0), ![null, void 0].includes(g.value) && a !== g.value && I(), g.value = void 0, x.value[t] === l && y.value) {
209
+ y.value = void 0, I();
186
210
  return;
187
211
  }
188
- y.value = t, X.value = !0, w.value[t] = a, [null, void 0].includes(l) || (z.value[l].state = w.value[t]);
189
- const n = w.value[t], s = [...m.value].sort((o, d) => {
190
- const i = o[t] ?? (typeof o[t] == "number" ? 0 : ""), h = d[t] ?? (typeof d[t] == "number" ? 0 : "");
191
- return typeof i == "string" && typeof h == "string" ? n === -1 ? i.localeCompare(h) : h.localeCompare(i) : typeof i == "number" && typeof h == "number" ? n === -1 ? i - h : h - i : 0;
212
+ y.value = t, H.value = !0, x.value[t] = l, [null, void 0].includes(a) || (D.value[a].state = x.value[t]);
213
+ const n = x.value[t], r = [...b.value].sort((o, d) => {
214
+ const i = o[t] ?? (typeof o[t] == "number" ? 0 : ""), k = d[t] ?? (typeof d[t] == "number" ? 0 : "");
215
+ return typeof i == "string" && typeof k == "string" ? n === -1 ? i.localeCompare(k) : k.localeCompare(i) : typeof i == "number" && typeof k == "number" ? n === -1 ? i - k : k - i : 0;
192
216
  });
193
- m.value = s;
217
+ b.value = r;
194
218
  }
195
- const S = p(void 0), q = p(void 0);
196
- function Pe({ dataIndex: t, serieIndex: l }) {
197
- S.value = t, q.value = l, E.value[t] && !L.value && E.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
219
+ const S = f(void 0), q = f(void 0);
220
+ function We({ dataIndex: t, serieIndex: a }) {
221
+ S.value = t, q.value = a, U.value[t] && !L.value && U.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
198
222
  }
199
- const de = p(!1);
200
- function De(t) {
201
- de.value = t, Z.value += 1;
223
+ const ve = f(!1);
224
+ function Ue(t) {
225
+ ve.value = t, Z.value += 1;
202
226
  }
203
- function ve(t = null) {
204
- Ee(() => {
205
- const l = [e.value.translations.serie].concat(k.value), a = se.value.map((o, d) => [
227
+ function ce(t = null) {
228
+ Ke(() => {
229
+ const a = [e.value.translations.serie].concat(C.value), l = se.value.map((o, d) => [
206
230
  [o.name],
207
231
  o.values,
208
232
  [o.sum],
209
233
  [o.average],
210
234
  [o.median]
211
- ]), n = [l].concat(a), s = Ke(n);
212
- t ? t(s) : Ye({
213
- csvContent: s,
235
+ ]), n = [a].concat(l), r = nt(n);
236
+ t ? t(r) : ut({
237
+ csvContent: r,
214
238
  title: e.value.title.text || "vue-ui-table-sparkline"
215
239
  });
216
240
  });
217
241
  }
218
- function ce(t) {
242
+ function fe(t) {
219
243
  return e.value.sortedDataColumnIndices.includes(t);
220
244
  }
221
245
  function pe(t) {
222
246
  return t.type === "name" || t === "name" ? e.value.sortedSeriesName : t.type === "sum" || t === "sum" ? e.value.sortedSum : t.type === "average" || t === "average" ? e.value.sortedAverage : t.type === "median" || t === "median" ? e.value.sortedMedian : !1;
223
247
  }
224
- function fe(t, l, a) {
225
- return ["sum", "average", "median"].includes(l.type) ? y.value === l.type && w.value[l.type] === a ? 1 : 0.3 : t === b.value && z.value[t].state === a ? 1 : 0.3;
248
+ function be(t, a, l) {
249
+ return ["sum", "average", "median"].includes(a.type) ? y.value === a.type && x.value[a.type] === l ? 1 : 0.3 : t === g.value && D.value[t].state === l ? 1 : 0.3;
226
250
  }
227
- function Ne() {
228
- e.value.resetSortOnClickOutside && A();
251
+ function Ge() {
252
+ e.value.resetSortOnClickOutside && I();
229
253
  }
230
- const z = _({
231
- get: () => k.value.map((t) => ({ state: 1 })),
254
+ const D = _({
255
+ get: () => C.value.map((t) => ({ state: 1 })),
232
256
  set: (t) => t
233
257
  });
234
- return _e({
235
- generatePdf: oe,
236
- generateImage: ne,
237
- generateCsv: ve,
238
- restoreOrder: A
239
- }), (t, l) => (v(), c("div", {
258
+ return Oe({
259
+ generatePdf: ne,
260
+ generateImage: ue,
261
+ generateCsv: ce,
262
+ restoreOrder: I
263
+ }), (t, a) => (v(), c("div", {
240
264
  ref_key: "tableContainer",
241
- ref: F,
265
+ ref: E,
242
266
  class: J({ "vue-data-ui-component": !0, "vue-ui-table-sparkline": !0, "vue-ui-responsive": L.value }),
243
267
  style: { overflow: "hidden" },
244
- id: `table_${U.value}`,
245
- onMouseenter: l[3] || (l[3] = () => u(j)(!0)),
246
- onMouseleave: l[4] || (l[4] = () => u(j)(!1))
268
+ id: `table_${M.value}`,
269
+ onMouseenter: a[3] || (a[3] = () => u(ee)(!0)),
270
+ onMouseleave: a[4] || (a[4] = () => u(ee)(!1))
247
271
  }, [
248
272
  e.value.title.text ? (v(), c("div", {
249
273
  key: 0,
250
274
  class: "vue-ui-table-sparkline-caption",
251
- style: r({ backgroundColor: e.value.title.backgroundColor })
275
+ style: s({ backgroundColor: e.value.title.backgroundColor })
252
276
  }, [
253
- f("div", {
277
+ p("div", {
254
278
  class: "atom-title",
255
- style: r({
279
+ style: s({
256
280
  fontSize: `${e.value.title.fontSize}px`,
257
281
  fontWeight: e.value.title.bold ? "bold" : "normal",
258
282
  color: e.value.title.color,
259
283
  textAlign: e.value.title.textAlign
260
284
  })
261
- }, C(e.value.title.text), 5),
285
+ }, A(e.value.title.text), 5),
262
286
  e.value.title.subtitle.text ? (v(), c("div", {
263
287
  key: 0,
264
288
  class: "atom-subtitle",
265
- style: r({
289
+ style: s({
266
290
  fontSize: `${e.value.title.subtitle.fontSize}px`,
267
291
  fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
268
292
  color: e.value.title.subtitle.color,
269
293
  textAlign: e.value.title.textAlign
270
294
  })
271
- }, C(e.value.title.subtitle.text), 5)) : g("", !0)
272
- ], 4)) : g("", !0),
273
- f("div", {
295
+ }, A(e.value.title.subtitle.text), 5)) : m("", !0)
296
+ ], 4)) : m("", !0),
297
+ p("div", {
274
298
  style: { overflow: "auto" },
275
- onPointerleave: l[2] || (l[2] = (a) => {
299
+ onPointerleave: a[2] || (a[2] = (l) => {
276
300
  q.value = void 0, S.value = void 0;
277
301
  })
278
302
  }, [
279
- f("table", {
303
+ p("table", {
280
304
  class: "vue-ui-data-table",
281
- style: r({ fontFamily: e.value.fontFamily, position: "relative" })
305
+ style: s({ fontFamily: e.value.fontFamily, position: "relative" })
282
306
  }, [
283
- f("thead", ot, [
284
- Me((v(), c("tr", {
307
+ p("thead", ft, [
308
+ qe((v(), c("tr", {
285
309
  role: "row",
286
310
  class: "vue-ui-data-table__thead-row",
287
- style: r({
311
+ style: s({
288
312
  backgroundColor: e.value.thead.backgroundColor,
289
313
  color: e.value.thead.color
290
314
  })
291
315
  }, [
292
- f("th", {
316
+ p("th", {
293
317
  role: "cell",
294
- style: r({
318
+ style: s({
295
319
  backgroundColor: e.value.thead.backgroundColor,
296
320
  border: e.value.thead.outline,
297
321
  textAlign: e.value.thead.textAlign,
@@ -299,8 +323,8 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
299
323
  }),
300
324
  class: "sticky-col-first"
301
325
  }, [
302
- f("div", {
303
- style: r({
326
+ p("div", {
327
+ style: s({
304
328
  display: "flex",
305
329
  flexDirection: "row",
306
330
  alignItems: "center",
@@ -308,51 +332,51 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
308
332
  justifyContent: e.value.thead.textAlign
309
333
  })
310
334
  }, [
311
- f("span", null, C(e.value.translations.serie), 1),
312
- m.value.length > 1 && e.value.sortedSeriesName ? (v(), c("div", nt, [
313
- f("button", {
335
+ p("span", null, A(e.value.translations.serie), 1),
336
+ b.value.length > 1 && e.value.sortedSeriesName ? (v(), c("div", pt, [
337
+ p("button", {
314
338
  class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
315
- onClick: l[0] || (l[0] = (a) => V({ type: "name" }, null, -1))
339
+ onClick: a[0] || (a[0] = (l) => N({ type: "name" }, null, -1))
316
340
  }, [
317
- P(u(N), {
341
+ F(u(P), {
318
342
  size: 12,
319
343
  name: "arrowBottom",
320
344
  stroke: e.value.thead.color,
321
- style: r({
322
- opacity: y.value === "name" && w.value.name === -1 ? 1 : 0.3
345
+ style: s({
346
+ opacity: y.value === "name" && x.value.name === -1 ? 1 : 0.3
323
347
  })
324
348
  }, null, 8, ["stroke", "style"])
325
349
  ]),
326
- f("button", {
350
+ p("button", {
327
351
  class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
328
- onClick: l[1] || (l[1] = (a) => V({ type: "name" }, null, 1))
352
+ onClick: a[1] || (a[1] = (l) => N({ type: "name" }, null, 1))
329
353
  }, [
330
- P(u(N), {
354
+ F(u(P), {
331
355
  size: 12,
332
356
  name: "arrowTop",
333
357
  stroke: e.value.thead.color,
334
- style: r({
335
- opacity: y.value === "name" && w.value.name === 1 ? 1 : 0.3
358
+ style: s({
359
+ opacity: y.value === "name" && x.value.name === 1 ? 1 : 0.3
336
360
  })
337
361
  }, null, 8, ["stroke", "style"])
338
362
  ])
339
- ])) : g("", !0)
363
+ ])) : m("", !0)
340
364
  ], 4)
341
365
  ], 4),
342
- (v(!0), c(K, null, Y(k.value, (a, n) => (v(), c("th", {
366
+ (v(!0), c(K, null, Q(C.value, (l, n) => (v(), c("th", {
343
367
  role: "cell",
344
- style: r({
368
+ style: s({
345
369
  background: e.value.thead.backgroundColor,
346
370
  border: e.value.thead.outline,
347
371
  textAlign: e.value.thead.textAlign,
348
372
  fontWeight: e.value.thead.bold ? "bold" : "normal",
349
- minWidth: n === k.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
350
- paddingRight: n === k.value.length - 1 && e.value.userOptions.show ? "36px" : ""
373
+ minWidth: n === C.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
374
+ paddingRight: n === C.value.length - 1 && e.value.userOptions.show ? "36px" : ""
351
375
  }),
352
- class: J({ "sticky-col": n === k.value.length - 1 && e.value.showSparklines })
376
+ class: J({ "sticky-col": n === C.value.length - 1 && e.value.showSparklines })
353
377
  }, [
354
- f("div", {
355
- style: r({
378
+ p("div", {
379
+ style: s({
356
380
  display: "flex",
357
381
  flexDirection: "row",
358
382
  alignItems: "center",
@@ -360,116 +384,116 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
360
384
  justifyContent: e.value.thead.textAlign
361
385
  })
362
386
  }, [
363
- f("span", null, C(a.value), 1),
364
- m.value.length > 1 && (ce(n) || pe(a)) ? (v(), c("div", ut, [
365
- f("button", {
387
+ p("span", null, A(l.value), 1),
388
+ b.value.length > 1 && (fe(n) || pe(l)) ? (v(), c("div", bt, [
389
+ p("button", {
366
390
  class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
367
- onClick: () => V(a, n, -1)
391
+ onClick: () => N(l, n, -1)
368
392
  }, [
369
- P(u(N), {
393
+ F(u(P), {
370
394
  size: 12,
371
395
  name: "arrowBottom",
372
396
  stroke: e.value.thead.color,
373
- style: r({
374
- opacity: fe(n, a, -1)
397
+ style: s({
398
+ opacity: be(n, l, -1)
375
399
  })
376
400
  }, null, 8, ["stroke", "style"])
377
- ], 8, st),
378
- f("button", {
401
+ ], 8, gt),
402
+ p("button", {
379
403
  class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
380
- onClick: () => V(a, n, 1)
404
+ onClick: () => N(l, n, 1)
381
405
  }, [
382
- P(u(N), {
406
+ F(u(P), {
383
407
  size: 12,
384
408
  name: "arrowTop",
385
409
  stroke: e.value.thead.color,
386
- style: r({
387
- opacity: fe(n, a, 1)
410
+ style: s({
411
+ opacity: be(n, l, 1)
388
412
  })
389
413
  }, null, 8, ["stroke", "style"])
390
- ], 8, rt)
391
- ])) : g("", !0)
414
+ ], 8, mt)
415
+ ])) : m("", !0)
392
416
  ], 4),
393
- e.value.userOptions.show && n === k.value.length - 1 && (u(ee) || u(G)) ? (v(), Ue(u(xe), {
417
+ e.value.userOptions.show && n === C.value.length - 1 && (u(te) || u(G)) ? (v(), Xe(u(De), {
394
418
  ref_for: !0,
395
419
  ref: "details",
396
420
  key: `user_option_${Z.value}`,
397
421
  backgroundColor: e.value.thead.backgroundColor,
398
422
  color: e.value.thead.color,
399
423
  isPrinting: u(ae),
400
- isImaging: u(le),
401
- uid: U.value,
424
+ isImaging: u(oe),
425
+ uid: M.value,
402
426
  hasPdf: e.value.userOptions.buttons.pdf,
403
427
  hasXls: e.value.userOptions.buttons.csv,
404
428
  hasImg: e.value.userOptions.buttons.img,
405
429
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
406
- isFullscreen: de.value,
430
+ isFullscreen: ve.value,
407
431
  titles: { ...e.value.userOptions.buttonTitles },
408
- chartElement: F.value,
432
+ chartElement: E.value,
409
433
  position: e.value.userOptions.position,
410
434
  callbacks: e.value.userOptions.callbacks,
411
435
  printScale: e.value.userOptions.print.scale,
412
- onToggleFullscreen: De,
413
- onGeneratePdf: u(oe),
414
- onGenerateImage: u(ne),
415
- onGenerateCsv: ve,
416
- style: r({
417
- visibility: u(ee) ? u(G) ? "visible" : "hidden" : "visible"
436
+ onToggleFullscreen: Ue,
437
+ onGeneratePdf: u(ne),
438
+ onGenerateImage: u(ue),
439
+ onGenerateCsv: ce,
440
+ style: s({
441
+ visibility: u(te) ? u(G) ? "visible" : "hidden" : "visible"
418
442
  })
419
- }, Be({ _: 2 }, [
443
+ }, Je({ _: 2 }, [
420
444
  t.$slots.menuIcon ? {
421
445
  name: "menuIcon",
422
- fn: D(({ isOpen: s, color: o }) => [
423
- O(t.$slots, "menuIcon", ge({ ref_for: !0 }, { isOpen: s, color: o }), void 0, !0)
446
+ fn: z(({ isOpen: r, color: o }) => [
447
+ O(t.$slots, "menuIcon", ye({ ref_for: !0 }, { isOpen: r, color: o }), void 0, !0)
424
448
  ]),
425
449
  key: "0"
426
450
  } : void 0,
427
451
  t.$slots.optionPdf ? {
428
452
  name: "optionPdf",
429
- fn: D(() => [
453
+ fn: z(() => [
430
454
  O(t.$slots, "optionPdf", {}, void 0, !0)
431
455
  ]),
432
456
  key: "1"
433
457
  } : void 0,
434
458
  t.$slots.optionCsv ? {
435
459
  name: "optionCsv",
436
- fn: D(() => [
460
+ fn: z(() => [
437
461
  O(t.$slots, "optionCsv", {}, void 0, !0)
438
462
  ]),
439
463
  key: "2"
440
464
  } : void 0,
441
465
  t.$slots.optionImg ? {
442
466
  name: "optionImg",
443
- fn: D(() => [
467
+ fn: z(() => [
444
468
  O(t.$slots, "optionImg", {}, void 0, !0)
445
469
  ]),
446
470
  key: "3"
447
471
  } : void 0,
448
472
  t.$slots.optionFullscreen ? {
449
473
  name: "optionFullscreen",
450
- fn: D(({ toggleFullscreen: s, isFullscreen: o }) => [
451
- O(t.$slots, "optionFullscreen", ge({ ref_for: !0 }, { toggleFullscreen: s, isFullscreen: o }), void 0, !0)
474
+ fn: z(({ toggleFullscreen: r, isFullscreen: o }) => [
475
+ O(t.$slots, "optionFullscreen", ye({ ref_for: !0 }, { toggleFullscreen: r, isFullscreen: o }), void 0, !0)
452
476
  ]),
453
477
  key: "4"
454
478
  } : void 0
455
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
479
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0)
456
480
  ], 6))), 256))
457
481
  ], 4)), [
458
- [u(et), Ne]
482
+ [u(dt), Ge]
459
483
  ])
460
484
  ]),
461
- f("tbody", null, [
462
- (v(!0), c(K, null, Y(m.value, (a, n) => (v(), c("tr", {
485
+ p("tbody", null, [
486
+ (v(!0), c(K, null, Q(b.value, (l, n) => (v(), c("tr", {
463
487
  role: "row",
464
- style: r({
488
+ style: s({
465
489
  backgroundColor: e.value.tbody.backgroundColor,
466
490
  color: e.value.tbody.color
467
491
  }),
468
492
  class: J({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 })
469
493
  }, [
470
- f("td", {
494
+ p("td", {
471
495
  role: "cell",
472
- style: r({
496
+ style: s({
473
497
  backgroundColor: e.value.tbody.backgroundColor,
474
498
  border: e.value.tbody.outline,
475
499
  fontSize: `${e.value.tbody.fontSize}px`,
@@ -479,9 +503,9 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
479
503
  "data-cell": e.value.translations.serie,
480
504
  class: "vue-ui-data-table__tbody__td sticky-col-first"
481
505
  }, [
482
- f("div", {
506
+ p("div", {
483
507
  dir: "auto",
484
- style: r({
508
+ style: s({
485
509
  display: "flex",
486
510
  flexDirection: "row",
487
511
  alignItems: "center",
@@ -491,45 +515,45 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
491
515
  }, [
492
516
  e.value.tbody.showColorMarker ? (v(), c("span", {
493
517
  key: 0,
494
- style: r({ color: a.color })
495
- }, "⬤", 4)) : g("", !0),
496
- f("span", null, C(a.name ?? "-"), 1)
518
+ style: s({ color: l.color })
519
+ }, "⬤", 4)) : m("", !0),
520
+ p("span", null, A(l.name ?? "-"), 1)
497
521
  ], 4)
498
- ], 12, it),
499
- (v(!0), c(K, null, Y($e.value, (s, o) => (v(), c("td", {
522
+ ], 12, yt),
523
+ (v(!0), c(K, null, Q(Ve.value, (r, o) => (v(), c("td", {
500
524
  dir: "auto",
501
525
  role: "cell",
502
526
  ref_for: !0,
503
527
  ref_key: "TD",
504
- ref: E,
505
- style: r({
528
+ ref: U,
529
+ style: s({
506
530
  border: e.value.tbody.outline,
507
531
  fontSize: `${e.value.tbody.fontSize}px`,
508
532
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
509
533
  textAlign: e.value.tbody.textAlign,
510
- background: S.value !== void 0 && o === S.value ? e.value.tbody.selectedColor.useSerieColor ? `${a.color.length > 7 ? a.color.slice(0, -2) : a.color}33` : e.value.tbody.selectedColor.fallback : ""
534
+ background: S.value !== void 0 && o === S.value ? e.value.tbody.selectedColor.useSerieColor ? `${l.color.length > 7 ? l.color.slice(0, -2) : l.color}33` : e.value.tbody.selectedColor.fallback : ""
511
535
  }),
512
- "data-cell": k.value[o] ? k.value[o].value : "",
536
+ "data-cell": C.value[o] ? C.value[o].value : "",
513
537
  class: "vue-ui-data-table__tbody__td",
514
538
  onPointerenter: (d) => {
515
539
  q.value = n, S.value = o;
516
540
  }
517
- }, C([null, void 0].includes(a.values[o]) ? "-" : u(W)(
541
+ }, A([null, void 0].includes(l.values[o]) ? "-" : u(B)(
518
542
  e.value.formatter,
519
- Number(a.values[o]),
520
- u(M)({
543
+ Number(l.values[o]),
544
+ u(V)({
521
545
  p: e.value.prefix,
522
- v: Number(a.values[o]),
546
+ v: Number(l.values[o]),
523
547
  s: e.value.suffix,
524
548
  r: e.value.roundingValues
525
549
  }),
526
- { datapoint: a, seriesIndex: n, datapointIndex: o }
527
- )), 45, dt))), 256)),
550
+ { datapoint: l, seriesIndex: n, datapointIndex: o }
551
+ )), 45, kt))), 256)),
528
552
  e.value.showTotal ? (v(), c("td", {
529
553
  key: 0,
530
554
  dir: "auto",
531
555
  role: "cell",
532
- style: r({
556
+ style: s({
533
557
  border: e.value.tbody.outline,
534
558
  fontSize: `${e.value.tbody.fontSize}px`,
535
559
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -537,22 +561,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
537
561
  }),
538
562
  "data-cell": e.value.translations.total,
539
563
  class: "vue-ui-data-table__tbody__td"
540
- }, C(u(W)(
564
+ }, A(u(B)(
541
565
  e.value.formatter,
542
- a.sum,
543
- u(M)({
566
+ l.sum,
567
+ u(V)({
544
568
  p: e.value.prefix,
545
- v: a.sum,
569
+ v: l.sum,
546
570
  s: e.value.suffix,
547
571
  r: e.value.roundingTotal
548
572
  }),
549
- { datapoint: a.sum, seriesIndex: n }
550
- )), 13, vt)) : g("", !0),
573
+ { datapoint: l.sum, seriesIndex: n }
574
+ )), 13, ht)) : m("", !0),
551
575
  e.value.showAverage ? (v(), c("td", {
552
576
  key: 1,
553
577
  dir: "auto",
554
578
  role: "cell",
555
- style: r({
579
+ style: s({
556
580
  border: e.value.tbody.outline,
557
581
  fontSize: `${e.value.tbody.fontSize}px`,
558
582
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -560,22 +584,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
560
584
  }),
561
585
  "data-cell": e.value.translations.average,
562
586
  class: "vue-ui-data-table__tbody__td"
563
- }, C(u(W)(
587
+ }, A(u(B)(
564
588
  e.value.formatter,
565
- a.average,
566
- u(M)({
589
+ l.average,
590
+ u(V)({
567
591
  p: e.value.prefix,
568
- v: a.average,
592
+ v: l.average,
569
593
  s: e.value.suffix,
570
594
  r: e.value.roundingAverage
571
595
  }),
572
- { datapoint: a.average, seriesIndex: n }
573
- )), 13, ct)) : g("", !0),
596
+ { datapoint: l.average, seriesIndex: n }
597
+ )), 13, Ct)) : m("", !0),
574
598
  e.value.showMedian ? (v(), c("td", {
575
599
  key: 2,
576
600
  dir: "auto",
577
601
  role: "cell",
578
- style: r({
602
+ style: s({
579
603
  border: e.value.tbody.outline,
580
604
  fontSize: `${e.value.tbody.fontSize}px`,
581
605
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -583,22 +607,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
583
607
  }),
584
608
  "data-cell": e.value.translations.median,
585
609
  class: "vue-ui-data-table__tbody__td"
586
- }, C(u(W)(
610
+ }, A(u(B)(
587
611
  e.value.formatter,
588
- a.median,
589
- u(M)({
612
+ l.median,
613
+ u(V)({
590
614
  p: e.value.prefix,
591
- v: a.median,
615
+ v: l.median,
592
616
  s: e.value.suffix,
593
617
  r: e.value.roundingMedian
594
618
  }),
595
- { datapoint: a.median, seriesIndex: n }
596
- )), 13, pt)) : g("", !0),
619
+ { datapoint: l.median, seriesIndex: n }
620
+ )), 13, _t)) : m("", !0),
597
621
  e.value.showSparklines ? (v(), c("td", {
598
622
  key: 3,
599
623
  role: "cell",
600
624
  "data-cell": e.value.translations.chart,
601
- style: r({
625
+ style: s({
602
626
  border: e.value.tbody.outline,
603
627
  fontSize: `${e.value.tbody.fontSize}px`,
604
628
  fontWeight: e.value.tbody.bold ? "bold" : "normal",
@@ -608,11 +632,11 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
608
632
  }),
609
633
  class: "vue-ui-data-table__tbody__td sticky-col"
610
634
  }, [
611
- P(u(Ce), {
612
- onHoverIndex: ({ index: s }) => Pe({ dataIndex: s, serieIndex: n }),
635
+ F(u($e), {
636
+ onHoverIndex: ({ index: r }) => We({ dataIndex: r, serieIndex: n }),
613
637
  "height-ratio": e.value.sparkline.dimensions.heightRatio,
614
638
  "forced-padding": 30,
615
- dataset: a.sparklineDataset,
639
+ dataset: l.sparklineDataset,
616
640
  showInfo: !1,
617
641
  selectedIndex: S.value,
618
642
  config: {
@@ -620,27 +644,27 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
620
644
  style: {
621
645
  backgroundColor: "transparent",
622
646
  animation: {
623
- show: e.value.sparkline.animation.show && !u(ae) && !u(le),
647
+ show: e.value.sparkline.animation.show && !u(ae) && !u(oe),
624
648
  animationFrames: e.value.sparkline.animation.animationFrames
625
649
  },
626
650
  padding: {
627
651
  right: 12
628
652
  },
629
653
  line: {
630
- color: a.color,
654
+ color: l.color,
631
655
  smooth: e.value.sparkline.smooth,
632
656
  strokeWidth: e.value.sparkline.strokeWidth
633
657
  },
634
658
  bar: {
635
- color: a.color
659
+ color: l.color
636
660
  },
637
661
  area: {
638
- color: a.color,
662
+ color: l.color,
639
663
  opacity: e.value.sparkline.showArea ? 16 : 0,
640
664
  useGradient: e.value.sparkline.useGradient
641
665
  },
642
666
  verticalIndicator: {
643
- color: a.color
667
+ color: l.color
644
668
  },
645
669
  plot: {
646
670
  radius: 9,
@@ -650,17 +674,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
650
674
  }
651
675
  }
652
676
  }, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"])
653
- ], 12, ft)) : g("", !0)
677
+ ], 12, At)) : m("", !0)
654
678
  ], 6))), 256))
655
679
  ])
656
680
  ], 4)
657
681
  ], 32),
658
- t.$slots.source ? (v(), c("div", mt, [
682
+ t.$slots.source ? (v(), c("div", xt, [
659
683
  O(t.$slots, "source", {}, void 0, !0)
660
- ], 512)) : g("", !0)
661
- ], 42, lt));
684
+ ], 512)) : m("", !0)
685
+ ], 42, ct));
662
686
  }
663
- }, St = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-9e1b786d"]]);
687
+ }, wt = /* @__PURE__ */ vt(St, [["__scopeId", "data-v-18b7aedc"]]), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
688
+ __proto__: null,
689
+ default: wt
690
+ }, Symbol.toStringTag, { value: "Module" }));
664
691
  export {
665
- St as default
692
+ Nt as a,
693
+ Tt as b,
694
+ wt as v
666
695
  };