vue-data-ui 3.1.3 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{Arrow-DBaAWGvq.js → Arrow-BFbcF5Sq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BmN9jTP8.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
  3. package/dist/{BaseIcon-BcOSijbz.js → BaseIcon-BQQGRQ2U.js} +1 -1
  4. package/dist/{ColorPicker-D1yNPt76.js → ColorPicker-d1kmGapq.js} +2 -2
  5. package/dist/{DataTable-Cm8Tt9PQ.js → DataTable-D6voeZvO.js} +2 -2
  6. package/dist/{Legend-5qvgVkrY.js → Legend-nPGcCxG_.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D3QGd7vP.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
  8. package/dist/{PackageVersion-0XlRFsI_.js → PackageVersion-BeStrsPr.js} +1 -1
  9. package/dist/{PenAndPaper-CyH7Ip2i.js → PenAndPaper-C6tiapdo.js} +3 -3
  10. package/dist/{Shape-DiplSMFy.js → Shape-DBVq0fdK.js} +1 -1
  11. package/dist/Slicer-Duqm7KZK.js +597 -0
  12. package/dist/{SparkTooltip-VveQSwlw.js → SparkTooltip-wNGmXZSx.js} +1 -1
  13. package/dist/{Title-CqYBs02Y.js → Title-ydtId0LC.js} +1 -1
  14. package/dist/Tooltip-oeu9knGI.js +200 -0
  15. package/dist/{UserOptions-ZmwlARCV.js → UserOptions-CnJxN2Vo.js} +29 -29
  16. package/dist/{dom-to-png-DGA4a3xT.js → dom-to-png-CMCYtLrX.js} +1 -1
  17. package/dist/{img-DSrvx9J6.js → img-Neec0VVb.js} +1 -1
  18. package/dist/{index-CaxArMHL.js → index-BkfuZCRT.js} +7 -2
  19. package/dist/{pdf-BG8PiGFH.js → pdf-CpQ-dqJh.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +12 -0
  22. package/dist/types/vue-data-ui.d.ts +12 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DmtFf4bt.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
  24. package/dist/{useNestedProp-tWT02_6S.js → useNestedProp-BMzw9VUz.js} +1 -1
  25. package/dist/{usePrinter-BYtPmEo8.js → usePrinter-CEdg3j8S.js} +2 -2
  26. package/dist/{vue-data-ui-DVb8r5z7.js → vue-data-ui-D5B7a84o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BLKyWpz7.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
  29. package/dist/{vue-ui-accordion-DUlNpLir.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-LLqbXP1m.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
  31. package/dist/{vue-ui-annotator-CcYIlcKF.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
  32. package/dist/{vue-ui-bullet-BKmts_u4.js → vue-ui-bullet-VPchh2r2.js} +7 -7
  33. package/dist/{vue-ui-candlestick-C9l_NpXu.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
  34. package/dist/{vue-ui-carousel-table-H7xS6aBC.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CAW0IOdY.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
  36. package/dist/{vue-ui-chord-CK5YhCqM.js → vue-ui-chord-DVSBY9ou.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-NLyZgTGF.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CyGUrKWU.js → vue-ui-cursor-BIuc6nds.js} +2 -2
  39. package/dist/{vue-ui-dashboard-Cf5pvEzD.js → vue-ui-dashboard-C7xIcrvD.js} +79 -80
  40. package/dist/{vue-ui-digits-BZWwwp7c.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
  41. package/dist/{vue-ui-donut-g1WHrj6G.js → vue-ui-donut-BApz1ho5.js} +52 -50
  42. package/dist/{vue-ui-donut-evolution-CaEYMVZj.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-BArS1nXS.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
  44. package/dist/{vue-ui-flow-BR0CB5qt.js → vue-ui-flow-COtJRNLE.js} +40 -38
  45. package/dist/{vue-ui-funnel-D2OCItvq.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
  46. package/dist/{vue-ui-galaxy-qgGF1AAf.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
  47. package/dist/{vue-ui-gauge-BIXmGyQL.js → vue-ui-gauge-CFUA5ORH.js} +8 -8
  48. package/dist/{vue-ui-gizmo-DHEoS051.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tRzq9BnI.js → vue-ui-heatmap-DakytdCv.js} +68 -66
  50. package/dist/{vue-ui-history-plot-DmwHhrDk.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
  51. package/dist/{vue-ui-kpi-C2b2R5i1.js → vue-ui-kpi-UmcKQftv.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bs1Mi1tD.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
  53. package/dist/{vue-ui-molecule-BsUvf2v7.js → vue-ui-molecule-BZrmSVps.js} +63 -61
  54. package/dist/{vue-ui-mood-radar-D3JIpVvX.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-dJEgQXTH.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
  56. package/dist/{vue-ui-onion-D8dF1DdA.js → vue-ui-onion-aHCc3r7L.js} +38 -36
  57. package/dist/{vue-ui-parallel-coordinate-plot-LmFsg7UA.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
  58. package/dist/{vue-ui-quadrant-C4O8ki4N.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
  59. package/dist/{vue-ui-quick-chart-6bEtTQBG.js → vue-ui-quick-chart-CJ2Wdln9.js} +152 -150
  60. package/dist/{vue-ui-radar-CfjGWGk3.js → vue-ui-radar-Cgnooz7-.js} +121 -119
  61. package/dist/{vue-ui-rating-D3WSs2OD.js → vue-ui-rating-DF71ymNG.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DzTfi7Tf.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-NtYOJvDy.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
  64. package/dist/{vue-ui-rings-CYQ4i71V.js → vue-ui-rings-C4hKgrft.js} +162 -160
  65. package/dist/{vue-ui-scatter-meJEHdAD.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
  66. package/dist/{vue-ui-skeleton-BtILTxx-.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
  67. package/dist/{vue-ui-smiley-B5bELpYD.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-lixdWq_N.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CaGPav-J.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-BZBGYDjs.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Bp6KxpjH.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CF-EAZa6.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-Cj1LAYC8.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
  74. package/dist/{vue-ui-stackbar-BrzKhqAK.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
  75. package/dist/{vue-ui-strip-plot-BfVVaSFn.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
  76. package/dist/{vue-ui-table-CBzNgzVP.js → vue-ui-table-BItmKbvF.js} +156 -121
  77. package/dist/{vue-ui-table-heatmap-CKz5bA7N.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-O-Z0YH6u.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
  79. package/dist/{vue-ui-thermometer-DpNyTGNH.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
  80. package/dist/{vue-ui-timer-uvshaRMI.js → vue-ui-timer-BIv2sfQA.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-A8Akuz-q.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
  82. package/dist/{vue-ui-treemap-Dvmuo3tM.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
  83. package/dist/{vue-ui-vertical-bar-eMgRMSKN.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
  84. package/dist/{vue-ui-waffle-Cm8VfnG8.js → vue-ui-waffle-CewP8k-W.js} +67 -65
  85. package/dist/{vue-ui-wheel-Bhsklf_m.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-C9HGLsG4.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
  87. package/dist/{vue-ui-world-B_MrjwGJ.js → vue-ui-world-CuwXMI3D.js} +11 -9
  88. package/dist/{vue-ui-xy-DnYJw2aS.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
  89. package/dist/{vue-ui-xy-canvas-C0Snw0Dz.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
  90. package/package.json +1 -1
  91. package/dist/Slicer-DG99wPTy.js +0 -604
  92. package/dist/Tooltip-CP0tVHAf.js +0 -161
@@ -1,7 +1,7 @@
1
- import { a7 as P, t as z, l as T, w as U, i as V, j as X, v as j, A as Y, e as W, F as J, u as K, p as Z } from "./index-CaxArMHL.js";
2
- import q from "./vue-ui-xy-DnYJw2aS.js";
3
- import Q from "./vue-ui-donut-g1WHrj6G.js";
4
- import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
1
+ import { a7 as R, t as z, l as T, w as U, i as V, j as X, v as j, A as Y, e as W, F as J, u as K, p as Z } from "./index-BkfuZCRT.js";
2
+ import q from "./vue-ui-xy-Bsh2OBHp.js";
3
+ import Q from "./vue-ui-donut-BApz1ho5.js";
4
+ import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
5
5
  import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const se = {
7
7
  name: "vue-ui-table",
@@ -20,6 +20,7 @@ const se = {
20
20
  }
21
21
  },
22
22
  components: { VueUiXy: q, VueUiDonut: Q },
23
+ emits: ["page-change"],
23
24
  data() {
24
25
  return {
25
26
  uid: `vue-ui-table-${Math.random()}`,
@@ -203,7 +204,7 @@ Provide an array of objects of type:
203
204
  useProgression: !0,
204
205
  color: this.FINAL_CONFIG.style.chart.layout.bar.fill
205
206
  }
206
- ], k = this.FINAL_CONFIG.style.chart.modal.backgroundColor, N = this.adaptColorToBackground(k), C = this.dataset.header[this.currentSelectionSpan.col].decimals, B = {
207
+ ], k = this.FINAL_CONFIG.style.chart.modal.backgroundColor, N = this.adaptColorToBackground(k), C = this.dataset.header[this.currentSelectionSpan.col].decimals, P = {
207
208
  chart: {
208
209
  backgroundColor: k,
209
210
  color: N,
@@ -274,9 +275,9 @@ Provide an array of objects of type:
274
275
  rounding: C
275
276
  }
276
277
  }
277
- }, D = e >= 0 ? 0 : Math.abs(e), H = t + D, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, G = this.currentSelectionSpan.rows.map((v, R) => ({
278
- x: i * R + i / 2,
279
- y: (1 - (v.value + D) / H) * n,
278
+ }, D = e >= 0 ? 0 : Math.abs(e), B = t + D, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, G = this.currentSelectionSpan.rows.map((v, H) => ({
279
+ x: i * H + i / 2,
280
+ y: (1 - (v.value + D) / B) * n,
280
281
  value: M ? v.value * 100 : v.value,
281
282
  suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
282
283
  prefix: this.dataset.header[this.currentSelectionSpan.col].prefix ? this.dataset.header[this.currentSelectionSpan.col].prefix : "",
@@ -363,7 +364,7 @@ Provide an array of objects of type:
363
364
  }
364
365
  }
365
366
  },
366
- xyConfig: B,
367
+ xyConfig: P,
367
368
  xyDatasetLine: m,
368
369
  xyDatasetBar: F,
369
370
  progression: G.length >= 2 ? this.calcLinearProgression(G) : !1
@@ -460,7 +461,7 @@ Provide an array of objects of type:
460
461
  const s = this.dataset.header.map((e) => e.name), r = n === "all" ? this.bodyCopy.map((e) => e.td) : this.visibleRows.map((e) => e.td), i = [s].concat(r), t = this.createCsvContent(i);
461
462
  this.downloadCsv({ csvContent: t, title: "vue-ui-table" });
462
463
  },
463
- calcLinearProgression: P,
464
+ calcLinearProgression: R,
464
465
  closeAllDropdowns() {
465
466
  const n = document.getElementsByClassName("th-dropdown");
466
467
  n.length && Array.from(n).forEach((s) => {
@@ -549,8 +550,30 @@ Provide an array of objects of type:
549
550
  if (t)
550
551
  return this.multiselects[n].length === this.getDropdownOptions(n).length;
551
552
  },
553
+ getCurrentPageData() {
554
+ return {
555
+ totalPages: this.pages.length,
556
+ itemsPerPage: this.itemsPerPage,
557
+ currentPage: this.currentPage,
558
+ currentPageData: this.visibleRows.map((n) => n.td)
559
+ };
560
+ },
561
+ onPageChange() {
562
+ this.$emit("page-change", this.getCurrentPageData());
563
+ },
552
564
  navigate(n) {
553
- this.resetSelection(), n === "next" && this.currentPage < this.pages.length ? this.currentPage += 1 : n === "previous" && this.currentPage >= 1 ? this.currentPage -= 1 : this.currentPage = n - 1, this.$refs.tableWrapper.scrollTo({
565
+ if (this.resetSelection(), n === "next" && this.currentPage < this.pages.length) {
566
+ if (this.currentPage + 1 > this.pages.length - 1)
567
+ return;
568
+ this.currentPage += 1;
569
+ } else if (n === "previous" && this.currentPage >= 1)
570
+ this.currentPage -= 1;
571
+ else {
572
+ if (n - 1 < 0 || n > this.pages.length || n === "previous")
573
+ return;
574
+ this.currentPage = n - 1;
575
+ }
576
+ this.onPageChange(), this.$refs.tableWrapper.scrollTo({
554
577
  top: 0,
555
578
  left: 0,
556
579
  behavior: "smooth"
@@ -738,7 +761,7 @@ Provide an array of objects of type:
738
761
  t.dataset.isOpen === "false" ? t.dataset.isOpen = "true" : t.dataset.isOpen = "false";
739
762
  },
740
763
  updateCurrentPage(n) {
741
- this.resetSelection(), !n || !n.target.value ? this.currentPage = 0 : this.currentPage = Number(n.target.value);
764
+ this.resetSelection(), !n || !n.target.value ? this.currentPage = 0 : this.currentPage = Number(n.target.value), this.onPageChange();
742
765
  },
743
766
  // DONUTS
744
767
  calcDonutMarkerConnectorColor(n) {
@@ -774,59 +797,62 @@ Provide an array of objects of type:
774
797
  this.clientX = n.clientX - this.dragOffsetX, this.clientY = n.clientY - this.dragOffsetY - 40, this.clientX < 0 && (this.clientX = 0), this.clientX + r.width > window.innerWidth && (this.clientX = window.innerWidth - r.width - 48), this.clientY < 0 && (this.clientY = 0), this.clientY + r.height > window.innerHeight && (this.clientY = window.innerHeight - r.height - 24);
775
798
  }
776
799
  }
777
- }, ne = { class: "vue-ui-table-export-hub" }, re = ["innerHTML"], oe = ["data-is-open"], le = { class: "vue-ui-table-export-hub-options" }, ae = { class: "vue-ui-table-export-hub-option-wrapper" }, ie = { class: "label" }, ce = ["innerHTML"], ue = { class: "vue-ui-table-export-hub-option-wrapper" }, he = { class: "label" }, de = ["innerHTML"], ge = { class: "vue-ui-table" }, ye = { id: "tableHead" }, me = { key: 0 }, be = { key: 0 }, fe = { key: 1 }, Ne = {
800
+ }, ne = {
801
+ key: 0,
802
+ class: "vue-ui-table-export-hub"
803
+ }, re = ["innerHTML"], oe = ["data-is-open"], le = { class: "vue-ui-table-export-hub-options" }, ae = { class: "vue-ui-table-export-hub-option-wrapper" }, ie = { class: "label" }, ce = ["innerHTML"], ue = { class: "vue-ui-table-export-hub-option-wrapper" }, he = { class: "label" }, de = ["innerHTML"], ge = { class: "vue-ui-table" }, ye = { key: 0 }, me = { key: 0 }, be = { key: 1 }, fe = {
778
804
  key: 0,
779
805
  style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
780
- }, pe = ["innerHTML"], Ce = {
806
+ }, Ne = ["innerHTML"], pe = {
781
807
  key: 0,
782
808
  style: { "margin-left": "3px" }
783
- }, Ie = { key: 0 }, Fe = { class: "th-filter" }, ve = {
809
+ }, Ce = { key: 0 }, Ie = { class: "th-filter" }, Fe = {
784
810
  key: 0,
785
811
  class: "th-date"
786
- }, we = { class: "date-wrapper--inputs" }, _e = { class: "date-fieldset" }, ke = ["for"], Oe = ["id", "onUpdate:modelValue", "onInput"], Se = { class: "date-fieldset" }, Le = ["for"], Ae = ["id", "onUpdate:modelValue", "onInput"], Me = { class: "date-wrapper--button" }, De = ["onClick"], Ge = ["innerHTML"], Te = ["innerHTML"], xe = ["innerHTML"], Ee = ["onClick", "disabled"], Be = ["placeholder", "onUpdate:modelValue", "name"], He = ["onClick"], Re = ["innerHTML"], Pe = ["innerHTML"], ze = ["innerHTML"], Ue = ["onClick", "innerHTML"], Ve = ["innerHTML"], Xe = {
812
+ }, ve = { class: "date-wrapper--inputs" }, we = { class: "date-fieldset" }, _e = ["for"], ke = ["id", "onUpdate:modelValue", "onInput"], Oe = { class: "date-fieldset" }, Se = ["for"], Le = ["id", "onUpdate:modelValue", "onInput"], Ae = { class: "date-wrapper--button" }, Me = ["onClick"], De = ["innerHTML"], Ge = ["innerHTML"], Te = ["innerHTML"], xe = ["onClick", "disabled"], Ee = ["placeholder", "onUpdate:modelValue", "name"], Pe = ["onClick"], Be = ["innerHTML"], He = ["innerHTML"], Re = ["innerHTML"], ze = ["onClick", "innerHTML"], Ue = ["innerHTML"], Ve = {
787
813
  key: 5,
788
814
  class: "th-range-filter"
789
- }, je = ["for"], Ye = ["id", "max", "min", "onUpdate:modelValue"], We = ["id", "max", "min", "onUpdate:modelValue"], Je = ["for"], Ke = ["onClick", "disabled"], Ze = ["id"], qe = ["onClick"], Qe = ["onClick", "onKeyup"], $e = ["innerHTML", "onClick", "onKeyup"], et = ["data-row"], tt = ["data-row"], st = ["data-row", "onClick", "onKeyup", "id"], nt = ["innerHTML"], rt = { key: 1 }, ot = { key: 2 }, lt = { key: 5 }, at = ["innerHTML"], it = { key: 0 }, ct = { style: { "margin-left": "12px" } }, ut = { class: "format-num" }, ht = { style: { "margin-left": "12px" } }, dt = {
815
+ }, Xe = ["for"], je = ["id", "max", "min", "onUpdate:modelValue"], Ye = ["id", "max", "min", "onUpdate:modelValue"], We = ["for"], Je = ["onClick", "disabled"], Ke = ["id"], Ze = ["onClick"], qe = ["onClick", "onKeyup"], Qe = ["innerHTML", "onClick", "onKeyup"], $e = ["data-row"], et = ["data-row"], tt = ["data-row", "onClick", "onKeyup", "id"], st = ["innerHTML"], nt = { key: 1 }, rt = { key: 2 }, ot = { key: 5 }, lt = ["innerHTML"], at = { key: 0 }, it = { style: { "margin-left": "12px" } }, ct = { class: "format-num" }, ut = { style: { "margin-left": "12px" } }, ht = {
790
816
  key: 0,
791
817
  class: "format-num"
792
- }, gt = {
818
+ }, dt = {
793
819
  key: 1,
794
820
  class: "format-num"
795
- }, yt = { key: 2 }, mt = { style: { "margin-left": "12px" } }, bt = {
821
+ }, gt = { key: 2 }, yt = { style: { "margin-left": "12px" } }, mt = {
796
822
  key: 0,
797
823
  class: "format-num"
798
- }, ft = {
824
+ }, bt = {
799
825
  key: 1,
800
826
  class: "format-num"
801
- }, Nt = { key: 2 }, pt = {
802
- key: 0,
803
- class: "vue-ui-table-paginator format-num"
804
- }, Ct = {
827
+ }, ft = { key: 2 }, Nt = {
805
828
  key: 1,
829
+ class: "vue-ui-table-paginator format-num"
830
+ }, pt = {
831
+ key: 2,
806
832
  class: "vue-ui-table-size-warning"
807
- }, It = ["innerHTML"], Ft = {
808
- key: 3,
833
+ }, Ct = ["innerHTML"], It = {
834
+ key: 4,
809
835
  class: "vue-ui-table-pagination format-num"
810
- }, vt = ["innerHTML", "disabled"], wt = ["disabled"], _t = {
836
+ }, Ft = ["innerHTML", "disabled"], vt = ["disabled"], wt = {
811
837
  key: 0,
812
838
  class: "vue-ui-table-page-scroller-wrapper"
813
- }, kt = {
839
+ }, _t = {
814
840
  for: "pageScroller",
815
841
  style: { "font-size": "14px" }
816
- }, Ot = ["max", "value"], St = { key: 1 }, Lt = ["disabled"], At = ["innerHTML", "disabled"], Mt = ["innerHTML"], Dt = { class: "chart-modal-options" }, Gt = ["innerHTML"], Tt = ["innerHTML"], xt = ["innerHTML"], Et = {
842
+ }, kt = ["max", "value"], Ot = { key: 1 }, St = ["disabled"], Lt = ["innerHTML", "disabled"], At = ["innerHTML"], Mt = { class: "chart-modal-options" }, Dt = ["innerHTML"], Gt = ["innerHTML"], Tt = ["innerHTML"], xt = {
817
843
  style: { width: "100%", height: "fit-content" },
818
844
  ref: "chartModal"
819
- }, Bt = { class: "vue-ui-table-fieldset" }, Ht = { class: "vue-ui-table-fieldset-wrapper" }, Rt = ["name", "id", "checked", "onInput"], Pt = ["for"], zt = ["disabled"], Ut = ["innerHTML"], Vt = { style: { width: "100%", "margin-bottom": "12px" } }, Xt = {
845
+ }, Et = { class: "vue-ui-table-fieldset" }, Pt = { class: "vue-ui-table-fieldset-wrapper" }, Bt = ["name", "id", "checked", "onInput"], Ht = ["for"], Rt = ["disabled"], zt = ["innerHTML"], Ut = { style: { width: "100%", "margin-bottom": "12px" } }, Vt = {
820
846
  key: 2,
821
847
  style: { width: "100%", "margin-bottom": "32px" }
822
848
  };
823
- function jt(n, s, r, i, t, e) {
849
+ function Xt(n, s, r, i, t, e) {
824
850
  const y = x("VueUiXy"), f = x("VueUiDonut");
825
851
  return c(), u("div", {
826
852
  class: "vue-ui-table-main",
827
853
  style: g(`font-family: ${e.FINAL_CONFIG.fontFamily}`)
828
854
  }, [
829
- a("div", ne, [
855
+ e.FINAL_CONFIG.style.exportMenu.show ? (c(), u("div", ne, [
830
856
  a("button", {
831
857
  onClick: s[0] || (s[0] = (l) => t.isExportRequest = !t.isExportRequest),
832
858
  innerHTML: e.icons.export,
@@ -872,14 +898,21 @@ function jt(n, s, r, i, t, e) {
872
898
  ])
873
899
  ])
874
900
  ], 12, oe)
875
- ]),
901
+ ])) : b("", !0),
876
902
  a("div", {
877
903
  class: "vue-ui-table__wrapper",
878
904
  style: g(`max-height:${e.FINAL_CONFIG.maxHeight}px`),
879
905
  ref: "tableWrapper"
880
906
  }, [
881
907
  a("table", ge, [
882
- a("thead", ye, [
908
+ a("thead", {
909
+ id: "tableHead",
910
+ class: "vue-ui-table__head",
911
+ style: g({
912
+ background: e.FINAL_CONFIG.style.th.backgroundColor,
913
+ boxShadow: `-1px 0 0 ${e.FINAL_CONFIG.style.th.backgroundColor}`
914
+ })
915
+ }, [
883
916
  a("tr", null, [
884
917
  s[26] || (s[26] = a("th", { class: "invisible-cell" }, null, -1)),
885
918
  (c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
@@ -887,10 +920,10 @@ function jt(n, s, r, i, t, e) {
887
920
  style: g(`overflow: visible;background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`),
888
921
  class: p({ "th-has-nan": t.hasNaN[o] })
889
922
  }, [
890
- e.hasNumericTypes && ([t.constants.TEXT, t.constants.DATE].includes(l.type) || l.isPercentage) ? (c(), u("span", me, [
923
+ e.hasNumericTypes && ([t.constants.TEXT, t.constants.DATE].includes(l.type) || l.isPercentage) ? (c(), u("span", ye, [
891
924
  w(d(l.name) + " ", 1),
892
- l.isPercentage ? (c(), u("span", be, " / " + d(l.percentageTo), 1)) : b("", !0)
893
- ])) : (c(), u("span", fe, d(l.name), 1))
925
+ l.isPercentage ? (c(), u("span", me, " / " + d(l.percentageTo), 1)) : b("", !0)
926
+ ])) : (c(), u("span", be, d(l.name), 1))
894
927
  ], 6))), 128))
895
928
  ]),
896
929
  e.hasNumericTypes ? (c(), u(I, { key: 0 }, [
@@ -901,18 +934,18 @@ function jt(n, s, r, i, t, e) {
901
934
  class: p({ "th-numeric": !0, "th-has-nan": t.hasNaN[o] }),
902
935
  style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
903
936
  }, [
904
- l.sum && !t.hasNaN[o] ? (c(), u("span", Ne, [
937
+ l.sum && !t.hasNaN[o] ? (c(), u("span", fe, [
905
938
  a("span", {
906
939
  innerHTML: e.icons.sum,
907
940
  style: { "margin-bottom": "-4px", "margin-right": "3px" }
908
- }, null, 8, pe),
941
+ }, null, 8, Ne),
909
942
  w(" " + d(e.dataLabel({
910
943
  p: l.prefix,
911
944
  v: Number(e.getSum(o)),
912
945
  s: l.suffix,
913
946
  r: l.decimals
914
947
  })) + " ", 1),
915
- t.percentages[o] && l.percentageTo && !l.isPercentage ? (c(), u("span", Ce, " (" + d(isNaN(e.getSum(o) / e.getSum(t.percentages[o].referenceIndex)) ? "-" : e.dataLabel({
948
+ t.percentages[o] && l.percentageTo && !l.isPercentage ? (c(), u("span", pe, " (" + d(isNaN(e.getSum(o) / e.getSum(t.percentages[o].referenceIndex)) ? "-" : e.dataLabel({
916
949
  v: e.getSum(o) / e.getSum(t.percentages[o].referenceIndex) * 100,
917
950
  s: "%",
918
951
  r: l.decimals
@@ -927,7 +960,7 @@ function jt(n, s, r, i, t, e) {
927
960
  class: p({ "th-numeric": !0, "th-has-nan": t.hasNaN[o] }),
928
961
  style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
929
962
  }, [
930
- l.average && !t.hasNaN[o] ? (c(), u("span", Ie, " ~ " + d(isNaN(e.getAverage(o)) ? "" : e.dataLabel({
963
+ l.average && !t.hasNaN[o] ? (c(), u("span", Ce, " ~ " + d(isNaN(e.getAverage(o)) ? "" : e.dataLabel({
931
964
  p: l.prefix,
932
965
  v: Number(e.getAverage(o)),
933
966
  s: l.suffix,
@@ -942,13 +975,13 @@ function jt(n, s, r, i, t, e) {
942
975
  class: p({ "th-has-nan": t.hasNaN[o] }),
943
976
  style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
944
977
  }, [
945
- a("div", Fe, [
946
- l.type === t.constants.DATE && t.dates[o] ? (c(), u("div", ve, [
947
- a("div", we, [
948
- a("div", _e, [
978
+ a("div", Ie, [
979
+ l.type === t.constants.DATE && t.dates[o] ? (c(), u("div", Fe, [
980
+ a("div", ve, [
981
+ a("div", we, [
949
982
  a("label", {
950
983
  for: `from_${o}`
951
- }, d(e.FINAL_CONFIG.translations.from), 9, ke),
984
+ }, d(e.FINAL_CONFIG.translations.from), 9, _e),
952
985
  O(a("input", {
953
986
  id: `from_${o}`,
954
987
  type: "date",
@@ -957,14 +990,14 @@ function jt(n, s, r, i, t, e) {
957
990
  e.filterBody(), e.setFilterDatesIndexes(o);
958
991
  },
959
992
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
960
- }, null, 44, Oe), [
993
+ }, null, 44, ke), [
961
994
  [S, t.dates[o].from]
962
995
  ])
963
996
  ]),
964
- a("div", Se, [
997
+ a("div", Oe, [
965
998
  a("label", {
966
999
  for: `to_${o}`
967
- }, d(e.FINAL_CONFIG.translations.to), 9, Le),
1000
+ }, d(e.FINAL_CONFIG.translations.to), 9, Se),
968
1001
  O(a("input", {
969
1002
  id: `to_${o}`,
970
1003
  type: "date",
@@ -973,12 +1006,12 @@ function jt(n, s, r, i, t, e) {
973
1006
  e.filterBody(), e.setFilterDatesIndexes(o);
974
1007
  },
975
1008
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
976
- }, null, 44, Ae), [
1009
+ }, null, 44, Le), [
977
1010
  [S, t.dates[o].to]
978
1011
  ])
979
1012
  ])
980
1013
  ]),
981
- a("div", Me, [
1014
+ a("div", Ae, [
982
1015
  l.isSort ? (c(), u("button", {
983
1016
  key: 0,
984
1017
  onClick: (h) => e.sortTh(o, h),
@@ -988,21 +1021,21 @@ function jt(n, s, r, i, t, e) {
988
1021
  t.sorts[o] === t.constants.ASC ? (c(), u("span", {
989
1022
  key: 0,
990
1023
  innerHTML: [t.constants.DATE].includes(l.type) ? e.icons.sort09 : e.icons.sortAZ
991
- }, null, 8, Ge)) : t.sorts[o] === t.constants.DESC ? (c(), u("span", {
1024
+ }, null, 8, De)) : t.sorts[o] === t.constants.DESC ? (c(), u("span", {
992
1025
  key: 1,
993
1026
  innerHTML: [t.constants.DATE].includes(l.type) ? e.icons.sort90 : e.icons.sortZA
994
- }, null, 8, Te)) : (c(), u("span", {
1027
+ }, null, 8, Ge)) : (c(), u("span", {
995
1028
  key: 2,
996
1029
  innerHTML: e.icons.arrowSort
997
- }, null, 8, xe))
998
- ], 14, De)) : b("", !0),
1030
+ }, null, 8, Te))
1031
+ ], 14, Me)) : b("", !0),
999
1032
  a("button", {
1000
1033
  onClick: (h) => {
1001
1034
  e.resetDates(o), e.resetFilter(o, l, h);
1002
1035
  },
1003
1036
  disabled: !t.filteredDatesIndexes[o] && e.isResetDisabled(o, l),
1004
1037
  class: "th-reset"
1005
- }, " ✖ ", 8, Ee)
1038
+ }, " ✖ ", 8, xe)
1006
1039
  ])
1007
1040
  ])) : b("", !0),
1008
1041
  l.isSearch ? O((c(), u("input", {
@@ -1012,7 +1045,7 @@ function jt(n, s, r, i, t, e) {
1012
1045
  onInput: s[4] || (s[4] = (h) => e.debounce(e.filterBody, 400)),
1013
1046
  name: `search_${o}`,
1014
1047
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
1015
- }, null, 44, Be)), [
1048
+ }, null, 44, Ee)), [
1016
1049
  [S, t.searches[o]]
1017
1050
  ]) : b("", !0),
1018
1051
  !t.hasNaN[o] && l.isSort && l.type !== t.constants.DATE ? (c(), u("button", {
@@ -1024,36 +1057,36 @@ function jt(n, s, r, i, t, e) {
1024
1057
  t.sorts[o] === t.constants.ASC ? (c(), u("span", {
1025
1058
  key: 0,
1026
1059
  innerHTML: [t.constants.NUMERIC].includes(l.type) ? e.icons.sort09 : e.icons.sortZA
1027
- }, null, 8, Re)) : t.sorts[o] === t.constants.DESC ? (c(), u("span", {
1060
+ }, null, 8, Be)) : t.sorts[o] === t.constants.DESC ? (c(), u("span", {
1028
1061
  key: 1,
1029
1062
  innerHTML: [t.constants.NUMERIC].includes(l.type) ? e.icons.sort90 : e.icons.sortAZ
1030
- }, null, 8, Pe)) : (c(), u("span", {
1063
+ }, null, 8, He)) : (c(), u("span", {
1031
1064
  key: 2,
1032
1065
  innerHTML: e.icons.arrowSort
1033
- }, null, 8, ze))
1034
- ], 14, He)) : b("", !0),
1066
+ }, null, 8, Re))
1067
+ ], 14, Pe)) : b("", !0),
1035
1068
  l.isMultiselect ? (c(), u("button", {
1036
1069
  key: 3,
1037
1070
  onClick: (h) => e.toggleMultiselect(o, l, h),
1038
1071
  innerHTML: e.icons.filter,
1039
1072
  class: p({ "th-button-active": t.multiselects[o] && t.multiselects[o].length !== e.getDropdownOptions(o).length }),
1040
1073
  style: g(`background:${t.multiselects[o] && t.multiselects[o].length !== e.getDropdownOptions(o).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.multiselects[o] && t.multiselects[o].length !== e.getDropdownOptions(o).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
1041
- }, null, 14, Ue)) : b("", !0),
1074
+ }, null, 14, ze)) : b("", !0),
1042
1075
  t.currentSelectionSpan.col === o && e.canChart ? (c(), u("button", {
1043
1076
  key: 4,
1044
1077
  onClick: s[5] || (s[5] = (h) => t.showChart = !t.showChart),
1045
1078
  innerHTML: e.icons.chart,
1046
1079
  class: p({ "th-button-active": t.showChart }),
1047
1080
  style: g(`background:${t.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
1048
- }, null, 14, Ve)) : b("", !0),
1049
- l.rangeFilter && t.rangeFilters[o] && !t.hasNaN[o] ? (c(), u("div", Xe, [
1081
+ }, null, 14, Ue)) : b("", !0),
1082
+ l.rangeFilter && t.rangeFilters[o] && !t.hasNaN[o] ? (c(), u("div", Ve, [
1050
1083
  a("label", {
1051
1084
  for: `rangeMin${o}`
1052
1085
  }, [...s[29] || (s[29] = [
1053
1086
  a("span", { style: { color: "grey" } }, "ᒥ", -1),
1054
1087
  w(" min ", -1),
1055
1088
  a("span", { style: { color: "grey" } }, "ᒣ", -1)
1056
- ])], 8, je),
1089
+ ])], 8, Xe),
1057
1090
  O(a("input", {
1058
1091
  type: "number",
1059
1092
  id: `rangeMin${o}`,
@@ -1062,7 +1095,7 @@ function jt(n, s, r, i, t, e) {
1062
1095
  "onUpdate:modelValue": (h) => t.rangeFilters[o].min = h,
1063
1096
  onInput: s[6] || (s[6] = (h) => e.debounce(e.filterBody, 400)),
1064
1097
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
1065
- }, null, 44, Ye), [
1098
+ }, null, 44, je), [
1066
1099
  [
1067
1100
  S,
1068
1101
  t.rangeFilters[o].min,
@@ -1078,7 +1111,7 @@ function jt(n, s, r, i, t, e) {
1078
1111
  "onUpdate:modelValue": (h) => t.rangeFilters[o].max = h,
1079
1112
  onInput: s[7] || (s[7] = (h) => e.debounce(e.filterBody, 400)),
1080
1113
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
1081
- }, null, 44, We), [
1114
+ }, null, 44, Ye), [
1082
1115
  [
1083
1116
  S,
1084
1117
  t.rangeFilters[o].max,
@@ -1092,14 +1125,14 @@ function jt(n, s, r, i, t, e) {
1092
1125
  a("span", { style: { color: "grey" } }, "ᒪ", -1),
1093
1126
  w(" max ", -1),
1094
1127
  a("span", { style: { color: "grey" } }, "ᒧ", -1)
1095
- ])], 8, Je)
1128
+ ])], 8, We)
1096
1129
  ])) : b("", !0),
1097
1130
  e.canResetColumn(o, l) ? (c(), u("button", {
1098
1131
  key: 6,
1099
1132
  onClick: (h) => e.resetFilter(o, l, h),
1100
1133
  disabled: e.isResetDisabled(o, l),
1101
1134
  class: "th-reset"
1102
- }, " ✖ ", 8, Ke)) : b("", !0),
1135
+ }, " ✖ ", 8, Je)) : b("", !0),
1103
1136
  l.isMultiselect ? (c(), u("div", {
1104
1137
  key: 7,
1105
1138
  class: "th-dropdown",
@@ -1111,7 +1144,7 @@ function jt(n, s, r, i, t, e) {
1111
1144
  class: "close-dropdown",
1112
1145
  onClick: (h) => e.toggleMultiselect(o, l, h),
1113
1146
  style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
1114
- }, " ✖ ", 12, qe),
1147
+ }, " ✖ ", 12, Ze),
1115
1148
  (c(!0), u(I, null, _(e.getDropdownOptions(o), (h, m) => (c(), u("span", {
1116
1149
  class: "th-option",
1117
1150
  key: `th_option_${o}_${m}`,
@@ -1133,8 +1166,8 @@ function jt(n, s, r, i, t, e) {
1133
1166
  class: "th-icon-red"
1134
1167
  }, d(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
1135
1168
  a("span", null, d(h), 1)
1136
- ], 44, Qe))), 128))
1137
- ], 12, Ze)) : b("", !0)
1169
+ ], 44, qe))), 128))
1170
+ ], 12, Ke)) : b("", !0)
1138
1171
  ])
1139
1172
  ], 6))), 128))
1140
1173
  ])
@@ -1153,10 +1186,10 @@ function jt(n, s, r, i, t, e) {
1153
1186
  tabindex: "0",
1154
1187
  onClick: A((h) => e.selectColumn(o), ["stop"]),
1155
1188
  onKeyup: L((h) => e.selectColumn(o), ["enter"])
1156
- }, null, 42, $e))
1189
+ }, null, 42, Qe))
1157
1190
  ], 6))), 128))
1158
1191
  ])
1159
- ]),
1192
+ ], 4),
1160
1193
  a("tbody", {
1161
1194
  onClick: s[8] || (s[8] = (...l) => e.closeAllDropdowns && e.closeAllDropdowns(...l)),
1162
1195
  onKeydown: s[9] || (s[9] = (l) => e.navigateCell(l))
@@ -1170,7 +1203,7 @@ function jt(n, s, r, i, t, e) {
1170
1203
  a("td", {
1171
1204
  class: "vue-ui-table-td-iteration",
1172
1205
  "data-row": o % 2 === 0 ? "odd" : "even"
1173
- }, d(l.absoluteIndex + 1), 9, tt),
1206
+ }, d(l.absoluteIndex + 1), 9, et),
1174
1207
  (c(!0), u(I, null, _(l.td, (h, m) => (c(), u("td", {
1175
1208
  "data-row": o % 2 === 0 ? "odd" : "even",
1176
1209
  key: `td_${o}_${m}`,
@@ -1206,8 +1239,8 @@ function jt(n, s, r, i, t, e) {
1206
1239
  key: 0,
1207
1240
  style: g(`color:${l.meta.color};margin-right:3px`),
1208
1241
  innerHTML: l.meta.unicodeIcon
1209
- }, null, 12, nt)) : b("", !0),
1210
- r.dataset.header[m].type === t.constants.DATE ? (c(), u("span", rt, d(r.dataset.header[m].prefix) + " " + d(new Date(h).toLocaleString().slice(0, 10)) + " " + d(r.dataset.header[m].suffix), 1)) : r.dataset.header[m].isPercentage ? (c(), u("span", ot, d(e.dataLabel({
1242
+ }, null, 12, st)) : b("", !0),
1243
+ r.dataset.header[m].type === t.constants.DATE ? (c(), u("span", nt, d(r.dataset.header[m].prefix) + " " + d(new Date(h).toLocaleString().slice(0, 10)) + " " + d(r.dataset.header[m].suffix), 1)) : r.dataset.header[m].isPercentage ? (c(), u("span", rt, d(e.dataLabel({
1211
1244
  v: Number(h * 100),
1212
1245
  s: "%",
1213
1246
  r: r.dataset.header[m].decimals
@@ -1231,9 +1264,9 @@ function jt(n, s, r, i, t, e) {
1231
1264
  v: Number(h.toFixed(r.dataset.header[m].decimals)),
1232
1265
  s: r.dataset.header[m].suffix,
1233
1266
  r: r.dataset.header[m].decimals
1234
- })), 3)) : (c(), u("span", lt, d(r.dataset.header[m].prefix) + " " + d(h) + " " + d(r.dataset.header[m].suffix), 1))
1235
- ], 46, st))), 128))
1236
- ], 14, et))), 128))
1267
+ })), 3)) : (c(), u("span", ot, d(r.dataset.header[m].prefix) + " " + d(h) + " " + d(r.dataset.header[m].suffix), 1))
1268
+ ], 46, tt))), 128))
1269
+ ], 14, $e))), 128))
1237
1270
  ], 32)
