vue-data-ui 3.6.0 → 3.7.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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,30 +1,47 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
1
|
+
import { useCssVars as Le, defineAsyncComponent as X, ref as f, useSlots as Re, onMounted as ge, computed as _, watch as me, shallowRef as je, onBeforeUnmount as He, createElementBlock as c, openBlock as v, unref as u, normalizeClass as J, createCommentVNode as m, createElementVNode as p, normalizeStyle as s, toDisplayString as A, withDirectives as qe, createVNode as F, Fragment as K, renderList as Q, createBlock as Xe, createSlots as Je, withCtx as z, renderSlot as O, mergeProps as ye, nextTick as Ke } from "vue";
|
|
2
|
+
import { u as Qe, a as Y } from "./useNestedProp-CWo6bftQ.js";
|
|
3
|
+
import { c as Ye, i as Ze, p as T, j as et, o as tt, g as ke, k as lt, ak as at, l as ot, a as B, d as V, u as nt, q as ut } from "./lib-C5BH09_g.js";
|
|
4
|
+
import { u as rt } from "./usePrinter-DCJzEiS8.js";
|
|
5
|
+
import { u as st } from "./useThemeCheck-DGJ31Vi5.js";
|
|
6
|
+
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { v as dt } from "./vClickOutside-C6WiFswA.js";
|
|
8
|
+
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const he = { title: { backgroundColor: "#1A1A1A", color: "#CCCCCC", subtitle: { color: "#757575" } }, thead: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, tbody: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, Ce = { title: { backgroundColor: "#FFF8E1", color: "#424242", subtitle: { color: "#757575" } }, thead: { backgroundColor: "#FFF8E1", color: "#424242" }, tbody: { backgroundColor: "#FFF8E1", color: "#424242" } }, _e = { title: { backgroundColor: "#1E1E1E", color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, thead: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, tbody: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, Ae = { title: { backgroundColor: "#1A1A1A", color: "#66CC66", subtitle: { color: "#99AA99" } }, thead: { backgroundColor: "#1A1A1A", color: "#99AA99" }, tbody: { backgroundColor: "#1A1A1A", color: "#99AA99" } }, xe = { title: { backgroundColor: "#fbfafa", color: "#8A9892", subtitle: { color: "#99AA99" } }, thead: { backgroundColor: "#fbfafa", color: "#8A9892" }, tbody: { backgroundColor: "#fbfafa", color: "#A0AC94" } }, Se = { title: { backgroundColor: "#f6f6fb", color: "#50606C", subtitle: { color: "#718890" } }, thead: { backgroundColor: "#f6f6fb", color: "#50606C" }, tbody: { backgroundColor: "#f6f6fb", color: "#50606C" } }, we = {
|
|
10
|
+
default: {},
|
|
11
|
+
dark: he,
|
|
12
|
+
celebration: Ce,
|
|
13
|
+
celebrationNight: _e,
|
|
14
|
+
hack: Ae,
|
|
15
|
+
zen: xe,
|
|
16
|
+
concrete: Se
|
|
17
|
+
}, Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
celebration: Ce,
|
|
20
|
+
celebrationNight: _e,
|
|
21
|
+
concrete: Se,
|
|
22
|
+
dark: he,
|
|
23
|
+
default: we,
|
|
24
|
+
hack: Ae,
|
|
25
|
+
zen: xe
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), ct = ["id"], ft = { style: { "z-index": "1", "padding-right": "24px" } }, pt = {
|
|
10
27
|
key: 0,
|
|
11
28
|
style: {
|
|
12
29
|
display: "flex",
|
|
13
30
|
flexDirection: "row",
|
|
14
31
|
alignItems: "center"
|
|
15
32
|
}
|
|
16
|
-
},
|
|
33
|
+
}, bt = {
|
|
17
34
|
key: 0,
|
|
18
35
|
style: {
|
|
19
36
|
display: "flex",
|
|
20
37
|
flexDirection: "row",
|
|
21
38
|
alignItems: "center"
|
|
22
39
|
}
|
|
23
|
-
},
|
|
40
|
+
}, gt = ["onClick"], mt = ["onClick"], yt = ["data-cell"], kt = ["data-cell", "onPointerenter"], ht = ["data-cell"], Ct = ["data-cell"], _t = ["data-cell"], At = ["data-cell"], xt = {
|
|
24
41
|
key: 1,
|
|
25
42
|
ref: "source",
|
|
26
43
|
dir: "auto"
|
|
27
|
-
},
|
|
44
|
+
}, St = {
|
|
28
45
|
__name: "vue-ui-table-sparkline",
|
|
29
46
|
props: {
|
|
30
47
|
config: {
|
|
@@ -40,258 +57,265 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
40
57
|
}
|
|
41
58
|
}
|
|
42
59
|
},
|
|
43
|
-
setup(
|
|
44
|
-
|
|
45
|
-
|
|
60
|
+
setup(Ie, { expose: Oe }) {
|
|
61
|
+
Le((t) => ({
|
|
62
|
+
v3ac96fca: t.tdo
|
|
46
63
|
}));
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
const $e = X(() => import("./vue-ui-sparkline-BHHwO_cV.js").then((t) => t.b)), P = X(() => import("./BaseIcon-CofSxalQ.js")), De = X(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_table_sparkline: Fe } = Qe(), { isThemeValid: ze, warnInvalidTheme: Pe } = st(), h = Ie, M = f(Ye()), Z = f(0), W = f(0), U = f(null), Ee = Re();
|
|
65
|
+
ge(() => {
|
|
66
|
+
Ee["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
50
67
|
});
|
|
51
68
|
const e = _({
|
|
52
|
-
get: () =>
|
|
69
|
+
get: () => le(),
|
|
53
70
|
set: (t) => t
|
|
54
|
-
}), { userOptionsVisible: G, setUserOptionsVisibility:
|
|
55
|
-
function
|
|
56
|
-
const t =
|
|
57
|
-
userConfig:
|
|
58
|
-
defaultConfig:
|
|
71
|
+
}), { userOptionsVisible: G, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value });
|
|
72
|
+
function le() {
|
|
73
|
+
const t = Y({
|
|
74
|
+
userConfig: h.config,
|
|
75
|
+
defaultConfig: Fe
|
|
76
|
+
}), a = t.theme;
|
|
77
|
+
if (!a) return t;
|
|
78
|
+
if (!ze.value(t))
|
|
79
|
+
return Pe(t), t;
|
|
80
|
+
const l = Y({
|
|
81
|
+
userConfig: we[a] || h.config,
|
|
82
|
+
defaultConfig: t
|
|
83
|
+
}), n = Y({
|
|
84
|
+
userConfig: h.config,
|
|
85
|
+
defaultConfig: l
|
|
59
86
|
});
|
|
60
|
-
return
|
|
61
|
-
...
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
customPalette: Re[t.theme] || T
|
|
66
|
-
} : t;
|
|
87
|
+
return {
|
|
88
|
+
...n,
|
|
89
|
+
customPalette: n.customPalette.length ? n.customPalette : Ze[a] || T
|
|
90
|
+
};
|
|
67
91
|
}
|
|
68
|
-
|
|
69
|
-
e.value =
|
|
70
|
-
}, { deep: !0 }),
|
|
71
|
-
|
|
92
|
+
me(() => h.config, (t) => {
|
|
93
|
+
e.value = le(), G.value = !e.value.userOptions.showOnChartHover, re(), W.value += 1;
|
|
94
|
+
}, { deep: !0 }), me(() => h.dataset, (t) => {
|
|
95
|
+
b.value = $.value, W.value += 1;
|
|
72
96
|
}, { deep: !0 });
|
|
73
|
-
const { isPrinting: ae, isImaging:
|
|
74
|
-
elementId: `table_${
|
|
97
|
+
const { isPrinting: ae, isImaging: oe, generatePdf: ne, generateImage: ue } = rt({
|
|
98
|
+
elementId: `table_${M.value}`,
|
|
75
99
|
fileName: e.value.title.text || "vue-ui-table-sparkline",
|
|
76
100
|
options: e.value.userOptions.print
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
|
|
101
|
+
}), Ne = _(() => et(e.value.customPalette)), E = f(null), L = f(!1), Te = _(() => e.value.responsiveBreakpoint);
|
|
102
|
+
ge(() => {
|
|
103
|
+
re();
|
|
80
104
|
});
|
|
81
|
-
const R =
|
|
82
|
-
function
|
|
83
|
-
|
|
105
|
+
const R = f(e.value.colNames), w = je(null);
|
|
106
|
+
function re() {
|
|
107
|
+
tt(h.dataset) && ke({
|
|
84
108
|
componentName: "VueUiTableSparkline",
|
|
85
109
|
type: "dataset"
|
|
86
|
-
}),
|
|
87
|
-
t.forEach((
|
|
88
|
-
L.value =
|
|
110
|
+
}), w.value && w.value.disconnect(), w.value = new ResizeObserver((t) => {
|
|
111
|
+
t.forEach((a) => {
|
|
112
|
+
L.value = a.contentRect.width < Te.value;
|
|
89
113
|
});
|
|
90
|
-
}),
|
|
91
|
-
for (let t = 0; t <
|
|
114
|
+
}), E.value && w.value.observe(E.value), R.value = [];
|
|
115
|
+
for (let t = 0; t < de.value; t += 1)
|
|
92
116
|
R.value.push(e.value.colNames[t] || `col ${t}`);
|
|
93
117
|
}
|
|
94
|
-
|
|
95
|
-
|
|
118
|
+
He(() => {
|
|
119
|
+
w.value && w.value.disconnect();
|
|
96
120
|
});
|
|
97
|
-
const se = _(() => (
|
|
98
|
-
|
|
121
|
+
const se = _(() => (h.dataset.forEach((t, a) => {
|
|
122
|
+
lt({
|
|
99
123
|
datasetObject: t,
|
|
100
124
|
requiredAttributes: ["name", "values"]
|
|
101
|
-
}).forEach((
|
|
102
|
-
|
|
125
|
+
}).forEach((l) => {
|
|
126
|
+
ke({
|
|
103
127
|
componentName: "VueUiTableSparkline",
|
|
104
128
|
type: "datasetSerieAttribute",
|
|
105
|
-
property:
|
|
106
|
-
index:
|
|
129
|
+
property: l,
|
|
130
|
+
index: a
|
|
107
131
|
});
|
|
108
132
|
});
|
|
109
|
-
}),
|
|
110
|
-
const
|
|
133
|
+
}), h.dataset.map((t, a) => {
|
|
134
|
+
const l = (t.values || []).map((d) => isNaN(d) ? 0 : d ?? 0), n = l.reduce((d, i) => d + i, 0), r = n / l.length, o = at(l);
|
|
111
135
|
return {
|
|
112
136
|
...t,
|
|
113
137
|
values: t.values || [],
|
|
114
|
-
color:
|
|
138
|
+
color: ot(t.color) || Ne.value[a] || T[a] || T[a % T.length],
|
|
115
139
|
sum: n,
|
|
116
|
-
average:
|
|
140
|
+
average: r,
|
|
117
141
|
median: o,
|
|
118
|
-
sparklineDataset:
|
|
142
|
+
sparklineDataset: l.map((d, i) => ({
|
|
119
143
|
period: e.value.colNames[i] || `col ${i}`,
|
|
120
144
|
value: d || 0
|
|
121
145
|
}))
|
|
122
146
|
};
|
|
123
147
|
})));
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
(
|
|
148
|
+
function Be(t) {
|
|
149
|
+
const l = (t[0].values || []).map(
|
|
150
|
+
(r, o) => t.map((d) => d.values[o] || [])
|
|
127
151
|
).map(
|
|
128
|
-
(
|
|
152
|
+
(r) => r.map((o, d) => [o, d]).sort((o, d) => d[0] - o[0]).map((o) => o[1])
|
|
129
153
|
);
|
|
130
|
-
return t.map((
|
|
131
|
-
...
|
|
132
|
-
values:
|
|
133
|
-
orders:
|
|
154
|
+
return t.map((r, o) => ({
|
|
155
|
+
...r,
|
|
156
|
+
values: r.values || [],
|
|
157
|
+
orders: l[o]
|
|
134
158
|
}));
|
|
135
159
|
}
|
|
136
|
-
const $ = _(() =>
|
|
137
|
-
function
|
|
138
|
-
|
|
160
|
+
const $ = _(() => Be(se.value)), b = f($.value), Ve = _(() => Math.max(...b.value.map((t) => (t.values || []).length))), j = f(void 0), H = f(!1), g = f(void 0), ie = f(1);
|
|
161
|
+
function I() {
|
|
162
|
+
H.value = !1, g.value = void 0, y.value = void 0, ie.value = 1, D.value.forEach((t) => t.state = 1), x.value = {
|
|
139
163
|
name: 1,
|
|
140
164
|
sum: 1,
|
|
141
165
|
average: 1,
|
|
142
166
|
median: 1
|
|
143
|
-
},
|
|
167
|
+
}, b.value = $.value;
|
|
144
168
|
}
|
|
145
|
-
function
|
|
169
|
+
function N(t, a, l) {
|
|
146
170
|
if (["name", "sum", "average", "median"].includes(t.type)) {
|
|
147
|
-
|
|
171
|
+
Me(t.type, a, l);
|
|
148
172
|
return;
|
|
149
173
|
}
|
|
150
|
-
if (!
|
|
151
|
-
if (S.value =
|
|
152
|
-
|
|
174
|
+
if (!fe(a)) return;
|
|
175
|
+
if (S.value = a, y.value = void 0, ![null, void 0].includes(g.value) && a !== g.value && (g.value = void 0, I()), D.value[a].state === l && g.value === a) {
|
|
176
|
+
g.value = void 0, I();
|
|
153
177
|
return;
|
|
154
178
|
}
|
|
155
|
-
|
|
156
|
-
const n = $.value.map((i) => i.values[
|
|
157
|
-
|
|
158
|
-
const d = n.map((i,
|
|
159
|
-
|
|
179
|
+
H.value = !0, g.value = a;
|
|
180
|
+
const n = $.value.map((i) => i.values[a] || []), r = l;
|
|
181
|
+
D.value[a].state = r, ie.value = r, a === j.value ? j.value = void 0 : j.value = a;
|
|
182
|
+
const d = n.map((i, k) => [k, i]).sort((i, k) => r * (k[1] - i[1])).map((i) => i[0]).map((i) => $.value[i]);
|
|
183
|
+
b.value = d, W.value += 1;
|
|
160
184
|
}
|
|
161
|
-
const
|
|
162
|
-
let t = R.value.map((
|
|
185
|
+
const de = _(() => Math.max(...h.dataset.map((t) => (t.values || []).length))), C = _(() => {
|
|
186
|
+
let t = R.value.map((l) => ({
|
|
163
187
|
type: "reg",
|
|
164
|
-
value:
|
|
188
|
+
value: l
|
|
165
189
|
}));
|
|
166
190
|
if (!t.length)
|
|
167
|
-
for (let
|
|
168
|
-
t.push({ type: "reg", value: `col ${
|
|
191
|
+
for (let l = 0; l < de.value; l += 1)
|
|
192
|
+
t.push({ type: "reg", value: `col ${l + 1}` });
|
|
169
193
|
e.value.showTotal && (t = [...t, { type: "sum", value: e.value.translations.total }]);
|
|
170
|
-
let
|
|
171
|
-
return e.value.showAverage && e.value.showMedian ?
|
|
194
|
+
let a;
|
|
195
|
+
return e.value.showAverage && e.value.showMedian ? a = [
|
|
172
196
|
...t,
|
|
173
197
|
{ type: "average", value: e.value.translations.average },
|
|
174
198
|
{ type: "median", value: e.value.translations.median }
|
|
175
|
-
] : e.value.showAverage && !e.value.showMedian ?
|
|
176
|
-
}),
|
|
199
|
+
] : e.value.showAverage && !e.value.showMedian ? a = [...t, { type: "average", value: e.value.translations.average }] : !e.value.showAverage && e.value.showMedian ? a = [...t, { type: "median", value: e.value.translations.median }] : a = t, e.value.showSparklines ? [...a, { type: "chart", value: e.value.translations.chart }] : a;
|
|
200
|
+
}), x = f({
|
|
177
201
|
name: 1,
|
|
178
202
|
sum: 1,
|
|
179
203
|
average: 1,
|
|
180
204
|
median: 1
|
|
181
|
-
}), y =
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
184
|
-
if (y.value !== t && (y.value = void 0), ![null, void 0].includes(
|
|
185
|
-
y.value = void 0,
|
|
205
|
+
}), y = f(void 0);
|
|
206
|
+
function Me(t, a, l) {
|
|
207
|
+
if (!b.value || b.value.length === 0 || !pe(t)) return;
|
|
208
|
+
if (y.value !== t && (y.value = void 0), ![null, void 0].includes(g.value) && a !== g.value && I(), g.value = void 0, x.value[t] === l && y.value) {
|
|
209
|
+
y.value = void 0, I();
|
|
186
210
|
return;
|
|
187
211
|
}
|
|
188
|
-
y.value = t,
|
|
189
|
-
const n =
|
|
190
|
-
const i = o[t] ?? (typeof o[t] == "number" ? 0 : ""),
|
|
191
|
-
return typeof i == "string" && typeof
|
|
212
|
+
y.value = t, H.value = !0, x.value[t] = l, [null, void 0].includes(a) || (D.value[a].state = x.value[t]);
|
|
213
|
+
const n = x.value[t], r = [...b.value].sort((o, d) => {
|
|
214
|
+
const i = o[t] ?? (typeof o[t] == "number" ? 0 : ""), k = d[t] ?? (typeof d[t] == "number" ? 0 : "");
|
|
215
|
+
return typeof i == "string" && typeof k == "string" ? n === -1 ? i.localeCompare(k) : k.localeCompare(i) : typeof i == "number" && typeof k == "number" ? n === -1 ? i - k : k - i : 0;
|
|
192
216
|
});
|
|
193
|
-
|
|
217
|
+
b.value = r;
|
|
194
218
|
}
|
|
195
|
-
const S =
|
|
196
|
-
function
|
|
197
|
-
S.value = t, q.value =
|
|
219
|
+
const S = f(void 0), q = f(void 0);
|
|
220
|
+
function We({ dataIndex: t, serieIndex: a }) {
|
|
221
|
+
S.value = t, q.value = a, U.value[t] && !L.value && U.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
198
222
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
|
|
223
|
+
const ve = f(!1);
|
|
224
|
+
function Ue(t) {
|
|
225
|
+
ve.value = t, Z.value += 1;
|
|
202
226
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
-
const
|
|
227
|
+
function ce(t = null) {
|
|
228
|
+
Ke(() => {
|
|
229
|
+
const a = [e.value.translations.serie].concat(C.value), l = se.value.map((o, d) => [
|
|
206
230
|
[o.name],
|
|
207
231
|
o.values,
|
|
208
232
|
[o.sum],
|
|
209
233
|
[o.average],
|
|
210
234
|
[o.median]
|
|
211
|
-
]), n = [
|
|
212
|
-
t ? t(
|
|
213
|
-
csvContent:
|
|
235
|
+
]), n = [a].concat(l), r = nt(n);
|
|
236
|
+
t ? t(r) : ut({
|
|
237
|
+
csvContent: r,
|
|
214
238
|
title: e.value.title.text || "vue-ui-table-sparkline"
|
|
215
239
|
});
|
|
216
240
|
});
|
|
217
241
|
}
|
|
218
|
-
function
|
|
242
|
+
function fe(t) {
|
|
219
243
|
return e.value.sortedDataColumnIndices.includes(t);
|
|
220
244
|
}
|
|
221
245
|
function pe(t) {
|
|
222
246
|
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;
|
|
223
247
|
}
|
|
224
|
-
function
|
|
225
|
-
return ["sum", "average", "median"].includes(
|
|
248
|
+
function be(t, a, l) {
|
|
249
|
+
return ["sum", "average", "median"].includes(a.type) ? y.value === a.type && x.value[a.type] === l ? 1 : 0.3 : t === g.value && D.value[t].state === l ? 1 : 0.3;
|
|
226
250
|
}
|
|
227
|
-
function
|
|
228
|
-
e.value.resetSortOnClickOutside &&
|
|
251
|
+
function Ge() {
|
|
252
|
+
e.value.resetSortOnClickOutside && I();
|
|
229
253
|
}
|
|
230
|
-
const
|
|
231
|
-
get: () =>
|
|
254
|
+
const D = _({
|
|
255
|
+
get: () => C.value.map((t) => ({ state: 1 })),
|
|
232
256
|
set: (t) => t
|
|
233
257
|
});
|
|
234
|
-
return
|
|
235
|
-
generatePdf:
|
|
236
|
-
generateImage:
|
|
237
|
-
generateCsv:
|
|
238
|
-
restoreOrder:
|
|
239
|
-
}), (t,
|
|
258
|
+
return Oe({
|
|
259
|
+
generatePdf: ne,
|
|
260
|
+
generateImage: ue,
|
|
261
|
+
generateCsv: ce,
|
|
262
|
+
restoreOrder: I
|
|
263
|
+
}), (t, a) => (v(), c("div", {
|
|
240
264
|
ref_key: "tableContainer",
|
|
241
|
-
ref:
|
|
265
|
+
ref: E,
|
|
242
266
|
class: J({ "vue-data-ui-component": !0, "vue-ui-table-sparkline": !0, "vue-ui-responsive": L.value }),
|
|
243
267
|
style: { overflow: "hidden" },
|
|
244
|
-
id: `table_${
|
|
245
|
-
onMouseenter:
|
|
246
|
-
onMouseleave:
|
|
268
|
+
id: `table_${M.value}`,
|
|
269
|
+
onMouseenter: a[3] || (a[3] = () => u(ee)(!0)),
|
|
270
|
+
onMouseleave: a[4] || (a[4] = () => u(ee)(!1))
|
|
247
271
|
}, [
|
|
248
272
|
e.value.title.text ? (v(), c("div", {
|
|
249
273
|
key: 0,
|
|
250
274
|
class: "vue-ui-table-sparkline-caption",
|
|
251
|
-
style:
|
|
275
|
+
style: s({ backgroundColor: e.value.title.backgroundColor })
|
|
252
276
|
}, [
|
|
253
|
-
|
|
277
|
+
p("div", {
|
|
254
278
|
class: "atom-title",
|
|
255
|
-
style:
|
|
279
|
+
style: s({
|
|
256
280
|
fontSize: `${e.value.title.fontSize}px`,
|
|
257
281
|
fontWeight: e.value.title.bold ? "bold" : "normal",
|
|
258
282
|
color: e.value.title.color,
|
|
259
283
|
textAlign: e.value.title.textAlign
|
|
260
284
|
})
|
|
261
|
-
},
|
|
285
|
+
}, A(e.value.title.text), 5),
|
|
262
286
|
e.value.title.subtitle.text ? (v(), c("div", {
|
|
263
287
|
key: 0,
|
|
264
288
|
class: "atom-subtitle",
|
|
265
|
-
style:
|
|
289
|
+
style: s({
|
|
266
290
|
fontSize: `${e.value.title.subtitle.fontSize}px`,
|
|
267
291
|
fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
|
|
268
292
|
color: e.value.title.subtitle.color,
|
|
269
293
|
textAlign: e.value.title.textAlign
|
|
270
294
|
})
|
|
271
|
-
},
|
|
272
|
-
], 4)) :
|
|
273
|
-
|
|
295
|
+
}, A(e.value.title.subtitle.text), 5)) : m("", !0)
|
|
296
|
+
], 4)) : m("", !0),
|
|
297
|
+
p("div", {
|
|
274
298
|
style: { overflow: "auto" },
|
|
275
|
-
onPointerleave:
|
|
299
|
+
onPointerleave: a[2] || (a[2] = (l) => {
|
|
276
300
|
q.value = void 0, S.value = void 0;
|
|
277
301
|
})
|
|
278
302
|
}, [
|
|
279
|
-
|
|
303
|
+
p("table", {
|
|
280
304
|
class: "vue-ui-data-table",
|
|
281
|
-
style:
|
|
305
|
+
style: s({ fontFamily: e.value.fontFamily, position: "relative" })
|
|
282
306
|
}, [
|
|
283
|
-
|
|
284
|
-
|
|
307
|
+
p("thead", ft, [
|
|
308
|
+
qe((v(), c("tr", {
|
|
285
309
|
role: "row",
|
|
286
310
|
class: "vue-ui-data-table__thead-row",
|
|
287
|
-
style:
|
|
311
|
+
style: s({
|
|
288
312
|
backgroundColor: e.value.thead.backgroundColor,
|
|
289
313
|
color: e.value.thead.color
|
|
290
314
|
})
|
|
291
315
|
}, [
|
|
292
|
-
|
|
316
|
+
p("th", {
|
|
293
317
|
role: "cell",
|
|
294
|
-
style:
|
|
318
|
+
style: s({
|
|
295
319
|
backgroundColor: e.value.thead.backgroundColor,
|
|
296
320
|
border: e.value.thead.outline,
|
|
297
321
|
textAlign: e.value.thead.textAlign,
|
|
@@ -299,8 +323,8 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
299
323
|
}),
|
|
300
324
|
class: "sticky-col-first"
|
|
301
325
|
}, [
|
|
302
|
-
|
|
303
|
-
style:
|
|
326
|
+
p("div", {
|
|
327
|
+
style: s({
|
|
304
328
|
display: "flex",
|
|
305
329
|
flexDirection: "row",
|
|
306
330
|
alignItems: "center",
|
|
@@ -308,51 +332,51 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
308
332
|
justifyContent: e.value.thead.textAlign
|
|
309
333
|
})
|
|
310
334
|
}, [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
335
|
+
p("span", null, A(e.value.translations.serie), 1),
|
|
336
|
+
b.value.length > 1 && e.value.sortedSeriesName ? (v(), c("div", pt, [
|
|
337
|
+
p("button", {
|
|
314
338
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
315
|
-
onClick:
|
|
339
|
+
onClick: a[0] || (a[0] = (l) => N({ type: "name" }, null, -1))
|
|
316
340
|
}, [
|
|
317
|
-
|
|
341
|
+
F(u(P), {
|
|
318
342
|
size: 12,
|
|
319
343
|
name: "arrowBottom",
|
|
320
344
|
stroke: e.value.thead.color,
|
|
321
|
-
style:
|
|
322
|
-
opacity: y.value === "name" &&
|
|
345
|
+
style: s({
|
|
346
|
+
opacity: y.value === "name" && x.value.name === -1 ? 1 : 0.3
|
|
323
347
|
})
|
|
324
348
|
}, null, 8, ["stroke", "style"])
|
|
325
349
|
]),
|
|
326
|
-
|
|
350
|
+
p("button", {
|
|
327
351
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
328
|
-
onClick:
|
|
352
|
+
onClick: a[1] || (a[1] = (l) => N({ type: "name" }, null, 1))
|
|
329
353
|
}, [
|
|
330
|
-
|
|
354
|
+
F(u(P), {
|
|
331
355
|
size: 12,
|
|
332
356
|
name: "arrowTop",
|
|
333
357
|
stroke: e.value.thead.color,
|
|
334
|
-
style:
|
|
335
|
-
opacity: y.value === "name" &&
|
|
358
|
+
style: s({
|
|
359
|
+
opacity: y.value === "name" && x.value.name === 1 ? 1 : 0.3
|
|
336
360
|
})
|
|
337
361
|
}, null, 8, ["stroke", "style"])
|
|
338
362
|
])
|
|
339
|
-
])) :
|
|
363
|
+
])) : m("", !0)
|
|
340
364
|
], 4)
|
|
341
365
|
], 4),
|
|
342
|
-
(v(!0), c(K, null,
|
|
366
|
+
(v(!0), c(K, null, Q(C.value, (l, n) => (v(), c("th", {
|
|
343
367
|
role: "cell",
|
|
344
|
-
style:
|
|
368
|
+
style: s({
|
|
345
369
|
background: e.value.thead.backgroundColor,
|
|
346
370
|
border: e.value.thead.outline,
|
|
347
371
|
textAlign: e.value.thead.textAlign,
|
|
348
372
|
fontWeight: e.value.thead.bold ? "bold" : "normal",
|
|
349
|
-
minWidth: n ===
|
|
350
|
-
paddingRight: n ===
|
|
373
|
+
minWidth: n === C.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
|
|
374
|
+
paddingRight: n === C.value.length - 1 && e.value.userOptions.show ? "36px" : ""
|
|
351
375
|
}),
|
|
352
|
-
class: J({ "sticky-col": n ===
|
|
376
|
+
class: J({ "sticky-col": n === C.value.length - 1 && e.value.showSparklines })
|
|
353
377
|
}, [
|
|
354
|
-
|
|
355
|
-
style:
|
|
378
|
+
p("div", {
|
|
379
|
+
style: s({
|
|
356
380
|
display: "flex",
|
|
357
381
|
flexDirection: "row",
|
|
358
382
|
alignItems: "center",
|
|
@@ -360,116 +384,116 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
360
384
|
justifyContent: e.value.thead.textAlign
|
|
361
385
|
})
|
|
362
386
|
}, [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
387
|
+
p("span", null, A(l.value), 1),
|
|
388
|
+
b.value.length > 1 && (fe(n) || pe(l)) ? (v(), c("div", bt, [
|
|
389
|
+
p("button", {
|
|
366
390
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
367
|
-
onClick: () =>
|
|
391
|
+
onClick: () => N(l, n, -1)
|
|
368
392
|
}, [
|
|
369
|
-
|
|
393
|
+
F(u(P), {
|
|
370
394
|
size: 12,
|
|
371
395
|
name: "arrowBottom",
|
|
372
396
|
stroke: e.value.thead.color,
|
|
373
|
-
style:
|
|
374
|
-
opacity:
|
|
397
|
+
style: s({
|
|
398
|
+
opacity: be(n, l, -1)
|
|
375
399
|
})
|
|
376
400
|
}, null, 8, ["stroke", "style"])
|
|
377
|
-
], 8,
|
|
378
|
-
|
|
401
|
+
], 8, gt),
|
|
402
|
+
p("button", {
|
|
379
403
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
380
|
-
onClick: () =>
|
|
404
|
+
onClick: () => N(l, n, 1)
|
|
381
405
|
}, [
|
|
382
|
-
|
|
406
|
+
F(u(P), {
|
|
383
407
|
size: 12,
|
|
384
408
|
name: "arrowTop",
|
|
385
409
|
stroke: e.value.thead.color,
|
|
386
|
-
style:
|
|
387
|
-
opacity:
|
|
410
|
+
style: s({
|
|
411
|
+
opacity: be(n, l, 1)
|
|
388
412
|
})
|
|
389
413
|
}, null, 8, ["stroke", "style"])
|
|
390
|
-
], 8,
|
|
391
|
-
])) :
|
|
414
|
+
], 8, mt)
|
|
415
|
+
])) : m("", !0)
|
|
392
416
|
], 4),
|
|
393
|
-
e.value.userOptions.show && n ===
|
|
417
|
+
e.value.userOptions.show && n === C.value.length - 1 && (u(te) || u(G)) ? (v(), Xe(u(De), {
|
|
394
418
|
ref_for: !0,
|
|
395
419
|
ref: "details",
|
|
396
420
|
key: `user_option_${Z.value}`,
|
|
397
421
|
backgroundColor: e.value.thead.backgroundColor,
|
|
398
422
|
color: e.value.thead.color,
|
|
399
423
|
isPrinting: u(ae),
|
|
400
|
-
isImaging: u(
|
|
401
|
-
uid:
|
|
424
|
+
isImaging: u(oe),
|
|
425
|
+
uid: M.value,
|
|
402
426
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
403
427
|
hasXls: e.value.userOptions.buttons.csv,
|
|
404
428
|
hasImg: e.value.userOptions.buttons.img,
|
|
405
429
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
406
|
-
isFullscreen:
|
|
430
|
+
isFullscreen: ve.value,
|
|
407
431
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
408
|
-
chartElement:
|
|
432
|
+
chartElement: E.value,
|
|
409
433
|
position: e.value.userOptions.position,
|
|
410
434
|
callbacks: e.value.userOptions.callbacks,
|
|
411
435
|
printScale: e.value.userOptions.print.scale,
|
|
412
|
-
onToggleFullscreen:
|
|
413
|
-
onGeneratePdf: u(
|
|
414
|
-
onGenerateImage: u(
|
|
415
|
-
onGenerateCsv:
|
|
416
|
-
style:
|
|
417
|
-
visibility: u(
|
|
436
|
+
onToggleFullscreen: Ue,
|
|
437
|
+
onGeneratePdf: u(ne),
|
|
438
|
+
onGenerateImage: u(ue),
|
|
439
|
+
onGenerateCsv: ce,
|
|
440
|
+
style: s({
|
|
441
|
+
visibility: u(te) ? u(G) ? "visible" : "hidden" : "visible"
|
|
418
442
|
})
|
|
419
|
-
},
|
|
443
|
+
}, Je({ _: 2 }, [
|
|
420
444
|
t.$slots.menuIcon ? {
|
|
421
445
|
name: "menuIcon",
|
|
422
|
-
fn:
|
|
423
|
-
O(t.$slots, "menuIcon",
|
|
446
|
+
fn: z(({ isOpen: r, color: o }) => [
|
|
447
|
+
O(t.$slots, "menuIcon", ye({ ref_for: !0 }, { isOpen: r, color: o }), void 0, !0)
|
|
424
448
|
]),
|
|
425
449
|
key: "0"
|
|
426
450
|
} : void 0,
|
|
427
451
|
t.$slots.optionPdf ? {
|
|
428
452
|
name: "optionPdf",
|
|
429
|
-
fn:
|
|
453
|
+
fn: z(() => [
|
|
430
454
|
O(t.$slots, "optionPdf", {}, void 0, !0)
|
|
431
455
|
]),
|
|
432
456
|
key: "1"
|
|
433
457
|
} : void 0,
|
|
434
458
|
t.$slots.optionCsv ? {
|
|
435
459
|
name: "optionCsv",
|
|
436
|
-
fn:
|
|
460
|
+
fn: z(() => [
|
|
437
461
|
O(t.$slots, "optionCsv", {}, void 0, !0)
|
|
438
462
|
]),
|
|
439
463
|
key: "2"
|
|
440
464
|
} : void 0,
|
|
441
465
|
t.$slots.optionImg ? {
|
|
442
466
|
name: "optionImg",
|
|
443
|
-
fn:
|
|
467
|
+
fn: z(() => [
|
|
444
468
|
O(t.$slots, "optionImg", {}, void 0, !0)
|
|
445
469
|
]),
|
|
446
470
|
key: "3"
|
|
447
471
|
} : void 0,
|
|
448
472
|
t.$slots.optionFullscreen ? {
|
|
449
473
|
name: "optionFullscreen",
|
|
450
|
-
fn:
|
|
451
|
-
O(t.$slots, "optionFullscreen",
|
|
474
|
+
fn: z(({ toggleFullscreen: r, isFullscreen: o }) => [
|
|
475
|
+
O(t.$slots, "optionFullscreen", ye({ ref_for: !0 }, { toggleFullscreen: r, isFullscreen: o }), void 0, !0)
|
|
452
476
|
]),
|
|
453
477
|
key: "4"
|
|
454
478
|
} : void 0
|
|
455
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
479
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0)
|
|
456
480
|
], 6))), 256))
|
|
457
481
|
], 4)), [
|
|
458
|
-
[u(
|
|
482
|
+
[u(dt), Ge]
|
|
459
483
|
])
|
|
460
484
|
]),
|
|
461
|
-
|
|
462
|
-
(v(!0), c(K, null,
|
|
485
|
+
p("tbody", null, [
|
|
486
|
+
(v(!0), c(K, null, Q(b.value, (l, n) => (v(), c("tr", {
|
|
463
487
|
role: "row",
|
|
464
|
-
style:
|
|
488
|
+
style: s({
|
|
465
489
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
466
490
|
color: e.value.tbody.color
|
|
467
491
|
}),
|
|
468
492
|
class: J({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 })
|
|
469
493
|
}, [
|
|
470
|
-
|
|
494
|
+
p("td", {
|
|
471
495
|
role: "cell",
|
|
472
|
-
style:
|
|
496
|
+
style: s({
|
|
473
497
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
474
498
|
border: e.value.tbody.outline,
|
|
475
499
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
@@ -479,9 +503,9 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
479
503
|
"data-cell": e.value.translations.serie,
|
|
480
504
|
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
481
505
|
}, [
|
|
482
|
-
|
|
506
|
+
p("div", {
|
|
483
507
|
dir: "auto",
|
|
484
|
-
style:
|
|
508
|
+
style: s({
|
|
485
509
|
display: "flex",
|
|
486
510
|
flexDirection: "row",
|
|
487
511
|
alignItems: "center",
|
|
@@ -491,45 +515,45 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
491
515
|
}, [
|
|
492
516
|
e.value.tbody.showColorMarker ? (v(), c("span", {
|
|
493
517
|
key: 0,
|
|
494
|
-
style:
|
|
495
|
-
}, "⬤", 4)) :
|
|
496
|
-
|
|
518
|
+
style: s({ color: l.color })
|
|
519
|
+
}, "⬤", 4)) : m("", !0),
|
|
520
|
+
p("span", null, A(l.name ?? "-"), 1)
|
|
497
521
|
], 4)
|
|
498
|
-
], 12,
|
|
499
|
-
(v(!0), c(K, null,
|
|
522
|
+
], 12, yt),
|
|
523
|
+
(v(!0), c(K, null, Q(Ve.value, (r, o) => (v(), c("td", {
|
|
500
524
|
dir: "auto",
|
|
501
525
|
role: "cell",
|
|
502
526
|
ref_for: !0,
|
|
503
527
|
ref_key: "TD",
|
|
504
|
-
ref:
|
|
505
|
-
style:
|
|
528
|
+
ref: U,
|
|
529
|
+
style: s({
|
|
506
530
|
border: e.value.tbody.outline,
|
|
507
531
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
508
532
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
509
533
|
textAlign: e.value.tbody.textAlign,
|
|
510
|
-
background: S.value !== void 0 && o === S.value ? e.value.tbody.selectedColor.useSerieColor ? `${
|
|
534
|
+
background: S.value !== void 0 && o === S.value ? e.value.tbody.selectedColor.useSerieColor ? `${l.color.length > 7 ? l.color.slice(0, -2) : l.color}33` : e.value.tbody.selectedColor.fallback : ""
|
|
511
535
|
}),
|
|
512
|
-
"data-cell":
|
|
536
|
+
"data-cell": C.value[o] ? C.value[o].value : "",
|
|
513
537
|
class: "vue-ui-data-table__tbody__td",
|
|
514
538
|
onPointerenter: (d) => {
|
|
515
539
|
q.value = n, S.value = o;
|
|
516
540
|
}
|
|
517
|
-
},
|
|
541
|
+
}, A([null, void 0].includes(l.values[o]) ? "-" : u(B)(
|
|
518
542
|
e.value.formatter,
|
|
519
|
-
Number(
|
|
520
|
-
u(
|
|
543
|
+
Number(l.values[o]),
|
|
544
|
+
u(V)({
|
|
521
545
|
p: e.value.prefix,
|
|
522
|
-
v: Number(
|
|
546
|
+
v: Number(l.values[o]),
|
|
523
547
|
s: e.value.suffix,
|
|
524
548
|
r: e.value.roundingValues
|
|
525
549
|
}),
|
|
526
|
-
{ datapoint:
|
|
527
|
-
)), 45,
|
|
550
|
+
{ datapoint: l, seriesIndex: n, datapointIndex: o }
|
|
551
|
+
)), 45, kt))), 256)),
|
|
528
552
|
e.value.showTotal ? (v(), c("td", {
|
|
529
553
|
key: 0,
|
|
530
554
|
dir: "auto",
|
|
531
555
|
role: "cell",
|
|
532
|
-
style:
|
|
556
|
+
style: s({
|
|
533
557
|
border: e.value.tbody.outline,
|
|
534
558
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
535
559
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -537,22 +561,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
537
561
|
}),
|
|
538
562
|
"data-cell": e.value.translations.total,
|
|
539
563
|
class: "vue-ui-data-table__tbody__td"
|
|
540
|
-
},
|
|
564
|
+
}, A(u(B)(
|
|
541
565
|
e.value.formatter,
|
|
542
|
-
|
|
543
|
-
u(
|
|
566
|
+
l.sum,
|
|
567
|
+
u(V)({
|
|
544
568
|
p: e.value.prefix,
|
|
545
|
-
v:
|
|
569
|
+
v: l.sum,
|
|
546
570
|
s: e.value.suffix,
|
|
547
571
|
r: e.value.roundingTotal
|
|
548
572
|
}),
|
|
549
|
-
{ datapoint:
|
|
550
|
-
)), 13,
|
|
573
|
+
{ datapoint: l.sum, seriesIndex: n }
|
|
574
|
+
)), 13, ht)) : m("", !0),
|
|
551
575
|
e.value.showAverage ? (v(), c("td", {
|
|
552
576
|
key: 1,
|
|
553
577
|
dir: "auto",
|
|
554
578
|
role: "cell",
|
|
555
|
-
style:
|
|
579
|
+
style: s({
|
|
556
580
|
border: e.value.tbody.outline,
|
|
557
581
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
558
582
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -560,22 +584,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
560
584
|
}),
|
|
561
585
|
"data-cell": e.value.translations.average,
|
|
562
586
|
class: "vue-ui-data-table__tbody__td"
|
|
563
|
-
},
|
|
587
|
+
}, A(u(B)(
|
|
564
588
|
e.value.formatter,
|
|
565
|
-
|
|
566
|
-
u(
|
|
589
|
+
l.average,
|
|
590
|
+
u(V)({
|
|
567
591
|
p: e.value.prefix,
|
|
568
|
-
v:
|
|
592
|
+
v: l.average,
|
|
569
593
|
s: e.value.suffix,
|
|
570
594
|
r: e.value.roundingAverage
|
|
571
595
|
}),
|
|
572
|
-
{ datapoint:
|
|
573
|
-
)), 13,
|
|
596
|
+
{ datapoint: l.average, seriesIndex: n }
|
|
597
|
+
)), 13, Ct)) : m("", !0),
|
|
574
598
|
e.value.showMedian ? (v(), c("td", {
|
|
575
599
|
key: 2,
|
|
576
600
|
dir: "auto",
|
|
577
601
|
role: "cell",
|
|
578
|
-
style:
|
|
602
|
+
style: s({
|
|
579
603
|
border: e.value.tbody.outline,
|
|
580
604
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
581
605
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -583,22 +607,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
583
607
|
}),
|
|
584
608
|
"data-cell": e.value.translations.median,
|
|
585
609
|
class: "vue-ui-data-table__tbody__td"
|
|
586
|
-
},
|
|
610
|
+
}, A(u(B)(
|
|
587
611
|
e.value.formatter,
|
|
588
|
-
|
|
589
|
-
u(
|
|
612
|
+
l.median,
|
|
613
|
+
u(V)({
|
|
590
614
|
p: e.value.prefix,
|
|
591
|
-
v:
|
|
615
|
+
v: l.median,
|
|
592
616
|
s: e.value.suffix,
|
|
593
617
|
r: e.value.roundingMedian
|
|
594
618
|
}),
|
|
595
|
-
{ datapoint:
|
|
596
|
-
)), 13,
|
|
619
|
+
{ datapoint: l.median, seriesIndex: n }
|
|
620
|
+
)), 13, _t)) : m("", !0),
|
|
597
621
|
e.value.showSparklines ? (v(), c("td", {
|
|
598
622
|
key: 3,
|
|
599
623
|
role: "cell",
|
|
600
624
|
"data-cell": e.value.translations.chart,
|
|
601
|
-
style:
|
|
625
|
+
style: s({
|
|
602
626
|
border: e.value.tbody.outline,
|
|
603
627
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
604
628
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -608,11 +632,11 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
608
632
|
}),
|
|
609
633
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
610
634
|
}, [
|
|
611
|
-
|
|
612
|
-
onHoverIndex: ({ index:
|
|
635
|
+
F(u($e), {
|
|
636
|
+
onHoverIndex: ({ index: r }) => We({ dataIndex: r, serieIndex: n }),
|
|
613
637
|
"height-ratio": e.value.sparkline.dimensions.heightRatio,
|
|
614
638
|
"forced-padding": 30,
|
|
615
|
-
dataset:
|
|
639
|
+
dataset: l.sparklineDataset,
|
|
616
640
|
showInfo: !1,
|
|
617
641
|
selectedIndex: S.value,
|
|
618
642
|
config: {
|
|
@@ -620,27 +644,27 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
620
644
|
style: {
|
|
621
645
|
backgroundColor: "transparent",
|
|
622
646
|
animation: {
|
|
623
|
-
show: e.value.sparkline.animation.show && !u(ae) && !u(
|
|
647
|
+
show: e.value.sparkline.animation.show && !u(ae) && !u(oe),
|
|
624
648
|
animationFrames: e.value.sparkline.animation.animationFrames
|
|
625
649
|
},
|
|
626
650
|
padding: {
|
|
627
651
|
right: 12
|
|
628
652
|
},
|
|
629
653
|
line: {
|
|
630
|
-
color:
|
|
654
|
+
color: l.color,
|
|
631
655
|
smooth: e.value.sparkline.smooth,
|
|
632
656
|
strokeWidth: e.value.sparkline.strokeWidth
|
|
633
657
|
},
|
|
634
658
|
bar: {
|
|
635
|
-
color:
|
|
659
|
+
color: l.color
|
|
636
660
|
},
|
|
637
661
|
area: {
|
|
638
|
-
color:
|
|
662
|
+
color: l.color,
|
|
639
663
|
opacity: e.value.sparkline.showArea ? 16 : 0,
|
|
640
664
|
useGradient: e.value.sparkline.useGradient
|
|
641
665
|
},
|
|
642
666
|
verticalIndicator: {
|
|
643
|
-
color:
|
|
667
|
+
color: l.color
|
|
644
668
|
},
|
|
645
669
|
plot: {
|
|
646
670
|
radius: 9,
|
|
@@ -650,17 +674,22 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
650
674
|
}
|
|
651
675
|
}
|
|
652
676
|
}, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"])
|
|
653
|
-
], 12,
|
|
677
|
+
], 12, At)) : m("", !0)
|
|
654
678
|
], 6))), 256))
|
|
655
679
|
])
|
|
656
680
|
], 4)
|
|
657
681
|
], 32),
|
|
658
|
-
t.$slots.source ? (v(), c("div",
|
|
682
|
+
t.$slots.source ? (v(), c("div", xt, [
|
|
659
683
|
O(t.$slots, "source", {}, void 0, !0)
|
|
660
|
-
], 512)) :
|
|
661
|
-
], 42,
|
|
684
|
+
], 512)) : m("", !0)
|
|
685
|
+
], 42, ct));
|
|
662
686
|
}
|
|
663
|
-
},
|
|
687
|
+
}, wt = /* @__PURE__ */ vt(St, [["__scopeId", "data-v-18b7aedc"]]), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
688
|
+
__proto__: null,
|
|
689
|
+
default: wt
|
|
690
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
664
691
|
export {
|
|
665
|
-
|
|
692
|
+
Nt as a,
|
|
693
|
+
Tt as b,
|
|
694
|
+
wt as v
|
|
666
695
|
};
|