vue-data-ui 3.26.5 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.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-hill.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-label.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-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -1,738 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, D as r, Rt as i, S as a, Vt as o, X as ee, at as s, i as te, m as ne, nt as re, vt as ie, w as ae } from "./lib-TWIH5fGr.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-DObkR9Aa.js";
|
|
5
|
-
import { t as le } from "./usePrinter-8Y1Rju0Y.js";
|
|
6
|
-
import { t as c } from "./useNestedProp-BxOdWM0c.js";
|
|
7
|
-
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as de } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { t as fe } from "./useUserOptionState-DK-_1ddE.js";
|
|
10
|
-
import { t as pe } from "./vClickOutside-DUrZWttG.js";
|
|
11
|
-
import { t as me } from "./vue_ui_table_sparkline-DAbkUrNz.js";
|
|
12
|
-
import { Fragment as l, computed as u, createBlock as he, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ge, createVNode as m, defineAsyncComponent as _e, mergeProps as ve, nextTick as ye, normalizeClass as be, normalizeStyle as h, onBeforeUnmount as xe, onMounted as Se, openBlock as g, ref as _, renderList as Ce, renderSlot as v, shallowRef as we, toDisplayString as y, unref as b, useCssVars as Te, useSlots as Ee, watch as De, withCtx as x, withDirectives as Oe } from "vue";
|
|
13
|
-
//#region src/components/vue-ui-table-sparkline.vue
|
|
14
|
-
var ke = /* @__PURE__ */ e({ default: () => S }), Ae = ["id"], je = { style: {
|
|
15
|
-
"z-index": "1",
|
|
16
|
-
"padding-right": "24px"
|
|
17
|
-
} }, Me = {
|
|
18
|
-
key: 0,
|
|
19
|
-
style: {
|
|
20
|
-
display: "flex",
|
|
21
|
-
flexDirection: "row",
|
|
22
|
-
alignItems: "center"
|
|
23
|
-
}
|
|
24
|
-
}, Ne = {
|
|
25
|
-
key: 0,
|
|
26
|
-
style: {
|
|
27
|
-
display: "flex",
|
|
28
|
-
flexDirection: "row",
|
|
29
|
-
alignItems: "center"
|
|
30
|
-
}
|
|
31
|
-
}, Pe = ["onClick"], Fe = ["onClick"], Ie = ["data-cell"], Le = ["data-cell", "onPointerenter"], Re = ["data-cell"], ze = ["data-cell"], Be = ["data-cell"], Ve = ["data-cell"], He = {
|
|
32
|
-
key: 1,
|
|
33
|
-
ref: "source",
|
|
34
|
-
dir: "auto"
|
|
35
|
-
}, S = /*#__PURE__*/ de({
|
|
36
|
-
__name: "vue-ui-table-sparkline",
|
|
37
|
-
props: {
|
|
38
|
-
config: {
|
|
39
|
-
type: Object,
|
|
40
|
-
default() {
|
|
41
|
-
return {};
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
dataset: {
|
|
45
|
-
type: Array,
|
|
46
|
-
default() {
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["copyAlt"],
|
|
52
|
-
setup(e, { expose: de, emit: ke }) {
|
|
53
|
-
Te((e) => ({ v847ffcd0: e.tdo }));
|
|
54
|
-
let S = _e(() => import("./vue-ui-sparkline-znaswFQj.js").then((e) => e.n)), C = _e(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), Ue = _e(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), { vue_ui_table_sparkline: We } = ce(), { isThemeValid: Ge, warnInvalidTheme: Ke } = ue(), w = e, qe = ke, T = _(ee()), Je = _(0), E = _(0), D = _(null), Ye = Ee(), Xe = _(!1), O = u({
|
|
55
|
-
get: () => $e(),
|
|
56
|
-
set: (e) => e
|
|
57
|
-
}), k = u(() => O.value.userOptions), A = u(() => O.value.sparkline), j = u(() => O.value.thead), M = u(() => O.value.tbody), N = u(() => O.value.title);
|
|
58
|
-
Se(() => {
|
|
59
|
-
Ye["chart-background"] && O.value.debug && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
60
|
-
}), oe({
|
|
61
|
-
config: () => O.value,
|
|
62
|
-
dataset: () => w.dataset,
|
|
63
|
-
component: "VueUiTableSparkline",
|
|
64
|
-
rules: [
|
|
65
|
-
se.emptyArray,
|
|
66
|
-
{
|
|
67
|
-
test: (e) => e.some((e) => e?.values && e.values.length > 500),
|
|
68
|
-
message: [
|
|
69
|
-
"👀 One or more series have > 500 datapoints. Consider if you really need this level of detail.",
|
|
70
|
-
"",
|
|
71
|
-
"▶️ Use larger time scales, or aggregated values"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
test: (e) => e.some((e) => e?.values && e.values.length > 1095),
|
|
76
|
-
message: [
|
|
77
|
-
"👀 One or more series have > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.",
|
|
78
|
-
"",
|
|
79
|
-
"▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted."
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
let P = u(() => O.value.userOptions.useCursorPointer), { userOptionsVisible: F, setUserOptionsVisibility: Ze, keepUserOptionState: Qe } = fe({ config: O.value });
|
|
85
|
-
function $e() {
|
|
86
|
-
let e = c({
|
|
87
|
-
userConfig: w.config,
|
|
88
|
-
defaultConfig: We
|
|
89
|
-
}), t = e.theme;
|
|
90
|
-
if (!t) return e;
|
|
91
|
-
if (!Ge.value(e)) return Ke(e), e;
|
|
92
|
-
let r = c({
|
|
93
|
-
userConfig: me[t] || w.config,
|
|
94
|
-
defaultConfig: e
|
|
95
|
-
}), i = c({
|
|
96
|
-
userConfig: w.config,
|
|
97
|
-
defaultConfig: r
|
|
98
|
-
});
|
|
99
|
-
return {
|
|
100
|
-
...i,
|
|
101
|
-
customPalette: i.customPalette.length ? i.customPalette : n[t] || o
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
De(() => w.config, (e) => {
|
|
105
|
-
O.value = $e(), F.value = !O.value.userOptions.showOnChartHover, ot(), E.value += 1;
|
|
106
|
-
}, { deep: !0 }), De(() => w.dataset, (e) => {
|
|
107
|
-
G.value = W.value, E.value += 1;
|
|
108
|
-
}, { deep: !0 });
|
|
109
|
-
let { isPrinting: et, isImaging: tt, generatePdf: nt, generateImage: rt } = le({
|
|
110
|
-
elementId: `table_${T.value}`,
|
|
111
|
-
fileName: N.value.text || "vue-ui-table-sparkline",
|
|
112
|
-
options: O.value.userOptions.print
|
|
113
|
-
}), it = u(() => ae(O.value.customPalette)), I = _(null), L = _(!1), at = u(() => O.value.responsiveBreakpoint);
|
|
114
|
-
Se(() => {
|
|
115
|
-
ot();
|
|
116
|
-
});
|
|
117
|
-
let R = _(O.value.colNames), z = we(null);
|
|
118
|
-
function ot() {
|
|
119
|
-
i(w.dataset) && s({
|
|
120
|
-
componentName: "VueUiTableSparkline",
|
|
121
|
-
type: "dataset"
|
|
122
|
-
}), z.value && z.value.disconnect(), z.value = new ResizeObserver((e) => {
|
|
123
|
-
e.forEach((e) => {
|
|
124
|
-
L.value = e.contentRect.width < at.value;
|
|
125
|
-
});
|
|
126
|
-
}), I.value && z.value.observe(I.value), R.value = [];
|
|
127
|
-
for (let e = 0; e < mt.value; e += 1) R.value.push(O.value.colNames[e] || `col ${e}`);
|
|
128
|
-
}
|
|
129
|
-
xe(() => {
|
|
130
|
-
z.value && z.value.disconnect();
|
|
131
|
-
});
|
|
132
|
-
function B(e) {
|
|
133
|
-
if ([null, void 0].includes(e)) return null;
|
|
134
|
-
let t = Number(e);
|
|
135
|
-
return Number.isFinite(t) ? t : null;
|
|
136
|
-
}
|
|
137
|
-
function V(e) {
|
|
138
|
-
return typeof e == "number" && Number.isFinite(e);
|
|
139
|
-
}
|
|
140
|
-
function st(e = []) {
|
|
141
|
-
return e.map(B).filter(V);
|
|
142
|
-
}
|
|
143
|
-
function ct(e, t, n) {
|
|
144
|
-
let r = B(e), i = B(t), a = V(r), o = V(i);
|
|
145
|
-
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
146
|
-
}
|
|
147
|
-
function H(e, n, r = {}) {
|
|
148
|
-
let i = B(e);
|
|
149
|
-
return i === null ? "-" : te(O.value.formatter, i, t({
|
|
150
|
-
p: O.value.prefix,
|
|
151
|
-
v: i,
|
|
152
|
-
s: O.value.suffix,
|
|
153
|
-
r: n
|
|
154
|
-
}), r);
|
|
155
|
-
}
|
|
156
|
-
let U = u(() => (w.dataset.forEach((e, t) => {
|
|
157
|
-
ie({
|
|
158
|
-
datasetObject: e,
|
|
159
|
-
requiredAttributes: ["name", "values"]
|
|
160
|
-
}).forEach((e) => {
|
|
161
|
-
s({
|
|
162
|
-
componentName: "VueUiTableSparkline",
|
|
163
|
-
type: "datasetSerieAttribute",
|
|
164
|
-
property: e,
|
|
165
|
-
index: t
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
}), w.dataset.map((e, t) => {
|
|
169
|
-
let n = e.values || [], r = st(n), i = r.length ? r.reduce((e, t) => e + t, 0) : null, ee = r.length ? i / r.length : null, s = r.length ? ne(r) : null;
|
|
170
|
-
return {
|
|
171
|
-
...e,
|
|
172
|
-
values: n,
|
|
173
|
-
color: a(e.color) || it.value[t] || o[t] || o[t % o.length],
|
|
174
|
-
sum: i,
|
|
175
|
-
average: ee,
|
|
176
|
-
median: s,
|
|
177
|
-
sparklineDataset: n.map((e, t) => ({
|
|
178
|
-
period: O.value.colNames[t] || `col ${t}`,
|
|
179
|
-
value: B(e)
|
|
180
|
-
}))
|
|
181
|
-
};
|
|
182
|
-
})));
|
|
183
|
-
function lt(e) {
|
|
184
|
-
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) => ct(e[0], t[0], 1)).map((e) => e[1]));
|
|
185
|
-
return e.map((e, n) => ({
|
|
186
|
-
...e,
|
|
187
|
-
values: e.values || [],
|
|
188
|
-
orders: t[n]
|
|
189
|
-
}));
|
|
190
|
-
}
|
|
191
|
-
let W = u(() => lt(U.value)), G = _(W.value), ut = u(() => Math.max(...G.value.map((e) => (e.values || []).length))), dt = _(void 0), ft = _(!1), K = _(void 0), pt = _(1);
|
|
192
|
-
function q() {
|
|
193
|
-
ft.value = !1, K.value = void 0, Z.value = void 0, pt.value = 1, $.value.forEach((e) => e.state = 1), X.value = {
|
|
194
|
-
name: 1,
|
|
195
|
-
sum: 1,
|
|
196
|
-
average: 1,
|
|
197
|
-
median: 1
|
|
198
|
-
}, G.value = W.value;
|
|
199
|
-
}
|
|
200
|
-
function J(e, t, n) {
|
|
201
|
-
if ([
|
|
202
|
-
"name",
|
|
203
|
-
"sum",
|
|
204
|
-
"average",
|
|
205
|
-
"median"
|
|
206
|
-
].includes(e.type)) {
|
|
207
|
-
ht(e.type, t, n);
|
|
208
|
-
return;
|
|
209
|
-
}
|
|
210
|
-
if (!xt(t)) return;
|
|
211
|
-
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) {
|
|
212
|
-
K.value = void 0, q();
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
ft.value = !0, K.value = t;
|
|
216
|
-
let r = W.value.map((e) => e.values?.[t] ?? null), i = n;
|
|
217
|
-
$.value[t].state = i, pt.value = i, t === dt.value ? dt.value = void 0 : dt.value = t;
|
|
218
|
-
let a = r.map((e, t) => [t, e]).sort((e, t) => ct(e[1], t[1], i)).map((e) => e[0]).map((e) => W.value[e]);
|
|
219
|
-
G.value = a, E.value += 1;
|
|
220
|
-
}
|
|
221
|
-
let mt = u(() => Math.max(...w.dataset.map((e) => (e.values || []).length))), Y = u(() => {
|
|
222
|
-
let e = R.value.map((e) => ({
|
|
223
|
-
type: "reg",
|
|
224
|
-
value: e
|
|
225
|
-
}));
|
|
226
|
-
if (!e.length) for (let t = 0; t < mt.value; t += 1) e.push({
|
|
227
|
-
type: "reg",
|
|
228
|
-
value: `col ${t + 1}`
|
|
229
|
-
});
|
|
230
|
-
O.value.showTotal && (e = [...e, {
|
|
231
|
-
type: "sum",
|
|
232
|
-
value: O.value.translations.total
|
|
233
|
-
}]);
|
|
234
|
-
let t;
|
|
235
|
-
return t = O.value.showAverage && O.value.showMedian ? [
|
|
236
|
-
...e,
|
|
237
|
-
{
|
|
238
|
-
type: "average",
|
|
239
|
-
value: O.value.translations.average
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
type: "median",
|
|
243
|
-
value: O.value.translations.median
|
|
244
|
-
}
|
|
245
|
-
] : O.value.showAverage && !O.value.showMedian ? [...e, {
|
|
246
|
-
type: "average",
|
|
247
|
-
value: O.value.translations.average
|
|
248
|
-
}] : !O.value.showAverage && O.value.showMedian ? [...e, {
|
|
249
|
-
type: "median",
|
|
250
|
-
value: O.value.translations.median
|
|
251
|
-
}] : e, O.value.showSparklines ? [...t, {
|
|
252
|
-
type: "chart",
|
|
253
|
-
value: O.value.translations.chart
|
|
254
|
-
}] : t;
|
|
255
|
-
}), X = _({
|
|
256
|
-
name: 1,
|
|
257
|
-
sum: 1,
|
|
258
|
-
average: 1,
|
|
259
|
-
median: 1
|
|
260
|
-
}), Z = _(void 0);
|
|
261
|
-
function ht(e, t, n) {
|
|
262
|
-
if (!G.value || G.value.length === 0 || !St(e)) return;
|
|
263
|
-
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) {
|
|
264
|
-
Z.value = void 0, q();
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
Z.value = e, ft.value = !0, X.value[e] = n, [null, void 0].includes(t) || ($.value[t].state = X.value[e]);
|
|
268
|
-
let r = X.value[e], i = [...G.value].sort((t, n) => {
|
|
269
|
-
let i = t[e], a = n[e];
|
|
270
|
-
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : ct(i, a, r);
|
|
271
|
-
});
|
|
272
|
-
G.value = i;
|
|
273
|
-
}
|
|
274
|
-
let Q = _(void 0), gt = _(void 0);
|
|
275
|
-
function _t({ dataIndex: e, serieIndex: t }) {
|
|
276
|
-
Q.value = e, gt.value = t, D.value[e] && !L.value && D.value[e].scrollIntoView({
|
|
277
|
-
behavior: "smooth",
|
|
278
|
-
block: "nearest",
|
|
279
|
-
inline: "center"
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
let vt = _(!1);
|
|
283
|
-
function yt(e) {
|
|
284
|
-
vt.value = e, Je.value += 1;
|
|
285
|
-
}
|
|
286
|
-
function bt(e = null) {
|
|
287
|
-
ye(() => {
|
|
288
|
-
let t = [O.value.translations.serie].concat(Y.value), n = U.value.map((e, t) => [
|
|
289
|
-
[e.name],
|
|
290
|
-
e.values,
|
|
291
|
-
[e.sum],
|
|
292
|
-
[e.average],
|
|
293
|
-
[e.median]
|
|
294
|
-
]), i = [t].concat(n), a = r(i);
|
|
295
|
-
e ? e(a) : re({
|
|
296
|
-
csvContent: a,
|
|
297
|
-
title: N.value.text || "vue-ui-table-sparkline"
|
|
298
|
-
});
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
function xt(e) {
|
|
302
|
-
return O.value.sortedDataColumnIndices.includes(e);
|
|
303
|
-
}
|
|
304
|
-
function St(e) {
|
|
305
|
-
return e.type === "name" || e === "name" ? O.value.sortedSeriesName : e.type === "sum" || e === "sum" ? O.value.sortedSum : e.type === "average" || e === "average" ? O.value.sortedAverage : e.type === "median" || e === "median" ? O.value.sortedMedian : !1;
|
|
306
|
-
}
|
|
307
|
-
function Ct(e, t, n) {
|
|
308
|
-
return [
|
|
309
|
-
"sum",
|
|
310
|
-
"average",
|
|
311
|
-
"median"
|
|
312
|
-
].includes(t.type) ? Z.value === t.type && X.value[t.type] === n ? 1 : .3 : e === K.value && $.value[e].state === n ? 1 : .3;
|
|
313
|
-
}
|
|
314
|
-
function wt() {
|
|
315
|
-
O.value.resetSortOnClickOutside && q();
|
|
316
|
-
}
|
|
317
|
-
let $ = u({
|
|
318
|
-
get: () => Y.value.map((e) => ({ state: 1 })),
|
|
319
|
-
set: (e) => e
|
|
320
|
-
});
|
|
321
|
-
function Tt(e) {
|
|
322
|
-
if (e?.stage === "start") {
|
|
323
|
-
Xe.value = !0;
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
if (e?.stage === "end") {
|
|
327
|
-
Xe.value = !1;
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
rt();
|
|
331
|
-
}
|
|
332
|
-
async function Et() {
|
|
333
|
-
if (qe("copyAlt", {
|
|
334
|
-
config: O.value,
|
|
335
|
-
dataset: U.value
|
|
336
|
-
}), !O.value.userOptions.callbacks.altCopy) {
|
|
337
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
await Promise.resolve(O.value.userOptions.callbacks.altCopy({
|
|
341
|
-
config: O.value,
|
|
342
|
-
dataset: U.value
|
|
343
|
-
}));
|
|
344
|
-
}
|
|
345
|
-
return de({
|
|
346
|
-
generatePdf: nt,
|
|
347
|
-
generateImage: rt,
|
|
348
|
-
generateCsv: bt,
|
|
349
|
-
restoreOrder: q,
|
|
350
|
-
copyAlt: Et
|
|
351
|
-
}), (e, t) => (g(), f("div", {
|
|
352
|
-
ref_key: "tableContainer",
|
|
353
|
-
ref: I,
|
|
354
|
-
class: be({
|
|
355
|
-
"vue-data-ui-component": !0,
|
|
356
|
-
"vue-ui-table-sparkline": !0,
|
|
357
|
-
"vue-ui-responsive": L.value
|
|
358
|
-
}),
|
|
359
|
-
style: { overflow: "hidden" },
|
|
360
|
-
id: `table_${T.value}`,
|
|
361
|
-
onMouseenter: t[3] ||= () => b(Ze)(!0),
|
|
362
|
-
onMouseleave: t[4] ||= () => b(Ze)(!1)
|
|
363
|
-
}, [
|
|
364
|
-
N.value.text ? (g(), f("div", {
|
|
365
|
-
key: 0,
|
|
366
|
-
class: "vue-ui-table-sparkline-caption",
|
|
367
|
-
style: h({ backgroundColor: N.value.backgroundColor })
|
|
368
|
-
}, [p("div", {
|
|
369
|
-
class: "atom-title",
|
|
370
|
-
style: h({
|
|
371
|
-
fontSize: `${N.value.fontSize}px`,
|
|
372
|
-
fontWeight: N.value.bold ? "bold" : "normal",
|
|
373
|
-
color: N.value.color,
|
|
374
|
-
textAlign: N.value.textAlign
|
|
375
|
-
})
|
|
376
|
-
}, y(N.value.text), 5), N.value.subtitle.text ? (g(), f("div", {
|
|
377
|
-
key: 0,
|
|
378
|
-
class: "atom-subtitle",
|
|
379
|
-
style: h({
|
|
380
|
-
fontSize: `${N.value.subtitle.fontSize}px`,
|
|
381
|
-
fontWeight: N.value.subtitle.bold ? "bold" : "normal",
|
|
382
|
-
color: N.value.subtitle.color,
|
|
383
|
-
textAlign: N.value.textAlign
|
|
384
|
-
})
|
|
385
|
-
}, y(N.value.subtitle.text), 5)) : d("", !0)], 4)) : d("", !0),
|
|
386
|
-
p("div", {
|
|
387
|
-
style: { overflow: "auto" },
|
|
388
|
-
onPointerleave: t[2] ||= (e) => {
|
|
389
|
-
gt.value = void 0, Q.value = void 0;
|
|
390
|
-
}
|
|
391
|
-
}, [p("table", {
|
|
392
|
-
class: "vue-ui-data-table",
|
|
393
|
-
style: h({
|
|
394
|
-
fontFamily: O.value.fontFamily,
|
|
395
|
-
position: "relative"
|
|
396
|
-
})
|
|
397
|
-
}, [p("thead", je, [Oe((g(), f("tr", {
|
|
398
|
-
role: "row",
|
|
399
|
-
class: "vue-ui-data-table__thead-row",
|
|
400
|
-
style: h({
|
|
401
|
-
backgroundColor: j.value.backgroundColor,
|
|
402
|
-
color: j.value.color
|
|
403
|
-
})
|
|
404
|
-
}, [p("th", {
|
|
405
|
-
role: "cell",
|
|
406
|
-
style: h({
|
|
407
|
-
backgroundColor: j.value.backgroundColor,
|
|
408
|
-
border: j.value.outline,
|
|
409
|
-
textAlign: j.value.textAlign,
|
|
410
|
-
fontWeight: j.value.bold ? "bold" : "normal"
|
|
411
|
-
}),
|
|
412
|
-
class: "sticky-col-first"
|
|
413
|
-
}, [p("div", { style: h({
|
|
414
|
-
display: "flex",
|
|
415
|
-
flexDirection: "row",
|
|
416
|
-
alignItems: "center",
|
|
417
|
-
gap: "3px",
|
|
418
|
-
justifyContent: j.value.textAlign
|
|
419
|
-
}) }, [p("span", null, y(O.value.translations.serie), 1), G.value.length > 1 && O.value.sortedSeriesName ? (g(), f("div", Me, [p("button", {
|
|
420
|
-
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
421
|
-
onClick: t[0] ||= (e) => J({ type: "name" }, null, -1),
|
|
422
|
-
style: h({ cursor: P.value ? "pointer" : "default" })
|
|
423
|
-
}, [m(b(C), {
|
|
424
|
-
size: 12,
|
|
425
|
-
name: "arrowBottom",
|
|
426
|
-
stroke: j.value.color,
|
|
427
|
-
style: h({ opacity: Z.value === "name" && X.value.name === -1 ? 1 : .3 })
|
|
428
|
-
}, null, 8, ["stroke", "style"])], 4), p("button", {
|
|
429
|
-
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
430
|
-
onClick: t[1] ||= (e) => J({ type: "name" }, null, 1),
|
|
431
|
-
style: h({ cursor: P.value ? "pointer" : "default" })
|
|
432
|
-
}, [m(b(C), {
|
|
433
|
-
size: 12,
|
|
434
|
-
name: "arrowTop",
|
|
435
|
-
stroke: j.value.color,
|
|
436
|
-
style: h({ opacity: Z.value === "name" && X.value.name === 1 ? 1 : .3 })
|
|
437
|
-
}, null, 8, ["stroke", "style"])], 4)])) : d("", !0)], 4)], 4), (g(!0), f(l, null, Ce(Y.value, (t, n) => (g(), f("th", {
|
|
438
|
-
role: "cell",
|
|
439
|
-
style: h({
|
|
440
|
-
background: j.value.backgroundColor,
|
|
441
|
-
border: j.value.outline,
|
|
442
|
-
textAlign: j.value.textAlign,
|
|
443
|
-
fontWeight: j.value.bold ? "bold" : "normal",
|
|
444
|
-
minWidth: n === Y.value.length - 1 ? `${A.value.dimensions.width}px` : "48px",
|
|
445
|
-
paddingRight: n === Y.value.length - 1 && k.value.show ? "36px" : ""
|
|
446
|
-
}),
|
|
447
|
-
class: be({ "sticky-col": n === Y.value.length - 1 && O.value.showSparklines })
|
|
448
|
-
}, [p("div", { style: h({
|
|
449
|
-
display: "flex",
|
|
450
|
-
flexDirection: "row",
|
|
451
|
-
alignItems: "center",
|
|
452
|
-
gap: "3px",
|
|
453
|
-
justifyContent: j.value.textAlign
|
|
454
|
-
}) }, [p("span", null, y(t.value), 1), G.value.length > 1 && (xt(n) || St(t)) ? (g(), f("div", Ne, [p("button", {
|
|
455
|
-
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
456
|
-
onClick: () => J(t, n, -1),
|
|
457
|
-
style: h({ cursor: P.value ? "pointer" : "default" })
|
|
458
|
-
}, [m(b(C), {
|
|
459
|
-
size: 12,
|
|
460
|
-
name: "arrowBottom",
|
|
461
|
-
stroke: j.value.color,
|
|
462
|
-
style: h({ opacity: Ct(n, t, -1) })
|
|
463
|
-
}, null, 8, ["stroke", "style"])], 12, Pe), p("button", {
|
|
464
|
-
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
465
|
-
onClick: () => J(t, n, 1),
|
|
466
|
-
style: h({ cursor: P.value ? "pointer" : "default" })
|
|
467
|
-
}, [m(b(C), {
|
|
468
|
-
size: 12,
|
|
469
|
-
name: "arrowTop",
|
|
470
|
-
stroke: j.value.color,
|
|
471
|
-
style: h({ opacity: Ct(n, t, 1) })
|
|
472
|
-
}, null, 8, ["stroke", "style"])], 12, Fe)])) : d("", !0)], 4), k.value.show && n === Y.value.length - 1 && (b(Qe) || b(F)) ? (g(), he(b(Ue), {
|
|
473
|
-
ref_for: !0,
|
|
474
|
-
ref: "details",
|
|
475
|
-
key: `user_option_${Je.value}`,
|
|
476
|
-
backgroundColor: j.value.backgroundColor,
|
|
477
|
-
color: j.value.color,
|
|
478
|
-
isPrinting: b(et),
|
|
479
|
-
isImaging: b(tt),
|
|
480
|
-
uid: T.value,
|
|
481
|
-
hasPdf: k.value.buttons.pdf,
|
|
482
|
-
hasXls: k.value.buttons.csv,
|
|
483
|
-
hasImg: k.value.buttons.img,
|
|
484
|
-
hasFullscreen: k.value.buttons.fullscreen,
|
|
485
|
-
hasAltCopy: k.value.buttons.altCopy,
|
|
486
|
-
isFullscreen: vt.value,
|
|
487
|
-
titles: { ...k.value.buttonTitles },
|
|
488
|
-
chartElement: I.value,
|
|
489
|
-
position: k.value.position,
|
|
490
|
-
callbacks: k.value.callbacks,
|
|
491
|
-
printScale: k.value.print.scale,
|
|
492
|
-
isCursorPointer: P.value,
|
|
493
|
-
onToggleFullscreen: yt,
|
|
494
|
-
onGeneratePdf: b(nt),
|
|
495
|
-
onGenerateImage: Tt,
|
|
496
|
-
onGenerateCsv: bt,
|
|
497
|
-
onCopyAlt: Et,
|
|
498
|
-
style: h({ visibility: b(Qe) ? b(F) ? "visible" : "hidden" : "visible" })
|
|
499
|
-
}, ge({ _: 2 }, [
|
|
500
|
-
e.$slots.menuIcon ? {
|
|
501
|
-
name: "menuIcon",
|
|
502
|
-
fn: x(({ isOpen: t, color: n }) => [v(e.$slots, "menuIcon", ve({ ref_for: !0 }, {
|
|
503
|
-
isOpen: t,
|
|
504
|
-
color: n
|
|
505
|
-
}), void 0, !0)]),
|
|
506
|
-
key: "0"
|
|
507
|
-
} : void 0,
|
|
508
|
-
e.$slots.optionPdf ? {
|
|
509
|
-
name: "optionPdf",
|
|
510
|
-
fn: x(() => [v(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
511
|
-
key: "1"
|
|
512
|
-
} : void 0,
|
|
513
|
-
e.$slots.optionCsv ? {
|
|
514
|
-
name: "optionCsv",
|
|
515
|
-
fn: x(() => [v(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
516
|
-
key: "2"
|
|
517
|
-
} : void 0,
|
|
518
|
-
e.$slots.optionImg ? {
|
|
519
|
-
name: "optionImg",
|
|
520
|
-
fn: x(() => [v(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
521
|
-
key: "3"
|
|
522
|
-
} : void 0,
|
|
523
|
-
e.$slots.optionFullscreen ? {
|
|
524
|
-
name: "optionFullscreen",
|
|
525
|
-
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [v(e.$slots, "optionFullscreen", ve({ ref_for: !0 }, {
|
|
526
|
-
toggleFullscreen: t,
|
|
527
|
-
isFullscreen: n
|
|
528
|
-
}), void 0, !0)]),
|
|
529
|
-
key: "4"
|
|
530
|
-
} : void 0,
|
|
531
|
-
e.$slots.optionAltCopy ? {
|
|
532
|
-
name: "optionAltCopy",
|
|
533
|
-
fn: x(({ altCopy: t }) => [v(e.$slots, "optionAltCopy", ve({ ref_for: !0 }, { altCopy: t }), void 0, !0)]),
|
|
534
|
-
key: "5"
|
|
535
|
-
} : void 0,
|
|
536
|
-
e.$slots["custom-menu-before"] ? {
|
|
537
|
-
name: "custom-menu-before",
|
|
538
|
-
fn: x(() => [v(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
539
|
-
key: "6"
|
|
540
|
-
} : void 0,
|
|
541
|
-
e.$slots["custom-menu-after"] ? {
|
|
542
|
-
name: "custom-menu-after",
|
|
543
|
-
fn: x(() => [v(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
544
|
-
key: "7"
|
|
545
|
-
} : void 0
|
|
546
|
-
]), 1032, [
|
|
547
|
-
"backgroundColor",
|
|
548
|
-
"color",
|
|
549
|
-
"isPrinting",
|
|
550
|
-
"isImaging",
|
|
551
|
-
"uid",
|
|
552
|
-
"hasPdf",
|
|
553
|
-
"hasXls",
|
|
554
|
-
"hasImg",
|
|
555
|
-
"hasFullscreen",
|
|
556
|
-
"hasAltCopy",
|
|
557
|
-
"isFullscreen",
|
|
558
|
-
"titles",
|
|
559
|
-
"chartElement",
|
|
560
|
-
"position",
|
|
561
|
-
"callbacks",
|
|
562
|
-
"printScale",
|
|
563
|
-
"isCursorPointer",
|
|
564
|
-
"onGeneratePdf",
|
|
565
|
-
"style"
|
|
566
|
-
])) : d("", !0)], 6))), 256))], 4)), [[b(pe), wt]])]), p("tbody", null, [(g(!0), f(l, null, Ce(G.value, (e, t) => (g(), f("tr", {
|
|
567
|
-
role: "row",
|
|
568
|
-
style: h({
|
|
569
|
-
backgroundColor: M.value.backgroundColor,
|
|
570
|
-
color: M.value.color
|
|
571
|
-
}),
|
|
572
|
-
class: be({
|
|
573
|
-
"vue-ui-data-table__tbody__row": !0,
|
|
574
|
-
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
575
|
-
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
576
|
-
})
|
|
577
|
-
}, [
|
|
578
|
-
p("td", {
|
|
579
|
-
role: "cell",
|
|
580
|
-
style: h({
|
|
581
|
-
backgroundColor: M.value.backgroundColor,
|
|
582
|
-
border: M.value.outline,
|
|
583
|
-
fontSize: `${M.value.fontSize}px`,
|
|
584
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
585
|
-
textAlign: M.value.textAlign
|
|
586
|
-
}),
|
|
587
|
-
"data-cell": O.value.translations.serie,
|
|
588
|
-
class: "vue-ui-data-table__tbody__td sticky-col-first"
|
|
589
|
-
}, [p("div", {
|
|
590
|
-
dir: "auto",
|
|
591
|
-
style: h({
|
|
592
|
-
display: "flex",
|
|
593
|
-
flexDirection: "row",
|
|
594
|
-
alignItems: "center",
|
|
595
|
-
gap: "6px",
|
|
596
|
-
justifyContent: M.value.textAlign
|
|
597
|
-
})
|
|
598
|
-
}, [M.value.showColorMarker ? (g(), f("span", {
|
|
599
|
-
key: 0,
|
|
600
|
-
style: h({ color: e.color })
|
|
601
|
-
}, "⬤", 4)) : d("", !0), p("span", null, y(e.name ?? "-"), 1)], 4)], 12, Ie),
|
|
602
|
-
(g(!0), f(l, null, Ce(ut.value, (n, r) => (g(), f("td", {
|
|
603
|
-
dir: "auto",
|
|
604
|
-
role: "cell",
|
|
605
|
-
ref_for: !0,
|
|
606
|
-
ref_key: "TD",
|
|
607
|
-
ref: D,
|
|
608
|
-
style: h({
|
|
609
|
-
border: M.value.outline,
|
|
610
|
-
fontSize: `${M.value.fontSize}px`,
|
|
611
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
612
|
-
textAlign: M.value.textAlign,
|
|
613
|
-
background: Q.value !== void 0 && r === Q.value ? M.value.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : M.value.selectedColor.fallback : ""
|
|
614
|
-
}),
|
|
615
|
-
"data-cell": Y.value[r] ? Y.value[r].value : "",
|
|
616
|
-
class: "vue-ui-data-table__tbody__td",
|
|
617
|
-
onPointerenter: (e) => {
|
|
618
|
-
gt.value = t, Q.value = r;
|
|
619
|
-
}
|
|
620
|
-
}, y(H(e.values[r], O.value.roundingValues, {
|
|
621
|
-
datapoint: e,
|
|
622
|
-
seriesIndex: t,
|
|
623
|
-
datapointIndex: r
|
|
624
|
-
})), 45, Le))), 256)),
|
|
625
|
-
O.value.showTotal ? (g(), f("td", {
|
|
626
|
-
key: 0,
|
|
627
|
-
dir: "auto",
|
|
628
|
-
role: "cell",
|
|
629
|
-
style: h({
|
|
630
|
-
border: M.value.outline,
|
|
631
|
-
fontSize: `${M.value.fontSize}px`,
|
|
632
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
633
|
-
textAlign: M.value.textAlign
|
|
634
|
-
}),
|
|
635
|
-
"data-cell": O.value.translations.total,
|
|
636
|
-
class: "vue-ui-data-table__tbody__td"
|
|
637
|
-
}, y(H(e.sum, O.value.roundingTotal, {
|
|
638
|
-
datapoint: e.sum,
|
|
639
|
-
seriesIndex: t
|
|
640
|
-
})), 13, Re)) : d("", !0),
|
|
641
|
-
O.value.showAverage ? (g(), f("td", {
|
|
642
|
-
key: 1,
|
|
643
|
-
dir: "auto",
|
|
644
|
-
role: "cell",
|
|
645
|
-
style: h({
|
|
646
|
-
border: M.value.outline,
|
|
647
|
-
fontSize: `${M.value.fontSize}px`,
|
|
648
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
649
|
-
textAlign: M.value.textAlign
|
|
650
|
-
}),
|
|
651
|
-
"data-cell": O.value.translations.average,
|
|
652
|
-
class: "vue-ui-data-table__tbody__td"
|
|
653
|
-
}, y(H(e.average, O.value.roundingAverage, {
|
|
654
|
-
datapoint: e.average,
|
|
655
|
-
seriesIndex: t
|
|
656
|
-
})), 13, ze)) : d("", !0),
|
|
657
|
-
O.value.showMedian ? (g(), f("td", {
|
|
658
|
-
key: 2,
|
|
659
|
-
dir: "auto",
|
|
660
|
-
role: "cell",
|
|
661
|
-
style: h({
|
|
662
|
-
border: M.value.outline,
|
|
663
|
-
fontSize: `${M.value.fontSize}px`,
|
|
664
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
665
|
-
textAlign: M.value.textAlign
|
|
666
|
-
}),
|
|
667
|
-
"data-cell": O.value.translations.median,
|
|
668
|
-
class: "vue-ui-data-table__tbody__td"
|
|
669
|
-
}, y(H(e.median, O.value.roundingMedian, {
|
|
670
|
-
datapoint: e.median,
|
|
671
|
-
seriesIndex: t
|
|
672
|
-
})), 13, Be)) : d("", !0),
|
|
673
|
-
O.value.showSparklines ? (g(), f("td", {
|
|
674
|
-
key: 3,
|
|
675
|
-
role: "cell",
|
|
676
|
-
"data-cell": O.value.translations.chart,
|
|
677
|
-
style: h({
|
|
678
|
-
border: M.value.outline,
|
|
679
|
-
fontSize: `${M.value.fontSize}px`,
|
|
680
|
-
fontWeight: M.value.bold ? "bold" : "normal",
|
|
681
|
-
textAlign: M.value.textAlign,
|
|
682
|
-
backgroundColor: M.value.backgroundColor,
|
|
683
|
-
padding: "0"
|
|
684
|
-
}),
|
|
685
|
-
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
686
|
-
}, [m(b(S), {
|
|
687
|
-
onHoverIndex: ({ index: e }) => _t({
|
|
688
|
-
dataIndex: e,
|
|
689
|
-
serieIndex: t
|
|
690
|
-
}),
|
|
691
|
-
"height-ratio": A.value.dimensions.heightRatio,
|
|
692
|
-
"forced-padding": 30,
|
|
693
|
-
dataset: e.sparklineDataset,
|
|
694
|
-
showInfo: !1,
|
|
695
|
-
selectedIndex: Q.value,
|
|
696
|
-
config: {
|
|
697
|
-
type: A.value.type,
|
|
698
|
-
style: {
|
|
699
|
-
backgroundColor: "transparent",
|
|
700
|
-
animation: {
|
|
701
|
-
show: A.value.animation.show && !b(et) && !b(tt),
|
|
702
|
-
animationFrames: A.value.animation.animationFrames
|
|
703
|
-
},
|
|
704
|
-
padding: { right: 12 },
|
|
705
|
-
line: {
|
|
706
|
-
color: e.color,
|
|
707
|
-
smooth: A.value.smooth,
|
|
708
|
-
cutNullValues: A.value.cutNullValues,
|
|
709
|
-
strokeWidth: A.value.strokeWidth
|
|
710
|
-
},
|
|
711
|
-
bar: { color: e.color },
|
|
712
|
-
area: {
|
|
713
|
-
color: e.color,
|
|
714
|
-
opacity: A.value.showArea ? 16 : 0,
|
|
715
|
-
useGradient: A.value.useGradient
|
|
716
|
-
},
|
|
717
|
-
verticalIndicator: { color: e.color },
|
|
718
|
-
plot: {
|
|
719
|
-
radius: 9,
|
|
720
|
-
stroke: M.value.backgroundColor,
|
|
721
|
-
strokeWidth: 3
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
}, null, 8, [
|
|
726
|
-
"onHoverIndex",
|
|
727
|
-
"height-ratio",
|
|
728
|
-
"dataset",
|
|
729
|
-
"selectedIndex",
|
|
730
|
-
"config"
|
|
731
|
-
])], 12, Ve)) : d("", !0)
|
|
732
|
-
], 6))), 256))])], 4)], 32),
|
|
733
|
-
e.$slots.source ? (g(), f("div", He, [v(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0)
|
|
734
|
-
], 42, Ae));
|
|
735
|
-
}
|
|
736
|
-
}, [["__scopeId", "data-v-9bb6bbc7"]]);
|
|
737
|
-
//#endregion
|
|
738
|
-
export { ke as n, S as t };
|