vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as De } from "./
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
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-BuMGJ_a0.js";
|
|
3
|
+
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ge } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as _e } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as be } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as xe } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Ce } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as we } from "./img-DIQG5q8T.js";
|
|
12
|
+
import { n as Te } from "./Title-BODtwViI.js";
|
|
13
|
+
import { t as Ee } from "./Shape-BPMV94Ij.js";
|
|
14
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as je } from "./BaseLegendToggle-CtAPwzr2.js";
|
|
18
|
+
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Fe } from "./labelUtils-C5lnc_xc.js";
|
|
22
|
+
import { t as Ie } from "./Legend-CQTRlzK-.js";
|
|
23
|
+
import { t as Le } from "./vue_ui_rings-BVgD2aMn.js";
|
|
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";
|
|
23
25
|
//#region src/components/vue-ui-rings.vue
|
|
24
|
-
var
|
|
26
|
+
var et = /* @__PURE__ */ e({ default: () => bt }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
|
|
25
27
|
"xmlns",
|
|
26
28
|
"viewBox",
|
|
27
29
|
"aria-describedby"
|
|
28
|
-
],
|
|
30
|
+
], ot = ["width", "height"], st = { key: 1 }, ct = [
|
|
29
31
|
"stroke",
|
|
30
32
|
"cx",
|
|
31
33
|
"cy",
|
|
32
34
|
"r",
|
|
33
35
|
"fill"
|
|
34
|
-
],
|
|
36
|
+
], lt = [
|
|
35
37
|
"stroke",
|
|
36
38
|
"stroke-width",
|
|
37
39
|
"cx",
|
|
38
40
|
"cy",
|
|
39
41
|
"r",
|
|
40
42
|
"fill"
|
|
41
|
-
],
|
|
43
|
+
], ut = [
|
|
42
44
|
"stroke",
|
|
43
45
|
"stroke-width",
|
|
44
46
|
"cx",
|
|
45
47
|
"cy",
|
|
46
48
|
"r",
|
|
47
49
|
"fill"
|
|
48
|
-
],
|
|
50
|
+
], dt = [
|
|
49
51
|
"cx",
|
|
50
52
|
"cy",
|
|
51
53
|
"r",
|
|
52
54
|
"onMouseenter",
|
|
53
55
|
"onMouseleave",
|
|
54
56
|
"onClick"
|
|
55
|
-
],
|
|
57
|
+
], ft = [
|
|
56
58
|
"x",
|
|
57
59
|
"y",
|
|
58
60
|
"width",
|
|
59
61
|
"height",
|
|
60
62
|
"fill",
|
|
61
63
|
"rx"
|
|
62
|
-
],
|
|
64
|
+
], pt = [
|
|
63
65
|
"cx",
|
|
64
66
|
"cy",
|
|
65
67
|
"r",
|
|
66
68
|
"fill",
|
|
67
69
|
"stroke"
|
|
68
|
-
],
|
|
69
|
-
"x",
|
|
70
|
-
"y",
|
|
70
|
+
], mt = [
|
|
71
71
|
"text-anchor",
|
|
72
72
|
"font-size",
|
|
73
73
|
"fill",
|
|
74
74
|
"font-weight",
|
|
75
|
+
"transform",
|
|
75
76
|
"onMouseenter",
|
|
76
77
|
"onMouseleave",
|
|
77
78
|
"onClick",
|
|
78
79
|
"innerHTML"
|
|
79
|
-
],
|
|
80
|
+
], ht = {
|
|
80
81
|
key: 0,
|
|
81
82
|
style: {
|
|
82
83
|
position: "absolute",
|
|
@@ -86,10 +87,10 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
86
87
|
},
|
|
87
88
|
"data-dom-to-png-ignore": "",
|
|
88
89
|
"aria-hidden": "true"
|
|
89
|
-
},
|
|
90
|
+
}, gt = {
|
|
90
91
|
key: 5,
|
|
91
92
|
class: "vue-data-ui-watermark"
|
|
92
|
-
},
|
|
93
|
+
}, _t = ["id"], vt = ["onClick"], yt = ["innerHTML"], bt = /*#__PURE__*/ De({
|
|
93
94
|
__name: "vue-ui-rings",
|
|
94
95
|
props: {
|
|
95
96
|
config: {
|
|
@@ -106,11 +107,36 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
emits: ["selectLegend", "copyAlt"],
|
|
109
|
-
setup(e, { expose:
|
|
110
|
-
let
|
|
110
|
+
setup(e, { expose: De, emit: et }) {
|
|
111
|
+
let bt = p(() => import("./Tooltip-CMTGxeYO.js")), xt = p(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), St = p(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Ct = p(() => import("./DataTable-D4tM9s5Y.js")), wt = p(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Tt = p(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Et = p(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Dt = p(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_rings: Ot } = ge(), { isThemeValid: kt, warnInvalidTheme: At } = Se(), 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), Gt = y(!1), Kt = y(!1), A = y(null), qt = y({
|
|
111
112
|
x: 0,
|
|
112
113
|
y: 0
|
|
113
|
-
}), j = y("pointer"),
|
|
114
|
+
}), j = y("pointer"), Jt = y(!1), M = y(tn());
|
|
115
|
+
me({
|
|
116
|
+
config: () => M.value,
|
|
117
|
+
dataset: () => C.dataset,
|
|
118
|
+
component: "VueUiRings",
|
|
119
|
+
rules: [
|
|
120
|
+
he.singleSeries,
|
|
121
|
+
he.emptyArray,
|
|
122
|
+
{
|
|
123
|
+
test: (e) => e.length > 6,
|
|
124
|
+
message: [
|
|
125
|
+
"👀 The number of series is > 6. Consider:",
|
|
126
|
+
"",
|
|
127
|
+
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
128
|
+
"",
|
|
129
|
+
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
130
|
+
"",
|
|
131
|
+
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
let { transitionEnabled: N } = Ce({
|
|
137
|
+
config: () => M.value.transitions,
|
|
138
|
+
dataset: () => C.dataset
|
|
139
|
+
}), P = c(() => M.value.userOptions.useCursorPointer), Yt = c(() => a({
|
|
114
140
|
defaultConfig: {
|
|
115
141
|
userOptions: { show: !1 },
|
|
116
142
|
table: { show: !1 },
|
|
@@ -127,10 +153,10 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
127
153
|
} }
|
|
128
154
|
},
|
|
129
155
|
userConfig: M.value.skeletonConfig ?? {}
|
|
130
|
-
})), { loading:
|
|
131
|
-
...
|
|
156
|
+
})), { loading: F, FINAL_DATASET: Xt, manualLoading: Zt } = ve({
|
|
157
|
+
...Ze(C),
|
|
132
158
|
FINAL_CONFIG: M,
|
|
133
|
-
prepareConfig:
|
|
159
|
+
prepareConfig: tn,
|
|
134
160
|
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
135
161
|
{
|
|
136
162
|
name: "_",
|
|
@@ -158,163 +184,163 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
158
184
|
color: "#DBDBDB"
|
|
159
185
|
}
|
|
160
186
|
],
|
|
161
|
-
skeletonConfig:
|
|
187
|
+
skeletonConfig: a({
|
|
162
188
|
defaultConfig: M.value,
|
|
163
|
-
userConfig:
|
|
189
|
+
userConfig: Yt.value
|
|
164
190
|
})
|
|
165
|
-
}), { userOptionsVisible:
|
|
166
|
-
function
|
|
167
|
-
let e =
|
|
191
|
+
}), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = Ne({ config: M.value }), { svgRef: I } = Pe({ config: M.value.style.chart.title });
|
|
192
|
+
function tn() {
|
|
193
|
+
let e = xe({
|
|
168
194
|
userConfig: C.config,
|
|
169
|
-
defaultConfig:
|
|
195
|
+
defaultConfig: Ot
|
|
170
196
|
}), t = e.theme;
|
|
171
197
|
if (!t) return e;
|
|
172
|
-
if (!
|
|
173
|
-
let n =
|
|
174
|
-
userConfig:
|
|
198
|
+
if (!kt.value(e)) return At(e), e;
|
|
199
|
+
let n = xe({
|
|
200
|
+
userConfig: Le[t] || C.config,
|
|
175
201
|
defaultConfig: e
|
|
176
202
|
});
|
|
177
203
|
return {
|
|
178
|
-
...
|
|
204
|
+
...xe({
|
|
179
205
|
userConfig: C.config,
|
|
180
206
|
defaultConfig: n
|
|
181
207
|
}),
|
|
182
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[e.theme] || o
|
|
183
209
|
};
|
|
184
210
|
}
|
|
185
|
-
|
|
186
|
-
|
|
211
|
+
$e(() => C.config, (e) => {
|
|
212
|
+
F.value || (M.value = tn()), Qt.value = !M.value.userOptions.showOnChartHover, an(), zt.value += 1, Bt.value += 1, Vt.value += 1, B.value.showTable = M.value.table.show, B.value.showTooltip = M.value.style.chart.tooltip.show, B.value.showLabels = M.value.style.chart.layout.labels.dataLabels.show, V.value.width = M.value.style.chart.size, V.value.height = M.value.style.chart.size;
|
|
187
213
|
}, { deep: !0 });
|
|
188
|
-
let
|
|
189
|
-
let { markers: e } = M.value.style.chart.layout.labels.dataLabels, t =
|
|
214
|
+
let nn = c(() => {
|
|
215
|
+
let { markers: e } = M.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;
|
|
190
216
|
return {
|
|
191
|
-
x: M.value.responsive ? i : n / M.value.style.chart.size *
|
|
192
|
-
y: 0 / M.value.style.chart.size *
|
|
217
|
+
x: M.value.responsive ? i : n / M.value.style.chart.size * V.value.width,
|
|
218
|
+
y: 0 / M.value.style.chart.size * V.value.height
|
|
193
219
|
};
|
|
194
|
-
}),
|
|
195
|
-
x:
|
|
196
|
-
y:
|
|
220
|
+
}), L = c(() => ({
|
|
221
|
+
x: V.value.width / 2 + nn.value.x,
|
|
222
|
+
y: V.value.height / 2 + nn.value.y
|
|
197
223
|
}));
|
|
198
|
-
|
|
199
|
-
Array.isArray(e) && e.length > 0 && (
|
|
224
|
+
$e(() => C.dataset, (e) => {
|
|
225
|
+
Array.isArray(e) && e.length > 0 && (Zt.value = !1);
|
|
200
226
|
}, { deep: !0 });
|
|
201
|
-
let
|
|
202
|
-
|
|
203
|
-
|
|
227
|
+
let R = Ye(null), z = Ye(null);
|
|
228
|
+
Ke(() => {
|
|
229
|
+
Ut.value = !0, an();
|
|
204
230
|
});
|
|
205
|
-
let
|
|
206
|
-
function
|
|
207
|
-
if (
|
|
231
|
+
let rn = c(() => !!M.value.debug);
|
|
232
|
+
function an() {
|
|
233
|
+
if (se(C.dataset) ? (de({
|
|
208
234
|
componentName: "VueUiRings",
|
|
209
235
|
type: "dataset",
|
|
210
|
-
debug:
|
|
211
|
-
}),
|
|
212
|
-
e.values.length || (
|
|
236
|
+
debug: rn.value
|
|
237
|
+
}), Zt.value = !0) : C.dataset.forEach((e, t) => {
|
|
238
|
+
e.values.length || (de({
|
|
213
239
|
componentName: "VueUiRings",
|
|
214
240
|
type: "dataset",
|
|
215
|
-
debug:
|
|
216
|
-
}),
|
|
241
|
+
debug: rn.value
|
|
242
|
+
}), Zt.value = !0), ce({
|
|
217
243
|
datasetObject: e,
|
|
218
244
|
requiredAttributes: ["name", "values"]
|
|
219
245
|
}).forEach((e) => {
|
|
220
|
-
|
|
246
|
+
de({
|
|
221
247
|
componentName: "VueUiRings",
|
|
222
248
|
type: "datasetSerieAttribute",
|
|
223
249
|
property: e,
|
|
224
250
|
index: t,
|
|
225
|
-
debug:
|
|
251
|
+
debug: rn.value
|
|
226
252
|
});
|
|
227
253
|
});
|
|
228
|
-
}),
|
|
229
|
-
let e =
|
|
230
|
-
|
|
231
|
-
let { width: e, height: t } =
|
|
254
|
+
}), se(C.dataset) || (Zt.value = M.value.loading), M.value.responsive) {
|
|
255
|
+
let e = Oe(() => {
|
|
256
|
+
Ht.value = !0;
|
|
257
|
+
let { width: e, height: t } = ke({
|
|
232
258
|
chart: O.value,
|
|
233
|
-
title: M.value.style.chart.title.text ?
|
|
234
|
-
legend: M.value.style.chart.legend.show ?
|
|
235
|
-
source:
|
|
236
|
-
noTitle:
|
|
259
|
+
title: M.value.style.chart.title.text ? Ft.value : null,
|
|
260
|
+
legend: M.value.style.chart.legend.show ? It.value : null,
|
|
261
|
+
source: Lt.value,
|
|
262
|
+
noTitle: Rt.value
|
|
237
263
|
});
|
|
238
264
|
requestAnimationFrame(() => {
|
|
239
|
-
|
|
265
|
+
V.value.width = e, V.value.height = t - 12, Ht.value = !1;
|
|
240
266
|
});
|
|
241
267
|
});
|
|
242
|
-
|
|
268
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = O.value.parentNode, R.value.observe(z.value);
|
|
243
269
|
}
|
|
244
270
|
setTimeout(() => {
|
|
245
271
|
w.value = !0;
|
|
246
272
|
}, 600);
|
|
247
273
|
}
|
|
248
|
-
|
|
249
|
-
|
|
274
|
+
Ge(() => {
|
|
275
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
250
276
|
});
|
|
251
|
-
let { isPrinting:
|
|
277
|
+
let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = _e({
|
|
252
278
|
elementId: `rings_${T.value}`,
|
|
253
279
|
fileName: M.value.style.chart.title.text || "vue-ui-rings",
|
|
254
280
|
options: M.value.userOptions.print
|
|
255
|
-
}),
|
|
281
|
+
}), un = c(() => M.value.userOptions.show && !M.value.style.chart.title.text), dn = c(() => fe(M.value.customPalette)), B = y({
|
|
256
282
|
showTable: M.value.table.show,
|
|
257
283
|
showTooltip: M.value.style.chart.tooltip.show,
|
|
258
284
|
showLabels: M.value.style.chart.layout.labels.dataLabels.show
|
|
259
285
|
});
|
|
260
|
-
|
|
261
|
-
|
|
286
|
+
$e(M, () => {
|
|
287
|
+
B.value = {
|
|
262
288
|
showTable: M.value.table.show,
|
|
263
289
|
showTooltip: M.value.style.chart.tooltip.show,
|
|
264
290
|
showLabels: M.value.style.chart.layout.labels.dataLabels.show
|
|
265
291
|
};
|
|
266
292
|
}, { immediate: !0 });
|
|
267
|
-
let
|
|
293
|
+
let V = y({
|
|
268
294
|
height: M.value.style.chart.size,
|
|
269
295
|
width: M.value.style.chart.size
|
|
270
|
-
}),
|
|
271
|
-
function
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}),
|
|
296
|
+
}), fn = c(() => Math.min(V.value.height, V.value.width)), pn = et, H = y([]);
|
|
297
|
+
function mn() {
|
|
298
|
+
H.value.length ? H.value = [] : G.value.forEach((e) => {
|
|
299
|
+
H.value.push(e.uid);
|
|
300
|
+
}), hn();
|
|
275
301
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
302
|
+
function hn() {
|
|
303
|
+
pn("selectLegend", q.value.map((e) => ({
|
|
278
304
|
name: e.name,
|
|
279
305
|
color: e.color,
|
|
280
306
|
value: e.value
|
|
281
307
|
})));
|
|
282
308
|
}
|
|
283
|
-
function
|
|
284
|
-
if (
|
|
309
|
+
function U(e) {
|
|
310
|
+
if (H.value.includes(e)) H.value = H.value.filter((t) => t !== e);
|
|
285
311
|
else {
|
|
286
|
-
if (
|
|
287
|
-
|
|
312
|
+
if (H.value.length === W.value.length - 1) return;
|
|
313
|
+
H.value.push(e);
|
|
288
314
|
}
|
|
289
|
-
|
|
315
|
+
hn();
|
|
290
316
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
317
|
+
function gn(e) {
|
|
318
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiRings - There are no series to show."), null);
|
|
293
319
|
}
|
|
294
|
-
function
|
|
295
|
-
let t =
|
|
296
|
-
t !== null &&
|
|
320
|
+
function _n(e) {
|
|
321
|
+
let t = gn(e);
|
|
322
|
+
t !== null && H.value.includes(t.uid) && U(t.uid);
|
|
297
323
|
}
|
|
298
|
-
function
|
|
299
|
-
let t =
|
|
300
|
-
t !== null && (
|
|
324
|
+
function vn(e) {
|
|
325
|
+
let t = gn(e);
|
|
326
|
+
t !== null && (H.value.includes(t.uid) || U(t.uid));
|
|
301
327
|
}
|
|
302
|
-
let
|
|
303
|
-
function
|
|
304
|
-
return e /
|
|
328
|
+
let yn = c(() => Math.max(...W.value.filter((e) => !H.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
329
|
+
function bn(e) {
|
|
330
|
+
return e / yn.value;
|
|
305
331
|
}
|
|
306
|
-
let
|
|
332
|
+
let W = c(() => Xt.value.map(({ values: e, name: t, color: n = null }, r) => {
|
|
307
333
|
let i = te(e).reduce((e, t) => e + t, 0);
|
|
308
334
|
return {
|
|
309
335
|
name: t,
|
|
310
|
-
color: n ||
|
|
336
|
+
color: n || ne(n) || dn.value[r] || o[r] || o[r % o.length],
|
|
311
337
|
value: i,
|
|
312
|
-
proportion: i /
|
|
313
|
-
uid:
|
|
338
|
+
proportion: i / Xt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
339
|
+
uid: le(),
|
|
314
340
|
absoluteIndex: r
|
|
315
341
|
};
|
|
316
|
-
})),
|
|
317
|
-
let n =
|
|
342
|
+
})), G = c(() => W.value.map((e, t) => {
|
|
343
|
+
let n = oe(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
|
|
318
344
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
319
345
|
v: e.value,
|
|
320
346
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -322,43 +348,43 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
322
348
|
}), {
|
|
323
349
|
datapoint: e,
|
|
324
350
|
index: t
|
|
325
|
-
}), r = isNaN(e.value /
|
|
326
|
-
v: e.value /
|
|
351
|
+
}), r = isNaN(e.value / K.value) ? "-" : s({
|
|
352
|
+
v: e.value / K.value * 100,
|
|
327
353
|
s: "%",
|
|
328
354
|
r: M.value.style.chart.legend.roundingPercentage
|
|
329
|
-
}), i =
|
|
355
|
+
}), i = Tn({
|
|
330
356
|
showVal: M.value.style.chart.legend.showValue,
|
|
331
357
|
showPercentage: M.value.style.chart.legend.showPercentage,
|
|
332
358
|
val: n,
|
|
333
|
-
percentage:
|
|
359
|
+
percentage: H.value.includes(e.uid) ? "-%" : r
|
|
334
360
|
});
|
|
335
361
|
return {
|
|
336
362
|
...e,
|
|
337
363
|
shape: "circle",
|
|
338
|
-
opacity:
|
|
339
|
-
segregate: () =>
|
|
340
|
-
isSegregated:
|
|
364
|
+
opacity: H.value.includes(e.uid) ? .5 : 1,
|
|
365
|
+
segregate: () => U(e.uid),
|
|
366
|
+
isSegregated: H.value.includes(e.uid),
|
|
341
367
|
display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
342
368
|
};
|
|
343
|
-
}).toSorted((e, t) => t.value - e.value)),
|
|
369
|
+
}).toSorted((e, t) => t.value - e.value)), xn = c(() => ({
|
|
344
370
|
cy: "rings-div-legend",
|
|
345
371
|
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
346
372
|
color: M.value.style.chart.legend.color,
|
|
347
373
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
348
374
|
paddingBottom: 12,
|
|
349
375
|
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
350
|
-
})),
|
|
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) => ({
|
|
351
377
|
absoluteIndex: i,
|
|
352
378
|
uid: r,
|
|
353
379
|
name: e,
|
|
354
|
-
color: n ||
|
|
380
|
+
color: n || ne(n) || dn.value[a] || o[a] || o[a % o.length],
|
|
355
381
|
value: t,
|
|
356
|
-
proportion:
|
|
357
|
-
percentage: t /
|
|
358
|
-
strokeWidth: M.value.style.chart.layout.rings.strokeWidth *
|
|
382
|
+
proportion: bn(t),
|
|
383
|
+
percentage: t / K.value * 100,
|
|
384
|
+
strokeWidth: M.value.style.chart.layout.rings.strokeWidth * bn(t)
|
|
359
385
|
})).toSorted((e, t) => t.value - e.value));
|
|
360
|
-
function
|
|
361
|
-
return
|
|
386
|
+
function Sn() {
|
|
387
|
+
return q.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
362
388
|
name: e,
|
|
363
389
|
color: t,
|
|
364
390
|
value: n,
|
|
@@ -366,22 +392,22 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
366
392
|
percentage: i
|
|
367
393
|
}));
|
|
368
394
|
}
|
|
369
|
-
let
|
|
370
|
-
function
|
|
395
|
+
let J = c(() => fn.value - M.value.style.chart.layout.rings.strokeWidth * 2);
|
|
396
|
+
function Cn(e, t) {
|
|
371
397
|
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
372
398
|
datapoint: e,
|
|
373
399
|
seriesIndex: t
|
|
374
400
|
});
|
|
375
401
|
}
|
|
376
|
-
function
|
|
402
|
+
function wn(e, t) {
|
|
377
403
|
D.value = null, E.value = !1, A.value = null, j.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
378
404
|
datapoint: e,
|
|
379
405
|
seriesIndex: t
|
|
380
406
|
});
|
|
381
407
|
}
|
|
382
|
-
function
|
|
408
|
+
function Tn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
383
409
|
let i = M.value.style.chart.layout.labels.dataLabels;
|
|
384
|
-
return
|
|
410
|
+
return Fe({
|
|
385
411
|
config: i,
|
|
386
412
|
val: e,
|
|
387
413
|
percentage: t,
|
|
@@ -389,8 +415,8 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
389
415
|
showPercentage: r
|
|
390
416
|
});
|
|
391
417
|
}
|
|
392
|
-
function
|
|
393
|
-
let t = M.value.style.chart.layout.labels.dataLabels, n =
|
|
418
|
+
function En(e) {
|
|
419
|
+
let t = M.value.style.chart.layout.labels.dataLabels, n = oe(t.formatter, e.value, s({
|
|
394
420
|
p: t.prefix,
|
|
395
421
|
v: e.value,
|
|
396
422
|
s: t.suffix,
|
|
@@ -400,56 +426,56 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
400
426
|
s: "%",
|
|
401
427
|
r: t.roundingPercentage
|
|
402
428
|
});
|
|
403
|
-
return `${e.name}\n${
|
|
429
|
+
return `${e.name}\n${Tn({
|
|
404
430
|
val: n,
|
|
405
431
|
percentage: r,
|
|
406
432
|
showVal: t.showValue,
|
|
407
433
|
showPercentage: t.showPercentage
|
|
408
434
|
})}`;
|
|
409
435
|
}
|
|
410
|
-
function
|
|
411
|
-
return
|
|
436
|
+
function Y(e) {
|
|
437
|
+
return ie(J.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : J.value * e.proportion / 2 * .9);
|
|
412
438
|
}
|
|
413
|
-
function
|
|
414
|
-
return t === 0 ?
|
|
439
|
+
function Dn(e, t) {
|
|
440
|
+
return t === 0 ? L.value.y : L.value.y + J.value * q.value[0].proportion / 2 - J.value * e.proportion / 2 - 2 * (t + 1);
|
|
415
441
|
}
|
|
416
|
-
function
|
|
417
|
-
let n = M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(
|
|
442
|
+
function X(e, t) {
|
|
443
|
+
let n = M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(J.value / 2) : J.value / 2;
|
|
418
444
|
return {
|
|
419
|
-
x:
|
|
420
|
-
y:
|
|
445
|
+
x: L.value.x + n,
|
|
446
|
+
y: Dn(e, t) - Y(e)
|
|
421
447
|
};
|
|
422
448
|
}
|
|
423
|
-
let
|
|
424
|
-
function
|
|
449
|
+
let On = y(null);
|
|
450
|
+
function kn(e, t, n = "pointer") {
|
|
425
451
|
if (M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
426
452
|
datapoint: e,
|
|
427
453
|
seriesIndex: t
|
|
428
|
-
}),
|
|
429
|
-
|
|
454
|
+
}), H.value.length === C.dataset.length) return;
|
|
455
|
+
On.value = {
|
|
430
456
|
datapoint: e,
|
|
431
457
|
seriesIndex: t,
|
|
432
|
-
series:
|
|
458
|
+
series: q.value,
|
|
433
459
|
config: M.value
|
|
434
460
|
}, D.value = t, A.value = t, j.value = n;
|
|
435
|
-
let r =
|
|
436
|
-
if (
|
|
461
|
+
let r = q.value[t], i = M.value.style.chart.tooltip.customFormat;
|
|
462
|
+
if (pe(i) && ae(() => i({
|
|
437
463
|
seriesIndex: t,
|
|
438
464
|
datapoint: e,
|
|
439
|
-
series:
|
|
465
|
+
series: q.value,
|
|
440
466
|
config: M.value
|
|
441
|
-
})))
|
|
467
|
+
}))) Nt.value = i({
|
|
442
468
|
seriesIndex: t,
|
|
443
469
|
datapoint: e,
|
|
444
|
-
series:
|
|
470
|
+
series: q.value,
|
|
445
471
|
config: M.value
|
|
446
472
|
});
|
|
447
473
|
else {
|
|
448
474
|
let n = "";
|
|
449
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.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}" />${
|
|
475
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.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>${Tn({
|
|
450
476
|
showVal: M.value.style.chart.tooltip.showValue,
|
|
451
477
|
showPercentage: M.value.style.chart.tooltip.showPercentage,
|
|
452
|
-
val: `<span>${
|
|
478
|
+
val: `<span>${oe(M.value.style.chart.layout.labels.dataLabels.formatter, r.value, s({
|
|
453
479
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
454
480
|
v: r.value,
|
|
455
481
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -459,42 +485,42 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
459
485
|
seriesIndex: t
|
|
460
486
|
})}</span>`,
|
|
461
487
|
percentage: s({
|
|
462
|
-
v: r.value /
|
|
488
|
+
v: r.value / K.value * 100,
|
|
463
489
|
s: "%",
|
|
464
490
|
r: M.value.style.chart.tooltip.roundingPercentage
|
|
465
491
|
})
|
|
466
|
-
})}</b></div>`,
|
|
492
|
+
})}</b></div>`, Nt.value = n;
|
|
467
493
|
}
|
|
468
494
|
E.value = !0;
|
|
469
495
|
}
|
|
470
|
-
let
|
|
471
|
-
head:
|
|
496
|
+
let Z = c(() => ({
|
|
497
|
+
head: q.value.map((e) => ({
|
|
472
498
|
name: e.name,
|
|
473
499
|
color: e.color
|
|
474
500
|
})),
|
|
475
|
-
body:
|
|
476
|
-
})),
|
|
501
|
+
body: q.value.map((e) => e.value)
|
|
502
|
+
})), Q = c(() => {
|
|
477
503
|
let e = [
|
|
478
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>",
|
|
479
505
|
s({
|
|
480
506
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
481
|
-
v:
|
|
507
|
+
v: K.value,
|
|
482
508
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
483
509
|
r: M.value.table.td.roundingValue
|
|
484
510
|
}),
|
|
485
511
|
"100%"
|
|
486
|
-
], t =
|
|
512
|
+
], t = Z.value.head.map((e, t) => [
|
|
487
513
|
{
|
|
488
514
|
color: e.color,
|
|
489
515
|
name: e.name
|
|
490
516
|
},
|
|
491
517
|
s({
|
|
492
518
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
493
|
-
v:
|
|
519
|
+
v: Z.value.body[t],
|
|
494
520
|
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
495
521
|
r: M.value.table.td.roundingValue
|
|
496
522
|
}),
|
|
497
|
-
isNaN(
|
|
523
|
+
isNaN(Z.value.body[t] / K.value) ? "-" : (Z.value.body[t] / K.value * 100).toFixed(M.value.table.td.roundingPercentage) + "%"
|
|
498
524
|
]);
|
|
499
525
|
return {
|
|
500
526
|
head: e,
|
|
@@ -520,13 +546,13 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
520
546
|
]
|
|
521
547
|
};
|
|
522
548
|
});
|
|
523
|
-
function
|
|
524
|
-
|
|
525
|
-
let
|
|
549
|
+
function An(e = null) {
|
|
550
|
+
We(() => {
|
|
551
|
+
let n = Z.value.head.map((e, t) => [
|
|
526
552
|
[e.name],
|
|
527
|
-
[
|
|
528
|
-
[isNaN(
|
|
529
|
-
]),
|
|
553
|
+
[Z.value.body[t]],
|
|
554
|
+
[isNaN(Z.value.body[t] / K.value) ? "-" : Z.value.body[t] / K.value * 100]
|
|
555
|
+
]), i = r([
|
|
530
556
|
[M.value.style.chart.title.text],
|
|
531
557
|
[M.value.style.chart.title.subtitle.text],
|
|
532
558
|
[
|
|
@@ -534,33 +560,33 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
534
560
|
["val"],
|
|
535
561
|
["%"]
|
|
536
562
|
]
|
|
537
|
-
].concat(
|
|
538
|
-
e ? e(
|
|
539
|
-
csvContent:
|
|
563
|
+
].concat(n));
|
|
564
|
+
e ? e(i) : t({
|
|
565
|
+
csvContent: i,
|
|
540
566
|
title: M.value.style.chart.title.text || "vue-ui-rings"
|
|
541
567
|
});
|
|
542
568
|
});
|
|
543
569
|
}
|
|
544
|
-
let
|
|
545
|
-
function
|
|
546
|
-
|
|
570
|
+
let $ = y(!1);
|
|
571
|
+
function jn(e) {
|
|
572
|
+
$.value = e, Pt.value += 1;
|
|
547
573
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
574
|
+
function Mn() {
|
|
575
|
+
B.value.showTable = !B.value.showTable;
|
|
550
576
|
}
|
|
551
|
-
function
|
|
552
|
-
|
|
577
|
+
function Nn() {
|
|
578
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
553
579
|
}
|
|
554
|
-
function
|
|
555
|
-
|
|
580
|
+
function Pn() {
|
|
581
|
+
B.value.showLabels = !B.value.showLabels;
|
|
556
582
|
}
|
|
557
|
-
let
|
|
558
|
-
function
|
|
559
|
-
|
|
583
|
+
let Fn = y(!1);
|
|
584
|
+
function In() {
|
|
585
|
+
Fn.value = !Fn.value;
|
|
560
586
|
}
|
|
561
|
-
async function
|
|
587
|
+
async function Ln({ scale: e = 2 } = {}) {
|
|
562
588
|
if (!O.value) return;
|
|
563
|
-
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
589
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
564
590
|
domElement: O.value,
|
|
565
591
|
base64: !0,
|
|
566
592
|
img: !0,
|
|
@@ -575,20 +601,20 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
575
601
|
aspectRatio: r
|
|
576
602
|
};
|
|
577
603
|
}
|
|
578
|
-
let
|
|
579
|
-
let e = M.value.table.useDialog && !M.value.table.show, t =
|
|
604
|
+
let Rn = c(() => {
|
|
605
|
+
let e = M.value.table.useDialog && !M.value.table.show, t = B.value.showTable;
|
|
580
606
|
return {
|
|
581
|
-
component: e ?
|
|
607
|
+
component: e ? Dt : St,
|
|
582
608
|
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
583
609
|
props: e ? {
|
|
584
610
|
backgroundColor: M.value.table.th.backgroundColor,
|
|
585
611
|
color: M.value.table.th.color,
|
|
586
612
|
headerColor: M.value.table.th.color,
|
|
587
613
|
headerBg: M.value.table.th.backgroundColor,
|
|
588
|
-
isFullscreen:
|
|
614
|
+
isFullscreen: $.value,
|
|
589
615
|
fullscreenParent: O.value,
|
|
590
616
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
591
|
-
isCursorPointer:
|
|
617
|
+
isCursorPointer: P.value
|
|
592
618
|
} : {
|
|
593
619
|
hideDetails: !0,
|
|
594
620
|
config: {
|
|
@@ -606,70 +632,70 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
606
632
|
}
|
|
607
633
|
};
|
|
608
634
|
});
|
|
609
|
-
|
|
635
|
+
$e(() => B.value.showTable, (e) => {
|
|
610
636
|
M.value.table.show || (e && M.value.table.useDialog && k.value ? k.value.open() : "close" in k.value && k.value.close());
|
|
611
637
|
});
|
|
612
|
-
function
|
|
613
|
-
|
|
638
|
+
function zn() {
|
|
639
|
+
B.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
614
640
|
}
|
|
615
|
-
let
|
|
641
|
+
let Bn = c(() => G.value.map((e) => ({
|
|
616
642
|
...e,
|
|
617
643
|
name: e.display
|
|
618
|
-
}))),
|
|
619
|
-
svg:
|
|
644
|
+
}))), Vn = c(() => M.value.style.chart.backgroundColor), Hn = c(() => M.value.style.chart.legend), { exportSvg: Un, getSvg: Wn } = be({
|
|
645
|
+
svg: I,
|
|
620
646
|
title: c(() => M.value.style.chart.title),
|
|
621
|
-
legend:
|
|
622
|
-
legendItems:
|
|
623
|
-
backgroundColor:
|
|
647
|
+
legend: Hn,
|
|
648
|
+
legendItems: Bn,
|
|
649
|
+
backgroundColor: Vn
|
|
624
650
|
});
|
|
625
|
-
async function
|
|
626
|
-
|
|
651
|
+
async function Gn({ isCb: e }) {
|
|
652
|
+
Kt.value = !0, await We();
|
|
627
653
|
try {
|
|
628
654
|
if (e) {
|
|
629
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
655
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
|
|
630
656
|
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
631
657
|
blob: e,
|
|
632
658
|
url: t,
|
|
633
659
|
text: n,
|
|
634
660
|
dataUrl: r
|
|
635
661
|
}));
|
|
636
|
-
} else await Promise.resolve(
|
|
662
|
+
} else await Promise.resolve(Un());
|
|
637
663
|
} finally {
|
|
638
|
-
|
|
664
|
+
Kt.value = !1;
|
|
639
665
|
}
|
|
640
666
|
}
|
|
641
|
-
function
|
|
667
|
+
function Kn(e) {
|
|
642
668
|
if (e?.stage === "start") {
|
|
643
|
-
|
|
669
|
+
Gt.value = !0;
|
|
644
670
|
return;
|
|
645
671
|
}
|
|
646
672
|
if (e?.stage === "end") {
|
|
647
|
-
|
|
673
|
+
Gt.value = !1;
|
|
648
674
|
return;
|
|
649
675
|
}
|
|
650
|
-
|
|
676
|
+
ln();
|
|
651
677
|
}
|
|
652
|
-
async function
|
|
653
|
-
if (
|
|
678
|
+
async function qn() {
|
|
679
|
+
if (pn("copyAlt", {
|
|
654
680
|
config: M.value,
|
|
655
|
-
dataset:
|
|
681
|
+
dataset: q.value
|
|
656
682
|
}), !M.value.userOptions.callbacks.altCopy) {
|
|
657
683
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
658
684
|
return;
|
|
659
685
|
}
|
|
660
686
|
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
661
687
|
config: M.value,
|
|
662
|
-
dataset:
|
|
688
|
+
dataset: q.value
|
|
663
689
|
}));
|
|
664
690
|
}
|
|
665
|
-
function
|
|
666
|
-
A.value = null,
|
|
691
|
+
function Jn() {
|
|
692
|
+
A.value = null, Jt.value = !0;
|
|
667
693
|
}
|
|
668
|
-
function
|
|
669
|
-
A.value = null, j.value = "pointer", E.value = !1, D.value = null,
|
|
694
|
+
function Yn() {
|
|
695
|
+
A.value = null, j.value = "pointer", E.value = !1, D.value = null, Jt.value = !1;
|
|
670
696
|
}
|
|
671
|
-
function
|
|
672
|
-
if (!
|
|
697
|
+
function Xn(e) {
|
|
698
|
+
if (!I.value || Fn.value || document.activeElement !== I.value || !q.value.length || H.value.length === C.dataset.length) return;
|
|
673
699
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
674
700
|
if (!t && !n && !r && !i) return;
|
|
675
701
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -678,65 +704,65 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
678
704
|
}
|
|
679
705
|
if (r) {
|
|
680
706
|
if (A.value === null) return;
|
|
681
|
-
let e =
|
|
707
|
+
let e = q.value[A.value];
|
|
682
708
|
if (!e) return;
|
|
683
|
-
|
|
709
|
+
Cn(e, A.value);
|
|
684
710
|
return;
|
|
685
711
|
}
|
|
686
712
|
let a = A.value;
|
|
687
|
-
a === null || a < 0 || a >=
|
|
688
|
-
let ee =
|
|
689
|
-
ee && (
|
|
713
|
+
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
|
+
let ee = q.value[a];
|
|
715
|
+
ee && (Zn(a), kn(ee, a, "keyboard"));
|
|
690
716
|
}
|
|
691
|
-
function
|
|
692
|
-
if (!Number.isFinite(e) || !
|
|
693
|
-
let t =
|
|
717
|
+
function Zn(e) {
|
|
718
|
+
if (!Number.isFinite(e) || !I.value) return;
|
|
719
|
+
let t = q.value[e];
|
|
694
720
|
if (!t) return;
|
|
695
|
-
let n =
|
|
696
|
-
|
|
697
|
-
x: r.left + n.x /
|
|
698
|
-
y: r.top + n.y /
|
|
721
|
+
let n = X(t, e), r = I.value.getBoundingClientRect();
|
|
722
|
+
qt.value = {
|
|
723
|
+
x: r.left + n.x / V.value.width * r.width,
|
|
724
|
+
y: r.top + n.y / V.value.height * r.height
|
|
699
725
|
};
|
|
700
726
|
}
|
|
701
|
-
let
|
|
702
|
-
headers:
|
|
703
|
-
rows:
|
|
727
|
+
let Qn = c(() => ({
|
|
728
|
+
headers: Q.value?.colNames ?? [],
|
|
729
|
+
rows: Q.value?.a11yBody ?? []
|
|
704
730
|
}));
|
|
705
|
-
return
|
|
706
|
-
getData:
|
|
707
|
-
getImage:
|
|
708
|
-
generatePdf:
|
|
709
|
-
generateCsv:
|
|
710
|
-
generateImage:
|
|
711
|
-
generateSvg:
|
|
712
|
-
hideSeries:
|
|
713
|
-
showSeries:
|
|
714
|
-
toggleTable:
|
|
715
|
-
toggleTooltip:
|
|
716
|
-
toggleAnnotator:
|
|
717
|
-
toggleFullscreen:
|
|
718
|
-
toggleLabels:
|
|
719
|
-
copyAlt:
|
|
731
|
+
return De({
|
|
732
|
+
getData: Sn,
|
|
733
|
+
getImage: Ln,
|
|
734
|
+
generatePdf: cn,
|
|
735
|
+
generateCsv: An,
|
|
736
|
+
generateImage: ln,
|
|
737
|
+
generateSvg: Gn,
|
|
738
|
+
hideSeries: vn,
|
|
739
|
+
showSeries: _n,
|
|
740
|
+
toggleTable: Mn,
|
|
741
|
+
toggleTooltip: Nn,
|
|
742
|
+
toggleAnnotator: In,
|
|
743
|
+
toggleFullscreen: jn,
|
|
744
|
+
toggleLabels: Pn,
|
|
745
|
+
copyAlt: qn
|
|
720
746
|
}), (e, t) => (v(), d("div", {
|
|
721
747
|
ref_key: "ringsChart",
|
|
722
748
|
ref: O,
|
|
723
|
-
class: h(`vue-data-ui-component vue-ui-rings ${
|
|
749
|
+
class: h(`vue-data-ui-component vue-ui-rings ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
724
750
|
style: _(`font-family:${M.value.style.fontFamily};text-align:center;width:100%;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
725
751
|
id: `rings_${T.value}`,
|
|
726
752
|
onMouseleave: t[2] ||= (e) => {
|
|
727
|
-
D.value = null, E.value = !1, x(
|
|
753
|
+
D.value = null, E.value = !1, x($t)(!1);
|
|
728
754
|
},
|
|
729
|
-
onMouseenter: t[3] ||= () => x(
|
|
755
|
+
onMouseenter: t[3] ||= () => x($t)(!0)
|
|
730
756
|
}, [
|
|
731
757
|
f("div", {
|
|
732
758
|
id: `chart-instructions-${T.value}`,
|
|
733
759
|
class: "sr-only"
|
|
734
|
-
}, [f("p", null,
|
|
735
|
-
|
|
760
|
+
}, [f("p", null, Xe(M.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
|
|
761
|
+
Qn.value?.rows?.length ? (v(), l(Me, {
|
|
736
762
|
key: 0,
|
|
737
763
|
uid: T.value,
|
|
738
|
-
head:
|
|
739
|
-
body:
|
|
764
|
+
head: Qn.value.headers,
|
|
765
|
+
body: Qn.value.rows,
|
|
740
766
|
notice: M.value.a11y.translations.tableAvailable,
|
|
741
767
|
caption: M.value.a11y.translations.tableCaption
|
|
742
768
|
}, null, 8, [
|
|
@@ -746,14 +772,14 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
746
772
|
"notice",
|
|
747
773
|
"caption"
|
|
748
774
|
])) : u("", !0),
|
|
749
|
-
M.value.userOptions.buttons.annotator ? (v(), l(x(
|
|
775
|
+
M.value.userOptions.buttons.annotator ? (v(), l(x(wt), {
|
|
750
776
|
key: 1,
|
|
751
|
-
svgRef: x(
|
|
777
|
+
svgRef: x(I),
|
|
752
778
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
753
779
|
color: M.value.style.chart.color,
|
|
754
|
-
active:
|
|
755
|
-
isCursorPointer:
|
|
756
|
-
onClose:
|
|
780
|
+
active: Fn.value,
|
|
781
|
+
isCursorPointer: P.value,
|
|
782
|
+
onClose: In
|
|
757
783
|
}, {
|
|
758
784
|
"annotator-action-close": S(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
759
785
|
"annotator-action-color": S(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
|
|
@@ -769,20 +795,20 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
769
795
|
"active",
|
|
770
796
|
"isCursorPointer"
|
|
771
797
|
])) : u("", !0),
|
|
772
|
-
|
|
798
|
+
un.value ? (v(), d("div", {
|
|
773
799
|
key: 2,
|
|
774
800
|
ref_key: "noTitle",
|
|
775
|
-
ref:
|
|
801
|
+
ref: Rt,
|
|
776
802
|
class: "vue-data-ui-no-title-space",
|
|
777
803
|
style: "height:36px; width: 100%;background:transparent"
|
|
778
804
|
}, null, 512)) : u("", !0),
|
|
779
805
|
M.value.style.chart.title.text ? (v(), d("div", {
|
|
780
806
|
key: 3,
|
|
781
807
|
ref_key: "chartTitle",
|
|
782
|
-
ref:
|
|
808
|
+
ref: Ft,
|
|
783
809
|
style: "width:100%;background:transparent"
|
|
784
|
-
}, [(v(), l(
|
|
785
|
-
key: `title_${
|
|
810
|
+
}, [(v(), l(Te, {
|
|
811
|
+
key: `title_${zt.value}`,
|
|
786
812
|
config: {
|
|
787
813
|
title: {
|
|
788
814
|
cy: "rings-div-title",
|
|
@@ -794,15 +820,15 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
794
820
|
}
|
|
795
821
|
}
|
|
796
822
|
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
797
|
-
f("div", { id: `legend-top-${T.value}` }, null, 8,
|
|
798
|
-
M.value.userOptions.show &&
|
|
823
|
+
f("div", { id: `legend-top-${T.value}` }, null, 8, rt),
|
|
824
|
+
M.value.userOptions.show && Mt.value && (x(en) || x(Qt)) ? (v(), l(x(Tt), {
|
|
799
825
|
ref_key: "userOptionsRef",
|
|
800
|
-
ref:
|
|
801
|
-
key: `user_options_${
|
|
826
|
+
ref: Wt,
|
|
827
|
+
key: `user_options_${Pt.value}`,
|
|
802
828
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
803
829
|
color: M.value.style.chart.color,
|
|
804
|
-
isPrinting: x(
|
|
805
|
-
isImaging: x(
|
|
830
|
+
isPrinting: x(on),
|
|
831
|
+
isImaging: x(sn),
|
|
806
832
|
uid: T.value,
|
|
807
833
|
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
808
834
|
hasPdf: M.value.userOptions.buttons.pdf,
|
|
@@ -813,29 +839,29 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
813
839
|
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
814
840
|
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
815
841
|
hasLabel: M.value.userOptions.buttons.labels,
|
|
816
|
-
isTooltip:
|
|
817
|
-
isFullscreen:
|
|
842
|
+
isTooltip: B.value.showTooltip,
|
|
843
|
+
isFullscreen: $.value,
|
|
818
844
|
titles: { ...M.value.userOptions.buttonTitles },
|
|
819
845
|
chartElement: O.value,
|
|
820
846
|
position: M.value.userOptions.position,
|
|
821
847
|
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
822
|
-
isAnnotation:
|
|
848
|
+
isAnnotation: Fn.value,
|
|
823
849
|
callbacks: M.value.userOptions.callbacks,
|
|
824
850
|
printScale: M.value.userOptions.print.scale,
|
|
825
851
|
tableDialog: M.value.table.useDialog,
|
|
826
|
-
isCursorPointer:
|
|
827
|
-
onToggleFullscreen:
|
|
828
|
-
onGeneratePdf: x(
|
|
829
|
-
onGenerateCsv:
|
|
830
|
-
onGenerateImage:
|
|
831
|
-
onGenerateSvg:
|
|
832
|
-
onToggleTable:
|
|
833
|
-
onToggleTooltip:
|
|
834
|
-
onToggleAnnotator:
|
|
835
|
-
onToggleLabels:
|
|
836
|
-
onCopyAlt:
|
|
837
|
-
style: _({ visibility: x(
|
|
838
|
-
},
|
|
852
|
+
isCursorPointer: P.value,
|
|
853
|
+
onToggleFullscreen: jn,
|
|
854
|
+
onGeneratePdf: x(cn),
|
|
855
|
+
onGenerateCsv: An,
|
|
856
|
+
onGenerateImage: Kn,
|
|
857
|
+
onGenerateSvg: Gn,
|
|
858
|
+
onToggleTable: Mn,
|
|
859
|
+
onToggleTooltip: Nn,
|
|
860
|
+
onToggleAnnotator: In,
|
|
861
|
+
onToggleLabels: Pn,
|
|
862
|
+
onCopyAlt: qn,
|
|
863
|
+
style: _({ visibility: x(en) ? x(Qt) ? "visible" : "hidden" : "visible" })
|
|
864
|
+
}, Be({ _: 2 }, [
|
|
839
865
|
e.$slots.menuIcon ? {
|
|
840
866
|
name: "menuIcon",
|
|
841
867
|
fn: S(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
|
|
@@ -911,33 +937,34 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
911
937
|
key: "12"
|
|
912
938
|
} : void 0
|
|
913
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
|
-
f("div",
|
|
940
|
+
f("div", it, [(v(), d("svg", {
|
|
915
941
|
ref_key: "svgRef",
|
|
916
|
-
ref:
|
|
942
|
+
ref: I,
|
|
917
943
|
xmlns: x(ue),
|
|
918
944
|
class: h({
|
|
919
|
-
"vue-data-ui-fullscreen--on":
|
|
920
|
-
"vue-data-ui-fulscreen--off":
|
|
921
|
-
resizing:
|
|
945
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
946
|
+
"vue-data-ui-fulscreen--off": !$.value,
|
|
947
|
+
resizing: Ht.value || x(F),
|
|
948
|
+
"vue-data-ui-no-transition": !x(N)
|
|
922
949
|
}),
|
|
923
|
-
viewBox: `0 0 ${
|
|
950
|
+
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
924
951
|
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${M.value.style.chart.color}`),
|
|
925
952
|
"aria-describedby": `chart-instructions-${T.value}`,
|
|
926
953
|
tabindex: "0",
|
|
927
|
-
onFocus:
|
|
928
|
-
onBlur:
|
|
929
|
-
onKeydown:
|
|
954
|
+
onFocus: Jn,
|
|
955
|
+
onBlur: Yn,
|
|
956
|
+
onKeydown: Xn
|
|
930
957
|
}, [
|
|
931
|
-
|
|
958
|
+
He(x(Et)),
|
|
932
959
|
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
933
960
|
key: 0,
|
|
934
961
|
x: 0,
|
|
935
962
|
y: 0,
|
|
936
|
-
width:
|
|
937
|
-
height:
|
|
963
|
+
width: V.value.width <= 0 ? 10 : V.value.width,
|
|
964
|
+
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
938
965
|
style: { pointerEvents: "none" }
|
|
939
|
-
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
940
|
-
f("defs", null, [(v(!0), d(
|
|
966
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : u("", !0),
|
|
967
|
+
f("defs", null, [(v(!0), d(Re, null, qe(q.value, (e, t) => (v(), l(Ae, {
|
|
941
968
|
t: "radial",
|
|
942
969
|
cx: "50%",
|
|
943
970
|
cy: "30%",
|
|
@@ -948,7 +975,7 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
948
975
|
key: `gradient_${T.value}_${t}`,
|
|
949
976
|
stops: [[
|
|
950
977
|
"0%",
|
|
951
|
-
x(
|
|
978
|
+
x(n)(x(re)(e.color, .05), 100 - M.value.style.chart.layout.rings.gradient.intensity),
|
|
952
979
|
1
|
|
953
980
|
], [
|
|
954
981
|
"100%",
|
|
@@ -956,157 +983,156 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
956
983
|
1
|
|
957
984
|
]]
|
|
958
985
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
959
|
-
e.$slots.pattern ? (v(), d("g",
|
|
986
|
+
e.$slots.pattern ? (v(), d("g", st, [(v(!0), d(Re, null, qe(q.value, (t) => (v(), d("defs", null, [b(e.$slots, "pattern", Ue({ ref_for: !0 }, {
|
|
960
987
|
seriesIndex: t.absoluteIndex,
|
|
961
988
|
patternId: `pattern_${T.value}_${t.absoluteIndex}`
|
|
962
989
|
}), void 0, !0)]))), 256))])) : u("", !0),
|
|
963
|
-
(v(!0), d(
|
|
990
|
+
(v(!0), d(Re, null, qe(q.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
|
|
964
991
|
f("circle", {
|
|
965
992
|
class: h({
|
|
966
|
-
"vue-ui-
|
|
967
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
993
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
994
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
968
995
|
"vue-ui-rings-opacity": D.value !== null && D.value !== n
|
|
969
996
|
}),
|
|
970
997
|
style: _(`animation-delay:${n * 100}ms`),
|
|
971
998
|
stroke: M.value.style.chart.layout.rings.stroke,
|
|
972
|
-
cx:
|
|
973
|
-
cy:
|
|
974
|
-
r:
|
|
999
|
+
cx: L.value.x,
|
|
1000
|
+
cy: Dn(t, n),
|
|
1001
|
+
r: Y(t),
|
|
975
1002
|
fill: M.value.style.chart.layout.rings.gradient.underlayerColor
|
|
976
|
-
}, null, 14,
|
|
1003
|
+
}, null, 14, ct),
|
|
977
1004
|
f("circle", {
|
|
978
1005
|
class: h({
|
|
979
|
-
"vue-ui-
|
|
980
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
1006
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
1007
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
981
1008
|
"vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
|
|
982
1009
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
983
1010
|
}),
|
|
984
1011
|
style: _(`animation-delay:${n * 100}ms`),
|
|
985
1012
|
stroke: M.value.style.chart.layout.rings.stroke,
|
|
986
1013
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
987
|
-
cx:
|
|
988
|
-
cy:
|
|
989
|
-
r:
|
|
1014
|
+
cx: L.value.x,
|
|
1015
|
+
cy: Dn(t, n),
|
|
1016
|
+
r: Y(t),
|
|
990
1017
|
fill: M.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${T.value}_${n})` : t.color
|
|
991
|
-
}, null, 14,
|
|
1018
|
+
}, null, 14, lt),
|
|
992
1019
|
e.$slots.pattern ? (v(), d("circle", {
|
|
993
1020
|
key: 0,
|
|
994
1021
|
class: h({
|
|
995
|
-
"vue-ui-
|
|
996
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
1022
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
1023
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
997
1024
|
"vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
|
|
998
1025
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
999
1026
|
}),
|
|
1000
1027
|
style: _(`animation-delay:${n * 100}ms`),
|
|
1001
1028
|
stroke: M.value.style.chart.layout.rings.stroke,
|
|
1002
1029
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1003
|
-
cx:
|
|
1004
|
-
cy:
|
|
1005
|
-
r:
|
|
1030
|
+
cx: L.value.x,
|
|
1031
|
+
cy: Dn(t, n),
|
|
1032
|
+
r: Y(t),
|
|
1006
1033
|
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`
|
|
1007
|
-
}, null, 14,
|
|
1034
|
+
}, null, 14, ut)) : u("", !0),
|
|
1008
1035
|
f("circle", {
|
|
1009
1036
|
stroke: "none",
|
|
1010
|
-
cx:
|
|
1011
|
-
cy:
|
|
1012
|
-
r:
|
|
1037
|
+
cx: L.value.x,
|
|
1038
|
+
cy: Dn(t, n),
|
|
1039
|
+
r: Y(t),
|
|
1013
1040
|
fill: "transparent",
|
|
1014
|
-
onMouseenter: (e) =>
|
|
1015
|
-
onMouseleave: (e) =>
|
|
1016
|
-
onClick: (e) =>
|
|
1017
|
-
}, null, 40,
|
|
1018
|
-
|
|
1041
|
+
onMouseenter: (e) => kn(t, n, "pointer"),
|
|
1042
|
+
onMouseleave: (e) => wn(t, n),
|
|
1043
|
+
onClick: (e) => Cn(t, n)
|
|
1044
|
+
}, null, 40, dt),
|
|
1045
|
+
B.value.showLabels ? (v(), d(Re, { key: 1 }, [
|
|
1019
1046
|
f("rect", {
|
|
1020
|
-
x: M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ?
|
|
1021
|
-
y:
|
|
1022
|
-
width: Math.abs(
|
|
1047
|
+
x: M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? X(t, n).x : L.value.x,
|
|
1048
|
+
y: X(t, n).y - M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
1049
|
+
width: Math.abs(L.value.x - X(t, n).x),
|
|
1023
1050
|
height: M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1024
1051
|
fill: M.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
1025
1052
|
rx: M.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1026
1053
|
class: h({
|
|
1027
|
-
"vue-ui-
|
|
1028
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
1054
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
1055
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
1029
1056
|
"vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
|
|
1030
1057
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1031
1058
|
})
|
|
1032
|
-
}, null, 10,
|
|
1059
|
+
}, null, 10, ft),
|
|
1033
1060
|
f("circle", {
|
|
1034
|
-
cx:
|
|
1035
|
-
cy:
|
|
1061
|
+
cx: X(t, n).x,
|
|
1062
|
+
cy: X(t, n).y,
|
|
1036
1063
|
r: M.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
1037
1064
|
fill: t.color,
|
|
1038
1065
|
stroke: M.value.style.chart.backgroundColor,
|
|
1039
1066
|
class: h({
|
|
1040
|
-
"vue-ui-
|
|
1041
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
1067
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
1068
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
1042
1069
|
"vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
|
|
1043
1070
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1044
1071
|
})
|
|
1045
|
-
}, null, 10,
|
|
1072
|
+
}, null, 10, pt),
|
|
1046
1073
|
f("text", {
|
|
1047
|
-
x: Y(t, n).x + (M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -M.value.style.chart.layout.labels.dataLabels.offsetX : M.value.style.chart.layout.labels.dataLabels.offsetX),
|
|
1048
|
-
y: Y(t, n).y + M.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
1049
1074
|
"text-anchor": M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1050
1075
|
"font-size": M.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1051
1076
|
fill: M.value.style.chart.layout.labels.dataLabels.color,
|
|
1052
1077
|
"font-weight": M.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
1053
1078
|
class: h({
|
|
1054
|
-
"vue-ui-
|
|
1055
|
-
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(
|
|
1079
|
+
"vue-data-ui-transition": w.value && x(N),
|
|
1080
|
+
"vue-rings-item-onload": !w.value && M.value.useCssAnimation && !x(F),
|
|
1056
1081
|
"vue-ui-rings-shadow": M.value.style.chart.layout.rings.useShadow,
|
|
1057
1082
|
"vue-ui-rings-blur": D.value !== null && D.value !== n
|
|
1058
1083
|
}),
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1084
|
+
transform: `translate(${X(t, n).x + (M.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -M.value.style.chart.layout.labels.dataLabels.offsetX - 6 : M.value.style.chart.layout.labels.dataLabels.offsetX) + 6}, ${X(t, n).y + M.value.style.chart.layout.labels.dataLabels.fontSize / 3})`,
|
|
1085
|
+
onMouseenter: (e) => kn(t, n, "pointer"),
|
|
1086
|
+
onMouseleave: (e) => wn(t, n),
|
|
1087
|
+
onClick: (e) => Cn(t, n),
|
|
1088
|
+
innerHTML: x(i)({
|
|
1089
|
+
content: En(t),
|
|
1064
1090
|
fontSize: M.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1065
1091
|
fill: M.value.style.chart.layout.labels.dataLabels.color,
|
|
1066
|
-
x:
|
|
1067
|
-
y:
|
|
1092
|
+
x: 0,
|
|
1093
|
+
y: 0,
|
|
1068
1094
|
translateY: !0
|
|
1069
1095
|
})
|
|
1070
|
-
}, null, 42,
|
|
1096
|
+
}, null, 42, mt)
|
|
1071
1097
|
], 64)) : u("", !0)
|
|
1072
|
-
]))),
|
|
1098
|
+
]))), 128)),
|
|
1073
1099
|
b(e.$slots, "svg", { svg: {
|
|
1074
|
-
...
|
|
1075
|
-
isPrintingImg: x(
|
|
1076
|
-
isPrintingSvg:
|
|
1100
|
+
...V.value,
|
|
1101
|
+
isPrintingImg: x(on) || x(sn) || Gt.value,
|
|
1102
|
+
isPrintingSvg: Kt.value
|
|
1077
1103
|
} }, void 0, !0)
|
|
1078
|
-
], 46,
|
|
1104
|
+
], 46, at)), e.$slots.hint ? (v(), d("div", ht, [b(e.$slots, "hint", g(m({
|
|
1079
1105
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1080
|
-
isVisible:
|
|
1106
|
+
isVisible: Jt.value
|
|
1081
1107
|
})), void 0, !0)])) : u("", !0)]),
|
|
1082
|
-
e.$slots.watermark ? (v(), d("div",
|
|
1083
|
-
f("div", { id: `legend-bottom-${T.value}` }, null, 8,
|
|
1084
|
-
|
|
1108
|
+
e.$slots.watermark ? (v(), d("div", gt, [b(e.$slots, "watermark", g(m({ isPrinting: x(on) || x(sn) || Gt.value || Kt.value })), void 0, !0)])) : u("", !0),
|
|
1109
|
+
f("div", { id: `legend-bottom-${T.value}` }, null, 8, _t),
|
|
1110
|
+
Ut.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(ze, {
|
|
1085
1111
|
key: 6,
|
|
1086
1112
|
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1087
1113
|
}, [f("div", {
|
|
1088
1114
|
ref_key: "chartLegend",
|
|
1089
|
-
ref:
|
|
1090
|
-
}, [b(e.$slots, "legend", { legend:
|
|
1091
|
-
key: `legend_${
|
|
1092
|
-
legendSet:
|
|
1093
|
-
config:
|
|
1094
|
-
isCursorPointer:
|
|
1095
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1096
|
-
},
|
|
1097
|
-
item: S(({ legend: e, index: t }) => [x(
|
|
1115
|
+
ref: It
|
|
1116
|
+
}, [b(e.$slots, "legend", { legend: G.value }, () => [M.value.style.chart.legend.show ? (v(), l(Ie, {
|
|
1117
|
+
key: `legend_${Vt.value}`,
|
|
1118
|
+
legendSet: G.value,
|
|
1119
|
+
config: xn.value,
|
|
1120
|
+
isCursorPointer: P.value,
|
|
1121
|
+
onClickMarker: t[0] ||= ({ legend: e }) => U(e.uid)
|
|
1122
|
+
}, Be({
|
|
1123
|
+
item: S(({ legend: e, index: t }) => [x(F) ? u("", !0) : (v(), d("div", {
|
|
1098
1124
|
key: 0,
|
|
1099
|
-
onClick: (t) =>
|
|
1100
|
-
style: _(`opacity:${
|
|
1101
|
-
},
|
|
1102
|
-
legendToggle: S(() => [
|
|
1125
|
+
onClick: (t) => U(e.uid),
|
|
1126
|
+
style: _(`opacity:${H.value.includes(e.uid) ? .5 : 1}`)
|
|
1127
|
+
}, Xe(e.display), 13, vt))]),
|
|
1128
|
+
legendToggle: S(() => [G.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !x(F) ? (v(), l(je, {
|
|
1103
1129
|
key: 0,
|
|
1104
1130
|
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1105
1131
|
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1106
1132
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
1107
|
-
checked:
|
|
1108
|
-
isCursorPointer:
|
|
1109
|
-
onToggle:
|
|
1133
|
+
checked: H.value.length > 0,
|
|
1134
|
+
isCursorPointer: P.value,
|
|
1135
|
+
onToggle: mn
|
|
1110
1136
|
}, null, 8, [
|
|
1111
1137
|
"backgroundColor",
|
|
1112
1138
|
"color",
|
|
@@ -1117,7 +1143,7 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1117
1143
|
_: 2
|
|
1118
1144
|
}, [e.$slots.pattern ? {
|
|
1119
1145
|
name: "legend-pattern",
|
|
1120
|
-
fn: S(({ legend: e, index: t }) => [
|
|
1146
|
+
fn: S(({ legend: e, index: t }) => [He(Ee, {
|
|
1121
1147
|
shape: e.shape,
|
|
1122
1148
|
radius: 30,
|
|
1123
1149
|
stroke: "none",
|
|
@@ -1136,12 +1162,12 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1136
1162
|
e.$slots.source ? (v(), d("div", {
|
|
1137
1163
|
key: 7,
|
|
1138
1164
|
ref_key: "source",
|
|
1139
|
-
ref:
|
|
1165
|
+
ref: Lt,
|
|
1140
1166
|
dir: "auto"
|
|
1141
1167
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1142
|
-
|
|
1168
|
+
He(x(bt), {
|
|
1143
1169
|
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1144
|
-
show:
|
|
1170
|
+
show: B.value.showTooltip && E.value && H.value.length < C.dataset.length,
|
|
1145
1171
|
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1146
1172
|
color: M.value.style.chart.tooltip.color,
|
|
1147
1173
|
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
@@ -1153,19 +1179,19 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1153
1179
|
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1154
1180
|
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1155
1181
|
parent: O.value,
|
|
1156
|
-
content:
|
|
1157
|
-
isFullscreen:
|
|
1182
|
+
content: Nt.value,
|
|
1183
|
+
isFullscreen: $.value,
|
|
1158
1184
|
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1159
1185
|
smooth: M.value.style.chart.tooltip.smooth,
|
|
1160
1186
|
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1161
1187
|
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1162
1188
|
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1163
1189
|
isA11yMode: j.value === "keyboard",
|
|
1164
|
-
a11yPosition:
|
|
1190
|
+
a11yPosition: qt.value
|
|
1165
1191
|
}, {
|
|
1166
|
-
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...
|
|
1167
|
-
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...
|
|
1168
|
-
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...
|
|
1192
|
+
"tooltip-before": S(() => [b(e.$slots, "tooltip-before", g(m({ ...On.value })), void 0, !0)]),
|
|
1193
|
+
tooltip: S(() => [b(e.$slots, "tooltip", g(m({ ...On.value })), void 0, !0)]),
|
|
1194
|
+
"tooltip-after": S(() => [b(e.$slots, "tooltip-after", g(m({ ...On.value })), void 0, !0)]),
|
|
1169
1195
|
_: 3
|
|
1170
1196
|
}, 8, [
|
|
1171
1197
|
"teleportTo",
|
|
@@ -1191,21 +1217,21 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1191
1217
|
"isA11yMode",
|
|
1192
1218
|
"a11yPosition"
|
|
1193
1219
|
]),
|
|
1194
|
-
|
|
1220
|
+
Mt.value && M.value.userOptions.buttons.table ? (v(), l(Je(Rn.value.component), Ue({ key: 8 }, Rn.value.props, {
|
|
1195
1221
|
ref_key: "tableUnit",
|
|
1196
1222
|
ref: k,
|
|
1197
|
-
onClose:
|
|
1198
|
-
}),
|
|
1199
|
-
content: S(() => [(v(), l(x(
|
|
1200
|
-
key: `table_${
|
|
1201
|
-
colNames:
|
|
1202
|
-
head:
|
|
1203
|
-
body:
|
|
1204
|
-
config:
|
|
1205
|
-
title: M.value.table.useDialog ? "" :
|
|
1223
|
+
onClose: zn
|
|
1224
|
+
}), Be({
|
|
1225
|
+
content: S(() => [(v(), l(x(Ct), {
|
|
1226
|
+
key: `table_${Bt.value}`,
|
|
1227
|
+
colNames: Q.value.colNames,
|
|
1228
|
+
head: Q.value.head,
|
|
1229
|
+
body: Q.value.body,
|
|
1230
|
+
config: Q.value.config,
|
|
1231
|
+
title: M.value.table.useDialog ? "" : Rn.value.title,
|
|
1206
1232
|
withCloseButton: !M.value.table.useDialog,
|
|
1207
|
-
isCursorPointer:
|
|
1208
|
-
onClose:
|
|
1233
|
+
isCursorPointer: P.value,
|
|
1234
|
+
onClose: zn
|
|
1209
1235
|
}, {
|
|
1210
1236
|
th: S(({ th: e }) => [f("div", {
|
|
1211
1237
|
innerHTML: e,
|
|
@@ -1213,8 +1239,8 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1213
1239
|
display: "flex",
|
|
1214
1240
|
"align-items": "center"
|
|
1215
1241
|
}
|
|
1216
|
-
}, null, 8,
|
|
1217
|
-
td: S(({ td: e }) => [
|
|
1242
|
+
}, null, 8, yt)]),
|
|
1243
|
+
td: S(({ td: e }) => [Ve(Xe(e.name || e), 1)]),
|
|
1218
1244
|
_: 1
|
|
1219
1245
|
}, 8, [
|
|
1220
1246
|
"colNames",
|
|
@@ -1228,24 +1254,24 @@ var Ze = /* @__PURE__ */ e({ default: () => _t }), Qe = ["id"], $e = ["id"], et
|
|
|
1228
1254
|
_: 2
|
|
1229
1255
|
}, [M.value.table.useDialog ? {
|
|
1230
1256
|
name: "title",
|
|
1231
|
-
fn: S(() => [
|
|
1257
|
+
fn: S(() => [Ve(Xe(Rn.value.title), 1)]),
|
|
1232
1258
|
key: "0"
|
|
1233
1259
|
} : void 0, M.value.table.useDialog ? {
|
|
1234
1260
|
name: "actions",
|
|
1235
1261
|
fn: S(() => [f("button", {
|
|
1236
1262
|
tabindex: "0",
|
|
1237
1263
|
class: "vue-ui-user-options-button",
|
|
1238
|
-
onClick: t[1] ||= (e) =>
|
|
1239
|
-
style: _({ cursor:
|
|
1240
|
-
}, [
|
|
1264
|
+
onClick: t[1] ||= (e) => An(M.value.userOptions.callbacks.csv),
|
|
1265
|
+
style: _({ cursor: P.value ? "pointer" : "default" })
|
|
1266
|
+
}, [He(x(xt), {
|
|
1241
1267
|
name: "fileCsv",
|
|
1242
|
-
stroke:
|
|
1268
|
+
stroke: Rn.value.props.color
|
|
1243
1269
|
}, null, 8, ["stroke"])], 4)]),
|
|
1244
1270
|
key: "1"
|
|
1245
1271
|
} : void 0]), 1040)) : u("", !0),
|
|
1246
|
-
b(e.$slots, "skeleton", {}, () => [x(
|
|
1247
|
-
], 46,
|
|
1272
|
+
b(e.$slots, "skeleton", {}, () => [x(F) ? (v(), l(ye, { key: 0 })) : u("", !0)], !0)
|
|
1273
|
+
], 46, tt));
|
|
1248
1274
|
}
|
|
1249
|
-
}, [["__scopeId", "data-v-
|
|
1275
|
+
}, [["__scopeId", "data-v-31e09f14"]]);
|
|
1250
1276
|
//#endregion
|
|
1251
|
-
export {
|
|
1277
|
+
export { et as n, bt as t };
|