vue-data-ui 3.20.10 → 3.21.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/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/style.css +1 -1
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +6 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
- package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
- package/dist/vue-ui-bullet-rCmOch09.js +0 -710
- package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
- package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
- package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
- package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
- package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
- package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
- package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
- package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
- package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
- package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
- package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
- package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
- package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
- package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
- package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { Fragment as
|
|
2
|
+
import { B as t, Bt as n, Ct as r, G as i, H as a, Ht as o, Mt as s, Ot as c, Tt as ee, X as l, d as u, h as d, ht as f, i as p, it as te, k as ne, p as re, t as ie, u as ae, v as m, x as oe, y as se } from "./lib-AJRHFE5U.js";
|
|
3
|
+
import { t as ce } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as le } from "./useConfig-DnH7Pf_2.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-6n2MzVyV.js";
|
|
6
|
+
import { n as de, t as fe } from "./BaseScanner-Dr2a1Msy.js";
|
|
7
|
+
import { t as pe } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as me } from "./useNestedProp-DtcXIg7n.js";
|
|
9
|
+
import { t as he } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
+
import { t as _e } from "./img-C_RNNswI.js";
|
|
12
|
+
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as ye } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as be } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as xe } from "./BaseLegendToggle-BNRi408o.js";
|
|
16
|
+
import { t as Se } from "./A11yDataTable-BCbtxMU6.js";
|
|
17
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as we } from "./Slicer-GABgkLkB.js";
|
|
19
|
+
import { t as Te } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
20
|
+
import { Fragment as h, Teleport as Ee, computed as g, createBlock as De, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as b, mergeProps as je, nextTick as Me, normalizeClass as x, 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
|
|
22
22
|
var j = {
|
|
23
23
|
LINE: "LINE",
|
|
@@ -413,7 +413,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
413
413
|
}, bn = ["id"], xn = ["onClick", "onKeydown"], Sn = ["onClick", "onKeydown"], Cn = ["onClick", "onKeydown"], wn = {
|
|
414
414
|
key: 1,
|
|
415
415
|
class: "vue-ui-quick-chart-not-processable"
|
|
416
|
-
}, Tn = /* @__PURE__ */
|
|
416
|
+
}, Tn = /* @__PURE__ */ ve({
|
|
417
417
|
__name: "vue-ui-quick-chart",
|
|
418
418
|
props: {
|
|
419
419
|
config: {
|
|
@@ -439,13 +439,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
439
439
|
"selectLegend",
|
|
440
440
|
"copyAlt"
|
|
441
441
|
],
|
|
442
|
-
setup(e, { expose:
|
|
443
|
-
let Ve =
|
|
442
|
+
setup(e, { expose: ve, emit: ze }) {
|
|
443
|
+
let Ve = Ae(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), He = Ae(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), We = Ae(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ge = Ae(() => import("./Tooltip-979Ytd8R.js")), Ke = Ae(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), { vue_ui_quick_chart: qe } = le(), { isThemeValid: Je, warnInvalidTheme: Ye } = he(), N = e, P = T(null), Tn = T(null), En = T(null), Dn = T(null), F = T(a()), 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
|
-
let B = T($n()), Bn =
|
|
445
|
+
let B = T($n()), Bn = g(() => !!B.value.debug), Vn = g(() => 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 = g(() => o({
|
|
449
449
|
dafaultConfig: {
|
|
450
450
|
backgroundColor: "#99999930",
|
|
451
451
|
customPalette: ["#BABABA"],
|
|
@@ -466,13 +466,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
466
466
|
zoomEndIndex: null
|
|
467
467
|
},
|
|
468
468
|
userConfig: B.value.skeletonConfig ?? {}
|
|
469
|
-
})), { loading: U, FINAL_DATASET: Gn, manualLoading: Kn } =
|
|
469
|
+
})), { loading: U, FINAL_DATASET: Gn, manualLoading: Kn } = de({
|
|
470
470
|
...Ie(N),
|
|
471
471
|
FINAL_CONFIG: B,
|
|
472
472
|
prepareConfig: $n,
|
|
473
473
|
callback: () => {
|
|
474
474
|
Promise.resolve().then(async () => {
|
|
475
|
-
await
|
|
475
|
+
await Me(), K.value === j.LINE && B.value.lineAnimated && !U.value && Lr({
|
|
476
476
|
pathDuration: 1e3,
|
|
477
477
|
pointDuration: 1200,
|
|
478
478
|
labelDuration: 1200
|
|
@@ -491,31 +491,31 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
491
491
|
55,
|
|
492
492
|
89
|
|
493
493
|
],
|
|
494
|
-
skeletonConfig:
|
|
494
|
+
skeletonConfig: o({
|
|
495
495
|
defaultConfig: B.value,
|
|
496
496
|
userConfig: Wn.value
|
|
497
497
|
})
|
|
498
|
-
}), { svgRef: qn } =
|
|
498
|
+
}), { svgRef: qn } = Ce({ config: { text: B.value.title } }), Jn = g(() => B.value.showUserOptionsOnChartHover), Yn = g(() => B.value.keepUserOptionsStateOnChartLeave), Xn = T(!B.value.showUserOptionsOnChartHover), Zn = T(!1);
|
|
499
499
|
function Qn(e = !1) {
|
|
500
500
|
Zn.value = e, Jn.value && (Xn.value = e);
|
|
501
501
|
}
|
|
502
502
|
function $n() {
|
|
503
|
-
let e =
|
|
503
|
+
let e = me({
|
|
504
504
|
userConfig: N.config,
|
|
505
505
|
defaultConfig: qe
|
|
506
|
-
}), t = {},
|
|
507
|
-
if (
|
|
506
|
+
}), t = {}, r = e.theme;
|
|
507
|
+
if (r) if (!Je.value(e)) Ye(e), t = e;
|
|
508
508
|
else {
|
|
509
|
-
let
|
|
510
|
-
userConfig:
|
|
509
|
+
let i = me({
|
|
510
|
+
userConfig: Te[r] || N.config,
|
|
511
511
|
defaultConfig: e
|
|
512
512
|
});
|
|
513
513
|
t = {
|
|
514
|
-
...
|
|
514
|
+
...me({
|
|
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 : n[r] || c
|
|
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 = g(() => oe(B.value.customPalette)), W = ze, tr = g(() => {
|
|
532
532
|
let e = Be({
|
|
533
533
|
debug: Bn.value,
|
|
534
|
-
dataset:
|
|
534
|
+
dataset: s(Gn.value, [
|
|
535
535
|
"serie",
|
|
536
536
|
"series",
|
|
537
537
|
"data",
|
|
@@ -542,19 +542,19 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
542
542
|
barLineSwitch: B.value.chartIsBarUnderDatasetLength
|
|
543
543
|
});
|
|
544
544
|
return !e && Bn.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
545
|
-
}), G = T(tr.value), nr =
|
|
545
|
+
}), G = T(tr.value), nr = g(() => !!G.value), K = g(() => G.value ? G.value.type : null);
|
|
546
546
|
Le(() => K.value, (e) => {
|
|
547
|
-
e ||
|
|
547
|
+
e || l({
|
|
548
548
|
componentName: "VueUiQuickChart",
|
|
549
549
|
type: "dataset",
|
|
550
550
|
debug: Bn.value
|
|
551
551
|
});
|
|
552
552
|
}, { immediate: !0 });
|
|
553
|
-
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } =
|
|
553
|
+
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } = ue({
|
|
554
554
|
elementId: `${K.value}_${F.value}`,
|
|
555
555
|
fileName: B.value.title || K.value,
|
|
556
556
|
options: B.value.userOptionsPrint
|
|
557
|
-
}), sr =
|
|
557
|
+
}), sr = g(() => B.value.showUserOptions && !B.value.title), q = T({
|
|
558
558
|
width: B.value.width,
|
|
559
559
|
height: B.value.height
|
|
560
560
|
}), cr = T({ showTooltip: B.value.showTooltip });
|
|
@@ -566,9 +566,9 @@ 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 (
|
|
570
|
-
let e =
|
|
571
|
-
let { width: e, height: t } =
|
|
569
|
+
if (ee(N.dataset) || (Kn.value = B.value.loading), B.value.responsive) {
|
|
570
|
+
let e = ye(() => {
|
|
571
|
+
let { width: e, height: t } = be({
|
|
572
572
|
chart: P.value,
|
|
573
573
|
title: B.value.title ? Tn.value : null,
|
|
574
574
|
legend: B.value.showLegend ? En.value : null,
|
|
@@ -587,7 +587,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
587
587
|
Ne(() => {
|
|
588
588
|
lr.value && (ur.value && lr.value.unobserve(ur.value), lr.value.disconnect());
|
|
589
589
|
});
|
|
590
|
-
let fr =
|
|
590
|
+
let fr = g(() => {
|
|
591
591
|
switch (K.value) {
|
|
592
592
|
case j.LINE: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
593
593
|
case j.BAR: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
@@ -662,7 +662,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
662
662
|
function xr(e) {
|
|
663
663
|
J.value = e;
|
|
664
664
|
}
|
|
665
|
-
let Sr =
|
|
665
|
+
let Sr = g(() => B.value.donutThicknessRatio < .01 ? .01 : B.value.donutThicknessRatio > .4 ? .4 : B.value.donutThicknessRatio), Y = g(() => {
|
|
666
666
|
if (K.value !== j.DONUT) return null;
|
|
667
667
|
let e = G.value.dataset.map((e, t) => ({
|
|
668
668
|
...e,
|
|
@@ -671,11 +671,11 @@ 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 ? se(e.COLOR) : er.value[t + B.value.paletteStartIndex] || c[t + B.value.paletteStartIndex] || c[(t + B.value.paletteStartIndex) % c.length],
|
|
675
675
|
immutableValue: e.value
|
|
676
676
|
}));
|
|
677
677
|
function t(e, t) {
|
|
678
|
-
return
|
|
678
|
+
return i({
|
|
679
679
|
v: isNaN(e.value / pr(t)) ? 0 : e.value / pr(t) * 100,
|
|
680
680
|
s: "%",
|
|
681
681
|
r: B.value.dataLabelRoundingPercentage
|
|
@@ -684,27 +684,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
684
684
|
function n(e) {
|
|
685
685
|
return e.proportion * 100 > B.value.donutHideLabelUnderPercentage;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function a(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 o({ datapoint: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
692
692
|
On.value = {
|
|
693
693
|
datapoint: t,
|
|
694
694
|
seriesIndex: n,
|
|
695
695
|
config: B.value,
|
|
696
696
|
dataset: e
|
|
697
697
|
}, L.value = t.id, V.value = n, H.value = r;
|
|
698
|
-
let
|
|
698
|
+
let a = B.value.tooltipCustomFormat;
|
|
699
699
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
700
700
|
datapoint: t,
|
|
701
701
|
seriesIndex: n
|
|
702
|
-
}),
|
|
702
|
+
}), f(a) && te(() => a({
|
|
703
703
|
datapoint: t,
|
|
704
704
|
seriesIndex: n,
|
|
705
705
|
series: e,
|
|
706
706
|
config: B.value
|
|
707
|
-
}))) kn.value =
|
|
707
|
+
}))) kn.value = a({
|
|
708
708
|
datapoint: t,
|
|
709
709
|
seriesIndex: n,
|
|
710
710
|
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>${
|
|
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>${p(B.value.formatter, t.value, i({
|
|
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>(${i({
|
|
724
724
|
v: t.proportion * 100,
|
|
725
725
|
s: "%",
|
|
726
726
|
r: B.value.dataLabelRoundingPercentage
|
|
@@ -734,37 +734,37 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
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 ee({ datapoint: e, seriesIndex: t }) {
|
|
738
738
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
739
739
|
datapoint: e,
|
|
740
740
|
seriesIndex: t
|
|
741
741
|
}), W("selectDatapoint", e);
|
|
742
742
|
}
|
|
743
|
-
let
|
|
743
|
+
let l = {
|
|
744
744
|
centerX: q.value.width / 2,
|
|
745
745
|
centerY: q.value.height / 2
|
|
746
|
-
},
|
|
746
|
+
}, u = e.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), d = e.map((e, t) => ({
|
|
747
747
|
...e,
|
|
748
|
-
proportion: (e.value || 0) /
|
|
748
|
+
proportion: (e.value || 0) / u,
|
|
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
|
-
})),
|
|
752
|
+
})), ne = q.value.width / 2, re = q.value.height / 2, ie = q.value.height * B.value.donutRadiusRatio;
|
|
753
753
|
return {
|
|
754
|
-
dataset:
|
|
755
|
-
legend:
|
|
756
|
-
drawingArea:
|
|
754
|
+
dataset: d.filter((e) => !R.value.includes(e.id)),
|
|
755
|
+
legend: d,
|
|
756
|
+
drawingArea: l,
|
|
757
757
|
displayArcPercentage: t,
|
|
758
758
|
isArcBigEnough: n,
|
|
759
|
-
useTooltip:
|
|
759
|
+
useTooltip: o,
|
|
760
760
|
killTooltip: s,
|
|
761
|
-
selectDatapoint:
|
|
762
|
-
getSpaces:
|
|
763
|
-
total:
|
|
764
|
-
cx:
|
|
765
|
-
cy:
|
|
766
|
-
radius:
|
|
767
|
-
chart:
|
|
761
|
+
selectDatapoint: ee,
|
|
762
|
+
getSpaces: a,
|
|
763
|
+
total: u,
|
|
764
|
+
cx: ne,
|
|
765
|
+
cy: re,
|
|
766
|
+
radius: ie,
|
|
767
|
+
chart: r({ series: e.filter((e) => !R.value.includes(e.id)) }, ne, re, ie, ie, 1.99999, 2, 1, 360, 105.25, q.value.height * Sr.value)
|
|
768
768
|
};
|
|
769
769
|
}), X = T({
|
|
770
770
|
start: 0,
|
|
@@ -775,7 +775,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
775
775
|
}
|
|
776
776
|
let wr = T(null);
|
|
777
777
|
async function Tr() {
|
|
778
|
-
await
|
|
778
|
+
await Me(), await Me();
|
|
779
779
|
let { zoomStartIndex: e, zoomEndIndex: t } = B.value, n = wr.value;
|
|
780
780
|
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(Er(t + 1))) : (X.value = {
|
|
781
781
|
start: 0,
|
|
@@ -786,7 +786,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
786
786
|
let t = G.value.maxSeriesLength;
|
|
787
787
|
return e > t ? t : e < 0 || B.value.zoomStartIndex !== null && e < B.value.zoomStartIndex ? B.value.zoomStartIndex === null ? 1 : B.value.zoomStartIndex + 1 : e;
|
|
788
788
|
}
|
|
789
|
-
let Dr =
|
|
789
|
+
let Dr = g(() => {
|
|
790
790
|
if (!B.value.zoomMinimap.show || K.value === j.DONUT) return [];
|
|
791
791
|
let e = [];
|
|
792
792
|
M(G.value.dataset) && (e = G.value.dataset), Ue(G.value.dataset) && (e = G.value.dataset.map((e, t) => ({
|
|
@@ -806,7 +806,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
806
806
|
return n > e ? n : e;
|
|
807
807
|
}, 0)), e + 4;
|
|
808
808
|
}
|
|
809
|
-
let kr = T(0), Ar =
|
|
809
|
+
let kr = T(0), Ar = ye((e) => {
|
|
810
810
|
kr.value = e;
|
|
811
811
|
}, 100);
|
|
812
812
|
Re((e) => {
|
|
@@ -819,10 +819,10 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
819
819
|
}), Ne(() => {
|
|
820
820
|
kr.value = 0;
|
|
821
821
|
});
|
|
822
|
-
let jr =
|
|
822
|
+
let jr = g(() => {
|
|
823
823
|
let e = 0;
|
|
824
824
|
return z.value && (e = kr.value), 0 + e;
|
|
825
|
-
}), Z =
|
|
825
|
+
}), Z = g(() => {
|
|
826
826
|
if (K.value !== j.LINE) return null;
|
|
827
827
|
let e = {
|
|
828
828
|
height: q.value.height,
|
|
@@ -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] || c[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,17 +854,17 @@ 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 ? se(e.COLOR) : er.value[t + B.value.paletteStartIndex] || c[t + B.value.paletteStartIndex] || c[(t + B.value.paletteStartIndex) % c.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)
|
|
861
861
|
})));
|
|
862
|
-
let
|
|
862
|
+
let a = {
|
|
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
|
+
}, o = a.max === a.min ? d(a.min, a.min + 1, B.value.xyScaleSegments) : d(a.min < 0 ? a.min : 0, a.max < 0 ? 0 : a.max, B.value.xyScaleSegments), s = a.min < 0 ? Math.abs(a.min) : 0, ee = a.max < 0 ? n.top : n.bottom - s / (o.max + s) * n.height, l = n.width / a.maxSeries, u = o.ticks.map((e) => ({
|
|
867
|
+
y: n.bottom - n.height * ((e + s) / (o.max + s)),
|
|
868
868
|
x: n.left - 8,
|
|
869
869
|
value: e
|
|
870
870
|
})), ne = 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 + s) / (o.max + s) * n.height,
|
|
876
876
|
value: e
|
|
877
877
|
}))
|
|
878
878
|
})).map((e) => {
|
|
@@ -884,32 +884,32 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
884
884
|
linePath: t.join(" ")
|
|
885
885
|
};
|
|
886
886
|
});
|
|
887
|
-
function
|
|
887
|
+
function re(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 ie(e, t = "pointer") {
|
|
895
895
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
896
|
-
let n =
|
|
896
|
+
let n = re(e);
|
|
897
897
|
On.value = {
|
|
898
898
|
datapoint: n,
|
|
899
899
|
seriesIndex: e,
|
|
900
900
|
config: B.value,
|
|
901
901
|
dataset: r
|
|
902
902
|
};
|
|
903
|
-
let
|
|
903
|
+
let a = B.value.tooltipCustomFormat;
|
|
904
904
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
905
905
|
datapoint: n,
|
|
906
906
|
seriesIndex: e + X.value.start
|
|
907
|
-
}),
|
|
907
|
+
}), f(a) && te(() => a({
|
|
908
908
|
datapoint: n,
|
|
909
909
|
seriesIndex: e,
|
|
910
910
|
series: r,
|
|
911
911
|
config: B.value
|
|
912
|
-
}))) kn.value =
|
|
912
|
+
}))) kn.value = a({
|
|
913
913
|
datapoint: n,
|
|
914
914
|
seriesIndex: e,
|
|
915
915
|
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>${
|
|
925
|
+
<b>${p(B.value.formatter, t.value, i({
|
|
926
926
|
p: B.value.valuePrefix,
|
|
927
927
|
v: t.value,
|
|
928
928
|
s: B.value.valueSuffix,
|
|
@@ -938,15 +938,15 @@ 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 ae(e) {
|
|
942
|
+
let t = re(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
|
-
function
|
|
949
|
-
let t =
|
|
948
|
+
function m(e) {
|
|
949
|
+
let t = re(e);
|
|
950
950
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
951
951
|
datapoint: t,
|
|
952
952
|
seriesIndex: e + X.value.start
|
|
@@ -957,14 +957,14 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
957
957
|
dataset: ne.filter((e) => !R.value.includes(e.id)),
|
|
958
958
|
legend: ne,
|
|
959
959
|
drawingArea: n,
|
|
960
|
-
extremes:
|
|
960
|
+
extremes: a,
|
|
961
961
|
slotSize: l,
|
|
962
|
-
yLabels:
|
|
963
|
-
useTooltip:
|
|
964
|
-
killTooltip:
|
|
965
|
-
selectDatapoint:
|
|
962
|
+
yLabels: u,
|
|
963
|
+
useTooltip: ie,
|
|
964
|
+
killTooltip: ae,
|
|
965
|
+
selectDatapoint: m
|
|
966
966
|
};
|
|
967
|
-
}), Q =
|
|
967
|
+
}), Q = g(() => {
|
|
968
968
|
if (K.value !== j.BAR) return null;
|
|
969
969
|
let e = {
|
|
970
970
|
height: q.value.height,
|
|
@@ -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] || c[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,71 +996,71 @@ 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 ? se(e.COLOR) : er.value[t + B.value.paletteStartIndex] || c[t + B.value.paletteStartIndex] || c[(t + B.value.paletteStartIndex) % c.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)
|
|
1003
1003
|
})));
|
|
1004
|
-
let
|
|
1004
|
+
let a = {
|
|
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
|
+
}, o = a.min === a.max ? d(a.min, a.min + 1, B.value.xyScaleSegments) : d(a.min < 0 ? a.min : 0, a.max, B.value.xyScaleSegments), s = o.min < 0 ? Math.abs(o.min) : 0, ee = n.bottom - s / (o.max + s) * n.height, l = n.width / a.maxSeries, u = o.ticks.map((e) => ({
|
|
1009
|
+
y: n.bottom - n.height * ((e + s) / (o.max + s)),
|
|
1010
1010
|
x: n.left - 8,
|
|
1011
1011
|
value: e
|
|
1012
1012
|
})), ne = r.map((e, t) => ({
|
|
1013
1013
|
...e,
|
|
1014
1014
|
shape: "square",
|
|
1015
|
-
coordinates: e.values.map((e,
|
|
1016
|
-
let o = (e +
|
|
1015
|
+
coordinates: e.values.map((e, i) => {
|
|
1016
|
+
let o = (e + s) / (a.max + s) * n.height, c = Math.abs(e) / Math.abs(a.min) * (n.height - ee), u = s / (a.max + s) * 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
|
-
x: n.left + l *
|
|
1018
|
+
x: n.left + l * i + d * t + B.value.barGap / 2,
|
|
1019
1019
|
y: e > 0 ? n.bottom - o : ee,
|
|
1020
|
-
height: e > 0 ? o - u :
|
|
1020
|
+
height: e > 0 ? o - u : c,
|
|
1021
1021
|
value: e,
|
|
1022
1022
|
width: d
|
|
1023
1023
|
};
|
|
1024
1024
|
})
|
|
1025
|
-
})),
|
|
1025
|
+
})), re = r.filter((e) => !R.value.includes(e.id)).map((e, t) => ({
|
|
1026
1026
|
...e,
|
|
1027
|
-
coordinates: e.values.map((e,
|
|
1028
|
-
let o = (e +
|
|
1027
|
+
coordinates: e.values.map((e, i) => {
|
|
1028
|
+
let o = (e + s) / (a.max + s) * n.height, c = Math.abs(e) / (a.max + s) * n.height, u = s / (a.max + s) * 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
|
-
x: n.left + l *
|
|
1030
|
+
x: n.left + l * i + d * t + B.value.barGap / 2,
|
|
1031
1031
|
y: e > 0 ? n.bottom - o : ee,
|
|
1032
|
-
height: e > 0 ? o - u :
|
|
1032
|
+
height: e > 0 ? o - u : c,
|
|
1033
1033
|
value: e,
|
|
1034
1034
|
width: d
|
|
1035
1035
|
};
|
|
1036
1036
|
})
|
|
1037
1037
|
}));
|
|
1038
|
-
function
|
|
1038
|
+
function ie(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 ae(e, t = "pointer") {
|
|
1046
1046
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
1047
|
-
let n =
|
|
1047
|
+
let n = ie(e);
|
|
1048
1048
|
On.value = {
|
|
1049
1049
|
datapoint: n,
|
|
1050
1050
|
seriesIndex: e,
|
|
1051
1051
|
config: B.value,
|
|
1052
1052
|
dataset: r
|
|
1053
1053
|
};
|
|
1054
|
-
let
|
|
1054
|
+
let a = B.value.tooltipCustomFormat;
|
|
1055
1055
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
1056
1056
|
datapoint: n,
|
|
1057
1057
|
seriesIndex: e + X.value.start
|
|
1058
|
-
}),
|
|
1058
|
+
}), f(a) && te(() => a({
|
|
1059
1059
|
datapoint: n,
|
|
1060
1060
|
seriesIndex: e,
|
|
1061
1061
|
series: r,
|
|
1062
1062
|
config: B.value
|
|
1063
|
-
}))) kn.value =
|
|
1063
|
+
}))) kn.value = a({
|
|
1064
1064
|
point: n,
|
|
1065
1065
|
seriesIndex: e,
|
|
1066
1066
|
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>${
|
|
1076
|
+
<b>${p(B.value.formatter, t.value, i({
|
|
1077
1077
|
p: B.value.valuePrefix,
|
|
1078
1078
|
v: t.value,
|
|
1079
1079
|
s: B.value.valueSuffix,
|
|
@@ -1089,15 +1089,15 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1089
1089
|
}
|
|
1090
1090
|
I.value = !0;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
let t =
|
|
1092
|
+
function m(e) {
|
|
1093
|
+
let t = ie(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
|
-
function
|
|
1100
|
-
let t =
|
|
1099
|
+
function oe(e) {
|
|
1100
|
+
let t = ie(e);
|
|
1101
1101
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
1102
1102
|
datapoint: t,
|
|
1103
1103
|
seriesIndex: e + X.value.start
|
|
@@ -1105,16 +1105,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return {
|
|
1107
1107
|
absoluteZero: ee,
|
|
1108
|
-
dataset:
|
|
1109
|
-
absoluteDataset:
|
|
1108
|
+
dataset: re.filter((e) => !R.value.includes(e.id)),
|
|
1109
|
+
absoluteDataset: re,
|
|
1110
1110
|
legend: ne,
|
|
1111
1111
|
drawingArea: n,
|
|
1112
|
-
extremes:
|
|
1112
|
+
extremes: a,
|
|
1113
1113
|
slotSize: l,
|
|
1114
|
-
yLabels:
|
|
1115
|
-
useTooltip:
|
|
1116
|
-
killTooltip:
|
|
1117
|
-
selectDatapoint:
|
|
1114
|
+
yLabels: u,
|
|
1115
|
+
useTooltip: ae,
|
|
1116
|
+
killTooltip: m,
|
|
1117
|
+
selectDatapoint: oe
|
|
1118
1118
|
};
|
|
1119
1119
|
});
|
|
1120
1120
|
function Mr(e) {
|
|
@@ -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 ee = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean), l = Array.isArray(In?.value) ? In.value : [In?.value].filter(Boolean), u = [...ee, ...l].filter(Boolean), d = P?.value || null, f = d ? Array.from(d.querySelectorAll(".vue-ui-quick-chart-plot")) : [],
|
|
1165
|
+
let ee = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean), l = Array.isArray(In?.value) ? In.value : [In?.value].filter(Boolean), u = [...ee, ...l].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
1166
|
u.forEach(Mr), Nr(f, {
|
|
1167
1167
|
fromOpacity: "0",
|
|
1168
1168
|
fromScale: "0.75"
|
|
1169
|
-
}), Nr(
|
|
1169
|
+
}), Nr(p, {
|
|
1170
1170
|
fromOpacity: "0",
|
|
1171
1171
|
fromScale: "0.98"
|
|
1172
|
-
}), f.forEach((e) => e.classList.remove("quick-animation")),
|
|
1173
|
-
let
|
|
1172
|
+
}), f.forEach((e) => e.classList.remove("quick-animation")), p.forEach((e) => e.classList.remove("quick-animation")), d && d.offsetWidth;
|
|
1173
|
+
let te = f.length ? Ir(f, Pr) : [], ne = p.length ? Ir(p, Fr) : [];
|
|
1174
1174
|
requestAnimationFrame(() => {
|
|
1175
1175
|
requestAnimationFrame(() => {
|
|
1176
1176
|
u.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
|
+
}), ne.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)";
|
|
@@ -1189,7 +1189,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1189
1189
|
});
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
let Rr =
|
|
1192
|
+
let Rr = g(() => {
|
|
1193
1193
|
if (K.value === j.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1194
1194
|
...e,
|
|
1195
1195
|
isVisible: !R.value.includes(e.id),
|
|
@@ -1206,7 +1206,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1206
1206
|
Re(() => {
|
|
1207
1207
|
let e = ++zr;
|
|
1208
1208
|
(async () => {
|
|
1209
|
-
let t = await
|
|
1209
|
+
let t = await ce({
|
|
1210
1210
|
values: B.value.xyPeriods,
|
|
1211
1211
|
maxDatapoints: G.value.maxSeriesLength,
|
|
1212
1212
|
formatter: B.value.datetimeFormatter,
|
|
@@ -1216,7 +1216,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1216
1216
|
e === zr && ($.value = t);
|
|
1217
1217
|
})();
|
|
1218
1218
|
});
|
|
1219
|
-
let Br =
|
|
1219
|
+
let Br = g(() => {
|
|
1220
1220
|
let e = B.value.xyPeriodsModulo;
|
|
1221
1221
|
return B.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1222
1222
|
}), Vr = T(!1);
|
|
@@ -1232,7 +1232,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1232
1232
|
}
|
|
1233
1233
|
async function Kr({ scale: e = 2 } = {}) {
|
|
1234
1234
|
if (!P.value) return;
|
|
1235
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1235
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
1236
1236
|
domElement: P.value,
|
|
1237
1237
|
base64: !0,
|
|
1238
1238
|
img: !0,
|
|
@@ -1247,8 +1247,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1247
1247
|
aspectRatio: r
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
let qr =
|
|
1251
|
-
|
|
1250
|
+
let qr = g(() => q.value.width), Jr = g(() => q.value.height);
|
|
1251
|
+
ge({
|
|
1252
1252
|
timeLabelsEls: z,
|
|
1253
1253
|
timeLabels: $,
|
|
1254
1254
|
slicer: X,
|
|
@@ -1260,16 +1260,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1260
1260
|
height: Jr.value,
|
|
1261
1261
|
width: qr.value
|
|
1262
1262
|
});
|
|
1263
|
-
let Yr =
|
|
1263
|
+
let Yr = g(() => B.value.backgroundColor), Xr = g(() => K.value === j.DONUT ? Y.value.legend : K.value === j.LINE ? Z.value.legend : Q.value.legend), Zr = g(() => ({
|
|
1264
1264
|
show: B.value.showLegend,
|
|
1265
1265
|
bold: !1,
|
|
1266
1266
|
backgroundColor: B.value.backgroundColor,
|
|
1267
1267
|
color: B.value.color,
|
|
1268
1268
|
fontSize: B.value.legendFontSize,
|
|
1269
1269
|
position: B.value.legendPosition
|
|
1270
|
-
})), { exportSvg: Qr, getSvg: $r } =
|
|
1270
|
+
})), { exportSvg: Qr, getSvg: $r } = pe({
|
|
1271
1271
|
svg: qn,
|
|
1272
|
-
title:
|
|
1272
|
+
title: g(() => ({
|
|
1273
1273
|
text: B.value.title,
|
|
1274
1274
|
color: B.value.color,
|
|
1275
1275
|
fontSize: B.value.titleFontSize,
|
|
@@ -1316,7 +1316,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1316
1316
|
function ni(e, t) {
|
|
1317
1317
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1318
1318
|
}
|
|
1319
|
-
let ri =
|
|
1319
|
+
let ri = g(() => K.value === j.DONUT ? Y.value?.chart?.length ?? 0 : K.value === j.LINE ? Z.value?.extremes?.maxSeries ?? 0 : K.value === j.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1320
1320
|
function ii() {
|
|
1321
1321
|
V.value = null, Un.value = !0;
|
|
1322
1322
|
}
|
|
@@ -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 = ae(r, !0).x, n = u(r);
|
|
1379
1379
|
}
|
|
1380
1380
|
if (K.value === j.LINE) {
|
|
1381
1381
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
@@ -1393,7 +1393,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1393
1393
|
y: r.top + n / q.value.height * r.height
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
let ci =
|
|
1396
|
+
let ci = g(() => {
|
|
1397
1397
|
if (K.value === j.DONUT) return {
|
|
1398
1398
|
headers: [
|
|
1399
1399
|
"Series",
|
|
@@ -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 ? i({
|
|
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
|
-
|
|
1411
|
+
p(B.value.formatter, e.value, i({
|
|
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
|
|
1427
|
+
return p(B.value.formatter, t, i({
|
|
1428
1428
|
p: B.value.valuePrefix,
|
|
1429
1429
|
v: t,
|
|
1430
1430
|
s: B.value.valueSuffix,
|
|
@@ -1438,7 +1438,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1438
1438
|
rows: []
|
|
1439
1439
|
};
|
|
1440
1440
|
});
|
|
1441
|
-
return
|
|
1441
|
+
return ve({
|
|
1442
1442
|
getImage: Kr,
|
|
1443
1443
|
generatePdf: ar,
|
|
1444
1444
|
generateImage: or,
|
|
@@ -1447,25 +1447,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1447
1447
|
toggleAnnotator: Gr,
|
|
1448
1448
|
toggleFullscreen: Hr,
|
|
1449
1449
|
copyAlt: ti
|
|
1450
|
-
}), (e,
|
|
1450
|
+
}), (e, n) => nr.value ? (w(), v("div", {
|
|
1451
1451
|
key: 0,
|
|
1452
1452
|
id: `${K.value}_${F.value}`,
|
|
1453
1453
|
ref_key: "quickChart",
|
|
1454
1454
|
ref: P,
|
|
1455
|
-
class:
|
|
1455
|
+
class: x({
|
|
1456
1456
|
"vue-data-ui-component": !0,
|
|
1457
1457
|
"vue-ui-quick-chart": !0,
|
|
1458
1458
|
"vue-data-ui-wrapper-fullscreen": Vr.value
|
|
1459
1459
|
}),
|
|
1460
1460
|
style: C(`background:${B.value.backgroundColor};color:${B.value.color};font-family:${B.value.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1461
|
-
onMouseenter:
|
|
1462
|
-
onMouseleave:
|
|
1461
|
+
onMouseenter: n[2] ||= () => Qn(!0),
|
|
1462
|
+
onMouseleave: n[3] ||= () => Qn(!1)
|
|
1463
1463
|
}, [
|
|
1464
|
-
|
|
1464
|
+
y("div", {
|
|
1465
1465
|
id: `chart-instructions-${F.value}`,
|
|
1466
1466
|
class: "sr-only"
|
|
1467
|
-
}, [
|
|
1468
|
-
ci.value.rows.length ? (w(),
|
|
1467
|
+
}, [y("p", null, O(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1468
|
+
ci.value.rows.length ? (w(), De(Se, {
|
|
1469
1469
|
key: 0,
|
|
1470
1470
|
uid: F.value,
|
|
1471
1471
|
head: ci.value.headers,
|
|
@@ -1478,8 +1478,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1478
1478
|
"body",
|
|
1479
1479
|
"notice",
|
|
1480
1480
|
"caption"
|
|
1481
|
-
])) :
|
|
1482
|
-
B.value.userOptionsButtons.annotator ? (w(),
|
|
1481
|
+
])) : _("", !0),
|
|
1482
|
+
B.value.userOptionsButtons.annotator ? (w(), De(k(We), {
|
|
1483
1483
|
key: 1,
|
|
1484
1484
|
svgRef: k(qn),
|
|
1485
1485
|
backgroundColor: B.value.backgroundColor,
|
|
@@ -1489,11 +1489,11 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1489
1489
|
onClose: Gr
|
|
1490
1490
|
}, {
|
|
1491
1491
|
"annotator-action-close": A(() => [D(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1492
|
-
"annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", S(
|
|
1493
|
-
"annotator-action-draw": A(({ mode: t }) => [D(e.$slots, "annotator-action-draw", S(
|
|
1494
|
-
"annotator-action-undo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-undo", S(
|
|
1495
|
-
"annotator-action-redo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-redo", S(
|
|
1496
|
-
"annotator-action-delete": A(({ disabled: t }) => [D(e.$slots, "annotator-action-delete", S(
|
|
1492
|
+
"annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", S(b({ color: t })), void 0, !0)]),
|
|
1493
|
+
"annotator-action-draw": A(({ mode: t }) => [D(e.$slots, "annotator-action-draw", S(b({ mode: t })), void 0, !0)]),
|
|
1494
|
+
"annotator-action-undo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-undo", S(b({ disabled: t })), void 0, !0)]),
|
|
1495
|
+
"annotator-action-redo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-redo", S(b({ disabled: t })), void 0, !0)]),
|
|
1496
|
+
"annotator-action-delete": A(({ disabled: t }) => [D(e.$slots, "annotator-action-delete", S(b({ disabled: t })), void 0, !0)]),
|
|
1497
1497
|
_: 3
|
|
1498
1498
|
}, 8, [
|
|
1499
1499
|
"svgRef",
|
|
@@ -1501,15 +1501,15 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1501
1501
|
"color",
|
|
1502
1502
|
"active",
|
|
1503
1503
|
"isCursorPointer"
|
|
1504
|
-
])) :
|
|
1505
|
-
sr.value ? (w(),
|
|
1504
|
+
])) : _("", !0),
|
|
1505
|
+
sr.value ? (w(), v("div", {
|
|
1506
1506
|
key: 2,
|
|
1507
1507
|
ref_key: "noTitle",
|
|
1508
1508
|
ref: jn,
|
|
1509
1509
|
class: "vue-data-ui-no-title-space",
|
|
1510
1510
|
style: "height:36px; width: 100%;background:transparent"
|
|
1511
|
-
}, null, 512)) :
|
|
1512
|
-
B.value.showUserOptions && (Yn.value || Xn.value) ? (w(),
|
|
1511
|
+
}, null, 512)) : _("", !0),
|
|
1512
|
+
B.value.showUserOptions && (Yn.value || Xn.value) ? (w(), De(k(Ke), {
|
|
1513
1513
|
ref: "details",
|
|
1514
1514
|
key: `user_option_${Mn.value}`,
|
|
1515
1515
|
backgroundColor: B.value.backgroundColor,
|
|
@@ -1542,10 +1542,10 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1542
1542
|
onToggleAnnotator: Gr,
|
|
1543
1543
|
onCopyAlt: ti,
|
|
1544
1544
|
style: C({ visibility: Yn.value ? Xn.value ? "visible" : "hidden" : "visible" })
|
|
1545
|
-
},
|
|
1545
|
+
}, Oe({ _: 2 }, [
|
|
1546
1546
|
e.$slots.menuIcon ? {
|
|
1547
1547
|
name: "menuIcon",
|
|
1548
|
-
fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", S(
|
|
1548
|
+
fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", S(b({
|
|
1549
1549
|
isOpen: t,
|
|
1550
1550
|
color: n
|
|
1551
1551
|
})), void 0, !0)]),
|
|
@@ -1573,7 +1573,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1573
1573
|
} : void 0,
|
|
1574
1574
|
e.$slots.optionFullscreen ? {
|
|
1575
1575
|
name: "optionFullscreen",
|
|
1576
|
-
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [D(e.$slots, "optionFullscreen", S(
|
|
1576
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [D(e.$slots, "optionFullscreen", S(b({
|
|
1577
1577
|
toggleFullscreen: t,
|
|
1578
1578
|
isFullscreen: n
|
|
1579
1579
|
})), void 0, !0)]),
|
|
@@ -1581,7 +1581,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1581
1581
|
} : void 0,
|
|
1582
1582
|
e.$slots.optionAnnotator ? {
|
|
1583
1583
|
name: "optionAnnotator",
|
|
1584
|
-
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [D(e.$slots, "optionAnnotator", S(
|
|
1584
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [D(e.$slots, "optionAnnotator", S(b({
|
|
1585
1585
|
toggleAnnotator: t,
|
|
1586
1586
|
isAnnotator: n
|
|
1587
1587
|
})), void 0, !0)]),
|
|
@@ -1589,7 +1589,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1589
1589
|
} : void 0,
|
|
1590
1590
|
e.$slots.optionAltCopy ? {
|
|
1591
1591
|
name: "optionAltCopy",
|
|
1592
|
-
fn: A(({ altCopy: t }) => [D(e.$slots, "optionAltCopy", S(
|
|
1592
|
+
fn: A(({ altCopy: t }) => [D(e.$slots, "optionAltCopy", S(b({ altCopy: t })), void 0, !0)]),
|
|
1593
1593
|
key: "7"
|
|
1594
1594
|
} : void 0,
|
|
1595
1595
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -1627,20 +1627,20 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1627
1627
|
"onGeneratePdf",
|
|
1628
1628
|
"onGenerateImage",
|
|
1629
1629
|
"style"
|
|
1630
|
-
])) :
|
|
1631
|
-
B.value.title ? (w(),
|
|
1630
|
+
])) : _("", !0),
|
|
1631
|
+
B.value.title ? (w(), v("div", {
|
|
1632
1632
|
key: 4,
|
|
1633
1633
|
ref_key: "quickChartTitle",
|
|
1634
1634
|
ref: Tn,
|
|
1635
1635
|
class: "vue-ui-quick-chart-title",
|
|
1636
1636
|
style: C(`background:transparent;color:${B.value.color};font-size:${B.value.titleFontSize}px;font-weight:${B.value.titleBold ? "bold" : "normal"};text-align:${B.value.titleTextAlign}`)
|
|
1637
|
-
}, O(B.value.title), 5)) :
|
|
1638
|
-
|
|
1639
|
-
|
|
1637
|
+
}, O(B.value.title), 5)) : _("", !0),
|
|
1638
|
+
y("div", { id: `legend-top-${F.value}` }, null, 8, Qe),
|
|
1639
|
+
y("div", $e, [K.value ? (w(), v("svg", {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
ref_key: "svgRef",
|
|
1642
1642
|
ref: qn,
|
|
1643
|
-
xmlns: k(
|
|
1643
|
+
xmlns: k(ie),
|
|
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}`),
|
|
@@ -1649,58 +1649,58 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1649
1649
|
onBlur: ai,
|
|
1650
1650
|
onKeydown: oi
|
|
1651
1651
|
}, [
|
|
1652
|
-
|
|
1653
|
-
e.$slots["chart-background"] && K.value === j.BAR ? (w(),
|
|
1652
|
+
ke(k(He)),
|
|
1653
|
+
e.$slots["chart-background"] && K.value === j.BAR ? (w(), v("foreignObject", {
|
|
1654
1654
|
key: 0,
|
|
1655
1655
|
x: Q.value.drawingArea.left,
|
|
1656
1656
|
y: Q.value.drawingArea.top,
|
|
1657
1657
|
width: Q.value.drawingArea.width,
|
|
1658
1658
|
height: Q.value.drawingArea.height,
|
|
1659
1659
|
style: { pointerEvents: "none" }
|
|
1660
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) :
|
|
1661
|
-
e.$slots["chart-background"] && K.value === j.LINE ? (w(),
|
|
1660
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : _("", !0),
|
|
1661
|
+
e.$slots["chart-background"] && K.value === j.LINE ? (w(), v("foreignObject", {
|
|
1662
1662
|
key: 1,
|
|
1663
1663
|
x: Z.value.drawingArea.left,
|
|
1664
1664
|
y: Z.value.drawingArea.top,
|
|
1665
1665
|
width: Z.value.drawingArea.width,
|
|
1666
1666
|
height: Z.value.drawingArea.height,
|
|
1667
1667
|
style: { pointerEvents: "none" }
|
|
1668
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) :
|
|
1669
|
-
e.$slots["chart-background"] && K.value === j.DONUT ? (w(),
|
|
1668
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : _("", !0),
|
|
1669
|
+
e.$slots["chart-background"] && K.value === j.DONUT ? (w(), v("foreignObject", {
|
|
1670
1670
|
key: 2,
|
|
1671
1671
|
x: 0,
|
|
1672
1672
|
y: 0,
|
|
1673
1673
|
width: q.value.width,
|
|
1674
1674
|
height: q.value.height,
|
|
1675
1675
|
style: { pointerEvents: "none" }
|
|
1676
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) :
|
|
1677
|
-
|
|
1676
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : _("", !0),
|
|
1677
|
+
y("defs", null, [y("filter", {
|
|
1678
1678
|
id: `blur_${F.value}`,
|
|
1679
1679
|
x: "-50%",
|
|
1680
1680
|
y: "-50%",
|
|
1681
1681
|
width: "200%",
|
|
1682
1682
|
height: "200%"
|
|
1683
|
-
}, [
|
|
1683
|
+
}, [y("feGaussianBlur", {
|
|
1684
1684
|
in: "SourceGraphic",
|
|
1685
1685
|
stdDeviation: 2,
|
|
1686
1686
|
id: `blur_std_${F.value}`
|
|
1687
|
-
}, null, 8, at),
|
|
1687
|
+
}, null, 8, at), n[4] ||= y("feColorMatrix", {
|
|
1688
1688
|
type: "saturate",
|
|
1689
1689
|
values: "0"
|
|
1690
|
-
}, null, -1)], 8, it),
|
|
1690
|
+
}, null, -1)], 8, it), y("filter", {
|
|
1691
1691
|
id: `shadow_${F.value}`,
|
|
1692
1692
|
"color-interpolation-filters": "sRGB"
|
|
1693
|
-
}, [
|
|
1693
|
+
}, [y("feDropShadow", {
|
|
1694
1694
|
dx: "0",
|
|
1695
1695
|
dy: "0",
|
|
1696
1696
|
stdDeviation: "10",
|
|
1697
1697
|
"flood-opacity": "0.5",
|
|
1698
1698
|
"flood-color": B.value.donutShadowColor
|
|
1699
1699
|
}, null, 8, st)], 8, ot)]),
|
|
1700
|
-
K.value === j.DONUT ? (w(),
|
|
1701
|
-
B.value.showDataLabels ? (w(),
|
|
1700
|
+
K.value === j.DONUT ? (w(), v(h, { key: 3 }, [
|
|
1701
|
+
B.value.showDataLabels ? (w(), v("g", ct, [(w(!0), v(h, null, E(Y.value.chart, (e, t) => (w(), v(h, null, [Y.value.isArcBigEnough(e) ? (w(), v("path", {
|
|
1702
1702
|
key: 0,
|
|
1703
|
-
d: k(
|
|
1703
|
+
d: k(re)(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),
|
|
@@ -1710,21 +1710,21 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1710
1710
|
"stroke-linejoin": "round",
|
|
1711
1711
|
fill: "none",
|
|
1712
1712
|
filter: mr(e.id)
|
|
1713
|
-
}, null, 8, lt)) :
|
|
1714
|
-
|
|
1713
|
+
}, null, 8, lt)) : _("", !0)], 64))), 256))])) : _("", !0),
|
|
1714
|
+
y("circle", {
|
|
1715
1715
|
cx: Y.value.cx,
|
|
1716
1716
|
cy: Y.value.cy,
|
|
1717
1717
|
r: Y.value.radius,
|
|
1718
1718
|
fill: B.value.backgroundColor,
|
|
1719
1719
|
filter: B.value.donutUseShadow ? `url(#shadow_${F.value})` : ""
|
|
1720
1720
|
}, null, 8, ut),
|
|
1721
|
-
|
|
1721
|
+
y("g", dt, [(w(!0), v(h, null, E(Y.value.chart, (e, t) => (w(), v("path", {
|
|
1722
1722
|
d: e.arcSlice,
|
|
1723
1723
|
fill: e.color,
|
|
1724
1724
|
stroke: B.value.donutStroke || B.value.backgroundColor,
|
|
1725
1725
|
"stroke-width": B.value.donutStrokeWidth,
|
|
1726
1726
|
filter: mr(e.id)
|
|
1727
|
-
}, null, 8, ft))), 256)), (w(!0),
|
|
1727
|
+
}, null, 8, ft))), 256)), (w(!0), v(h, null, E(Y.value.chart, (e, t) => (w(), v("path", {
|
|
1728
1728
|
d: e.arcSlice,
|
|
1729
1729
|
fill: "transparent",
|
|
1730
1730
|
onMouseenter: (n) => Y.value.useTooltip({
|
|
@@ -1741,26 +1741,26 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1741
1741
|
seriesIndex: t
|
|
1742
1742
|
})
|
|
1743
1743
|
}, null, 40, pt))), 256))]),
|
|
1744
|
-
B.value.showDataLabels ? (w(),
|
|
1745
|
-
Y.value.isArcBigEnough(e) ? (w(),
|
|
1744
|
+
B.value.showDataLabels ? (w(), v("g", mt, [(w(!0), v(h, null, E(Y.value.chart, (e, t) => (w(), v(h, null, [
|
|
1745
|
+
Y.value.isArcBigEnough(e) ? (w(), v("circle", {
|
|
1746
1746
|
key: 0,
|
|
1747
|
-
cx: k(
|
|
1748
|
-
cy: k(
|
|
1747
|
+
cx: k(ae)(e).x,
|
|
1748
|
+
cy: k(u)(e) - 3.7,
|
|
1749
1749
|
fill: e.color,
|
|
1750
1750
|
stroke: B.value.backgroundColor,
|
|
1751
1751
|
"stroke-width": 1,
|
|
1752
1752
|
r: 3,
|
|
1753
1753
|
filter: mr(e.id)
|
|
1754
|
-
}, null, 8, ht)) :
|
|
1755
|
-
Y.value.isArcBigEnough(e) ? (w(),
|
|
1754
|
+
}, null, 8, ht)) : _("", !0),
|
|
1755
|
+
Y.value.isArcBigEnough(e) ? (w(), v("text", {
|
|
1756
1756
|
key: 1,
|
|
1757
|
-
"text-anchor": k(
|
|
1758
|
-
x: k(
|
|
1759
|
-
y: k(
|
|
1757
|
+
"text-anchor": k(ae)(e, !0, 20).anchor,
|
|
1758
|
+
x: k(ae)(e, !0).x,
|
|
1759
|
+
y: k(u)(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(
|
|
1763
|
+
}, O(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + O(k(p)(B.value.formatter, e.value, k(i)({
|
|
1764
1764
|
p: B.value.valuePrefix,
|
|
1765
1765
|
v: e.value,
|
|
1766
1766
|
s: B.value.valueSuffix,
|
|
@@ -1768,38 +1768,38 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1768
1768
|
}), {
|
|
1769
1769
|
datapoint: e,
|
|
1770
1770
|
seriesIndex: t
|
|
1771
|
-
})) + ") ", 9, gt)) :
|
|
1772
|
-
Y.value.isArcBigEnough(e, !0, 20) ? (w(),
|
|
1771
|
+
})) + ") ", 9, gt)) : _("", !0),
|
|
1772
|
+
Y.value.isArcBigEnough(e, !0, 20) ? (w(), v("text", {
|
|
1773
1773
|
key: 2,
|
|
1774
|
-
"text-anchor": k(
|
|
1775
|
-
x: k(
|
|
1776
|
-
y: k(
|
|
1774
|
+
"text-anchor": k(ae)(e).anchor,
|
|
1775
|
+
x: k(ae)(e, !0).x,
|
|
1776
|
+
y: k(u)(e) + B.value.dataLabelFontSize,
|
|
1777
1777
|
fill: B.value.color,
|
|
1778
1778
|
"font-size": B.value.dataLabelFontSize,
|
|
1779
1779
|
filter: mr(e.id)
|
|
1780
|
-
}, O(e.name), 9, _t)) :
|
|
1781
|
-
], 64))), 256))])) :
|
|
1782
|
-
B.value.donutShowTotal ? (w(),
|
|
1780
|
+
}, O(e.name), 9, _t)) : _("", !0)
|
|
1781
|
+
], 64))), 256))])) : _("", !0),
|
|
1782
|
+
B.value.donutShowTotal ? (w(), v("g", vt, [y("text", {
|
|
1783
1783
|
"text-anchor": "middle",
|
|
1784
1784
|
x: Y.value.drawingArea.centerX,
|
|
1785
1785
|
y: Y.value.drawingArea.centerY - B.value.donutTotalLabelFontSize / 2,
|
|
1786
1786
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1787
1787
|
fill: B.value.color
|
|
1788
|
-
}, O(B.value.donutTotalLabelText), 9, yt),
|
|
1788
|
+
}, O(B.value.donutTotalLabelText), 9, yt), y("text", {
|
|
1789
1789
|
"text-anchor": "middle",
|
|
1790
1790
|
x: Y.value.drawingArea.centerX,
|
|
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(i)({
|
|
1795
1795
|
p: B.value.valuePrefix,
|
|
1796
1796
|
v: Y.value.total,
|
|
1797
1797
|
s: B.value.valueSuffix,
|
|
1798
1798
|
r: B.value.dataLabelRoundingValue
|
|
1799
|
-
})), 9, bt)])) :
|
|
1800
|
-
], 64)) :
|
|
1801
|
-
K.value === j.LINE ? (w(),
|
|
1802
|
-
B.value.xyShowGrid ? (w(),
|
|
1799
|
+
})), 9, bt)])) : _("", !0)
|
|
1800
|
+
], 64)) : _("", !0),
|
|
1801
|
+
K.value === j.LINE ? (w(), v(h, { key: 4 }, [
|
|
1802
|
+
B.value.xyShowGrid ? (w(), v("g", xt, [(w(!0), v(h, null, E(Z.value.yLabels, (e) => (w(), v(h, null, [e.y <= Z.value.drawingArea.bottom ? (w(), v("line", {
|
|
1803
1803
|
key: 0,
|
|
1804
1804
|
x1: Z.value.drawingArea.left,
|
|
1805
1805
|
x2: Z.value.drawingArea.right,
|
|
@@ -1808,7 +1808,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1808
1808
|
stroke: B.value.xyGridStroke,
|
|
1809
1809
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1810
1810
|
"stroke-linecap": "round"
|
|
1811
|
-
}, null, 8, St)) :
|
|
1811
|
+
}, null, 8, St)) : _("", !0)], 64))), 256)), (w(!0), v(h, null, E(Z.value.extremes.maxSeries + 1, (e, t) => (w(), v("line", {
|
|
1812
1812
|
x1: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1813
1813
|
x2: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1814
1814
|
y1: Z.value.drawingArea.top,
|
|
@@ -1816,8 +1816,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1816
1816
|
stroke: B.value.xyGridStroke,
|
|
1817
1817
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1818
1818
|
"stroke-linecap": "round"
|
|
1819
|
-
}, null, 8, Ct))), 256))])) :
|
|
1820
|
-
B.value.xyShowAxis ? (w(),
|
|
1819
|
+
}, null, 8, Ct))), 256))])) : _("", !0),
|
|
1820
|
+
B.value.xyShowAxis ? (w(), v("g", wt, [y("line", {
|
|
1821
1821
|
x1: Z.value.drawingArea.left,
|
|
1822
1822
|
x2: Z.value.drawingArea.left,
|
|
1823
1823
|
y1: Z.value.drawingArea.top,
|
|
@@ -1825,7 +1825,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1825
1825
|
stroke: B.value.xyAxisStroke,
|
|
1826
1826
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1827
1827
|
"stroke-linecap": "round"
|
|
1828
|
-
}, null, 8, Tt),
|
|
1828
|
+
}, null, 8, Tt), y("line", {
|
|
1829
1829
|
x1: Z.value.drawingArea.left,
|
|
1830
1830
|
x2: Z.value.drawingArea.right,
|
|
1831
1831
|
y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
@@ -1833,13 +1833,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1833
1833
|
stroke: B.value.xyAxisStroke,
|
|
1834
1834
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1835
1835
|
"stroke-linecap": "round"
|
|
1836
|
-
}, null, 8, Et)])) :
|
|
1837
|
-
B.value.xyShowScale ? (w(),
|
|
1836
|
+
}, null, 8, Et)])) : _("", !0),
|
|
1837
|
+
B.value.xyShowScale ? (w(), v("g", {
|
|
1838
1838
|
key: 2,
|
|
1839
1839
|
class: "yLabels",
|
|
1840
1840
|
ref_key: "scaleLabels",
|
|
1841
1841
|
ref: Ln
|
|
1842
|
-
}, [(w(!0),
|
|
1842
|
+
}, [(w(!0), v(h, null, E(Z.value.yLabels, (e, t) => (w(), v(h, null, [e.y <= Z.value.drawingArea.bottom ? (w(), v("line", {
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
x1: e.x + 4,
|
|
1845
1845
|
x2: Z.value.drawingArea.left,
|
|
@@ -1848,14 +1848,14 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1848
1848
|
stroke: B.value.xyAxisStroke,
|
|
1849
1849
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1850
1850
|
"stroke-linecap": "round"
|
|
1851
|
-
}, null, 8, Dt)) :
|
|
1851
|
+
}, null, 8, Dt)) : _("", !0), e.y <= Z.value.drawingArea.bottom ? (w(), v("text", {
|
|
1852
1852
|
key: 1,
|
|
1853
1853
|
x: e.x,
|
|
1854
1854
|
y: e.y + B.value.xyLabelsYFontSize / 3,
|
|
1855
1855
|
"text-anchor": "end",
|
|
1856
1856
|
"font-size": B.value.xyLabelsYFontSize,
|
|
1857
1857
|
fill: B.value.color
|
|
1858
|
-
}, O(k(
|
|
1858
|
+
}, O(k(p)(B.value.formatter, e.value, k(i)({
|
|
1859
1859
|
p: B.value.valuePrefix,
|
|
1860
1860
|
v: e.value,
|
|
1861
1861
|
s: B.value.valueSuffix,
|
|
@@ -1863,8 +1863,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1863
1863
|
}), {
|
|
1864
1864
|
datapoint: e,
|
|
1865
1865
|
seriesIndex: t
|
|
1866
|
-
})), 9, Ot)) :
|
|
1867
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (w(),
|
|
1866
|
+
})), 9, Ot)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1867
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (w(), v("g", kt, [(w(!0), v(h, null, E($.value.map((e) => e.text), (e, t) => (w(), v(h, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), v("line", {
|
|
1868
1868
|
key: 0,
|
|
1869
1869
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1870
1870
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
@@ -1873,60 +1873,60 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1873
1873
|
stroke: B.value.xyAxisStroke,
|
|
1874
1874
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1875
1875
|
"stroke-linecap": "round"
|
|
1876
|
-
}, null, 8, At)) :
|
|
1876
|
+
}, null, 8, At)) : _("", !0)], 64))), 256)), y("g", {
|
|
1877
1877
|
ref_key: "timeLabelsEls",
|
|
1878
1878
|
ref: z
|
|
1879
|
-
}, [(w(!0),
|
|
1879
|
+
}, [(w(!0), v(h, null, E($.value.map((e) => e.text), (e, n) => (w(), v(h, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && n % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), v("g", jt, [String(e).includes("\n") ? (w(), v("text", {
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
class: "vue-data-ui-time-label",
|
|
1882
1882
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1883
1883
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1884
1884
|
fill: B.value.color,
|
|
1885
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (
|
|
1886
|
-
innerHTML: k(
|
|
1885
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (n + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
1886
|
+
innerHTML: k(t)({
|
|
1887
1887
|
content: String(e),
|
|
1888
1888
|
fontSize: B.value.xyLabelsXFontSize,
|
|
1889
1889
|
fill: B.value.color,
|
|
1890
1890
|
x: 0,
|
|
1891
1891
|
y: 0
|
|
1892
1892
|
})
|
|
1893
|
-
}, null, 8, Nt)) : (w(),
|
|
1893
|
+
}, null, 8, Nt)) : (w(), v("text", {
|
|
1894
1894
|
key: 0,
|
|
1895
1895
|
class: "vue-data-ui-time-label",
|
|
1896
1896
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1897
1897
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1898
1898
|
fill: B.value.color,
|
|
1899
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (
|
|
1900
|
-
}, O(e), 9, Mt))])) :
|
|
1901
|
-
|
|
1899
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (n + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
1900
|
+
}, O(e), 9, Mt))])) : _("", !0)], 64))), 256))], 512)])) : _("", !0),
|
|
1901
|
+
y("g", Pt, [(w(!0), v(h, null, E(Z.value.dataset, (e, t) => (w(), v("g", Ft, [B.value.lineSmooth ? (w(), v(h, { key: 0 }, [y("path", {
|
|
1902
1902
|
ref_for: !0,
|
|
1903
1903
|
ref_key: "pathWrapper",
|
|
1904
1904
|
ref: Fn,
|
|
1905
|
-
d: `M ${k(
|
|
1905
|
+
d: `M ${k(ne)(e.coordinates)}`,
|
|
1906
1906
|
stroke: B.value.backgroundColor,
|
|
1907
1907
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1908
1908
|
"stroke-linecap": "round",
|
|
1909
1909
|
fill: "none",
|
|
1910
|
-
class:
|
|
1910
|
+
class: x({
|
|
1911
1911
|
"quick-animation": !k(U),
|
|
1912
1912
|
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1913
1913
|
}),
|
|
1914
1914
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1915
|
-
}, null, 14, It),
|
|
1915
|
+
}, null, 14, It), y("path", {
|
|
1916
1916
|
ref_for: !0,
|
|
1917
1917
|
ref_key: "pathTop",
|
|
1918
1918
|
ref: In,
|
|
1919
|
-
d: `M ${k(
|
|
1919
|
+
d: `M ${k(ne)(e.coordinates)}`,
|
|
1920
1920
|
stroke: e.color,
|
|
1921
1921
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1922
1922
|
"stroke-linecap": "round",
|
|
1923
1923
|
fill: "none",
|
|
1924
|
-
class:
|
|
1924
|
+
class: x({
|
|
1925
1925
|
"quick-animation": !k(U),
|
|
1926
1926
|
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1927
1927
|
}),
|
|
1928
1928
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1929
|
-
}, null, 14, Lt)], 64)) : (w(),
|
|
1929
|
+
}, null, 14, Lt)], 64)) : (w(), v(h, { key: 1 }, [y("path", {
|
|
1930
1930
|
ref_for: !0,
|
|
1931
1931
|
ref_key: "pathWrapper",
|
|
1932
1932
|
ref: Fn,
|
|
@@ -1935,12 +1935,12 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1935
1935
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1936
1936
|
"stroke-linecap": "round",
|
|
1937
1937
|
fill: "none",
|
|
1938
|
-
class:
|
|
1938
|
+
class: x({
|
|
1939
1939
|
"quick-animation": !k(U),
|
|
1940
1940
|
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1941
1941
|
}),
|
|
1942
1942
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1943
|
-
}, null, 14, Rt),
|
|
1943
|
+
}, null, 14, Rt), y("path", {
|
|
1944
1944
|
ref_for: !0,
|
|
1945
1945
|
ref_key: "pathTop",
|
|
1946
1946
|
ref: In,
|
|
@@ -1949,45 +1949,45 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1949
1949
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1950
1950
|
"stroke-linecap": "round",
|
|
1951
1951
|
fill: "none",
|
|
1952
|
-
class:
|
|
1952
|
+
class: x({
|
|
1953
1953
|
"quick-animation": !k(U),
|
|
1954
1954
|
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1955
1955
|
}),
|
|
1956
1956
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1957
|
-
}, null, 14, zt)], 64)), (w(!0),
|
|
1957
|
+
}, null, 14, zt)], 64)), (w(!0), v(h, null, E(e.coordinates, (t, n) => (w(), v("circle", {
|
|
1958
1958
|
cx: t.x,
|
|
1959
|
-
cy: k(
|
|
1959
|
+
cy: k(m)(t.y),
|
|
1960
1960
|
r: 3,
|
|
1961
1961
|
fill: e.color,
|
|
1962
1962
|
stroke: B.value.backgroundColor,
|
|
1963
1963
|
"stroke-width": "0.5",
|
|
1964
|
-
class:
|
|
1964
|
+
class: x({
|
|
1965
1965
|
"vue-ui-quick-chart-plot": !0,
|
|
1966
1966
|
"quick-animation": !k(U)
|
|
1967
1967
|
}),
|
|
1968
1968
|
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1969
1969
|
}, null, 14, Bt))), 256))]))), 256))]),
|
|
1970
|
-
B.value.showDataLabels ? (w(),
|
|
1970
|
+
B.value.showDataLabels ? (w(), v("g", Vt, [(w(!0), v(h, null, E(Z.value.dataset, (e, t) => (w(), v(h, null, [(w(!0), v(h, null, E(e.coordinates, (t, n) => (w(), v("text", {
|
|
1971
1971
|
"text-anchor": "middle",
|
|
1972
1972
|
"font-size": B.value.dataLabelFontSize,
|
|
1973
1973
|
fill: e.color,
|
|
1974
1974
|
x: t.x,
|
|
1975
|
-
y: k(
|
|
1976
|
-
class:
|
|
1975
|
+
y: k(m)(t.y) - B.value.dataLabelFontSize / 2,
|
|
1976
|
+
class: x({
|
|
1977
1977
|
"vue-ui-quick-chart-label": !0,
|
|
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(
|
|
1981
|
+
}, O(k(p)(B.value.formatter, k(m)(t.value), k(i)({
|
|
1982
1982
|
p: B.value.valuePrefix,
|
|
1983
|
-
v: k(
|
|
1983
|
+
v: k(m)(t.value),
|
|
1984
1984
|
s: B.value.valueSuffix,
|
|
1985
1985
|
r: B.value.dataLabelRoundingValue
|
|
1986
1986
|
}), {
|
|
1987
1987
|
datapoint: t,
|
|
1988
1988
|
seriesIndex: n
|
|
1989
|
-
})), 15, Ht))), 256))], 64))), 256))])) :
|
|
1990
|
-
Zn.value ? (w(),
|
|
1989
|
+
})), 15, Ht))), 256))], 64))), 256))])) : _("", !0),
|
|
1990
|
+
Zn.value ? (w(), v("g", Ut, [(w(!0), v(h, null, E(Z.value.extremes.maxSeries, (e, t) => (w(), v("rect", {
|
|
1991
1991
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
1992
1992
|
y: Z.value.drawingArea.top,
|
|
1993
1993
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
@@ -1997,10 +1997,10 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1997
1997
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
1998
1998
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
1999
1999
|
onClick: (e) => Z.value.selectDatapoint(t)
|
|
2000
|
-
}, null, 44, Wt))), 256))])) :
|
|
2001
|
-
], 64)) :
|
|
2002
|
-
K.value === j.BAR ? (w(),
|
|
2003
|
-
B.value.xyShowGrid ? (w(),
|
|
2000
|
+
}, null, 44, Wt))), 256))])) : _("", !0)
|
|
2001
|
+
], 64)) : _("", !0),
|
|
2002
|
+
K.value === j.BAR ? (w(), v(h, { key: 5 }, [
|
|
2003
|
+
B.value.xyShowGrid ? (w(), v("g", Gt, [(w(!0), v(h, null, E(Q.value.yLabels, (e) => (w(), v(h, null, [e.y <= Q.value.drawingArea.bottom ? (w(), v("line", {
|
|
2004
2004
|
key: 0,
|
|
2005
2005
|
x1: Q.value.drawingArea.left,
|
|
2006
2006
|
x2: Q.value.drawingArea.right,
|
|
@@ -2009,7 +2009,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2009
2009
|
stroke: B.value.xyGridStroke,
|
|
2010
2010
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2011
2011
|
"stroke-linecap": "round"
|
|
2012
|
-
}, null, 8, Kt)) :
|
|
2012
|
+
}, null, 8, Kt)) : _("", !0)], 64))), 256)), R.value.length < Q.value.legend.length ? (w(!0), v(h, { key: 0 }, E(Q.value.extremes.maxSeries + 1, (e, t) => (w(), v("line", {
|
|
2013
2013
|
x1: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2014
2014
|
x2: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2015
2015
|
y1: Q.value.drawingArea.top,
|
|
@@ -2017,8 +2017,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2017
2017
|
stroke: B.value.xyGridStroke,
|
|
2018
2018
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2019
2019
|
"stroke-linecap": "round"
|
|
2020
|
-
}, null, 8, qt))), 256)) :
|
|
2021
|
-
B.value.xyShowAxis ? (w(),
|
|
2020
|
+
}, null, 8, qt))), 256)) : _("", !0)])) : _("", !0),
|
|
2021
|
+
B.value.xyShowAxis ? (w(), v("g", Jt, [y("line", {
|
|
2022
2022
|
x1: Q.value.drawingArea.left,
|
|
2023
2023
|
x2: Q.value.drawingArea.left,
|
|
2024
2024
|
y1: Q.value.drawingArea.top,
|
|
@@ -2026,7 +2026,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2026
2026
|
stroke: B.value.xyAxisStroke,
|
|
2027
2027
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2028
2028
|
"stroke-linecap": "round"
|
|
2029
|
-
}, null, 8, Yt),
|
|
2029
|
+
}, null, 8, Yt), y("line", {
|
|
2030
2030
|
x1: Q.value.drawingArea.left,
|
|
2031
2031
|
x2: Q.value.drawingArea.right,
|
|
2032
2032
|
y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
@@ -2034,13 +2034,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2034
2034
|
stroke: B.value.xyAxisStroke,
|
|
2035
2035
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2036
2036
|
"stroke-linecap": "round"
|
|
2037
|
-
}, null, 8, Xt)])) :
|
|
2038
|
-
B.value.xyShowScale ? (w(),
|
|
2037
|
+
}, null, 8, Xt)])) : _("", !0),
|
|
2038
|
+
B.value.xyShowScale ? (w(), v("g", {
|
|
2039
2039
|
key: 2,
|
|
2040
2040
|
class: "yLabels",
|
|
2041
2041
|
ref_key: "scaleLabels",
|
|
2042
2042
|
ref: Ln
|
|
2043
|
-
}, [(w(!0),
|
|
2043
|
+
}, [(w(!0), v(h, null, E(Q.value.yLabels, (e, t) => (w(), v(h, null, [e.y <= Q.value.drawingArea.bottom ? (w(), v("line", {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
x1: e.x + 4,
|
|
2046
2046
|
x2: Q.value.drawingArea.left,
|
|
@@ -2049,14 +2049,14 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2049
2049
|
stroke: B.value.xyAxisStroke,
|
|
2050
2050
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2051
2051
|
"stroke-linecap": "round"
|
|
2052
|
-
}, null, 8, Zt)) :
|
|
2052
|
+
}, null, 8, Zt)) : _("", !0), e.y <= Q.value.drawingArea.bottom ? (w(), v("text", {
|
|
2053
2053
|
key: 1,
|
|
2054
2054
|
x: e.x,
|
|
2055
2055
|
y: e.y + B.value.xyLabelsYFontSize / 3,
|
|
2056
2056
|
"text-anchor": "end",
|
|
2057
2057
|
"font-size": B.value.xyLabelsYFontSize,
|
|
2058
2058
|
fill: B.value.color
|
|
2059
|
-
}, O(k(
|
|
2059
|
+
}, O(k(p)(B.value.formatter, e.value, k(i)({
|
|
2060
2060
|
p: B.value.valuePrefix,
|
|
2061
2061
|
v: e.value,
|
|
2062
2062
|
s: B.value.valueSuffix,
|
|
@@ -2064,8 +2064,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2064
2064
|
}), {
|
|
2065
2065
|
datapoint: e,
|
|
2066
2066
|
seriesIndex: t
|
|
2067
|
-
})), 9, Qt)) :
|
|
2068
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (w(),
|
|
2067
|
+
})), 9, Qt)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
2068
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (w(), v("g", $t, [(w(!0), v(h, null, E(B.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (w(), v("line", {
|
|
2069
2069
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2070
2070
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2071
2071
|
y1: Q.value.drawingArea.bottom,
|
|
@@ -2073,71 +2073,71 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2073
2073
|
stroke: B.value.xyAxisStroke,
|
|
2074
2074
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2075
2075
|
"stroke-linecap": "round"
|
|
2076
|
-
}, null, 8, en))), 256)),
|
|
2076
|
+
}, null, 8, en))), 256)), y("g", {
|
|
2077
2077
|
ref_key: "timeLabelsEls",
|
|
2078
2078
|
ref: z
|
|
2079
|
-
}, [(w(!0),
|
|
2079
|
+
}, [(w(!0), v(h, null, E($.value.map((e) => e.text), (e, n) => (w(), v(h, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && n % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), v("g", tn, [String(e).includes("\n") ? (w(), v("text", {
|
|
2080
2080
|
key: 1,
|
|
2081
2081
|
class: "vue-data-ui-time-label",
|
|
2082
2082
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2083
2083
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2084
2084
|
fill: B.value.color,
|
|
2085
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (
|
|
2086
|
-
innerHTML: k(
|
|
2085
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (n + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
2086
|
+
innerHTML: k(t)({
|
|
2087
2087
|
content: String(e),
|
|
2088
2088
|
fontSize: B.value.xyLabelsXFontSize,
|
|
2089
2089
|
fill: B.value.color,
|
|
2090
2090
|
x: 0,
|
|
2091
2091
|
y: 0
|
|
2092
2092
|
})
|
|
2093
|
-
}, null, 8, rn)) : (w(),
|
|
2093
|
+
}, null, 8, rn)) : (w(), v("text", {
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
class: "vue-data-ui-time-label",
|
|
2096
2096
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2097
2097
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2098
2098
|
fill: B.value.color,
|
|
2099
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (
|
|
2100
|
-
}, O(e), 9, nn))])) :
|
|
2101
|
-
|
|
2099
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (n + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
2100
|
+
}, O(e), 9, nn))])) : _("", !0)], 64))), 256))], 512)])) : _("", !0),
|
|
2101
|
+
y("g", an, [(w(!0), v(h, null, E(Q.value.dataset, (e, t) => (w(), v(h, null, [(w(!0), v(h, null, E(e.coordinates, (t, n) => (w(), v("rect", {
|
|
2102
2102
|
x: t.x,
|
|
2103
2103
|
width: t.width <= 0 ? 1e-5 : t.width,
|
|
2104
|
-
height: k(
|
|
2105
|
-
y: k(
|
|
2104
|
+
height: k(m)(t.height <= 0 ? 1e-5 : t.height),
|
|
2105
|
+
y: k(m)(t.y),
|
|
2106
2106
|
fill: e.color,
|
|
2107
2107
|
stroke: B.value.backgroundColor,
|
|
2108
2108
|
"stroke-width": B.value.barStrokeWidth,
|
|
2109
2109
|
"stroke-linecap": "round",
|
|
2110
|
-
class:
|
|
2111
|
-
}, [B.value.barAnimated && t.value > 0 && !k(rr) && !k(ir) ? (w(),
|
|
2110
|
+
class: x({ "vue-data-ui-bar-animated": B.value.barAnimated && t.value < 0 && !k(U) })
|
|
2111
|
+
}, [B.value.barAnimated && t.value > 0 && !k(rr) && !k(ir) ? (w(), v("animate", {
|
|
2112
2112
|
key: 0,
|
|
2113
2113
|
attributeName: "height",
|
|
2114
2114
|
from: 0,
|
|
2115
2115
|
to: t.height,
|
|
2116
2116
|
dur: "0.5s"
|
|
2117
|
-
}, null, 8, sn)) :
|
|
2117
|
+
}, null, 8, sn)) : _("", !0), B.value.barAnimated && t.value > 0 && !k(rr) && !k(ir) ? (w(), v("animate", {
|
|
2118
2118
|
key: 1,
|
|
2119
2119
|
attributeName: "y",
|
|
2120
2120
|
from: Q.value.absoluteZero,
|
|
2121
2121
|
to: Q.value.absoluteZero - t.height,
|
|
2122
2122
|
dur: "0.5s"
|
|
2123
|
-
}, null, 8, cn)) :
|
|
2124
|
-
B.value.showDataLabels ? (w(),
|
|
2123
|
+
}, null, 8, cn)) : _("", !0)], 10, on))), 256))], 64))), 256))]),
|
|
2124
|
+
B.value.showDataLabels ? (w(), v("g", ln, [(w(!0), v(h, null, E(Q.value.dataset, (e, t) => (w(), v(h, null, [(w(!0), v(h, null, E(e.coordinates, (t, n) => (w(), v("text", {
|
|
2125
2125
|
x: t.x + t.width / 2,
|
|
2126
|
-
y: k(
|
|
2126
|
+
y: k(m)(t.y) - B.value.dataLabelFontSize / 2,
|
|
2127
2127
|
"text-anchor": "middle",
|
|
2128
2128
|
"font-size": B.value.dataLabelFontSize,
|
|
2129
2129
|
fill: e.color,
|
|
2130
2130
|
class: "quick-animation"
|
|
2131
|
-
}, O(k(
|
|
2131
|
+
}, O(k(p)(B.value.formatter, k(m)(t.value), k(i)({
|
|
2132
2132
|
p: B.value.valuePrefix,
|
|
2133
|
-
v: k(
|
|
2133
|
+
v: k(m)(t.value),
|
|
2134
2134
|
s: B.value.valueSuffix,
|
|
2135
2135
|
r: B.value.dataLabelRoundingValue
|
|
2136
2136
|
}), {
|
|
2137
2137
|
datapoint: t,
|
|
2138
2138
|
seriesIndex: n
|
|
2139
|
-
})), 9, un))), 256))], 64))), 256))])) :
|
|
2140
|
-
Zn.value && R.value.length < Q.value.legend.length ? (w(),
|
|
2139
|
+
})), 9, un))), 256))], 64))), 256))])) : _("", !0),
|
|
2140
|
+
Zn.value && R.value.length < Q.value.legend.length ? (w(), v("g", dn, [(w(!0), v(h, null, E(Q.value.extremes.maxSeries, (e, t) => (w(), v("rect", {
|
|
2141
2141
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
2142
2142
|
y: Q.value.drawingArea.top,
|
|
2143
2143
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
@@ -2147,62 +2147,62 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2147
2147
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2148
2148
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
2149
2149
|
onClick: (e) => Q.value.selectDatapoint(t)
|
|
2150
|
-
}, null, 44, fn))), 256))])) :
|
|
2151
|
-
], 64)) :
|
|
2152
|
-
[j.LINE, j.BAR].includes(K.value) ? (w(),
|
|
2153
|
-
B.value.xAxisLabel && K.value === j.LINE ? (w(),
|
|
2150
|
+
}, null, 44, fn))), 256))])) : _("", !0)
|
|
2151
|
+
], 64)) : _("", !0),
|
|
2152
|
+
[j.LINE, j.BAR].includes(K.value) ? (w(), v("g", pn, [
|
|
2153
|
+
B.value.xAxisLabel && K.value === j.LINE ? (w(), v("g", {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
ref_key: "xAxisLabel",
|
|
2156
2156
|
ref: Rn
|
|
2157
|
-
}, [
|
|
2157
|
+
}, [y("text", {
|
|
2158
2158
|
"font-size": B.value.axisLabelsFontSize,
|
|
2159
2159
|
fill: B.value.color,
|
|
2160
2160
|
"text-anchor": "middle",
|
|
2161
2161
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2162
2162
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2163
|
-
}, O(B.value.xAxisLabel), 9, mn)], 512)) :
|
|
2164
|
-
B.value.xAxisLabel && K.value === j.BAR ? (w(),
|
|
2163
|
+
}, O(B.value.xAxisLabel), 9, mn)], 512)) : _("", !0),
|
|
2164
|
+
B.value.xAxisLabel && K.value === j.BAR ? (w(), v("g", {
|
|
2165
2165
|
key: 1,
|
|
2166
2166
|
ref_key: "xAxisLabel",
|
|
2167
2167
|
ref: Rn
|
|
2168
|
-
}, [
|
|
2168
|
+
}, [y("text", {
|
|
2169
2169
|
"font-size": B.value.axisLabelsFontSize,
|
|
2170
2170
|
fill: B.value.color,
|
|
2171
2171
|
"text-anchor": "middle",
|
|
2172
2172
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2173
2173
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2174
|
-
}, O(B.value.xAxisLabel), 9, hn)], 512)) :
|
|
2175
|
-
B.value.yAxisLabel && K.value === j.LINE ? (w(),
|
|
2174
|
+
}, O(B.value.xAxisLabel), 9, hn)], 512)) : _("", !0),
|
|
2175
|
+
B.value.yAxisLabel && K.value === j.LINE ? (w(), v("g", {
|
|
2176
2176
|
key: 2,
|
|
2177
2177
|
ref_key: "yAxisLabel",
|
|
2178
2178
|
ref: zn
|
|
2179
|
-
}, [
|
|
2179
|
+
}, [y("text", {
|
|
2180
2180
|
"font-size": B.value.axisLabelsFontSize,
|
|
2181
2181
|
fill: B.value.color,
|
|
2182
2182
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2183
2183
|
"text-anchor": "middle"
|
|
2184
|
-
}, O(B.value.yAxisLabel), 9, gn)], 512)) :
|
|
2185
|
-
B.value.yAxisLabel && K.value === j.BAR ? (w(),
|
|
2184
|
+
}, O(B.value.yAxisLabel), 9, gn)], 512)) : _("", !0),
|
|
2185
|
+
B.value.yAxisLabel && K.value === j.BAR ? (w(), v("g", {
|
|
2186
2186
|
key: 3,
|
|
2187
2187
|
ref_key: "yAxisLabel",
|
|
2188
2188
|
ref: zn
|
|
2189
|
-
}, [
|
|
2189
|
+
}, [y("text", {
|
|
2190
2190
|
"font-size": B.value.axisLabelsFontSize,
|
|
2191
2191
|
fill: B.value.color,
|
|
2192
2192
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2193
2193
|
"text-anchor": "middle"
|
|
2194
|
-
}, O(B.value.yAxisLabel), 9, _n)], 512)) :
|
|
2195
|
-
])) :
|
|
2196
|
-
], 44, et)) :
|
|
2194
|
+
}, O(B.value.yAxisLabel), 9, _n)], 512)) : _("", !0)
|
|
2195
|
+
])) : _("", !0)
|
|
2196
|
+
], 44, et)) : _("", !0), e.$slots.hint ? (w(), v("div", vn, [D(e.$slots, "hint", S(b({
|
|
2197
2197
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
2198
2198
|
isVisible: Un.value
|
|
2199
|
-
})), void 0, !0)])) :
|
|
2200
|
-
e.$slots.watermark ? (w(),
|
|
2201
|
-
[j.BAR, j.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? (w(),
|
|
2199
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
2200
|
+
e.$slots.watermark ? (w(), v("div", yn, [D(e.$slots, "watermark", S(b({ isPrinting: k(rr) || k(ir) })), void 0, !0)])) : _("", !0),
|
|
2201
|
+
[j.BAR, j.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? (w(), v("div", {
|
|
2202
2202
|
key: `slicer_${Nn.value}`,
|
|
2203
2203
|
ref_key: "quickChartSlicer",
|
|
2204
2204
|
ref: Dn
|
|
2205
|
-
}, [(w(),
|
|
2205
|
+
}, [(w(), De(we, {
|
|
2206
2206
|
ref_key: "slicerComponent",
|
|
2207
2207
|
ref: wr,
|
|
2208
2208
|
key: `slicer_${Nn.value}`,
|
|
@@ -2229,9 +2229,9 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2229
2229
|
verticalHandles: B.value.zoomMinimap.verticalHandles,
|
|
2230
2230
|
minimapSelectedIndex: J.value,
|
|
2231
2231
|
start: X.value.start,
|
|
2232
|
-
"onUpdate:start":
|
|
2232
|
+
"onUpdate:start": n[0] ||= (e) => X.value.start = e,
|
|
2233
2233
|
end: X.value.end,
|
|
2234
|
-
"onUpdate:end":
|
|
2234
|
+
"onUpdate:end": n[1] ||= (e) => X.value.end = e,
|
|
2235
2235
|
refreshStartPoint: B.value.zoomStartIndex === null ? 0 : B.value.zoomStartIndex,
|
|
2236
2236
|
refreshEndPoint: B.value.zoomEndIndex === null ? G.value.maxSeriesLength : B.value.zoomEndIndex + 1,
|
|
2237
2237
|
enableRangeHandles: B.value.zoomEnableRangeHandles,
|
|
@@ -2253,21 +2253,21 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2253
2253
|
onReset: Cr,
|
|
2254
2254
|
onTrapMouse: xr
|
|
2255
2255
|
}, {
|
|
2256
|
-
"reset-action": A(({ reset: t }) => [D(e.$slots, "reset-action", S(
|
|
2256
|
+
"reset-action": A(({ reset: t }) => [D(e.$slots, "reset-action", S(b({ reset: t })), void 0, !0)]),
|
|
2257
2257
|
_: 3
|
|
2258
|
-
}, 8, /* @__PURE__ */ "background.borderColor.fontSize.useResetSlot.labelLeft.labelRight.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.start.end.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth".split(".")))])) :
|
|
2259
|
-
|
|
2260
|
-
Pn.value && B.value.showLegend ? (w(), Ee
|
|
2258
|
+
}, 8, /* @__PURE__ */ "background.borderColor.fontSize.useResetSlot.labelLeft.labelRight.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.start.end.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth".split(".")))])) : _("", !0),
|
|
2259
|
+
y("div", { id: `legend-bottom-${F.value}` }, null, 8, bn),
|
|
2260
|
+
Pn.value && B.value.showLegend ? (w(), De(Ee, {
|
|
2261
2261
|
key: 7,
|
|
2262
2262
|
to: B.value.legendPosition === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2263
|
-
}, [B.value.showLegend ? (w(),
|
|
2263
|
+
}, [B.value.showLegend ? (w(), v("div", {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
ref_key: "quickChartLegend",
|
|
2266
2266
|
ref: En,
|
|
2267
2267
|
class: "vue-ui-quick-chart-legend",
|
|
2268
2268
|
style: C(`background:transparent;color:${B.value.color}`)
|
|
2269
2269
|
}, [
|
|
2270
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !k(U) ? (w(),
|
|
2270
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !k(U) ? (w(), De(xe, {
|
|
2271
2271
|
key: 0,
|
|
2272
2272
|
backgroundColor: B.value.legendSelectAllToggleBackgroundColor,
|
|
2273
2273
|
color: B.value.legendSelectAllToggleColor,
|
|
@@ -2281,8 +2281,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2281
2281
|
"fontSize",
|
|
2282
2282
|
"checked",
|
|
2283
2283
|
"isCursorPointer"
|
|
2284
|
-
])) :
|
|
2285
|
-
K.value === j.DONUT ? (w(!0),
|
|
2284
|
+
])) : _("", !0),
|
|
2285
|
+
K.value === j.DONUT ? (w(!0), v(h, { key: 1 }, E(Y.value.legend, (t, n) => (w(), v("div", {
|
|
2286
2286
|
class: "vue-ui-quick-chart-legend-item",
|
|
2287
2287
|
onClick: (e) => br(t, Y.value.dataset),
|
|
2288
2288
|
style: C(`cursor: ${Y.value.legend.length > 1 && Vn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
@@ -2293,7 +2293,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2293
2293
|
br(t, Y.value.dataset);
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
}, [B.value.useCustomLegend ? D(e.$slots, "legend",
|
|
2296
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", je({
|
|
2297
2297
|
key: 0,
|
|
2298
2298
|
ref_for: !0
|
|
2299
2299
|
}, { legend: {
|
|
@@ -2302,8 +2302,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2302
2302
|
segregate: () => {
|
|
2303
2303
|
br(t, Y.value.dataset);
|
|
2304
2304
|
}
|
|
2305
|
-
} }), void 0, !0) : (w(),
|
|
2306
|
-
|
|
2305
|
+
} }), void 0, !0) : (w(), v(h, { key: 1 }, [
|
|
2306
|
+
ke(k(Ve), {
|
|
2307
2307
|
name: B.value.legendIcon,
|
|
2308
2308
|
stroke: t.color,
|
|
2309
2309
|
size: B.value.legendIconSize
|
|
@@ -2312,8 +2312,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2312
2312
|
"stroke",
|
|
2313
2313
|
"size"
|
|
2314
2314
|
]),
|
|
2315
|
-
|
|
2316
|
-
|
|
2315
|
+
y("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5),
|
|
2316
|
+
y("span", { style: C(`font-size:${B.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, O(R.value.includes(t.id) ? "-" : k(p)(B.value.formatter, t.absoluteValue, k(i)({
|
|
2317
2317
|
p: B.value.valuePrefix,
|
|
2318
2318
|
v: t.absoluteValue,
|
|
2319
2319
|
s: B.value.valueSuffix,
|
|
@@ -2322,22 +2322,22 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2322
2322
|
datapoint: t,
|
|
2323
2323
|
seriesIndex: n
|
|
2324
2324
|
})), 5),
|
|
2325
|
-
R.value.includes(t.id) ? (w(),
|
|
2325
|
+
R.value.includes(t.id) ? (w(), v("span", {
|
|
2326
2326
|
key: 0,
|
|
2327
2327
|
style: C(`font-size:${B.value.legendFontSize}px`)
|
|
2328
|
-
}, " ( - % ) ", 4)) : yr.value ? (w(),
|
|
2328
|
+
}, " ( - % ) ", 4)) : yr.value ? (w(), v("span", {
|
|
2329
2329
|
key: 1,
|
|
2330
2330
|
style: C(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2331
|
-
}, " ( - % ) ", 4)) : (w(),
|
|
2331
|
+
}, " ( - % ) ", 4)) : (w(), v("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(i)({
|
|
2335
2335
|
v: t.value / Y.value.total * 100,
|
|
2336
2336
|
s: "%",
|
|
2337
2337
|
r: B.value.dataLabelRoundingPercentage
|
|
2338
2338
|
})) + ") ", 5))
|
|
2339
|
-
], 64))], 44, xn))), 256)) :
|
|
2340
|
-
K.value === j.LINE ? (w(!0),
|
|
2339
|
+
], 64))], 44, xn))), 256)) : _("", !0),
|
|
2340
|
+
K.value === j.LINE ? (w(!0), v(h, { key: 2 }, E(Z.value.legend, (t, n) => (w(), v("div", {
|
|
2341
2341
|
class: "vue-ui-quick-chart-legend-item",
|
|
2342
2342
|
onClick: (e) => {
|
|
2343
2343
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
@@ -2350,7 +2350,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2350
2350
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
|
-
}, [B.value.useCustomLegend ? D(e.$slots, "legend",
|
|
2353
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", je({
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
ref_for: !0
|
|
2356
2356
|
}, { legend: {
|
|
@@ -2359,7 +2359,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2359
2359
|
segregate: () => {
|
|
2360
2360
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2361
2361
|
}
|
|
2362
|
-
} }), void 0, !0) : (w(),
|
|
2362
|
+
} }), void 0, !0) : (w(), v(h, { key: 1 }, [ke(k(Ve), {
|
|
2363
2363
|
name: B.value.legendIcon,
|
|
2364
2364
|
stroke: t.color,
|
|
2365
2365
|
size: B.value.legendIconSize
|
|
@@ -2367,8 +2367,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2367
2367
|
"name",
|
|
2368
2368
|
"stroke",
|
|
2369
2369
|
"size"
|
|
2370
|
-
]),
|
|
2371
|
-
K.value === j.BAR ? (w(!0),
|
|
2370
|
+
]), y("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5)], 64))], 44, Sn))), 256)) : _("", !0),
|
|
2371
|
+
K.value === j.BAR ? (w(!0), v(h, { key: 3 }, E(Q.value.legend, (t, n) => (w(), v("div", {
|
|
2372
2372
|
class: "vue-ui-quick-chart-legend-item",
|
|
2373
2373
|
onClick: (e) => {
|
|
2374
2374
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
@@ -2381,7 +2381,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2381
2381
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2382
2382
|
});
|
|
2383
2383
|
}
|
|
2384
|
-
}, [B.value.useCustomLegend ? D(e.$slots, "legend",
|
|
2384
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", je({
|
|
2385
2385
|
key: 0,
|
|
2386
2386
|
ref_for: !0
|
|
2387
2387
|
}, { legend: {
|
|
@@ -2390,7 +2390,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2390
2390
|
segregate: () => {
|
|
2391
2391
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2392
2392
|
}
|
|
2393
|
-
} }), void 0, !0) : (w(),
|
|
2393
|
+
} }), void 0, !0) : (w(), v(h, { key: 1 }, [ke(k(Ve), {
|
|
2394
2394
|
name: B.value.legendIcon,
|
|
2395
2395
|
stroke: t.color,
|
|
2396
2396
|
size: B.value.legendIconSize
|
|
@@ -2398,15 +2398,15 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2398
2398
|
"name",
|
|
2399
2399
|
"stroke",
|
|
2400
2400
|
"size"
|
|
2401
|
-
]),
|
|
2402
|
-
], 4)) :
|
|
2403
|
-
e.$slots.source ? (w(),
|
|
2401
|
+
]), y("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5)], 64))], 44, Cn))), 256)) : _("", !0)
|
|
2402
|
+
], 4)) : _("", !0)], 8, ["to"])) : _("", !0),
|
|
2403
|
+
e.$slots.source ? (w(), v("div", {
|
|
2404
2404
|
key: 8,
|
|
2405
2405
|
ref_key: "source",
|
|
2406
2406
|
ref: An,
|
|
2407
2407
|
dir: "auto"
|
|
2408
|
-
}, [D(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
2409
|
-
|
|
2408
|
+
}, [D(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
2409
|
+
ke(k(Ge), {
|
|
2410
2410
|
teleportTo: B.value.tooltipTeleportTo,
|
|
2411
2411
|
show: cr.value.showTooltip && I.value,
|
|
2412
2412
|
backgroundColor: B.value.backgroundColor,
|
|
@@ -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(f)(B.value.tooltipCustomFormat),
|
|
2426
2426
|
smooth: B.value.tooltipSmooth,
|
|
2427
2427
|
smoothForce: B.value.tooltipSmoothForce,
|
|
2428
2428
|
smoothSnapThreshold: B.value.tooltipSmoothSnapThreshold,
|
|
@@ -2430,9 +2430,9 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2430
2430
|
isA11yMode: H.value === "keyboard",
|
|
2431
2431
|
a11yPosition: Hn.value
|
|
2432
2432
|
}, {
|
|
2433
|
-
"tooltip-before": A(() => [D(e.$slots, "tooltip-before", S(
|
|
2434
|
-
tooltip: A(() => [D(e.$slots, "tooltip", S(
|
|
2435
|
-
"tooltip-after": A(() => [D(e.$slots, "tooltip-after", S(
|
|
2433
|
+
"tooltip-before": A(() => [D(e.$slots, "tooltip-before", S(b({ ...On.value })), void 0, !0)]),
|
|
2434
|
+
tooltip: A(() => [D(e.$slots, "tooltip", S(b({ ...On.value })), void 0, !0)]),
|
|
2435
|
+
"tooltip-after": A(() => [D(e.$slots, "tooltip-after", S(b({ ...On.value })), void 0, !0)]),
|
|
2436
2436
|
_: 3
|
|
2437
2437
|
}, 8, [
|
|
2438
2438
|
"teleportTo",
|
|
@@ -2458,11 +2458,11 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2458
2458
|
"isA11yMode",
|
|
2459
2459
|
"a11yPosition"
|
|
2460
2460
|
]),
|
|
2461
|
-
D(e.$slots, "skeleton", {}, () => [k(U) ? (w(),
|
|
2462
|
-
], 46, Xe)) : (w(),
|
|
2461
|
+
D(e.$slots, "skeleton", {}, () => [k(U) ? (w(), De(fe, { key: 0 })) : _("", !0)], !0)
|
|
2462
|
+
], 46, Xe)) : (w(), v("div", wn, [ke(k(Ve), {
|
|
2463
2463
|
name: "circleCancel",
|
|
2464
2464
|
stroke: "red"
|
|
2465
|
-
}),
|
|
2465
|
+
}), n[5] ||= y("span", null, "Dataset is not processable", -1)]));
|
|
2466
2466
|
}
|
|
2467
2467
|
}, [["__scopeId", "data-v-a78997c2"]]);
|
|
2468
2468
|
//#endregion
|