vue-data-ui 3.22.9 → 3.22.11

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