vue-data-ui 3.15.12 → 3.16.1
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 +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.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 +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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 +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,1557 +0,0 @@
|
|
|
1
|
-
import { useCssVars as zt, defineAsyncComponent as J, computed as g, ref as $, toRefs as St, watch as ke, onMounted as Nt, nextTick as ue, openBlock as a, createElementBlock as o, unref as n, normalizeStyle as y, normalizeClass as T, createBlock as re, withCtx as C, renderSlot as x, normalizeProps as V, guardReactiveProps as B, createCommentVNode as h, createSlots as Ee, createVNode as we, toDisplayString as c, createElementVNode as u, Fragment as _, renderList as m, createTextVNode as ee, resolveDynamicComponent as Ft, mergeProps as It, withKeys as Pt } from "vue";
|
|
2
|
-
import { j as Lt, t as Ge, m as Ot, p as M, n as Rt, r as Ce, q as ie, s as $e, o as Vt, k as E, l as F, X as Bt, u as I, v as Ue, W as We, a3 as Ye, a4 as Mt, a5 as te, a6 as j, a0 as jt, a1 as Dt } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { u as Xt } from "./useConfig-CIgyKZ6R.js";
|
|
4
|
-
import { u as Et, B as Gt } from "./BaseScanner-BhhkKVoj.js";
|
|
5
|
-
import { u as Ut } from "./usePrinter-DiK5R6k-.js";
|
|
6
|
-
import { u as Wt } from "./useSvgExport-ByUukOZt.js";
|
|
7
|
-
import { u as Te } from "./useNestedProp-BBT0mbHh.js";
|
|
8
|
-
import { u as Yt } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
-
import { u as qt } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
-
import { u as Ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
-
import Zt from "./img-BYYzY_QU.js";
|
|
13
|
-
import Jt from "./vue_ui_chestnut-BloFvDuV.js";
|
|
14
|
-
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const el = ["id"], tl = {
|
|
16
|
-
key: 1,
|
|
17
|
-
ref: "noTitle",
|
|
18
|
-
class: "vue-data-ui-no-title-space",
|
|
19
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
-
}, 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"], fl = ["stop-color"], bl = ["stop-color"], pl = ["id"], gl = ["stop-color"], _l = ["stop-color"], ml = ["stop-color"], xl = ["id"], kl = ["stop-color"], wl = ["stop-color"], Cl = ["stop-color"], $l = { key: 2 }, Tl = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "font-weight", "fill"], zl = ["id"], Sl = ["stop-color"], Nl = ["stop-color"], Fl = ["d", "stroke", "fill"], Il = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Ll = { key: 3 }, Ol = ["x", "y", "font-size", "fill", "onClick"], Rl = { key: 0 }, Vl = ["x", "y", "fill", "font-size", "font-weight"], Bl = ["x", "y", "height", "width", "fill", "rx", "onClick"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], jl = { key: 4 }, Dl = ["x", "y", "fill", "font-size", "onClick"], Xl = ["d", "stroke"], El = ["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 = {
|
|
21
|
-
viewBox: "0 0 20 20",
|
|
22
|
-
height: "16",
|
|
23
|
-
width: "16"
|
|
24
|
-
}, 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 = {
|
|
25
|
-
viewBox: "0 0 20 20",
|
|
26
|
-
height: "16",
|
|
27
|
-
width: "16"
|
|
28
|
-
}, 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"], fa = ["x", "text-anchor", "y", "fill", "font-size"], ba = ["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 = {
|
|
29
|
-
key: 4,
|
|
30
|
-
class: "vue-data-ui-watermark"
|
|
31
|
-
}, xa = {
|
|
32
|
-
key: 5,
|
|
33
|
-
ref: "source",
|
|
34
|
-
dir: "auto"
|
|
35
|
-
}, ka = { class: "vue-ui-data-table" }, wa = { key: 0 }, Ca = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ta = { key: 0 }, Aa = { key: 1 }, za = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Na = { key: 0 }, Fa = { key: 1 }, Ia = ["data-cell"], Pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = { key: 0 }, Oa = { key: 1 }, Ra = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ba = { key: 0 }, Ma = { key: 1 }, ja = ["data-cell"], Da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Xa = { key: 0 }, Ea = { 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 = {
|
|
36
|
-
__name: "vue-ui-chestnut",
|
|
37
|
-
props: {
|
|
38
|
-
config: {
|
|
39
|
-
type: Object,
|
|
40
|
-
default() {
|
|
41
|
-
return {};
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
dataset: {
|
|
45
|
-
type: Array,
|
|
46
|
-
default() {
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["selectRoot", "selectBranch", "selectNut", "copyAlt"],
|
|
52
|
-
setup(qe, { expose: He, emit: Ke }) {
|
|
53
|
-
zt((l) => ({
|
|
54
|
-
v02951477: l.tdo
|
|
55
|
-
}));
|
|
56
|
-
const Ae = J(() => import("./BaseIcon-CNx8Tzl5.js")), Ze = J(() => import("./vue-ui-accordion-BGHTqIBt.js")), Je = J(() => import("./PenAndPaper-DWV1FMIi.js")), Qe = J(() => import("./UserOptions-CrLqEimB.js")), et = J(() => import("./PackageVersion-DN9d0ME5.js")), tt = J(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_chestnut: lt } = Xt(), { isThemeValid: at, warnInvalidTheme: ot } = Yt(), D = qe, ze = g(() => !!D.dataset && D.dataset.length), A = $(Lt()), H = $(null), Se = $(0), Q = $(null), ce = $(null), le = $(!1), ae = $(!1), e = $(he()), P = g(() => e.value.userOptions.useCursorPointer), st = g(() => Ge({
|
|
57
|
-
defaultConfig: {
|
|
58
|
-
userOptions: { show: !1 },
|
|
59
|
-
table: { show: !1 },
|
|
60
|
-
style: {
|
|
61
|
-
chart: {
|
|
62
|
-
backgroundColor: "#99999930",
|
|
63
|
-
layout: {
|
|
64
|
-
grandTotal: { show: !1 },
|
|
65
|
-
roots: {
|
|
66
|
-
stroke: "#6A6A6A",
|
|
67
|
-
labels: { show: !1 }
|
|
68
|
-
},
|
|
69
|
-
verticalSeparator: { stroke: "transparent" },
|
|
70
|
-
branches: {
|
|
71
|
-
stroke: "#6A6A6A",
|
|
72
|
-
underlayerColor: "#6A6A6A90",
|
|
73
|
-
labels: {
|
|
74
|
-
show: !1,
|
|
75
|
-
dataLabels: { show: !1 }
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
83
|
-
})), { loading: Ne, FINAL_DATASET: de } = Et({
|
|
84
|
-
...St(D),
|
|
85
|
-
FINAL_CONFIG: e,
|
|
86
|
-
prepareConfig: he,
|
|
87
|
-
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
88
|
-
{
|
|
89
|
-
name: "_",
|
|
90
|
-
color: "#969696",
|
|
91
|
-
branches: [
|
|
92
|
-
{
|
|
93
|
-
name: "_",
|
|
94
|
-
value: 32,
|
|
95
|
-
breakdown: [
|
|
96
|
-
{ name: "_", value: 16, color: "#CACACA" },
|
|
97
|
-
{ name: "_", value: 16, color: "#6A6A6A" }
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "_",
|
|
102
|
-
value: 16,
|
|
103
|
-
breakdown: [
|
|
104
|
-
{ name: "_", value: 8, color: "#CACACA" },
|
|
105
|
-
{ name: "_", value: 8, color: "#6A6A6A" }
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: "_",
|
|
110
|
-
value: 8,
|
|
111
|
-
breakdown: [
|
|
112
|
-
{ name: "_", value: 4, color: "#CACACA" },
|
|
113
|
-
{ name: "_", value: 4, color: "#6A6A6A" }
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "_",
|
|
118
|
-
value: 4,
|
|
119
|
-
breakdown: [
|
|
120
|
-
{ name: "_", value: 2, color: "#CACACA" },
|
|
121
|
-
{ name: "_", value: 2, color: "#6A6A6A" }
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "_",
|
|
128
|
-
color: "#C4C4C4",
|
|
129
|
-
branches: [
|
|
130
|
-
{
|
|
131
|
-
name: "_",
|
|
132
|
-
value: 24,
|
|
133
|
-
breakdown: [
|
|
134
|
-
{ name: "_", value: 12, color: "#CACACA" },
|
|
135
|
-
{ name: "_", value: 12, color: "#6A6A6A" }
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "_",
|
|
140
|
-
value: 12,
|
|
141
|
-
breakdown: [
|
|
142
|
-
{ name: "_", value: 6, color: "#CACACA" },
|
|
143
|
-
{ name: "_", value: 6, color: "#6A6A6A" }
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: "_",
|
|
148
|
-
value: 6,
|
|
149
|
-
breakdown: [
|
|
150
|
-
{ name: "_", value: 3, color: "#CACACA" },
|
|
151
|
-
{ name: "_", value: 3, color: "#6A6A6A" }
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: "_",
|
|
156
|
-
value: 2,
|
|
157
|
-
breakdown: [
|
|
158
|
-
{ name: "_", value: 1, color: "#CACACA" },
|
|
159
|
-
{ name: "_", value: 1, color: "#6A6A6A" }
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
skeletonConfig: Ge({
|
|
166
|
-
defaultConfig: e.value,
|
|
167
|
-
userConfig: st.value
|
|
168
|
-
})
|
|
169
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState: Ie } = Ht({ config: e.value }), { svgRef: ye } = Kt({ config: e.value.style.chart.layout.title });
|
|
170
|
-
function he() {
|
|
171
|
-
const l = Te({
|
|
172
|
-
userConfig: D.config,
|
|
173
|
-
defaultConfig: lt
|
|
174
|
-
}), r = l.theme;
|
|
175
|
-
if (!r) return l;
|
|
176
|
-
if (!at.value(l))
|
|
177
|
-
return ot(l), l;
|
|
178
|
-
const t = Te({
|
|
179
|
-
userConfig: Jt[r] || D.config,
|
|
180
|
-
defaultConfig: l
|
|
181
|
-
}), s = Te({
|
|
182
|
-
userConfig: D.config,
|
|
183
|
-
defaultConfig: t
|
|
184
|
-
});
|
|
185
|
-
return {
|
|
186
|
-
...s,
|
|
187
|
-
customPalette: s.customPalette.length ? s.customPalette : Ot[r] || M
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
ke(() => D.config, (l) => {
|
|
191
|
-
e.value = he(), ve.value = !e.value.userOptions.showOnChartHover, G.value.showTable = e.value.table.show, Be();
|
|
192
|
-
}, { deep: !0 });
|
|
193
|
-
const { isPrinting: fe, isImaging: be, generatePdf: Pe, generateImage: Le } = Ut({
|
|
194
|
-
elementId: `vue-ui-chestnut_${A.value}`,
|
|
195
|
-
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
196
|
-
options: e.value.userOptions.print
|
|
197
|
-
}), nt = g(() => e.value.userOptions.show), pe = g(() => Rt(e.value.customPalette)), G = $({
|
|
198
|
-
showTable: e.value.table.show
|
|
199
|
-
});
|
|
200
|
-
ke(e, () => {
|
|
201
|
-
G.value = {
|
|
202
|
-
showTable: e.value.table.show
|
|
203
|
-
};
|
|
204
|
-
}, { immediate: !0 });
|
|
205
|
-
const Oe = $(null), ut = g(() => e.value.table.responsiveBreakpoint), i = $({
|
|
206
|
-
gap: 6,
|
|
207
|
-
padding: {
|
|
208
|
-
top: 102,
|
|
209
|
-
left: 12,
|
|
210
|
-
right: 12,
|
|
211
|
-
bottom: 96
|
|
212
|
-
},
|
|
213
|
-
width: 1024,
|
|
214
|
-
height: 0,
|
|
215
|
-
branchSize: 32,
|
|
216
|
-
branchStart: 128
|
|
217
|
-
}), S = g(() => ({
|
|
218
|
-
left: i.value.padding.left,
|
|
219
|
-
top: i.value.padding.top,
|
|
220
|
-
right: i.value.width - i.value.padding.right,
|
|
221
|
-
bottom: i.value.height - i.value.padding.bottom,
|
|
222
|
-
width: i.value.width - (i.value.padding.left + i.value.padding.right),
|
|
223
|
-
height: i.value.height - (i.value.padding.top + i.value.padding.bottom),
|
|
224
|
-
seedX: i.value.padding.left + 64
|
|
225
|
-
})), L = g(() => de.value.flatMap((l) => (l.branches || []).map((r) => r.value || 0)).reduce((l, r) => l + r, 0)), N = g(() => (de.value.forEach((l, r) => {
|
|
226
|
-
Ce({
|
|
227
|
-
datasetObject: l,
|
|
228
|
-
requiredAttributes: ["name", "branches"]
|
|
229
|
-
}).forEach((t) => {
|
|
230
|
-
ie({
|
|
231
|
-
componentName: "VueUiChestnut",
|
|
232
|
-
type: "datasetSerieAttribute",
|
|
233
|
-
property: t,
|
|
234
|
-
index: r,
|
|
235
|
-
debug: oe.value
|
|
236
|
-
});
|
|
237
|
-
}), l.branches && l.branches.forEach((t, s) => {
|
|
238
|
-
Ce({
|
|
239
|
-
datasetObject: t,
|
|
240
|
-
requiredAttributes: ["name", "value"]
|
|
241
|
-
}).forEach((b) => {
|
|
242
|
-
ie({
|
|
243
|
-
componentName: "VueUiChestnut",
|
|
244
|
-
type: "datasetSerieAttribute",
|
|
245
|
-
property: b,
|
|
246
|
-
index: `${r} - ${s}`,
|
|
247
|
-
debug: oe.value
|
|
248
|
-
});
|
|
249
|
-
}), t.breakdown && t.breakdown.forEach((b, p) => {
|
|
250
|
-
Ce({
|
|
251
|
-
datasetObject: b,
|
|
252
|
-
requiredAttributes: ["name", "value"]
|
|
253
|
-
}).forEach((f) => {
|
|
254
|
-
ie({
|
|
255
|
-
componentName: "VueUiChestnut",
|
|
256
|
-
type: "datasetSerieAttribute",
|
|
257
|
-
property: f,
|
|
258
|
-
index: `${r} - ${s} - ${p}`,
|
|
259
|
-
debug: oe.value
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
}), de.value.map((l, r) => {
|
|
265
|
-
const t = (l.branches || []).map((s) => s.value || 0).reduce((s, b) => s + b, 0);
|
|
266
|
-
return {
|
|
267
|
-
...l,
|
|
268
|
-
color: $e(l.color) || pe.value[r] || M[r] || M[r % M.length],
|
|
269
|
-
id: l.id || `root_${r}_${A.value}`,
|
|
270
|
-
type: "root",
|
|
271
|
-
total: t,
|
|
272
|
-
rootIndex: r,
|
|
273
|
-
branches: (l.branches || []).map((s, b) => ({
|
|
274
|
-
...s,
|
|
275
|
-
rootName: l.name,
|
|
276
|
-
rootIndex: r,
|
|
277
|
-
color: $e(l.color) || pe.value[r] || M[r] || M[r % M.length],
|
|
278
|
-
value: s.value >= 0 ? s.value : 0,
|
|
279
|
-
id: s.id || `branch_${r}_${b}_${A.value}`,
|
|
280
|
-
proportionToRoot: s.value / t,
|
|
281
|
-
type: "branch",
|
|
282
|
-
breakdown: (s.breakdown || []).map((p, f) => ({
|
|
283
|
-
table: {
|
|
284
|
-
rootName: l.name,
|
|
285
|
-
rootValue: t,
|
|
286
|
-
rootToTotal: t / L.value,
|
|
287
|
-
branchName: s.name,
|
|
288
|
-
branchValue: s.value,
|
|
289
|
-
branchToTotal: s.value / L.value,
|
|
290
|
-
branchToRoot: s.value / t,
|
|
291
|
-
nutName: p.name,
|
|
292
|
-
nutValue: p.value,
|
|
293
|
-
nutToTotal: p.value / L.value,
|
|
294
|
-
nutToRoot: p.value / t,
|
|
295
|
-
nutToBranch: p.value / s.value
|
|
296
|
-
},
|
|
297
|
-
...p,
|
|
298
|
-
type: "nut",
|
|
299
|
-
branchName: s.name,
|
|
300
|
-
rootName: l.name,
|
|
301
|
-
branchTotal: s.value >= 0 ? s.value : 0,
|
|
302
|
-
proportionToBranch: p.value / s.value,
|
|
303
|
-
proportionToRoot: p.value / t,
|
|
304
|
-
proportionToTree: p.value / L.value,
|
|
305
|
-
rootIndex: r,
|
|
306
|
-
id: p.id || `nut_${r}_${b}_${f}_${A.value}`,
|
|
307
|
-
color: $e(p.color) || pe.value[f] || M[f] || M[f % M.length],
|
|
308
|
-
value: p.value >= 0 ? p.value : 0
|
|
309
|
-
}))
|
|
310
|
-
}))
|
|
311
|
-
};
|
|
312
|
-
})));
|
|
313
|
-
function rt() {
|
|
314
|
-
return N.value;
|
|
315
|
-
}
|
|
316
|
-
const U = Ke, it = g(() => N.value.flatMap((l) => l.branches).length), ct = g(() => Math.max(...N.value.map((l) => l.branches.map((r) => r.value).reduce((r, t) => r + t, 0)))), dt = g(() => Math.max(...N.value.flatMap((l) => l.branches.map((r) => r.value)))), Re = g(() => 256 + i.value.padding.left), W = g(() => N.value.sort((l, r) => r.total - l.total).map((l, r) => {
|
|
317
|
-
const t = S.value.height / N.value.length / 2, s = l.total / ct.value * (t > 64 ? 64 : t);
|
|
318
|
-
return {
|
|
319
|
-
...l,
|
|
320
|
-
x: S.value.seedX,
|
|
321
|
-
y: S.value.top + S.value.height / N.value.length * (r + 1) - (S.value.height / N.value.length / 2 + i.value.gap / 2),
|
|
322
|
-
r: s < i.value.branchSize / 2 ? i.value.branchSize / 2 : s
|
|
323
|
-
};
|
|
324
|
-
})), vt = 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), yt = g(() => W.value.flatMap((l) => l.branches)), Y = g(() => yt.value.sort((l, r) => r.value - l.value).map((l, r) => ({
|
|
325
|
-
...l,
|
|
326
|
-
y1: r * i.value.branchSize + S.value.top + r * i.value.gap,
|
|
327
|
-
y2: r * i.value.branchSize + i.value.branchSize,
|
|
328
|
-
x1: Re.value,
|
|
329
|
-
x2: 384 * l.value / dt.value * vt.value + Re.value
|
|
330
|
-
})));
|
|
331
|
-
function ht(l) {
|
|
332
|
-
const r = W.value.find((t) => t.rootIndex === l.rootIndex);
|
|
333
|
-
return { x: r.x, y: r.y, r: r.r };
|
|
334
|
-
}
|
|
335
|
-
const d = $(null), X = $(null), k = $(null), O = $(null);
|
|
336
|
-
function z() {
|
|
337
|
-
d.value = null, k.value = null, O.value = null;
|
|
338
|
-
}
|
|
339
|
-
function R(l) {
|
|
340
|
-
return O.value ? O.value === null ? !0 : l.type === "root" ? l.id === O.value.id : l.rootIndex === O.value.rootIndex : d.value === null && k.value === null ? !0 : l.type === "nut" ? d.value.id === l.id : l.type === "branch" ? k.value.id === l.id : l.type === "root" ? k.value && k.value.rootIndex === l.rootIndex || d.value && d.value.rootIndex === l.rootIndex : !1;
|
|
341
|
-
}
|
|
342
|
-
function ft(l) {
|
|
343
|
-
z(), ue(() => {
|
|
344
|
-
d.value = l, k.value = l, X.value = Ye(
|
|
345
|
-
{ series: l.breakdown },
|
|
346
|
-
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
347
|
-
l.y1 + i.value.branchSize / 2,
|
|
348
|
-
80,
|
|
349
|
-
80
|
|
350
|
-
), U("selectNut", l.breakdown);
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
function q() {
|
|
354
|
-
d.value = null, X.value = null, U("selectNut", null);
|
|
355
|
-
}
|
|
356
|
-
function ge(l) {
|
|
357
|
-
k.value && k.value.id === l.id ? (k.value = null, z(), U("selectBranch", null)) : (z(), k.value = l, U("selectBranch", l));
|
|
358
|
-
}
|
|
359
|
-
function Ve(l) {
|
|
360
|
-
O.value && O.value.id === l.id ? (z(), U("selectRoot", null)) : (z(), O.value = l, U("selectRoot", l));
|
|
361
|
-
}
|
|
362
|
-
function bt() {
|
|
363
|
-
return S.value.bottom - (d.value.y1 + 180) < 0 ? 0 : S.value.bottom;
|
|
364
|
-
}
|
|
365
|
-
function K(l) {
|
|
366
|
-
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
367
|
-
}
|
|
368
|
-
Nt(() => {
|
|
369
|
-
Be();
|
|
370
|
-
});
|
|
371
|
-
const oe = g(() => e.value.debug);
|
|
372
|
-
function Be() {
|
|
373
|
-
Vt(D.dataset) && ie({
|
|
374
|
-
componentName: "VueUiChestnut",
|
|
375
|
-
type: "dataset",
|
|
376
|
-
debug: oe.value
|
|
377
|
-
});
|
|
378
|
-
const l = it.value * (i.value.branchSize + i.value.gap) + i.value.padding.top + i.value.padding.bottom;
|
|
379
|
-
i.value.height = l;
|
|
380
|
-
}
|
|
381
|
-
const v = g(() => {
|
|
382
|
-
const l = [
|
|
383
|
-
e.value.table.th.translations.rootName,
|
|
384
|
-
e.value.table.th.translations.rootValue,
|
|
385
|
-
e.value.table.th.translations.rootToTotal,
|
|
386
|
-
e.value.table.th.translations.branchName,
|
|
387
|
-
e.value.table.th.translations.branchValue,
|
|
388
|
-
e.value.table.th.translations.branchToRoot,
|
|
389
|
-
e.value.table.th.translations.branchToTotal,
|
|
390
|
-
e.value.table.th.translations.nutName,
|
|
391
|
-
e.value.table.th.translations.nutValue,
|
|
392
|
-
e.value.table.th.translations.nutToBranch,
|
|
393
|
-
e.value.table.th.translations.nutToRoot,
|
|
394
|
-
e.value.table.th.translations.nutToTotal
|
|
395
|
-
], r = N.value.flatMap((t, s) => t.branches.flatMap((b, p) => b.breakdown.flatMap((f, w) => f.table)));
|
|
396
|
-
return { head: l, body: r };
|
|
397
|
-
});
|
|
398
|
-
function _e(l = null) {
|
|
399
|
-
ue(() => {
|
|
400
|
-
const r = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", L.value], [""]], t = v.value.head, s = v.value.body.map((f, w) => [
|
|
401
|
-
v.value.body[w - 1] && v.value.body[w - 1].rootName === f.rootName ? "" : f.rootName,
|
|
402
|
-
v.value.body[w - 1] && v.value.body[w - 1].rootName === f.rootName ? "" : f.rootValue,
|
|
403
|
-
v.value.body[w - 1] && v.value.body[w - 1].rootName === f.rootName ? "" : f.rootToTotal,
|
|
404
|
-
v.value.body[w - 1] && v.value.body[w - 1].branchName === f.branchName ? "" : f.branchName,
|
|
405
|
-
v.value.body[w - 1] && v.value.body[w - 1].branchName === f.branchName ? "" : f.branchValue,
|
|
406
|
-
v.value.body[w - 1] && v.value.body[w - 1].branchName === f.branchName ? "" : f.branchToRoot,
|
|
407
|
-
v.value.body[w - 1] && v.value.body[w - 1].branchName === f.branchName ? "" : f.branchToTotal,
|
|
408
|
-
f.nutName,
|
|
409
|
-
f.nutValue,
|
|
410
|
-
f.nutToBranch,
|
|
411
|
-
f.nutToRoot,
|
|
412
|
-
f.nutToTotal
|
|
413
|
-
]), b = r.concat([t]).concat(s), p = jt(b);
|
|
414
|
-
l ? l(p) : Dt({ csvContent: p, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
const Z = $(!1);
|
|
418
|
-
function Me(l) {
|
|
419
|
-
Z.value = l, Se.value += 1;
|
|
420
|
-
}
|
|
421
|
-
function je() {
|
|
422
|
-
G.value.showTable = !G.value.showTable;
|
|
423
|
-
}
|
|
424
|
-
const se = $(!1);
|
|
425
|
-
function me() {
|
|
426
|
-
se.value = !se.value;
|
|
427
|
-
}
|
|
428
|
-
async function pt({ scale: l = 2 } = {}) {
|
|
429
|
-
if (!H.value) return;
|
|
430
|
-
const { width: r, height: t } = H.value.getBoundingClientRect(), s = r / t, { imageUri: b, base64: p } = await Zt({ domElement: H.value, base64: !0, img: !0, scale: l });
|
|
431
|
-
return {
|
|
432
|
-
imageUri: b,
|
|
433
|
-
base64: p,
|
|
434
|
-
title: e.value.style.chart.layout.title.text,
|
|
435
|
-
width: r,
|
|
436
|
-
height: t,
|
|
437
|
-
aspectRatio: s
|
|
438
|
-
};
|
|
439
|
-
}
|
|
440
|
-
function gt(l) {
|
|
441
|
-
const r = ht(l), t = l.x1, s = l.y1, b = i.value.branchSize, p = r.x + r.r / 2, f = r.y, w = 20;
|
|
442
|
-
return [
|
|
443
|
-
`M ${t},${s}`,
|
|
444
|
-
`C ${t - w},${s} ${t - w},${s} ${p},${f}`,
|
|
445
|
-
`C ${p},${f} ${t - w},${s + b} ${t},${s + b}`,
|
|
446
|
-
"Z"
|
|
447
|
-
].join(" ");
|
|
448
|
-
}
|
|
449
|
-
const ne = g(() => {
|
|
450
|
-
const l = e.value.table.useDialog && !e.value.table.show, r = G.value.showTable;
|
|
451
|
-
return {
|
|
452
|
-
component: l ? tt : Ze,
|
|
453
|
-
title: `${e.value.style.chart.layout.title.text}${e.value.style.chart.layout.title.subtitle.text ? `: ${e.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
454
|
-
props: l ? {
|
|
455
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
456
|
-
color: e.value.table.th.color,
|
|
457
|
-
headerColor: e.value.table.th.color,
|
|
458
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
459
|
-
isFullscreen: Z.value,
|
|
460
|
-
fullscreenParent: H.value,
|
|
461
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
462
|
-
isCursorPointer: P.value
|
|
463
|
-
} : {
|
|
464
|
-
hideDetails: !0,
|
|
465
|
-
config: {
|
|
466
|
-
open: r,
|
|
467
|
-
maxHeight: 1e4,
|
|
468
|
-
body: {
|
|
469
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
470
|
-
color: e.value.style.chart.color
|
|
471
|
-
},
|
|
472
|
-
head: {
|
|
473
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
474
|
-
color: e.value.style.chart.color
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
});
|
|
480
|
-
ke(() => G.value.showTable, async (l) => {
|
|
481
|
-
e.value.table.show || (l && e.value.table.useDialog && Q.value ? (await ue(), Q.value.open()) : "close" in Q.value && Q.value.close());
|
|
482
|
-
});
|
|
483
|
-
const { isResponsive: _t } = qt(Oe, ut);
|
|
484
|
-
function xe() {
|
|
485
|
-
G.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
|
|
486
|
-
}
|
|
487
|
-
const mt = g(() => N.value.map((l, r) => ({
|
|
488
|
-
...l,
|
|
489
|
-
display: `${l.name}: ${E(
|
|
490
|
-
e.value.style.chart.layout.roots.labels.formatter,
|
|
491
|
-
l.total,
|
|
492
|
-
F({
|
|
493
|
-
p: e.value.style.chart.layout.legend.prefix,
|
|
494
|
-
v: l.total,
|
|
495
|
-
s: e.value.style.chart.layout.legend.suffix,
|
|
496
|
-
r: e.value.style.chart.layout.legend.roundingValue
|
|
497
|
-
}),
|
|
498
|
-
{ datapoint: l }
|
|
499
|
-
)} (${F({
|
|
500
|
-
v: l.total / L.value * 100,
|
|
501
|
-
s: "%",
|
|
502
|
-
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
503
|
-
})})`
|
|
504
|
-
}))), xt = g(() => mt.value.map((l) => ({
|
|
505
|
-
color: l.color,
|
|
506
|
-
name: l.display,
|
|
507
|
-
shape: "circle"
|
|
508
|
-
}))), kt = g(() => e.value.style.chart.backgroundColor), wt = g(() => ({
|
|
509
|
-
...e.value.style.chart.layout.legend,
|
|
510
|
-
textAlign: "center",
|
|
511
|
-
show: !0,
|
|
512
|
-
position: "bottom"
|
|
513
|
-
})), Ct = g(() => e.value.style.chart.layout.title), { exportSvg: $t, getSvg: Tt } = Wt({
|
|
514
|
-
svg: ye,
|
|
515
|
-
title: Ct,
|
|
516
|
-
legend: wt,
|
|
517
|
-
legendItems: xt,
|
|
518
|
-
backgroundColor: kt,
|
|
519
|
-
titleEmbedded: !0
|
|
520
|
-
});
|
|
521
|
-
async function De({ isCb: l }) {
|
|
522
|
-
ae.value = !0, await ue();
|
|
523
|
-
try {
|
|
524
|
-
if (l) {
|
|
525
|
-
const { blob: r, url: t, text: s, dataUrl: b } = await Tt();
|
|
526
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: r, url: t, text: s, dataUrl: b }));
|
|
527
|
-
} else
|
|
528
|
-
await Promise.resolve($t());
|
|
529
|
-
} finally {
|
|
530
|
-
ae.value = !1;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
function At(l) {
|
|
534
|
-
if (l?.stage === "start") {
|
|
535
|
-
le.value = !0;
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
if (l?.stage === "end") {
|
|
539
|
-
le.value = !1;
|
|
540
|
-
return;
|
|
541
|
-
}
|
|
542
|
-
Le();
|
|
543
|
-
}
|
|
544
|
-
async function Xe() {
|
|
545
|
-
if (U("copyAlt", {
|
|
546
|
-
config: e.value,
|
|
547
|
-
dataset: N.value
|
|
548
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
549
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
550
|
-
return;
|
|
551
|
-
}
|
|
552
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
553
|
-
config: e.value,
|
|
554
|
-
dataset: N.value
|
|
555
|
-
}));
|
|
556
|
-
}
|
|
557
|
-
return He({
|
|
558
|
-
getData: rt,
|
|
559
|
-
getImage: pt,
|
|
560
|
-
generatePdf: Pe,
|
|
561
|
-
generateCsv: _e,
|
|
562
|
-
generateImage: Le,
|
|
563
|
-
generateSvg: De,
|
|
564
|
-
toggleTable: je,
|
|
565
|
-
toggleAnnotator: me,
|
|
566
|
-
toggleFullscreen: Me,
|
|
567
|
-
copyAlt: Xe
|
|
568
|
-
}), (l, r) => (a(), o("div", {
|
|
569
|
-
class: T(`vue-data-ui-component vue-ui-chestnut ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
570
|
-
ref_key: "chestnutChart",
|
|
571
|
-
ref: H,
|
|
572
|
-
id: `vue-ui-chestnut_${A.value}`,
|
|
573
|
-
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
574
|
-
onMouseenter: r[1] || (r[1] = () => n(Fe)(!0)),
|
|
575
|
-
onMouseleave: r[2] || (r[2] = () => n(Fe)(!1))
|
|
576
|
-
}, [
|
|
577
|
-
e.value.userOptions.buttons.annotator ? (a(), re(n(Je), {
|
|
578
|
-
key: 0,
|
|
579
|
-
svgRef: n(ye),
|
|
580
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
581
|
-
color: e.value.style.chart.color,
|
|
582
|
-
active: se.value,
|
|
583
|
-
isCursorPointer: P.value,
|
|
584
|
-
onClose: me
|
|
585
|
-
}, {
|
|
586
|
-
"annotator-action-close": C(() => [
|
|
587
|
-
x(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
588
|
-
]),
|
|
589
|
-
"annotator-action-color": C(({ color: t }) => [
|
|
590
|
-
x(l.$slots, "annotator-action-color", V(B({ color: t })), void 0, !0)
|
|
591
|
-
]),
|
|
592
|
-
"annotator-action-draw": C(({ mode: t }) => [
|
|
593
|
-
x(l.$slots, "annotator-action-draw", V(B({ mode: t })), void 0, !0)
|
|
594
|
-
]),
|
|
595
|
-
"annotator-action-undo": C(({ disabled: t }) => [
|
|
596
|
-
x(l.$slots, "annotator-action-undo", V(B({ disabled: t })), void 0, !0)
|
|
597
|
-
]),
|
|
598
|
-
"annotator-action-redo": C(({ disabled: t }) => [
|
|
599
|
-
x(l.$slots, "annotator-action-redo", V(B({ disabled: t })), void 0, !0)
|
|
600
|
-
]),
|
|
601
|
-
"annotator-action-delete": C(({ disabled: t }) => [
|
|
602
|
-
x(l.$slots, "annotator-action-delete", V(B({ disabled: t })), void 0, !0)
|
|
603
|
-
]),
|
|
604
|
-
_: 3
|
|
605
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
606
|
-
nt.value ? (a(), o("div", tl, null, 512)) : h("", !0),
|
|
607
|
-
e.value.userOptions.show && ze.value && (n(Ie) || n(ve)) ? (a(), re(n(Qe), {
|
|
608
|
-
ref_key: "userOptionsRef",
|
|
609
|
-
ref: ce,
|
|
610
|
-
key: `user_options_${Se.value}`,
|
|
611
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
612
|
-
color: e.value.style.chart.color,
|
|
613
|
-
isImaging: n(be),
|
|
614
|
-
isPrinting: n(fe),
|
|
615
|
-
uid: A.value,
|
|
616
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
617
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
618
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
619
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
620
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
621
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
622
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
623
|
-
isFullscreen: Z.value,
|
|
624
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
625
|
-
chartElement: H.value,
|
|
626
|
-
position: e.value.userOptions.position,
|
|
627
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
628
|
-
isAnnotation: se.value,
|
|
629
|
-
callbacks: e.value.userOptions.callbacks,
|
|
630
|
-
printScale: e.value.userOptions.print.scale,
|
|
631
|
-
tableDialog: e.value.table.useDialog,
|
|
632
|
-
isCursorPointer: P.value,
|
|
633
|
-
onToggleFullscreen: Me,
|
|
634
|
-
onGeneratePdf: n(Pe),
|
|
635
|
-
onGenerateCsv: _e,
|
|
636
|
-
onGenerateImage: At,
|
|
637
|
-
onGenerateSvg: De,
|
|
638
|
-
onToggleTable: je,
|
|
639
|
-
onToggleAnnotator: me,
|
|
640
|
-
onCopyAlt: Xe,
|
|
641
|
-
style: y({
|
|
642
|
-
visibility: n(Ie) ? n(ve) ? "visible" : "hidden" : "visible"
|
|
643
|
-
})
|
|
644
|
-
}, Ee({ _: 2 }, [
|
|
645
|
-
l.$slots.menuIcon ? {
|
|
646
|
-
name: "menuIcon",
|
|
647
|
-
fn: C(({ isOpen: t, color: s }) => [
|
|
648
|
-
x(l.$slots, "menuIcon", V(B({ isOpen: t, color: s })), void 0, !0)
|
|
649
|
-
]),
|
|
650
|
-
key: "0"
|
|
651
|
-
} : void 0,
|
|
652
|
-
l.$slots.optionPdf ? {
|
|
653
|
-
name: "optionPdf",
|
|
654
|
-
fn: C(() => [
|
|
655
|
-
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
656
|
-
]),
|
|
657
|
-
key: "1"
|
|
658
|
-
} : void 0,
|
|
659
|
-
l.$slots.optionCsv ? {
|
|
660
|
-
name: "optionCsv",
|
|
661
|
-
fn: C(() => [
|
|
662
|
-
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
663
|
-
]),
|
|
664
|
-
key: "2"
|
|
665
|
-
} : void 0,
|
|
666
|
-
l.$slots.optionImg ? {
|
|
667
|
-
name: "optionImg",
|
|
668
|
-
fn: C(() => [
|
|
669
|
-
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
670
|
-
]),
|
|
671
|
-
key: "3"
|
|
672
|
-
} : void 0,
|
|
673
|
-
l.$slots.optionSvg ? {
|
|
674
|
-
name: "optionSvg",
|
|
675
|
-
fn: C(() => [
|
|
676
|
-
x(l.$slots, "optionSvg", {}, void 0, !0)
|
|
677
|
-
]),
|
|
678
|
-
key: "4"
|
|
679
|
-
} : void 0,
|
|
680
|
-
l.$slots.optionTable ? {
|
|
681
|
-
name: "optionTable",
|
|
682
|
-
fn: C(() => [
|
|
683
|
-
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
684
|
-
]),
|
|
685
|
-
key: "5"
|
|
686
|
-
} : void 0,
|
|
687
|
-
l.$slots.optionFullscreen ? {
|
|
688
|
-
name: "optionFullscreen",
|
|
689
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
690
|
-
x(l.$slots, "optionFullscreen", V(B({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
691
|
-
]),
|
|
692
|
-
key: "6"
|
|
693
|
-
} : void 0,
|
|
694
|
-
l.$slots.optionAnnotator ? {
|
|
695
|
-
name: "optionAnnotator",
|
|
696
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
697
|
-
x(l.$slots, "optionAnnotator", V(B({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
698
|
-
]),
|
|
699
|
-
key: "7"
|
|
700
|
-
} : void 0,
|
|
701
|
-
l.$slots.optionAltCopy ? {
|
|
702
|
-
name: "optionAltCopy",
|
|
703
|
-
fn: C(({ altCopy: t }) => [
|
|
704
|
-
x(l.$slots, "optionAltCopy", V(B({ altCopy: t })), void 0, !0)
|
|
705
|
-
]),
|
|
706
|
-
key: "8"
|
|
707
|
-
} : void 0
|
|
708
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : h("", !0),
|
|
709
|
-
i.value.height > 0 ? (a(), o("svg", {
|
|
710
|
-
key: 3,
|
|
711
|
-
ref_key: "svgRef",
|
|
712
|
-
ref: ye,
|
|
713
|
-
xmlns: n(Bt),
|
|
714
|
-
class: T({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
715
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
716
|
-
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
717
|
-
}, [
|
|
718
|
-
we(n(et)),
|
|
719
|
-
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
720
|
-
key: 0,
|
|
721
|
-
x: 0,
|
|
722
|
-
y: 0,
|
|
723
|
-
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
724
|
-
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
725
|
-
style: {
|
|
726
|
-
pointerEvents: "none"
|
|
727
|
-
}
|
|
728
|
-
}, [
|
|
729
|
-
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
730
|
-
], 8, al)) : h("", !0),
|
|
731
|
-
d.value ? h("", !0) : (a(), o("g", ol, [
|
|
732
|
-
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
733
|
-
key: 0,
|
|
734
|
-
"text-anchor": "middle",
|
|
735
|
-
fill: e.value.style.chart.layout.title.color,
|
|
736
|
-
"font-weight": e.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
737
|
-
"font-size": e.value.style.chart.layout.title.fontSize,
|
|
738
|
-
x: i.value.width / 2,
|
|
739
|
-
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
740
|
-
onClick: z
|
|
741
|
-
}, c(e.value.style.chart.layout.title.text), 9, sl)) : h("", !0),
|
|
742
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
743
|
-
key: 1,
|
|
744
|
-
"text-anchor": "middle",
|
|
745
|
-
fill: e.value.style.chart.layout.title.subtitle.color,
|
|
746
|
-
"font-weight": e.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
747
|
-
"font-size": e.value.style.chart.layout.title.subtitle.fontSize,
|
|
748
|
-
x: i.value.width / 2,
|
|
749
|
-
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
750
|
-
onClick: z
|
|
751
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9, nl)) : h("", !0)
|
|
752
|
-
])),
|
|
753
|
-
u("defs", null, [
|
|
754
|
-
(a(!0), o(_, null, m(N.value, (t, s) => (a(), o("radialGradient", {
|
|
755
|
-
cx: "50%",
|
|
756
|
-
cy: "50%",
|
|
757
|
-
r: "50%",
|
|
758
|
-
fx: "50%",
|
|
759
|
-
fy: "50%",
|
|
760
|
-
id: `root_gradient_${A.value}_${t.rootIndex}`
|
|
761
|
-
}, [
|
|
762
|
-
u("stop", {
|
|
763
|
-
offset: "0%",
|
|
764
|
-
"stop-color": n(I)(n(Ue)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
765
|
-
}, null, 8, rl),
|
|
766
|
-
u("stop", {
|
|
767
|
-
offset: "100%",
|
|
768
|
-
"stop-color": t.color
|
|
769
|
-
}, null, 8, il)
|
|
770
|
-
], 8, ul))), 256)),
|
|
771
|
-
(a(!0), o(_, null, m(N.value, (t) => (a(), o("linearGradient", {
|
|
772
|
-
x1: "0%",
|
|
773
|
-
y1: "0%",
|
|
774
|
-
x2: "100%",
|
|
775
|
-
y2: "0%",
|
|
776
|
-
id: `branch_gradient_${A.value}_${t.rootIndex}`
|
|
777
|
-
}, [
|
|
778
|
-
u("stop", {
|
|
779
|
-
offset: "0%",
|
|
780
|
-
"stop-color": t.color
|
|
781
|
-
}, null, 8, dl),
|
|
782
|
-
u("stop", {
|
|
783
|
-
offset: "100%",
|
|
784
|
-
"stop-color": n(I)(n(Ue)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
785
|
-
}, null, 8, vl)
|
|
786
|
-
], 8, cl))), 256)),
|
|
787
|
-
u("radialGradient", {
|
|
788
|
-
cx: "50%",
|
|
789
|
-
cy: "50%",
|
|
790
|
-
r: "50%",
|
|
791
|
-
fx: "50%",
|
|
792
|
-
fy: "50%",
|
|
793
|
-
id: `nutpick_${A.value}`
|
|
794
|
-
}, [
|
|
795
|
-
u("stop", {
|
|
796
|
-
offset: "0%",
|
|
797
|
-
"stop-color": n(I)("#FFFFFF", 0)
|
|
798
|
-
}, null, 8, hl),
|
|
799
|
-
u("stop", {
|
|
800
|
-
offset: "80%",
|
|
801
|
-
"stop-color": n(I)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
802
|
-
}, null, 8, fl),
|
|
803
|
-
u("stop", {
|
|
804
|
-
offset: "100%",
|
|
805
|
-
"stop-color": n(I)("#FFFFFF", 0)
|
|
806
|
-
}, null, 8, bl)
|
|
807
|
-
], 8, yl),
|
|
808
|
-
u("radialGradient", {
|
|
809
|
-
cx: "50%",
|
|
810
|
-
cy: "50%",
|
|
811
|
-
r: "50%",
|
|
812
|
-
fx: "50%",
|
|
813
|
-
fy: "50%",
|
|
814
|
-
id: `nut_${A.value}`
|
|
815
|
-
}, [
|
|
816
|
-
u("stop", {
|
|
817
|
-
offset: "0%",
|
|
818
|
-
"stop-color": n(I)("#FFFFFF", 0)
|
|
819
|
-
}, null, 8, gl),
|
|
820
|
-
u("stop", {
|
|
821
|
-
offset: "80%",
|
|
822
|
-
"stop-color": n(I)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
823
|
-
}, null, 8, _l),
|
|
824
|
-
u("stop", {
|
|
825
|
-
offset: "100%",
|
|
826
|
-
"stop-color": n(I)("#FFFFFF", 0)
|
|
827
|
-
}, null, 8, ml)
|
|
828
|
-
], 8, pl),
|
|
829
|
-
u("radialGradient", {
|
|
830
|
-
cx: "50%",
|
|
831
|
-
cy: "50%",
|
|
832
|
-
r: "50%",
|
|
833
|
-
fx: "50%",
|
|
834
|
-
fy: "50%",
|
|
835
|
-
id: `nut_underlayer_${A.value}`
|
|
836
|
-
}, [
|
|
837
|
-
u("stop", {
|
|
838
|
-
offset: "0%",
|
|
839
|
-
"stop-color": n(I)(e.value.style.chart.backgroundColor, 100)
|
|
840
|
-
}, null, 8, kl),
|
|
841
|
-
u("stop", {
|
|
842
|
-
offset: "80%",
|
|
843
|
-
"stop-color": n(I)(e.value.style.chart.backgroundColor, 60)
|
|
844
|
-
}, null, 8, wl),
|
|
845
|
-
u("stop", {
|
|
846
|
-
offset: "100%",
|
|
847
|
-
"stop-color": n(I)(e.value.style.chart.backgroundColor, 0)
|
|
848
|
-
}, null, 8, Cl)
|
|
849
|
-
], 8, xl)
|
|
850
|
-
]),
|
|
851
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", $l, [
|
|
852
|
-
u("text", {
|
|
853
|
-
x: S.value.seedX,
|
|
854
|
-
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
855
|
-
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
856
|
-
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
857
|
-
fill: e.value.style.chart.layout.grandTotal.color,
|
|
858
|
-
"text-anchor": "middle",
|
|
859
|
-
onClick: z
|
|
860
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9, Tl),
|
|
861
|
-
u("text", {
|
|
862
|
-
x: S.value.seedX,
|
|
863
|
-
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
864
|
-
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
865
|
-
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
866
|
-
fill: e.value.style.chart.layout.grandTotal.color,
|
|
867
|
-
"text-anchor": "middle",
|
|
868
|
-
onClick: z
|
|
869
|
-
}, c(n(E)(
|
|
870
|
-
e.value.style.chart.layout.grandTotal.formatter,
|
|
871
|
-
L.value,
|
|
872
|
-
n(F)({
|
|
873
|
-
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
874
|
-
v: L.value,
|
|
875
|
-
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
876
|
-
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
877
|
-
})
|
|
878
|
-
)), 9, Al)
|
|
879
|
-
])) : h("", !0),
|
|
880
|
-
(a(!0), o(_, null, m(Y.value, (t) => (a(), o("g", null, [
|
|
881
|
-
u("defs", null, [
|
|
882
|
-
u("linearGradient", {
|
|
883
|
-
id: `link_grad_${t.id}`
|
|
884
|
-
}, [
|
|
885
|
-
u("stop", {
|
|
886
|
-
offset: "0%",
|
|
887
|
-
"stop-color": t.color
|
|
888
|
-
}, null, 8, Sl),
|
|
889
|
-
u("stop", {
|
|
890
|
-
offset: "100%",
|
|
891
|
-
"stop-color": n(I)(t.color, e.value.style.chart.layout.links.opacity)
|
|
892
|
-
}, null, 8, Nl)
|
|
893
|
-
], 8, zl)
|
|
894
|
-
]),
|
|
895
|
-
u("path", {
|
|
896
|
-
d: gt(t),
|
|
897
|
-
stroke: n(I)(t.color, e.value.style.chart.layout.links.opacity),
|
|
898
|
-
fill: `url(#link_grad_${t.id})`,
|
|
899
|
-
"stroke-linecap": "round",
|
|
900
|
-
"stroke-linejoin": "round",
|
|
901
|
-
style: y(`opacity:${R(t) ? 1 : 0}`),
|
|
902
|
-
onClick: z
|
|
903
|
-
}, null, 12, Fl)
|
|
904
|
-
]))), 256)),
|
|
905
|
-
(a(!0), o(_, null, m(W.value, (t) => (a(), o("circle", {
|
|
906
|
-
cx: t.x,
|
|
907
|
-
cy: t.y,
|
|
908
|
-
r: t.r,
|
|
909
|
-
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
910
|
-
stroke: "none",
|
|
911
|
-
style: y(`cursor:${P.value ? "pointer" : "default"}; opacity:${R(t) ? 1 : 0.05}`)
|
|
912
|
-
}, null, 12, Il))), 256)),
|
|
913
|
-
(a(!0), o(_, null, m(W.value, (t, s) => (a(), o("circle", {
|
|
914
|
-
cx: t.x,
|
|
915
|
-
cy: t.y,
|
|
916
|
-
r: t.r,
|
|
917
|
-
fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${A.value}_${t.rootIndex})` : t.color,
|
|
918
|
-
stroke: e.value.style.chart.layout.roots.stroke,
|
|
919
|
-
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
920
|
-
style: y(`cursor:${P.value ? "pointer" : "default"}; opacity:${R(t) ? 1 : 0.05}`),
|
|
921
|
-
onClick: (b) => Ve(t)
|
|
922
|
-
}, null, 12, Pl))), 256)),
|
|
923
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", Ll, [
|
|
924
|
-
(a(!0), o(_, null, m(W.value, (t, s) => (a(), o("text", {
|
|
925
|
-
x: t.x,
|
|
926
|
-
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
927
|
-
"text-anchor": "middle",
|
|
928
|
-
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
929
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? n(We)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
930
|
-
"font-weight": "bold",
|
|
931
|
-
style: y(`cursor:${P.value ? "pointer" : "default"}; opacity:${R(t) ? 1 : 0.05}`),
|
|
932
|
-
onClick: (b) => Ve(t)
|
|
933
|
-
}, c(n(E)(
|
|
934
|
-
e.value.style.chart.layout.roots.labels.formatter,
|
|
935
|
-
t.total,
|
|
936
|
-
n(F)({
|
|
937
|
-
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
938
|
-
v: t.total,
|
|
939
|
-
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
940
|
-
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
941
|
-
}),
|
|
942
|
-
{ datapoint: t }
|
|
943
|
-
)), 13, Ol))), 256)),
|
|
944
|
-
(a(!0), o(_, null, m(W.value, (t) => (a(), o("g", null, [
|
|
945
|
-
d.value && t.rootIndex === d.value.rootIndex || k.value && t.rootIndex === k.value.rootIndex || O.value && t.rootIndex === O.value.rootIndex ? (a(), o("g", Rl, [
|
|
946
|
-
u("text", {
|
|
947
|
-
x: t.x,
|
|
948
|
-
y: t.y + t.r + 24,
|
|
949
|
-
"text-anchor": "middle",
|
|
950
|
-
fill: e.value.style.chart.layout.roots.labels.name.color,
|
|
951
|
-
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
952
|
-
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
953
|
-
onClick: z
|
|
954
|
-
}, c(t.name), 9, Vl)
|
|
955
|
-
])) : h("", !0)
|
|
956
|
-
]))), 256))
|
|
957
|
-
])) : h("", !0),
|
|
958
|
-
(a(!0), o(_, null, m(Y.value, (t) => (a(), o("rect", {
|
|
959
|
-
x: t.x1,
|
|
960
|
-
y: t.y1,
|
|
961
|
-
height: i.value.branchSize,
|
|
962
|
-
width: t.x2 - t.x1,
|
|
963
|
-
fill: e.value.style.chart.layout.branches.underlayerColor,
|
|
964
|
-
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
965
|
-
stroke: "none",
|
|
966
|
-
style: y(`opacity:${R(t) ? 1 : 0.05}`),
|
|
967
|
-
onClick: (s) => ge(t)
|
|
968
|
-
}, null, 12, Bl))), 256)),
|
|
969
|
-
(a(!0), o(_, null, m(Y.value, (t, s) => (a(), o("rect", {
|
|
970
|
-
x: t.x1,
|
|
971
|
-
y: t.y1,
|
|
972
|
-
height: i.value.branchSize,
|
|
973
|
-
width: t.x2 - t.x1,
|
|
974
|
-
fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${A.value}_${t.rootIndex})` : t.color,
|
|
975
|
-
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
976
|
-
stroke: e.value.style.chart.layout.branches.stroke,
|
|
977
|
-
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
978
|
-
style: y(`cursor:${P.value ? "pointer" : "default"}; opacity:${R(t) ? 1 : 0.05}`),
|
|
979
|
-
onClick: (b) => ge(t)
|
|
980
|
-
}, null, 12, Ml))), 256)),
|
|
981
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", jl, [
|
|
982
|
-
(a(!0), o(_, null, m(Y.value, (t) => (a(), o("g", null, [
|
|
983
|
-
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
984
|
-
key: 0,
|
|
985
|
-
x: t.x1 + 6,
|
|
986
|
-
y: t.y1 + i.value.branchSize / 1.5,
|
|
987
|
-
"text-anchor": "start",
|
|
988
|
-
fill: n(We)(t.color),
|
|
989
|
-
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
990
|
-
"font-weight": "bold",
|
|
991
|
-
style: y(`cursor:${P.value ? "pointer" : "default"}; opacity:${R(t) ? 1 : 0.05}`),
|
|
992
|
-
onClick: (s) => ge(t)
|
|
993
|
-
}, c(n(E)(
|
|
994
|
-
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
995
|
-
t.value,
|
|
996
|
-
n(F)({
|
|
997
|
-
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
998
|
-
v: t.value,
|
|
999
|
-
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1000
|
-
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1001
|
-
}),
|
|
1002
|
-
{ datapoint: t }
|
|
1003
|
-
)), 13, Dl)) : h("", !0)
|
|
1004
|
-
]))), 256))
|
|
1005
|
-
])) : h("", !0),
|
|
1006
|
-
(a(!0), o(_, null, m(Y.value, (t, s) => (a(), o("g", null, [
|
|
1007
|
-
(a(!0), o(_, null, m(n(Ye)(
|
|
1008
|
-
{ series: t.breakdown, base: 1 },
|
|
1009
|
-
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1010
|
-
t.y1 + i.value.branchSize / 2,
|
|
1011
|
-
i.value.branchSize / 3,
|
|
1012
|
-
i.value.branchSize / 3
|
|
1013
|
-
), (b, p) => (a(), o("path", {
|
|
1014
|
-
d: b.path,
|
|
1015
|
-
stroke: b.color,
|
|
1016
|
-
"stroke-width": 10,
|
|
1017
|
-
fill: "none",
|
|
1018
|
-
style: y(`opacity:${R(t) ? 1 : 0.1}`)
|
|
1019
|
-
}, null, 12, Xl))), 256)),
|
|
1020
|
-
u("circle", {
|
|
1021
|
-
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${A.value})` : "transparent",
|
|
1022
|
-
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1023
|
-
cy: t.y1 + i.value.branchSize / 2,
|
|
1024
|
-
r: i.value.branchSize / 2 + 2,
|
|
1025
|
-
onClick: (b) => ft(t),
|
|
1026
|
-
style: y(`cursor:${P.value ? "pointer" : "default"};opacity:${R(t) ? 1 : 0.1}`)
|
|
1027
|
-
}, null, 12, El)
|
|
1028
|
-
]))), 256)),
|
|
1029
|
-
e.value.style.chart.layout.branches.labels.show && !k.value ? (a(), o("g", Gl, [
|
|
1030
|
-
(a(!0), o(_, null, m(Y.value, (t) => (a(), o("text", {
|
|
1031
|
-
x: t.x2 + i.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1032
|
-
y: t.y1 + i.value.branchSize / 2 + 5,
|
|
1033
|
-
"font-size": e.value.style.chart.layout.branches.labels.fontSize,
|
|
1034
|
-
"font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
1035
|
-
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1036
|
-
"text-anchor": "start",
|
|
1037
|
-
style: y(`opacity:${R(t) ? 1 : 0.1}`)
|
|
1038
|
-
}, c(t.name), 13, Ul))), 256))
|
|
1039
|
-
])) : h("", !0),
|
|
1040
|
-
u("line", {
|
|
1041
|
-
x1: 256 + i.value.padding.left,
|
|
1042
|
-
x2: 256 + i.value.padding.left,
|
|
1043
|
-
y1: S.value.top,
|
|
1044
|
-
y2: S.value.bottom,
|
|
1045
|
-
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
1046
|
-
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
1047
|
-
}, null, 8, Wl),
|
|
1048
|
-
!d.value && !k.value ? (a(), o("foreignObject", {
|
|
1049
|
-
key: 6,
|
|
1050
|
-
x: 0,
|
|
1051
|
-
y: S.value.bottom,
|
|
1052
|
-
height: i.value.height - S.value.bottom,
|
|
1053
|
-
width: i.value.width,
|
|
1054
|
-
style: { overflow: "visible" },
|
|
1055
|
-
"data-no-svg-export": "",
|
|
1056
|
-
onClick: z
|
|
1057
|
-
}, [
|
|
1058
|
-
u("div", ql, [
|
|
1059
|
-
u("div", Hl, [
|
|
1060
|
-
(a(!0), o(_, null, m(W.value, (t) => (a(), o("div", {
|
|
1061
|
-
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
1062
|
-
}, [
|
|
1063
|
-
(a(), o("svg", Kl, [
|
|
1064
|
-
u("circle", {
|
|
1065
|
-
cx: "10",
|
|
1066
|
-
cy: "10",
|
|
1067
|
-
r: "10",
|
|
1068
|
-
fill: t.color,
|
|
1069
|
-
stroke: "none"
|
|
1070
|
-
}, null, 8, Zl)
|
|
1071
|
-
])),
|
|
1072
|
-
n(Ne) ? h("", !0) : (a(), o(_, { key: 0 }, [
|
|
1073
|
-
u("span", null, c(t.name) + ":", 1),
|
|
1074
|
-
u("b", null, c(n(E)(
|
|
1075
|
-
e.value.style.chart.layout.roots.labels.formatter,
|
|
1076
|
-
t.total,
|
|
1077
|
-
n(F)({
|
|
1078
|
-
p: e.value.style.chart.layout.legend.prefix,
|
|
1079
|
-
v: t.total,
|
|
1080
|
-
s: e.value.style.chart.layout.legend.suffix,
|
|
1081
|
-
r: e.value.style.chart.layout.legend.roundingValue
|
|
1082
|
-
}),
|
|
1083
|
-
{ datapoint: t }
|
|
1084
|
-
)), 1),
|
|
1085
|
-
ee(" (" + c(n(F)({
|
|
1086
|
-
v: t.total / L.value * 100,
|
|
1087
|
-
s: "%",
|
|
1088
|
-
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
1089
|
-
})) + ") ", 1)
|
|
1090
|
-
], 64))
|
|
1091
|
-
], 4))), 256))
|
|
1092
|
-
])
|
|
1093
|
-
])
|
|
1094
|
-
], 8, Yl)) : h("", !0),
|
|
1095
|
-
d.value && X.value ? (a(), o("g", Jl, [
|
|
1096
|
-
(a(), o("foreignObject", {
|
|
1097
|
-
x: 0,
|
|
1098
|
-
y: bt(),
|
|
1099
|
-
height: i.value.height - S.value.bottom,
|
|
1100
|
-
width: i.value.width,
|
|
1101
|
-
style: { overflow: "visible" },
|
|
1102
|
-
onClick: z
|
|
1103
|
-
}, [
|
|
1104
|
-
u("div", ea, [
|
|
1105
|
-
u("b", null, c(d.value.name), 1),
|
|
1106
|
-
u("div", ta, [
|
|
1107
|
-
(a(!0), o(_, null, m(d.value.breakdown, (t, s) => (a(), o("div", {
|
|
1108
|
-
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
1109
|
-
}, [
|
|
1110
|
-
(a(), o("svg", la, [
|
|
1111
|
-
u("circle", {
|
|
1112
|
-
cx: "10",
|
|
1113
|
-
cy: "10",
|
|
1114
|
-
r: "10",
|
|
1115
|
-
fill: t.color,
|
|
1116
|
-
stroke: "none"
|
|
1117
|
-
}, null, 8, aa)
|
|
1118
|
-
])),
|
|
1119
|
-
u("span", null, [
|
|
1120
|
-
ee(c(t.name) + ": ", 1),
|
|
1121
|
-
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),
|
|
1122
|
-
ee(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1123
|
-
])
|
|
1124
|
-
], 4))), 256))
|
|
1125
|
-
])
|
|
1126
|
-
])
|
|
1127
|
-
], 8, Ql)),
|
|
1128
|
-
u("circle", {
|
|
1129
|
-
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1130
|
-
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1131
|
-
r: 256,
|
|
1132
|
-
fill: `url(#nut_underlayer_${A.value})`,
|
|
1133
|
-
onClick: q,
|
|
1134
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1135
|
-
}, null, 10, oa),
|
|
1136
|
-
(a(!0), o(_, null, m(X.value, (t) => (a(), o("g", null, [
|
|
1137
|
-
K(t) ? (a(), o("path", {
|
|
1138
|
-
key: 0,
|
|
1139
|
-
d: n(Mt)(
|
|
1140
|
-
t,
|
|
1141
|
-
{
|
|
1142
|
-
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1143
|
-
y: d.value.y1 + i.value.branchSize / 2
|
|
1144
|
-
},
|
|
1145
|
-
16,
|
|
1146
|
-
16,
|
|
1147
|
-
!1,
|
|
1148
|
-
!1,
|
|
1149
|
-
64
|
|
1150
|
-
),
|
|
1151
|
-
stroke: t.color,
|
|
1152
|
-
"stroke-width": "1",
|
|
1153
|
-
"stroke-linecap": "round",
|
|
1154
|
-
"stroke-linejoin": "round",
|
|
1155
|
-
fill: "none",
|
|
1156
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1157
|
-
}, null, 10, sa)) : h("", !0)
|
|
1158
|
-
]))), 256)),
|
|
1159
|
-
u("circle", {
|
|
1160
|
-
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1161
|
-
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1162
|
-
r: 118,
|
|
1163
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1164
|
-
onClick: q,
|
|
1165
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1166
|
-
}, null, 10, na),
|
|
1167
|
-
(a(!0), o(_, null, m(X.value, (t) => (a(), o("path", {
|
|
1168
|
-
d: t.path,
|
|
1169
|
-
stroke: t.color,
|
|
1170
|
-
"stroke-width": 64,
|
|
1171
|
-
fill: "none",
|
|
1172
|
-
onClick: q,
|
|
1173
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1174
|
-
}, null, 10, ua))), 256)),
|
|
1175
|
-
u("circle", {
|
|
1176
|
-
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1177
|
-
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1178
|
-
r: 110,
|
|
1179
|
-
fill: `url(#nutpick_${A.value})`,
|
|
1180
|
-
onClick: q,
|
|
1181
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1182
|
-
}, null, 10, ra),
|
|
1183
|
-
u("circle", {
|
|
1184
|
-
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1185
|
-
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1186
|
-
r: 64,
|
|
1187
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1188
|
-
onClick: q,
|
|
1189
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1190
|
-
}, null, 10, ia),
|
|
1191
|
-
u("text", {
|
|
1192
|
-
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1193
|
-
y: d.value.y1 + 8,
|
|
1194
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
1195
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1196
|
-
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1197
|
-
"text-anchor": "middle",
|
|
1198
|
-
onClick: q,
|
|
1199
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1200
|
-
}, c(e.value.translations.total), 11, ca),
|
|
1201
|
-
u("text", {
|
|
1202
|
-
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1203
|
-
y: d.value.y1 + 36,
|
|
1204
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
1205
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1206
|
-
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1207
|
-
"text-anchor": "middle",
|
|
1208
|
-
onClick: q,
|
|
1209
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1210
|
-
}, c(n(E)(
|
|
1211
|
-
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1212
|
-
d.value.value,
|
|
1213
|
-
n(F)({
|
|
1214
|
-
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1215
|
-
v: d.value.value,
|
|
1216
|
-
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1217
|
-
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1218
|
-
}),
|
|
1219
|
-
{ datapoint: d.value }
|
|
1220
|
-
)), 11, da),
|
|
1221
|
-
(a(!0), o(_, null, m(X.value, (t, s) => (a(), o("g", null, [
|
|
1222
|
-
K(t) ? (a(), o("text", {
|
|
1223
|
-
key: 0,
|
|
1224
|
-
x: n(j)(t).x,
|
|
1225
|
-
"text-anchor": n(j)(t).anchor,
|
|
1226
|
-
y: n(te)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1227
|
-
fill: t.color,
|
|
1228
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1229
|
-
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1230
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1231
|
-
}, " ⬤ ", 14, va)) : h("", !0),
|
|
1232
|
-
K(t) ? (a(), o("text", {
|
|
1233
|
-
key: 1,
|
|
1234
|
-
x: n(j)(t, !0).x,
|
|
1235
|
-
"text-anchor": n(j)(t, !0).anchor,
|
|
1236
|
-
y: n(te)(t),
|
|
1237
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1238
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1239
|
-
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1240
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1241
|
-
}, c(d.value.breakdown[s].name), 15, ya)) : h("", !0)
|
|
1242
|
-
]))), 256)),
|
|
1243
|
-
(a(!0), o(_, null, m(X.value, (t, s) => (a(), o("g", null, [
|
|
1244
|
-
K(t) ? (a(), o("text", {
|
|
1245
|
-
key: 0,
|
|
1246
|
-
x: n(j)(t, !0).x,
|
|
1247
|
-
"text-anchor": n(j)(t).anchor,
|
|
1248
|
-
y: n(te)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1249
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1250
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1251
|
-
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1252
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1253
|
-
}, c(n(F)({
|
|
1254
|
-
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
1255
|
-
s: "%",
|
|
1256
|
-
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1257
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(n(E)(
|
|
1258
|
-
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1259
|
-
d.value.breakdown[s].value,
|
|
1260
|
-
n(F)({
|
|
1261
|
-
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1262
|
-
v: d.value.breakdown[s].value,
|
|
1263
|
-
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1264
|
-
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1265
|
-
}),
|
|
1266
|
-
{ datapoint: X.value, seriesIndex: s }
|
|
1267
|
-
)), 15, ha)) : h("", !0),
|
|
1268
|
-
K(t) ? (a(), o("text", {
|
|
1269
|
-
key: 1,
|
|
1270
|
-
x: n(j)(t, !0).x,
|
|
1271
|
-
"text-anchor": n(j)(t).anchor,
|
|
1272
|
-
y: n(te)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1273
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1274
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1275
|
-
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1276
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1277
|
-
}, c(n(F)({
|
|
1278
|
-
v: d.value.breakdown[s].proportionToRoot * 100,
|
|
1279
|
-
s: "%",
|
|
1280
|
-
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1281
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15, fa)) : h("", !0),
|
|
1282
|
-
K(t) ? (a(), o("text", {
|
|
1283
|
-
key: 2,
|
|
1284
|
-
x: n(j)(t, !0).x,
|
|
1285
|
-
"text-anchor": n(j)(t).anchor,
|
|
1286
|
-
y: n(te)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1287
|
-
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1288
|
-
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1289
|
-
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1290
|
-
class: T(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1291
|
-
}, c(n(F)({
|
|
1292
|
-
v: d.value.breakdown[s].proportionToTree * 100,
|
|
1293
|
-
s: "%",
|
|
1294
|
-
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1295
|
-
})) + " " + c(e.value.translations.proportionToTree), 15, ba)) : h("", !0)
|
|
1296
|
-
]))), 256))
|
|
1297
|
-
])) : h("", !0),
|
|
1298
|
-
(a(!0), o(_, null, m(Y.value, (t) => (a(), o("g", null, [
|
|
1299
|
-
k.value && k.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1300
|
-
key: 0,
|
|
1301
|
-
x: t.x1 + 6,
|
|
1302
|
-
y: t.y1 + i.value.branchSize + 24,
|
|
1303
|
-
"font-weight": "bold",
|
|
1304
|
-
"text-anchor": "start",
|
|
1305
|
-
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1306
|
-
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1307
|
-
onClick: z
|
|
1308
|
-
}, c(t.name) + ": " + c(n(E)(
|
|
1309
|
-
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
1310
|
-
t.value,
|
|
1311
|
-
n(F)({
|
|
1312
|
-
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1313
|
-
v: t.value,
|
|
1314
|
-
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1315
|
-
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1316
|
-
}),
|
|
1317
|
-
{ datapoint: t }
|
|
1318
|
-
)), 9, pa)) : h("", !0),
|
|
1319
|
-
k.value && k.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1320
|
-
key: 1,
|
|
1321
|
-
x: t.x1 + 6,
|
|
1322
|
-
y: t.y1 + i.value.branchSize + 48,
|
|
1323
|
-
"text-anchor": "start",
|
|
1324
|
-
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1325
|
-
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1326
|
-
onClick: z
|
|
1327
|
-
}, c(n(F)({
|
|
1328
|
-
v: t.proportionToRoot * 100,
|
|
1329
|
-
s: "%",
|
|
1330
|
-
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1331
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, ga)) : h("", !0),
|
|
1332
|
-
k.value && k.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1333
|
-
key: 2,
|
|
1334
|
-
x: t.x1 + 6,
|
|
1335
|
-
y: t.y1 + i.value.branchSize + 72,
|
|
1336
|
-
"text-anchor": "start",
|
|
1337
|
-
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1338
|
-
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1339
|
-
onClick: z
|
|
1340
|
-
}, c(n(F)({
|
|
1341
|
-
v: t.value / L.value * 100,
|
|
1342
|
-
s: "%",
|
|
1343
|
-
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1344
|
-
})) + " " + c(e.value.translations.proportionToTree), 9, _a)) : h("", !0)
|
|
1345
|
-
]))), 256)),
|
|
1346
|
-
x(l.$slots, "svg", {
|
|
1347
|
-
svg: {
|
|
1348
|
-
...i.value,
|
|
1349
|
-
isPrintingImg: n(fe) | n(be) | le.value,
|
|
1350
|
-
isPrintingSvg: ae.value
|
|
1351
|
-
}
|
|
1352
|
-
}, void 0, !0)
|
|
1353
|
-
], 14, ll)) : h("", !0),
|
|
1354
|
-
l.$slots.watermark ? (a(), o("div", ma, [
|
|
1355
|
-
x(l.$slots, "watermark", V(B({ isPrinting: n(fe) || n(be) || le.value || ae.value })), void 0, !0)
|
|
1356
|
-
])) : h("", !0),
|
|
1357
|
-
x(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1358
|
-
l.$slots.source ? (a(), o("div", xa, [
|
|
1359
|
-
x(l.$slots, "source", {}, void 0, !0)
|
|
1360
|
-
], 512)) : h("", !0),
|
|
1361
|
-
ze.value && e.value.userOptions.buttons.table ? (a(), re(Ft(ne.value.component), It({ key: 6 }, ne.value.props, {
|
|
1362
|
-
ref_key: "tableUnit",
|
|
1363
|
-
ref: Q,
|
|
1364
|
-
onClose: xe
|
|
1365
|
-
}), Ee({
|
|
1366
|
-
content: C(() => [
|
|
1367
|
-
u("div", {
|
|
1368
|
-
ref_key: "tableContainer",
|
|
1369
|
-
ref: Oe,
|
|
1370
|
-
class: "vue-ui-chestnut-table",
|
|
1371
|
-
style: y(`${e.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1372
|
-
}, [
|
|
1373
|
-
u("div", {
|
|
1374
|
-
style: y(`${e.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`)
|
|
1375
|
-
}, [
|
|
1376
|
-
e.value.table.useDialog ? h("", !0) : (a(), o("div", {
|
|
1377
|
-
key: 0,
|
|
1378
|
-
role: "button",
|
|
1379
|
-
tabindex: "0",
|
|
1380
|
-
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:${P.value ? "pointer" : "default"}; background:${e.value.table.th.backgroundColor};`),
|
|
1381
|
-
onClick: xe,
|
|
1382
|
-
onKeypress: Pt(xe, ["enter"])
|
|
1383
|
-
}, [
|
|
1384
|
-
we(n(Ae), {
|
|
1385
|
-
name: "close",
|
|
1386
|
-
stroke: e.value.table.th.color,
|
|
1387
|
-
"stroke-width": 2
|
|
1388
|
-
}, null, 8, ["stroke"])
|
|
1389
|
-
], 36)),
|
|
1390
|
-
u("div", {
|
|
1391
|
-
style: { width: "100%" },
|
|
1392
|
-
class: T({ "vue-ui-responsive": n(_t) })
|
|
1393
|
-
}, [
|
|
1394
|
-
u("table", ka, [
|
|
1395
|
-
e.value.table.useDialog ? h("", !0) : (a(), o("caption", {
|
|
1396
|
-
key: 0,
|
|
1397
|
-
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1398
|
-
class: "vue-ui-data-table__caption"
|
|
1399
|
-
}, [
|
|
1400
|
-
ee(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1401
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", wa, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1402
|
-
], 4)),
|
|
1403
|
-
u("thead", null, [
|
|
1404
|
-
u("tr", {
|
|
1405
|
-
role: "row",
|
|
1406
|
-
style: y(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1407
|
-
}, [
|
|
1408
|
-
(a(!0), o(_, null, m(v.value.head, (t) => (a(), o("th", {
|
|
1409
|
-
style: y(`outline:${e.value.table.th.outline}`)
|
|
1410
|
-
}, c(t), 5))), 256))
|
|
1411
|
-
], 4)
|
|
1412
|
-
]),
|
|
1413
|
-
u("tbody", null, [
|
|
1414
|
-
(a(!0), o(_, null, m(v.value.body, (t, s) => (a(), o("tr", {
|
|
1415
|
-
class: T({ "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 }),
|
|
1416
|
-
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1417
|
-
}, [
|
|
1418
|
-
u("td", {
|
|
1419
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1420
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1421
|
-
"data-cell": v.value.head[0]
|
|
1422
|
-
}, [
|
|
1423
|
-
u("div", $a, [
|
|
1424
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", Ta)) : (a(), o("span", Aa, c(t.rootName), 1))
|
|
1425
|
-
])
|
|
1426
|
-
], 12, Ca),
|
|
1427
|
-
u("td", {
|
|
1428
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1429
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1430
|
-
"data-cell": v.value.head[1]
|
|
1431
|
-
}, [
|
|
1432
|
-
u("div", Sa, [
|
|
1433
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", Na)) : (a(), o("span", Fa, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1434
|
-
])
|
|
1435
|
-
], 12, za),
|
|
1436
|
-
u("td", {
|
|
1437
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1438
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1439
|
-
"data-cell": v.value.head[2]
|
|
1440
|
-
}, [
|
|
1441
|
-
u("div", Pa, [
|
|
1442
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", La)) : (a(), o("span", Oa, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1443
|
-
])
|
|
1444
|
-
], 12, Ia),
|
|
1445
|
-
u("td", {
|
|
1446
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1447
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1448
|
-
"data-cell": v.value.head[3]
|
|
1449
|
-
}, [
|
|
1450
|
-
u("div", Va, [
|
|
1451
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Ba)) : (a(), o("span", Ma, c(t.branchName), 1))
|
|
1452
|
-
])
|
|
1453
|
-
], 12, Ra),
|
|
1454
|
-
u("td", {
|
|
1455
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1456
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1457
|
-
"data-cell": v.value.head[4]
|
|
1458
|
-
}, [
|
|
1459
|
-
u("div", Da, [
|
|
1460
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Xa)) : (a(), o("span", Ea, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1461
|
-
])
|
|
1462
|
-
], 12, ja),
|
|
1463
|
-
u("td", {
|
|
1464
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1465
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1466
|
-
"data-cell": v.value.head[5]
|
|
1467
|
-
}, [
|
|
1468
|
-
u("div", Ua, [
|
|
1469
|
-
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))
|
|
1470
|
-
])
|
|
1471
|
-
], 12, Ga),
|
|
1472
|
-
u("td", {
|
|
1473
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1474
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1475
|
-
"data-cell": v.value.head[6]
|
|
1476
|
-
}, [
|
|
1477
|
-
u("div", Ha, [
|
|
1478
|
-
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))
|
|
1479
|
-
])
|
|
1480
|
-
], 12, qa),
|
|
1481
|
-
u("td", {
|
|
1482
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1483
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1484
|
-
"data-cell": v.value.head[7]
|
|
1485
|
-
}, [
|
|
1486
|
-
u("div", Qa, c(t.nutName), 1)
|
|
1487
|
-
], 12, Ja),
|
|
1488
|
-
u("td", {
|
|
1489
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1490
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1491
|
-
"data-cell": v.value.head[8]
|
|
1492
|
-
}, [
|
|
1493
|
-
u("div", to, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1494
|
-
], 12, eo),
|
|
1495
|
-
u("td", {
|
|
1496
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1497
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1498
|
-
"data-cell": v.value.head[9]
|
|
1499
|
-
}, [
|
|
1500
|
-
u("div", ao, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1501
|
-
], 12, lo),
|
|
1502
|
-
u("td", {
|
|
1503
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1504
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1505
|
-
"data-cell": v.value.head[10]
|
|
1506
|
-
}, [
|
|
1507
|
-
u("div", so, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1508
|
-
], 12, oo),
|
|
1509
|
-
u("td", {
|
|
1510
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1511
|
-
style: y(`outline:${e.value.table.td.outline}`),
|
|
1512
|
-
"data-cell": v.value.head[11]
|
|
1513
|
-
}, [
|
|
1514
|
-
u("div", uo, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1515
|
-
], 12, no)
|
|
1516
|
-
], 6))), 256))
|
|
1517
|
-
])
|
|
1518
|
-
])
|
|
1519
|
-
], 2)
|
|
1520
|
-
], 4)
|
|
1521
|
-
], 4)
|
|
1522
|
-
]),
|
|
1523
|
-
_: 2
|
|
1524
|
-
}, [
|
|
1525
|
-
e.value.table.useDialog ? {
|
|
1526
|
-
name: "title",
|
|
1527
|
-
fn: C(() => [
|
|
1528
|
-
ee(c(ne.value.title), 1)
|
|
1529
|
-
]),
|
|
1530
|
-
key: "0"
|
|
1531
|
-
} : void 0,
|
|
1532
|
-
e.value.table.useDialog ? {
|
|
1533
|
-
name: "actions",
|
|
1534
|
-
fn: C(() => [
|
|
1535
|
-
u("button", {
|
|
1536
|
-
tabindex: "0",
|
|
1537
|
-
class: "vue-ui-user-options-button",
|
|
1538
|
-
onClick: r[0] || (r[0] = (t) => _e(e.value.userOptions.callbacks.csv))
|
|
1539
|
-
}, [
|
|
1540
|
-
we(n(Ae), {
|
|
1541
|
-
name: "fileCsv",
|
|
1542
|
-
stroke: ne.value.props.color
|
|
1543
|
-
}, null, 8, ["stroke"])
|
|
1544
|
-
])
|
|
1545
|
-
]),
|
|
1546
|
-
key: "1"
|
|
1547
|
-
} : void 0
|
|
1548
|
-
]), 1040)) : h("", !0),
|
|
1549
|
-
x(l.$slots, "skeleton", {}, () => [
|
|
1550
|
-
n(Ne) ? (a(), re(Gt, { key: 0 })) : h("", !0)
|
|
1551
|
-
], !0)
|
|
1552
|
-
], 46, el));
|
|
1553
|
-
}
|
|
1554
|
-
}, Co = /* @__PURE__ */ Qt(ro, [["__scopeId", "data-v-c9973f6a"]]);
|
|
1555
|
-
export {
|
|
1556
|
-
Co as default
|
|
1557
|
-
};
|