vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { t as pe } from "./
|
|
4
|
-
import { t as me } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as _e } from "./
|
|
7
|
-
import { t as ve } from "./
|
|
8
|
-
import { t as ye } from "./
|
|
9
|
-
import { t as be } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as Te } from "./
|
|
14
|
-
import { t as Ee } from "./
|
|
15
|
-
import { t as De } from "./
|
|
16
|
-
import { t as Oe } from "./
|
|
17
|
-
import { t as ke } from "./
|
|
18
|
-
import { t as Ae } from "./
|
|
19
|
-
import { t as je } from "./
|
|
20
|
-
import { t as Me } from "./
|
|
21
|
-
import {
|
|
2
|
+
import { $ as t, Bt as n, D as r, Ft as i, Jt as a, Kt as o, Pt as s, Rt as c, S as l, X as u, b as ee, ct as te, et as ne, f as re, i as d, jt as ie, kt as ae, n as oe, p as se, q as ce, t as le, tt as f, w as ue, xt as de } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as me } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as he } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ve } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as ye } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as Se } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Ee } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as De } from "./BaseLegendToggle-CtAPwzr2.js";
|
|
16
|
+
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as je } from "./labelUtils-C5lnc_xc.js";
|
|
20
|
+
import { t as Me } from "./Legend-CQTRlzK-.js";
|
|
21
|
+
import { t as Ne } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
22
|
+
import { Fragment as p, Teleport as Pe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as x, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as E, toRefs as Ke, unref as D, vShow as qe, watch as Je, withCtx as O, withDirectives as Ye } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
23
|
-
var
|
|
24
|
+
var Xe = /* @__PURE__ */ e({ default: () => Dt }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"aria-describedby",
|
|
26
27
|
"viewBox"
|
|
27
|
-
],
|
|
28
|
+
], nt = ["width", "height"], rt = ["id"], it = ["id"], at = ["id"], ot = ["flood-color"], st = ["id", "d"], ct = [
|
|
28
29
|
"d",
|
|
29
30
|
"fill",
|
|
30
31
|
"stroke",
|
|
31
32
|
"stroke-width",
|
|
32
33
|
"filter"
|
|
33
|
-
],
|
|
34
|
+
], lt = [
|
|
34
35
|
"d",
|
|
35
36
|
"fill",
|
|
36
37
|
"stroke",
|
|
37
38
|
"stroke-width"
|
|
38
|
-
],
|
|
39
|
+
], ut = { key: 1 }, dt = ["d", "fill"], ft = { key: 2 }, pt = [
|
|
39
40
|
"font-size",
|
|
40
41
|
"font-weight",
|
|
41
42
|
"fill",
|
|
42
43
|
"dy"
|
|
43
|
-
],
|
|
44
|
+
], mt = ["href"], ht = [
|
|
44
45
|
"x",
|
|
45
46
|
"y",
|
|
46
47
|
"font-size",
|
|
47
48
|
"font-weight",
|
|
48
49
|
"fill"
|
|
49
|
-
],
|
|
50
|
+
], gt = { key: 3 }, _t = ["filter"], vt = [
|
|
50
51
|
"opacity",
|
|
51
52
|
"text-anchor",
|
|
52
53
|
"x",
|
|
@@ -54,7 +55,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
54
55
|
"fill",
|
|
55
56
|
"font-size",
|
|
56
57
|
"font-weight"
|
|
57
|
-
],
|
|
58
|
+
], yt = [
|
|
58
59
|
"opacity",
|
|
59
60
|
"text-anchor",
|
|
60
61
|
"x",
|
|
@@ -62,13 +63,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
62
63
|
"fill",
|
|
63
64
|
"font-size",
|
|
64
65
|
"font-weight"
|
|
65
|
-
],
|
|
66
|
+
], bt = [
|
|
66
67
|
"d",
|
|
67
68
|
"fill",
|
|
68
69
|
"onMouseenter",
|
|
69
70
|
"onClick",
|
|
70
71
|
"onMouseleave"
|
|
71
|
-
],
|
|
72
|
+
], xt = {
|
|
72
73
|
key: 0,
|
|
73
74
|
style: {
|
|
74
75
|
position: "absolute",
|
|
@@ -78,13 +79,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
78
79
|
},
|
|
79
80
|
"data-dom-to-png-ignore": "",
|
|
80
81
|
"aria-hidden": "true"
|
|
81
|
-
},
|
|
82
|
+
}, St = {
|
|
82
83
|
key: 5,
|
|
83
84
|
class: "vue-data-ui-watermark"
|
|
84
|
-
},
|
|
85
|
+
}, Ct = ["id"], wt = {
|
|
85
86
|
key: 0,
|
|
86
87
|
class: "vue-ui-nested-donuts-legend-title"
|
|
87
|
-
},
|
|
88
|
+
}, Tt = ["onClick"], Et = ["innerHTML"], Dt = /*#__PURE__*/ Ce({
|
|
88
89
|
__name: "vue-ui-nested-donuts",
|
|
89
90
|
props: {
|
|
90
91
|
config: {
|
|
@@ -105,22 +106,61 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
105
106
|
"selectDatapoint",
|
|
106
107
|
"copyAlt"
|
|
107
108
|
],
|
|
108
|
-
setup(e, { expose:
|
|
109
|
-
let
|
|
109
|
+
setup(e, { expose: Ce, emit: Xe }) {
|
|
110
|
+
let Dt = y(() => import("./Tooltip-CMTGxeYO.js")), Ot = y(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), kt = y(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), At = y(() => import("./DataTable-D4tM9s5Y.js")), jt = y(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Mt = y(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Nt = y(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Pt = y(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_nested_donuts: Ft } = me(), { isThemeValid: It, warnInvalidTheme: Lt } = be(), k = e, Rt = m({
|
|
110
111
|
get() {
|
|
111
112
|
return !!k.dataset && k.dataset.length;
|
|
112
113
|
},
|
|
113
114
|
set(e) {
|
|
114
115
|
return e;
|
|
115
116
|
}
|
|
116
|
-
}), A = C(
|
|
117
|
+
}), A = C(ce()), zt = C(!1), Bt = C(""), Vt = C(null), Ht = C(0), j = C(null), Ut = C(null), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(0), Jt = C(0), Yt = C(0), M = C(!0), N = C([]), Xt = C([]), Zt = C(!1), Qt = C(null), $t = C(null), en = C(!1), tn = C(!1), P = C(null), nn = C({
|
|
117
118
|
x: 0,
|
|
118
119
|
y: 0
|
|
119
|
-
}),
|
|
120
|
-
function
|
|
121
|
-
F.value = e,
|
|
120
|
+
}), rn = C("pointer"), an = C(!1), F = C(!1);
|
|
121
|
+
function on(e) {
|
|
122
|
+
F.value = e, Ht.value += 1;
|
|
122
123
|
}
|
|
123
|
-
let I = C(
|
|
124
|
+
let I = C(mn());
|
|
125
|
+
fe({
|
|
126
|
+
config: () => I.value,
|
|
127
|
+
dataset: () => k.dataset,
|
|
128
|
+
component: "VueUiNestedDonuts",
|
|
129
|
+
rules: [
|
|
130
|
+
pe.emptyArray,
|
|
131
|
+
{
|
|
132
|
+
test: (e) => e.some((e) => e.series.length > 6),
|
|
133
|
+
message: [
|
|
134
|
+
"👀 Some series have > 6 data points. Consider:",
|
|
135
|
+
"",
|
|
136
|
+
"▶️ Grouping small values dynamically into a single \"Other\" data point.",
|
|
137
|
+
"",
|
|
138
|
+
"▶️ Using filters to let users choose a maximum number of data points to display.",
|
|
139
|
+
"",
|
|
140
|
+
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
test: (e) => e.length === 1,
|
|
145
|
+
message: [
|
|
146
|
+
"👀 There is only one series in your dataset. Consider:",
|
|
147
|
+
"",
|
|
148
|
+
"▶️ Using VueUiDonut instead."
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
test: (e) => e.length > 6,
|
|
153
|
+
message: [
|
|
154
|
+
"👀 The number of series in your dataset > 6. Consider:",
|
|
155
|
+
"",
|
|
156
|
+
"▶️ Using filters to let users choose a maximum number of series to display",
|
|
157
|
+
"",
|
|
158
|
+
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
});
|
|
163
|
+
let L = m(() => I.value.userOptions.useCursorPointer), sn = {
|
|
124
164
|
name: "",
|
|
125
165
|
series: [
|
|
126
166
|
{
|
|
@@ -139,7 +179,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
139
179
|
color: "#CACACA"
|
|
140
180
|
}
|
|
141
181
|
]
|
|
142
|
-
},
|
|
182
|
+
}, cn = m(() => a({
|
|
143
183
|
defaultConfig: {
|
|
144
184
|
useCssAnimation: !1,
|
|
145
185
|
table: { show: !1 },
|
|
@@ -160,47 +200,47 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
160
200
|
} }
|
|
161
201
|
},
|
|
162
202
|
userConfig: I.value.skeletonConfig ?? {}
|
|
163
|
-
})), { loading:
|
|
164
|
-
...
|
|
203
|
+
})), { loading: ln, FINAL_DATASET: R, manualLoading: un } = ge({
|
|
204
|
+
...Ke(k),
|
|
165
205
|
FINAL_CONFIG: I,
|
|
166
|
-
prepareConfig:
|
|
206
|
+
prepareConfig: mn,
|
|
167
207
|
callback: () => {
|
|
168
208
|
Promise.resolve().then(async () => {
|
|
169
|
-
await
|
|
209
|
+
await _n();
|
|
170
210
|
});
|
|
171
211
|
},
|
|
172
|
-
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
173
|
-
skeletonConfig:
|
|
212
|
+
skeletonDataset: k.config?.skeletonDataset ?? [sn, sn],
|
|
213
|
+
skeletonConfig: a({
|
|
174
214
|
defaultConfig: I.value,
|
|
175
|
-
userConfig:
|
|
215
|
+
userConfig: cn.value
|
|
176
216
|
})
|
|
177
|
-
}), { userOptionsVisible:
|
|
178
|
-
function
|
|
179
|
-
let e =
|
|
217
|
+
}), { userOptionsVisible: dn, setUserOptionsVisibility: fn, keepUserOptionState: pn } = ke({ config: I.value }), { svgRef: z } = Ae({ config: I.value.style.chart.title });
|
|
218
|
+
function mn() {
|
|
219
|
+
let e = ye({
|
|
180
220
|
userConfig: k.config,
|
|
181
|
-
defaultConfig:
|
|
221
|
+
defaultConfig: Ft
|
|
182
222
|
}), t = {}, n = e.theme;
|
|
183
|
-
if (n) if (!
|
|
223
|
+
if (n) if (!It.value(e)) Lt(e), t = e;
|
|
184
224
|
else {
|
|
185
|
-
let r =
|
|
186
|
-
userConfig:
|
|
225
|
+
let r = ye({
|
|
226
|
+
userConfig: Ne[n] || k.config,
|
|
187
227
|
defaultConfig: e
|
|
188
228
|
});
|
|
189
229
|
t = {
|
|
190
|
-
...
|
|
230
|
+
...ye({
|
|
191
231
|
userConfig: k.config,
|
|
192
232
|
defaultConfig: r
|
|
193
233
|
}),
|
|
194
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
234
|
+
customPalette: e.customPalette.length ? e.customPalette : o[n] || s
|
|
195
235
|
};
|
|
196
236
|
}
|
|
197
237
|
else t = e;
|
|
198
238
|
return t;
|
|
199
239
|
}
|
|
200
|
-
|
|
201
|
-
|
|
240
|
+
Je(() => k.config, (e) => {
|
|
241
|
+
ln.value || (I.value = mn()), dn.value = !I.value.userOptions.showOnChartHover, bn(), qt.value += 1, Jt.value += 1, Yt.value += 1, V.value.dataLabels.show = I.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = I.value.style.chart.tooltip.show, H.value.width = I.value.style.chart.width, H.value.height = I.value.style.chart.height;
|
|
202
242
|
}, { deep: !0 });
|
|
203
|
-
let
|
|
243
|
+
let hn = m(() => {
|
|
204
244
|
let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
|
|
205
245
|
return {
|
|
206
246
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -210,21 +250,21 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
210
250
|
left: r
|
|
211
251
|
};
|
|
212
252
|
});
|
|
213
|
-
function
|
|
214
|
-
return new Promise((
|
|
215
|
-
let
|
|
216
|
-
N.value = Array(
|
|
217
|
-
let
|
|
218
|
-
e.forEach((e,
|
|
253
|
+
function gn(e, t = 1e3, n = 50) {
|
|
254
|
+
return new Promise((r) => {
|
|
255
|
+
let i = e.length;
|
|
256
|
+
N.value = Array(i).fill(0), Xt.value = [];
|
|
257
|
+
let a = 0;
|
|
258
|
+
e.forEach((e, o) => {
|
|
219
259
|
setTimeout(() => {
|
|
220
|
-
let
|
|
221
|
-
function l
|
|
222
|
-
let
|
|
223
|
-
N.value[
|
|
224
|
-
let
|
|
260
|
+
let n = performance.now();
|
|
261
|
+
function s(l) {
|
|
262
|
+
let u = Math.min((l - n) / t, 1), te = e * ne(u);
|
|
263
|
+
N.value[o] = te, N.value = [...N.value];
|
|
264
|
+
let re = [], d = 0;
|
|
225
265
|
k.dataset.forEach((e, t) => {
|
|
226
|
-
let n =
|
|
227
|
-
n > Number.MIN_VALUE &&
|
|
266
|
+
let n = ee(e.series.reduce((e, t) => e + ee(c(t.values).reduce((e, t) => e + t, 0)), 0)) - ee(N.value.slice(d, d + e.series.length).reduce((e, t) => e + t, 0));
|
|
267
|
+
n > Number.MIN_VALUE && re.push({
|
|
228
268
|
name: "__ghost__",
|
|
229
269
|
arcOf: e.name,
|
|
230
270
|
arcOfId: `${A.value}_${t}`,
|
|
@@ -237,18 +277,18 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
237
277
|
absoluteValues: [],
|
|
238
278
|
ghost: !0
|
|
239
279
|
}), d += e.series.length;
|
|
240
|
-
}),
|
|
280
|
+
}), Xt.value = re, u < 1 ? requestAnimationFrame(s) : (a += 1, a === i && r());
|
|
241
281
|
}
|
|
242
|
-
requestAnimationFrame(
|
|
243
|
-
},
|
|
282
|
+
requestAnimationFrame(s);
|
|
283
|
+
}, o * n);
|
|
244
284
|
});
|
|
245
285
|
});
|
|
246
286
|
}
|
|
247
|
-
async function
|
|
287
|
+
async function _n() {
|
|
248
288
|
if (I.value.startAnimation?.show) {
|
|
249
|
-
let e = R.value.flatMap((e) => e.series).map((e) =>
|
|
250
|
-
N.value = e.map(() => 0), M.value = !0,
|
|
251
|
-
let n = e.series.reduce((e, t) => e +
|
|
289
|
+
let e = R.value.flatMap((e) => e.series).map((e) => c(e.values).reduce((e, t) => e + t, 0));
|
|
290
|
+
N.value = e.map(() => 0), M.value = !0, Xt.value = R.value.map((e, t) => {
|
|
291
|
+
let n = e.series.reduce((e, t) => e + c(t.values).reduce((e, t) => e + t, 0), 0);
|
|
252
292
|
return {
|
|
253
293
|
name: "__ghost__",
|
|
254
294
|
arcOf: e.name,
|
|
@@ -262,50 +302,50 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
262
302
|
absoluteValues: [],
|
|
263
303
|
ghost: !0
|
|
264
304
|
};
|
|
265
|
-
}), await
|
|
266
|
-
M.value = !1,
|
|
305
|
+
}), await ze(), gn(e, I.value.startAnimation.durationMs, I.value.startAnimation.staggerMs).then(() => {
|
|
306
|
+
M.value = !1, Xt.value = [];
|
|
267
307
|
});
|
|
268
308
|
} else M.value = !1;
|
|
269
309
|
}
|
|
270
|
-
|
|
271
|
-
|
|
310
|
+
Ue(async () => {
|
|
311
|
+
Zt.value = !0, bn(), await _n();
|
|
272
312
|
});
|
|
273
|
-
let B =
|
|
274
|
-
function
|
|
275
|
-
if (
|
|
313
|
+
let B = Ge(null), vn = Ge(null), yn = m(() => !!I.value.debug);
|
|
314
|
+
function bn() {
|
|
315
|
+
if (ie(k.dataset) ? (f({
|
|
276
316
|
componentName: "VueUiNestedDonuts",
|
|
277
317
|
type: "dataset",
|
|
278
|
-
debug:
|
|
279
|
-
}),
|
|
280
|
-
let e =
|
|
281
|
-
let { width: e, height: t } =
|
|
318
|
+
debug: yn.value
|
|
319
|
+
}), Rt.value = !1, un.value = !0) : un.value = I.value.loading, I.value.responsive) {
|
|
320
|
+
let e = we(() => {
|
|
321
|
+
let { width: e, height: t } = Te({
|
|
282
322
|
chart: j.value,
|
|
283
|
-
title: I.value.style.chart.title.text ?
|
|
284
|
-
legend: I.value.style.chart.legend.show ?
|
|
285
|
-
source:
|
|
286
|
-
noTitle:
|
|
287
|
-
padding:
|
|
323
|
+
title: I.value.style.chart.title.text ? Ut.value : null,
|
|
324
|
+
legend: I.value.style.chart.legend.show ? Wt.value : null,
|
|
325
|
+
source: Gt.value,
|
|
326
|
+
noTitle: Kt.value,
|
|
327
|
+
padding: hn.value
|
|
288
328
|
});
|
|
289
329
|
requestAnimationFrame(() => {
|
|
290
330
|
H.value.width = e, H.value.height = t;
|
|
291
331
|
});
|
|
292
332
|
});
|
|
293
|
-
B.value && (
|
|
333
|
+
B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect()), B.value = new ResizeObserver(e), vn.value = j.value.parentNode, B.value.observe(vn.value);
|
|
294
334
|
}
|
|
295
335
|
}
|
|
296
|
-
|
|
297
|
-
B.value && (
|
|
336
|
+
He(() => {
|
|
337
|
+
B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect());
|
|
298
338
|
});
|
|
299
|
-
let { isPrinting:
|
|
339
|
+
let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = he({
|
|
300
340
|
elementId: `nested_donuts_${A.value}`,
|
|
301
341
|
fileName: I.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
302
342
|
options: I.value.userOptions.print
|
|
303
|
-
}),
|
|
343
|
+
}), Tn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), En = m(() => ue(I.value.customPalette)), V = C({
|
|
304
344
|
dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
|
|
305
345
|
showTable: I.value.table.show,
|
|
306
346
|
showTooltip: I.value.style.chart.tooltip.show
|
|
307
347
|
});
|
|
308
|
-
|
|
348
|
+
Je(I, () => {
|
|
309
349
|
V.value = {
|
|
310
350
|
dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
|
|
311
351
|
showTable: I.value.table.show,
|
|
@@ -315,8 +355,8 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
315
355
|
let H = C({
|
|
316
356
|
width: I.value.style.chart.width,
|
|
317
357
|
height: I.value.style.chart.height
|
|
318
|
-
}), U =
|
|
319
|
-
function
|
|
358
|
+
}), U = Xe;
|
|
359
|
+
function Dn({ datapoint: e, index: t, seriesIndex: n }) {
|
|
320
360
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
321
361
|
datapoint: e,
|
|
322
362
|
seriesIndex: n
|
|
@@ -325,59 +365,59 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
325
365
|
index: t
|
|
326
366
|
});
|
|
327
367
|
}
|
|
328
|
-
function
|
|
329
|
-
let
|
|
330
|
-
function c
|
|
331
|
-
let l = Math.min((
|
|
332
|
-
|
|
368
|
+
function On({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ne }) {
|
|
369
|
+
let o = performance.now();
|
|
370
|
+
function s(c) {
|
|
371
|
+
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
372
|
+
r(e + (t - e) * u, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
333
373
|
}
|
|
334
|
-
requestAnimationFrame(
|
|
374
|
+
requestAnimationFrame(s);
|
|
335
375
|
}
|
|
336
|
-
let W = C([]), G =
|
|
337
|
-
|
|
338
|
-
[null, void 0].includes(e.name) &&
|
|
376
|
+
let W = C([]), G = m(() => {
|
|
377
|
+
ln.value, R.value.forEach((e, t) => {
|
|
378
|
+
[null, void 0].includes(e.name) && f({
|
|
339
379
|
componentName: "VueUiNestedDonuts",
|
|
340
380
|
type: "datasetSerieAttribute",
|
|
341
381
|
property: "name",
|
|
342
382
|
index: t,
|
|
343
|
-
debug:
|
|
344
|
-
}), [null, void 0].includes(e.series) ?
|
|
383
|
+
debug: yn.value
|
|
384
|
+
}), [null, void 0].includes(e.series) ? f({
|
|
345
385
|
componentName: "VueUiNestedDonuts",
|
|
346
386
|
type: "datasetSerieAttribute",
|
|
347
387
|
property: "series",
|
|
348
388
|
index: t,
|
|
349
|
-
debug:
|
|
350
|
-
}) : e.series.length === 0 ?
|
|
389
|
+
debug: yn.value
|
|
390
|
+
}) : e.series.length === 0 ? f({
|
|
351
391
|
componentName: "VueUiNestedDonuts",
|
|
352
392
|
type: "datasetAttributeEmpty",
|
|
353
393
|
property: `series at index ${t}`,
|
|
354
|
-
debug:
|
|
394
|
+
debug: yn.value
|
|
355
395
|
}) : e.series.forEach((e, t) => {
|
|
356
|
-
[null, void 0].includes(e.name) &&
|
|
396
|
+
[null, void 0].includes(e.name) && f({
|
|
357
397
|
componentName: "VueUiNestedDonuts",
|
|
358
398
|
type: "datasetSerieAttribute",
|
|
359
399
|
property: "name",
|
|
360
400
|
index: t,
|
|
361
401
|
key: "serie",
|
|
362
|
-
debug:
|
|
363
|
-
}), [null, void 0].includes(e.values) &&
|
|
402
|
+
debug: yn.value
|
|
403
|
+
}), [null, void 0].includes(e.values) && f({
|
|
364
404
|
componentName: "VueUiNestedDonuts",
|
|
365
405
|
type: "datasetSerieAttribute",
|
|
366
406
|
property: "values",
|
|
367
407
|
index: t,
|
|
368
408
|
key: "serie",
|
|
369
|
-
debug:
|
|
409
|
+
debug: yn.value
|
|
370
410
|
});
|
|
371
411
|
});
|
|
372
412
|
});
|
|
373
413
|
let e = 0;
|
|
374
414
|
return R.value.map((t, n) => ({
|
|
375
415
|
...t,
|
|
376
|
-
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) =>
|
|
416
|
+
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => c(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
377
417
|
datasetIndex: n,
|
|
378
418
|
id: `${A.value}_${n}`,
|
|
379
419
|
series: t.series.map((r, i) => {
|
|
380
|
-
let a =
|
|
420
|
+
let a = c(r.values).reduce((e, t) => e + t, 0);
|
|
381
421
|
return {
|
|
382
422
|
name: r.name,
|
|
383
423
|
arcOf: t.name,
|
|
@@ -385,17 +425,17 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
385
425
|
id: `${A.value}_${n}_${i}`,
|
|
386
426
|
seriesIndex: i,
|
|
387
427
|
datasetIndex: n,
|
|
388
|
-
color:
|
|
428
|
+
color: l(r.color) || En.value[i] || s[i % s.length],
|
|
389
429
|
value: M.value ? N.value[e++] ?? 0 : a,
|
|
390
430
|
absoluteValues: r.values || []
|
|
391
431
|
};
|
|
392
432
|
})
|
|
393
433
|
}));
|
|
394
434
|
});
|
|
395
|
-
|
|
396
|
-
Array.isArray(e) && e.length > 0 && (
|
|
435
|
+
Je(() => k.dataset, (e) => {
|
|
436
|
+
Array.isArray(e) && e.length > 0 && (un.value = !1);
|
|
397
437
|
}, { immediate: !0 });
|
|
398
|
-
let K =
|
|
438
|
+
let K = m(() => Math.min(H.value.height, H.value.width) * (I.value.style.chart.layout.donut.strokeWidth / 512)), q = m(() => [...G.value].map((e, t) => {
|
|
399
439
|
let n = e.series.filter((e) => !W.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
400
440
|
return {
|
|
401
441
|
...e,
|
|
@@ -406,14 +446,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
406
446
|
}))
|
|
407
447
|
};
|
|
408
448
|
}));
|
|
409
|
-
function
|
|
449
|
+
function kn(e, t, n) {
|
|
410
450
|
let r = 0;
|
|
411
451
|
for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
|
|
412
452
|
return r < t;
|
|
413
453
|
}
|
|
414
454
|
let J = C(q.value);
|
|
415
|
-
|
|
416
|
-
function
|
|
455
|
+
Je(() => q.value, (e) => J.value = e);
|
|
456
|
+
function An(e) {
|
|
417
457
|
let t = e.map((e) => e.id);
|
|
418
458
|
if (e.some((e) => W.value.includes(e.id))) {
|
|
419
459
|
let e = new Set(t);
|
|
@@ -423,15 +463,15 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
423
463
|
}
|
|
424
464
|
function Y(e) {
|
|
425
465
|
let t = k.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
426
|
-
value:
|
|
466
|
+
value: c(e.values).reduce((e, t) => e + t, 0),
|
|
427
467
|
id: `${A.value}_${t}_${n}`,
|
|
428
468
|
arcOfId: `${A.value}_${t}`
|
|
429
469
|
}))).find((t) => t.id === e.id);
|
|
430
470
|
if (!t) return;
|
|
431
471
|
let n = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = G.value.find((e) => e.id === t.arcOfId);
|
|
432
472
|
if (!a) return;
|
|
433
|
-
let o = a.series.map((e) => e.id),
|
|
434
|
-
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), I.value.serieToggleAnimation.show ?
|
|
473
|
+
let o = a.series.map((e) => e.id), s = kn(o, o.length - 1, W.value);
|
|
474
|
+
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), I.value.serieToggleAnimation.show ? On({
|
|
435
475
|
from: i,
|
|
436
476
|
to: n,
|
|
437
477
|
duration: I.value.serieToggleAnimation.durationMs,
|
|
@@ -453,7 +493,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
453
493
|
...t,
|
|
454
494
|
value: n
|
|
455
495
|
} : t)
|
|
456
|
-
})), U("selectLegend", q.value))) :
|
|
496
|
+
})), U("selectLegend", q.value))) : s && (I.value.serieToggleAnimation.show ? On({
|
|
457
497
|
from: i,
|
|
458
498
|
to: 0,
|
|
459
499
|
duration: I.value.serieToggleAnimation.durationMs,
|
|
@@ -477,30 +517,30 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
477
517
|
} : t)
|
|
478
518
|
})), W.value.push(e.id), U("selectLegend", q.value)));
|
|
479
519
|
}
|
|
480
|
-
function
|
|
520
|
+
function jn(e) {
|
|
481
521
|
return G.value.length ? G.value.flatMap((e) => e.series).filter((t) => t.name === e) || (I.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
482
522
|
}
|
|
483
|
-
function
|
|
484
|
-
let t =
|
|
523
|
+
function Mn(e) {
|
|
524
|
+
let t = jn(e);
|
|
485
525
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
486
526
|
W.value.includes(e.id) && Y({ id: e.id });
|
|
487
527
|
}) : W.value.includes(t.id) && Y({ id: t.id }));
|
|
488
528
|
}
|
|
489
|
-
function
|
|
490
|
-
let t =
|
|
529
|
+
function Nn(e) {
|
|
530
|
+
let t = jn(e);
|
|
491
531
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
532
|
W.value.includes(e.id) || Y({ id: e.id });
|
|
493
533
|
}) : W.value.includes(t.id) || Y({ id: t.id }));
|
|
494
534
|
}
|
|
495
|
-
let
|
|
496
|
-
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = M.value ?
|
|
535
|
+
let Pn = m(() => K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio), Fn = m(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = m(() => J.value.map((e, t) => {
|
|
536
|
+
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = M.value ? Xt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
497
537
|
...e,
|
|
498
538
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
499
|
-
})), o =
|
|
539
|
+
})), o = ae({ series: [{
|
|
500
540
|
name: "_",
|
|
501
541
|
color: I.value.style.chart.layout.donut.emptyFill,
|
|
502
542
|
value: 1
|
|
503
|
-
}] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25,
|
|
543
|
+
}] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value), s = `M ${H.value.width / 2},${H.value.height / 2 + r}
|
|
504
544
|
a ${r},${r} 0 1,1 0,${-2 * r}
|
|
505
545
|
a ${r},${r} 0 1,1 0,${2 * r}`;
|
|
506
546
|
return {
|
|
@@ -509,23 +549,23 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
509
549
|
radius: r,
|
|
510
550
|
skeleton: o,
|
|
511
551
|
fullCirclePath: s,
|
|
512
|
-
donut:
|
|
552
|
+
donut: ae({ series: a }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value)
|
|
513
553
|
};
|
|
514
|
-
})),
|
|
554
|
+
})), In = m(() => [...G.value].map((e, t) => {
|
|
515
555
|
let n = t * K.value / G.value.length;
|
|
516
556
|
return {
|
|
517
557
|
sizeRatio: n,
|
|
518
|
-
donut:
|
|
558
|
+
donut: ae({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - n, K.value - n, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio)[0]
|
|
519
559
|
};
|
|
520
|
-
})),
|
|
521
|
-
function
|
|
560
|
+
})), Ln = C(null), Rn = C(null), Z = C(null), zn = C(null);
|
|
561
|
+
function Bn({ datapoint: e, seriesIndex: t }) {
|
|
522
562
|
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
523
563
|
datapoint: e,
|
|
524
564
|
seriesIndex: t
|
|
525
|
-
}),
|
|
565
|
+
}), zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null, P.value = null, rn.value = "pointer";
|
|
526
566
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
567
|
+
function Vn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
568
|
+
return je({
|
|
529
569
|
config: i,
|
|
530
570
|
val: e,
|
|
531
571
|
percentage: t,
|
|
@@ -533,23 +573,23 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
533
573
|
showPercentage: r
|
|
534
574
|
});
|
|
535
575
|
}
|
|
536
|
-
function
|
|
576
|
+
function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
537
577
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
538
578
|
datapoint: e,
|
|
539
579
|
seriesIndex: n
|
|
540
|
-
}),
|
|
580
|
+
}), rn.value = r, P.value = n, Ln.value = e.arcOfId, Rn.value = e.id, Z.value = n, Vt.value = e.id, zn.value = {
|
|
541
581
|
datapoint: e,
|
|
542
582
|
seriesIndex: n,
|
|
543
583
|
series: J.value,
|
|
544
584
|
config: I.value
|
|
545
585
|
};
|
|
546
586
|
let i = I.value.style.chart.tooltip.customFormat;
|
|
547
|
-
if (
|
|
587
|
+
if (de(i) && te(() => i({
|
|
548
588
|
seriesIndex: n,
|
|
549
589
|
datapoint: e,
|
|
550
590
|
series: J.value,
|
|
551
591
|
config: I.value
|
|
552
|
-
})))
|
|
592
|
+
}))) Bt.value = i({
|
|
553
593
|
seriesIndex: n,
|
|
554
594
|
datapoint: e,
|
|
555
595
|
series: J.value,
|
|
@@ -573,11 +613,11 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
573
613
|
</div>
|
|
574
614
|
<span>
|
|
575
615
|
<b>
|
|
576
|
-
${
|
|
616
|
+
${Vn({
|
|
577
617
|
config: I.value.style.chart.tooltip,
|
|
578
618
|
showVal: I.value.style.chart.tooltip.showValue,
|
|
579
619
|
showPercentage: I.value.style.chart.tooltip.showPercentage,
|
|
580
|
-
val:
|
|
620
|
+
val: d(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
|
|
581
621
|
p: I.value.style.chart.layout.labels.dataLabels.prefix,
|
|
582
622
|
v: e.value,
|
|
583
623
|
s: I.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -597,7 +637,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
597
637
|
</div>
|
|
598
638
|
`;
|
|
599
639
|
});
|
|
600
|
-
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, I.value.style.chart.tooltip.showValue && (t += `<b>${
|
|
640
|
+
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, I.value.style.chart.tooltip.showValue && (t += `<b>${d(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
|
|
601
641
|
p: I.value.style.chart.layout.labels.dataLabels.prefix,
|
|
602
642
|
v: e.value,
|
|
603
643
|
s: I.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -614,26 +654,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
614
654
|
s: "%",
|
|
615
655
|
r: I.value.style.chart.tooltip.roundingPercentage
|
|
616
656
|
})}</b></div>`);
|
|
617
|
-
|
|
657
|
+
Bt.value = `<div style="font-size:${I.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
618
658
|
}
|
|
619
|
-
|
|
659
|
+
zt.value = !0;
|
|
620
660
|
}
|
|
621
|
-
function
|
|
661
|
+
function Un(e) {
|
|
622
662
|
return e.proportion * 100 > I.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
623
663
|
}
|
|
624
|
-
function
|
|
664
|
+
function Wn(e, t) {
|
|
625
665
|
if (!I.value.useBlurOnHover) return "";
|
|
626
666
|
if (I.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${A.value})`;
|
|
627
|
-
if (!I.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(
|
|
667
|
+
if (!I.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(Rn.value) || Rn.value === e.id ? "" : `url(#blur_${A.value})`;
|
|
628
668
|
}
|
|
629
|
-
let
|
|
669
|
+
let Gn = m(() => G.value.map((e, t) => {
|
|
630
670
|
let n = e.series.filter((e) => !W.value.includes(e.id)), r = M.value ? n.map((e) => {
|
|
631
671
|
let n = R.value[t].series.findIndex((t) => t.name === e.name);
|
|
632
|
-
return
|
|
672
|
+
return c(R.value[t].series[n].values).reduce((e, t) => e + t, 0);
|
|
633
673
|
}).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
674
|
return e.series.map((e, n) => {
|
|
635
|
-
let i =
|
|
636
|
-
val:
|
|
675
|
+
let i = c(R.value[t].series[n].values).reduce((e, t) => e + t, 0), a = M.value ? i : e.value, o = Vn({
|
|
676
|
+
val: d(I.value.style.chart.layout.labels.dataLabels.formatter, a, u({
|
|
637
677
|
p: I.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
678
|
v: a,
|
|
639
679
|
s: I.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -650,13 +690,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
650
690
|
showVal: I.value.style.chart.legend.showValue,
|
|
651
691
|
showPercentage: I.value.style.chart.legend.showPercentage,
|
|
652
692
|
config: I.value.style.chart.legend
|
|
653
|
-
}),
|
|
693
|
+
}), s = `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${o}`;
|
|
654
694
|
return {
|
|
655
695
|
name: e.name,
|
|
656
696
|
color: e.color,
|
|
657
697
|
value: a,
|
|
658
|
-
display:
|
|
659
|
-
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${
|
|
698
|
+
display: s,
|
|
699
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${s}`,
|
|
660
700
|
shape: "circle",
|
|
661
701
|
arcOf: e.arcOf,
|
|
662
702
|
id: e.id,
|
|
@@ -668,14 +708,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
668
708
|
isSegregated: W.value.includes(e.id)
|
|
669
709
|
};
|
|
670
710
|
});
|
|
671
|
-
})),
|
|
711
|
+
})), Kn = m(() => ({
|
|
672
712
|
cy: "nested-donuts-legend",
|
|
673
713
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
674
714
|
color: I.value.style.chart.legend.color,
|
|
675
715
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
676
716
|
paddingBottom: 12,
|
|
677
717
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
678
|
-
})), Q =
|
|
718
|
+
})), Q = m(() => ({
|
|
679
719
|
head: J.value.flatMap((e) => e.series.map((t) => ({
|
|
680
720
|
name: `${e.name} - ${t.name}`,
|
|
681
721
|
color: t.color,
|
|
@@ -683,13 +723,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
683
723
|
}))),
|
|
684
724
|
body: J.value.flatMap((e) => e.series.map((e) => e.value))
|
|
685
725
|
}));
|
|
686
|
-
function
|
|
687
|
-
|
|
688
|
-
let
|
|
726
|
+
function qn(e = null) {
|
|
727
|
+
ze(() => {
|
|
728
|
+
let n = Q.value.head.map((e, t) => [
|
|
689
729
|
[e.name],
|
|
690
730
|
[Q.value.body[t]],
|
|
691
731
|
[isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
|
|
692
|
-
]),
|
|
732
|
+
]), i = r([
|
|
693
733
|
[I.value.style.chart.title.text],
|
|
694
734
|
[I.value.style.chart.title.subtitle.text],
|
|
695
735
|
[
|
|
@@ -697,14 +737,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
697
737
|
["val"],
|
|
698
738
|
["%"]
|
|
699
739
|
]
|
|
700
|
-
].concat(
|
|
701
|
-
e ? e(
|
|
702
|
-
csvContent:
|
|
740
|
+
].concat(n));
|
|
741
|
+
e ? e(i) : t({
|
|
742
|
+
csvContent: i,
|
|
703
743
|
title: I.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
704
744
|
});
|
|
705
745
|
});
|
|
706
746
|
}
|
|
707
|
-
let
|
|
747
|
+
let Jn = m(() => {
|
|
708
748
|
let e = [
|
|
709
749
|
I.value.table.columnNames.series,
|
|
710
750
|
I.value.table.columnNames.value,
|
|
@@ -753,25 +793,25 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
753
793
|
config: r
|
|
754
794
|
};
|
|
755
795
|
});
|
|
756
|
-
function
|
|
796
|
+
function Yn() {
|
|
757
797
|
return G.value;
|
|
758
798
|
}
|
|
759
|
-
function
|
|
799
|
+
function Xn() {
|
|
760
800
|
V.value.showTable = !V.value.showTable;
|
|
761
801
|
}
|
|
762
|
-
function
|
|
802
|
+
function Zn() {
|
|
763
803
|
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
764
804
|
}
|
|
765
|
-
function
|
|
805
|
+
function Qn() {
|
|
766
806
|
V.value.showTooltip = !V.value.showTooltip;
|
|
767
807
|
}
|
|
768
|
-
let
|
|
769
|
-
function
|
|
770
|
-
|
|
808
|
+
let $n = C(!1);
|
|
809
|
+
function er() {
|
|
810
|
+
$n.value = !$n.value;
|
|
771
811
|
}
|
|
772
|
-
async function
|
|
812
|
+
async function tr({ scale: e = 2 } = {}) {
|
|
773
813
|
if (!j.value) return;
|
|
774
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
814
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
775
815
|
domElement: j.value,
|
|
776
816
|
base64: !0,
|
|
777
817
|
img: !0,
|
|
@@ -786,16 +826,16 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
786
826
|
aspectRatio: r
|
|
787
827
|
};
|
|
788
828
|
}
|
|
789
|
-
let
|
|
790
|
-
function
|
|
791
|
-
if (!
|
|
792
|
-
let { x: e, y: t, width: n, height: r } =
|
|
829
|
+
let nr = C(null);
|
|
830
|
+
function rr() {
|
|
831
|
+
if (!nr.value) return;
|
|
832
|
+
let { x: e, y: t, width: n, height: r } = nr.value.getBBox();
|
|
793
833
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
794
834
|
}
|
|
795
|
-
let
|
|
835
|
+
let ir = m(() => {
|
|
796
836
|
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
797
837
|
return {
|
|
798
|
-
component: e ?
|
|
838
|
+
component: e ? Pt : kt,
|
|
799
839
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
800
840
|
props: e ? {
|
|
801
841
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -823,50 +863,50 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
823
863
|
}
|
|
824
864
|
};
|
|
825
865
|
});
|
|
826
|
-
|
|
827
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
866
|
+
Je(() => V.value.showTable, (e) => {
|
|
867
|
+
I.value.table.show || (e && I.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
|
|
828
868
|
});
|
|
829
|
-
function
|
|
830
|
-
V.value.showTable = !1,
|
|
869
|
+
function ar() {
|
|
870
|
+
V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
|
|
831
871
|
}
|
|
832
|
-
let
|
|
872
|
+
let or = m(() => I.value.style.chart.backgroundColor), sr = m(() => I.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
|
|
833
873
|
svg: z,
|
|
834
|
-
title:
|
|
835
|
-
legend:
|
|
836
|
-
legendItems:
|
|
874
|
+
title: m(() => I.value.style.chart.title),
|
|
875
|
+
legend: sr,
|
|
876
|
+
legendItems: m(() => Gn.value.flat().map((e) => ({
|
|
837
877
|
...e,
|
|
838
878
|
name: e.svgDisplay
|
|
839
879
|
}))),
|
|
840
|
-
backgroundColor:
|
|
880
|
+
backgroundColor: or
|
|
841
881
|
});
|
|
842
|
-
async function
|
|
843
|
-
|
|
882
|
+
async function ur({ isCb: e }) {
|
|
883
|
+
tn.value = !0, await ze();
|
|
844
884
|
try {
|
|
845
885
|
if (e) {
|
|
846
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
886
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await lr();
|
|
847
887
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
848
888
|
blob: e,
|
|
849
889
|
url: t,
|
|
850
890
|
text: n,
|
|
851
891
|
dataUrl: r
|
|
852
892
|
}));
|
|
853
|
-
} else await Promise.resolve(
|
|
893
|
+
} else await Promise.resolve(cr());
|
|
854
894
|
} finally {
|
|
855
|
-
|
|
895
|
+
tn.value = !1;
|
|
856
896
|
}
|
|
857
897
|
}
|
|
858
|
-
function
|
|
898
|
+
function dr(e) {
|
|
859
899
|
if (e?.stage === "start") {
|
|
860
|
-
|
|
900
|
+
en.value = !0;
|
|
861
901
|
return;
|
|
862
902
|
}
|
|
863
903
|
if (e?.stage === "end") {
|
|
864
|
-
|
|
904
|
+
en.value = !1;
|
|
865
905
|
return;
|
|
866
906
|
}
|
|
867
|
-
|
|
907
|
+
wn();
|
|
868
908
|
}
|
|
869
|
-
async function
|
|
909
|
+
async function fr() {
|
|
870
910
|
if (U("copyAlt", {
|
|
871
911
|
config: I.value,
|
|
872
912
|
dataset: J.value
|
|
@@ -879,26 +919,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
879
919
|
dataset: J.value
|
|
880
920
|
}));
|
|
881
921
|
}
|
|
882
|
-
let $ =
|
|
883
|
-
function
|
|
884
|
-
P.value = null,
|
|
922
|
+
let $ = m(() => X.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
923
|
+
function pr() {
|
|
924
|
+
P.value = null, an.value = !0;
|
|
885
925
|
}
|
|
886
|
-
function
|
|
887
|
-
P.value = null,
|
|
926
|
+
function mr() {
|
|
927
|
+
P.value = null, rn.value = "pointer", zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null, an.value = !1;
|
|
888
928
|
}
|
|
889
|
-
function
|
|
890
|
-
if (!z.value ||
|
|
929
|
+
function hr(e) {
|
|
930
|
+
if (!z.value || $n.value || document.activeElement !== z.value || !$.value.length) return;
|
|
891
931
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
892
932
|
if (!t && !n && !r && !i) return;
|
|
893
933
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
894
|
-
P.value = null,
|
|
934
|
+
P.value = null, rn.value = "pointer", zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null;
|
|
895
935
|
return;
|
|
896
936
|
}
|
|
897
937
|
if (r) {
|
|
898
938
|
if (P.value === null) return;
|
|
899
939
|
let e = $.value[P.value];
|
|
900
940
|
if (!e) return;
|
|
901
|
-
|
|
941
|
+
Dn({
|
|
902
942
|
datapoint: e,
|
|
903
943
|
index: P.value,
|
|
904
944
|
seriesIndex: e.seriesIndex
|
|
@@ -908,7 +948,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
908
948
|
let a = P.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
|
|
909
949
|
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
910
950
|
let l = $.value[a];
|
|
911
|
-
l && (P.value = a,
|
|
951
|
+
l && (P.value = a, gr(), Hn({
|
|
912
952
|
datapoint: l,
|
|
913
953
|
relativeIndex: a,
|
|
914
954
|
seriesIndex: l.seriesIndex,
|
|
@@ -916,52 +956,52 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
916
956
|
triggerMode: "keyboard"
|
|
917
957
|
}));
|
|
918
958
|
}
|
|
919
|
-
function
|
|
959
|
+
function gr() {
|
|
920
960
|
if (!z.value) return;
|
|
921
961
|
let e = z.value.getBoundingClientRect();
|
|
922
|
-
|
|
962
|
+
nn.value = {
|
|
923
963
|
x: e.left + e.width / 2,
|
|
924
964
|
y: e.top + e.height / 2
|
|
925
965
|
};
|
|
926
966
|
}
|
|
927
|
-
let
|
|
928
|
-
headers:
|
|
929
|
-
rows:
|
|
967
|
+
let _r = m(() => ({
|
|
968
|
+
headers: Jn.value?.colNames ?? [],
|
|
969
|
+
rows: Jn.value?.a11yBody ?? []
|
|
930
970
|
}));
|
|
931
|
-
return
|
|
932
|
-
autoSize:
|
|
933
|
-
getData:
|
|
934
|
-
getImage:
|
|
935
|
-
generatePdf:
|
|
936
|
-
generateCsv:
|
|
937
|
-
generateImage:
|
|
938
|
-
generateSvg:
|
|
939
|
-
hideSeries:
|
|
940
|
-
showSeries:
|
|
941
|
-
toggleTable:
|
|
942
|
-
toggleLabels:
|
|
943
|
-
toggleTooltip:
|
|
944
|
-
toggleAnnotator:
|
|
945
|
-
toggleFullscreen:
|
|
946
|
-
copyAlt:
|
|
947
|
-
}), (e, t) => (S(),
|
|
971
|
+
return Ce({
|
|
972
|
+
autoSize: rr,
|
|
973
|
+
getData: Yn,
|
|
974
|
+
getImage: tr,
|
|
975
|
+
generatePdf: Cn,
|
|
976
|
+
generateCsv: qn,
|
|
977
|
+
generateImage: wn,
|
|
978
|
+
generateSvg: ur,
|
|
979
|
+
hideSeries: Nn,
|
|
980
|
+
showSeries: Mn,
|
|
981
|
+
toggleTable: Xn,
|
|
982
|
+
toggleLabels: Zn,
|
|
983
|
+
toggleTooltip: Qn,
|
|
984
|
+
toggleAnnotator: er,
|
|
985
|
+
toggleFullscreen: on,
|
|
986
|
+
copyAlt: fr
|
|
987
|
+
}), (e, t) => (S(), _("div", {
|
|
948
988
|
ref_key: "nestedDonutsChart",
|
|
949
989
|
ref: j,
|
|
950
|
-
class:
|
|
951
|
-
style:
|
|
990
|
+
class: Be(`vue-data-ui-component vue-ui-nested-donuts ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
991
|
+
style: Ve(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
952
992
|
id: `nested_donuts_${A.value}`,
|
|
953
|
-
onMouseenter: t[2] ||= () => D(
|
|
954
|
-
onMouseleave: t[3] ||= () => D(
|
|
993
|
+
onMouseenter: t[2] ||= () => D(fn)(!0),
|
|
994
|
+
onMouseleave: t[3] ||= () => D(fn)(!1)
|
|
955
995
|
}, [
|
|
956
|
-
|
|
996
|
+
v("div", {
|
|
957
997
|
id: `chart-instructions-${A.value}`,
|
|
958
998
|
class: "sr-only"
|
|
959
|
-
}, [
|
|
960
|
-
|
|
999
|
+
}, [v("p", null, E(I.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1000
|
+
_r.value?.rows?.length ? (S(), h(Oe, {
|
|
961
1001
|
key: 0,
|
|
962
1002
|
uid: A.value,
|
|
963
|
-
head:
|
|
964
|
-
body:
|
|
1003
|
+
head: _r.value.headers,
|
|
1004
|
+
body: _r.value.rows,
|
|
965
1005
|
notice: I.value.a11y.translations.tableAvailable,
|
|
966
1006
|
caption: I.value.a11y.translations.tableCaption
|
|
967
1007
|
}, null, 8, [
|
|
@@ -970,22 +1010,22 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
970
1010
|
"body",
|
|
971
1011
|
"notice",
|
|
972
1012
|
"caption"
|
|
973
|
-
])) :
|
|
974
|
-
I.value.userOptions.buttons.annotator ? (S(),
|
|
1013
|
+
])) : g("", !0),
|
|
1014
|
+
I.value.userOptions.buttons.annotator ? (S(), h(D(Mt), {
|
|
975
1015
|
key: 1,
|
|
976
1016
|
svgRef: D(z),
|
|
977
1017
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
978
1018
|
color: I.value.style.chart.color,
|
|
979
|
-
active:
|
|
1019
|
+
active: $n.value,
|
|
980
1020
|
isCursorPointer: L.value,
|
|
981
|
-
onClose:
|
|
1021
|
+
onClose: er
|
|
982
1022
|
}, {
|
|
983
1023
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
984
|
-
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(
|
|
985
|
-
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(
|
|
986
|
-
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(
|
|
987
|
-
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(
|
|
988
|
-
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(
|
|
1024
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
|
|
1025
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
|
|
1026
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
|
|
1027
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
|
|
1028
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
|
|
989
1029
|
_: 3
|
|
990
1030
|
}, 8, [
|
|
991
1031
|
"svgRef",
|
|
@@ -993,20 +1033,20 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
993
1033
|
"color",
|
|
994
1034
|
"active",
|
|
995
1035
|
"isCursorPointer"
|
|
996
|
-
])) :
|
|
997
|
-
|
|
1036
|
+
])) : g("", !0),
|
|
1037
|
+
Tn.value ? (S(), _("div", {
|
|
998
1038
|
key: 2,
|
|
999
1039
|
ref_key: "noTitle",
|
|
1000
|
-
ref:
|
|
1040
|
+
ref: Kt,
|
|
1001
1041
|
class: "vue-data-ui-no-title-space",
|
|
1002
1042
|
style: "height:36px; width: 100%;background:transparent"
|
|
1003
|
-
}, null, 512)) :
|
|
1004
|
-
I.value.style.chart.title.text ? (S(),
|
|
1043
|
+
}, null, 512)) : g("", !0),
|
|
1044
|
+
I.value.style.chart.title.text ? (S(), _("div", {
|
|
1005
1045
|
key: 3,
|
|
1006
1046
|
ref_key: "chartTitle",
|
|
1007
|
-
ref:
|
|
1008
|
-
}, [(S(),
|
|
1009
|
-
key: `title_${
|
|
1047
|
+
ref: Ut
|
|
1048
|
+
}, [(S(), h(Se, {
|
|
1049
|
+
key: `title_${qt.value}`,
|
|
1010
1050
|
config: {
|
|
1011
1051
|
title: {
|
|
1012
1052
|
cy: "donut-div-title",
|
|
@@ -1017,16 +1057,16 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1017
1057
|
...I.value.style.chart.title.subtitle
|
|
1018
1058
|
}
|
|
1019
1059
|
}
|
|
1020
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1021
|
-
|
|
1022
|
-
I.value.userOptions.show &&
|
|
1060
|
+
}, null, 8, ["config"]))], 512)) : g("", !0),
|
|
1061
|
+
v("div", { id: `legend-top-${A.value}` }, null, 8, $e),
|
|
1062
|
+
I.value.userOptions.show && Rt.value && (D(pn) || D(dn)) ? (S(), h(D(jt), {
|
|
1023
1063
|
ref_key: "userOptionsRef",
|
|
1024
|
-
ref:
|
|
1025
|
-
key: `user_option_${
|
|
1064
|
+
ref: $t,
|
|
1065
|
+
key: `user_option_${Ht.value}`,
|
|
1026
1066
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1027
1067
|
color: I.value.style.chart.color,
|
|
1028
|
-
isPrinting: D(
|
|
1029
|
-
isImaging: D(
|
|
1068
|
+
isPrinting: D(xn),
|
|
1069
|
+
isImaging: D(Sn),
|
|
1030
1070
|
uid: A.value,
|
|
1031
1071
|
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
|
|
1032
1072
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
@@ -1043,26 +1083,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1043
1083
|
chartElement: j.value,
|
|
1044
1084
|
position: I.value.userOptions.position,
|
|
1045
1085
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1046
|
-
isAnnotation:
|
|
1086
|
+
isAnnotation: $n.value,
|
|
1047
1087
|
callbacks: I.value.userOptions.callbacks,
|
|
1048
1088
|
printScale: I.value.userOptions.print.scale,
|
|
1049
1089
|
tableDialog: I.value.table.useDialog,
|
|
1050
1090
|
isCursorPointer: L.value,
|
|
1051
|
-
onToggleFullscreen:
|
|
1052
|
-
onGeneratePdf: D(
|
|
1053
|
-
onGenerateCsv:
|
|
1054
|
-
onGenerateImage:
|
|
1055
|
-
onGenerateSvg:
|
|
1056
|
-
onToggleTable:
|
|
1057
|
-
onToggleLabels:
|
|
1058
|
-
onToggleTooltip:
|
|
1059
|
-
onToggleAnnotator:
|
|
1060
|
-
onCopyAlt:
|
|
1061
|
-
style:
|
|
1062
|
-
},
|
|
1091
|
+
onToggleFullscreen: on,
|
|
1092
|
+
onGeneratePdf: D(Cn),
|
|
1093
|
+
onGenerateCsv: qn,
|
|
1094
|
+
onGenerateImage: dr,
|
|
1095
|
+
onGenerateSvg: ur,
|
|
1096
|
+
onToggleTable: Xn,
|
|
1097
|
+
onToggleLabels: Zn,
|
|
1098
|
+
onToggleTooltip: Qn,
|
|
1099
|
+
onToggleAnnotator: er,
|
|
1100
|
+
onCopyAlt: fr,
|
|
1101
|
+
style: Ve({ visibility: D(pn) ? D(dn) ? "visible" : "hidden" : "visible" })
|
|
1102
|
+
}, Fe({ _: 2 }, [
|
|
1063
1103
|
e.$slots.menuIcon ? {
|
|
1064
1104
|
name: "menuIcon",
|
|
1065
|
-
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(
|
|
1105
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
|
|
1066
1106
|
isOpen: t,
|
|
1067
1107
|
color: n
|
|
1068
1108
|
})), void 0, !0)]),
|
|
@@ -1105,7 +1145,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1105
1145
|
} : void 0,
|
|
1106
1146
|
e.$slots.optionFullscreen ? {
|
|
1107
1147
|
name: "optionFullscreen",
|
|
1108
|
-
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(
|
|
1148
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
|
|
1109
1149
|
toggleFullscreen: t,
|
|
1110
1150
|
isFullscreen: n
|
|
1111
1151
|
})), void 0, !0)]),
|
|
@@ -1113,7 +1153,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1113
1153
|
} : void 0,
|
|
1114
1154
|
e.$slots.optionAnnotator ? {
|
|
1115
1155
|
name: "optionAnnotator",
|
|
1116
|
-
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(
|
|
1156
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
|
|
1117
1157
|
toggleAnnotator: t,
|
|
1118
1158
|
isAnnotator: n
|
|
1119
1159
|
})), void 0, !0)]),
|
|
@@ -1121,7 +1161,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1121
1161
|
} : void 0,
|
|
1122
1162
|
e.$slots.optionAltCopy ? {
|
|
1123
1163
|
name: "optionAltCopy",
|
|
1124
|
-
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(
|
|
1164
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
|
|
1125
1165
|
key: "10"
|
|
1126
1166
|
} : void 0,
|
|
1127
1167
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -1134,38 +1174,38 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1134
1174
|
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1135
1175
|
key: "12"
|
|
1136
1176
|
} : void 0
|
|
1137
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1138
|
-
|
|
1177
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : g("", !0),
|
|
1178
|
+
v("div", et, [(S(), _("svg", {
|
|
1139
1179
|
ref_key: "svgRef",
|
|
1140
1180
|
ref: z,
|
|
1141
1181
|
xmlns: D(le),
|
|
1142
1182
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1143
|
-
class:
|
|
1183
|
+
class: Be({
|
|
1144
1184
|
"vue-data-ui-fullscreen--on": F.value,
|
|
1145
1185
|
"vue-data-ui-fulscreen--off": !F.value,
|
|
1146
1186
|
"vue-data-ui-svg": !0
|
|
1147
1187
|
}),
|
|
1148
1188
|
viewBox: `0 0 ${H.value.width <= 0 ? .001 : H.value.width} ${H.value.height < 0 ? .001 : H.value.height}`,
|
|
1149
|
-
style:
|
|
1189
|
+
style: Ve(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};${hn.value.css}`),
|
|
1150
1190
|
tabindex: "0",
|
|
1151
|
-
onFocus:
|
|
1152
|
-
onBlur:
|
|
1153
|
-
onKeydown:
|
|
1154
|
-
}, [
|
|
1191
|
+
onFocus: pr,
|
|
1192
|
+
onBlur: mr,
|
|
1193
|
+
onKeydown: hr
|
|
1194
|
+
}, [v("g", {
|
|
1155
1195
|
ref_key: "G",
|
|
1156
|
-
ref:
|
|
1196
|
+
ref: nr,
|
|
1157
1197
|
class: "vue-data-ui-g"
|
|
1158
1198
|
}, [
|
|
1159
|
-
|
|
1160
|
-
e.$slots["chart-background"] ? (S(),
|
|
1199
|
+
Le(D(Nt)),
|
|
1200
|
+
e.$slots["chart-background"] ? (S(), _("foreignObject", {
|
|
1161
1201
|
key: 0,
|
|
1162
1202
|
x: 0,
|
|
1163
1203
|
y: 0,
|
|
1164
1204
|
width: H.value.width <= 0 ? .001 : H.value.width,
|
|
1165
1205
|
height: H.value.height < 0 ? .001 : H.value.height,
|
|
1166
1206
|
style: { pointerEvents: "none" }
|
|
1167
|
-
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1168
|
-
|
|
1207
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : g("", !0),
|
|
1208
|
+
v("defs", null, [(S(!0), _(p, null, w(In.value, (e, t) => (S(), h(Ee, {
|
|
1169
1209
|
t: "radial",
|
|
1170
1210
|
id: `radial_${A.value}_${t}`,
|
|
1171
1211
|
key: `radial_${A.value}_${t}`,
|
|
@@ -1176,12 +1216,12 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1176
1216
|
0
|
|
1177
1217
|
],
|
|
1178
1218
|
[
|
|
1179
|
-
`${(1 -
|
|
1180
|
-
D(
|
|
1219
|
+
`${(1 - Pn.value / Fn.value[t]) * 100}%`,
|
|
1220
|
+
D(n)("#FFFFFF", 0),
|
|
1181
1221
|
0
|
|
1182
1222
|
],
|
|
1183
1223
|
[
|
|
1184
|
-
`${(1 -
|
|
1224
|
+
`${(1 - Pn.value / Fn.value[t] / 2) * 100}%`,
|
|
1185
1225
|
"#FFFFFF",
|
|
1186
1226
|
I.value.style.chart.gradientIntensity / 100
|
|
1187
1227
|
],
|
|
@@ -1192,64 +1232,63 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1192
1232
|
]
|
|
1193
1233
|
]
|
|
1194
1234
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1195
|
-
|
|
1235
|
+
v("defs", null, [v("filter", {
|
|
1196
1236
|
id: `blur_${A.value}`,
|
|
1197
1237
|
x: "-50%",
|
|
1198
1238
|
y: "-50%",
|
|
1199
1239
|
width: "200%",
|
|
1200
1240
|
height: "200%"
|
|
1201
|
-
}, [
|
|
1241
|
+
}, [v("feGaussianBlur", {
|
|
1202
1242
|
in: "SourceGraphic",
|
|
1203
1243
|
stdDeviation: 2,
|
|
1204
1244
|
id: `blur_std_${A.value}`
|
|
1205
|
-
}, null, 8,
|
|
1245
|
+
}, null, 8, it), t[4] ||= v("feColorMatrix", {
|
|
1206
1246
|
type: "saturate",
|
|
1207
1247
|
values: "0"
|
|
1208
|
-
}, null, -1)], 8,
|
|
1248
|
+
}, null, -1)], 8, rt), v("filter", {
|
|
1209
1249
|
id: `shadow_${A.value}`,
|
|
1210
1250
|
"color-interpolation-filters": "sRGB"
|
|
1211
|
-
}, [
|
|
1251
|
+
}, [v("feDropShadow", {
|
|
1212
1252
|
dx: "0",
|
|
1213
1253
|
dy: "0",
|
|
1214
1254
|
stdDeviation: "10",
|
|
1215
1255
|
"flood-opacity": "0.5",
|
|
1216
1256
|
"flood-color": I.value.style.chart.layout.donut.shadowColor
|
|
1217
|
-
}, null, 8,
|
|
1218
|
-
|
|
1257
|
+
}, null, 8, ot)], 8, at)]),
|
|
1258
|
+
v("defs", null, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("path", {
|
|
1219
1259
|
key: `path-full-${t}`,
|
|
1220
1260
|
id: `path-full-${t}-${A.value}`,
|
|
1221
1261
|
d: e.fullCirclePath,
|
|
1222
1262
|
fill: "none"
|
|
1223
|
-
}, null, 8,
|
|
1224
|
-
(S(!0),
|
|
1263
|
+
}, null, 8, st))), 128))]),
|
|
1264
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [e.hasData ? (S(!0), _(p, { key: 0 }, w(e.donut.filter((e) => !e.ghost), (e, t) => (S(), _("g", null, [v("path", {
|
|
1225
1265
|
class: "vue-ui-donut-arc-path",
|
|
1226
1266
|
d: e.arcSlice,
|
|
1227
1267
|
fill: e.color,
|
|
1228
1268
|
stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
|
|
1229
1269
|
"stroke-width": I.value.style.chart.layout.donut.borderWidth,
|
|
1230
|
-
filter:
|
|
1231
|
-
}, null, 8,
|
|
1270
|
+
filter: Wn(e, t)
|
|
1271
|
+
}, null, 8, ct)]))), 256)) : (S(!0), _(p, { key: 1 }, w(e.skeleton, (e, t) => (S(), _("g", null, [v("path", {
|
|
1232
1272
|
class: "vue-ui-donut-arc-path",
|
|
1233
1273
|
d: e.arcSlice,
|
|
1234
1274
|
fill: e.color,
|
|
1235
1275
|
stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
|
|
1236
1276
|
"stroke-width": I.value.style.chart.layout.donut.borderWidth
|
|
1237
|
-
}, null, 8,
|
|
1238
|
-
I.value.style.chart.useGradient ? (S(),
|
|
1277
|
+
}, null, 8, lt)]))), 256))]))), 256)),
|
|
1278
|
+
I.value.style.chart.useGradient ? (S(), _("g", ut, [(S(!0), _(p, null, w(In.value, (e, t) => (S(), _("g", null, [v("path", {
|
|
1239
1279
|
d: e.donut.arcSlice,
|
|
1240
1280
|
fill: `url(#radial_${A.value}_${t})`,
|
|
1241
1281
|
stroke: "transparent",
|
|
1242
1282
|
"stroke-width": "0"
|
|
1243
|
-
}, null, 8,
|
|
1244
|
-
I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(),
|
|
1283
|
+
}, null, 8, dt)]))), 256))])) : g("", !0),
|
|
1284
|
+
I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(), _("g", ft, [I.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (S(!0), _(p, { key: 0 }, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (n, r) => (S(), _("g", null, [r === 0 && H.value.width && H.value.height ? (S(), _("text", {
|
|
1245
1285
|
key: 0,
|
|
1246
|
-
class: b({ animated: I.value.useCssAnimation }),
|
|
1247
1286
|
"text-anchor": "middle",
|
|
1248
1287
|
"font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1249
1288
|
"font-weight": I.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1250
1289
|
fill: I.value.style.chart.layout.labels.dataLabels.color,
|
|
1251
1290
|
dy: I.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
|
|
1252
|
-
}, [
|
|
1291
|
+
}, [v("textPath", {
|
|
1253
1292
|
href: `#path-full-${t}-${A.value}`,
|
|
1254
1293
|
startOffset: "50%",
|
|
1255
1294
|
"text-anchor": "middle",
|
|
@@ -1258,9 +1297,8 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1258
1297
|
}, E(I.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? D(oe)({
|
|
1259
1298
|
source: e.name,
|
|
1260
1299
|
length: I.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1261
|
-
}) : e.name), 9,
|
|
1300
|
+
}) : e.name), 9, mt)], 8, pt)) : g("", !0)]))), 256))]))), 256)) : (S(!0), _(p, { key: 1 }, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (t, n) => (S(), _("g", null, [n === 0 && H.value.width && H.value.height ? (S(), _("text", {
|
|
1262
1301
|
key: 0,
|
|
1263
|
-
class: b({ animated: I.value.useCssAnimation }),
|
|
1264
1302
|
x: H.value.width / 2,
|
|
1265
1303
|
y: t.startY - I.value.style.chart.layout.labels.dataLabels.fontSize + I.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1266
1304
|
"text-anchor": "middle",
|
|
@@ -1270,30 +1308,28 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1270
1308
|
}, E(I.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? D(oe)({
|
|
1271
1309
|
source: e.name,
|
|
1272
1310
|
length: I.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1273
|
-
}) : e.name),
|
|
1274
|
-
I.value.style.chart.layout.labels.dataLabels.show ? (S(),
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
y: D(ie)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst && I.value.style.chart.layout.labels.dataLabels.showValue ? I.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1311
|
+
}) : e.name), 9, ht)) : g("", !0)]))), 256))]))), 256))])) : g("", !0),
|
|
1312
|
+
I.value.style.chart.layout.labels.dataLabels.show ? (S(), _("g", gt, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut.filter((e) => !e.ghost), (e, n) => (S(), _("g", { filter: Wn(e, n) }, [Ye(v("text", {
|
|
1313
|
+
opacity: +!!Un(e),
|
|
1314
|
+
"text-anchor": D(re)(e, !0).anchor,
|
|
1315
|
+
x: D(re)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1316
|
+
y: D(se)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst && I.value.style.chart.layout.labels.dataLabels.showValue ? I.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1280
1317
|
fill: I.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : I.value.style.chart.layout.labels.dataLabels.color,
|
|
1281
1318
|
"font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1282
1319
|
"font-weight": I.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1283
|
-
}, E(D(
|
|
1320
|
+
}, E(D(i)(D(u)({
|
|
1284
1321
|
v: e.proportion * 100,
|
|
1285
1322
|
s: "%",
|
|
1286
1323
|
r: I.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1287
|
-
}), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")),
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
y: D(ie)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst || !I.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : I.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1324
|
+
}), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 9, vt), [[qe, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showPercentage]]), Ye(v("text", {
|
|
1325
|
+
opacity: +!!Un(e),
|
|
1326
|
+
"text-anchor": D(re)(e, !0).anchor,
|
|
1327
|
+
x: D(re)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1328
|
+
y: D(se)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst || !I.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : I.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1293
1329
|
fill: I.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : I.value.style.chart.layout.labels.dataLabels.color,
|
|
1294
1330
|
"font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1295
1331
|
"font-weight": I.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1296
|
-
}, E(D(
|
|
1332
|
+
}, E(D(i)(D(d)(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, D(u)({
|
|
1297
1333
|
p: I.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1298
1334
|
v: e.value,
|
|
1299
1335
|
s: I.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1302,38 +1338,38 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1302
1338
|
datapoint: e,
|
|
1303
1339
|
seriesIndex: t,
|
|
1304
1340
|
datapointIndex: n
|
|
1305
|
-
}), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")),
|
|
1306
|
-
(S(!0),
|
|
1341
|
+
}), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 9, yt), [[qe, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showValue]])], 8, _t))), 256))]))), 256))])) : g("", !0),
|
|
1342
|
+
(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (e, t) => (S(), _("g", null, [v("path", {
|
|
1307
1343
|
d: e.arcSlice,
|
|
1308
|
-
fill:
|
|
1309
|
-
onMouseenter: (t) =>
|
|
1344
|
+
fill: Vt.value === e.id ? I.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1345
|
+
onMouseenter: (t) => Hn({
|
|
1310
1346
|
datapoint: e,
|
|
1311
1347
|
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
1312
1348
|
seriesIndex: e.seriesIndex
|
|
1313
1349
|
}),
|
|
1314
|
-
onClick: (n) =>
|
|
1350
|
+
onClick: (n) => Dn({
|
|
1315
1351
|
datapoint: e,
|
|
1316
1352
|
index: t,
|
|
1317
1353
|
seriesIndex: e.seriesIndex
|
|
1318
1354
|
}),
|
|
1319
|
-
onMouseleave: (t) =>
|
|
1355
|
+
onMouseleave: (t) => Bn({
|
|
1320
1356
|
datapoint: e,
|
|
1321
1357
|
seriesIndex: e.seriesIndex
|
|
1322
1358
|
})
|
|
1323
|
-
}, null, 40,
|
|
1359
|
+
}, null, 40, bt)]))), 256))]))), 256)),
|
|
1324
1360
|
T(e.$slots, "svg", { svg: {
|
|
1325
1361
|
...H.value,
|
|
1326
|
-
isPrintingImg: D(
|
|
1327
|
-
isPrintingSvg:
|
|
1362
|
+
isPrintingImg: D(xn) || D(Sn) || en.value,
|
|
1363
|
+
isPrintingSvg: tn.value
|
|
1328
1364
|
} }, void 0, !0)
|
|
1329
|
-
], 512)], 46,
|
|
1365
|
+
], 512)], 46, tt)), e.$slots.hint ? (S(), _("div", xt, [T(e.$slots, "hint", x(b({
|
|
1330
1366
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1331
|
-
isVisible:
|
|
1332
|
-
})), void 0, !0)])) :
|
|
1333
|
-
e.$slots.watermark ? (S(),
|
|
1334
|
-
|
|
1367
|
+
isVisible: an.value
|
|
1368
|
+
})), void 0, !0)])) : g("", !0)]),
|
|
1369
|
+
e.$slots.watermark ? (S(), _("div", St, [T(e.$slots, "watermark", x(b({ isPrinting: D(xn) || D(Sn) || en.value || tn.value })), void 0, !0)])) : g("", !0),
|
|
1370
|
+
Le(D(Dt), {
|
|
1335
1371
|
teleportTo: I.value.style.chart.tooltip.teleportTo,
|
|
1336
|
-
show: V.value.showTooltip &&
|
|
1372
|
+
show: V.value.showTooltip && zt.value,
|
|
1337
1373
|
backgroundColor: I.value.style.chart.tooltip.backgroundColor,
|
|
1338
1374
|
color: I.value.style.chart.tooltip.color,
|
|
1339
1375
|
borderRadius: I.value.style.chart.tooltip.borderRadius,
|
|
@@ -1345,19 +1381,19 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1345
1381
|
offsetX: I.value.style.chart.tooltip.offsetX,
|
|
1346
1382
|
offsetY: I.value.style.chart.tooltip.offsetY,
|
|
1347
1383
|
parent: j.value,
|
|
1348
|
-
content:
|
|
1384
|
+
content: Bt.value,
|
|
1349
1385
|
isFullscreen: F.value,
|
|
1350
|
-
isCustom: D(
|
|
1386
|
+
isCustom: D(de)(I.value.style.chart.tooltip.customFormat),
|
|
1351
1387
|
smooth: I.value.style.chart.tooltip.smooth,
|
|
1352
1388
|
backdropFilter: I.value.style.chart.tooltip.backdropFilter,
|
|
1353
1389
|
smoothForce: I.value.style.chart.tooltip.smoothForce,
|
|
1354
1390
|
smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1355
|
-
isA11yMode:
|
|
1356
|
-
a11yPosition:
|
|
1391
|
+
isA11yMode: rn.value === "keyboard",
|
|
1392
|
+
a11yPosition: nn.value
|
|
1357
1393
|
}, {
|
|
1358
|
-
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(
|
|
1359
|
-
tooltip: O(() => [T(e.$slots, "tooltip", x(
|
|
1360
|
-
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(
|
|
1394
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(b({ ...zn.value })), void 0, !0)]),
|
|
1395
|
+
tooltip: O(() => [T(e.$slots, "tooltip", x(b({ ...zn.value })), void 0, !0)]),
|
|
1396
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(b({ ...zn.value })), void 0, !0)]),
|
|
1361
1397
|
_: 3
|
|
1362
1398
|
}, 8, [
|
|
1363
1399
|
"teleportTo",
|
|
@@ -1383,35 +1419,35 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1383
1419
|
"isA11yMode",
|
|
1384
1420
|
"a11yPosition"
|
|
1385
1421
|
]),
|
|
1386
|
-
|
|
1387
|
-
|
|
1422
|
+
v("div", { id: `legend-bottom-${A.value}` }, null, 8, Ct),
|
|
1423
|
+
Zt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Pe, {
|
|
1388
1424
|
key: 6,
|
|
1389
1425
|
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1390
|
-
}, [I.value.style.chart.legend.show ? (S(),
|
|
1426
|
+
}, [I.value.style.chart.legend.show ? (S(), _("div", {
|
|
1391
1427
|
key: 0,
|
|
1392
1428
|
ref_key: "chartLegend",
|
|
1393
|
-
ref:
|
|
1394
|
-
class:
|
|
1395
|
-
}, [T(e.$slots, "legend", { legend:
|
|
1396
|
-
key: `legend_${n}_${
|
|
1429
|
+
ref: Wt,
|
|
1430
|
+
class: Be({ "vue-ui-nested-donuts-legend": Gn.value.length > 1 })
|
|
1431
|
+
}, [T(e.$slots, "legend", { legend: Gn.value }, () => [(S(!0), _(p, null, w(Gn.value, (e, n) => (S(), h(Me, {
|
|
1432
|
+
key: `legend_${n}_${Yt.value}`,
|
|
1397
1433
|
legendSet: e,
|
|
1398
|
-
config:
|
|
1434
|
+
config: Kn.value,
|
|
1399
1435
|
isCursorPointer: L.value,
|
|
1400
1436
|
onClickMarker: t[0] ||= ({ legend: e }) => Y(e)
|
|
1401
1437
|
}, {
|
|
1402
|
-
legendTitle: O(({ titleSet: e }) => [e[0] && e[0].arcOf ? (S(),
|
|
1403
|
-
item: O(({ legend: e, index: t }) => [
|
|
1438
|
+
legendTitle: O(({ titleSet: e }) => [e[0] && e[0].arcOf ? (S(), _("div", wt, E(e[0].arcOf), 1)) : g("", !0)]),
|
|
1439
|
+
item: O(({ legend: e, index: t }) => [v("div", {
|
|
1404
1440
|
onClick: (t) => Y(e),
|
|
1405
|
-
style:
|
|
1406
|
-
}, E(e.display), 13,
|
|
1407
|
-
legendToggle: O(() => [e.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(
|
|
1441
|
+
style: Ve(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
|
|
1442
|
+
}, E(e.display), 13, Tt)]),
|
|
1443
|
+
legendToggle: O(() => [e.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(ln) ? (S(), h(De, {
|
|
1408
1444
|
key: `toggle-${n}`,
|
|
1409
1445
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1410
1446
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1411
1447
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
1412
1448
|
checked: e.some((e) => W.value.includes(e.id)),
|
|
1413
1449
|
isCursorPointer: L.value,
|
|
1414
|
-
onToggle: (t) =>
|
|
1450
|
+
onToggle: (t) => An(e)
|
|
1415
1451
|
}, null, 8, [
|
|
1416
1452
|
"backgroundColor",
|
|
1417
1453
|
"color",
|
|
@@ -1419,43 +1455,43 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1419
1455
|
"checked",
|
|
1420
1456
|
"isCursorPointer",
|
|
1421
1457
|
"onToggle"
|
|
1422
|
-
])) :
|
|
1458
|
+
])) : g("", !0)]),
|
|
1423
1459
|
_: 2
|
|
1424
1460
|
}, 1032, [
|
|
1425
1461
|
"legendSet",
|
|
1426
1462
|
"config",
|
|
1427
1463
|
"isCursorPointer"
|
|
1428
|
-
]))), 128))], !0)], 2)) :
|
|
1429
|
-
e.$slots.source ? (S(),
|
|
1464
|
+
]))), 128))], !0)], 2)) : g("", !0)], 8, ["to"])) : g("", !0),
|
|
1465
|
+
e.$slots.source ? (S(), _("div", {
|
|
1430
1466
|
key: 7,
|
|
1431
1467
|
ref_key: "source",
|
|
1432
|
-
ref:
|
|
1468
|
+
ref: Gt,
|
|
1433
1469
|
dir: "auto"
|
|
1434
|
-
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1435
|
-
|
|
1470
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1471
|
+
Rt.value && I.value.userOptions.buttons.table ? (S(), h(We(ir.value.component), Re({ key: 8 }, ir.value.props, {
|
|
1436
1472
|
ref_key: "tableUnit",
|
|
1437
|
-
ref:
|
|
1438
|
-
onClose:
|
|
1439
|
-
}),
|
|
1440
|
-
content: O(() => [(S(),
|
|
1441
|
-
key: `table_${
|
|
1442
|
-
colNames:
|
|
1443
|
-
head:
|
|
1444
|
-
body:
|
|
1445
|
-
config:
|
|
1446
|
-
title: I.value.table.useDialog ? "" :
|
|
1473
|
+
ref: Qt,
|
|
1474
|
+
onClose: ar
|
|
1475
|
+
}), Fe({
|
|
1476
|
+
content: O(() => [(S(), h(D(At), {
|
|
1477
|
+
key: `table_${Jt.value}`,
|
|
1478
|
+
colNames: Jn.value.colNames,
|
|
1479
|
+
head: Jn.value.head,
|
|
1480
|
+
body: Jn.value.body,
|
|
1481
|
+
config: Jn.value.config,
|
|
1482
|
+
title: I.value.table.useDialog ? "" : ir.value.title,
|
|
1447
1483
|
withCloseButton: !I.value.table.useDialog,
|
|
1448
1484
|
isCursorPointer: L.value,
|
|
1449
|
-
onClose:
|
|
1485
|
+
onClose: ar
|
|
1450
1486
|
}, {
|
|
1451
|
-
th: O(({ th: e }) => [
|
|
1487
|
+
th: O(({ th: e }) => [v("div", {
|
|
1452
1488
|
innerHTML: e,
|
|
1453
1489
|
style: {
|
|
1454
1490
|
display: "flex",
|
|
1455
1491
|
"align-items": "center"
|
|
1456
1492
|
}
|
|
1457
|
-
}, null, 8,
|
|
1458
|
-
td: O(({ td: e }) => [
|
|
1493
|
+
}, null, 8, Et)]),
|
|
1494
|
+
td: O(({ td: e }) => [Ie(E(e.name || e), 1)]),
|
|
1459
1495
|
_: 1
|
|
1460
1496
|
}, 8, [
|
|
1461
1497
|
"colNames",
|
|
@@ -1469,24 +1505,24 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1469
1505
|
_: 2
|
|
1470
1506
|
}, [I.value.table.useDialog ? {
|
|
1471
1507
|
name: "title",
|
|
1472
|
-
fn: O(() => [
|
|
1508
|
+
fn: O(() => [Ie(E(ir.value.title), 1)]),
|
|
1473
1509
|
key: "0"
|
|
1474
1510
|
} : void 0, I.value.table.useDialog ? {
|
|
1475
1511
|
name: "actions",
|
|
1476
|
-
fn: O(() => [
|
|
1512
|
+
fn: O(() => [v("button", {
|
|
1477
1513
|
tabindex: "0",
|
|
1478
1514
|
class: "vue-ui-user-options-button",
|
|
1479
|
-
onClick: t[1] ||= (e) =>
|
|
1480
|
-
style:
|
|
1481
|
-
}, [
|
|
1515
|
+
onClick: t[1] ||= (e) => qn(I.value.userOptions.callbacks.csv),
|
|
1516
|
+
style: Ve({ cursor: L.value ? "pointer" : "default" })
|
|
1517
|
+
}, [Le(D(Ot), {
|
|
1482
1518
|
name: "fileCsv",
|
|
1483
|
-
stroke:
|
|
1519
|
+
stroke: ir.value.props.color
|
|
1484
1520
|
}, null, 8, ["stroke"])], 4)]),
|
|
1485
1521
|
key: "1"
|
|
1486
|
-
} : void 0]), 1040)) :
|
|
1487
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1488
|
-
], 46,
|
|
1522
|
+
} : void 0]), 1040)) : g("", !0),
|
|
1523
|
+
T(e.$slots, "skeleton", {}, () => [D(ln) ? (S(), h(_e, { key: 0 })) : g("", !0)], !0)
|
|
1524
|
+
], 46, Ze));
|
|
1489
1525
|
}
|
|
1490
|
-
}, [["__scopeId", "data-v-
|
|
1526
|
+
}, [["__scopeId", "data-v-eed076c6"]]);
|
|
1491
1527
|
//#endregion
|
|
1492
|
-
export {
|
|
1528
|
+
export { Xe as n, Dt as t };
|