vue-data-ui 2.4.85 → 2.4.87
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-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
- package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
- package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
- package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
- package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
- package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
- package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
- package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
- package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
- package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
- package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
- package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
- package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
- package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
- package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
- package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
- package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
- package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
- package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
- package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
- package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
- package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
- package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
- package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
- package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
- package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
- package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
- package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
- package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
- package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
- package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
- package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
- package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
- package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
- package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
- package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
- package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
- package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
- package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
- package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
- package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
- package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
- package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
- package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
- package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
- package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
- package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
- package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
- package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
- package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
- package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
- package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
- package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
- package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
- package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
- package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
- package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
- package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
- package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
- package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
- package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
- package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
- package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
- package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
- package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
- package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
- package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
- package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
- package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
- package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
- package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
- package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
- package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
- package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
- package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
- package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
- package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
- package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
- package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
- package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
- package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
- package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
- package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
- package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
- package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
- package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
- package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
- package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
- package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
- package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
- package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
- package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
- package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
- package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
- package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
- package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
- package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
- package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
- package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
- package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
- package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
- package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
- package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
- package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
- package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
- package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
- package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
- package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
- package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
- package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
- package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
- package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
- package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
- package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
- package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useSlots as at, onMounted as Ie, computed as
|
|
2
|
-
import { u as dt, c as Ue, t as vt, a as ht, p as _, b as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as Ct, U as $t } from "./usePrinter-
|
|
5
|
-
import { _ as xt } from "./Tooltip-
|
|
6
|
-
import { L as Tt } from "./Legend-
|
|
7
|
-
import _t from "./vue-ui-skeleton-
|
|
8
|
-
import { D as Ot } from "./DataTable-
|
|
9
|
-
import St from "./vue-ui-accordion-
|
|
1
|
+
import { useSlots as at, onMounted as Ie, computed as w, ref as p, watch as nt, onBeforeUnmount as st, openBlock as g, createElementBlock as k, normalizeClass as Le, normalizeStyle as D, unref as y, createBlock as E, createCommentVNode as S, createSlots as rt, withCtx as T, renderSlot as $, normalizeProps as G, guardReactiveProps as q, createVNode as Re, Fragment as De, renderList as Me, createElementVNode as N, toDisplayString as Y, createTextVNode as Ve, nextTick as ut, pushScopeId as it, popScopeId as ct } from "vue";
|
|
2
|
+
import { u as dt, c as Ue, t as vt, a as ht, p as _, b as pt, o as ft, e as gt, d as ae, i as ne, f as K, X as yt, l as Be, G as He, x as We, y as mt, q as bt, r as wt } from "./index-BG5J_ybN.js";
|
|
3
|
+
import { _ as kt } from "./Title-BU5Aq1_x.js";
|
|
4
|
+
import { u as Ct, U as $t } from "./usePrinter-CWeJt84b.js";
|
|
5
|
+
import { _ as xt } from "./Tooltip-Dm-obTbx.js";
|
|
6
|
+
import { L as Tt } from "./Legend-DMeEvZOT.js";
|
|
7
|
+
import _t from "./vue-ui-skeleton-c211TxZ8.js";
|
|
8
|
+
import { D as Ot } from "./DataTable-CKke7C6w.js";
|
|
9
|
+
import St from "./vue-ui-accordion-JBOceVq2.js";
|
|
10
10
|
import { t as Nt, u as zt } from "./useResponsive-CoxXLe23.js";
|
|
11
|
-
import { u as Ee } from "./useNestedProp-
|
|
12
|
-
import { _ as Pt } from "./PackageVersion-
|
|
13
|
-
import { P as At } from "./PenAndPaper-
|
|
11
|
+
import { u as Ee } from "./useNestedProp-BN1ZmAKT.js";
|
|
12
|
+
import { _ as Pt } from "./PackageVersion-Rh3rgo6A.js";
|
|
13
|
+
import { P as At } from "./PenAndPaper-DqVsdeLc.js";
|
|
14
14
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function Ge(a, c) {
|
|
@@ -19,8 +19,8 @@ function Ge(a, c) {
|
|
|
19
19
|
throw new Error(`Max aspect ratio cannot be computed: ${a} is an empty array`);
|
|
20
20
|
{
|
|
21
21
|
let n = 1 / 0, i = -1 / 0, v = 0;
|
|
22
|
-
for (let
|
|
23
|
-
const d = a[
|
|
22
|
+
for (let f = 0; f < s; f += 1) {
|
|
23
|
+
const d = a[f].normalizedValue;
|
|
24
24
|
d < n && (n = d), d > i && (i = d), v += d;
|
|
25
25
|
}
|
|
26
26
|
return Math.max(
|
|
@@ -69,28 +69,28 @@ function Mt(a) {
|
|
|
69
69
|
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
70
70
|
}
|
|
71
71
|
function Xe(a, c) {
|
|
72
|
-
const { width: s, height: n, xOffset: i, yOffset: v } = de(c), u = a.length,
|
|
72
|
+
const { width: s, height: n, xOffset: i, yOffset: v } = de(c), u = a.length, f = a.map((h) => h.normalizedValue || 0).reduce((h, b) => h + b, 0), d = f / n, z = f / s;
|
|
73
73
|
let O = i, C = v;
|
|
74
74
|
const x = [];
|
|
75
75
|
if (s >= n) {
|
|
76
76
|
for (let h = 0; h < u; h += 1) {
|
|
77
|
-
const b = a[h], P = C + b.normalizedValue / d,
|
|
77
|
+
const b = a[h], P = C + b.normalizedValue / d, M = {
|
|
78
78
|
x0: O,
|
|
79
79
|
y0: C,
|
|
80
80
|
x1: O + d,
|
|
81
81
|
y1: P
|
|
82
|
-
}, A = Object.assign({}, b,
|
|
82
|
+
}, A = Object.assign({}, b, M);
|
|
83
83
|
C = P, x.push(A);
|
|
84
84
|
}
|
|
85
85
|
return x;
|
|
86
86
|
} else {
|
|
87
87
|
for (let h = 0; h < u; h += 1) {
|
|
88
|
-
const b = a[h], P = O + b.normalizedValue / z,
|
|
88
|
+
const b = a[h], P = O + b.normalizedValue / z, M = {
|
|
89
89
|
x0: O,
|
|
90
90
|
y0: C,
|
|
91
91
|
x1: P,
|
|
92
92
|
y1: C + z
|
|
93
|
-
}, A = Object.assign({}, b,
|
|
93
|
+
}, A = Object.assign({}, b, M);
|
|
94
94
|
O = P, x.push(A);
|
|
95
95
|
}
|
|
96
96
|
return x;
|
|
@@ -102,10 +102,10 @@ function Vt(a) {
|
|
|
102
102
|
}
|
|
103
103
|
function Ut(a, c) {
|
|
104
104
|
const s = a.length, n = a.map((d) => d.value ?? 0).reduce((d, z) => d + z, 0), i = c / n, v = [];
|
|
105
|
-
let u,
|
|
105
|
+
let u, f;
|
|
106
106
|
for (let d = 0; d < s; d += 1)
|
|
107
|
-
|
|
108
|
-
normalizedValue:
|
|
107
|
+
f = a[d], u = Object.assign({}, f, {
|
|
108
|
+
normalizedValue: f.value * (i || 0)
|
|
109
109
|
}), v.push(u);
|
|
110
110
|
return v;
|
|
111
111
|
}
|
|
@@ -119,24 +119,24 @@ function de(a) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function Bt(a, c, s, n) {
|
|
122
|
-
let i = a, v = c, u = s,
|
|
122
|
+
let i = a, v = c, u = s, f = n;
|
|
123
123
|
for (; ; ) {
|
|
124
124
|
const d = i.length;
|
|
125
125
|
if (d === 0) {
|
|
126
126
|
const x = Xe(v, u);
|
|
127
|
-
return
|
|
127
|
+
return f.concat(x);
|
|
128
128
|
}
|
|
129
129
|
const z = Vt(u), O = i[0], C = i.slice(1, d);
|
|
130
130
|
if (Lt(v, O, z)) {
|
|
131
131
|
const x = v.concat(O);
|
|
132
|
-
i = C, v = x, u = u,
|
|
132
|
+
i = C, v = x, u = u, f = f;
|
|
133
133
|
} else {
|
|
134
134
|
const x = v.length;
|
|
135
135
|
let h = 0;
|
|
136
136
|
for (let A = 0; A < x; A += 1)
|
|
137
137
|
h += v[A].normalizedValue;
|
|
138
|
-
const b = Ht(u, h), P = Xe(v, u),
|
|
139
|
-
i = i, v = [], u = b,
|
|
138
|
+
const b = Ht(u, h), P = Xe(v, u), M = f.concat(P);
|
|
139
|
+
i = i, v = [], u = b, f = M;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -156,24 +156,24 @@ function je(a) {
|
|
|
156
156
|
function Ht(a, c) {
|
|
157
157
|
const { width: s, height: n, xOffset: i, yOffset: v } = de(a);
|
|
158
158
|
if (s >= n) {
|
|
159
|
-
const u = c / n,
|
|
159
|
+
const u = c / n, f = s - u, d = {
|
|
160
160
|
xOffset: i + u,
|
|
161
161
|
yOffset: v,
|
|
162
|
-
width:
|
|
162
|
+
width: f,
|
|
163
163
|
height: n
|
|
164
164
|
};
|
|
165
165
|
return qe(d);
|
|
166
166
|
} else {
|
|
167
|
-
const u = c / s,
|
|
167
|
+
const u = c / s, f = n - u, d = {
|
|
168
168
|
xOffset: i,
|
|
169
169
|
yOffset: v + u,
|
|
170
170
|
width: s,
|
|
171
|
-
height:
|
|
171
|
+
height: f
|
|
172
172
|
};
|
|
173
173
|
return qe(d);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const Wt = (a) => (it("data-v-
|
|
176
|
+
const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = ["xmlns", "viewBox"], qt = { key: 0 }, Xt = ["id"], jt = ["stop-color"], Yt = ["stop-color"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Jt = ["x", "y", "height", "width"], Kt = {
|
|
177
177
|
style: { width: "100%", height: "100%" },
|
|
178
178
|
class: "vue-ui-treemap-cell"
|
|
179
179
|
}, Qt = /* @__PURE__ */ Wt(() => /* @__PURE__ */ N("br", null, null, -1)), eo = {
|
|
@@ -201,7 +201,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
201
201
|
Ie(() => {
|
|
202
202
|
v["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
203
203
|
});
|
|
204
|
-
const u =
|
|
204
|
+
const u = w(() => !!n.dataset && n.dataset.length), f = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), d = p(Ue()), z = p(!1), O = p(""), C = p(!1), x = p(0), h = p([]), b = p(null), P = p(null), M = p(null), A = p(null), ve = p(null), he = p(0), pe = p(0), fe = p(0), e = w({
|
|
205
205
|
get: () => me(),
|
|
206
206
|
set: (t) => t
|
|
207
207
|
}), { userOptionsVisible: se, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Ft({ config: e.value });
|
|
@@ -219,18 +219,18 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
219
219
|
} : t;
|
|
220
220
|
}
|
|
221
221
|
nt(() => n.config, (t) => {
|
|
222
|
-
e.value = me(), se.value = !e.value.showOnChartHover, he.value += 1,
|
|
222
|
+
e.value = me(), se.value = !e.value.showOnChartHover, he.value += 1, pe.value += 1, fe.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
223
223
|
}, { deep: !0 });
|
|
224
|
-
const { isPrinting: be, isImaging:
|
|
224
|
+
const { isPrinting: be, isImaging: we, generatePdf: ke, generateImage: Ce } = Ct({
|
|
225
225
|
elementId: `treemap_${d.value}`,
|
|
226
226
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap"
|
|
227
|
-
}), Ye =
|
|
227
|
+
}), Ye = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = w(() => pt(e.value.customPalette)), F = p({
|
|
228
228
|
showTable: e.value.table.show,
|
|
229
229
|
showTooltip: e.value.style.chart.tooltip.show
|
|
230
|
-
}), V =
|
|
230
|
+
}), V = p({
|
|
231
231
|
height: e.value.style.chart.height,
|
|
232
232
|
width: e.value.style.chart.width
|
|
233
|
-
}), B =
|
|
233
|
+
}), B = w(() => ({
|
|
234
234
|
bottom: V.value.height - e.value.style.chart.padding.bottom,
|
|
235
235
|
height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
236
236
|
left: e.value.style.chart.padding.left,
|
|
@@ -247,12 +247,12 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
247
247
|
}), $e(l.children));
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
const H =
|
|
250
|
+
const H = p(n.dataset), ee = p(null);
|
|
251
251
|
Ie(() => {
|
|
252
252
|
Ze();
|
|
253
253
|
});
|
|
254
254
|
function Ze() {
|
|
255
|
-
if (
|
|
255
|
+
if (ft(n.dataset) && gt({
|
|
256
256
|
componentName: "VueUiTreemap",
|
|
257
257
|
type: "dataset"
|
|
258
258
|
}), $e(H.value), e.value.responsive) {
|
|
@@ -260,7 +260,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
260
260
|
const { width: l, height: o } = zt({
|
|
261
261
|
chart: b.value,
|
|
262
262
|
title: e.value.style.chart.title.text ? P.value : null,
|
|
263
|
-
legend: e.value.style.chart.legend.show ?
|
|
263
|
+
legend: e.value.style.chart.legend.show ? M.value : null,
|
|
264
264
|
source: A.value,
|
|
265
265
|
noTitle: ve.value
|
|
266
266
|
});
|
|
@@ -274,10 +274,10 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
274
274
|
st(() => {
|
|
275
275
|
ee.value && ee.value.disconnect();
|
|
276
276
|
});
|
|
277
|
-
const re =
|
|
277
|
+
const re = p(H.value), Z = w(() => re.value.map((t, l) => ({
|
|
278
278
|
...t,
|
|
279
279
|
color: ae(t.color) || Q.value[l] || _[l] || _[l % _.length]
|
|
280
|
-
})).filter((t) => !h.value.includes(t.id))), X =
|
|
280
|
+
})).filter((t) => !h.value.includes(t.id))), X = w(() => H.value.filter((t) => !h.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), xe = w({
|
|
281
281
|
get() {
|
|
282
282
|
let t = [...Z.value];
|
|
283
283
|
return e.value.style.chart.layout.sorted && (t = [...Z.value].sort((l, o) => o.value - l.value)), t.map((l) => ({
|
|
@@ -307,7 +307,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
const J =
|
|
310
|
+
const J = w(() => Dt(
|
|
311
311
|
xe.value.map((t, l) => {
|
|
312
312
|
const o = t.children ? t.children.reduce((r, m) => r + m.value, 0) : t.value;
|
|
313
313
|
return {
|
|
@@ -333,12 +333,12 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
333
333
|
function Ke(t) {
|
|
334
334
|
C.value = t, x.value += 1;
|
|
335
335
|
}
|
|
336
|
-
const j =
|
|
336
|
+
const j = w(() => ({
|
|
337
337
|
startX: 0,
|
|
338
338
|
startY: 0,
|
|
339
339
|
width: B.value.vbWidth,
|
|
340
340
|
height: B.value.vbHeight
|
|
341
|
-
})),
|
|
341
|
+
})), I = p(!1);
|
|
342
342
|
function ue(t, l = H.value) {
|
|
343
343
|
for (const o of l) {
|
|
344
344
|
if (o.id === t)
|
|
@@ -352,16 +352,16 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
352
352
|
return null;
|
|
353
353
|
}
|
|
354
354
|
function Qe(t) {
|
|
355
|
-
if (
|
|
355
|
+
if (I.value)
|
|
356
356
|
s("selectDatapoint", void 0), re.value = H.value;
|
|
357
357
|
else {
|
|
358
358
|
if (s("selectDatapoint", t), !ue(t.parentId))
|
|
359
359
|
return;
|
|
360
360
|
re.value = [ue(t.parentId)];
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
I.value = !I.value;
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const L = p(null), Ne = w(() => H.value.map((t, l) => ({
|
|
365
365
|
...t,
|
|
366
366
|
color: ae(t.color) || Q.value[l] || _[l] || _[l % _.length],
|
|
367
367
|
shape: "square"
|
|
@@ -369,7 +369,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
369
369
|
...t,
|
|
370
370
|
proportion: t.value / H.value.map((o) => o.value).reduce((o, r) => o + r, 0),
|
|
371
371
|
opacity: h.value.includes(t.id) ? 0.5 : 1
|
|
372
|
-
}))), et =
|
|
372
|
+
}))), et = w(() => ({
|
|
373
373
|
cy: "treemap-div-legend",
|
|
374
374
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
375
375
|
color: e.value.style.chart.legend.color,
|
|
@@ -378,11 +378,11 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
378
378
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
379
379
|
}));
|
|
380
380
|
function ze(t) {
|
|
381
|
-
|
|
381
|
+
I.value = !1, L.value = null, h.value.includes(t.id) ? h.value = h.value.filter((l) => l !== t.id) : h.value.length < n.dataset.length - 1 && h.value.push(t.id), s("selectLegend", xe.value);
|
|
382
382
|
}
|
|
383
|
-
const ie =
|
|
383
|
+
const ie = p(null);
|
|
384
384
|
function tt({ datapoint: t, seriesIndex: l }) {
|
|
385
|
-
|
|
385
|
+
L.value = t, ie.value = { datapoint: t, seriesIndex: l, config: e.value, series: Z.value };
|
|
386
386
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
387
387
|
if (We(o) && mt(() => o({
|
|
388
388
|
seriesIndex: l,
|
|
@@ -412,7 +412,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
412
412
|
}
|
|
413
413
|
z.value = !0;
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const R = w(() => {
|
|
416
416
|
const t = J.value.map((o) => ({
|
|
417
417
|
name: o.name,
|
|
418
418
|
color: o.color
|
|
@@ -421,24 +421,24 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
421
421
|
});
|
|
422
422
|
function Pe() {
|
|
423
423
|
ut(() => {
|
|
424
|
-
const t =
|
|
424
|
+
const t = R.value.head.map((r, m) => [[
|
|
425
425
|
r.name
|
|
426
|
-
], [
|
|
427
|
-
|
|
426
|
+
], [R.value.body[m]], [isNaN(R.value.body[m] / X.value) ? "-" : R.value.body[m] / X.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = bt(l);
|
|
427
|
+
wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
const te =
|
|
430
|
+
const te = w(() => {
|
|
431
431
|
const t = [
|
|
432
432
|
e.value.table.columnNames.series,
|
|
433
433
|
e.value.table.columnNames.value,
|
|
434
434
|
e.value.table.columnNames.percentage
|
|
435
|
-
], l =
|
|
435
|
+
], l = R.value.head.map((m, U) => {
|
|
436
436
|
const le = ne(
|
|
437
437
|
e.value.style.chart.layout.labels.formatter,
|
|
438
|
-
|
|
438
|
+
R.value.body[U],
|
|
439
439
|
K({
|
|
440
440
|
p: e.value.style.chart.layout.labels.prefix,
|
|
441
|
-
v:
|
|
441
|
+
v: R.value.body[U],
|
|
442
442
|
s: e.value.style.chart.layout.labels.suffix,
|
|
443
443
|
r: e.value.table.td.roundingValue
|
|
444
444
|
})
|
|
@@ -450,8 +450,8 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
450
450
|
shape: "square"
|
|
451
451
|
},
|
|
452
452
|
le,
|
|
453
|
-
isNaN(
|
|
454
|
-
v:
|
|
453
|
+
isNaN(R.value.body[U] / X.value) ? "-" : K({
|
|
454
|
+
v: R.value.body[U] / X.value * 100,
|
|
455
455
|
s: "%",
|
|
456
456
|
r: e.value.table.td.roundingPercentage
|
|
457
457
|
})
|
|
@@ -483,12 +483,12 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
483
483
|
return J.value;
|
|
484
484
|
}
|
|
485
485
|
function Ae() {
|
|
486
|
-
|
|
486
|
+
F.value.showTable = !F.value.showTable;
|
|
487
487
|
}
|
|
488
488
|
function Fe() {
|
|
489
|
-
|
|
489
|
+
F.value.showTooltip = !F.value.showTooltip;
|
|
490
490
|
}
|
|
491
|
-
const oe =
|
|
491
|
+
const oe = p(!1);
|
|
492
492
|
function ce() {
|
|
493
493
|
oe.value = !oe.value;
|
|
494
494
|
}
|
|
@@ -496,15 +496,15 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
496
496
|
getData: ot,
|
|
497
497
|
generateCsv: Pe,
|
|
498
498
|
generateImage: Ce,
|
|
499
|
-
generatePdf:
|
|
499
|
+
generatePdf: ke,
|
|
500
500
|
toggleTable: Ae,
|
|
501
501
|
toggleTooltip: Fe,
|
|
502
502
|
toggleAnnotator: ce
|
|
503
|
-
}), (t, l) => (g(),
|
|
503
|
+
}), (t, l) => (g(), k("div", {
|
|
504
504
|
ref_key: "treemapChart",
|
|
505
505
|
ref: b,
|
|
506
506
|
class: Le(`vue-ui-treemap ${C.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
507
|
-
style:
|
|
507
|
+
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
508
508
|
id: `treemap_${d.value}`,
|
|
509
509
|
onMouseenter: l[3] || (l[3] = () => y(ge)(!0)),
|
|
510
510
|
onMouseleave: l[4] || (l[4] = () => y(ge)(!1))
|
|
@@ -517,20 +517,20 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
517
517
|
active: oe.value,
|
|
518
518
|
onClose: ce
|
|
519
519
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : S("", !0),
|
|
520
|
-
Ye.value ? (g(),
|
|
520
|
+
Ye.value ? (g(), k("div", {
|
|
521
521
|
key: 1,
|
|
522
522
|
ref_key: "noTitle",
|
|
523
523
|
ref: ve,
|
|
524
524
|
class: "vue-data-ui-no-title-space",
|
|
525
525
|
style: "height:36px; width: 100%;background:transparent"
|
|
526
526
|
}, null, 512)) : S("", !0),
|
|
527
|
-
e.value.style.chart.title.text ? (g(),
|
|
527
|
+
e.value.style.chart.title.text ? (g(), k("div", {
|
|
528
528
|
key: 2,
|
|
529
529
|
ref_key: "chartTitle",
|
|
530
530
|
ref: P,
|
|
531
|
-
style:
|
|
531
|
+
style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
532
532
|
}, [
|
|
533
|
-
(g(), E(
|
|
533
|
+
(g(), E(kt, {
|
|
534
534
|
key: `title_${he.value}`,
|
|
535
535
|
config: {
|
|
536
536
|
title: {
|
|
@@ -550,7 +550,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
550
550
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
551
551
|
color: e.value.style.chart.color,
|
|
552
552
|
isPrinting: y(be),
|
|
553
|
-
isImaging: y(
|
|
553
|
+
isImaging: y(we),
|
|
554
554
|
uid: d.value,
|
|
555
555
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
556
556
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -559,20 +559,20 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
559
559
|
hasTable: e.value.userOptions.buttons.table,
|
|
560
560
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
561
561
|
isFullscreen: C.value,
|
|
562
|
-
isTooltip:
|
|
562
|
+
isTooltip: F.value.showTooltip,
|
|
563
563
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
564
564
|
chartElement: b.value,
|
|
565
565
|
position: e.value.userOptions.position,
|
|
566
566
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
567
|
isAnnotation: oe.value,
|
|
568
568
|
onToggleFullscreen: Ke,
|
|
569
|
-
onGeneratePdf: y(
|
|
569
|
+
onGeneratePdf: y(ke),
|
|
570
570
|
onGenerateCsv: Pe,
|
|
571
571
|
onGenerateImage: y(Ce),
|
|
572
572
|
onToggleTable: Ae,
|
|
573
573
|
onToggleTooltip: Fe,
|
|
574
574
|
onToggleAnnotator: ce,
|
|
575
|
-
style:
|
|
575
|
+
style: D({
|
|
576
576
|
visibility: y(ye) ? y(se) ? "visible" : "hidden" : "visible"
|
|
577
577
|
})
|
|
578
578
|
}, rt({ _: 2 }, [
|
|
@@ -626,16 +626,16 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
626
626
|
key: "6"
|
|
627
627
|
} : void 0
|
|
628
628
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : S("", !0),
|
|
629
|
-
u.value ? (g(),
|
|
629
|
+
u.value ? (g(), k("svg", {
|
|
630
630
|
key: 4,
|
|
631
631
|
xmlns: y(yt),
|
|
632
|
-
class: Le({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value, "vue-data-ui-zoom-plus": !
|
|
632
|
+
class: Le({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value, "vue-data-ui-zoom-plus": !I.value, "vue-data-ui-zoom-minus": I.value }),
|
|
633
633
|
viewBox: `${j.value.startX} ${j.value.startY} ${j.value.width <= 0 ? 10 : j.value.width} ${j.value.height <= 0 ? 10 : j.value.height}`,
|
|
634
|
-
style:
|
|
634
|
+
style: D(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
635
635
|
}, [
|
|
636
636
|
Re(Pt),
|
|
637
|
-
(g(!0),
|
|
638
|
-
e.value.style.chart.layout.rects.gradient.show ? (g(),
|
|
637
|
+
(g(!0), k(De, null, Me(J.value, (o, r) => (g(), k("g", null, [
|
|
638
|
+
e.value.style.chart.layout.rects.gradient.show ? (g(), k("defs", qt, [
|
|
639
639
|
N("radialGradient", {
|
|
640
640
|
id: `tgrad_${o.id}`,
|
|
641
641
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -651,28 +651,28 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
651
651
|
], 8, Xt)
|
|
652
652
|
])) : S("", !0)
|
|
653
653
|
]))), 256)),
|
|
654
|
-
(g(!0),
|
|
654
|
+
(g(!0), k(De, null, Me(J.value, (o, r) => (g(), k("g", null, [
|
|
655
655
|
N("rect", {
|
|
656
656
|
x: o.x0,
|
|
657
657
|
y: o.y0,
|
|
658
658
|
height: Oe(o),
|
|
659
659
|
width: Se(o),
|
|
660
|
-
fill:
|
|
660
|
+
fill: f.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
661
661
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
662
|
-
stroke:
|
|
663
|
-
"stroke-width":
|
|
662
|
+
stroke: L.value && L.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
663
|
+
"stroke-width": L.value && L.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
664
664
|
onClick: (m) => Qe(o),
|
|
665
665
|
onMouseenter: () => tt({
|
|
666
666
|
datapoint: o,
|
|
667
667
|
seriesIndex: r
|
|
668
668
|
}),
|
|
669
669
|
onMouseleave: l[0] || (l[0] = (m) => {
|
|
670
|
-
|
|
670
|
+
L.value = null, z.value = !1;
|
|
671
671
|
}),
|
|
672
|
-
style:
|
|
672
|
+
style: D(`opacity:${L.value ? L.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
673
673
|
class: "vue-ui-treemap-rect"
|
|
674
674
|
}, null, 44, Zt),
|
|
675
|
-
(g(),
|
|
675
|
+
(g(), k("foreignObject", {
|
|
676
676
|
x: o.x0,
|
|
677
677
|
y: o.y0,
|
|
678
678
|
height: Oe(o),
|
|
@@ -680,17 +680,17 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
680
680
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
681
681
|
}, [
|
|
682
682
|
N("div", Kt, [
|
|
683
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
683
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value) ? (g(), k("div", {
|
|
684
684
|
key: 0,
|
|
685
685
|
class: "vue-ui-treemap-cell-default",
|
|
686
|
-
style:
|
|
686
|
+
style: D(`width:calc(100% - ${W(o) / 1.5}px);text-align:left;line-height:${W(o) < 14 ? 14 : W(o)}px;padding:${W(o) / 3}px; color:${y(He)(o.color)}`)
|
|
687
687
|
}, [
|
|
688
688
|
N("span", {
|
|
689
|
-
style:
|
|
689
|
+
style: D(`width:100%;font-size:${W(o)}px;`)
|
|
690
690
|
}, Y(o.name), 5),
|
|
691
691
|
Qt,
|
|
692
692
|
N("span", {
|
|
693
|
-
style:
|
|
693
|
+
style: D(`width:100%;font-size:${W(o)}px;`)
|
|
694
694
|
}, Y(y(ne)(
|
|
695
695
|
e.value.style.chart.layout.labels.formatter,
|
|
696
696
|
o.value,
|
|
@@ -705,18 +705,18 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
705
705
|
], 4)) : S("", !0),
|
|
706
706
|
$(t.$slots, "rect", G(q({
|
|
707
707
|
rect: o,
|
|
708
|
-
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
708
|
+
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value,
|
|
709
709
|
fontSize: W(o),
|
|
710
|
-
isZoom:
|
|
710
|
+
isZoom: I.value,
|
|
711
711
|
textColor: y(He)(o.color)
|
|
712
712
|
})), void 0, !0)
|
|
713
713
|
])
|
|
714
714
|
], 8, Jt))
|
|
715
715
|
]))), 256)),
|
|
716
|
-
$(t.$slots, "svg", G(q({ svg: B.value, isZoom:
|
|
716
|
+
$(t.$slots, "svg", G(q({ svg: B.value, isZoom: I.value, rect: L.value, config: e.value })), void 0, !0)
|
|
717
717
|
], 14, Gt)) : S("", !0),
|
|
718
|
-
t.$slots.watermark ? (g(),
|
|
719
|
-
$(t.$slots, "watermark", G(q({ isPrinting: y(be) || y(
|
|
718
|
+
t.$slots.watermark ? (g(), k("div", eo, [
|
|
719
|
+
$(t.$slots, "watermark", G(q({ isPrinting: y(be) || y(we) })), void 0, !0)
|
|
720
720
|
])) : S("", !0),
|
|
721
721
|
u.value ? S("", !0) : (g(), E(_t, {
|
|
722
722
|
key: 6,
|
|
@@ -732,10 +732,10 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
732
732
|
}, null, 8, ["config"])),
|
|
733
733
|
N("div", {
|
|
734
734
|
ref_key: "chartLegend",
|
|
735
|
-
ref:
|
|
735
|
+
ref: M
|
|
736
736
|
}, [
|
|
737
737
|
e.value.style.chart.legend.show ? (g(), E(Tt, {
|
|
738
|
-
key: `legend_${
|
|
738
|
+
key: `legend_${fe.value}`,
|
|
739
739
|
legendSet: Ne.value,
|
|
740
740
|
config: et.value,
|
|
741
741
|
id: `treemap_legend_${d.value}`,
|
|
@@ -744,7 +744,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
744
744
|
item: T(({ legend: o, index: r }) => [
|
|
745
745
|
N("div", {
|
|
746
746
|
onClick: (m) => ze(o),
|
|
747
|
-
style:
|
|
747
|
+
style: D(`opacity:${h.value.includes(o.id) ? 0.5 : 1}`)
|
|
748
748
|
}, [
|
|
749
749
|
Ve(Y(o.name) + ": " + Y(y(ne)(
|
|
750
750
|
e.value.style.chart.layout.labels.formatter,
|
|
@@ -757,7 +757,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
757
757
|
}),
|
|
758
758
|
{ datapoint: o }
|
|
759
759
|
)) + " ", 1),
|
|
760
|
-
h.value.includes(o.id) ? (g(),
|
|
760
|
+
h.value.includes(o.id) ? (g(), k("span", lo, " ( - % ) ")) : (g(), k("span", oo, " (" + Y(isNaN(o.value / X.value) ? "-" : (o.value / X.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
761
761
|
], 12, to)
|
|
762
762
|
]),
|
|
763
763
|
_: 1
|
|
@@ -766,7 +766,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
766
766
|
legend: Ne.value
|
|
767
767
|
}, void 0, !0)
|
|
768
768
|
], 512),
|
|
769
|
-
t.$slots.source ? (g(),
|
|
769
|
+
t.$slots.source ? (g(), k("div", {
|
|
770
770
|
key: 7,
|
|
771
771
|
ref_key: "source",
|
|
772
772
|
ref: A,
|
|
@@ -775,7 +775,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
775
775
|
$(t.$slots, "source", {}, void 0, !0)
|
|
776
776
|
], 512)) : S("", !0),
|
|
777
777
|
Re(xt, {
|
|
778
|
-
show:
|
|
778
|
+
show: F.value.showTooltip && z.value,
|
|
779
779
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
780
780
|
color: e.value.style.chart.tooltip.color,
|
|
781
781
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -802,7 +802,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
802
802
|
key: 8,
|
|
803
803
|
hideDetails: "",
|
|
804
804
|
config: {
|
|
805
|
-
open:
|
|
805
|
+
open: F.value.showTable,
|
|
806
806
|
maxHeight: 1e4,
|
|
807
807
|
body: {
|
|
808
808
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -816,13 +816,13 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
816
816
|
}, {
|
|
817
817
|
content: T(() => [
|
|
818
818
|
(g(), E(Ot, {
|
|
819
|
-
key: `table_${
|
|
819
|
+
key: `table_${pe.value}`,
|
|
820
820
|
colNames: te.value.colNames,
|
|
821
821
|
head: te.value.head,
|
|
822
822
|
body: te.value.body,
|
|
823
823
|
config: te.value.config,
|
|
824
824
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
825
|
-
onClose: l[2] || (l[2] = (o) =>
|
|
825
|
+
onClose: l[2] || (l[2] = (o) => F.value.showTable = !1)
|
|
826
826
|
}, {
|
|
827
827
|
th: T(({ th: o }) => [
|
|
828
828
|
N("div", {
|
|
@@ -840,7 +840,7 @@ const Wt = (a) => (it("data-v-1f72136b"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
840
840
|
}, 8, ["config"])) : S("", !0)
|
|
841
841
|
], 46, Et));
|
|
842
842
|
}
|
|
843
|
-
}, Co = /* @__PURE__ */ It(no, [["__scopeId", "data-v-
|
|
843
|
+
}, Co = /* @__PURE__ */ It(no, [["__scopeId", "data-v-150cb298"]]);
|
|
844
844
|
export {
|
|
845
845
|
Co as default
|
|
846
846
|
};
|