vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, G as i, Jt as a, Kt as ee, Pt as o, Rt as te, S as ne, Vt as re, X as s, b as ie, ct as ae, i as oe, jt as se, pt as ce, q as le, t as ue, tt as de, w as fe, xt as pe } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, G as i, Jt as a, Kt as ee, Pt as o, Rt as te, S as ne, Vt as re, X as s, b as ie, ct as ae, i as oe, jt as se, pt as ce, q as le, t as ue, tt as de, w as fe, xt as pe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ge } from "./useConfig-
|
|
5
|
-
import { t as _e } from "./usePrinter-
|
|
4
|
+
import { t as ge } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as be } from "./
|
|
8
|
-
import { t as xe } from "./
|
|
9
|
-
import { t as Se } from "./
|
|
7
|
+
import { t as be } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Se } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as Ce } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as we } from "./img-
|
|
12
|
-
import { n as Te } from "./Title-
|
|
13
|
-
import { t as Ee } from "./Shape-
|
|
11
|
+
import { t as we } from "./img-Bnokohej.js";
|
|
12
|
+
import { n as Te } from "./Title-BE3qg9xl.js";
|
|
13
|
+
import { t as Ee } from "./Shape-C21CMlWS.js";
|
|
14
14
|
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
16
16
|
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as je } from "./BaseLegendToggle-
|
|
17
|
+
import { t as je } from "./BaseLegendToggle-DZVucLnv.js";
|
|
18
18
|
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as Fe } from "./labelUtils-
|
|
22
|
-
import { t as Ie } from "./Legend-
|
|
21
|
+
import { t as Fe } from "./labelUtils-BeVpDvTJ.js";
|
|
22
|
+
import { t as Ie } from "./Legend-CQxUgOd-.js";
|
|
23
23
|
import { t as Le } from "./vue_ui_rings-BVgD2aMn.js";
|
|
24
24
|
import { Fragment as Re, Teleport as ze, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ue, nextTick as We, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ge, onMounted as Ke, openBlock as v, ref as y, renderList as qe, renderSlot as b, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as Xe, toRefs as Ze, unref as x, useSlots as Qe, watch as $e, withCtx as S } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-rings.vue
|
|
@@ -108,12 +108,12 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["selectLegend", "copyAlt"],
|
|
110
110
|
setup(e, { expose: De, emit: et }) {
|
|
111
|
-
let bt = p(() => import("./Tooltip-
|
|
111
|
+
let bt = p(() => import("./Tooltip-DhjyfHwz.js")), xt = p(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), St = p(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Ct = p(() => import("./DataTable-BbKgJ5UI.js")), wt = p(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Tt = p(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Et = p(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Dt = p(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_rings: Ot } = ge(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), jt = Qe(), C = e, w = y(!1), Mt = c(() => !!C.dataset && C.dataset.length), T = y(le()), E = y(!1), Nt = y(""), D = y(null), Pt = y(0), O = y(null), Ft = y(null), It = y(null), Lt = y(null), Rt = y(null), zt = y(0), Bt = y(0), Vt = y(0), Ht = y(!1), Ut = y(!1), k = y(null), Wt = y(null), A = y(null), Gt = y({
|
|
112
112
|
x: 0,
|
|
113
113
|
y: 0
|
|
114
|
-
}),
|
|
114
|
+
}), Kt = y("pointer"), qt = y(!1), j = y(en());
|
|
115
115
|
me({
|
|
116
|
-
config: () =>
|
|
116
|
+
config: () => j.value,
|
|
117
117
|
dataset: () => C.dataset,
|
|
118
118
|
component: "VueUiRings",
|
|
119
119
|
rules: [
|
|
@@ -133,10 +133,10 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
135
|
});
|
|
136
|
-
let { transitionEnabled:
|
|
137
|
-
config: () =>
|
|
136
|
+
let { transitionEnabled: M } = Ce({
|
|
137
|
+
config: () => j.value.transitions,
|
|
138
138
|
dataset: () => C.dataset
|
|
139
|
-
}),
|
|
139
|
+
}), N = c(() => j.value.userOptions.useCursorPointer), Jt = c(() => a({
|
|
140
140
|
defaultConfig: {
|
|
141
141
|
userOptions: { show: !1 },
|
|
142
142
|
table: { show: !1 },
|
|
@@ -152,11 +152,11 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
152
152
|
legend: { backgroundColor: "transparent" }
|
|
153
153
|
} }
|
|
154
154
|
},
|
|
155
|
-
userConfig:
|
|
156
|
-
})), { loading:
|
|
155
|
+
userConfig: j.value.skeletonConfig ?? {}
|
|
156
|
+
})), { loading: P, FINAL_DATASET: Yt, manualLoading: Xt } = ve({
|
|
157
157
|
...Ze(C),
|
|
158
|
-
FINAL_CONFIG:
|
|
159
|
-
prepareConfig:
|
|
158
|
+
FINAL_CONFIG: j,
|
|
159
|
+
prepareConfig: en,
|
|
160
160
|
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
161
161
|
{
|
|
162
162
|
name: "_",
|
|
@@ -185,23 +185,23 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
187
|
skeletonConfig: a({
|
|
188
|
-
defaultConfig:
|
|
189
|
-
userConfig:
|
|
188
|
+
defaultConfig: j.value,
|
|
189
|
+
userConfig: Jt.value
|
|
190
190
|
})
|
|
191
|
-
}), { userOptionsVisible:
|
|
192
|
-
function
|
|
193
|
-
let e =
|
|
191
|
+
}), { userOptionsVisible: Zt, setUserOptionsVisibility: Qt, keepUserOptionState: $t } = Ne({ config: j.value }), { svgRef: F } = Pe({ config: j.value.style.chart.title });
|
|
192
|
+
function en() {
|
|
193
|
+
let e = be({
|
|
194
194
|
userConfig: C.config,
|
|
195
195
|
defaultConfig: Ot
|
|
196
196
|
}), t = e.theme;
|
|
197
197
|
if (!t) return e;
|
|
198
198
|
if (!kt.value(e)) return At(e), e;
|
|
199
|
-
let n =
|
|
199
|
+
let n = be({
|
|
200
200
|
userConfig: Le[t] || C.config,
|
|
201
201
|
defaultConfig: e
|
|
202
202
|
});
|
|
203
203
|
return {
|
|
204
|
-
...
|
|
204
|
+
...be({
|
|
205
205
|
userConfig: C.config,
|
|
206
206
|
defaultConfig: n
|
|
207
207
|
}),
|
|
@@ -209,37 +209,37 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
$e(() => C.config, (e) => {
|
|
212
|
-
|
|
212
|
+
P.value || (j.value = en()), Zt.value = !j.value.userOptions.showOnChartHover, nn(), zt.value += 1, Bt.value += 1, Vt.value += 1, B.value.showTable = j.value.table.show, B.value.showTooltip = j.value.style.chart.tooltip.show, B.value.showLabels = j.value.style.chart.layout.labels.dataLabels.show, V.value.width = j.value.style.chart.size, V.value.height = j.value.style.chart.size;
|
|
213
213
|
}, { deep: !0 });
|
|
214
|
-
let
|
|
215
|
-
let { markers: e } =
|
|
214
|
+
let tn = c(() => {
|
|
215
|
+
let { markers: e } = j.value.style.chart.layout.labels.dataLabels, t = J.value / 2, n = B.value.showLabels ? e.position === "left" ? t : -t : 0, r = B.value.showLabels ? V.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
|
|
216
216
|
return {
|
|
217
|
-
x:
|
|
218
|
-
y: 0 /
|
|
217
|
+
x: j.value.responsive ? i : n / j.value.style.chart.size * V.value.width,
|
|
218
|
+
y: 0 / j.value.style.chart.size * V.value.height
|
|
219
219
|
};
|
|
220
|
-
}),
|
|
221
|
-
x: V.value.width / 2 +
|
|
222
|
-
y: V.value.height / 2 +
|
|
220
|
+
}), I = c(() => ({
|
|
221
|
+
x: V.value.width / 2 + tn.value.x,
|
|
222
|
+
y: V.value.height / 2 + tn.value.y
|
|
223
223
|
}));
|
|
224
224
|
$e(() => C.dataset, (e) => {
|
|
225
|
-
Array.isArray(e) && e.length > 0 && (
|
|
225
|
+
Array.isArray(e) && e.length > 0 && (Xt.value = !1);
|
|
226
226
|
}, { deep: !0 });
|
|
227
|
-
let
|
|
227
|
+
let L = Ye(null), R = Ye(null);
|
|
228
228
|
Ke(() => {
|
|
229
|
-
Ut.value = !0,
|
|
229
|
+
Ut.value = !0, nn();
|
|
230
230
|
});
|
|
231
|
-
let
|
|
232
|
-
function
|
|
231
|
+
let z = c(() => j.value.debug);
|
|
232
|
+
function nn() {
|
|
233
233
|
if (se(C.dataset) ? (de({
|
|
234
234
|
componentName: "VueUiRings",
|
|
235
235
|
type: "dataset",
|
|
236
|
-
debug:
|
|
237
|
-
}),
|
|
236
|
+
debug: z.value
|
|
237
|
+
}), Xt.value = !0) : C.dataset.forEach((e, t) => {
|
|
238
238
|
e.values.length || (de({
|
|
239
239
|
componentName: "VueUiRings",
|
|
240
240
|
type: "dataset",
|
|
241
|
-
debug:
|
|
242
|
-
}),
|
|
241
|
+
debug: z.value
|
|
242
|
+
}), Xt.value = !0), ce({
|
|
243
243
|
datasetObject: e,
|
|
244
244
|
requiredAttributes: ["name", "values"]
|
|
245
245
|
}).forEach((e) => {
|
|
@@ -248,16 +248,16 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
248
248
|
type: "datasetSerieAttribute",
|
|
249
249
|
property: e,
|
|
250
250
|
index: t,
|
|
251
|
-
debug:
|
|
251
|
+
debug: z.value
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
|
-
}), se(C.dataset) || (
|
|
254
|
+
}), se(C.dataset) || (Xt.value = j.value.loading), j.value.responsive) {
|
|
255
255
|
let e = Oe(() => {
|
|
256
256
|
Ht.value = !0;
|
|
257
257
|
let { width: e, height: t } = ke({
|
|
258
258
|
chart: O.value,
|
|
259
|
-
title:
|
|
260
|
-
legend:
|
|
259
|
+
title: j.value.style.chart.title.text ? Ft.value : null,
|
|
260
|
+
legend: j.value.style.chart.legend.show ? It.value : null,
|
|
261
261
|
source: Lt.value,
|
|
262
262
|
noTitle: Rt.value
|
|
263
263
|
});
|
|
@@ -265,42 +265,42 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
265
265
|
V.value.width = e, V.value.height = t - 12, Ht.value = !1;
|
|
266
266
|
});
|
|
267
267
|
});
|
|
268
|
-
|
|
268
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = O.value.parentNode, L.value.observe(R.value);
|
|
269
269
|
}
|
|
270
270
|
setTimeout(() => {
|
|
271
271
|
w.value = !0;
|
|
272
272
|
}, 600);
|
|
273
273
|
}
|
|
274
274
|
Ge(() => {
|
|
275
|
-
|
|
275
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
|
|
276
276
|
});
|
|
277
|
-
let { isPrinting:
|
|
277
|
+
let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = _e({
|
|
278
278
|
elementId: `rings_${T.value}`,
|
|
279
|
-
fileName:
|
|
280
|
-
options:
|
|
281
|
-
}),
|
|
282
|
-
showTable:
|
|
283
|
-
showTooltip:
|
|
284
|
-
showLabels:
|
|
279
|
+
fileName: j.value.style.chart.title.text || "vue-ui-rings",
|
|
280
|
+
options: j.value.userOptions.print
|
|
281
|
+
}), cn = c(() => j.value.userOptions.show && !j.value.style.chart.title.text), ln = c(() => fe(j.value.customPalette)), B = y({
|
|
282
|
+
showTable: j.value.table.show,
|
|
283
|
+
showTooltip: j.value.style.chart.tooltip.show,
|
|
284
|
+
showLabels: j.value.style.chart.layout.labels.dataLabels.show
|
|
285
285
|
});
|
|
286
|
-
$e(
|
|
286
|
+
$e(j, () => {
|
|
287
287
|
B.value = {
|
|
288
|
-
showTable:
|
|
289
|
-
showTooltip:
|
|
290
|
-
showLabels:
|
|
288
|
+
showTable: j.value.table.show,
|
|
289
|
+
showTooltip: j.value.style.chart.tooltip.show,
|
|
290
|
+
showLabels: j.value.style.chart.layout.labels.dataLabels.show
|
|
291
291
|
};
|
|
292
292
|
}, { immediate: !0 });
|
|
293
293
|
let V = y({
|
|
294
|
-
height:
|
|
295
|
-
width:
|
|
296
|
-
}),
|
|
297
|
-
function
|
|
294
|
+
height: j.value.style.chart.size,
|
|
295
|
+
width: j.value.style.chart.size
|
|
296
|
+
}), un = c(() => Math.min(V.value.height, V.value.width)), dn = et, H = y([]);
|
|
297
|
+
function fn() {
|
|
298
298
|
H.value.length ? H.value = [] : G.value.forEach((e) => {
|
|
299
299
|
H.value.push(e.uid);
|
|
300
|
-
}),
|
|
300
|
+
}), pn();
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
302
|
+
function pn() {
|
|
303
|
+
dn("selectLegend", q.value.map((e) => ({
|
|
304
304
|
name: e.name,
|
|
305
305
|
color: e.color,
|
|
306
306
|
value: e.value
|
|
@@ -312,49 +312,49 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
312
312
|
if (H.value.length === W.value.length - 1) return;
|
|
313
313
|
H.value.push(e);
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
pn();
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (
|
|
317
|
+
function mn(e) {
|
|
318
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (z.value && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (z.value && console.warn("VueUiRings - There are no series to show."), null);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
let t =
|
|
320
|
+
function hn(e) {
|
|
321
|
+
let t = mn(e);
|
|
322
322
|
t !== null && H.value.includes(t.uid) && U(t.uid);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
let t =
|
|
324
|
+
function gn(e) {
|
|
325
|
+
let t = mn(e);
|
|
326
326
|
t !== null && (H.value.includes(t.uid) || U(t.uid));
|
|
327
327
|
}
|
|
328
|
-
let
|
|
329
|
-
function
|
|
330
|
-
return e /
|
|
328
|
+
let _n = c(() => Math.max(...W.value.filter((e) => !H.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
329
|
+
function vn(e) {
|
|
330
|
+
return e / _n.value;
|
|
331
331
|
}
|
|
332
|
-
let W = c(() =>
|
|
332
|
+
let W = c(() => Yt.value.map(({ values: e, name: t, color: n = null }, r) => {
|
|
333
333
|
let i = te(e).reduce((e, t) => e + t, 0);
|
|
334
334
|
return {
|
|
335
335
|
name: t,
|
|
336
|
-
color: n || ne(n) ||
|
|
336
|
+
color: n || ne(n) || ln.value[r] || o[r] || o[r % o.length],
|
|
337
337
|
value: i,
|
|
338
|
-
proportion: i /
|
|
338
|
+
proportion: i / Yt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
339
339
|
uid: le(),
|
|
340
340
|
absoluteIndex: r
|
|
341
341
|
};
|
|
342
342
|
})), G = c(() => W.value.map((e, t) => {
|
|
343
|
-
let n = oe(
|
|
344
|
-
p:
|
|
343
|
+
let n = oe(j.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
|
|
344
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
345
345
|
v: e.value,
|
|
346
|
-
s:
|
|
347
|
-
r:
|
|
346
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
347
|
+
r: j.value.style.chart.legend.roundingValue
|
|
348
348
|
}), {
|
|
349
349
|
datapoint: e,
|
|
350
350
|
index: t
|
|
351
351
|
}), r = isNaN(e.value / K.value) ? "-" : s({
|
|
352
352
|
v: e.value / K.value * 100,
|
|
353
353
|
s: "%",
|
|
354
|
-
r:
|
|
355
|
-
}), i =
|
|
356
|
-
showVal:
|
|
357
|
-
showPercentage:
|
|
354
|
+
r: j.value.style.chart.legend.roundingPercentage
|
|
355
|
+
}), i = Cn({
|
|
356
|
+
showVal: j.value.style.chart.legend.showValue,
|
|
357
|
+
showPercentage: j.value.style.chart.legend.showPercentage,
|
|
358
358
|
val: n,
|
|
359
359
|
percentage: H.value.includes(e.uid) ? "-%" : r
|
|
360
360
|
});
|
|
@@ -364,26 +364,26 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
364
364
|
opacity: H.value.includes(e.uid) ? .5 : 1,
|
|
365
365
|
segregate: () => U(e.uid),
|
|
366
366
|
isSegregated: H.value.includes(e.uid),
|
|
367
|
-
display: `${e.name}${
|
|
367
|
+
display: `${e.name}${j.value.style.chart.legend.showPercentage || j.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
368
368
|
};
|
|
369
|
-
}).toSorted((e, t) => t.value - e.value)),
|
|
369
|
+
}).toSorted((e, t) => t.value - e.value)), yn = c(() => ({
|
|
370
370
|
cy: "rings-div-legend",
|
|
371
|
-
backgroundColor:
|
|
372
|
-
color:
|
|
373
|
-
fontSize:
|
|
371
|
+
backgroundColor: j.value.style.chart.legend.backgroundColor,
|
|
372
|
+
color: j.value.style.chart.legend.color,
|
|
373
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
374
374
|
paddingBottom: 12,
|
|
375
|
-
fontWeight:
|
|
375
|
+
fontWeight: j.value.style.chart.legend.bold ? "bold" : ""
|
|
376
376
|
})), K = c(() => W.value.filter((e) => !H.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), q = c(() => W.value.filter((e) => !H.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, a) => ({
|
|
377
377
|
absoluteIndex: i,
|
|
378
378
|
uid: r,
|
|
379
379
|
name: e,
|
|
380
|
-
color: n || ne(n) ||
|
|
380
|
+
color: n || ne(n) || ln.value[a] || o[a] || o[a % o.length],
|
|
381
381
|
value: t,
|
|
382
|
-
proportion:
|
|
382
|
+
proportion: vn(t),
|
|
383
383
|
percentage: t / K.value * 100,
|
|
384
|
-
strokeWidth:
|
|
384
|
+
strokeWidth: j.value.style.chart.layout.rings.strokeWidth * vn(t)
|
|
385
385
|
})).toSorted((e, t) => t.value - e.value));
|
|
386
|
-
function
|
|
386
|
+
function bn() {
|
|
387
387
|
return q.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
388
388
|
name: e,
|
|
389
389
|
color: t,
|
|
@@ -392,21 +392,21 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
392
392
|
percentage: i
|
|
393
393
|
}));
|
|
394
394
|
}
|
|
395
|
-
let J = c(() =>
|
|
396
|
-
function
|
|
397
|
-
|
|
395
|
+
let J = c(() => un.value - j.value.style.chart.layout.rings.strokeWidth * 2);
|
|
396
|
+
function xn(e, t) {
|
|
397
|
+
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
398
398
|
datapoint: e,
|
|
399
399
|
seriesIndex: t
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
D.value = null, E.value = !1, A.value = null,
|
|
402
|
+
function Sn(e, t) {
|
|
403
|
+
D.value = null, E.value = !1, A.value = null, Kt.value = "pointer", j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
404
404
|
datapoint: e,
|
|
405
405
|
seriesIndex: t
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
let i =
|
|
408
|
+
function Cn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
409
|
+
let i = j.value.style.chart.layout.labels.dataLabels;
|
|
410
410
|
return Fe({
|
|
411
411
|
config: i,
|
|
412
412
|
val: e,
|
|
@@ -415,8 +415,8 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
415
415
|
showPercentage: r
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let t =
|
|
418
|
+
function wn(e) {
|
|
419
|
+
let t = j.value.style.chart.layout.labels.dataLabels, n = oe(t.formatter, e.value, s({
|
|
420
420
|
p: t.prefix,
|
|
421
421
|
v: e.value,
|
|
422
422
|
s: t.suffix,
|
|
@@ -426,60 +426,60 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
426
426
|
s: "%",
|
|
427
427
|
r: t.roundingPercentage
|
|
428
428
|
});
|
|
429
|
-
return `${e.name}\n${
|
|
429
|
+
return `${e.name}\n${Cn({
|
|
430
430
|
val: n,
|
|
431
431
|
percentage: r,
|
|
432
432
|
showVal: t.showValue,
|
|
433
433
|
showPercentage: t.showPercentage
|
|
434
434
|
})}`;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Tn(e) {
|
|
437
437
|
return ie(J.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : J.value * e.proportion / 2 * .9);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
return t === 0 ?
|
|
439
|
+
function En(e, t) {
|
|
440
|
+
return t === 0 ? I.value.y : I.value.y + J.value * q.value[0].proportion / 2 - J.value * e.proportion / 2 - 2 * (t + 1);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
let n =
|
|
442
|
+
function Y(e, t) {
|
|
443
|
+
let n = j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(J.value / 2) : J.value / 2;
|
|
444
444
|
return {
|
|
445
|
-
x:
|
|
446
|
-
y:
|
|
445
|
+
x: I.value.x + n,
|
|
446
|
+
y: En(e, t) - Tn(e)
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
let
|
|
450
|
-
function
|
|
451
|
-
if (
|
|
449
|
+
let Dn = y(null);
|
|
450
|
+
function On(e, t, n = "pointer") {
|
|
451
|
+
if (j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
452
452
|
datapoint: e,
|
|
453
453
|
seriesIndex: t
|
|
454
454
|
}), H.value.length === C.dataset.length) return;
|
|
455
|
-
|
|
455
|
+
Dn.value = {
|
|
456
456
|
datapoint: e,
|
|
457
457
|
seriesIndex: t,
|
|
458
458
|
series: q.value,
|
|
459
|
-
config:
|
|
460
|
-
}, D.value = t, A.value = t,
|
|
461
|
-
let r = q.value[t], i =
|
|
459
|
+
config: j.value
|
|
460
|
+
}, D.value = t, A.value = t, Kt.value = n;
|
|
461
|
+
let r = q.value[t], i = j.value.style.chart.tooltip.customFormat;
|
|
462
462
|
if (pe(i) && ae(() => i({
|
|
463
463
|
seriesIndex: t,
|
|
464
464
|
datapoint: e,
|
|
465
465
|
series: q.value,
|
|
466
|
-
config:
|
|
466
|
+
config: j.value
|
|
467
467
|
}))) Nt.value = i({
|
|
468
468
|
seriesIndex: t,
|
|
469
469
|
datapoint: e,
|
|
470
470
|
series: q.value,
|
|
471
|
-
config:
|
|
471
|
+
config: j.value
|
|
472
472
|
});
|
|
473
473
|
else {
|
|
474
474
|
let n = "";
|
|
475
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
476
|
-
showVal:
|
|
477
|
-
showPercentage:
|
|
478
|
-
val: `<span>${oe(
|
|
479
|
-
p:
|
|
475
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${r.color}" />${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${T.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${Cn({
|
|
476
|
+
showVal: j.value.style.chart.tooltip.showValue,
|
|
477
|
+
showPercentage: j.value.style.chart.tooltip.showPercentage,
|
|
478
|
+
val: `<span>${oe(j.value.style.chart.layout.labels.dataLabels.formatter, r.value, s({
|
|
479
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
480
480
|
v: r.value,
|
|
481
|
-
s:
|
|
482
|
-
r:
|
|
481
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
482
|
+
r: j.value.style.chart.tooltip.roundingValue
|
|
483
483
|
}), {
|
|
484
484
|
datapoint: e,
|
|
485
485
|
seriesIndex: t
|
|
@@ -487,40 +487,40 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
487
487
|
percentage: s({
|
|
488
488
|
v: r.value / K.value * 100,
|
|
489
489
|
s: "%",
|
|
490
|
-
r:
|
|
490
|
+
r: j.value.style.chart.tooltip.roundingPercentage
|
|
491
491
|
})
|
|
492
492
|
})}</b></div>`, Nt.value = n;
|
|
493
493
|
}
|
|
494
494
|
E.value = !0;
|
|
495
495
|
}
|
|
496
|
-
let
|
|
496
|
+
let X = c(() => ({
|
|
497
497
|
head: q.value.map((e) => ({
|
|
498
498
|
name: e.name,
|
|
499
499
|
color: e.color
|
|
500
500
|
})),
|
|
501
501
|
body: q.value.map((e) => e.value)
|
|
502
|
-
})),
|
|
502
|
+
})), Z = c(() => {
|
|
503
503
|
let e = [
|
|
504
504
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
505
505
|
s({
|
|
506
|
-
p:
|
|
506
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
507
507
|
v: K.value,
|
|
508
|
-
s:
|
|
509
|
-
r:
|
|
508
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
509
|
+
r: j.value.table.td.roundingValue
|
|
510
510
|
}),
|
|
511
511
|
"100%"
|
|
512
|
-
], t =
|
|
512
|
+
], t = X.value.head.map((e, t) => [
|
|
513
513
|
{
|
|
514
514
|
color: e.color,
|
|
515
515
|
name: e.name
|
|
516
516
|
},
|
|
517
517
|
s({
|
|
518
|
-
p:
|
|
519
|
-
v:
|
|
520
|
-
s:
|
|
521
|
-
r:
|
|
518
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
519
|
+
v: X.value.body[t],
|
|
520
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
521
|
+
r: j.value.table.td.roundingValue
|
|
522
522
|
}),
|
|
523
|
-
isNaN(
|
|
523
|
+
isNaN(X.value.body[t] / K.value) ? "-" : (X.value.body[t] / K.value * 100).toFixed(j.value.table.td.roundingPercentage) + "%"
|
|
524
524
|
]);
|
|
525
525
|
return {
|
|
526
526
|
head: e,
|
|
@@ -528,63 +528,63 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
528
528
|
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
|
|
529
529
|
config: {
|
|
530
530
|
th: {
|
|
531
|
-
backgroundColor:
|
|
532
|
-
color:
|
|
533
|
-
outline:
|
|
531
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
532
|
+
color: j.value.table.th.color,
|
|
533
|
+
outline: j.value.table.th.outline
|
|
534
534
|
},
|
|
535
535
|
td: {
|
|
536
|
-
backgroundColor:
|
|
537
|
-
color:
|
|
538
|
-
outline:
|
|
536
|
+
backgroundColor: j.value.table.td.backgroundColor,
|
|
537
|
+
color: j.value.table.td.color,
|
|
538
|
+
outline: j.value.table.td.outline
|
|
539
539
|
},
|
|
540
|
-
breakpoint:
|
|
540
|
+
breakpoint: j.value.table.responsiveBreakpoint
|
|
541
541
|
},
|
|
542
542
|
colNames: [
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
j.value.table.columnNames.series,
|
|
544
|
+
j.value.table.columnNames.value,
|
|
545
|
+
j.value.table.columnNames.percentage
|
|
546
546
|
]
|
|
547
547
|
};
|
|
548
548
|
});
|
|
549
|
-
function
|
|
549
|
+
function kn(e = null) {
|
|
550
550
|
We(() => {
|
|
551
|
-
let n =
|
|
551
|
+
let n = X.value.head.map((e, t) => [
|
|
552
552
|
[e.name],
|
|
553
|
-
[
|
|
554
|
-
[isNaN(
|
|
555
|
-
]), i =
|
|
556
|
-
[
|
|
557
|
-
[
|
|
553
|
+
[X.value.body[t]],
|
|
554
|
+
[isNaN(X.value.body[t] / K.value) ? "-" : X.value.body[t] / K.value * 100]
|
|
555
|
+
]), i = [
|
|
556
|
+
[j.value.style.chart.title.text],
|
|
557
|
+
[j.value.style.chart.title.subtitle.text],
|
|
558
558
|
[
|
|
559
559
|
[""],
|
|
560
560
|
["val"],
|
|
561
561
|
["%"]
|
|
562
562
|
]
|
|
563
|
-
].concat(n));
|
|
564
|
-
e ? e(
|
|
565
|
-
csvContent:
|
|
566
|
-
title:
|
|
563
|
+
].concat(n), a = r(i);
|
|
564
|
+
e ? e(a) : t({
|
|
565
|
+
csvContent: a,
|
|
566
|
+
title: j.value.style.chart.title.text || "vue-ui-rings"
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
let
|
|
571
|
-
function
|
|
572
|
-
|
|
570
|
+
let Q = y(!1);
|
|
571
|
+
function An(e) {
|
|
572
|
+
Q.value = e, Pt.value += 1;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function jn() {
|
|
575
575
|
B.value.showTable = !B.value.showTable;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Mn() {
|
|
578
578
|
B.value.showTooltip = !B.value.showTooltip;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Nn() {
|
|
581
581
|
B.value.showLabels = !B.value.showLabels;
|
|
582
582
|
}
|
|
583
|
-
let
|
|
584
|
-
function
|
|
585
|
-
|
|
583
|
+
let Pn = y(!1);
|
|
584
|
+
function Fn() {
|
|
585
|
+
Pn.value = !Pn.value;
|
|
586
586
|
}
|
|
587
|
-
async function
|
|
587
|
+
async function In({ scale: e = 2 } = {}) {
|
|
588
588
|
if (!O.value) return;
|
|
589
589
|
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
590
590
|
domElement: O.value,
|
|
@@ -595,176 +595,151 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
595
595
|
return {
|
|
596
596
|
imageUri: i,
|
|
597
597
|
base64: a,
|
|
598
|
-
title:
|
|
598
|
+
title: j.value.style.chart.title.text,
|
|
599
599
|
width: t,
|
|
600
600
|
height: n,
|
|
601
601
|
aspectRatio: r
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
let
|
|
605
|
-
let e =
|
|
604
|
+
let $ = c(() => {
|
|
605
|
+
let e = j.value.table.useDialog && !j.value.table.show, t = B.value.showTable;
|
|
606
606
|
return {
|
|
607
607
|
component: e ? Dt : St,
|
|
608
|
-
title: `${
|
|
608
|
+
title: `${j.value.style.chart.title.text}${j.value.style.chart.title.subtitle.text ? `: ${j.value.style.chart.title.subtitle.text}` : ""}`,
|
|
609
609
|
props: e ? {
|
|
610
|
-
backgroundColor:
|
|
611
|
-
color:
|
|
612
|
-
headerColor:
|
|
613
|
-
headerBg:
|
|
614
|
-
isFullscreen:
|
|
610
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
611
|
+
color: j.value.table.th.color,
|
|
612
|
+
headerColor: j.value.table.th.color,
|
|
613
|
+
headerBg: j.value.table.th.backgroundColor,
|
|
614
|
+
isFullscreen: Q.value,
|
|
615
615
|
fullscreenParent: O.value,
|
|
616
616
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
617
|
-
isCursorPointer:
|
|
617
|
+
isCursorPointer: N.value
|
|
618
618
|
} : {
|
|
619
619
|
hideDetails: !0,
|
|
620
620
|
config: {
|
|
621
621
|
open: t,
|
|
622
622
|
maxHeight: 1e4,
|
|
623
623
|
body: {
|
|
624
|
-
backgroundColor:
|
|
625
|
-
color:
|
|
624
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
625
|
+
color: j.value.style.chart.color
|
|
626
626
|
},
|
|
627
627
|
head: {
|
|
628
|
-
backgroundColor:
|
|
629
|
-
color:
|
|
628
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
629
|
+
color: j.value.style.chart.color
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
634
|
});
|
|
635
635
|
$e(() => B.value.showTable, (e) => {
|
|
636
|
-
|
|
636
|
+
j.value.table.show || (e && j.value.table.useDialog && k.value ? k.value.open() : "close" in k.value && k.value.close());
|
|
637
637
|
});
|
|
638
|
-
function
|
|
638
|
+
function Ln() {
|
|
639
639
|
B.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
640
640
|
}
|
|
641
|
-
let
|
|
641
|
+
let Rn = c(() => G.value.map((e) => ({
|
|
642
642
|
...e,
|
|
643
643
|
name: e.display
|
|
644
|
-
}))),
|
|
645
|
-
svg:
|
|
646
|
-
title:
|
|
647
|
-
legend:
|
|
648
|
-
legendItems:
|
|
649
|
-
backgroundColor:
|
|
644
|
+
}))), zn = c(() => j.value.style.chart.backgroundColor), Bn = c(() => j.value.style.chart.legend), Vn = c(() => j.value.style.chart.title), { isCallbackImaging: Hn, isCallbackSvg: Un, generateSvg: Wn, onGenerateImage: Gn } = Se({
|
|
645
|
+
svg: F,
|
|
646
|
+
title: Vn,
|
|
647
|
+
legend: Bn,
|
|
648
|
+
legendItems: Rn,
|
|
649
|
+
backgroundColor: zn,
|
|
650
|
+
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
651
|
+
generateImage: sn
|
|
650
652
|
});
|
|
651
|
-
async function
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
if (e) {
|
|
655
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
|
|
656
|
-
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
657
|
-
blob: e,
|
|
658
|
-
url: t,
|
|
659
|
-
text: n,
|
|
660
|
-
dataUrl: r
|
|
661
|
-
}));
|
|
662
|
-
} else await Promise.resolve(Un());
|
|
663
|
-
} finally {
|
|
664
|
-
Kt.value = !1;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
function Kn(e) {
|
|
668
|
-
if (e?.stage === "start") {
|
|
669
|
-
Gt.value = !0;
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
if (e?.stage === "end") {
|
|
673
|
-
Gt.value = !1;
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
ln();
|
|
677
|
-
}
|
|
678
|
-
async function qn() {
|
|
679
|
-
if (pn("copyAlt", {
|
|
680
|
-
config: M.value,
|
|
653
|
+
async function Kn() {
|
|
654
|
+
if (dn("copyAlt", {
|
|
655
|
+
config: j.value,
|
|
681
656
|
dataset: q.value
|
|
682
|
-
}), !
|
|
657
|
+
}), !j.value.userOptions.callbacks.altCopy) {
|
|
683
658
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
684
659
|
return;
|
|
685
660
|
}
|
|
686
|
-
await Promise.resolve(
|
|
687
|
-
config:
|
|
661
|
+
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
662
|
+
config: j.value,
|
|
688
663
|
dataset: q.value
|
|
689
664
|
}));
|
|
690
665
|
}
|
|
691
|
-
function
|
|
692
|
-
A.value = null,
|
|
666
|
+
function qn() {
|
|
667
|
+
A.value = null, qt.value = !0;
|
|
693
668
|
}
|
|
694
|
-
function
|
|
695
|
-
A.value = null,
|
|
669
|
+
function Jn() {
|
|
670
|
+
A.value = null, Kt.value = "pointer", E.value = !1, D.value = null, qt.value = !1;
|
|
696
671
|
}
|
|
697
|
-
function
|
|
698
|
-
if (!
|
|
672
|
+
function Yn(e) {
|
|
673
|
+
if (!F.value || Pn.value || document.activeElement !== F.value || !q.value.length || H.value.length === C.dataset.length) return;
|
|
699
674
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
700
675
|
if (!t && !n && !r && !i) return;
|
|
701
676
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
702
|
-
A.value = null,
|
|
677
|
+
A.value = null, Kt.value = "pointer", E.value = !1, D.value = null;
|
|
703
678
|
return;
|
|
704
679
|
}
|
|
705
680
|
if (r) {
|
|
706
681
|
if (A.value === null) return;
|
|
707
682
|
let e = q.value[A.value];
|
|
708
683
|
if (!e) return;
|
|
709
|
-
|
|
684
|
+
xn(e, A.value);
|
|
710
685
|
return;
|
|
711
686
|
}
|
|
712
687
|
let a = A.value;
|
|
713
688
|
a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1));
|
|
714
689
|
let ee = q.value[a];
|
|
715
|
-
ee && (
|
|
690
|
+
ee && (Xn(a), On(ee, a, "keyboard"));
|
|
716
691
|
}
|
|
717
|
-
function
|
|
718
|
-
if (!Number.isFinite(e) || !
|
|
692
|
+
function Xn(e) {
|
|
693
|
+
if (!Number.isFinite(e) || !F.value) return;
|
|
719
694
|
let t = q.value[e];
|
|
720
695
|
if (!t) return;
|
|
721
|
-
let n =
|
|
722
|
-
|
|
696
|
+
let n = Y(t, e), r = F.value.getBoundingClientRect();
|
|
697
|
+
Gt.value = {
|
|
723
698
|
x: r.left + n.x / V.value.width * r.width,
|
|
724
699
|
y: r.top + n.y / V.value.height * r.height
|
|
725
700
|
};
|
|
726
701
|
}
|
|
727
|
-
let
|
|
728
|
-
headers:
|
|
729
|
-
rows:
|
|
702
|
+
let Zn = c(() => ({
|
|
703
|
+
headers: Z.value?.colNames ?? [],
|
|
704
|
+
rows: Z.value?.a11yBody ?? []
|
|
730
705
|
}));
|
|
731
706
|
return De({
|
|
732
|
-
getData:
|
|
733
|
-
getImage:
|
|
734
|
-
generatePdf:
|
|
735
|
-
generateCsv:
|
|
736
|
-
generateImage:
|
|
737
|
-
generateSvg:
|
|
738
|
-
hideSeries:
|
|
739
|
-
showSeries:
|
|
740
|
-
toggleTable:
|
|
741
|
-
toggleTooltip:
|
|
742
|
-
toggleAnnotator:
|
|
743
|
-
toggleFullscreen:
|
|
744
|
-
toggleLabels:
|
|
745
|
-
copyAlt:
|
|
707
|
+
getData: bn,
|
|
708
|
+
getImage: In,
|
|
709
|
+
generatePdf: on,
|
|
710
|
+
generateCsv: kn,
|
|
711
|
+
generateImage: sn,
|
|
712
|
+
generateSvg: Wn,
|
|
713
|
+
hideSeries: gn,
|
|
714
|
+
showSeries: hn,
|
|
715
|
+
toggleTable: jn,
|
|
716
|
+
toggleTooltip: Mn,
|
|
717
|
+
toggleAnnotator: Fn,
|
|
718
|
+
toggleFullscreen: An,
|
|
719
|
+
toggleLabels: Nn,
|
|
720
|
+
copyAlt: Kn
|
|
746
721
|
}), (e, t) => (v(), d("div", {
|
|
747
722
|
ref_key: "ringsChart",
|
|
748
723
|
ref: O,
|
|
749
|
-
class: h(`vue-data-ui-component vue-ui-rings ${
|
|
750
|
-
style: _(`font-family:${
|
|
724
|
+
class: h(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
725
|
+
style: _(`font-family:${j.value.style.fontFamily};text-align:center;width:100%;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
751
726
|
id: `rings_${T.value}`,
|
|
752
727
|
onMouseleave: t[2] ||= (e) => {
|
|
753
|
-
D.value = null, E.value = !1, x(
|
|
728
|
+
D.value = null, E.value = !1, x(Qt)(!1);
|
|
754
729
|
},
|
|
755
|
-
onMouseenter: t[3] ||= () => x(
|
|
730
|
+
onMouseenter: t[3] ||= () => x(Qt)(!0)
|
|
756
731
|
}, [
|
|
757
732
|
f("div", {
|
|
758
733
|
id: `chart-instructions-${T.value}`,
|
|
759
734
|
class: "sr-only"
|
|
760
|
-
}, [f("p", null, Xe(
|
|
761
|
-
|
|
735
|
+
}, [f("p", null, Xe(j.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
|
|
736
|
+
Zn.value?.rows?.length ? (v(), l(Me, {
|
|
762
737
|
key: 0,
|
|
763
738
|
uid: T.value,
|
|
764
|
-
head:
|
|
765
|
-
body:
|
|
766
|
-
notice:
|
|
767
|
-
caption:
|
|
739
|
+
head: Zn.value.headers,
|
|
740
|
+
body: Zn.value.rows,
|
|
741
|
+
notice: j.value.a11y.translations.tableAvailable,
|
|
742
|
+
caption: j.value.a11y.translations.tableCaption
|
|
768
743
|
}, null, 8, [
|
|
769
744
|
"uid",
|
|
770
745
|
"head",
|
|
@@ -772,14 +747,14 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
772
747
|
"notice",
|
|
773
748
|
"caption"
|
|
774
749
|
])) : u("", !0),
|
|
775
|
-
|
|
750
|
+
j.value.userOptions.buttons.annotator ? (v(), l(x(wt), {
|
|
776
751
|
key: 1,
|
|
777
|
-
svgRef: x(
|
|
778
|
-
backgroundColor:
|
|
779
|
-
color:
|
|
780
|
-
active:
|
|
781
|
-
isCursorPointer:
|
|
782
|
-
onClose:
|
|
752
|
+
svgRef: x(F),
|
|
753
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
754
|
+
color: j.value.style.chart.color,
|
|
755
|
+
active: Pn.value,
|
|
756
|
+
isCursorPointer: N.value,
|
|
757
|
+
onClose: Fn
|
|
783
758
|
}, {
|
|
784
759
|
"annotator-action-close": S(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
785
760
|
"annotator-action-color": S(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
|
|
@@ -795,14 +770,14 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
795
770
|
"active",
|
|
796
771
|
"isCursorPointer"
|
|
797
772
|
])) : u("", !0),
|
|
798
|
-
|
|
773
|
+
cn.value ? (v(), d("div", {
|
|
799
774
|
key: 2,
|
|
800
775
|
ref_key: "noTitle",
|
|
801
776
|
ref: Rt,
|
|
802
777
|
class: "vue-data-ui-no-title-space",
|
|
803
778
|
style: "height:36px; width: 100%;background:transparent"
|
|
804
779
|
}, null, 512)) : u("", !0),
|
|
805
|
-
|
|
780
|
+
j.value.style.chart.title.text ? (v(), d("div", {
|
|
806
781
|
key: 3,
|
|
807
782
|
ref_key: "chartTitle",
|
|
808
783
|
ref: Ft,
|
|
@@ -812,55 +787,55 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
812
787
|
config: {
|
|
813
788
|
title: {
|
|
814
789
|
cy: "rings-div-title",
|
|
815
|
-
...
|
|
790
|
+
...j.value.style.chart.title
|
|
816
791
|
},
|
|
817
792
|
subtitle: {
|
|
818
793
|
cy: "rings-div-subtitle",
|
|
819
|
-
...
|
|
794
|
+
...j.value.style.chart.title.subtitle
|
|
820
795
|
}
|
|
821
796
|
}
|
|
822
797
|
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
823
798
|
f("div", { id: `legend-top-${T.value}` }, null, 8, rt),
|
|
824
|
-
|
|
799
|
+
j.value.userOptions.show && Mt.value && (x($t) || x(Zt)) ? (v(), l(x(Tt), {
|
|
825
800
|
ref_key: "userOptionsRef",
|
|
826
801
|
ref: Wt,
|
|
827
802
|
key: `user_options_${Pt.value}`,
|
|
828
|
-
backgroundColor:
|
|
829
|
-
color:
|
|
830
|
-
isPrinting: x(
|
|
831
|
-
isImaging: x(
|
|
803
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
804
|
+
color: j.value.style.chart.color,
|
|
805
|
+
isPrinting: x(rn),
|
|
806
|
+
isImaging: x(an),
|
|
832
807
|
uid: T.value,
|
|
833
|
-
hasTooltip:
|
|
834
|
-
hasPdf:
|
|
835
|
-
hasXls:
|
|
836
|
-
hasImg:
|
|
837
|
-
hasSvg:
|
|
838
|
-
hasTable:
|
|
839
|
-
hasFullscreen:
|
|
840
|
-
hasAltCopy:
|
|
841
|
-
hasLabel:
|
|
808
|
+
hasTooltip: j.value.userOptions.buttons.tooltip && j.value.style.chart.tooltip.show,
|
|
809
|
+
hasPdf: j.value.userOptions.buttons.pdf,
|
|
810
|
+
hasXls: j.value.userOptions.buttons.csv,
|
|
811
|
+
hasImg: j.value.userOptions.buttons.img,
|
|
812
|
+
hasSvg: j.value.userOptions.buttons.svg,
|
|
813
|
+
hasTable: j.value.userOptions.buttons.table,
|
|
814
|
+
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
815
|
+
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
816
|
+
hasLabel: j.value.userOptions.buttons.labels,
|
|
842
817
|
isTooltip: B.value.showTooltip,
|
|
843
|
-
isFullscreen:
|
|
844
|
-
titles: { ...
|
|
818
|
+
isFullscreen: Q.value,
|
|
819
|
+
titles: { ...j.value.userOptions.buttonTitles },
|
|
845
820
|
chartElement: O.value,
|
|
846
|
-
position:
|
|
847
|
-
hasAnnotator:
|
|
848
|
-
isAnnotation:
|
|
849
|
-
callbacks:
|
|
850
|
-
printScale:
|
|
851
|
-
tableDialog:
|
|
852
|
-
isCursorPointer:
|
|
853
|
-
onToggleFullscreen:
|
|
854
|
-
onGeneratePdf: x(
|
|
855
|
-
onGenerateCsv:
|
|
856
|
-
onGenerateImage:
|
|
857
|
-
onGenerateSvg:
|
|
858
|
-
onToggleTable:
|
|
859
|
-
onToggleTooltip:
|
|
860
|
-
onToggleAnnotator:
|
|
861
|
-
onToggleLabels:
|
|
862
|
-
onCopyAlt:
|
|
863
|
-
style: _({ visibility: x(
|
|
821
|
+
position: j.value.userOptions.position,
|
|
822
|
+
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
823
|
+
isAnnotation: Pn.value,
|
|
824
|
+
callbacks: j.value.userOptions.callbacks,
|
|
825
|
+
printScale: j.value.userOptions.print.scale,
|
|
826
|
+
tableDialog: j.value.table.useDialog,
|
|
827
|
+
isCursorPointer: N.value,
|
|
828
|
+
onToggleFullscreen: An,
|
|
829
|
+
onGeneratePdf: x(on),
|
|
830
|
+
onGenerateCsv: kn,
|
|
831
|
+
onGenerateImage: x(Gn),
|
|
832
|
+
onGenerateSvg: x(Wn),
|
|
833
|
+
onToggleTable: jn,
|
|
834
|
+
onToggleTooltip: Mn,
|
|
835
|
+
onToggleAnnotator: Fn,
|
|
836
|
+
onToggleLabels: Nn,
|
|
837
|
+
onCopyAlt: Kn,
|
|
838
|
+
style: _({ visibility: x($t) ? x(Zt) ? "visible" : "hidden" : "visible" })
|
|
864
839
|
}, Be({ _: 2 }, [
|
|
865
840
|
e.$slots.menuIcon ? {
|
|
866
841
|
name: "menuIcon",
|
|
@@ -936,24 +911,24 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
936
911
|
fn: S(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
937
912
|
key: "12"
|
|
938
913
|
} : void 0
|
|
939
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : u("", !0),
|
|
914
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
940
915
|
f("div", it, [(v(), d("svg", {
|
|
941
916
|
ref_key: "svgRef",
|
|
942
|
-
ref:
|
|
917
|
+
ref: F,
|
|
943
918
|
xmlns: x(ue),
|
|
944
919
|
class: h({
|
|
945
|
-
"vue-data-ui-fullscreen--on":
|
|
946
|
-
"vue-data-ui-fulscreen--off":
|
|
947
|
-
resizing: Ht.value || x(
|
|
948
|
-
"vue-data-ui-no-transition": !x(
|
|
920
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
921
|
+
"vue-data-ui-fulscreen--off": !Q.value,
|
|
922
|
+
resizing: Ht.value || x(P),
|
|
923
|
+
"vue-data-ui-no-transition": !x(M)
|
|
949
924
|
}),
|
|
950
925
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
951
|
-
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${
|
|
926
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${j.value.style.chart.color}`),
|
|
952
927
|
"aria-describedby": `chart-instructions-${T.value}`,
|
|
953
928
|
tabindex: "0",
|
|
954
|
-
onFocus:
|
|
955
|
-
onBlur:
|
|
956
|
-
onKeydown:
|
|
929
|
+
onFocus: qn,
|
|
930
|
+
onBlur: Jn,
|
|
931
|
+
onKeydown: Yn
|
|
957
932
|
}, [
|
|
958
933
|
He(x(Et)),
|
|
959
934
|
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
@@ -975,7 +950,7 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
975
950
|
key: `gradient_${T.value}_${t}`,
|
|
976
951
|
stops: [[
|
|
977
952
|
"0%",
|
|
978
|
-
x(n)(x(re)(e.color, .05), 100 -
|
|
953
|
+
x(n)(x(re)(e.color, .05), 100 - j.value.style.chart.layout.rings.gradient.intensity),
|
|
979
954
|
1
|
|
980
955
|
], [
|
|
981
956
|
"100%",
|
|
@@ -990,105 +965,105 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
990
965
|
(v(!0), d(Re, null, qe(q.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
|
|
991
966
|
f("circle", {
|
|
992
967
|
class: h({
|
|
993
|
-
"vue-data-ui-transition": w.value && x(
|
|
994
|
-
"vue-rings-item-onload": !w.value &&
|
|
968
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
969
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
995
970
|
"vue-ui-rings-opacity": D.value !== null && D.value !== n
|
|
996
971
|
}),
|
|
997
972
|
style: _(`animation-delay:${n * 100}ms`),
|
|
998
|
-
stroke:
|
|
999
|
-
cx:
|
|
1000
|
-
cy:
|
|
1001
|
-
r:
|
|
1002
|
-
fill:
|
|
973
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
974
|
+
cx: I.value.x,
|
|
975
|
+
cy: En(t, n),
|
|
976
|
+
r: Tn(t),
|
|
977
|
+
fill: j.value.style.chart.layout.rings.gradient.underlayerColor
|
|
1003
978
|
}, null, 14, ct),
|
|
1004
979
|
f("circle", {
|
|
1005
980
|
class: h({
|
|
1006
|
-
"vue-data-ui-transition": w.value && x(
|
|
1007
|
-
"vue-rings-item-onload": !w.value &&
|
|
1008
|
-
"vue-ui-rings-shadow":
|
|
981
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
982
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
983
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1009
984
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1010
985
|
}),
|
|
1011
986
|
style: _(`animation-delay:${n * 100}ms`),
|
|
1012
|
-
stroke:
|
|
987
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
1013
988
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1014
|
-
cx:
|
|
1015
|
-
cy:
|
|
1016
|
-
r:
|
|
1017
|
-
fill:
|
|
989
|
+
cx: I.value.x,
|
|
990
|
+
cy: En(t, n),
|
|
991
|
+
r: Tn(t),
|
|
992
|
+
fill: j.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${T.value}_${n})` : t.color
|
|
1018
993
|
}, null, 14, lt),
|
|
1019
994
|
e.$slots.pattern ? (v(), d("circle", {
|
|
1020
995
|
key: 0,
|
|
1021
996
|
class: h({
|
|
1022
|
-
"vue-data-ui-transition": w.value && x(
|
|
1023
|
-
"vue-rings-item-onload": !w.value &&
|
|
1024
|
-
"vue-ui-rings-shadow":
|
|
997
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
998
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
999
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1025
1000
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1026
1001
|
}),
|
|
1027
1002
|
style: _(`animation-delay:${n * 100}ms`),
|
|
1028
|
-
stroke:
|
|
1003
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
1029
1004
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1030
|
-
cx:
|
|
1031
|
-
cy:
|
|
1032
|
-
r:
|
|
1005
|
+
cx: I.value.x,
|
|
1006
|
+
cy: En(t, n),
|
|
1007
|
+
r: Tn(t),
|
|
1033
1008
|
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`
|
|
1034
1009
|
}, null, 14, ut)) : u("", !0),
|
|
1035
1010
|
f("circle", {
|
|
1036
1011
|
stroke: "none",
|
|
1037
|
-
cx:
|
|
1038
|
-
cy:
|
|
1039
|
-
r:
|
|
1012
|
+
cx: I.value.x,
|
|
1013
|
+
cy: En(t, n),
|
|
1014
|
+
r: Tn(t),
|
|
1040
1015
|
fill: "transparent",
|
|
1041
|
-
onMouseenter: (e) =>
|
|
1042
|
-
onMouseleave: (e) =>
|
|
1043
|
-
onClick: (e) =>
|
|
1016
|
+
onMouseenter: (e) => On(t, n, "pointer"),
|
|
1017
|
+
onMouseleave: (e) => Sn(t, n),
|
|
1018
|
+
onClick: (e) => xn(t, n)
|
|
1044
1019
|
}, null, 40, dt),
|
|
1045
1020
|
B.value.showLabels ? (v(), d(Re, { key: 1 }, [
|
|
1046
1021
|
f("rect", {
|
|
1047
|
-
x:
|
|
1048
|
-
y:
|
|
1049
|
-
width: Math.abs(
|
|
1050
|
-
height:
|
|
1051
|
-
fill:
|
|
1052
|
-
rx:
|
|
1022
|
+
x: j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(t, n).x : I.value.x,
|
|
1023
|
+
y: Y(t, n).y - j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
1024
|
+
width: Math.abs(I.value.x - Y(t, n).x),
|
|
1025
|
+
height: j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1026
|
+
fill: j.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
1027
|
+
rx: j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1053
1028
|
class: h({
|
|
1054
|
-
"vue-data-ui-transition": w.value && x(
|
|
1055
|
-
"vue-rings-item-onload": !w.value &&
|
|
1056
|
-
"vue-ui-rings-shadow":
|
|
1029
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
1030
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
1031
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1057
1032
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1058
1033
|
})
|
|
1059
1034
|
}, null, 10, ft),
|
|
1060
1035
|
f("circle", {
|
|
1061
|
-
cx:
|
|
1062
|
-
cy:
|
|
1063
|
-
r:
|
|
1036
|
+
cx: Y(t, n).x,
|
|
1037
|
+
cy: Y(t, n).y,
|
|
1038
|
+
r: j.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
1064
1039
|
fill: t.color,
|
|
1065
|
-
stroke:
|
|
1040
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
1066
1041
|
class: h({
|
|
1067
|
-
"vue-data-ui-transition": w.value && x(
|
|
1068
|
-
"vue-rings-item-onload": !w.value &&
|
|
1069
|
-
"vue-ui-rings-shadow":
|
|
1042
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
1043
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
1044
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1070
1045
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1071
1046
|
})
|
|
1072
1047
|
}, null, 10, pt),
|
|
1073
1048
|
f("text", {
|
|
1074
|
-
"text-anchor":
|
|
1075
|
-
"font-size":
|
|
1076
|
-
fill:
|
|
1077
|
-
"font-weight":
|
|
1049
|
+
"text-anchor": j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1050
|
+
"font-size": j.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1051
|
+
fill: j.value.style.chart.layout.labels.dataLabels.color,
|
|
1052
|
+
"font-weight": j.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
1078
1053
|
class: h({
|
|
1079
|
-
"vue-data-ui-transition": w.value && x(
|
|
1080
|
-
"vue-rings-item-onload": !w.value &&
|
|
1081
|
-
"vue-ui-rings-shadow":
|
|
1054
|
+
"vue-data-ui-transition": w.value && x(M),
|
|
1055
|
+
"vue-rings-item-onload": !w.value && j.value.useCssAnimation && !x(P),
|
|
1056
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1082
1057
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1083
1058
|
}),
|
|
1084
|
-
transform: `translate(${
|
|
1085
|
-
onMouseenter: (e) =>
|
|
1086
|
-
onMouseleave: (e) =>
|
|
1087
|
-
onClick: (e) =>
|
|
1059
|
+
transform: `translate(${Y(t, n).x + (j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -j.value.style.chart.layout.labels.dataLabels.offsetX - 6 : j.value.style.chart.layout.labels.dataLabels.offsetX) + 6}, ${Y(t, n).y + j.value.style.chart.layout.labels.dataLabels.fontSize / 3})`,
|
|
1060
|
+
onMouseenter: (e) => On(t, n, "pointer"),
|
|
1061
|
+
onMouseleave: (e) => Sn(t, n),
|
|
1062
|
+
onClick: (e) => xn(t, n),
|
|
1088
1063
|
innerHTML: x(i)({
|
|
1089
|
-
content:
|
|
1090
|
-
fontSize:
|
|
1091
|
-
fill:
|
|
1064
|
+
content: wn(t),
|
|
1065
|
+
fontSize: j.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1066
|
+
fill: j.value.style.chart.layout.labels.dataLabels.color,
|
|
1092
1067
|
x: 0,
|
|
1093
1068
|
y: 0,
|
|
1094
1069
|
translateY: !0
|
|
@@ -1098,41 +1073,41 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1098
1073
|
]))), 128)),
|
|
1099
1074
|
b(e.$slots, "svg", { svg: {
|
|
1100
1075
|
...V.value,
|
|
1101
|
-
isPrintingImg: x(
|
|
1102
|
-
isPrintingSvg:
|
|
1076
|
+
isPrintingImg: x(rn) || x(an) || x(Hn),
|
|
1077
|
+
isPrintingSvg: x(Un)
|
|
1103
1078
|
} }, void 0, !0)
|
|
1104
1079
|
], 46, at)), e.$slots.hint ? (v(), d("div", ht, [b(e.$slots, "hint", g(m({
|
|
1105
|
-
hint:
|
|
1106
|
-
isVisible:
|
|
1080
|
+
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1081
|
+
isVisible: qt.value
|
|
1107
1082
|
})), void 0, !0)])) : u("", !0)]),
|
|
1108
|
-
e.$slots.watermark ? (v(), d("div", gt, [b(e.$slots, "watermark", g(m({ isPrinting: x(
|
|
1083
|
+
e.$slots.watermark ? (v(), d("div", gt, [b(e.$slots, "watermark", g(m({ isPrinting: x(rn) || x(an) || x(Hn) || x(Un) })), void 0, !0)])) : u("", !0),
|
|
1109
1084
|
f("div", { id: `legend-bottom-${T.value}` }, null, 8, _t),
|
|
1110
|
-
Ut.value && (
|
|
1085
|
+
Ut.value && (j.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(ze, {
|
|
1111
1086
|
key: 6,
|
|
1112
|
-
to:
|
|
1087
|
+
to: j.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1113
1088
|
}, [f("div", {
|
|
1114
1089
|
ref_key: "chartLegend",
|
|
1115
1090
|
ref: It
|
|
1116
|
-
}, [b(e.$slots, "legend", { legend: G.value }, () => [
|
|
1091
|
+
}, [b(e.$slots, "legend", { legend: G.value }, () => [j.value.style.chart.legend.show ? (v(), l(Ie, {
|
|
1117
1092
|
key: `legend_${Vt.value}`,
|
|
1118
1093
|
legendSet: G.value,
|
|
1119
|
-
config:
|
|
1120
|
-
isCursorPointer:
|
|
1094
|
+
config: yn.value,
|
|
1095
|
+
isCursorPointer: N.value,
|
|
1121
1096
|
onClickMarker: t[0] ||= ({ legend: e }) => U(e.uid)
|
|
1122
1097
|
}, Be({
|
|
1123
|
-
item: S(({ legend: e, index: t }) => [x(
|
|
1098
|
+
item: S(({ legend: e, index: t }) => [x(P) ? u("", !0) : (v(), d("div", {
|
|
1124
1099
|
key: 0,
|
|
1125
1100
|
onClick: (t) => U(e.uid),
|
|
1126
1101
|
style: _(`opacity:${H.value.includes(e.uid) ? .5 : 1}`)
|
|
1127
1102
|
}, Xe(e.display), 13, vt))]),
|
|
1128
|
-
legendToggle: S(() => [G.value.length > 2 &&
|
|
1103
|
+
legendToggle: S(() => [G.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !x(P) ? (v(), l(je, {
|
|
1129
1104
|
key: 0,
|
|
1130
|
-
backgroundColor:
|
|
1131
|
-
color:
|
|
1132
|
-
fontSize:
|
|
1105
|
+
backgroundColor: j.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1106
|
+
color: j.value.style.chart.legend.selectAllToggle.color,
|
|
1107
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
1133
1108
|
checked: H.value.length > 0,
|
|
1134
|
-
isCursorPointer:
|
|
1135
|
-
onToggle:
|
|
1109
|
+
isCursorPointer: N.value,
|
|
1110
|
+
onToggle: fn
|
|
1136
1111
|
}, null, 8, [
|
|
1137
1112
|
"backgroundColor",
|
|
1138
1113
|
"color",
|
|
@@ -1166,32 +1141,32 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1166
1141
|
dir: "auto"
|
|
1167
1142
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1168
1143
|
He(x(bt), {
|
|
1169
|
-
teleportTo:
|
|
1144
|
+
teleportTo: j.value.style.chart.tooltip.teleportTo,
|
|
1170
1145
|
show: B.value.showTooltip && E.value && H.value.length < C.dataset.length,
|
|
1171
|
-
backgroundColor:
|
|
1172
|
-
color:
|
|
1173
|
-
borderRadius:
|
|
1174
|
-
borderColor:
|
|
1175
|
-
borderWidth:
|
|
1176
|
-
fontSize:
|
|
1177
|
-
backgroundOpacity:
|
|
1178
|
-
position:
|
|
1179
|
-
offsetX:
|
|
1180
|
-
offsetY:
|
|
1146
|
+
backgroundColor: j.value.style.chart.tooltip.backgroundColor,
|
|
1147
|
+
color: j.value.style.chart.tooltip.color,
|
|
1148
|
+
borderRadius: j.value.style.chart.tooltip.borderRadius,
|
|
1149
|
+
borderColor: j.value.style.chart.tooltip.borderColor,
|
|
1150
|
+
borderWidth: j.value.style.chart.tooltip.borderWidth,
|
|
1151
|
+
fontSize: j.value.style.chart.tooltip.fontSize,
|
|
1152
|
+
backgroundOpacity: j.value.style.chart.tooltip.backgroundOpacity,
|
|
1153
|
+
position: j.value.style.chart.tooltip.position,
|
|
1154
|
+
offsetX: j.value.style.chart.tooltip.offsetX,
|
|
1155
|
+
offsetY: j.value.style.chart.tooltip.offsetY,
|
|
1181
1156
|
parent: O.value,
|
|
1182
1157
|
content: Nt.value,
|
|
1183
|
-
isFullscreen:
|
|
1184
|
-
isCustom:
|
|
1185
|
-
smooth:
|
|
1186
|
-
backdropFilter:
|
|
1187
|
-
smoothForce:
|
|
1188
|
-
smoothSnapThreshold:
|
|
1189
|
-
isA11yMode:
|
|
1190
|
-
a11yPosition:
|
|
1158
|
+
isFullscreen: Q.value,
|
|
1159
|
+
isCustom: j.value.style.chart.tooltip.customFormat && typeof j.value.style.chart.tooltip.customFormat == "function",
|
|
1160
|
+
smooth: j.value.style.chart.tooltip.smooth,
|
|
1161
|
+
backdropFilter: j.value.style.chart.tooltip.backdropFilter,
|
|
1162
|
+
smoothForce: j.value.style.chart.tooltip.smoothForce,
|
|
1163
|
+
smoothSnapThreshold: j.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1164
|
+
isA11yMode: Kt.value === "keyboard",
|
|
1165
|
+
a11yPosition: Gt.value
|
|
1191
1166
|
}, {
|
|
1192
|
-
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...
|
|
1193
|
-
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...
|
|
1194
|
-
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...
|
|
1167
|
+
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...Dn.value })), void 0, !0)]),
|
|
1168
|
+
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...Dn.value })), void 0, !0)]),
|
|
1169
|
+
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...Dn.value })), void 0, !0)]),
|
|
1195
1170
|
_: 3
|
|
1196
1171
|
}, 8, [
|
|
1197
1172
|
"teleportTo",
|
|
@@ -1217,21 +1192,21 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1217
1192
|
"isA11yMode",
|
|
1218
1193
|
"a11yPosition"
|
|
1219
1194
|
]),
|
|
1220
|
-
Mt.value &&
|
|
1195
|
+
Mt.value && j.value.userOptions.buttons.table ? (v(), l(Je($.value.component), Ue({ key: 8 }, $.value.props, {
|
|
1221
1196
|
ref_key: "tableUnit",
|
|
1222
1197
|
ref: k,
|
|
1223
|
-
onClose:
|
|
1198
|
+
onClose: Ln
|
|
1224
1199
|
}), Be({
|
|
1225
1200
|
content: S(() => [(v(), l(x(Ct), {
|
|
1226
1201
|
key: `table_${Bt.value}`,
|
|
1227
|
-
colNames:
|
|
1228
|
-
head:
|
|
1229
|
-
body:
|
|
1230
|
-
config:
|
|
1231
|
-
title:
|
|
1232
|
-
withCloseButton: !
|
|
1233
|
-
isCursorPointer:
|
|
1234
|
-
onClose:
|
|
1202
|
+
colNames: Z.value.colNames,
|
|
1203
|
+
head: Z.value.head,
|
|
1204
|
+
body: Z.value.body,
|
|
1205
|
+
config: Z.value.config,
|
|
1206
|
+
title: j.value.table.useDialog ? "" : $.value.title,
|
|
1207
|
+
withCloseButton: !j.value.table.useDialog,
|
|
1208
|
+
isCursorPointer: N.value,
|
|
1209
|
+
onClose: Ln
|
|
1235
1210
|
}, {
|
|
1236
1211
|
th: S(({ th: e }) => [f("div", {
|
|
1237
1212
|
innerHTML: e,
|
|
@@ -1252,26 +1227,26 @@ var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt
|
|
|
1252
1227
|
"isCursorPointer"
|
|
1253
1228
|
]))]),
|
|
1254
1229
|
_: 2
|
|
1255
|
-
}, [
|
|
1230
|
+
}, [j.value.table.useDialog ? {
|
|
1256
1231
|
name: "title",
|
|
1257
|
-
fn: S(() => [Ve(Xe(
|
|
1232
|
+
fn: S(() => [Ve(Xe($.value.title), 1)]),
|
|
1258
1233
|
key: "0"
|
|
1259
|
-
} : void 0,
|
|
1234
|
+
} : void 0, j.value.table.useDialog ? {
|
|
1260
1235
|
name: "actions",
|
|
1261
1236
|
fn: S(() => [f("button", {
|
|
1262
1237
|
tabindex: "0",
|
|
1263
1238
|
class: "vue-ui-user-options-button",
|
|
1264
|
-
onClick: t[1] ||= (e) =>
|
|
1265
|
-
style: _({ cursor:
|
|
1239
|
+
onClick: t[1] ||= (e) => kn(j.value.userOptions.callbacks.csv),
|
|
1240
|
+
style: _({ cursor: N.value ? "pointer" : "default" })
|
|
1266
1241
|
}, [He(x(xt), {
|
|
1267
1242
|
name: "fileCsv",
|
|
1268
|
-
stroke:
|
|
1243
|
+
stroke: $.value.props.color
|
|
1269
1244
|
}, null, 8, ["stroke"])], 4)]),
|
|
1270
1245
|
key: "1"
|
|
1271
1246
|
} : void 0]), 1040)) : u("", !0),
|
|
1272
|
-
b(e.$slots, "skeleton", {}, () => [x(
|
|
1247
|
+
b(e.$slots, "skeleton", {}, () => [x(P) ? (v(), l(ye, { key: 0 })) : u("", !0)], !0)
|
|
1273
1248
|
], 46, tt));
|
|
1274
1249
|
}
|
|
1275
|
-
}, [["__scopeId", "data-v-
|
|
1250
|
+
}, [["__scopeId", "data-v-93e9c460"]]);
|
|
1276
1251
|
//#endregion
|
|
1277
1252
|
export { et as n, bt as t };
|