vue-data-ui 3.22.4 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
2
|
+
import { At as t, Dt as n, Ht as r, Q as i, S as a, W as o, X as ee, b as te, f as ne, i as re, lt as ie, q as ae, w as oe } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ce } from "./usePrinter-CRp5IW3v.js";
|
|
5
|
+
import { t as s } from "./useNestedProp-BEo2N1Db.js";
|
|
6
6
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { t as de } from "./useUserOptionState-DK-_1ddE.js";
|
|
9
9
|
import { t as fe } from "./vClickOutside-DUrZWttG.js";
|
|
10
10
|
import { t as pe } from "./vue_ui_table_sparkline-DAbkUrNz.js";
|
|
11
|
-
import { Fragment as
|
|
11
|
+
import { Fragment as c, computed as l, createBlock as me, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as he, createVNode as p, defineAsyncComponent as m, mergeProps as h, nextTick as ge, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as _e, onMounted as ve, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as ye, toDisplayString as S, unref as C, useCssVars as be, useSlots as xe, watch as Se, withCtx as w, withDirectives as Ce } from "vue";
|
|
12
12
|
//#region src/components/vue-ui-table-sparkline.vue
|
|
13
|
-
var
|
|
13
|
+
var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
14
14
|
"z-index": "1",
|
|
15
15
|
"padding-right": "24px"
|
|
16
|
-
} },
|
|
16
|
+
} }, De = {
|
|
17
17
|
key: 0,
|
|
18
18
|
style: {
|
|
19
19
|
display: "flex",
|
|
20
20
|
flexDirection: "row",
|
|
21
21
|
alignItems: "center"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, Oe = {
|
|
24
24
|
key: 0,
|
|
25
25
|
style: {
|
|
26
26
|
display: "flex",
|
|
27
27
|
flexDirection: "row",
|
|
28
28
|
alignItems: "center"
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, ke = ["onClick"], Ae = ["onClick"], je = ["data-cell"], Me = ["data-cell", "onPointerenter"], Ne = ["data-cell"], Pe = ["data-cell"], Fe = ["data-cell"], Ie = ["data-cell"], Le = {
|
|
31
31
|
key: 1,
|
|
32
32
|
ref: "source",
|
|
33
33
|
dir: "auto"
|
|
34
|
-
},
|
|
34
|
+
}, T = /*#__PURE__*/ ue({
|
|
35
35
|
__name: "vue-ui-table-sparkline",
|
|
36
36
|
props: {
|
|
37
37
|
config: {
|
|
@@ -48,51 +48,51 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
emits: ["copyAlt"],
|
|
51
|
-
setup(e, { expose: ue, emit:
|
|
52
|
-
|
|
53
|
-
let
|
|
54
|
-
|
|
51
|
+
setup(e, { expose: ue, emit: we }) {
|
|
52
|
+
be((e) => ({ v43308e63: e.tdo }));
|
|
53
|
+
let T = m(() => import("./vue-ui-sparkline-Bi06lHQd.js").then((e) => e.n)), E = m(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), Re = m(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), { vue_ui_table_sparkline: ze } = se(), { isThemeValid: Be, warnInvalidTheme: Ve } = le(), D = e, He = we, O = y(o()), Ue = y(0), k = y(0), We = y(null), Ge = xe(), Ke = y(!1);
|
|
54
|
+
ve(() => {
|
|
55
55
|
Ge["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
56
56
|
});
|
|
57
|
-
let A =
|
|
57
|
+
let A = l({
|
|
58
58
|
get: () => Ye(),
|
|
59
59
|
set: (e) => e
|
|
60
|
-
}), j =
|
|
60
|
+
}), j = l(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: M, setUserOptionsVisibility: qe, keepUserOptionState: Je } = de({ config: A.value });
|
|
61
61
|
function Ye() {
|
|
62
|
-
let e =
|
|
63
|
-
userConfig:
|
|
64
|
-
defaultConfig:
|
|
65
|
-
}),
|
|
66
|
-
if (!
|
|
67
|
-
if (!
|
|
68
|
-
let
|
|
69
|
-
userConfig: pe[
|
|
62
|
+
let e = s({
|
|
63
|
+
userConfig: D.config,
|
|
64
|
+
defaultConfig: ze
|
|
65
|
+
}), n = e.theme;
|
|
66
|
+
if (!n) return e;
|
|
67
|
+
if (!Be.value(e)) return Ve(e), e;
|
|
68
|
+
let i = s({
|
|
69
|
+
userConfig: pe[n] || D.config,
|
|
70
70
|
defaultConfig: e
|
|
71
|
-
}),
|
|
72
|
-
userConfig:
|
|
73
|
-
defaultConfig:
|
|
71
|
+
}), a = s({
|
|
72
|
+
userConfig: D.config,
|
|
73
|
+
defaultConfig: i
|
|
74
74
|
});
|
|
75
75
|
return {
|
|
76
|
-
...
|
|
77
|
-
customPalette:
|
|
76
|
+
...a,
|
|
77
|
+
customPalette: a.customPalette.length ? a.customPalette : r[n] || t
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
A.value = Ye(), M.value = !A.value.userOptions.showOnChartHover, nt(),
|
|
82
|
-
}, { deep: !0 }),
|
|
83
|
-
|
|
80
|
+
Se(() => D.config, (e) => {
|
|
81
|
+
A.value = Ye(), M.value = !A.value.userOptions.showOnChartHover, nt(), k.value += 1;
|
|
82
|
+
}, { deep: !0 }), Se(() => D.dataset, (e) => {
|
|
83
|
+
H.value = V.value, k.value += 1;
|
|
84
84
|
}, { deep: !0 });
|
|
85
|
-
let { isPrinting: Xe, isImaging: Ze, generatePdf: Qe, generateImage: $e } =
|
|
86
|
-
elementId: `table_${
|
|
85
|
+
let { isPrinting: Xe, isImaging: Ze, generatePdf: Qe, generateImage: $e } = ce({
|
|
86
|
+
elementId: `table_${O.value}`,
|
|
87
87
|
fileName: A.value.title.text || "vue-ui-table-sparkline",
|
|
88
88
|
options: A.value.userOptions.print
|
|
89
|
-
}), et =
|
|
90
|
-
|
|
89
|
+
}), et = l(() => a(A.value.customPalette)), N = y(null), P = y(!1), tt = l(() => A.value.responsiveBreakpoint);
|
|
90
|
+
ve(() => {
|
|
91
91
|
nt();
|
|
92
92
|
});
|
|
93
|
-
let F =
|
|
93
|
+
let F = y(A.value.colNames), I = ye(null);
|
|
94
94
|
function nt() {
|
|
95
|
-
|
|
95
|
+
n(D.dataset) && i({
|
|
96
96
|
componentName: "VueUiTableSparkline",
|
|
97
97
|
type: "dataset"
|
|
98
98
|
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((e) => {
|
|
@@ -100,9 +100,9 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
100
100
|
P.value = e.contentRect.width < tt.value;
|
|
101
101
|
});
|
|
102
102
|
}), N.value && I.value.observe(N.value), F.value = [];
|
|
103
|
-
for (let e = 0; e <
|
|
103
|
+
for (let e = 0; e < ct.value; e += 1) F.value.push(A.value.colNames[e] || `col ${e}`);
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
_e(() => {
|
|
106
106
|
I.value && I.value.disconnect();
|
|
107
107
|
});
|
|
108
108
|
function L(e) {
|
|
@@ -110,94 +110,94 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
110
110
|
let t = Number(e);
|
|
111
111
|
return Number.isFinite(t) ? t : null;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function rt(e) {
|
|
114
114
|
return typeof e == "number" && Number.isFinite(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return e.map(L).filter(
|
|
116
|
+
function it(e = []) {
|
|
117
|
+
return e.map(L).filter(rt);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let r = L(e), i = L(t), a =
|
|
119
|
+
function R(e, t, n) {
|
|
120
|
+
let r = L(e), i = L(t), a = rt(r), o = rt(i);
|
|
121
121
|
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function z(e, t, n = {}) {
|
|
124
124
|
let r = L(e);
|
|
125
|
-
return r === null ? "-" :
|
|
125
|
+
return r === null ? "-" : re(A.value.formatter, r, ae({
|
|
126
126
|
p: A.value.prefix,
|
|
127
127
|
v: r,
|
|
128
128
|
s: A.value.suffix,
|
|
129
129
|
r: t
|
|
130
130
|
}), n);
|
|
131
131
|
}
|
|
132
|
-
let
|
|
132
|
+
let B = l(() => (D.dataset.forEach((e, t) => {
|
|
133
133
|
ie({
|
|
134
134
|
datasetObject: e,
|
|
135
135
|
requiredAttributes: ["name", "values"]
|
|
136
136
|
}).forEach((e) => {
|
|
137
|
-
|
|
137
|
+
i({
|
|
138
138
|
componentName: "VueUiTableSparkline",
|
|
139
139
|
type: "datasetSerieAttribute",
|
|
140
140
|
property: e,
|
|
141
141
|
index: t
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
|
-
}),
|
|
145
|
-
let
|
|
144
|
+
}), D.dataset.map((e, n) => {
|
|
145
|
+
let r = e.values || [], i = it(r), a = i.length ? i.reduce((e, t) => e + t, 0) : null, o = i.length ? a / i.length : null, ee = i.length ? ne(i) : null;
|
|
146
146
|
return {
|
|
147
147
|
...e,
|
|
148
|
-
values:
|
|
149
|
-
color:
|
|
150
|
-
sum:
|
|
151
|
-
average:
|
|
152
|
-
median:
|
|
153
|
-
sparklineDataset:
|
|
148
|
+
values: r,
|
|
149
|
+
color: te(e.color) || et.value[n] || t[n] || t[n % t.length],
|
|
150
|
+
sum: a,
|
|
151
|
+
average: o,
|
|
152
|
+
median: ee,
|
|
153
|
+
sparklineDataset: r.map((e, t) => ({
|
|
154
154
|
period: A.value.colNames[t] || `col ${t}`,
|
|
155
155
|
value: L(e)
|
|
156
156
|
}))
|
|
157
157
|
};
|
|
158
158
|
})));
|
|
159
|
-
function
|
|
160
|
-
let t = (e[0]?.values || []).map((t, n) => e.map((e) => e?.values?.[n] ?? null)).map((e) => e.map((e, t) => [e, t]).sort((e, t) =>
|
|
159
|
+
function at(e) {
|
|
160
|
+
let t = (e[0]?.values || []).map((t, n) => e.map((e) => e?.values?.[n] ?? null)).map((e) => e.map((e, t) => [e, t]).sort((e, t) => R(e[0], t[0], 1)).map((e) => e[1]));
|
|
161
161
|
return e.map((e, n) => ({
|
|
162
162
|
...e,
|
|
163
163
|
values: e.values || [],
|
|
164
164
|
orders: t[n]
|
|
165
165
|
}));
|
|
166
166
|
}
|
|
167
|
-
let
|
|
168
|
-
function
|
|
169
|
-
|
|
167
|
+
let V = l(() => at(B.value)), H = y(V.value), ot = l(() => Math.max(...H.value.map((e) => (e.values || []).length))), U = y(void 0), W = y(!1), G = y(void 0), st = y(1);
|
|
168
|
+
function K() {
|
|
169
|
+
W.value = !1, G.value = void 0, X.value = void 0, st.value = 1, $.value.forEach((e) => e.state = 1), Y.value = {
|
|
170
170
|
name: 1,
|
|
171
171
|
sum: 1,
|
|
172
172
|
average: 1,
|
|
173
173
|
median: 1
|
|
174
|
-
},
|
|
174
|
+
}, H.value = V.value;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function q(e, t, n) {
|
|
177
177
|
if ([
|
|
178
178
|
"name",
|
|
179
179
|
"sum",
|
|
180
180
|
"average",
|
|
181
181
|
"median"
|
|
182
182
|
].includes(e.type)) {
|
|
183
|
-
|
|
183
|
+
lt(e.type, t, n);
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
if (!mt(t)) return;
|
|
187
|
-
if (
|
|
188
|
-
|
|
187
|
+
if (Z.value = t, X.value = void 0, ![null, void 0].includes(G.value) && t !== G.value && (G.value = void 0, K()), $.value[t].state === n && G.value === t) {
|
|
188
|
+
G.value = void 0, K();
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
let r =
|
|
193
|
-
$.value[t].state = i,
|
|
191
|
+
W.value = !0, G.value = t;
|
|
192
|
+
let r = V.value.map((e) => e.values?.[t] ?? null), i = n;
|
|
193
|
+
$.value[t].state = i, st.value = i, t === U.value ? U.value = void 0 : U.value = t, H.value = r.map((e, t) => [t, e]).sort((e, t) => R(e[1], t[1], i)).map((e) => e[0]).map((e) => V.value[e]), k.value += 1;
|
|
194
194
|
}
|
|
195
|
-
let
|
|
195
|
+
let ct = l(() => Math.max(...D.dataset.map((e) => (e.values || []).length))), J = l(() => {
|
|
196
196
|
let e = F.value.map((e) => ({
|
|
197
197
|
type: "reg",
|
|
198
198
|
value: e
|
|
199
199
|
}));
|
|
200
|
-
if (!e.length) for (let t = 0; t <
|
|
200
|
+
if (!e.length) for (let t = 0; t < ct.value; t += 1) e.push({
|
|
201
201
|
type: "reg",
|
|
202
202
|
value: `col ${t + 1}`
|
|
203
203
|
});
|
|
@@ -226,47 +226,47 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
226
226
|
type: "chart",
|
|
227
227
|
value: A.value.translations.chart
|
|
228
228
|
}] : t;
|
|
229
|
-
}),
|
|
229
|
+
}), Y = y({
|
|
230
230
|
name: 1,
|
|
231
231
|
sum: 1,
|
|
232
232
|
average: 1,
|
|
233
233
|
median: 1
|
|
234
|
-
}),
|
|
235
|
-
function
|
|
236
|
-
if (!
|
|
237
|
-
if (
|
|
238
|
-
|
|
234
|
+
}), X = y(void 0);
|
|
235
|
+
function lt(e, t, n) {
|
|
236
|
+
if (!H.value || H.value.length === 0 || !ht(e)) return;
|
|
237
|
+
if (X.value !== e && (X.value = void 0), ![null, void 0].includes(G.value) && t !== G.value && K(), G.value = void 0, Y.value[e] === n && X.value) {
|
|
238
|
+
X.value = void 0, K();
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
let r =
|
|
243
|
-
|
|
241
|
+
X.value = e, W.value = !0, Y.value[e] = n, [null, void 0].includes(t) || ($.value[t].state = Y.value[e]);
|
|
242
|
+
let r = Y.value[e];
|
|
243
|
+
H.value = [...H.value].sort((t, n) => {
|
|
244
244
|
let i = t[e], a = n[e];
|
|
245
|
-
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) :
|
|
245
|
+
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : R(i, a, r);
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
let
|
|
248
|
+
let Z = y(void 0), Q = y(void 0);
|
|
249
249
|
function ut({ dataIndex: e, serieIndex: t }) {
|
|
250
|
-
|
|
250
|
+
Z.value = e, Q.value = t, We.value[e] && !P.value && We.value[e].scrollIntoView({
|
|
251
251
|
behavior: "smooth",
|
|
252
252
|
block: "nearest",
|
|
253
253
|
inline: "center"
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
let dt =
|
|
256
|
+
let dt = y(!1);
|
|
257
257
|
function ft(e) {
|
|
258
|
-
dt.value = e,
|
|
258
|
+
dt.value = e, Ue.value += 1;
|
|
259
259
|
}
|
|
260
260
|
function pt(e = null) {
|
|
261
|
-
|
|
262
|
-
let t = [A.value.translations.serie].concat(
|
|
261
|
+
ge(() => {
|
|
262
|
+
let t = [A.value.translations.serie].concat(J.value), n = B.value.map((e, t) => [
|
|
263
263
|
[e.name],
|
|
264
264
|
e.values,
|
|
265
265
|
[e.sum],
|
|
266
266
|
[e.average],
|
|
267
267
|
[e.median]
|
|
268
|
-
]), r =
|
|
269
|
-
e ? e(r) :
|
|
268
|
+
]), r = oe([t].concat(n));
|
|
269
|
+
e ? e(r) : ee({
|
|
270
270
|
csvContent: r,
|
|
271
271
|
title: A.value.title.text || "vue-ui-table-sparkline"
|
|
272
272
|
});
|
|
@@ -283,13 +283,13 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
283
283
|
"sum",
|
|
284
284
|
"average",
|
|
285
285
|
"median"
|
|
286
|
-
].includes(t.type) ?
|
|
286
|
+
].includes(t.type) ? X.value === t.type && Y.value[t.type] === n ? 1 : .3 : e === G.value && $.value[e].state === n ? 1 : .3;
|
|
287
287
|
}
|
|
288
288
|
function _t() {
|
|
289
|
-
A.value.resetSortOnClickOutside &&
|
|
289
|
+
A.value.resetSortOnClickOutside && K();
|
|
290
290
|
}
|
|
291
|
-
let $ =
|
|
292
|
-
get: () =>
|
|
291
|
+
let $ = l({
|
|
292
|
+
get: () => J.value.map((e) => ({ state: 1 })),
|
|
293
293
|
set: (e) => e
|
|
294
294
|
});
|
|
295
295
|
function vt(e) {
|
|
@@ -304,154 +304,154 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
304
304
|
$e();
|
|
305
305
|
}
|
|
306
306
|
async function yt() {
|
|
307
|
-
if (
|
|
307
|
+
if (He("copyAlt", {
|
|
308
308
|
config: A.value,
|
|
309
|
-
dataset:
|
|
309
|
+
dataset: B.value
|
|
310
310
|
}), !A.value.userOptions.callbacks.altCopy) {
|
|
311
311
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
315
315
|
config: A.value,
|
|
316
|
-
dataset:
|
|
316
|
+
dataset: B.value
|
|
317
317
|
}));
|
|
318
318
|
}
|
|
319
319
|
return ue({
|
|
320
320
|
generatePdf: Qe,
|
|
321
321
|
generateImage: $e,
|
|
322
322
|
generateCsv: pt,
|
|
323
|
-
restoreOrder:
|
|
323
|
+
restoreOrder: K,
|
|
324
324
|
copyAlt: yt
|
|
325
|
-
}), (e, t) => (
|
|
325
|
+
}), (e, t) => (v(), d("div", {
|
|
326
326
|
ref_key: "tableContainer",
|
|
327
327
|
ref: N,
|
|
328
|
-
class:
|
|
328
|
+
class: g({
|
|
329
329
|
"vue-data-ui-component": !0,
|
|
330
330
|
"vue-ui-table-sparkline": !0,
|
|
331
331
|
"vue-ui-responsive": P.value
|
|
332
332
|
}),
|
|
333
333
|
style: { overflow: "hidden" },
|
|
334
|
-
id: `table_${
|
|
335
|
-
onMouseenter: t[3] ||= () =>
|
|
336
|
-
onMouseleave: t[4] ||= () =>
|
|
334
|
+
id: `table_${O.value}`,
|
|
335
|
+
onMouseenter: t[3] ||= () => C(qe)(!0),
|
|
336
|
+
onMouseleave: t[4] ||= () => C(qe)(!1)
|
|
337
337
|
}, [
|
|
338
|
-
A.value.title.text ? (
|
|
338
|
+
A.value.title.text ? (v(), d("div", {
|
|
339
339
|
key: 0,
|
|
340
340
|
class: "vue-ui-table-sparkline-caption",
|
|
341
|
-
style:
|
|
342
|
-
}, [
|
|
341
|
+
style: _({ backgroundColor: A.value.title.backgroundColor })
|
|
342
|
+
}, [f("div", {
|
|
343
343
|
class: "atom-title",
|
|
344
|
-
style:
|
|
344
|
+
style: _({
|
|
345
345
|
fontSize: `${A.value.title.fontSize}px`,
|
|
346
346
|
fontWeight: A.value.title.bold ? "bold" : "normal",
|
|
347
347
|
color: A.value.title.color,
|
|
348
348
|
textAlign: A.value.title.textAlign
|
|
349
349
|
})
|
|
350
|
-
},
|
|
350
|
+
}, S(A.value.title.text), 5), A.value.title.subtitle.text ? (v(), d("div", {
|
|
351
351
|
key: 0,
|
|
352
352
|
class: "atom-subtitle",
|
|
353
|
-
style:
|
|
353
|
+
style: _({
|
|
354
354
|
fontSize: `${A.value.title.subtitle.fontSize}px`,
|
|
355
355
|
fontWeight: A.value.title.subtitle.bold ? "bold" : "normal",
|
|
356
356
|
color: A.value.title.subtitle.color,
|
|
357
357
|
textAlign: A.value.title.textAlign
|
|
358
358
|
})
|
|
359
|
-
},
|
|
360
|
-
|
|
359
|
+
}, S(A.value.title.subtitle.text), 5)) : u("", !0)], 4)) : u("", !0),
|
|
360
|
+
f("div", {
|
|
361
361
|
style: { overflow: "auto" },
|
|
362
362
|
onPointerleave: t[2] ||= (e) => {
|
|
363
|
-
|
|
363
|
+
Q.value = void 0, Z.value = void 0;
|
|
364
364
|
}
|
|
365
|
-
}, [
|
|
365
|
+
}, [f("table", {
|
|
366
366
|
class: "vue-ui-data-table",
|
|
367
|
-
style:
|
|
367
|
+
style: _({
|
|
368
368
|
fontFamily: A.value.fontFamily,
|
|
369
369
|
position: "relative"
|
|
370
370
|
})
|
|
371
|
-
}, [
|
|
371
|
+
}, [f("thead", Ee, [Ce((v(), d("tr", {
|
|
372
372
|
role: "row",
|
|
373
373
|
class: "vue-ui-data-table__thead-row",
|
|
374
|
-
style:
|
|
374
|
+
style: _({
|
|
375
375
|
backgroundColor: A.value.thead.backgroundColor,
|
|
376
376
|
color: A.value.thead.color
|
|
377
377
|
})
|
|
378
|
-
}, [
|
|
378
|
+
}, [f("th", {
|
|
379
379
|
role: "cell",
|
|
380
|
-
style:
|
|
380
|
+
style: _({
|
|
381
381
|
backgroundColor: A.value.thead.backgroundColor,
|
|
382
382
|
border: A.value.thead.outline,
|
|
383
383
|
textAlign: A.value.thead.textAlign,
|
|
384
384
|
fontWeight: A.value.thead.bold ? "bold" : "normal"
|
|
385
385
|
}),
|
|
386
386
|
class: "sticky-col-first"
|
|
387
|
-
}, [
|
|
387
|
+
}, [f("div", { style: _({
|
|
388
388
|
display: "flex",
|
|
389
389
|
flexDirection: "row",
|
|
390
390
|
alignItems: "center",
|
|
391
391
|
gap: "3px",
|
|
392
392
|
justifyContent: A.value.thead.textAlign
|
|
393
|
-
}) }, [
|
|
393
|
+
}) }, [f("span", null, S(A.value.translations.serie), 1), H.value.length > 1 && A.value.sortedSeriesName ? (v(), d("div", De, [f("button", {
|
|
394
394
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
395
|
-
onClick: t[0] ||= (e) =>
|
|
396
|
-
style:
|
|
397
|
-
}, [
|
|
395
|
+
onClick: t[0] ||= (e) => q({ type: "name" }, null, -1),
|
|
396
|
+
style: _({ cursor: j.value ? "pointer" : "default" })
|
|
397
|
+
}, [p(C(E), {
|
|
398
398
|
size: 12,
|
|
399
399
|
name: "arrowBottom",
|
|
400
400
|
stroke: A.value.thead.color,
|
|
401
|
-
style:
|
|
402
|
-
}, null, 8, ["stroke", "style"])], 4),
|
|
401
|
+
style: _({ opacity: X.value === "name" && Y.value.name === -1 ? 1 : .3 })
|
|
402
|
+
}, null, 8, ["stroke", "style"])], 4), f("button", {
|
|
403
403
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
404
|
-
onClick: t[1] ||= (e) =>
|
|
405
|
-
style:
|
|
406
|
-
}, [
|
|
404
|
+
onClick: t[1] ||= (e) => q({ type: "name" }, null, 1),
|
|
405
|
+
style: _({ cursor: j.value ? "pointer" : "default" })
|
|
406
|
+
}, [p(C(E), {
|
|
407
407
|
size: 12,
|
|
408
408
|
name: "arrowTop",
|
|
409
409
|
stroke: A.value.thead.color,
|
|
410
|
-
style:
|
|
411
|
-
}, null, 8, ["stroke", "style"])], 4)])) :
|
|
410
|
+
style: _({ opacity: X.value === "name" && Y.value.name === 1 ? 1 : .3 })
|
|
411
|
+
}, null, 8, ["stroke", "style"])], 4)])) : u("", !0)], 4)], 4), (v(!0), d(c, null, b(J.value, (t, n) => (v(), d("th", {
|
|
412
412
|
role: "cell",
|
|
413
|
-
style:
|
|
413
|
+
style: _({
|
|
414
414
|
background: A.value.thead.backgroundColor,
|
|
415
415
|
border: A.value.thead.outline,
|
|
416
416
|
textAlign: A.value.thead.textAlign,
|
|
417
417
|
fontWeight: A.value.thead.bold ? "bold" : "normal",
|
|
418
|
-
minWidth: n ===
|
|
419
|
-
paddingRight: n ===
|
|
418
|
+
minWidth: n === J.value.length - 1 ? `${A.value.sparkline.dimensions.width}px` : "48px",
|
|
419
|
+
paddingRight: n === J.value.length - 1 && A.value.userOptions.show ? "36px" : ""
|
|
420
420
|
}),
|
|
421
|
-
class:
|
|
422
|
-
}, [
|
|
421
|
+
class: g({ "sticky-col": n === J.value.length - 1 && A.value.showSparklines })
|
|
422
|
+
}, [f("div", { style: _({
|
|
423
423
|
display: "flex",
|
|
424
424
|
flexDirection: "row",
|
|
425
425
|
alignItems: "center",
|
|
426
426
|
gap: "3px",
|
|
427
427
|
justifyContent: A.value.thead.textAlign
|
|
428
|
-
}) }, [
|
|
428
|
+
}) }, [f("span", null, S(t.value), 1), H.value.length > 1 && (mt(n) || ht(t)) ? (v(), d("div", Oe, [f("button", {
|
|
429
429
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
430
|
-
onClick: () =>
|
|
431
|
-
style:
|
|
432
|
-
}, [
|
|
430
|
+
onClick: () => q(t, n, -1),
|
|
431
|
+
style: _({ cursor: j.value ? "pointer" : "default" })
|
|
432
|
+
}, [p(C(E), {
|
|
433
433
|
size: 12,
|
|
434
434
|
name: "arrowBottom",
|
|
435
435
|
stroke: A.value.thead.color,
|
|
436
|
-
style:
|
|
437
|
-
}, null, 8, ["stroke", "style"])], 12,
|
|
436
|
+
style: _({ opacity: gt(n, t, -1) })
|
|
437
|
+
}, null, 8, ["stroke", "style"])], 12, ke), f("button", {
|
|
438
438
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
439
|
-
onClick: () =>
|
|
440
|
-
style:
|
|
441
|
-
}, [
|
|
439
|
+
onClick: () => q(t, n, 1),
|
|
440
|
+
style: _({ cursor: j.value ? "pointer" : "default" })
|
|
441
|
+
}, [p(C(E), {
|
|
442
442
|
size: 12,
|
|
443
443
|
name: "arrowTop",
|
|
444
444
|
stroke: A.value.thead.color,
|
|
445
|
-
style:
|
|
446
|
-
}, null, 8, ["stroke", "style"])], 12,
|
|
445
|
+
style: _({ opacity: gt(n, t, 1) })
|
|
446
|
+
}, null, 8, ["stroke", "style"])], 12, Ae)])) : u("", !0)], 4), A.value.userOptions.show && n === J.value.length - 1 && (C(Je) || C(M)) ? (v(), me(C(Re), {
|
|
447
447
|
ref_for: !0,
|
|
448
448
|
ref: "details",
|
|
449
|
-
key: `user_option_${
|
|
449
|
+
key: `user_option_${Ue.value}`,
|
|
450
450
|
backgroundColor: A.value.thead.backgroundColor,
|
|
451
451
|
color: A.value.thead.color,
|
|
452
|
-
isPrinting:
|
|
453
|
-
isImaging:
|
|
454
|
-
uid:
|
|
452
|
+
isPrinting: C(Xe),
|
|
453
|
+
isImaging: C(Ze),
|
|
454
|
+
uid: O.value,
|
|
455
455
|
hasPdf: A.value.userOptions.buttons.pdf,
|
|
456
456
|
hasXls: A.value.userOptions.buttons.csv,
|
|
457
457
|
hasImg: A.value.userOptions.buttons.img,
|
|
@@ -465,15 +465,15 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
465
465
|
printScale: A.value.userOptions.print.scale,
|
|
466
466
|
isCursorPointer: j.value,
|
|
467
467
|
onToggleFullscreen: ft,
|
|
468
|
-
onGeneratePdf:
|
|
468
|
+
onGeneratePdf: C(Qe),
|
|
469
469
|
onGenerateImage: vt,
|
|
470
470
|
onGenerateCsv: pt,
|
|
471
471
|
onCopyAlt: yt,
|
|
472
|
-
style:
|
|
473
|
-
},
|
|
472
|
+
style: _({ visibility: C(Je) ? C(M) ? "visible" : "hidden" : "visible" })
|
|
473
|
+
}, he({ _: 2 }, [
|
|
474
474
|
e.$slots.menuIcon ? {
|
|
475
475
|
name: "menuIcon",
|
|
476
|
-
fn:
|
|
476
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", h({ ref_for: !0 }, {
|
|
477
477
|
isOpen: t,
|
|
478
478
|
color: n
|
|
479
479
|
}), void 0, !0)]),
|
|
@@ -481,22 +481,22 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
481
481
|
} : void 0,
|
|
482
482
|
e.$slots.optionPdf ? {
|
|
483
483
|
name: "optionPdf",
|
|
484
|
-
fn:
|
|
484
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
485
485
|
key: "1"
|
|
486
486
|
} : void 0,
|
|
487
487
|
e.$slots.optionCsv ? {
|
|
488
488
|
name: "optionCsv",
|
|
489
|
-
fn:
|
|
489
|
+
fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
490
490
|
key: "2"
|
|
491
491
|
} : void 0,
|
|
492
492
|
e.$slots.optionImg ? {
|
|
493
493
|
name: "optionImg",
|
|
494
|
-
fn:
|
|
494
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
495
495
|
key: "3"
|
|
496
496
|
} : void 0,
|
|
497
497
|
e.$slots.optionFullscreen ? {
|
|
498
498
|
name: "optionFullscreen",
|
|
499
|
-
fn:
|
|
499
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", h({ ref_for: !0 }, {
|
|
500
500
|
toggleFullscreen: t,
|
|
501
501
|
isFullscreen: n
|
|
502
502
|
}), void 0, !0)]),
|
|
@@ -504,17 +504,17 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
504
504
|
} : void 0,
|
|
505
505
|
e.$slots.optionAltCopy ? {
|
|
506
506
|
name: "optionAltCopy",
|
|
507
|
-
fn:
|
|
507
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", h({ ref_for: !0 }, { altCopy: t }), void 0, !0)]),
|
|
508
508
|
key: "5"
|
|
509
509
|
} : void 0,
|
|
510
510
|
e.$slots["custom-menu-before"] ? {
|
|
511
511
|
name: "custom-menu-before",
|
|
512
|
-
fn:
|
|
512
|
+
fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
513
513
|
key: "6"
|
|
514
514
|
} : void 0,
|
|
515
515
|
e.$slots["custom-menu-after"] ? {
|
|
516
516
|
name: "custom-menu-after",
|
|
517
|
-
fn:
|
|
517
|
+
fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
518
518
|
key: "7"
|
|
519
519
|
} : void 0
|
|
520
520
|
]), 1032, [
|
|
@@ -537,21 +537,21 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
537
537
|
"isCursorPointer",
|
|
538
538
|
"onGeneratePdf",
|
|
539
539
|
"style"
|
|
540
|
-
])) :
|
|
540
|
+
])) : u("", !0)], 6))), 256))], 4)), [[C(fe), _t]])]), f("tbody", null, [(v(!0), d(c, null, b(H.value, (e, t) => (v(), d("tr", {
|
|
541
541
|
role: "row",
|
|
542
|
-
style:
|
|
542
|
+
style: _({
|
|
543
543
|
backgroundColor: A.value.tbody.backgroundColor,
|
|
544
544
|
color: A.value.tbody.color
|
|
545
545
|
}),
|
|
546
|
-
class:
|
|
546
|
+
class: g({
|
|
547
547
|
"vue-ui-data-table__tbody__row": !0,
|
|
548
548
|
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
549
549
|
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
550
550
|
})
|
|
551
551
|
}, [
|
|
552
|
-
|
|
552
|
+
f("td", {
|
|
553
553
|
role: "cell",
|
|
554
|
-
style:
|
|
554
|
+
style: _({
|
|
555
555
|
backgroundColor: A.value.tbody.backgroundColor,
|
|
556
556
|
border: A.value.tbody.outline,
|
|
557
557
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
@@ -560,47 +560,47 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
560
560
|
}),
|
|
561
561
|
"data-cell": A.value.translations.serie,
|
|
562
562
|
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
563
|
-
}, [
|
|
563
|
+
}, [f("div", {
|
|
564
564
|
dir: "auto",
|
|
565
|
-
style:
|
|
565
|
+
style: _({
|
|
566
566
|
display: "flex",
|
|
567
567
|
flexDirection: "row",
|
|
568
568
|
alignItems: "center",
|
|
569
569
|
gap: "6px",
|
|
570
570
|
justifyContent: A.value.tbody.textAlign
|
|
571
571
|
})
|
|
572
|
-
}, [A.value.tbody.showColorMarker ? (
|
|
572
|
+
}, [A.value.tbody.showColorMarker ? (v(), d("span", {
|
|
573
573
|
key: 0,
|
|
574
|
-
style:
|
|
575
|
-
}, "⬤", 4)) :
|
|
576
|
-
(
|
|
574
|
+
style: _({ color: e.color })
|
|
575
|
+
}, "⬤", 4)) : u("", !0), f("span", null, S(e.name ?? "-"), 1)], 4)], 12, je),
|
|
576
|
+
(v(!0), d(c, null, b(ot.value, (n, r) => (v(), d("td", {
|
|
577
577
|
dir: "auto",
|
|
578
578
|
role: "cell",
|
|
579
579
|
ref_for: !0,
|
|
580
580
|
ref_key: "TD",
|
|
581
|
-
ref:
|
|
582
|
-
style:
|
|
581
|
+
ref: We,
|
|
582
|
+
style: _({
|
|
583
583
|
border: A.value.tbody.outline,
|
|
584
584
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
585
585
|
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
586
586
|
textAlign: A.value.tbody.textAlign,
|
|
587
|
-
background:
|
|
587
|
+
background: Z.value !== void 0 && r === Z.value ? A.value.tbody.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : A.value.tbody.selectedColor.fallback : ""
|
|
588
588
|
}),
|
|
589
|
-
"data-cell":
|
|
589
|
+
"data-cell": J.value[r] ? J.value[r].value : "",
|
|
590
590
|
class: "vue-ui-data-table__tbody__td",
|
|
591
591
|
onPointerenter: (e) => {
|
|
592
|
-
|
|
592
|
+
Q.value = t, Z.value = r;
|
|
593
593
|
}
|
|
594
|
-
},
|
|
594
|
+
}, S(z(e.values[r], A.value.roundingValues, {
|
|
595
595
|
datapoint: e,
|
|
596
596
|
seriesIndex: t,
|
|
597
597
|
datapointIndex: r
|
|
598
|
-
})), 45,
|
|
599
|
-
A.value.showTotal ? (
|
|
598
|
+
})), 45, Me))), 256)),
|
|
599
|
+
A.value.showTotal ? (v(), d("td", {
|
|
600
600
|
key: 0,
|
|
601
601
|
dir: "auto",
|
|
602
602
|
role: "cell",
|
|
603
|
-
style:
|
|
603
|
+
style: _({
|
|
604
604
|
border: A.value.tbody.outline,
|
|
605
605
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
606
606
|
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
@@ -608,15 +608,15 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
608
608
|
}),
|
|
609
609
|
"data-cell": A.value.translations.total,
|
|
610
610
|
class: "vue-ui-data-table__tbody__td"
|
|
611
|
-
},
|
|
611
|
+
}, S(z(e.sum, A.value.roundingTotal, {
|
|
612
612
|
datapoint: e.sum,
|
|
613
613
|
seriesIndex: t
|
|
614
|
-
})), 13,
|
|
615
|
-
A.value.showAverage ? (
|
|
614
|
+
})), 13, Ne)) : u("", !0),
|
|
615
|
+
A.value.showAverage ? (v(), d("td", {
|
|
616
616
|
key: 1,
|
|
617
617
|
dir: "auto",
|
|
618
618
|
role: "cell",
|
|
619
|
-
style:
|
|
619
|
+
style: _({
|
|
620
620
|
border: A.value.tbody.outline,
|
|
621
621
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
622
622
|
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
@@ -624,15 +624,15 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
624
624
|
}),
|
|
625
625
|
"data-cell": A.value.translations.average,
|
|
626
626
|
class: "vue-ui-data-table__tbody__td"
|
|
627
|
-
},
|
|
627
|
+
}, S(z(e.average, A.value.roundingAverage, {
|
|
628
628
|
datapoint: e.average,
|
|
629
629
|
seriesIndex: t
|
|
630
|
-
})), 13,
|
|
631
|
-
A.value.showMedian ? (
|
|
630
|
+
})), 13, Pe)) : u("", !0),
|
|
631
|
+
A.value.showMedian ? (v(), d("td", {
|
|
632
632
|
key: 2,
|
|
633
633
|
dir: "auto",
|
|
634
634
|
role: "cell",
|
|
635
|
-
style:
|
|
635
|
+
style: _({
|
|
636
636
|
border: A.value.tbody.outline,
|
|
637
637
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
638
638
|
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
@@ -640,15 +640,15 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
640
640
|
}),
|
|
641
641
|
"data-cell": A.value.translations.median,
|
|
642
642
|
class: "vue-ui-data-table__tbody__td"
|
|
643
|
-
},
|
|
643
|
+
}, S(z(e.median, A.value.roundingMedian, {
|
|
644
644
|
datapoint: e.median,
|
|
645
645
|
seriesIndex: t
|
|
646
|
-
})), 13,
|
|
647
|
-
A.value.showSparklines ? (
|
|
646
|
+
})), 13, Fe)) : u("", !0),
|
|
647
|
+
A.value.showSparklines ? (v(), d("td", {
|
|
648
648
|
key: 3,
|
|
649
649
|
role: "cell",
|
|
650
650
|
"data-cell": A.value.translations.chart,
|
|
651
|
-
style:
|
|
651
|
+
style: _({
|
|
652
652
|
border: A.value.tbody.outline,
|
|
653
653
|
fontSize: `${A.value.tbody.fontSize}px`,
|
|
654
654
|
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
@@ -657,7 +657,7 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
657
657
|
padding: "0"
|
|
658
658
|
}),
|
|
659
659
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
660
|
-
}, [
|
|
660
|
+
}, [p(C(T), {
|
|
661
661
|
onHoverIndex: ({ index: e }) => ut({
|
|
662
662
|
dataIndex: e,
|
|
663
663
|
serieIndex: t
|
|
@@ -666,13 +666,13 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
666
666
|
"forced-padding": 30,
|
|
667
667
|
dataset: e.sparklineDataset,
|
|
668
668
|
showInfo: !1,
|
|
669
|
-
selectedIndex:
|
|
669
|
+
selectedIndex: Z.value,
|
|
670
670
|
config: {
|
|
671
671
|
type: A.value.sparkline.type,
|
|
672
672
|
style: {
|
|
673
673
|
backgroundColor: "transparent",
|
|
674
674
|
animation: {
|
|
675
|
-
show: A.value.sparkline.animation.show && !
|
|
675
|
+
show: A.value.sparkline.animation.show && !C(Xe) && !C(Ze),
|
|
676
676
|
animationFrames: A.value.sparkline.animation.animationFrames
|
|
677
677
|
},
|
|
678
678
|
padding: { right: 12 },
|
|
@@ -702,11 +702,11 @@ var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
|
702
702
|
"dataset",
|
|
703
703
|
"selectedIndex",
|
|
704
704
|
"config"
|
|
705
|
-
])], 12,
|
|
705
|
+
])], 12, Ie)) : u("", !0)
|
|
706
706
|
], 6))), 256))])], 4)], 32),
|
|
707
|
-
e.$slots.source ? (
|
|
708
|
-
], 42,
|
|
707
|
+
e.$slots.source ? (v(), d("div", Le, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
|
|
708
|
+
], 42, Te));
|
|
709
709
|
}
|
|
710
710
|
}, [["__scopeId", "data-v-a657c4ca"]]);
|
|
711
711
|
//#endregion
|
|
712
|
-
export {
|
|
712
|
+
export { we as n, T as t };
|