vue-data-ui 3.25.3 → 3.25.5
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 +13 -13
- package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-Bn3MY7eL.js} +103 -101
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-KXRhcsxM.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-M2Ws-VwJ.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-BgH3m_LP.js} +30 -14
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-ta2JoIjx.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-bvOuxfN3.js} +2 -2
- 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 +70 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
- package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-BjdCpsRV.js} +70 -70
- package/dist/vue-data-ui.js +74 -74
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +1831 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-DRf3NQyH.js} +4 -4
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-DUcB3lYs.js} +219 -217
- package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
- package/dist/vue-ui-bullet-DIOCMF2H.js +702 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-DoHnD1Xy.js} +59 -57
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Cf8TYPl5.js} +453 -447
- package/dist/vue-ui-carousel-table-k1cBJ1i1.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-BMAuaeif.js} +278 -276
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DCe2iPjk.js} +37 -35
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-Eb5hS_z3.js} +34 -32
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-CQWLyEx0.js} +4 -4
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-BqlsutMj.js} +80 -78
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-Be3MmkgS.js} +77 -75
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BqdfbcKX.js} +4 -4
- package/dist/vue-ui-donut-CuQVKuZa.js +2415 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-DckruxZ9.js} +378 -376
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-gzGZ42uH.js} +102 -102
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-BYU-hh2E.js} +142 -140
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-DLRcNDLc.js} +46 -44
- package/dist/vue-ui-funnel-DjoqNN1U.js +749 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BhR4IOra.js} +249 -247
- package/dist/vue-ui-gauge-Cq161Kwp.js +934 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-Ca8kPYr-.js} +41 -39
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-wUqHJICb.js} +4 -4
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-Bl5ymvi9.js} +186 -184
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-D6Y9Xy2K.js} +14 -12
- package/dist/vue-ui-history-plot-CvVjsdCL.js +1698 -0
- package/dist/vue-ui-horizontal-bar-3on3-H3B.js +1711 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-CUpRRIUf.js} +4 -4
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-DR2qUZOG.js} +65 -65
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-D8W-fERs.js} +3 -3
- package/dist/vue-ui-molecule-BExVLLgE.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-TW251icr.js} +205 -203
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CWzJKr3S.js} +129 -127
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-VaYZQK5i.js} +124 -122
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +380 -378
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-Dmtwow7n.js} +51 -49
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-Cswm3_eI.js} +190 -188
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-C3GYthqu.js} +315 -313
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CBdDXL80.js} +3 -3
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +905 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-C5skjBTe.js} +353 -344
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-BJ8yEQMw.js} +332 -330
- package/dist/vue-ui-scatter-DXg8ESgr.js +2405 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-D_u8EWeW.js} +60 -60
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DQOp87rr.js} +3 -3
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-CjCufXof.js} +9 -9
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-BniEM15a.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-BtyCrqTQ.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-DQdn3PW1.js} +27 -27
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-9qkNNZG6.js} +254 -254
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +738 -0
- package/dist/vue-ui-stackbar-CkjicNDv.js +2355 -0
- package/dist/vue-ui-stackline-BB1IZta8.js +2469 -0
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +1740 -0
- package/dist/vue-ui-table-BXz_HY2g.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-XmDK1aHJ.js} +10 -10
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-MTEw3imE.js} +14 -14
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-CLx3SPRv.js} +36 -34
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-BDWUNb6t.js} +6 -6
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-DoaypTC-.js} +11 -9
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-Bv7PgpiC.js} +45 -43
- package/dist/vue-ui-waffle-z2DhvSAx.js +1621 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-DYLBJuFb.js} +31 -29
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-CbpEhSdL.js} +32 -30
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-C2atz4Xm.js} +120 -118
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-B3DQ6t46.js} +1496 -1490
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-CpA0W6zM.js} +424 -423
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-CJefORWc.js} +78 -78
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-annotator-MvDwnq7k.js +0 -2886
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,136 +1,136 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
16
|
-
import { t as
|
|
17
|
-
import { l as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, D as n, Et as r, G as i, Kt as a, Lt as o, Mt as s, Pt as c, Q as l, S as ee, Ut as te, Vt as ne, X as re, Yt as ie, Zt as ae, _ as oe, f as se, h as ce, ht as le, i as ue, nt as de, p as fe, q as pe, t as me, w as he, y as ge } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as _e, t as ve } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ye } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as be } from "./useConfig-C_mX5pOZ.js";
|
|
6
|
+
import { t as xe } from "./usePrinter-DISD7q5m.js";
|
|
7
|
+
import { n as Se, t as Ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as we } from "./useNestedProp-Chvyfpl-.js";
|
|
9
|
+
import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ee } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
+
import { t as De } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as Oe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
+
import { t as ke } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
+
import { t as Ae } from "./img-DhGApYG0.js";
|
|
15
|
+
import { n as je } from "./Title-CPHi-evi.js";
|
|
16
|
+
import { t as Me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { l as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
|
|
18
|
+
import { t as Fe } from "./DefGrad-DVBqDjhO.js";
|
|
19
|
+
import { t as Ie } from "./SlicerPreview-GvsdvE-h.js";
|
|
20
|
+
import { t as Le } from "./BaseLegendToggle-__JnV08B.js";
|
|
21
|
+
import { t as Re } from "./A11yDataTable-DdRsVULz.js";
|
|
22
|
+
import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
|
|
23
|
+
import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
|
|
24
|
+
import { t as Ve } from "./Legend-X4kF4PvW.js";
|
|
25
|
+
import { t as He } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
26
|
+
import { Fragment as u, Teleport as Ue, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as We, createTextVNode as Ge, createVNode as Ke, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as qe, nextTick as Je, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ye, onMounted as Xe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ze, shallowRef as Qe, toDisplayString as T, toRefs as $e, unref as E, watch as et, watchEffect as tt, withCtx as D } from "vue";
|
|
27
27
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
28
|
-
var
|
|
28
|
+
var nt = /* @__PURE__ */ e({ default: () => Wt }), rt = ["id"], it = ["id"], at = ["id"], ot = { style: { position: "relative" } }, st = [
|
|
29
29
|
"xmlns",
|
|
30
30
|
"aria-describedby",
|
|
31
31
|
"viewBox"
|
|
32
|
-
],
|
|
32
|
+
], ct = [
|
|
33
33
|
"x",
|
|
34
34
|
"y",
|
|
35
35
|
"width",
|
|
36
36
|
"height"
|
|
37
|
-
],
|
|
37
|
+
], lt = { key: 1 }, ut = [
|
|
38
38
|
"x1",
|
|
39
39
|
"x2",
|
|
40
40
|
"y1",
|
|
41
41
|
"y2",
|
|
42
42
|
"stroke",
|
|
43
43
|
"stroke-width"
|
|
44
|
-
],
|
|
44
|
+
], dt = [
|
|
45
45
|
"x1",
|
|
46
46
|
"x2",
|
|
47
47
|
"y1",
|
|
48
48
|
"y2",
|
|
49
49
|
"stroke",
|
|
50
50
|
"stroke-width"
|
|
51
|
-
],
|
|
51
|
+
], ft = { key: 0 }, pt = [
|
|
52
52
|
"x1",
|
|
53
53
|
"x2",
|
|
54
54
|
"y1",
|
|
55
55
|
"y2",
|
|
56
56
|
"stroke",
|
|
57
57
|
"stroke-width"
|
|
58
|
-
],
|
|
58
|
+
], mt = [
|
|
59
59
|
"font-size",
|
|
60
60
|
"fill",
|
|
61
61
|
"transform"
|
|
62
|
-
],
|
|
62
|
+
], ht = [
|
|
63
63
|
"x",
|
|
64
64
|
"y",
|
|
65
65
|
"font-size",
|
|
66
66
|
"fill"
|
|
67
|
-
],
|
|
67
|
+
], gt = [
|
|
68
68
|
"d",
|
|
69
69
|
"stroke",
|
|
70
70
|
"stroke-width"
|
|
71
|
-
],
|
|
71
|
+
], _t = [
|
|
72
72
|
"transform",
|
|
73
73
|
"font-size",
|
|
74
74
|
"text-anchor",
|
|
75
75
|
"fill",
|
|
76
76
|
"font-weight"
|
|
77
|
-
],
|
|
77
|
+
], vt = { key: 0 }, yt = [
|
|
78
78
|
"text-anchor",
|
|
79
79
|
"font-size",
|
|
80
80
|
"fill",
|
|
81
81
|
"transform"
|
|
82
|
-
],
|
|
82
|
+
], bt = [
|
|
83
83
|
"text-anchor",
|
|
84
84
|
"font-size",
|
|
85
85
|
"fill",
|
|
86
86
|
"transform",
|
|
87
87
|
"innerHTML"
|
|
88
|
-
],
|
|
88
|
+
], xt = [
|
|
89
89
|
"x1",
|
|
90
90
|
"y1",
|
|
91
91
|
"x2",
|
|
92
92
|
"y2",
|
|
93
93
|
"stroke",
|
|
94
94
|
"stroke-width"
|
|
95
|
-
],
|
|
95
|
+
], St = { key: 1 }, Ct = [
|
|
96
96
|
"cx",
|
|
97
97
|
"cy",
|
|
98
98
|
"r",
|
|
99
99
|
"fill"
|
|
100
|
-
],
|
|
100
|
+
], wt = { key: 0 }, Tt = { key: 0 }, Et = ["d", "stroke"], Dt = [
|
|
101
101
|
"text-anchor",
|
|
102
102
|
"x",
|
|
103
103
|
"y",
|
|
104
104
|
"fill"
|
|
105
|
-
],
|
|
105
|
+
], Ot = [
|
|
106
106
|
"cx",
|
|
107
107
|
"cy",
|
|
108
108
|
"r",
|
|
109
109
|
"fill"
|
|
110
|
-
],
|
|
110
|
+
], kt = { key: 0 }, At = [
|
|
111
111
|
"cx",
|
|
112
112
|
"cy",
|
|
113
113
|
"fill"
|
|
114
|
-
],
|
|
114
|
+
], jt = { key: 1 }, Mt = [
|
|
115
115
|
"d",
|
|
116
116
|
"fill",
|
|
117
117
|
"stroke"
|
|
118
|
-
],
|
|
118
|
+
], Nt = { key: 2 }, Pt = [
|
|
119
119
|
"d",
|
|
120
120
|
"fill",
|
|
121
121
|
"stroke"
|
|
122
|
-
],
|
|
122
|
+
], Ft = [
|
|
123
123
|
"x",
|
|
124
124
|
"y",
|
|
125
125
|
"font-size",
|
|
126
126
|
"fill"
|
|
127
|
-
],
|
|
127
|
+
], It = [
|
|
128
128
|
"x",
|
|
129
129
|
"y",
|
|
130
130
|
"width",
|
|
131
131
|
"height",
|
|
132
132
|
"fill"
|
|
133
|
-
],
|
|
133
|
+
], Lt = [
|
|
134
134
|
"x",
|
|
135
135
|
"y",
|
|
136
136
|
"width",
|
|
@@ -138,7 +138,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
138
138
|
"onMouseenter",
|
|
139
139
|
"onMouseleave",
|
|
140
140
|
"onClick"
|
|
141
|
-
],
|
|
141
|
+
], Rt = {
|
|
142
142
|
key: 0,
|
|
143
143
|
style: {
|
|
144
144
|
position: "absolute",
|
|
@@ -148,10 +148,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
148
148
|
},
|
|
149
149
|
"data-dom-to-png-ignore": "",
|
|
150
150
|
"aria-hidden": "true"
|
|
151
|
-
},
|
|
151
|
+
}, zt = {
|
|
152
152
|
key: 5,
|
|
153
153
|
class: "vue-data-ui-watermark"
|
|
154
|
-
},
|
|
154
|
+
}, Bt = ["id"], Vt = ["onClick"], Ht = { key: 0 }, Ut = { key: 1 }, Wt = /*#__PURE__*/ Me({
|
|
155
155
|
__name: "vue-ui-donut-evolution",
|
|
156
156
|
props: {
|
|
157
157
|
config: {
|
|
@@ -168,10 +168,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
emits: ["selectLegend", "copyAlt"],
|
|
171
|
-
setup(e, { expose:
|
|
172
|
-
let
|
|
171
|
+
setup(e, { expose: Me, emit: nt }) {
|
|
172
|
+
let Wt = g(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), Gt = g(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Kt = g(() => import("./DataTable-COIO9gi4.js")), qt = g(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Jt = g(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Yt = g(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Xt = g(() => import("./vue-ui-donut-CuQVKuZa.js").then((e) => e.n)), Zt = g(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_donut_evolution: Qt } = be(), { isThemeValid: $t, warnInvalidTheme: en } = Te(), O = e, k = S(pe()), A = S([]), j = S(null), M = S(null), tn = S(!1), N = S(null), P = S(null), nn = S(null), rn = S(0), an = S(0), on = S(0), sn = S(0), cn = S(0), ln = S(null), un = S(null), dn = S(null), fn = S(null), pn = S(!1), mn = S(null), hn = S(null), gn = Qe(null), _n = S(0), vn = S(0), yn = S(!1);
|
|
173
173
|
function bn() {
|
|
174
|
-
gn.value =
|
|
174
|
+
gn.value = P.value?.parentNode ?? null;
|
|
175
175
|
}
|
|
176
176
|
function xn() {
|
|
177
177
|
return new Promise((e) => {
|
|
@@ -182,14 +182,14 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
182
182
|
}
|
|
183
183
|
async function Sn() {
|
|
184
184
|
let e = ++vn.value;
|
|
185
|
-
await
|
|
185
|
+
await Je(), await xn(), await xn(), e === vn.value && (_n.value += 1);
|
|
186
186
|
}
|
|
187
187
|
function Cn() {
|
|
188
|
-
yn.value || (yn.value = !0,
|
|
188
|
+
yn.value || (yn.value = !0, Je(() => {
|
|
189
189
|
yn.value = !1, bn(), Sn();
|
|
190
190
|
}));
|
|
191
191
|
}
|
|
192
|
-
let wn =
|
|
192
|
+
let wn = Oe({
|
|
193
193
|
elementRef: gn,
|
|
194
194
|
minimumWidth: 2,
|
|
195
195
|
minimumHeight: 2,
|
|
@@ -198,22 +198,22 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
198
198
|
onSizeAccepted: () => {
|
|
199
199
|
Sn();
|
|
200
200
|
}
|
|
201
|
-
}), Tn =
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
}), Tn = S(null), En = S(null), Dn = S(null), On = S(null), kn = S(null), An = S(!1), F = Qe(null), I = Qe(null), jn = S(null), L = S(null), Mn = S(!1), Nn = nt, Pn = d(() => !!O.dataset && O.dataset.length);
|
|
202
|
+
Xe(() => {
|
|
203
|
+
pn.value = !0, bn(), wn.start(), In(), Sn();
|
|
204
204
|
});
|
|
205
|
-
let Fn =
|
|
205
|
+
let Fn = d(() => R.value.debug);
|
|
206
206
|
function In() {
|
|
207
|
-
if (
|
|
207
|
+
if (c(O.dataset) ? (de({
|
|
208
208
|
componentName: "VueUiDonutEvolution",
|
|
209
209
|
type: "dataset",
|
|
210
210
|
debug: Fn.value
|
|
211
|
-
}), Vn.value = !0) :
|
|
212
|
-
|
|
211
|
+
}), Vn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
212
|
+
le({
|
|
213
213
|
datasetObject: e,
|
|
214
214
|
requiredAttributes: ["name", "values"]
|
|
215
215
|
}).forEach((e) => {
|
|
216
|
-
|
|
216
|
+
de({
|
|
217
217
|
componentName: "VueUiDonutEvolution",
|
|
218
218
|
type: "datasetSerieAttribute",
|
|
219
219
|
property: e,
|
|
@@ -221,13 +221,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
221
221
|
debug: Fn.value
|
|
222
222
|
}), Vn.value = !0;
|
|
223
223
|
});
|
|
224
|
-
}),
|
|
224
|
+
}), c(O.dataset) || (Vn.value = R.value.loading), setTimeout(() => {
|
|
225
225
|
An.value = !0;
|
|
226
226
|
}, 10), Wn(), R.value.responsive) {
|
|
227
|
-
let e =
|
|
227
|
+
let e = Ne(() => {
|
|
228
228
|
An.value = !1;
|
|
229
|
-
let { width: e, height: t } =
|
|
230
|
-
chart:
|
|
229
|
+
let { width: e, height: t } = Pe({
|
|
230
|
+
chart: P.value,
|
|
231
231
|
title: R.value.style.chart.title.text ? Tn.value : null,
|
|
232
232
|
legend: R.value.style.chart.legend.show ? En.value : null,
|
|
233
233
|
slicer: R.value.style.chart.zoom.show && Hn.value > 1 ? kn.value : null,
|
|
@@ -239,17 +239,17 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
239
239
|
}, 10);
|
|
240
240
|
});
|
|
241
241
|
});
|
|
242
|
-
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value =
|
|
242
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
|
|
243
243
|
}
|
|
244
244
|
Cn();
|
|
245
245
|
}
|
|
246
|
-
let R =
|
|
247
|
-
|
|
246
|
+
let R = S(Xn());
|
|
247
|
+
_e({
|
|
248
248
|
config: () => R.value,
|
|
249
|
-
dataset: () =>
|
|
249
|
+
dataset: () => O.dataset,
|
|
250
250
|
component: "VueUiDonutEvolution",
|
|
251
251
|
rules: [
|
|
252
|
-
|
|
252
|
+
ve.emptyArray,
|
|
253
253
|
{
|
|
254
254
|
test: (e) => e.length === 1,
|
|
255
255
|
message: [
|
|
@@ -284,10 +284,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
284
284
|
}
|
|
285
285
|
]
|
|
286
286
|
});
|
|
287
|
-
let { transitionEnabled: Ln } =
|
|
287
|
+
let { transitionEnabled: Ln } = De({
|
|
288
288
|
config: () => R.value.transitions,
|
|
289
|
-
dataset: () =>
|
|
290
|
-
}), z =
|
|
289
|
+
dataset: () => O.dataset
|
|
290
|
+
}), z = d(() => R.value.userOptions.useCursorPointer), Rn = d(() => ae({
|
|
291
291
|
defaultConfig: {
|
|
292
292
|
useCssAnimation: !1,
|
|
293
293
|
table: { show: !1 },
|
|
@@ -325,8 +325,8 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
325
325
|
} }
|
|
326
326
|
},
|
|
327
327
|
userConfig: R.value.skeletonConfig ?? {}
|
|
328
|
-
})), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } =
|
|
329
|
-
|
|
328
|
+
})), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } = Se({
|
|
329
|
+
...$e(O),
|
|
330
330
|
FINAL_CONFIG: R,
|
|
331
331
|
prepareConfig: Xn,
|
|
332
332
|
callback: () => {
|
|
@@ -334,7 +334,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
334
334
|
await Wn();
|
|
335
335
|
});
|
|
336
336
|
},
|
|
337
|
-
skeletonDataset:
|
|
337
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
338
338
|
{
|
|
339
339
|
name: "",
|
|
340
340
|
values: [
|
|
@@ -376,10 +376,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
376
376
|
defaultConfig: R.value,
|
|
377
377
|
userConfig: Rn.value
|
|
378
378
|
})
|
|
379
|
-
}), B =
|
|
379
|
+
}), B = S({
|
|
380
380
|
width: R.value.style.chart.layout.width,
|
|
381
381
|
height: R.value.style.chart.layout.height
|
|
382
|
-
}), Hn =
|
|
382
|
+
}), Hn = d(() => Math.max(...Bn.value.map((e) => e.values.length))), V = S({
|
|
383
383
|
start: 0,
|
|
384
384
|
end: Hn.value
|
|
385
385
|
});
|
|
@@ -387,7 +387,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
387
387
|
Wn();
|
|
388
388
|
}
|
|
389
389
|
async function Wn() {
|
|
390
|
-
await
|
|
390
|
+
await Je(), await Je();
|
|
391
391
|
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = On.value;
|
|
392
392
|
V.value = {
|
|
393
393
|
start: 0,
|
|
@@ -395,62 +395,62 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
395
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
|
-
},
|
|
398
|
+
}, an.value += 1), Cn();
|
|
399
399
|
}
|
|
400
400
|
function Gn(e) {
|
|
401
401
|
let t = q.value;
|
|
402
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: Kn, setUserOptionsVisibility: qn, keepUserOptionState: Jn } =
|
|
404
|
+
let { userOptionsVisible: Kn, setUserOptionsVisibility: qn, keepUserOptionState: Jn } = ze({ config: R.value }), { svgRef: Yn } = Be({ config: R.value.style.chart.title });
|
|
405
405
|
function Xn() {
|
|
406
|
-
let e =
|
|
407
|
-
userConfig:
|
|
408
|
-
defaultConfig:
|
|
406
|
+
let e = we({
|
|
407
|
+
userConfig: O.config,
|
|
408
|
+
defaultConfig: Qt
|
|
409
409
|
}), t = {}, n = e.theme;
|
|
410
410
|
if (n) {
|
|
411
|
-
if (
|
|
411
|
+
if (!$t.value(e)) en(e), t = e;
|
|
412
412
|
else {
|
|
413
|
-
let r =
|
|
414
|
-
userConfig:
|
|
413
|
+
let r = we({
|
|
414
|
+
userConfig: He[n] || O.config,
|
|
415
415
|
defaultConfig: e
|
|
416
416
|
});
|
|
417
417
|
t = {
|
|
418
|
-
...
|
|
419
|
-
userConfig:
|
|
418
|
+
...we({
|
|
419
|
+
userConfig: O.config,
|
|
420
420
|
defaultConfig: r
|
|
421
421
|
}),
|
|
422
|
-
customPalette: e.customPalette ? e.customPalette :
|
|
422
|
+
customPalette: e.customPalette ? e.customPalette : ie[n] || o
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
} else t = e;
|
|
426
426
|
return t;
|
|
427
427
|
}
|
|
428
|
-
|
|
429
|
-
zn.value || (R.value = Xn()), Kn.value = !R.value.userOptions.showOnChartHover, In(),
|
|
430
|
-
}, { deep: !0 }),
|
|
428
|
+
et(() => O.config, (e) => {
|
|
429
|
+
zn.value || (R.value = Xn()), Kn.value = !R.value.userOptions.showOnChartHover, In(), on.value += 1, sn.value += 1, cn.value += 1, H.value.showTable = R.value.table.show;
|
|
430
|
+
}, { deep: !0 }), et(() => O.dataset, (e) => {
|
|
431
431
|
Array.isArray(e) && e.length > 0 && (Vn.value = !1), Un();
|
|
432
432
|
}, { deep: !0 });
|
|
433
|
-
let { isPrinting: Zn, isImaging: Qn, generatePdf: $n, generateImage: er } =
|
|
434
|
-
elementId:
|
|
433
|
+
let { isPrinting: Zn, isImaging: Qn, generatePdf: $n, generateImage: er } = xe({
|
|
434
|
+
elementId: k.value,
|
|
435
435
|
fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
436
436
|
options: R.value.userOptions.print
|
|
437
|
-
}), tr =
|
|
438
|
-
|
|
437
|
+
}), tr = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), nr = d(() => he(R.value.customPalette)), H = S({ showTable: R.value.table.show });
|
|
438
|
+
et(R, () => {
|
|
439
439
|
H.value = { showTable: R.value.table.show };
|
|
440
440
|
}, { immediate: !0 });
|
|
441
|
-
let U =
|
|
441
|
+
let U = d(() => ({
|
|
442
442
|
top: R.value.style.chart.layout.padding.top,
|
|
443
443
|
right: R.value.style.chart.layout.padding.right,
|
|
444
444
|
bottom: R.value.style.chart.layout.padding.bottom,
|
|
445
445
|
left: R.value.style.chart.layout.padding.left
|
|
446
|
-
})), W =
|
|
446
|
+
})), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
|
|
447
447
|
function rr() {
|
|
448
448
|
let e = 0;
|
|
449
|
-
|
|
449
|
+
ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
|
|
450
450
|
let n = t.getComputedTextLength();
|
|
451
451
|
return n > e ? n : e;
|
|
452
452
|
}, 0));
|
|
453
|
-
let t =
|
|
453
|
+
let t = fn.value ? fn.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
454
454
|
return {
|
|
455
455
|
left: W.value ? 0 : n,
|
|
456
456
|
right: W.value ? n : 0,
|
|
@@ -459,25 +459,25 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
459
459
|
crosshair: 5
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
|
-
let ir =
|
|
462
|
+
let ir = S(0), ar = Ne((e) => {
|
|
463
463
|
ir.value = e;
|
|
464
464
|
}, 100);
|
|
465
|
-
|
|
466
|
-
let t =
|
|
465
|
+
tt((e) => {
|
|
466
|
+
let t = un.value;
|
|
467
467
|
if (!t) return;
|
|
468
468
|
let n = new ResizeObserver((e) => {
|
|
469
469
|
ar(e[0].contentRect.height);
|
|
470
470
|
});
|
|
471
471
|
n.observe(t), e(() => n.disconnect());
|
|
472
|
-
}),
|
|
472
|
+
}), Ye(() => {
|
|
473
473
|
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);
|
|
474
474
|
});
|
|
475
|
-
let or =
|
|
475
|
+
let or = d(() => {
|
|
476
476
|
let e = 0;
|
|
477
|
-
|
|
477
|
+
dn.value && (e = dn.value.getBBox().height);
|
|
478
478
|
let t = 0;
|
|
479
|
-
return
|
|
480
|
-
}), G =
|
|
479
|
+
return un.value && (t = ir.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
480
|
+
}), G = d(() => {
|
|
481
481
|
_n.value;
|
|
482
482
|
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;
|
|
483
483
|
return {
|
|
@@ -495,13 +495,13 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
495
495
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
496
496
|
crosshair: e.crosshair
|
|
497
497
|
};
|
|
498
|
-
}), K =
|
|
499
|
-
[null, void 0].includes(e.name) &&
|
|
498
|
+
}), K = d(() => (Fn.value && Bn.value.forEach((e, t) => {
|
|
499
|
+
[null, void 0].includes(e.name) && de({
|
|
500
500
|
componentName: "VueUiDonutEvolution",
|
|
501
501
|
type: "datasetSerieAttribute",
|
|
502
502
|
property: "name",
|
|
503
503
|
index: t
|
|
504
|
-
}), [null, void 0].includes(e.values) &&
|
|
504
|
+
}), [null, void 0].includes(e.values) && de({
|
|
505
505
|
componentName: "VueUiDonutEvolution",
|
|
506
506
|
type: "datasetSerieAttribute",
|
|
507
507
|
property: "values",
|
|
@@ -509,18 +509,18 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
509
509
|
});
|
|
510
510
|
}), Bn.value.map((e, t) => ({
|
|
511
511
|
...e,
|
|
512
|
-
values:
|
|
513
|
-
color:
|
|
512
|
+
values: ne(e.values),
|
|
513
|
+
color: ee(e.color) || nr.value[t] || o[t] || o[t % o.length],
|
|
514
514
|
length: (e.values || []).length,
|
|
515
|
-
uid:
|
|
516
|
-
})))), sr =
|
|
515
|
+
uid: pe()
|
|
516
|
+
})))), sr = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
517
517
|
...e,
|
|
518
518
|
values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
|
|
519
|
-
}))), q =
|
|
520
|
-
|
|
519
|
+
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), cr = 0;
|
|
520
|
+
tt(() => {
|
|
521
521
|
let e = ++cr;
|
|
522
522
|
(async () => {
|
|
523
|
-
let t = await
|
|
523
|
+
let t = await ye({
|
|
524
524
|
values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
525
525
|
maxDatapoints: q.value,
|
|
526
526
|
formatter: R.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
@@ -530,7 +530,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
530
530
|
e === cr && (J.value = t);
|
|
531
531
|
})();
|
|
532
532
|
});
|
|
533
|
-
let Y =
|
|
533
|
+
let Y = d(() => G.value.width / (V.value.end - V.value.start)), lr = d(() => {
|
|
534
534
|
let e = [];
|
|
535
535
|
for (let t = 0; t < V.value.end - V.value.start; t += 1) {
|
|
536
536
|
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;
|
|
@@ -543,47 +543,47 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
|
-
}), ur =
|
|
547
|
-
let e = Math.max(...lr.value.map((e) => e.subtotal).filter((e) =>
|
|
548
|
-
return
|
|
546
|
+
}), ur = d(() => {
|
|
547
|
+
let e = Math.max(...lr.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...lr.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
|
|
548
|
+
return i = 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 && (i = t, n = e), i === n && (i = n / 2, n *= 1.5), {
|
|
549
549
|
max: n,
|
|
550
|
-
min:
|
|
550
|
+
min: i
|
|
551
551
|
};
|
|
552
|
-
}), X =
|
|
552
|
+
}), X = d(() => {
|
|
553
553
|
let e = lr.value.length === 1 ? ur.value.max * 2 : ur.value.max;
|
|
554
554
|
return oe(ur.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
555
555
|
});
|
|
556
|
-
|
|
556
|
+
et(() => X.value.ticks.join("|"), () => {
|
|
557
557
|
Cn();
|
|
558
558
|
}, { flush: "post" });
|
|
559
559
|
function dr(e) {
|
|
560
560
|
return (e - X.value.min) / (X.value.max - X.value.min);
|
|
561
561
|
}
|
|
562
|
-
let fr =
|
|
562
|
+
let fr = d(() => X.value.ticks.map((e) => ({
|
|
563
563
|
y: G.value.bottom - G.value.height * dr(e),
|
|
564
564
|
value: e
|
|
565
|
-
}))), Z =
|
|
565
|
+
}))), Z = d(() => {
|
|
566
566
|
let e = lr.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
567
567
|
return e.length === 1 && t * 2, e.map((t, n) => {
|
|
568
|
-
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a =
|
|
568
|
+
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, c = G.value.bottom - G.value.height * dr(t.subtotal), l = sr.value.map((e) => ({
|
|
569
569
|
color: e.color,
|
|
570
570
|
name: e.name,
|
|
571
571
|
value: e.values[n] ?? 0
|
|
572
572
|
})).toSorted((e, t) => t.value - e.value);
|
|
573
573
|
return {
|
|
574
574
|
...t,
|
|
575
|
-
y:
|
|
575
|
+
y: c,
|
|
576
576
|
radius: i,
|
|
577
577
|
activeRadius: a,
|
|
578
578
|
hoverRadius: o,
|
|
579
|
-
donut:
|
|
580
|
-
donutHover:
|
|
581
|
-
donutFocus:
|
|
579
|
+
donut: s({ series: l }, t.x, c, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
|
|
580
|
+
donutHover: s({ series: l }, t.x, c, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
|
|
581
|
+
donutFocus: s({ series: l }, 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)
|
|
582
582
|
};
|
|
583
583
|
});
|
|
584
584
|
});
|
|
585
585
|
function pr(e, t, n) {
|
|
586
|
-
return
|
|
586
|
+
return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
|
|
587
587
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
588
588
|
v: e,
|
|
589
589
|
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -597,7 +597,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
597
597
|
return isNaN(e.value / a(t, "value")) ? 0 : (e.value / a(t, "value") * 100).toFixed(0) + "%";
|
|
598
598
|
}
|
|
599
599
|
function hr(e) {
|
|
600
|
-
|
|
600
|
+
j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
601
601
|
datapoint: e,
|
|
602
602
|
seriesIndex: e.seriesIndex + V.value.start
|
|
603
603
|
});
|
|
@@ -606,16 +606,16 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
606
606
|
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
607
607
|
datapoint: e,
|
|
608
608
|
seriesIndex: e.index + V.value.start
|
|
609
|
-
}),
|
|
609
|
+
}), j.value = e.index, M.value = e, L.value = e.index;
|
|
610
610
|
}
|
|
611
|
-
let _r =
|
|
611
|
+
let _r = S(null);
|
|
612
612
|
function vr(e, t) {
|
|
613
613
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
614
614
|
datapoint: e,
|
|
615
615
|
seriesIndex: e.index + V.value.start
|
|
616
|
-
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (
|
|
616
|
+
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, tn.value = !0, N.value = e, Lr(e), [null, void 0].includes(t) || (_r.value = t));
|
|
617
617
|
}
|
|
618
|
-
let yr =
|
|
618
|
+
let yr = d(() => K.value.map((e, t) => ({
|
|
619
619
|
name: e.name,
|
|
620
620
|
value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
|
|
621
621
|
shape: "circle",
|
|
@@ -623,10 +623,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
623
623
|
color: e.color
|
|
624
624
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
625
625
|
...e,
|
|
626
|
-
opacity:
|
|
626
|
+
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
627
627
|
segregate: () => Cr(e.uid),
|
|
628
|
-
isSegregated:
|
|
629
|
-
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ?
|
|
628
|
+
isSegregated: A.value.includes(e.uid),
|
|
629
|
+
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? ue(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
|
|
630
630
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
631
631
|
v: e.value,
|
|
632
632
|
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -634,12 +634,12 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
634
634
|
}), {
|
|
635
635
|
datapoint: e,
|
|
636
636
|
seriesIndex: t
|
|
637
|
-
}) : ""}${R.value.style.chart.legend.showPercentage ?
|
|
637
|
+
}) : ""}${R.value.style.chart.legend.showPercentage ? A.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) ? "-" : re({
|
|
638
638
|
v: e.value / br.value * 100,
|
|
639
639
|
s: "%",
|
|
640
640
|
r: R.value.style.chart.legend.roundingPercentage
|
|
641
641
|
})}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
642
|
-
}))), br =
|
|
642
|
+
}))), br = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), xr = d(() => ({
|
|
643
643
|
cy: "donut-div-legend",
|
|
644
644
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
645
645
|
color: R.value.style.chart.legend.color,
|
|
@@ -648,37 +648,37 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
648
648
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
649
649
|
}));
|
|
650
650
|
function Sr() {
|
|
651
|
-
|
|
652
|
-
|
|
651
|
+
A.value.length ? A.value = [] : yr.value.forEach((e) => {
|
|
652
|
+
A.value.push(e.uid);
|
|
653
653
|
}), Nn("selectLegend", sr.value);
|
|
654
654
|
}
|
|
655
655
|
function Cr(e) {
|
|
656
|
-
if (
|
|
656
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), Nn("selectLegend", sr.value);
|
|
657
657
|
else {
|
|
658
|
-
if (
|
|
659
|
-
|
|
658
|
+
if (A.value.length === K.value.length - 1) return;
|
|
659
|
+
A.value.push(e), Nn("selectLegend", sr.value);
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
N.value && vr(Z.value.find((e, t) => t === _r.value));
|
|
662
662
|
}
|
|
663
663
|
function wr(e) {
|
|
664
664
|
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);
|
|
665
665
|
}
|
|
666
666
|
function Tr(e) {
|
|
667
667
|
let t = wr(e);
|
|
668
|
-
t !== null &&
|
|
668
|
+
t !== null && A.value.includes(t.uid) && Cr(t.uid);
|
|
669
669
|
}
|
|
670
670
|
function Er(e) {
|
|
671
671
|
let t = wr(e);
|
|
672
|
-
t !== null && (
|
|
672
|
+
t !== null && (A.value.includes(t.uid) || Cr(t.uid));
|
|
673
673
|
}
|
|
674
|
-
let Q =
|
|
675
|
-
let e = [""].concat(K.value.filter((e) => !
|
|
674
|
+
let Q = d(() => {
|
|
675
|
+
let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
676
676
|
name: e.name,
|
|
677
677
|
color: e.color
|
|
678
678
|
})), ["Σ"]), t = [];
|
|
679
679
|
for (let e = 0; e < q.value; e += 1) {
|
|
680
|
-
let n = K.value.filter((e) => !
|
|
681
|
-
t.push([J.value[e] ? J.value[e].text : "-"].concat(K.value.filter((e) => !
|
|
680
|
+
let n = K.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
681
|
+
t.push([J.value[e] ? J.value[e].text : "-"].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
|
|
682
682
|
value: t.values[e] ?? 0,
|
|
683
683
|
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
684
684
|
})), [`${R.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(R.value.table.td.roundingValue))}${R.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -700,55 +700,55 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
700
700
|
},
|
|
701
701
|
breakpoint: R.value.table.responsiveBreakpoint
|
|
702
702
|
},
|
|
703
|
-
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !
|
|
703
|
+
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
|
|
704
704
|
};
|
|
705
705
|
});
|
|
706
706
|
function Dr() {
|
|
707
707
|
return K.value;
|
|
708
708
|
}
|
|
709
709
|
function Or(e = null) {
|
|
710
|
-
|
|
711
|
-
let
|
|
710
|
+
Je(() => {
|
|
711
|
+
let r = [
|
|
712
712
|
[R.value.style.chart.title.text],
|
|
713
713
|
[R.value.style.chart.title.subtitle.text],
|
|
714
714
|
[""]
|
|
715
|
-
], i = [...Q.value.head.map((e) => e.name ?? e)], a = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], o =
|
|
715
|
+
], i = [...Q.value.head.map((e) => e.name ?? e)], a = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], o = r.concat([i]).concat(a), s = n(o);
|
|
716
716
|
e ? e(s) : t({
|
|
717
717
|
csvContent: s,
|
|
718
718
|
title: R.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
-
let $ =
|
|
722
|
+
let $ = S(!1);
|
|
723
723
|
function kr(e) {
|
|
724
|
-
$.value = e,
|
|
724
|
+
$.value = e, rn.value += 1;
|
|
725
725
|
}
|
|
726
726
|
function Ar() {
|
|
727
727
|
H.value.showTable = !H.value.showTable;
|
|
728
728
|
}
|
|
729
|
-
let jr =
|
|
729
|
+
let jr = S(!1);
|
|
730
730
|
function Mr() {
|
|
731
731
|
jr.value = !jr.value;
|
|
732
732
|
}
|
|
733
733
|
function Nr(e) {
|
|
734
734
|
return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
735
735
|
}
|
|
736
|
-
let Pr =
|
|
736
|
+
let Pr = S([]), Fr = S({}), Ir = S(null);
|
|
737
737
|
function Lr(e) {
|
|
738
738
|
Pr.value = e.donut.map((e) => ({
|
|
739
739
|
name: e.name,
|
|
740
740
|
values: [e.value],
|
|
741
741
|
color: e.color
|
|
742
|
-
})), Fr.value =
|
|
742
|
+
})), Fr.value = l({
|
|
743
743
|
...R.value.style.chart.dialog.donutChart,
|
|
744
744
|
responsive: !0,
|
|
745
745
|
theme: R.value.theme
|
|
746
746
|
}), Ir.value && Ir.value.open();
|
|
747
747
|
}
|
|
748
748
|
async function Rr({ scale: e = 2 } = {}) {
|
|
749
|
-
if (!
|
|
750
|
-
let { width: t, height: n } =
|
|
751
|
-
domElement:
|
|
749
|
+
if (!P.value) return;
|
|
750
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ae({
|
|
751
|
+
domElement: P.value,
|
|
752
752
|
base64: !0,
|
|
753
753
|
img: !0,
|
|
754
754
|
scale: e
|
|
@@ -762,9 +762,9 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
762
762
|
aspectRatio: r
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
let zr =
|
|
766
|
-
|
|
767
|
-
timeLabelsEls:
|
|
765
|
+
let zr = d(() => B.value.width), Br = d(() => B.value.height);
|
|
766
|
+
ke({
|
|
767
|
+
timeLabelsEls: un,
|
|
768
768
|
timeLabels: J,
|
|
769
769
|
slicer: V,
|
|
770
770
|
configRef: R,
|
|
@@ -792,10 +792,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
792
792
|
height: Br,
|
|
793
793
|
rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
794
794
|
});
|
|
795
|
-
let Vr =
|
|
795
|
+
let Vr = d(() => {
|
|
796
796
|
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
797
797
|
return {
|
|
798
|
-
component: e ?
|
|
798
|
+
component: e ? Zt : Wt,
|
|
799
799
|
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
800
800
|
props: e ? {
|
|
801
801
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -803,7 +803,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
803
803
|
headerColor: R.value.table.th.color,
|
|
804
804
|
headerBg: R.value.table.th.backgroundColor,
|
|
805
805
|
isFullscreen: $.value,
|
|
806
|
-
fullscreenParent:
|
|
806
|
+
fullscreenParent: P.value,
|
|
807
807
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
808
808
|
isCursorPointer: z.value
|
|
809
809
|
} : {
|
|
@@ -823,16 +823,16 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
825
|
});
|
|
826
|
-
|
|
827
|
-
R.value.table.show || (e && R.value.table.useDialog &&
|
|
826
|
+
et(() => H.value.showTable, (e) => {
|
|
827
|
+
R.value.table.show || (e && R.value.table.useDialog && mn.value ? mn.value.open() : "close" in mn.value && mn.value.close());
|
|
828
828
|
});
|
|
829
829
|
function Hr() {
|
|
830
830
|
H.value.showTable = !1, hn.value && hn.value.setTableIconState(!1);
|
|
831
831
|
}
|
|
832
|
-
let Ur =
|
|
832
|
+
let Ur = d(() => yr.value.map((e) => ({
|
|
833
833
|
...e,
|
|
834
834
|
name: e.display
|
|
835
|
-
}))), Wr =
|
|
835
|
+
}))), Wr = d(() => R.value.style.chart.backgroundColor), Gr = d(() => R.value.style.chart.legend), Kr = d(() => R.value.style.chart.title), { isCallbackImaging: qr, isCallbackSvg: Jr, generateSvg: Yr, onGenerateImage: Xr } = Ee({
|
|
836
836
|
svg: Yn,
|
|
837
837
|
title: Kr,
|
|
838
838
|
legend: Gr,
|
|
@@ -858,14 +858,14 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
858
858
|
L.value = null, Mn.value = !0;
|
|
859
859
|
}
|
|
860
860
|
function $r() {
|
|
861
|
-
L.value = null,
|
|
861
|
+
L.value = null, j.value = null, M.value = null, Mn.value = !1;
|
|
862
862
|
}
|
|
863
863
|
function ei(e) {
|
|
864
864
|
if (!Yn.value || jr.value || document.activeElement !== Yn.value || !Z.value.length) return;
|
|
865
865
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
866
866
|
if (!t && !n && !r && !i) return;
|
|
867
867
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
868
|
-
L.value = null,
|
|
868
|
+
L.value = null, j.value = null, M.value = null;
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
871
|
if (r) {
|
|
@@ -875,16 +875,16 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
875
875
|
vr(e, L.value);
|
|
876
876
|
return;
|
|
877
877
|
}
|
|
878
|
-
let a = L.value, o =
|
|
878
|
+
let a = L.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
|
|
879
879
|
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;
|
|
880
|
-
let
|
|
881
|
-
|
|
880
|
+
let l = Z.value[a];
|
|
881
|
+
l && gr(l);
|
|
882
882
|
}
|
|
883
|
-
let ti =
|
|
883
|
+
let ti = d(() => ({
|
|
884
884
|
headers: Q.value?.colNames ?? [],
|
|
885
885
|
rows: Q.value?.bodyA11y ?? []
|
|
886
886
|
}));
|
|
887
|
-
return
|
|
887
|
+
return Me({
|
|
888
888
|
getData: Dr,
|
|
889
889
|
getImage: Rr,
|
|
890
890
|
generatePdf: $n,
|
|
@@ -897,22 +897,22 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
897
897
|
toggleAnnotator: Mr,
|
|
898
898
|
toggleFullscreen: kr,
|
|
899
899
|
copyAlt: Zr
|
|
900
|
-
}), (e, t) => (
|
|
900
|
+
}), (e, t) => (x(), m("div", {
|
|
901
901
|
ref_key: "donutEvolutionChart",
|
|
902
|
-
ref:
|
|
903
|
-
class:
|
|
904
|
-
style:
|
|
905
|
-
id:
|
|
906
|
-
onMouseenter: t[5] ||= () =>
|
|
907
|
-
onMouseleave: t[6] ||= () =>
|
|
902
|
+
ref: P,
|
|
903
|
+
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
904
|
+
style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
905
|
+
id: k.value,
|
|
906
|
+
onMouseenter: t[5] ||= () => E(qn)(!0),
|
|
907
|
+
onMouseleave: t[6] ||= () => E(qn)(!1)
|
|
908
908
|
}, [
|
|
909
|
-
|
|
910
|
-
id: `chart-instructions-${
|
|
909
|
+
h("div", {
|
|
910
|
+
id: `chart-instructions-${k.value}`,
|
|
911
911
|
class: "sr-only"
|
|
912
|
-
}, [
|
|
913
|
-
ti.value?.rows?.length ? (
|
|
912
|
+
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
913
|
+
ti.value?.rows?.length ? (x(), f(Re, {
|
|
914
914
|
key: 0,
|
|
915
|
-
uid:
|
|
915
|
+
uid: k.value,
|
|
916
916
|
head: ti.value.headers,
|
|
917
917
|
body: ti.value.rows,
|
|
918
918
|
notice: R.value.a11y.translations.tableAvailable,
|
|
@@ -923,45 +923,47 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
923
923
|
"body",
|
|
924
924
|
"notice",
|
|
925
925
|
"caption"
|
|
926
|
-
])) :
|
|
927
|
-
R.value.userOptions.buttons.annotator ? (
|
|
926
|
+
])) : p("", !0),
|
|
927
|
+
R.value.userOptions.buttons.annotator ? (x(), f(E(Jt), {
|
|
928
928
|
key: 1,
|
|
929
|
-
svgRef:
|
|
929
|
+
svgRef: E(Yn),
|
|
930
930
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
931
931
|
color: R.value.style.chart.color,
|
|
932
932
|
active: jr.value,
|
|
933
933
|
isCursorPointer: z.value,
|
|
934
|
+
palette: R.value.userOptions.annotatorPalette,
|
|
934
935
|
onClose: Mr
|
|
935
936
|
}, {
|
|
936
|
-
"annotator-action-close":
|
|
937
|
-
"annotator-action-color":
|
|
938
|
-
"annotator-action-draw":
|
|
939
|
-
"annotator-action-undo":
|
|
940
|
-
"annotator-action-redo":
|
|
941
|
-
"annotator-action-delete":
|
|
937
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
938
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
939
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
940
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
941
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
942
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
942
943
|
_: 3
|
|
943
944
|
}, 8, [
|
|
944
945
|
"svgRef",
|
|
945
946
|
"backgroundColor",
|
|
946
947
|
"color",
|
|
947
948
|
"active",
|
|
948
|
-
"isCursorPointer"
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
"isCursorPointer",
|
|
950
|
+
"palette"
|
|
951
|
+
])) : p("", !0),
|
|
952
|
+
tr.value ? (x(), m("div", {
|
|
951
953
|
key: 2,
|
|
952
954
|
ref_key: "noTitle",
|
|
953
|
-
ref:
|
|
955
|
+
ref: nn,
|
|
954
956
|
class: "vue-data-ui-no-title-space",
|
|
955
957
|
style: "height:36px; width: 100%;background:transparent"
|
|
956
|
-
}, null, 512)) :
|
|
957
|
-
R.value.style.chart.title.text ? (
|
|
958
|
+
}, null, 512)) : p("", !0),
|
|
959
|
+
R.value.style.chart.title.text ? (x(), m("div", {
|
|
958
960
|
key: 3,
|
|
959
961
|
ref_key: "chartTitle",
|
|
960
962
|
ref: Tn,
|
|
961
963
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
962
964
|
onMouseleave: hr
|
|
963
|
-
}, [(
|
|
964
|
-
key: `title_${
|
|
965
|
+
}, [(x(), f(je, {
|
|
966
|
+
key: `title_${on.value}`,
|
|
965
967
|
config: {
|
|
966
968
|
title: {
|
|
967
969
|
cy: "donut-evolution-div-title",
|
|
@@ -972,17 +974,17 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
972
974
|
...R.value.style.chart.title.subtitle
|
|
973
975
|
}
|
|
974
976
|
}
|
|
975
|
-
}, null, 8, ["config"]))], 544)) :
|
|
976
|
-
|
|
977
|
-
R.value.userOptions.show && Pn.value && (
|
|
977
|
+
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
978
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, at),
|
|
979
|
+
R.value.userOptions.show && Pn.value && (E(Jn) || E(Kn)) ? (x(), f(E(Yt), {
|
|
978
980
|
ref_key: "userOptionsRef",
|
|
979
981
|
ref: hn,
|
|
980
|
-
key: `user_options_${
|
|
982
|
+
key: `user_options_${rn.value}`,
|
|
981
983
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
982
984
|
color: R.value.style.chart.color,
|
|
983
|
-
isPrinting:
|
|
984
|
-
isImaging:
|
|
985
|
-
uid:
|
|
985
|
+
isPrinting: E(Zn),
|
|
986
|
+
isImaging: E(Qn),
|
|
987
|
+
uid: k.value,
|
|
986
988
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
987
989
|
hasImg: R.value.userOptions.buttons.img,
|
|
988
990
|
hasSvg: R.value.userOptions.buttons.svg,
|
|
@@ -992,7 +994,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
992
994
|
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
993
995
|
isFullscreen: $.value,
|
|
994
996
|
titles: { ...R.value.userOptions.buttonTitles },
|
|
995
|
-
chartElement:
|
|
997
|
+
chartElement: P.value,
|
|
996
998
|
position: R.value.userOptions.position,
|
|
997
999
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
998
1000
|
isAnnotation: jr.value,
|
|
@@ -1001,18 +1003,18 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1001
1003
|
tableDialog: R.value.table.useDialog,
|
|
1002
1004
|
isCursorPointer: z.value,
|
|
1003
1005
|
onToggleFullscreen: kr,
|
|
1004
|
-
onGeneratePdf:
|
|
1006
|
+
onGeneratePdf: E($n),
|
|
1005
1007
|
onGenerateCsv: Or,
|
|
1006
|
-
onGenerateImage:
|
|
1007
|
-
onGenerateSvg:
|
|
1008
|
+
onGenerateImage: E(Xr),
|
|
1009
|
+
onGenerateSvg: E(Yr),
|
|
1008
1010
|
onToggleTable: Ar,
|
|
1009
1011
|
onToggleAnnotator: Mr,
|
|
1010
1012
|
onCopyAlt: Zr,
|
|
1011
|
-
style:
|
|
1012
|
-
},
|
|
1013
|
+
style: b({ visibility: E(Jn) ? E(Kn) ? "visible" : "hidden" : "visible" })
|
|
1014
|
+
}, We({ _: 2 }, [
|
|
1013
1015
|
e.$slots.menuIcon ? {
|
|
1014
1016
|
name: "menuIcon",
|
|
1015
|
-
fn:
|
|
1017
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
1016
1018
|
isOpen: t,
|
|
1017
1019
|
color: n
|
|
1018
1020
|
})), void 0, !0)]),
|
|
@@ -1020,32 +1022,32 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1020
1022
|
} : void 0,
|
|
1021
1023
|
e.$slots.optionPdf ? {
|
|
1022
1024
|
name: "optionPdf",
|
|
1023
|
-
fn:
|
|
1025
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1024
1026
|
key: "1"
|
|
1025
1027
|
} : void 0,
|
|
1026
1028
|
e.$slots.optionCsv ? {
|
|
1027
1029
|
name: "optionCsv",
|
|
1028
|
-
fn:
|
|
1030
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1029
1031
|
key: "2"
|
|
1030
1032
|
} : void 0,
|
|
1031
1033
|
e.$slots.optionImg ? {
|
|
1032
1034
|
name: "optionImg",
|
|
1033
|
-
fn:
|
|
1035
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1034
1036
|
key: "3"
|
|
1035
1037
|
} : void 0,
|
|
1036
1038
|
e.$slots.optionSvg ? {
|
|
1037
1039
|
name: "optionSvg",
|
|
1038
|
-
fn:
|
|
1040
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1039
1041
|
key: "4"
|
|
1040
1042
|
} : void 0,
|
|
1041
1043
|
e.$slots.optionTable ? {
|
|
1042
1044
|
name: "optionTable",
|
|
1043
|
-
fn:
|
|
1045
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1044
1046
|
key: "5"
|
|
1045
1047
|
} : void 0,
|
|
1046
1048
|
e.$slots.optionFullscreen ? {
|
|
1047
1049
|
name: "optionFullscreen",
|
|
1048
|
-
fn:
|
|
1050
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
|
|
1049
1051
|
toggleFullscreen: t,
|
|
1050
1052
|
isFullscreen: n
|
|
1051
1053
|
})), void 0, !0)]),
|
|
@@ -1053,7 +1055,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1053
1055
|
} : void 0,
|
|
1054
1056
|
e.$slots.optionAnnotator ? {
|
|
1055
1057
|
name: "optionAnnotator",
|
|
1056
|
-
fn:
|
|
1058
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
|
|
1057
1059
|
toggleAnnotator: t,
|
|
1058
1060
|
isAnnotator: n
|
|
1059
1061
|
})), void 0, !0)]),
|
|
@@ -1061,85 +1063,85 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1061
1063
|
} : void 0,
|
|
1062
1064
|
e.$slots.optionAltCopy ? {
|
|
1063
1065
|
name: "optionAltCopy",
|
|
1064
|
-
fn:
|
|
1066
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
1065
1067
|
key: "8"
|
|
1066
1068
|
} : void 0,
|
|
1067
1069
|
e.$slots["custom-menu-before"] ? {
|
|
1068
1070
|
name: "custom-menu-before",
|
|
1069
|
-
fn:
|
|
1071
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1070
1072
|
key: "9"
|
|
1071
1073
|
} : void 0,
|
|
1072
1074
|
e.$slots["custom-menu-after"] ? {
|
|
1073
1075
|
name: "custom-menu-after",
|
|
1074
|
-
fn:
|
|
1076
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1075
1077
|
key: "10"
|
|
1076
1078
|
} : void 0
|
|
1077
|
-
]), 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("."))) :
|
|
1078
|
-
|
|
1079
|
+
]), 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("."))) : p("", !0),
|
|
1080
|
+
h("div", ot, [(x(), m("svg", {
|
|
1079
1081
|
ref_key: "svgRef",
|
|
1080
1082
|
ref: Yn,
|
|
1081
|
-
xmlns:
|
|
1082
|
-
"aria-describedby": `chart-instructions-${
|
|
1083
|
-
class:
|
|
1083
|
+
xmlns: E(me),
|
|
1084
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1085
|
+
class: v({
|
|
1084
1086
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1085
1087
|
"vue-data-ui-fulscreen--off": !$.value,
|
|
1086
|
-
"vue-data-ui-no-transition": !
|
|
1088
|
+
"vue-data-ui-no-transition": !E(Ln)
|
|
1087
1089
|
}),
|
|
1088
1090
|
viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
|
|
1089
|
-
style:
|
|
1091
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
|
|
1090
1092
|
tabindex: "0",
|
|
1091
1093
|
onFocus: Qr,
|
|
1092
1094
|
onBlur: $r,
|
|
1093
1095
|
onKeydown: ei
|
|
1094
1096
|
}, [
|
|
1095
|
-
|
|
1096
|
-
e.$slots["chart-background"] ? (
|
|
1097
|
+
Ke(E(qt)),
|
|
1098
|
+
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1097
1099
|
key: 0,
|
|
1098
1100
|
x: G.value.left,
|
|
1099
1101
|
y: G.value.top,
|
|
1100
1102
|
width: G.value.width,
|
|
1101
1103
|
height: G.value.height,
|
|
1102
1104
|
style: { pointerEvents: "none" }
|
|
1103
|
-
}, [
|
|
1104
|
-
|
|
1105
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : p("", !0),
|
|
1106
|
+
h("defs", null, [Ke(Fe, {
|
|
1105
1107
|
t: "linear",
|
|
1106
|
-
id: `hover_${
|
|
1108
|
+
id: `hover_${k.value}`,
|
|
1107
1109
|
x1: "0%",
|
|
1108
1110
|
y1: "0%",
|
|
1109
1111
|
x2: "0%",
|
|
1110
1112
|
y2: "100%",
|
|
1111
1113
|
stops: [[
|
|
1112
1114
|
"0%",
|
|
1113
|
-
|
|
1115
|
+
E(te)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
|
|
1114
1116
|
1
|
|
1115
1117
|
], [
|
|
1116
1118
|
"100%",
|
|
1117
|
-
|
|
1119
|
+
E(te)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
|
|
1118
1120
|
1
|
|
1119
1121
|
]]
|
|
1120
|
-
}, null, 8, ["id", "stops"]),
|
|
1122
|
+
}, null, 8, ["id", "stops"]), Ke(Fe, {
|
|
1121
1123
|
t: "radial",
|
|
1122
|
-
id: `focus_${
|
|
1124
|
+
id: `focus_${k.value}`,
|
|
1123
1125
|
stops: [
|
|
1124
1126
|
[
|
|
1125
1127
|
"0%",
|
|
1126
|
-
|
|
1128
|
+
E(te)(E(ee)(R.value.style.chart.backgroundColor), 0),
|
|
1127
1129
|
1
|
|
1128
1130
|
],
|
|
1129
1131
|
[
|
|
1130
1132
|
"77%",
|
|
1131
|
-
|
|
1133
|
+
E(te)("#FFFFFF", 30),
|
|
1132
1134
|
1
|
|
1133
1135
|
],
|
|
1134
1136
|
[
|
|
1135
1137
|
"100%",
|
|
1136
|
-
|
|
1138
|
+
E(te)(E(ee)(R.value.style.chart.backgroundColor), 0),
|
|
1137
1139
|
1
|
|
1138
1140
|
]
|
|
1139
1141
|
]
|
|
1140
1142
|
}, null, 8, ["id", "stops"])]),
|
|
1141
|
-
R.value.style.chart.layout.grid.show ? (
|
|
1142
|
-
|
|
1143
|
+
R.value.style.chart.layout.grid.show ? (x(), m("g", lt, [
|
|
1144
|
+
h("line", {
|
|
1143
1145
|
x1: W.value ? G.value.right : G.value.left,
|
|
1144
1146
|
x2: W.value ? G.value.right : G.value.left,
|
|
1145
1147
|
y1: G.value.top,
|
|
@@ -1147,8 +1149,8 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1147
1149
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1148
1150
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1149
1151
|
"stroke-linecap": "round"
|
|
1150
|
-
}, null, 8,
|
|
1151
|
-
|
|
1152
|
+
}, null, 8, ut),
|
|
1153
|
+
h("line", {
|
|
1152
1154
|
x1: G.value.left,
|
|
1153
1155
|
x2: G.value.right,
|
|
1154
1156
|
y1: G.value.bottom,
|
|
@@ -1156,8 +1158,8 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1156
1158
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1157
1159
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1158
1160
|
"stroke-linecap": "round"
|
|
1159
|
-
}, null, 8,
|
|
1160
|
-
R.value.style.chart.layout.grid.showVerticalLines ? (
|
|
1161
|
+
}, null, 8, dt),
|
|
1162
|
+
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", ft, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
|
|
1161
1163
|
x1: G.value.left + (t + 1) * Y.value,
|
|
1162
1164
|
x2: G.value.left + (t + 1) * Y.value,
|
|
1163
1165
|
y1: G.value.top,
|
|
@@ -1165,51 +1167,51 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1165
1167
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1166
1168
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1167
1169
|
"stroke-linecap": "round"
|
|
1168
|
-
}, null, 8,
|
|
1169
|
-
])) :
|
|
1170
|
-
|
|
1170
|
+
}, null, 8, pt))), 256))])) : p("", !0)
|
|
1171
|
+
])) : p("", !0),
|
|
1172
|
+
h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1171
1173
|
key: 0,
|
|
1172
1174
|
ref_key: "yAxisLabel",
|
|
1173
|
-
ref:
|
|
1175
|
+
ref: fn,
|
|
1174
1176
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1175
1177
|
fill: R.value.style.chart.layout.grid.axis.color,
|
|
1176
1178
|
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)`,
|
|
1177
1179
|
"text-anchor": "middle",
|
|
1178
1180
|
style: { transition: "none" }
|
|
1179
|
-
},
|
|
1181
|
+
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9, mt)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1180
1182
|
key: 1,
|
|
1181
1183
|
ref_key: "xAxisLabel",
|
|
1182
|
-
ref:
|
|
1184
|
+
ref: dn,
|
|
1183
1185
|
"text-anchor": "middle",
|
|
1184
1186
|
x: G.value.absoluteWidth / 2,
|
|
1185
1187
|
y: G.value.absoluteHeight - 3,
|
|
1186
1188
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1187
1189
|
fill: R.value.style.chart.layout.grid.axis.color
|
|
1188
|
-
},
|
|
1189
|
-
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (
|
|
1190
|
+
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9, ht)) : p("", !0)]),
|
|
1191
|
+
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1190
1192
|
key: 2,
|
|
1191
1193
|
ref_key: "scaleLabels",
|
|
1192
|
-
ref:
|
|
1193
|
-
class:
|
|
1194
|
+
ref: ln,
|
|
1195
|
+
class: v({
|
|
1194
1196
|
"donut-opacity": !0,
|
|
1195
|
-
"donut-behind":
|
|
1197
|
+
"donut-behind": j.value !== null
|
|
1196
1198
|
})
|
|
1197
|
-
}, [(
|
|
1199
|
+
}, [(x(!0), m(u, null, C(fr.value, (e, t) => (x(), m("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("path", {
|
|
1198
1200
|
key: 0,
|
|
1199
|
-
class:
|
|
1201
|
+
class: v({ "vue-data-ui-transition": E(Ln) }),
|
|
1200
1202
|
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 5 : G.value.left - 5},${e.y}`,
|
|
1201
1203
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1202
1204
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1203
1205
|
"stroke-linecap": "round"
|
|
1204
|
-
}, null, 10,
|
|
1206
|
+
}, null, 10, gt)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
|
|
1205
1207
|
key: 1,
|
|
1206
|
-
class:
|
|
1208
|
+
class: v({ "vue-data-ui-transition": E(Ln) }),
|
|
1207
1209
|
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})`,
|
|
1208
1210
|
"font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1209
1211
|
"text-anchor": W.value ? "start" : "end",
|
|
1210
1212
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1211
1213
|
"font-weight": R.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1212
|
-
},
|
|
1214
|
+
}, T(E(ge)(e.value) ? E(ue)(R.value.style.chart.layout.dataLabels.formatter, e.value, E(re)({
|
|
1213
1215
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
1214
1216
|
v: e.value,
|
|
1215
1217
|
s: R.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -1217,39 +1219,39 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1217
1219
|
}), {
|
|
1218
1220
|
datapoint: e,
|
|
1219
1221
|
seriesIndex: t
|
|
1220
|
-
}) : ""), 11,
|
|
1221
|
-
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (
|
|
1222
|
+
}) : ""), 11, _t)) : p("", !0)]))), 128))], 2)) : p("", !0),
|
|
1223
|
+
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1222
1224
|
key: 3,
|
|
1223
1225
|
ref_key: "timeLabelsEls",
|
|
1224
|
-
ref:
|
|
1225
|
-
class:
|
|
1226
|
-
}, [(
|
|
1226
|
+
ref: un,
|
|
1227
|
+
class: v({ "donut-opacity": !0 })
|
|
1228
|
+
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("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 ? (x(), m("g", vt, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1227
1229
|
key: 1,
|
|
1228
1230
|
class: "vue-data-ui-time-label",
|
|
1229
1231
|
"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",
|
|
1230
1232
|
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1231
1233
|
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1232
1234
|
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})`,
|
|
1233
|
-
innerHTML:
|
|
1235
|
+
innerHTML: E(i)({
|
|
1234
1236
|
content: String(J.value[t].text),
|
|
1235
1237
|
fontSize: R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1236
1238
|
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1237
1239
|
x: 0,
|
|
1238
1240
|
y: 0
|
|
1239
1241
|
})
|
|
1240
|
-
}, null, 8,
|
|
1242
|
+
}, null, 8, bt)) : (x(), m("text", {
|
|
1241
1243
|
key: 0,
|
|
1242
1244
|
class: "vue-data-ui-time-label",
|
|
1243
1245
|
"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",
|
|
1244
1246
|
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1245
1247
|
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1246
1248
|
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})`
|
|
1247
|
-
},
|
|
1248
|
-
(
|
|
1249
|
+
}, T(J.value[t].text || ""), 9, yt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1250
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1249
1251
|
key: 0,
|
|
1250
|
-
class:
|
|
1252
|
+
class: v({
|
|
1251
1253
|
"donut-opacity": !0,
|
|
1252
|
-
"donut-behind":
|
|
1254
|
+
"donut-behind": j.value !== null
|
|
1253
1255
|
}),
|
|
1254
1256
|
x1: e.x,
|
|
1255
1257
|
y1: e.y,
|
|
@@ -1259,20 +1261,20 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1259
1261
|
"stroke-width": R.value.style.chart.layout.line.strokeWidth,
|
|
1260
1262
|
"stroke-linecap": "round",
|
|
1261
1263
|
"stroke-linejoin": "round"
|
|
1262
|
-
}, null, 10,
|
|
1264
|
+
}, null, 10, xt)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", St, [e.subtotal ? (x(), m("circle", {
|
|
1263
1265
|
key: 0,
|
|
1264
1266
|
cx: e.x,
|
|
1265
1267
|
cy: e.y,
|
|
1266
1268
|
r: e.activeRadius,
|
|
1267
1269
|
fill: R.value.style.chart.backgroundColor
|
|
1268
|
-
}, null, 8,
|
|
1269
|
-
(
|
|
1270
|
+
}, null, 8, Ct)) : p("", !0)]))]))), 256)),
|
|
1271
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1270
1272
|
"donut-opacity": !0,
|
|
1271
|
-
"donut-behind": t !==
|
|
1272
|
-
}) }, [e.subtotal ? (
|
|
1273
|
-
(
|
|
1273
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1274
|
+
}) }, [e.subtotal ? (x(), m("g", wt, [j.value !== null && j.value === t ? (x(), m("g", Tt, [
|
|
1275
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Nr(t) ? (x(), m("path", {
|
|
1274
1276
|
key: 0,
|
|
1275
|
-
d:
|
|
1277
|
+
d: E(ce)(t, {
|
|
1276
1278
|
x: t.center.endX,
|
|
1277
1279
|
y: t.center.endY
|
|
1278
1280
|
}, 12, 12, {
|
|
@@ -1284,66 +1286,66 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1284
1286
|
"stroke-linecap": "round",
|
|
1285
1287
|
"stroke-linejoin": "round",
|
|
1286
1288
|
fill: "none"
|
|
1287
|
-
}, null, 8,
|
|
1288
|
-
(
|
|
1289
|
+
}, null, 8, Et)) : p("", !0)]))), 256)),
|
|
1290
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Nr(t) ? (x(), m("text", {
|
|
1289
1291
|
key: 0,
|
|
1290
1292
|
"data-cy-hover-label": "",
|
|
1291
|
-
"text-anchor":
|
|
1292
|
-
x:
|
|
1293
|
-
y:
|
|
1293
|
+
"text-anchor": E(se)(t, !0, 0).anchor,
|
|
1294
|
+
x: E(se)(t, !0, 9).x,
|
|
1295
|
+
y: E(fe)(t, 14, 10),
|
|
1294
1296
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1295
1297
|
"font-size": 8,
|
|
1296
1298
|
"font-weight": "bold"
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
+
}, T(t.name) + ": " + T(mr(t, e.donut)) + " (" + T(t.value === null ? "-" : pr(t.value, t, n)) + ") ", 9, Dt)) : p("", !0)]))), 256)),
|
|
1300
|
+
h("g", null, [h("circle", {
|
|
1299
1301
|
cx: e.x,
|
|
1300
1302
|
cy: e.y,
|
|
1301
1303
|
r: e.hoverRadius,
|
|
1302
1304
|
fill: R.value.style.chart.backgroundColor
|
|
1303
|
-
}, null, 8,
|
|
1304
|
-
])) :
|
|
1305
|
-
(
|
|
1305
|
+
}, null, 8, Ot)])
|
|
1306
|
+
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1307
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1306
1308
|
"donut-opacity": !0,
|
|
1307
|
-
"donut-behind": t !==
|
|
1308
|
-
}) }, [e.subtotal === null ?
|
|
1309
|
+
"donut-behind": t !== j.value && j.value !== null
|
|
1310
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", kt, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1309
1311
|
key: 0,
|
|
1310
1312
|
cx: e.x,
|
|
1311
1313
|
cy: e.y,
|
|
1312
1314
|
r: 3,
|
|
1313
1315
|
fill: R.value.style.chart.color
|
|
1314
|
-
}, null, 8,
|
|
1316
|
+
}, null, 8, At)) : j.value !== null && j.value === t ? (x(), m("g", jt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1315
1317
|
d: e.arcSlice,
|
|
1316
1318
|
fill: `${e.color}`,
|
|
1317
1319
|
"stroke-width": 1,
|
|
1318
1320
|
stroke: R.value.style.chart.backgroundColor
|
|
1319
|
-
}, null, 8,
|
|
1321
|
+
}, null, 8, Mt))), 256))])) : (x(), m("g", Nt, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1320
1322
|
d: e.arcSlice,
|
|
1321
1323
|
fill: `${e.color}`,
|
|
1322
1324
|
"stroke-width": .5,
|
|
1323
1325
|
stroke: R.value.style.chart.backgroundColor
|
|
1324
|
-
}, null, 8,
|
|
1325
|
-
(
|
|
1326
|
+
}, null, 8, Pt))), 256))]))]))], 2))), 256)),
|
|
1327
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1326
1328
|
"donut-opacity": !0,
|
|
1327
|
-
"donut-behind": t !==
|
|
1328
|
-
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (
|
|
1329
|
+
"donut-behind": t !== j.value && j.value !== null || tn.value && t !== N.value.index
|
|
1330
|
+
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1329
1331
|
key: 0,
|
|
1330
1332
|
"text-anchor": "middle",
|
|
1331
1333
|
x: e.x,
|
|
1332
|
-
y:
|
|
1334
|
+
y: j.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,
|
|
1333
1335
|
"font-size": R.value.style.chart.layout.dataLabels.fontSize,
|
|
1334
1336
|
"font-weight": "bold",
|
|
1335
1337
|
fill: R.value.style.chart.layout.dataLabels.color
|
|
1336
|
-
},
|
|
1337
|
-
(
|
|
1338
|
+
}, T(pr(e.subtotal, e, t)), 9, Ft)) : p("", !0)], 2))), 256)),
|
|
1339
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1338
1340
|
x: G.value.left + t * Y.value,
|
|
1339
1341
|
y: G.value.top,
|
|
1340
1342
|
width: Y.value,
|
|
1341
1343
|
height: G.value.height,
|
|
1342
|
-
fill: [
|
|
1343
|
-
class:
|
|
1344
|
+
fill: [j.value, _r.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1345
|
+
class: v({ "donut-hover": z.value && e.subtotal && [j.value, _r.value].includes(e.index) }),
|
|
1344
1346
|
style: { pointerEvents: "none" }
|
|
1345
|
-
}, null, 10,
|
|
1346
|
-
(
|
|
1347
|
+
}, null, 10, It))), 256)),
|
|
1348
|
+
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1347
1349
|
"data-cy-trap": "",
|
|
1348
1350
|
x: G.value.left + t * Y.value,
|
|
1349
1351
|
y: G.value.top,
|
|
@@ -1353,27 +1355,27 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1353
1355
|
onMouseenter: (t) => gr(e),
|
|
1354
1356
|
onMouseleave: (t) => hr(e),
|
|
1355
1357
|
onClick: (n) => vr(e, t),
|
|
1356
|
-
class:
|
|
1357
|
-
}, null, 42,
|
|
1358
|
-
|
|
1358
|
+
class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
|
|
1359
|
+
}, null, 42, Lt))), 256)),
|
|
1360
|
+
w(e.$slots, "svg", { svg: {
|
|
1359
1361
|
...G.value,
|
|
1360
|
-
isPrintingImg:
|
|
1361
|
-
isPrintingSvg:
|
|
1362
|
+
isPrintingImg: E(Zn) || E(Qn) || E(qr),
|
|
1363
|
+
isPrintingSvg: E(Jr)
|
|
1362
1364
|
} }, void 0, !0)
|
|
1363
|
-
], 46,
|
|
1365
|
+
], 46, st)), e.$slots.hint ? (x(), m("div", Rt, [w(e.$slots, "hint", y(_({
|
|
1364
1366
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1365
1367
|
isVisible: Mn.value
|
|
1366
|
-
})), void 0, !0)])) :
|
|
1367
|
-
e.$slots.watermark ? (
|
|
1368
|
-
|
|
1368
|
+
})), void 0, !0)])) : p("", !0)]),
|
|
1369
|
+
e.$slots.watermark ? (x(), m("div", zt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Zn) || E(Qn) || E(qr) || E(Jr) })), void 0, !0)])) : p("", !0),
|
|
1370
|
+
h("div", {
|
|
1369
1371
|
ref_key: "chartSlicer",
|
|
1370
1372
|
ref: kn,
|
|
1371
|
-
style:
|
|
1373
|
+
style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
|
|
1372
1374
|
"data-dom-to-png-ignore": ""
|
|
1373
|
-
}, [q.value > 1 && R.value.style.chart.zoom.show ? (
|
|
1375
|
+
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(Ie, {
|
|
1374
1376
|
ref_key: "slicerComponent",
|
|
1375
1377
|
ref: On,
|
|
1376
|
-
key: `slicer_${
|
|
1378
|
+
key: `slicer_${an.value}`,
|
|
1377
1379
|
background: R.value.style.chart.zoom.color,
|
|
1378
1380
|
borderColor: R.value.style.chart.backgroundColor,
|
|
1379
1381
|
fontSize: R.value.style.chart.zoom.fontSize,
|
|
@@ -1402,7 +1404,7 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1402
1404
|
minimapRightInsetRatio: G.value.absoluteWidth > 0 && R.value.style.chart.zoom.autoFit ? (G.value.absoluteWidth - G.value.right) / G.value.absoluteWidth : null,
|
|
1403
1405
|
onReset: Un
|
|
1404
1406
|
}, {
|
|
1405
|
-
"reset-action":
|
|
1407
|
+
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1406
1408
|
_: 3
|
|
1407
1409
|
}, 8, [
|
|
1408
1410
|
"background",
|
|
@@ -1428,52 +1430,52 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1428
1430
|
"maxWidth",
|
|
1429
1431
|
"minimapLeftInsetRatio",
|
|
1430
1432
|
"minimapRightInsetRatio"
|
|
1431
|
-
])) :
|
|
1432
|
-
|
|
1433
|
-
|
|
1433
|
+
])) : p("", !0)], 4),
|
|
1434
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Bt),
|
|
1435
|
+
pn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ue, {
|
|
1434
1436
|
key: 6,
|
|
1435
|
-
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1436
|
-
}, [
|
|
1437
|
+
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1438
|
+
}, [h("div", {
|
|
1437
1439
|
ref_key: "chartLegend",
|
|
1438
1440
|
ref: En
|
|
1439
|
-
}, [
|
|
1440
|
-
key: `legend_${
|
|
1441
|
+
}, [w(e.$slots, "legend", { legend: yr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Ve, {
|
|
1442
|
+
key: `legend_${cn.value}`,
|
|
1441
1443
|
legendSet: yr.value,
|
|
1442
1444
|
config: xr.value,
|
|
1443
1445
|
onClickMarker: t[2] ||= ({ legend: e }) => Cr(e.uid)
|
|
1444
1446
|
}, {
|
|
1445
|
-
item:
|
|
1447
|
+
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1446
1448
|
onClick: (t) => Cr(e.uid),
|
|
1447
|
-
style:
|
|
1448
|
-
},
|
|
1449
|
-
legendToggle:
|
|
1449
|
+
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1450
|
+
}, T(e.display), 13, Vt)]),
|
|
1451
|
+
legendToggle: D(() => [yr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(zn) ? (x(), f(Le, {
|
|
1450
1452
|
key: 0,
|
|
1451
1453
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1452
1454
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1453
1455
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
1454
|
-
checked:
|
|
1456
|
+
checked: A.value.length > 0,
|
|
1455
1457
|
onToggle: Sr
|
|
1456
1458
|
}, null, 8, [
|
|
1457
1459
|
"backgroundColor",
|
|
1458
1460
|
"color",
|
|
1459
1461
|
"fontSize",
|
|
1460
1462
|
"checked"
|
|
1461
|
-
])) :
|
|
1463
|
+
])) : p("", !0)]),
|
|
1462
1464
|
_: 1
|
|
1463
|
-
}, 8, ["legendSet", "config"])) :
|
|
1464
|
-
e.$slots.source ? (
|
|
1465
|
+
}, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
|
|
1466
|
+
e.$slots.source ? (x(), m("div", {
|
|
1465
1467
|
key: 7,
|
|
1466
1468
|
ref_key: "source",
|
|
1467
1469
|
ref: Dn,
|
|
1468
1470
|
dir: "auto"
|
|
1469
|
-
}, [
|
|
1470
|
-
Pn.value && R.value.userOptions.buttons.table ? (
|
|
1471
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1472
|
+
Pn.value && R.value.userOptions.buttons.table ? (x(), f(Ze(Vr.value.component), qe({ key: 8 }, Vr.value.props, {
|
|
1471
1473
|
ref_key: "tableUnit",
|
|
1472
|
-
ref:
|
|
1474
|
+
ref: mn,
|
|
1473
1475
|
onClose: Hr
|
|
1474
|
-
}),
|
|
1475
|
-
content:
|
|
1476
|
-
key: `table_${
|
|
1476
|
+
}), We({
|
|
1477
|
+
content: D(() => [(x(), f(E(Kt), {
|
|
1478
|
+
key: `table_${sn.value}`,
|
|
1477
1479
|
colNames: Q.value.colNames,
|
|
1478
1480
|
head: Q.value.head,
|
|
1479
1481
|
body: Q.value.body,
|
|
@@ -1483,8 +1485,8 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1483
1485
|
isCursorPointer: z.value,
|
|
1484
1486
|
onClose: Hr
|
|
1485
1487
|
}, {
|
|
1486
|
-
th:
|
|
1487
|
-
td:
|
|
1488
|
+
th: D(({ th: e }) => [Ge(T(e.name ?? e), 1)]),
|
|
1489
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Ht, "-")) : (x(), m("b", Ut, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1488
1490
|
_: 1
|
|
1489
1491
|
}, 8, [
|
|
1490
1492
|
"colNames",
|
|
@@ -1498,41 +1500,41 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1498
1500
|
_: 2
|
|
1499
1501
|
}, [R.value.table.useDialog ? {
|
|
1500
1502
|
name: "title",
|
|
1501
|
-
fn:
|
|
1503
|
+
fn: D(() => [Ge(T(Vr.value.title), 1)]),
|
|
1502
1504
|
key: "0"
|
|
1503
1505
|
} : void 0, R.value.table.useDialog ? {
|
|
1504
1506
|
name: "actions",
|
|
1505
|
-
fn:
|
|
1507
|
+
fn: D(() => [h("button", {
|
|
1506
1508
|
tabindex: "0",
|
|
1507
1509
|
class: "vue-ui-user-options-button",
|
|
1508
1510
|
onClick: t[3] ||= (e) => Or(R.value.userOptions.callbacks.csv),
|
|
1509
|
-
style:
|
|
1510
|
-
}, [
|
|
1511
|
+
style: b({ cursor: z.value ? "cursor" : "default" })
|
|
1512
|
+
}, [Ke(E(Gt), {
|
|
1511
1513
|
name: "fileCsv",
|
|
1512
1514
|
stroke: Vr.value.props.color
|
|
1513
1515
|
}, null, 8, ["stroke"])], 4)]),
|
|
1514
1516
|
key: "1"
|
|
1515
|
-
} : void 0]), 1040)) :
|
|
1516
|
-
R.value.style.chart.dialog.show ? (
|
|
1517
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1518
|
+
R.value.style.chart.dialog.show ? (x(), f(E(Zt), {
|
|
1517
1519
|
key: 9,
|
|
1518
1520
|
ref_key: "dialog",
|
|
1519
1521
|
ref: Ir,
|
|
1520
1522
|
onClose: t[4] ||= (e) => {
|
|
1521
|
-
|
|
1523
|
+
N.value = null, tn.value = !1, M.value = null, j.value = null, _r.value = null;
|
|
1522
1524
|
},
|
|
1523
1525
|
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1524
1526
|
color: R.value.style.chart.dialog.color,
|
|
1525
1527
|
headerBg: R.value.style.chart.dialog.header.backgroundColor,
|
|
1526
1528
|
headerColor: R.value.style.chart.dialog.header.color,
|
|
1527
1529
|
isFullscreen: $.value,
|
|
1528
|
-
fullscreenParent:
|
|
1530
|
+
fullscreenParent: P.value
|
|
1529
1531
|
}, {
|
|
1530
|
-
title:
|
|
1531
|
-
content:
|
|
1532
|
+
title: D(() => [Ge(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
|
|
1533
|
+
content: D(() => [N.value ? (x(), f(E(Xt), {
|
|
1532
1534
|
key: 0,
|
|
1533
1535
|
config: Fr.value,
|
|
1534
1536
|
dataset: Pr.value
|
|
1535
|
-
}, null, 8, ["config", "dataset"])) :
|
|
1537
|
+
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1536
1538
|
_: 1
|
|
1537
1539
|
}, 8, [
|
|
1538
1540
|
"backgroundColor",
|
|
@@ -1541,10 +1543,10 @@ var rt = /* @__PURE__ */ e({ default: () => Gt }), it = ["id"], at = ["id"], ot
|
|
|
1541
1543
|
"headerColor",
|
|
1542
1544
|
"isFullscreen",
|
|
1543
1545
|
"fullscreenParent"
|
|
1544
|
-
])) :
|
|
1545
|
-
|
|
1546
|
-
], 46,
|
|
1546
|
+
])) : p("", !0),
|
|
1547
|
+
E(zn) ? (x(), f(Ce, { key: 10 })) : p("", !0)
|
|
1548
|
+
], 46, rt));
|
|
1547
1549
|
}
|
|
1548
|
-
}, [["__scopeId", "data-v-
|
|
1550
|
+
}, [["__scopeId", "data-v-c21c6903"]]);
|
|
1549
1551
|
//#endregion
|
|
1550
|
-
export {
|
|
1552
|
+
export { nt as n, Wt as t };
|