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,1352 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, C as n, D as r, Lt as i, Ut as a, X as o, Zt as ee, d as te, jt as s, q as ne, r as re } from "./lib-Dql7cqyA.js";
3
+ import { t as ie } from "./vue-ui-xy-CSTJzRkk.js";
4
+ import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
5
+ import { t as se } from "./useConfig-CIQZ6_r7.js";
6
+ import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
+ import { t as l } from "./BaseIcon-D8R6_sKH.js";
8
+ import { t as ce } from "./vue-ui-donut-BM9dMHXj.js";
9
+ import { Fragment as u, computed as d, createBlock as le, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as ue, defineAsyncComponent as de, nextTick as fe, normalizeClass as g, normalizeStyle as _, onMounted as pe, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, useCssVars as me, vModelSelect as he, vModelText as ge, watch as _e, withCtx as ve, withDirectives as ye, withKeys as be, withModifiers as xe } from "vue";
10
+ //#region src/components/vue-ui-table.vue
11
+ var Se = /* @__PURE__ */ e({ default: () => dn }), Ce = ["innerHTML"], we = ["data-is-open"], Te = { class: "vue-ui-table-export-hub-options" }, Ee = { class: "vue-ui-table-export-hub-option-wrapper" }, De = { class: "label" }, Oe = ["innerHTML"], ke = { class: "vue-ui-table-export-hub-option-wrapper" }, Ae = { class: "label" }, je = ["innerHTML"], Me = { class: "vue-ui-table-dialog-field" }, Ne = {
12
+ class: "label vue-ui-table-dialog-input-label",
13
+ style: { width: "100%" }
14
+ }, Pe = { style: { width: "fit-content" } }, Fe = { class: "vue-ui-table" }, Ie = { key: 0 }, Le = { key: 0 }, Re = { key: 1 }, ze = {
15
+ key: 0,
16
+ style: {
17
+ display: "flex",
18
+ "align-items": "center",
19
+ "justify-content": "flex-end"
20
+ }
21
+ }, Be = ["innerHTML"], Ve = {
22
+ key: 0,
23
+ style: { "margin-left": "3px" }
24
+ }, He = { key: 0 }, Ue = { class: "th-filter" }, We = {
25
+ key: 0,
26
+ class: "th-date"
27
+ }, Ge = { class: "date-wrapper--inputs" }, Ke = { class: "date-fieldset" }, qe = ["for"], Je = [
28
+ "id",
29
+ "onUpdate:modelValue",
30
+ "onInput"
31
+ ], Ye = { class: "date-fieldset" }, Xe = ["for"], Ze = [
32
+ "id",
33
+ "onUpdate:modelValue",
34
+ "onInput"
35
+ ], Qe = { class: "date-wrapper--button" }, $e = ["onClick"], et = ["innerHTML"], tt = ["innerHTML"], nt = ["innerHTML"], rt = ["onClick", "disabled"], it = [
36
+ "placeholder",
37
+ "onUpdate:modelValue",
38
+ "name"
39
+ ], at = ["onClick"], ot = ["innerHTML"], st = ["innerHTML"], ct = ["innerHTML"], lt = ["onClick", "innerHTML"], ut = ["innerHTML"], dt = {
40
+ key: 5,
41
+ class: "th-range-filter"
42
+ }, ft = ["for"], pt = [
43
+ "id",
44
+ "max",
45
+ "min",
46
+ "onUpdate:modelValue"
47
+ ], mt = [
48
+ "id",
49
+ "max",
50
+ "min",
51
+ "onUpdate:modelValue"
52
+ ], ht = ["for"], gt = ["onClick", "disabled"], _t = ["id"], vt = ["onClick"], yt = ["onClick", "onKeyup"], bt = [
53
+ "innerHTML",
54
+ "onClick",
55
+ "onKeyup"
56
+ ], xt = ["data-row"], St = ["data-row"], Ct = [
57
+ "data-row",
58
+ "onClick",
59
+ "onKeyup",
60
+ "id"
61
+ ], wt = ["innerHTML"], Tt = { key: 1 }, Et = { key: 2 }, Dt = { key: 5 }, Ot = ["innerHTML"], kt = { key: 0 }, At = { style: { "margin-left": "12px" } }, jt = { class: "format-num" }, Mt = { style: { "margin-left": "12px" } }, Nt = {
62
+ key: 0,
63
+ class: "format-num"
64
+ }, Pt = {
65
+ key: 1,
66
+ class: "format-num"
67
+ }, Ft = { key: 2 }, It = { style: { "margin-left": "12px" } }, Lt = {
68
+ key: 0,
69
+ class: "format-num"
70
+ }, Rt = {
71
+ key: 1,
72
+ class: "format-num"
73
+ }, zt = { key: 2 }, Bt = {
74
+ key: 1,
75
+ class: "vue-ui-table-paginator format-num"
76
+ }, Vt = {
77
+ key: 2,
78
+ class: "vue-ui-table-size-warning"
79
+ }, Ht = ["innerHTML"], Ut = {
80
+ key: 4,
81
+ class: "vue-ui-table-pagination format-num"
82
+ }, Wt = ["innerHTML", "disabled"], Gt = ["disabled"], Kt = {
83
+ for: "pageScroller",
84
+ style: { "font-size": "14px" }
85
+ }, qt = ["max", "value"], Jt = { key: 1 }, Yt = ["disabled"], Xt = ["innerHTML", "disabled"], Zt = { class: "vue-ui-table-chart-modal-options" }, Qt = ["innerHTML"], $t = ["innerHTML"], en = ["innerHTML"], tn = { style: {
86
+ width: "100%",
87
+ height: "fit-content"
88
+ } }, nn = { class: "vue-ui-table-fieldset" }, rn = { class: "vue-ui-table-fieldset-wrapper" }, an = [
89
+ "name",
90
+ "id",
91
+ "checked",
92
+ "onInput"
93
+ ], on = ["for"], sn = ["disabled"], cn = ["innerHTML"], ln = { style: {
94
+ width: "100%",
95
+ "margin-bottom": "12px"
96
+ } }, un = {
97
+ key: 2,
98
+ style: {
99
+ width: "100%",
100
+ "margin-bottom": "32px"
101
+ }
102
+ }, dn = /*#__PURE__*/ c({
103
+ __name: "vue-ui-table",
104
+ props: {
105
+ config: {
106
+ type: Object,
107
+ default() {
108
+ return {};
109
+ }
110
+ },
111
+ dataset: {
112
+ type: Object,
113
+ default() {
114
+ return {};
115
+ }
116
+ }
117
+ },
118
+ emits: ["page-change"],
119
+ setup(e, { expose: c, emit: Se }) {
120
+ me((e) => ({
121
+ v6b779b9d: Ln.value,
122
+ v71f90aa0: Rn.value,
123
+ v82bf5584: Hn.value,
124
+ bc0e3a90: zn.value,
125
+ v4bc5be6a: Un.value,
126
+ v542dfbf0: Wn.value,
127
+ v5935dfae: Bn.value,
128
+ v23648322: Vn.value,
129
+ v98d33e98: Gn.value
130
+ }));
131
+ let dn = de(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), C = e, fn = Se, { vue_ui_table: pn } = se(), mn = ne();
132
+ y(null);
133
+ let hn = y(null), gn = y(null), w = y({
134
+ height: 316,
135
+ type: "bar",
136
+ width: 512
137
+ }), T = y({
138
+ ASC: 1,
139
+ BAR: "bar",
140
+ DATE: "date",
141
+ DESC: -1,
142
+ DONUT: "donut",
143
+ LINE: "line",
144
+ NUMERIC: "numeric",
145
+ PERCENTAGE: "percentage",
146
+ TEXT: "text"
147
+ }), _n = y(100), vn = y(100);
148
+ y(0), y(0), y(400), y(200);
149
+ let yn = y({
150
+ CELL: "smart-td-selected",
151
+ FIRST_TD: "smart-td-selected-first",
152
+ LAST_TD: "smart-td-selected-last",
153
+ ROW: "smart-td-selected-neighbor"
154
+ }), bn = y(void 0), xn = y(void 0), E = y({
155
+ col: void 0,
156
+ rows: []
157
+ }), D = y(0), O = y(20), Sn = y(!1), Cn = y(!1), k = y({}), A = y({}), wn = y({}), j = y({}), M = y({}), N = y({}), P = y({}), F = y({}), I = y({}), Tn = y(C.config.rowsPerPage ? C.config.rowsPerPage : 25), En = y([.../* @__PURE__ */ new Set([
158
+ 10,
159
+ 25,
160
+ 50,
161
+ 100,
162
+ 250,
163
+ 500,
164
+ C.config.rowsPerPage ? C.config.rowsPerPage : 25,
165
+ C.dataset.body.length
166
+ ])].sort((e, t) => e - t)), Dn = y(void 0), L = y(void 0), On = y(void 0), R = y(!1), kn = y(0), An = y(""), jn = y(""), z = y(!1), B = y(JSON.parse(JSON.stringify(C.dataset.body)).map((e, t) => ({
167
+ ...e,
168
+ absoluteIndex: t
169
+ }))), Mn = y(JSON.parse(JSON.stringify(C.dataset.body)).map((e, t) => ({
170
+ ...e,
171
+ absoluteIndex: t
172
+ }))), V = y(JSON.parse(JSON.stringify(C.dataset.header)).map((e, t) => ({
173
+ average: Object.hasOwn(e, "average") ? e.average : !1,
174
+ decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
175
+ isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
176
+ isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
177
+ isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
178
+ isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
179
+ name: e.name,
180
+ percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
181
+ prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
182
+ rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
183
+ suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
184
+ sum: Object.hasOwn(e, "sum") ? e.sum : !1,
185
+ type: e.type,
186
+ index: t
187
+ }))), Nn = d(() => hn.value ? hn.value.getBoundingClientRect().height + 3 : 3), H = d(() => {
188
+ if (!Object.keys(C.config || {}).length) return pn;
189
+ let e = ee({
190
+ defaultConfig: pn,
191
+ userConfig: C.config
192
+ });
193
+ return n(e);
194
+ }), U = d(() => H.value.style.exportMenu), W = d(() => H.value.style.title), G = d(() => H.value.style.th), K = d(() => H.value.style.inputs), Pn = d(() => H.value.style.dropdowns), Fn = d(() => H.value.style.closeButtons), q = d(() => H.value.style.rows), J = d(() => H.value.style.pagination), Y = d(() => H.value.style.chart), In = d(() => H.value.style);
195
+ ae({
196
+ config: () => H.value,
197
+ dataset: () => C.dataset,
198
+ component: "VueUiTable",
199
+ rules: [oe.noHint]
200
+ });
201
+ let X = d(() => H.value.useCursorPointer), Ln = d(() => G.value.buttons.cancel.inactive.backgroundColor), Rn = d(() => G.value.buttons.cancel.inactive.color), zn = d(() => G.value.buttons.cancel.active.backgroundColor), Bn = d(() => G.value.buttons.filter.active.backgroundColor), Vn = d(() => G.value.buttons.filter.active.color), Hn = d(() => s(zn.value, .33)), Un = d(() => a(zn.value, 33)), Wn = d(() => s(Bn.value, .33)), Gn = d(() => a(Bn, 33)), Kn = d(() => [...V.value].filter((e) => e.type === T.value.DATE)), qn = d(() => ["", ...Kn.value.map((e) => e.name)]), Jn = d(() => {
202
+ let e = Kn.value.find((e) => e.name === An.value);
203
+ return e ? e.index : null;
204
+ }), Z = d(() => {
205
+ let e = [];
206
+ if (B.value.length) for (let t = 0; t < B.value.length; t += Tn.value) e.push(B.value.slice(t, t + Tn.value));
207
+ return e;
208
+ }), Yn = d(() => Z.value[D.value]), Xn = d(() => Jn.value == null ? [] : Yn.value.map((e) => e.td[Jn.value])), Zn = d(() => Object.keys(M.value).map((e) => ({
209
+ index: e,
210
+ name: C.dataset.header[e].name,
211
+ options: M.value[e]
212
+ }))), Qn = d(() => H.value.useChart && E.value.rows.length > 1), $n = d(() => C.dataset.header.map((e) => e.type).includes(T.value.NUMERIC)), Q = d(() => ({
213
+ arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,
214
+ bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,
215
+ chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,
216
+ chevronDown: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,
217
+ chevronLeft: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * 1.6}" height="${O.value * 1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 6l-6 6l6 6" /></svg>`,
218
+ chevronRight: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * 1.6}" height="${O.value * 1.6}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 6l6 6l-6 6" /></svg>`,
219
+ donut: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * .8}" height="${O.value * .8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,
220
+ export: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,
221
+ fileDownload: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,
222
+ filter: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,
223
+ move: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,
224
+ sort09: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
225
+ sort90: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
226
+ sortAZ: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
227
+ sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
228
+ sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,
229
+ table: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,
230
+ warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * .8}" height="${O.value * .8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,
231
+ grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`
232
+ })), er = d(() => B.value.map((e) => e.td)), tr = d(() => ({
233
+ sumPercentage: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
234
+ sumRegular: Number(E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
235
+ averagePercentage: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / E.value.rows.length * 100).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
236
+ averageRegular: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / E.value.rows.length).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString()
237
+ })), nr = y({
238
+ width: 1e3,
239
+ height: 500
240
+ });
241
+ function rr({ width: e, height: t }) {
242
+ nr.value = {
243
+ width: e,
244
+ height: t
245
+ };
246
+ }
247
+ let ir = d(() => {
248
+ if (!Qn.value) return [];
249
+ let e = nr.value.height, t = nr.value.width, n = t / E.value.rows.length, r = Math.max(...E.value.rows.map((e) => e.value)), i = Math.min(...E.value.rows.map((e) => e.value)), a = C.dataset.header[E.value.col].isPercentage && C.dataset.header[E.value.col].percentageTo, o = w.value.type === T.value.DONUT && L.value && L.value.name, ee = C.dataset.header[E.value.col].name + (a ? ` / ${C.dataset.header[N.value[E.value.col].referenceIndex].name}` : "") + (o ? ` ${H.value.translations.by} ${L.value.name}` : ""), ne = C.dataset.header[E.value.col].prefix, ie = C.dataset.header[E.value.col].suffix, ae = [{
250
+ name: ee,
251
+ series: E.value.rows.map((e) => e.value),
252
+ type: "line",
253
+ useProgression: !0,
254
+ smooth: Y.value.layout.line.smooth,
255
+ color: Y.value.layout.line.stroke,
256
+ useArea: Y.value.layout.line.useArea
257
+ }], oe = [{
258
+ name: ee,
259
+ series: E.value.rows.map((e) => e.value),
260
+ type: "bar",
261
+ useProgression: !0,
262
+ color: Y.value.layout.bar.fill
263
+ }], se = Y.value.modal.backgroundColor, c = re(se), l = C.dataset.header[E.value.col].decimals, ce = {
264
+ useCssAnimation: !1,
265
+ chart: {
266
+ width: t,
267
+ height: e - 250,
268
+ backgroundColor: se,
269
+ color: c,
270
+ labels: {
271
+ fontSize: 18,
272
+ prefix: ne,
273
+ suffix: ie
274
+ },
275
+ grid: {
276
+ stroke: s(c, .5),
277
+ labels: {
278
+ color: c,
279
+ xAxisLabels: {
280
+ color: c,
281
+ show: Xn.value.length,
282
+ values: Xn.value,
283
+ datetimeFormatter: Y.value.layout.datetimeFormatter,
284
+ showOnlyAtModulo: Y.value.layout.timeLabels.showOnlyAtModulo,
285
+ modulo: Y.value.layout.timeLabels.modulo
286
+ }
287
+ }
288
+ },
289
+ highlighter: { color: c },
290
+ legend: {
291
+ color: c,
292
+ show: !1
293
+ },
294
+ title: {
295
+ text: ee,
296
+ color: c,
297
+ textAlign: "center",
298
+ fontSize: 18
299
+ },
300
+ tooltip: {
301
+ showTimeLabel: Xn.value.length,
302
+ backgroundOpacity: 30,
303
+ color: c,
304
+ backgroundColor: se,
305
+ showPercentage: !1,
306
+ roundingValue: l
307
+ },
308
+ userOptions: { buttons: {
309
+ pdf: !1,
310
+ csv: !1,
311
+ table: !1,
312
+ annotator: !1
313
+ } },
314
+ zoom: {
315
+ show: Y.value.layout.zoom.show,
316
+ autoFit: Y.value.layout.zoom.autoFit,
317
+ focusOnDrag: !0,
318
+ minimap: { show: !0 }
319
+ }
320
+ },
321
+ line: {
322
+ labels: {
323
+ show: !0,
324
+ color: c,
325
+ rounding: l
326
+ },
327
+ dot: {
328
+ useSerieColor: !1,
329
+ fill: Y.value.layout.line.plot.fill,
330
+ strokeWidth: Y.value.layout.line.plot.strokeWidth
331
+ }
332
+ },
333
+ bar: {
334
+ useGradient: !1,
335
+ border: {
336
+ useSerieColor: !1,
337
+ stroke: Y.value.layout.bar.stroke,
338
+ strokeWidth: Y.value.layout.bar.strokeWidth
339
+ },
340
+ labels: {
341
+ show: !0,
342
+ color: c,
343
+ rounding: l
344
+ }
345
+ }
346
+ }, u = i >= 0 ? 0 : Math.abs(i), d = r + u, le = C.dataset.header[E.value.col].isPercentage, f = E.value.rows.map((t, r) => ({
347
+ x: n * r + n / 2,
348
+ y: (1 - (t.value + u) / d) * e,
349
+ value: le ? t.value * 100 : t.value,
350
+ suffix: le ? "%" : C.dataset.header[E.value.col].suffix ? C.dataset.header[E.value.col].suffix : "",
351
+ prefix: C.dataset.header[E.value.col].prefix ? C.dataset.header[E.value.col].prefix : "",
352
+ index: t.index,
353
+ absoluteValue: le ? Math.abs(t.value) * 100 : Math.abs(t.value)
354
+ }));
355
+ return {
356
+ donutConfig: {
357
+ useCssAnimation: !1,
358
+ userOptions: {
359
+ position: "left",
360
+ buttons: {
361
+ pdf: !1,
362
+ csv: !1,
363
+ table: !1,
364
+ annotator: !1
365
+ }
366
+ },
367
+ style: { chart: {
368
+ backgroundColor: se,
369
+ color: c,
370
+ layout: {
371
+ curvedMarkers: !0,
372
+ donut: { strokeWidth: 64 },
373
+ labels: {
374
+ dataLabels: {
375
+ suffix: le ? "%" : "",
376
+ prefix: ne
377
+ },
378
+ value: { rounding: l },
379
+ percentage: {
380
+ color: c,
381
+ rounding: l
382
+ },
383
+ name: { color: c },
384
+ hollow: {
385
+ average: {
386
+ color: c,
387
+ text: H.value.translations.average,
388
+ value: { color: c }
389
+ },
390
+ total: {
391
+ color: c,
392
+ offsetY: -12,
393
+ text: H.value.translations.total,
394
+ value: {
395
+ color: c,
396
+ offsetY: -12
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ legend: {
403
+ backgroundColor: se,
404
+ color: c,
405
+ roundingValue: l,
406
+ roundingPercentage: l
407
+ },
408
+ padding: {
409
+ left: 12,
410
+ right: 12
411
+ },
412
+ title: {
413
+ text: ee,
414
+ color: c,
415
+ fontSize: 18
416
+ },
417
+ tooltip: {
418
+ backgroundOpacity: 30,
419
+ color: c,
420
+ backgroundColor: se,
421
+ roundingValue: l,
422
+ roundingValue: l
423
+ }
424
+ } }
425
+ },
426
+ xyConfig: ce,
427
+ xyDatasetLine: ae,
428
+ xyDatasetBar: oe,
429
+ progression: f.length >= 2 && te(f)
430
+ };
431
+ });
432
+ function ar() {
433
+ let e = L.value.options.map((e, t) => ({
434
+ name: e,
435
+ color: i[t] || i[t % i.length],
436
+ values: [Yn.value.filter((t, n) => t.td[L.value.index] === e && E.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[E.value.col]).reduce((e, t) => Math.abs(e) + Math.abs(t), 0)],
437
+ absoluteValue: Yn.value.filter((t, n) => t.td[L.value.index] === e && E.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[E.value.col]).reduce((e, t) => e + t, 0)
438
+ })).sort((e, t) => t.value - e.value);
439
+ bn.value = e, fe(() => {
440
+ w.value.type = T.value.DONUT, z.value = !1;
441
+ });
442
+ }
443
+ function or(e, t) {
444
+ return !A.value[e] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![T.value.DATE].includes(t.type);
445
+ }
446
+ function sr(e = "all") {
447
+ let n = C.dataset.header.map((e) => e.name), i = e === "all" ? B.value.map((e) => e.td) : Yn.value.map((e) => e.td), a = [n].concat(i), o = r(a);
448
+ t({
449
+ csvContent: o,
450
+ title: jn.value
451
+ });
452
+ }
453
+ function cr() {
454
+ let e = document.getElementsByClassName("th-dropdown");
455
+ e.length && Array.from(e).forEach((e) => {
456
+ e.dataset.isOpen = !1;
457
+ });
458
+ }
459
+ function lr(e, t) {
460
+ let n;
461
+ clearTimeout(n), n = setTimeout(e, t);
462
+ }
463
+ function ur() {
464
+ let e = document.getElementsByClassName(`tr_${mn}`);
465
+ Array.from(e).forEach((e) => {
466
+ Array.from(e.getElementsByTagName("td")).forEach((e) => {
467
+ e.dataset.row === "even" ? (e.style.background = q.value.even.backgroundColor, e.style.color = q.value.even.color) : (e.style.background = q.value.odd.backgroundColor, e.style.color = q.value.odd.color);
468
+ });
469
+ }), Array.from(e).forEach((e) => e.dataset.selected = "false"), D.value > Z.value.length - 1 && (D.value = Z.value.length - 1), R.value = !1, bn.value = void 0, Dn.value = void 0, w.value.type = T.value.BAR, E.value = {
470
+ col: void 0,
471
+ rows: []
472
+ }, _n.value = 100, vn.value = 100;
473
+ }
474
+ function dr(e, t) {
475
+ B.value = e.filter((e) => e.td[t] >= P.value[t].min && e[t] <= P.value[t].max);
476
+ }
477
+ function fr(e, t) {
478
+ if (I.value[t] === T.value.ASC && (e = e.sort((e, n) => e[t] - n[t])), I.value[t] === T.value.DESC) e = e.sort((e, n) => n[t] - e[t]);
479
+ else return 0;
480
+ }
481
+ function pr() {
482
+ ur(), Object.keys(P.value).forEach((e) => {
483
+ dr(B.value, e);
484
+ }), Object.keys(I.value).forEach((e) => {
485
+ fr(B.value, e);
486
+ }), xn.value !== void 0 && fr(B.value, xn.value), C.dataset.header.forEach((e, t) => {
487
+ if (e.isPercentage) {
488
+ let e = N.value[t].referenceIndex, n = B.value.map((t) => t.td[e]).reduce((e, t) => e + t, 0);
489
+ B.value.forEach((r) => {
490
+ r.td[t] = r.td[e] / n;
491
+ });
492
+ }
493
+ }), D.value > Z.value.length - 1 && (D.value = Z.value.length - 1), [-1].includes(D.value) && (D.value = 0);
494
+ }
495
+ function mr() {
496
+ B.value = Mn.value.filter((e) => {
497
+ for (let t in F.value) if (!e.td[t].toUpperCase().includes(F.value[t].toUpperCase())) return !1;
498
+ for (let t in M.value) if (!M.value[t].some((n) => n === e.td[t])) return !1;
499
+ for (let t in k.value) {
500
+ let n = new Date(e.td[t]), r = new Date(k.value[t].from), i = new Date(k.value[t].to);
501
+ if (n < r || n > i) return !1;
502
+ }
503
+ return !0;
504
+ }), pr();
505
+ }
506
+ function hr(e) {
507
+ return er.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0) / B.value.length;
508
+ }
509
+ function gr(e) {
510
+ let t = C.dataset.body.map((t) => new Date(t.td[e])), n = new Date(Math.min(...t)), r = new Date(Math.max(...t)), i = n.getFullYear(), a = r.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), ee = String(r.getMonth() + 1).padStart(2, "0"), te = String(n.getDate()).padStart(2, "0"), s = String(r.getDate()).padStart(2, "0");
511
+ return {
512
+ from: `${i}-${o}-${te}`,
513
+ to: `${a}-${ee}-${s}`
514
+ };
515
+ }
516
+ function $(e) {
517
+ return [...new Set(C.dataset.body.map((t) => t.td[e]))];
518
+ }
519
+ function _r(e) {
520
+ return er.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0);
521
+ }
522
+ function vr(e) {
523
+ return e.includes(NaN);
524
+ }
525
+ function yr(e, t) {
526
+ return !M.value[t] || M.value[t].includes(e);
527
+ }
528
+ function br(e) {
529
+ return !isNaN(Number(String(e).replaceAll("%", "")));
530
+ }
531
+ function xr(e, t) {
532
+ let n = t.isSort, r = t.isSearch, i = t.isMultiselect && M.value[e], a = t.rangeFilter, o = (e) => {
533
+ if (a && P.value[e]) return Math.round(P.value[e].min) === j.value[e].min && Math.round(P.value[e].max) === j.value[e].max;
534
+ };
535
+ if (n && r && i && a) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && M.value[e].length === $(e).length && o(e);
536
+ if (n && r && i) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && M.value[e].length === $(e).length;
537
+ if (n && r && a) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && o(e);
538
+ if (n && r) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]);
539
+ if (n && i && a) return [void 0].includes(I.value[e]) && M.value[e].length === $(e).length && o(e);
540
+ if (n && i) return [void 0].includes(I.value[e]) && M.value[e].length === $(e).length;
541
+ if (r && i && a) return ["", void 0].includes(F.value[e]) && M.value[e].length === $(e).length && o(e);
542
+ if (r && i) return ["", void 0].includes(F.value[e]) && M.value[e].length === $(e).length;
543
+ if (r && a) return ["", void 0].includes(F.value[e]) && o(e);
544
+ if (r) return ["", void 0].includes(F.value[e]);
545
+ if (n && a) return [void 0].includes(I.value[e]) && o(e);
546
+ if (n) return [void 0].includes(I.value[e]);
547
+ if (i && a) return M.value[e].length === $(e).length && o(e);
548
+ if (i) return M.value[e].length === $(e).length;
549
+ }
550
+ function Sr() {
551
+ return {
552
+ totalPages: Z.value.length,
553
+ itemsPerPage: Tn.value,
554
+ currentPage: D.value,
555
+ currentPageData: Yn.value.map((e) => e.td)
556
+ };
557
+ }
558
+ c({ getCurrentPageData: Sr });
559
+ function Cr() {
560
+ fn("page-change", Sr());
561
+ }
562
+ let wr = y(null);
563
+ function Tr(e) {
564
+ if (ur(), e === "next" && D.value < Z.value.length) {
565
+ if (D.value + 1 > Z.value.length - 1) return;
566
+ D.value += 1;
567
+ } else if (e === "previous" && D.value >= 1) --D.value;
568
+ else {
569
+ if (e - 1 < 0 || e > Z.value.length || e === "previous") return;
570
+ D.value = e - 1;
571
+ }
572
+ Cr(), wr.value && wr.value.scrollTo({
573
+ top: 0,
574
+ left: 0,
575
+ behavior: "smooth"
576
+ });
577
+ }
578
+ function Er(e) {
579
+ e.preventDefault();
580
+ let t = e.keyCode;
581
+ if (![
582
+ 38,
583
+ 40,
584
+ 37,
585
+ 39
586
+ ].includes(t)) return;
587
+ let n = e.target.id.match(/cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/), r = parseInt(n[1]), i = parseInt(n[2]), a = document.getElementById(`cell_${r}_${i + 1}_${mn}`), o = document.getElementById(`cell_${r}_${i - 1}_${mn}`), ee = document.getElementById(`cell_${r + 1}_${i}_${mn}`), te = document.getElementById(`cell_${r - 1}_${i}_${mn}`), s;
588
+ switch (!0) {
589
+ case t === 39:
590
+ s = a;
591
+ break;
592
+ case t === 37:
593
+ s = o;
594
+ break;
595
+ case t === 38:
596
+ s = te;
597
+ break;
598
+ case t === 40:
599
+ s = ee;
600
+ break;
601
+ default: return;
602
+ }
603
+ s && (s.focus(), s.scrollIntoView({
604
+ behavior: "smooth",
605
+ block: "center"
606
+ }));
607
+ }
608
+ function Dr(e) {
609
+ let t = 0;
610
+ for (let n = 0; n < e.length; n += 1) t += e.charCodeAt(n);
611
+ return t;
612
+ }
613
+ async function Or() {
614
+ return new Promise((e) => {
615
+ let t = [];
616
+ V.value.forEach((e, n) => {
617
+ if (e.isSearch && Object.assign(F.value, { [n]: "" }), e.isMultiselect && Object.assign(M.value, { [n]: $(n) }), e.type === T.value.DATE && (Object.assign(k.value, { [n]: gr(n) }), Object.assign(wn.value, { [n]: !1 })), (e.isPercentage || e.percentageTo) && Object.assign(N.value, { [n]: {
618
+ reference: e.percentageTo,
619
+ referenceIndex: C.dataset.header.map((e) => e.name).indexOf(e.percentageTo)
620
+ } }), e.rangeFilter && (Object.assign(P.value, { [n]: {
621
+ min: Math.round(Math.min(...C.dataset.body.map((e) => e.td).map((e) => e[n]))),
622
+ max: Math.round(Math.max(...C.dataset.body.map((e) => e.td).map((e) => e[n])))
623
+ } }), Object.assign(j.value, { [n]: {
624
+ min: Math.round(Math.min(...C.dataset.body.map((e) => e.td).map((e) => e[n]))),
625
+ max: Math.round(Math.max(...C.dataset.body.map((e) => e.td).map((e) => e[n])))
626
+ } })), e.isPercentage) {
627
+ let r = C.dataset.header.map((e) => e.name).indexOf(e.percentageTo), i = C.dataset.body.map((e) => e.td[r]).reduce((e, t) => e + t, 0);
628
+ t.push([
629
+ n,
630
+ r,
631
+ i
632
+ ]);
633
+ }
634
+ e.type === T.value.NUMERIC && !e.isPercentage && Object.assign(A.value, { [n]: vr(C.dataset.body.map((e) => Number(e.td[n]))) });
635
+ }), B.value.forEach((e, n) => {
636
+ t.map((t) => {
637
+ let [n, r, i] = t;
638
+ e.td[n] = e.td[r] / i;
639
+ }), e.td.forEach((t, r) => {
640
+ C.dataset.header[r].type === T.value.TEXT && C.dataset.header[r].isSearch && (e[r] = Dr(t)), C.dataset.header[r].type === T.value.DATE && (e[r] = new Date(t).getTime()), C.dataset.header[r].type === T.value.NUMERIC && (e[r] = isNaN(Number(t)) ? r : t), Mn.value[n][r] = e[r];
641
+ });
642
+ }), e(!0);
643
+ });
644
+ }
645
+ function kr(e, t) {
646
+ return new Promise((n, r) => {
647
+ e().then((e) => {
648
+ try {
649
+ n(t(e));
650
+ } catch (e) {
651
+ r(e);
652
+ }
653
+ }).catch((e) => {
654
+ r(e);
655
+ });
656
+ });
657
+ }
658
+ async function Ar(e) {
659
+ k.value[e] = {
660
+ from: gr(e).from,
661
+ to: gr(e).to
662
+ }, wn.value[e] = !1, await fe(), mr();
663
+ }
664
+ function jr(e, t, n) {
665
+ let r = n.currentTarget;
666
+ clearTimeout(gn.value), r.classList.add("clicked"), gn.value = setTimeout(() => {
667
+ r.classList.remove("clicked");
668
+ }, 200), xn.value = void 0, t.rangeFilter && (P.value[e].min = j.value[e].min, P.value[e].max = j.value[e].max), t.isMultiselect ? (M.value[e] = $(e), t.type === T.value.TEXT && (I.value[e] = void 0), t.isSearch && (F.value[e] = "")) : t.type === T.value.NUMERIC ? I.value[e] = void 0 : t.type === T.value.TEXT ? (I.value[e] = void 0, F.value[e] = "") : t.type === T.value.DATE && (I.value[e] = void 0), mr();
669
+ }
670
+ function Mr({ td: e, rowIndex: t, colIndex: n, headerType: r, event: i }) {
671
+ if (r !== T.value.NUMERIC || isNaN(Number(e))) {
672
+ ur();
673
+ return;
674
+ }
675
+ E.value.col !== n && ur();
676
+ let a = i.currentTarget.parentNode;
677
+ E.value.col = n, E.value.rows.map((e) => e.index).includes(t) ? (a.dataset.selected = "false", E.value.rows = E.value.rows.filter((e) => e.index !== t), i.currentTarget.classList.remove(yn.value.CELL), Array.from(a.children).forEach((e, t) => {
678
+ e.dataset.row === "even" ? (e.style.background = q.value.even.backgroundColor, e.style.color = q.value.even.olor) : (e.style.background = q.value.odd.backgroundColor, e.style.color = q.value.odd.color);
679
+ }), i.currentTarget.dataset.row === "even" ? (i.currentTarget.style.background = q.value.even.backgroundColor, i.currentTarget.style.color = q.value.even.color) : (i.currentTarget.style.background = q.value.odd.backgroundColor, i.currentTarget.style.color = q.value.odd.color)) : (a.dataset.selected = "true", E.value.rows.push({
680
+ index: t,
681
+ value: e
682
+ }), Array.from(a.children).forEach((e, t) => {
683
+ e.dataset.row === "even" ? (e.style.background = q.value.even.selectedNeighbors.backgroundColor, e.style.color = q.value.even.selectedNeighbors.color) : (e.style.background = q.value.odd.selectedNeighbors.backgroundColor, e.style.color = q.value.odd.selectedNeighbors.color);
684
+ }), i.currentTarget.dataset.row === "odd" ? (i.currentTarget.style.background = q.value.odd.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.odd.selectedCell.color) : (i.currentTarget.style.background = q.value.even.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.even.selectedCell.color)), E.value.rows = E.value.rows.sort((e, t) => e.index - t.index), w.value.type === T.value.DONUT && E.value.rows.length > 0 && ar();
685
+ }
686
+ function Nr(e) {
687
+ E.value.col === e ? (Dn.value = void 0, ur()) : (Yn.value.forEach((t, n) => {
688
+ Mr({
689
+ td: t.td[e],
690
+ rowIndex: n,
691
+ colIndex: e,
692
+ headerType: T.value.NUMERIC,
693
+ event: { currentTarget: document.getElementById(`cell_${n}_${e}_${mn}`) }
694
+ });
695
+ }), Dn.value = e);
696
+ }
697
+ async function Pr(e, t) {
698
+ M.value[t].includes(e) ? M.value[t] = M.value[t].filter((t) => t !== e) : M.value[t].push(e), await fe(), mr();
699
+ }
700
+ function Fr(e) {
701
+ wn.value[e] = gr(e).from !== k.value[e].from || gr(e).to !== k.value[e].to;
702
+ }
703
+ function Ir(e, t) {
704
+ xn.value = e;
705
+ let n = t.currentTarget;
706
+ clearTimeout(gn.value), n.classList.add("clicked"), gn.value = setTimeout(() => {
707
+ n.classList.remove("clicked");
708
+ }, 200), I.value[e] === 1 ? I.value[e] = T.value.DESC : I.value[e] = T.value.ASC, pr();
709
+ }
710
+ function Lr(e, t, n) {
711
+ let r = n.currentTarget;
712
+ clearTimeout(gn.value), r.classList.add("clicked"), gn.value = setTimeout(() => {
713
+ r.classList.remove("clicked");
714
+ }, 200);
715
+ let i = document.getElementById(`th_dropdown_${e}`);
716
+ i.dataset.isOpen === "false" ? i.dataset.isOpen = "true" : i.dataset.isOpen = "false";
717
+ }
718
+ function Rr(e) {
719
+ ur(), !e || !e.target.value ? D.value = 0 : D.value = Number(e.target.value), Cr();
720
+ }
721
+ let zr = y(null);
722
+ pe(() => {
723
+ if (C.dataset.header.length === 0) throw Error("vue-ui-table error: missing header data.\nProvide an array of objects of type:\n{\n name: string;\n type: string; ('text' | 'numeric' | 'date')\n average: boolean;\n decimals: number | undefined;\n sum: boolean;\n isSort:boolean;\n isSearch: boolean;\n isMultiselect: boolean;\n isPercentage: boolean;\n percentageTo: string; (or '')\n}");
724
+ if (C.dataset.body.length === 0) throw Error("vue-ui-table error: missing body data");
725
+ Cn.value = !0, kr(Or, async () => {
726
+ await fe(), Cn.value = !1;
727
+ }), document.addEventListener("keydown", (e) => {
728
+ let t = document.activeElement;
729
+ (t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
730
+ }), jn.value = U.value.filename, An.value = Kn.value[0]?.name ?? "";
731
+ }), _e(() => C.dataset, (e) => {
732
+ Cn.value = !0, B.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
733
+ ...e,
734
+ absoluteIndex: t
735
+ })), Mn.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
736
+ ...e,
737
+ absoluteIndex: t
738
+ })), V.value = JSON.parse(JSON.stringify(e.header)).map((e, t) => ({
739
+ average: Object.hasOwn(e, "average") ? e.average : !1,
740
+ decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
741
+ isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
742
+ isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
743
+ isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
744
+ isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
745
+ name: e.name,
746
+ percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
747
+ prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
748
+ rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
749
+ suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
750
+ sum: Object.hasOwn(e, "sum") ? e.sum : !1,
751
+ type: e.type,
752
+ index: t
753
+ })), E.value = {
754
+ col: void 0,
755
+ rows: []
756
+ }, Dn.value = void 0, Tn.value = C.config.rowsPerPage ? C.config.rowsPerPage : 25, N.value = {}, k.value = {}, wn.value = {}, A.value = {}, j.value = {}, P.value = {}, M.value = {}, F.value = {}, I.value = {}, R.value = !1, bn.value = void 0, L.value = void 0, On.value = void 0, z.value = !1, E.value.col = void 0, E.value.rows = [], kr(Or, async () => {
757
+ Rr(), await fe(), Cn.value = !1;
758
+ });
759
+ }, {
760
+ immediate: !0,
761
+ deep: !0
762
+ });
763
+ let Br = y(null);
764
+ return _e(Sn, (e) => {
765
+ e && Br.value && Br.value.focus();
766
+ }), _e(R, (e) => {
767
+ e ? zr.value && zr.value.open() : zr.value && zr.value.close();
768
+ }), (t, n) => (v(), p("div", {
769
+ class: "vue-data-ui-component vue-ui-table-main",
770
+ style: _(`font-family: ${H.value.fontFamily}`)
771
+ }, [
772
+ U.value.show ? (v(), p("div", {
773
+ key: 0,
774
+ class: "vue-ui-table-export-hub",
775
+ style: _({ top: Nn.value + "px" })
776
+ }, [m("button", {
777
+ onClick: n[0] ||= (e) => Sn.value = !Sn.value,
778
+ innerHTML: Q.value.export,
779
+ style: _(`background:${U.value.backgroundColor};color:${U.value.color};cursor:${X.value ? "pointer" : "default"}`)
780
+ }, null, 12, Ce), m("div", {
781
+ class: "vue-ui-table-export-hub-dropdown",
782
+ "data-is-open": Sn.value || "false",
783
+ style: _(`background:${U.value.backgroundColor};color:${U.value.color}`)
784
+ }, [
785
+ n[24] ||= m("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1),
786
+ m("button", {
787
+ class: "close-dropdown",
788
+ onClick: n[1] ||= (e) => Sn.value = !1,
789
+ style: _(`background:${Fn.value.backgroundColor};color:${Fn.value.color};border-radius:${Fn.value.borderRadius}`)
790
+ }, " ✖ ", 4),
791
+ m("div", Te, [
792
+ m("div", Ee, [m("div", De, x(H.value.translations.exportAllLabel) + " (" + x(B.value.length) + ") ", 1), m("button", {
793
+ id: "exportAll",
794
+ onClick: n[2] ||= (e) => sr("all"),
795
+ style: _(`background:${U.value.buttons.backgroundColor};color:${U.value.buttons.color};cursor:${X.value ? "pointer" : "default"}`)
796
+ }, [m("div", { innerHTML: Q.value.fileDownload }, null, 8, Oe), m("span", null, x(H.value.translations.exportAllButton), 1)], 4)]),
797
+ m("div", ke, [m("div", Ae, x(H.value.translations.exportPageLabel), 1), m("button", {
798
+ id: "exportPage",
799
+ onClick: n[3] ||= (e) => sr("page"),
800
+ style: _(`background:${U.value.buttons.backgroundColor};color:${U.value.buttons.color};cursor:${X.value ? "pointer" : "default"}`)
801
+ }, [m("div", { innerHTML: Q.value.fileDownload }, null, 8, je), m("span", null, x(H.value.translations.exportPageButton), 1)], 4)]),
802
+ m("div", Me, [m("label", Ne, [m("span", Pe, x(H.value.translations.filename), 1), ye(m("input", {
803
+ name: "filename",
804
+ ref_key: "filenameInputRef",
805
+ ref: Br,
806
+ onKeydown: n[4] ||= be(xe(() => {}, ["stop"]), ["space"]),
807
+ pattern: ".*",
808
+ class: "vue-ui-table-dialog-input",
809
+ type: "text",
810
+ "onUpdate:modelValue": n[5] ||= (e) => jn.value = e
811
+ }, null, 544), [[ge, jn.value]])]), jn.value ? (v(), p("button", {
812
+ key: 0,
813
+ class: "vue-ui-table-dialog-field-button",
814
+ onClick: n[6] ||= (e) => jn.value = "",
815
+ style: _({ cursor: X.value ? "pointer" : "default" })
816
+ }, [ue(l, {
817
+ name: "close",
818
+ stroke: U.value.color,
819
+ size: 18
820
+ }, null, 8, ["stroke"])], 4)) : f("", !0)])
821
+ ])
822
+ ], 12, we)], 4)) : f("", !0),
823
+ m("div", {
824
+ class: "vue-ui-table__wrapper",
825
+ style: _(`max-height:${H.value.maxHeight}px`),
826
+ ref_key: "tableWrapper",
827
+ ref: wr
828
+ }, [m("table", Fe, [
829
+ W.value.text ? (v(), p("caption", {
830
+ key: 0,
831
+ class: "vue-ui-table__caption",
832
+ ref_key: "tableCaption",
833
+ ref: hn,
834
+ style: _({
835
+ textAlign: W.value.textAlign,
836
+ paddingLeft: W.value.paddingLeft + "px",
837
+ paddingRight: W.value.paddingRight + "px",
838
+ backgroundColor: W.value.backgroundColor,
839
+ boxShadow: `${W.value.backgroundColor} -1px 0px 0px 0px`
840
+ })
841
+ }, [m("span", { style: _({
842
+ fontSize: W.value.fontSize + "px",
843
+ fontWeight: W.value.bold ? "bold" : "normal",
844
+ color: W.value.color
845
+ }) }, x(W.value.text), 5), W.value.subtitle.text ? (v(), p(u, { key: 0 }, [n[25] ||= m("br", null, null, -1), m("span", { style: _({
846
+ fontSize: W.value.subtitle.fontSize,
847
+ fontWeight: W.value.subtitle.bold ? "bold" : "normal",
848
+ color: W.value.subtitle.color
849
+ }) }, x(W.value.subtitle.text), 5)], 64)) : f("", !0)], 4)) : f("", !0),
850
+ m("thead", {
851
+ id: "tableHead",
852
+ class: "vue-ui-table__head",
853
+ style: _({
854
+ background: G.value.backgroundColor,
855
+ boxShadow: `-1px 0 0 ${G.value.backgroundColor}`,
856
+ top: Nn.value - 3 + "px"
857
+ })
858
+ }, [
859
+ m("tr", null, [n[26] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
860
+ key: `thead_${t}`,
861
+ style: _(`overflow: visible;background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`),
862
+ class: g({ "th-has-nan": A.value[t] })
863
+ }, [$n.value && ([T.value.TEXT, T.value.DATE].includes(e.type) || e.isPercentage) ? (v(), p("span", Ie, [h(x(e.name) + " ", 1), e.isPercentage ? (v(), p("span", Le, " / " + x(e.percentageTo), 1)) : f("", !0)])) : (v(), p("span", Re, x(e.name), 1))], 6))), 128))]),
864
+ $n.value ? (v(), p(u, { key: 0 }, [
865
+ m("tr", null, [n[27] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
866
+ key: `thead_${t}`,
867
+ class: g({
868
+ "th-numeric": !0,
869
+ "th-has-nan": A.value[t]
870
+ }),
871
+ style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
872
+ }, [e.sum && !A.value[t] ? (v(), p("span", ze, [
873
+ m("span", {
874
+ innerHTML: Q.value.sum,
875
+ style: {
876
+ "margin-bottom": "-4px",
877
+ "margin-right": "3px"
878
+ }
879
+ }, null, 8, Be),
880
+ h(" " + x(S(o)({
881
+ p: e.prefix,
882
+ v: Number(_r(t)),
883
+ s: e.suffix,
884
+ r: e.decimals
885
+ })) + " ", 1),
886
+ N.value[t] && e.percentageTo && !e.isPercentage ? (v(), p("span", Ve, " (" + x(isNaN(_r(t) / _r(N.value[t].referenceIndex)) ? "-" : S(o)({
887
+ v: _r(t) / _r(N.value[t].referenceIndex) * 100,
888
+ s: "%",
889
+ r: e.decimals
890
+ })) + ") ", 1)) : f("", !0)
891
+ ])) : f("", !0)], 6))), 128))]),
892
+ m("tr", null, [n[28] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
893
+ key: `thead_${t}`,
894
+ class: g({
895
+ "th-numeric": !0,
896
+ "th-has-nan": A.value[t]
897
+ }),
898
+ style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
899
+ }, [e.average && !A.value[t] ? (v(), p("span", He, " ~ " + x(isNaN(hr(t)) ? "" : S(o)({
900
+ p: e.prefix,
901
+ v: Number(hr(t)),
902
+ s: e.suffix,
903
+ r: e.decimals
904
+ })), 1)) : f("", !0)], 6))), 128))]),
905
+ m("tr", null, [n[31] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
906
+ key: `thead_${t}`,
907
+ class: g({ "th-has-nan": A.value[t] }),
908
+ style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
909
+ }, [m("div", Ue, [
910
+ e.type === T.value.DATE && k.value[t] ? (v(), p("div", We, [m("div", Ge, [m("div", Ke, [m("label", { for: `from_${t}` }, x(H.value.translations.from), 9, qe), ye(m("input", {
911
+ id: `from_${t}`,
912
+ type: "date",
913
+ "onUpdate:modelValue": (e) => k.value[t].from = e,
914
+ onInput: (e) => {
915
+ mr(), Fr(t);
916
+ },
917
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
918
+ }, null, 44, Je), [[ge, k.value[t].from]])]), m("div", Ye, [m("label", { for: `to_${t}` }, x(H.value.translations.to), 9, Xe), ye(m("input", {
919
+ id: `to_${t}`,
920
+ type: "date",
921
+ "onUpdate:modelValue": (e) => k.value[t].to = e,
922
+ onInput: (e) => {
923
+ mr(), Fr(t);
924
+ },
925
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
926
+ }, null, 44, Ze), [[ge, k.value[t].to]])])]), m("div", Qe, [e.isSort ? (v(), p("button", {
927
+ key: 0,
928
+ onClick: (e) => Ir(t, e),
929
+ class: g({ "th-button-active": [T.value.DESC, T.value.ASC].includes(I.value[t]) }),
930
+ style: _(`cursor:${X.value ? "pointer" : "default"}; background:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.color}`)
931
+ }, [I.value[t] === T.value.ASC ? (v(), p("span", {
932
+ key: 0,
933
+ innerHTML: [T.value.DATE].includes(e.type) ? Q.value.sort09 : Q.value.sortAZ
934
+ }, null, 8, et)) : I.value[t] === T.value.DESC ? (v(), p("span", {
935
+ key: 1,
936
+ innerHTML: [T.value.DATE].includes(e.type) ? Q.value.sort90 : Q.value.sortZA
937
+ }, null, 8, tt)) : (v(), p("span", {
938
+ key: 2,
939
+ innerHTML: Q.value.arrowSort
940
+ }, null, 8, nt))], 14, $e)) : f("", !0), m("button", {
941
+ onClick: (n) => {
942
+ Ar(t), jr(t, e, n);
943
+ },
944
+ disabled: !wn.value[t] && xr(t, e),
945
+ class: "th-reset",
946
+ style: _({ cursor: X.value ? "pointer" : "default" })
947
+ }, " ✖ ", 12, rt)])])) : f("", !0),
948
+ e.isSearch ? ye((v(), p("input", {
949
+ key: 1,
950
+ placeholder: H.value.translations.inputPlaceholder,
951
+ "onUpdate:modelValue": (e) => F.value[t] = e,
952
+ onInput: n[7] ||= (e) => lr(mr, 400),
953
+ name: `search_${t}`,
954
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
955
+ }, null, 44, it)), [[ge, F.value[t]]]) : f("", !0),
956
+ !A.value[t] && e.isSort && e.type !== T.value.DATE ? (v(), p("button", {
957
+ key: 2,
958
+ onClick: (e) => Ir(t, e),
959
+ class: g({ "th-button-active": [T.value.DESC, T.value.ASC].includes(I.value[t]) }),
960
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.color}`)
961
+ }, [I.value[t] === T.value.ASC ? (v(), p("span", {
962
+ key: 0,
963
+ innerHTML: [T.value.NUMERIC].includes(e.type) ? Q.value.sort09 : Q.value.sortZA
964
+ }, null, 8, ot)) : I.value[t] === T.value.DESC ? (v(), p("span", {
965
+ key: 1,
966
+ innerHTML: [T.value.NUMERIC].includes(e.type) ? Q.value.sort90 : Q.value.sortAZ
967
+ }, null, 8, st)) : (v(), p("span", {
968
+ key: 2,
969
+ innerHTML: Q.value.arrowSort
970
+ }, null, 8, ct))], 14, at)) : f("", !0),
971
+ e.isMultiselect ? (v(), p("button", {
972
+ key: 3,
973
+ onClick: (n) => Lr(t, e, n),
974
+ innerHTML: Q.value.filter,
975
+ class: g({ "th-button-active": M.value[t] && M.value[t].length !== $(t).length }),
976
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${M.value[t] && M.value[t].length !== $(t).length ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${M.value[t] && M.value[t].length !== $(t).length ? "" : G.value.buttons.filter.inactive.color}`)
977
+ }, null, 14, lt)) : f("", !0),
978
+ E.value.col === t && Qn.value ? (v(), p("button", {
979
+ key: 4,
980
+ onClick: n[8] ||= (e) => R.value = !R.value,
981
+ innerHTML: Q.value.chart,
982
+ class: g({ "th-button-active": R.value }),
983
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${R.value ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${R.value ? "" : G.value.buttons.filter.inactive.color}`)
984
+ }, null, 14, ut)) : f("", !0),
985
+ e.rangeFilter && P.value[t] && !A.value[t] ? (v(), p("div", dt, [
986
+ m("label", { for: `rangeMin${t}` }, [...n[29] ||= [
987
+ m("span", { style: { color: "grey" } }, "ᒥ", -1),
988
+ h(" min ", -1),
989
+ m("span", { style: { color: "grey" } }, "ᒣ", -1)
990
+ ]], 8, ft),
991
+ ye(m("input", {
992
+ type: "number",
993
+ id: `rangeMin${t}`,
994
+ max: j.value[t].max,
995
+ min: j.value[t].min,
996
+ "onUpdate:modelValue": (e) => P.value[t].min = e,
997
+ onInput: n[9] ||= (e) => lr(mr, 400),
998
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
999
+ }, null, 44, pt), [[
1000
+ ge,
1001
+ P.value[t].min,
1002
+ void 0,
1003
+ { number: !0 }
1004
+ ]]),
1005
+ ye(m("input", {
1006
+ type: "number",
1007
+ id: `rangeMax${t}`,
1008
+ max: j.value[t].max,
1009
+ min: j.value[t].min,
1010
+ "onUpdate:modelValue": (e) => P.value[t].max = e,
1011
+ onInput: n[10] ||= (e) => lr(mr, 400),
1012
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
1013
+ }, null, 44, mt), [[
1014
+ ge,
1015
+ P.value[t].max,
1016
+ void 0,
1017
+ { number: !0 }
1018
+ ]]),
1019
+ m("label", { for: `rangeMax${t}` }, [...n[30] ||= [
1020
+ m("span", { style: { color: "grey" } }, "ᒪ", -1),
1021
+ h(" max ", -1),
1022
+ m("span", { style: { color: "grey" } }, "ᒧ", -1)
1023
+ ]], 8, ht)
1024
+ ])) : f("", !0),
1025
+ or(t, e) ? (v(), p("button", {
1026
+ key: 6,
1027
+ onClick: (n) => jr(t, e, n),
1028
+ disabled: xr(t, e),
1029
+ class: "th-reset",
1030
+ style: _({ cursor: X.value ? "pointer" : "default" })
1031
+ }, " ✖ ", 12, gt)) : f("", !0),
1032
+ e.isMultiselect ? (v(), p("div", {
1033
+ key: 7,
1034
+ class: "th-dropdown",
1035
+ "data-is-open": "false",
1036
+ id: `th_dropdown_${t}`,
1037
+ style: _(`background:${Pn.value.backgroundColor};color:${Pn.value.color}`)
1038
+ }, [m("button", {
1039
+ class: "close-dropdown",
1040
+ onClick: (n) => Lr(t, e, n),
1041
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${Fn.value.backgroundColor};color:${Fn.value.color}`)
1042
+ }, " ✖ ", 12, vt), (v(!0), p(u, null, b($(t), (e, n) => (v(), p("span", {
1043
+ class: "th-option",
1044
+ key: `th_option_${t}_${n}`,
1045
+ onClick: (n) => Pr(e, t),
1046
+ onKeyup: [be((n) => Pr(e, t), ["enter"]), be((n) => Pr(e, t), ["space"])],
1047
+ style: _(`opacity:${yr(e, t) ? 1 : .5}`),
1048
+ tabindex: "0"
1049
+ }, [yr(e, t) ? (v(), p("span", {
1050
+ key: 0,
1051
+ style: _(`color:${Pn.value.icons.selected.color};margin-right:5px`),
1052
+ class: "th-icon-green"
1053
+ }, x(Pn.value.icons.selected.unicode), 5)) : (v(), p("span", {
1054
+ key: 1,
1055
+ style: _(`color:${Pn.value.icons.unselected.color};margin-right:5px`),
1056
+ class: "th-icon-red"
1057
+ }, x(Pn.value.icons.unselected.unicode), 5)), m("span", null, x(e), 1)], 44, yt))), 128))], 12, _t)) : f("", !0)
1058
+ ])], 6))), 128))])
1059
+ ], 64)) : f("", !0),
1060
+ m("tr", null, [n[32] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
1061
+ key: `col_selector_${t}`,
1062
+ class: g({
1063
+ "vue-ui-table-col-selector": !A.value[t],
1064
+ "th-has-nan": A.value[t]
1065
+ }),
1066
+ style: _(`background:${t === Dn.value && !A.value[t] ? G.value.selected.backgroundColor : G.value.backgroundColor};color:${t === Dn.value && !A.value[t] ? G.value.selected.color : G.value.color};outline:${G.value.outline}`)
1067
+ }, [A.value[t] ? f("", !0) : (v(), p("div", {
1068
+ key: 0,
1069
+ innerHTML: V.value[t].type === T.value.NUMERIC ? Q.value.chevronDown : "",
1070
+ class: g({ "col-selector": V.value[t].type === T.value.NUMERIC }),
1071
+ tabindex: "0",
1072
+ style: _({ cursor: X.value ? "pointer" : "default" }),
1073
+ onClick: xe((e) => Nr(t), ["stop"]),
1074
+ onKeyup: be((e) => Nr(t), ["enter"])
1075
+ }, null, 46, bt))], 6))), 128))])
1076
+ ], 4),
1077
+ m("tbody", {
1078
+ onClick: cr,
1079
+ onKeydown: n[11] ||= (e) => Er(e)
1080
+ }, [(v(!0), p(u, null, b(Yn.value, (t, n) => (v(), p("tr", {
1081
+ key: `tbody_${n}`,
1082
+ "data-row": n % 2 == 0 ? "odd" : "even",
1083
+ class: g(`tr_${S(mn)}`),
1084
+ style: _(`${n % 2 == 0 ? `background:${q.value.odd.backgroundColor};color:${q.value.odd.color}` : `background:${q.value.even.backgroundColor};color:${q.value.even.color}`}`)
1085
+ }, [m("td", {
1086
+ class: "vue-ui-table-td-iteration",
1087
+ "data-row": n % 2 == 0 ? "odd" : "even",
1088
+ style: _({ outline: q.value.outline })
1089
+ }, x(t.absoluteIndex + 1), 13, St), (v(!0), p(u, null, b(t.td, (r, i) => (v(), p("td", {
1090
+ "data-row": n % 2 == 0 ? "odd" : "even",
1091
+ key: `td_${n}_${i}`,
1092
+ style: _(br(r) || e.dataset.header[i].type === T.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${q.value.outline}` : `outline:${q.value.outline}`),
1093
+ onClick: (t) => Mr({
1094
+ td: r,
1095
+ rowIndex: n,
1096
+ colIndex: i,
1097
+ headerType: e.dataset.header[i].type,
1098
+ event: t
1099
+ }),
1100
+ onKeyup: [be((t) => Mr({
1101
+ td: r,
1102
+ rowIndex: n,
1103
+ colIndex: i,
1104
+ headerType: e.dataset.header[i].type,
1105
+ event: t
1106
+ }), ["enter"]), be((t) => Mr({
1107
+ td: r,
1108
+ rowIndex: n,
1109
+ colIndex: i,
1110
+ headerType: e.dataset.header[i].type,
1111
+ event: t
1112
+ }), ["space"])],
1113
+ class: g({
1114
+ "td-numeric": e.dataset.header[i].type === T.value.NUMERIC,
1115
+ "td-focusable": !0,
1116
+ "td-has-nan": A.value[i]
1117
+ }),
1118
+ id: `cell_${n}_${i}_${S(mn)}`,
1119
+ tabindex: "0"
1120
+ }, [t.meta && t.meta.markerIndices.includes(i) && t.meta.unicodeIcon ? (v(), p("span", {
1121
+ key: 0,
1122
+ style: _(`color:${t.meta.color};margin-right:3px`),
1123
+ innerHTML: t.meta.unicodeIcon
1124
+ }, null, 12, wt)) : f("", !0), e.dataset.header[i].type === T.value.DATE ? (v(), p("span", Tt, x(e.dataset.header[i].prefix) + " " + x(new Date(r).toLocaleString().slice(0, 10)) + " " + x(e.dataset.header[i].suffix), 1)) : e.dataset.header[i].isPercentage ? (v(), p("span", Et, x(S(o)({
1125
+ v: Number(r * 100),
1126
+ s: "%",
1127
+ r: e.dataset.header[i].decimals
1128
+ })), 1)) : N.value[i] && e.dataset.header[i].percentageTo && !e.dataset.header[i].isPercentage ? (v(), p("span", {
1129
+ key: 3,
1130
+ class: g({ "td-nan": isNaN(Number(r)) })
1131
+ }, x(isNaN(Number(r)) ? `${r} is not ${T.value.NUMERIC}` : S(o)({
1132
+ p: e.dataset.header[i].prefix,
1133
+ v: Number(r),
1134
+ s: e.dataset.header[i].suffix,
1135
+ r: e.dataset.header[i].decimals
1136
+ })) + " (" + x(isNaN(Number(r)) ? "" : S(o)({
1137
+ v: Number(r / _r(N.value[i].referenceIndex) * 100),
1138
+ s: "%",
1139
+ r: e.dataset.header[i].decimals
1140
+ })) + ") ", 3)) : e.dataset.header[i].type === T.value.NUMERIC ? (v(), p("span", {
1141
+ key: 4,
1142
+ class: g({ "td-nan": isNaN(Number(r)) })
1143
+ }, x(isNaN(Number(r)) ? `${r} is not ${T.value.NUMERIC}` : S(o)({
1144
+ p: e.dataset.header[i].prefix,
1145
+ v: Number(r.toFixed(e.dataset.header[i].decimals)),
1146
+ s: e.dataset.header[i].suffix,
1147
+ r: e.dataset.header[i].decimals
1148
+ })), 3)) : (v(), p("span", Dt, x(e.dataset.header[i].prefix) + " " + x(r) + " " + x(e.dataset.header[i].suffix), 1))], 46, Ct))), 128))], 14, xt))), 128))], 32)
1149
+ ])], 4),
1150
+ m("div", {
1151
+ class: g({
1152
+ "td-selector-info": !0,
1153
+ "td-selector-info--active": E.value.col !== void 0 && E.value.rows.length
1154
+ }),
1155
+ style: _(`background:${In.value.infoBar.backgroundColor};color:${In.value.infoBar.color}`)
1156
+ }, [E.value.col !== void 0 && E.value.rows.length ? (v(), p(u, { key: 0 }, [
1157
+ m("div", {
1158
+ innerHTML: Q.value.table,
1159
+ class: "td-selector-icon"
1160
+ }, null, 8, Ot),
1161
+ m("span", null, [
1162
+ m("b", null, [h(x(e.dataset.header[E.value.col].name) + " ", 1), e.dataset.header[E.value.col].isPercentage ? (v(), p("span", kt, " / " + x(e.dataset.header[N.value[E.value.col].referenceIndex].name), 1)) : f("", !0)]),
1163
+ m("span", At, [h(x(H.value.translations.nb) + " : ", 1), m("b", jt, x(E.value.rows.length), 1)]),
1164
+ m("span", Mt, [
1165
+ h(x(H.value.translations.sum) + " : ", 1),
1166
+ e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Nt, x(tr.value.sumPercentage), 1)) : (v(), p("b", Pt, x(e.dataset.header[E.value.col].prefix) + " " + x(tr.value.sumRegular) + " " + x(e.dataset.header[E.value.col].suffix), 1)),
1167
+ e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Ft, "%")) : f("", !0)
1168
+ ]),
1169
+ m("span", It, [
1170
+ h(x(H.value.translations.average) + " : ", 1),
1171
+ e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Lt, x(tr.value.averagePercentage), 1)) : (v(), p("b", Rt, x(e.dataset.header[E.value.col].prefix) + " " + x(tr.value.averageRegular) + " " + x(e.dataset.header[E.value.col].suffix), 1)),
1172
+ e.dataset.header[E.value.col].isPercentage ? (v(), p("b", zt, "%")) : f("", !0)
1173
+ ])
1174
+ ]),
1175
+ m("button", {
1176
+ onClick: ur,
1177
+ class: "td-selector-info-reset",
1178
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${Fn.value.backgroundColor};color:${Fn.value.color};border-radius:${Fn.value.borderRadius}`)
1179
+ }, " ✖ ", 4)
1180
+ ], 64)) : f("", !0)], 6),
1181
+ B.value.length > 10 ? (v(), p("div", Bt, [h(x(H.value.translations.totalRows) + " : " + x(e.dataset.body.length) + " | " + x(H.value.translations.paginatorLabel) + " : ", 1), B.value.length > 10 ? ye((v(), p("select", {
1182
+ key: 0,
1183
+ id: "paginatorSelector",
1184
+ "onUpdate:modelValue": n[12] ||= (e) => Tn.value = e,
1185
+ onChange: n[13] ||= (e) => {
1186
+ ur(), Cr();
1187
+ },
1188
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
1189
+ }, [(v(!0), p(u, null, b(En.value, (t, n) => (v(), p(u, null, [B.value.length > t || e.dataset.body.length === t ? (v(), p("option", { key: `paginator_option_${n}` }, x(t), 1)) : f("", !0)], 64))), 256))], 36)), [[
1190
+ he,
1191
+ Tn.value,
1192
+ void 0,
1193
+ { number: !0 }
1194
+ ]]) : f("", !0)])) : f("", !0),
1195
+ Tn.value >= 250 ? (v(), p("div", Vt, [m("span", { innerHTML: Q.value.warning }, null, 8, Ht), h(x(H.value.translations.sizeWarning), 1)])) : f("", !0),
1196
+ Z.value.length > 1 && Z.value.length <= 10 ? (v(), p("div", {
1197
+ key: 3,
1198
+ class: "vue-ui-table-navigation-indicator",
1199
+ style: _(`background:${J.value.navigationIndicator.backgroundColor};width:calc(${D.value / (Z.value.length - 1) * 100}%)`)
1200
+ }, null, 4)) : f("", !0),
1201
+ Z.value.length > 1 ? (v(), p("div", Ut, [
1202
+ m("button", {
1203
+ class: "vue-ui-table-navigation",
1204
+ onClick: n[14] ||= xe((e) => Tr("previous"), ["stop"]),
1205
+ innerHTML: Q.value.chevronLeft,
1206
+ disabled: D.value === 0,
1207
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === 0 ? J.value.buttons.opacityDisabled : 1}`)
1208
+ }, null, 12, Wt),
1209
+ Z.value.length > 3 ? (v(), p(u, { key: 0 }, [
1210
+ m("button", {
1211
+ class: "vue-ui-table-navigation",
1212
+ onClick: n[15] ||= xe((e) => Tr(1), ["stop"]),
1213
+ disabled: D.value === 0,
1214
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === 0 ? J.value.buttons.opacityDisabled : 1}`)
1215
+ }, " 1 ", 12, Gt),
1216
+ Z.value.length > 10 ? (v(), p("div", {
1217
+ key: 0,
1218
+ class: "vue-ui-table-page-scroller-wrapper",
1219
+ style: _({ cursor: X.value ? "pointer" : "default" })
1220
+ }, [m("label", Kt, x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1), m("input", {
1221
+ class: "vue-ui-table-page-scroller",
1222
+ id: "pageScroller",
1223
+ type: "range",
1224
+ step: "1",
1225
+ min: 0,
1226
+ max: Z.value.length - 1,
1227
+ onInput: n[16] ||= (e) => Rr(e),
1228
+ value: D.value,
1229
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border};accent-color:${K.value.accentColor}`)
1230
+ }, null, 44, qt)], 4)) : (v(), p("span", Jt, x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1)),
1231
+ m("button", {
1232
+ class: "vue-ui-table-navigation",
1233
+ onClick: n[17] ||= xe((e) => Tr(Z.value.length), ["stop"]),
1234
+ disabled: D.value === Z.value.length - 1,
1235
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === Z.value.length - 1 ? J.value.buttons.opacityDisabled : 1}`)
1236
+ }, x(Z.value.length), 13, Yt)
1237
+ ], 64)) : (v(), p(u, { key: 1 }, [h(x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1)], 64)),
1238
+ m("button", {
1239
+ class: "vue-ui-table-navigation",
1240
+ onClick: n[18] ||= xe((e) => Tr("next"), ["stop"]),
1241
+ innerHTML: Q.value.chevronRight,
1242
+ disabled: D.value === Z.value.length - 1,
1243
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === Z.value.length - 1 ? J.value.buttons.opacityDisabled : 1}`)
1244
+ }, null, 12, Xt)
1245
+ ])) : f("", !0),
1246
+ ue(S(dn), {
1247
+ ref_key: "chartModal",
1248
+ ref: zr,
1249
+ backgroundColor: Y.value.modal.backgroundColor,
1250
+ headerColor: Y.value.modal.color,
1251
+ color: Y.value.modal.color,
1252
+ forcedHeight: 500,
1253
+ isCursorPointer: X.value,
1254
+ withPadding: "",
1255
+ withFullWidth: "",
1256
+ noLayerUpdate: "",
1257
+ onClose: n[23] ||= (e) => R.value = !1,
1258
+ onSize: rr
1259
+ }, {
1260
+ before: ve(() => [m("div", Zt, [
1261
+ Zn.value.length ? (v(), p("button", {
1262
+ key: 0,
1263
+ onClick: n[19] ||= (e) => z.value = !0,
1264
+ innerHTML: Q.value.donut,
1265
+ class: g({ "is-active-chart": w.value.type === T.value.DONUT || z.value }),
1266
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.DONUT || z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.DONUT || z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
1267
+ }, null, 14, Qt)) : f("", !0),
1268
+ m("button", {
1269
+ onClick: n[20] ||= (e) => {
1270
+ w.value.type = T.value.LINE, z.value = !1;
1271
+ },
1272
+ innerHTML: Q.value.chart,
1273
+ class: g({ "is-active-chart": w.value.type === T.value.LINE && !z.value }),
1274
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.LINE && !z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.LINE && !z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
1275
+ }, null, 14, $t),
1276
+ m("button", {
1277
+ onClick: n[21] ||= (e) => {
1278
+ w.value.type = T.value.BAR, z.value = !1;
1279
+ },
1280
+ innerHTML: Q.value.bar,
1281
+ class: g({ "is-active-chart": w.value.type === T.value.BAR && !z.value }),
1282
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.BAR && !z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.BAR && !z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
1283
+ }, null, 14, en)
1284
+ ])]),
1285
+ content: ve(() => [m("div", tn, [
1286
+ z.value && Zn.value.length ? (v(), p("div", {
1287
+ key: 0,
1288
+ style: _(`background:${Y.value.modal.backgroundColor};color:${Y.value.modal.color}`)
1289
+ }, [m("fieldset", nn, [
1290
+ m("legend", null, x(H.value.translations.chooseCategoryColumn), 1),
1291
+ m("div", rn, [(v(!0), p(u, null, b(Zn.value, (e, t) => (v(), p("div", {
1292
+ key: `donut_radio_${t}`,
1293
+ class: "vue-ui-table-fieldset-option"
1294
+ }, [m("input", {
1295
+ type: "radio",
1296
+ name: e.name,
1297
+ id: e.name,
1298
+ checked: L.value && e.name === L.value.name,
1299
+ onInput: (e) => L.value = Zn.value[t],
1300
+ style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border};accent-color:${K.value.accentColor}`)
1301
+ }, null, 44, an), m("label", { for: e.name }, x(e.name), 9, on)]))), 128))]),
1302
+ m("button", {
1303
+ class: "vue-ui-table-generate-donut",
1304
+ disabled: !L.value,
1305
+ onClick: ar,
1306
+ style: _(`cursor:${X.value ? "pointer" : "default"};background:${Y.value.modal.buttons.selected.backgroundColor};color:${Y.value.modal.buttons.selected.color}`)
1307
+ }, [m("div", {
1308
+ style: { "margin-bottom": "-3px" },
1309
+ innerHTML: Q.value.donut
1310
+ }, null, 8, cn), h(" " + x(H.value.translations.makeDonut), 1)], 12, sn)
1311
+ ])], 4)) : f("", !0),
1312
+ [T.value.BAR, T.value.LINE].includes(w.value.type) && !z.value ? (v(), p(u, { key: 1 }, [
1313
+ qn.value.length > 1 ? (v(), p("label", {
1314
+ key: 0,
1315
+ style: _({ color: Y.value.modal.color })
1316
+ }, [h(x(H.value.translations.xAxisLabels) + " ", 1), ye(m("select", { "onUpdate:modelValue": n[22] ||= (e) => An.value = e }, [(v(!0), p(u, null, b(qn.value, (e) => (v(), p("option", null, x(e), 1))), 256))], 512), [[he, An.value]])], 4)) : f("", !0),
1317
+ m("div", ln, [w.value.type === T.value.LINE ? (v(), le(ie, {
1318
+ key: `chart_line_${kn.value}`,
1319
+ dataset: ir.value.xyDatasetLine,
1320
+ config: ir.value.xyConfig
1321
+ }, null, 8, ["dataset", "config"])) : f("", !0), w.value.type === T.value.BAR ? (v(), le(ie, {
1322
+ key: `chart_bar_${kn.value}`,
1323
+ dataset: ir.value.xyDatasetBar,
1324
+ config: ir.value.xyConfig
1325
+ }, null, 8, ["dataset", "config"])) : f("", !0)]),
1326
+ E.value.rows.length >= 2 ? (v(), p("div", {
1327
+ key: 1,
1328
+ class: "chart-trend",
1329
+ style: _(`color:${Y.value.modal.color}`)
1330
+ }, [n[33] ||= m("span", null, "---", -1), h(" Trend: " + x(S(o)({
1331
+ v: ir.value.progression.trend * 100,
1332
+ s: "%",
1333
+ r: 1
1334
+ })), 1)], 4)) : f("", !0)
1335
+ ], 64)) : f("", !0),
1336
+ [T.value.DONUT].includes(w.value.type) && !z.value ? (v(), p("div", un, [ue(ce, {
1337
+ dataset: bn.value,
1338
+ config: ir.value.donutConfig
1339
+ }, null, 8, ["dataset", "config"])])) : f("", !0)
1340
+ ])]),
1341
+ _: 1
1342
+ }, 8, [
1343
+ "backgroundColor",
1344
+ "headerColor",
1345
+ "color",
1346
+ "isCursorPointer"
1347
+ ])
1348
+ ], 4));
1349
+ }
1350
+ }, [["__scopeId", "data-v-f35b07e9"]]);
1351
+ //#endregion
1352
+ export { Se as n, dn as t };