vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, C as n, Gt as r, K as i, Lt as a, N as o, Nt as s, Ot as c, W as l, Y as u, bt as ee, d, et as f, f as p, g as te, i as m, m as ne, qt as re, st as ie, t as ae, x as oe, y as h } from "./lib-CnHx5WfV.js";
|
|
3
3
|
import { t as se } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
4
|
import { t as ce } from "./useConfig-DYM3f6EI.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
5
|
+
import { t as le } from "./usePrinter-B-X_Pub0.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as fe } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as pe } from "./useNestedProp-
|
|
8
|
+
import { t as pe } from "./useNestedProp-D8NuRneO.js";
|
|
9
9
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as ge } from "./img-
|
|
11
|
+
import { t as ge } from "./img-CNdXiUfZ.js";
|
|
12
12
|
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as ve } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as ye } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as be } from "./BaseLegendToggle-
|
|
15
|
+
import { t as be } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
16
16
|
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ce } from "./Slicer-
|
|
18
|
+
import { t as Ce } from "./Slicer-WsWTQPKt.js";
|
|
19
19
|
import { t as we } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
20
20
|
import { Fragment as g, Teleport as Te, computed as _, createBlock as Ee, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as x, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as Ne, onMounted as Pe, openBlock as w, ref as T, renderList as E, renderSlot as D, shallowRef as Fe, toDisplayString as O, toRefs as Ie, unref as k, watch as Le, watchEffect as Re, withCtx as A } from "vue";
|
|
21
21
|
//#region src/chartDetector.js
|
|
@@ -440,12 +440,12 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
440
440
|
"copyAlt"
|
|
441
441
|
],
|
|
442
442
|
setup(e, { expose: _e, emit: ze }) {
|
|
443
|
-
let Ve = ke(() => import("./BaseIcon-
|
|
443
|
+
let Ve = ke(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), He = ke(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), We = ke(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Ge = ke(() => import("./Tooltip-CDbLl3TD.js")), Ke = ke(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), { vue_ui_quick_chart: qe } = ce(), { isThemeValid: Je, warnInvalidTheme: Ye } = me(), N = e, P = T(null), Tn = T(null), En = T(null), Dn = T(null), F = T(i()), I = T(!1), On = T(null), kn = T(""), L = T(null), An = T(null), jn = T(null), R = T([]), Mn = T(0), Nn = T(0), Pn = T(!1), Fn = T(null), In = T(null), z = T(null), Ln = T(null), Rn = T(null), zn = T(null);
|
|
444
444
|
T("#FFFFFF");
|
|
445
445
|
let B = T($n()), Bn = _(() => !!B.value.debug), Vn = _(() => B.value.useCursorPointer), V = T(null), Hn = T({
|
|
446
446
|
x: 0,
|
|
447
447
|
y: 0
|
|
448
|
-
}), H = T("pointer"), Un = T(!1), Wn = _(() =>
|
|
448
|
+
}), H = T("pointer"), Un = T(!1), Wn = _(() => re({
|
|
449
449
|
dafaultConfig: {
|
|
450
450
|
backgroundColor: "#99999930",
|
|
451
451
|
customPalette: ["#BABABA"],
|
|
@@ -491,7 +491,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
491
491
|
55,
|
|
492
492
|
89
|
|
493
493
|
],
|
|
494
|
-
skeletonConfig:
|
|
494
|
+
skeletonConfig: re({
|
|
495
495
|
defaultConfig: B.value,
|
|
496
496
|
userConfig: Wn.value
|
|
497
497
|
})
|
|
@@ -506,16 +506,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
506
506
|
}), t = {}, n = e.theme;
|
|
507
507
|
if (n) if (!Je.value(e)) Ye(e), t = e;
|
|
508
508
|
else {
|
|
509
|
-
let
|
|
509
|
+
let i = pe({
|
|
510
510
|
userConfig: we[n] || N.config,
|
|
511
511
|
defaultConfig: e
|
|
512
512
|
});
|
|
513
513
|
t = {
|
|
514
514
|
...pe({
|
|
515
515
|
userConfig: N.config,
|
|
516
|
-
defaultConfig:
|
|
516
|
+
defaultConfig: i
|
|
517
517
|
}),
|
|
518
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
518
|
+
customPalette: e.customPalette.length ? e.customPalette : r[n] || s
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
else t = e;
|
|
@@ -528,10 +528,10 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
528
528
|
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
529
529
|
Array.isArray(e) && e.length > 0 && (Kn.value = !1);
|
|
530
530
|
}, { immediate: !0 });
|
|
531
|
-
let er = _(() =>
|
|
531
|
+
let er = _(() => n(B.value.customPalette)), W = ze, tr = _(() => {
|
|
532
532
|
let e = Be({
|
|
533
533
|
debug: Bn.value,
|
|
534
|
-
dataset:
|
|
534
|
+
dataset: a(Gn.value, [
|
|
535
535
|
"serie",
|
|
536
536
|
"series",
|
|
537
537
|
"data",
|
|
@@ -544,7 +544,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
544
544
|
return !e && Bn.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
545
545
|
}), G = T(tr.value), nr = _(() => !!G.value), K = _(() => G.value ? G.value.type : null);
|
|
546
546
|
Le(() => K.value, (e) => {
|
|
547
|
-
e ||
|
|
547
|
+
e || f({
|
|
548
548
|
componentName: "VueUiQuickChart",
|
|
549
549
|
type: "dataset",
|
|
550
550
|
debug: Bn.value
|
|
@@ -566,7 +566,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
566
566
|
Pn.value = !0, dr();
|
|
567
567
|
});
|
|
568
568
|
function dr() {
|
|
569
|
-
if (
|
|
569
|
+
if (t(N.dataset) || (Kn.value = B.value.loading), B.value.responsive) {
|
|
570
570
|
let e = ve(() => {
|
|
571
571
|
let { width: e, height: t } = ye({
|
|
572
572
|
chart: P.value,
|
|
@@ -671,24 +671,24 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
671
671
|
id: `donut_${t}`
|
|
672
672
|
})).map((e, t) => ({
|
|
673
673
|
...e,
|
|
674
|
-
color: e.COLOR ?
|
|
674
|
+
color: e.COLOR ? oe(e.COLOR) : er.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
675
675
|
immutableValue: e.value
|
|
676
676
|
}));
|
|
677
677
|
function t(e, t) {
|
|
678
|
-
return
|
|
678
|
+
return u({
|
|
679
679
|
v: isNaN(e.value / pr(t)) ? 0 : e.value / pr(t) * 100,
|
|
680
680
|
s: "%",
|
|
681
681
|
r: B.value.dataLabelRoundingPercentage
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function n(e) {
|
|
685
685
|
return e.proportion * 100 > B.value.donutHideLabelUnderPercentage;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function r(e, t) {
|
|
688
688
|
let n = tr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
689
689
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function i({ datapoint: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
692
692
|
On.value = {
|
|
693
693
|
datapoint: t,
|
|
694
694
|
seriesIndex: n,
|
|
@@ -699,7 +699,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
699
699
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
700
700
|
datapoint: t,
|
|
701
701
|
seriesIndex: n
|
|
702
|
-
}),
|
|
702
|
+
}), ee(i) && ie(() => i({
|
|
703
703
|
datapoint: t,
|
|
704
704
|
seriesIndex: n,
|
|
705
705
|
series: e,
|
|
@@ -712,7 +712,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
712
712
|
});
|
|
713
713
|
else {
|
|
714
714
|
let e = "";
|
|
715
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${B.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e += `<b>${m(B.value.formatter, t.value,
|
|
715
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${B.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e += `<b>${m(B.value.formatter, t.value, u({
|
|
716
716
|
p: B.value.valuePrefix,
|
|
717
717
|
v: t.value,
|
|
718
718
|
s: B.value.valueSuffix,
|
|
@@ -720,7 +720,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
720
720
|
}), {
|
|
721
721
|
datapoint: t,
|
|
722
722
|
seriesIndex: n
|
|
723
|
-
})}</b>`, e += `<span>(${
|
|
723
|
+
})}</b>`, e += `<span>(${u({
|
|
724
724
|
v: t.proportion * 100,
|
|
725
725
|
s: "%",
|
|
726
726
|
r: B.value.dataLabelRoundingPercentage
|
|
@@ -728,13 +728,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
728
728
|
}
|
|
729
729
|
I.value = !0;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function a({ datapoint: e, seriesIndex: t }) {
|
|
732
732
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
733
733
|
datapoint: e,
|
|
734
734
|
seriesIndex: t
|
|
735
735
|
}), I.value = !1, L.value = null, J.value = null, V.value = null, H.value = "pointer";
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function o({ datapoint: e, seriesIndex: t }) {
|
|
738
738
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
739
739
|
datapoint: e,
|
|
740
740
|
seriesIndex: t
|
|
@@ -743,28 +743,28 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
743
743
|
let l = {
|
|
744
744
|
centerX: q.value.width / 2,
|
|
745
745
|
centerY: q.value.height / 2
|
|
746
|
-
},
|
|
746
|
+
}, d = e.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), f = e.map((e, t) => ({
|
|
747
747
|
...e,
|
|
748
|
-
proportion: (e.value || 0) /
|
|
748
|
+
proportion: (e.value || 0) / d,
|
|
749
749
|
value: e.value || 0,
|
|
750
750
|
absoluteValue: tr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
751
751
|
shape: "circle"
|
|
752
|
-
})), p = q.value.width / 2, te = q.value.height / 2,
|
|
752
|
+
})), p = q.value.width / 2, te = q.value.height / 2, ne = q.value.height * B.value.donutRadiusRatio;
|
|
753
753
|
return {
|
|
754
754
|
dataset: f.filter((e) => !R.value.includes(e.id)),
|
|
755
755
|
legend: f,
|
|
756
756
|
drawingArea: l,
|
|
757
757
|
displayArcPercentage: t,
|
|
758
|
-
isArcBigEnough:
|
|
759
|
-
useTooltip:
|
|
760
|
-
killTooltip:
|
|
761
|
-
selectDatapoint:
|
|
762
|
-
getSpaces:
|
|
763
|
-
total:
|
|
758
|
+
isArcBigEnough: n,
|
|
759
|
+
useTooltip: i,
|
|
760
|
+
killTooltip: a,
|
|
761
|
+
selectDatapoint: o,
|
|
762
|
+
getSpaces: r,
|
|
763
|
+
total: d,
|
|
764
764
|
cx: p,
|
|
765
765
|
cy: te,
|
|
766
|
-
radius:
|
|
767
|
-
chart:
|
|
766
|
+
radius: ne,
|
|
767
|
+
chart: c({ series: e.filter((e) => !R.value.includes(e.id)) }, p, te, ne, ne, 1.99999, 2, 1, 360, 105.25, q.value.height * Sr.value)
|
|
768
768
|
};
|
|
769
769
|
}), X = T({
|
|
770
770
|
start: 0,
|
|
@@ -845,7 +845,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
845
845
|
absoluteValues: G.value.dataset,
|
|
846
846
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
847
847
|
name: B.value.title,
|
|
848
|
-
color: er.value[B.value.paletteStartIndex] ||
|
|
848
|
+
color: er.value[B.value.paletteStartIndex] || s[B.value.paletteStartIndex],
|
|
849
849
|
id: "line_0"
|
|
850
850
|
}]), Ue(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
851
851
|
...e,
|
|
@@ -854,7 +854,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
854
854
|
id: `line_${t}`
|
|
855
855
|
})).map((e, t) => ({
|
|
856
856
|
...e,
|
|
857
|
-
color: e.COLOR ?
|
|
857
|
+
color: e.COLOR ? oe(e.COLOR) : er.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
858
858
|
values: e.values.slice(X.value.start, X.value.end),
|
|
859
859
|
absoluteValues: e.values,
|
|
860
860
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -863,8 +863,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
863
863
|
max: Math.max(...r.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)),
|
|
864
864
|
min: Math.min(...r.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)),
|
|
865
865
|
maxSeries: Math.max(...r.map((e) => e.values.length))
|
|
866
|
-
},
|
|
867
|
-
y: n.bottom - n.height * ((e +
|
|
866
|
+
}, a = i.max === i.min ? te(i.min, i.min + 1, B.value.xyScaleSegments) : te(i.min < 0 ? i.min : 0, i.max < 0 ? 0 : i.max, B.value.xyScaleSegments), o = i.min < 0 ? Math.abs(i.min) : 0, c = i.max < 0 ? n.top : n.bottom - o / (a.max + o) * n.height, l = n.width / i.maxSeries, d = a.ticks.map((e) => ({
|
|
867
|
+
y: n.bottom - n.height * ((e + o) / (a.max + o)),
|
|
868
868
|
x: n.left - 8,
|
|
869
869
|
value: e
|
|
870
870
|
})), f = r.map((e, t) => ({
|
|
@@ -872,7 +872,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
872
872
|
shape: "circle",
|
|
873
873
|
coordinates: e.values.map((e, t) => ({
|
|
874
874
|
x: n.left + l * (t + 1) - l / 2,
|
|
875
|
-
y: n.bottom - (e +
|
|
875
|
+
y: n.bottom - (e + o) / (a.max + o) * n.height,
|
|
876
876
|
value: e
|
|
877
877
|
}))
|
|
878
878
|
})).map((e) => {
|
|
@@ -884,16 +884,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
884
884
|
linePath: t.join(" ")
|
|
885
885
|
};
|
|
886
886
|
});
|
|
887
|
-
function
|
|
887
|
+
function p(e) {
|
|
888
888
|
return r.map((t) => ({
|
|
889
889
|
...t,
|
|
890
890
|
value: t.values[e],
|
|
891
891
|
absoluteIndex: t.absoluteIndices[e]
|
|
892
892
|
})).filter((e) => !R.value.includes(e.id));
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function ne(e, t = "pointer") {
|
|
895
895
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
896
|
-
let n =
|
|
896
|
+
let n = p(e);
|
|
897
897
|
On.value = {
|
|
898
898
|
datapoint: n,
|
|
899
899
|
seriesIndex: e,
|
|
@@ -904,7 +904,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
904
904
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
905
905
|
datapoint: n,
|
|
906
906
|
seriesIndex: e + X.value.start
|
|
907
|
-
}),
|
|
907
|
+
}), ee(i) && ie(() => i({
|
|
908
908
|
datapoint: n,
|
|
909
909
|
seriesIndex: e,
|
|
910
910
|
series: r,
|
|
@@ -922,7 +922,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
922
922
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
923
923
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>
|
|
924
924
|
<span>${t.name}:</span>
|
|
925
|
-
<b>${m(B.value.formatter, t.value,
|
|
925
|
+
<b>${m(B.value.formatter, t.value, u({
|
|
926
926
|
p: B.value.valuePrefix,
|
|
927
927
|
v: t.value,
|
|
928
928
|
s: B.value.valueSuffix,
|
|
@@ -938,30 +938,30 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
938
938
|
}
|
|
939
939
|
I.value = !0;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
let t =
|
|
941
|
+
function re(e) {
|
|
942
|
+
let t = p(e);
|
|
943
943
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
944
944
|
datapoint: t,
|
|
945
945
|
seriesIndex: e + X.value.start
|
|
946
946
|
}), L.value = null, J.value = null, I.value = !1, V.value = null, H.value = "pointer";
|
|
947
947
|
}
|
|
948
948
|
function ae(e) {
|
|
949
|
-
let t =
|
|
949
|
+
let t = p(e);
|
|
950
950
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
951
951
|
datapoint: t,
|
|
952
952
|
seriesIndex: e + X.value.start
|
|
953
953
|
}), W("selectDatapoint", t);
|
|
954
954
|
}
|
|
955
955
|
return {
|
|
956
|
-
absoluteZero:
|
|
956
|
+
absoluteZero: c,
|
|
957
957
|
dataset: f.filter((e) => !R.value.includes(e.id)),
|
|
958
958
|
legend: f,
|
|
959
959
|
drawingArea: n,
|
|
960
960
|
extremes: i,
|
|
961
961
|
slotSize: l,
|
|
962
|
-
yLabels:
|
|
963
|
-
useTooltip:
|
|
964
|
-
killTooltip:
|
|
962
|
+
yLabels: d,
|
|
963
|
+
useTooltip: ne,
|
|
964
|
+
killTooltip: re,
|
|
965
965
|
selectDatapoint: ae
|
|
966
966
|
};
|
|
967
967
|
}), Q = _(() => {
|
|
@@ -987,7 +987,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
987
987
|
absoluteValues: G.value.dataset,
|
|
988
988
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
989
989
|
name: B.value.title,
|
|
990
|
-
color: er.value[B.value.paletteStartIndex] ||
|
|
990
|
+
color: er.value[B.value.paletteStartIndex] || s[B.value.paletteStartIndex],
|
|
991
991
|
id: "bar_0"
|
|
992
992
|
}]), Ue(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
993
993
|
...e,
|
|
@@ -996,7 +996,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
996
996
|
id: `bar_${t}`
|
|
997
997
|
})).map((e, t) => ({
|
|
998
998
|
...e,
|
|
999
|
-
color: e.COLOR ?
|
|
999
|
+
color: e.COLOR ? oe(e.COLOR) : er.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
1000
1000
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1001
1001
|
absoluteValues: e.values,
|
|
1002
1002
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1005,46 +1005,46 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1005
1005
|
max: Math.max(...r.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...r.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1006
1006
|
min: Math.min(...r.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1007
1007
|
maxSeries: Math.max(...r.filter((e) => !R.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1008
|
-
},
|
|
1009
|
-
y: n.bottom - n.height * ((e +
|
|
1008
|
+
}, a = i.min === i.max ? te(i.min, i.min + 1, B.value.xyScaleSegments) : te(i.min < 0 ? i.min : 0, i.max, B.value.xyScaleSegments), o = a.min < 0 ? Math.abs(a.min) : 0, c = n.bottom - o / (a.max + o) * n.height, l = n.width / i.maxSeries, d = a.ticks.map((e) => ({
|
|
1009
|
+
y: n.bottom - n.height * ((e + o) / (a.max + o)),
|
|
1010
1010
|
x: n.left - 8,
|
|
1011
1011
|
value: e
|
|
1012
1012
|
})), f = r.map((e, t) => ({
|
|
1013
1013
|
...e,
|
|
1014
1014
|
shape: "square",
|
|
1015
1015
|
coordinates: e.values.map((e, a) => {
|
|
1016
|
-
let
|
|
1016
|
+
let s = (e + o) / (i.max + o) * n.height, u = Math.abs(e) / Math.abs(i.min) * (n.height - c), ee = o / (i.max + o) * n.height, d = l / r.filter((e) => !R.value.includes(e.id)).length - B.value.barGap / r.filter((e) => !R.value.includes(e.id)).length;
|
|
1017
1017
|
return {
|
|
1018
1018
|
x: n.left + l * a + d * t + B.value.barGap / 2,
|
|
1019
|
-
y: e > 0 ? n.bottom -
|
|
1020
|
-
height: e > 0 ?
|
|
1019
|
+
y: e > 0 ? n.bottom - s : c,
|
|
1020
|
+
height: e > 0 ? s - ee : u,
|
|
1021
1021
|
value: e,
|
|
1022
1022
|
width: d
|
|
1023
1023
|
};
|
|
1024
1024
|
})
|
|
1025
|
-
})),
|
|
1025
|
+
})), p = r.filter((e) => !R.value.includes(e.id)).map((e, t) => ({
|
|
1026
1026
|
...e,
|
|
1027
1027
|
coordinates: e.values.map((e, a) => {
|
|
1028
|
-
let
|
|
1028
|
+
let s = (e + o) / (i.max + o) * n.height, u = Math.abs(e) / (i.max + o) * n.height, ee = o / (i.max + o) * n.height, d = l / r.filter((e) => !R.value.includes(e.id)).length - B.value.barGap / r.filter((e) => !R.value.includes(e.id)).length;
|
|
1029
1029
|
return {
|
|
1030
1030
|
x: n.left + l * a + d * t + B.value.barGap / 2,
|
|
1031
|
-
y: e > 0 ? n.bottom -
|
|
1032
|
-
height: e > 0 ?
|
|
1031
|
+
y: e > 0 ? n.bottom - s : c,
|
|
1032
|
+
height: e > 0 ? s - ee : u,
|
|
1033
1033
|
value: e,
|
|
1034
1034
|
width: d
|
|
1035
1035
|
};
|
|
1036
1036
|
})
|
|
1037
1037
|
}));
|
|
1038
|
-
function
|
|
1038
|
+
function ne(e) {
|
|
1039
1039
|
return r.map((t) => ({
|
|
1040
1040
|
...t,
|
|
1041
1041
|
value: t.values[e],
|
|
1042
1042
|
absoluteIndex: t.absoluteIndices[e]
|
|
1043
1043
|
})).filter((e) => !R.value.includes(e.id));
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function re(e, t = "pointer") {
|
|
1046
1046
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
1047
|
-
let n =
|
|
1047
|
+
let n = ne(e);
|
|
1048
1048
|
On.value = {
|
|
1049
1049
|
datapoint: n,
|
|
1050
1050
|
seriesIndex: e,
|
|
@@ -1055,7 +1055,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1055
1055
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
1056
1056
|
datapoint: n,
|
|
1057
1057
|
seriesIndex: e + X.value.start
|
|
1058
|
-
}),
|
|
1058
|
+
}), ee(i) && ie(() => i({
|
|
1059
1059
|
datapoint: n,
|
|
1060
1060
|
seriesIndex: e,
|
|
1061
1061
|
series: r,
|
|
@@ -1073,7 +1073,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1073
1073
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
1074
1074
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${t.color}"/></svg>
|
|
1075
1075
|
<span>${t.name}:</span>
|
|
1076
|
-
<b>${m(B.value.formatter, t.value,
|
|
1076
|
+
<b>${m(B.value.formatter, t.value, u({
|
|
1077
1077
|
p: B.value.valuePrefix,
|
|
1078
1078
|
v: t.value,
|
|
1079
1079
|
s: B.value.valueSuffix,
|
|
@@ -1090,29 +1090,29 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1090
1090
|
I.value = !0;
|
|
1091
1091
|
}
|
|
1092
1092
|
function ae(e) {
|
|
1093
|
-
let t =
|
|
1093
|
+
let t = ne(e);
|
|
1094
1094
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
1095
1095
|
datapoint: t,
|
|
1096
1096
|
seriesIndex: e + X.value.start
|
|
1097
1097
|
}), I.value = !1, L.value = null, J.value = null, V.value = null, H.value = "pointer";
|
|
1098
1098
|
}
|
|
1099
1099
|
function h(e) {
|
|
1100
|
-
let t =
|
|
1100
|
+
let t = ne(e);
|
|
1101
1101
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
1102
1102
|
datapoint: t,
|
|
1103
1103
|
seriesIndex: e + X.value.start
|
|
1104
1104
|
}), W("selectDatapoint", t);
|
|
1105
1105
|
}
|
|
1106
1106
|
return {
|
|
1107
|
-
absoluteZero:
|
|
1108
|
-
dataset:
|
|
1109
|
-
absoluteDataset:
|
|
1107
|
+
absoluteZero: c,
|
|
1108
|
+
dataset: p.filter((e) => !R.value.includes(e.id)),
|
|
1109
|
+
absoluteDataset: p,
|
|
1110
1110
|
legend: f,
|
|
1111
1111
|
drawingArea: n,
|
|
1112
1112
|
extremes: i,
|
|
1113
1113
|
slotSize: l,
|
|
1114
|
-
yLabels:
|
|
1115
|
-
useTooltip:
|
|
1114
|
+
yLabels: d,
|
|
1115
|
+
useTooltip: re,
|
|
1116
1116
|
killTooltip: ae,
|
|
1117
1117
|
selectDatapoint: h
|
|
1118
1118
|
};
|
|
@@ -1162,25 +1162,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1162
1162
|
return a.push(o), a;
|
|
1163
1163
|
}
|
|
1164
1164
|
function Lr({ pathDuration: e, pathEasing: t = "ease-in-out", pointDuration: n, labelDuration: r, pointDelay: i = 0, labelDelay: a = 0, pointStep: o = 0, labelStep: s = 0, intraSeriesStep: c = 0 } = {}) {
|
|
1165
|
-
let
|
|
1166
|
-
|
|
1165
|
+
let l = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean), u = Array.isArray(In?.value) ? In.value : [In?.value].filter(Boolean), ee = [...l, ...u].filter(Boolean), d = P?.value || null, f = d ? Array.from(d.querySelectorAll(".vue-ui-quick-chart-plot")) : [], p = d ? Array.from(d.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
1166
|
+
ee.forEach(Mr), Nr(f, {
|
|
1167
1167
|
fromOpacity: "0",
|
|
1168
1168
|
fromScale: "0.75"
|
|
1169
1169
|
}), Nr(p, {
|
|
1170
1170
|
fromOpacity: "0",
|
|
1171
1171
|
fromScale: "0.98"
|
|
1172
1172
|
}), f.forEach((e) => e.classList.remove("quick-animation")), p.forEach((e) => e.classList.remove("quick-animation")), d && d.offsetWidth;
|
|
1173
|
-
let
|
|
1173
|
+
let te = f.length ? Ir(f, Pr) : [], m = p.length ? Ir(p, Fr) : [];
|
|
1174
1174
|
requestAnimationFrame(() => {
|
|
1175
1175
|
requestAnimationFrame(() => {
|
|
1176
|
-
|
|
1176
|
+
ee.forEach((n) => {
|
|
1177
1177
|
n.style.transition = `stroke-dashoffset ${e}ms ${t}`, n.style.strokeDashoffset = "0";
|
|
1178
|
-
}),
|
|
1178
|
+
}), te.forEach((e, t) => {
|
|
1179
1179
|
e.items.forEach((e, r) => {
|
|
1180
1180
|
let a = i + t * o + r * c;
|
|
1181
1181
|
e.style.transition = `opacity ${n}ms ease-out ${a}ms, transform ${n}ms ease-out ${a}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
1182
1182
|
});
|
|
1183
|
-
}),
|
|
1183
|
+
}), m.forEach((e, t) => {
|
|
1184
1184
|
e.items.forEach((e, n) => {
|
|
1185
1185
|
let i = a + t * s + n * c;
|
|
1186
1186
|
e.style.transition = `opacity ${r}ms ease-out ${i}ms, transform ${r}ms ease-out ${i}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
@@ -1375,7 +1375,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1375
1375
|
if (K.value === j.DONUT) {
|
|
1376
1376
|
let r = Y.value?.chart?.[e];
|
|
1377
1377
|
if (!r) return;
|
|
1378
|
-
t =
|
|
1378
|
+
t = d(r, !0).x, n = p(r);
|
|
1379
1379
|
}
|
|
1380
1380
|
if (K.value === j.LINE) {
|
|
1381
1381
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
@@ -1401,14 +1401,14 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1401
1401
|
"Percentage"
|
|
1402
1402
|
],
|
|
1403
1403
|
rows: (Y.value?.dataset ?? []).map((e) => {
|
|
1404
|
-
let t = Y.value?.total ?
|
|
1404
|
+
let t = Y.value?.total ? u({
|
|
1405
1405
|
v: e.value / Y.value.total * 100,
|
|
1406
1406
|
s: "%",
|
|
1407
1407
|
r: B.value.dataLabelRoundingPercentage
|
|
1408
1408
|
}) : "0%";
|
|
1409
1409
|
return [
|
|
1410
1410
|
e.name,
|
|
1411
|
-
m(B.value.formatter, e.value,
|
|
1411
|
+
m(B.value.formatter, e.value, u({
|
|
1412
1412
|
p: B.value.valuePrefix,
|
|
1413
1413
|
v: e.value,
|
|
1414
1414
|
s: B.value.valueSuffix,
|
|
@@ -1424,7 +1424,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1424
1424
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1425
1425
|
rows: Array.from({ length: t }, (t, n) => [$.value?.[n + X.value.start]?.text ?? String(n + X.value.start), ...e.map((e) => {
|
|
1426
1426
|
let t = e.values?.[n];
|
|
1427
|
-
return m(B.value.formatter, t,
|
|
1427
|
+
return m(B.value.formatter, t, u({
|
|
1428
1428
|
p: B.value.valuePrefix,
|
|
1429
1429
|
v: t,
|
|
1430
1430
|
s: B.value.valueSuffix,
|
|
@@ -1640,7 +1640,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
ref_key: "svgRef",
|
|
1642
1642
|
ref: qn,
|
|
1643
|
-
xmlns: k(
|
|
1643
|
+
xmlns: k(ae),
|
|
1644
1644
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1645
1645
|
viewBox: fr.value,
|
|
1646
1646
|
style: C(`max-width:100%;overflow:visible;background:transparent;color:${B.value.color}`),
|
|
@@ -1700,7 +1700,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1700
1700
|
K.value === j.DONUT ? (w(), y(g, { key: 3 }, [
|
|
1701
1701
|
B.value.showDataLabels ? (w(), y("g", ct, [(w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y(g, null, [Y.value.isArcBigEnough(e) ? (w(), y("path", {
|
|
1702
1702
|
key: 0,
|
|
1703
|
-
d: k(
|
|
1703
|
+
d: k(ne)(e, {
|
|
1704
1704
|
x: q.value.width / 2,
|
|
1705
1705
|
y: q.value.height / 2
|
|
1706
1706
|
}, 16, 16, !1, !1, q.value.height * Sr.value, 12, B.value.donutCurvedMarkers),
|
|
@@ -1744,8 +1744,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1744
1744
|
B.value.showDataLabels ? (w(), y("g", mt, [(w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y(g, null, [
|
|
1745
1745
|
Y.value.isArcBigEnough(e) ? (w(), y("circle", {
|
|
1746
1746
|
key: 0,
|
|
1747
|
-
cx: k(
|
|
1748
|
-
cy: k(
|
|
1747
|
+
cx: k(d)(e).x,
|
|
1748
|
+
cy: k(p)(e) - 3.7,
|
|
1749
1749
|
fill: e.color,
|
|
1750
1750
|
stroke: B.value.backgroundColor,
|
|
1751
1751
|
"stroke-width": 1,
|
|
@@ -1754,13 +1754,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1754
1754
|
}, null, 8, ht)) : v("", !0),
|
|
1755
1755
|
Y.value.isArcBigEnough(e) ? (w(), y("text", {
|
|
1756
1756
|
key: 1,
|
|
1757
|
-
"text-anchor": k(
|
|
1758
|
-
x: k(
|
|
1759
|
-
y: k(
|
|
1757
|
+
"text-anchor": k(d)(e, !0, 20).anchor,
|
|
1758
|
+
x: k(d)(e, !0).x,
|
|
1759
|
+
y: k(p)(e),
|
|
1760
1760
|
fill: B.value.color,
|
|
1761
1761
|
"font-size": B.value.dataLabelFontSize,
|
|
1762
1762
|
filter: mr(e.id)
|
|
1763
|
-
}, O(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + O(k(m)(B.value.formatter, e.value, k(
|
|
1763
|
+
}, O(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + O(k(m)(B.value.formatter, e.value, k(u)({
|
|
1764
1764
|
p: B.value.valuePrefix,
|
|
1765
1765
|
v: e.value,
|
|
1766
1766
|
s: B.value.valueSuffix,
|
|
@@ -1771,9 +1771,9 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1771
1771
|
})) + ") ", 9, gt)) : v("", !0),
|
|
1772
1772
|
Y.value.isArcBigEnough(e, !0, 20) ? (w(), y("text", {
|
|
1773
1773
|
key: 2,
|
|
1774
|
-
"text-anchor": k(
|
|
1775
|
-
x: k(
|
|
1776
|
-
y: k(
|
|
1774
|
+
"text-anchor": k(d)(e).anchor,
|
|
1775
|
+
x: k(d)(e, !0).x,
|
|
1776
|
+
y: k(p)(e) + B.value.dataLabelFontSize,
|
|
1777
1777
|
fill: B.value.color,
|
|
1778
1778
|
"font-size": B.value.dataLabelFontSize,
|
|
1779
1779
|
filter: mr(e.id)
|
|
@@ -1791,7 +1791,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1791
1791
|
y: Y.value.drawingArea.centerY + B.value.donutTotalLabelFontSize,
|
|
1792
1792
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1793
1793
|
fill: B.value.color
|
|
1794
|
-
}, O(k(
|
|
1794
|
+
}, O(k(u)({
|
|
1795
1795
|
p: B.value.valuePrefix,
|
|
1796
1796
|
v: Y.value.total,
|
|
1797
1797
|
s: B.value.valueSuffix,
|
|
@@ -1855,7 +1855,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1855
1855
|
"text-anchor": "end",
|
|
1856
1856
|
"font-size": B.value.xyLabelsYFontSize,
|
|
1857
1857
|
fill: B.value.color
|
|
1858
|
-
}, O(k(m)(B.value.formatter, e.value, k(
|
|
1858
|
+
}, O(k(m)(B.value.formatter, e.value, k(u)({
|
|
1859
1859
|
p: B.value.valuePrefix,
|
|
1860
1860
|
v: e.value,
|
|
1861
1861
|
s: B.value.valueSuffix,
|
|
@@ -1902,7 +1902,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1902
1902
|
ref_for: !0,
|
|
1903
1903
|
ref_key: "pathWrapper",
|
|
1904
1904
|
ref: Fn,
|
|
1905
|
-
d: `M ${k(
|
|
1905
|
+
d: `M ${k(o)(e.coordinates)}`,
|
|
1906
1906
|
stroke: B.value.backgroundColor,
|
|
1907
1907
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1908
1908
|
"stroke-linecap": "round",
|
|
@@ -1916,7 +1916,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1916
1916
|
ref_for: !0,
|
|
1917
1917
|
ref_key: "pathTop",
|
|
1918
1918
|
ref: In,
|
|
1919
|
-
d: `M ${k(
|
|
1919
|
+
d: `M ${k(o)(e.coordinates)}`,
|
|
1920
1920
|
stroke: e.color,
|
|
1921
1921
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1922
1922
|
"stroke-linecap": "round",
|
|
@@ -1978,7 +1978,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1978
1978
|
"quick-animation": !k(U)
|
|
1979
1979
|
}),
|
|
1980
1980
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1981
|
-
}, O(k(m)(B.value.formatter, k(h)(t.value), k(
|
|
1981
|
+
}, O(k(m)(B.value.formatter, k(h)(t.value), k(u)({
|
|
1982
1982
|
p: B.value.valuePrefix,
|
|
1983
1983
|
v: k(h)(t.value),
|
|
1984
1984
|
s: B.value.valueSuffix,
|
|
@@ -2056,7 +2056,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2056
2056
|
"text-anchor": "end",
|
|
2057
2057
|
"font-size": B.value.xyLabelsYFontSize,
|
|
2058
2058
|
fill: B.value.color
|
|
2059
|
-
}, O(k(m)(B.value.formatter, e.value, k(
|
|
2059
|
+
}, O(k(m)(B.value.formatter, e.value, k(u)({
|
|
2060
2060
|
p: B.value.valuePrefix,
|
|
2061
2061
|
v: e.value,
|
|
2062
2062
|
s: B.value.valueSuffix,
|
|
@@ -2128,7 +2128,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2128
2128
|
"font-size": B.value.dataLabelFontSize,
|
|
2129
2129
|
fill: e.color,
|
|
2130
2130
|
class: "quick-animation"
|
|
2131
|
-
}, O(k(m)(B.value.formatter, k(h)(t.value), k(
|
|
2131
|
+
}, O(k(m)(B.value.formatter, k(h)(t.value), k(u)({
|
|
2132
2132
|
p: B.value.valuePrefix,
|
|
2133
2133
|
v: k(h)(t.value),
|
|
2134
2134
|
s: B.value.valueSuffix,
|
|
@@ -2313,7 +2313,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2313
2313
|
"size"
|
|
2314
2314
|
]),
|
|
2315
2315
|
b("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5),
|
|
2316
|
-
b("span", { style: C(`font-size:${B.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, O(R.value.includes(t.id) ? "-" : k(m)(B.value.formatter, t.absoluteValue, k(
|
|
2316
|
+
b("span", { style: C(`font-size:${B.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, O(R.value.includes(t.id) ? "-" : k(m)(B.value.formatter, t.absoluteValue, k(u)({
|
|
2317
2317
|
p: B.value.valuePrefix,
|
|
2318
2318
|
v: t.absoluteValue,
|
|
2319
2319
|
s: B.value.valueSuffix,
|
|
@@ -2331,7 +2331,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2331
2331
|
}, " ( - % ) ", 4)) : (w(), y("span", {
|
|
2332
2332
|
key: 2,
|
|
2333
2333
|
style: C(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2334
|
-
}, " (" + O(k(
|
|
2334
|
+
}, " (" + O(k(u)({
|
|
2335
2335
|
v: t.value / Y.value.total * 100,
|
|
2336
2336
|
s: "%",
|
|
2337
2337
|
r: B.value.dataLabelRoundingPercentage
|
|
@@ -2422,7 +2422,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2422
2422
|
parent: P.value,
|
|
2423
2423
|
content: kn.value,
|
|
2424
2424
|
isFullscreen: Vr.value,
|
|
2425
|
-
isCustom: k(
|
|
2425
|
+
isCustom: k(ee)(B.value.tooltipCustomFormat),
|
|
2426
2426
|
smooth: B.value.tooltipSmooth,
|
|
2427
2427
|
smoothForce: B.value.tooltipSmoothForce,
|
|
2428
2428
|
smoothSnapThreshold: B.value.tooltipSmoothSnapThreshold,
|