vue-data-ui 3.22.7 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,137 +1,138 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, Dt as n, G as r, It as i, J as a, Kt as o, Mt as s, Rt as c, S as l, St as ee, T as te, U as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, b as ce, d as le, dt as ue, h as de, i as fe, kt as pe, p as me, t as he, u as ge } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as _e } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
4
|
import { t as ve } from "./useConfig-DYM3f6EI.js";
|
|
5
|
-
import { t as ye } from "./usePrinter-
|
|
5
|
+
import { t as ye } from "./usePrinter-CqqHmnBI.js";
|
|
6
6
|
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as Se } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as Ce } from "./useNestedProp-
|
|
8
|
+
import { t as Ce } from "./useNestedProp-DIuuzG1r.js";
|
|
9
9
|
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as Ee } from "./img-
|
|
12
|
-
import { n as De } from "./Title-
|
|
11
|
+
import { t as Ee } from "./img-DnP3eXuv.js";
|
|
12
|
+
import { n as De } from "./Title-CcNiYzEo.js";
|
|
13
13
|
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { c as ke } from "./canvas-lib-BOP_HS11.js";
|
|
15
15
|
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
16
|
-
import { t as je } from "./
|
|
17
|
-
import { t as Me } from "./
|
|
18
|
-
import { t as Ne } from "./
|
|
19
|
-
import { t as Pe } from "./
|
|
20
|
-
import { t as Fe } from "./
|
|
21
|
-
import { t as Ie } from "./
|
|
22
|
-
import { t as Le } from "./
|
|
23
|
-
import {
|
|
16
|
+
import { t as je } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Me } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
18
|
+
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Ie } from "./Legend-ROt6ugzW.js";
|
|
22
|
+
import { t as Le } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
23
|
+
import { t as Re } from "./Slicer-CW_XPIKL.js";
|
|
24
|
+
import { Fragment as u, Teleport as ze, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ue, nextTick as We, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ge, onMounted as Ke, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as T, toRefs as Ye, unref as E, watch as Xe, watchEffect as Ze, withCtx as D } from "vue";
|
|
24
25
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
25
|
-
var
|
|
26
|
+
var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
|
|
26
27
|
"xmlns",
|
|
27
28
|
"aria-describedby",
|
|
28
29
|
"viewBox"
|
|
29
|
-
],
|
|
30
|
+
], it = [
|
|
30
31
|
"x",
|
|
31
32
|
"y",
|
|
32
33
|
"width",
|
|
33
34
|
"height"
|
|
34
|
-
],
|
|
35
|
+
], at = { key: 1 }, ot = [
|
|
35
36
|
"x1",
|
|
36
37
|
"x2",
|
|
37
38
|
"y1",
|
|
38
39
|
"y2",
|
|
39
40
|
"stroke",
|
|
40
41
|
"stroke-width"
|
|
41
|
-
],
|
|
42
|
+
], st = [
|
|
42
43
|
"x1",
|
|
43
44
|
"x2",
|
|
44
45
|
"y1",
|
|
45
46
|
"y2",
|
|
46
47
|
"stroke",
|
|
47
48
|
"stroke-width"
|
|
48
|
-
],
|
|
49
|
+
], ct = { key: 0 }, lt = [
|
|
49
50
|
"x1",
|
|
50
51
|
"x2",
|
|
51
52
|
"y1",
|
|
52
53
|
"y2",
|
|
53
54
|
"stroke",
|
|
54
55
|
"stroke-width"
|
|
55
|
-
],
|
|
56
|
+
], ut = [
|
|
56
57
|
"font-size",
|
|
57
58
|
"fill",
|
|
58
59
|
"transform"
|
|
59
|
-
],
|
|
60
|
+
], dt = [
|
|
60
61
|
"x",
|
|
61
62
|
"y",
|
|
62
63
|
"font-size",
|
|
63
64
|
"fill"
|
|
64
|
-
],
|
|
65
|
+
], ft = [
|
|
65
66
|
"x1",
|
|
66
67
|
"x2",
|
|
67
68
|
"y1",
|
|
68
69
|
"y2",
|
|
69
70
|
"stroke",
|
|
70
71
|
"stroke-width"
|
|
71
|
-
],
|
|
72
|
+
], pt = [
|
|
72
73
|
"x",
|
|
73
74
|
"y",
|
|
74
75
|
"font-size",
|
|
75
76
|
"text-anchor",
|
|
76
77
|
"fill",
|
|
77
78
|
"font-weight"
|
|
78
|
-
],
|
|
79
|
+
], mt = { key: 0 }, ht = [
|
|
79
80
|
"text-anchor",
|
|
80
81
|
"font-size",
|
|
81
82
|
"fill",
|
|
82
83
|
"transform"
|
|
83
|
-
],
|
|
84
|
+
], gt = [
|
|
84
85
|
"text-anchor",
|
|
85
86
|
"font-size",
|
|
86
87
|
"fill",
|
|
87
88
|
"transform",
|
|
88
89
|
"innerHTML"
|
|
89
|
-
],
|
|
90
|
+
], _t = [
|
|
90
91
|
"x1",
|
|
91
92
|
"y1",
|
|
92
93
|
"x2",
|
|
93
94
|
"y2",
|
|
94
95
|
"stroke",
|
|
95
96
|
"stroke-width"
|
|
96
|
-
],
|
|
97
|
+
], vt = { key: 1 }, yt = [
|
|
97
98
|
"cx",
|
|
98
99
|
"cy",
|
|
99
100
|
"r",
|
|
100
101
|
"fill"
|
|
101
|
-
],
|
|
102
|
+
], bt = { key: 0 }, xt = { key: 0 }, St = ["d", "stroke"], Ct = [
|
|
102
103
|
"text-anchor",
|
|
103
104
|
"x",
|
|
104
105
|
"y",
|
|
105
106
|
"fill"
|
|
106
|
-
],
|
|
107
|
+
], wt = [
|
|
107
108
|
"cx",
|
|
108
109
|
"cy",
|
|
109
110
|
"r",
|
|
110
111
|
"fill"
|
|
111
|
-
],
|
|
112
|
+
], Tt = { key: 0 }, Et = [
|
|
112
113
|
"cx",
|
|
113
114
|
"cy",
|
|
114
115
|
"fill"
|
|
115
|
-
],
|
|
116
|
+
], Dt = { key: 1 }, Ot = [
|
|
116
117
|
"d",
|
|
117
118
|
"fill",
|
|
118
119
|
"stroke"
|
|
119
|
-
],
|
|
120
|
+
], kt = { key: 2 }, At = [
|
|
120
121
|
"d",
|
|
121
122
|
"fill",
|
|
122
123
|
"stroke"
|
|
123
|
-
],
|
|
124
|
+
], jt = [
|
|
124
125
|
"x",
|
|
125
126
|
"y",
|
|
126
127
|
"font-size",
|
|
127
128
|
"fill"
|
|
128
|
-
],
|
|
129
|
+
], Mt = [
|
|
129
130
|
"x",
|
|
130
131
|
"y",
|
|
131
132
|
"width",
|
|
132
133
|
"height",
|
|
133
134
|
"fill"
|
|
134
|
-
],
|
|
135
|
+
], Nt = [
|
|
135
136
|
"x",
|
|
136
137
|
"y",
|
|
137
138
|
"width",
|
|
@@ -139,7 +140,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
139
140
|
"onMouseenter",
|
|
140
141
|
"onMouseleave",
|
|
141
142
|
"onClick"
|
|
142
|
-
],
|
|
143
|
+
], Pt = {
|
|
143
144
|
key: 0,
|
|
144
145
|
style: {
|
|
145
146
|
position: "absolute",
|
|
@@ -149,10 +150,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
149
150
|
},
|
|
150
151
|
"data-dom-to-png-ignore": "",
|
|
151
152
|
"aria-hidden": "true"
|
|
152
|
-
},
|
|
153
|
+
}, Ft = {
|
|
153
154
|
key: 5,
|
|
154
155
|
class: "vue-data-ui-watermark"
|
|
155
|
-
},
|
|
156
|
+
}, It = ["id"], Lt = ["onClick"], Rt = { key: 0 }, zt = { key: 1 }, Bt = /*#__PURE__*/ Oe({
|
|
156
157
|
__name: "vue-ui-donut-evolution",
|
|
157
158
|
props: {
|
|
158
159
|
config: {
|
|
@@ -169,52 +170,52 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
169
170
|
}
|
|
170
171
|
},
|
|
171
172
|
emits: ["selectLegend", "copyAlt"],
|
|
172
|
-
setup(e, { expose: Oe, emit:
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
setup(e, { expose: Oe, emit: Qe }) {
|
|
174
|
+
let Bt = g(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Vt = g(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ht = g(() => import("./DataTable-BxpTMgfK.js")), Ut = g(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Wt = g(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Gt = g(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Kt = g(() => import("./vue-ui-donut-BoZdciGh.js").then((e) => e.n)), qt = g(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_donut_evolution: Jt } = ve(), { isThemeValid: Yt, warnInvalidTheme: Xt } = we(), O = e, k = S(r()), A = S([]), j = S(null), M = S(null), Zt = S(!1), N = S(null), P = S(null), Qt = S(null), $t = S(0), en = S(0), tn = S(0), nn = S(0), rn = S(0), an = S(null), on = S(null), sn = S(null), cn = S(null), ln = S(!1), un = S(null), dn = S(null), fn = S(!1), pn = S(!1), mn = S(null), hn = S(null), gn = S(null), _n = S(null), vn = S(null), yn = S(!1), bn = Je(null), xn = Je(null), Sn = S(null), F = S(null), Cn = S(!1), wn = Qe, Tn = d(() => !!O.dataset && O.dataset.length);
|
|
175
|
+
Ke(() => {
|
|
176
|
+
ln.value = !0, Dn();
|
|
176
177
|
});
|
|
177
|
-
let
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
178
|
+
let En = d(() => !!I.value.debug);
|
|
179
|
+
function Dn() {
|
|
180
|
+
if (pe(O.dataset) ? (t({
|
|
180
181
|
componentName: "VueUiDonutEvolution",
|
|
181
182
|
type: "dataset",
|
|
182
|
-
debug:
|
|
183
|
-
}),
|
|
184
|
-
|
|
183
|
+
debug: En.value
|
|
184
|
+
}), jn.value = !0) : O.dataset.length && O.dataset.forEach((e, n) => {
|
|
185
|
+
ue({
|
|
185
186
|
datasetObject: e,
|
|
186
187
|
requiredAttributes: ["name", "values"]
|
|
187
188
|
}).forEach((e) => {
|
|
188
|
-
|
|
189
|
+
t({
|
|
189
190
|
componentName: "VueUiDonutEvolution",
|
|
190
191
|
type: "datasetSerieAttribute",
|
|
191
192
|
property: e,
|
|
192
|
-
index:
|
|
193
|
-
debug:
|
|
194
|
-
}),
|
|
193
|
+
index: n,
|
|
194
|
+
debug: En.value
|
|
195
|
+
}), jn.value = !0;
|
|
195
196
|
});
|
|
196
|
-
}),
|
|
197
|
-
|
|
198
|
-
}, 10),
|
|
197
|
+
}), pe(O.dataset) || (jn.value = I.value.loading), setTimeout(() => {
|
|
198
|
+
yn.value = !0;
|
|
199
|
+
}, 10), Pn(), I.value.responsive) {
|
|
199
200
|
let e = ke(() => {
|
|
200
|
-
|
|
201
|
+
yn.value = !1;
|
|
201
202
|
let { width: e, height: t } = Ae({
|
|
202
203
|
chart: P.value,
|
|
203
|
-
title: I.value.style.chart.title.text ?
|
|
204
|
-
legend: I.value.style.chart.legend.show ?
|
|
205
|
-
slicer: I.value.style.chart.zoom.show &&
|
|
206
|
-
source:
|
|
204
|
+
title: I.value.style.chart.title.text ? mn.value : null,
|
|
205
|
+
legend: I.value.style.chart.legend.show ? hn.value : null,
|
|
206
|
+
slicer: I.value.style.chart.zoom.show && Mn.value > 1 ? vn.value : null,
|
|
207
|
+
source: gn.value
|
|
207
208
|
});
|
|
208
209
|
requestAnimationFrame(() => {
|
|
209
|
-
R.value.width = e, R.value.height = t - 12, clearTimeout(
|
|
210
|
-
|
|
210
|
+
R.value.width = e, R.value.height = t - 12, clearTimeout(Sn.value), Sn.value = setTimeout(() => {
|
|
211
|
+
yn.value = !0;
|
|
211
212
|
}, 10);
|
|
212
213
|
});
|
|
213
214
|
});
|
|
214
|
-
|
|
215
|
+
bn.value && (xn.value && bn.value.unobserve(xn.value), bn.value.disconnect()), bn.value = new ResizeObserver(e), xn.value = P.value.parentNode, bn.value.observe(xn.value);
|
|
215
216
|
}
|
|
216
217
|
}
|
|
217
|
-
let I = S(
|
|
218
|
+
let I = S(Bn()), L = d(() => I.value.userOptions.useCursorPointer), On = d(() => o({
|
|
218
219
|
defaultConfig: {
|
|
219
220
|
useCssAnimation: !1,
|
|
220
221
|
table: { show: !1 },
|
|
@@ -252,13 +253,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
252
253
|
} }
|
|
253
254
|
},
|
|
254
255
|
userConfig: I.value.skeletonConfig ?? {}
|
|
255
|
-
})), { loading:
|
|
256
|
-
...
|
|
256
|
+
})), { loading: kn, FINAL_DATASET: An, manualLoading: jn } = be({
|
|
257
|
+
...Ye(O),
|
|
257
258
|
FINAL_CONFIG: I,
|
|
258
|
-
prepareConfig:
|
|
259
|
+
prepareConfig: Bn,
|
|
259
260
|
callback: () => {
|
|
260
261
|
Promise.resolve().then(async () => {
|
|
261
|
-
await
|
|
262
|
+
await Pn();
|
|
262
263
|
});
|
|
263
264
|
},
|
|
264
265
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -299,45 +300,45 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
299
300
|
color: "#CACACA"
|
|
300
301
|
}
|
|
301
302
|
],
|
|
302
|
-
skeletonConfig:
|
|
303
|
+
skeletonConfig: o({
|
|
303
304
|
defaultConfig: I.value,
|
|
304
|
-
userConfig:
|
|
305
|
+
userConfig: On.value
|
|
305
306
|
})
|
|
306
307
|
}), R = S({
|
|
307
308
|
width: I.value.style.chart.layout.width,
|
|
308
309
|
height: I.value.style.chart.layout.height
|
|
309
|
-
}),
|
|
310
|
+
}), Mn = d(() => Math.max(...An.value.map((e) => e.values.length))), z = S({
|
|
310
311
|
start: 0,
|
|
311
|
-
end:
|
|
312
|
+
end: Mn.value
|
|
312
313
|
});
|
|
313
|
-
function
|
|
314
|
-
|
|
314
|
+
function Nn() {
|
|
315
|
+
Pn();
|
|
315
316
|
}
|
|
316
|
-
async function
|
|
317
|
-
await
|
|
318
|
-
let { startIndex: e, endIndex: t } = I.value.style.chart.zoom, n =
|
|
317
|
+
async function Pn() {
|
|
318
|
+
await We(), await We();
|
|
319
|
+
let { startIndex: e, endIndex: t } = I.value.style.chart.zoom, n = _n.value;
|
|
319
320
|
z.value = {
|
|
320
321
|
start: 0,
|
|
321
|
-
max:
|
|
322
|
-
}, (e != null || t != null) && n ? (e == null ? (z.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (z.value.end =
|
|
322
|
+
max: G.value
|
|
323
|
+
}, (e != null || t != null) && n ? (e == null ? (z.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (z.value.end = G.value, n.setEndValue(G.value)) : n.setEndValue(Fn(t + 1))) : (z.value = {
|
|
323
324
|
start: 0,
|
|
324
|
-
end:
|
|
325
|
-
},
|
|
325
|
+
end: G.value
|
|
326
|
+
}, en.value += 1);
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
-
let t =
|
|
328
|
+
function Fn(e) {
|
|
329
|
+
let t = G.value;
|
|
329
330
|
return e > t ? t : e < 0 || I.value.style.chart.zoom.startIndex !== null && e < I.value.style.chart.zoom.startIndex ? I.value.style.chart.zoom.startIndex === null ? 1 : I.value.style.chart.zoom.startIndex + 1 : e;
|
|
330
331
|
}
|
|
331
|
-
let { userOptionsVisible:
|
|
332
|
-
function
|
|
332
|
+
let { userOptionsVisible: In, setUserOptionsVisibility: Ln, keepUserOptionState: Rn } = Pe({ config: I.value }), { svgRef: zn } = Fe({ config: I.value.style.chart.title });
|
|
333
|
+
function Bn() {
|
|
333
334
|
let e = Ce({
|
|
334
335
|
userConfig: O.config,
|
|
335
|
-
defaultConfig:
|
|
336
|
+
defaultConfig: Jt
|
|
336
337
|
}), t = {}, n = e.theme;
|
|
337
|
-
if (n) if (!
|
|
338
|
+
if (n) if (!Yt.value(e)) Xt(e), t = e;
|
|
338
339
|
else {
|
|
339
340
|
let r = Ce({
|
|
340
|
-
userConfig:
|
|
341
|
+
userConfig: Le[n] || O.config,
|
|
341
342
|
defaultConfig: e
|
|
342
343
|
});
|
|
343
344
|
t = {
|
|
@@ -345,71 +346,71 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
345
346
|
userConfig: O.config,
|
|
346
347
|
defaultConfig: r
|
|
347
348
|
}),
|
|
348
|
-
customPalette: e.customPalette ? e.customPalette :
|
|
349
|
+
customPalette: e.customPalette ? e.customPalette : ie[n] || s
|
|
349
350
|
};
|
|
350
351
|
}
|
|
351
352
|
else t = e;
|
|
352
353
|
return t;
|
|
353
354
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}, { deep: !0 }),
|
|
357
|
-
Array.isArray(e) && e.length > 0 && (
|
|
355
|
+
Xe(() => O.config, (e) => {
|
|
356
|
+
kn.value || (I.value = Bn()), In.value = !I.value.userOptions.showOnChartHover, Dn(), tn.value += 1, nn.value += 1, rn.value += 1, B.value.showTable = I.value.table.show;
|
|
357
|
+
}, { deep: !0 }), Xe(() => O.dataset, (e) => {
|
|
358
|
+
Array.isArray(e) && e.length > 0 && (jn.value = !1), Nn();
|
|
358
359
|
}, { deep: !0 });
|
|
359
|
-
let { isPrinting:
|
|
360
|
+
let { isPrinting: Vn, isImaging: Hn, generatePdf: Un, generateImage: Wn } = ye({
|
|
360
361
|
elementId: k.value,
|
|
361
362
|
fileName: I.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
362
363
|
options: I.value.userOptions.print
|
|
363
|
-
}),
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
}), Gn = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), Kn = d(() => l(I.value.customPalette)), B = S({ showTable: I.value.table.show });
|
|
365
|
+
Xe(I, () => {
|
|
366
|
+
B.value = { showTable: I.value.table.show };
|
|
366
367
|
}, { immediate: !0 });
|
|
367
|
-
let
|
|
368
|
+
let V = d(() => ({
|
|
368
369
|
top: I.value.style.chart.layout.padding.top,
|
|
369
370
|
right: I.value.style.chart.layout.padding.right,
|
|
370
371
|
bottom: I.value.style.chart.layout.padding.bottom,
|
|
371
372
|
left: I.value.style.chart.layout.padding.left
|
|
372
|
-
})),
|
|
373
|
-
function
|
|
373
|
+
})), H = d(() => I.value.style.chart.layout.grid.yAxis.position === "right");
|
|
374
|
+
function qn() {
|
|
374
375
|
let e = 0;
|
|
375
|
-
|
|
376
|
+
an.value && (e = Array.from(an.value.querySelectorAll("text")).reduce((e, t) => {
|
|
376
377
|
let n = t.getComputedTextLength();
|
|
377
378
|
return n > e ? n : e;
|
|
378
379
|
}, 0));
|
|
379
|
-
let t =
|
|
380
|
+
let t = cn.value ? cn.value.getBoundingClientRect().width + I.value.style.chart.layout.grid.axis.yLabelOffsetX + I.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
380
381
|
return {
|
|
381
|
-
left:
|
|
382
|
-
right:
|
|
382
|
+
left: H.value ? 0 : n,
|
|
383
|
+
right: H.value ? n : 0,
|
|
383
384
|
scaleLabelsWidth: e,
|
|
384
385
|
yAxisLabelWidth: t,
|
|
385
386
|
crosshair: 5
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
|
-
let
|
|
389
|
-
|
|
389
|
+
let Jn = S(0), Yn = ke((e) => {
|
|
390
|
+
Jn.value = e;
|
|
390
391
|
}, 100);
|
|
391
|
-
|
|
392
|
-
let t =
|
|
392
|
+
Ze((e) => {
|
|
393
|
+
let t = on.value;
|
|
393
394
|
if (!t) return;
|
|
394
395
|
let n = new ResizeObserver((e) => {
|
|
395
|
-
|
|
396
|
+
Yn(e[0].contentRect.height);
|
|
396
397
|
});
|
|
397
398
|
n.observe(t), e(() => n.disconnect());
|
|
398
|
-
}),
|
|
399
|
-
|
|
399
|
+
}), Ge(() => {
|
|
400
|
+
Jn.value = 0;
|
|
400
401
|
});
|
|
401
|
-
let
|
|
402
|
+
let Xn = d(() => {
|
|
402
403
|
let e = 0;
|
|
403
|
-
|
|
404
|
+
sn.value && (e = sn.value.getBBox().height);
|
|
404
405
|
let t = 0;
|
|
405
|
-
return
|
|
406
|
-
}),
|
|
407
|
-
let e =
|
|
406
|
+
return on.value && (t = Jn.value), e + t + I.value.style.chart.layout.grid.axis.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
407
|
+
}), U = d(() => {
|
|
408
|
+
let e = qn(), t = I.value.style.chart.layout.dataLabels.fontSize * 3, n = R.value.width, r = R.value.height, i = V.value.left + e.left, a = n - V.value.right - e.right, o = n - i - V.value.right - e.right, s = r - V.value.top - V.value.bottom - t - Xn.value, c = V.value.top + t;
|
|
408
409
|
return {
|
|
409
410
|
top: c,
|
|
410
411
|
left: i,
|
|
411
412
|
right: a,
|
|
412
|
-
bottom: r -
|
|
413
|
+
bottom: r - V.value.bottom - Xn.value,
|
|
413
414
|
absoluteHeight: r,
|
|
414
415
|
absoluteWidth: n,
|
|
415
416
|
centerX: i + Math.max(10, o) / 2,
|
|
@@ -420,47 +421,47 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
420
421
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
421
422
|
crosshair: e.crosshair
|
|
422
423
|
};
|
|
423
|
-
}),
|
|
424
|
-
[null, void 0].includes(e.name) &&
|
|
424
|
+
}), W = d(() => (An.value.forEach((e, n) => {
|
|
425
|
+
[null, void 0].includes(e.name) && t({
|
|
425
426
|
componentName: "VueUiDonutEvolution",
|
|
426
427
|
type: "datasetSerieAttribute",
|
|
427
428
|
property: "name",
|
|
428
|
-
index:
|
|
429
|
-
debug:
|
|
430
|
-
}), [null, void 0].includes(e.values) &&
|
|
429
|
+
index: n,
|
|
430
|
+
debug: En.value
|
|
431
|
+
}), [null, void 0].includes(e.values) && t({
|
|
431
432
|
componentName: "VueUiDonutEvolution",
|
|
432
433
|
type: "datasetSerieAttribute",
|
|
433
434
|
property: "values",
|
|
434
|
-
index:
|
|
435
|
-
debug:
|
|
435
|
+
index: n,
|
|
436
|
+
debug: En.value
|
|
436
437
|
});
|
|
437
|
-
}),
|
|
438
|
+
}), An.value.map((e, t) => ({
|
|
438
439
|
...e,
|
|
439
|
-
values:
|
|
440
|
-
color:
|
|
440
|
+
values: i(e.values),
|
|
441
|
+
color: ce(e.color) || Kn.value[t] || s[t] || s[t % s.length],
|
|
441
442
|
length: (e.values || []).length,
|
|
442
|
-
uid:
|
|
443
|
-
})))),
|
|
443
|
+
uid: r()
|
|
444
|
+
})))), Zn = d(() => W.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
444
445
|
...e,
|
|
445
446
|
values: e.values.filter((e, t) => t >= z.value.start && t <= z.value.end)
|
|
446
|
-
}))),
|
|
447
|
-
|
|
448
|
-
let e = ++
|
|
447
|
+
}))), G = d(() => Math.max(...W.value.map((e) => e.length))), K = S([]), Qn = 0;
|
|
448
|
+
Ze(() => {
|
|
449
|
+
let e = ++Qn;
|
|
449
450
|
(async () => {
|
|
450
451
|
let t = await _e({
|
|
451
452
|
values: I.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
452
|
-
maxDatapoints:
|
|
453
|
+
maxDatapoints: G.value,
|
|
453
454
|
formatter: I.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
454
455
|
start: z.value.start,
|
|
455
456
|
end: z.value.end
|
|
456
457
|
});
|
|
457
|
-
e ===
|
|
458
|
+
e === Qn && (K.value = t);
|
|
458
459
|
})();
|
|
459
460
|
});
|
|
460
|
-
let
|
|
461
|
+
let q = d(() => U.value.width / (z.value.end - z.value.start)), $n = d(() => {
|
|
461
462
|
let e = [];
|
|
462
463
|
for (let t = 0; t < z.value.end - z.value.start; t += 1) {
|
|
463
|
-
let n =
|
|
464
|
+
let n = Zn.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 = U.value.left + q.value * t + q.value / 2;
|
|
464
465
|
e.push({
|
|
465
466
|
index: t,
|
|
466
467
|
percentages: a,
|
|
@@ -470,26 +471,26 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
470
471
|
});
|
|
471
472
|
}
|
|
472
473
|
return e;
|
|
473
|
-
}),
|
|
474
|
-
let e = Math.max(
|
|
474
|
+
}), er = d(() => {
|
|
475
|
+
let e = Math.max(...$n.value.map((e) => e.subtotal).filter((e) => ee(e))) ?? 1, t = Math.min(...$n.value.map((e) => e.subtotal).filter((e) => ee(e))) ?? 0, n = Math.max(I.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
|
|
475
476
|
return r = I.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, I.value.style.chart.layout.grid.yAxis.scaleMin), I.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
|
|
476
477
|
max: n,
|
|
477
478
|
min: r
|
|
478
479
|
};
|
|
479
|
-
}),
|
|
480
|
-
let e =
|
|
481
|
-
return
|
|
480
|
+
}), J = d(() => {
|
|
481
|
+
let e = $n.value.length === 1 ? er.value.max * 2 : er.value.max;
|
|
482
|
+
return de(er.value.min, e, I.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
482
483
|
});
|
|
483
|
-
function
|
|
484
|
-
return (e -
|
|
484
|
+
function tr(e) {
|
|
485
|
+
return (e - J.value.min) / (J.value.max - J.value.min);
|
|
485
486
|
}
|
|
486
|
-
let
|
|
487
|
-
y:
|
|
487
|
+
let nr = d(() => J.value.ticks.map((e) => ({
|
|
488
|
+
y: U.value.bottom - U.value.height * tr(e),
|
|
488
489
|
value: e
|
|
489
|
-
}))),
|
|
490
|
-
let e =
|
|
490
|
+
}))), Y = d(() => {
|
|
491
|
+
let e = $n.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
491
492
|
return e.length === 1 && t * 2, e.map((t, r) => {
|
|
492
|
-
let i = Math.min(
|
|
493
|
+
let i = Math.min(U.value.width / 24, q.value / 2 * .7), a = i > U.value.width / 16 ? U.value.width / 16 : i, o = j.value === t.index ? U.value.width / 16 : a, s = e.length > 4 ? i * 2 : i * 2 > q.value / 2 * .7 ? q.value / 2 * .7 : i * 2, c = U.value.bottom - U.value.height * tr(t.subtotal), l = Zn.value.map((e) => ({
|
|
493
494
|
color: e.color,
|
|
494
495
|
name: e.name,
|
|
495
496
|
value: e.values[r] ?? 0
|
|
@@ -502,12 +503,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
502
503
|
hoverRadius: s,
|
|
503
504
|
donut: n({ series: l }, t.x, c, a, a, 1.99999, 2, 1, 360, 105.25, a / 2),
|
|
504
505
|
donutHover: n({ series: l }, t.x, c, s, s, 1.99999, 2, 1, 360, 105.25, s / 2),
|
|
505
|
-
donutFocus: n({ series: l },
|
|
506
|
+
donutFocus: n({ series: l }, U.value.centerX, U.value.centerY, U.value.height / 3.6, U.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, U.value.height / 6)
|
|
506
507
|
};
|
|
507
508
|
});
|
|
508
509
|
});
|
|
509
|
-
function
|
|
510
|
-
return
|
|
510
|
+
function rr(e, t, n) {
|
|
511
|
+
return fe(I.value.style.chart.layout.dataLabels.formatter, e, a({
|
|
511
512
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
512
513
|
v: e,
|
|
513
514
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -517,29 +518,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
517
518
|
index: n
|
|
518
519
|
});
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
-
return isNaN(e.value / t
|
|
521
|
+
function ir(e, t) {
|
|
522
|
+
return isNaN(e.value / re(t, "value")) ? 0 : (e.value / re(t, "value") * 100).toFixed(0) + "%";
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
+
function ar(e) {
|
|
524
525
|
j.value = null, M.value = null, F.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
525
526
|
datapoint: e,
|
|
526
527
|
seriesIndex: e.seriesIndex + z.value.start
|
|
527
528
|
});
|
|
528
529
|
}
|
|
529
|
-
function
|
|
530
|
+
function or(e) {
|
|
530
531
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
531
532
|
datapoint: e,
|
|
532
533
|
seriesIndex: e.index + z.value.start
|
|
533
534
|
}), j.value = e.index, M.value = e, F.value = e.index;
|
|
534
535
|
}
|
|
535
|
-
let
|
|
536
|
-
function
|
|
536
|
+
let sr = S(null);
|
|
537
|
+
function cr(e, t) {
|
|
537
538
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
538
539
|
datapoint: e,
|
|
539
540
|
seriesIndex: e.index + z.value.start
|
|
540
|
-
}), !(!e.subtotal || !I.value.style.chart.dialog.show) && (M.value = null, j.value = null,
|
|
541
|
+
}), !(!e.subtotal || !I.value.style.chart.dialog.show) && (M.value = null, j.value = null, Zt.value = !0, N.value = e, Er(e), [null, void 0].includes(t) || (sr.value = t));
|
|
541
542
|
}
|
|
542
|
-
let
|
|
543
|
+
let lr = d(() => W.value.map((e, t) => ({
|
|
543
544
|
name: e.name,
|
|
544
545
|
value: e.values.slice(z.value.start, z.value.end).reduce((e, t) => e + t, 0),
|
|
545
546
|
shape: "circle",
|
|
@@ -548,9 +549,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
548
549
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
549
550
|
...e,
|
|
550
551
|
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
551
|
-
segregate: () =>
|
|
552
|
+
segregate: () => pr(e.uid),
|
|
552
553
|
isSegregated: A.value.includes(e.uid),
|
|
553
|
-
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ?
|
|
554
|
+
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? fe(I.value.style.chart.layout.dataLabels.formatter, e.value, a({
|
|
554
555
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
555
556
|
v: e.value,
|
|
556
557
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -558,12 +559,12 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
558
559
|
}), {
|
|
559
560
|
datapoint: e,
|
|
560
561
|
seriesIndex: t
|
|
561
|
-
}) : ""}${I.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
562
|
-
v: e.value /
|
|
562
|
+
}) : ""}${I.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ur.value) ? "-" : a({
|
|
563
|
+
v: e.value / ur.value * 100,
|
|
563
564
|
s: "%",
|
|
564
565
|
r: I.value.style.chart.legend.roundingPercentage
|
|
565
566
|
})}${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
566
|
-
}))),
|
|
567
|
+
}))), ur = d(() => Y.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), dr = d(() => ({
|
|
567
568
|
cy: "donut-div-legend",
|
|
568
569
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
569
570
|
color: I.value.style.chart.legend.color,
|
|
@@ -571,38 +572,38 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
571
572
|
paddingBottom: 12,
|
|
572
573
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
573
574
|
}));
|
|
574
|
-
function
|
|
575
|
-
A.value.length ? A.value = [] :
|
|
575
|
+
function fr() {
|
|
576
|
+
A.value.length ? A.value = [] : lr.value.forEach((e) => {
|
|
576
577
|
A.value.push(e.uid);
|
|
577
|
-
}),
|
|
578
|
+
}), wn("selectLegend", Zn.value);
|
|
578
579
|
}
|
|
579
|
-
function
|
|
580
|
-
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e),
|
|
580
|
+
function pr(e) {
|
|
581
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), wn("selectLegend", Zn.value);
|
|
581
582
|
else {
|
|
582
|
-
if (A.value.length ===
|
|
583
|
-
A.value.push(e),
|
|
583
|
+
if (A.value.length === W.value.length - 1) return;
|
|
584
|
+
A.value.push(e), wn("selectLegend", Zn.value);
|
|
584
585
|
}
|
|
585
|
-
N.value &&
|
|
586
|
+
N.value && cr(Y.value.find((e, t) => t === sr.value));
|
|
586
587
|
}
|
|
587
|
-
function
|
|
588
|
-
return
|
|
588
|
+
function mr(e) {
|
|
589
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
-
let t =
|
|
592
|
-
t !== null && A.value.includes(t.uid) &&
|
|
591
|
+
function hr(e) {
|
|
592
|
+
let t = mr(e);
|
|
593
|
+
t !== null && A.value.includes(t.uid) && pr(t.uid);
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
-
let t =
|
|
596
|
-
t !== null && (A.value.includes(t.uid) ||
|
|
595
|
+
function gr(e) {
|
|
596
|
+
let t = mr(e);
|
|
597
|
+
t !== null && (A.value.includes(t.uid) || pr(t.uid));
|
|
597
598
|
}
|
|
598
|
-
let
|
|
599
|
-
let e = [""].concat(
|
|
599
|
+
let X = d(() => {
|
|
600
|
+
let e = [""].concat(W.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
600
601
|
name: e.name,
|
|
601
602
|
color: e.color
|
|
602
603
|
})), ["Σ"]), t = [];
|
|
603
|
-
for (let e = 0; e <
|
|
604
|
-
let n =
|
|
605
|
-
t.push([
|
|
604
|
+
for (let e = 0; e < G.value; e += 1) {
|
|
605
|
+
let n = W.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
606
|
+
t.push([K.value[e] ? K.value[e].text : "-"].concat(W.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
|
|
606
607
|
value: t.values[e] ?? 0,
|
|
607
608
|
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
608
609
|
})), [`${I.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(I.value.table.td.roundingValue))}${I.value.style.chart.layout.dataLabels.suffix}`]));
|
|
@@ -610,7 +611,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
610
611
|
return {
|
|
611
612
|
head: e,
|
|
612
613
|
body: t,
|
|
613
|
-
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${
|
|
614
|
+
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${rr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
614
615
|
config: {
|
|
615
616
|
th: {
|
|
616
617
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -624,52 +625,52 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
624
625
|
},
|
|
625
626
|
breakpoint: I.value.table.responsiveBreakpoint
|
|
626
627
|
},
|
|
627
|
-
colNames: [I.value.table.columnNames.period].concat(
|
|
628
|
+
colNames: [I.value.table.columnNames.period].concat(W.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), I.value.table.columnNames.total)
|
|
628
629
|
};
|
|
629
630
|
});
|
|
630
|
-
function
|
|
631
|
-
return
|
|
631
|
+
function _r() {
|
|
632
|
+
return W.value;
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
-
|
|
634
|
+
function vr(e = null) {
|
|
635
|
+
We(() => {
|
|
635
636
|
let t = [
|
|
636
637
|
[I.value.style.chart.title.text],
|
|
637
638
|
[I.value.style.chart.title.subtitle.text],
|
|
638
639
|
[""]
|
|
639
|
-
], n = [...
|
|
640
|
-
e ? e(i) :
|
|
640
|
+
], n = [...X.value.head.map((e) => e.name ?? e)], r = [...X.value.body.map((e) => e.map((e) => e.value ?? e))], i = te(t.concat([n]).concat(r));
|
|
641
|
+
e ? e(i) : oe({
|
|
641
642
|
csvContent: i,
|
|
642
643
|
title: I.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
643
644
|
});
|
|
644
645
|
});
|
|
645
646
|
}
|
|
646
|
-
let
|
|
647
|
-
function
|
|
648
|
-
|
|
647
|
+
let Z = S(!1);
|
|
648
|
+
function yr(e) {
|
|
649
|
+
Z.value = e, $t.value += 1;
|
|
649
650
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
651
|
+
function br() {
|
|
652
|
+
B.value.showTable = !B.value.showTable;
|
|
652
653
|
}
|
|
653
|
-
let
|
|
654
|
-
function
|
|
655
|
-
|
|
654
|
+
let Q = S(!1);
|
|
655
|
+
function xr() {
|
|
656
|
+
Q.value = !Q.value;
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
+
function Sr(e) {
|
|
658
659
|
return e.proportion * 100 > I.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
659
660
|
}
|
|
660
|
-
let
|
|
661
|
-
function
|
|
662
|
-
|
|
661
|
+
let Cr = S([]), wr = S({}), Tr = S(null);
|
|
662
|
+
function Er(e) {
|
|
663
|
+
Cr.value = e.donut.map((e) => ({
|
|
663
664
|
name: e.name,
|
|
664
665
|
values: [e.value],
|
|
665
666
|
color: e.color
|
|
666
|
-
})),
|
|
667
|
+
})), wr.value = ae({
|
|
667
668
|
...I.value.style.chart.dialog.donutChart,
|
|
668
669
|
responsive: !0,
|
|
669
670
|
theme: I.value.theme
|
|
670
|
-
}),
|
|
671
|
+
}), Tr.value && Tr.value.open();
|
|
671
672
|
}
|
|
672
|
-
async function
|
|
673
|
+
async function Dr({ scale: e = 2 } = {}) {
|
|
673
674
|
if (!P.value) return;
|
|
674
675
|
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
|
|
675
676
|
domElement: P.value,
|
|
@@ -687,8 +688,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
687
688
|
};
|
|
688
689
|
}
|
|
689
690
|
Te({
|
|
690
|
-
timeLabelsEls:
|
|
691
|
-
timeLabels:
|
|
691
|
+
timeLabelsEls: on,
|
|
692
|
+
timeLabels: K,
|
|
692
693
|
slicer: z,
|
|
693
694
|
configRef: I,
|
|
694
695
|
rotationPath: [
|
|
@@ -715,17 +716,17 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
715
716
|
height: d(() => R.value.height),
|
|
716
717
|
rotation: I.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
717
718
|
});
|
|
718
|
-
let
|
|
719
|
-
let e = I.value.table.useDialog && !I.value.table.show, t =
|
|
719
|
+
let $ = d(() => {
|
|
720
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = B.value.showTable;
|
|
720
721
|
return {
|
|
721
|
-
component: e ?
|
|
722
|
+
component: e ? qt : Bt,
|
|
722
723
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
723
724
|
props: e ? {
|
|
724
725
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
725
726
|
color: I.value.table.th.color,
|
|
726
727
|
headerColor: I.value.table.th.color,
|
|
727
728
|
headerBg: I.value.table.th.backgroundColor,
|
|
728
|
-
isFullscreen:
|
|
729
|
+
isFullscreen: Z.value,
|
|
729
730
|
fullscreenParent: P.value,
|
|
730
731
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
731
732
|
isCursorPointer: L.value
|
|
@@ -746,70 +747,70 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
746
747
|
}
|
|
747
748
|
};
|
|
748
749
|
});
|
|
749
|
-
|
|
750
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
750
|
+
Xe(() => B.value.showTable, (e) => {
|
|
751
|
+
I.value.table.show || (e && I.value.table.useDialog && un.value ? un.value.open() : "close" in un.value && un.value.close());
|
|
751
752
|
});
|
|
752
|
-
function
|
|
753
|
-
|
|
753
|
+
function Or() {
|
|
754
|
+
B.value.showTable = !1, dn.value && dn.value.setTableIconState(!1);
|
|
754
755
|
}
|
|
755
|
-
let
|
|
756
|
+
let kr = d(() => lr.value.map((e) => ({
|
|
756
757
|
...e,
|
|
757
758
|
name: e.display
|
|
758
|
-
}))),
|
|
759
|
-
svg:
|
|
759
|
+
}))), Ar = d(() => I.value.style.chart.backgroundColor), jr = d(() => I.value.style.chart.legend), { exportSvg: Mr, getSvg: Nr } = Se({
|
|
760
|
+
svg: zn,
|
|
760
761
|
title: d(() => I.value.style.chart.title),
|
|
761
|
-
legend:
|
|
762
|
-
legendItems:
|
|
763
|
-
backgroundColor:
|
|
762
|
+
legend: jr,
|
|
763
|
+
legendItems: kr,
|
|
764
|
+
backgroundColor: Ar
|
|
764
765
|
});
|
|
765
|
-
async function
|
|
766
|
-
|
|
766
|
+
async function Pr({ isCb: e }) {
|
|
767
|
+
pn.value = !0, await We();
|
|
767
768
|
try {
|
|
768
769
|
if (e) {
|
|
769
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
770
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Nr();
|
|
770
771
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
771
772
|
blob: e,
|
|
772
773
|
url: t,
|
|
773
774
|
text: n,
|
|
774
775
|
dataUrl: r
|
|
775
776
|
}));
|
|
776
|
-
} else await Promise.resolve(
|
|
777
|
+
} else await Promise.resolve(Mr());
|
|
777
778
|
} finally {
|
|
778
|
-
|
|
779
|
+
pn.value = !1;
|
|
779
780
|
}
|
|
780
781
|
}
|
|
781
|
-
function
|
|
782
|
+
function Fr(e) {
|
|
782
783
|
if (e?.stage === "start") {
|
|
783
|
-
|
|
784
|
+
fn.value = !0;
|
|
784
785
|
return;
|
|
785
786
|
}
|
|
786
787
|
if (e?.stage === "end") {
|
|
787
|
-
|
|
788
|
+
fn.value = !1;
|
|
788
789
|
return;
|
|
789
790
|
}
|
|
790
|
-
|
|
791
|
+
Wn();
|
|
791
792
|
}
|
|
792
|
-
async function
|
|
793
|
-
if (
|
|
793
|
+
async function Ir() {
|
|
794
|
+
if (wn("copyAlt", {
|
|
794
795
|
config: I.value,
|
|
795
|
-
dataset:
|
|
796
|
+
dataset: Y.value
|
|
796
797
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
797
798
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
798
799
|
return;
|
|
799
800
|
}
|
|
800
801
|
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
801
802
|
config: I.value,
|
|
802
|
-
dataset:
|
|
803
|
+
dataset: Y.value
|
|
803
804
|
}));
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
-
F.value = null,
|
|
806
|
+
function Lr() {
|
|
807
|
+
F.value = null, Cn.value = !0;
|
|
807
808
|
}
|
|
808
|
-
function
|
|
809
|
-
F.value = null, j.value = null, M.value = null,
|
|
809
|
+
function Rr() {
|
|
810
|
+
F.value = null, j.value = null, M.value = null, Cn.value = !1;
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
-
if (!
|
|
812
|
+
function zr(e) {
|
|
813
|
+
if (!zn.value || Q.value || document.activeElement !== zn.value || !Y.value.length) return;
|
|
813
814
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
814
815
|
if (!t && !n && !r && !i) return;
|
|
815
816
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -818,51 +819,51 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
818
819
|
}
|
|
819
820
|
if (r) {
|
|
820
821
|
if (F.value === null) return;
|
|
821
|
-
let e =
|
|
822
|
+
let e = Y.value[F.value];
|
|
822
823
|
if (!e) return;
|
|
823
|
-
|
|
824
|
+
cr(e, F.value);
|
|
824
825
|
return;
|
|
825
826
|
}
|
|
826
|
-
let a = F.value, o = j.value, s = a !== null && a >= 0 && a <
|
|
827
|
-
s ? n ? (a += 1, a >=
|
|
828
|
-
let l =
|
|
829
|
-
l &&
|
|
827
|
+
let a = F.value, o = j.value, s = a !== null && a >= 0 && a < Y.value.length, c = o !== null && o >= 0 && o < Y.value.length;
|
|
828
|
+
s ? n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
|
|
829
|
+
let l = Y.value[a];
|
|
830
|
+
l && or(l);
|
|
830
831
|
}
|
|
831
|
-
let
|
|
832
|
-
headers:
|
|
833
|
-
rows:
|
|
832
|
+
let Br = d(() => ({
|
|
833
|
+
headers: X.value?.colNames ?? [],
|
|
834
|
+
rows: X.value?.bodyA11y ?? []
|
|
834
835
|
}));
|
|
835
836
|
return Oe({
|
|
836
|
-
getData:
|
|
837
|
-
getImage:
|
|
838
|
-
generatePdf:
|
|
839
|
-
generateCsv:
|
|
840
|
-
generateImage:
|
|
841
|
-
generateSvg:
|
|
842
|
-
hideSeries:
|
|
843
|
-
showSeries:
|
|
844
|
-
toggleTable:
|
|
845
|
-
toggleAnnotator:
|
|
846
|
-
toggleFullscreen:
|
|
847
|
-
copyAlt:
|
|
837
|
+
getData: _r,
|
|
838
|
+
getImage: Dr,
|
|
839
|
+
generatePdf: Un,
|
|
840
|
+
generateCsv: vr,
|
|
841
|
+
generateImage: Wn,
|
|
842
|
+
generateSvg: Pr,
|
|
843
|
+
hideSeries: gr,
|
|
844
|
+
showSeries: hr,
|
|
845
|
+
toggleTable: br,
|
|
846
|
+
toggleAnnotator: xr,
|
|
847
|
+
toggleFullscreen: yr,
|
|
848
|
+
copyAlt: Ir
|
|
848
849
|
}), (e, t) => (x(), m("div", {
|
|
849
850
|
ref_key: "donutEvolutionChart",
|
|
850
851
|
ref: P,
|
|
851
|
-
class: v(`vue-data-ui-component vue-ui-donut-evolution ${
|
|
852
|
+
class: v(`vue-data-ui-component vue-ui-donut-evolution ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
852
853
|
style: b(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
853
854
|
id: k.value,
|
|
854
|
-
onMouseenter: t[5] ||= () => E(
|
|
855
|
-
onMouseleave: t[6] ||= () => E(
|
|
855
|
+
onMouseenter: t[5] ||= () => E(Ln)(!0),
|
|
856
|
+
onMouseleave: t[6] ||= () => E(Ln)(!1)
|
|
856
857
|
}, [
|
|
857
858
|
h("div", {
|
|
858
859
|
id: `chart-instructions-${k.value}`,
|
|
859
860
|
class: "sr-only"
|
|
860
|
-
}, [h("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
861
|
-
|
|
861
|
+
}, [h("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8, et),
|
|
862
|
+
Br.value?.rows?.length ? (x(), f(Ne, {
|
|
862
863
|
key: 0,
|
|
863
864
|
uid: k.value,
|
|
864
|
-
head:
|
|
865
|
-
body:
|
|
865
|
+
head: Br.value.headers,
|
|
866
|
+
body: Br.value.rows,
|
|
866
867
|
notice: I.value.a11y.translations.tableAvailable,
|
|
867
868
|
caption: I.value.a11y.translations.tableCaption
|
|
868
869
|
}, null, 8, [
|
|
@@ -872,14 +873,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
872
873
|
"notice",
|
|
873
874
|
"caption"
|
|
874
875
|
])) : p("", !0),
|
|
875
|
-
I.value.userOptions.buttons.annotator ? (x(), f(E(
|
|
876
|
+
I.value.userOptions.buttons.annotator ? (x(), f(E(Wt), {
|
|
876
877
|
key: 1,
|
|
877
|
-
svgRef: E(
|
|
878
|
+
svgRef: E(zn),
|
|
878
879
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
879
880
|
color: I.value.style.chart.color,
|
|
880
|
-
active:
|
|
881
|
+
active: Q.value,
|
|
881
882
|
isCursorPointer: L.value,
|
|
882
|
-
onClose:
|
|
883
|
+
onClose: xr
|
|
883
884
|
}, {
|
|
884
885
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
885
886
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -895,21 +896,21 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
895
896
|
"active",
|
|
896
897
|
"isCursorPointer"
|
|
897
898
|
])) : p("", !0),
|
|
898
|
-
|
|
899
|
+
Gn.value ? (x(), m("div", {
|
|
899
900
|
key: 2,
|
|
900
901
|
ref_key: "noTitle",
|
|
901
|
-
ref:
|
|
902
|
+
ref: Qt,
|
|
902
903
|
class: "vue-data-ui-no-title-space",
|
|
903
904
|
style: "height:36px; width: 100%;background:transparent"
|
|
904
905
|
}, null, 512)) : p("", !0),
|
|
905
906
|
I.value.style.chart.title.text ? (x(), m("div", {
|
|
906
907
|
key: 3,
|
|
907
908
|
ref_key: "chartTitle",
|
|
908
|
-
ref:
|
|
909
|
+
ref: mn,
|
|
909
910
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
910
|
-
onMouseleave:
|
|
911
|
+
onMouseleave: ar
|
|
911
912
|
}, [(x(), f(De, {
|
|
912
|
-
key: `title_${
|
|
913
|
+
key: `title_${tn.value}`,
|
|
913
914
|
config: {
|
|
914
915
|
title: {
|
|
915
916
|
cy: "donut-evolution-div-title",
|
|
@@ -921,15 +922,15 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
921
922
|
}
|
|
922
923
|
}
|
|
923
924
|
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
924
|
-
h("div", { id: `legend-top-${k.value}` }, null, 8,
|
|
925
|
-
I.value.userOptions.show &&
|
|
925
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, tt),
|
|
926
|
+
I.value.userOptions.show && Tn.value && (E(Rn) || E(In)) ? (x(), f(E(Gt), {
|
|
926
927
|
ref_key: "userOptionsRef",
|
|
927
|
-
ref:
|
|
928
|
-
key: `user_options_${
|
|
928
|
+
ref: dn,
|
|
929
|
+
key: `user_options_${$t.value}`,
|
|
929
930
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
930
931
|
color: I.value.style.chart.color,
|
|
931
|
-
isPrinting: E(
|
|
932
|
-
isImaging: E(
|
|
932
|
+
isPrinting: E(Vn),
|
|
933
|
+
isImaging: E(Hn),
|
|
933
934
|
uid: k.value,
|
|
934
935
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
935
936
|
hasImg: I.value.userOptions.buttons.img,
|
|
@@ -938,26 +939,26 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
938
939
|
hasTable: I.value.userOptions.buttons.table,
|
|
939
940
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
940
941
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
941
|
-
isFullscreen:
|
|
942
|
+
isFullscreen: Z.value,
|
|
942
943
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
943
944
|
chartElement: P.value,
|
|
944
945
|
position: I.value.userOptions.position,
|
|
945
946
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
946
|
-
isAnnotation:
|
|
947
|
+
isAnnotation: Q.value,
|
|
947
948
|
callbacks: I.value.userOptions.callbacks,
|
|
948
949
|
printScale: I.value.userOptions.print.scale,
|
|
949
950
|
tableDialog: I.value.table.useDialog,
|
|
950
951
|
isCursorPointer: L.value,
|
|
951
|
-
onToggleFullscreen:
|
|
952
|
-
onGeneratePdf: E(
|
|
953
|
-
onGenerateCsv:
|
|
954
|
-
onGenerateImage:
|
|
955
|
-
onGenerateSvg:
|
|
956
|
-
onToggleTable:
|
|
957
|
-
onToggleAnnotator:
|
|
958
|
-
onCopyAlt:
|
|
959
|
-
style: b({ visibility: E(
|
|
960
|
-
},
|
|
952
|
+
onToggleFullscreen: yr,
|
|
953
|
+
onGeneratePdf: E(Un),
|
|
954
|
+
onGenerateCsv: vr,
|
|
955
|
+
onGenerateImage: Fr,
|
|
956
|
+
onGenerateSvg: Pr,
|
|
957
|
+
onToggleTable: br,
|
|
958
|
+
onToggleAnnotator: xr,
|
|
959
|
+
onCopyAlt: Ir,
|
|
960
|
+
style: b({ visibility: E(Rn) ? E(In) ? "visible" : "hidden" : "visible" })
|
|
961
|
+
}, Be({ _: 2 }, [
|
|
961
962
|
e.$slots.menuIcon ? {
|
|
962
963
|
name: "menuIcon",
|
|
963
964
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
@@ -1048,130 +1049,141 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1048
1049
|
"onGeneratePdf",
|
|
1049
1050
|
"style"
|
|
1050
1051
|
])) : p("", !0),
|
|
1051
|
-
h("div",
|
|
1052
|
+
h("div", nt, [(x(), m("svg", {
|
|
1052
1053
|
ref_key: "svgRef",
|
|
1053
|
-
ref:
|
|
1054
|
-
xmlns: E(
|
|
1054
|
+
ref: zn,
|
|
1055
|
+
xmlns: E(he),
|
|
1055
1056
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1056
1057
|
class: v({
|
|
1057
|
-
"vue-data-ui-fullscreen--on":
|
|
1058
|
-
"vue-data-ui-fulscreen--off":
|
|
1058
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
1059
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
1059
1060
|
}),
|
|
1060
|
-
viewBox: `0 0 ${
|
|
1061
|
+
viewBox: `0 0 ${U.value.absoluteWidth} ${U.value.absoluteHeight}`,
|
|
1061
1062
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};`),
|
|
1062
1063
|
tabindex: "0",
|
|
1063
|
-
onFocus:
|
|
1064
|
-
onBlur:
|
|
1065
|
-
onKeydown:
|
|
1064
|
+
onFocus: Lr,
|
|
1065
|
+
onBlur: Rr,
|
|
1066
|
+
onKeydown: zr
|
|
1066
1067
|
}, [
|
|
1067
|
-
|
|
1068
|
+
He(E(Ut)),
|
|
1068
1069
|
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1069
1070
|
key: 0,
|
|
1070
|
-
x:
|
|
1071
|
-
y:
|
|
1072
|
-
width:
|
|
1073
|
-
height:
|
|
1071
|
+
x: U.value.left,
|
|
1072
|
+
y: U.value.top,
|
|
1073
|
+
width: U.value.width,
|
|
1074
|
+
height: U.value.height,
|
|
1074
1075
|
style: { pointerEvents: "none" }
|
|
1075
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1076
|
-
h("defs", null, [
|
|
1076
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : p("", !0),
|
|
1077
|
+
h("defs", null, [He(je, {
|
|
1078
|
+
t: "linear",
|
|
1077
1079
|
id: `hover_${k.value}`,
|
|
1078
1080
|
x1: "0%",
|
|
1079
1081
|
y1: "0%",
|
|
1080
1082
|
x2: "0%",
|
|
1081
|
-
y2: "100%"
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1083
|
+
y2: "100%",
|
|
1084
|
+
stops: [[
|
|
1085
|
+
"0%",
|
|
1086
|
+
E(c)(I.value.style.chart.backgroundColor, I.value.style.chart.layout.highlighter.opacity),
|
|
1087
|
+
1
|
|
1088
|
+
], [
|
|
1089
|
+
"100%",
|
|
1090
|
+
E(c)(I.value.style.chart.layout.highlighter.color, I.value.style.chart.layout.highlighter.opacity),
|
|
1091
|
+
1
|
|
1092
|
+
]]
|
|
1093
|
+
}, null, 8, ["id", "stops"]), He(je, {
|
|
1094
|
+
t: "radial",
|
|
1095
|
+
id: `focus_${k.value}`,
|
|
1096
|
+
stops: [
|
|
1097
|
+
[
|
|
1098
|
+
"0%",
|
|
1099
|
+
E(c)(E(ce)(I.value.style.chart.backgroundColor), 0),
|
|
1100
|
+
1
|
|
1101
|
+
],
|
|
1102
|
+
[
|
|
1103
|
+
"77%",
|
|
1104
|
+
E(c)("#FFFFFF", 30),
|
|
1105
|
+
1
|
|
1106
|
+
],
|
|
1107
|
+
[
|
|
1108
|
+
"100%",
|
|
1109
|
+
E(c)(E(ce)(I.value.style.chart.backgroundColor), 0),
|
|
1110
|
+
1
|
|
1111
|
+
]
|
|
1112
|
+
]
|
|
1113
|
+
}, null, 8, ["id", "stops"])]),
|
|
1114
|
+
I.value.style.chart.layout.grid.show ? (x(), m("g", at, [
|
|
1103
1115
|
h("line", {
|
|
1104
|
-
x1:
|
|
1105
|
-
x2:
|
|
1106
|
-
y1:
|
|
1107
|
-
y2:
|
|
1116
|
+
x1: H.value ? U.value.right : U.value.left,
|
|
1117
|
+
x2: H.value ? U.value.right : U.value.left,
|
|
1118
|
+
y1: U.value.top,
|
|
1119
|
+
y2: U.value.top + U.value.height,
|
|
1108
1120
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1109
1121
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1110
1122
|
"stroke-linecap": "round"
|
|
1111
|
-
}, null, 8,
|
|
1123
|
+
}, null, 8, ot),
|
|
1112
1124
|
h("line", {
|
|
1113
|
-
x1:
|
|
1114
|
-
x2:
|
|
1115
|
-
y1:
|
|
1116
|
-
y2:
|
|
1125
|
+
x1: U.value.left,
|
|
1126
|
+
x2: U.value.right,
|
|
1127
|
+
y1: U.value.bottom,
|
|
1128
|
+
y2: U.value.bottom,
|
|
1117
1129
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1118
1130
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1119
1131
|
"stroke-linecap": "round"
|
|
1120
|
-
}, null, 8,
|
|
1121
|
-
I.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g",
|
|
1122
|
-
x1:
|
|
1123
|
-
x2:
|
|
1124
|
-
y1:
|
|
1125
|
-
y2:
|
|
1132
|
+
}, null, 8, st),
|
|
1133
|
+
I.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", ct, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("line", {
|
|
1134
|
+
x1: U.value.left + (t + 1) * q.value,
|
|
1135
|
+
x2: U.value.left + (t + 1) * q.value,
|
|
1136
|
+
y1: U.value.top,
|
|
1137
|
+
y2: U.value.bottom,
|
|
1126
1138
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1127
1139
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1128
1140
|
"stroke-linecap": "round"
|
|
1129
|
-
}, null, 8,
|
|
1141
|
+
}, null, 8, lt))), 256))])) : p("", !0)
|
|
1130
1142
|
])) : p("", !0),
|
|
1131
1143
|
h("g", null, [I.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1132
1144
|
key: 0,
|
|
1133
1145
|
ref_key: "yAxisLabel",
|
|
1134
|
-
ref:
|
|
1146
|
+
ref: cn,
|
|
1135
1147
|
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1136
1148
|
fill: I.value.style.chart.layout.grid.axis.color,
|
|
1137
|
-
transform: `translate(${
|
|
1149
|
+
transform: `translate(${H.value ? U.value.absoluteWidth - I.value.style.chart.layout.grid.axis.fontSize / 2 - I.value.style.chart.layout.grid.axis.yLabelOffsetX : I.value.style.chart.layout.grid.axis.fontSize}, ${U.value.top + U.value.height / 2}) rotate(-90)`,
|
|
1138
1150
|
"text-anchor": "middle",
|
|
1139
1151
|
style: { transition: "none" }
|
|
1140
|
-
}, T(I.value.style.chart.layout.grid.axis.yLabel), 9,
|
|
1152
|
+
}, T(I.value.style.chart.layout.grid.axis.yLabel), 9, ut)) : p("", !0), I.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1141
1153
|
key: 1,
|
|
1142
1154
|
ref_key: "xAxisLabel",
|
|
1143
|
-
ref:
|
|
1155
|
+
ref: sn,
|
|
1144
1156
|
"text-anchor": "middle",
|
|
1145
|
-
x:
|
|
1146
|
-
y:
|
|
1157
|
+
x: U.value.absoluteWidth / 2,
|
|
1158
|
+
y: U.value.absoluteHeight - 3,
|
|
1147
1159
|
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1148
1160
|
fill: I.value.style.chart.layout.grid.axis.color
|
|
1149
|
-
}, T(I.value.style.chart.layout.grid.axis.xLabel), 9,
|
|
1161
|
+
}, T(I.value.style.chart.layout.grid.axis.xLabel), 9, dt)) : p("", !0)]),
|
|
1150
1162
|
I.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1151
1163
|
key: 2,
|
|
1152
1164
|
ref_key: "scaleLabels",
|
|
1153
|
-
ref:
|
|
1165
|
+
ref: an,
|
|
1154
1166
|
class: v({
|
|
1155
1167
|
"donut-opacity": !0,
|
|
1156
1168
|
"donut-behind": j.value !== null
|
|
1157
1169
|
})
|
|
1158
|
-
}, [(x(!0), m(u, null, C(
|
|
1170
|
+
}, [(x(!0), m(u, null, C(nr.value, (e, t) => (x(), m("g", null, [e.value >= J.value.min && e.value <= J.value.max ? (x(), m("line", {
|
|
1159
1171
|
key: 0,
|
|
1160
|
-
x1:
|
|
1161
|
-
x2:
|
|
1172
|
+
x1: H.value ? U.value.right : U.value.left,
|
|
1173
|
+
x2: H.value ? U.value.right + 5 : U.value.left - 5,
|
|
1162
1174
|
y1: e.y,
|
|
1163
1175
|
y2: e.y,
|
|
1164
1176
|
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1165
1177
|
"stroke-width": I.value.style.chart.layout.grid.strokeWidth
|
|
1166
|
-
}, null, 8,
|
|
1178
|
+
}, null, 8, ft)) : p("", !0), e.value >= J.value.min && e.value <= J.value.max ? (x(), m("text", {
|
|
1167
1179
|
key: 1,
|
|
1168
|
-
x:
|
|
1180
|
+
x: H.value ? U.value.right - I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : U.value.left + I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
1169
1181
|
y: e.y + I.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
1170
1182
|
"font-size": I.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1171
|
-
"text-anchor":
|
|
1183
|
+
"text-anchor": H.value ? "start" : "end",
|
|
1172
1184
|
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1173
1185
|
"font-weight": I.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1174
|
-
}, T(E(
|
|
1186
|
+
}, T(E(se)(e.value) ? E(fe)(I.value.style.chart.layout.dataLabels.formatter, e.value, E(a)({
|
|
1175
1187
|
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
1176
1188
|
v: e.value,
|
|
1177
1189
|
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
@@ -1179,35 +1191,35 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1179
1191
|
}), {
|
|
1180
1192
|
datapoint: e,
|
|
1181
1193
|
seriesIndex: t
|
|
1182
|
-
}) : ""), 9,
|
|
1194
|
+
}) : ""), 9, pt)) : p("", !0)]))), 256))], 2)) : p("", !0),
|
|
1183
1195
|
I.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1184
1196
|
key: 3,
|
|
1185
1197
|
ref_key: "timeLabelsEls",
|
|
1186
|
-
ref:
|
|
1198
|
+
ref: on,
|
|
1187
1199
|
class: v({ "donut-opacity": !0 })
|
|
1188
|
-
}, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("g", null, [(I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t ===
|
|
1200
|
+
}, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("g", null, [(I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === G.value - 1) || !I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && K.value[t] && K.value[t].text ? (x(), m("g", mt, [String(K.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1189
1201
|
key: 1,
|
|
1190
1202
|
class: "vue-data-ui-time-label",
|
|
1191
1203
|
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1192
1204
|
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1193
1205
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1194
|
-
transform: `translate(${
|
|
1195
|
-
innerHTML: E(
|
|
1196
|
-
content: String(
|
|
1206
|
+
transform: `translate(${U.value.left + q.value * t + q.value / 2}, ${U.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1207
|
+
innerHTML: E(ne)({
|
|
1208
|
+
content: String(K.value[t].text),
|
|
1197
1209
|
fontSize: I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1198
1210
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1199
1211
|
x: 0,
|
|
1200
1212
|
y: 0
|
|
1201
1213
|
})
|
|
1202
|
-
}, null, 8,
|
|
1214
|
+
}, null, 8, gt)) : (x(), m("text", {
|
|
1203
1215
|
key: 0,
|
|
1204
1216
|
class: "vue-data-ui-time-label",
|
|
1205
1217
|
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1206
1218
|
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1207
1219
|
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1208
|
-
transform: `translate(${
|
|
1209
|
-
}, T(
|
|
1210
|
-
(x(!0), m(u, null, C(
|
|
1220
|
+
transform: `translate(${U.value.left + q.value * t + q.value / 2}, ${U.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1221
|
+
}, T(K.value[t].text || ""), 9, ht))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1222
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [I.value.style.chart.layout.line.show && t < Y.value.length - 1 && ![e.subtotal, Y.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1211
1223
|
key: 0,
|
|
1212
1224
|
class: v({
|
|
1213
1225
|
"donut-opacity": !0,
|
|
@@ -1215,26 +1227,26 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1215
1227
|
}),
|
|
1216
1228
|
x1: e.x,
|
|
1217
1229
|
y1: e.y,
|
|
1218
|
-
x2:
|
|
1219
|
-
y2:
|
|
1230
|
+
x2: Y.value[t + 1].x,
|
|
1231
|
+
y2: Y.value[t + 1].y,
|
|
1220
1232
|
stroke: I.value.style.chart.layout.line.stroke,
|
|
1221
1233
|
"stroke-width": I.value.style.chart.layout.line.strokeWidth,
|
|
1222
1234
|
"stroke-linecap": "round",
|
|
1223
1235
|
"stroke-linejoin": "round"
|
|
1224
|
-
}, null, 10,
|
|
1236
|
+
}, null, 10, _t)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", vt, [e.subtotal ? (x(), m("circle", {
|
|
1225
1237
|
key: 0,
|
|
1226
1238
|
cx: e.x,
|
|
1227
1239
|
cy: e.y,
|
|
1228
1240
|
r: e.activeRadius,
|
|
1229
1241
|
fill: I.value.style.chart.backgroundColor
|
|
1230
|
-
}, null, 8,
|
|
1231
|
-
(x(!0), m(u, null, C(
|
|
1242
|
+
}, null, 8, yt)) : p("", !0)]))]))), 256)),
|
|
1243
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", { class: v({
|
|
1232
1244
|
"donut-opacity": !0,
|
|
1233
1245
|
"donut-behind": t !== j.value && j.value !== null
|
|
1234
|
-
}) }, [e.subtotal ? (x(), m("g",
|
|
1235
|
-
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [
|
|
1246
|
+
}) }, [e.subtotal ? (x(), m("g", bt, [j.value !== null && j.value === t ? (x(), m("g", xt, [
|
|
1247
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Sr(t) ? (x(), m("path", {
|
|
1236
1248
|
key: 0,
|
|
1237
|
-
d: E(
|
|
1249
|
+
d: E(me)(t, {
|
|
1238
1250
|
x: t.center.endX,
|
|
1239
1251
|
y: t.center.endY
|
|
1240
1252
|
}, 12, 12, {
|
|
@@ -1246,47 +1258,47 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1246
1258
|
"stroke-linecap": "round",
|
|
1247
1259
|
"stroke-linejoin": "round",
|
|
1248
1260
|
fill: "none"
|
|
1249
|
-
}, null, 8,
|
|
1250
|
-
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [
|
|
1261
|
+
}, null, 8, St)) : p("", !0)]))), 256)),
|
|
1262
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Sr(t) ? (x(), m("text", {
|
|
1251
1263
|
key: 0,
|
|
1252
1264
|
"data-cy-hover-label": "",
|
|
1253
|
-
"text-anchor": E(
|
|
1254
|
-
x: E(
|
|
1255
|
-
y: E(
|
|
1265
|
+
"text-anchor": E(ge)(t, !0, 0).anchor,
|
|
1266
|
+
x: E(ge)(t, !0, 9).x,
|
|
1267
|
+
y: E(le)(t, 14, 10),
|
|
1256
1268
|
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1257
1269
|
"font-size": 8,
|
|
1258
1270
|
"font-weight": "bold"
|
|
1259
|
-
}, T(t.name) + ": " + T(
|
|
1271
|
+
}, T(t.name) + ": " + T(ir(t, e.donut)) + " (" + T(t.value === null ? "-" : rr(t.value, t, n)) + ") ", 9, Ct)) : p("", !0)]))), 256)),
|
|
1260
1272
|
h("g", null, [h("circle", {
|
|
1261
1273
|
cx: e.x,
|
|
1262
1274
|
cy: e.y,
|
|
1263
1275
|
r: e.hoverRadius,
|
|
1264
1276
|
fill: I.value.style.chart.backgroundColor
|
|
1265
|
-
}, null, 8,
|
|
1277
|
+
}, null, 8, wt)])
|
|
1266
1278
|
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1267
|
-
(x(!0), m(u, null, C(
|
|
1279
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", { class: v({
|
|
1268
1280
|
"donut-opacity": !0,
|
|
1269
1281
|
"donut-behind": t !== j.value && j.value !== null
|
|
1270
|
-
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g",
|
|
1282
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Tt, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1271
1283
|
key: 0,
|
|
1272
1284
|
cx: e.x,
|
|
1273
1285
|
cy: e.y,
|
|
1274
1286
|
r: 3,
|
|
1275
1287
|
fill: I.value.style.chart.color
|
|
1276
|
-
}, null, 8,
|
|
1288
|
+
}, null, 8, Et)) : j.value !== null && j.value === t ? (x(), m("g", Dt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1277
1289
|
d: e.arcSlice,
|
|
1278
1290
|
fill: `${e.color}`,
|
|
1279
1291
|
"stroke-width": 1,
|
|
1280
1292
|
stroke: I.value.style.chart.backgroundColor
|
|
1281
|
-
}, null, 8,
|
|
1293
|
+
}, null, 8, Ot))), 256))])) : (x(), m("g", kt, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1282
1294
|
d: e.arcSlice,
|
|
1283
1295
|
fill: `${e.color}`,
|
|
1284
1296
|
"stroke-width": .5,
|
|
1285
1297
|
stroke: I.value.style.chart.backgroundColor
|
|
1286
|
-
}, null, 8,
|
|
1287
|
-
(x(!0), m(u, null, C(
|
|
1298
|
+
}, null, 8, At))), 256))]))]))], 2))), 256)),
|
|
1299
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", { class: v({
|
|
1288
1300
|
"donut-opacity": !0,
|
|
1289
|
-
"donut-behind": t !== j.value && j.value !== null ||
|
|
1301
|
+
"donut-behind": t !== j.value && j.value !== null || Zt.value && t !== N.value.index
|
|
1290
1302
|
}) }, [e.subtotal !== null && I.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1291
1303
|
key: 0,
|
|
1292
1304
|
"text-anchor": "middle",
|
|
@@ -1295,57 +1307,57 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1295
1307
|
"font-size": I.value.style.chart.layout.dataLabels.fontSize,
|
|
1296
1308
|
"font-weight": "bold",
|
|
1297
1309
|
fill: I.value.style.chart.layout.dataLabels.color
|
|
1298
|
-
}, T(
|
|
1299
|
-
(x(!0), m(u, null, C(
|
|
1300
|
-
x:
|
|
1301
|
-
y:
|
|
1302
|
-
width:
|
|
1303
|
-
height:
|
|
1304
|
-
fill: [j.value,
|
|
1305
|
-
class: v({ "donut-hover": L.value && e.subtotal && [j.value,
|
|
1310
|
+
}, T(rr(e.subtotal, e, t)), 9, jt)) : p("", !0)], 2))), 256)),
|
|
1311
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("rect", {
|
|
1312
|
+
x: U.value.left + t * q.value,
|
|
1313
|
+
y: U.value.top,
|
|
1314
|
+
width: q.value,
|
|
1315
|
+
height: U.value.height,
|
|
1316
|
+
fill: [j.value, sr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1317
|
+
class: v({ "donut-hover": L.value && e.subtotal && [j.value, sr.value].includes(e.index) }),
|
|
1306
1318
|
style: { pointerEvents: "none" }
|
|
1307
|
-
}, null, 10,
|
|
1308
|
-
(x(!0), m(u, null, C(
|
|
1319
|
+
}, null, 10, Mt))), 256)),
|
|
1320
|
+
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("rect", {
|
|
1309
1321
|
"data-cy-trap": "",
|
|
1310
|
-
x:
|
|
1311
|
-
y:
|
|
1312
|
-
width:
|
|
1313
|
-
height:
|
|
1322
|
+
x: U.value.left + t * q.value,
|
|
1323
|
+
y: U.value.top,
|
|
1324
|
+
width: q.value,
|
|
1325
|
+
height: U.value.height,
|
|
1314
1326
|
fill: "transparent",
|
|
1315
|
-
onMouseenter: (t) =>
|
|
1316
|
-
onMouseleave: (t) =>
|
|
1317
|
-
onClick: (n) =>
|
|
1327
|
+
onMouseenter: (t) => or(e),
|
|
1328
|
+
onMouseleave: (t) => ar(e),
|
|
1329
|
+
onClick: (n) => cr(e, t),
|
|
1318
1330
|
class: v({ "donut-hover": L.value && j.value === e.index && e.subtotal })
|
|
1319
|
-
}, null, 42,
|
|
1331
|
+
}, null, 42, Nt))), 256)),
|
|
1320
1332
|
w(e.$slots, "svg", { svg: {
|
|
1321
|
-
...
|
|
1322
|
-
isPrintingImg: E(
|
|
1323
|
-
isPrintingSvg:
|
|
1333
|
+
...U.value,
|
|
1334
|
+
isPrintingImg: E(Vn) || E(Hn) || fn.value,
|
|
1335
|
+
isPrintingSvg: pn.value
|
|
1324
1336
|
} }, void 0, !0)
|
|
1325
|
-
], 46,
|
|
1337
|
+
], 46, rt)), e.$slots.hint ? (x(), m("div", Pt, [w(e.$slots, "hint", y(_({
|
|
1326
1338
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1327
|
-
isVisible:
|
|
1339
|
+
isVisible: Cn.value
|
|
1328
1340
|
})), void 0, !0)])) : p("", !0)]),
|
|
1329
|
-
e.$slots.watermark ? (x(), m("div",
|
|
1341
|
+
e.$slots.watermark ? (x(), m("div", Ft, [w(e.$slots, "watermark", y(_({ isPrinting: E(Vn) || E(Hn) || fn.value || pn.value })), void 0, !0)])) : p("", !0),
|
|
1330
1342
|
h("div", {
|
|
1331
1343
|
ref_key: "chartSlicer",
|
|
1332
|
-
ref:
|
|
1344
|
+
ref: vn,
|
|
1333
1345
|
style: b(`width:100%;background:${I.value.style.chart.backgroundColor}`),
|
|
1334
1346
|
"data-dom-to-png-ignore": ""
|
|
1335
|
-
}, [
|
|
1347
|
+
}, [G.value > 1 && I.value.style.chart.zoom.show ? (x(), f(Re, {
|
|
1336
1348
|
ref_key: "slicerComponent",
|
|
1337
|
-
ref:
|
|
1338
|
-
key: `slicer_${
|
|
1349
|
+
ref: _n,
|
|
1350
|
+
key: `slicer_${en.value}`,
|
|
1339
1351
|
background: I.value.style.chart.zoom.color,
|
|
1340
1352
|
borderColor: I.value.style.chart.backgroundColor,
|
|
1341
1353
|
fontSize: I.value.style.chart.zoom.fontSize,
|
|
1342
1354
|
useResetSlot: I.value.style.chart.zoom.useResetSlot,
|
|
1343
|
-
labelLeft:
|
|
1344
|
-
labelRight:
|
|
1355
|
+
labelLeft: K.value[0] ? K.value[0].text : "",
|
|
1356
|
+
labelRight: K.value.at(-1) ? K.value.at(-1).text : "",
|
|
1345
1357
|
textColor: I.value.style.chart.color,
|
|
1346
1358
|
inputColor: I.value.style.chart.zoom.color,
|
|
1347
1359
|
selectColor: I.value.style.chart.zoom.highlightColor,
|
|
1348
|
-
max:
|
|
1360
|
+
max: G.value,
|
|
1349
1361
|
min: 0,
|
|
1350
1362
|
valueStart: z.value.start,
|
|
1351
1363
|
valueEnd: z.value.end,
|
|
@@ -1354,14 +1366,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1354
1366
|
end: z.value.end,
|
|
1355
1367
|
"onUpdate:end": t[1] ||= (e) => z.value.end = e,
|
|
1356
1368
|
refreshStartPoint: I.value.style.chart.zoom.startIndex === null ? 0 : I.value.style.chart.zoom.startIndex,
|
|
1357
|
-
refreshEndPoint: I.value.style.chart.zoom.endIndex === null ?
|
|
1369
|
+
refreshEndPoint: I.value.style.chart.zoom.endIndex === null ? G.value : I.value.style.chart.zoom.endIndex + 1,
|
|
1358
1370
|
enableRangeHandles: I.value.style.chart.zoom.enableRangeHandles,
|
|
1359
1371
|
enableSelectionDrag: I.value.style.chart.zoom.enableSelectionDrag,
|
|
1360
1372
|
focusOnDrag: I.value.style.chart.zoom.focusOnDrag,
|
|
1361
1373
|
focusRangeRatio: I.value.style.chart.zoom.focusRangeRatio,
|
|
1362
1374
|
isCursorPointer: L.value,
|
|
1363
1375
|
maxWidth: I.value.style.chart.zoom.maxWidth,
|
|
1364
|
-
onReset:
|
|
1376
|
+
onReset: Nn
|
|
1365
1377
|
}, {
|
|
1366
1378
|
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1367
1379
|
_: 3
|
|
@@ -1389,30 +1401,30 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1389
1401
|
"isCursorPointer",
|
|
1390
1402
|
"maxWidth"
|
|
1391
1403
|
])) : p("", !0)], 4),
|
|
1392
|
-
h("div", { id: `legend-bottom-${k.value}` }, null, 8,
|
|
1393
|
-
|
|
1404
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, It),
|
|
1405
|
+
ln.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(ze, {
|
|
1394
1406
|
key: 6,
|
|
1395
1407
|
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1396
1408
|
}, [h("div", {
|
|
1397
1409
|
ref_key: "chartLegend",
|
|
1398
|
-
ref:
|
|
1399
|
-
}, [w(e.$slots, "legend", { legend:
|
|
1400
|
-
key: `legend_${
|
|
1401
|
-
legendSet:
|
|
1402
|
-
config:
|
|
1403
|
-
onClickMarker: t[2] ||= ({ legend: e }) =>
|
|
1410
|
+
ref: hn
|
|
1411
|
+
}, [w(e.$slots, "legend", { legend: lr.value }, () => [I.value.style.chart.legend.show ? (x(), f(Ie, {
|
|
1412
|
+
key: `legend_${rn.value}`,
|
|
1413
|
+
legendSet: lr.value,
|
|
1414
|
+
config: dr.value,
|
|
1415
|
+
onClickMarker: t[2] ||= ({ legend: e }) => pr(e.uid)
|
|
1404
1416
|
}, {
|
|
1405
1417
|
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1406
|
-
onClick: (t) =>
|
|
1418
|
+
onClick: (t) => pr(e.uid),
|
|
1407
1419
|
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1408
|
-
}, T(e.display), 13,
|
|
1409
|
-
legendToggle: D(() => [
|
|
1420
|
+
}, T(e.display), 13, Lt)]),
|
|
1421
|
+
legendToggle: D(() => [lr.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(kn) ? (x(), f(Me, {
|
|
1410
1422
|
key: 0,
|
|
1411
1423
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1412
1424
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1413
1425
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
1414
1426
|
checked: A.value.length > 0,
|
|
1415
|
-
onToggle:
|
|
1427
|
+
onToggle: fr
|
|
1416
1428
|
}, null, 8, [
|
|
1417
1429
|
"backgroundColor",
|
|
1418
1430
|
"color",
|
|
@@ -1424,27 +1436,27 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1424
1436
|
e.$slots.source ? (x(), m("div", {
|
|
1425
1437
|
key: 7,
|
|
1426
1438
|
ref_key: "source",
|
|
1427
|
-
ref:
|
|
1439
|
+
ref: gn,
|
|
1428
1440
|
dir: "auto"
|
|
1429
1441
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1430
|
-
|
|
1442
|
+
Tn.value && I.value.userOptions.buttons.table ? (x(), f(qe($.value.component), Ue({ key: 8 }, $.value.props, {
|
|
1431
1443
|
ref_key: "tableUnit",
|
|
1432
|
-
ref:
|
|
1433
|
-
onClose:
|
|
1434
|
-
}),
|
|
1435
|
-
content: D(() => [(x(), f(E(
|
|
1436
|
-
key: `table_${
|
|
1437
|
-
colNames:
|
|
1438
|
-
head:
|
|
1439
|
-
body:
|
|
1440
|
-
config:
|
|
1441
|
-
title: I.value.table.useDialog ? "" :
|
|
1444
|
+
ref: un,
|
|
1445
|
+
onClose: Or
|
|
1446
|
+
}), Be({
|
|
1447
|
+
content: D(() => [(x(), f(E(Ht), {
|
|
1448
|
+
key: `table_${nn.value}`,
|
|
1449
|
+
colNames: X.value.colNames,
|
|
1450
|
+
head: X.value.head,
|
|
1451
|
+
body: X.value.body,
|
|
1452
|
+
config: X.value.config,
|
|
1453
|
+
title: I.value.table.useDialog ? "" : $.value.title,
|
|
1442
1454
|
withCloseButton: !I.value.table.useDialog,
|
|
1443
1455
|
isCursorPointer: L.value,
|
|
1444
|
-
onClose:
|
|
1456
|
+
onClose: Or
|
|
1445
1457
|
}, {
|
|
1446
|
-
th: D(({ th: e }) => [
|
|
1447
|
-
td: D(({ td: e }) => [e.value === null ? (x(), m("span",
|
|
1458
|
+
th: D(({ th: e }) => [Ve(T(e.name ?? e), 1)]),
|
|
1459
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Rt, "-")) : (x(), m("b", zt, T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(I.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(I.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1448
1460
|
_: 1
|
|
1449
1461
|
}, 8, [
|
|
1450
1462
|
"colNames",
|
|
@@ -1458,40 +1470,40 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1458
1470
|
_: 2
|
|
1459
1471
|
}, [I.value.table.useDialog ? {
|
|
1460
1472
|
name: "title",
|
|
1461
|
-
fn: D(() => [
|
|
1473
|
+
fn: D(() => [Ve(T($.value.title), 1)]),
|
|
1462
1474
|
key: "0"
|
|
1463
1475
|
} : void 0, I.value.table.useDialog ? {
|
|
1464
1476
|
name: "actions",
|
|
1465
1477
|
fn: D(() => [h("button", {
|
|
1466
1478
|
tabindex: "0",
|
|
1467
1479
|
class: "vue-ui-user-options-button",
|
|
1468
|
-
onClick: t[3] ||= (e) =>
|
|
1480
|
+
onClick: t[3] ||= (e) => vr(I.value.userOptions.callbacks.csv),
|
|
1469
1481
|
style: b({ cursor: L.value ? "cursor" : "default" })
|
|
1470
|
-
}, [
|
|
1482
|
+
}, [He(E(Vt), {
|
|
1471
1483
|
name: "fileCsv",
|
|
1472
|
-
stroke:
|
|
1484
|
+
stroke: $.value.props.color
|
|
1473
1485
|
}, null, 8, ["stroke"])], 4)]),
|
|
1474
1486
|
key: "1"
|
|
1475
1487
|
} : void 0]), 1040)) : p("", !0),
|
|
1476
|
-
I.value.style.chart.dialog.show ? (x(), f(E(
|
|
1488
|
+
I.value.style.chart.dialog.show ? (x(), f(E(qt), {
|
|
1477
1489
|
key: 9,
|
|
1478
1490
|
ref_key: "dialog",
|
|
1479
|
-
ref:
|
|
1491
|
+
ref: Tr,
|
|
1480
1492
|
onClose: t[4] ||= (e) => {
|
|
1481
|
-
N.value = null,
|
|
1493
|
+
N.value = null, Zt.value = !1, M.value = null, j.value = null, sr.value = null;
|
|
1482
1494
|
},
|
|
1483
1495
|
backgroundColor: I.value.style.chart.dialog.backgroundColor,
|
|
1484
1496
|
color: I.value.style.chart.dialog.color,
|
|
1485
1497
|
headerBg: I.value.style.chart.dialog.header.backgroundColor,
|
|
1486
1498
|
headerColor: I.value.style.chart.dialog.header.color,
|
|
1487
|
-
isFullscreen:
|
|
1499
|
+
isFullscreen: Z.value,
|
|
1488
1500
|
fullscreenParent: P.value
|
|
1489
1501
|
}, {
|
|
1490
|
-
title: D(() => [
|
|
1491
|
-
content: D(() => [N.value ? (x(), f(E(
|
|
1502
|
+
title: D(() => [Ve(T(K.value[Number(N.value.index)] ? K.value[Number(N.value.index)].text : ""), 1)]),
|
|
1503
|
+
content: D(() => [N.value ? (x(), f(E(Kt), {
|
|
1492
1504
|
key: 0,
|
|
1493
|
-
config:
|
|
1494
|
-
dataset:
|
|
1505
|
+
config: wr.value,
|
|
1506
|
+
dataset: Cr.value
|
|
1495
1507
|
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1496
1508
|
_: 1
|
|
1497
1509
|
}, 8, [
|
|
@@ -1502,9 +1514,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1502
1514
|
"isFullscreen",
|
|
1503
1515
|
"fullscreenParent"
|
|
1504
1516
|
])) : p("", !0),
|
|
1505
|
-
E(
|
|
1506
|
-
], 46,
|
|
1517
|
+
E(kn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1518
|
+
], 46, $e));
|
|
1507
1519
|
}
|
|
1508
|
-
}, [["__scopeId", "data-v-
|
|
1520
|
+
}, [["__scopeId", "data-v-5ddd11b9"]]);
|
|
1509
1521
|
//#endregion
|
|
1510
|
-
export {
|
|
1522
|
+
export { Qe as n, Bt as t };
|