vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
2
|
+
import { $ as t, D as n, Kt as r, Pt as i, S as a, X as o, i as ee, jt as te, m as ne, pt as re, q as ie, tt as ae, w as oe } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as le } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { t as s } from "./useNestedProp--NSEmhOH.js";
|
|
7
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
10
|
+
import { t as me } from "./vClickOutside-DUrZWttG.js";
|
|
11
|
+
import { t as he } from "./vue_ui_table_sparkline-DAbkUrNz.js";
|
|
12
|
+
import { Fragment as c, computed as l, createBlock as ge, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as _e, createVNode as p, defineAsyncComponent as m, mergeProps as h, nextTick as ve, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as ye, onMounted as be, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as xe, toDisplayString as S, unref as C, useCssVars as Se, useSlots as Ce, watch as we, withCtx as w, withDirectives as Te } from "vue";
|
|
12
13
|
//#region src/components/vue-ui-table-sparkline.vue
|
|
13
|
-
var
|
|
14
|
+
var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
14
15
|
"z-index": "1",
|
|
15
16
|
"padding-right": "24px"
|
|
16
|
-
} },
|
|
17
|
+
} }, ke = {
|
|
17
18
|
key: 0,
|
|
18
19
|
style: {
|
|
19
20
|
display: "flex",
|
|
20
21
|
flexDirection: "row",
|
|
21
22
|
alignItems: "center"
|
|
22
23
|
}
|
|
23
|
-
},
|
|
24
|
+
}, Ae = {
|
|
24
25
|
key: 0,
|
|
25
26
|
style: {
|
|
26
27
|
display: "flex",
|
|
27
28
|
flexDirection: "row",
|
|
28
29
|
alignItems: "center"
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
+
}, je = ["onClick"], Me = ["onClick"], Ne = ["data-cell"], Pe = ["data-cell", "onPointerenter"], Fe = ["data-cell"], Ie = ["data-cell"], Le = ["data-cell"], Re = ["data-cell"], ze = {
|
|
31
32
|
key: 1,
|
|
32
33
|
ref: "source",
|
|
33
34
|
dir: "auto"
|
|
34
|
-
}, T = /*#__PURE__*/
|
|
35
|
+
}, T = /*#__PURE__*/ fe({
|
|
35
36
|
__name: "vue-ui-table-sparkline",
|
|
36
37
|
props: {
|
|
37
38
|
config: {
|
|
@@ -48,93 +49,118 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
emits: ["copyAlt"],
|
|
51
|
-
setup(e, { expose:
|
|
52
|
-
|
|
53
|
-
let T = m(() => import("./vue-ui-sparkline-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
setup(e, { expose: fe, emit: Ee }) {
|
|
53
|
+
Se((e) => ({ v7aad66fa: e.tdo }));
|
|
54
|
+
let T = m(() => import("./vue-ui-sparkline-Dz1uzBos.js").then((e) => e.n)), E = m(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Be = m(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), { vue_ui_table_sparkline: Ve } = le(), { isThemeValid: He, warnInvalidTheme: Ue } = de(), D = e, We = Ee, O = y(ie()), Ge = y(0), k = y(0), A = y(null), Ke = Ce(), qe = y(!1);
|
|
55
|
+
be(() => {
|
|
56
|
+
Ke["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
56
57
|
});
|
|
57
58
|
let j = l({
|
|
58
|
-
get: () =>
|
|
59
|
+
get: () => Ze(),
|
|
59
60
|
set: (e) => e
|
|
60
|
-
})
|
|
61
|
-
|
|
61
|
+
});
|
|
62
|
+
se({
|
|
63
|
+
config: () => j.value,
|
|
64
|
+
dataset: () => D.dataset,
|
|
65
|
+
component: "VueUiTableSparkline",
|
|
66
|
+
rules: [
|
|
67
|
+
ce.emptyArray,
|
|
68
|
+
{
|
|
69
|
+
test: (e) => e.some((e) => e?.values && e.values.length > 500),
|
|
70
|
+
message: [
|
|
71
|
+
"👀 One or more series have > 500 datapoints. Consider if you really need this level of detail.",
|
|
72
|
+
"",
|
|
73
|
+
"▶️ Use larger time scales, or aggregated values"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
test: (e) => e.some((e) => e?.values && e.values.length > 1095),
|
|
78
|
+
message: [
|
|
79
|
+
"👀 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.",
|
|
80
|
+
"",
|
|
81
|
+
"▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted."
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
let M = l(() => j.value.userOptions.useCursorPointer), { userOptionsVisible: Je, setUserOptionsVisibility: Ye, keepUserOptionState: Xe } = pe({ config: j.value });
|
|
87
|
+
function Ze() {
|
|
62
88
|
let e = s({
|
|
63
89
|
userConfig: D.config,
|
|
64
|
-
defaultConfig:
|
|
90
|
+
defaultConfig: Ve
|
|
65
91
|
}), t = e.theme;
|
|
66
92
|
if (!t) return e;
|
|
67
|
-
if (!
|
|
93
|
+
if (!He.value(e)) return Ue(e), e;
|
|
68
94
|
let n = s({
|
|
69
|
-
userConfig:
|
|
95
|
+
userConfig: he[t] || D.config,
|
|
70
96
|
defaultConfig: e
|
|
71
|
-
}),
|
|
97
|
+
}), a = s({
|
|
72
98
|
userConfig: D.config,
|
|
73
99
|
defaultConfig: n
|
|
74
100
|
});
|
|
75
101
|
return {
|
|
76
|
-
...
|
|
77
|
-
customPalette:
|
|
102
|
+
...a,
|
|
103
|
+
customPalette: a.customPalette.length ? a.customPalette : r[t] || i
|
|
78
104
|
};
|
|
79
105
|
}
|
|
80
|
-
|
|
81
|
-
j.value =
|
|
82
|
-
}, { deep: !0 }),
|
|
83
|
-
|
|
106
|
+
we(() => D.config, (e) => {
|
|
107
|
+
j.value = Ze(), Je.value = !j.value.userOptions.showOnChartHover, it(), k.value += 1;
|
|
108
|
+
}, { deep: !0 }), we(() => D.dataset, (e) => {
|
|
109
|
+
U.value = H.value, k.value += 1;
|
|
84
110
|
}, { deep: !0 });
|
|
85
|
-
let { isPrinting:
|
|
111
|
+
let { isPrinting: Qe, isImaging: $e, generatePdf: et, generateImage: tt } = ue({
|
|
86
112
|
elementId: `table_${O.value}`,
|
|
87
113
|
fileName: j.value.title.text || "vue-ui-table-sparkline",
|
|
88
114
|
options: j.value.userOptions.print
|
|
89
|
-
}),
|
|
90
|
-
|
|
91
|
-
|
|
115
|
+
}), nt = l(() => oe(j.value.customPalette)), N = y(null), P = y(!1), rt = l(() => j.value.responsiveBreakpoint);
|
|
116
|
+
be(() => {
|
|
117
|
+
it();
|
|
92
118
|
});
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
119
|
+
let F = y(j.value.colNames), I = xe(null);
|
|
120
|
+
function it() {
|
|
121
|
+
te(D.dataset) && ae({
|
|
96
122
|
componentName: "VueUiTableSparkline",
|
|
97
123
|
type: "dataset"
|
|
98
|
-
}),
|
|
124
|
+
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((e) => {
|
|
99
125
|
e.forEach((e) => {
|
|
100
|
-
|
|
126
|
+
P.value = e.contentRect.width < rt.value;
|
|
101
127
|
});
|
|
102
|
-
}),
|
|
103
|
-
for (let e = 0; e <
|
|
128
|
+
}), N.value && I.value.observe(N.value), F.value = [];
|
|
129
|
+
for (let e = 0; e < lt.value; e += 1) F.value.push(j.value.colNames[e] || `col ${e}`);
|
|
104
130
|
}
|
|
105
|
-
|
|
106
|
-
|
|
131
|
+
ye(() => {
|
|
132
|
+
I.value && I.value.disconnect();
|
|
107
133
|
});
|
|
108
|
-
function
|
|
134
|
+
function L(e) {
|
|
109
135
|
if ([null, void 0].includes(e)) return null;
|
|
110
136
|
let t = Number(e);
|
|
111
137
|
return Number.isFinite(t) ? t : null;
|
|
112
138
|
}
|
|
113
|
-
function
|
|
139
|
+
function R(e) {
|
|
114
140
|
return typeof e == "number" && Number.isFinite(e);
|
|
115
141
|
}
|
|
116
|
-
function
|
|
117
|
-
return e.map(
|
|
142
|
+
function at(e = []) {
|
|
143
|
+
return e.map(L).filter(R);
|
|
118
144
|
}
|
|
119
|
-
function
|
|
120
|
-
let r =
|
|
145
|
+
function z(e, t, n) {
|
|
146
|
+
let r = L(e), i = L(t), a = R(r), o = R(i);
|
|
121
147
|
return a && o ? n === -1 ? r - i : i - r : a ? -1 : +!!o;
|
|
122
148
|
}
|
|
123
|
-
function
|
|
124
|
-
let r =
|
|
125
|
-
return r === null ? "-" :
|
|
149
|
+
function B(e, t, n = {}) {
|
|
150
|
+
let r = L(e);
|
|
151
|
+
return r === null ? "-" : ee(j.value.formatter, r, o({
|
|
126
152
|
p: j.value.prefix,
|
|
127
153
|
v: r,
|
|
128
154
|
s: j.value.suffix,
|
|
129
155
|
r: t
|
|
130
156
|
}), n);
|
|
131
157
|
}
|
|
132
|
-
let
|
|
158
|
+
let V = l(() => (D.dataset.forEach((e, t) => {
|
|
133
159
|
re({
|
|
134
160
|
datasetObject: e,
|
|
135
161
|
requiredAttributes: ["name", "values"]
|
|
136
162
|
}).forEach((e) => {
|
|
137
|
-
|
|
163
|
+
ae({
|
|
138
164
|
componentName: "VueUiTableSparkline",
|
|
139
165
|
type: "datasetSerieAttribute",
|
|
140
166
|
property: e,
|
|
@@ -142,64 +168,64 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
142
168
|
});
|
|
143
169
|
});
|
|
144
170
|
}), D.dataset.map((e, t) => {
|
|
145
|
-
let n = e.values || [], r =
|
|
171
|
+
let n = e.values || [], r = at(n), o = r.length ? r.reduce((e, t) => e + t, 0) : null, ee = r.length ? o / r.length : null, te = r.length ? ne(r) : null;
|
|
146
172
|
return {
|
|
147
173
|
...e,
|
|
148
174
|
values: n,
|
|
149
|
-
color:
|
|
150
|
-
sum:
|
|
151
|
-
average:
|
|
152
|
-
median:
|
|
175
|
+
color: a(e.color) || nt.value[t] || i[t] || i[t % i.length],
|
|
176
|
+
sum: o,
|
|
177
|
+
average: ee,
|
|
178
|
+
median: te,
|
|
153
179
|
sparklineDataset: n.map((e, t) => ({
|
|
154
180
|
period: j.value.colNames[t] || `col ${t}`,
|
|
155
|
-
value:
|
|
181
|
+
value: L(e)
|
|
156
182
|
}))
|
|
157
183
|
};
|
|
158
184
|
})));
|
|
159
|
-
function
|
|
160
|
-
let t = (e[0]?.values || []).map((t, n) => e.map((e) => e?.values?.[n] ?? null)).map((e) => e.map((e, t) => [e, t]).sort((e, t) =>
|
|
185
|
+
function ot(e) {
|
|
186
|
+
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
187
|
return e.map((e, n) => ({
|
|
162
188
|
...e,
|
|
163
189
|
values: e.values || [],
|
|
164
190
|
orders: t[n]
|
|
165
191
|
}));
|
|
166
192
|
}
|
|
167
|
-
let
|
|
168
|
-
function
|
|
169
|
-
|
|
193
|
+
let H = l(() => ot(V.value)), U = y(H.value), st = l(() => Math.max(...U.value.map((e) => (e.values || []).length))), W = y(void 0), G = y(!1), K = y(void 0), ct = y(1);
|
|
194
|
+
function q() {
|
|
195
|
+
G.value = !1, K.value = void 0, Z.value = void 0, ct.value = 1, $.value.forEach((e) => e.state = 1), X.value = {
|
|
170
196
|
name: 1,
|
|
171
197
|
sum: 1,
|
|
172
198
|
average: 1,
|
|
173
199
|
median: 1
|
|
174
|
-
},
|
|
200
|
+
}, U.value = H.value;
|
|
175
201
|
}
|
|
176
|
-
function
|
|
202
|
+
function J(e, t, n) {
|
|
177
203
|
if ([
|
|
178
204
|
"name",
|
|
179
205
|
"sum",
|
|
180
206
|
"average",
|
|
181
207
|
"median"
|
|
182
208
|
].includes(e.type)) {
|
|
183
|
-
|
|
209
|
+
ut(e.type, t, n);
|
|
184
210
|
return;
|
|
185
211
|
}
|
|
186
|
-
if (!
|
|
187
|
-
if (
|
|
188
|
-
|
|
212
|
+
if (!gt(t)) return;
|
|
213
|
+
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) {
|
|
214
|
+
K.value = void 0, q();
|
|
189
215
|
return;
|
|
190
216
|
}
|
|
191
|
-
|
|
192
|
-
let r =
|
|
193
|
-
$.value[t].state = i,
|
|
194
|
-
let a = r.map((e, t) => [t, e]).sort((e, t) =>
|
|
195
|
-
|
|
217
|
+
G.value = !0, K.value = t;
|
|
218
|
+
let r = H.value.map((e) => e.values?.[t] ?? null), i = n;
|
|
219
|
+
$.value[t].state = i, ct.value = i, t === W.value ? W.value = void 0 : W.value = t;
|
|
220
|
+
let a = r.map((e, t) => [t, e]).sort((e, t) => z(e[1], t[1], i)).map((e) => e[0]).map((e) => H.value[e]);
|
|
221
|
+
U.value = a, k.value += 1;
|
|
196
222
|
}
|
|
197
|
-
let
|
|
198
|
-
let e =
|
|
223
|
+
let lt = l(() => Math.max(...D.dataset.map((e) => (e.values || []).length))), Y = l(() => {
|
|
224
|
+
let e = F.value.map((e) => ({
|
|
199
225
|
type: "reg",
|
|
200
226
|
value: e
|
|
201
227
|
}));
|
|
202
|
-
if (!e.length) for (let t = 0; t <
|
|
228
|
+
if (!e.length) for (let t = 0; t < lt.value; t += 1) e.push({
|
|
203
229
|
type: "reg",
|
|
204
230
|
value: `col ${t + 1}`
|
|
205
231
|
});
|
|
@@ -228,114 +254,114 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
228
254
|
type: "chart",
|
|
229
255
|
value: j.value.translations.chart
|
|
230
256
|
}] : t;
|
|
231
|
-
}),
|
|
257
|
+
}), X = y({
|
|
232
258
|
name: 1,
|
|
233
259
|
sum: 1,
|
|
234
260
|
average: 1,
|
|
235
261
|
median: 1
|
|
236
|
-
}),
|
|
237
|
-
function
|
|
238
|
-
if (!
|
|
239
|
-
if (
|
|
240
|
-
|
|
262
|
+
}), Z = y(void 0);
|
|
263
|
+
function ut(e, t, n) {
|
|
264
|
+
if (!U.value || U.value.length === 0 || !_t(e)) return;
|
|
265
|
+
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) {
|
|
266
|
+
Z.value = void 0, q();
|
|
241
267
|
return;
|
|
242
268
|
}
|
|
243
|
-
|
|
244
|
-
let r =
|
|
269
|
+
Z.value = e, G.value = !0, X.value[e] = n, [null, void 0].includes(t) || ($.value[t].state = X.value[e]);
|
|
270
|
+
let r = X.value[e], i = [...U.value].sort((t, n) => {
|
|
245
271
|
let i = t[e], a = n[e];
|
|
246
|
-
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) :
|
|
272
|
+
return typeof i == "string" && typeof a == "string" ? r === -1 ? i.localeCompare(a) : a.localeCompare(i) : z(i, a, r);
|
|
247
273
|
});
|
|
248
|
-
|
|
274
|
+
U.value = i;
|
|
249
275
|
}
|
|
250
|
-
let
|
|
251
|
-
function
|
|
252
|
-
|
|
276
|
+
let Q = y(void 0), dt = y(void 0);
|
|
277
|
+
function ft({ dataIndex: e, serieIndex: t }) {
|
|
278
|
+
Q.value = e, dt.value = t, A.value[e] && !P.value && A.value[e].scrollIntoView({
|
|
253
279
|
behavior: "smooth",
|
|
254
280
|
block: "nearest",
|
|
255
281
|
inline: "center"
|
|
256
282
|
});
|
|
257
283
|
}
|
|
258
|
-
let
|
|
259
|
-
function
|
|
260
|
-
|
|
284
|
+
let pt = y(!1);
|
|
285
|
+
function mt(e) {
|
|
286
|
+
pt.value = e, Ge.value += 1;
|
|
261
287
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
264
|
-
let
|
|
288
|
+
function ht(e = null) {
|
|
289
|
+
ve(() => {
|
|
290
|
+
let r = [j.value.translations.serie].concat(Y.value), i = V.value.map((e, t) => [
|
|
265
291
|
[e.name],
|
|
266
292
|
e.values,
|
|
267
293
|
[e.sum],
|
|
268
294
|
[e.average],
|
|
269
295
|
[e.median]
|
|
270
|
-
]),
|
|
271
|
-
e ? e(
|
|
272
|
-
csvContent:
|
|
296
|
+
]), a = n([r].concat(i));
|
|
297
|
+
e ? e(a) : t({
|
|
298
|
+
csvContent: a,
|
|
273
299
|
title: j.value.title.text || "vue-ui-table-sparkline"
|
|
274
300
|
});
|
|
275
301
|
});
|
|
276
302
|
}
|
|
277
|
-
function
|
|
303
|
+
function gt(e) {
|
|
278
304
|
return j.value.sortedDataColumnIndices.includes(e);
|
|
279
305
|
}
|
|
280
|
-
function
|
|
306
|
+
function _t(e) {
|
|
281
307
|
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;
|
|
282
308
|
}
|
|
283
|
-
function
|
|
309
|
+
function vt(e, t, n) {
|
|
284
310
|
return [
|
|
285
311
|
"sum",
|
|
286
312
|
"average",
|
|
287
313
|
"median"
|
|
288
|
-
].includes(t.type) ?
|
|
314
|
+
].includes(t.type) ? Z.value === t.type && X.value[t.type] === n ? 1 : .3 : e === K.value && $.value[e].state === n ? 1 : .3;
|
|
289
315
|
}
|
|
290
|
-
function
|
|
291
|
-
j.value.resetSortOnClickOutside &&
|
|
316
|
+
function yt() {
|
|
317
|
+
j.value.resetSortOnClickOutside && q();
|
|
292
318
|
}
|
|
293
319
|
let $ = l({
|
|
294
|
-
get: () =>
|
|
320
|
+
get: () => Y.value.map((e) => ({ state: 1 })),
|
|
295
321
|
set: (e) => e
|
|
296
322
|
});
|
|
297
|
-
function
|
|
323
|
+
function bt(e) {
|
|
298
324
|
if (e?.stage === "start") {
|
|
299
|
-
|
|
325
|
+
qe.value = !0;
|
|
300
326
|
return;
|
|
301
327
|
}
|
|
302
328
|
if (e?.stage === "end") {
|
|
303
|
-
|
|
329
|
+
qe.value = !1;
|
|
304
330
|
return;
|
|
305
331
|
}
|
|
306
|
-
|
|
332
|
+
tt();
|
|
307
333
|
}
|
|
308
|
-
async function
|
|
309
|
-
if (
|
|
334
|
+
async function xt() {
|
|
335
|
+
if (We("copyAlt", {
|
|
310
336
|
config: j.value,
|
|
311
|
-
dataset:
|
|
337
|
+
dataset: V.value
|
|
312
338
|
}), !j.value.userOptions.callbacks.altCopy) {
|
|
313
339
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
314
340
|
return;
|
|
315
341
|
}
|
|
316
342
|
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
317
343
|
config: j.value,
|
|
318
|
-
dataset:
|
|
344
|
+
dataset: V.value
|
|
319
345
|
}));
|
|
320
346
|
}
|
|
321
|
-
return
|
|
322
|
-
generatePdf:
|
|
323
|
-
generateImage:
|
|
324
|
-
generateCsv:
|
|
325
|
-
restoreOrder:
|
|
326
|
-
copyAlt:
|
|
347
|
+
return fe({
|
|
348
|
+
generatePdf: et,
|
|
349
|
+
generateImage: tt,
|
|
350
|
+
generateCsv: ht,
|
|
351
|
+
restoreOrder: q,
|
|
352
|
+
copyAlt: xt
|
|
327
353
|
}), (e, t) => (v(), d("div", {
|
|
328
354
|
ref_key: "tableContainer",
|
|
329
|
-
ref:
|
|
355
|
+
ref: N,
|
|
330
356
|
class: g({
|
|
331
357
|
"vue-data-ui-component": !0,
|
|
332
358
|
"vue-ui-table-sparkline": !0,
|
|
333
|
-
"vue-ui-responsive":
|
|
359
|
+
"vue-ui-responsive": P.value
|
|
334
360
|
}),
|
|
335
361
|
style: { overflow: "hidden" },
|
|
336
362
|
id: `table_${O.value}`,
|
|
337
|
-
onMouseenter: t[3] ||= () => C(
|
|
338
|
-
onMouseleave: t[4] ||= () => C(
|
|
363
|
+
onMouseenter: t[3] ||= () => C(Ye)(!0),
|
|
364
|
+
onMouseleave: t[4] ||= () => C(Ye)(!1)
|
|
339
365
|
}, [
|
|
340
366
|
j.value.title.text ? (v(), d("div", {
|
|
341
367
|
key: 0,
|
|
@@ -362,7 +388,7 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
362
388
|
f("div", {
|
|
363
389
|
style: { overflow: "auto" },
|
|
364
390
|
onPointerleave: t[2] ||= (e) => {
|
|
365
|
-
|
|
391
|
+
dt.value = void 0, Q.value = void 0;
|
|
366
392
|
}
|
|
367
393
|
}, [f("table", {
|
|
368
394
|
class: "vue-ui-data-table",
|
|
@@ -370,7 +396,7 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
370
396
|
fontFamily: j.value.fontFamily,
|
|
371
397
|
position: "relative"
|
|
372
398
|
})
|
|
373
|
-
}, [f("thead",
|
|
399
|
+
}, [f("thead", Oe, [Te((v(), d("tr", {
|
|
374
400
|
role: "row",
|
|
375
401
|
class: "vue-ui-data-table__thead-row",
|
|
376
402
|
style: _({
|
|
@@ -392,87 +418,87 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
392
418
|
alignItems: "center",
|
|
393
419
|
gap: "3px",
|
|
394
420
|
justifyContent: j.value.thead.textAlign
|
|
395
|
-
}) }, [f("span", null, S(j.value.translations.serie), 1),
|
|
421
|
+
}) }, [f("span", null, S(j.value.translations.serie), 1), U.value.length > 1 && j.value.sortedSeriesName ? (v(), d("div", ke, [f("button", {
|
|
396
422
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
397
|
-
onClick: t[0] ||= (e) =>
|
|
423
|
+
onClick: t[0] ||= (e) => J({ type: "name" }, null, -1),
|
|
398
424
|
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
399
425
|
}, [p(C(E), {
|
|
400
426
|
size: 12,
|
|
401
427
|
name: "arrowBottom",
|
|
402
428
|
stroke: j.value.thead.color,
|
|
403
|
-
style: _({ opacity:
|
|
429
|
+
style: _({ opacity: Z.value === "name" && X.value.name === -1 ? 1 : .3 })
|
|
404
430
|
}, null, 8, ["stroke", "style"])], 4), f("button", {
|
|
405
431
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
406
|
-
onClick: t[1] ||= (e) =>
|
|
432
|
+
onClick: t[1] ||= (e) => J({ type: "name" }, null, 1),
|
|
407
433
|
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
408
434
|
}, [p(C(E), {
|
|
409
435
|
size: 12,
|
|
410
436
|
name: "arrowTop",
|
|
411
437
|
stroke: j.value.thead.color,
|
|
412
|
-
style: _({ opacity:
|
|
413
|
-
}, null, 8, ["stroke", "style"])], 4)])) : u("", !0)], 4)], 4), (v(!0), d(c, null, b(
|
|
438
|
+
style: _({ opacity: Z.value === "name" && X.value.name === 1 ? 1 : .3 })
|
|
439
|
+
}, null, 8, ["stroke", "style"])], 4)])) : u("", !0)], 4)], 4), (v(!0), d(c, null, b(Y.value, (t, n) => (v(), d("th", {
|
|
414
440
|
role: "cell",
|
|
415
441
|
style: _({
|
|
416
442
|
background: j.value.thead.backgroundColor,
|
|
417
443
|
border: j.value.thead.outline,
|
|
418
444
|
textAlign: j.value.thead.textAlign,
|
|
419
445
|
fontWeight: j.value.thead.bold ? "bold" : "normal",
|
|
420
|
-
minWidth: n ===
|
|
421
|
-
paddingRight: n ===
|
|
446
|
+
minWidth: n === Y.value.length - 1 ? `${j.value.sparkline.dimensions.width}px` : "48px",
|
|
447
|
+
paddingRight: n === Y.value.length - 1 && j.value.userOptions.show ? "36px" : ""
|
|
422
448
|
}),
|
|
423
|
-
class: g({ "sticky-col": n ===
|
|
449
|
+
class: g({ "sticky-col": n === Y.value.length - 1 && j.value.showSparklines })
|
|
424
450
|
}, [f("div", { style: _({
|
|
425
451
|
display: "flex",
|
|
426
452
|
flexDirection: "row",
|
|
427
453
|
alignItems: "center",
|
|
428
454
|
gap: "3px",
|
|
429
455
|
justifyContent: j.value.thead.textAlign
|
|
430
|
-
}) }, [f("span", null, S(t.value), 1),
|
|
456
|
+
}) }, [f("span", null, S(t.value), 1), U.value.length > 1 && (gt(n) || _t(t)) ? (v(), d("div", Ae, [f("button", {
|
|
431
457
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",
|
|
432
|
-
onClick: () =>
|
|
458
|
+
onClick: () => J(t, n, -1),
|
|
433
459
|
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
434
460
|
}, [p(C(E), {
|
|
435
461
|
size: 12,
|
|
436
462
|
name: "arrowBottom",
|
|
437
463
|
stroke: j.value.thead.color,
|
|
438
|
-
style: _({ opacity:
|
|
439
|
-
}, null, 8, ["stroke", "style"])], 12,
|
|
464
|
+
style: _({ opacity: vt(n, t, -1) })
|
|
465
|
+
}, null, 8, ["stroke", "style"])], 12, je), f("button", {
|
|
440
466
|
class: "vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",
|
|
441
|
-
onClick: () =>
|
|
467
|
+
onClick: () => J(t, n, 1),
|
|
442
468
|
style: _({ cursor: M.value ? "pointer" : "default" })
|
|
443
469
|
}, [p(C(E), {
|
|
444
470
|
size: 12,
|
|
445
471
|
name: "arrowTop",
|
|
446
472
|
stroke: j.value.thead.color,
|
|
447
|
-
style: _({ opacity:
|
|
448
|
-
}, null, 8, ["stroke", "style"])], 12,
|
|
473
|
+
style: _({ opacity: vt(n, t, 1) })
|
|
474
|
+
}, null, 8, ["stroke", "style"])], 12, Me)])) : u("", !0)], 4), j.value.userOptions.show && n === Y.value.length - 1 && (C(Xe) || C(Je)) ? (v(), ge(C(Be), {
|
|
449
475
|
ref_for: !0,
|
|
450
476
|
ref: "details",
|
|
451
|
-
key: `user_option_${
|
|
477
|
+
key: `user_option_${Ge.value}`,
|
|
452
478
|
backgroundColor: j.value.thead.backgroundColor,
|
|
453
479
|
color: j.value.thead.color,
|
|
454
|
-
isPrinting: C(
|
|
455
|
-
isImaging: C(
|
|
480
|
+
isPrinting: C(Qe),
|
|
481
|
+
isImaging: C($e),
|
|
456
482
|
uid: O.value,
|
|
457
483
|
hasPdf: j.value.userOptions.buttons.pdf,
|
|
458
484
|
hasXls: j.value.userOptions.buttons.csv,
|
|
459
485
|
hasImg: j.value.userOptions.buttons.img,
|
|
460
486
|
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
461
487
|
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
462
|
-
isFullscreen:
|
|
488
|
+
isFullscreen: pt.value,
|
|
463
489
|
titles: { ...j.value.userOptions.buttonTitles },
|
|
464
|
-
chartElement:
|
|
490
|
+
chartElement: N.value,
|
|
465
491
|
position: j.value.userOptions.position,
|
|
466
492
|
callbacks: j.value.userOptions.callbacks,
|
|
467
493
|
printScale: j.value.userOptions.print.scale,
|
|
468
494
|
isCursorPointer: M.value,
|
|
469
|
-
onToggleFullscreen:
|
|
470
|
-
onGeneratePdf: C(
|
|
471
|
-
onGenerateImage:
|
|
472
|
-
onGenerateCsv:
|
|
473
|
-
onCopyAlt:
|
|
474
|
-
style: _({ visibility: C(
|
|
475
|
-
},
|
|
495
|
+
onToggleFullscreen: mt,
|
|
496
|
+
onGeneratePdf: C(et),
|
|
497
|
+
onGenerateImage: bt,
|
|
498
|
+
onGenerateCsv: ht,
|
|
499
|
+
onCopyAlt: xt,
|
|
500
|
+
style: _({ visibility: C(Xe) ? C(Je) ? "visible" : "hidden" : "visible" })
|
|
501
|
+
}, _e({ _: 2 }, [
|
|
476
502
|
e.$slots.menuIcon ? {
|
|
477
503
|
name: "menuIcon",
|
|
478
504
|
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", h({ ref_for: !0 }, {
|
|
@@ -539,7 +565,7 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
539
565
|
"isCursorPointer",
|
|
540
566
|
"onGeneratePdf",
|
|
541
567
|
"style"
|
|
542
|
-
])) : u("", !0)], 6))), 256))], 4)), [[C(
|
|
568
|
+
])) : u("", !0)], 6))), 256))], 4)), [[C(me), yt]])]), f("tbody", null, [(v(!0), d(c, null, b(U.value, (e, t) => (v(), d("tr", {
|
|
543
569
|
role: "row",
|
|
544
570
|
style: _({
|
|
545
571
|
backgroundColor: j.value.tbody.backgroundColor,
|
|
@@ -574,8 +600,8 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
574
600
|
}, [j.value.tbody.showColorMarker ? (v(), d("span", {
|
|
575
601
|
key: 0,
|
|
576
602
|
style: _({ color: e.color })
|
|
577
|
-
}, "⬤", 4)) : u("", !0), f("span", null, S(e.name ?? "-"), 1)], 4)], 12,
|
|
578
|
-
(v(!0), d(c, null, b(
|
|
603
|
+
}, "⬤", 4)) : u("", !0), f("span", null, S(e.name ?? "-"), 1)], 4)], 12, Ne),
|
|
604
|
+
(v(!0), d(c, null, b(st.value, (n, r) => (v(), d("td", {
|
|
579
605
|
dir: "auto",
|
|
580
606
|
role: "cell",
|
|
581
607
|
ref_for: !0,
|
|
@@ -586,18 +612,18 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
586
612
|
fontSize: `${j.value.tbody.fontSize}px`,
|
|
587
613
|
fontWeight: j.value.tbody.bold ? "bold" : "normal",
|
|
588
614
|
textAlign: j.value.tbody.textAlign,
|
|
589
|
-
background:
|
|
615
|
+
background: Q.value !== void 0 && r === Q.value ? j.value.tbody.selectedColor.useSerieColor ? `${e.color.length > 7 ? e.color.slice(0, -2) : e.color}33` : j.value.tbody.selectedColor.fallback : ""
|
|
590
616
|
}),
|
|
591
|
-
"data-cell":
|
|
617
|
+
"data-cell": Y.value[r] ? Y.value[r].value : "",
|
|
592
618
|
class: "vue-ui-data-table__tbody__td",
|
|
593
619
|
onPointerenter: (e) => {
|
|
594
|
-
|
|
620
|
+
dt.value = t, Q.value = r;
|
|
595
621
|
}
|
|
596
|
-
}, S(
|
|
622
|
+
}, S(B(e.values[r], j.value.roundingValues, {
|
|
597
623
|
datapoint: e,
|
|
598
624
|
seriesIndex: t,
|
|
599
625
|
datapointIndex: r
|
|
600
|
-
})), 45,
|
|
626
|
+
})), 45, Pe))), 256)),
|
|
601
627
|
j.value.showTotal ? (v(), d("td", {
|
|
602
628
|
key: 0,
|
|
603
629
|
dir: "auto",
|
|
@@ -610,10 +636,10 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
610
636
|
}),
|
|
611
637
|
"data-cell": j.value.translations.total,
|
|
612
638
|
class: "vue-ui-data-table__tbody__td"
|
|
613
|
-
}, S(
|
|
639
|
+
}, S(B(e.sum, j.value.roundingTotal, {
|
|
614
640
|
datapoint: e.sum,
|
|
615
641
|
seriesIndex: t
|
|
616
|
-
})), 13,
|
|
642
|
+
})), 13, Fe)) : u("", !0),
|
|
617
643
|
j.value.showAverage ? (v(), d("td", {
|
|
618
644
|
key: 1,
|
|
619
645
|
dir: "auto",
|
|
@@ -626,10 +652,10 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
626
652
|
}),
|
|
627
653
|
"data-cell": j.value.translations.average,
|
|
628
654
|
class: "vue-ui-data-table__tbody__td"
|
|
629
|
-
}, S(
|
|
655
|
+
}, S(B(e.average, j.value.roundingAverage, {
|
|
630
656
|
datapoint: e.average,
|
|
631
657
|
seriesIndex: t
|
|
632
|
-
})), 13,
|
|
658
|
+
})), 13, Ie)) : u("", !0),
|
|
633
659
|
j.value.showMedian ? (v(), d("td", {
|
|
634
660
|
key: 2,
|
|
635
661
|
dir: "auto",
|
|
@@ -642,10 +668,10 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
642
668
|
}),
|
|
643
669
|
"data-cell": j.value.translations.median,
|
|
644
670
|
class: "vue-ui-data-table__tbody__td"
|
|
645
|
-
}, S(
|
|
671
|
+
}, S(B(e.median, j.value.roundingMedian, {
|
|
646
672
|
datapoint: e.median,
|
|
647
673
|
seriesIndex: t
|
|
648
|
-
})), 13,
|
|
674
|
+
})), 13, Le)) : u("", !0),
|
|
649
675
|
j.value.showSparklines ? (v(), d("td", {
|
|
650
676
|
key: 3,
|
|
651
677
|
role: "cell",
|
|
@@ -660,7 +686,7 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
660
686
|
}),
|
|
661
687
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
662
688
|
}, [p(C(T), {
|
|
663
|
-
onHoverIndex: ({ index: e }) =>
|
|
689
|
+
onHoverIndex: ({ index: e }) => ft({
|
|
664
690
|
dataIndex: e,
|
|
665
691
|
serieIndex: t
|
|
666
692
|
}),
|
|
@@ -668,13 +694,13 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
668
694
|
"forced-padding": 30,
|
|
669
695
|
dataset: e.sparklineDataset,
|
|
670
696
|
showInfo: !1,
|
|
671
|
-
selectedIndex:
|
|
697
|
+
selectedIndex: Q.value,
|
|
672
698
|
config: {
|
|
673
699
|
type: j.value.sparkline.type,
|
|
674
700
|
style: {
|
|
675
701
|
backgroundColor: "transparent",
|
|
676
702
|
animation: {
|
|
677
|
-
show: j.value.sparkline.animation.show && !C(
|
|
703
|
+
show: j.value.sparkline.animation.show && !C(Qe) && !C($e),
|
|
678
704
|
animationFrames: j.value.sparkline.animation.animationFrames
|
|
679
705
|
},
|
|
680
706
|
padding: { right: 12 },
|
|
@@ -704,11 +730,11 @@ var we = /* @__PURE__ */ e({ default: () => T }), Te = ["id"], Ee = { style: {
|
|
|
704
730
|
"dataset",
|
|
705
731
|
"selectedIndex",
|
|
706
732
|
"config"
|
|
707
|
-
])], 12,
|
|
733
|
+
])], 12, Re)) : u("", !0)
|
|
708
734
|
], 6))), 256))])], 4)], 32),
|
|
709
|
-
e.$slots.source ? (v(), d("div",
|
|
710
|
-
], 42,
|
|
735
|
+
e.$slots.source ? (v(), d("div", ze, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
|
|
736
|
+
], 42, De));
|
|
711
737
|
}
|
|
712
|
-
}, [["__scopeId", "data-v-
|
|
738
|
+
}, [["__scopeId", "data-v-13d17c2f"]]);
|
|
713
739
|
//#endregion
|
|
714
|
-
export {
|
|
740
|
+
export { Ee as n, T as t };
|