vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-hill.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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, At as n, C as r, D as i, Ht as a, It as o, X as s, Xt as c, d as l, q as ee, r as te } from "./lib-Dqr_-I6Y.js";
|
|
3
|
+
import { t as ne } from "./vue-ui-xy-5Te2TfRK.js";
|
|
4
|
+
import { n as re, t as ie } from "./useHints-Dq_w2E8B.js";
|
|
5
|
+
import { t as u } from "./useConfig-DwdGsXTx.js";
|
|
6
|
+
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
+
import { t as f } from "./BaseIcon-BbElSC8_.js";
|
|
8
|
+
import { t as ae } from "./vue-ui-donut-DZTtuFAG.js";
|
|
9
|
+
import { Fragment as p, computed as m, createBlock as oe, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as se, defineAsyncComponent as ce, nextTick as le, normalizeClass as y, normalizeStyle as b, onMounted as ue, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, useCssVars as de, vModelSelect as fe, vModelText as pe, watch as me, withCtx as he, withDirectives as E, withKeys as ge, withModifiers as _e } from "vue";
|
|
10
|
+
//#region src/components/vue-ui-table.vue
|
|
11
|
+
var ve = /* @__PURE__ */ e({ default: () => sn }), ye = ["innerHTML"], be = ["data-is-open"], xe = { class: "vue-ui-table-export-hub-options" }, Se = { class: "vue-ui-table-export-hub-option-wrapper" }, Ce = { class: "label" }, we = ["innerHTML"], Te = { class: "vue-ui-table-export-hub-option-wrapper" }, Ee = { class: "label" }, De = ["innerHTML"], Oe = { class: "vue-ui-table-dialog-field" }, ke = {
|
|
12
|
+
class: "label vue-ui-table-dialog-input-label",
|
|
13
|
+
style: { width: "100%" }
|
|
14
|
+
}, Ae = { style: { width: "fit-content" } }, je = { class: "vue-ui-table" }, Me = { key: 0 }, Ne = { key: 0 }, Pe = { key: 1 }, Fe = {
|
|
15
|
+
key: 0,
|
|
16
|
+
style: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
"align-items": "center",
|
|
19
|
+
"justify-content": "flex-end"
|
|
20
|
+
}
|
|
21
|
+
}, Ie = ["innerHTML"], Le = {
|
|
22
|
+
key: 0,
|
|
23
|
+
style: { "margin-left": "3px" }
|
|
24
|
+
}, Re = { key: 0 }, ze = { class: "th-filter" }, Be = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "th-date"
|
|
27
|
+
}, Ve = { class: "date-wrapper--inputs" }, He = { class: "date-fieldset" }, Ue = ["for"], We = [
|
|
28
|
+
"id",
|
|
29
|
+
"onUpdate:modelValue",
|
|
30
|
+
"onInput"
|
|
31
|
+
], Ge = { class: "date-fieldset" }, Ke = ["for"], qe = [
|
|
32
|
+
"id",
|
|
33
|
+
"onUpdate:modelValue",
|
|
34
|
+
"onInput"
|
|
35
|
+
], Je = { class: "date-wrapper--button" }, Ye = ["onClick"], Xe = ["innerHTML"], Ze = ["innerHTML"], Qe = ["innerHTML"], $e = ["onClick", "disabled"], et = [
|
|
36
|
+
"placeholder",
|
|
37
|
+
"onUpdate:modelValue",
|
|
38
|
+
"name"
|
|
39
|
+
], tt = ["onClick"], nt = ["innerHTML"], rt = ["innerHTML"], it = ["innerHTML"], at = ["onClick", "innerHTML"], ot = ["innerHTML"], st = {
|
|
40
|
+
key: 5,
|
|
41
|
+
class: "th-range-filter"
|
|
42
|
+
}, ct = ["for"], lt = [
|
|
43
|
+
"id",
|
|
44
|
+
"max",
|
|
45
|
+
"min",
|
|
46
|
+
"onUpdate:modelValue"
|
|
47
|
+
], ut = [
|
|
48
|
+
"id",
|
|
49
|
+
"max",
|
|
50
|
+
"min",
|
|
51
|
+
"onUpdate:modelValue"
|
|
52
|
+
], dt = ["for"], ft = ["onClick", "disabled"], pt = ["id"], mt = ["onClick"], ht = ["onClick", "onKeyup"], gt = [
|
|
53
|
+
"innerHTML",
|
|
54
|
+
"onClick",
|
|
55
|
+
"onKeyup"
|
|
56
|
+
], _t = ["data-row"], vt = ["data-row"], yt = [
|
|
57
|
+
"data-row",
|
|
58
|
+
"onClick",
|
|
59
|
+
"onKeyup",
|
|
60
|
+
"id"
|
|
61
|
+
], bt = ["innerHTML"], xt = { key: 1 }, St = { key: 2 }, Ct = { key: 5 }, wt = ["innerHTML"], Tt = { key: 0 }, Et = { style: { "margin-left": "12px" } }, Dt = { class: "format-num" }, Ot = { style: { "margin-left": "12px" } }, kt = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "format-num"
|
|
64
|
+
}, At = {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: "format-num"
|
|
67
|
+
}, jt = { key: 2 }, Mt = { style: { "margin-left": "12px" } }, Nt = {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "format-num"
|
|
70
|
+
}, Pt = {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "format-num"
|
|
73
|
+
}, Ft = { key: 2 }, It = {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "vue-ui-table-paginator format-num"
|
|
76
|
+
}, Lt = {
|
|
77
|
+
key: 2,
|
|
78
|
+
class: "vue-ui-table-size-warning"
|
|
79
|
+
}, Rt = ["innerHTML"], zt = {
|
|
80
|
+
key: 4,
|
|
81
|
+
class: "vue-ui-table-pagination format-num"
|
|
82
|
+
}, Bt = ["innerHTML", "disabled"], Vt = ["disabled"], Ht = {
|
|
83
|
+
for: "pageScroller",
|
|
84
|
+
style: { "font-size": "14px" }
|
|
85
|
+
}, Ut = ["max", "value"], Wt = { key: 1 }, Gt = ["disabled"], Kt = ["innerHTML", "disabled"], qt = { class: "vue-ui-table-chart-modal-options" }, Jt = ["innerHTML"], Yt = ["innerHTML"], Xt = ["innerHTML"], Zt = { style: {
|
|
86
|
+
width: "100%",
|
|
87
|
+
height: "fit-content"
|
|
88
|
+
} }, Qt = { class: "vue-ui-table-fieldset" }, $t = { class: "vue-ui-table-fieldset-wrapper" }, en = [
|
|
89
|
+
"name",
|
|
90
|
+
"id",
|
|
91
|
+
"checked",
|
|
92
|
+
"onInput"
|
|
93
|
+
], tn = ["for"], nn = ["disabled"], rn = ["innerHTML"], an = { style: {
|
|
94
|
+
width: "100%",
|
|
95
|
+
"margin-bottom": "12px"
|
|
96
|
+
} }, on = {
|
|
97
|
+
key: 2,
|
|
98
|
+
style: {
|
|
99
|
+
width: "100%",
|
|
100
|
+
"margin-bottom": "32px"
|
|
101
|
+
}
|
|
102
|
+
}, sn = /*#__PURE__*/ d({
|
|
103
|
+
__name: "vue-ui-table",
|
|
104
|
+
props: {
|
|
105
|
+
config: {
|
|
106
|
+
type: Object,
|
|
107
|
+
default() {
|
|
108
|
+
return {};
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
dataset: {
|
|
112
|
+
type: Object,
|
|
113
|
+
default() {
|
|
114
|
+
return {};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
emits: ["page-change"],
|
|
119
|
+
setup(e, { expose: d, emit: ve }) {
|
|
120
|
+
de((e) => ({
|
|
121
|
+
d1121f2a: kn.value,
|
|
122
|
+
f2e08f04: An.value,
|
|
123
|
+
v7663b4a0: Pn.value,
|
|
124
|
+
v17c31306: jn.value,
|
|
125
|
+
v7dc13a5c: Fn.value,
|
|
126
|
+
v76f5497a: In.value,
|
|
127
|
+
fa998e08: Mn.value,
|
|
128
|
+
v4d3bc194: Nn.value,
|
|
129
|
+
v42ae93a6: Ln.value
|
|
130
|
+
}));
|
|
131
|
+
let sn = ce(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), D = e, cn = ve, { vue_ui_table: ln } = u(), O = ee();
|
|
132
|
+
S(null);
|
|
133
|
+
let un = S(null), dn = S(null), k = S({
|
|
134
|
+
height: 316,
|
|
135
|
+
type: "bar",
|
|
136
|
+
width: 512
|
|
137
|
+
}), A = S({
|
|
138
|
+
ASC: 1,
|
|
139
|
+
BAR: "bar",
|
|
140
|
+
DATE: "date",
|
|
141
|
+
DESC: -1,
|
|
142
|
+
DONUT: "donut",
|
|
143
|
+
LINE: "line",
|
|
144
|
+
NUMERIC: "numeric",
|
|
145
|
+
PERCENTAGE: "percentage",
|
|
146
|
+
TEXT: "text"
|
|
147
|
+
}), fn = S(100), pn = S(100);
|
|
148
|
+
S(0), S(0), S(400), S(200);
|
|
149
|
+
let mn = S({
|
|
150
|
+
CELL: "smart-td-selected",
|
|
151
|
+
FIRST_TD: "smart-td-selected-first",
|
|
152
|
+
LAST_TD: "smart-td-selected-last",
|
|
153
|
+
ROW: "smart-td-selected-neighbor"
|
|
154
|
+
}), hn = S(void 0), gn = S(void 0), j = S({
|
|
155
|
+
col: void 0,
|
|
156
|
+
rows: []
|
|
157
|
+
}), M = S(0), N = S(20), _n = S(!1), vn = S(!1), P = S({}), F = S({}), yn = S({}), I = S({}), L = S({}), R = S({}), z = S({}), B = S({}), V = S({}), bn = S(D.config.rowsPerPage ? D.config.rowsPerPage : 25), xn = S([.../* @__PURE__ */ new Set([
|
|
158
|
+
10,
|
|
159
|
+
25,
|
|
160
|
+
50,
|
|
161
|
+
100,
|
|
162
|
+
250,
|
|
163
|
+
500,
|
|
164
|
+
D.config.rowsPerPage ? D.config.rowsPerPage : 25,
|
|
165
|
+
D.dataset.body.length
|
|
166
|
+
])].sort((e, t) => e - t)), Sn = S(void 0), H = S(void 0), Cn = S(void 0), U = S(!1), wn = S(0), Tn = S(""), En = S(""), W = S(!1), G = S(JSON.parse(JSON.stringify(D.dataset.body)).map((e, t) => ({
|
|
167
|
+
...e,
|
|
168
|
+
absoluteIndex: t
|
|
169
|
+
}))), Dn = S(JSON.parse(JSON.stringify(D.dataset.body)).map((e, t) => ({
|
|
170
|
+
...e,
|
|
171
|
+
absoluteIndex: t
|
|
172
|
+
}))), K = S(JSON.parse(JSON.stringify(D.dataset.header)).map((e, t) => ({
|
|
173
|
+
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
174
|
+
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
175
|
+
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
176
|
+
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
177
|
+
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
178
|
+
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
179
|
+
name: e.name,
|
|
180
|
+
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
181
|
+
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
182
|
+
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
183
|
+
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
184
|
+
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
185
|
+
type: e.type,
|
|
186
|
+
index: t
|
|
187
|
+
}))), On = m(() => un.value ? un.value.getBoundingClientRect().height + 3 : 3), q = m(() => {
|
|
188
|
+
if (!Object.keys(D.config || {}).length) return ln;
|
|
189
|
+
let e = c({
|
|
190
|
+
defaultConfig: ln,
|
|
191
|
+
userConfig: D.config
|
|
192
|
+
});
|
|
193
|
+
return r(e);
|
|
194
|
+
});
|
|
195
|
+
re({
|
|
196
|
+
config: () => q.value,
|
|
197
|
+
dataset: () => D.dataset,
|
|
198
|
+
component: "VueUiTable",
|
|
199
|
+
rules: [ie.noHint]
|
|
200
|
+
});
|
|
201
|
+
let J = m(() => q.value.useCursorPointer), kn = m(() => q.value.style.th.buttons.cancel.inactive.backgroundColor), An = m(() => q.value.style.th.buttons.cancel.inactive.color), jn = m(() => q.value.style.th.buttons.cancel.active.backgroundColor), Mn = m(() => q.value.style.th.buttons.filter.active.backgroundColor), Nn = m(() => q.value.style.th.buttons.filter.active.color), Pn = m(() => n(jn.value, .33)), Fn = m(() => a(jn.value, 33)), In = m(() => n(Mn.value, .33)), Ln = m(() => a(Mn, 33)), Rn = m(() => [...K.value].filter((e) => e.type === A.value.DATE)), zn = m(() => ["", ...Rn.value.map((e) => e.name)]), Bn = m(() => {
|
|
202
|
+
let e = Rn.value.find((e) => e.name === Tn.value);
|
|
203
|
+
return e ? e.index : null;
|
|
204
|
+
}), Y = m(() => {
|
|
205
|
+
let e = [];
|
|
206
|
+
if (G.value.length) for (let t = 0; t < G.value.length; t += bn.value) e.push(G.value.slice(t, t + bn.value));
|
|
207
|
+
return e;
|
|
208
|
+
}), Vn = m(() => Y.value[M.value]), Hn = m(() => Bn.value == null ? [] : Vn.value.map((e) => e.td[Bn.value])), Un = m(() => Object.keys(L.value).map((e) => ({
|
|
209
|
+
index: e,
|
|
210
|
+
name: D.dataset.header[e].name,
|
|
211
|
+
options: L.value[e]
|
|
212
|
+
}))), Wn = m(() => q.value.useChart && j.value.rows.length > 1), Gn = m(() => D.dataset.header.map((e) => e.type).includes(A.value.NUMERIC)), X = m(() => ({
|
|
213
|
+
arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
214
|
+
bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
215
|
+
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
216
|
+
chevronDown: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
217
|
+
chevronLeft: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value * 1.6}" height="${N.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>`,
|
|
218
|
+
chevronRight: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value * 1.6}" height="${N.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>`,
|
|
219
|
+
donut: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value * .8}" height="${N.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>`,
|
|
220
|
+
export: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
221
|
+
fileDownload: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
222
|
+
filter: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
223
|
+
move: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
224
|
+
sort09: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
225
|
+
sort90: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
226
|
+
sortAZ: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
227
|
+
sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
228
|
+
sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
229
|
+
table: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`,
|
|
230
|
+
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value * .8}" height="${N.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>`,
|
|
231
|
+
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${N.value}" height="${N.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>`
|
|
232
|
+
})), Kn = m(() => G.value.map((e) => e.td)), qn = m(() => ({
|
|
233
|
+
sumPercentage: Number((j.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(D.dataset.header[j.value.col].decimals)).toLocaleString(),
|
|
234
|
+
sumRegular: Number(j.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(D.dataset.header[j.value.col].decimals)).toLocaleString(),
|
|
235
|
+
averagePercentage: Number((j.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / j.value.rows.length * 100).toFixed(D.dataset.header[j.value.col].decimals)).toLocaleString(),
|
|
236
|
+
averageRegular: Number((j.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / j.value.rows.length).toFixed(D.dataset.header[j.value.col].decimals)).toLocaleString()
|
|
237
|
+
})), Jn = S({
|
|
238
|
+
width: 1e3,
|
|
239
|
+
height: 500
|
|
240
|
+
});
|
|
241
|
+
function Yn({ width: e, height: t }) {
|
|
242
|
+
Jn.value = {
|
|
243
|
+
width: e,
|
|
244
|
+
height: t
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
let Xn = m(() => {
|
|
248
|
+
if (!Wn.value) return [];
|
|
249
|
+
let e = Jn.value.height, t = Jn.value.width, r = t / j.value.rows.length, i = Math.max(...j.value.rows.map((e) => e.value)), a = Math.min(...j.value.rows.map((e) => e.value)), o = D.dataset.header[j.value.col].isPercentage && D.dataset.header[j.value.col].percentageTo, s = k.value.type === A.value.DONUT && H.value && H.value.name, c = D.dataset.header[j.value.col].name + (o ? ` / ${D.dataset.header[R.value[j.value.col].referenceIndex].name}` : "") + (s ? ` ${q.value.translations.by} ${H.value.name}` : ""), ee = D.dataset.header[j.value.col].prefix, ne = D.dataset.header[j.value.col].suffix, re = [{
|
|
250
|
+
name: c,
|
|
251
|
+
series: j.value.rows.map((e) => e.value),
|
|
252
|
+
type: "line",
|
|
253
|
+
useProgression: !0,
|
|
254
|
+
smooth: q.value.style.chart.layout.line.smooth,
|
|
255
|
+
color: q.value.style.chart.layout.line.stroke,
|
|
256
|
+
useArea: q.value.style.chart.layout.line.useArea
|
|
257
|
+
}], ie = [{
|
|
258
|
+
name: c,
|
|
259
|
+
series: j.value.rows.map((e) => e.value),
|
|
260
|
+
type: "bar",
|
|
261
|
+
useProgression: !0,
|
|
262
|
+
color: q.value.style.chart.layout.bar.fill
|
|
263
|
+
}], u = q.value.style.chart.modal.backgroundColor, d = te(u), f = D.dataset.header[j.value.col].decimals, ae = {
|
|
264
|
+
useCssAnimation: !1,
|
|
265
|
+
chart: {
|
|
266
|
+
width: t,
|
|
267
|
+
height: e - 250,
|
|
268
|
+
backgroundColor: u,
|
|
269
|
+
color: d,
|
|
270
|
+
labels: {
|
|
271
|
+
fontSize: 18,
|
|
272
|
+
prefix: ee,
|
|
273
|
+
suffix: ne
|
|
274
|
+
},
|
|
275
|
+
grid: {
|
|
276
|
+
stroke: n(d, .5),
|
|
277
|
+
labels: {
|
|
278
|
+
color: d,
|
|
279
|
+
xAxisLabels: {
|
|
280
|
+
color: d,
|
|
281
|
+
show: Hn.value.length,
|
|
282
|
+
values: Hn.value,
|
|
283
|
+
datetimeFormatter: q.value.style.chart.layout.datetimeFormatter,
|
|
284
|
+
showOnlyAtModulo: q.value.style.chart.layout.timeLabels.showOnlyAtModulo,
|
|
285
|
+
modulo: q.value.style.chart.layout.timeLabels.modulo
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
highlighter: { color: d },
|
|
290
|
+
legend: {
|
|
291
|
+
color: d,
|
|
292
|
+
show: !1
|
|
293
|
+
},
|
|
294
|
+
title: {
|
|
295
|
+
text: c,
|
|
296
|
+
color: d,
|
|
297
|
+
textAlign: "center",
|
|
298
|
+
fontSize: 18
|
|
299
|
+
},
|
|
300
|
+
tooltip: {
|
|
301
|
+
showTimeLabel: Hn.value.length,
|
|
302
|
+
backgroundOpacity: 30,
|
|
303
|
+
color: d,
|
|
304
|
+
backgroundColor: u,
|
|
305
|
+
showPercentage: !1,
|
|
306
|
+
roundingValue: f
|
|
307
|
+
},
|
|
308
|
+
userOptions: { buttons: {
|
|
309
|
+
pdf: !1,
|
|
310
|
+
csv: !1,
|
|
311
|
+
table: !1,
|
|
312
|
+
annotator: !1
|
|
313
|
+
} },
|
|
314
|
+
zoom: {
|
|
315
|
+
show: q.value.style.chart.layout.zoom.show,
|
|
316
|
+
autoFit: q.value.style.chart.layout.zoom.autoFit,
|
|
317
|
+
focusOnDrag: !0,
|
|
318
|
+
minimap: { show: !0 }
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
line: {
|
|
322
|
+
labels: {
|
|
323
|
+
show: !0,
|
|
324
|
+
color: d,
|
|
325
|
+
rounding: f
|
|
326
|
+
},
|
|
327
|
+
dot: {
|
|
328
|
+
useSerieColor: !1,
|
|
329
|
+
fill: q.value.style.chart.layout.line.plot.fill,
|
|
330
|
+
strokeWidth: q.value.style.chart.layout.line.plot.strokeWidth
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
bar: {
|
|
334
|
+
useGradient: !1,
|
|
335
|
+
border: {
|
|
336
|
+
useSerieColor: !1,
|
|
337
|
+
stroke: q.value.style.chart.layout.bar.stroke,
|
|
338
|
+
strokeWidth: q.value.style.chart.layout.bar.strokeWidth
|
|
339
|
+
},
|
|
340
|
+
labels: {
|
|
341
|
+
show: !0,
|
|
342
|
+
color: d,
|
|
343
|
+
rounding: f
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}, p = a >= 0 ? 0 : Math.abs(a), m = i + p, oe = D.dataset.header[j.value.col].isPercentage, h = j.value.rows.map((t, n) => ({
|
|
347
|
+
x: r * n + r / 2,
|
|
348
|
+
y: (1 - (t.value + p) / m) * e,
|
|
349
|
+
value: oe ? t.value * 100 : t.value,
|
|
350
|
+
suffix: oe ? "%" : D.dataset.header[j.value.col].suffix ? D.dataset.header[j.value.col].suffix : "",
|
|
351
|
+
prefix: D.dataset.header[j.value.col].prefix ? D.dataset.header[j.value.col].prefix : "",
|
|
352
|
+
index: t.index,
|
|
353
|
+
absoluteValue: oe ? Math.abs(t.value) * 100 : Math.abs(t.value)
|
|
354
|
+
}));
|
|
355
|
+
return {
|
|
356
|
+
donutConfig: {
|
|
357
|
+
useCssAnimation: !1,
|
|
358
|
+
userOptions: {
|
|
359
|
+
position: "left",
|
|
360
|
+
buttons: {
|
|
361
|
+
pdf: !1,
|
|
362
|
+
csv: !1,
|
|
363
|
+
table: !1,
|
|
364
|
+
annotator: !1
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
style: { chart: {
|
|
368
|
+
backgroundColor: u,
|
|
369
|
+
color: d,
|
|
370
|
+
layout: {
|
|
371
|
+
curvedMarkers: !0,
|
|
372
|
+
donut: { strokeWidth: 64 },
|
|
373
|
+
labels: {
|
|
374
|
+
dataLabels: {
|
|
375
|
+
suffix: oe ? "%" : "",
|
|
376
|
+
prefix: ee
|
|
377
|
+
},
|
|
378
|
+
value: { rounding: f },
|
|
379
|
+
percentage: {
|
|
380
|
+
color: d,
|
|
381
|
+
rounding: f
|
|
382
|
+
},
|
|
383
|
+
name: { color: d },
|
|
384
|
+
hollow: {
|
|
385
|
+
average: {
|
|
386
|
+
color: d,
|
|
387
|
+
text: q.value.translations.average,
|
|
388
|
+
value: { color: d }
|
|
389
|
+
},
|
|
390
|
+
total: {
|
|
391
|
+
color: d,
|
|
392
|
+
offsetY: -12,
|
|
393
|
+
text: q.value.translations.total,
|
|
394
|
+
value: {
|
|
395
|
+
color: d,
|
|
396
|
+
offsetY: -12
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
legend: {
|
|
403
|
+
backgroundColor: u,
|
|
404
|
+
color: d,
|
|
405
|
+
roundingValue: f,
|
|
406
|
+
roundingPercentage: f
|
|
407
|
+
},
|
|
408
|
+
padding: {
|
|
409
|
+
left: 12,
|
|
410
|
+
right: 12
|
|
411
|
+
},
|
|
412
|
+
title: {
|
|
413
|
+
text: c,
|
|
414
|
+
color: d,
|
|
415
|
+
fontSize: 18
|
|
416
|
+
},
|
|
417
|
+
tooltip: {
|
|
418
|
+
backgroundOpacity: 30,
|
|
419
|
+
color: d,
|
|
420
|
+
backgroundColor: u,
|
|
421
|
+
roundingValue: f,
|
|
422
|
+
roundingValue: f
|
|
423
|
+
}
|
|
424
|
+
} }
|
|
425
|
+
},
|
|
426
|
+
xyConfig: ae,
|
|
427
|
+
xyDatasetLine: re,
|
|
428
|
+
xyDatasetBar: ie,
|
|
429
|
+
progression: h.length >= 2 && l(h)
|
|
430
|
+
};
|
|
431
|
+
});
|
|
432
|
+
function Zn() {
|
|
433
|
+
let e = H.value.options.map((e, t) => ({
|
|
434
|
+
name: e,
|
|
435
|
+
color: o[t] || o[t % o.length],
|
|
436
|
+
values: [Vn.value.filter((t, n) => t.td[H.value.index] === e && j.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[j.value.col]).reduce((e, t) => Math.abs(e) + Math.abs(t), 0)],
|
|
437
|
+
absoluteValue: Vn.value.filter((t, n) => t.td[H.value.index] === e && j.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[j.value.col]).reduce((e, t) => e + t, 0)
|
|
438
|
+
})).sort((e, t) => t.value - e.value);
|
|
439
|
+
hn.value = e, le(() => {
|
|
440
|
+
k.value.type = A.value.DONUT, W.value = !1;
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
function Qn(e, t) {
|
|
444
|
+
return !F.value[e] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![A.value.DATE].includes(t.type);
|
|
445
|
+
}
|
|
446
|
+
function $n(e = "all") {
|
|
447
|
+
let n = D.dataset.header.map((e) => e.name), r = e === "all" ? G.value.map((e) => e.td) : Vn.value.map((e) => e.td), a = [n].concat(r), o = i(a);
|
|
448
|
+
t({
|
|
449
|
+
csvContent: o,
|
|
450
|
+
title: En.value
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
function er() {
|
|
454
|
+
let e = document.getElementsByClassName("th-dropdown");
|
|
455
|
+
e.length && Array.from(e).forEach((e) => {
|
|
456
|
+
e.dataset.isOpen = !1;
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function tr(e, t) {
|
|
460
|
+
let n;
|
|
461
|
+
clearTimeout(n), n = setTimeout(e, t);
|
|
462
|
+
}
|
|
463
|
+
function Z() {
|
|
464
|
+
let e = document.getElementsByClassName(`tr_${O}`);
|
|
465
|
+
Array.from(e).forEach((e) => {
|
|
466
|
+
Array.from(e.getElementsByTagName("td")).forEach((e) => {
|
|
467
|
+
e.dataset.row === "even" ? (e.style.background = q.value.style.rows.even.backgroundColor, e.style.color = q.value.style.rows.even.color) : (e.style.background = q.value.style.rows.odd.backgroundColor, e.style.color = q.value.style.rows.odd.color);
|
|
468
|
+
});
|
|
469
|
+
}), Array.from(e).forEach((e) => e.dataset.selected = "false"), M.value > Y.value.length - 1 && (M.value = Y.value.length - 1), U.value = !1, hn.value = void 0, Sn.value = void 0, k.value.type = A.value.BAR, j.value = {
|
|
470
|
+
col: void 0,
|
|
471
|
+
rows: []
|
|
472
|
+
}, fn.value = 100, pn.value = 100;
|
|
473
|
+
}
|
|
474
|
+
function nr(e, t) {
|
|
475
|
+
G.value = e.filter((e) => e.td[t] >= z.value[t].min && e[t] <= z.value[t].max);
|
|
476
|
+
}
|
|
477
|
+
function rr(e, t) {
|
|
478
|
+
if (V.value[t] === A.value.ASC && (e = e.sort((e, n) => e[t] - n[t])), V.value[t] === A.value.DESC) e = e.sort((e, n) => n[t] - e[t]);
|
|
479
|
+
else return 0;
|
|
480
|
+
}
|
|
481
|
+
function ir() {
|
|
482
|
+
Z(), Object.keys(z.value).forEach((e) => {
|
|
483
|
+
nr(G.value, e);
|
|
484
|
+
}), Object.keys(V.value).forEach((e) => {
|
|
485
|
+
rr(G.value, e);
|
|
486
|
+
}), gn.value !== void 0 && rr(G.value, gn.value), D.dataset.header.forEach((e, t) => {
|
|
487
|
+
if (e.isPercentage) {
|
|
488
|
+
let e = R.value[t].referenceIndex, n = G.value.map((t) => t.td[e]).reduce((e, t) => e + t, 0);
|
|
489
|
+
G.value.forEach((r) => {
|
|
490
|
+
r.td[t] = r.td[e] / n;
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}), M.value > Y.value.length - 1 && (M.value = Y.value.length - 1), [-1].includes(M.value) && (M.value = 0);
|
|
494
|
+
}
|
|
495
|
+
function Q() {
|
|
496
|
+
G.value = Dn.value.filter((e) => {
|
|
497
|
+
for (let t in B.value) if (!e.td[t].toUpperCase().includes(B.value[t].toUpperCase())) return !1;
|
|
498
|
+
for (let t in L.value) if (!L.value[t].some((n) => n === e.td[t])) return !1;
|
|
499
|
+
for (let t in P.value) {
|
|
500
|
+
let n = new Date(e.td[t]), r = new Date(P.value[t].from), i = new Date(P.value[t].to);
|
|
501
|
+
if (n < r || n > i) return !1;
|
|
502
|
+
}
|
|
503
|
+
return !0;
|
|
504
|
+
}), ir();
|
|
505
|
+
}
|
|
506
|
+
function ar(e) {
|
|
507
|
+
return Kn.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0) / G.value.length;
|
|
508
|
+
}
|
|
509
|
+
function or(e) {
|
|
510
|
+
let t = D.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");
|
|
511
|
+
return {
|
|
512
|
+
from: `${i}-${o}-${c}`,
|
|
513
|
+
to: `${a}-${s}-${l}`
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
function $(e) {
|
|
517
|
+
return [...new Set(D.dataset.body.map((t) => t.td[e]))];
|
|
518
|
+
}
|
|
519
|
+
function sr(e) {
|
|
520
|
+
return Kn.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0);
|
|
521
|
+
}
|
|
522
|
+
function cr(e) {
|
|
523
|
+
return e.includes(NaN);
|
|
524
|
+
}
|
|
525
|
+
function lr(e, t) {
|
|
526
|
+
return !L.value[t] || L.value[t].includes(e);
|
|
527
|
+
}
|
|
528
|
+
function ur(e) {
|
|
529
|
+
return !isNaN(Number(String(e).replaceAll("%", "")));
|
|
530
|
+
}
|
|
531
|
+
function dr(e, t) {
|
|
532
|
+
let n = t.isSort, r = t.isSearch, i = t.isMultiselect && L.value[e], a = t.rangeFilter, o = (e) => {
|
|
533
|
+
if (a && z.value[e]) return Math.round(z.value[e].min) === I.value[e].min && Math.round(z.value[e].max) === I.value[e].max;
|
|
534
|
+
};
|
|
535
|
+
if (n && r && i && a) return ["", void 0].includes(B.value[e]) && [void 0].includes(V.value[e]) && L.value[e].length === $(e).length && o(e);
|
|
536
|
+
if (n && r && i) return ["", void 0].includes(B.value[e]) && [void 0].includes(V.value[e]) && L.value[e].length === $(e).length;
|
|
537
|
+
if (n && r && a) return ["", void 0].includes(B.value[e]) && [void 0].includes(V.value[e]) && o(e);
|
|
538
|
+
if (n && r) return ["", void 0].includes(B.value[e]) && [void 0].includes(V.value[e]);
|
|
539
|
+
if (n && i && a) return [void 0].includes(V.value[e]) && L.value[e].length === $(e).length && o(e);
|
|
540
|
+
if (n && i) return [void 0].includes(V.value[e]) && L.value[e].length === $(e).length;
|
|
541
|
+
if (r && i && a) return ["", void 0].includes(B.value[e]) && L.value[e].length === $(e).length && o(e);
|
|
542
|
+
if (r && i) return ["", void 0].includes(B.value[e]) && L.value[e].length === $(e).length;
|
|
543
|
+
if (r && a) return ["", void 0].includes(B.value[e]) && o(e);
|
|
544
|
+
if (r) return ["", void 0].includes(B.value[e]);
|
|
545
|
+
if (n && a) return [void 0].includes(V.value[e]) && o(e);
|
|
546
|
+
if (n) return [void 0].includes(V.value[e]);
|
|
547
|
+
if (i && a) return L.value[e].length === $(e).length && o(e);
|
|
548
|
+
if (i) return L.value[e].length === $(e).length;
|
|
549
|
+
}
|
|
550
|
+
function fr() {
|
|
551
|
+
return {
|
|
552
|
+
totalPages: Y.value.length,
|
|
553
|
+
itemsPerPage: bn.value,
|
|
554
|
+
currentPage: M.value,
|
|
555
|
+
currentPageData: Vn.value.map((e) => e.td)
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
d({ getCurrentPageData: fr });
|
|
559
|
+
function pr() {
|
|
560
|
+
cn("page-change", fr());
|
|
561
|
+
}
|
|
562
|
+
let mr = S(null);
|
|
563
|
+
function hr(e) {
|
|
564
|
+
if (Z(), e === "next" && M.value < Y.value.length) {
|
|
565
|
+
if (M.value + 1 > Y.value.length - 1) return;
|
|
566
|
+
M.value += 1;
|
|
567
|
+
} else if (e === "previous" && M.value >= 1) --M.value;
|
|
568
|
+
else {
|
|
569
|
+
if (e - 1 < 0 || e > Y.value.length || e === "previous") return;
|
|
570
|
+
M.value = e - 1;
|
|
571
|
+
}
|
|
572
|
+
pr(), mr.value && mr.value.scrollTo({
|
|
573
|
+
top: 0,
|
|
574
|
+
left: 0,
|
|
575
|
+
behavior: "smooth"
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
function gr(e) {
|
|
579
|
+
e.preventDefault();
|
|
580
|
+
let t = e.keyCode;
|
|
581
|
+
if (![
|
|
582
|
+
38,
|
|
583
|
+
40,
|
|
584
|
+
37,
|
|
585
|
+
39
|
|
586
|
+
].includes(t)) return;
|
|
587
|
+
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}_${O}`), o = document.getElementById(`cell_${r}_${i - 1}_${O}`), s = document.getElementById(`cell_${r + 1}_${i}_${O}`), c = document.getElementById(`cell_${r - 1}_${i}_${O}`), l;
|
|
588
|
+
switch (!0) {
|
|
589
|
+
case t === 39:
|
|
590
|
+
l = a;
|
|
591
|
+
break;
|
|
592
|
+
case t === 37:
|
|
593
|
+
l = o;
|
|
594
|
+
break;
|
|
595
|
+
case t === 38:
|
|
596
|
+
l = c;
|
|
597
|
+
break;
|
|
598
|
+
case t === 40:
|
|
599
|
+
l = s;
|
|
600
|
+
break;
|
|
601
|
+
default: return;
|
|
602
|
+
}
|
|
603
|
+
l && (l.focus(), l.scrollIntoView({
|
|
604
|
+
behavior: "smooth",
|
|
605
|
+
block: "center"
|
|
606
|
+
}));
|
|
607
|
+
}
|
|
608
|
+
function _r(e) {
|
|
609
|
+
let t = 0;
|
|
610
|
+
for (let n = 0; n < e.length; n += 1) t += e.charCodeAt(n);
|
|
611
|
+
return t;
|
|
612
|
+
}
|
|
613
|
+
async function vr() {
|
|
614
|
+
return new Promise((e) => {
|
|
615
|
+
let t = [];
|
|
616
|
+
K.value.forEach((e, n) => {
|
|
617
|
+
if (e.isSearch && Object.assign(B.value, { [n]: "" }), e.isMultiselect && Object.assign(L.value, { [n]: $(n) }), e.type === A.value.DATE && (Object.assign(P.value, { [n]: or(n) }), Object.assign(yn.value, { [n]: !1 })), (e.isPercentage || e.percentageTo) && Object.assign(R.value, { [n]: {
|
|
618
|
+
reference: e.percentageTo,
|
|
619
|
+
referenceIndex: D.dataset.header.map((e) => e.name).indexOf(e.percentageTo)
|
|
620
|
+
} }), e.rangeFilter && (Object.assign(z.value, { [n]: {
|
|
621
|
+
min: Math.round(Math.min(...D.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
622
|
+
max: Math.round(Math.max(...D.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
623
|
+
} }), Object.assign(I.value, { [n]: {
|
|
624
|
+
min: Math.round(Math.min(...D.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
625
|
+
max: Math.round(Math.max(...D.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
626
|
+
} })), e.isPercentage) {
|
|
627
|
+
let r = D.dataset.header.map((e) => e.name).indexOf(e.percentageTo), i = D.dataset.body.map((e) => e.td[r]).reduce((e, t) => e + t, 0);
|
|
628
|
+
t.push([
|
|
629
|
+
n,
|
|
630
|
+
r,
|
|
631
|
+
i
|
|
632
|
+
]);
|
|
633
|
+
}
|
|
634
|
+
e.type === A.value.NUMERIC && !e.isPercentage && Object.assign(F.value, { [n]: cr(D.dataset.body.map((e) => Number(e.td[n]))) });
|
|
635
|
+
}), G.value.forEach((e, n) => {
|
|
636
|
+
t.map((t) => {
|
|
637
|
+
let [n, r, i] = t;
|
|
638
|
+
e.td[n] = e.td[r] / i;
|
|
639
|
+
}), e.td.forEach((t, r) => {
|
|
640
|
+
D.dataset.header[r].type === A.value.TEXT && D.dataset.header[r].isSearch && (e[r] = _r(t)), D.dataset.header[r].type === A.value.DATE && (e[r] = new Date(t).getTime()), D.dataset.header[r].type === A.value.NUMERIC && (e[r] = isNaN(Number(t)) ? r : t), Dn.value[n][r] = e[r];
|
|
641
|
+
});
|
|
642
|
+
}), e(!0);
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
function yr(e, t) {
|
|
646
|
+
return new Promise((n, r) => {
|
|
647
|
+
e().then((e) => {
|
|
648
|
+
try {
|
|
649
|
+
n(t(e));
|
|
650
|
+
} catch (e) {
|
|
651
|
+
r(e);
|
|
652
|
+
}
|
|
653
|
+
}).catch((e) => {
|
|
654
|
+
r(e);
|
|
655
|
+
});
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
async function br(e) {
|
|
659
|
+
P.value[e] = {
|
|
660
|
+
from: or(e).from,
|
|
661
|
+
to: or(e).to
|
|
662
|
+
}, yn.value[e] = !1, await le(), Q();
|
|
663
|
+
}
|
|
664
|
+
function xr(e, t, n) {
|
|
665
|
+
let r = n.currentTarget;
|
|
666
|
+
clearTimeout(dn.value), r.classList.add("clicked"), dn.value = setTimeout(() => {
|
|
667
|
+
r.classList.remove("clicked");
|
|
668
|
+
}, 200), gn.value = void 0, t.rangeFilter && (z.value[e].min = I.value[e].min, z.value[e].max = I.value[e].max), t.isMultiselect ? (L.value[e] = $(e), t.type === A.value.TEXT && (V.value[e] = void 0), t.isSearch && (B.value[e] = "")) : t.type === A.value.NUMERIC ? V.value[e] = void 0 : t.type === A.value.TEXT ? (V.value[e] = void 0, B.value[e] = "") : t.type === A.value.DATE && (V.value[e] = void 0), Q();
|
|
669
|
+
}
|
|
670
|
+
function Sr({ td: e, rowIndex: t, colIndex: n, headerType: r, event: i }) {
|
|
671
|
+
if (r !== A.value.NUMERIC || isNaN(Number(e))) {
|
|
672
|
+
Z();
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
j.value.col !== n && Z();
|
|
676
|
+
let a = i.currentTarget.parentNode;
|
|
677
|
+
j.value.col = n, j.value.rows.map((e) => e.index).includes(t) ? (a.dataset.selected = "false", j.value.rows = j.value.rows.filter((e) => e.index !== t), i.currentTarget.classList.remove(mn.value.CELL), Array.from(a.children).forEach((e, t) => {
|
|
678
|
+
e.dataset.row === "even" ? (e.style.background = q.value.style.rows.even.backgroundColor, e.style.color = q.value.style.rows.even.olor) : (e.style.background = q.value.style.rows.odd.backgroundColor, e.style.color = q.value.style.rows.odd.color);
|
|
679
|
+
}), i.currentTarget.dataset.row === "even" ? (i.currentTarget.style.background = q.value.style.rows.even.backgroundColor, i.currentTarget.style.color = q.value.style.rows.even.color) : (i.currentTarget.style.background = q.value.style.rows.odd.backgroundColor, i.currentTarget.style.color = q.value.style.rows.odd.color)) : (a.dataset.selected = "true", j.value.rows.push({
|
|
680
|
+
index: t,
|
|
681
|
+
value: e
|
|
682
|
+
}), Array.from(a.children).forEach((e, t) => {
|
|
683
|
+
e.dataset.row === "even" ? (e.style.background = q.value.style.rows.even.selectedNeighbors.backgroundColor, e.style.color = q.value.style.rows.even.selectedNeighbors.color) : (e.style.background = q.value.style.rows.odd.selectedNeighbors.backgroundColor, e.style.color = q.value.style.rows.odd.selectedNeighbors.color);
|
|
684
|
+
}), i.currentTarget.dataset.row === "odd" ? (i.currentTarget.style.background = q.value.style.rows.odd.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.style.rows.odd.selectedCell.color) : (i.currentTarget.style.background = q.value.style.rows.even.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.style.rows.even.selectedCell.color)), j.value.rows = j.value.rows.sort((e, t) => e.index - t.index), k.value.type === A.value.DONUT && j.value.rows.length > 0 && Zn();
|
|
685
|
+
}
|
|
686
|
+
function Cr(e) {
|
|
687
|
+
j.value.col === e ? (Sn.value = void 0, Z()) : (Vn.value.forEach((t, n) => {
|
|
688
|
+
Sr({
|
|
689
|
+
td: t.td[e],
|
|
690
|
+
rowIndex: n,
|
|
691
|
+
colIndex: e,
|
|
692
|
+
headerType: A.value.NUMERIC,
|
|
693
|
+
event: { currentTarget: document.getElementById(`cell_${n}_${e}_${O}`) }
|
|
694
|
+
});
|
|
695
|
+
}), Sn.value = e);
|
|
696
|
+
}
|
|
697
|
+
async function wr(e, t) {
|
|
698
|
+
L.value[t].includes(e) ? L.value[t] = L.value[t].filter((t) => t !== e) : L.value[t].push(e), await le(), Q();
|
|
699
|
+
}
|
|
700
|
+
function Tr(e) {
|
|
701
|
+
yn.value[e] = or(e).from !== P.value[e].from || or(e).to !== P.value[e].to;
|
|
702
|
+
}
|
|
703
|
+
function Er(e, t) {
|
|
704
|
+
gn.value = e;
|
|
705
|
+
let n = t.currentTarget;
|
|
706
|
+
clearTimeout(dn.value), n.classList.add("clicked"), dn.value = setTimeout(() => {
|
|
707
|
+
n.classList.remove("clicked");
|
|
708
|
+
}, 200), V.value[e] === 1 ? V.value[e] = A.value.DESC : V.value[e] = A.value.ASC, ir();
|
|
709
|
+
}
|
|
710
|
+
function Dr(e, t, n) {
|
|
711
|
+
let r = n.currentTarget;
|
|
712
|
+
clearTimeout(dn.value), r.classList.add("clicked"), dn.value = setTimeout(() => {
|
|
713
|
+
r.classList.remove("clicked");
|
|
714
|
+
}, 200);
|
|
715
|
+
let i = document.getElementById(`th_dropdown_${e}`);
|
|
716
|
+
i.dataset.isOpen === "false" ? i.dataset.isOpen = "true" : i.dataset.isOpen = "false";
|
|
717
|
+
}
|
|
718
|
+
function Or(e) {
|
|
719
|
+
Z(), !e || !e.target.value ? M.value = 0 : M.value = Number(e.target.value), pr();
|
|
720
|
+
}
|
|
721
|
+
let kr = S(null);
|
|
722
|
+
ue(() => {
|
|
723
|
+
if (D.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}");
|
|
724
|
+
if (D.dataset.body.length === 0) throw Error("vue-ui-table error: missing body data");
|
|
725
|
+
vn.value = !0, yr(vr, async () => {
|
|
726
|
+
await le(), vn.value = !1;
|
|
727
|
+
}), document.addEventListener("keydown", (e) => {
|
|
728
|
+
let t = document.activeElement;
|
|
729
|
+
(t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
|
|
730
|
+
}), En.value = q.value.style.exportMenu.filename, Tn.value = Rn.value[0]?.name ?? "";
|
|
731
|
+
}), me(() => D.dataset, (e) => {
|
|
732
|
+
vn.value = !0, G.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
733
|
+
...e,
|
|
734
|
+
absoluteIndex: t
|
|
735
|
+
})), Dn.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
736
|
+
...e,
|
|
737
|
+
absoluteIndex: t
|
|
738
|
+
})), K.value = JSON.parse(JSON.stringify(e.header)).map((e, t) => ({
|
|
739
|
+
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
740
|
+
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
741
|
+
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
742
|
+
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
743
|
+
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
744
|
+
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
745
|
+
name: e.name,
|
|
746
|
+
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
747
|
+
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
748
|
+
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
749
|
+
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
750
|
+
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
751
|
+
type: e.type,
|
|
752
|
+
index: t
|
|
753
|
+
})), j.value = {
|
|
754
|
+
col: void 0,
|
|
755
|
+
rows: []
|
|
756
|
+
}, Sn.value = void 0, bn.value = D.config.rowsPerPage ? D.config.rowsPerPage : 25, R.value = {}, P.value = {}, yn.value = {}, F.value = {}, I.value = {}, z.value = {}, L.value = {}, B.value = {}, V.value = {}, U.value = !1, hn.value = void 0, H.value = void 0, Cn.value = void 0, W.value = !1, j.value.col = void 0, j.value.rows = [], yr(vr, async () => {
|
|
757
|
+
Or(), await le(), vn.value = !1;
|
|
758
|
+
});
|
|
759
|
+
}, {
|
|
760
|
+
immediate: !0,
|
|
761
|
+
deep: !0
|
|
762
|
+
});
|
|
763
|
+
let Ar = S(null);
|
|
764
|
+
return me(_n, (e) => {
|
|
765
|
+
e && Ar.value && Ar.value.focus();
|
|
766
|
+
}), me(U, (e) => {
|
|
767
|
+
e ? kr.value && kr.value.open() : kr.value && kr.value.close();
|
|
768
|
+
}), (t, n) => (x(), g("div", {
|
|
769
|
+
class: "vue-data-ui-component vue-ui-table-main",
|
|
770
|
+
style: b(`font-family: ${q.value.fontFamily}`)
|
|
771
|
+
}, [
|
|
772
|
+
q.value.style.exportMenu.show ? (x(), g("div", {
|
|
773
|
+
key: 0,
|
|
774
|
+
class: "vue-ui-table-export-hub",
|
|
775
|
+
style: b({ top: On.value + "px" })
|
|
776
|
+
}, [_("button", {
|
|
777
|
+
onClick: n[0] ||= (e) => _n.value = !_n.value,
|
|
778
|
+
innerHTML: X.value.export,
|
|
779
|
+
style: b(`background:${q.value.style.exportMenu.backgroundColor};color:${q.value.style.exportMenu.color};cursor:${J.value ? "pointer" : "default"}`)
|
|
780
|
+
}, null, 12, ye), _("div", {
|
|
781
|
+
class: "vue-ui-table-export-hub-dropdown",
|
|
782
|
+
"data-is-open": _n.value || "false",
|
|
783
|
+
style: b(`background:${q.value.style.exportMenu.backgroundColor};color:${q.value.style.exportMenu.color}`)
|
|
784
|
+
}, [
|
|
785
|
+
n[24] ||= _("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1),
|
|
786
|
+
_("button", {
|
|
787
|
+
class: "close-dropdown",
|
|
788
|
+
onClick: n[1] ||= (e) => _n.value = !1,
|
|
789
|
+
style: b(`background:${q.value.style.closeButtons.backgroundColor};color:${q.value.style.closeButtons.color};border-radius:${q.value.style.closeButtons.borderRadius}`)
|
|
790
|
+
}, " ✖ ", 4),
|
|
791
|
+
_("div", xe, [
|
|
792
|
+
_("div", Se, [_("div", Ce, w(q.value.translations.exportAllLabel) + " (" + w(G.value.length) + ") ", 1), _("button", {
|
|
793
|
+
id: "exportAll",
|
|
794
|
+
onClick: n[2] ||= (e) => $n("all"),
|
|
795
|
+
style: b(`background:${q.value.style.exportMenu.buttons.backgroundColor};color:${q.value.style.exportMenu.buttons.color};cursor:${J.value ? "pointer" : "default"}`)
|
|
796
|
+
}, [_("div", { innerHTML: X.value.fileDownload }, null, 8, we), _("span", null, w(q.value.translations.exportAllButton), 1)], 4)]),
|
|
797
|
+
_("div", Te, [_("div", Ee, w(q.value.translations.exportPageLabel), 1), _("button", {
|
|
798
|
+
id: "exportPage",
|
|
799
|
+
onClick: n[3] ||= (e) => $n("page"),
|
|
800
|
+
style: b(`background:${q.value.style.exportMenu.buttons.backgroundColor};color:${q.value.style.exportMenu.buttons.color};cursor:${J.value ? "pointer" : "default"}`)
|
|
801
|
+
}, [_("div", { innerHTML: X.value.fileDownload }, null, 8, De), _("span", null, w(q.value.translations.exportPageButton), 1)], 4)]),
|
|
802
|
+
_("div", Oe, [_("label", ke, [_("span", Ae, w(q.value.translations.filename), 1), E(_("input", {
|
|
803
|
+
name: "filename",
|
|
804
|
+
ref_key: "filenameInputRef",
|
|
805
|
+
ref: Ar,
|
|
806
|
+
onKeydown: n[4] ||= ge(_e(() => {}, ["stop"]), ["space"]),
|
|
807
|
+
pattern: ".*",
|
|
808
|
+
class: "vue-ui-table-dialog-input",
|
|
809
|
+
type: "text",
|
|
810
|
+
"onUpdate:modelValue": n[5] ||= (e) => En.value = e
|
|
811
|
+
}, null, 544), [[pe, En.value]])]), En.value ? (x(), g("button", {
|
|
812
|
+
key: 0,
|
|
813
|
+
class: "vue-ui-table-dialog-field-button",
|
|
814
|
+
onClick: n[6] ||= (e) => En.value = "",
|
|
815
|
+
style: b({ cursor: J.value ? "pointer" : "default" })
|
|
816
|
+
}, [se(f, {
|
|
817
|
+
name: "close",
|
|
818
|
+
stroke: q.value.style.exportMenu.color,
|
|
819
|
+
size: 18
|
|
820
|
+
}, null, 8, ["stroke"])], 4)) : h("", !0)])
|
|
821
|
+
])
|
|
822
|
+
], 12, be)], 4)) : h("", !0),
|
|
823
|
+
_("div", {
|
|
824
|
+
class: "vue-ui-table__wrapper",
|
|
825
|
+
style: b(`max-height:${q.value.maxHeight}px`),
|
|
826
|
+
ref_key: "tableWrapper",
|
|
827
|
+
ref: mr
|
|
828
|
+
}, [_("table", je, [
|
|
829
|
+
q.value.style.title.text ? (x(), g("caption", {
|
|
830
|
+
key: 0,
|
|
831
|
+
class: "vue-ui-table__caption",
|
|
832
|
+
ref_key: "tableCaption",
|
|
833
|
+
ref: un,
|
|
834
|
+
style: b({
|
|
835
|
+
textAlign: q.value.style.title.textAlign,
|
|
836
|
+
paddingLeft: q.value.style.title.paddingLeft + "px",
|
|
837
|
+
paddingRight: q.value.style.title.paddingRight + "px",
|
|
838
|
+
backgroundColor: q.value.style.title.backgroundColor,
|
|
839
|
+
boxShadow: `${q.value.style.title.backgroundColor} -1px 0px 0px 0px`
|
|
840
|
+
})
|
|
841
|
+
}, [_("span", { style: b({
|
|
842
|
+
fontSize: q.value.style.title.fontSize + "px",
|
|
843
|
+
fontWeight: q.value.style.title.bold ? "bold" : "normal",
|
|
844
|
+
color: q.value.style.title.color
|
|
845
|
+
}) }, w(q.value.style.title.text), 5), q.value.style.title.subtitle.text ? (x(), g(p, { key: 0 }, [n[25] ||= _("br", null, null, -1), _("span", { style: b({
|
|
846
|
+
fontSize: q.value.style.title.subtitle.fontSize,
|
|
847
|
+
fontWeight: q.value.style.title.subtitle.bold ? "bold" : "normal",
|
|
848
|
+
color: q.value.style.title.subtitle.color
|
|
849
|
+
}) }, w(q.value.style.title.subtitle.text), 5)], 64)) : h("", !0)], 4)) : h("", !0),
|
|
850
|
+
_("thead", {
|
|
851
|
+
id: "tableHead",
|
|
852
|
+
class: "vue-ui-table__head",
|
|
853
|
+
style: b({
|
|
854
|
+
background: q.value.style.th.backgroundColor,
|
|
855
|
+
boxShadow: `-1px 0 0 ${q.value.style.th.backgroundColor}`,
|
|
856
|
+
top: On.value - 3 + "px"
|
|
857
|
+
})
|
|
858
|
+
}, [
|
|
859
|
+
_("tr", null, [n[26] ||= _("th", { class: "invisible-cell" }, null, -1), (x(!0), g(p, null, C(K.value, (e, t) => (x(), g("th", {
|
|
860
|
+
key: `thead_${t}`,
|
|
861
|
+
style: b(`overflow: visible;background:${q.value.style.th.backgroundColor};color:${q.value.style.th.color};outline:${q.value.style.th.outline}`),
|
|
862
|
+
class: y({ "th-has-nan": F.value[t] })
|
|
863
|
+
}, [Gn.value && ([A.value.TEXT, A.value.DATE].includes(e.type) || e.isPercentage) ? (x(), g("span", Me, [v(w(e.name) + " ", 1), e.isPercentage ? (x(), g("span", Ne, " / " + w(e.percentageTo), 1)) : h("", !0)])) : (x(), g("span", Pe, w(e.name), 1))], 6))), 128))]),
|
|
864
|
+
Gn.value ? (x(), g(p, { key: 0 }, [
|
|
865
|
+
_("tr", null, [n[27] ||= _("th", { class: "invisible-cell" }, null, -1), (x(!0), g(p, null, C(K.value, (e, t) => (x(), g("th", {
|
|
866
|
+
key: `thead_${t}`,
|
|
867
|
+
class: y({
|
|
868
|
+
"th-numeric": !0,
|
|
869
|
+
"th-has-nan": F.value[t]
|
|
870
|
+
}),
|
|
871
|
+
style: b(`background:${q.value.style.th.backgroundColor};color:${q.value.style.th.color};outline:${q.value.style.th.outline}`)
|
|
872
|
+
}, [e.sum && !F.value[t] ? (x(), g("span", Fe, [
|
|
873
|
+
_("span", {
|
|
874
|
+
innerHTML: X.value.sum,
|
|
875
|
+
style: {
|
|
876
|
+
"margin-bottom": "-4px",
|
|
877
|
+
"margin-right": "3px"
|
|
878
|
+
}
|
|
879
|
+
}, null, 8, Ie),
|
|
880
|
+
v(" " + w(T(s)({
|
|
881
|
+
p: e.prefix,
|
|
882
|
+
v: Number(sr(t)),
|
|
883
|
+
s: e.suffix,
|
|
884
|
+
r: e.decimals
|
|
885
|
+
})) + " ", 1),
|
|
886
|
+
R.value[t] && e.percentageTo && !e.isPercentage ? (x(), g("span", Le, " (" + w(isNaN(sr(t) / sr(R.value[t].referenceIndex)) ? "-" : T(s)({
|
|
887
|
+
v: sr(t) / sr(R.value[t].referenceIndex) * 100,
|
|
888
|
+
s: "%",
|
|
889
|
+
r: e.decimals
|
|
890
|
+
})) + ") ", 1)) : h("", !0)
|
|
891
|
+
])) : h("", !0)], 6))), 128))]),
|
|
892
|
+
_("tr", null, [n[28] ||= _("th", { class: "invisible-cell" }, null, -1), (x(!0), g(p, null, C(K.value, (e, t) => (x(), g("th", {
|
|
893
|
+
key: `thead_${t}`,
|
|
894
|
+
class: y({
|
|
895
|
+
"th-numeric": !0,
|
|
896
|
+
"th-has-nan": F.value[t]
|
|
897
|
+
}),
|
|
898
|
+
style: b(`background:${q.value.style.th.backgroundColor};color:${q.value.style.th.color};outline:${q.value.style.th.outline}`)
|
|
899
|
+
}, [e.average && !F.value[t] ? (x(), g("span", Re, " ~ " + w(isNaN(ar(t)) ? "" : T(s)({
|
|
900
|
+
p: e.prefix,
|
|
901
|
+
v: Number(ar(t)),
|
|
902
|
+
s: e.suffix,
|
|
903
|
+
r: e.decimals
|
|
904
|
+
})), 1)) : h("", !0)], 6))), 128))]),
|
|
905
|
+
_("tr", null, [n[31] ||= _("th", { class: "invisible-cell" }, null, -1), (x(!0), g(p, null, C(K.value, (e, t) => (x(), g("th", {
|
|
906
|
+
key: `thead_${t}`,
|
|
907
|
+
class: y({ "th-has-nan": F.value[t] }),
|
|
908
|
+
style: b(`background:${q.value.style.th.backgroundColor};color:${q.value.style.th.color};outline:${q.value.style.th.outline}`)
|
|
909
|
+
}, [_("div", ze, [
|
|
910
|
+
e.type === A.value.DATE && P.value[t] ? (x(), g("div", Be, [_("div", Ve, [_("div", He, [_("label", { for: `from_${t}` }, w(q.value.translations.from), 9, Ue), E(_("input", {
|
|
911
|
+
id: `from_${t}`,
|
|
912
|
+
type: "date",
|
|
913
|
+
"onUpdate:modelValue": (e) => P.value[t].from = e,
|
|
914
|
+
onInput: (e) => {
|
|
915
|
+
Q(), Tr(t);
|
|
916
|
+
},
|
|
917
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
918
|
+
}, null, 44, We), [[pe, P.value[t].from]])]), _("div", Ge, [_("label", { for: `to_${t}` }, w(q.value.translations.to), 9, Ke), E(_("input", {
|
|
919
|
+
id: `to_${t}`,
|
|
920
|
+
type: "date",
|
|
921
|
+
"onUpdate:modelValue": (e) => P.value[t].to = e,
|
|
922
|
+
onInput: (e) => {
|
|
923
|
+
Q(), Tr(t);
|
|
924
|
+
},
|
|
925
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
926
|
+
}, null, 44, qe), [[pe, P.value[t].to]])])]), _("div", Je, [e.isSort ? (x(), g("button", {
|
|
927
|
+
key: 0,
|
|
928
|
+
onClick: (e) => Er(t, e),
|
|
929
|
+
class: y({ "th-button-active": [A.value.DESC, A.value.ASC].includes(V.value[t]) }),
|
|
930
|
+
style: b(`cursor:${J.value ? "pointer" : "default"}; background:${[A.value.DESC, A.value.ASC].includes(V.value[t]) ? "" : q.value.style.th.buttons.filter.inactive.backgroundColor};color:${[A.value.DESC, A.value.ASC].includes(V.value[t]) ? "" : q.value.style.th.buttons.filter.inactive.color}`)
|
|
931
|
+
}, [V.value[t] === A.value.ASC ? (x(), g("span", {
|
|
932
|
+
key: 0,
|
|
933
|
+
innerHTML: [A.value.DATE].includes(e.type) ? X.value.sort09 : X.value.sortAZ
|
|
934
|
+
}, null, 8, Xe)) : V.value[t] === A.value.DESC ? (x(), g("span", {
|
|
935
|
+
key: 1,
|
|
936
|
+
innerHTML: [A.value.DATE].includes(e.type) ? X.value.sort90 : X.value.sortZA
|
|
937
|
+
}, null, 8, Ze)) : (x(), g("span", {
|
|
938
|
+
key: 2,
|
|
939
|
+
innerHTML: X.value.arrowSort
|
|
940
|
+
}, null, 8, Qe))], 14, Ye)) : h("", !0), _("button", {
|
|
941
|
+
onClick: (n) => {
|
|
942
|
+
br(t), xr(t, e, n);
|
|
943
|
+
},
|
|
944
|
+
disabled: !yn.value[t] && dr(t, e),
|
|
945
|
+
class: "th-reset",
|
|
946
|
+
style: b({ cursor: J.value ? "pointer" : "default" })
|
|
947
|
+
}, " ✖ ", 12, $e)])])) : h("", !0),
|
|
948
|
+
e.isSearch ? E((x(), g("input", {
|
|
949
|
+
key: 1,
|
|
950
|
+
placeholder: q.value.translations.inputPlaceholder,
|
|
951
|
+
"onUpdate:modelValue": (e) => B.value[t] = e,
|
|
952
|
+
onInput: n[7] ||= (e) => tr(Q, 400),
|
|
953
|
+
name: `search_${t}`,
|
|
954
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
955
|
+
}, null, 44, et)), [[pe, B.value[t]]]) : h("", !0),
|
|
956
|
+
!F.value[t] && e.isSort && e.type !== A.value.DATE ? (x(), g("button", {
|
|
957
|
+
key: 2,
|
|
958
|
+
onClick: (e) => Er(t, e),
|
|
959
|
+
class: y({ "th-button-active": [A.value.DESC, A.value.ASC].includes(V.value[t]) }),
|
|
960
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${[A.value.DESC, A.value.ASC].includes(V.value[t]) ? "" : q.value.style.th.buttons.filter.inactive.backgroundColor};color:${[A.value.DESC, A.value.ASC].includes(V.value[t]) ? "" : q.value.style.th.buttons.filter.inactive.color}`)
|
|
961
|
+
}, [V.value[t] === A.value.ASC ? (x(), g("span", {
|
|
962
|
+
key: 0,
|
|
963
|
+
innerHTML: [A.value.NUMERIC].includes(e.type) ? X.value.sort09 : X.value.sortZA
|
|
964
|
+
}, null, 8, nt)) : V.value[t] === A.value.DESC ? (x(), g("span", {
|
|
965
|
+
key: 1,
|
|
966
|
+
innerHTML: [A.value.NUMERIC].includes(e.type) ? X.value.sort90 : X.value.sortAZ
|
|
967
|
+
}, null, 8, rt)) : (x(), g("span", {
|
|
968
|
+
key: 2,
|
|
969
|
+
innerHTML: X.value.arrowSort
|
|
970
|
+
}, null, 8, it))], 14, tt)) : h("", !0),
|
|
971
|
+
e.isMultiselect ? (x(), g("button", {
|
|
972
|
+
key: 3,
|
|
973
|
+
onClick: (n) => Dr(t, e, n),
|
|
974
|
+
innerHTML: X.value.filter,
|
|
975
|
+
class: y({ "th-button-active": L.value[t] && L.value[t].length !== $(t).length }),
|
|
976
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${L.value[t] && L.value[t].length !== $(t).length ? "" : q.value.style.th.buttons.filter.inactive.backgroundColor};color:${L.value[t] && L.value[t].length !== $(t).length ? "" : q.value.style.th.buttons.filter.inactive.color}`)
|
|
977
|
+
}, null, 14, at)) : h("", !0),
|
|
978
|
+
j.value.col === t && Wn.value ? (x(), g("button", {
|
|
979
|
+
key: 4,
|
|
980
|
+
onClick: n[8] ||= (e) => U.value = !U.value,
|
|
981
|
+
innerHTML: X.value.chart,
|
|
982
|
+
class: y({ "th-button-active": U.value }),
|
|
983
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${U.value ? "" : q.value.style.th.buttons.filter.inactive.backgroundColor};color:${U.value ? "" : q.value.style.th.buttons.filter.inactive.color}`)
|
|
984
|
+
}, null, 14, ot)) : h("", !0),
|
|
985
|
+
e.rangeFilter && z.value[t] && !F.value[t] ? (x(), g("div", st, [
|
|
986
|
+
_("label", { for: `rangeMin${t}` }, [...n[29] ||= [
|
|
987
|
+
_("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
988
|
+
v(" min ", -1),
|
|
989
|
+
_("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
990
|
+
]], 8, ct),
|
|
991
|
+
E(_("input", {
|
|
992
|
+
type: "number",
|
|
993
|
+
id: `rangeMin${t}`,
|
|
994
|
+
max: I.value[t].max,
|
|
995
|
+
min: I.value[t].min,
|
|
996
|
+
"onUpdate:modelValue": (e) => z.value[t].min = e,
|
|
997
|
+
onInput: n[9] ||= (e) => tr(Q, 400),
|
|
998
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
999
|
+
}, null, 44, lt), [[
|
|
1000
|
+
pe,
|
|
1001
|
+
z.value[t].min,
|
|
1002
|
+
void 0,
|
|
1003
|
+
{ number: !0 }
|
|
1004
|
+
]]),
|
|
1005
|
+
E(_("input", {
|
|
1006
|
+
type: "number",
|
|
1007
|
+
id: `rangeMax${t}`,
|
|
1008
|
+
max: I.value[t].max,
|
|
1009
|
+
min: I.value[t].min,
|
|
1010
|
+
"onUpdate:modelValue": (e) => z.value[t].max = e,
|
|
1011
|
+
onInput: n[10] ||= (e) => tr(Q, 400),
|
|
1012
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
1013
|
+
}, null, 44, ut), [[
|
|
1014
|
+
pe,
|
|
1015
|
+
z.value[t].max,
|
|
1016
|
+
void 0,
|
|
1017
|
+
{ number: !0 }
|
|
1018
|
+
]]),
|
|
1019
|
+
_("label", { for: `rangeMax${t}` }, [...n[30] ||= [
|
|
1020
|
+
_("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1021
|
+
v(" max ", -1),
|
|
1022
|
+
_("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1023
|
+
]], 8, dt)
|
|
1024
|
+
])) : h("", !0),
|
|
1025
|
+
Qn(t, e) ? (x(), g("button", {
|
|
1026
|
+
key: 6,
|
|
1027
|
+
onClick: (n) => xr(t, e, n),
|
|
1028
|
+
disabled: dr(t, e),
|
|
1029
|
+
class: "th-reset",
|
|
1030
|
+
style: b({ cursor: J.value ? "pointer" : "default" })
|
|
1031
|
+
}, " ✖ ", 12, ft)) : h("", !0),
|
|
1032
|
+
e.isMultiselect ? (x(), g("div", {
|
|
1033
|
+
key: 7,
|
|
1034
|
+
class: "th-dropdown",
|
|
1035
|
+
"data-is-open": "false",
|
|
1036
|
+
id: `th_dropdown_${t}`,
|
|
1037
|
+
style: b(`background:${q.value.style.dropdowns.backgroundColor};color:${q.value.style.dropdowns.color}`)
|
|
1038
|
+
}, [_("button", {
|
|
1039
|
+
class: "close-dropdown",
|
|
1040
|
+
onClick: (n) => Dr(t, e, n),
|
|
1041
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.closeButtons.backgroundColor};color:${q.value.style.closeButtons.color}`)
|
|
1042
|
+
}, " ✖ ", 12, mt), (x(!0), g(p, null, C($(t), (e, n) => (x(), g("span", {
|
|
1043
|
+
class: "th-option",
|
|
1044
|
+
key: `th_option_${t}_${n}`,
|
|
1045
|
+
onClick: (n) => wr(e, t),
|
|
1046
|
+
onKeyup: [ge((n) => wr(e, t), ["enter"]), ge((n) => wr(e, t), ["space"])],
|
|
1047
|
+
style: b(`opacity:${lr(e, t) ? 1 : .5}`),
|
|
1048
|
+
tabindex: "0"
|
|
1049
|
+
}, [lr(e, t) ? (x(), g("span", {
|
|
1050
|
+
key: 0,
|
|
1051
|
+
style: b(`color:${q.value.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1052
|
+
class: "th-icon-green"
|
|
1053
|
+
}, w(q.value.style.dropdowns.icons.selected.unicode), 5)) : (x(), g("span", {
|
|
1054
|
+
key: 1,
|
|
1055
|
+
style: b(`color:${q.value.style.dropdowns.icons.unselected.color};margin-right:5px`),
|
|
1056
|
+
class: "th-icon-red"
|
|
1057
|
+
}, w(q.value.style.dropdowns.icons.unselected.unicode), 5)), _("span", null, w(e), 1)], 44, ht))), 128))], 12, pt)) : h("", !0)
|
|
1058
|
+
])], 6))), 128))])
|
|
1059
|
+
], 64)) : h("", !0),
|
|
1060
|
+
_("tr", null, [n[32] ||= _("th", { class: "invisible-cell" }, null, -1), (x(!0), g(p, null, C(K.value, (e, t) => (x(), g("th", {
|
|
1061
|
+
key: `col_selector_${t}`,
|
|
1062
|
+
class: y({
|
|
1063
|
+
"vue-ui-table-col-selector": !F.value[t],
|
|
1064
|
+
"th-has-nan": F.value[t]
|
|
1065
|
+
}),
|
|
1066
|
+
style: b(`background:${t === Sn.value && !F.value[t] ? q.value.style.th.selected.backgroundColor : q.value.style.th.backgroundColor};color:${t === Sn.value && !F.value[t] ? q.value.style.th.selected.color : q.value.style.th.color};outline:${q.value.style.th.outline}`)
|
|
1067
|
+
}, [F.value[t] ? h("", !0) : (x(), g("div", {
|
|
1068
|
+
key: 0,
|
|
1069
|
+
innerHTML: K.value[t].type === A.value.NUMERIC ? X.value.chevronDown : "",
|
|
1070
|
+
class: y({ "col-selector": K.value[t].type === A.value.NUMERIC }),
|
|
1071
|
+
tabindex: "0",
|
|
1072
|
+
style: b({ cursor: J.value ? "pointer" : "default" }),
|
|
1073
|
+
onClick: _e((e) => Cr(t), ["stop"]),
|
|
1074
|
+
onKeyup: ge((e) => Cr(t), ["enter"])
|
|
1075
|
+
}, null, 46, gt))], 6))), 128))])
|
|
1076
|
+
], 4),
|
|
1077
|
+
_("tbody", {
|
|
1078
|
+
onClick: er,
|
|
1079
|
+
onKeydown: n[11] ||= (e) => gr(e)
|
|
1080
|
+
}, [(x(!0), g(p, null, C(Vn.value, (t, n) => (x(), g("tr", {
|
|
1081
|
+
key: `tbody_${n}`,
|
|
1082
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1083
|
+
class: y(`tr_${T(O)}`),
|
|
1084
|
+
style: b(`${n % 2 == 0 ? `background:${q.value.style.rows.odd.backgroundColor};color:${q.value.style.rows.odd.color}` : `background:${q.value.style.rows.even.backgroundColor};color:${q.value.style.rows.even.color}`}`)
|
|
1085
|
+
}, [_("td", {
|
|
1086
|
+
class: "vue-ui-table-td-iteration",
|
|
1087
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1088
|
+
style: b({ outline: q.value.style.rows.outline })
|
|
1089
|
+
}, w(t.absoluteIndex + 1), 13, vt), (x(!0), g(p, null, C(t.td, (r, i) => (x(), g("td", {
|
|
1090
|
+
"data-row": n % 2 == 0 ? "odd" : "even",
|
|
1091
|
+
key: `td_${n}_${i}`,
|
|
1092
|
+
style: b(ur(r) || e.dataset.header[i].type === A.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${q.value.style.rows.outline}` : `outline:${q.value.style.rows.outline}`),
|
|
1093
|
+
onClick: (t) => Sr({
|
|
1094
|
+
td: r,
|
|
1095
|
+
rowIndex: n,
|
|
1096
|
+
colIndex: i,
|
|
1097
|
+
headerType: e.dataset.header[i].type,
|
|
1098
|
+
event: t
|
|
1099
|
+
}),
|
|
1100
|
+
onKeyup: [ge((t) => Sr({
|
|
1101
|
+
td: r,
|
|
1102
|
+
rowIndex: n,
|
|
1103
|
+
colIndex: i,
|
|
1104
|
+
headerType: e.dataset.header[i].type,
|
|
1105
|
+
event: t
|
|
1106
|
+
}), ["enter"]), ge((t) => Sr({
|
|
1107
|
+
td: r,
|
|
1108
|
+
rowIndex: n,
|
|
1109
|
+
colIndex: i,
|
|
1110
|
+
headerType: e.dataset.header[i].type,
|
|
1111
|
+
event: t
|
|
1112
|
+
}), ["space"])],
|
|
1113
|
+
class: y({
|
|
1114
|
+
"td-numeric": e.dataset.header[i].type === A.value.NUMERIC,
|
|
1115
|
+
"td-focusable": !0,
|
|
1116
|
+
"td-has-nan": F.value[i]
|
|
1117
|
+
}),
|
|
1118
|
+
id: `cell_${n}_${i}_${T(O)}`,
|
|
1119
|
+
tabindex: "0"
|
|
1120
|
+
}, [t.meta && t.meta.markerIndices.includes(i) && t.meta.unicodeIcon ? (x(), g("span", {
|
|
1121
|
+
key: 0,
|
|
1122
|
+
style: b(`color:${t.meta.color};margin-right:3px`),
|
|
1123
|
+
innerHTML: t.meta.unicodeIcon
|
|
1124
|
+
}, null, 12, bt)) : h("", !0), e.dataset.header[i].type === A.value.DATE ? (x(), g("span", xt, w(e.dataset.header[i].prefix) + " " + w(new Date(r).toLocaleString().slice(0, 10)) + " " + w(e.dataset.header[i].suffix), 1)) : e.dataset.header[i].isPercentage ? (x(), g("span", St, w(T(s)({
|
|
1125
|
+
v: Number(r * 100),
|
|
1126
|
+
s: "%",
|
|
1127
|
+
r: e.dataset.header[i].decimals
|
|
1128
|
+
})), 1)) : R.value[i] && e.dataset.header[i].percentageTo && !e.dataset.header[i].isPercentage ? (x(), g("span", {
|
|
1129
|
+
key: 3,
|
|
1130
|
+
class: y({ "td-nan": isNaN(Number(r)) })
|
|
1131
|
+
}, w(isNaN(Number(r)) ? `${r} is not ${A.value.NUMERIC}` : T(s)({
|
|
1132
|
+
p: e.dataset.header[i].prefix,
|
|
1133
|
+
v: Number(r),
|
|
1134
|
+
s: e.dataset.header[i].suffix,
|
|
1135
|
+
r: e.dataset.header[i].decimals
|
|
1136
|
+
})) + " (" + w(isNaN(Number(r)) ? "" : T(s)({
|
|
1137
|
+
v: Number(r / sr(R.value[i].referenceIndex) * 100),
|
|
1138
|
+
s: "%",
|
|
1139
|
+
r: e.dataset.header[i].decimals
|
|
1140
|
+
})) + ") ", 3)) : e.dataset.header[i].type === A.value.NUMERIC ? (x(), g("span", {
|
|
1141
|
+
key: 4,
|
|
1142
|
+
class: y({ "td-nan": isNaN(Number(r)) })
|
|
1143
|
+
}, w(isNaN(Number(r)) ? `${r} is not ${A.value.NUMERIC}` : T(s)({
|
|
1144
|
+
p: e.dataset.header[i].prefix,
|
|
1145
|
+
v: Number(r.toFixed(e.dataset.header[i].decimals)),
|
|
1146
|
+
s: e.dataset.header[i].suffix,
|
|
1147
|
+
r: e.dataset.header[i].decimals
|
|
1148
|
+
})), 3)) : (x(), g("span", Ct, w(e.dataset.header[i].prefix) + " " + w(r) + " " + w(e.dataset.header[i].suffix), 1))], 46, yt))), 128))], 14, _t))), 128))], 32)
|
|
1149
|
+
])], 4),
|
|
1150
|
+
_("div", {
|
|
1151
|
+
class: y({
|
|
1152
|
+
"td-selector-info": !0,
|
|
1153
|
+
"td-selector-info--active": j.value.col !== void 0 && j.value.rows.length
|
|
1154
|
+
}),
|
|
1155
|
+
style: b(`background:${q.value.style.infoBar.backgroundColor};color:${q.value.style.infoBar.color}`)
|
|
1156
|
+
}, [j.value.col !== void 0 && j.value.rows.length ? (x(), g(p, { key: 0 }, [
|
|
1157
|
+
_("div", {
|
|
1158
|
+
innerHTML: X.value.table,
|
|
1159
|
+
class: "td-selector-icon"
|
|
1160
|
+
}, null, 8, wt),
|
|
1161
|
+
_("span", null, [
|
|
1162
|
+
_("b", null, [v(w(e.dataset.header[j.value.col].name) + " ", 1), e.dataset.header[j.value.col].isPercentage ? (x(), g("span", Tt, " / " + w(e.dataset.header[R.value[j.value.col].referenceIndex].name), 1)) : h("", !0)]),
|
|
1163
|
+
_("span", Et, [v(w(q.value.translations.nb) + " : ", 1), _("b", Dt, w(j.value.rows.length), 1)]),
|
|
1164
|
+
_("span", Ot, [
|
|
1165
|
+
v(w(q.value.translations.sum) + " : ", 1),
|
|
1166
|
+
e.dataset.header[j.value.col].isPercentage ? (x(), g("b", kt, w(qn.value.sumPercentage), 1)) : (x(), g("b", At, w(e.dataset.header[j.value.col].prefix) + " " + w(qn.value.sumRegular) + " " + w(e.dataset.header[j.value.col].suffix), 1)),
|
|
1167
|
+
e.dataset.header[j.value.col].isPercentage ? (x(), g("b", jt, "%")) : h("", !0)
|
|
1168
|
+
]),
|
|
1169
|
+
_("span", Mt, [
|
|
1170
|
+
v(w(q.value.translations.average) + " : ", 1),
|
|
1171
|
+
e.dataset.header[j.value.col].isPercentage ? (x(), g("b", Nt, w(qn.value.averagePercentage), 1)) : (x(), g("b", Pt, w(e.dataset.header[j.value.col].prefix) + " " + w(qn.value.averageRegular) + " " + w(e.dataset.header[j.value.col].suffix), 1)),
|
|
1172
|
+
e.dataset.header[j.value.col].isPercentage ? (x(), g("b", Ft, "%")) : h("", !0)
|
|
1173
|
+
])
|
|
1174
|
+
]),
|
|
1175
|
+
_("button", {
|
|
1176
|
+
onClick: Z,
|
|
1177
|
+
class: "td-selector-info-reset",
|
|
1178
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.closeButtons.backgroundColor};color:${q.value.style.closeButtons.color};border-radius:${q.value.style.closeButtons.borderRadius}`)
|
|
1179
|
+
}, " ✖ ", 4)
|
|
1180
|
+
], 64)) : h("", !0)], 6),
|
|
1181
|
+
G.value.length > 10 ? (x(), g("div", It, [v(w(q.value.translations.totalRows) + " : " + w(e.dataset.body.length) + " | " + w(q.value.translations.paginatorLabel) + " : ", 1), G.value.length > 10 ? E((x(), g("select", {
|
|
1182
|
+
key: 0,
|
|
1183
|
+
id: "paginatorSelector",
|
|
1184
|
+
"onUpdate:modelValue": n[12] ||= (e) => bn.value = e,
|
|
1185
|
+
onChange: n[13] ||= (e) => {
|
|
1186
|
+
Z(), pr();
|
|
1187
|
+
},
|
|
1188
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border}`)
|
|
1189
|
+
}, [(x(!0), g(p, null, C(xn.value, (t, n) => (x(), g(p, null, [G.value.length > t || e.dataset.body.length === t ? (x(), g("option", { key: `paginator_option_${n}` }, w(t), 1)) : h("", !0)], 64))), 256))], 36)), [[
|
|
1190
|
+
fe,
|
|
1191
|
+
bn.value,
|
|
1192
|
+
void 0,
|
|
1193
|
+
{ number: !0 }
|
|
1194
|
+
]]) : h("", !0)])) : h("", !0),
|
|
1195
|
+
bn.value >= 250 ? (x(), g("div", Lt, [_("span", { innerHTML: X.value.warning }, null, 8, Rt), v(w(q.value.translations.sizeWarning), 1)])) : h("", !0),
|
|
1196
|
+
Y.value.length > 1 && Y.value.length <= 10 ? (x(), g("div", {
|
|
1197
|
+
key: 3,
|
|
1198
|
+
class: "vue-ui-table-navigation-indicator",
|
|
1199
|
+
style: b(`background:${q.value.style.pagination.navigationIndicator.backgroundColor};width:calc(${M.value / (Y.value.length - 1) * 100}%)`)
|
|
1200
|
+
}, null, 4)) : h("", !0),
|
|
1201
|
+
Y.value.length > 1 ? (x(), g("div", zt, [
|
|
1202
|
+
_("button", {
|
|
1203
|
+
class: "vue-ui-table-navigation",
|
|
1204
|
+
onClick: n[14] ||= _e((e) => hr("previous"), ["stop"]),
|
|
1205
|
+
innerHTML: X.value.chevronLeft,
|
|
1206
|
+
disabled: M.value === 0,
|
|
1207
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.pagination.buttons.backgroundColor};color:${q.value.style.pagination.buttons.color};opacity:${M.value === 0 ? q.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1208
|
+
}, null, 12, Bt),
|
|
1209
|
+
Y.value.length > 3 ? (x(), g(p, { key: 0 }, [
|
|
1210
|
+
_("button", {
|
|
1211
|
+
class: "vue-ui-table-navigation",
|
|
1212
|
+
onClick: n[15] ||= _e((e) => hr(1), ["stop"]),
|
|
1213
|
+
disabled: M.value === 0,
|
|
1214
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.pagination.buttons.backgroundColor};color:${q.value.style.pagination.buttons.color};opacity:${M.value === 0 ? q.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1215
|
+
}, " 1 ", 12, Vt),
|
|
1216
|
+
Y.value.length > 10 ? (x(), g("div", {
|
|
1217
|
+
key: 0,
|
|
1218
|
+
class: "vue-ui-table-page-scroller-wrapper",
|
|
1219
|
+
style: b({ cursor: J.value ? "pointer" : "default" })
|
|
1220
|
+
}, [_("label", Ht, w(q.value.translations.page) + " " + w(M.value + 1) + " / " + w(Y.value.length), 1), _("input", {
|
|
1221
|
+
class: "vue-ui-table-page-scroller",
|
|
1222
|
+
id: "pageScroller",
|
|
1223
|
+
type: "range",
|
|
1224
|
+
step: "1",
|
|
1225
|
+
min: 0,
|
|
1226
|
+
max: Y.value.length - 1,
|
|
1227
|
+
onInput: n[16] ||= (e) => Or(e),
|
|
1228
|
+
value: M.value,
|
|
1229
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border};accent-color:${q.value.style.inputs.accentColor}`)
|
|
1230
|
+
}, null, 44, Ut)], 4)) : (x(), g("span", Wt, w(q.value.translations.page) + " " + w(M.value + 1) + " / " + w(Y.value.length), 1)),
|
|
1231
|
+
_("button", {
|
|
1232
|
+
class: "vue-ui-table-navigation",
|
|
1233
|
+
onClick: n[17] ||= _e((e) => hr(Y.value.length), ["stop"]),
|
|
1234
|
+
disabled: M.value === Y.value.length - 1,
|
|
1235
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.pagination.buttons.backgroundColor};color:${q.value.style.pagination.buttons.color};opacity:${M.value === Y.value.length - 1 ? q.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1236
|
+
}, w(Y.value.length), 13, Gt)
|
|
1237
|
+
], 64)) : (x(), g(p, { key: 1 }, [v(w(q.value.translations.page) + " " + w(M.value + 1) + " / " + w(Y.value.length), 1)], 64)),
|
|
1238
|
+
_("button", {
|
|
1239
|
+
class: "vue-ui-table-navigation",
|
|
1240
|
+
onClick: n[18] ||= _e((e) => hr("next"), ["stop"]),
|
|
1241
|
+
innerHTML: X.value.chevronRight,
|
|
1242
|
+
disabled: M.value === Y.value.length - 1,
|
|
1243
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.pagination.buttons.backgroundColor};color:${q.value.style.pagination.buttons.color};opacity:${M.value === Y.value.length - 1 ? q.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1244
|
+
}, null, 12, Kt)
|
|
1245
|
+
])) : h("", !0),
|
|
1246
|
+
se(T(sn), {
|
|
1247
|
+
ref_key: "chartModal",
|
|
1248
|
+
ref: kr,
|
|
1249
|
+
backgroundColor: q.value.style.chart.modal.backgroundColor,
|
|
1250
|
+
headerColor: q.value.style.chart.modal.color,
|
|
1251
|
+
color: q.value.style.chart.modal.color,
|
|
1252
|
+
forcedHeight: 500,
|
|
1253
|
+
isCursorPointer: J.value,
|
|
1254
|
+
withPadding: "",
|
|
1255
|
+
withFullWidth: "",
|
|
1256
|
+
noLayerUpdate: "",
|
|
1257
|
+
onClose: n[23] ||= (e) => U.value = !1,
|
|
1258
|
+
onSize: Yn
|
|
1259
|
+
}, {
|
|
1260
|
+
before: he(() => [_("div", qt, [
|
|
1261
|
+
Un.value.length ? (x(), g("button", {
|
|
1262
|
+
key: 0,
|
|
1263
|
+
onClick: n[19] ||= (e) => W.value = !0,
|
|
1264
|
+
innerHTML: X.value.donut,
|
|
1265
|
+
class: y({ "is-active-chart": k.value.type === A.value.DONUT || W.value }),
|
|
1266
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${k.value.type === A.value.DONUT || W.value ? q.value.style.chart.modal.buttons.selected.backgroundColor : q.value.style.chart.modal.buttons.unselected.backgroundColor};color:${k.value.type === A.value.DONUT || W.value ? q.value.style.chart.modal.buttons.selected.color : q.value.style.chart.modal.buttons.unselected.color}`)
|
|
1267
|
+
}, null, 14, Jt)) : h("", !0),
|
|
1268
|
+
_("button", {
|
|
1269
|
+
onClick: n[20] ||= (e) => {
|
|
1270
|
+
k.value.type = A.value.LINE, W.value = !1;
|
|
1271
|
+
},
|
|
1272
|
+
innerHTML: X.value.chart,
|
|
1273
|
+
class: y({ "is-active-chart": k.value.type === A.value.LINE && !W.value }),
|
|
1274
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${k.value.type === A.value.LINE && !W.value ? q.value.style.chart.modal.buttons.selected.backgroundColor : q.value.style.chart.modal.buttons.unselected.backgroundColor};color:${k.value.type === A.value.LINE && !W.value ? q.value.style.chart.modal.buttons.selected.color : q.value.style.chart.modal.buttons.unselected.color}`)
|
|
1275
|
+
}, null, 14, Yt),
|
|
1276
|
+
_("button", {
|
|
1277
|
+
onClick: n[21] ||= (e) => {
|
|
1278
|
+
k.value.type = A.value.BAR, W.value = !1;
|
|
1279
|
+
},
|
|
1280
|
+
innerHTML: X.value.bar,
|
|
1281
|
+
class: y({ "is-active-chart": k.value.type === A.value.BAR && !W.value }),
|
|
1282
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${k.value.type === A.value.BAR && !W.value ? q.value.style.chart.modal.buttons.selected.backgroundColor : q.value.style.chart.modal.buttons.unselected.backgroundColor};color:${k.value.type === A.value.BAR && !W.value ? q.value.style.chart.modal.buttons.selected.color : q.value.style.chart.modal.buttons.unselected.color}`)
|
|
1283
|
+
}, null, 14, Xt)
|
|
1284
|
+
])]),
|
|
1285
|
+
content: he(() => [_("div", Zt, [
|
|
1286
|
+
W.value && Un.value.length ? (x(), g("div", {
|
|
1287
|
+
key: 0,
|
|
1288
|
+
style: b(`background:${q.value.style.chart.modal.backgroundColor};color:${q.value.style.chart.modal.color}`)
|
|
1289
|
+
}, [_("fieldset", Qt, [
|
|
1290
|
+
_("legend", null, w(q.value.translations.chooseCategoryColumn), 1),
|
|
1291
|
+
_("div", $t, [(x(!0), g(p, null, C(Un.value, (e, t) => (x(), g("div", {
|
|
1292
|
+
key: `donut_radio_${t}`,
|
|
1293
|
+
class: "vue-ui-table-fieldset-option"
|
|
1294
|
+
}, [_("input", {
|
|
1295
|
+
type: "radio",
|
|
1296
|
+
name: e.name,
|
|
1297
|
+
id: e.name,
|
|
1298
|
+
checked: H.value && e.name === H.value.name,
|
|
1299
|
+
onInput: (e) => H.value = Un.value[t],
|
|
1300
|
+
style: b(`background:${q.value.style.inputs.backgroundColor};color:${q.value.style.inputs.color};border:${q.value.style.inputs.border};accent-color:${q.value.style.inputs.accentColor}`)
|
|
1301
|
+
}, null, 44, en), _("label", { for: e.name }, w(e.name), 9, tn)]))), 128))]),
|
|
1302
|
+
_("button", {
|
|
1303
|
+
class: "vue-ui-table-generate-donut",
|
|
1304
|
+
disabled: !H.value,
|
|
1305
|
+
onClick: Zn,
|
|
1306
|
+
style: b(`cursor:${J.value ? "pointer" : "default"};background:${q.value.style.chart.modal.buttons.selected.backgroundColor};color:${q.value.style.chart.modal.buttons.selected.color}`)
|
|
1307
|
+
}, [_("div", {
|
|
1308
|
+
style: { "margin-bottom": "-3px" },
|
|
1309
|
+
innerHTML: X.value.donut
|
|
1310
|
+
}, null, 8, rn), v(" " + w(q.value.translations.makeDonut), 1)], 12, nn)
|
|
1311
|
+
])], 4)) : h("", !0),
|
|
1312
|
+
[A.value.BAR, A.value.LINE].includes(k.value.type) && !W.value ? (x(), g(p, { key: 1 }, [
|
|
1313
|
+
zn.value.length > 1 ? (x(), g("label", {
|
|
1314
|
+
key: 0,
|
|
1315
|
+
style: b({ color: q.value.style.chart.modal.color })
|
|
1316
|
+
}, [v(w(q.value.translations.xAxisLabels) + " ", 1), E(_("select", { "onUpdate:modelValue": n[22] ||= (e) => Tn.value = e }, [(x(!0), g(p, null, C(zn.value, (e) => (x(), g("option", null, w(e), 1))), 256))], 512), [[fe, Tn.value]])], 4)) : h("", !0),
|
|
1317
|
+
_("div", an, [k.value.type === A.value.LINE ? (x(), oe(ne, {
|
|
1318
|
+
key: `chart_line_${wn.value}`,
|
|
1319
|
+
dataset: Xn.value.xyDatasetLine,
|
|
1320
|
+
config: Xn.value.xyConfig
|
|
1321
|
+
}, null, 8, ["dataset", "config"])) : h("", !0), k.value.type === A.value.BAR ? (x(), oe(ne, {
|
|
1322
|
+
key: `chart_bar_${wn.value}`,
|
|
1323
|
+
dataset: Xn.value.xyDatasetBar,
|
|
1324
|
+
config: Xn.value.xyConfig
|
|
1325
|
+
}, null, 8, ["dataset", "config"])) : h("", !0)]),
|
|
1326
|
+
j.value.rows.length >= 2 ? (x(), g("div", {
|
|
1327
|
+
key: 1,
|
|
1328
|
+
class: "chart-trend",
|
|
1329
|
+
style: b(`color:${q.value.style.chart.modal.color}`)
|
|
1330
|
+
}, [n[33] ||= _("span", null, "---", -1), v(" Trend: " + w(T(s)({
|
|
1331
|
+
v: Xn.value.progression.trend * 100,
|
|
1332
|
+
s: "%",
|
|
1333
|
+
r: 1
|
|
1334
|
+
})), 1)], 4)) : h("", !0)
|
|
1335
|
+
], 64)) : h("", !0),
|
|
1336
|
+
[A.value.DONUT].includes(k.value.type) && !W.value ? (x(), g("div", on, [se(ae, {
|
|
1337
|
+
dataset: hn.value,
|
|
1338
|
+
config: Xn.value.donutConfig
|
|
1339
|
+
}, null, 8, ["dataset", "config"])])) : h("", !0)
|
|
1340
|
+
])]),
|
|
1341
|
+
_: 1
|
|
1342
|
+
}, 8, [
|
|
1343
|
+
"backgroundColor",
|
|
1344
|
+
"headerColor",
|
|
1345
|
+
"color",
|
|
1346
|
+
"isCursorPointer"
|
|
1347
|
+
])
|
|
1348
|
+
], 4));
|
|
1349
|
+
}
|
|
1350
|
+
}, [["__scopeId", "data-v-4acdb715"]]);
|
|
1351
|
+
//#endregion
|
|
1352
|
+
export { ve as n, sn as t };
|