vue-data-ui 2.3.27 → 2.3.29
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/README.md +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,606 +0,0 @@
|
|
|
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 J, createCommentVNode as y, createBlock as Q, unref as b, createSlots as Le, withCtx as k, renderSlot as m, normalizeProps as X, guardReactiveProps as U, 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 ye, c as Z, t as Me, g as Fe, H as ee, X as Ve, C as te, f as he, v as Ie, w as Oe, n as Pe, q as Be } from "./index-DiWO-_ca.js";
|
|
3
|
-
import { _ as Re } from "./Title-C3Ez1ceq.js";
|
|
4
|
-
import { u as Ee, U as Ge } from "./usePrinter-BD40aUzH.js";
|
|
5
|
-
import { _ as He } from "./Tooltip-7SRMoiu-.js";
|
|
6
|
-
import Xe from "./vue-ui-skeleton-CeNL0kH-.js";
|
|
7
|
-
import Ue from "./BaseIcon-D8FXGup9.js";
|
|
8
|
-
import Ye from "./vue-ui-accordion-CiNdgRO9.js";
|
|
9
|
-
import { u as ge } from "./useNestedProp-DNX5EefQ.js";
|
|
10
|
-
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const De = ["id"], We = ["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
|
-
id: "colorScaleHorizontal",
|
|
13
|
-
x1: "0%",
|
|
14
|
-
x2: "100%",
|
|
15
|
-
y1: "0%",
|
|
16
|
-
y2: "0%"
|
|
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 = {
|
|
18
|
-
key: 3,
|
|
19
|
-
class: "vue-data-ui-watermark"
|
|
20
|
-
}, $t = { class: "vue-ui-data-table" }, Ct = { key: 0 }, Lt = ["data-cell"], zt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tt = ["data-cell"], St = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, At = {
|
|
21
|
-
__name: "vue-ui-heatmap",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default() {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setup(B, { expose: pe }) {
|
|
37
|
-
const d = B;
|
|
38
|
-
$e((t) => ({
|
|
39
|
-
"72583db0": t.tdo
|
|
40
|
-
}));
|
|
41
|
-
const { vue_ui_heatmap: fe } = Ae(), R = c(() => !!d.dataset && d.dataset.length);
|
|
42
|
-
Ne(d.dataset) && ye({
|
|
43
|
-
componentName: "VueUiHeatmap",
|
|
44
|
-
type: "dataset"
|
|
45
|
-
});
|
|
46
|
-
const N = g(Z()), Y = g(null), be = g(null), j = g(!1), D = g(""), le = g(void 0), M = g(null), ae = g(0), oe = g(null), se = g(!1), e = c(() => {
|
|
47
|
-
const t = ge({
|
|
48
|
-
userConfig: d.config,
|
|
49
|
-
defaultConfig: fe
|
|
50
|
-
});
|
|
51
|
-
return t.theme ? {
|
|
52
|
-
...ge({
|
|
53
|
-
userConfig: Me.vue_ui_heatmap[t.theme] || d.config,
|
|
54
|
-
defaultConfig: t
|
|
55
|
-
})
|
|
56
|
-
} : t;
|
|
57
|
-
}), { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: re } = Ee({
|
|
58
|
-
elementId: `heatmap__${N.value}`,
|
|
59
|
-
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
60
|
-
}), x = g({
|
|
61
|
-
showTable: e.value.table.show,
|
|
62
|
-
showTooltip: e.value.style.tooltip.show
|
|
63
|
-
}), me = c(() => e.value.table.responsiveBreakpoint);
|
|
64
|
-
function xe() {
|
|
65
|
-
new ResizeObserver((a) => {
|
|
66
|
-
a.forEach((o) => {
|
|
67
|
-
se.value = o.contentRect.width < me.value;
|
|
68
|
-
});
|
|
69
|
-
}).observe(oe.value);
|
|
70
|
-
}
|
|
71
|
-
Ce(xe);
|
|
72
|
-
const A = c(() => Math.max(...d.dataset.flatMap((t) => (t.values || []).length))), w = c(() => {
|
|
73
|
-
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);
|
|
74
|
-
return {
|
|
75
|
-
height: t,
|
|
76
|
-
heightWithLegend: o,
|
|
77
|
-
width: a
|
|
78
|
-
};
|
|
79
|
-
}), E = c(() => e.value.style.legend.position), l = c(() => ({
|
|
80
|
-
top: e.value.style.layout.padding.top,
|
|
81
|
-
left: e.value.style.layout.padding.left,
|
|
82
|
-
right: w.value.width - e.value.style.layout.padding.right - (E.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
83
|
-
bottom: w.value.height - e.value.style.layout.padding.bottom,
|
|
84
|
-
height: w.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
85
|
-
width: w.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (E.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
86
|
-
})), W = c(() => i.value.height * d.dataset.length), _ = c(() => Math.max(...d.dataset.flatMap((t) => t.values))), F = c(() => Math.min(...d.dataset.flatMap((t) => t.values))), z = c(() => {
|
|
87
|
-
const t = d.dataset.flatMap((o) => o.values);
|
|
88
|
-
return t.reduce((o, r) => o + r, 0) / t.length;
|
|
89
|
-
}), i = c(() => ({
|
|
90
|
-
width: l.value.width / A.value,
|
|
91
|
-
height: l.value.width / (A.value < d.dataset.length ? d.dataset.length : A.value)
|
|
92
|
-
})), $ = c(() => {
|
|
93
|
-
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;
|
|
94
|
-
return {
|
|
95
|
-
yLabels: t,
|
|
96
|
-
xLabels: a.slice(0, A.value)
|
|
97
|
-
};
|
|
98
|
-
}), G = c(() => (d.dataset.forEach((t, a) => {
|
|
99
|
-
Fe({
|
|
100
|
-
datasetObject: t,
|
|
101
|
-
requiredAttributes: ["values"]
|
|
102
|
-
}).forEach((o) => {
|
|
103
|
-
ye({
|
|
104
|
-
componentName: "VueUiHeatmap",
|
|
105
|
-
type: "datasetSerieAttribute",
|
|
106
|
-
property: "values",
|
|
107
|
-
index: a
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}), d.dataset.map((t) => ({
|
|
111
|
-
...t,
|
|
112
|
-
temperatures: (t.values || []).map((a, o) => a >= z.value ? {
|
|
113
|
-
side: "up",
|
|
114
|
-
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, _.value, a),
|
|
115
|
-
ratio: Math.abs(Math.abs(a - z.value) / Math.abs(_.value - z.value)) > 1 ? 1 : Math.abs(Math.abs(a - z.value) / Math.abs(_.value - z.value)),
|
|
116
|
-
value: a,
|
|
117
|
-
yAxisName: t.name,
|
|
118
|
-
xAxisName: $.value.xLabels[o],
|
|
119
|
-
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
120
|
-
} : {
|
|
121
|
-
side: "down",
|
|
122
|
-
ratio: Math.abs(1 - Math.abs(a) / Math.abs(z.value)) > 1 ? 1 : Math.abs(1 - Math.abs(a) / Math.abs(z.value)),
|
|
123
|
-
color: ee(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, F.value, _.value, a),
|
|
124
|
-
value: a,
|
|
125
|
-
yAxisName: t.name,
|
|
126
|
-
xAxisName: $.value.xLabels[o],
|
|
127
|
-
id: `vue-data-ui-heatmap-cell-${Z()}`
|
|
128
|
-
})
|
|
129
|
-
})))), C = g(null), V = g(null);
|
|
130
|
-
function we(t, a, o, r) {
|
|
131
|
-
M.value = { x: o, y: r };
|
|
132
|
-
const { value: v, yAxisName: h, xAxisName: L, id: ke } = t;
|
|
133
|
-
le.value = ke, C.value = v, V.value = {
|
|
134
|
-
datapoint: t,
|
|
135
|
-
seriesIndex: a,
|
|
136
|
-
series: G.value,
|
|
137
|
-
config: e.value
|
|
138
|
-
}, j.value = !0;
|
|
139
|
-
let q = "";
|
|
140
|
-
const K = e.value.style.tooltip.customFormat;
|
|
141
|
-
Ie(K) && Oe(() => K({
|
|
142
|
-
datapoint: t,
|
|
143
|
-
seriesIndex: a,
|
|
144
|
-
series: G.value,
|
|
145
|
-
config: e.value
|
|
146
|
-
})) ? D.value = K({
|
|
147
|
-
datapoint: t,
|
|
148
|
-
seriesIndex: a,
|
|
149
|
-
series: G.value,
|
|
150
|
-
config: e.value
|
|
151
|
-
}) : (q += `<div>${h} ${L ? `${L}` : ""}</div>`, q += `<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, _.value, v)}">⬤</span><span>${isNaN(v) ? "-" : he({ p: e.value.style.layout.dataLabels.prefix, v, s: e.value.style.layout.dataLabels.suffix, r: e.value.style.tooltip.roundingValue })}</span></div>`, D.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${q}</div>`);
|
|
152
|
-
}
|
|
153
|
-
const I = c(() => l.value.top + W.value * (1 - C.value / _.value)), O = c(() => l.value.left + (w.value.width - l.value.left - e.value.style.layout.padding.right) * (C.value / _.value));
|
|
154
|
-
c(() => {
|
|
155
|
-
const t = d.dataset.map((o) => ({
|
|
156
|
-
name: o.name
|
|
157
|
-
})), a = d.dataset.map((o) => o.values);
|
|
158
|
-
return { head: t, body: a };
|
|
159
|
-
});
|
|
160
|
-
function de() {
|
|
161
|
-
Se(() => {
|
|
162
|
-
const t = ["", ...d.dataset.map((v, h) => v.name)], a = [];
|
|
163
|
-
for (let v = 0; v < $.value.xLabels.length; v += 1) {
|
|
164
|
-
const h = [$.value.xLabels[v]];
|
|
165
|
-
for (let L = 0; L < d.dataset.length; L += 1)
|
|
166
|
-
h.push([d.dataset[L].values[v]]);
|
|
167
|
-
a.push(h);
|
|
168
|
-
}
|
|
169
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(a), r = Pe(o);
|
|
170
|
-
Be({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
const P = g(!1);
|
|
174
|
-
function _e(t) {
|
|
175
|
-
P.value = t, ae.value += 1;
|
|
176
|
-
}
|
|
177
|
-
function ve() {
|
|
178
|
-
x.value.showTable = !x.value.showTable;
|
|
179
|
-
}
|
|
180
|
-
function ce() {
|
|
181
|
-
x.value.showTooltip = !x.value.showTooltip;
|
|
182
|
-
}
|
|
183
|
-
return pe({
|
|
184
|
-
generatePdf: ie,
|
|
185
|
-
generateCsv: de,
|
|
186
|
-
generateImage: re,
|
|
187
|
-
toggleTable: ve,
|
|
188
|
-
toggleTooltip: ce
|
|
189
|
-
}), (t, a) => (s(), n("div", {
|
|
190
|
-
ref_key: "heatmapChart",
|
|
191
|
-
ref: Y,
|
|
192
|
-
class: H(`vue-ui-heatmap ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
193
|
-
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}`),
|
|
194
|
-
id: `heatmap__${N.value}`
|
|
195
|
-
}, [
|
|
196
|
-
e.value.style.title.text ? (s(), n("div", {
|
|
197
|
-
key: 0,
|
|
198
|
-
style: f(`width:100%;background:${e.value.style.backgroundColor}`)
|
|
199
|
-
}, [
|
|
200
|
-
J(Re, {
|
|
201
|
-
config: {
|
|
202
|
-
title: {
|
|
203
|
-
cy: "heatmap-div-title",
|
|
204
|
-
...e.value.style.title
|
|
205
|
-
},
|
|
206
|
-
subtitle: {
|
|
207
|
-
cy: "heatmap-div-subtitle",
|
|
208
|
-
...e.value.style.title.subtitle
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}, null, 8, ["config"])
|
|
212
|
-
], 4)) : y("", !0),
|
|
213
|
-
e.value.userOptions.show && R.value ? (s(), Q(Ge, {
|
|
214
|
-
ref_key: "details",
|
|
215
|
-
ref: be,
|
|
216
|
-
key: `user_options_${ae.value}`,
|
|
217
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
218
|
-
color: e.value.style.color,
|
|
219
|
-
isImaging: b(ne),
|
|
220
|
-
isPrinting: b(ue),
|
|
221
|
-
uid: N.value,
|
|
222
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
223
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
224
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
225
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
226
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
227
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
228
|
-
isFullscreen: P.value,
|
|
229
|
-
isTooltip: x.value.showTooltip,
|
|
230
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
231
|
-
chartElement: Y.value,
|
|
232
|
-
onToggleFullscreen: _e,
|
|
233
|
-
onGeneratePdf: b(ie),
|
|
234
|
-
onGenerateCsv: de,
|
|
235
|
-
onGenerateImage: b(re),
|
|
236
|
-
onToggleTable: ve,
|
|
237
|
-
onToggleTooltip: ce
|
|
238
|
-
}, Le({ _: 2 }, [
|
|
239
|
-
t.$slots.optionTooltip ? {
|
|
240
|
-
name: "optionTooltip",
|
|
241
|
-
fn: k(() => [
|
|
242
|
-
m(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
243
|
-
]),
|
|
244
|
-
key: "0"
|
|
245
|
-
} : void 0,
|
|
246
|
-
t.$slots.optionPdf ? {
|
|
247
|
-
name: "optionPdf",
|
|
248
|
-
fn: k(() => [
|
|
249
|
-
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
250
|
-
]),
|
|
251
|
-
key: "1"
|
|
252
|
-
} : void 0,
|
|
253
|
-
t.$slots.optionCsv ? {
|
|
254
|
-
name: "optionCsv",
|
|
255
|
-
fn: k(() => [
|
|
256
|
-
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
257
|
-
]),
|
|
258
|
-
key: "2"
|
|
259
|
-
} : void 0,
|
|
260
|
-
t.$slots.optionImg ? {
|
|
261
|
-
name: "optionImg",
|
|
262
|
-
fn: k(() => [
|
|
263
|
-
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
264
|
-
]),
|
|
265
|
-
key: "3"
|
|
266
|
-
} : void 0,
|
|
267
|
-
t.$slots.optionTable ? {
|
|
268
|
-
name: "optionTable",
|
|
269
|
-
fn: k(() => [
|
|
270
|
-
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
271
|
-
]),
|
|
272
|
-
key: "4"
|
|
273
|
-
} : void 0,
|
|
274
|
-
t.$slots.optionFullscreen ? {
|
|
275
|
-
name: "optionFullscreen",
|
|
276
|
-
fn: k(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
277
|
-
m(t.$slots, "optionFullscreen", X(U({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
278
|
-
]),
|
|
279
|
-
key: "5"
|
|
280
|
-
} : void 0
|
|
281
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
282
|
-
R.value ? (s(), n("svg", {
|
|
283
|
-
key: 2,
|
|
284
|
-
xmlns: b(Ve),
|
|
285
|
-
class: H({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
286
|
-
viewBox: `0 0 ${w.value.width} ${w.value.heightWithLegend}`,
|
|
287
|
-
style: f(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
288
|
-
}, [
|
|
289
|
-
(s(!0), n(T, null, S(G.value, (o, r) => (s(), n("g", null, [
|
|
290
|
-
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
291
|
-
u("rect", {
|
|
292
|
-
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
293
|
-
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
294
|
-
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
295
|
-
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
296
|
-
fill: e.value.style.layout.cells.colors.underlayer,
|
|
297
|
-
stroke: e.value.style.backgroundColor,
|
|
298
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
299
|
-
}, null, 8, qe),
|
|
300
|
-
u("rect", {
|
|
301
|
-
x: l.value.left + i.value.width * h + e.value.style.layout.cells.spacing / 2,
|
|
302
|
-
y: l.value.top + i.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
303
|
-
width: i.value.width - e.value.style.layout.cells.spacing,
|
|
304
|
-
height: i.value.height - e.value.style.layout.cells.spacing,
|
|
305
|
-
fill: v.color,
|
|
306
|
-
stroke: e.value.style.backgroundColor,
|
|
307
|
-
"stroke-width": e.value.style.layout.cells.spacing
|
|
308
|
-
}, null, 8, Ke),
|
|
309
|
-
e.value.style.layout.cells.value.show ? (s(), n("text", {
|
|
310
|
-
key: 0,
|
|
311
|
-
"text-anchor": "middle",
|
|
312
|
-
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
313
|
-
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
314
|
-
fill: b(te)(v.color),
|
|
315
|
-
x: l.value.left + i.value.width * h + i.value.width / 2,
|
|
316
|
-
y: l.value.top + i.value.height * r + i.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
317
|
-
}, 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)
|
|
318
|
-
]))), 256)),
|
|
319
|
-
(s(!0), n(T, null, S(o.temperatures, (v, h) => (s(), n("g", null, [
|
|
320
|
-
u("rect", {
|
|
321
|
-
x: l.value.left + i.value.width * h,
|
|
322
|
-
y: l.value.top + i.value.height * r,
|
|
323
|
-
width: i.value.width,
|
|
324
|
-
height: i.value.height,
|
|
325
|
-
fill: "transparent",
|
|
326
|
-
stroke: "none",
|
|
327
|
-
onMouseover: (L) => we(v, r, l.value.left + i.value.width * h, l.value.top + i.value.height * r),
|
|
328
|
-
onMouseout: a[0] || (a[0] = (L) => {
|
|
329
|
-
j.value = !1, le.value = void 0, C.value = null, M.value = null;
|
|
330
|
-
})
|
|
331
|
-
}, null, 40, Qe)
|
|
332
|
-
]))), 256)),
|
|
333
|
-
e.value.style.layout.dataLabels.yAxis.show ? (s(), n("g", Ze, [
|
|
334
|
-
u("text", {
|
|
335
|
-
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
336
|
-
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
337
|
-
x: l.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
338
|
-
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,
|
|
339
|
-
"text-anchor": "end",
|
|
340
|
-
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
341
|
-
}, p($.value.yLabels[r]), 9, et)
|
|
342
|
-
])) : y("", !0)
|
|
343
|
-
]))), 256)),
|
|
344
|
-
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g", tt, [
|
|
345
|
-
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("text", {
|
|
346
|
-
x: l.value.left + i.value.width / 2 + l.value.width / $.value.xLabels.length * r + e.value.style.layout.dataLabels.xAxis.offsetX,
|
|
347
|
-
y: l.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6,
|
|
348
|
-
"text-anchor": "middle",
|
|
349
|
-
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
350
|
-
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
351
|
-
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
352
|
-
}, p(o), 9, lt))), 256))
|
|
353
|
-
])) : y("", !0),
|
|
354
|
-
M.value ? (s(), n("g", at, [
|
|
355
|
-
u("rect", {
|
|
356
|
-
style: { "pointer-events": "none" },
|
|
357
|
-
x: M.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
358
|
-
y: M.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
359
|
-
width: i.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
360
|
-
height: i.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
361
|
-
fill: "transparent",
|
|
362
|
-
stroke: e.value.style.layout.cells.selected.color,
|
|
363
|
-
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
364
|
-
rx: 1
|
|
365
|
-
}, null, 8, ot)
|
|
366
|
-
])) : y("", !0),
|
|
367
|
-
e.value.style.legend.show && E.value === "right" ? (s(), n("g", st, [
|
|
368
|
-
u("defs", null, [
|
|
369
|
-
u("linearGradient", {
|
|
370
|
-
id: `colorScaleVertical_${N.value}`,
|
|
371
|
-
x2: "0%",
|
|
372
|
-
y2: "100%"
|
|
373
|
-
}, [
|
|
374
|
-
u("stop", {
|
|
375
|
-
offset: "0%",
|
|
376
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
377
|
-
}, null, 8, nt),
|
|
378
|
-
u("stop", {
|
|
379
|
-
offset: "100%",
|
|
380
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
381
|
-
}, null, 8, it)
|
|
382
|
-
], 8, ut)
|
|
383
|
-
]),
|
|
384
|
-
u("text", {
|
|
385
|
-
x: l.value.right + 36 + 18,
|
|
386
|
-
y: l.value.top - e.value.style.legend.fontSize * 1.5,
|
|
387
|
-
"text-anchor": "middle",
|
|
388
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
389
|
-
fill: e.value.style.legend.color
|
|
390
|
-
}, p(Number(_.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, rt),
|
|
391
|
-
u("rect", {
|
|
392
|
-
x: l.value.right + 36,
|
|
393
|
-
y: l.value.top,
|
|
394
|
-
width: 36,
|
|
395
|
-
height: W.value,
|
|
396
|
-
rx: e.value.style.legend.scaleBorderRadius,
|
|
397
|
-
fill: `url(#colorScaleVertical_${N.value})`
|
|
398
|
-
}, null, 8, dt),
|
|
399
|
-
u("text", {
|
|
400
|
-
x: l.value.right + 36 + 18,
|
|
401
|
-
y: l.value.top + W.value + e.value.style.legend.fontSize * 2.5,
|
|
402
|
-
"text-anchor": "middle",
|
|
403
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
404
|
-
fill: e.value.style.legend.color
|
|
405
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, vt),
|
|
406
|
-
C.value !== null ? (s(), n("line", {
|
|
407
|
-
key: 0,
|
|
408
|
-
stroke: b(te)(V.value.datapoint.color),
|
|
409
|
-
"stroke-width": "2",
|
|
410
|
-
x1: l.value.right + 36,
|
|
411
|
-
x2: l.value.right + 72,
|
|
412
|
-
y1: I.value,
|
|
413
|
-
y2: I.value
|
|
414
|
-
}, null, 8, ct)) : y("", !0),
|
|
415
|
-
C.value !== null ? (s(), n("path", {
|
|
416
|
-
key: 1,
|
|
417
|
-
fill: e.value.style.color,
|
|
418
|
-
stroke: "none",
|
|
419
|
-
d: `M ${l.value.right + 36},${I.value} ${l.value.right + 26},${I.value - 8} ${l.value.right + 26},${I.value + 8}z`
|
|
420
|
-
}, null, 8, yt)) : y("", !0)
|
|
421
|
-
])) : y("", !0),
|
|
422
|
-
e.value.style.legend.show && E.value === "bottom" ? (s(), n("g", ht, [
|
|
423
|
-
u("defs", null, [
|
|
424
|
-
u("linearGradient", gt, [
|
|
425
|
-
u("stop", {
|
|
426
|
-
offset: "0%",
|
|
427
|
-
"stop-color": e.value.style.layout.cells.colors.cold
|
|
428
|
-
}, null, 8, pt),
|
|
429
|
-
u("stop", {
|
|
430
|
-
offset: "100%",
|
|
431
|
-
"stop-color": e.value.style.layout.cells.colors.hot
|
|
432
|
-
}, null, 8, ft)
|
|
433
|
-
])
|
|
434
|
-
]),
|
|
435
|
-
u("rect", {
|
|
436
|
-
x: l.value.left,
|
|
437
|
-
y: l.value.bottom + e.value.style.layout.cells.height,
|
|
438
|
-
width: w.value.width - l.value.left - e.value.style.layout.padding.right,
|
|
439
|
-
height: e.value.style.layout.cells.height,
|
|
440
|
-
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,
|
|
441
|
-
fill: "url(#colorScaleHorizontal)"
|
|
442
|
-
}, null, 8, bt),
|
|
443
|
-
u("text", {
|
|
444
|
-
x: l.value.left,
|
|
445
|
-
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
446
|
-
"text-anchor": "start",
|
|
447
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
448
|
-
fill: e.value.style.legend.color
|
|
449
|
-
}, p(Number(F.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, mt),
|
|
450
|
-
u("text", {
|
|
451
|
-
x: l.value.right,
|
|
452
|
-
y: l.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
453
|
-
"text-anchor": "end",
|
|
454
|
-
"font-size": e.value.style.legend.fontSize * 2,
|
|
455
|
-
fill: e.value.style.legend.color
|
|
456
|
-
}, p(Number(_.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, xt),
|
|
457
|
-
C.value !== null ? (s(), n("line", {
|
|
458
|
-
key: 0,
|
|
459
|
-
stroke: b(te)(V.value.datapoint.color),
|
|
460
|
-
"stroke-width": "2",
|
|
461
|
-
x1: O.value,
|
|
462
|
-
x2: O.value,
|
|
463
|
-
y1: l.value.bottom + e.value.style.layout.cells.height,
|
|
464
|
-
y2: l.value.bottom + e.value.style.layout.cells.height * 2
|
|
465
|
-
}, null, 8, wt)) : y("", !0),
|
|
466
|
-
C.value !== null ? (s(), n("path", {
|
|
467
|
-
key: 1,
|
|
468
|
-
fill: e.value.style.color,
|
|
469
|
-
stroke: "none",
|
|
470
|
-
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`
|
|
471
|
-
}, null, 8, _t)) : y("", !0)
|
|
472
|
-
])) : y("", !0),
|
|
473
|
-
m(t.$slots, "svg", { svg: w.value }, void 0, !0)
|
|
474
|
-
], 14, We)) : y("", !0),
|
|
475
|
-
t.$slots.watermark ? (s(), n("div", kt, [
|
|
476
|
-
m(t.$slots, "watermark", X(U({ isPrinting: b(ue) || b(ne) })), void 0, !0)
|
|
477
|
-
])) : y("", !0),
|
|
478
|
-
R.value ? y("", !0) : (s(), Q(Xe, {
|
|
479
|
-
key: 4,
|
|
480
|
-
config: {
|
|
481
|
-
type: "heatmap",
|
|
482
|
-
style: {
|
|
483
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
484
|
-
heatmap: {
|
|
485
|
-
color: "#CCCCCC"
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}, null, 8, ["config"])),
|
|
490
|
-
J(He, {
|
|
491
|
-
show: x.value.showTooltip && j.value,
|
|
492
|
-
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
493
|
-
color: e.value.style.tooltip.color,
|
|
494
|
-
borderRadius: e.value.style.tooltip.borderRadius,
|
|
495
|
-
borderColor: e.value.style.tooltip.borderColor,
|
|
496
|
-
borderWidth: e.value.style.tooltip.borderWidth,
|
|
497
|
-
fontSize: e.value.style.tooltip.fontSize,
|
|
498
|
-
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
499
|
-
position: e.value.style.tooltip.position,
|
|
500
|
-
offsetY: e.value.style.tooltip.offsetY,
|
|
501
|
-
parent: Y.value,
|
|
502
|
-
content: D.value,
|
|
503
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
504
|
-
}, {
|
|
505
|
-
"tooltip-before": k(() => [
|
|
506
|
-
m(t.$slots, "tooltip-before", X(U({ ...V.value })), void 0, !0)
|
|
507
|
-
]),
|
|
508
|
-
"tooltip-after": k(() => [
|
|
509
|
-
m(t.$slots, "tooltip-after", X(U({ ...V.value })), void 0, !0)
|
|
510
|
-
]),
|
|
511
|
-
_: 3
|
|
512
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
513
|
-
R.value ? (s(), Q(Ye, {
|
|
514
|
-
key: 5,
|
|
515
|
-
hideDetails: "",
|
|
516
|
-
config: {
|
|
517
|
-
open: x.value.showTable,
|
|
518
|
-
maxHeight: 1e4,
|
|
519
|
-
body: {
|
|
520
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
521
|
-
color: e.value.style.color
|
|
522
|
-
},
|
|
523
|
-
head: {
|
|
524
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
525
|
-
color: e.value.style.color
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}, {
|
|
529
|
-
content: k(() => [
|
|
530
|
-
u("div", {
|
|
531
|
-
ref_key: "tableContainer",
|
|
532
|
-
ref: oe,
|
|
533
|
-
class: "vue-ui-heatmap-table"
|
|
534
|
-
}, [
|
|
535
|
-
u("div", {
|
|
536
|
-
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
537
|
-
class: H({ "vue-ui-responsive": se.value })
|
|
538
|
-
}, [
|
|
539
|
-
u("div", {
|
|
540
|
-
role: "button",
|
|
541
|
-
tabindex: "0",
|
|
542
|
-
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};`),
|
|
543
|
-
onClick: a[1] || (a[1] = (o) => x.value.showTable = !1),
|
|
544
|
-
onKeypress: a[2] || (a[2] = ze((o) => x.value.showTable = !1, ["enter"]))
|
|
545
|
-
}, [
|
|
546
|
-
J(Ue, {
|
|
547
|
-
name: "close",
|
|
548
|
-
stroke: e.value.table.th.color,
|
|
549
|
-
"stroke-width": 2
|
|
550
|
-
}, null, 8, ["stroke"])
|
|
551
|
-
], 36),
|
|
552
|
-
u("table", $t, [
|
|
553
|
-
u("caption", {
|
|
554
|
-
style: f(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
555
|
-
}, [
|
|
556
|
-
Te(p(e.value.style.title.text) + " ", 1),
|
|
557
|
-
e.value.style.title.subtitle.text ? (s(), n("span", Ct, p(e.value.style.title.subtitle.text), 1)) : y("", !0)
|
|
558
|
-
], 4),
|
|
559
|
-
u("thead", null, [
|
|
560
|
-
u("tr", {
|
|
561
|
-
role: "row",
|
|
562
|
-
style: f(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
563
|
-
}, [
|
|
564
|
-
u("th", {
|
|
565
|
-
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
566
|
-
}, null, 4),
|
|
567
|
-
(s(!0), n(T, null, S(B.dataset, (o, r) => (s(), n("th", {
|
|
568
|
-
align: "right",
|
|
569
|
-
style: f(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
570
|
-
}, p(o.name), 5))), 256))
|
|
571
|
-
], 4)
|
|
572
|
-
]),
|
|
573
|
-
u("tbody", null, [
|
|
574
|
-
(s(!0), n(T, null, S($.value.xLabels, (o, r) => (s(), n("tr", {
|
|
575
|
-
role: "row",
|
|
576
|
-
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 }),
|
|
577
|
-
style: f(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
578
|
-
}, [
|
|
579
|
-
u("td", {
|
|
580
|
-
"data-cell": e.value.table.colNames.xAxis,
|
|
581
|
-
class: "vue-ui-data-table__tbody__td",
|
|
582
|
-
style: f(`outline:${e.value.table.td.outline}`)
|
|
583
|
-
}, [
|
|
584
|
-
u("div", zt, p(o), 1)
|
|
585
|
-
], 12, Lt),
|
|
586
|
-
(s(!0), n(T, null, S(B.dataset, (v, h) => (s(), n("td", {
|
|
587
|
-
class: "vue-ui-data-table__tbody__td",
|
|
588
|
-
"data-cell": B.dataset[h].name,
|
|
589
|
-
style: f(`outline:${e.value.table.td.outline}`)
|
|
590
|
-
}, [
|
|
591
|
-
u("div", St, p(isNaN(v.values[r]) ? "-" : b(he)({ 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)
|
|
592
|
-
], 12, Tt))), 256))
|
|
593
|
-
], 6))), 256))
|
|
594
|
-
])
|
|
595
|
-
])
|
|
596
|
-
], 2)
|
|
597
|
-
], 512)
|
|
598
|
-
]),
|
|
599
|
-
_: 1
|
|
600
|
-
}, 8, ["config"])) : y("", !0)
|
|
601
|
-
], 14, De));
|
|
602
|
-
}
|
|
603
|
-
}, Gt = /* @__PURE__ */ je(At, [["__scopeId", "data-v-ffec89ce"]]);
|
|
604
|
-
export {
|
|
605
|
-
Gt as default
|
|
606
|
-
};
|