vue-data-ui 2.4.48 → 2.4.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CMGb5jtB.js → Arrow-D1z9KkQN.js} +1 -1
- package/dist/{Arrow-CDz_A4X6.cjs → Arrow-DuuEh1Nr.cjs} +1 -1
- package/dist/{BaseIcon-WyM8ZLeS.js → BaseIcon-BHwqOTt4.js} +1 -1
- package/dist/{BaseIcon-CqZOJaZ7.cjs → BaseIcon-DemqZ_13.cjs} +1 -1
- package/dist/{DataTable-8Bk6Zg9H.js → DataTable-CQ8fQnex.js} +2 -2
- package/dist/{DataTable-UQDVIoTq.cjs → DataTable-CovKV5Yy.cjs} +1 -1
- package/dist/{Legend-DyQhpUa7.cjs → Legend-Bbz-hKDf.cjs} +1 -1
- package/dist/{Legend-BqySI7-3.js → Legend-Br7MWNDo.js} +1 -1
- package/dist/{PackageVersion-JL2H1ZNU.cjs → PackageVersion-BEtuCME5.cjs} +1 -1
- package/dist/{PackageVersion-C26iHVPd.js → PackageVersion-BV3fHO46.js} +1 -1
- package/dist/{PenAndPaper-Bmfl9PVt.cjs → PenAndPaper-BIcmfBvD.cjs} +1 -1
- package/dist/{PenAndPaper-XF8fq-Km.js → PenAndPaper-CCOywdmm.js} +3 -3
- package/dist/{Shape-Cmue6aoD.js → Shape-B7Mekpyf.js} +1 -1
- package/dist/{Shape-CbUYortz.cjs → Shape-BD37ZaX9.cjs} +1 -1
- package/dist/{Slicer-DJsIXuV_.cjs → Slicer-CWvkt-8k.cjs} +1 -1
- package/dist/{Slicer-DnI684H6.js → Slicer-ahFReg7h.js} +2 -2
- package/dist/{Title-CbiI2XAK.cjs → Title-C2siG5N2.cjs} +1 -1
- package/dist/{Title-D5Wtk97z.js → Title-CIsKiWgN.js} +1 -1
- package/dist/{Tooltip-z6v35GbJ.js → Tooltip-B1LgrF9R.js} +1 -1
- package/dist/{Tooltip-CXWymtVK.cjs → Tooltip-CS4C58T7.cjs} +1 -1
- package/dist/{index-BepNt4hC.js → index-BtL_cLa8.js} +2 -1
- package/dist/index-DoD-GxZR.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DUC6XBU3.js → useNestedProp-CEAfm1tu.js} +1 -1
- package/dist/{useNestedProp-BEjpLG7g.cjs → useNestedProp-D_feh7A_.cjs} +1 -1
- package/dist/{usePrinter-Hc-LICQf.cjs → usePrinter-B4xDG31F.cjs} +1 -1
- package/dist/{usePrinter-DPvuzbZK.js → usePrinter-sRt2SKr2.js} +1 -1
- package/dist/{vue-data-ui-TUbEwYZ5.cjs → vue-data-ui-CuEYAddV.cjs} +1 -1
- package/dist/{vue-data-ui-CFmnqYD2.js → vue-data-ui-NkhaiK6y.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-L6JZrkbq.js → vue-ui-3d-bar-BeXYzdzu.js} +9 -9
- package/dist/{vue-ui-3d-bar-CYl_O7ug.cjs → vue-ui-3d-bar-RduHvzwG.cjs} +1 -1
- package/dist/{vue-ui-accordion-C8xohumC.cjs → vue-ui-accordion-CBxsUoGb.cjs} +1 -1
- package/dist/{vue-ui-accordion-C2pYIHIH.js → vue-ui-accordion-Cjc683tN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CRXWyh5c.cjs → vue-ui-age-pyramid-DVtbyRJw.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CSCtiUKQ.js → vue-ui-age-pyramid-rnt8M-Qz.js} +10 -10
- package/dist/{vue-ui-annotator-5Mjqr97s.js → vue-ui-annotator-CFU5Zyfk.js} +1 -1
- package/dist/{vue-ui-annotator-DIETLcfO.cjs → vue-ui-annotator-Yu-mHS2N.cjs} +1 -1
- package/dist/{vue-ui-bullet-B5MHoDHB.cjs → vue-ui-bullet-Be5aYhtp.cjs} +1 -1
- package/dist/{vue-ui-bullet-C6EHD4J1.js → vue-ui-bullet-CRbW1ON6.js} +8 -8
- package/dist/{vue-ui-candlestick-CYMynB3E.cjs → vue-ui-candlestick-B6wSs-JC.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BrJoYH2t.js → vue-ui-candlestick-D-ERLtI1.js} +11 -11
- package/dist/{vue-ui-carousel-table-ZPuYe12-.cjs → vue-ui-carousel-table-7reErH8M.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BtNgnJg3.js → vue-ui-carousel-table-I1m4HMWf.js} +4 -4
- package/dist/{vue-ui-chestnut-BGyD7s_L.js → vue-ui-chestnut-CqJRKECX.js} +8 -8
- package/dist/{vue-ui-chestnut-C1en00jI.cjs → vue-ui-chestnut-D-WzX16q.cjs} +1 -1
- package/dist/{vue-ui-cursor-BP38xePQ.cjs → vue-ui-cursor-S83QIsxQ.cjs} +1 -1
- package/dist/{vue-ui-cursor-DR2RWF24.js → vue-ui-cursor-jrrdh8Lf.js} +2 -2
- package/dist/{vue-ui-dashboard-BpOAi1fs.js → vue-ui-dashboard-DR_Bhwa3.js} +2 -2
- package/dist/{vue-ui-dashboard-BYygSPuJ.cjs → vue-ui-dashboard-DW1mIInG.cjs} +1 -1
- package/dist/{vue-ui-digits-DNrXa7E_.js → vue-ui-digits-1jZdiwHJ.js} +2 -2
- package/dist/{vue-ui-digits-C7sdWmoo.cjs → vue-ui-digits-s5f9eFtW.cjs} +1 -1
- package/dist/{vue-ui-donut-95iv1pkT.js → vue-ui-donut-BAYiPsxp.js} +11 -11
- package/dist/{vue-ui-donut-BbBw5pWR.cjs → vue-ui-donut-Ce1SaXNu.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DpECkYLY.cjs → vue-ui-donut-evolution-DI8yeIa4.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BneXLHZF.js → vue-ui-donut-evolution-DsHTZ9T2.js} +11 -11
- package/dist/{vue-ui-dumbbell-lnqC1mak.cjs → vue-ui-dumbbell-CFJkwtM8.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B_T3Hlzb.js → vue-ui-dumbbell-DcMmBxLy.js} +10 -10
- package/dist/{vue-ui-flow-DgsufNuK.cjs → vue-ui-flow-B4MtorhO.cjs} +1 -1
- package/dist/{vue-ui-flow-PsQyq54b.js → vue-ui-flow-BTXEmIQG.js} +9 -9
- package/dist/{vue-ui-funnel-CxZYQkNb.js → vue-ui-funnel-BB_h0FKg.js} +8 -8
- package/dist/{vue-ui-funnel-Cz5qLXEC.cjs → vue-ui-funnel-DNL12vLQ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C97nWRvH.cjs → vue-ui-galaxy-CmCZGOKz.cjs} +1 -1
- package/dist/{vue-ui-galaxy-4EZM6VGD.js → vue-ui-galaxy-DlBk1FUz.js} +11 -11
- package/dist/{vue-ui-gauge-CFy3oMIA.js → vue-ui-gauge-1SFhSMfU.js} +7 -7
- package/dist/{vue-ui-gauge-BC0zGvqM.cjs → vue-ui-gauge-B7ieQMud.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BUfBljdr.cjs → vue-ui-gizmo-C8rLR4n5.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BQlJhilX.js → vue-ui-gizmo-CtX6KFN2.js} +3 -3
- package/dist/{vue-ui-heatmap-zi279cjp.cjs → vue-ui-heatmap-Bfi3KJwS.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dyz8arCQ.js → vue-ui-heatmap-BzyvTePn.js} +10 -10
- package/dist/{vue-ui-history-plot-BXZTRkzT.cjs → vue-ui-history-plot-5kZ54hgy.cjs} +1 -1
- package/dist/{vue-ui-history-plot-1KwhLYwx.js → vue-ui-history-plot-BEoHuZ3N.js} +11 -11
- package/dist/{vue-ui-kpi-DjLKxPTS.js → vue-ui-kpi-BYOyJjYg.js} +3 -3
- package/dist/{vue-ui-kpi-BsjkNZZH.cjs → vue-ui-kpi-LO4KKRR9.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Be51Zm_Q.js → vue-ui-mini-loader-ChHdx5me.js} +2 -2
- package/dist/{vue-ui-mini-loader-UKOzmxaD.cjs → vue-ui-mini-loader-wlUD77O6.cjs} +1 -1
- package/dist/{vue-ui-molecule-DUQo9_oj.js → vue-ui-molecule-Bo7XYpf-.js} +11 -11
- package/dist/{vue-ui-molecule-wgNYpLlg.cjs → vue-ui-molecule-D-4cRS5w.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D-sMgA1m.cjs → vue-ui-mood-radar-C3x_LH7Q.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D260gFQ-.js → vue-ui-mood-radar-DXj4Ce6l.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Ccz2llkz.js → vue-ui-nested-donuts-BBLpNVwF.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DCATiNcn.cjs → vue-ui-nested-donuts-DrL7-SUd.cjs} +1 -1
- package/dist/{vue-ui-onion-jbgqZma_.cjs → vue-ui-onion-8Vz3lPbn.cjs} +1 -1
- package/dist/{vue-ui-onion-4nwZ2Xcq.js → vue-ui-onion-DC8VIInA.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-b9zBOm3l.js → vue-ui-parallel-coordinate-plot-Cl1wiHsK.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-D8tDqhAC.cjs → vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BPbKAs_R.cjs → vue-ui-quadrant-DBZS5jFQ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DyhFsYAn.js → vue-ui-quadrant-b5cuEH9z.js} +12 -12
- package/dist/{vue-ui-quick-chart-kBVlNtAe.js → vue-ui-quick-chart-CFBPYw2J.js} +9 -9
- package/dist/{vue-ui-quick-chart-BjjeoplC.cjs → vue-ui-quick-chart-Cno_1mzu.cjs} +1 -1
- package/dist/{vue-ui-radar-Cax_LlVW.cjs → vue-ui-radar-ChcBO21S.cjs} +1 -1
- package/dist/{vue-ui-radar-WzkdQND3.js → vue-ui-radar-DP8360kx.js} +12 -12
- package/dist/{vue-ui-rating-W2x5oPbH.cjs → vue-ui-rating-D7b-kfyp.cjs} +1 -1
- package/dist/{vue-ui-rating-BLj-bxOZ.js → vue-ui-rating-DIthBSp_.js} +2 -2
- package/dist/{vue-ui-relation-circle-BC09Wo74.cjs → vue-ui-relation-circle-C5pO0iHY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Cy7KZjJK.js → vue-ui-relation-circle-D2iwmChn.js} +7 -7
- package/dist/{vue-ui-rings-BEBxWNzs.cjs → vue-ui-rings-C_NLJYs8.cjs} +1 -1
- package/dist/{vue-ui-rings-B2r_HrM3.js → vue-ui-rings-y9Zx-DaI.js} +11 -11
- package/dist/{vue-ui-scatter-EbhOyS1b.cjs → vue-ui-scatter-BNeMGDNk.cjs} +1 -1
- package/dist/{vue-ui-scatter-BzsoN90E.js → vue-ui-scatter-Cbu5GDc1.js} +12 -12
- package/dist/{vue-ui-screenshot-D-CteYvP.js → vue-ui-screenshot-BZh_sgjP.js} +1 -1
- package/dist/{vue-ui-screenshot-BNvphTTn.cjs → vue-ui-screenshot-oH-YnZBE.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dm5B1MER.js → vue-ui-skeleton-DjFU2X3P.js} +3 -3
- package/dist/{vue-ui-skeleton-G8jk4hcj.cjs → vue-ui-skeleton-Nuju6X7l.cjs} +1 -1
- package/dist/{vue-ui-smiley-H4VJmgZj.js → vue-ui-smiley-DdnzzEYS.js} +2 -2
- package/dist/{vue-ui-smiley-DQYXvPr4.cjs → vue-ui-smiley-DtQVEc4B.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DA096qRZ.cjs → vue-ui-spark-trend-B36zW41F.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-t_PBPjL2.js → vue-ui-spark-trend-CaIGk_53.js} +5 -5
- package/dist/{vue-ui-sparkbar-xh4kHNcW.js → vue-ui-sparkbar-DixeozKp.js} +4 -4
- package/dist/{vue-ui-sparkbar-Bx-gf5Hz.cjs → vue-ui-sparkbar-iQKGtxo8.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BfVnT-Cl.js → vue-ui-sparkgauge-C01VB6KP.js} +4 -4
- package/dist/{vue-ui-sparkgauge--atMedaJ.cjs → vue-ui-sparkgauge-DEvgucF7.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-zunUFhA0.cjs → vue-ui-sparkhistogram-CTUuxOma.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BHE8M9AE.js → vue-ui-sparkhistogram-C_6lHF3O.js} +5 -5
- package/dist/{vue-ui-sparkline-B6SKeGhK.js → vue-ui-sparkline-Btm4HVgi.js} +4 -4
- package/dist/{vue-ui-sparkline-CvxWwt_w.cjs → vue-ui-sparkline-DrZWPGOG.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Bhd7EKGG.cjs → vue-ui-sparkstackbar-7pcfCNMr.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B_KMgwOl.js → vue-ui-sparkstackbar-D0UGUm-1.js} +5 -5
- package/dist/{vue-ui-stackbar-C_P0JG4w.js → vue-ui-stackbar-BPMDmY04.js} +12 -12
- package/dist/{vue-ui-stackbar-suSeRgaG.cjs → vue-ui-stackbar-BwRdmPvB.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BUA3moHw.js → vue-ui-strip-plot-BfWQMGXy.js} +11 -11
- package/dist/{vue-ui-strip-plot-CWMQUeOe.cjs → vue-ui-strip-plot-CLN9LikJ.cjs} +1 -1
- package/dist/{vue-ui-table-BYmYQISh.cjs → vue-ui-table-Cdo265Yt.cjs} +1 -1
- package/dist/{vue-ui-table-BcFkS1Cj.js → vue-ui-table-D8GaLhM9.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Bvt_J2PP.js → vue-ui-table-heatmap-C4DRSfsE.js} +4 -4
- package/dist/{vue-ui-table-heatmap-JK93Wb5V.cjs → vue-ui-table-heatmap-CDAf1IIk.cjs} +1 -1
- package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-CFqGNvWi.js → vue-ui-table-sparkline-DMHf03C9.js} +254 -233
- package/dist/{vue-ui-thermometer-Dh844EJO.cjs → vue-ui-thermometer-7BORZJjd.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dm0ttenA.js → vue-ui-thermometer-BCVqil7E.js} +7 -7
- package/dist/{vue-ui-timer-CaFTEmwe.js → vue-ui-timer-DF5HkeeS.js} +5 -5
- package/dist/{vue-ui-timer-LypwXXDJ.cjs → vue-ui-timer-gxiLCP1n.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CFgv3kS8.cjs → vue-ui-tiremarks-CwGnFx4f.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Bgm_MUY2.js → vue-ui-tiremarks-lidhcJsi.js} +7 -7
- package/dist/{vue-ui-treemap--2oLnl5Z.cjs → vue-ui-treemap-BZ_LmiBK.cjs} +1 -1
- package/dist/{vue-ui-treemap-CERIO7kA.js → vue-ui-treemap-CIZaPmbi.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BErNHsoK.js → vue-ui-vertical-bar-dQoTddqU.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B6P0pW6h.cjs → vue-ui-vertical-bar-venrkqjM.cjs} +1 -1
- package/dist/{vue-ui-waffle-DwXtzgfk.js → vue-ui-waffle-CnvWOEVU.js} +11 -11
- package/dist/{vue-ui-waffle-BlsD3mo7.cjs → vue-ui-waffle-oR54BbIg.cjs} +1 -1
- package/dist/{vue-ui-wheel-Bnlv4BkN.cjs → vue-ui-wheel-BUHZEzPr.cjs} +1 -1
- package/dist/{vue-ui-wheel-C57mnBKi.js → vue-ui-wheel-D3itrMku.js} +7 -7
- package/dist/{vue-ui-word-cloud-MQ4ipLvb.cjs → vue-ui-word-cloud-87gwksmM.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C9dIGLRl.js → vue-ui-word-cloud-o3zU6r0-.js} +10 -10
- package/dist/{vue-ui-xy-BLxO3c8J.cjs → vue-ui-xy-D56pm4L0.cjs} +1 -1
- package/dist/{vue-ui-xy-t9BzKivu.js → vue-ui-xy-GR4PGBDy.js} +14 -14
- package/dist/{vue-ui-xy-canvas-RNuxMqDq.js → vue-ui-xy-canvas-BKGOnjut.js} +11 -11
- package/dist/{vue-ui-xy-canvas-xlIskwwx.cjs → vue-ui-xy-canvas-uikeVe72.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DOkp6I9s.cjs +0 -9
- package/dist/vue-ui-table-sparkline-B7_CaLRt.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
1
|
+
import { useCssVars as xe, ref as d, computed as h, watch as re, onMounted as Se, openBlock as i, createElementBlock as v, normalizeClass as U, createElementVNode as p, normalizeStyle as s, toDisplayString as k, createCommentVNode as g, withDirectives as we, createBlock as H, Fragment as q, renderList as X, unref as f, createSlots as Ae, withCtx as P, renderSlot as $, normalizeProps as Ie, guardReactiveProps as $e, createVNode as Oe, nextTick as ze } from "vue";
|
|
2
|
+
import { u as Pe, c as Ne, t as De, a as Fe, p as N, b as Te, o as We, e as se, g as Ve, $ as Ee, d as Me, i as D, f as F, q as Be, r as Ge } from "./index-BtL_cLa8.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-CEAfm1tu.js";
|
|
4
|
+
import Le from "./vue-ui-sparkline-Btm4HVgi.js";
|
|
5
|
+
import de from "./BaseIcon-BHwqOTt4.js";
|
|
6
|
+
import { u as Re, U as Ue, v as He } from "./usePrinter-sRt2SKr2.js";
|
|
7
|
+
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const Xe = ["id"], je = { style: { "z-index": "1", "padding-right": "24px" } }, Je = ["onClick"], Ke = ["data-cell"], Qe = ["data-cell", "onPointerenter"], Ye = ["data-cell"], Ze = ["data-cell"], et = ["data-cell"], tt = ["data-cell"], at = {
|
|
9
9
|
key: 0,
|
|
10
10
|
ref: "source",
|
|
11
11
|
dir: "auto"
|
|
12
|
-
},
|
|
12
|
+
}, lt = {
|
|
13
13
|
__name: "vue-ui-table-sparkline",
|
|
14
14
|
props: {
|
|
15
15
|
config: {
|
|
@@ -25,117 +25,126 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
"
|
|
28
|
+
setup(ve, { expose: ce }) {
|
|
29
|
+
const _ = ve;
|
|
30
|
+
xe((t) => ({
|
|
31
|
+
"465d6ffd": t.tdo
|
|
32
32
|
}));
|
|
33
|
-
const { vue_ui_table_sparkline:
|
|
34
|
-
get: () =>
|
|
33
|
+
const { vue_ui_table_sparkline: fe } = Pe(), T = d(Ne()), j = d(0), W = d(0), V = d(null), e = h({
|
|
34
|
+
get: () => J(),
|
|
35
35
|
set: (t) => t
|
|
36
36
|
});
|
|
37
|
-
function
|
|
38
|
-
const t =
|
|
39
|
-
userConfig:
|
|
40
|
-
defaultConfig:
|
|
37
|
+
function J() {
|
|
38
|
+
const t = ie({
|
|
39
|
+
userConfig: _.config,
|
|
40
|
+
defaultConfig: fe
|
|
41
41
|
});
|
|
42
42
|
return t.theme ? {
|
|
43
|
-
...
|
|
44
|
-
userConfig:
|
|
43
|
+
...ie({
|
|
44
|
+
userConfig: De.vue_ui_table_sparkline[t.theme] || _.config,
|
|
45
45
|
defaultConfig: t
|
|
46
46
|
}),
|
|
47
|
-
customPalette:
|
|
47
|
+
customPalette: Fe[t.theme] || N
|
|
48
48
|
} : t;
|
|
49
49
|
}
|
|
50
|
-
re(() =>
|
|
51
|
-
e.value =
|
|
52
|
-
}, { deep: !0 }), re(() =>
|
|
53
|
-
|
|
50
|
+
re(() => _.config, (t) => {
|
|
51
|
+
e.value = J(), ee(), W.value += 1;
|
|
52
|
+
}, { deep: !0 }), re(() => _.dataset, (t) => {
|
|
53
|
+
b.value = A.value, W.value += 1;
|
|
54
54
|
}, { deep: !0 });
|
|
55
|
-
const { isPrinting:
|
|
56
|
-
elementId: `table_${
|
|
55
|
+
const { isPrinting: K, isImaging: Q, generatePdf: Y, generateImage: Z } = Re({
|
|
56
|
+
elementId: `table_${T.value}`,
|
|
57
57
|
fileName: e.value.title.text || "vue-ui-table-sparkline"
|
|
58
|
-
}), pe = h(() =>
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
}), pe = h(() => Te(e.value.customPalette)), O = d(null), E = d(!1), me = h(() => e.value.responsiveBreakpoint);
|
|
59
|
+
Se(() => {
|
|
60
|
+
ee();
|
|
61
61
|
});
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
|
|
62
|
+
const M = d(e.value.colNames);
|
|
63
|
+
function ee() {
|
|
64
|
+
We(_.dataset) && se({
|
|
65
65
|
componentName: "VueUiTableSparkline",
|
|
66
66
|
type: "dataset"
|
|
67
67
|
});
|
|
68
68
|
const t = new ResizeObserver((l) => {
|
|
69
69
|
l.forEach((a) => {
|
|
70
|
-
|
|
70
|
+
E.value = a.contentRect.width < me.value;
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
|
-
|
|
74
|
-
for (let l = 0; l <
|
|
75
|
-
|
|
73
|
+
O.value && t.observe(O.value), M.value = [];
|
|
74
|
+
for (let l = 0; l < oe.value; l += 1)
|
|
75
|
+
M.value.push(e.value.colNames[l] || `col ${l}`);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
|
|
77
|
+
const te = h(() => (_.dataset.forEach((t, l) => {
|
|
78
|
+
Ve({
|
|
79
79
|
datasetObject: t,
|
|
80
80
|
requiredAttributes: ["name", "values"]
|
|
81
81
|
}).forEach((a) => {
|
|
82
|
-
|
|
82
|
+
se({
|
|
83
83
|
componentName: "VueUiTableSparkline",
|
|
84
84
|
type: "datasetSerieAttribute",
|
|
85
85
|
property: a,
|
|
86
86
|
index: l
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
|
-
}),
|
|
90
|
-
const a = (t.values || []).map((
|
|
89
|
+
}), _.dataset.map((t, l) => {
|
|
90
|
+
const a = (t.values || []).map((n) => isNaN(n) ? 0 : n ?? 0), o = a.reduce((n, c) => n + c, 0), r = o / a.length, u = Ee(a);
|
|
91
91
|
return {
|
|
92
92
|
...t,
|
|
93
93
|
values: t.values || [],
|
|
94
|
-
color:
|
|
95
|
-
sum:
|
|
96
|
-
average:
|
|
97
|
-
median:
|
|
98
|
-
sparklineDataset: a.map((
|
|
99
|
-
period: e.value.colNames[
|
|
100
|
-
value:
|
|
94
|
+
color: Me(t.color) || pe.value[l] || N[l] || N[l % N.length],
|
|
95
|
+
sum: o,
|
|
96
|
+
average: r,
|
|
97
|
+
median: u,
|
|
98
|
+
sparklineDataset: a.map((n, c) => ({
|
|
99
|
+
period: e.value.colNames[c] || `col ${c}`,
|
|
100
|
+
value: n || 0
|
|
101
101
|
}))
|
|
102
102
|
};
|
|
103
103
|
})));
|
|
104
|
-
function
|
|
104
|
+
function ge(t) {
|
|
105
105
|
const a = (t[0].values || []).map(
|
|
106
|
-
(
|
|
106
|
+
(r, u) => t.map((n) => n.values[u] || [])
|
|
107
107
|
).map(
|
|
108
|
-
(
|
|
108
|
+
(r) => r.map((u, n) => [u, n]).sort((u, n) => n[0] - u[0]).map((u) => u[1])
|
|
109
109
|
);
|
|
110
|
-
return t.map((
|
|
111
|
-
...
|
|
112
|
-
values:
|
|
113
|
-
orders: a[
|
|
110
|
+
return t.map((r, u) => ({
|
|
111
|
+
...r,
|
|
112
|
+
values: r.values || [],
|
|
113
|
+
orders: a[u]
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
function
|
|
118
|
-
|
|
116
|
+
const A = h(() => ge(te.value)), b = d(A.value), be = h(() => Math.max(...b.value.map((t) => (t.values || []).length))), z = d(void 0), B = d(!1), m = d(void 0), ae = d(1);
|
|
117
|
+
function w() {
|
|
118
|
+
B.value = !1, m.value = void 0, y.value = void 0, ae.value = 1, I.value.forEach((t) => t.state = 1), x.value = {
|
|
119
|
+
name: 1,
|
|
120
|
+
sum: 1,
|
|
121
|
+
average: 1,
|
|
122
|
+
median: 1
|
|
123
|
+
}, b.value = A.value;
|
|
119
124
|
}
|
|
120
|
-
function
|
|
125
|
+
function le(t, l) {
|
|
121
126
|
if (["name", "sum", "average", "median"].includes(t.type)) {
|
|
122
|
-
|
|
127
|
+
ye(t.type, l);
|
|
123
128
|
return;
|
|
124
129
|
}
|
|
125
|
-
if (!
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
if (!L(l)) return;
|
|
131
|
+
if (S.value = l, y.value = void 0, ![null, void 0].includes(m.value) && l !== m.value && (m.value = void 0, w()), I.value[l].state === 1 && m.value === l) {
|
|
132
|
+
m.value = void 0, w();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
B.value = !0, m.value = l;
|
|
136
|
+
const a = A.value.map((n) => n.values[l] || []), o = z.value === l ? 1 : -1;
|
|
137
|
+
I.value[l].state = o, ae.value = o, l === z.value ? z.value = void 0 : z.value = l;
|
|
138
|
+
const u = a.map((n, c) => [c, n]).sort((n, c) => o * (c[1] - n[1])).map((n) => n[0]).map((n) => A.value[n]);
|
|
139
|
+
b.value = u, W.value += 1;
|
|
131
140
|
}
|
|
132
|
-
const
|
|
133
|
-
let t =
|
|
141
|
+
const oe = h(() => Math.max(..._.dataset.map((t) => (t.values || []).length))), C = h(() => {
|
|
142
|
+
let t = M.value.map((a) => ({
|
|
134
143
|
type: "reg",
|
|
135
144
|
value: a
|
|
136
145
|
}));
|
|
137
146
|
if (!t.length)
|
|
138
|
-
for (let a = 0; a <
|
|
147
|
+
for (let a = 0; a < oe.value; a += 1)
|
|
139
148
|
t.push({ type: "reg", value: `col ${a + 1}` });
|
|
140
149
|
e.value.showTotal && (t = [...t, { type: "sum", value: e.value.translations.total }]);
|
|
141
150
|
let l;
|
|
@@ -144,109 +153,120 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
144
153
|
{ type: "average", value: e.value.translations.average },
|
|
145
154
|
{ type: "median", value: e.value.translations.median }
|
|
146
155
|
] : e.value.showAverage && !e.value.showMedian ? l = [...t, { type: "average", value: e.value.translations.average }] : !e.value.showAverage && e.value.showMedian ? l = [...t, { type: "median", value: e.value.translations.median }] : l = t, e.value.showSparklines ? [...l, { type: "chart", value: e.value.translations.chart }] : l;
|
|
147
|
-
}),
|
|
148
|
-
name:
|
|
149
|
-
sum:
|
|
150
|
-
average:
|
|
151
|
-
median:
|
|
152
|
-
}),
|
|
153
|
-
function
|
|
154
|
-
if (!
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
}), x = d({
|
|
157
|
+
name: 1,
|
|
158
|
+
sum: 1,
|
|
159
|
+
average: 1,
|
|
160
|
+
median: 1
|
|
161
|
+
}), y = d(void 0);
|
|
162
|
+
function ye(t, l) {
|
|
163
|
+
if (!b.value || b.value.length === 0 || !R(t)) return;
|
|
164
|
+
if (y.value !== t && (y.value = void 0), ![null, void 0].includes(m.value) && l !== m.value && w(), m.value = void 0, x.value[t] === 1 && y.value) {
|
|
165
|
+
y.value = void 0, w();
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
y.value = t, B.value = !0, x.value[t] = x.value[t] === -1 ? 1 : -1, [null, void 0].includes(l) || (I.value[l].state = x.value[t]);
|
|
169
|
+
const a = x.value[t], o = [...b.value].sort((r, u) => {
|
|
170
|
+
const n = r[t] ?? (typeof r[t] == "number" ? 0 : ""), c = u[t] ?? (typeof u[t] == "number" ? 0 : "");
|
|
171
|
+
return typeof n == "string" && typeof c == "string" ? a === -1 ? n.localeCompare(c) : c.localeCompare(n) : typeof n == "number" && typeof c == "number" ? a === -1 ? n - c : c - n : 0;
|
|
159
172
|
});
|
|
160
|
-
|
|
173
|
+
b.value = o;
|
|
161
174
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
|
|
175
|
+
const S = d(void 0), G = d(void 0);
|
|
176
|
+
function he({ dataIndex: t, serieIndex: l }) {
|
|
177
|
+
S.value = t, G.value = l, V.value[t] && !E.value && V.value[t].scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
165
178
|
}
|
|
166
|
-
const
|
|
167
|
-
function
|
|
168
|
-
|
|
179
|
+
const ne = d(!1);
|
|
180
|
+
function ke(t) {
|
|
181
|
+
ne.value = t, j.value += 1;
|
|
169
182
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
const t = [e.value.translations.serie].concat(
|
|
173
|
-
[
|
|
174
|
-
|
|
175
|
-
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
]), a = [t].concat(l),
|
|
179
|
-
|
|
180
|
-
csvContent:
|
|
183
|
+
function ue() {
|
|
184
|
+
ze(() => {
|
|
185
|
+
const t = [e.value.translations.serie].concat(C.value), l = te.value.map((r, u) => [
|
|
186
|
+
[r.name],
|
|
187
|
+
r.values,
|
|
188
|
+
[r.sum],
|
|
189
|
+
[r.average],
|
|
190
|
+
[r.median]
|
|
191
|
+
]), a = [t].concat(l), o = Be(a);
|
|
192
|
+
Ge({
|
|
193
|
+
csvContent: o,
|
|
181
194
|
title: e.value.title.text || "vue-ui-table-sparkline"
|
|
182
195
|
});
|
|
183
196
|
});
|
|
184
197
|
}
|
|
185
|
-
function
|
|
198
|
+
function L(t) {
|
|
186
199
|
return e.value.sortedDataColumnIndices.includes(t);
|
|
187
200
|
}
|
|
188
|
-
function
|
|
201
|
+
function R(t) {
|
|
189
202
|
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;
|
|
190
203
|
}
|
|
191
|
-
function
|
|
192
|
-
return ["sum", "average", "median"].includes(l.type) ?
|
|
204
|
+
function _e(t, l) {
|
|
205
|
+
return ["sum", "average", "median"].includes(l.type) ? y.value === l.type ? 1 : 0.3 : t === m.value ? 1 : 0.3;
|
|
206
|
+
}
|
|
207
|
+
function Ce() {
|
|
208
|
+
e.value.resetSortOnClickOutside && w();
|
|
193
209
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
210
|
+
const I = h({
|
|
211
|
+
get: () => C.value.map((t) => ({ state: 1 })),
|
|
212
|
+
set: (t) => t
|
|
213
|
+
});
|
|
214
|
+
return ce({
|
|
215
|
+
generatePdf: Y,
|
|
216
|
+
generateImage: Z,
|
|
217
|
+
generateCsv: ue,
|
|
218
|
+
restoreOrder: w
|
|
219
|
+
}), (t, l) => (i(), v("div", {
|
|
200
220
|
ref_key: "tableContainer",
|
|
201
|
-
ref:
|
|
202
|
-
class:
|
|
221
|
+
ref: O,
|
|
222
|
+
class: U({ "vue-ui-responsive": E.value }),
|
|
203
223
|
style: { overflow: "hidden" },
|
|
204
|
-
id: `table_${
|
|
224
|
+
id: `table_${T.value}`
|
|
205
225
|
}, [
|
|
206
226
|
p("div", {
|
|
207
227
|
style: { overflow: "auto" },
|
|
208
228
|
onPointerleave: l[1] || (l[1] = (a) => {
|
|
209
|
-
G.value = void 0,
|
|
229
|
+
G.value = void 0, S.value = void 0;
|
|
210
230
|
})
|
|
211
231
|
}, [
|
|
212
232
|
p("table", {
|
|
213
233
|
class: "vue-ui-data-table",
|
|
214
|
-
style:
|
|
234
|
+
style: s({ fontFamily: e.value.fontFamily, position: "relative" })
|
|
215
235
|
}, [
|
|
216
|
-
e.value.title.text ? (
|
|
236
|
+
e.value.title.text ? (i(), v("caption", {
|
|
217
237
|
key: 0,
|
|
218
|
-
style:
|
|
238
|
+
style: s({ backgroundColor: e.value.title.backgroundColor })
|
|
219
239
|
}, [
|
|
220
240
|
p("div", {
|
|
221
|
-
style:
|
|
241
|
+
style: s({
|
|
222
242
|
fontSize: `${e.value.title.fontSize}px`,
|
|
223
243
|
fontWeight: e.value.title.bold ? "bold" : "normal",
|
|
224
244
|
color: e.value.title.color,
|
|
225
245
|
textAlign: e.value.title.textAlign
|
|
226
246
|
})
|
|
227
|
-
},
|
|
228
|
-
e.value.title.subtitle.text ? (
|
|
247
|
+
}, k(e.value.title.text), 5),
|
|
248
|
+
e.value.title.subtitle.text ? (i(), v("div", {
|
|
229
249
|
key: 0,
|
|
230
|
-
style:
|
|
250
|
+
style: s({
|
|
231
251
|
fontSize: `${e.value.title.subtitle.fontSize}px`,
|
|
232
252
|
fontWeight: e.value.title.subtitle.bold ? "bold" : "normal",
|
|
233
253
|
color: e.value.title.subtitle.color,
|
|
234
254
|
textAlign: e.value.title.textAlign
|
|
235
255
|
})
|
|
236
|
-
},
|
|
237
|
-
], 4)) :
|
|
238
|
-
p("thead",
|
|
239
|
-
|
|
256
|
+
}, k(e.value.title.subtitle.text), 5)) : g("", !0)
|
|
257
|
+
], 4)) : g("", !0),
|
|
258
|
+
p("thead", je, [
|
|
259
|
+
we((i(), v("tr", {
|
|
240
260
|
role: "row",
|
|
241
261
|
class: "vue-ui-data-table__thead-row",
|
|
242
|
-
style:
|
|
262
|
+
style: s({
|
|
243
263
|
backgroundColor: e.value.thead.backgroundColor,
|
|
244
264
|
color: e.value.thead.color
|
|
245
265
|
})
|
|
246
266
|
}, [
|
|
247
267
|
p("th", {
|
|
248
268
|
role: "cell",
|
|
249
|
-
style:
|
|
269
|
+
style: s({
|
|
250
270
|
backgroundColor: e.value.thead.backgroundColor,
|
|
251
271
|
border: e.value.thead.outline,
|
|
252
272
|
textAlign: e.value.thead.textAlign,
|
|
@@ -254,131 +274,133 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
254
274
|
cursor: e.value.sortedSeriesName ? "pointer" : "default"
|
|
255
275
|
}),
|
|
256
276
|
class: "sticky-col-first",
|
|
257
|
-
onClick: l[0] || (l[0] = (a) =>
|
|
277
|
+
onClick: l[0] || (l[0] = (a) => le({ type: "name" }, null))
|
|
258
278
|
}, [
|
|
259
279
|
p("div", {
|
|
260
|
-
style:
|
|
280
|
+
style: s({
|
|
261
281
|
display: "flex",
|
|
262
282
|
flexDirection: "row",
|
|
263
283
|
alignItems: "center",
|
|
264
284
|
gap: "6px",
|
|
265
|
-
justifyContent: e.value.thead.textAlign
|
|
285
|
+
justifyContent: e.value.thead.textAlign,
|
|
286
|
+
pointerEvents: "none"
|
|
266
287
|
})
|
|
267
288
|
}, [
|
|
268
|
-
p("span", null,
|
|
269
|
-
e.value.sortedSeriesName ? (
|
|
289
|
+
p("span", null, k(e.value.translations.serie), 1),
|
|
290
|
+
e.value.sortedSeriesName ? (i(), H(de, {
|
|
270
291
|
key: 0,
|
|
271
|
-
size:
|
|
272
|
-
name: "
|
|
292
|
+
size: 12,
|
|
293
|
+
name: x.value.name === 1 ? "arrowBottom" : "arrowTop",
|
|
273
294
|
stroke: e.value.thead.color,
|
|
274
|
-
style:
|
|
275
|
-
opacity:
|
|
295
|
+
style: s({
|
|
296
|
+
opacity: y.value === "name" ? 1 : 0.3
|
|
276
297
|
})
|
|
277
|
-
}, null, 8, ["stroke", "style"])) :
|
|
298
|
+
}, null, 8, ["name", "stroke", "style"])) : g("", !0)
|
|
278
299
|
], 4)
|
|
279
300
|
], 4),
|
|
280
|
-
(
|
|
301
|
+
(i(!0), v(q, null, X(C.value, (a, o) => (i(), v("th", {
|
|
281
302
|
role: "cell",
|
|
282
|
-
style:
|
|
303
|
+
style: s({
|
|
283
304
|
background: e.value.thead.backgroundColor,
|
|
284
305
|
border: e.value.thead.outline,
|
|
285
306
|
textAlign: e.value.thead.textAlign,
|
|
286
307
|
fontWeight: e.value.thead.bold ? "bold" : "normal",
|
|
287
|
-
minWidth:
|
|
288
|
-
cursor:
|
|
289
|
-
paddingRight:
|
|
308
|
+
minWidth: o === C.value.length - 1 ? `${e.value.sparkline.dimensions.width}px` : "48px",
|
|
309
|
+
cursor: L(o) || R(a) ? "pointer" : "default",
|
|
310
|
+
paddingRight: o === C.value.length - 1 && e.value.userOptions.show ? "36px" : ""
|
|
290
311
|
}),
|
|
291
|
-
onClick: () =>
|
|
292
|
-
class:
|
|
312
|
+
onClick: () => le(a, o),
|
|
313
|
+
class: U({ "sticky-col": o === C.value.length - 1 && e.value.showSparklines })
|
|
293
314
|
}, [
|
|
294
315
|
p("div", {
|
|
295
|
-
style:
|
|
316
|
+
style: s({
|
|
296
317
|
display: "flex",
|
|
297
318
|
flexDirection: "row",
|
|
298
319
|
alignItems: "center",
|
|
299
320
|
gap: "6px",
|
|
300
|
-
justifyContent: e.value.thead.textAlign
|
|
321
|
+
justifyContent: e.value.thead.textAlign,
|
|
322
|
+
pointerEvents: "none"
|
|
301
323
|
})
|
|
302
324
|
}, [
|
|
303
|
-
p("span", null,
|
|
304
|
-
|
|
325
|
+
p("span", null, k(a.value), 1),
|
|
326
|
+
L(o) || R(a) ? (i(), H(de, {
|
|
305
327
|
key: 0,
|
|
306
|
-
size:
|
|
307
|
-
name: "
|
|
328
|
+
size: 12,
|
|
329
|
+
name: I.value[o].state === 1 ? "arrowBottom" : "arrowTop",
|
|
308
330
|
stroke: e.value.thead.color,
|
|
309
|
-
style:
|
|
310
|
-
opacity:
|
|
331
|
+
style: s({
|
|
332
|
+
opacity: _e(o, a)
|
|
311
333
|
})
|
|
312
|
-
}, null, 8, ["stroke", "style"])) :
|
|
334
|
+
}, null, 8, ["name", "stroke", "style"])) : g("", !0)
|
|
313
335
|
], 4),
|
|
314
|
-
e.value.userOptions.show &&
|
|
336
|
+
e.value.userOptions.show && o === C.value.length - 1 ? (i(), H(Ue, {
|
|
315
337
|
ref_for: !0,
|
|
316
338
|
ref: "details",
|
|
317
|
-
key: `user_option_${
|
|
339
|
+
key: `user_option_${j.value}`,
|
|
318
340
|
backgroundColor: e.value.thead.backgroundColor,
|
|
319
341
|
color: e.value.thead.color,
|
|
320
|
-
isPrinting:
|
|
321
|
-
isImaging:
|
|
322
|
-
uid:
|
|
342
|
+
isPrinting: f(K),
|
|
343
|
+
isImaging: f(Q),
|
|
344
|
+
uid: T.value,
|
|
323
345
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
324
346
|
hasXls: e.value.userOptions.buttons.csv,
|
|
325
347
|
hasImg: e.value.userOptions.buttons.img,
|
|
326
348
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
327
|
-
isFullscreen:
|
|
349
|
+
isFullscreen: ne.value,
|
|
328
350
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
329
|
-
chartElement:
|
|
351
|
+
chartElement: O.value,
|
|
330
352
|
position: e.value.userOptions.position,
|
|
331
|
-
onToggleFullscreen:
|
|
332
|
-
onGeneratePdf:
|
|
333
|
-
onGenerateImage:
|
|
334
|
-
onGenerateCsv:
|
|
335
|
-
},
|
|
353
|
+
onToggleFullscreen: ke,
|
|
354
|
+
onGeneratePdf: f(Y),
|
|
355
|
+
onGenerateImage: f(Z),
|
|
356
|
+
onGenerateCsv: ue
|
|
357
|
+
}, Ae({ _: 2 }, [
|
|
336
358
|
t.$slots.optionPdf ? {
|
|
337
359
|
name: "optionPdf",
|
|
338
|
-
fn:
|
|
339
|
-
|
|
360
|
+
fn: P(() => [
|
|
361
|
+
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
340
362
|
]),
|
|
341
363
|
key: "0"
|
|
342
364
|
} : void 0,
|
|
343
365
|
t.$slots.optionCsv ? {
|
|
344
366
|
name: "optionCsv",
|
|
345
|
-
fn:
|
|
346
|
-
|
|
367
|
+
fn: P(() => [
|
|
368
|
+
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
347
369
|
]),
|
|
348
370
|
key: "1"
|
|
349
371
|
} : void 0,
|
|
350
372
|
t.$slots.optionImg ? {
|
|
351
373
|
name: "optionImg",
|
|
352
|
-
fn:
|
|
353
|
-
|
|
374
|
+
fn: P(() => [
|
|
375
|
+
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
354
376
|
]),
|
|
355
377
|
key: "2"
|
|
356
378
|
} : void 0,
|
|
357
379
|
t.$slots.optionFullscreen ? {
|
|
358
380
|
name: "optionFullscreen",
|
|
359
|
-
fn:
|
|
360
|
-
|
|
381
|
+
fn: P(({ toggleFullscreen: r, isFullscreen: u }) => [
|
|
382
|
+
$(t.$slots, "optionFullscreen", Ie($e({ toggleFullscreen: r, isFullscreen: u })), void 0, !0)
|
|
361
383
|
]),
|
|
362
384
|
key: "3"
|
|
363
385
|
} : void 0
|
|
364
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
365
|
-
], 14,
|
|
386
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : g("", !0)
|
|
387
|
+
], 14, Je))), 256))
|
|
366
388
|
], 4)), [
|
|
367
|
-
[
|
|
389
|
+
[f(He), Ce]
|
|
368
390
|
])
|
|
369
391
|
]),
|
|
370
392
|
p("tbody", null, [
|
|
371
|
-
(
|
|
393
|
+
(i(!0), v(q, null, X(b.value, (a, o) => (i(), v("tr", {
|
|
372
394
|
role: "row",
|
|
373
|
-
style:
|
|
395
|
+
style: s({
|
|
374
396
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
375
397
|
color: e.value.tbody.color
|
|
376
398
|
}),
|
|
377
|
-
class:
|
|
399
|
+
class: U({ "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 })
|
|
378
400
|
}, [
|
|
379
401
|
p("td", {
|
|
380
402
|
role: "cell",
|
|
381
|
-
style:
|
|
403
|
+
style: s({
|
|
382
404
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
383
405
|
border: e.value.tbody.outline,
|
|
384
406
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
@@ -390,7 +412,7 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
390
412
|
}, [
|
|
391
413
|
p("div", {
|
|
392
414
|
dir: "auto",
|
|
393
|
-
style:
|
|
415
|
+
style: s({
|
|
394
416
|
display: "flex",
|
|
395
417
|
flexDirection: "row",
|
|
396
418
|
alignItems: "center",
|
|
@@ -398,47 +420,47 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
398
420
|
justifyContent: e.value.tbody.textAlign
|
|
399
421
|
})
|
|
400
422
|
}, [
|
|
401
|
-
e.value.tbody.showColorMarker ? (
|
|
423
|
+
e.value.tbody.showColorMarker ? (i(), v("span", {
|
|
402
424
|
key: 0,
|
|
403
|
-
style:
|
|
404
|
-
}, "⬤", 4)) :
|
|
405
|
-
p("span", null,
|
|
425
|
+
style: s({ color: a.color })
|
|
426
|
+
}, "⬤", 4)) : g("", !0),
|
|
427
|
+
p("span", null, k(a.name ?? "-"), 1)
|
|
406
428
|
], 4)
|
|
407
|
-
], 12,
|
|
408
|
-
(
|
|
429
|
+
], 12, Ke),
|
|
430
|
+
(i(!0), v(q, null, X(be.value, (r, u) => (i(), v("td", {
|
|
409
431
|
dir: "auto",
|
|
410
432
|
role: "cell",
|
|
411
433
|
ref_for: !0,
|
|
412
434
|
ref_key: "TD",
|
|
413
|
-
ref:
|
|
414
|
-
style:
|
|
435
|
+
ref: V,
|
|
436
|
+
style: s({
|
|
415
437
|
border: e.value.tbody.outline,
|
|
416
438
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
417
439
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
418
440
|
textAlign: e.value.tbody.textAlign,
|
|
419
|
-
background:
|
|
441
|
+
background: S.value !== void 0 && u === S.value ? e.value.tbody.selectedColor.useSerieColor ? `${a.color.length > 7 ? a.color.slice(0, -2) : a.color}33` : e.value.tbody.selectedColor.fallback : ""
|
|
420
442
|
}),
|
|
421
|
-
"data-cell":
|
|
443
|
+
"data-cell": C.value[u],
|
|
422
444
|
class: "vue-ui-data-table__tbody__td",
|
|
423
|
-
onPointerenter: (
|
|
424
|
-
G.value =
|
|
445
|
+
onPointerenter: (n) => {
|
|
446
|
+
G.value = o, S.value = u;
|
|
425
447
|
}
|
|
426
|
-
},
|
|
448
|
+
}, k([null, void 0].includes(a.values[u]) ? "-" : f(D)(
|
|
427
449
|
e.value.formatter,
|
|
428
|
-
Number(a.values[
|
|
429
|
-
|
|
450
|
+
Number(a.values[u]),
|
|
451
|
+
f(F)({
|
|
430
452
|
p: e.value.prefix,
|
|
431
|
-
v: Number(a.values[
|
|
453
|
+
v: Number(a.values[u]),
|
|
432
454
|
s: e.value.suffix,
|
|
433
455
|
r: e.value.roundingValues
|
|
434
456
|
}),
|
|
435
|
-
{ datapoint: a, seriesIndex:
|
|
436
|
-
)), 45,
|
|
437
|
-
e.value.showTotal ? (
|
|
457
|
+
{ datapoint: a, seriesIndex: o, datapointIndex: u }
|
|
458
|
+
)), 45, Qe))), 256)),
|
|
459
|
+
e.value.showTotal ? (i(), v("td", {
|
|
438
460
|
key: 0,
|
|
439
461
|
dir: "auto",
|
|
440
462
|
role: "cell",
|
|
441
|
-
style:
|
|
463
|
+
style: s({
|
|
442
464
|
border: e.value.tbody.outline,
|
|
443
465
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
444
466
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -446,22 +468,22 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
446
468
|
}),
|
|
447
469
|
"data-cell": e.value.translations.total,
|
|
448
470
|
class: "vue-ui-data-table__tbody__td"
|
|
449
|
-
},
|
|
471
|
+
}, k(f(D)(
|
|
450
472
|
e.value.formatter,
|
|
451
473
|
a.sum,
|
|
452
|
-
|
|
474
|
+
f(F)({
|
|
453
475
|
p: e.value.prefix,
|
|
454
476
|
v: a.sum,
|
|
455
477
|
s: e.value.suffix,
|
|
456
478
|
r: e.value.roundingTotal
|
|
457
479
|
}),
|
|
458
|
-
{ datapoint: a.sum, seriesIndex:
|
|
459
|
-
)), 13,
|
|
460
|
-
e.value.showAverage ? (
|
|
480
|
+
{ datapoint: a.sum, seriesIndex: o }
|
|
481
|
+
)), 13, Ye)) : g("", !0),
|
|
482
|
+
e.value.showAverage ? (i(), v("td", {
|
|
461
483
|
key: 1,
|
|
462
484
|
dir: "auto",
|
|
463
485
|
role: "cell",
|
|
464
|
-
style:
|
|
486
|
+
style: s({
|
|
465
487
|
border: e.value.tbody.outline,
|
|
466
488
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
467
489
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -469,22 +491,22 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
469
491
|
}),
|
|
470
492
|
"data-cell": e.value.translations.average,
|
|
471
493
|
class: "vue-ui-data-table__tbody__td"
|
|
472
|
-
},
|
|
494
|
+
}, k(f(D)(
|
|
473
495
|
e.value.formatter,
|
|
474
496
|
a.average,
|
|
475
|
-
|
|
497
|
+
f(F)({
|
|
476
498
|
p: e.value.prefix,
|
|
477
499
|
v: a.average,
|
|
478
500
|
s: e.value.suffix,
|
|
479
501
|
r: e.value.roundingAverage
|
|
480
502
|
}),
|
|
481
|
-
{ datapoint: a.average, seriesIndex:
|
|
482
|
-
)), 13,
|
|
483
|
-
e.value.showMedian ? (
|
|
503
|
+
{ datapoint: a.average, seriesIndex: o }
|
|
504
|
+
)), 13, Ze)) : g("", !0),
|
|
505
|
+
e.value.showMedian ? (i(), v("td", {
|
|
484
506
|
key: 2,
|
|
485
507
|
dir: "auto",
|
|
486
508
|
role: "cell",
|
|
487
|
-
style:
|
|
509
|
+
style: s({
|
|
488
510
|
border: e.value.tbody.outline,
|
|
489
511
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
490
512
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -492,22 +514,22 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
492
514
|
}),
|
|
493
515
|
"data-cell": e.value.translations.median,
|
|
494
516
|
class: "vue-ui-data-table__tbody__td"
|
|
495
|
-
},
|
|
517
|
+
}, k(f(D)(
|
|
496
518
|
e.value.formatter,
|
|
497
519
|
a.median,
|
|
498
|
-
|
|
520
|
+
f(F)({
|
|
499
521
|
p: e.value.prefix,
|
|
500
522
|
v: a.median,
|
|
501
523
|
s: e.value.suffix,
|
|
502
524
|
r: e.value.roundingMedian
|
|
503
525
|
}),
|
|
504
|
-
{ datapoint: a.median, seriesIndex:
|
|
505
|
-
)), 13,
|
|
506
|
-
e.value.showSparklines ? (
|
|
526
|
+
{ datapoint: a.median, seriesIndex: o }
|
|
527
|
+
)), 13, et)) : g("", !0),
|
|
528
|
+
e.value.showSparklines ? (i(), v("td", {
|
|
507
529
|
key: 3,
|
|
508
530
|
role: "cell",
|
|
509
531
|
"data-cell": e.value.translations.chart,
|
|
510
|
-
style:
|
|
532
|
+
style: s({
|
|
511
533
|
border: e.value.tbody.outline,
|
|
512
534
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
513
535
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
@@ -517,20 +539,19 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
517
539
|
}),
|
|
518
540
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
519
541
|
}, [
|
|
520
|
-
(
|
|
521
|
-
|
|
522
|
-
onHoverIndex: ({ index: u }) => ye({ dataIndex: u, serieIndex: n }),
|
|
542
|
+
Oe(Le, {
|
|
543
|
+
onHoverIndex: ({ index: r }) => he({ dataIndex: r, serieIndex: o }),
|
|
523
544
|
"height-ratio": e.value.sparkline.dimensions.heightRatio,
|
|
524
545
|
"forced-padding": 30,
|
|
525
546
|
dataset: a.sparklineDataset,
|
|
526
547
|
showInfo: !1,
|
|
527
|
-
selectedIndex:
|
|
548
|
+
selectedIndex: S.value,
|
|
528
549
|
config: {
|
|
529
550
|
type: e.value.sparkline.type,
|
|
530
551
|
style: {
|
|
531
552
|
backgroundColor: "transparent",
|
|
532
553
|
animation: {
|
|
533
|
-
show: e.value.sparkline.animation.show && !
|
|
554
|
+
show: e.value.sparkline.animation.show && !f(K) && !f(Q),
|
|
534
555
|
animationFrames: e.value.sparkline.animation.animationFrames
|
|
535
556
|
},
|
|
536
557
|
line: {
|
|
@@ -556,18 +577,18 @@ const Ue = ["id"], He = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
556
577
|
}
|
|
557
578
|
}
|
|
558
579
|
}
|
|
559
|
-
}, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"])
|
|
560
|
-
], 12,
|
|
580
|
+
}, null, 8, ["onHoverIndex", "height-ratio", "dataset", "selectedIndex", "config"])
|
|
581
|
+
], 12, tt)) : g("", !0)
|
|
561
582
|
], 6))), 256))
|
|
562
583
|
])
|
|
563
584
|
], 4)
|
|
564
585
|
], 32),
|
|
565
|
-
t.$slots.source ? (
|
|
566
|
-
|
|
567
|
-
], 512)) :
|
|
568
|
-
], 10,
|
|
586
|
+
t.$slots.source ? (i(), v("div", at, [
|
|
587
|
+
$(t.$slots, "source", {}, void 0, !0)
|
|
588
|
+
], 512)) : g("", !0)
|
|
589
|
+
], 10, Xe));
|
|
569
590
|
}
|
|
570
|
-
},
|
|
591
|
+
}, vt = /* @__PURE__ */ qe(lt, [["__scopeId", "data-v-dad6e5d1"]]);
|
|
571
592
|
export {
|
|
572
|
-
|
|
593
|
+
vt as default
|
|
573
594
|
};
|