vue-data-ui 2.9.3 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Dd8sFWk7.js → Arrow-CJMMd0OS.js} +1 -1
- package/dist/{Arrow-Byzfuz-Y.cjs → Arrow-DxFFCBPM.cjs} +1 -1
- package/dist/{BaseIcon-CSELstL2.cjs → BaseIcon-DU8qgy6L.cjs} +1 -1
- package/dist/{BaseIcon-CLefSNKF.js → BaseIcon-hA0_6Cl-.js} +1 -1
- package/dist/{ColorPicker-CZqXDroo.js → ColorPicker-C2hq5iIZ.js} +3 -3
- package/dist/{ColorPicker-DMqX5Kn5.cjs → ColorPicker-t6z7vah6.cjs} +1 -1
- package/dist/{DataTable-CpuMdjPX.cjs → DataTable-BPnqR1qF.cjs} +1 -1
- package/dist/{DataTable-Cuky8ZpI.js → DataTable-BbXCe5s5.js} +2 -2
- package/dist/{Legend-CqHSKd8f.cjs → Legend-BQHuBdpT.cjs} +1 -1
- package/dist/{Legend-BQ5HGf8B.js → Legend-D9ki4JJ3.js} +2 -2
- package/dist/{PackageVersion-DJo_CKR-.js → PackageVersion-Bq98eXon.js} +1 -1
- package/dist/{PackageVersion-DkyZc28_.cjs → PackageVersion-mZLomJm-.cjs} +1 -1
- package/dist/{PenAndPaper-DK3Wbwoz.js → PenAndPaper-CUUyQzLR.js} +3 -3
- package/dist/{PenAndPaper-DU2wA7cg.cjs → PenAndPaper-CvkDs-Gh.cjs} +1 -1
- package/dist/{Shape-Cp1FyHcE.cjs → Shape-BeAQjfne.cjs} +1 -1
- package/dist/{Shape-BchKnVQT.js → Shape-D6lPonNm.js} +1 -1
- package/dist/{Slicer-DvQmWmSB.js → Slicer-5j6e3Y_A.js} +2 -2
- package/dist/{Slicer-CE1LNNRp.cjs → Slicer-C97ZQ2j3.cjs} +1 -1
- package/dist/{Title-DV4IpbZv.cjs → Title-Cjpkoa1d.cjs} +1 -1
- package/dist/{Title-DmtXFzpc.js → Title-CwPVIBWP.js} +1 -1
- package/dist/{Tooltip-De6uq1YK.cjs → Tooltip-DPgFOV_5.cjs} +1 -1
- package/dist/{Tooltip-BMaBMPpZ.js → Tooltip-T-m_CEIA.js} +1 -1
- package/dist/{dom-to-png-725pnoVX.js → dom-to-png-CGtn1Am2.js} +1 -1
- package/dist/{dom-to-png-BE7poR2a.cjs → dom-to-png-CYjAAVu3.cjs} +1 -1
- package/dist/{img-CFYnBJP3.cjs → img-Duw2r72a.cjs} +1 -1
- package/dist/{img-Ciiut165.js → img-s3DffGWH.js} +1 -1
- package/dist/{index-CeGGP5OF.js → index-BDGf85YF.js} +1 -1
- package/dist/{index-Bw9yF1Ws.cjs → index-BS7ybKs5.cjs} +1 -1
- package/dist/{pdf-DyTBDj-k.js → pdf-BnBP0Jg-.js} +1 -1
- package/dist/{pdf-DLDggJUq.cjs → pdf-CRgxb46R.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CD9pbB7F.js → useNestedProp-BsN3TOQ0.js} +1 -1
- package/dist/{useNestedProp-CuyRUIUu.cjs → useNestedProp-D24_JklN.cjs} +1 -1
- package/dist/{usePrinter-O9uCoI6k.cjs → usePrinter-Bs-Uo-8x.cjs} +1 -1
- package/dist/{usePrinter-Ox_AUldH.js → usePrinter-CKjQQldf.js} +3 -3
- package/dist/{vue-data-ui-Ci_EB1Pl.cjs → vue-data-ui-BMJWddQg.cjs} +1 -1
- package/dist/{vue-data-ui-Bqni-1Zf.js → vue-data-ui-IWpvfdMh.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du8HQpHI.js → vue-ui-3d-bar-DVNn8pu-.js} +9 -9
- package/dist/{vue-ui-3d-bar-CwXVZG3Y.cjs → vue-ui-3d-bar-slYknMyR.cjs} +1 -1
- package/dist/{vue-ui-accordion-B7WLy1Jg.cjs → vue-ui-accordion-BMK6-xDm.cjs} +1 -1
- package/dist/{vue-ui-accordion-B5Gs-td_.js → vue-ui-accordion-CYKk4uk8.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B8W-ss5n.js → vue-ui-age-pyramid-1zM8QRQl.js} +10 -10
- package/dist/{vue-ui-age-pyramid-B4H7JQkT.cjs → vue-ui-age-pyramid-BCQsnc8c.cjs} +1 -1
- package/dist/{vue-ui-annotator-BINIZaue.cjs → vue-ui-annotator-5O4hWWvi.cjs} +1 -1
- package/dist/{vue-ui-annotator-DNF_ObQQ.js → vue-ui-annotator-_U6PEy_s.js} +2 -2
- package/dist/{vue-ui-bullet-DAbmjJO4.cjs → vue-ui-bullet-BAaTrfRK.cjs} +1 -1
- package/dist/{vue-ui-bullet-C70Q3NPV.js → vue-ui-bullet-DuI83w0_.js} +8 -8
- package/dist/{vue-ui-candlestick-CdC4R7M2.js → vue-ui-candlestick-Caume8Cr.js} +11 -11
- package/dist/{vue-ui-candlestick-DteMmbOt.cjs → vue-ui-candlestick-CoxKe0hi.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Dav_wxu5.cjs → vue-ui-carousel-table-C3oLoBhV.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DRia7BnJ.js → vue-ui-carousel-table-Dpj6uzaw.js} +4 -4
- package/dist/{vue-ui-chestnut-B6DIgsRe.cjs → vue-ui-chestnut-CRiCk9LN.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CHB6EIMR.js → vue-ui-chestnut-DC57Y0fm.js} +8 -8
- package/dist/{vue-ui-circle-pack-DqTsATrx.js → vue-ui-circle-pack-Bx8ATqeJ.js} +9 -9
- package/dist/{vue-ui-circle-pack-ZYPeAycn.cjs → vue-ui-circle-pack-Dtaz0QCf.cjs} +1 -1
- package/dist/{vue-ui-cursor-D6Klb7Ub.js → vue-ui-cursor-D2_6cGWO.js} +2 -2
- package/dist/{vue-ui-cursor-pMITkG0c.cjs → vue-ui-cursor-Dae_RvTj.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DMKc0NXK.cjs → vue-ui-dashboard-Cia2p6jc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BjOefVNY.js → vue-ui-dashboard-CqEaxTGo.js} +62 -62
- package/dist/{vue-ui-digits-D7bnAeht.js → vue-ui-digits-BBh4FaLt.js} +2 -2
- package/dist/{vue-ui-digits-CeQ3UvM5.cjs → vue-ui-digits-TcCd1Ayj.cjs} +1 -1
- package/dist/{vue-ui-donut-dt7wntWx.cjs → vue-ui-donut-CXI85ZJW.cjs} +1 -1
- package/dist/{vue-ui-donut-B2RReI5v.js → vue-ui-donut-DlvFHlJB.js} +12 -12
- package/dist/{vue-ui-donut-evolution-CEMUyFGj.cjs → vue-ui-donut-evolution-BXEmubwy.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Q8efqEFi.js → vue-ui-donut-evolution-Ba4GIJg3.js} +11 -11
- package/dist/{vue-ui-dumbbell-DmJnlQk9.js → vue-ui-dumbbell-2xYiPFix.js} +10 -10
- package/dist/{vue-ui-dumbbell-Da0UGWon.cjs → vue-ui-dumbbell-C1y6x8kv.cjs} +1 -1
- package/dist/{vue-ui-flow-DnpEech8.js → vue-ui-flow-BBFoxXRy.js} +9 -9
- package/dist/{vue-ui-flow-B2LxKwSy.cjs → vue-ui-flow-Cn0WD8c1.cjs} +1 -1
- package/dist/{vue-ui-funnel-Cfg8_Y28.cjs → vue-ui-funnel-BW0E2--M.cjs} +1 -1
- package/dist/{vue-ui-funnel-D1FBngXC.js → vue-ui-funnel-DzcoJC-S.js} +9 -9
- package/dist/{vue-ui-galaxy-BBseh1Xu.cjs → vue-ui-galaxy-C7S_aK4E.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DeiFZ4-K.js → vue-ui-galaxy-D88zMUzb.js} +11 -11
- package/dist/{vue-ui-gauge-CgbP28Lu.cjs → vue-ui-gauge-BNMnbzT6.cjs} +1 -1
- package/dist/{vue-ui-gauge-BYAT1lpA.js → vue-ui-gauge-DU5uLDka.js} +7 -7
- package/dist/{vue-ui-gizmo-Cg8EOszW.cjs → vue-ui-gizmo-CdjyPQN0.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dx0a1RXr.js → vue-ui-gizmo-Cgqr5OQC.js} +3 -3
- package/dist/{vue-ui-heatmap-Dmnsolb3.cjs → vue-ui-heatmap-B26GMl3N.cjs} +1 -1
- package/dist/{vue-ui-heatmap-8ztV6WVL.js → vue-ui-heatmap-DhJtkLrS.js} +10 -10
- package/dist/{vue-ui-history-plot-Bqjnj0j7.js → vue-ui-history-plot-DBegFcxp.js} +11 -11
- package/dist/{vue-ui-history-plot-Dyh-V9Gh.cjs → vue-ui-history-plot-VwHC74EA.cjs} +1 -1
- package/dist/{vue-ui-kpi-BC6eewXW.cjs → vue-ui-kpi-C1i0iWrh.cjs} +1 -1
- package/dist/{vue-ui-kpi-BcquwnAL.js → vue-ui-kpi-CfzNgybX.js} +3 -3
- package/dist/{vue-ui-mini-loader-DwEPWCvw.cjs → vue-ui-mini-loader-Djlgqhvu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B5TCB-jm.js → vue-ui-mini-loader-DvYHhqWT.js} +2 -2
- package/dist/{vue-ui-molecule-CxdrRZT1.cjs → vue-ui-molecule-C4Z2E7uD.cjs} +1 -1
- package/dist/{vue-ui-molecule-BlQ9EKHu.js → vue-ui-molecule-Cr6KJ5eZ.js} +11 -11
- package/dist/{vue-ui-mood-radar-CaMrzhKf.js → vue-ui-mood-radar-DHTNv7wD.js} +11 -11
- package/dist/{vue-ui-mood-radar-D5dAbRIg.cjs → vue-ui-mood-radar-DhLF09v7.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B0Msfykw.js → vue-ui-nested-donuts-Dm0rc5ct.js} +11 -11
- package/dist/{vue-ui-nested-donuts-PH-8er1N.cjs → vue-ui-nested-donuts-vMeonmHR.cjs} +1 -1
- package/dist/{vue-ui-onion-CJQvWcZc.js → vue-ui-onion-CssSqL8q.js} +11 -11
- package/dist/{vue-ui-onion-BdgRqKZC.cjs → vue-ui-onion-boKXIe-r.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-e_Fy1AqK.js → vue-ui-parallel-coordinate-plot-DBzBW-Vn.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CFSlIws_.cjs → vue-ui-parallel-coordinate-plot-DxKTqBB8.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CgmJi4VO.cjs → vue-ui-quadrant-BkaXchAn.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BUdDJDiC.js → vue-ui-quadrant-CSuEenz4.js} +12 -12
- package/dist/{vue-ui-quick-chart-a0Aq180v.js → vue-ui-quick-chart-BLTVHmn2.js} +9 -9
- package/dist/{vue-ui-quick-chart-WOakiHbL.cjs → vue-ui-quick-chart-DJpBpFM4.cjs} +1 -1
- package/dist/{vue-ui-radar-Dq5awTJ4.js → vue-ui-radar-BKM9hhMO.js} +12 -12
- package/dist/{vue-ui-radar-D3XH7mnS.cjs → vue-ui-radar-CrxciP8t.cjs} +1 -1
- package/dist/{vue-ui-rating-CbJwIMBH.js → vue-ui-rating-7uT1-yDP.js} +2 -2
- package/dist/{vue-ui-rating-BLYhtefr.cjs → vue-ui-rating-BWMgiGmm.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-QSXzaYcG.cjs → vue-ui-relation-circle-BFvsOsjM.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dt3L1hs0.js → vue-ui-relation-circle-Bk2mNJDz.js} +7 -7
- package/dist/{vue-ui-rings-XJSxdsBz.cjs → vue-ui-rings-FzLeValL.cjs} +1 -1
- package/dist/{vue-ui-rings-BzzWkMfI.js → vue-ui-rings-azmWz0Sn.js} +12 -12
- package/dist/{vue-ui-scatter-WfGg6-i5.js → vue-ui-scatter-CgHGWxEM.js} +12 -12
- package/dist/{vue-ui-scatter-KB-arFYU.cjs → vue-ui-scatter-D_3855LX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-1LYIEAgE.cjs → vue-ui-skeleton-BznhCw4p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CpGgeJbB.js → vue-ui-skeleton-hrplR5wa.js} +3 -3
- package/dist/{vue-ui-smiley-Dz2M3bCK.cjs → vue-ui-smiley-B02R516m.cjs} +1 -1
- package/dist/{vue-ui-smiley-C6NH0Lex.js → vue-ui-smiley-B6DAFeS1.js} +2 -2
- package/dist/{vue-ui-spark-trend-B_GfxBXt.cjs → vue-ui-spark-trend-CVU8ZId2.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DTeJM_9L.js → vue-ui-spark-trend-Cvw68YCa.js} +5 -5
- package/dist/{vue-ui-sparkbar-odjVGeM_.cjs → vue-ui-sparkbar-BVAmpd2c.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CLGDM4VK.js → vue-ui-sparkbar-CLtobIKI.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DenhO9cj.js → vue-ui-sparkgauge-DV7_YpFv.js} +4 -4
- package/dist/{vue-ui-sparkgauge-83j8e2xQ.cjs → vue-ui-sparkgauge-PfjN8EtA.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bsid3CJE.cjs → vue-ui-sparkhistogram-B3bXOOfB.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Ch5_voyg.js → vue-ui-sparkhistogram-BgGs2Ge0.js} +5 -5
- package/dist/{vue-ui-sparkline-LpkWUXEl.cjs → vue-ui-sparkline-BpRBXQMZ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CFx-n0Ax.js → vue-ui-sparkline-CgtP1kxm.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CDpHiCTo.cjs → vue-ui-sparkstackbar--pn0EIYM.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-ZvPhkKk4.js → vue-ui-sparkstackbar-DNjIcyBK.js} +5 -5
- package/dist/{vue-ui-stackbar-CX96MGjz.js → vue-ui-stackbar-CjRAckRq.js} +13 -13
- package/dist/{vue-ui-stackbar-CKaqcgK_.cjs → vue-ui-stackbar-CqQ5RMAB.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BCRGcKhd.js → vue-ui-strip-plot-CW_RftRT.js} +11 -11
- package/dist/{vue-ui-strip-plot-Cw8Su0WV.cjs → vue-ui-strip-plot-DxfM92am.cjs} +1 -1
- package/dist/{vue-ui-table-BcnDEvP5.js → vue-ui-table-D9K1kDv5.js} +183 -167
- package/dist/{vue-ui-table-heatmap-BvdOkoVy.js → vue-ui-table-heatmap-B_iJQCJL.js} +4 -4
- package/dist/{vue-ui-table-heatmap-XbKVm0qZ.cjs → vue-ui-table-heatmap-D2Ikfd7A.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DlAlNznI.js → vue-ui-table-sparkline-Bu-b38cW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-ClWB_nso.cjs → vue-ui-table-sparkline-CYWYfG5M.cjs} +1 -1
- package/dist/vue-ui-table-z1l0Vin6.cjs +14 -0
- package/dist/{vue-ui-thermometer-DfTbUkLT.js → vue-ui-thermometer--XuyMCZI.js} +7 -7
- package/dist/{vue-ui-thermometer-zpcoSEWt.cjs → vue-ui-thermometer-CgYedLZ5.cjs} +1 -1
- package/dist/{vue-ui-timer-DwFy6VaG.cjs → vue-ui-timer-BiTGijvm.cjs} +1 -1
- package/dist/{vue-ui-timer-TchnXzem.js → vue-ui-timer-GrhFEUcz.js} +5 -5
- package/dist/{vue-ui-tiremarks-fzrlOBsj.js → vue-ui-tiremarks-CHd1kBCw.js} +7 -7
- package/dist/{vue-ui-tiremarks-CmAFj_nG.cjs → vue-ui-tiremarks-LAdsMqyP.cjs} +1 -1
- package/dist/{vue-ui-treemap-DnNrJ4dw.cjs → vue-ui-treemap-4BGOXoCD.cjs} +1 -1
- package/dist/{vue-ui-treemap-CDo8x9s6.js → vue-ui-treemap-CIGl0OBe.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DxcAPPXR.cjs → vue-ui-vertical-bar-Bc3d2SCI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Bx1KnXDB.js → vue-ui-vertical-bar-Btv32rCQ.js} +12 -12
- package/dist/{vue-ui-waffle-CvQaobYo.cjs → vue-ui-waffle-BfgS6Gkw.cjs} +1 -1
- package/dist/{vue-ui-waffle-faLsv9bZ.js → vue-ui-waffle-qZHJoGgD.js} +12 -12
- package/dist/{vue-ui-wheel-pn6-k3Wb.js → vue-ui-wheel-CFf56O9Y.js} +7 -7
- package/dist/{vue-ui-wheel-BWXUHx3h.cjs → vue-ui-wheel-CkqHG4gC.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Bfn2BGMh.js → vue-ui-word-cloud-Cgtt4v0g.js} +10 -10
- package/dist/{vue-ui-word-cloud-BPU3c5Z2.cjs → vue-ui-word-cloud-DU1a_f2O.cjs} +1 -1
- package/dist/vue-ui-world-2gnEByN3.js +1107 -0
- package/dist/vue-ui-world-w-oAd8TZ.cjs +19 -0
- package/dist/{vue-ui-xy-B5DZ8Qmi.js → vue-ui-xy-DhTZvuRq.js} +16 -16
- package/dist/{vue-ui-xy-DJZ-eOyQ.cjs → vue-ui-xy-Dy4M6VtE.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BwmEkw6g.js → vue-ui-xy-canvas-B4jIg9Zl.js} +12 -12
- package/dist/{vue-ui-xy-canvas-2gXEGzLd.cjs → vue-ui-xy-canvas-CTwc8DS0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-table-DCGpCB-H.cjs +0 -14
- package/dist/vue-ui-world-BbjG83CB.js +0 -929
- package/dist/vue-ui-world-DWecwIQS.cjs +0 -19
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a3 as
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
4
|
-
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as
|
|
1
|
+
import { a3 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, G as J, u as K, p as Z } from "./index-BDGf85YF.js";
|
|
2
|
+
import q from "./vue-ui-xy-DhTZvuRq.js";
|
|
3
|
+
import Q from "./vue-ui-donut-DlvFHlJB.js";
|
|
4
|
+
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
7
7
|
name: "vue-ui-table",
|
|
@@ -139,8 +139,6 @@ Provide an array of objects of type:
|
|
|
139
139
|
showChart: function(n) {
|
|
140
140
|
n && this.$nextTick(() => {
|
|
141
141
|
this.closeDragElement();
|
|
142
|
-
const s = this.$refs.chartModal;
|
|
143
|
-
s.onmousedown = this.dragMouseDown;
|
|
144
142
|
});
|
|
145
143
|
},
|
|
146
144
|
dataset: {
|
|
@@ -187,7 +185,7 @@ Provide an array of objects of type:
|
|
|
187
185
|
},
|
|
188
186
|
chartData() {
|
|
189
187
|
if (!this.canChart) return [];
|
|
190
|
-
const n = 316, s = 512, r = this.currentSelectionSpan.rows.length,
|
|
188
|
+
const n = 316, s = 512, r = this.currentSelectionSpan.rows.length, i = s / r, t = Math.max(...this.currentSelectionSpan.rows.map((v) => v.value)), e = Math.min(...this.currentSelectionSpan.rows.map((v) => v.value)), y = 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, l = this.dataset.header[this.currentSelectionSpan.col].name + (y ? ` / ${this.dataset.header[this.percentages[this.currentSelectionSpan.col].referenceIndex].name}` : "") + (f ? ` ${this.FINAL_CONFIG.translations.by} ${this.selectedDonutCategory.name}` : ""), o = this.dataset.header[this.currentSelectionSpan.col].prefix, h = this.dataset.header[this.currentSelectionSpan.col].suffix, m = [
|
|
191
189
|
{
|
|
192
190
|
name: l,
|
|
193
191
|
series: this.currentSelectionSpan.rows.map((v) => v.value),
|
|
@@ -217,6 +215,7 @@ Provide an array of objects of type:
|
|
|
217
215
|
grid: {
|
|
218
216
|
stroke: T(N, 0.5),
|
|
219
217
|
labels: {
|
|
218
|
+
color: N,
|
|
220
219
|
xAxisLabels: { show: !1 }
|
|
221
220
|
}
|
|
222
221
|
},
|
|
@@ -281,7 +280,7 @@ Provide an array of objects of type:
|
|
|
281
280
|
}
|
|
282
281
|
}
|
|
283
282
|
}, D = e >= 0 ? 0 : Math.abs(e), H = t + D, M = this.dataset.header[this.currentSelectionSpan.col].isPercentage, G = this.currentSelectionSpan.rows.map((v, R) => ({
|
|
284
|
-
x:
|
|
283
|
+
x: i * R + i / 2,
|
|
285
284
|
y: (1 - (v.value + D) / H) * n,
|
|
286
285
|
value: M ? v.value * 100 : v.value,
|
|
287
286
|
suffix: M ? "%" : this.dataset.header[this.currentSelectionSpan.col].suffix ? this.dataset.header[this.currentSelectionSpan.col].suffix : "",
|
|
@@ -397,7 +396,8 @@ Provide an array of objects of type:
|
|
|
397
396
|
sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
|
|
398
397
|
sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,
|
|
399
398
|
table: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,
|
|
400
|
-
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize * 0.8}" height="${this.iconSize * 0.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg
|
|
399
|
+
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize * 0.8}" height="${this.iconSize * 0.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,
|
|
400
|
+
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${this.iconSize}" height="${this.iconSize}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`
|
|
401
401
|
};
|
|
402
402
|
},
|
|
403
403
|
pages() {
|
|
@@ -442,14 +442,14 @@ Provide an array of objects of type:
|
|
|
442
442
|
dataLabel: V,
|
|
443
443
|
downloadCsv: U,
|
|
444
444
|
lightenHexColor: T,
|
|
445
|
-
treeShake:
|
|
445
|
+
treeShake: P,
|
|
446
446
|
// specific
|
|
447
447
|
applyDonutOption() {
|
|
448
448
|
const n = this.selectedDonutCategory.options.map((s, r) => ({
|
|
449
449
|
name: s,
|
|
450
450
|
color: this.palette[r] || this.palette[r % this.palette.length],
|
|
451
|
-
values: [this.visibleRows.filter((
|
|
452
|
-
absoluteValue: this.visibleRows.filter((
|
|
451
|
+
values: [this.visibleRows.filter((i, t) => i.td[this.selectedDonutCategory.index] === s && this.currentSelectionSpan.rows.map((e) => e.index).includes(t)).map((i) => i.td[this.currentSelectionSpan.col]).reduce((i, t) => Math.abs(i) + Math.abs(t), 0)],
|
|
452
|
+
absoluteValue: this.visibleRows.filter((i, t) => i.td[this.selectedDonutCategory.index] === s && this.currentSelectionSpan.rows.map((e) => e.index).includes(t)).map((i) => i.td[this.currentSelectionSpan.col]).reduce((i, t) => i + t, 0)
|
|
453
453
|
})).sort((s, r) => r.value - s.value);
|
|
454
454
|
this.currentDonut = n, this.$nextTick(() => {
|
|
455
455
|
this.chart.type = this.constants.DONUT, this.showDonutOptions = !1;
|
|
@@ -462,10 +462,10 @@ Provide an array of objects of type:
|
|
|
462
462
|
return !this.hasNaN[n] && (s.isSort || s.isSearch || s.isMultiselect || s.rangeFilter) && ![this.constants.DATE].includes(s.type);
|
|
463
463
|
},
|
|
464
464
|
createXls(n = "all") {
|
|
465
|
-
const s = this.dataset.header.map((e) => e.name), r = n === "all" ? this.bodyCopy.map((e) => e.td) : this.visibleRows.map((e) => e.td),
|
|
465
|
+
const s = this.dataset.header.map((e) => e.name), r = n === "all" ? this.bodyCopy.map((e) => e.td) : this.visibleRows.map((e) => e.td), i = [s].concat(r), t = this.createCsvContent(i);
|
|
466
466
|
this.downloadCsv({ csvContent: t, title: "vue-ui-table" });
|
|
467
467
|
},
|
|
468
|
-
calcLinearProgression:
|
|
468
|
+
calcLinearProgression: z,
|
|
469
469
|
closeAllDropdowns() {
|
|
470
470
|
const n = document.getElementsByClassName("th-dropdown");
|
|
471
471
|
n.length && Array.from(n).forEach((s) => {
|
|
@@ -482,11 +482,11 @@ Provide an array of objects of type:
|
|
|
482
482
|
if (!n.td[s].toUpperCase().includes(this.searches[s].toUpperCase()))
|
|
483
483
|
return !1;
|
|
484
484
|
for (const s in this.multiselects)
|
|
485
|
-
if (!this.multiselects[s].some((
|
|
485
|
+
if (!this.multiselects[s].some((i) => i === n.td[s]))
|
|
486
486
|
return !1;
|
|
487
487
|
for (const s in this.dates) {
|
|
488
|
-
const r = new Date(n.td[s]),
|
|
489
|
-
if (r <
|
|
488
|
+
const r = new Date(n.td[s]), i = new Date(this.dates[s].from), t = new Date(this.dates[s].to);
|
|
489
|
+
if (r < i || r > t)
|
|
490
490
|
return !1;
|
|
491
491
|
}
|
|
492
492
|
return !0;
|
|
@@ -496,7 +496,7 @@ Provide an array of objects of type:
|
|
|
496
496
|
return this.rows.map((s) => s[n]).map((s) => isNaN(Number(s)) ? 0 : s).reduce((s, r) => s + r, 0) / this.bodyCopy.length;
|
|
497
497
|
},
|
|
498
498
|
getDatesRange(n) {
|
|
499
|
-
const s = this.dataset.body.map((F) => new Date(F.td[n])), r = new Date(Math.min(...s)),
|
|
499
|
+
const s = this.dataset.body.map((F) => new Date(F.td[n])), r = new Date(Math.min(...s)), i = new Date(Math.max(...s)), t = r.getFullYear(), e = i.getFullYear(), y = String(r.getMonth() + 1).padStart(2, "0"), f = String(i.getMonth() + 1).padStart(2, "0"), l = String(r.getDate()).padStart(2, "0"), o = String(i.getDate()).padStart(2, "0"), h = `${t}-${y}-${l}`, m = `${e}-${f}-${o}`;
|
|
500
500
|
return {
|
|
501
501
|
from: h,
|
|
502
502
|
to: m
|
|
@@ -521,29 +521,29 @@ Provide an array of objects of type:
|
|
|
521
521
|
return !isNaN(Number(String(n).replaceAll("%", "")));
|
|
522
522
|
},
|
|
523
523
|
isResetDisabled(n, s) {
|
|
524
|
-
const r = s.isSort,
|
|
524
|
+
const r = s.isSort, i = s.isSearch, t = s.isMultiselect && this.multiselects[n], e = s.rangeFilter, y = (f) => {
|
|
525
525
|
if (e && this.rangeFilters[f])
|
|
526
526
|
return Math.round(this.rangeFilters[f].min) === this.immutableRangeFilters[f].min && Math.round(this.rangeFilters[f].max) === this.immutableRangeFilters[f].max;
|
|
527
527
|
};
|
|
528
|
-
if (r &&
|
|
528
|
+
if (r && i && t && e)
|
|
529
529
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && y(n);
|
|
530
|
-
if (r &&
|
|
530
|
+
if (r && i && t)
|
|
531
531
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
532
|
-
if (r &&
|
|
532
|
+
if (r && i && e)
|
|
533
533
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]) && y(n);
|
|
534
|
-
if (r &&
|
|
534
|
+
if (r && i)
|
|
535
535
|
return ["", void 0].includes(this.searches[n]) && [void 0].includes(this.sorts[n]);
|
|
536
536
|
if (r && t && e)
|
|
537
537
|
return [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && y(n);
|
|
538
538
|
if (r && t)
|
|
539
539
|
return [void 0].includes(this.sorts[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
540
|
-
if (
|
|
540
|
+
if (i && t && e)
|
|
541
541
|
return ["", void 0].includes(this.searches[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length && y(n);
|
|
542
|
-
if (
|
|
542
|
+
if (i && t)
|
|
543
543
|
return ["", void 0].includes(this.searches[n]) && this.multiselects[n].length === this.getDropdownOptions(n).length;
|
|
544
|
-
if (
|
|
544
|
+
if (i && e)
|
|
545
545
|
return ["", void 0].includes(this.searches[n]) && y(n);
|
|
546
|
-
if (
|
|
546
|
+
if (i)
|
|
547
547
|
return ["", void 0].includes(this.searches[n]);
|
|
548
548
|
if (r && e)
|
|
549
549
|
return [void 0].includes(this.sorts[n]) && y(n);
|
|
@@ -563,8 +563,8 @@ Provide an array of objects of type:
|
|
|
563
563
|
},
|
|
564
564
|
navigateCell(n) {
|
|
565
565
|
n.preventDefault();
|
|
566
|
-
const s = n.keyCode, r = 38,
|
|
567
|
-
if (![r,
|
|
566
|
+
const s = n.keyCode, r = 38, i = 40, t = 37, e = 39;
|
|
567
|
+
if (![r, i, t, e].includes(s)) return;
|
|
568
568
|
const y = n.target.id, f = /cell_(\d+)_(\d+)_vue-ui-table-(\d+)/, l = y.match(f), o = parseInt(l[1]), h = parseInt(l[2]), m = document.getElementById(`cell_${o}_${h + 1}_${this.uid}`), F = document.getElementById(`cell_${o}_${h - 1}_${this.uid}`), k = document.getElementById(`cell_${o + 1}_${h}_${this.uid}`), N = document.getElementById(`cell_${o - 1}_${h}_${this.uid}`);
|
|
569
569
|
let C;
|
|
570
570
|
switch (!0) {
|
|
@@ -577,7 +577,7 @@ Provide an array of objects of type:
|
|
|
577
577
|
case s === r:
|
|
578
578
|
C = N;
|
|
579
579
|
break;
|
|
580
|
-
case s ===
|
|
580
|
+
case s === i:
|
|
581
581
|
C = k;
|
|
582
582
|
break;
|
|
583
583
|
default:
|
|
@@ -589,54 +589,54 @@ Provide an array of objects of type:
|
|
|
589
589
|
this.selectedDonutCategory = this.availableDonutCategories[0], this.showDonutOptions = !0;
|
|
590
590
|
},
|
|
591
591
|
placeLabelOnTopOrBottom({ previousPlot: n, currentPlot: s, nextPlot: r }) {
|
|
592
|
-
const
|
|
593
|
-
return n && r ? n.value < s.value && r.value < s.value ?
|
|
592
|
+
const i = s.y - 38, t = s.y + 16;
|
|
593
|
+
return n && r ? n.value < s.value && r.value < s.value ? i : n.value > s.value && r.value > s.value ? t : (n.value > s.value && r.value < s.value || n.value < s.value && r.value > s.value, i) : n && !r ? n.value > s.value ? t : i : !n && r && r.value > s.value ? t : i;
|
|
594
594
|
},
|
|
595
595
|
async prepareBodyCopy() {
|
|
596
596
|
return new Promise((n) => {
|
|
597
597
|
const s = [];
|
|
598
|
-
this.tableHead.forEach((r,
|
|
599
|
-
if (r.isSearch && Object.assign(this.searches, { [
|
|
600
|
-
[
|
|
598
|
+
this.tableHead.forEach((r, i) => {
|
|
599
|
+
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, {
|
|
600
|
+
[i]: {
|
|
601
601
|
reference: r.percentageTo,
|
|
602
602
|
referenceIndex: this.dataset.header.map((t) => t.name).indexOf(r.percentageTo)
|
|
603
603
|
}
|
|
604
604
|
}), r.rangeFilter && (Object.assign(this.rangeFilters, {
|
|
605
|
-
[
|
|
606
|
-
min: Math.round(Math.min(...this.dataset.body.map((t) => t.td).map((t) => t[
|
|
607
|
-
max: Math.round(Math.max(...this.dataset.body.map((t) => t.td).map((t) => t[
|
|
605
|
+
[i]: {
|
|
606
|
+
min: Math.round(Math.min(...this.dataset.body.map((t) => t.td).map((t) => t[i]))),
|
|
607
|
+
max: Math.round(Math.max(...this.dataset.body.map((t) => t.td).map((t) => t[i])))
|
|
608
608
|
}
|
|
609
609
|
}), Object.assign(this.immutableRangeFilters, {
|
|
610
|
-
[
|
|
611
|
-
min: Math.round(Math.min(...this.dataset.body.map((t) => t.td).map((t) => t[
|
|
612
|
-
max: Math.round(Math.max(...this.dataset.body.map((t) => t.td).map((t) => t[
|
|
610
|
+
[i]: {
|
|
611
|
+
min: Math.round(Math.min(...this.dataset.body.map((t) => t.td).map((t) => t[i]))),
|
|
612
|
+
max: Math.round(Math.max(...this.dataset.body.map((t) => t.td).map((t) => t[i])))
|
|
613
613
|
}
|
|
614
614
|
})), r.isPercentage) {
|
|
615
615
|
const t = this.dataset.header.map((y) => y.name).indexOf(r.percentageTo), e = this.dataset.body.map((y) => y.td[t]).reduce((y, f) => y + f, 0);
|
|
616
|
-
s.push([
|
|
616
|
+
s.push([i, t, e]);
|
|
617
617
|
}
|
|
618
|
-
r.type === this.constants.NUMERIC && !r.isPercentage && Object.assign(this.hasNaN, { [
|
|
619
|
-
}), this.bodyCopy.forEach((r,
|
|
618
|
+
r.type === this.constants.NUMERIC && !r.isPercentage && Object.assign(this.hasNaN, { [i]: this.includesNaN(this.dataset.body.map((t) => Number(t.td[i]))) });
|
|
619
|
+
}), this.bodyCopy.forEach((r, i) => {
|
|
620
620
|
s.map((t) => {
|
|
621
621
|
const [e, y, f] = t;
|
|
622
622
|
r.td[e] = r.td[y] / f;
|
|
623
623
|
}), r.td.forEach((t, e) => {
|
|
624
|
-
this.dataset.header[e].type === this.constants.TEXT && this.dataset.header[e].isSearch && (r[e] = this.stringToNumber(t)), this.dataset.header[e].type === this.constants.DATE && (r[e] = new Date(t).getTime()), this.dataset.header[e].type === this.constants.NUMERIC && (r[e] = isNaN(Number(t)) ? e : t), this.tableBody[
|
|
624
|
+
this.dataset.header[e].type === this.constants.TEXT && this.dataset.header[e].isSearch && (r[e] = this.stringToNumber(t)), this.dataset.header[e].type === this.constants.DATE && (r[e] = new Date(t).getTime()), this.dataset.header[e].type === this.constants.NUMERIC && (r[e] = isNaN(Number(t)) ? e : t), this.tableBody[i][e] = r[e];
|
|
625
625
|
});
|
|
626
626
|
}), n(!0);
|
|
627
627
|
});
|
|
628
628
|
},
|
|
629
629
|
promiseWithAsyncFunction(n, s) {
|
|
630
|
-
return new Promise((r,
|
|
630
|
+
return new Promise((r, i) => {
|
|
631
631
|
n().then((t) => {
|
|
632
632
|
try {
|
|
633
633
|
const e = s(t);
|
|
634
634
|
r(e);
|
|
635
635
|
} catch (e) {
|
|
636
|
-
|
|
636
|
+
i(e);
|
|
637
637
|
}
|
|
638
638
|
}).catch((t) => {
|
|
639
|
-
|
|
639
|
+
i(t);
|
|
640
640
|
});
|
|
641
641
|
});
|
|
642
642
|
},
|
|
@@ -647,9 +647,9 @@ Provide an array of objects of type:
|
|
|
647
647
|
}, this.filteredDatesIndexes[n] = !1, this.$forceUpdate(), this.filterBody();
|
|
648
648
|
},
|
|
649
649
|
resetFilter(n, s, r) {
|
|
650
|
-
const
|
|
651
|
-
clearTimeout(this.buttonTimeout),
|
|
652
|
-
|
|
650
|
+
const i = r.currentTarget;
|
|
651
|
+
clearTimeout(this.buttonTimeout), i.classList.add("clicked"), this.buttonTimeout = setTimeout(() => {
|
|
652
|
+
i.classList.remove("clicked");
|
|
653
653
|
}, 200), this.currentFilter = void 0, s.rangeFilter && (this.rangeFilters[n].min = this.immutableRangeFilters[n].min, this.rangeFilters[n].max = this.immutableRangeFilters[n].max), s.isMultiselect ? (this.multiselects[n] = this.getDropdownOptions(n), s.type === this.constants.TEXT && (this.sorts[n] = void 0), s.isSearch && (this.searches[n] = "")) : s.type === this.constants.NUMERIC ? this.sorts[n] = void 0 : s.type === this.constants.TEXT ? (this.sorts[n] = void 0, this.searches[n] = "") : s.type === this.constants.DATE && (this.sorts[n] = void 0), this.filterBody();
|
|
654
654
|
},
|
|
655
655
|
resetSelection() {
|
|
@@ -679,8 +679,8 @@ Provide an array of objects of type:
|
|
|
679
679
|
selectDropdownOption(n, s) {
|
|
680
680
|
this.multiselects[s].includes(n) ? this.multiselects[s] = this.multiselects[s].filter((r) => r !== n) : this.multiselects[s].push(n), this.$forceUpdate(), this.filterBody();
|
|
681
681
|
},
|
|
682
|
-
selectTd({ td: n, rowIndex: s, colIndex: r, headerType:
|
|
683
|
-
if (
|
|
682
|
+
selectTd({ td: n, rowIndex: s, colIndex: r, headerType: i, event: t }) {
|
|
683
|
+
if (i !== this.constants.NUMERIC || isNaN(Number(n))) {
|
|
684
684
|
this.resetSelection();
|
|
685
685
|
return;
|
|
686
686
|
}
|
|
@@ -705,9 +705,9 @@ Provide an array of objects of type:
|
|
|
705
705
|
this.sortByNumber(this.bodyCopy, n);
|
|
706
706
|
}), this.currentFilter !== void 0 && this.sortByNumber(this.bodyCopy, this.currentFilter), this.dataset.header.forEach((n, s) => {
|
|
707
707
|
if (n.isPercentage) {
|
|
708
|
-
const r = this.percentages[s].referenceIndex,
|
|
708
|
+
const r = this.percentages[s].referenceIndex, i = this.bodyCopy.map((t) => t.td[r]).reduce((t, e) => t + e, 0);
|
|
709
709
|
this.bodyCopy.forEach((t) => {
|
|
710
|
-
t.td[s] = t.td[r] /
|
|
710
|
+
t.td[s] = t.td[r] / i;
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
}), this.currentPage > this.pages.length - 1 && (this.currentPage = this.pages.length - 1), [-1].includes(this.currentPage) && (this.currentPage = 0), this.$forceUpdate();
|
|
@@ -716,8 +716,8 @@ Provide an array of objects of type:
|
|
|
716
716
|
this.bodyCopy = n.filter((r) => r.td[s] >= this.rangeFilters[s].min && r[s] <= this.rangeFilters[s].max);
|
|
717
717
|
},
|
|
718
718
|
sortByNumber(n, s) {
|
|
719
|
-
if (this.sorts[s] === this.constants.ASC && (n = n.sort((r,
|
|
720
|
-
n = n.sort((r,
|
|
719
|
+
if (this.sorts[s] === this.constants.ASC && (n = n.sort((r, i) => r[s] - i[s])), this.sorts[s] === this.constants.DESC)
|
|
720
|
+
n = n.sort((r, i) => i[s] - r[s]);
|
|
721
721
|
else
|
|
722
722
|
return 0;
|
|
723
723
|
},
|
|
@@ -735,9 +735,9 @@ Provide an array of objects of type:
|
|
|
735
735
|
return s;
|
|
736
736
|
},
|
|
737
737
|
toggleMultiselect(n, s, r) {
|
|
738
|
-
const
|
|
739
|
-
clearTimeout(this.buttonTimeout),
|
|
740
|
-
|
|
738
|
+
const i = r.currentTarget;
|
|
739
|
+
clearTimeout(this.buttonTimeout), i.classList.add("clicked"), this.buttonTimeout = setTimeout(() => {
|
|
740
|
+
i.classList.remove("clicked");
|
|
741
741
|
}, 200);
|
|
742
742
|
const t = document.getElementById(`th_dropdown_${n}`);
|
|
743
743
|
t.dataset.isOpen === "false" ? t.dataset.isOpen = "true" : t.dataset.isOpen = "false";
|
|
@@ -776,7 +776,7 @@ Provide an array of objects of type:
|
|
|
776
776
|
elementDrag(n) {
|
|
777
777
|
if (this.rafId) return;
|
|
778
778
|
const r = this.$refs.chartModal.getBoundingClientRect();
|
|
779
|
-
this.clientX = n.clientX - this.dragOffsetX, this.clientY = n.clientY - this.dragOffsetY, 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);
|
|
779
|
+
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);
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
}, ne = { class: "vue-ui-table-export-hub" }, re = ["innerHTML"], oe = ["data-is-open"], le = { class: "vue-ui-table-export-hub-options" }, ae = { class: "vue-ui-table-export-hub-option-wrapper" }, ie = { class: "label" }, ce = ["innerHTML"], ue = { class: "vue-ui-table-export-hub-option-wrapper" }, he = { class: "label" }, de = ["innerHTML"], ge = { class: "vue-ui-table" }, ye = { id: "tableHead" }, me = { key: 0 }, be = { key: 0 }, fe = { key: 1 }, Ne = {
|
|
@@ -788,7 +788,7 @@ Provide an array of objects of type:
|
|
|
788
788
|
}, Ie = { key: 0 }, Fe = { class: "th-filter" }, ve = {
|
|
789
789
|
key: 0,
|
|
790
790
|
class: "th-date"
|
|
791
|
-
}, we = { class: "date-wrapper--inputs" }, _e = { class: "date-fieldset" }, ke = ["for"], Oe = ["id", "onUpdate:modelValue", "onInput"], Se = { class: "date-fieldset" }, Le = ["for"], Ae = ["id", "onUpdate:modelValue", "onInput"], Me = { class: "date-wrapper--button" }, De = ["onClick"], Ge = ["innerHTML"], Te = ["innerHTML"], xe = ["innerHTML"], Ee = ["onClick", "disabled"], Be = ["placeholder", "onUpdate:modelValue", "name"], He = ["onClick"], Re = ["innerHTML"],
|
|
791
|
+
}, we = { class: "date-wrapper--inputs" }, _e = { class: "date-fieldset" }, ke = ["for"], Oe = ["id", "onUpdate:modelValue", "onInput"], Se = { class: "date-fieldset" }, Le = ["for"], Ae = ["id", "onUpdate:modelValue", "onInput"], Me = { class: "date-wrapper--button" }, De = ["onClick"], Ge = ["innerHTML"], Te = ["innerHTML"], xe = ["innerHTML"], Ee = ["onClick", "disabled"], Be = ["placeholder", "onUpdate:modelValue", "name"], He = ["onClick"], Re = ["innerHTML"], ze = ["innerHTML"], Pe = ["innerHTML"], Ue = ["onClick", "innerHTML"], Ve = ["innerHTML"], Xe = {
|
|
792
792
|
key: 5,
|
|
793
793
|
class: "th-range-filter"
|
|
794
794
|
}, je = ["for"], Ye = ["id", "max", "min", "onUpdate:modelValue"], We = ["id", "max", "min", "onUpdate:modelValue"], Je = ["for"], Ke = ["onClick", "disabled"], Ze = ["id"], qe = ["onClick"], Qe = ["onClick", "onKeyup"], $e = ["innerHTML", "onClick", "onKeyup"], et = ["data-row"], tt = ["data-row"], st = ["data-row", "onClick", "onKeyup", "id"], nt = ["innerHTML"], rt = { key: 1 }, ot = { key: 2 }, lt = { key: 5 }, at = ["innerHTML"], it = { key: 0 }, ct = { style: { "margin-left": "12px" } }, ut = { class: "format-num" }, ht = { style: { "margin-left": "12px" } }, dt = {
|
|
@@ -818,75 +818,75 @@ Provide an array of objects of type:
|
|
|
818
818
|
}, kt = {
|
|
819
819
|
for: "pageScroller",
|
|
820
820
|
style: { "font-size": "14px" }
|
|
821
|
-
}, Ot = ["max", "value"], St = { key: 1 }, Lt = ["disabled"], At = ["innerHTML", "disabled"], Mt = { class: "chart-modal-options" },
|
|
822
|
-
style: { width: "100%", height: "fit-content"
|
|
821
|
+
}, Ot = ["max", "value"], St = { key: 1 }, Lt = ["disabled"], At = ["innerHTML", "disabled"], Mt = ["innerHTML"], Dt = { class: "chart-modal-options" }, Gt = ["innerHTML"], Tt = ["innerHTML"], xt = ["innerHTML"], Et = {
|
|
822
|
+
style: { width: "100%", height: "fit-content" },
|
|
823
823
|
ref: "chartModal"
|
|
824
|
-
},
|
|
824
|
+
}, Bt = { class: "vue-ui-table-fieldset" }, Ht = { class: "vue-ui-table-fieldset-wrapper" }, Rt = ["name", "id", "checked", "onInput"], zt = ["for"], Pt = ["disabled"], Ut = ["innerHTML"], Vt = { style: { width: "100%", "margin-bottom": "12px" } }, Xt = {
|
|
825
825
|
key: 2,
|
|
826
826
|
style: { width: "100%", "margin-bottom": "32px" }
|
|
827
827
|
};
|
|
828
|
-
function
|
|
828
|
+
function jt(n, s, r, i, t, e) {
|
|
829
829
|
const y = x("VueUiXy"), f = x("VueUiDonut");
|
|
830
830
|
return c(), u("div", {
|
|
831
831
|
class: "vue-ui-table-main",
|
|
832
832
|
style: g(`font-family: ${e.FINAL_CONFIG.fontFamily}`)
|
|
833
833
|
}, [
|
|
834
|
-
|
|
835
|
-
|
|
834
|
+
a("div", ne, [
|
|
835
|
+
a("button", {
|
|
836
836
|
onClick: s[0] || (s[0] = (l) => t.isExportRequest = !t.isExportRequest),
|
|
837
837
|
innerHTML: e.icons.export,
|
|
838
838
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
839
839
|
}, null, 12, re),
|
|
840
|
-
|
|
840
|
+
a("div", {
|
|
841
841
|
class: "vue-ui-table-export-hub-dropdown",
|
|
842
842
|
"data-is-open": t.isExportRequest || "false",
|
|
843
843
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.color}`)
|
|
844
844
|
}, [
|
|
845
|
-
s[
|
|
846
|
-
|
|
845
|
+
s[25] || (s[25] = a("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1)),
|
|
846
|
+
a("button", {
|
|
847
847
|
class: "close-dropdown",
|
|
848
848
|
onClick: s[1] || (s[1] = (l) => t.isExportRequest = !1),
|
|
849
849
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
850
850
|
}, " ✖ ", 4),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
851
|
+
a("div", le, [
|
|
852
|
+
a("div", ae, [
|
|
853
|
+
a("div", ie, d(e.FINAL_CONFIG.translations.exportAllLabel) + " (" + d(t.bodyCopy.length) + ") ", 1),
|
|
854
|
+
a("button", {
|
|
855
855
|
id: "exportAll",
|
|
856
856
|
onClick: s[2] || (s[2] = (l) => e.createXls("all")),
|
|
857
857
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
858
858
|
}, [
|
|
859
|
-
|
|
859
|
+
a("div", {
|
|
860
860
|
innerHTML: e.icons.fileDownload
|
|
861
861
|
}, null, 8, ce),
|
|
862
|
-
|
|
862
|
+
a("span", null, d(e.FINAL_CONFIG.translations.exportAllButton), 1)
|
|
863
863
|
], 4)
|
|
864
864
|
]),
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
865
|
+
a("div", ue, [
|
|
866
|
+
a("div", he, d(e.FINAL_CONFIG.translations.exportPageLabel), 1),
|
|
867
|
+
a("button", {
|
|
868
868
|
id: "exportPage",
|
|
869
869
|
onClick: s[3] || (s[3] = (l) => e.createXls("page")),
|
|
870
870
|
style: g(`background:${e.FINAL_CONFIG.style.exportMenu.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.exportMenu.buttons.color}`)
|
|
871
871
|
}, [
|
|
872
|
-
|
|
872
|
+
a("div", {
|
|
873
873
|
innerHTML: e.icons.fileDownload
|
|
874
874
|
}, null, 8, de),
|
|
875
|
-
|
|
875
|
+
a("span", null, d(e.FINAL_CONFIG.translations.exportPageButton), 1)
|
|
876
876
|
], 4)
|
|
877
877
|
])
|
|
878
878
|
])
|
|
879
879
|
], 12, oe)
|
|
880
880
|
]),
|
|
881
|
-
|
|
881
|
+
a("div", {
|
|
882
882
|
class: "vue-ui-table__wrapper",
|
|
883
883
|
style: g(`max-height:${e.FINAL_CONFIG.maxHeight}px`),
|
|
884
884
|
ref: "tableWrapper"
|
|
885
885
|
}, [
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
s[
|
|
886
|
+
a("table", ge, [
|
|
887
|
+
a("thead", ye, [
|
|
888
|
+
a("tr", null, [
|
|
889
|
+
s[26] || (s[26] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
890
890
|
(c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
|
|
891
891
|
key: `thead_${o}`,
|
|
892
892
|
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}`),
|
|
@@ -899,15 +899,15 @@ function Xt(n, s, r, a, t, e) {
|
|
|
899
899
|
], 6))), 128))
|
|
900
900
|
]),
|
|
901
901
|
e.hasNumericTypes ? (c(), u(I, { key: 0 }, [
|
|
902
|
-
|
|
903
|
-
s[
|
|
902
|
+
a("tr", null, [
|
|
903
|
+
s[27] || (s[27] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
904
904
|
(c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
|
|
905
905
|
key: `thead_${o}`,
|
|
906
906
|
class: p({ "th-numeric": !0, "th-has-nan": t.hasNaN[o] }),
|
|
907
907
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
908
908
|
}, [
|
|
909
909
|
l.sum && !t.hasNaN[o] ? (c(), u("span", Ne, [
|
|
910
|
-
|
|
910
|
+
a("span", {
|
|
911
911
|
innerHTML: e.icons.sum,
|
|
912
912
|
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
913
913
|
}, null, 8, pe),
|
|
@@ -925,8 +925,8 @@ function Xt(n, s, r, a, t, e) {
|
|
|
925
925
|
])) : b("", !0)
|
|
926
926
|
], 6))), 128))
|
|
927
927
|
]),
|
|
928
|
-
|
|
929
|
-
s[
|
|
928
|
+
a("tr", null, [
|
|
929
|
+
s[28] || (s[28] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
930
930
|
(c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
|
|
931
931
|
key: `thead_${o}`,
|
|
932
932
|
class: p({ "th-numeric": !0, "th-has-nan": t.hasNaN[o] }),
|
|
@@ -940,21 +940,21 @@ function Xt(n, s, r, a, t, e) {
|
|
|
940
940
|
})), 1)) : b("", !0)
|
|
941
941
|
], 6))), 128))
|
|
942
942
|
]),
|
|
943
|
-
|
|
944
|
-
s[
|
|
943
|
+
a("tr", null, [
|
|
944
|
+
s[31] || (s[31] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
945
945
|
(c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
|
|
946
946
|
key: `thead_${o}`,
|
|
947
947
|
class: p({ "th-has-nan": t.hasNaN[o] }),
|
|
948
948
|
style: g(`background:${e.FINAL_CONFIG.style.th.backgroundColor};color:${e.FINAL_CONFIG.style.th.color};outline:${e.FINAL_CONFIG.style.th.outline}`)
|
|
949
949
|
}, [
|
|
950
|
-
|
|
950
|
+
a("div", Fe, [
|
|
951
951
|
l.type === t.constants.DATE && t.dates[o] ? (c(), u("div", ve, [
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
a("div", we, [
|
|
953
|
+
a("div", _e, [
|
|
954
|
+
a("label", {
|
|
955
955
|
for: `from_${o}`
|
|
956
956
|
}, d(e.FINAL_CONFIG.translations.from), 9, ke),
|
|
957
|
-
O(
|
|
957
|
+
O(a("input", {
|
|
958
958
|
id: `from_${o}`,
|
|
959
959
|
type: "date",
|
|
960
960
|
"onUpdate:modelValue": (h) => t.dates[o].from = h,
|
|
@@ -966,11 +966,11 @@ function Xt(n, s, r, a, t, e) {
|
|
|
966
966
|
[S, t.dates[o].from]
|
|
967
967
|
])
|
|
968
968
|
]),
|
|
969
|
-
|
|
970
|
-
|
|
969
|
+
a("div", Se, [
|
|
970
|
+
a("label", {
|
|
971
971
|
for: `to_${o}`
|
|
972
972
|
}, d(e.FINAL_CONFIG.translations.to), 9, Le),
|
|
973
|
-
O(
|
|
973
|
+
O(a("input", {
|
|
974
974
|
id: `to_${o}`,
|
|
975
975
|
type: "date",
|
|
976
976
|
"onUpdate:modelValue": (h) => t.dates[o].to = h,
|
|
@@ -983,7 +983,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
983
983
|
])
|
|
984
984
|
])
|
|
985
985
|
]),
|
|
986
|
-
|
|
986
|
+
a("div", Me, [
|
|
987
987
|
l.isSort ? (c(), u("button", {
|
|
988
988
|
key: 0,
|
|
989
989
|
onClick: (h) => e.sortTh(o, h),
|
|
@@ -1001,7 +1001,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1001
1001
|
innerHTML: e.icons.arrowSort
|
|
1002
1002
|
}, null, 8, xe))
|
|
1003
1003
|
], 14, De)) : b("", !0),
|
|
1004
|
-
|
|
1004
|
+
a("button", {
|
|
1005
1005
|
onClick: (h) => {
|
|
1006
1006
|
e.resetDates(o), e.resetFilter(o, l, h);
|
|
1007
1007
|
},
|
|
@@ -1032,10 +1032,10 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1032
1032
|
}, null, 8, Re)) : t.sorts[o] === t.constants.DESC ? (c(), u("span", {
|
|
1033
1033
|
key: 1,
|
|
1034
1034
|
innerHTML: [t.constants.NUMERIC].includes(l.type) ? e.icons.sort90 : e.icons.sortAZ
|
|
1035
|
-
}, null, 8,
|
|
1035
|
+
}, null, 8, ze)) : (c(), u("span", {
|
|
1036
1036
|
key: 2,
|
|
1037
1037
|
innerHTML: e.icons.arrowSort
|
|
1038
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, Pe))
|
|
1039
1039
|
], 14, He)) : b("", !0),
|
|
1040
1040
|
l.isMultiselect ? (c(), u("button", {
|
|
1041
1041
|
key: 3,
|
|
@@ -1052,14 +1052,14 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1052
1052
|
style: g(`background:${t.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${t.showChart ? "" : e.FINAL_CONFIG.style.pagination.buttons.color}`)
|
|
1053
1053
|
}, null, 14, Ve)) : b("", !0),
|
|
1054
1054
|
l.rangeFilter && t.rangeFilters[o] && !t.hasNaN[o] ? (c(), u("div", Xe, [
|
|
1055
|
-
|
|
1055
|
+
a("label", {
|
|
1056
1056
|
for: `rangeMin${o}`
|
|
1057
|
-
}, s[
|
|
1058
|
-
|
|
1057
|
+
}, s[29] || (s[29] = [
|
|
1058
|
+
a("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1059
1059
|
w(" min "),
|
|
1060
|
-
|
|
1060
|
+
a("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1061
1061
|
]), 8, je),
|
|
1062
|
-
O(
|
|
1062
|
+
O(a("input", {
|
|
1063
1063
|
type: "number",
|
|
1064
1064
|
id: `rangeMin${o}`,
|
|
1065
1065
|
max: t.immutableRangeFilters[o].max,
|
|
@@ -1075,7 +1075,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1075
1075
|
{ number: !0 }
|
|
1076
1076
|
]
|
|
1077
1077
|
]),
|
|
1078
|
-
O(
|
|
1078
|
+
O(a("input", {
|
|
1079
1079
|
type: "number",
|
|
1080
1080
|
id: `rangeMax${o}`,
|
|
1081
1081
|
max: t.immutableRangeFilters[o].max,
|
|
@@ -1091,12 +1091,12 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1091
1091
|
{ number: !0 }
|
|
1092
1092
|
]
|
|
1093
1093
|
]),
|
|
1094
|
-
|
|
1094
|
+
a("label", {
|
|
1095
1095
|
for: `rangeMax${o}`
|
|
1096
|
-
}, s[
|
|
1097
|
-
|
|
1096
|
+
}, s[30] || (s[30] = [
|
|
1097
|
+
a("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1098
1098
|
w(" max "),
|
|
1099
|
-
|
|
1099
|
+
a("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1100
1100
|
]), 8, Je)
|
|
1101
1101
|
])) : b("", !0),
|
|
1102
1102
|
e.canResetColumn(o, l) ? (c(), u("button", {
|
|
@@ -1112,7 +1112,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1112
1112
|
id: `th_dropdown_${o}`,
|
|
1113
1113
|
style: g(`background:${e.FINAL_CONFIG.style.dropdowns.backgroundColor};color:${e.FINAL_CONFIG.style.dropdowns.color}`)
|
|
1114
1114
|
}, [
|
|
1115
|
-
|
|
1115
|
+
a("button", {
|
|
1116
1116
|
class: "close-dropdown",
|
|
1117
1117
|
onClick: (h) => e.toggleMultiselect(o, l, h),
|
|
1118
1118
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color}`)
|
|
@@ -1137,15 +1137,15 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1137
1137
|
style: g(`color:${e.FINAL_CONFIG.style.dropdowns.icons.unselected.color};margin-right:5px`),
|
|
1138
1138
|
class: "th-icon-red"
|
|
1139
1139
|
}, d(e.FINAL_CONFIG.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1140
|
-
|
|
1140
|
+
a("span", null, d(h), 1)
|
|
1141
1141
|
], 44, Qe))), 128))
|
|
1142
1142
|
], 12, Ze)) : b("", !0)
|
|
1143
1143
|
])
|
|
1144
1144
|
], 6))), 128))
|
|
1145
1145
|
])
|
|
1146
1146
|
], 64)) : b("", !0),
|
|
1147
|
-
|
|
1148
|
-
s[
|
|
1147
|
+
a("tr", null, [
|
|
1148
|
+
s[32] || (s[32] = a("th", { class: "invisible-cell" }, null, -1)),
|
|
1149
1149
|
(c(!0), u(I, null, _(t.tableHead, (l, o) => (c(), u("th", {
|
|
1150
1150
|
key: `col_selector_${o}`,
|
|
1151
1151
|
class: p({ "vue-ui-table-col-selector": !t.hasNaN[o], "th-has-nan": t.hasNaN[o] }),
|
|
@@ -1162,7 +1162,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1162
1162
|
], 6))), 128))
|
|
1163
1163
|
])
|
|
1164
1164
|
]),
|
|
1165
|
-
|
|
1165
|
+
a("tbody", {
|
|
1166
1166
|
onClick: s[8] || (s[8] = (...l) => e.closeAllDropdowns && e.closeAllDropdowns(...l)),
|
|
1167
1167
|
onKeydown: s[9] || (s[9] = (l) => e.navigateCell(l))
|
|
1168
1168
|
}, [
|
|
@@ -1172,7 +1172,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1172
1172
|
class: p(`tr_${t.uid}`),
|
|
1173
1173
|
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}`}`)
|
|
1174
1174
|
}, [
|
|
1175
|
-
|
|
1175
|
+
a("td", {
|
|
1176
1176
|
class: "vue-ui-table-td-iteration",
|
|
1177
1177
|
"data-row": o % 2 === 0 ? "odd" : "even"
|
|
1178
1178
|
}, d(l.absoluteIndex + 1), 9, tt),
|
|
@@ -1242,36 +1242,36 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1242
1242
|
], 32)
|
|
1243
1243
|
])
|
|
1244
1244
|
], 4),
|
|
1245
|
-
|
|
1245
|
+
a("div", {
|
|
1246
1246
|
class: p({ "td-selector-info": !0, "td-selector-info--active": t.currentSelectionSpan.col !== void 0 && t.currentSelectionSpan.rows.length }),
|
|
1247
1247
|
style: g(`background:${e.FINAL_CONFIG.style.infoBar.backgroundColor};color:${e.FINAL_CONFIG.style.infoBar.color}`)
|
|
1248
1248
|
}, [
|
|
1249
1249
|
t.currentSelectionSpan.col !== void 0 && t.currentSelectionSpan.rows.length ? (c(), u(I, { key: 0 }, [
|
|
1250
|
-
|
|
1250
|
+
a("div", {
|
|
1251
1251
|
innerHTML: e.icons.table,
|
|
1252
1252
|
class: "td-selector-icon"
|
|
1253
1253
|
}, null, 8, at),
|
|
1254
|
-
|
|
1255
|
-
|
|
1254
|
+
a("span", null, [
|
|
1255
|
+
a("b", null, [
|
|
1256
1256
|
w(d(r.dataset.header[t.currentSelectionSpan.col].name) + " ", 1),
|
|
1257
1257
|
r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("span", it, " / " + d(r.dataset.header[t.percentages[t.currentSelectionSpan.col].referenceIndex].name), 1)) : b("", !0)
|
|
1258
1258
|
]),
|
|
1259
|
-
|
|
1259
|
+
a("span", ct, [
|
|
1260
1260
|
w(d(e.FINAL_CONFIG.translations.nb) + " : ", 1),
|
|
1261
|
-
|
|
1261
|
+
a("b", ut, d(t.currentSelectionSpan.rows.length), 1)
|
|
1262
1262
|
]),
|
|
1263
|
-
|
|
1263
|
+
a("span", ht, [
|
|
1264
1264
|
w(d(e.FINAL_CONFIG.translations.sum) + " : ", 1),
|
|
1265
1265
|
r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", dt, d(e.selectedCellsCalculations.sumPercentage), 1)) : (c(), u("b", gt, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.sumRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
|
|
1266
1266
|
r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", yt, "%")) : b("", !0)
|
|
1267
1267
|
]),
|
|
1268
|
-
|
|
1268
|
+
a("span", mt, [
|
|
1269
1269
|
w(d(e.FINAL_CONFIG.translations.average) + " : ", 1),
|
|
1270
1270
|
r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", bt, d(e.selectedCellsCalculations.averagePercentage), 1)) : (c(), u("b", ft, d(r.dataset.header[t.currentSelectionSpan.col].prefix) + " " + d(e.selectedCellsCalculations.averageRegular) + " " + d(r.dataset.header[t.currentSelectionSpan.col].suffix), 1)),
|
|
1271
1271
|
r.dataset.header[t.currentSelectionSpan.col].isPercentage ? (c(), u("b", Nt, "%")) : b("", !0)
|
|
1272
1272
|
])
|
|
1273
1273
|
]),
|
|
1274
|
-
|
|
1274
|
+
a("button", {
|
|
1275
1275
|
onClick: s[10] || (s[10] = (...l) => e.resetSelection && e.resetSelection(...l)),
|
|
1276
1276
|
class: "td-selector-info-reset",
|
|
1277
1277
|
style: g(`background:${e.FINAL_CONFIG.style.closeButtons.backgroundColor};color:${e.FINAL_CONFIG.style.closeButtons.color};border-radius:${e.FINAL_CONFIG.style.closeButtons.borderRadius}`)
|
|
@@ -1302,7 +1302,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1302
1302
|
]) : b("", !0)
|
|
1303
1303
|
])) : b("", !0),
|
|
1304
1304
|
t.itemsPerPage >= 250 ? (c(), u("div", Ct, [
|
|
1305
|
-
|
|
1305
|
+
a("span", {
|
|
1306
1306
|
innerHTML: e.icons.warning
|
|
1307
1307
|
}, null, 8, It),
|
|
1308
1308
|
w(d(e.FINAL_CONFIG.translations.sizeWarning), 1)
|
|
@@ -1313,7 +1313,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1313
1313
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.navigationIndicator.backgroundColor};width:calc(${t.currentPage / (e.pages.length - 1) * 100}%)`)
|
|
1314
1314
|
}, null, 4)) : b("", !0),
|
|
1315
1315
|
e.pages.length > 1 ? (c(), u("div", Ft, [
|
|
1316
|
-
|
|
1316
|
+
a("button", {
|
|
1317
1317
|
class: "vue-ui-table-navigation",
|
|
1318
1318
|
onClick: s[13] || (s[13] = A((l) => e.navigate("previous"), ["stop"])),
|
|
1319
1319
|
innerHTML: e.icons.chevronLeft,
|
|
@@ -1321,15 +1321,15 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1321
1321
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1322
1322
|
}, null, 12, vt),
|
|
1323
1323
|
e.pages.length > 3 ? (c(), u(I, { key: 0 }, [
|
|
1324
|
-
|
|
1324
|
+
a("button", {
|
|
1325
1325
|
class: "vue-ui-table-navigation",
|
|
1326
1326
|
onClick: s[14] || (s[14] = A((l) => e.navigate(1), ["stop"])),
|
|
1327
1327
|
disabled: t.currentPage === 0,
|
|
1328
1328
|
style: g(`background:${e.FINAL_CONFIG.style.pagination.buttons.backgroundColor};color:${e.FINAL_CONFIG.style.pagination.buttons.color};opacity:${t.currentPage === 0 ? e.FINAL_CONFIG.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1329
1329
|
}, " 1 ", 12, wt),
|
|
1330
1330
|
e.pages.length > 10 ? (c(), u("div", _t, [
|
|
1331
|
-
|
|
1332
|
-
|
|
1331
|
+
a("label", kt, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1),
|
|
1332
|
+
a("input", {
|
|
1333
1333
|
class: "vue-ui-table-page-scroller",
|
|
1334
1334
|
id: "pageScroller",
|
|
1335
1335
|
type: "range",
|
|
@@ -1341,7 +1341,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1341
1341
|
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}`)
|
|
1342
1342
|
}, null, 44, Ot)
|
|
1343
1343
|
])) : (c(), u("span", St, d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1)),
|
|
1344
|
-
|
|
1344
|
+
a("button", {
|
|
1345
1345
|
class: "vue-ui-table-navigation",
|
|
1346
1346
|
onClick: s[16] || (s[16] = A((l) => e.navigate(e.pages.length), ["stop"])),
|
|
1347
1347
|
disabled: t.currentPage === e.pages.length - 1,
|
|
@@ -1350,7 +1350,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1350
1350
|
], 64)) : (c(), u(I, { key: 1 }, [
|
|
1351
1351
|
w(d(e.FINAL_CONFIG.translations.page) + " " + d(t.currentPage + 1) + " / " + d(e.pages.length), 1)
|
|
1352
1352
|
], 64)),
|
|
1353
|
-
|
|
1353
|
+
a("button", {
|
|
1354
1354
|
class: "vue-ui-table-navigation",
|
|
1355
1355
|
onClick: s[17] || (s[17] = A((l) => e.navigate("next"), ["stop"])),
|
|
1356
1356
|
innerHTML: e.icons.chevronRight,
|
|
@@ -1363,77 +1363,89 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1363
1363
|
class: "vue-ui-table-chart-modal",
|
|
1364
1364
|
style: g(`width: ${t.modalWidth}px;top:${t.clientY}px; left:${t.clientX}px;background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1365
1365
|
}, [
|
|
1366
|
-
|
|
1366
|
+
a("div", {
|
|
1367
|
+
class: "modal-drag-handle",
|
|
1368
|
+
onMousedown: s[19] || (s[19] = (...l) => e.dragMouseDown && e.dragMouseDown(...l))
|
|
1369
|
+
}, [
|
|
1370
|
+
a("span", {
|
|
1371
|
+
innerHTML: e.icons.grip
|
|
1372
|
+
}, null, 8, Mt),
|
|
1373
|
+
a("button", {
|
|
1374
|
+
class: "close-chart-modal",
|
|
1375
|
+
onClick: s[18] || (s[18] = (l) => t.showChart = !1)
|
|
1376
|
+
}, "✖")
|
|
1377
|
+
], 32),
|
|
1378
|
+
a("button", {
|
|
1367
1379
|
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}`]),
|
|
1368
1380
|
class: "close-chart-modal",
|
|
1369
|
-
onClick: s[
|
|
1381
|
+
onClick: s[20] || (s[20] = (l) => t.showChart = !1)
|
|
1370
1382
|
}, " ✖ ", 4),
|
|
1371
|
-
|
|
1383
|
+
a("div", Dt, [
|
|
1372
1384
|
e.availableDonutCategories.length ? (c(), u("button", {
|
|
1373
1385
|
key: 0,
|
|
1374
|
-
onClick: s[
|
|
1386
|
+
onClick: s[21] || (s[21] = (l) => t.showDonutOptions = !0),
|
|
1375
1387
|
innerHTML: e.icons.donut,
|
|
1376
1388
|
class: p({ "is-active-chart": t.chart.type === t.constants.DONUT || t.showDonutOptions }),
|
|
1377
1389
|
style: g(`background:${t.chart.type === t.constants.DONUT || t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.DONUT || t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1378
|
-
}, null, 14,
|
|
1379
|
-
|
|
1380
|
-
onClick: s[
|
|
1390
|
+
}, null, 14, Gt)) : b("", !0),
|
|
1391
|
+
a("button", {
|
|
1392
|
+
onClick: s[22] || (s[22] = (l) => {
|
|
1381
1393
|
t.chart.type = t.constants.LINE, t.showDonutOptions = !1;
|
|
1382
1394
|
}),
|
|
1383
1395
|
innerHTML: e.icons.chart,
|
|
1384
1396
|
class: p({ "is-active-chart": t.chart.type === t.constants.LINE && !t.showDonutOptions }),
|
|
1385
1397
|
style: g(`background:${t.chart.type === t.constants.LINE && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.LINE && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1386
|
-
}, null, 14,
|
|
1387
|
-
|
|
1388
|
-
onClick: s[
|
|
1398
|
+
}, null, 14, Tt),
|
|
1399
|
+
a("button", {
|
|
1400
|
+
onClick: s[23] || (s[23] = (l) => {
|
|
1389
1401
|
t.chart.type = t.constants.BAR, t.showDonutOptions = !1;
|
|
1390
1402
|
}),
|
|
1391
1403
|
innerHTML: e.icons.bar,
|
|
1392
1404
|
class: p({ "is-active-chart": t.chart.type === t.constants.BAR && !t.showDonutOptions }),
|
|
1393
1405
|
style: g(`background:${t.chart.type === t.constants.BAR && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.backgroundColor};color:${t.chart.type === t.constants.BAR && !t.showDonutOptions ? e.FINAL_CONFIG.style.chart.modal.buttons.selected.color : e.FINAL_CONFIG.style.chart.modal.buttons.unselected.color}`)
|
|
1394
|
-
}, null, 14,
|
|
1406
|
+
}, null, 14, xt)
|
|
1395
1407
|
]),
|
|
1396
|
-
|
|
1408
|
+
a("div", Et, [
|
|
1397
1409
|
t.showDonutOptions && e.availableDonutCategories.length ? (c(), u("div", {
|
|
1398
1410
|
key: 0,
|
|
1399
1411
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1400
1412
|
}, [
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1413
|
+
a("fieldset", Bt, [
|
|
1414
|
+
a("legend", null, d(e.FINAL_CONFIG.translations.chooseCategoryColumn), 1),
|
|
1415
|
+
a("div", Ht, [
|
|
1404
1416
|
(c(!0), u(I, null, _(e.availableDonutCategories, (l, o) => (c(), u("div", {
|
|
1405
1417
|
key: `donut_radio_${o}`,
|
|
1406
1418
|
class: "vue-ui-table-fieldset-option"
|
|
1407
1419
|
}, [
|
|
1408
|
-
|
|
1420
|
+
a("input", {
|
|
1409
1421
|
type: "radio",
|
|
1410
1422
|
name: l.name,
|
|
1411
1423
|
id: l.name,
|
|
1412
1424
|
checked: t.selectedDonutCategory && l.name === t.selectedDonutCategory.name,
|
|
1413
1425
|
onInput: (h) => t.selectedDonutCategory = e.availableDonutCategories[o],
|
|
1414
1426
|
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}`)
|
|
1415
|
-
}, null, 44,
|
|
1416
|
-
|
|
1427
|
+
}, null, 44, Rt),
|
|
1428
|
+
a("label", {
|
|
1417
1429
|
for: l.name
|
|
1418
|
-
}, d(l.name), 9,
|
|
1430
|
+
}, d(l.name), 9, zt)
|
|
1419
1431
|
]))), 128))
|
|
1420
1432
|
]),
|
|
1421
|
-
|
|
1433
|
+
a("button", {
|
|
1422
1434
|
class: "vue-ui-table-generate-donut",
|
|
1423
1435
|
disabled: !t.selectedDonutCategory,
|
|
1424
|
-
onClick: s[
|
|
1436
|
+
onClick: s[24] || (s[24] = (...l) => e.applyDonutOption && e.applyDonutOption(...l)),
|
|
1425
1437
|
style: g(`background:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.backgroundColor};color:${e.FINAL_CONFIG.style.chart.modal.buttons.selected.color}`)
|
|
1426
1438
|
}, [
|
|
1427
|
-
|
|
1439
|
+
a("div", {
|
|
1428
1440
|
style: { "margin-bottom": "-3px" },
|
|
1429
1441
|
innerHTML: e.icons.donut
|
|
1430
|
-
}, null, 8,
|
|
1442
|
+
}, null, 8, Ut),
|
|
1431
1443
|
w(" " + d(e.FINAL_CONFIG.translations.makeDonut), 1)
|
|
1432
1444
|
], 12, Pt)
|
|
1433
1445
|
])
|
|
1434
1446
|
], 4)) : b("", !0),
|
|
1435
1447
|
[t.constants.BAR, t.constants.LINE].includes(t.chart.type) && !t.showDonutOptions ? (c(), u(I, { key: 1 }, [
|
|
1436
|
-
|
|
1448
|
+
a("div", Vt, [
|
|
1437
1449
|
t.chart.type === t.constants.LINE ? (c(), E(y, {
|
|
1438
1450
|
key: 0,
|
|
1439
1451
|
dataset: e.chartData.xyDatasetLine,
|
|
@@ -1450,11 +1462,15 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1450
1462
|
class: "chart-trend",
|
|
1451
1463
|
style: g(`color:${e.FINAL_CONFIG.style.chart.modal.color}`)
|
|
1452
1464
|
}, [
|
|
1453
|
-
s[
|
|
1454
|
-
w(" Trend: " + d(
|
|
1465
|
+
s[33] || (s[33] = a("span", null, "---", -1)),
|
|
1466
|
+
w(" Trend: " + d(e.dataLabel({
|
|
1467
|
+
v: e.chartData.progression.trend,
|
|
1468
|
+
s: "%",
|
|
1469
|
+
r: 1
|
|
1470
|
+
})), 1)
|
|
1455
1471
|
], 4)) : b("", !0)
|
|
1456
1472
|
], 64)) : b("", !0),
|
|
1457
|
-
[t.constants.DONUT].includes(t.chart.type) && !t.showDonutOptions ? (c(), u("div",
|
|
1473
|
+
[t.constants.DONUT].includes(t.chart.type) && !t.showDonutOptions ? (c(), u("div", Xt, [
|
|
1458
1474
|
ee(f, {
|
|
1459
1475
|
dataset: t.currentDonut,
|
|
1460
1476
|
config: e.chartData.donutConfig
|
|
@@ -1464,7 +1480,7 @@ function Xt(n, s, r, a, t, e) {
|
|
|
1464
1480
|
], 4)) : b("", !0)
|
|
1465
1481
|
], 4);
|
|
1466
1482
|
}
|
|
1467
|
-
const
|
|
1483
|
+
const Qt = /* @__PURE__ */ te(se, [["render", jt], ["__scopeId", "data-v-1713331c"]]);
|
|
1468
1484
|
export {
|
|
1469
|
-
|
|
1485
|
+
Qt as default
|
|
1470
1486
|
};
|