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
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, jt as r, m as i, q as a, r as ee, tt as te, yt as ne } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as re, t as ie } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ae } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as oe } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { t as o } from "./useNestedProp--NSEmhOH.js";
|
|
7
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as ce } from "./Shape-BPMV94Ij.js";
|
|
9
|
+
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
+
import { t as le } from "./useUserOptionState-DK-_1ddE.js";
|
|
11
|
+
import { t as ue } from "./vue_ui_table_heatmap-w8vx5k6f.js";
|
|
12
|
+
import { Fragment as c, computed as l, createBlock as de, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as fe, createVNode as pe, defineAsyncComponent as me, guardReactiveProps as p, mergeProps as m, nextTick as he, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onMounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, unref as C, useCssVars as ge, useSlots as _e, watch as ve, withCtx as w } from "vue";
|
|
13
|
+
//#region src/components/vue-ui-table-heatmap.vue
|
|
14
|
+
var T = /* @__PURE__ */ e({ default: () => P }), ye = ["id"], be = { role: "cell" }, E = { role: "row" }, D = ["data-cell"], O = {
|
|
15
|
+
key: 0,
|
|
16
|
+
style: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
"flex-direction": "row",
|
|
19
|
+
gap: "2px",
|
|
20
|
+
"align-items": "center"
|
|
21
|
+
}
|
|
22
|
+
}, k = ["height", "width"], A = {
|
|
23
|
+
key: 0,
|
|
24
|
+
role: "cell",
|
|
25
|
+
"data-cell": "sum"
|
|
26
|
+
}, j = {
|
|
27
|
+
key: 1,
|
|
28
|
+
role: "cell",
|
|
29
|
+
"data-cell": "average"
|
|
30
|
+
}, M = {
|
|
31
|
+
key: 2,
|
|
32
|
+
role: "cell",
|
|
33
|
+
"data-cell": "median"
|
|
34
|
+
}, N = {
|
|
35
|
+
key: 1,
|
|
36
|
+
ref: "source",
|
|
37
|
+
dir: "auto"
|
|
38
|
+
}, P = /*#__PURE__*/ s({
|
|
39
|
+
__name: "vue-ui-table-heatmap",
|
|
40
|
+
props: {
|
|
41
|
+
config: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
dataset: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default() {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(e, { expose: s }) {
|
|
55
|
+
ge((e) => ({
|
|
56
|
+
v98bebdba: ke.value,
|
|
57
|
+
f2005304: Oe.value
|
|
58
|
+
}));
|
|
59
|
+
let T = me(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), { vue_ui_table_heatmap: P } = ae(), { isThemeValid: xe, warnInvalidTheme: Se } = se(), F = e, I = b(a()), L = b(!1), R = b(null), z = b(!1), B = b(0), Ce = _e();
|
|
60
|
+
v(() => {
|
|
61
|
+
Ce["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
62
|
+
});
|
|
63
|
+
let V = l({
|
|
64
|
+
get: () => G(),
|
|
65
|
+
set: (e) => e
|
|
66
|
+
});
|
|
67
|
+
re({
|
|
68
|
+
config: () => V.value,
|
|
69
|
+
dataset: () => F.dataset,
|
|
70
|
+
component: "VueUiTableHeatmap",
|
|
71
|
+
rules: [
|
|
72
|
+
ie.emptyArray,
|
|
73
|
+
{
|
|
74
|
+
test: (e) => e.length > 31,
|
|
75
|
+
message: [
|
|
76
|
+
"👀 The number of series is > 31. Consider:",
|
|
77
|
+
"",
|
|
78
|
+
"▶️ Using filters to let users choose a maximum number of series to display."
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
test: (e) => e.some((e) => e?.values && e?.values.length > 31),
|
|
83
|
+
message: [
|
|
84
|
+
"👀 Some series have a number of data points > 31. Consider:",
|
|
85
|
+
"",
|
|
86
|
+
"▶️ Using filters to let users choose a maximum number of data points to display."
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
let { userOptionsVisible: H, setUserOptionsVisibility: U, keepUserOptionState: W } = le({ config: V.value });
|
|
92
|
+
function G() {
|
|
93
|
+
let e = o({
|
|
94
|
+
userConfig: F.config,
|
|
95
|
+
defaultConfig: P
|
|
96
|
+
}), t = e.theme;
|
|
97
|
+
if (!t) return e;
|
|
98
|
+
if (!xe.value(e)) return Se(e), e;
|
|
99
|
+
let n = o({
|
|
100
|
+
userConfig: ue[t] || F.config,
|
|
101
|
+
defaultConfig: e
|
|
102
|
+
});
|
|
103
|
+
return o({
|
|
104
|
+
userConfig: F.config,
|
|
105
|
+
defaultConfig: n
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
ve(() => F.config, (e) => {
|
|
109
|
+
V.value = G(), H.value = !V.value.userOptions.showOnChartHover, Y();
|
|
110
|
+
}, { deep: !0 });
|
|
111
|
+
let { isPrinting: we, isImaging: Te, generatePdf: K, generateImage: q } = oe({
|
|
112
|
+
elementId: `table_heatmap_${I.value}`,
|
|
113
|
+
fileName: "vue-ui-table-heatmap",
|
|
114
|
+
options: V.value.userOptions.print
|
|
115
|
+
}), J = l(() => V.value.table.responsiveBreakpoint), Ee = l(() => !!F.dataset && F.dataset.length);
|
|
116
|
+
v(() => {
|
|
117
|
+
Y();
|
|
118
|
+
});
|
|
119
|
+
function Y() {
|
|
120
|
+
r(F.dataset) && te({
|
|
121
|
+
componentName: "VueUiTableHeatmap",
|
|
122
|
+
type: "dataset"
|
|
123
|
+
});
|
|
124
|
+
let e = new ResizeObserver((e) => {
|
|
125
|
+
e.forEach((e) => {
|
|
126
|
+
L.value = e.contentRect.width < J.value;
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
R.value && e.observe(R.value);
|
|
130
|
+
}
|
|
131
|
+
let X = l(() => F.dataset.map((e) => {
|
|
132
|
+
let t = e.values.map((e) => isNaN(e) ? 0 : e), n = t.reduce((e, t) => e + t, 0);
|
|
133
|
+
return {
|
|
134
|
+
...e,
|
|
135
|
+
values: t,
|
|
136
|
+
serieExtremes: {
|
|
137
|
+
max: Math.max(...t),
|
|
138
|
+
min: Math.min(...t)
|
|
139
|
+
},
|
|
140
|
+
sum: n,
|
|
141
|
+
average: n / t.length,
|
|
142
|
+
median: i(t),
|
|
143
|
+
displayValues: [e.name, ...e.values],
|
|
144
|
+
id: a()
|
|
145
|
+
};
|
|
146
|
+
})), Z = l(() => {
|
|
147
|
+
let e = X.value.flatMap((e) => e.values);
|
|
148
|
+
return {
|
|
149
|
+
min: Math.min(...e),
|
|
150
|
+
max: Math.max(...e)
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
function De(e, t) {
|
|
154
|
+
let n = V.value.style.heatmapColors.useIndividualScale;
|
|
155
|
+
return ne(V.value.style.heatmapColors.min, V.value.style.heatmapColors.max, n ? t.min : Z.value.min, n ? t.max : Z.value.max, e);
|
|
156
|
+
}
|
|
157
|
+
let Q = l(() => X.value.map((e) => ({
|
|
158
|
+
...e,
|
|
159
|
+
colors: e.displayValues.map((t) => isNaN(t) ? V.value.style.backgroundColor : De(t, e.serieExtremes))
|
|
160
|
+
}))), Oe = l(() => V.value.style.backgroundColor), ke = l(() => `${V.value.table.borderWidth}px`);
|
|
161
|
+
function $(e = null) {
|
|
162
|
+
he(() => {
|
|
163
|
+
let r = Q.value.map((e) => [
|
|
164
|
+
[e.name],
|
|
165
|
+
e.displayValues,
|
|
166
|
+
[e.sum],
|
|
167
|
+
[e.average],
|
|
168
|
+
[e.median]
|
|
169
|
+
]), i = n([[
|
|
170
|
+
[""],
|
|
171
|
+
V.value.table.head.values,
|
|
172
|
+
["sum"],
|
|
173
|
+
["average"],
|
|
174
|
+
["median"]
|
|
175
|
+
]].concat(r));
|
|
176
|
+
e ? e(i) : t({
|
|
177
|
+
csvContent: i,
|
|
178
|
+
title: "vue-ui-table-heatmap"
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function Ae(e) {
|
|
183
|
+
z.value = e, B.value += 1;
|
|
184
|
+
}
|
|
185
|
+
return s({
|
|
186
|
+
generatePdf: K,
|
|
187
|
+
generateCsv: $,
|
|
188
|
+
generateImage: q
|
|
189
|
+
}), (e, t) => (y(), d("div", {
|
|
190
|
+
ref_key: "tableContainer",
|
|
191
|
+
ref: R,
|
|
192
|
+
style: _(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${V.value.userOptions.show ? "36px" : ""}; ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
|
|
193
|
+
class: h({
|
|
194
|
+
"vue-data-ui-component": !0,
|
|
195
|
+
"vue-ui-responsive": L.value
|
|
196
|
+
}),
|
|
197
|
+
id: `table_heatmap_${I.value}`,
|
|
198
|
+
onMouseenter: t[0] ||= () => C(U)(!0),
|
|
199
|
+
onMouseleave: t[1] ||= () => C(U)(!1)
|
|
200
|
+
}, [
|
|
201
|
+
V.value.userOptions.show && Ee.value && (C(W) || C(H)) ? (y(), de(C(T), {
|
|
202
|
+
ref: "details",
|
|
203
|
+
key: `user_option_${B.value}`,
|
|
204
|
+
backgroundColor: V.value.style.backgroundColor,
|
|
205
|
+
color: V.value.style.color,
|
|
206
|
+
isPrinting: C(we),
|
|
207
|
+
isImaging: C(Te),
|
|
208
|
+
uid: I.value,
|
|
209
|
+
hasPdf: V.value.userOptions.buttons.pdf,
|
|
210
|
+
hasXls: V.value.userOptions.buttons.csv,
|
|
211
|
+
hasImg: V.value.userOptions.buttons.img,
|
|
212
|
+
hasFullscreen: V.value.userOptions.buttons.fullscreen,
|
|
213
|
+
isFullscreen: z.value,
|
|
214
|
+
titles: { ...V.value.userOptions.buttonTitles },
|
|
215
|
+
chartElement: R.value,
|
|
216
|
+
position: V.value.userOptions.position,
|
|
217
|
+
callbacks: V.value.userOptions.callbacks,
|
|
218
|
+
printScale: V.value.userOptions.print.scale,
|
|
219
|
+
onToggleFullscreen: Ae,
|
|
220
|
+
onGeneratePdf: C(K),
|
|
221
|
+
onGenerateCsv: $,
|
|
222
|
+
onGenerateImage: C(q),
|
|
223
|
+
style: _({ visibility: C(W) ? C(H) ? "visible" : "hidden" : "visible" })
|
|
224
|
+
}, fe({ _: 2 }, [
|
|
225
|
+
e.$slots.menuIcon ? {
|
|
226
|
+
name: "menuIcon",
|
|
227
|
+
fn: w(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", g(p({
|
|
228
|
+
isOpen: t,
|
|
229
|
+
color: n
|
|
230
|
+
})), void 0, !0)]),
|
|
231
|
+
key: "0"
|
|
232
|
+
} : void 0,
|
|
233
|
+
e.$slots.optionPdf ? {
|
|
234
|
+
name: "optionPdf",
|
|
235
|
+
fn: w(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
236
|
+
key: "1"
|
|
237
|
+
} : void 0,
|
|
238
|
+
e.$slots.optionCsv ? {
|
|
239
|
+
name: "optionCsv",
|
|
240
|
+
fn: w(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
241
|
+
key: "2"
|
|
242
|
+
} : void 0,
|
|
243
|
+
e.$slots.optionImg ? {
|
|
244
|
+
name: "optionImg",
|
|
245
|
+
fn: w(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
246
|
+
key: "3"
|
|
247
|
+
} : void 0,
|
|
248
|
+
e.$slots.optionFullscreen ? {
|
|
249
|
+
name: "optionFullscreen",
|
|
250
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", g(p({
|
|
251
|
+
toggleFullscreen: t,
|
|
252
|
+
isFullscreen: n
|
|
253
|
+
})), void 0, !0)]),
|
|
254
|
+
key: "4"
|
|
255
|
+
} : void 0,
|
|
256
|
+
e.$slots["custom-menu-before"] ? {
|
|
257
|
+
name: "custom-menu-before",
|
|
258
|
+
fn: w(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
259
|
+
key: "5"
|
|
260
|
+
} : void 0,
|
|
261
|
+
e.$slots["custom-menu-after"] ? {
|
|
262
|
+
name: "custom-menu-after",
|
|
263
|
+
fn: w(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
264
|
+
key: "6"
|
|
265
|
+
} : void 0
|
|
266
|
+
]), 1032, [
|
|
267
|
+
"backgroundColor",
|
|
268
|
+
"color",
|
|
269
|
+
"isPrinting",
|
|
270
|
+
"isImaging",
|
|
271
|
+
"uid",
|
|
272
|
+
"hasPdf",
|
|
273
|
+
"hasXls",
|
|
274
|
+
"hasImg",
|
|
275
|
+
"hasFullscreen",
|
|
276
|
+
"isFullscreen",
|
|
277
|
+
"titles",
|
|
278
|
+
"chartElement",
|
|
279
|
+
"position",
|
|
280
|
+
"callbacks",
|
|
281
|
+
"printScale",
|
|
282
|
+
"onGeneratePdf",
|
|
283
|
+
"onGenerateImage",
|
|
284
|
+
"style"
|
|
285
|
+
])) : u("", !0),
|
|
286
|
+
f("table", {
|
|
287
|
+
class: h({ "vue-ui-table-heatmap": !0 }),
|
|
288
|
+
style: _(`width:100%;font-family:${V.value.style.fontFamily};background:${V.value.style.backgroundColor};`)
|
|
289
|
+
}, [
|
|
290
|
+
f("caption", null, [S(e.$slots, "caption", {}, void 0, !0)]),
|
|
291
|
+
f("thead", null, [f("tr", {
|
|
292
|
+
role: "row",
|
|
293
|
+
style: _(`background:${V.value.table.head.backgroundColor};color:${V.value.table.head.color}`)
|
|
294
|
+
}, [(y(!0), d(c, null, x(V.value.table.head.values, (t, n) => (y(), d("th", be, [S(e.$slots, "head", m({ ref_for: !0 }, {
|
|
295
|
+
value: t,
|
|
296
|
+
rowIndex: n,
|
|
297
|
+
type: typeof t,
|
|
298
|
+
isResponsive: L.value
|
|
299
|
+
}), void 0, !0)]))), 256))], 4)]),
|
|
300
|
+
f("tbody", null, [(y(!0), d(c, null, x(Q.value, (t, n) => (y(), d("tr", E, [
|
|
301
|
+
(y(!0), d(c, null, x(t.displayValues, (r, i) => (y(), d("td", {
|
|
302
|
+
role: "cell",
|
|
303
|
+
"data-cell": V.value.table.head.values[i]
|
|
304
|
+
}, [t.color && i === 0 ? (y(), d("div", O, [t.color ? (y(), d("svg", {
|
|
305
|
+
key: 0,
|
|
306
|
+
height: V.value.style.shapeSize,
|
|
307
|
+
width: V.value.style.shapeSize,
|
|
308
|
+
viewBox: "0 0 20 20",
|
|
309
|
+
style: {
|
|
310
|
+
background: "none",
|
|
311
|
+
overflow: "visible"
|
|
312
|
+
}
|
|
313
|
+
}, [pe(ce, {
|
|
314
|
+
plot: {
|
|
315
|
+
x: 10,
|
|
316
|
+
y: 10
|
|
317
|
+
},
|
|
318
|
+
color: t.color,
|
|
319
|
+
radius: 9,
|
|
320
|
+
shape: t.shape || "circle"
|
|
321
|
+
}, null, 8, ["color", "shape"])], 8, k)) : u("", !0), S(e.$slots, "rowTitle", m({ ref_for: !0 }, {
|
|
322
|
+
value: r,
|
|
323
|
+
rowIndex: n,
|
|
324
|
+
colIndex: i,
|
|
325
|
+
type: typeof r,
|
|
326
|
+
isResponsive: L.value
|
|
327
|
+
}), void 0, !0)])) : (y(), d(c, { key: 1 }, [i === 0 ? S(e.$slots, "rowTitle", m({ ref_for: !0 }, {
|
|
328
|
+
value: r,
|
|
329
|
+
rowIndex: n,
|
|
330
|
+
colIndex: i,
|
|
331
|
+
type: typeof r,
|
|
332
|
+
isResponsive: L.value
|
|
333
|
+
}), void 0, !0, 0) : u("", !0), i > 0 ? S(e.$slots, "cell", m({ ref_for: !0 }, {
|
|
334
|
+
value: r,
|
|
335
|
+
rowIndex: n,
|
|
336
|
+
colIndex: i,
|
|
337
|
+
type: typeof r,
|
|
338
|
+
isResponsive: L.value,
|
|
339
|
+
color: t.colors[i],
|
|
340
|
+
textColor: C(ee)(t.colors[i])
|
|
341
|
+
}), void 0, !0, 1) : u("", !0)], 64))], 8, D))), 256)),
|
|
342
|
+
V.value.table.showSum ? (y(), d("td", A, [S(e.$slots, "sum", m({ ref_for: !0 }, {
|
|
343
|
+
value: t.sum,
|
|
344
|
+
rowIndex: n,
|
|
345
|
+
isResponsive: L.value
|
|
346
|
+
}), void 0, !0)])) : u("", !0),
|
|
347
|
+
V.value.table.showAverage ? (y(), d("td", j, [S(e.$slots, "average", m({ ref_for: !0 }, {
|
|
348
|
+
value: t.average,
|
|
349
|
+
rowIndex: n,
|
|
350
|
+
isResponsive: L.value
|
|
351
|
+
}), void 0, !0)])) : u("", !0),
|
|
352
|
+
V.value.table.showMedian ? (y(), d("td", M, [S(e.$slots, "median", m({ ref_for: !0 }, {
|
|
353
|
+
value: t.median,
|
|
354
|
+
rowIndex: n,
|
|
355
|
+
isResponsive: L.value
|
|
356
|
+
}), void 0, !0)])) : u("", !0)
|
|
357
|
+
]))), 256))])
|
|
358
|
+
], 4),
|
|
359
|
+
e.$slots.source ? (y(), d("div", N, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
|
|
360
|
+
], 46, ye));
|
|
361
|
+
}
|
|
362
|
+
}, [["__scopeId", "data-v-0e8d0ce2"]]);
|
|
363
|
+
//#endregion
|
|
364
|
+
export { T as n, P as t };
|