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,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, G as i,
|
|
2
|
+
import { $ as t, Bt as n, D as r, G as i, Gt as a, Ht as o, It as s, Jt as c, Nt as ee, Q as te, S as ne, Tt as re, X as ie, Xt as ae, _ as oe, f as se, h as ce, i as le, jt as ue, mt as de, nt as fe, p as pe, q as me, t as he, w as ge, y as _e } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as ve, t as ye } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as be } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
5
|
import { t as xe } from "./useConfig-DwdGsXTx.js";
|
|
6
|
-
import { t as Se } from "./usePrinter-
|
|
6
|
+
import { t as Se } from "./usePrinter-CEiH1b6R.js";
|
|
7
7
|
import { n as Ce, t as we } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Te } from "./useNestedProp-
|
|
8
|
+
import { t as Te } from "./useNestedProp-CulPqtou.js";
|
|
9
9
|
import { t as Ee } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as De } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Oe } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as ke } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as Ae } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as je } from "./img-
|
|
15
|
-
import { n as Me } from "./Title-
|
|
14
|
+
import { t as je } from "./img-Bkzj3lDD.js";
|
|
15
|
+
import { n as Me } from "./Title-CaVA8EIw.js";
|
|
16
16
|
import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
17
|
import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
|
|
18
18
|
import { t as Ie } from "./DefGrad-DVBqDjhO.js";
|
|
19
|
-
import { t as Le } from "./SlicerPreview-
|
|
20
|
-
import { t as Re } from "./BaseLegendToggle-
|
|
19
|
+
import { t as Le } from "./SlicerPreview-BRRyc1p7.js";
|
|
20
|
+
import { t as Re } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
21
21
|
import { t as ze } from "./A11yDataTable-DdRsVULz.js";
|
|
22
22
|
import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
|
|
23
23
|
import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
24
|
-
import { t as He } from "./Legend-
|
|
24
|
+
import { t as He } from "./Legend-BJtY2RA9.js";
|
|
25
25
|
import { t as Ue } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
26
26
|
import { Fragment as l, Teleport as We, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Je, nextTick as Ye, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Xe, onMounted as Ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as w, toRefs as et, unref as T, watch as tt, watchEffect as nt, withCtx as E } from "vue";
|
|
27
27
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
@@ -169,83 +169,83 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
169
169
|
},
|
|
170
170
|
emits: ["selectLegend", "copyAlt"],
|
|
171
171
|
setup(e, { expose: Ne, emit: rt }) {
|
|
172
|
-
let Gt = h(() => import("./vue-ui-accordion-
|
|
173
|
-
function
|
|
174
|
-
|
|
172
|
+
let Gt = h(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Kt = h(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), qt = h(() => import("./DataTable-CmyEubtT.js")), Jt = h(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Yt = h(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Xt = h(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Zt = h(() => import("./vue-ui-donut-DZTtuFAG.js").then((e) => e.n)), Qt = h(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_donut_evolution: $t } = xe(), { isThemeValid: en, warnInvalidTheme: tn } = Ee(), D = e, O = x(me()), k = x([]), A = x(null), j = x(null), nn = x(!1), M = x(null), N = x(null), rn = x(null), an = x(0), on = x(0), sn = x(0), cn = x(0), ln = x(0), un = x(null), dn = x(null), fn = x(null), pn = x(null), mn = x(!1), P = x(null), hn = x(null), gn = $e(null), _n = x(0), vn = x(0), yn = x(!1);
|
|
173
|
+
function bn() {
|
|
174
|
+
gn.value = N.value?.parentNode ?? null;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function xn() {
|
|
177
177
|
return new Promise((e) => {
|
|
178
178
|
requestAnimationFrame(() => {
|
|
179
179
|
requestAnimationFrame(e);
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
async function
|
|
184
|
-
let e = ++
|
|
185
|
-
await Ye(), await
|
|
183
|
+
async function Sn() {
|
|
184
|
+
let e = ++vn.value;
|
|
185
|
+
await Ye(), await xn(), await xn(), e === vn.value && (_n.value += 1);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
function Cn() {
|
|
188
|
+
yn.value || (yn.value = !0, Ye(() => {
|
|
189
|
+
yn.value = !1, bn(), Sn();
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
|
-
let
|
|
193
|
-
elementRef:
|
|
192
|
+
let wn = ke({
|
|
193
|
+
elementRef: gn,
|
|
194
194
|
minimumWidth: 2,
|
|
195
195
|
minimumHeight: 2,
|
|
196
196
|
stableFramesRequired: 2,
|
|
197
197
|
once: !1,
|
|
198
198
|
onSizeAccepted: () => {
|
|
199
|
-
|
|
199
|
+
Sn();
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), Tn = x(null), En = x(null), Dn = x(null), On = x(null), kn = x(null), An = x(!1), F = $e(null), I = $e(null), jn = x(null), L = x(null), Mn = x(!1), Nn = rt, Pn = u(() => !!D.dataset && D.dataset.length);
|
|
202
202
|
Ze(() => {
|
|
203
|
-
mn.value = !0,
|
|
203
|
+
mn.value = !0, bn(), wn.start(), In(), Sn();
|
|
204
204
|
});
|
|
205
|
-
let
|
|
206
|
-
function
|
|
207
|
-
if (
|
|
205
|
+
let Fn = u(() => R.value.debug);
|
|
206
|
+
function In() {
|
|
207
|
+
if (ee(D.dataset) ? (fe({
|
|
208
208
|
componentName: "VueUiDonutEvolution",
|
|
209
209
|
type: "dataset",
|
|
210
|
-
debug:
|
|
211
|
-
}),
|
|
210
|
+
debug: Fn.value
|
|
211
|
+
}), Vn.value = !0) : D.dataset.length && D.dataset.forEach((e, t) => {
|
|
212
212
|
de({
|
|
213
213
|
datasetObject: e,
|
|
214
214
|
requiredAttributes: ["name", "values"]
|
|
215
215
|
}).forEach((e) => {
|
|
216
|
-
|
|
216
|
+
fe({
|
|
217
217
|
componentName: "VueUiDonutEvolution",
|
|
218
218
|
type: "datasetSerieAttribute",
|
|
219
219
|
property: e,
|
|
220
220
|
index: t,
|
|
221
|
-
debug:
|
|
222
|
-
}),
|
|
221
|
+
debug: Fn.value
|
|
222
|
+
}), Vn.value = !0;
|
|
223
223
|
});
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
}, 10),
|
|
224
|
+
}), ee(D.dataset) || (Vn.value = R.value.loading), setTimeout(() => {
|
|
225
|
+
An.value = !0;
|
|
226
|
+
}, 10), Wn(), R.value.responsive) {
|
|
227
227
|
let e = Pe(() => {
|
|
228
|
-
|
|
228
|
+
An.value = !1;
|
|
229
229
|
let { width: e, height: t } = Fe({
|
|
230
230
|
chart: N.value,
|
|
231
|
-
title:
|
|
232
|
-
legend:
|
|
233
|
-
slicer:
|
|
234
|
-
source:
|
|
231
|
+
title: R.value.style.chart.title.text ? Tn.value : null,
|
|
232
|
+
legend: R.value.style.chart.legend.show ? En.value : null,
|
|
233
|
+
slicer: R.value.style.chart.zoom.show && Hn.value > 1 ? kn.value : null,
|
|
234
|
+
source: Dn.value
|
|
235
235
|
});
|
|
236
236
|
requestAnimationFrame(() => {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
B.value.width = e, B.value.height = t - 12, Cn(), clearTimeout(jn.value), jn.value = setTimeout(() => {
|
|
238
|
+
An.value = !0;
|
|
239
239
|
}, 10);
|
|
240
240
|
});
|
|
241
241
|
});
|
|
242
|
-
|
|
242
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = N.value.parentNode, F.value.observe(I.value);
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
Cn();
|
|
245
245
|
}
|
|
246
|
-
let
|
|
246
|
+
let R = x(Xn());
|
|
247
247
|
ve({
|
|
248
|
-
config: () =>
|
|
248
|
+
config: () => R.value,
|
|
249
249
|
dataset: () => D.dataset,
|
|
250
250
|
component: "VueUiDonutEvolution",
|
|
251
251
|
rules: [
|
|
@@ -284,10 +284,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
284
284
|
}
|
|
285
285
|
]
|
|
286
286
|
});
|
|
287
|
-
let { transitionEnabled:
|
|
288
|
-
config: () =>
|
|
287
|
+
let { transitionEnabled: Ln } = Oe({
|
|
288
|
+
config: () => R.value.transitions,
|
|
289
289
|
dataset: () => D.dataset
|
|
290
|
-
}),
|
|
290
|
+
}), z = u(() => R.value.userOptions.useCursorPointer), Rn = u(() => ae({
|
|
291
291
|
defaultConfig: {
|
|
292
292
|
useCssAnimation: !1,
|
|
293
293
|
table: { show: !1 },
|
|
@@ -324,14 +324,14 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
324
324
|
}
|
|
325
325
|
} }
|
|
326
326
|
},
|
|
327
|
-
userConfig:
|
|
328
|
-
})), { loading:
|
|
327
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
328
|
+
})), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } = Ce({
|
|
329
329
|
...et(D),
|
|
330
|
-
FINAL_CONFIG:
|
|
330
|
+
FINAL_CONFIG: R,
|
|
331
331
|
prepareConfig: Xn,
|
|
332
332
|
callback: () => {
|
|
333
333
|
Promise.resolve().then(async () => {
|
|
334
|
-
await
|
|
334
|
+
await Wn();
|
|
335
335
|
});
|
|
336
336
|
},
|
|
337
337
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
@@ -372,36 +372,36 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
372
372
|
color: "#CACACA"
|
|
373
373
|
}
|
|
374
374
|
],
|
|
375
|
-
skeletonConfig:
|
|
376
|
-
defaultConfig:
|
|
377
|
-
userConfig:
|
|
375
|
+
skeletonConfig: ae({
|
|
376
|
+
defaultConfig: R.value,
|
|
377
|
+
userConfig: Rn.value
|
|
378
378
|
})
|
|
379
|
-
}),
|
|
380
|
-
width:
|
|
381
|
-
height:
|
|
382
|
-
}),
|
|
379
|
+
}), B = x({
|
|
380
|
+
width: R.value.style.chart.layout.width,
|
|
381
|
+
height: R.value.style.chart.layout.height
|
|
382
|
+
}), Hn = u(() => Math.max(...Bn.value.map((e) => e.values.length))), V = x({
|
|
383
383
|
start: 0,
|
|
384
|
-
end:
|
|
384
|
+
end: Hn.value
|
|
385
385
|
});
|
|
386
|
-
function
|
|
387
|
-
|
|
386
|
+
function Un() {
|
|
387
|
+
Wn();
|
|
388
388
|
}
|
|
389
|
-
async function
|
|
389
|
+
async function Wn() {
|
|
390
390
|
await Ye(), await Ye();
|
|
391
|
-
let { startIndex: e, endIndex: t } =
|
|
392
|
-
|
|
391
|
+
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = On.value;
|
|
392
|
+
V.value = {
|
|
393
393
|
start: 0,
|
|
394
394
|
end: q.value
|
|
395
|
-
}, (e != null || t != null) && n ? (e == null ? (
|
|
395
|
+
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Gn(t + 1))) : (V.value = {
|
|
396
396
|
start: 0,
|
|
397
397
|
end: q.value
|
|
398
|
-
}, on.value += 1),
|
|
398
|
+
}, on.value += 1), Cn();
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Gn(e) {
|
|
401
401
|
let t = q.value;
|
|
402
|
-
return e > t ? t : e < 0 ||
|
|
402
|
+
return e > t ? t : e < 0 || R.value.style.chart.zoom.startIndex !== null && e < R.value.style.chart.zoom.startIndex ? R.value.style.chart.zoom.startIndex === null ? 1 : R.value.style.chart.zoom.startIndex + 1 : e;
|
|
403
403
|
}
|
|
404
|
-
let { userOptionsVisible:
|
|
404
|
+
let { userOptionsVisible: Kn, setUserOptionsVisibility: qn, keepUserOptionState: Jn } = Be({ config: R.value }), { svgRef: Yn } = Ve({ config: R.value.style.chart.title });
|
|
405
405
|
function Xn() {
|
|
406
406
|
let e = Te({
|
|
407
407
|
userConfig: D.config,
|
|
@@ -418,38 +418,38 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
418
418
|
userConfig: D.config,
|
|
419
419
|
defaultConfig: r
|
|
420
420
|
}),
|
|
421
|
-
customPalette: e.customPalette ? e.customPalette :
|
|
421
|
+
customPalette: e.customPalette ? e.customPalette : c[n] || s
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
else t = e;
|
|
425
425
|
return t;
|
|
426
426
|
}
|
|
427
427
|
tt(() => D.config, (e) => {
|
|
428
|
-
|
|
428
|
+
zn.value || (R.value = Xn()), Kn.value = !R.value.userOptions.showOnChartHover, In(), sn.value += 1, cn.value += 1, ln.value += 1, H.value.showTable = R.value.table.show;
|
|
429
429
|
}, { deep: !0 }), tt(() => D.dataset, (e) => {
|
|
430
|
-
Array.isArray(e) && e.length > 0 && (
|
|
430
|
+
Array.isArray(e) && e.length > 0 && (Vn.value = !1), Un();
|
|
431
431
|
}, { deep: !0 });
|
|
432
432
|
let { isPrinting: Zn, isImaging: Qn, generatePdf: $n, generateImage: er } = Se({
|
|
433
433
|
elementId: O.value,
|
|
434
|
-
fileName:
|
|
435
|
-
options:
|
|
436
|
-
}), tr = u(() =>
|
|
437
|
-
tt(
|
|
438
|
-
H.value = { showTable:
|
|
434
|
+
fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
435
|
+
options: R.value.userOptions.print
|
|
436
|
+
}), tr = u(() => R.value.userOptions.show && !R.value.style.chart.title.text), nr = u(() => ge(R.value.customPalette)), H = x({ showTable: R.value.table.show });
|
|
437
|
+
tt(R, () => {
|
|
438
|
+
H.value = { showTable: R.value.table.show };
|
|
439
439
|
}, { immediate: !0 });
|
|
440
440
|
let U = u(() => ({
|
|
441
|
-
top:
|
|
442
|
-
right:
|
|
443
|
-
bottom:
|
|
444
|
-
left:
|
|
445
|
-
})), W = u(() =>
|
|
441
|
+
top: R.value.style.chart.layout.padding.top,
|
|
442
|
+
right: R.value.style.chart.layout.padding.right,
|
|
443
|
+
bottom: R.value.style.chart.layout.padding.bottom,
|
|
444
|
+
left: R.value.style.chart.layout.padding.left
|
|
445
|
+
})), W = u(() => R.value.style.chart.layout.grid.yAxis.position === "right");
|
|
446
446
|
function rr() {
|
|
447
447
|
let e = 0;
|
|
448
448
|
un.value && (e = Array.from(un.value.querySelectorAll("text")).reduce((e, t) => {
|
|
449
449
|
let n = t.getComputedTextLength();
|
|
450
450
|
return n > e ? n : e;
|
|
451
451
|
}, 0));
|
|
452
|
-
let t = pn.value ? pn.value.getBoundingClientRect().width +
|
|
452
|
+
let t = pn.value ? pn.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
453
453
|
return {
|
|
454
454
|
left: W.value ? 0 : n,
|
|
455
455
|
right: W.value ? n : 0,
|
|
@@ -469,16 +469,16 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
469
469
|
});
|
|
470
470
|
n.observe(t), e(() => n.disconnect());
|
|
471
471
|
}), Xe(() => {
|
|
472
|
-
ir.value = 0,
|
|
472
|
+
ir.value = 0, wn.stop(), clearTimeout(jn.value), F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect(), F.value = null, I.value = null);
|
|
473
473
|
});
|
|
474
474
|
let or = u(() => {
|
|
475
475
|
let e = 0;
|
|
476
476
|
fn.value && (e = fn.value.getBBox().height);
|
|
477
477
|
let t = 0;
|
|
478
|
-
return dn.value && (t = ir.value), e + t +
|
|
478
|
+
return dn.value && (t = ir.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
479
479
|
}), G = u(() => {
|
|
480
|
-
|
|
481
|
-
let e = rr(), t =
|
|
480
|
+
_n.value;
|
|
481
|
+
let e = rr(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - or.value, c = U.value.top + t;
|
|
482
482
|
return {
|
|
483
483
|
top: c,
|
|
484
484
|
left: i,
|
|
@@ -494,44 +494,44 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
494
494
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
495
495
|
crosshair: e.crosshair
|
|
496
496
|
};
|
|
497
|
-
}), K = u(() => (
|
|
498
|
-
[null, void 0].includes(e.name) &&
|
|
497
|
+
}), K = u(() => (Fn.value && Bn.value.forEach((e, t) => {
|
|
498
|
+
[null, void 0].includes(e.name) && fe({
|
|
499
499
|
componentName: "VueUiDonutEvolution",
|
|
500
500
|
type: "datasetSerieAttribute",
|
|
501
501
|
property: "name",
|
|
502
502
|
index: t
|
|
503
|
-
}), [null, void 0].includes(e.values) &&
|
|
503
|
+
}), [null, void 0].includes(e.values) && fe({
|
|
504
504
|
componentName: "VueUiDonutEvolution",
|
|
505
505
|
type: "datasetSerieAttribute",
|
|
506
506
|
property: "values",
|
|
507
507
|
index: t
|
|
508
508
|
});
|
|
509
|
-
}),
|
|
509
|
+
}), Bn.value.map((e, t) => ({
|
|
510
510
|
...e,
|
|
511
|
-
values:
|
|
512
|
-
color:
|
|
511
|
+
values: n(e.values),
|
|
512
|
+
color: ne(e.color) || nr.value[t] || s[t] || s[t % s.length],
|
|
513
513
|
length: (e.values || []).length,
|
|
514
|
-
uid:
|
|
514
|
+
uid: me()
|
|
515
515
|
})))), sr = u(() => K.value.filter((e) => !k.value.includes(e.uid)).map((e) => ({
|
|
516
516
|
...e,
|
|
517
|
-
values: e.values.filter((e, t) => t >=
|
|
517
|
+
values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
|
|
518
518
|
}))), q = u(() => Math.max(...K.value.map((e) => e.length))), J = x([]), cr = 0;
|
|
519
519
|
nt(() => {
|
|
520
520
|
let e = ++cr;
|
|
521
521
|
(async () => {
|
|
522
522
|
let t = await be({
|
|
523
|
-
values:
|
|
523
|
+
values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
524
524
|
maxDatapoints: q.value,
|
|
525
|
-
formatter:
|
|
526
|
-
start:
|
|
527
|
-
end:
|
|
525
|
+
formatter: R.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
526
|
+
start: V.value.start,
|
|
527
|
+
end: V.value.end
|
|
528
528
|
});
|
|
529
529
|
e === cr && (J.value = t);
|
|
530
530
|
})();
|
|
531
531
|
});
|
|
532
|
-
let Y = u(() => G.value.width / (
|
|
532
|
+
let Y = u(() => G.value.width / (V.value.end - V.value.start)), lr = u(() => {
|
|
533
533
|
let e = [];
|
|
534
|
-
for (let t = 0; t <
|
|
534
|
+
for (let t = 0; t < V.value.end - V.value.start; t += 1) {
|
|
535
535
|
let n = sr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = G.value.left + Y.value * t + Y.value / 2;
|
|
536
536
|
e.push({
|
|
537
537
|
index: t,
|
|
@@ -543,17 +543,17 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
543
543
|
}
|
|
544
544
|
return e;
|
|
545
545
|
}), ur = u(() => {
|
|
546
|
-
let e = Math.max(...lr.value.map((e) => e.subtotal).filter((e) =>
|
|
547
|
-
return r =
|
|
546
|
+
let e = Math.max(...lr.value.map((e) => e.subtotal).filter((e) => re(e))) ?? 1, t = Math.min(...lr.value.map((e) => e.subtotal).filter((e) => re(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
|
|
547
|
+
return r = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
|
|
548
548
|
max: n,
|
|
549
549
|
min: r
|
|
550
550
|
};
|
|
551
551
|
}), X = u(() => {
|
|
552
552
|
let e = lr.value.length === 1 ? ur.value.max * 2 : ur.value.max;
|
|
553
|
-
return
|
|
553
|
+
return oe(ur.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
554
554
|
});
|
|
555
555
|
tt(() => X.value.ticks.join("|"), () => {
|
|
556
|
-
|
|
556
|
+
Cn();
|
|
557
557
|
}, { flush: "post" });
|
|
558
558
|
function dr(e) {
|
|
559
559
|
return (e - X.value.min) / (X.value.max - X.value.min);
|
|
@@ -575,48 +575,48 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
575
575
|
radius: i,
|
|
576
576
|
activeRadius: a,
|
|
577
577
|
hoverRadius: o,
|
|
578
|
-
donut:
|
|
579
|
-
donutHover:
|
|
580
|
-
donutFocus:
|
|
578
|
+
donut: ue({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
|
|
579
|
+
donutHover: ue({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
|
|
580
|
+
donutFocus: ue({ series: c }, G.value.centerX, G.value.centerY, G.value.height / 3.6, G.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, G.value.height / 6)
|
|
581
581
|
};
|
|
582
582
|
});
|
|
583
583
|
});
|
|
584
584
|
function pr(e, t, n) {
|
|
585
|
-
return
|
|
586
|
-
p:
|
|
585
|
+
return le(R.value.style.chart.layout.dataLabels.formatter, e, ie({
|
|
586
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
587
587
|
v: e,
|
|
588
|
-
s:
|
|
589
|
-
r:
|
|
588
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
589
|
+
r: R.value.style.chart.layout.dataLabels.rounding
|
|
590
590
|
}), {
|
|
591
591
|
datapoint: t,
|
|
592
592
|
index: n
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
function mr(e, t) {
|
|
596
|
-
return isNaN(e.value /
|
|
596
|
+
return isNaN(e.value / a(t, "value")) ? 0 : (e.value / a(t, "value") * 100).toFixed(0) + "%";
|
|
597
597
|
}
|
|
598
598
|
function hr(e) {
|
|
599
|
-
A.value = null, j.value = null,
|
|
599
|
+
A.value = null, j.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
600
600
|
datapoint: e,
|
|
601
|
-
seriesIndex: e.seriesIndex +
|
|
601
|
+
seriesIndex: e.seriesIndex + V.value.start
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
function gr(e) {
|
|
605
|
-
|
|
605
|
+
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
606
606
|
datapoint: e,
|
|
607
|
-
seriesIndex: e.index +
|
|
608
|
-
}), A.value = e.index, j.value = e,
|
|
607
|
+
seriesIndex: e.index + V.value.start
|
|
608
|
+
}), A.value = e.index, j.value = e, L.value = e.index;
|
|
609
609
|
}
|
|
610
610
|
let _r = x(null);
|
|
611
611
|
function vr(e, t) {
|
|
612
|
-
|
|
612
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
613
613
|
datapoint: e,
|
|
614
|
-
seriesIndex: e.index +
|
|
615
|
-
}), !(!e.subtotal || !
|
|
614
|
+
seriesIndex: e.index + V.value.start
|
|
615
|
+
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (j.value = null, A.value = null, nn.value = !0, M.value = e, Lr(e), [null, void 0].includes(t) || (_r.value = t));
|
|
616
616
|
}
|
|
617
617
|
let yr = u(() => K.value.map((e, t) => ({
|
|
618
618
|
name: e.name,
|
|
619
|
-
value: e.values.slice(
|
|
619
|
+
value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
|
|
620
620
|
shape: "circle",
|
|
621
621
|
uid: e.uid,
|
|
622
622
|
color: e.color
|
|
@@ -625,42 +625,42 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
625
625
|
opacity: k.value.includes(e.uid) ? .5 : 1,
|
|
626
626
|
segregate: () => Cr(e.uid),
|
|
627
627
|
isSegregated: k.value.includes(e.uid),
|
|
628
|
-
display: `${e.name}${
|
|
629
|
-
p:
|
|
628
|
+
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? le(R.value.style.chart.layout.dataLabels.formatter, e.value, ie({
|
|
629
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
630
630
|
v: e.value,
|
|
631
|
-
s:
|
|
632
|
-
r:
|
|
631
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
632
|
+
r: R.value.style.chart.legend.roundingValue
|
|
633
633
|
}), {
|
|
634
634
|
datapoint: e,
|
|
635
635
|
seriesIndex: t
|
|
636
|
-
}) : ""}${
|
|
636
|
+
}) : ""}${R.value.style.chart.legend.showPercentage ? k.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / br.value) ? "-" : ie({
|
|
637
637
|
v: e.value / br.value * 100,
|
|
638
638
|
s: "%",
|
|
639
|
-
r:
|
|
640
|
-
})}${
|
|
639
|
+
r: R.value.style.chart.legend.roundingPercentage
|
|
640
|
+
})}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
641
641
|
}))), br = u(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), xr = u(() => ({
|
|
642
642
|
cy: "donut-div-legend",
|
|
643
|
-
backgroundColor:
|
|
644
|
-
color:
|
|
645
|
-
fontSize:
|
|
643
|
+
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
644
|
+
color: R.value.style.chart.legend.color,
|
|
645
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
646
646
|
paddingBottom: 12,
|
|
647
|
-
fontWeight:
|
|
647
|
+
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
648
648
|
}));
|
|
649
649
|
function Sr() {
|
|
650
650
|
k.value.length ? k.value = [] : yr.value.forEach((e) => {
|
|
651
651
|
k.value.push(e.uid);
|
|
652
|
-
}),
|
|
652
|
+
}), Nn("selectLegend", sr.value);
|
|
653
653
|
}
|
|
654
654
|
function Cr(e) {
|
|
655
|
-
if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e),
|
|
655
|
+
if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e), Nn("selectLegend", sr.value);
|
|
656
656
|
else {
|
|
657
657
|
if (k.value.length === K.value.length - 1) return;
|
|
658
|
-
k.value.push(e),
|
|
658
|
+
k.value.push(e), Nn("selectLegend", sr.value);
|
|
659
659
|
}
|
|
660
660
|
M.value && vr(Z.value.find((e, t) => t === _r.value));
|
|
661
661
|
}
|
|
662
662
|
function wr(e) {
|
|
663
|
-
return K.value.length ? K.value.find((t) => t.name === e) || (
|
|
663
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (Fn.value && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (Fn.value && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
664
664
|
}
|
|
665
665
|
function Tr(e) {
|
|
666
666
|
let t = wr(e);
|
|
@@ -680,7 +680,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
680
680
|
t.push([J.value[e] ? J.value[e].text : "-"].concat(K.value.filter((e) => !k.value.includes(e.uid)).map((t) => ({
|
|
681
681
|
value: t.values[e] ?? 0,
|
|
682
682
|
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
683
|
-
})), [`${
|
|
683
|
+
})), [`${R.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(R.value.table.td.roundingValue))}${R.value.style.chart.layout.dataLabels.suffix}`]));
|
|
684
684
|
}
|
|
685
685
|
return {
|
|
686
686
|
head: e,
|
|
@@ -688,18 +688,18 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
688
688
|
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${pr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
689
689
|
config: {
|
|
690
690
|
th: {
|
|
691
|
-
backgroundColor:
|
|
692
|
-
color:
|
|
693
|
-
outline:
|
|
691
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
692
|
+
color: R.value.table.th.color,
|
|
693
|
+
outline: R.value.table.th.outline
|
|
694
694
|
},
|
|
695
695
|
td: {
|
|
696
|
-
backgroundColor:
|
|
697
|
-
color:
|
|
698
|
-
outline:
|
|
696
|
+
backgroundColor: R.value.table.td.backgroundColor,
|
|
697
|
+
color: R.value.table.td.color,
|
|
698
|
+
outline: R.value.table.td.outline
|
|
699
699
|
},
|
|
700
|
-
breakpoint:
|
|
700
|
+
breakpoint: R.value.table.responsiveBreakpoint
|
|
701
701
|
},
|
|
702
|
-
colNames: [
|
|
702
|
+
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !k.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
|
|
703
703
|
};
|
|
704
704
|
});
|
|
705
705
|
function Dr() {
|
|
@@ -708,13 +708,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
708
708
|
function Or(e = null) {
|
|
709
709
|
Ye(() => {
|
|
710
710
|
let n = [
|
|
711
|
-
[
|
|
712
|
-
[
|
|
711
|
+
[R.value.style.chart.title.text],
|
|
712
|
+
[R.value.style.chart.title.subtitle.text],
|
|
713
713
|
[""]
|
|
714
714
|
], i = [...Q.value.head.map((e) => e.name ?? e)], a = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], o = n.concat([i]).concat(a), s = r(o);
|
|
715
715
|
e ? e(s) : t({
|
|
716
716
|
csvContent: s,
|
|
717
|
-
title:
|
|
717
|
+
title: R.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
718
718
|
});
|
|
719
719
|
});
|
|
720
720
|
}
|
|
@@ -730,7 +730,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
730
730
|
jr.value = !jr.value;
|
|
731
731
|
}
|
|
732
732
|
function Nr(e) {
|
|
733
|
-
return e.proportion * 100 >
|
|
733
|
+
return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
734
734
|
}
|
|
735
735
|
let Pr = x([]), Fr = x({}), Ir = x(null);
|
|
736
736
|
function Lr(e) {
|
|
@@ -738,10 +738,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
738
738
|
name: e.name,
|
|
739
739
|
values: [e.value],
|
|
740
740
|
color: e.color
|
|
741
|
-
})), Fr.value =
|
|
742
|
-
...
|
|
741
|
+
})), Fr.value = te({
|
|
742
|
+
...R.value.style.chart.dialog.donutChart,
|
|
743
743
|
responsive: !0,
|
|
744
|
-
theme:
|
|
744
|
+
theme: R.value.theme
|
|
745
745
|
}), Ir.value && Ir.value.open();
|
|
746
746
|
}
|
|
747
747
|
async function Rr({ scale: e = 2 } = {}) {
|
|
@@ -755,18 +755,18 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
755
755
|
return {
|
|
756
756
|
imageUri: i,
|
|
757
757
|
base64: a,
|
|
758
|
-
title:
|
|
758
|
+
title: R.value.style.chart.title.text,
|
|
759
759
|
width: t,
|
|
760
760
|
height: n,
|
|
761
761
|
aspectRatio: r
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
let zr = u(() =>
|
|
764
|
+
let zr = u(() => B.value.width), Br = u(() => B.value.height);
|
|
765
765
|
Ae({
|
|
766
766
|
timeLabelsEls: dn,
|
|
767
767
|
timeLabels: J,
|
|
768
|
-
slicer:
|
|
769
|
-
configRef:
|
|
768
|
+
slicer: V,
|
|
769
|
+
configRef: R,
|
|
770
770
|
rotationPath: [
|
|
771
771
|
"style",
|
|
772
772
|
"chart",
|
|
@@ -789,92 +789,92 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
789
789
|
isAutoSize: !1,
|
|
790
790
|
width: zr,
|
|
791
791
|
height: Br,
|
|
792
|
-
rotation:
|
|
792
|
+
rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
793
793
|
});
|
|
794
794
|
let Vr = u(() => {
|
|
795
|
-
let e =
|
|
795
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
796
796
|
return {
|
|
797
797
|
component: e ? Qt : Gt,
|
|
798
|
-
title: `${
|
|
798
|
+
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
799
799
|
props: e ? {
|
|
800
|
-
backgroundColor:
|
|
801
|
-
color:
|
|
802
|
-
headerColor:
|
|
803
|
-
headerBg:
|
|
800
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
801
|
+
color: R.value.table.th.color,
|
|
802
|
+
headerColor: R.value.table.th.color,
|
|
803
|
+
headerBg: R.value.table.th.backgroundColor,
|
|
804
804
|
isFullscreen: $.value,
|
|
805
805
|
fullscreenParent: N.value,
|
|
806
806
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
807
|
-
isCursorPointer:
|
|
807
|
+
isCursorPointer: z.value
|
|
808
808
|
} : {
|
|
809
809
|
hideDetails: !0,
|
|
810
810
|
config: {
|
|
811
811
|
open: t,
|
|
812
812
|
maxHeight: 1e4,
|
|
813
813
|
body: {
|
|
814
|
-
backgroundColor:
|
|
815
|
-
color:
|
|
814
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
815
|
+
color: R.value.style.chart.color
|
|
816
816
|
},
|
|
817
817
|
head: {
|
|
818
|
-
backgroundColor:
|
|
819
|
-
color:
|
|
818
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
819
|
+
color: R.value.style.chart.color
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
});
|
|
825
825
|
tt(() => H.value.showTable, (e) => {
|
|
826
|
-
|
|
826
|
+
R.value.table.show || (e && R.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
827
827
|
});
|
|
828
828
|
function Hr() {
|
|
829
|
-
H.value.showTable = !1,
|
|
829
|
+
H.value.showTable = !1, hn.value && hn.value.setTableIconState(!1);
|
|
830
830
|
}
|
|
831
831
|
let Ur = u(() => yr.value.map((e) => ({
|
|
832
832
|
...e,
|
|
833
833
|
name: e.display
|
|
834
|
-
}))), Wr = u(() =>
|
|
835
|
-
svg:
|
|
834
|
+
}))), Wr = u(() => R.value.style.chart.backgroundColor), Gr = u(() => R.value.style.chart.legend), Kr = u(() => R.value.style.chart.title), { isCallbackImaging: qr, isCallbackSvg: Jr, generateSvg: Yr, onGenerateImage: Xr } = De({
|
|
835
|
+
svg: Yn,
|
|
836
836
|
title: Kr,
|
|
837
837
|
legend: Gr,
|
|
838
838
|
legendItems: Ur,
|
|
839
839
|
backgroundColor: Wr,
|
|
840
|
-
getSvgCallback: () =>
|
|
840
|
+
getSvgCallback: () => R.value.userOptions.callbacks.svg,
|
|
841
841
|
generateImage: er
|
|
842
842
|
});
|
|
843
843
|
async function Zr() {
|
|
844
|
-
if (
|
|
845
|
-
config:
|
|
844
|
+
if (Nn("copyAlt", {
|
|
845
|
+
config: R.value,
|
|
846
846
|
dataset: Z.value
|
|
847
|
-
}), !
|
|
847
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
848
848
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
|
-
await Promise.resolve(
|
|
852
|
-
config:
|
|
851
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
852
|
+
config: R.value,
|
|
853
853
|
dataset: Z.value
|
|
854
854
|
}));
|
|
855
855
|
}
|
|
856
856
|
function Qr() {
|
|
857
|
-
|
|
857
|
+
L.value = null, Mn.value = !0;
|
|
858
858
|
}
|
|
859
859
|
function $r() {
|
|
860
|
-
|
|
860
|
+
L.value = null, A.value = null, j.value = null, Mn.value = !1;
|
|
861
861
|
}
|
|
862
862
|
function ei(e) {
|
|
863
|
-
if (!
|
|
863
|
+
if (!Yn.value || jr.value || document.activeElement !== Yn.value || !Z.value.length) return;
|
|
864
864
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
865
865
|
if (!t && !n && !r && !i) return;
|
|
866
866
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
867
|
-
|
|
867
|
+
L.value = null, A.value = null, j.value = null;
|
|
868
868
|
return;
|
|
869
869
|
}
|
|
870
870
|
if (r) {
|
|
871
|
-
if (
|
|
872
|
-
let e = Z.value[
|
|
871
|
+
if (L.value === null) return;
|
|
872
|
+
let e = Z.value[L.value];
|
|
873
873
|
if (!e) return;
|
|
874
|
-
vr(e,
|
|
874
|
+
vr(e, L.value);
|
|
875
875
|
return;
|
|
876
876
|
}
|
|
877
|
-
let a =
|
|
877
|
+
let a = L.value, o = A.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
|
|
878
878
|
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
879
879
|
let ee = Z.value[a];
|
|
880
880
|
ee && gr(ee);
|
|
@@ -899,23 +899,23 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
899
899
|
}), (e, t) => (b(), p("div", {
|
|
900
900
|
ref_key: "donutEvolutionChart",
|
|
901
901
|
ref: N,
|
|
902
|
-
class: _(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${
|
|
903
|
-
style: y(`font-family:${
|
|
902
|
+
class: _(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
903
|
+
style: y(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
904
904
|
id: O.value,
|
|
905
|
-
onMouseenter: t[5] ||= () => T(
|
|
906
|
-
onMouseleave: t[6] ||= () => T(
|
|
905
|
+
onMouseenter: t[5] ||= () => T(qn)(!0),
|
|
906
|
+
onMouseleave: t[6] ||= () => T(qn)(!1)
|
|
907
907
|
}, [
|
|
908
908
|
m("div", {
|
|
909
909
|
id: `chart-instructions-${O.value}`,
|
|
910
910
|
class: "sr-only"
|
|
911
|
-
}, [m("p", null, w(
|
|
911
|
+
}, [m("p", null, w(R.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
912
912
|
ti.value?.rows?.length ? (b(), d(ze, {
|
|
913
913
|
key: 0,
|
|
914
914
|
uid: O.value,
|
|
915
915
|
head: ti.value.headers,
|
|
916
916
|
body: ti.value.rows,
|
|
917
|
-
notice:
|
|
918
|
-
caption:
|
|
917
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
918
|
+
caption: R.value.a11y.translations.tableCaption
|
|
919
919
|
}, null, 8, [
|
|
920
920
|
"uid",
|
|
921
921
|
"head",
|
|
@@ -923,13 +923,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
923
923
|
"notice",
|
|
924
924
|
"caption"
|
|
925
925
|
])) : f("", !0),
|
|
926
|
-
|
|
926
|
+
R.value.userOptions.buttons.annotator ? (b(), d(T(Yt), {
|
|
927
927
|
key: 1,
|
|
928
|
-
svgRef: T(
|
|
929
|
-
backgroundColor:
|
|
930
|
-
color:
|
|
928
|
+
svgRef: T(Yn),
|
|
929
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
930
|
+
color: R.value.style.chart.color,
|
|
931
931
|
active: jr.value,
|
|
932
|
-
isCursorPointer:
|
|
932
|
+
isCursorPointer: z.value,
|
|
933
933
|
onClose: Mr
|
|
934
934
|
}, {
|
|
935
935
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -953,10 +953,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
953
953
|
class: "vue-data-ui-no-title-space",
|
|
954
954
|
style: "height:36px; width: 100%;background:transparent"
|
|
955
955
|
}, null, 512)) : f("", !0),
|
|
956
|
-
|
|
956
|
+
R.value.style.chart.title.text ? (b(), p("div", {
|
|
957
957
|
key: 3,
|
|
958
958
|
ref_key: "chartTitle",
|
|
959
|
-
ref:
|
|
959
|
+
ref: Tn,
|
|
960
960
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
961
961
|
onMouseleave: hr
|
|
962
962
|
}, [(b(), d(Me, {
|
|
@@ -964,41 +964,41 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
964
964
|
config: {
|
|
965
965
|
title: {
|
|
966
966
|
cy: "donut-evolution-div-title",
|
|
967
|
-
...
|
|
967
|
+
...R.value.style.chart.title
|
|
968
968
|
},
|
|
969
969
|
subtitle: {
|
|
970
970
|
cy: "donut-evolution-div-subtitle",
|
|
971
|
-
...
|
|
971
|
+
...R.value.style.chart.title.subtitle
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
}, null, 8, ["config"]))], 544)) : f("", !0),
|
|
975
975
|
m("div", { id: `legend-top-${O.value}` }, null, 8, ot),
|
|
976
|
-
|
|
976
|
+
R.value.userOptions.show && Pn.value && (T(Jn) || T(Kn)) ? (b(), d(T(Xt), {
|
|
977
977
|
ref_key: "userOptionsRef",
|
|
978
|
-
ref:
|
|
978
|
+
ref: hn,
|
|
979
979
|
key: `user_options_${an.value}`,
|
|
980
|
-
backgroundColor:
|
|
981
|
-
color:
|
|
980
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
981
|
+
color: R.value.style.chart.color,
|
|
982
982
|
isPrinting: T(Zn),
|
|
983
983
|
isImaging: T(Qn),
|
|
984
984
|
uid: O.value,
|
|
985
|
-
hasPdf:
|
|
986
|
-
hasImg:
|
|
987
|
-
hasSvg:
|
|
988
|
-
hasXls:
|
|
989
|
-
hasTable:
|
|
990
|
-
hasFullscreen:
|
|
991
|
-
hasAltCopy:
|
|
985
|
+
hasPdf: R.value.userOptions.buttons.pdf,
|
|
986
|
+
hasImg: R.value.userOptions.buttons.img,
|
|
987
|
+
hasSvg: R.value.userOptions.buttons.svg,
|
|
988
|
+
hasXls: R.value.userOptions.buttons.csv,
|
|
989
|
+
hasTable: R.value.userOptions.buttons.table,
|
|
990
|
+
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
991
|
+
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
992
992
|
isFullscreen: $.value,
|
|
993
|
-
titles: { ...
|
|
993
|
+
titles: { ...R.value.userOptions.buttonTitles },
|
|
994
994
|
chartElement: N.value,
|
|
995
|
-
position:
|
|
996
|
-
hasAnnotator:
|
|
995
|
+
position: R.value.userOptions.position,
|
|
996
|
+
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
997
997
|
isAnnotation: jr.value,
|
|
998
|
-
callbacks:
|
|
999
|
-
printScale:
|
|
1000
|
-
tableDialog:
|
|
1001
|
-
isCursorPointer:
|
|
998
|
+
callbacks: R.value.userOptions.callbacks,
|
|
999
|
+
printScale: R.value.userOptions.print.scale,
|
|
1000
|
+
tableDialog: R.value.table.useDialog,
|
|
1001
|
+
isCursorPointer: z.value,
|
|
1002
1002
|
onToggleFullscreen: kr,
|
|
1003
1003
|
onGeneratePdf: T($n),
|
|
1004
1004
|
onGenerateCsv: Or,
|
|
@@ -1007,7 +1007,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1007
1007
|
onToggleTable: Ar,
|
|
1008
1008
|
onToggleAnnotator: Mr,
|
|
1009
1009
|
onCopyAlt: Zr,
|
|
1010
|
-
style: y({ visibility: T(
|
|
1010
|
+
style: y({ visibility: T(Jn) ? T(Kn) ? "visible" : "hidden" : "visible" })
|
|
1011
1011
|
}, Ge({ _: 2 }, [
|
|
1012
1012
|
e.$slots.menuIcon ? {
|
|
1013
1013
|
name: "menuIcon",
|
|
@@ -1076,16 +1076,16 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1076
1076
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
|
|
1077
1077
|
m("div", st, [(b(), p("svg", {
|
|
1078
1078
|
ref_key: "svgRef",
|
|
1079
|
-
ref:
|
|
1080
|
-
xmlns: T(
|
|
1079
|
+
ref: Yn,
|
|
1080
|
+
xmlns: T(he),
|
|
1081
1081
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1082
1082
|
class: _({
|
|
1083
1083
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1084
1084
|
"vue-data-ui-fulscreen--off": !$.value,
|
|
1085
|
-
"vue-data-ui-no-transition": !T(
|
|
1085
|
+
"vue-data-ui-no-transition": !T(Ln)
|
|
1086
1086
|
}),
|
|
1087
1087
|
viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
|
|
1088
|
-
style: y(`max-width:100%; overflow: visible; background:transparent;color:${
|
|
1088
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
|
|
1089
1089
|
tabindex: "0",
|
|
1090
1090
|
onFocus: Qr,
|
|
1091
1091
|
onBlur: $r,
|
|
@@ -1109,11 +1109,11 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1109
1109
|
y2: "100%",
|
|
1110
1110
|
stops: [[
|
|
1111
1111
|
"0%",
|
|
1112
|
-
T(
|
|
1112
|
+
T(o)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
|
|
1113
1113
|
1
|
|
1114
1114
|
], [
|
|
1115
1115
|
"100%",
|
|
1116
|
-
T(
|
|
1116
|
+
T(o)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
|
|
1117
1117
|
1
|
|
1118
1118
|
]]
|
|
1119
1119
|
}, null, 8, ["id", "stops"]), qe(Ie, {
|
|
@@ -1122,29 +1122,29 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1122
1122
|
stops: [
|
|
1123
1123
|
[
|
|
1124
1124
|
"0%",
|
|
1125
|
-
T(
|
|
1125
|
+
T(o)(T(ne)(R.value.style.chart.backgroundColor), 0),
|
|
1126
1126
|
1
|
|
1127
1127
|
],
|
|
1128
1128
|
[
|
|
1129
1129
|
"77%",
|
|
1130
|
-
T(
|
|
1130
|
+
T(o)("#FFFFFF", 30),
|
|
1131
1131
|
1
|
|
1132
1132
|
],
|
|
1133
1133
|
[
|
|
1134
1134
|
"100%",
|
|
1135
|
-
T(
|
|
1135
|
+
T(o)(T(ne)(R.value.style.chart.backgroundColor), 0),
|
|
1136
1136
|
1
|
|
1137
1137
|
]
|
|
1138
1138
|
]
|
|
1139
1139
|
}, null, 8, ["id", "stops"])]),
|
|
1140
|
-
|
|
1140
|
+
R.value.style.chart.layout.grid.show ? (b(), p("g", ut, [
|
|
1141
1141
|
m("line", {
|
|
1142
1142
|
x1: W.value ? G.value.right : G.value.left,
|
|
1143
1143
|
x2: W.value ? G.value.right : G.value.left,
|
|
1144
1144
|
y1: G.value.top,
|
|
1145
1145
|
y2: G.value.top + G.value.height,
|
|
1146
|
-
stroke:
|
|
1147
|
-
"stroke-width":
|
|
1146
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1147
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1148
1148
|
"stroke-linecap": "round"
|
|
1149
1149
|
}, null, 8, dt),
|
|
1150
1150
|
m("line", {
|
|
@@ -1152,40 +1152,40 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1152
1152
|
x2: G.value.right,
|
|
1153
1153
|
y1: G.value.bottom,
|
|
1154
1154
|
y2: G.value.bottom,
|
|
1155
|
-
stroke:
|
|
1156
|
-
"stroke-width":
|
|
1155
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1156
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1157
1157
|
"stroke-linecap": "round"
|
|
1158
1158
|
}, null, 8, ft),
|
|
1159
|
-
|
|
1159
|
+
R.value.style.chart.layout.grid.showVerticalLines ? (b(), p("g", pt, [(b(!0), p(l, null, S(V.value.end - V.value.start, (e, t) => (b(), p("line", {
|
|
1160
1160
|
x1: G.value.left + (t + 1) * Y.value,
|
|
1161
1161
|
x2: G.value.left + (t + 1) * Y.value,
|
|
1162
1162
|
y1: G.value.top,
|
|
1163
1163
|
y2: G.value.bottom,
|
|
1164
|
-
stroke:
|
|
1165
|
-
"stroke-width":
|
|
1164
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1165
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1166
1166
|
"stroke-linecap": "round"
|
|
1167
1167
|
}, null, 8, mt))), 256))])) : f("", !0)
|
|
1168
1168
|
])) : f("", !0),
|
|
1169
|
-
m("g", null, [
|
|
1169
|
+
m("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (b(), p("text", {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
ref_key: "yAxisLabel",
|
|
1172
1172
|
ref: pn,
|
|
1173
|
-
"font-size":
|
|
1174
|
-
fill:
|
|
1175
|
-
transform: `translate(${W.value ? G.value.absoluteWidth -
|
|
1173
|
+
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1174
|
+
fill: R.value.style.chart.layout.grid.axis.color,
|
|
1175
|
+
transform: `translate(${W.value ? G.value.absoluteWidth - R.value.style.chart.layout.grid.axis.fontSize / 2 - R.value.style.chart.layout.grid.axis.yLabelOffsetX : R.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1176
1176
|
"text-anchor": "middle",
|
|
1177
1177
|
style: { transition: "none" }
|
|
1178
|
-
}, w(
|
|
1178
|
+
}, w(R.value.style.chart.layout.grid.axis.yLabel), 9, ht)) : f("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (b(), p("text", {
|
|
1179
1179
|
key: 1,
|
|
1180
1180
|
ref_key: "xAxisLabel",
|
|
1181
1181
|
ref: fn,
|
|
1182
1182
|
"text-anchor": "middle",
|
|
1183
1183
|
x: G.value.absoluteWidth / 2,
|
|
1184
1184
|
y: G.value.absoluteHeight - 3,
|
|
1185
|
-
"font-size":
|
|
1186
|
-
fill:
|
|
1187
|
-
}, w(
|
|
1188
|
-
|
|
1185
|
+
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1186
|
+
fill: R.value.style.chart.layout.grid.axis.color
|
|
1187
|
+
}, w(R.value.style.chart.layout.grid.axis.xLabel), 9, gt)) : f("", !0)]),
|
|
1188
|
+
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (b(), p("g", {
|
|
1189
1189
|
key: 2,
|
|
1190
1190
|
ref_key: "scaleLabels",
|
|
1191
1191
|
ref: un,
|
|
@@ -1195,56 +1195,56 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1195
1195
|
})
|
|
1196
1196
|
}, [(b(!0), p(l, null, S(fr.value, (e, t) => (b(), p("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (b(), p("path", {
|
|
1197
1197
|
key: 0,
|
|
1198
|
-
class: _({ "vue-data-ui-transition": T(
|
|
1198
|
+
class: _({ "vue-data-ui-transition": T(Ln) }),
|
|
1199
1199
|
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 5 : G.value.left - 5},${e.y}`,
|
|
1200
|
-
stroke:
|
|
1201
|
-
"stroke-width":
|
|
1200
|
+
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1201
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1202
1202
|
"stroke-linecap": "round"
|
|
1203
1203
|
}, null, 10, _t)) : f("", !0), e.value >= X.value.min && e.value <= X.value.max ? (b(), p("text", {
|
|
1204
1204
|
key: 1,
|
|
1205
|
-
class: _({ "vue-data-ui-transition": T(
|
|
1206
|
-
transform: `translate(${W.value ? G.value.right -
|
|
1207
|
-
"font-size":
|
|
1205
|
+
class: _({ "vue-data-ui-transition": T(Ln) }),
|
|
1206
|
+
transform: `translate(${W.value ? G.value.right - R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7}, ${e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3})`,
|
|
1207
|
+
"font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1208
1208
|
"text-anchor": W.value ? "start" : "end",
|
|
1209
|
-
fill:
|
|
1210
|
-
"font-weight":
|
|
1211
|
-
}, w(T(_e)(e.value) ? T(
|
|
1212
|
-
p:
|
|
1209
|
+
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1210
|
+
"font-weight": R.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1211
|
+
}, w(T(_e)(e.value) ? T(le)(R.value.style.chart.layout.dataLabels.formatter, e.value, T(ie)({
|
|
1212
|
+
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
1213
1213
|
v: e.value,
|
|
1214
|
-
s:
|
|
1215
|
-
r:
|
|
1214
|
+
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
1215
|
+
r: R.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
1216
1216
|
}), {
|
|
1217
1217
|
datapoint: e,
|
|
1218
1218
|
seriesIndex: t
|
|
1219
1219
|
}) : ""), 11, vt)) : f("", !0)]))), 128))], 2)) : f("", !0),
|
|
1220
|
-
|
|
1220
|
+
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (b(), p("g", {
|
|
1221
1221
|
key: 3,
|
|
1222
1222
|
ref_key: "timeLabelsEls",
|
|
1223
1223
|
ref: dn,
|
|
1224
1224
|
class: _({ "donut-opacity": !0 })
|
|
1225
|
-
}, [(b(!0), p(l, null, S(
|
|
1225
|
+
}, [(b(!0), p(l, null, S(V.value.end - V.value.start, (e, t) => (b(), p("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (b(), p("g", yt, [String(J.value[t].text).includes("\n") ? (b(), p("text", {
|
|
1226
1226
|
key: 1,
|
|
1227
1227
|
class: "vue-data-ui-time-label",
|
|
1228
|
-
"text-anchor":
|
|
1229
|
-
"font-size":
|
|
1230
|
-
fill:
|
|
1231
|
-
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom +
|
|
1228
|
+
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1229
|
+
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1230
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1231
|
+
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1232
1232
|
innerHTML: T(i)({
|
|
1233
1233
|
content: String(J.value[t].text),
|
|
1234
|
-
fontSize:
|
|
1235
|
-
fill:
|
|
1234
|
+
fontSize: R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1235
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1236
1236
|
x: 0,
|
|
1237
1237
|
y: 0
|
|
1238
1238
|
})
|
|
1239
1239
|
}, null, 8, xt)) : (b(), p("text", {
|
|
1240
1240
|
key: 0,
|
|
1241
1241
|
class: "vue-data-ui-time-label",
|
|
1242
|
-
"text-anchor":
|
|
1243
|
-
"font-size":
|
|
1244
|
-
fill:
|
|
1245
|
-
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom +
|
|
1242
|
+
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1243
|
+
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1244
|
+
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1245
|
+
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1246
1246
|
}, w(J.value[t].text || ""), 9, bt))])) : f("", !0)]))), 256))], 512)) : f("", !0),
|
|
1247
|
-
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("g", null, [
|
|
1247
|
+
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (b(), p("line", {
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
class: _({
|
|
1250
1250
|
"donut-opacity": !0,
|
|
@@ -1254,8 +1254,8 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1254
1254
|
y1: e.y,
|
|
1255
1255
|
x2: Z.value[t + 1].x,
|
|
1256
1256
|
y2: Z.value[t + 1].y,
|
|
1257
|
-
stroke:
|
|
1258
|
-
"stroke-width":
|
|
1257
|
+
stroke: R.value.style.chart.layout.line.stroke,
|
|
1258
|
+
"stroke-width": R.value.style.chart.layout.line.strokeWidth,
|
|
1259
1259
|
"stroke-linecap": "round",
|
|
1260
1260
|
"stroke-linejoin": "round"
|
|
1261
1261
|
}, null, 10, St)) : f("", !0), e.subtotal === null ? f("", !0) : (b(), p("g", Ct, [e.subtotal ? (b(), p("circle", {
|
|
@@ -1263,7 +1263,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1263
1263
|
cx: e.x,
|
|
1264
1264
|
cy: e.y,
|
|
1265
1265
|
r: e.activeRadius,
|
|
1266
|
-
fill:
|
|
1266
|
+
fill: R.value.style.chart.backgroundColor
|
|
1267
1267
|
}, null, 8, wt)) : f("", !0)]))]))), 256)),
|
|
1268
1268
|
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("g", { class: _({
|
|
1269
1269
|
"donut-opacity": !0,
|
|
@@ -1271,7 +1271,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1271
1271
|
}) }, [e.subtotal ? (b(), p("g", Tt, [A.value !== null && A.value === t ? (b(), p("g", Et, [
|
|
1272
1272
|
(b(!0), p(l, null, S(e.donutHover, (t) => (b(), p("g", null, [Nr(t) ? (b(), p("path", {
|
|
1273
1273
|
key: 0,
|
|
1274
|
-
d: T(
|
|
1274
|
+
d: T(ce)(t, {
|
|
1275
1275
|
x: t.center.endX,
|
|
1276
1276
|
y: t.center.endY
|
|
1277
1277
|
}, 12, 12, {
|
|
@@ -1287,10 +1287,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1287
1287
|
(b(!0), p(l, null, S(e.donutHover, (t, n) => (b(), p("g", null, [Nr(t) ? (b(), p("text", {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
"data-cy-hover-label": "",
|
|
1290
|
-
"text-anchor": T(
|
|
1291
|
-
x: T(
|
|
1292
|
-
y: T(
|
|
1293
|
-
fill:
|
|
1290
|
+
"text-anchor": T(se)(t, !0, 0).anchor,
|
|
1291
|
+
x: T(se)(t, !0, 9).x,
|
|
1292
|
+
y: T(pe)(t, 14, 10),
|
|
1293
|
+
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1294
1294
|
"font-size": 8,
|
|
1295
1295
|
"font-weight": "bold"
|
|
1296
1296
|
}, w(t.name) + ": " + w(mr(t, e.donut)) + " (" + w(t.value === null ? "-" : pr(t.value, t, n)) + ") ", 9, Ot)) : f("", !0)]))), 256)),
|
|
@@ -1298,7 +1298,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1298
1298
|
cx: e.x,
|
|
1299
1299
|
cy: e.y,
|
|
1300
1300
|
r: e.hoverRadius,
|
|
1301
|
-
fill:
|
|
1301
|
+
fill: R.value.style.chart.backgroundColor
|
|
1302
1302
|
}, null, 8, kt)])
|
|
1303
1303
|
])) : f("", !0)])) : f("", !0)], 2))), 256)),
|
|
1304
1304
|
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("g", { class: _({
|
|
@@ -1309,29 +1309,29 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1309
1309
|
cx: e.x,
|
|
1310
1310
|
cy: e.y,
|
|
1311
1311
|
r: 3,
|
|
1312
|
-
fill:
|
|
1312
|
+
fill: R.value.style.chart.color
|
|
1313
1313
|
}, null, 8, jt)) : A.value !== null && A.value === t ? (b(), p("g", Mt, [(b(!0), p(l, null, S(e.donutHover, (e, t) => (b(), p("path", {
|
|
1314
1314
|
d: e.arcSlice,
|
|
1315
1315
|
fill: `${e.color}`,
|
|
1316
1316
|
"stroke-width": 1,
|
|
1317
|
-
stroke:
|
|
1317
|
+
stroke: R.value.style.chart.backgroundColor
|
|
1318
1318
|
}, null, 8, Nt))), 256))])) : (b(), p("g", Pt, [(b(!0), p(l, null, S(e.donut, (e, t) => (b(), p("path", {
|
|
1319
1319
|
d: e.arcSlice,
|
|
1320
1320
|
fill: `${e.color}`,
|
|
1321
1321
|
"stroke-width": .5,
|
|
1322
|
-
stroke:
|
|
1322
|
+
stroke: R.value.style.chart.backgroundColor
|
|
1323
1323
|
}, null, 8, Ft))), 256))]))]))], 2))), 256)),
|
|
1324
1324
|
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("g", { class: _({
|
|
1325
1325
|
"donut-opacity": !0,
|
|
1326
1326
|
"donut-behind": t !== A.value && A.value !== null || nn.value && t !== M.value.index
|
|
1327
|
-
}) }, [e.subtotal !== null &&
|
|
1327
|
+
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (b(), p("text", {
|
|
1328
1328
|
key: 0,
|
|
1329
1329
|
"text-anchor": "middle",
|
|
1330
1330
|
x: e.x,
|
|
1331
|
-
y: A.value === e.index && e.subtotal ? e.y +
|
|
1332
|
-
"font-size":
|
|
1331
|
+
y: A.value === e.index && e.subtotal ? e.y + R.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - R.value.style.chart.layout.dataLabels.fontSize + R.value.style.chart.layout.dataLabels.offsetY,
|
|
1332
|
+
"font-size": R.value.style.chart.layout.dataLabels.fontSize,
|
|
1333
1333
|
"font-weight": "bold",
|
|
1334
|
-
fill:
|
|
1334
|
+
fill: R.value.style.chart.layout.dataLabels.color
|
|
1335
1335
|
}, w(pr(e.subtotal, e, t)), 9, It)) : f("", !0)], 2))), 256)),
|
|
1336
1336
|
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("rect", {
|
|
1337
1337
|
x: G.value.left + t * Y.value,
|
|
@@ -1339,7 +1339,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1339
1339
|
width: Y.value,
|
|
1340
1340
|
height: G.value.height,
|
|
1341
1341
|
fill: [A.value, _r.value].includes(e.index) ? `url(#hover_${O.value})` : "transparent",
|
|
1342
|
-
class: _({ "donut-hover":
|
|
1342
|
+
class: _({ "donut-hover": z.value && e.subtotal && [A.value, _r.value].includes(e.index) }),
|
|
1343
1343
|
style: { pointerEvents: "none" }
|
|
1344
1344
|
}, null, 10, Lt))), 256)),
|
|
1345
1345
|
(b(!0), p(l, null, S(Z.value, (e, t) => (b(), p("rect", {
|
|
@@ -1352,7 +1352,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1352
1352
|
onMouseenter: (t) => gr(e),
|
|
1353
1353
|
onMouseleave: (t) => hr(e),
|
|
1354
1354
|
onClick: (n) => vr(e, t),
|
|
1355
|
-
class: _({ "donut-hover":
|
|
1355
|
+
class: _({ "donut-hover": z.value && A.value === e.index && e.subtotal })
|
|
1356
1356
|
}, null, 42, Rt))), 256)),
|
|
1357
1357
|
C(e.$slots, "svg", { svg: {
|
|
1358
1358
|
...G.value,
|
|
@@ -1360,46 +1360,46 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1360
1360
|
isPrintingSvg: T(Jr)
|
|
1361
1361
|
} }, void 0, !0)
|
|
1362
1362
|
], 46, ct)), e.$slots.hint ? (b(), p("div", zt, [C(e.$slots, "hint", v(g({
|
|
1363
|
-
hint:
|
|
1364
|
-
isVisible:
|
|
1363
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1364
|
+
isVisible: Mn.value
|
|
1365
1365
|
})), void 0, !0)])) : f("", !0)]),
|
|
1366
1366
|
e.$slots.watermark ? (b(), p("div", Bt, [C(e.$slots, "watermark", v(g({ isPrinting: T(Zn) || T(Qn) || T(qr) || T(Jr) })), void 0, !0)])) : f("", !0),
|
|
1367
1367
|
m("div", {
|
|
1368
1368
|
ref_key: "chartSlicer",
|
|
1369
|
-
ref:
|
|
1370
|
-
style: y(`width:100%;background:${
|
|
1369
|
+
ref: kn,
|
|
1370
|
+
style: y(`width:100%;background:${R.value.style.chart.backgroundColor}`),
|
|
1371
1371
|
"data-dom-to-png-ignore": ""
|
|
1372
|
-
}, [q.value > 1 &&
|
|
1372
|
+
}, [q.value > 1 && R.value.style.chart.zoom.show ? (b(), d(Le, {
|
|
1373
1373
|
ref_key: "slicerComponent",
|
|
1374
|
-
ref:
|
|
1374
|
+
ref: On,
|
|
1375
1375
|
key: `slicer_${on.value}`,
|
|
1376
|
-
background:
|
|
1377
|
-
borderColor:
|
|
1378
|
-
fontSize:
|
|
1379
|
-
useResetSlot:
|
|
1376
|
+
background: R.value.style.chart.zoom.color,
|
|
1377
|
+
borderColor: R.value.style.chart.backgroundColor,
|
|
1378
|
+
fontSize: R.value.style.chart.zoom.fontSize,
|
|
1379
|
+
useResetSlot: R.value.style.chart.zoom.useResetSlot,
|
|
1380
1380
|
timeLabels: J.value,
|
|
1381
|
-
textColor:
|
|
1382
|
-
inputColor:
|
|
1383
|
-
selectColor:
|
|
1381
|
+
textColor: R.value.style.chart.color,
|
|
1382
|
+
inputColor: R.value.style.chart.zoom.color,
|
|
1383
|
+
selectColor: R.value.style.chart.zoom.highlightColor,
|
|
1384
1384
|
max: q.value,
|
|
1385
1385
|
min: 0,
|
|
1386
|
-
valueStart:
|
|
1387
|
-
valueEnd:
|
|
1388
|
-
start:
|
|
1389
|
-
"onUpdate:start": t[0] ||= (e) =>
|
|
1390
|
-
end:
|
|
1391
|
-
"onUpdate:end": t[1] ||= (e) =>
|
|
1392
|
-
refreshStartPoint:
|
|
1393
|
-
refreshEndPoint:
|
|
1394
|
-
enableRangeHandles:
|
|
1395
|
-
enableSelectionDrag:
|
|
1396
|
-
focusOnDrag:
|
|
1397
|
-
focusRangeRatio:
|
|
1398
|
-
isCursorPointer:
|
|
1399
|
-
maxWidth:
|
|
1400
|
-
minimapLeftInsetRatio: G.value.absoluteWidth > 0 &&
|
|
1401
|
-
minimapRightInsetRatio: G.value.absoluteWidth > 0 &&
|
|
1402
|
-
onReset:
|
|
1386
|
+
valueStart: V.value.start,
|
|
1387
|
+
valueEnd: V.value.end,
|
|
1388
|
+
start: V.value.start,
|
|
1389
|
+
"onUpdate:start": t[0] ||= (e) => V.value.start = e,
|
|
1390
|
+
end: V.value.end,
|
|
1391
|
+
"onUpdate:end": t[1] ||= (e) => V.value.end = e,
|
|
1392
|
+
refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
|
|
1393
|
+
refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? q.value : R.value.style.chart.zoom.endIndex + 1,
|
|
1394
|
+
enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
|
|
1395
|
+
enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
|
|
1396
|
+
focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
|
|
1397
|
+
focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
|
|
1398
|
+
isCursorPointer: z.value,
|
|
1399
|
+
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
1400
|
+
minimapLeftInsetRatio: G.value.absoluteWidth > 0 && R.value.style.chart.zoom.autoFit ? G.value.left / G.value.absoluteWidth : null,
|
|
1401
|
+
minimapRightInsetRatio: G.value.absoluteWidth > 0 && R.value.style.chart.zoom.autoFit ? (G.value.absoluteWidth - G.value.right) / G.value.absoluteWidth : null,
|
|
1402
|
+
onReset: Un
|
|
1403
1403
|
}, {
|
|
1404
1404
|
"reset-action": E(({ reset: t }) => [C(e.$slots, "reset-action", v(g({ reset: t })), void 0, !0)]),
|
|
1405
1405
|
_: 3
|
|
@@ -1429,13 +1429,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1429
1429
|
"minimapRightInsetRatio"
|
|
1430
1430
|
])) : f("", !0)], 4),
|
|
1431
1431
|
m("div", { id: `legend-bottom-${O.value}` }, null, 8, Vt),
|
|
1432
|
-
mn.value && (
|
|
1432
|
+
mn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(We, {
|
|
1433
1433
|
key: 6,
|
|
1434
|
-
to:
|
|
1434
|
+
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1435
1435
|
}, [m("div", {
|
|
1436
1436
|
ref_key: "chartLegend",
|
|
1437
|
-
ref:
|
|
1438
|
-
}, [C(e.$slots, "legend", { legend: yr.value }, () => [
|
|
1437
|
+
ref: En
|
|
1438
|
+
}, [C(e.$slots, "legend", { legend: yr.value }, () => [R.value.style.chart.legend.show ? (b(), d(He, {
|
|
1439
1439
|
key: `legend_${ln.value}`,
|
|
1440
1440
|
legendSet: yr.value,
|
|
1441
1441
|
config: xr.value,
|
|
@@ -1445,11 +1445,11 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1445
1445
|
onClick: (t) => Cr(e.uid),
|
|
1446
1446
|
style: y(`opacity:${k.value.includes(e.uid) ? .5 : 1}`)
|
|
1447
1447
|
}, w(e.display), 13, Ht)]),
|
|
1448
|
-
legendToggle: E(() => [yr.value.length > 2 &&
|
|
1448
|
+
legendToggle: E(() => [yr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !T(zn) ? (b(), d(Re, {
|
|
1449
1449
|
key: 0,
|
|
1450
|
-
backgroundColor:
|
|
1451
|
-
color:
|
|
1452
|
-
fontSize:
|
|
1450
|
+
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1451
|
+
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1452
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
1453
1453
|
checked: k.value.length > 0,
|
|
1454
1454
|
onToggle: Sr
|
|
1455
1455
|
}, null, 8, [
|
|
@@ -1463,12 +1463,12 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1463
1463
|
e.$slots.source ? (b(), p("div", {
|
|
1464
1464
|
key: 7,
|
|
1465
1465
|
ref_key: "source",
|
|
1466
|
-
ref:
|
|
1466
|
+
ref: Dn,
|
|
1467
1467
|
dir: "auto"
|
|
1468
1468
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1469
|
-
|
|
1469
|
+
Pn.value && R.value.userOptions.buttons.table ? (b(), d(Qe(Vr.value.component), Je({ key: 8 }, Vr.value.props, {
|
|
1470
1470
|
ref_key: "tableUnit",
|
|
1471
|
-
ref:
|
|
1471
|
+
ref: P,
|
|
1472
1472
|
onClose: Hr
|
|
1473
1473
|
}), Ge({
|
|
1474
1474
|
content: E(() => [(b(), d(T(qt), {
|
|
@@ -1477,13 +1477,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1477
1477
|
head: Q.value.head,
|
|
1478
1478
|
body: Q.value.body,
|
|
1479
1479
|
config: Q.value.config,
|
|
1480
|
-
title:
|
|
1481
|
-
withCloseButton: !
|
|
1482
|
-
isCursorPointer:
|
|
1480
|
+
title: R.value.table.useDialog ? "" : Vr.value.title,
|
|
1481
|
+
withCloseButton: !R.value.table.useDialog,
|
|
1482
|
+
isCursorPointer: z.value,
|
|
1483
1483
|
onClose: Hr
|
|
1484
1484
|
}, {
|
|
1485
1485
|
th: E(({ th: e }) => [Ke(w(e.name ?? e), 1)]),
|
|
1486
|
-
td: E(({ td: e }) => [e.value === null ? (b(), p("span", Ut, "-")) : (b(), p("b", Wt, w(isNaN(e.value) ? "" :
|
|
1486
|
+
td: E(({ td: e }) => [e.value === null ? (b(), p("span", Ut, "-")) : (b(), p("b", Wt, w(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + w(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + w(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), m("span", null, w(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1487
1487
|
_: 1
|
|
1488
1488
|
}, 8, [
|
|
1489
1489
|
"colNames",
|
|
@@ -1495,34 +1495,34 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1495
1495
|
"isCursorPointer"
|
|
1496
1496
|
]))]),
|
|
1497
1497
|
_: 2
|
|
1498
|
-
}, [
|
|
1498
|
+
}, [R.value.table.useDialog ? {
|
|
1499
1499
|
name: "title",
|
|
1500
1500
|
fn: E(() => [Ke(w(Vr.value.title), 1)]),
|
|
1501
1501
|
key: "0"
|
|
1502
|
-
} : void 0,
|
|
1502
|
+
} : void 0, R.value.table.useDialog ? {
|
|
1503
1503
|
name: "actions",
|
|
1504
1504
|
fn: E(() => [m("button", {
|
|
1505
1505
|
tabindex: "0",
|
|
1506
1506
|
class: "vue-ui-user-options-button",
|
|
1507
|
-
onClick: t[3] ||= (e) => Or(
|
|
1508
|
-
style: y({ cursor:
|
|
1507
|
+
onClick: t[3] ||= (e) => Or(R.value.userOptions.callbacks.csv),
|
|
1508
|
+
style: y({ cursor: z.value ? "cursor" : "default" })
|
|
1509
1509
|
}, [qe(T(Kt), {
|
|
1510
1510
|
name: "fileCsv",
|
|
1511
1511
|
stroke: Vr.value.props.color
|
|
1512
1512
|
}, null, 8, ["stroke"])], 4)]),
|
|
1513
1513
|
key: "1"
|
|
1514
1514
|
} : void 0]), 1040)) : f("", !0),
|
|
1515
|
-
|
|
1515
|
+
R.value.style.chart.dialog.show ? (b(), d(T(Qt), {
|
|
1516
1516
|
key: 9,
|
|
1517
1517
|
ref_key: "dialog",
|
|
1518
1518
|
ref: Ir,
|
|
1519
1519
|
onClose: t[4] ||= (e) => {
|
|
1520
1520
|
M.value = null, nn.value = !1, j.value = null, A.value = null, _r.value = null;
|
|
1521
1521
|
},
|
|
1522
|
-
backgroundColor:
|
|
1523
|
-
color:
|
|
1524
|
-
headerBg:
|
|
1525
|
-
headerColor:
|
|
1522
|
+
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1523
|
+
color: R.value.style.chart.dialog.color,
|
|
1524
|
+
headerBg: R.value.style.chart.dialog.header.backgroundColor,
|
|
1525
|
+
headerColor: R.value.style.chart.dialog.header.color,
|
|
1526
1526
|
isFullscreen: $.value,
|
|
1527
1527
|
fullscreenParent: N.value
|
|
1528
1528
|
}, {
|
|
@@ -1541,7 +1541,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1541
1541
|
"isFullscreen",
|
|
1542
1542
|
"fullscreenParent"
|
|
1543
1543
|
])) : f("", !0),
|
|
1544
|
-
T(
|
|
1544
|
+
T(zn) ? (b(), d(we, { key: 10 })) : f("", !0)
|
|
1545
1545
|
], 46, it));
|
|
1546
1546
|
}
|
|
1547
1547
|
}, [["__scopeId", "data-v-9711e76c"]]);
|