1238
1271
  ])
1239
1272
  ], 4),
@@ -1245,25 +1278,25 @@ function jt(n, s, r, i, t, e) {
1245
1278
  a("div", {
1246
1279
  innerHTML: e.icons.table,
1247
1280
  class: "td-selector-icon"
1248
- }, null, 8, at),
1281
+ }, null, 8, lt),
1249
1282
  a("span", null, [
1250
1283
  a("b", null, [
1251
1284
  w(d(r.dataset.header[t.currentSelectionSpan.col].name) + " ", 1),
1252
- r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("span", it, " / " + d(r.dataset.header[t.percentages[t.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
1285
+ r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("span", at, " / " + d(r.dataset.header[t.percentages[t.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
1253
1286
  ]),
1254
- a("span", ct, [
1287
+ a("span", it, [
1255
1288
  w(d(e.FINAL_CONFIG.translations.nb) + " : ", 1),
1256
- a("b", ut, d(t.currentSelectionSpan.rows.length), 1)
1289
+ a("b", ct, d(t.currentSelectionSpan.rows.length), 1)
1257
1290
  ]),
1258
- a("span", ht, [
1291
+ a("span", ut, [
1259
1292
  w(d(e.FINAL_CONFIG.translations.sum) + " : ", 1),
1260
- r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", dt, d(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", gt, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.sumRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
1261
- r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", yt, "%")) : b("", !0)
1293
+ r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", ht, d(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", dt, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.sumRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
1294
+ r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", gt, "%")) : b("", !0)
1262
1295
  ]),
1263
- a("span", mt, [
1296
+ a("span", yt, [
1264
1297
  w(d(e.FINAL_CONFIG.translations.average) + " : ", 1),
1265
- r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", bt, d(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", ft, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.averageRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
1266
- r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", Nt, "%")) : b("", !0)
1298
+ r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", mt, d(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", bt, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.averageRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
1299
+ r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", ft, "%")) : b("", !0)
1267
1300
  ])
1268
1301
  ]),
1269
1302
  a("button", {
@@ -1273,13 +1306,15 @@ function jt(n, s, r, i, t, e) {
1273
1306
  }, " ✖ ", 4)
1274
1307
  ], 64)) : b("", !0)
1275
1308
  ], 6),
1276
- t.bodyCopy.length > 10 ? (c(), u("div", pt, [
1309
+ t.bodyCopy.length > 10 ? (c(), u("div", Nt, [
1277
1310
  w(d(e.FINAL_CONFIG.translations.totalRows) + " : " + d(r.dataset.body.length) + " | " + d(e.FINAL_CONFIG.translations.paginatorLabel) + " : ", 1),
1278
1311
  t.bodyCopy.length > 10 ? O((c(), u("select", {
1279
1312
  key: 0,
1280
1313
  id: "paginatorSelector",
1281
1314
  "onUpdate:modelValue": s[11] || (s[11] = (l) => t.itemsPerPage = l),
1282
- onChange: s[12] || (s[12] = (...l) => e.resetSelection && e.resetSelection(...l)),
1315
+ onChange: s[12] || (s[12] = (l) => {
1316
+ e.resetSelection(), e.onPageChange();
1317
+ }),
1283
1318
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
1284
1319
  }, [
1285
1320
  (c(!0), u(I, null, _(t.paginatorOptions, (l, o) => (c(), u(I, null, [
@@ -1296,34 +1331,34 @@ function jt(n, s, r, i, t, e) {
1296
1331
  ]
1297
1332
  ]) : b("", !0)
1298
1333
  ])) : b("", !0),
1299
- t.itemsPerPage >= 250 ? (c(), u("div", Ct, [
1334
+ t.itemsPerPage >= 250 ? (c(), u("div", pt, [
1300
1335
  a("span", {
1301
1336
  innerHTML: e.icons.warning
1302
- }, null, 8, It),
1337
+ }, null, 8, Ct),
1303
1338
  w(d(e.FINAL_CONFIG.translations.sizeWarning), 1)
1304
1339
  ])) : b("", !0),
1305
1340
  e.pages.length > 1 && e.pages.length <= 10 ? (c(), u("div", {
1306
- key: 2,
1341
+ key: 3,
1307
1342
  class: "vue-ui-table-navigation-indicator",
1308
1343
  style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${t.currentPage / (e.pages.length - 1) * 100}%)`)
1309
1344
  }, null, 4)) : b("", !0),
1310
- e.pages.length > 1 ? (c(), u("div", Ft, [
1345
+ e.pages.length > 1 ? (c(), u("div", It, [
1311
1346
  a("button", {
1312
1347
  class: "vue-ui-table-navigation",
1313
1348
  onClick: s[13] || (s[13] = A((l) => e.navigate("previous"), ["stop"])),
1314
1349
  innerHTML: e.icons.chevronLeft,
1315
1350
  disabled: t.currentPage === 0,
1316
1351
  style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
1317
- }, null, 12, vt),
1352
+ }, null, 12, Ft),
1318
1353
  e.pages.length > 3 ? (c(), u(I, { key: 0 }, [
1319
1354
  a("button", {
1320
1355
  class: "vue-ui-table-navigation",
1321
1356
  onClick: s[14] || (s[14] = A((l) => e.navigate(1), ["stop"])),
1322
1357
  disabled: t.currentPage === 0,
1323
1358
  style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
1324
- }, " 1 ", 12, wt),
1325
- e.pages.length > 10 ? (c(), u("div", _t, [
1326
- a("label", kt, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1),
1359
+ }, " 1 ", 12, vt),
1360
+ e.pages.length > 10 ? (c(), u("div", wt, [
1361
+ a("label", _t, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1),
1327
1362
  a("input", {
1328
1363
  class: "vue-ui-table-page-scroller",
1329
1364
  id: "pageScroller",
@@ -1334,14 +1369,14 @@ function jt(n, s, r, i, t, e) {
1334
1369
  onInput: s[15] || (s[15] = (l) => e.updateCurrentPage(l)),
1335
1370
  value: t.currentPage,
1336
1371
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border};accent-color:${e.FINAL_CONFIG.style.inputs.accentColor}`)
1337
- }, null, 44, Ot)
1338
- ])) : (c(), u("span", St, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1)),
1372
+ }, null, 44, kt)
1373
+ ])) : (c(), u("span", Ot, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1)),
1339
1374
  a("button", {
1340
1375
  class: "vue-ui-table-navigation",
1341
1376
  onClick: s[16] || (s[16] = A((l) => e.navigate(e.pages.length), ["stop"])),
1342
1377
  disabled: t.currentPage === e.pages.length - 1,
1343
1378
  style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === e.pages.length - 1 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
1344
- }, d(e.pages.length), 13, Lt)
1379
+ }, d(e.pages.length), 13, St)
1345
1380
  ], 64)) : (c(), u(I, { key: 1 }, [
1346
1381
  w(d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1)
1347
1382
  ], 64)),
@@ -1351,10 +1386,10 @@ function jt(n, s, r, i, t, e) {
1351
1386
  innerHTML: e.icons.chevronRight,
1352
1387
  disabled: t.currentPage === e.pages.length - 1,
1353
1388
  style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === e.pages.length - 1 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
1354
- }, null, 12, At)
1389
+ }, null, 12, Lt)
1355
1390
  ])) : b("", !0),
1356
1391
  t.showChart && e.canChart ? (c(), u("div", {
1357
- key: 4,
1392
+ key: 5,
1358
1393
  class: "vue-ui-table-chart-modal",
1359
1394
  style: g(`width: ${t.modalWidth}px;top:${t.clientY}px; left:${t.clientX}px;background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
1360
1395
  }, [
@@ -1364,7 +1399,7 @@ function jt(n, s, r, i, t, e) {
1364
1399
  }, [
1365
1400
  a("span", {
1366
1401
  innerHTML: e.icons.grip
1367
- }, null, 8, Mt),
1402
+ }, null, 8, At),
1368
1403
  a("button", {
1369
1404
  class: "close-chart-modal",
1370
1405
  onClick: s[18] || (s[18] = (l) => t.showChart = !1)
@@ -1375,14 +1410,14 @@ function jt(n, s, r, i, t, e) {
1375
1410
  class: "close-chart-modal",
1376
1411
  onClick: s[20] || (s[20] = (l) => t.showChart = !1)
1377
1412
  }, " ✖ ", 4),
1378
- a("div", Dt, [
1413
+ a("div", Mt, [
1379
1414
  e.availableDonutCategories.length ? (c(), u("button", {
1380
1415
  key: 0,
1381
1416
  onClick: s[21] || (s[21] = (l) => t.showDonutOptions = !0),
1382
1417
  innerHTML: e.icons.donut,
1383
1418
  class: p({ "is-active-chart": t.chart.type === t.constants.DONUT || t.showDonutOptions }),
1384
1419
  style: g(`background:${t.chart.type === t.constants.DONUT || t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.DONUT || t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
1385
- }, null, 14, Gt)) : b("", !0),
1420
+ }, null, 14, Dt)) : b("", !0),
1386
1421
  a("button", {
1387
1422
  onClick: s[22] || (s[22] = (l) => {
1388
1423
  t.chart.type = t.constants.LINE, t.showDonutOptions = !1;
@@ -1390,7 +1425,7 @@ function jt(n, s, r, i, t, e) {
1390
1425
  innerHTML: e.icons.chart,
1391
1426
  class: p({ "is-active-chart": t.chart.type === t.constants.LINE && !t.showDonutOptions }),
1392
1427
  style: g(`background:${t.chart.type === t.constants.LINE && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.LINE && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
1393
- }, null, 14, Tt),
1428
+ }, null, 14, Gt),
1394
1429
  a("button", {
1395
1430
  onClick: s[23] || (s[23] = (l) => {
1396
1431
  t.chart.type = t.constants.BAR, t.showDonutOptions = !1;
@@ -1398,16 +1433,16 @@ function jt(n, s, r, i, t, e) {
1398
1433
  innerHTML: e.icons.bar,
1399
1434
  class: p({ "is-active-chart": t.chart.type === t.constants.BAR && !t.showDonutOptions }),
1400
1435
  style: g(`background:${t.chart.type === t.constants.BAR && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.BAR && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
1401
- }, null, 14, xt)
1436
+ }, null, 14, Tt)
1402
1437
  ]),
1403
- a("div", Et, [
1438
+ a("div", xt, [
1404
1439
  t.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
1405
1440
  key: 0,
1406
1441
  style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
1407
1442
  }, [
1408
- a("fieldset", Bt, [
1443
+ a("fieldset", Et, [
1409
1444
  a("legend", null, d(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
1410
- a("div", Ht, [
1445
+ a("div", Pt, [
1411
1446
  (c(!0), u(I, null, _(e.availableDonutCategories, (l, o) => (c(), u("div", {
1412
1447
  key: `donut_radio_${o}`,
1413
1448
  class: "vue-ui-table-fieldset-option"
@@ -1419,10 +1454,10 @@ function jt(n, s, r, i, t, e) {
1419
1454
  checked: t.selectedDonutCategory && l.name === t.selectedDonutCategory.name,
1420
1455
  onInput: (h) => t.selectedDonutCategory = e.availableDonutCategories[o],
1421
1456
  style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border};accent-color:${e.FINAL_CONFIG.style.inputs.accentColor}`)
1422
- }, null, 44, Rt),
1457
+ }, null, 44, Bt),
1423
1458
  a("label", {
1424
1459
  for: l.name
1425
- }, d(l.name), 9, Pt)
1460
+ }, d(l.name), 9, Ht)
1426
1461
  ]))), 128))
1427
1462
  ]),
1428
1463
  a("button", {
@@ -1434,13 +1469,13 @@ function jt(n, s, r, i, t, e) {
1434
1469
  a("div", {
1435
1470
  style: { "margin-bottom": "-3px" },
1436
1471
  innerHTML: e.icons.donut
1437
- }, null, 8, Ut),
1472
+ }, null, 8, zt),
1438
1473
  w(" " + d(e.FINAL_CONFIG.translations.makeDonut), 1)
1439
- ], 12, zt)
1474
+ ], 12, Rt)
1440
1475
  ])
1441
1476
  ], 4)) : b("", !0),
1442
1477
  [t.constants.BAR, t.constants.LINE].includes(t.chart.type) && !t.showDonutOptions ? (c(), u(I, { key: 1 }, [
1443
- a("div", Vt, [
1478
+ a("div", Ut, [
1444
1479
  t.chart.type === t.constants.LINE ? (c(), E(y, {
1445
1480
  key: 0,
1446
1481
  dataset: e.chartData.xyDatasetLine,
@@ -1465,7 +1500,7 @@ function jt(n, s, r, i, t, e) {
1465
1500
  })), 1)
1466
1501
  ], 4)) : b("", !0)
1467
1502
  ], 64)) : b("", !0),
1468
- [t.constants.DONUT].includes(t.chart.type) && !t.showDonutOptions ? (c(), u("div", Xt, [
1503
+ [t.constants.DONUT].includes(t.chart.type) && !t.showDonutOptions ? (c(), u("div", Vt, [
1469
1504
  ee(f, {
1470
1505
  dataset: t.currentDonut,
1471
1506
  config: e.chartData.donutConfig
@@ -1475,7 +1510,7 @@ function jt(n, s, r, i, t, e) {
1475
1510
  ], 4)) : b("", !0)
1476
1511
  ], 4);
1477
1512
  }
1478
- const Qt = /* @__PURE__ */ te(se, [["render", jt], ["__scopeId", "data-v-9b6f6f87"]]);
1513
+ const qt = /* @__PURE__ */ te(se, [["render", Xt], ["__scopeId", "data-v-e6189df5"]]);
1479
1514
  export {
1480
- Qt as default
1515
+ qt as default
1481
1516
  };