vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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 +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-dag.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-geo.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-stackline.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,1338 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Dt as t, E as n, K as r, Nt as i, Q as a, S as o, Y as s, qt as c, r as l, u as ee, zt as te } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as ne } from "./vue-ui-xy-CUt6sU1s.js";
|
|
4
|
+
import { t as re } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { t as u } from "./BaseIcon-CDTIUIKV.js";
|
|
7
|
+
import { t as d } from "./vue-ui-donut-Bc-EPZvu.js";
|
|
8
|
+
import { Fragment as f, computed as p, createBlock as ae, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as oe, defineAsyncComponent as se, nextTick as ce, normalizeClass as v, normalizeStyle as y, onMounted as le, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, useCssVars as ue, vModelSelect as de, vModelText as fe, watch as pe, withCtx as me, withDirectives as T, withKeys as he, withModifiers as ge } from "vue";
|
|
9
|
+
//#region src/components/vue-ui-table.vue
|
|
10
|
+
var _e = /* @__PURE__ */ e({ default: () => on }), ve = ["innerHTML"], ye = ["data-is-open"], be = { class: "vue-ui-table-export-hub-options" }, xe = { class: "vue-ui-table-export-hub-option-wrapper" }, Se = { class: "label" }, Ce = ["innerHTML"], we = { class: "vue-ui-table-export-hub-option-wrapper" }, Te = { class: "label" }, Ee = ["innerHTML"], De = { class: "vue-ui-table-dialog-field" }, Oe = {
|
|
11
|
+
class: "label vue-ui-table-dialog-input-label",
|
|
12
|
+
style: { width: "100%" }
|
|
13
|
+
}, ke = { style: { width: "fit-content" } }, Ae = { class: "vue-ui-table" }, je = { key: 0 }, Me = { key: 0 }, Ne = { key: 1 }, Pe = {
|
|
14
|
+
key: 0,
|
|
15
|
+
style: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
"align-items": "center",
|
|
18
|
+
"justify-content": "flex-end"
|
|
19
|
+
}
|
|
20
|
+
}, Fe = ["innerHTML"], Ie = {
|
|
21
|
+
key: 0,
|
|
22
|
+
style: { "margin-left": "3px" }
|
|
23
|
+
}, Le = { key: 0 }, Re = { class: "th-filter" }, ze = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "th-date"
|
|
26
|
+
}, Be = { class: "date-wrapper--inputs" }, Ve = { class: "date-fieldset" }, He = ["for"], Ue = [
|
|
27
|
+
"id",
|
|
28
|
+
"onUpdate:modelValue",
|
|
29
|
+
"onInput"
|
|
30
|
+
], We = { class: "date-fieldset" }, Ge = ["for"], Ke = [
|
|
31
|
+
"id",
|
|
32
|
+
"onUpdate:modelValue",
|
|
33
|
+
"onInput"
|
|
34
|
+
], qe = { class: "date-wrapper--button" }, Je = ["onClick"], Ye = ["innerHTML"], Xe = ["innerHTML"], Ze = ["innerHTML"], Qe = ["onClick", "disabled"], $e = [
|
|
35
|
+
"placeholder",
|
|
36
|
+
"onUpdate:modelValue",
|
|
37
|
+
"name"
|
|
38
|
+
], et = ["onClick"], tt = ["innerHTML"], nt = ["innerHTML"], rt = ["innerHTML"], it = ["onClick", "innerHTML"], at = ["innerHTML"], ot = {
|
|
39
|
+
key: 5,
|
|
40
|
+
class: "th-range-filter"
|
|
41
|
+
}, st = ["for"], ct = [
|
|
42
|
+
"id",
|
|
43
|
+
"max",
|
|
44
|
+
"min",
|
|
45
|
+
"onUpdate:modelValue"
|
|
46
|
+
], lt = [
|
|
47
|
+
"id",
|
|
48
|
+
"max",
|
|
49
|
+
"min",
|
|
50
|
+
"onUpdate:modelValue"
|
|
51
|
+
], ut = ["for"], dt = ["onClick", "disabled"], ft = ["id"], pt = ["onClick"], mt = ["onClick", "onKeyup"], ht = [
|
|
52
|
+
"innerHTML",
|
|
53
|
+
"onClick",
|
|
54
|
+
"onKeyup"
|
|
55
|
+
], gt = ["data-row"], _t = ["data-row"], vt = [
|
|
56
|
+
"data-row",
|
|
57
|
+
"onClick",
|
|
58
|
+
"onKeyup",
|
|
59
|
+
"id"
|
|
60
|
+
], yt = ["innerHTML"], bt = { key: 1 }, xt = { key: 2 }, St = { key: 5 }, Ct = ["innerHTML"], wt = { key: 0 }, Tt = { style: { "margin-left": "12px" } }, Et = { class: "format-num" }, Dt = { style: { "margin-left": "12px" } }, Ot = {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "format-num"
|
|
63
|
+
}, kt = {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: "format-num"
|
|
66
|
+
}, At = { key: 2 }, jt = { style: { "margin-left": "12px" } }, Mt = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "format-num"
|
|
69
|
+
}, Nt = {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: "format-num"
|
|
72
|
+
}, Pt = { key: 2 }, Ft = {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: "vue-ui-table-paginator format-num"
|
|
75
|
+
}, It = {
|
|
76
|
+
key: 2,
|
|
77
|
+
class: "vue-ui-table-size-warning"
|
|
78
|
+
}, Lt = ["innerHTML"], Rt = {
|
|
79
|
+
key: 4,
|
|
80
|
+
class: "vue-ui-table-pagination format-num"
|
|
81
|
+
}, zt = ["innerHTML", "disabled"], Bt = ["disabled"], Vt = {
|
|
82
|
+
for: "pageScroller",
|
|
83
|
+
style: { "font-size": "14px" }
|
|
84
|
+
}, Ht = ["max", "value"], Ut = { key: 1 }, Wt = ["disabled"], Gt = ["innerHTML", "disabled"], Kt = { class: "vue-ui-table-chart-modal-options" }, qt = ["innerHTML"], Jt = ["innerHTML"], Yt = ["innerHTML"], Xt = { style: {
|
|
85
|
+
width: "100%",
|
|
86
|
+
height: "fit-content"
|
|
87
|
+
} }, Zt = { class: "vue-ui-table-fieldset" }, Qt = { class: "vue-ui-table-fieldset-wrapper" }, $t = [
|
|
88
|
+
"name",
|
|
89
|
+
"id",
|
|
90
|
+
"checked",
|
|
91
|
+
"onInput"
|
|
92
|
+
], en = ["for"], tn = ["disabled"], nn = ["innerHTML"], rn = { style: {
|
|
93
|
+
width: "100%",
|
|
94
|
+
"margin-bottom": "12px"
|
|
95
|
+
} }, an = {
|
|
96
|
+
key: 2,
|
|
97
|
+
style: {
|
|
98
|
+
width: "100%",
|
|
99
|
+
"margin-bottom": "32px"
|
|
100
|
+
}
|
|
101
|
+
}, on = /*#__PURE__*/ ie({
|
|
102
|
+
__name: "vue-ui-table",
|
|
103
|
+
props: {
|
|
104
|
+
config: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default() {
|
|
107
|
+
return {};
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
dataset: {
|
|
111
|
+
type: Object,
|
|
112
|
+
default() {
|
|
113
|
+
return {};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
emits: ["page-change"],
|
|
118
|
+
setup(e, { expose: ie, emit: _e }) {
|
|
119
|
+
ue((e) => ({
|
|
120
|
+
a526696e: On.value,
|
|
121
|
+
b37e1748: kn.value,
|
|
122
|
+
v5236f612: Nn.value,
|
|
123
|
+
v348e0d64: An.value,
|
|
124
|
+
v54377a3e: Pn.value,
|
|
125
|
+
ee49ce48: Fn.value,
|
|
126
|
+
v1ac4574c: jn.value,
|
|
127
|
+
v4f070ff6: Mn.value,
|
|
128
|
+
v725e1288: In.value
|
|
129
|
+
}));
|
|
130
|
+
let on = se(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), E = e, sn = _e, { vue_ui_table: cn } = re(), D = r();
|
|
131
|
+
x(null);
|
|
132
|
+
let ln = x(null), un = x(null), O = x({
|
|
133
|
+
height: 316,
|
|
134
|
+
type: "bar",
|
|
135
|
+
width: 512
|
|
136
|
+
}), k = x({
|
|
137
|
+
ASC: 1,
|
|
138
|
+
BAR: "bar",
|
|
139
|
+
DATE: "date",
|
|
140
|
+
DESC: -1,
|
|
141
|
+
DONUT: "donut",
|
|
142
|
+
LINE: "line",
|
|
143
|
+
NUMERIC: "numeric",
|
|
144
|
+
PERCENTAGE: "percentage",
|
|
145
|
+
TEXT: "text"
|
|
146
|
+
}), dn = x(100), fn = x(100);
|
|
147
|
+
x(0), x(0), x(400), x(200);
|
|
148
|
+
let pn = x({
|
|
149
|
+
CELL: "smart-td-selected",
|
|
150
|
+
FIRST_TD: "smart-td-selected-first",
|
|
151
|
+
LAST_TD: "smart-td-selected-last",
|
|
152
|
+
ROW: "smart-td-selected-neighbor"
|
|
153
|
+
}), mn = x(void 0), hn = x(void 0), A = x({
|
|
154
|
+
col: void 0,
|
|
155
|
+
rows: []
|
|
156
|
+
}), j = x(0), M = x(20), gn = x(!1), _n = x(!1), N = x({}), P = x({}), vn = x({}), F = x({}), I = x({}), L = x({}), R = x({}), z = x({}), B = x({}), yn = x(E.config.rowsPerPage ? E.config.rowsPerPage : 25), bn = x([...new Set([
|
|
157
|
+
10,
|
|
158
|
+
25,
|
|
159
|
+
50,
|
|
160
|
+
100,
|
|
161
|
+
250,
|
|
162
|
+
500,
|
|
163
|
+
E.config.rowsPerPage ? E.config.rowsPerPage : 25,
|
|
164
|
+
E.dataset.body.length
|
|
165
|
+
])].sort((e, t) => e - t)), xn = x(void 0), V = x(void 0), Sn = x(void 0), H = x(!1), Cn = x(0), wn = x(""), Tn = x(""), U = x(!1), W = x(JSON.parse(JSON.stringify(E.dataset.body)).map((e, t) => ({
|
|
166
|
+
...e,
|
|
167
|
+
absoluteIndex: t
|
|
168
|
+
}))), En = x(JSON.parse(JSON.stringify(E.dataset.body)).map((e, t) => ({
|
|
169
|
+
...e,
|
|
170
|
+
absoluteIndex: t
|
|
171
|
+
}))), G = x(JSON.parse(JSON.stringify(E.dataset.header)).map((e, t) => ({
|
|
172
|
+
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
173
|
+
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
174
|
+
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
175
|
+
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
176
|
+
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
177
|
+
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
178
|
+
name: e.name,
|
|
179
|
+
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
180
|
+
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
181
|
+
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
182
|
+
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
183
|
+
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
184
|
+
type: e.type,
|
|
185
|
+
index: t
|
|
186
|
+
}))), Dn = p(() => ln.value ? ln.value.getBoundingClientRect().height + 3 : 3), K = p(() => Object.keys(E.config || {}).length ? o(c({
|
|
187
|
+
defaultConfig: cn,
|
|
188
|
+
userConfig: E.config
|
|
189
|
+
})) : cn), q = p(() => K.value.useCursorPointer), On = p(() => K.value.style.th.buttons.cancel.inactive.backgroundColor), kn = p(() => K.value.style.th.buttons.cancel.inactive.color), An = p(() => K.value.style.th.buttons.cancel.active.backgroundColor), jn = p(() => K.value.style.th.buttons.filter.active.backgroundColor), Mn = p(() => K.value.style.th.buttons.filter.active.color), Nn = p(() => t(An.value, .33)), Pn = p(() => te(An.value, 33)), Fn = p(() => t(jn.value, .33)), In = p(() => te(jn, 33)), Ln = p(() => [...G.value].filter((e) => e.type === k.value.DATE)), Rn = p(() => ["", ...Ln.value.map((e) => e.name)]), zn = p(() => {
|
|
190
|
+
let e = Ln.value.find((e) => e.name === wn.value);
|
|
191
|
+
return e ? e.index : null;
|
|
192
|
+
}), J = p(() => {
|
|
193
|
+
let e = [];
|
|
194
|
+
if (W.value.length) for (let t = 0; t < W.value.length; t += yn.value) e.push(W.value.slice(t, t + yn.value));
|
|
195
|
+
return e;
|
|
196
|
+
}), Y = p(() => J.value[j.value]), Bn = p(() => zn.value == null ? [] : Y.value.map((e) => e.td[zn.value])), Vn = p(() => Object.keys(I.value).map((e) => ({
|
|
197
|
+
index: e,
|
|
198
|
+
name: E.dataset.header[e].name,
|
|
199
|
+
options: I.value[e]
|
|
200
|
+
}))), Hn = p(() => K.value.useChart && A.value.rows.length > 1), Un = p(() => E.dataset.header.map((e) => e.type).includes(k.value.NUMERIC)), X = p(() => ({
|
|
201
|
+
arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,
|
|
202
|
+
bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,
|
|
203
|
+
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,
|
|
204
|
+
chevronDown: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M6 9l6 6l6 -6" /></svg>`,
|
|
205
|
+
chevronLeft: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value * 1.6}" height="${M.value * 1.6}" 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 6l-6 6l6 6" /></svg>`,
|
|
206
|
+
chevronRight: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value * 1.6}" height="${M.value * 1.6}" 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="M9 6l6 6l-6 6" /></svg>`,
|
|
207
|
+
donut: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value * .8}" height="${M.value * .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="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,
|
|
208
|
+
export: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,
|
|
209
|
+
fileDownload: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,
|
|
210
|
+
filter: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,
|
|
211
|
+
move: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,
|
|
212
|
+
sort09: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
|
|
213
|
+
sort90: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
|
|
214
|
+
sortAZ: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
|
|
215
|
+
sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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>`,
|
|
216
|
+
sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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>`,
|
|
217
|
+
table: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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>`,
|
|
218
|
+
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value * .8}" height="${M.value * .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>`,
|
|
219
|
+
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${M.value}" height="${M.value}" 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>`
|
|
220
|
+
})), Wn = p(() => W.value.map((e) => e.td)), Gn = p(() => ({
|
|
221
|
+
sumPercentage: Number((A.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(E.dataset.header[A.value.col].decimals)).toLocaleString(),
|
|
222
|
+
sumRegular: Number(A.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(E.dataset.header[A.value.col].decimals)).toLocaleString(),
|
|
223
|
+
averagePercentage: Number((A.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / A.value.rows.length * 100).toFixed(E.dataset.header[A.value.col].decimals)).toLocaleString(),
|
|
224
|
+
averageRegular: Number((A.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / A.value.rows.length).toFixed(E.dataset.header[A.value.col].decimals)).toLocaleString()
|
|
225
|
+
})), Kn = x({
|
|
226
|
+
width: 1e3,
|
|
227
|
+
height: 500
|
|
228
|
+
});
|
|
229
|
+
function qn({ width: e, height: t }) {
|
|
230
|
+
Kn.value = {
|
|
231
|
+
width: e,
|
|
232
|
+
height: t
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
let Jn = p(() => {
|
|
236
|
+
if (!Hn.value) return [];
|
|
237
|
+
let e = Kn.value.height, n = Kn.value.width, r = n / A.value.rows.length, i = Math.max(...A.value.rows.map((e) => e.value)), a = Math.min(...A.value.rows.map((e) => e.value)), o = E.dataset.header[A.value.col].isPercentage && E.dataset.header[A.value.col].percentageTo, s = O.value.type === k.value.DONUT && V.value && V.value.name, c = E.dataset.header[A.value.col].name + (o ? ` / ${E.dataset.header[L.value[A.value.col].referenceIndex].name}` : "") + (s ? ` ${K.value.translations.by} ${V.value.name}` : ""), te = E.dataset.header[A.value.col].prefix, ne = E.dataset.header[A.value.col].suffix, re = [{
|
|
238
|
+
name: c,
|
|
239
|
+
series: A.value.rows.map((e) => e.value),
|
|
240
|
+
type: "line",
|
|
241
|
+
useProgression: !0,
|
|
242
|
+
smooth: K.value.style.chart.layout.line.smooth,
|
|
243
|
+
color: K.value.style.chart.layout.line.stroke,
|
|
244
|
+
useArea: K.value.style.chart.layout.line.useArea
|
|
245
|
+
}], ie = [{
|
|
246
|
+
name: c,
|
|
247
|
+
series: A.value.rows.map((e) => e.value),
|
|
248
|
+
type: "bar",
|
|
249
|
+
useProgression: !0,
|
|
250
|
+
color: K.value.style.chart.layout.bar.fill
|
|
251
|
+
}], u = K.value.style.chart.modal.backgroundColor, d = l(u), f = E.dataset.header[A.value.col].decimals, p = {
|
|
252
|
+
useCssAnimation: !1,
|
|
253
|
+
chart: {
|
|
254
|
+
width: n,
|
|
255
|
+
height: e - 250,
|
|
256
|
+
backgroundColor: u,
|
|
257
|
+
color: d,
|
|
258
|
+
labels: {
|
|
259
|
+
fontSize: 18,
|
|
260
|
+
prefix: te,
|
|
261
|
+
suffix: ne
|
|
262
|
+
},
|
|
263
|
+
grid: {
|
|
264
|
+
stroke: t(d, .5),
|
|
265
|
+
labels: {
|
|
266
|
+
color: d,
|
|
267
|
+
xAxisLabels: {
|
|
268
|
+
color: d,
|
|
269
|
+
show: Bn.value.length,
|
|
270
|
+
values: Bn.value,
|
|
271
|
+
datetimeFormatter: K.value.style.chart.layout.datetimeFormatter,
|
|
272
|
+
showOnlyAtModulo: K.value.style.chart.layout.timeLabels.showOnlyAtModulo,
|
|
273
|
+
modulo: K.value.style.chart.layout.timeLabels.modulo
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
highlighter: { color: d },
|
|
278
|
+
legend: {
|
|
279
|
+
color: d,
|
|
280
|
+
show: !1
|
|
281
|
+
},
|
|
282
|
+
title: {
|
|
283
|
+
text: c,
|
|
284
|
+
color: d,
|
|
285
|
+
textAlign: "center",
|
|
286
|
+
fontSize: 18
|
|
287
|
+
},
|
|
288
|
+
tooltip: {
|
|
289
|
+
showTimeLabel: Bn.value.length,
|
|
290
|
+
backgroundOpacity: 30,
|
|
291
|
+
color: d,
|
|
292
|
+
backgroundColor: u,
|
|
293
|
+
showPercentage: !1,
|
|
294
|
+
roundingValue: f
|
|
295
|
+
},
|
|
296
|
+
userOptions: { buttons: {
|
|
297
|
+
pdf: !1,
|
|
298
|
+
csv: !1,
|
|
299
|
+
table: !1,
|
|
300
|
+
annotator: !1
|
|
301
|
+
} },
|
|
302
|
+
zoom: {
|
|
303
|
+
show: K.value.style.chart.layout.zoom.show,
|
|
304
|
+
focusOnDrag: !0,
|
|
305
|
+
minimap: { show: !0 }
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
line: {
|
|
309
|
+
labels: {
|
|
310
|
+
show: !0,
|
|
311
|
+
color: d,
|
|
312
|
+
rounding: f
|
|
313
|
+
},
|
|
314
|
+
dot: {
|
|
315
|
+
useSerieColor: !1,
|
|
316
|
+
fill: K.value.style.chart.layout.line.plot.fill,
|
|
317
|
+
strokeWidth: K.value.style.chart.layout.line.plot.strokeWidth
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
bar: {
|
|
321
|
+
useGradient: !1,
|
|
322
|
+
border: {
|
|
323
|
+
useSerieColor: !1,
|
|
324
|
+
stroke: K.value.style.chart.layout.bar.stroke,
|
|
325
|
+
strokeWidth: K.value.style.chart.layout.bar.strokeWidth
|
|
326
|
+
},
|
|
327
|
+
labels: {
|
|
328
|
+
show: !0,
|
|
329
|
+
color: d,
|
|
330
|
+
rounding: f
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}, ae = a >= 0 ? 0 : Math.abs(a), m = i + ae, h = E.dataset.header[A.value.col].isPercentage, g = A.value.rows.map((t, n) => ({
|
|
334
|
+
x: r * n + r / 2,
|
|
335
|
+
y: (1 - (t.value + ae) / m) * e,
|
|
336
|
+
value: h ? t.value * 100 : t.value,
|
|
337
|
+
suffix: h ? "%" : E.dataset.header[A.value.col].suffix ? E.dataset.header[A.value.col].suffix : "",
|
|
338
|
+
prefix: E.dataset.header[A.value.col].prefix ? E.dataset.header[A.value.col].prefix : "",
|
|
339
|
+
index: t.index,
|
|
340
|
+
absoluteValue: h ? Math.abs(t.value) * 100 : Math.abs(t.value)
|
|
341
|
+
}));
|
|
342
|
+
return {
|
|
343
|
+
donutConfig: {
|
|
344
|
+
useCssAnimation: !1,
|
|
345
|
+
userOptions: {
|
|
346
|
+
position: "left",
|
|
347
|
+
buttons: {
|
|
348
|
+
pdf: !1,
|
|
349
|
+
csv: !1,
|
|
350
|
+
table: !1,
|
|
351
|
+
annotator: !1
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
style: { chart: {
|
|
355
|
+
backgroundColor: u,
|
|
356
|
+
color: d,
|
|
357
|
+
layout: {
|
|
358
|
+
curvedMarkers: !0,
|
|
359
|
+
donut: { strokeWidth: 64 },
|
|
360
|
+
labels: {
|
|
361
|
+
dataLabels: {
|
|
362
|
+
suffix: h ? "%" : "",
|
|
363
|
+
prefix: te
|
|
364
|
+
},
|
|
365
|
+
value: { rounding: f },
|
|
366
|
+
percentage: {
|
|
367
|
+
color: d,
|
|
368
|
+
rounding: f
|
|
369
|
+
},
|
|
370
|
+
name: { color: d },
|
|
371
|
+
hollow: {
|
|
372
|
+
average: {
|
|
373
|
+
color: d,
|
|
374
|
+
text: K.value.translations.average,
|
|
375
|
+
value: { color: d }
|
|
376
|
+
},
|
|
377
|
+
total: {
|
|
378
|
+
color: d,
|
|
379
|
+
offsetY: -12,
|
|
380
|
+
text: K.value.translations.total,
|
|
381
|
+
value: {
|
|
382
|
+
color: d,
|
|
383
|
+
offsetY: -12
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
legend: {
|
|
390
|
+
backgroundColor: u,
|
|
391
|
+
color: d,
|
|
392
|
+
roundingValue: f,
|
|
393
|
+
roundingPercentage: f
|
|
394
|
+
},
|
|
395
|
+
padding: {
|
|
396
|
+
left: 12,
|
|
397
|
+
right: 12
|
|
398
|
+
},
|
|
399
|
+
title: {
|
|
400
|
+
text: c,
|
|
401
|
+
color: d,
|
|
402
|
+
fontSize: 18
|
|
403
|
+
},
|
|
404
|
+
tooltip: {
|
|
405
|
+
backgroundOpacity: 30,
|
|
406
|
+
color: d,
|
|
407
|
+
backgroundColor: u,
|
|
408
|
+
roundingValue: f,
|
|
409
|
+
roundingValue: f
|
|
410
|
+
}
|
|
411
|
+
} }
|
|
412
|
+
},
|
|
413
|
+
xyConfig: p,
|
|
414
|
+
xyDatasetLine: re,
|
|
415
|
+
xyDatasetBar: ie,
|
|
416
|
+
progression: g.length >= 2 ? ee(g) : !1
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
function Yn() {
|
|
420
|
+
mn.value = V.value.options.map((e, t) => ({
|
|
421
|
+
name: e,
|
|
422
|
+
color: i[t] || i[t % i.length],
|
|
423
|
+
values: [Y.value.filter((t, n) => t.td[V.value.index] === e && A.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[A.value.col]).reduce((e, t) => Math.abs(e) + Math.abs(t), 0)],
|
|
424
|
+
absoluteValue: Y.value.filter((t, n) => t.td[V.value.index] === e && A.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[A.value.col]).reduce((e, t) => e + t, 0)
|
|
425
|
+
})).sort((e, t) => t.value - e.value), ce(() => {
|
|
426
|
+
O.value.type = k.value.DONUT, U.value = !1;
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
function Xn(e, t) {
|
|
430
|
+
return !P.value[e] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![k.value.DATE].includes(t.type);
|
|
431
|
+
}
|
|
432
|
+
function Zn(e = "all") {
|
|
433
|
+
let t = E.dataset.header.map((e) => e.name), r = e === "all" ? W.value.map((e) => e.td) : Y.value.map((e) => e.td);
|
|
434
|
+
a({
|
|
435
|
+
csvContent: n([t].concat(r)),
|
|
436
|
+
title: Tn.value
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
function Qn() {
|
|
440
|
+
let e = document.getElementsByClassName("th-dropdown");
|
|
441
|
+
e.length && Array.from(e).forEach((e) => {
|
|
442
|
+
e.dataset.isOpen = !1;
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
function $n(e, t) {
|
|
446
|
+
let n;
|
|
447
|
+
clearTimeout(n), n = setTimeout(e, t);
|
|
448
|
+
}
|
|
449
|
+
function Z() {
|
|
450
|
+
let e = document.getElementsByClassName(`tr_${D}`);
|
|
451
|
+
Array.from(e).forEach((e) => {
|
|
452
|
+
Array.from(e.getElementsByTagName("td")).forEach((e) => {
|
|
453
|
+
e.dataset.row === "even" ? (e.style.background = K.value.style.rows.even.backgroundColor, e.style.color = K.value.style.rows.even.color) : (e.style.background = K.value.style.rows.odd.backgroundColor, e.style.color = K.value.style.rows.odd.color);
|
|
454
|
+
});
|
|
455
|
+
}), Array.from(e).forEach((e) => e.dataset.selected = "false"), j.value > J.value.length - 1 && (j.value = J.value.length - 1), H.value = !1, mn.value = void 0, xn.value = void 0, O.value.type = k.value.BAR, A.value = {
|
|
456
|
+
col: void 0,
|
|
457
|
+
rows: []
|
|
458
|
+
}, dn.value = 100, fn.value = 100;
|
|
459
|
+
}
|
|
460
|
+
function er(e, t) {
|
|
461
|
+
W.value = e.filter((e) => e.td[t] >= R.value[t].min && e[t] <= R.value[t].max);
|
|
462
|
+
}
|
|
463
|
+
function tr(e, t) {
|
|
464
|
+
if (B.value[t] === k.value.ASC && (e = e.sort((e, n) => e[t] - n[t])), B.value[t] === k.value.DESC) e = e.sort((e, n) => n[t] - e[t]);
|
|
465
|
+
else return 0;
|
|
466
|
+
}
|
|
467
|
+
function nr() {
|
|
468
|
+
Z(), Object.keys(R.value).forEach((e) => {
|
|
469
|
+
er(W.value, e);
|
|
470
|
+
}), Object.keys(B.value).forEach((e) => {
|
|
471
|
+
tr(W.value, e);
|
|
472
|
+
}), hn.value !== void 0 && tr(W.value, hn.value), E.dataset.header.forEach((e, t) => {
|
|
473
|
+
if (e.isPercentage) {
|
|
474
|
+
let e = L.value[t].referenceIndex, n = W.value.map((t) => t.td[e]).reduce((e, t) => e + t, 0);
|
|
475
|
+
W.value.forEach((r) => {
|
|
476
|
+
r.td[t] = r.td[e] / n;
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
}), j.value > J.value.length - 1 && (j.value = J.value.length - 1), [-1].includes(j.value) && (j.value = 0);
|
|
480
|
+
}
|
|
481
|
+
function Q() {
|
|
482
|
+
W.value = En.value.filter((e) => {
|
|
483
|
+
for (let t in z.value) if (!e.td[t].toUpperCase().includes(z.value[t].toUpperCase())) return !1;
|
|
484
|
+
for (let t in I.value) if (!I.value[t].some((n) => n === e.td[t])) return !1;
|
|
485
|
+
for (let t in N.value) {
|
|
486
|
+
let n = new Date(e.td[t]), r = new Date(N.value[t].from), i = new Date(N.value[t].to);
|
|
487
|
+
if (n < r || n > i) return !1;
|
|
488
|
+
}
|
|
489
|
+
return !0;
|
|
490
|
+
}), nr();
|
|
491
|
+
}
|
|
492
|
+
function rr(e) {
|
|
493
|
+
return Wn.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0) / W.value.length;
|
|
494
|
+
}
|
|
495
|
+
function ir(e) {
|
|
496
|
+
let t = E.dataset.body.map((t) => new Date(t.td[e])), n = new Date(Math.min(...t)), r = new Date(Math.max(...t)), i = n.getFullYear(), a = r.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), s = String(r.getMonth() + 1).padStart(2, "0"), c = String(n.getDate()).padStart(2, "0"), l = String(r.getDate()).padStart(2, "0");
|
|
497
|
+
return {
|
|
498
|
+
from: `${i}-${o}-${c}`,
|
|
499
|
+
to: `${a}-${s}-${l}`
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
function $(e) {
|
|
503
|
+
return [...new Set(E.dataset.body.map((t) => t.td[e]))];
|
|
504
|
+
}
|
|
505
|
+
function ar(e) {
|
|
506
|
+
return Wn.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0);
|
|
507
|
+
}
|
|
508
|
+
function or(e) {
|
|
509
|
+
return e.includes(NaN);
|
|
510
|
+
}
|
|
511
|
+
function sr(e, t) {
|
|
512
|
+
return I.value[t] ? I.value[t].includes(e) : !0;
|
|
513
|
+
}
|
|
514
|
+
function cr(e) {
|
|
515
|
+
return !isNaN(Number(String(e).replaceAll("%", "")));
|
|
516
|
+
}
|
|
517
|
+
function lr(e, t) {
|
|
518
|
+
let n = t.isSort, r = t.isSearch, i = t.isMultiselect && I.value[e], a = t.rangeFilter, o = (e) => {
|
|
519
|
+
if (a && R.value[e]) return Math.round(R.value[e].min) === F.value[e].min && Math.round(R.value[e].max) === F.value[e].max;
|
|
520
|
+
};
|
|
521
|
+
if (n && r && i && a) return ["", void 0].includes(z.value[e]) && [void 0].includes(B.value[e]) && I.value[e].length === $(e).length && o(e);
|
|
522
|
+
if (n && r && i) return ["", void 0].includes(z.value[e]) && [void 0].includes(B.value[e]) && I.value[e].length === $(e).length;
|
|
523
|
+
if (n && r && a) return ["", void 0].includes(z.value[e]) && [void 0].includes(B.value[e]) && o(e);
|
|
524
|
+
if (n && r) return ["", void 0].includes(z.value[e]) && [void 0].includes(B.value[e]);
|
|
525
|
+
if (n && i && a) return [void 0].includes(B.value[e]) && I.value[e].length === $(e).length && o(e);
|
|
526
|
+
if (n && i) return [void 0].includes(B.value[e]) && I.value[e].length === $(e).length;
|
|
527
|
+
if (r && i && a) return ["", void 0].includes(z.value[e]) && I.value[e].length === $(e).length && o(e);
|
|
528
|
+
if (r && i) return ["", void 0].includes(z.value[e]) && I.value[e].length === $(e).length;
|
|
529
|
+
if (r && a) return ["", void 0].includes(z.value[e]) && o(e);
|
|
530
|
+
if (r) return ["", void 0].includes(z.value[e]);
|
|
531
|
+
if (n && a) return [void 0].includes(B.value[e]) && o(e);
|
|
532
|
+
if (n) return [void 0].includes(B.value[e]);
|
|
533
|
+
if (i && a) return I.value[e].length === $(e).length && o(e);
|
|
534
|
+
if (i) return I.value[e].length === $(e).length;
|
|
535
|
+
}
|
|
536
|
+
function ur() {
|
|
537
|
+
return {
|
|
538
|
+
totalPages: J.value.length,
|
|
539
|
+
itemsPerPage: yn.value,
|
|
540
|
+
currentPage: j.value,
|
|
541
|
+
currentPageData: Y.value.map((e) => e.td)
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
ie({ getCurrentPageData: ur });
|
|
545
|
+
function dr() {
|
|
546
|
+
sn("page-change", ur());
|
|
547
|
+
}
|
|
548
|
+
let fr = x(null);
|
|
549
|
+
function pr(e) {
|
|
550
|
+
if (Z(), e === "next" && j.value < J.value.length) {
|
|
551
|
+
if (j.value + 1 > J.value.length - 1) return;
|
|
552
|
+
j.value += 1;
|
|
553
|
+
} else if (e === "previous" && j.value >= 1) --j.value;
|
|
554
|
+
else {
|
|
555
|
+
if (e - 1 < 0 || e > J.value.length || e === "previous") return;
|
|
556
|
+
j.value = e - 1;
|
|
557
|
+
}
|
|
558
|
+
dr(), fr.value && fr.value.scrollTo({
|
|
559
|
+
top: 0,
|
|
560
|
+
left: 0,
|
|
561
|
+
behavior: "smooth"
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
function mr(e) {
|
|
565
|
+
e.preventDefault();
|
|
566
|
+
let t = e.keyCode;
|
|
567
|
+
if (![
|
|
568
|
+
38,
|
|
569
|
+
40,
|
|
570
|
+
37,
|
|
571
|
+
39
|
|
572
|
+
].includes(t)) return;
|
|
573
|
+
let n = e.target.id.match(/cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/), r = parseInt(n[1]), i = parseInt(n[2]), a = document.getElementById(`cell_${r}_${i + 1}_${D}`), o = document.getElementById(`cell_${r}_${i - 1}_${D}`), s = document.getElementById(`cell_${r + 1}_${i}_${D}`), c = document.getElementById(`cell_${r - 1}_${i}_${D}`), l;
|
|
574
|
+
switch (!0) {
|
|
575
|
+
case t === 39:
|
|
576
|
+
l = a;
|
|
577
|
+
break;
|
|
578
|
+
case t === 37:
|
|
579
|
+
l = o;
|
|
580
|
+
break;
|
|
581
|
+
case t === 38:
|
|
582
|
+
l = c;
|
|
583
|
+
break;
|
|
584
|
+
case t === 40:
|
|
585
|
+
l = s;
|
|
586
|
+
break;
|
|
587
|
+
default: return;
|
|
588
|
+
}
|
|
589
|
+
l && (l.focus(), l.scrollIntoView({
|
|
590
|
+
behavior: "smooth",
|
|
591
|
+
block: "center"
|
|
592
|
+
}));
|
|
593
|
+
}
|
|
594
|
+
function hr(e) {
|
|
595
|
+
let t = 0;
|
|
596
|
+
for (let n = 0; n < e.length; n += 1) t += e.charCodeAt(n);
|
|
597
|
+
return t;
|
|
598
|
+
}
|
|
599
|
+
async function gr() {
|
|
600
|
+
return new Promise((e) => {
|
|
601
|
+
let t = [];
|
|
602
|
+
G.value.forEach((e, n) => {
|
|
603
|
+
if (e.isSearch && Object.assign(z.value, { [n]: "" }), e.isMultiselect && Object.assign(I.value, { [n]: $(n) }), e.type === k.value.DATE && (Object.assign(N.value, { [n]: ir(n) }), Object.assign(vn.value, { [n]: !1 })), (e.isPercentage || e.percentageTo) && Object.assign(L.value, { [n]: {
|
|
604
|
+
reference: e.percentageTo,
|
|
605
|
+
referenceIndex: E.dataset.header.map((e) => e.name).indexOf(e.percentageTo)
|
|
606
|
+
} }), e.rangeFilter && (Object.assign(R.value, { [n]: {
|
|
607
|
+
min: Math.round(Math.min(...E.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
608
|
+
max: Math.round(Math.max(...E.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
609
|
+
} }), Object.assign(F.value, { [n]: {
|
|
610
|
+
min: Math.round(Math.min(...E.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
611
|
+
max: Math.round(Math.max(...E.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
612
|
+
} })), e.isPercentage) {
|
|
613
|
+
let r = E.dataset.header.map((e) => e.name).indexOf(e.percentageTo), i = E.dataset.body.map((e) => e.td[r]).reduce((e, t) => e + t, 0);
|
|
614
|
+
t.push([
|
|
615
|
+
n,
|
|
616
|
+
r,
|
|
617
|
+
i
|
|
618
|
+
]);
|
|
619
|
+
}
|
|
620
|
+
e.type === k.value.NUMERIC && !e.isPercentage && Object.assign(P.value, { [n]: or(E.dataset.body.map((e) => Number(e.td[n]))) });
|
|
621
|
+
}), W.value.forEach((e, n) => {
|
|
622
|
+
t.map((t) => {
|
|
623
|
+
let [n, r, i] = t;
|
|
624
|
+
e.td[n] = e.td[r] / i;
|
|
625
|
+
}), e.td.forEach((t, r) => {
|
|
626
|
+
E.dataset.header[r].type === k.value.TEXT && E.dataset.header[r].isSearch && (e[r] = hr(t)), E.dataset.header[r].type === k.value.DATE && (e[r] = new Date(t).getTime()), E.dataset.header[r].type === k.value.NUMERIC && (e[r] = isNaN(Number(t)) ? r : t), En.value[n][r] = e[r];
|
|
627
|
+
});
|
|
628
|
+
}), e(!0);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function _r(e, t) {
|
|
632
|
+
return new Promise((n, r) => {
|
|
633
|
+
e().then((e) => {
|
|
634
|
+
try {
|
|
635
|
+
n(t(e));
|
|
636
|
+
} catch (e) {
|
|
637
|
+
r(e);
|
|
638
|
+
}
|
|
639
|
+
}).catch((e) => {
|
|
640
|
+
r(e);
|
|
641
|
+
});
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
async function vr(e) {
|
|
645
|
+
N.value[e] = {
|
|
646
|
+
from: ir(e).from,
|
|
647
|
+
to: ir(e).to
|
|
648
|
+
}, vn.value[e] = !1, await ce(), Q();
|
|
649
|
+
}
|
|
650
|
+
function yr(e, t, n) {
|
|
651
|
+
let r = n.currentTarget;
|
|
652
|
+
clearTimeout(un.value), r.classList.add("clicked"), un.value = setTimeout(() => {
|
|
653
|
+
r.classList.remove("clicked");
|
|
654
|
+
}, 200), hn.value = void 0, t.rangeFilter && (R.value[e].min = F.value[e].min, R.value[e].max = F.value[e].max), t.isMultiselect ? (I.value[e] = $(e), t.type === k.value.TEXT && (B.value[e] = void 0), t.isSearch && (z.value[e] = "")) : t.type === k.value.NUMERIC ? B.value[e] = void 0 : t.type === k.value.TEXT ? (B.value[e] = void 0, z.value[e] = "") : t.type === k.value.DATE && (B.value[e] = void 0), Q();
|
|
655
|
+
}
|
|
656
|
+
function br({ td: e, rowIndex: t, colIndex: n, headerType: r, event: i }) {
|
|
657
|
+
if (r !== k.value.NUMERIC || isNaN(Number(e))) {
|
|
658
|
+
Z();
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
A.value.col !== n && Z();
|
|
662
|
+
let a = i.currentTarget.parentNode;
|
|
663
|
+
A.value.col = n, A.value.rows.map((e) => e.index).includes(t) ? (a.dataset.selected = "false", A.value.rows = A.value.rows.filter((e) => e.index !== t), i.currentTarget.classList.remove(pn.value.CELL), Array.from(a.children).forEach((e, t) => {
|
|
664
|
+
e.dataset.row === "even" ? (e.style.background = K.value.style.rows.even.backgroundColor, e.style.color = K.value.style.rows.even.olor) : (e.style.background = K.value.style.rows.odd.backgroundColor, e.style.color = K.value.style.rows.odd.color);
|
|
665
|
+
}), i.currentTarget.dataset.row === "even" ? (i.currentTarget.style.background = K.value.style.rows.even.backgroundColor, i.currentTarget.style.color = K.value.style.rows.even.color) : (i.currentTarget.style.background = K.value.style.rows.odd.backgroundColor, i.currentTarget.style.color = K.value.style.rows.odd.color)) : (a.dataset.selected = "true", A.value.rows.push({
|
|
666
|
+
index: t,
|
|
667
|
+
value: e
|
|
668
|
+
}), Array.from(a.children).forEach((e, t) => {
|
|
669
|
+
e.dataset.row === "even" ? (e.style.background = K.value.style.rows.even.selectedNeighbors.backgroundColor, e.style.color = K.value.style.rows.even.selectedNeighbors.color) : (e.style.background = K.value.style.rows.odd.selectedNeighbors.backgroundColor, e.style.color = K.value.style.rows.odd.selectedNeighbors.color);
|
|
670
|
+
}), i.currentTarget.dataset.row === "odd" ? (i.currentTarget.style.background = K.value.style.rows.odd.selectedCell.backgroundColor, i.currentTarget.style.color = K.value.style.rows.odd.selectedCell.color) : (i.currentTarget.style.background = K.value.style.rows.even.selectedCell.backgroundColor, i.currentTarget.style.color = K.value.style.rows.even.selectedCell.color)), A.value.rows = A.value.rows.sort((e, t) => e.index - t.index), O.value.type === k.value.DONUT && A.value.rows.length > 0 && Yn();
|
|
671
|
+
}
|
|
672
|
+
function xr(e) {
|
|
673
|
+
A.value.col === e ? (xn.value = void 0, Z()) : (Y.value.forEach((t, n) => {
|
|
674
|
+
br({
|
|
675
|
+
td: t.td[e],
|
|
676
|
+
rowIndex: n,
|
|
677
|
+
colIndex: e,
|
|
678
|
+
headerType: k.value.NUMERIC,
|
|
679
|
+
event: { currentTarget: document.getElementById(`cell_${n}_${e}_${D}`) }
|
|
680
|
+
});
|
|
681
|
+
}), xn.value = e);
|
|
682
|
+
}
|
|
683
|
+
async function Sr(e, t) {
|
|
684
|
+
I.value[t].includes(e) ? I.value[t] = I.value[t].filter((t) => t !== e) : I.value[t].push(e), await ce(), Q();
|
|
685
|
+
}
|
|
686
|
+
function Cr(e) {
|
|
687
|
+
vn.value[e] = !(ir(e).from === N.value[e].from && ir(e).to === N.value[e].to);
|
|
688
|
+
}
|
|
689
|
+
function wr(e, t) {
|
|
690
|
+
hn.value = e;
|
|
691
|
+
let n = t.currentTarget;
|
|
692
|
+
clearTimeout(un.value), n.classList.add("clicked"), un.value = setTimeout(() => {
|
|
693
|
+
n.classList.remove("clicked");
|
|
694
|
+
}, 200), B.value[e] === 1 ? B.value[e] = k.value.DESC : B.value[e] = k.value.ASC, nr();
|
|
695
|
+
}
|
|
696
|
+
function Tr(e, t, n) {
|
|
697
|
+
let r = n.currentTarget;
|
|
698
|
+
clearTimeout(un.value), r.classList.add("clicked"), un.value = setTimeout(() => {
|
|
699
|
+
r.classList.remove("clicked");
|
|
700
|
+
}, 200);
|
|
701
|
+
let i = document.getElementById(`th_dropdown_${e}`);
|
|
702
|
+
i.dataset.isOpen === "false" ? i.dataset.isOpen = "true" : i.dataset.isOpen = "false";
|
|
703
|
+
}
|
|
704
|
+
function Er(e) {
|
|
705
|
+
Z(), !e || !e.target.value ? j.value = 0 : j.value = Number(e.target.value), dr();
|
|
706
|
+
}
|
|
707
|
+
let Dr = x(null);
|
|
708
|
+
le(() => {
|
|
709
|
+
if (E.dataset.header.length === 0) throw Error("vue-ui-table error: missing header data.\nProvide an array of objects of type:\n{\n name: string;\n type: string; ('text' | 'numeric' | 'date')\n average: boolean;\n decimals: number | undefined;\n sum: boolean;\n isSort:boolean;\n isSearch: boolean;\n isMultiselect: boolean;\n isPercentage: boolean;\n percentageTo: string; (or '')\n}");
|
|
710
|
+
if (E.dataset.body.length === 0) throw Error("vue-ui-table error: missing body data");
|
|
711
|
+
_n.value = !0, _r(gr, async () => {
|
|
712
|
+
await ce(), _n.value = !1;
|
|
713
|
+
}), document.addEventListener("keydown", (e) => {
|
|
714
|
+
let t = document.activeElement;
|
|
715
|
+
(t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
|
|
716
|
+
}), Tn.value = K.value.style.exportMenu.filename, wn.value = Ln.value[0]?.name ?? "";
|
|
717
|
+
}), pe(() => E.dataset, (e) => {
|
|
718
|
+
_n.value = !0, W.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
719
|
+
...e,
|
|
720
|
+
absoluteIndex: t
|
|
721
|
+
})), En.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
722
|
+
...e,
|
|
723
|
+
absoluteIndex: t
|
|
724
|
+
})), G.value = JSON.parse(JSON.stringify(e.header)).map((e, t) => ({
|
|
725
|
+
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
726
|
+
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
727
|
+
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
728
|
+
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
729
|
+
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
730
|
+
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
731
|
+
name: e.name,
|
|
732
|
+
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
733
|
+
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
734
|
+
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
735
|
+
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
736
|
+
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
737
|
+
type: e.type,
|
|
738
|
+
index: t
|
|
739
|
+
})), A.value = {
|
|
740
|
+
col: void 0,
|
|
741
|
+
rows: []
|
|
742
|
+
}, xn.value = void 0, yn.value = E.config.rowsPerPage ? E.config.rowsPerPage : 25, L.value = {}, N.value = {}, vn.value = {}, P.value = {}, F.value = {}, R.value = {}, I.value = {}, z.value = {}, B.value = {}, H.value = !1, mn.value = void 0, V.value = void 0, Sn.value = void 0, U.value = !1, A.value.col = void 0, A.value.rows = [], _r(gr, async () => {
|
|
743
|
+
Er(), await ce(), _n.value = !1;
|
|
744
|
+
});
|
|
745
|
+
}, {
|
|
746
|
+
immediate: !0,
|
|
747
|
+
deep: !0
|
|
748
|
+
});
|
|
749
|
+
let Or = x(null);
|
|
750
|
+
return pe(gn, (e) => {
|
|
751
|
+
e && Or.value && Or.value.focus();
|
|
752
|
+
}), pe(H, (e) => {
|
|
753
|
+
e ? Dr.value && Dr.value.open() : Dr.value && Dr.value.close();
|
|
754
|
+
}), (t, n) => (b(), h("div", {
|
|
755
|
+
class: "vue-data-ui-component vue-ui-table-main",
|
|
756
|
+
style: y(`font-family: ${K.value.fontFamily}`)
|
|
757
|
+
}, [
|
|
758
|
+
K.value.style.exportMenu.show ? (b(), h("div", {
|
|
759
|
+
key: 0,
|
|
760
|
+
class: "vue-ui-table-export-hub",
|
|
761
|
+
style: y({ top: Dn.value + "px" })
|
|
762
|
+
}, [g("button", {
|
|
763
|
+
onClick: n[0] ||= (e) => gn.value = !gn.value,
|
|
764
|
+
innerHTML: X.value.export,
|
|
765
|
+
style: y(`background:${K.value.style.exportMenu.backgroundColor};color:${K.value.style.exportMenu.color};cursor:${q.value ? "pointer" : "default"}`)
|
|
766
|
+
}, null, 12, ve), g("div", {
|
|
767
|
+
class: "vue-ui-table-export-hub-dropdown",
|
|
768
|
+
"data-is-open": gn.value || "false",
|
|
769
|
+
style: y(`background:${K.value.style.exportMenu.backgroundColor};color:${K.value.style.exportMenu.color}`)
|
|
770
|
+
}, [
|
|
771
|
+
n[24] ||= g("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1),
|
|
772
|
+
g("button", {
|
|
773
|
+
class: "close-dropdown",
|
|
774
|
+
onClick: n[1] ||= (e) => gn.value = !1,
|
|
775
|
+
style: y(`background:${K.value.style.closeButtons.backgroundColor};color:${K.value.style.closeButtons.color};border-radius:${K.value.style.closeButtons.borderRadius}`)
|
|
776
|
+
}, " ✖ ", 4),
|
|
777
|
+
g("div", be, [
|
|
778
|
+
g("div", xe, [g("div", Se, C(K.value.translations.exportAllLabel) + " (" + C(W.value.length) + ") ", 1), g("button", {
|
|
779
|
+
id: "exportAll",
|
|
780
|
+
onClick: n[2] ||= (e) => Zn("all"),
|
|
781
|
+
style: y(`background:${K.value.style.exportMenu.buttons.backgroundColor};color:${K.value.style.exportMenu.buttons.color};cursor:${q.value ? "pointer" : "default"}`)
|
|
782
|
+
}, [g("div", { innerHTML: X.value.fileDownload }, null, 8, Ce), g("span", null, C(K.value.translations.exportAllButton), 1)], 4)]),
|
|
783
|
+
g("div", we, [g("div", Te, C(K.value.translations.exportPageLabel), 1), g("button", {
|
|
784
|
+
id: "exportPage",
|
|
785
|
+
onClick: n[3] ||= (e) => Zn("page"),
|
|
786
|
+
style: y(`background:${K.value.style.exportMenu.buttons.backgroundColor};color:${K.value.style.exportMenu.buttons.color};cursor:${q.value ? "pointer" : "default"}`)
|
|
787
|
+
}, [g("div", { innerHTML: X.value.fileDownload }, null, 8, Ee), g("span", null, C(K.value.translations.exportPageButton), 1)], 4)]),
|
|
788
|
+
g("div", De, [g("label", Oe, [g("span", ke, C(K.value.translations.filename), 1), T(g("input", {
|
|
789
|
+
name: "filename",
|
|
790
|
+
ref_key: "filenameInputRef",
|
|
791
|
+
ref: Or,
|
|
792
|
+
onKeydown: n[4] ||= he(ge(() => {}, ["stop"]), ["space"]),
|
|
793
|
+
pattern: ".*",
|
|
794
|
+
class: "vue-ui-table-dialog-input",
|
|
795
|
+
type: "text",
|
|
796
|
+
"onUpdate:modelValue": n[5] ||= (e) => Tn.value = e
|
|
797
|
+
}, null, 544), [[fe, Tn.value]])]), Tn.value ? (b(), h("button", {
|
|
798
|
+
key: 0,
|
|
799
|
+
class: "vue-ui-table-dialog-field-button",
|
|
800
|
+
onClick: n[6] ||= (e) => Tn.value = "",
|
|
801
|
+
style: y({ cursor: q.value ? "pointer" : "default" })
|
|
802
|
+
}, [oe(u, {
|
|
803
|
+
name: "close",
|
|
804
|
+
stroke: K.value.style.exportMenu.color,
|
|
805
|
+
size: 18
|
|
806
|
+
}, null, 8, ["stroke"])], 4)) : m("", !0)])
|
|
807
|
+
])
|
|
808
|
+
], 12, ye)], 4)) : m("", !0),
|
|
809
|
+
g("div", {
|
|
810
|
+
class: "vue-ui-table__wrapper",
|
|
811
|
+
style: y(`max-height:${K.value.maxHeight}px`),
|
|
812
|
+
ref_key: "tableWrapper",
|
|
813
|
+
ref: fr
|
|
814
|
+
}, [g("table", Ae, [
|
|
815
|
+
K.value.style.title.text ? (b(), h("caption", {
|
|
816
|
+
key: 0,
|
|
817
|
+
class: "vue-ui-table__caption",
|
|
818
|
+
ref_key: "tableCaption",
|
|
819
|
+
ref: ln,
|
|
820
|
+
style: y({
|
|
821
|
+
textAlign: K.value.style.title.textAlign,
|
|
822
|
+
paddingLeft: K.value.style.title.paddingLeft + "px",
|
|
823
|
+
paddingRight: K.value.style.title.paddingRight + "px",
|
|
824
|
+
backgroundColor: K.value.style.title.backgroundColor,
|
|
825
|
+
boxShadow: `${K.value.style.title.backgroundColor} -1px 0px 0px 0px`
|
|
826
|
+
})
|
|
827
|
+
}, [g("span", { style: y({
|
|
828
|
+
fontSize: K.value.style.title.fontSize + "px",
|
|
829
|
+
fontWeight: K.value.style.title.bold ? "bold" : "normal",
|
|
830
|
+
color: K.value.style.title.color
|
|
831
|
+
}) }, C(K.value.style.title.text), 5), K.value.style.title.subtitle.text ? (b(), h(f, { key: 0 }, [n[25] ||= g("br", null, null, -1), g("span", { style: y({
|
|
832
|
+
fontSize: K.value.style.title.subtitle.fontSize,
|
|
833
|
+
fontWeight: K.value.style.title.subtitle.bold ? "bold" : "normal",
|
|
834
|
+
color: K.value.style.title.subtitle.color
|
|
835
|
+
}) }, C(K.value.style.title.subtitle.text), 5)], 64)) : m("", !0)], 4)) : m("", !0),
|
|
836
|
+
g("thead", {
|
|
837
|
+
id: "tableHead",
|
|
838
|
+
class: "vue-ui-table__head",
|
|
839
|
+
style: y({
|
|
840
|
+
background: K.value.style.th.backgroundColor,
|
|
841
|
+
boxShadow: `-1px 0 0 ${K.value.style.th.backgroundColor}`,
|
|
842
|
+
top: Dn.value - 3 + "px"
|
|
843
|
+
})
|
|
844
|
+
}, [
|
|
845
|
+
g("tr", null, [n[26] ||= g("th", { class: "invisible-cell" }, null, -1), (b(!0), h(f, null, S(G.value, (e, t) => (b(), h("th", {
|
|
846
|
+
key: `thead_${t}`,
|
|
847
|
+
style: y(`overflow: visible;background:${K.value.style.th.backgroundColor};color:${K.value.style.th.color};outline:${K.value.style.th.outline}`),
|
|
848
|
+
class: v({ "th-has-nan": P.value[t] })
|
|
849
|
+
}, [Un.value && ([k.value.TEXT, k.value.DATE].includes(e.type) || e.isPercentage) ? (b(), h("span", je, [_(C(e.name) + " ", 1), e.isPercentage ? (b(), h("span", Me, " / " + C(e.percentageTo), 1)) : m("", !0)])) : (b(), h("span", Ne, C(e.name), 1))], 6))), 128))]),
|
|
850
|
+
Un.value ? (b(), h(f, { key: 0 }, [
|
|
851
|
+
g("tr", null, [n[27] ||= g("th", { class: "invisible-cell" }, null, -1), (b(!0), h(f, null, S(G.value, (e, t) => (b(), h("th", {
|
|
852
|
+
key: `thead_${t}`,
|
|
853
|
+
class: v({
|
|
854
|
+
"th-numeric": !0,
|
|
855
|
+
"th-has-nan": P.value[t]
|
|
856
|
+
}),
|
|
857
|
+
style: y(`background:${K.value.style.th.backgroundColor};color:${K.value.style.th.color};outline:${K.value.style.th.outline}`)
|
|
858
|
+
}, [e.sum && !P.value[t] ? (b(), h("span", Pe, [
|
|
859
|
+
g("span", {
|
|
860
|
+
innerHTML: X.value.sum,
|
|
861
|
+
style: {
|
|
862
|
+
"margin-bottom": "-4px",
|
|
863
|
+
"margin-right": "3px"
|
|
864
|
+
}
|
|
865
|
+
}, null, 8, Fe),
|
|
866
|
+
_(" " + C(w(s)({
|
|
867
|
+
p: e.prefix,
|
|
868
|
+
v: Number(ar(t)),
|
|
869
|
+
s: e.suffix,
|
|
870
|
+
r: e.decimals
|
|
871
|
+
})) + " ", 1),
|
|
872
|
+
L.value[t] && e.percentageTo && !e.isPercentage ? (b(), h("span", Ie, " (" + C(isNaN(ar(t) / ar(L.value[t].referenceIndex)) ? "-" : w(s)({
|
|
873
|
+
v: ar(t) / ar(L.value[t].referenceIndex) * 100,
|
|
874
|
+
s: "%",
|
|
875
|
+
r: e.decimals
|
|
876
|
+
})) + ") ", 1)) : m("", !0)
|
|
877
|
+
])) : m("", !0)], 6))), 128))]),
|
|
878
|
+
g("tr", null, [n[28] ||= g("th", { class: "invisible-cell" }, null, -1), (b(!0), h(f, null, S(G.value, (e, t) => (b(), h("th", {
|
|
879
|
+
key: `thead_${t}`,
|
|
880
|
+
class: v({
|
|
881
|
+
"th-numeric": !0,
|
|
882
|
+
"th-has-nan": P.value[t]
|
|
883
|
+
}),
|
|
884
|
+
style: y(`background:${K.value.style.th.backgroundColor};color:${K.value.style.th.color};outline:${K.value.style.th.outline}`)
|
|
885
|
+
}, [e.average && !P.value[t] ? (b(), h("span", Le, " ~ " + C(isNaN(rr(t)) ? "" : w(s)({
|
|
886
|
+
p: e.prefix,
|
|
887
|
+
v: Number(rr(t)),
|
|
888
|
+
s: e.suffix,
|
|
889
|
+
r: e.decimals
|
|
890
|
+
})), 1)) : m("", !0)], 6))), 128))]),
|
|
891
|
+
g("tr", null, [n[31] ||= g("th", { class: "invisible-cell" }, null, -1), (b(!0), h(f, null, S(G.value, (e, t) => (b(), h("th", {
|
|
892
|
+
key: `thead_${t}`,
|
|
893
|
+
class: v({ "th-has-nan": P.value[t] }),
|
|
894
|
+
style: y(`background:${K.value.style.th.backgroundColor};color:${K.value.style.th.color};outline:${K.value.style.th.outline}`)
|
|
895
|
+
}, [g("div", Re, [
|
|
896
|
+
e.type === k.value.DATE && N.value[t] ? (b(), h("div", ze, [g("div", Be, [g("div", Ve, [g("label", { for: `from_${t}` }, C(K.value.translations.from), 9, He), T(g("input", {
|
|
897
|
+
id: `from_${t}`,
|
|
898
|
+
type: "date",
|
|
899
|
+
"onUpdate:modelValue": (e) => N.value[t].from = e,
|
|
900
|
+
onInput: (e) => {
|
|
901
|
+
Q(), Cr(t);
|
|
902
|
+
},
|
|
903
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
904
|
+
}, null, 44, Ue), [[fe, N.value[t].from]])]), g("div", We, [g("label", { for: `to_${t}` }, C(K.value.translations.to), 9, Ge), T(g("input", {
|
|
905
|
+
id: `to_${t}`,
|
|
906
|
+
type: "date",
|
|
907
|
+
"onUpdate:modelValue": (e) => N.value[t].to = e,
|
|
908
|
+
onInput: (e) => {
|
|
909
|
+
Q(), Cr(t);
|
|
910
|
+
},
|
|
911
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
912
|
+
}, null, 44, Ke), [[fe, N.value[t].to]])])]), g("div", qe, [e.isSort ? (b(), h("button", {
|
|
913
|
+
key: 0,
|
|
914
|
+
onClick: (e) => wr(t, e),
|
|
915
|
+
class: v({ "th-button-active": [k.value.DESC, k.value.ASC].includes(B.value[t]) }),
|
|
916
|
+
style: y(`cursor:${q.value ? "pointer" : "default"}; background:${[k.value.DESC, k.value.ASC].includes(B.value[t]) ? "" : K.value.style.th.buttons.filter.inactive.backgroundColor};color:${[k.value.DESC, k.value.ASC].includes(B.value[t]) ? "" : K.value.style.th.buttons.filter.inactive.color}`)
|
|
917
|
+
}, [B.value[t] === k.value.ASC ? (b(), h("span", {
|
|
918
|
+
key: 0,
|
|
919
|
+
innerHTML: [k.value.DATE].includes(e.type) ? X.value.sort09 : X.value.sortAZ
|
|
920
|
+
}, null, 8, Ye)) : B.value[t] === k.value.DESC ? (b(), h("span", {
|
|
921
|
+
key: 1,
|
|
922
|
+
innerHTML: [k.value.DATE].includes(e.type) ? X.value.sort90 : X.value.sortZA
|
|
923
|
+
}, null, 8, Xe)) : (b(), h("span", {
|
|
924
|
+
key: 2,
|
|
925
|
+
innerHTML: X.value.arrowSort
|
|
926
|
+
}, null, 8, Ze))], 14, Je)) : m("", !0), g("button", {
|
|
927
|
+
onClick: (n) => {
|
|
928
|
+
vr(t), yr(t, e, n);
|
|
929
|
+
},
|
|
930
|
+
disabled: !vn.value[t] && lr(t, e),
|
|
931
|
+
class: "th-reset",
|
|
932
|
+
style: y({ cursor: q.value ? "pointer" : "default" })
|
|
933
|
+
}, " ✖ ", 12, Qe)])])) : m("", !0),
|
|
934
|
+
e.isSearch ? T((b(), h("input", {
|
|
935
|
+
key: 1,
|
|
936
|
+
placeholder: K.value.translations.inputPlaceholder,
|
|
937
|
+
"onUpdate:modelValue": (e) => z.value[t] = e,
|
|
938
|
+
onInput: n[7] ||= (e) => $n(Q, 400),
|
|
939
|
+
name: `search_${t}`,
|
|
940
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
941
|
+
}, null, 44, $e)), [[fe, z.value[t]]]) : m("", !0),
|
|
942
|
+
!P.value[t] && e.isSort && e.type !== k.value.DATE ? (b(), h("button", {
|
|
943
|
+
key: 2,
|
|
944
|
+
onClick: (e) => wr(t, e),
|
|
945
|
+
class: v({ "th-button-active": [k.value.DESC, k.value.ASC].includes(B.value[t]) }),
|
|
946
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${[k.value.DESC, k.value.ASC].includes(B.value[t]) ? "" : K.value.style.th.buttons.filter.inactive.backgroundColor};color:${[k.value.DESC, k.value.ASC].includes(B.value[t]) ? "" : K.value.style.th.buttons.filter.inactive.color}`)
|
|
947
|
+
}, [B.value[t] === k.value.ASC ? (b(), h("span", {
|
|
948
|
+
key: 0,
|
|
949
|
+
innerHTML: [k.value.NUMERIC].includes(e.type) ? X.value.sort09 : X.value.sortZA
|
|
950
|
+
}, null, 8, tt)) : B.value[t] === k.value.DESC ? (b(), h("span", {
|
|
951
|
+
key: 1,
|
|
952
|
+
innerHTML: [k.value.NUMERIC].includes(e.type) ? X.value.sort90 : X.value.sortAZ
|
|
953
|
+
}, null, 8, nt)) : (b(), h("span", {
|
|
954
|
+
key: 2,
|
|
955
|
+
innerHTML: X.value.arrowSort
|
|
956
|
+
}, null, 8, rt))], 14, et)) : m("", !0),
|
|
957
|
+
e.isMultiselect ? (b(), h("button", {
|
|
958
|
+
key: 3,
|
|
959
|
+
onClick: (n) => Tr(t, e, n),
|
|
960
|
+
innerHTML: X.value.filter,
|
|
961
|
+
class: v({ "th-button-active": I.value[t] && I.value[t].length !== $(t).length }),
|
|
962
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${I.value[t] && I.value[t].length !== $(t).length ? "" : K.value.style.th.buttons.filter.inactive.backgroundColor};color:${I.value[t] && I.value[t].length !== $(t).length ? "" : K.value.style.th.buttons.filter.inactive.color}`)
|
|
963
|
+
}, null, 14, it)) : m("", !0),
|
|
964
|
+
A.value.col === t && Hn.value ? (b(), h("button", {
|
|
965
|
+
key: 4,
|
|
966
|
+
onClick: n[8] ||= (e) => H.value = !H.value,
|
|
967
|
+
innerHTML: X.value.chart,
|
|
968
|
+
class: v({ "th-button-active": H.value }),
|
|
969
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${H.value ? "" : K.value.style.th.buttons.filter.inactive.backgroundColor};color:${H.value ? "" : K.value.style.th.buttons.filter.inactive.color}`)
|
|
970
|
+
}, null, 14, at)) : m("", !0),
|
|
971
|
+
e.rangeFilter && R.value[t] && !P.value[t] ? (b(), h("div", ot, [
|
|
972
|
+
g("label", { for: `rangeMin${t}` }, [...n[29] ||= [
|
|
973
|
+
g("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
974
|
+
_(" min ", -1),
|
|
975
|
+
g("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
976
|
+
]], 8, st),
|
|
977
|
+
T(g("input", {
|
|
978
|
+
type: "number",
|
|
979
|
+
id: `rangeMin${t}`,
|
|
980
|
+
max: F.value[t].max,
|
|
981
|
+
min: F.value[t].min,
|
|
982
|
+
"onUpdate:modelValue": (e) => R.value[t].min = e,
|
|
983
|
+
onInput: n[9] ||= (e) => $n(Q, 400),
|
|
984
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
985
|
+
}, null, 44, ct), [[
|
|
986
|
+
fe,
|
|
987
|
+
R.value[t].min,
|
|
988
|
+
void 0,
|
|
989
|
+
{ number: !0 }
|
|
990
|
+
]]),
|
|
991
|
+
T(g("input", {
|
|
992
|
+
type: "number",
|
|
993
|
+
id: `rangeMax${t}`,
|
|
994
|
+
max: F.value[t].max,
|
|
995
|
+
min: F.value[t].min,
|
|
996
|
+
"onUpdate:modelValue": (e) => R.value[t].max = e,
|
|
997
|
+
onInput: n[10] ||= (e) => $n(Q, 400),
|
|
998
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
999
|
+
}, null, 44, lt), [[
|
|
1000
|
+
fe,
|
|
1001
|
+
R.value[t].max,
|
|
1002
|
+
void 0,
|
|
1003
|
+
{ number: !0 }
|
|
1004
|
+
]]),
|
|
1005
|
+
g("label", { for: `rangeMax${t}` }, [...n[30] ||= [
|
|
1006
|
+
g("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1007
|
+
_(" max ", -1),
|
|
1008
|
+
g("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1009
|
+
]], 8, ut)
|
|
1010
|
+
])) : m("", !0),
|
|
1011
|
+
Xn(t, e) ? (b(), h("button", {
|
|
1012
|
+
key: 6,
|
|
1013
|
+
onClick: (n) => yr(t, e, n),
|
|
1014
|
+
disabled: lr(t, e),
|
|
1015
|
+
class: "th-reset",
|
|
1016
|
+
style: y({ cursor: q.value ? "pointer" : "default" })
|
|
1017
|
+
}, " ✖ ", 12, dt)) : m("", !0),
|
|
1018
|
+
e.isMultiselect ? (b(), h("div", {
|
|
1019
|
+
key: 7,
|
|
1020
|
+
class: "th-dropdown",
|
|
1021
|
+
"data-is-open": "false",
|
|
1022
|
+
id: `th_dropdown_${t}`,
|
|
1023
|
+
style: y(`background:${K.value.style.dropdowns.backgroundColor};color:${K.value.style.dropdowns.color}`)
|
|
1024
|
+
}, [g("button", {
|
|
1025
|
+
class: "close-dropdown",
|
|
1026
|
+
onClick: (n) => Tr(t, e, n),
|
|
1027
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.closeButtons.backgroundColor};color:${K.value.style.closeButtons.color}`)
|
|
1028
|
+
}, " ✖ ", 12, pt), (b(!0), h(f, null, S($(t), (e, n) => (b(), h("span", {
|
|
1029
|
+
class: "th-option",
|
|
1030
|
+
key: `th_option_${t}_${n}`,
|
|
1031
|
+
onClick: (n) => Sr(e, t),
|
|
1032
|
+
onKeyup: [he((n) => Sr(e, t), ["enter"]), he((n) => Sr(e, t), ["space"])],
|
|
1033
|
+
style: y(`opacity:${sr(e, t) ? 1 : .5}`),
|
|
1034
|
+
tabindex: "0"
|
|
1035
|
+
}, [sr(e, t) ? (b(), h("span", {
|
|
1036
|
+
key: 0,
|
|
1037
|
+
style: y(`color:${K.value.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1038
|
+
class: "th-icon-green"
|
|
1039
|
+
}, C(K.value.style.dropdowns.icons.selected.unicode), 5)) : (b(), h("span", {
|
|
1040
|
+
key: 1,
|
|
1041
|
+
style: y(`color:${K.value.style.dropdowns.icons.unselected.color};margin-right:5px`),
|
|
1042
|
+
class: "th-icon-red"
|
|
1043
|
+
}, C(K.value.style.dropdowns.icons.unselected.unicode), 5)), g("span", null, C(e), 1)], 44, mt))), 128))], 12, ft)) : m("", !0)
|
|
1044
|
+
])], 6))), 128))])
|
|
1045
|
+
], 64)) : m("", !0),
|
|
1046
|
+
g("tr", null, [n[32] ||= g("th", { class: "invisible-cell" }, null, -1), (b(!0), h(f, null, S(G.value, (e, t) => (b(), h("th", {
|
|
1047
|
+
key: `col_selector_${t}`,
|
|
1048
|
+
class: v({
|
|
1049
|
+
"vue-ui-table-col-selector": !P.value[t],
|
|
1050
|
+
"th-has-nan": P.value[t]
|
|
1051
|
+
}),
|
|
1052
|
+
style: y(`background:${t === xn.value && !P.value[t] ? K.value.style.th.selected.backgroundColor : K.value.style.th.backgroundColor};color:${t === xn.value && !P.value[t] ? K.value.style.th.selected.color : K.value.style.th.color};outline:${K.value.style.th.outline}`)
|
|
1053
|
+
}, [P.value[t] ? m("", !0) : (b(), h("div", {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
innerHTML: G.value[t].type === k.value.NUMERIC ? X.value.chevronDown : "",
|
|
1056
|
+
class: v({ "col-selector": G.value[t].type === k.value.NUMERIC }),
|
|
1057
|
+
tabindex: "0",
|
|
1058
|
+
style: y({ cursor: q.value ? "pointer" : "default" }),
|
|
1059
|
+
onClick: ge((e) => xr(t), ["stop"]),
|
|
1060
|
+
onKeyup: he((e) => xr(t), ["enter"])
|
|
1061
|
+
}, null, 46, ht))], 6))), 128))])
|
|
1062
|
+
], 4),
|
|
1063
|
+
g("tbody", {
|
|
1064
|
+
onClick: Qn,
|
|
1065
|
+
onKeydown: n[11] ||= (e) => mr(e)
|
|
1066
|
+
}, [(b(!0), h(f, null, S(Y.value, (t, n) => (b(), h("tr", {
|
|
1067
|
+
key: `tbody_${n}`,
|
|
1068
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1069
|
+
class: v(`tr_${w(D)}`),
|
|
1070
|
+
style: y(`${n % 2 == 0 ? `background:${K.value.style.rows.odd.backgroundColor};color:${K.value.style.rows.odd.color}` : `background:${K.value.style.rows.even.backgroundColor};color:${K.value.style.rows.even.color}`}`)
|
|
1071
|
+
}, [g("td", {
|
|
1072
|
+
class: "vue-ui-table-td-iteration",
|
|
1073
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1074
|
+
style: y({ outline: K.value.style.rows.outline })
|
|
1075
|
+
}, C(t.absoluteIndex + 1), 13, _t), (b(!0), h(f, null, S(t.td, (r, i) => (b(), h("td", {
|
|
1076
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1077
|
+
key: `td_${n}_${i}`,
|
|
1078
|
+
style: y(cr(r) || e.dataset.header[i].type === k.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${K.value.style.rows.outline}` : `outline:${K.value.style.rows.outline}`),
|
|
1079
|
+
onClick: (t) => br({
|
|
1080
|
+
td: r,
|
|
1081
|
+
rowIndex: n,
|
|
1082
|
+
colIndex: i,
|
|
1083
|
+
headerType: e.dataset.header[i].type,
|
|
1084
|
+
event: t
|
|
1085
|
+
}),
|
|
1086
|
+
onKeyup: [he((t) => br({
|
|
1087
|
+
td: r,
|
|
1088
|
+
rowIndex: n,
|
|
1089
|
+
colIndex: i,
|
|
1090
|
+
headerType: e.dataset.header[i].type,
|
|
1091
|
+
event: t
|
|
1092
|
+
}), ["enter"]), he((t) => br({
|
|
1093
|
+
td: r,
|
|
1094
|
+
rowIndex: n,
|
|
1095
|
+
colIndex: i,
|
|
1096
|
+
headerType: e.dataset.header[i].type,
|
|
1097
|
+
event: t
|
|
1098
|
+
}), ["space"])],
|
|
1099
|
+
class: v({
|
|
1100
|
+
"td-numeric": e.dataset.header[i].type === k.value.NUMERIC,
|
|
1101
|
+
"td-focusable": !0,
|
|
1102
|
+
"td-has-nan": P.value[i]
|
|
1103
|
+
}),
|
|
1104
|
+
id: `cell_${n}_${i}_${w(D)}`,
|
|
1105
|
+
tabindex: "0"
|
|
1106
|
+
}, [t.meta && t.meta.markerIndices.includes(i) && t.meta.unicodeIcon ? (b(), h("span", {
|
|
1107
|
+
key: 0,
|
|
1108
|
+
style: y(`color:${t.meta.color};margin-right:3px`),
|
|
1109
|
+
innerHTML: t.meta.unicodeIcon
|
|
1110
|
+
}, null, 12, yt)) : m("", !0), e.dataset.header[i].type === k.value.DATE ? (b(), h("span", bt, C(e.dataset.header[i].prefix) + " " + C(new Date(r).toLocaleString().slice(0, 10)) + " " + C(e.dataset.header[i].suffix), 1)) : e.dataset.header[i].isPercentage ? (b(), h("span", xt, C(w(s)({
|
|
1111
|
+
v: Number(r * 100),
|
|
1112
|
+
s: "%",
|
|
1113
|
+
r: e.dataset.header[i].decimals
|
|
1114
|
+
})), 1)) : L.value[i] && e.dataset.header[i].percentageTo && !e.dataset.header[i].isPercentage ? (b(), h("span", {
|
|
1115
|
+
key: 3,
|
|
1116
|
+
class: v({ "td-nan": isNaN(Number(r)) })
|
|
1117
|
+
}, C(isNaN(Number(r)) ? `${r} is not ${k.value.NUMERIC}` : w(s)({
|
|
1118
|
+
p: e.dataset.header[i].prefix,
|
|
1119
|
+
v: Number(r),
|
|
1120
|
+
s: e.dataset.header[i].suffix,
|
|
1121
|
+
r: e.dataset.header[i].decimals
|
|
1122
|
+
})) + " (" + C(isNaN(Number(r)) ? "" : w(s)({
|
|
1123
|
+
v: Number(r / ar(L.value[i].referenceIndex) * 100),
|
|
1124
|
+
s: "%",
|
|
1125
|
+
r: e.dataset.header[i].decimals
|
|
1126
|
+
})) + ") ", 3)) : e.dataset.header[i].type === k.value.NUMERIC ? (b(), h("span", {
|
|
1127
|
+
key: 4,
|
|
1128
|
+
class: v({ "td-nan": isNaN(Number(r)) })
|
|
1129
|
+
}, C(isNaN(Number(r)) ? `${r} is not ${k.value.NUMERIC}` : w(s)({
|
|
1130
|
+
p: e.dataset.header[i].prefix,
|
|
1131
|
+
v: Number(r.toFixed(e.dataset.header[i].decimals)),
|
|
1132
|
+
s: e.dataset.header[i].suffix,
|
|
1133
|
+
r: e.dataset.header[i].decimals
|
|
1134
|
+
})), 3)) : (b(), h("span", St, C(e.dataset.header[i].prefix) + " " + C(r) + " " + C(e.dataset.header[i].suffix), 1))], 46, vt))), 128))], 14, gt))), 128))], 32)
|
|
1135
|
+
])], 4),
|
|
1136
|
+
g("div", {
|
|
1137
|
+
class: v({
|
|
1138
|
+
"td-selector-info": !0,
|
|
1139
|
+
"td-selector-info--active": A.value.col !== void 0 && A.value.rows.length
|
|
1140
|
+
}),
|
|
1141
|
+
style: y(`background:${K.value.style.infoBar.backgroundColor};color:${K.value.style.infoBar.color}`)
|
|
1142
|
+
}, [A.value.col !== void 0 && A.value.rows.length ? (b(), h(f, { key: 0 }, [
|
|
1143
|
+
g("div", {
|
|
1144
|
+
innerHTML: X.value.table,
|
|
1145
|
+
class: "td-selector-icon"
|
|
1146
|
+
}, null, 8, Ct),
|
|
1147
|
+
g("span", null, [
|
|
1148
|
+
g("b", null, [_(C(e.dataset.header[A.value.col].name) + " ", 1), e.dataset.header[A.value.col].isPercentage ? (b(), h("span", wt, " / " + C(e.dataset.header[L.value[A.value.col].referenceIndex].name), 1)) : m("", !0)]),
|
|
1149
|
+
g("span", Tt, [_(C(K.value.translations.nb) + " : ", 1), g("b", Et, C(A.value.rows.length), 1)]),
|
|
1150
|
+
g("span", Dt, [
|
|
1151
|
+
_(C(K.value.translations.sum) + " : ", 1),
|
|
1152
|
+
e.dataset.header[A.value.col].isPercentage ? (b(), h("b", Ot, C(Gn.value.sumPercentage), 1)) : (b(), h("b", kt, C(e.dataset.header[A.value.col].prefix) + " " + C(Gn.value.sumRegular) + " " + C(e.dataset.header[A.value.col].suffix), 1)),
|
|
1153
|
+
e.dataset.header[A.value.col].isPercentage ? (b(), h("b", At, "%")) : m("", !0)
|
|
1154
|
+
]),
|
|
1155
|
+
g("span", jt, [
|
|
1156
|
+
_(C(K.value.translations.average) + " : ", 1),
|
|
1157
|
+
e.dataset.header[A.value.col].isPercentage ? (b(), h("b", Mt, C(Gn.value.averagePercentage), 1)) : (b(), h("b", Nt, C(e.dataset.header[A.value.col].prefix) + " " + C(Gn.value.averageRegular) + " " + C(e.dataset.header[A.value.col].suffix), 1)),
|
|
1158
|
+
e.dataset.header[A.value.col].isPercentage ? (b(), h("b", Pt, "%")) : m("", !0)
|
|
1159
|
+
])
|
|
1160
|
+
]),
|
|
1161
|
+
g("button", {
|
|
1162
|
+
onClick: Z,
|
|
1163
|
+
class: "td-selector-info-reset",
|
|
1164
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.closeButtons.backgroundColor};color:${K.value.style.closeButtons.color};border-radius:${K.value.style.closeButtons.borderRadius}`)
|
|
1165
|
+
}, " ✖ ", 4)
|
|
1166
|
+
], 64)) : m("", !0)], 6),
|
|
1167
|
+
W.value.length > 10 ? (b(), h("div", Ft, [_(C(K.value.translations.totalRows) + " : " + C(e.dataset.body.length) + " | " + C(K.value.translations.paginatorLabel) + " : ", 1), W.value.length > 10 ? T((b(), h("select", {
|
|
1168
|
+
key: 0,
|
|
1169
|
+
id: "paginatorSelector",
|
|
1170
|
+
"onUpdate:modelValue": n[12] ||= (e) => yn.value = e,
|
|
1171
|
+
onChange: n[13] ||= (e) => {
|
|
1172
|
+
Z(), dr();
|
|
1173
|
+
},
|
|
1174
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border}`)
|
|
1175
|
+
}, [(b(!0), h(f, null, S(bn.value, (t, n) => (b(), h(f, null, [W.value.length > t || e.dataset.body.length === t ? (b(), h("option", { key: `paginator_option_${n}` }, C(t), 1)) : m("", !0)], 64))), 256))], 36)), [[
|
|
1176
|
+
de,
|
|
1177
|
+
yn.value,
|
|
1178
|
+
void 0,
|
|
1179
|
+
{ number: !0 }
|
|
1180
|
+
]]) : m("", !0)])) : m("", !0),
|
|
1181
|
+
yn.value >= 250 ? (b(), h("div", It, [g("span", { innerHTML: X.value.warning }, null, 8, Lt), _(C(K.value.translations.sizeWarning), 1)])) : m("", !0),
|
|
1182
|
+
J.value.length > 1 && J.value.length <= 10 ? (b(), h("div", {
|
|
1183
|
+
key: 3,
|
|
1184
|
+
class: "vue-ui-table-navigation-indicator",
|
|
1185
|
+
style: y(`background:${K.value.style.pagination.navigationIndicator.backgroundColor};width:calc(${j.value / (J.value.length - 1) * 100}%)`)
|
|
1186
|
+
}, null, 4)) : m("", !0),
|
|
1187
|
+
J.value.length > 1 ? (b(), h("div", Rt, [
|
|
1188
|
+
g("button", {
|
|
1189
|
+
class: "vue-ui-table-navigation",
|
|
1190
|
+
onClick: n[14] ||= ge((e) => pr("previous"), ["stop"]),
|
|
1191
|
+
innerHTML: X.value.chevronLeft,
|
|
1192
|
+
disabled: j.value === 0,
|
|
1193
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.pagination.buttons.backgroundColor};color:${K.value.style.pagination.buttons.color};opacity:${j.value === 0 ? K.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1194
|
+
}, null, 12, zt),
|
|
1195
|
+
J.value.length > 3 ? (b(), h(f, { key: 0 }, [
|
|
1196
|
+
g("button", {
|
|
1197
|
+
class: "vue-ui-table-navigation",
|
|
1198
|
+
onClick: n[15] ||= ge((e) => pr(1), ["stop"]),
|
|
1199
|
+
disabled: j.value === 0,
|
|
1200
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.pagination.buttons.backgroundColor};color:${K.value.style.pagination.buttons.color};opacity:${j.value === 0 ? K.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1201
|
+
}, " 1 ", 12, Bt),
|
|
1202
|
+
J.value.length > 10 ? (b(), h("div", {
|
|
1203
|
+
key: 0,
|
|
1204
|
+
class: "vue-ui-table-page-scroller-wrapper",
|
|
1205
|
+
style: y({ cursor: q.value ? "pointer" : "default" })
|
|
1206
|
+
}, [g("label", Vt, C(K.value.translations.page) + " " + C(j.value + 1) + " / " + C(J.value.length), 1), g("input", {
|
|
1207
|
+
class: "vue-ui-table-page-scroller",
|
|
1208
|
+
id: "pageScroller",
|
|
1209
|
+
type: "range",
|
|
1210
|
+
step: "1",
|
|
1211
|
+
min: 0,
|
|
1212
|
+
max: J.value.length - 1,
|
|
1213
|
+
onInput: n[16] ||= (e) => Er(e),
|
|
1214
|
+
value: j.value,
|
|
1215
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border};accent-color:${K.value.style.inputs.accentColor}`)
|
|
1216
|
+
}, null, 44, Ht)], 4)) : (b(), h("span", Ut, C(K.value.translations.page) + " " + C(j.value + 1) + " / " + C(J.value.length), 1)),
|
|
1217
|
+
g("button", {
|
|
1218
|
+
class: "vue-ui-table-navigation",
|
|
1219
|
+
onClick: n[17] ||= ge((e) => pr(J.value.length), ["stop"]),
|
|
1220
|
+
disabled: j.value === J.value.length - 1,
|
|
1221
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.pagination.buttons.backgroundColor};color:${K.value.style.pagination.buttons.color};opacity:${j.value === J.value.length - 1 ? K.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1222
|
+
}, C(J.value.length), 13, Wt)
|
|
1223
|
+
], 64)) : (b(), h(f, { key: 1 }, [_(C(K.value.translations.page) + " " + C(j.value + 1) + " / " + C(J.value.length), 1)], 64)),
|
|
1224
|
+
g("button", {
|
|
1225
|
+
class: "vue-ui-table-navigation",
|
|
1226
|
+
onClick: n[18] ||= ge((e) => pr("next"), ["stop"]),
|
|
1227
|
+
innerHTML: X.value.chevronRight,
|
|
1228
|
+
disabled: j.value === J.value.length - 1,
|
|
1229
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.pagination.buttons.backgroundColor};color:${K.value.style.pagination.buttons.color};opacity:${j.value === J.value.length - 1 ? K.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1230
|
+
}, null, 12, Gt)
|
|
1231
|
+
])) : m("", !0),
|
|
1232
|
+
oe(w(on), {
|
|
1233
|
+
ref_key: "chartModal",
|
|
1234
|
+
ref: Dr,
|
|
1235
|
+
backgroundColor: K.value.style.chart.modal.backgroundColor,
|
|
1236
|
+
headerColor: K.value.style.chart.modal.color,
|
|
1237
|
+
color: K.value.style.chart.modal.color,
|
|
1238
|
+
forcedHeight: 500,
|
|
1239
|
+
isCursorPointer: q.value,
|
|
1240
|
+
withPadding: "",
|
|
1241
|
+
withFullWidth: "",
|
|
1242
|
+
noLayerUpdate: "",
|
|
1243
|
+
onClose: n[23] ||= (e) => H.value = !1,
|
|
1244
|
+
onSize: qn
|
|
1245
|
+
}, {
|
|
1246
|
+
before: me(() => [g("div", Kt, [
|
|
1247
|
+
Vn.value.length ? (b(), h("button", {
|
|
1248
|
+
key: 0,
|
|
1249
|
+
onClick: n[19] ||= (e) => U.value = !0,
|
|
1250
|
+
innerHTML: X.value.donut,
|
|
1251
|
+
class: v({ "is-active-chart": O.value.type === k.value.DONUT || U.value }),
|
|
1252
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${O.value.type === k.value.DONUT || U.value ? K.value.style.chart.modal.buttons.selected.backgroundColor : K.value.style.chart.modal.buttons.unselected.backgroundColor};color:${O.value.type === k.value.DONUT || U.value ? K.value.style.chart.modal.buttons.selected.color : K.value.style.chart.modal.buttons.unselected.color}`)
|
|
1253
|
+
}, null, 14, qt)) : m("", !0),
|
|
1254
|
+
g("button", {
|
|
1255
|
+
onClick: n[20] ||= (e) => {
|
|
1256
|
+
O.value.type = k.value.LINE, U.value = !1;
|
|
1257
|
+
},
|
|
1258
|
+
innerHTML: X.value.chart,
|
|
1259
|
+
class: v({ "is-active-chart": O.value.type === k.value.LINE && !U.value }),
|
|
1260
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${O.value.type === k.value.LINE && !U.value ? K.value.style.chart.modal.buttons.selected.backgroundColor : K.value.style.chart.modal.buttons.unselected.backgroundColor};color:${O.value.type === k.value.LINE && !U.value ? K.value.style.chart.modal.buttons.selected.color : K.value.style.chart.modal.buttons.unselected.color}`)
|
|
1261
|
+
}, null, 14, Jt),
|
|
1262
|
+
g("button", {
|
|
1263
|
+
onClick: n[21] ||= (e) => {
|
|
1264
|
+
O.value.type = k.value.BAR, U.value = !1;
|
|
1265
|
+
},
|
|
1266
|
+
innerHTML: X.value.bar,
|
|
1267
|
+
class: v({ "is-active-chart": O.value.type === k.value.BAR && !U.value }),
|
|
1268
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${O.value.type === k.value.BAR && !U.value ? K.value.style.chart.modal.buttons.selected.backgroundColor : K.value.style.chart.modal.buttons.unselected.backgroundColor};color:${O.value.type === k.value.BAR && !U.value ? K.value.style.chart.modal.buttons.selected.color : K.value.style.chart.modal.buttons.unselected.color}`)
|
|
1269
|
+
}, null, 14, Yt)
|
|
1270
|
+
])]),
|
|
1271
|
+
content: me(() => [g("div", Xt, [
|
|
1272
|
+
U.value && Vn.value.length ? (b(), h("div", {
|
|
1273
|
+
key: 0,
|
|
1274
|
+
style: y(`background:${K.value.style.chart.modal.backgroundColor};color:${K.value.style.chart.modal.color}`)
|
|
1275
|
+
}, [g("fieldset", Zt, [
|
|
1276
|
+
g("legend", null, C(K.value.translations.chooseCategoryColumn), 1),
|
|
1277
|
+
g("div", Qt, [(b(!0), h(f, null, S(Vn.value, (e, t) => (b(), h("div", {
|
|
1278
|
+
key: `donut_radio_${t}`,
|
|
1279
|
+
class: "vue-ui-table-fieldset-option"
|
|
1280
|
+
}, [g("input", {
|
|
1281
|
+
type: "radio",
|
|
1282
|
+
name: e.name,
|
|
1283
|
+
id: e.name,
|
|
1284
|
+
checked: V.value && e.name === V.value.name,
|
|
1285
|
+
onInput: (e) => V.value = Vn.value[t],
|
|
1286
|
+
style: y(`background:${K.value.style.inputs.backgroundColor};color:${K.value.style.inputs.color};border:${K.value.style.inputs.border};accent-color:${K.value.style.inputs.accentColor}`)
|
|
1287
|
+
}, null, 44, $t), g("label", { for: e.name }, C(e.name), 9, en)]))), 128))]),
|
|
1288
|
+
g("button", {
|
|
1289
|
+
class: "vue-ui-table-generate-donut",
|
|
1290
|
+
disabled: !V.value,
|
|
1291
|
+
onClick: Yn,
|
|
1292
|
+
style: y(`cursor:${q.value ? "pointer" : "default"};background:${K.value.style.chart.modal.buttons.selected.backgroundColor};color:${K.value.style.chart.modal.buttons.selected.color}`)
|
|
1293
|
+
}, [g("div", {
|
|
1294
|
+
style: { "margin-bottom": "-3px" },
|
|
1295
|
+
innerHTML: X.value.donut
|
|
1296
|
+
}, null, 8, nn), _(" " + C(K.value.translations.makeDonut), 1)], 12, tn)
|
|
1297
|
+
])], 4)) : m("", !0),
|
|
1298
|
+
[k.value.BAR, k.value.LINE].includes(O.value.type) && !U.value ? (b(), h(f, { key: 1 }, [
|
|
1299
|
+
Rn.value.length > 1 ? (b(), h("label", {
|
|
1300
|
+
key: 0,
|
|
1301
|
+
style: y({ color: K.value.style.chart.modal.color })
|
|
1302
|
+
}, [_(C(K.value.translations.xAxisLabels) + " ", 1), T(g("select", { "onUpdate:modelValue": n[22] ||= (e) => wn.value = e }, [(b(!0), h(f, null, S(Rn.value, (e) => (b(), h("option", null, C(e), 1))), 256))], 512), [[de, wn.value]])], 4)) : m("", !0),
|
|
1303
|
+
g("div", rn, [O.value.type === k.value.LINE ? (b(), ae(ne, {
|
|
1304
|
+
key: `chart_line_${Cn.value}`,
|
|
1305
|
+
dataset: Jn.value.xyDatasetLine,
|
|
1306
|
+
config: Jn.value.xyConfig
|
|
1307
|
+
}, null, 8, ["dataset", "config"])) : m("", !0), O.value.type === k.value.BAR ? (b(), ae(ne, {
|
|
1308
|
+
key: `chart_bar_${Cn.value}`,
|
|
1309
|
+
dataset: Jn.value.xyDatasetBar,
|
|
1310
|
+
config: Jn.value.xyConfig
|
|
1311
|
+
}, null, 8, ["dataset", "config"])) : m("", !0)]),
|
|
1312
|
+
A.value.rows.length >= 2 ? (b(), h("div", {
|
|
1313
|
+
key: 1,
|
|
1314
|
+
class: "chart-trend",
|
|
1315
|
+
style: y(`color:${K.value.style.chart.modal.color}`)
|
|
1316
|
+
}, [n[33] ||= g("span", null, "---", -1), _(" Trend: " + C(w(s)({
|
|
1317
|
+
v: Jn.value.progression.trend * 100,
|
|
1318
|
+
s: "%",
|
|
1319
|
+
r: 1
|
|
1320
|
+
})), 1)], 4)) : m("", !0)
|
|
1321
|
+
], 64)) : m("", !0),
|
|
1322
|
+
[k.value.DONUT].includes(O.value.type) && !U.value ? (b(), h("div", an, [oe(d, {
|
|
1323
|
+
dataset: mn.value,
|
|
1324
|
+
config: Jn.value.donutConfig
|
|
1325
|
+
}, null, 8, ["dataset", "config"])])) : m("", !0)
|
|
1326
|
+
])]),
|
|
1327
|
+
_: 1
|
|
1328
|
+
}, 8, [
|
|
1329
|
+
"backgroundColor",
|
|
1330
|
+
"headerColor",
|
|
1331
|
+
"color",
|
|
1332
|
+
"isCursorPointer"
|
|
1333
|
+
])
|
|
1334
|
+
], 4));
|
|
1335
|
+
}
|
|
1336
|
+
}, [["__scopeId", "data-v-5db1d7a9"]]);
|
|
1337
|
+
//#endregion
|
|
1338
|
+
export { _e as n, on as t };
|