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