vue-data-ui 2.12.5 → 2.12.7-beta.0
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 +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } }, tt = {
|
|
1
|
+
import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as d, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
+
import { u as ye } from "./useNestedProp-tRqS0ZAM.js";
|
|
3
|
+
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a5 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-BiHmNd1-.js";
|
|
4
|
+
import { u as je } from "./usePrinter-CRCbl1WG.js";
|
|
5
|
+
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { v as tt } from "./vClickOutside-C6WiFswA.js";
|
|
7
|
+
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } }, nt = {
|
|
10
9
|
key: 0,
|
|
11
10
|
style: {
|
|
12
11
|
display: "flex",
|
|
13
12
|
flexDirection: "row",
|
|
14
13
|
alignItems: "center"
|
|
15
14
|
}
|
|
16
|
-
},
|
|
15
|
+
}, ut = {
|
|
17
16
|
key: 0,
|
|
18
17
|
style: {
|
|
19
18
|
display: "flex",
|
|
20
19
|
flexDirection: "row",
|
|
21
20
|
alignItems: "center"
|
|
22
21
|
}
|
|
23
|
-
},
|
|
22
|
+
}, st = ["onClick"], rt = ["onClick"], it = ["data-cell"], dt = ["data-cell", "onPointerenter"], vt = ["data-cell"], ct = ["data-cell"], pt = ["data-cell"], ft = ["data-cell"], mt = {
|
|
24
23
|
key: 1,
|
|
25
24
|
ref: "source",
|
|
26
25
|
dir: "auto"
|
|
27
|
-
},
|
|
26
|
+
}, bt = {
|
|
28
27
|
__name: "vue-ui-table-sparkline",
|
|
29
28
|
props: {
|
|
30
29
|
config: {
|
|
@@ -40,65 +39,66 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
|
-
setup(
|
|
44
|
-
|
|
45
|
-
"
|
|
42
|
+
setup(ke, { expose: _e }) {
|
|
43
|
+
Fe((t) => ({
|
|
44
|
+
"6e3712b2": t.tdo
|
|
46
45
|
}));
|
|
47
|
-
const { vue_ui_table_sparkline:
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const Ce = J(() => import("./vue-ui-sparkline-CoL8jiX8.js")), N = J(() => import("./BaseIcon-CZdMutjs.js")), xe = J(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
47
|
+
me(() => {
|
|
48
|
+
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
50
49
|
});
|
|
51
50
|
const e = _({
|
|
52
|
-
get: () =>
|
|
51
|
+
get: () => te(),
|
|
53
52
|
set: (t) => t
|
|
54
|
-
}), { userOptionsVisible:
|
|
55
|
-
function
|
|
56
|
-
const t =
|
|
53
|
+
}), { userOptionsVisible: G, setUserOptionsVisibility: j, keepUserOptionState: ee } = et({ config: e.value });
|
|
54
|
+
function te() {
|
|
55
|
+
const t = ye({
|
|
57
56
|
userConfig: x.config,
|
|
58
|
-
defaultConfig:
|
|
57
|
+
defaultConfig: we
|
|
59
58
|
});
|
|
60
59
|
return t.theme ? {
|
|
61
|
-
...
|
|
62
|
-
userConfig:
|
|
60
|
+
...ye({
|
|
61
|
+
userConfig: He.vue_ui_table_sparkline[t.theme] || x.config,
|
|
63
62
|
defaultConfig: t
|
|
64
63
|
}),
|
|
65
|
-
customPalette:
|
|
64
|
+
customPalette: Re[t.theme] || T
|
|
66
65
|
} : t;
|
|
67
66
|
}
|
|
68
|
-
|
|
69
|
-
e.value =
|
|
70
|
-
}, { deep: !0 }),
|
|
71
|
-
m.value =
|
|
67
|
+
be(() => x.config, (t) => {
|
|
68
|
+
e.value = te(), G.value = !e.value.userOptions.showOnChartHover, ue(), B.value += 1;
|
|
69
|
+
}, { deep: !0 }), be(() => x.dataset, (t) => {
|
|
70
|
+
m.value = $.value, B.value += 1;
|
|
72
71
|
}, { deep: !0 });
|
|
73
|
-
const { isPrinting:
|
|
74
|
-
elementId: `table_${
|
|
72
|
+
const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: ne } = je({
|
|
73
|
+
elementId: `table_${U.value}`,
|
|
75
74
|
fileName: e.value.title.text || "vue-ui-table-sparkline",
|
|
76
75
|
options: e.value.userOptions.print
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
}), Ie = _(() => qe(e.value.customPalette)), F = p(null), L = p(!1), Ae = _(() => e.value.responsiveBreakpoint);
|
|
77
|
+
me(() => {
|
|
78
|
+
ue();
|
|
80
79
|
});
|
|
81
|
-
const
|
|
82
|
-
function
|
|
83
|
-
|
|
80
|
+
const R = p(e.value.colNames), I = Te(null);
|
|
81
|
+
function ue() {
|
|
82
|
+
Xe(x.dataset) && he({
|
|
84
83
|
componentName: "VueUiTableSparkline",
|
|
85
84
|
type: "dataset"
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
G.value = a.contentRect.width < xe.value;
|
|
85
|
+
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((t) => {
|
|
86
|
+
t.forEach((l) => {
|
|
87
|
+
L.value = l.contentRect.width < Ae.value;
|
|
90
88
|
});
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
L.value.push(e.value.colNames[l] || `col ${l}`);
|
|
89
|
+
}), F.value && I.value.observe(F.value), R.value = [];
|
|
90
|
+
for (let t = 0; t < ie.value; t += 1)
|
|
91
|
+
R.value.push(e.value.colNames[t] || `col ${t}`);
|
|
95
92
|
}
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
We(() => {
|
|
94
|
+
I.value && I.value.disconnect();
|
|
95
|
+
});
|
|
96
|
+
const se = _(() => (x.dataset.forEach((t, l) => {
|
|
97
|
+
Je({
|
|
98
98
|
datasetObject: t,
|
|
99
99
|
requiredAttributes: ["name", "values"]
|
|
100
100
|
}).forEach((a) => {
|
|
101
|
-
|
|
101
|
+
he({
|
|
102
102
|
componentName: "VueUiTableSparkline",
|
|
103
103
|
type: "datasetSerieAttribute",
|
|
104
104
|
property: a,
|
|
@@ -106,64 +106,64 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
}), x.dataset.map((t, l) => {
|
|
109
|
-
const a = (t.values || []).map((v) => isNaN(v) ? 0 : v ?? 0), o = a.reduce((v,
|
|
109
|
+
const a = (t.values || []).map((v) => isNaN(v) ? 0 : v ?? 0), o = a.reduce((v, i) => v + i, 0), s = o / a.length, n = Ke(a);
|
|
110
110
|
return {
|
|
111
111
|
...t,
|
|
112
112
|
values: t.values || [],
|
|
113
|
-
color:
|
|
113
|
+
color: Qe(t.color) || Ie.value[l] || T[l] || T[l % T.length],
|
|
114
114
|
sum: o,
|
|
115
|
-
average:
|
|
115
|
+
average: s,
|
|
116
116
|
median: n,
|
|
117
|
-
sparklineDataset: a.map((v,
|
|
118
|
-
period: e.value.colNames[
|
|
117
|
+
sparklineDataset: a.map((v, i) => ({
|
|
118
|
+
period: e.value.colNames[i] || `col ${i}`,
|
|
119
119
|
value: v || 0
|
|
120
120
|
}))
|
|
121
121
|
};
|
|
122
122
|
})));
|
|
123
|
-
function
|
|
123
|
+
function Oe(t) {
|
|
124
124
|
const a = (t[0].values || []).map(
|
|
125
|
-
(
|
|
125
|
+
(s, n) => t.map((v) => v.values[n] || [])
|
|
126
126
|
).map(
|
|
127
|
-
(
|
|
127
|
+
(s) => s.map((n, v) => [n, v]).sort((n, v) => v[0] - n[0]).map((n) => n[1])
|
|
128
128
|
);
|
|
129
|
-
return t.map((
|
|
130
|
-
...
|
|
131
|
-
values:
|
|
129
|
+
return t.map((s, n) => ({
|
|
130
|
+
...s,
|
|
131
|
+
values: s.values || [],
|
|
132
132
|
orders: a[n]
|
|
133
133
|
}));
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
const $ = _(() => Oe(se.value)), m = p($.value), $e = _(() => Math.max(...m.value.map((t) => (t.values || []).length))), H = p(void 0), q = p(!1), b = p(void 0), re = p(1);
|
|
136
|
+
function A() {
|
|
137
|
+
q.value = !1, b.value = void 0, y.value = void 0, re.value = 1, z.value.forEach((t) => t.state = 1), w.value = {
|
|
138
138
|
name: 1,
|
|
139
139
|
sum: 1,
|
|
140
140
|
average: 1,
|
|
141
141
|
median: 1
|
|
142
|
-
}, m.value =
|
|
142
|
+
}, m.value = $.value;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function V(t, l, a) {
|
|
145
145
|
if (["name", "sum", "average", "median"].includes(t.type)) {
|
|
146
|
-
|
|
146
|
+
ze(t.type, l, a);
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
|
-
if (!
|
|
150
|
-
if (S.value = l, y.value = void 0, ![null, void 0].includes(b.value) && l !== b.value && (b.value = void 0,
|
|
151
|
-
b.value = void 0,
|
|
149
|
+
if (!ce(l)) return;
|
|
150
|
+
if (S.value = l, y.value = void 0, ![null, void 0].includes(b.value) && l !== b.value && (b.value = void 0, A()), z.value[l].state === a && b.value === l) {
|
|
151
|
+
b.value = void 0, A();
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
const o =
|
|
156
|
-
|
|
157
|
-
const v = o.map((
|
|
158
|
-
m.value = v,
|
|
154
|
+
q.value = !0, b.value = l;
|
|
155
|
+
const o = $.value.map((i) => i.values[l] || []), s = a;
|
|
156
|
+
z.value[l].state = s, re.value = s, l === H.value ? H.value = void 0 : H.value = l;
|
|
157
|
+
const v = o.map((i, h) => [h, i]).sort((i, h) => s * (h[1] - i[1])).map((i) => i[0]).map((i) => $.value[i]);
|
|
158
|
+
m.value = v, B.value += 1;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
let t =
|
|
160
|
+
const ie = _(() => Math.max(...x.dataset.map((t) => (t.values || []).length))), k = _(() => {
|
|
161
|
+
let t = R.value.map((a) => ({
|
|
162
162
|
type: "reg",
|
|
163
163
|
value: a
|
|
164
164
|
}));
|
|
165
165
|
if (!t.length)
|
|
166
|
-
for (let a = 0; a <
|
|
166
|
+
for (let a = 0; a < ie.value; a += 1)
|
|
167
167
|
t.push({ type: "reg", value: `col ${a + 1}` });
|
|
168
168
|
e.value.showTotal && (t = [...t, { type: "sum", value: e.value.translations.total }]);
|
|
169
169
|
let l;
|
|
@@ -178,80 +178,80 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
178
178
|
average: 1,
|
|
179
179
|
median: 1
|
|
180
180
|
}), y = p(void 0);
|
|
181
|
-
function
|
|
182
|
-
if (!m.value || m.value.length === 0 || !
|
|
183
|
-
if (y.value !== t && (y.value = void 0), ![null, void 0].includes(b.value) && l !== b.value &&
|
|
184
|
-
y.value = void 0,
|
|
181
|
+
function ze(t, l, a) {
|
|
182
|
+
if (!m.value || m.value.length === 0 || !pe(t)) return;
|
|
183
|
+
if (y.value !== t && (y.value = void 0), ![null, void 0].includes(b.value) && l !== b.value && A(), b.value = void 0, w.value[t] === a && y.value) {
|
|
184
|
+
y.value = void 0, A();
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
y.value = t,
|
|
188
|
-
const o = w.value[t],
|
|
189
|
-
const
|
|
190
|
-
return typeof
|
|
187
|
+
y.value = t, q.value = !0, w.value[t] = a, [null, void 0].includes(l) || (z.value[l].state = w.value[t]);
|
|
188
|
+
const o = w.value[t], s = [...m.value].sort((n, v) => {
|
|
189
|
+
const i = n[t] ?? (typeof n[t] == "number" ? 0 : ""), h = v[t] ?? (typeof v[t] == "number" ? 0 : "");
|
|
190
|
+
return typeof i == "string" && typeof h == "string" ? o === -1 ? i.localeCompare(h) : h.localeCompare(i) : typeof i == "number" && typeof h == "number" ? o === -1 ? i - h : h - i : 0;
|
|
191
191
|
});
|
|
192
|
-
m.value =
|
|
192
|
+
m.value = s;
|
|
193
193
|
}
|
|
194
|
-
const S = p(void 0),
|
|
195
|
-
function
|
|
196
|
-
S.value = t,
|
|
194
|
+
const S = p(void 0), X = p(void 0);
|
|
195
|
+
function De({ dataIndex: t, serieIndex: l }) {
|
|
196
|
+
S.value = t, X.value = l, E.value[t] && !L.value && E.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
function
|
|
200
|
-
|
|
198
|
+
const de = p(!1);
|
|
199
|
+
function Pe(t) {
|
|
200
|
+
de.value = t, Z.value += 1;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
204
|
-
const t = [e.value.translations.serie].concat(k.value), l =
|
|
205
|
-
[
|
|
206
|
-
|
|
207
|
-
[
|
|
208
|
-
[
|
|
209
|
-
[
|
|
210
|
-
]), a = [t].concat(l), o =
|
|
211
|
-
|
|
202
|
+
function ve() {
|
|
203
|
+
Ee(() => {
|
|
204
|
+
const t = [e.value.translations.serie].concat(k.value), l = se.value.map((s, n) => [
|
|
205
|
+
[s.name],
|
|
206
|
+
s.values,
|
|
207
|
+
[s.sum],
|
|
208
|
+
[s.average],
|
|
209
|
+
[s.median]
|
|
210
|
+
]), a = [t].concat(l), o = Ye(a);
|
|
211
|
+
Ze({
|
|
212
212
|
csvContent: o,
|
|
213
213
|
title: e.value.title.text || "vue-ui-table-sparkline"
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ce(t) {
|
|
218
218
|
return e.value.sortedDataColumnIndices.includes(t);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function pe(t) {
|
|
221
221
|
return t.type === "name" || t === "name" ? e.value.sortedSeriesName : t.type === "sum" || t === "sum" ? e.value.sortedSum : t.type === "average" || t === "average" ? e.value.sortedAverage : t.type === "median" || t === "median" ? e.value.sortedMedian : !1;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
return ["sum", "average", "median"].includes(l.type) ? y.value === l.type && w.value[l.type] === a ? 1 : 0.3 : t === b.value &&
|
|
223
|
+
function fe(t, l, a) {
|
|
224
|
+
return ["sum", "average", "median"].includes(l.type) ? y.value === l.type && w.value[l.type] === a ? 1 : 0.3 : t === b.value && z.value[t].state === a ? 1 : 0.3;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
e.value.resetSortOnClickOutside &&
|
|
226
|
+
function Ne() {
|
|
227
|
+
e.value.resetSortOnClickOutside && A();
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const z = _({
|
|
230
230
|
get: () => k.value.map((t) => ({ state: 1 })),
|
|
231
231
|
set: (t) => t
|
|
232
232
|
});
|
|
233
|
-
return
|
|
234
|
-
generatePdf:
|
|
235
|
-
generateImage:
|
|
236
|
-
generateCsv:
|
|
237
|
-
restoreOrder:
|
|
233
|
+
return _e({
|
|
234
|
+
generatePdf: oe,
|
|
235
|
+
generateImage: ne,
|
|
236
|
+
generateCsv: ve,
|
|
237
|
+
restoreOrder: A
|
|
238
238
|
}), (t, l) => (d(), c("div", {
|
|
239
239
|
ref_key: "tableContainer",
|
|
240
|
-
ref:
|
|
241
|
-
class:
|
|
240
|
+
ref: F,
|
|
241
|
+
class: K({ "vue-ui-table-sparkline": !0, "vue-ui-responsive": L.value }),
|
|
242
242
|
style: { overflow: "hidden" },
|
|
243
|
-
id: `table_${
|
|
244
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
245
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
243
|
+
id: `table_${U.value}`,
|
|
244
|
+
onMouseenter: l[3] || (l[3] = () => u(j)(!0)),
|
|
245
|
+
onMouseleave: l[4] || (l[4] = () => u(j)(!1))
|
|
246
246
|
}, [
|
|
247
247
|
e.value.title.text ? (d(), c("div", {
|
|
248
248
|
key: 0,
|
|
249
249
|
class: "vue-ui-table-sparkline-caption",
|
|
250
|
-
style:
|
|
250
|
+
style: r({ backgroundColor: e.value.title.backgroundColor })
|
|
251
251
|
}, [
|
|
252
252
|
f("div", {
|
|
253
253
|
class: "atom-title",
|
|
254
|
-
style:
|
|
254
|
+
style: r({
|
|
255
255
|
fontSize: `${e.value.title.fontSize}px`,
|
|
256
256
|
fontWeight: e.value.title.bold ? "bold" : "normal",
|
|
257
257
|
color: e.value.title.color,
|
|
@@ -261,7 +261,7 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
261
261
|
e.value.title.subtitle.text ? (d(), c("div", {
|
|
262
262
|
key: 0,
|
|
263
263
|
class: "atom-subtitle",
|
|
264
|
-
style:
|
|
264
|
+
style: r({
|
|
265
265
|
fontSize: `${e.value.title.subtitle.fontSize}px`,
|
|
266
266
|
fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
|
|
267
267
|
color: e.value.title.subtitle.color,
|
|
@@ -272,25 +272,25 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
272
272
|
f("div", {
|
|
273
273
|
style: { overflow: "auto" },
|
|
274
274
|
onPointerleave: l[2] || (l[2] = (a) => {
|
|
275
|
-
|
|
275
|
+
X.value = void 0, S.value = void 0;
|
|
276
276
|
})
|
|
277
277
|
}, [
|
|
278
278
|
f("table", {
|
|
279
279
|
class: "vue-ui-data-table",
|
|
280
|
-
style:
|
|
280
|
+
style: r({ fontFamily: e.value.fontFamily, position: "relative" })
|
|
281
281
|
}, [
|
|
282
|
-
f("thead",
|
|
283
|
-
|
|
282
|
+
f("thead", ot, [
|
|
283
|
+
Me((d(), c("tr", {
|
|
284
284
|
role: "row",
|
|
285
285
|
class: "vue-ui-data-table__thead-row",
|
|
286
|
-
style:
|
|
286
|
+
style: r({
|
|
287
287
|
backgroundColor: e.value.thead.backgroundColor,
|
|
288
288
|
color: e.value.thead.color
|
|
289
289
|
})
|
|
290
290
|
}, [
|
|
291
291
|
f("th", {
|
|
292
292
|
role: "cell",
|
|
293
|
-
style:
|
|
293
|
+
style: r({
|
|
294
294
|
backgroundColor: e.value.thead.backgroundColor,
|
|
295
295
|
border: e.value.thead.outline,
|
|
296
296
|
textAlign: e.value.thead.textAlign,
|
|
@@ -299,7 +299,7 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
299
299
|
class: "sticky-col-first"
|
|
300
300
|
}, [
|
|
301
301
|
f("div", {
|
|
302
|
-
style:
|
|
302
|
+
style: r({
|
|
303
303
|
display: "flex",
|
|
304
304
|
flexDirection: "row",
|
|
305
305
|
alignItems: "center",
|
|
@@ -308,29 +308,29 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
308
308
|
})
|
|
309
309
|
}, [
|
|
310
310
|
f("span", null, C(e.value.translations.serie), 1),
|
|
311
|
-
m.value.length > 1 && e.value.sortedSeriesName ? (d(), c("div",
|
|
311
|
+
m.value.length > 1 && e.value.sortedSeriesName ? (d(), c("div", nt, [
|
|
312
312
|
f("button", {
|
|
313
313
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
314
|
-
onClick: l[0] || (l[0] = (a) =>
|
|
314
|
+
onClick: l[0] || (l[0] = (a) => V({ type: "name" }, null, -1))
|
|
315
315
|
}, [
|
|
316
|
-
|
|
316
|
+
D(u(N), {
|
|
317
317
|
size: 12,
|
|
318
318
|
name: "arrowBottom",
|
|
319
319
|
stroke: e.value.thead.color,
|
|
320
|
-
style:
|
|
320
|
+
style: r({
|
|
321
321
|
opacity: y.value === "name" && w.value.name === -1 ? 1 : 0.3
|
|
322
322
|
})
|
|
323
323
|
}, null, 8, ["stroke", "style"])
|
|
324
324
|
]),
|
|
325
325
|
f("button", {
|
|
326
326
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
327
|
-
onClick: l[1] || (l[1] = (a) =>
|
|
327
|
+
onClick: l[1] || (l[1] = (a) => V({ type: "name" }, null, 1))
|
|
328
328
|
}, [
|
|
329
|
-
|
|
329
|
+
D(u(N), {
|
|
330
330
|
size: 12,
|
|
331
331
|
name: "arrowTop",
|
|
332
332
|
stroke: e.value.thead.color,
|
|
333
|
-
style:
|
|
333
|
+
style: r({
|
|
334
334
|
opacity: y.value === "name" && w.value.name === 1 ? 1 : 0.3
|
|
335
335
|
})
|
|
336
336
|
}, null, 8, ["stroke", "style"])
|
|
@@ -338,9 +338,9 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
338
338
|
])) : g("", !0)
|
|
339
339
|
], 4)
|
|
340
340
|
], 4),
|
|
341
|
-
(d(!0), c(
|
|
341
|
+
(d(!0), c(Q, null, Y(k.value, (a, o) => (d(), c("th", {
|
|
342
342
|
role: "cell",
|
|
343
|
-
style:
|
|
343
|
+
style: r({
|
|
344
344
|
background: e.value.thead.backgroundColor,
|
|
345
345
|
border: e.value.thead.outline,
|
|
346
346
|
textAlign: e.value.thead.textAlign,
|
|
@@ -348,10 +348,10 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
348
348
|
minWidth: o === k.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
|
|
349
349
|
paddingRight: o === k.value.length - 1 && e.value.userOptions.show ? "36px" : ""
|
|
350
350
|
}),
|
|
351
|
-
class:
|
|
351
|
+
class: K({ "sticky-col": o === k.value.length - 1 && e.value.showSparklines })
|
|
352
352
|
}, [
|
|
353
353
|
f("div", {
|
|
354
|
-
style:
|
|
354
|
+
style: r({
|
|
355
355
|
display: "flex",
|
|
356
356
|
flexDirection: "row",
|
|
357
357
|
alignItems: "center",
|
|
@@ -360,113 +360,113 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
360
360
|
})
|
|
361
361
|
}, [
|
|
362
362
|
f("span", null, C(a.value), 1),
|
|
363
|
-
m.value.length > 1 && (
|
|
363
|
+
m.value.length > 1 && (ce(o) || pe(a)) ? (d(), c("div", ut, [
|
|
364
364
|
f("button", {
|
|
365
365
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
366
|
-
onClick: () =>
|
|
366
|
+
onClick: () => V(a, o, -1)
|
|
367
367
|
}, [
|
|
368
|
-
|
|
368
|
+
D(u(N), {
|
|
369
369
|
size: 12,
|
|
370
370
|
name: "arrowBottom",
|
|
371
371
|
stroke: e.value.thead.color,
|
|
372
|
-
style:
|
|
373
|
-
opacity:
|
|
372
|
+
style: r({
|
|
373
|
+
opacity: fe(o, a, -1)
|
|
374
374
|
})
|
|
375
375
|
}, null, 8, ["stroke", "style"])
|
|
376
|
-
], 8,
|
|
376
|
+
], 8, st),
|
|
377
377
|
f("button", {
|
|
378
378
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
379
|
-
onClick: () =>
|
|
379
|
+
onClick: () => V(a, o, 1)
|
|
380
380
|
}, [
|
|
381
|
-
|
|
381
|
+
D(u(N), {
|
|
382
382
|
size: 12,
|
|
383
383
|
name: "arrowTop",
|
|
384
384
|
stroke: e.value.thead.color,
|
|
385
|
-
style:
|
|
386
|
-
opacity:
|
|
385
|
+
style: r({
|
|
386
|
+
opacity: fe(o, a, 1)
|
|
387
387
|
})
|
|
388
388
|
}, null, 8, ["stroke", "style"])
|
|
389
|
-
], 8,
|
|
389
|
+
], 8, rt)
|
|
390
390
|
])) : g("", !0)
|
|
391
391
|
], 4),
|
|
392
|
-
e.value.userOptions.show && o === k.value.length - 1 && (
|
|
392
|
+
e.value.userOptions.show && o === k.value.length - 1 && (u(ee) || u(G)) ? (d(), Ue(u(xe), {
|
|
393
393
|
ref_for: !0,
|
|
394
394
|
ref: "details",
|
|
395
|
-
key: `user_option_${
|
|
395
|
+
key: `user_option_${Z.value}`,
|
|
396
396
|
backgroundColor: e.value.thead.backgroundColor,
|
|
397
397
|
color: e.value.thead.color,
|
|
398
|
-
isPrinting:
|
|
399
|
-
isImaging:
|
|
400
|
-
uid:
|
|
398
|
+
isPrinting: u(ae),
|
|
399
|
+
isImaging: u(le),
|
|
400
|
+
uid: U.value,
|
|
401
401
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
402
402
|
hasXls: e.value.userOptions.buttons.csv,
|
|
403
403
|
hasImg: e.value.userOptions.buttons.img,
|
|
404
404
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
405
|
-
isFullscreen:
|
|
405
|
+
isFullscreen: de.value,
|
|
406
406
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
407
|
-
chartElement:
|
|
407
|
+
chartElement: F.value,
|
|
408
408
|
position: e.value.userOptions.position,
|
|
409
|
-
onToggleFullscreen:
|
|
410
|
-
onGeneratePdf:
|
|
411
|
-
onGenerateImage:
|
|
412
|
-
onGenerateCsv:
|
|
413
|
-
style:
|
|
414
|
-
visibility:
|
|
409
|
+
onToggleFullscreen: Pe,
|
|
410
|
+
onGeneratePdf: u(oe),
|
|
411
|
+
onGenerateImage: u(ne),
|
|
412
|
+
onGenerateCsv: ve,
|
|
413
|
+
style: r({
|
|
414
|
+
visibility: u(ee) ? u(G) ? "visible" : "hidden" : "visible"
|
|
415
415
|
})
|
|
416
|
-
},
|
|
416
|
+
}, Be({ _: 2 }, [
|
|
417
417
|
t.$slots.menuIcon ? {
|
|
418
418
|
name: "menuIcon",
|
|
419
|
-
fn:
|
|
420
|
-
|
|
419
|
+
fn: P(({ isOpen: s, color: n }) => [
|
|
420
|
+
O(t.$slots, "menuIcon", ge({ ref_for: !0 }, { isOpen: s, color: n }), void 0, !0)
|
|
421
421
|
]),
|
|
422
422
|
key: "0"
|
|
423
423
|
} : void 0,
|
|
424
424
|
t.$slots.optionPdf ? {
|
|
425
425
|
name: "optionPdf",
|
|
426
|
-
fn:
|
|
427
|
-
|
|
426
|
+
fn: P(() => [
|
|
427
|
+
O(t.$slots, "optionPdf", {}, void 0, !0)
|
|
428
428
|
]),
|
|
429
429
|
key: "1"
|
|
430
430
|
} : void 0,
|
|
431
431
|
t.$slots.optionCsv ? {
|
|
432
432
|
name: "optionCsv",
|
|
433
|
-
fn:
|
|
434
|
-
|
|
433
|
+
fn: P(() => [
|
|
434
|
+
O(t.$slots, "optionCsv", {}, void 0, !0)
|
|
435
435
|
]),
|
|
436
436
|
key: "2"
|
|
437
437
|
} : void 0,
|
|
438
438
|
t.$slots.optionImg ? {
|
|
439
439
|
name: "optionImg",
|
|
440
|
-
fn:
|
|
441
|
-
|
|
440
|
+
fn: P(() => [
|
|
441
|
+
O(t.$slots, "optionImg", {}, void 0, !0)
|
|
442
442
|
]),
|
|
443
443
|
key: "3"
|
|
444
444
|
} : void 0,
|
|
445
445
|
t.$slots.optionFullscreen ? {
|
|
446
446
|
name: "optionFullscreen",
|
|
447
|
-
fn:
|
|
448
|
-
|
|
447
|
+
fn: P(({ toggleFullscreen: s, isFullscreen: n }) => [
|
|
448
|
+
O(t.$slots, "optionFullscreen", ge({ ref_for: !0 }, { toggleFullscreen: s, isFullscreen: n }), void 0, !0)
|
|
449
449
|
]),
|
|
450
450
|
key: "4"
|
|
451
451
|
} : void 0
|
|
452
452
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
|
|
453
453
|
], 6))), 256))
|
|
454
454
|
], 4)), [
|
|
455
|
-
[
|
|
455
|
+
[u(tt), Ne]
|
|
456
456
|
])
|
|
457
457
|
]),
|
|
458
458
|
f("tbody", null, [
|
|
459
|
-
(d(!0), c(
|
|
459
|
+
(d(!0), c(Q, null, Y(m.value, (a, o) => (d(), c("tr", {
|
|
460
460
|
role: "row",
|
|
461
|
-
style:
|
|
461
|
+
style: r({
|
|
462
462
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
463
463
|
color: e.value.tbody.color
|
|
464
464
|
}),
|
|
465
|
-
class:
|
|
465
|
+
class: K({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 })
|
|
466
466
|
}, [
|
|
467
467
|
f("td", {
|
|
468
468
|
role: "cell",
|
|
469
|
-
style:
|
|
469
|
+
style: r({
|
|
470
470
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
471
471
|
border: e.value.tbody.outline,
|
|
472
472
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
@@ -478,7 +478,7 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
478
478
|
}, [
|
|
479
479
|
f("div", {
|
|
480
480
|
dir: "auto",
|
|
481
|
-
style:
|
|
481
|
+
style: r({
|
|
482
482
|
display: "flex",
|
|
483
483
|
flexDirection: "row",
|
|
484
484
|
alignItems: "center",
|
|
@@ -488,18 +488,18 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
488
488
|
}, [
|
|
489
489
|
e.value.tbody.showColorMarker ? (d(), c("span", {
|
|
490
490
|
key: 0,
|
|
491
|
-
style:
|
|
491
|
+
style: r({ color: a.color })
|
|
492
492
|
}, "⬤", 4)) : g("", !0),
|
|
493
493
|
f("span", null, C(a.name ?? "-"), 1)
|
|
494
494
|
], 4)
|
|
495
|
-
], 12,
|
|
496
|
-
(d(!0), c(
|
|
495
|
+
], 12, it),
|
|
496
|
+
(d(!0), c(Q, null, Y($e.value, (s, n) => (d(), c("td", {
|
|
497
497
|
dir: "auto",
|
|
498
498
|
role: "cell",
|
|
499
499
|
ref_for: !0,
|
|
500
500
|
ref_key: "TD",
|
|
501
|
-
ref:
|
|
502
|
-
style:
|
|
501
|
+
ref: E,
|
|
502
|
+
style: r({
|
|
503
503
|
border: e.value.tbody.outline,
|
|
504
504
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
505
505
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -509,24 +509,24 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
509
509
|
"data-cell": k.value[n] ? k.value[n].value : "",
|
|
510
510
|
class: "vue-ui-data-table__tbody__td",
|
|
511
511
|
onPointerenter: (v) => {
|
|
512
|
-
|
|
512
|
+
X.value = o, S.value = n;
|
|
513
513
|
}
|
|
514
|
-
}, C([null, void 0].includes(a.values[n]) ? "-" :
|
|
514
|
+
}, C([null, void 0].includes(a.values[n]) ? "-" : u(W)(
|
|
515
515
|
e.value.formatter,
|
|
516
516
|
Number(a.values[n]),
|
|
517
|
-
|
|
517
|
+
u(M)({
|
|
518
518
|
p: e.value.prefix,
|
|
519
519
|
v: Number(a.values[n]),
|
|
520
520
|
s: e.value.suffix,
|
|
521
521
|
r: e.value.roundingValues
|
|
522
522
|
}),
|
|
523
523
|
{ datapoint: a, seriesIndex: o, datapointIndex: n }
|
|
524
|
-
)), 45,
|
|
524
|
+
)), 45, dt))), 256)),
|
|
525
525
|
e.value.showTotal ? (d(), c("td", {
|
|
526
526
|
key: 0,
|
|
527
527
|
dir: "auto",
|
|
528
528
|
role: "cell",
|
|
529
|
-
style:
|
|
529
|
+
style: r({
|
|
530
530
|
border: e.value.tbody.outline,
|
|
531
531
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
532
532
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -534,22 +534,22 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
534
534
|
}),
|
|
535
535
|
"data-cell": e.value.translations.total,
|
|
536
536
|
class: "vue-ui-data-table__tbody__td"
|
|
537
|
-
}, C(
|
|
537
|
+
}, C(u(W)(
|
|
538
538
|
e.value.formatter,
|
|
539
539
|
a.sum,
|
|
540
|
-
|
|
540
|
+
u(M)({
|
|
541
541
|
p: e.value.prefix,
|
|
542
542
|
v: a.sum,
|
|
543
543
|
s: e.value.suffix,
|
|
544
544
|
r: e.value.roundingTotal
|
|
545
545
|
}),
|
|
546
546
|
{ datapoint: a.sum, seriesIndex: o }
|
|
547
|
-
)), 13,
|
|
547
|
+
)), 13, vt)) : g("", !0),
|
|
548
548
|
e.value.showAverage ? (d(), c("td", {
|
|
549
549
|
key: 1,
|
|
550
550
|
dir: "auto",
|
|
551
551
|
role: "cell",
|
|
552
|
-
style:
|
|
552
|
+
style: r({
|
|
553
553
|
border: e.value.tbody.outline,
|
|
554
554
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
555
555
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -557,22 +557,22 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
557
557
|
}),
|
|
558
558
|
"data-cell": e.value.translations.average,
|
|
559
559
|
class: "vue-ui-data-table__tbody__td"
|
|
560
|
-
}, C(
|
|
560
|
+
}, C(u(W)(
|
|
561
561
|
e.value.formatter,
|
|
562
562
|
a.average,
|
|
563
|
-
|
|
563
|
+
u(M)({
|
|
564
564
|
p: e.value.prefix,
|
|
565
565
|
v: a.average,
|
|
566
566
|
s: e.value.suffix,
|
|
567
567
|
r: e.value.roundingAverage
|
|
568
568
|
}),
|
|
569
569
|
{ datapoint: a.average, seriesIndex: o }
|
|
570
|
-
)), 13,
|
|
570
|
+
)), 13, ct)) : g("", !0),
|
|
571
571
|
e.value.showMedian ? (d(), c("td", {
|
|
572
572
|
key: 2,
|
|
573
573
|
dir: "auto",
|
|
574
574
|
role: "cell",
|
|
575
|
-
style:
|
|
575
|
+
style: r({
|
|
576
576
|
border: e.value.tbody.outline,
|
|
577
577
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
578
578
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -580,22 +580,22 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
580
580
|
}),
|
|
581
581
|
"data-cell": e.value.translations.median,
|
|
582
582
|
class: "vue-ui-data-table__tbody__td"
|
|
583
|
-
}, C(
|
|
583
|
+
}, C(u(W)(
|
|
584
584
|
e.value.formatter,
|
|
585
585
|
a.median,
|
|
586
|
-
|
|
586
|
+
u(M)({
|
|
587
587
|
p: e.value.prefix,
|
|
588
588
|
v: a.median,
|
|
589
589
|
s: e.value.suffix,
|
|
590
590
|
r: e.value.roundingMedian
|
|
591
591
|
}),
|
|
592
592
|
{ datapoint: a.median, seriesIndex: o }
|
|
593
|
-
)), 13,
|
|
593
|
+
)), 13, pt)) : g("", !0),
|
|
594
594
|
e.value.showSparklines ? (d(), c("td", {
|
|
595
595
|
key: 3,
|
|
596
596
|
role: "cell",
|
|
597
597
|
"data-cell": e.value.translations.chart,
|
|
598
|
-
style:
|
|
598
|
+
style: r({
|
|
599
599
|
border: e.value.tbody.outline,
|
|
600
600
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
601
601
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -605,8 +605,8 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
605
605
|
}),
|
|
606
606
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
607
607
|
}, [
|
|
608
|
-
|
|
609
|
-
onHoverIndex: ({ index:
|
|
608
|
+
D(u(Ce), {
|
|
609
|
+
onHoverIndex: ({ index: s }) => De({ dataIndex: s, serieIndex: o }),
|
|
610
610
|
"height-ratio": e.value.sparkline.dimensions.heightRatio,
|
|
611
611
|
"forced-padding": 30,
|
|
612
612
|
dataset: a.sparklineDataset,
|
|
@@ -617,7 +617,7 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
617
617
|
style: {
|
|
618
618
|
backgroundColor: "transparent",
|
|
619
619
|
animation: {
|
|
620
|
-
show: e.value.sparkline.animation.show && !
|
|
620
|
+
show: e.value.sparkline.animation.show && !u(ae) && !u(le),
|
|
621
621
|
animationFrames: e.value.sparkline.animation.animationFrames
|
|
622
622
|
},
|
|
623
623
|
line: {
|
|
@@ -644,17 +644,17 @@ const je = ["id"], et = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
}, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"])
|
|
647
|
-
], 12,
|
|
647
|
+
], 12, ft)) : g("", !0)
|
|
648
648
|
], 6))), 256))
|
|
649
649
|
])
|
|
650
650
|
], 4)
|
|
651
651
|
], 32),
|
|
652
|
-
t.$slots.source ? (d(), c("div",
|
|
653
|
-
|
|
652
|
+
t.$slots.source ? (d(), c("div", mt, [
|
|
653
|
+
O(t.$slots, "source", {}, void 0, !0)
|
|
654
654
|
], 512)) : g("", !0)
|
|
655
|
-
], 42,
|
|
655
|
+
], 42, lt));
|
|
656
656
|
}
|
|
657
|
-
},
|
|
657
|
+
}, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-0812843e"]]);
|
|
658
658
|
export {
|
|
659
|
-
|
|
659
|
+
wt as default
|
|
660
660
|
};
|