vue-data-ui 3.25.11 → 3.25.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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 +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, $t as n, D as r, Et as i, Ft as a, Gt as o, Ht as s, Rt as c, S as l, Vt as ee, X as te, at as u, b as ne, et as re, f as ie, ft as ae, i as oe, it as se, n as ce, nt as le, p as ue, qt as de, t as fe, tn as pe, w as me } from "./lib-DOpaUOQx.js";
|
|
3
3
|
import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as _e } from "./useConfig-
|
|
5
|
-
import { t as ve } from "./usePrinter-
|
|
4
|
+
import { t as _e } from "./useConfig-C2uy4ltq.js";
|
|
5
|
+
import { t as ve } from "./usePrinter-BBBooAGP.js";
|
|
6
6
|
import { n as ye, t as be } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as xe } from "./useNestedProp-
|
|
7
|
+
import { t as xe } from "./useNestedProp-Bux0f4iY.js";
|
|
8
8
|
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as Ce } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as we } from "./img-
|
|
11
|
-
import { n as Te } from "./Title-
|
|
10
|
+
import { t as we } from "./img-W50sC9SC.js";
|
|
11
|
+
import { n as Te } from "./Title-DeqmC-vN.js";
|
|
12
12
|
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as ke } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Ae } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Ae } from "./BaseLegendToggle-DGG65LAR.js";
|
|
16
16
|
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Pe } from "./labelUtils-
|
|
20
|
-
import { t as Fe } from "./Legend-
|
|
19
|
+
import { t as Pe } from "./labelUtils-Dvm-7rse.js";
|
|
20
|
+
import { t as Fe } from "./Legend-C0Ln0VNe.js";
|
|
21
21
|
import { t as Ie } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
22
22
|
import { Fragment as d, Teleport as Le, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as y, normalizeStyle as We, onBeforeUnmount as Ge, onMounted as Ke, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as w, toRefs as Ye, unref as T, vShow as Xe, watch as Ze, withCtx as E, withDirectives as Qe } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
@@ -110,23 +110,23 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
110
110
|
"copyAlt"
|
|
111
111
|
],
|
|
112
112
|
setup(e, { expose: Ee, emit: $e }) {
|
|
113
|
-
let At = _(() => import("./Tooltip-
|
|
113
|
+
let At = _(() => import("./Tooltip-DZ4a3XJQ.js")), jt = _(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), Mt = _(() => import("./vue-ui-accordion-yHZMJLaY.js").then((e) => e.n)), Nt = _(() => import("./DataTable-BD1eZ0zB.js")), Pt = _(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), Ft = _(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), It = _(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), Lt = _(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_nested_donuts: Rt } = _e(), { isThemeValid: zt, warnInvalidTheme: Bt } = Se(), D = e, Vt = f({
|
|
114
114
|
get() {
|
|
115
115
|
return !!D.dataset && D.dataset.length;
|
|
116
116
|
},
|
|
117
117
|
set(e) {
|
|
118
118
|
return e;
|
|
119
119
|
}
|
|
120
|
-
}), O = x(
|
|
120
|
+
}), O = x(te()), Ht = x(!1), Ut = x(""), Wt = x(null), Gt = x(0), k = x(null), Kt = x(null), qt = x(null), Jt = x(null), Yt = x(null), Xt = x(0), Zt = x(0), Qt = x(0), A = x(!0), j = x([]), $t = x([]), en = x(!1), tn = x(null), nn = x(null), M = x(null), rn = x({
|
|
121
121
|
x: 0,
|
|
122
122
|
y: 0
|
|
123
|
-
}), an = x("pointer"), on = x(!1),
|
|
124
|
-
function
|
|
125
|
-
|
|
123
|
+
}), an = x("pointer"), on = x(!1), sn = x(!1);
|
|
124
|
+
function cn(e) {
|
|
125
|
+
sn.value = e, Gt.value += 1;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
127
|
+
let N = x(gn()), P = f(() => N.value.style.chart.layout.labels), F = f(() => N.value.style.chart.tooltip), I = f(() => N.value.userOptions), L = f(() => N.value.style.chart.layout), R = f(() => N.value.style.chart);
|
|
128
128
|
he({
|
|
129
|
-
config: () =>
|
|
129
|
+
config: () => N.value,
|
|
130
130
|
dataset: () => D.dataset,
|
|
131
131
|
component: "VueUiNestedDonuts",
|
|
132
132
|
rules: [
|
|
@@ -163,7 +163,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
163
163
|
}
|
|
164
164
|
]
|
|
165
165
|
});
|
|
166
|
-
let
|
|
166
|
+
let z = f(() => N.value.userOptions.useCursorPointer), ln = {
|
|
167
167
|
name: "",
|
|
168
168
|
series: [
|
|
169
169
|
{
|
|
@@ -182,7 +182,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
182
182
|
color: "#CACACA"
|
|
183
183
|
}
|
|
184
184
|
]
|
|
185
|
-
},
|
|
185
|
+
}, un = f(() => pe({
|
|
186
186
|
defaultConfig: {
|
|
187
187
|
useCssAnimation: !1,
|
|
188
188
|
table: { show: !1 },
|
|
@@ -202,62 +202,62 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
202
202
|
}
|
|
203
203
|
} }
|
|
204
204
|
},
|
|
205
|
-
userConfig:
|
|
206
|
-
})), { loading:
|
|
205
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
206
|
+
})), { loading: dn, FINAL_DATASET: B, manualLoading: fn } = ye({
|
|
207
207
|
...Ye(D),
|
|
208
|
-
FINAL_CONFIG:
|
|
209
|
-
prepareConfig:
|
|
208
|
+
FINAL_CONFIG: N,
|
|
209
|
+
prepareConfig: gn,
|
|
210
210
|
callback: () => {
|
|
211
211
|
Promise.resolve().then(async () => {
|
|
212
|
-
await
|
|
212
|
+
await xn();
|
|
213
213
|
});
|
|
214
214
|
},
|
|
215
|
-
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
216
|
-
skeletonConfig:
|
|
217
|
-
defaultConfig:
|
|
218
|
-
userConfig:
|
|
215
|
+
skeletonDataset: D.config?.skeletonDataset ?? [ln, ln],
|
|
216
|
+
skeletonConfig: pe({
|
|
217
|
+
defaultConfig: N.value,
|
|
218
|
+
userConfig: un.value
|
|
219
219
|
})
|
|
220
|
-
}), { userOptionsVisible:
|
|
221
|
-
function
|
|
220
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: N.value }), { svgRef: V } = Ne({ config: R.value.title });
|
|
221
|
+
function gn() {
|
|
222
222
|
let e = xe({
|
|
223
223
|
userConfig: D.config,
|
|
224
224
|
defaultConfig: Rt
|
|
225
|
-
}), t = {},
|
|
226
|
-
if (
|
|
225
|
+
}), t = {}, r = e.theme;
|
|
226
|
+
if (r) {
|
|
227
227
|
if (!zt.value(e)) Bt(e), t = e;
|
|
228
228
|
else {
|
|
229
|
-
let
|
|
230
|
-
userConfig: Ie[
|
|
229
|
+
let i = xe({
|
|
230
|
+
userConfig: Ie[r] || D.config,
|
|
231
231
|
defaultConfig: e
|
|
232
232
|
});
|
|
233
233
|
t = {
|
|
234
234
|
...xe({
|
|
235
235
|
userConfig: D.config,
|
|
236
|
-
defaultConfig:
|
|
236
|
+
defaultConfig: i
|
|
237
237
|
}),
|
|
238
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
238
|
+
customPalette: e.customPalette.length ? e.customPalette : n[r] || ee
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
} else t = e;
|
|
242
242
|
return t;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
let t =
|
|
244
|
+
function _n(e) {
|
|
245
|
+
let t = re(e);
|
|
246
246
|
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
247
247
|
}
|
|
248
|
-
let
|
|
248
|
+
let vn = _n(D.config);
|
|
249
249
|
Ze(() => D.config, (e, t) => {
|
|
250
|
-
let n =
|
|
251
|
-
|
|
252
|
-
let i =
|
|
250
|
+
let n = _n(e), r = n !== vn;
|
|
251
|
+
vn = n;
|
|
252
|
+
let i = gn();
|
|
253
253
|
if (!r) {
|
|
254
|
-
|
|
254
|
+
N.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
dn.value || (N.value = i), pn.value = !N.value.userOptions.showOnChartHover, Cn(), Xt.value += 1, Zt.value += 1, Qt.value += 1, W.value.dataLabels.show = P.value.dataLabels.show, W.value.showTable = N.value.table.show, W.value.showTooltip = F.value.show, G.value.width = R.value.width, G.value.height = R.value.height;
|
|
258
258
|
}, { deep: !0 });
|
|
259
|
-
let
|
|
260
|
-
let { top: e, right: t, bottom: n, left: r } =
|
|
259
|
+
let yn = f(() => {
|
|
260
|
+
let { top: e, right: t, bottom: n, left: r } = R.value.padding;
|
|
261
261
|
return {
|
|
262
262
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
263
263
|
top: e,
|
|
@@ -266,21 +266,21 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
266
266
|
left: r
|
|
267
267
|
};
|
|
268
268
|
});
|
|
269
|
-
function
|
|
269
|
+
function bn(e, t = 1e3, n = 50) {
|
|
270
270
|
return new Promise((r) => {
|
|
271
271
|
let i = e.length;
|
|
272
272
|
j.value = Array(i).fill(0), $t.value = [];
|
|
273
273
|
let a = 0;
|
|
274
|
-
e.forEach((e,
|
|
274
|
+
e.forEach((e, s) => {
|
|
275
275
|
setTimeout(() => {
|
|
276
276
|
let n = performance.now();
|
|
277
|
-
function
|
|
278
|
-
let
|
|
279
|
-
j.value[
|
|
280
|
-
let
|
|
277
|
+
function c(l) {
|
|
278
|
+
let ee = Math.min((l - n) / t, 1), te = e * se(ee);
|
|
279
|
+
j.value[s] = te, j.value = [...j.value];
|
|
280
|
+
let u = [], re = 0;
|
|
281
281
|
D.dataset.forEach((e, t) => {
|
|
282
|
-
let n =
|
|
283
|
-
n > Number.MIN_VALUE &&
|
|
282
|
+
let n = ne(e.series.reduce((e, t) => e + ne(o(t.values).reduce((e, t) => e + t, 0)), 0)) - ne(j.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
|
|
283
|
+
n > Number.MIN_VALUE && u.push({
|
|
284
284
|
name: "__ghost__",
|
|
285
285
|
arcOf: e.name,
|
|
286
286
|
arcOfId: `${O.value}_${t}`,
|
|
@@ -292,19 +292,19 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
292
292
|
fullValue: n,
|
|
293
293
|
absoluteValues: [],
|
|
294
294
|
ghost: !0
|
|
295
|
-
}),
|
|
296
|
-
}), $t.value =
|
|
295
|
+
}), re += e.series.length;
|
|
296
|
+
}), $t.value = u, ee < 1 ? requestAnimationFrame(c) : (a += 1, a === i && r());
|
|
297
297
|
}
|
|
298
|
-
requestAnimationFrame(
|
|
299
|
-
},
|
|
298
|
+
requestAnimationFrame(c);
|
|
299
|
+
}, s * n);
|
|
300
300
|
});
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
async function
|
|
304
|
-
if (
|
|
305
|
-
let e =
|
|
306
|
-
j.value = e.map(() => 0), A.value = !0, $t.value =
|
|
307
|
-
let n = e.series.reduce((e, t) => e +
|
|
303
|
+
async function xn() {
|
|
304
|
+
if (N.value.startAnimation?.show) {
|
|
305
|
+
let e = B.value.flatMap((e) => e.series).map((e) => o(e.values).reduce((e, t) => e + t, 0));
|
|
306
|
+
j.value = e.map(() => 0), A.value = !0, $t.value = B.value.map((e, t) => {
|
|
307
|
+
let n = e.series.reduce((e, t) => e + o(t.values).reduce((e, t) => e + t, 0), 0);
|
|
308
308
|
return {
|
|
309
309
|
name: "__ghost__",
|
|
310
310
|
arcOf: e.name,
|
|
@@ -318,181 +318,181 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
318
318
|
absoluteValues: [],
|
|
319
319
|
ghost: !0
|
|
320
320
|
};
|
|
321
|
-
}), await He(),
|
|
321
|
+
}), await He(), bn(e, N.value.startAnimation.durationMs, N.value.startAnimation.staggerMs).then(() => {
|
|
322
322
|
A.value = !1, $t.value = [];
|
|
323
323
|
});
|
|
324
324
|
} else A.value = !1;
|
|
325
325
|
}
|
|
326
326
|
Ke(async () => {
|
|
327
|
-
en.value = !0,
|
|
327
|
+
en.value = !0, Cn(), await xn();
|
|
328
328
|
});
|
|
329
|
-
let
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
329
|
+
let H = Je(null), Sn = Je(null), U = f(() => N.value.debug);
|
|
330
|
+
function Cn() {
|
|
331
|
+
if (c(D.dataset) ? (u({
|
|
332
332
|
componentName: "VueUiNestedDonuts",
|
|
333
333
|
type: "dataset",
|
|
334
|
-
debug:
|
|
335
|
-
}), Vt.value = !1,
|
|
334
|
+
debug: U.value
|
|
335
|
+
}), Vt.value = !1, fn.value = !0) : fn.value = N.value.loading, N.value.responsive) {
|
|
336
336
|
let e = De(() => {
|
|
337
337
|
let { width: e, height: t } = Oe({
|
|
338
338
|
chart: k.value,
|
|
339
|
-
title:
|
|
340
|
-
legend:
|
|
339
|
+
title: R.value.title.text ? Kt.value : null,
|
|
340
|
+
legend: R.value.legend.show ? qt.value : null,
|
|
341
341
|
source: Jt.value,
|
|
342
342
|
noTitle: Yt.value,
|
|
343
|
-
padding:
|
|
343
|
+
padding: yn.value
|
|
344
344
|
});
|
|
345
345
|
requestAnimationFrame(() => {
|
|
346
|
-
|
|
346
|
+
G.value.width = e, G.value.height = t;
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
|
-
|
|
349
|
+
H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect()), H.value = new ResizeObserver(e), Sn.value = k.value.parentNode, H.value.observe(Sn.value);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
Ge(() => {
|
|
353
|
-
|
|
353
|
+
H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect());
|
|
354
354
|
});
|
|
355
|
-
let { isPrinting:
|
|
355
|
+
let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ve({
|
|
356
356
|
elementId: `nested_donuts_${O.value}`,
|
|
357
|
-
fileName:
|
|
358
|
-
options:
|
|
359
|
-
}),
|
|
360
|
-
dataLabels: { show:
|
|
361
|
-
showTable:
|
|
362
|
-
showTooltip:
|
|
357
|
+
fileName: R.value.title.text || "vue-ui-nested-donuts",
|
|
358
|
+
options: N.value.userOptions.print
|
|
359
|
+
}), On = f(() => N.value.userOptions.show && !R.value.title.text), kn = f(() => me(N.value.customPalette)), W = x({
|
|
360
|
+
dataLabels: { show: P.value.dataLabels.show },
|
|
361
|
+
showTable: N.value.table.show,
|
|
362
|
+
showTooltip: F.value.show
|
|
363
363
|
});
|
|
364
|
-
Ze(
|
|
365
|
-
|
|
366
|
-
dataLabels: { show:
|
|
367
|
-
showTable:
|
|
368
|
-
showTooltip:
|
|
364
|
+
Ze(N, () => {
|
|
365
|
+
W.value = {
|
|
366
|
+
dataLabels: { show: P.value.dataLabels.show },
|
|
367
|
+
showTable: N.value.table.show,
|
|
368
|
+
showTooltip: F.value.show
|
|
369
369
|
};
|
|
370
370
|
}, { immediate: !0 });
|
|
371
|
-
let
|
|
372
|
-
width:
|
|
373
|
-
height:
|
|
374
|
-
}),
|
|
375
|
-
function
|
|
376
|
-
|
|
371
|
+
let G = x({
|
|
372
|
+
width: R.value.width,
|
|
373
|
+
height: R.value.height
|
|
374
|
+
}), K = $e;
|
|
375
|
+
function An({ datapoint: e, index: t, seriesIndex: n }) {
|
|
376
|
+
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
377
377
|
datapoint: e,
|
|
378
378
|
seriesIndex: n
|
|
379
|
-
}),
|
|
379
|
+
}), K("selectDatapoint", {
|
|
380
380
|
datapoint: e,
|
|
381
381
|
index: t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function jn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = se }) {
|
|
385
385
|
let o = performance.now();
|
|
386
|
-
function s(
|
|
387
|
-
let
|
|
388
|
-
r(e + (t - e) *
|
|
386
|
+
function s(c) {
|
|
387
|
+
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
388
|
+
r(e + (t - e) * ee, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
389
389
|
}
|
|
390
390
|
requestAnimationFrame(s);
|
|
391
391
|
}
|
|
392
|
-
let
|
|
393
|
-
|
|
394
|
-
[null, void 0].includes(e.name) &&
|
|
392
|
+
let q = x([]), J = f(() => {
|
|
393
|
+
dn.value, B.value.forEach((e, t) => {
|
|
394
|
+
[null, void 0].includes(e.name) && u({
|
|
395
395
|
componentName: "VueUiNestedDonuts",
|
|
396
396
|
type: "datasetSerieAttribute",
|
|
397
397
|
property: "name",
|
|
398
398
|
index: t,
|
|
399
|
-
debug:
|
|
400
|
-
}), [null, void 0].includes(e.series) ?
|
|
399
|
+
debug: U.value
|
|
400
|
+
}), [null, void 0].includes(e.series) ? u({
|
|
401
401
|
componentName: "VueUiNestedDonuts",
|
|
402
402
|
type: "datasetSerieAttribute",
|
|
403
403
|
property: "series",
|
|
404
404
|
index: t,
|
|
405
|
-
debug:
|
|
406
|
-
}) : e.series.length === 0 ?
|
|
405
|
+
debug: U.value
|
|
406
|
+
}) : e.series.length === 0 ? u({
|
|
407
407
|
componentName: "VueUiNestedDonuts",
|
|
408
408
|
type: "datasetAttributeEmpty",
|
|
409
409
|
property: `series at index ${t}`,
|
|
410
|
-
debug:
|
|
410
|
+
debug: U.value
|
|
411
411
|
}) : e.series.forEach((e, t) => {
|
|
412
|
-
[null, void 0].includes(e.name) &&
|
|
412
|
+
[null, void 0].includes(e.name) && u({
|
|
413
413
|
componentName: "VueUiNestedDonuts",
|
|
414
414
|
type: "datasetSerieAttribute",
|
|
415
415
|
property: "name",
|
|
416
416
|
index: t,
|
|
417
417
|
key: "serie",
|
|
418
|
-
debug:
|
|
419
|
-
}), [null, void 0].includes(e.values) &&
|
|
418
|
+
debug: U.value
|
|
419
|
+
}), [null, void 0].includes(e.values) && u({
|
|
420
420
|
componentName: "VueUiNestedDonuts",
|
|
421
421
|
type: "datasetSerieAttribute",
|
|
422
422
|
property: "values",
|
|
423
423
|
index: t,
|
|
424
424
|
key: "serie",
|
|
425
|
-
debug:
|
|
425
|
+
debug: U.value
|
|
426
426
|
});
|
|
427
427
|
});
|
|
428
428
|
});
|
|
429
429
|
let e = 0;
|
|
430
|
-
return
|
|
430
|
+
return B.value.map((t, n) => ({
|
|
431
431
|
...t,
|
|
432
|
-
total: t.series.filter((e) => !
|
|
432
|
+
total: t.series.filter((e) => !q.value.includes(e.id)).map((e) => o(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
433
433
|
datasetIndex: n,
|
|
434
434
|
id: `${O.value}_${n}`,
|
|
435
|
-
series: t.series.map((r,
|
|
436
|
-
let
|
|
435
|
+
series: t.series.map((r, i) => {
|
|
436
|
+
let a = o(r.values).reduce((e, t) => e + t, 0);
|
|
437
437
|
return {
|
|
438
438
|
name: r.name,
|
|
439
439
|
arcOf: t.name,
|
|
440
440
|
arcOfId: `${O.value}_${n}`,
|
|
441
|
-
id: `${O.value}_${n}_${
|
|
442
|
-
seriesIndex:
|
|
441
|
+
id: `${O.value}_${n}_${i}`,
|
|
442
|
+
seriesIndex: i,
|
|
443
443
|
datasetIndex: n,
|
|
444
|
-
color:
|
|
445
|
-
value: A.value ? j.value[e++] ?? 0 :
|
|
444
|
+
color: l(r.color) || kn.value[i] || ee[i % ee.length],
|
|
445
|
+
value: A.value ? j.value[e++] ?? 0 : a,
|
|
446
446
|
absoluteValues: r.values || []
|
|
447
447
|
};
|
|
448
448
|
})
|
|
449
449
|
}));
|
|
450
450
|
});
|
|
451
451
|
Ze(() => D.dataset, (e) => {
|
|
452
|
-
Array.isArray(e) && e.length > 0 && (
|
|
452
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !1);
|
|
453
453
|
}, { immediate: !0 });
|
|
454
|
-
let
|
|
455
|
-
let n = e.series.filter((e) => !
|
|
454
|
+
let Y = f(() => Math.min(G.value.height, G.value.width) * (L.value.donut.strokeWidth / 512)), Mn = f(() => [...J.value].map((e, t) => {
|
|
455
|
+
let n = e.series.filter((e) => !q.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
456
456
|
return {
|
|
457
457
|
...e,
|
|
458
458
|
total: n,
|
|
459
|
-
series: e.series.filter((e) => !
|
|
459
|
+
series: e.series.filter((e) => !q.value.includes(e.id)).map((e) => ({
|
|
460
460
|
...e,
|
|
461
461
|
proportion: e.value / n
|
|
462
462
|
}))
|
|
463
463
|
};
|
|
464
464
|
}));
|
|
465
|
-
function
|
|
465
|
+
function Nn(e, t, n) {
|
|
466
466
|
let r = 0;
|
|
467
467
|
for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
|
|
468
468
|
return r < t;
|
|
469
469
|
}
|
|
470
|
-
let
|
|
471
|
-
Ze(() =>
|
|
472
|
-
function
|
|
470
|
+
let X = x(Mn.value);
|
|
471
|
+
Ze(() => Mn.value, (e) => X.value = e);
|
|
472
|
+
function Pn(e) {
|
|
473
473
|
let t = e.map((e) => e.id);
|
|
474
|
-
if (e.some((e) =>
|
|
474
|
+
if (e.some((e) => q.value.includes(e.id))) {
|
|
475
475
|
let e = new Set(t);
|
|
476
|
-
|
|
477
|
-
} else
|
|
478
|
-
|
|
476
|
+
q.value = q.value.filter((t) => !e.has(t));
|
|
477
|
+
} else q.value.push(...t);
|
|
478
|
+
K("selectLegend", Mn.value);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Fn(e) {
|
|
481
481
|
let t = D.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
482
|
-
value:
|
|
482
|
+
value: o(e.values).reduce((e, t) => e + t, 0),
|
|
483
483
|
id: `${O.value}_${t}_${n}`,
|
|
484
484
|
arcOfId: `${O.value}_${t}`
|
|
485
485
|
}))).find((t) => t.id === e.id);
|
|
486
486
|
if (!t) return;
|
|
487
|
-
let n =
|
|
487
|
+
let n = J.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = X.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = J.value.find((e) => e.id === t.arcOfId);
|
|
488
488
|
if (!a) return;
|
|
489
|
-
let
|
|
490
|
-
|
|
489
|
+
let s = a.series.map((e) => e.id), c = Nn(s, s.length - 1, q.value);
|
|
490
|
+
q.value.includes(e.id) ? (q.value = q.value.filter((t) => t !== e.id), N.value.serieToggleAnimation.show ? jn({
|
|
491
491
|
from: i,
|
|
492
492
|
to: n,
|
|
493
|
-
duration:
|
|
493
|
+
duration: N.value.serieToggleAnimation.durationMs,
|
|
494
494
|
onUpdate: (t) => {
|
|
495
|
-
|
|
495
|
+
X.value = X.value.map((n) => ({
|
|
496
496
|
...n,
|
|
497
497
|
series: n.series.map((n) => n.id === e.id ? {
|
|
498
498
|
...n,
|
|
@@ -501,20 +501,20 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
501
501
|
}));
|
|
502
502
|
},
|
|
503
503
|
onDone: () => {
|
|
504
|
-
|
|
504
|
+
K("selectLegend", Mn.value);
|
|
505
505
|
}
|
|
506
|
-
}) : (
|
|
506
|
+
}) : (X.value = X.value.map((t) => ({
|
|
507
507
|
...t,
|
|
508
508
|
series: t.series.map((t) => t.id === e.id ? {
|
|
509
509
|
...t,
|
|
510
510
|
value: n
|
|
511
511
|
} : t)
|
|
512
|
-
})),
|
|
512
|
+
})), K("selectLegend", Mn.value))) : c && (N.value.serieToggleAnimation.show ? jn({
|
|
513
513
|
from: i,
|
|
514
514
|
to: 0,
|
|
515
|
-
duration:
|
|
515
|
+
duration: N.value.serieToggleAnimation.durationMs,
|
|
516
516
|
onUpdate: (t) => {
|
|
517
|
-
|
|
517
|
+
X.value = X.value.map((n) => ({
|
|
518
518
|
...n,
|
|
519
519
|
series: n.series.map((n) => n.id === e.id ? {
|
|
520
520
|
...n,
|
|
@@ -523,40 +523,40 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
523
523
|
}));
|
|
524
524
|
},
|
|
525
525
|
onDone: () => {
|
|
526
|
-
|
|
526
|
+
q.value.push(e.id), K("selectLegend", Mn.value);
|
|
527
527
|
}
|
|
528
|
-
}) : (
|
|
528
|
+
}) : (X.value = X.value.map((t) => ({
|
|
529
529
|
...t,
|
|
530
530
|
series: t.series.map((t) => t.id === e.id ? {
|
|
531
531
|
...t,
|
|
532
532
|
value: 0
|
|
533
533
|
} : t)
|
|
534
|
-
})),
|
|
535
|
-
}
|
|
536
|
-
function Fn(e) {
|
|
537
|
-
return Y.value.length ? Y.value.flatMap((e) => e.series).filter((t) => t.name === e) || (W.value && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (W.value && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
534
|
+
})), q.value.push(e.id), K("selectLegend", Mn.value)));
|
|
538
535
|
}
|
|
539
536
|
function In(e) {
|
|
540
|
-
|
|
541
|
-
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
542
|
-
J.value.includes(e.id) && Pn({ id: e.id });
|
|
543
|
-
}) : J.value.includes(t.id) && Pn({ id: t.id }));
|
|
537
|
+
return J.value.length ? J.value.flatMap((e) => e.series).filter((t) => t.name === e) || (U.value && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (U.value && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
544
538
|
}
|
|
545
539
|
function Ln(e) {
|
|
546
|
-
let t =
|
|
540
|
+
let t = In(e);
|
|
547
541
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
548
|
-
|
|
549
|
-
}) :
|
|
542
|
+
q.value.includes(e.id) && Fn({ id: e.id });
|
|
543
|
+
}) : q.value.includes(t.id) && Fn({ id: t.id }));
|
|
550
544
|
}
|
|
551
|
-
|
|
552
|
-
let
|
|
545
|
+
function Rn(e) {
|
|
546
|
+
let t = In(e);
|
|
547
|
+
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
548
|
+
q.value.includes(e.id) || Fn({ id: e.id });
|
|
549
|
+
}) : q.value.includes(t.id) || Fn({ id: t.id }));
|
|
550
|
+
}
|
|
551
|
+
let zn = f(() => Y.value / J.value.length * L.value.donut.spacingRatio), Bn = f(() => X.value.map((e, t) => Y.value - t * Y.value / J.value.length)), Z = f(() => X.value.map((e, t) => {
|
|
552
|
+
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = Y.value - t * Y.value / X.value.length, i = A.value ? $t.value.find((e) => e.datasetIndex === t) : null, o = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
553
553
|
...e,
|
|
554
554
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
555
555
|
})), s = a({ series: [{
|
|
556
556
|
name: "_",
|
|
557
|
-
color:
|
|
557
|
+
color: L.value.donut.emptyFill,
|
|
558
558
|
value: 1
|
|
559
|
-
}] },
|
|
559
|
+
}] }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, zn.value), c = `M ${G.value.width / 2},${G.value.height / 2 + r}
|
|
560
560
|
a ${r},${r} 0 1,1 0,${-2 * r}
|
|
561
561
|
a ${r},${r} 0 1,1 0,${2 * r}`;
|
|
562
562
|
return {
|
|
@@ -564,18 +564,18 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
564
564
|
hasData: n,
|
|
565
565
|
radius: r,
|
|
566
566
|
skeleton: s,
|
|
567
|
-
fullCirclePath:
|
|
568
|
-
donut: a({ series: o },
|
|
567
|
+
fullCirclePath: c,
|
|
568
|
+
donut: a({ series: o }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, zn.value)
|
|
569
569
|
};
|
|
570
|
-
})), Vn = f(() => [...
|
|
571
|
-
let n = t *
|
|
570
|
+
})), Vn = f(() => [...J.value].map((e, t) => {
|
|
571
|
+
let n = t * Y.value / J.value.length;
|
|
572
572
|
return {
|
|
573
573
|
sizeRatio: n,
|
|
574
|
-
donut: a({ series: [{ value: 1 }] },
|
|
574
|
+
donut: a({ series: [{ value: 1 }] }, G.value.width / 2, G.value.height / 2, Y.value - n, Y.value - n, 1.99999, 2, 1, 360, 105.25, Y.value / J.value.length * L.value.donut.spacingRatio)[0]
|
|
575
575
|
};
|
|
576
576
|
})), Hn = x(null), Un = x(null), Wn = x(null), Gn = x(null);
|
|
577
577
|
function Kn({ datapoint: e, seriesIndex: t }) {
|
|
578
|
-
|
|
578
|
+
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
579
579
|
datapoint: e,
|
|
580
580
|
seriesIndex: t
|
|
581
581
|
}), Ht.value = !1, Hn.value = null, Wt.value = null, Un.value = null, Wn.value = null, M.value = null, an.value = "pointer";
|
|
@@ -589,63 +589,63 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
589
589
|
showPercentage: r
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
function Jn({ datapoint: e, _relativeIndex:
|
|
593
|
-
|
|
592
|
+
function Jn({ datapoint: e, _relativeIndex: n, seriesIndex: r, triggerMode: a = "pointer" }) {
|
|
593
|
+
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
594
594
|
datapoint: e,
|
|
595
595
|
seriesIndex: r
|
|
596
|
-
}), an.value =
|
|
596
|
+
}), an.value = a, M.value = r, Hn.value = e.arcOfId, Un.value = e.id, Wn.value = r, Wt.value = e.id, Gn.value = {
|
|
597
597
|
datapoint: e,
|
|
598
598
|
seriesIndex: r,
|
|
599
|
-
series:
|
|
600
|
-
config:
|
|
599
|
+
series: X.value,
|
|
600
|
+
config: N.value
|
|
601
601
|
};
|
|
602
|
-
let
|
|
603
|
-
if (
|
|
602
|
+
let o = F.value.customFormat;
|
|
603
|
+
if (i(o) && ae(() => o({
|
|
604
604
|
seriesIndex: r,
|
|
605
605
|
datapoint: e,
|
|
606
|
-
series:
|
|
607
|
-
config:
|
|
608
|
-
}))) Ut.value =
|
|
606
|
+
series: X.value,
|
|
607
|
+
config: N.value
|
|
608
|
+
}))) Ut.value = o({
|
|
609
609
|
seriesIndex: r,
|
|
610
610
|
datapoint: e,
|
|
611
|
-
series:
|
|
612
|
-
config:
|
|
611
|
+
series: X.value,
|
|
612
|
+
config: N.value
|
|
613
613
|
});
|
|
614
614
|
else {
|
|
615
|
-
let
|
|
616
|
-
if (
|
|
617
|
-
let
|
|
618
|
-
|
|
619
|
-
if (!
|
|
620
|
-
|
|
621
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${
|
|
615
|
+
let n = "";
|
|
616
|
+
if (F.value.showAllItemsAtIndex && q.value.length === 0) {
|
|
617
|
+
let i = X.value.map((e) => e.series.find((e) => e.seriesIndex === r));
|
|
618
|
+
i.forEach((a, o) => {
|
|
619
|
+
if (!a) return "";
|
|
620
|
+
n += `
|
|
621
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o < i.length - 1 ? `border-bottom:1px solid ${F.value.borderColor}` : ""}">
|
|
622
622
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
623
|
-
<svg viewBox="0 0 20 20" height="${
|
|
624
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
623
|
+
<svg viewBox="0 0 20 20" height="${F.value.fontSize}" width="${F.value.fontSize}">
|
|
624
|
+
<circle cx="10" cy="10" r="10" fill="${a.color}"/>
|
|
625
625
|
</svg>
|
|
626
626
|
<span>
|
|
627
|
-
${
|
|
627
|
+
${a.arcOf ?? ""} - ${a.name}
|
|
628
628
|
</span>
|
|
629
629
|
</div>
|
|
630
630
|
<span>
|
|
631
631
|
<b>
|
|
632
632
|
${qn({
|
|
633
|
-
config:
|
|
634
|
-
showVal:
|
|
635
|
-
showPercentage:
|
|
636
|
-
val: oe(
|
|
637
|
-
p:
|
|
633
|
+
config: R.value.tooltip,
|
|
634
|
+
showVal: F.value.showValue,
|
|
635
|
+
showPercentage: F.value.showPercentage,
|
|
636
|
+
val: oe(L.value.labels.dataLabels.formatter, e.value, t({
|
|
637
|
+
p: R.value.layout.labels.dataLabels.prefix,
|
|
638
638
|
v: e.value,
|
|
639
|
-
s:
|
|
640
|
-
r:
|
|
639
|
+
s: R.value.layout.labels.dataLabels.suffix,
|
|
640
|
+
r: R.value.tooltip.roundingValue
|
|
641
641
|
}), {
|
|
642
642
|
datapoint: e,
|
|
643
643
|
seriesIndex: r
|
|
644
644
|
}),
|
|
645
|
-
percentage:
|
|
646
|
-
v:
|
|
645
|
+
percentage: t({
|
|
646
|
+
v: a.proportion * 100,
|
|
647
647
|
s: "%",
|
|
648
|
-
r:
|
|
648
|
+
r: R.value.tooltip.roundingPercentage
|
|
649
649
|
})
|
|
650
650
|
})}
|
|
651
651
|
</b>
|
|
@@ -653,173 +653,173 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
653
653
|
</div>
|
|
654
654
|
`;
|
|
655
655
|
});
|
|
656
|
-
} else
|
|
657
|
-
p:
|
|
656
|
+
} else n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, n += `<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>`, F.value.showValue && (n += `<b>${oe(P.value.dataLabels.formatter, e.value, t({
|
|
657
|
+
p: P.value.dataLabels.prefix,
|
|
658
658
|
v: e.value,
|
|
659
|
-
s:
|
|
660
|
-
r:
|
|
659
|
+
s: P.value.dataLabels.suffix,
|
|
660
|
+
r: F.value.roundingValue
|
|
661
661
|
}), {
|
|
662
662
|
datapoint: e,
|
|
663
663
|
seriesIndex: r
|
|
664
|
-
})}</b>`),
|
|
664
|
+
})}</b>`), F.value.showPercentage && (F.value.showValue ? n += `<span>(${t({
|
|
665
665
|
v: e.proportion * 100,
|
|
666
666
|
s: "%",
|
|
667
|
-
r:
|
|
668
|
-
})})</span></div>` :
|
|
667
|
+
r: F.value.roundingPercentage
|
|
668
|
+
})})</span></div>` : n += `<b>${t({
|
|
669
669
|
v: e.proportion * 100,
|
|
670
670
|
s: "%",
|
|
671
|
-
r:
|
|
671
|
+
r: F.value.roundingPercentage
|
|
672
672
|
})}</b></div>`);
|
|
673
|
-
Ut.value = `<div style="font-size:${
|
|
673
|
+
Ut.value = `<div style="font-size:${F.value.fontSize}px">${n}</div>`;
|
|
674
674
|
}
|
|
675
675
|
Ht.value = !0;
|
|
676
676
|
}
|
|
677
677
|
function Yn(e) {
|
|
678
|
-
return e.proportion * 100 >
|
|
678
|
+
return e.proportion * 100 > P.value.dataLabels.hideUnderValue;
|
|
679
679
|
}
|
|
680
680
|
function Xn(e, t) {
|
|
681
|
-
if (!
|
|
682
|
-
if (
|
|
683
|
-
if (!
|
|
681
|
+
if (!N.value.useBlurOnHover) return "";
|
|
682
|
+
if (F.value.showAllItemsAtIndex && q.value.length === 0) return [null, void 0].includes(Wn.value) || Wn.value === t ? "" : `url(#blur_${O.value})`;
|
|
683
|
+
if (!F.value.showAllItemsAtIndex || q.value.length) return [null, void 0].includes(Un.value) || Un.value === e.id ? "" : `url(#blur_${O.value})`;
|
|
684
684
|
}
|
|
685
|
-
let Zn = f(() =>
|
|
686
|
-
let
|
|
687
|
-
let
|
|
688
|
-
return
|
|
689
|
-
}).reduce((e, t) => e + t, 0) :
|
|
690
|
-
return e.series.map((e,
|
|
691
|
-
let
|
|
692
|
-
val: oe(
|
|
693
|
-
p:
|
|
694
|
-
v:
|
|
695
|
-
s:
|
|
696
|
-
r:
|
|
685
|
+
let Zn = f(() => J.value.map((e, n) => {
|
|
686
|
+
let r = e.series.filter((e) => !q.value.includes(e.id)), i = A.value ? r.map((e) => {
|
|
687
|
+
let t = B.value[n].series.findIndex((t) => t.name === e.name);
|
|
688
|
+
return o(B.value[n].series[t].values).reduce((e, t) => e + t, 0);
|
|
689
|
+
}).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
690
|
+
return e.series.map((e, r) => {
|
|
691
|
+
let a = o(B.value[n].series[r].values).reduce((e, t) => e + t, 0), s = A.value ? a : e.value, c = qn({
|
|
692
|
+
val: oe(P.value.dataLabels.formatter, s, t({
|
|
693
|
+
p: P.value.dataLabels.prefix,
|
|
694
|
+
v: s,
|
|
695
|
+
s: P.value.dataLabels.suffix,
|
|
696
|
+
r: R.value.legend.roundingValue
|
|
697
697
|
}), {
|
|
698
698
|
datapoint: e,
|
|
699
|
-
seriesIndex:
|
|
699
|
+
seriesIndex: r
|
|
700
700
|
}),
|
|
701
|
-
percentage: isNaN(
|
|
702
|
-
v:
|
|
701
|
+
percentage: isNaN(s / i) || q.value.includes(e.id) ? "-" : t({
|
|
702
|
+
v: s / i * 100,
|
|
703
703
|
s: "%",
|
|
704
|
-
r:
|
|
704
|
+
r: R.value.legend.roundingPercentage
|
|
705
705
|
}),
|
|
706
|
-
showVal:
|
|
707
|
-
showPercentage:
|
|
708
|
-
config:
|
|
709
|
-
}),
|
|
706
|
+
showVal: R.value.legend.showValue,
|
|
707
|
+
showPercentage: R.value.legend.showPercentage,
|
|
708
|
+
config: R.value.legend
|
|
709
|
+
}), l = `${e.name}${R.value.legend.showPercentage || R.value.legend.showValue ? ": " : ""}${c}`;
|
|
710
710
|
return {
|
|
711
711
|
name: e.name,
|
|
712
712
|
color: e.color,
|
|
713
|
-
value:
|
|
714
|
-
display:
|
|
715
|
-
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${
|
|
713
|
+
value: s,
|
|
714
|
+
display: l,
|
|
715
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
|
|
716
716
|
shape: "circle",
|
|
717
717
|
arcOf: e.arcOf,
|
|
718
718
|
id: e.id,
|
|
719
|
-
seriesIndex:
|
|
720
|
-
datasetIndex:
|
|
721
|
-
total:
|
|
722
|
-
opacity:
|
|
723
|
-
segregate: () =>
|
|
724
|
-
isSegregated:
|
|
719
|
+
seriesIndex: r,
|
|
720
|
+
datasetIndex: n,
|
|
721
|
+
total: i,
|
|
722
|
+
opacity: q.value.includes(e.id) ? .5 : 1,
|
|
723
|
+
segregate: () => Fn(e),
|
|
724
|
+
isSegregated: q.value.includes(e.id)
|
|
725
725
|
};
|
|
726
726
|
});
|
|
727
727
|
})), Qn = f(() => ({
|
|
728
728
|
cy: "nested-donuts-legend",
|
|
729
|
-
backgroundColor:
|
|
730
|
-
color:
|
|
731
|
-
fontSize:
|
|
729
|
+
backgroundColor: R.value.legend.backgroundColor,
|
|
730
|
+
color: R.value.legend.color,
|
|
731
|
+
fontSize: R.value.legend.fontSize,
|
|
732
732
|
paddingBottom: 12,
|
|
733
|
-
fontWeight:
|
|
733
|
+
fontWeight: R.value.legend.bold ? "bold" : ""
|
|
734
734
|
})), Q = f(() => ({
|
|
735
|
-
head:
|
|
735
|
+
head: X.value.flatMap((e) => e.series.map((t) => ({
|
|
736
736
|
name: `${e.name} - ${t.name}`,
|
|
737
737
|
color: t.color,
|
|
738
738
|
total: e.total
|
|
739
739
|
}))),
|
|
740
|
-
body:
|
|
740
|
+
body: X.value.flatMap((e) => e.series.map((e) => e.value))
|
|
741
741
|
}));
|
|
742
742
|
function $n(e = null) {
|
|
743
743
|
He(() => {
|
|
744
|
-
let
|
|
744
|
+
let t = Q.value.head.map((e, t) => [
|
|
745
745
|
[e.name],
|
|
746
746
|
[Q.value.body[t]],
|
|
747
747
|
[isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
|
|
748
|
-
]),
|
|
749
|
-
[
|
|
750
|
-
[
|
|
748
|
+
]), n = [
|
|
749
|
+
[R.value.title.text],
|
|
750
|
+
[R.value.title.subtitle.text],
|
|
751
751
|
[
|
|
752
752
|
[""],
|
|
753
753
|
["val"],
|
|
754
754
|
["%"]
|
|
755
755
|
]
|
|
756
|
-
].concat(
|
|
757
|
-
e ? e(
|
|
758
|
-
csvContent:
|
|
759
|
-
title:
|
|
756
|
+
].concat(t), i = r(n);
|
|
757
|
+
e ? e(i) : le({
|
|
758
|
+
csvContent: i,
|
|
759
|
+
title: R.value.title.text || "vue-ui-nested-donuts"
|
|
760
760
|
});
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
763
|
let er = f(() => {
|
|
764
764
|
let e = [
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
],
|
|
769
|
-
let
|
|
770
|
-
p:
|
|
771
|
-
v: Q.value.body[
|
|
772
|
-
s:
|
|
773
|
-
r:
|
|
765
|
+
N.value.table.columnNames.series,
|
|
766
|
+
N.value.table.columnNames.value,
|
|
767
|
+
N.value.table.columnNames.percentage
|
|
768
|
+
], n = Q.value.head.map((e, n) => {
|
|
769
|
+
let r = t({
|
|
770
|
+
p: P.value.dataLabels.prefix,
|
|
771
|
+
v: Q.value.body[n],
|
|
772
|
+
s: P.value.dataLabels.suffix,
|
|
773
|
+
r: N.value.table.td.roundingValue
|
|
774
774
|
});
|
|
775
775
|
return [
|
|
776
776
|
{
|
|
777
777
|
color: e.color,
|
|
778
778
|
name: e.name
|
|
779
779
|
},
|
|
780
|
-
|
|
781
|
-
isNaN(Q.value.body[
|
|
782
|
-
v: Q.value.body[
|
|
780
|
+
r,
|
|
781
|
+
isNaN(Q.value.body[n] / e.total) ? "-" : t({
|
|
782
|
+
v: Q.value.body[n] / e.total * 100,
|
|
783
783
|
s: "%",
|
|
784
|
-
r:
|
|
784
|
+
r: N.value.table.td.roundingPercentage
|
|
785
785
|
})
|
|
786
786
|
];
|
|
787
|
-
}),
|
|
787
|
+
}), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
|
|
788
788
|
th: {
|
|
789
|
-
backgroundColor:
|
|
790
|
-
color:
|
|
791
|
-
outline:
|
|
789
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
790
|
+
color: N.value.table.th.color,
|
|
791
|
+
outline: N.value.table.th.outline
|
|
792
792
|
},
|
|
793
793
|
td: {
|
|
794
|
-
backgroundColor:
|
|
795
|
-
color:
|
|
796
|
-
outline:
|
|
794
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
795
|
+
color: N.value.table.td.color,
|
|
796
|
+
outline: N.value.table.td.outline
|
|
797
797
|
},
|
|
798
|
-
breakpoint:
|
|
798
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
799
799
|
};
|
|
800
800
|
return {
|
|
801
801
|
colNames: [
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
802
|
+
N.value.table.columnNames.series,
|
|
803
|
+
N.value.table.columnNames.value,
|
|
804
|
+
N.value.table.columnNames.percentage
|
|
805
805
|
],
|
|
806
806
|
head: e,
|
|
807
|
-
body:
|
|
808
|
-
a11yBody:
|
|
809
|
-
config:
|
|
807
|
+
body: n,
|
|
808
|
+
a11yBody: r,
|
|
809
|
+
config: i
|
|
810
810
|
};
|
|
811
811
|
});
|
|
812
812
|
function tr() {
|
|
813
|
-
return
|
|
813
|
+
return J.value;
|
|
814
814
|
}
|
|
815
815
|
function nr() {
|
|
816
|
-
|
|
816
|
+
W.value.showTable = !W.value.showTable;
|
|
817
817
|
}
|
|
818
818
|
function rr() {
|
|
819
|
-
|
|
819
|
+
W.value.dataLabels.show = !W.value.dataLabels.show;
|
|
820
820
|
}
|
|
821
821
|
function ir() {
|
|
822
|
-
|
|
822
|
+
W.value.showTooltip = !W.value.showTooltip;
|
|
823
823
|
}
|
|
824
824
|
let ar = x(!1);
|
|
825
825
|
function or() {
|
|
@@ -836,7 +836,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
836
836
|
return {
|
|
837
837
|
imageUri: i,
|
|
838
838
|
base64: a,
|
|
839
|
-
title:
|
|
839
|
+
title: R.value.title.text,
|
|
840
840
|
width: t,
|
|
841
841
|
height: n,
|
|
842
842
|
aspectRatio: r
|
|
@@ -846,71 +846,71 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
846
846
|
function lr() {
|
|
847
847
|
if (!cr.value) return;
|
|
848
848
|
let { x: e, y: t, width: n, height: r } = cr.value.getBBox();
|
|
849
|
-
|
|
849
|
+
V.value && V.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
850
850
|
}
|
|
851
851
|
let ur = f(() => {
|
|
852
|
-
let e =
|
|
852
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = W.value.showTable;
|
|
853
853
|
return {
|
|
854
854
|
component: e ? Lt : Mt,
|
|
855
|
-
title: `${
|
|
855
|
+
title: `${R.value.title.text}${R.value.title.subtitle.text ? `: ${R.value.title.subtitle.text}` : ""}`,
|
|
856
856
|
props: e ? {
|
|
857
|
-
backgroundColor:
|
|
858
|
-
color:
|
|
859
|
-
headerColor:
|
|
860
|
-
headerBg:
|
|
861
|
-
isFullscreen:
|
|
857
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
858
|
+
color: N.value.table.th.color,
|
|
859
|
+
headerColor: N.value.table.th.color,
|
|
860
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
861
|
+
isFullscreen: sn.value,
|
|
862
862
|
fullscreenParent: k.value,
|
|
863
863
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
864
|
-
isCursorPointer:
|
|
864
|
+
isCursorPointer: z.value
|
|
865
865
|
} : {
|
|
866
866
|
hideDetails: !0,
|
|
867
867
|
config: {
|
|
868
868
|
open: t,
|
|
869
869
|
maxHeight: 1e4,
|
|
870
870
|
body: {
|
|
871
|
-
backgroundColor:
|
|
872
|
-
color:
|
|
871
|
+
backgroundColor: R.value.backgroundColor,
|
|
872
|
+
color: R.value.color
|
|
873
873
|
},
|
|
874
874
|
head: {
|
|
875
|
-
backgroundColor:
|
|
876
|
-
color:
|
|
875
|
+
backgroundColor: R.value.backgroundColor,
|
|
876
|
+
color: R.value.color
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
};
|
|
881
881
|
});
|
|
882
|
-
Ze(() =>
|
|
883
|
-
|
|
882
|
+
Ze(() => W.value.showTable, (e) => {
|
|
883
|
+
N.value.table.show || (e && N.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
|
|
884
884
|
});
|
|
885
885
|
function dr() {
|
|
886
|
-
|
|
886
|
+
W.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
|
|
887
887
|
}
|
|
888
|
-
let fr = f(() =>
|
|
888
|
+
let fr = f(() => R.value.backgroundColor), pr = f(() => R.value.legend), mr = f(() => R.value.title), hr = f(() => Zn.value.flat().map((e) => ({
|
|
889
889
|
...e,
|
|
890
890
|
name: e.svgDisplay
|
|
891
891
|
}))), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = Ce({
|
|
892
|
-
svg:
|
|
892
|
+
svg: V,
|
|
893
893
|
title: mr,
|
|
894
894
|
legend: pr,
|
|
895
895
|
legendItems: hr,
|
|
896
896
|
backgroundColor: fr,
|
|
897
|
-
getSvgCallback: () =>
|
|
898
|
-
generateImage:
|
|
897
|
+
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
898
|
+
generateImage: Dn
|
|
899
899
|
});
|
|
900
900
|
async function br() {
|
|
901
|
-
if (
|
|
902
|
-
config:
|
|
903
|
-
dataset:
|
|
904
|
-
}), !
|
|
901
|
+
if (K("copyAlt", {
|
|
902
|
+
config: N.value,
|
|
903
|
+
dataset: X.value
|
|
904
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
905
905
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
906
906
|
return;
|
|
907
907
|
}
|
|
908
|
-
await Promise.resolve(
|
|
909
|
-
config:
|
|
910
|
-
dataset:
|
|
908
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
909
|
+
config: N.value,
|
|
910
|
+
dataset: X.value
|
|
911
911
|
}));
|
|
912
912
|
}
|
|
913
|
-
let $ = f(() =>
|
|
913
|
+
let $ = f(() => Z.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
914
914
|
function xr() {
|
|
915
915
|
M.value = null, on.value = !0;
|
|
916
916
|
}
|
|
@@ -918,7 +918,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
918
918
|
M.value = null, an.value = "pointer", Ht.value = !1, Hn.value = null, Wt.value = null, Un.value = null, Wn.value = null, on.value = !1;
|
|
919
919
|
}
|
|
920
920
|
function Cr(e) {
|
|
921
|
-
if (!
|
|
921
|
+
if (!V.value || ar.value || document.activeElement !== V.value || !$.value.length) return;
|
|
922
922
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
923
923
|
if (!t && !n && !r && !i) return;
|
|
924
924
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -929,27 +929,27 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
929
929
|
if (M.value === null) return;
|
|
930
930
|
let e = $.value[M.value];
|
|
931
931
|
if (!e) return;
|
|
932
|
-
|
|
932
|
+
An({
|
|
933
933
|
datapoint: e,
|
|
934
934
|
index: M.value,
|
|
935
935
|
seriesIndex: e.seriesIndex
|
|
936
936
|
});
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
|
-
let a = M.value, o = Wn.value, s = a !== null && a >= 0 && a < $.value.length,
|
|
940
|
-
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) :
|
|
941
|
-
let
|
|
942
|
-
|
|
943
|
-
datapoint:
|
|
939
|
+
let a = M.value, o = Wn.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
|
|
940
|
+
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;
|
|
941
|
+
let l = $.value[a];
|
|
942
|
+
l && (M.value = a, wr(), Jn({
|
|
943
|
+
datapoint: l,
|
|
944
944
|
relativeIndex: a,
|
|
945
|
-
seriesIndex:
|
|
945
|
+
seriesIndex: l.seriesIndex,
|
|
946
946
|
show: !0,
|
|
947
947
|
triggerMode: "keyboard"
|
|
948
948
|
}));
|
|
949
949
|
}
|
|
950
950
|
function wr() {
|
|
951
|
-
if (!
|
|
952
|
-
let e =
|
|
951
|
+
if (!V.value) return;
|
|
952
|
+
let e = V.value.getBoundingClientRect();
|
|
953
953
|
rn.value = {
|
|
954
954
|
x: e.left + e.width / 2,
|
|
955
955
|
y: e.top + e.height / 2
|
|
@@ -963,38 +963,38 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
963
963
|
autoSize: lr,
|
|
964
964
|
getData: tr,
|
|
965
965
|
getImage: sr,
|
|
966
|
-
generatePdf:
|
|
966
|
+
generatePdf: En,
|
|
967
967
|
generateCsv: $n,
|
|
968
|
-
generateImage:
|
|
968
|
+
generateImage: Dn,
|
|
969
969
|
generateSvg: vr,
|
|
970
|
-
hideSeries:
|
|
971
|
-
showSeries:
|
|
970
|
+
hideSeries: Rn,
|
|
971
|
+
showSeries: Ln,
|
|
972
972
|
toggleTable: nr,
|
|
973
973
|
toggleLabels: rr,
|
|
974
974
|
toggleTooltip: ir,
|
|
975
975
|
toggleAnnotator: or,
|
|
976
|
-
toggleFullscreen:
|
|
976
|
+
toggleFullscreen: cn,
|
|
977
977
|
copyAlt: br
|
|
978
|
-
}), (e,
|
|
978
|
+
}), (e, n) => (b(), h("div", {
|
|
979
979
|
ref_key: "nestedDonutsChart",
|
|
980
980
|
ref: k,
|
|
981
|
-
class: Ue(`vue-data-ui-component vue-ui-nested-donuts ${
|
|
982
|
-
style: We(`font-family:${
|
|
981
|
+
class: Ue(`vue-data-ui-component vue-ui-nested-donuts ${sn.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
982
|
+
style: We(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${R.value.backgroundColor}`),
|
|
983
983
|
id: `nested_donuts_${O.value}`,
|
|
984
|
-
onMouseenter:
|
|
985
|
-
onMouseleave:
|
|
984
|
+
onMouseenter: n[2] ||= () => T(mn)(!0),
|
|
985
|
+
onMouseleave: n[3] ||= () => T(mn)(!1)
|
|
986
986
|
}, [
|
|
987
987
|
g("div", {
|
|
988
988
|
id: `chart-instructions-${O.value}`,
|
|
989
989
|
class: "sr-only"
|
|
990
|
-
}, [g("p", null, w(
|
|
990
|
+
}, [g("p", null, w(N.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
991
991
|
Tr.value?.rows?.length ? (b(), p(je, {
|
|
992
992
|
key: 0,
|
|
993
993
|
uid: O.value,
|
|
994
994
|
head: Tr.value.headers,
|
|
995
995
|
body: Tr.value.rows,
|
|
996
|
-
notice:
|
|
997
|
-
caption:
|
|
996
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
997
|
+
caption: N.value.a11y.translations.tableCaption
|
|
998
998
|
}, null, 8, [
|
|
999
999
|
"uid",
|
|
1000
1000
|
"head",
|
|
@@ -1002,14 +1002,14 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1002
1002
|
"notice",
|
|
1003
1003
|
"caption"
|
|
1004
1004
|
])) : m("", !0),
|
|
1005
|
-
|
|
1005
|
+
I.value.buttons.annotator ? (b(), p(T(Ft), {
|
|
1006
1006
|
key: 1,
|
|
1007
|
-
svgRef: T(
|
|
1008
|
-
backgroundColor:
|
|
1009
|
-
color:
|
|
1007
|
+
svgRef: T(V),
|
|
1008
|
+
backgroundColor: R.value.backgroundColor,
|
|
1009
|
+
color: R.value.color,
|
|
1010
1010
|
active: ar.value,
|
|
1011
|
-
isCursorPointer:
|
|
1012
|
-
palette:
|
|
1011
|
+
isCursorPointer: z.value,
|
|
1012
|
+
palette: I.value.annotatorPalette,
|
|
1013
1013
|
onClose: or
|
|
1014
1014
|
}, {
|
|
1015
1015
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1027,14 +1027,14 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1027
1027
|
"isCursorPointer",
|
|
1028
1028
|
"palette"
|
|
1029
1029
|
])) : m("", !0),
|
|
1030
|
-
|
|
1030
|
+
On.value ? (b(), h("div", {
|
|
1031
1031
|
key: 2,
|
|
1032
1032
|
ref_key: "noTitle",
|
|
1033
1033
|
ref: Yt,
|
|
1034
1034
|
class: "vue-data-ui-no-title-space",
|
|
1035
1035
|
style: "height:36px; width: 100%;background:transparent"
|
|
1036
1036
|
}, null, 512)) : m("", !0),
|
|
1037
|
-
|
|
1037
|
+
R.value.title.text ? (b(), h("div", {
|
|
1038
1038
|
key: 3,
|
|
1039
1039
|
ref_key: "chartTitle",
|
|
1040
1040
|
ref: Kt
|
|
@@ -1043,46 +1043,46 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1043
1043
|
config: {
|
|
1044
1044
|
title: {
|
|
1045
1045
|
cy: "donut-div-title",
|
|
1046
|
-
...
|
|
1046
|
+
...R.value.title
|
|
1047
1047
|
},
|
|
1048
1048
|
subtitle: {
|
|
1049
1049
|
cy: "donut-div-subtitle",
|
|
1050
|
-
...
|
|
1050
|
+
...R.value.title.subtitle
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
1053
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1054
1054
|
g("div", { id: `legend-top-${O.value}` }, null, 8, nt),
|
|
1055
|
-
|
|
1055
|
+
I.value.show && Vt.value && (T(hn) || T(pn)) ? (b(), p(T(Pt), {
|
|
1056
1056
|
ref_key: "userOptionsRef",
|
|
1057
1057
|
ref: nn,
|
|
1058
1058
|
key: `user_option_${Gt.value}`,
|
|
1059
|
-
backgroundColor:
|
|
1060
|
-
color:
|
|
1061
|
-
isPrinting: T(
|
|
1062
|
-
isImaging: T(
|
|
1059
|
+
backgroundColor: R.value.backgroundColor,
|
|
1060
|
+
color: R.value.color,
|
|
1061
|
+
isPrinting: T(wn),
|
|
1062
|
+
isImaging: T(Tn),
|
|
1063
1063
|
uid: O.value,
|
|
1064
|
-
hasTooltip:
|
|
1065
|
-
hasPdf:
|
|
1066
|
-
hasXls:
|
|
1067
|
-
hasImg:
|
|
1068
|
-
hasSvg:
|
|
1069
|
-
hasTable:
|
|
1070
|
-
hasLabel:
|
|
1071
|
-
hasFullscreen:
|
|
1072
|
-
hasAltCopy:
|
|
1073
|
-
isFullscreen:
|
|
1074
|
-
isTooltip:
|
|
1075
|
-
titles: { ...
|
|
1064
|
+
hasTooltip: I.value.buttons.tooltip && F.value.show,
|
|
1065
|
+
hasPdf: I.value.buttons.pdf,
|
|
1066
|
+
hasXls: I.value.buttons.csv,
|
|
1067
|
+
hasImg: I.value.buttons.img,
|
|
1068
|
+
hasSvg: I.value.buttons.svg,
|
|
1069
|
+
hasTable: I.value.buttons.table,
|
|
1070
|
+
hasLabel: I.value.buttons.labels,
|
|
1071
|
+
hasFullscreen: I.value.buttons.fullscreen,
|
|
1072
|
+
hasAltCopy: I.value.buttons.altCopy,
|
|
1073
|
+
isFullscreen: sn.value,
|
|
1074
|
+
isTooltip: W.value.showTooltip,
|
|
1075
|
+
titles: { ...I.value.buttonTitles },
|
|
1076
1076
|
chartElement: k.value,
|
|
1077
|
-
position:
|
|
1078
|
-
hasAnnotator:
|
|
1077
|
+
position: I.value.position,
|
|
1078
|
+
hasAnnotator: I.value.buttons.annotator,
|
|
1079
1079
|
isAnnotation: ar.value,
|
|
1080
|
-
callbacks:
|
|
1081
|
-
printScale:
|
|
1082
|
-
tableDialog:
|
|
1083
|
-
isCursorPointer:
|
|
1084
|
-
onToggleFullscreen:
|
|
1085
|
-
onGeneratePdf: T(
|
|
1080
|
+
callbacks: I.value.callbacks,
|
|
1081
|
+
printScale: I.value.print.scale,
|
|
1082
|
+
tableDialog: N.value.table.useDialog,
|
|
1083
|
+
isCursorPointer: z.value,
|
|
1084
|
+
onToggleFullscreen: cn,
|
|
1085
|
+
onGeneratePdf: T(En),
|
|
1086
1086
|
onGenerateCsv: $n,
|
|
1087
1087
|
onGenerateImage: T(yr),
|
|
1088
1088
|
onGenerateSvg: T(vr),
|
|
@@ -1091,7 +1091,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1091
1091
|
onToggleTooltip: ir,
|
|
1092
1092
|
onToggleAnnotator: or,
|
|
1093
1093
|
onCopyAlt: br,
|
|
1094
|
-
style: We({ visibility: T(
|
|
1094
|
+
style: We({ visibility: T(hn) ? T(pn) ? "visible" : "hidden" : "visible" })
|
|
1095
1095
|
}, Re({ _: 2 }, [
|
|
1096
1096
|
e.$slots.menuIcon ? {
|
|
1097
1097
|
name: "menuIcon",
|
|
@@ -1170,16 +1170,16 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1170
1170
|
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1171
1171
|
g("div", rt, [(b(), h("svg", {
|
|
1172
1172
|
ref_key: "svgRef",
|
|
1173
|
-
ref:
|
|
1173
|
+
ref: V,
|
|
1174
1174
|
xmlns: T(fe),
|
|
1175
1175
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1176
1176
|
class: Ue({
|
|
1177
|
-
"vue-data-ui-fullscreen--on":
|
|
1178
|
-
"vue-data-ui-fulscreen--off": !
|
|
1177
|
+
"vue-data-ui-fullscreen--on": sn.value,
|
|
1178
|
+
"vue-data-ui-fulscreen--off": !sn.value,
|
|
1179
1179
|
"vue-data-ui-svg": !0
|
|
1180
1180
|
}),
|
|
1181
|
-
viewBox: `0 0 ${
|
|
1182
|
-
style: We(`max-width:100%; overflow: visible; background:transparent;color:${
|
|
1181
|
+
viewBox: `0 0 ${G.value.width <= 0 ? .001 : G.value.width} ${G.value.height < 0 ? .001 : G.value.height}`,
|
|
1182
|
+
style: We(`max-width:100%; overflow: visible; background:transparent;color:${R.value.color};${yn.value.css}`),
|
|
1183
1183
|
tabindex: "0",
|
|
1184
1184
|
onFocus: xr,
|
|
1185
1185
|
onBlur: Sr,
|
|
@@ -1194,8 +1194,8 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
x: 0,
|
|
1196
1196
|
y: 0,
|
|
1197
|
-
width:
|
|
1198
|
-
height:
|
|
1197
|
+
width: G.value.width <= 0 ? .001 : G.value.width,
|
|
1198
|
+
height: G.value.height < 0 ? .001 : G.value.height,
|
|
1199
1199
|
style: { pointerEvents: "none" }
|
|
1200
1200
|
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : m("", !0),
|
|
1201
1201
|
g("defs", null, [(b(!0), h(d, null, S(Vn.value, (e, t) => (b(), p(ke, {
|
|
@@ -1209,14 +1209,14 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1209
1209
|
0
|
|
1210
1210
|
],
|
|
1211
1211
|
[
|
|
1212
|
-
`${(1 -
|
|
1213
|
-
T(
|
|
1212
|
+
`${(1 - zn.value / Bn.value[t]) * 100}%`,
|
|
1213
|
+
T(de)("#FFFFFF", 0),
|
|
1214
1214
|
0
|
|
1215
1215
|
],
|
|
1216
1216
|
[
|
|
1217
|
-
`${(1 -
|
|
1217
|
+
`${(1 - zn.value / Bn.value[t] / 2) * 100}%`,
|
|
1218
1218
|
"#FFFFFF",
|
|
1219
|
-
|
|
1219
|
+
R.value.gradientIntensity / 100
|
|
1220
1220
|
],
|
|
1221
1221
|
[
|
|
1222
1222
|
"100%",
|
|
@@ -1235,7 +1235,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1235
1235
|
in: "SourceGraphic",
|
|
1236
1236
|
stdDeviation: 2,
|
|
1237
1237
|
id: `blur_std_${O.value}`
|
|
1238
|
-
}, null, 8, st),
|
|
1238
|
+
}, null, 8, st), n[4] ||= g("feColorMatrix", {
|
|
1239
1239
|
type: "saturate",
|
|
1240
1240
|
values: "0"
|
|
1241
1241
|
}, null, -1)], 8, ot), g("filter", {
|
|
@@ -1246,101 +1246,101 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1246
1246
|
dy: "0",
|
|
1247
1247
|
stdDeviation: "10",
|
|
1248
1248
|
"flood-opacity": "0.5",
|
|
1249
|
-
"flood-color":
|
|
1249
|
+
"flood-color": L.value.donut.shadowColor
|
|
1250
1250
|
}, null, 8, lt)], 8, ct)]),
|
|
1251
|
-
g("defs", null, [(b(!0), h(d, null, S(
|
|
1251
|
+
g("defs", null, [(b(!0), h(d, null, S(Z.value, (e, t) => (b(), h("path", {
|
|
1252
1252
|
key: `path-full-${t}`,
|
|
1253
1253
|
id: `path-full-${t}-${O.value}`,
|
|
1254
1254
|
d: e.fullCirclePath,
|
|
1255
1255
|
fill: "none"
|
|
1256
1256
|
}, null, 8, ut))), 128))]),
|
|
1257
|
-
(b(!0), h(d, null, S(
|
|
1257
|
+
(b(!0), h(d, null, S(Z.value, (e, t) => (b(), h("g", null, [e.hasData ? (b(!0), h(d, { key: 0 }, S(e.donut.filter((e) => !e.ghost), (e, t) => (b(), h("g", null, [g("path", {
|
|
1258
1258
|
class: "vue-ui-donut-arc-path",
|
|
1259
1259
|
d: e.arcSlice,
|
|
1260
1260
|
fill: e.color,
|
|
1261
|
-
stroke:
|
|
1262
|
-
"stroke-width":
|
|
1261
|
+
stroke: L.value.donut.borderColorAuto ? R.value.backgroundColor : L.value.donut.borderColor,
|
|
1262
|
+
"stroke-width": L.value.donut.borderWidth,
|
|
1263
1263
|
filter: Xn(e, t)
|
|
1264
1264
|
}, null, 8, dt)]))), 256)) : (b(!0), h(d, { key: 1 }, S(e.skeleton, (e, t) => (b(), h("g", null, [g("path", {
|
|
1265
1265
|
class: "vue-ui-donut-arc-path",
|
|
1266
1266
|
d: e.arcSlice,
|
|
1267
1267
|
fill: e.color,
|
|
1268
|
-
stroke:
|
|
1269
|
-
"stroke-width":
|
|
1268
|
+
stroke: L.value.donut.borderColorAuto ? R.value.backgroundColor : L.value.donut.borderColor,
|
|
1269
|
+
"stroke-width": L.value.donut.borderWidth
|
|
1270
1270
|
}, null, 8, ft)]))), 256))]))), 256)),
|
|
1271
|
-
|
|
1271
|
+
R.value.useGradient ? (b(), h("g", pt, [(b(!0), h(d, null, S(Vn.value, (e, t) => (b(), h("g", null, [g("path", {
|
|
1272
1272
|
d: e.donut.arcSlice,
|
|
1273
1273
|
fill: `url(#radial_${O.value}_${t})`,
|
|
1274
1274
|
stroke: "transparent",
|
|
1275
1275
|
"stroke-width": "0"
|
|
1276
1276
|
}, null, 8, mt)]))), 256))])) : m("", !0),
|
|
1277
|
-
|
|
1277
|
+
P.value.dataLabels.showDonutName ? (b(), h("g", ht, [P.value.dataLabels.curvedDonutName ? (b(!0), h(d, { key: 0 }, S(Z.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (n, r) => (b(), h("g", null, [r === 0 && G.value.width && G.value.height ? (b(), h("text", {
|
|
1278
1278
|
key: 0,
|
|
1279
1279
|
"text-anchor": "middle",
|
|
1280
|
-
"font-size":
|
|
1281
|
-
"font-weight":
|
|
1282
|
-
fill:
|
|
1283
|
-
dy:
|
|
1280
|
+
"font-size": L.value.labels.dataLabels.fontSize,
|
|
1281
|
+
"font-weight": L.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1282
|
+
fill: L.value.labels.dataLabels.color,
|
|
1283
|
+
dy: L.value.labels.dataLabels.donutNameOffsetY
|
|
1284
1284
|
}, [g("textPath", {
|
|
1285
1285
|
href: `#path-full-${t}-${O.value}`,
|
|
1286
1286
|
startOffset: "50%",
|
|
1287
1287
|
"text-anchor": "middle",
|
|
1288
1288
|
method: "align",
|
|
1289
1289
|
spacing: "auto"
|
|
1290
|
-
}, w(
|
|
1290
|
+
}, w(L.value.labels.dataLabels.donutNameAbbreviation ? T(ce)({
|
|
1291
1291
|
source: e.name,
|
|
1292
|
-
length:
|
|
1293
|
-
}) : e.name), 9, _t)], 8, gt)) : m("", !0)]))), 256))]))), 256)) : (b(!0), h(d, { key: 1 }, S(
|
|
1292
|
+
length: N.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1293
|
+
}) : e.name), 9, _t)], 8, gt)) : m("", !0)]))), 256))]))), 256)) : (b(!0), h(d, { key: 1 }, S(Z.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (t, n) => (b(), h("g", null, [n === 0 && G.value.width && G.value.height ? (b(), h("text", {
|
|
1294
1294
|
key: 0,
|
|
1295
|
-
x:
|
|
1296
|
-
y: t.startY -
|
|
1295
|
+
x: G.value.width / 2,
|
|
1296
|
+
y: t.startY - L.value.labels.dataLabels.fontSize + L.value.labels.dataLabels.donutNameOffsetY,
|
|
1297
1297
|
"text-anchor": "middle",
|
|
1298
|
-
"font-size":
|
|
1299
|
-
"font-weight":
|
|
1300
|
-
fill:
|
|
1301
|
-
}, w(
|
|
1298
|
+
"font-size": L.value.labels.dataLabels.fontSize,
|
|
1299
|
+
"font-weight": L.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1300
|
+
fill: L.value.labels.dataLabels.color
|
|
1301
|
+
}, w(L.value.labels.dataLabels.donutNameAbbreviation ? T(ce)({
|
|
1302
1302
|
source: e.name,
|
|
1303
|
-
length:
|
|
1303
|
+
length: N.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1304
1304
|
}) : e.name), 9, vt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
|
|
1305
|
-
|
|
1305
|
+
P.value.dataLabels.show ? (b(), h("g", yt, [(b(!0), h(d, null, S(Z.value, (e, n) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut.filter((e) => !e.ghost), (e, r) => (b(), h("g", { filter: Xn(e, r) }, [Qe(g("text", {
|
|
1306
1306
|
opacity: +!!Yn(e),
|
|
1307
|
-
"text-anchor": T(
|
|
1308
|
-
x: T(
|
|
1309
|
-
y: T(ue)(e,
|
|
1310
|
-
fill:
|
|
1311
|
-
"font-size":
|
|
1312
|
-
"font-weight":
|
|
1313
|
-
}, w(T(s)(T(
|
|
1307
|
+
"text-anchor": T(ie)(e, !0).anchor,
|
|
1308
|
+
x: T(ie)(e, !1, L.value.labels.dataLabels.offsetX).x || 0,
|
|
1309
|
+
y: T(ue)(e, L.value.labels.dataLabels.offsetY, L.value.labels.dataLabels.offsetY) + (P.value.dataLabels.showValueFirst && P.value.dataLabels.showValue ? L.value.labels.dataLabels.fontSize : 0),
|
|
1310
|
+
fill: P.value.dataLabels.useSerieColor ? e.color : L.value.labels.dataLabels.color,
|
|
1311
|
+
"font-size": P.value.dataLabels.fontSize,
|
|
1312
|
+
"font-weight": P.value.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1313
|
+
}, w(T(s)(T(t)({
|
|
1314
1314
|
v: e.proportion * 100,
|
|
1315
1315
|
s: "%",
|
|
1316
|
-
r:
|
|
1317
|
-
}),
|
|
1316
|
+
r: R.value.layout.labels.dataLabels.roundingPercentage
|
|
1317
|
+
}), L.value.labels.dataLabels.usePercentageParens ? "(" : "", L.value.labels.dataLabels.usePercentageParens ? ")" : "")), 9, xt), [[Xe, W.value.dataLabels.show && P.value.dataLabels.showPercentage]]), Qe(g("text", {
|
|
1318
1318
|
opacity: +!!Yn(e),
|
|
1319
|
-
"text-anchor": T(
|
|
1320
|
-
x: T(
|
|
1321
|
-
y: T(ue)(e,
|
|
1322
|
-
fill:
|
|
1323
|
-
"font-size":
|
|
1324
|
-
"font-weight":
|
|
1325
|
-
}, w(T(s)(T(oe)(
|
|
1326
|
-
p:
|
|
1319
|
+
"text-anchor": T(ie)(e, !0).anchor,
|
|
1320
|
+
x: T(ie)(e, !1, L.value.labels.dataLabels.offsetX).x || 0,
|
|
1321
|
+
y: T(ue)(e, L.value.labels.dataLabels.offsetY, L.value.labels.dataLabels.offsetY) + (P.value.dataLabels.showValueFirst || !P.value.dataLabels.showPercentage ? 0 : L.value.labels.dataLabels.fontSize),
|
|
1322
|
+
fill: P.value.dataLabels.useSerieColor ? e.color : L.value.labels.dataLabels.color,
|
|
1323
|
+
"font-size": P.value.dataLabels.fontSize,
|
|
1324
|
+
"font-weight": P.value.dataLabels.boldValue ? "bold" : "normal"
|
|
1325
|
+
}, w(T(s)(T(oe)(L.value.labels.dataLabels.formatter, e.value, T(t)({
|
|
1326
|
+
p: R.value.layout.labels.dataLabels.prefix,
|
|
1327
1327
|
v: e.value,
|
|
1328
|
-
s:
|
|
1329
|
-
r:
|
|
1328
|
+
s: R.value.layout.labels.dataLabels.suffix,
|
|
1329
|
+
r: R.value.layout.labels.dataLabels.roundingValue
|
|
1330
1330
|
}), {
|
|
1331
1331
|
datapoint: e,
|
|
1332
|
-
seriesIndex:
|
|
1333
|
-
datapointIndex:
|
|
1334
|
-
}),
|
|
1335
|
-
(b(!0), h(d, null, S(
|
|
1332
|
+
seriesIndex: n,
|
|
1333
|
+
datapointIndex: r
|
|
1334
|
+
}), L.value.labels.dataLabels.useValueParens ? "(" : "", L.value.labels.dataLabels.useValueParens ? ")" : "")), 9, St), [[Xe, W.value.dataLabels.show && P.value.dataLabels.showValue]])], 8, bt))), 256))]))), 256))])) : m("", !0),
|
|
1335
|
+
(b(!0), h(d, null, S(Z.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (e, t) => (b(), h("g", null, [g("path", {
|
|
1336
1336
|
d: e.arcSlice,
|
|
1337
|
-
fill: Wt.value === e.id ?
|
|
1337
|
+
fill: Wt.value === e.id ? L.value.donut.selectedColor : "transparent",
|
|
1338
1338
|
onMouseenter: (t) => Jn({
|
|
1339
1339
|
datapoint: e,
|
|
1340
1340
|
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
1341
1341
|
seriesIndex: e.seriesIndex
|
|
1342
1342
|
}),
|
|
1343
|
-
onClick: (n) =>
|
|
1343
|
+
onClick: (n) => An({
|
|
1344
1344
|
datapoint: e,
|
|
1345
1345
|
index: t,
|
|
1346
1346
|
seriesIndex: e.seriesIndex
|
|
@@ -1351,36 +1351,36 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1351
1351
|
})
|
|
1352
1352
|
}, null, 40, Ct)]))), 256))]))), 256)),
|
|
1353
1353
|
C(e.$slots, "svg", { svg: {
|
|
1354
|
-
...
|
|
1355
|
-
isPrintingImg: T(
|
|
1354
|
+
...G.value,
|
|
1355
|
+
isPrintingImg: T(wn) || T(Tn) || T(gr),
|
|
1356
1356
|
isPrintingSvg: T(_r)
|
|
1357
1357
|
} }, void 0, !0)
|
|
1358
1358
|
], 512)], 46, it)), e.$slots.hint ? (b(), h("div", wt, [C(e.$slots, "hint", y(v({
|
|
1359
|
-
hint:
|
|
1359
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1360
1360
|
isVisible: on.value
|
|
1361
1361
|
})), void 0, !0)])) : m("", !0)]),
|
|
1362
|
-
e.$slots.watermark ? (b(), h("div", Tt, [C(e.$slots, "watermark", y(v({ isPrinting: T(
|
|
1362
|
+
e.$slots.watermark ? (b(), h("div", Tt, [C(e.$slots, "watermark", y(v({ isPrinting: T(wn) || T(Tn) || T(gr) || T(_r) })), void 0, !0)])) : m("", !0),
|
|
1363
1363
|
Be(T(At), {
|
|
1364
|
-
teleportTo:
|
|
1365
|
-
show:
|
|
1366
|
-
backgroundColor:
|
|
1367
|
-
color:
|
|
1368
|
-
borderRadius:
|
|
1369
|
-
borderColor:
|
|
1370
|
-
borderWidth:
|
|
1371
|
-
fontSize:
|
|
1372
|
-
backgroundOpacity:
|
|
1373
|
-
position:
|
|
1374
|
-
offsetX:
|
|
1375
|
-
offsetY:
|
|
1364
|
+
teleportTo: F.value.teleportTo,
|
|
1365
|
+
show: W.value.showTooltip && Ht.value,
|
|
1366
|
+
backgroundColor: F.value.backgroundColor,
|
|
1367
|
+
color: F.value.color,
|
|
1368
|
+
borderRadius: F.value.borderRadius,
|
|
1369
|
+
borderColor: F.value.borderColor,
|
|
1370
|
+
borderWidth: F.value.borderWidth,
|
|
1371
|
+
fontSize: F.value.fontSize,
|
|
1372
|
+
backgroundOpacity: F.value.backgroundOpacity,
|
|
1373
|
+
position: F.value.position,
|
|
1374
|
+
offsetX: F.value.offsetX,
|
|
1375
|
+
offsetY: F.value.offsetY,
|
|
1376
1376
|
parent: k.value,
|
|
1377
1377
|
content: Ut.value,
|
|
1378
|
-
isFullscreen:
|
|
1379
|
-
isCustom: T(
|
|
1380
|
-
smooth:
|
|
1381
|
-
backdropFilter:
|
|
1382
|
-
smoothForce:
|
|
1383
|
-
smoothSnapThreshold:
|
|
1378
|
+
isFullscreen: sn.value,
|
|
1379
|
+
isCustom: T(i)(F.value.customFormat),
|
|
1380
|
+
smooth: F.value.smooth,
|
|
1381
|
+
backdropFilter: F.value.backdropFilter,
|
|
1382
|
+
smoothForce: F.value.smoothForce,
|
|
1383
|
+
smoothSnapThreshold: F.value.smoothSnapThreshold,
|
|
1384
1384
|
isA11yMode: an.value === "keyboard",
|
|
1385
1385
|
a11yPosition: rn.value
|
|
1386
1386
|
}, {
|
|
@@ -1413,34 +1413,34 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1413
1413
|
"a11yPosition"
|
|
1414
1414
|
]),
|
|
1415
1415
|
g("div", { id: `legend-bottom-${O.value}` }, null, 8, Et),
|
|
1416
|
-
en.value && (
|
|
1416
|
+
en.value && (R.value.legend.show || e.$slots.legend) ? (b(), p(Le, {
|
|
1417
1417
|
key: 6,
|
|
1418
|
-
to:
|
|
1419
|
-
}, [
|
|
1418
|
+
to: R.value.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1419
|
+
}, [R.value.legend.show ? (b(), h("div", {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
ref_key: "chartLegend",
|
|
1422
1422
|
ref: qt,
|
|
1423
1423
|
class: Ue({ "vue-ui-nested-donuts-legend": Zn.value.length > 1 })
|
|
1424
|
-
}, [C(e.$slots, "legend", { legend: Zn.value }, () => [(b(!0), h(d, null, S(Zn.value, (e,
|
|
1425
|
-
key: `legend_${
|
|
1424
|
+
}, [C(e.$slots, "legend", { legend: Zn.value }, () => [(b(!0), h(d, null, S(Zn.value, (e, t) => (b(), p(Fe, {
|
|
1425
|
+
key: `legend_${t}_${Qt.value}`,
|
|
1426
1426
|
legendSet: e,
|
|
1427
1427
|
config: Qn.value,
|
|
1428
|
-
isCursorPointer:
|
|
1429
|
-
onClickMarker:
|
|
1428
|
+
isCursorPointer: z.value,
|
|
1429
|
+
onClickMarker: n[0] ||= ({ legend: e }) => Fn(e)
|
|
1430
1430
|
}, {
|
|
1431
1431
|
legendTitle: E(({ titleSet: e }) => [e[0] && e[0].arcOf ? (b(), h("div", Dt, w(e[0].arcOf), 1)) : m("", !0)]),
|
|
1432
1432
|
item: E(({ legend: e, index: t }) => [g("div", {
|
|
1433
|
-
onClick: (t) =>
|
|
1434
|
-
style: We(`opacity:${
|
|
1433
|
+
onClick: (t) => Fn(e),
|
|
1434
|
+
style: We(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
|
|
1435
1435
|
}, w(e.display), 13, Ot)]),
|
|
1436
|
-
legendToggle: E(() => [e.length > 2 &&
|
|
1437
|
-
key: `toggle-${
|
|
1438
|
-
backgroundColor:
|
|
1439
|
-
color:
|
|
1440
|
-
fontSize:
|
|
1441
|
-
checked: e.some((e) =>
|
|
1442
|
-
isCursorPointer:
|
|
1443
|
-
onToggle: (t) =>
|
|
1436
|
+
legendToggle: E(() => [e.length > 2 && R.value.legend.selectAllToggle.show && !T(dn) ? (b(), p(Ae, {
|
|
1437
|
+
key: `toggle-${t}`,
|
|
1438
|
+
backgroundColor: R.value.legend.selectAllToggle.backgroundColor,
|
|
1439
|
+
color: R.value.legend.selectAllToggle.color,
|
|
1440
|
+
fontSize: R.value.legend.fontSize,
|
|
1441
|
+
checked: e.some((e) => q.value.includes(e.id)),
|
|
1442
|
+
isCursorPointer: z.value,
|
|
1443
|
+
onToggle: (t) => Pn(e)
|
|
1444
1444
|
}, null, 8, [
|
|
1445
1445
|
"backgroundColor",
|
|
1446
1446
|
"color",
|
|
@@ -1461,7 +1461,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1461
1461
|
ref: Jt,
|
|
1462
1462
|
dir: "auto"
|
|
1463
1463
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1464
|
-
Vt.value &&
|
|
1464
|
+
Vt.value && I.value.buttons.table ? (b(), p(qe(ur.value.component), Ve({ key: 8 }, ur.value.props, {
|
|
1465
1465
|
ref_key: "tableUnit",
|
|
1466
1466
|
ref: tn,
|
|
1467
1467
|
onClose: dr
|
|
@@ -1472,9 +1472,9 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1472
1472
|
head: er.value.head,
|
|
1473
1473
|
body: er.value.body,
|
|
1474
1474
|
config: er.value.config,
|
|
1475
|
-
title:
|
|
1476
|
-
withCloseButton: !
|
|
1477
|
-
isCursorPointer:
|
|
1475
|
+
title: N.value.table.useDialog ? "" : ur.value.title,
|
|
1476
|
+
withCloseButton: !N.value.table.useDialog,
|
|
1477
|
+
isCursorPointer: z.value,
|
|
1478
1478
|
onClose: dr
|
|
1479
1479
|
}, {
|
|
1480
1480
|
th: E(({ th: e }) => [g("div", kt, w(e), 1)]),
|
|
@@ -1490,24 +1490,24 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1490
1490
|
"isCursorPointer"
|
|
1491
1491
|
]))]),
|
|
1492
1492
|
_: 2
|
|
1493
|
-
}, [
|
|
1493
|
+
}, [N.value.table.useDialog ? {
|
|
1494
1494
|
name: "title",
|
|
1495
1495
|
fn: E(() => [ze(w(ur.value.title), 1)]),
|
|
1496
1496
|
key: "0"
|
|
1497
|
-
} : void 0,
|
|
1497
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1498
1498
|
name: "actions",
|
|
1499
1499
|
fn: E(() => [g("button", {
|
|
1500
1500
|
tabindex: "0",
|
|
1501
1501
|
class: "vue-ui-user-options-button",
|
|
1502
|
-
onClick:
|
|
1503
|
-
style: We({ cursor:
|
|
1502
|
+
onClick: n[1] ||= (e) => $n(I.value.callbacks.csv),
|
|
1503
|
+
style: We({ cursor: z.value ? "pointer" : "default" })
|
|
1504
1504
|
}, [Be(T(jt), {
|
|
1505
1505
|
name: "fileCsv",
|
|
1506
1506
|
stroke: ur.value.props.color
|
|
1507
1507
|
}, null, 8, ["stroke"])], 4)]),
|
|
1508
1508
|
key: "1"
|
|
1509
1509
|
} : void 0]), 1040)) : m("", !0),
|
|
1510
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1510
|
+
C(e.$slots, "skeleton", {}, () => [T(dn) ? (b(), p(be, { key: 0 })) : m("", !0)], !0)
|
|
1511
1511
|
], 46, et));
|
|
1512
1512
|
}
|
|
1513
1513
|
}, [["__scopeId", "data-v-b4e92c34"]]);
|