vue-data-ui 3.2.5 → 3.2.7
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.
- package/dist/{PackageVersion-CPxZT-xH.js → PackageVersion-Cwrh45ON.js} +1 -1
- package/dist/{Title-B3UTqrqj.js → Title-DG2nloSB.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{themes-D3cUNuKw.js → themes-Dw-dDudK.js} +1 -1
- package/dist/types/vue-data-ui.d.ts +39 -1
- package/dist/{useNestedProp-B9OeNO-E.js → useNestedProp-BOk-tPdu.js} +157 -121
- package/dist/{vue-data-ui-C-XpoSih.js → vue-data-ui-DH8opsJv.js} +63 -63
- package/dist/vue-data-ui.js +65 -65
- package/dist/{vue-ui-3d-bar-DOecLYLE.js → vue-ui-3d-bar-CRXnB8wH.js} +4 -4
- package/dist/{vue-ui-accordion-DrKVXpRB.js → vue-ui-accordion-CeMTgpl0.js} +9 -9
- package/dist/{vue-ui-age-pyramid-C0-TsZiO.js → vue-ui-age-pyramid-BEGsngR6.js} +4 -4
- package/dist/{vue-ui-annotator-GYJPPkqk.js → vue-ui-annotator-BhZr9pFJ.js} +2 -2
- package/dist/{vue-ui-bullet-D8BTxLsh.js → vue-ui-bullet-CrCHb15S.js} +4 -4
- package/dist/{vue-ui-candlestick-C8EKzgk8.js → vue-ui-candlestick-CnWY88nd.js} +4 -4
- package/dist/{vue-ui-carousel-table-DWDAT9Bv.js → vue-ui-carousel-table-CsVWXrdA.js} +2 -2
- package/dist/{vue-ui-chestnut-moaiX3ch.js → vue-ui-chestnut-NpO91zJV.js} +3 -3
- package/dist/{vue-ui-chord-BV_o4nlt.js → vue-ui-chord-bIihB6Qf.js} +4 -4
- package/dist/{vue-ui-circle-pack-CGZzZeiw.js → vue-ui-circle-pack-Z5VTiXZU.js} +4 -4
- package/dist/{vue-ui-cursor-DPpffCgE.js → vue-ui-cursor-Detis-4Y.js} +1 -1
- package/dist/{vue-ui-dashboard-elD5LDyG.js → vue-ui-dashboard-BEJ5uSZV.js} +63 -63
- package/dist/{vue-ui-digits-D3ajh8NJ.js → vue-ui-digits-CDtdGqLS.js} +1 -1
- package/dist/{vue-ui-donut-fadiDQvI.js → vue-ui-donut-a82yzfvT.js} +4 -4
- package/dist/{vue-ui-donut-evolution-BtoygMFS.js → vue-ui-donut-evolution-DP_dXmIC.js} +4 -4
- package/dist/{vue-ui-dumbbell-DHCYzyJz.js → vue-ui-dumbbell-BDIzPnlX.js} +4 -4
- package/dist/{vue-ui-flow-D4ylW0W1.js → vue-ui-flow-B72CBzC3.js} +4 -4
- package/dist/{vue-ui-funnel-MoRuRQaq.js → vue-ui-funnel-CaxHiJIB.js} +4 -4
- package/dist/{vue-ui-galaxy-C7AvuJir.js → vue-ui-galaxy-CbGRAAFI.js} +4 -4
- package/dist/{vue-ui-gauge-D0R9gL9E.js → vue-ui-gauge-But_1QwV.js} +4 -4
- package/dist/{vue-ui-gizmo-BFyI_9mt.js → vue-ui-gizmo-DcBQp-C8.js} +2 -2
- package/dist/{vue-ui-heatmap-Dte8MPCp.js → vue-ui-heatmap-BAVkwnbX.js} +5 -5
- package/dist/{vue-ui-history-plot-6dD96OTH.js → vue-ui-history-plot-BlVib573.js} +4 -4
- package/dist/{vue-ui-kpi-BAwj45_1.js → vue-ui-kpi-DuFgWXJM.js} +2 -2
- package/dist/{vue-ui-mini-loader-D6fOQZX6.js → vue-ui-mini-loader-D4W9oE3V.js} +1 -1
- package/dist/{vue-ui-molecule-B5SmQ6k6.js → vue-ui-molecule-CEb6_0wR.js} +3 -3
- package/dist/{vue-ui-mood-radar-C7OVR2P_.js → vue-ui-mood-radar-CqJPicZv.js} +4 -4
- package/dist/{vue-ui-nested-donuts-BGX4yvnh.js → vue-ui-nested-donuts-B6rmNl9X.js} +4 -4
- package/dist/{vue-ui-onion-DS7LaVFL.js → vue-ui-onion-BWAdTZ6V.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-DwK4-ZyV.js → vue-ui-parallel-coordinate-plot-DXbgnatq.js} +4 -4
- package/dist/{vue-ui-quadrant-CIIvIECe.js → vue-ui-quadrant-BwGMZ_d_.js} +4 -4
- package/dist/{vue-ui-quick-chart-Cba6XAFF.js → vue-ui-quick-chart-2bQ0DX_A.js} +3 -3
- package/dist/{vue-ui-radar-BCyKcnH1.js → vue-ui-radar-DPXvVIbh.js} +4 -4
- package/dist/{vue-ui-rating-HgSUBbJx.js → vue-ui-rating-CxIBq7Xr.js} +1 -1
- package/dist/{vue-ui-relation-circle-VBceGE52.js → vue-ui-relation-circle-BVGAfqBj.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bn2iVW8_.js → vue-ui-ridgeline-C6UdClMT.js} +4 -4
- package/dist/{vue-ui-rings-NoFKU2kZ.js → vue-ui-rings-B_7zAshC.js} +4 -4
- package/dist/{vue-ui-scatter-BWIcu0AU.js → vue-ui-scatter-BRr9oPfo.js} +4 -4
- package/dist/{vue-ui-skeleton-DPYUcomF.js → vue-ui-skeleton-C3tGR_lR.js} +2 -2
- package/dist/{vue-ui-smiley-C2wHzhBj.js → vue-ui-smiley-B70Ck-49.js} +1 -1
- package/dist/{vue-ui-spark-trend-B57gzgJA.js → vue-ui-spark-trend-C2tSZULg.js} +3 -3
- package/dist/{vue-ui-sparkbar-BKMkKeAJ.js → vue-ui-sparkbar-BUPDw_qR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C3R0tWzz.js → vue-ui-sparkgauge-DufAZyFK.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-31hSCW__.js → vue-ui-sparkhistogram-DDunWMKu.js} +3 -3
- package/dist/{vue-ui-sparkline-DGy1K2y4.js → vue-ui-sparkline-lRx2nNde.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-C6wOF12V.js → vue-ui-sparkstackbar-CB6WHJHd.js} +3 -3
- package/dist/{vue-ui-stackbar-BSnIzSOz.js → vue-ui-stackbar-CQ9Zvuxh.js} +4 -4
- package/dist/{vue-ui-strip-plot-Dt8rJHX1.js → vue-ui-strip-plot-DW3c82dV.js} +4 -4
- package/dist/{vue-ui-table-DZ_jLauo.js → vue-ui-table-CEt97z7F.js} +259 -212
- package/dist/{vue-ui-table-heatmap-wRY63Mop.js → vue-ui-table-heatmap-DFZCaMxK.js} +2 -2
- package/dist/{vue-ui-table-sparkline-2ZPRQrqb.js → vue-ui-table-sparkline-RB40-Z1R.js} +3 -3
- package/dist/{vue-ui-thermometer-CZDRLAlr.js → vue-ui-thermometer-fmPzO-eT.js} +4 -4
- package/dist/{vue-ui-timer-wMk4sVkK.js → vue-ui-timer-qxLpO3HX.js} +3 -3
- package/dist/{vue-ui-tiremarks-C1IEecQB.js → vue-ui-tiremarks-Cxx97FLg.js} +4 -4
- package/dist/{vue-ui-treemap-Q4PWFmqT.js → vue-ui-treemap-B4-IPDxV.js} +4 -4
- package/dist/{vue-ui-vertical-bar-C7nhAu5t.js → vue-ui-vertical-bar-Y5LefeNg.js} +5 -5
- package/dist/{vue-ui-waffle-B7lfNgi8.js → vue-ui-waffle-gvnJOZlg.js} +4 -4
- package/dist/{vue-ui-wheel-h30eu5fl.js → vue-ui-wheel-BzS_N3GP.js} +4 -4
- package/dist/{vue-ui-word-cloud-C4fjGysW.js → vue-ui-word-cloud-vWhTarrE.js} +4 -4
- package/dist/{vue-ui-world-C9xV3sZJ.js → vue-ui-world-CqWuE8ZR.js} +2 -2
- package/dist/{vue-ui-xy-vlcc3Vxv.js → vue-ui-xy-BxpuE9Ng.js} +1766 -1754
- package/dist/vue-ui-xy-canvas-C9YQjaUA.js +1305 -0
- package/package.json +1 -1
- package/dist/vue-ui-xy-canvas-iPqn9H95.js +0 -1302
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a2 as
|
|
2
|
-
import { u as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
1
|
+
import { a2 as Y, t as W, m as G, y as J, d as K, r as Z, x as q, a6 as Q, h as $, E as ee, s as E, p as te } from "./lib-BEpWEyMm.js";
|
|
2
|
+
import { u as se } from "./useNestedProp-BOk-tPdu.js";
|
|
3
|
+
import ne from "./vue-ui-xy-BxpuE9Ng.js";
|
|
4
|
+
import re from "./vue-ui-donut-a82yzfvT.js";
|
|
5
|
+
import le from "./BaseIcon-Bz-1GQhu.js";
|
|
6
|
+
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, withDirectives as O, withKeys as L, withModifiers as S, vModelText as A, createVNode as P, Fragment as C, renderList as k, normalizeClass as p, createTextVNode as _, vModelSelect as H, createBlock as R, ref as oe, computed as ae, useCssVars as ie } from "vue";
|
|
7
|
+
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const D = {
|
|
9
9
|
name: "vue-ui-table",
|
|
10
10
|
props: {
|
|
11
11
|
config: {
|
|
@@ -21,7 +21,7 @@ const le = {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
components: { VueUiXy:
|
|
24
|
+
components: { VueUiXy: ne, VueUiDonut: re, BaseIcon: le },
|
|
25
25
|
emits: ["page-change"],
|
|
26
26
|
data() {
|
|
27
27
|
return {
|
|
@@ -79,7 +79,7 @@ const le = {
|
|
|
79
79
|
itemsPerPage: this.config.rowsPerPage ? this.config.rowsPerPage : 25,
|
|
80
80
|
multiselects: {},
|
|
81
81
|
paginatorOptions: [.../* @__PURE__ */ new Set([10, 25, 50, 100, 250, 500, this.config.rowsPerPage ? this.config.rowsPerPage : 25, this.dataset.body.length])].sort((t, r) => t - r),
|
|
82
|
-
palette:
|
|
82
|
+
palette: te,
|
|
83
83
|
percentages: {},
|
|
84
84
|
rafId: null,
|
|
85
85
|
rangeFilters: {},
|
|
@@ -118,7 +118,7 @@ const le = {
|
|
|
118
118
|
};
|
|
119
119
|
},
|
|
120
120
|
setup() {
|
|
121
|
-
const n =
|
|
121
|
+
const n = oe(null), t = ae(() => n.value ? n.value.getBoundingClientRect().height + 3 : 3);
|
|
122
122
|
return {
|
|
123
123
|
tableCaption: n,
|
|
124
124
|
exportButtonTop: t
|
|
@@ -194,6 +194,36 @@ Provide an array of objects of type:
|
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
computed: {
|
|
197
|
+
colorCancelInactive() {
|
|
198
|
+
return this.FINAL_CONFIG.style.th.buttons.cancel.inactive.backgroundColor;
|
|
199
|
+
},
|
|
200
|
+
textColorCancelInactive() {
|
|
201
|
+
return this.FINAL_CONFIG.style.th.buttons.cancel.inactive.color;
|
|
202
|
+
},
|
|
203
|
+
colorCancelActive() {
|
|
204
|
+
return this.FINAL_CONFIG.style.th.buttons.cancel.active.backgroundColor;
|
|
205
|
+
},
|
|
206
|
+
colorCancelActiveLight() {
|
|
207
|
+
return G(this.colorCancelActive, 0.33);
|
|
208
|
+
},
|
|
209
|
+
colorCancelActiveOutline() {
|
|
210
|
+
return E(this.colorCancelActive, 33);
|
|
211
|
+
},
|
|
212
|
+
colorButtonSortActive() {
|
|
213
|
+
return this.FINAL_CONFIG.style.th.buttons.filter.active.backgroundColor;
|
|
214
|
+
},
|
|
215
|
+
colorButtonSortActiveLight() {
|
|
216
|
+
return G(this.colorButtonSortActive, 0.33);
|
|
217
|
+
},
|
|
218
|
+
colorButtonSortActiveOutline() {
|
|
219
|
+
return E(this.colorButtonSortActive, 33);
|
|
220
|
+
},
|
|
221
|
+
colorButtonSortInactive() {
|
|
222
|
+
return this.FINAL_CONFIG.style.th.buttons.filter.inactive.backgroundColor;
|
|
223
|
+
},
|
|
224
|
+
colorButtonSortActiveColorText() {
|
|
225
|
+
return this.FINAL_CONFIG.style.th.buttons.filter.active.color;
|
|
226
|
+
},
|
|
197
227
|
dateHeaders() {
|
|
198
228
|
return [...this.tableHead].filter((n) => n.type === this.constants.DATE);
|
|
199
229
|
},
|
|
@@ -219,9 +249,9 @@ Provide an array of objects of type:
|
|
|
219
249
|
},
|
|
220
250
|
chartData() {
|
|
221
251
|
if (!this.canChart) return [];
|
|
222
|
-
const n = 316, t = 512, r = this.currentSelectionSpan.rows.length, i = t / r, s = Math.max(...this.currentSelectionSpan.rows.map((v) => v.value)), e = Math.min(...this.currentSelectionSpan.rows.map((v) => v.value)), m = this.dataset.header[this.currentSelectionSpan.col].isPercentage && this.dataset.header[this.currentSelectionSpan.col].percentageTo, f = this.chart.type === this.constants.DONUT && this.selectedDonutCategory && this.selectedDonutCategory.name,
|
|
252
|
+
const n = 316, t = 512, r = this.currentSelectionSpan.rows.length, i = t / r, s = Math.max(...this.currentSelectionSpan.rows.map((v) => v.value)), e = Math.min(...this.currentSelectionSpan.rows.map((v) => v.value)), m = this.dataset.header[this.currentSelectionSpan.col].isPercentage && this.dataset.header[this.currentSelectionSpan.col].percentageTo, f = this.chart.type === this.constants.DONUT && this.selectedDonutCategory && this.selectedDonutCategory.name, w = this.dataset.header[this.currentSelectionSpan.col].name + (m ? ` / ${this.dataset.header[this.percentages[this.currentSelectionSpan.col].referenceIndex].name}` : "") + (f ? ` ${this.FINAL_CONFIG.translations.by} ${this.selectedDonutCategory.name}` : ""), o = this.dataset.header[this.currentSelectionSpan.col].prefix, l = this.dataset.header[this.currentSelectionSpan.col].suffix, d = [
|
|
223
253
|
{
|
|
224
|
-
name:
|
|
254
|
+
name: w,
|
|
225
255
|
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
226
256
|
type: "line",
|
|
227
257
|
useProgression: !0,
|
|
@@ -231,13 +261,13 @@ Provide an array of objects of type:
|
|
|
231
261
|
}
|
|
232
262
|
], y = [
|
|
233
263
|
{
|
|
234
|
-
name:
|
|
264
|
+
name: w,
|
|
235
265
|
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
236
266
|
type: "bar",
|
|
237
267
|
useProgression: !0,
|
|
238
268
|
color: this.FINAL_CONFIG.style.chart.layout.bar.fill
|
|
239
269
|
}
|
|
240
|
-
], I = this.FINAL_CONFIG.style.chart.modal.backgroundColor, N = this.adaptColorToBackground(I), F = this.dataset.header[this.currentSelectionSpan.col].decimals,
|
|
270
|
+
], I = this.FINAL_CONFIG.style.chart.modal.backgroundColor, N = this.adaptColorToBackground(I), F = this.dataset.header[this.currentSelectionSpan.col].decimals, V = {
|
|
241
271
|
chart: {
|
|
242
272
|
backgroundColor: I,
|
|
243
273
|
color: N,
|
|
@@ -247,7 +277,7 @@ Provide an array of objects of type:
|
|
|
247
277
|
suffix: l
|
|
248
278
|
},
|
|
249
279
|
grid: {
|
|
250
|
-
stroke:
|
|
280
|
+
stroke: G(N, 0.5),
|
|
251
281
|
labels: {
|
|
252
282
|
color: N,
|
|
253
283
|
xAxisLabels: {
|
|
@@ -267,7 +297,7 @@ Provide an array of objects of type:
|
|
|
267
297
|
color: N
|
|
268
298
|
},
|
|
269
299
|
title: {
|
|
270
|
-
text:
|
|
300
|
+
text: w,
|
|
271
301
|
color: N,
|
|
272
302
|
fontSize: 18
|
|
273
303
|
},
|
|
@@ -321,9 +351,9 @@ Provide an array of objects of type:
|
|
|
321
351
|
rounding: F
|
|
322
352
|
}
|
|
323
353
|
}
|
|
324
|
-
},
|
|
325
|
-
x: i *
|
|
326
|
-
y: (1 - (v.value +
|
|
354
|
+
}, T = e >= 0 ? 0 : Math.abs(e), X = s + T, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, B = this.currentSelectionSpan.rows.map((v, j) => ({
|
|
355
|
+
x: i * j + i / 2,
|
|
356
|
+
y: (1 - (v.value + T) / X) * n,
|
|
327
357
|
value: M ? v.value * 100 : v.value,
|
|
328
358
|
suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
|
|
329
359
|
prefix: this.dataset.header[this.currentSelectionSpan.col].prefix ? this.dataset.header[this.currentSelectionSpan.col].prefix : "",
|
|
@@ -396,7 +426,7 @@ Provide an array of objects of type:
|
|
|
396
426
|
right: 12
|
|
397
427
|
},
|
|
398
428
|
title: {
|
|
399
|
-
text:
|
|
429
|
+
text: w,
|
|
400
430
|
color: N,
|
|
401
431
|
fontSize: 18
|
|
402
432
|
},
|
|
@@ -410,10 +440,10 @@ Provide an array of objects of type:
|
|
|
410
440
|
}
|
|
411
441
|
}
|
|
412
442
|
},
|
|
413
|
-
xyConfig:
|
|
443
|
+
xyConfig: V,
|
|
414
444
|
xyDatasetLine: d,
|
|
415
445
|
xyDatasetBar: y,
|
|
416
|
-
progression:
|
|
446
|
+
progression: B.length >= 2 ? this.calcLinearProgression(B) : !1
|
|
417
447
|
};
|
|
418
448
|
},
|
|
419
449
|
hasNumericTypes() {
|
|
@@ -461,7 +491,7 @@ Provide an array of objects of type:
|
|
|
461
491
|
};
|
|
462
492
|
},
|
|
463
493
|
FINAL_CONFIG() {
|
|
464
|
-
const { vue_ui_table: n } =
|
|
494
|
+
const { vue_ui_table: n } = se();
|
|
465
495
|
if (!Object.keys(this.config || {}).length)
|
|
466
496
|
return n;
|
|
467
497
|
const t = this.treeShake({
|
|
@@ -476,15 +506,15 @@ Provide an array of objects of type:
|
|
|
476
506
|
},
|
|
477
507
|
methods: {
|
|
478
508
|
// lib
|
|
479
|
-
adaptColorToBackground:
|
|
480
|
-
convertColorToHex:
|
|
481
|
-
convertConfigColors:
|
|
482
|
-
createCsvContent:
|
|
483
|
-
darkenHexColor:
|
|
484
|
-
dataLabel:
|
|
485
|
-
downloadCsv:
|
|
486
|
-
lightenHexColor:
|
|
487
|
-
treeShake:
|
|
509
|
+
adaptColorToBackground: ee,
|
|
510
|
+
convertColorToHex: $,
|
|
511
|
+
convertConfigColors: Q,
|
|
512
|
+
createCsvContent: q,
|
|
513
|
+
darkenHexColor: Z,
|
|
514
|
+
dataLabel: K,
|
|
515
|
+
downloadCsv: J,
|
|
516
|
+
lightenHexColor: G,
|
|
517
|
+
treeShake: W,
|
|
488
518
|
// specific
|
|
489
519
|
applyDonutOption() {
|
|
490
520
|
const n = this.selectedDonutCategory.options.map((t, r) => ({
|
|
@@ -507,7 +537,7 @@ Provide an array of objects of type:
|
|
|
507
537
|
const t = this.dataset.header.map((e) => e.name), r = n === "all" ? this.bodyCopy.map((e) => e.td) : this.visibleRows.map((e) => e.td), i = [t].concat(r), s = this.createCsvContent(i);
|
|
508
538
|
this.downloadCsv({ csvContent: s, title: this.filename });
|
|
509
539
|
},
|
|
510
|
-
calcLinearProgression:
|
|
540
|
+
calcLinearProgression: Y,
|
|
511
541
|
closeAllDropdowns() {
|
|
512
542
|
const n = document.getElementsByClassName("th-dropdown");
|
|
513
543
|
n.length && Array.from(n).forEach((t) => {
|
|
@@ -538,7 +568,7 @@ Provide an array of objects of type:
|
|
|
538
568
|
return this.rows.map((t) => t[n]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, r) => t + r, 0) / this.bodyCopy.length;
|
|
539
569
|
},
|
|
540
570
|
getDatesRange(n) {
|
|
541
|
-
const t = this.dataset.body.map((y) => new Date(y.td[n])), r = new Date(Math.min(...t)), i = new Date(Math.max(...t)), s = r.getFullYear(), e = i.getFullYear(), m = String(r.getMonth() + 1).padStart(2, "0"), f = String(i.getMonth() + 1).padStart(2, "0"),
|
|
571
|
+
const t = this.dataset.body.map((y) => new Date(y.td[n])), r = new Date(Math.min(...t)), i = new Date(Math.max(...t)), s = r.getFullYear(), e = i.getFullYear(), m = String(r.getMonth() + 1).padStart(2, "0"), f = String(i.getMonth() + 1).padStart(2, "0"), w = String(r.getDate()).padStart(2, "0"), o = String(i.getDate()).padStart(2, "0"), l = `${s}-${m}-${w}`, d = `${e}-${f}-${o}`;
|
|
542
572
|
return {
|
|
543
573
|
from: l,
|
|
544
574
|
to: d
|
|
@@ -629,7 +659,7 @@ Provide an array of objects of type:
|
|
|
629
659
|
n.preventDefault();
|
|
630
660
|
const t = n.keyCode, r = 38, i = 40, s = 37, e = 39;
|
|
631
661
|
if (![r, i, s, e].includes(t)) return;
|
|
632
|
-
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/,
|
|
662
|
+
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, w = m.match(f), o = parseInt(w[1]), l = parseInt(w[2]), d = document.getElementById(`cell_${o}_${l + 1}_${this.uid}`), y = document.getElementById(`cell_${o}_${l - 1}_${this.uid}`), I = document.getElementById(`cell_${o + 1}_${l}_${this.uid}`), N = document.getElementById(`cell_${o - 1}_${l}_${this.uid}`);
|
|
633
663
|
let F;
|
|
634
664
|
switch (!0) {
|
|
635
665
|
case t === e:
|
|
@@ -843,57 +873,71 @@ Provide an array of objects of type:
|
|
|
843
873
|
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);
|
|
844
874
|
}
|
|
845
875
|
}
|
|
846
|
-
},
|
|
876
|
+
}, z = () => {
|
|
877
|
+
ie((n) => ({
|
|
878
|
+
v2185bfdf: n.colorCancelInactive,
|
|
879
|
+
v75fca41c: n.textColorCancelInactive,
|
|
880
|
+
v93649c88: n.colorCancelActiveLight,
|
|
881
|
+
v8b31a10c: n.colorCancelActive,
|
|
882
|
+
v0d8df368: n.colorCancelActiveOutline,
|
|
883
|
+
v4677ef86: n.colorButtonSortActiveLight,
|
|
884
|
+
v77680920: n.colorButtonSortActive,
|
|
885
|
+
a0b6fcc0: n.colorButtonSortActiveColorText,
|
|
886
|
+
v3c1fe6b2: n.colorButtonSortActiveOutline
|
|
887
|
+
}));
|
|
888
|
+
}, U = D.setup;
|
|
889
|
+
D.setup = U ? (n, t) => (z(), U(n, t)) : z;
|
|
890
|
+
const ue = ["innerHTML"], he = ["data-is-open"], de = { class: "vue-ui-table-export-hub-options" }, ge = { class: "vue-ui-table-export-hub-option-wrapper" }, me = { class: "label" }, ye = ["innerHTML"], be = { class: "vue-ui-table-export-hub-option-wrapper" }, fe = { class: "label" }, Ne = ["innerHTML"], Ce = { class: "vue-ui-table-dialog-field" }, pe = {
|
|
847
891
|
class: "label vue-ui-table-dialog-input-label",
|
|
848
892
|
style: { width: "100%" }
|
|
849
|
-
},
|
|
893
|
+
}, Ie = { style: { width: "fit-content" } }, Fe = { class: "vue-ui-table" }, ve = { key: 0 }, _e = { key: 0 }, we = { key: 1 }, ke = {
|
|
850
894
|
key: 0,
|
|
851
895
|
style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
|
|
852
|
-
},
|
|
896
|
+
}, Oe = ["innerHTML"], Le = {
|
|
853
897
|
key: 0,
|
|
854
898
|
style: { "margin-left": "3px" }
|
|
855
|
-
},
|
|
899
|
+
}, Se = { key: 0 }, Ae = { class: "th-filter" }, Me = {
|
|
856
900
|
key: 0,
|
|
857
901
|
class: "th-date"
|
|
858
|
-
},
|
|
902
|
+
}, Ge = { class: "date-wrapper--inputs" }, xe = { class: "date-fieldset" }, De = ["for"], Te = ["id", "onUpdate:modelValue", "onInput"], Be = { class: "date-fieldset" }, Ee = ["for"], Pe = ["id", "onUpdate:modelValue", "onInput"], He = { class: "date-wrapper--button" }, Re = ["onClick"], ze = ["innerHTML"], Ue = ["innerHTML"], Ve = ["innerHTML"], Xe = ["onClick", "disabled"], je = ["placeholder", "onUpdate:modelValue", "name"], Ye = ["onClick"], We = ["innerHTML"], Je = ["innerHTML"], Ke = ["innerHTML"], Ze = ["onClick", "innerHTML"], qe = ["innerHTML"], Qe = {
|
|
859
903
|
key: 5,
|
|
860
904
|
class: "th-range-filter"
|
|
861
|
-
},
|
|
905
|
+
}, $e = ["for"], et = ["id", "max", "min", "onUpdate:modelValue"], tt = ["id", "max", "min", "onUpdate:modelValue"], st = ["for"], nt = ["onClick", "disabled"], rt = ["id"], lt = ["onClick"], ot = ["onClick", "onKeyup"], at = ["innerHTML", "onClick", "onKeyup"], it = ["data-row"], ct = ["data-row"], ut = ["data-row", "onClick", "onKeyup", "id"], ht = ["innerHTML"], dt = { key: 1 }, gt = { key: 2 }, mt = { key: 5 }, yt = ["innerHTML"], bt = { key: 0 }, ft = { style: { "margin-left": "12px" } }, Nt = { class: "format-num" }, Ct = { style: { "margin-left": "12px" } }, pt = {
|
|
862
906
|
key: 0,
|
|
863
907
|
class: "format-num"
|
|
864
|
-
},
|
|
908
|
+
}, It = {
|
|
865
909
|
key: 1,
|
|
866
910
|
class: "format-num"
|
|
867
|
-
},
|
|
911
|
+
}, Ft = { key: 2 }, vt = { style: { "margin-left": "12px" } }, _t = {
|
|
868
912
|
key: 0,
|
|
869
913
|
class: "format-num"
|
|
870
|
-
},
|
|
914
|
+
}, wt = {
|
|
871
915
|
key: 1,
|
|
872
916
|
class: "format-num"
|
|
873
|
-
},
|
|
917
|
+
}, kt = { key: 2 }, Ot = {
|
|
874
918
|
key: 1,
|
|
875
919
|
class: "vue-ui-table-paginator format-num"
|
|
876
|
-
},
|
|
920
|
+
}, Lt = {
|
|
877
921
|
key: 2,
|
|
878
922
|
class: "vue-ui-table-size-warning"
|
|
879
|
-
},
|
|
923
|
+
}, St = ["innerHTML"], At = {
|
|
880
924
|
key: 4,
|
|
881
925
|
class: "vue-ui-table-pagination format-num"
|
|
882
|
-
},
|
|
926
|
+
}, Mt = ["innerHTML", "disabled"], Gt = ["disabled"], xt = {
|
|
883
927
|
key: 0,
|
|
884
928
|
class: "vue-ui-table-page-scroller-wrapper"
|
|
885
|
-
},
|
|
929
|
+
}, Dt = {
|
|
886
930
|
for: "pageScroller",
|
|
887
931
|
style: { "font-size": "14px" }
|
|
888
|
-
},
|
|
932
|
+
}, Tt = ["max", "value"], Bt = { key: 1 }, Et = ["disabled"], Pt = ["innerHTML", "disabled"], Ht = ["innerHTML"], Rt = { class: "chart-modal-options" }, zt = ["innerHTML"], Ut = ["innerHTML"], Vt = ["innerHTML"], Xt = {
|
|
889
933
|
style: { width: "100%", height: "fit-content" },
|
|
890
934
|
ref: "chartModal"
|
|
891
|
-
},
|
|
935
|
+
}, jt = { class: "vue-ui-table-fieldset" }, Yt = { class: "vue-ui-table-fieldset-wrapper" }, Wt = ["name", "id", "checked", "onInput"], Jt = ["for"], Kt = ["disabled"], Zt = ["innerHTML"], qt = { key: 0 }, Qt = { style: { width: "100%", "margin-bottom": "12px" } }, $t = {
|
|
892
936
|
key: 2,
|
|
893
937
|
style: { width: "100%", "margin-bottom": "32px" }
|
|
894
938
|
};
|
|
895
|
-
function
|
|
896
|
-
const m =
|
|
939
|
+
function es(n, t, r, i, s, e) {
|
|
940
|
+
const m = x("BaseIcon"), f = x("VueUiXy"), w = x("VueUiDonut");
|
|
897
941
|
return c(), u("div", {
|
|
898
942
|
class: "vue-ui-table-main",
|
|
899
943
|
style: g(`font-family: ${e.FINAL_CONFIG.fontFamily}`)
|
|
@@ -907,7 +951,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
907
951
|
onClick: t[0] || (t[0] = (o) => s.isExportRequest = !s.isExportRequest),
|
|
908
952
|
innerHTML: e.icons.export,
|
|
909
953
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
910
|
-
}, null, 12,
|
|
954
|
+
}, null, 12, ue),
|
|
911
955
|
a("div", {
|
|
912
956
|
class: "vue-ui-table-export-hub-dropdown",
|
|
913
957
|
"data-is-open": s.isExportRequest || "false",
|
|
@@ -919,9 +963,9 @@ function Zt(n, t, r, i, s, e) {
|
|
|
919
963
|
onClick: t[1] || (t[1] = (o) => s.isExportRequest = !1),
|
|
920
964
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
921
965
|
}, " ✖ ", 4),
|
|
922
|
-
a("div",
|
|
923
|
-
a("div",
|
|
924
|
-
a("div",
|
|
966
|
+
a("div", de, [
|
|
967
|
+
a("div", ge, [
|
|
968
|
+
a("div", me, h(e.FINAL_CONFIG.translations.exportAllLabel) + " (" + h(s.bodyCopy.length) + ") ", 1),
|
|
925
969
|
a("button", {
|
|
926
970
|
id: "exportAll",
|
|
927
971
|
onClick: t[2] || (t[2] = (o) => e.createXls("all")),
|
|
@@ -929,12 +973,12 @@ function Zt(n, t, r, i, s, e) {
|
|
|
929
973
|
}, [
|
|
930
974
|
a("div", {
|
|
931
975
|
innerHTML: e.icons.fileDownload
|
|
932
|
-
}, null, 8,
|
|
976
|
+
}, null, 8, ye),
|
|
933
977
|
a("span", null, h(e.FINAL_CONFIG.translations.exportAllButton), 1)
|
|
934
978
|
], 4)
|
|
935
979
|
]),
|
|
936
|
-
a("div",
|
|
937
|
-
a("div",
|
|
980
|
+
a("div", be, [
|
|
981
|
+
a("div", fe, h(e.FINAL_CONFIG.translations.exportPageLabel), 1),
|
|
938
982
|
a("button", {
|
|
939
983
|
id: "exportPage",
|
|
940
984
|
onClick: t[3] || (t[3] = (o) => e.createXls("page")),
|
|
@@ -942,13 +986,13 @@ function Zt(n, t, r, i, s, e) {
|
|
|
942
986
|
}, [
|
|
943
987
|
a("div", {
|
|
944
988
|
innerHTML: e.icons.fileDownload
|
|
945
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, Ne),
|
|
946
990
|
a("span", null, h(e.FINAL_CONFIG.translations.exportPageButton), 1)
|
|
947
991
|
], 4)
|
|
948
992
|
]),
|
|
949
|
-
a("div",
|
|
950
|
-
a("label",
|
|
951
|
-
a("span",
|
|
993
|
+
a("div", Ce, [
|
|
994
|
+
a("label", pe, [
|
|
995
|
+
a("span", Ie, h(e.FINAL_CONFIG.translations.filename), 1),
|
|
952
996
|
O(a("input", {
|
|
953
997
|
name: "filename",
|
|
954
998
|
ref: "filenameInputRef",
|
|
@@ -967,7 +1011,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
967
1011
|
class: "vue-ui-table-dialog-field-button",
|
|
968
1012
|
onClick: t[6] || (t[6] = (o) => s.filename = "")
|
|
969
1013
|
}, [
|
|
970
|
-
|
|
1014
|
+
P(m, {
|
|
971
1015
|
name: "close",
|
|
972
1016
|
stroke: e.FINAL_CONFIG.style.exportMenu.color,
|
|
973
1017
|
size: 18
|
|
@@ -975,14 +1019,14 @@ function Zt(n, t, r, i, s, e) {
|
|
|
975
1019
|
])) : b("", !0)
|
|
976
1020
|
])
|
|
977
1021
|
])
|
|
978
|
-
], 12,
|
|
1022
|
+
], 12, he)
|
|
979
1023
|
], 4)) : b("", !0),
|
|
980
1024
|
a("div", {
|
|
981
1025
|
class: "vue-ui-table__wrapper",
|
|
982
1026
|
style: g(`max-height:${e.FINAL_CONFIG.maxHeight}px`),
|
|
983
1027
|
ref: "tableWrapper"
|
|
984
1028
|
}, [
|
|
985
|
-
a("table",
|
|
1029
|
+
a("table", Fe, [
|
|
986
1030
|
e.FINAL_CONFIG.style.title.text ? (c(), u("caption", {
|
|
987
1031
|
key: 0,
|
|
988
1032
|
class: "vue-ui-table__caption",
|
|
@@ -1002,7 +1046,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1002
1046
|
color: e.FINAL_CONFIG.style.title.color
|
|
1003
1047
|
})
|
|
1004
1048
|
}, h(e.FINAL_CONFIG.style.title.text), 5),
|
|
1005
|
-
e.FINAL_CONFIG.style.title.subtitle.text ? (c(), u(
|
|
1049
|
+
e.FINAL_CONFIG.style.title.subtitle.text ? (c(), u(C, { key: 0 }, [
|
|
1006
1050
|
t[30] || (t[30] = a("br", null, null, -1)),
|
|
1007
1051
|
a("span", {
|
|
1008
1052
|
style: g({
|
|
@@ -1024,37 +1068,37 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1024
1068
|
}, [
|
|
1025
1069
|
a("tr", null, [
|
|
1026
1070
|
t[31] || (t[31] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1027
|
-
(c(!0), u(
|
|
1071
|
+
(c(!0), u(C, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1028
1072
|
key: `thead_${l}`,
|
|
1029
1073
|
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}`),
|
|
1030
|
-
class:
|
|
1074
|
+
class: p({ "th-has-nan": s.hasNaN[l] })
|
|
1031
1075
|
}, [
|
|
1032
|
-
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(o.type) || o.isPercentage) ? (c(), u("span",
|
|
1033
|
-
|
|
1034
|
-
o.isPercentage ? (c(), u("span",
|
|
1035
|
-
])) : (c(), u("span",
|
|
1076
|
+
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(o.type) || o.isPercentage) ? (c(), u("span", ve, [
|
|
1077
|
+
_(h(o.name) + " ", 1),
|
|
1078
|
+
o.isPercentage ? (c(), u("span", _e, " / " + h(o.percentageTo), 1)) : b("", !0)
|
|
1079
|
+
])) : (c(), u("span", we, h(o.name), 1))
|
|
1036
1080
|
], 6))), 128))
|
|
1037
1081
|
]),
|
|
1038
|
-
e.hasNumericTypes ? (c(), u(
|
|
1082
|
+
e.hasNumericTypes ? (c(), u(C, { key: 0 }, [
|
|
1039
1083
|
a("tr", null, [
|
|
1040
1084
|
t[32] || (t[32] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1041
|
-
(c(!0), u(
|
|
1085
|
+
(c(!0), u(C, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1042
1086
|
key: `thead_${l}`,
|
|
1043
|
-
class:
|
|
1087
|
+
class: p({ "th-numeric": !0, "th-has-nan": s.hasNaN[l] }),
|
|
1044
1088
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1045
1089
|
}, [
|
|
1046
|
-
o.sum && !s.hasNaN[l] ? (c(), u("span",
|
|
1090
|
+
o.sum && !s.hasNaN[l] ? (c(), u("span", ke, [
|
|
1047
1091
|
a("span", {
|
|
1048
1092
|
innerHTML: e.icons.sum,
|
|
1049
1093
|
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
1050
|
-
}, null, 8,
|
|
1051
|
-
|
|
1094
|
+
}, null, 8, Oe),
|
|
1095
|
+
_(" " + h(e.dataLabel({
|
|
1052
1096
|
p: o.prefix,
|
|
1053
1097
|
v: Number(e.getSum(l)),
|
|
1054
1098
|
s: o.suffix,
|
|
1055
1099
|
r: o.decimals
|
|
1056
1100
|
})) + " ", 1),
|
|
1057
|
-
s.percentages[l] && o.percentageTo && !o.isPercentage ? (c(), u("span",
|
|
1101
|
+
s.percentages[l] && o.percentageTo && !o.isPercentage ? (c(), u("span", Le, " (" + h(isNaN(e.getSum(l) / e.getSum(s.percentages[l].referenceIndex)) ? "-" : e.dataLabel({
|
|
1058
1102
|
v: e.getSum(l) / e.getSum(s.percentages[l].referenceIndex) * 100,
|
|
1059
1103
|
s: "%",
|
|
1060
1104
|
r: o.decimals
|
|
@@ -1064,12 +1108,12 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1064
1108
|
]),
|
|
1065
1109
|
a("tr", null, [
|
|
1066
1110
|
t[33] || (t[33] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1067
|
-
(c(!0), u(
|
|
1111
|
+
(c(!0), u(C, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1068
1112
|
key: `thead_${l}`,
|
|
1069
|
-
class:
|
|
1113
|
+
class: p({ "th-numeric": !0, "th-has-nan": s.hasNaN[l] }),
|
|
1070
1114
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1071
1115
|
}, [
|
|
1072
|
-
o.average && !s.hasNaN[l] ? (c(), u("span",
|
|
1116
|
+
o.average && !s.hasNaN[l] ? (c(), u("span", Se, " ~ " + h(isNaN(e.getAverage(l)) ? "" : e.dataLabel({
|
|
1073
1117
|
p: o.prefix,
|
|
1074
1118
|
v: Number(e.getAverage(l)),
|
|
1075
1119
|
s: o.suffix,
|
|
@@ -1079,18 +1123,18 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1079
1123
|
]),
|
|
1080
1124
|
a("tr", null, [
|
|
1081
1125
|
t[36] || (t[36] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1082
|
-
(c(!0), u(
|
|
1126
|
+
(c(!0), u(C, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1083
1127
|
key: `thead_${l}`,
|
|
1084
|
-
class:
|
|
1128
|
+
class: p({ "th-has-nan": s.hasNaN[l] }),
|
|
1085
1129
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1086
1130
|
}, [
|
|
1087
|
-
a("div",
|
|
1088
|
-
o.type === s.constants.DATE && s.dates[l] ? (c(), u("div",
|
|
1089
|
-
a("div",
|
|
1090
|
-
a("div",
|
|
1131
|
+
a("div", Ae, [
|
|
1132
|
+
o.type === s.constants.DATE && s.dates[l] ? (c(), u("div", Me, [
|
|
1133
|
+
a("div", Ge, [
|
|
1134
|
+
a("div", xe, [
|
|
1091
1135
|
a("label", {
|
|
1092
1136
|
for: `from_${l}`
|
|
1093
|
-
}, h(e.FINAL_CONFIG.translations.from), 9,
|
|
1137
|
+
}, h(e.FINAL_CONFIG.translations.from), 9, De),
|
|
1094
1138
|
O(a("input", {
|
|
1095
1139
|
id: `from_${l}`,
|
|
1096
1140
|
type: "date",
|
|
@@ -1099,14 +1143,14 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1099
1143
|
e.filterBody(), e.setFilterDatesIndexes(l);
|
|
1100
1144
|
},
|
|
1101
1145
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1102
|
-
}, null, 44,
|
|
1146
|
+
}, null, 44, Te), [
|
|
1103
1147
|
[A, s.dates[l].from]
|
|
1104
1148
|
])
|
|
1105
1149
|
]),
|
|
1106
|
-
a("div",
|
|
1150
|
+
a("div", Be, [
|
|
1107
1151
|
a("label", {
|
|
1108
1152
|
for: `to_${l}`
|
|
1109
|
-
}, h(e.FINAL_CONFIG.translations.to), 9,
|
|
1153
|
+
}, h(e.FINAL_CONFIG.translations.to), 9, Ee),
|
|
1110
1154
|
O(a("input", {
|
|
1111
1155
|
id: `to_${l}`,
|
|
1112
1156
|
type: "date",
|
|
@@ -1115,36 +1159,36 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1115
1159
|
e.filterBody(), e.setFilterDatesIndexes(l);
|
|
1116
1160
|
},
|
|
1117
1161
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1118
|
-
}, null, 44,
|
|
1162
|
+
}, null, 44, Pe), [
|
|
1119
1163
|
[A, s.dates[l].to]
|
|
1120
1164
|
])
|
|
1121
1165
|
])
|
|
1122
1166
|
]),
|
|
1123
|
-
a("div",
|
|
1167
|
+
a("div", He, [
|
|
1124
1168
|
o.isSort ? (c(), u("button", {
|
|
1125
1169
|
key: 0,
|
|
1126
1170
|
onClick: (d) => e.sortTh(l, d),
|
|
1127
|
-
class:
|
|
1128
|
-
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.
|
|
1171
|
+
class: p({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) }),
|
|
1172
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.color}`)
|
|
1129
1173
|
}, [
|
|
1130
1174
|
s.sorts[l] === s.constants.ASC ? (c(), u("span", {
|
|
1131
1175
|
key: 0,
|
|
1132
1176
|
innerHTML: [s.constants.DATE].includes(o.type) ? e.icons.sort09 : e.icons.sortAZ
|
|
1133
|
-
}, null, 8,
|
|
1177
|
+
}, null, 8, ze)) : s.sorts[l] === s.constants.DESC ? (c(), u("span", {
|
|
1134
1178
|
key: 1,
|
|
1135
1179
|
innerHTML: [s.constants.DATE].includes(o.type) ? e.icons.sort90 : e.icons.sortZA
|
|
1136
|
-
}, null, 8,
|
|
1180
|
+
}, null, 8, Ue)) : (c(), u("span", {
|
|
1137
1181
|
key: 2,
|
|
1138
1182
|
innerHTML: e.icons.arrowSort
|
|
1139
|
-
}, null, 8,
|
|
1140
|
-
], 14,
|
|
1183
|
+
}, null, 8, Ve))
|
|
1184
|
+
], 14, Re)) : b("", !0),
|
|
1141
1185
|
a("button", {
|
|
1142
1186
|
onClick: (d) => {
|
|
1143
1187
|
e.resetDates(l), e.resetFilter(l, o, d);
|
|
1144
1188
|
},
|
|
1145
1189
|
disabled: !s.filteredDatesIndexes[l] && e.isResetDisabled(l, o),
|
|
1146
1190
|
class: "th-reset"
|
|
1147
|
-
}, " ✖ ", 8,
|
|
1191
|
+
}, " ✖ ", 8, Xe)
|
|
1148
1192
|
])
|
|
1149
1193
|
])) : b("", !0),
|
|
1150
1194
|
o.isSearch ? O((c(), u("input", {
|
|
@@ -1154,48 +1198,48 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1154
1198
|
onInput: t[7] || (t[7] = (d) => e.debounce(e.filterBody, 400)),
|
|
1155
1199
|
name: `search_${l}`,
|
|
1156
1200
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1157
|
-
}, null, 44,
|
|
1201
|
+
}, null, 44, je)), [
|
|
1158
1202
|
[A, s.searches[l]]
|
|
1159
1203
|
]) : b("", !0),
|
|
1160
1204
|
!s.hasNaN[l] && o.isSort && o.type !== s.constants.DATE ? (c(), u("button", {
|
|
1161
1205
|
key: 2,
|
|
1162
1206
|
onClick: (d) => e.sortTh(l, d),
|
|
1163
|
-
class:
|
|
1164
|
-
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.
|
|
1207
|
+
class: p({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) }),
|
|
1208
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.color}`)
|
|
1165
1209
|
}, [
|
|
1166
1210
|
s.sorts[l] === s.constants.ASC ? (c(), u("span", {
|
|
1167
1211
|
key: 0,
|
|
1168
1212
|
innerHTML: [s.constants.NUMERIC].includes(o.type) ? e.icons.sort09 : e.icons.sortZA
|
|
1169
|
-
}, null, 8,
|
|
1213
|
+
}, null, 8, We)) : s.sorts[l] === s.constants.DESC ? (c(), u("span", {
|
|
1170
1214
|
key: 1,
|
|
1171
1215
|
innerHTML: [s.constants.NUMERIC].includes(o.type) ? e.icons.sort90 : e.icons.sortAZ
|
|
1172
|
-
}, null, 8,
|
|
1216
|
+
}, null, 8, Je)) : (c(), u("span", {
|
|
1173
1217
|
key: 2,
|
|
1174
1218
|
innerHTML: e.icons.arrowSort
|
|
1175
|
-
}, null, 8,
|
|
1176
|
-
], 14,
|
|
1219
|
+
}, null, 8, Ke))
|
|
1220
|
+
], 14, Ye)) : b("", !0),
|
|
1177
1221
|
o.isMultiselect ? (c(), u("button", {
|
|
1178
1222
|
key: 3,
|
|
1179
1223
|
onClick: (d) => e.toggleMultiselect(l, o, d),
|
|
1180
1224
|
innerHTML: e.icons.filter,
|
|
1181
|
-
class:
|
|
1182
|
-
style: g(`background:${s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length ? "" : e.FINAL_CONFIG.style.
|
|
1183
|
-
}, null, 14,
|
|
1225
|
+
class: p({ "th-button-active": s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length }),
|
|
1226
|
+
style: g(`background:${s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.backgroundColor};color:${s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.color}`)
|
|
1227
|
+
}, null, 14, Ze)) : b("", !0),
|
|
1184
1228
|
s.currentSelectionSpan.col === l && e.canChart ? (c(), u("button", {
|
|
1185
1229
|
key: 4,
|
|
1186
1230
|
onClick: t[8] || (t[8] = (d) => s.showChart = !s.showChart),
|
|
1187
1231
|
innerHTML: e.icons.chart,
|
|
1188
|
-
class:
|
|
1189
|
-
style: g(`background:${s.showChart ? "" : e.FINAL_CONFIG.style.
|
|
1190
|
-
}, null, 14,
|
|
1191
|
-
o.rangeFilter && s.rangeFilters[l] && !s.hasNaN[l] ? (c(), u("div",
|
|
1232
|
+
class: p({ "th-button-active": s.showChart }),
|
|
1233
|
+
style: g(`background:${s.showChart ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.backgroundColor};color:${s.showChart ? "" : e.FINAL_CONFIG.style.th.buttons.filter.inactive.color}`)
|
|
1234
|
+
}, null, 14, qe)) : b("", !0),
|
|
1235
|
+
o.rangeFilter && s.rangeFilters[l] && !s.hasNaN[l] ? (c(), u("div", Qe, [
|
|
1192
1236
|
a("label", {
|
|
1193
1237
|
for: `rangeMin${l}`
|
|
1194
1238
|
}, [...t[34] || (t[34] = [
|
|
1195
1239
|
a("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1196
|
-
|
|
1240
|
+
_(" min ", -1),
|
|
1197
1241
|
a("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1198
|
-
])], 8,
|
|
1242
|
+
])], 8, $e),
|
|
1199
1243
|
O(a("input", {
|
|
1200
1244
|
type: "number",
|
|
1201
1245
|
id: `rangeMin${l}`,
|
|
@@ -1204,7 +1248,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1204
1248
|
"onUpdate:modelValue": (d) => s.rangeFilters[l].min = d,
|
|
1205
1249
|
onInput: t[9] || (t[9] = (d) => e.debounce(e.filterBody, 400)),
|
|
1206
1250
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1207
|
-
}, null, 44,
|
|
1251
|
+
}, null, 44, et), [
|
|
1208
1252
|
[
|
|
1209
1253
|
A,
|
|
1210
1254
|
s.rangeFilters[l].min,
|
|
@@ -1220,7 +1264,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1220
1264
|
"onUpdate:modelValue": (d) => s.rangeFilters[l].max = d,
|
|
1221
1265
|
onInput: t[10] || (t[10] = (d) => e.debounce(e.filterBody, 400)),
|
|
1222
1266
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1223
|
-
}, null, 44,
|
|
1267
|
+
}, null, 44, tt), [
|
|
1224
1268
|
[
|
|
1225
1269
|
A,
|
|
1226
1270
|
s.rangeFilters[l].max,
|
|
@@ -1232,16 +1276,16 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1232
1276
|
for: `rangeMax${l}`
|
|
1233
1277
|
}, [...t[35] || (t[35] = [
|
|
1234
1278
|
a("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1235
|
-
|
|
1279
|
+
_(" max ", -1),
|
|
1236
1280
|
a("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1237
|
-
])], 8,
|
|
1281
|
+
])], 8, st)
|
|
1238
1282
|
])) : b("", !0),
|
|
1239
1283
|
e.canResetColumn(l, o) ? (c(), u("button", {
|
|
1240
1284
|
key: 6,
|
|
1241
1285
|
onClick: (d) => e.resetFilter(l, o, d),
|
|
1242
1286
|
disabled: e.isResetDisabled(l, o),
|
|
1243
1287
|
class: "th-reset"
|
|
1244
|
-
}, " ✖ ", 8,
|
|
1288
|
+
}, " ✖ ", 8, nt)) : b("", !0),
|
|
1245
1289
|
o.isMultiselect ? (c(), u("div", {
|
|
1246
1290
|
key: 7,
|
|
1247
1291
|
class: "th-dropdown",
|
|
@@ -1253,8 +1297,8 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1253
1297
|
class: "close-dropdown",
|
|
1254
1298
|
onClick: (d) => e.toggleMultiselect(l, o, d),
|
|
1255
1299
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
|
|
1256
|
-
}, " ✖ ", 12,
|
|
1257
|
-
(c(!0), u(
|
|
1300
|
+
}, " ✖ ", 12, lt),
|
|
1301
|
+
(c(!0), u(C, null, k(e.getDropdownOptions(l), (d, y) => (c(), u("span", {
|
|
1258
1302
|
class: "th-option",
|
|
1259
1303
|
key: `th_option_${l}_${y}`,
|
|
1260
1304
|
onClick: (I) => e.selectDropdownOption(d, l),
|
|
@@ -1275,27 +1319,27 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1275
1319
|
class: "th-icon-red"
|
|
1276
1320
|
}, h(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1277
1321
|
a("span", null, h(d), 1)
|
|
1278
|
-
], 44,
|
|
1279
|
-
], 12,
|
|
1322
|
+
], 44, ot))), 128))
|
|
1323
|
+
], 12, rt)) : b("", !0)
|
|
1280
1324
|
])
|
|
1281
1325
|
], 6))), 128))
|
|
1282
1326
|
])
|
|
1283
1327
|
], 64)) : b("", !0),
|
|
1284
1328
|
a("tr", null, [
|
|
1285
1329
|
t[37] || (t[37] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1286
|
-
(c(!0), u(
|
|
1330
|
+
(c(!0), u(C, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1287
1331
|
key: `col_selector_${l}`,
|
|
1288
|
-
class:
|
|
1332
|
+
class: p({ "vue-ui-table-col-selector": !s.hasNaN[l], "th-has-nan": s.hasNaN[l] }),
|
|
1289
1333
|
style: g(`background:${l === s.selectedColumn && !s.hasNaN[l] ? e.FINAL_CONFIG.style.th.selected.backgroundColor : e.FINAL_CONFIG.style.th.backgroundColor};color:${l === s.selectedColumn && !s.hasNaN[l] ? e.FINAL_CONFIG.style.th.selected.color : e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1290
1334
|
}, [
|
|
1291
1335
|
s.hasNaN[l] ? b("", !0) : (c(), u("div", {
|
|
1292
1336
|
key: 0,
|
|
1293
1337
|
innerHTML: s.tableHead[l].type === s.constants.NUMERIC ? e.icons.chevronDown : "",
|
|
1294
|
-
class:
|
|
1338
|
+
class: p({ "col-selector": s.tableHead[l].type === s.constants.NUMERIC }),
|
|
1295
1339
|
tabindex: "0",
|
|
1296
1340
|
onClick: S((d) => e.selectColumn(l), ["stop"]),
|
|
1297
1341
|
onKeyup: L((d) => e.selectColumn(l), ["enter"])
|
|
1298
|
-
}, null, 42,
|
|
1342
|
+
}, null, 42, at))
|
|
1299
1343
|
], 6))), 128))
|
|
1300
1344
|
])
|
|
1301
1345
|
], 4),
|
|
@@ -1303,20 +1347,23 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1303
1347
|
onClick: t[11] || (t[11] = (...o) => e.closeAllDropdowns && e.closeAllDropdowns(...o)),
|
|
1304
1348
|
onKeydown: t[12] || (t[12] = (o) => e.navigateCell(o))
|
|
1305
1349
|
}, [
|
|
1306
|
-
(c(!0), u(
|
|
1350
|
+
(c(!0), u(C, null, k(e.visibleRows, (o, l) => (c(), u("tr", {
|
|
1307
1351
|
key: `tbody_${l}`,
|
|
1308
1352
|
"data-row": l % 2 === 0 ? "odd" : "even",
|
|
1309
|
-
class:
|
|
1353
|
+
class: p(`tr_${s.uid}`),
|
|
1310
1354
|
style: g(`${l % 2 === 0 ? `background:${e.FINAL_CONFIG.style.rows.odd.backgroundColor};color:${e.FINAL_CONFIG.style.rows.odd.color}` : `background:${e.FINAL_CONFIG.style.rows.even.backgroundColor};color:${e.FINAL_CONFIG.style.rows.even.color}`}`)
|
|
1311
1355
|
}, [
|
|
1312
1356
|
a("td", {
|
|
1313
1357
|
class: "vue-ui-table-td-iteration",
|
|
1314
|
-
"data-row": l % 2 === 0 ? "odd" : "even"
|
|
1315
|
-
|
|
1316
|
-
|
|
1358
|
+
"data-row": l % 2 === 0 ? "odd" : "even",
|
|
1359
|
+
style: g({
|
|
1360
|
+
outline: e.FINAL_CONFIG.style.rows.outline
|
|
1361
|
+
})
|
|
1362
|
+
}, h(o.absoluteIndex + 1), 13, ct),
|
|
1363
|
+
(c(!0), u(C, null, k(o.td, (d, y) => (c(), u("td", {
|
|
1317
1364
|
"data-row": l % 2 === 0 ? "odd" : "even",
|
|
1318
1365
|
key: `td_${l}_${y}`,
|
|
1319
|
-
style: g(e.isNumeric(d) || r.dataset.header[y].type === s.constants.DATE ?
|
|
1366
|
+
style: g(e.isNumeric(d) || r.dataset.header[y].type === s.constants.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${e.FINAL_CONFIG.style.rows.outline}` : `outline:${e.FINAL_CONFIG.style.rows.outline}`),
|
|
1320
1367
|
onClick: (I) => e.selectTd({
|
|
1321
1368
|
td: d,
|
|
1322
1369
|
rowIndex: l,
|
|
@@ -1340,7 +1387,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1340
1387
|
event: I
|
|
1341
1388
|
}), ["space"])
|
|
1342
1389
|
],
|
|
1343
|
-
class:
|
|
1390
|
+
class: p({ "td-numeric": r.dataset.header[y].type === s.constants.NUMERIC, "td-focusable": !0, "td-has-nan": s.hasNaN[y] }),
|
|
1344
1391
|
id: `cell_${l}_${y}_${s.uid}`,
|
|
1345
1392
|
tabindex: "0"
|
|
1346
1393
|
}, [
|
|
@@ -1348,14 +1395,14 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1348
1395
|
key: 0,
|
|
1349
1396
|
style: g(`color:${o.meta.color};margin-right:3px`),
|
|
1350
1397
|
innerHTML: o.meta.unicodeIcon
|
|
1351
|
-
}, null, 12,
|
|
1352
|
-
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span",
|
|
1398
|
+
}, null, 12, ht)) : b("", !0),
|
|
1399
|
+
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span", dt, h(r.dataset.header[y].prefix) + " " + h(new Date(d).toLocaleString().slice(0, 10)) + " " + h(r.dataset.header[y].suffix), 1)) : r.dataset.header[y].isPercentage ? (c(), u("span", gt, h(e.dataLabel({
|
|
1353
1400
|
v: Number(d * 100),
|
|
1354
1401
|
s: "%",
|
|
1355
1402
|
r: r.dataset.header[y].decimals
|
|
1356
1403
|
})), 1)) : s.percentages[y] && r.dataset.header[y].percentageTo && !r.dataset.header[y].isPercentage ? (c(), u("span", {
|
|
1357
1404
|
key: 3,
|
|
1358
|
-
class:
|
|
1405
|
+
class: p({ "td-nan": isNaN(Number(d)) })
|
|
1359
1406
|
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1360
1407
|
p: r.dataset.header[y].prefix,
|
|
1361
1408
|
v: Number(d),
|
|
@@ -1367,45 +1414,45 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1367
1414
|
r: r.dataset.header[y].decimals
|
|
1368
1415
|
})) + ") ", 3)) : r.dataset.header[y].type === s.constants.NUMERIC ? (c(), u("span", {
|
|
1369
1416
|
key: 4,
|
|
1370
|
-
class:
|
|
1417
|
+
class: p({ "td-nan": isNaN(Number(d)) })
|
|
1371
1418
|
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1372
1419
|
p: r.dataset.header[y].prefix,
|
|
1373
1420
|
v: Number(d.toFixed(r.dataset.header[y].decimals)),
|
|
1374
1421
|
s: r.dataset.header[y].suffix,
|
|
1375
1422
|
r: r.dataset.header[y].decimals
|
|
1376
|
-
})), 3)) : (c(), u("span",
|
|
1377
|
-
], 46,
|
|
1378
|
-
], 14,
|
|
1423
|
+
})), 3)) : (c(), u("span", mt, h(r.dataset.header[y].prefix) + " " + h(d) + " " + h(r.dataset.header[y].suffix), 1))
|
|
1424
|
+
], 46, ut))), 128))
|
|
1425
|
+
], 14, it))), 128))
|
|
1379
1426
|
], 32)
|
|
1380
1427
|
])
|
|
1381
1428
|
], 4),
|
|
1382
1429
|
a("div", {
|
|
1383
|
-
class:
|
|
1430
|
+
class: p({ "td-selector-info": !0, "td-selector-info--active": s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length }),
|
|
1384
1431
|
style: g(`background:${e.FINAL_CONFIG.style.infoBar.backgroundColor};color:${e.FINAL_CONFIG.style.infoBar.color}`)
|
|
1385
1432
|
}, [
|
|
1386
|
-
s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length ? (c(), u(
|
|
1433
|
+
s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length ? (c(), u(C, { key: 0 }, [
|
|
1387
1434
|
a("div", {
|
|
1388
1435
|
innerHTML: e.icons.table,
|
|
1389
1436
|
class: "td-selector-icon"
|
|
1390
|
-
}, null, 8,
|
|
1437
|
+
}, null, 8, yt),
|
|
1391
1438
|
a("span", null, [
|
|
1392
1439
|
a("b", null, [
|
|
1393
|
-
|
|
1394
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span",
|
|
1395
|
-
]),
|
|
1396
|
-
a("span", gt, [
|
|
1397
|
-
w(h(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1398
|
-
a("b", mt, h(s.currentSelectionSpan.rows.length), 1)
|
|
1440
|
+
_(h(r.dataset.header[s.currentSelectionSpan.col].name) + " ", 1),
|
|
1441
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span", bt, " / " + h(r.dataset.header[s.percentages[s.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
|
|
1399
1442
|
]),
|
|
1400
|
-
a("span",
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Nt, "%")) : b("", !0)
|
|
1443
|
+
a("span", ft, [
|
|
1444
|
+
_(h(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1445
|
+
a("b", Nt, h(s.currentSelectionSpan.rows.length), 1)
|
|
1404
1446
|
]),
|
|
1405
|
-
a("span",
|
|
1406
|
-
|
|
1407
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b",
|
|
1447
|
+
a("span", Ct, [
|
|
1448
|
+
_(h(e.FINAL_CONFIG.translations.sum) + " : ", 1),
|
|
1449
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", pt, h(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", It, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.sumRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1408
1450
|
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Ft, "%")) : b("", !0)
|
|
1451
|
+
]),
|
|
1452
|
+
a("span", vt, [
|
|
1453
|
+
_(h(e.FINAL_CONFIG.translations.average) + " : ", 1),
|
|
1454
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", _t, h(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", wt, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.averageRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1455
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", kt, "%")) : b("", !0)
|
|
1409
1456
|
])
|
|
1410
1457
|
]),
|
|
1411
1458
|
a("button", {
|
|
@@ -1415,8 +1462,8 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1415
1462
|
}, " ✖ ", 4)
|
|
1416
1463
|
], 64)) : b("", !0)
|
|
1417
1464
|
], 6),
|
|
1418
|
-
s.bodyCopy.length > 10 ? (c(), u("div",
|
|
1419
|
-
|
|
1465
|
+
s.bodyCopy.length > 10 ? (c(), u("div", Ot, [
|
|
1466
|
+
_(h(e.FINAL_CONFIG.translations.totalRows) + " : " + h(r.dataset.body.length) + " | " + h(e.FINAL_CONFIG.translations.paginatorLabel) + " : ", 1),
|
|
1420
1467
|
s.bodyCopy.length > 10 ? O((c(), u("select", {
|
|
1421
1468
|
key: 0,
|
|
1422
1469
|
id: "paginatorSelector",
|
|
@@ -1426,48 +1473,48 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1426
1473
|
}),
|
|
1427
1474
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1428
1475
|
}, [
|
|
1429
|
-
(c(!0), u(
|
|
1476
|
+
(c(!0), u(C, null, k(s.paginatorOptions, (o, l) => (c(), u(C, null, [
|
|
1430
1477
|
s.bodyCopy.length > o || r.dataset.body.length === o ? (c(), u("option", {
|
|
1431
1478
|
key: `paginator_option_${l}`
|
|
1432
1479
|
}, h(o), 1)) : b("", !0)
|
|
1433
1480
|
], 64))), 256))
|
|
1434
1481
|
], 36)), [
|
|
1435
1482
|
[
|
|
1436
|
-
|
|
1483
|
+
H,
|
|
1437
1484
|
s.itemsPerPage,
|
|
1438
1485
|
void 0,
|
|
1439
1486
|
{ number: !0 }
|
|
1440
1487
|
]
|
|
1441
1488
|
]) : b("", !0)
|
|
1442
1489
|
])) : b("", !0),
|
|
1443
|
-
s.itemsPerPage >= 250 ? (c(), u("div",
|
|
1490
|
+
s.itemsPerPage >= 250 ? (c(), u("div", Lt, [
|
|
1444
1491
|
a("span", {
|
|
1445
1492
|
innerHTML: e.icons.warning
|
|
1446
|
-
}, null, 8,
|
|
1447
|
-
|
|
1493
|
+
}, null, 8, St),
|
|
1494
|
+
_(h(e.FINAL_CONFIG.translations.sizeWarning), 1)
|
|
1448
1495
|
])) : b("", !0),
|
|
1449
1496
|
e.pages.length > 1 && e.pages.length <= 10 ? (c(), u("div", {
|
|
1450
1497
|
key: 3,
|
|
1451
1498
|
class: "vue-ui-table-navigation-indicator",
|
|
1452
1499
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${s.currentPage / (e.pages.length - 1) * 100}%)`)
|
|
1453
1500
|
}, null, 4)) : b("", !0),
|
|
1454
|
-
e.pages.length > 1 ? (c(), u("div",
|
|
1501
|
+
e.pages.length > 1 ? (c(), u("div", At, [
|
|
1455
1502
|
a("button", {
|
|
1456
1503
|
class: "vue-ui-table-navigation",
|
|
1457
1504
|
onClick: t[16] || (t[16] = S((o) => e.navigate("previous"), ["stop"])),
|
|
1458
1505
|
innerHTML: e.icons.chevronLeft,
|
|
1459
1506
|
disabled: s.currentPage === 0,
|
|
1460
1507
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1461
|
-
}, null, 12,
|
|
1462
|
-
e.pages.length > 3 ? (c(), u(
|
|
1508
|
+
}, null, 12, Mt),
|
|
1509
|
+
e.pages.length > 3 ? (c(), u(C, { key: 0 }, [
|
|
1463
1510
|
a("button", {
|
|
1464
1511
|
class: "vue-ui-table-navigation",
|
|
1465
1512
|
onClick: t[17] || (t[17] = S((o) => e.navigate(1), ["stop"])),
|
|
1466
1513
|
disabled: s.currentPage === 0,
|
|
1467
1514
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1468
|
-
}, " 1 ", 12,
|
|
1469
|
-
e.pages.length > 10 ? (c(), u("div",
|
|
1470
|
-
a("label",
|
|
1515
|
+
}, " 1 ", 12, Gt),
|
|
1516
|
+
e.pages.length > 10 ? (c(), u("div", xt, [
|
|
1517
|
+
a("label", Dt, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1),
|
|
1471
1518
|
a("input", {
|
|
1472
1519
|
class: "vue-ui-table-page-scroller",
|
|
1473
1520
|
id: "pageScroller",
|
|
@@ -1478,16 +1525,16 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1478
1525
|
onInput: t[18] || (t[18] = (o) => e.updateCurrentPage(o)),
|
|
1479
1526
|
value: s.currentPage,
|
|
1480
1527
|
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}`)
|
|
1481
|
-
}, null, 44,
|
|
1482
|
-
])) : (c(), u("span",
|
|
1528
|
+
}, null, 44, Tt)
|
|
1529
|
+
])) : (c(), u("span", Bt, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)),
|
|
1483
1530
|
a("button", {
|
|
1484
1531
|
class: "vue-ui-table-navigation",
|
|
1485
1532
|
onClick: t[19] || (t[19] = S((o) => e.navigate(e.pages.length), ["stop"])),
|
|
1486
1533
|
disabled: s.currentPage === e.pages.length - 1,
|
|
1487
1534
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage === e.pages.length - 1 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1488
|
-
}, h(e.pages.length), 13,
|
|
1489
|
-
], 64)) : (c(), u(
|
|
1490
|
-
|
|
1535
|
+
}, h(e.pages.length), 13, Et)
|
|
1536
|
+
], 64)) : (c(), u(C, { key: 1 }, [
|
|
1537
|
+
_(h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)
|
|
1491
1538
|
], 64)),
|
|
1492
1539
|
a("button", {
|
|
1493
1540
|
class: "vue-ui-table-navigation",
|
|
@@ -1495,7 +1542,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1495
1542
|
innerHTML: e.icons.chevronRight,
|
|
1496
1543
|
disabled: s.currentPage === e.pages.length - 1,
|
|
1497
1544
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${s.currentPage === e.pages.length - 1 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1498
|
-
}, null, 12,
|
|
1545
|
+
}, null, 12, Pt)
|
|
1499
1546
|
])) : b("", !0),
|
|
1500
1547
|
s.showChart && e.canChart ? (c(), u("div", {
|
|
1501
1548
|
key: 5,
|
|
@@ -1508,7 +1555,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1508
1555
|
}, [
|
|
1509
1556
|
a("span", {
|
|
1510
1557
|
innerHTML: e.icons.grip
|
|
1511
|
-
}, null, 8,
|
|
1558
|
+
}, null, 8, Ht),
|
|
1512
1559
|
a("button", {
|
|
1513
1560
|
class: "close-chart-modal",
|
|
1514
1561
|
onClick: t[21] || (t[21] = (o) => s.showChart = !1)
|
|
@@ -1519,40 +1566,40 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1519
1566
|
class: "close-chart-modal",
|
|
1520
1567
|
onClick: t[23] || (t[23] = (o) => s.showChart = !1)
|
|
1521
1568
|
}, " ✖ ", 4),
|
|
1522
|
-
a("div",
|
|
1569
|
+
a("div", Rt, [
|
|
1523
1570
|
e.availableDonutCategories.length ? (c(), u("button", {
|
|
1524
1571
|
key: 0,
|
|
1525
1572
|
onClick: t[24] || (t[24] = (o) => s.showDonutOptions = !0),
|
|
1526
1573
|
innerHTML: e.icons.donut,
|
|
1527
|
-
class:
|
|
1574
|
+
class: p({ "is-active-chart": s.chart.type === s.constants.DONUT || s.showDonutOptions }),
|
|
1528
1575
|
style: g(`background:${s.chart.type === s.constants.DONUT || s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type === s.constants.DONUT || s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1529
|
-
}, null, 14,
|
|
1576
|
+
}, null, 14, zt)) : b("", !0),
|
|
1530
1577
|
a("button", {
|
|
1531
1578
|
onClick: t[25] || (t[25] = (o) => {
|
|
1532
1579
|
s.chart.type = s.constants.LINE, s.showDonutOptions = !1;
|
|
1533
1580
|
}),
|
|
1534
1581
|
innerHTML: e.icons.chart,
|
|
1535
|
-
class:
|
|
1582
|
+
class: p({ "is-active-chart": s.chart.type === s.constants.LINE && !s.showDonutOptions }),
|
|
1536
1583
|
style: g(`background:${s.chart.type === s.constants.LINE && !s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type === s.constants.LINE && !s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1537
|
-
}, null, 14,
|
|
1584
|
+
}, null, 14, Ut),
|
|
1538
1585
|
a("button", {
|
|
1539
1586
|
onClick: t[26] || (t[26] = (o) => {
|
|
1540
1587
|
s.chart.type = s.constants.BAR, s.showDonutOptions = !1;
|
|
1541
1588
|
}),
|
|
1542
1589
|
innerHTML: e.icons.bar,
|
|
1543
|
-
class:
|
|
1590
|
+
class: p({ "is-active-chart": s.chart.type === s.constants.BAR && !s.showDonutOptions }),
|
|
1544
1591
|
style: g(`background:${s.chart.type === s.constants.BAR && !s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${s.chart.type === s.constants.BAR && !s.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1545
|
-
}, null, 14,
|
|
1592
|
+
}, null, 14, Vt)
|
|
1546
1593
|
]),
|
|
1547
|
-
a("div",
|
|
1594
|
+
a("div", Xt, [
|
|
1548
1595
|
s.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
|
|
1549
1596
|
key: 0,
|
|
1550
1597
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1551
1598
|
}, [
|
|
1552
|
-
a("fieldset",
|
|
1599
|
+
a("fieldset", jt, [
|
|
1553
1600
|
a("legend", null, h(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
|
|
1554
|
-
a("div",
|
|
1555
|
-
(c(!0), u(
|
|
1601
|
+
a("div", Yt, [
|
|
1602
|
+
(c(!0), u(C, null, k(e.availableDonutCategories, (o, l) => (c(), u("div", {
|
|
1556
1603
|
key: `donut_radio_${l}`,
|
|
1557
1604
|
class: "vue-ui-table-fieldset-option"
|
|
1558
1605
|
}, [
|
|
@@ -1563,10 +1610,10 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1563
1610
|
checked: s.selectedDonutCategory && o.name === s.selectedDonutCategory.name,
|
|
1564
1611
|
onInput: (d) => s.selectedDonutCategory = e.availableDonutCategories[l],
|
|
1565
1612
|
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}`)
|
|
1566
|
-
}, null, 44,
|
|
1613
|
+
}, null, 44, Wt),
|
|
1567
1614
|
a("label", {
|
|
1568
1615
|
for: o.name
|
|
1569
|
-
}, h(o.name), 9,
|
|
1616
|
+
}, h(o.name), 9, Jt)
|
|
1570
1617
|
]))), 128))
|
|
1571
1618
|
]),
|
|
1572
1619
|
a("button", {
|
|
@@ -1578,29 +1625,29 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1578
1625
|
a("div", {
|
|
1579
1626
|
style: { "margin-bottom": "-3px" },
|
|
1580
1627
|
innerHTML: e.icons.donut
|
|
1581
|
-
}, null, 8,
|
|
1582
|
-
|
|
1583
|
-
], 12,
|
|
1628
|
+
}, null, 8, Zt),
|
|
1629
|
+
_(" " + h(e.FINAL_CONFIG.translations.makeDonut), 1)
|
|
1630
|
+
], 12, Kt)
|
|
1584
1631
|
])
|
|
1585
1632
|
], 4)) : b("", !0),
|
|
1586
|
-
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(
|
|
1587
|
-
e.chartTimeLabelOptions.length > 1 ? (c(), u("label",
|
|
1588
|
-
|
|
1633
|
+
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(C, { key: 1 }, [
|
|
1634
|
+
e.chartTimeLabelOptions.length > 1 ? (c(), u("label", qt, [
|
|
1635
|
+
_(h(e.FINAL_CONFIG.translations.xAxisLabels) + " ", 1),
|
|
1589
1636
|
O(a("select", {
|
|
1590
1637
|
"onUpdate:modelValue": t[28] || (t[28] = (o) => s.chartTimeLabelSourceModel = o)
|
|
1591
1638
|
}, [
|
|
1592
|
-
(c(!0), u(
|
|
1639
|
+
(c(!0), u(C, null, k(e.chartTimeLabelOptions, (o) => (c(), u("option", null, h(o), 1))), 256))
|
|
1593
1640
|
], 512), [
|
|
1594
|
-
[
|
|
1641
|
+
[H, s.chartTimeLabelSourceModel]
|
|
1595
1642
|
])
|
|
1596
1643
|
])) : b("", !0),
|
|
1597
|
-
a("div",
|
|
1598
|
-
s.chart.type === s.constants.LINE ? (c(),
|
|
1644
|
+
a("div", Qt, [
|
|
1645
|
+
s.chart.type === s.constants.LINE ? (c(), R(f, {
|
|
1599
1646
|
key: `chart_line_${s.chartStep}`,
|
|
1600
1647
|
dataset: e.chartData.xyDatasetLine,
|
|
1601
1648
|
config: e.chartData.xyConfig
|
|
1602
1649
|
}, null, 8, ["dataset", "config"])) : b("", !0),
|
|
1603
|
-
s.chart.type === s.constants.BAR ? (c(),
|
|
1650
|
+
s.chart.type === s.constants.BAR ? (c(), R(f, {
|
|
1604
1651
|
key: `chart_bar_${s.chartStep}`,
|
|
1605
1652
|
dataset: e.chartData.xyDatasetBar,
|
|
1606
1653
|
config: e.chartData.xyConfig
|
|
@@ -1612,15 +1659,15 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1612
1659
|
style: g(`color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1613
1660
|
}, [
|
|
1614
1661
|
t[38] || (t[38] = a("span", null, "---", -1)),
|
|
1615
|
-
|
|
1662
|
+
_(" Trend: " + h(e.dataLabel({
|
|
1616
1663
|
v: e.chartData.progression.trend * 100,
|
|
1617
1664
|
s: "%",
|
|
1618
1665
|
r: 1
|
|
1619
1666
|
})), 1)
|
|
1620
1667
|
], 4)) : b("", !0)
|
|
1621
1668
|
], 64)) : b("", !0),
|
|
1622
|
-
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div",
|
|
1623
|
-
|
|
1669
|
+
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div", $t, [
|
|
1670
|
+
P(w, {
|
|
1624
1671
|
dataset: s.currentDonut,
|
|
1625
1672
|
config: e.chartData.donutConfig
|
|
1626
1673
|
}, null, 8, ["dataset", "config"])
|
|
@@ -1629,7 +1676,7 @@ function Zt(n, t, r, i, s, e) {
|
|
|
1629
1676
|
], 4)) : b("", !0)
|
|
1630
1677
|
], 4);
|
|
1631
1678
|
}
|
|
1632
|
-
const
|
|
1679
|
+
const cs = /* @__PURE__ */ ce(D, [["render", es], ["__scopeId", "data-v-021d6785"]]);
|
|
1633
1680
|
export {
|
|
1634
|
-
|
|
1681
|
+
cs as default
|
|
1635
1682
|
};
|