vue-data-ui 3.22.0 → 3.22.1
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.js} +2 -2
- 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 +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Et as t, G as n, H as r, J as i, S as a, Vt as o, X as ee, ct as te, f as ne, i as re, kt as s, x as ie, y as ae } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as oe } from "./useConfig-C10cdg45.js";
|
|
4
|
+
import { t as se } from "./usePrinter-Dng0UK-G.js";
|
|
5
|
+
import { t as ce } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
+
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { t as de } from "./useUserOptionState-DK-_1ddE.js";
|
|
9
|
+
import { t as fe } from "./vClickOutside-DUrZWttG.js";
|
|
10
|
+
import { t as pe } from "./vue_ui_table_sparkline-DAbkUrNz.js";
|
|
11
|
+
import { Fragment as me, computed as c, createBlock as he, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as ge, createVNode as f, defineAsyncComponent as p, mergeProps as m, nextTick as _e, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as ve, onMounted as ye, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as be, toDisplayString as x, unref as S, useCssVars as xe, useSlots as Se, watch as Ce, withCtx as C, withDirectives as we } from "vue";
|
|
12
|
+
//#region src/components/vue-ui-table-sparkline.vue
|
|
13
|
+
var Te = /* @__PURE__ */ e({ default: () => w }), Ee = ["id"], De = { style: {
|
|
14
|
+
"z-index": "1",
|
|
15
|
+
"padding-right": "24px"
|
|
16
|
+
} }, Oe = {
|
|
17
|
+
key: 0,
|
|
18
|
+
style: {
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "row",
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}
|
|
23
|
+
}, ke = {
|
|
24
|
+
key: 0,
|
|
25
|
+
style: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: "row",
|
|
28
|
+
alignItems: "center"
|
|
29
|
+
}
|
|
30
|
+
}, Ae = ["onClick"], je = ["onClick"], Me = ["data-cell"], Ne = ["data-cell", "onPointerenter"], Pe = ["data-cell"], Fe = ["data-cell"], Ie = ["data-cell"], Le = ["data-cell"], Re = {
|
|
31
|
+
key: 1,
|
|
32
|
+
ref: "source",
|
|
33
|
+
dir: "auto"
|
|
34
|
+
}, w = /*#__PURE__*/ ue({
|
|
35
|
+
__name: "vue-ui-table-sparkline",
|
|
36
|
+
props: {
|
|
37
|
+
config: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default() {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
dataset: {
|
|
44
|
+
type: Array,
|
|
45
|
+
default() {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: ["copyAlt"],
|
|
51
|
+
setup(e, { expose: ue, emit: Te }) {
|
|
52
|
+
xe((e) => ({ v43308e63: e.tdo }));
|
|
53
|
+
let w = p(() => import("./vue-ui-sparkline-WG-oYip8.js").then((e) => e.n)), T = p(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), ze = p(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), { vue_ui_table_sparkline: Be } = oe(), { isThemeValid: Ve, warnInvalidTheme: He } = le(), E = e, Ue = Te, D = v(r()), We = v(0), O = v(0), k = v(null), Ge = Se(), Ke = v(!1);
|
|
54
|
+
ye(() => {
|
|
55
|
+
Ge["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
56
|
+
});
|
|
57
|
+
let A = c({
|
|
58
|
+
get: () => Ye(),
|
|
59
|
+
set: (e) => e
|
|
60
|
+
}), j = c(() => A.value.userOptions.useCursorPointer), { userOptionsVisible: M, setUserOptionsVisibility: qe, keepUserOptionState: Je } = de({ config: A.value });
|
|
61
|
+
function Ye() {
|
|
62
|
+
let e = ce({
|
|
63
|
+
userConfig: E.config,
|
|
64
|
+
defaultConfig: Be
|
|
65
|
+
}), t = e.theme;
|
|
66
|
+
if (!t) return e;
|
|
67
|
+
if (!Ve.value(e)) return He(e), e;
|
|
68
|
+
let n = ce({
|
|
69
|
+
userConfig: pe[t] || E.config,
|
|
70
|
+
defaultConfig: e
|
|
71
|
+
}), r = ce({
|
|
72
|
+
userConfig: E.config,
|
|
73
|
+
defaultConfig: n
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
...r,
|
|
77
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || s
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
Ce(() => E.config, (e) => {
|
|
81
|
+
A.value = Ye(), M.value = !A.value.userOptions.showOnChartHover, nt(), O.value += 1;
|
|
82
|
+
}, { deep: !0 }), Ce(() => E.dataset, (e) => {
|
|
83
|
+
U.value = H.value, O.value += 1;
|
|
84
|
+
}, { deep: !0 });
|
|
85
|
+
let { isPrinting: Xe, isImaging: Ze, generatePdf: Qe, generateImage: $e } = se({
|
|
86
|
+
elementId: `table_${D.value}`,
|
|
87
|
+
fileName: A.value.title.text || "vue-ui-table-sparkline",
|
|
88
|
+
options: A.value.userOptions.print
|
|
89
|
+
}), et = c(() => ie(A.value.customPalette)), N = v(null), P = v(!1), tt = c(() => A.value.responsiveBreakpoint);
|
|
90
|
+
ye(() => {
|
|
91
|
+
nt();
|
|
92
|
+
});
|
|
93
|
+
let F = v(A.value.colNames), I = be(null);
|
|
94
|
+
function nt() {
|
|
95
|
+
t(E.dataset) && ee({
|
|
96
|
+
componentName: "VueUiTableSparkline",
|
|
97
|
+
type: "dataset"
|
|
98
|
+
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((e) => {
|
|
99
|
+
e.forEach((e) => {
|
|
100
|
+
P.value = e.contentRect.width < tt.value;
|
|
101
|
+
});
|
|
102
|
+
}), N.value && I.value.observe(N.value), F.value = [];
|
|
103
|
+
for (let e = 0; e < st.value; e += 1) F.value.push(A.value.colNames[e] || `col ${e}`);
|
|
104
|
+
}
|
|
105
|
+
ve(() => {
|
|
106
|
+
I.value && I.value.disconnect();
|
|
107
|
+
});
|
|
108
|
+
function L(e) {
|
|
109
|
+
if ([null, void 0].includes(e)) return null;
|
|
110
|
+
let t = Number(e);
|
|
111
|
+
return Number.isFinite(t) ? t : null;
|
|
112
|
+
}
|
|
113
|
+
function R(e) {
|
|
114
|
+
return typeof e == "number" && Number.isFinite(e);
|
|
115
|
+
}
|
|
116
|
+
function rt(e = []) {
|
|
117
|
+
return e.map(L).filter(R);
|
|
118
|
+
}
|
|
119
|
+
function z(e, t, n) {
|
|
120
|
+
let r = L(e), i = L(t), a = R(r), o = R(i);
|
|
121
|
+
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
122
|
+
}
|
|
123
|
+
function B(e, t, r = {}) {
|
|
124
|
+
let i = L(e);
|
|
125
|
+
return i === null ? "-" : re(A.value.formatter, i, n({
|
|
126
|
+
p: A.value.prefix,
|
|
127
|
+
v: i,
|
|
128
|
+
s: A.value.suffix,
|
|
129
|
+
r: t
|
|
130
|
+
}), r);
|
|
131
|
+
}
|
|
132
|
+
let V = c(() => (E.dataset.forEach((e, t) => {
|
|
133
|
+
te({
|
|
134
|
+
datasetObject: e,
|
|
135
|
+
requiredAttributes: ["name", "values"]
|
|
136
|
+
}).forEach((e) => {
|
|
137
|
+
ee({
|
|
138
|
+
componentName: "VueUiTableSparkline",
|
|
139
|
+
type: "datasetSerieAttribute",
|
|
140
|
+
property: e,
|
|
141
|
+
index: t
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}), E.dataset.map((e, t) => {
|
|
145
|
+
let n = e.values || [], r = rt(n), i = r.length ? r.reduce((e, t) => e + t, 0) : null, a = r.length ? i / r.length : null, o = r.length ? ne(r) : null;
|
|
146
|
+
return {
|
|
147
|
+
...e,
|
|
148
|
+
values: n,
|
|
149
|
+
color: ae(e.color) || et.value[t] || s[t] || s[t % s.length],
|
|
150
|
+
sum: i,
|
|
151
|
+
average: a,
|
|
152
|
+
median: o,
|
|
153
|
+
sparklineDataset: n.map((e, t) => ({
|
|
154
|
+
period: A.value.colNames[t] || `col ${t}`,
|
|
155
|
+
value: L(e)
|
|
156
|
+
}))
|
|
157
|
+
};
|
|
158
|
+
})));
|
|
159
|
+
function it(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) => z(e[0], t[0], 1)).map((e) => e[1]));
|
|
161
|
+
return e.map((e, n) => ({
|
|
162
|
+
...e,
|
|
163
|
+
values: e.values || [],
|
|
164
|
+
orders: t[n]
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
let H = c(() => it(V.value)), U = v(H.value), at = c(() => Math.max(...U.value.map((e) => (e.values || []).length))), W = v(void 0), G = v(!1), K = v(void 0), ot = v(1);
|
|
168
|
+
function q() {
|
|
169
|
+
G.value = !1, K.value = void 0, Z.value = void 0, ot.value = 1, $.value.forEach((e) => e.state = 1), X.value = {
|
|
170
|
+
name: 1,
|
|
171
|
+
sum: 1,
|
|
172
|
+
average: 1,
|
|
173
|
+
median: 1
|
|
174
|
+
}, U.value = H.value;
|
|
175
|
+
}
|
|
176
|
+
function J(e, t, n) {
|
|
177
|
+
if ([
|
|
178
|
+
"name",
|
|
179
|
+
"sum",
|
|
180
|
+
"average",
|
|
181
|
+
"median"
|
|
182
|
+
].includes(e.type)) {
|
|
183
|
+
ct(e.type, t, n);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (!mt(t)) return;
|
|
187
|
+
if (Q.value = t, Z.value = void 0, ![null, void 0].includes(K.value) && t !== K.value && (K.value = void 0, q()), $.value[t].state === n && K.value === t) {
|
|
188
|
+
K.value = void 0, q();
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
G.value = !0, K.value = t;
|
|
192
|
+
let r = H.value.map((e) => e.values?.[t] ?? null), i = n;
|
|
193
|
+
$.value[t].state = i, ot.value = i, t === W.value ? W.value = void 0 : W.value = t, U.value = r.map((e, t) => [t, e]).sort((e, t) => z(e[1], t[1], i)).map((e) => e[0]).map((e) => H.value[e]), O.value += 1;
|
|
194
|
+
}
|
|
195
|
+
let st = c(() => Math.max(...E.dataset.map((e) => (e.values || []).length))), Y = c(() => {
|
|
196
|
+
let e = F.value.map((e) => ({
|
|
197
|
+
type: "reg",
|
|
198
|
+
value: e
|
|
199
|
+
}));
|
|
200
|
+
if (!e.length) for (let t = 0; t < st.value; t += 1) e.push({
|
|
201
|
+
type: "reg",
|
|
202
|
+
value: `col ${t + 1}`
|
|
203
|
+
});
|
|
204
|
+
A.value.showTotal && (e = [...e, {
|
|
205
|
+
type: "sum",
|
|
206
|
+
value: A.value.translations.total
|
|
207
|
+
}]);
|
|
208
|
+
let t;
|
|
209
|
+
return t = A.value.showAverage && A.value.showMedian ? [
|
|
210
|
+
...e,
|
|
211
|
+
{
|
|
212
|
+
type: "average",
|
|
213
|
+
value: A.value.translations.average
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: "median",
|
|
217
|
+
value: A.value.translations.median
|
|
218
|
+
}
|
|
219
|
+
] : A.value.showAverage && !A.value.showMedian ? [...e, {
|
|
220
|
+
type: "average",
|
|
221
|
+
value: A.value.translations.average
|
|
222
|
+
}] : !A.value.showAverage && A.value.showMedian ? [...e, {
|
|
223
|
+
type: "median",
|
|
224
|
+
value: A.value.translations.median
|
|
225
|
+
}] : e, A.value.showSparklines ? [...t, {
|
|
226
|
+
type: "chart",
|
|
227
|
+
value: A.value.translations.chart
|
|
228
|
+
}] : t;
|
|
229
|
+
}), X = v({
|
|
230
|
+
name: 1,
|
|
231
|
+
sum: 1,
|
|
232
|
+
average: 1,
|
|
233
|
+
median: 1
|
|
234
|
+
}), Z = v(void 0);
|
|
235
|
+
function ct(e, t, n) {
|
|
236
|
+
if (!U.value || U.value.length === 0 || !ht(e)) return;
|
|
237
|
+
if (Z.value !== e && (Z.value = void 0), ![null, void 0].includes(K.value) && t !== K.value && q(), K.value = void 0, X.value[e] === n && Z.value) {
|
|
238
|
+
Z.value = void 0, q();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
Z.value = e, G.value = !0, X.value[e] = n, [null, void 0].includes(t) || ($.value[t].state = X.value[e]);
|
|
242
|
+
let r = X.value[e];
|
|
243
|
+
U.value = [...U.value].sort((t, n) => {
|
|
244
|
+
let i = t[e], a = n[e];
|
|
245
|
+
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : z(i, a, r);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
let Q = v(void 0), lt = v(void 0);
|
|
249
|
+
function ut({ dataIndex: e, serieIndex: t }) {
|
|
250
|
+
Q.value = e, lt.value = t, k.value[e] && !P.value && k.value[e].scrollIntoView({
|
|
251
|
+
behavior: "smooth",
|
|
252
|
+
block: "nearest",
|
|
253
|
+
inline: "center"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
let dt = v(!1);
|
|
257
|
+
function ft(e) {
|
|
258
|
+
dt.value = e, We.value += 1;
|
|
259
|
+
}
|
|
260
|
+
function pt(e = null) {
|
|
261
|
+
_e(() => {
|
|
262
|
+
let t = [A.value.translations.serie].concat(Y.value), n = V.value.map((e, t) => [
|
|
263
|
+
[e.name],
|
|
264
|
+
e.values,
|
|
265
|
+
[e.sum],
|
|
266
|
+
[e.average],
|
|
267
|
+
[e.median]
|
|
268
|
+
]), r = a([t].concat(n));
|
|
269
|
+
e ? e(r) : i({
|
|
270
|
+
csvContent: r,
|
|
271
|
+
title: A.value.title.text || "vue-ui-table-sparkline"
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
function mt(e) {
|
|
276
|
+
return A.value.sortedDataColumnIndices.includes(e);
|
|
277
|
+
}
|
|
278
|
+
function ht(e) {
|
|
279
|
+
return e.type === "name" || e === "name" ? A.value.sortedSeriesName : e.type === "sum" || e === "sum" ? A.value.sortedSum : e.type === "average" || e === "average" ? A.value.sortedAverage : e.type === "median" || e === "median" ? A.value.sortedMedian : !1;
|
|
280
|
+
}
|
|
281
|
+
function gt(e, t, n) {
|
|
282
|
+
return [
|
|
283
|
+
"sum",
|
|
284
|
+
"average",
|
|
285
|
+
"median"
|
|
286
|
+
].includes(t.type) ? Z.value === t.type && X.value[t.type] === n ? 1 : .3 : e === K.value && $.value[e].state === n ? 1 : .3;
|
|
287
|
+
}
|
|
288
|
+
function _t() {
|
|
289
|
+
A.value.resetSortOnClickOutside && q();
|
|
290
|
+
}
|
|
291
|
+
let $ = c({
|
|
292
|
+
get: () => Y.value.map((e) => ({ state: 1 })),
|
|
293
|
+
set: (e) => e
|
|
294
|
+
});
|
|
295
|
+
function vt(e) {
|
|
296
|
+
if (e?.stage === "start") {
|
|
297
|
+
Ke.value = !0;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (e?.stage === "end") {
|
|
301
|
+
Ke.value = !1;
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
$e();
|
|
305
|
+
}
|
|
306
|
+
async function yt() {
|
|
307
|
+
if (Ue("copyAlt", {
|
|
308
|
+
config: A.value,
|
|
309
|
+
dataset: V.value
|
|
310
|
+
}), !A.value.userOptions.callbacks.altCopy) {
|
|
311
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
315
|
+
config: A.value,
|
|
316
|
+
dataset: V.value
|
|
317
|
+
}));
|
|
318
|
+
}
|
|
319
|
+
return ue({
|
|
320
|
+
generatePdf: Qe,
|
|
321
|
+
generateImage: $e,
|
|
322
|
+
generateCsv: pt,
|
|
323
|
+
restoreOrder: q,
|
|
324
|
+
copyAlt: yt
|
|
325
|
+
}), (e, t) => (_(), u("div", {
|
|
326
|
+
ref_key: "tableContainer",
|
|
327
|
+
ref: N,
|
|
328
|
+
class: h({
|
|
329
|
+
"vue-data-ui-component": !0,
|
|
330
|
+
"vue-ui-table-sparkline": !0,
|
|
331
|
+
"vue-ui-responsive": P.value
|
|
332
|
+
}),
|
|
333
|
+
style: { overflow: "hidden" },
|
|
334
|
+
id: `table_${D.value}`,
|
|
335
|
+
onMouseenter: t[3] ||= () => S(qe)(!0),
|
|
336
|
+
onMouseleave: t[4] ||= () => S(qe)(!1)
|
|
337
|
+
}, [
|
|
338
|
+
A.value.title.text ? (_(), u("div", {
|
|
339
|
+
key: 0,
|
|
340
|
+
class: "vue-ui-table-sparkline-caption",
|
|
341
|
+
style: g({ backgroundColor: A.value.title.backgroundColor })
|
|
342
|
+
}, [d("div", {
|
|
343
|
+
class: "atom-title",
|
|
344
|
+
style: g({
|
|
345
|
+
fontSize: `${A.value.title.fontSize}px`,
|
|
346
|
+
fontWeight: A.value.title.bold ? "bold" : "normal",
|
|
347
|
+
color: A.value.title.color,
|
|
348
|
+
textAlign: A.value.title.textAlign
|
|
349
|
+
})
|
|
350
|
+
}, x(A.value.title.text), 5), A.value.title.subtitle.text ? (_(), u("div", {
|
|
351
|
+
key: 0,
|
|
352
|
+
class: "atom-subtitle",
|
|
353
|
+
style: g({
|
|
354
|
+
fontSize: `${A.value.title.subtitle.fontSize}px`,
|
|
355
|
+
fontWeight: A.value.title.subtitle.bold ? "bold" : "normal",
|
|
356
|
+
color: A.value.title.subtitle.color,
|
|
357
|
+
textAlign: A.value.title.textAlign
|
|
358
|
+
})
|
|
359
|
+
}, x(A.value.title.subtitle.text), 5)) : l("", !0)], 4)) : l("", !0),
|
|
360
|
+
d("div", {
|
|
361
|
+
style: { overflow: "auto" },
|
|
362
|
+
onPointerleave: t[2] ||= (e) => {
|
|
363
|
+
lt.value = void 0, Q.value = void 0;
|
|
364
|
+
}
|
|
365
|
+
}, [d("table", {
|
|
366
|
+
class: "vue-ui-data-table",
|
|
367
|
+
style: g({
|
|
368
|
+
fontFamily: A.value.fontFamily,
|
|
369
|
+
position: "relative"
|
|
370
|
+
})
|
|
371
|
+
}, [d("thead", De, [we((_(), u("tr", {
|
|
372
|
+
role: "row",
|
|
373
|
+
class: "vue-ui-data-table__thead-row",
|
|
374
|
+
style: g({
|
|
375
|
+
backgroundColor: A.value.thead.backgroundColor,
|
|
376
|
+
color: A.value.thead.color
|
|
377
|
+
})
|
|
378
|
+
}, [d("th", {
|
|
379
|
+
role: "cell",
|
|
380
|
+
style: g({
|
|
381
|
+
backgroundColor: A.value.thead.backgroundColor,
|
|
382
|
+
border: A.value.thead.outline,
|
|
383
|
+
textAlign: A.value.thead.textAlign,
|
|
384
|
+
fontWeight: A.value.thead.bold ? "bold" : "normal"
|
|
385
|
+
}),
|
|
386
|
+
class: "sticky-col-first"
|
|
387
|
+
}, [d("div", { style: g({
|
|
388
|
+
display: "flex",
|
|
389
|
+
flexDirection: "row",
|
|
390
|
+
alignItems: "center",
|
|
391
|
+
gap: "3px",
|
|
392
|
+
justifyContent: A.value.thead.textAlign
|
|
393
|
+
}) }, [d("span", null, x(A.value.translations.serie), 1), U.value.length > 1 && A.value.sortedSeriesName ? (_(), u("div", Oe, [d("button", {
|
|
394
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
395
|
+
onClick: t[0] ||= (e) => J({ type: "name" }, null, -1),
|
|
396
|
+
style: g({ cursor: j.value ? "pointer" : "default" })
|
|
397
|
+
}, [f(S(T), {
|
|
398
|
+
size: 12,
|
|
399
|
+
name: "arrowBottom",
|
|
400
|
+
stroke: A.value.thead.color,
|
|
401
|
+
style: g({ opacity: Z.value === "name" && X.value.name === -1 ? 1 : .3 })
|
|
402
|
+
}, null, 8, ["stroke", "style"])], 4), d("button", {
|
|
403
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
404
|
+
onClick: t[1] ||= (e) => J({ type: "name" }, null, 1),
|
|
405
|
+
style: g({ cursor: j.value ? "pointer" : "default" })
|
|
406
|
+
}, [f(S(T), {
|
|
407
|
+
size: 12,
|
|
408
|
+
name: "arrowTop",
|
|
409
|
+
stroke: A.value.thead.color,
|
|
410
|
+
style: g({ opacity: Z.value === "name" && X.value.name === 1 ? 1 : .3 })
|
|
411
|
+
}, null, 8, ["stroke", "style"])], 4)])) : l("", !0)], 4)], 4), (_(!0), u(me, null, y(Y.value, (t, n) => (_(), u("th", {
|
|
412
|
+
role: "cell",
|
|
413
|
+
style: g({
|
|
414
|
+
background: A.value.thead.backgroundColor,
|
|
415
|
+
border: A.value.thead.outline,
|
|
416
|
+
textAlign: A.value.thead.textAlign,
|
|
417
|
+
fontWeight: A.value.thead.bold ? "bold" : "normal",
|
|
418
|
+
minWidth: n === Y.value.length - 1 ? `${A.value.sparkline.dimensions.width}px` : "48px",
|
|
419
|
+
paddingRight: n === Y.value.length - 1 && A.value.userOptions.show ? "36px" : ""
|
|
420
|
+
}),
|
|
421
|
+
class: h({ "sticky-col": n === Y.value.length - 1 && A.value.showSparklines })
|
|
422
|
+
}, [d("div", { style: g({
|
|
423
|
+
display: "flex",
|
|
424
|
+
flexDirection: "row",
|
|
425
|
+
alignItems: "center",
|
|
426
|
+
gap: "3px",
|
|
427
|
+
justifyContent: A.value.thead.textAlign
|
|
428
|
+
}) }, [d("span", null, x(t.value), 1), U.value.length > 1 && (mt(n) || ht(t)) ? (_(), u("div", ke, [d("button", {
|
|
429
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
430
|
+
onClick: () => J(t, n, -1),
|
|
431
|
+
style: g({ cursor: j.value ? "pointer" : "default" })
|
|
432
|
+
}, [f(S(T), {
|
|
433
|
+
size: 12,
|
|
434
|
+
name: "arrowBottom",
|
|
435
|
+
stroke: A.value.thead.color,
|
|
436
|
+
style: g({ opacity: gt(n, t, -1) })
|
|
437
|
+
}, null, 8, ["stroke", "style"])], 12, Ae), d("button", {
|
|
438
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
439
|
+
onClick: () => J(t, n, 1),
|
|
440
|
+
style: g({ cursor: j.value ? "pointer" : "default" })
|
|
441
|
+
}, [f(S(T), {
|
|
442
|
+
size: 12,
|
|
443
|
+
name: "arrowTop",
|
|
444
|
+
stroke: A.value.thead.color,
|
|
445
|
+
style: g({ opacity: gt(n, t, 1) })
|
|
446
|
+
}, null, 8, ["stroke", "style"])], 12, je)])) : l("", !0)], 4), A.value.userOptions.show && n === Y.value.length - 1 && (S(Je) || S(M)) ? (_(), he(S(ze), {
|
|
447
|
+
ref_for: !0,
|
|
448
|
+
ref: "details",
|
|
449
|
+
key: `user_option_${We.value}`,
|
|
450
|
+
backgroundColor: A.value.thead.backgroundColor,
|
|
451
|
+
color: A.value.thead.color,
|
|
452
|
+
isPrinting: S(Xe),
|
|
453
|
+
isImaging: S(Ze),
|
|
454
|
+
uid: D.value,
|
|
455
|
+
hasPdf: A.value.userOptions.buttons.pdf,
|
|
456
|
+
hasXls: A.value.userOptions.buttons.csv,
|
|
457
|
+
hasImg: A.value.userOptions.buttons.img,
|
|
458
|
+
hasFullscreen: A.value.userOptions.buttons.fullscreen,
|
|
459
|
+
hasAltCopy: A.value.userOptions.buttons.altCopy,
|
|
460
|
+
isFullscreen: dt.value,
|
|
461
|
+
titles: { ...A.value.userOptions.buttonTitles },
|
|
462
|
+
chartElement: N.value,
|
|
463
|
+
position: A.value.userOptions.position,
|
|
464
|
+
callbacks: A.value.userOptions.callbacks,
|
|
465
|
+
printScale: A.value.userOptions.print.scale,
|
|
466
|
+
isCursorPointer: j.value,
|
|
467
|
+
onToggleFullscreen: ft,
|
|
468
|
+
onGeneratePdf: S(Qe),
|
|
469
|
+
onGenerateImage: vt,
|
|
470
|
+
onGenerateCsv: pt,
|
|
471
|
+
onCopyAlt: yt,
|
|
472
|
+
style: g({ visibility: S(Je) ? S(M) ? "visible" : "hidden" : "visible" })
|
|
473
|
+
}, ge({ _: 2 }, [
|
|
474
|
+
e.$slots.menuIcon ? {
|
|
475
|
+
name: "menuIcon",
|
|
476
|
+
fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", m({ ref_for: !0 }, {
|
|
477
|
+
isOpen: t,
|
|
478
|
+
color: n
|
|
479
|
+
}), void 0, !0)]),
|
|
480
|
+
key: "0"
|
|
481
|
+
} : void 0,
|
|
482
|
+
e.$slots.optionPdf ? {
|
|
483
|
+
name: "optionPdf",
|
|
484
|
+
fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
485
|
+
key: "1"
|
|
486
|
+
} : void 0,
|
|
487
|
+
e.$slots.optionCsv ? {
|
|
488
|
+
name: "optionCsv",
|
|
489
|
+
fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
490
|
+
key: "2"
|
|
491
|
+
} : void 0,
|
|
492
|
+
e.$slots.optionImg ? {
|
|
493
|
+
name: "optionImg",
|
|
494
|
+
fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
495
|
+
key: "3"
|
|
496
|
+
} : void 0,
|
|
497
|
+
e.$slots.optionFullscreen ? {
|
|
498
|
+
name: "optionFullscreen",
|
|
499
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", m({ ref_for: !0 }, {
|
|
500
|
+
toggleFullscreen: t,
|
|
501
|
+
isFullscreen: n
|
|
502
|
+
}), void 0, !0)]),
|
|
503
|
+
key: "4"
|
|
504
|
+
} : void 0,
|
|
505
|
+
e.$slots.optionAltCopy ? {
|
|
506
|
+
name: "optionAltCopy",
|
|
507
|
+
fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", m({ ref_for: !0 }, { altCopy: t }), void 0, !0)]),
|
|
508
|
+
key: "5"
|
|
509
|
+
} : void 0,
|
|
510
|
+
e.$slots["custom-menu-before"] ? {
|
|
511
|
+
name: "custom-menu-before",
|
|
512
|
+
fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
513
|
+
key: "6"
|
|
514
|
+
} : void 0,
|
|
515
|
+
e.$slots["custom-menu-after"] ? {
|
|
516
|
+
name: "custom-menu-after",
|
|
517
|
+
fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
518
|
+
key: "7"
|
|
519
|
+
} : void 0
|
|
520
|
+
]), 1032, [
|
|
521
|
+
"backgroundColor",
|
|
522
|
+
"color",
|
|
523
|
+
"isPrinting",
|
|
524
|
+
"isImaging",
|
|
525
|
+
"uid",
|
|
526
|
+
"hasPdf",
|
|
527
|
+
"hasXls",
|
|
528
|
+
"hasImg",
|
|
529
|
+
"hasFullscreen",
|
|
530
|
+
"hasAltCopy",
|
|
531
|
+
"isFullscreen",
|
|
532
|
+
"titles",
|
|
533
|
+
"chartElement",
|
|
534
|
+
"position",
|
|
535
|
+
"callbacks",
|
|
536
|
+
"printScale",
|
|
537
|
+
"isCursorPointer",
|
|
538
|
+
"onGeneratePdf",
|
|
539
|
+
"style"
|
|
540
|
+
])) : l("", !0)], 6))), 256))], 4)), [[S(fe), _t]])]), d("tbody", null, [(_(!0), u(me, null, y(U.value, (e, t) => (_(), u("tr", {
|
|
541
|
+
role: "row",
|
|
542
|
+
style: g({
|
|
543
|
+
backgroundColor: A.value.tbody.backgroundColor,
|
|
544
|
+
color: A.value.tbody.color
|
|
545
|
+
}),
|
|
546
|
+
class: h({
|
|
547
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
548
|
+
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
549
|
+
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
550
|
+
})
|
|
551
|
+
}, [
|
|
552
|
+
d("td", {
|
|
553
|
+
role: "cell",
|
|
554
|
+
style: g({
|
|
555
|
+
backgroundColor: A.value.tbody.backgroundColor,
|
|
556
|
+
border: A.value.tbody.outline,
|
|
557
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
558
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
559
|
+
textAlign: A.value.tbody.textAlign
|
|
560
|
+
}),
|
|
561
|
+
"data-cell": A.value.translations.serie,
|
|
562
|
+
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
563
|
+
}, [d("div", {
|
|
564
|
+
dir: "auto",
|
|
565
|
+
style: g({
|
|
566
|
+
display: "flex",
|
|
567
|
+
flexDirection: "row",
|
|
568
|
+
alignItems: "center",
|
|
569
|
+
gap: "6px",
|
|
570
|
+
justifyContent: A.value.tbody.textAlign
|
|
571
|
+
})
|
|
572
|
+
}, [A.value.tbody.showColorMarker ? (_(), u("span", {
|
|
573
|
+
key: 0,
|
|
574
|
+
style: g({ color: e.color })
|
|
575
|
+
}, "⬤", 4)) : l("", !0), d("span", null, x(e.name ?? "-"), 1)], 4)], 12, Me),
|
|
576
|
+
(_(!0), u(me, null, y(at.value, (n, r) => (_(), u("td", {
|
|
577
|
+
dir: "auto",
|
|
578
|
+
role: "cell",
|
|
579
|
+
ref_for: !0,
|
|
580
|
+
ref_key: "TD",
|
|
581
|
+
ref: k,
|
|
582
|
+
style: g({
|
|
583
|
+
border: A.value.tbody.outline,
|
|
584
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
585
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
586
|
+
textAlign: A.value.tbody.textAlign,
|
|
587
|
+
background: Q.value !== void 0 && r === Q.value ? A.value.tbody.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : A.value.tbody.selectedColor.fallback : ""
|
|
588
|
+
}),
|
|
589
|
+
"data-cell": Y.value[r] ? Y.value[r].value : "",
|
|
590
|
+
class: "vue-ui-data-table__tbody__td",
|
|
591
|
+
onPointerenter: (e) => {
|
|
592
|
+
lt.value = t, Q.value = r;
|
|
593
|
+
}
|
|
594
|
+
}, x(B(e.values[r], A.value.roundingValues, {
|
|
595
|
+
datapoint: e,
|
|
596
|
+
seriesIndex: t,
|
|
597
|
+
datapointIndex: r
|
|
598
|
+
})), 45, Ne))), 256)),
|
|
599
|
+
A.value.showTotal ? (_(), u("td", {
|
|
600
|
+
key: 0,
|
|
601
|
+
dir: "auto",
|
|
602
|
+
role: "cell",
|
|
603
|
+
style: g({
|
|
604
|
+
border: A.value.tbody.outline,
|
|
605
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
606
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
607
|
+
textAlign: A.value.tbody.textAlign
|
|
608
|
+
}),
|
|
609
|
+
"data-cell": A.value.translations.total,
|
|
610
|
+
class: "vue-ui-data-table__tbody__td"
|
|
611
|
+
}, x(B(e.sum, A.value.roundingTotal, {
|
|
612
|
+
datapoint: e.sum,
|
|
613
|
+
seriesIndex: t
|
|
614
|
+
})), 13, Pe)) : l("", !0),
|
|
615
|
+
A.value.showAverage ? (_(), u("td", {
|
|
616
|
+
key: 1,
|
|
617
|
+
dir: "auto",
|
|
618
|
+
role: "cell",
|
|
619
|
+
style: g({
|
|
620
|
+
border: A.value.tbody.outline,
|
|
621
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
622
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
623
|
+
textAlign: A.value.tbody.textAlign
|
|
624
|
+
}),
|
|
625
|
+
"data-cell": A.value.translations.average,
|
|
626
|
+
class: "vue-ui-data-table__tbody__td"
|
|
627
|
+
}, x(B(e.average, A.value.roundingAverage, {
|
|
628
|
+
datapoint: e.average,
|
|
629
|
+
seriesIndex: t
|
|
630
|
+
})), 13, Fe)) : l("", !0),
|
|
631
|
+
A.value.showMedian ? (_(), u("td", {
|
|
632
|
+
key: 2,
|
|
633
|
+
dir: "auto",
|
|
634
|
+
role: "cell",
|
|
635
|
+
style: g({
|
|
636
|
+
border: A.value.tbody.outline,
|
|
637
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
638
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
639
|
+
textAlign: A.value.tbody.textAlign
|
|
640
|
+
}),
|
|
641
|
+
"data-cell": A.value.translations.median,
|
|
642
|
+
class: "vue-ui-data-table__tbody__td"
|
|
643
|
+
}, x(B(e.median, A.value.roundingMedian, {
|
|
644
|
+
datapoint: e.median,
|
|
645
|
+
seriesIndex: t
|
|
646
|
+
})), 13, Ie)) : l("", !0),
|
|
647
|
+
A.value.showSparklines ? (_(), u("td", {
|
|
648
|
+
key: 3,
|
|
649
|
+
role: "cell",
|
|
650
|
+
"data-cell": A.value.translations.chart,
|
|
651
|
+
style: g({
|
|
652
|
+
border: A.value.tbody.outline,
|
|
653
|
+
fontSize: `${A.value.tbody.fontSize}px`,
|
|
654
|
+
fontWeight: A.value.tbody.bold ? "bold" : "normal",
|
|
655
|
+
textAlign: A.value.tbody.textAlign,
|
|
656
|
+
backgroundColor: A.value.tbody.backgroundColor,
|
|
657
|
+
padding: "0"
|
|
658
|
+
}),
|
|
659
|
+
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
660
|
+
}, [f(S(w), {
|
|
661
|
+
onHoverIndex: ({ index: e }) => ut({
|
|
662
|
+
dataIndex: e,
|
|
663
|
+
serieIndex: t
|
|
664
|
+
}),
|
|
665
|
+
"height-ratio": A.value.sparkline.dimensions.heightRatio,
|
|
666
|
+
"forced-padding": 30,
|
|
667
|
+
dataset: e.sparklineDataset,
|
|
668
|
+
showInfo: !1,
|
|
669
|
+
selectedIndex: Q.value,
|
|
670
|
+
config: {
|
|
671
|
+
type: A.value.sparkline.type,
|
|
672
|
+
style: {
|
|
673
|
+
backgroundColor: "transparent",
|
|
674
|
+
animation: {
|
|
675
|
+
show: A.value.sparkline.animation.show && !S(Xe) && !S(Ze),
|
|
676
|
+
animationFrames: A.value.sparkline.animation.animationFrames
|
|
677
|
+
},
|
|
678
|
+
padding: { right: 12 },
|
|
679
|
+
line: {
|
|
680
|
+
color: e.color,
|
|
681
|
+
smooth: A.value.sparkline.smooth,
|
|
682
|
+
cutNullValues: A.value.sparkline.cutNullValues,
|
|
683
|
+
strokeWidth: A.value.sparkline.strokeWidth
|
|
684
|
+
},
|
|
685
|
+
bar: { color: e.color },
|
|
686
|
+
area: {
|
|
687
|
+
color: e.color,
|
|
688
|
+
opacity: A.value.sparkline.showArea ? 16 : 0,
|
|
689
|
+
useGradient: A.value.sparkline.useGradient
|
|
690
|
+
},
|
|
691
|
+
verticalIndicator: { color: e.color },
|
|
692
|
+
plot: {
|
|
693
|
+
radius: 9,
|
|
694
|
+
stroke: A.value.tbody.backgroundColor,
|
|
695
|
+
strokeWidth: 3
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}, null, 8, [
|
|
700
|
+
"onHoverIndex",
|
|
701
|
+
"height-ratio",
|
|
702
|
+
"dataset",
|
|
703
|
+
"selectedIndex",
|
|
704
|
+
"config"
|
|
705
|
+
])], 12, Le)) : l("", !0)
|
|
706
|
+
], 6))), 256))])], 4)], 32),
|
|
707
|
+
e.$slots.source ? (_(), u("div", Re, [b(e.$slots, "source", {}, void 0, !0)], 512)) : l("", !0)
|
|
708
|
+
], 42, Ee));
|
|
709
|
+
}
|
|
710
|
+
}, [["__scopeId", "data-v-a657c4ca"]]);
|
|
711
|
+
//#endregion
|
|
712
|
+
export { Te as n, w as t };
|