vue-data-ui 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-x4hg0tYe.js → PackageVersion-CPxZT-xH.js} +1 -1
- package/dist/{Title-C__lOIPC.js → Title-B3UTqrqj.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/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-CLD3Gk9S.js → useNestedProp-B9OeNO-E.js} +4 -0
- package/dist/{vue-data-ui-boJG_PFN.js → vue-data-ui-C-XpoSih.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-HrbA4DmH.js → vue-ui-3d-bar-DOecLYLE.js} +3 -3
- package/dist/{vue-ui-accordion-Cv7OaVUI.js → vue-ui-accordion-DrKVXpRB.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CS5384rT.js → vue-ui-age-pyramid-C0-TsZiO.js} +3 -3
- package/dist/{vue-ui-annotator-DOO0qej9.js → vue-ui-annotator-GYJPPkqk.js} +2 -2
- package/dist/{vue-ui-bullet-DaauvX3a.js → vue-ui-bullet-D8BTxLsh.js} +3 -3
- package/dist/{vue-ui-candlestick-DQXu21Mp.js → vue-ui-candlestick-C8EKzgk8.js} +3 -3
- package/dist/{vue-ui-carousel-table-Bh8Vb6ce.js → vue-ui-carousel-table-DWDAT9Bv.js} +2 -2
- package/dist/{vue-ui-chestnut-BgmAUlUz.js → vue-ui-chestnut-moaiX3ch.js} +2 -2
- package/dist/{vue-ui-chord-3NX_jwG_.js → vue-ui-chord-BV_o4nlt.js} +3 -3
- package/dist/{vue-ui-circle-pack-Berb37Aa.js → vue-ui-circle-pack-CGZzZeiw.js} +3 -3
- package/dist/{vue-ui-cursor-Cbt_0B5t.js → vue-ui-cursor-DPpffCgE.js} +1 -1
- package/dist/{vue-ui-dashboard-BzU-96mz.js → vue-ui-dashboard-elD5LDyG.js} +63 -63
- package/dist/{vue-ui-digits-ChAz3jSS.js → vue-ui-digits-D3ajh8NJ.js} +1 -1
- package/dist/{vue-ui-donut-evolution-BD3_nxd1.js → vue-ui-donut-evolution-BtoygMFS.js} +3 -3
- package/dist/{vue-ui-donut-BBQNmH5y.js → vue-ui-donut-fadiDQvI.js} +3 -3
- package/dist/{vue-ui-dumbbell-Ct-YAkFg.js → vue-ui-dumbbell-DHCYzyJz.js} +3 -3
- package/dist/{vue-ui-flow-CVHjWM9l.js → vue-ui-flow-D4ylW0W1.js} +3 -3
- package/dist/{vue-ui-funnel-Co79mdnX.js → vue-ui-funnel-MoRuRQaq.js} +3 -3
- package/dist/{vue-ui-galaxy-D-XFEUfD.js → vue-ui-galaxy-C7AvuJir.js} +3 -3
- package/dist/{vue-ui-gauge-Cx6eQ1nL.js → vue-ui-gauge-D0R9gL9E.js} +3 -3
- package/dist/{vue-ui-gizmo-D2PHxbS3.js → vue-ui-gizmo-BFyI_9mt.js} +2 -2
- package/dist/{vue-ui-heatmap-D4KCpMN3.js → vue-ui-heatmap-Dte8MPCp.js} +4 -4
- package/dist/{vue-ui-history-plot-Q_Q9g2Es.js → vue-ui-history-plot-6dD96OTH.js} +3 -3
- package/dist/{vue-ui-kpi-D7WXGb3K.js → vue-ui-kpi-BAwj45_1.js} +2 -2
- package/dist/{vue-ui-mini-loader-CKMzFSG5.js → vue-ui-mini-loader-D6fOQZX6.js} +1 -1
- package/dist/{vue-ui-molecule-Bxs72uED.js → vue-ui-molecule-B5SmQ6k6.js} +2 -2
- package/dist/{vue-ui-mood-radar-B5wYN9tI.js → vue-ui-mood-radar-C7OVR2P_.js} +3 -3
- package/dist/{vue-ui-nested-donuts-pt6KriAc.js → vue-ui-nested-donuts-BGX4yvnh.js} +3 -3
- package/dist/{vue-ui-onion-C8jid2_q.js → vue-ui-onion-DS7LaVFL.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-06wFGFFV.js → vue-ui-parallel-coordinate-plot-DwK4-ZyV.js} +3 -3
- package/dist/{vue-ui-quadrant-B2dS6aSz.js → vue-ui-quadrant-CIIvIECe.js} +3 -3
- package/dist/{vue-ui-quick-chart-CrkR07qv.js → vue-ui-quick-chart-Cba6XAFF.js} +2 -2
- package/dist/{vue-ui-radar-CkAX2pUE.js → vue-ui-radar-BCyKcnH1.js} +3 -3
- package/dist/{vue-ui-rating-C0Ubexdn.js → vue-ui-rating-HgSUBbJx.js} +1 -1
- package/dist/{vue-ui-relation-circle-eROPsns9.js → vue-ui-relation-circle-VBceGE52.js} +3 -3
- package/dist/{vue-ui-ridgeline-AkXpQ6zB.js → vue-ui-ridgeline-Bn2iVW8_.js} +3 -3
- package/dist/{vue-ui-rings-DEwCnnwC.js → vue-ui-rings-NoFKU2kZ.js} +3 -3
- package/dist/{vue-ui-scatter-DzojJVhb.js → vue-ui-scatter-BWIcu0AU.js} +3 -3
- package/dist/{vue-ui-skeleton-Bp8Ao16B.js → vue-ui-skeleton-DPYUcomF.js} +2 -2
- package/dist/{vue-ui-smiley-DxC8rN5b.js → vue-ui-smiley-C2wHzhBj.js} +1 -1
- package/dist/{vue-ui-spark-trend-DqKebrx9.js → vue-ui-spark-trend-B57gzgJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-BShmZ5Vp.js → vue-ui-sparkbar-BKMkKeAJ.js} +2 -2
- package/dist/{vue-ui-sparkgauge-NX3Z_bFF.js → vue-ui-sparkgauge-C3R0tWzz.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-TBxquo5S.js → vue-ui-sparkhistogram-31hSCW__.js} +2 -2
- package/dist/{vue-ui-sparkline-Bw4jxjxk.js → vue-ui-sparkline-DGy1K2y4.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-D8YGkrZ9.js → vue-ui-sparkstackbar-C6wOF12V.js} +2 -2
- package/dist/{vue-ui-stackbar-0Kag52U5.js → vue-ui-stackbar-BSnIzSOz.js} +3 -3
- package/dist/{vue-ui-strip-plot-CU0tiCsd.js → vue-ui-strip-plot-Dt8rJHX1.js} +3 -3
- package/dist/{vue-ui-table-B4BTGeKs.js → vue-ui-table-DZ_jLauo.js} +415 -371
- package/dist/{vue-ui-table-heatmap-D-iueyM0.js → vue-ui-table-heatmap-wRY63Mop.js} +1 -1
- package/dist/{vue-ui-table-sparkline-BnqMY5lk.js → vue-ui-table-sparkline-2ZPRQrqb.js} +2 -2
- package/dist/{vue-ui-thermometer-Ct3Sr0M1.js → vue-ui-thermometer-CZDRLAlr.js} +3 -3
- package/dist/{vue-ui-timer-DsAVvm1H.js → vue-ui-timer-wMk4sVkK.js} +3 -3
- package/dist/{vue-ui-tiremarks-DKNpl_8J.js → vue-ui-tiremarks-C1IEecQB.js} +3 -3
- package/dist/{vue-ui-treemap-Jdea_p8r.js → vue-ui-treemap-Q4PWFmqT.js} +3 -3
- package/dist/{vue-ui-vertical-bar-DE42y9ZI.js → vue-ui-vertical-bar-C7nhAu5t.js} +4 -4
- package/dist/{vue-ui-waffle-CrYeU7zd.js → vue-ui-waffle-B7lfNgi8.js} +3 -3
- package/dist/{vue-ui-wheel-B4Be4Ol6.js → vue-ui-wheel-h30eu5fl.js} +3 -3
- package/dist/{vue-ui-word-cloud-9QkLvAgs.js → vue-ui-word-cloud-C4fjGysW.js} +3 -3
- package/dist/{vue-ui-world-DTwfuIIZ.js → vue-ui-world-C9xV3sZJ.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BGzMXziC.js → vue-ui-xy-canvas-iPqn9H95.js} +4 -4
- package/dist/{vue-ui-xy-BKzt6d8T.js → vue-ui-xy-vlcc3Vxv.js} +4 -4
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a2 as U, t as V, m as
|
|
2
|
-
import { u as Q } from "./useNestedProp-
|
|
3
|
-
import $ from "./vue-ui-xy-
|
|
4
|
-
import ee from "./vue-ui-donut-
|
|
1
|
+
import { a2 as U, t as V, m as T, y as X, d as j, r as Y, x as W, a6 as J, h as K, E as Z, p as q } from "./lib-BEpWEyMm.js";
|
|
2
|
+
import { u as Q } from "./useNestedProp-B9OeNO-E.js";
|
|
3
|
+
import $ from "./vue-ui-xy-vlcc3Vxv.js";
|
|
4
|
+
import ee from "./vue-ui-donut-fadiDQvI.js";
|
|
5
5
|
import te from "./BaseIcon-Bz-1GQhu.js";
|
|
6
|
-
import { resolveComponent as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
6
|
+
import { resolveComponent as G, 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 E, Fragment as p, renderList as k, normalizeClass as C, createTextVNode as w, vModelSelect as P, createBlock as B, ref as se, computed as ne } from "vue";
|
|
7
|
+
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const le = {
|
|
9
9
|
name: "vue-ui-table",
|
|
10
10
|
props: {
|
|
11
11
|
config: {
|
|
@@ -117,6 +117,13 @@ const ne = {
|
|
|
117
117
|
filename: ""
|
|
118
118
|
};
|
|
119
119
|
},
|
|
120
|
+
setup() {
|
|
121
|
+
const n = se(null), t = ne(() => n.value ? n.value.getBoundingClientRect().height + 3 : 3);
|
|
122
|
+
return {
|
|
123
|
+
tableCaption: n,
|
|
124
|
+
exportButtonTop: t
|
|
125
|
+
};
|
|
126
|
+
},
|
|
120
127
|
mounted() {
|
|
121
128
|
if (this.dataset.header.length === 0)
|
|
122
129
|
throw new Error(`vue-ui-table error: missing header data.
|
|
@@ -212,10 +219,10 @@ Provide an array of objects of type:
|
|
|
212
219
|
},
|
|
213
220
|
chartData() {
|
|
214
221
|
if (!this.canChart) return [];
|
|
215
|
-
const n = 316, t = 512, r = this.currentSelectionSpan.rows.length, i = t / r, s = Math.max(...this.currentSelectionSpan.rows.map((
|
|
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, _ = 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 = [
|
|
216
223
|
{
|
|
217
224
|
name: _,
|
|
218
|
-
series: this.currentSelectionSpan.rows.map((
|
|
225
|
+
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
219
226
|
type: "line",
|
|
220
227
|
useProgression: !0,
|
|
221
228
|
smooth: this.FINAL_CONFIG.style.chart.layout.line.smooth,
|
|
@@ -225,26 +232,26 @@ Provide an array of objects of type:
|
|
|
225
232
|
], y = [
|
|
226
233
|
{
|
|
227
234
|
name: _,
|
|
228
|
-
series: this.currentSelectionSpan.rows.map((
|
|
235
|
+
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
229
236
|
type: "bar",
|
|
230
237
|
useProgression: !0,
|
|
231
238
|
color: this.FINAL_CONFIG.style.chart.layout.bar.fill
|
|
232
239
|
}
|
|
233
|
-
],
|
|
240
|
+
], I = this.FINAL_CONFIG.style.chart.modal.backgroundColor, N = this.adaptColorToBackground(I), F = this.dataset.header[this.currentSelectionSpan.col].decimals, H = {
|
|
234
241
|
chart: {
|
|
235
|
-
backgroundColor:
|
|
236
|
-
color:
|
|
242
|
+
backgroundColor: I,
|
|
243
|
+
color: N,
|
|
237
244
|
labels: {
|
|
238
245
|
fontSize: 18,
|
|
239
|
-
prefix:
|
|
240
|
-
suffix:
|
|
246
|
+
prefix: o,
|
|
247
|
+
suffix: l
|
|
241
248
|
},
|
|
242
249
|
grid: {
|
|
243
|
-
stroke:
|
|
250
|
+
stroke: T(N, 0.5),
|
|
244
251
|
labels: {
|
|
245
|
-
color:
|
|
252
|
+
color: N,
|
|
246
253
|
xAxisLabels: {
|
|
247
|
-
color:
|
|
254
|
+
color: N,
|
|
248
255
|
show: this.chartTimeLabels.length,
|
|
249
256
|
values: this.chartTimeLabels,
|
|
250
257
|
datetimeFormatter: this.FINAL_CONFIG.style.chart.layout.datetimeFormatter,
|
|
@@ -254,23 +261,23 @@ Provide an array of objects of type:
|
|
|
254
261
|
}
|
|
255
262
|
},
|
|
256
263
|
highlighter: {
|
|
257
|
-
color:
|
|
264
|
+
color: N
|
|
258
265
|
},
|
|
259
266
|
legend: {
|
|
260
|
-
color:
|
|
267
|
+
color: N
|
|
261
268
|
},
|
|
262
269
|
title: {
|
|
263
270
|
text: _,
|
|
264
|
-
color:
|
|
271
|
+
color: N,
|
|
265
272
|
fontSize: 18
|
|
266
273
|
},
|
|
267
274
|
tooltip: {
|
|
268
275
|
showTimeLabel: this.chartTimeLabels.length,
|
|
269
276
|
backgroundOpacity: 30,
|
|
270
|
-
color:
|
|
271
|
-
backgroundColor:
|
|
277
|
+
color: N,
|
|
278
|
+
backgroundColor: I,
|
|
272
279
|
showPercentage: !1,
|
|
273
|
-
roundingValue:
|
|
280
|
+
roundingValue: F
|
|
274
281
|
},
|
|
275
282
|
userOptions: {
|
|
276
283
|
position: "left",
|
|
@@ -292,8 +299,8 @@ Provide an array of objects of type:
|
|
|
292
299
|
line: {
|
|
293
300
|
labels: {
|
|
294
301
|
show: !0,
|
|
295
|
-
color:
|
|
296
|
-
rounding:
|
|
302
|
+
color: N,
|
|
303
|
+
rounding: F
|
|
297
304
|
},
|
|
298
305
|
dot: {
|
|
299
306
|
useSerieColor: !1,
|
|
@@ -310,18 +317,18 @@ Provide an array of objects of type:
|
|
|
310
317
|
},
|
|
311
318
|
labels: {
|
|
312
319
|
show: !0,
|
|
313
|
-
color:
|
|
314
|
-
rounding:
|
|
320
|
+
color: N,
|
|
321
|
+
rounding: F
|
|
315
322
|
}
|
|
316
323
|
}
|
|
317
|
-
},
|
|
324
|
+
}, x = e >= 0 ? 0 : Math.abs(e), R = s + x, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, D = this.currentSelectionSpan.rows.map((v, z) => ({
|
|
318
325
|
x: i * z + i / 2,
|
|
319
|
-
y: (1 - (
|
|
320
|
-
value: M ?
|
|
326
|
+
y: (1 - (v.value + x) / R) * n,
|
|
327
|
+
value: M ? v.value * 100 : v.value,
|
|
321
328
|
suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
|
|
322
329
|
prefix: this.dataset.header[this.currentSelectionSpan.col].prefix ? this.dataset.header[this.currentSelectionSpan.col].prefix : "",
|
|
323
|
-
index:
|
|
324
|
-
absoluteValue: M ? Math.abs(
|
|
330
|
+
index: v.index,
|
|
331
|
+
absoluteValue: M ? Math.abs(v.value) * 100 : Math.abs(v.value)
|
|
325
332
|
}));
|
|
326
333
|
return {
|
|
327
334
|
donutConfig: {
|
|
@@ -336,8 +343,8 @@ Provide an array of objects of type:
|
|
|
336
343
|
},
|
|
337
344
|
style: {
|
|
338
345
|
chart: {
|
|
339
|
-
backgroundColor:
|
|
340
|
-
color:
|
|
346
|
+
backgroundColor: I,
|
|
347
|
+
color: N,
|
|
341
348
|
layout: {
|
|
342
349
|
curvedMarkers: !0,
|
|
343
350
|
donut: {
|
|
@@ -346,32 +353,32 @@ Provide an array of objects of type:
|
|
|
346
353
|
labels: {
|
|
347
354
|
dataLabels: {
|
|
348
355
|
suffix: M ? "%" : "",
|
|
349
|
-
prefix:
|
|
356
|
+
prefix: o
|
|
350
357
|
},
|
|
351
358
|
value: {
|
|
352
|
-
rounding:
|
|
359
|
+
rounding: F
|
|
353
360
|
},
|
|
354
361
|
percentage: {
|
|
355
|
-
color:
|
|
356
|
-
rounding:
|
|
362
|
+
color: N,
|
|
363
|
+
rounding: F
|
|
357
364
|
},
|
|
358
365
|
name: {
|
|
359
|
-
color:
|
|
366
|
+
color: N
|
|
360
367
|
},
|
|
361
368
|
hollow: {
|
|
362
369
|
average: {
|
|
363
|
-
color:
|
|
370
|
+
color: N,
|
|
364
371
|
text: this.FINAL_CONFIG.translations.average,
|
|
365
372
|
value: {
|
|
366
|
-
color:
|
|
373
|
+
color: N
|
|
367
374
|
}
|
|
368
375
|
},
|
|
369
376
|
total: {
|
|
370
|
-
color:
|
|
377
|
+
color: N,
|
|
371
378
|
offsetY: -12,
|
|
372
379
|
text: this.FINAL_CONFIG.translations.total,
|
|
373
380
|
value: {
|
|
374
|
-
color:
|
|
381
|
+
color: N,
|
|
375
382
|
offsetY: -12
|
|
376
383
|
}
|
|
377
384
|
}
|
|
@@ -379,10 +386,10 @@ Provide an array of objects of type:
|
|
|
379
386
|
}
|
|
380
387
|
},
|
|
381
388
|
legend: {
|
|
382
|
-
backgroundColor:
|
|
383
|
-
color:
|
|
384
|
-
roundingValue:
|
|
385
|
-
roundingPercentage:
|
|
389
|
+
backgroundColor: I,
|
|
390
|
+
color: N,
|
|
391
|
+
roundingValue: F,
|
|
392
|
+
roundingPercentage: F
|
|
386
393
|
},
|
|
387
394
|
padding: {
|
|
388
395
|
left: 12,
|
|
@@ -390,23 +397,23 @@ Provide an array of objects of type:
|
|
|
390
397
|
},
|
|
391
398
|
title: {
|
|
392
399
|
text: _,
|
|
393
|
-
color:
|
|
400
|
+
color: N,
|
|
394
401
|
fontSize: 18
|
|
395
402
|
},
|
|
396
403
|
tooltip: {
|
|
397
404
|
backgroundOpacity: 30,
|
|
398
|
-
color:
|
|
399
|
-
backgroundColor:
|
|
400
|
-
roundingValue:
|
|
401
|
-
roundingValue:
|
|
405
|
+
color: N,
|
|
406
|
+
backgroundColor: I,
|
|
407
|
+
roundingValue: F,
|
|
408
|
+
roundingValue: F
|
|
402
409
|
}
|
|
403
410
|
}
|
|
404
411
|
}
|
|
405
412
|
},
|
|
406
|
-
xyConfig:
|
|
413
|
+
xyConfig: H,
|
|
407
414
|
xyDatasetLine: d,
|
|
408
415
|
xyDatasetBar: y,
|
|
409
|
-
progression:
|
|
416
|
+
progression: D.length >= 2 ? this.calcLinearProgression(D) : !1
|
|
410
417
|
};
|
|
411
418
|
},
|
|
412
419
|
hasNumericTypes() {
|
|
@@ -476,7 +483,7 @@ Provide an array of objects of type:
|
|
|
476
483
|
darkenHexColor: Y,
|
|
477
484
|
dataLabel: j,
|
|
478
485
|
downloadCsv: X,
|
|
479
|
-
lightenHexColor:
|
|
486
|
+
lightenHexColor: T,
|
|
480
487
|
treeShake: V,
|
|
481
488
|
// specific
|
|
482
489
|
applyDonutOption() {
|
|
@@ -531,9 +538,9 @@ Provide an array of objects of type:
|
|
|
531
538
|
return this.rows.map((t) => t[n]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, r) => t + r, 0) / this.bodyCopy.length;
|
|
532
539
|
},
|
|
533
540
|
getDatesRange(n) {
|
|
534
|
-
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"), _ = String(r.getDate()).padStart(2, "0"),
|
|
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"), _ = String(r.getDate()).padStart(2, "0"), o = String(i.getDate()).padStart(2, "0"), l = `${s}-${m}-${_}`, d = `${e}-${f}-${o}`;
|
|
535
542
|
return {
|
|
536
|
-
from:
|
|
543
|
+
from: l,
|
|
537
544
|
to: d
|
|
538
545
|
};
|
|
539
546
|
},
|
|
@@ -622,25 +629,25 @@ Provide an array of objects of type:
|
|
|
622
629
|
n.preventDefault();
|
|
623
630
|
const t = n.keyCode, r = 38, i = 40, s = 37, e = 39;
|
|
624
631
|
if (![r, i, s, e].includes(t)) return;
|
|
625
|
-
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, _ = m.match(f),
|
|
626
|
-
let
|
|
632
|
+
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, _ = m.match(f), o = parseInt(_[1]), l = parseInt(_[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
|
+
let F;
|
|
627
634
|
switch (!0) {
|
|
628
635
|
case t === e:
|
|
629
|
-
|
|
636
|
+
F = d;
|
|
630
637
|
break;
|
|
631
638
|
case t === s:
|
|
632
|
-
|
|
639
|
+
F = y;
|
|
633
640
|
break;
|
|
634
641
|
case t === r:
|
|
635
|
-
|
|
642
|
+
F = N;
|
|
636
643
|
break;
|
|
637
644
|
case t === i:
|
|
638
|
-
|
|
645
|
+
F = I;
|
|
639
646
|
break;
|
|
640
647
|
default:
|
|
641
648
|
return;
|
|
642
649
|
}
|
|
643
|
-
|
|
650
|
+
F && (F.focus(), F.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
644
651
|
},
|
|
645
652
|
openDonutOptions() {
|
|
646
653
|
this.selectedDonutCategory = this.availableDonutCategories[0], this.showDonutOptions = !0;
|
|
@@ -836,64 +843,68 @@ Provide an array of objects of type:
|
|
|
836
843
|
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);
|
|
837
844
|
}
|
|
838
845
|
}
|
|
839
|
-
},
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
},
|
|
846
|
+
}, oe = ["innerHTML"], ae = ["data-is-open"], ie = { class: "vue-ui-table-export-hub-options" }, ce = { class: "vue-ui-table-export-hub-option-wrapper" }, ue = { class: "label" }, he = ["innerHTML"], de = { class: "vue-ui-table-export-hub-option-wrapper" }, ge = { class: "label" }, me = ["innerHTML"], ye = { class: "vue-ui-table-dialog-field" }, be = {
|
|
847
|
+
class: "label vue-ui-table-dialog-input-label",
|
|
848
|
+
style: { width: "100%" }
|
|
849
|
+
}, fe = { style: { width: "fit-content" } }, Ne = { class: "vue-ui-table" }, pe = { key: 0 }, Ce = { key: 0 }, Ie = { key: 1 }, Fe = {
|
|
843
850
|
key: 0,
|
|
844
851
|
style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
|
|
845
|
-
},
|
|
852
|
+
}, ve = ["innerHTML"], we = {
|
|
846
853
|
key: 0,
|
|
847
854
|
style: { "margin-left": "3px" }
|
|
848
|
-
},
|
|
855
|
+
}, _e = { key: 0 }, ke = { class: "th-filter" }, Oe = {
|
|
849
856
|
key: 0,
|
|
850
857
|
class: "th-date"
|
|
851
|
-
},
|
|
858
|
+
}, Le = { class: "date-wrapper--inputs" }, Se = { class: "date-fieldset" }, Ae = ["for"], Me = ["id", "onUpdate:modelValue", "onInput"], Ge = { class: "date-fieldset" }, xe = ["for"], De = ["id", "onUpdate:modelValue", "onInput"], Te = { class: "date-wrapper--button" }, Ee = ["onClick"], Pe = ["innerHTML"], Be = ["innerHTML"], He = ["innerHTML"], Re = ["onClick", "disabled"], ze = ["placeholder", "onUpdate:modelValue", "name"], Ue = ["onClick"], Ve = ["innerHTML"], Xe = ["innerHTML"], je = ["innerHTML"], Ye = ["onClick", "innerHTML"], We = ["innerHTML"], Je = {
|
|
852
859
|
key: 5,
|
|
853
860
|
class: "th-range-filter"
|
|
854
|
-
},
|
|
861
|
+
}, Ke = ["for"], Ze = ["id", "max", "min", "onUpdate:modelValue"], qe = ["id", "max", "min", "onUpdate:modelValue"], Qe = ["for"], $e = ["onClick", "disabled"], et = ["id"], tt = ["onClick"], st = ["onClick", "onKeyup"], nt = ["innerHTML", "onClick", "onKeyup"], rt = ["data-row"], lt = ["data-row"], ot = ["data-row", "onClick", "onKeyup", "id"], at = ["innerHTML"], it = { key: 1 }, ct = { key: 2 }, ut = { key: 5 }, ht = ["innerHTML"], dt = { key: 0 }, gt = { style: { "margin-left": "12px" } }, mt = { class: "format-num" }, yt = { style: { "margin-left": "12px" } }, bt = {
|
|
855
862
|
key: 0,
|
|
856
863
|
class: "format-num"
|
|
857
|
-
},
|
|
864
|
+
}, ft = {
|
|
858
865
|
key: 1,
|
|
859
866
|
class: "format-num"
|
|
860
|
-
},
|
|
867
|
+
}, Nt = { key: 2 }, pt = { style: { "margin-left": "12px" } }, Ct = {
|
|
861
868
|
key: 0,
|
|
862
869
|
class: "format-num"
|
|
863
|
-
},
|
|
870
|
+
}, It = {
|
|
864
871
|
key: 1,
|
|
865
872
|
class: "format-num"
|
|
866
|
-
},
|
|
873
|
+
}, Ft = { key: 2 }, vt = {
|
|
867
874
|
key: 1,
|
|
868
875
|
class: "vue-ui-table-paginator format-num"
|
|
869
|
-
},
|
|
876
|
+
}, wt = {
|
|
870
877
|
key: 2,
|
|
871
878
|
class: "vue-ui-table-size-warning"
|
|
872
|
-
},
|
|
879
|
+
}, _t = ["innerHTML"], kt = {
|
|
873
880
|
key: 4,
|
|
874
881
|
class: "vue-ui-table-pagination format-num"
|
|
875
|
-
},
|
|
882
|
+
}, Ot = ["innerHTML", "disabled"], Lt = ["disabled"], St = {
|
|
876
883
|
key: 0,
|
|
877
884
|
class: "vue-ui-table-page-scroller-wrapper"
|
|
878
|
-
},
|
|
885
|
+
}, At = {
|
|
879
886
|
for: "pageScroller",
|
|
880
887
|
style: { "font-size": "14px" }
|
|
881
|
-
},
|
|
888
|
+
}, Mt = ["max", "value"], Gt = { key: 1 }, xt = ["disabled"], Dt = ["innerHTML", "disabled"], Tt = ["innerHTML"], Et = { class: "chart-modal-options" }, Pt = ["innerHTML"], Bt = ["innerHTML"], Ht = ["innerHTML"], Rt = {
|
|
882
889
|
style: { width: "100%", height: "fit-content" },
|
|
883
890
|
ref: "chartModal"
|
|
884
|
-
},
|
|
891
|
+
}, zt = { class: "vue-ui-table-fieldset" }, Ut = { class: "vue-ui-table-fieldset-wrapper" }, Vt = ["name", "id", "checked", "onInput"], Xt = ["for"], jt = ["disabled"], Yt = ["innerHTML"], Wt = { key: 0 }, Jt = { style: { width: "100%", "margin-bottom": "12px" } }, Kt = {
|
|
885
892
|
key: 2,
|
|
886
893
|
style: { width: "100%", "margin-bottom": "32px" }
|
|
887
894
|
};
|
|
888
|
-
function
|
|
889
|
-
const m =
|
|
895
|
+
function Zt(n, t, r, i, s, e) {
|
|
896
|
+
const m = G("BaseIcon"), f = G("VueUiXy"), _ = G("VueUiDonut");
|
|
890
897
|
return c(), u("div", {
|
|
891
898
|
class: "vue-ui-table-main",
|
|
892
899
|
style: g(`font-family: ${e.FINAL_CONFIG.fontFamily}`)
|
|
893
900
|
}, [
|
|
894
|
-
e.FINAL_CONFIG.style.exportMenu.show ? (c(), u("div",
|
|
901
|
+
e.FINAL_CONFIG.style.exportMenu.show ? (c(), u("div", {
|
|
902
|
+
key: 0,
|
|
903
|
+
class: "vue-ui-table-export-hub",
|
|
904
|
+
style: g({ top: i.exportButtonTop + "px" })
|
|
905
|
+
}, [
|
|
895
906
|
a("button", {
|
|
896
|
-
onClick: t[0] || (t[0] = (
|
|
907
|
+
onClick: t[0] || (t[0] = (o) => s.isExportRequest = !s.isExportRequest),
|
|
897
908
|
innerHTML: e.icons.export,
|
|
898
909
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
899
910
|
}, null, 12, oe),
|
|
@@ -905,323 +916,356 @@ function Jt(n, t, r, i, s, e) {
|
|
|
905
916
|
t[29] || (t[29] = a("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1)),
|
|
906
917
|
a("button", {
|
|
907
918
|
class: "close-dropdown",
|
|
908
|
-
onClick: t[1] || (t[1] = (
|
|
919
|
+
onClick: t[1] || (t[1] = (o) => s.isExportRequest = !1),
|
|
909
920
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
910
921
|
}, " ✖ ", 4),
|
|
911
|
-
a("div",
|
|
912
|
-
a("div",
|
|
913
|
-
a("div",
|
|
922
|
+
a("div", ie, [
|
|
923
|
+
a("div", ce, [
|
|
924
|
+
a("div", ue, h(e.FINAL_CONFIG.translations.exportAllLabel) + " (" + h(s.bodyCopy.length) + ") ", 1),
|
|
914
925
|
a("button", {
|
|
915
926
|
id: "exportAll",
|
|
916
|
-
onClick: t[2] || (t[2] = (
|
|
927
|
+
onClick: t[2] || (t[2] = (o) => e.createXls("all")),
|
|
917
928
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
918
929
|
}, [
|
|
919
930
|
a("div", {
|
|
920
931
|
innerHTML: e.icons.fileDownload
|
|
921
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, he),
|
|
922
933
|
a("span", null, h(e.FINAL_CONFIG.translations.exportAllButton), 1)
|
|
923
934
|
], 4)
|
|
924
935
|
]),
|
|
925
|
-
a("div",
|
|
926
|
-
a("div",
|
|
936
|
+
a("div", de, [
|
|
937
|
+
a("div", ge, h(e.FINAL_CONFIG.translations.exportPageLabel), 1),
|
|
927
938
|
a("button", {
|
|
928
939
|
id: "exportPage",
|
|
929
|
-
onClick: t[3] || (t[3] = (
|
|
940
|
+
onClick: t[3] || (t[3] = (o) => e.createXls("page")),
|
|
930
941
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
931
942
|
}, [
|
|
932
943
|
a("div", {
|
|
933
944
|
innerHTML: e.icons.fileDownload
|
|
934
|
-
}, null, 8,
|
|
945
|
+
}, null, 8, me),
|
|
935
946
|
a("span", null, h(e.FINAL_CONFIG.translations.exportPageButton), 1)
|
|
936
947
|
], 4)
|
|
937
948
|
]),
|
|
938
|
-
a("div",
|
|
939
|
-
a("label",
|
|
940
|
-
|
|
949
|
+
a("div", ye, [
|
|
950
|
+
a("label", be, [
|
|
951
|
+
a("span", fe, h(e.FINAL_CONFIG.translations.filename), 1),
|
|
941
952
|
O(a("input", {
|
|
953
|
+
name: "filename",
|
|
942
954
|
ref: "filenameInputRef",
|
|
943
|
-
onKeydown: t[4] || (t[4] = S(
|
|
955
|
+
onKeydown: t[4] || (t[4] = L(S(() => {
|
|
944
956
|
}, ["stop"]), ["space"])),
|
|
945
957
|
pattern: ".*",
|
|
946
958
|
class: "vue-ui-table-dialog-input",
|
|
947
959
|
type: "text",
|
|
948
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
960
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => s.filename = o)
|
|
949
961
|
}, null, 544), [
|
|
950
962
|
[A, s.filename]
|
|
951
963
|
])
|
|
952
964
|
]),
|
|
953
|
-
|
|
965
|
+
s.filename ? (c(), u("button", {
|
|
966
|
+
key: 0,
|
|
954
967
|
class: "vue-ui-table-dialog-field-button",
|
|
955
|
-
onClick: t[6] || (t[6] = (
|
|
968
|
+
onClick: t[6] || (t[6] = (o) => s.filename = "")
|
|
956
969
|
}, [
|
|
957
970
|
E(m, {
|
|
958
971
|
name: "close",
|
|
959
972
|
stroke: e.FINAL_CONFIG.style.exportMenu.color,
|
|
960
973
|
size: 18
|
|
961
974
|
}, null, 8, ["stroke"])
|
|
962
|
-
])
|
|
975
|
+
])) : b("", !0)
|
|
963
976
|
])
|
|
964
977
|
])
|
|
965
|
-
], 12,
|
|
966
|
-
])) : b("", !0),
|
|
978
|
+
], 12, ae)
|
|
979
|
+
], 4)) : b("", !0),
|
|
967
980
|
a("div", {
|
|
968
981
|
class: "vue-ui-table__wrapper",
|
|
969
982
|
style: g(`max-height:${e.FINAL_CONFIG.maxHeight}px`),
|
|
970
983
|
ref: "tableWrapper"
|
|
971
984
|
}, [
|
|
972
|
-
a("table",
|
|
985
|
+
a("table", Ne, [
|
|
986
|
+
e.FINAL_CONFIG.style.title.text ? (c(), u("caption", {
|
|
987
|
+
key: 0,
|
|
988
|
+
class: "vue-ui-table__caption",
|
|
989
|
+
ref: "tableCaption",
|
|
990
|
+
style: g({
|
|
991
|
+
textAlign: e.FINAL_CONFIG.style.title.textAlign,
|
|
992
|
+
paddingLeft: e.FINAL_CONFIG.style.title.paddingLeft + "px",
|
|
993
|
+
paddingRight: e.FINAL_CONFIG.style.title.paddingRight + "px",
|
|
994
|
+
backgroundColor: e.FINAL_CONFIG.style.title.backgroundColor,
|
|
995
|
+
boxShadow: `${e.FINAL_CONFIG.style.title.backgroundColor} -1px 0px 0px 0px`
|
|
996
|
+
})
|
|
997
|
+
}, [
|
|
998
|
+
a("span", {
|
|
999
|
+
style: g({
|
|
1000
|
+
fontSize: e.FINAL_CONFIG.style.title.fontSize + "px",
|
|
1001
|
+
fontWeight: e.FINAL_CONFIG.style.title.bold ? "bold" : "normal",
|
|
1002
|
+
color: e.FINAL_CONFIG.style.title.color
|
|
1003
|
+
})
|
|
1004
|
+
}, h(e.FINAL_CONFIG.style.title.text), 5),
|
|
1005
|
+
e.FINAL_CONFIG.style.title.subtitle.text ? (c(), u(p, { key: 0 }, [
|
|
1006
|
+
t[30] || (t[30] = a("br", null, null, -1)),
|
|
1007
|
+
a("span", {
|
|
1008
|
+
style: g({
|
|
1009
|
+
fontSize: e.FINAL_CONFIG.style.title.subtitle.fontSize,
|
|
1010
|
+
fontWeight: e.FINAL_CONFIG.style.title.subtitle.bold ? "bold" : "normal",
|
|
1011
|
+
color: e.FINAL_CONFIG.style.title.subtitle.color
|
|
1012
|
+
})
|
|
1013
|
+
}, h(e.FINAL_CONFIG.style.title.subtitle.text), 5)
|
|
1014
|
+
], 64)) : b("", !0)
|
|
1015
|
+
], 4)) : b("", !0),
|
|
973
1016
|
a("thead", {
|
|
974
1017
|
id: "tableHead",
|
|
975
1018
|
class: "vue-ui-table__head",
|
|
976
1019
|
style: g({
|
|
977
1020
|
background: e.FINAL_CONFIG.style.th.backgroundColor,
|
|
978
|
-
boxShadow: `-1px 0 0 ${e.FINAL_CONFIG.style.th.backgroundColor}
|
|
1021
|
+
boxShadow: `-1px 0 0 ${e.FINAL_CONFIG.style.th.backgroundColor}`,
|
|
1022
|
+
top: i.exportButtonTop - 3 + "px"
|
|
979
1023
|
})
|
|
980
1024
|
}, [
|
|
981
1025
|
a("tr", null, [
|
|
982
|
-
t[
|
|
983
|
-
(c(!0), u(
|
|
984
|
-
key: `thead_${
|
|
1026
|
+
t[31] || (t[31] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1027
|
+
(c(!0), u(p, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1028
|
+
key: `thead_${l}`,
|
|
985
1029
|
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}`),
|
|
986
|
-
class:
|
|
1030
|
+
class: C({ "th-has-nan": s.hasNaN[l] })
|
|
987
1031
|
}, [
|
|
988
|
-
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
])) : (c(), u("span",
|
|
1032
|
+
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(o.type) || o.isPercentage) ? (c(), u("span", pe, [
|
|
1033
|
+
w(h(o.name) + " ", 1),
|
|
1034
|
+
o.isPercentage ? (c(), u("span", Ce, " / " + h(o.percentageTo), 1)) : b("", !0)
|
|
1035
|
+
])) : (c(), u("span", Ie, h(o.name), 1))
|
|
992
1036
|
], 6))), 128))
|
|
993
1037
|
]),
|
|
994
|
-
e.hasNumericTypes ? (c(), u(
|
|
1038
|
+
e.hasNumericTypes ? (c(), u(p, { key: 0 }, [
|
|
995
1039
|
a("tr", null, [
|
|
996
|
-
t[
|
|
997
|
-
(c(!0), u(
|
|
998
|
-
key: `thead_${
|
|
999
|
-
class:
|
|
1040
|
+
t[32] || (t[32] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1041
|
+
(c(!0), u(p, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1042
|
+
key: `thead_${l}`,
|
|
1043
|
+
class: C({ "th-numeric": !0, "th-has-nan": s.hasNaN[l] }),
|
|
1000
1044
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1001
1045
|
}, [
|
|
1002
|
-
|
|
1046
|
+
o.sum && !s.hasNaN[l] ? (c(), u("span", Fe, [
|
|
1003
1047
|
a("span", {
|
|
1004
1048
|
innerHTML: e.icons.sum,
|
|
1005
1049
|
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
1006
|
-
}, null, 8,
|
|
1007
|
-
|
|
1008
|
-
p:
|
|
1009
|
-
v: Number(e.getSum(
|
|
1010
|
-
s:
|
|
1011
|
-
r:
|
|
1050
|
+
}, null, 8, ve),
|
|
1051
|
+
w(" " + h(e.dataLabel({
|
|
1052
|
+
p: o.prefix,
|
|
1053
|
+
v: Number(e.getSum(l)),
|
|
1054
|
+
s: o.suffix,
|
|
1055
|
+
r: o.decimals
|
|
1012
1056
|
})) + " ", 1),
|
|
1013
|
-
s.percentages[
|
|
1014
|
-
v: e.getSum(
|
|
1057
|
+
s.percentages[l] && o.percentageTo && !o.isPercentage ? (c(), u("span", we, " (" + h(isNaN(e.getSum(l) / e.getSum(s.percentages[l].referenceIndex)) ? "-" : e.dataLabel({
|
|
1058
|
+
v: e.getSum(l) / e.getSum(s.percentages[l].referenceIndex) * 100,
|
|
1015
1059
|
s: "%",
|
|
1016
|
-
r:
|
|
1060
|
+
r: o.decimals
|
|
1017
1061
|
})) + ") ", 1)) : b("", !0)
|
|
1018
1062
|
])) : b("", !0)
|
|
1019
1063
|
], 6))), 128))
|
|
1020
1064
|
]),
|
|
1021
1065
|
a("tr", null, [
|
|
1022
|
-
t[
|
|
1023
|
-
(c(!0), u(
|
|
1024
|
-
key: `thead_${
|
|
1025
|
-
class:
|
|
1066
|
+
t[33] || (t[33] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1067
|
+
(c(!0), u(p, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1068
|
+
key: `thead_${l}`,
|
|
1069
|
+
class: C({ "th-numeric": !0, "th-has-nan": s.hasNaN[l] }),
|
|
1026
1070
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1027
1071
|
}, [
|
|
1028
|
-
|
|
1029
|
-
p:
|
|
1030
|
-
v: Number(e.getAverage(
|
|
1031
|
-
s:
|
|
1032
|
-
r:
|
|
1072
|
+
o.average && !s.hasNaN[l] ? (c(), u("span", _e, " ~ " + h(isNaN(e.getAverage(l)) ? "" : e.dataLabel({
|
|
1073
|
+
p: o.prefix,
|
|
1074
|
+
v: Number(e.getAverage(l)),
|
|
1075
|
+
s: o.suffix,
|
|
1076
|
+
r: o.decimals
|
|
1033
1077
|
})), 1)) : b("", !0)
|
|
1034
1078
|
], 6))), 128))
|
|
1035
1079
|
]),
|
|
1036
1080
|
a("tr", null, [
|
|
1037
|
-
t[
|
|
1038
|
-
(c(!0), u(
|
|
1039
|
-
key: `thead_${
|
|
1040
|
-
class:
|
|
1081
|
+
t[36] || (t[36] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1082
|
+
(c(!0), u(p, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1083
|
+
key: `thead_${l}`,
|
|
1084
|
+
class: C({ "th-has-nan": s.hasNaN[l] }),
|
|
1041
1085
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1042
1086
|
}, [
|
|
1043
|
-
a("div",
|
|
1044
|
-
|
|
1045
|
-
a("div",
|
|
1046
|
-
a("div",
|
|
1087
|
+
a("div", ke, [
|
|
1088
|
+
o.type === s.constants.DATE && s.dates[l] ? (c(), u("div", Oe, [
|
|
1089
|
+
a("div", Le, [
|
|
1090
|
+
a("div", Se, [
|
|
1047
1091
|
a("label", {
|
|
1048
|
-
for: `from_${
|
|
1049
|
-
}, h(e.FINAL_CONFIG.translations.from), 9,
|
|
1092
|
+
for: `from_${l}`
|
|
1093
|
+
}, h(e.FINAL_CONFIG.translations.from), 9, Ae),
|
|
1050
1094
|
O(a("input", {
|
|
1051
|
-
id: `from_${
|
|
1095
|
+
id: `from_${l}`,
|
|
1052
1096
|
type: "date",
|
|
1053
|
-
"onUpdate:modelValue": (d) => s.dates[
|
|
1097
|
+
"onUpdate:modelValue": (d) => s.dates[l].from = d,
|
|
1054
1098
|
onInput: (d) => {
|
|
1055
|
-
e.filterBody(), e.setFilterDatesIndexes(
|
|
1099
|
+
e.filterBody(), e.setFilterDatesIndexes(l);
|
|
1056
1100
|
},
|
|
1057
1101
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1058
|
-
}, null, 44,
|
|
1059
|
-
[A, s.dates[
|
|
1102
|
+
}, null, 44, Me), [
|
|
1103
|
+
[A, s.dates[l].from]
|
|
1060
1104
|
])
|
|
1061
1105
|
]),
|
|
1062
|
-
a("div",
|
|
1106
|
+
a("div", Ge, [
|
|
1063
1107
|
a("label", {
|
|
1064
|
-
for: `to_${
|
|
1065
|
-
}, h(e.FINAL_CONFIG.translations.to), 9,
|
|
1108
|
+
for: `to_${l}`
|
|
1109
|
+
}, h(e.FINAL_CONFIG.translations.to), 9, xe),
|
|
1066
1110
|
O(a("input", {
|
|
1067
|
-
id: `to_${
|
|
1111
|
+
id: `to_${l}`,
|
|
1068
1112
|
type: "date",
|
|
1069
|
-
"onUpdate:modelValue": (d) => s.dates[
|
|
1113
|
+
"onUpdate:modelValue": (d) => s.dates[l].to = d,
|
|
1070
1114
|
onInput: (d) => {
|
|
1071
|
-
e.filterBody(), e.setFilterDatesIndexes(
|
|
1115
|
+
e.filterBody(), e.setFilterDatesIndexes(l);
|
|
1072
1116
|
},
|
|
1073
1117
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1074
1118
|
}, null, 44, De), [
|
|
1075
|
-
[A, s.dates[
|
|
1119
|
+
[A, s.dates[l].to]
|
|
1076
1120
|
])
|
|
1077
1121
|
])
|
|
1078
1122
|
]),
|
|
1079
|
-
a("div",
|
|
1080
|
-
|
|
1123
|
+
a("div", Te, [
|
|
1124
|
+
o.isSort ? (c(), u("button", {
|
|
1081
1125
|
key: 0,
|
|
1082
|
-
onClick: (d) => e.sortTh(
|
|
1083
|
-
class:
|
|
1084
|
-
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[
|
|
1126
|
+
onClick: (d) => e.sortTh(l, d),
|
|
1127
|
+
class: C({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) }),
|
|
1128
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1085
1129
|
}, [
|
|
1086
|
-
s.sorts[
|
|
1130
|
+
s.sorts[l] === s.constants.ASC ? (c(), u("span", {
|
|
1087
1131
|
key: 0,
|
|
1088
|
-
innerHTML: [s.constants.DATE].includes(
|
|
1089
|
-
}, null, 8,
|
|
1132
|
+
innerHTML: [s.constants.DATE].includes(o.type) ? e.icons.sort09 : e.icons.sortAZ
|
|
1133
|
+
}, null, 8, Pe)) : s.sorts[l] === s.constants.DESC ? (c(), u("span", {
|
|
1090
1134
|
key: 1,
|
|
1091
|
-
innerHTML: [s.constants.DATE].includes(
|
|
1092
|
-
}, null, 8,
|
|
1135
|
+
innerHTML: [s.constants.DATE].includes(o.type) ? e.icons.sort90 : e.icons.sortZA
|
|
1136
|
+
}, null, 8, Be)) : (c(), u("span", {
|
|
1093
1137
|
key: 2,
|
|
1094
1138
|
innerHTML: e.icons.arrowSort
|
|
1095
|
-
}, null, 8,
|
|
1096
|
-
], 14,
|
|
1139
|
+
}, null, 8, He))
|
|
1140
|
+
], 14, Ee)) : b("", !0),
|
|
1097
1141
|
a("button", {
|
|
1098
1142
|
onClick: (d) => {
|
|
1099
|
-
e.resetDates(
|
|
1143
|
+
e.resetDates(l), e.resetFilter(l, o, d);
|
|
1100
1144
|
},
|
|
1101
|
-
disabled: !s.filteredDatesIndexes[
|
|
1145
|
+
disabled: !s.filteredDatesIndexes[l] && e.isResetDisabled(l, o),
|
|
1102
1146
|
class: "th-reset"
|
|
1103
|
-
}, " ✖ ", 8,
|
|
1147
|
+
}, " ✖ ", 8, Re)
|
|
1104
1148
|
])
|
|
1105
1149
|
])) : b("", !0),
|
|
1106
|
-
|
|
1150
|
+
o.isSearch ? O((c(), u("input", {
|
|
1107
1151
|
key: 1,
|
|
1108
1152
|
placeholder: e.FINAL_CONFIG.translations.inputPlaceholder,
|
|
1109
|
-
"onUpdate:modelValue": (d) => s.searches[
|
|
1153
|
+
"onUpdate:modelValue": (d) => s.searches[l] = d,
|
|
1110
1154
|
onInput: t[7] || (t[7] = (d) => e.debounce(e.filterBody, 400)),
|
|
1111
|
-
name: `search_${
|
|
1155
|
+
name: `search_${l}`,
|
|
1112
1156
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1113
|
-
}, null, 44,
|
|
1114
|
-
[A, s.searches[
|
|
1157
|
+
}, null, 44, ze)), [
|
|
1158
|
+
[A, s.searches[l]]
|
|
1115
1159
|
]) : b("", !0),
|
|
1116
|
-
!s.hasNaN[
|
|
1160
|
+
!s.hasNaN[l] && o.isSort && o.type !== s.constants.DATE ? (c(), u("button", {
|
|
1117
1161
|
key: 2,
|
|
1118
|
-
onClick: (d) => e.sortTh(
|
|
1119
|
-
class:
|
|
1120
|
-
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[
|
|
1162
|
+
onClick: (d) => e.sortTh(l, d),
|
|
1163
|
+
class: C({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) }),
|
|
1164
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[l]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1121
1165
|
}, [
|
|
1122
|
-
s.sorts[
|
|
1166
|
+
s.sorts[l] === s.constants.ASC ? (c(), u("span", {
|
|
1123
1167
|
key: 0,
|
|
1124
|
-
innerHTML: [s.constants.NUMERIC].includes(
|
|
1125
|
-
}, null, 8,
|
|
1168
|
+
innerHTML: [s.constants.NUMERIC].includes(o.type) ? e.icons.sort09 : e.icons.sortZA
|
|
1169
|
+
}, null, 8, Ve)) : s.sorts[l] === s.constants.DESC ? (c(), u("span", {
|
|
1126
1170
|
key: 1,
|
|
1127
|
-
innerHTML: [s.constants.NUMERIC].includes(
|
|
1128
|
-
}, null, 8,
|
|
1171
|
+
innerHTML: [s.constants.NUMERIC].includes(o.type) ? e.icons.sort90 : e.icons.sortAZ
|
|
1172
|
+
}, null, 8, Xe)) : (c(), u("span", {
|
|
1129
1173
|
key: 2,
|
|
1130
1174
|
innerHTML: e.icons.arrowSort
|
|
1131
|
-
}, null, 8,
|
|
1132
|
-
], 14,
|
|
1133
|
-
|
|
1175
|
+
}, null, 8, je))
|
|
1176
|
+
], 14, Ue)) : b("", !0),
|
|
1177
|
+
o.isMultiselect ? (c(), u("button", {
|
|
1134
1178
|
key: 3,
|
|
1135
|
-
onClick: (d) => e.toggleMultiselect(
|
|
1179
|
+
onClick: (d) => e.toggleMultiselect(l, o, d),
|
|
1136
1180
|
innerHTML: e.icons.filter,
|
|
1137
|
-
class:
|
|
1138
|
-
style: g(`background:${s.multiselects[
|
|
1139
|
-
}, null, 14,
|
|
1140
|
-
s.currentSelectionSpan.col ===
|
|
1181
|
+
class: C({ "th-button-active": s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length }),
|
|
1182
|
+
style: g(`background:${s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.multiselects[l] && s.multiselects[l].length !== e.getDropdownOptions(l).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1183
|
+
}, null, 14, Ye)) : b("", !0),
|
|
1184
|
+
s.currentSelectionSpan.col === l && e.canChart ? (c(), u("button", {
|
|
1141
1185
|
key: 4,
|
|
1142
1186
|
onClick: t[8] || (t[8] = (d) => s.showChart = !s.showChart),
|
|
1143
1187
|
innerHTML: e.icons.chart,
|
|
1144
|
-
class:
|
|
1188
|
+
class: C({ "th-button-active": s.showChart }),
|
|
1145
1189
|
style: g(`background:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1146
|
-
}, null, 14,
|
|
1147
|
-
|
|
1190
|
+
}, null, 14, We)) : b("", !0),
|
|
1191
|
+
o.rangeFilter && s.rangeFilters[l] && !s.hasNaN[l] ? (c(), u("div", Je, [
|
|
1148
1192
|
a("label", {
|
|
1149
|
-
for: `rangeMin${
|
|
1150
|
-
}, [...t[
|
|
1193
|
+
for: `rangeMin${l}`
|
|
1194
|
+
}, [...t[34] || (t[34] = [
|
|
1151
1195
|
a("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1152
|
-
|
|
1196
|
+
w(" min ", -1),
|
|
1153
1197
|
a("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1154
|
-
])], 8,
|
|
1198
|
+
])], 8, Ke),
|
|
1155
1199
|
O(a("input", {
|
|
1156
1200
|
type: "number",
|
|
1157
|
-
id: `rangeMin${
|
|
1158
|
-
max: s.immutableRangeFilters[
|
|
1159
|
-
min: s.immutableRangeFilters[
|
|
1160
|
-
"onUpdate:modelValue": (d) => s.rangeFilters[
|
|
1201
|
+
id: `rangeMin${l}`,
|
|
1202
|
+
max: s.immutableRangeFilters[l].max,
|
|
1203
|
+
min: s.immutableRangeFilters[l].min,
|
|
1204
|
+
"onUpdate:modelValue": (d) => s.rangeFilters[l].min = d,
|
|
1161
1205
|
onInput: t[9] || (t[9] = (d) => e.debounce(e.filterBody, 400)),
|
|
1162
1206
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1163
|
-
}, null, 44,
|
|
1207
|
+
}, null, 44, Ze), [
|
|
1164
1208
|
[
|
|
1165
1209
|
A,
|
|
1166
|
-
s.rangeFilters[
|
|
1210
|
+
s.rangeFilters[l].min,
|
|
1167
1211
|
void 0,
|
|
1168
1212
|
{ number: !0 }
|
|
1169
1213
|
]
|
|
1170
1214
|
]),
|
|
1171
1215
|
O(a("input", {
|
|
1172
1216
|
type: "number",
|
|
1173
|
-
id: `rangeMax${
|
|
1174
|
-
max: s.immutableRangeFilters[
|
|
1175
|
-
min: s.immutableRangeFilters[
|
|
1176
|
-
"onUpdate:modelValue": (d) => s.rangeFilters[
|
|
1217
|
+
id: `rangeMax${l}`,
|
|
1218
|
+
max: s.immutableRangeFilters[l].max,
|
|
1219
|
+
min: s.immutableRangeFilters[l].min,
|
|
1220
|
+
"onUpdate:modelValue": (d) => s.rangeFilters[l].max = d,
|
|
1177
1221
|
onInput: t[10] || (t[10] = (d) => e.debounce(e.filterBody, 400)),
|
|
1178
1222
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1179
|
-
}, null, 44,
|
|
1223
|
+
}, null, 44, qe), [
|
|
1180
1224
|
[
|
|
1181
1225
|
A,
|
|
1182
|
-
s.rangeFilters[
|
|
1226
|
+
s.rangeFilters[l].max,
|
|
1183
1227
|
void 0,
|
|
1184
1228
|
{ number: !0 }
|
|
1185
1229
|
]
|
|
1186
1230
|
]),
|
|
1187
1231
|
a("label", {
|
|
1188
|
-
for: `rangeMax${
|
|
1189
|
-
}, [...t[
|
|
1232
|
+
for: `rangeMax${l}`
|
|
1233
|
+
}, [...t[35] || (t[35] = [
|
|
1190
1234
|
a("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1191
|
-
|
|
1235
|
+
w(" max ", -1),
|
|
1192
1236
|
a("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1193
|
-
])], 8,
|
|
1237
|
+
])], 8, Qe)
|
|
1194
1238
|
])) : b("", !0),
|
|
1195
|
-
e.canResetColumn(
|
|
1239
|
+
e.canResetColumn(l, o) ? (c(), u("button", {
|
|
1196
1240
|
key: 6,
|
|
1197
|
-
onClick: (d) => e.resetFilter(
|
|
1198
|
-
disabled: e.isResetDisabled(
|
|
1241
|
+
onClick: (d) => e.resetFilter(l, o, d),
|
|
1242
|
+
disabled: e.isResetDisabled(l, o),
|
|
1199
1243
|
class: "th-reset"
|
|
1200
|
-
}, " ✖ ", 8,
|
|
1201
|
-
|
|
1244
|
+
}, " ✖ ", 8, $e)) : b("", !0),
|
|
1245
|
+
o.isMultiselect ? (c(), u("div", {
|
|
1202
1246
|
key: 7,
|
|
1203
1247
|
class: "th-dropdown",
|
|
1204
1248
|
"data-is-open": "false",
|
|
1205
|
-
id: `th_dropdown_${
|
|
1249
|
+
id: `th_dropdown_${l}`,
|
|
1206
1250
|
style: g(`background:${e.FINAL_CONFIG.style.dropdowns.backgroundColor};color:${e.FINAL_CONFIG.style.dropdowns.color}`)
|
|
1207
1251
|
}, [
|
|
1208
1252
|
a("button", {
|
|
1209
1253
|
class: "close-dropdown",
|
|
1210
|
-
onClick: (d) => e.toggleMultiselect(
|
|
1254
|
+
onClick: (d) => e.toggleMultiselect(l, o, d),
|
|
1211
1255
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
|
|
1212
|
-
}, " ✖ ", 12,
|
|
1213
|
-
(c(!0), u(
|
|
1256
|
+
}, " ✖ ", 12, tt),
|
|
1257
|
+
(c(!0), u(p, null, k(e.getDropdownOptions(l), (d, y) => (c(), u("span", {
|
|
1214
1258
|
class: "th-option",
|
|
1215
|
-
key: `th_option_${
|
|
1216
|
-
onClick: (
|
|
1259
|
+
key: `th_option_${l}_${y}`,
|
|
1260
|
+
onClick: (I) => e.selectDropdownOption(d, l),
|
|
1217
1261
|
onKeyup: [
|
|
1218
|
-
|
|
1219
|
-
|
|
1262
|
+
L((I) => e.selectDropdownOption(d, l), ["enter"]),
|
|
1263
|
+
L((I) => e.selectDropdownOption(d, l), ["space"])
|
|
1220
1264
|
],
|
|
1221
|
-
style: g(`opacity:${e.isDropdownOptionSelected(d,
|
|
1265
|
+
style: g(`opacity:${e.isDropdownOptionSelected(d, l) ? 1 : 0.5}`),
|
|
1222
1266
|
tabindex: "0"
|
|
1223
1267
|
}, [
|
|
1224
|
-
e.isDropdownOptionSelected(d,
|
|
1268
|
+
e.isDropdownOptionSelected(d, l) ? (c(), u("span", {
|
|
1225
1269
|
key: 0,
|
|
1226
1270
|
style: g(`color:${e.FINAL_CONFIG.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1227
1271
|
class: "th-icon-green"
|
|
@@ -1231,87 +1275,87 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1231
1275
|
class: "th-icon-red"
|
|
1232
1276
|
}, h(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1233
1277
|
a("span", null, h(d), 1)
|
|
1234
|
-
], 44,
|
|
1235
|
-
], 12,
|
|
1278
|
+
], 44, st))), 128))
|
|
1279
|
+
], 12, et)) : b("", !0)
|
|
1236
1280
|
])
|
|
1237
1281
|
], 6))), 128))
|
|
1238
1282
|
])
|
|
1239
1283
|
], 64)) : b("", !0),
|
|
1240
1284
|
a("tr", null, [
|
|
1241
|
-
t[
|
|
1242
|
-
(c(!0), u(
|
|
1243
|
-
key: `col_selector_${
|
|
1244
|
-
class:
|
|
1245
|
-
style: g(`background:${
|
|
1285
|
+
t[37] || (t[37] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1286
|
+
(c(!0), u(p, null, k(s.tableHead, (o, l) => (c(), u("th", {
|
|
1287
|
+
key: `col_selector_${l}`,
|
|
1288
|
+
class: C({ "vue-ui-table-col-selector": !s.hasNaN[l], "th-has-nan": s.hasNaN[l] }),
|
|
1289
|
+
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}`)
|
|
1246
1290
|
}, [
|
|
1247
|
-
s.hasNaN[
|
|
1291
|
+
s.hasNaN[l] ? b("", !0) : (c(), u("div", {
|
|
1248
1292
|
key: 0,
|
|
1249
|
-
innerHTML: s.tableHead[
|
|
1250
|
-
class:
|
|
1293
|
+
innerHTML: s.tableHead[l].type === s.constants.NUMERIC ? e.icons.chevronDown : "",
|
|
1294
|
+
class: C({ "col-selector": s.tableHead[l].type === s.constants.NUMERIC }),
|
|
1251
1295
|
tabindex: "0",
|
|
1252
|
-
onClick:
|
|
1253
|
-
onKeyup:
|
|
1254
|
-
}, null, 42,
|
|
1296
|
+
onClick: S((d) => e.selectColumn(l), ["stop"]),
|
|
1297
|
+
onKeyup: L((d) => e.selectColumn(l), ["enter"])
|
|
1298
|
+
}, null, 42, nt))
|
|
1255
1299
|
], 6))), 128))
|
|
1256
1300
|
])
|
|
1257
1301
|
], 4),
|
|
1258
1302
|
a("tbody", {
|
|
1259
|
-
onClick: t[11] || (t[11] = (...
|
|
1260
|
-
onKeydown: t[12] || (t[12] = (
|
|
1303
|
+
onClick: t[11] || (t[11] = (...o) => e.closeAllDropdowns && e.closeAllDropdowns(...o)),
|
|
1304
|
+
onKeydown: t[12] || (t[12] = (o) => e.navigateCell(o))
|
|
1261
1305
|
}, [
|
|
1262
|
-
(c(!0), u(
|
|
1263
|
-
key: `tbody_${
|
|
1264
|
-
"data-row":
|
|
1265
|
-
class:
|
|
1266
|
-
style: g(`${
|
|
1306
|
+
(c(!0), u(p, null, k(e.visibleRows, (o, l) => (c(), u("tr", {
|
|
1307
|
+
key: `tbody_${l}`,
|
|
1308
|
+
"data-row": l % 2 === 0 ? "odd" : "even",
|
|
1309
|
+
class: C(`tr_${s.uid}`),
|
|
1310
|
+
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}`}`)
|
|
1267
1311
|
}, [
|
|
1268
1312
|
a("td", {
|
|
1269
1313
|
class: "vue-ui-table-td-iteration",
|
|
1270
|
-
"data-row":
|
|
1271
|
-
}, h(
|
|
1272
|
-
(c(!0), u(
|
|
1273
|
-
"data-row":
|
|
1274
|
-
key: `td_${
|
|
1314
|
+
"data-row": l % 2 === 0 ? "odd" : "even"
|
|
1315
|
+
}, h(o.absoluteIndex + 1), 9, lt),
|
|
1316
|
+
(c(!0), u(p, null, k(o.td, (d, y) => (c(), u("td", {
|
|
1317
|
+
"data-row": l % 2 === 0 ? "odd" : "even",
|
|
1318
|
+
key: `td_${l}_${y}`,
|
|
1275
1319
|
style: g(e.isNumeric(d) || r.dataset.header[y].type === s.constants.DATE ? "text-align:right;font-variant-numeric: tabular-nums;" : ""),
|
|
1276
|
-
onClick: (
|
|
1320
|
+
onClick: (I) => e.selectTd({
|
|
1277
1321
|
td: d,
|
|
1278
|
-
rowIndex:
|
|
1322
|
+
rowIndex: l,
|
|
1279
1323
|
colIndex: y,
|
|
1280
1324
|
headerType: r.dataset.header[y].type,
|
|
1281
|
-
event:
|
|
1325
|
+
event: I
|
|
1282
1326
|
}),
|
|
1283
1327
|
onKeyup: [
|
|
1284
|
-
|
|
1328
|
+
L((I) => e.selectTd({
|
|
1285
1329
|
td: d,
|
|
1286
|
-
rowIndex:
|
|
1330
|
+
rowIndex: l,
|
|
1287
1331
|
colIndex: y,
|
|
1288
1332
|
headerType: r.dataset.header[y].type,
|
|
1289
|
-
event:
|
|
1333
|
+
event: I
|
|
1290
1334
|
}), ["enter"]),
|
|
1291
|
-
|
|
1335
|
+
L((I) => e.selectTd({
|
|
1292
1336
|
td: d,
|
|
1293
|
-
rowIndex:
|
|
1337
|
+
rowIndex: l,
|
|
1294
1338
|
colIndex: y,
|
|
1295
1339
|
headerType: r.dataset.header[y].type,
|
|
1296
|
-
event:
|
|
1340
|
+
event: I
|
|
1297
1341
|
}), ["space"])
|
|
1298
1342
|
],
|
|
1299
|
-
class:
|
|
1300
|
-
id: `cell_${
|
|
1343
|
+
class: C({ "td-numeric": r.dataset.header[y].type === s.constants.NUMERIC, "td-focusable": !0, "td-has-nan": s.hasNaN[y] }),
|
|
1344
|
+
id: `cell_${l}_${y}_${s.uid}`,
|
|
1301
1345
|
tabindex: "0"
|
|
1302
1346
|
}, [
|
|
1303
|
-
|
|
1347
|
+
o.meta && o.meta.markerIndices.includes(y) && o.meta.unicodeIcon ? (c(), u("span", {
|
|
1304
1348
|
key: 0,
|
|
1305
|
-
style: g(`color:${
|
|
1306
|
-
innerHTML:
|
|
1307
|
-
}, null, 12,
|
|
1308
|
-
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span",
|
|
1349
|
+
style: g(`color:${o.meta.color};margin-right:3px`),
|
|
1350
|
+
innerHTML: o.meta.unicodeIcon
|
|
1351
|
+
}, null, 12, at)) : b("", !0),
|
|
1352
|
+
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span", it, 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", ct, h(e.dataLabel({
|
|
1309
1353
|
v: Number(d * 100),
|
|
1310
1354
|
s: "%",
|
|
1311
1355
|
r: r.dataset.header[y].decimals
|
|
1312
1356
|
})), 1)) : s.percentages[y] && r.dataset.header[y].percentageTo && !r.dataset.header[y].isPercentage ? (c(), u("span", {
|
|
1313
1357
|
key: 3,
|
|
1314
|
-
class:
|
|
1358
|
+
class: C({ "td-nan": isNaN(Number(d)) })
|
|
1315
1359
|
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1316
1360
|
p: r.dataset.header[y].prefix,
|
|
1317
1361
|
v: Number(d),
|
|
@@ -1323,69 +1367,69 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1323
1367
|
r: r.dataset.header[y].decimals
|
|
1324
1368
|
})) + ") ", 3)) : r.dataset.header[y].type === s.constants.NUMERIC ? (c(), u("span", {
|
|
1325
1369
|
key: 4,
|
|
1326
|
-
class:
|
|
1370
|
+
class: C({ "td-nan": isNaN(Number(d)) })
|
|
1327
1371
|
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1328
1372
|
p: r.dataset.header[y].prefix,
|
|
1329
1373
|
v: Number(d.toFixed(r.dataset.header[y].decimals)),
|
|
1330
1374
|
s: r.dataset.header[y].suffix,
|
|
1331
1375
|
r: r.dataset.header[y].decimals
|
|
1332
|
-
})), 3)) : (c(), u("span",
|
|
1333
|
-
], 46,
|
|
1334
|
-
], 14,
|
|
1376
|
+
})), 3)) : (c(), u("span", ut, h(r.dataset.header[y].prefix) + " " + h(d) + " " + h(r.dataset.header[y].suffix), 1))
|
|
1377
|
+
], 46, ot))), 128))
|
|
1378
|
+
], 14, rt))), 128))
|
|
1335
1379
|
], 32)
|
|
1336
1380
|
])
|
|
1337
1381
|
], 4),
|
|
1338
1382
|
a("div", {
|
|
1339
|
-
class:
|
|
1383
|
+
class: C({ "td-selector-info": !0, "td-selector-info--active": s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length }),
|
|
1340
1384
|
style: g(`background:${e.FINAL_CONFIG.style.infoBar.backgroundColor};color:${e.FINAL_CONFIG.style.infoBar.color}`)
|
|
1341
1385
|
}, [
|
|
1342
|
-
s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length ? (c(), u(
|
|
1386
|
+
s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length ? (c(), u(p, { key: 0 }, [
|
|
1343
1387
|
a("div", {
|
|
1344
1388
|
innerHTML: e.icons.table,
|
|
1345
1389
|
class: "td-selector-icon"
|
|
1346
|
-
}, null, 8,
|
|
1390
|
+
}, null, 8, ht),
|
|
1347
1391
|
a("span", null, [
|
|
1348
1392
|
a("b", null, [
|
|
1349
|
-
|
|
1350
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span",
|
|
1351
|
-
]),
|
|
1352
|
-
a("span", ht, [
|
|
1353
|
-
v(h(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1354
|
-
a("b", dt, h(s.currentSelectionSpan.rows.length), 1)
|
|
1393
|
+
w(h(r.dataset.header[s.currentSelectionSpan.col].name) + " ", 1),
|
|
1394
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span", dt, " / " + h(r.dataset.header[s.percentages[s.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
|
|
1355
1395
|
]),
|
|
1356
1396
|
a("span", gt, [
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1397
|
+
w(h(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1398
|
+
a("b", mt, h(s.currentSelectionSpan.rows.length), 1)
|
|
1399
|
+
]),
|
|
1400
|
+
a("span", yt, [
|
|
1401
|
+
w(h(e.FINAL_CONFIG.translations.sum) + " : ", 1),
|
|
1402
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", bt, h(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", ft, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.sumRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1403
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Nt, "%")) : b("", !0)
|
|
1360
1404
|
]),
|
|
1361
|
-
a("span",
|
|
1362
|
-
|
|
1363
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b",
|
|
1364
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b",
|
|
1405
|
+
a("span", pt, [
|
|
1406
|
+
w(h(e.FINAL_CONFIG.translations.average) + " : ", 1),
|
|
1407
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Ct, h(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", It, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.averageRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1408
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Ft, "%")) : b("", !0)
|
|
1365
1409
|
])
|
|
1366
1410
|
]),
|
|
1367
1411
|
a("button", {
|
|
1368
|
-
onClick: t[13] || (t[13] = (...
|
|
1412
|
+
onClick: t[13] || (t[13] = (...o) => e.resetSelection && e.resetSelection(...o)),
|
|
1369
1413
|
class: "td-selector-info-reset",
|
|
1370
1414
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
1371
1415
|
}, " ✖ ", 4)
|
|
1372
1416
|
], 64)) : b("", !0)
|
|
1373
1417
|
], 6),
|
|
1374
|
-
s.bodyCopy.length > 10 ? (c(), u("div",
|
|
1375
|
-
|
|
1418
|
+
s.bodyCopy.length > 10 ? (c(), u("div", vt, [
|
|
1419
|
+
w(h(e.FINAL_CONFIG.translations.totalRows) + " : " + h(r.dataset.body.length) + " | " + h(e.FINAL_CONFIG.translations.paginatorLabel) + " : ", 1),
|
|
1376
1420
|
s.bodyCopy.length > 10 ? O((c(), u("select", {
|
|
1377
1421
|
key: 0,
|
|
1378
1422
|
id: "paginatorSelector",
|
|
1379
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
1380
|
-
onChange: t[15] || (t[15] = (
|
|
1423
|
+
"onUpdate:modelValue": t[14] || (t[14] = (o) => s.itemsPerPage = o),
|
|
1424
|
+
onChange: t[15] || (t[15] = (o) => {
|
|
1381
1425
|
e.resetSelection(), e.onPageChange();
|
|
1382
1426
|
}),
|
|
1383
1427
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1384
1428
|
}, [
|
|
1385
|
-
(c(!0), u(
|
|
1386
|
-
s.bodyCopy.length >
|
|
1387
|
-
key: `paginator_option_${
|
|
1388
|
-
}, h(
|
|
1429
|
+
(c(!0), u(p, null, k(s.paginatorOptions, (o, l) => (c(), u(p, null, [
|
|
1430
|
+
s.bodyCopy.length > o || r.dataset.body.length === o ? (c(), u("option", {
|
|
1431
|
+
key: `paginator_option_${l}`
|
|
1432
|
+
}, h(o), 1)) : b("", !0)
|
|
1389
1433
|
], 64))), 256))
|
|
1390
1434
|
], 36)), [
|
|
1391
1435
|
[
|
|
@@ -1396,34 +1440,34 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1396
1440
|
]
|
|
1397
1441
|
]) : b("", !0)
|
|
1398
1442
|
])) : b("", !0),
|
|
1399
|
-
s.itemsPerPage >= 250 ? (c(), u("div",
|
|
1443
|
+
s.itemsPerPage >= 250 ? (c(), u("div", wt, [
|
|
1400
1444
|
a("span", {
|
|
1401
1445
|
innerHTML: e.icons.warning
|
|
1402
|
-
}, null, 8,
|
|
1403
|
-
|
|
1446
|
+
}, null, 8, _t),
|
|
1447
|
+
w(h(e.FINAL_CONFIG.translations.sizeWarning), 1)
|
|
1404
1448
|
])) : b("", !0),
|
|
1405
1449
|
e.pages.length > 1 && e.pages.length <= 10 ? (c(), u("div", {
|
|
1406
1450
|
key: 3,
|
|
1407
1451
|
class: "vue-ui-table-navigation-indicator",
|
|
1408
1452
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${s.currentPage / (e.pages.length - 1) * 100}%)`)
|
|
1409
1453
|
}, null, 4)) : b("", !0),
|
|
1410
|
-
e.pages.length > 1 ? (c(), u("div",
|
|
1454
|
+
e.pages.length > 1 ? (c(), u("div", kt, [
|
|
1411
1455
|
a("button", {
|
|
1412
1456
|
class: "vue-ui-table-navigation",
|
|
1413
|
-
onClick: t[16] || (t[16] =
|
|
1457
|
+
onClick: t[16] || (t[16] = S((o) => e.navigate("previous"), ["stop"])),
|
|
1414
1458
|
innerHTML: e.icons.chevronLeft,
|
|
1415
1459
|
disabled: s.currentPage === 0,
|
|
1416
1460
|
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}`)
|
|
1417
|
-
}, null, 12,
|
|
1418
|
-
e.pages.length > 3 ? (c(), u(
|
|
1461
|
+
}, null, 12, Ot),
|
|
1462
|
+
e.pages.length > 3 ? (c(), u(p, { key: 0 }, [
|
|
1419
1463
|
a("button", {
|
|
1420
1464
|
class: "vue-ui-table-navigation",
|
|
1421
|
-
onClick: t[17] || (t[17] =
|
|
1465
|
+
onClick: t[17] || (t[17] = S((o) => e.navigate(1), ["stop"])),
|
|
1422
1466
|
disabled: s.currentPage === 0,
|
|
1423
1467
|
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}`)
|
|
1424
|
-
}, " 1 ", 12,
|
|
1425
|
-
e.pages.length > 10 ? (c(), u("div",
|
|
1426
|
-
a("label",
|
|
1468
|
+
}, " 1 ", 12, Lt),
|
|
1469
|
+
e.pages.length > 10 ? (c(), u("div", St, [
|
|
1470
|
+
a("label", At, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1),
|
|
1427
1471
|
a("input", {
|
|
1428
1472
|
class: "vue-ui-table-page-scroller",
|
|
1429
1473
|
id: "pageScroller",
|
|
@@ -1431,23 +1475,23 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1431
1475
|
step: "1",
|
|
1432
1476
|
min: 0,
|
|
1433
1477
|
max: e.pages.length - 1,
|
|
1434
|
-
onInput: t[18] || (t[18] = (
|
|
1478
|
+
onInput: t[18] || (t[18] = (o) => e.updateCurrentPage(o)),
|
|
1435
1479
|
value: s.currentPage,
|
|
1436
1480
|
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}`)
|
|
1437
|
-
}, null, 44,
|
|
1438
|
-
])) : (c(), u("span",
|
|
1481
|
+
}, null, 44, Mt)
|
|
1482
|
+
])) : (c(), u("span", Gt, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)),
|
|
1439
1483
|
a("button", {
|
|
1440
1484
|
class: "vue-ui-table-navigation",
|
|
1441
|
-
onClick: t[19] || (t[19] =
|
|
1485
|
+
onClick: t[19] || (t[19] = S((o) => e.navigate(e.pages.length), ["stop"])),
|
|
1442
1486
|
disabled: s.currentPage === e.pages.length - 1,
|
|
1443
1487
|
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}`)
|
|
1444
|
-
}, h(e.pages.length), 13,
|
|
1445
|
-
], 64)) : (c(), u(
|
|
1446
|
-
|
|
1488
|
+
}, h(e.pages.length), 13, xt)
|
|
1489
|
+
], 64)) : (c(), u(p, { key: 1 }, [
|
|
1490
|
+
w(h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)
|
|
1447
1491
|
], 64)),
|
|
1448
1492
|
a("button", {
|
|
1449
1493
|
class: "vue-ui-table-navigation",
|
|
1450
|
-
onClick: t[20] || (t[20] =
|
|
1494
|
+
onClick: t[20] || (t[20] = S((o) => e.navigate("next"), ["stop"])),
|
|
1451
1495
|
innerHTML: e.icons.chevronRight,
|
|
1452
1496
|
disabled: s.currentPage === e.pages.length - 1,
|
|
1453
1497
|
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}`)
|
|
@@ -1460,103 +1504,103 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1460
1504
|
}, [
|
|
1461
1505
|
a("div", {
|
|
1462
1506
|
class: "modal-drag-handle",
|
|
1463
|
-
onMousedown: t[22] || (t[22] = (...
|
|
1507
|
+
onMousedown: t[22] || (t[22] = (...o) => e.dragMouseDown && e.dragMouseDown(...o))
|
|
1464
1508
|
}, [
|
|
1465
1509
|
a("span", {
|
|
1466
1510
|
innerHTML: e.icons.grip
|
|
1467
|
-
}, null, 8,
|
|
1511
|
+
}, null, 8, Tt),
|
|
1468
1512
|
a("button", {
|
|
1469
1513
|
class: "close-chart-modal",
|
|
1470
|
-
onClick: t[21] || (t[21] = (
|
|
1514
|
+
onClick: t[21] || (t[21] = (o) => s.showChart = !1)
|
|
1471
1515
|
}, "✖")
|
|
1472
1516
|
], 32),
|
|
1473
1517
|
a("button", {
|
|
1474
1518
|
style: g([{ "z-index": "1" }, `background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`]),
|
|
1475
1519
|
class: "close-chart-modal",
|
|
1476
|
-
onClick: t[23] || (t[23] = (
|
|
1520
|
+
onClick: t[23] || (t[23] = (o) => s.showChart = !1)
|
|
1477
1521
|
}, " ✖ ", 4),
|
|
1478
|
-
a("div",
|
|
1522
|
+
a("div", Et, [
|
|
1479
1523
|
e.availableDonutCategories.length ? (c(), u("button", {
|
|
1480
1524
|
key: 0,
|
|
1481
|
-
onClick: t[24] || (t[24] = (
|
|
1525
|
+
onClick: t[24] || (t[24] = (o) => s.showDonutOptions = !0),
|
|
1482
1526
|
innerHTML: e.icons.donut,
|
|
1483
|
-
class:
|
|
1527
|
+
class: C({ "is-active-chart": s.chart.type === s.constants.DONUT || s.showDonutOptions }),
|
|
1484
1528
|
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}`)
|
|
1485
|
-
}, null, 14,
|
|
1529
|
+
}, null, 14, Pt)) : b("", !0),
|
|
1486
1530
|
a("button", {
|
|
1487
|
-
onClick: t[25] || (t[25] = (
|
|
1531
|
+
onClick: t[25] || (t[25] = (o) => {
|
|
1488
1532
|
s.chart.type = s.constants.LINE, s.showDonutOptions = !1;
|
|
1489
1533
|
}),
|
|
1490
1534
|
innerHTML: e.icons.chart,
|
|
1491
|
-
class:
|
|
1535
|
+
class: C({ "is-active-chart": s.chart.type === s.constants.LINE && !s.showDonutOptions }),
|
|
1492
1536
|
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}`)
|
|
1493
|
-
}, null, 14,
|
|
1537
|
+
}, null, 14, Bt),
|
|
1494
1538
|
a("button", {
|
|
1495
|
-
onClick: t[26] || (t[26] = (
|
|
1539
|
+
onClick: t[26] || (t[26] = (o) => {
|
|
1496
1540
|
s.chart.type = s.constants.BAR, s.showDonutOptions = !1;
|
|
1497
1541
|
}),
|
|
1498
1542
|
innerHTML: e.icons.bar,
|
|
1499
|
-
class:
|
|
1543
|
+
class: C({ "is-active-chart": s.chart.type === s.constants.BAR && !s.showDonutOptions }),
|
|
1500
1544
|
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}`)
|
|
1501
|
-
}, null, 14,
|
|
1545
|
+
}, null, 14, Ht)
|
|
1502
1546
|
]),
|
|
1503
|
-
a("div",
|
|
1547
|
+
a("div", Rt, [
|
|
1504
1548
|
s.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
|
|
1505
1549
|
key: 0,
|
|
1506
1550
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1507
1551
|
}, [
|
|
1508
|
-
a("fieldset",
|
|
1552
|
+
a("fieldset", zt, [
|
|
1509
1553
|
a("legend", null, h(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
|
|
1510
|
-
a("div",
|
|
1511
|
-
(c(!0), u(
|
|
1512
|
-
key: `donut_radio_${
|
|
1554
|
+
a("div", Ut, [
|
|
1555
|
+
(c(!0), u(p, null, k(e.availableDonutCategories, (o, l) => (c(), u("div", {
|
|
1556
|
+
key: `donut_radio_${l}`,
|
|
1513
1557
|
class: "vue-ui-table-fieldset-option"
|
|
1514
1558
|
}, [
|
|
1515
1559
|
a("input", {
|
|
1516
1560
|
type: "radio",
|
|
1517
|
-
name:
|
|
1518
|
-
id:
|
|
1519
|
-
checked: s.selectedDonutCategory &&
|
|
1520
|
-
onInput: (d) => s.selectedDonutCategory = e.availableDonutCategories[
|
|
1561
|
+
name: o.name,
|
|
1562
|
+
id: o.name,
|
|
1563
|
+
checked: s.selectedDonutCategory && o.name === s.selectedDonutCategory.name,
|
|
1564
|
+
onInput: (d) => s.selectedDonutCategory = e.availableDonutCategories[l],
|
|
1521
1565
|
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}`)
|
|
1522
|
-
}, null, 44,
|
|
1566
|
+
}, null, 44, Vt),
|
|
1523
1567
|
a("label", {
|
|
1524
|
-
for:
|
|
1525
|
-
}, h(
|
|
1568
|
+
for: o.name
|
|
1569
|
+
}, h(o.name), 9, Xt)
|
|
1526
1570
|
]))), 128))
|
|
1527
1571
|
]),
|
|
1528
1572
|
a("button", {
|
|
1529
1573
|
class: "vue-ui-table-generate-donut",
|
|
1530
1574
|
disabled: !s.selectedDonutCategory,
|
|
1531
|
-
onClick: t[27] || (t[27] = (...
|
|
1575
|
+
onClick: t[27] || (t[27] = (...o) => e.applyDonutOption && e.applyDonutOption(...o)),
|
|
1532
1576
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.color}`)
|
|
1533
1577
|
}, [
|
|
1534
1578
|
a("div", {
|
|
1535
1579
|
style: { "margin-bottom": "-3px" },
|
|
1536
1580
|
innerHTML: e.icons.donut
|
|
1537
|
-
}, null, 8,
|
|
1538
|
-
|
|
1539
|
-
], 12,
|
|
1581
|
+
}, null, 8, Yt),
|
|
1582
|
+
w(" " + h(e.FINAL_CONFIG.translations.makeDonut), 1)
|
|
1583
|
+
], 12, jt)
|
|
1540
1584
|
])
|
|
1541
1585
|
], 4)) : b("", !0),
|
|
1542
|
-
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(
|
|
1543
|
-
e.chartTimeLabelOptions.length > 1 ? (c(), u("label",
|
|
1544
|
-
|
|
1586
|
+
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(p, { key: 1 }, [
|
|
1587
|
+
e.chartTimeLabelOptions.length > 1 ? (c(), u("label", Wt, [
|
|
1588
|
+
w(h(e.FINAL_CONFIG.translations.xAxisLabels) + " ", 1),
|
|
1545
1589
|
O(a("select", {
|
|
1546
|
-
"onUpdate:modelValue": t[28] || (t[28] = (
|
|
1590
|
+
"onUpdate:modelValue": t[28] || (t[28] = (o) => s.chartTimeLabelSourceModel = o)
|
|
1547
1591
|
}, [
|
|
1548
|
-
(c(!0), u(
|
|
1592
|
+
(c(!0), u(p, null, k(e.chartTimeLabelOptions, (o) => (c(), u("option", null, h(o), 1))), 256))
|
|
1549
1593
|
], 512), [
|
|
1550
1594
|
[P, s.chartTimeLabelSourceModel]
|
|
1551
1595
|
])
|
|
1552
1596
|
])) : b("", !0),
|
|
1553
|
-
a("div",
|
|
1554
|
-
s.chart.type === s.constants.LINE ? (c(),
|
|
1597
|
+
a("div", Jt, [
|
|
1598
|
+
s.chart.type === s.constants.LINE ? (c(), B(f, {
|
|
1555
1599
|
key: `chart_line_${s.chartStep}`,
|
|
1556
1600
|
dataset: e.chartData.xyDatasetLine,
|
|
1557
1601
|
config: e.chartData.xyConfig
|
|
1558
1602
|
}, null, 8, ["dataset", "config"])) : b("", !0),
|
|
1559
|
-
s.chart.type === s.constants.BAR ? (c(),
|
|
1603
|
+
s.chart.type === s.constants.BAR ? (c(), B(f, {
|
|
1560
1604
|
key: `chart_bar_${s.chartStep}`,
|
|
1561
1605
|
dataset: e.chartData.xyDatasetBar,
|
|
1562
1606
|
config: e.chartData.xyConfig
|
|
@@ -1567,15 +1611,15 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1567
1611
|
class: "chart-trend",
|
|
1568
1612
|
style: g(`color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1569
1613
|
}, [
|
|
1570
|
-
t[
|
|
1571
|
-
|
|
1614
|
+
t[38] || (t[38] = a("span", null, "---", -1)),
|
|
1615
|
+
w(" Trend: " + h(e.dataLabel({
|
|
1572
1616
|
v: e.chartData.progression.trend * 100,
|
|
1573
1617
|
s: "%",
|
|
1574
1618
|
r: 1
|
|
1575
1619
|
})), 1)
|
|
1576
1620
|
], 4)) : b("", !0)
|
|
1577
1621
|
], 64)) : b("", !0),
|
|
1578
|
-
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div",
|
|
1622
|
+
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div", Kt, [
|
|
1579
1623
|
E(_, {
|
|
1580
1624
|
dataset: s.currentDonut,
|
|
1581
1625
|
config: e.chartData.donutConfig
|
|
@@ -1585,7 +1629,7 @@ function Jt(n, t, r, i, s, e) {
|
|
|
1585
1629
|
], 4)) : b("", !0)
|
|
1586
1630
|
], 4);
|
|
1587
1631
|
}
|
|
1588
|
-
const
|
|
1632
|
+
const ls = /* @__PURE__ */ re(le, [["render", Zt], ["__scopeId", "data-v-0b5e4eaf"]]);
|
|
1589
1633
|
export {
|
|
1590
|
-
|
|
1634
|
+
ls as default
|
|
1591
1635
|
};
|