vue-data-ui 3.5.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,36 +1,53 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as zt, defineAsyncComponent as Z, computed as g, ref as S, toRefs as St, watch as fe, onMounted as Ft, nextTick as pe, createElementBlock as o, openBlock as a, unref as n, normalizeStyle as y, normalizeClass as w, createBlock as oe, createCommentVNode as h, renderSlot as C, withCtx as A, normalizeProps as R, guardReactiveProps as E, createSlots as Ee, createVNode as ge, createElementVNode as u, toDisplayString as c, Fragment as _, renderList as m, createTextVNode as Q, resolveDynamicComponent as Nt, mergeProps as Bt, withKeys as Dt } from "vue";
|
|
2
|
+
import { c as Lt, t as It, i as Ot, p as O, j as Pt, k as _e, g as se, l as me, o as Rt, a as j, d as F, X as Et, s as B, h as Ve, w as Me, Z as je, _ as Vt, $ as ee, a0 as P, u as Mt, q as jt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { u as Xt, a as xe } from "./useNestedProp-CWo6bftQ.js";
|
|
4
|
+
import { u as Gt, B as Ut } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Wt } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as Yt } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as qt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
+
import { u as Ht } from "./useTableResponsive-Cbx-ACcP.js";
|
|
9
|
+
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import Jt from "./img-DUzJeMlr.js";
|
|
12
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Xe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { grandTotal: { color: "#CCCCCC" }, roots: { stroke: "#1A1A1A", labels: { name: { color: "#CCCCCC" } } }, verticalSeparator: { stroke: "#1A1A1A" }, branches: { labels: { color: "#CCCCCC" } }, nuts: { selected: { labels: { dataLabels: { color: "#CCCCCC" }, core: { total: { color: "#CCCCCC" }, value: { color: "#CCCCCC" } } } } }, legend: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Ge = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { grandTotal: { color: "#424242" }, roots: { stroke: "#FFF8E1", labels: { name: { color: "#424242" } } }, verticalSeparator: { stroke: "#FFF8E1" }, branches: { borderRadius: 0, labels: { color: "#424242" } }, nuts: { selected: { labels: { dataLabels: { color: "#424242" }, core: { total: { color: "#424242" }, value: { color: "#424242" } } } } }, legend: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ue = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { grandTotal: { color: "#BDBDBD" }, roots: { stroke: "#1E1E1E", labels: { name: { color: "#BDBDBD" } } }, verticalSeparator: { stroke: "#1E1E1E" }, branches: { borderRadius: 0, labels: { color: "#BDBDBD" } }, nuts: { selected: { labels: { dataLabels: { color: "#BDBDBD" }, core: { total: { color: "#BDBDBD" }, value: { color: "#BDBDBD" } } } } }, legend: { color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, We = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { grandTotal: { color: "#99CC99" }, roots: { stroke: "#1A1A1A", labels: { name: { color: "#AACCAA" } } }, verticalSeparator: { stroke: "#1A1A1A" }, branches: { borderRadius: 0, labels: { color: "#AACCAA" } }, nuts: { selected: { labels: { dataLabels: { color: "#AACCAA" }, core: { total: { color: "#99CC99" }, value: { color: "#AACCAA" } } } } }, legend: { color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ye = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { grandTotal: { color: "#A0AC94" }, roots: { stroke: "#fbfafa", labels: { name: { color: "#A0AC94" } } }, verticalSeparator: { stroke: "#fbfafa" }, branches: { borderRadius: 12, labels: { color: "#A0AC94" } }, nuts: { selected: { labels: { dataLabels: { color: "#A0AC94" }, core: { total: { color: "#8A9892" }, value: { color: "#A0AC94" } } } } }, legend: { color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, qe = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { grandTotal: { color: "#61747E" }, roots: { stroke: "#f6f6fb", labels: { name: { color: "#8A9892" } } }, verticalSeparator: { stroke: "#f6f6fb" }, branches: { borderRadius: 0, labels: { color: "#8A9892" } }, nuts: { selected: { labels: { dataLabels: { color: "#8A9892" }, core: { total: { color: "#8A9892" }, value: { color: "#61747E" } } } } }, legend: { color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#61747E" } } } } } }, He = {
|
|
14
|
+
default: {},
|
|
15
|
+
dark: Xe,
|
|
16
|
+
celebration: Ge,
|
|
17
|
+
celebrationNight: Ue,
|
|
18
|
+
hack: We,
|
|
19
|
+
zen: Ye,
|
|
20
|
+
concrete: qe
|
|
21
|
+
}, Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
celebration: Ge,
|
|
24
|
+
celebrationNight: Ue,
|
|
25
|
+
concrete: qe,
|
|
26
|
+
dark: Xe,
|
|
27
|
+
default: He,
|
|
28
|
+
hack: We,
|
|
29
|
+
zen: Ye
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), el = ["id"], tl = {
|
|
14
31
|
key: 1,
|
|
15
32
|
ref: "noTitle",
|
|
16
33
|
class: "vue-data-ui-no-title-space",
|
|
17
34
|
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
-
},
|
|
35
|
+
}, ll = ["xmlns", "viewBox"], al = ["width", "height"], ol = { key: 1 }, sl = ["fill", "font-weight", "font-size", "x", "y"], nl = ["fill", "font-weight", "font-size", "x", "y"], ul = ["id"], rl = ["stop-color"], il = ["stop-color"], cl = ["id"], dl = ["stop-color"], vl = ["stop-color"], yl = ["id"], hl = ["stop-color"], bl = ["stop-color"], fl = ["stop-color"], pl = ["id"], gl = ["stop-color"], _l = ["stop-color"], ml = ["stop-color"], xl = ["id"], kl = ["stop-color"], Cl = ["stop-color"], wl = ["stop-color"], Al = { key: 2 }, $l = ["x", "y", "font-size", "font-weight", "fill"], Tl = ["x", "y", "font-size", "font-weight", "fill"], zl = ["id"], Sl = ["stop-color"], Fl = ["stop-color"], Nl = ["d", "stroke", "fill"], Bl = ["cx", "cy", "r", "fill"], Dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Ll = { key: 3 }, Il = ["x", "y", "font-size", "fill", "onClick"], Ol = { key: 0 }, Pl = ["x", "y", "fill", "font-size", "font-weight"], Rl = ["x", "y", "height", "width", "fill", "rx", "onClick"], El = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Vl = { key: 4 }, Ml = ["x", "y", "fill", "font-size", "onClick"], jl = ["d", "stroke"], Xl = ["fill", "cx", "cy", "r", "onClick"], Gl = { key: 5 }, Ul = ["x", "y", "font-size", "font-weight", "fill"], Wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yl = ["y", "height", "width"], ql = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Hl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Kl = {
|
|
19
36
|
viewBox: "0 0 20 20",
|
|
20
37
|
height: "16",
|
|
21
38
|
width: "16"
|
|
22
|
-
},
|
|
39
|
+
}, Zl = ["fill"], Jl = { key: 7 }, Ql = ["y", "height", "width"], ea = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, ta = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, la = {
|
|
23
40
|
viewBox: "0 0 20 20",
|
|
24
41
|
height: "16",
|
|
25
42
|
width: "16"
|
|
26
|
-
},
|
|
43
|
+
}, aa = ["fill"], oa = ["cx", "cy", "fill"], sa = ["d", "stroke"], na = ["cx", "cy", "fill"], ua = ["d", "stroke"], ra = ["cx", "cy", "fill"], ia = ["cx", "cy", "fill"], ca = ["x", "y", "fill", "font-size", "font-weight"], da = ["x", "y", "fill", "font-size", "font-weight"], va = ["x", "text-anchor", "y", "fill", "font-size"], ya = ["x", "text-anchor", "y", "fill", "font-size"], ha = ["x", "text-anchor", "y", "fill", "font-size"], ba = ["x", "text-anchor", "y", "fill", "font-size"], fa = ["x", "text-anchor", "y", "fill", "font-size"], pa = ["x", "y", "font-size", "fill"], ga = ["x", "y", "font-size", "fill"], _a = ["x", "y", "font-size", "fill"], ma = {
|
|
27
44
|
key: 4,
|
|
28
45
|
class: "vue-data-ui-watermark"
|
|
29
|
-
},
|
|
46
|
+
}, xa = {
|
|
30
47
|
key: 5,
|
|
31
48
|
ref: "source",
|
|
32
49
|
dir: "auto"
|
|
33
|
-
},
|
|
50
|
+
}, ka = { class: "vue-ui-data-table" }, Ca = { key: 0 }, wa = ["data-cell"], Aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $a = { key: 0 }, Ta = { key: 1 }, za = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fa = { key: 0 }, Na = { key: 1 }, Ba = ["data-cell"], Da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = { key: 0 }, Ia = { key: 1 }, Oa = ["data-cell"], Pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ra = { key: 0 }, Ea = { key: 1 }, Va = ["data-cell"], Ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = { key: 0 }, Xa = { key: 1 }, Ga = ["data-cell"], Ua = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wa = { key: 0 }, Ya = { key: 1 }, qa = ["data-cell"], Ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ka = { key: 0 }, Za = { key: 1 }, Ja = ["data-cell"], Qa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, eo = ["data-cell"], to = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, lo = ["data-cell"], ao = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oo = ["data-cell"], so = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, no = ["data-cell"], uo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ro = {
|
|
34
51
|
__name: "vue-ui-chestnut",
|
|
35
52
|
props: {
|
|
36
53
|
config: {
|
|
@@ -47,12 +64,12 @@ const Ut = ["id"], Wt = {
|
|
|
47
64
|
}
|
|
48
65
|
},
|
|
49
66
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
50
|
-
setup(
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
setup(Ke, { expose: Ze, emit: Je }) {
|
|
68
|
+
zt((l) => ({
|
|
69
|
+
v2e18205a: l.tdo
|
|
53
70
|
}));
|
|
54
|
-
const
|
|
55
|
-
...
|
|
71
|
+
const ke = Z(() => import("./BaseIcon-CofSxalQ.js")), Qe = Z(() => import("./vue-ui-accordion-DSdZUn2C.js")), et = Z(() => import("./PenAndPaper-HCZQTkqi.js")), tt = Z(() => import("./UserOptions-B3I-s3Lw.js")), lt = Z(() => import("./PackageVersion-Bq_mtsqr.js")), at = Z(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_chestnut: ot } = Xt(), { isThemeValid: st, warnInvalidTheme: nt } = qt(), V = Ke, Ce = g(() => !!V.dataset && V.dataset.length), $ = S(Lt()), Y = S(null), we = S(0), J = S(null), ne = S(null), e = S(ce()), { loading: Ae, FINAL_DATASET: ue } = Gt({
|
|
72
|
+
...St(V),
|
|
56
73
|
FINAL_CONFIG: e,
|
|
57
74
|
prepareConfig: ce,
|
|
58
75
|
skeletonDataset: [
|
|
@@ -133,7 +150,7 @@ const Ut = ["id"], Wt = {
|
|
|
133
150
|
]
|
|
134
151
|
}
|
|
135
152
|
],
|
|
136
|
-
skeletonConfig:
|
|
153
|
+
skeletonConfig: It({
|
|
137
154
|
defaultConfig: e.value,
|
|
138
155
|
userConfig: {
|
|
139
156
|
userOptions: { show: !1 },
|
|
@@ -161,36 +178,43 @@ const Ut = ["id"], Wt = {
|
|
|
161
178
|
}
|
|
162
179
|
}
|
|
163
180
|
})
|
|
164
|
-
}), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: Te } =
|
|
181
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Kt({ config: e.value }), { svgRef: ie } = Zt({ config: e.value.style.chart.layout.title });
|
|
165
182
|
function ce() {
|
|
166
|
-
const l =
|
|
167
|
-
userConfig:
|
|
168
|
-
defaultConfig:
|
|
183
|
+
const l = xe({
|
|
184
|
+
userConfig: V.config,
|
|
185
|
+
defaultConfig: ot
|
|
186
|
+
}), r = l.theme;
|
|
187
|
+
if (!r) return l;
|
|
188
|
+
if (!st.value(l))
|
|
189
|
+
return nt(l), l;
|
|
190
|
+
const t = xe({
|
|
191
|
+
userConfig: He[r] || V.config,
|
|
192
|
+
defaultConfig: l
|
|
193
|
+
}), s = xe({
|
|
194
|
+
userConfig: V.config,
|
|
195
|
+
defaultConfig: t
|
|
169
196
|
});
|
|
170
|
-
return
|
|
171
|
-
...
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}),
|
|
175
|
-
customPalette: zt[l.theme] || R
|
|
176
|
-
} : l;
|
|
197
|
+
return {
|
|
198
|
+
...s,
|
|
199
|
+
customPalette: s.customPalette.length ? s.customPalette : Ot[r] || O
|
|
200
|
+
};
|
|
177
201
|
}
|
|
178
|
-
|
|
179
|
-
e.value = ce(), re.value = !e.value.userOptions.showOnChartHover,
|
|
202
|
+
fe(() => V.config, (l) => {
|
|
203
|
+
e.value = ce(), re.value = !e.value.userOptions.showOnChartHover, X.value.showTable = e.value.table.show, Ie();
|
|
180
204
|
}, { deep: !0 });
|
|
181
|
-
const { isPrinting: ze, isImaging:
|
|
182
|
-
elementId: `vue-ui-chestnut_${
|
|
205
|
+
const { isPrinting: ze, isImaging: Se, generatePdf: Fe, generateImage: Ne } = Wt({
|
|
206
|
+
elementId: `vue-ui-chestnut_${$.value}`,
|
|
183
207
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
184
208
|
options: e.value.userOptions.print
|
|
185
|
-
}),
|
|
209
|
+
}), ut = g(() => e.value.userOptions.show), de = g(() => Pt(e.value.customPalette)), X = S({
|
|
186
210
|
showTable: e.value.table.show
|
|
187
211
|
});
|
|
188
|
-
|
|
189
|
-
|
|
212
|
+
fe(e, () => {
|
|
213
|
+
X.value = {
|
|
190
214
|
showTable: e.value.table.show
|
|
191
215
|
};
|
|
192
216
|
}, { immediate: !0 });
|
|
193
|
-
const
|
|
217
|
+
const Be = S(null), rt = g(() => e.value.table.responsiveBreakpoint), i = S({
|
|
194
218
|
gap: 6,
|
|
195
219
|
padding: {
|
|
196
220
|
top: 102,
|
|
@@ -202,15 +226,15 @@ const Ut = ["id"], Wt = {
|
|
|
202
226
|
height: 0,
|
|
203
227
|
branchSize: 32,
|
|
204
228
|
branchStart: 128
|
|
205
|
-
}),
|
|
206
|
-
left:
|
|
207
|
-
top:
|
|
208
|
-
right:
|
|
209
|
-
bottom:
|
|
210
|
-
width:
|
|
211
|
-
height:
|
|
212
|
-
seedX:
|
|
213
|
-
})),
|
|
229
|
+
}), z = g(() => ({
|
|
230
|
+
left: i.value.padding.left,
|
|
231
|
+
top: i.value.padding.top,
|
|
232
|
+
right: i.value.width - i.value.padding.right,
|
|
233
|
+
bottom: i.value.height - i.value.padding.bottom,
|
|
234
|
+
width: i.value.width - (i.value.padding.left + i.value.padding.right),
|
|
235
|
+
height: i.value.height - (i.value.padding.top + i.value.padding.bottom),
|
|
236
|
+
seedX: i.value.padding.left + 64
|
|
237
|
+
})), D = g(() => ue.value.flatMap((l) => (l.branches || []).map((r) => r.value || 0)).reduce((l, r) => l + r, 0)), N = g(() => (ue.value.forEach((l, r) => {
|
|
214
238
|
_e({
|
|
215
239
|
datasetObject: l,
|
|
216
240
|
requiredAttributes: ["name", "branches"]
|
|
@@ -219,66 +243,66 @@ const Ut = ["id"], Wt = {
|
|
|
219
243
|
componentName: "VueUiChestnut",
|
|
220
244
|
type: "datasetSerieAttribute",
|
|
221
245
|
property: t,
|
|
222
|
-
index:
|
|
246
|
+
index: r,
|
|
223
247
|
debug: te.value
|
|
224
248
|
});
|
|
225
249
|
}), l.branches && l.branches.forEach((t, s) => {
|
|
226
250
|
_e({
|
|
227
251
|
datasetObject: t,
|
|
228
252
|
requiredAttributes: ["name", "value"]
|
|
229
|
-
}).forEach((
|
|
253
|
+
}).forEach((f) => {
|
|
230
254
|
se({
|
|
231
255
|
componentName: "VueUiChestnut",
|
|
232
256
|
type: "datasetSerieAttribute",
|
|
233
|
-
property:
|
|
234
|
-
index: `${
|
|
257
|
+
property: f,
|
|
258
|
+
index: `${r} - ${s}`,
|
|
235
259
|
debug: te.value
|
|
236
260
|
});
|
|
237
|
-
}), t.breakdown && t.breakdown.forEach((
|
|
261
|
+
}), t.breakdown && t.breakdown.forEach((f, p) => {
|
|
238
262
|
_e({
|
|
239
|
-
datasetObject:
|
|
263
|
+
datasetObject: f,
|
|
240
264
|
requiredAttributes: ["name", "value"]
|
|
241
|
-
}).forEach((
|
|
265
|
+
}).forEach((b) => {
|
|
242
266
|
se({
|
|
243
267
|
componentName: "VueUiChestnut",
|
|
244
268
|
type: "datasetSerieAttribute",
|
|
245
|
-
property:
|
|
246
|
-
index: `${
|
|
269
|
+
property: b,
|
|
270
|
+
index: `${r} - ${s} - ${p}`,
|
|
247
271
|
debug: te.value
|
|
248
272
|
});
|
|
249
273
|
});
|
|
250
274
|
});
|
|
251
275
|
});
|
|
252
|
-
}), ue.value.map((l,
|
|
253
|
-
const t = (l.branches || []).map((s) => s.value || 0).reduce((s,
|
|
276
|
+
}), ue.value.map((l, r) => {
|
|
277
|
+
const t = (l.branches || []).map((s) => s.value || 0).reduce((s, f) => s + f, 0);
|
|
254
278
|
return {
|
|
255
279
|
...l,
|
|
256
|
-
color: me(l.color) || de.value[
|
|
257
|
-
id: l.id || `root_${
|
|
280
|
+
color: me(l.color) || de.value[r] || O[r] || O[r % O.length],
|
|
281
|
+
id: l.id || `root_${r}_${$.value}`,
|
|
258
282
|
type: "root",
|
|
259
283
|
total: t,
|
|
260
|
-
rootIndex:
|
|
261
|
-
branches: (l.branches || []).map((s,
|
|
284
|
+
rootIndex: r,
|
|
285
|
+
branches: (l.branches || []).map((s, f) => ({
|
|
262
286
|
...s,
|
|
263
287
|
rootName: l.name,
|
|
264
|
-
rootIndex:
|
|
265
|
-
color: me(l.color) || de.value[
|
|
288
|
+
rootIndex: r,
|
|
289
|
+
color: me(l.color) || de.value[r] || O[r] || O[r % O.length],
|
|
266
290
|
value: s.value >= 0 ? s.value : 0,
|
|
267
|
-
id: s.id || `branch_${
|
|
291
|
+
id: s.id || `branch_${r}_${f}_${$.value}`,
|
|
268
292
|
proportionToRoot: s.value / t,
|
|
269
293
|
type: "branch",
|
|
270
|
-
breakdown: (s.breakdown || []).map((p,
|
|
294
|
+
breakdown: (s.breakdown || []).map((p, b) => ({
|
|
271
295
|
table: {
|
|
272
296
|
rootName: l.name,
|
|
273
297
|
rootValue: t,
|
|
274
|
-
rootToTotal: t /
|
|
298
|
+
rootToTotal: t / D.value,
|
|
275
299
|
branchName: s.name,
|
|
276
300
|
branchValue: s.value,
|
|
277
|
-
branchToTotal: s.value /
|
|
301
|
+
branchToTotal: s.value / D.value,
|
|
278
302
|
branchToRoot: s.value / t,
|
|
279
303
|
nutName: p.name,
|
|
280
304
|
nutValue: p.value,
|
|
281
|
-
nutToTotal: p.value /
|
|
305
|
+
nutToTotal: p.value / D.value,
|
|
282
306
|
nutToRoot: p.value / t,
|
|
283
307
|
nutToBranch: p.value / s.value
|
|
284
308
|
},
|
|
@@ -289,82 +313,82 @@ const Ut = ["id"], Wt = {
|
|
|
289
313
|
branchTotal: s.value >= 0 ? s.value : 0,
|
|
290
314
|
proportionToBranch: p.value / s.value,
|
|
291
315
|
proportionToRoot: p.value / t,
|
|
292
|
-
proportionToTree: p.value /
|
|
293
|
-
rootIndex:
|
|
294
|
-
id: p.id || `nut_${
|
|
295
|
-
color: me(p.color) || de.value[
|
|
316
|
+
proportionToTree: p.value / D.value,
|
|
317
|
+
rootIndex: r,
|
|
318
|
+
id: p.id || `nut_${r}_${f}_${b}_${$.value}`,
|
|
319
|
+
color: me(p.color) || de.value[b] || O[b] || O[b % O.length],
|
|
296
320
|
value: p.value >= 0 ? p.value : 0
|
|
297
321
|
}))
|
|
298
322
|
}))
|
|
299
323
|
};
|
|
300
324
|
})));
|
|
301
|
-
function
|
|
302
|
-
return
|
|
325
|
+
function it() {
|
|
326
|
+
return N.value;
|
|
303
327
|
}
|
|
304
|
-
const
|
|
305
|
-
const t =
|
|
328
|
+
const q = Je, ct = g(() => N.value.flatMap((l) => l.branches).length), dt = g(() => Math.max(...N.value.map((l) => l.branches.map((r) => r.value).reduce((r, t) => r + t, 0)))), vt = g(() => Math.max(...N.value.flatMap((l) => l.branches.map((r) => r.value)))), De = g(() => 256 + i.value.padding.left), G = g(() => N.value.sort((l, r) => r.total - l.total).map((l, r) => {
|
|
329
|
+
const t = z.value.height / N.value.length / 2, s = l.total / dt.value * (t > 64 ? 64 : t);
|
|
306
330
|
return {
|
|
307
331
|
...l,
|
|
308
|
-
x:
|
|
309
|
-
y:
|
|
310
|
-
r: s <
|
|
332
|
+
x: z.value.seedX,
|
|
333
|
+
y: z.value.top + z.value.height / N.value.length * (r + 1) - (z.value.height / N.value.length / 2 + i.value.gap / 2),
|
|
334
|
+
r: s < i.value.branchSize / 2 ? i.value.branchSize / 2 : s
|
|
311
335
|
};
|
|
312
|
-
})),
|
|
336
|
+
})), yt = g(() => e.value.style.chart.layout.branches.widthRatio <= 0 ? 0.1 : e.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : e.value.style.chart.layout.branches.widthRatio), ht = g(() => G.value.flatMap((l) => l.branches)), U = g(() => ht.value.sort((l, r) => r.value - l.value).map((l, r) => ({
|
|
313
337
|
...l,
|
|
314
|
-
y1:
|
|
315
|
-
y2:
|
|
316
|
-
x1:
|
|
317
|
-
x2: 384 * l.value /
|
|
338
|
+
y1: r * i.value.branchSize + z.value.top + r * i.value.gap,
|
|
339
|
+
y2: r * i.value.branchSize + i.value.branchSize,
|
|
340
|
+
x1: De.value,
|
|
341
|
+
x2: 384 * l.value / vt.value * yt.value + De.value
|
|
318
342
|
})));
|
|
319
|
-
function
|
|
320
|
-
const
|
|
321
|
-
return { x:
|
|
343
|
+
function bt(l) {
|
|
344
|
+
const r = G.value.find((t) => t.rootIndex === l.rootIndex);
|
|
345
|
+
return { x: r.x, y: r.y, r: r.r };
|
|
322
346
|
}
|
|
323
|
-
const d = S(null),
|
|
324
|
-
function
|
|
325
|
-
d.value = null, x.value = null,
|
|
347
|
+
const d = S(null), M = S(null), x = S(null), L = S(null);
|
|
348
|
+
function T() {
|
|
349
|
+
d.value = null, x.value = null, L.value = null;
|
|
326
350
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
351
|
+
function I(l) {
|
|
352
|
+
return L.value ? L.value === null ? !0 : l.type === "root" ? l.id === L.value.id : l.rootIndex === L.value.rootIndex : d.value === null && x.value === null ? !0 : l.type === "nut" ? d.value.id === l.id : l.type === "branch" ? x.value.id === l.id : l.type === "root" ? x.value && x.value.rootIndex === l.rootIndex || d.value && d.value.rootIndex === l.rootIndex : !1;
|
|
329
353
|
}
|
|
330
|
-
function
|
|
331
|
-
|
|
332
|
-
d.value = l, x.value = l,
|
|
354
|
+
function ft(l) {
|
|
355
|
+
T(), pe(() => {
|
|
356
|
+
d.value = l, x.value = l, M.value = je(
|
|
333
357
|
{ series: l.breakdown },
|
|
334
358
|
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
335
|
-
l.y1 +
|
|
359
|
+
l.y1 + i.value.branchSize / 2,
|
|
336
360
|
80,
|
|
337
361
|
80
|
|
338
|
-
),
|
|
362
|
+
), q("selectNut", l.breakdown);
|
|
339
363
|
});
|
|
340
364
|
}
|
|
341
365
|
function W() {
|
|
342
|
-
d.value = null,
|
|
366
|
+
d.value = null, M.value = null, q("selectNut", null);
|
|
343
367
|
}
|
|
344
368
|
function ve(l) {
|
|
345
|
-
x.value && x.value.id === l.id ? (x.value = null,
|
|
369
|
+
x.value && x.value.id === l.id ? (x.value = null, T(), q("selectBranch", null)) : (T(), x.value = l, q("selectBranch", l));
|
|
346
370
|
}
|
|
347
371
|
function Le(l) {
|
|
348
|
-
|
|
372
|
+
L.value && L.value.id === l.id ? (T(), q("selectRoot", null)) : (T(), L.value = l, q("selectRoot", l));
|
|
349
373
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
374
|
+
function pt() {
|
|
375
|
+
return z.value.bottom - (d.value.y1 + 180) < 0 ? 0 : z.value.bottom;
|
|
352
376
|
}
|
|
353
|
-
function
|
|
377
|
+
function H(l) {
|
|
354
378
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
355
379
|
}
|
|
356
|
-
|
|
357
|
-
|
|
380
|
+
Ft(() => {
|
|
381
|
+
Ie();
|
|
358
382
|
});
|
|
359
383
|
const te = g(() => e.value.debug);
|
|
360
|
-
function
|
|
361
|
-
|
|
384
|
+
function Ie() {
|
|
385
|
+
Rt(V.dataset) && se({
|
|
362
386
|
componentName: "VueUiChestnut",
|
|
363
387
|
type: "dataset",
|
|
364
388
|
debug: te.value
|
|
365
389
|
});
|
|
366
|
-
const l =
|
|
367
|
-
|
|
390
|
+
const l = ct.value * (i.value.branchSize + i.value.gap) + i.value.padding.top + i.value.padding.bottom;
|
|
391
|
+
i.value.height = l;
|
|
368
392
|
}
|
|
369
393
|
const v = g(() => {
|
|
370
394
|
const l = [
|
|
@@ -380,64 +404,64 @@ const Ut = ["id"], Wt = {
|
|
|
380
404
|
e.value.table.th.translations.nutToBranch,
|
|
381
405
|
e.value.table.th.translations.nutToRoot,
|
|
382
406
|
e.value.table.th.translations.nutToTotal
|
|
383
|
-
],
|
|
384
|
-
return { head: l, body:
|
|
407
|
+
], r = N.value.flatMap((t, s) => t.branches.flatMap((f, p) => f.breakdown.flatMap((b, k) => b.table)));
|
|
408
|
+
return { head: l, body: r };
|
|
385
409
|
});
|
|
386
410
|
function ye(l = null) {
|
|
387
411
|
pe(() => {
|
|
388
|
-
const
|
|
389
|
-
v.value.body[k - 1] && v.value.body[k - 1].rootName ===
|
|
390
|
-
v.value.body[k - 1] && v.value.body[k - 1].rootName ===
|
|
391
|
-
v.value.body[k - 1] && v.value.body[k - 1].rootName ===
|
|
392
|
-
v.value.body[k - 1] && v.value.body[k - 1].branchName ===
|
|
393
|
-
v.value.body[k - 1] && v.value.body[k - 1].branchName ===
|
|
394
|
-
v.value.body[k - 1] && v.value.body[k - 1].branchName ===
|
|
395
|
-
v.value.body[k - 1] && v.value.body[k - 1].branchName ===
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
]),
|
|
402
|
-
l ? l(p) :
|
|
412
|
+
const r = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", D.value], [""]], t = v.value.head, s = v.value.body.map((b, k) => [
|
|
413
|
+
v.value.body[k - 1] && v.value.body[k - 1].rootName === b.rootName ? "" : b.rootName,
|
|
414
|
+
v.value.body[k - 1] && v.value.body[k - 1].rootName === b.rootName ? "" : b.rootValue,
|
|
415
|
+
v.value.body[k - 1] && v.value.body[k - 1].rootName === b.rootName ? "" : b.rootToTotal,
|
|
416
|
+
v.value.body[k - 1] && v.value.body[k - 1].branchName === b.branchName ? "" : b.branchName,
|
|
417
|
+
v.value.body[k - 1] && v.value.body[k - 1].branchName === b.branchName ? "" : b.branchValue,
|
|
418
|
+
v.value.body[k - 1] && v.value.body[k - 1].branchName === b.branchName ? "" : b.branchToRoot,
|
|
419
|
+
v.value.body[k - 1] && v.value.body[k - 1].branchName === b.branchName ? "" : b.branchToTotal,
|
|
420
|
+
b.nutName,
|
|
421
|
+
b.nutValue,
|
|
422
|
+
b.nutToBranch,
|
|
423
|
+
b.nutToRoot,
|
|
424
|
+
b.nutToTotal
|
|
425
|
+
]), f = r.concat([t]).concat(s), p = Mt(f);
|
|
426
|
+
l ? l(p) : jt({ csvContent: p, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
403
427
|
});
|
|
404
428
|
}
|
|
405
429
|
const K = S(!1);
|
|
406
430
|
function Oe(l) {
|
|
407
431
|
K.value = l, we.value += 1;
|
|
408
432
|
}
|
|
409
|
-
function
|
|
410
|
-
|
|
433
|
+
function Pe() {
|
|
434
|
+
X.value.showTable = !X.value.showTable;
|
|
411
435
|
}
|
|
412
436
|
const le = S(!1);
|
|
413
437
|
function he() {
|
|
414
438
|
le.value = !le.value;
|
|
415
439
|
}
|
|
416
|
-
async function
|
|
440
|
+
async function gt({ scale: l = 2 } = {}) {
|
|
417
441
|
if (!Y.value) return;
|
|
418
|
-
const { width:
|
|
442
|
+
const { width: r, height: t } = Y.value.getBoundingClientRect(), s = r / t, { imageUri: f, base64: p } = await Jt({ domElement: Y.value, base64: !0, img: !0, scale: l });
|
|
419
443
|
return {
|
|
420
|
-
imageUri:
|
|
444
|
+
imageUri: f,
|
|
421
445
|
base64: p,
|
|
422
446
|
title: e.value.style.chart.layout.title.text,
|
|
423
|
-
width:
|
|
447
|
+
width: r,
|
|
424
448
|
height: t,
|
|
425
449
|
aspectRatio: s
|
|
426
450
|
};
|
|
427
451
|
}
|
|
428
|
-
function
|
|
429
|
-
const
|
|
452
|
+
function _t(l) {
|
|
453
|
+
const r = bt(l), t = l.x1, s = l.y1, f = i.value.branchSize, p = r.x + r.r / 2, b = r.y, k = 20;
|
|
430
454
|
return [
|
|
431
455
|
`M ${t},${s}`,
|
|
432
|
-
`C ${t - k},${s} ${t - k},${s} ${p},${
|
|
433
|
-
`C ${p},${
|
|
456
|
+
`C ${t - k},${s} ${t - k},${s} ${p},${b}`,
|
|
457
|
+
`C ${p},${b} ${t - k},${s + f} ${t},${s + f}`,
|
|
434
458
|
"Z"
|
|
435
459
|
].join(" ");
|
|
436
460
|
}
|
|
437
461
|
const ae = g(() => {
|
|
438
|
-
const l = e.value.table.useDialog && !e.value.table.show,
|
|
462
|
+
const l = e.value.table.useDialog && !e.value.table.show, r = X.value.showTable;
|
|
439
463
|
return {
|
|
440
|
-
component: l ?
|
|
464
|
+
component: l ? at : Qe,
|
|
441
465
|
title: `${e.value.style.chart.layout.title.text}${e.value.style.chart.layout.title.subtitle.text ? `: ${e.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
442
466
|
props: l ? {
|
|
443
467
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -450,7 +474,7 @@ const Ut = ["id"], Wt = {
|
|
|
450
474
|
} : {
|
|
451
475
|
hideDetails: !0,
|
|
452
476
|
config: {
|
|
453
|
-
open:
|
|
477
|
+
open: r,
|
|
454
478
|
maxHeight: 1e4,
|
|
455
479
|
body: {
|
|
456
480
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -464,74 +488,74 @@ const Ut = ["id"], Wt = {
|
|
|
464
488
|
}
|
|
465
489
|
};
|
|
466
490
|
});
|
|
467
|
-
|
|
468
|
-
e.value.table.show || (l && e.value.table.useDialog &&
|
|
491
|
+
fe(() => X.value.showTable, async (l) => {
|
|
492
|
+
e.value.table.show || (l && e.value.table.useDialog && J.value ? (await pe(), J.value.open()) : "close" in J.value && J.value.close());
|
|
469
493
|
});
|
|
470
|
-
const { isResponsive:
|
|
471
|
-
function
|
|
472
|
-
|
|
494
|
+
const { isResponsive: mt } = Ht(Be, rt);
|
|
495
|
+
function be() {
|
|
496
|
+
X.value.showTable = !1, ne.value && ne.value.setTableIconState(!1);
|
|
473
497
|
}
|
|
474
|
-
const
|
|
498
|
+
const xt = g(() => N.value.map((l, r) => ({
|
|
475
499
|
...l,
|
|
476
|
-
display: `${l.name}: ${
|
|
500
|
+
display: `${l.name}: ${j(
|
|
477
501
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
478
502
|
l.total,
|
|
479
|
-
|
|
503
|
+
F({
|
|
480
504
|
p: e.value.style.chart.layout.legend.prefix,
|
|
481
505
|
v: l.total,
|
|
482
506
|
s: e.value.style.chart.layout.legend.suffix,
|
|
483
507
|
r: e.value.style.chart.layout.legend.roundingValue
|
|
484
508
|
}),
|
|
485
509
|
{ datapoint: l }
|
|
486
|
-
)} (${
|
|
487
|
-
v: l.total /
|
|
510
|
+
)} (${F({
|
|
511
|
+
v: l.total / D.value * 100,
|
|
488
512
|
s: "%",
|
|
489
513
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
490
514
|
})})`
|
|
491
|
-
}))),
|
|
515
|
+
}))), kt = g(() => xt.value.map((l) => ({
|
|
492
516
|
color: l.color,
|
|
493
517
|
name: l.display,
|
|
494
518
|
shape: "circle"
|
|
495
|
-
}))),
|
|
519
|
+
}))), Ct = g(() => e.value.style.chart.backgroundColor), wt = g(() => ({
|
|
496
520
|
...e.value.style.chart.layout.legend,
|
|
497
521
|
textAlign: "center",
|
|
498
522
|
show: !0,
|
|
499
523
|
position: "bottom"
|
|
500
|
-
})),
|
|
524
|
+
})), At = g(() => e.value.style.chart.layout.title), { exportSvg: $t, getSvg: Tt } = Yt({
|
|
501
525
|
svg: ie,
|
|
502
|
-
title:
|
|
503
|
-
legend:
|
|
504
|
-
legendItems:
|
|
505
|
-
backgroundColor:
|
|
526
|
+
title: At,
|
|
527
|
+
legend: wt,
|
|
528
|
+
legendItems: kt,
|
|
529
|
+
backgroundColor: Ct,
|
|
506
530
|
titleEmbedded: !0
|
|
507
531
|
});
|
|
508
|
-
async function
|
|
532
|
+
async function Re({ isCb: l }) {
|
|
509
533
|
if (l) {
|
|
510
|
-
const { blob:
|
|
511
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
534
|
+
const { blob: r, url: t, text: s, dataUrl: f } = await Tt();
|
|
535
|
+
e.value.userOptions.callbacks.svg({ blob: r, url: t, text: s, dataUrl: f });
|
|
512
536
|
} else
|
|
513
|
-
|
|
537
|
+
$t();
|
|
514
538
|
}
|
|
515
|
-
return
|
|
516
|
-
getData:
|
|
517
|
-
getImage:
|
|
518
|
-
generatePdf:
|
|
539
|
+
return Ze({
|
|
540
|
+
getData: it,
|
|
541
|
+
getImage: gt,
|
|
542
|
+
generatePdf: Fe,
|
|
519
543
|
generateCsv: ye,
|
|
520
544
|
generateImage: Ne,
|
|
521
|
-
generateSvg:
|
|
522
|
-
toggleTable:
|
|
545
|
+
generateSvg: Re,
|
|
546
|
+
toggleTable: Pe,
|
|
523
547
|
toggleAnnotator: he,
|
|
524
548
|
toggleFullscreen: Oe
|
|
525
|
-
}), (l,
|
|
526
|
-
class:
|
|
549
|
+
}), (l, r) => (a(), o("div", {
|
|
550
|
+
class: w(`vue-data-ui-component vue-ui-chestnut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
527
551
|
ref_key: "chestnutChart",
|
|
528
552
|
ref: Y,
|
|
529
|
-
id: `vue-ui-chestnut_${
|
|
553
|
+
id: `vue-ui-chestnut_${$.value}`,
|
|
530
554
|
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
531
|
-
onMouseenter:
|
|
532
|
-
onMouseleave:
|
|
555
|
+
onMouseenter: r[1] || (r[1] = () => n($e)(!0)),
|
|
556
|
+
onMouseleave: r[2] || (r[2] = () => n($e)(!1))
|
|
533
557
|
}, [
|
|
534
|
-
e.value.userOptions.buttons.annotator ? (a(), oe(n(
|
|
558
|
+
e.value.userOptions.buttons.annotator ? (a(), oe(n(et), {
|
|
535
559
|
key: 0,
|
|
536
560
|
svgRef: n(ie),
|
|
537
561
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -539,36 +563,36 @@ const Ut = ["id"], Wt = {
|
|
|
539
563
|
active: le.value,
|
|
540
564
|
onClose: he
|
|
541
565
|
}, {
|
|
542
|
-
"annotator-action-close":
|
|
543
|
-
|
|
566
|
+
"annotator-action-close": A(() => [
|
|
567
|
+
C(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
544
568
|
]),
|
|
545
|
-
"annotator-action-color":
|
|
546
|
-
|
|
569
|
+
"annotator-action-color": A(({ color: t }) => [
|
|
570
|
+
C(l.$slots, "annotator-action-color", R(E({ color: t })), void 0, !0)
|
|
547
571
|
]),
|
|
548
|
-
"annotator-action-draw":
|
|
549
|
-
|
|
572
|
+
"annotator-action-draw": A(({ mode: t }) => [
|
|
573
|
+
C(l.$slots, "annotator-action-draw", R(E({ mode: t })), void 0, !0)
|
|
550
574
|
]),
|
|
551
|
-
"annotator-action-undo":
|
|
552
|
-
|
|
575
|
+
"annotator-action-undo": A(({ disabled: t }) => [
|
|
576
|
+
C(l.$slots, "annotator-action-undo", R(E({ disabled: t })), void 0, !0)
|
|
553
577
|
]),
|
|
554
|
-
"annotator-action-redo":
|
|
555
|
-
|
|
578
|
+
"annotator-action-redo": A(({ disabled: t }) => [
|
|
579
|
+
C(l.$slots, "annotator-action-redo", R(E({ disabled: t })), void 0, !0)
|
|
556
580
|
]),
|
|
557
|
-
"annotator-action-delete":
|
|
558
|
-
|
|
581
|
+
"annotator-action-delete": A(({ disabled: t }) => [
|
|
582
|
+
C(l.$slots, "annotator-action-delete", R(E({ disabled: t })), void 0, !0)
|
|
559
583
|
]),
|
|
560
584
|
_: 3
|
|
561
585
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
562
|
-
|
|
563
|
-
e.value.userOptions.show &&
|
|
586
|
+
ut.value ? (a(), o("div", tl, null, 512)) : h("", !0),
|
|
587
|
+
e.value.userOptions.show && Ce.value && (n(Te) || n(re)) ? (a(), oe(n(tt), {
|
|
564
588
|
ref_key: "userOptionsRef",
|
|
565
589
|
ref: ne,
|
|
566
590
|
key: `user_options_${we.value}`,
|
|
567
591
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
568
592
|
color: e.value.style.chart.color,
|
|
569
|
-
isImaging: n(
|
|
593
|
+
isImaging: n(Se),
|
|
570
594
|
isPrinting: n(ze),
|
|
571
|
-
uid:
|
|
595
|
+
uid: $.value,
|
|
572
596
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
573
597
|
hasImg: e.value.userOptions.buttons.img,
|
|
574
598
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
@@ -585,243 +609,243 @@ const Ut = ["id"], Wt = {
|
|
|
585
609
|
printScale: e.value.userOptions.print.scale,
|
|
586
610
|
tableDialog: e.value.table.useDialog,
|
|
587
611
|
onToggleFullscreen: Oe,
|
|
588
|
-
onGeneratePdf: n(
|
|
612
|
+
onGeneratePdf: n(Fe),
|
|
589
613
|
onGenerateCsv: ye,
|
|
590
614
|
onGenerateImage: n(Ne),
|
|
591
|
-
onGenerateSvg:
|
|
592
|
-
onToggleTable:
|
|
615
|
+
onGenerateSvg: Re,
|
|
616
|
+
onToggleTable: Pe,
|
|
593
617
|
onToggleAnnotator: he,
|
|
594
618
|
style: y({
|
|
595
619
|
visibility: n(Te) ? n(re) ? "visible" : "hidden" : "visible"
|
|
596
620
|
})
|
|
597
|
-
},
|
|
621
|
+
}, Ee({ _: 2 }, [
|
|
598
622
|
l.$slots.menuIcon ? {
|
|
599
623
|
name: "menuIcon",
|
|
600
|
-
fn:
|
|
601
|
-
|
|
624
|
+
fn: A(({ isOpen: t, color: s }) => [
|
|
625
|
+
C(l.$slots, "menuIcon", R(E({ isOpen: t, color: s })), void 0, !0)
|
|
602
626
|
]),
|
|
603
627
|
key: "0"
|
|
604
628
|
} : void 0,
|
|
605
629
|
l.$slots.optionPdf ? {
|
|
606
630
|
name: "optionPdf",
|
|
607
|
-
fn:
|
|
608
|
-
|
|
631
|
+
fn: A(() => [
|
|
632
|
+
C(l.$slots, "optionPdf", {}, void 0, !0)
|
|
609
633
|
]),
|
|
610
634
|
key: "1"
|
|
611
635
|
} : void 0,
|
|
612
636
|
l.$slots.optionCsv ? {
|
|
613
637
|
name: "optionCsv",
|
|
614
|
-
fn:
|
|
615
|
-
|
|
638
|
+
fn: A(() => [
|
|
639
|
+
C(l.$slots, "optionCsv", {}, void 0, !0)
|
|
616
640
|
]),
|
|
617
641
|
key: "2"
|
|
618
642
|
} : void 0,
|
|
619
643
|
l.$slots.optionImg ? {
|
|
620
644
|
name: "optionImg",
|
|
621
|
-
fn:
|
|
622
|
-
|
|
645
|
+
fn: A(() => [
|
|
646
|
+
C(l.$slots, "optionImg", {}, void 0, !0)
|
|
623
647
|
]),
|
|
624
648
|
key: "3"
|
|
625
649
|
} : void 0,
|
|
626
650
|
l.$slots.optionSvg ? {
|
|
627
651
|
name: "optionSvg",
|
|
628
|
-
fn:
|
|
629
|
-
|
|
652
|
+
fn: A(() => [
|
|
653
|
+
C(l.$slots, "optionSvg", {}, void 0, !0)
|
|
630
654
|
]),
|
|
631
655
|
key: "4"
|
|
632
656
|
} : void 0,
|
|
633
657
|
l.$slots.optionTable ? {
|
|
634
658
|
name: "optionTable",
|
|
635
|
-
fn:
|
|
636
|
-
|
|
659
|
+
fn: A(() => [
|
|
660
|
+
C(l.$slots, "optionTable", {}, void 0, !0)
|
|
637
661
|
]),
|
|
638
662
|
key: "5"
|
|
639
663
|
} : void 0,
|
|
640
664
|
l.$slots.optionFullscreen ? {
|
|
641
665
|
name: "optionFullscreen",
|
|
642
|
-
fn:
|
|
643
|
-
|
|
666
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
667
|
+
C(l.$slots, "optionFullscreen", R(E({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
644
668
|
]),
|
|
645
669
|
key: "6"
|
|
646
670
|
} : void 0,
|
|
647
671
|
l.$slots.optionAnnotator ? {
|
|
648
672
|
name: "optionAnnotator",
|
|
649
|
-
fn:
|
|
650
|
-
|
|
673
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
674
|
+
C(l.$slots, "optionAnnotator", R(E({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
651
675
|
]),
|
|
652
676
|
key: "7"
|
|
653
677
|
} : void 0
|
|
654
678
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
655
|
-
|
|
679
|
+
i.value.height > 0 ? (a(), o("svg", {
|
|
656
680
|
key: 3,
|
|
657
681
|
ref_key: "svgRef",
|
|
658
682
|
ref: ie,
|
|
659
|
-
xmlns: n(
|
|
660
|
-
class:
|
|
661
|
-
viewBox: `0 0 ${
|
|
683
|
+
xmlns: n(Et),
|
|
684
|
+
class: w({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
685
|
+
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
662
686
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
663
687
|
}, [
|
|
664
|
-
ge(n(
|
|
688
|
+
ge(n(lt)),
|
|
665
689
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
666
690
|
key: 0,
|
|
667
691
|
x: 0,
|
|
668
692
|
y: 0,
|
|
669
|
-
width:
|
|
670
|
-
height:
|
|
693
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
694
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
671
695
|
style: {
|
|
672
696
|
pointerEvents: "none"
|
|
673
697
|
}
|
|
674
698
|
}, [
|
|
675
|
-
|
|
676
|
-
], 8,
|
|
677
|
-
d.value ? h("", !0) : (a(), o("g",
|
|
699
|
+
C(l.$slots, "chart-background", {}, void 0, !0)
|
|
700
|
+
], 8, al)) : h("", !0),
|
|
701
|
+
d.value ? h("", !0) : (a(), o("g", ol, [
|
|
678
702
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
679
703
|
key: 0,
|
|
680
704
|
"text-anchor": "middle",
|
|
681
705
|
fill: e.value.style.chart.layout.title.color,
|
|
682
706
|
"font-weight": e.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
683
707
|
"font-size": e.value.style.chart.layout.title.fontSize,
|
|
684
|
-
x:
|
|
708
|
+
x: i.value.width / 2,
|
|
685
709
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
686
|
-
onClick:
|
|
687
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
710
|
+
onClick: T
|
|
711
|
+
}, c(e.value.style.chart.layout.title.text), 9, sl)) : h("", !0),
|
|
688
712
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
689
713
|
key: 1,
|
|
690
714
|
"text-anchor": "middle",
|
|
691
715
|
fill: e.value.style.chart.layout.title.subtitle.color,
|
|
692
716
|
"font-weight": e.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
693
717
|
"font-size": e.value.style.chart.layout.title.subtitle.fontSize,
|
|
694
|
-
x:
|
|
718
|
+
x: i.value.width / 2,
|
|
695
719
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
696
|
-
onClick:
|
|
697
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
720
|
+
onClick: T
|
|
721
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, nl)) : h("", !0)
|
|
698
722
|
])),
|
|
699
723
|
u("defs", null, [
|
|
700
|
-
(a(!0), o(_, null, m(
|
|
724
|
+
(a(!0), o(_, null, m(N.value, (t, s) => (a(), o("radialGradient", {
|
|
701
725
|
cx: "50%",
|
|
702
726
|
cy: "50%",
|
|
703
727
|
r: "50%",
|
|
704
728
|
fx: "50%",
|
|
705
729
|
fy: "50%",
|
|
706
|
-
id: `root_gradient_${
|
|
730
|
+
id: `root_gradient_${$.value}_${t.rootIndex}`
|
|
707
731
|
}, [
|
|
708
732
|
u("stop", {
|
|
709
733
|
offset: "0%",
|
|
710
|
-
"stop-color": n(
|
|
711
|
-
}, null, 8,
|
|
734
|
+
"stop-color": n(B)(n(Ve)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
735
|
+
}, null, 8, rl),
|
|
712
736
|
u("stop", {
|
|
713
737
|
offset: "100%",
|
|
714
738
|
"stop-color": t.color
|
|
715
|
-
}, null, 8,
|
|
716
|
-
], 8,
|
|
717
|
-
(a(!0), o(_, null, m(
|
|
739
|
+
}, null, 8, il)
|
|
740
|
+
], 8, ul))), 256)),
|
|
741
|
+
(a(!0), o(_, null, m(N.value, (t) => (a(), o("linearGradient", {
|
|
718
742
|
x1: "0%",
|
|
719
743
|
y1: "0%",
|
|
720
744
|
x2: "100%",
|
|
721
745
|
y2: "0%",
|
|
722
|
-
id: `branch_gradient_${
|
|
746
|
+
id: `branch_gradient_${$.value}_${t.rootIndex}`
|
|
723
747
|
}, [
|
|
724
748
|
u("stop", {
|
|
725
749
|
offset: "0%",
|
|
726
750
|
"stop-color": t.color
|
|
727
|
-
}, null, 8,
|
|
751
|
+
}, null, 8, dl),
|
|
728
752
|
u("stop", {
|
|
729
753
|
offset: "100%",
|
|
730
|
-
"stop-color": n(
|
|
731
|
-
}, null, 8,
|
|
732
|
-
], 8,
|
|
754
|
+
"stop-color": n(B)(n(Ve)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
755
|
+
}, null, 8, vl)
|
|
756
|
+
], 8, cl))), 256)),
|
|
733
757
|
u("radialGradient", {
|
|
734
758
|
cx: "50%",
|
|
735
759
|
cy: "50%",
|
|
736
760
|
r: "50%",
|
|
737
761
|
fx: "50%",
|
|
738
762
|
fy: "50%",
|
|
739
|
-
id: `nutpick_${
|
|
763
|
+
id: `nutpick_${$.value}`
|
|
740
764
|
}, [
|
|
741
765
|
u("stop", {
|
|
742
766
|
offset: "0%",
|
|
743
|
-
"stop-color": n(
|
|
744
|
-
}, null, 8,
|
|
767
|
+
"stop-color": n(B)("#FFFFFF", 0)
|
|
768
|
+
}, null, 8, hl),
|
|
745
769
|
u("stop", {
|
|
746
770
|
offset: "80%",
|
|
747
|
-
"stop-color": n(
|
|
748
|
-
}, null, 8,
|
|
771
|
+
"stop-color": n(B)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
772
|
+
}, null, 8, bl),
|
|
749
773
|
u("stop", {
|
|
750
774
|
offset: "100%",
|
|
751
|
-
"stop-color": n(
|
|
752
|
-
}, null, 8,
|
|
753
|
-
], 8,
|
|
775
|
+
"stop-color": n(B)("#FFFFFF", 0)
|
|
776
|
+
}, null, 8, fl)
|
|
777
|
+
], 8, yl),
|
|
754
778
|
u("radialGradient", {
|
|
755
779
|
cx: "50%",
|
|
756
780
|
cy: "50%",
|
|
757
781
|
r: "50%",
|
|
758
782
|
fx: "50%",
|
|
759
783
|
fy: "50%",
|
|
760
|
-
id: `nut_${
|
|
784
|
+
id: `nut_${$.value}`
|
|
761
785
|
}, [
|
|
762
786
|
u("stop", {
|
|
763
787
|
offset: "0%",
|
|
764
|
-
"stop-color": n(
|
|
765
|
-
}, null, 8,
|
|
788
|
+
"stop-color": n(B)("#FFFFFF", 0)
|
|
789
|
+
}, null, 8, gl),
|
|
766
790
|
u("stop", {
|
|
767
791
|
offset: "80%",
|
|
768
|
-
"stop-color": n(
|
|
769
|
-
}, null, 8,
|
|
792
|
+
"stop-color": n(B)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
793
|
+
}, null, 8, _l),
|
|
770
794
|
u("stop", {
|
|
771
795
|
offset: "100%",
|
|
772
|
-
"stop-color": n(
|
|
773
|
-
}, null, 8,
|
|
774
|
-
], 8,
|
|
796
|
+
"stop-color": n(B)("#FFFFFF", 0)
|
|
797
|
+
}, null, 8, ml)
|
|
798
|
+
], 8, pl),
|
|
775
799
|
u("radialGradient", {
|
|
776
800
|
cx: "50%",
|
|
777
801
|
cy: "50%",
|
|
778
802
|
r: "50%",
|
|
779
803
|
fx: "50%",
|
|
780
804
|
fy: "50%",
|
|
781
|
-
id: `nut_underlayer_${
|
|
805
|
+
id: `nut_underlayer_${$.value}`
|
|
782
806
|
}, [
|
|
783
807
|
u("stop", {
|
|
784
808
|
offset: "0%",
|
|
785
|
-
"stop-color": n(
|
|
786
|
-
}, null, 8,
|
|
809
|
+
"stop-color": n(B)(e.value.style.chart.backgroundColor, 100)
|
|
810
|
+
}, null, 8, kl),
|
|
787
811
|
u("stop", {
|
|
788
812
|
offset: "80%",
|
|
789
|
-
"stop-color": n(
|
|
790
|
-
}, null, 8,
|
|
813
|
+
"stop-color": n(B)(e.value.style.chart.backgroundColor, 60)
|
|
814
|
+
}, null, 8, Cl),
|
|
791
815
|
u("stop", {
|
|
792
816
|
offset: "100%",
|
|
793
|
-
"stop-color": n(
|
|
794
|
-
}, null, 8,
|
|
795
|
-
], 8,
|
|
817
|
+
"stop-color": n(B)(e.value.style.chart.backgroundColor, 0)
|
|
818
|
+
}, null, 8, wl)
|
|
819
|
+
], 8, xl)
|
|
796
820
|
]),
|
|
797
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
821
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Al, [
|
|
798
822
|
u("text", {
|
|
799
|
-
x:
|
|
823
|
+
x: z.value.seedX,
|
|
800
824
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
801
825
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
802
826
|
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
803
827
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
804
828
|
"text-anchor": "middle",
|
|
805
|
-
onClick:
|
|
806
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
829
|
+
onClick: T
|
|
830
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, $l),
|
|
807
831
|
u("text", {
|
|
808
|
-
x:
|
|
832
|
+
x: z.value.seedX,
|
|
809
833
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
810
834
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
811
835
|
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
812
836
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
813
837
|
"text-anchor": "middle",
|
|
814
|
-
onClick:
|
|
815
|
-
}, c(n(
|
|
838
|
+
onClick: T
|
|
839
|
+
}, c(n(j)(
|
|
816
840
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
817
|
-
|
|
818
|
-
n(
|
|
841
|
+
D.value,
|
|
842
|
+
n(F)({
|
|
819
843
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
820
|
-
v:
|
|
844
|
+
v: D.value,
|
|
821
845
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
822
846
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
823
847
|
})
|
|
824
|
-
)), 9,
|
|
848
|
+
)), 9, Tl)
|
|
825
849
|
])) : h("", !0),
|
|
826
850
|
(a(!0), o(_, null, m(U.value, (t) => (a(), o("g", null, [
|
|
827
851
|
u("defs", null, [
|
|
@@ -831,22 +855,22 @@ const Ut = ["id"], Wt = {
|
|
|
831
855
|
u("stop", {
|
|
832
856
|
offset: "0%",
|
|
833
857
|
"stop-color": t.color
|
|
834
|
-
}, null, 8,
|
|
858
|
+
}, null, 8, Sl),
|
|
835
859
|
u("stop", {
|
|
836
860
|
offset: "100%",
|
|
837
|
-
"stop-color": n(
|
|
838
|
-
}, null, 8,
|
|
839
|
-
], 8,
|
|
861
|
+
"stop-color": n(B)(t.color, e.value.style.chart.layout.links.opacity)
|
|
862
|
+
}, null, 8, Fl)
|
|
863
|
+
], 8, zl)
|
|
840
864
|
]),
|
|
841
865
|
u("path", {
|
|
842
|
-
d:
|
|
843
|
-
stroke: n(
|
|
866
|
+
d: _t(t),
|
|
867
|
+
stroke: n(B)(t.color, e.value.style.chart.layout.links.opacity),
|
|
844
868
|
fill: `url(#link_grad_${t.id})`,
|
|
845
869
|
"stroke-linecap": "round",
|
|
846
870
|
"stroke-linejoin": "round",
|
|
847
|
-
style: y(`opacity:${
|
|
848
|
-
onClick:
|
|
849
|
-
}, null, 12,
|
|
871
|
+
style: y(`opacity:${I(t) ? 1 : 0}`),
|
|
872
|
+
onClick: T
|
|
873
|
+
}, null, 12, Nl)
|
|
850
874
|
]))), 256)),
|
|
851
875
|
(a(!0), o(_, null, m(G.value, (t) => (a(), o("circle", {
|
|
852
876
|
cx: t.x,
|
|
@@ -854,41 +878,41 @@ const Ut = ["id"], Wt = {
|
|
|
854
878
|
r: t.r,
|
|
855
879
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
856
880
|
stroke: "none",
|
|
857
|
-
style: y(`cursor:pointer; opacity:${
|
|
858
|
-
}, null, 12,
|
|
881
|
+
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`)
|
|
882
|
+
}, null, 12, Bl))), 256)),
|
|
859
883
|
(a(!0), o(_, null, m(G.value, (t, s) => (a(), o("circle", {
|
|
860
884
|
cx: t.x,
|
|
861
885
|
cy: t.y,
|
|
862
886
|
r: t.r,
|
|
863
|
-
fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${
|
|
887
|
+
fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${$.value}_${t.rootIndex})` : t.color,
|
|
864
888
|
stroke: e.value.style.chart.layout.roots.stroke,
|
|
865
889
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
866
|
-
style: y(`cursor:pointer; opacity:${
|
|
867
|
-
onClick: (
|
|
868
|
-
}, null, 12,
|
|
869
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
890
|
+
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
891
|
+
onClick: (f) => Le(t)
|
|
892
|
+
}, null, 12, Dl))), 256)),
|
|
893
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", Ll, [
|
|
870
894
|
(a(!0), o(_, null, m(G.value, (t, s) => (a(), o("text", {
|
|
871
895
|
x: t.x,
|
|
872
896
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
873
897
|
"text-anchor": "middle",
|
|
874
898
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
875
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? n(
|
|
899
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? n(Me)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
876
900
|
"font-weight": "bold",
|
|
877
|
-
style: y(`cursor:pointer; opacity:${
|
|
878
|
-
onClick: (
|
|
879
|
-
}, c(n(
|
|
901
|
+
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
902
|
+
onClick: (f) => Le(t)
|
|
903
|
+
}, c(n(j)(
|
|
880
904
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
881
905
|
t.total,
|
|
882
|
-
n(
|
|
906
|
+
n(F)({
|
|
883
907
|
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
884
908
|
v: t.total,
|
|
885
909
|
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
886
910
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
887
911
|
}),
|
|
888
912
|
{ datapoint: t }
|
|
889
|
-
)), 13,
|
|
913
|
+
)), 13, Il))), 256)),
|
|
890
914
|
(a(!0), o(_, null, m(G.value, (t) => (a(), o("g", null, [
|
|
891
|
-
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex ||
|
|
915
|
+
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g", Ol, [
|
|
892
916
|
u("text", {
|
|
893
917
|
x: t.x,
|
|
894
918
|
y: t.y + t.r + 24,
|
|
@@ -896,131 +920,131 @@ const Ut = ["id"], Wt = {
|
|
|
896
920
|
fill: e.value.style.chart.layout.roots.labels.name.color,
|
|
897
921
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
898
922
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
899
|
-
onClick:
|
|
900
|
-
}, c(t.name), 9,
|
|
923
|
+
onClick: T
|
|
924
|
+
}, c(t.name), 9, Pl)
|
|
901
925
|
])) : h("", !0)
|
|
902
926
|
]))), 256))
|
|
903
927
|
])) : h("", !0),
|
|
904
928
|
(a(!0), o(_, null, m(U.value, (t) => (a(), o("rect", {
|
|
905
929
|
x: t.x1,
|
|
906
930
|
y: t.y1,
|
|
907
|
-
height:
|
|
931
|
+
height: i.value.branchSize,
|
|
908
932
|
width: t.x2 - t.x1,
|
|
909
933
|
fill: e.value.style.chart.layout.branches.underlayerColor,
|
|
910
934
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
911
935
|
stroke: "none",
|
|
912
|
-
style: y(`opacity:${
|
|
936
|
+
style: y(`opacity:${I(t) ? 1 : 0.05}`),
|
|
913
937
|
onClick: (s) => ve(t)
|
|
914
|
-
}, null, 12,
|
|
938
|
+
}, null, 12, Rl))), 256)),
|
|
915
939
|
(a(!0), o(_, null, m(U.value, (t, s) => (a(), o("rect", {
|
|
916
940
|
x: t.x1,
|
|
917
941
|
y: t.y1,
|
|
918
|
-
height:
|
|
942
|
+
height: i.value.branchSize,
|
|
919
943
|
width: t.x2 - t.x1,
|
|
920
|
-
fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${
|
|
944
|
+
fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${$.value}_${t.rootIndex})` : t.color,
|
|
921
945
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
922
946
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
923
947
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
924
|
-
style: y(`cursor:pointer; opacity:${
|
|
925
|
-
onClick: (
|
|
926
|
-
}, null, 12,
|
|
927
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
948
|
+
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
949
|
+
onClick: (f) => ve(t)
|
|
950
|
+
}, null, 12, El))), 256)),
|
|
951
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Vl, [
|
|
928
952
|
(a(!0), o(_, null, m(U.value, (t) => (a(), o("g", null, [
|
|
929
953
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
930
954
|
key: 0,
|
|
931
955
|
x: t.x1 + 6,
|
|
932
|
-
y: t.y1 +
|
|
956
|
+
y: t.y1 + i.value.branchSize / 1.5,
|
|
933
957
|
"text-anchor": "start",
|
|
934
|
-
fill: n(
|
|
958
|
+
fill: n(Me)(t.color),
|
|
935
959
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
936
960
|
"font-weight": "bold",
|
|
937
|
-
style: y(`cursor:pointer; opacity:${
|
|
961
|
+
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
938
962
|
onClick: (s) => ve(t)
|
|
939
|
-
}, c(n(
|
|
963
|
+
}, c(n(j)(
|
|
940
964
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
941
965
|
t.value,
|
|
942
|
-
n(
|
|
966
|
+
n(F)({
|
|
943
967
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
944
968
|
v: t.value,
|
|
945
969
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
946
970
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
947
971
|
}),
|
|
948
972
|
{ datapoint: t }
|
|
949
|
-
)), 13,
|
|
973
|
+
)), 13, Ml)) : h("", !0)
|
|
950
974
|
]))), 256))
|
|
951
975
|
])) : h("", !0),
|
|
952
976
|
(a(!0), o(_, null, m(U.value, (t, s) => (a(), o("g", null, [
|
|
953
|
-
(a(!0), o(_, null, m(n(
|
|
977
|
+
(a(!0), o(_, null, m(n(je)(
|
|
954
978
|
{ series: t.breakdown, base: 1 },
|
|
955
979
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
956
|
-
t.y1 +
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
), (
|
|
960
|
-
d:
|
|
961
|
-
stroke:
|
|
980
|
+
t.y1 + i.value.branchSize / 2,
|
|
981
|
+
i.value.branchSize / 3,
|
|
982
|
+
i.value.branchSize / 3
|
|
983
|
+
), (f, p) => (a(), o("path", {
|
|
984
|
+
d: f.path,
|
|
985
|
+
stroke: f.color,
|
|
962
986
|
"stroke-width": 10,
|
|
963
987
|
fill: "none",
|
|
964
|
-
style: y(`opacity:${
|
|
965
|
-
}, null, 12,
|
|
988
|
+
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
989
|
+
}, null, 12, jl))), 256)),
|
|
966
990
|
u("circle", {
|
|
967
|
-
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${
|
|
991
|
+
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${$.value})` : "transparent",
|
|
968
992
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
969
|
-
cy: t.y1 +
|
|
970
|
-
r:
|
|
971
|
-
onClick: (
|
|
972
|
-
style: y(`cursor:pointer;opacity:${
|
|
973
|
-
}, null, 12,
|
|
993
|
+
cy: t.y1 + i.value.branchSize / 2,
|
|
994
|
+
r: i.value.branchSize / 2 + 2,
|
|
995
|
+
onClick: (f) => ft(t),
|
|
996
|
+
style: y(`cursor:pointer;opacity:${I(t) ? 1 : 0.1}`)
|
|
997
|
+
}, null, 12, Xl)
|
|
974
998
|
]))), 256)),
|
|
975
|
-
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g",
|
|
999
|
+
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", Gl, [
|
|
976
1000
|
(a(!0), o(_, null, m(U.value, (t) => (a(), o("text", {
|
|
977
|
-
x: t.x2 +
|
|
978
|
-
y: t.y1 +
|
|
1001
|
+
x: t.x2 + i.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1002
|
+
y: t.y1 + i.value.branchSize / 2 + 5,
|
|
979
1003
|
"font-size": e.value.style.chart.layout.branches.labels.fontSize,
|
|
980
1004
|
"font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
981
1005
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
982
1006
|
"text-anchor": "start",
|
|
983
|
-
style: y(`opacity:${
|
|
984
|
-
}, c(t.name), 13,
|
|
1007
|
+
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
1008
|
+
}, c(t.name), 13, Ul))), 256))
|
|
985
1009
|
])) : h("", !0),
|
|
986
1010
|
u("line", {
|
|
987
|
-
x1: 256 +
|
|
988
|
-
x2: 256 +
|
|
989
|
-
y1:
|
|
990
|
-
y2:
|
|
1011
|
+
x1: 256 + i.value.padding.left,
|
|
1012
|
+
x2: 256 + i.value.padding.left,
|
|
1013
|
+
y1: z.value.top,
|
|
1014
|
+
y2: z.value.bottom,
|
|
991
1015
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
992
1016
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
993
|
-
}, null, 8,
|
|
1017
|
+
}, null, 8, Wl),
|
|
994
1018
|
!d.value && !x.value ? (a(), o("foreignObject", {
|
|
995
1019
|
key: 6,
|
|
996
1020
|
x: 0,
|
|
997
|
-
y:
|
|
998
|
-
height:
|
|
999
|
-
width:
|
|
1021
|
+
y: z.value.bottom,
|
|
1022
|
+
height: i.value.height - z.value.bottom,
|
|
1023
|
+
width: i.value.width,
|
|
1000
1024
|
style: { overflow: "visible" },
|
|
1001
1025
|
"data-no-svg-export": "",
|
|
1002
|
-
onClick:
|
|
1026
|
+
onClick: T
|
|
1003
1027
|
}, [
|
|
1004
|
-
u("div",
|
|
1005
|
-
u("div",
|
|
1028
|
+
u("div", ql, [
|
|
1029
|
+
u("div", Hl, [
|
|
1006
1030
|
(a(!0), o(_, null, m(G.value, (t) => (a(), o("div", {
|
|
1007
1031
|
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
1008
1032
|
}, [
|
|
1009
|
-
(a(), o("svg",
|
|
1033
|
+
(a(), o("svg", Kl, [
|
|
1010
1034
|
u("circle", {
|
|
1011
1035
|
cx: "10",
|
|
1012
1036
|
cy: "10",
|
|
1013
1037
|
r: "10",
|
|
1014
1038
|
fill: t.color,
|
|
1015
1039
|
stroke: "none"
|
|
1016
|
-
}, null, 8,
|
|
1040
|
+
}, null, 8, Zl)
|
|
1017
1041
|
])),
|
|
1018
|
-
n(
|
|
1042
|
+
n(Ae) ? h("", !0) : (a(), o(_, { key: 0 }, [
|
|
1019
1043
|
u("span", null, c(t.name) + ":", 1),
|
|
1020
|
-
u("b", null, c(n(
|
|
1044
|
+
u("b", null, c(n(j)(
|
|
1021
1045
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
1022
1046
|
t.total,
|
|
1023
|
-
n(
|
|
1047
|
+
n(F)({
|
|
1024
1048
|
p: e.value.style.chart.layout.legend.prefix,
|
|
1025
1049
|
v: t.total,
|
|
1026
1050
|
s: e.value.style.chart.layout.legend.suffix,
|
|
@@ -1028,8 +1052,8 @@ const Ut = ["id"], Wt = {
|
|
|
1028
1052
|
}),
|
|
1029
1053
|
{ datapoint: t }
|
|
1030
1054
|
)), 1),
|
|
1031
|
-
|
|
1032
|
-
v: t.total /
|
|
1055
|
+
Q(" (" + c(n(F)({
|
|
1056
|
+
v: t.total / D.value * 100,
|
|
1033
1057
|
s: "%",
|
|
1034
1058
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
1035
1059
|
})) + ") ", 1)
|
|
@@ -1037,56 +1061,56 @@ const Ut = ["id"], Wt = {
|
|
|
1037
1061
|
], 4))), 256))
|
|
1038
1062
|
])
|
|
1039
1063
|
])
|
|
1040
|
-
], 8,
|
|
1041
|
-
d.value &&
|
|
1064
|
+
], 8, Yl)) : h("", !0),
|
|
1065
|
+
d.value && M.value ? (a(), o("g", Jl, [
|
|
1042
1066
|
(a(), o("foreignObject", {
|
|
1043
1067
|
x: 0,
|
|
1044
|
-
y:
|
|
1045
|
-
height:
|
|
1046
|
-
width:
|
|
1068
|
+
y: pt(),
|
|
1069
|
+
height: i.value.height - z.value.bottom,
|
|
1070
|
+
width: i.value.width,
|
|
1047
1071
|
style: { overflow: "visible" },
|
|
1048
|
-
onClick:
|
|
1072
|
+
onClick: T
|
|
1049
1073
|
}, [
|
|
1050
|
-
u("div",
|
|
1074
|
+
u("div", ea, [
|
|
1051
1075
|
u("b", null, c(d.value.name), 1),
|
|
1052
|
-
u("div",
|
|
1076
|
+
u("div", ta, [
|
|
1053
1077
|
(a(!0), o(_, null, m(d.value.breakdown, (t, s) => (a(), o("div", {
|
|
1054
1078
|
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
1055
1079
|
}, [
|
|
1056
|
-
(a(), o("svg",
|
|
1080
|
+
(a(), o("svg", la, [
|
|
1057
1081
|
u("circle", {
|
|
1058
1082
|
cx: "10",
|
|
1059
1083
|
cy: "10",
|
|
1060
1084
|
r: "10",
|
|
1061
1085
|
fill: t.color,
|
|
1062
1086
|
stroke: "none"
|
|
1063
|
-
}, null, 8,
|
|
1087
|
+
}, null, 8, aa)
|
|
1064
1088
|
])),
|
|
1065
1089
|
u("span", null, [
|
|
1066
|
-
|
|
1090
|
+
Q(c(t.name) + ": ", 1),
|
|
1067
1091
|
u("b", null, c(e.value.style.chart.layout.legend.prefix) + " " + c(t.value.toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + c(e.value.style.chart.layout.legend.suffix), 1),
|
|
1068
|
-
|
|
1092
|
+
Q(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1069
1093
|
])
|
|
1070
1094
|
], 4))), 256))
|
|
1071
1095
|
])
|
|
1072
1096
|
])
|
|
1073
|
-
], 8,
|
|
1097
|
+
], 8, Ql)),
|
|
1074
1098
|
u("circle", {
|
|
1075
1099
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1076
|
-
cy: d.value.y1 +
|
|
1100
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1077
1101
|
r: 256,
|
|
1078
|
-
fill: `url(#nut_underlayer_${
|
|
1102
|
+
fill: `url(#nut_underlayer_${$.value})`,
|
|
1079
1103
|
onClick: W,
|
|
1080
|
-
class:
|
|
1081
|
-
}, null, 10,
|
|
1082
|
-
(a(!0), o(_, null, m(
|
|
1083
|
-
|
|
1104
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1105
|
+
}, null, 10, oa),
|
|
1106
|
+
(a(!0), o(_, null, m(M.value, (t) => (a(), o("g", null, [
|
|
1107
|
+
H(t) ? (a(), o("path", {
|
|
1084
1108
|
key: 0,
|
|
1085
|
-
d: n(
|
|
1109
|
+
d: n(Vt)(
|
|
1086
1110
|
t,
|
|
1087
1111
|
{
|
|
1088
1112
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1089
|
-
y: d.value.y1 +
|
|
1113
|
+
y: d.value.y1 + i.value.branchSize / 2
|
|
1090
1114
|
},
|
|
1091
1115
|
16,
|
|
1092
1116
|
16,
|
|
@@ -1099,41 +1123,41 @@ const Ut = ["id"], Wt = {
|
|
|
1099
1123
|
"stroke-linecap": "round",
|
|
1100
1124
|
"stroke-linejoin": "round",
|
|
1101
1125
|
fill: "none",
|
|
1102
|
-
class:
|
|
1103
|
-
}, null, 10,
|
|
1126
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1127
|
+
}, null, 10, sa)) : h("", !0)
|
|
1104
1128
|
]))), 256)),
|
|
1105
1129
|
u("circle", {
|
|
1106
1130
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1107
|
-
cy: d.value.y1 +
|
|
1131
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1108
1132
|
r: 118,
|
|
1109
1133
|
fill: e.value.style.chart.backgroundColor,
|
|
1110
1134
|
onClick: W,
|
|
1111
|
-
class:
|
|
1112
|
-
}, null, 10,
|
|
1113
|
-
(a(!0), o(_, null, m(
|
|
1135
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1136
|
+
}, null, 10, na),
|
|
1137
|
+
(a(!0), o(_, null, m(M.value, (t) => (a(), o("path", {
|
|
1114
1138
|
d: t.path,
|
|
1115
1139
|
stroke: t.color,
|
|
1116
1140
|
"stroke-width": 64,
|
|
1117
1141
|
fill: "none",
|
|
1118
1142
|
onClick: W,
|
|
1119
|
-
class:
|
|
1120
|
-
}, null, 10,
|
|
1143
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1144
|
+
}, null, 10, ua))), 256)),
|
|
1121
1145
|
u("circle", {
|
|
1122
1146
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1123
|
-
cy: d.value.y1 +
|
|
1147
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1124
1148
|
r: 110,
|
|
1125
|
-
fill: `url(#nutpick_${
|
|
1149
|
+
fill: `url(#nutpick_${$.value})`,
|
|
1126
1150
|
onClick: W,
|
|
1127
|
-
class:
|
|
1128
|
-
}, null, 10,
|
|
1151
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1152
|
+
}, null, 10, ra),
|
|
1129
1153
|
u("circle", {
|
|
1130
1154
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1131
|
-
cy: d.value.y1 +
|
|
1155
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1132
1156
|
r: 64,
|
|
1133
1157
|
fill: e.value.style.chart.backgroundColor,
|
|
1134
1158
|
onClick: W,
|
|
1135
|
-
class:
|
|
1136
|
-
}, null, 10,
|
|
1159
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1160
|
+
}, null, 10, ia),
|
|
1137
1161
|
u("text", {
|
|
1138
1162
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1139
1163
|
y: d.value.y1 + 8,
|
|
@@ -1142,8 +1166,8 @@ const Ut = ["id"], Wt = {
|
|
|
1142
1166
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1143
1167
|
"text-anchor": "middle",
|
|
1144
1168
|
onClick: W,
|
|
1145
|
-
class:
|
|
1146
|
-
}, c(e.value.translations.total), 11,
|
|
1169
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1170
|
+
}, c(e.value.translations.total), 11, ca),
|
|
1147
1171
|
u("text", {
|
|
1148
1172
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1149
1173
|
y: d.value.y1 + 36,
|
|
@@ -1152,161 +1176,161 @@ const Ut = ["id"], Wt = {
|
|
|
1152
1176
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1153
1177
|
"text-anchor": "middle",
|
|
1154
1178
|
onClick: W,
|
|
1155
|
-
class:
|
|
1156
|
-
}, c(n(
|
|
1179
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1180
|
+
}, c(n(j)(
|
|
1157
1181
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1158
1182
|
d.value.value,
|
|
1159
|
-
n(
|
|
1183
|
+
n(F)({
|
|
1160
1184
|
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1161
1185
|
v: d.value.value,
|
|
1162
1186
|
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1163
1187
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1164
1188
|
}),
|
|
1165
1189
|
{ datapoint: d.value }
|
|
1166
|
-
)), 11,
|
|
1167
|
-
(a(!0), o(_, null, m(
|
|
1168
|
-
|
|
1190
|
+
)), 11, da),
|
|
1191
|
+
(a(!0), o(_, null, m(M.value, (t, s) => (a(), o("g", null, [
|
|
1192
|
+
H(t) ? (a(), o("text", {
|
|
1169
1193
|
key: 0,
|
|
1170
|
-
x: n(
|
|
1171
|
-
"text-anchor": n(
|
|
1194
|
+
x: n(P)(t).x,
|
|
1195
|
+
"text-anchor": n(P)(t).anchor,
|
|
1172
1196
|
y: n(ee)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1173
1197
|
fill: t.color,
|
|
1174
1198
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1175
1199
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1176
|
-
class:
|
|
1177
|
-
}, " ⬤ ", 14,
|
|
1178
|
-
|
|
1200
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1201
|
+
}, " ⬤ ", 14, va)) : h("", !0),
|
|
1202
|
+
H(t) ? (a(), o("text", {
|
|
1179
1203
|
key: 1,
|
|
1180
|
-
x: n(
|
|
1181
|
-
"text-anchor": n(
|
|
1204
|
+
x: n(P)(t, !0).x,
|
|
1205
|
+
"text-anchor": n(P)(t, !0).anchor,
|
|
1182
1206
|
y: n(ee)(t),
|
|
1183
1207
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1184
1208
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1185
1209
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1186
|
-
class:
|
|
1187
|
-
}, c(d.value.breakdown[s].name), 15,
|
|
1210
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1211
|
+
}, c(d.value.breakdown[s].name), 15, ya)) : h("", !0)
|
|
1188
1212
|
]))), 256)),
|
|
1189
|
-
(a(!0), o(_, null, m(
|
|
1190
|
-
|
|
1213
|
+
(a(!0), o(_, null, m(M.value, (t, s) => (a(), o("g", null, [
|
|
1214
|
+
H(t) ? (a(), o("text", {
|
|
1191
1215
|
key: 0,
|
|
1192
|
-
x: n(
|
|
1193
|
-
"text-anchor": n(
|
|
1216
|
+
x: n(P)(t, !0).x,
|
|
1217
|
+
"text-anchor": n(P)(t).anchor,
|
|
1194
1218
|
y: n(ee)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1195
1219
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1196
1220
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1197
1221
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1198
|
-
class:
|
|
1199
|
-
}, c(n(
|
|
1222
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1223
|
+
}, c(n(F)({
|
|
1200
1224
|
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
1201
1225
|
s: "%",
|
|
1202
1226
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1203
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(n(
|
|
1227
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(n(j)(
|
|
1204
1228
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1205
1229
|
d.value.breakdown[s].value,
|
|
1206
|
-
n(
|
|
1230
|
+
n(F)({
|
|
1207
1231
|
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1208
1232
|
v: d.value.breakdown[s].value,
|
|
1209
1233
|
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1210
1234
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1211
1235
|
}),
|
|
1212
|
-
{ datapoint:
|
|
1213
|
-
)), 15,
|
|
1214
|
-
|
|
1236
|
+
{ datapoint: M.value, seriesIndex: s }
|
|
1237
|
+
)), 15, ha)) : h("", !0),
|
|
1238
|
+
H(t) ? (a(), o("text", {
|
|
1215
1239
|
key: 1,
|
|
1216
|
-
x: n(
|
|
1217
|
-
"text-anchor": n(
|
|
1240
|
+
x: n(P)(t, !0).x,
|
|
1241
|
+
"text-anchor": n(P)(t).anchor,
|
|
1218
1242
|
y: n(ee)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1219
1243
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1220
1244
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1221
1245
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1222
|
-
class:
|
|
1223
|
-
}, c(n(
|
|
1246
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1247
|
+
}, c(n(F)({
|
|
1224
1248
|
v: d.value.breakdown[s].proportionToRoot * 100,
|
|
1225
1249
|
s: "%",
|
|
1226
1250
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1227
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15,
|
|
1228
|
-
|
|
1251
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15, ba)) : h("", !0),
|
|
1252
|
+
H(t) ? (a(), o("text", {
|
|
1229
1253
|
key: 2,
|
|
1230
|
-
x: n(
|
|
1231
|
-
"text-anchor": n(
|
|
1254
|
+
x: n(P)(t, !0).x,
|
|
1255
|
+
"text-anchor": n(P)(t).anchor,
|
|
1232
1256
|
y: n(ee)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1233
1257
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1234
1258
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1235
1259
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1236
|
-
class:
|
|
1237
|
-
}, c(n(
|
|
1260
|
+
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1261
|
+
}, c(n(F)({
|
|
1238
1262
|
v: d.value.breakdown[s].proportionToTree * 100,
|
|
1239
1263
|
s: "%",
|
|
1240
1264
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1241
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
1265
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, fa)) : h("", !0)
|
|
1242
1266
|
]))), 256))
|
|
1243
1267
|
])) : h("", !0),
|
|
1244
1268
|
(a(!0), o(_, null, m(U.value, (t) => (a(), o("g", null, [
|
|
1245
1269
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1246
1270
|
key: 0,
|
|
1247
1271
|
x: t.x1 + 6,
|
|
1248
|
-
y: t.y1 +
|
|
1272
|
+
y: t.y1 + i.value.branchSize + 24,
|
|
1249
1273
|
"font-weight": "bold",
|
|
1250
1274
|
"text-anchor": "start",
|
|
1251
1275
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1252
1276
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1253
|
-
onClick:
|
|
1254
|
-
}, c(t.name) + ": " + c(n(
|
|
1277
|
+
onClick: T
|
|
1278
|
+
}, c(t.name) + ": " + c(n(j)(
|
|
1255
1279
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
1256
1280
|
t.value,
|
|
1257
|
-
n(
|
|
1281
|
+
n(F)({
|
|
1258
1282
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1259
1283
|
v: t.value,
|
|
1260
1284
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1261
1285
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1262
1286
|
}),
|
|
1263
1287
|
{ datapoint: t }
|
|
1264
|
-
)), 9,
|
|
1288
|
+
)), 9, pa)) : h("", !0),
|
|
1265
1289
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1266
1290
|
key: 1,
|
|
1267
1291
|
x: t.x1 + 6,
|
|
1268
|
-
y: t.y1 +
|
|
1292
|
+
y: t.y1 + i.value.branchSize + 48,
|
|
1269
1293
|
"text-anchor": "start",
|
|
1270
1294
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1271
1295
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1272
|
-
onClick:
|
|
1273
|
-
}, c(n(
|
|
1296
|
+
onClick: T
|
|
1297
|
+
}, c(n(F)({
|
|
1274
1298
|
v: t.proportionToRoot * 100,
|
|
1275
1299
|
s: "%",
|
|
1276
1300
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1277
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1301
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, ga)) : h("", !0),
|
|
1278
1302
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1279
1303
|
key: 2,
|
|
1280
1304
|
x: t.x1 + 6,
|
|
1281
|
-
y: t.y1 +
|
|
1305
|
+
y: t.y1 + i.value.branchSize + 72,
|
|
1282
1306
|
"text-anchor": "start",
|
|
1283
1307
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1284
1308
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1285
|
-
onClick:
|
|
1286
|
-
}, c(n(
|
|
1287
|
-
v: t.value /
|
|
1309
|
+
onClick: T
|
|
1310
|
+
}, c(n(F)({
|
|
1311
|
+
v: t.value / D.value * 100,
|
|
1288
1312
|
s: "%",
|
|
1289
1313
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1290
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1314
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, _a)) : h("", !0)
|
|
1291
1315
|
]))), 256)),
|
|
1292
|
-
|
|
1293
|
-
], 14,
|
|
1294
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1295
|
-
|
|
1316
|
+
C(l.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
1317
|
+
], 14, ll)) : h("", !0),
|
|
1318
|
+
l.$slots.watermark ? (a(), o("div", ma, [
|
|
1319
|
+
C(l.$slots, "watermark", R(E({ isPrinting: n(ze) || n(Se) })), void 0, !0)
|
|
1296
1320
|
])) : h("", !0),
|
|
1297
|
-
|
|
1298
|
-
l.$slots.source ? (a(), o("div",
|
|
1299
|
-
|
|
1321
|
+
C(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1322
|
+
l.$slots.source ? (a(), o("div", xa, [
|
|
1323
|
+
C(l.$slots, "source", {}, void 0, !0)
|
|
1300
1324
|
], 512)) : h("", !0),
|
|
1301
|
-
|
|
1325
|
+
Ce.value && e.value.userOptions.buttons.table ? (a(), oe(Nt(ae.value.component), Bt({ key: 6 }, ae.value.props, {
|
|
1302
1326
|
ref_key: "tableUnit",
|
|
1303
|
-
ref:
|
|
1304
|
-
onClose:
|
|
1305
|
-
}),
|
|
1306
|
-
content:
|
|
1327
|
+
ref: J,
|
|
1328
|
+
onClose: be
|
|
1329
|
+
}), Ee({
|
|
1330
|
+
content: A(() => [
|
|
1307
1331
|
u("div", {
|
|
1308
1332
|
ref_key: "tableContainer",
|
|
1309
|
-
ref:
|
|
1333
|
+
ref: Be,
|
|
1310
1334
|
class: "vue-ui-chestnut-table",
|
|
1311
1335
|
style: y(`${e.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1312
1336
|
}, [
|
|
@@ -1318,10 +1342,10 @@ const Ut = ["id"], Wt = {
|
|
|
1318
1342
|
role: "button",
|
|
1319
1343
|
tabindex: "0",
|
|
1320
1344
|
style: y(`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};`),
|
|
1321
|
-
onClick:
|
|
1322
|
-
onKeypress:
|
|
1345
|
+
onClick: be,
|
|
1346
|
+
onKeypress: Dt(be, ["enter"])
|
|
1323
1347
|
}, [
|
|
1324
|
-
ge(n(
|
|
1348
|
+
ge(n(ke), {
|
|
1325
1349
|
name: "close",
|
|
1326
1350
|
stroke: e.value.table.th.color,
|
|
1327
1351
|
"stroke-width": 2
|
|
@@ -1329,16 +1353,16 @@ const Ut = ["id"], Wt = {
|
|
|
1329
1353
|
], 36)),
|
|
1330
1354
|
u("div", {
|
|
1331
1355
|
style: { width: "100%" },
|
|
1332
|
-
class:
|
|
1356
|
+
class: w({ "vue-ui-responsive": n(mt) })
|
|
1333
1357
|
}, [
|
|
1334
|
-
u("table",
|
|
1358
|
+
u("table", ka, [
|
|
1335
1359
|
e.value.table.useDialog ? h("", !0) : (a(), o("caption", {
|
|
1336
1360
|
key: 0,
|
|
1337
1361
|
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1338
1362
|
class: "vue-ui-data-table__caption"
|
|
1339
1363
|
}, [
|
|
1340
|
-
|
|
1341
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1364
|
+
Q(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1365
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", Ca, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1342
1366
|
], 4)),
|
|
1343
1367
|
u("thead", null, [
|
|
1344
1368
|
u("tr", {
|
|
@@ -1352,7 +1376,7 @@ const Ut = ["id"], Wt = {
|
|
|
1352
1376
|
]),
|
|
1353
1377
|
u("tbody", null, [
|
|
1354
1378
|
(a(!0), o(_, null, m(v.value.body, (t, s) => (a(), o("tr", {
|
|
1355
|
-
class:
|
|
1379
|
+
class: w({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1356
1380
|
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1357
1381
|
}, [
|
|
1358
1382
|
u("td", {
|
|
@@ -1360,99 +1384,99 @@ const Ut = ["id"], Wt = {
|
|
|
1360
1384
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1361
1385
|
"data-cell": v.value.head[0]
|
|
1362
1386
|
}, [
|
|
1363
|
-
u("div",
|
|
1364
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1387
|
+
u("div", Aa, [
|
|
1388
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", $a)) : (a(), o("span", Ta, c(t.rootName), 1))
|
|
1365
1389
|
])
|
|
1366
|
-
], 12,
|
|
1390
|
+
], 12, wa),
|
|
1367
1391
|
u("td", {
|
|
1368
1392
|
class: "vue-ui-data-table__tbody__td",
|
|
1369
1393
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1370
1394
|
"data-cell": v.value.head[1]
|
|
1371
1395
|
}, [
|
|
1372
|
-
u("div",
|
|
1373
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1396
|
+
u("div", Sa, [
|
|
1397
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", Fa)) : (a(), o("span", Na, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1374
1398
|
])
|
|
1375
|
-
], 12,
|
|
1399
|
+
], 12, za),
|
|
1376
1400
|
u("td", {
|
|
1377
1401
|
class: "vue-ui-data-table__tbody__td",
|
|
1378
1402
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1379
1403
|
"data-cell": v.value.head[2]
|
|
1380
1404
|
}, [
|
|
1381
|
-
u("div",
|
|
1382
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1405
|
+
u("div", Da, [
|
|
1406
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", La)) : (a(), o("span", Ia, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1383
1407
|
])
|
|
1384
|
-
], 12,
|
|
1408
|
+
], 12, Ba),
|
|
1385
1409
|
u("td", {
|
|
1386
1410
|
class: "vue-ui-data-table__tbody__td",
|
|
1387
1411
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1388
1412
|
"data-cell": v.value.head[3]
|
|
1389
1413
|
}, [
|
|
1390
|
-
u("div",
|
|
1391
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1414
|
+
u("div", Pa, [
|
|
1415
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Ra)) : (a(), o("span", Ea, c(t.branchName), 1))
|
|
1392
1416
|
])
|
|
1393
|
-
], 12,
|
|
1417
|
+
], 12, Oa),
|
|
1394
1418
|
u("td", {
|
|
1395
1419
|
class: "vue-ui-data-table__tbody__td",
|
|
1396
1420
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1397
1421
|
"data-cell": v.value.head[4]
|
|
1398
1422
|
}, [
|
|
1399
|
-
u("div",
|
|
1400
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1423
|
+
u("div", Ma, [
|
|
1424
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", ja)) : (a(), o("span", Xa, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1401
1425
|
])
|
|
1402
|
-
], 12,
|
|
1426
|
+
], 12, Va),
|
|
1403
1427
|
u("td", {
|
|
1404
1428
|
class: "vue-ui-data-table__tbody__td",
|
|
1405
1429
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1406
1430
|
"data-cell": v.value.head[5]
|
|
1407
1431
|
}, [
|
|
1408
|
-
u("div",
|
|
1409
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1432
|
+
u("div", Ua, [
|
|
1433
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Wa)) : (a(), o("span", Ya, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1410
1434
|
])
|
|
1411
|
-
], 12,
|
|
1435
|
+
], 12, Ga),
|
|
1412
1436
|
u("td", {
|
|
1413
1437
|
class: "vue-ui-data-table__tbody__td",
|
|
1414
1438
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1415
1439
|
"data-cell": v.value.head[6]
|
|
1416
1440
|
}, [
|
|
1417
|
-
u("div",
|
|
1418
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1441
|
+
u("div", Ha, [
|
|
1442
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Ka)) : (a(), o("span", Za, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1419
1443
|
])
|
|
1420
|
-
], 12,
|
|
1444
|
+
], 12, qa),
|
|
1421
1445
|
u("td", {
|
|
1422
1446
|
class: "vue-ui-data-table__tbody__td",
|
|
1423
1447
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1424
1448
|
"data-cell": v.value.head[7]
|
|
1425
1449
|
}, [
|
|
1426
|
-
u("div",
|
|
1427
|
-
], 12,
|
|
1450
|
+
u("div", Qa, c(t.nutName), 1)
|
|
1451
|
+
], 12, Ja),
|
|
1428
1452
|
u("td", {
|
|
1429
1453
|
class: "vue-ui-data-table__tbody__td",
|
|
1430
1454
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1431
1455
|
"data-cell": v.value.head[8]
|
|
1432
1456
|
}, [
|
|
1433
|
-
u("div",
|
|
1434
|
-
], 12,
|
|
1457
|
+
u("div", to, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1458
|
+
], 12, eo),
|
|
1435
1459
|
u("td", {
|
|
1436
1460
|
class: "vue-ui-data-table__tbody__td",
|
|
1437
1461
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1438
1462
|
"data-cell": v.value.head[9]
|
|
1439
1463
|
}, [
|
|
1440
|
-
u("div",
|
|
1441
|
-
], 12,
|
|
1464
|
+
u("div", ao, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1465
|
+
], 12, lo),
|
|
1442
1466
|
u("td", {
|
|
1443
1467
|
class: "vue-ui-data-table__tbody__td",
|
|
1444
1468
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1445
1469
|
"data-cell": v.value.head[10]
|
|
1446
1470
|
}, [
|
|
1447
|
-
u("div",
|
|
1448
|
-
], 12,
|
|
1471
|
+
u("div", so, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1472
|
+
], 12, oo),
|
|
1449
1473
|
u("td", {
|
|
1450
1474
|
class: "vue-ui-data-table__tbody__td",
|
|
1451
1475
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1452
1476
|
"data-cell": v.value.head[11]
|
|
1453
1477
|
}, [
|
|
1454
|
-
u("div",
|
|
1455
|
-
], 12,
|
|
1478
|
+
u("div", uo, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1479
|
+
], 12, no)
|
|
1456
1480
|
], 6))), 256))
|
|
1457
1481
|
])
|
|
1458
1482
|
])
|
|
@@ -1464,20 +1488,20 @@ const Ut = ["id"], Wt = {
|
|
|
1464
1488
|
}, [
|
|
1465
1489
|
e.value.table.useDialog ? {
|
|
1466
1490
|
name: "title",
|
|
1467
|
-
fn:
|
|
1468
|
-
|
|
1491
|
+
fn: A(() => [
|
|
1492
|
+
Q(c(ae.value.title), 1)
|
|
1469
1493
|
]),
|
|
1470
1494
|
key: "0"
|
|
1471
1495
|
} : void 0,
|
|
1472
1496
|
e.value.table.useDialog ? {
|
|
1473
1497
|
name: "actions",
|
|
1474
|
-
fn:
|
|
1498
|
+
fn: A(() => [
|
|
1475
1499
|
u("button", {
|
|
1476
1500
|
tabindex: "0",
|
|
1477
1501
|
class: "vue-ui-user-options-button",
|
|
1478
|
-
onClick:
|
|
1502
|
+
onClick: r[0] || (r[0] = (t) => ye(e.value.userOptions.callbacks.csv))
|
|
1479
1503
|
}, [
|
|
1480
|
-
ge(n(
|
|
1504
|
+
ge(n(ke), {
|
|
1481
1505
|
name: "excel",
|
|
1482
1506
|
stroke: ae.value.props.color
|
|
1483
1507
|
}, null, 8, ["stroke"])
|
|
@@ -1486,10 +1510,15 @@ const Ut = ["id"], Wt = {
|
|
|
1486
1510
|
key: "1"
|
|
1487
1511
|
} : void 0
|
|
1488
1512
|
]), 1040)) : h("", !0),
|
|
1489
|
-
n(
|
|
1490
|
-
], 46,
|
|
1513
|
+
n(Ae) ? (a(), oe(Ut, { key: 7 })) : h("", !0)
|
|
1514
|
+
], 46, el));
|
|
1491
1515
|
}
|
|
1492
|
-
},
|
|
1516
|
+
}, io = /* @__PURE__ */ Qt(ro, [["__scopeId", "data-v-6e30b6b8"]]), wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1517
|
+
__proto__: null,
|
|
1518
|
+
default: io
|
|
1519
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1493
1520
|
export {
|
|
1494
|
-
|
|
1521
|
+
Co as a,
|
|
1522
|
+
wo as b,
|
|
1523
|
+
io as v
|
|
1495
1524
|
};
|