vue-data-ui 2.3.57 → 2.3.59
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-ycy3_Slf.js → Arrow-BJ47KXjY.js} +1 -1
- package/dist/{Arrow-DzUipdZc.cjs → Arrow-VxZlHkwt.cjs} +1 -1
- package/dist/{BaseIcon-BkQhR5to.cjs → BaseIcon-Bv5uh10R.cjs} +1 -1
- package/dist/{BaseIcon-DuWxvGrs.js → BaseIcon-Fm7sUbd2.js} +1 -1
- package/dist/{DataTable-Cp8-9z9I.js → DataTable-1VV0us-8.js} +2 -2
- package/dist/{DataTable-BRux41DB.cjs → DataTable-CPAt686N.cjs} +1 -1
- package/dist/{Legend-Bkl0mNRU.cjs → Legend-BJ2Mynop.cjs} +1 -1
- package/dist/{Legend-Dxg4fgms.js → Legend-DB6v_LvZ.js} +1 -1
- package/dist/{Shape-9atoPZLR.js → Shape-B_f1_6Ob.js} +1 -1
- package/dist/{Shape-BqcaWTo1.cjs → Shape-DWZSJJ6-.cjs} +1 -1
- package/dist/{Slicer-DWXMDMkg.js → Slicer-CHiUxRAh.js} +55 -52
- package/dist/Slicer-PPS43jOo.cjs +1 -0
- package/dist/{Title-JorKJ3kW.cjs → Title-CR-JDJwq.cjs} +1 -1
- package/dist/{Title-Bft_Qodf.js → Title-xP0rAF4q.js} +1 -1
- package/dist/{Tooltip-DuhcODsb.cjs → Tooltip-B4DNihSF.cjs} +1 -1
- package/dist/{Tooltip-DsJ_DDEa.js → Tooltip-DfBa_7Ur.js} +1 -1
- package/dist/index-CDK3omwG.cjs +4 -0
- package/dist/{index-ByARe6xk.js → index-CpHoINpJ.js} +21 -19
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-DcnyJpjm.js → useNestedProp-BOjw3Yqn.js} +1 -1
- package/dist/{useNestedProp-BUoCZrmY.cjs → useNestedProp-CaaW8JIS.cjs} +1 -1
- package/dist/{usePrinter-BUBRC6GE.js → usePrinter-BHy-mfVg.js} +1 -1
- package/dist/{usePrinter-D5ewpTd3.cjs → usePrinter-vQu-8tRD.cjs} +1 -1
- package/dist/{vue-data-ui-BzsqnKj2.cjs → vue-data-ui-Ccdrn4OV.cjs} +1 -1
- package/dist/{vue-data-ui-67aBhtaH.js → vue-data-ui-Dcg7DPMn.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +5 -5
- package/dist/{vue-ui-3d-bar-CQ656C3D.js → vue-ui-3d-bar-BqtnNU7h.js} +7 -7
- package/dist/{vue-ui-3d-bar-NcBKcawL.cjs → vue-ui-3d-bar-DdBlV5AX.cjs} +1 -1
- package/dist/{vue-ui-accordion-B7sGXK-8.js → vue-ui-accordion-BZloYo0L.js} +3 -3
- package/dist/{vue-ui-accordion-CSnFq9e7.cjs → vue-ui-accordion-EVAolVkD.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DcN9DXL7.js → vue-ui-age-pyramid-CTxkOn4v.js} +8 -8
- package/dist/{vue-ui-age-pyramid-B8KDJTmK.cjs → vue-ui-age-pyramid-Ce3DbeqC.cjs} +1 -1
- package/dist/{vue-ui-annotator-DINvjGdW.js → vue-ui-annotator-BDWKiQ6S.js} +1 -1
- package/dist/{vue-ui-annotator-BcKsg71t.cjs → vue-ui-annotator-D_AK0JCi.cjs} +1 -1
- package/dist/{vue-ui-candlestick-dE7VZ9c2.js → vue-ui-candlestick-ByA9FGZb.js} +9 -9
- package/dist/{vue-ui-candlestick-DokpJUMI.cjs → vue-ui-candlestick-CIKgu0F2.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CyvXkNVJ.js → vue-ui-carousel-table-BnYxbq5A.js} +4 -4
- package/dist/{vue-ui-carousel-table-CfkAq3aZ.cjs → vue-ui-carousel-table-ez9gbOZ7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BtbUx2K6.js → vue-ui-chestnut-BumsSmCv.js} +6 -6
- package/dist/{vue-ui-chestnut-C7UoeDnX.cjs → vue-ui-chestnut-CnYqa2Fx.cjs} +1 -1
- package/dist/{vue-ui-cursor-a04KGiW0.js → vue-ui-cursor-D-4-MMw7.js} +2 -2
- package/dist/{vue-ui-cursor-CdZf-yX5.cjs → vue-ui-cursor-Drl8jibt.cjs} +1 -1
- package/dist/{vue-ui-dashboard-C16uiqyH.js → vue-ui-dashboard-B_iV-3hq.js} +2 -2
- package/dist/{vue-ui-dashboard-BVfWXpf8.cjs → vue-ui-dashboard-CX0jA181.cjs} +1 -1
- package/dist/{vue-ui-digits-DrK1MsGL.js → vue-ui-digits-DMhl9plv.js} +2 -2
- package/dist/{vue-ui-digits-Ct2vS1BN.cjs → vue-ui-digits-RAZl_4Kb.cjs} +1 -1
- package/dist/{vue-ui-donut-DCw94nm5.cjs → vue-ui-donut-BG28U01c.cjs} +1 -1
- package/dist/{vue-ui-donut-gBfPKxL5.js → vue-ui-donut-BpQC9-Uz.js} +9 -9
- package/dist/{vue-ui-donut-evolution-w2VBVy8J.cjs → vue-ui-donut-evolution-BWvrYKlH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-ci4AbPDx.js → vue-ui-donut-evolution-DPU-Nd8y.js} +9 -9
- package/dist/{vue-ui-dumbbell-DSeY7g70.cjs → vue-ui-dumbbell-2Lsks-8o.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CfRDGglI.js → vue-ui-dumbbell-C4JnuC1b.js} +8 -8
- package/dist/{vue-ui-flow-CCRXuD2w.cjs → vue-ui-flow-DBhdVKxF.cjs} +1 -1
- package/dist/{vue-ui-flow-sxRGOd3v.js → vue-ui-flow-DSdWqWgh.js} +7 -7
- package/dist/{vue-ui-galaxy-BtRwEK-N.js → vue-ui-galaxy-148JtEdK.js} +9 -9
- package/dist/{vue-ui-galaxy-7uOmICFQ.cjs → vue-ui-galaxy-BMsdd9Rh.cjs} +1 -1
- package/dist/{vue-ui-gauge-DF5cMUZq.js → vue-ui-gauge-DOJ98R_N.js} +5 -5
- package/dist/{vue-ui-gauge-CcGerm6-.cjs → vue-ui-gauge-fVk9B_1W.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BxSR6Npw.js → vue-ui-gizmo-KeWvd226.js} +2 -2
- package/dist/{vue-ui-gizmo-DOdbL7oJ.cjs → vue-ui-gizmo-a6WNWyf7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BFebVyoq.js → vue-ui-heatmap-BGsSOTPJ.js} +176 -173
- package/dist/vue-ui-heatmap-DFpSo2gr.cjs +1 -0
- package/dist/{vue-ui-kpi-Bh3EQVzo.cjs → vue-ui-kpi-Dhah6Fgx.cjs} +1 -1
- package/dist/{vue-ui-kpi-kz6LxY4z.js → vue-ui-kpi-Leb1rK38.js} +3 -3
- package/dist/{vue-ui-mini-loader-XvpXZ4Lu.js → vue-ui-mini-loader-BLH4ncUB.js} +2 -2
- package/dist/{vue-ui-mini-loader-BUmmuBm2.cjs → vue-ui-mini-loader-Dpa9uYkn.cjs} +1 -1
- package/dist/{vue-ui-molecule-DAqPp6P1.cjs → vue-ui-molecule-DjvOvDUa.cjs} +1 -1
- package/dist/{vue-ui-molecule-CV9jYVPn.js → vue-ui-molecule-DuPAOQcj.js} +20 -20
- package/dist/{vue-ui-mood-radar-Rpgf2fO4.cjs → vue-ui-mood-radar-AOHK6R10.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BXksXL9W.js → vue-ui-mood-radar-BmcIz0JR.js} +16 -16
- package/dist/{vue-ui-nested-donuts-DP44vR6_.js → vue-ui-nested-donuts-BYLc86qs.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Bi9o-a5M.cjs → vue-ui-nested-donuts-CMmcmAd9.cjs} +1 -1
- package/dist/{vue-ui-onion-BdQtE7OR.cjs → vue-ui-onion-BjG8xbMh.cjs} +1 -1
- package/dist/{vue-ui-onion-C-hnaK6-.js → vue-ui-onion-shZ4g9mJ.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-Cl7HwAhr.cjs → vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CRfWMtfW.js → vue-ui-parallel-coordinate-plot-wv0O9t7U.js} +10 -10
- package/dist/{vue-ui-quadrant-BvmZuTNr.js → vue-ui-quadrant-BRF5Czj4.js} +52 -52
- package/dist/{vue-ui-quadrant-2jWkCnCZ.cjs → vue-ui-quadrant-CuB8sYgF.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Cf2bonoP.js → vue-ui-quick-chart-BQdUHrm2.js} +6 -6
- package/dist/{vue-ui-quick-chart-Dljdowyo.cjs → vue-ui-quick-chart-DsVFRO68.cjs} +1 -1
- package/dist/{vue-ui-radar-D8WUIeAJ.js → vue-ui-radar-CLUs0tD9.js} +20 -20
- package/dist/{vue-ui-radar-DWQT59Y3.cjs → vue-ui-radar-lcS6n5TC.cjs} +1 -1
- package/dist/{vue-ui-rating-C6EdVOFi.cjs → vue-ui-rating-CA25nHJe.cjs} +1 -1
- package/dist/{vue-ui-rating-DA5yVA82.js → vue-ui-rating-Dcy1l1PB.js} +10 -10
- package/dist/{vue-ui-relation-circle-D1HV7sEy.js → vue-ui-relation-circle-DC-RFa9X.js} +5 -5
- package/dist/{vue-ui-relation-circle-D1Dfp3vd.cjs → vue-ui-relation-circle-Drr6Gdnq.cjs} +1 -1
- package/dist/{vue-ui-rings-9KX262V6.js → vue-ui-rings-DbPbelCU.js} +9 -9
- package/dist/{vue-ui-rings-D7ZSknfw.cjs → vue-ui-rings-DxqSAs9h.cjs} +1 -1
- package/dist/{vue-ui-scatter-BS4fuY2e.js → vue-ui-scatter-D2jYZ4Wu.js} +67 -67
- package/dist/{vue-ui-scatter-BkE4TBcf.cjs → vue-ui-scatter-xyLvaw0d.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BNsuh29D.cjs → vue-ui-screenshot-DGqjaE1x.cjs} +1 -1
- package/dist/{vue-ui-screenshot-ChhpX9vN.js → vue-ui-screenshot-DXCBzrPZ.js} +1 -1
- package/dist/{vue-ui-skeleton-H7E3SBMd.cjs → vue-ui-skeleton-DRDC3yxK.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C2W5etGt.js → vue-ui-skeleton-DuM6yey6.js} +36 -36
- package/dist/{vue-ui-smiley-CSVsepz-.cjs → vue-ui-smiley-BCmY1siL.cjs} +1 -1
- package/dist/{vue-ui-smiley-DmvbdKQH.js → vue-ui-smiley-DQrvx_S9.js} +2 -2
- package/dist/{vue-ui-spark-trend-CIRMNMBi.js → vue-ui-spark-trend-B9PR0wxN.js} +17 -17
- package/dist/{vue-ui-spark-trend-B_jzBm-L.cjs → vue-ui-spark-trend-Kj1bJmBL.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bc0UGC0I.cjs → vue-ui-sparkbar-C_vNsxM_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CsPU3f7E.js → vue-ui-sparkbar-DiU5Yt-V.js} +3 -3
- package/dist/{vue-ui-sparkgauge-sf5NkOzU.js → vue-ui-sparkgauge-BnF9Vbs0.js} +9 -9
- package/dist/{vue-ui-sparkgauge-B9Z7UC0c.cjs → vue-ui-sparkgauge-SlYA1lqc.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BcbNk4hY.cjs → vue-ui-sparkhistogram-BUBwn9A4.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C9q2fgqW.js → vue-ui-sparkhistogram-CsOfCo_3.js} +4 -4
- package/dist/{vue-ui-sparkline-BW3H6hsT.js → vue-ui-sparkline-B628G3Nl.js} +18 -18
- package/dist/{vue-ui-sparkline-Cc-z4lug.cjs → vue-ui-sparkline-CoUeD8Np.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DRUOzvw_.cjs → vue-ui-sparkstackbar-Cr-Q7uDo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DtdKmv0C.js → vue-ui-sparkstackbar-DIHGbrF5.js} +3 -3
- package/dist/{vue-ui-stackbar-C3hiDzB9.js → vue-ui-stackbar-DCbJhdZy.js} +22 -22
- package/dist/{vue-ui-stackbar-CJSxzmsC.cjs → vue-ui-stackbar-DMyP3IRK.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D6RdcG4r.js → vue-ui-strip-plot-CNb3VtYF.js} +9 -9
- package/dist/{vue-ui-strip-plot-Dea20UQo.cjs → vue-ui-strip-plot-Da_TQpOq.cjs} +1 -1
- package/dist/{vue-ui-table-Cl83ltew.js → vue-ui-table-BqcI8E7E.js} +1 -1
- package/dist/{vue-ui-table-DThpCd--.cjs → vue-ui-table-CjuXpy2d.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C9znKJA2.cjs → vue-ui-table-heatmap-D6px_Z1a.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-P1qoQg4L.js → vue-ui-table-heatmap-nbBDuSiw.js} +7 -7
- package/dist/{vue-ui-table-sparkline-ByBzCnhr.js → vue-ui-table-sparkline-Blbaz2zX.js} +10 -10
- package/dist/{vue-ui-table-sparkline-B56XlhbD.cjs → vue-ui-table-sparkline-CqNPx5Zw.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CEtqGDhU.js → vue-ui-thermometer-BCGHbgj9.js} +5 -5
- package/dist/{vue-ui-thermometer-D1BIwe-x.cjs → vue-ui-thermometer-coTC0T6k.cjs} +1 -1
- package/dist/{vue-ui-timer-CZv_iq9A.cjs → vue-ui-timer-BjqbxjQO.cjs} +1 -1
- package/dist/{vue-ui-timer-_OXWxSrR.js → vue-ui-timer-DhpBvc_5.js} +4 -4
- package/dist/{vue-ui-tiremarks-Vln9izs8.js → vue-ui-tiremarks-CNhB7Iqe.js} +5 -5
- package/dist/{vue-ui-tiremarks-Crjj6lAQ.cjs → vue-ui-tiremarks-DgbTo_Cb.cjs} +1 -1
- package/dist/{vue-ui-treemap-CvZ_PXHg.cjs → vue-ui-treemap-B5moKzuO.cjs} +1 -1
- package/dist/{vue-ui-treemap-CVSmQvg5.js → vue-ui-treemap-C4memkYu.js} +9 -9
- package/dist/{vue-ui-vertical-bar-B6gMyH90.cjs → vue-ui-vertical-bar-DtkGW5Tk.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DW83JGF2.js → vue-ui-vertical-bar-LZ-GMZ2T.js} +9 -9
- package/dist/{vue-ui-waffle-C9SFbGDx.js → vue-ui-waffle-Cd4IU62n.js} +9 -9
- package/dist/{vue-ui-waffle-Ck6_fLgH.cjs → vue-ui-waffle-CtY5CSX9.cjs} +1 -1
- package/dist/{vue-ui-wheel-DaA4af-u.js → vue-ui-wheel-CaEAQhJt.js} +5 -5
- package/dist/{vue-ui-wheel-DvxUmFh9.cjs → vue-ui-wheel-Do3pWPFB.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-X1mDRHqA.js → vue-ui-word-cloud-BSalPYqO.js} +28 -28
- package/dist/{vue-ui-word-cloud-B_3r5g7T.cjs → vue-ui-word-cloud-pzaBe3Et.cjs} +1 -1
- package/dist/{vue-ui-xy-CQGKoYPl.cjs → vue-ui-xy-BgLF5ZNP.cjs} +1 -1
- package/dist/{vue-ui-xy-CID8ZHKi.js → vue-ui-xy-C7tpVpGu.js} +21 -21
- package/dist/{vue-ui-xy-canvas-BiqWum4l.cjs → vue-ui-xy-canvas-OuDGiOOW.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BNAlSGC5.js → vue-ui-xy-canvas-rHcYmvec.js} +36 -36
- package/package.json +1 -1
- package/dist/Slicer-DJ_rlsfN.cjs +0 -1
- package/dist/index-vvhNQFio.cjs +0 -4
- package/dist/vue-ui-heatmap-bCvQEgv4.cjs +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { useCssVars as Ce, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as He } from "./Tooltip-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { u as pe } from "./useNestedProp-
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { useCssVars as Ce, computed as c, ref as p, onMounted as Le, openBlock as s, createElementBlock as n, normalizeClass as D, normalizeStyle as b, createVNode as Z, createCommentVNode as y, createBlock as ee, unref as h, createSlots as Ae, withCtx as k, renderSlot as x, normalizeProps as H, guardReactiveProps as U, Fragment as A, renderList as T, createElementVNode as u, toDisplayString as f, withKeys as ze, createTextVNode as Te, nextTick as Me } from "vue";
|
|
2
|
+
import { u as Se, o as Ne, e as ge, c as le, t as Oe, I as Fe, g as Ve, J as te, X as Ie, D as ae, i as Y, f as B, w as Pe, x as Be, q as Re, r as Ee } from "./index-CpHoINpJ.js";
|
|
3
|
+
import { _ as Ge } from "./Title-xP0rAF4q.js";
|
|
4
|
+
import { u as Xe, U as De } from "./usePrinter-BHy-mfVg.js";
|
|
5
|
+
import { _ as He } from "./Tooltip-DfBa_7Ur.js";
|
|
6
|
+
import Ue from "./vue-ui-skeleton-DuM6yey6.js";
|
|
7
|
+
import Ye from "./BaseIcon-Fm7sUbd2.js";
|
|
8
|
+
import je from "./vue-ui-accordion-BZloYo0L.js";
|
|
9
|
+
import { u as pe } from "./useNestedProp-BOjw3Yqn.js";
|
|
10
|
+
import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const qe = ["id"], Ke = ["xmlns", "viewBox"], Je = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Qe = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], Ze = ["font-size", "font-weight", "fill", "x", "y"], el = ["x", "y", "width", "height", "onMouseover"], ll = { key: 0 }, tl = ["font-size", "fill", "x", "y", "font-weight"], al = { key: 0 }, ol = ["text-anchor", "font-size", "fill", "font-weight", "transform"], sl = { key: 1 }, ul = ["x", "y", "width", "height", "stroke", "stroke-width"], nl = { key: 2 }, il = ["id"], rl = ["stop-color"], dl = ["stop-color"], vl = ["x", "y", "font-size", "fill"], yl = ["x", "y", "height", "rx", "fill"], cl = ["x", "y", "font-size", "fill"], hl = ["stroke", "x1", "x2", "y1", "y2"], gl = ["fill", "d"], pl = { key: 3 }, fl = {
|
|
12
12
|
id: "colorScaleHorizontal",
|
|
13
13
|
x1: "0%",
|
|
14
14
|
x2: "100%",
|
|
15
15
|
y1: "0%",
|
|
16
16
|
y2: "0%"
|
|
17
|
-
},
|
|
17
|
+
}, bl = ["stop-color"], ml = ["stop-color"], xl = ["x", "y", "width", "height", "rx"], wl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], kl = ["stroke", "x1", "x2", "y1", "y2"], $l = ["fill", "d"], Cl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Ll = { class: "vue-ui-data-table" }, Al = { key: 0 }, zl = ["data-cell"], Tl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ml = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = {
|
|
21
21
|
__name: "vue-ui-heatmap",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,33 +34,34 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(R, { expose: fe }) {
|
|
37
|
-
const
|
|
37
|
+
const i = R;
|
|
38
38
|
Ce((l) => ({
|
|
39
|
-
"
|
|
39
|
+
"601200a2": l.tdo
|
|
40
40
|
}));
|
|
41
|
-
const { vue_ui_heatmap: be } =
|
|
42
|
-
Ne(
|
|
41
|
+
const { vue_ui_heatmap: be } = Se(), E = c(() => !!i.dataset && i.dataset.length);
|
|
42
|
+
Ne(i.dataset) && ge({
|
|
43
43
|
componentName: "VueUiHeatmap",
|
|
44
44
|
type: "dataset"
|
|
45
45
|
});
|
|
46
|
-
const N = p(le()), j = p(null), me = p(null), W = p(!1), q = p(""), oe = p(void 0),
|
|
46
|
+
const N = p(le()), j = p(null), me = p(null), W = p(!1), q = p(""), oe = p(void 0), O = p(null), se = p(0), ue = p(null), ne = p(!1), e = c(() => {
|
|
47
47
|
const l = pe({
|
|
48
|
-
userConfig:
|
|
48
|
+
userConfig: i.config,
|
|
49
49
|
defaultConfig: be
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
let a = {};
|
|
52
|
+
return l.theme ? a = {
|
|
52
53
|
...pe({
|
|
53
|
-
userConfig:
|
|
54
|
+
userConfig: Oe.vue_ui_heatmap[l.theme] || i.config,
|
|
54
55
|
defaultConfig: l
|
|
55
56
|
})
|
|
56
|
-
} : l;
|
|
57
|
-
}), { isPrinting: ie, isImaging: re, generatePdf:
|
|
57
|
+
} : a = l, i.config && Fe(i.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? a.style.layout.dataLabels.xAxis.showOnlyAtModulo = i.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : a.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, a;
|
|
58
|
+
}), { isPrinting: ie, isImaging: re, generatePdf: de, generateImage: ve } = Xe({
|
|
58
59
|
elementId: `heatmap__${N.value}`,
|
|
59
60
|
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
60
61
|
}), w = p({
|
|
61
62
|
showTable: e.value.table.show,
|
|
62
63
|
showTooltip: e.value.style.tooltip.show
|
|
63
|
-
}), xe =
|
|
64
|
+
}), xe = c(() => e.value.table.responsiveBreakpoint);
|
|
64
65
|
function we() {
|
|
65
66
|
new ResizeObserver((a) => {
|
|
66
67
|
a.forEach((o) => {
|
|
@@ -69,33 +70,33 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
69
70
|
}).observe(ue.value);
|
|
70
71
|
}
|
|
71
72
|
Le(we);
|
|
72
|
-
const
|
|
73
|
-
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom +
|
|
73
|
+
const M = c(() => Math.max(...i.dataset.flatMap((l) => (l.values || []).length))), _ = c(() => {
|
|
74
|
+
const l = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + i.dataset.length * e.value.style.layout.cells.height, a = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (M.value < i.dataset.length ? i.dataset.length : M.value) * e.value.style.layout.cells.height, o = l + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
74
75
|
return {
|
|
75
76
|
height: l,
|
|
76
77
|
heightWithLegend: o,
|
|
77
78
|
width: a
|
|
78
79
|
};
|
|
79
|
-
}), G =
|
|
80
|
+
}), G = c(() => e.value.style.legend.position), t = c(() => ({
|
|
80
81
|
top: e.value.style.layout.padding.top,
|
|
81
82
|
left: e.value.style.layout.padding.left,
|
|
82
83
|
right: _.value.width - e.value.style.layout.padding.right - (G.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
83
84
|
bottom: _.value.height - e.value.style.layout.padding.bottom,
|
|
84
85
|
height: _.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
85
86
|
width: _.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (G.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
86
|
-
})), K =
|
|
87
|
-
const l =
|
|
87
|
+
})), K = c(() => d.value.height * i.dataset.length), m = c(() => Math.max(...i.dataset.flatMap((l) => l.values))), S = c(() => Math.min(...i.dataset.flatMap((l) => l.values))), z = c(() => {
|
|
88
|
+
const l = i.dataset.flatMap((o) => o.values);
|
|
88
89
|
return l.reduce((o, r) => o + r, 0) / l.length;
|
|
89
|
-
}),
|
|
90
|
-
width: t.value.width /
|
|
91
|
-
height: t.value.width / (
|
|
92
|
-
})), $ =
|
|
93
|
-
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values :
|
|
90
|
+
}), d = c(() => ({
|
|
91
|
+
width: t.value.width / M.value,
|
|
92
|
+
height: t.value.width / (M.value < i.dataset.length ? i.dataset.length : M.value)
|
|
93
|
+
})), $ = c(() => {
|
|
94
|
+
const l = e.value.style.layout.dataLabels.yAxis.values.length ? e.value.style.layout.dataLabels.yAxis.values : i.dataset.map((o) => o.name), a = e.value.style.layout.dataLabels.xAxis.values;
|
|
94
95
|
return {
|
|
95
96
|
yLabels: l,
|
|
96
|
-
xLabels: a.slice(0,
|
|
97
|
+
xLabels: a.slice(0, M.value)
|
|
97
98
|
};
|
|
98
|
-
}), X =
|
|
99
|
+
}), X = c(() => (i.dataset.forEach((l, a) => {
|
|
99
100
|
Ve({
|
|
100
101
|
datasetObject: l,
|
|
101
102
|
requiredAttributes: ["values"]
|
|
@@ -107,11 +108,11 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
107
108
|
index: a
|
|
108
109
|
});
|
|
109
110
|
});
|
|
110
|
-
}),
|
|
111
|
+
}), i.dataset.map((l) => ({
|
|
111
112
|
...l,
|
|
112
113
|
temperatures: (l.values || []).map((a, o) => a >= z.value ? {
|
|
113
114
|
side: "up",
|
|
114
|
-
color: te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot,
|
|
115
|
+
color: te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, S.value, m.value, a),
|
|
115
116
|
ratio: Math.abs(Math.abs(a - z.value) / Math.abs(m.value - z.value)) > 1 ? 1 : Math.abs(Math.abs(a - z.value) / Math.abs(m.value - z.value)),
|
|
116
117
|
value: a,
|
|
117
118
|
yAxisName: l.name,
|
|
@@ -120,17 +121,17 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
120
121
|
} : {
|
|
121
122
|
side: "down",
|
|
122
123
|
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: te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot,
|
|
124
|
+
color: te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, S.value, m.value, a),
|
|
124
125
|
value: a,
|
|
125
126
|
yAxisName: l.name,
|
|
126
127
|
xAxisName: $.value.xLabels[o],
|
|
127
128
|
id: `vue-data-ui-heatmap-cell-${le()}`
|
|
128
129
|
})
|
|
129
|
-
})))), C = p(null),
|
|
130
|
+
})))), C = p(null), F = p(null);
|
|
130
131
|
function _e(l, a, o, r) {
|
|
131
|
-
|
|
132
|
-
const { value:
|
|
133
|
-
oe.value = $e, C.value =
|
|
132
|
+
O.value = { x: o, y: r };
|
|
133
|
+
const { value: v, yAxisName: g, xAxisName: L, id: $e } = l;
|
|
134
|
+
oe.value = $e, C.value = v, F.value = {
|
|
134
135
|
datapoint: l,
|
|
135
136
|
seriesIndex: a,
|
|
136
137
|
series: X.value,
|
|
@@ -138,7 +139,7 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
138
139
|
}, W.value = !0;
|
|
139
140
|
let J = "";
|
|
140
141
|
const Q = e.value.style.tooltip.customFormat;
|
|
141
|
-
|
|
142
|
+
Pe(Q) && Be(() => Q({
|
|
142
143
|
datapoint: l,
|
|
143
144
|
seriesIndex: a,
|
|
144
145
|
series: X.value,
|
|
@@ -148,36 +149,36 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
148
149
|
seriesIndex: a,
|
|
149
150
|
series: X.value,
|
|
150
151
|
config: e.value
|
|
151
|
-
}) : (J += `<div>${g} ${L ? `${L}` : ""}</div>`, J += `<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:${te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot,
|
|
152
|
+
}) : (J += `<div>${g} ${L ? `${L}` : ""}</div>`, J += `<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:${te(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, S.value, m.value, v)}">⬤</span><span>${isNaN(v) ? "-" : Y(
|
|
152
153
|
e.value.style.layout.cells.value.formatter,
|
|
153
|
-
|
|
154
|
+
v,
|
|
154
155
|
B({
|
|
155
156
|
p: e.value.style.layout.dataLabels.prefix,
|
|
156
|
-
v
|
|
157
|
+
v,
|
|
157
158
|
s: e.value.style.layout.dataLabels.suffix,
|
|
158
159
|
r: e.value.style.tooltip.roundingValue
|
|
159
160
|
}),
|
|
160
161
|
{ datapoint: l, seriesIndex: a }
|
|
161
162
|
)}</span></div>`, q.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${J}</div>`);
|
|
162
163
|
}
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
const l =
|
|
164
|
+
const V = c(() => t.value.top + K.value * (1 - C.value / m.value)), I = c(() => t.value.left + (_.value.width - t.value.left - e.value.style.layout.padding.right) * (C.value / m.value));
|
|
165
|
+
c(() => {
|
|
166
|
+
const l = i.dataset.map((o) => ({
|
|
166
167
|
name: o.name
|
|
167
|
-
})), a =
|
|
168
|
+
})), a = i.dataset.map((o) => o.values);
|
|
168
169
|
return { head: l, body: a };
|
|
169
170
|
});
|
|
170
171
|
function ye() {
|
|
171
|
-
|
|
172
|
-
const l = ["", ...
|
|
173
|
-
for (let
|
|
174
|
-
const g = [$.value.xLabels[
|
|
175
|
-
for (let L = 0; L <
|
|
176
|
-
g.push([
|
|
172
|
+
Me(() => {
|
|
173
|
+
const l = ["", ...i.dataset.map((v, g) => v.name)], a = [];
|
|
174
|
+
for (let v = 0; v < $.value.xLabels.length; v += 1) {
|
|
175
|
+
const g = [$.value.xLabels[v]];
|
|
176
|
+
for (let L = 0; L < i.dataset.length; L += 1)
|
|
177
|
+
g.push([i.dataset[L].values[v]]);
|
|
177
178
|
a.push(g);
|
|
178
179
|
}
|
|
179
|
-
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([l]).concat(a), r =
|
|
180
|
-
|
|
180
|
+
const o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([l]).concat(a), r = Re(o);
|
|
181
|
+
Ee({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
184
|
const P = p(!1);
|
|
@@ -191,15 +192,15 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
191
192
|
w.value.showTooltip = !w.value.showTooltip;
|
|
192
193
|
}
|
|
193
194
|
return fe({
|
|
194
|
-
generatePdf:
|
|
195
|
+
generatePdf: de,
|
|
195
196
|
generateCsv: ye,
|
|
196
|
-
generateImage:
|
|
197
|
+
generateImage: ve,
|
|
197
198
|
toggleTable: ce,
|
|
198
199
|
toggleTooltip: he
|
|
199
200
|
}), (l, a) => (s(), n("div", {
|
|
200
201
|
ref_key: "heatmapChart",
|
|
201
202
|
ref: j,
|
|
202
|
-
class:
|
|
203
|
+
class: D(`vue-ui-heatmap ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
203
204
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor}`),
|
|
204
205
|
id: `heatmap__${N.value}`
|
|
205
206
|
}, [
|
|
@@ -207,7 +208,7 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
207
208
|
key: 0,
|
|
208
209
|
style: b(`width:100%;background:${e.value.style.backgroundColor}`)
|
|
209
210
|
}, [
|
|
210
|
-
Z(
|
|
211
|
+
Z(Ge, {
|
|
211
212
|
config: {
|
|
212
213
|
title: {
|
|
213
214
|
cy: "heatmap-div-title",
|
|
@@ -219,8 +220,8 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
222
|
}, null, 8, ["config"])
|
|
222
|
-
], 4)) :
|
|
223
|
-
e.value.userOptions.show && E.value ? (s(), ee(
|
|
223
|
+
], 4)) : y("", !0),
|
|
224
|
+
e.value.userOptions.show && E.value ? (s(), ee(De, {
|
|
224
225
|
ref_key: "details",
|
|
225
226
|
ref: me,
|
|
226
227
|
key: `user_options_${se.value}`,
|
|
@@ -240,12 +241,12 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
240
241
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
241
242
|
chartElement: j.value,
|
|
242
243
|
onToggleFullscreen: ke,
|
|
243
|
-
onGeneratePdf: h(
|
|
244
|
+
onGeneratePdf: h(de),
|
|
244
245
|
onGenerateCsv: ye,
|
|
245
|
-
onGenerateImage: h(
|
|
246
|
+
onGenerateImage: h(ve),
|
|
246
247
|
onToggleTable: ce,
|
|
247
248
|
onToggleTooltip: he
|
|
248
|
-
},
|
|
249
|
+
}, Ae({ _: 2 }, [
|
|
249
250
|
l.$slots.optionTooltip ? {
|
|
250
251
|
name: "optionTooltip",
|
|
251
252
|
fn: k(() => [
|
|
@@ -284,107 +285,109 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
284
285
|
l.$slots.optionFullscreen ? {
|
|
285
286
|
name: "optionFullscreen",
|
|
286
287
|
fn: k(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
287
|
-
x(l.$slots, "optionFullscreen",
|
|
288
|
+
x(l.$slots, "optionFullscreen", H(U({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
288
289
|
]),
|
|
289
290
|
key: "5"
|
|
290
291
|
} : void 0
|
|
291
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
292
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
292
293
|
E.value ? (s(), n("svg", {
|
|
293
294
|
key: 2,
|
|
294
295
|
xmlns: h(Ie),
|
|
295
|
-
class:
|
|
296
|
+
class: D({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
296
297
|
viewBox: `0 0 ${_.value.width} ${_.value.heightWithLegend}`,
|
|
297
298
|
style: b(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
298
299
|
}, [
|
|
299
|
-
(s(!0), n(
|
|
300
|
-
(s(!0), n(
|
|
300
|
+
(s(!0), n(A, null, T(X.value, (o, r) => (s(), n("g", null, [
|
|
301
|
+
(s(!0), n(A, null, T(o.temperatures, (v, g) => (s(), n("g", null, [
|
|
301
302
|
u("rect", {
|
|
302
|
-
x: t.value.left +
|
|
303
|
-
y: t.value.top +
|
|
304
|
-
width:
|
|
305
|
-
height:
|
|
303
|
+
x: t.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
|
|
304
|
+
y: t.value.top + d.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
305
|
+
width: d.value.width - e.value.style.layout.cells.spacing,
|
|
306
|
+
height: d.value.height - e.value.style.layout.cells.spacing,
|
|
306
307
|
fill: e.value.style.layout.cells.colors.underlayer,
|
|
307
308
|
stroke: e.value.style.backgroundColor,
|
|
308
309
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
309
|
-
}, null, 8,
|
|
310
|
+
}, null, 8, Je),
|
|
310
311
|
u("rect", {
|
|
311
|
-
x: t.value.left +
|
|
312
|
-
y: t.value.top +
|
|
313
|
-
width:
|
|
314
|
-
height:
|
|
315
|
-
fill:
|
|
312
|
+
x: t.value.left + d.value.width * g + e.value.style.layout.cells.spacing / 2,
|
|
313
|
+
y: t.value.top + d.value.height * r + e.value.style.layout.cells.spacing / 2,
|
|
314
|
+
width: d.value.width - e.value.style.layout.cells.spacing,
|
|
315
|
+
height: d.value.height - e.value.style.layout.cells.spacing,
|
|
316
|
+
fill: v.color,
|
|
316
317
|
stroke: e.value.style.backgroundColor,
|
|
317
318
|
"stroke-width": e.value.style.layout.cells.spacing
|
|
318
|
-
}, null, 8,
|
|
319
|
+
}, null, 8, Qe),
|
|
319
320
|
e.value.style.layout.cells.value.show ? (s(), n("text", {
|
|
320
321
|
key: 0,
|
|
321
322
|
"text-anchor": "middle",
|
|
322
323
|
"font-size": e.value.style.layout.cells.value.fontSize,
|
|
323
324
|
"font-weight": e.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
324
|
-
fill: h(ae)(
|
|
325
|
-
x: t.value.left +
|
|
326
|
-
y: t.value.top +
|
|
325
|
+
fill: h(ae)(v.color),
|
|
326
|
+
x: t.value.left + d.value.width * g + d.value.width / 2,
|
|
327
|
+
y: t.value.top + d.value.height * r + d.value.height / 2 + e.value.style.layout.cells.value.fontSize / 3
|
|
327
328
|
}, f(h(Y)(
|
|
328
329
|
e.value.style.layout.cells.value.formatter,
|
|
329
|
-
|
|
330
|
+
v.value,
|
|
330
331
|
h(B)({
|
|
331
332
|
p: e.value.style.layout.dataLabels.prefix,
|
|
332
|
-
v:
|
|
333
|
+
v: v.value,
|
|
333
334
|
s: e.value.style.layout.dataLabels.suffix,
|
|
334
335
|
r: e.value.style.layout.cells.value.roundingValue
|
|
335
336
|
}),
|
|
336
|
-
{ datapoint:
|
|
337
|
-
)), 9,
|
|
337
|
+
{ datapoint: v }
|
|
338
|
+
)), 9, Ze)) : y("", !0)
|
|
338
339
|
]))), 256)),
|
|
339
|
-
(s(!0), n(
|
|
340
|
+
(s(!0), n(A, null, T(o.temperatures, (v, g) => (s(), n("g", null, [
|
|
340
341
|
u("rect", {
|
|
341
|
-
x: t.value.left +
|
|
342
|
-
y: t.value.top +
|
|
343
|
-
width:
|
|
344
|
-
height:
|
|
342
|
+
x: t.value.left + d.value.width * g,
|
|
343
|
+
y: t.value.top + d.value.height * r,
|
|
344
|
+
width: d.value.width,
|
|
345
|
+
height: d.value.height,
|
|
345
346
|
fill: "transparent",
|
|
346
347
|
stroke: "none",
|
|
347
|
-
onMouseover: (L) => _e(
|
|
348
|
+
onMouseover: (L) => _e(v, r, t.value.left + d.value.width * g, t.value.top + d.value.height * r),
|
|
348
349
|
onMouseout: a[0] || (a[0] = (L) => {
|
|
349
|
-
W.value = !1, oe.value = void 0, C.value = null,
|
|
350
|
+
W.value = !1, oe.value = void 0, C.value = null, O.value = null;
|
|
350
351
|
})
|
|
351
|
-
}, null, 40,
|
|
352
|
+
}, null, 40, el)
|
|
352
353
|
]))), 256)),
|
|
353
|
-
e.value.style.layout.dataLabels.yAxis.show ? (s(), n("g",
|
|
354
|
+
e.value.style.layout.dataLabels.yAxis.show ? (s(), n("g", ll, [
|
|
354
355
|
u("text", {
|
|
355
356
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
356
357
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
357
358
|
x: t.value.left + e.value.style.layout.dataLabels.yAxis.offsetX - 6,
|
|
358
|
-
y: t.value.top +
|
|
359
|
+
y: t.value.top + d.value.height * r + d.value.height / 2 + e.value.style.layout.dataLabels.yAxis.fontSize / 3 + e.value.style.layout.dataLabels.yAxis.offsetY,
|
|
359
360
|
"text-anchor": "end",
|
|
360
361
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
361
|
-
}, f($.value.yLabels[r]), 9,
|
|
362
|
-
])) :
|
|
362
|
+
}, f($.value.yLabels[r]), 9, tl)
|
|
363
|
+
])) : y("", !0)
|
|
363
364
|
]))), 256)),
|
|
364
|
-
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g",
|
|
365
|
-
(s(!0), n(
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
365
|
+
e.value.style.layout.dataLabels.xAxis.show ? (s(), n("g", al, [
|
|
366
|
+
(s(!0), n(A, null, T($.value.xLabels, (o, r) => (s(), n(A, null, [
|
|
367
|
+
!e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && r % e.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (s(), n("text", {
|
|
368
|
+
key: 0,
|
|
369
|
+
"text-anchor": e.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : e.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
370
|
+
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
371
|
+
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
372
|
+
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
373
|
+
transform: `translate(${t.value.left + d.value.width / 2 + t.value.width / $.value.xLabels.length * r + e.value.style.layout.dataLabels.xAxis.offsetX}, ${t.value.top + e.value.style.layout.dataLabels.xAxis.offsetY - 6}), rotate(${e.value.style.layout.dataLabels.xAxis.rotation})`
|
|
374
|
+
}, f(o), 9, ol)) : y("", !0)
|
|
375
|
+
], 64))), 256))
|
|
376
|
+
])) : y("", !0),
|
|
377
|
+
O.value ? (s(), n("g", sl, [
|
|
375
378
|
u("rect", {
|
|
376
379
|
style: { "pointer-events": "none" },
|
|
377
|
-
x:
|
|
378
|
-
y:
|
|
379
|
-
width:
|
|
380
|
-
height:
|
|
380
|
+
x: O.value.x - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
381
|
+
y: O.value.y - e.value.style.layout.cells.selected.border / 2 + e.value.style.layout.cells.spacing,
|
|
382
|
+
width: d.value.width - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
383
|
+
height: d.value.height - e.value.style.layout.cells.spacing + e.value.style.layout.cells.selected.border - e.value.style.layout.cells.spacing,
|
|
381
384
|
fill: "transparent",
|
|
382
385
|
stroke: e.value.style.layout.cells.selected.color,
|
|
383
386
|
"stroke-width": e.value.style.layout.cells.selected.border,
|
|
384
387
|
rx: 1
|
|
385
|
-
}, null, 8,
|
|
386
|
-
])) :
|
|
387
|
-
e.value.style.legend.show && G.value === "right" ? (s(), n("g",
|
|
388
|
+
}, null, 8, ul)
|
|
389
|
+
])) : y("", !0),
|
|
390
|
+
e.value.style.legend.show && G.value === "right" ? (s(), n("g", nl, [
|
|
388
391
|
u("defs", null, [
|
|
389
392
|
u("linearGradient", {
|
|
390
393
|
id: `colorScaleVertical_${N.value}`,
|
|
@@ -394,12 +397,12 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
394
397
|
u("stop", {
|
|
395
398
|
offset: "0%",
|
|
396
399
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
397
|
-
}, null, 8,
|
|
400
|
+
}, null, 8, rl),
|
|
398
401
|
u("stop", {
|
|
399
402
|
offset: "100%",
|
|
400
403
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
401
|
-
}, null, 8,
|
|
402
|
-
], 8,
|
|
404
|
+
}, null, 8, dl)
|
|
405
|
+
], 8, il)
|
|
403
406
|
]),
|
|
404
407
|
u("text", {
|
|
405
408
|
x: t.value.right + 36 + 18,
|
|
@@ -424,7 +427,7 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
424
427
|
height: K.value,
|
|
425
428
|
rx: e.value.style.legend.scaleBorderRadius,
|
|
426
429
|
fill: `url(#colorScaleVertical_${N.value})`
|
|
427
|
-
}, null, 8,
|
|
430
|
+
}, null, 8, yl),
|
|
428
431
|
u("text", {
|
|
429
432
|
x: t.value.right + 36 + 18,
|
|
430
433
|
y: t.value.top + K.value + e.value.style.legend.fontSize * 2.5,
|
|
@@ -433,41 +436,41 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
433
436
|
fill: e.value.style.legend.color
|
|
434
437
|
}, f(h(Y)(
|
|
435
438
|
e.value.style.layout.cells.value.formatter,
|
|
436
|
-
|
|
439
|
+
S.value,
|
|
437
440
|
h(B)({
|
|
438
441
|
p: e.value.style.layout.dataLabels.prefix,
|
|
439
|
-
v:
|
|
442
|
+
v: S.value,
|
|
440
443
|
s: e.value.style.layout.dataLabels.suffix,
|
|
441
444
|
r: e.value.style.legend.roundingValue
|
|
442
445
|
})
|
|
443
|
-
)), 9,
|
|
446
|
+
)), 9, cl),
|
|
444
447
|
C.value !== null ? (s(), n("line", {
|
|
445
448
|
key: 0,
|
|
446
|
-
stroke: h(ae)(
|
|
449
|
+
stroke: h(ae)(F.value.datapoint.color),
|
|
447
450
|
"stroke-width": "2",
|
|
448
451
|
x1: t.value.right + 36,
|
|
449
452
|
x2: t.value.right + 72,
|
|
450
|
-
y1:
|
|
451
|
-
y2:
|
|
452
|
-
}, null, 8,
|
|
453
|
+
y1: V.value,
|
|
454
|
+
y2: V.value
|
|
455
|
+
}, null, 8, hl)) : y("", !0),
|
|
453
456
|
C.value !== null ? (s(), n("path", {
|
|
454
457
|
key: 1,
|
|
455
458
|
fill: e.value.style.color,
|
|
456
459
|
stroke: "none",
|
|
457
|
-
d: `M ${t.value.right + 36},${
|
|
458
|
-
}, null, 8,
|
|
459
|
-
])) :
|
|
460
|
-
e.value.style.legend.show && G.value === "bottom" ? (s(), n("g",
|
|
460
|
+
d: `M ${t.value.right + 36},${V.value} ${t.value.right + 26},${V.value - 8} ${t.value.right + 26},${V.value + 8}z`
|
|
461
|
+
}, null, 8, gl)) : y("", !0)
|
|
462
|
+
])) : y("", !0),
|
|
463
|
+
e.value.style.legend.show && G.value === "bottom" ? (s(), n("g", pl, [
|
|
461
464
|
u("defs", null, [
|
|
462
|
-
u("linearGradient",
|
|
465
|
+
u("linearGradient", fl, [
|
|
463
466
|
u("stop", {
|
|
464
467
|
offset: "0%",
|
|
465
468
|
"stop-color": e.value.style.layout.cells.colors.cold
|
|
466
|
-
}, null, 8,
|
|
469
|
+
}, null, 8, bl),
|
|
467
470
|
u("stop", {
|
|
468
471
|
offset: "100%",
|
|
469
472
|
"stop-color": e.value.style.layout.cells.colors.hot
|
|
470
|
-
}, null, 8,
|
|
473
|
+
}, null, 8, ml)
|
|
471
474
|
])
|
|
472
475
|
]),
|
|
473
476
|
u("rect", {
|
|
@@ -477,43 +480,43 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
477
480
|
height: e.value.style.layout.cells.height,
|
|
478
481
|
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,
|
|
479
482
|
fill: "url(#colorScaleHorizontal)"
|
|
480
|
-
}, null, 8,
|
|
483
|
+
}, null, 8, xl),
|
|
481
484
|
u("text", {
|
|
482
485
|
x: t.value.left,
|
|
483
486
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
484
487
|
"text-anchor": "start",
|
|
485
488
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
486
489
|
fill: e.value.style.legend.color
|
|
487
|
-
}, f(Number(
|
|
490
|
+
}, f(Number(S.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, wl),
|
|
488
491
|
u("text", {
|
|
489
492
|
x: t.value.right,
|
|
490
493
|
y: t.value.bottom + e.value.style.layout.cells.height * 2 + e.value.style.legend.fontSize * 2,
|
|
491
494
|
"text-anchor": "end",
|
|
492
495
|
"font-size": e.value.style.legend.fontSize * 2,
|
|
493
496
|
fill: e.value.style.legend.color
|
|
494
|
-
}, f(Number(m.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9,
|
|
497
|
+
}, f(Number(m.value.toFixed(e.value.style.legend.roundingValue)).toLocaleString()), 9, _l),
|
|
495
498
|
C.value !== null ? (s(), n("line", {
|
|
496
499
|
key: 0,
|
|
497
|
-
stroke: h(ae)(
|
|
500
|
+
stroke: h(ae)(F.value.datapoint.color),
|
|
498
501
|
"stroke-width": "2",
|
|
499
|
-
x1:
|
|
500
|
-
x2:
|
|
502
|
+
x1: I.value,
|
|
503
|
+
x2: I.value,
|
|
501
504
|
y1: t.value.bottom + e.value.style.layout.cells.height,
|
|
502
505
|
y2: t.value.bottom + e.value.style.layout.cells.height * 2
|
|
503
|
-
}, null, 8,
|
|
506
|
+
}, null, 8, kl)) : y("", !0),
|
|
504
507
|
C.value !== null ? (s(), n("path", {
|
|
505
508
|
key: 1,
|
|
506
509
|
fill: e.value.style.color,
|
|
507
510
|
stroke: "none",
|
|
508
|
-
d: `M ${
|
|
509
|
-
}, null, 8,
|
|
510
|
-
])) :
|
|
511
|
+
d: `M ${I.value},${t.value.bottom + e.value.style.layout.cells.height} ${I.value - 12},${t.value.bottom + e.value.style.layout.cells.height - 20} ${I.value + 12},${t.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
512
|
+
}, null, 8, $l)) : y("", !0)
|
|
513
|
+
])) : y("", !0),
|
|
511
514
|
x(l.$slots, "svg", { svg: _.value }, void 0, !0)
|
|
512
|
-
], 14,
|
|
513
|
-
l.$slots.watermark ? (s(), n("div",
|
|
514
|
-
x(l.$slots, "watermark",
|
|
515
|
-
])) :
|
|
516
|
-
E.value ?
|
|
515
|
+
], 14, Ke)) : y("", !0),
|
|
516
|
+
l.$slots.watermark ? (s(), n("div", Cl, [
|
|
517
|
+
x(l.$slots, "watermark", H(U({ isPrinting: h(ie) || h(re) })), void 0, !0)
|
|
518
|
+
])) : y("", !0),
|
|
519
|
+
E.value ? y("", !0) : (s(), ee(Ue, {
|
|
517
520
|
key: 4,
|
|
518
521
|
config: {
|
|
519
522
|
type: "heatmap",
|
|
@@ -541,14 +544,14 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
541
544
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
542
545
|
}, {
|
|
543
546
|
"tooltip-before": k(() => [
|
|
544
|
-
x(l.$slots, "tooltip-before",
|
|
547
|
+
x(l.$slots, "tooltip-before", H(U({ ...F.value })), void 0, !0)
|
|
545
548
|
]),
|
|
546
549
|
"tooltip-after": k(() => [
|
|
547
|
-
x(l.$slots, "tooltip-after",
|
|
550
|
+
x(l.$slots, "tooltip-after", H(U({ ...F.value })), void 0, !0)
|
|
548
551
|
]),
|
|
549
552
|
_: 3
|
|
550
553
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
551
|
-
E.value ? (s(), ee(
|
|
554
|
+
E.value ? (s(), ee(je, {
|
|
552
555
|
key: 5,
|
|
553
556
|
hideDetails: "",
|
|
554
557
|
config: {
|
|
@@ -572,27 +575,27 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
572
575
|
}, [
|
|
573
576
|
u("div", {
|
|
574
577
|
style: "width:100%;overflow-x:auto;padding-top:36px;position:relative",
|
|
575
|
-
class:
|
|
578
|
+
class: D({ "vue-ui-responsive": ne.value })
|
|
576
579
|
}, [
|
|
577
580
|
u("div", {
|
|
578
581
|
role: "button",
|
|
579
582
|
tabindex: "0",
|
|
580
583
|
style: b(`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};`),
|
|
581
584
|
onClick: a[1] || (a[1] = (o) => w.value.showTable = !1),
|
|
582
|
-
onKeypress: a[2] || (a[2] =
|
|
585
|
+
onKeypress: a[2] || (a[2] = ze((o) => w.value.showTable = !1, ["enter"]))
|
|
583
586
|
}, [
|
|
584
|
-
Z(
|
|
587
|
+
Z(Ye, {
|
|
585
588
|
name: "close",
|
|
586
589
|
stroke: e.value.table.th.color,
|
|
587
590
|
"stroke-width": 2
|
|
588
591
|
}, null, 8, ["stroke"])
|
|
589
592
|
], 36),
|
|
590
|
-
u("table",
|
|
593
|
+
u("table", Ll, [
|
|
591
594
|
u("caption", {
|
|
592
595
|
style: b(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
593
596
|
}, [
|
|
594
|
-
|
|
595
|
-
e.value.style.title.subtitle.text ? (s(), n("span",
|
|
597
|
+
Te(f(e.value.style.title.text) + " ", 1),
|
|
598
|
+
e.value.style.title.subtitle.text ? (s(), n("span", Al, f(e.value.style.title.subtitle.text), 1)) : y("", !0)
|
|
596
599
|
], 4),
|
|
597
600
|
u("thead", null, [
|
|
598
601
|
u("tr", {
|
|
@@ -602,16 +605,16 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
602
605
|
u("th", {
|
|
603
606
|
style: b(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
604
607
|
}, null, 4),
|
|
605
|
-
(s(!0), n(
|
|
608
|
+
(s(!0), n(A, null, T(R.dataset, (o, r) => (s(), n("th", {
|
|
606
609
|
align: "right",
|
|
607
610
|
style: b(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
608
611
|
}, f(o.name), 5))), 256))
|
|
609
612
|
], 4)
|
|
610
613
|
]),
|
|
611
614
|
u("tbody", null, [
|
|
612
|
-
(s(!0), n(
|
|
615
|
+
(s(!0), n(A, null, T($.value.xLabels, (o, r) => (s(), n("tr", {
|
|
613
616
|
role: "row",
|
|
614
|
-
class:
|
|
617
|
+
class: D({ "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 }),
|
|
615
618
|
style: b(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
616
619
|
}, [
|
|
617
620
|
u("td", {
|
|
@@ -621,13 +624,13 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
621
624
|
}, [
|
|
622
625
|
u("div", Tl, f(o), 1)
|
|
623
626
|
], 12, zl),
|
|
624
|
-
(s(!0), n(
|
|
627
|
+
(s(!0), n(A, null, T(R.dataset, (v, g) => (s(), n("td", {
|
|
625
628
|
class: "vue-ui-data-table__tbody__td",
|
|
626
629
|
"data-cell": R.dataset[g].name,
|
|
627
630
|
style: b(`outline:${e.value.table.td.outline}`)
|
|
628
631
|
}, [
|
|
629
|
-
u("div",
|
|
630
|
-
], 12,
|
|
632
|
+
u("div", Sl, f(isNaN(v.values[r]) ? "-" : h(B)({ 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)
|
|
633
|
+
], 12, Ml))), 256))
|
|
631
634
|
], 6))), 256))
|
|
632
635
|
])
|
|
633
636
|
])
|
|
@@ -635,10 +638,10 @@ const We = ["id"], qe = ["xmlns", "viewBox"], Ke = ["x", "y", "width", "height",
|
|
|
635
638
|
], 512)
|
|
636
639
|
]),
|
|
637
640
|
_: 1
|
|
638
|
-
}, 8, ["config"])) :
|
|
639
|
-
], 14,
|
|
641
|
+
}, 8, ["config"])) : y("", !0)
|
|
642
|
+
], 14, qe));
|
|
640
643
|
}
|
|
641
|
-
},
|
|
644
|
+
}, Dl = /* @__PURE__ */ We(Nl, [["__scopeId", "data-v-7aca40a7"]]);
|
|
642
645
|
export {
|
|
643
|
-
|
|
646
|
+
Dl as default
|
|
644
647
|
};
|