vue-data-ui 3.22.5 → 3.22.7
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-CgzmXCW_.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-CEiv7_gM.js} +3 -3
- package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-gaV1QPpP.js} +3 -3
- package/dist/{Shape-BnF9aMPX.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-DUywypFu.js} +2 -2
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BL9VlHop.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-ZOysoMwu.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/{exposedLib-C2U48XK7.js → exposedLib-Be0ifkti.js} +1 -1
- package/dist/{img-B29J8tV5.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-EAmk-PgA.js} +19 -9
- package/dist/{package-YOcaZtwF.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-B80rr2N_.js → render-common-DMai0gHB.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +13 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-BZ1Slxfu.js → vue-ui-3d-bar-CjNuWXoA.js} +7 -7
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-Dzz8XhX3.js} +4 -4
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-DXZumSP8.js} +7 -7
- package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-Dde6FhbR.js} +8 -8
- package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-C5pni1JV.js} +7 -7
- package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-Ctw65O4_.js} +444 -441
- package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BEUvhUH0.js} +5 -5
- package/dist/{vue-ui-chestnut-B3OHA5rg.js → vue-ui-chestnut-C3IbAdkQ.js} +6 -6
- package/dist/{vue-ui-chord-DETV2viY.js → vue-ui-chord-5eCWG4br.js} +9 -9
- package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-Cq4lkmee.js} +7 -7
- package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DLJcFwRZ.js} +4 -4
- package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-DemsIecS.js} +8 -8
- package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-DWHD_wNN.js} +70 -70
- package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-sIKc85vS.js} +4 -4
- package/dist/vue-ui-donut-CLheJPcO.js +2410 -0
- package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-Dp6GW0dw.js} +91 -91
- package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-zmRPpJLj.js} +10 -10
- package/dist/{vue-ui-dumbbell-Cmr65TNE.js → vue-ui-dumbbell-bSbgHd0U.js} +8 -8
- package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-q_M7O1BK.js} +8 -8
- package/dist/{vue-ui-funnel-BLRBDW1a.js → vue-ui-funnel-BEZUEuuh.js} +7 -7
- package/dist/vue-ui-galaxy-DCCWmIyH.js +1077 -0
- package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-B1ljgfE1.js} +8 -8
- package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-CM59rpnj.js} +8 -8
- package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-D2RL6IVp.js} +4 -4
- package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-BX6PQxML.js} +23 -23
- package/dist/{vue-ui-history-plot-BiWpOHKE.js → vue-ui-history-plot-DaHAeQph.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CTW6l4n3.js} +20 -20
- package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-DLbP7lJR.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-DPHzHsM7.js} +3 -3
- package/dist/{vue-ui-molecule-DB3rmTw1.js → vue-ui-molecule-aD0SMTiX.js} +8 -8
- package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-CCWaPr0P.js} +8 -8
- package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts--BCPWkl7.js} +21 -21
- package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-s4iMCGAP.js} +17 -17
- package/dist/{vue-ui-parallel-coordinate-plot-BxQ7D2_o.js → vue-ui-parallel-coordinate-plot-CfgvpyoC.js} +17 -17
- package/dist/{vue-ui-quadrant-BvAmtyAE.js → vue-ui-quadrant-T_UmRAAy.js} +15 -15
- package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-D1OWBgQJ.js} +446 -446
- package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-CHjeGOMC.js} +34 -34
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-Bek8Tgr-.js} +3 -3
- package/dist/{vue-ui-relation-circle-Dl1aWFAI.js → vue-ui-relation-circle-DRZGQ_UX.js} +8 -8
- package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DIODGiu8.js} +10 -10
- package/dist/{vue-ui-rings-CyrvskTi.js → vue-ui-rings-CcdUSXGG.js} +17 -17
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-Fmue6DAG.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-BVMI5vUy.js} +3 -3
- package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-DfZeLiWA.js} +4 -4
- package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-Cl1e49sw.js} +4 -4
- package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-DDNNBIdf.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-ny_liYa6.js} +5 -5
- package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-BNxdO-Bx.js} +44 -44
- package/dist/{vue-ui-sparkstackbar-DnrZkIIc.js → vue-ui-sparkstackbar-BfF5-Wg2.js} +5 -5
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/vue-ui-stackline-CdvVPQUM.js +2419 -0
- package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-CRXPXA5V.js} +16 -16
- package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-Dr1dK3d_.js} +6 -6
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-D-Qrm3oX.js} +6 -6
- package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-C31Q32My.js} +5 -5
- package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BUrtIfuo.js} +8 -8
- package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-B5bkNNHS.js} +6 -6
- package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-Bn8b-ZSz.js} +7 -7
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-B_L3gkky.js} +275 -275
- package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-CeVwXtEX.js} +7 -7
- package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-D81-qJLw.js} +8 -8
- package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-B7npRmTa.js} +8 -8
- package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-C2p9H2IX.js} +1498 -1496
- package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-OhwS0kcZ.js} +86 -86
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DLKDdH35.js} +411 -408
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
- package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
- package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
- package/dist/vue-ui-scatter-D9Iw5xlb.js +0 -2413
- package/dist/vue-ui-stackbar-BzHSHKqe.js +0 -2329
- package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
- package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Et as t, Ft as n, Gt as r, H as i, Ot as a, Q as o, S as s, Ut as c, W as l,
|
|
2
|
+
import { Et as t, Ft as n, Gt as r, H as i, Ot as a, Q as o, S as s, Ut as c, W as l, at as ee, b as te, d as u, h as d, i as f, j as p, jt as m, p as ne, q as h, t as re, u as ie, v as g, vt as ae } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as oe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as se } from "./useConfig-
|
|
5
|
-
import { t as ce } from "./usePrinter-
|
|
4
|
+
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as ce } from "./usePrinter-DnGzpp6Q.js";
|
|
6
6
|
import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as de } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as fe } from "./useNestedProp-
|
|
8
|
+
import { t as fe } from "./useNestedProp-D8XqxgOU.js";
|
|
9
9
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as me } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as he } from "./img-
|
|
11
|
+
import { t as he } from "./img-B_abIg0o.js";
|
|
12
12
|
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as _e } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as ve } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as ye } from "./BaseLegendToggle-
|
|
15
|
+
import { t as ye } from "./BaseLegendToggle-CHnlKalt.js";
|
|
16
16
|
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Se } from "./Slicer-
|
|
18
|
+
import { t as Se } from "./Slicer-6FOtg9py.js";
|
|
19
19
|
import { t as Ce } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
20
20
|
import { Fragment as _, Teleport as we, computed as v, createBlock as Te, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Ee, createVNode as De, defineAsyncComponent as Oe, guardReactiveProps as S, mergeProps as ke, nextTick as Ae, normalizeClass as je, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Me, onMounted as Ne, openBlock as T, ref as E, renderList as D, renderSlot as O, shallowRef as Pe, toDisplayString as k, toRefs as Fe, unref as A, watch as Ie, watchEffect as Le, withCtx as j } from "vue";
|
|
21
21
|
//#region src/chartDetector.js
|
|
@@ -440,12 +440,12 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
440
440
|
"copyAlt"
|
|
441
441
|
],
|
|
442
442
|
setup(e, { expose: ge, emit: Re }) {
|
|
443
|
-
let Be = Oe(() => import("./BaseIcon-
|
|
443
|
+
let Be = Oe(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), Ve = Oe(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Ue = Oe(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), We = Oe(() => import("./Tooltip-B8yYfISA.js")), Ge = Oe(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), { vue_ui_quick_chart: Ke } = se(), { isThemeValid: qe, warnInvalidTheme: Je } = pe(), P = e, F = E(null), wn = E(null), Tn = E(null), En = E(null), I = E(l()), L = E(!1), Dn = E(null), On = E(""), R = E(null), kn = E(null), An = E(null), z = E([]), jn = E(0), Mn = E(0), Nn = E(!1), Pn = E(null), Fn = E(null), B = E(null), In = E(null), Ln = E(null), Rn = E(null);
|
|
444
444
|
E("#FFFFFF");
|
|
445
|
-
let
|
|
445
|
+
let V = E($n()), zn = v(() => !!V.value.debug), Bn = v(() => V.value.useCursorPointer), H = E(null), Vn = E({
|
|
446
446
|
x: 0,
|
|
447
447
|
y: 0
|
|
448
|
-
}),
|
|
448
|
+
}), Hn = E("pointer"), Un = E(!1), Wn = v(() => r({
|
|
449
449
|
dafaultConfig: {
|
|
450
450
|
backgroundColor: "#99999930",
|
|
451
451
|
customPalette: ["#BABABA"],
|
|
@@ -465,14 +465,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
465
465
|
zoomStartIndex: null,
|
|
466
466
|
zoomEndIndex: null
|
|
467
467
|
},
|
|
468
|
-
userConfig:
|
|
468
|
+
userConfig: V.value.skeletonConfig ?? {}
|
|
469
469
|
})), { loading: U, FINAL_DATASET: Gn, manualLoading: Kn } = le({
|
|
470
470
|
...Fe(P),
|
|
471
|
-
FINAL_CONFIG:
|
|
471
|
+
FINAL_CONFIG: V,
|
|
472
472
|
prepareConfig: $n,
|
|
473
473
|
callback: () => {
|
|
474
474
|
Promise.resolve().then(async () => {
|
|
475
|
-
await Ae(), K.value === M.LINE &&
|
|
475
|
+
await Ae(), K.value === M.LINE && V.value.lineAnimated && !U.value && Lr({
|
|
476
476
|
pathDuration: 1e3,
|
|
477
477
|
pointDuration: 1200,
|
|
478
478
|
labelDuration: 1200
|
|
@@ -492,10 +492,10 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
492
492
|
89
|
|
493
493
|
],
|
|
494
494
|
skeletonConfig: r({
|
|
495
|
-
defaultConfig:
|
|
495
|
+
defaultConfig: V.value,
|
|
496
496
|
userConfig: Wn.value
|
|
497
497
|
})
|
|
498
|
-
}), { svgRef: qn } = xe({ config: { text:
|
|
498
|
+
}), { svgRef: qn } = xe({ config: { text: V.value.title } }), Jn = v(() => V.value.showUserOptionsOnChartHover), Yn = v(() => V.value.keepUserOptionsStateOnChartLeave), Xn = E(!V.value.showUserOptionsOnChartHover), Zn = E(!1);
|
|
499
499
|
function Qn(e = !1) {
|
|
500
500
|
Zn.value = e, Jn.value && (Xn.value = e);
|
|
501
501
|
}
|
|
@@ -522,15 +522,15 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
522
522
|
return t;
|
|
523
523
|
}
|
|
524
524
|
Ie(() => P.config, (e) => {
|
|
525
|
-
U.value || (
|
|
525
|
+
U.value || (V.value = $n()), q.value.width = V.value.width, q.value.height = V.value.height, Xn.value = !V.value.showUserOptionsOnChartHover, dr(), cr.value.showTooltip = V.value.showTooltip;
|
|
526
526
|
}, { deep: !0 }), Ie(() => P.dataset, (e) => {
|
|
527
527
|
G.value = tr.value, X.value.start = 0, X.value.end = G.value.maxSeriesLength, Mn.value += 1;
|
|
528
528
|
}, { deep: !0 }), Ie(() => P.dataset, (e) => {
|
|
529
529
|
Array.isArray(e) && e.length > 0 && (Kn.value = !1);
|
|
530
530
|
}, { immediate: !0 });
|
|
531
|
-
let er = v(() => s(
|
|
531
|
+
let er = v(() => s(V.value.customPalette)), W = Re, tr = v(() => {
|
|
532
532
|
let e = ze({
|
|
533
|
-
debug:
|
|
533
|
+
debug: zn.value,
|
|
534
534
|
dataset: n(Gn.value, [
|
|
535
535
|
"serie",
|
|
536
536
|
"series",
|
|
@@ -539,40 +539,40 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
539
539
|
"values",
|
|
540
540
|
"num"
|
|
541
541
|
]),
|
|
542
|
-
barLineSwitch:
|
|
542
|
+
barLineSwitch: V.value.chartIsBarUnderDatasetLength
|
|
543
543
|
});
|
|
544
|
-
return !e &&
|
|
544
|
+
return !e && zn.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
545
545
|
}), G = E(tr.value), nr = v(() => !!G.value), K = v(() => G.value ? G.value.type : null);
|
|
546
546
|
Ie(() => K.value, (e) => {
|
|
547
547
|
e || o({
|
|
548
548
|
componentName: "VueUiQuickChart",
|
|
549
549
|
type: "dataset",
|
|
550
|
-
debug:
|
|
550
|
+
debug: zn.value
|
|
551
551
|
});
|
|
552
552
|
}, { immediate: !0 });
|
|
553
553
|
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } = ce({
|
|
554
554
|
elementId: `${K.value}_${I.value}`,
|
|
555
|
-
fileName:
|
|
556
|
-
options:
|
|
557
|
-
}), sr = v(() =>
|
|
558
|
-
width:
|
|
559
|
-
height:
|
|
560
|
-
}), cr = E({ showTooltip:
|
|
561
|
-
Ie(
|
|
562
|
-
cr.value = { showTooltip:
|
|
555
|
+
fileName: V.value.title || K.value,
|
|
556
|
+
options: V.value.userOptionsPrint
|
|
557
|
+
}), sr = v(() => V.value.showUserOptions && !V.value.title), q = E({
|
|
558
|
+
width: V.value.width,
|
|
559
|
+
height: V.value.height
|
|
560
|
+
}), cr = E({ showTooltip: V.value.showTooltip });
|
|
561
|
+
Ie(V, () => {
|
|
562
|
+
cr.value = { showTooltip: V.value.showTooltip };
|
|
563
563
|
}, { immediate: !0 });
|
|
564
564
|
let lr = Pe(null), ur = Pe(null);
|
|
565
565
|
Ne(async () => {
|
|
566
566
|
Nn.value = !0, dr();
|
|
567
567
|
});
|
|
568
568
|
function dr() {
|
|
569
|
-
if (a(P.dataset) || (Kn.value =
|
|
569
|
+
if (a(P.dataset) || (Kn.value = V.value.loading), V.value.responsive) {
|
|
570
570
|
let e = _e(() => {
|
|
571
571
|
let { width: e, height: t } = ve({
|
|
572
572
|
chart: F.value,
|
|
573
|
-
title:
|
|
574
|
-
legend:
|
|
575
|
-
slicer: [M.BAR, M.LINE].includes(K.value) &&
|
|
573
|
+
title: V.value.title ? wn.value : null,
|
|
574
|
+
legend: V.value.showLegend ? Tn.value : null,
|
|
575
|
+
slicer: [M.BAR, M.LINE].includes(K.value) && V.value.zoomXy && G.value.maxSeriesLength > 1 ? En.value : null,
|
|
576
576
|
source: kn.value,
|
|
577
577
|
noTitle: An.value
|
|
578
578
|
});
|
|
@@ -599,7 +599,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
599
599
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
600
600
|
}
|
|
601
601
|
function mr(e) {
|
|
602
|
-
return
|
|
602
|
+
return V.value.blurOnHover && ![null, void 0].includes(R.value) && R.value !== e ? `url(#blur_${I.value})` : "";
|
|
603
603
|
}
|
|
604
604
|
function hr() {
|
|
605
605
|
z.value.length ? z.value = [] : K.value === M.DONUT ? Y.value.legend.forEach((e) => {
|
|
@@ -662,7 +662,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
662
662
|
function xr(e) {
|
|
663
663
|
J.value = e;
|
|
664
664
|
}
|
|
665
|
-
let Sr = v(() =>
|
|
665
|
+
let Sr = v(() => V.value.donutThicknessRatio < .01 ? .01 : V.value.donutThicknessRatio > .4 ? .4 : V.value.donutThicknessRatio), Y = v(() => {
|
|
666
666
|
if (K.value !== M.DONUT) return null;
|
|
667
667
|
let e = G.value.dataset.map((e, t) => ({
|
|
668
668
|
...e,
|
|
@@ -671,18 +671,18 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
671
671
|
id: `donut_${t}`
|
|
672
672
|
})).map((e, t) => ({
|
|
673
673
|
...e,
|
|
674
|
-
color: e.COLOR ?
|
|
674
|
+
color: e.COLOR ? te(e.COLOR) : er.value[t + V.value.paletteStartIndex] || m[t + V.value.paletteStartIndex] || m[(t + V.value.paletteStartIndex) % m.length],
|
|
675
675
|
immutableValue: e.value
|
|
676
676
|
}));
|
|
677
677
|
function n(e, t) {
|
|
678
678
|
return h({
|
|
679
679
|
v: isNaN(e.value / pr(t)) ? 0 : e.value / pr(t) * 100,
|
|
680
680
|
s: "%",
|
|
681
|
-
r:
|
|
681
|
+
r: V.value.dataLabelRoundingPercentage
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
684
|
function r(e) {
|
|
685
|
-
return e.proportion * 100 >
|
|
685
|
+
return e.proportion * 100 > V.value.donutHideLabelUnderPercentage;
|
|
686
686
|
}
|
|
687
687
|
function i(e, t) {
|
|
688
688
|
let n = tr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
@@ -692,50 +692,50 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
692
692
|
Dn.value = {
|
|
693
693
|
datapoint: t,
|
|
694
694
|
seriesIndex: n,
|
|
695
|
-
config:
|
|
695
|
+
config: V.value,
|
|
696
696
|
dataset: e
|
|
697
|
-
}, R.value = t.id,
|
|
698
|
-
let i =
|
|
699
|
-
if (
|
|
697
|
+
}, R.value = t.id, H.value = n, Hn.value = r;
|
|
698
|
+
let i = V.value.tooltipCustomFormat;
|
|
699
|
+
if (V.value.events.datapointEnter && V.value.events.datapointEnter({
|
|
700
700
|
datapoint: t,
|
|
701
701
|
seriesIndex: n
|
|
702
|
-
}), ae(i) &&
|
|
702
|
+
}), ae(i) && ee(() => i({
|
|
703
703
|
datapoint: t,
|
|
704
704
|
seriesIndex: n,
|
|
705
705
|
series: e,
|
|
706
|
-
config:
|
|
706
|
+
config: V.value
|
|
707
707
|
}))) On.value = i({
|
|
708
708
|
datapoint: t,
|
|
709
709
|
seriesIndex: n,
|
|
710
710
|
series: e,
|
|
711
|
-
config:
|
|
711
|
+
config: V.value
|
|
712
712
|
});
|
|
713
713
|
else {
|
|
714
714
|
let e = "";
|
|
715
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
716
|
-
p:
|
|
715
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${V.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>${f(V.value.formatter, t.value, h({
|
|
716
|
+
p: V.value.valuePrefix,
|
|
717
717
|
v: t.value,
|
|
718
|
-
s:
|
|
719
|
-
r:
|
|
718
|
+
s: V.value.valueSuffix,
|
|
719
|
+
r: V.value.dataLabelRoundingValue
|
|
720
720
|
}), {
|
|
721
721
|
datapoint: t,
|
|
722
722
|
seriesIndex: n
|
|
723
723
|
})}</b>`, e += `<span>(${h({
|
|
724
724
|
v: t.proportion * 100,
|
|
725
725
|
s: "%",
|
|
726
|
-
r:
|
|
726
|
+
r: V.value.dataLabelRoundingPercentage
|
|
727
727
|
})})</span></div>`, On.value = `<div>${e}</div>`;
|
|
728
728
|
}
|
|
729
729
|
L.value = !0;
|
|
730
730
|
}
|
|
731
731
|
function o({ datapoint: e, seriesIndex: t }) {
|
|
732
|
-
|
|
732
|
+
V.value.events.datapointLeave && V.value.events.datapointLeave({
|
|
733
733
|
datapoint: e,
|
|
734
734
|
seriesIndex: t
|
|
735
|
-
}), L.value = !1, R.value = null, J.value = null,
|
|
735
|
+
}), L.value = !1, R.value = null, J.value = null, H.value = null, Hn.value = "pointer";
|
|
736
736
|
}
|
|
737
737
|
function s({ datapoint: e, seriesIndex: t }) {
|
|
738
|
-
|
|
738
|
+
V.value.events.datapointClick && V.value.events.datapointClick({
|
|
739
739
|
datapoint: e,
|
|
740
740
|
seriesIndex: t
|
|
741
741
|
}), W("selectDatapoint", e);
|
|
@@ -749,7 +749,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
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
|
-
})), d = q.value.width / 2, p = q.value.height / 2, ne = q.value.height *
|
|
752
|
+
})), d = q.value.width / 2, p = q.value.height / 2, ne = q.value.height * V.value.donutRadiusRatio;
|
|
753
753
|
return {
|
|
754
754
|
dataset: u.filter((e) => !z.value.includes(e.id)),
|
|
755
755
|
legend: u,
|
|
@@ -776,7 +776,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
776
776
|
let wr = E(null);
|
|
777
777
|
async function Tr() {
|
|
778
778
|
await Ae(), await Ae();
|
|
779
|
-
let { zoomStartIndex: e, zoomEndIndex: t } =
|
|
779
|
+
let { zoomStartIndex: e, zoomEndIndex: t } = V.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,
|
|
782
782
|
end: G.value.maxSeriesLength
|
|
@@ -784,10 +784,10 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
784
784
|
}
|
|
785
785
|
function Er(e) {
|
|
786
786
|
let t = G.value.maxSeriesLength;
|
|
787
|
-
return e > t ? t : e < 0 ||
|
|
787
|
+
return e > t ? t : e < 0 || V.value.zoomStartIndex !== null && e < V.value.zoomStartIndex ? V.value.zoomStartIndex === null ? 1 : V.value.zoomStartIndex + 1 : e;
|
|
788
788
|
}
|
|
789
789
|
let Dr = v(() => {
|
|
790
|
-
if (!
|
|
790
|
+
if (!V.value.zoomMinimap.show || K.value === M.DONUT) return [];
|
|
791
791
|
let e = [];
|
|
792
792
|
N(G.value.dataset) && (e = G.value.dataset), He(G.value.dataset) && (e = G.value.dataset.map((e, t) => ({
|
|
793
793
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
@@ -801,7 +801,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
801
801
|
});
|
|
802
802
|
function Or() {
|
|
803
803
|
let e = 0;
|
|
804
|
-
return
|
|
804
|
+
return In.value && (e = Array.from(In.value.querySelectorAll("text")).reduce((e, t) => {
|
|
805
805
|
let n = t.getComputedTextLength();
|
|
806
806
|
return n > e ? n : e;
|
|
807
807
|
}, 0)), e + 4;
|
|
@@ -810,7 +810,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
810
810
|
kr.value = e;
|
|
811
811
|
}, 100);
|
|
812
812
|
Le((e) => {
|
|
813
|
-
let t =
|
|
813
|
+
let t = B.value;
|
|
814
814
|
if (!t) return;
|
|
815
815
|
let n = new ResizeObserver((e) => {
|
|
816
816
|
Ar(e[0].contentRect.height);
|
|
@@ -821,31 +821,31 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
821
821
|
});
|
|
822
822
|
let jr = v(() => {
|
|
823
823
|
let e = 0;
|
|
824
|
-
return
|
|
824
|
+
return B.value && (e = kr.value), 0 + e;
|
|
825
825
|
}), Z = v(() => {
|
|
826
826
|
if (K.value !== M.LINE) return null;
|
|
827
827
|
let e = {
|
|
828
828
|
height: q.value.height,
|
|
829
829
|
width: q.value.width
|
|
830
830
|
}, t = Or();
|
|
831
|
-
if (
|
|
832
|
-
let e =
|
|
831
|
+
if (B.value) {
|
|
832
|
+
let e = B.value.getBBox().x;
|
|
833
833
|
e < 0 && (t += Math.abs(e));
|
|
834
834
|
}
|
|
835
835
|
let n = {
|
|
836
|
-
left: t +
|
|
837
|
-
top:
|
|
838
|
-
right: e.width -
|
|
839
|
-
bottom: e.height -
|
|
840
|
-
width: Math.max(10, e.width -
|
|
841
|
-
height: Math.max(10, e.height -
|
|
836
|
+
left: t + V.value.xyPaddingLeft,
|
|
837
|
+
top: V.value.xyPaddingTop,
|
|
838
|
+
right: e.width - V.value.xyPaddingRight,
|
|
839
|
+
bottom: e.height - V.value.xyPaddingBottom - jr.value,
|
|
840
|
+
width: Math.max(10, e.width - V.value.xyPaddingLeft - V.value.xyPaddingRight - t),
|
|
841
|
+
height: Math.max(10, e.height - V.value.xyPaddingTop - V.value.xyPaddingBottom - jr.value)
|
|
842
842
|
}, r = [];
|
|
843
843
|
N(G.value.dataset) && (r = [{
|
|
844
844
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
845
845
|
absoluteValues: G.value.dataset,
|
|
846
846
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
847
|
-
name:
|
|
848
|
-
color: er.value[
|
|
847
|
+
name: V.value.title,
|
|
848
|
+
color: er.value[V.value.paletteStartIndex] || m[V.value.paletteStartIndex],
|
|
849
849
|
id: "line_0"
|
|
850
850
|
}]), He(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
851
851
|
...e,
|
|
@@ -854,7 +854,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
854
854
|
id: `line_${t}`
|
|
855
855
|
})).map((e, t) => ({
|
|
856
856
|
...e,
|
|
857
|
-
color: e.COLOR ?
|
|
857
|
+
color: e.COLOR ? te(e.COLOR) : er.value[t + V.value.paletteStartIndex] || m[t + V.value.paletteStartIndex] || m[(t + V.value.paletteStartIndex) % m.length],
|
|
858
858
|
values: e.values.slice(X.value.start, X.value.end),
|
|
859
859
|
absoluteValues: e.values,
|
|
860
860
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -863,7 +863,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
863
863
|
max: Math.max(...r.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values)),
|
|
864
864
|
min: Math.min(...r.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values)),
|
|
865
865
|
maxSeries: Math.max(...r.map((e) => e.values.length))
|
|
866
|
-
}, a = i.max === i.min ? d(i.min, i.min + 1,
|
|
866
|
+
}, a = i.max === i.min ? d(i.min, i.min + 1, V.value.xyScaleSegments) : d(i.min < 0 ? i.min : 0, i.max < 0 ? 0 : i.max, V.value.xyScaleSegments), o = i.min < 0 ? Math.abs(i.min) : 0, s = i.max < 0 ? n.top : n.bottom - o / (a.max + o) * n.height, c = n.width / i.maxSeries, l = a.ticks.map((e) => ({
|
|
867
867
|
y: n.bottom - n.height * ((e + o) / (a.max + o)),
|
|
868
868
|
x: n.left - 8,
|
|
869
869
|
value: e
|
|
@@ -892,41 +892,41 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
892
892
|
})).filter((e) => !z.value.includes(e.id));
|
|
893
893
|
}
|
|
894
894
|
function ne(e, t = "pointer") {
|
|
895
|
-
R.value = e, J.value = e,
|
|
895
|
+
R.value = e, J.value = e, H.value = e, Hn.value = t;
|
|
896
896
|
let n = p(e);
|
|
897
897
|
Dn.value = {
|
|
898
898
|
datapoint: n,
|
|
899
899
|
seriesIndex: e,
|
|
900
|
-
config:
|
|
900
|
+
config: V.value,
|
|
901
901
|
dataset: r
|
|
902
902
|
};
|
|
903
|
-
let i =
|
|
904
|
-
if (
|
|
903
|
+
let i = V.value.tooltipCustomFormat;
|
|
904
|
+
if (V.value.events.datapointEnter && V.value.events.datapointEnter({
|
|
905
905
|
datapoint: n,
|
|
906
906
|
seriesIndex: e + X.value.start
|
|
907
|
-
}), ae(i) &&
|
|
907
|
+
}), ae(i) && ee(() => i({
|
|
908
908
|
datapoint: n,
|
|
909
909
|
seriesIndex: e,
|
|
910
910
|
series: r,
|
|
911
|
-
config:
|
|
911
|
+
config: V.value
|
|
912
912
|
}))) On.value = i({
|
|
913
913
|
datapoint: n,
|
|
914
914
|
seriesIndex: e,
|
|
915
915
|
series: r,
|
|
916
|
-
config:
|
|
916
|
+
config: V.value
|
|
917
917
|
});
|
|
918
918
|
else {
|
|
919
919
|
let e = "";
|
|
920
|
-
$.value[n[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${
|
|
920
|
+
$.value[n[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${V.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[n[0].absoluteIndex].text}</div>`), n.forEach((t, n) => {
|
|
921
921
|
e += `
|
|
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>${f(
|
|
926
|
-
p:
|
|
925
|
+
<b>${f(V.value.formatter, t.value, h({
|
|
926
|
+
p: V.value.valuePrefix,
|
|
927
927
|
v: t.value,
|
|
928
|
-
s:
|
|
929
|
-
r:
|
|
928
|
+
s: V.value.valueSuffix,
|
|
929
|
+
r: V.value.dataLabelRoundingValue
|
|
930
930
|
}), {
|
|
931
931
|
datapoint: t,
|
|
932
932
|
seriesIndex: n
|
|
@@ -940,14 +940,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
940
940
|
}
|
|
941
941
|
function re(e) {
|
|
942
942
|
let t = p(e);
|
|
943
|
-
|
|
943
|
+
V.value.events.datapointLeave && V.value.events.datapointLeave({
|
|
944
944
|
datapoint: t,
|
|
945
945
|
seriesIndex: e + X.value.start
|
|
946
|
-
}), R.value = null, J.value = null, L.value = !1,
|
|
946
|
+
}), R.value = null, J.value = null, L.value = !1, H.value = null, Hn.value = "pointer";
|
|
947
947
|
}
|
|
948
948
|
function ie(e) {
|
|
949
949
|
let t = p(e);
|
|
950
|
-
|
|
950
|
+
V.value.events.datapointClick && V.value.events.datapointClick({
|
|
951
951
|
datapoint: t,
|
|
952
952
|
seriesIndex: e + X.value.start
|
|
953
953
|
}), W("selectDatapoint", t);
|
|
@@ -970,24 +970,24 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
970
970
|
height: q.value.height,
|
|
971
971
|
width: q.value.width
|
|
972
972
|
}, t = Or();
|
|
973
|
-
if (
|
|
974
|
-
let e =
|
|
973
|
+
if (B.value) {
|
|
974
|
+
let e = B.value.getBBox().x;
|
|
975
975
|
e < 0 && (t += Math.abs(e));
|
|
976
976
|
}
|
|
977
977
|
let n = {
|
|
978
|
-
left: t +
|
|
979
|
-
top:
|
|
980
|
-
right: e.width -
|
|
981
|
-
bottom: e.height -
|
|
982
|
-
width: Math.max(10, e.width -
|
|
983
|
-
height: Math.max(10, e.height -
|
|
978
|
+
left: t + V.value.xyPaddingLeft,
|
|
979
|
+
top: V.value.xyPaddingTop,
|
|
980
|
+
right: e.width - V.value.xyPaddingRight,
|
|
981
|
+
bottom: e.height - V.value.xyPaddingBottom - jr.value,
|
|
982
|
+
width: Math.max(10, e.width - V.value.xyPaddingLeft - V.value.xyPaddingRight - t),
|
|
983
|
+
height: Math.max(10, e.height - V.value.xyPaddingTop - V.value.xyPaddingBottom - jr.value)
|
|
984
984
|
}, r = [];
|
|
985
985
|
N(G.value.dataset) && (r = [{
|
|
986
986
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
987
987
|
absoluteValues: G.value.dataset,
|
|
988
988
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
989
|
-
name:
|
|
990
|
-
color: er.value[
|
|
989
|
+
name: V.value.title,
|
|
990
|
+
color: er.value[V.value.paletteStartIndex] || m[V.value.paletteStartIndex],
|
|
991
991
|
id: "bar_0"
|
|
992
992
|
}]), He(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
993
993
|
...e,
|
|
@@ -996,7 +996,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
996
996
|
id: `bar_${t}`
|
|
997
997
|
})).map((e, t) => ({
|
|
998
998
|
...e,
|
|
999
|
-
color: e.COLOR ?
|
|
999
|
+
color: e.COLOR ? te(e.COLOR) : er.value[t + V.value.paletteStartIndex] || m[t + V.value.paletteStartIndex] || m[(t + V.value.paletteStartIndex) % m.length],
|
|
1000
1000
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1001
1001
|
absoluteValues: e.values,
|
|
1002
1002
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1005,7 +1005,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1005
1005
|
max: Math.max(...r.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...r.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1006
1006
|
min: Math.min(...r.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1007
1007
|
maxSeries: Math.max(...r.filter((e) => !z.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1008
|
-
}, a = i.min === i.max ? d(i.min, i.min + 1,
|
|
1008
|
+
}, a = i.min === i.max ? d(i.min, i.min + 1, V.value.xyScaleSegments) : d(i.min < 0 ? i.min : 0, i.max, V.value.xyScaleSegments), o = a.min < 0 ? Math.abs(a.min) : 0, s = n.bottom - o / (a.max + o) * n.height, c = n.width / i.maxSeries, l = a.ticks.map((e) => ({
|
|
1009
1009
|
y: n.bottom - n.height * ((e + o) / (a.max + o)),
|
|
1010
1010
|
x: n.left - 8,
|
|
1011
1011
|
value: e
|
|
@@ -1013,25 +1013,25 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1013
1013
|
...e,
|
|
1014
1014
|
shape: "square",
|
|
1015
1015
|
coordinates: e.values.map((e, a) => {
|
|
1016
|
-
let l = (e + o) / (i.max + o) * n.height, ee = Math.abs(e) / Math.abs(i.min) * (n.height - s),
|
|
1016
|
+
let l = (e + o) / (i.max + o) * n.height, ee = Math.abs(e) / Math.abs(i.min) * (n.height - s), te = o / (i.max + o) * n.height, u = c / r.filter((e) => !z.value.includes(e.id)).length - V.value.barGap / r.filter((e) => !z.value.includes(e.id)).length;
|
|
1017
1017
|
return {
|
|
1018
|
-
x: n.left + c * a +
|
|
1018
|
+
x: n.left + c * a + u * t + V.value.barGap / 2,
|
|
1019
1019
|
y: e > 0 ? n.bottom - l : s,
|
|
1020
|
-
height: e > 0 ? l -
|
|
1020
|
+
height: e > 0 ? l - te : ee,
|
|
1021
1021
|
value: e,
|
|
1022
|
-
width:
|
|
1022
|
+
width: u
|
|
1023
1023
|
};
|
|
1024
1024
|
})
|
|
1025
1025
|
})), p = r.filter((e) => !z.value.includes(e.id)).map((e, t) => ({
|
|
1026
1026
|
...e,
|
|
1027
1027
|
coordinates: e.values.map((e, a) => {
|
|
1028
|
-
let l = (e + o) / (i.max + o) * n.height, ee = Math.abs(e) / (i.max + o) * n.height,
|
|
1028
|
+
let l = (e + o) / (i.max + o) * n.height, ee = Math.abs(e) / (i.max + o) * n.height, te = o / (i.max + o) * n.height, u = c / r.filter((e) => !z.value.includes(e.id)).length - V.value.barGap / r.filter((e) => !z.value.includes(e.id)).length;
|
|
1029
1029
|
return {
|
|
1030
|
-
x: n.left + c * a +
|
|
1030
|
+
x: n.left + c * a + u * t + V.value.barGap / 2,
|
|
1031
1031
|
y: e > 0 ? n.bottom - l : s,
|
|
1032
|
-
height: e > 0 ? l -
|
|
1032
|
+
height: e > 0 ? l - te : ee,
|
|
1033
1033
|
value: e,
|
|
1034
|
-
width:
|
|
1034
|
+
width: u
|
|
1035
1035
|
};
|
|
1036
1036
|
})
|
|
1037
1037
|
}));
|
|
@@ -1043,41 +1043,41 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1043
1043
|
})).filter((e) => !z.value.includes(e.id));
|
|
1044
1044
|
}
|
|
1045
1045
|
function re(e, t = "pointer") {
|
|
1046
|
-
R.value = e, J.value = e,
|
|
1046
|
+
R.value = e, J.value = e, H.value = e, Hn.value = t;
|
|
1047
1047
|
let n = ne(e);
|
|
1048
1048
|
Dn.value = {
|
|
1049
1049
|
datapoint: n,
|
|
1050
1050
|
seriesIndex: e,
|
|
1051
|
-
config:
|
|
1051
|
+
config: V.value,
|
|
1052
1052
|
dataset: r
|
|
1053
1053
|
};
|
|
1054
|
-
let i =
|
|
1055
|
-
if (
|
|
1054
|
+
let i = V.value.tooltipCustomFormat;
|
|
1055
|
+
if (V.value.events.datapointEnter && V.value.events.datapointEnter({
|
|
1056
1056
|
datapoint: n,
|
|
1057
1057
|
seriesIndex: e + X.value.start
|
|
1058
|
-
}), ae(i) &&
|
|
1058
|
+
}), ae(i) && ee(() => i({
|
|
1059
1059
|
datapoint: n,
|
|
1060
1060
|
seriesIndex: e,
|
|
1061
1061
|
series: r,
|
|
1062
|
-
config:
|
|
1062
|
+
config: V.value
|
|
1063
1063
|
}))) On.value = i({
|
|
1064
1064
|
point: n,
|
|
1065
1065
|
seriesIndex: e,
|
|
1066
1066
|
series: r,
|
|
1067
|
-
config:
|
|
1067
|
+
config: V.value
|
|
1068
1068
|
});
|
|
1069
1069
|
else {
|
|
1070
1070
|
let e = "";
|
|
1071
|
-
$.value[n[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${
|
|
1071
|
+
$.value[n[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${V.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[n[0].absoluteIndex].text}</div>`), n.forEach((t, n) => {
|
|
1072
1072
|
e += `
|
|
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>${f(
|
|
1077
|
-
p:
|
|
1076
|
+
<b>${f(V.value.formatter, t.value, h({
|
|
1077
|
+
p: V.value.valuePrefix,
|
|
1078
1078
|
v: t.value,
|
|
1079
|
-
s:
|
|
1080
|
-
r:
|
|
1079
|
+
s: V.value.valueSuffix,
|
|
1080
|
+
r: V.value.dataLabelRoundingValue
|
|
1081
1081
|
}), {
|
|
1082
1082
|
datapoint: t,
|
|
1083
1083
|
seriesIndex: n
|
|
@@ -1091,14 +1091,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function ie(e) {
|
|
1093
1093
|
let t = ne(e);
|
|
1094
|
-
|
|
1094
|
+
V.value.events.datapointLeave && V.value.events.datapointLeave({
|
|
1095
1095
|
datapoint: t,
|
|
1096
1096
|
seriesIndex: e + X.value.start
|
|
1097
|
-
}), L.value = !1, R.value = null, J.value = null,
|
|
1097
|
+
}), L.value = !1, R.value = null, J.value = null, H.value = null, Hn.value = "pointer";
|
|
1098
1098
|
}
|
|
1099
1099
|
function g(e) {
|
|
1100
1100
|
let t = ne(e);
|
|
1101
|
-
|
|
1101
|
+
V.value.events.datapointClick && V.value.events.datapointClick({
|
|
1102
1102
|
datapoint: t,
|
|
1103
1103
|
seriesIndex: e + X.value.start
|
|
1104
1104
|
}), W("selectDatapoint", t);
|
|
@@ -1162,25 +1162,25 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
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 l = Array.isArray(Pn?.value) ? Pn.value : [Pn?.value].filter(Boolean), ee = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean),
|
|
1166
|
-
|
|
1165
|
+
let l = Array.isArray(Pn?.value) ? Pn.value : [Pn?.value].filter(Boolean), ee = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean), te = [...l, ...ee].filter(Boolean), u = F?.value || null, d = u ? Array.from(u.querySelectorAll(".vue-ui-quick-chart-plot")) : [], f = u ? Array.from(u.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
1166
|
+
te.forEach(Mr), Nr(d, {
|
|
1167
1167
|
fromOpacity: "0",
|
|
1168
1168
|
fromScale: "0.75"
|
|
1169
|
-
}), Nr(
|
|
1169
|
+
}), Nr(f, {
|
|
1170
1170
|
fromOpacity: "0",
|
|
1171
1171
|
fromScale: "0.98"
|
|
1172
|
-
}),
|
|
1173
|
-
let
|
|
1172
|
+
}), d.forEach((e) => e.classList.remove("quick-animation")), f.forEach((e) => e.classList.remove("quick-animation")), u && u.offsetWidth;
|
|
1173
|
+
let p = d.length ? Ir(d, Pr) : [], m = f.length ? Ir(f, Fr) : [];
|
|
1174
1174
|
requestAnimationFrame(() => {
|
|
1175
1175
|
requestAnimationFrame(() => {
|
|
1176
|
-
|
|
1176
|
+
te.forEach((n) => {
|
|
1177
1177
|
n.style.transition = `stroke-dashoffset ${e}ms ${t}`, n.style.strokeDashoffset = "0";
|
|
1178
|
-
}),
|
|
1178
|
+
}), p.forEach((e, t) => {
|
|
1179
1179
|
e.items.forEach((e, r) => {
|
|
1180
1180
|
let a = i + t * o + r * c;
|
|
1181
1181
|
e.style.transition = `opacity ${n}ms ease-out ${a}ms, transform ${n}ms ease-out ${a}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
1182
1182
|
});
|
|
1183
|
-
}),
|
|
1183
|
+
}), m.forEach((e, t) => {
|
|
1184
1184
|
e.items.forEach((e, n) => {
|
|
1185
1185
|
let i = a + t * s + n * c;
|
|
1186
1186
|
e.style.transition = `opacity ${r}ms ease-out ${i}ms, transform ${r}ms ease-out ${i}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
@@ -1207,9 +1207,9 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1207
1207
|
let e = ++zr;
|
|
1208
1208
|
(async () => {
|
|
1209
1209
|
let t = await oe({
|
|
1210
|
-
values:
|
|
1210
|
+
values: V.value.xyPeriods,
|
|
1211
1211
|
maxDatapoints: G.value.maxSeriesLength,
|
|
1212
|
-
formatter:
|
|
1212
|
+
formatter: V.value.datetimeFormatter,
|
|
1213
1213
|
start: X.value.start,
|
|
1214
1214
|
end: X.value.end
|
|
1215
1215
|
});
|
|
@@ -1217,8 +1217,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1217
1217
|
})();
|
|
1218
1218
|
});
|
|
1219
1219
|
let Br = v(() => {
|
|
1220
|
-
let e =
|
|
1221
|
-
return
|
|
1220
|
+
let e = V.value.xyPeriodsModulo;
|
|
1221
|
+
return V.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1222
1222
|
}), Vr = E(!1);
|
|
1223
1223
|
function Hr(e) {
|
|
1224
1224
|
Vr.value = e, jn.value += 1;
|
|
@@ -1241,7 +1241,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1241
1241
|
return {
|
|
1242
1242
|
imageUri: i,
|
|
1243
1243
|
base64: a,
|
|
1244
|
-
title:
|
|
1244
|
+
title: V.value.title,
|
|
1245
1245
|
width: t,
|
|
1246
1246
|
height: n,
|
|
1247
1247
|
aspectRatio: r
|
|
@@ -1249,32 +1249,32 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1249
1249
|
}
|
|
1250
1250
|
let qr = v(() => q.value.width), Jr = v(() => q.value.height);
|
|
1251
1251
|
me({
|
|
1252
|
-
timeLabelsEls:
|
|
1252
|
+
timeLabelsEls: B,
|
|
1253
1253
|
timeLabels: $,
|
|
1254
1254
|
slicer: X,
|
|
1255
|
-
configRef:
|
|
1255
|
+
configRef: V,
|
|
1256
1256
|
rotationPath: ["xyPeriodLabelsRotation"],
|
|
1257
1257
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
1258
1258
|
isAutoSize: !1,
|
|
1259
|
-
rotation:
|
|
1259
|
+
rotation: V.value.xyPeriodLabelsAutoRotate.angle,
|
|
1260
1260
|
height: Jr.value,
|
|
1261
1261
|
width: qr.value
|
|
1262
1262
|
});
|
|
1263
|
-
let Yr = v(() =>
|
|
1264
|
-
show:
|
|
1263
|
+
let Yr = v(() => V.value.backgroundColor), Xr = v(() => K.value === M.DONUT ? Y.value.legend : K.value === M.LINE ? Z.value.legend : Q.value.legend), Zr = v(() => ({
|
|
1264
|
+
show: V.value.showLegend,
|
|
1265
1265
|
bold: !1,
|
|
1266
|
-
backgroundColor:
|
|
1267
|
-
color:
|
|
1268
|
-
fontSize:
|
|
1269
|
-
position:
|
|
1266
|
+
backgroundColor: V.value.backgroundColor,
|
|
1267
|
+
color: V.value.color,
|
|
1268
|
+
fontSize: V.value.legendFontSize,
|
|
1269
|
+
position: V.value.legendPosition
|
|
1270
1270
|
})), { exportSvg: Qr, getSvg: $r } = de({
|
|
1271
1271
|
svg: qn,
|
|
1272
1272
|
title: v(() => ({
|
|
1273
|
-
text:
|
|
1274
|
-
color:
|
|
1275
|
-
fontSize:
|
|
1276
|
-
bold:
|
|
1277
|
-
textAlign:
|
|
1273
|
+
text: V.value.title,
|
|
1274
|
+
color: V.value.color,
|
|
1275
|
+
fontSize: V.value.titleFontSize,
|
|
1276
|
+
bold: V.value.titleBold,
|
|
1277
|
+
textAlign: V.value.titleTextAlign,
|
|
1278
1278
|
subtitle: { text: "" }
|
|
1279
1279
|
})),
|
|
1280
1280
|
legend: Zr,
|
|
@@ -1284,7 +1284,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1284
1284
|
async function ei({ isCb: e }) {
|
|
1285
1285
|
if (e) {
|
|
1286
1286
|
let { blob: e, url: t, text: n, dataUrl: r } = await $r();
|
|
1287
|
-
|
|
1287
|
+
V.value.userOptionsCallbacks.svg({
|
|
1288
1288
|
blob: e,
|
|
1289
1289
|
url: t,
|
|
1290
1290
|
text: n,
|
|
@@ -1294,18 +1294,18 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1294
1294
|
}
|
|
1295
1295
|
async function ti() {
|
|
1296
1296
|
if (W("copyAlt", {
|
|
1297
|
-
config:
|
|
1297
|
+
config: V.value,
|
|
1298
1298
|
dataset: {
|
|
1299
1299
|
line: Z.value,
|
|
1300
1300
|
bar: Q.value,
|
|
1301
1301
|
donut: Y.value
|
|
1302
1302
|
}
|
|
1303
|
-
}), !
|
|
1303
|
+
}), !V.value.userOptionsCallbacks.altCopy) {
|
|
1304
1304
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1305
1305
|
return;
|
|
1306
1306
|
}
|
|
1307
|
-
await Promise.resolve(
|
|
1308
|
-
config:
|
|
1307
|
+
await Promise.resolve(V.value.userOptionsCallbacks.altCopy({
|
|
1308
|
+
config: V.value,
|
|
1309
1309
|
dataset: {
|
|
1310
1310
|
line: Z.value,
|
|
1311
1311
|
bar: Q.value,
|
|
@@ -1318,41 +1318,41 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1318
1318
|
}
|
|
1319
1319
|
let ri = v(() => K.value === M.DONUT ? Y.value?.chart?.length ?? 0 : K.value === M.LINE ? Z.value?.extremes?.maxSeries ?? 0 : K.value === M.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1320
1320
|
function ii() {
|
|
1321
|
-
|
|
1321
|
+
H.value = null, Un.value = !0;
|
|
1322
1322
|
}
|
|
1323
1323
|
function ai() {
|
|
1324
|
-
|
|
1324
|
+
H.value = null, Hn.value = "pointer", L.value = !1, R.value = null, J.value = null, Un.value = !1;
|
|
1325
1325
|
}
|
|
1326
1326
|
function oi(e) {
|
|
1327
1327
|
if (!qn.value || Wr.value || document.activeElement !== qn.value || !ri.value) return;
|
|
1328
1328
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1329
1329
|
if (!t && !n && !r && !i) return;
|
|
1330
1330
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1331
|
-
|
|
1331
|
+
H.value = null, Hn.value = "pointer", L.value = !1, R.value = null, J.value = null;
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
1334
|
if (r) {
|
|
1335
|
-
if (
|
|
1335
|
+
if (H.value === null) return;
|
|
1336
1336
|
if (K.value === M.DONUT) {
|
|
1337
|
-
let e = Y.value?.chart?.[
|
|
1337
|
+
let e = Y.value?.chart?.[H.value];
|
|
1338
1338
|
if (!e) return;
|
|
1339
1339
|
Y.value.selectDatapoint({
|
|
1340
1340
|
datapoint: e,
|
|
1341
|
-
seriesIndex:
|
|
1341
|
+
seriesIndex: H.value
|
|
1342
1342
|
});
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
1345
|
if (K.value === M.LINE) {
|
|
1346
|
-
Z.value?.selectDatapoint(
|
|
1346
|
+
Z.value?.selectDatapoint(H.value);
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
1349
|
if (K.value === M.BAR) {
|
|
1350
|
-
Q.value?.selectDatapoint(
|
|
1350
|
+
Q.value?.selectDatapoint(H.value);
|
|
1351
1351
|
return;
|
|
1352
1352
|
}
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
|
-
let a =
|
|
1355
|
+
let a = H.value, o = J.value, s = a !== null && a >= 0 && a < ri.value, c = o !== null && o >= 0 && o < ri.value;
|
|
1356
1356
|
if (s ? n ? (a += 1, a >= ri.value && (a = 0)) : t && (--a, a < 0 && (a = ri.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= ri.value && (a = 0), a < 0 && (a = ri.value - 1)) : a = n ? 0 : ri.value - 1, K.value === M.DONUT) {
|
|
1357
1357
|
let e = Y.value?.chart?.[a];
|
|
1358
1358
|
if (!e) return;
|
|
@@ -1388,7 +1388,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1388
1388
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1389
1389
|
}
|
|
1390
1390
|
let r = qn.value.getBoundingClientRect();
|
|
1391
|
-
|
|
1391
|
+
Vn.value = {
|
|
1392
1392
|
x: r.left + t / q.value.width * r.width,
|
|
1393
1393
|
y: r.top + n / q.value.height * r.height
|
|
1394
1394
|
};
|
|
@@ -1404,15 +1404,15 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1404
1404
|
let t = Y.value?.total ? h({
|
|
1405
1405
|
v: e.value / Y.value.total * 100,
|
|
1406
1406
|
s: "%",
|
|
1407
|
-
r:
|
|
1407
|
+
r: V.value.dataLabelRoundingPercentage
|
|
1408
1408
|
}) : "0%";
|
|
1409
1409
|
return [
|
|
1410
1410
|
e.name,
|
|
1411
|
-
f(
|
|
1412
|
-
p:
|
|
1411
|
+
f(V.value.formatter, e.value, h({
|
|
1412
|
+
p: V.value.valuePrefix,
|
|
1413
1413
|
v: e.value,
|
|
1414
|
-
s:
|
|
1415
|
-
r:
|
|
1414
|
+
s: V.value.valueSuffix,
|
|
1415
|
+
r: V.value.dataLabelRoundingValue
|
|
1416
1416
|
})),
|
|
1417
1417
|
t
|
|
1418
1418
|
];
|
|
@@ -1424,11 +1424,11 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
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 f(
|
|
1428
|
-
p:
|
|
1427
|
+
return f(V.value.formatter, t, h({
|
|
1428
|
+
p: V.value.valuePrefix,
|
|
1429
1429
|
v: t,
|
|
1430
|
-
s:
|
|
1431
|
-
r:
|
|
1430
|
+
s: V.value.valueSuffix,
|
|
1431
|
+
r: V.value.dataLabelRoundingValue
|
|
1432
1432
|
}));
|
|
1433
1433
|
})])
|
|
1434
1434
|
};
|
|
@@ -1457,21 +1457,21 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1457
1457
|
"vue-ui-quick-chart": !0,
|
|
1458
1458
|
"vue-data-ui-wrapper-fullscreen": Vr.value
|
|
1459
1459
|
}),
|
|
1460
|
-
style: w(`background:${
|
|
1460
|
+
style: w(`background:${V.value.backgroundColor};color:${V.value.color};font-family:${V.value.fontFamily}; position: relative; ${V.value.responsive ? "height: 100%" : ""}`),
|
|
1461
1461
|
onMouseenter: t[2] ||= () => Qn(!0),
|
|
1462
1462
|
onMouseleave: t[3] ||= () => Qn(!1)
|
|
1463
1463
|
}, [
|
|
1464
1464
|
x("div", {
|
|
1465
1465
|
id: `chart-instructions-${I.value}`,
|
|
1466
1466
|
class: "sr-only"
|
|
1467
|
-
}, [x("p", null, k(
|
|
1467
|
+
}, [x("p", null, k(V.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
1468
1468
|
ci.value.rows.length ? (T(), Te(be, {
|
|
1469
1469
|
key: 0,
|
|
1470
1470
|
uid: I.value,
|
|
1471
1471
|
head: ci.value.headers,
|
|
1472
1472
|
body: ci.value.rows,
|
|
1473
|
-
notice:
|
|
1474
|
-
caption:
|
|
1473
|
+
notice: V.value.a11y.translations.tableAvailable,
|
|
1474
|
+
caption: V.value.a11y.translations.tableCaption
|
|
1475
1475
|
}, null, 8, [
|
|
1476
1476
|
"uid",
|
|
1477
1477
|
"head",
|
|
@@ -1479,13 +1479,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1479
1479
|
"notice",
|
|
1480
1480
|
"caption"
|
|
1481
1481
|
])) : y("", !0),
|
|
1482
|
-
|
|
1482
|
+
V.value.userOptionsButtons.annotator ? (T(), Te(A(Ue), {
|
|
1483
1483
|
key: 1,
|
|
1484
1484
|
svgRef: A(qn),
|
|
1485
|
-
backgroundColor:
|
|
1486
|
-
color:
|
|
1485
|
+
backgroundColor: V.value.backgroundColor,
|
|
1486
|
+
color: V.value.color,
|
|
1487
1487
|
active: Wr.value,
|
|
1488
|
-
isCursorPointer:
|
|
1488
|
+
isCursorPointer: Bn.value,
|
|
1489
1489
|
onClose: Gr
|
|
1490
1490
|
}, {
|
|
1491
1491
|
"annotator-action-close": j(() => [O(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -1509,31 +1509,31 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1509
1509
|
class: "vue-data-ui-no-title-space",
|
|
1510
1510
|
style: "height:36px; width: 100%;background:transparent"
|
|
1511
1511
|
}, null, 512)) : y("", !0),
|
|
1512
|
-
|
|
1512
|
+
V.value.showUserOptions && (Yn.value || Xn.value) ? (T(), Te(A(Ge), {
|
|
1513
1513
|
ref: "details",
|
|
1514
1514
|
key: `user_option_${jn.value}`,
|
|
1515
|
-
backgroundColor:
|
|
1516
|
-
color:
|
|
1515
|
+
backgroundColor: V.value.backgroundColor,
|
|
1516
|
+
color: V.value.color,
|
|
1517
1517
|
isPrinting: A(rr),
|
|
1518
1518
|
isImaging: A(ir),
|
|
1519
1519
|
uid: I.value,
|
|
1520
|
-
hasTooltip:
|
|
1521
|
-
hasPdf:
|
|
1522
|
-
hasImg:
|
|
1523
|
-
hasSvg:
|
|
1524
|
-
hasFullscreen:
|
|
1525
|
-
hasAltCopy:
|
|
1520
|
+
hasTooltip: V.value.userOptionsButtons.tooltip && V.value.showTooltip,
|
|
1521
|
+
hasPdf: V.value.userOptionsButtons.pdf,
|
|
1522
|
+
hasImg: V.value.userOptionsButtons.img,
|
|
1523
|
+
hasSvg: V.value.userOptionsButtons.svg,
|
|
1524
|
+
hasFullscreen: V.value.userOptionsButtons.fullscreen,
|
|
1525
|
+
hasAltCopy: V.value.userOptionsButtons.altCopy,
|
|
1526
1526
|
hasXls: !1,
|
|
1527
1527
|
isTooltip: cr.value.showTooltip,
|
|
1528
1528
|
isFullscreen: Vr.value,
|
|
1529
|
-
titles: { ...
|
|
1529
|
+
titles: { ...V.value.userOptionsButtonTitles },
|
|
1530
1530
|
chartElement: F.value,
|
|
1531
|
-
position:
|
|
1532
|
-
hasAnnotator:
|
|
1531
|
+
position: V.value.userOptionsPosition,
|
|
1532
|
+
hasAnnotator: V.value.userOptionsButtons.annotator,
|
|
1533
1533
|
isAnnotation: Wr.value,
|
|
1534
|
-
callbacks:
|
|
1535
|
-
printScale:
|
|
1536
|
-
isCursorPointer:
|
|
1534
|
+
callbacks: V.value.userOptionsCallbacks,
|
|
1535
|
+
printScale: V.value.userOptionsPrint.scale,
|
|
1536
|
+
isCursorPointer: Bn.value,
|
|
1537
1537
|
onToggleFullscreen: Hr,
|
|
1538
1538
|
onGeneratePdf: A(ar),
|
|
1539
1539
|
onGenerateImage: A(or),
|
|
@@ -1628,13 +1628,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1628
1628
|
"onGenerateImage",
|
|
1629
1629
|
"style"
|
|
1630
1630
|
])) : y("", !0),
|
|
1631
|
-
|
|
1631
|
+
V.value.title ? (T(), b("div", {
|
|
1632
1632
|
key: 4,
|
|
1633
1633
|
ref_key: "quickChartTitle",
|
|
1634
1634
|
ref: wn,
|
|
1635
1635
|
class: "vue-ui-quick-chart-title",
|
|
1636
|
-
style: w(`background:transparent;color:${
|
|
1637
|
-
}, k(
|
|
1636
|
+
style: w(`background:transparent;color:${V.value.color};font-size:${V.value.titleFontSize}px;font-weight:${V.value.titleBold ? "bold" : "normal"};text-align:${V.value.titleTextAlign}`)
|
|
1637
|
+
}, k(V.value.title), 5)) : y("", !0),
|
|
1638
1638
|
x("div", { id: `legend-top-${I.value}` }, null, 8, Ze),
|
|
1639
1639
|
x("div", Qe, [K.value ? (T(), b("svg", {
|
|
1640
1640
|
key: 0,
|
|
@@ -1643,7 +1643,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1643
1643
|
xmlns: A(re),
|
|
1644
1644
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1645
1645
|
viewBox: fr.value,
|
|
1646
|
-
style: w(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1646
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${V.value.color}`),
|
|
1647
1647
|
tabindex: "0",
|
|
1648
1648
|
onFocus: ii,
|
|
1649
1649
|
onBlur: ai,
|
|
@@ -1695,17 +1695,17 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1695
1695
|
dy: "0",
|
|
1696
1696
|
stdDeviation: "10",
|
|
1697
1697
|
"flood-opacity": "0.5",
|
|
1698
|
-
"flood-color":
|
|
1698
|
+
"flood-color": V.value.donutShadowColor
|
|
1699
1699
|
}, null, 8, ot)], 8, at)]),
|
|
1700
1700
|
K.value === M.DONUT ? (T(), b(_, { key: 3 }, [
|
|
1701
|
-
|
|
1701
|
+
V.value.showDataLabels ? (T(), b("g", st, [(T(!0), b(_, null, D(Y.value.chart, (e, t) => (T(), b(_, null, [Y.value.isArcBigEnough(e) ? (T(), b("path", {
|
|
1702
1702
|
key: 0,
|
|
1703
1703
|
d: A(ne)(e, {
|
|
1704
1704
|
x: q.value.width / 2,
|
|
1705
1705
|
y: q.value.height / 2
|
|
1706
|
-
}, 16, 16, !1, !1, q.value.height * Sr.value, 12,
|
|
1706
|
+
}, 16, 16, !1, !1, q.value.height * Sr.value, 12, V.value.donutCurvedMarkers),
|
|
1707
1707
|
stroke: e.color,
|
|
1708
|
-
"stroke-width":
|
|
1708
|
+
"stroke-width": V.value.donutLabelMarkerStrokeWidth,
|
|
1709
1709
|
"stroke-linecap": "round",
|
|
1710
1710
|
"stroke-linejoin": "round",
|
|
1711
1711
|
fill: "none",
|
|
@@ -1715,14 +1715,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1715
1715
|
cx: Y.value.cx,
|
|
1716
1716
|
cy: Y.value.cy,
|
|
1717
1717
|
r: Y.value.radius,
|
|
1718
|
-
fill:
|
|
1719
|
-
filter:
|
|
1718
|
+
fill: V.value.backgroundColor,
|
|
1719
|
+
filter: V.value.donutUseShadow ? `url(#shadow_${I.value})` : ""
|
|
1720
1720
|
}, null, 8, lt),
|
|
1721
1721
|
x("g", ut, [(T(!0), b(_, null, D(Y.value.chart, (e, t) => (T(), b("path", {
|
|
1722
1722
|
d: e.arcSlice,
|
|
1723
1723
|
fill: e.color,
|
|
1724
|
-
stroke:
|
|
1725
|
-
"stroke-width":
|
|
1724
|
+
stroke: V.value.donutStroke || V.value.backgroundColor,
|
|
1725
|
+
"stroke-width": V.value.donutStrokeWidth,
|
|
1726
1726
|
filter: mr(e.id)
|
|
1727
1727
|
}, null, 8, dt))), 256)), (T(!0), b(_, null, D(Y.value.chart, (e, t) => (T(), b("path", {
|
|
1728
1728
|
d: e.arcSlice,
|
|
@@ -1741,13 +1741,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1741
1741
|
seriesIndex: t
|
|
1742
1742
|
})
|
|
1743
1743
|
}, null, 40, ft))), 256))]),
|
|
1744
|
-
|
|
1744
|
+
V.value.showDataLabels ? (T(), b("g", pt, [(T(!0), b(_, null, D(Y.value.chart, (e, t) => (T(), b(_, null, [
|
|
1745
1745
|
Y.value.isArcBigEnough(e) ? (T(), b("circle", {
|
|
1746
1746
|
key: 0,
|
|
1747
1747
|
cx: A(ie)(e).x,
|
|
1748
1748
|
cy: A(u)(e) - 3.7,
|
|
1749
1749
|
fill: e.color,
|
|
1750
|
-
stroke:
|
|
1750
|
+
stroke: V.value.backgroundColor,
|
|
1751
1751
|
"stroke-width": 1,
|
|
1752
1752
|
r: 3,
|
|
1753
1753
|
filter: mr(e.id)
|
|
@@ -1757,14 +1757,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1757
1757
|
"text-anchor": A(ie)(e, !0, 20).anchor,
|
|
1758
1758
|
x: A(ie)(e, !0).x,
|
|
1759
1759
|
y: A(u)(e),
|
|
1760
|
-
fill:
|
|
1761
|
-
"font-size":
|
|
1760
|
+
fill: V.value.color,
|
|
1761
|
+
"font-size": V.value.dataLabelFontSize,
|
|
1762
1762
|
filter: mr(e.id)
|
|
1763
|
-
}, k(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + k(A(f)(
|
|
1764
|
-
p:
|
|
1763
|
+
}, k(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + k(A(f)(V.value.formatter, e.value, A(h)({
|
|
1764
|
+
p: V.value.valuePrefix,
|
|
1765
1765
|
v: e.value,
|
|
1766
|
-
s:
|
|
1767
|
-
r:
|
|
1766
|
+
s: V.value.valueSuffix,
|
|
1767
|
+
r: V.value.dataLabelRoundingValue
|
|
1768
1768
|
}), {
|
|
1769
1769
|
datapoint: e,
|
|
1770
1770
|
seriesIndex: t
|
|
@@ -1773,143 +1773,143 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1773
1773
|
key: 2,
|
|
1774
1774
|
"text-anchor": A(ie)(e).anchor,
|
|
1775
1775
|
x: A(ie)(e, !0).x,
|
|
1776
|
-
y: A(u)(e) +
|
|
1777
|
-
fill:
|
|
1778
|
-
"font-size":
|
|
1776
|
+
y: A(u)(e) + V.value.dataLabelFontSize,
|
|
1777
|
+
fill: V.value.color,
|
|
1778
|
+
"font-size": V.value.dataLabelFontSize,
|
|
1779
1779
|
filter: mr(e.id)
|
|
1780
1780
|
}, k(e.name), 9, gt)) : y("", !0)
|
|
1781
1781
|
], 64))), 256))])) : y("", !0),
|
|
1782
|
-
|
|
1782
|
+
V.value.donutShowTotal ? (T(), b("g", _t, [x("text", {
|
|
1783
1783
|
"text-anchor": "middle",
|
|
1784
1784
|
x: Y.value.drawingArea.centerX,
|
|
1785
|
-
y: Y.value.drawingArea.centerY -
|
|
1786
|
-
"font-size":
|
|
1787
|
-
fill:
|
|
1788
|
-
}, k(
|
|
1785
|
+
y: Y.value.drawingArea.centerY - V.value.donutTotalLabelFontSize / 2,
|
|
1786
|
+
"font-size": V.value.donutTotalLabelFontSize,
|
|
1787
|
+
fill: V.value.color
|
|
1788
|
+
}, k(V.value.donutTotalLabelText), 9, vt), x("text", {
|
|
1789
1789
|
"text-anchor": "middle",
|
|
1790
1790
|
x: Y.value.drawingArea.centerX,
|
|
1791
|
-
y: Y.value.drawingArea.centerY +
|
|
1792
|
-
"font-size":
|
|
1793
|
-
fill:
|
|
1791
|
+
y: Y.value.drawingArea.centerY + V.value.donutTotalLabelFontSize,
|
|
1792
|
+
"font-size": V.value.donutTotalLabelFontSize,
|
|
1793
|
+
fill: V.value.color
|
|
1794
1794
|
}, k(A(h)({
|
|
1795
|
-
p:
|
|
1795
|
+
p: V.value.valuePrefix,
|
|
1796
1796
|
v: Y.value.total,
|
|
1797
|
-
s:
|
|
1798
|
-
r:
|
|
1797
|
+
s: V.value.valueSuffix,
|
|
1798
|
+
r: V.value.dataLabelRoundingValue
|
|
1799
1799
|
})), 9, yt)])) : y("", !0)
|
|
1800
1800
|
], 64)) : y("", !0),
|
|
1801
1801
|
K.value === M.LINE ? (T(), b(_, { key: 4 }, [
|
|
1802
|
-
|
|
1802
|
+
V.value.xyShowGrid ? (T(), b("g", bt, [(T(!0), b(_, null, D(Z.value.yLabels, (e) => (T(), b(_, null, [e.y <= Z.value.drawingArea.bottom ? (T(), b("line", {
|
|
1803
1803
|
key: 0,
|
|
1804
1804
|
x1: Z.value.drawingArea.left,
|
|
1805
1805
|
x2: Z.value.drawingArea.right,
|
|
1806
1806
|
y1: e.y,
|
|
1807
1807
|
y2: e.y,
|
|
1808
|
-
stroke:
|
|
1809
|
-
"stroke-width":
|
|
1808
|
+
stroke: V.value.xyGridStroke,
|
|
1809
|
+
"stroke-width": V.value.xyGridStrokeWidth,
|
|
1810
1810
|
"stroke-linecap": "round"
|
|
1811
1811
|
}, null, 8, xt)) : y("", !0)], 64))), 256)), (T(!0), b(_, null, D(Z.value.extremes.maxSeries + 1, (e, t) => (T(), b("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,
|
|
1815
1815
|
y2: Z.value.drawingArea.bottom,
|
|
1816
|
-
stroke:
|
|
1817
|
-
"stroke-width":
|
|
1816
|
+
stroke: V.value.xyGridStroke,
|
|
1817
|
+
"stroke-width": V.value.xyGridStrokeWidth,
|
|
1818
1818
|
"stroke-linecap": "round"
|
|
1819
1819
|
}, null, 8, St))), 256))])) : y("", !0),
|
|
1820
|
-
|
|
1820
|
+
V.value.xyShowAxis ? (T(), b("g", Ct, [x("line", {
|
|
1821
1821
|
x1: Z.value.drawingArea.left,
|
|
1822
1822
|
x2: Z.value.drawingArea.left,
|
|
1823
1823
|
y1: Z.value.drawingArea.top,
|
|
1824
1824
|
y2: Z.value.drawingArea.bottom,
|
|
1825
|
-
stroke:
|
|
1826
|
-
"stroke-width":
|
|
1825
|
+
stroke: V.value.xyAxisStroke,
|
|
1826
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
1827
1827
|
"stroke-linecap": "round"
|
|
1828
1828
|
}, null, 8, wt), x("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,
|
|
1832
1832
|
y2: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
1833
|
-
stroke:
|
|
1834
|
-
"stroke-width":
|
|
1833
|
+
stroke: V.value.xyAxisStroke,
|
|
1834
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
1835
1835
|
"stroke-linecap": "round"
|
|
1836
1836
|
}, null, 8, Tt)])) : y("", !0),
|
|
1837
|
-
|
|
1837
|
+
V.value.xyShowScale ? (T(), b("g", {
|
|
1838
1838
|
key: 2,
|
|
1839
1839
|
class: "yLabels",
|
|
1840
1840
|
ref_key: "scaleLabels",
|
|
1841
|
-
ref:
|
|
1841
|
+
ref: In
|
|
1842
1842
|
}, [(T(!0), b(_, null, D(Z.value.yLabels, (e, t) => (T(), b(_, null, [e.y <= Z.value.drawingArea.bottom ? (T(), b("line", {
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
x1: e.x + 4,
|
|
1845
1845
|
x2: Z.value.drawingArea.left,
|
|
1846
1846
|
y1: e.y,
|
|
1847
1847
|
y2: e.y,
|
|
1848
|
-
stroke:
|
|
1849
|
-
"stroke-width":
|
|
1848
|
+
stroke: V.value.xyAxisStroke,
|
|
1849
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
1850
1850
|
"stroke-linecap": "round"
|
|
1851
1851
|
}, null, 8, Et)) : y("", !0), e.y <= Z.value.drawingArea.bottom ? (T(), b("text", {
|
|
1852
1852
|
key: 1,
|
|
1853
1853
|
x: e.x,
|
|
1854
|
-
y: e.y +
|
|
1854
|
+
y: e.y + V.value.xyLabelsYFontSize / 3,
|
|
1855
1855
|
"text-anchor": "end",
|
|
1856
|
-
"font-size":
|
|
1857
|
-
fill:
|
|
1858
|
-
}, k(A(f)(
|
|
1859
|
-
p:
|
|
1856
|
+
"font-size": V.value.xyLabelsYFontSize,
|
|
1857
|
+
fill: V.value.color
|
|
1858
|
+
}, k(A(f)(V.value.formatter, e.value, A(h)({
|
|
1859
|
+
p: V.value.valuePrefix,
|
|
1860
1860
|
v: e.value,
|
|
1861
|
-
s:
|
|
1862
|
-
r:
|
|
1861
|
+
s: V.value.valueSuffix,
|
|
1862
|
+
r: V.value.dataLabelRoundingValue
|
|
1863
1863
|
}), {
|
|
1864
1864
|
datapoint: e,
|
|
1865
1865
|
seriesIndex: t
|
|
1866
1866
|
})), 9, Dt)) : y("", !0)], 64))), 256))], 512)) : y("", !0),
|
|
1867
|
-
|
|
1867
|
+
V.value.xyShowScale && V.value.xyPeriods.length ? (T(), b("g", Ot, [(T(!0), b(_, null, D($.value.map((e) => e.text), (e, t) => (T(), b(_, null, [!V.value.xyPeriodsShowOnlyAtModulo || V.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (T(), b("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,
|
|
1871
1871
|
y1: Z.value.drawingArea.bottom,
|
|
1872
1872
|
y2: Z.value.drawingArea.bottom + 4,
|
|
1873
|
-
stroke:
|
|
1874
|
-
"stroke-width":
|
|
1873
|
+
stroke: V.value.xyAxisStroke,
|
|
1874
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
1875
1875
|
"stroke-linecap": "round"
|
|
1876
1876
|
}, null, 8, kt)) : y("", !0)], 64))), 256)), x("g", {
|
|
1877
1877
|
ref_key: "timeLabelsEls",
|
|
1878
|
-
ref:
|
|
1879
|
-
}, [(T(!0), b(_, null, D($.value.map((e) => e.text), (e, t) => (T(), b(_, null, [!
|
|
1878
|
+
ref: B
|
|
1879
|
+
}, [(T(!0), b(_, null, D($.value.map((e) => e.text), (e, t) => (T(), b(_, null, [!V.value.xyPeriodsShowOnlyAtModulo || V.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (T(), b("g", At, [String(e).includes("\n") ? (T(), b("text", {
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
class: "vue-data-ui-time-label",
|
|
1882
|
-
"font-size":
|
|
1883
|
-
"text-anchor":
|
|
1884
|
-
fill:
|
|
1885
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom +
|
|
1882
|
+
"font-size": V.value.xyLabelsXFontSize,
|
|
1883
|
+
"text-anchor": V.value.xyPeriodLabelsRotation > 0 ? "start" : V.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1884
|
+
fill: V.value.color,
|
|
1885
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + V.value.xyLabelsXFontSize + 6}), rotate(${V.value.xyPeriodLabelsRotation})`,
|
|
1886
1886
|
innerHTML: A(i)({
|
|
1887
1887
|
content: String(e),
|
|
1888
|
-
fontSize:
|
|
1889
|
-
fill:
|
|
1888
|
+
fontSize: V.value.xyLabelsXFontSize,
|
|
1889
|
+
fill: V.value.color,
|
|
1890
1890
|
x: 0,
|
|
1891
1891
|
y: 0
|
|
1892
1892
|
})
|
|
1893
1893
|
}, null, 8, Mt)) : (T(), b("text", {
|
|
1894
1894
|
key: 0,
|
|
1895
1895
|
class: "vue-data-ui-time-label",
|
|
1896
|
-
"font-size":
|
|
1897
|
-
"text-anchor":
|
|
1898
|
-
fill:
|
|
1899
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom +
|
|
1896
|
+
"font-size": V.value.xyLabelsXFontSize,
|
|
1897
|
+
"text-anchor": V.value.xyPeriodLabelsRotation > 0 ? "start" : V.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1898
|
+
fill: V.value.color,
|
|
1899
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + V.value.xyLabelsXFontSize + 6}), rotate(${V.value.xyPeriodLabelsRotation})`
|
|
1900
1900
|
}, k(e), 9, jt))])) : y("", !0)], 64))), 256))], 512)])) : y("", !0),
|
|
1901
|
-
x("g", Nt, [(T(!0), b(_, null, D(Z.value.dataset, (e, t) => (T(), b("g", Pt, [
|
|
1901
|
+
x("g", Nt, [(T(!0), b(_, null, D(Z.value.dataset, (e, t) => (T(), b("g", Pt, [V.value.lineSmooth ? (T(), b(_, { key: 0 }, [x("path", {
|
|
1902
1902
|
ref_for: !0,
|
|
1903
1903
|
ref_key: "pathWrapper",
|
|
1904
1904
|
ref: Pn,
|
|
1905
1905
|
d: `M ${A(p)(e.coordinates)}`,
|
|
1906
|
-
stroke:
|
|
1907
|
-
"stroke-width":
|
|
1906
|
+
stroke: V.value.backgroundColor,
|
|
1907
|
+
"stroke-width": V.value.lineStrokeWidth + 1,
|
|
1908
1908
|
"stroke-linecap": "round",
|
|
1909
1909
|
fill: "none",
|
|
1910
1910
|
class: je({
|
|
1911
1911
|
"quick-animation": !A(U),
|
|
1912
|
-
"vue-data-ui-line-animated":
|
|
1912
|
+
"vue-data-ui-line-animated": V.value.lineAnimated && !A(U)
|
|
1913
1913
|
}),
|
|
1914
1914
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1915
1915
|
}, null, 14, Ft), x("path", {
|
|
@@ -1918,12 +1918,12 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1918
1918
|
ref: Fn,
|
|
1919
1919
|
d: `M ${A(p)(e.coordinates)}`,
|
|
1920
1920
|
stroke: e.color,
|
|
1921
|
-
"stroke-width":
|
|
1921
|
+
"stroke-width": V.value.lineStrokeWidth,
|
|
1922
1922
|
"stroke-linecap": "round",
|
|
1923
1923
|
fill: "none",
|
|
1924
1924
|
class: je({
|
|
1925
1925
|
"quick-animation": !A(U),
|
|
1926
|
-
"vue-data-ui-line-animated":
|
|
1926
|
+
"vue-data-ui-line-animated": V.value.lineAnimated && !A(U)
|
|
1927
1927
|
}),
|
|
1928
1928
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1929
1929
|
}, null, 14, It)], 64)) : (T(), b(_, { key: 1 }, [x("path", {
|
|
@@ -1931,13 +1931,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1931
1931
|
ref_key: "pathWrapper",
|
|
1932
1932
|
ref: Pn,
|
|
1933
1933
|
d: `M ${e.linePath}`,
|
|
1934
|
-
stroke:
|
|
1935
|
-
"stroke-width":
|
|
1934
|
+
stroke: V.value.backgroundColor,
|
|
1935
|
+
"stroke-width": V.value.lineStrokeWidth + 1,
|
|
1936
1936
|
"stroke-linecap": "round",
|
|
1937
1937
|
fill: "none",
|
|
1938
1938
|
class: je({
|
|
1939
1939
|
"quick-animation": !A(U),
|
|
1940
|
-
"vue-data-ui-line-animated":
|
|
1940
|
+
"vue-data-ui-line-animated": V.value.lineAnimated && !A(U)
|
|
1941
1941
|
}),
|
|
1942
1942
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1943
1943
|
}, null, 14, Lt), x("path", {
|
|
@@ -1946,12 +1946,12 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1946
1946
|
ref: Fn,
|
|
1947
1947
|
d: `M ${e.linePath}`,
|
|
1948
1948
|
stroke: e.color,
|
|
1949
|
-
"stroke-width":
|
|
1949
|
+
"stroke-width": V.value.lineStrokeWidth,
|
|
1950
1950
|
"stroke-linecap": "round",
|
|
1951
1951
|
fill: "none",
|
|
1952
1952
|
class: je({
|
|
1953
1953
|
"quick-animation": !A(U),
|
|
1954
|
-
"vue-data-ui-line-animated":
|
|
1954
|
+
"vue-data-ui-line-animated": V.value.lineAnimated && !A(U)
|
|
1955
1955
|
}),
|
|
1956
1956
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1957
1957
|
}, null, 14, Rt)], 64)), (T(!0), b(_, null, D(e.coordinates, (t, n) => (T(), b("circle", {
|
|
@@ -1959,7 +1959,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1959
1959
|
cy: A(g)(t.y),
|
|
1960
1960
|
r: 3,
|
|
1961
1961
|
fill: e.color,
|
|
1962
|
-
stroke:
|
|
1962
|
+
stroke: V.value.backgroundColor,
|
|
1963
1963
|
"stroke-width": "0.5",
|
|
1964
1964
|
class: je({
|
|
1965
1965
|
"vue-ui-quick-chart-plot": !0,
|
|
@@ -1967,22 +1967,22 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1967
1967
|
}),
|
|
1968
1968
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1969
1969
|
}, null, 14, zt))), 256))]))), 256))]),
|
|
1970
|
-
|
|
1970
|
+
V.value.showDataLabels ? (T(), b("g", Bt, [(T(!0), b(_, null, D(Z.value.dataset, (e, t) => (T(), b(_, null, [(T(!0), b(_, null, D(e.coordinates, (t, n) => (T(), b("text", {
|
|
1971
1971
|
"text-anchor": "middle",
|
|
1972
|
-
"font-size":
|
|
1972
|
+
"font-size": V.value.dataLabelFontSize,
|
|
1973
1973
|
fill: e.color,
|
|
1974
1974
|
x: t.x,
|
|
1975
|
-
y: A(g)(t.y) -
|
|
1975
|
+
y: A(g)(t.y) - V.value.dataLabelFontSize / 2,
|
|
1976
1976
|
class: je({
|
|
1977
1977
|
"vue-ui-quick-chart-label": !0,
|
|
1978
1978
|
"quick-animation": !A(U)
|
|
1979
1979
|
}),
|
|
1980
1980
|
style: w({ transition: A(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1981
|
-
}, k(A(f)(
|
|
1982
|
-
p:
|
|
1981
|
+
}, k(A(f)(V.value.formatter, A(g)(t.value), A(h)({
|
|
1982
|
+
p: V.value.valuePrefix,
|
|
1983
1983
|
v: A(g)(t.value),
|
|
1984
|
-
s:
|
|
1985
|
-
r:
|
|
1984
|
+
s: V.value.valueSuffix,
|
|
1985
|
+
r: V.value.dataLabelRoundingValue
|
|
1986
1986
|
}), {
|
|
1987
1987
|
datapoint: t,
|
|
1988
1988
|
seriesIndex: n
|
|
@@ -1992,111 +1992,111 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1992
1992
|
y: Z.value.drawingArea.top,
|
|
1993
1993
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
1994
1994
|
width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
|
|
1995
|
-
fill: [R.value, J.value].includes(t) ?
|
|
1996
|
-
style: w(`opacity:${
|
|
1995
|
+
fill: [R.value, J.value].includes(t) ? V.value.xyHighlighterColor : "transparent",
|
|
1996
|
+
style: w(`opacity:${V.value.xyHighlighterOpacity}`),
|
|
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
2000
|
}, null, 44, Ut))), 256))])) : y("", !0)
|
|
2001
2001
|
], 64)) : y("", !0),
|
|
2002
2002
|
K.value === M.BAR ? (T(), b(_, { key: 5 }, [
|
|
2003
|
-
|
|
2003
|
+
V.value.xyShowGrid ? (T(), b("g", Wt, [(T(!0), b(_, null, D(Q.value.yLabels, (e) => (T(), b(_, null, [e.y <= Q.value.drawingArea.bottom ? (T(), b("line", {
|
|
2004
2004
|
key: 0,
|
|
2005
2005
|
x1: Q.value.drawingArea.left,
|
|
2006
2006
|
x2: Q.value.drawingArea.right,
|
|
2007
2007
|
y1: e.y,
|
|
2008
2008
|
y2: e.y,
|
|
2009
|
-
stroke:
|
|
2010
|
-
"stroke-width":
|
|
2009
|
+
stroke: V.value.xyGridStroke,
|
|
2010
|
+
"stroke-width": V.value.xyGridStrokeWidth,
|
|
2011
2011
|
"stroke-linecap": "round"
|
|
2012
2012
|
}, null, 8, Gt)) : y("", !0)], 64))), 256)), z.value.length < Q.value.legend.length ? (T(!0), b(_, { key: 0 }, D(Q.value.extremes.maxSeries + 1, (e, t) => (T(), b("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,
|
|
2016
2016
|
y2: Q.value.drawingArea.bottom,
|
|
2017
|
-
stroke:
|
|
2018
|
-
"stroke-width":
|
|
2017
|
+
stroke: V.value.xyGridStroke,
|
|
2018
|
+
"stroke-width": V.value.xyGridStrokeWidth,
|
|
2019
2019
|
"stroke-linecap": "round"
|
|
2020
2020
|
}, null, 8, Kt))), 256)) : y("", !0)])) : y("", !0),
|
|
2021
|
-
|
|
2021
|
+
V.value.xyShowAxis ? (T(), b("g", qt, [x("line", {
|
|
2022
2022
|
x1: Q.value.drawingArea.left,
|
|
2023
2023
|
x2: Q.value.drawingArea.left,
|
|
2024
2024
|
y1: Q.value.drawingArea.top,
|
|
2025
2025
|
y2: Q.value.drawingArea.bottom,
|
|
2026
|
-
stroke:
|
|
2027
|
-
"stroke-width":
|
|
2026
|
+
stroke: V.value.xyAxisStroke,
|
|
2027
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
2028
2028
|
"stroke-linecap": "round"
|
|
2029
2029
|
}, null, 8, Jt), x("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,
|
|
2033
2033
|
y2: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
2034
|
-
stroke:
|
|
2035
|
-
"stroke-width":
|
|
2034
|
+
stroke: V.value.xyAxisStroke,
|
|
2035
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
2036
2036
|
"stroke-linecap": "round"
|
|
2037
2037
|
}, null, 8, Yt)])) : y("", !0),
|
|
2038
|
-
|
|
2038
|
+
V.value.xyShowScale ? (T(), b("g", {
|
|
2039
2039
|
key: 2,
|
|
2040
2040
|
class: "yLabels",
|
|
2041
2041
|
ref_key: "scaleLabels",
|
|
2042
|
-
ref:
|
|
2042
|
+
ref: In
|
|
2043
2043
|
}, [(T(!0), b(_, null, D(Q.value.yLabels, (e, t) => (T(), b(_, null, [e.y <= Q.value.drawingArea.bottom ? (T(), b("line", {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
x1: e.x + 4,
|
|
2046
2046
|
x2: Q.value.drawingArea.left,
|
|
2047
2047
|
y1: e.y,
|
|
2048
2048
|
y2: e.y,
|
|
2049
|
-
stroke:
|
|
2050
|
-
"stroke-width":
|
|
2049
|
+
stroke: V.value.xyAxisStroke,
|
|
2050
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
2051
2051
|
"stroke-linecap": "round"
|
|
2052
2052
|
}, null, 8, Xt)) : y("", !0), e.y <= Q.value.drawingArea.bottom ? (T(), b("text", {
|
|
2053
2053
|
key: 1,
|
|
2054
2054
|
x: e.x,
|
|
2055
|
-
y: e.y +
|
|
2055
|
+
y: e.y + V.value.xyLabelsYFontSize / 3,
|
|
2056
2056
|
"text-anchor": "end",
|
|
2057
|
-
"font-size":
|
|
2058
|
-
fill:
|
|
2059
|
-
}, k(A(f)(
|
|
2060
|
-
p:
|
|
2057
|
+
"font-size": V.value.xyLabelsYFontSize,
|
|
2058
|
+
fill: V.value.color
|
|
2059
|
+
}, k(A(f)(V.value.formatter, e.value, A(h)({
|
|
2060
|
+
p: V.value.valuePrefix,
|
|
2061
2061
|
v: e.value,
|
|
2062
|
-
s:
|
|
2063
|
-
r:
|
|
2062
|
+
s: V.value.valueSuffix,
|
|
2063
|
+
r: V.value.dataLabelRoundingValue
|
|
2064
2064
|
}), {
|
|
2065
2065
|
datapoint: e,
|
|
2066
2066
|
seriesIndex: t
|
|
2067
2067
|
})), 9, Zt)) : y("", !0)], 64))), 256))], 512)) : y("", !0),
|
|
2068
|
-
|
|
2068
|
+
V.value.xyShowScale && V.value.xyPeriods.length ? (T(), b("g", Qt, [(T(!0), b(_, null, D(V.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (T(), b("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,
|
|
2072
2072
|
y2: Q.value.drawingArea.bottom + 4,
|
|
2073
|
-
stroke:
|
|
2074
|
-
"stroke-width":
|
|
2073
|
+
stroke: V.value.xyAxisStroke,
|
|
2074
|
+
"stroke-width": V.value.xyAxisStrokeWidth,
|
|
2075
2075
|
"stroke-linecap": "round"
|
|
2076
2076
|
}, null, 8, $t))), 256)), x("g", {
|
|
2077
2077
|
ref_key: "timeLabelsEls",
|
|
2078
|
-
ref:
|
|
2079
|
-
}, [(T(!0), b(_, null, D($.value.map((e) => e.text), (e, t) => (T(), b(_, null, [!
|
|
2078
|
+
ref: B
|
|
2079
|
+
}, [(T(!0), b(_, null, D($.value.map((e) => e.text), (e, t) => (T(), b(_, null, [!V.value.xyPeriodsShowOnlyAtModulo || V.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (T(), b("g", en, [String(e).includes("\n") ? (T(), b("text", {
|
|
2080
2080
|
key: 1,
|
|
2081
2081
|
class: "vue-data-ui-time-label",
|
|
2082
|
-
"font-size":
|
|
2083
|
-
"text-anchor":
|
|
2084
|
-
fill:
|
|
2085
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom +
|
|
2082
|
+
"font-size": V.value.xyLabelsXFontSize,
|
|
2083
|
+
"text-anchor": V.value.xyPeriodLabelsRotation > 0 ? "start" : V.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2084
|
+
fill: V.value.color,
|
|
2085
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + V.value.xyLabelsXFontSize + 6}), rotate(${V.value.xyPeriodLabelsRotation})`,
|
|
2086
2086
|
innerHTML: A(i)({
|
|
2087
2087
|
content: String(e),
|
|
2088
|
-
fontSize:
|
|
2089
|
-
fill:
|
|
2088
|
+
fontSize: V.value.xyLabelsXFontSize,
|
|
2089
|
+
fill: V.value.color,
|
|
2090
2090
|
x: 0,
|
|
2091
2091
|
y: 0
|
|
2092
2092
|
})
|
|
2093
2093
|
}, null, 8, nn)) : (T(), b("text", {
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
class: "vue-data-ui-time-label",
|
|
2096
|
-
"font-size":
|
|
2097
|
-
"text-anchor":
|
|
2098
|
-
fill:
|
|
2099
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom +
|
|
2096
|
+
"font-size": V.value.xyLabelsXFontSize,
|
|
2097
|
+
"text-anchor": V.value.xyPeriodLabelsRotation > 0 ? "start" : V.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2098
|
+
fill: V.value.color,
|
|
2099
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + V.value.xyLabelsXFontSize + 6}), rotate(${V.value.xyPeriodLabelsRotation})`
|
|
2100
2100
|
}, k(e), 9, tn))])) : y("", !0)], 64))), 256))], 512)])) : y("", !0),
|
|
2101
2101
|
x("g", rn, [(T(!0), b(_, null, D(Q.value.dataset, (e, t) => (T(), b(_, null, [(T(!0), b(_, null, D(e.coordinates, (t, n) => (T(), b("rect", {
|
|
2102
2102
|
x: t.x,
|
|
@@ -2104,35 +2104,35 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2104
2104
|
height: A(g)(t.height <= 0 ? 1e-5 : t.height),
|
|
2105
2105
|
y: A(g)(t.y),
|
|
2106
2106
|
fill: e.color,
|
|
2107
|
-
stroke:
|
|
2108
|
-
"stroke-width":
|
|
2107
|
+
stroke: V.value.backgroundColor,
|
|
2108
|
+
"stroke-width": V.value.barStrokeWidth,
|
|
2109
2109
|
"stroke-linecap": "round",
|
|
2110
|
-
class: je({ "vue-data-ui-bar-animated":
|
|
2111
|
-
}, [
|
|
2110
|
+
class: je({ "vue-data-ui-bar-animated": V.value.barAnimated && t.value < 0 && !A(U) })
|
|
2111
|
+
}, [V.value.barAnimated && t.value > 0 && !A(rr) && !A(ir) ? (T(), b("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, on)) : y("", !0),
|
|
2117
|
+
}, null, 8, on)) : y("", !0), V.value.barAnimated && t.value > 0 && !A(rr) && !A(ir) ? (T(), b("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
2123
|
}, null, 8, sn)) : y("", !0)], 10, an))), 256))], 64))), 256))]),
|
|
2124
|
-
|
|
2124
|
+
V.value.showDataLabels ? (T(), b("g", cn, [(T(!0), b(_, null, D(Q.value.dataset, (e, t) => (T(), b(_, null, [(T(!0), b(_, null, D(e.coordinates, (t, n) => (T(), b("text", {
|
|
2125
2125
|
x: t.x + t.width / 2,
|
|
2126
|
-
y: A(g)(t.y) -
|
|
2126
|
+
y: A(g)(t.y) - V.value.dataLabelFontSize / 2,
|
|
2127
2127
|
"text-anchor": "middle",
|
|
2128
|
-
"font-size":
|
|
2128
|
+
"font-size": V.value.dataLabelFontSize,
|
|
2129
2129
|
fill: e.color,
|
|
2130
2130
|
class: "quick-animation"
|
|
2131
|
-
}, k(A(f)(
|
|
2132
|
-
p:
|
|
2131
|
+
}, k(A(f)(V.value.formatter, A(g)(t.value), A(h)({
|
|
2132
|
+
p: V.value.valuePrefix,
|
|
2133
2133
|
v: A(g)(t.value),
|
|
2134
|
-
s:
|
|
2135
|
-
r:
|
|
2134
|
+
s: V.value.valueSuffix,
|
|
2135
|
+
r: V.value.dataLabelRoundingValue
|
|
2136
2136
|
}), {
|
|
2137
2137
|
datapoint: t,
|
|
2138
2138
|
seriesIndex: n
|
|
@@ -2142,63 +2142,63 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2142
2142
|
y: Q.value.drawingArea.top,
|
|
2143
2143
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
2144
2144
|
width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
|
|
2145
|
-
fill: [R.value, J.value].includes(t) ?
|
|
2146
|
-
style: w(`opacity:${
|
|
2145
|
+
fill: [R.value, J.value].includes(t) ? V.value.xyHighlighterColor : "transparent",
|
|
2146
|
+
style: w(`opacity:${V.value.xyHighlighterOpacity}`),
|
|
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
2150
|
}, null, 44, dn))), 256))])) : y("", !0)
|
|
2151
2151
|
], 64)) : y("", !0),
|
|
2152
2152
|
[M.LINE, M.BAR].includes(K.value) ? (T(), b("g", fn, [
|
|
2153
|
-
|
|
2153
|
+
V.value.xAxisLabel && K.value === M.LINE ? (T(), b("g", {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
ref_key: "xAxisLabel",
|
|
2156
|
-
ref:
|
|
2156
|
+
ref: Ln
|
|
2157
2157
|
}, [x("text", {
|
|
2158
|
-
"font-size":
|
|
2159
|
-
fill:
|
|
2158
|
+
"font-size": V.value.axisLabelsFontSize,
|
|
2159
|
+
fill: V.value.color,
|
|
2160
2160
|
"text-anchor": "middle",
|
|
2161
2161
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2162
|
-
y: q.value.height -
|
|
2163
|
-
}, k(
|
|
2164
|
-
|
|
2162
|
+
y: q.value.height - V.value.axisLabelsFontSize / 3
|
|
2163
|
+
}, k(V.value.xAxisLabel), 9, pn)], 512)) : y("", !0),
|
|
2164
|
+
V.value.xAxisLabel && K.value === M.BAR ? (T(), b("g", {
|
|
2165
2165
|
key: 1,
|
|
2166
2166
|
ref_key: "xAxisLabel",
|
|
2167
|
-
ref:
|
|
2167
|
+
ref: Ln
|
|
2168
2168
|
}, [x("text", {
|
|
2169
|
-
"font-size":
|
|
2170
|
-
fill:
|
|
2169
|
+
"font-size": V.value.axisLabelsFontSize,
|
|
2170
|
+
fill: V.value.color,
|
|
2171
2171
|
"text-anchor": "middle",
|
|
2172
2172
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2173
|
-
y: q.value.height -
|
|
2174
|
-
}, k(
|
|
2175
|
-
|
|
2173
|
+
y: q.value.height - V.value.axisLabelsFontSize / 3
|
|
2174
|
+
}, k(V.value.xAxisLabel), 9, mn)], 512)) : y("", !0),
|
|
2175
|
+
V.value.yAxisLabel && K.value === M.LINE ? (T(), b("g", {
|
|
2176
2176
|
key: 2,
|
|
2177
2177
|
ref_key: "yAxisLabel",
|
|
2178
|
-
ref:
|
|
2178
|
+
ref: Rn
|
|
2179
2179
|
}, [x("text", {
|
|
2180
|
-
"font-size":
|
|
2181
|
-
fill:
|
|
2182
|
-
transform: `translate(${
|
|
2180
|
+
"font-size": V.value.axisLabelsFontSize,
|
|
2181
|
+
fill: V.value.color,
|
|
2182
|
+
transform: `translate(${V.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2183
2183
|
"text-anchor": "middle"
|
|
2184
|
-
}, k(
|
|
2185
|
-
|
|
2184
|
+
}, k(V.value.yAxisLabel), 9, hn)], 512)) : y("", !0),
|
|
2185
|
+
V.value.yAxisLabel && K.value === M.BAR ? (T(), b("g", {
|
|
2186
2186
|
key: 3,
|
|
2187
2187
|
ref_key: "yAxisLabel",
|
|
2188
|
-
ref:
|
|
2188
|
+
ref: Rn
|
|
2189
2189
|
}, [x("text", {
|
|
2190
|
-
"font-size":
|
|
2191
|
-
fill:
|
|
2192
|
-
transform: `translate(${
|
|
2190
|
+
"font-size": V.value.axisLabelsFontSize,
|
|
2191
|
+
fill: V.value.color,
|
|
2192
|
+
transform: `translate(${V.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2193
2193
|
"text-anchor": "middle"
|
|
2194
|
-
}, k(
|
|
2194
|
+
}, k(V.value.yAxisLabel), 9, gn)], 512)) : y("", !0)
|
|
2195
2195
|
])) : y("", !0)
|
|
2196
2196
|
], 44, $e)) : y("", !0), e.$slots.hint ? (T(), b("div", _n, [O(e.$slots, "hint", C(S({
|
|
2197
|
-
hint:
|
|
2197
|
+
hint: V.value.a11y.translations.keyboardNavigation,
|
|
2198
2198
|
isVisible: Un.value
|
|
2199
2199
|
})), void 0, !0)])) : y("", !0)]),
|
|
2200
2200
|
e.$slots.watermark ? (T(), b("div", vn, [O(e.$slots, "watermark", C(S({ isPrinting: A(rr) || A(ir) })), void 0, !0)])) : y("", !0),
|
|
2201
|
-
[M.BAR, M.LINE].includes(K.value) &&
|
|
2201
|
+
[M.BAR, M.LINE].includes(K.value) && V.value.zoomXy && G.value.maxSeriesLength > 1 ? (T(), b("div", {
|
|
2202
2202
|
key: `slicer_${Mn.value}`,
|
|
2203
2203
|
ref_key: "quickChartSlicer",
|
|
2204
2204
|
ref: En
|
|
@@ -2206,50 +2206,50 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2206
2206
|
ref_key: "slicerComponent",
|
|
2207
2207
|
ref: wr,
|
|
2208
2208
|
key: `slicer_${Mn.value}`,
|
|
2209
|
-
background:
|
|
2210
|
-
borderColor:
|
|
2211
|
-
fontSize:
|
|
2212
|
-
useResetSlot:
|
|
2213
|
-
labelLeft:
|
|
2214
|
-
labelRight:
|
|
2215
|
-
textColor:
|
|
2216
|
-
inputColor:
|
|
2217
|
-
selectColor:
|
|
2209
|
+
background: V.value.zoomColor,
|
|
2210
|
+
borderColor: V.value.backgroundColor,
|
|
2211
|
+
fontSize: V.value.zoomFontSize,
|
|
2212
|
+
useResetSlot: V.value.zoomUseResetSlot,
|
|
2213
|
+
labelLeft: V.value.xyPeriods[X.value.start] && $.value[0] ? $.value[0].text : "",
|
|
2214
|
+
labelRight: V.value.xyPeriods[X.value.end - 1] && $.value?.length ? $.value.at(-1).text : "",
|
|
2215
|
+
textColor: V.value.color,
|
|
2216
|
+
inputColor: V.value.zoomColor,
|
|
2217
|
+
selectColor: V.value.zoomHighlightColor,
|
|
2218
2218
|
max: G.value.maxSeriesLength,
|
|
2219
2219
|
min: 0,
|
|
2220
2220
|
valueStart: X.value.start,
|
|
2221
2221
|
valueEnd: X.value.end,
|
|
2222
|
-
smoothMinimap:
|
|
2223
|
-
minimapSelectedColor:
|
|
2224
|
-
minimapSelectedColorOpacity:
|
|
2225
|
-
minimapSelectionRadius:
|
|
2226
|
-
minimapLineColor:
|
|
2222
|
+
smoothMinimap: V.value.zoomMinimap.smooth,
|
|
2223
|
+
minimapSelectedColor: V.value.zoomMinimap.selectedColor,
|
|
2224
|
+
minimapSelectedColorOpacity: V.value.zoomMinimap.selectedColorOpacity,
|
|
2225
|
+
minimapSelectionRadius: V.value.zoomMinimap.selectionRadius,
|
|
2226
|
+
minimapLineColor: V.value.zoomMinimap.lineColor,
|
|
2227
2227
|
minimap: Dr.value,
|
|
2228
|
-
minimapIndicatorColor:
|
|
2229
|
-
verticalHandles:
|
|
2228
|
+
minimapIndicatorColor: V.value.zoomMinimap.indicatorColor,
|
|
2229
|
+
verticalHandles: V.value.zoomMinimap.verticalHandles,
|
|
2230
2230
|
minimapSelectedIndex: J.value,
|
|
2231
2231
|
start: X.value.start,
|
|
2232
2232
|
"onUpdate:start": t[0] ||= (e) => X.value.start = e,
|
|
2233
2233
|
end: X.value.end,
|
|
2234
2234
|
"onUpdate:end": t[1] ||= (e) => X.value.end = e,
|
|
2235
|
-
refreshStartPoint:
|
|
2236
|
-
refreshEndPoint:
|
|
2237
|
-
enableRangeHandles:
|
|
2238
|
-
enableSelectionDrag:
|
|
2239
|
-
minimapCompact:
|
|
2240
|
-
minimapMerged:
|
|
2235
|
+
refreshStartPoint: V.value.zoomStartIndex === null ? 0 : V.value.zoomStartIndex,
|
|
2236
|
+
refreshEndPoint: V.value.zoomEndIndex === null ? G.value.maxSeriesLength : V.value.zoomEndIndex + 1,
|
|
2237
|
+
enableRangeHandles: V.value.zoomEnableRangeHandles,
|
|
2238
|
+
enableSelectionDrag: V.value.zoomEnableSelectionDrag,
|
|
2239
|
+
minimapCompact: V.value.zoomMinimap.compact,
|
|
2240
|
+
minimapMerged: V.value.zoomMinimap.merged,
|
|
2241
2241
|
allMinimaps: Rr.value,
|
|
2242
|
-
minimapFrameColor:
|
|
2243
|
-
additionalMinimapHeight:
|
|
2244
|
-
handleType:
|
|
2245
|
-
handleWidth:
|
|
2246
|
-
handleBorderWidth:
|
|
2247
|
-
handleIconColor:
|
|
2248
|
-
handleBorderColor:
|
|
2249
|
-
handleFill:
|
|
2250
|
-
focusOnDrag:
|
|
2251
|
-
focusRangeRatio:
|
|
2252
|
-
maxWidth:
|
|
2242
|
+
minimapFrameColor: V.value.zoomMinimap.frameColor,
|
|
2243
|
+
additionalMinimapHeight: V.value.zoomMinimap.additionalHeight,
|
|
2244
|
+
handleType: V.value.zoomMinimap.handleType,
|
|
2245
|
+
handleWidth: V.value.zoomMinimap.handleWidth,
|
|
2246
|
+
handleBorderWidth: V.value.zoomMinimap.handleBorderWidth,
|
|
2247
|
+
handleIconColor: V.value.zoomMinimap.handleIconColor,
|
|
2248
|
+
handleBorderColor: V.value.zoomMinimap.handleBorderColor,
|
|
2249
|
+
handleFill: V.value.zoomMinimap.handleFill,
|
|
2250
|
+
focusOnDrag: V.value.zoomFocusOnDrag,
|
|
2251
|
+
focusRangeRatio: V.value.zoomFocusRangeRatio,
|
|
2252
|
+
maxWidth: V.value.zoomMaxWidth,
|
|
2253
2253
|
onReset: Cr,
|
|
2254
2254
|
onTrapMouse: xr
|
|
2255
2255
|
}, {
|
|
@@ -2257,23 +2257,23 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2257
2257
|
_: 3
|
|
2258
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(".")))])) : y("", !0),
|
|
2259
2259
|
x("div", { id: `legend-bottom-${I.value}` }, null, 8, yn),
|
|
2260
|
-
Nn.value &&
|
|
2260
|
+
Nn.value && V.value.showLegend ? (T(), Te(we, {
|
|
2261
2261
|
key: 7,
|
|
2262
|
-
to:
|
|
2263
|
-
}, [
|
|
2262
|
+
to: V.value.legendPosition === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2263
|
+
}, [V.value.showLegend ? (T(), b("div", {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
ref_key: "quickChartLegend",
|
|
2266
2266
|
ref: Tn,
|
|
2267
2267
|
class: "vue-ui-quick-chart-legend",
|
|
2268
|
-
style: w(`background:transparent;color:${
|
|
2268
|
+
style: w(`background:transparent;color:${V.value.color}`)
|
|
2269
2269
|
}, [
|
|
2270
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) &&
|
|
2270
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && V.value.showLegendSelectAllToggle && !A(U) ? (T(), Te(ye, {
|
|
2271
2271
|
key: 0,
|
|
2272
|
-
backgroundColor:
|
|
2273
|
-
color:
|
|
2274
|
-
fontSize:
|
|
2272
|
+
backgroundColor: V.value.legendSelectAllToggleBackgroundColor,
|
|
2273
|
+
color: V.value.legendSelectAllToggleColor,
|
|
2274
|
+
fontSize: V.value.legendFontSize,
|
|
2275
2275
|
checked: z.value.length > 0,
|
|
2276
|
-
isCursorPointer:
|
|
2276
|
+
isCursorPointer: Bn.value,
|
|
2277
2277
|
onToggle: hr
|
|
2278
2278
|
}, null, 8, [
|
|
2279
2279
|
"backgroundColor",
|
|
@@ -2285,7 +2285,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2285
2285
|
K.value === M.DONUT ? (T(!0), b(_, { key: 1 }, D(Y.value.legend, (t, n) => (T(), b("div", {
|
|
2286
2286
|
class: "vue-ui-quick-chart-legend-item",
|
|
2287
2287
|
onClick: (e) => br(t, Y.value.dataset),
|
|
2288
|
-
style: w(`cursor: ${Y.value.legend.length > 1 &&
|
|
2288
|
+
style: w(`cursor: ${Y.value.legend.length > 1 && Bn.value ? "pointer" : "default"}; opacity:${z.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2289
2289
|
role: "button",
|
|
2290
2290
|
tabindex: "0",
|
|
2291
2291
|
onKeydown: (e) => {
|
|
@@ -2293,7 +2293,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2293
2293
|
br(t, Y.value.dataset);
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
}, [
|
|
2296
|
+
}, [V.value.useCustomLegend ? O(e.$slots, "legend", ke({
|
|
2297
2297
|
key: 0,
|
|
2298
2298
|
ref_for: !0
|
|
2299
2299
|
}, { legend: {
|
|
@@ -2304,37 +2304,37 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2304
2304
|
}
|
|
2305
2305
|
} }), void 0, !0) : (T(), b(_, { key: 1 }, [
|
|
2306
2306
|
De(A(Be), {
|
|
2307
|
-
name:
|
|
2307
|
+
name: V.value.legendIcon,
|
|
2308
2308
|
stroke: t.color,
|
|
2309
|
-
size:
|
|
2309
|
+
size: V.value.legendIconSize
|
|
2310
2310
|
}, null, 8, [
|
|
2311
2311
|
"name",
|
|
2312
2312
|
"stroke",
|
|
2313
2313
|
"size"
|
|
2314
2314
|
]),
|
|
2315
|
-
x("span", { style: w(`font-size:${
|
|
2316
|
-
x("span", { style: w(`font-size:${
|
|
2317
|
-
p:
|
|
2315
|
+
x("span", { style: w(`font-size:${V.value.legendFontSize}px`) }, k(t.name), 5),
|
|
2316
|
+
x("span", { style: w(`font-size:${V.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, k(z.value.includes(t.id) ? "-" : A(f)(V.value.formatter, t.absoluteValue, A(h)({
|
|
2317
|
+
p: V.value.valuePrefix,
|
|
2318
2318
|
v: t.absoluteValue,
|
|
2319
|
-
s:
|
|
2320
|
-
r:
|
|
2319
|
+
s: V.value.valueSuffix,
|
|
2320
|
+
r: V.value.dataLabelRoundingValue
|
|
2321
2321
|
}), {
|
|
2322
2322
|
datapoint: t,
|
|
2323
2323
|
seriesIndex: n
|
|
2324
2324
|
})), 5),
|
|
2325
2325
|
z.value.includes(t.id) ? (T(), b("span", {
|
|
2326
2326
|
key: 0,
|
|
2327
|
-
style: w(`font-size:${
|
|
2327
|
+
style: w(`font-size:${V.value.legendFontSize}px`)
|
|
2328
2328
|
}, " ( - % ) ", 4)) : yr.value ? (T(), b("span", {
|
|
2329
2329
|
key: 1,
|
|
2330
|
-
style: w(`font-size:${
|
|
2330
|
+
style: w(`font-size:${V.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2331
2331
|
}, " ( - % ) ", 4)) : (T(), b("span", {
|
|
2332
2332
|
key: 2,
|
|
2333
|
-
style: w(`font-size:${
|
|
2333
|
+
style: w(`font-size:${V.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2334
2334
|
}, " (" + k(A(h)({
|
|
2335
2335
|
v: t.value / Y.value.total * 100,
|
|
2336
2336
|
s: "%",
|
|
2337
|
-
r:
|
|
2337
|
+
r: V.value.dataLabelRoundingPercentage
|
|
2338
2338
|
})) + ") ", 5))
|
|
2339
2339
|
], 64))], 44, bn))), 256)) : y("", !0),
|
|
2340
2340
|
K.value === M.LINE ? (T(!0), b(_, { key: 2 }, D(Z.value.legend, (t, n) => (T(), b("div", {
|
|
@@ -2342,7 +2342,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2342
2342
|
onClick: (e) => {
|
|
2343
2343
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2344
2344
|
},
|
|
2345
|
-
style: w(`cursor: ${Z.value.legend.length > 1 &&
|
|
2345
|
+
style: w(`cursor: ${Z.value.legend.length > 1 && Bn.value ? "pointer" : "default"}; opacity:${z.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2346
2346
|
role: "button",
|
|
2347
2347
|
tabindex: "0",
|
|
2348
2348
|
onKeydown: (e) => {
|
|
@@ -2350,7 +2350,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2350
2350
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
|
-
}, [
|
|
2353
|
+
}, [V.value.useCustomLegend ? O(e.$slots, "legend", ke({
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
ref_for: !0
|
|
2356
2356
|
}, { legend: {
|
|
@@ -2360,20 +2360,20 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2360
2360
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2361
2361
|
}
|
|
2362
2362
|
} }), void 0, !0) : (T(), b(_, { key: 1 }, [De(A(Be), {
|
|
2363
|
-
name:
|
|
2363
|
+
name: V.value.legendIcon,
|
|
2364
2364
|
stroke: t.color,
|
|
2365
|
-
size:
|
|
2365
|
+
size: V.value.legendIconSize
|
|
2366
2366
|
}, null, 8, [
|
|
2367
2367
|
"name",
|
|
2368
2368
|
"stroke",
|
|
2369
2369
|
"size"
|
|
2370
|
-
]), x("span", { style: w(`font-size:${
|
|
2370
|
+
]), x("span", { style: w(`font-size:${V.value.legendFontSize}px`) }, k(t.name), 5)], 64))], 44, xn))), 256)) : y("", !0),
|
|
2371
2371
|
K.value === M.BAR ? (T(!0), b(_, { key: 3 }, D(Q.value.legend, (t, n) => (T(), b("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);
|
|
2375
2375
|
},
|
|
2376
|
-
style: w(`cursor: ${Q.value.legend.length > 1 &&
|
|
2376
|
+
style: w(`cursor: ${Q.value.legend.length > 1 && Bn.value ? "pointer" : "default"}; opacity:${z.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2377
2377
|
role: "button",
|
|
2378
2378
|
tabindex: "0",
|
|
2379
2379
|
onKeydown: (e) => {
|
|
@@ -2381,7 +2381,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2381
2381
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2382
2382
|
});
|
|
2383
2383
|
}
|
|
2384
|
-
}, [
|
|
2384
|
+
}, [V.value.useCustomLegend ? O(e.$slots, "legend", ke({
|
|
2385
2385
|
key: 0,
|
|
2386
2386
|
ref_for: !0
|
|
2387
2387
|
}, { legend: {
|
|
@@ -2391,14 +2391,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2391
2391
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2392
2392
|
}
|
|
2393
2393
|
} }), void 0, !0) : (T(), b(_, { key: 1 }, [De(A(Be), {
|
|
2394
|
-
name:
|
|
2394
|
+
name: V.value.legendIcon,
|
|
2395
2395
|
stroke: t.color,
|
|
2396
|
-
size:
|
|
2396
|
+
size: V.value.legendIconSize
|
|
2397
2397
|
}, null, 8, [
|
|
2398
2398
|
"name",
|
|
2399
2399
|
"stroke",
|
|
2400
2400
|
"size"
|
|
2401
|
-
]), x("span", { style: w(`font-size:${
|
|
2401
|
+
]), x("span", { style: w(`font-size:${V.value.legendFontSize}px`) }, k(t.name), 5)], 64))], 44, Sn))), 256)) : y("", !0)
|
|
2402
2402
|
], 4)) : y("", !0)], 8, ["to"])) : y("", !0),
|
|
2403
2403
|
e.$slots.source ? (T(), b("div", {
|
|
2404
2404
|
key: 8,
|
|
@@ -2407,28 +2407,28 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2407
2407
|
dir: "auto"
|
|
2408
2408
|
}, [O(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2409
2409
|
De(A(We), {
|
|
2410
|
-
teleportTo:
|
|
2410
|
+
teleportTo: V.value.tooltipTeleportTo,
|
|
2411
2411
|
show: cr.value.showTooltip && L.value,
|
|
2412
|
-
backgroundColor:
|
|
2413
|
-
color:
|
|
2414
|
-
borderRadius:
|
|
2415
|
-
borderColor:
|
|
2416
|
-
borderWidth:
|
|
2417
|
-
fontSize:
|
|
2418
|
-
backgroundOpacity:
|
|
2419
|
-
position:
|
|
2420
|
-
offsetX:
|
|
2421
|
-
offsetY:
|
|
2412
|
+
backgroundColor: V.value.backgroundColor,
|
|
2413
|
+
color: V.value.color,
|
|
2414
|
+
borderRadius: V.value.tooltipBorderRadius,
|
|
2415
|
+
borderColor: V.value.tooltipBorderColor,
|
|
2416
|
+
borderWidth: V.value.tooltipBorderWidth,
|
|
2417
|
+
fontSize: V.value.tooltipFontSize,
|
|
2418
|
+
backgroundOpacity: V.value.tooltipBackgroundOpacity,
|
|
2419
|
+
position: V.value.tooltipPosition,
|
|
2420
|
+
offsetX: V.value.tooltipOffsetX,
|
|
2421
|
+
offsetY: V.value.tooltipOffsetY,
|
|
2422
2422
|
parent: F.value,
|
|
2423
2423
|
content: On.value,
|
|
2424
2424
|
isFullscreen: Vr.value,
|
|
2425
|
-
isCustom: A(ae)(
|
|
2426
|
-
smooth:
|
|
2427
|
-
smoothForce:
|
|
2428
|
-
smoothSnapThreshold:
|
|
2429
|
-
backdropFilter:
|
|
2430
|
-
isA11yMode:
|
|
2431
|
-
a11yPosition:
|
|
2425
|
+
isCustom: A(ae)(V.value.tooltipCustomFormat),
|
|
2426
|
+
smooth: V.value.tooltipSmooth,
|
|
2427
|
+
smoothForce: V.value.tooltipSmoothForce,
|
|
2428
|
+
smoothSnapThreshold: V.value.tooltipSmoothSnapThreshold,
|
|
2429
|
+
backdropFilter: V.value.tooltipBackdropFilter,
|
|
2430
|
+
isA11yMode: Hn.value === "keyboard",
|
|
2431
|
+
a11yPosition: Vn.value
|
|
2432
2432
|
}, {
|
|
2433
2433
|
"tooltip-before": j(() => [O(e.$slots, "tooltip-before", C(S({ ...Dn.value })), void 0, !0)]),
|
|
2434
2434
|
tooltip: j(() => [O(e.$slots, "tooltip", C(S({ ...Dn.value })), void 0, !0)]),
|