vue-data-ui 3.1.7 → 3.1.9
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/{Arrow-BZ8rnWYn.js → Arrow-Bd2Nv1JR.js} +1 -1
- package/dist/{BaseDraggableDialog-Bdva4JFr.js → BaseDraggableDialog-DnDgu3fu.js} +2 -2
- package/dist/{BaseIcon-BCS8aIf4.js → BaseIcon-ClWpJKO3.js} +1 -1
- package/dist/{ColorPicker-DF6PDOhr.js → ColorPicker-CGqCY0f7.js} +2 -2
- package/dist/{DataTable-Ddu14t59.js → DataTable-BeFHXTQb.js} +2 -2
- package/dist/{Legend-C3I0iaLM.js → Legend-D_ryPoDQ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-LSG0MLRC.js → NonSvgPenAndPaper-C0fUFsd1.js} +3 -3
- package/dist/{PackageVersion-CtYY8jBZ.js → PackageVersion-nvqupdcz.js} +1 -1
- package/dist/{PenAndPaper-DtlEAsLw.js → PenAndPaper-CdK_W5h2.js} +3 -3
- package/dist/{Shape-B8Cdu8s1.js → Shape-g1_KwK3i.js} +1 -1
- package/dist/Slicer-BbsnAAIT.js +972 -0
- package/dist/{SparkTooltip-qMi3IzXb.js → SparkTooltip-BJY8zi7K.js} +1 -1
- package/dist/{Title-BUVvr0U8.js → Title-DCLc6TCZ.js} +1 -1
- package/dist/{Tooltip-VlJQQsYu.js → Tooltip-DI84H3Yz.js} +1 -1
- package/dist/{UserOptions-sSygisu3.js → UserOptions-2XI1AOh5.js} +2 -2
- package/dist/{dom-to-png-BqX4MBZN.js → dom-to-png-BbsbFKuu.js} +1 -1
- package/dist/{img-DN0--Lx6.js → img-DQnzQcOw.js} +1 -1
- package/dist/{index-BlRUhv0O.js → index-5vhIMiMJ.js} +123 -118
- package/dist/{pdf-Cm5HZB7J.js → pdf-BbD1z_VM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-wLT3gJAJ.js → useAutoSizeLabelsInsideViewbox-lO6KBU08.js} +1 -1
- package/dist/{useNestedProp-OxTlfHdh.js → useNestedProp-BBcJUXV-.js} +1 -1
- package/dist/{usePrinter-DR__HfSR.js → usePrinter-BxQRVOJV.js} +2 -2
- package/dist/{vue-data-ui-Ci8pH3va.js → vue-data-ui-CBSwx9_2.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-h-8AQQKD.js → vue-ui-3d-bar-DrVQXElH.js} +6 -6
- package/dist/{vue-ui-accordion-DejV6zJ2.js → vue-ui-accordion-CWkuC41h.js} +3 -3
- package/dist/{vue-ui-age-pyramid-yTcDoeqi.js → vue-ui-age-pyramid-hfNlu-eT.js} +6 -6
- package/dist/{vue-ui-annotator-HqsIz-FI.js → vue-ui-annotator-BdW7stIX.js} +2 -2
- package/dist/{vue-ui-bullet-Co4ZttnE.js → vue-ui-bullet-DH55M9hd.js} +7 -7
- package/dist/{vue-ui-candlestick-BQQR9K33.js → vue-ui-candlestick-BdCIu_3Z.js} +7 -7
- package/dist/{vue-ui-carousel-table-BzDik-6R.js → vue-ui-carousel-table-CYFqd5Do.js} +4 -4
- package/dist/{vue-ui-chestnut-5VG75w-T.js → vue-ui-chestnut-BAXJvE_P.js} +5 -5
- package/dist/{vue-ui-chord-5HE-ZTDA.js → vue-ui-chord-CZvpyXPS.js} +8 -8
- package/dist/{vue-ui-circle-pack-BVcr-3fG.js → vue-ui-circle-pack-DIrNW31y.js} +6 -6
- package/dist/{vue-ui-cursor-BDH4YPCA.js → vue-ui-cursor-DB5jBNc-.js} +2 -2
- package/dist/{vue-ui-dashboard-VtafJ36J.js → vue-ui-dashboard-NIsI1tyR.js} +67 -67
- package/dist/{vue-ui-digits-Bh5fmCge.js → vue-ui-digits-D1E8vS1U.js} +2 -2
- package/dist/{vue-ui-donut-PiILi3WQ.js → vue-ui-donut-Dcc640KU.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DVp2UID9.js → vue-ui-donut-evolution-FvABIk1B.js} +8 -8
- package/dist/{vue-ui-dumbbell-DIX_gcC_.js → vue-ui-dumbbell-DwR1pCUC.js} +7 -7
- package/dist/{vue-ui-flow-DY64szfV.js → vue-ui-flow-DAm9A_0v.js} +7 -7
- package/dist/{vue-ui-funnel-DnQFZe9P.js → vue-ui-funnel-CBzrS5BO.js} +6 -6
- package/dist/{vue-ui-galaxy-C0TCFGXT.js → vue-ui-galaxy-IJ_oreeF.js} +7 -7
- package/dist/{vue-ui-gauge-BNIAJlUC.js → vue-ui-gauge-o72yvW6N.js} +7 -7
- package/dist/{vue-ui-gizmo-BnHruhLB.js → vue-ui-gizmo-DfyGDDpf.js} +3 -3
- package/dist/{vue-ui-heatmap-CH_twICb.js → vue-ui-heatmap-BGCYDLeT.js} +7 -7
- package/dist/{vue-ui-history-plot-CtJrkyG8.js → vue-ui-history-plot-WM4e1JlT.js} +7 -7
- package/dist/{vue-ui-kpi-Co0app61.js → vue-ui-kpi-BcDpOVCW.js} +3 -3
- package/dist/{vue-ui-mini-loader-DXrdP_7p.js → vue-ui-mini-loader-pv8BRyQQ.js} +2 -2
- package/dist/{vue-ui-molecule-C2cNArDQ.js → vue-ui-molecule-D7oF0j_4.js} +5 -5
- package/dist/{vue-ui-mood-radar-BrLLsYz5.js → vue-ui-mood-radar-iPbyJzps.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DRysa4v_.js → vue-ui-nested-donuts-BLceuaiq.js} +9 -10
- package/dist/{vue-ui-onion-znQ-OGaR.js → vue-ui-onion-Dnf_fWQJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DIX2Hytk.js → vue-ui-parallel-coordinate-plot-DgqvrE6i.js} +8 -8
- package/dist/{vue-ui-quadrant-B4X5ePQQ.js → vue-ui-quadrant-B7_t3c1D.js} +8 -8
- package/dist/{vue-ui-quick-chart-Cm7iAsdB.js → vue-ui-quick-chart-QBNsaoSx.js} +606 -582
- package/dist/{vue-ui-radar-CMXnDLdC.js → vue-ui-radar-B5LY3bFz.js} +8 -8
- package/dist/{vue-ui-rating-wAMAKVA8.js → vue-ui-rating-M2LsJhF9.js} +2 -2
- package/dist/{vue-ui-relation-circle-snHKlhA3.js → vue-ui-relation-circle-BDgDf-UH.js} +7 -7
- package/dist/{vue-ui-ridgeline-Bx7_nnJ7.js → vue-ui-ridgeline-CF8EGKmN.js} +8 -8
- package/dist/{vue-ui-rings-BGTPLeaD.js → vue-ui-rings-CEf32Qd9.js} +8 -8
- package/dist/{vue-ui-scatter-D-rI3hK1.js → vue-ui-scatter-B1Aafuh6.js} +8 -8
- package/dist/{vue-ui-skeleton-B-6lN9xS.js → vue-ui-skeleton-DCf8RHTA.js} +3 -3
- package/dist/{vue-ui-smiley-DeLEE9m9.js → vue-ui-smiley-D9TyN2I4.js} +2 -2
- package/dist/{vue-ui-spark-trend-BvrboxYt.js → vue-ui-spark-trend-DcZNamSY.js} +3 -3
- package/dist/{vue-ui-sparkbar-nW5DeWC5.js → vue-ui-sparkbar-CNmySZRR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Isge2K7-.js → vue-ui-sparkgauge-Du3pqhHb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-ChSw4gHY.js → vue-ui-sparkhistogram-DY33-6pA.js} +4 -4
- package/dist/{vue-ui-sparkline-DH-VRt5o.js → vue-ui-sparkline-DQO2IGma.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-l45aaRR1.js → vue-ui-sparkstackbar-BHgX0FAK.js} +3 -3
- package/dist/{vue-ui-stackbar-ByVq83Og.js → vue-ui-stackbar-DTvmplPR.js} +9 -9
- package/dist/{vue-ui-strip-plot-CwooqV7G.js → vue-ui-strip-plot-CH3BNHOX.js} +7 -7
- package/dist/{vue-ui-table-BRPcCRq-.js → vue-ui-table-DmOi42QJ.js} +554 -520
- package/dist/{vue-ui-table-heatmap-CaAadUo0.js → vue-ui-table-heatmap-D0XRMZEF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bt7VtPKK.js → vue-ui-table-sparkline-SjzOqua1.js} +4 -4
- package/dist/{vue-ui-thermometer-B-CWjknr.js → vue-ui-thermometer-Dkb9wTy_.js} +7 -7
- package/dist/{vue-ui-timer-CxLcOKNv.js → vue-ui-timer-CeCAWDqf.js} +5 -5
- package/dist/{vue-ui-tiremarks-DYEZvwDv.js → vue-ui-tiremarks-B9XkzHFy.js} +6 -6
- package/dist/{vue-ui-treemap-CeuebtPa.js → vue-ui-treemap-BCcXO9kM.js} +8 -8
- package/dist/{vue-ui-vertical-bar-D8_txlgd.js → vue-ui-vertical-bar-CRtBBzYM.js} +9 -9
- package/dist/{vue-ui-waffle-B5Qe5PKA.js → vue-ui-waffle-DSNBPqTC.js} +8 -8
- package/dist/{vue-ui-wheel-CxpLOCGw.js → vue-ui-wheel-BXQK9I22.js} +6 -6
- package/dist/{vue-ui-word-cloud-DCoL3uD5.js → vue-ui-word-cloud-YLIzbhcv.js} +6 -6
- package/dist/{vue-ui-world-DmnwTNAv.js → vue-ui-world-eCTtZria.js} +6 -6
- package/dist/vue-ui-xy-C7u7xEoN.js +4507 -0
- package/dist/{vue-ui-xy-canvas-CJp0mlzr.js → vue-ui-xy-canvas-D_rqJLcT.js} +10 -10
- package/package.json +1 -1
- package/dist/Slicer-Bk01kWGC.js +0 -596
- package/dist/vue-ui-xy-CzdchisK.js +0 -4141
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { a9 as z, t as U, l as T, w as V, i as X, j, v as Y, A as W, e as J, F as K, u as Z, p as q } from "./index-5vhIMiMJ.js";
|
|
2
|
+
import Q from "./vue-ui-xy-C7u7xEoN.js";
|
|
3
|
+
import $ from "./vue-ui-donut-Dcc640KU.js";
|
|
4
|
+
import ee from "./BaseIcon-ClWpJKO3.js";
|
|
5
|
+
import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as d, createTextVNode as w, withDirectives as O, withKeys as S, withModifiers as L, vModelText as A, createVNode as E, Fragment as F, renderList as k, normalizeClass as N, vModelSelect as te, createBlock as P } from "vue";
|
|
6
|
+
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const ne = {
|
|
7
8
|
name: "vue-ui-table",
|
|
8
9
|
props: {
|
|
9
10
|
config: {
|
|
@@ -19,13 +20,13 @@ const se = {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
|
-
components: { VueUiXy:
|
|
23
|
+
components: { VueUiXy: Q, VueUiDonut: $, BaseIcon: ee },
|
|
23
24
|
emits: ["page-change"],
|
|
24
25
|
data() {
|
|
25
26
|
return {
|
|
26
27
|
uid: `vue-ui-table-${Math.random()}`,
|
|
27
|
-
bodyCopy: JSON.parse(JSON.stringify(this.dataset.body)).map((
|
|
28
|
-
...
|
|
28
|
+
bodyCopy: JSON.parse(JSON.stringify(this.dataset.body)).map((t, r) => ({
|
|
29
|
+
...t,
|
|
29
30
|
absoluteIndex: r
|
|
30
31
|
})),
|
|
31
32
|
buttonTimeout: null,
|
|
@@ -76,8 +77,8 @@ const se = {
|
|
|
76
77
|
isLoading: !1,
|
|
77
78
|
itemsPerPage: this.config.rowsPerPage ? this.config.rowsPerPage : 25,
|
|
78
79
|
multiselects: {},
|
|
79
|
-
paginatorOptions: [.../* @__PURE__ */ new Set([10, 25, 50, 100, 250, 500, this.config.rowsPerPage ? this.config.rowsPerPage : 25, this.dataset.body.length])].sort((
|
|
80
|
-
palette:
|
|
80
|
+
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),
|
|
81
|
+
palette: q,
|
|
81
82
|
percentages: {},
|
|
82
83
|
rafId: null,
|
|
83
84
|
rangeFilters: {},
|
|
@@ -88,27 +89,28 @@ const se = {
|
|
|
88
89
|
showChart: !1,
|
|
89
90
|
showDonutOptions: !1,
|
|
90
91
|
sorts: {},
|
|
91
|
-
tableBody: JSON.parse(JSON.stringify(this.dataset.body)).map((
|
|
92
|
-
...
|
|
92
|
+
tableBody: JSON.parse(JSON.stringify(this.dataset.body)).map((t, r) => ({
|
|
93
|
+
...t,
|
|
93
94
|
absoluteIndex: r
|
|
94
95
|
})),
|
|
95
|
-
tableHead: JSON.parse(JSON.stringify(this.dataset.header)).map((
|
|
96
|
-
average: Object.hasOwn(
|
|
97
|
-
decimals: Object.hasOwn(
|
|
98
|
-
isMultiselect: Object.hasOwn(
|
|
99
|
-
isPercentage: Object.hasOwn(
|
|
100
|
-
isSearch: Object.hasOwn(
|
|
101
|
-
isSort: Object.hasOwn(
|
|
102
|
-
name:
|
|
96
|
+
tableHead: JSON.parse(JSON.stringify(this.dataset.header)).map((t) => ({
|
|
97
|
+
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
98
|
+
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
99
|
+
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
100
|
+
isPercentage: Object.hasOwn(t, "isPercentage") ? t.isPercentage : !1,
|
|
101
|
+
isSearch: Object.hasOwn(t, "isSearch") ? t.isSearch : !1,
|
|
102
|
+
isSort: Object.hasOwn(t, "isSort") ? t.isSort : !1,
|
|
103
|
+
name: t.name,
|
|
103
104
|
// this attribute is mandatory
|
|
104
|
-
percentageTo: Object.hasOwn(
|
|
105
|
-
prefix: Object.hasOwn(
|
|
106
|
-
rangeFilter: Object.hasOwn(
|
|
107
|
-
suffix: Object.hasOwn(
|
|
108
|
-
sum: Object.hasOwn(
|
|
109
|
-
type:
|
|
105
|
+
percentageTo: Object.hasOwn(t, "percentageTo") ? t.percentageTo : void 0,
|
|
106
|
+
prefix: Object.hasOwn(t, "prefix") ? t.prefix : "",
|
|
107
|
+
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
108
|
+
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
109
|
+
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
110
|
+
type: t.type
|
|
110
111
|
// this attribute is mandatory
|
|
111
|
-
}))
|
|
112
|
+
})),
|
|
113
|
+
filename: ""
|
|
112
114
|
};
|
|
113
115
|
},
|
|
114
116
|
mounted() {
|
|
@@ -132,11 +134,17 @@ Provide an array of objects of type:
|
|
|
132
134
|
this.isLoading = !0, this.promiseWithAsyncFunction(this.prepareBodyCopy, () => {
|
|
133
135
|
this.$forceUpdate(), this.isLoading = !1;
|
|
134
136
|
}), document.addEventListener("keydown", (n) => {
|
|
135
|
-
const
|
|
136
|
-
(
|
|
137
|
-
});
|
|
137
|
+
const t = document.activeElement;
|
|
138
|
+
(t && Array.from(t.classList).includes("td-focusable") && n.key.includes("Arrow") || n.code === "Space") && n.preventDefault();
|
|
139
|
+
}), this.filename = this.FINAL_CONFIG.style.exportMenu.filename;
|
|
138
140
|
},
|
|
139
141
|
watch: {
|
|
142
|
+
isExportRequest: function(n) {
|
|
143
|
+
if (n) {
|
|
144
|
+
const t = this.$refs.filenameInputRef;
|
|
145
|
+
t && t.focus();
|
|
146
|
+
}
|
|
147
|
+
},
|
|
140
148
|
showChart: function(n) {
|
|
141
149
|
n && this.$nextTick(() => {
|
|
142
150
|
this.closeDragElement();
|
|
@@ -144,26 +152,26 @@ Provide an array of objects of type:
|
|
|
144
152
|
},
|
|
145
153
|
dataset: {
|
|
146
154
|
handler(n) {
|
|
147
|
-
this.isLoading = !0, this.bodyCopy = JSON.parse(JSON.stringify(n.body)).map((
|
|
148
|
-
...
|
|
155
|
+
this.isLoading = !0, this.bodyCopy = JSON.parse(JSON.stringify(n.body)).map((t, r) => ({
|
|
156
|
+
...t,
|
|
149
157
|
absoluteIndex: r
|
|
150
|
-
})), this.tableBody = JSON.parse(JSON.stringify(n.body)).map((
|
|
151
|
-
...
|
|
158
|
+
})), this.tableBody = JSON.parse(JSON.stringify(n.body)).map((t, r) => ({
|
|
159
|
+
...t,
|
|
152
160
|
absoluteIndex: r
|
|
153
|
-
})), this.tableHead = JSON.parse(JSON.stringify(n.header)).map((
|
|
154
|
-
average: Object.hasOwn(
|
|
155
|
-
decimals: Object.hasOwn(
|
|
156
|
-
isMultiselect: Object.hasOwn(
|
|
157
|
-
isPercentage: Object.hasOwn(
|
|
158
|
-
isSearch: Object.hasOwn(
|
|
159
|
-
isSort: Object.hasOwn(
|
|
160
|
-
name:
|
|
161
|
-
percentageTo: Object.hasOwn(
|
|
162
|
-
prefix: Object.hasOwn(
|
|
163
|
-
rangeFilter: Object.hasOwn(
|
|
164
|
-
suffix: Object.hasOwn(
|
|
165
|
-
sum: Object.hasOwn(
|
|
166
|
-
type:
|
|
161
|
+
})), this.tableHead = JSON.parse(JSON.stringify(n.header)).map((t) => ({
|
|
162
|
+
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
163
|
+
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
164
|
+
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
165
|
+
isPercentage: Object.hasOwn(t, "isPercentage") ? t.isPercentage : !1,
|
|
166
|
+
isSearch: Object.hasOwn(t, "isSearch") ? t.isSearch : !1,
|
|
167
|
+
isSort: Object.hasOwn(t, "isSort") ? t.isSort : !1,
|
|
168
|
+
name: t.name,
|
|
169
|
+
percentageTo: Object.hasOwn(t, "percentageTo") ? t.percentageTo : void 0,
|
|
170
|
+
prefix: Object.hasOwn(t, "prefix") ? t.prefix : "",
|
|
171
|
+
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
172
|
+
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
173
|
+
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
174
|
+
type: t.type
|
|
167
175
|
})), this.currentSelectionSpan = { col: void 0, rows: [] }, this.selectedColumn = void 0, this.itemsPerPage = this.config.rowsPerPage ? this.config.rowsPerPage : 25, this.percentages = {}, this.dates = {}, this.filteredDatesIndexes = {}, this.hasNaN = {}, this.immutableRangeFilters = {}, this.rangeFilters = {}, this.multiselects = {}, this.searches = {}, this.sorts = {}, this.showChart = !1, this.currentDonut = void 0, this.selectedDonutCategory = void 0, this.selectedPlot = void 0, this.showDonutOptions = !1, this.currentSelectionSpan.col = void 0, this.currentSelectionSpan.rows = [], this.promiseWithAsyncFunction(this.prepareBodyCopy, () => {
|
|
168
176
|
this.$forceUpdate(), this.updateCurrentPage(), this.isLoading = !1;
|
|
169
177
|
});
|
|
@@ -186,9 +194,9 @@ Provide an array of objects of type:
|
|
|
186
194
|
},
|
|
187
195
|
chartData() {
|
|
188
196
|
if (!this.canChart) return [];
|
|
189
|
-
const n = 316,
|
|
197
|
+
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}` : ""), l = this.dataset.header[this.currentSelectionSpan.col].prefix, o = this.dataset.header[this.currentSelectionSpan.col].suffix, h = [
|
|
190
198
|
{
|
|
191
|
-
name:
|
|
199
|
+
name: _,
|
|
192
200
|
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
193
201
|
type: "line",
|
|
194
202
|
useProgression: !0,
|
|
@@ -196,48 +204,48 @@ Provide an array of objects of type:
|
|
|
196
204
|
color: this.FINAL_CONFIG.style.chart.layout.line.stroke,
|
|
197
205
|
useArea: this.FINAL_CONFIG.style.chart.layout.line.useArea
|
|
198
206
|
}
|
|
199
|
-
],
|
|
207
|
+
], y = [
|
|
200
208
|
{
|
|
201
|
-
name:
|
|
209
|
+
name: _,
|
|
202
210
|
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
203
211
|
type: "bar",
|
|
204
212
|
useProgression: !0,
|
|
205
213
|
color: this.FINAL_CONFIG.style.chart.layout.bar.fill
|
|
206
214
|
}
|
|
207
|
-
],
|
|
215
|
+
], C = this.FINAL_CONFIG.style.chart.modal.backgroundColor, p = this.adaptColorToBackground(C), I = this.dataset.header[this.currentSelectionSpan.col].decimals, B = {
|
|
208
216
|
chart: {
|
|
209
|
-
backgroundColor:
|
|
210
|
-
color:
|
|
217
|
+
backgroundColor: C,
|
|
218
|
+
color: p,
|
|
211
219
|
labels: {
|
|
212
220
|
fontSize: 18,
|
|
213
|
-
prefix:
|
|
214
|
-
suffix:
|
|
221
|
+
prefix: l,
|
|
222
|
+
suffix: o
|
|
215
223
|
},
|
|
216
224
|
grid: {
|
|
217
|
-
stroke: T(
|
|
225
|
+
stroke: T(p, 0.5),
|
|
218
226
|
labels: {
|
|
219
|
-
color:
|
|
227
|
+
color: p,
|
|
220
228
|
xAxisLabels: { show: !1 }
|
|
221
229
|
}
|
|
222
230
|
},
|
|
223
231
|
highlighter: {
|
|
224
|
-
color:
|
|
232
|
+
color: p
|
|
225
233
|
},
|
|
226
234
|
legend: {
|
|
227
|
-
color:
|
|
235
|
+
color: p
|
|
228
236
|
},
|
|
229
237
|
title: {
|
|
230
|
-
text:
|
|
231
|
-
color:
|
|
238
|
+
text: _,
|
|
239
|
+
color: p,
|
|
232
240
|
fontSize: 18
|
|
233
241
|
},
|
|
234
242
|
tooltip: {
|
|
235
243
|
showTimeLabel: !1,
|
|
236
244
|
backgroundOpacity: 30,
|
|
237
|
-
color:
|
|
238
|
-
backgroundColor:
|
|
245
|
+
color: p,
|
|
246
|
+
backgroundColor: C,
|
|
239
247
|
showPercentage: !1,
|
|
240
|
-
roundingValue:
|
|
248
|
+
roundingValue: I
|
|
241
249
|
},
|
|
242
250
|
userOptions: {
|
|
243
251
|
position: "left",
|
|
@@ -253,8 +261,8 @@ Provide an array of objects of type:
|
|
|
253
261
|
line: {
|
|
254
262
|
labels: {
|
|
255
263
|
show: !0,
|
|
256
|
-
color:
|
|
257
|
-
rounding:
|
|
264
|
+
color: p,
|
|
265
|
+
rounding: I
|
|
258
266
|
},
|
|
259
267
|
dot: {
|
|
260
268
|
useSerieColor: !1,
|
|
@@ -271,13 +279,13 @@ Provide an array of objects of type:
|
|
|
271
279
|
},
|
|
272
280
|
labels: {
|
|
273
281
|
show: !0,
|
|
274
|
-
color:
|
|
275
|
-
rounding:
|
|
282
|
+
color: p,
|
|
283
|
+
rounding: I
|
|
276
284
|
}
|
|
277
285
|
}
|
|
278
|
-
},
|
|
279
|
-
x: i *
|
|
280
|
-
y: (1 - (v.value +
|
|
286
|
+
}, G = e >= 0 ? 0 : Math.abs(e), H = s + G, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, x = this.currentSelectionSpan.rows.map((v, R) => ({
|
|
287
|
+
x: i * R + i / 2,
|
|
288
|
+
y: (1 - (v.value + G) / H) * n,
|
|
281
289
|
value: M ? v.value * 100 : v.value,
|
|
282
290
|
suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
|
|
283
291
|
prefix: this.dataset.header[this.currentSelectionSpan.col].prefix ? this.dataset.header[this.currentSelectionSpan.col].prefix : "",
|
|
@@ -297,8 +305,8 @@ Provide an array of objects of type:
|
|
|
297
305
|
},
|
|
298
306
|
style: {
|
|
299
307
|
chart: {
|
|
300
|
-
backgroundColor:
|
|
301
|
-
color:
|
|
308
|
+
backgroundColor: C,
|
|
309
|
+
color: p,
|
|
302
310
|
layout: {
|
|
303
311
|
curvedMarkers: !0,
|
|
304
312
|
donut: {
|
|
@@ -307,32 +315,32 @@ Provide an array of objects of type:
|
|
|
307
315
|
labels: {
|
|
308
316
|
dataLabels: {
|
|
309
317
|
suffix: M ? "%" : "",
|
|
310
|
-
prefix:
|
|
318
|
+
prefix: l
|
|
311
319
|
},
|
|
312
320
|
value: {
|
|
313
|
-
rounding:
|
|
321
|
+
rounding: I
|
|
314
322
|
},
|
|
315
323
|
percentage: {
|
|
316
|
-
color:
|
|
317
|
-
rounding:
|
|
324
|
+
color: p,
|
|
325
|
+
rounding: I
|
|
318
326
|
},
|
|
319
327
|
name: {
|
|
320
|
-
color:
|
|
328
|
+
color: p
|
|
321
329
|
},
|
|
322
330
|
hollow: {
|
|
323
331
|
average: {
|
|
324
|
-
color:
|
|
332
|
+
color: p,
|
|
325
333
|
text: this.FINAL_CONFIG.translations.average,
|
|
326
334
|
value: {
|
|
327
|
-
color:
|
|
335
|
+
color: p
|
|
328
336
|
}
|
|
329
337
|
},
|
|
330
338
|
total: {
|
|
331
|
-
color:
|
|
339
|
+
color: p,
|
|
332
340
|
offsetY: -12,
|
|
333
341
|
text: this.FINAL_CONFIG.translations.total,
|
|
334
342
|
value: {
|
|
335
|
-
color:
|
|
343
|
+
color: p,
|
|
336
344
|
offsetY: -12
|
|
337
345
|
}
|
|
338
346
|
}
|
|
@@ -340,34 +348,34 @@ Provide an array of objects of type:
|
|
|
340
348
|
}
|
|
341
349
|
},
|
|
342
350
|
legend: {
|
|
343
|
-
backgroundColor:
|
|
344
|
-
color:
|
|
345
|
-
roundingValue:
|
|
346
|
-
roundingPercentage:
|
|
351
|
+
backgroundColor: C,
|
|
352
|
+
color: p,
|
|
353
|
+
roundingValue: I,
|
|
354
|
+
roundingPercentage: I
|
|
347
355
|
},
|
|
348
356
|
padding: {
|
|
349
357
|
left: 12,
|
|
350
358
|
right: 12
|
|
351
359
|
},
|
|
352
360
|
title: {
|
|
353
|
-
text:
|
|
354
|
-
color:
|
|
361
|
+
text: _,
|
|
362
|
+
color: p,
|
|
355
363
|
fontSize: 18
|
|
356
364
|
},
|
|
357
365
|
tooltip: {
|
|
358
366
|
backgroundOpacity: 30,
|
|
359
|
-
color:
|
|
360
|
-
backgroundColor:
|
|
361
|
-
roundingValue:
|
|
362
|
-
roundingValue:
|
|
367
|
+
color: p,
|
|
368
|
+
backgroundColor: C,
|
|
369
|
+
roundingValue: I,
|
|
370
|
+
roundingValue: I
|
|
363
371
|
}
|
|
364
372
|
}
|
|
365
373
|
}
|
|
366
374
|
},
|
|
367
|
-
xyConfig:
|
|
368
|
-
xyDatasetLine:
|
|
369
|
-
xyDatasetBar:
|
|
370
|
-
progression:
|
|
375
|
+
xyConfig: B,
|
|
376
|
+
xyDatasetLine: h,
|
|
377
|
+
xyDatasetBar: y,
|
|
378
|
+
progression: x.length >= 2 ? this.calcLinearProgression(x) : !1
|
|
371
379
|
};
|
|
372
380
|
},
|
|
373
381
|
hasNumericTypes() {
|
|
@@ -399,8 +407,8 @@ Provide an array of objects of type:
|
|
|
399
407
|
pages() {
|
|
400
408
|
const n = [];
|
|
401
409
|
if (this.bodyCopy.length)
|
|
402
|
-
for (let
|
|
403
|
-
n.push(this.bodyCopy.slice(
|
|
410
|
+
for (let t = 0; t < this.bodyCopy.length; t += this.itemsPerPage)
|
|
411
|
+
n.push(this.bodyCopy.slice(t, t + this.itemsPerPage));
|
|
404
412
|
return n;
|
|
405
413
|
},
|
|
406
414
|
rows() {
|
|
@@ -408,21 +416,21 @@ Provide an array of objects of type:
|
|
|
408
416
|
},
|
|
409
417
|
selectedCellsCalculations() {
|
|
410
418
|
return {
|
|
411
|
-
sumPercentage: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n,
|
|
412
|
-
sumRegular: Number(this.currentSelectionSpan.rows.map((n) => n.value).reduce((n,
|
|
413
|
-
averagePercentage: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n,
|
|
414
|
-
averageRegular: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n,
|
|
419
|
+
sumPercentage: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n, t) => n + t, 0) * 100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),
|
|
420
|
+
sumRegular: Number(this.currentSelectionSpan.rows.map((n) => n.value).reduce((n, t) => n + t, 0).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),
|
|
421
|
+
averagePercentage: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n, t) => n + t, 0) / this.currentSelectionSpan.rows.length * 100).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString(),
|
|
422
|
+
averageRegular: Number((this.currentSelectionSpan.rows.map((n) => n.value).reduce((n, t) => n + t, 0) / this.currentSelectionSpan.rows.length).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString()
|
|
415
423
|
};
|
|
416
424
|
},
|
|
417
425
|
FINAL_CONFIG() {
|
|
418
|
-
const { vue_ui_table: n } =
|
|
426
|
+
const { vue_ui_table: n } = Z();
|
|
419
427
|
if (!Object.keys(this.config || {}).length)
|
|
420
428
|
return n;
|
|
421
|
-
const
|
|
429
|
+
const t = this.treeShake({
|
|
422
430
|
defaultConfig: n,
|
|
423
431
|
userConfig: this.config
|
|
424
432
|
});
|
|
425
|
-
return this.convertConfigColors(
|
|
433
|
+
return this.convertConfigColors(t);
|
|
426
434
|
},
|
|
427
435
|
visibleRows() {
|
|
428
436
|
return this.pages[this.currentPage];
|
|
@@ -430,124 +438,124 @@ Provide an array of objects of type:
|
|
|
430
438
|
},
|
|
431
439
|
methods: {
|
|
432
440
|
// lib
|
|
433
|
-
adaptColorToBackground:
|
|
434
|
-
convertColorToHex:
|
|
435
|
-
convertConfigColors:
|
|
436
|
-
createCsvContent:
|
|
437
|
-
darkenHexColor:
|
|
438
|
-
dataLabel:
|
|
439
|
-
downloadCsv:
|
|
441
|
+
adaptColorToBackground: K,
|
|
442
|
+
convertColorToHex: J,
|
|
443
|
+
convertConfigColors: W,
|
|
444
|
+
createCsvContent: Y,
|
|
445
|
+
darkenHexColor: j,
|
|
446
|
+
dataLabel: X,
|
|
447
|
+
downloadCsv: V,
|
|
440
448
|
lightenHexColor: T,
|
|
441
|
-
treeShake:
|
|
449
|
+
treeShake: U,
|
|
442
450
|
// specific
|
|
443
451
|
applyDonutOption() {
|
|
444
|
-
const n = this.selectedDonutCategory.options.map((
|
|
445
|
-
name:
|
|
452
|
+
const n = this.selectedDonutCategory.options.map((t, r) => ({
|
|
453
|
+
name: t,
|
|
446
454
|
color: this.palette[r] || this.palette[r % this.palette.length],
|
|
447
|
-
values: [this.visibleRows.filter((i,
|
|
448
|
-
absoluteValue: this.visibleRows.filter((i,
|
|
449
|
-
})).sort((
|
|
455
|
+
values: [this.visibleRows.filter((i, s) => i.td[this.selectedDonutCategory.index] === t && this.currentSelectionSpan.rows.map((e) => e.index).includes(s)).map((i) => i.td[this.currentSelectionSpan.col]).reduce((i, s) => Math.abs(i) + Math.abs(s), 0)],
|
|
456
|
+
absoluteValue: this.visibleRows.filter((i, s) => i.td[this.selectedDonutCategory.index] === t && this.currentSelectionSpan.rows.map((e) => e.index).includes(s)).map((i) => i.td[this.currentSelectionSpan.col]).reduce((i, s) => i + s, 0)
|
|
457
|
+
})).sort((t, r) => r.value - t.value);
|
|
450
458
|
this.currentDonut = n, this.$nextTick(() => {
|
|
451
459
|
this.chart.type = this.constants.DONUT, this.showDonutOptions = !1;
|
|
452
460
|
});
|
|
453
461
|
},
|
|
454
|
-
calcRectY(n,
|
|
455
|
-
return n >= 0 ?
|
|
462
|
+
calcRectY(n, t) {
|
|
463
|
+
return n >= 0 ? t : this.chartData.zero;
|
|
456
464
|
},
|
|
457
|
-
canResetColumn(n,
|
|
458
|
-
return !this.hasNaN[n] && (
|
|
465
|
+
canResetColumn(n, t) {
|
|
466
|
+
return !this.hasNaN[n] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![this.constants.DATE].includes(t.type);
|
|
459
467
|
},
|
|
460
468
|
createXls(n = "all") {
|
|
461
|
-
const
|
|
462
|
-
this.downloadCsv({ csvContent:
|
|
469
|
+
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);
|
|
470
|
+
this.downloadCsv({ csvContent: s, title: this.filename });
|
|
463
471
|
},
|
|
464
|
-
calcLinearProgression:
|
|
472
|
+
calcLinearProgression: z,
|
|
465
473
|
closeAllDropdowns() {
|
|
466
474
|
const n = document.getElementsByClassName("th-dropdown");
|
|
467
|
-
n.length && Array.from(n).forEach((
|
|
468
|
-
|
|
475
|
+
n.length && Array.from(n).forEach((t) => {
|
|
476
|
+
t.dataset.isOpen = !1;
|
|
469
477
|
});
|
|
470
478
|
},
|
|
471
|
-
debounce(n,
|
|
479
|
+
debounce(n, t) {
|
|
472
480
|
let r;
|
|
473
|
-
clearTimeout(r), r = setTimeout(n,
|
|
481
|
+
clearTimeout(r), r = setTimeout(n, t);
|
|
474
482
|
},
|
|
475
483
|
filterBody() {
|
|
476
484
|
this.bodyCopy = this.tableBody.filter((n) => {
|
|
477
|
-
for (const
|
|
478
|
-
if (!n.td[
|
|
485
|
+
for (const t in this.searches)
|
|
486
|
+
if (!n.td[t].toUpperCase().includes(this.searches[t].toUpperCase()))
|
|
479
487
|
return !1;
|
|
480
|
-
for (const
|
|
481
|
-
if (!this.multiselects[
|
|
488
|
+
for (const t in this.multiselects)
|
|
489
|
+
if (!this.multiselects[t].some((i) => i === n.td[t]))
|
|
482
490
|
return !1;
|
|
483
|
-
for (const
|
|
484
|
-
const r = new Date(n.td[
|
|
485
|
-
if (r < i || r >
|
|
491
|
+
for (const t in this.dates) {
|
|
492
|
+
const r = new Date(n.td[t]), i = new Date(this.dates[t].from), s = new Date(this.dates[t].to);
|
|
493
|
+
if (r < i || r > s)
|
|
486
494
|
return !1;
|
|
487
495
|
}
|
|
488
496
|
return !0;
|
|
489
497
|
}), this.sortBody();
|
|
490
498
|
},
|
|
491
499
|
getAverage(n) {
|
|
492
|
-
return this.rows.map((
|
|
500
|
+
return this.rows.map((t) => t[n]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, r) => t + r, 0) / this.bodyCopy.length;
|
|
493
501
|
},
|
|
494
502
|
getDatesRange(n) {
|
|
495
|
-
const
|
|
503
|
+
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"), l = String(i.getDate()).padStart(2, "0"), o = `${s}-${m}-${_}`, h = `${e}-${f}-${l}`;
|
|
496
504
|
return {
|
|
497
|
-
from:
|
|
498
|
-
to:
|
|
505
|
+
from: o,
|
|
506
|
+
to: h
|
|
499
507
|
};
|
|
500
508
|
},
|
|
501
509
|
getDonutLegendValue(n) {
|
|
502
510
|
return Number((n * (this.dataset.header[this.currentSelectionSpan.col].isPercentage ? 100 : 1)).toFixed(this.dataset.header[this.currentSelectionSpan.col].decimals)).toLocaleString();
|
|
503
511
|
},
|
|
504
512
|
getDropdownOptions(n) {
|
|
505
|
-
return [...new Set(this.dataset.body.map((
|
|
513
|
+
return [...new Set(this.dataset.body.map((t) => t.td[n]))];
|
|
506
514
|
},
|
|
507
515
|
getSum(n) {
|
|
508
|
-
return this.rows.map((
|
|
516
|
+
return this.rows.map((t) => t[n]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, r) => t + r, 0);
|
|
509
517
|
},
|
|
510
518
|
includesNaN(n) {
|
|
511
519
|
return n.includes(NaN);
|
|
512
520
|
},
|
|
513
|
-
isDropdownOptionSelected(n,
|
|
514
|
-
return this.multiselects[
|
|
521
|
+
isDropdownOptionSelected(n, t) {
|
|
522
|
+
return this.multiselects[t] ? this.multiselects[t].includes(n) : !0;
|
|
515
523
|
},
|
|
516
524
|
isNumeric(n) {
|
|
517
525
|
return !isNaN(Number(String(n).replaceAll("%", "")));
|
|
518
526
|
},
|
|
519
|
-
isResetDisabled(n,
|
|
520
|
-
const r =
|
|
527
|
+
isResetDisabled(n, t) {
|
|
528
|
+
const r = t.isSort, i = t.isSearch, s = t.isMultiselect && this.multiselects[n], e = t.rangeFilter, m = (f) => {
|
|
521
529
|
if (e && this.rangeFilters[f])
|
|
522
530
|
return Math.round(this.rangeFilters[f].min) === this.immutableRangeFilters[f].min && Math.round(this.rangeFilters[f].max) === this.immutableRangeFilters[f].max;
|
|
523
531
|
};
|
|
524
|
-
if (r && i &&
|
|
525
|
-
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length &&
|
|
526
|
-
if (r && i &&
|
|
532
|
+
if (r && i && s && e)
|
|
533
|
+
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && m(n);
|
|
534
|
+
if (r && i && s)
|
|
527
535
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
528
536
|
if (r && i && e)
|
|
529
|
-
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) &&
|
|
537
|
+
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && m(n);
|
|
530
538
|
if (r && i)
|
|
531
539
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]);
|
|
532
|
-
if (r &&
|
|
533
|
-
return [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length &&
|
|
534
|
-
if (r &&
|
|
540
|
+
if (r && s && e)
|
|
541
|
+
return [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && m(n);
|
|
542
|
+
if (r && s)
|
|
535
543
|
return [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
536
|
-
if (i &&
|
|
537
|
-
return ["", void 0].includes(this.searches[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length &&
|
|
538
|
-
if (i &&
|
|
544
|
+
if (i && s && e)
|
|
545
|
+
return ["", void 0].includes(this.searches[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && m(n);
|
|
546
|
+
if (i && s)
|
|
539
547
|
return ["", void 0].includes(this.searches[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
540
548
|
if (i && e)
|
|
541
|
-
return ["", void 0].includes(this.searches[n]) &&
|
|
549
|
+
return ["", void 0].includes(this.searches[n]) && m(n);
|
|
542
550
|
if (i)
|
|
543
551
|
return ["", void 0].includes(this.searches[n]);
|
|
544
552
|
if (r && e)
|
|
545
|
-
return [void 0].includes(this.sorts[n]) &&
|
|
553
|
+
return [void 0].includes(this.sorts[n]) && m(n);
|
|
546
554
|
if (r)
|
|
547
555
|
return [void 0].includes(this.sorts[n]);
|
|
548
|
-
if (
|
|
549
|
-
return this.multiselects[n].length === this.getDropdownOptions(n).length &&
|
|
550
|
-
if (
|
|
556
|
+
if (s && e)
|
|
557
|
+
return this.multiselects[n].length === this.getDropdownOptions(n).length && m(n);
|
|
558
|
+
if (s)
|
|
551
559
|
return this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
552
560
|
},
|
|
553
561
|
getCurrentPageData() {
|
|
@@ -581,80 +589,80 @@ Provide an array of objects of type:
|
|
|
581
589
|
},
|
|
582
590
|
navigateCell(n) {
|
|
583
591
|
n.preventDefault();
|
|
584
|
-
const
|
|
585
|
-
if (![r, i,
|
|
586
|
-
const
|
|
587
|
-
let
|
|
592
|
+
const t = n.keyCode, r = 38, i = 40, s = 37, e = 39;
|
|
593
|
+
if (![r, i, s, e].includes(t)) return;
|
|
594
|
+
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, _ = m.match(f), l = parseInt(_[1]), o = parseInt(_[2]), h = document.getElementById(`cell_${l}_${o + 1}_${this.uid}`), y = document.getElementById(`cell_${l}_${o - 1}_${this.uid}`), C = document.getElementById(`cell_${l + 1}_${o}_${this.uid}`), p = document.getElementById(`cell_${l - 1}_${o}_${this.uid}`);
|
|
595
|
+
let I;
|
|
588
596
|
switch (!0) {
|
|
589
|
-
case
|
|
590
|
-
|
|
597
|
+
case t === e:
|
|
598
|
+
I = h;
|
|
591
599
|
break;
|
|
592
|
-
case
|
|
593
|
-
|
|
600
|
+
case t === s:
|
|
601
|
+
I = y;
|
|
594
602
|
break;
|
|
595
|
-
case
|
|
596
|
-
|
|
603
|
+
case t === r:
|
|
604
|
+
I = p;
|
|
597
605
|
break;
|
|
598
|
-
case
|
|
599
|
-
|
|
606
|
+
case t === i:
|
|
607
|
+
I = C;
|
|
600
608
|
break;
|
|
601
609
|
default:
|
|
602
610
|
return;
|
|
603
611
|
}
|
|
604
|
-
|
|
612
|
+
I && (I.focus(), I.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
605
613
|
},
|
|
606
614
|
openDonutOptions() {
|
|
607
615
|
this.selectedDonutCategory = this.availableDonutCategories[0], this.showDonutOptions = !0;
|
|
608
616
|
},
|
|
609
|
-
placeLabelOnTopOrBottom({ previousPlot: n, currentPlot:
|
|
610
|
-
const i =
|
|
611
|
-
return n && r ? n.value <
|
|
617
|
+
placeLabelOnTopOrBottom({ previousPlot: n, currentPlot: t, nextPlot: r }) {
|
|
618
|
+
const i = t.y - 38, s = t.y + 16;
|
|
619
|
+
return n && r ? n.value < t.value && r.value < t.value ? i : n.value > t.value && r.value > t.value ? s : (n.value > t.value && r.value < t.value || n.value < t.value && r.value > t.value, i) : n && !r ? n.value > t.value ? s : i : !n && r && r.value > t.value ? s : i;
|
|
612
620
|
},
|
|
613
621
|
async prepareBodyCopy() {
|
|
614
622
|
return new Promise((n) => {
|
|
615
|
-
const
|
|
623
|
+
const t = [];
|
|
616
624
|
this.tableHead.forEach((r, i) => {
|
|
617
625
|
if (r.isSearch && Object.assign(this.searches, { [i]: "" }), r.isMultiselect && Object.assign(this.multiselects, { [i]: this.getDropdownOptions(i) }), r.type === this.constants.DATE && (Object.assign(this.dates, { [i]: this.getDatesRange(i) }), Object.assign(this.filteredDatesIndexes, { [i]: !1 })), (r.isPercentage || r.percentageTo) && Object.assign(this.percentages, {
|
|
618
626
|
[i]: {
|
|
619
627
|
reference: r.percentageTo,
|
|
620
|
-
referenceIndex: this.dataset.header.map((
|
|
628
|
+
referenceIndex: this.dataset.header.map((s) => s.name).indexOf(r.percentageTo)
|
|
621
629
|
}
|
|
622
630
|
}), r.rangeFilter && (Object.assign(this.rangeFilters, {
|
|
623
631
|
[i]: {
|
|
624
|
-
min: Math.round(Math.min(...this.dataset.body.map((
|
|
625
|
-
max: Math.round(Math.max(...this.dataset.body.map((
|
|
632
|
+
min: Math.round(Math.min(...this.dataset.body.map((s) => s.td).map((s) => s[i]))),
|
|
633
|
+
max: Math.round(Math.max(...this.dataset.body.map((s) => s.td).map((s) => s[i])))
|
|
626
634
|
}
|
|
627
635
|
}), Object.assign(this.immutableRangeFilters, {
|
|
628
636
|
[i]: {
|
|
629
|
-
min: Math.round(Math.min(...this.dataset.body.map((
|
|
630
|
-
max: Math.round(Math.max(...this.dataset.body.map((
|
|
637
|
+
min: Math.round(Math.min(...this.dataset.body.map((s) => s.td).map((s) => s[i]))),
|
|
638
|
+
max: Math.round(Math.max(...this.dataset.body.map((s) => s.td).map((s) => s[i])))
|
|
631
639
|
}
|
|
632
640
|
})), r.isPercentage) {
|
|
633
|
-
const
|
|
634
|
-
|
|
641
|
+
const s = this.dataset.header.map((m) => m.name).indexOf(r.percentageTo), e = this.dataset.body.map((m) => m.td[s]).reduce((m, f) => m + f, 0);
|
|
642
|
+
t.push([i, s, e]);
|
|
635
643
|
}
|
|
636
|
-
r.type === this.constants.NUMERIC && !r.isPercentage && Object.assign(this.hasNaN, { [i]: this.includesNaN(this.dataset.body.map((
|
|
644
|
+
r.type === this.constants.NUMERIC && !r.isPercentage && Object.assign(this.hasNaN, { [i]: this.includesNaN(this.dataset.body.map((s) => Number(s.td[i]))) });
|
|
637
645
|
}), this.bodyCopy.forEach((r, i) => {
|
|
638
|
-
|
|
639
|
-
const [e,
|
|
640
|
-
r.td[e] = r.td[
|
|
641
|
-
}), r.td.forEach((
|
|
642
|
-
this.dataset.header[e].type === this.constants.TEXT && this.dataset.header[e].isSearch && (r[e] = this.stringToNumber(
|
|
646
|
+
t.map((s) => {
|
|
647
|
+
const [e, m, f] = s;
|
|
648
|
+
r.td[e] = r.td[m] / f;
|
|
649
|
+
}), r.td.forEach((s, e) => {
|
|
650
|
+
this.dataset.header[e].type === this.constants.TEXT && this.dataset.header[e].isSearch && (r[e] = this.stringToNumber(s)), this.dataset.header[e].type === this.constants.DATE && (r[e] = new Date(s).getTime()), this.dataset.header[e].type === this.constants.NUMERIC && (r[e] = isNaN(Number(s)) ? e : s), this.tableBody[i][e] = r[e];
|
|
643
651
|
});
|
|
644
652
|
}), n(!0);
|
|
645
653
|
});
|
|
646
654
|
},
|
|
647
|
-
promiseWithAsyncFunction(n,
|
|
655
|
+
promiseWithAsyncFunction(n, t) {
|
|
648
656
|
return new Promise((r, i) => {
|
|
649
|
-
n().then((
|
|
657
|
+
n().then((s) => {
|
|
650
658
|
try {
|
|
651
|
-
const e = s
|
|
659
|
+
const e = t(s);
|
|
652
660
|
r(e);
|
|
653
661
|
} catch (e) {
|
|
654
662
|
i(e);
|
|
655
663
|
}
|
|
656
|
-
}).catch((
|
|
657
|
-
i(
|
|
664
|
+
}).catch((s) => {
|
|
665
|
+
i(s);
|
|
658
666
|
});
|
|
659
667
|
});
|
|
660
668
|
},
|
|
@@ -664,27 +672,27 @@ Provide an array of objects of type:
|
|
|
664
672
|
to: this.getDatesRange(n).to
|
|
665
673
|
}, this.filteredDatesIndexes[n] = !1, this.$forceUpdate(), this.filterBody();
|
|
666
674
|
},
|
|
667
|
-
resetFilter(n,
|
|
675
|
+
resetFilter(n, t, r) {
|
|
668
676
|
const i = r.currentTarget;
|
|
669
677
|
clearTimeout(this.buttonTimeout), i.classList.add("clicked"), this.buttonTimeout = setTimeout(() => {
|
|
670
678
|
i.classList.remove("clicked");
|
|
671
|
-
}, 200), this.currentFilter = void 0,
|
|
679
|
+
}, 200), this.currentFilter = void 0, t.rangeFilter && (this.rangeFilters[n].min = this.immutableRangeFilters[n].min, this.rangeFilters[n].max = this.immutableRangeFilters[n].max), t.isMultiselect ? (this.multiselects[n] = this.getDropdownOptions(n), t.type === this.constants.TEXT && (this.sorts[n] = void 0), t.isSearch && (this.searches[n] = "")) : t.type === this.constants.NUMERIC ? this.sorts[n] = void 0 : t.type === this.constants.TEXT ? (this.sorts[n] = void 0, this.searches[n] = "") : t.type === this.constants.DATE && (this.sorts[n] = void 0), this.filterBody();
|
|
672
680
|
},
|
|
673
681
|
resetSelection() {
|
|
674
682
|
const n = document.getElementsByClassName(`tr_${this.uid}`);
|
|
675
|
-
Array.from(n).forEach((
|
|
676
|
-
Array.from(
|
|
683
|
+
Array.from(n).forEach((t) => {
|
|
684
|
+
Array.from(t.getElementsByTagName("td")).forEach((r) => {
|
|
677
685
|
r.dataset.row === "even" ? (r.style.background = this.FINAL_CONFIG.style.rows.even.backgroundColor, r.style.color = this.FINAL_CONFIG.style.rows.even.color) : (r.style.background = this.FINAL_CONFIG.style.rows.odd.backgroundColor, r.style.color = this.FINAL_CONFIG.style.rows.odd.color);
|
|
678
686
|
});
|
|
679
|
-
}), Array.from(n).forEach((
|
|
687
|
+
}), Array.from(n).forEach((t) => t.dataset.selected = "false"), this.currentPage > this.pages.length - 1 && (this.currentPage = this.pages.length - 1), this.showChart = !1, this.currentDonut = void 0, this.selectedColumn = void 0, this.chart.type = this.constants.BAR, this.currentSelectionSpan = {
|
|
680
688
|
col: void 0,
|
|
681
689
|
rows: []
|
|
682
690
|
}, this.clientX = 100, this.clientY = 100;
|
|
683
691
|
},
|
|
684
692
|
selectColumn(n) {
|
|
685
|
-
this.currentSelectionSpan.col !== n ? (this.visibleRows.forEach((
|
|
693
|
+
this.currentSelectionSpan.col !== n ? (this.visibleRows.forEach((t, r) => {
|
|
686
694
|
this.selectTd({
|
|
687
|
-
td:
|
|
695
|
+
td: t.td[n],
|
|
688
696
|
rowIndex: r,
|
|
689
697
|
colIndex: n,
|
|
690
698
|
headerType: this.constants.NUMERIC,
|
|
@@ -694,24 +702,24 @@ Provide an array of objects of type:
|
|
|
694
702
|
});
|
|
695
703
|
}), this.selectedColumn = n) : (this.selectedColumn = void 0, this.resetSelection());
|
|
696
704
|
},
|
|
697
|
-
selectDropdownOption(n,
|
|
698
|
-
this.multiselects[
|
|
705
|
+
selectDropdownOption(n, t) {
|
|
706
|
+
this.multiselects[t].includes(n) ? this.multiselects[t] = this.multiselects[t].filter((r) => r !== n) : this.multiselects[t].push(n), this.$forceUpdate(), this.filterBody();
|
|
699
707
|
},
|
|
700
|
-
selectTd({ td: n, rowIndex:
|
|
708
|
+
selectTd({ td: n, rowIndex: t, colIndex: r, headerType: i, event: s }) {
|
|
701
709
|
if (i !== this.constants.NUMERIC || isNaN(Number(n))) {
|
|
702
710
|
this.resetSelection();
|
|
703
711
|
return;
|
|
704
712
|
}
|
|
705
713
|
this.currentSelectionSpan.col !== r && this.resetSelection();
|
|
706
|
-
const e =
|
|
707
|
-
this.currentSelectionSpan.col = r, this.currentSelectionSpan.rows.map((
|
|
708
|
-
|
|
709
|
-
}),
|
|
710
|
-
index:
|
|
714
|
+
const e = s.currentTarget.parentNode;
|
|
715
|
+
this.currentSelectionSpan.col = r, this.currentSelectionSpan.rows.map((m) => m.index).includes(t) ? (e.dataset.selected = "false", this.currentSelectionSpan.rows = this.currentSelectionSpan.rows.filter((m) => m.index !== t), s.currentTarget.classList.remove(this.cssClass.CELL), Array.from(e.children).forEach((m, f) => {
|
|
716
|
+
m.dataset.row === "even" ? (m.style.background = this.FINAL_CONFIG.style.rows.even.backgroundColor, m.style.color = this.FINAL_CONFIG.style.rows.even.olor) : (m.style.background = this.FINAL_CONFIG.style.rows.odd.backgroundColor, m.style.color = this.FINAL_CONFIG.style.rows.odd.color);
|
|
717
|
+
}), s.currentTarget.dataset.row === "even" ? (s.currentTarget.style.background = this.FINAL_CONFIG.style.rows.even.backgroundColor, s.currentTarget.style.color = this.FINAL_CONFIG.style.rows.even.color) : (s.currentTarget.style.background = this.FINAL_CONFIG.style.rows.odd.backgroundColor, s.currentTarget.style.color = this.FINAL_CONFIG.style.rows.odd.color)) : (e.dataset.selected = "true", this.currentSelectionSpan.rows.push({
|
|
718
|
+
index: t,
|
|
711
719
|
value: n
|
|
712
|
-
}), Array.from(e.children).forEach((
|
|
713
|
-
|
|
714
|
-
}),
|
|
720
|
+
}), Array.from(e.children).forEach((m, f) => {
|
|
721
|
+
m.dataset.row === "even" ? (m.style.background = this.FINAL_CONFIG.style.rows.even.selectedNeighbors.backgroundColor, m.style.color = this.FINAL_CONFIG.style.rows.even.selectedNeighbors.color) : (m.style.background = this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.backgroundColor, m.style.color = this.FINAL_CONFIG.style.rows.odd.selectedNeighbors.color);
|
|
722
|
+
}), s.currentTarget.dataset.row === "odd" ? (s.currentTarget.style.background = this.FINAL_CONFIG.style.rows.odd.selectedCell.backgroundColor, s.currentTarget.style.color = this.FINAL_CONFIG.style.rows.odd.selectedCell.color) : (s.currentTarget.style.background = this.FINAL_CONFIG.style.rows.even.selectedCell.backgroundColor, s.currentTarget.style.color = this.FINAL_CONFIG.style.rows.even.selectedCell.color)), this.currentSelectionSpan.rows = this.currentSelectionSpan.rows.sort((m, f) => m.index - f.index), this.chart.type === this.constants.DONUT && this.currentSelectionSpan.rows.length > 0 && this.applyDonutOption();
|
|
715
723
|
},
|
|
716
724
|
setFilterDatesIndexes(n) {
|
|
717
725
|
this.filteredDatesIndexes[n] = !(this.getDatesRange(n).from === this.dates[n].from && this.getDatesRange(n).to === this.dates[n].to);
|
|
@@ -721,44 +729,44 @@ Provide an array of objects of type:
|
|
|
721
729
|
this.filterByRange(this.bodyCopy, n);
|
|
722
730
|
}), Object.keys(this.sorts).forEach((n) => {
|
|
723
731
|
this.sortByNumber(this.bodyCopy, n);
|
|
724
|
-
}), this.currentFilter !== void 0 && this.sortByNumber(this.bodyCopy, this.currentFilter), this.dataset.header.forEach((n,
|
|
732
|
+
}), this.currentFilter !== void 0 && this.sortByNumber(this.bodyCopy, this.currentFilter), this.dataset.header.forEach((n, t) => {
|
|
725
733
|
if (n.isPercentage) {
|
|
726
|
-
const r = this.percentages[
|
|
727
|
-
this.bodyCopy.forEach((
|
|
728
|
-
|
|
734
|
+
const r = this.percentages[t].referenceIndex, i = this.bodyCopy.map((s) => s.td[r]).reduce((s, e) => s + e, 0);
|
|
735
|
+
this.bodyCopy.forEach((s) => {
|
|
736
|
+
s.td[t] = s.td[r] / i;
|
|
729
737
|
});
|
|
730
738
|
}
|
|
731
739
|
}), this.currentPage > this.pages.length - 1 && (this.currentPage = this.pages.length - 1), [-1].includes(this.currentPage) && (this.currentPage = 0), this.$forceUpdate();
|
|
732
740
|
},
|
|
733
|
-
filterByRange(n,
|
|
734
|
-
this.bodyCopy = n.filter((r) => r.td[
|
|
741
|
+
filterByRange(n, t) {
|
|
742
|
+
this.bodyCopy = n.filter((r) => r.td[t] >= this.rangeFilters[t].min && r[t] <= this.rangeFilters[t].max);
|
|
735
743
|
},
|
|
736
|
-
sortByNumber(n,
|
|
737
|
-
if (this.sorts[
|
|
738
|
-
n = n.sort((r, i) => i[
|
|
744
|
+
sortByNumber(n, t) {
|
|
745
|
+
if (this.sorts[t] === this.constants.ASC && (n = n.sort((r, i) => r[t] - i[t])), this.sorts[t] === this.constants.DESC)
|
|
746
|
+
n = n.sort((r, i) => i[t] - r[t]);
|
|
739
747
|
else
|
|
740
748
|
return 0;
|
|
741
749
|
},
|
|
742
|
-
sortTh(n,
|
|
750
|
+
sortTh(n, t) {
|
|
743
751
|
this.currentFilter = n;
|
|
744
|
-
const r =
|
|
752
|
+
const r = t.currentTarget;
|
|
745
753
|
clearTimeout(this.buttonTimeout), r.classList.add("clicked"), this.buttonTimeout = setTimeout(() => {
|
|
746
754
|
r.classList.remove("clicked");
|
|
747
755
|
}, 200), this.sorts[n] === 1 ? this.sorts[n] = this.constants.DESC : this.sorts[n] = this.constants.ASC, this.sortBody();
|
|
748
756
|
},
|
|
749
757
|
stringToNumber(n) {
|
|
750
|
-
let
|
|
758
|
+
let t = 0;
|
|
751
759
|
for (let r = 0; r < n.length; r += 1)
|
|
752
|
-
|
|
753
|
-
return
|
|
760
|
+
t += n.charCodeAt(r);
|
|
761
|
+
return t;
|
|
754
762
|
},
|
|
755
|
-
toggleMultiselect(n,
|
|
763
|
+
toggleMultiselect(n, t, r) {
|
|
756
764
|
const i = r.currentTarget;
|
|
757
765
|
clearTimeout(this.buttonTimeout), i.classList.add("clicked"), this.buttonTimeout = setTimeout(() => {
|
|
758
766
|
i.classList.remove("clicked");
|
|
759
767
|
}, 200);
|
|
760
|
-
const
|
|
761
|
-
|
|
768
|
+
const s = document.getElementById(`th_dropdown_${n}`);
|
|
769
|
+
s.dataset.isOpen === "false" ? s.dataset.isOpen = "true" : s.dataset.isOpen = "false";
|
|
762
770
|
},
|
|
763
771
|
updateCurrentPage(n) {
|
|
764
772
|
this.resetSelection(), !n || !n.target.value ? this.currentPage = 0 : this.currentPage = Number(n.target.value), this.onPageChange();
|
|
@@ -770,17 +778,17 @@ Provide an array of objects of type:
|
|
|
770
778
|
calcDonutMarkerLabelPositionX(n) {
|
|
771
779
|
return n.center.endX + this.calcMarkerOffset(n, 50);
|
|
772
780
|
},
|
|
773
|
-
calcMarkerOffset(n,
|
|
774
|
-
return n.center.endX -
|
|
781
|
+
calcMarkerOffset(n, t) {
|
|
782
|
+
return n.center.endX - t >= 0 ? 3 : -2;
|
|
775
783
|
},
|
|
776
|
-
displayArcPercentage(n,
|
|
777
|
-
return isNaN(n.value / this.sumValues(
|
|
784
|
+
displayArcPercentage(n, t) {
|
|
785
|
+
return isNaN(n.value / this.sumValues(t)) ? 0 : (n.value / this.sumValues(t) * 100).toFixed(0) + "%";
|
|
778
786
|
},
|
|
779
787
|
isArcBigEnough(n) {
|
|
780
788
|
return n.proportion * 100 > 3;
|
|
781
789
|
},
|
|
782
790
|
sumValues(n) {
|
|
783
|
-
return [...n].map((
|
|
791
|
+
return [...n].map((t) => t.value).reduce((t, r) => t + r, 0);
|
|
784
792
|
},
|
|
785
793
|
// CHART DRAGGING METHODS
|
|
786
794
|
closeDragElement() {
|
|
@@ -797,114 +805,140 @@ Provide an array of objects of type:
|
|
|
797
805
|
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);
|
|
798
806
|
}
|
|
799
807
|
}
|
|
800
|
-
},
|
|
808
|
+
}, re = {
|
|
801
809
|
key: 0,
|
|
802
810
|
class: "vue-ui-table-export-hub"
|
|
803
|
-
},
|
|
811
|
+
}, oe = ["innerHTML"], le = ["data-is-open"], ae = { class: "vue-ui-table-export-hub-options" }, ie = { class: "vue-ui-table-export-hub-option-wrapper" }, ce = { class: "label" }, ue = ["innerHTML"], he = { class: "vue-ui-table-export-hub-option-wrapper" }, de = { class: "label" }, ge = ["innerHTML"], me = { class: "vue-ui-table-dialog-field" }, ye = { class: "label vue-ui-table-dialog-input-label" }, be = { class: "vue-ui-table" }, fe = { key: 0 }, pe = { key: 0 }, Ne = { key: 1 }, Ce = {
|
|
804
812
|
key: 0,
|
|
805
813
|
style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
|
|
806
|
-
},
|
|
814
|
+
}, Ie = ["innerHTML"], Fe = {
|
|
807
815
|
key: 0,
|
|
808
816
|
style: { "margin-left": "3px" }
|
|
809
|
-
},
|
|
817
|
+
}, ve = { key: 0 }, we = { class: "th-filter" }, _e = {
|
|
810
818
|
key: 0,
|
|
811
819
|
class: "th-date"
|
|
812
|
-
},
|
|
820
|
+
}, ke = { class: "date-wrapper--inputs" }, Oe = { class: "date-fieldset" }, Se = ["for"], Le = ["id", "onUpdate:modelValue", "onInput"], Ae = { class: "date-fieldset" }, Me = ["for"], De = ["id", "onUpdate:modelValue", "onInput"], Ge = { class: "date-wrapper--button" }, xe = ["onClick"], Te = ["innerHTML"], Ee = ["innerHTML"], Pe = ["innerHTML"], Be = ["onClick", "disabled"], He = ["placeholder", "onUpdate:modelValue", "name"], Re = ["onClick"], ze = ["innerHTML"], Ue = ["innerHTML"], Ve = ["innerHTML"], Xe = ["onClick", "innerHTML"], je = ["innerHTML"], Ye = {
|
|
813
821
|
key: 5,
|
|
814
822
|
class: "th-range-filter"
|
|
815
|
-
},
|
|
823
|
+
}, We = ["for"], Je = ["id", "max", "min", "onUpdate:modelValue"], Ke = ["id", "max", "min", "onUpdate:modelValue"], Ze = ["for"], qe = ["onClick", "disabled"], Qe = ["id"], $e = ["onClick"], et = ["onClick", "onKeyup"], tt = ["innerHTML", "onClick", "onKeyup"], st = ["data-row"], nt = ["data-row"], rt = ["data-row", "onClick", "onKeyup", "id"], ot = ["innerHTML"], lt = { key: 1 }, at = { key: 2 }, it = { key: 5 }, ct = ["innerHTML"], ut = { key: 0 }, ht = { style: { "margin-left": "12px" } }, dt = { class: "format-num" }, gt = { style: { "margin-left": "12px" } }, mt = {
|
|
816
824
|
key: 0,
|
|
817
825
|
class: "format-num"
|
|
818
|
-
},
|
|
826
|
+
}, yt = {
|
|
819
827
|
key: 1,
|
|
820
828
|
class: "format-num"
|
|
821
|
-
},
|
|
829
|
+
}, bt = { key: 2 }, ft = { style: { "margin-left": "12px" } }, pt = {
|
|
822
830
|
key: 0,
|
|
823
831
|
class: "format-num"
|
|
824
|
-
},
|
|
832
|
+
}, Nt = {
|
|
825
833
|
key: 1,
|
|
826
834
|
class: "format-num"
|
|
827
|
-
},
|
|
835
|
+
}, Ct = { key: 2 }, It = {
|
|
828
836
|
key: 1,
|
|
829
837
|
class: "vue-ui-table-paginator format-num"
|
|
830
|
-
},
|
|
838
|
+
}, Ft = {
|
|
831
839
|
key: 2,
|
|
832
840
|
class: "vue-ui-table-size-warning"
|
|
833
|
-
},
|
|
841
|
+
}, vt = ["innerHTML"], wt = {
|
|
834
842
|
key: 4,
|
|
835
843
|
class: "vue-ui-table-pagination format-num"
|
|
836
|
-
},
|
|
844
|
+
}, _t = ["innerHTML", "disabled"], kt = ["disabled"], Ot = {
|
|
837
845
|
key: 0,
|
|
838
846
|
class: "vue-ui-table-page-scroller-wrapper"
|
|
839
|
-
},
|
|
847
|
+
}, St = {
|
|
840
848
|
for: "pageScroller",
|
|
841
849
|
style: { "font-size": "14px" }
|
|
842
|
-
},
|
|
850
|
+
}, Lt = ["max", "value"], At = { key: 1 }, Mt = ["disabled"], Dt = ["innerHTML", "disabled"], Gt = ["innerHTML"], xt = { class: "chart-modal-options" }, Tt = ["innerHTML"], Et = ["innerHTML"], Pt = ["innerHTML"], Bt = {
|
|
843
851
|
style: { width: "100%", height: "fit-content" },
|
|
844
852
|
ref: "chartModal"
|
|
845
|
-
},
|
|
853
|
+
}, Ht = { class: "vue-ui-table-fieldset" }, Rt = { class: "vue-ui-table-fieldset-wrapper" }, zt = ["name", "id", "checked", "onInput"], Ut = ["for"], Vt = ["disabled"], Xt = ["innerHTML"], jt = { style: { width: "100%", "margin-bottom": "12px" } }, Yt = {
|
|
846
854
|
key: 2,
|
|
847
855
|
style: { width: "100%", "margin-bottom": "32px" }
|
|
848
856
|
};
|
|
849
|
-
function
|
|
850
|
-
const
|
|
857
|
+
function Wt(n, t, r, i, s, e) {
|
|
858
|
+
const m = D("BaseIcon"), f = D("VueUiXy"), _ = D("VueUiDonut");
|
|
851
859
|
return c(), u("div", {
|
|
852
860
|
class: "vue-ui-table-main",
|
|
853
861
|
style: g(`font-family: ${e.FINAL_CONFIG.fontFamily}`)
|
|
854
862
|
}, [
|
|
855
|
-
e.FINAL_CONFIG.style.exportMenu.show ? (c(), u("div",
|
|
863
|
+
e.FINAL_CONFIG.style.exportMenu.show ? (c(), u("div", re, [
|
|
856
864
|
a("button", {
|
|
857
|
-
onClick:
|
|
865
|
+
onClick: t[0] || (t[0] = (l) => s.isExportRequest = !s.isExportRequest),
|
|
858
866
|
innerHTML: e.icons.export,
|
|
859
867
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
860
|
-
}, null, 12,
|
|
868
|
+
}, null, 12, oe),
|
|
861
869
|
a("div", {
|
|
862
870
|
class: "vue-ui-table-export-hub-dropdown",
|
|
863
|
-
"data-is-open":
|
|
871
|
+
"data-is-open": s.isExportRequest || "false",
|
|
864
872
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
865
873
|
}, [
|
|
866
|
-
|
|
874
|
+
t[28] || (t[28] = a("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1)),
|
|
867
875
|
a("button", {
|
|
868
876
|
class: "close-dropdown",
|
|
869
|
-
onClick:
|
|
877
|
+
onClick: t[1] || (t[1] = (l) => s.isExportRequest = !1),
|
|
870
878
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
871
879
|
}, " ✖ ", 4),
|
|
872
|
-
a("div",
|
|
873
|
-
a("div",
|
|
874
|
-
a("div",
|
|
880
|
+
a("div", ae, [
|
|
881
|
+
a("div", ie, [
|
|
882
|
+
a("div", ce, d(e.FINAL_CONFIG.translations.exportAllLabel) + " (" + d(s.bodyCopy.length) + ") ", 1),
|
|
875
883
|
a("button", {
|
|
876
884
|
id: "exportAll",
|
|
877
|
-
onClick:
|
|
885
|
+
onClick: t[2] || (t[2] = (l) => e.createXls("all")),
|
|
878
886
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
879
887
|
}, [
|
|
880
888
|
a("div", {
|
|
881
889
|
innerHTML: e.icons.fileDownload
|
|
882
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, ue),
|
|
883
891
|
a("span", null, d(e.FINAL_CONFIG.translations.exportAllButton), 1)
|
|
884
892
|
], 4)
|
|
885
893
|
]),
|
|
886
|
-
a("div",
|
|
887
|
-
a("div",
|
|
894
|
+
a("div", he, [
|
|
895
|
+
a("div", de, d(e.FINAL_CONFIG.translations.exportPageLabel), 1),
|
|
888
896
|
a("button", {
|
|
889
897
|
id: "exportPage",
|
|
890
|
-
onClick:
|
|
898
|
+
onClick: t[3] || (t[3] = (l) => e.createXls("page")),
|
|
891
899
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
892
900
|
}, [
|
|
893
901
|
a("div", {
|
|
894
902
|
innerHTML: e.icons.fileDownload
|
|
895
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, ge),
|
|
896
904
|
a("span", null, d(e.FINAL_CONFIG.translations.exportPageButton), 1)
|
|
897
905
|
], 4)
|
|
906
|
+
]),
|
|
907
|
+
a("div", me, [
|
|
908
|
+
a("label", ye, [
|
|
909
|
+
w(d(e.FINAL_CONFIG.translations.filename) + " ", 1),
|
|
910
|
+
O(a("input", {
|
|
911
|
+
ref: "filenameInputRef",
|
|
912
|
+
onKeydown: t[4] || (t[4] = S(L(() => {
|
|
913
|
+
}, ["stop"]), ["space"])),
|
|
914
|
+
pattern: ".*",
|
|
915
|
+
class: "vue-ui-table-dialog-input",
|
|
916
|
+
type: "text",
|
|
917
|
+
"onUpdate:modelValue": t[5] || (t[5] = (l) => s.filename = l)
|
|
918
|
+
}, null, 544), [
|
|
919
|
+
[A, s.filename]
|
|
920
|
+
])
|
|
921
|
+
]),
|
|
922
|
+
a("button", {
|
|
923
|
+
class: "vue-ui-table-dialog-field-button",
|
|
924
|
+
onClick: t[6] || (t[6] = (l) => s.filename = "")
|
|
925
|
+
}, [
|
|
926
|
+
E(m, {
|
|
927
|
+
name: "close",
|
|
928
|
+
stroke: e.FINAL_CONFIG.style.exportMenu.color,
|
|
929
|
+
size: 18
|
|
930
|
+
}, null, 8, ["stroke"])
|
|
931
|
+
])
|
|
898
932
|
])
|
|
899
933
|
])
|
|
900
|
-
], 12,
|
|
934
|
+
], 12, le)
|
|
901
935
|
])) : b("", !0),
|
|
902
936
|
a("div", {
|
|
903
937
|
class: "vue-ui-table__wrapper",
|
|
904
938
|
style: g(`max-height:${e.FINAL_CONFIG.maxHeight}px`),
|
|
905
939
|
ref: "tableWrapper"
|
|
906
940
|
}, [
|
|
907
|
-
a("table",
|
|
941
|
+
a("table", be, [
|
|
908
942
|
a("thead", {
|
|
909
943
|
id: "tableHead",
|
|
910
944
|
class: "vue-ui-table__head",
|
|
@@ -914,39 +948,39 @@ function Xt(n, s, r, i, t, e) {
|
|
|
914
948
|
})
|
|
915
949
|
}, [
|
|
916
950
|
a("tr", null, [
|
|
917
|
-
|
|
918
|
-
(c(!0), u(
|
|
951
|
+
t[29] || (t[29] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
952
|
+
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
919
953
|
key: `thead_${o}`,
|
|
920
954
|
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}`),
|
|
921
|
-
class:
|
|
955
|
+
class: N({ "th-has-nan": s.hasNaN[o] })
|
|
922
956
|
}, [
|
|
923
|
-
e.hasNumericTypes && ([
|
|
957
|
+
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(l.type) || l.isPercentage) ? (c(), u("span", fe, [
|
|
924
958
|
w(d(l.name) + " ", 1),
|
|
925
|
-
l.isPercentage ? (c(), u("span",
|
|
926
|
-
])) : (c(), u("span",
|
|
959
|
+
l.isPercentage ? (c(), u("span", pe, " / " + d(l.percentageTo), 1)) : b("", !0)
|
|
960
|
+
])) : (c(), u("span", Ne, d(l.name), 1))
|
|
927
961
|
], 6))), 128))
|
|
928
962
|
]),
|
|
929
|
-
e.hasNumericTypes ? (c(), u(
|
|
963
|
+
e.hasNumericTypes ? (c(), u(F, { key: 0 }, [
|
|
930
964
|
a("tr", null, [
|
|
931
|
-
|
|
932
|
-
(c(!0), u(
|
|
965
|
+
t[30] || (t[30] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
966
|
+
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
933
967
|
key: `thead_${o}`,
|
|
934
|
-
class:
|
|
968
|
+
class: N({ "th-numeric": !0, "th-has-nan": s.hasNaN[o] }),
|
|
935
969
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
936
970
|
}, [
|
|
937
|
-
l.sum && !
|
|
971
|
+
l.sum && !s.hasNaN[o] ? (c(), u("span", Ce, [
|
|
938
972
|
a("span", {
|
|
939
973
|
innerHTML: e.icons.sum,
|
|
940
974
|
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
941
|
-
}, null, 8,
|
|
975
|
+
}, null, 8, Ie),
|
|
942
976
|
w(" " + d(e.dataLabel({
|
|
943
977
|
p: l.prefix,
|
|
944
978
|
v: Number(e.getSum(o)),
|
|
945
979
|
s: l.suffix,
|
|
946
980
|
r: l.decimals
|
|
947
981
|
})) + " ", 1),
|
|
948
|
-
|
|
949
|
-
v: e.getSum(o) / e.getSum(
|
|
982
|
+
s.percentages[o] && l.percentageTo && !l.isPercentage ? (c(), u("span", Fe, " (" + d(isNaN(e.getSum(o) / e.getSum(s.percentages[o].referenceIndex)) ? "-" : e.dataLabel({
|
|
983
|
+
v: e.getSum(o) / e.getSum(s.percentages[o].referenceIndex) * 100,
|
|
950
984
|
s: "%",
|
|
951
985
|
r: l.decimals
|
|
952
986
|
})) + ") ", 1)) : b("", !0)
|
|
@@ -954,13 +988,13 @@ function Xt(n, s, r, i, t, e) {
|
|
|
954
988
|
], 6))), 128))
|
|
955
989
|
]),
|
|
956
990
|
a("tr", null, [
|
|
957
|
-
|
|
958
|
-
(c(!0), u(
|
|
991
|
+
t[31] || (t[31] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
992
|
+
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
959
993
|
key: `thead_${o}`,
|
|
960
|
-
class:
|
|
994
|
+
class: N({ "th-numeric": !0, "th-has-nan": s.hasNaN[o] }),
|
|
961
995
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
962
996
|
}, [
|
|
963
|
-
l.average && !
|
|
997
|
+
l.average && !s.hasNaN[o] ? (c(), u("span", ve, " ~ " + d(isNaN(e.getAverage(o)) ? "" : e.dataLabel({
|
|
964
998
|
p: l.prefix,
|
|
965
999
|
v: Number(e.getAverage(o)),
|
|
966
1000
|
s: l.suffix,
|
|
@@ -969,136 +1003,136 @@ function Xt(n, s, r, i, t, e) {
|
|
|
969
1003
|
], 6))), 128))
|
|
970
1004
|
]),
|
|
971
1005
|
a("tr", null, [
|
|
972
|
-
|
|
973
|
-
(c(!0), u(
|
|
1006
|
+
t[34] || (t[34] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1007
|
+
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
974
1008
|
key: `thead_${o}`,
|
|
975
|
-
class:
|
|
1009
|
+
class: N({ "th-has-nan": s.hasNaN[o] }),
|
|
976
1010
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
977
1011
|
}, [
|
|
978
|
-
a("div",
|
|
979
|
-
l.type ===
|
|
980
|
-
a("div",
|
|
981
|
-
a("div",
|
|
1012
|
+
a("div", we, [
|
|
1013
|
+
l.type === s.constants.DATE && s.dates[o] ? (c(), u("div", _e, [
|
|
1014
|
+
a("div", ke, [
|
|
1015
|
+
a("div", Oe, [
|
|
982
1016
|
a("label", {
|
|
983
1017
|
for: `from_${o}`
|
|
984
|
-
}, d(e.FINAL_CONFIG.translations.from), 9,
|
|
1018
|
+
}, d(e.FINAL_CONFIG.translations.from), 9, Se),
|
|
985
1019
|
O(a("input", {
|
|
986
1020
|
id: `from_${o}`,
|
|
987
1021
|
type: "date",
|
|
988
|
-
"onUpdate:modelValue": (h) =>
|
|
1022
|
+
"onUpdate:modelValue": (h) => s.dates[o].from = h,
|
|
989
1023
|
onInput: (h) => {
|
|
990
1024
|
e.filterBody(), e.setFilterDatesIndexes(o);
|
|
991
1025
|
},
|
|
992
1026
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
993
|
-
}, null, 44,
|
|
994
|
-
[
|
|
1027
|
+
}, null, 44, Le), [
|
|
1028
|
+
[A, s.dates[o].from]
|
|
995
1029
|
])
|
|
996
1030
|
]),
|
|
997
|
-
a("div",
|
|
1031
|
+
a("div", Ae, [
|
|
998
1032
|
a("label", {
|
|
999
1033
|
for: `to_${o}`
|
|
1000
|
-
}, d(e.FINAL_CONFIG.translations.to), 9,
|
|
1034
|
+
}, d(e.FINAL_CONFIG.translations.to), 9, Me),
|
|
1001
1035
|
O(a("input", {
|
|
1002
1036
|
id: `to_${o}`,
|
|
1003
1037
|
type: "date",
|
|
1004
|
-
"onUpdate:modelValue": (h) =>
|
|
1038
|
+
"onUpdate:modelValue": (h) => s.dates[o].to = h,
|
|
1005
1039
|
onInput: (h) => {
|
|
1006
1040
|
e.filterBody(), e.setFilterDatesIndexes(o);
|
|
1007
1041
|
},
|
|
1008
1042
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1009
|
-
}, null, 44,
|
|
1010
|
-
[
|
|
1043
|
+
}, null, 44, De), [
|
|
1044
|
+
[A, s.dates[o].to]
|
|
1011
1045
|
])
|
|
1012
1046
|
])
|
|
1013
1047
|
]),
|
|
1014
|
-
a("div",
|
|
1048
|
+
a("div", Ge, [
|
|
1015
1049
|
l.isSort ? (c(), u("button", {
|
|
1016
1050
|
key: 0,
|
|
1017
1051
|
onClick: (h) => e.sortTh(o, h),
|
|
1018
|
-
class:
|
|
1019
|
-
style: g(`background:${[
|
|
1052
|
+
class: N({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) }),
|
|
1053
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1020
1054
|
}, [
|
|
1021
|
-
|
|
1055
|
+
s.sorts[o] === s.constants.ASC ? (c(), u("span", {
|
|
1022
1056
|
key: 0,
|
|
1023
|
-
innerHTML: [
|
|
1024
|
-
}, null, 8,
|
|
1057
|
+
innerHTML: [s.constants.DATE].includes(l.type) ? e.icons.sort09 : e.icons.sortAZ
|
|
1058
|
+
}, null, 8, Te)) : s.sorts[o] === s.constants.DESC ? (c(), u("span", {
|
|
1025
1059
|
key: 1,
|
|
1026
|
-
innerHTML: [
|
|
1027
|
-
}, null, 8,
|
|
1060
|
+
innerHTML: [s.constants.DATE].includes(l.type) ? e.icons.sort90 : e.icons.sortZA
|
|
1061
|
+
}, null, 8, Ee)) : (c(), u("span", {
|
|
1028
1062
|
key: 2,
|
|
1029
1063
|
innerHTML: e.icons.arrowSort
|
|
1030
|
-
}, null, 8,
|
|
1031
|
-
], 14,
|
|
1064
|
+
}, null, 8, Pe))
|
|
1065
|
+
], 14, xe)) : b("", !0),
|
|
1032
1066
|
a("button", {
|
|
1033
1067
|
onClick: (h) => {
|
|
1034
1068
|
e.resetDates(o), e.resetFilter(o, l, h);
|
|
1035
1069
|
},
|
|
1036
|
-
disabled: !
|
|
1070
|
+
disabled: !s.filteredDatesIndexes[o] && e.isResetDisabled(o, l),
|
|
1037
1071
|
class: "th-reset"
|
|
1038
|
-
}, " ✖ ", 8,
|
|
1072
|
+
}, " ✖ ", 8, Be)
|
|
1039
1073
|
])
|
|
1040
1074
|
])) : b("", !0),
|
|
1041
1075
|
l.isSearch ? O((c(), u("input", {
|
|
1042
1076
|
key: 1,
|
|
1043
1077
|
placeholder: e.FINAL_CONFIG.translations.inputPlaceholder,
|
|
1044
|
-
"onUpdate:modelValue": (h) =>
|
|
1045
|
-
onInput:
|
|
1078
|
+
"onUpdate:modelValue": (h) => s.searches[o] = h,
|
|
1079
|
+
onInput: t[7] || (t[7] = (h) => e.debounce(e.filterBody, 400)),
|
|
1046
1080
|
name: `search_${o}`,
|
|
1047
1081
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1048
|
-
}, null, 44,
|
|
1049
|
-
[
|
|
1082
|
+
}, null, 44, He)), [
|
|
1083
|
+
[A, s.searches[o]]
|
|
1050
1084
|
]) : b("", !0),
|
|
1051
|
-
!
|
|
1085
|
+
!s.hasNaN[o] && l.isSort && l.type !== s.constants.DATE ? (c(), u("button", {
|
|
1052
1086
|
key: 2,
|
|
1053
1087
|
onClick: (h) => e.sortTh(o, h),
|
|
1054
|
-
class:
|
|
1055
|
-
style: g(`background:${[
|
|
1088
|
+
class: N({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) }),
|
|
1089
|
+
style: g(`background:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${[s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1056
1090
|
}, [
|
|
1057
|
-
|
|
1091
|
+
s.sorts[o] === s.constants.ASC ? (c(), u("span", {
|
|
1058
1092
|
key: 0,
|
|
1059
|
-
innerHTML: [
|
|
1060
|
-
}, null, 8,
|
|
1093
|
+
innerHTML: [s.constants.NUMERIC].includes(l.type) ? e.icons.sort09 : e.icons.sortZA
|
|
1094
|
+
}, null, 8, ze)) : s.sorts[o] === s.constants.DESC ? (c(), u("span", {
|
|
1061
1095
|
key: 1,
|
|
1062
|
-
innerHTML: [
|
|
1063
|
-
}, null, 8,
|
|
1096
|
+
innerHTML: [s.constants.NUMERIC].includes(l.type) ? e.icons.sort90 : e.icons.sortAZ
|
|
1097
|
+
}, null, 8, Ue)) : (c(), u("span", {
|
|
1064
1098
|
key: 2,
|
|
1065
1099
|
innerHTML: e.icons.arrowSort
|
|
1066
|
-
}, null, 8,
|
|
1067
|
-
], 14,
|
|
1100
|
+
}, null, 8, Ve))
|
|
1101
|
+
], 14, Re)) : b("", !0),
|
|
1068
1102
|
l.isMultiselect ? (c(), u("button", {
|
|
1069
1103
|
key: 3,
|
|
1070
1104
|
onClick: (h) => e.toggleMultiselect(o, l, h),
|
|
1071
1105
|
innerHTML: e.icons.filter,
|
|
1072
|
-
class:
|
|
1073
|
-
style: g(`background:${
|
|
1074
|
-
}, null, 14,
|
|
1075
|
-
|
|
1106
|
+
class: N({ "th-button-active": s.multiselects[o] && s.multiselects[o].length !== e.getDropdownOptions(o).length }),
|
|
1107
|
+
style: g(`background:${s.multiselects[o] && s.multiselects[o].length !== e.getDropdownOptions(o).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.multiselects[o] && s.multiselects[o].length !== e.getDropdownOptions(o).length ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1108
|
+
}, null, 14, Xe)) : b("", !0),
|
|
1109
|
+
s.currentSelectionSpan.col === o && e.canChart ? (c(), u("button", {
|
|
1076
1110
|
key: 4,
|
|
1077
|
-
onClick:
|
|
1111
|
+
onClick: t[8] || (t[8] = (h) => s.showChart = !s.showChart),
|
|
1078
1112
|
innerHTML: e.icons.chart,
|
|
1079
|
-
class:
|
|
1080
|
-
style: g(`background:${
|
|
1081
|
-
}, null, 14,
|
|
1082
|
-
l.rangeFilter &&
|
|
1113
|
+
class: N({ "th-button-active": s.showChart }),
|
|
1114
|
+
style: g(`background:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1115
|
+
}, null, 14, je)) : b("", !0),
|
|
1116
|
+
l.rangeFilter && s.rangeFilters[o] && !s.hasNaN[o] ? (c(), u("div", Ye, [
|
|
1083
1117
|
a("label", {
|
|
1084
1118
|
for: `rangeMin${o}`
|
|
1085
|
-
}, [...
|
|
1119
|
+
}, [...t[32] || (t[32] = [
|
|
1086
1120
|
a("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1087
1121
|
w(" min ", -1),
|
|
1088
1122
|
a("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1089
|
-
])], 8,
|
|
1123
|
+
])], 8, We),
|
|
1090
1124
|
O(a("input", {
|
|
1091
1125
|
type: "number",
|
|
1092
1126
|
id: `rangeMin${o}`,
|
|
1093
|
-
max:
|
|
1094
|
-
min:
|
|
1095
|
-
"onUpdate:modelValue": (h) =>
|
|
1096
|
-
onInput:
|
|
1127
|
+
max: s.immutableRangeFilters[o].max,
|
|
1128
|
+
min: s.immutableRangeFilters[o].min,
|
|
1129
|
+
"onUpdate:modelValue": (h) => s.rangeFilters[o].min = h,
|
|
1130
|
+
onInput: t[9] || (t[9] = (h) => e.debounce(e.filterBody, 400)),
|
|
1097
1131
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1098
|
-
}, null, 44,
|
|
1132
|
+
}, null, 44, Je), [
|
|
1099
1133
|
[
|
|
1100
|
-
|
|
1101
|
-
|
|
1134
|
+
A,
|
|
1135
|
+
s.rangeFilters[o].min,
|
|
1102
1136
|
void 0,
|
|
1103
1137
|
{ number: !0 }
|
|
1104
1138
|
]
|
|
@@ -1106,33 +1140,33 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1106
1140
|
O(a("input", {
|
|
1107
1141
|
type: "number",
|
|
1108
1142
|
id: `rangeMax${o}`,
|
|
1109
|
-
max:
|
|
1110
|
-
min:
|
|
1111
|
-
"onUpdate:modelValue": (h) =>
|
|
1112
|
-
onInput:
|
|
1143
|
+
max: s.immutableRangeFilters[o].max,
|
|
1144
|
+
min: s.immutableRangeFilters[o].min,
|
|
1145
|
+
"onUpdate:modelValue": (h) => s.rangeFilters[o].max = h,
|
|
1146
|
+
onInput: t[10] || (t[10] = (h) => e.debounce(e.filterBody, 400)),
|
|
1113
1147
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1114
|
-
}, null, 44,
|
|
1148
|
+
}, null, 44, Ke), [
|
|
1115
1149
|
[
|
|
1116
|
-
|
|
1117
|
-
|
|
1150
|
+
A,
|
|
1151
|
+
s.rangeFilters[o].max,
|
|
1118
1152
|
void 0,
|
|
1119
1153
|
{ number: !0 }
|
|
1120
1154
|
]
|
|
1121
1155
|
]),
|
|
1122
1156
|
a("label", {
|
|
1123
1157
|
for: `rangeMax${o}`
|
|
1124
|
-
}, [...
|
|
1158
|
+
}, [...t[33] || (t[33] = [
|
|
1125
1159
|
a("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1126
1160
|
w(" max ", -1),
|
|
1127
1161
|
a("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1128
|
-
])], 8,
|
|
1162
|
+
])], 8, Ze)
|
|
1129
1163
|
])) : b("", !0),
|
|
1130
1164
|
e.canResetColumn(o, l) ? (c(), u("button", {
|
|
1131
1165
|
key: 6,
|
|
1132
1166
|
onClick: (h) => e.resetFilter(o, l, h),
|
|
1133
1167
|
disabled: e.isResetDisabled(o, l),
|
|
1134
1168
|
class: "th-reset"
|
|
1135
|
-
}, " ✖ ", 8,
|
|
1169
|
+
}, " ✖ ", 8, qe)) : b("", !0),
|
|
1136
1170
|
l.isMultiselect ? (c(), u("div", {
|
|
1137
1171
|
key: 7,
|
|
1138
1172
|
class: "th-dropdown",
|
|
@@ -1144,14 +1178,14 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1144
1178
|
class: "close-dropdown",
|
|
1145
1179
|
onClick: (h) => e.toggleMultiselect(o, l, h),
|
|
1146
1180
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
|
|
1147
|
-
}, " ✖ ", 12,
|
|
1148
|
-
(c(!0), u(
|
|
1181
|
+
}, " ✖ ", 12, $e),
|
|
1182
|
+
(c(!0), u(F, null, k(e.getDropdownOptions(o), (h, y) => (c(), u("span", {
|
|
1149
1183
|
class: "th-option",
|
|
1150
|
-
key: `th_option_${o}_${
|
|
1151
|
-
onClick: (
|
|
1184
|
+
key: `th_option_${o}_${y}`,
|
|
1185
|
+
onClick: (C) => e.selectDropdownOption(h, o),
|
|
1152
1186
|
onKeyup: [
|
|
1153
|
-
|
|
1154
|
-
|
|
1187
|
+
S((C) => e.selectDropdownOption(h, o), ["enter"]),
|
|
1188
|
+
S((C) => e.selectDropdownOption(h, o), ["space"])
|
|
1155
1189
|
],
|
|
1156
1190
|
style: g(`opacity:${e.isDropdownOptionSelected(h, o) ? 1 : 0.5}`),
|
|
1157
1191
|
tabindex: "0"
|
|
@@ -1166,199 +1200,199 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1166
1200
|
class: "th-icon-red"
|
|
1167
1201
|
}, d(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1168
1202
|
a("span", null, d(h), 1)
|
|
1169
|
-
], 44,
|
|
1170
|
-
], 12,
|
|
1203
|
+
], 44, et))), 128))
|
|
1204
|
+
], 12, Qe)) : b("", !0)
|
|
1171
1205
|
])
|
|
1172
1206
|
], 6))), 128))
|
|
1173
1207
|
])
|
|
1174
1208
|
], 64)) : b("", !0),
|
|
1175
1209
|
a("tr", null, [
|
|
1176
|
-
|
|
1177
|
-
(c(!0), u(
|
|
1210
|
+
t[35] || (t[35] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1211
|
+
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
1178
1212
|
key: `col_selector_${o}`,
|
|
1179
|
-
class:
|
|
1180
|
-
style: g(`background:${o ===
|
|
1213
|
+
class: N({ "vue-ui-table-col-selector": !s.hasNaN[o], "th-has-nan": s.hasNaN[o] }),
|
|
1214
|
+
style: g(`background:${o === s.selectedColumn && !s.hasNaN[o] ? e.FINAL_CONFIG.style.th.selected.backgroundColor : e.FINAL_CONFIG.style.th.backgroundColor};color:${o === s.selectedColumn && !s.hasNaN[o] ? e.FINAL_CONFIG.style.th.selected.color : e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
1181
1215
|
}, [
|
|
1182
|
-
|
|
1216
|
+
s.hasNaN[o] ? b("", !0) : (c(), u("div", {
|
|
1183
1217
|
key: 0,
|
|
1184
|
-
innerHTML:
|
|
1185
|
-
class:
|
|
1218
|
+
innerHTML: s.tableHead[o].type === s.constants.NUMERIC ? e.icons.chevronDown : "",
|
|
1219
|
+
class: N({ "col-selector": s.tableHead[o].type === s.constants.NUMERIC }),
|
|
1186
1220
|
tabindex: "0",
|
|
1187
|
-
onClick:
|
|
1188
|
-
onKeyup:
|
|
1189
|
-
}, null, 42,
|
|
1221
|
+
onClick: L((h) => e.selectColumn(o), ["stop"]),
|
|
1222
|
+
onKeyup: S((h) => e.selectColumn(o), ["enter"])
|
|
1223
|
+
}, null, 42, tt))
|
|
1190
1224
|
], 6))), 128))
|
|
1191
1225
|
])
|
|
1192
1226
|
], 4),
|
|
1193
1227
|
a("tbody", {
|
|
1194
|
-
onClick:
|
|
1195
|
-
onKeydown:
|
|
1228
|
+
onClick: t[11] || (t[11] = (...l) => e.closeAllDropdowns && e.closeAllDropdowns(...l)),
|
|
1229
|
+
onKeydown: t[12] || (t[12] = (l) => e.navigateCell(l))
|
|
1196
1230
|
}, [
|
|
1197
|
-
(c(!0), u(
|
|
1231
|
+
(c(!0), u(F, null, k(e.visibleRows, (l, o) => (c(), u("tr", {
|
|
1198
1232
|
key: `tbody_${o}`,
|
|
1199
1233
|
"data-row": o % 2 === 0 ? "odd" : "even",
|
|
1200
|
-
class:
|
|
1234
|
+
class: N(`tr_${s.uid}`),
|
|
1201
1235
|
style: g(`${o % 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}`}`)
|
|
1202
1236
|
}, [
|
|
1203
1237
|
a("td", {
|
|
1204
1238
|
class: "vue-ui-table-td-iteration",
|
|
1205
1239
|
"data-row": o % 2 === 0 ? "odd" : "even"
|
|
1206
|
-
}, d(l.absoluteIndex + 1), 9,
|
|
1207
|
-
(c(!0), u(
|
|
1240
|
+
}, d(l.absoluteIndex + 1), 9, nt),
|
|
1241
|
+
(c(!0), u(F, null, k(l.td, (h, y) => (c(), u("td", {
|
|
1208
1242
|
"data-row": o % 2 === 0 ? "odd" : "even",
|
|
1209
|
-
key: `td_${o}_${
|
|
1210
|
-
style: g(e.isNumeric(h) || r.dataset.header[
|
|
1211
|
-
onClick: (
|
|
1243
|
+
key: `td_${o}_${y}`,
|
|
1244
|
+
style: g(e.isNumeric(h) || r.dataset.header[y].type === s.constants.DATE ? "text-align:right;font-variant-numeric: tabular-nums;" : ""),
|
|
1245
|
+
onClick: (C) => e.selectTd({
|
|
1212
1246
|
td: h,
|
|
1213
1247
|
rowIndex: o,
|
|
1214
|
-
colIndex:
|
|
1215
|
-
headerType: r.dataset.header[
|
|
1216
|
-
event:
|
|
1248
|
+
colIndex: y,
|
|
1249
|
+
headerType: r.dataset.header[y].type,
|
|
1250
|
+
event: C
|
|
1217
1251
|
}),
|
|
1218
1252
|
onKeyup: [
|
|
1219
|
-
|
|
1253
|
+
S((C) => e.selectTd({
|
|
1220
1254
|
td: h,
|
|
1221
1255
|
rowIndex: o,
|
|
1222
|
-
colIndex:
|
|
1223
|
-
headerType: r.dataset.header[
|
|
1224
|
-
event:
|
|
1256
|
+
colIndex: y,
|
|
1257
|
+
headerType: r.dataset.header[y].type,
|
|
1258
|
+
event: C
|
|
1225
1259
|
}), ["enter"]),
|
|
1226
|
-
|
|
1260
|
+
S((C) => e.selectTd({
|
|
1227
1261
|
td: h,
|
|
1228
1262
|
rowIndex: o,
|
|
1229
|
-
colIndex:
|
|
1230
|
-
headerType: r.dataset.header[
|
|
1231
|
-
event:
|
|
1263
|
+
colIndex: y,
|
|
1264
|
+
headerType: r.dataset.header[y].type,
|
|
1265
|
+
event: C
|
|
1232
1266
|
}), ["space"])
|
|
1233
1267
|
],
|
|
1234
|
-
class:
|
|
1235
|
-
id: `cell_${o}_${
|
|
1268
|
+
class: N({ "td-numeric": r.dataset.header[y].type === s.constants.NUMERIC, "td-focusable": !0, "td-has-nan": s.hasNaN[y] }),
|
|
1269
|
+
id: `cell_${o}_${y}_${s.uid}`,
|
|
1236
1270
|
tabindex: "0"
|
|
1237
1271
|
}, [
|
|
1238
|
-
l.meta && l.meta.markerIndices.includes(
|
|
1272
|
+
l.meta && l.meta.markerIndices.includes(y) && l.meta.unicodeIcon ? (c(), u("span", {
|
|
1239
1273
|
key: 0,
|
|
1240
1274
|
style: g(`color:${l.meta.color};margin-right:3px`),
|
|
1241
1275
|
innerHTML: l.meta.unicodeIcon
|
|
1242
|
-
}, null, 12,
|
|
1243
|
-
r.dataset.header[
|
|
1276
|
+
}, null, 12, ot)) : b("", !0),
|
|
1277
|
+
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span", lt, d(r.dataset.header[y].prefix) + " " + d(new Date(h).toLocaleString().slice(0, 10)) + " " + d(r.dataset.header[y].suffix), 1)) : r.dataset.header[y].isPercentage ? (c(), u("span", at, d(e.dataLabel({
|
|
1244
1278
|
v: Number(h * 100),
|
|
1245
1279
|
s: "%",
|
|
1246
|
-
r: r.dataset.header[
|
|
1247
|
-
})), 1)) :
|
|
1280
|
+
r: r.dataset.header[y].decimals
|
|
1281
|
+
})), 1)) : s.percentages[y] && r.dataset.header[y].percentageTo && !r.dataset.header[y].isPercentage ? (c(), u("span", {
|
|
1248
1282
|
key: 3,
|
|
1249
|
-
class:
|
|
1250
|
-
}, d(isNaN(Number(h)) ? `${h} is not ${
|
|
1251
|
-
p: r.dataset.header[
|
|
1283
|
+
class: N({ "td-nan": isNaN(Number(h)) })
|
|
1284
|
+
}, d(isNaN(Number(h)) ? `${h} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1285
|
+
p: r.dataset.header[y].prefix,
|
|
1252
1286
|
v: Number(h),
|
|
1253
|
-
s: r.dataset.header[
|
|
1254
|
-
r: r.dataset.header[
|
|
1287
|
+
s: r.dataset.header[y].suffix,
|
|
1288
|
+
r: r.dataset.header[y].decimals
|
|
1255
1289
|
})) + " (" + d(isNaN(Number(h)) ? "" : e.dataLabel({
|
|
1256
|
-
v: Number(h / e.getSum(
|
|
1290
|
+
v: Number(h / e.getSum(s.percentages[y].referenceIndex) * 100),
|
|
1257
1291
|
s: "%",
|
|
1258
|
-
r: r.dataset.header[
|
|
1259
|
-
})) + ") ", 3)) : r.dataset.header[
|
|
1292
|
+
r: r.dataset.header[y].decimals
|
|
1293
|
+
})) + ") ", 3)) : r.dataset.header[y].type === s.constants.NUMERIC ? (c(), u("span", {
|
|
1260
1294
|
key: 4,
|
|
1261
|
-
class:
|
|
1262
|
-
}, d(isNaN(Number(h)) ? `${h} is not ${
|
|
1263
|
-
p: r.dataset.header[
|
|
1264
|
-
v: Number(h.toFixed(r.dataset.header[
|
|
1265
|
-
s: r.dataset.header[
|
|
1266
|
-
r: r.dataset.header[
|
|
1267
|
-
})), 3)) : (c(), u("span",
|
|
1268
|
-
], 46,
|
|
1269
|
-
], 14,
|
|
1295
|
+
class: N({ "td-nan": isNaN(Number(h)) })
|
|
1296
|
+
}, d(isNaN(Number(h)) ? `${h} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1297
|
+
p: r.dataset.header[y].prefix,
|
|
1298
|
+
v: Number(h.toFixed(r.dataset.header[y].decimals)),
|
|
1299
|
+
s: r.dataset.header[y].suffix,
|
|
1300
|
+
r: r.dataset.header[y].decimals
|
|
1301
|
+
})), 3)) : (c(), u("span", it, d(r.dataset.header[y].prefix) + " " + d(h) + " " + d(r.dataset.header[y].suffix), 1))
|
|
1302
|
+
], 46, rt))), 128))
|
|
1303
|
+
], 14, st))), 128))
|
|
1270
1304
|
], 32)
|
|
1271
1305
|
])
|
|
1272
1306
|
], 4),
|
|
1273
1307
|
a("div", {
|
|
1274
|
-
class:
|
|
1308
|
+
class: N({ "td-selector-info": !0, "td-selector-info--active": s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length }),
|
|
1275
1309
|
style: g(`background:${e.FINAL_CONFIG.style.infoBar.backgroundColor};color:${e.FINAL_CONFIG.style.infoBar.color}`)
|
|
1276
1310
|
}, [
|
|
1277
|
-
|
|
1311
|
+
s.currentSelectionSpan.col !== void 0 && s.currentSelectionSpan.rows.length ? (c(), u(F, { key: 0 }, [
|
|
1278
1312
|
a("div", {
|
|
1279
1313
|
innerHTML: e.icons.table,
|
|
1280
1314
|
class: "td-selector-icon"
|
|
1281
|
-
}, null, 8,
|
|
1315
|
+
}, null, 8, ct),
|
|
1282
1316
|
a("span", null, [
|
|
1283
1317
|
a("b", null, [
|
|
1284
|
-
w(d(r.dataset.header[
|
|
1285
|
-
r.dataset.header[
|
|
1318
|
+
w(d(r.dataset.header[s.currentSelectionSpan.col].name) + " ", 1),
|
|
1319
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span", ut, " / " + d(r.dataset.header[s.percentages[s.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
|
|
1286
1320
|
]),
|
|
1287
|
-
a("span",
|
|
1321
|
+
a("span", ht, [
|
|
1288
1322
|
w(d(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1289
|
-
a("b",
|
|
1323
|
+
a("b", dt, d(s.currentSelectionSpan.rows.length), 1)
|
|
1290
1324
|
]),
|
|
1291
|
-
a("span",
|
|
1325
|
+
a("span", gt, [
|
|
1292
1326
|
w(d(e.FINAL_CONFIG.translations.sum) + " : ", 1),
|
|
1293
|
-
r.dataset.header[
|
|
1294
|
-
r.dataset.header[
|
|
1327
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", mt, d(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", yt, d(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.sumRegular) + " " + d(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1328
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", bt, "%")) : b("", !0)
|
|
1295
1329
|
]),
|
|
1296
|
-
a("span",
|
|
1330
|
+
a("span", ft, [
|
|
1297
1331
|
w(d(e.FINAL_CONFIG.translations.average) + " : ", 1),
|
|
1298
|
-
r.dataset.header[
|
|
1299
|
-
r.dataset.header[
|
|
1332
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", pt, d(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", Nt, d(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.averageRegular) + " " + d(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1333
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Ct, "%")) : b("", !0)
|
|
1300
1334
|
])
|
|
1301
1335
|
]),
|
|
1302
1336
|
a("button", {
|
|
1303
|
-
onClick:
|
|
1337
|
+
onClick: t[13] || (t[13] = (...l) => e.resetSelection && e.resetSelection(...l)),
|
|
1304
1338
|
class: "td-selector-info-reset",
|
|
1305
1339
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
1306
1340
|
}, " ✖ ", 4)
|
|
1307
1341
|
], 64)) : b("", !0)
|
|
1308
1342
|
], 6),
|
|
1309
|
-
|
|
1343
|
+
s.bodyCopy.length > 10 ? (c(), u("div", It, [
|
|
1310
1344
|
w(d(e.FINAL_CONFIG.translations.totalRows) + " : " + d(r.dataset.body.length) + " | " + d(e.FINAL_CONFIG.translations.paginatorLabel) + " : ", 1),
|
|
1311
|
-
|
|
1345
|
+
s.bodyCopy.length > 10 ? O((c(), u("select", {
|
|
1312
1346
|
key: 0,
|
|
1313
1347
|
id: "paginatorSelector",
|
|
1314
|
-
"onUpdate:modelValue":
|
|
1315
|
-
onChange:
|
|
1348
|
+
"onUpdate:modelValue": t[14] || (t[14] = (l) => s.itemsPerPage = l),
|
|
1349
|
+
onChange: t[15] || (t[15] = (l) => {
|
|
1316
1350
|
e.resetSelection(), e.onPageChange();
|
|
1317
1351
|
}),
|
|
1318
1352
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1319
1353
|
}, [
|
|
1320
|
-
(c(!0), u(
|
|
1321
|
-
|
|
1354
|
+
(c(!0), u(F, null, k(s.paginatorOptions, (l, o) => (c(), u(F, null, [
|
|
1355
|
+
s.bodyCopy.length > l || r.dataset.body.length === l ? (c(), u("option", {
|
|
1322
1356
|
key: `paginator_option_${o}`
|
|
1323
1357
|
}, d(l), 1)) : b("", !0)
|
|
1324
1358
|
], 64))), 256))
|
|
1325
1359
|
], 36)), [
|
|
1326
1360
|
[
|
|
1327
|
-
|
|
1328
|
-
|
|
1361
|
+
te,
|
|
1362
|
+
s.itemsPerPage,
|
|
1329
1363
|
void 0,
|
|
1330
1364
|
{ number: !0 }
|
|
1331
1365
|
]
|
|
1332
1366
|
]) : b("", !0)
|
|
1333
1367
|
])) : b("", !0),
|
|
1334
|
-
|
|
1368
|
+
s.itemsPerPage >= 250 ? (c(), u("div", Ft, [
|
|
1335
1369
|
a("span", {
|
|
1336
1370
|
innerHTML: e.icons.warning
|
|
1337
|
-
}, null, 8,
|
|
1371
|
+
}, null, 8, vt),
|
|
1338
1372
|
w(d(e.FINAL_CONFIG.translations.sizeWarning), 1)
|
|
1339
1373
|
])) : b("", !0),
|
|
1340
1374
|
e.pages.length > 1 && e.pages.length <= 10 ? (c(), u("div", {
|
|
1341
1375
|
key: 3,
|
|
1342
1376
|
class: "vue-ui-table-navigation-indicator",
|
|
1343
|
-
style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${
|
|
1377
|
+
style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${s.currentPage / (e.pages.length - 1) * 100}%)`)
|
|
1344
1378
|
}, null, 4)) : b("", !0),
|
|
1345
|
-
e.pages.length > 1 ? (c(), u("div",
|
|
1379
|
+
e.pages.length > 1 ? (c(), u("div", wt, [
|
|
1346
1380
|
a("button", {
|
|
1347
1381
|
class: "vue-ui-table-navigation",
|
|
1348
|
-
onClick:
|
|
1382
|
+
onClick: t[16] || (t[16] = L((l) => e.navigate("previous"), ["stop"])),
|
|
1349
1383
|
innerHTML: e.icons.chevronLeft,
|
|
1350
|
-
disabled:
|
|
1351
|
-
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${
|
|
1352
|
-
}, null, 12,
|
|
1353
|
-
e.pages.length > 3 ? (c(), u(
|
|
1384
|
+
disabled: s.currentPage === 0,
|
|
1385
|
+
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}`)
|
|
1386
|
+
}, null, 12, _t),
|
|
1387
|
+
e.pages.length > 3 ? (c(), u(F, { key: 0 }, [
|
|
1354
1388
|
a("button", {
|
|
1355
1389
|
class: "vue-ui-table-navigation",
|
|
1356
|
-
onClick:
|
|
1357
|
-
disabled:
|
|
1358
|
-
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${
|
|
1359
|
-
}, " 1 ", 12,
|
|
1360
|
-
e.pages.length > 10 ? (c(), u("div",
|
|
1361
|
-
a("label",
|
|
1390
|
+
onClick: t[17] || (t[17] = L((l) => e.navigate(1), ["stop"])),
|
|
1391
|
+
disabled: s.currentPage === 0,
|
|
1392
|
+
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}`)
|
|
1393
|
+
}, " 1 ", 12, kt),
|
|
1394
|
+
e.pages.length > 10 ? (c(), u("div", Ot, [
|
|
1395
|
+
a("label", St, d(e.FINAL_CONFIG.translations.page) + " " + d(s.currentPage + 1) + " / " + d(e.pages.length), 1),
|
|
1362
1396
|
a("input", {
|
|
1363
1397
|
class: "vue-ui-table-page-scroller",
|
|
1364
1398
|
id: "pageScroller",
|
|
@@ -1366,84 +1400,84 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1366
1400
|
step: "1",
|
|
1367
1401
|
min: 0,
|
|
1368
1402
|
max: e.pages.length - 1,
|
|
1369
|
-
onInput:
|
|
1370
|
-
value:
|
|
1403
|
+
onInput: t[18] || (t[18] = (l) => e.updateCurrentPage(l)),
|
|
1404
|
+
value: s.currentPage,
|
|
1371
1405
|
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}`)
|
|
1372
|
-
}, null, 44,
|
|
1373
|
-
])) : (c(), u("span",
|
|
1406
|
+
}, null, 44, Lt)
|
|
1407
|
+
])) : (c(), u("span", At, d(e.FINAL_CONFIG.translations.page) + " " + d(s.currentPage + 1) + " / " + d(e.pages.length), 1)),
|
|
1374
1408
|
a("button", {
|
|
1375
1409
|
class: "vue-ui-table-navigation",
|
|
1376
|
-
onClick:
|
|
1377
|
-
disabled:
|
|
1378
|
-
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${
|
|
1379
|
-
}, d(e.pages.length), 13,
|
|
1380
|
-
], 64)) : (c(), u(
|
|
1381
|
-
w(d(e.FINAL_CONFIG.translations.page) + " " + d(
|
|
1410
|
+
onClick: t[19] || (t[19] = L((l) => e.navigate(e.pages.length), ["stop"])),
|
|
1411
|
+
disabled: s.currentPage === e.pages.length - 1,
|
|
1412
|
+
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}`)
|
|
1413
|
+
}, d(e.pages.length), 13, Mt)
|
|
1414
|
+
], 64)) : (c(), u(F, { key: 1 }, [
|
|
1415
|
+
w(d(e.FINAL_CONFIG.translations.page) + " " + d(s.currentPage + 1) + " / " + d(e.pages.length), 1)
|
|
1382
1416
|
], 64)),
|
|
1383
1417
|
a("button", {
|
|
1384
1418
|
class: "vue-ui-table-navigation",
|
|
1385
|
-
onClick:
|
|
1419
|
+
onClick: t[20] || (t[20] = L((l) => e.navigate("next"), ["stop"])),
|
|
1386
1420
|
innerHTML: e.icons.chevronRight,
|
|
1387
|
-
disabled:
|
|
1388
|
-
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${
|
|
1389
|
-
}, null, 12,
|
|
1421
|
+
disabled: s.currentPage === e.pages.length - 1,
|
|
1422
|
+
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}`)
|
|
1423
|
+
}, null, 12, Dt)
|
|
1390
1424
|
])) : b("", !0),
|
|
1391
|
-
|
|
1425
|
+
s.showChart && e.canChart ? (c(), u("div", {
|
|
1392
1426
|
key: 5,
|
|
1393
1427
|
class: "vue-ui-table-chart-modal",
|
|
1394
|
-
style: g(`width: ${
|
|
1428
|
+
style: g(`width: ${s.modalWidth}px;top:${s.clientY}px; left:${s.clientX}px;background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1395
1429
|
}, [
|
|
1396
1430
|
a("div", {
|
|
1397
1431
|
class: "modal-drag-handle",
|
|
1398
|
-
onMousedown:
|
|
1432
|
+
onMousedown: t[22] || (t[22] = (...l) => e.dragMouseDown && e.dragMouseDown(...l))
|
|
1399
1433
|
}, [
|
|
1400
1434
|
a("span", {
|
|
1401
1435
|
innerHTML: e.icons.grip
|
|
1402
|
-
}, null, 8,
|
|
1436
|
+
}, null, 8, Gt),
|
|
1403
1437
|
a("button", {
|
|
1404
1438
|
class: "close-chart-modal",
|
|
1405
|
-
onClick:
|
|
1439
|
+
onClick: t[21] || (t[21] = (l) => s.showChart = !1)
|
|
1406
1440
|
}, "✖")
|
|
1407
1441
|
], 32),
|
|
1408
1442
|
a("button", {
|
|
1409
1443
|
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}`]),
|
|
1410
1444
|
class: "close-chart-modal",
|
|
1411
|
-
onClick:
|
|
1445
|
+
onClick: t[23] || (t[23] = (l) => s.showChart = !1)
|
|
1412
1446
|
}, " ✖ ", 4),
|
|
1413
|
-
a("div",
|
|
1447
|
+
a("div", xt, [
|
|
1414
1448
|
e.availableDonutCategories.length ? (c(), u("button", {
|
|
1415
1449
|
key: 0,
|
|
1416
|
-
onClick:
|
|
1450
|
+
onClick: t[24] || (t[24] = (l) => s.showDonutOptions = !0),
|
|
1417
1451
|
innerHTML: e.icons.donut,
|
|
1418
|
-
class:
|
|
1419
|
-
style: g(`background:${
|
|
1420
|
-
}, null, 14,
|
|
1452
|
+
class: N({ "is-active-chart": s.chart.type === s.constants.DONUT || s.showDonutOptions }),
|
|
1453
|
+
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}`)
|
|
1454
|
+
}, null, 14, Tt)) : b("", !0),
|
|
1421
1455
|
a("button", {
|
|
1422
|
-
onClick:
|
|
1423
|
-
|
|
1456
|
+
onClick: t[25] || (t[25] = (l) => {
|
|
1457
|
+
s.chart.type = s.constants.LINE, s.showDonutOptions = !1;
|
|
1424
1458
|
}),
|
|
1425
1459
|
innerHTML: e.icons.chart,
|
|
1426
|
-
class:
|
|
1427
|
-
style: g(`background:${
|
|
1428
|
-
}, null, 14,
|
|
1460
|
+
class: N({ "is-active-chart": s.chart.type === s.constants.LINE && !s.showDonutOptions }),
|
|
1461
|
+
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}`)
|
|
1462
|
+
}, null, 14, Et),
|
|
1429
1463
|
a("button", {
|
|
1430
|
-
onClick:
|
|
1431
|
-
|
|
1464
|
+
onClick: t[26] || (t[26] = (l) => {
|
|
1465
|
+
s.chart.type = s.constants.BAR, s.showDonutOptions = !1;
|
|
1432
1466
|
}),
|
|
1433
1467
|
innerHTML: e.icons.bar,
|
|
1434
|
-
class:
|
|
1435
|
-
style: g(`background:${
|
|
1436
|
-
}, null, 14,
|
|
1468
|
+
class: N({ "is-active-chart": s.chart.type === s.constants.BAR && !s.showDonutOptions }),
|
|
1469
|
+
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}`)
|
|
1470
|
+
}, null, 14, Pt)
|
|
1437
1471
|
]),
|
|
1438
|
-
a("div",
|
|
1439
|
-
|
|
1472
|
+
a("div", Bt, [
|
|
1473
|
+
s.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
|
|
1440
1474
|
key: 0,
|
|
1441
1475
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1442
1476
|
}, [
|
|
1443
|
-
a("fieldset",
|
|
1477
|
+
a("fieldset", Ht, [
|
|
1444
1478
|
a("legend", null, d(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
|
|
1445
|
-
a("div",
|
|
1446
|
-
(c(!0), u(
|
|
1479
|
+
a("div", Rt, [
|
|
1480
|
+
(c(!0), u(F, null, k(e.availableDonutCategories, (l, o) => (c(), u("div", {
|
|
1447
1481
|
key: `donut_radio_${o}`,
|
|
1448
1482
|
class: "vue-ui-table-fieldset-option"
|
|
1449
1483
|
}, [
|
|
@@ -1451,48 +1485,48 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1451
1485
|
type: "radio",
|
|
1452
1486
|
name: l.name,
|
|
1453
1487
|
id: l.name,
|
|
1454
|
-
checked:
|
|
1455
|
-
onInput: (h) =>
|
|
1488
|
+
checked: s.selectedDonutCategory && l.name === s.selectedDonutCategory.name,
|
|
1489
|
+
onInput: (h) => s.selectedDonutCategory = e.availableDonutCategories[o],
|
|
1456
1490
|
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}`)
|
|
1457
|
-
}, null, 44,
|
|
1491
|
+
}, null, 44, zt),
|
|
1458
1492
|
a("label", {
|
|
1459
1493
|
for: l.name
|
|
1460
|
-
}, d(l.name), 9,
|
|
1494
|
+
}, d(l.name), 9, Ut)
|
|
1461
1495
|
]))), 128))
|
|
1462
1496
|
]),
|
|
1463
1497
|
a("button", {
|
|
1464
1498
|
class: "vue-ui-table-generate-donut",
|
|
1465
|
-
disabled: !
|
|
1466
|
-
onClick:
|
|
1499
|
+
disabled: !s.selectedDonutCategory,
|
|
1500
|
+
onClick: t[27] || (t[27] = (...l) => e.applyDonutOption && e.applyDonutOption(...l)),
|
|
1467
1501
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.color}`)
|
|
1468
1502
|
}, [
|
|
1469
1503
|
a("div", {
|
|
1470
1504
|
style: { "margin-bottom": "-3px" },
|
|
1471
1505
|
innerHTML: e.icons.donut
|
|
1472
|
-
}, null, 8,
|
|
1506
|
+
}, null, 8, Xt),
|
|
1473
1507
|
w(" " + d(e.FINAL_CONFIG.translations.makeDonut), 1)
|
|
1474
|
-
], 12,
|
|
1508
|
+
], 12, Vt)
|
|
1475
1509
|
])
|
|
1476
1510
|
], 4)) : b("", !0),
|
|
1477
|
-
[
|
|
1478
|
-
a("div",
|
|
1479
|
-
|
|
1511
|
+
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(F, { key: 1 }, [
|
|
1512
|
+
a("div", jt, [
|
|
1513
|
+
s.chart.type === s.constants.LINE ? (c(), P(f, {
|
|
1480
1514
|
key: 0,
|
|
1481
1515
|
dataset: e.chartData.xyDatasetLine,
|
|
1482
1516
|
config: e.chartData.xyConfig
|
|
1483
1517
|
}, null, 8, ["dataset", "config"])) : b("", !0),
|
|
1484
|
-
|
|
1518
|
+
s.chart.type === s.constants.BAR ? (c(), P(f, {
|
|
1485
1519
|
key: 1,
|
|
1486
1520
|
dataset: e.chartData.xyDatasetBar,
|
|
1487
1521
|
config: e.chartData.xyConfig
|
|
1488
1522
|
}, null, 8, ["dataset", "config"])) : b("", !0)
|
|
1489
1523
|
]),
|
|
1490
|
-
|
|
1524
|
+
s.currentSelectionSpan.rows.length >= 2 ? (c(), u("div", {
|
|
1491
1525
|
key: 0,
|
|
1492
1526
|
class: "chart-trend",
|
|
1493
1527
|
style: g(`color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1494
1528
|
}, [
|
|
1495
|
-
|
|
1529
|
+
t[36] || (t[36] = a("span", null, "---", -1)),
|
|
1496
1530
|
w(" Trend: " + d(e.dataLabel({
|
|
1497
1531
|
v: e.chartData.progression.trend,
|
|
1498
1532
|
s: "%",
|
|
@@ -1500,9 +1534,9 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1500
1534
|
})), 1)
|
|
1501
1535
|
], 4)) : b("", !0)
|
|
1502
1536
|
], 64)) : b("", !0),
|
|
1503
|
-
[
|
|
1504
|
-
|
|
1505
|
-
dataset:
|
|
1537
|
+
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div", Yt, [
|
|
1538
|
+
E(_, {
|
|
1539
|
+
dataset: s.currentDonut,
|
|
1506
1540
|
config: e.chartData.donutConfig
|
|
1507
1541
|
}, null, 8, ["dataset", "config"])
|
|
1508
1542
|
])) : b("", !0)
|
|
@@ -1510,7 +1544,7 @@ function Xt(n, s, r, i, t, e) {
|
|
|
1510
1544
|
], 4)) : b("", !0)
|
|
1511
1545
|
], 4);
|
|
1512
1546
|
}
|
|
1513
|
-
const
|
|
1547
|
+
const ts = /* @__PURE__ */ se(ne, [["render", Wt], ["__scopeId", "data-v-24575fa8"]]);
|
|
1514
1548
|
export {
|
|
1515
|
-
|
|
1549
|
+
ts as default
|
|
1516
1550
|
};
|