vue-data-ui 3.26.5 → 3.27.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/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.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-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Dt as r, Ht as i, It as a, Jt as o, Kt as s, S as c, Ut as l, X as ee, at as u, b as te, en as ne, et as re, f as ie, i as ae, it as oe, n as se, nn as ce, nt as le, p as ue, pt as de, t as fe, w as pe, zt as me } from "./lib-D4wK6ljP.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-D_6ZrPMD.js";
|
|
5
|
+
import { t as ve } from "./usePrinter-DdW2GSm0.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-DR_8JPol.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-Bb5rHcpO.js";
|
|
11
|
+
import { n as Te } from "./Title-BMCuINbv.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-CP3sddwv.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-Ccn9kK7T.js";
|
|
20
|
+
import { t as Fe } from "./Legend-CulFgjUY.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-C4ZTwkLF.js")), jt = _(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Mt = _(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Nt = _(() => import("./DataTable-CjF_An2h.js")), Pt = _(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Ft = _(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), It = _(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Lt = _(() => import("./BaseDraggableDialog-C50TEJFv.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(ee()), 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), N = x(!1);
|
|
124
|
+
function sn(e) {
|
|
125
|
+
N.value = e, Gt.value += 1;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
127
|
+
let P = x(gn()), F = f(() => P.value.style.chart.layout.labels), I = f(() => P.value.style.chart.tooltip), L = f(() => P.value.userOptions), R = f(() => P.value.style.chart.layout), z = f(() => P.value.style.chart);
|
|
128
128
|
he({
|
|
129
|
-
config: () =>
|
|
129
|
+
config: () => P.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 cn = f(() => P.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
|
-
}, un = f(() =>
|
|
185
|
+
}, un = f(() => ce({
|
|
186
186
|
defaultConfig: {
|
|
187
187
|
useCssAnimation: !1,
|
|
188
188
|
table: { show: !1 },
|
|
@@ -202,10 +202,10 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
202
202
|
}
|
|
203
203
|
} }
|
|
204
204
|
},
|
|
205
|
-
userConfig:
|
|
205
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
206
206
|
})), { loading: dn, FINAL_DATASET: B, manualLoading: fn } = ye({
|
|
207
207
|
...Ye(D),
|
|
208
|
-
FINAL_CONFIG:
|
|
208
|
+
FINAL_CONFIG: P,
|
|
209
209
|
prepareConfig: gn,
|
|
210
210
|
callback: () => {
|
|
211
211
|
Promise.resolve().then(async () => {
|
|
@@ -213,29 +213,29 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
213
213
|
});
|
|
214
214
|
},
|
|
215
215
|
skeletonDataset: D.config?.skeletonDataset ?? [ln, ln],
|
|
216
|
-
skeletonConfig:
|
|
217
|
-
defaultConfig:
|
|
216
|
+
skeletonConfig: ce({
|
|
217
|
+
defaultConfig: P.value,
|
|
218
218
|
userConfig: un.value
|
|
219
219
|
})
|
|
220
|
-
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config:
|
|
220
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: P.value }), { svgRef: V } = Ne({ config: z.value.title });
|
|
221
221
|
function gn() {
|
|
222
222
|
let e = xe({
|
|
223
223
|
userConfig: D.config,
|
|
224
224
|
defaultConfig: Rt
|
|
225
|
-
}), t = {},
|
|
226
|
-
if (
|
|
225
|
+
}), t = {}, n = e.theme;
|
|
226
|
+
if (n) {
|
|
227
227
|
if (!zt.value(e)) Bt(e), t = e;
|
|
228
228
|
else {
|
|
229
|
-
let
|
|
230
|
-
userConfig: Ie[
|
|
229
|
+
let r = xe({
|
|
230
|
+
userConfig: Ie[n] || D.config,
|
|
231
231
|
defaultConfig: e
|
|
232
232
|
});
|
|
233
233
|
t = {
|
|
234
234
|
...xe({
|
|
235
235
|
userConfig: D.config,
|
|
236
|
-
defaultConfig:
|
|
236
|
+
defaultConfig: r
|
|
237
237
|
}),
|
|
238
|
-
customPalette: e.customPalette.length ? e.customPalette : n
|
|
238
|
+
customPalette: e.customPalette.length ? e.customPalette : ne[n] || i
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
} else t = e;
|
|
@@ -251,13 +251,13 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
251
251
|
vn = n;
|
|
252
252
|
let i = gn();
|
|
253
253
|
if (!r) {
|
|
254
|
-
|
|
254
|
+
P.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
dn.value || (
|
|
257
|
+
dn.value || (P.value = i), pn.value = !P.value.userOptions.showOnChartHover, Cn(), Xt.value += 1, Zt.value += 1, Qt.value += 1, W.value.dataLabels.show = F.value.dataLabels.show, W.value.showTable = P.value.table.show, W.value.showTooltip = I.value.show, G.value.width = z.value.width, G.value.height = z.value.height;
|
|
258
258
|
}, { deep: !0 });
|
|
259
259
|
let yn = f(() => {
|
|
260
|
-
let { top: e, right: t, bottom: n, left: r } =
|
|
260
|
+
let { top: e, right: t, bottom: n, left: r } = z.value.padding;
|
|
261
261
|
return {
|
|
262
262
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
263
263
|
top: e,
|
|
@@ -271,16 +271,16 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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, o) => {
|
|
275
275
|
setTimeout(() => {
|
|
276
276
|
let n = performance.now();
|
|
277
277
|
function c(l) {
|
|
278
|
-
let ee = Math.min((l - n) / t, 1),
|
|
279
|
-
j.value[
|
|
280
|
-
let
|
|
278
|
+
let ee = Math.min((l - n) / t, 1), u = e * oe(ee);
|
|
279
|
+
j.value[o] = u, j.value = [...j.value];
|
|
280
|
+
let ne = [], re = 0;
|
|
281
281
|
D.dataset.forEach((e, t) => {
|
|
282
|
-
let n =
|
|
283
|
-
n > Number.MIN_VALUE &&
|
|
282
|
+
let n = te(e.series.reduce((e, t) => e + te(s(t.values).reduce((e, t) => e + t, 0)), 0)) - te(j.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
|
|
283
|
+
n > Number.MIN_VALUE && ne.push({
|
|
284
284
|
name: "__ghost__",
|
|
285
285
|
arcOf: e.name,
|
|
286
286
|
arcOfId: `${O.value}_${t}`,
|
|
@@ -293,18 +293,18 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
293
293
|
absoluteValues: [],
|
|
294
294
|
ghost: !0
|
|
295
295
|
}), re += e.series.length;
|
|
296
|
-
}), $t.value =
|
|
296
|
+
}), $t.value = ne, ee < 1 ? requestAnimationFrame(c) : (a += 1, a === i && r());
|
|
297
297
|
}
|
|
298
298
|
requestAnimationFrame(c);
|
|
299
|
-
},
|
|
299
|
+
}, o * n);
|
|
300
300
|
});
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
async function xn() {
|
|
304
|
-
if (
|
|
305
|
-
let e = B.value.flatMap((e) => e.series).map((e) =>
|
|
304
|
+
if (P.value.startAnimation?.show) {
|
|
305
|
+
let e = B.value.flatMap((e) => e.series).map((e) => s(e.values).reduce((e, t) => e + t, 0));
|
|
306
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 +
|
|
307
|
+
let n = e.series.reduce((e, t) => e + s(t.values).reduce((e, t) => e + t, 0), 0);
|
|
308
308
|
return {
|
|
309
309
|
name: "__ghost__",
|
|
310
310
|
arcOf: e.name,
|
|
@@ -318,7 +318,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
318
318
|
absoluteValues: [],
|
|
319
319
|
ghost: !0
|
|
320
320
|
};
|
|
321
|
-
}), await He(), bn(e,
|
|
321
|
+
}), await He(), bn(e, P.value.startAnimation.durationMs, P.value.startAnimation.staggerMs).then(() => {
|
|
322
322
|
A.value = !1, $t.value = [];
|
|
323
323
|
});
|
|
324
324
|
} else A.value = !1;
|
|
@@ -326,18 +326,18 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
326
326
|
Ke(async () => {
|
|
327
327
|
en.value = !0, Cn(), await xn();
|
|
328
328
|
});
|
|
329
|
-
let H = Je(null), Sn = Je(null), U = f(() =>
|
|
329
|
+
let H = Je(null), Sn = Je(null), U = f(() => P.value.debug);
|
|
330
330
|
function Cn() {
|
|
331
|
-
if (
|
|
331
|
+
if (me(D.dataset) ? (u({
|
|
332
332
|
componentName: "VueUiNestedDonuts",
|
|
333
333
|
type: "dataset",
|
|
334
334
|
debug: U.value
|
|
335
|
-
}), Vt.value = !1, fn.value = !0) : fn.value =
|
|
335
|
+
}), Vt.value = !1, fn.value = !0) : fn.value = P.value.loading, P.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: z.value.title.text ? Kt.value : null,
|
|
340
|
+
legend: z.value.legend.show ? qt.value : null,
|
|
341
341
|
source: Jt.value,
|
|
342
342
|
noTitle: Yt.value,
|
|
343
343
|
padding: yn.value
|
|
@@ -354,26 +354,26 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
354
354
|
});
|
|
355
355
|
let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ve({
|
|
356
356
|
elementId: `nested_donuts_${O.value}`,
|
|
357
|
-
fileName:
|
|
358
|
-
options:
|
|
359
|
-
}), On = f(() =>
|
|
360
|
-
dataLabels: { show:
|
|
361
|
-
showTable:
|
|
362
|
-
showTooltip:
|
|
357
|
+
fileName: z.value.title.text || "vue-ui-nested-donuts",
|
|
358
|
+
options: P.value.userOptions.print
|
|
359
|
+
}), On = f(() => P.value.userOptions.show && !z.value.title.text), kn = f(() => pe(P.value.customPalette)), W = x({
|
|
360
|
+
dataLabels: { show: F.value.dataLabels.show },
|
|
361
|
+
showTable: P.value.table.show,
|
|
362
|
+
showTooltip: I.value.show
|
|
363
363
|
});
|
|
364
|
-
Ze(
|
|
364
|
+
Ze(P, () => {
|
|
365
365
|
W.value = {
|
|
366
|
-
dataLabels: { show:
|
|
367
|
-
showTable:
|
|
368
|
-
showTooltip:
|
|
366
|
+
dataLabels: { show: F.value.dataLabels.show },
|
|
367
|
+
showTable: P.value.table.show,
|
|
368
|
+
showTooltip: I.value.show
|
|
369
369
|
};
|
|
370
370
|
}, { immediate: !0 });
|
|
371
371
|
let G = x({
|
|
372
|
-
width:
|
|
373
|
-
height:
|
|
372
|
+
width: z.value.width,
|
|
373
|
+
height: z.value.height
|
|
374
374
|
}), K = $e;
|
|
375
375
|
function An({ datapoint: e, index: t, seriesIndex: n }) {
|
|
376
|
-
|
|
376
|
+
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
377
377
|
datapoint: e,
|
|
378
378
|
seriesIndex: n
|
|
379
379
|
}), K("selectDatapoint", {
|
|
@@ -381,7 +381,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
381
381
|
index: t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function jn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a =
|
|
384
|
+
function jn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = oe }) {
|
|
385
385
|
let o = performance.now();
|
|
386
386
|
function s(c) {
|
|
387
387
|
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
@@ -429,20 +429,20 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
429
429
|
let e = 0;
|
|
430
430
|
return B.value.map((t, n) => ({
|
|
431
431
|
...t,
|
|
432
|
-
total: t.series.filter((e) => !q.value.includes(e.id)).map((e) =>
|
|
432
|
+
total: t.series.filter((e) => !q.value.includes(e.id)).map((e) => s(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, a) => {
|
|
436
|
+
let o = s(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}_${a}`,
|
|
442
|
+
seriesIndex: a,
|
|
443
443
|
datasetIndex: n,
|
|
444
|
-
color:
|
|
445
|
-
value: A.value ? j.value[e++] ?? 0 :
|
|
444
|
+
color: c(r.color) || kn.value[a] || i[a % i.length],
|
|
445
|
+
value: A.value ? j.value[e++] ?? 0 : o,
|
|
446
446
|
absoluteValues: r.values || []
|
|
447
447
|
};
|
|
448
448
|
})
|
|
@@ -451,7 +451,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
451
451
|
Ze(() => D.dataset, (e) => {
|
|
452
452
|
Array.isArray(e) && e.length > 0 && (fn.value = !1);
|
|
453
453
|
}, { immediate: !0 });
|
|
454
|
-
let Y = f(() => Math.min(G.value.height, G.value.width) * (
|
|
454
|
+
let Y = f(() => Math.min(G.value.height, G.value.width) * (R.value.donut.strokeWidth / 512)), X = f(() => [...J.value].map((e, t) => {
|
|
455
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,
|
|
@@ -462,37 +462,37 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
462
462
|
}))
|
|
463
463
|
};
|
|
464
464
|
}));
|
|
465
|
-
function
|
|
465
|
+
function Mn(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 Z = x(X.value);
|
|
471
|
+
Ze(() => X.value, (e) => Z.value = e);
|
|
472
|
+
function Nn(e) {
|
|
473
473
|
let t = e.map((e) => e.id);
|
|
474
474
|
if (e.some((e) => q.value.includes(e.id))) {
|
|
475
475
|
let e = new Set(t);
|
|
476
476
|
q.value = q.value.filter((t) => !e.has(t));
|
|
477
477
|
} else q.value.push(...t);
|
|
478
|
-
K("selectLegend",
|
|
478
|
+
K("selectLegend", X.value);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Pn(e) {
|
|
481
481
|
let t = D.dataset.flatMap((e, t) => e.series.map((e, n) => ({
|
|
482
|
-
value:
|
|
482
|
+
value: s(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 = J.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r =
|
|
487
|
+
let n = J.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = Z.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
|
-
q.value.includes(e.id) ? (q.value = q.value.filter((t) => t !== e.id),
|
|
489
|
+
let o = a.series.map((e) => e.id), c = Mn(o, o.length - 1, q.value);
|
|
490
|
+
q.value.includes(e.id) ? (q.value = q.value.filter((t) => t !== e.id), P.value.serieToggleAnimation.show ? jn({
|
|
491
491
|
from: i,
|
|
492
492
|
to: n,
|
|
493
|
-
duration:
|
|
493
|
+
duration: P.value.serieToggleAnimation.durationMs,
|
|
494
494
|
onUpdate: (t) => {
|
|
495
|
-
|
|
495
|
+
Z.value = Z.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
|
-
K("selectLegend",
|
|
504
|
+
K("selectLegend", X.value);
|
|
505
505
|
}
|
|
506
|
-
}) : (
|
|
506
|
+
}) : (Z.value = Z.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
|
-
})), K("selectLegend",
|
|
512
|
+
})), K("selectLegend", X.value))) : c && (P.value.serieToggleAnimation.show ? jn({
|
|
513
513
|
from: i,
|
|
514
514
|
to: 0,
|
|
515
|
-
duration:
|
|
515
|
+
duration: P.value.serieToggleAnimation.durationMs,
|
|
516
516
|
onUpdate: (t) => {
|
|
517
|
-
|
|
517
|
+
Z.value = Z.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
|
-
q.value.push(e.id), K("selectLegend",
|
|
526
|
+
q.value.push(e.id), K("selectLegend", X.value);
|
|
527
527
|
}
|
|
528
|
-
}) : (
|
|
528
|
+
}) : (Z.value = Z.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
|
-
})), q.value.push(e.id), K("selectLegend",
|
|
534
|
+
})), q.value.push(e.id), K("selectLegend", X.value)));
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Fn(e) {
|
|
537
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);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
let t =
|
|
539
|
+
function In(e) {
|
|
540
|
+
let t = Fn(e);
|
|
541
541
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
542
|
-
q.value.includes(e.id) &&
|
|
543
|
-
}) : q.value.includes(t.id) &&
|
|
542
|
+
q.value.includes(e.id) && Pn({ id: e.id });
|
|
543
|
+
}) : q.value.includes(t.id) && Pn({ id: t.id }));
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
let t =
|
|
545
|
+
function Ln(e) {
|
|
546
|
+
let t = Fn(e);
|
|
547
547
|
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
548
|
-
q.value.includes(e.id) ||
|
|
549
|
-
}) : q.value.includes(t.id) ||
|
|
548
|
+
q.value.includes(e.id) || Pn({ id: e.id });
|
|
549
|
+
}) : q.value.includes(t.id) || Pn({ id: t.id }));
|
|
550
550
|
}
|
|
551
|
-
let
|
|
552
|
-
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = Y.value - t * Y.value /
|
|
551
|
+
let Rn = f(() => Y.value / J.value.length * R.value.donut.spacingRatio), zn = f(() => Z.value.map((e, t) => Y.value - t * Y.value / J.value.length)), Bn = f(() => Z.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 / Z.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: R.value.donut.emptyFill,
|
|
558
558
|
value: 1
|
|
559
|
-
}] }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25,
|
|
559
|
+
}] }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Rn.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 {
|
|
@@ -565,17 +565,17 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
565
565
|
radius: r,
|
|
566
566
|
skeleton: s,
|
|
567
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,
|
|
568
|
+
donut: a({ series: o }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Rn.value)
|
|
569
569
|
};
|
|
570
570
|
})), Vn = f(() => [...J.value].map((e, t) => {
|
|
571
571
|
let n = t * Y.value / J.value.length;
|
|
572
572
|
return {
|
|
573
573
|
sizeRatio: n,
|
|
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 *
|
|
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 * R.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
|
+
P.value.events.datapointLeave && P.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,38 +589,38 @@ 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: n, seriesIndex:
|
|
593
|
-
|
|
592
|
+
function Jn({ datapoint: e, _relativeIndex: n, seriesIndex: i, triggerMode: a = "pointer" }) {
|
|
593
|
+
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
594
594
|
datapoint: e,
|
|
595
|
-
seriesIndex:
|
|
596
|
-
}), an.value = a, M.value =
|
|
595
|
+
seriesIndex: i
|
|
596
|
+
}), an.value = a, M.value = i, Hn.value = e.arcOfId, Un.value = e.id, Wn.value = i, Wt.value = e.id, Gn.value = {
|
|
597
597
|
datapoint: e,
|
|
598
|
-
seriesIndex:
|
|
599
|
-
series:
|
|
600
|
-
config:
|
|
598
|
+
seriesIndex: i,
|
|
599
|
+
series: Z.value,
|
|
600
|
+
config: P.value
|
|
601
601
|
};
|
|
602
|
-
let o =
|
|
603
|
-
if (
|
|
604
|
-
seriesIndex:
|
|
602
|
+
let o = I.value.customFormat;
|
|
603
|
+
if (r(o) && de(() => o({
|
|
604
|
+
seriesIndex: i,
|
|
605
605
|
datapoint: e,
|
|
606
|
-
series:
|
|
607
|
-
config:
|
|
606
|
+
series: Z.value,
|
|
607
|
+
config: P.value
|
|
608
608
|
}))) Ut.value = o({
|
|
609
|
-
seriesIndex:
|
|
609
|
+
seriesIndex: i,
|
|
610
610
|
datapoint: e,
|
|
611
|
-
series:
|
|
612
|
-
config:
|
|
611
|
+
series: Z.value,
|
|
612
|
+
config: P.value
|
|
613
613
|
});
|
|
614
614
|
else {
|
|
615
615
|
let n = "";
|
|
616
|
-
if (
|
|
617
|
-
let
|
|
618
|
-
|
|
616
|
+
if (I.value.showAllItemsAtIndex && q.value.length === 0) {
|
|
617
|
+
let r = Z.value.map((e) => e.series.find((e) => e.seriesIndex === i));
|
|
618
|
+
r.forEach((a, o) => {
|
|
619
619
|
if (!a) return "";
|
|
620
620
|
n += `
|
|
621
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o <
|
|
621
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o < r.length - 1 ? `border-bottom:1px solid ${I.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="${
|
|
623
|
+
<svg viewBox="0 0 20 20" height="${I.value.fontSize}" width="${I.value.fontSize}">
|
|
624
624
|
<circle cx="10" cy="10" r="10" fill="${a.color}"/>
|
|
625
625
|
</svg>
|
|
626
626
|
<span>
|
|
@@ -630,22 +630,22 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
630
630
|
<span>
|
|
631
631
|
<b>
|
|
632
632
|
${qn({
|
|
633
|
-
config:
|
|
634
|
-
showVal:
|
|
635
|
-
showPercentage:
|
|
636
|
-
val:
|
|
637
|
-
p:
|
|
633
|
+
config: z.value.tooltip,
|
|
634
|
+
showVal: I.value.showValue,
|
|
635
|
+
showPercentage: I.value.showPercentage,
|
|
636
|
+
val: ae(R.value.labels.dataLabels.formatter, e.value, t({
|
|
637
|
+
p: z.value.layout.labels.dataLabels.prefix,
|
|
638
638
|
v: e.value,
|
|
639
|
-
s:
|
|
640
|
-
r:
|
|
639
|
+
s: z.value.layout.labels.dataLabels.suffix,
|
|
640
|
+
r: z.value.tooltip.roundingValue
|
|
641
641
|
}), {
|
|
642
642
|
datapoint: e,
|
|
643
|
-
seriesIndex:
|
|
643
|
+
seriesIndex: i
|
|
644
644
|
}),
|
|
645
645
|
percentage: t({
|
|
646
646
|
v: a.proportion * 100,
|
|
647
647
|
s: "%",
|
|
648
|
-
r:
|
|
648
|
+
r: z.value.tooltip.roundingPercentage
|
|
649
649
|
})
|
|
650
650
|
})}
|
|
651
651
|
</b>
|
|
@@ -653,64 +653,64 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
653
653
|
</div>
|
|
654
654
|
`;
|
|
655
655
|
});
|
|
656
|
-
} else n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
657
|
-
p:
|
|
656
|
+
} else n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.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>`, I.value.showValue && (n += `<b>${ae(F.value.dataLabels.formatter, e.value, t({
|
|
657
|
+
p: F.value.dataLabels.prefix,
|
|
658
658
|
v: e.value,
|
|
659
|
-
s:
|
|
660
|
-
r:
|
|
659
|
+
s: F.value.dataLabels.suffix,
|
|
660
|
+
r: I.value.roundingValue
|
|
661
661
|
}), {
|
|
662
662
|
datapoint: e,
|
|
663
|
-
seriesIndex:
|
|
664
|
-
})}</b>`),
|
|
663
|
+
seriesIndex: i
|
|
664
|
+
})}</b>`), I.value.showPercentage && (I.value.showValue ? n += `<span>(${t({
|
|
665
665
|
v: e.proportion * 100,
|
|
666
666
|
s: "%",
|
|
667
|
-
r:
|
|
667
|
+
r: I.value.roundingPercentage
|
|
668
668
|
})})</span></div>` : n += `<b>${t({
|
|
669
669
|
v: e.proportion * 100,
|
|
670
670
|
s: "%",
|
|
671
|
-
r:
|
|
671
|
+
r: I.value.roundingPercentage
|
|
672
672
|
})}</b></div>`);
|
|
673
|
-
Ut.value = `<div style="font-size:${
|
|
673
|
+
Ut.value = `<div style="font-size:${I.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 > F.value.dataLabels.hideUnderValue;
|
|
679
679
|
}
|
|
680
680
|
function Xn(e, t) {
|
|
681
|
-
if (!
|
|
682
|
-
if (
|
|
683
|
-
if (!
|
|
681
|
+
if (!P.value.useBlurOnHover) return "";
|
|
682
|
+
if (I.value.showAllItemsAtIndex && q.value.length === 0) return [null, void 0].includes(Wn.value) || Wn.value === t ? "" : `url(#blur_${O.value})`;
|
|
683
|
+
if (!I.value.showAllItemsAtIndex || q.value.length) return [null, void 0].includes(Un.value) || Un.value === e.id ? "" : `url(#blur_${O.value})`;
|
|
684
684
|
}
|
|
685
685
|
let Zn = f(() => J.value.map((e, n) => {
|
|
686
686
|
let r = e.series.filter((e) => !q.value.includes(e.id)), i = A.value ? r.map((e) => {
|
|
687
687
|
let t = B.value[n].series.findIndex((t) => t.name === e.name);
|
|
688
|
-
return
|
|
688
|
+
return s(B.value[n].series[t].values).reduce((e, t) => e + t, 0);
|
|
689
689
|
}).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
690
690
|
return e.series.map((e, r) => {
|
|
691
|
-
let a =
|
|
692
|
-
val:
|
|
693
|
-
p:
|
|
694
|
-
v:
|
|
695
|
-
s:
|
|
696
|
-
r:
|
|
691
|
+
let a = s(B.value[n].series[r].values).reduce((e, t) => e + t, 0), o = A.value ? a : e.value, c = qn({
|
|
692
|
+
val: ae(F.value.dataLabels.formatter, o, t({
|
|
693
|
+
p: F.value.dataLabels.prefix,
|
|
694
|
+
v: o,
|
|
695
|
+
s: F.value.dataLabels.suffix,
|
|
696
|
+
r: z.value.legend.roundingValue
|
|
697
697
|
}), {
|
|
698
698
|
datapoint: e,
|
|
699
699
|
seriesIndex: r
|
|
700
700
|
}),
|
|
701
|
-
percentage: isNaN(
|
|
702
|
-
v:
|
|
701
|
+
percentage: isNaN(o / i) || q.value.includes(e.id) ? "-" : t({
|
|
702
|
+
v: o / i * 100,
|
|
703
703
|
s: "%",
|
|
704
|
-
r:
|
|
704
|
+
r: z.value.legend.roundingPercentage
|
|
705
705
|
}),
|
|
706
|
-
showVal:
|
|
707
|
-
showPercentage:
|
|
708
|
-
config:
|
|
709
|
-
}), l = `${e.name}${
|
|
706
|
+
showVal: z.value.legend.showValue,
|
|
707
|
+
showPercentage: z.value.legend.showPercentage,
|
|
708
|
+
config: z.value.legend
|
|
709
|
+
}), l = `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${c}`;
|
|
710
710
|
return {
|
|
711
711
|
name: e.name,
|
|
712
712
|
color: e.color,
|
|
713
|
-
value:
|
|
713
|
+
value: o,
|
|
714
714
|
display: l,
|
|
715
715
|
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
|
|
716
716
|
shape: "circle",
|
|
@@ -720,24 +720,24 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
720
720
|
datasetIndex: n,
|
|
721
721
|
total: i,
|
|
722
722
|
opacity: q.value.includes(e.id) ? .5 : 1,
|
|
723
|
-
segregate: () =>
|
|
723
|
+
segregate: () => Pn(e),
|
|
724
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: z.value.legend.backgroundColor,
|
|
730
|
+
color: z.value.legend.color,
|
|
731
|
+
fontSize: z.value.legend.fontSize,
|
|
732
732
|
paddingBottom: 12,
|
|
733
|
-
fontWeight:
|
|
733
|
+
fontWeight: z.value.legend.bold ? "bold" : ""
|
|
734
734
|
})), Q = f(() => ({
|
|
735
|
-
head:
|
|
735
|
+
head: Z.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: Z.value.flatMap((e) => e.series.map((e) => e.value))
|
|
741
741
|
}));
|
|
742
742
|
function $n(e = null) {
|
|
743
743
|
He(() => {
|
|
@@ -745,32 +745,32 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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
|
+
]), r = [
|
|
749
|
+
[z.value.title.text],
|
|
750
|
+
[z.value.title.subtitle.text],
|
|
751
751
|
[
|
|
752
752
|
[""],
|
|
753
753
|
["val"],
|
|
754
754
|
["%"]
|
|
755
755
|
]
|
|
756
|
-
].concat(t), i = r
|
|
756
|
+
].concat(t), i = n(r);
|
|
757
757
|
e ? e(i) : le({
|
|
758
758
|
csvContent: i,
|
|
759
|
-
title:
|
|
759
|
+
title: z.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
|
-
|
|
765
|
+
P.value.table.columnNames.series,
|
|
766
|
+
P.value.table.columnNames.value,
|
|
767
|
+
P.value.table.columnNames.percentage
|
|
768
768
|
], n = Q.value.head.map((e, n) => {
|
|
769
769
|
let r = t({
|
|
770
|
-
p:
|
|
770
|
+
p: F.value.dataLabels.prefix,
|
|
771
771
|
v: Q.value.body[n],
|
|
772
|
-
s:
|
|
773
|
-
r:
|
|
772
|
+
s: F.value.dataLabels.suffix,
|
|
773
|
+
r: P.value.table.td.roundingValue
|
|
774
774
|
});
|
|
775
775
|
return [
|
|
776
776
|
{
|
|
@@ -781,27 +781,27 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
781
781
|
isNaN(Q.value.body[n] / e.total) ? "-" : t({
|
|
782
782
|
v: Q.value.body[n] / e.total * 100,
|
|
783
783
|
s: "%",
|
|
784
|
-
r:
|
|
784
|
+
r: P.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: P.value.table.th.backgroundColor,
|
|
790
|
+
color: P.value.table.th.color,
|
|
791
|
+
outline: P.value.table.th.outline
|
|
792
792
|
},
|
|
793
793
|
td: {
|
|
794
|
-
backgroundColor:
|
|
795
|
-
color:
|
|
796
|
-
outline:
|
|
794
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
795
|
+
color: P.value.table.td.color,
|
|
796
|
+
outline: P.value.table.td.outline
|
|
797
797
|
},
|
|
798
|
-
breakpoint:
|
|
798
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
799
799
|
};
|
|
800
800
|
return {
|
|
801
801
|
colNames: [
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
802
|
+
P.value.table.columnNames.series,
|
|
803
|
+
P.value.table.columnNames.value,
|
|
804
|
+
P.value.table.columnNames.percentage
|
|
805
805
|
],
|
|
806
806
|
head: e,
|
|
807
807
|
body: n,
|
|
@@ -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: z.value.title.text,
|
|
840
840
|
width: t,
|
|
841
841
|
height: n,
|
|
842
842
|
aspectRatio: r
|
|
@@ -849,43 +849,43 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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 = P.value.table.useDialog && !P.value.table.show, t = W.value.showTable;
|
|
853
853
|
return {
|
|
854
854
|
component: e ? Lt : Mt,
|
|
855
|
-
title: `${
|
|
855
|
+
title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
|
|
856
856
|
props: e ? {
|
|
857
|
-
backgroundColor:
|
|
858
|
-
color:
|
|
859
|
-
headerColor:
|
|
860
|
-
headerBg:
|
|
861
|
-
isFullscreen:
|
|
857
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
858
|
+
color: P.value.table.th.color,
|
|
859
|
+
headerColor: P.value.table.th.color,
|
|
860
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
861
|
+
isFullscreen: N.value,
|
|
862
862
|
fullscreenParent: k.value,
|
|
863
863
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
864
|
-
isCursorPointer:
|
|
864
|
+
isCursorPointer: cn.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: z.value.backgroundColor,
|
|
872
|
+
color: z.value.color
|
|
873
873
|
},
|
|
874
874
|
head: {
|
|
875
|
-
backgroundColor:
|
|
876
|
-
color:
|
|
875
|
+
backgroundColor: z.value.backgroundColor,
|
|
876
|
+
color: z.value.color
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
};
|
|
881
881
|
});
|
|
882
882
|
Ze(() => W.value.showTable, (e) => {
|
|
883
|
-
|
|
883
|
+
P.value.table.show || (e && P.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(() => z.value.backgroundColor), pr = f(() => z.value.legend), mr = f(() => z.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({
|
|
@@ -894,23 +894,23 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
894
894
|
legend: pr,
|
|
895
895
|
legendItems: hr,
|
|
896
896
|
backgroundColor: fr,
|
|
897
|
-
getSvgCallback: () =>
|
|
897
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
898
898
|
generateImage: Dn
|
|
899
899
|
});
|
|
900
900
|
async function br() {
|
|
901
901
|
if (K("copyAlt", {
|
|
902
|
-
config:
|
|
903
|
-
dataset:
|
|
904
|
-
}), !
|
|
902
|
+
config: P.value,
|
|
903
|
+
dataset: Z.value
|
|
904
|
+
}), !P.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(P.value.userOptions.callbacks.altCopy({
|
|
909
|
+
config: P.value,
|
|
910
|
+
dataset: Z.value
|
|
911
911
|
}));
|
|
912
912
|
}
|
|
913
|
-
let $ = f(() =>
|
|
913
|
+
let $ = f(() => Bn.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
914
914
|
function xr() {
|
|
915
915
|
M.value = null, on.value = !0;
|
|
916
916
|
}
|
|
@@ -967,19 +967,19 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
967
967
|
generateCsv: $n,
|
|
968
968
|
generateImage: Dn,
|
|
969
969
|
generateSvg: vr,
|
|
970
|
-
hideSeries:
|
|
971
|
-
showSeries:
|
|
970
|
+
hideSeries: Ln,
|
|
971
|
+
showSeries: In,
|
|
972
972
|
toggleTable: nr,
|
|
973
973
|
toggleLabels: rr,
|
|
974
974
|
toggleTooltip: ir,
|
|
975
975
|
toggleAnnotator: or,
|
|
976
|
-
toggleFullscreen:
|
|
976
|
+
toggleFullscreen: sn,
|
|
977
977
|
copyAlt: br
|
|
978
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 ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
982
|
+
style: We(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${z.value.backgroundColor}`),
|
|
983
983
|
id: `nested_donuts_${O.value}`,
|
|
984
984
|
onMouseenter: n[2] ||= () => T(mn)(!0),
|
|
985
985
|
onMouseleave: n[3] ||= () => T(mn)(!1)
|
|
@@ -987,14 +987,14 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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(P.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: P.value.a11y.translations.tableAvailable,
|
|
997
|
+
caption: P.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
|
+
L.value.buttons.annotator ? (b(), p(T(Ft), {
|
|
1006
1006
|
key: 1,
|
|
1007
1007
|
svgRef: T(V),
|
|
1008
|
-
backgroundColor:
|
|
1009
|
-
color:
|
|
1008
|
+
backgroundColor: z.value.backgroundColor,
|
|
1009
|
+
color: z.value.color,
|
|
1010
1010
|
active: ar.value,
|
|
1011
|
-
isCursorPointer:
|
|
1012
|
-
palette:
|
|
1011
|
+
isCursorPointer: cn.value,
|
|
1012
|
+
palette: L.value.annotatorPalette,
|
|
1013
1013
|
onClose: or
|
|
1014
1014
|
}, {
|
|
1015
1015
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1034,7 +1034,7 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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
|
+
z.value.title.text ? (b(), h("div", {
|
|
1038
1038
|
key: 3,
|
|
1039
1039
|
ref_key: "chartTitle",
|
|
1040
1040
|
ref: Kt
|
|
@@ -1043,45 +1043,45 @@ 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
|
+
...z.value.title
|
|
1047
1047
|
},
|
|
1048
1048
|
subtitle: {
|
|
1049
1049
|
cy: "donut-div-subtitle",
|
|
1050
|
-
...
|
|
1050
|
+
...z.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
|
+
L.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:
|
|
1059
|
+
backgroundColor: z.value.backgroundColor,
|
|
1060
|
+
color: z.value.color,
|
|
1061
1061
|
isPrinting: T(wn),
|
|
1062
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:
|
|
1064
|
+
hasTooltip: L.value.buttons.tooltip && I.value.show,
|
|
1065
|
+
hasPdf: L.value.buttons.pdf,
|
|
1066
|
+
hasXls: L.value.buttons.csv,
|
|
1067
|
+
hasImg: L.value.buttons.img,
|
|
1068
|
+
hasSvg: L.value.buttons.svg,
|
|
1069
|
+
hasTable: L.value.buttons.table,
|
|
1070
|
+
hasLabel: L.value.buttons.labels,
|
|
1071
|
+
hasFullscreen: L.value.buttons.fullscreen,
|
|
1072
|
+
hasAltCopy: L.value.buttons.altCopy,
|
|
1073
|
+
isFullscreen: N.value,
|
|
1074
1074
|
isTooltip: W.value.showTooltip,
|
|
1075
|
-
titles: { ...
|
|
1075
|
+
titles: { ...L.value.buttonTitles },
|
|
1076
1076
|
chartElement: k.value,
|
|
1077
|
-
position:
|
|
1078
|
-
hasAnnotator:
|
|
1077
|
+
position: L.value.position,
|
|
1078
|
+
hasAnnotator: L.value.buttons.annotator,
|
|
1079
1079
|
isAnnotation: ar.value,
|
|
1080
|
-
callbacks:
|
|
1081
|
-
printScale:
|
|
1082
|
-
tableDialog:
|
|
1083
|
-
isCursorPointer:
|
|
1084
|
-
onToggleFullscreen:
|
|
1080
|
+
callbacks: L.value.callbacks,
|
|
1081
|
+
printScale: L.value.print.scale,
|
|
1082
|
+
tableDialog: P.value.table.useDialog,
|
|
1083
|
+
isCursorPointer: cn.value,
|
|
1084
|
+
onToggleFullscreen: sn,
|
|
1085
1085
|
onGeneratePdf: T(En),
|
|
1086
1086
|
onGenerateCsv: $n,
|
|
1087
1087
|
onGenerateImage: T(yr),
|
|
@@ -1174,12 +1174,12 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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": N.value,
|
|
1178
|
+
"vue-data-ui-fulscreen--off": !N.value,
|
|
1179
1179
|
"vue-data-ui-svg": !0
|
|
1180
1180
|
}),
|
|
1181
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:${
|
|
1182
|
+
style: We(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${yn.value.css}`),
|
|
1183
1183
|
tabindex: "0",
|
|
1184
1184
|
onFocus: xr,
|
|
1185
1185
|
onBlur: Sr,
|
|
@@ -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 - Rn.value / zn.value[t]) * 100}%`,
|
|
1213
|
+
T(o)("#FFFFFF", 0),
|
|
1214
1214
|
0
|
|
1215
1215
|
],
|
|
1216
1216
|
[
|
|
1217
|
-
`${(1 -
|
|
1217
|
+
`${(1 - Rn.value / zn.value[t] / 2) * 100}%`,
|
|
1218
1218
|
"#FFFFFF",
|
|
1219
|
-
|
|
1219
|
+
z.value.gradientIntensity / 100
|
|
1220
1220
|
],
|
|
1221
1221
|
[
|
|
1222
1222
|
"100%",
|
|
@@ -1246,95 +1246,95 @@ 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": R.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(Bn.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(Bn.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: R.value.donut.borderColorAuto ? z.value.backgroundColor : R.value.donut.borderColor,
|
|
1262
|
+
"stroke-width": R.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: R.value.donut.borderColorAuto ? z.value.backgroundColor : R.value.donut.borderColor,
|
|
1269
|
+
"stroke-width": R.value.donut.borderWidth
|
|
1270
1270
|
}, null, 8, ft)]))), 256))]))), 256)),
|
|
1271
|
-
|
|
1271
|
+
z.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
|
+
F.value.dataLabels.showDonutName ? (b(), h("g", ht, [F.value.dataLabels.curvedDonutName ? (b(!0), h(d, { key: 0 }, S(Bn.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": R.value.labels.dataLabels.fontSize,
|
|
1281
|
+
"font-weight": R.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1282
|
+
fill: R.value.labels.dataLabels.color,
|
|
1283
|
+
dy: R.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(R.value.labels.dataLabels.donutNameAbbreviation ? T(se)({
|
|
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: P.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(Bn.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
1295
|
x: G.value.width / 2,
|
|
1296
|
-
y: t.startY -
|
|
1296
|
+
y: t.startY - R.value.labels.dataLabels.fontSize + R.value.labels.dataLabels.donutNameOffsetY,
|
|
1297
1297
|
"text-anchor": "middle",
|
|
1298
|
-
"font-size":
|
|
1299
|
-
"font-weight":
|
|
1300
|
-
fill:
|
|
1301
|
-
}, w(
|
|
1298
|
+
"font-size": R.value.labels.dataLabels.fontSize,
|
|
1299
|
+
"font-weight": R.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1300
|
+
fill: R.value.labels.dataLabels.color
|
|
1301
|
+
}, w(R.value.labels.dataLabels.donutNameAbbreviation ? T(se)({
|
|
1302
1302
|
source: e.name,
|
|
1303
|
-
length:
|
|
1303
|
+
length: P.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1304
1304
|
}) : e.name), 9, vt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
|
|
1305
|
-
|
|
1305
|
+
F.value.dataLabels.show ? (b(), h("g", yt, [(b(!0), h(d, null, S(Bn.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
1307
|
"text-anchor": T(ie)(e, !0).anchor,
|
|
1308
|
-
x: T(ie)(e, !1,
|
|
1309
|
-
y: T(ue)(e,
|
|
1310
|
-
fill:
|
|
1311
|
-
"font-size":
|
|
1312
|
-
"font-weight":
|
|
1313
|
-
}, w(T(
|
|
1308
|
+
x: T(ie)(e, !1, R.value.labels.dataLabels.offsetX).x || 0,
|
|
1309
|
+
y: T(ue)(e, R.value.labels.dataLabels.offsetY, R.value.labels.dataLabels.offsetY) + (F.value.dataLabels.showValueFirst && F.value.dataLabels.showValue ? R.value.labels.dataLabels.fontSize : 0),
|
|
1310
|
+
fill: F.value.dataLabels.useSerieColor ? e.color : R.value.labels.dataLabels.color,
|
|
1311
|
+
"font-size": F.value.dataLabels.fontSize,
|
|
1312
|
+
"font-weight": F.value.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1313
|
+
}, w(T(l)(T(t)({
|
|
1314
1314
|
v: e.proportion * 100,
|
|
1315
1315
|
s: "%",
|
|
1316
|
-
r:
|
|
1317
|
-
}),
|
|
1316
|
+
r: z.value.layout.labels.dataLabels.roundingPercentage
|
|
1317
|
+
}), R.value.labels.dataLabels.usePercentageParens ? "(" : "", R.value.labels.dataLabels.usePercentageParens ? ")" : "")), 9, xt), [[Xe, W.value.dataLabels.show && F.value.dataLabels.showPercentage]]), Qe(g("text", {
|
|
1318
1318
|
opacity: +!!Yn(e),
|
|
1319
1319
|
"text-anchor": T(ie)(e, !0).anchor,
|
|
1320
|
-
x: T(ie)(e, !1,
|
|
1321
|
-
y: T(ue)(e,
|
|
1322
|
-
fill:
|
|
1323
|
-
"font-size":
|
|
1324
|
-
"font-weight":
|
|
1325
|
-
}, w(T(
|
|
1326
|
-
p:
|
|
1320
|
+
x: T(ie)(e, !1, R.value.labels.dataLabels.offsetX).x || 0,
|
|
1321
|
+
y: T(ue)(e, R.value.labels.dataLabels.offsetY, R.value.labels.dataLabels.offsetY) + (F.value.dataLabels.showValueFirst || !F.value.dataLabels.showPercentage ? 0 : R.value.labels.dataLabels.fontSize),
|
|
1322
|
+
fill: F.value.dataLabels.useSerieColor ? e.color : R.value.labels.dataLabels.color,
|
|
1323
|
+
"font-size": F.value.dataLabels.fontSize,
|
|
1324
|
+
"font-weight": F.value.dataLabels.boldValue ? "bold" : "normal"
|
|
1325
|
+
}, w(T(l)(T(ae)(R.value.labels.dataLabels.formatter, e.value, T(t)({
|
|
1326
|
+
p: z.value.layout.labels.dataLabels.prefix,
|
|
1327
1327
|
v: e.value,
|
|
1328
|
-
s:
|
|
1329
|
-
r:
|
|
1328
|
+
s: z.value.layout.labels.dataLabels.suffix,
|
|
1329
|
+
r: z.value.layout.labels.dataLabels.roundingValue
|
|
1330
1330
|
}), {
|
|
1331
1331
|
datapoint: e,
|
|
1332
1332
|
seriesIndex: n,
|
|
1333
1333
|
datapointIndex: r
|
|
1334
|
-
}),
|
|
1335
|
-
(b(!0), h(d, null, S(
|
|
1334
|
+
}), R.value.labels.dataLabels.useValueParens ? "(" : "", R.value.labels.dataLabels.useValueParens ? ")" : "")), 9, St), [[Xe, W.value.dataLabels.show && F.value.dataLabels.showValue]])], 8, bt))), 256))]))), 256))])) : m("", !0),
|
|
1335
|
+
(b(!0), h(d, null, S(Bn.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 ? R.value.donut.selectedColor : "transparent",
|
|
1338
1338
|
onMouseenter: (t) => Jn({
|
|
1339
1339
|
datapoint: e,
|
|
1340
1340
|
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
@@ -1356,31 +1356,31 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
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: P.value.a11y.translations.keyboardNavigation,
|
|
1360
1360
|
isVisible: on.value
|
|
1361
1361
|
})), void 0, !0)])) : m("", !0)]),
|
|
1362
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:
|
|
1364
|
+
teleportTo: I.value.teleportTo,
|
|
1365
1365
|
show: W.value.showTooltip && Ht.value,
|
|
1366
|
-
backgroundColor:
|
|
1367
|
-
color:
|
|
1368
|
-
borderRadius:
|
|
1369
|
-
borderColor:
|
|
1370
|
-
borderWidth:
|
|
1371
|
-
fontSize:
|
|
1372
|
-
backgroundOpacity:
|
|
1373
|
-
position:
|
|
1374
|
-
offsetX:
|
|
1375
|
-
offsetY:
|
|
1366
|
+
backgroundColor: I.value.backgroundColor,
|
|
1367
|
+
color: I.value.color,
|
|
1368
|
+
borderRadius: I.value.borderRadius,
|
|
1369
|
+
borderColor: I.value.borderColor,
|
|
1370
|
+
borderWidth: I.value.borderWidth,
|
|
1371
|
+
fontSize: I.value.fontSize,
|
|
1372
|
+
backgroundOpacity: I.value.backgroundOpacity,
|
|
1373
|
+
position: I.value.position,
|
|
1374
|
+
offsetX: I.value.offsetX,
|
|
1375
|
+
offsetY: I.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: N.value,
|
|
1379
|
+
isCustom: T(r)(I.value.customFormat),
|
|
1380
|
+
smooth: I.value.smooth,
|
|
1381
|
+
backdropFilter: I.value.backdropFilter,
|
|
1382
|
+
smoothForce: I.value.smoothForce,
|
|
1383
|
+
smoothSnapThreshold: I.value.smoothSnapThreshold,
|
|
1384
1384
|
isA11yMode: an.value === "keyboard",
|
|
1385
1385
|
a11yPosition: rn.value
|
|
1386
1386
|
}, {
|
|
@@ -1413,10 +1413,10 @@ 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 && (z.value.legend.show || e.$slots.legend) ? (b(), p(Le, {
|
|
1417
1417
|
key: 6,
|
|
1418
|
-
to:
|
|
1419
|
-
}, [
|
|
1418
|
+
to: z.value.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1419
|
+
}, [z.value.legend.show ? (b(), h("div", {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
ref_key: "chartLegend",
|
|
1422
1422
|
ref: qt,
|
|
@@ -1425,22 +1425,22 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1425
1425
|
key: `legend_${t}_${Qt.value}`,
|
|
1426
1426
|
legendSet: e,
|
|
1427
1427
|
config: Qn.value,
|
|
1428
|
-
isCursorPointer:
|
|
1429
|
-
onClickMarker: n[0] ||= ({ legend: e }) =>
|
|
1428
|
+
isCursorPointer: cn.value,
|
|
1429
|
+
onClickMarker: n[0] ||= ({ legend: e }) => Pn(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) =>
|
|
1433
|
+
onClick: (t) => Pn(e),
|
|
1434
1434
|
style: We(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
|
|
1435
1435
|
}, w(e.display), 13, Ot)]),
|
|
1436
|
-
legendToggle: E(() => [e.length > 2 &&
|
|
1436
|
+
legendToggle: E(() => [e.length > 2 && z.value.legend.selectAllToggle.show && !T(dn) ? (b(), p(Ae, {
|
|
1437
1437
|
key: `toggle-${t}`,
|
|
1438
|
-
backgroundColor:
|
|
1439
|
-
color:
|
|
1440
|
-
fontSize:
|
|
1438
|
+
backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
|
|
1439
|
+
color: z.value.legend.selectAllToggle.color,
|
|
1440
|
+
fontSize: z.value.legend.fontSize,
|
|
1441
1441
|
checked: e.some((e) => q.value.includes(e.id)),
|
|
1442
|
-
isCursorPointer:
|
|
1443
|
-
onToggle: (t) =>
|
|
1442
|
+
isCursorPointer: cn.value,
|
|
1443
|
+
onToggle: (t) => Nn(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 && L.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: P.value.table.useDialog ? "" : ur.value.title,
|
|
1476
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1477
|
+
isCursorPointer: cn.value,
|
|
1478
1478
|
onClose: dr
|
|
1479
1479
|
}, {
|
|
1480
1480
|
th: E(({ th: e }) => [g("div", kt, w(e), 1)]),
|
|
@@ -1490,17 +1490,17 @@ var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt
|
|
|
1490
1490
|
"isCursorPointer"
|
|
1491
1491
|
]))]),
|
|
1492
1492
|
_: 2
|
|
1493
|
-
}, [
|
|
1493
|
+
}, [P.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, P.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: n[1] ||= (e) => $n(
|
|
1503
|
-
style: We({ cursor:
|
|
1502
|
+
onClick: n[1] ||= (e) => $n(L.value.callbacks.csv),
|
|
1503
|
+
style: We({ cursor: cn.value ? "pointer" : "default" })
|
|
1504
1504
|
}, [Be(T(jt), {
|
|
1505
1505
|
name: "fileCsv",
|
|
1506
1506
|
stroke: ur.value.props.color
|