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,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as F, normalizeProps as ue, guardReactiveProps as ne, createVNode as $e, toDisplayString as c, createElementVNode as s, Fragment as g, renderList as _, createTextVNode as J, withKeys as Ke, nextTick as Ce } from "vue";
|
|
2
|
-
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-
|
|
3
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
4
|
-
import it from "./vue-ui-skeleton-
|
|
5
|
-
import ct from "./BaseIcon-
|
|
6
|
-
import dt from "./vue-ui-accordion-
|
|
7
|
-
import { u as Se } from "./useNestedProp-
|
|
8
|
-
import { _ as vt } from "./PackageVersion-
|
|
9
|
-
import { P as yt } from "./PenAndPaper-
|
|
2
|
+
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-BG5J_ybN.js";
|
|
3
|
+
import { u as nt, U as rt } from "./usePrinter-CWeJt84b.js";
|
|
4
|
+
import it from "./vue-ui-skeleton-c211TxZ8.js";
|
|
5
|
+
import ct from "./BaseIcon-plElWres.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-JBOceVq2.js";
|
|
7
|
+
import { u as Se } from "./useNestedProp-BN1ZmAKT.js";
|
|
8
|
+
import { _ as vt } from "./PackageVersion-Rh3rgo6A.js";
|
|
9
|
+
import { P as yt } from "./PenAndPaper-DqVsdeLc.js";
|
|
10
10
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const bt = ["id"], pt = {
|
|
@@ -49,9 +49,9 @@ const bt = ["id"], pt = {
|
|
|
49
49
|
setup(Fe, { expose: Le, emit: E }) {
|
|
50
50
|
const O = Fe;
|
|
51
51
|
Ye((l) => ({
|
|
52
|
-
|
|
52
|
+
b911a264: l.tdo
|
|
53
53
|
}));
|
|
54
|
-
const { vue_ui_chestnut: Ie } = Je(),
|
|
54
|
+
const { vue_ui_chestnut: Ie } = Je(), Y = m(() => !!O.dataset && O.dataset.length), w = T(Qe()), Z = T(null), Pe = T(null), ce = T(0), e = m({
|
|
55
55
|
get: () => ye(),
|
|
56
56
|
set: (l) => l
|
|
57
57
|
}), { userOptionsVisible: ee, setUserOptionsVisibility: de, keepUserOptionState: ve } = ht({ config: e.value });
|
|
@@ -69,12 +69,12 @@ const bt = ["id"], pt = {
|
|
|
69
69
|
} : l;
|
|
70
70
|
}
|
|
71
71
|
qe(() => O.config, (l) => {
|
|
72
|
-
e.value = ye(), ee.value = !e.value.showOnChartHover, me();
|
|
72
|
+
e.value = ye(), ee.value = !e.value.showOnChartHover, U.value.showTable = e.value.table.show, me();
|
|
73
73
|
}, { deep: !0 });
|
|
74
74
|
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: pe } = nt({
|
|
75
75
|
elementId: `vue-ui-chestnut_${w.value}`,
|
|
76
76
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
77
|
-
}), Ve = m(() => e.value.userOptions.show), te = m(() => tt(e.value.customPalette)),
|
|
77
|
+
}), Ve = m(() => e.value.userOptions.show), te = m(() => tt(e.value.customPalette)), U = T({
|
|
78
78
|
showTable: e.value.table.show
|
|
79
79
|
}), le = T(null), ge = T(!1), Oe = m(() => e.value.table.responsiveBreakpoint), r = T({
|
|
80
80
|
gap: 6,
|
|
@@ -96,7 +96,7 @@ const bt = ["id"], pt = {
|
|
|
96
96
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
97
97
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
98
98
|
seedX: r.value.padding.left + 64
|
|
99
|
-
})), M = m(() =>
|
|
99
|
+
})), M = m(() => Y.value ? O.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (O.dataset.forEach((l, i) => {
|
|
100
100
|
re({
|
|
101
101
|
datasetObject: l,
|
|
102
102
|
requiredAttributes: ["name", "branches"]
|
|
@@ -233,7 +233,7 @@ const bt = ["id"], pt = {
|
|
|
233
233
|
function Ee() {
|
|
234
234
|
return C.value.bottom - (d.value.y1 + 180) < 0 ? 0 : C.value.bottom;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function D(l) {
|
|
237
237
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
238
238
|
}
|
|
239
239
|
function Ue() {
|
|
@@ -296,7 +296,7 @@ const bt = ["id"], pt = {
|
|
|
296
296
|
q.value = l, ce.value += 1;
|
|
297
297
|
}
|
|
298
298
|
function we() {
|
|
299
|
-
|
|
299
|
+
U.value.showTable = !U.value.showTable;
|
|
300
300
|
}
|
|
301
301
|
const W = T(!1);
|
|
302
302
|
function se() {
|
|
@@ -327,7 +327,7 @@ const bt = ["id"], pt = {
|
|
|
327
327
|
onClose: se
|
|
328
328
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
329
329
|
Ve.value ? (a(), o("div", pt, null, 512)) : f("", !0),
|
|
330
|
-
e.value.userOptions.show &&
|
|
330
|
+
e.value.userOptions.show && Y.value && (n(ve) || n(ee)) ? (a(), K(rt, {
|
|
331
331
|
ref_key: "details",
|
|
332
332
|
ref: Pe,
|
|
333
333
|
key: `user_options_${ce.value}`,
|
|
@@ -400,7 +400,7 @@ const bt = ["id"], pt = {
|
|
|
400
400
|
key: "5"
|
|
401
401
|
} : void 0
|
|
402
402
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
403
|
-
r.value.height > 0 &&
|
|
403
|
+
r.value.height > 0 && Y.value ? (a(), o("svg", {
|
|
404
404
|
key: 3,
|
|
405
405
|
xmlns: n(at),
|
|
406
406
|
class: k({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
@@ -814,7 +814,7 @@ const bt = ["id"], pt = {
|
|
|
814
814
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
815
815
|
}, null, 10, pl),
|
|
816
816
|
(a(!0), o(g, null, _(R.value, (t) => (a(), o("g", null, [
|
|
817
|
-
|
|
817
|
+
D(t) ? (a(), o("path", {
|
|
818
818
|
key: 0,
|
|
819
819
|
d: n(ot)(
|
|
820
820
|
t,
|
|
@@ -899,7 +899,7 @@ const bt = ["id"], pt = {
|
|
|
899
899
|
{ datapoint: d.value }
|
|
900
900
|
)), 11, $l),
|
|
901
901
|
(a(!0), o(g, null, _(R.value, (t, u) => (a(), o("g", null, [
|
|
902
|
-
|
|
902
|
+
D(t) ? (a(), o("text", {
|
|
903
903
|
key: 0,
|
|
904
904
|
x: n(V)(t).x,
|
|
905
905
|
"text-anchor": n(V)(t).anchor,
|
|
@@ -909,7 +909,7 @@ const bt = ["id"], pt = {
|
|
|
909
909
|
style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
910
910
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
911
911
|
}, " ⬤ ", 14, Cl)) : f("", !0),
|
|
912
|
-
|
|
912
|
+
D(t) ? (a(), o("text", {
|
|
913
913
|
key: 1,
|
|
914
914
|
x: n(V)(t, !0).x,
|
|
915
915
|
"text-anchor": n(V)(t, !0).anchor,
|
|
@@ -921,7 +921,7 @@ const bt = ["id"], pt = {
|
|
|
921
921
|
}, c(d.value.breakdown[u].name), 15, Tl)) : f("", !0)
|
|
922
922
|
]))), 256)),
|
|
923
923
|
(a(!0), o(g, null, _(R.value, (t, u) => (a(), o("g", null, [
|
|
924
|
-
|
|
924
|
+
D(t) ? (a(), o("text", {
|
|
925
925
|
key: 0,
|
|
926
926
|
x: n(V)(t, !0).x,
|
|
927
927
|
"text-anchor": n(V)(t).anchor,
|
|
@@ -945,7 +945,7 @@ const bt = ["id"], pt = {
|
|
|
945
945
|
}),
|
|
946
946
|
{ datapoint: R.value, seriesIndex: u }
|
|
947
947
|
)), 15, zl)) : f("", !0),
|
|
948
|
-
|
|
948
|
+
D(t) ? (a(), o("text", {
|
|
949
949
|
key: 1,
|
|
950
950
|
x: n(V)(t, !0).x,
|
|
951
951
|
"text-anchor": n(V)(t).anchor,
|
|
@@ -959,7 +959,7 @@ const bt = ["id"], pt = {
|
|
|
959
959
|
s: "%",
|
|
960
960
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
961
961
|
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[u].rootName), 15, Nl)) : f("", !0),
|
|
962
|
-
|
|
962
|
+
D(t) ? (a(), o("text", {
|
|
963
963
|
key: 2,
|
|
964
964
|
x: n(V)(t, !0).x,
|
|
965
965
|
"text-anchor": n(V)(t).anchor,
|
|
@@ -1028,7 +1028,7 @@ const bt = ["id"], pt = {
|
|
|
1028
1028
|
l.$slots.watermark ? (a(), o("div", Pl, [
|
|
1029
1029
|
F(l.$slots, "watermark", ue(ne({ isPrinting: n(he) || n(fe) })), void 0, !0)
|
|
1030
1030
|
])) : f("", !0),
|
|
1031
|
-
|
|
1031
|
+
Y.value ? f("", !0) : (a(), K(it, {
|
|
1032
1032
|
key: 5,
|
|
1033
1033
|
config: {
|
|
1034
1034
|
type: "chestnut",
|
|
@@ -1044,11 +1044,11 @@ const bt = ["id"], pt = {
|
|
|
1044
1044
|
l.$slots.source ? (a(), o("div", Vl, [
|
|
1045
1045
|
F(l.$slots, "source", {}, void 0, !0)
|
|
1046
1046
|
], 512)) : f("", !0),
|
|
1047
|
-
|
|
1047
|
+
Y.value ? (a(), K(dt, {
|
|
1048
1048
|
key: 7,
|
|
1049
1049
|
hideDetails: "",
|
|
1050
1050
|
config: {
|
|
1051
|
-
open:
|
|
1051
|
+
open: U.value.showTable,
|
|
1052
1052
|
maxHeight: 1e4,
|
|
1053
1053
|
body: {
|
|
1054
1054
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1071,8 +1071,8 @@ const bt = ["id"], pt = {
|
|
|
1071
1071
|
role: "button",
|
|
1072
1072
|
tabindex: "0",
|
|
1073
1073
|
style: h(`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};`),
|
|
1074
|
-
onClick: i[0] || (i[0] = (t) =>
|
|
1075
|
-
onKeypress: i[1] || (i[1] = Ke((t) =>
|
|
1074
|
+
onClick: i[0] || (i[0] = (t) => U.value.showTable = !1),
|
|
1075
|
+
onKeypress: i[1] || (i[1] = Ke((t) => U.value.showTable = !1, ["enter"]))
|
|
1076
1076
|
}, [
|
|
1077
1077
|
$e(ct, {
|
|
1078
1078
|
name: "close",
|
|
@@ -1216,7 +1216,7 @@ const bt = ["id"], pt = {
|
|
|
1216
1216
|
}, 8, ["config"])) : f("", !0)
|
|
1217
1217
|
], 46, bt));
|
|
1218
1218
|
}
|
|
1219
|
-
}, Oa = /* @__PURE__ */ ft(ka, [["__scopeId", "data-v-
|
|
1219
|
+
}, Oa = /* @__PURE__ */ ft(ka, [["__scopeId", "data-v-e72f0abf"]]);
|
|
1220
1220
|
export {
|
|
1221
1221
|
Oa as default
|
|
1222
1222
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-COIn1phv.cjs"),Z=require("./usePrinter-CXXfgFFN.cjs"),me=require("./vue-ui-skeleton-BIqMxXV7.cjs"),be=require("./BaseIcon-BVrsMbvi.cjs"),ge=require("./vue-ui-accordion-CGlnNTr8.cjs"),ee=require("./useNestedProp-CbMuGGl3.cjs"),ke=require("./PackageVersion-BjfedMsH.cjs"),_e=require("./PenAndPaper-nqRtAh6J.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce=["width","height"],we={key:1},ze=["fill","font-weight","font-size","x","y"],Ve=["fill","font-weight","font-size","x","y"],$e=["id"],Te=["stop-color"],Fe=["stop-color"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Me=["stop-color"],Ie=["stop-color"],Re=["stop-color"],Xe=["id"],Ae=["stop-color"],je=["stop-color"],Ge=["stop-color"],Ue=["id"],qe=["stop-color"],Ye=["stop-color"],He=["stop-color"],We={key:2},Ke=["x","y","font-size","font-weight","fill"],Je=["x","y","font-size","font-weight","fill"],Qe=["d","stroke"],Ze=["cx","cy","r","fill"],et=["cx","cy","r","fill","stroke","stroke-width","onClick"],tt={key:3},lt=["x","y","font-size","fill","onClick"],at={key:0},ot=["x","y","fill","font-size","font-weight"],nt=["x","y","height","width","fill","rx","onClick"],rt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],st={key:4},ut=["x","y","fill","font-size","onClick"],ct=["d","stroke"],it=["fill","cx","cy","r","onClick"],dt={key:5},yt=["x","y","font-size","font-weight","fill"],vt=["x1","x2","y1","y2","stroke","stroke-width"],ht=["y","height","width"],pt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ft={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},mt={viewBox:"0 0 20 20",height:"16",width:"16"},bt=["fill"],gt={key:7},kt=["y","height","width"],_t={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},xt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},Bt={viewBox:"0 0 20 20",height:"16",width:"16"},Et=["fill"],Nt=["cx","cy","fill"],St=["d","stroke"],Ct=["cx","cy","fill"],wt=["d","stroke"],zt=["cx","cy","fill"],Vt=["cx","cy","fill"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","y","fill","font-size","font-weight"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt=["x","y","font-size","fill"],Xt={key:4,class:"vue-data-ui-watermark"},At={key:6,ref:"source",dir:"auto"},jt={style:{"padding-top":"36px",position:"relative"}},Gt={class:"vue-ui-data-table"},Ut={key:0},qt=["data-cell"],Yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ht={key:0},Wt={key:1},Kt=["data-cell"],Jt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qt={key:0},Zt={key:1},el=["data-cell"],tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ll={key:0},al={key:1},ol=["data-cell"],nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rl={key:0},sl={key:1},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il={key:0},dl={key:1},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl={key:0},pl={key:1},fl=["data-cell"],ml={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},bl={key:0},gl={key:1},kl=["data-cell"],_l={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xl=["data-cell"],Bl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},El=["data-cell"],Nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Sl=["data-cell"],Cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Vl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({f3fa2852:a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),w=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.showOnChartHover,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),z=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>w.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function C(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Tl)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){z.value.showTable=!z.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&w.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&w.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",we,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Ve)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Fe)],8,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Oe)],8,Le))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Re)],8,Pe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ge)],8,Xe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,qe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,He)],8,Ue)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ke),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Je)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-1HOIfTy2.cjs"),Z=require("./usePrinter-i-j4CdEi.cjs"),me=require("./vue-ui-skeleton-CLiDRcQX.cjs"),be=require("./BaseIcon-CdOKZmHr.cjs"),ge=require("./vue-ui-accordion-Cd6GaDwU.cjs"),ee=require("./useNestedProp-BFNnjpX-.cjs"),ke=require("./PackageVersion-DvDNPRrJ.cjs"),_e=require("./PenAndPaper--xHLJRME.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce=["width","height"],we={key:1},ze=["fill","font-weight","font-size","x","y"],Ve=["fill","font-weight","font-size","x","y"],$e=["id"],Te=["stop-color"],Fe=["stop-color"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Me=["stop-color"],Ie=["stop-color"],Re=["stop-color"],Xe=["id"],Ae=["stop-color"],je=["stop-color"],Ge=["stop-color"],Ue=["id"],qe=["stop-color"],Ye=["stop-color"],He=["stop-color"],We={key:2},Ke=["x","y","font-size","font-weight","fill"],Je=["x","y","font-size","font-weight","fill"],Qe=["d","stroke"],Ze=["cx","cy","r","fill"],et=["cx","cy","r","fill","stroke","stroke-width","onClick"],tt={key:3},lt=["x","y","font-size","fill","onClick"],at={key:0},ot=["x","y","fill","font-size","font-weight"],nt=["x","y","height","width","fill","rx","onClick"],rt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],st={key:4},ut=["x","y","fill","font-size","onClick"],ct=["d","stroke"],it=["fill","cx","cy","r","onClick"],dt={key:5},yt=["x","y","font-size","font-weight","fill"],vt=["x1","x2","y1","y2","stroke","stroke-width"],ht=["y","height","width"],pt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ft={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},mt={viewBox:"0 0 20 20",height:"16",width:"16"},bt=["fill"],gt={key:7},kt=["y","height","width"],_t={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},xt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},Bt={viewBox:"0 0 20 20",height:"16",width:"16"},Et=["fill"],Nt=["cx","cy","fill"],St=["d","stroke"],Ct=["cx","cy","fill"],wt=["d","stroke"],zt=["cx","cy","fill"],Vt=["cx","cy","fill"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","y","fill","font-size","font-weight"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt=["x","y","font-size","fill"],Xt={key:4,class:"vue-data-ui-watermark"},At={key:6,ref:"source",dir:"auto"},jt={style:{"padding-top":"36px",position:"relative"}},Gt={class:"vue-ui-data-table"},Ut={key:0},qt=["data-cell"],Yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ht={key:0},Wt={key:1},Kt=["data-cell"],Jt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qt={key:0},Zt={key:1},el=["data-cell"],tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ll={key:0},al={key:1},ol=["data-cell"],nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rl={key:0},sl={key:1},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il={key:0},dl={key:1},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl={key:0},pl={key:1},fl=["data-cell"],ml={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},bl={key:0},gl={key:1},kl=["data-cell"],_l={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xl=["data-cell"],Bl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},El=["data-cell"],Nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Sl=["data-cell"],Cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Vl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({b911a264:a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.showOnChartHover,C.value.showTable=t.value.table.show,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),C=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Tl)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){C.value.showTable=!C.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",we,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Ve)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Fe)],8,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Oe)],8,Le))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Re)],8,Pe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ge)],8,Xe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,qe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,He)],8,Ue)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ke),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Je)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
2
2
|
${l.x1},${l.y1+d}
|
|
3
3
|
C${l.x1-20},${l.y1+d}
|
|
4
4
|
${l.x1-80},${l.y1+d}
|
|
5
5
|
${O(l).x+O(l).r/2}, ${O(l).y}
|
|
6
|
-
`,stroke:e.unref(o.setOpacity)(l.color,t.value.style.chart.layout.links.opacity),fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:e.normalizeStyle(`opacity:${g(l)?1:0}`),onClick:p},null,12,Qe))),256))]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`)},null,12,Ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${h.value}_${l.rootIndex})`:l.color,stroke:t.value.style.chart.layout.roots.stroke,"stroke-width":t.value.style.chart.layout.roots.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>W(l)},null,12,et))),256)),t.value.style.chart.layout.roots.labels.show?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y+t.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":t.value.style.chart.layout.roots.labels.fontSize,fill:t.value.style.chart.layout.roots.labels.adaptColorToBackground?e.unref(o.adaptColorToBackground)(l.color):t.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>W(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.roots.labels.prefix,v:l.total,s:t.value.style.chart.layout.roots.labels.suffix,r:t.value.style.chart.layout.roots.labels.roundingValue}),{datapoint:l})),13,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("g",null,[u.value&&l.rootIndex===u.value.rootIndex||v.value&&l.rootIndex===v.value.rootIndex||b.value&&l.rootIndex===b.value.rootIndex?(e.openBlock(),e.createElementBlock("g",at,[e.createElementVNode("text",{x:l.x,y:l.y+l.r+24,"text-anchor":"middle",fill:t.value.style.chart.layout.roots.labels.name.color,"font-size":t.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":t.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:p},e.toDisplayString(l.name),9,ot)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.underlayerColor,rx:t.value.style.chart.layout.branches.borderRadius,stroke:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.05}`),onClick:n=>P(l)},null,12,nt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${h.value}_${l.rootIndex})`:l.color,rx:t.value.style.chart.layout.branches.borderRadius,stroke:t.value.style.chart.layout.branches.stroke,"stroke-width":t.value.style.chart.layout.branches.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>P(l)},null,12,rt))),256)),t.value.style.chart.layout.branches.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[l.proportionToRoot*100>t.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize/1.5,"text-anchor":"start",fill:e.unref(o.adaptColorToBackground)(l.color),"font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:n=>P(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),13,ut)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o.makeDonut)({series:l.breakdown,base:1},l.x2+24+t.value.style.chart.layout.nuts.offsetX,l.y1+r.value.branchSize/2,r.value.branchSize/3,r.value.branchSize/3),(d,i)=>(e.openBlock(),e.createElementBlock("path",{d:d.path,stroke:d.color,"stroke-width":10,fill:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},null,12,ct))),256)),e.createElementVNode("circle",{fill:t.value.style.chart.layout.nuts.useGradient?`url(#nut_${h.value})`:"transparent",cx:l.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:l.y1+r.value.branchSize/2,r:r.value.branchSize/2+2,onClick:d=>ve(l),style:e.normalizeStyle(`cursor:pointer;opacity:${g(l)?1:.1}`)},null,12,it)]))),256)),t.value.style.chart.layout.branches.labels.show&&!v.value?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x2+r.value.branchSize+24+t.value.style.chart.layout.nuts.offsetX,y:l.y1+r.value.branchSize/2+5,"font-size":t.value.style.chart.layout.branches.labels.fontSize,"font-weight":t.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:t.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},e.toDisplayString(l.name),13,yt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:256+r.value.padding.left,x2:256+r.value.padding.left,y1:f.value.top,y2:f.value.bottom,stroke:t.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":t.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,vt),!u.value&&!v.value?(e.openBlock(),e.createElementBlock("foreignObject",{key:6,x:0,y:f.value.bottom,height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",pt,[e.createElementVNode("div",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",mt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,bt)])),e.createElementVNode("span",null,e.toDisplayString(l.name)+":",1),e.createElementVNode("b",null,e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.legend.prefix,v:l.total,s:t.value.style.chart.layout.legend.suffix,r:t.value.style.chart.layout.legend.roundingValue}),{datapoint:l})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(o.dataLabel)({v:l.total/_.value*100,s:"%",r:t.value.style.chart.layout.legend.roundingPercentage}))+") ",1)],4))),256))])])],8,ht)):e.createCommentVNode("",!0),u.value&&x.value?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:0,y:he(),height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",_t,[e.createElementVNode("b",null,e.toDisplayString(u.value.name),1),e.createElementVNode("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.breakdown,(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",Bt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,Et)])),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+": ",1),e.createElementVNode("b",null,e.toDisplayString(t.value.style.chart.layout.legend.prefix)+" "+e.toDisplayString(l.value.toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.legend.suffix),1),e.createTextVNode(" ("+e.toDisplayString((l.proportionToBranch*100).toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,kt)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("g",null,[C(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+r.value.branchSize/2},16,16,!1,!1,64),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,St)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:118,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Ct),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("path",{d:l.path,stroke:l.color,"stroke-width":64,fill:"none",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wt))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:100,fill:`url(#nutpick_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,zt),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:48,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Vt),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+8,fill:t.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(t.value.translations.total),11,$t),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+36,fill:t.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.core.value.prefix,v:u.value.value,s:t.value.style.chart.layout.nuts.selected.labels.core.value.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:u.value})),11,Tt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[C(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:l.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Ft)):e.createCommentVNode("",!0),C(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(u.value.breakdown[n].name),15,Lt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[C(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].value/u.value.value*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].branchName)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.breakdown[n].value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,v:u.value.breakdown[n].value,s:t.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:x.value,seriesIndex:n})),15,Dt)):e.createCommentVNode("",!0),C(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToRoot*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].rootName),15,Ot)):e.createCommentVNode("",!0),C(l)?(e.openBlock(),e.createElementBlock("text",{key:2,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToTree*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),15,Pt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),9,Mt)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x1+6,y:l.y1+r.value.branchSize+48,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.proportionToRoot*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(l.rootName),9,It)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.x1+6,y:l.y1+r.value.branchSize+72,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.value/_.value*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),9,Rt)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,Se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Xt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:5,config:{type:"chestnut",style:{backgroundColor:t.value.style.chart.backgroundColor,chestnut:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(a.$slots,"legend",{legend:m.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",At,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createBlock(ge.default,{key:7,hideDetails:"",config:{open:z.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:D,class:"vue-ui-chestnut-table"},[e.createElementVNode("div",jt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`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:${t.value.table.th.backgroundColor};`),onClick:s[0]||(s[0]=l=>z.value.showTable=!1),onKeypress:s[1]||(s[1]=e.withKeys(l=>z.value.showTable=!1,["enter"]))},[e.createVNode(be.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%"},class:e.normalizeClass({"vue-ui-responsive":Y.value})},[e.createElementVNode("table",Gt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.layout.title.text)+" ",1),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ut,e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},e.toDisplayString(l),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[0]},[e.createElementVNode("div",Yt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Ht)):(e.openBlock(),e.createElementBlock("span",Wt,e.toDisplayString(l.rootName),1))])],12,qt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[1]},[e.createElementVNode("div",Jt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Qt)):(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(l.rootValue.toFixed(t.value.table.td.roundingValue)),1))])],12,Kt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[2]},[e.createElementVNode("div",tl,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",ll)):(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString((l.rootToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,el),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[3]},[e.createElementVNode("div",nl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",rl)):(e.openBlock(),e.createElementBlock("span",sl,e.toDisplayString(l.branchName),1))])],12,ol),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[4]},[e.createElementVNode("div",cl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",il)):(e.openBlock(),e.createElementBlock("span",dl,e.toDisplayString(l.branchValue.toFixed(t.value.table.td.roundingValue)),1))])],12,ul),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[5]},[e.createElementVNode("div",vl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",hl)):(e.openBlock(),e.createElementBlock("span",pl,e.toDisplayString((l.branchToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,yl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[6]},[e.createElementVNode("div",ml,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",bl)):(e.openBlock(),e.createElementBlock("span",gl,e.toDisplayString((l.branchToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,fl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[7]},[e.createElementVNode("div",_l,e.toDisplayString(l.nutName),1)],12,kl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[8]},[e.createElementVNode("div",Bl,e.toDisplayString(l.nutValue.toFixed(t.value.table.td.roundingValue)),1)],12,xl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[9]},[e.createElementVNode("div",Nl,e.toDisplayString((l.nutToBranch*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,El),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[10]},[e.createElementVNode("div",Cl,e.toDisplayString((l.nutToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,Sl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[11]},[e.createElementVNode("div",zl,e.toDisplayString((l.nutToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,wl)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ee))}},$l=Be._export_sfc(Vl,[["__scopeId","data-v-69e2f84d"]]);exports.default=$l;
|
|
6
|
+
`,stroke:e.unref(o.setOpacity)(l.color,t.value.style.chart.layout.links.opacity),fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:e.normalizeStyle(`opacity:${g(l)?1:0}`),onClick:p},null,12,Qe))),256))]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`)},null,12,Ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${h.value}_${l.rootIndex})`:l.color,stroke:t.value.style.chart.layout.roots.stroke,"stroke-width":t.value.style.chart.layout.roots.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>W(l)},null,12,et))),256)),t.value.style.chart.layout.roots.labels.show?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y+t.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":t.value.style.chart.layout.roots.labels.fontSize,fill:t.value.style.chart.layout.roots.labels.adaptColorToBackground?e.unref(o.adaptColorToBackground)(l.color):t.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>W(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.roots.labels.prefix,v:l.total,s:t.value.style.chart.layout.roots.labels.suffix,r:t.value.style.chart.layout.roots.labels.roundingValue}),{datapoint:l})),13,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("g",null,[u.value&&l.rootIndex===u.value.rootIndex||v.value&&l.rootIndex===v.value.rootIndex||b.value&&l.rootIndex===b.value.rootIndex?(e.openBlock(),e.createElementBlock("g",at,[e.createElementVNode("text",{x:l.x,y:l.y+l.r+24,"text-anchor":"middle",fill:t.value.style.chart.layout.roots.labels.name.color,"font-size":t.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":t.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:p},e.toDisplayString(l.name),9,ot)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.underlayerColor,rx:t.value.style.chart.layout.branches.borderRadius,stroke:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.05}`),onClick:n=>P(l)},null,12,nt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${h.value}_${l.rootIndex})`:l.color,rx:t.value.style.chart.layout.branches.borderRadius,stroke:t.value.style.chart.layout.branches.stroke,"stroke-width":t.value.style.chart.layout.branches.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>P(l)},null,12,rt))),256)),t.value.style.chart.layout.branches.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[l.proportionToRoot*100>t.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize/1.5,"text-anchor":"start",fill:e.unref(o.adaptColorToBackground)(l.color),"font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:n=>P(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),13,ut)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o.makeDonut)({series:l.breakdown,base:1},l.x2+24+t.value.style.chart.layout.nuts.offsetX,l.y1+r.value.branchSize/2,r.value.branchSize/3,r.value.branchSize/3),(d,i)=>(e.openBlock(),e.createElementBlock("path",{d:d.path,stroke:d.color,"stroke-width":10,fill:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},null,12,ct))),256)),e.createElementVNode("circle",{fill:t.value.style.chart.layout.nuts.useGradient?`url(#nut_${h.value})`:"transparent",cx:l.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:l.y1+r.value.branchSize/2,r:r.value.branchSize/2+2,onClick:d=>ve(l),style:e.normalizeStyle(`cursor:pointer;opacity:${g(l)?1:.1}`)},null,12,it)]))),256)),t.value.style.chart.layout.branches.labels.show&&!v.value?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x2+r.value.branchSize+24+t.value.style.chart.layout.nuts.offsetX,y:l.y1+r.value.branchSize/2+5,"font-size":t.value.style.chart.layout.branches.labels.fontSize,"font-weight":t.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:t.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},e.toDisplayString(l.name),13,yt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:256+r.value.padding.left,x2:256+r.value.padding.left,y1:f.value.top,y2:f.value.bottom,stroke:t.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":t.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,vt),!u.value&&!v.value?(e.openBlock(),e.createElementBlock("foreignObject",{key:6,x:0,y:f.value.bottom,height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",pt,[e.createElementVNode("div",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",mt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,bt)])),e.createElementVNode("span",null,e.toDisplayString(l.name)+":",1),e.createElementVNode("b",null,e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.legend.prefix,v:l.total,s:t.value.style.chart.layout.legend.suffix,r:t.value.style.chart.layout.legend.roundingValue}),{datapoint:l})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(o.dataLabel)({v:l.total/_.value*100,s:"%",r:t.value.style.chart.layout.legend.roundingPercentage}))+") ",1)],4))),256))])])],8,ht)):e.createCommentVNode("",!0),u.value&&x.value?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:0,y:he(),height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",_t,[e.createElementVNode("b",null,e.toDisplayString(u.value.name),1),e.createElementVNode("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.breakdown,(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",Bt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,Et)])),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+": ",1),e.createElementVNode("b",null,e.toDisplayString(t.value.style.chart.layout.legend.prefix)+" "+e.toDisplayString(l.value.toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.legend.suffix),1),e.createTextVNode(" ("+e.toDisplayString((l.proportionToBranch*100).toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,kt)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Nt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+r.value.branchSize/2},16,16,!1,!1,64),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,St)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:118,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Ct),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("path",{d:l.path,stroke:l.color,"stroke-width":64,fill:"none",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wt))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:100,fill:`url(#nutpick_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,zt),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:48,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Vt),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+8,fill:t.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(t.value.translations.total),11,$t),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+36,fill:t.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.core.value.prefix,v:u.value.value,s:t.value.style.chart.layout.nuts.selected.labels.core.value.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:u.value})),11,Tt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:l.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Ft)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(u.value.breakdown[n].name),15,Lt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].value/u.value.value*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].branchName)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.breakdown[n].value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,v:u.value.breakdown[n].value,s:t.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:x.value,seriesIndex:n})),15,Dt)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToRoot*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].rootName),15,Ot)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:2,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToTree*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),15,Pt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),9,Mt)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x1+6,y:l.y1+r.value.branchSize+48,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.proportionToRoot*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(l.rootName),9,It)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.x1+6,y:l.y1+r.value.branchSize+72,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.value/_.value*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),9,Rt)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,Se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Xt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:5,config:{type:"chestnut",style:{backgroundColor:t.value.style.chart.backgroundColor,chestnut:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(a.$slots,"legend",{legend:m.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",At,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(ge.default,{key:7,hideDetails:"",config:{open:C.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:D,class:"vue-ui-chestnut-table"},[e.createElementVNode("div",jt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`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:${t.value.table.th.backgroundColor};`),onClick:s[0]||(s[0]=l=>C.value.showTable=!1),onKeypress:s[1]||(s[1]=e.withKeys(l=>C.value.showTable=!1,["enter"]))},[e.createVNode(be.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%"},class:e.normalizeClass({"vue-ui-responsive":Y.value})},[e.createElementVNode("table",Gt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.layout.title.text)+" ",1),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ut,e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},e.toDisplayString(l),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[0]},[e.createElementVNode("div",Yt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Ht)):(e.openBlock(),e.createElementBlock("span",Wt,e.toDisplayString(l.rootName),1))])],12,qt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[1]},[e.createElementVNode("div",Jt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Qt)):(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(l.rootValue.toFixed(t.value.table.td.roundingValue)),1))])],12,Kt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[2]},[e.createElementVNode("div",tl,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",ll)):(e.openBlock(),e.createElementBlock("span",al,e.toDisplayString((l.rootToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,el),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[3]},[e.createElementVNode("div",nl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",rl)):(e.openBlock(),e.createElementBlock("span",sl,e.toDisplayString(l.branchName),1))])],12,ol),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[4]},[e.createElementVNode("div",cl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",il)):(e.openBlock(),e.createElementBlock("span",dl,e.toDisplayString(l.branchValue.toFixed(t.value.table.td.roundingValue)),1))])],12,ul),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[5]},[e.createElementVNode("div",vl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",hl)):(e.openBlock(),e.createElementBlock("span",pl,e.toDisplayString((l.branchToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,yl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[6]},[e.createElementVNode("div",ml,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",bl)):(e.openBlock(),e.createElementBlock("span",gl,e.toDisplayString((l.branchToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,fl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[7]},[e.createElementVNode("div",_l,e.toDisplayString(l.nutName),1)],12,kl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[8]},[e.createElementVNode("div",Bl,e.toDisplayString(l.nutValue.toFixed(t.value.table.td.roundingValue)),1)],12,xl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[9]},[e.createElementVNode("div",Nl,e.toDisplayString((l.nutToBranch*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,El),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[10]},[e.createElementVNode("div",Cl,e.toDisplayString((l.nutToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,Sl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[11]},[e.createElementVNode("div",zl,e.toDisplayString((l.nutToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,wl)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ee))}},$l=Be._export_sfc(Vl,[["__scopeId","data-v-e72f0abf"]]);exports.default=$l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-BFNnjpX-.cjs"),i=require("./index-1HOIfTy2.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=l=>(t.pushScopeId("data-v-6a1383ea"),l=l(),t.popScopeId(),l),p=["xmlns","height","width"],x={id:"follower",fy:"30%",fx:"30%"},E=["stop-color","stop-opacity"],N=m(()=>t.createElementVNode("stop",{offset:"95%","stop-color":"transparent"},null,-1)),g=["r","fill","stroke","stroke-width","stroke-dasharray"],V=["r","fill"],S={key:2,class:"wave"},w=["id"],B=["id"],R=m(()=>t.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),b=["filter","stroke"],F={key:3,class:"crosshair"},z=["x1","stroke","stroke-width","stroke-dasharray"],I=["x1","stroke","stroke-width","stroke-dasharray"],L=["y1","stroke","stroke-width","stroke-dasharray"],O=["y1","stroke","stroke-width","stroke-dasharray"],T=["cy","r","fill"],D=["cy","r","fill"],$=["cx","r","fill"],W=["cx","r","fill"],G={key:5,class:"coordinates"},P=["x","y","font-size","fill"],q=["transform"],A=["font-size","fill"],M={__name:"vue-ui-cursor",props:{config:{type:Object,default:{}}},setup(l){const k=l,{vue_ui_cursor:y}=i.useConfig(),c=t.ref(i.createUid()),e=t.computed(()=>_.useNestedProp({userConfig:k.config,defaultConfig:y})),o=t.ref({x:-100,y:-100});function u({clientX:r,clientY:f,...j}){o.value.x=r-e.value.centerCircleRadius,o.value.y=f-e.value.centerCircleRadius}function d(r){o.value.x=r.targetTouches[0].clientX-e.value.centerCircleRadius,o.value.y=r.targetTouches[0].clientY-e.value.centerCircleRadius}const v=t.ref(!0);function s(r){v.value=r}const a=t.ref(!1),n=t.ref(null);function h(){a.value=!1,n.value&&clearTimeout(n.value),t.nextTick(()=>{a.value=!0,n.value=setTimeout(()=>{a.value=!1},1e3)})}return t.onMounted(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.addEventListener("mousemove",u),r.addEventListener("touchmove",d),r.addEventListener("mouseleave",()=>s(!1)),r.addEventListener("mouseenter",()=>s(!0)),r.addEventListener("click",h)}),t.onBeforeUnmount(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.removeEventListener("mousemove",u),r.removeEventListener("touchmove",d),r.removeEventListener("mouseleave",()=>s(!1)),r.removeEventListener("mouseenter",()=>s(!0)),r.removeEventListener("click",h)}),t.computed(()=>e.value.centerCircleRadius/2.5),(r,f)=>v.value?(t.openBlock(),t.createElementBlock("svg",{key:0,"data-html2canvas-ignore":"",xmlns:t.unref(i.XMLNS),style:t.normalizeStyle(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${o.value.y}px; left:${o.value.x}px;`),viewBox:"0 0 100 100",height:e.value.centerCircleRadius*2,width:e.value.centerCircleRadius*2},[t.createElementVNode("defs",null,[t.createElementVNode("radialGradient",x,[t.createElementVNode("stop",{offset:"10%","stop-color":e.value.bubbleEffectColor,"stop-opacity":e.value.bubbleEffectOpacity},null,8,E),N])]),e.value.showCenterCircle?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:50,cy:50,r:e.value.centerCircleRadius,fill:t.unref(i.setOpacity)(e.value.centerCircleColor,e.value.centerCircleOpacity*100),stroke:e.value.centerCircleStroke,"stroke-width":e.value.centerCircleStrokeWidth,"stroke-dasharray":e.value.centerCircleDasharray},null,8,g)):t.createCommentVNode("",!0),e.value.bubbleEffect?(t.openBlock(),t.createElementBlock("circle",{key:1,cx:50,cy:50,r:e.value.centerCircleRadius,fill:"url(#follower)",stroke:"none"},null,8,V)):t.createCommentVNode("",!0),e.value.useWaveOnClick?(t.openBlock(),t.createElementBlock("g",S,[t.createElementVNode("defs",null,[t.createElementVNode("filter",{id:`blur_${c.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[t.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:4,id:`blur_std_${c.value}`},null,8,B),R],8,w)]),a.value?(t.openBlock(),t.createElementBlock("circle",{key:0,class:t.normalizeClass({"circle-wave":a.value}),cx:50,cy:50,r:50,filter:`url(#blur_${c.value})`,stroke:e.value.centerCircleStroke,fill:"none","stroke-width":"3"},null,10,b)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.value.showCrosshair?(t.openBlock(),t.createElementBlock("g",F,[t.createElementVNode("line",{x1:-e.value.centerCircleRadius+50,x2:-5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,z),t.createElementVNode("line",{x1:50+e.value.centerCircleRadius,x2:5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,I),t.createElementVNode("line",{x1:50,x2:50,y1:-e.value.centerCircleRadius+50,y2:-5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,L),t.createElementVNode("line",{x1:50,x2:50,y1:e.value.centerCircleRadius+50,y2:5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,O)])):t.createCommentVNode("",!0),e.value.showIntersectCircles?(t.openBlock(),t.createElementBlock("g",{key:4,class:t.normalizeClass({"rotating-circles":e.value.isLoading})},[t.createElementVNode("circle",{cx:50,cy:e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,T),t.createElementVNode("circle",{cx:50,cy:-e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,D),t.createElementVNode("circle",{cx:-e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,$),t.createElementVNode("circle",{cx:e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,W)],2)):t.createCommentVNode("",!0),e.value.showCoordinates?(t.openBlock(),t.createElementBlock("g",G,[t.createElementVNode("text",{"text-anchor":"end",x:-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,y:50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,"font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},"font-family":"Arial"},t.toDisplayString(o.value.x.toFixed(0)),9,P),t.createElementVNode("g",{transform:`translate(${50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset}, ${-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset})`},[t.createElementVNode("text",{"text-anchor":"start","font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},transform:"rotate(-90)","font-family":"Arial"},t.toDisplayString(o.value.y.toFixed(0)),9,A)],8,q)])):t.createCommentVNode("",!0)],12,p)):t.createCommentVNode("",!0)}},U=C._export_sfc(M,[["__scopeId","data-v-6a1383ea"]]);exports.default=U;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as m, onMounted as R, onBeforeUnmount as E, openBlock as o, createElementBlock as l, unref as C, normalizeStyle as b, createElementVNode as r, createCommentVNode as a, normalizeClass as p, toDisplayString as x, nextTick as F, pushScopeId as I, popScopeId as L } from "vue";
|
|
2
|
-
import { u as z } from "./useNestedProp-
|
|
3
|
-
import { u as O, c as B, X as N, s as T } from "./index-
|
|
2
|
+
import { u as z } from "./useNestedProp-BN1ZmAKT.js";
|
|
3
|
+
import { u as O, c as B, X as N, s as T } from "./index-BG5J_ybN.js";
|
|
4
4
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const g = (i) => (I("data-v-6a1383ea"), i = i(), L(), i), $ = ["xmlns", "height", "width"], W = {
|
|
6
6
|
id: "follower",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Z, computed as _, ref as s, watch as ee, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as x, createCommentVNode as E, Fragment as L, renderList as te, normalizeClass as oe, renderSlot as ae, pushScopeId as ne, popScopeId as le, createStaticVNode as ue } from "vue";
|
|
2
2
|
import se from "./pdf-B7oVat64.js";
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
4
|
-
import { u as re } from "./index-
|
|
3
|
+
import { u as ie } from "./useNestedProp-BN1ZmAKT.js";
|
|
4
|
+
import { u as re } from "./index-BG5J_ybN.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ce = (M) => (ne("data-v-0caf17e8"), M = M(), le(), M), he = {
|
|
7
7
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),j=require("./pdf-9cRTLjY8.cjs"),U=require("./useNestedProp-BFNnjpX-.cjs"),A=require("./index-1HOIfTy2.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),J=b=>(o.pushScopeId("data-v-0caf17e8"),b=b(),o.popScopeId(),b),K={key:0,"data-html2canvas-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},Q=["disabled"],Z=["stroke"],ee=o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-0caf17e8></path><path d="M18 16v.01" data-v-0caf17e8></path><path d="M6 16v.01" data-v-0caf17e8></path><path d="M12 5v.01" data-v-0caf17e8></path><path d="M12 12v.01" data-v-0caf17e8></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-0caf17e8></path>',6),te=[ee],oe={key:1},ae=["id"],le=J(()=>o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],se=["onMousedown","onTouchstart"],re=["onMousedown","onTouchstart"],ie=["onMousedown","onTouchstart"],T=20,ce={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(b,{expose:x,emit:S}){const E=b;o.useCssVars(e=>({"4458b906":L.value,"8bf0a1d8":W.value}));const{vue_ui_dashboard:I}=A.useConfig(),r=o.computed(()=>U.useNestedProp({userConfig:E.config,defaultConfig:I})),z=o.ref(`vue-ui-dashboard-${Math.random()}`),d=o.ref(r.value.locked);function X(){d.value=!d.value}const s=o.ref(E.dataset.map((e,t)=>({...e,index:t}))),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),i=o.ref(null),c=o.ref(!1),p=o.ref(null),m=o.ref(!1),w=o.ref(!1);function N(e){const t=e.target;(t.tagName==="INPUT"&&t.type==="range"||t.classList.contains("range-handle"))&&(w.value=!0)}function C(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(w.value=!1)}function $(){m.value=!0,j.default({domElement:document.getElementById(`vue-ui-dashboard_${z.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{m.value=!1})}function Y(e){if(!d.value&&(c.value=!0,p.value=e,u.value===null)){h.value=e,v.value={x:event.clientX,y:event.clientY};const t=s.value[e],l=100-t.width,a=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>l&&(t.left=l),t.top>a&&(t.top=a),t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left+t.width>100&&(t.left=100-t.width),t.top+t.height>100&&(t.top=100-t.height)}}function k(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const l=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:l.width,initialHeight:l.height}}function B(e,t,l){if(u.value.direction.includes("top")){const a=e.height-l/i.value.offsetHeight*100;a>=T&&(e.top+=l/i.value.offsetHeight*100,e.height=a)}if(u.value.direction.includes("bottom")){const a=e.height+l/i.value.offsetHeight*100;a>=T&&(e.height=a)}if(u.value.direction.includes("left")){const a=e.width-t/i.value.offsetWidth*100;a>=T&&(e.left+=t/i.value.offsetWidth*100,e.width=a)}if(u.value.direction.includes("right")){const a=e.width+t/i.value.offsetWidth*100;a>=T&&(e.width=a)}}function V(e){if(!(d.value||w.value)){if(c.value=!0,h.value!==null){const t=s.value[h.value],l=e.clientX-v.value.x,a=e.clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.clientX,y:e.clientY}}if(u.value!==null){const t=s.value[u.value.index],l=e.clientX-f.value.x,a=e.clientY-f.value.y;B(t,l,a),f.value={x:e.clientX,y:e.clientY}}}}o.watch(s,e=>{e&&!c.value&&S("change",s.value)},{deep:!0});function H(){h.value=null,u.value=null,c.value=!1,p.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}function P(e){d.value||w.value||(c.value=!0,p.value=e,u.value===null&&(h.value=e,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function _(e,t,l){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const a=s.value[e];f.value={x:l.touches[0].clientX,y:l.touches[0].clientY,initialWidth:a.width,initialHeight:a.height}}}function M(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],l=e.touches[0].clientX-f.value.x,a=e.touches[0].clientY-f.value.y;B(t,l,a),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function D(e){if(!(d.value||w.value)&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],l=e.touches[0].clientX-v.value.x,a=e.touches[0].clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function y(){c.value=!1,p.value=null,h.value=null,u.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}const L=o.computed(()=>r.value.style.item.borderColor),W=o.computed(()=>r.value.style.resizeHandles.backgroundColor),F=o.computed(()=>r.value.style.board.aspectRatio),R=o.computed(()=>r.value.style.board.backgroundColor),q=o.computed(()=>r.value.style.board.border);function O(){return s.value}return x({generatePdf:$,getItemsPositions:O,toggleLock:X}),(e,t)=>(o.openBlock(),o.createElementBlock("div",{onMousedown:N,onMouseup:C,onTouchstart:N,onTouchend:C},[r.value.allowPrint?(o.openBlock(),o.createElementBlock("div",K,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:$,disabled:m.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${r.value.style.board.color}`])},[m.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-dashboard-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:r.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},te,8,Z)):(o.openBlock(),o.createElementBlock("span",oe,"PDF"))],12,Q)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:i,id:`vue-ui-dashboard_${z.value}`,style:o.normalizeStyle(`border:${q.value}; sbackground:${R.value}; aspect-ratio:${F.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:V,onMouseup:H,onTouchmove:D,onTouchend:y,style:o.normalizeStyle(`background:${r.value.style.board.backgroundColor}`)},[le,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(l,a)=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${l.width}%`,height:`${l.height}%`,left:`${l.left}%`,top:`${l.top}%`,cursor:"move",boxShadow:p.value===a?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===a?s.value.length+1:l.index,backgroundColor:r.value.style.item.backgroundColor}),onMousedown:n=>Y(a),onTouchstart:n=>P(a)},[d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:n=>k(a,"top-left"),onTouchstart:n=>_(a,"top-left",n),onTouchmove:t[0]||(t[0]=n=>M(n)),onTouchend:y},null,40,ue),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>k(a,"top-right"),onTouchstart:n=>_(a,"top-right",n),onTouchmove:t[1]||(t[1]=n=>M(n)),onTouchend:y},null,40,se),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>k(a,"bottom-left"),onTouchstart:n=>_(a,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>M(n)),onTouchend:y},null,40,re),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>k(a,"bottom-right"),onTouchstart:n=>_(a,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>M(n)),onTouchend:y},null,40,ie)],64)),o.renderSlot(e.$slots,"content",{item:l,index:a,left:l.left,top:l.top,height:l.height,width:l.width},void 0,!0)],46,ne))),128))],36)],12,ae)],32))}},de=G._export_sfc(ce,[["__scopeId","data-v-0caf17e8"]]);exports.default=de;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-BFNnjpX-.cjs"),L=require("./index-1HOIfTy2.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
|