vue-data-ui 3.23.10 → 3.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -40
- package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.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-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-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
- package/dist/{package-enC-Nivt.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-CqcoYfCA.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CtT2BovY.js +1829 -0
- package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-BCQ97z1G.js} +237 -237
- package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-DZTtuFAG.js} +85 -85
- package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-BZywCpHd.js} +229 -229
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-BuGd-Ojm.js} +64 -64
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-ERAB4YzZ.js} +176 -176
- package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-BPp7L6OP.js} +20 -20
- package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-CX5ut2yp.js} +104 -104
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-MSs0pdhE.js} +605 -605
- package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-Df-TomML.js} +57 -57
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-90_Clj0e.js} +44 -44
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-AgMvmPlI.js} +32 -32
- package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-D0Z9B6M2.js} +116 -116
- package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-5Te2TfRK.js} +304 -304
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-vfRiIvq_.js +0 -28
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
- package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
- package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
- package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
- package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
- package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
- package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
- package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
- package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
- package/dist/vue-ui-onion-C27GpneA.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
- package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
- package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
- package/dist/vue-ui-rings-obVfb09j.js +0 -1250
- package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
- package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
- package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
- package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
- package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
- package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
- package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Ht as r, M as i, Mt as a, Nt as ee, Ut as te, X as o, Xt as ne, i as re, nt as ie, q as ae, t as oe } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as le } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as ue } from "./usePrinter-
|
|
5
|
+
import { t as ue } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as s } from "./useNestedProp-
|
|
7
|
+
import { t as s } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as he } from "./img-
|
|
11
|
-
import { n as ge } from "./Title-
|
|
10
|
+
import { t as he } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as ge } from "./Title-CaVA8EIw.js";
|
|
12
12
|
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as be } from "./DefGrad-DVBqDjhO.js";
|
|
15
15
|
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as we } from "./Legend-
|
|
18
|
+
import { t as we } from "./Legend-BJtY2RA9.js";
|
|
19
19
|
import { t as Te } from "./vue_ui_mood_radar-BA6LAKhk.js";
|
|
20
20
|
import { Fragment as Ee, Teleport as De, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Oe, createTextVNode as ke, createVNode as p, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as g, normalizeStyle as _, onMounted as Ne, openBlock as v, ref as y, renderList as Pe, renderSlot as b, resolveDynamicComponent as Fe, toDisplayString as x, toRefs as Ie, unref as S, watch as Le, withCtx as C } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-mood-radar.vue
|
|
@@ -95,14 +95,14 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["copyAlt"],
|
|
97
97
|
setup(e, { expose: _e, emit: Re }) {
|
|
98
|
-
let w = m(() => import("./BaseIcon-
|
|
98
|
+
let w = m(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), bt = m(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), xt = m(() => import("./DataTable-CmyEubtT.js")), St = m(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Ct = m(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), wt = m(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Tt = m(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_mood_radar: Et } = le(), { isThemeValid: Dt, warnInvalidTheme: Ot } = pe(), T = e, kt = Re, E = y(ae()), D = y(null), O = y(null), At = y(null), jt = y(0), Mt = y(0), Nt = y(0), Pt = y(null), Ft = y(null), k = y(null), A = y(null), It = y(null), Lt = y(!1), j = y(null), Rt = y(null), M = y(null), zt = y(!1), Bt = c(() => !!T.dataset && Object.keys(T.dataset).length), N = y(Jt());
|
|
99
99
|
se({
|
|
100
100
|
config: () => N.value,
|
|
101
101
|
dataset: () => T.dataset,
|
|
102
102
|
component: "VueUiMoodRadar",
|
|
103
103
|
rules: [ce.noHint]
|
|
104
104
|
});
|
|
105
|
-
let P = c(() => N.value.userOptions.useCursorPointer), Vt = c(() =>
|
|
105
|
+
let P = c(() => N.value.userOptions.useCursorPointer), Vt = c(() => ne({
|
|
106
106
|
defaultConfig: {
|
|
107
107
|
userOptions: { show: !1 },
|
|
108
108
|
table: { show: !1 },
|
|
@@ -145,7 +145,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
145
145
|
4: 1,
|
|
146
146
|
5: 1
|
|
147
147
|
},
|
|
148
|
-
skeletonConfig:
|
|
148
|
+
skeletonConfig: ne({
|
|
149
149
|
defaultConfig: N.value,
|
|
150
150
|
userConfig: Vt.value
|
|
151
151
|
})
|
|
@@ -155,7 +155,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
155
155
|
});
|
|
156
156
|
let Ut = c(() => N.value.debug);
|
|
157
157
|
function Wt() {
|
|
158
|
-
if (
|
|
158
|
+
if (ee(T.dataset) && ie({
|
|
159
159
|
componentName: "VueUiMoodRadar",
|
|
160
160
|
type: "dataset",
|
|
161
161
|
debug: Ut.value
|
|
@@ -236,7 +236,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
236
236
|
let t = $t[e], n = en.value[e] || t;
|
|
237
237
|
return `translate(${n.x - t.x}, ${n.y - t.y})`;
|
|
238
238
|
}
|
|
239
|
-
let tn = c(() =>
|
|
239
|
+
let tn = c(() => i({
|
|
240
240
|
plot: {
|
|
241
241
|
x: z.value.width / 2,
|
|
242
242
|
y: z.value.height / 2
|
|
@@ -267,7 +267,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
267
267
|
onSelect: () => U(e.key)
|
|
268
268
|
})).sort((e, t) => t.key - e.key)), an = c(() => H.value.map((e, t) => ({
|
|
269
269
|
...e,
|
|
270
|
-
display: `${
|
|
270
|
+
display: `${re(N.value.style.chart.layout.dataLabel.formatter, e.value, o({
|
|
271
271
|
p: N.value.style.chart.layout.dataLabel.prefix,
|
|
272
272
|
v: e.value,
|
|
273
273
|
s: N.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -284,7 +284,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
284
284
|
"4",
|
|
285
285
|
"5"
|
|
286
286
|
].forEach((e) => {
|
|
287
|
-
[null, void 0].includes(F.value[e]) &&
|
|
287
|
+
[null, void 0].includes(F.value[e]) && ie({
|
|
288
288
|
componentName: "VueUiMoodRadar",
|
|
289
289
|
type: "datasetAttribute",
|
|
290
290
|
property: e,
|
|
@@ -348,11 +348,11 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
348
348
|
}));
|
|
349
349
|
function cn(e = null) {
|
|
350
350
|
je(() => {
|
|
351
|
-
let
|
|
351
|
+
let r = q.value.head.map((e, t) => [
|
|
352
352
|
[e.name],
|
|
353
353
|
[q.value.body[t]],
|
|
354
354
|
[isNaN(q.value.body[t] / V.value) ? "-" : q.value.body[t] / V.value * 100]
|
|
355
|
-
]),
|
|
355
|
+
]), i = [
|
|
356
356
|
[N.value.style.chart.title.text],
|
|
357
357
|
[N.value.style.chart.title.subtitle.text],
|
|
358
358
|
[
|
|
@@ -360,7 +360,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
360
360
|
["val"],
|
|
361
361
|
["%"]
|
|
362
362
|
]
|
|
363
|
-
].concat(
|
|
363
|
+
].concat(r), a = n(i);
|
|
364
364
|
e ? e(a) : t({
|
|
365
365
|
csvContent: a,
|
|
366
366
|
title: N.value.style.chart.title.text || "vue-ui-mood-radar"
|
|
@@ -505,7 +505,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
505
505
|
return H.value.find((t) => String(t.key) === String(e));
|
|
506
506
|
}
|
|
507
507
|
function Dn(e, t, n) {
|
|
508
|
-
return
|
|
508
|
+
return re(N.value.style.chart.layout.dataLabel.formatter, e, o({
|
|
509
509
|
p: N.value.style.chart.layout.dataLabel.prefix,
|
|
510
510
|
v: e,
|
|
511
511
|
s: N.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -760,7 +760,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
760
760
|
f("div", He, [(v(), d("svg", {
|
|
761
761
|
ref_key: "svgRef",
|
|
762
762
|
ref: I,
|
|
763
|
-
xmlns: S(
|
|
763
|
+
xmlns: S(oe),
|
|
764
764
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
765
765
|
viewBox: `0 0 ${z.value.width} ${z.value.height}`,
|
|
766
766
|
class: Me({
|
|
@@ -903,7 +903,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
903
903
|
onClick: t[14] ||= (e) => K("1")
|
|
904
904
|
}, null, 40, st)], 8, at),
|
|
905
905
|
f("path", {
|
|
906
|
-
d: S(
|
|
906
|
+
d: S(a)(on.value.map((e) => e.plots)),
|
|
907
907
|
stroke: N.value.style.chart.layout.dataPolygon.stroke,
|
|
908
908
|
"stroke-width": N.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
909
909
|
"stroke-linecap": "round",
|
|
@@ -944,7 +944,7 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
944
944
|
"font-size": "12",
|
|
945
945
|
"text-anchor": "middle",
|
|
946
946
|
"font-weight": N.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
|
|
947
|
-
}, x(S(
|
|
947
|
+
}, x(S(re)(N.value.style.chart.layout.dataLabel.formatter, e.value, S(o)({
|
|
948
948
|
p: N.value.style.chart.layout.dataLabel.prefix,
|
|
949
949
|
v: e.value,
|
|
950
950
|
s: N.value.style.chart.layout.dataLabel.suffix,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r,
|
|
2
|
+
import { $ as t, Bt as n, D as r, Ht as i, It as a, Jt as o, Lt as s, Nt as c, S as l, St as ee, X as u, Xt as te, b as ne, f as d, i as re, jt as ie, lt as ae, n as oe, nt as se, p as ce, q as le, t as ue, tt as de, w as fe } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as he } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as ge } from "./usePrinter-
|
|
5
|
+
import { t as ge } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ye } from "./useNestedProp-
|
|
7
|
+
import { t as ye } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as xe } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as Se } from "./img-
|
|
11
|
-
import { n as Ce } from "./Title-
|
|
10
|
+
import { t as Se } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as Ce } from "./Title-CaVA8EIw.js";
|
|
12
12
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
16
16
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Me } from "./labelUtils-
|
|
20
|
-
import { t as Ne } from "./Legend-
|
|
19
|
+
import { t as Me } from "./labelUtils-iX76cA2-.js";
|
|
20
|
+
import { t as Ne } from "./Legend-BJtY2RA9.js";
|
|
21
21
|
import { t as Pe } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
22
22
|
import { Fragment as f, Teleport as Fe, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as ze, nextTick as Be, normalizeClass as Ve, normalizeProps as b, normalizeStyle as He, onBeforeUnmount as Ue, onMounted as We, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as T, toRefs as qe, unref as E, vShow as Je, watch as Ye, withCtx as D, withDirectives as Xe } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-nested-donuts.vue
|
|
@@ -110,14 +110,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
110
110
|
"copyAlt"
|
|
111
111
|
],
|
|
112
112
|
setup(e, { expose: we, emit: Ze }) {
|
|
113
|
-
let Ot = v(() => import("./Tooltip-
|
|
113
|
+
let Ot = v(() => import("./Tooltip-CVxJe3UW.js")), kt = v(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), At = v(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), jt = v(() => import("./DataTable-CmyEubtT.js")), Mt = v(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Nt = v(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Pt = v(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Ft = v(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_nested_donuts: It } = he(), { isThemeValid: Lt, warnInvalidTheme: Rt } = be(), O = e, zt = p({
|
|
114
114
|
get() {
|
|
115
115
|
return !!O.dataset && O.dataset.length;
|
|
116
116
|
},
|
|
117
117
|
set(e) {
|
|
118
118
|
return e;
|
|
119
119
|
}
|
|
120
|
-
}), k = S(
|
|
120
|
+
}), k = S(le()), Bt = S(!1), Vt = S(""), Ht = S(null), Ut = S(0), A = S(null), Wt = S(null), Gt = S(null), Kt = S(null), qt = S(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S(!0), M = S([]), Zt = S([]), Qt = S(!1), $t = S(null), en = S(null), N = S(null), tn = S({
|
|
121
121
|
x: 0,
|
|
122
122
|
y: 0
|
|
123
123
|
}), nn = S("pointer"), rn = S(!1), P = S(!1);
|
|
@@ -182,7 +182,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
182
182
|
color: "#CACACA"
|
|
183
183
|
}
|
|
184
184
|
]
|
|
185
|
-
}, sn = p(() =>
|
|
185
|
+
}, sn = p(() => te({
|
|
186
186
|
defaultConfig: {
|
|
187
187
|
useCssAnimation: !1,
|
|
188
188
|
table: { show: !1 },
|
|
@@ -213,7 +213,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
213
213
|
});
|
|
214
214
|
},
|
|
215
215
|
skeletonDataset: O.config?.skeletonDataset ?? [on, on],
|
|
216
|
-
skeletonConfig:
|
|
216
|
+
skeletonConfig: te({
|
|
217
217
|
defaultConfig: F.value,
|
|
218
218
|
userConfig: sn.value
|
|
219
219
|
})
|
|
@@ -234,7 +234,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
234
234
|
userConfig: O.config,
|
|
235
235
|
defaultConfig: r
|
|
236
236
|
}),
|
|
237
|
-
customPalette: e.customPalette.length ? e.customPalette : o[n] ||
|
|
237
|
+
customPalette: e.customPalette.length ? e.customPalette : o[n] || a
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
else t = e;
|
|
@@ -253,21 +253,21 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
253
253
|
left: r
|
|
254
254
|
};
|
|
255
255
|
});
|
|
256
|
-
function hn(e, t = 1e3,
|
|
257
|
-
return new Promise((
|
|
258
|
-
let
|
|
259
|
-
M.value = Array(
|
|
260
|
-
let
|
|
261
|
-
e.forEach((e,
|
|
256
|
+
function hn(e, t = 1e3, r = 50) {
|
|
257
|
+
return new Promise((i) => {
|
|
258
|
+
let a = e.length;
|
|
259
|
+
M.value = Array(a).fill(0), Zt.value = [];
|
|
260
|
+
let o = 0;
|
|
261
|
+
e.forEach((e, s) => {
|
|
262
262
|
setTimeout(() => {
|
|
263
|
-
let
|
|
264
|
-
function
|
|
265
|
-
let
|
|
266
|
-
M.value[
|
|
267
|
-
let
|
|
263
|
+
let r = performance.now();
|
|
264
|
+
function c(l) {
|
|
265
|
+
let ee = Math.min((l - r) / t, 1), u = e * de(ee);
|
|
266
|
+
M.value[s] = u, M.value = [...M.value];
|
|
267
|
+
let te = [], d = 0;
|
|
268
268
|
O.dataset.forEach((e, t) => {
|
|
269
|
-
let
|
|
270
|
-
|
|
269
|
+
let r = ne(e.series.reduce((e, t) => e + ne(n(t.values).reduce((e, t) => e + t, 0)), 0)) - ne(M.value.slice(d, d + e.series.length).reduce((e, t) => e + t, 0));
|
|
270
|
+
r > Number.MIN_VALUE && te.push({
|
|
271
271
|
name: "__ghost__",
|
|
272
272
|
arcOf: e.name,
|
|
273
273
|
arcOfId: `${k.value}_${t}`,
|
|
@@ -275,23 +275,23 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
275
275
|
seriesIndex: -1,
|
|
276
276
|
datasetIndex: t,
|
|
277
277
|
color: "transparent",
|
|
278
|
-
value:
|
|
279
|
-
fullValue:
|
|
278
|
+
value: r,
|
|
279
|
+
fullValue: r,
|
|
280
280
|
absoluteValues: [],
|
|
281
281
|
ghost: !0
|
|
282
282
|
}), d += e.series.length;
|
|
283
|
-
}), Zt.value =
|
|
283
|
+
}), Zt.value = te, ee < 1 ? requestAnimationFrame(c) : (o += 1, o === a && i());
|
|
284
284
|
}
|
|
285
|
-
requestAnimationFrame(
|
|
286
|
-
},
|
|
285
|
+
requestAnimationFrame(c);
|
|
286
|
+
}, s * r);
|
|
287
287
|
});
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function gn() {
|
|
291
291
|
if (F.value.startAnimation?.show) {
|
|
292
|
-
let e = L.value.flatMap((e) => e.series).map((e) =>
|
|
292
|
+
let e = L.value.flatMap((e) => e.series).map((e) => n(e.values).reduce((e, t) => e + t, 0));
|
|
293
293
|
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, t) => {
|
|
294
|
-
let
|
|
294
|
+
let r = e.series.reduce((e, t) => e + n(t.values).reduce((e, t) => e + t, 0), 0);
|
|
295
295
|
return {
|
|
296
296
|
name: "__ghost__",
|
|
297
297
|
arcOf: e.name,
|
|
@@ -300,8 +300,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
300
300
|
seriesIndex: -1,
|
|
301
301
|
datasetIndex: t,
|
|
302
302
|
color: "transparent",
|
|
303
|
-
value:
|
|
304
|
-
fullValue:
|
|
303
|
+
value: r,
|
|
304
|
+
fullValue: r,
|
|
305
305
|
absoluteValues: [],
|
|
306
306
|
ghost: !0
|
|
307
307
|
};
|
|
@@ -315,7 +315,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
315
315
|
});
|
|
316
316
|
let z = Ke(null), _n = Ke(null), B = p(() => F.value.debug);
|
|
317
317
|
function vn() {
|
|
318
|
-
if (
|
|
318
|
+
if (c(O.dataset) ? (se({
|
|
319
319
|
componentName: "VueUiNestedDonuts",
|
|
320
320
|
type: "dataset",
|
|
321
321
|
debug: B.value
|
|
@@ -343,7 +343,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
343
343
|
elementId: `nested_donuts_${k.value}`,
|
|
344
344
|
fileName: F.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
345
345
|
options: F.value.userOptions.print
|
|
346
|
-
}), Cn = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), wn = p(() =>
|
|
346
|
+
}), Cn = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), wn = p(() => fe(F.value.customPalette)), V = S({
|
|
347
347
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
348
348
|
showTable: F.value.table.show,
|
|
349
349
|
showTooltip: F.value.style.chart.tooltip.show
|
|
@@ -368,42 +368,42 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
368
368
|
index: t
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
function En({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a =
|
|
371
|
+
function En({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = de }) {
|
|
372
372
|
let o = performance.now();
|
|
373
373
|
function s(c) {
|
|
374
|
-
let l = Math.min((c - o) / n, 1),
|
|
375
|
-
r(e + (t - e) *
|
|
374
|
+
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
375
|
+
r(e + (t - e) * ee, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
376
376
|
}
|
|
377
377
|
requestAnimationFrame(s);
|
|
378
378
|
}
|
|
379
379
|
let W = S([]), G = p(() => {
|
|
380
380
|
cn.value, L.value.forEach((e, t) => {
|
|
381
|
-
[null, void 0].includes(e.name) &&
|
|
381
|
+
[null, void 0].includes(e.name) && se({
|
|
382
382
|
componentName: "VueUiNestedDonuts",
|
|
383
383
|
type: "datasetSerieAttribute",
|
|
384
384
|
property: "name",
|
|
385
385
|
index: t,
|
|
386
386
|
debug: B.value
|
|
387
|
-
}), [null, void 0].includes(e.series) ?
|
|
387
|
+
}), [null, void 0].includes(e.series) ? se({
|
|
388
388
|
componentName: "VueUiNestedDonuts",
|
|
389
389
|
type: "datasetSerieAttribute",
|
|
390
390
|
property: "series",
|
|
391
391
|
index: t,
|
|
392
392
|
debug: B.value
|
|
393
|
-
}) : e.series.length === 0 ?
|
|
393
|
+
}) : e.series.length === 0 ? se({
|
|
394
394
|
componentName: "VueUiNestedDonuts",
|
|
395
395
|
type: "datasetAttributeEmpty",
|
|
396
396
|
property: `series at index ${t}`,
|
|
397
397
|
debug: B.value
|
|
398
398
|
}) : e.series.forEach((e, t) => {
|
|
399
|
-
[null, void 0].includes(e.name) &&
|
|
399
|
+
[null, void 0].includes(e.name) && se({
|
|
400
400
|
componentName: "VueUiNestedDonuts",
|
|
401
401
|
type: "datasetSerieAttribute",
|
|
402
402
|
property: "name",
|
|
403
403
|
index: t,
|
|
404
404
|
key: "serie",
|
|
405
405
|
debug: B.value
|
|
406
|
-
}), [null, void 0].includes(e.values) &&
|
|
406
|
+
}), [null, void 0].includes(e.values) && se({
|
|
407
407
|
componentName: "VueUiNestedDonuts",
|
|
408
408
|
type: "datasetSerieAttribute",
|
|
409
409
|
property: "values",
|
|
@@ -414,23 +414,23 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
414
414
|
});
|
|
415
415
|
});
|
|
416
416
|
let e = 0;
|
|
417
|
-
return L.value.map((t,
|
|
417
|
+
return L.value.map((t, r) => ({
|
|
418
418
|
...t,
|
|
419
|
-
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) =>
|
|
420
|
-
datasetIndex:
|
|
421
|
-
id: `${k.value}_${
|
|
422
|
-
series: t.series.map((
|
|
423
|
-
let
|
|
419
|
+
total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => n(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
420
|
+
datasetIndex: r,
|
|
421
|
+
id: `${k.value}_${r}`,
|
|
422
|
+
series: t.series.map((i, o) => {
|
|
423
|
+
let s = n(i.values).reduce((e, t) => e + t, 0);
|
|
424
424
|
return {
|
|
425
|
-
name:
|
|
425
|
+
name: i.name,
|
|
426
426
|
arcOf: t.name,
|
|
427
|
-
arcOfId: `${k.value}_${
|
|
428
|
-
id: `${k.value}_${
|
|
429
|
-
seriesIndex:
|
|
430
|
-
datasetIndex:
|
|
431
|
-
color: l(
|
|
432
|
-
value: j.value ? M.value[e++] ?? 0 :
|
|
433
|
-
absoluteValues:
|
|
427
|
+
arcOfId: `${k.value}_${r}`,
|
|
428
|
+
id: `${k.value}_${r}_${o}`,
|
|
429
|
+
seriesIndex: o,
|
|
430
|
+
datasetIndex: r,
|
|
431
|
+
color: l(i.color) || wn.value[o] || a[o % a.length],
|
|
432
|
+
value: j.value ? M.value[e++] ?? 0 : s,
|
|
433
|
+
absoluteValues: i.values || []
|
|
434
434
|
};
|
|
435
435
|
})
|
|
436
436
|
}));
|
|
@@ -465,18 +465,18 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
465
465
|
U("selectLegend", q.value);
|
|
466
466
|
}
|
|
467
467
|
function Y(e) {
|
|
468
|
-
let t = O.dataset.flatMap((e, t) => e.series.map((e,
|
|
469
|
-
value:
|
|
470
|
-
id: `${k.value}_${t}_${
|
|
468
|
+
let t = O.dataset.flatMap((e, t) => e.series.map((e, r) => ({
|
|
469
|
+
value: n(e.values).reduce((e, t) => e + t, 0),
|
|
470
|
+
id: `${k.value}_${t}_${r}`,
|
|
471
471
|
arcOfId: `${k.value}_${t}`
|
|
472
472
|
}))).find((t) => t.id === e.id);
|
|
473
473
|
if (!t) return;
|
|
474
|
-
let
|
|
475
|
-
if (!
|
|
476
|
-
let
|
|
474
|
+
let r = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, i = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), a = i ? i.value : 0, o = G.value.find((e) => e.id === t.arcOfId);
|
|
475
|
+
if (!o) return;
|
|
476
|
+
let s = o.series.map((e) => e.id), c = Dn(s, s.length - 1, W.value);
|
|
477
477
|
W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? En({
|
|
478
|
-
from:
|
|
479
|
-
to:
|
|
478
|
+
from: a,
|
|
479
|
+
to: r,
|
|
480
480
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
481
481
|
onUpdate: (t) => {
|
|
482
482
|
J.value = J.value.map((n) => ({
|
|
@@ -494,10 +494,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
494
494
|
...t,
|
|
495
495
|
series: t.series.map((t) => t.id === e.id ? {
|
|
496
496
|
...t,
|
|
497
|
-
value:
|
|
497
|
+
value: r
|
|
498
498
|
} : t)
|
|
499
|
-
})), U("selectLegend", q.value))) :
|
|
500
|
-
from:
|
|
499
|
+
})), U("selectLegend", q.value))) : c && (F.value.serieToggleAnimation.show ? En({
|
|
500
|
+
from: a,
|
|
501
501
|
to: 0,
|
|
502
502
|
duration: F.value.serieToggleAnimation.durationMs,
|
|
503
503
|
onUpdate: (t) => {
|
|
@@ -539,7 +539,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
539
539
|
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
540
540
|
...e,
|
|
541
541
|
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
542
|
-
})), o =
|
|
542
|
+
})), o = ie({ series: [{
|
|
543
543
|
name: "_",
|
|
544
544
|
color: F.value.style.chart.layout.donut.emptyFill,
|
|
545
545
|
value: 1
|
|
@@ -552,13 +552,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
552
552
|
radius: r,
|
|
553
553
|
skeleton: o,
|
|
554
554
|
fullCirclePath: s,
|
|
555
|
-
donut:
|
|
555
|
+
donut: ie({ series: a }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value)
|
|
556
556
|
};
|
|
557
557
|
})), Pn = p(() => [...G.value].map((e, t) => {
|
|
558
558
|
let n = t * K.value / G.value.length;
|
|
559
559
|
return {
|
|
560
560
|
sizeRatio: n,
|
|
561
|
-
donut:
|
|
561
|
+
donut: ie({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - n, K.value - n, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
|
|
562
562
|
};
|
|
563
563
|
})), Fn = S(null), In = S(null), Z = S(null), Ln = S(null);
|
|
564
564
|
function Rn({ datapoint: e, seriesIndex: t }) {
|
|
@@ -587,7 +587,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
587
587
|
config: F.value
|
|
588
588
|
};
|
|
589
589
|
let i = F.value.style.chart.tooltip.customFormat;
|
|
590
|
-
if (
|
|
590
|
+
if (ee(i) && ae(() => i({
|
|
591
591
|
seriesIndex: n,
|
|
592
592
|
datapoint: e,
|
|
593
593
|
series: J.value,
|
|
@@ -620,7 +620,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
620
620
|
config: F.value.style.chart.tooltip,
|
|
621
621
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
622
622
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
623
|
-
val:
|
|
623
|
+
val: re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
|
|
624
624
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
625
625
|
v: e.value,
|
|
626
626
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -640,7 +640,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
640
640
|
</div>
|
|
641
641
|
`;
|
|
642
642
|
});
|
|
643
|
-
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${
|
|
643
|
+
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
|
|
644
644
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
645
645
|
v: e.value,
|
|
646
646
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -670,42 +670,42 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
670
670
|
if (!F.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(In.value) || In.value === e.id ? "" : `url(#blur_${k.value})`;
|
|
671
671
|
}
|
|
672
672
|
let Un = p(() => G.value.map((e, t) => {
|
|
673
|
-
let
|
|
674
|
-
let
|
|
675
|
-
return
|
|
676
|
-
}).reduce((e, t) => e + t, 0) :
|
|
677
|
-
return e.series.map((e,
|
|
678
|
-
let
|
|
679
|
-
val:
|
|
673
|
+
let r = e.series.filter((e) => !W.value.includes(e.id)), i = j.value ? r.map((e) => {
|
|
674
|
+
let r = L.value[t].series.findIndex((t) => t.name === e.name);
|
|
675
|
+
return n(L.value[t].series[r].values).reduce((e, t) => e + t, 0);
|
|
676
|
+
}).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
677
|
+
return e.series.map((e, r) => {
|
|
678
|
+
let a = n(L.value[t].series[r].values).reduce((e, t) => e + t, 0), o = j.value ? a : e.value, s = zn({
|
|
679
|
+
val: re(F.value.style.chart.layout.labels.dataLabels.formatter, o, u({
|
|
680
680
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
681
|
-
v:
|
|
681
|
+
v: o,
|
|
682
682
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
683
683
|
r: F.value.style.chart.legend.roundingValue
|
|
684
684
|
}), {
|
|
685
685
|
datapoint: e,
|
|
686
|
-
seriesIndex:
|
|
686
|
+
seriesIndex: r
|
|
687
687
|
}),
|
|
688
|
-
percentage: isNaN(
|
|
689
|
-
v:
|
|
688
|
+
percentage: isNaN(o / i) || W.value.includes(e.id) ? "-" : u({
|
|
689
|
+
v: o / i * 100,
|
|
690
690
|
s: "%",
|
|
691
691
|
r: F.value.style.chart.legend.roundingPercentage
|
|
692
692
|
}),
|
|
693
693
|
showVal: F.value.style.chart.legend.showValue,
|
|
694
694
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
695
695
|
config: F.value.style.chart.legend
|
|
696
|
-
}),
|
|
696
|
+
}), c = `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${s}`;
|
|
697
697
|
return {
|
|
698
698
|
name: e.name,
|
|
699
699
|
color: e.color,
|
|
700
|
-
value:
|
|
701
|
-
display:
|
|
702
|
-
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${
|
|
700
|
+
value: o,
|
|
701
|
+
display: c,
|
|
702
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${c}`,
|
|
703
703
|
shape: "circle",
|
|
704
704
|
arcOf: e.arcOf,
|
|
705
705
|
id: e.id,
|
|
706
|
-
seriesIndex:
|
|
706
|
+
seriesIndex: r,
|
|
707
707
|
datasetIndex: t,
|
|
708
|
-
total:
|
|
708
|
+
total: i,
|
|
709
709
|
opacity: W.value.includes(e.id) ? .5 : 1,
|
|
710
710
|
segregate: () => Y(e),
|
|
711
711
|
isSegregated: W.value.includes(e.id)
|
|
@@ -1156,7 +1156,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1156
1156
|
_("div", tt, [(x(), g("svg", {
|
|
1157
1157
|
ref_key: "svgRef",
|
|
1158
1158
|
ref: R,
|
|
1159
|
-
xmlns: E(
|
|
1159
|
+
xmlns: E(ue),
|
|
1160
1160
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1161
1161
|
class: Ve({
|
|
1162
1162
|
"vue-data-ui-fullscreen--on": P.value,
|
|
@@ -1195,7 +1195,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1195
1195
|
],
|
|
1196
1196
|
[
|
|
1197
1197
|
`${(1 - Mn.value / Nn.value[t]) * 100}%`,
|
|
1198
|
-
E(
|
|
1198
|
+
E(i)("#FFFFFF", 0),
|
|
1199
1199
|
0
|
|
1200
1200
|
],
|
|
1201
1201
|
[
|
|
@@ -1289,25 +1289,25 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1289
1289
|
}) : e.name), 9, gt)) : h("", !0)]))), 256))]))), 256))])) : h("", !0),
|
|
1290
1290
|
F.value.style.chart.layout.labels.dataLabels.show ? (x(), g("g", _t, [(x(!0), g(f, null, C(X.value, (e, t) => (x(), g("g", null, [(x(!0), g(f, null, C(e.donut.filter((e) => !e.ghost), (e, n) => (x(), g("g", { filter: Hn(e, n) }, [Xe(_("text", {
|
|
1291
1291
|
opacity: +!!Vn(e),
|
|
1292
|
-
"text-anchor": E(
|
|
1293
|
-
x: E(
|
|
1294
|
-
y: E(
|
|
1292
|
+
"text-anchor": E(d)(e, !0).anchor,
|
|
1293
|
+
x: E(d)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1294
|
+
y: E(ce)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst && F.value.style.chart.layout.labels.dataLabels.showValue ? F.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1295
1295
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1296
1296
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1297
1297
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1298
|
-
}, T(E(
|
|
1298
|
+
}, T(E(s)(E(u)({
|
|
1299
1299
|
v: e.proportion * 100,
|
|
1300
1300
|
s: "%",
|
|
1301
1301
|
r: F.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1302
1302
|
}), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 9, yt), [[Je, V.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showPercentage]]), Xe(_("text", {
|
|
1303
1303
|
opacity: +!!Vn(e),
|
|
1304
|
-
"text-anchor": E(
|
|
1305
|
-
x: E(
|
|
1306
|
-
y: E(
|
|
1304
|
+
"text-anchor": E(d)(e, !0).anchor,
|
|
1305
|
+
x: E(d)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1306
|
+
y: E(ce)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst || !F.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : F.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1307
1307
|
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1308
1308
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1309
1309
|
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1310
|
-
}, T(E(
|
|
1310
|
+
}, T(E(s)(E(re)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(u)({
|
|
1311
1311
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1312
1312
|
v: e.value,
|
|
1313
1313
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1361,7 +1361,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Ot }), Qe = ["id"], $e = ["id"], et
|
|
|
1361
1361
|
parent: A.value,
|
|
1362
1362
|
content: Vt.value,
|
|
1363
1363
|
isFullscreen: P.value,
|
|
1364
|
-
isCustom: E(
|
|
1364
|
+
isCustom: E(ee)(F.value.style.chart.tooltip.customFormat),
|
|
1365
1365
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1366
1366
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1367
1367
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|