vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, G as n, J as r, Mt as i, S as a, T as o, Wt as ee, Z as te, b as ne, dt as re, f as ie, i as ae, kt as oe } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ce } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { t as s } from "./useNestedProp-DIuuzG1r.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 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
|
+
//#region src/components/vue-ui-table-sparkline.vue
|
|
13
|
+
var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
14
|
+
"z-index": "1",
|
|
15
|
+
"padding-right": "24px"
|
|
16
|
+
} }, De = {
|
|
17
|
+
key: 0,
|
|
18
|
+
style: {
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "row",
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}
|
|
23
|
+
}, Oe = {
|
|
24
|
+
key: 0,
|
|
25
|
+
style: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: "row",
|
|
28
|
+
alignItems: "center"
|
|
29
|
+
}
|
|
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
|
+
key: 1,
|
|
32
|
+
ref: "source",
|
|
33
|
+
dir: "auto"
|
|
34
|
+
}, T = /*#__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: we }) {
|
|
52
|
+
be((e) => ({ v43308e63: e.tdo }));
|
|
53
|
+
let T = m(() => import("./vue-ui-sparkline-ApivEMBP.js").then((e) => e.n)), E = m(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Re = m(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), { vue_ui_table_sparkline: ze } = se(), { isThemeValid: Be, warnInvalidTheme: Ve } = le(), D = e, He = we, O = y(n()), Ue = y(0), k = y(0), A = y(null), We = xe(), Ge = y(!1);
|
|
54
|
+
ve(() => {
|
|
55
|
+
We["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
56
|
+
});
|
|
57
|
+
let j = l({
|
|
58
|
+
get: () => Je(),
|
|
59
|
+
set: (e) => e
|
|
60
|
+
}), M = l(() => j.value.userOptions.useCursorPointer), { userOptionsVisible: N, setUserOptionsVisibility: Ke, keepUserOptionState: qe } = de({ config: j.value });
|
|
61
|
+
function Je() {
|
|
62
|
+
let e = s({
|
|
63
|
+
userConfig: D.config,
|
|
64
|
+
defaultConfig: ze
|
|
65
|
+
}), t = e.theme;
|
|
66
|
+
if (!t) return e;
|
|
67
|
+
if (!Be.value(e)) return Ve(e), e;
|
|
68
|
+
let n = s({
|
|
69
|
+
userConfig: pe[t] || D.config,
|
|
70
|
+
defaultConfig: e
|
|
71
|
+
}), r = s({
|
|
72
|
+
userConfig: D.config,
|
|
73
|
+
defaultConfig: n
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
...r,
|
|
77
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
Se(() => D.config, (e) => {
|
|
81
|
+
j.value = Je(), N.value = !j.value.userOptions.showOnChartHover, tt(), k.value += 1;
|
|
82
|
+
}, { deep: !0 }), Se(() => D.dataset, (e) => {
|
|
83
|
+
H.value = V.value, k.value += 1;
|
|
84
|
+
}, { deep: !0 });
|
|
85
|
+
let { isPrinting: Ye, isImaging: Xe, generatePdf: Ze, generateImage: Qe } = ce({
|
|
86
|
+
elementId: `table_${O.value}`,
|
|
87
|
+
fileName: j.value.title.text || "vue-ui-table-sparkline",
|
|
88
|
+
options: j.value.userOptions.print
|
|
89
|
+
}), $e = l(() => a(j.value.customPalette)), P = y(null), F = y(!1), et = l(() => j.value.responsiveBreakpoint);
|
|
90
|
+
ve(() => {
|
|
91
|
+
tt();
|
|
92
|
+
});
|
|
93
|
+
let I = y(j.value.colNames), L = ye(null);
|
|
94
|
+
function tt() {
|
|
95
|
+
oe(D.dataset) && t({
|
|
96
|
+
componentName: "VueUiTableSparkline",
|
|
97
|
+
type: "dataset"
|
|
98
|
+
}), L.value && L.value.disconnect(), L.value = new ResizeObserver((e) => {
|
|
99
|
+
e.forEach((e) => {
|
|
100
|
+
F.value = e.contentRect.width < et.value;
|
|
101
|
+
});
|
|
102
|
+
}), P.value && L.value.observe(P.value), I.value = [];
|
|
103
|
+
for (let e = 0; e < ct.value; e += 1) I.value.push(j.value.colNames[e] || `col ${e}`);
|
|
104
|
+
}
|
|
105
|
+
_e(() => {
|
|
106
|
+
L.value && L.value.disconnect();
|
|
107
|
+
});
|
|
108
|
+
function R(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 nt(e) {
|
|
114
|
+
return typeof e == "number" && Number.isFinite(e);
|
|
115
|
+
}
|
|
116
|
+
function rt(e = []) {
|
|
117
|
+
return e.map(R).filter(nt);
|
|
118
|
+
}
|
|
119
|
+
function it(e, t, n) {
|
|
120
|
+
let r = R(e), i = R(t), a = nt(r), o = nt(i);
|
|
121
|
+
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
122
|
+
}
|
|
123
|
+
function z(e, t, n = {}) {
|
|
124
|
+
let i = R(e);
|
|
125
|
+
return i === null ? "-" : ae(j.value.formatter, i, r({
|
|
126
|
+
p: j.value.prefix,
|
|
127
|
+
v: i,
|
|
128
|
+
s: j.value.suffix,
|
|
129
|
+
r: t
|
|
130
|
+
}), n);
|
|
131
|
+
}
|
|
132
|
+
let B = l(() => (D.dataset.forEach((e, n) => {
|
|
133
|
+
re({
|
|
134
|
+
datasetObject: e,
|
|
135
|
+
requiredAttributes: ["name", "values"]
|
|
136
|
+
}).forEach((e) => {
|
|
137
|
+
t({
|
|
138
|
+
componentName: "VueUiTableSparkline",
|
|
139
|
+
type: "datasetSerieAttribute",
|
|
140
|
+
property: e,
|
|
141
|
+
index: n
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}), D.dataset.map((e, t) => {
|
|
145
|
+
let n = e.values || [], r = rt(n), a = r.length ? r.reduce((e, t) => e + t, 0) : null, o = r.length ? a / r.length : null, ee = r.length ? ie(r) : null;
|
|
146
|
+
return {
|
|
147
|
+
...e,
|
|
148
|
+
values: n,
|
|
149
|
+
color: ne(e.color) || $e.value[t] || i[t] || i[t % i.length],
|
|
150
|
+
sum: a,
|
|
151
|
+
average: o,
|
|
152
|
+
median: ee,
|
|
153
|
+
sparklineDataset: n.map((e, t) => ({
|
|
154
|
+
period: j.value.colNames[t] || `col ${t}`,
|
|
155
|
+
value: R(e)
|
|
156
|
+
}))
|
|
157
|
+
};
|
|
158
|
+
})));
|
|
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) => it(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 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
|
+
name: 1,
|
|
171
|
+
sum: 1,
|
|
172
|
+
average: 1,
|
|
173
|
+
median: 1
|
|
174
|
+
}, H.value = V.value;
|
|
175
|
+
}
|
|
176
|
+
function q(e, t, n) {
|
|
177
|
+
if ([
|
|
178
|
+
"name",
|
|
179
|
+
"sum",
|
|
180
|
+
"average",
|
|
181
|
+
"median"
|
|
182
|
+
].includes(e.type)) {
|
|
183
|
+
lt(e.type, t, n);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (!mt(t)) return;
|
|
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
|
+
return;
|
|
190
|
+
}
|
|
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) => it(e[1], t[1], i)).map((e) => e[0]).map((e) => V.value[e]), k.value += 1;
|
|
194
|
+
}
|
|
195
|
+
let ct = l(() => Math.max(...D.dataset.map((e) => (e.values || []).length))), J = l(() => {
|
|
196
|
+
let e = I.value.map((e) => ({
|
|
197
|
+
type: "reg",
|
|
198
|
+
value: e
|
|
199
|
+
}));
|
|
200
|
+
if (!e.length) for (let t = 0; t < ct.value; t += 1) e.push({
|
|
201
|
+
type: "reg",
|
|
202
|
+
value: `col ${t + 1}`
|
|
203
|
+
});
|
|
204
|
+
j.value.showTotal && (e = [...e, {
|
|
205
|
+
type: "sum",
|
|
206
|
+
value: j.value.translations.total
|
|
207
|
+
}]);
|
|
208
|
+
let t;
|
|
209
|
+
return t = j.value.showAverage && j.value.showMedian ? [
|
|
210
|
+
...e,
|
|
211
|
+
{
|
|
212
|
+
type: "average",
|
|
213
|
+
value: j.value.translations.average
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: "median",
|
|
217
|
+
value: j.value.translations.median
|
|
218
|
+
}
|
|
219
|
+
] : j.value.showAverage && !j.value.showMedian ? [...e, {
|
|
220
|
+
type: "average",
|
|
221
|
+
value: j.value.translations.average
|
|
222
|
+
}] : !j.value.showAverage && j.value.showMedian ? [...e, {
|
|
223
|
+
type: "median",
|
|
224
|
+
value: j.value.translations.median
|
|
225
|
+
}] : e, j.value.showSparklines ? [...t, {
|
|
226
|
+
type: "chart",
|
|
227
|
+
value: j.value.translations.chart
|
|
228
|
+
}] : t;
|
|
229
|
+
}), Y = y({
|
|
230
|
+
name: 1,
|
|
231
|
+
sum: 1,
|
|
232
|
+
average: 1,
|
|
233
|
+
median: 1
|
|
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
|
+
return;
|
|
240
|
+
}
|
|
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
|
+
let i = t[e], a = n[e];
|
|
245
|
+
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : it(i, a, r);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
let Z = y(void 0), Q = y(void 0);
|
|
249
|
+
function ut({ dataIndex: e, serieIndex: t }) {
|
|
250
|
+
Z.value = e, Q.value = t, A.value[e] && !F.value && A.value[e].scrollIntoView({
|
|
251
|
+
behavior: "smooth",
|
|
252
|
+
block: "nearest",
|
|
253
|
+
inline: "center"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
let dt = y(!1);
|
|
257
|
+
function ft(e) {
|
|
258
|
+
dt.value = e, Ue.value += 1;
|
|
259
|
+
}
|
|
260
|
+
function pt(e = null) {
|
|
261
|
+
ge(() => {
|
|
262
|
+
let t = [j.value.translations.serie].concat(J.value), n = B.value.map((e, t) => [
|
|
263
|
+
[e.name],
|
|
264
|
+
e.values,
|
|
265
|
+
[e.sum],
|
|
266
|
+
[e.average],
|
|
267
|
+
[e.median]
|
|
268
|
+
]), r = o([t].concat(n));
|
|
269
|
+
e ? e(r) : te({
|
|
270
|
+
csvContent: r,
|
|
271
|
+
title: j.value.title.text || "vue-ui-table-sparkline"
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
function mt(e) {
|
|
276
|
+
return j.value.sortedDataColumnIndices.includes(e);
|
|
277
|
+
}
|
|
278
|
+
function ht(e) {
|
|
279
|
+
return e.type === "name" || e === "name" ? j.value.sortedSeriesName : e.type === "sum" || e === "sum" ? j.value.sortedSum : e.type === "average" || e === "average" ? j.value.sortedAverage : e.type === "median" || e === "median" ? j.value.sortedMedian : !1;
|
|
280
|
+
}
|
|
281
|
+
function gt(e, t, n) {
|
|
282
|
+
return [
|
|
283
|
+
"sum",
|
|
284
|
+
"average",
|
|
285
|
+
"median"
|
|
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
|
+
}
|
|
288
|
+
function _t() {
|
|
289
|
+
j.value.resetSortOnClickOutside && K();
|
|
290
|
+
}
|
|
291
|
+
let $ = l({
|
|
292
|
+
get: () => J.value.map((e) => ({ state: 1 })),
|
|
293
|
+
set: (e) => e
|
|
294
|
+
});
|
|
295
|
+
function vt(e) {
|
|
296
|
+
if (e?.stage === "start") {
|
|
297
|
+
Ge.value = !0;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (e?.stage === "end") {
|
|
301
|
+
Ge.value = !1;
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
Qe();
|
|
305
|
+
}
|
|
306
|
+
async function yt() {
|
|
307
|
+
if (He("copyAlt", {
|
|
308
|
+
config: j.value,
|
|
309
|
+
dataset: B.value
|
|
310
|
+
}), !j.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(j.value.userOptions.callbacks.altCopy({
|
|
315
|
+
config: j.value,
|
|
316
|
+
dataset: B.value
|
|
317
|
+
}));
|
|
318
|
+
}
|
|
319
|
+
return ue({
|
|
320
|
+
generatePdf: Ze,
|
|
321
|
+
generateImage: Qe,
|
|
322
|
+
generateCsv: pt,
|
|
323
|
+
restoreOrder: K,
|
|
324
|
+
copyAlt: yt
|
|
325
|
+
}), (e, t) => (v(), d("div", {
|
|
326
|
+
ref_key: "tableContainer",
|
|
327
|
+
ref: P,
|
|
328
|
+
class: g({
|
|
329
|
+
"vue-data-ui-component": !0,
|
|
330
|
+
"vue-ui-table-sparkline": !0,
|
|
331
|
+
"vue-ui-responsive": F.value
|
|
332
|
+
}),
|
|
333
|
+
style: { overflow: "hidden" },
|
|
334
|
+
id: `table_${O.value}`,
|
|
335
|
+
onMouseenter: t[3] ||= () => C(Ke)(!0),
|
|
336
|
+
onMouseleave: t[4] ||= () => C(Ke)(!1)
|
|
337
|
+
}, [
|
|
338
|
+
j.value.title.text ? (v(), d("div", {
|
|
339
|
+
key: 0,
|
|
340
|
+
class: "vue-ui-table-sparkline-caption",
|
|
341
|
+
style: _({ backgroundColor: j.value.title.backgroundColor })
|
|
342
|
+
}, [f("div", {
|
|
343
|
+
class: "atom-title",
|
|
344
|
+
style: _({
|
|
345
|
+
fontSize: `${j.value.title.fontSize}px`,
|
|
346
|
+
fontWeight: j.value.title.bold ? "bold" : "normal",
|
|
347
|
+
color: j.value.title.color,
|
|
348
|
+
textAlign: j.value.title.textAlign
|
|
349
|
+
})
|
|
350
|
+
}, S(j.value.title.text), 5), j.value.title.subtitle.text ? (v(), d("div", {
|
|
351
|
+
key: 0,
|
|
352
|
+
class: "atom-subtitle",
|
|
353
|
+
style: _({
|
|
354
|
+
fontSize: `${j.value.title.subtitle.fontSize}px`,
|
|
355
|
+
fontWeight: j.value.title.subtitle.bold ? "bold" : "normal",
|
|
356
|
+
color: j.value.title.subtitle.color,
|
|
357
|
+
textAlign: j.value.title.textAlign
|
|
358
|
+
})
|
|
359
|
+
}, S(j.value.title.subtitle.text), 5)) : u("", !0)], 4)) : u("", !0),
|
|
360
|
+
f("div", {
|
|
361
|
+
style: { overflow: "auto" },
|
|
362
|
+
onPointerleave: t[2] ||= (e) => {
|
|
363
|
+
Q.value = void 0, Z.value = void 0;
|
|
364
|
+
}
|
|
365
|
+
}, [f("table", {
|
|
366
|
+
class: "vue-ui-data-table",
|
|
367
|
+
style: _({
|
|
368
|
+
fontFamily: j.value.fontFamily,
|
|
369
|
+
position: "relative"
|
|
370
|
+
})
|
|
371
|
+
}, [f("thead", Ee, [Ce((v(), d("tr", {
|
|
372
|
+
role: "row",
|
|
373
|
+
class: "vue-ui-data-table__thead-row",
|
|
374
|
+
style: _({
|
|
375
|
+
backgroundColor: j.value.thead.backgroundColor,
|
|
376
|
+
color: j.value.thead.color
|
|
377
|
+
})
|
|
378
|
+
}, [f("th", {
|
|
379
|
+
role: "cell",
|
|
380
|
+
style: _({
|
|
381
|
+
backgroundColor: j.value.thead.backgroundColor,
|
|
382
|
+
border: j.value.thead.outline,
|
|
383
|
+
textAlign: j.value.thead.textAlign,
|
|
384
|
+
fontWeight: j.value.thead.bold ? "bold" : "normal"
|
|
385
|
+
}),
|
|
386
|
+
class: "sticky-col-first"
|
|
387
|
+
}, [f("div", { style: _({
|
|
388
|
+
display: "flex",
|
|
389
|
+
flexDirection: "row",
|
|
390
|
+
alignItems: "center",
|
|
391
|
+
gap: "3px",
|
|
392
|
+
justifyContent: j.value.thead.textAlign
|
|
393
|
+
}) }, [f("span", null, S(j.value.translations.serie), 1), H.value.length > 1 && j.value.sortedSeriesName ? (v(), d("div", De, [f("button", {
|
|
394
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
395
|
+
onClick: t[0] ||= (e) => q({ type: "name" }, null, -1),
|
|
396
|
+
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
397
|
+
}, [p(C(E), {
|
|
398
|
+
size: 12,
|
|
399
|
+
name: "arrowBottom",
|
|
400
|
+
stroke: j.value.thead.color,
|
|
401
|
+
style: _({ opacity: X.value === "name" && Y.value.name === -1 ? 1 : .3 })
|
|
402
|
+
}, null, 8, ["stroke", "style"])], 4), f("button", {
|
|
403
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
404
|
+
onClick: t[1] ||= (e) => q({ type: "name" }, null, 1),
|
|
405
|
+
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
406
|
+
}, [p(C(E), {
|
|
407
|
+
size: 12,
|
|
408
|
+
name: "arrowTop",
|
|
409
|
+
stroke: j.value.thead.color,
|
|
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
|
+
role: "cell",
|
|
413
|
+
style: _({
|
|
414
|
+
background: j.value.thead.backgroundColor,
|
|
415
|
+
border: j.value.thead.outline,
|
|
416
|
+
textAlign: j.value.thead.textAlign,
|
|
417
|
+
fontWeight: j.value.thead.bold ? "bold" : "normal",
|
|
418
|
+
minWidth: n === J.value.length - 1 ? `${j.value.sparkline.dimensions.width}px` : "48px",
|
|
419
|
+
paddingRight: n === J.value.length - 1 && j.value.userOptions.show ? "36px" : ""
|
|
420
|
+
}),
|
|
421
|
+
class: g({ "sticky-col": n === J.value.length - 1 && j.value.showSparklines })
|
|
422
|
+
}, [f("div", { style: _({
|
|
423
|
+
display: "flex",
|
|
424
|
+
flexDirection: "row",
|
|
425
|
+
alignItems: "center",
|
|
426
|
+
gap: "3px",
|
|
427
|
+
justifyContent: j.value.thead.textAlign
|
|
428
|
+
}) }, [f("span", null, S(t.value), 1), H.value.length > 1 && (mt(n) || ht(t)) ? (v(), d("div", Oe, [f("button", {
|
|
429
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
430
|
+
onClick: () => q(t, n, -1),
|
|
431
|
+
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
432
|
+
}, [p(C(E), {
|
|
433
|
+
size: 12,
|
|
434
|
+
name: "arrowBottom",
|
|
435
|
+
stroke: j.value.thead.color,
|
|
436
|
+
style: _({ opacity: gt(n, t, -1) })
|
|
437
|
+
}, null, 8, ["stroke", "style"])], 12, ke), f("button", {
|
|
438
|
+
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
439
|
+
onClick: () => q(t, n, 1),
|
|
440
|
+
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
441
|
+
}, [p(C(E), {
|
|
442
|
+
size: 12,
|
|
443
|
+
name: "arrowTop",
|
|
444
|
+
stroke: j.value.thead.color,
|
|
445
|
+
style: _({ opacity: gt(n, t, 1) })
|
|
446
|
+
}, null, 8, ["stroke", "style"])], 12, Ae)])) : u("", !0)], 4), j.value.userOptions.show && n === J.value.length - 1 && (C(qe) || C(N)) ? (v(), me(C(Re), {
|
|
447
|
+
ref_for: !0,
|
|
448
|
+
ref: "details",
|
|
449
|
+
key: `user_option_${Ue.value}`,
|
|
450
|
+
backgroundColor: j.value.thead.backgroundColor,
|
|
451
|
+
color: j.value.thead.color,
|
|
452
|
+
isPrinting: C(Ye),
|
|
453
|
+
isImaging: C(Xe),
|
|
454
|
+
uid: O.value,
|
|
455
|
+
hasPdf: j.value.userOptions.buttons.pdf,
|
|
456
|
+
hasXls: j.value.userOptions.buttons.csv,
|
|
457
|
+
hasImg: j.value.userOptions.buttons.img,
|
|
458
|
+
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
459
|
+
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
460
|
+
isFullscreen: dt.value,
|
|
461
|
+
titles: { ...j.value.userOptions.buttonTitles },
|
|
462
|
+
chartElement: P.value,
|
|
463
|
+
position: j.value.userOptions.position,
|
|
464
|
+
callbacks: j.value.userOptions.callbacks,
|
|
465
|
+
printScale: j.value.userOptions.print.scale,
|
|
466
|
+
isCursorPointer: M.value,
|
|
467
|
+
onToggleFullscreen: ft,
|
|
468
|
+
onGeneratePdf: C(Ze),
|
|
469
|
+
onGenerateImage: vt,
|
|
470
|
+
onGenerateCsv: pt,
|
|
471
|
+
onCopyAlt: yt,
|
|
472
|
+
style: _({ visibility: C(qe) ? C(N) ? "visible" : "hidden" : "visible" })
|
|
473
|
+
}, he({ _: 2 }, [
|
|
474
|
+
e.$slots.menuIcon ? {
|
|
475
|
+
name: "menuIcon",
|
|
476
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", h({ 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: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
485
|
+
key: "1"
|
|
486
|
+
} : void 0,
|
|
487
|
+
e.$slots.optionCsv ? {
|
|
488
|
+
name: "optionCsv",
|
|
489
|
+
fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
490
|
+
key: "2"
|
|
491
|
+
} : void 0,
|
|
492
|
+
e.$slots.optionImg ? {
|
|
493
|
+
name: "optionImg",
|
|
494
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
495
|
+
key: "3"
|
|
496
|
+
} : void 0,
|
|
497
|
+
e.$slots.optionFullscreen ? {
|
|
498
|
+
name: "optionFullscreen",
|
|
499
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", h({ 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: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", h({ 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: w(() => [x(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: w(() => [x(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
|
+
])) : 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
|
+
role: "row",
|
|
542
|
+
style: _({
|
|
543
|
+
backgroundColor: j.value.tbody.backgroundColor,
|
|
544
|
+
color: j.value.tbody.color
|
|
545
|
+
}),
|
|
546
|
+
class: g({
|
|
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
|
+
f("td", {
|
|
553
|
+
role: "cell",
|
|
554
|
+
style: _({
|
|
555
|
+
backgroundColor: j.value.tbody.backgroundColor,
|
|
556
|
+
border: j.value.tbody.outline,
|
|
557
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
558
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
559
|
+
textAlign: j.value.tbody.textAlign
|
|
560
|
+
}),
|
|
561
|
+
"data-cell": j.value.translations.serie,
|
|
562
|
+
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
563
|
+
}, [f("div", {
|
|
564
|
+
dir: "auto",
|
|
565
|
+
style: _({
|
|
566
|
+
display: "flex",
|
|
567
|
+
flexDirection: "row",
|
|
568
|
+
alignItems: "center",
|
|
569
|
+
gap: "6px",
|
|
570
|
+
justifyContent: j.value.tbody.textAlign
|
|
571
|
+
})
|
|
572
|
+
}, [j.value.tbody.showColorMarker ? (v(), d("span", {
|
|
573
|
+
key: 0,
|
|
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
|
+
dir: "auto",
|
|
578
|
+
role: "cell",
|
|
579
|
+
ref_for: !0,
|
|
580
|
+
ref_key: "TD",
|
|
581
|
+
ref: A,
|
|
582
|
+
style: _({
|
|
583
|
+
border: j.value.tbody.outline,
|
|
584
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
585
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
586
|
+
textAlign: j.value.tbody.textAlign,
|
|
587
|
+
background: Z.value !== void 0 && r === Z.value ? j.value.tbody.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : j.value.tbody.selectedColor.fallback : ""
|
|
588
|
+
}),
|
|
589
|
+
"data-cell": J.value[r] ? J.value[r].value : "",
|
|
590
|
+
class: "vue-ui-data-table__tbody__td",
|
|
591
|
+
onPointerenter: (e) => {
|
|
592
|
+
Q.value = t, Z.value = r;
|
|
593
|
+
}
|
|
594
|
+
}, S(z(e.values[r], j.value.roundingValues, {
|
|
595
|
+
datapoint: e,
|
|
596
|
+
seriesIndex: t,
|
|
597
|
+
datapointIndex: r
|
|
598
|
+
})), 45, Me))), 256)),
|
|
599
|
+
j.value.showTotal ? (v(), d("td", {
|
|
600
|
+
key: 0,
|
|
601
|
+
dir: "auto",
|
|
602
|
+
role: "cell",
|
|
603
|
+
style: _({
|
|
604
|
+
border: j.value.tbody.outline,
|
|
605
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
606
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
607
|
+
textAlign: j.value.tbody.textAlign
|
|
608
|
+
}),
|
|
609
|
+
"data-cell": j.value.translations.total,
|
|
610
|
+
class: "vue-ui-data-table__tbody__td"
|
|
611
|
+
}, S(z(e.sum, j.value.roundingTotal, {
|
|
612
|
+
datapoint: e.sum,
|
|
613
|
+
seriesIndex: t
|
|
614
|
+
})), 13, Ne)) : u("", !0),
|
|
615
|
+
j.value.showAverage ? (v(), d("td", {
|
|
616
|
+
key: 1,
|
|
617
|
+
dir: "auto",
|
|
618
|
+
role: "cell",
|
|
619
|
+
style: _({
|
|
620
|
+
border: j.value.tbody.outline,
|
|
621
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
622
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
623
|
+
textAlign: j.value.tbody.textAlign
|
|
624
|
+
}),
|
|
625
|
+
"data-cell": j.value.translations.average,
|
|
626
|
+
class: "vue-ui-data-table__tbody__td"
|
|
627
|
+
}, S(z(e.average, j.value.roundingAverage, {
|
|
628
|
+
datapoint: e.average,
|
|
629
|
+
seriesIndex: t
|
|
630
|
+
})), 13, Pe)) : u("", !0),
|
|
631
|
+
j.value.showMedian ? (v(), d("td", {
|
|
632
|
+
key: 2,
|
|
633
|
+
dir: "auto",
|
|
634
|
+
role: "cell",
|
|
635
|
+
style: _({
|
|
636
|
+
border: j.value.tbody.outline,
|
|
637
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
638
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
639
|
+
textAlign: j.value.tbody.textAlign
|
|
640
|
+
}),
|
|
641
|
+
"data-cell": j.value.translations.median,
|
|
642
|
+
class: "vue-ui-data-table__tbody__td"
|
|
643
|
+
}, S(z(e.median, j.value.roundingMedian, {
|
|
644
|
+
datapoint: e.median,
|
|
645
|
+
seriesIndex: t
|
|
646
|
+
})), 13, Fe)) : u("", !0),
|
|
647
|
+
j.value.showSparklines ? (v(), d("td", {
|
|
648
|
+
key: 3,
|
|
649
|
+
role: "cell",
|
|
650
|
+
"data-cell": j.value.translations.chart,
|
|
651
|
+
style: _({
|
|
652
|
+
border: j.value.tbody.outline,
|
|
653
|
+
fontSize: `${j.value.tbody.fontSize}px`,
|
|
654
|
+
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
655
|
+
textAlign: j.value.tbody.textAlign,
|
|
656
|
+
backgroundColor: j.value.tbody.backgroundColor,
|
|
657
|
+
padding: "0"
|
|
658
|
+
}),
|
|
659
|
+
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
660
|
+
}, [p(C(T), {
|
|
661
|
+
onHoverIndex: ({ index: e }) => ut({
|
|
662
|
+
dataIndex: e,
|
|
663
|
+
serieIndex: t
|
|
664
|
+
}),
|
|
665
|
+
"height-ratio": j.value.sparkline.dimensions.heightRatio,
|
|
666
|
+
"forced-padding": 30,
|
|
667
|
+
dataset: e.sparklineDataset,
|
|
668
|
+
showInfo: !1,
|
|
669
|
+
selectedIndex: Z.value,
|
|
670
|
+
config: {
|
|
671
|
+
type: j.value.sparkline.type,
|
|
672
|
+
style: {
|
|
673
|
+
backgroundColor: "transparent",
|
|
674
|
+
animation: {
|
|
675
|
+
show: j.value.sparkline.animation.show && !C(Ye) && !C(Xe),
|
|
676
|
+
animationFrames: j.value.sparkline.animation.animationFrames
|
|
677
|
+
},
|
|
678
|
+
padding: { right: 12 },
|
|
679
|
+
line: {
|
|
680
|
+
color: e.color,
|
|
681
|
+
smooth: j.value.sparkline.smooth,
|
|
682
|
+
cutNullValues: j.value.sparkline.cutNullValues,
|
|
683
|
+
strokeWidth: j.value.sparkline.strokeWidth
|
|
684
|
+
},
|
|
685
|
+
bar: { color: e.color },
|
|
686
|
+
area: {
|
|
687
|
+
color: e.color,
|
|
688
|
+
opacity: j.value.sparkline.showArea ? 16 : 0,
|
|
689
|
+
useGradient: j.value.sparkline.useGradient
|
|
690
|
+
},
|
|
691
|
+
verticalIndicator: { color: e.color },
|
|
692
|
+
plot: {
|
|
693
|
+
radius: 9,
|
|
694
|
+
stroke: j.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, Ie)) : u("", !0)
|
|
706
|
+
], 6))), 256))])], 4)], 32),
|
|
707
|
+
e.$slots.source ? (v(), d("div", Le, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
|
|
708
|
+
], 42, Te));
|
|
709
|
+
}
|
|
710
|
+
}, [["__scopeId", "data-v-a657c4ca"]]);
|
|
711
|
+
//#endregion
|
|
712
|
+
export { we as n, T as t };
|