vue-data-ui 3.22.14 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
- 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-hill.js +2 -0
- 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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -1,67 +1,68 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
2
|
+
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as ee, Vt as te, X as s, f as c, h as ne, i as l, jt as re, kt as ie, p as ae, pt as oe, q as se, r as ce, t as le, tt as ue, w as de } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as me } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as he } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ve } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./img-Bnokohej.js";
|
|
11
|
+
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { t as Ce } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
+
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
14
|
+
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as De } from "./useTableResponsive-BAqJPR68.js";
|
|
17
|
+
import { t as Oe } from "./vue_ui_chestnut-D2oUhad6.js";
|
|
18
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ke, createTextVNode as Ae, createVNode as g, defineAsyncComponent as je, guardReactiveProps as _, mergeProps as Me, nextTick as Ne, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as Pe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Fe, toDisplayString as T, toRefs as Ie, unref as E, useCssVars as Le, watch as Re, withCtx as D, withKeys as ze } from "vue";
|
|
18
19
|
//#region src/components/vue-ui-chestnut.vue
|
|
19
|
-
var
|
|
20
|
+
var Be = /* @__PURE__ */ e({ default: () => Mn }), Ve = ["id"], He = ["id"], Ue = {
|
|
20
21
|
"aria-live": "polite",
|
|
21
22
|
class: "sr-only"
|
|
22
|
-
},
|
|
23
|
+
}, We = {
|
|
23
24
|
key: 2,
|
|
24
25
|
ref: "noTitle",
|
|
25
26
|
class: "vue-data-ui-no-title-space",
|
|
26
27
|
style: "height:36px; width: 100%;background:transparent"
|
|
27
|
-
},
|
|
28
|
+
}, Ge = { style: { position: "relative" } }, Ke = [
|
|
28
29
|
"xmlns",
|
|
29
30
|
"aria-describedby",
|
|
30
31
|
"viewBox"
|
|
31
|
-
],
|
|
32
|
+
], qe = ["width", "height"], Je = { key: 1 }, Ye = [
|
|
32
33
|
"fill",
|
|
33
34
|
"font-weight",
|
|
34
35
|
"font-size",
|
|
35
36
|
"x",
|
|
36
37
|
"y"
|
|
37
|
-
],
|
|
38
|
+
], Xe = [
|
|
38
39
|
"fill",
|
|
39
40
|
"font-weight",
|
|
40
41
|
"font-size",
|
|
41
42
|
"x",
|
|
42
43
|
"y"
|
|
43
|
-
],
|
|
44
|
+
], Ze = { key: 2 }, Qe = [
|
|
44
45
|
"x",
|
|
45
46
|
"y",
|
|
46
47
|
"font-size",
|
|
47
48
|
"font-weight",
|
|
48
49
|
"fill"
|
|
49
|
-
],
|
|
50
|
+
], $e = [
|
|
50
51
|
"x",
|
|
51
52
|
"y",
|
|
52
53
|
"font-size",
|
|
53
54
|
"font-weight",
|
|
54
55
|
"fill"
|
|
55
|
-
],
|
|
56
|
+
], et = [
|
|
56
57
|
"d",
|
|
57
58
|
"stroke",
|
|
58
59
|
"fill"
|
|
59
|
-
],
|
|
60
|
+
], tt = [
|
|
60
61
|
"cx",
|
|
61
62
|
"cy",
|
|
62
63
|
"r",
|
|
63
64
|
"fill"
|
|
64
|
-
],
|
|
65
|
+
], nt = [
|
|
65
66
|
"aria-label",
|
|
66
67
|
"cx",
|
|
67
68
|
"cy",
|
|
@@ -70,19 +71,19 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
70
71
|
"stroke",
|
|
71
72
|
"stroke-width",
|
|
72
73
|
"onClick"
|
|
73
|
-
],
|
|
74
|
+
], rt = { key: 3 }, it = [
|
|
74
75
|
"x",
|
|
75
76
|
"y",
|
|
76
77
|
"font-size",
|
|
77
78
|
"fill",
|
|
78
79
|
"onClick"
|
|
79
|
-
],
|
|
80
|
+
], at = { key: 0 }, ot = [
|
|
80
81
|
"x",
|
|
81
82
|
"y",
|
|
82
83
|
"fill",
|
|
83
84
|
"font-size",
|
|
84
85
|
"font-weight"
|
|
85
|
-
],
|
|
86
|
+
], st = [
|
|
86
87
|
"x",
|
|
87
88
|
"y",
|
|
88
89
|
"height",
|
|
@@ -90,7 +91,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
90
91
|
"fill",
|
|
91
92
|
"rx",
|
|
92
93
|
"onClick"
|
|
93
|
-
],
|
|
94
|
+
], ct = [
|
|
94
95
|
"aria-label",
|
|
95
96
|
"x",
|
|
96
97
|
"y",
|
|
@@ -101,241 +102,241 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
101
102
|
"stroke",
|
|
102
103
|
"stroke-width",
|
|
103
104
|
"onClick"
|
|
104
|
-
],
|
|
105
|
+
], lt = { key: 4 }, ut = [
|
|
105
106
|
"x",
|
|
106
107
|
"y",
|
|
107
108
|
"fill",
|
|
108
109
|
"font-size",
|
|
109
110
|
"onClick"
|
|
110
|
-
],
|
|
111
|
+
], dt = ["d", "stroke"], ft = [
|
|
111
112
|
"aria-label",
|
|
112
113
|
"fill",
|
|
113
114
|
"cx",
|
|
114
115
|
"cy",
|
|
115
116
|
"r",
|
|
116
117
|
"onClick"
|
|
117
|
-
],
|
|
118
|
+
], pt = { key: 5 }, mt = [
|
|
118
119
|
"x",
|
|
119
120
|
"y",
|
|
120
121
|
"font-size",
|
|
121
122
|
"font-weight",
|
|
122
123
|
"fill"
|
|
123
|
-
],
|
|
124
|
+
], ht = [
|
|
124
125
|
"x1",
|
|
125
126
|
"x2",
|
|
126
127
|
"y1",
|
|
127
128
|
"y2",
|
|
128
129
|
"stroke",
|
|
129
130
|
"stroke-width"
|
|
130
|
-
],
|
|
131
|
+
], gt = [
|
|
131
132
|
"y",
|
|
132
133
|
"height",
|
|
133
134
|
"width"
|
|
134
|
-
],
|
|
135
|
+
], _t = { style: {
|
|
135
136
|
width: "100%",
|
|
136
137
|
height: "100%",
|
|
137
138
|
display: "flex",
|
|
138
139
|
"align-items": "center",
|
|
139
140
|
"justify-content": "center",
|
|
140
141
|
"flex-direction": "column"
|
|
141
|
-
} },
|
|
142
|
+
} }, vt = { style: {
|
|
142
143
|
display: "flex",
|
|
143
144
|
"align-items": "center",
|
|
144
145
|
"justify-content": "center",
|
|
145
146
|
gap: "12px",
|
|
146
147
|
"flex-wrap": "wrap",
|
|
147
148
|
"flex-direction": "row"
|
|
148
|
-
} },
|
|
149
|
+
} }, yt = {
|
|
149
150
|
viewBox: "0 0 20 20",
|
|
150
151
|
height: "16",
|
|
151
152
|
width: "16"
|
|
152
|
-
},
|
|
153
|
+
}, bt = ["fill"], xt = { key: 7 }, St = [
|
|
153
154
|
"y",
|
|
154
155
|
"height",
|
|
155
156
|
"width"
|
|
156
|
-
],
|
|
157
|
+
], Ct = { style: {
|
|
157
158
|
width: "100%",
|
|
158
159
|
height: "100%",
|
|
159
160
|
display: "flex",
|
|
160
161
|
"align-items": "center",
|
|
161
162
|
"justify-content": "center",
|
|
162
163
|
"flex-direction": "column"
|
|
163
|
-
} },
|
|
164
|
+
} }, wt = { style: {
|
|
164
165
|
display: "flex",
|
|
165
166
|
"align-items": "center",
|
|
166
167
|
"justify-content": "center",
|
|
167
168
|
gap: "12px",
|
|
168
169
|
"flex-wrap": "wrap",
|
|
169
170
|
"flex-direction": "row"
|
|
170
|
-
} },
|
|
171
|
+
} }, Tt = {
|
|
171
172
|
viewBox: "0 0 20 20",
|
|
172
173
|
height: "16",
|
|
173
174
|
width: "16"
|
|
174
|
-
},
|
|
175
|
+
}, Et = ["fill"], Dt = [
|
|
175
176
|
"cx",
|
|
176
177
|
"cy",
|
|
177
178
|
"fill"
|
|
178
|
-
],
|
|
179
|
+
], Ot = ["d", "stroke"], kt = [
|
|
179
180
|
"cx",
|
|
180
181
|
"cy",
|
|
181
182
|
"fill"
|
|
182
|
-
],
|
|
183
|
+
], At = ["d", "stroke"], jt = [
|
|
183
184
|
"cx",
|
|
184
185
|
"cy",
|
|
185
186
|
"fill"
|
|
186
|
-
],
|
|
187
|
+
], Mt = [
|
|
187
188
|
"cx",
|
|
188
189
|
"cy",
|
|
189
190
|
"fill"
|
|
190
|
-
],
|
|
191
|
+
], Nt = [
|
|
191
192
|
"x",
|
|
192
193
|
"y",
|
|
193
194
|
"fill",
|
|
194
195
|
"font-size",
|
|
195
196
|
"font-weight"
|
|
196
|
-
],
|
|
197
|
+
], Pt = [
|
|
197
198
|
"x",
|
|
198
199
|
"y",
|
|
199
200
|
"fill",
|
|
200
201
|
"font-size",
|
|
201
202
|
"font-weight"
|
|
202
|
-
],
|
|
203
|
+
], Ft = [
|
|
203
204
|
"x",
|
|
204
205
|
"text-anchor",
|
|
205
206
|
"y",
|
|
206
207
|
"fill",
|
|
207
208
|
"font-size"
|
|
208
|
-
],
|
|
209
|
+
], It = [
|
|
209
210
|
"x",
|
|
210
211
|
"text-anchor",
|
|
211
212
|
"y",
|
|
212
213
|
"fill",
|
|
213
214
|
"font-size"
|
|
214
|
-
],
|
|
215
|
+
], Lt = [
|
|
215
216
|
"x",
|
|
216
217
|
"text-anchor",
|
|
217
218
|
"y",
|
|
218
219
|
"fill",
|
|
219
220
|
"font-size"
|
|
220
|
-
],
|
|
221
|
+
], Rt = [
|
|
221
222
|
"x",
|
|
222
223
|
"text-anchor",
|
|
223
224
|
"y",
|
|
224
225
|
"fill",
|
|
225
226
|
"font-size"
|
|
226
|
-
],
|
|
227
|
+
], zt = [
|
|
227
228
|
"x",
|
|
228
229
|
"text-anchor",
|
|
229
230
|
"y",
|
|
230
231
|
"fill",
|
|
231
232
|
"font-size"
|
|
232
|
-
],
|
|
233
|
+
], Bt = [
|
|
233
234
|
"x",
|
|
234
235
|
"y",
|
|
235
236
|
"font-size",
|
|
236
237
|
"fill"
|
|
237
|
-
],
|
|
238
|
+
], Vt = [
|
|
238
239
|
"x",
|
|
239
240
|
"y",
|
|
240
241
|
"font-size",
|
|
241
242
|
"fill"
|
|
242
|
-
],
|
|
243
|
+
], Ht = [
|
|
243
244
|
"x",
|
|
244
245
|
"y",
|
|
245
246
|
"font-size",
|
|
246
247
|
"fill"
|
|
247
|
-
],
|
|
248
|
+
], Ut = {
|
|
248
249
|
key: 4,
|
|
249
250
|
class: "vue-data-ui-watermark"
|
|
250
|
-
},
|
|
251
|
+
}, Wt = {
|
|
251
252
|
key: 5,
|
|
252
253
|
ref: "source",
|
|
253
254
|
dir: "auto"
|
|
254
|
-
},
|
|
255
|
+
}, Gt = { class: "vue-ui-data-table" }, Kt = { key: 0 }, qt = ["data-cell"], Jt = { style: {
|
|
255
256
|
display: "flex",
|
|
256
257
|
"align-items": "center",
|
|
257
258
|
gap: "5px",
|
|
258
259
|
"justify-content": "flex-end",
|
|
259
260
|
width: "100%",
|
|
260
261
|
"padding-right": "3px"
|
|
261
|
-
} },
|
|
262
|
+
} }, Yt = { key: 0 }, Xt = { key: 1 }, Zt = ["data-cell"], Qt = { style: {
|
|
262
263
|
display: "flex",
|
|
263
264
|
"align-items": "center",
|
|
264
265
|
gap: "5px",
|
|
265
266
|
"justify-content": "flex-end",
|
|
266
267
|
width: "100%",
|
|
267
268
|
"padding-right": "3px"
|
|
268
|
-
} },
|
|
269
|
+
} }, $t = { key: 0 }, en = { key: 1 }, tn = ["data-cell"], nn = { style: {
|
|
269
270
|
display: "flex",
|
|
270
271
|
"align-items": "center",
|
|
271
272
|
gap: "5px",
|
|
272
273
|
"justify-content": "flex-end",
|
|
273
274
|
width: "100%",
|
|
274
275
|
"padding-right": "3px"
|
|
275
|
-
} },
|
|
276
|
+
} }, rn = { key: 0 }, an = { key: 1 }, on = ["data-cell"], sn = { style: {
|
|
276
277
|
display: "flex",
|
|
277
278
|
"align-items": "center",
|
|
278
279
|
gap: "5px",
|
|
279
280
|
"justify-content": "flex-end",
|
|
280
281
|
width: "100%",
|
|
281
282
|
"padding-right": "3px"
|
|
282
|
-
} },
|
|
283
|
+
} }, cn = { key: 0 }, ln = { key: 1 }, un = ["data-cell"], dn = { style: {
|
|
283
284
|
display: "flex",
|
|
284
285
|
"align-items": "center",
|
|
285
286
|
gap: "5px",
|
|
286
287
|
"justify-content": "flex-end",
|
|
287
288
|
width: "100%",
|
|
288
289
|
"padding-right": "3px"
|
|
289
|
-
} },
|
|
290
|
+
} }, fn = { key: 0 }, pn = { key: 1 }, mn = ["data-cell"], hn = { style: {
|
|
290
291
|
display: "flex",
|
|
291
292
|
"align-items": "center",
|
|
292
293
|
gap: "5px",
|
|
293
294
|
"justify-content": "flex-end",
|
|
294
295
|
width: "100%",
|
|
295
296
|
"padding-right": "3px"
|
|
296
|
-
} },
|
|
297
|
+
} }, gn = { key: 0 }, _n = { key: 1 }, vn = ["data-cell"], yn = { style: {
|
|
297
298
|
display: "flex",
|
|
298
299
|
"align-items": "center",
|
|
299
300
|
gap: "5px",
|
|
300
301
|
"justify-content": "flex-end",
|
|
301
302
|
width: "100%",
|
|
302
303
|
"padding-right": "3px"
|
|
303
|
-
} },
|
|
304
|
+
} }, bn = { key: 0 }, xn = { key: 1 }, Sn = ["data-cell"], Cn = { style: {
|
|
304
305
|
display: "flex",
|
|
305
306
|
"align-items": "center",
|
|
306
307
|
gap: "5px",
|
|
307
308
|
"justify-content": "flex-end",
|
|
308
309
|
width: "100%",
|
|
309
310
|
"padding-right": "3px"
|
|
310
|
-
} },
|
|
311
|
+
} }, wn = ["data-cell"], Tn = { style: {
|
|
311
312
|
display: "flex",
|
|
312
313
|
"align-items": "center",
|
|
313
314
|
gap: "5px",
|
|
314
315
|
"justify-content": "flex-end",
|
|
315
316
|
width: "100%",
|
|
316
317
|
"padding-right": "3px"
|
|
317
|
-
} },
|
|
318
|
+
} }, En = ["data-cell"], Dn = { style: {
|
|
318
319
|
display: "flex",
|
|
319
320
|
"align-items": "center",
|
|
320
321
|
gap: "5px",
|
|
321
322
|
"justify-content": "flex-end",
|
|
322
323
|
width: "100%",
|
|
323
324
|
"padding-right": "3px"
|
|
324
|
-
} },
|
|
325
|
+
} }, On = ["data-cell"], kn = { style: {
|
|
325
326
|
display: "flex",
|
|
326
327
|
"align-items": "center",
|
|
327
328
|
gap: "5px",
|
|
328
329
|
"justify-content": "flex-end",
|
|
329
330
|
width: "100%",
|
|
330
331
|
"padding-right": "3px"
|
|
331
|
-
} },
|
|
332
|
+
} }, An = ["data-cell"], jn = { style: {
|
|
332
333
|
display: "flex",
|
|
333
334
|
"align-items": "center",
|
|
334
335
|
gap: "5px",
|
|
335
336
|
"justify-content": "flex-end",
|
|
336
337
|
width: "100%",
|
|
337
338
|
"padding-right": "3px"
|
|
338
|
-
} },
|
|
339
|
+
} }, Mn = /*#__PURE__*/ Se({
|
|
339
340
|
__name: "vue-ui-chestnut",
|
|
340
341
|
props: {
|
|
341
342
|
config: {
|
|
@@ -357,15 +358,40 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
357
358
|
"selectNut",
|
|
358
359
|
"copyAlt"
|
|
359
360
|
],
|
|
360
|
-
setup(e, { expose:
|
|
361
|
-
|
|
362
|
-
let
|
|
361
|
+
setup(e, { expose: Se, emit: Be }) {
|
|
362
|
+
Le((e) => ({ cec01d7a: e.tdo }));
|
|
363
|
+
let Mn = je(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Nn = je(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Pn = je(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Fn = je(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), In = je(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Ln = je(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_chestnut: Rn } = me(), { isThemeValid: zn, warnInvalidTheme: Bn } = be(), O = e, Vn = d(() => !!O.dataset && O.dataset.length), k = S(se()), Hn = S(null), Un = S(0), Wn = S(null), Gn = S(null), Kn = S(!1), qn = S(!1), Jn = S(!1), A = S(!1), j = S(""), M = S({
|
|
363
364
|
level: "root",
|
|
364
365
|
rootIndex: 0,
|
|
365
366
|
branchIndex: 0,
|
|
366
367
|
nutIndex: 0,
|
|
367
368
|
locked: !1
|
|
368
|
-
}), N = S(
|
|
369
|
+
}), N = S(nr());
|
|
370
|
+
fe({
|
|
371
|
+
config: () => N.value,
|
|
372
|
+
dataset: () => O.dataset,
|
|
373
|
+
component: "VueUiChestnut",
|
|
374
|
+
rules: [
|
|
375
|
+
pe.emptyArray,
|
|
376
|
+
{
|
|
377
|
+
test: (e) => e.some((e) => e?.branches && e.branches.length > 10),
|
|
378
|
+
message: [
|
|
379
|
+
"👀 Some root has > 10 branches, which can make the chart heavy. Consider:",
|
|
380
|
+
"",
|
|
381
|
+
"▶️ Grouping some branches in broader categories."
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
test: (e) => e.some((e) => e?.branches && e.branches.some((e) => e?.breakdown && e?.breakdown.length > 6)),
|
|
386
|
+
message: [
|
|
387
|
+
"👀 Some donuts have > 6 series. Consider:",
|
|
388
|
+
"",
|
|
389
|
+
"▶️ Grouping small values into an \"Other\" category."
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
});
|
|
394
|
+
let P = d(() => N.value.userOptions.useCursorPointer), Yn = d(() => i({
|
|
369
395
|
defaultConfig: {
|
|
370
396
|
userOptions: { show: !1 },
|
|
371
397
|
table: { show: !1 },
|
|
@@ -390,10 +416,10 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
390
416
|
} }
|
|
391
417
|
},
|
|
392
418
|
userConfig: N.value.skeletonConfig ?? {}
|
|
393
|
-
})), { loading:
|
|
394
|
-
...
|
|
419
|
+
})), { loading: Xn, FINAL_DATASET: Zn } = ge({
|
|
420
|
+
...Ie(O),
|
|
395
421
|
FINAL_CONFIG: N,
|
|
396
|
-
prepareConfig:
|
|
422
|
+
prepareConfig: nr,
|
|
397
423
|
skeletonDataset: O.config?.skeletonDataset ?? [{
|
|
398
424
|
name: "_",
|
|
399
425
|
color: "#969696",
|
|
@@ -509,42 +535,42 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
509
535
|
}
|
|
510
536
|
]
|
|
511
537
|
}],
|
|
512
|
-
skeletonConfig:
|
|
538
|
+
skeletonConfig: i({
|
|
513
539
|
defaultConfig: N.value,
|
|
514
|
-
userConfig:
|
|
540
|
+
userConfig: Yn.value
|
|
515
541
|
})
|
|
516
|
-
}), { userOptionsVisible:
|
|
517
|
-
function
|
|
518
|
-
let e =
|
|
542
|
+
}), { userOptionsVisible: Qn, setUserOptionsVisibility: $n, keepUserOptionState: er } = Te({ config: N.value }), { svgRef: tr } = Ee({ config: N.value.style.chart.layout.title });
|
|
543
|
+
function nr() {
|
|
544
|
+
let e = ye({
|
|
519
545
|
userConfig: O.config,
|
|
520
|
-
defaultConfig:
|
|
546
|
+
defaultConfig: Rn
|
|
521
547
|
}), t = e.theme;
|
|
522
548
|
if (!t) return e;
|
|
523
|
-
if (!
|
|
524
|
-
let n =
|
|
525
|
-
userConfig:
|
|
549
|
+
if (!zn.value(e)) return Bn(e), e;
|
|
550
|
+
let n = ye({
|
|
551
|
+
userConfig: Oe[t] || O.config,
|
|
526
552
|
defaultConfig: e
|
|
527
|
-
}), r =
|
|
553
|
+
}), r = ye({
|
|
528
554
|
userConfig: O.config,
|
|
529
555
|
defaultConfig: n
|
|
530
556
|
});
|
|
531
557
|
return {
|
|
532
558
|
...r,
|
|
533
|
-
customPalette: r.customPalette.length ? r.customPalette : a[t] ||
|
|
559
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || o
|
|
534
560
|
};
|
|
535
561
|
}
|
|
536
|
-
|
|
537
|
-
N.value =
|
|
562
|
+
Re(() => O.config, (e) => {
|
|
563
|
+
N.value = nr(), Qn.value = !N.value.userOptions.showOnChartHover, F.value.showTable = N.value.table.show, kr();
|
|
538
564
|
}, { deep: !0 });
|
|
539
|
-
let { isPrinting:
|
|
565
|
+
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } = he({
|
|
540
566
|
elementId: `vue-ui-chestnut_${k.value}`,
|
|
541
567
|
fileName: N.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
542
568
|
options: N.value.userOptions.print
|
|
543
|
-
}),
|
|
544
|
-
|
|
569
|
+
}), sr = d(() => N.value.userOptions.show), cr = d(() => de(N.value.customPalette)), F = S({ showTable: N.value.table.show });
|
|
570
|
+
Re(N, () => {
|
|
545
571
|
F.value = { showTable: N.value.table.show };
|
|
546
572
|
}, { immediate: !0 });
|
|
547
|
-
let
|
|
573
|
+
let lr = S(null), ur = d(() => N.value.table.responsiveBreakpoint), I = S({
|
|
548
574
|
gap: 6,
|
|
549
575
|
padding: {
|
|
550
576
|
top: 102,
|
|
@@ -556,7 +582,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
556
582
|
height: 0,
|
|
557
583
|
branchSize: 32,
|
|
558
584
|
branchStart: 128
|
|
559
|
-
}), L =
|
|
585
|
+
}), L = d(() => ({
|
|
560
586
|
left: I.value.padding.left,
|
|
561
587
|
top: I.value.padding.top,
|
|
562
588
|
right: I.value.width - I.value.padding.right,
|
|
@@ -564,50 +590,50 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
564
590
|
width: I.value.width - (I.value.padding.left + I.value.padding.right),
|
|
565
591
|
height: I.value.height - (I.value.padding.top + I.value.padding.bottom),
|
|
566
592
|
seedX: I.value.padding.left + 64
|
|
567
|
-
})), R =
|
|
568
|
-
|
|
593
|
+
})), R = d(() => Zn.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), z = d(() => (Zn.value.forEach((e, t) => {
|
|
594
|
+
oe({
|
|
569
595
|
datasetObject: e,
|
|
570
596
|
requiredAttributes: ["name", "branches"]
|
|
571
597
|
}).forEach((e) => {
|
|
572
|
-
|
|
598
|
+
ue({
|
|
573
599
|
componentName: "VueUiChestnut",
|
|
574
600
|
type: "datasetSerieAttribute",
|
|
575
601
|
property: e,
|
|
576
602
|
index: t,
|
|
577
|
-
debug:
|
|
603
|
+
debug: Or.value
|
|
578
604
|
});
|
|
579
605
|
}), e.branches && e.branches.forEach((e, n) => {
|
|
580
|
-
|
|
606
|
+
oe({
|
|
581
607
|
datasetObject: e,
|
|
582
608
|
requiredAttributes: ["name", "value"]
|
|
583
609
|
}).forEach((e) => {
|
|
584
|
-
|
|
610
|
+
ue({
|
|
585
611
|
componentName: "VueUiChestnut",
|
|
586
612
|
type: "datasetSerieAttribute",
|
|
587
613
|
property: e,
|
|
588
614
|
index: `${t} - ${n}`,
|
|
589
|
-
debug:
|
|
615
|
+
debug: Or.value
|
|
590
616
|
});
|
|
591
617
|
}), e.breakdown && e.breakdown.forEach((e, r) => {
|
|
592
|
-
|
|
618
|
+
oe({
|
|
593
619
|
datasetObject: e,
|
|
594
620
|
requiredAttributes: ["name", "value"]
|
|
595
621
|
}).forEach((e) => {
|
|
596
|
-
|
|
622
|
+
ue({
|
|
597
623
|
componentName: "VueUiChestnut",
|
|
598
624
|
type: "datasetSerieAttribute",
|
|
599
625
|
property: e,
|
|
600
626
|
index: `${t} - ${n} - ${r}`,
|
|
601
|
-
debug:
|
|
627
|
+
debug: Or.value
|
|
602
628
|
});
|
|
603
629
|
});
|
|
604
630
|
});
|
|
605
631
|
});
|
|
606
|
-
}),
|
|
632
|
+
}), Zn.value.map((e, t) => {
|
|
607
633
|
let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
|
|
608
634
|
return {
|
|
609
635
|
...e,
|
|
610
|
-
color:
|
|
636
|
+
color: ee(e.color) || cr.value[t] || o[t] || o[t % o.length],
|
|
611
637
|
id: e.id || `root_${t}_${k.value}`,
|
|
612
638
|
type: "root",
|
|
613
639
|
total: n,
|
|
@@ -616,12 +642,12 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
616
642
|
...r,
|
|
617
643
|
rootName: e.name,
|
|
618
644
|
rootIndex: t,
|
|
619
|
-
color:
|
|
645
|
+
color: ee(e.color) || cr.value[t] || o[t] || o[t % o.length],
|
|
620
646
|
value: r.value >= 0 ? r.value : 0,
|
|
621
647
|
id: r.id || `branch_${t}_${i}_${k.value}`,
|
|
622
648
|
proportionToRoot: r.value / n,
|
|
623
649
|
type: "branch",
|
|
624
|
-
breakdown: (r.breakdown || []).map((a,
|
|
650
|
+
breakdown: (r.breakdown || []).map((a, te) => ({
|
|
625
651
|
table: {
|
|
626
652
|
rootName: e.name,
|
|
627
653
|
rootValue: n,
|
|
@@ -645,31 +671,31 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
645
671
|
proportionToRoot: a.value / n,
|
|
646
672
|
proportionToTree: a.value / R.value,
|
|
647
673
|
rootIndex: t,
|
|
648
|
-
id: a.id || `nut_${t}_${i}_${
|
|
649
|
-
color:
|
|
674
|
+
id: a.id || `nut_${t}_${i}_${te}_${k.value}`,
|
|
675
|
+
color: ee(a.color) || cr.value[te] || o[te] || o[te % o.length],
|
|
650
676
|
value: a.value >= 0 ? a.value : 0
|
|
651
677
|
}))
|
|
652
678
|
}))
|
|
653
679
|
};
|
|
654
680
|
})));
|
|
655
|
-
function
|
|
681
|
+
function dr() {
|
|
656
682
|
return z.value;
|
|
657
683
|
}
|
|
658
|
-
let
|
|
659
|
-
let n = L.value.height / z.value.length / 2, r = e.total /
|
|
684
|
+
let fr = Be, pr = d(() => z.value.flatMap((e) => e.branches).length), mr = d(() => Math.max(...z.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), hr = d(() => Math.max(...z.value.flatMap((e) => e.branches.map((e) => e.value)))), gr = d(() => 256 + I.value.padding.left), B = d(() => z.value.sort((e, t) => t.total - e.total).map((e, t) => {
|
|
685
|
+
let n = L.value.height / z.value.length / 2, r = e.total / mr.value * (n > 64 ? 64 : n);
|
|
660
686
|
return {
|
|
661
687
|
...e,
|
|
662
688
|
x: L.value.seedX,
|
|
663
689
|
y: L.value.top + L.value.height / z.value.length * (t + 1) - (L.value.height / z.value.length / 2 + I.value.gap / 2),
|
|
664
690
|
r: r < I.value.branchSize / 2 ? I.value.branchSize / 2 : r
|
|
665
691
|
};
|
|
666
|
-
})),
|
|
692
|
+
})), _r = d(() => N.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : N.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : N.value.style.chart.layout.branches.widthRatio), vr = d(() => B.value.flatMap((e) => e.branches)), V = d(() => vr.value.sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
667
693
|
...e,
|
|
668
694
|
y1: t * I.value.branchSize + L.value.top + t * I.value.gap,
|
|
669
695
|
y2: t * I.value.branchSize + I.value.branchSize,
|
|
670
|
-
x1:
|
|
671
|
-
x2: 384 * e.value /
|
|
672
|
-
}))),
|
|
696
|
+
x1: gr.value,
|
|
697
|
+
x2: 384 * e.value / hr.value * _r.value + gr.value
|
|
698
|
+
}))), yr = d(() => B.value), br = d(() => yr.value.map((e) => V.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), xr = d(() => yr.value.map((e, t) => br.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
|
|
673
699
|
...t,
|
|
674
700
|
nutIndex: n,
|
|
675
701
|
rootIndex: e.rootIndex,
|
|
@@ -678,7 +704,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
678
704
|
branchValue: e.value,
|
|
679
705
|
rootName: e.rootName
|
|
680
706
|
})))));
|
|
681
|
-
function
|
|
707
|
+
function Sr(e) {
|
|
682
708
|
let t = B.value.find((t) => t.rootIndex === e.rootIndex);
|
|
683
709
|
return {
|
|
684
710
|
x: t.x,
|
|
@@ -694,54 +720,54 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
694
720
|
if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" && e.branchName === H.value.name && e.rootIndex === H.value.rootIndex;
|
|
695
721
|
if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" && e.branchName === W.value.name && e.rootIndex === W.value.rootIndex;
|
|
696
722
|
if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
|
|
697
|
-
if (
|
|
723
|
+
if (ii.value && A.value) {
|
|
698
724
|
if (M.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
|
|
699
|
-
if (M.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ?
|
|
700
|
-
if (M.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ?
|
|
725
|
+
if (M.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? ni.value && e.id === ni.value.id : (e.type, !1);
|
|
726
|
+
if (M.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? ri.value && e.id === ri.value.id : e.type === "nut" && ri.value && e.branchName === ri.value.name && e.rootIndex === ri.value.rootIndex;
|
|
701
727
|
}
|
|
702
728
|
return !0;
|
|
703
729
|
}
|
|
704
|
-
function
|
|
730
|
+
function Cr(e) {
|
|
705
731
|
K();
|
|
706
|
-
let t =
|
|
707
|
-
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "nut", M.value.nutIndex = 0,
|
|
708
|
-
H.value = e, W.value = e, U.value =
|
|
732
|
+
let t = yr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (br.value[t] || []).findIndex((t) => t.id === e.id);
|
|
733
|
+
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "nut", M.value.nutIndex = 0, Ne(() => {
|
|
734
|
+
H.value = e, W.value = e, U.value = ie({
|
|
709
735
|
series: e.breakdown,
|
|
710
736
|
base: 1
|
|
711
|
-
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, 80, 80),
|
|
737
|
+
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, 80, 80), fr("selectNut", e.breakdown), Q();
|
|
712
738
|
});
|
|
713
739
|
}
|
|
714
740
|
function J() {
|
|
715
|
-
H.value = null, U.value = null,
|
|
741
|
+
H.value = null, U.value = null, fr("selectNut", null);
|
|
716
742
|
}
|
|
717
|
-
function
|
|
718
|
-
let t =
|
|
719
|
-
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "branch", M.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(),
|
|
743
|
+
function wr(e) {
|
|
744
|
+
let t = yr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (br.value[t] || []).findIndex((t) => t.id === e.id);
|
|
745
|
+
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "branch", M.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), fr("selectBranch", null), Q()) : (K(), W.value = e, fr("selectBranch", e), Q());
|
|
720
746
|
}
|
|
721
|
-
function
|
|
722
|
-
let t =
|
|
723
|
-
t !== -1 && (M.value.rootIndex = t), M.value.level = "root", M.value.branchIndex = 0, M.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(),
|
|
747
|
+
function Tr(e) {
|
|
748
|
+
let t = yr.value.findIndex((t) => t.id === e.id);
|
|
749
|
+
t !== -1 && (M.value.rootIndex = t), M.value.level = "root", M.value.branchIndex = 0, M.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), fr("selectRoot", null), Q()) : (K(), G.value = e, fr("selectRoot", e), Q());
|
|
724
750
|
}
|
|
725
|
-
function
|
|
751
|
+
function Er() {
|
|
726
752
|
return L.value.bottom - (H.value.y1 + 180) < 0 ? 0 : L.value.bottom;
|
|
727
753
|
}
|
|
728
|
-
function
|
|
754
|
+
function Dr(e) {
|
|
729
755
|
return e.proportion * 100 > N.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
730
756
|
}
|
|
731
|
-
|
|
732
|
-
|
|
757
|
+
Pe(() => {
|
|
758
|
+
kr();
|
|
733
759
|
});
|
|
734
|
-
let
|
|
735
|
-
function
|
|
736
|
-
|
|
760
|
+
let Or = d(() => N.value.debug);
|
|
761
|
+
function kr() {
|
|
762
|
+
re(O.dataset) && ue({
|
|
737
763
|
componentName: "VueUiChestnut",
|
|
738
764
|
type: "dataset",
|
|
739
|
-
debug:
|
|
765
|
+
debug: Or.value
|
|
740
766
|
});
|
|
741
|
-
let e =
|
|
767
|
+
let e = pr.value * (I.value.branchSize + I.value.gap) + I.value.padding.top + I.value.padding.bottom;
|
|
742
768
|
I.value.height = e;
|
|
743
769
|
}
|
|
744
|
-
let Y =
|
|
770
|
+
let Y = d(() => ({
|
|
745
771
|
head: [
|
|
746
772
|
N.value.table.th.translations.rootName,
|
|
747
773
|
N.value.table.th.translations.rootValue,
|
|
@@ -758,15 +784,15 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
758
784
|
],
|
|
759
785
|
body: z.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
|
|
760
786
|
}));
|
|
761
|
-
function
|
|
762
|
-
|
|
763
|
-
let
|
|
787
|
+
function Ar(e = null) {
|
|
788
|
+
Ne(() => {
|
|
789
|
+
let n = [
|
|
764
790
|
[N.value.style.chart.layout.title.text],
|
|
765
791
|
[N.value.style.chart.layout.title.subtitle.text],
|
|
766
792
|
[""],
|
|
767
793
|
["Grand total", R.value],
|
|
768
794
|
[""]
|
|
769
|
-
],
|
|
795
|
+
], i = Y.value.head, a = Y.value.body.map((e, t) => [
|
|
770
796
|
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
|
|
771
797
|
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
|
|
772
798
|
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
|
|
@@ -779,28 +805,28 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
779
805
|
e.nutToBranch,
|
|
780
806
|
e.nutToRoot,
|
|
781
807
|
e.nutToTotal
|
|
782
|
-
]),
|
|
783
|
-
e ? e(
|
|
784
|
-
csvContent:
|
|
808
|
+
]), o = n.concat([i]).concat(a), ee = r(o);
|
|
809
|
+
e ? e(ee) : t({
|
|
810
|
+
csvContent: ee,
|
|
785
811
|
title: N.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
786
812
|
});
|
|
787
813
|
});
|
|
788
814
|
}
|
|
789
|
-
let
|
|
790
|
-
function
|
|
791
|
-
|
|
815
|
+
let jr = S(!1);
|
|
816
|
+
function Mr(e) {
|
|
817
|
+
jr.value = e, Un.value += 1;
|
|
792
818
|
}
|
|
793
|
-
function
|
|
819
|
+
function Nr() {
|
|
794
820
|
F.value.showTable = !F.value.showTable;
|
|
795
821
|
}
|
|
796
|
-
let
|
|
797
|
-
function
|
|
798
|
-
|
|
822
|
+
let Pr = S(!1);
|
|
823
|
+
function Fr() {
|
|
824
|
+
Pr.value = !Pr.value;
|
|
799
825
|
}
|
|
800
|
-
async function
|
|
801
|
-
if (!
|
|
802
|
-
let { width: t, height: n } =
|
|
803
|
-
domElement:
|
|
826
|
+
async function Ir({ scale: e = 2 } = {}) {
|
|
827
|
+
if (!Hn.value) return;
|
|
828
|
+
let { width: t, height: n } = Hn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
829
|
+
domElement: Hn.value,
|
|
804
830
|
base64: !0,
|
|
805
831
|
img: !0,
|
|
806
832
|
scale: e
|
|
@@ -814,8 +840,8 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
814
840
|
aspectRatio: r
|
|
815
841
|
};
|
|
816
842
|
}
|
|
817
|
-
function
|
|
818
|
-
let t =
|
|
843
|
+
function Lr(e) {
|
|
844
|
+
let t = Sr(e), n = e.x1, r = e.y1, i = I.value.branchSize, a = t.x + t.r / 2, o = t.y;
|
|
819
845
|
return [
|
|
820
846
|
`M ${n},${r}`,
|
|
821
847
|
`C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
|
|
@@ -823,18 +849,18 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
823
849
|
"Z"
|
|
824
850
|
].join(" ");
|
|
825
851
|
}
|
|
826
|
-
let
|
|
852
|
+
let Rr = d(() => {
|
|
827
853
|
let e = N.value.table.useDialog && !N.value.table.show, t = F.value.showTable;
|
|
828
854
|
return {
|
|
829
|
-
component: e ?
|
|
855
|
+
component: e ? Ln : Nn,
|
|
830
856
|
title: `${N.value.style.chart.layout.title.text}${N.value.style.chart.layout.title.subtitle.text ? `: ${N.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
831
857
|
props: e ? {
|
|
832
858
|
backgroundColor: N.value.table.th.backgroundColor,
|
|
833
859
|
color: N.value.table.th.color,
|
|
834
860
|
headerColor: N.value.table.th.color,
|
|
835
861
|
headerBg: N.value.table.th.backgroundColor,
|
|
836
|
-
isFullscreen:
|
|
837
|
-
fullscreenParent:
|
|
862
|
+
isFullscreen: jr.value,
|
|
863
|
+
fullscreenParent: Hn.value,
|
|
838
864
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
839
865
|
isCursorPointer: P.value
|
|
840
866
|
} : {
|
|
@@ -854,71 +880,71 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
854
880
|
}
|
|
855
881
|
};
|
|
856
882
|
});
|
|
857
|
-
|
|
858
|
-
N.value.table.show || (e && N.value.table.useDialog &&
|
|
883
|
+
Re(() => F.value.showTable, async (e) => {
|
|
884
|
+
N.value.table.show || (e && N.value.table.useDialog && Wn.value ? (await Ne(), Wn.value.open()) : "close" in Wn.value && Wn.value.close());
|
|
859
885
|
});
|
|
860
|
-
let { isResponsive:
|
|
861
|
-
function
|
|
862
|
-
F.value.showTable = !1,
|
|
886
|
+
let { isResponsive: zr } = De(lr, ur);
|
|
887
|
+
function Br() {
|
|
888
|
+
F.value.showTable = !1, Gn.value && Gn.value.setTableIconState(!1);
|
|
863
889
|
}
|
|
864
|
-
let
|
|
890
|
+
let Vr = d(() => z.value.map((e, t) => ({
|
|
865
891
|
...e,
|
|
866
|
-
display: `${e.name}: ${
|
|
892
|
+
display: `${e.name}: ${l(N.value.style.chart.layout.roots.labels.formatter, e.total, s({
|
|
867
893
|
p: N.value.style.chart.layout.legend.prefix,
|
|
868
894
|
v: e.total,
|
|
869
895
|
s: N.value.style.chart.layout.legend.suffix,
|
|
870
896
|
r: N.value.style.chart.layout.legend.roundingValue
|
|
871
|
-
}), { datapoint: e })} (${
|
|
897
|
+
}), { datapoint: e })} (${s({
|
|
872
898
|
v: e.total / R.value * 100,
|
|
873
899
|
s: "%",
|
|
874
900
|
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
875
901
|
})})`
|
|
876
|
-
}))),
|
|
902
|
+
}))), Hr = d(() => Vr.value.map((e) => ({
|
|
877
903
|
color: e.color,
|
|
878
904
|
name: e.display,
|
|
879
905
|
shape: "circle"
|
|
880
|
-
}))),
|
|
906
|
+
}))), Ur = d(() => N.value.style.chart.backgroundColor), Wr = d(() => ({
|
|
881
907
|
...N.value.style.chart.layout.legend,
|
|
882
908
|
textAlign: "center",
|
|
883
909
|
show: !0,
|
|
884
910
|
position: "bottom"
|
|
885
|
-
})), { exportSvg:
|
|
886
|
-
svg:
|
|
887
|
-
title:
|
|
888
|
-
legend:
|
|
889
|
-
legendItems:
|
|
890
|
-
backgroundColor:
|
|
911
|
+
})), Gr = d(() => N.value.style.chart.layout.title), { exportSvg: Kr, getSvg: qr } = ve({
|
|
912
|
+
svg: tr,
|
|
913
|
+
title: Gr,
|
|
914
|
+
legend: Wr,
|
|
915
|
+
legendItems: Hr,
|
|
916
|
+
backgroundColor: Ur,
|
|
891
917
|
titleEmbedded: !0
|
|
892
918
|
});
|
|
893
|
-
async function
|
|
894
|
-
|
|
919
|
+
async function Jr({ isCb: e }) {
|
|
920
|
+
qn.value = !0, await Ne();
|
|
895
921
|
try {
|
|
896
922
|
if (e) {
|
|
897
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
923
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await qr();
|
|
898
924
|
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
899
925
|
blob: e,
|
|
900
926
|
url: t,
|
|
901
927
|
text: n,
|
|
902
928
|
dataUrl: r
|
|
903
929
|
}));
|
|
904
|
-
} else await Promise.resolve(
|
|
930
|
+
} else await Promise.resolve(Kr());
|
|
905
931
|
} finally {
|
|
906
|
-
|
|
932
|
+
qn.value = !1;
|
|
907
933
|
}
|
|
908
934
|
}
|
|
909
|
-
function
|
|
935
|
+
function Yr(e) {
|
|
910
936
|
if (e?.stage === "start") {
|
|
911
|
-
|
|
937
|
+
Kn.value = !0;
|
|
912
938
|
return;
|
|
913
939
|
}
|
|
914
940
|
if (e?.stage === "end") {
|
|
915
|
-
|
|
941
|
+
Kn.value = !1;
|
|
916
942
|
return;
|
|
917
943
|
}
|
|
918
|
-
|
|
944
|
+
or();
|
|
919
945
|
}
|
|
920
|
-
async function
|
|
921
|
-
if (
|
|
946
|
+
async function Xr() {
|
|
947
|
+
if (fr("copyAlt", {
|
|
922
948
|
config: N.value,
|
|
923
949
|
dataset: z.value
|
|
924
950
|
}), !N.value.userOptions.callbacks.altCopy) {
|
|
@@ -930,59 +956,59 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
930
956
|
dataset: z.value
|
|
931
957
|
}));
|
|
932
958
|
}
|
|
933
|
-
function
|
|
959
|
+
function Zr(e) {
|
|
934
960
|
if (!e) return "";
|
|
935
|
-
let t =
|
|
961
|
+
let t = s({
|
|
936
962
|
p: N.value.style.chart.layout.legend.prefix,
|
|
937
963
|
v: e.total,
|
|
938
964
|
s: N.value.style.chart.layout.legend.suffix,
|
|
939
965
|
r: N.value.style.chart.layout.legend.roundingValue
|
|
940
|
-
}), n =
|
|
966
|
+
}), n = s({
|
|
941
967
|
v: e.total / R.value * 100,
|
|
942
968
|
s: "%",
|
|
943
969
|
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
944
970
|
});
|
|
945
971
|
return `Root ${e.name}. Value ${t}. ${n} of total.`;
|
|
946
972
|
}
|
|
947
|
-
function
|
|
973
|
+
function Qr(e) {
|
|
948
974
|
if (!e) return "";
|
|
949
|
-
let t =
|
|
975
|
+
let t = s({
|
|
950
976
|
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
951
977
|
v: e.value,
|
|
952
978
|
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
953
979
|
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
954
|
-
}), n =
|
|
980
|
+
}), n = s({
|
|
955
981
|
v: e.proportionToRoot * 100,
|
|
956
982
|
s: "%",
|
|
957
983
|
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
958
984
|
});
|
|
959
985
|
return `Branch ${e.name}. Root ${e.rootName}. Value ${t}. ${n} of root ${e.rootName}.`;
|
|
960
986
|
}
|
|
961
|
-
function
|
|
987
|
+
function $r(e) {
|
|
962
988
|
if (!e) return "";
|
|
963
|
-
let t =
|
|
989
|
+
let t = s({
|
|
964
990
|
p: N.value.style.chart.layout.legend.prefix,
|
|
965
991
|
v: e.value,
|
|
966
992
|
s: N.value.style.chart.layout.legend.suffix,
|
|
967
993
|
r: N.value.style.chart.layout.nuts.selected.labels.roundingValue
|
|
968
|
-
}), n =
|
|
994
|
+
}), n = s({
|
|
969
995
|
v: e.proportionToBranch * 100,
|
|
970
996
|
s: "%",
|
|
971
997
|
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
972
998
|
});
|
|
973
999
|
return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${t}. ${n} of branch ${e.branchName}.`;
|
|
974
1000
|
}
|
|
975
|
-
let
|
|
1001
|
+
let ei = d(() => yr.value[M.value.rootIndex] || null), X = d(() => (br.value[M.value.rootIndex] || [])[M.value.branchIndex] || null), ti = d(() => ((xr.value[M.value.rootIndex] || [])[M.value.branchIndex] || [])[M.value.nutIndex] || null), Z = d(() => ei.value), ni = d(() => X.value), ri = d(() => M.value.level === "nut" ? X.value : null), ii = d(() => Jn.value);
|
|
976
1002
|
function Q() {
|
|
977
1003
|
if (M.value.level === "root") {
|
|
978
|
-
j.value =
|
|
1004
|
+
j.value = Zr(ei.value);
|
|
979
1005
|
return;
|
|
980
1006
|
}
|
|
981
1007
|
if (M.value.level === "branch") {
|
|
982
|
-
j.value =
|
|
1008
|
+
j.value = Qr(X.value);
|
|
983
1009
|
return;
|
|
984
1010
|
}
|
|
985
|
-
M.value.level === "nut" && (j.value =
|
|
1011
|
+
M.value.level === "nut" && (j.value = $r(ti.value));
|
|
986
1012
|
}
|
|
987
1013
|
function $() {
|
|
988
1014
|
M.value = {
|
|
@@ -993,45 +1019,45 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
993
1019
|
locked: !1
|
|
994
1020
|
}, j.value = "";
|
|
995
1021
|
}
|
|
996
|
-
function
|
|
997
|
-
let e =
|
|
1022
|
+
function ai() {
|
|
1023
|
+
let e = br.value[M.value.rootIndex] || [];
|
|
998
1024
|
if (!e.length) {
|
|
999
1025
|
M.value.branchIndex = 0;
|
|
1000
1026
|
return;
|
|
1001
1027
|
}
|
|
1002
1028
|
M.value.branchIndex >= e.length && (M.value.branchIndex = 0), M.value.branchIndex < 0 && (M.value.branchIndex = e.length - 1);
|
|
1003
1029
|
}
|
|
1004
|
-
function
|
|
1005
|
-
let e = (
|
|
1030
|
+
function oi() {
|
|
1031
|
+
let e = (xr.value[M.value.rootIndex] || [])[M.value.branchIndex] || [];
|
|
1006
1032
|
if (!e.length) {
|
|
1007
1033
|
M.value.nutIndex = 0;
|
|
1008
1034
|
return;
|
|
1009
1035
|
}
|
|
1010
1036
|
M.value.nutIndex >= e.length && (M.value.nutIndex = 0), M.value.nutIndex < 0 && (M.value.nutIndex = e.length - 1);
|
|
1011
1037
|
}
|
|
1012
|
-
function
|
|
1038
|
+
function si(e) {
|
|
1013
1039
|
if (M.value.level === "root") {
|
|
1014
|
-
let t =
|
|
1040
|
+
let t = yr.value.length;
|
|
1015
1041
|
if (!t) return;
|
|
1016
1042
|
M.value.rootIndex += e, M.value.rootIndex >= t && (M.value.rootIndex = 0), M.value.rootIndex < 0 && (M.value.rootIndex = t - 1), M.value.branchIndex = 0, M.value.nutIndex = 0, Q();
|
|
1017
1043
|
return;
|
|
1018
1044
|
}
|
|
1019
1045
|
if (M.value.level === "branch") {
|
|
1020
|
-
M.value.branchIndex += e,
|
|
1046
|
+
M.value.branchIndex += e, ai(), M.value.nutIndex = 0, Q();
|
|
1021
1047
|
return;
|
|
1022
1048
|
}
|
|
1023
|
-
M.value.level === "nut" && (M.value.nutIndex += e,
|
|
1049
|
+
M.value.level === "nut" && (M.value.nutIndex += e, oi(), Q());
|
|
1024
1050
|
}
|
|
1025
|
-
function
|
|
1051
|
+
function ci(e) {
|
|
1026
1052
|
if (e > 0) {
|
|
1027
1053
|
if (M.value.level === "root") {
|
|
1028
|
-
if (!(
|
|
1054
|
+
if (!(br.value[M.value.rootIndex] || []).length) return;
|
|
1029
1055
|
M.value.level = "branch", M.value.branchIndex = 0, M.value.nutIndex = 0, Q();
|
|
1030
1056
|
return;
|
|
1031
1057
|
}
|
|
1032
1058
|
if (M.value.level === "branch") {
|
|
1033
|
-
if (!((
|
|
1034
|
-
M.value.level = "nut", M.value.nutIndex = 0, X.value ?
|
|
1059
|
+
if (!((xr.value[M.value.rootIndex] || [])[M.value.branchIndex] || []).length) return;
|
|
1060
|
+
M.value.level = "nut", M.value.nutIndex = 0, X.value ? Cr(X.value) : Q();
|
|
1035
1061
|
return;
|
|
1036
1062
|
}
|
|
1037
1063
|
return;
|
|
@@ -1042,120 +1068,120 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1042
1068
|
}
|
|
1043
1069
|
M.value.level === "branch" && (W.value = null, G.value = null, M.value.level = "root", M.value.nutIndex = 0, Q());
|
|
1044
1070
|
}
|
|
1045
|
-
function
|
|
1046
|
-
if (M.value.level === "root" &&
|
|
1047
|
-
|
|
1071
|
+
function li() {
|
|
1072
|
+
if (M.value.level === "root" && ei.value) {
|
|
1073
|
+
Tr(ei.value), j.value = `${Zr(ei.value)} selected.`;
|
|
1048
1074
|
return;
|
|
1049
1075
|
}
|
|
1050
1076
|
if (M.value.level === "branch" && X.value) {
|
|
1051
|
-
|
|
1077
|
+
wr(X.value), j.value = `${Qr(X.value)} selected.`;
|
|
1052
1078
|
return;
|
|
1053
1079
|
}
|
|
1054
|
-
M.value.level === "nut" && X.value &&
|
|
1080
|
+
M.value.level === "nut" && X.value && ti.value && (Cr(X.value), j.value = `${$r(ti.value)} details opened.`);
|
|
1055
1081
|
}
|
|
1056
|
-
function
|
|
1057
|
-
|
|
1082
|
+
function ui() {
|
|
1083
|
+
Jn.value = !0, A.value = !1;
|
|
1058
1084
|
}
|
|
1059
|
-
function
|
|
1060
|
-
|
|
1085
|
+
function di() {
|
|
1086
|
+
Jn.value = !1, A.value = !1, j.value = "", !G.value && !W.value && !H.value && $();
|
|
1061
1087
|
}
|
|
1062
|
-
function
|
|
1088
|
+
function fi(e) {
|
|
1063
1089
|
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1064
1090
|
if (!(!t && !n && !r && !i && !a && !o)) {
|
|
1065
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
1091
|
+
if (e.preventDefault(), e.stopPropagation(), Jn.value ||= !0, o) {
|
|
1066
1092
|
K(), $(), A.value = !1;
|
|
1067
1093
|
return;
|
|
1068
1094
|
}
|
|
1069
1095
|
if ((t || n || r || i) && (A.value = !0), t) {
|
|
1070
|
-
|
|
1096
|
+
si(-1);
|
|
1071
1097
|
return;
|
|
1072
1098
|
}
|
|
1073
1099
|
if (n) {
|
|
1074
|
-
|
|
1100
|
+
si(1);
|
|
1075
1101
|
return;
|
|
1076
1102
|
}
|
|
1077
1103
|
if (r) {
|
|
1078
|
-
|
|
1104
|
+
ci(-1);
|
|
1079
1105
|
return;
|
|
1080
1106
|
}
|
|
1081
1107
|
if (i) {
|
|
1082
|
-
|
|
1108
|
+
ci(1);
|
|
1083
1109
|
return;
|
|
1084
1110
|
}
|
|
1085
|
-
a &&
|
|
1111
|
+
a && li();
|
|
1086
1112
|
}
|
|
1087
1113
|
}
|
|
1088
|
-
let
|
|
1114
|
+
let pi = d(() => ({
|
|
1089
1115
|
headers: Y.value.head,
|
|
1090
1116
|
rows: Y.value.body.map((e) => [
|
|
1091
1117
|
e.rootName,
|
|
1092
1118
|
e.rootValue,
|
|
1093
|
-
|
|
1119
|
+
s({
|
|
1094
1120
|
v: e.rootToTotal * 100,
|
|
1095
1121
|
s: "%",
|
|
1096
1122
|
r: N.value.table.td.roundingPercentage
|
|
1097
1123
|
}),
|
|
1098
1124
|
e.branchName,
|
|
1099
1125
|
e.branchValue,
|
|
1100
|
-
|
|
1126
|
+
s({
|
|
1101
1127
|
v: e.branchToRoot * 100,
|
|
1102
1128
|
s: "%",
|
|
1103
1129
|
r: N.value.table.td.roundingPercentage
|
|
1104
1130
|
}),
|
|
1105
|
-
|
|
1131
|
+
s({
|
|
1106
1132
|
v: e.branchToTotal * 100,
|
|
1107
1133
|
s: "%",
|
|
1108
1134
|
r: N.value.table.td.roundingPercentage
|
|
1109
1135
|
}),
|
|
1110
1136
|
e.nutName,
|
|
1111
1137
|
e.nutValue,
|
|
1112
|
-
|
|
1138
|
+
s({
|
|
1113
1139
|
v: e.nutToBranch * 100,
|
|
1114
1140
|
s: "%",
|
|
1115
1141
|
r: N.value.table.td.roundingPercentage
|
|
1116
1142
|
}),
|
|
1117
|
-
|
|
1143
|
+
s({
|
|
1118
1144
|
v: e.nutToRoot * 100,
|
|
1119
1145
|
s: "%",
|
|
1120
1146
|
r: N.value.table.td.roundingPercentage
|
|
1121
1147
|
}),
|
|
1122
|
-
|
|
1148
|
+
s({
|
|
1123
1149
|
v: e.nutToTotal * 100,
|
|
1124
1150
|
s: "%",
|
|
1125
1151
|
r: N.value.table.td.roundingPercentage
|
|
1126
1152
|
})
|
|
1127
1153
|
])
|
|
1128
1154
|
}));
|
|
1129
|
-
return
|
|
1130
|
-
getData:
|
|
1131
|
-
getImage:
|
|
1132
|
-
generatePdf:
|
|
1133
|
-
generateCsv:
|
|
1134
|
-
generateImage:
|
|
1135
|
-
generateSvg:
|
|
1136
|
-
toggleTable:
|
|
1137
|
-
toggleAnnotator:
|
|
1138
|
-
toggleFullscreen:
|
|
1139
|
-
copyAlt:
|
|
1140
|
-
}), (e, t) => (x(),
|
|
1141
|
-
class: v(`vue-data-ui-component vue-ui-chestnut ${
|
|
1155
|
+
return Se({
|
|
1156
|
+
getData: dr,
|
|
1157
|
+
getImage: Ir,
|
|
1158
|
+
generatePdf: ar,
|
|
1159
|
+
generateCsv: Ar,
|
|
1160
|
+
generateImage: or,
|
|
1161
|
+
generateSvg: Jr,
|
|
1162
|
+
toggleTable: Nr,
|
|
1163
|
+
toggleAnnotator: Fr,
|
|
1164
|
+
toggleFullscreen: Mr,
|
|
1165
|
+
copyAlt: Xr
|
|
1166
|
+
}), (e, t) => (x(), m("div", {
|
|
1167
|
+
class: v(`vue-data-ui-component vue-ui-chestnut ${jr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1142
1168
|
ref_key: "chestnutChart",
|
|
1143
|
-
ref:
|
|
1169
|
+
ref: Hn,
|
|
1144
1170
|
id: `vue-ui-chestnut_${k.value}`,
|
|
1145
1171
|
style: b(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor}`),
|
|
1146
|
-
onMouseenter: t[12] ||= () => E(
|
|
1147
|
-
onMouseleave: t[13] ||= () => E(
|
|
1172
|
+
onMouseenter: t[12] ||= () => E($n)(!0),
|
|
1173
|
+
onMouseleave: t[13] ||= () => E($n)(!1)
|
|
1148
1174
|
}, [
|
|
1149
|
-
|
|
1175
|
+
h("div", {
|
|
1150
1176
|
id: `chart-instructions-${k.value}`,
|
|
1151
1177
|
class: "sr-only"
|
|
1152
|
-
}, [
|
|
1153
|
-
|
|
1154
|
-
|
|
1178
|
+
}, [h("p", null, T(N.value.a11y.translations.keyboardNavigation), 1)], 8, He),
|
|
1179
|
+
h("div", Ue, T(j.value), 1),
|
|
1180
|
+
pi.value?.rows?.length ? (x(), f(we, {
|
|
1155
1181
|
key: 0,
|
|
1156
1182
|
uid: k.value,
|
|
1157
|
-
head:
|
|
1158
|
-
body:
|
|
1183
|
+
head: pi.value.headers,
|
|
1184
|
+
body: pi.value.rows,
|
|
1159
1185
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1160
1186
|
caption: N.value.a11y.translations.tableCaption
|
|
1161
1187
|
}, null, 8, [
|
|
@@ -1164,15 +1190,15 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1164
1190
|
"body",
|
|
1165
1191
|
"notice",
|
|
1166
1192
|
"caption"
|
|
1167
|
-
])) :
|
|
1168
|
-
N.value.userOptions.buttons.annotator ? (x(),
|
|
1193
|
+
])) : p("", !0),
|
|
1194
|
+
N.value.userOptions.buttons.annotator ? (x(), f(E(Pn), {
|
|
1169
1195
|
key: 1,
|
|
1170
|
-
svgRef: E(
|
|
1196
|
+
svgRef: E(tr),
|
|
1171
1197
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1172
1198
|
color: N.value.style.chart.color,
|
|
1173
|
-
active:
|
|
1199
|
+
active: Pr.value,
|
|
1174
1200
|
isCursorPointer: P.value,
|
|
1175
|
-
onClose:
|
|
1201
|
+
onClose: Fr
|
|
1176
1202
|
}, {
|
|
1177
1203
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1178
1204
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -1187,16 +1213,16 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1187
1213
|
"color",
|
|
1188
1214
|
"active",
|
|
1189
1215
|
"isCursorPointer"
|
|
1190
|
-
])) :
|
|
1191
|
-
|
|
1192
|
-
N.value.userOptions.show &&
|
|
1216
|
+
])) : p("", !0),
|
|
1217
|
+
sr.value ? (x(), m("div", We, null, 512)) : p("", !0),
|
|
1218
|
+
N.value.userOptions.show && Vn.value && (E(er) || E(Qn)) ? (x(), f(E(Fn), {
|
|
1193
1219
|
ref_key: "userOptionsRef",
|
|
1194
|
-
ref:
|
|
1195
|
-
key: `user_options_${
|
|
1220
|
+
ref: Gn,
|
|
1221
|
+
key: `user_options_${Un.value}`,
|
|
1196
1222
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1197
1223
|
color: N.value.style.chart.color,
|
|
1198
|
-
isImaging: E(
|
|
1199
|
-
isPrinting: E(
|
|
1224
|
+
isImaging: E(ir),
|
|
1225
|
+
isPrinting: E(rr),
|
|
1200
1226
|
uid: k.value,
|
|
1201
1227
|
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1202
1228
|
hasImg: N.value.userOptions.buttons.img,
|
|
@@ -1205,26 +1231,26 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1205
1231
|
hasTable: N.value.userOptions.buttons.table,
|
|
1206
1232
|
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1207
1233
|
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1208
|
-
isFullscreen:
|
|
1234
|
+
isFullscreen: jr.value,
|
|
1209
1235
|
titles: { ...N.value.userOptions.buttonTitles },
|
|
1210
|
-
chartElement:
|
|
1236
|
+
chartElement: Hn.value,
|
|
1211
1237
|
position: N.value.userOptions.position,
|
|
1212
1238
|
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1213
|
-
isAnnotation:
|
|
1239
|
+
isAnnotation: Pr.value,
|
|
1214
1240
|
callbacks: N.value.userOptions.callbacks,
|
|
1215
1241
|
printScale: N.value.userOptions.print.scale,
|
|
1216
1242
|
tableDialog: N.value.table.useDialog,
|
|
1217
1243
|
isCursorPointer: P.value,
|
|
1218
|
-
onToggleFullscreen:
|
|
1219
|
-
onGeneratePdf: E(
|
|
1220
|
-
onGenerateCsv:
|
|
1221
|
-
onGenerateImage:
|
|
1222
|
-
onGenerateSvg:
|
|
1223
|
-
onToggleTable:
|
|
1224
|
-
onToggleAnnotator:
|
|
1225
|
-
onCopyAlt:
|
|
1226
|
-
style: b({ visibility: E(
|
|
1227
|
-
},
|
|
1244
|
+
onToggleFullscreen: Mr,
|
|
1245
|
+
onGeneratePdf: E(ar),
|
|
1246
|
+
onGenerateCsv: Ar,
|
|
1247
|
+
onGenerateImage: Yr,
|
|
1248
|
+
onGenerateSvg: Jr,
|
|
1249
|
+
onToggleTable: Nr,
|
|
1250
|
+
onToggleAnnotator: Fr,
|
|
1251
|
+
onCopyAlt: Xr,
|
|
1252
|
+
style: b({ visibility: E(er) ? E(Qn) ? "visible" : "hidden" : "visible" })
|
|
1253
|
+
}, ke({ _: 2 }, [
|
|
1228
1254
|
e.$slots.menuIcon ? {
|
|
1229
1255
|
name: "menuIcon",
|
|
1230
1256
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
@@ -1314,34 +1340,34 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1314
1340
|
"isCursorPointer",
|
|
1315
1341
|
"onGeneratePdf",
|
|
1316
1342
|
"style"
|
|
1317
|
-
])) :
|
|
1318
|
-
|
|
1343
|
+
])) : p("", !0),
|
|
1344
|
+
h("div", Ge, [I.value.height > 0 ? (x(), m("svg", {
|
|
1319
1345
|
key: 0,
|
|
1320
1346
|
ref_key: "svgRef",
|
|
1321
|
-
ref:
|
|
1322
|
-
xmlns: E(
|
|
1347
|
+
ref: tr,
|
|
1348
|
+
xmlns: E(le),
|
|
1323
1349
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1324
1350
|
class: v({
|
|
1325
|
-
"vue-data-ui-fullscreen--on":
|
|
1326
|
-
"vue-data-ui-fulscreen--off": !
|
|
1351
|
+
"vue-data-ui-fullscreen--on": jr.value,
|
|
1352
|
+
"vue-data-ui-fulscreen--off": !jr.value
|
|
1327
1353
|
}),
|
|
1328
1354
|
viewBox: `0 0 ${I.value.width <= 0 ? 10 : I.value.width} ${I.value.height <= 0 ? 10 : I.value.height}`,
|
|
1329
1355
|
style: b(`overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
1330
1356
|
tabindex: "0",
|
|
1331
|
-
onFocus:
|
|
1332
|
-
onBlur:
|
|
1333
|
-
onKeydown:
|
|
1357
|
+
onFocus: ui,
|
|
1358
|
+
onBlur: di,
|
|
1359
|
+
onKeydown: fi
|
|
1334
1360
|
}, [
|
|
1335
|
-
|
|
1336
|
-
e.$slots["chart-background"] ? (x(),
|
|
1361
|
+
g(E(In)),
|
|
1362
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1337
1363
|
key: 0,
|
|
1338
1364
|
x: 0,
|
|
1339
1365
|
y: 0,
|
|
1340
1366
|
width: I.value.width <= 0 ? 10 : I.value.width,
|
|
1341
1367
|
height: I.value.height <= 0 ? 10 : I.value.height,
|
|
1342
1368
|
style: { pointerEvents: "none" }
|
|
1343
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1344
|
-
H.value ?
|
|
1369
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, qe)) : p("", !0),
|
|
1370
|
+
H.value ? p("", !0) : (x(), m("g", Je, [N.value.style.chart.layout.title.text ? (x(), m("text", {
|
|
1345
1371
|
key: 0,
|
|
1346
1372
|
"text-anchor": "middle",
|
|
1347
1373
|
fill: N.value.style.chart.layout.title.color,
|
|
@@ -1352,7 +1378,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1352
1378
|
onClick: t[0] ||= () => {
|
|
1353
1379
|
K(), $(), A.value = !1;
|
|
1354
1380
|
}
|
|
1355
|
-
}, T(N.value.style.chart.layout.title.text), 9,
|
|
1381
|
+
}, T(N.value.style.chart.layout.title.text), 9, Ye)) : p("", !0), N.value.style.chart.layout.title.subtitle.text ? (x(), m("text", {
|
|
1356
1382
|
key: 1,
|
|
1357
1383
|
"text-anchor": "middle",
|
|
1358
1384
|
fill: N.value.style.chart.layout.title.subtitle.color,
|
|
@@ -1363,9 +1389,9 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1363
1389
|
onClick: t[1] ||= () => {
|
|
1364
1390
|
K(), $(), A.value = !1;
|
|
1365
1391
|
}
|
|
1366
|
-
}, T(N.value.style.chart.layout.title.subtitle.text), 9,
|
|
1367
|
-
|
|
1368
|
-
(x(!0),
|
|
1392
|
+
}, T(N.value.style.chart.layout.title.subtitle.text), 9, Xe)) : p("", !0)])),
|
|
1393
|
+
h("defs", null, [
|
|
1394
|
+
(x(!0), m(u, null, C(z.value, (e, t) => (x(), f(Ce, {
|
|
1369
1395
|
t: "radial",
|
|
1370
1396
|
cx: "50%",
|
|
1371
1397
|
cy: "50%",
|
|
@@ -1376,7 +1402,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1376
1402
|
key: `root_gradient_${k.value}_${e.rootIndex}`,
|
|
1377
1403
|
stops: [[
|
|
1378
1404
|
"0%",
|
|
1379
|
-
E(
|
|
1405
|
+
E(n)(E(te)(e.color, .05), 100 - N.value.style.chart.layout.roots.gradientIntensity),
|
|
1380
1406
|
1
|
|
1381
1407
|
], [
|
|
1382
1408
|
"100%",
|
|
@@ -1384,7 +1410,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1384
1410
|
1
|
|
1385
1411
|
]]
|
|
1386
1412
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1387
|
-
(x(!0),
|
|
1413
|
+
(x(!0), m(u, null, C(z.value, (e) => (x(), f(Ce, {
|
|
1388
1414
|
t: "linear",
|
|
1389
1415
|
x1: "0%",
|
|
1390
1416
|
y1: "0%",
|
|
@@ -1398,11 +1424,11 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1398
1424
|
1
|
|
1399
1425
|
], [
|
|
1400
1426
|
"100%",
|
|
1401
|
-
E(
|
|
1427
|
+
E(n)(E(te)(e.color, .02), 100 - N.value.style.chart.layout.branches.gradientIntensity),
|
|
1402
1428
|
1
|
|
1403
1429
|
]]
|
|
1404
1430
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1405
|
-
|
|
1431
|
+
g(Ce, {
|
|
1406
1432
|
t: "radial",
|
|
1407
1433
|
cx: "50%",
|
|
1408
1434
|
cy: "50%",
|
|
@@ -1413,22 +1439,22 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1413
1439
|
stops: [
|
|
1414
1440
|
[
|
|
1415
1441
|
"0%",
|
|
1416
|
-
E(
|
|
1442
|
+
E(n)("#FFFFFF", 0),
|
|
1417
1443
|
0
|
|
1418
1444
|
],
|
|
1419
1445
|
[
|
|
1420
1446
|
"80%",
|
|
1421
|
-
E(
|
|
1447
|
+
E(n)("#FFFFFF", N.value.style.chart.layout.nuts.selected.gradientIntensity),
|
|
1422
1448
|
1
|
|
1423
1449
|
],
|
|
1424
1450
|
[
|
|
1425
1451
|
"100%",
|
|
1426
|
-
E(
|
|
1452
|
+
E(n)("#FFFFFF", 0),
|
|
1427
1453
|
0
|
|
1428
1454
|
]
|
|
1429
1455
|
]
|
|
1430
1456
|
}, null, 8, ["id", "stops"]),
|
|
1431
|
-
|
|
1457
|
+
g(Ce, {
|
|
1432
1458
|
t: "radial",
|
|
1433
1459
|
cx: "50%",
|
|
1434
1460
|
cy: "50%",
|
|
@@ -1439,22 +1465,22 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1439
1465
|
stops: [
|
|
1440
1466
|
[
|
|
1441
1467
|
"0%",
|
|
1442
|
-
E(
|
|
1468
|
+
E(n)("#FFFFFF", 0),
|
|
1443
1469
|
0
|
|
1444
1470
|
],
|
|
1445
1471
|
[
|
|
1446
1472
|
"80%",
|
|
1447
|
-
E(
|
|
1473
|
+
E(n)("#FFFFFF", N.value.style.chart.layout.nuts.gradientIntensity),
|
|
1448
1474
|
1
|
|
1449
1475
|
],
|
|
1450
1476
|
[
|
|
1451
1477
|
"100%",
|
|
1452
|
-
E(
|
|
1478
|
+
E(n)("#FFFFFF", 0),
|
|
1453
1479
|
0
|
|
1454
1480
|
]
|
|
1455
1481
|
]
|
|
1456
1482
|
}, null, 8, ["id", "stops"]),
|
|
1457
|
-
|
|
1483
|
+
g(Ce, {
|
|
1458
1484
|
t: "radial",
|
|
1459
1485
|
cx: "50%",
|
|
1460
1486
|
cy: "50%",
|
|
@@ -1465,23 +1491,23 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1465
1491
|
stops: [
|
|
1466
1492
|
[
|
|
1467
1493
|
"0%",
|
|
1468
|
-
E(
|
|
1494
|
+
E(n)(N.value.style.chart.backgroundColor, 100),
|
|
1469
1495
|
1
|
|
1470
1496
|
],
|
|
1471
1497
|
[
|
|
1472
1498
|
"80%",
|
|
1473
|
-
E(
|
|
1499
|
+
E(n)(N.value.style.chart.backgroundColor, 60),
|
|
1474
1500
|
1
|
|
1475
1501
|
],
|
|
1476
1502
|
[
|
|
1477
1503
|
"100%",
|
|
1478
|
-
E(
|
|
1504
|
+
E(n)(N.value.style.chart.backgroundColor, 0),
|
|
1479
1505
|
1
|
|
1480
1506
|
]
|
|
1481
1507
|
]
|
|
1482
1508
|
}, null, 8, ["id", "stops"])
|
|
1483
1509
|
]),
|
|
1484
|
-
N.value.style.chart.layout.grandTotal.show ? (x(),
|
|
1510
|
+
N.value.style.chart.layout.grandTotal.show ? (x(), m("g", Ze, [h("text", {
|
|
1485
1511
|
x: L.value.seedX,
|
|
1486
1512
|
y: 32 + N.value.style.chart.layout.grandTotal.offsetY,
|
|
1487
1513
|
"font-size": N.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -1491,7 +1517,7 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1491
1517
|
onClick: t[2] ||= () => {
|
|
1492
1518
|
K(), $(), A.value = !1;
|
|
1493
1519
|
}
|
|
1494
|
-
}, T(N.value.style.chart.layout.grandTotal.text), 9,
|
|
1520
|
+
}, T(N.value.style.chart.layout.grandTotal.text), 9, Qe), h("text", {
|
|
1495
1521
|
x: L.value.seedX,
|
|
1496
1522
|
y: 38 + N.value.style.chart.layout.grandTotal.fontSize + N.value.style.chart.layout.grandTotal.offsetY,
|
|
1497
1523
|
"font-size": N.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -1501,13 +1527,13 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1501
1527
|
onClick: t[3] ||= () => {
|
|
1502
1528
|
K(), $(), A.value = !1;
|
|
1503
1529
|
}
|
|
1504
|
-
}, T(E(
|
|
1530
|
+
}, T(E(l)(N.value.style.chart.layout.grandTotal.formatter, R.value, E(s)({
|
|
1505
1531
|
p: N.value.style.chart.layout.grandTotal.prefix,
|
|
1506
1532
|
v: R.value,
|
|
1507
1533
|
s: N.value.style.chart.layout.grandTotal.suffix,
|
|
1508
1534
|
r: N.value.style.chart.layout.grandTotal.roundingValue
|
|
1509
|
-
}))), 9,
|
|
1510
|
-
(x(!0),
|
|
1535
|
+
}))), 9, $e)])) : p("", !0),
|
|
1536
|
+
(x(!0), m(u, null, C(V.value, (e) => (x(), m("g", null, [h("defs", null, [g(Ce, {
|
|
1511
1537
|
t: "linear",
|
|
1512
1538
|
id: `link_grad_${e.id}`,
|
|
1513
1539
|
stops: [[
|
|
@@ -1516,12 +1542,12 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1516
1542
|
1
|
|
1517
1543
|
], [
|
|
1518
1544
|
"100%",
|
|
1519
|
-
E(
|
|
1545
|
+
E(n)(e.color, N.value.style.chart.layout.links.opacity),
|
|
1520
1546
|
1
|
|
1521
1547
|
]]
|
|
1522
|
-
}, null, 8, ["id", "stops"])]),
|
|
1523
|
-
d:
|
|
1524
|
-
stroke: E(
|
|
1548
|
+
}, null, 8, ["id", "stops"])]), h("path", {
|
|
1549
|
+
d: Lr(e),
|
|
1550
|
+
stroke: E(n)(e.color, N.value.style.chart.layout.links.opacity),
|
|
1525
1551
|
fill: `url(#link_grad_${e.id})`,
|
|
1526
1552
|
"stroke-linecap": "round",
|
|
1527
1553
|
"stroke-linejoin": "round",
|
|
@@ -1529,17 +1555,17 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1529
1555
|
onClick: t[4] ||= () => {
|
|
1530
1556
|
K(), $(), A.value = !1;
|
|
1531
1557
|
}
|
|
1532
|
-
}, null, 12,
|
|
1533
|
-
(x(!0),
|
|
1558
|
+
}, null, 12, et)]))), 256)),
|
|
1559
|
+
(x(!0), m(u, null, C(B.value, (e) => (x(), m("circle", {
|
|
1534
1560
|
cx: e.x,
|
|
1535
1561
|
cy: e.y,
|
|
1536
1562
|
r: e.r,
|
|
1537
1563
|
fill: N.value.style.chart.layout.roots.underlayerColor,
|
|
1538
1564
|
stroke: "none",
|
|
1539
1565
|
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
|
|
1540
|
-
}, null, 12,
|
|
1541
|
-
(x(!0),
|
|
1542
|
-
"aria-label":
|
|
1566
|
+
}, null, 12, tt))), 256)),
|
|
1567
|
+
(x(!0), m(u, null, C(B.value, (e, t) => (x(), m("circle", {
|
|
1568
|
+
"aria-label": Zr(e),
|
|
1543
1569
|
cx: e.x,
|
|
1544
1570
|
cy: e.y,
|
|
1545
1571
|
r: e.r,
|
|
@@ -1547,23 +1573,23 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1547
1573
|
stroke: N.value.style.chart.layout.roots.stroke,
|
|
1548
1574
|
"stroke-width": N.value.style.chart.layout.roots.strokeWidth,
|
|
1549
1575
|
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1550
|
-
onClick: (t) =>
|
|
1551
|
-
}, null, 12,
|
|
1552
|
-
N.value.style.chart.layout.roots.labels.show ? (x(),
|
|
1576
|
+
onClick: (t) => Tr(e)
|
|
1577
|
+
}, null, 12, nt))), 256)),
|
|
1578
|
+
N.value.style.chart.layout.roots.labels.show ? (x(), m("g", rt, [(x(!0), m(u, null, C(B.value, (e, t) => (x(), m("text", {
|
|
1553
1579
|
x: e.x,
|
|
1554
1580
|
y: e.y + N.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
1555
1581
|
"text-anchor": "middle",
|
|
1556
1582
|
"font-size": N.value.style.chart.layout.roots.labels.fontSize,
|
|
1557
|
-
fill: N.value.style.chart.layout.roots.labels.adaptColorToBackground ? E(
|
|
1583
|
+
fill: N.value.style.chart.layout.roots.labels.adaptColorToBackground ? E(ce)(e.color) : N.value.style.chart.layout.roots.labels.color,
|
|
1558
1584
|
"font-weight": "bold",
|
|
1559
1585
|
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1560
|
-
onClick: (t) =>
|
|
1561
|
-
}, T(E(
|
|
1586
|
+
onClick: (t) => Tr(e)
|
|
1587
|
+
}, T(E(l)(N.value.style.chart.layout.roots.labels.formatter, e.total, E(s)({
|
|
1562
1588
|
p: N.value.style.chart.layout.roots.labels.prefix,
|
|
1563
1589
|
v: e.total,
|
|
1564
1590
|
s: N.value.style.chart.layout.roots.labels.suffix,
|
|
1565
1591
|
r: N.value.style.chart.layout.roots.labels.roundingValue
|
|
1566
|
-
}), { datapoint: e })), 13,
|
|
1592
|
+
}), { datapoint: e })), 13, it))), 256)), (x(!0), m(u, null, C(B.value, (e) => (x(), m("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (x(), m("g", at, [h("text", {
|
|
1567
1593
|
x: e.x,
|
|
1568
1594
|
y: e.y + e.r + 24,
|
|
1569
1595
|
"text-anchor": "middle",
|
|
@@ -1573,8 +1599,8 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1573
1599
|
onClick: t[5] ||= () => {
|
|
1574
1600
|
K(), $(), A.value = !1;
|
|
1575
1601
|
}
|
|
1576
|
-
}, T(e.name), 9,
|
|
1577
|
-
(x(!0),
|
|
1602
|
+
}, T(e.name), 9, ot)])) : p("", !0)]))), 256))])) : p("", !0),
|
|
1603
|
+
(x(!0), m(u, null, C(V.value, (e) => (x(), m("rect", {
|
|
1578
1604
|
x: e.x1,
|
|
1579
1605
|
y: e.y1,
|
|
1580
1606
|
height: I.value.branchSize,
|
|
@@ -1583,10 +1609,10 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1583
1609
|
rx: N.value.style.chart.layout.branches.borderRadius,
|
|
1584
1610
|
stroke: "none",
|
|
1585
1611
|
style: b(`opacity:${q(e) ? 1 : .05}`),
|
|
1586
|
-
onClick: (t) =>
|
|
1587
|
-
}, null, 12,
|
|
1588
|
-
(x(!0),
|
|
1589
|
-
"aria-label":
|
|
1612
|
+
onClick: (t) => wr(e)
|
|
1613
|
+
}, null, 12, st))), 256)),
|
|
1614
|
+
(x(!0), m(u, null, C(V.value, (e, t) => (x(), m("rect", {
|
|
1615
|
+
"aria-label": Qr(e),
|
|
1590
1616
|
x: e.x1,
|
|
1591
1617
|
y: e.y1,
|
|
1592
1618
|
height: I.value.branchSize,
|
|
@@ -1596,43 +1622,43 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1596
1622
|
stroke: N.value.style.chart.layout.branches.stroke,
|
|
1597
1623
|
"stroke-width": N.value.style.chart.layout.branches.strokeWidth,
|
|
1598
1624
|
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1599
|
-
onClick: (t) =>
|
|
1600
|
-
}, null, 12,
|
|
1601
|
-
N.value.style.chart.layout.branches.labels.dataLabels.show ? (x(),
|
|
1625
|
+
onClick: (t) => wr(e)
|
|
1626
|
+
}, null, 12, ct))), 256)),
|
|
1627
|
+
N.value.style.chart.layout.branches.labels.dataLabels.show ? (x(), m("g", lt, [(x(!0), m(u, null, C(V.value, (e) => (x(), m("g", null, [e.proportionToRoot * 100 > N.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (x(), m("text", {
|
|
1602
1628
|
key: 0,
|
|
1603
1629
|
x: e.x1 + 6,
|
|
1604
1630
|
y: e.y1 + I.value.branchSize / 1.5,
|
|
1605
1631
|
"text-anchor": "start",
|
|
1606
|
-
fill: E(
|
|
1632
|
+
fill: E(ce)(e.color),
|
|
1607
1633
|
"font-size": N.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1608
1634
|
"font-weight": "bold",
|
|
1609
1635
|
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1610
|
-
onClick: (t) =>
|
|
1611
|
-
}, T(E(
|
|
1636
|
+
onClick: (t) => wr(e)
|
|
1637
|
+
}, T(E(l)(N.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, E(s)({
|
|
1612
1638
|
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1613
1639
|
v: e.value,
|
|
1614
1640
|
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1615
1641
|
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1616
|
-
}), { datapoint: e })), 13,
|
|
1617
|
-
(x(!0),
|
|
1642
|
+
}), { datapoint: e })), 13, ut)) : p("", !0)]))), 256))])) : p("", !0),
|
|
1643
|
+
(x(!0), m(u, null, C(V.value, (e, t) => (x(), m("g", null, [(x(!0), m(u, null, C(E(ie)({
|
|
1618
1644
|
series: e.breakdown,
|
|
1619
1645
|
base: 1
|
|
1620
|
-
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, I.value.branchSize / 3, I.value.branchSize / 3), (t, n) => (x(),
|
|
1646
|
+
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, I.value.branchSize / 3, I.value.branchSize / 3), (t, n) => (x(), m("path", {
|
|
1621
1647
|
d: t.path,
|
|
1622
1648
|
stroke: t.color,
|
|
1623
1649
|
"stroke-width": 10,
|
|
1624
1650
|
fill: "none",
|
|
1625
1651
|
style: b(`opacity:${q(e) ? 1 : .1}`)
|
|
1626
|
-
}, null, 12,
|
|
1652
|
+
}, null, 12, dt))), 256)), h("circle", {
|
|
1627
1653
|
"aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
|
|
1628
1654
|
fill: N.value.style.chart.layout.nuts.useGradient ? `url(#nut_${k.value})` : "transparent",
|
|
1629
1655
|
cx: e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1630
1656
|
cy: e.y1 + I.value.branchSize / 2,
|
|
1631
1657
|
r: I.value.branchSize / 2 + 2,
|
|
1632
|
-
onClick: (t) =>
|
|
1658
|
+
onClick: (t) => Cr(e),
|
|
1633
1659
|
style: b(`cursor:${P.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
|
|
1634
|
-
}, null, 12,
|
|
1635
|
-
N.value.style.chart.layout.branches.labels.show && !W.value ? (x(),
|
|
1660
|
+
}, null, 12, ft)]))), 256)),
|
|
1661
|
+
N.value.style.chart.layout.branches.labels.show && !W.value ? (x(), m("g", pt, [(x(!0), m(u, null, C(V.value, (e) => (x(), m("text", {
|
|
1636
1662
|
x: e.x2 + I.value.branchSize + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1637
1663
|
y: e.y1 + I.value.branchSize / 2 + 5,
|
|
1638
1664
|
"font-size": N.value.style.chart.layout.branches.labels.fontSize,
|
|
@@ -1640,16 +1666,16 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1640
1666
|
fill: N.value.style.chart.layout.branches.labels.color,
|
|
1641
1667
|
"text-anchor": "start",
|
|
1642
1668
|
style: b(`opacity:${q(e) ? 1 : .1}`)
|
|
1643
|
-
}, T(e.name), 13,
|
|
1644
|
-
|
|
1669
|
+
}, T(e.name), 13, mt))), 256))])) : p("", !0),
|
|
1670
|
+
h("line", {
|
|
1645
1671
|
x1: 256 + I.value.padding.left,
|
|
1646
1672
|
x2: 256 + I.value.padding.left,
|
|
1647
1673
|
y1: L.value.top,
|
|
1648
1674
|
y2: L.value.bottom,
|
|
1649
1675
|
stroke: N.value.style.chart.layout.verticalSeparator.stroke,
|
|
1650
1676
|
"stroke-width": N.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
1651
|
-
}, null, 8,
|
|
1652
|
-
!H.value && !W.value ? (x(),
|
|
1677
|
+
}, null, 8, ht),
|
|
1678
|
+
!H.value && !W.value ? (x(), m("foreignObject", {
|
|
1653
1679
|
key: 6,
|
|
1654
1680
|
x: 0,
|
|
1655
1681
|
y: L.value.bottom,
|
|
@@ -1660,58 +1686,58 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1660
1686
|
onClick: t[6] ||= () => {
|
|
1661
1687
|
K(), $(), A.value = !1;
|
|
1662
1688
|
}
|
|
1663
|
-
}, [
|
|
1689
|
+
}, [h("div", _t, [h("div", vt, [(x(!0), m(u, null, C(B.value, (e) => (x(), m("div", { style: b(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${N.value.style.chart.layout.legend.fontSize}px;`) }, [(x(), m("svg", yt, [h("circle", {
|
|
1664
1690
|
cx: "10",
|
|
1665
1691
|
cy: "10",
|
|
1666
1692
|
r: "10",
|
|
1667
1693
|
fill: e.color,
|
|
1668
1694
|
stroke: "none"
|
|
1669
|
-
}, null, 8,
|
|
1670
|
-
|
|
1671
|
-
|
|
1695
|
+
}, null, 8, bt)])), E(Xn) ? p("", !0) : (x(), m(u, { key: 0 }, [
|
|
1696
|
+
h("span", null, T(e.name) + ":", 1),
|
|
1697
|
+
h("b", null, T(E(l)(N.value.style.chart.layout.roots.labels.formatter, e.total, E(s)({
|
|
1672
1698
|
p: N.value.style.chart.layout.legend.prefix,
|
|
1673
1699
|
v: e.total,
|
|
1674
1700
|
s: N.value.style.chart.layout.legend.suffix,
|
|
1675
1701
|
r: N.value.style.chart.layout.legend.roundingValue
|
|
1676
1702
|
}), { datapoint: e })), 1),
|
|
1677
|
-
|
|
1703
|
+
Ae(" (" + T(E(s)({
|
|
1678
1704
|
v: e.total / R.value * 100,
|
|
1679
1705
|
s: "%",
|
|
1680
1706
|
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
1681
1707
|
})) + ") ", 1)
|
|
1682
|
-
], 64))], 4))), 256))])])], 8,
|
|
1683
|
-
H.value && U.value ? (x(),
|
|
1684
|
-
(x(),
|
|
1708
|
+
], 64))], 4))), 256))])])], 8, gt)) : p("", !0),
|
|
1709
|
+
H.value && U.value ? (x(), m("g", xt, [
|
|
1710
|
+
(x(), m("foreignObject", {
|
|
1685
1711
|
x: 0,
|
|
1686
|
-
y:
|
|
1712
|
+
y: Er(),
|
|
1687
1713
|
height: I.value.height - L.value.bottom,
|
|
1688
1714
|
width: I.value.width,
|
|
1689
1715
|
style: { overflow: "visible" },
|
|
1690
1716
|
onClick: t[7] ||= () => {
|
|
1691
1717
|
K(), $(), A.value = !1;
|
|
1692
1718
|
}
|
|
1693
|
-
}, [
|
|
1719
|
+
}, [h("div", Ct, [h("b", null, T(H.value.name), 1), h("div", wt, [(x(!0), m(u, null, C(H.value.breakdown, (e, t) => (x(), m("div", { style: b(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${N.value.style.chart.layout.legend.fontSize}px;`) }, [(x(), m("svg", Tt, [h("circle", {
|
|
1694
1720
|
cx: "10",
|
|
1695
1721
|
cy: "10",
|
|
1696
1722
|
r: "10",
|
|
1697
1723
|
fill: e.color,
|
|
1698
1724
|
stroke: "none"
|
|
1699
|
-
}, null, 8,
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
])], 4))), 256))])])], 8,
|
|
1704
|
-
|
|
1725
|
+
}, null, 8, Et)])), h("span", null, [
|
|
1726
|
+
Ae(T(e.name) + ": ", 1),
|
|
1727
|
+
h("b", null, T(N.value.style.chart.layout.legend.prefix) + " " + T(e.value.toFixed(N.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + T(N.value.style.chart.layout.legend.suffix), 1),
|
|
1728
|
+
Ae(" (" + T((e.proportionToBranch * 100).toFixed(N.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1729
|
+
])], 4))), 256))])])], 8, St)),
|
|
1730
|
+
h("circle", {
|
|
1705
1731
|
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1706
1732
|
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1707
1733
|
r: 256,
|
|
1708
1734
|
fill: `url(#nut_underlayer_${k.value})`,
|
|
1709
1735
|
onClick: J,
|
|
1710
1736
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1711
|
-
}, null, 10,
|
|
1712
|
-
(x(!0),
|
|
1737
|
+
}, null, 10, Dt),
|
|
1738
|
+
(x(!0), m(u, null, C(U.value, (e) => (x(), m("g", null, [Dr(e) ? (x(), m("path", {
|
|
1713
1739
|
key: 0,
|
|
1714
|
-
d: E(
|
|
1740
|
+
d: E(ne)(e, {
|
|
1715
1741
|
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1716
1742
|
y: H.value.y1 + I.value.branchSize / 2
|
|
1717
1743
|
}, 16, 16, !1, !1, 64),
|
|
@@ -1721,40 +1747,40 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1721
1747
|
"stroke-linejoin": "round",
|
|
1722
1748
|
fill: "none",
|
|
1723
1749
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1724
|
-
}, null, 10,
|
|
1725
|
-
|
|
1750
|
+
}, null, 10, Ot)) : p("", !0)]))), 256)),
|
|
1751
|
+
h("circle", {
|
|
1726
1752
|
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1727
1753
|
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1728
1754
|
r: 118,
|
|
1729
1755
|
fill: N.value.style.chart.backgroundColor,
|
|
1730
1756
|
onClick: J,
|
|
1731
1757
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1732
|
-
}, null, 10,
|
|
1733
|
-
(x(!0),
|
|
1758
|
+
}, null, 10, kt),
|
|
1759
|
+
(x(!0), m(u, null, C(U.value, (e) => (x(), m("path", {
|
|
1734
1760
|
d: e.path,
|
|
1735
1761
|
stroke: e.color,
|
|
1736
1762
|
"stroke-width": 64,
|
|
1737
1763
|
fill: "none",
|
|
1738
1764
|
onClick: J,
|
|
1739
1765
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1740
|
-
}, null, 10,
|
|
1741
|
-
|
|
1766
|
+
}, null, 10, At))), 256)),
|
|
1767
|
+
h("circle", {
|
|
1742
1768
|
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1743
1769
|
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1744
1770
|
r: 110,
|
|
1745
1771
|
fill: `url(#nutpick_${k.value})`,
|
|
1746
1772
|
onClick: J,
|
|
1747
1773
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1748
|
-
}, null, 10,
|
|
1749
|
-
|
|
1774
|
+
}, null, 10, jt),
|
|
1775
|
+
h("circle", {
|
|
1750
1776
|
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1751
1777
|
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1752
1778
|
r: 64,
|
|
1753
1779
|
fill: N.value.style.chart.backgroundColor,
|
|
1754
1780
|
onClick: J,
|
|
1755
1781
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1756
|
-
}, null, 10,
|
|
1757
|
-
|
|
1782
|
+
}, null, 10, Mt),
|
|
1783
|
+
h("text", {
|
|
1758
1784
|
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1759
1785
|
y: H.value.y1 + 8,
|
|
1760
1786
|
fill: N.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
@@ -1763,8 +1789,8 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1763
1789
|
"text-anchor": "middle",
|
|
1764
1790
|
onClick: J,
|
|
1765
1791
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1766
|
-
}, T(N.value.translations.total), 11,
|
|
1767
|
-
|
|
1792
|
+
}, T(N.value.translations.total), 11, Nt),
|
|
1793
|
+
h("text", {
|
|
1768
1794
|
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1769
1795
|
y: H.value.y1 + 36,
|
|
1770
1796
|
fill: N.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
@@ -1773,46 +1799,46 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1773
1799
|
"text-anchor": "middle",
|
|
1774
1800
|
onClick: J,
|
|
1775
1801
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1776
|
-
}, T(E(
|
|
1802
|
+
}, T(E(l)(N.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, E(s)({
|
|
1777
1803
|
p: N.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1778
1804
|
v: H.value.value,
|
|
1779
1805
|
s: N.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1780
1806
|
r: N.value.style.chart.layout.nuts.selected.roundingValue
|
|
1781
|
-
}), { datapoint: H.value })), 11,
|
|
1782
|
-
(x(!0),
|
|
1807
|
+
}), { datapoint: H.value })), 11, Pt),
|
|
1808
|
+
(x(!0), m(u, null, C(U.value, (e, t) => (x(), m("g", null, [Dr(e) ? (x(), m("text", {
|
|
1783
1809
|
key: 0,
|
|
1784
|
-
x: E(
|
|
1785
|
-
"text-anchor": E(
|
|
1786
|
-
y: E(
|
|
1810
|
+
x: E(c)(e).x,
|
|
1811
|
+
"text-anchor": E(c)(e).anchor,
|
|
1812
|
+
y: E(ae)(e) - N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1787
1813
|
fill: e.color,
|
|
1788
1814
|
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1789
1815
|
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1790
1816
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1791
|
-
}, " ⬤ ", 14,
|
|
1817
|
+
}, " ⬤ ", 14, Ft)) : p("", !0), Dr(e) ? (x(), m("text", {
|
|
1792
1818
|
key: 1,
|
|
1793
|
-
x: E(
|
|
1794
|
-
"text-anchor": E(
|
|
1795
|
-
y: E(
|
|
1819
|
+
x: E(c)(e, !0).x,
|
|
1820
|
+
"text-anchor": E(c)(e, !0).anchor,
|
|
1821
|
+
y: E(ae)(e),
|
|
1796
1822
|
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1797
1823
|
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1798
1824
|
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1799
1825
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1800
|
-
}, T(H.value.breakdown[t].name), 15,
|
|
1801
|
-
(x(!0),
|
|
1802
|
-
|
|
1826
|
+
}, T(H.value.breakdown[t].name), 15, It)) : p("", !0)]))), 256)),
|
|
1827
|
+
(x(!0), m(u, null, C(U.value, (e, t) => (x(), m("g", null, [
|
|
1828
|
+
Dr(e) ? (x(), m("text", {
|
|
1803
1829
|
key: 0,
|
|
1804
|
-
x: E(
|
|
1805
|
-
"text-anchor": E(
|
|
1806
|
-
y: E(
|
|
1830
|
+
x: E(c)(e, !0).x,
|
|
1831
|
+
"text-anchor": E(c)(e).anchor,
|
|
1832
|
+
y: E(ae)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1807
1833
|
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1808
1834
|
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1809
1835
|
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1810
1836
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1811
|
-
}, T(E(
|
|
1837
|
+
}, T(E(s)({
|
|
1812
1838
|
v: H.value.breakdown[t].value / H.value.value * 100,
|
|
1813
1839
|
s: "%",
|
|
1814
1840
|
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1815
|
-
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].branchName) + " " + T(E(
|
|
1841
|
+
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].branchName) + " " + T(E(l)(N.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[t].value, E(s)({
|
|
1816
1842
|
p: N.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1817
1843
|
v: H.value.breakdown[t].value,
|
|
1818
1844
|
s: N.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
@@ -1820,39 +1846,39 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1820
1846
|
}), {
|
|
1821
1847
|
datapoint: U.value,
|
|
1822
1848
|
seriesIndex: t
|
|
1823
|
-
})), 15,
|
|
1824
|
-
|
|
1849
|
+
})), 15, Lt)) : p("", !0),
|
|
1850
|
+
Dr(e) ? (x(), m("text", {
|
|
1825
1851
|
key: 1,
|
|
1826
|
-
x: E(
|
|
1827
|
-
"text-anchor": E(
|
|
1828
|
-
y: E(
|
|
1852
|
+
x: E(c)(e, !0).x,
|
|
1853
|
+
"text-anchor": E(c)(e).anchor,
|
|
1854
|
+
y: E(ae)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1829
1855
|
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1830
1856
|
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1831
1857
|
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1832
1858
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1833
|
-
}, T(E(
|
|
1859
|
+
}, T(E(s)({
|
|
1834
1860
|
v: H.value.breakdown[t].proportionToRoot * 100,
|
|
1835
1861
|
s: "%",
|
|
1836
1862
|
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1837
|
-
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].rootName), 15,
|
|
1838
|
-
|
|
1863
|
+
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].rootName), 15, Rt)) : p("", !0),
|
|
1864
|
+
Dr(e) ? (x(), m("text", {
|
|
1839
1865
|
key: 2,
|
|
1840
|
-
x: E(
|
|
1841
|
-
"text-anchor": E(
|
|
1842
|
-
y: E(
|
|
1866
|
+
x: E(c)(e, !0).x,
|
|
1867
|
+
"text-anchor": E(c)(e).anchor,
|
|
1868
|
+
y: E(ae)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1843
1869
|
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1844
1870
|
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1845
1871
|
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1846
1872
|
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1847
|
-
}, T(E(
|
|
1873
|
+
}, T(E(s)({
|
|
1848
1874
|
v: H.value.breakdown[t].proportionToTree * 100,
|
|
1849
1875
|
s: "%",
|
|
1850
1876
|
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1851
|
-
})) + " " + T(N.value.translations.proportionToTree), 15,
|
|
1877
|
+
})) + " " + T(N.value.translations.proportionToTree), 15, zt)) : p("", !0)
|
|
1852
1878
|
]))), 256))
|
|
1853
|
-
])) :
|
|
1854
|
-
(x(!0),
|
|
1855
|
-
W.value && W.value.id === e.id && !H.value ? (x(),
|
|
1879
|
+
])) : p("", !0),
|
|
1880
|
+
(x(!0), m(u, null, C(V.value, (e) => (x(), m("g", null, [
|
|
1881
|
+
W.value && W.value.id === e.id && !H.value ? (x(), m("text", {
|
|
1856
1882
|
key: 0,
|
|
1857
1883
|
x: e.x1 + 6,
|
|
1858
1884
|
y: e.y1 + I.value.branchSize + 24,
|
|
@@ -1863,13 +1889,13 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1863
1889
|
onClick: t[8] ||= () => {
|
|
1864
1890
|
K(), $(), A.value = !1;
|
|
1865
1891
|
}
|
|
1866
|
-
}, T(e.name) + ": " + T(E(
|
|
1892
|
+
}, T(e.name) + ": " + T(E(l)(N.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, E(s)({
|
|
1867
1893
|
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1868
1894
|
v: e.value,
|
|
1869
1895
|
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1870
1896
|
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1871
|
-
}), { datapoint: e })), 9,
|
|
1872
|
-
W.value && W.value.id === e.id && !H.value ? (x(),
|
|
1897
|
+
}), { datapoint: e })), 9, Bt)) : p("", !0),
|
|
1898
|
+
W.value && W.value.id === e.id && !H.value ? (x(), m("text", {
|
|
1873
1899
|
key: 1,
|
|
1874
1900
|
x: e.x1 + 6,
|
|
1875
1901
|
y: e.y1 + I.value.branchSize + 48,
|
|
@@ -1879,12 +1905,12 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1879
1905
|
onClick: t[9] ||= () => {
|
|
1880
1906
|
K(), $(), A.value = !1;
|
|
1881
1907
|
}
|
|
1882
|
-
}, T(E(
|
|
1908
|
+
}, T(E(s)({
|
|
1883
1909
|
v: e.proportionToRoot * 100,
|
|
1884
1910
|
s: "%",
|
|
1885
1911
|
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1886
|
-
})) + " " + T(N.value.translations.of) + " " + T(e.rootName), 9,
|
|
1887
|
-
W.value && W.value.id === e.id && !H.value ? (x(),
|
|
1912
|
+
})) + " " + T(N.value.translations.of) + " " + T(e.rootName), 9, Vt)) : p("", !0),
|
|
1913
|
+
W.value && W.value.id === e.id && !H.value ? (x(), m("text", {
|
|
1888
1914
|
key: 2,
|
|
1889
1915
|
x: e.x1 + 6,
|
|
1890
1916
|
y: e.y1 + I.value.branchSize + 72,
|
|
@@ -1894,47 +1920,47 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1894
1920
|
onClick: t[10] ||= () => {
|
|
1895
1921
|
K(), $(), A.value = !1;
|
|
1896
1922
|
}
|
|
1897
|
-
}, T(E(
|
|
1923
|
+
}, T(E(s)({
|
|
1898
1924
|
v: e.value / R.value * 100,
|
|
1899
1925
|
s: "%",
|
|
1900
1926
|
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1901
|
-
})) + " " + T(N.value.translations.proportionToTree), 9,
|
|
1927
|
+
})) + " " + T(N.value.translations.proportionToTree), 9, Ht)) : p("", !0)
|
|
1902
1928
|
]))), 256)),
|
|
1903
1929
|
w(e.$slots, "svg", { svg: {
|
|
1904
1930
|
...I.value,
|
|
1905
|
-
isPrintingImg: E(
|
|
1906
|
-
isPrintingSvg:
|
|
1931
|
+
isPrintingImg: E(rr) || E(ir) || Kn.value,
|
|
1932
|
+
isPrintingSvg: qn.value
|
|
1907
1933
|
} }, void 0, !0)
|
|
1908
|
-
], 46,
|
|
1909
|
-
e.$slots.watermark ? (x(),
|
|
1934
|
+
], 46, Ke)) : p("", !0)]),
|
|
1935
|
+
e.$slots.watermark ? (x(), m("div", Ut, [w(e.$slots, "watermark", y(_({ isPrinting: E(rr) || E(ir) || Kn.value || qn.value })), void 0, !0)])) : p("", !0),
|
|
1910
1936
|
w(e.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
1911
|
-
e.$slots.source ? (x(),
|
|
1912
|
-
|
|
1937
|
+
e.$slots.source ? (x(), m("div", Wt, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1938
|
+
Vn.value && N.value.userOptions.buttons.table ? (x(), f(Fe(Rr.value.component), Me({ key: 6 }, Rr.value.props, {
|
|
1913
1939
|
ref_key: "tableUnit",
|
|
1914
|
-
ref:
|
|
1915
|
-
onClose:
|
|
1916
|
-
}),
|
|
1917
|
-
content: D(() => [
|
|
1940
|
+
ref: Wn,
|
|
1941
|
+
onClose: Br
|
|
1942
|
+
}), ke({
|
|
1943
|
+
content: D(() => [h("div", {
|
|
1918
1944
|
ref_key: "tableContainer",
|
|
1919
|
-
ref:
|
|
1945
|
+
ref: lr,
|
|
1920
1946
|
class: "vue-ui-chestnut-table",
|
|
1921
1947
|
style: b(`${N.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1922
|
-
}, [
|
|
1948
|
+
}, [h("div", { style: b(`${N.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [N.value.table.useDialog ? p("", !0) : (x(), m("div", {
|
|
1923
1949
|
key: 0,
|
|
1924
1950
|
role: "button",
|
|
1925
1951
|
tabindex: "0",
|
|
1926
1952
|
style: b(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${P.value ? "pointer" : "default"}; background:${N.value.table.th.backgroundColor};`),
|
|
1927
|
-
onClick:
|
|
1928
|
-
onKeypress:
|
|
1929
|
-
}, [
|
|
1953
|
+
onClick: Br,
|
|
1954
|
+
onKeypress: ze(Br, ["enter"])
|
|
1955
|
+
}, [g(E(Mn), {
|
|
1930
1956
|
name: "close",
|
|
1931
1957
|
stroke: N.value.table.th.color,
|
|
1932
1958
|
"stroke-width": 2
|
|
1933
|
-
}, null, 8, ["stroke"])], 36)),
|
|
1959
|
+
}, null, 8, ["stroke"])], 36)), h("div", {
|
|
1934
1960
|
style: { width: "100%" },
|
|
1935
|
-
class: v({ "vue-ui-responsive": E(
|
|
1936
|
-
}, [
|
|
1937
|
-
N.value.table.useDialog ?
|
|
1961
|
+
class: v({ "vue-ui-responsive": E(zr) })
|
|
1962
|
+
}, [h("table", Gt, [
|
|
1963
|
+
N.value.table.useDialog ? p("", !0) : (x(), m("caption", {
|
|
1938
1964
|
key: 0,
|
|
1939
1965
|
style: b({
|
|
1940
1966
|
backgroundColor: N.value.table.th.backgroundColor,
|
|
@@ -1942,12 +1968,12 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1942
1968
|
outline: N.value.table.th.outline
|
|
1943
1969
|
}),
|
|
1944
1970
|
class: "vue-ui-data-table__caption"
|
|
1945
|
-
}, [
|
|
1946
|
-
|
|
1971
|
+
}, [Ae(T(N.value.style.chart.layout.title.text) + " ", 1), N.value.style.chart.layout.title.subtitle.text ? (x(), m("span", Kt, T(N.value.style.chart.layout.title.subtitle.text), 1)) : p("", !0)], 4)),
|
|
1972
|
+
h("thead", null, [h("tr", {
|
|
1947
1973
|
role: "row",
|
|
1948
1974
|
style: b(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
|
|
1949
|
-
}, [(x(!0),
|
|
1950
|
-
|
|
1975
|
+
}, [(x(!0), m(u, null, C(Y.value.head, (e) => (x(), m("th", { style: b(`outline:${N.value.table.th.outline}`) }, T(e), 5))), 256))], 4)]),
|
|
1976
|
+
h("tbody", null, [(x(!0), m(u, null, C(Y.value.body, (e, t) => (x(), m("tr", {
|
|
1951
1977
|
class: v({
|
|
1952
1978
|
"vue-ui-data-table__tbody__row": !0,
|
|
1953
1979
|
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
@@ -1955,88 +1981,88 @@ var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve
|
|
|
1955
1981
|
}),
|
|
1956
1982
|
style: b(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
|
|
1957
1983
|
}, [
|
|
1958
|
-
|
|
1984
|
+
h("td", {
|
|
1959
1985
|
class: "vue-ui-data-table__tbody__td",
|
|
1960
1986
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1961
1987
|
"data-cell": Y.value.head[0]
|
|
1962
|
-
}, [
|
|
1963
|
-
|
|
1988
|
+
}, [h("div", Jt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), m("span", Yt)) : (x(), m("span", Xt, T(e.rootName), 1))])], 12, qt),
|
|
1989
|
+
h("td", {
|
|
1964
1990
|
class: "vue-ui-data-table__tbody__td",
|
|
1965
1991
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1966
1992
|
"data-cell": Y.value.head[1]
|
|
1967
|
-
}, [
|
|
1968
|
-
|
|
1993
|
+
}, [h("div", Qt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), m("span", $t)) : (x(), m("span", en, T(e.rootValue.toFixed(N.value.table.td.roundingValue)), 1))])], 12, Zt),
|
|
1994
|
+
h("td", {
|
|
1969
1995
|
class: "vue-ui-data-table__tbody__td",
|
|
1970
1996
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1971
1997
|
"data-cell": Y.value.head[2]
|
|
1972
|
-
}, [
|
|
1973
|
-
|
|
1998
|
+
}, [h("div", nn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), m("span", rn)) : (x(), m("span", an, T((e.rootToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, tn),
|
|
1999
|
+
h("td", {
|
|
1974
2000
|
class: "vue-ui-data-table__tbody__td",
|
|
1975
2001
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1976
2002
|
"data-cell": Y.value.head[3]
|
|
1977
|
-
}, [
|
|
1978
|
-
|
|
2003
|
+
}, [h("div", sn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), m("span", cn)) : (x(), m("span", ln, T(e.branchName), 1))])], 12, on),
|
|
2004
|
+
h("td", {
|
|
1979
2005
|
class: "vue-ui-data-table__tbody__td",
|
|
1980
2006
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1981
2007
|
"data-cell": Y.value.head[4]
|
|
1982
|
-
}, [
|
|
1983
|
-
|
|
2008
|
+
}, [h("div", dn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), m("span", fn)) : (x(), m("span", pn, T(e.branchValue.toFixed(N.value.table.td.roundingValue)), 1))])], 12, un),
|
|
2009
|
+
h("td", {
|
|
1984
2010
|
class: "vue-ui-data-table__tbody__td",
|
|
1985
2011
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1986
2012
|
"data-cell": Y.value.head[5]
|
|
1987
|
-
}, [
|
|
1988
|
-
|
|
2013
|
+
}, [h("div", hn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), m("span", gn)) : (x(), m("span", _n, T((e.branchToRoot * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, mn),
|
|
2014
|
+
h("td", {
|
|
1989
2015
|
class: "vue-ui-data-table__tbody__td",
|
|
1990
2016
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1991
2017
|
"data-cell": Y.value.head[6]
|
|
1992
|
-
}, [
|
|
1993
|
-
|
|
2018
|
+
}, [h("div", yn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), m("span", bn)) : (x(), m("span", xn, T((e.branchToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, vn),
|
|
2019
|
+
h("td", {
|
|
1994
2020
|
class: "vue-ui-data-table__tbody__td",
|
|
1995
2021
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
1996
2022
|
"data-cell": Y.value.head[7]
|
|
1997
|
-
}, [
|
|
1998
|
-
|
|
2023
|
+
}, [h("div", Cn, T(e.nutName), 1)], 12, Sn),
|
|
2024
|
+
h("td", {
|
|
1999
2025
|
class: "vue-ui-data-table__tbody__td",
|
|
2000
2026
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
2001
2027
|
"data-cell": Y.value.head[8]
|
|
2002
|
-
}, [
|
|
2003
|
-
|
|
2028
|
+
}, [h("div", Tn, T(e.nutValue.toFixed(N.value.table.td.roundingValue)), 1)], 12, wn),
|
|
2029
|
+
h("td", {
|
|
2004
2030
|
class: "vue-ui-data-table__tbody__td",
|
|
2005
2031
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
2006
2032
|
"data-cell": Y.value.head[9]
|
|
2007
|
-
}, [
|
|
2008
|
-
|
|
2033
|
+
}, [h("div", Dn, T((e.nutToBranch * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, En),
|
|
2034
|
+
h("td", {
|
|
2009
2035
|
class: "vue-ui-data-table__tbody__td",
|
|
2010
2036
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
2011
2037
|
"data-cell": Y.value.head[10]
|
|
2012
|
-
}, [
|
|
2013
|
-
|
|
2038
|
+
}, [h("div", kn, T((e.nutToRoot * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, On),
|
|
2039
|
+
h("td", {
|
|
2014
2040
|
class: "vue-ui-data-table__tbody__td",
|
|
2015
2041
|
style: b(`outline:${N.value.table.td.outline}`),
|
|
2016
2042
|
"data-cell": Y.value.head[11]
|
|
2017
|
-
}, [
|
|
2043
|
+
}, [h("div", jn, T((e.nutToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, An)
|
|
2018
2044
|
], 6))), 256))])
|
|
2019
2045
|
])], 2)], 4)], 4)]),
|
|
2020
2046
|
_: 2
|
|
2021
2047
|
}, [N.value.table.useDialog ? {
|
|
2022
2048
|
name: "title",
|
|
2023
|
-
fn: D(() => [
|
|
2049
|
+
fn: D(() => [Ae(T(Rr.value.title), 1)]),
|
|
2024
2050
|
key: "0"
|
|
2025
2051
|
} : void 0, N.value.table.useDialog ? {
|
|
2026
2052
|
name: "actions",
|
|
2027
|
-
fn: D(() => [
|
|
2053
|
+
fn: D(() => [h("button", {
|
|
2028
2054
|
tabindex: "0",
|
|
2029
2055
|
class: "vue-ui-user-options-button",
|
|
2030
|
-
onClick: t[11] ||= (e) =>
|
|
2031
|
-
}, [
|
|
2056
|
+
onClick: t[11] ||= (e) => Ar(N.value.userOptions.callbacks.csv)
|
|
2057
|
+
}, [g(E(Mn), {
|
|
2032
2058
|
name: "fileCsv",
|
|
2033
|
-
stroke:
|
|
2059
|
+
stroke: Rr.value.props.color
|
|
2034
2060
|
}, null, 8, ["stroke"])])]),
|
|
2035
2061
|
key: "1"
|
|
2036
|
-
} : void 0]), 1040)) :
|
|
2037
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
2038
|
-
], 46,
|
|
2062
|
+
} : void 0]), 1040)) : p("", !0),
|
|
2063
|
+
w(e.$slots, "skeleton", {}, () => [E(Xn) ? (x(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
2064
|
+
], 46, Ve));
|
|
2039
2065
|
}
|
|
2040
|
-
}, [["__scopeId", "data-v-
|
|
2066
|
+
}, [["__scopeId", "data-v-d912346e"]]);
|
|
2041
2067
|
//#endregion
|
|
2042
|
-
export {
|
|
2068
|
+
export { Be as n, Mn as t };
|