vue-data-ui 3.2.1 → 3.2.3
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-cyyFTTnm.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Bf6A6G_f.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-D2f9w5Z5.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-xISHA7Pu.js → DataTable-BvjacRbw.js} +10 -10
- package/dist/{Legend-_Rv594VS.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DiM4-9ju.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-BB7joYAK.js → PackageVersion-oBQ8brnx.js} +1 -1
- package/dist/{PenAndPaper-CtDMyIvW.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-BDy56-wS.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-qM5l8BsU.js → Slicer-BA2GhOmY.js} +68 -68
- package/dist/{SparkTooltip-DOFGBHJ-.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-BIaVNiUQ.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-Clf2K3CF.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-Bn3u4JQu.js → UserOptions-DsTgvAok.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +5 -0
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CSg_eTqL.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-CH7J0fYg.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-p5pfHmOX.js → lib-BEpWEyMm.js} +351 -368
- package/dist/{pdf-Wd2BQz4D.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +24 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-VqESrzQg.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-7BbqoAYu.js → useNestedProp-CLD3Gk9S.js} +24 -7
- package/dist/{usePrinter-Yeu5jOfm.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-DyqIdFbp.js → vue-data-ui-hSWsJzdK.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-BrlJjJDI.js → vue-ui-3d-bar-B45AYk-O.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-BDIMacvP.js → vue-ui-age-pyramid-CJ66TbYc.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-CIJw4kXd.js → vue-ui-bullet-D_V1l1Jt.js} +15 -15
- package/dist/{vue-ui-candlestick-ZjLiyYpC.js → vue-ui-candlestick-DrkWrGT2.js} +33 -33
- package/dist/{vue-ui-carousel-table-_-qalKHa.js → vue-ui-carousel-table-0zk2YkV7.js} +4 -4
- package/dist/{vue-ui-chestnut-XkX5ANAN.js → vue-ui-chestnut-CAGkS9Lt.js} +33 -33
- package/dist/{vue-ui-chord-B1vFXFgp.js → vue-ui-chord-CHAaUGaZ.js} +54 -54
- package/dist/{vue-ui-circle-pack-8J10Q6-I.js → vue-ui-circle-pack-CBySiQot.js} +31 -31
- package/dist/{vue-ui-cursor-CQp6B13J.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-CTEYSHVA.js → vue-ui-dashboard-BAOd1hi1.js} +69 -69
- package/dist/{vue-ui-digits-B4aZJw8I.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-d_XvnIQB.js → vue-ui-donut-BgYaWImK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-Bz7fLQru.js → vue-ui-donut-evolution-UWyvIsbE.js} +55 -55
- package/dist/{vue-ui-dumbbell-fDl24oQq.js → vue-ui-dumbbell-B5IHRXdS.js} +7 -7
- package/dist/{vue-ui-flow-NYnnPoDX.js → vue-ui-flow-DB4sLZG4.js} +63 -63
- package/dist/{vue-ui-funnel-BWPIKyW8.js → vue-ui-funnel-COZLSfZ8.js} +37 -37
- package/dist/{vue-ui-galaxy-LabscC7n.js → vue-ui-galaxy-S8pIdU78.js} +46 -46
- package/dist/{vue-ui-gauge-DXETakZJ.js → vue-ui-gauge-BVaE3IZt.js} +59 -59
- package/dist/{vue-ui-gizmo-DZgMzP_e.js → vue-ui-gizmo-BmJ01zdG.js} +3 -3
- package/dist/{vue-ui-heatmap-C6Z5wEkZ.js → vue-ui-heatmap-DiAryN8L.js} +8 -8
- package/dist/{vue-ui-history-plot-CUGzhcjr.js → vue-ui-history-plot-eeYk4C28.js} +44 -44
- package/dist/{vue-ui-kpi-DklTxULP.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-D22vfM5g.js → vue-ui-mini-loader-CKMzFSG5.js} +5 -5
- package/dist/{vue-ui-molecule-BAH7NOZP.js → vue-ui-molecule-daI3rmbc.js} +6 -6
- package/dist/{vue-ui-mood-radar-DWZKM2u0.js → vue-ui-mood-radar-CawOBU0s.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CxUSyTrT.js → vue-ui-nested-donuts-Ci7qxsh6.js} +70 -70
- package/dist/{vue-ui-onion-BfzkGOmQ.js → vue-ui-onion-CUkVuewC.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Dnl2GBps.js → vue-ui-parallel-coordinate-plot-D7UkjkUV.js} +35 -35
- package/dist/{vue-ui-quadrant-C_3l8xWm.js → vue-ui-quadrant-B9VZz5d6.js} +8 -8
- package/dist/{vue-ui-quick-chart-E6QujRg4.js → vue-ui-quick-chart-BQgH4Aap.js} +55 -55
- package/dist/{vue-ui-radar-C_yLoJvR.js → vue-ui-radar-DvZ8XcZC.js} +54 -54
- package/dist/{vue-ui-rating-Df02iNbL.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-CBIXCwQb.js → vue-ui-relation-circle-Bal5QL_Z.js} +28 -28
- package/dist/{vue-ui-ridgeline-euhLcVI0.js → vue-ui-ridgeline-DbRZFJcN.js} +27 -27
- package/dist/{vue-ui-rings-BGxjmMDw.js → vue-ui-rings-BJ_Dmy5i.js} +38 -38
- package/dist/{vue-ui-scatter-CO4kXKZF.js → vue-ui-scatter-bljL9Bav.js} +50 -50
- package/dist/{vue-ui-skeleton-DrCI1AAl.js → vue-ui-skeleton-DZPi12tE.js} +3 -3
- package/dist/{vue-ui-smiley-FPLXOxew.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4dDN0Sc.js → vue-ui-spark-trend-CqMF642_.js} +22 -22
- package/dist/{vue-ui-sparkbar-BEXrQvP0.js → vue-ui-sparkbar-BcyaivMe.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cp4-BTZu.js → vue-ui-sparkgauge-BkIUpzkZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BwmKv4YF.js → vue-ui-sparkhistogram-DnPdJk3e.js} +4 -4
- package/dist/{vue-ui-sparkline-BXZJ-fUn.js → vue-ui-sparkline-F7h636hU.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-Cie2g7gk.js → vue-ui-sparkstackbar-B-Du5D3w.js} +3 -3
- package/dist/{vue-ui-stackbar-B137wy4q.js → vue-ui-stackbar-BNOfLkY2.js} +38 -38
- package/dist/{vue-ui-strip-plot-Dd1aHpFW.js → vue-ui-strip-plot-DNPM01M_.js} +7 -7
- package/dist/{vue-ui-table-CduckNVX.js → vue-ui-table-__ABUm9x.js} +196 -156
- package/dist/{vue-ui-table-heatmap-DZAkUjty.js → vue-ui-table-heatmap-D-iueyM0.js} +14 -14
- package/dist/{vue-ui-table-sparkline-D6oTAFEO.js → vue-ui-table-sparkline-B5QdvlV7.js} +5 -5
- package/dist/{vue-ui-thermometer-BmK3_O7T.js → vue-ui-thermometer-DID_4Y6w.js} +10 -10
- package/dist/{vue-ui-timer-BYw6Z01O.js → vue-ui-timer-CjJmpXoF.js} +27 -27
- package/dist/{vue-ui-tiremarks-CWiME7zn.js → vue-ui-tiremarks-wDKOTVny.js} +6 -6
- package/dist/{vue-ui-treemap-D8PmfJbw.js → vue-ui-treemap-DFo4w0cb.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DRC047BC.js → vue-ui-vertical-bar-BEdckhBh.js} +31 -31
- package/dist/{vue-ui-waffle-DAaBoyx4.js → vue-ui-waffle-D5i1Q6tF.js} +75 -75
- package/dist/vue-ui-wheel-DJlN8joO.js +620 -0
- package/dist/{vue-ui-word-cloud-ByKWZtkV.js → vue-ui-word-cloud-B7Y2UrwO.js} +29 -29
- package/dist/{vue-ui-world-BezpUr_Q.js → vue-ui-world-DzF8YW_Q.js} +6 -6
- package/dist/{vue-ui-xy-DlcJVA22.js → vue-ui-xy-DGln2YgO.js} +900 -822
- package/dist/{vue-ui-xy-canvas-DPfxdanR.js → vue-ui-xy-canvas-DF2Ts-g3.js} +10 -10
- package/package.json +3 -3
- package/dist/ColorPicker-gaAecgEC.js +0 -135
- package/dist/vue-ui-accordion-BSrtaPYx.js +0 -76
- package/dist/vue-ui-annotator-DGVlVhhy.js +0 -2182
- package/dist/vue-ui-wheel-DfNXrsTY.js +0 -587
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as
|
|
1
|
+
import { a2 as U, t as V, m as x, y as X, d as j, r as Y, x as W, a6 as J, h as K, E as Z, p as q } from "./lib-BEpWEyMm.js";
|
|
2
|
+
import { u as Q } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import $ from "./vue-ui-xy-DGln2YgO.js";
|
|
4
|
+
import ee from "./vue-ui-donut-BgYaWImK.js";
|
|
5
|
+
import te from "./BaseIcon-Bz-1GQhu.js";
|
|
6
|
+
import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, createTextVNode as v, 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 P, createBlock as H } from "vue";
|
|
7
7
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const ne = {
|
|
9
9
|
name: "vue-ui-table",
|
|
@@ -21,7 +21,7 @@ const ne = {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
components: { VueUiXy:
|
|
24
|
+
components: { VueUiXy: $, VueUiDonut: ee, BaseIcon: te },
|
|
25
25
|
emits: ["page-change"],
|
|
26
26
|
data() {
|
|
27
27
|
return {
|
|
@@ -79,7 +79,7 @@ const ne = {
|
|
|
79
79
|
itemsPerPage: this.config.rowsPerPage ? this.config.rowsPerPage : 25,
|
|
80
80
|
multiselects: {},
|
|
81
81
|
paginatorOptions: [.../* @__PURE__ */ new Set([10, 25, 50, 100, 250, 500, this.config.rowsPerPage ? this.config.rowsPerPage : 25, this.dataset.body.length])].sort((t, r) => t - r),
|
|
82
|
-
palette:
|
|
82
|
+
palette: q,
|
|
83
83
|
percentages: {},
|
|
84
84
|
rafId: null,
|
|
85
85
|
rangeFilters: {},
|
|
@@ -90,11 +90,13 @@ const ne = {
|
|
|
90
90
|
showChart: !1,
|
|
91
91
|
showDonutOptions: !1,
|
|
92
92
|
sorts: {},
|
|
93
|
+
chartStep: 0,
|
|
94
|
+
chartTimeLabelSourceModel: "",
|
|
93
95
|
tableBody: JSON.parse(JSON.stringify(this.dataset.body)).map((t, r) => ({
|
|
94
96
|
...t,
|
|
95
97
|
absoluteIndex: r
|
|
96
98
|
})),
|
|
97
|
-
tableHead: JSON.parse(JSON.stringify(this.dataset.header)).map((t) => ({
|
|
99
|
+
tableHead: JSON.parse(JSON.stringify(this.dataset.header)).map((t, r) => ({
|
|
98
100
|
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
99
101
|
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
100
102
|
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
@@ -108,8 +110,9 @@ const ne = {
|
|
|
108
110
|
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
109
111
|
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
110
112
|
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
111
|
-
type: t.type
|
|
113
|
+
type: t.type,
|
|
112
114
|
// this attribute is mandatory
|
|
115
|
+
index: r
|
|
113
116
|
})),
|
|
114
117
|
filename: ""
|
|
115
118
|
};
|
|
@@ -137,7 +140,7 @@ Provide an array of objects of type:
|
|
|
137
140
|
}), document.addEventListener("keydown", (n) => {
|
|
138
141
|
const t = document.activeElement;
|
|
139
142
|
(t && Array.from(t.classList).includes("td-focusable") && n.key.includes("Arrow") || n.code === "Space") && n.preventDefault();
|
|
140
|
-
}), this.filename = this.FINAL_CONFIG.style.exportMenu.filename;
|
|
143
|
+
}), this.filename = this.FINAL_CONFIG.style.exportMenu.filename, this.chartTimeLabelSourceModel = this.dateHeaders[0]?.name ?? "";
|
|
141
144
|
},
|
|
142
145
|
watch: {
|
|
143
146
|
isExportRequest: function(n) {
|
|
@@ -159,7 +162,7 @@ Provide an array of objects of type:
|
|
|
159
162
|
})), this.tableBody = JSON.parse(JSON.stringify(n.body)).map((t, r) => ({
|
|
160
163
|
...t,
|
|
161
164
|
absoluteIndex: r
|
|
162
|
-
})), this.tableHead = JSON.parse(JSON.stringify(n.header)).map((t) => ({
|
|
165
|
+
})), this.tableHead = JSON.parse(JSON.stringify(n.header)).map((t, r) => ({
|
|
163
166
|
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
164
167
|
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
165
168
|
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
@@ -172,7 +175,8 @@ Provide an array of objects of type:
|
|
|
172
175
|
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
173
176
|
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
174
177
|
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
175
|
-
type: t.type
|
|
178
|
+
type: t.type,
|
|
179
|
+
index: r
|
|
176
180
|
})), 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, () => {
|
|
177
181
|
this.$forceUpdate(), this.updateCurrentPage(), this.isLoading = !1;
|
|
178
182
|
});
|
|
@@ -183,6 +187,19 @@ Provide an array of objects of type:
|
|
|
183
187
|
}
|
|
184
188
|
},
|
|
185
189
|
computed: {
|
|
190
|
+
dateHeaders() {
|
|
191
|
+
return [...this.tableHead].filter((n) => n.type === this.constants.DATE);
|
|
192
|
+
},
|
|
193
|
+
chartTimeLabelOptions() {
|
|
194
|
+
return ["", ...this.dateHeaders.map((n) => n.name)];
|
|
195
|
+
},
|
|
196
|
+
chartTimeLabelSourceIndex() {
|
|
197
|
+
const n = this.dateHeaders.find((t) => t.name === this.chartTimeLabelSourceModel);
|
|
198
|
+
return n ? n.index : null;
|
|
199
|
+
},
|
|
200
|
+
chartTimeLabels() {
|
|
201
|
+
return this.chartTimeLabelSourceIndex == null ? [] : this.visibleRows.map((n) => n.td[this.chartTimeLabelSourceIndex]);
|
|
202
|
+
},
|
|
186
203
|
availableDonutCategories() {
|
|
187
204
|
return Object.keys(this.multiselects).map((n) => ({
|
|
188
205
|
index: n,
|
|
@@ -195,10 +212,10 @@ Provide an array of objects of type:
|
|
|
195
212
|
},
|
|
196
213
|
chartData() {
|
|
197
214
|
if (!this.canChart) return [];
|
|
198
|
-
const n = 316, t = 512, r = this.currentSelectionSpan.rows.length, i = t / r, s = Math.max(...this.currentSelectionSpan.rows.map((
|
|
215
|
+
const n = 316, t = 512, r = this.currentSelectionSpan.rows.length, i = t / r, s = Math.max(...this.currentSelectionSpan.rows.map((w) => w.value)), e = Math.min(...this.currentSelectionSpan.rows.map((w) => w.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, d = [
|
|
199
216
|
{
|
|
200
217
|
name: _,
|
|
201
|
-
series: this.currentSelectionSpan.rows.map((
|
|
218
|
+
series: this.currentSelectionSpan.rows.map((w) => w.value),
|
|
202
219
|
type: "line",
|
|
203
220
|
useProgression: !0,
|
|
204
221
|
smooth: this.FINAL_CONFIG.style.chart.layout.line.smooth,
|
|
@@ -208,7 +225,7 @@ Provide an array of objects of type:
|
|
|
208
225
|
], y = [
|
|
209
226
|
{
|
|
210
227
|
name: _,
|
|
211
|
-
series: this.currentSelectionSpan.rows.map((
|
|
228
|
+
series: this.currentSelectionSpan.rows.map((w) => w.value),
|
|
212
229
|
type: "bar",
|
|
213
230
|
useProgression: !0,
|
|
214
231
|
color: this.FINAL_CONFIG.style.chart.layout.bar.fill
|
|
@@ -223,10 +240,17 @@ Provide an array of objects of type:
|
|
|
223
240
|
suffix: o
|
|
224
241
|
},
|
|
225
242
|
grid: {
|
|
226
|
-
stroke:
|
|
243
|
+
stroke: x(p, 0.5),
|
|
227
244
|
labels: {
|
|
228
245
|
color: p,
|
|
229
|
-
xAxisLabels: {
|
|
246
|
+
xAxisLabels: {
|
|
247
|
+
color: p,
|
|
248
|
+
show: this.chartTimeLabels.length,
|
|
249
|
+
values: this.chartTimeLabels,
|
|
250
|
+
datetimeFormatter: this.FINAL_CONFIG.style.chart.layout.datetimeFormatter,
|
|
251
|
+
showOnlyAtModulo: this.FINAL_CONFIG.style.chart.layout.timeLabels.showOnlyAtModulo,
|
|
252
|
+
modulo: this.FINAL_CONFIG.style.chart.layout.timeLabels.modulo
|
|
253
|
+
}
|
|
230
254
|
}
|
|
231
255
|
},
|
|
232
256
|
highlighter: {
|
|
@@ -241,7 +265,7 @@ Provide an array of objects of type:
|
|
|
241
265
|
fontSize: 18
|
|
242
266
|
},
|
|
243
267
|
tooltip: {
|
|
244
|
-
showTimeLabel:
|
|
268
|
+
showTimeLabel: this.chartTimeLabels.length,
|
|
245
269
|
backgroundOpacity: 30,
|
|
246
270
|
color: p,
|
|
247
271
|
backgroundColor: C,
|
|
@@ -257,7 +281,13 @@ Provide an array of objects of type:
|
|
|
257
281
|
annotator: !1
|
|
258
282
|
}
|
|
259
283
|
},
|
|
260
|
-
zoom: {
|
|
284
|
+
zoom: {
|
|
285
|
+
show: this.FINAL_CONFIG.style.chart.layout.zoom.show,
|
|
286
|
+
focusOnDrag: !0,
|
|
287
|
+
minimap: {
|
|
288
|
+
show: !0
|
|
289
|
+
}
|
|
290
|
+
}
|
|
261
291
|
},
|
|
262
292
|
line: {
|
|
263
293
|
labels: {
|
|
@@ -284,14 +314,14 @@ Provide an array of objects of type:
|
|
|
284
314
|
rounding: I
|
|
285
315
|
}
|
|
286
316
|
}
|
|
287
|
-
}, G = e >= 0 ? 0 : Math.abs(e),
|
|
288
|
-
x: i *
|
|
289
|
-
y: (1 - (
|
|
290
|
-
value: M ?
|
|
317
|
+
}, G = e >= 0 ? 0 : Math.abs(e), R = s + G, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, T = this.currentSelectionSpan.rows.map((w, z) => ({
|
|
318
|
+
x: i * z + i / 2,
|
|
319
|
+
y: (1 - (w.value + G) / R) * n,
|
|
320
|
+
value: M ? w.value * 100 : w.value,
|
|
291
321
|
suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
|
|
292
322
|
prefix: this.dataset.header[this.currentSelectionSpan.col].prefix ? this.dataset.header[this.currentSelectionSpan.col].prefix : "",
|
|
293
|
-
index:
|
|
294
|
-
absoluteValue: M ? Math.abs(
|
|
323
|
+
index: w.index,
|
|
324
|
+
absoluteValue: M ? Math.abs(w.value) * 100 : Math.abs(w.value)
|
|
295
325
|
}));
|
|
296
326
|
return {
|
|
297
327
|
donutConfig: {
|
|
@@ -374,9 +404,9 @@ Provide an array of objects of type:
|
|
|
374
404
|
}
|
|
375
405
|
},
|
|
376
406
|
xyConfig: B,
|
|
377
|
-
xyDatasetLine:
|
|
407
|
+
xyDatasetLine: d,
|
|
378
408
|
xyDatasetBar: y,
|
|
379
|
-
progression:
|
|
409
|
+
progression: T.length >= 2 ? this.calcLinearProgression(T) : !1
|
|
380
410
|
};
|
|
381
411
|
},
|
|
382
412
|
hasNumericTypes() {
|
|
@@ -424,7 +454,7 @@ Provide an array of objects of type:
|
|
|
424
454
|
};
|
|
425
455
|
},
|
|
426
456
|
FINAL_CONFIG() {
|
|
427
|
-
const { vue_ui_table: n } =
|
|
457
|
+
const { vue_ui_table: n } = Q();
|
|
428
458
|
if (!Object.keys(this.config || {}).length)
|
|
429
459
|
return n;
|
|
430
460
|
const t = this.treeShake({
|
|
@@ -439,15 +469,15 @@ Provide an array of objects of type:
|
|
|
439
469
|
},
|
|
440
470
|
methods: {
|
|
441
471
|
// lib
|
|
442
|
-
adaptColorToBackground:
|
|
443
|
-
convertColorToHex:
|
|
444
|
-
convertConfigColors:
|
|
445
|
-
createCsvContent:
|
|
446
|
-
darkenHexColor:
|
|
447
|
-
dataLabel:
|
|
448
|
-
downloadCsv:
|
|
449
|
-
lightenHexColor:
|
|
450
|
-
treeShake:
|
|
472
|
+
adaptColorToBackground: Z,
|
|
473
|
+
convertColorToHex: K,
|
|
474
|
+
convertConfigColors: J,
|
|
475
|
+
createCsvContent: W,
|
|
476
|
+
darkenHexColor: Y,
|
|
477
|
+
dataLabel: j,
|
|
478
|
+
downloadCsv: X,
|
|
479
|
+
lightenHexColor: x,
|
|
480
|
+
treeShake: V,
|
|
451
481
|
// specific
|
|
452
482
|
applyDonutOption() {
|
|
453
483
|
const n = this.selectedDonutCategory.options.map((t, r) => ({
|
|
@@ -470,7 +500,7 @@ Provide an array of objects of type:
|
|
|
470
500
|
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);
|
|
471
501
|
this.downloadCsv({ csvContent: s, title: this.filename });
|
|
472
502
|
},
|
|
473
|
-
calcLinearProgression:
|
|
503
|
+
calcLinearProgression: U,
|
|
474
504
|
closeAllDropdowns() {
|
|
475
505
|
const n = document.getElementsByClassName("th-dropdown");
|
|
476
506
|
n.length && Array.from(n).forEach((t) => {
|
|
@@ -501,10 +531,10 @@ Provide an array of objects of type:
|
|
|
501
531
|
return this.rows.map((t) => t[n]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, r) => t + r, 0) / this.bodyCopy.length;
|
|
502
532
|
},
|
|
503
533
|
getDatesRange(n) {
|
|
504
|
-
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}-${_}`,
|
|
534
|
+
const t = this.dataset.body.map((y) => new Date(y.td[n])), r = new Date(Math.min(...t)), i = new Date(Math.max(...t)), s = r.getFullYear(), e = i.getFullYear(), m = String(r.getMonth() + 1).padStart(2, "0"), f = String(i.getMonth() + 1).padStart(2, "0"), _ = String(r.getDate()).padStart(2, "0"), l = String(i.getDate()).padStart(2, "0"), o = `${s}-${m}-${_}`, d = `${e}-${f}-${l}`;
|
|
505
535
|
return {
|
|
506
536
|
from: o,
|
|
507
|
-
to:
|
|
537
|
+
to: d
|
|
508
538
|
};
|
|
509
539
|
},
|
|
510
540
|
getDonutLegendValue(n) {
|
|
@@ -592,11 +622,11 @@ Provide an array of objects of type:
|
|
|
592
622
|
n.preventDefault();
|
|
593
623
|
const t = n.keyCode, r = 38, i = 40, s = 37, e = 39;
|
|
594
624
|
if (![r, i, s, e].includes(t)) return;
|
|
595
|
-
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, _ = m.match(f), l = parseInt(_[1]), o = parseInt(_[2]),
|
|
625
|
+
const m = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, _ = m.match(f), l = parseInt(_[1]), o = parseInt(_[2]), d = 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}`);
|
|
596
626
|
let I;
|
|
597
627
|
switch (!0) {
|
|
598
628
|
case t === e:
|
|
599
|
-
I =
|
|
629
|
+
I = d;
|
|
600
630
|
break;
|
|
601
631
|
case t === s:
|
|
602
632
|
I = y;
|
|
@@ -818,7 +848,7 @@ Provide an array of objects of type:
|
|
|
818
848
|
}, ve = { key: 0 }, we = { class: "th-filter" }, _e = {
|
|
819
849
|
key: 0,
|
|
820
850
|
class: "th-date"
|
|
821
|
-
}, 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" },
|
|
851
|
+
}, 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" }, Te = ["onClick"], xe = ["innerHTML"], Ee = ["innerHTML"], Pe = ["innerHTML"], He = ["onClick", "disabled"], Be = ["placeholder", "onUpdate:modelValue", "name"], Re = ["onClick"], ze = ["innerHTML"], Ue = ["innerHTML"], Ve = ["innerHTML"], Xe = ["onClick", "innerHTML"], je = ["innerHTML"], Ye = {
|
|
822
852
|
key: 5,
|
|
823
853
|
class: "th-range-filter"
|
|
824
854
|
}, 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 = {
|
|
@@ -848,14 +878,14 @@ Provide an array of objects of type:
|
|
|
848
878
|
}, St = {
|
|
849
879
|
for: "pageScroller",
|
|
850
880
|
style: { "font-size": "14px" }
|
|
851
|
-
}, Lt = ["max", "value"], At = { key: 1 }, Mt = ["disabled"], Dt = ["innerHTML", "disabled"], Gt = ["innerHTML"],
|
|
881
|
+
}, Lt = ["max", "value"], At = { key: 1 }, Mt = ["disabled"], Dt = ["innerHTML", "disabled"], Gt = ["innerHTML"], Tt = { class: "chart-modal-options" }, xt = ["innerHTML"], Et = ["innerHTML"], Pt = ["innerHTML"], Ht = {
|
|
852
882
|
style: { width: "100%", height: "fit-content" },
|
|
853
883
|
ref: "chartModal"
|
|
854
|
-
},
|
|
884
|
+
}, Bt = { class: "vue-ui-table-fieldset" }, Rt = { class: "vue-ui-table-fieldset-wrapper" }, zt = ["name", "id", "checked", "onInput"], Ut = ["for"], Vt = ["disabled"], Xt = ["innerHTML"], jt = { key: 0 }, Yt = { style: { width: "100%", "margin-bottom": "12px" } }, Wt = {
|
|
855
885
|
key: 2,
|
|
856
886
|
style: { width: "100%", "margin-bottom": "32px" }
|
|
857
887
|
};
|
|
858
|
-
function
|
|
888
|
+
function Jt(n, t, r, i, s, e) {
|
|
859
889
|
const m = D("BaseIcon"), f = D("VueUiXy"), _ = D("VueUiDonut");
|
|
860
890
|
return c(), u("div", {
|
|
861
891
|
class: "vue-ui-table-main",
|
|
@@ -872,7 +902,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
872
902
|
"data-is-open": s.isExportRequest || "false",
|
|
873
903
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
874
904
|
}, [
|
|
875
|
-
t[
|
|
905
|
+
t[29] || (t[29] = a("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1)),
|
|
876
906
|
a("button", {
|
|
877
907
|
class: "close-dropdown",
|
|
878
908
|
onClick: t[1] || (t[1] = (l) => s.isExportRequest = !1),
|
|
@@ -880,7 +910,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
880
910
|
}, " ✖ ", 4),
|
|
881
911
|
a("div", ae, [
|
|
882
912
|
a("div", ie, [
|
|
883
|
-
a("div", ce,
|
|
913
|
+
a("div", ce, h(e.FINAL_CONFIG.translations.exportAllLabel) + " (" + h(s.bodyCopy.length) + ") ", 1),
|
|
884
914
|
a("button", {
|
|
885
915
|
id: "exportAll",
|
|
886
916
|
onClick: t[2] || (t[2] = (l) => e.createXls("all")),
|
|
@@ -889,11 +919,11 @@ function Wt(n, t, r, i, s, e) {
|
|
|
889
919
|
a("div", {
|
|
890
920
|
innerHTML: e.icons.fileDownload
|
|
891
921
|
}, null, 8, ue),
|
|
892
|
-
a("span", null,
|
|
922
|
+
a("span", null, h(e.FINAL_CONFIG.translations.exportAllButton), 1)
|
|
893
923
|
], 4)
|
|
894
924
|
]),
|
|
895
925
|
a("div", he, [
|
|
896
|
-
a("div", de,
|
|
926
|
+
a("div", de, h(e.FINAL_CONFIG.translations.exportPageLabel), 1),
|
|
897
927
|
a("button", {
|
|
898
928
|
id: "exportPage",
|
|
899
929
|
onClick: t[3] || (t[3] = (l) => e.createXls("page")),
|
|
@@ -902,12 +932,12 @@ function Wt(n, t, r, i, s, e) {
|
|
|
902
932
|
a("div", {
|
|
903
933
|
innerHTML: e.icons.fileDownload
|
|
904
934
|
}, null, 8, ge),
|
|
905
|
-
a("span", null,
|
|
935
|
+
a("span", null, h(e.FINAL_CONFIG.translations.exportPageButton), 1)
|
|
906
936
|
], 4)
|
|
907
937
|
]),
|
|
908
938
|
a("div", me, [
|
|
909
939
|
a("label", ye, [
|
|
910
|
-
|
|
940
|
+
v(h(e.FINAL_CONFIG.translations.filename) + " ", 1),
|
|
911
941
|
O(a("input", {
|
|
912
942
|
ref: "filenameInputRef",
|
|
913
943
|
onKeydown: t[4] || (t[4] = S(L(() => {
|
|
@@ -949,21 +979,21 @@ function Wt(n, t, r, i, s, e) {
|
|
|
949
979
|
})
|
|
950
980
|
}, [
|
|
951
981
|
a("tr", null, [
|
|
952
|
-
t[
|
|
982
|
+
t[30] || (t[30] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
953
983
|
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
954
984
|
key: `thead_${o}`,
|
|
955
985
|
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}`),
|
|
956
986
|
class: N({ "th-has-nan": s.hasNaN[o] })
|
|
957
987
|
}, [
|
|
958
988
|
e.hasNumericTypes && ([s.constants.TEXT, s.constants.DATE].includes(l.type) || l.isPercentage) ? (c(), u("span", fe, [
|
|
959
|
-
|
|
960
|
-
l.isPercentage ? (c(), u("span", pe, " / " +
|
|
961
|
-
])) : (c(), u("span", Ne,
|
|
989
|
+
v(h(l.name) + " ", 1),
|
|
990
|
+
l.isPercentage ? (c(), u("span", pe, " / " + h(l.percentageTo), 1)) : b("", !0)
|
|
991
|
+
])) : (c(), u("span", Ne, h(l.name), 1))
|
|
962
992
|
], 6))), 128))
|
|
963
993
|
]),
|
|
964
994
|
e.hasNumericTypes ? (c(), u(F, { key: 0 }, [
|
|
965
995
|
a("tr", null, [
|
|
966
|
-
t[
|
|
996
|
+
t[31] || (t[31] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
967
997
|
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
968
998
|
key: `thead_${o}`,
|
|
969
999
|
class: N({ "th-numeric": !0, "th-has-nan": s.hasNaN[o] }),
|
|
@@ -974,13 +1004,13 @@ function Wt(n, t, r, i, s, e) {
|
|
|
974
1004
|
innerHTML: e.icons.sum,
|
|
975
1005
|
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
976
1006
|
}, null, 8, Ie),
|
|
977
|
-
|
|
1007
|
+
v(" " + h(e.dataLabel({
|
|
978
1008
|
p: l.prefix,
|
|
979
1009
|
v: Number(e.getSum(o)),
|
|
980
1010
|
s: l.suffix,
|
|
981
1011
|
r: l.decimals
|
|
982
1012
|
})) + " ", 1),
|
|
983
|
-
s.percentages[o] && l.percentageTo && !l.isPercentage ? (c(), u("span", Fe, " (" +
|
|
1013
|
+
s.percentages[o] && l.percentageTo && !l.isPercentage ? (c(), u("span", Fe, " (" + h(isNaN(e.getSum(o) / e.getSum(s.percentages[o].referenceIndex)) ? "-" : e.dataLabel({
|
|
984
1014
|
v: e.getSum(o) / e.getSum(s.percentages[o].referenceIndex) * 100,
|
|
985
1015
|
s: "%",
|
|
986
1016
|
r: l.decimals
|
|
@@ -989,13 +1019,13 @@ function Wt(n, t, r, i, s, e) {
|
|
|
989
1019
|
], 6))), 128))
|
|
990
1020
|
]),
|
|
991
1021
|
a("tr", null, [
|
|
992
|
-
t[
|
|
1022
|
+
t[32] || (t[32] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
993
1023
|
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
994
1024
|
key: `thead_${o}`,
|
|
995
1025
|
class: N({ "th-numeric": !0, "th-has-nan": s.hasNaN[o] }),
|
|
996
1026
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
997
1027
|
}, [
|
|
998
|
-
l.average && !s.hasNaN[o] ? (c(), u("span", ve, " ~ " +
|
|
1028
|
+
l.average && !s.hasNaN[o] ? (c(), u("span", ve, " ~ " + h(isNaN(e.getAverage(o)) ? "" : e.dataLabel({
|
|
999
1029
|
p: l.prefix,
|
|
1000
1030
|
v: Number(e.getAverage(o)),
|
|
1001
1031
|
s: l.suffix,
|
|
@@ -1004,7 +1034,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1004
1034
|
], 6))), 128))
|
|
1005
1035
|
]),
|
|
1006
1036
|
a("tr", null, [
|
|
1007
|
-
t[
|
|
1037
|
+
t[35] || (t[35] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1008
1038
|
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
1009
1039
|
key: `thead_${o}`,
|
|
1010
1040
|
class: N({ "th-has-nan": s.hasNaN[o] }),
|
|
@@ -1016,12 +1046,12 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1016
1046
|
a("div", Oe, [
|
|
1017
1047
|
a("label", {
|
|
1018
1048
|
for: `from_${o}`
|
|
1019
|
-
},
|
|
1049
|
+
}, h(e.FINAL_CONFIG.translations.from), 9, Se),
|
|
1020
1050
|
O(a("input", {
|
|
1021
1051
|
id: `from_${o}`,
|
|
1022
1052
|
type: "date",
|
|
1023
|
-
"onUpdate:modelValue": (
|
|
1024
|
-
onInput: (
|
|
1053
|
+
"onUpdate:modelValue": (d) => s.dates[o].from = d,
|
|
1054
|
+
onInput: (d) => {
|
|
1025
1055
|
e.filterBody(), e.setFilterDatesIndexes(o);
|
|
1026
1056
|
},
|
|
1027
1057
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
@@ -1032,12 +1062,12 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1032
1062
|
a("div", Ae, [
|
|
1033
1063
|
a("label", {
|
|
1034
1064
|
for: `to_${o}`
|
|
1035
|
-
},
|
|
1065
|
+
}, h(e.FINAL_CONFIG.translations.to), 9, Me),
|
|
1036
1066
|
O(a("input", {
|
|
1037
1067
|
id: `to_${o}`,
|
|
1038
1068
|
type: "date",
|
|
1039
|
-
"onUpdate:modelValue": (
|
|
1040
|
-
onInput: (
|
|
1069
|
+
"onUpdate:modelValue": (d) => s.dates[o].to = d,
|
|
1070
|
+
onInput: (d) => {
|
|
1041
1071
|
e.filterBody(), e.setFilterDatesIndexes(o);
|
|
1042
1072
|
},
|
|
1043
1073
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
@@ -1049,43 +1079,43 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1049
1079
|
a("div", Ge, [
|
|
1050
1080
|
l.isSort ? (c(), u("button", {
|
|
1051
1081
|
key: 0,
|
|
1052
|
-
onClick: (
|
|
1082
|
+
onClick: (d) => e.sortTh(o, d),
|
|
1053
1083
|
class: N({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) }),
|
|
1054
1084
|
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}`)
|
|
1055
1085
|
}, [
|
|
1056
1086
|
s.sorts[o] === s.constants.ASC ? (c(), u("span", {
|
|
1057
1087
|
key: 0,
|
|
1058
1088
|
innerHTML: [s.constants.DATE].includes(l.type) ? e.icons.sort09 : e.icons.sortAZ
|
|
1059
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, xe)) : s.sorts[o] === s.constants.DESC ? (c(), u("span", {
|
|
1060
1090
|
key: 1,
|
|
1061
1091
|
innerHTML: [s.constants.DATE].includes(l.type) ? e.icons.sort90 : e.icons.sortZA
|
|
1062
1092
|
}, null, 8, Ee)) : (c(), u("span", {
|
|
1063
1093
|
key: 2,
|
|
1064
1094
|
innerHTML: e.icons.arrowSort
|
|
1065
1095
|
}, null, 8, Pe))
|
|
1066
|
-
], 14,
|
|
1096
|
+
], 14, Te)) : b("", !0),
|
|
1067
1097
|
a("button", {
|
|
1068
|
-
onClick: (
|
|
1069
|
-
e.resetDates(o), e.resetFilter(o, l,
|
|
1098
|
+
onClick: (d) => {
|
|
1099
|
+
e.resetDates(o), e.resetFilter(o, l, d);
|
|
1070
1100
|
},
|
|
1071
1101
|
disabled: !s.filteredDatesIndexes[o] && e.isResetDisabled(o, l),
|
|
1072
1102
|
class: "th-reset"
|
|
1073
|
-
}, " ✖ ", 8,
|
|
1103
|
+
}, " ✖ ", 8, He)
|
|
1074
1104
|
])
|
|
1075
1105
|
])) : b("", !0),
|
|
1076
1106
|
l.isSearch ? O((c(), u("input", {
|
|
1077
1107
|
key: 1,
|
|
1078
1108
|
placeholder: e.FINAL_CONFIG.translations.inputPlaceholder,
|
|
1079
|
-
"onUpdate:modelValue": (
|
|
1080
|
-
onInput: t[7] || (t[7] = (
|
|
1109
|
+
"onUpdate:modelValue": (d) => s.searches[o] = d,
|
|
1110
|
+
onInput: t[7] || (t[7] = (d) => e.debounce(e.filterBody, 400)),
|
|
1081
1111
|
name: `search_${o}`,
|
|
1082
1112
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1083
|
-
}, null, 44,
|
|
1113
|
+
}, null, 44, Be)), [
|
|
1084
1114
|
[A, s.searches[o]]
|
|
1085
1115
|
]) : b("", !0),
|
|
1086
1116
|
!s.hasNaN[o] && l.isSort && l.type !== s.constants.DATE ? (c(), u("button", {
|
|
1087
1117
|
key: 2,
|
|
1088
|
-
onClick: (
|
|
1118
|
+
onClick: (d) => e.sortTh(o, d),
|
|
1089
1119
|
class: N({ "th-button-active": [s.constants.DESC, s.constants.ASC].includes(s.sorts[o]) }),
|
|
1090
1120
|
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}`)
|
|
1091
1121
|
}, [
|
|
@@ -1102,14 +1132,14 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1102
1132
|
], 14, Re)) : b("", !0),
|
|
1103
1133
|
l.isMultiselect ? (c(), u("button", {
|
|
1104
1134
|
key: 3,
|
|
1105
|
-
onClick: (
|
|
1135
|
+
onClick: (d) => e.toggleMultiselect(o, l, d),
|
|
1106
1136
|
innerHTML: e.icons.filter,
|
|
1107
1137
|
class: N({ "th-button-active": s.multiselects[o] && s.multiselects[o].length !== e.getDropdownOptions(o).length }),
|
|
1108
1138
|
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}`)
|
|
1109
1139
|
}, null, 14, Xe)) : b("", !0),
|
|
1110
1140
|
s.currentSelectionSpan.col === o && e.canChart ? (c(), u("button", {
|
|
1111
1141
|
key: 4,
|
|
1112
|
-
onClick: t[8] || (t[8] = (
|
|
1142
|
+
onClick: t[8] || (t[8] = (d) => s.showChart = !s.showChart),
|
|
1113
1143
|
innerHTML: e.icons.chart,
|
|
1114
1144
|
class: N({ "th-button-active": s.showChart }),
|
|
1115
1145
|
style: g(`background:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${s.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
@@ -1117,9 +1147,9 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1117
1147
|
l.rangeFilter && s.rangeFilters[o] && !s.hasNaN[o] ? (c(), u("div", Ye, [
|
|
1118
1148
|
a("label", {
|
|
1119
1149
|
for: `rangeMin${o}`
|
|
1120
|
-
}, [...t[
|
|
1150
|
+
}, [...t[33] || (t[33] = [
|
|
1121
1151
|
a("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1122
|
-
|
|
1152
|
+
v(" min ", -1),
|
|
1123
1153
|
a("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1124
1154
|
])], 8, We),
|
|
1125
1155
|
O(a("input", {
|
|
@@ -1127,8 +1157,8 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1127
1157
|
id: `rangeMin${o}`,
|
|
1128
1158
|
max: s.immutableRangeFilters[o].max,
|
|
1129
1159
|
min: s.immutableRangeFilters[o].min,
|
|
1130
|
-
"onUpdate:modelValue": (
|
|
1131
|
-
onInput: t[9] || (t[9] = (
|
|
1160
|
+
"onUpdate:modelValue": (d) => s.rangeFilters[o].min = d,
|
|
1161
|
+
onInput: t[9] || (t[9] = (d) => e.debounce(e.filterBody, 400)),
|
|
1132
1162
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1133
1163
|
}, null, 44, Je), [
|
|
1134
1164
|
[
|
|
@@ -1143,8 +1173,8 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1143
1173
|
id: `rangeMax${o}`,
|
|
1144
1174
|
max: s.immutableRangeFilters[o].max,
|
|
1145
1175
|
min: s.immutableRangeFilters[o].min,
|
|
1146
|
-
"onUpdate:modelValue": (
|
|
1147
|
-
onInput: t[10] || (t[10] = (
|
|
1176
|
+
"onUpdate:modelValue": (d) => s.rangeFilters[o].max = d,
|
|
1177
|
+
onInput: t[10] || (t[10] = (d) => e.debounce(e.filterBody, 400)),
|
|
1148
1178
|
style: g(`background:${e.FINAL_CONFIG.style.inputs.backgroundColor};color:${e.FINAL_CONFIG.style.inputs.color};border:${e.FINAL_CONFIG.style.inputs.border}`)
|
|
1149
1179
|
}, null, 44, Ke), [
|
|
1150
1180
|
[
|
|
@@ -1156,15 +1186,15 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1156
1186
|
]),
|
|
1157
1187
|
a("label", {
|
|
1158
1188
|
for: `rangeMax${o}`
|
|
1159
|
-
}, [...t[
|
|
1189
|
+
}, [...t[34] || (t[34] = [
|
|
1160
1190
|
a("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1161
|
-
|
|
1191
|
+
v(" max ", -1),
|
|
1162
1192
|
a("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1163
1193
|
])], 8, Ze)
|
|
1164
1194
|
])) : b("", !0),
|
|
1165
1195
|
e.canResetColumn(o, l) ? (c(), u("button", {
|
|
1166
1196
|
key: 6,
|
|
1167
|
-
onClick: (
|
|
1197
|
+
onClick: (d) => e.resetFilter(o, l, d),
|
|
1168
1198
|
disabled: e.isResetDisabled(o, l),
|
|
1169
1199
|
class: "th-reset"
|
|
1170
1200
|
}, " ✖ ", 8, qe)) : b("", !0),
|
|
@@ -1177,30 +1207,30 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1177
1207
|
}, [
|
|
1178
1208
|
a("button", {
|
|
1179
1209
|
class: "close-dropdown",
|
|
1180
|
-
onClick: (
|
|
1210
|
+
onClick: (d) => e.toggleMultiselect(o, l, d),
|
|
1181
1211
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
|
|
1182
1212
|
}, " ✖ ", 12, $e),
|
|
1183
|
-
(c(!0), u(F, null, k(e.getDropdownOptions(o), (
|
|
1213
|
+
(c(!0), u(F, null, k(e.getDropdownOptions(o), (d, y) => (c(), u("span", {
|
|
1184
1214
|
class: "th-option",
|
|
1185
1215
|
key: `th_option_${o}_${y}`,
|
|
1186
|
-
onClick: (C) => e.selectDropdownOption(
|
|
1216
|
+
onClick: (C) => e.selectDropdownOption(d, o),
|
|
1187
1217
|
onKeyup: [
|
|
1188
|
-
S((C) => e.selectDropdownOption(
|
|
1189
|
-
S((C) => e.selectDropdownOption(
|
|
1218
|
+
S((C) => e.selectDropdownOption(d, o), ["enter"]),
|
|
1219
|
+
S((C) => e.selectDropdownOption(d, o), ["space"])
|
|
1190
1220
|
],
|
|
1191
|
-
style: g(`opacity:${e.isDropdownOptionSelected(
|
|
1221
|
+
style: g(`opacity:${e.isDropdownOptionSelected(d, o) ? 1 : 0.5}`),
|
|
1192
1222
|
tabindex: "0"
|
|
1193
1223
|
}, [
|
|
1194
|
-
e.isDropdownOptionSelected(
|
|
1224
|
+
e.isDropdownOptionSelected(d, o) ? (c(), u("span", {
|
|
1195
1225
|
key: 0,
|
|
1196
1226
|
style: g(`color:${e.FINAL_CONFIG.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1197
1227
|
class: "th-icon-green"
|
|
1198
|
-
},
|
|
1228
|
+
}, h(e.FINAL_CONFIG.style.dropdowns.icons.selected.unicode), 5)) : (c(), u("span", {
|
|
1199
1229
|
key: 1,
|
|
1200
1230
|
style: g(`color:${e.FINAL_CONFIG.style.dropdowns.icons.unselected.color};margin-right:5px`),
|
|
1201
1231
|
class: "th-icon-red"
|
|
1202
|
-
},
|
|
1203
|
-
a("span", null, d
|
|
1232
|
+
}, h(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1233
|
+
a("span", null, h(d), 1)
|
|
1204
1234
|
], 44, et))), 128))
|
|
1205
1235
|
], 12, Qe)) : b("", !0)
|
|
1206
1236
|
])
|
|
@@ -1208,7 +1238,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1208
1238
|
])
|
|
1209
1239
|
], 64)) : b("", !0),
|
|
1210
1240
|
a("tr", null, [
|
|
1211
|
-
t[
|
|
1241
|
+
t[36] || (t[36] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1212
1242
|
(c(!0), u(F, null, k(s.tableHead, (l, o) => (c(), u("th", {
|
|
1213
1243
|
key: `col_selector_${o}`,
|
|
1214
1244
|
class: N({ "vue-ui-table-col-selector": !s.hasNaN[o], "th-has-nan": s.hasNaN[o] }),
|
|
@@ -1219,8 +1249,8 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1219
1249
|
innerHTML: s.tableHead[o].type === s.constants.NUMERIC ? e.icons.chevronDown : "",
|
|
1220
1250
|
class: N({ "col-selector": s.tableHead[o].type === s.constants.NUMERIC }),
|
|
1221
1251
|
tabindex: "0",
|
|
1222
|
-
onClick: L((
|
|
1223
|
-
onKeyup: S((
|
|
1252
|
+
onClick: L((d) => e.selectColumn(o), ["stop"]),
|
|
1253
|
+
onKeyup: S((d) => e.selectColumn(o), ["enter"])
|
|
1224
1254
|
}, null, 42, tt))
|
|
1225
1255
|
], 6))), 128))
|
|
1226
1256
|
])
|
|
@@ -1238,13 +1268,13 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1238
1268
|
a("td", {
|
|
1239
1269
|
class: "vue-ui-table-td-iteration",
|
|
1240
1270
|
"data-row": o % 2 === 0 ? "odd" : "even"
|
|
1241
|
-
},
|
|
1242
|
-
(c(!0), u(F, null, k(l.td, (
|
|
1271
|
+
}, h(l.absoluteIndex + 1), 9, nt),
|
|
1272
|
+
(c(!0), u(F, null, k(l.td, (d, y) => (c(), u("td", {
|
|
1243
1273
|
"data-row": o % 2 === 0 ? "odd" : "even",
|
|
1244
1274
|
key: `td_${o}_${y}`,
|
|
1245
|
-
style: g(e.isNumeric(
|
|
1275
|
+
style: g(e.isNumeric(d) || r.dataset.header[y].type === s.constants.DATE ? "text-align:right;font-variant-numeric: tabular-nums;" : ""),
|
|
1246
1276
|
onClick: (C) => e.selectTd({
|
|
1247
|
-
td:
|
|
1277
|
+
td: d,
|
|
1248
1278
|
rowIndex: o,
|
|
1249
1279
|
colIndex: y,
|
|
1250
1280
|
headerType: r.dataset.header[y].type,
|
|
@@ -1252,14 +1282,14 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1252
1282
|
}),
|
|
1253
1283
|
onKeyup: [
|
|
1254
1284
|
S((C) => e.selectTd({
|
|
1255
|
-
td:
|
|
1285
|
+
td: d,
|
|
1256
1286
|
rowIndex: o,
|
|
1257
1287
|
colIndex: y,
|
|
1258
1288
|
headerType: r.dataset.header[y].type,
|
|
1259
1289
|
event: C
|
|
1260
1290
|
}), ["enter"]),
|
|
1261
1291
|
S((C) => e.selectTd({
|
|
1262
|
-
td:
|
|
1292
|
+
td: d,
|
|
1263
1293
|
rowIndex: o,
|
|
1264
1294
|
colIndex: y,
|
|
1265
1295
|
headerType: r.dataset.header[y].type,
|
|
@@ -1275,31 +1305,31 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1275
1305
|
style: g(`color:${l.meta.color};margin-right:3px`),
|
|
1276
1306
|
innerHTML: l.meta.unicodeIcon
|
|
1277
1307
|
}, null, 12, ot)) : b("", !0),
|
|
1278
|
-
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span", lt,
|
|
1279
|
-
v: Number(
|
|
1308
|
+
r.dataset.header[y].type === s.constants.DATE ? (c(), u("span", lt, h(r.dataset.header[y].prefix) + " " + h(new Date(d).toLocaleString().slice(0, 10)) + " " + h(r.dataset.header[y].suffix), 1)) : r.dataset.header[y].isPercentage ? (c(), u("span", at, h(e.dataLabel({
|
|
1309
|
+
v: Number(d * 100),
|
|
1280
1310
|
s: "%",
|
|
1281
1311
|
r: r.dataset.header[y].decimals
|
|
1282
1312
|
})), 1)) : s.percentages[y] && r.dataset.header[y].percentageTo && !r.dataset.header[y].isPercentage ? (c(), u("span", {
|
|
1283
1313
|
key: 3,
|
|
1284
|
-
class: N({ "td-nan": isNaN(Number(
|
|
1285
|
-
},
|
|
1314
|
+
class: N({ "td-nan": isNaN(Number(d)) })
|
|
1315
|
+
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1286
1316
|
p: r.dataset.header[y].prefix,
|
|
1287
|
-
v: Number(
|
|
1317
|
+
v: Number(d),
|
|
1288
1318
|
s: r.dataset.header[y].suffix,
|
|
1289
1319
|
r: r.dataset.header[y].decimals
|
|
1290
|
-
})) + " (" +
|
|
1291
|
-
v: Number(
|
|
1320
|
+
})) + " (" + h(isNaN(Number(d)) ? "" : e.dataLabel({
|
|
1321
|
+
v: Number(d / e.getSum(s.percentages[y].referenceIndex) * 100),
|
|
1292
1322
|
s: "%",
|
|
1293
1323
|
r: r.dataset.header[y].decimals
|
|
1294
1324
|
})) + ") ", 3)) : r.dataset.header[y].type === s.constants.NUMERIC ? (c(), u("span", {
|
|
1295
1325
|
key: 4,
|
|
1296
|
-
class: N({ "td-nan": isNaN(Number(
|
|
1297
|
-
},
|
|
1326
|
+
class: N({ "td-nan": isNaN(Number(d)) })
|
|
1327
|
+
}, h(isNaN(Number(d)) ? `${d} is not ${s.constants.NUMERIC}` : e.dataLabel({
|
|
1298
1328
|
p: r.dataset.header[y].prefix,
|
|
1299
|
-
v: Number(
|
|
1329
|
+
v: Number(d.toFixed(r.dataset.header[y].decimals)),
|
|
1300
1330
|
s: r.dataset.header[y].suffix,
|
|
1301
1331
|
r: r.dataset.header[y].decimals
|
|
1302
|
-
})), 3)) : (c(), u("span", it,
|
|
1332
|
+
})), 3)) : (c(), u("span", it, h(r.dataset.header[y].prefix) + " " + h(d) + " " + h(r.dataset.header[y].suffix), 1))
|
|
1303
1333
|
], 46, rt))), 128))
|
|
1304
1334
|
], 14, st))), 128))
|
|
1305
1335
|
], 32)
|
|
@@ -1316,21 +1346,21 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1316
1346
|
}, null, 8, ct),
|
|
1317
1347
|
a("span", null, [
|
|
1318
1348
|
a("b", null, [
|
|
1319
|
-
|
|
1320
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span", ut, " / " +
|
|
1349
|
+
v(h(r.dataset.header[s.currentSelectionSpan.col].name) + " ", 1),
|
|
1350
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("span", ut, " / " + h(r.dataset.header[s.percentages[s.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
|
|
1321
1351
|
]),
|
|
1322
1352
|
a("span", ht, [
|
|
1323
|
-
|
|
1324
|
-
a("b", dt,
|
|
1353
|
+
v(h(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1354
|
+
a("b", dt, h(s.currentSelectionSpan.rows.length), 1)
|
|
1325
1355
|
]),
|
|
1326
1356
|
a("span", gt, [
|
|
1327
|
-
|
|
1328
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", mt,
|
|
1357
|
+
v(h(e.FINAL_CONFIG.translations.sum) + " : ", 1),
|
|
1358
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", mt, h(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", yt, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.sumRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1329
1359
|
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", bt, "%")) : b("", !0)
|
|
1330
1360
|
]),
|
|
1331
1361
|
a("span", ft, [
|
|
1332
|
-
|
|
1333
|
-
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", pt,
|
|
1362
|
+
v(h(e.FINAL_CONFIG.translations.average) + " : ", 1),
|
|
1363
|
+
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", pt, h(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", Nt, h(r.dataset.header[s.currentSelectionSpan.col].prefix) + " " + h(e.selectedCellsCalculations.averageRegular) + " " + h(r.dataset.header[s.currentSelectionSpan.col].suffix), 1)),
|
|
1334
1364
|
r.dataset.header[s.currentSelectionSpan.col].isPercentage ? (c(), u("b", Ct, "%")) : b("", !0)
|
|
1335
1365
|
])
|
|
1336
1366
|
]),
|
|
@@ -1342,7 +1372,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1342
1372
|
], 64)) : b("", !0)
|
|
1343
1373
|
], 6),
|
|
1344
1374
|
s.bodyCopy.length > 10 ? (c(), u("div", It, [
|
|
1345
|
-
|
|
1375
|
+
v(h(e.FINAL_CONFIG.translations.totalRows) + " : " + h(r.dataset.body.length) + " | " + h(e.FINAL_CONFIG.translations.paginatorLabel) + " : ", 1),
|
|
1346
1376
|
s.bodyCopy.length > 10 ? O((c(), u("select", {
|
|
1347
1377
|
key: 0,
|
|
1348
1378
|
id: "paginatorSelector",
|
|
@@ -1355,11 +1385,11 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1355
1385
|
(c(!0), u(F, null, k(s.paginatorOptions, (l, o) => (c(), u(F, null, [
|
|
1356
1386
|
s.bodyCopy.length > l || r.dataset.body.length === l ? (c(), u("option", {
|
|
1357
1387
|
key: `paginator_option_${o}`
|
|
1358
|
-
},
|
|
1388
|
+
}, h(l), 1)) : b("", !0)
|
|
1359
1389
|
], 64))), 256))
|
|
1360
1390
|
], 36)), [
|
|
1361
1391
|
[
|
|
1362
|
-
|
|
1392
|
+
P,
|
|
1363
1393
|
s.itemsPerPage,
|
|
1364
1394
|
void 0,
|
|
1365
1395
|
{ number: !0 }
|
|
@@ -1370,7 +1400,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1370
1400
|
a("span", {
|
|
1371
1401
|
innerHTML: e.icons.warning
|
|
1372
1402
|
}, null, 8, vt),
|
|
1373
|
-
|
|
1403
|
+
v(h(e.FINAL_CONFIG.translations.sizeWarning), 1)
|
|
1374
1404
|
])) : b("", !0),
|
|
1375
1405
|
e.pages.length > 1 && e.pages.length <= 10 ? (c(), u("div", {
|
|
1376
1406
|
key: 3,
|
|
@@ -1393,7 +1423,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1393
1423
|
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}`)
|
|
1394
1424
|
}, " 1 ", 12, kt),
|
|
1395
1425
|
e.pages.length > 10 ? (c(), u("div", Ot, [
|
|
1396
|
-
a("label", St,
|
|
1426
|
+
a("label", St, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1),
|
|
1397
1427
|
a("input", {
|
|
1398
1428
|
class: "vue-ui-table-page-scroller",
|
|
1399
1429
|
id: "pageScroller",
|
|
@@ -1405,15 +1435,15 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1405
1435
|
value: s.currentPage,
|
|
1406
1436
|
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}`)
|
|
1407
1437
|
}, null, 44, Lt)
|
|
1408
|
-
])) : (c(), u("span", At,
|
|
1438
|
+
])) : (c(), u("span", At, h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)),
|
|
1409
1439
|
a("button", {
|
|
1410
1440
|
class: "vue-ui-table-navigation",
|
|
1411
1441
|
onClick: t[19] || (t[19] = L((l) => e.navigate(e.pages.length), ["stop"])),
|
|
1412
1442
|
disabled: s.currentPage === e.pages.length - 1,
|
|
1413
1443
|
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}`)
|
|
1414
|
-
},
|
|
1444
|
+
}, h(e.pages.length), 13, Mt)
|
|
1415
1445
|
], 64)) : (c(), u(F, { key: 1 }, [
|
|
1416
|
-
|
|
1446
|
+
v(h(e.FINAL_CONFIG.translations.page) + " " + h(s.currentPage + 1) + " / " + h(e.pages.length), 1)
|
|
1417
1447
|
], 64)),
|
|
1418
1448
|
a("button", {
|
|
1419
1449
|
class: "vue-ui-table-navigation",
|
|
@@ -1445,14 +1475,14 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1445
1475
|
class: "close-chart-modal",
|
|
1446
1476
|
onClick: t[23] || (t[23] = (l) => s.showChart = !1)
|
|
1447
1477
|
}, " ✖ ", 4),
|
|
1448
|
-
a("div",
|
|
1478
|
+
a("div", Tt, [
|
|
1449
1479
|
e.availableDonutCategories.length ? (c(), u("button", {
|
|
1450
1480
|
key: 0,
|
|
1451
1481
|
onClick: t[24] || (t[24] = (l) => s.showDonutOptions = !0),
|
|
1452
1482
|
innerHTML: e.icons.donut,
|
|
1453
1483
|
class: N({ "is-active-chart": s.chart.type === s.constants.DONUT || s.showDonutOptions }),
|
|
1454
1484
|
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}`)
|
|
1455
|
-
}, null, 14,
|
|
1485
|
+
}, null, 14, xt)) : b("", !0),
|
|
1456
1486
|
a("button", {
|
|
1457
1487
|
onClick: t[25] || (t[25] = (l) => {
|
|
1458
1488
|
s.chart.type = s.constants.LINE, s.showDonutOptions = !1;
|
|
@@ -1470,13 +1500,13 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1470
1500
|
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}`)
|
|
1471
1501
|
}, null, 14, Pt)
|
|
1472
1502
|
]),
|
|
1473
|
-
a("div",
|
|
1503
|
+
a("div", Ht, [
|
|
1474
1504
|
s.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
|
|
1475
1505
|
key: 0,
|
|
1476
1506
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1477
1507
|
}, [
|
|
1478
|
-
a("fieldset",
|
|
1479
|
-
a("legend", null,
|
|
1508
|
+
a("fieldset", Bt, [
|
|
1509
|
+
a("legend", null, h(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
|
|
1480
1510
|
a("div", Rt, [
|
|
1481
1511
|
(c(!0), u(F, null, k(e.availableDonutCategories, (l, o) => (c(), u("div", {
|
|
1482
1512
|
key: `donut_radio_${o}`,
|
|
@@ -1487,12 +1517,12 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1487
1517
|
name: l.name,
|
|
1488
1518
|
id: l.name,
|
|
1489
1519
|
checked: s.selectedDonutCategory && l.name === s.selectedDonutCategory.name,
|
|
1490
|
-
onInput: (
|
|
1520
|
+
onInput: (d) => s.selectedDonutCategory = e.availableDonutCategories[o],
|
|
1491
1521
|
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}`)
|
|
1492
1522
|
}, null, 44, zt),
|
|
1493
1523
|
a("label", {
|
|
1494
1524
|
for: l.name
|
|
1495
|
-
},
|
|
1525
|
+
}, h(l.name), 9, Ut)
|
|
1496
1526
|
]))), 128))
|
|
1497
1527
|
]),
|
|
1498
1528
|
a("button", {
|
|
@@ -1505,37 +1535,47 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1505
1535
|
style: { "margin-bottom": "-3px" },
|
|
1506
1536
|
innerHTML: e.icons.donut
|
|
1507
1537
|
}, null, 8, Xt),
|
|
1508
|
-
|
|
1538
|
+
v(" " + h(e.FINAL_CONFIG.translations.makeDonut), 1)
|
|
1509
1539
|
], 12, Vt)
|
|
1510
1540
|
])
|
|
1511
1541
|
], 4)) : b("", !0),
|
|
1512
1542
|
[s.constants.BAR, s.constants.LINE].includes(s.chart.type) && !s.showDonutOptions ? (c(), u(F, { key: 1 }, [
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1543
|
+
e.chartTimeLabelOptions.length > 1 ? (c(), u("label", jt, [
|
|
1544
|
+
v(h(e.FINAL_CONFIG.translations.xAxisLabels) + " ", 1),
|
|
1545
|
+
O(a("select", {
|
|
1546
|
+
"onUpdate:modelValue": t[28] || (t[28] = (l) => s.chartTimeLabelSourceModel = l)
|
|
1547
|
+
}, [
|
|
1548
|
+
(c(!0), u(F, null, k(e.chartTimeLabelOptions, (l) => (c(), u("option", null, h(l), 1))), 256))
|
|
1549
|
+
], 512), [
|
|
1550
|
+
[P, s.chartTimeLabelSourceModel]
|
|
1551
|
+
])
|
|
1552
|
+
])) : b("", !0),
|
|
1553
|
+
a("div", Yt, [
|
|
1554
|
+
s.chart.type === s.constants.LINE ? (c(), H(f, {
|
|
1555
|
+
key: `chart_line_${s.chartStep}`,
|
|
1516
1556
|
dataset: e.chartData.xyDatasetLine,
|
|
1517
1557
|
config: e.chartData.xyConfig
|
|
1518
1558
|
}, null, 8, ["dataset", "config"])) : b("", !0),
|
|
1519
|
-
s.chart.type === s.constants.BAR ? (c(),
|
|
1520
|
-
key:
|
|
1559
|
+
s.chart.type === s.constants.BAR ? (c(), H(f, {
|
|
1560
|
+
key: `chart_bar_${s.chartStep}`,
|
|
1521
1561
|
dataset: e.chartData.xyDatasetBar,
|
|
1522
1562
|
config: e.chartData.xyConfig
|
|
1523
1563
|
}, null, 8, ["dataset", "config"])) : b("", !0)
|
|
1524
1564
|
]),
|
|
1525
1565
|
s.currentSelectionSpan.rows.length >= 2 ? (c(), u("div", {
|
|
1526
|
-
key:
|
|
1566
|
+
key: 1,
|
|
1527
1567
|
class: "chart-trend",
|
|
1528
1568
|
style: g(`color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1529
1569
|
}, [
|
|
1530
|
-
t[
|
|
1531
|
-
|
|
1532
|
-
v: e.chartData.progression.trend,
|
|
1570
|
+
t[37] || (t[37] = a("span", null, "---", -1)),
|
|
1571
|
+
v(" Trend: " + h(e.dataLabel({
|
|
1572
|
+
v: e.chartData.progression.trend * 100,
|
|
1533
1573
|
s: "%",
|
|
1534
1574
|
r: 1
|
|
1535
1575
|
})), 1)
|
|
1536
1576
|
], 4)) : b("", !0)
|
|
1537
1577
|
], 64)) : b("", !0),
|
|
1538
|
-
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div",
|
|
1578
|
+
[s.constants.DONUT].includes(s.chart.type) && !s.showDonutOptions ? (c(), u("div", Wt, [
|
|
1539
1579
|
E(_, {
|
|
1540
1580
|
dataset: s.currentDonut,
|
|
1541
1581
|
config: e.chartData.donutConfig
|
|
@@ -1545,7 +1585,7 @@ function Wt(n, t, r, i, s, e) {
|
|
|
1545
1585
|
], 4)) : b("", !0)
|
|
1546
1586
|
], 4);
|
|
1547
1587
|
}
|
|
1548
|
-
const
|
|
1588
|
+
const ns = /* @__PURE__ */ se(ne, [["render", Jt], ["__scopeId", "data-v-baef4664"]]);
|
|
1549
1589
|
export {
|
|
1550
|
-
|
|
1590
|
+
ns as default
|
|
1551
1591
|
};
|