vue-data-ui 2.3.7 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-nwrjVtgP.js → Arrow-CyqlT0ih.js} +1 -1
- package/dist/{Arrow-BZtTM41y.cjs → Arrow-Xy7TAWLU.cjs} +1 -1
- package/dist/{BaseIcon-DWx8aSo2.cjs → BaseIcon-DpzJwh5Z.cjs} +1 -1
- package/dist/{BaseIcon-DLlcdgWI.js → BaseIcon-vF6zgXvp.js} +1 -1
- package/dist/{DataTable-BSoyXOFT.cjs → DataTable-DZ7GOCVh.cjs} +1 -1
- package/dist/{DataTable-BFsn-W_6.js → DataTable-Dj8KLJHc.js} +2 -2
- package/dist/{Legend-DZhpxKg4.cjs → Legend-BNUo8JKO.cjs} +1 -1
- package/dist/{Legend-DThjLfzi.js → Legend-MfrOhwon.js} +1 -1
- package/dist/{Shape-CoCdB8es.cjs → Shape-DBYznwuk.cjs} +1 -1
- package/dist/{Shape-DdhpbOB2.js → Shape-fssaGSn1.js} +1 -1
- package/dist/{Slicer-Bb7zhtxv.cjs → Slicer-B8qDEiI2.cjs} +1 -1
- package/dist/{Slicer-CBsGmIKc.js → Slicer-C2VIWW3F.js} +1 -1
- package/dist/{Title-Ci74YZxW.cjs → Title--kLbBq-N.cjs} +1 -1
- package/dist/{Title-CfofmWzW.js → Title-DM6fKrUI.js} +1 -1
- package/dist/{Tooltip-cIpD1ChA.js → Tooltip-CAmd4pzg.js} +1 -1
- package/dist/{Tooltip-BNMjZUBc.cjs → Tooltip-Dwh7A0L5.cjs} +1 -1
- package/dist/{index-DFXgoR1T.cjs → index-CSlObCMJ.cjs} +1 -1
- package/dist/{index-CGb3gF5A.js → index-D0PI50d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DCBzUHfz.js → useNestedProp-BNV_Y29K.js} +1 -1
- package/dist/{useNestedProp-CbZUIZc0.cjs → useNestedProp-DUXlSjg2.cjs} +1 -1
- package/dist/{usePrinter-DoFYRZKM.cjs → usePrinter-ClpmcbPy.cjs} +1 -1
- package/dist/{usePrinter-VlAyPtaS.js → usePrinter-DJnJEVGy.js} +1 -1
- package/dist/{vue-data-ui-DT5BwtL1.cjs → vue-data-ui-B5epGKMS.cjs} +1 -1
- package/dist/{vue-data-ui-DkU-TK4x.js → vue-data-ui-DLhyTmG3.js} +55 -55
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BwdmaNwO.cjs → vue-ui-3d-bar-Dv5Nu-Kz.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B2ZdZ5yW.js → vue-ui-3d-bar-JeMsTT6R.js} +7 -7
- package/dist/{vue-ui-accordion-Br7xhAKF.js → vue-ui-accordion-C1dTIdYg.js} +3 -3
- package/dist/{vue-ui-accordion-P9OYffC3.cjs → vue-ui-accordion-IPISean4.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D_GP1VkP.js → vue-ui-age-pyramid-BPrB-Srk.js} +8 -8
- package/dist/{vue-ui-age-pyramid-CJGz5iEy.cjs → vue-ui-age-pyramid-ytOUpNe5.cjs} +1 -1
- package/dist/{vue-ui-annotator-C9I6Zikz.cjs → vue-ui-annotator-Bp2ylQ-N.cjs} +1 -1
- package/dist/{vue-ui-annotator-BHI5Uicp.js → vue-ui-annotator-DpY8JI03.js} +1 -1
- package/dist/{vue-ui-candlestick-B3Z-Zw-o.cjs → vue-ui-candlestick-BoDWcJYz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BMz6lY9I.js → vue-ui-candlestick-D_KnLwpq.js} +9 -9
- package/dist/vue-ui-carousel-table-DWUmj6NW.js +330 -0
- package/dist/vue-ui-carousel-table-tPbrubLn.cjs +1 -0
- package/dist/{vue-ui-chestnut-C4vJDydB.cjs → vue-ui-chestnut-BltZicnq.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DikFweqJ.js → vue-ui-chestnut-gUPyB2F7.js} +6 -6
- package/dist/{vue-ui-cursor-CmWl10Om.js → vue-ui-cursor-CBrYcHgg.js} +2 -2
- package/dist/{vue-ui-cursor-CxvSx8wW.cjs → vue-ui-cursor-Mi9mivGV.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CqNO4CkA.js → vue-ui-dashboard-BvJccz-l.js} +2 -2
- package/dist/{vue-ui-dashboard-BRZFA0Yv.cjs → vue-ui-dashboard-DKJRkuMC.cjs} +1 -1
- package/dist/{vue-ui-digits-Bq86VtLg.js → vue-ui-digits-PvPOOZTT.js} +2 -2
- package/dist/{vue-ui-digits-B5AQ1wb4.cjs → vue-ui-digits-UvPWZIkN.cjs} +1 -1
- package/dist/{vue-ui-donut-BSM49MRr.js → vue-ui-donut-CCnmksR_.js} +9 -9
- package/dist/{vue-ui-donut-fUSFXY5z.cjs → vue-ui-donut-DBD9IyRA.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D4vsG4oJ.cjs → vue-ui-donut-evolution-C2mbsaP5.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-hXH6wndl.js → vue-ui-donut-evolution-DWz0XIkn.js} +9 -9
- package/dist/{vue-ui-dumbbell-CSxoMYt4.cjs → vue-ui-dumbbell-CdQ1eQN_.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DF7resYk.js → vue-ui-dumbbell-DnhWlDqn.js} +8 -8
- package/dist/{vue-ui-flow-qhWWfhM9.cjs → vue-ui-flow-CXeTBawu.cjs} +1 -1
- package/dist/{vue-ui-flow-2Wc505ek.js → vue-ui-flow-zTfYWLOo.js} +7 -7
- package/dist/{vue-ui-galaxy-DTYcNRMO.cjs → vue-ui-galaxy-Cr1TLsZ-.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C1tqFf2k.js → vue-ui-galaxy-CviL0-9-.js} +9 -9
- package/dist/{vue-ui-gauge-qkz3wSir.js → vue-ui-gauge-0wjKwTcJ.js} +4 -4
- package/dist/{vue-ui-gauge-4oL43tii.cjs → vue-ui-gauge-C8cqiuMs.cjs} +1 -1
- package/dist/vue-ui-heatmap-BempgzJY.cjs +1 -0
- package/dist/{vue-ui-heatmap-SUwlu7rR.js → vue-ui-heatmap-BjX35pDk.js} +227 -227
- package/dist/{vue-ui-kpi-Bw-xbRgX.cjs → vue-ui-kpi-Cwoq-OQZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-jQgfkbVw.js → vue-ui-kpi-DKPUNPyD.js} +2 -2
- package/dist/{vue-ui-mini-loader-DT-Ww_uE.cjs → vue-ui-mini-loader-DYmuLkr_.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-5YEExcv8.js → vue-ui-mini-loader-umbgz-jE.js} +2 -2
- package/dist/{vue-ui-molecule-DA0NQGMP.cjs → vue-ui-molecule-D04xU1nK.cjs} +1 -1
- package/dist/{vue-ui-molecule-sddRGEOr.js → vue-ui-molecule-DnTFVeGw.js} +9 -9
- package/dist/{vue-ui-mood-radar-BlwtCy7m.js → vue-ui-mood-radar-BdsUM6EW.js} +9 -9
- package/dist/{vue-ui-mood-radar-CUfTRsXf.cjs → vue-ui-mood-radar-wHCxSeNT.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CyhCktfb.cjs → vue-ui-nested-donuts--34k7AUI.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BYDoEtqK.js → vue-ui-nested-donuts-CX_V9UIk.js} +9 -9
- package/dist/{vue-ui-onion-BiS7G_xb.js → vue-ui-onion-C3scIn1m.js} +9 -9
- package/dist/{vue-ui-onion-DKjJWVtm.cjs → vue-ui-onion-ot5UiFnD.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BcZOH5MA.js → vue-ui-parallel-coordinate-plot-BrtFu6_R.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-CB5WohUW.cjs → vue-ui-parallel-coordinate-plot-CLYNauuG.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BX2Z_BiG.js → vue-ui-quadrant-CZQnq031.js} +10 -10
- package/dist/{vue-ui-quadrant-aRRuJrr1.cjs → vue-ui-quadrant-b3C38Y-z.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-aCDLYVC0.js → vue-ui-quick-chart-CQ_m8VuI.js} +6 -6
- package/dist/{vue-ui-quick-chart-BSov5yuk.cjs → vue-ui-quick-chart-CS1XKyME.cjs} +1 -1
- package/dist/{vue-ui-radar-DGhNZx7E.js → vue-ui-radar-Bk_bQCIc.js} +10 -10
- package/dist/{vue-ui-radar-B3DWzSx8.cjs → vue-ui-radar-ayBCV2nl.cjs} +1 -1
- package/dist/{vue-ui-rating-DI2herA3.cjs → vue-ui-rating-BNAFeqKV.cjs} +1 -1
- package/dist/{vue-ui-rating-QJp1mzIX.js → vue-ui-rating-CwmqAW6j.js} +2 -2
- package/dist/{vue-ui-relation-circle-DRKymwCT.js → vue-ui-relation-circle-B19oCBsQ.js} +5 -5
- package/dist/{vue-ui-relation-circle-Dgk6ILFm.cjs → vue-ui-relation-circle-D__4tmLy.cjs} +1 -1
- package/dist/{vue-ui-rings-m9Gm4w5-.cjs → vue-ui-rings-DWv1YjLY.cjs} +1 -1
- package/dist/{vue-ui-rings-Dc_Xgav-.js → vue-ui-rings-Ekq8eld0.js} +9 -9
- package/dist/{vue-ui-scatter-3p_U1RQz.js → vue-ui-scatter-B5lq6TQb.js} +10 -10
- package/dist/{vue-ui-scatter-CwNnmbpv.cjs → vue-ui-scatter-Djt3w_7K.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bdg6KSR_.cjs → vue-ui-screenshot-BBTScesQ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DjN1leGW.js → vue-ui-screenshot-BGEu-1aK.js} +1 -1
- package/dist/{vue-ui-skeleton-B0udzFdQ.js → vue-ui-skeleton-CDB2sB2S.js} +2 -2
- package/dist/{vue-ui-skeleton-CmABeGyu.cjs → vue-ui-skeleton-aEAr9fnx.cjs} +1 -1
- package/dist/{vue-ui-smiley-BJdbZUnl.js → vue-ui-smiley-5sY2rtTd.js} +2 -2
- package/dist/{vue-ui-smiley-CIMwndRh.cjs → vue-ui-smiley-pHCa1uHj.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BiqhJCi0.cjs → vue-ui-spark-trend-BLYjicGH.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Bs8wWJc2.js → vue-ui-spark-trend-C6U8pRYP.js} +4 -4
- package/dist/{vue-ui-sparkbar-CDi8i8_Q.js → vue-ui-sparkbar-DdEDQOc8.js} +3 -3
- package/dist/{vue-ui-sparkbar-C2YT0NxS.cjs → vue-ui-sparkbar-e9mZh74f.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-11o7Kgbf.js → vue-ui-sparkgauge-CV0OpVGr.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D7sVelKC.cjs → vue-ui-sparkgauge-S9QibidM.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DW4yBl5Z.js → vue-ui-sparkhistogram-BCcYAQYV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-C6nnvqeP.cjs → vue-ui-sparkhistogram-DVc-tjMC.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B-jMIILk.js → vue-ui-sparkline-C6emienJ.js} +3 -3
- package/dist/{vue-ui-sparkline-Bnc9Cv0E.cjs → vue-ui-sparkline-WkYNaf-r.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-cUpn5wUS.js → vue-ui-sparkstackbar-CptWawfp.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CVyS6viy.cjs → vue-ui-sparkstackbar-oB0fsXWO.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dc1Y7Lfz.cjs → vue-ui-strip-plot-D30zeVfM.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CpfV9-gw.js → vue-ui-strip-plot-Kb7Kk-C8.js} +9 -9
- package/dist/{vue-ui-table-CaCOIekW.js → vue-ui-table-Dqyr1Go9.js} +1 -1
- package/dist/{vue-ui-table-BHENqbW6.cjs → vue-ui-table-FUX1jbtH.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-r9XRz_dD.cjs → vue-ui-table-heatmap-Cqd_rPSG.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-s7r2sGYk.js → vue-ui-table-heatmap-DAWzPS1D.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Dk_FjirH.cjs → vue-ui-table-sparkline-CWSL5RtX.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BS7VAPDv.js → vue-ui-table-sparkline-DgUpsNVO.js} +5 -5
- package/dist/{vue-ui-thermometer-DU49ev3a.cjs → vue-ui-thermometer-DDpxHZhQ.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BQLqVj-X.js → vue-ui-thermometer-UZFTkdJs.js} +5 -5
- package/dist/{vue-ui-timer-9QQVkkbc.cjs → vue-ui-timer-CXonfhMU.cjs} +1 -1
- package/dist/{vue-ui-timer-DGM9AHJ5.js → vue-ui-timer-DCexI32t.js} +4 -4
- package/dist/{vue-ui-tiremarks-CJ9xiM-i.cjs → vue-ui-tiremarks-DByzjHco.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Bxop3uDk.js → vue-ui-tiremarks-UtTUbZUt.js} +5 -5
- package/dist/{vue-ui-treemap-BOEC1m08.cjs → vue-ui-treemap-BT9zMgOs.cjs} +1 -1
- package/dist/{vue-ui-treemap-CQ9rJnkn.js → vue-ui-treemap-DpLJGsie.js} +9 -9
- package/dist/{vue-ui-vertical-bar-CwcIKeM-.js → vue-ui-vertical-bar-B9poCwqT.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BBHN-hhJ.cjs → vue-ui-vertical-bar-BWWvfTkx.cjs} +1 -1
- package/dist/{vue-ui-waffle-DB3cEJx6.js → vue-ui-waffle-BGnyyHVp.js} +83 -83
- package/dist/{vue-ui-waffle-Bg_hB8yK.cjs → vue-ui-waffle-fRaiL6eW.cjs} +1 -1
- package/dist/{vue-ui-wheel-CF6psk6N.js → vue-ui-wheel-7JdR9vyK.js} +5 -5
- package/dist/{vue-ui-wheel-DpTCJpZn.cjs → vue-ui-wheel-C0BVez2R.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DVu3gTbu.cjs → vue-ui-word-cloud-CDDYvCP9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-QlpZWR2c.js → vue-ui-word-cloud-S1x3FJQ6.js} +6 -6
- package/dist/{vue-ui-xy-CpcGvBUq.js → vue-ui-xy-DBC1QS_G.js} +12 -12
- package/dist/{vue-ui-xy-DFiOxWGU.cjs → vue-ui-xy-DMkykmZN.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CBlzHZ_m.js → vue-ui-xy-canvas-1yb0nuDg.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DR_8n36F.cjs → vue-ui-xy-canvas-B4xzjjjm.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-carousel-table-9W-FPpp4.js +0 -314
- package/dist/vue-ui-carousel-table-ZyIsiWGm.cjs +0 -1
- package/dist/vue-ui-heatmap-B8vDpGuW.cjs +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as Re } from "./Title-
|
|
4
|
-
import { u as Ee, U as Ge } from "./usePrinter-
|
|
5
|
-
import { _ as He } from "./Tooltip-
|
|
6
|
-
import Xe from "./vue-ui-skeleton-
|
|
7
|
-
import Ue from "./BaseIcon-
|
|
8
|
-
import je from "./vue-ui-accordion-
|
|
9
|
-
import { u as
|
|
1
|
+
import { useCssVars as $e, computed as c, ref as g, onMounted as Ce, openBlock as s, createElementBlock as n, normalizeClass as H, normalizeStyle as f, createVNode as q, createCommentVNode as y, createBlock as K, unref as w, createSlots as Le, withCtx as _, renderSlot as k, normalizeProps as J, guardReactiveProps as Q, Fragment as T, renderList as S, createElementVNode as u, toDisplayString as p, withKeys as ze, createTextVNode as Te, nextTick as Se } from "vue";
|
|
2
|
+
import { u as Ae, o as Ne, e as ve, c as Z, t as Me, g as Fe, H as ee, X as Ve, C as te, f as ce, v as Ie, w as Oe, n as Pe, q as Be } from "./index-D0PI50d6.js";
|
|
3
|
+
import { _ as Re } from "./Title-DM6fKrUI.js";
|
|
4
|
+
import { u as Ee, U as Ge } from "./usePrinter-DJnJEVGy.js";
|
|
5
|
+
import { _ as He } from "./Tooltip-CAmd4pzg.js";
|
|
6
|
+
import Xe from "./vue-ui-skeleton-CDB2sB2S.js";
|
|
7
|
+
import Ue from "./BaseIcon-vF6zgXvp.js";
|
|
8
|
+
import je from "./vue-ui-accordion-C1dTIdYg.js";
|
|
9
|
+
import { u as ye } from "./useNestedProp-BNV_Y29K.js";
|
|
10
10
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ke = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Je = ["font-size", "font-weight", "fill", "x", "y"], Qe = ["x", "y", "width", "height", "onMouseover"], Ze = { key: 0 },
|
|
11
|
+
const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ke = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Je = ["font-size", "font-weight", "fill", "x", "y"], Qe = ["x", "y", "width", "height", "onMouseover"], Ze = { key: 0 }, et = ["font-size", "fill", "x", "y", "font-weight"], tt = { key: 0 }, lt = ["x", "y", "font-size", "fill", "font-weight"], at = { key: 1 }, ot = ["x", "y", "width", "height", "stroke", "stroke-width"], st = { key: 2 }, ut = ["id"], nt = ["stop-color"], it = ["stop-color"], rt = ["x", "y", "font-size", "fill"], dt = ["x", "y", "height", "rx", "fill"], vt = ["x", "y", "font-size", "fill"], ct = ["stroke", "x1", "x2", "y1", "y2"], yt = ["fill", "d"], ht = { key: 3 }, gt = {
|
|
12
12
|
id: "colorScaleHorizontal",
|
|
13
13
|
x1: "0%",
|
|
14
14
|
x2: "100%",
|
|
15
15
|
y1: "0%",
|
|
16
16
|
y2: "0%"
|
|
17
|
-
},
|
|
17
|
+
}, pt = ["stop-color"], ft = ["stop-color"], bt = ["x", "y", "width", "height", "rx"], mt = ["x", "y", "font-size", "fill"], xt = ["x", "y", "font-size", "fill"], wt = ["stroke", "x1", "x2", "y1", "y2"], _t = ["fill", "d"], kt = { class: "vue-ui-data-table" }, $t = { key: 0 }, Ct = ["data-cell"], Lt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zt = ["data-cell"], Tt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, St = {
|
|
18
18
|
__name: "vue-ui-heatmap",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -30,163 +30,163 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const d =
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
setup(B, { expose: he }) {
|
|
34
|
+
const d = B;
|
|
35
|
+
$e((t) => ({
|
|
36
|
+
b32f5c52: t.tdo
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_heatmap:
|
|
39
|
-
|
|
38
|
+
const { vue_ui_heatmap: ge } = Ae(), R = c(() => !!d.dataset && d.dataset.length);
|
|
39
|
+
Ne(d.dataset) && ve({
|
|
40
40
|
componentName: "VueUiHeatmap",
|
|
41
41
|
type: "dataset"
|
|
42
42
|
});
|
|
43
|
-
const N = g(Z()),
|
|
44
|
-
const
|
|
43
|
+
const N = g(Z()), X = g(null), pe = g(null), U = g(!1), j = g(""), le = g(void 0), M = g(null), ae = g(0), oe = g(null), se = g(!1), e = c(() => {
|
|
44
|
+
const t = ye({
|
|
45
45
|
userConfig: d.config,
|
|
46
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: ge
|
|
47
47
|
});
|
|
48
|
-
return
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
51
|
-
defaultConfig:
|
|
48
|
+
return t.theme ? {
|
|
49
|
+
...ye({
|
|
50
|
+
userConfig: Me.vue_ui_heatmap[t.theme] || d.config,
|
|
51
|
+
defaultConfig: t
|
|
52
52
|
})
|
|
53
|
-
} :
|
|
54
|
-
}), { isPrinting:
|
|
53
|
+
} : t;
|
|
54
|
+
}), { isPrinting: fe, isImaging: be, generatePdf: ue, generateImage: ne } = Ee({
|
|
55
55
|
elementId: `heatmap__${N.value}`,
|
|
56
56
|
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
57
57
|
}), b = g({
|
|
58
58
|
showTable: e.value.table.show,
|
|
59
59
|
showTooltip: e.value.style.tooltip.show
|
|
60
|
-
}),
|
|
61
|
-
function
|
|
60
|
+
}), me = c(() => e.value.table.responsiveBreakpoint);
|
|
61
|
+
function xe() {
|
|
62
62
|
new ResizeObserver((a) => {
|
|
63
63
|
a.forEach((o) => {
|
|
64
|
-
|
|
64
|
+
se.value = o.contentRect.width < me.value;
|
|
65
65
|
});
|
|
66
|
-
}).observe(
|
|
66
|
+
}).observe(oe.value);
|
|
67
67
|
}
|
|
68
|
-
Ce(
|
|
69
|
-
const A = c(() => Math.max(...d.dataset.flatMap((
|
|
70
|
-
const
|
|
68
|
+
Ce(xe);
|
|
69
|
+
const A = c(() => Math.max(...d.dataset.flatMap((t) => (t.values || []).length))), m = c(() => {
|
|
70
|
+
const t = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + d.dataset.length * e.value.style.layout.cells.height, a = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (A.value < d.dataset.length ? d.dataset.length : A.value) * e.value.style.layout.cells.height, o = t + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
71
71
|
return {
|
|
72
|
-
height:
|
|
72
|
+
height: t,
|
|
73
73
|
heightWithLegend: o,
|
|
74
74
|
width: a
|
|
75
75
|
};
|
|
76
|
-
}),
|
|
76
|
+
}), E = c(() => e.value.style.legend.position), l = c(() => ({
|
|
77
77
|
top: e.value.style.layout.padding.top,
|
|
78
78
|
left: e.value.style.layout.padding.left,
|
|
79
|
-
right: m.value.width - e.value.style.layout.padding.right - (
|
|
79
|
+
right: m.value.width - e.value.style.layout.padding.right - (E.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
80
80
|
bottom: m.value.height - e.value.style.layout.padding.bottom,
|
|
81
81
|
height: m.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
82
|
-
width: m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (
|
|
83
|
-
})),
|
|
84
|
-
const
|
|
85
|
-
return
|
|
82
|
+
width: m.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (E.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
83
|
+
})), D = c(() => i.value.height * d.dataset.length), x = c(() => Math.max(...d.dataset.flatMap((t) => t.values))), F = c(() => Math.min(...d.dataset.flatMap((t) => t.values))), z = c(() => {
|
|
84
|
+
const t = d.dataset.flatMap((o) => o.values);
|
|
85
|
+
return t.reduce((o, r) => o + r, 0) / t.length;
|
|
86
86
|
}), i = c(() => ({
|
|
87
|
-
width:
|
|
88
|
-
height:
|
|
89
|
-
})),
|
|
90
|
-
const
|
|
87
|
+
width: l.value.width / A.value,
|
|
88
|
+
height: l.value.width / (A.value < d.dataset.length ? d.dataset.length : A.value)
|
|
89
|
+
})), $ = c(() => {
|
|
90
|
+
const t = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : d.dataset.map((o) => o.name), a = e.value.style.layout.dataLabels.xAxis.values;
|
|
91
91
|
return {
|
|
92
|
-
yLabels:
|
|
92
|
+
yLabels: t,
|
|
93
93
|
xLabels: a.slice(0, A.value)
|
|
94
94
|
};
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
datasetObject:
|
|
95
|
+
}), G = c(() => (d.dataset.forEach((t, a) => {
|
|
96
|
+
Fe({
|
|
97
|
+
datasetObject: t,
|
|
98
98
|
requiredAttributes: ["values"]
|
|
99
99
|
}).forEach((o) => {
|
|
100
|
-
|
|
100
|
+
ve({
|
|
101
101
|
componentName: "VueUiHeatmap",
|
|
102
102
|
type: "datasetSerieAttribute",
|
|
103
103
|
property: "values",
|
|
104
104
|
index: a
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
|
-
}), d.dataset.map((
|
|
108
|
-
...
|
|
109
|
-
temperatures: (
|
|
107
|
+
}), d.dataset.map((t) => ({
|
|
108
|
+
...t,
|
|
109
|
+
temperatures: (t.values || []).map((a, o) => a >= z.value ? {
|
|
110
110
|
side: "up",
|
|
111
111
|
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, x.value, a),
|
|
112
|
-
ratio: Math.abs(Math.abs(a -
|
|
112
|
+
ratio: Math.abs(Math.abs(a - z.value) / Math.abs(x.value - z.value)) > 1 ? 1 : Math.abs(Math.abs(a - z.value) / Math.abs(x.value - z.value)),
|
|
113
113
|
value: a,
|
|
114
|
-
yAxisName:
|
|
115
|
-
xAxisName:
|
|
114
|
+
yAxisName: t.name,
|
|
115
|
+
xAxisName: $.value.xLabels[o],
|
|
116
116
|
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
117
117
|
} : {
|
|
118
118
|
side: "down",
|
|
119
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(
|
|
119
|
+
ratio: Math.abs(1 - Math.abs(a) / Math.abs(z.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(z.value)),
|
|
120
120
|
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, x.value, a),
|
|
121
121
|
value: a,
|
|
122
|
-
yAxisName:
|
|
123
|
-
xAxisName:
|
|
122
|
+
yAxisName: t.name,
|
|
123
|
+
xAxisName: $.value.xLabels[o],
|
|
124
124
|
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
125
125
|
})
|
|
126
|
-
})))), C = g(null),
|
|
127
|
-
function
|
|
128
|
-
M.value = { x: o, y: r }
|
|
129
|
-
const { value: v, yAxisName: h, xAxisName:
|
|
130
|
-
le.value =
|
|
131
|
-
datapoint:
|
|
126
|
+
})))), C = g(null), V = g(null);
|
|
127
|
+
function we(t, a, o, r) {
|
|
128
|
+
M.value = { x: o, y: r };
|
|
129
|
+
const { value: v, yAxisName: h, xAxisName: L, id: ke } = t;
|
|
130
|
+
le.value = ke, C.value = v, V.value = {
|
|
131
|
+
datapoint: t,
|
|
132
132
|
seriesIndex: a,
|
|
133
|
-
series:
|
|
133
|
+
series: G.value,
|
|
134
134
|
config: e.value
|
|
135
|
-
},
|
|
135
|
+
}, U.value = !0;
|
|
136
136
|
let W = "";
|
|
137
137
|
const Y = e.value.style.tooltip.customFormat;
|
|
138
138
|
Ie(Y) && Oe(() => Y({
|
|
139
|
-
datapoint:
|
|
139
|
+
datapoint: t,
|
|
140
140
|
seriesIndex: a,
|
|
141
|
-
series:
|
|
141
|
+
series: G.value,
|
|
142
142
|
config: e.value
|
|
143
|
-
})) ?
|
|
144
|
-
datapoint:
|
|
143
|
+
})) ? j.value = Y({
|
|
144
|
+
datapoint: t,
|
|
145
145
|
seriesIndex: a,
|
|
146
|
-
series:
|
|
146
|
+
series: G.value,
|
|
147
147
|
config: e.value
|
|
148
|
-
}) : (W += `<div>${h} ${
|
|
148
|
+
}) : (W += `<div>${h} ${L ? `${L}` : ""}</div>`, W += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, x.value, v)}">⬤</span><span>${isNaN(v) ? "-" : ce({ p: e.value.style.layout.dataLabels.prefix, v, s: e.value.style.layout.dataLabels.suffix, r: e.value.style.tooltip.roundingValue })}</span></div>`, j.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${W}</div>`);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const I = c(() => l.value.top + D.value * (1 - C.value / x.value)), O = c(() => l.value.left + (m.value.width - l.value.left - e.value.style.layout.padding.right) * (C.value / x.value));
|
|
151
151
|
c(() => {
|
|
152
|
-
const
|
|
152
|
+
const t = d.dataset.map((o) => ({
|
|
153
153
|
name: o.name
|
|
154
154
|
})), a = d.dataset.map((o) => o.values);
|
|
155
|
-
return { head:
|
|
155
|
+
return { head: t, body: a };
|
|
156
156
|
});
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
for (let v = 0; v <
|
|
161
|
-
const h = [
|
|
162
|
-
for (let
|
|
163
|
-
h.push([d.dataset[
|
|
157
|
+
function ie() {
|
|
158
|
+
Se(() => {
|
|
159
|
+
const t = ["", ...d.dataset.map((v, h) => v.name)], a = [];
|
|
160
|
+
for (let v = 0; v < $.value.xLabels.length; v += 1) {
|
|
161
|
+
const h = [$.value.xLabels[v]];
|
|
162
|
+
for (let L = 0; L < d.dataset.length; L += 1)
|
|
163
|
+
h.push([d.dataset[L].values[v]]);
|
|
164
164
|
a.push(h);
|
|
165
165
|
}
|
|
166
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([
|
|
166
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(a), r = Pe(o);
|
|
167
167
|
Be({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
|
|
170
|
+
const P = g(!1);
|
|
171
|
+
function _e(t) {
|
|
172
|
+
P.value = t, ae.value += 1;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function re() {
|
|
175
175
|
b.value.showTable = !b.value.showTable;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function de() {
|
|
178
178
|
b.value.showTooltip = !b.value.showTooltip;
|
|
179
179
|
}
|
|
180
|
-
return
|
|
181
|
-
generatePdf:
|
|
182
|
-
generateCsv:
|
|
183
|
-
generateImage:
|
|
184
|
-
toggleTable:
|
|
185
|
-
toggleTooltip:
|
|
186
|
-
}), (
|
|
180
|
+
return he({
|
|
181
|
+
generatePdf: ue,
|
|
182
|
+
generateCsv: ie,
|
|
183
|
+
generateImage: ne,
|
|
184
|
+
toggleTable: re,
|
|
185
|
+
toggleTooltip: de
|
|
186
|
+
}), (t, a) => (s(), n("div", {
|
|
187
187
|
ref_key: "heatmapChart",
|
|
188
|
-
ref:
|
|
189
|
-
class:
|
|
188
|
+
ref: X,
|
|
189
|
+
class: H(`vue-ui-heatmap ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
190
190
|
style: f(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor}`),
|
|
191
191
|
id: `heatmap__${N.value}`
|
|
192
192
|
}, [
|
|
@@ -207,14 +207,14 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
207
207
|
}
|
|
208
208
|
}, null, 8, ["config"])
|
|
209
209
|
], 4)) : y("", !0),
|
|
210
|
-
e.value.userOptions.show &&
|
|
210
|
+
e.value.userOptions.show && R.value ? (s(), K(Ge, {
|
|
211
211
|
ref_key: "details",
|
|
212
|
-
ref:
|
|
213
|
-
key: `user_options_${
|
|
212
|
+
ref: pe,
|
|
213
|
+
key: `user_options_${ae.value}`,
|
|
214
214
|
backgroundColor: e.value.style.backgroundColor,
|
|
215
215
|
color: e.value.style.color,
|
|
216
|
-
isImaging:
|
|
217
|
-
isPrinting:
|
|
216
|
+
isImaging: w(be),
|
|
217
|
+
isPrinting: w(fe),
|
|
218
218
|
uid: N.value,
|
|
219
219
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
220
220
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -222,72 +222,72 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
222
222
|
hasXls: e.value.userOptions.buttons.csv,
|
|
223
223
|
hasTable: e.value.userOptions.buttons.table,
|
|
224
224
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
225
|
-
isFullscreen:
|
|
225
|
+
isFullscreen: P.value,
|
|
226
226
|
isTooltip: b.value.showTooltip,
|
|
227
227
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
228
|
-
chartElement:
|
|
229
|
-
onToggleFullscreen:
|
|
230
|
-
onGeneratePdf:
|
|
231
|
-
onGenerateCsv:
|
|
232
|
-
onGenerateImage:
|
|
233
|
-
onToggleTable:
|
|
234
|
-
onToggleTooltip:
|
|
235
|
-
},
|
|
236
|
-
|
|
228
|
+
chartElement: X.value,
|
|
229
|
+
onToggleFullscreen: _e,
|
|
230
|
+
onGeneratePdf: w(ue),
|
|
231
|
+
onGenerateCsv: ie,
|
|
232
|
+
onGenerateImage: w(ne),
|
|
233
|
+
onToggleTable: re,
|
|
234
|
+
onToggleTooltip: de
|
|
235
|
+
}, Le({ _: 2 }, [
|
|
236
|
+
t.$slots.optionTooltip ? {
|
|
237
237
|
name: "optionTooltip",
|
|
238
|
-
fn:
|
|
239
|
-
|
|
238
|
+
fn: _(() => [
|
|
239
|
+
k(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
240
240
|
]),
|
|
241
241
|
key: "0"
|
|
242
242
|
} : void 0,
|
|
243
|
-
|
|
243
|
+
t.$slots.optionPdf ? {
|
|
244
244
|
name: "optionPdf",
|
|
245
|
-
fn:
|
|
246
|
-
|
|
245
|
+
fn: _(() => [
|
|
246
|
+
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
247
247
|
]),
|
|
248
248
|
key: "1"
|
|
249
249
|
} : void 0,
|
|
250
|
-
|
|
250
|
+
t.$slots.optionCsv ? {
|
|
251
251
|
name: "optionCsv",
|
|
252
|
-
fn:
|
|
253
|
-
|
|
252
|
+
fn: _(() => [
|
|
253
|
+
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
254
254
|
]),
|
|
255
255
|
key: "2"
|
|
256
256
|
} : void 0,
|
|
257
|
-
|
|
257
|
+
t.$slots.optionImg ? {
|
|
258
258
|
name: "optionImg",
|
|
259
|
-
fn:
|
|
260
|
-
|
|
259
|
+
fn: _(() => [
|
|
260
|
+
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
261
261
|
]),
|
|
262
262
|
key: "3"
|
|
263
263
|
} : void 0,
|
|
264
|
-
|
|
264
|
+
t.$slots.optionTable ? {
|
|
265
265
|
name: "optionTable",
|
|
266
|
-
fn:
|
|
267
|
-
|
|
266
|
+
fn: _(() => [
|
|
267
|
+
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
268
268
|
]),
|
|
269
269
|
key: "4"
|
|
270
270
|
} : void 0,
|
|
271
|
-
|
|
271
|
+
t.$slots.optionFullscreen ? {
|
|
272
272
|
name: "optionFullscreen",
|
|
273
|
-
fn:
|
|
274
|
-
|
|
273
|
+
fn: _(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
274
|
+
k(t.$slots, "optionFullscreen", J(Q({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
275
275
|
]),
|
|
276
276
|
key: "5"
|
|
277
277
|
} : void 0
|
|
278
278
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
279
|
-
|
|
279
|
+
R.value ? (s(), n("svg", {
|
|
280
280
|
key: 2,
|
|
281
|
-
xmlns:
|
|
282
|
-
class:
|
|
281
|
+
xmlns: w(Ve),
|
|
282
|
+
class: H({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
283
283
|
viewBox: `0 0 ${m.value.width} ${m.value.heightWithLegend}`,
|
|
284
284
|
style: f(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
285
285
|
}, [
|
|
286
|
-
(s(!0), n(T, null, S(
|
|
286
|
+
(s(!0), n(T, null, S(G.value, (o, r) => (s(), n("g", null, [
|
|
287
287
|
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
288
288
|
u("rect", {
|
|
289
|
-
x:
|
|
290
|
-
y:
|
|
289
|
+
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
290
|
+
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
291
291
|
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
292
292
|
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
293
293
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
@@ -295,8 +295,8 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
295
295
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
296
296
|
}, null, 8, qe),
|
|
297
297
|
u("rect", {
|
|
298
|
-
x:
|
|
299
|
-
y:
|
|
298
|
+
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
299
|
+
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
300
300
|
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
301
301
|
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
302
302
|
fill: v.color,
|
|
@@ -308,22 +308,22 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
308
308
|
"text-anchor": "middle",
|
|
309
309
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
310
310
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
311
|
-
fill:
|
|
312
|
-
x:
|
|
313
|
-
y:
|
|
311
|
+
fill: w(te)(v.color),
|
|
312
|
+
x: l.value.left + i.value.width * h + i.value.width / 2,
|
|
313
|
+
y: l.value.top + i.value.height * r + i.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
314
314
|
}, p(e.value.style.layout.dataLabels.prefix) + p(Number(v.value.toFixed(e.value.style.layout.cells.value.roundingValue)).toLocaleString()) + p(e.value.style.layout.dataLabels.suffix), 9, Je)) : y("", !0)
|
|
315
315
|
]))), 256)),
|
|
316
316
|
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
317
317
|
u("rect", {
|
|
318
|
-
x:
|
|
319
|
-
y:
|
|
318
|
+
x: l.value.left + i.value.width * h,
|
|
319
|
+
y: l.value.top + i.value.height * r,
|
|
320
320
|
width: i.value.width,
|
|
321
321
|
height: i.value.height,
|
|
322
322
|
fill: "transparent",
|
|
323
323
|
stroke: "none",
|
|
324
|
-
onMouseover: (
|
|
325
|
-
onMouseout: a[0] || (a[0] = (
|
|
326
|
-
|
|
324
|
+
onMouseover: (L) => we(v, r, l.value.left + i.value.width * h, l.value.top + i.value.height * r),
|
|
325
|
+
onMouseout: a[0] || (a[0] = (L) => {
|
|
326
|
+
U.value = !1, le.value = void 0, C.value = null, M.value = null;
|
|
327
327
|
})
|
|
328
328
|
}, null, 40, Qe)
|
|
329
329
|
]))), 256)),
|
|
@@ -331,24 +331,24 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
331
331
|
u("text", {
|
|
332
332
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
333
333
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
334
|
-
x:
|
|
335
|
-
y:
|
|
334
|
+
x: l.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
335
|
+
y: l.value.top + i.value.height * r + i.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
336
336
|
"text-anchor": "end",
|
|
337
337
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
338
|
-
}, p(
|
|
338
|
+
}, p($.value.yLabels[r]), 9, et)
|
|
339
339
|
])) : y("", !0)
|
|
340
340
|
]))), 256)),
|
|
341
|
-
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g",
|
|
342
|
-
(s(!0), n(T, null, S(
|
|
343
|
-
x:
|
|
344
|
-
y:
|
|
341
|
+
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g", tt, [
|
|
342
|
+
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("text", {
|
|
343
|
+
x: l.value.left + i.value.width / 2 + l.value.width / $.value.xLabels.length * r + e.value.style.layout.dataLabels.xAxis.offsetX,
|
|
344
|
+
y: l.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6,
|
|
345
345
|
"text-anchor": "middle",
|
|
346
346
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
347
347
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
348
348
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
349
|
-
}, p(o), 9,
|
|
349
|
+
}, p(o), 9, lt))), 256))
|
|
350
350
|
])) : y("", !0),
|
|
351
|
-
M.value ? (s(), n("g",
|
|
351
|
+
M.value ? (s(), n("g", at, [
|
|
352
352
|
u("rect", {
|
|
353
353
|
style: { "pointer-events": "none" },
|
|
354
354
|
x: M.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
@@ -359,9 +359,9 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
359
359
|
stroke: e.value.style.layout.cells.selected.color,
|
|
360
360
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
361
361
|
rx: 1
|
|
362
|
-
}, null, 8,
|
|
362
|
+
}, null, 8, ot)
|
|
363
363
|
])) : y("", !0),
|
|
364
|
-
e.value.style.legend.show &&
|
|
364
|
+
e.value.style.legend.show && E.value === "right" ? (s(), n("g", st, [
|
|
365
365
|
u("defs", null, [
|
|
366
366
|
u("linearGradient", {
|
|
367
367
|
id: `colorScaleVertical_${N.value}`,
|
|
@@ -371,105 +371,105 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
371
371
|
u("stop", {
|
|
372
372
|
offset: "0%",
|
|
373
373
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
374
|
-
}, null, 8,
|
|
374
|
+
}, null, 8, nt),
|
|
375
375
|
u("stop", {
|
|
376
376
|
offset: "100%",
|
|
377
377
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
378
|
-
}, null, 8,
|
|
379
|
-
], 8,
|
|
378
|
+
}, null, 8, it)
|
|
379
|
+
], 8, ut)
|
|
380
380
|
]),
|
|
381
381
|
u("text", {
|
|
382
|
-
x:
|
|
383
|
-
y:
|
|
382
|
+
x: l.value.right + 36 + 18,
|
|
383
|
+
y: l.value.top - e.value.style.legend.fontSize * 1.5,
|
|
384
384
|
"text-anchor": "middle",
|
|
385
385
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
386
386
|
fill: e.value.style.legend.color
|
|
387
|
-
}, p(Number(x.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9,
|
|
387
|
+
}, p(Number(x.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, rt),
|
|
388
388
|
u("rect", {
|
|
389
|
-
x:
|
|
390
|
-
y:
|
|
389
|
+
x: l.value.right + 36,
|
|
390
|
+
y: l.value.top,
|
|
391
391
|
width: 36,
|
|
392
|
-
height:
|
|
392
|
+
height: D.value,
|
|
393
393
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
394
394
|
fill: `url(#colorScaleVertical_${N.value})`
|
|
395
|
-
}, null, 8,
|
|
395
|
+
}, null, 8, dt),
|
|
396
396
|
u("text", {
|
|
397
|
-
x:
|
|
398
|
-
y:
|
|
397
|
+
x: l.value.right + 36 + 18,
|
|
398
|
+
y: l.value.top + D.value + e.value.style.legend.fontSize * 2.5,
|
|
399
399
|
"text-anchor": "middle",
|
|
400
400
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
401
401
|
fill: e.value.style.legend.color
|
|
402
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9,
|
|
402
|
+
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, vt),
|
|
403
403
|
C.value !== null ? (s(), n("line", {
|
|
404
404
|
key: 0,
|
|
405
|
-
stroke:
|
|
405
|
+
stroke: w(te)(V.value.datapoint.color),
|
|
406
406
|
"stroke-width": "2",
|
|
407
|
-
x1:
|
|
408
|
-
x2:
|
|
409
|
-
y1:
|
|
410
|
-
y2:
|
|
411
|
-
}, null, 8,
|
|
407
|
+
x1: l.value.right + 36,
|
|
408
|
+
x2: l.value.right + 72,
|
|
409
|
+
y1: I.value,
|
|
410
|
+
y2: I.value
|
|
411
|
+
}, null, 8, ct)) : y("", !0),
|
|
412
412
|
C.value !== null ? (s(), n("path", {
|
|
413
413
|
key: 1,
|
|
414
414
|
fill: e.value.style.color,
|
|
415
415
|
stroke: "none",
|
|
416
|
-
d: `M ${
|
|
417
|
-
}, null, 8,
|
|
416
|
+
d: `M ${l.value.right + 36},${I.value} ${l.value.right + 26},${I.value - 8} ${l.value.right + 26},${I.value + 8}z`
|
|
417
|
+
}, null, 8, yt)) : y("", !0)
|
|
418
418
|
])) : y("", !0),
|
|
419
|
-
e.value.style.legend.show &&
|
|
419
|
+
e.value.style.legend.show && E.value === "bottom" ? (s(), n("g", ht, [
|
|
420
420
|
u("defs", null, [
|
|
421
|
-
u("linearGradient",
|
|
421
|
+
u("linearGradient", gt, [
|
|
422
422
|
u("stop", {
|
|
423
423
|
offset: "0%",
|
|
424
424
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
425
|
-
}, null, 8,
|
|
425
|
+
}, null, 8, pt),
|
|
426
426
|
u("stop", {
|
|
427
427
|
offset: "100%",
|
|
428
428
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
429
|
-
}, null, 8,
|
|
429
|
+
}, null, 8, ft)
|
|
430
430
|
])
|
|
431
431
|
]),
|
|
432
432
|
u("rect", {
|
|
433
|
-
x:
|
|
434
|
-
y:
|
|
435
|
-
width: m.value.width -
|
|
433
|
+
x: l.value.left,
|
|
434
|
+
y: l.value.bottom + e.value.style.layout.cells.height,
|
|
435
|
+
width: m.value.width - l.value.left - e.value.style.layout.padding.right,
|
|
436
436
|
height: e.value.style.layout.cells.height,
|
|
437
437
|
rx: e.value.style.legend.scaleBorderRadius > e.value.style.layout.cells.height / 2 ? e.value.style.layout.cells.height / 2 : e.value.style.legend.scaleBorderRadius,
|
|
438
438
|
fill: "url(#colorScaleHorizontal)"
|
|
439
|
-
}, null, 8,
|
|
439
|
+
}, null, 8, bt),
|
|
440
440
|
u("text", {
|
|
441
|
-
x:
|
|
442
|
-
y:
|
|
441
|
+
x: l.value.left,
|
|
442
|
+
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
443
443
|
"text-anchor": "start",
|
|
444
444
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
445
445
|
fill: e.value.style.legend.color
|
|
446
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9,
|
|
446
|
+
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, mt),
|
|
447
447
|
u("text", {
|
|
448
|
-
x:
|
|
449
|
-
y:
|
|
448
|
+
x: l.value.right,
|
|
449
|
+
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
450
450
|
"text-anchor": "end",
|
|
451
451
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
452
452
|
fill: e.value.style.legend.color
|
|
453
|
-
}, p(Number(x.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9,
|
|
453
|
+
}, p(Number(x.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, xt),
|
|
454
454
|
C.value !== null ? (s(), n("line", {
|
|
455
455
|
key: 0,
|
|
456
|
-
stroke:
|
|
456
|
+
stroke: w(te)(V.value.datapoint.color),
|
|
457
457
|
"stroke-width": "2",
|
|
458
|
-
x1:
|
|
459
|
-
x2:
|
|
460
|
-
y1:
|
|
461
|
-
y2:
|
|
462
|
-
}, null, 8,
|
|
458
|
+
x1: O.value,
|
|
459
|
+
x2: O.value,
|
|
460
|
+
y1: l.value.bottom + e.value.style.layout.cells.height,
|
|
461
|
+
y2: l.value.bottom + e.value.style.layout.cells.height * 2
|
|
462
|
+
}, null, 8, wt)) : y("", !0),
|
|
463
463
|
C.value !== null ? (s(), n("path", {
|
|
464
464
|
key: 1,
|
|
465
465
|
fill: e.value.style.color,
|
|
466
466
|
stroke: "none",
|
|
467
|
-
d: `M ${
|
|
468
|
-
}, null, 8,
|
|
467
|
+
d: `M ${O.value},${l.value.bottom + e.value.style.layout.cells.height} ${O.value - 12},${l.value.bottom + e.value.style.layout.cells.height - 20} ${O.value + 12},${l.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
468
|
+
}, null, 8, _t)) : y("", !0)
|
|
469
469
|
])) : y("", !0),
|
|
470
|
-
|
|
470
|
+
k(t.$slots, "svg", { svg: m.value }, void 0, !0)
|
|
471
471
|
], 14, Ye)) : y("", !0),
|
|
472
|
-
|
|
472
|
+
R.value ? y("", !0) : (s(), K(Xe, {
|
|
473
473
|
key: 3,
|
|
474
474
|
config: {
|
|
475
475
|
type: "heatmap",
|
|
@@ -482,7 +482,7 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
482
482
|
}
|
|
483
483
|
}, null, 8, ["config"])),
|
|
484
484
|
q(He, {
|
|
485
|
-
show: b.value.showTooltip &&
|
|
485
|
+
show: b.value.showTooltip && U.value,
|
|
486
486
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
487
487
|
color: e.value.style.tooltip.color,
|
|
488
488
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -490,19 +490,19 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
490
490
|
borderWidth: e.value.style.tooltip.borderWidth,
|
|
491
491
|
fontSize: e.value.style.tooltip.fontSize,
|
|
492
492
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
493
|
-
parent:
|
|
494
|
-
content:
|
|
493
|
+
parent: X.value,
|
|
494
|
+
content: j.value,
|
|
495
495
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
496
496
|
}, {
|
|
497
|
-
"tooltip-before":
|
|
498
|
-
|
|
497
|
+
"tooltip-before": _(() => [
|
|
498
|
+
k(t.$slots, "tooltip-before", J(Q({ ...V.value })), void 0, !0)
|
|
499
499
|
]),
|
|
500
|
-
"tooltip-after":
|
|
501
|
-
|
|
500
|
+
"tooltip-after": _(() => [
|
|
501
|
+
k(t.$slots, "tooltip-after", J(Q({ ...V.value })), void 0, !0)
|
|
502
502
|
]),
|
|
503
503
|
_: 3
|
|
504
504
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "parent", "content", "isCustom"]),
|
|
505
|
-
|
|
505
|
+
R.value ? (s(), K(je, {
|
|
506
506
|
key: 4,
|
|
507
507
|
hideDetails: "",
|
|
508
508
|
config: {
|
|
@@ -518,22 +518,22 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}, {
|
|
521
|
-
content:
|
|
521
|
+
content: _(() => [
|
|
522
522
|
u("div", {
|
|
523
523
|
ref_key: "tableContainer",
|
|
524
|
-
ref:
|
|
524
|
+
ref: oe,
|
|
525
525
|
class: "vue-ui-heatmap-table"
|
|
526
526
|
}, [
|
|
527
527
|
u("div", {
|
|
528
528
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
529
|
-
class:
|
|
529
|
+
class: H({ "vue-ui-responsive": se.value })
|
|
530
530
|
}, [
|
|
531
531
|
u("div", {
|
|
532
532
|
role: "button",
|
|
533
533
|
tabindex: "0",
|
|
534
534
|
style: f(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
535
535
|
onClick: a[1] || (a[1] = (o) => b.value.showTable = !1),
|
|
536
|
-
onKeypress: a[2] || (a[2] =
|
|
536
|
+
onKeypress: a[2] || (a[2] = ze((o) => b.value.showTable = !1, ["enter"]))
|
|
537
537
|
}, [
|
|
538
538
|
q(Ue, {
|
|
539
539
|
name: "close",
|
|
@@ -541,12 +541,12 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
541
541
|
"stroke-width": 2
|
|
542
542
|
}, null, 8, ["stroke"])
|
|
543
543
|
], 36),
|
|
544
|
-
u("table",
|
|
544
|
+
u("table", kt, [
|
|
545
545
|
u("caption", {
|
|
546
546
|
style: f(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
547
547
|
}, [
|
|
548
|
-
|
|
549
|
-
e.value.style.title.subtitle.text ? (s(), n("span",
|
|
548
|
+
Te(p(e.value.style.title.text) + " ", 1),
|
|
549
|
+
e.value.style.title.subtitle.text ? (s(), n("span", $t, p(e.value.style.title.subtitle.text), 1)) : y("", !0)
|
|
550
550
|
], 4),
|
|
551
551
|
u("thead", null, [
|
|
552
552
|
u("tr", {
|
|
@@ -556,16 +556,16 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
556
556
|
u("th", {
|
|
557
557
|
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
558
558
|
}, null, 4),
|
|
559
|
-
(s(!0), n(T, null, S(
|
|
559
|
+
(s(!0), n(T, null, S(B.dataset, (o, r) => (s(), n("th", {
|
|
560
560
|
align: "right",
|
|
561
561
|
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
562
562
|
}, p(o.name), 5))), 256))
|
|
563
563
|
], 4)
|
|
564
564
|
]),
|
|
565
565
|
u("tbody", null, [
|
|
566
|
-
(s(!0), n(T, null, S(
|
|
566
|
+
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("tr", {
|
|
567
567
|
role: "row",
|
|
568
|
-
class:
|
|
568
|
+
class: H({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": r % 2 === 0, "vue-ui-data-table__tbody__row-odd": r % 2 !== 0 }),
|
|
569
569
|
style: f(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
570
570
|
}, [
|
|
571
571
|
u("td", {
|
|
@@ -573,15 +573,15 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
573
573
|
class: "vue-ui-data-table__tbody__td",
|
|
574
574
|
style: f(`outline:${e.value.table.td.outline}`)
|
|
575
575
|
}, [
|
|
576
|
-
u("div",
|
|
577
|
-
], 12,
|
|
578
|
-
(s(!0), n(T, null, S(
|
|
576
|
+
u("div", Lt, p(o), 1)
|
|
577
|
+
], 12, Ct),
|
|
578
|
+
(s(!0), n(T, null, S(B.dataset, (v, h) => (s(), n("td", {
|
|
579
579
|
class: "vue-ui-data-table__tbody__td",
|
|
580
|
-
"data-cell":
|
|
580
|
+
"data-cell": B.dataset[h].name,
|
|
581
581
|
style: f(`outline:${e.value.table.td.outline}`)
|
|
582
582
|
}, [
|
|
583
|
-
u("div",
|
|
584
|
-
], 12,
|
|
583
|
+
u("div", Tt, p(isNaN(v.values[r]) ? "-" : w(ce)({ p: e.value.style.layout.dataLabels.prefix, v: v.values[r], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
584
|
+
], 12, zt))), 256))
|
|
585
585
|
], 6))), 256))
|
|
586
586
|
])
|
|
587
587
|
])
|
|
@@ -592,7 +592,7 @@ const We = ["id"], Ye = ["xmlns", "viewBox"], qe = ["x", "y", "width", "height",
|
|
|
592
592
|
}, 8, ["config"])) : y("", !0)
|
|
593
593
|
], 14, We));
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, Et = /* @__PURE__ */ De(St, [["__scopeId", "data-v-222fd4c1"]]);
|
|
596
596
|
export {
|
|
597
|
-
|
|
597
|
+
Et as default
|
|
598
598
|
};
|