vue-data-ui 3.25.13 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -53
- package/dist/{Arrow-BhZDUeMp.js → Arrow-Bt3aGRMb.js} +1 -1
- package/dist/{BaseDraggableDialog-Ck6R5Q0K.js → BaseDraggableDialog-C1Slb3Yh.js} +2 -2
- package/dist/{BaseIcon-Dlz7gfx0.js → BaseIcon-BV75ei8X.js} +1 -1
- package/dist/{BaseLegendToggle-DGG65LAR.js → BaseLegendToggle-DtS_Oj3B.js} +1 -1
- package/dist/{BaseZoomControls-BK0PxEa8.js → BaseZoomControls-DIhoeyZu.js} +2 -2
- package/dist/{ColorPicker-DMTwxvi_.js → ColorPicker--Y89hTnE.js} +2 -2
- package/dist/{DataTable-BD1eZ0zB.js → DataTable-DX5fToAo.js} +2 -2
- package/dist/{HillActions-CiP2m7Nz.js → HillActions-D6weVdns.js} +1 -1
- package/dist/{Legend-C0Ln0VNe.js → Legend-Dv90gh-6.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BjrMLISf.js → NonSvgPenAndPaper-D2BM5C1-.js} +3 -3
- package/dist/{PackageVersion-D5QkTJQU.js → PackageVersion-DhXk363L.js} +1 -1
- package/dist/{PenAndPaper-XdUD8uB3.js → PenAndPaper-DkQ4sEhs.js} +3 -3
- package/dist/{Shape-VCdxvFV9.js → Shape-B_kDj1gF.js} +1 -1
- package/dist/SlicerPreview-BgyIezm0.js +1730 -0
- package/dist/{SparkTooltip-B1gRxPfb.js → SparkTooltip-BNpyQ021.js} +1 -1
- package/dist/{Title-DeqmC-vN.js → Title-C2JKI5td.js} +1 -1
- package/dist/{Tooltip-DZ4a3XJQ.js → Tooltip-2NAb_Rrx.js} +1 -1
- package/dist/{UserOptions-wFD9vo9g.js → UserOptions-Dgn3StKw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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-DdqmzDdY.js → dom-to-png-DKdtTkNC.js} +1 -1
- package/dist/{exposedLib-BBtjpydc.js → exposedLib-DN6QRAx2.js} +1 -1
- package/dist/{img-W50sC9SC.js → img-CaIaBHA0.js} +1 -1
- package/dist/{labelUtils-Dvm-7rse.js → labelUtils-CD5XzcAo.js} +1 -1
- package/dist/{lib-DOpaUOQx.js → lib-CklJ7rIN.js} +29 -18
- package/dist/{package-Cmcke8zR.js → package-BVRea5S_.js} +1 -1
- package/dist/{pdf-zGbDDpCi.js → pdf-6hacmnKW.js} +1 -1
- package/dist/{render-common-CG1wuHZY.js → render-common-ChwuwzU3.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +110 -5
- package/dist/types/vue-ui-candlestick.d.ts +4 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +4 -0
- package/dist/types/vue-ui-quick-chart.d.ts +4 -0
- package/dist/types/vue-ui-sparkline.d.ts +5 -1
- package/dist/types/vue-ui-stackbar.d.ts +4 -0
- package/dist/types/vue-ui-stackline.d.ts +4 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +2 -0
- package/dist/types/vue-ui-xy.d.ts +2 -0
- package/dist/{useConfig-C2uy4ltq.js → useConfig-DObkR9Aa.js} +49 -4
- package/dist/{useNestedProp-Bux0f4iY.js → useNestedProp-Tc9i6ZcN.js} +1 -1
- package/dist/{useObjectBindings-CEuNiBIT.js → useObjectBindings-CPmyIJxB.js} +9 -9
- package/dist/{usePrinter-BBBooAGP.js → usePrinter-Dp3X1vqr.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/vue-data-ui-Dr0uoRD_.js +191 -0
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-Ckauu3d4.js → vue-ui-3d-bar-BvJwq13N.js} +7 -7
- package/dist/{vue-ui-accordion-yHZMJLaY.js → vue-ui-accordion-15kKhkup.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BczIt1-U.js → vue-ui-age-pyramid-CVzina7X.js} +7 -7
- package/dist/{vue-ui-annotator-BGB6K6u0.js → vue-ui-annotator-J4Wo2_DR.js} +7 -7
- package/dist/{vue-ui-bullet-BoTsLccZ.js → vue-ui-bullet-CuI5_uF1.js} +8 -8
- package/dist/{vue-ui-bump-B5ztSSQO.js → vue-ui-bump-GGNG4vwu.js} +7 -7
- package/dist/vue-ui-candlestick-Ca9dvzvk.js +2144 -0
- package/dist/{vue-ui-carousel-table-D-3KSWok.js → vue-ui-carousel-table-DOxh9sEm.js} +5 -5
- package/dist/{vue-ui-chestnut-W2l-W0_e.js → vue-ui-chestnut-DQhC_gB8.js} +6 -6
- package/dist/{vue-ui-chord-BFPQsMj8.js → vue-ui-chord-Blnvne2p.js} +9 -9
- package/dist/{vue-ui-circle-pack-BtPc1BR3.js → vue-ui-circle-pack-mNHA1U8B.js} +7 -7
- package/dist/{vue-ui-cursor-CpNOiwkt.js → vue-ui-cursor-D2hgivhn.js} +4 -4
- package/dist/{vue-ui-dag-i-zPwLcN.js → vue-ui-dag-DDSyO2ts.js} +8 -8
- package/dist/{vue-ui-dashboard-DtaW9a2P.js → vue-ui-dashboard-C9MnWAnE.js} +70 -70
- package/dist/{vue-ui-digits-BIlec9af.js → vue-ui-digits-h7H-yHd0.js} +4 -4
- package/dist/{vue-ui-donut-CJlBEyxu.js → vue-ui-donut-D-8OekQ5.js} +3 -3
- package/dist/vue-ui-donut-evolution-CJ6tIbgl.js +1869 -0
- package/dist/{vue-ui-donut-Bgf-n95J.js → vue-ui-donut-oY4iu5pY.js} +11 -11
- package/dist/{vue-ui-dumbbell-C112YLkC.js → vue-ui-dumbbell-52gWeLGK.js} +8 -8
- package/dist/{vue-ui-flow-j4bDg9Zd.js → vue-ui-flow-edMUCkcr.js} +8 -8
- package/dist/{vue-ui-funnel-CVHpfBCW.js → vue-ui-funnel-B08mSlHH.js} +7 -7
- package/dist/{vue-ui-galaxy-ChGpUWh8.js → vue-ui-galaxy-CV59UO9t.js} +10 -10
- package/dist/{vue-ui-gauge-Cp00vXfG.js → vue-ui-gauge-BnBzapom.js} +7 -7
- package/dist/{vue-ui-geo-B4hDk5NO.js → vue-ui-geo-BCmDw5me.js} +8 -8
- package/dist/{vue-ui-gizmo-D6nCCsS4.js → vue-ui-gizmo-BZBV8haQ.js} +4 -4
- package/dist/{vue-ui-heatmap-scVJc1cw.js → vue-ui-heatmap-CjiffI23.js} +8 -8
- package/dist/{vue-ui-hill-DnYUHGAK.js → vue-ui-hill-D5WV6zro.js} +7 -7
- package/dist/{vue-ui-history-plot-C5qAMaaW.js → vue-ui-history-plot-Bd06L1Od.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-nEG4uvpv.js → vue-ui-horizontal-bar-B5Yp6Uql.js} +11 -11
- package/dist/{vue-ui-kpi-DOxId6xg.js → vue-ui-kpi-CNreX8BM.js} +4 -4
- package/dist/{vue-ui-label-BDKY7BI7.js → vue-ui-label-BDP67zvQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BknVs9VJ.js → vue-ui-mini-loader-pzS7SsP4.js} +3 -3
- package/dist/{vue-ui-molecule-_x232mMu.js → vue-ui-molecule-DqeRhja8.js} +6 -6
- package/dist/{vue-ui-mood-radar-D-F4855V.js → vue-ui-mood-radar-Cgl_QD-j.js} +8 -8
- package/dist/{vue-ui-nested-donuts-0E5IllFW.js → vue-ui-nested-donuts-MDPBZLnW.js} +10 -10
- package/dist/{vue-ui-onion-Eip0S1H7.js → vue-ui-onion-kgZ3uV3c.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DO0sQdJw.js → vue-ui-parallel-coordinate-plot-CJbZCsPd.js} +10 -10
- package/dist/{vue-ui-quadrant-CA0ClWfL.js → vue-ui-quadrant-B9efnVWT.js} +10 -10
- package/dist/{vue-ui-quick-chart-D-VuAoll.js → vue-ui-quick-chart-hNOMlqTI.js} +1053 -681
- package/dist/{vue-ui-radar-BTD7Y0Ps.js → vue-ui-radar-DJO16PTU.js} +9 -9
- package/dist/{vue-ui-rating-C_Qj6gnP.js → vue-ui-rating-BYLWm5aG.js} +3 -3
- package/dist/{vue-ui-relation-circle-CcxLBVFV.js → vue-ui-relation-circle-DVF3RlHU.js} +7 -7
- package/dist/{vue-ui-ridgeline-BZrzbbhb.js → vue-ui-ridgeline-DvgIu54T.js} +10 -10
- package/dist/{vue-ui-rings-CO48GOP2.js → vue-ui-rings-DVU7F6bL.js} +11 -11
- package/dist/{vue-ui-scatter-DrxUgZbQ.js → vue-ui-scatter-BtlRfhTt.js} +10 -10
- package/dist/{vue-ui-skeleton-CeKjW4MX.js → vue-ui-skeleton-DcMhyC4L.js} +4 -4
- package/dist/{vue-ui-smiley-BvRwx69s.js → vue-ui-smiley-qHvZQJcB.js} +3 -3
- package/dist/{vue-ui-spark-trend-DnujGRyt.js → vue-ui-spark-trend-BuHZP190.js} +4 -4
- package/dist/{vue-ui-sparkbar-Cd_uhYGD.js → vue-ui-sparkbar-MH9VeqdO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-hT31YEtt.js → vue-ui-sparkgauge-Bg_IFD0m.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PKlTYhKA.js → vue-ui-sparkhistogram-DZu07vIL.js} +5 -5
- package/dist/vue-ui-sparkline-LwEiJPe6.js +2067 -0
- package/dist/{vue-ui-sparkstackbar-R0ij2vi1.js → vue-ui-sparkstackbar-hbIoybeq.js} +5 -5
- package/dist/vue-ui-stackbar-CaxNkWPz.js +2660 -0
- package/dist/vue-ui-stackline-BJqnZXeR.js +2829 -0
- package/dist/{vue-ui-strip-plot-DR3N56rS.js → vue-ui-strip-plot-BWK3JQr6.js} +8 -8
- package/dist/{vue-ui-table-Bg6BeLrf.js → vue-ui-table-CRWoH6dc.js} +6 -6
- package/dist/{vue-ui-table-heatmap-C1b1Pcp8.js → vue-ui-table-heatmap-Bu9RiTU0.js} +6 -6
- package/dist/{vue-ui-table-sparkline-CkVXyequ.js → vue-ui-table-sparkline-CTA_6-gu.js} +5 -5
- package/dist/{vue-ui-thermometer-CqkaMF7Z.js → vue-ui-thermometer-Y5CnROrM.js} +7 -7
- package/dist/{vue-ui-timer-CgJvNwBv.js → vue-ui-timer-BYEpxxDX.js} +6 -6
- package/dist/{vue-ui-tiremarks-B078YJ9M.js → vue-ui-tiremarks-DBndWNiA.js} +7 -7
- package/dist/{vue-ui-treemap-Cfjf8mDl.js → vue-ui-treemap-Cw8a0oFl.js} +10 -10
- package/dist/{vue-ui-waffle-BZIcPa0l.js → vue-ui-waffle-BvfD05mS.js} +11 -11
- package/dist/{vue-ui-wheel-CPTm8AHn.js → vue-ui-wheel-D6NsnLRc.js} +7 -7
- package/dist/{vue-ui-word-cloud-DnGblUwj.js → vue-ui-word-cloud-YrgMp1Fo.js} +8 -8
- package/dist/{vue-ui-world-KkcpeKqp.js → vue-ui-world-BMcqvuJH.js} +8 -8
- package/dist/{vue-ui-xy-ClCV7xA5.js → vue-ui-xy-B6wckF4S.js} +4 -4
- package/dist/vue-ui-xy-Bv7fhRbS.js +5769 -0
- package/dist/{vue-ui-xy-canvas-BlpCbXKR.js → vue-ui-xy-canvas-NzaEYHDR.js} +875 -560
- package/dist/{vue_ui_candlestick-J8jmJvxP.js → vue_ui_candlestick-BXSQY82k.js} +96 -9
- package/dist/{vue_ui_donut_evolution-D1yAAIHr.js → vue_ui_donut_evolution-C6951a2f.js} +35 -7
- package/dist/{vue_ui_quick_chart-mZBdml3Z.js → vue_ui_quick_chart-DByCqSYE.js} +45 -4
- package/dist/{vue_ui_sparkline-auZhap6Y.js → vue_ui_sparkline-b9pEUyGF.js} +33 -1
- package/dist/{vue_ui_stackbar-COOrQQdK.js → vue_ui_stackbar-DdjDL6aq.js} +88 -9
- package/dist/{vue_ui_stackline-DQqKPA9z.js → vue_ui_stackline-Bh0RuInt.js} +88 -9
- package/dist/{vue_ui_xy-BA3-_LCx.js → vue_ui_xy-CcJADijP.js} +78 -9
- package/dist/{vue_ui_xy_canvas-Cb6dg3eK.js → vue_ui_xy_canvas-DrNSzYWq.js} +88 -9
- package/package.json +1 -1
- package/dist/SlicerPreview-BJ4usfYd.js +0 -1708
- package/dist/vue-data-ui-BVzA0tEV.js +0 -280
- package/dist/vue-ui-candlestick-BJtdA4Yu.js +0 -1871
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +0 -1552
- package/dist/vue-ui-sparkline-BSu1uRvP.js +0 -1610
- package/dist/vue-ui-stackbar-BrzzkGFk.js +0 -2369
- package/dist/vue-ui-stackline-zEX3gR3y.js +0 -2483
- package/dist/vue-ui-xy-C6lVqZnx.js +0 -5367
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, Et as r, Ft as i, Gt as a, J as o, P as s, Rt as c, S as ee, Vt as l, X as te, _ as ne, at as u, b as d, et as re, f, ft as ie, h as ae, i as p, p as oe, t as se, tn as ce, w as le } from "./lib-
|
|
2
|
+
import { $ as t, $t as n, Et as r, Ft as i, Gt as a, J as o, P as s, Rt as c, S as ee, Vt as l, X as te, _ as ne, at as u, b as d, et as re, f, ft as ie, h as ae, i as p, p as oe, t as se, tn as ce, w as le } from "./lib-CklJ7rIN.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as pe } from "./useConfig-
|
|
6
|
-
import { t as me } from "./usePrinter-
|
|
5
|
+
import { t as pe } from "./useConfig-DObkR9Aa.js";
|
|
6
|
+
import { t as me } from "./usePrinter-Dp3X1vqr.js";
|
|
7
7
|
import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as _e } from "./useNestedProp-
|
|
8
|
+
import { t as _e } from "./useNestedProp-Tc9i6ZcN.js";
|
|
9
9
|
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as ye } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as xe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Ce } from "./img-
|
|
14
|
+
import { t as Ce } from "./img-CaIaBHA0.js";
|
|
15
15
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
-
import { t as De } from "./SlicerPreview-
|
|
18
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as De } from "./SlicerPreview-BgyIezm0.js";
|
|
18
|
+
import { t as Oe } from "./BaseLegendToggle-DtS_Oj3B.js";
|
|
19
19
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as je } from "./vue_ui_quick_chart-
|
|
21
|
+
import { t as je } from "./vue_ui_quick_chart-DByCqSYE.js";
|
|
22
22
|
import { Fragment as m, Teleport as Me, computed as h, createBlock as Ne, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Pe, createVNode as Fe, defineAsyncComponent as Ie, guardReactiveProps as y, mergeProps as Le, nextTick as Re, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as ze, onMounted as Be, openBlock as C, ref as w, renderList as T, renderSlot as E, shallowRef as Ve, toDisplayString as D, toRefs as He, unref as O, watch as Ue, watchEffect as We, withCtx as k } from "vue";
|
|
23
23
|
//#region src/chartDetector.js
|
|
24
24
|
var A = {
|
|
@@ -100,7 +100,7 @@ function M(e) {
|
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/components/vue-ui-quick-chart.vue
|
|
103
|
-
var N = /* @__PURE__ */ e({ default: () =>
|
|
103
|
+
var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
|
|
104
104
|
"xmlns",
|
|
105
105
|
"aria-describedby",
|
|
106
106
|
"viewBox"
|
|
@@ -389,7 +389,18 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
389
389
|
"font-size",
|
|
390
390
|
"fill",
|
|
391
391
|
"transform"
|
|
392
|
-
], xn =
|
|
392
|
+
], xn = [
|
|
393
|
+
"x",
|
|
394
|
+
"y",
|
|
395
|
+
"width",
|
|
396
|
+
"height",
|
|
397
|
+
"fill",
|
|
398
|
+
"fill-opacity",
|
|
399
|
+
"stroke",
|
|
400
|
+
"stroke-opacity",
|
|
401
|
+
"stroke-width",
|
|
402
|
+
"stroke-dasharray"
|
|
403
|
+
], Sn = {
|
|
393
404
|
key: 1,
|
|
394
405
|
style: {
|
|
395
406
|
position: "absolute",
|
|
@@ -399,13 +410,13 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
399
410
|
},
|
|
400
411
|
"data-dom-to-png-ignore": "",
|
|
401
412
|
"aria-hidden": "true"
|
|
402
|
-
},
|
|
413
|
+
}, Cn = {
|
|
403
414
|
key: 5,
|
|
404
415
|
class: "vue-data-ui-watermark"
|
|
405
|
-
},
|
|
416
|
+
}, wn = ["id"], Tn = ["onClick", "onKeydown"], En = ["onClick", "onKeydown"], Dn = ["onClick", "onKeydown"], On = {
|
|
406
417
|
key: 1,
|
|
407
418
|
class: "vue-ui-quick-chart-not-processable"
|
|
408
|
-
},
|
|
419
|
+
}, kn = /*#__PURE__*/ we({
|
|
409
420
|
__name: "vue-ui-quick-chart",
|
|
410
421
|
props: {
|
|
411
422
|
config: {
|
|
@@ -424,48 +435,56 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
424
435
|
default() {
|
|
425
436
|
return null;
|
|
426
437
|
}
|
|
438
|
+
},
|
|
439
|
+
zoomState: {
|
|
440
|
+
type: Object,
|
|
441
|
+
default: null
|
|
427
442
|
}
|
|
428
443
|
},
|
|
429
444
|
emits: [
|
|
430
445
|
"selectDatapoint",
|
|
431
446
|
"selectLegend",
|
|
447
|
+
"zoomStart",
|
|
448
|
+
"zoomEnd",
|
|
449
|
+
"zoomReset",
|
|
450
|
+
"update:zoomState",
|
|
432
451
|
"copyAlt"
|
|
433
452
|
],
|
|
434
453
|
setup(e, { expose: we, emit: Ge }) {
|
|
435
|
-
let qe = Ie(() => import("./BaseIcon-
|
|
436
|
-
function
|
|
437
|
-
|
|
454
|
+
let qe = Ie(() => import("./BaseIcon-BV75ei8X.js").then((e) => e.n)), Je = Ie(() => import("./PackageVersion-DhXk363L.js").then((e) => e.t)), Xe = Ie(() => import("./PenAndPaper-DkQ4sEhs.js").then((e) => e.t)), Ze = Ie(() => import("./Tooltip-2NAb_Rrx.js")), Qe = Ie(() => import("./UserOptions-Dgn3StKw.js").then((e) => e.n)), { vue_ui_quick_chart: $e } = pe(), { isThemeValid: et, warnInvalidTheme: tt } = ve(), M = e, N = w(null), kn = w(null), An = w(null), jn = w(null), P = w(te()), F = w(!1), Mn = w(null), Nn = w(""), I = w(null), Pn = w(null), Fn = w(null), L = w([]), In = w(0), Ln = w(0), Rn = w(!1), zn = w(null), Bn = w(null), Vn = w(null), Hn = w(null), Un = w(null), Wn = w(null), Gn = Ve(null), Kn = w(!1), qn = w(0), Jn = w(0), Yn = w(!1);
|
|
455
|
+
function Xn() {
|
|
456
|
+
Gn.value = N.value?.parentNode ?? null;
|
|
438
457
|
}
|
|
439
|
-
function
|
|
458
|
+
function Zn() {
|
|
440
459
|
return new Promise((e) => {
|
|
441
460
|
requestAnimationFrame(() => {
|
|
442
461
|
requestAnimationFrame(e);
|
|
443
462
|
});
|
|
444
463
|
});
|
|
445
464
|
}
|
|
446
|
-
async function
|
|
447
|
-
let e = ++
|
|
448
|
-
|
|
465
|
+
async function Qn() {
|
|
466
|
+
let e = ++Jn.value;
|
|
467
|
+
Kn.value = !1, await Re(), await Zn(), await Zn(), e === Jn.value && (qn.value += 1, Kn.value = !0);
|
|
449
468
|
}
|
|
450
|
-
function
|
|
451
|
-
|
|
452
|
-
|
|
469
|
+
function $n() {
|
|
470
|
+
Yn.value || (Yn.value = !0, Re(() => {
|
|
471
|
+
Yn.value = !1, Xn(), Qn();
|
|
453
472
|
}));
|
|
454
473
|
}
|
|
455
|
-
let
|
|
456
|
-
elementRef:
|
|
474
|
+
let er = xe({
|
|
475
|
+
elementRef: Gn,
|
|
457
476
|
minimumWidth: 2,
|
|
458
477
|
minimumHeight: 2,
|
|
459
478
|
stableFramesRequired: 2,
|
|
460
479
|
once: !1,
|
|
461
480
|
onSizeAccepted: () => {
|
|
462
|
-
|
|
481
|
+
Qn();
|
|
463
482
|
}
|
|
464
483
|
});
|
|
465
484
|
w("#FFFFFF");
|
|
466
|
-
let
|
|
485
|
+
let R = w(mr());
|
|
467
486
|
ue({
|
|
468
|
-
config: () =>
|
|
487
|
+
config: () => R.value,
|
|
469
488
|
dataset: () => M.dataset,
|
|
470
489
|
component: "VueUiQuickChart",
|
|
471
490
|
rules: [de.emptyArray, {
|
|
@@ -479,13 +498,13 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
479
498
|
]
|
|
480
499
|
}]
|
|
481
500
|
});
|
|
482
|
-
let { transitionEnabled:
|
|
483
|
-
config: () =>
|
|
501
|
+
let { transitionEnabled: z } = be({
|
|
502
|
+
config: () => R.value.transitions,
|
|
484
503
|
dataset: () => M.dataset
|
|
485
|
-
}),
|
|
504
|
+
}), tr = h(() => R.value.debug), nr = h(() => R.value.useCursorPointer), B = w(null), rr = w({
|
|
486
505
|
x: 0,
|
|
487
506
|
y: 0
|
|
488
|
-
}),
|
|
507
|
+
}), V = w("pointer"), ir = w(!1), ar = h(() => ce({
|
|
489
508
|
dafaultConfig: {
|
|
490
509
|
backgroundColor: "#99999930",
|
|
491
510
|
customPalette: ["#BABABA"],
|
|
@@ -505,11 +524,11 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
505
524
|
zoomStartIndex: null,
|
|
506
525
|
zoomEndIndex: null
|
|
507
526
|
},
|
|
508
|
-
userConfig:
|
|
509
|
-
})), { loading:
|
|
527
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
528
|
+
})), { loading: or, FINAL_DATASET: sr, manualLoading: cr } = he({
|
|
510
529
|
...He(M),
|
|
511
|
-
FINAL_CONFIG:
|
|
512
|
-
prepareConfig:
|
|
530
|
+
FINAL_CONFIG: R,
|
|
531
|
+
prepareConfig: mr,
|
|
513
532
|
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
514
533
|
1,
|
|
515
534
|
2,
|
|
@@ -523,14 +542,14 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
523
542
|
89
|
|
524
543
|
],
|
|
525
544
|
skeletonConfig: ce({
|
|
526
|
-
defaultConfig:
|
|
527
|
-
userConfig:
|
|
545
|
+
defaultConfig: R.value,
|
|
546
|
+
userConfig: ar.value
|
|
528
547
|
})
|
|
529
|
-
}), { svgRef:
|
|
530
|
-
function
|
|
531
|
-
|
|
548
|
+
}), { svgRef: H } = Ae({ config: { text: R.value.title } }), lr = h(() => R.value.showUserOptionsOnChartHover), ur = h(() => R.value.keepUserOptionsStateOnChartLeave), dr = w(!R.value.showUserOptionsOnChartHover), fr = w(!1);
|
|
549
|
+
function pr(e = !1) {
|
|
550
|
+
fr.value = e, lr.value && (dr.value = e);
|
|
532
551
|
}
|
|
533
|
-
function
|
|
552
|
+
function mr() {
|
|
534
553
|
let e = _e({
|
|
535
554
|
userConfig: M.config,
|
|
536
555
|
defaultConfig: $e
|
|
@@ -553,29 +572,27 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
553
572
|
} else t = e;
|
|
554
573
|
return t;
|
|
555
574
|
}
|
|
556
|
-
function
|
|
575
|
+
function hr(e) {
|
|
557
576
|
let t = re(e);
|
|
558
577
|
return t?.tooltipPosition && delete t.tooltipPosition, JSON.stringify(t);
|
|
559
578
|
}
|
|
560
|
-
let
|
|
579
|
+
let gr = hr(M.config);
|
|
561
580
|
Ue(() => M.config, (e, t) => {
|
|
562
|
-
let n =
|
|
563
|
-
|
|
564
|
-
let i =
|
|
581
|
+
let n = hr(e), r = n !== gr;
|
|
582
|
+
gr = n;
|
|
583
|
+
let i = mr();
|
|
565
584
|
if (!r) {
|
|
566
|
-
|
|
585
|
+
R.value.tooltipPosition = i.tooltipPosition, Dr.value.showTooltip = R.value.showTooltip;
|
|
567
586
|
return;
|
|
568
587
|
}
|
|
569
|
-
|
|
570
|
-
}, { deep: !0 }), Ue(() => M.dataset, (e) => {
|
|
571
|
-
W.value = _r.value, X.value.start = 0, X.value.end = W.value.maxSeriesLength, In.value += 1, Zn();
|
|
588
|
+
or.value || (R.value = i), K.value.width = R.value.width, K.value.height = R.value.height, dr.value = !R.value.showUserOptionsOnChartHover, kr(), Dr.value.showTooltip = R.value.showTooltip;
|
|
572
589
|
}, { deep: !0 }), Ue(() => M.dataset, (e) => {
|
|
573
|
-
Array.isArray(e) && e.length > 0 && (
|
|
590
|
+
Array.isArray(e) && e.length > 0 && (cr.value = !1);
|
|
574
591
|
}, { immediate: !0 });
|
|
575
|
-
let
|
|
592
|
+
let _r = h(() => le(R.value.customPalette)), U = Ge, vr = h(() => {
|
|
576
593
|
let e = Ke({
|
|
577
|
-
debug:
|
|
578
|
-
dataset: a(
|
|
594
|
+
debug: tr.value,
|
|
595
|
+
dataset: a(sr.value, [
|
|
579
596
|
"serie",
|
|
580
597
|
"series",
|
|
581
598
|
"data",
|
|
@@ -583,55 +600,55 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
583
600
|
"values",
|
|
584
601
|
"num"
|
|
585
602
|
]),
|
|
586
|
-
barLineSwitch:
|
|
603
|
+
barLineSwitch: R.value.chartIsBarUnderDatasetLength
|
|
587
604
|
});
|
|
588
|
-
return !e &&
|
|
589
|
-
}), W = w(
|
|
605
|
+
return !e && tr.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
606
|
+
}), W = w(vr.value), yr = h(() => !!W.value), G = h(() => W.value ? W.value.type : null), br = h(() => [A.BAR, A.LINE].includes(G.value)), xr = h(() => br.value && R.value.zoomXy && Number(W.value?.maxSeriesLength ?? 0) > 1);
|
|
590
607
|
Ue(() => G.value, (e) => {
|
|
591
608
|
e || u({
|
|
592
609
|
componentName: "VueUiQuickChart",
|
|
593
610
|
type: "dataset",
|
|
594
|
-
debug:
|
|
611
|
+
debug: tr.value
|
|
595
612
|
});
|
|
596
613
|
}, { immediate: !0 });
|
|
597
|
-
let { isPrinting:
|
|
614
|
+
let { isPrinting: Sr, isImaging: Cr, generatePdf: wr, generateImage: Tr } = me({
|
|
598
615
|
elementId: `${G.value}_${P.value}`,
|
|
599
|
-
fileName:
|
|
600
|
-
options:
|
|
601
|
-
}),
|
|
602
|
-
width:
|
|
603
|
-
height:
|
|
604
|
-
}),
|
|
605
|
-
Ue(
|
|
606
|
-
|
|
616
|
+
fileName: R.value.title || G.value,
|
|
617
|
+
options: R.value.userOptionsPrint
|
|
618
|
+
}), Er = h(() => R.value.showUserOptions && !R.value.title), K = w({
|
|
619
|
+
width: R.value.width,
|
|
620
|
+
height: R.value.height
|
|
621
|
+
}), Dr = w({ showTooltip: R.value.showTooltip });
|
|
622
|
+
Ue(R, () => {
|
|
623
|
+
Dr.value = { showTooltip: R.value.showTooltip };
|
|
607
624
|
}, { immediate: !0 });
|
|
608
|
-
let q = Ve(null),
|
|
625
|
+
let q = Ve(null), Or = Ve(null);
|
|
609
626
|
Be(() => {
|
|
610
|
-
|
|
627
|
+
Rn.value = !0, Xn(), er.start(), kr(), Qn();
|
|
611
628
|
});
|
|
612
|
-
function
|
|
613
|
-
if (c(M.dataset) || (
|
|
629
|
+
function kr() {
|
|
630
|
+
if (c(M.dataset) || (cr.value = R.value.loading), R.value.responsive) {
|
|
614
631
|
let e = Te(() => {
|
|
615
632
|
let { width: e, height: t } = Ee({
|
|
616
633
|
chart: N.value,
|
|
617
|
-
title:
|
|
618
|
-
legend:
|
|
619
|
-
slicer:
|
|
620
|
-
source:
|
|
621
|
-
noTitle:
|
|
634
|
+
title: R.value.title ? kn.value : null,
|
|
635
|
+
legend: R.value.showLegend ? An.value : null,
|
|
636
|
+
slicer: xr.value ? jn.value : null,
|
|
637
|
+
source: Pn.value,
|
|
638
|
+
noTitle: Fn.value
|
|
622
639
|
});
|
|
623
640
|
requestAnimationFrame(() => {
|
|
624
|
-
K.value.width = e, K.value.height = t,
|
|
641
|
+
K.value.width = e, K.value.height = t, $n();
|
|
625
642
|
});
|
|
626
643
|
});
|
|
627
|
-
q.value && (
|
|
644
|
+
q.value && (Or.value && q.value.unobserve(Or.value), q.value.disconnect()), q.value = new ResizeObserver(e), Or.value = N.value.parentNode, q.value.observe(Or.value);
|
|
628
645
|
}
|
|
629
|
-
|
|
646
|
+
fi(), $n();
|
|
630
647
|
}
|
|
631
648
|
ze(() => {
|
|
632
|
-
|
|
649
|
+
er.stop(), oi(), Ai(), q.value && (Or.value && q.value.unobserve(Or.value), q.value.disconnect(), q.value = null, Or.value = null);
|
|
633
650
|
});
|
|
634
|
-
let
|
|
651
|
+
let Ar = h(() => {
|
|
635
652
|
switch (G.value) {
|
|
636
653
|
case A.LINE: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
637
654
|
case A.BAR: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
@@ -639,13 +656,13 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
639
656
|
default: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
640
657
|
}
|
|
641
658
|
});
|
|
642
|
-
function
|
|
659
|
+
function jr(e) {
|
|
643
660
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
644
661
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
662
|
+
function Mr(e) {
|
|
663
|
+
return R.value.blurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${P.value})` : "";
|
|
647
664
|
}
|
|
648
|
-
function
|
|
665
|
+
function Nr() {
|
|
649
666
|
L.value.length ? L.value = [] : G.value === A.DONUT ? Y.value.legend.forEach((e) => {
|
|
650
667
|
L.value.push(e.id);
|
|
651
668
|
}) : G.value === A.LINE ? Z.value.legend.forEach((e) => {
|
|
@@ -654,17 +671,17 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
654
671
|
L.value.push(e.id);
|
|
655
672
|
}), G.value === A.DONUT ? U("selectLegend", Y.value.dataset) : G.value === A.LINE ? U("selectLegend", Z.value.dataset) : G.value === A.BAR && U("selectLegend", Q.value.dataset);
|
|
656
673
|
}
|
|
657
|
-
function
|
|
674
|
+
function Pr(e, t) {
|
|
658
675
|
L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < t && L.value.push(e);
|
|
659
676
|
}
|
|
660
|
-
let
|
|
661
|
-
function
|
|
662
|
-
|
|
663
|
-
let n = e.value, r =
|
|
677
|
+
let Fr = w(null), Ir = w(null), Lr = w(!1);
|
|
678
|
+
function Rr(e, t) {
|
|
679
|
+
Lr.value = !0;
|
|
680
|
+
let n = e.value, r = vr.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
|
|
664
681
|
if (L.value.includes(e.id)) {
|
|
665
682
|
L.value = L.value.filter((t) => t !== e.id);
|
|
666
683
|
function t() {
|
|
667
|
-
n > r ? (
|
|
684
|
+
n > r ? (Lr.value = !1, cancelAnimationFrame(Ir.value), W.value = {
|
|
668
685
|
...W.value,
|
|
669
686
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
670
687
|
...t,
|
|
@@ -678,12 +695,12 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
678
695
|
value: n,
|
|
679
696
|
VALUE: n
|
|
680
697
|
} : t)
|
|
681
|
-
},
|
|
698
|
+
}, Ir.value = requestAnimationFrame(t));
|
|
682
699
|
}
|
|
683
700
|
t();
|
|
684
701
|
} else if (t.length > 1) {
|
|
685
702
|
function t() {
|
|
686
|
-
n < r / 100 ? (
|
|
703
|
+
n < r / 100 ? (Lr.value = !1, cancelAnimationFrame(Fr.value), L.value.push(e.id), W.value = {
|
|
687
704
|
...W.value,
|
|
688
705
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
689
706
|
...t,
|
|
@@ -697,16 +714,16 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
697
714
|
value: n,
|
|
698
715
|
VALUE: n
|
|
699
716
|
} : t)
|
|
700
|
-
},
|
|
717
|
+
}, Fr.value = requestAnimationFrame(t));
|
|
701
718
|
}
|
|
702
719
|
t();
|
|
703
720
|
} else U("selectLegend", Y.value.dataset);
|
|
704
721
|
}
|
|
705
722
|
let J = w(null);
|
|
706
|
-
function
|
|
723
|
+
function zr(e) {
|
|
707
724
|
J.value = e;
|
|
708
725
|
}
|
|
709
|
-
let
|
|
726
|
+
let Br = h(() => R.value.donutThicknessRatio < .01 ? .01 : R.value.donutThicknessRatio > .4 ? .4 : R.value.donutThicknessRatio), Y = h(() => {
|
|
710
727
|
if (G.value !== A.DONUT) return null;
|
|
711
728
|
let e = W.value.dataset.map((e, t) => ({
|
|
712
729
|
...e,
|
|
@@ -715,71 +732,71 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
715
732
|
id: `donut_${t}`
|
|
716
733
|
})).map((e, t) => ({
|
|
717
734
|
...e,
|
|
718
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
735
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || l[t + R.value.paletteStartIndex] || l[(t + R.value.paletteStartIndex) % l.length],
|
|
719
736
|
immutableValue: e.value
|
|
720
737
|
}));
|
|
721
738
|
function n(e, n) {
|
|
722
739
|
return t({
|
|
723
|
-
v: isNaN(e.value /
|
|
740
|
+
v: isNaN(e.value / jr(n)) ? 0 : e.value / jr(n) * 100,
|
|
724
741
|
s: "%",
|
|
725
|
-
r:
|
|
742
|
+
r: R.value.dataLabelRoundingPercentage
|
|
726
743
|
});
|
|
727
744
|
}
|
|
728
745
|
function a(e) {
|
|
729
|
-
return e.proportion * 100 >
|
|
746
|
+
return e.proportion * 100 > R.value.donutHideLabelUnderPercentage;
|
|
730
747
|
}
|
|
731
748
|
function o(e, t) {
|
|
732
|
-
let n =
|
|
749
|
+
let n = vr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
733
750
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
734
751
|
}
|
|
735
752
|
function s({ datapoint: n, seriesIndex: i, triggerMode: a = "pointer" }) {
|
|
736
|
-
|
|
753
|
+
Mn.value = {
|
|
737
754
|
datapoint: n,
|
|
738
755
|
seriesIndex: i,
|
|
739
|
-
config:
|
|
756
|
+
config: R.value,
|
|
740
757
|
dataset: e
|
|
741
|
-
}, I.value = n.id,
|
|
742
|
-
let o =
|
|
743
|
-
if (
|
|
758
|
+
}, I.value = n.id, B.value = i, V.value = a;
|
|
759
|
+
let o = R.value.tooltipCustomFormat;
|
|
760
|
+
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
744
761
|
datapoint: n,
|
|
745
762
|
seriesIndex: i
|
|
746
763
|
}), r(o) && ie(() => o({
|
|
747
764
|
datapoint: n,
|
|
748
765
|
seriesIndex: i,
|
|
749
766
|
series: e,
|
|
750
|
-
config:
|
|
751
|
-
})))
|
|
767
|
+
config: R.value
|
|
768
|
+
}))) Nn.value = o({
|
|
752
769
|
datapoint: n,
|
|
753
770
|
seriesIndex: i,
|
|
754
771
|
series: e,
|
|
755
|
-
config:
|
|
772
|
+
config: R.value
|
|
756
773
|
});
|
|
757
774
|
else {
|
|
758
775
|
let e = "";
|
|
759
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
760
|
-
p:
|
|
776
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.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="${n.color}"/></svg>`, e += `<b>${p(R.value.formatter, n.value, t({
|
|
777
|
+
p: R.value.valuePrefix,
|
|
761
778
|
v: n.value,
|
|
762
|
-
s:
|
|
763
|
-
r:
|
|
779
|
+
s: R.value.valueSuffix,
|
|
780
|
+
r: R.value.dataLabelRoundingValue
|
|
764
781
|
}), {
|
|
765
782
|
datapoint: n,
|
|
766
783
|
seriesIndex: i
|
|
767
784
|
})}</b>`, e += `<span>(${t({
|
|
768
785
|
v: n.proportion * 100,
|
|
769
786
|
s: "%",
|
|
770
|
-
r:
|
|
771
|
-
})})</span></div>`,
|
|
787
|
+
r: R.value.dataLabelRoundingPercentage
|
|
788
|
+
})})</span></div>`, Nn.value = `<div>${e}</div>`;
|
|
772
789
|
}
|
|
773
790
|
F.value = !0;
|
|
774
791
|
}
|
|
775
792
|
function c({ datapoint: e, seriesIndex: t }) {
|
|
776
|
-
|
|
793
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
777
794
|
datapoint: e,
|
|
778
795
|
seriesIndex: t
|
|
779
|
-
}), F.value = !1, I.value = null, J.value = null,
|
|
796
|
+
}), F.value = !1, I.value = null, J.value = null, B.value = null, V.value = "pointer";
|
|
780
797
|
}
|
|
781
798
|
function te({ datapoint: e, seriesIndex: t }) {
|
|
782
|
-
|
|
799
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
783
800
|
datapoint: e,
|
|
784
801
|
seriesIndex: t
|
|
785
802
|
}), U("selectDatapoint", e);
|
|
@@ -791,9 +808,9 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
791
808
|
...e,
|
|
792
809
|
proportion: (e.value || 0) / u,
|
|
793
810
|
value: e.value || 0,
|
|
794
|
-
absoluteValue:
|
|
811
|
+
absoluteValue: vr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
795
812
|
shape: "circle"
|
|
796
|
-
})), re = K.value.width / 2, f = K.value.height / 2, ae = K.value.height *
|
|
813
|
+
})), re = K.value.width / 2, f = K.value.height / 2, ae = K.value.height * R.value.donutRadiusRatio;
|
|
797
814
|
return {
|
|
798
815
|
dataset: d.filter((e) => !L.value.includes(e.id)),
|
|
799
816
|
legend: d,
|
|
@@ -808,30 +825,204 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
808
825
|
cx: re,
|
|
809
826
|
cy: f,
|
|
810
827
|
radius: ae,
|
|
811
|
-
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, re, f, ae, ae, 1.99999, 2, 1, 360, 105.25, K.value.height *
|
|
828
|
+
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, re, f, ae, ae, 1.99999, 2, 1, 360, 105.25, K.value.height * Br.value)
|
|
812
829
|
};
|
|
813
830
|
}), X = w({
|
|
814
831
|
start: 0,
|
|
815
832
|
end: W.value.maxSeriesLength
|
|
816
|
-
})
|
|
817
|
-
|
|
818
|
-
|
|
833
|
+
}), Vr = w({ ...X.value }), Hr = w(null), Ur = w(!1), Wr = w(!1), Gr = w(!1), Kr = w(!1), qr = w(!1), Jr = w(null), Yr = w(null), Xr = w(null), Zr = w(!1), Qr = w({
|
|
834
|
+
time: 0,
|
|
835
|
+
x: 0,
|
|
836
|
+
y: 0,
|
|
837
|
+
pointerType: null
|
|
838
|
+
}), $r = {
|
|
839
|
+
show: !1,
|
|
840
|
+
selection: {
|
|
841
|
+
fill: "#2D353C",
|
|
842
|
+
stroke: "transparent",
|
|
843
|
+
fillOpacity: .1,
|
|
844
|
+
strokeOpacity: .5,
|
|
845
|
+
strokeWidth: 1,
|
|
846
|
+
strokeDasharray: 0
|
|
847
|
+
}
|
|
848
|
+
}, ei = h(() => {
|
|
849
|
+
let e = R.value.dragToZoom ?? {};
|
|
850
|
+
return {
|
|
851
|
+
...$r,
|
|
852
|
+
...e,
|
|
853
|
+
selection: {
|
|
854
|
+
...$r.selection,
|
|
855
|
+
...e.selection ?? {}
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
}), ti = h(() => br.value && ei.value.show && Ur.value && si() > 1 && !or.value), ni = null, ri = {};
|
|
859
|
+
function ii(e, t = X.value) {
|
|
860
|
+
if (!e || typeof e != "object") return null;
|
|
861
|
+
let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
|
|
862
|
+
if (!n && !r) return null;
|
|
863
|
+
let i = Number(n ? e.start : t.start), a = Number(r ? e.end : t.end);
|
|
864
|
+
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
865
|
+
start: i,
|
|
866
|
+
end: a
|
|
867
|
+
};
|
|
819
868
|
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
869
|
+
function ai(e) {
|
|
870
|
+
let t = ii(e);
|
|
871
|
+
t && U("update:zoomState", t);
|
|
872
|
+
}
|
|
873
|
+
function oi() {
|
|
874
|
+
ni &&= (cancelAnimationFrame(ni), null), ri = {};
|
|
875
|
+
}
|
|
876
|
+
function si() {
|
|
877
|
+
let e = Number(W.value?.maxSeriesLength);
|
|
878
|
+
return Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
879
|
+
}
|
|
880
|
+
function ci(e, t = X.value.start) {
|
|
881
|
+
let n = si();
|
|
882
|
+
if (n <= 0) return 0;
|
|
883
|
+
let r = Math.max(0, Math.min(Number(t) || 0, n - 1)), i = Number(e);
|
|
884
|
+
return Number.isFinite(i) ? i > n ? n : i <= r ? Math.min(r + 1, n) : Math.max(0, i) : Math.min(r + 1, n);
|
|
828
885
|
}
|
|
829
|
-
function
|
|
830
|
-
let
|
|
831
|
-
|
|
886
|
+
function li() {
|
|
887
|
+
let e = si();
|
|
888
|
+
if (e <= 0) {
|
|
889
|
+
X.value = {
|
|
890
|
+
start: 0,
|
|
891
|
+
end: 0
|
|
892
|
+
}, Vr.value = { ...X.value }, Hr.value && Hr.value.setRangeValues(0, 0);
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
let t = Number(X.value.start), n = Number(X.value.end);
|
|
896
|
+
Number.isFinite(t) || (t = 0), Number.isFinite(n) || (n = e), t = Math.max(0, Math.min(t, e - 1)), n = Math.max(t + 1, Math.min(n, e)), X.value = {
|
|
897
|
+
start: t,
|
|
898
|
+
end: n
|
|
899
|
+
}, Vr.value = {
|
|
900
|
+
start: t,
|
|
901
|
+
end: n
|
|
902
|
+
}, Hr.value && Hr.value.setRangeValues(t, n);
|
|
903
|
+
}
|
|
904
|
+
function ui(e) {
|
|
905
|
+
if (!br.value) return null;
|
|
906
|
+
let t = ii(e);
|
|
907
|
+
return t ? ((t.start !== Number(X.value.start) || t.end !== Number(X.value.end)) && (oi(), X.value = {
|
|
908
|
+
start: t.start,
|
|
909
|
+
end: t.end
|
|
910
|
+
}, Vr.value = { ...X.value }, li(), $n()), {
|
|
911
|
+
start: Number(X.value.start),
|
|
912
|
+
end: Number(X.value.end)
|
|
913
|
+
}) : null;
|
|
914
|
+
}
|
|
915
|
+
function di(e) {
|
|
916
|
+
let t = ui(e);
|
|
917
|
+
return t ? (ai(t), t) : null;
|
|
918
|
+
}
|
|
919
|
+
async function fi({ applyControlledZoom: e = !0 } = {}) {
|
|
920
|
+
if (!Wr.value) {
|
|
921
|
+
if (!br.value) {
|
|
922
|
+
Ur.value = !1;
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
Wr.value = !0;
|
|
926
|
+
try {
|
|
927
|
+
await Re(), await Re();
|
|
928
|
+
let { zoomStartIndex: t, zoomEndIndex: n } = R.value, r = si();
|
|
929
|
+
if (r <= 0) {
|
|
930
|
+
X.value = {
|
|
931
|
+
start: 0,
|
|
932
|
+
end: 0
|
|
933
|
+
}, Vr.value = { ...X.value }, Ur.value = !1;
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
let i = t == null ? 0 : Number(t), a = n == null ? r : ci(Number(n) + 1, i);
|
|
937
|
+
if (e && ii(M.zoomState)) {
|
|
938
|
+
let e = ii(M.zoomState);
|
|
939
|
+
i = e.start, a = e.end;
|
|
940
|
+
}
|
|
941
|
+
Gr.value = !0, X.value = {
|
|
942
|
+
start: i,
|
|
943
|
+
end: a
|
|
944
|
+
}, Vr.value = {
|
|
945
|
+
start: i,
|
|
946
|
+
end: a
|
|
947
|
+
}, li(), Ur.value = !0, await Re(), Hr.value && Hr.value.setRangeValues(X.value.start, X.value.end);
|
|
948
|
+
} finally {
|
|
949
|
+
queueMicrotask(() => {
|
|
950
|
+
Gr.value = !1;
|
|
951
|
+
}), Wr.value = !1, $n();
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
async function pi({ applyControlledZoom: e = !1, publish: t = !1 } = {}) {
|
|
956
|
+
oi(), await fi({ applyControlledZoom: e }), t && (ai({
|
|
957
|
+
start: Number(X.value.start),
|
|
958
|
+
end: Number(X.value.end)
|
|
959
|
+
}), U("zoomReset"));
|
|
832
960
|
}
|
|
833
|
-
|
|
834
|
-
|
|
961
|
+
function mi(e) {
|
|
962
|
+
ri = {
|
|
963
|
+
...ri,
|
|
964
|
+
...e
|
|
965
|
+
}, ni && cancelAnimationFrame(ni), ni = requestAnimationFrame(() => {
|
|
966
|
+
let e = {
|
|
967
|
+
...X.value,
|
|
968
|
+
...ri
|
|
969
|
+
};
|
|
970
|
+
ri = {}, ni = null, X.value = e, Vr.value = { ...e }, li(), ai({
|
|
971
|
+
start: Number(X.value.start),
|
|
972
|
+
end: Number(X.value.end)
|
|
973
|
+
}), $n();
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
function hi(e) {
|
|
977
|
+
if (Wr.value || Gr.value) return;
|
|
978
|
+
let t = Number(e);
|
|
979
|
+
Number.isFinite(t) && (U("zoomStart", {
|
|
980
|
+
index: t,
|
|
981
|
+
isZoom: t !== 0
|
|
982
|
+
}), (t !== X.value.start || ri.end !== void 0) && mi({ start: t }));
|
|
983
|
+
}
|
|
984
|
+
function gi(e) {
|
|
985
|
+
if (Wr.value || Gr.value) return;
|
|
986
|
+
let t = ri.start === void 0 ? X.value.start : ri.start, n = ci(Number(e), t);
|
|
987
|
+
U("zoomEnd", {
|
|
988
|
+
index: n,
|
|
989
|
+
isZoom: n !== si()
|
|
990
|
+
}), (n !== X.value.end || ri.start !== void 0) && mi({ end: n });
|
|
991
|
+
}
|
|
992
|
+
Ue([
|
|
993
|
+
() => M.zoomState,
|
|
994
|
+
br,
|
|
995
|
+
() => Number(W.value?.maxSeriesLength ?? 0)
|
|
996
|
+
], async ([e, t, n]) => {
|
|
997
|
+
if (!(!t || n <= 0 || !e)) {
|
|
998
|
+
if (!Ur.value) {
|
|
999
|
+
await fi({ applyControlledZoom: !0 });
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
ui(e);
|
|
1003
|
+
}
|
|
1004
|
+
}, {
|
|
1005
|
+
deep: !0,
|
|
1006
|
+
immediate: !0
|
|
1007
|
+
}), Ue(vr, async (e) => {
|
|
1008
|
+
if (!e) {
|
|
1009
|
+
Ur.value = !1;
|
|
1010
|
+
return;
|
|
1011
|
+
}
|
|
1012
|
+
let t = W.value?.type, n = Number(W.value?.maxSeriesLength ?? 0);
|
|
1013
|
+
W.value = e;
|
|
1014
|
+
let r = e.type, i = Number(e.maxSeriesLength ?? 0);
|
|
1015
|
+
if (![A.BAR, A.LINE].includes(r)) {
|
|
1016
|
+
oi(), Ur.value = !1, $n();
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
t !== r || n !== i ? (oi(), Ur.value = !1, X.value = {
|
|
1020
|
+
start: 0,
|
|
1021
|
+
end: i
|
|
1022
|
+
}, Vr.value = { ...X.value }, Ln.value += 1, await Re(), await fi({ applyControlledZoom: !0 })) : M.zoomState && ui(M.zoomState), $n();
|
|
1023
|
+
}, { deep: !0 });
|
|
1024
|
+
let _i = h(() => {
|
|
1025
|
+
if (!R.value.zoomMinimap.show || G.value === A.DONUT) return [];
|
|
835
1026
|
let e = [];
|
|
836
1027
|
j(W.value.dataset) && (e = W.value.dataset), Ye(W.value.dataset) && (e = W.value.dataset.map((e, t) => ({
|
|
837
1028
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
@@ -843,54 +1034,54 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
843
1034
|
let r = Math.min(...n);
|
|
844
1035
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
845
1036
|
});
|
|
846
|
-
function
|
|
1037
|
+
function vi() {
|
|
847
1038
|
let e = 0;
|
|
848
|
-
return
|
|
1039
|
+
return Hn.value && (e = Array.from(Hn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
849
1040
|
let n = t.getComputedTextLength();
|
|
850
1041
|
return n > e ? n : e;
|
|
851
1042
|
}, 0)), e + 4;
|
|
852
1043
|
}
|
|
853
|
-
let
|
|
854
|
-
|
|
1044
|
+
let yi = w(0), bi = Te((e) => {
|
|
1045
|
+
yi.value = e;
|
|
855
1046
|
}, 100);
|
|
856
1047
|
We((e) => {
|
|
857
|
-
let t =
|
|
1048
|
+
let t = Vn.value;
|
|
858
1049
|
if (!t) return;
|
|
859
1050
|
let n = new ResizeObserver((e) => {
|
|
860
|
-
|
|
1051
|
+
bi(e[0].contentRect.height);
|
|
861
1052
|
});
|
|
862
1053
|
n.observe(t), e(() => n.disconnect());
|
|
863
1054
|
}), ze(() => {
|
|
864
|
-
|
|
1055
|
+
yi.value = 0;
|
|
865
1056
|
});
|
|
866
|
-
let
|
|
1057
|
+
let xi = h(() => {
|
|
867
1058
|
let e = 0;
|
|
868
|
-
return
|
|
1059
|
+
return Vn.value && (e = yi.value), 0 + e;
|
|
869
1060
|
}), Z = h(() => {
|
|
870
1061
|
if (G.value !== A.LINE) return null;
|
|
871
|
-
|
|
1062
|
+
qn.value;
|
|
872
1063
|
let e = {
|
|
873
1064
|
height: K.value.height,
|
|
874
1065
|
width: K.value.width
|
|
875
|
-
}, n =
|
|
876
|
-
if (
|
|
877
|
-
let e =
|
|
1066
|
+
}, n = vi();
|
|
1067
|
+
if (Vn.value) {
|
|
1068
|
+
let e = Vn.value.getBBox().x;
|
|
878
1069
|
e < 0 && (n += Math.abs(e));
|
|
879
1070
|
}
|
|
880
1071
|
let i = {
|
|
881
|
-
left: n +
|
|
882
|
-
top:
|
|
883
|
-
right: e.width -
|
|
884
|
-
bottom: e.height -
|
|
885
|
-
width: Math.max(10, e.width -
|
|
886
|
-
height: Math.max(10, e.height -
|
|
1072
|
+
left: n + R.value.xyPaddingLeft,
|
|
1073
|
+
top: R.value.xyPaddingTop,
|
|
1074
|
+
right: e.width - R.value.xyPaddingRight,
|
|
1075
|
+
bottom: e.height - R.value.xyPaddingBottom - xi.value,
|
|
1076
|
+
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - n),
|
|
1077
|
+
height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
|
|
887
1078
|
}, a = [];
|
|
888
1079
|
j(W.value.dataset) && (a = [{
|
|
889
1080
|
values: W.value.dataset.slice(X.value.start, X.value.end),
|
|
890
1081
|
absoluteValues: W.value.dataset,
|
|
891
1082
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
892
|
-
name:
|
|
893
|
-
color:
|
|
1083
|
+
name: R.value.title,
|
|
1084
|
+
color: _r.value[R.value.paletteStartIndex] || l[R.value.paletteStartIndex],
|
|
894
1085
|
id: "line_0"
|
|
895
1086
|
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
896
1087
|
...e,
|
|
@@ -899,7 +1090,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
899
1090
|
id: `line_${t}`
|
|
900
1091
|
})).map((e, t) => ({
|
|
901
1092
|
...e,
|
|
902
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
1093
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || l[t + R.value.paletteStartIndex] || l[(t + R.value.paletteStartIndex) % l.length],
|
|
903
1094
|
values: e.values.slice(X.value.start, X.value.end),
|
|
904
1095
|
absoluteValues: e.values,
|
|
905
1096
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -908,7 +1099,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
908
1099
|
max: Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
909
1100
|
min: Math.min(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
910
1101
|
maxSeries: Math.max(...a.map((e) => e.values.length))
|
|
911
|
-
}, s = o.max === o.min ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0),
|
|
1102
|
+
}, s = o.max === o.min ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), R.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max < 0 ? 0 : o.max, R.value.xyScaleSegments), c = o.min < 0 ? Math.abs(o.min) : 0, te = o.max < 0 ? i.top : i.bottom - c / (s.max + c) * i.height, u = i.width / o.maxSeries, d = s.ticks.map((e) => ({
|
|
912
1103
|
y: i.bottom - i.height * ((e + c) / (s.max + c)),
|
|
913
1104
|
x: i.left - 8,
|
|
914
1105
|
value: e
|
|
@@ -937,41 +1128,42 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
937
1128
|
})).filter((e) => !L.value.includes(e.id));
|
|
938
1129
|
}
|
|
939
1130
|
function ae(e, n = "pointer") {
|
|
940
|
-
|
|
1131
|
+
if (Kr.value && n === "pointer") return;
|
|
1132
|
+
I.value = e, J.value = e, B.value = e, V.value = n;
|
|
941
1133
|
let i = f(e);
|
|
942
|
-
|
|
1134
|
+
Mn.value = {
|
|
943
1135
|
datapoint: i,
|
|
944
1136
|
seriesIndex: e,
|
|
945
|
-
config:
|
|
1137
|
+
config: R.value,
|
|
946
1138
|
dataset: a
|
|
947
1139
|
};
|
|
948
|
-
let o =
|
|
949
|
-
if (
|
|
1140
|
+
let o = R.value.tooltipCustomFormat;
|
|
1141
|
+
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
950
1142
|
datapoint: i,
|
|
951
1143
|
seriesIndex: e + X.value.start
|
|
952
1144
|
}), r(o) && ie(() => o({
|
|
953
1145
|
datapoint: i,
|
|
954
1146
|
seriesIndex: e,
|
|
955
1147
|
series: a,
|
|
956
|
-
config:
|
|
957
|
-
})))
|
|
1148
|
+
config: R.value
|
|
1149
|
+
}))) Nn.value = o({
|
|
958
1150
|
datapoint: i,
|
|
959
1151
|
seriesIndex: e,
|
|
960
1152
|
series: a,
|
|
961
|
-
config:
|
|
1153
|
+
config: R.value
|
|
962
1154
|
});
|
|
963
1155
|
else {
|
|
964
1156
|
let e = "";
|
|
965
|
-
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${
|
|
1157
|
+
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
|
|
966
1158
|
e += `
|
|
967
1159
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
968
1160
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>
|
|
969
1161
|
<span>${n.name}:</span>
|
|
970
|
-
<b>${p(
|
|
971
|
-
p:
|
|
1162
|
+
<b>${p(R.value.formatter, n.value, t({
|
|
1163
|
+
p: R.value.valuePrefix,
|
|
972
1164
|
v: n.value,
|
|
973
|
-
s:
|
|
974
|
-
r:
|
|
1165
|
+
s: R.value.valueSuffix,
|
|
1166
|
+
r: R.value.dataLabelRoundingValue
|
|
975
1167
|
}), {
|
|
976
1168
|
datapoint: n,
|
|
977
1169
|
seriesIndex: r
|
|
@@ -979,20 +1171,20 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
979
1171
|
</b>
|
|
980
1172
|
</div>
|
|
981
1173
|
`;
|
|
982
|
-
}),
|
|
1174
|
+
}), Nn.value = e;
|
|
983
1175
|
}
|
|
984
1176
|
F.value = !0;
|
|
985
1177
|
}
|
|
986
1178
|
function oe(e) {
|
|
987
1179
|
let t = f(e);
|
|
988
|
-
|
|
1180
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
989
1181
|
datapoint: t,
|
|
990
1182
|
seriesIndex: e + X.value.start
|
|
991
|
-
}), I.value = null, J.value = null, F.value = !1,
|
|
1183
|
+
}), I.value = null, J.value = null, F.value = !1, B.value = null, V.value = "pointer";
|
|
992
1184
|
}
|
|
993
1185
|
function se(e) {
|
|
994
1186
|
let t = f(e);
|
|
995
|
-
|
|
1187
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
996
1188
|
datapoint: t,
|
|
997
1189
|
seriesIndex: e + X.value.start
|
|
998
1190
|
}), U("selectDatapoint", t);
|
|
@@ -1011,29 +1203,29 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1011
1203
|
};
|
|
1012
1204
|
}), Q = h(() => {
|
|
1013
1205
|
if (G.value !== A.BAR) return null;
|
|
1014
|
-
|
|
1206
|
+
qn.value;
|
|
1015
1207
|
let e = {
|
|
1016
1208
|
height: K.value.height,
|
|
1017
1209
|
width: K.value.width
|
|
1018
|
-
}, n =
|
|
1019
|
-
if (
|
|
1020
|
-
let e =
|
|
1210
|
+
}, n = vi();
|
|
1211
|
+
if (Vn.value) {
|
|
1212
|
+
let e = Vn.value.getBBox().x;
|
|
1021
1213
|
e < 0 && (n += Math.abs(e));
|
|
1022
1214
|
}
|
|
1023
1215
|
let i = {
|
|
1024
|
-
left: n +
|
|
1025
|
-
top:
|
|
1026
|
-
right: e.width -
|
|
1027
|
-
bottom: e.height -
|
|
1028
|
-
width: Math.max(10, e.width -
|
|
1029
|
-
height: Math.max(10, e.height -
|
|
1216
|
+
left: n + R.value.xyPaddingLeft,
|
|
1217
|
+
top: R.value.xyPaddingTop,
|
|
1218
|
+
right: e.width - R.value.xyPaddingRight,
|
|
1219
|
+
bottom: e.height - R.value.xyPaddingBottom - xi.value,
|
|
1220
|
+
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - n),
|
|
1221
|
+
height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
|
|
1030
1222
|
}, a = [];
|
|
1031
1223
|
j(W.value.dataset) && (a = [{
|
|
1032
1224
|
values: W.value.dataset.slice(X.value.start, X.value.end),
|
|
1033
1225
|
absoluteValues: W.value.dataset,
|
|
1034
1226
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
1035
|
-
name:
|
|
1036
|
-
color:
|
|
1227
|
+
name: R.value.title,
|
|
1228
|
+
color: _r.value[R.value.paletteStartIndex] || l[R.value.paletteStartIndex],
|
|
1037
1229
|
id: "bar_0"
|
|
1038
1230
|
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
1039
1231
|
...e,
|
|
@@ -1042,7 +1234,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1042
1234
|
id: `bar_${t}`
|
|
1043
1235
|
})).map((e, t) => ({
|
|
1044
1236
|
...e,
|
|
1045
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
1237
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || l[t + R.value.paletteStartIndex] || l[(t + R.value.paletteStartIndex) % l.length],
|
|
1046
1238
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1047
1239
|
absoluteValues: e.values,
|
|
1048
1240
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1051,7 +1243,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1051
1243
|
max: Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1052
1244
|
min: Math.min(...a.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1053
1245
|
maxSeries: Math.max(...a.filter((e) => !L.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1054
|
-
}, s = o.min === o.max ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0),
|
|
1246
|
+
}, s = o.min === o.max ? ne(Math.min(o.min, 0), o.min === 0 ? 1 : Math.max(o.min, 0), R.value.xyScaleSegments) : ne(o.min < 0 ? o.min : 0, o.max, R.value.xyScaleSegments), c = s.min < 0 ? Math.abs(s.min) : 0, te = i.bottom - c / (s.max + c) * i.height, u = i.width / o.maxSeries, d = s.ticks.map((e) => ({
|
|
1055
1247
|
y: i.bottom - i.height * ((e + c) / (s.max + c)),
|
|
1056
1248
|
x: i.left - 8,
|
|
1057
1249
|
value: e
|
|
@@ -1059,9 +1251,9 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1059
1251
|
...e,
|
|
1060
1252
|
shape: "square",
|
|
1061
1253
|
coordinates: e.values.map((e, n) => {
|
|
1062
|
-
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / Math.abs(o.min) * (i.height - te), ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length -
|
|
1254
|
+
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / Math.abs(o.min) * (i.height - te), ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / a.filter((e) => !L.value.includes(e.id)).length;
|
|
1063
1255
|
return {
|
|
1064
|
-
x: i.left + u * n + l * t +
|
|
1256
|
+
x: i.left + u * n + l * t + R.value.barGap / 2,
|
|
1065
1257
|
y: e > 0 ? i.bottom - r : te,
|
|
1066
1258
|
height: e > 0 ? r - ee : s,
|
|
1067
1259
|
value: e,
|
|
@@ -1071,9 +1263,9 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1071
1263
|
})), f = a.filter((e) => !L.value.includes(e.id)).map((e, t) => ({
|
|
1072
1264
|
...e,
|
|
1073
1265
|
coordinates: e.values.map((e, n) => {
|
|
1074
|
-
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / (o.max + c) * i.height, ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length -
|
|
1266
|
+
let r = (e + c) / (o.max + c) * i.height, s = Math.abs(e) / (o.max + c) * i.height, ee = c / (o.max + c) * i.height, l = u / a.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / a.filter((e) => !L.value.includes(e.id)).length;
|
|
1075
1267
|
return {
|
|
1076
|
-
x: i.left + u * n + l * t +
|
|
1268
|
+
x: i.left + u * n + l * t + R.value.barGap / 2,
|
|
1077
1269
|
y: e > 0 ? i.bottom - r : te,
|
|
1078
1270
|
height: e > 0 ? r - ee : s,
|
|
1079
1271
|
value: e,
|
|
@@ -1089,41 +1281,42 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1089
1281
|
})).filter((e) => !L.value.includes(e.id));
|
|
1090
1282
|
}
|
|
1091
1283
|
function oe(e, n = "pointer") {
|
|
1092
|
-
|
|
1284
|
+
if (Kr.value && n === "pointer") return;
|
|
1285
|
+
I.value = e, J.value = e, B.value = e, V.value = n;
|
|
1093
1286
|
let i = ae(e);
|
|
1094
|
-
|
|
1287
|
+
Mn.value = {
|
|
1095
1288
|
datapoint: i,
|
|
1096
1289
|
seriesIndex: e,
|
|
1097
|
-
config:
|
|
1290
|
+
config: R.value,
|
|
1098
1291
|
dataset: a
|
|
1099
1292
|
};
|
|
1100
|
-
let o =
|
|
1101
|
-
if (
|
|
1293
|
+
let o = R.value.tooltipCustomFormat;
|
|
1294
|
+
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
1102
1295
|
datapoint: i,
|
|
1103
1296
|
seriesIndex: e + X.value.start
|
|
1104
1297
|
}), r(o) && ie(() => o({
|
|
1105
1298
|
datapoint: i,
|
|
1106
1299
|
seriesIndex: e,
|
|
1107
1300
|
series: a,
|
|
1108
|
-
config:
|
|
1109
|
-
})))
|
|
1301
|
+
config: R.value
|
|
1302
|
+
}))) Nn.value = o({
|
|
1110
1303
|
point: i,
|
|
1111
1304
|
seriesIndex: e,
|
|
1112
1305
|
series: a,
|
|
1113
|
-
config:
|
|
1306
|
+
config: R.value
|
|
1114
1307
|
});
|
|
1115
1308
|
else {
|
|
1116
1309
|
let e = "";
|
|
1117
|
-
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${
|
|
1310
|
+
$.value[i[0].absoluteIndex] && (e += `<div style="border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`), i.forEach((n, r) => {
|
|
1118
1311
|
e += `
|
|
1119
1312
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
1120
1313
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${n.color}"/></svg>
|
|
1121
1314
|
<span>${n.name}:</span>
|
|
1122
|
-
<b>${p(
|
|
1123
|
-
p:
|
|
1315
|
+
<b>${p(R.value.formatter, n.value, t({
|
|
1316
|
+
p: R.value.valuePrefix,
|
|
1124
1317
|
v: n.value,
|
|
1125
|
-
s:
|
|
1126
|
-
r:
|
|
1318
|
+
s: R.value.valueSuffix,
|
|
1319
|
+
r: R.value.dataLabelRoundingValue
|
|
1127
1320
|
}), {
|
|
1128
1321
|
datapoint: n,
|
|
1129
1322
|
seriesIndex: r
|
|
@@ -1131,20 +1324,20 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1131
1324
|
</b>
|
|
1132
1325
|
</div>
|
|
1133
1326
|
`;
|
|
1134
|
-
}),
|
|
1327
|
+
}), Nn.value = e;
|
|
1135
1328
|
}
|
|
1136
1329
|
F.value = !0;
|
|
1137
1330
|
}
|
|
1138
1331
|
function se(e) {
|
|
1139
1332
|
let t = ae(e);
|
|
1140
|
-
|
|
1333
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
1141
1334
|
datapoint: t,
|
|
1142
1335
|
seriesIndex: e + X.value.start
|
|
1143
|
-
}), F.value = !1, I.value = null, J.value = null,
|
|
1336
|
+
}), F.value = !1, I.value = null, J.value = null, B.value = null, V.value = "pointer";
|
|
1144
1337
|
}
|
|
1145
1338
|
function ce(e) {
|
|
1146
1339
|
let t = ae(e);
|
|
1147
|
-
|
|
1340
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
1148
1341
|
datapoint: t,
|
|
1149
1342
|
seriesIndex: e + X.value.start
|
|
1150
1343
|
}), U("selectDatapoint", t);
|
|
@@ -1162,13 +1355,147 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1162
1355
|
killTooltip: se,
|
|
1163
1356
|
selectDatapoint: ce
|
|
1164
1357
|
};
|
|
1165
|
-
}),
|
|
1166
|
-
let e =
|
|
1167
|
-
return !e ||
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1358
|
+
}), Si = h(() => G.value === A.LINE ? Z.value?.drawingArea ?? null : G.value === A.BAR ? Q.value?.drawingArea ?? null : null), Ci = h(() => G.value === A.LINE ? Number(Z.value?.slotSize ?? 0) : G.value === A.BAR ? Number(Q.value?.slotSize ?? 0) : 0), wi = h(() => G.value === A.LINE ? Number(Z.value?.extremes?.maxSeries ?? 0) : G.value === A.BAR ? Number(Q.value?.extremes?.maxSeries ?? 0) : 0), Ti = h(() => {
|
|
1359
|
+
let e = Si.value;
|
|
1360
|
+
return !e || !Kr.value || Jr.value == null || Yr.value == null ? null : {
|
|
1361
|
+
x: Math.min(Jr.value, Yr.value),
|
|
1362
|
+
y: e.top,
|
|
1363
|
+
width: Math.abs(Yr.value - Jr.value),
|
|
1364
|
+
height: e.height
|
|
1365
|
+
};
|
|
1366
|
+
}), Ei = h(() => !Ur.value || !br.value ? !1 : Number(X.value.start) !== 0 || Number(X.value.end) !== Number(si()));
|
|
1367
|
+
function Di(e) {
|
|
1368
|
+
let t = H.value;
|
|
1369
|
+
if (!t) return null;
|
|
1370
|
+
if (t.createSVGPoint && t.getScreenCTM) {
|
|
1371
|
+
let n = t.createSVGPoint();
|
|
1372
|
+
n.x = e.clientX, n.y = e.clientY;
|
|
1373
|
+
let r = t.getScreenCTM();
|
|
1374
|
+
if (r) {
|
|
1375
|
+
let e = n.matrixTransform(r.inverse());
|
|
1376
|
+
return {
|
|
1377
|
+
x: e.x,
|
|
1378
|
+
y: e.y
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
|
|
1383
|
+
x: 0,
|
|
1384
|
+
y: 0,
|
|
1385
|
+
width: n.width,
|
|
1386
|
+
height: n.height
|
|
1387
|
+
}, i = Math.min(n.width / r.width, n.height / r.height);
|
|
1388
|
+
if (!Number.isFinite(i) || i <= 0) return null;
|
|
1389
|
+
let a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
|
|
1390
|
+
return {
|
|
1391
|
+
x: (e.clientX - n.left - s) / i + r.x,
|
|
1392
|
+
y: (e.clientY - n.top - c) / i + r.y
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
function Oi(e) {
|
|
1396
|
+
let t = Si.value;
|
|
1397
|
+
return t ? Math.min(Math.max(e, t.left), t.right) : e;
|
|
1398
|
+
}
|
|
1399
|
+
function ki() {
|
|
1400
|
+
B.value = null, V.value = "pointer", F.value = !1, I.value = null, J.value = null;
|
|
1401
|
+
}
|
|
1402
|
+
function Ai(e) {
|
|
1403
|
+
let t = e?.pointerId == null ? Xr.value : e.pointerId;
|
|
1404
|
+
t != null && H.value?.hasPointerCapture?.(t) && H.value.releasePointerCapture(t), Kr.value = !1, Jr.value = null, Yr.value = null, Xr.value = null;
|
|
1405
|
+
}
|
|
1406
|
+
function ji() {
|
|
1407
|
+
Zr.value = !0, setTimeout(() => {
|
|
1408
|
+
Zr.value = !1;
|
|
1409
|
+
}, 0);
|
|
1410
|
+
}
|
|
1411
|
+
function Mi(e) {
|
|
1412
|
+
Zr.value && (Zr.value = !1, e.preventDefault(), e.stopPropagation());
|
|
1413
|
+
}
|
|
1414
|
+
function Ni(e) {
|
|
1415
|
+
if (!ti.value || !Ei.value || !e) return !1;
|
|
1416
|
+
let t = Date.now(), n = e.pointerType || "mouse", r = Qr.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
|
|
1417
|
+
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (Qr.value = {
|
|
1418
|
+
time: 0,
|
|
1419
|
+
x: 0,
|
|
1420
|
+
y: 0,
|
|
1421
|
+
pointerType: null
|
|
1422
|
+
}, ji(), Ai(e), ki(), pi({
|
|
1423
|
+
applyControlledZoom: !1,
|
|
1424
|
+
publish: !0
|
|
1425
|
+
}), !0) : (Qr.value = {
|
|
1426
|
+
time: t,
|
|
1427
|
+
x: e.clientX,
|
|
1428
|
+
y: e.clientY,
|
|
1429
|
+
pointerType: n
|
|
1430
|
+
}, !1);
|
|
1431
|
+
}
|
|
1432
|
+
function Pi(e) {
|
|
1433
|
+
let t = Si.value, n = Ci.value, r = wi.value;
|
|
1434
|
+
if (!t || r <= 0 || !Number.isFinite(n) || n <= 0) return null;
|
|
1435
|
+
let i = Math.floor((Oi(e) - t.left) / n);
|
|
1436
|
+
return Math.max(0, Math.min(r - 1, i));
|
|
1437
|
+
}
|
|
1438
|
+
function Fi(e, t) {
|
|
1439
|
+
let n = Pi(e), r = Pi(t);
|
|
1440
|
+
if (n == null || r == null) return null;
|
|
1441
|
+
let i = Math.min(n, r), a = Math.max(n, r);
|
|
1442
|
+
return a <= i ? null : {
|
|
1443
|
+
start: Number(X.value.start) + i,
|
|
1444
|
+
end: Number(X.value.start) + a + 1
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
function Ii(e) {
|
|
1448
|
+
let t = di(e);
|
|
1449
|
+
return t ? (U("zoomStart", {
|
|
1450
|
+
index: t.start,
|
|
1451
|
+
isZoom: t.start !== 0
|
|
1452
|
+
}), U("zoomEnd", {
|
|
1453
|
+
index: t.end,
|
|
1454
|
+
isZoom: t.end !== si()
|
|
1455
|
+
}), t) : null;
|
|
1456
|
+
}
|
|
1457
|
+
function Li(e) {
|
|
1458
|
+
if (!ti.value || Ji.value || e.button !== void 0 && e.button !== 0 || Xr.value != null && e.pointerId !== Xr.value) return;
|
|
1459
|
+
let t = Si.value, n = Di(e);
|
|
1460
|
+
if (!t || !n || n.x < t.left || n.x > t.right || n.y < t.top || n.y > t.bottom || wi.value <= 1) return;
|
|
1461
|
+
qr.value = !0, H.value?.focus?.({ preventScroll: !0 }), ki();
|
|
1462
|
+
let r = Oi(n.x);
|
|
1463
|
+
Xr.value = e.pointerId, Kr.value = !0, Jr.value = r, Yr.value = r;
|
|
1464
|
+
}
|
|
1465
|
+
function Ri(e) {
|
|
1466
|
+
if (!ti.value || !Kr.value || Xr.value != null && e.pointerId !== Xr.value) return;
|
|
1467
|
+
let t = Di(e);
|
|
1468
|
+
t && (Yr.value = Oi(t.x), ki(), Jr.value != null && Math.abs(Yr.value - Jr.value) >= 2 && !H.value?.hasPointerCapture?.(e.pointerId) && H.value?.setPointerCapture?.(e.pointerId));
|
|
1469
|
+
}
|
|
1470
|
+
function zi(e) {
|
|
1471
|
+
if (!ti.value || !Kr.value || Xr.value != null && e.pointerId !== Xr.value) return;
|
|
1472
|
+
let t = Di(e);
|
|
1473
|
+
t && (Yr.value = Oi(t.x));
|
|
1474
|
+
let n = Jr.value, r = Yr.value, i = Si.value;
|
|
1475
|
+
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, Number(i?.width ?? 0) * .01)) {
|
|
1476
|
+
if (Ni(e)) return;
|
|
1477
|
+
Ai(e);
|
|
1478
|
+
return;
|
|
1479
|
+
}
|
|
1480
|
+
let a = Fi(Math.min(n, r), Math.max(n, r));
|
|
1481
|
+
if (!a) {
|
|
1482
|
+
Ai(e);
|
|
1483
|
+
return;
|
|
1484
|
+
}
|
|
1485
|
+
Ai(e), Ii(a) && (Qr.value = {
|
|
1486
|
+
time: 0,
|
|
1487
|
+
x: 0,
|
|
1488
|
+
y: 0,
|
|
1489
|
+
pointerType: null
|
|
1490
|
+
}, ki(), ji());
|
|
1491
|
+
}
|
|
1492
|
+
let Bi = h(() => {
|
|
1493
|
+
let e = Si.value, t = K.value.width;
|
|
1494
|
+
return !e || t <= 0 || !R.value.zoomXyAutoFit ? null : e.left / t;
|
|
1495
|
+
}), Vi = h(() => {
|
|
1496
|
+
let e = Si.value, t = K.value.width;
|
|
1497
|
+
return !e || t <= 0 || !R.value.zoomXyAutoFit ? null : (t - e.right) / t;
|
|
1498
|
+
}), Hi = h(() => {
|
|
1172
1499
|
if (G.value === A.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1173
1500
|
...e,
|
|
1174
1501
|
isVisible: !L.value.includes(e.id),
|
|
@@ -1181,35 +1508,35 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1181
1508
|
type: "bar",
|
|
1182
1509
|
series: e.absoluteValues
|
|
1183
1510
|
}));
|
|
1184
|
-
}), $ = w([]),
|
|
1511
|
+
}), $ = w([]), Ui = 0;
|
|
1185
1512
|
We(() => {
|
|
1186
|
-
let e = ++
|
|
1513
|
+
let e = ++Ui;
|
|
1187
1514
|
(async () => {
|
|
1188
1515
|
let t = await fe({
|
|
1189
|
-
values:
|
|
1516
|
+
values: R.value.xyPeriods,
|
|
1190
1517
|
maxDatapoints: W.value.maxSeriesLength,
|
|
1191
|
-
formatter:
|
|
1518
|
+
formatter: R.value.datetimeFormatter,
|
|
1192
1519
|
start: X.value.start,
|
|
1193
1520
|
end: X.value.end
|
|
1194
1521
|
});
|
|
1195
|
-
e ===
|
|
1522
|
+
e === Ui && ($.value = t);
|
|
1196
1523
|
})();
|
|
1197
1524
|
});
|
|
1198
|
-
let
|
|
1199
|
-
let e =
|
|
1200
|
-
return
|
|
1201
|
-
}),
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1525
|
+
let Wi = h(() => {
|
|
1526
|
+
let e = R.value.xyPeriodsModulo;
|
|
1527
|
+
return R.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1528
|
+
}), Gi = w(!1);
|
|
1529
|
+
function Ki(e) {
|
|
1530
|
+
Gi.value = e, In.value += 1;
|
|
1204
1531
|
}
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1532
|
+
function qi() {
|
|
1533
|
+
Dr.value.showTooltip = !Dr.value.showTooltip;
|
|
1207
1534
|
}
|
|
1208
|
-
let
|
|
1209
|
-
function
|
|
1210
|
-
|
|
1535
|
+
let Ji = w(!1);
|
|
1536
|
+
function Yi() {
|
|
1537
|
+
Ji.value = !Ji.value;
|
|
1211
1538
|
}
|
|
1212
|
-
async function
|
|
1539
|
+
async function Xi({ scale: e = 2 } = {}) {
|
|
1213
1540
|
if (!N.value) return;
|
|
1214
1541
|
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
1215
1542
|
domElement: N.value,
|
|
@@ -1220,62 +1547,62 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1220
1547
|
return {
|
|
1221
1548
|
imageUri: i,
|
|
1222
1549
|
base64: a,
|
|
1223
|
-
title:
|
|
1550
|
+
title: R.value.title,
|
|
1224
1551
|
width: t,
|
|
1225
1552
|
height: n,
|
|
1226
1553
|
aspectRatio: r
|
|
1227
1554
|
};
|
|
1228
1555
|
}
|
|
1229
|
-
let
|
|
1556
|
+
let Zi = h(() => K.value.width), Qi = h(() => K.value.height);
|
|
1230
1557
|
Se({
|
|
1231
|
-
timeLabelsEls:
|
|
1558
|
+
timeLabelsEls: Vn,
|
|
1232
1559
|
timeLabels: $,
|
|
1233
1560
|
slicer: X,
|
|
1234
|
-
configRef:
|
|
1561
|
+
configRef: R,
|
|
1235
1562
|
rotationPath: ["xyPeriodLabelsRotation"],
|
|
1236
1563
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
1237
1564
|
isAutoSize: !1,
|
|
1238
|
-
rotation:
|
|
1239
|
-
height:
|
|
1240
|
-
width:
|
|
1565
|
+
rotation: R.value.xyPeriodLabelsAutoRotate.angle,
|
|
1566
|
+
height: Qi.value,
|
|
1567
|
+
width: Zi.value
|
|
1241
1568
|
});
|
|
1242
|
-
let
|
|
1243
|
-
show:
|
|
1569
|
+
let $i = h(() => R.value.backgroundColor), ea = h(() => G.value === A.DONUT ? Y.value.legend : G.value === A.LINE ? Z.value.legend : Q.value.legend), ta = h(() => ({
|
|
1570
|
+
show: R.value.showLegend,
|
|
1244
1571
|
bold: !1,
|
|
1245
|
-
backgroundColor:
|
|
1246
|
-
color:
|
|
1247
|
-
fontSize:
|
|
1248
|
-
position:
|
|
1249
|
-
})),
|
|
1250
|
-
text:
|
|
1251
|
-
color:
|
|
1252
|
-
fontSize:
|
|
1253
|
-
bold:
|
|
1254
|
-
textAlign:
|
|
1572
|
+
backgroundColor: R.value.backgroundColor,
|
|
1573
|
+
color: R.value.color,
|
|
1574
|
+
fontSize: R.value.legendFontSize,
|
|
1575
|
+
position: R.value.legendPosition
|
|
1576
|
+
})), na = h(() => ({
|
|
1577
|
+
text: R.value.title,
|
|
1578
|
+
color: R.value.color,
|
|
1579
|
+
fontSize: R.value.titleFontSize,
|
|
1580
|
+
bold: R.value.titleBold,
|
|
1581
|
+
textAlign: R.value.titleTextAlign,
|
|
1255
1582
|
subtitle: { text: "" }
|
|
1256
|
-
})), { generateSvg:
|
|
1257
|
-
svg:
|
|
1258
|
-
title:
|
|
1259
|
-
legend:
|
|
1260
|
-
legendItems:
|
|
1261
|
-
backgroundColor:
|
|
1262
|
-
getSvgCallback: () =>
|
|
1263
|
-
generateImage:
|
|
1583
|
+
})), { generateSvg: ra, onGenerateImage: ia } = ye({
|
|
1584
|
+
svg: H,
|
|
1585
|
+
title: na,
|
|
1586
|
+
legend: ta,
|
|
1587
|
+
legendItems: ea,
|
|
1588
|
+
backgroundColor: $i,
|
|
1589
|
+
getSvgCallback: () => R.value.userOptionsCallbacks.svg,
|
|
1590
|
+
generateImage: Tr
|
|
1264
1591
|
});
|
|
1265
|
-
async function
|
|
1592
|
+
async function aa() {
|
|
1266
1593
|
if (U("copyAlt", {
|
|
1267
|
-
config:
|
|
1594
|
+
config: R.value,
|
|
1268
1595
|
dataset: {
|
|
1269
1596
|
line: Z.value,
|
|
1270
1597
|
bar: Q.value,
|
|
1271
1598
|
donut: Y.value
|
|
1272
1599
|
}
|
|
1273
|
-
}), !
|
|
1600
|
+
}), !R.value.userOptionsCallbacks.altCopy) {
|
|
1274
1601
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1275
1602
|
return;
|
|
1276
1603
|
}
|
|
1277
|
-
await Promise.resolve(
|
|
1278
|
-
config:
|
|
1604
|
+
await Promise.resolve(R.value.userOptionsCallbacks.altCopy({
|
|
1605
|
+
config: R.value,
|
|
1279
1606
|
dataset: {
|
|
1280
1607
|
line: Z.value,
|
|
1281
1608
|
bar: Q.value,
|
|
@@ -1283,50 +1610,57 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1283
1610
|
}
|
|
1284
1611
|
}));
|
|
1285
1612
|
}
|
|
1286
|
-
function
|
|
1613
|
+
function oa(e, t) {
|
|
1287
1614
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1288
1615
|
}
|
|
1289
|
-
let
|
|
1290
|
-
function
|
|
1291
|
-
|
|
1616
|
+
let sa = h(() => G.value === A.DONUT ? Y.value?.chart?.length ?? 0 : G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : G.value === A.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1617
|
+
function ca() {
|
|
1618
|
+
B.value = null, ir.value = !0;
|
|
1292
1619
|
}
|
|
1293
|
-
function
|
|
1294
|
-
|
|
1620
|
+
function la() {
|
|
1621
|
+
qr.value = !1, B.value = null, V.value = "pointer", F.value = !1, I.value = null, J.value = null, ir.value = !1;
|
|
1295
1622
|
}
|
|
1296
|
-
function
|
|
1297
|
-
if (!
|
|
1623
|
+
function ua(e) {
|
|
1624
|
+
if (!H.value || Ji.value || document.activeElement !== H.value || (qr.value = !1, !sa.value)) return;
|
|
1298
1625
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1299
1626
|
if (!t && !n && !r && !i) return;
|
|
1300
1627
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1301
|
-
|
|
1628
|
+
if (ti.value && (Ei.value || Kr.value)) {
|
|
1629
|
+
Ai(), ki(), pi({
|
|
1630
|
+
applyControlledZoom: !1,
|
|
1631
|
+
publish: !0
|
|
1632
|
+
});
|
|
1633
|
+
return;
|
|
1634
|
+
}
|
|
1635
|
+
B.value = null, V.value = "pointer", F.value = !1, I.value = null, J.value = null;
|
|
1302
1636
|
return;
|
|
1303
1637
|
}
|
|
1304
1638
|
if (r) {
|
|
1305
|
-
if (
|
|
1639
|
+
if (B.value === null) return;
|
|
1306
1640
|
if (G.value === A.DONUT) {
|
|
1307
|
-
let e = Y.value?.chart?.[
|
|
1641
|
+
let e = Y.value?.chart?.[B.value];
|
|
1308
1642
|
if (!e) return;
|
|
1309
1643
|
Y.value.selectDatapoint({
|
|
1310
1644
|
datapoint: e,
|
|
1311
|
-
seriesIndex:
|
|
1645
|
+
seriesIndex: B.value
|
|
1312
1646
|
});
|
|
1313
1647
|
return;
|
|
1314
1648
|
}
|
|
1315
1649
|
if (G.value === A.LINE) {
|
|
1316
|
-
Z.value?.selectDatapoint(
|
|
1650
|
+
Z.value?.selectDatapoint(B.value);
|
|
1317
1651
|
return;
|
|
1318
1652
|
}
|
|
1319
1653
|
if (G.value === A.BAR) {
|
|
1320
|
-
Q.value?.selectDatapoint(
|
|
1654
|
+
Q.value?.selectDatapoint(B.value);
|
|
1321
1655
|
return;
|
|
1322
1656
|
}
|
|
1323
1657
|
return;
|
|
1324
1658
|
}
|
|
1325
|
-
let a =
|
|
1326
|
-
if (s ? n ? (a += 1, a >=
|
|
1659
|
+
let a = B.value, o = J.value, s = a !== null && a >= 0 && a < sa.value, c = o !== null && o >= 0 && o < sa.value;
|
|
1660
|
+
if (s ? n ? (a += 1, a >= sa.value && (a = 0)) : t && (--a, a < 0 && (a = sa.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= sa.value && (a = 0), a < 0 && (a = sa.value - 1)) : a = n ? 0 : sa.value - 1, G.value === A.DONUT) {
|
|
1327
1661
|
let e = Y.value?.chart?.[a];
|
|
1328
1662
|
if (!e) return;
|
|
1329
|
-
|
|
1663
|
+
da(a), Y.value.useTooltip({
|
|
1330
1664
|
datapoint: e,
|
|
1331
1665
|
seriesIndex: a,
|
|
1332
1666
|
triggerMode: "keyboard"
|
|
@@ -1334,13 +1668,13 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1334
1668
|
return;
|
|
1335
1669
|
}
|
|
1336
1670
|
if (G.value === A.LINE) {
|
|
1337
|
-
|
|
1671
|
+
da(a), Z.value?.useTooltip(a, "keyboard");
|
|
1338
1672
|
return;
|
|
1339
1673
|
}
|
|
1340
|
-
G.value === A.BAR && (
|
|
1674
|
+
G.value === A.BAR && (da(a), Q.value?.useTooltip(a, "keyboard"));
|
|
1341
1675
|
}
|
|
1342
|
-
function
|
|
1343
|
-
if (!Number.isFinite(e) || !
|
|
1676
|
+
function da(e) {
|
|
1677
|
+
if (!Number.isFinite(e) || !H.value) return;
|
|
1344
1678
|
let t = 0, n = 0;
|
|
1345
1679
|
if (G.value === A.DONUT) {
|
|
1346
1680
|
let r = Y.value?.chart?.[e];
|
|
@@ -1357,13 +1691,13 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1357
1691
|
if (!r || !i) return;
|
|
1358
1692
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1359
1693
|
}
|
|
1360
|
-
let r =
|
|
1361
|
-
|
|
1694
|
+
let r = H.value.getBoundingClientRect();
|
|
1695
|
+
rr.value = {
|
|
1362
1696
|
x: r.left + t / K.value.width * r.width,
|
|
1363
1697
|
y: r.top + n / K.value.height * r.height
|
|
1364
1698
|
};
|
|
1365
1699
|
}
|
|
1366
|
-
let
|
|
1700
|
+
let fa = h(() => {
|
|
1367
1701
|
if (G.value === A.DONUT) return {
|
|
1368
1702
|
headers: [
|
|
1369
1703
|
"Series",
|
|
@@ -1374,15 +1708,15 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1374
1708
|
let n = Y.value?.total ? t({
|
|
1375
1709
|
v: e.value / Y.value.total * 100,
|
|
1376
1710
|
s: "%",
|
|
1377
|
-
r:
|
|
1711
|
+
r: R.value.dataLabelRoundingPercentage
|
|
1378
1712
|
}) : "0%";
|
|
1379
1713
|
return [
|
|
1380
1714
|
e.name,
|
|
1381
|
-
p(
|
|
1382
|
-
p:
|
|
1715
|
+
p(R.value.formatter, e.value, t({
|
|
1716
|
+
p: R.value.valuePrefix,
|
|
1383
1717
|
v: e.value,
|
|
1384
|
-
s:
|
|
1385
|
-
r:
|
|
1718
|
+
s: R.value.valueSuffix,
|
|
1719
|
+
r: R.value.dataLabelRoundingValue
|
|
1386
1720
|
})),
|
|
1387
1721
|
n
|
|
1388
1722
|
];
|
|
@@ -1394,11 +1728,11 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1394
1728
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1395
1729
|
rows: Array.from({ length: n }, (n, r) => [$.value?.[r + X.value.start]?.text ?? String(r + X.value.start), ...e.map((e) => {
|
|
1396
1730
|
let n = e.values?.[r];
|
|
1397
|
-
return p(
|
|
1398
|
-
p:
|
|
1731
|
+
return p(R.value.formatter, n, t({
|
|
1732
|
+
p: R.value.valuePrefix,
|
|
1399
1733
|
v: n,
|
|
1400
|
-
s:
|
|
1401
|
-
r:
|
|
1734
|
+
s: R.value.valueSuffix,
|
|
1735
|
+
r: R.value.dataLabelRoundingValue
|
|
1402
1736
|
}));
|
|
1403
1737
|
})])
|
|
1404
1738
|
};
|
|
@@ -1409,15 +1743,20 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1409
1743
|
};
|
|
1410
1744
|
});
|
|
1411
1745
|
return we({
|
|
1412
|
-
getImage:
|
|
1413
|
-
generatePdf:
|
|
1414
|
-
generateImage:
|
|
1415
|
-
generateSvg:
|
|
1416
|
-
toggleTooltip:
|
|
1417
|
-
toggleAnnotator:
|
|
1418
|
-
toggleFullscreen:
|
|
1419
|
-
copyAlt:
|
|
1420
|
-
|
|
1746
|
+
getImage: Xi,
|
|
1747
|
+
generatePdf: wr,
|
|
1748
|
+
generateImage: Tr,
|
|
1749
|
+
generateSvg: ra,
|
|
1750
|
+
toggleTooltip: qi,
|
|
1751
|
+
toggleAnnotator: Yi,
|
|
1752
|
+
toggleFullscreen: Ki,
|
|
1753
|
+
copyAlt: aa,
|
|
1754
|
+
resetZoom: () => pi({
|
|
1755
|
+
applyControlledZoom: !1,
|
|
1756
|
+
publish: !0
|
|
1757
|
+
}),
|
|
1758
|
+
setZoomState: di
|
|
1759
|
+
}), (e, n) => yr.value ? (C(), _("div", {
|
|
1421
1760
|
key: 0,
|
|
1422
1761
|
id: `${G.value}_${P.value}`,
|
|
1423
1762
|
ref_key: "quickChart",
|
|
@@ -1425,23 +1764,23 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1425
1764
|
class: b({
|
|
1426
1765
|
"vue-data-ui-component": !0,
|
|
1427
1766
|
"vue-ui-quick-chart": !0,
|
|
1428
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1767
|
+
"vue-data-ui-wrapper-fullscreen": Gi.value
|
|
1429
1768
|
}),
|
|
1430
|
-
style: S(`background:${
|
|
1431
|
-
onMouseenter: n[
|
|
1432
|
-
onMouseleave: n[
|
|
1769
|
+
style: S(`background:${R.value.backgroundColor};color:${R.value.color};font-family:${R.value.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
|
|
1770
|
+
onMouseenter: n[1] ||= () => pr(!0),
|
|
1771
|
+
onMouseleave: n[2] ||= () => pr(!1)
|
|
1433
1772
|
}, [
|
|
1434
1773
|
v("div", {
|
|
1435
1774
|
id: `chart-instructions-${P.value}`,
|
|
1436
1775
|
class: "sr-only"
|
|
1437
|
-
}, [v("p", null, D(
|
|
1438
|
-
|
|
1776
|
+
}, [v("p", null, D(R.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
|
|
1777
|
+
fa.value.rows.length ? (C(), Ne(ke, {
|
|
1439
1778
|
key: 0,
|
|
1440
1779
|
uid: P.value,
|
|
1441
|
-
head:
|
|
1442
|
-
body:
|
|
1443
|
-
notice:
|
|
1444
|
-
caption:
|
|
1780
|
+
head: fa.value.headers,
|
|
1781
|
+
body: fa.value.rows,
|
|
1782
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
1783
|
+
caption: R.value.a11y.translations.tableCaption
|
|
1445
1784
|
}, null, 8, [
|
|
1446
1785
|
"uid",
|
|
1447
1786
|
"head",
|
|
@@ -1449,15 +1788,15 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1449
1788
|
"notice",
|
|
1450
1789
|
"caption"
|
|
1451
1790
|
])) : g("", !0),
|
|
1452
|
-
|
|
1791
|
+
R.value.userOptionsButtons.annotator ? (C(), Ne(O(Xe), {
|
|
1453
1792
|
key: 1,
|
|
1454
|
-
svgRef: O(
|
|
1455
|
-
backgroundColor:
|
|
1456
|
-
color:
|
|
1457
|
-
active:
|
|
1458
|
-
isCursorPointer:
|
|
1459
|
-
palette:
|
|
1460
|
-
onClose:
|
|
1793
|
+
svgRef: O(H),
|
|
1794
|
+
backgroundColor: R.value.backgroundColor,
|
|
1795
|
+
color: R.value.color,
|
|
1796
|
+
active: Ji.value,
|
|
1797
|
+
isCursorPointer: nr.value,
|
|
1798
|
+
palette: R.value.annotatorPalette,
|
|
1799
|
+
onClose: Yi
|
|
1461
1800
|
}, {
|
|
1462
1801
|
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1463
1802
|
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
@@ -1474,46 +1813,46 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1474
1813
|
"isCursorPointer",
|
|
1475
1814
|
"palette"
|
|
1476
1815
|
])) : g("", !0),
|
|
1477
|
-
|
|
1816
|
+
Er.value ? (C(), _("div", {
|
|
1478
1817
|
key: 2,
|
|
1479
1818
|
ref_key: "noTitle",
|
|
1480
|
-
ref:
|
|
1819
|
+
ref: Fn,
|
|
1481
1820
|
class: "vue-data-ui-no-title-space",
|
|
1482
1821
|
style: "height:36px; width: 100%;background:transparent"
|
|
1483
1822
|
}, null, 512)) : g("", !0),
|
|
1484
|
-
|
|
1823
|
+
R.value.showUserOptions && (ur.value || dr.value) ? (C(), Ne(O(Qe), {
|
|
1485
1824
|
ref: "details",
|
|
1486
|
-
key: `user_option_${
|
|
1487
|
-
backgroundColor:
|
|
1488
|
-
color:
|
|
1489
|
-
isPrinting: O(
|
|
1490
|
-
isImaging: O(
|
|
1825
|
+
key: `user_option_${In.value}`,
|
|
1826
|
+
backgroundColor: R.value.backgroundColor,
|
|
1827
|
+
color: R.value.color,
|
|
1828
|
+
isPrinting: O(Sr),
|
|
1829
|
+
isImaging: O(Cr),
|
|
1491
1830
|
uid: P.value,
|
|
1492
|
-
hasTooltip:
|
|
1493
|
-
hasPdf:
|
|
1494
|
-
hasImg:
|
|
1495
|
-
hasSvg:
|
|
1496
|
-
hasFullscreen:
|
|
1497
|
-
hasAltCopy:
|
|
1831
|
+
hasTooltip: R.value.userOptionsButtons.tooltip && R.value.showTooltip,
|
|
1832
|
+
hasPdf: R.value.userOptionsButtons.pdf,
|
|
1833
|
+
hasImg: R.value.userOptionsButtons.img,
|
|
1834
|
+
hasSvg: R.value.userOptionsButtons.svg,
|
|
1835
|
+
hasFullscreen: R.value.userOptionsButtons.fullscreen,
|
|
1836
|
+
hasAltCopy: R.value.userOptionsButtons.altCopy,
|
|
1498
1837
|
hasXls: !1,
|
|
1499
|
-
isTooltip:
|
|
1500
|
-
isFullscreen:
|
|
1501
|
-
titles: { ...
|
|
1838
|
+
isTooltip: Dr.value.showTooltip,
|
|
1839
|
+
isFullscreen: Gi.value,
|
|
1840
|
+
titles: { ...R.value.userOptionsButtonTitles },
|
|
1502
1841
|
chartElement: N.value,
|
|
1503
|
-
position:
|
|
1504
|
-
hasAnnotator:
|
|
1505
|
-
isAnnotation:
|
|
1506
|
-
callbacks:
|
|
1507
|
-
printScale:
|
|
1508
|
-
isCursorPointer:
|
|
1509
|
-
onToggleFullscreen:
|
|
1510
|
-
onGeneratePdf: O(
|
|
1511
|
-
onGenerateImage: O(
|
|
1512
|
-
onGenerateSvg: O(
|
|
1513
|
-
onToggleTooltip:
|
|
1514
|
-
onToggleAnnotator:
|
|
1515
|
-
onCopyAlt:
|
|
1516
|
-
style: S({ visibility:
|
|
1842
|
+
position: R.value.userOptionsPosition,
|
|
1843
|
+
hasAnnotator: R.value.userOptionsButtons.annotator,
|
|
1844
|
+
isAnnotation: Ji.value,
|
|
1845
|
+
callbacks: R.value.userOptionsCallbacks,
|
|
1846
|
+
printScale: R.value.userOptionsPrint.scale,
|
|
1847
|
+
isCursorPointer: nr.value,
|
|
1848
|
+
onToggleFullscreen: Ki,
|
|
1849
|
+
onGeneratePdf: O(wr),
|
|
1850
|
+
onGenerateImage: O(ia),
|
|
1851
|
+
onGenerateSvg: O(ra),
|
|
1852
|
+
onToggleTooltip: qi,
|
|
1853
|
+
onToggleAnnotator: Yi,
|
|
1854
|
+
onCopyAlt: aa,
|
|
1855
|
+
style: S({ visibility: ur.value ? dr.value ? "visible" : "hidden" : "visible" })
|
|
1517
1856
|
}, Pe({ _: 2 }, [
|
|
1518
1857
|
e.$slots.menuIcon ? {
|
|
1519
1858
|
name: "menuIcon",
|
|
@@ -1601,27 +1940,43 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1601
1940
|
"onGenerateSvg",
|
|
1602
1941
|
"style"
|
|
1603
1942
|
])) : g("", !0),
|
|
1604
|
-
|
|
1943
|
+
R.value.title ? (C(), _("div", {
|
|
1605
1944
|
key: 4,
|
|
1606
1945
|
ref_key: "quickChartTitle",
|
|
1607
|
-
ref:
|
|
1946
|
+
ref: kn,
|
|
1608
1947
|
class: "vue-ui-quick-chart-title",
|
|
1609
|
-
style: S(`background:transparent;color:${
|
|
1610
|
-
}, D(
|
|
1948
|
+
style: S(`background:transparent;color:${R.value.color};font-size:${R.value.titleFontSize}px;font-weight:${R.value.titleBold ? "bold" : "normal"};text-align:${R.value.titleTextAlign}`)
|
|
1949
|
+
}, D(R.value.title), 5)) : g("", !0),
|
|
1611
1950
|
v("div", { id: `legend-top-${P.value}` }, null, 8, it),
|
|
1612
1951
|
v("div", at, [G.value ? (C(), _("svg", {
|
|
1613
1952
|
key: 0,
|
|
1614
1953
|
ref_key: "svgRef",
|
|
1615
|
-
ref:
|
|
1954
|
+
ref: H,
|
|
1616
1955
|
xmlns: O(se),
|
|
1617
1956
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1618
|
-
viewBox:
|
|
1619
|
-
style: S(
|
|
1620
|
-
|
|
1957
|
+
viewBox: Ar.value,
|
|
1958
|
+
style: S({
|
|
1959
|
+
maxWidth: "100%",
|
|
1960
|
+
overflow: "visible",
|
|
1961
|
+
background: "transparent",
|
|
1962
|
+
color: R.value.color,
|
|
1963
|
+
cursor: ti.value ? Kr.value ? "col-resize" : "crosshair" : void 0,
|
|
1964
|
+
touchAction: ti.value ? "pan-y" : void 0,
|
|
1965
|
+
userSelect: ti.value ? "none" : void 0
|
|
1966
|
+
}),
|
|
1967
|
+
class: b({
|
|
1968
|
+
"vue-data-ui-no-transition": !O(z),
|
|
1969
|
+
"vue-ui-quick-chart-zoom-pointer-focus": ti.value && qr.value
|
|
1970
|
+
}),
|
|
1621
1971
|
tabindex: "0",
|
|
1622
|
-
onFocus:
|
|
1623
|
-
onBlur:
|
|
1624
|
-
onKeydown:
|
|
1972
|
+
onFocus: ca,
|
|
1973
|
+
onBlur: la,
|
|
1974
|
+
onKeydown: ua,
|
|
1975
|
+
onPointerdown: Li,
|
|
1976
|
+
onPointermove: Ri,
|
|
1977
|
+
onPointerup: zi,
|
|
1978
|
+
onPointercancel: Ai,
|
|
1979
|
+
onClickCapture: Mi
|
|
1625
1980
|
}, [
|
|
1626
1981
|
Fe(O(Je)),
|
|
1627
1982
|
e.$slots["chart-background"] && G.value === A.BAR ? (C(), _("foreignObject", {
|
|
@@ -1658,7 +2013,7 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1658
2013
|
in: "SourceGraphic",
|
|
1659
2014
|
stdDeviation: 2,
|
|
1660
2015
|
id: `blur_std_${P.value}`
|
|
1661
|
-
}, null, 8, dt), n[
|
|
2016
|
+
}, null, 8, dt), n[3] ||= v("feColorMatrix", {
|
|
1662
2017
|
type: "saturate",
|
|
1663
2018
|
values: "0"
|
|
1664
2019
|
}, null, -1)], 8, ut), v("filter", {
|
|
@@ -1669,35 +2024,35 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1669
2024
|
dy: "0",
|
|
1670
2025
|
stdDeviation: "10",
|
|
1671
2026
|
"flood-opacity": "0.5",
|
|
1672
|
-
"flood-color":
|
|
2027
|
+
"flood-color": R.value.donutShadowColor
|
|
1673
2028
|
}, null, 8, pt)], 8, ft)]),
|
|
1674
2029
|
G.value === A.DONUT ? (C(), _(m, { key: 3 }, [
|
|
1675
|
-
|
|
2030
|
+
R.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _(m, null, [Y.value.isArcBigEnough(e) ? (C(), _("path", {
|
|
1676
2031
|
key: 0,
|
|
1677
2032
|
d: O(ae)(e, {
|
|
1678
2033
|
x: K.value.width / 2,
|
|
1679
2034
|
y: K.value.height / 2
|
|
1680
|
-
}, 16, 16, !1, !1, K.value.height *
|
|
2035
|
+
}, 16, 16, !1, !1, K.value.height * Br.value, 12, R.value.donutCurvedMarkers),
|
|
1681
2036
|
stroke: e.color,
|
|
1682
|
-
"stroke-width":
|
|
2037
|
+
"stroke-width": R.value.donutLabelMarkerStrokeWidth,
|
|
1683
2038
|
"stroke-linecap": "round",
|
|
1684
2039
|
"stroke-linejoin": "round",
|
|
1685
2040
|
fill: "none",
|
|
1686
|
-
filter:
|
|
2041
|
+
filter: Mr(e.id)
|
|
1687
2042
|
}, null, 8, ht)) : g("", !0)], 64))), 256))])) : g("", !0),
|
|
1688
2043
|
v("circle", {
|
|
1689
2044
|
cx: Y.value.cx,
|
|
1690
2045
|
cy: Y.value.cy,
|
|
1691
2046
|
r: Y.value.radius,
|
|
1692
|
-
fill:
|
|
1693
|
-
filter:
|
|
2047
|
+
fill: R.value.backgroundColor,
|
|
2048
|
+
filter: R.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
|
|
1694
2049
|
}, null, 8, gt),
|
|
1695
2050
|
v("g", _t, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _("path", {
|
|
1696
2051
|
d: e.arcSlice,
|
|
1697
2052
|
fill: e.color,
|
|
1698
|
-
stroke:
|
|
1699
|
-
"stroke-width":
|
|
1700
|
-
filter:
|
|
2053
|
+
stroke: R.value.donutStroke || R.value.backgroundColor,
|
|
2054
|
+
"stroke-width": R.value.donutStrokeWidth,
|
|
2055
|
+
filter: Mr(e.id)
|
|
1701
2056
|
}, null, 8, vt))), 256)), (C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _("path", {
|
|
1702
2057
|
d: e.arcSlice,
|
|
1703
2058
|
fill: "transparent",
|
|
@@ -1715,30 +2070,30 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1715
2070
|
seriesIndex: t
|
|
1716
2071
|
})
|
|
1717
2072
|
}, null, 40, yt))), 256))]),
|
|
1718
|
-
|
|
2073
|
+
R.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(Y.value.chart, (e, n) => (C(), _(m, null, [
|
|
1719
2074
|
Y.value.isArcBigEnough(e) ? (C(), _("circle", {
|
|
1720
2075
|
key: 0,
|
|
1721
2076
|
cx: O(f)(e).x,
|
|
1722
2077
|
cy: O(oe)(e) - 3.7,
|
|
1723
2078
|
fill: e.color,
|
|
1724
|
-
stroke:
|
|
2079
|
+
stroke: R.value.backgroundColor,
|
|
1725
2080
|
"stroke-width": 1,
|
|
1726
2081
|
r: 3,
|
|
1727
|
-
filter:
|
|
2082
|
+
filter: Mr(e.id)
|
|
1728
2083
|
}, null, 8, xt)) : g("", !0),
|
|
1729
2084
|
Y.value.isArcBigEnough(e) ? (C(), _("text", {
|
|
1730
2085
|
key: 1,
|
|
1731
2086
|
"text-anchor": O(f)(e, !0, 20).anchor,
|
|
1732
2087
|
x: O(f)(e, !0).x,
|
|
1733
2088
|
y: O(oe)(e),
|
|
1734
|
-
fill:
|
|
1735
|
-
"font-size":
|
|
1736
|
-
filter:
|
|
1737
|
-
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(p)(
|
|
1738
|
-
p:
|
|
2089
|
+
fill: R.value.color,
|
|
2090
|
+
"font-size": R.value.dataLabelFontSize,
|
|
2091
|
+
filter: Mr(e.id)
|
|
2092
|
+
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(p)(R.value.formatter, e.value, O(t)({
|
|
2093
|
+
p: R.value.valuePrefix,
|
|
1739
2094
|
v: e.value,
|
|
1740
|
-
s:
|
|
1741
|
-
r:
|
|
2095
|
+
s: R.value.valueSuffix,
|
|
2096
|
+
r: R.value.dataLabelRoundingValue
|
|
1742
2097
|
}), {
|
|
1743
2098
|
datapoint: e,
|
|
1744
2099
|
seriesIndex: n
|
|
@@ -1747,310 +2102,310 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
1747
2102
|
key: 2,
|
|
1748
2103
|
"text-anchor": O(f)(e).anchor,
|
|
1749
2104
|
x: O(f)(e, !0).x,
|
|
1750
|
-
y: O(oe)(e) +
|
|
1751
|
-
fill:
|
|
1752
|
-
"font-size":
|
|
1753
|
-
filter:
|
|
2105
|
+
y: O(oe)(e) + R.value.dataLabelFontSize,
|
|
2106
|
+
fill: R.value.color,
|
|
2107
|
+
"font-size": R.value.dataLabelFontSize,
|
|
2108
|
+
filter: Mr(e.id)
|
|
1754
2109
|
}, D(e.name), 9, Ct)) : g("", !0)
|
|
1755
2110
|
], 64))), 256))])) : g("", !0),
|
|
1756
|
-
|
|
2111
|
+
R.value.donutShowTotal ? (C(), _("g", wt, [v("text", {
|
|
1757
2112
|
"text-anchor": "middle",
|
|
1758
2113
|
x: Y.value.drawingArea.centerX,
|
|
1759
|
-
y: Y.value.drawingArea.centerY -
|
|
1760
|
-
"font-size":
|
|
1761
|
-
fill:
|
|
1762
|
-
}, D(
|
|
2114
|
+
y: Y.value.drawingArea.centerY - R.value.donutTotalLabelFontSize / 2,
|
|
2115
|
+
"font-size": R.value.donutTotalLabelFontSize,
|
|
2116
|
+
fill: R.value.color
|
|
2117
|
+
}, D(R.value.donutTotalLabelText), 9, Tt), v("text", {
|
|
1763
2118
|
"text-anchor": "middle",
|
|
1764
2119
|
x: Y.value.drawingArea.centerX,
|
|
1765
|
-
y: Y.value.drawingArea.centerY +
|
|
1766
|
-
"font-size":
|
|
1767
|
-
fill:
|
|
2120
|
+
y: Y.value.drawingArea.centerY + R.value.donutTotalLabelFontSize,
|
|
2121
|
+
"font-size": R.value.donutTotalLabelFontSize,
|
|
2122
|
+
fill: R.value.color
|
|
1768
2123
|
}, D(O(t)({
|
|
1769
|
-
p:
|
|
2124
|
+
p: R.value.valuePrefix,
|
|
1770
2125
|
v: Y.value.total,
|
|
1771
|
-
s:
|
|
1772
|
-
r:
|
|
2126
|
+
s: R.value.valueSuffix,
|
|
2127
|
+
r: R.value.dataLabelRoundingValue
|
|
1773
2128
|
})), 9, Et)])) : g("", !0)
|
|
1774
2129
|
], 64)) : g("", !0),
|
|
1775
2130
|
G.value === A.LINE ? (C(), _(m, { key: 4 }, [
|
|
1776
|
-
|
|
2131
|
+
R.value.xyShowGrid ? (C(), _("g", Dt, [(C(!0), _(m, null, T(Z.value.yLabels, (e) => (C(), _(m, null, [e.y <= Z.value.drawingArea.bottom ? (C(), _("line", {
|
|
1777
2132
|
key: 0,
|
|
1778
2133
|
x1: Z.value.drawingArea.left,
|
|
1779
2134
|
x2: Z.value.drawingArea.right,
|
|
1780
2135
|
y1: e.y,
|
|
1781
2136
|
y2: e.y,
|
|
1782
|
-
stroke:
|
|
1783
|
-
"stroke-width":
|
|
2137
|
+
stroke: R.value.xyGridStroke,
|
|
2138
|
+
"stroke-width": R.value.xyGridStrokeWidth,
|
|
1784
2139
|
"stroke-linecap": "round"
|
|
1785
2140
|
}, null, 8, Ot)) : g("", !0)], 64))), 256)), (C(!0), _(m, null, T(Z.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
|
|
1786
2141
|
x1: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1787
2142
|
x2: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1788
2143
|
y1: Z.value.drawingArea.top,
|
|
1789
2144
|
y2: Z.value.drawingArea.bottom,
|
|
1790
|
-
stroke:
|
|
1791
|
-
"stroke-width":
|
|
2145
|
+
stroke: R.value.xyGridStroke,
|
|
2146
|
+
"stroke-width": R.value.xyGridStrokeWidth,
|
|
1792
2147
|
"stroke-linecap": "round"
|
|
1793
2148
|
}, null, 8, kt))), 256))])) : g("", !0),
|
|
1794
|
-
|
|
2149
|
+
R.value.xyShowAxis ? (C(), _("g", At, [v("line", {
|
|
1795
2150
|
x1: Z.value.drawingArea.left,
|
|
1796
2151
|
x2: Z.value.drawingArea.left,
|
|
1797
2152
|
y1: Z.value.drawingArea.top,
|
|
1798
2153
|
y2: Z.value.drawingArea.bottom,
|
|
1799
|
-
stroke:
|
|
1800
|
-
"stroke-width":
|
|
2154
|
+
stroke: R.value.xyAxisStroke,
|
|
2155
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1801
2156
|
"stroke-linecap": "round"
|
|
1802
2157
|
}, null, 8, jt), v("line", {
|
|
1803
2158
|
x1: Z.value.drawingArea.left,
|
|
1804
2159
|
x2: Z.value.drawingArea.right,
|
|
1805
2160
|
y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
1806
2161
|
y2: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
1807
|
-
stroke:
|
|
1808
|
-
"stroke-width":
|
|
2162
|
+
stroke: R.value.xyAxisStroke,
|
|
2163
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1809
2164
|
"stroke-linecap": "round"
|
|
1810
2165
|
}, null, 8, Mt)])) : g("", !0),
|
|
1811
|
-
|
|
2166
|
+
R.value.xyShowScale ? (C(), _("g", {
|
|
1812
2167
|
key: 2,
|
|
1813
2168
|
class: "yLabels",
|
|
1814
2169
|
ref_key: "scaleLabels",
|
|
1815
|
-
ref:
|
|
2170
|
+
ref: Hn
|
|
1816
2171
|
}, [(C(!0), _(m, null, T(Z.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Z.value.drawingArea.bottom ? (C(), _("path", {
|
|
1817
2172
|
key: 0,
|
|
1818
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2173
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
1819
2174
|
d: `M${e.x + 4},${e.y} ${Z.value.drawingArea.left},${e.y}`,
|
|
1820
|
-
stroke:
|
|
1821
|
-
"stroke-width":
|
|
2175
|
+
stroke: R.value.xyAxisStroke,
|
|
2176
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1822
2177
|
"stroke-linecap": "round"
|
|
1823
2178
|
}, null, 10, Nt)) : g("", !0), e.y <= Z.value.drawingArea.bottom ? (C(), _("text", {
|
|
1824
2179
|
key: 1,
|
|
1825
|
-
class: b({ "vue-data-ui-transition": O(
|
|
1826
|
-
transform: `translate(${e.x}, ${e.y +
|
|
2180
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2181
|
+
transform: `translate(${e.x}, ${e.y + R.value.xyLabelsYFontSize / 3})`,
|
|
1827
2182
|
"text-anchor": "end",
|
|
1828
|
-
"font-size":
|
|
1829
|
-
fill:
|
|
1830
|
-
}, D(O(p)(
|
|
1831
|
-
p:
|
|
2183
|
+
"font-size": R.value.xyLabelsYFontSize,
|
|
2184
|
+
fill: R.value.color
|
|
2185
|
+
}, D(O(p)(R.value.formatter, e.value, O(t)({
|
|
2186
|
+
p: R.value.valuePrefix,
|
|
1832
2187
|
v: e.value,
|
|
1833
|
-
s:
|
|
1834
|
-
r:
|
|
2188
|
+
s: R.value.valueSuffix,
|
|
2189
|
+
r: R.value.dataLabelRoundingValue
|
|
1835
2190
|
}), {
|
|
1836
2191
|
datapoint: e,
|
|
1837
2192
|
seriesIndex: n
|
|
1838
2193
|
})), 11, Pt)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
1839
|
-
|
|
2194
|
+
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Wi.value) === 0 || X.value.end - X.value.start <= Wi.value ? (C(), _("line", {
|
|
1840
2195
|
key: 0,
|
|
1841
2196
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1842
2197
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1843
2198
|
y1: Z.value.drawingArea.bottom,
|
|
1844
2199
|
y2: Z.value.drawingArea.bottom + 4,
|
|
1845
|
-
stroke:
|
|
1846
|
-
"stroke-width":
|
|
2200
|
+
stroke: R.value.xyAxisStroke,
|
|
2201
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1847
2202
|
"stroke-linecap": "round"
|
|
1848
2203
|
}, null, 8, It)) : g("", !0)], 64))), 256)), v("g", {
|
|
1849
2204
|
ref_key: "timeLabelsEls",
|
|
1850
|
-
ref:
|
|
1851
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!
|
|
2205
|
+
ref: Vn
|
|
2206
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Wi.value) === 0 || X.value.end - X.value.start <= Wi.value ? (C(), _("g", Lt, [String(e).includes("\n") ? (C(), _("text", {
|
|
1852
2207
|
key: 1,
|
|
1853
2208
|
class: "vue-data-ui-time-label",
|
|
1854
|
-
"font-size":
|
|
1855
|
-
"text-anchor":
|
|
1856
|
-
fill:
|
|
1857
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom +
|
|
2209
|
+
"font-size": R.value.xyLabelsXFontSize,
|
|
2210
|
+
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2211
|
+
fill: R.value.color,
|
|
2212
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
|
|
1858
2213
|
innerHTML: O(o)({
|
|
1859
2214
|
content: String(e),
|
|
1860
|
-
fontSize:
|
|
1861
|
-
fill:
|
|
2215
|
+
fontSize: R.value.xyLabelsXFontSize,
|
|
2216
|
+
fill: R.value.color,
|
|
1862
2217
|
x: 0,
|
|
1863
2218
|
y: 0
|
|
1864
2219
|
})
|
|
1865
2220
|
}, null, 8, zt)) : (C(), _("text", {
|
|
1866
2221
|
key: 0,
|
|
1867
2222
|
class: "vue-data-ui-time-label",
|
|
1868
|
-
"font-size":
|
|
1869
|
-
"text-anchor":
|
|
1870
|
-
fill:
|
|
1871
|
-
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom +
|
|
2223
|
+
"font-size": R.value.xyLabelsXFontSize,
|
|
2224
|
+
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2225
|
+
fill: R.value.color,
|
|
2226
|
+
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`
|
|
1872
2227
|
}, D(e), 9, Rt))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
|
|
1873
2228
|
v("g", Bt, [(C(!0), _(m, null, T(Z.value.dataset, (e, t) => (C(), _("g", {
|
|
1874
2229
|
key: `serie_${e.id}`,
|
|
1875
2230
|
class: "line-plot-series"
|
|
1876
|
-
}, [
|
|
2231
|
+
}, [R.value.lineSmooth ? (C(), _(m, { key: 0 }, [v("path", {
|
|
1877
2232
|
ref_for: !0,
|
|
1878
2233
|
ref_key: "pathWrapper",
|
|
1879
|
-
ref:
|
|
2234
|
+
ref: zn,
|
|
1880
2235
|
d: `M ${O(s)(e.coordinates)}`,
|
|
1881
|
-
stroke:
|
|
1882
|
-
"stroke-width":
|
|
2236
|
+
stroke: R.value.backgroundColor,
|
|
2237
|
+
"stroke-width": R.value.lineStrokeWidth + 1,
|
|
1883
2238
|
"stroke-linecap": "round",
|
|
1884
2239
|
fill: "none",
|
|
1885
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2240
|
+
class: b({ "vue-data-ui-transition": O(z) })
|
|
1886
2241
|
}, null, 10, Vt), v("path", {
|
|
1887
2242
|
ref_for: !0,
|
|
1888
2243
|
ref_key: "pathTop",
|
|
1889
|
-
ref:
|
|
2244
|
+
ref: Bn,
|
|
1890
2245
|
d: `M ${O(s)(e.coordinates)}`,
|
|
1891
2246
|
stroke: e.color,
|
|
1892
|
-
"stroke-width":
|
|
2247
|
+
"stroke-width": R.value.lineStrokeWidth,
|
|
1893
2248
|
"stroke-linecap": "round",
|
|
1894
2249
|
fill: "none",
|
|
1895
|
-
class: b({ "vue-data-ui-transition": O(
|
|
1896
|
-
style: S({ transition: O(
|
|
2250
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2251
|
+
style: S({ transition: O(or) ? void 0 : "all 0.2s ease-in-out" })
|
|
1897
2252
|
}, null, 14, Ht)], 64)) : (C(), _(m, { key: 1 }, [v("path", {
|
|
1898
2253
|
ref_for: !0,
|
|
1899
2254
|
ref_key: "pathWrapper",
|
|
1900
|
-
ref:
|
|
2255
|
+
ref: zn,
|
|
1901
2256
|
d: `M ${e.linePath}`,
|
|
1902
|
-
stroke:
|
|
1903
|
-
"stroke-width":
|
|
2257
|
+
stroke: R.value.backgroundColor,
|
|
2258
|
+
"stroke-width": R.value.lineStrokeWidth + 1,
|
|
1904
2259
|
"stroke-linecap": "round",
|
|
1905
2260
|
fill: "none",
|
|
1906
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2261
|
+
class: b({ "vue-data-ui-transition": O(z) })
|
|
1907
2262
|
}, null, 10, Ut), v("path", {
|
|
1908
2263
|
ref_for: !0,
|
|
1909
2264
|
ref_key: "pathTop",
|
|
1910
|
-
ref:
|
|
2265
|
+
ref: Bn,
|
|
1911
2266
|
d: `M ${e.linePath}`,
|
|
1912
2267
|
stroke: e.color,
|
|
1913
|
-
"stroke-width":
|
|
2268
|
+
"stroke-width": R.value.lineStrokeWidth,
|
|
1914
2269
|
"stroke-linecap": "round",
|
|
1915
2270
|
fill: "none",
|
|
1916
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2271
|
+
class: b({ "vue-data-ui-transition": O(z) })
|
|
1917
2272
|
}, null, 10, Wt)], 64)), (C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("circle", {
|
|
1918
2273
|
key: `dp_${e.id}_${n + X.value.start}`,
|
|
1919
2274
|
cx: t.x,
|
|
1920
2275
|
cy: O(d)(t.y),
|
|
1921
2276
|
r: 3,
|
|
1922
2277
|
fill: e.color,
|
|
1923
|
-
stroke:
|
|
2278
|
+
stroke: R.value.backgroundColor,
|
|
1924
2279
|
"stroke-width": "0.5",
|
|
1925
2280
|
class: b({
|
|
1926
2281
|
"vue-ui-quick-chart-plot": !0,
|
|
1927
|
-
"vue-data-ui-transition": O(
|
|
2282
|
+
"vue-data-ui-transition": O(z)
|
|
1928
2283
|
})
|
|
1929
2284
|
}, null, 10, Gt))), 128))]))), 128))]),
|
|
1930
|
-
|
|
1931
|
-
class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(
|
|
2285
|
+
R.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
2286
|
+
class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(z) }]),
|
|
1932
2287
|
key: `plot_${e.id}_${r + X.value.start}`,
|
|
1933
2288
|
"text-anchor": "middle",
|
|
1934
|
-
"font-size":
|
|
2289
|
+
"font-size": R.value.dataLabelFontSize,
|
|
1935
2290
|
fill: e.color,
|
|
1936
|
-
transform: `translate(${n.x}, ${O(d)(n.y) -
|
|
1937
|
-
}, D(O(p)(
|
|
1938
|
-
p:
|
|
2291
|
+
transform: `translate(${n.x}, ${O(d)(n.y) - R.value.dataLabelFontSize / 2})`
|
|
2292
|
+
}, D(O(p)(R.value.formatter, O(d)(n.value), O(t)({
|
|
2293
|
+
p: R.value.valuePrefix,
|
|
1939
2294
|
v: O(d)(n.value),
|
|
1940
|
-
s:
|
|
1941
|
-
r:
|
|
2295
|
+
s: R.value.valueSuffix,
|
|
2296
|
+
r: R.value.dataLabelRoundingValue
|
|
1942
2297
|
}), {
|
|
1943
2298
|
datapoint: n,
|
|
1944
2299
|
seriesIndex: r
|
|
1945
2300
|
})), 11, qt))), 128))], 64))), 128))])) : g("", !0),
|
|
1946
|
-
|
|
2301
|
+
fr.value ? (C(), _("g", Jt, [(C(!0), _(m, null, T(Z.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
1947
2302
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
1948
2303
|
y: Z.value.drawingArea.top,
|
|
1949
2304
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
1950
2305
|
width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
|
|
1951
|
-
fill: [I.value, J.value].includes(t) ?
|
|
1952
|
-
style: S(`opacity:${
|
|
2306
|
+
fill: [I.value, J.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
|
|
2307
|
+
style: S(`opacity:${R.value.xyHighlighterOpacity}`),
|
|
1953
2308
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
1954
2309
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
1955
2310
|
onClick: (e) => Z.value.selectDatapoint(t)
|
|
1956
2311
|
}, null, 44, Yt))), 256))])) : g("", !0)
|
|
1957
2312
|
], 64)) : g("", !0),
|
|
1958
2313
|
G.value === A.BAR ? (C(), _(m, { key: 5 }, [
|
|
1959
|
-
|
|
2314
|
+
R.value.xyShowGrid ? (C(), _("g", Xt, [(C(!0), _(m, null, T(Q.value.yLabels, (e) => (C(), _(m, null, [e.y <= Q.value.drawingArea.bottom ? (C(), _("line", {
|
|
1960
2315
|
key: 0,
|
|
1961
2316
|
x1: Q.value.drawingArea.left,
|
|
1962
2317
|
x2: Q.value.drawingArea.right,
|
|
1963
2318
|
y1: e.y,
|
|
1964
2319
|
y2: e.y,
|
|
1965
|
-
stroke:
|
|
1966
|
-
"stroke-width":
|
|
2320
|
+
stroke: R.value.xyGridStroke,
|
|
2321
|
+
"stroke-width": R.value.xyGridStrokeWidth,
|
|
1967
2322
|
"stroke-linecap": "round"
|
|
1968
2323
|
}, null, 8, Zt)) : g("", !0)], 64))), 256)), L.value.length < Q.value.legend.length ? (C(!0), _(m, { key: 0 }, T(Q.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
|
|
1969
2324
|
x1: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
1970
2325
|
x2: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
1971
2326
|
y1: Q.value.drawingArea.top,
|
|
1972
2327
|
y2: Q.value.drawingArea.bottom,
|
|
1973
|
-
stroke:
|
|
1974
|
-
"stroke-width":
|
|
2328
|
+
stroke: R.value.xyGridStroke,
|
|
2329
|
+
"stroke-width": R.value.xyGridStrokeWidth,
|
|
1975
2330
|
"stroke-linecap": "round"
|
|
1976
2331
|
}, null, 8, Qt))), 256)) : g("", !0)])) : g("", !0),
|
|
1977
|
-
|
|
2332
|
+
R.value.xyShowAxis ? (C(), _("g", $t, [v("line", {
|
|
1978
2333
|
x1: Q.value.drawingArea.left,
|
|
1979
2334
|
x2: Q.value.drawingArea.left,
|
|
1980
2335
|
y1: Q.value.drawingArea.top,
|
|
1981
2336
|
y2: Q.value.drawingArea.bottom,
|
|
1982
|
-
stroke:
|
|
1983
|
-
"stroke-width":
|
|
2337
|
+
stroke: R.value.xyAxisStroke,
|
|
2338
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1984
2339
|
"stroke-linecap": "round"
|
|
1985
2340
|
}, null, 8, en), v("line", {
|
|
1986
2341
|
x1: Q.value.drawingArea.left,
|
|
1987
2342
|
x2: Q.value.drawingArea.right,
|
|
1988
2343
|
y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
1989
2344
|
y2: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
1990
|
-
stroke:
|
|
1991
|
-
"stroke-width":
|
|
2345
|
+
stroke: R.value.xyAxisStroke,
|
|
2346
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
1992
2347
|
"stroke-linecap": "round"
|
|
1993
2348
|
}, null, 8, tn)])) : g("", !0),
|
|
1994
|
-
|
|
2349
|
+
R.value.xyShowScale ? (C(), _("g", {
|
|
1995
2350
|
key: 2,
|
|
1996
2351
|
class: "yLabels",
|
|
1997
2352
|
ref_key: "scaleLabels",
|
|
1998
|
-
ref:
|
|
2353
|
+
ref: Hn
|
|
1999
2354
|
}, [(C(!0), _(m, null, T(Q.value.yLabels, (e, n) => (C(), _(m, { key: `sl_${n}` }, [e.y <= Q.value.drawingArea.bottom ? (C(), _("path", {
|
|
2000
2355
|
key: 0,
|
|
2001
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2356
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2002
2357
|
d: `M${e.x + 4},${e.y} ${Q.value.drawingArea.left},${e.y}`,
|
|
2003
|
-
stroke:
|
|
2004
|
-
"stroke-width":
|
|
2358
|
+
stroke: R.value.xyAxisStroke,
|
|
2359
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
2005
2360
|
"stroke-linecap": "round"
|
|
2006
2361
|
}, null, 10, nn)) : g("", !0), e.y <= Q.value.drawingArea.bottom ? (C(), _("text", {
|
|
2007
2362
|
key: 1,
|
|
2008
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2009
|
-
transform: `translate(${e.x}, ${e.y +
|
|
2363
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2364
|
+
transform: `translate(${e.x}, ${e.y + R.value.xyLabelsYFontSize / 3})`,
|
|
2010
2365
|
"text-anchor": "end",
|
|
2011
|
-
"font-size":
|
|
2012
|
-
fill:
|
|
2013
|
-
}, D(O(p)(
|
|
2014
|
-
p:
|
|
2366
|
+
"font-size": R.value.xyLabelsYFontSize,
|
|
2367
|
+
fill: R.value.color
|
|
2368
|
+
}, D(O(p)(R.value.formatter, e.value, O(t)({
|
|
2369
|
+
p: R.value.valuePrefix,
|
|
2015
2370
|
v: e.value,
|
|
2016
|
-
s:
|
|
2017
|
-
r:
|
|
2371
|
+
s: R.value.valueSuffix,
|
|
2372
|
+
r: R.value.dataLabelRoundingValue
|
|
2018
2373
|
}), {
|
|
2019
2374
|
datapoint: e,
|
|
2020
2375
|
seriesIndex: n
|
|
2021
2376
|
})), 11, rn)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
2022
|
-
|
|
2377
|
+
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(R.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (C(), _("line", {
|
|
2023
2378
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2024
2379
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2025
2380
|
y1: Q.value.drawingArea.bottom,
|
|
2026
2381
|
y2: Q.value.drawingArea.bottom + 4,
|
|
2027
|
-
stroke:
|
|
2028
|
-
"stroke-width":
|
|
2382
|
+
stroke: R.value.xyAxisStroke,
|
|
2383
|
+
"stroke-width": R.value.xyAxisStrokeWidth,
|
|
2029
2384
|
"stroke-linecap": "round"
|
|
2030
2385
|
}, null, 8, on))), 256)), v("g", {
|
|
2031
2386
|
ref_key: "timeLabelsEls",
|
|
2032
|
-
ref:
|
|
2033
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!
|
|
2387
|
+
ref: Vn
|
|
2388
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Wi.value) === 0 || X.value.end - X.value.start <= Wi.value ? (C(), _("g", sn, [String(e).includes("\n") ? (C(), _("text", {
|
|
2034
2389
|
key: 1,
|
|
2035
2390
|
class: "vue-data-ui-time-label",
|
|
2036
|
-
"font-size":
|
|
2037
|
-
"text-anchor":
|
|
2038
|
-
fill:
|
|
2039
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom +
|
|
2391
|
+
"font-size": R.value.xyLabelsXFontSize,
|
|
2392
|
+
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2393
|
+
fill: R.value.color,
|
|
2394
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
|
|
2040
2395
|
innerHTML: O(o)({
|
|
2041
2396
|
content: String(e),
|
|
2042
|
-
fontSize:
|
|
2043
|
-
fill:
|
|
2397
|
+
fontSize: R.value.xyLabelsXFontSize,
|
|
2398
|
+
fill: R.value.color,
|
|
2044
2399
|
x: 0,
|
|
2045
2400
|
y: 0
|
|
2046
2401
|
})
|
|
2047
2402
|
}, null, 8, ln)) : (C(), _("text", {
|
|
2048
2403
|
key: 0,
|
|
2049
2404
|
class: "vue-data-ui-time-label",
|
|
2050
|
-
"font-size":
|
|
2051
|
-
"text-anchor":
|
|
2052
|
-
fill:
|
|
2053
|
-
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom +
|
|
2405
|
+
"font-size": R.value.xyLabelsXFontSize,
|
|
2406
|
+
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2407
|
+
fill: R.value.color,
|
|
2408
|
+
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`
|
|
2054
2409
|
}, D(e), 9, cn))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
|
|
2055
2410
|
v("g", un, [(C(!0), _(m, null, T(Q.value.dataset, (e, t) => (C(), _(m, null, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("rect", {
|
|
2056
2411
|
x: t.x,
|
|
@@ -2058,166 +2413,183 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2058
2413
|
height: O(d)(t.height <= 0 ? 1e-5 : t.height),
|
|
2059
2414
|
y: O(d)(t.y),
|
|
2060
2415
|
fill: e.color,
|
|
2061
|
-
stroke:
|
|
2062
|
-
"stroke-width":
|
|
2416
|
+
stroke: R.value.backgroundColor,
|
|
2417
|
+
"stroke-width": R.value.barStrokeWidth,
|
|
2063
2418
|
"stroke-linecap": "round",
|
|
2064
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2419
|
+
class: b({ "vue-data-ui-transition": O(z) })
|
|
2065
2420
|
}, null, 10, dn))), 256))], 64))), 256))]),
|
|
2066
|
-
|
|
2067
|
-
class: b({ "vue-data-ui-transition": O(
|
|
2421
|
+
R.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
2422
|
+
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2068
2423
|
key: `plot_${r + X.value.start}`,
|
|
2069
|
-
transform: `translate(${n.x + n.width / 2}, ${O(d)(n.y) -
|
|
2424
|
+
transform: `translate(${n.x + n.width / 2}, ${O(d)(n.y) - R.value.dataLabelFontSize / 2})`,
|
|
2070
2425
|
"text-anchor": "middle",
|
|
2071
|
-
"font-size":
|
|
2426
|
+
"font-size": R.value.dataLabelFontSize,
|
|
2072
2427
|
fill: e.color
|
|
2073
|
-
}, D(O(p)(
|
|
2074
|
-
p:
|
|
2428
|
+
}, D(O(p)(R.value.formatter, O(d)(n.value), O(t)({
|
|
2429
|
+
p: R.value.valuePrefix,
|
|
2075
2430
|
v: O(d)(n.value),
|
|
2076
|
-
s:
|
|
2077
|
-
r:
|
|
2431
|
+
s: R.value.valueSuffix,
|
|
2432
|
+
r: R.value.dataLabelRoundingValue
|
|
2078
2433
|
}), {
|
|
2079
2434
|
datapoint: n,
|
|
2080
2435
|
seriesIndex: r
|
|
2081
2436
|
})), 11, pn))), 128))], 64))), 128))])) : g("", !0),
|
|
2082
|
-
|
|
2437
|
+
fr.value && L.value.length < Q.value.legend.length ? (C(), _("g", mn, [(C(!0), _(m, null, T(Q.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
2083
2438
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
2084
2439
|
y: Q.value.drawingArea.top,
|
|
2085
2440
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
2086
2441
|
width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
|
|
2087
|
-
fill: [I.value, J.value].includes(t) ?
|
|
2088
|
-
style: S(`opacity:${
|
|
2442
|
+
fill: [I.value, J.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
|
|
2443
|
+
style: S(`opacity:${R.value.xyHighlighterOpacity}`),
|
|
2089
2444
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2090
2445
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
2091
2446
|
onClick: (e) => Q.value.selectDatapoint(t)
|
|
2092
2447
|
}, null, 44, hn))), 256))])) : g("", !0)
|
|
2093
2448
|
], 64)) : g("", !0),
|
|
2094
2449
|
[A.LINE, A.BAR].includes(G.value) ? (C(), _("g", gn, [
|
|
2095
|
-
|
|
2450
|
+
R.value.xAxisLabel && G.value === A.LINE ? (C(), _("g", {
|
|
2096
2451
|
key: 0,
|
|
2097
2452
|
ref_key: "xAxisLabel",
|
|
2098
|
-
ref:
|
|
2453
|
+
ref: Un
|
|
2099
2454
|
}, [v("text", {
|
|
2100
|
-
"font-size":
|
|
2101
|
-
fill:
|
|
2455
|
+
"font-size": R.value.axisLabelsFontSize,
|
|
2456
|
+
fill: R.value.color,
|
|
2102
2457
|
"text-anchor": "middle",
|
|
2103
2458
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2104
|
-
y: K.value.height -
|
|
2105
|
-
}, D(
|
|
2106
|
-
|
|
2459
|
+
y: K.value.height - R.value.axisLabelsFontSize / 3
|
|
2460
|
+
}, D(R.value.xAxisLabel), 9, _n)], 512)) : g("", !0),
|
|
2461
|
+
R.value.xAxisLabel && G.value === A.BAR ? (C(), _("g", {
|
|
2107
2462
|
key: 1,
|
|
2108
2463
|
ref_key: "xAxisLabel",
|
|
2109
|
-
ref:
|
|
2464
|
+
ref: Un
|
|
2110
2465
|
}, [v("text", {
|
|
2111
|
-
"font-size":
|
|
2112
|
-
fill:
|
|
2466
|
+
"font-size": R.value.axisLabelsFontSize,
|
|
2467
|
+
fill: R.value.color,
|
|
2113
2468
|
"text-anchor": "middle",
|
|
2114
2469
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2115
|
-
y: K.value.height -
|
|
2116
|
-
}, D(
|
|
2117
|
-
|
|
2470
|
+
y: K.value.height - R.value.axisLabelsFontSize / 3
|
|
2471
|
+
}, D(R.value.xAxisLabel), 9, vn)], 512)) : g("", !0),
|
|
2472
|
+
R.value.yAxisLabel && G.value === A.LINE ? (C(), _("g", {
|
|
2118
2473
|
key: 2,
|
|
2119
2474
|
ref_key: "yAxisLabel",
|
|
2120
|
-
ref:
|
|
2475
|
+
ref: Wn
|
|
2121
2476
|
}, [v("text", {
|
|
2122
|
-
"font-size":
|
|
2123
|
-
fill:
|
|
2124
|
-
transform: `translate(${
|
|
2477
|
+
"font-size": R.value.axisLabelsFontSize,
|
|
2478
|
+
fill: R.value.color,
|
|
2479
|
+
transform: `translate(${R.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2125
2480
|
"text-anchor": "middle"
|
|
2126
|
-
}, D(
|
|
2127
|
-
|
|
2481
|
+
}, D(R.value.yAxisLabel), 9, yn)], 512)) : g("", !0),
|
|
2482
|
+
R.value.yAxisLabel && G.value === A.BAR ? (C(), _("g", {
|
|
2128
2483
|
key: 3,
|
|
2129
2484
|
ref_key: "yAxisLabel",
|
|
2130
|
-
ref:
|
|
2485
|
+
ref: Wn
|
|
2131
2486
|
}, [v("text", {
|
|
2132
|
-
"font-size":
|
|
2133
|
-
fill:
|
|
2134
|
-
transform: `translate(${
|
|
2487
|
+
"font-size": R.value.axisLabelsFontSize,
|
|
2488
|
+
fill: R.value.color,
|
|
2489
|
+
transform: `translate(${R.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2135
2490
|
"text-anchor": "middle"
|
|
2136
|
-
}, D(
|
|
2137
|
-
])) : g("", !0)
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2491
|
+
}, D(R.value.yAxisLabel), 9, bn)], 512)) : g("", !0)
|
|
2492
|
+
])) : g("", !0),
|
|
2493
|
+
Ti.value ? (C(), _("rect", {
|
|
2494
|
+
key: 7,
|
|
2495
|
+
x: Ti.value.x,
|
|
2496
|
+
y: Ti.value.y,
|
|
2497
|
+
width: Ti.value.width,
|
|
2498
|
+
height: Ti.value.height,
|
|
2499
|
+
fill: ei.value.selection.fill,
|
|
2500
|
+
"fill-opacity": ei.value.selection.fillOpacity,
|
|
2501
|
+
stroke: ei.value.selection.stroke,
|
|
2502
|
+
"stroke-opacity": ei.value.selection.strokeOpacity,
|
|
2503
|
+
"stroke-width": ei.value.selection.strokeWidth,
|
|
2504
|
+
"stroke-dasharray": ei.value.selection.strokeDasharray,
|
|
2505
|
+
"stroke-linecap": "round",
|
|
2506
|
+
"stroke-linejoin": "round",
|
|
2507
|
+
"pointer-events": "none"
|
|
2508
|
+
}, null, 8, xn)) : g("", !0)
|
|
2509
|
+
], 46, ot)) : g("", !0), e.$slots.hint ? (C(), _("div", Sn, [E(e.$slots, "hint", x(y({
|
|
2510
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
2511
|
+
isVisible: ir.value
|
|
2141
2512
|
})), void 0, !0)])) : g("", !0)]),
|
|
2142
|
-
e.$slots.watermark ? (C(), _("div",
|
|
2143
|
-
|
|
2144
|
-
key: `slicer_${
|
|
2513
|
+
e.$slots.watermark ? (C(), _("div", Cn, [E(e.$slots, "watermark", x(y({ isPrinting: O(Sr) || O(Cr) })), void 0, !0)])) : g("", !0),
|
|
2514
|
+
xr.value ? (C(), _("div", {
|
|
2515
|
+
key: `slicer_${Ln.value}`,
|
|
2145
2516
|
ref_key: "quickChartSlicer",
|
|
2146
|
-
ref:
|
|
2517
|
+
ref: jn
|
|
2147
2518
|
}, [(C(), Ne(De, {
|
|
2148
2519
|
ref_key: "slicerComponent",
|
|
2149
|
-
ref:
|
|
2150
|
-
key: `slicer_${
|
|
2520
|
+
ref: Hr,
|
|
2521
|
+
key: `slicer_${Ln.value}`,
|
|
2151
2522
|
timeLabels: $.value,
|
|
2152
|
-
background:
|
|
2153
|
-
borderColor:
|
|
2154
|
-
fontSize:
|
|
2155
|
-
useResetSlot:
|
|
2156
|
-
textColor:
|
|
2157
|
-
inputColor:
|
|
2158
|
-
selectColor:
|
|
2523
|
+
background: R.value.zoomColor,
|
|
2524
|
+
borderColor: R.value.backgroundColor,
|
|
2525
|
+
fontSize: R.value.zoomFontSize,
|
|
2526
|
+
useResetSlot: R.value.zoomUseResetSlot,
|
|
2527
|
+
textColor: R.value.color,
|
|
2528
|
+
inputColor: R.value.zoomColor,
|
|
2529
|
+
selectColor: R.value.zoomHighlightColor,
|
|
2159
2530
|
max: W.value.maxSeriesLength,
|
|
2160
2531
|
min: 0,
|
|
2161
2532
|
valueStart: X.value.start,
|
|
2162
2533
|
valueEnd: X.value.end,
|
|
2163
|
-
smoothMinimap:
|
|
2164
|
-
minimapSelectedColor:
|
|
2165
|
-
minimapSelectedColorOpacity:
|
|
2166
|
-
minimapSelectionRadius:
|
|
2167
|
-
minimapLineColor:
|
|
2168
|
-
minimap:
|
|
2169
|
-
minimapIndicatorColor:
|
|
2170
|
-
verticalHandles:
|
|
2534
|
+
smoothMinimap: R.value.zoomMinimap.smooth,
|
|
2535
|
+
minimapSelectedColor: R.value.zoomMinimap.selectedColor,
|
|
2536
|
+
minimapSelectedColorOpacity: R.value.zoomMinimap.selectedColorOpacity,
|
|
2537
|
+
minimapSelectionRadius: R.value.zoomMinimap.selectionRadius,
|
|
2538
|
+
minimapLineColor: R.value.zoomMinimap.lineColor,
|
|
2539
|
+
minimap: _i.value,
|
|
2540
|
+
minimapIndicatorColor: R.value.zoomMinimap.indicatorColor,
|
|
2541
|
+
verticalHandles: R.value.zoomMinimap.verticalHandles,
|
|
2171
2542
|
minimapSelectedIndex: J.value,
|
|
2172
|
-
start:
|
|
2173
|
-
"onUpdate:
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2543
|
+
"onUpdate:start": hi,
|
|
2544
|
+
"onUpdate:end": gi,
|
|
2545
|
+
refreshStartPoint: R.value.zoomStartIndex === null ? 0 : R.value.zoomStartIndex,
|
|
2546
|
+
refreshEndPoint: R.value.zoomEndIndex === null ? W.value.maxSeriesLength : R.value.zoomEndIndex + 1,
|
|
2547
|
+
enableRangeHandles: R.value.zoomEnableRangeHandles,
|
|
2548
|
+
enableSelectionDrag: R.value.zoomEnableSelectionDrag,
|
|
2549
|
+
minimapCompact: R.value.zoomMinimap.compact,
|
|
2550
|
+
minimapMerged: R.value.zoomMinimap.merged,
|
|
2551
|
+
allMinimaps: Hi.value,
|
|
2552
|
+
minimapFrameColor: R.value.zoomMinimap.frameColor,
|
|
2553
|
+
additionalMinimapHeight: R.value.zoomMinimap.additionalHeight,
|
|
2554
|
+
handleType: R.value.zoomMinimap.handleType,
|
|
2555
|
+
handleWidth: R.value.zoomMinimap.handleWidth,
|
|
2556
|
+
handleBorderWidth: R.value.zoomMinimap.handleBorderWidth,
|
|
2557
|
+
handleIconColor: R.value.zoomMinimap.handleIconColor,
|
|
2558
|
+
handleBorderColor: R.value.zoomMinimap.handleBorderColor,
|
|
2559
|
+
handleFill: R.value.zoomMinimap.handleFill,
|
|
2560
|
+
focusOnDrag: R.value.zoomFocusOnDrag,
|
|
2561
|
+
focusRangeRatio: R.value.zoomFocusRangeRatio,
|
|
2562
|
+
maxWidth: R.value.zoomMaxWidth,
|
|
2563
|
+
minimapLeftInsetRatio: Bi.value,
|
|
2564
|
+
minimapRightInsetRatio: Vi.value,
|
|
2565
|
+
onReset: n[0] ||= () => pi({
|
|
2566
|
+
applyControlledZoom: !1,
|
|
2567
|
+
publish: !0
|
|
2568
|
+
}),
|
|
2569
|
+
onTrapMouse: zr
|
|
2198
2570
|
}, {
|
|
2199
2571
|
"reset-action": k(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
|
|
2200
2572
|
_: 3
|
|
2201
|
-
}, 8, /* @__PURE__ */ "timeLabels.background.borderColor.fontSize.useResetSlot.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.
|
|
2202
|
-
v("div", { id: `legend-bottom-${P.value}` }, null, 8,
|
|
2203
|
-
|
|
2573
|
+
}, 8, /* @__PURE__ */ "timeLabels.background.borderColor.fontSize.useResetSlot.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio".split(".")))])) : g("", !0),
|
|
2574
|
+
v("div", { id: `legend-bottom-${P.value}` }, null, 8, wn),
|
|
2575
|
+
Rn.value && R.value.showLegend ? (C(), Ne(Me, {
|
|
2204
2576
|
key: 7,
|
|
2205
|
-
to:
|
|
2206
|
-
}, [
|
|
2577
|
+
to: R.value.legendPosition === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2578
|
+
}, [R.value.showLegend ? (C(), _("div", {
|
|
2207
2579
|
key: 0,
|
|
2208
2580
|
ref_key: "quickChartLegend",
|
|
2209
|
-
ref:
|
|
2581
|
+
ref: An,
|
|
2210
2582
|
class: "vue-ui-quick-chart-legend",
|
|
2211
|
-
style: S(`background:transparent;color:${
|
|
2583
|
+
style: S(`background:transparent;color:${R.value.color}`)
|
|
2212
2584
|
}, [
|
|
2213
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) &&
|
|
2585
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && R.value.showLegendSelectAllToggle && !O(or) ? (C(), Ne(Oe, {
|
|
2214
2586
|
key: 0,
|
|
2215
|
-
backgroundColor:
|
|
2216
|
-
color:
|
|
2217
|
-
fontSize:
|
|
2587
|
+
backgroundColor: R.value.legendSelectAllToggleBackgroundColor,
|
|
2588
|
+
color: R.value.legendSelectAllToggleColor,
|
|
2589
|
+
fontSize: R.value.legendFontSize,
|
|
2218
2590
|
checked: L.value.length > 0,
|
|
2219
|
-
isCursorPointer:
|
|
2220
|
-
onToggle:
|
|
2591
|
+
isCursorPointer: nr.value,
|
|
2592
|
+
onToggle: Nr
|
|
2221
2593
|
}, null, 8, [
|
|
2222
2594
|
"backgroundColor",
|
|
2223
2595
|
"color",
|
|
@@ -2227,146 +2599,146 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2227
2599
|
])) : g("", !0),
|
|
2228
2600
|
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(Y.value.legend, (n, r) => (C(), _("div", {
|
|
2229
2601
|
class: "vue-ui-quick-chart-legend-item",
|
|
2230
|
-
onClick: (e) =>
|
|
2231
|
-
style: S(`cursor: ${Y.value.legend.length > 1 &&
|
|
2602
|
+
onClick: (e) => Rr(n, Y.value.dataset),
|
|
2603
|
+
style: S(`cursor: ${Y.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(n.id) ? "0.5" : "1"}`),
|
|
2232
2604
|
role: "button",
|
|
2233
2605
|
tabindex: "0",
|
|
2234
2606
|
onKeydown: (e) => {
|
|
2235
|
-
|
|
2236
|
-
|
|
2607
|
+
oa(e, () => {
|
|
2608
|
+
Rr(n, Y.value.dataset);
|
|
2237
2609
|
});
|
|
2238
2610
|
}
|
|
2239
|
-
}, [
|
|
2611
|
+
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2240
2612
|
...n,
|
|
2241
2613
|
isSegregated: L.value.includes(n.id),
|
|
2242
2614
|
segregate: () => {
|
|
2243
|
-
|
|
2615
|
+
Rr(n, Y.value.dataset);
|
|
2244
2616
|
}
|
|
2245
2617
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2246
2618
|
Fe(O(qe), {
|
|
2247
|
-
name:
|
|
2619
|
+
name: R.value.legendIcon,
|
|
2248
2620
|
stroke: n.color,
|
|
2249
|
-
size:
|
|
2621
|
+
size: R.value.legendIconSize
|
|
2250
2622
|
}, null, 8, [
|
|
2251
2623
|
"name",
|
|
2252
2624
|
"stroke",
|
|
2253
2625
|
"size"
|
|
2254
2626
|
]),
|
|
2255
|
-
v("span", { style: S(`font-size:${
|
|
2256
|
-
v("span", { style: S(`font-size:${
|
|
2257
|
-
p:
|
|
2627
|
+
v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(n.name), 5),
|
|
2628
|
+
v("span", { style: S(`font-size:${R.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(n.id) ? "-" : O(p)(R.value.formatter, n.absoluteValue, O(t)({
|
|
2629
|
+
p: R.value.valuePrefix,
|
|
2258
2630
|
v: n.absoluteValue,
|
|
2259
|
-
s:
|
|
2260
|
-
r:
|
|
2631
|
+
s: R.value.valueSuffix,
|
|
2632
|
+
r: R.value.dataLabelRoundingValue
|
|
2261
2633
|
}), {
|
|
2262
2634
|
datapoint: n,
|
|
2263
2635
|
seriesIndex: r
|
|
2264
2636
|
})), 5),
|
|
2265
2637
|
L.value.includes(n.id) ? (C(), _("span", {
|
|
2266
2638
|
key: 0,
|
|
2267
|
-
style: S(`font-size:${
|
|
2268
|
-
}, " ( - % ) ", 4)) :
|
|
2639
|
+
style: S(`font-size:${R.value.legendFontSize}px`)
|
|
2640
|
+
}, " ( - % ) ", 4)) : Lr.value ? (C(), _("span", {
|
|
2269
2641
|
key: 1,
|
|
2270
|
-
style: S(`font-size:${
|
|
2642
|
+
style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2271
2643
|
}, " ( - % ) ", 4)) : (C(), _("span", {
|
|
2272
2644
|
key: 2,
|
|
2273
|
-
style: S(`font-size:${
|
|
2645
|
+
style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2274
2646
|
}, " (" + D(O(t)({
|
|
2275
2647
|
v: n.value / Y.value.total * 100,
|
|
2276
2648
|
s: "%",
|
|
2277
|
-
r:
|
|
2649
|
+
r: R.value.dataLabelRoundingPercentage
|
|
2278
2650
|
})) + ") ", 5))
|
|
2279
|
-
], 64))], 44,
|
|
2651
|
+
], 64))], 44, Tn))), 256)) : g("", !0),
|
|
2280
2652
|
G.value === A.LINE ? (C(!0), _(m, { key: 2 }, T(Z.value.legend, (t, n) => (C(), _("div", {
|
|
2281
2653
|
class: "vue-ui-quick-chart-legend-item",
|
|
2282
2654
|
onClick: (e) => {
|
|
2283
|
-
|
|
2655
|
+
Pr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2284
2656
|
},
|
|
2285
|
-
style: S(`cursor: ${Z.value.legend.length > 1 &&
|
|
2657
|
+
style: S(`cursor: ${Z.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2286
2658
|
role: "button",
|
|
2287
2659
|
tabindex: "0",
|
|
2288
2660
|
onKeydown: (e) => {
|
|
2289
|
-
|
|
2290
|
-
|
|
2661
|
+
oa(e, () => {
|
|
2662
|
+
Pr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2291
2663
|
});
|
|
2292
2664
|
}
|
|
2293
|
-
}, [
|
|
2665
|
+
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2294
2666
|
...t,
|
|
2295
2667
|
isSegregated: L.value.includes(t.id),
|
|
2296
2668
|
segregate: () => {
|
|
2297
|
-
|
|
2669
|
+
Pr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2298
2670
|
}
|
|
2299
2671
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2300
|
-
name:
|
|
2672
|
+
name: R.value.legendIcon,
|
|
2301
2673
|
stroke: t.color,
|
|
2302
|
-
size:
|
|
2674
|
+
size: R.value.legendIconSize
|
|
2303
2675
|
}, null, 8, [
|
|
2304
2676
|
"name",
|
|
2305
2677
|
"stroke",
|
|
2306
2678
|
"size"
|
|
2307
|
-
]), v("span", { style: S(`font-size:${
|
|
2679
|
+
]), v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, En))), 256)) : g("", !0),
|
|
2308
2680
|
G.value === A.BAR ? (C(!0), _(m, { key: 3 }, T(Q.value.legend, (t, n) => (C(), _("div", {
|
|
2309
2681
|
class: "vue-ui-quick-chart-legend-item",
|
|
2310
2682
|
onClick: (e) => {
|
|
2311
|
-
|
|
2683
|
+
Pr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2312
2684
|
},
|
|
2313
|
-
style: S(`cursor: ${Q.value.legend.length > 1 &&
|
|
2685
|
+
style: S(`cursor: ${Q.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2314
2686
|
role: "button",
|
|
2315
2687
|
tabindex: "0",
|
|
2316
2688
|
onKeydown: (e) => {
|
|
2317
|
-
|
|
2318
|
-
|
|
2689
|
+
oa(e, () => {
|
|
2690
|
+
Pr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2319
2691
|
});
|
|
2320
2692
|
}
|
|
2321
|
-
}, [
|
|
2693
|
+
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2322
2694
|
...t,
|
|
2323
2695
|
isSegregated: L.value.includes(t.id),
|
|
2324
2696
|
segregate: () => {
|
|
2325
|
-
|
|
2697
|
+
Pr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2326
2698
|
}
|
|
2327
2699
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2328
|
-
name:
|
|
2700
|
+
name: R.value.legendIcon,
|
|
2329
2701
|
stroke: t.color,
|
|
2330
|
-
size:
|
|
2702
|
+
size: R.value.legendIconSize
|
|
2331
2703
|
}, null, 8, [
|
|
2332
2704
|
"name",
|
|
2333
2705
|
"stroke",
|
|
2334
2706
|
"size"
|
|
2335
|
-
]), v("span", { style: S(`font-size:${
|
|
2707
|
+
]), v("span", { style: S(`font-size:${R.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, Dn))), 256)) : g("", !0)
|
|
2336
2708
|
], 4)) : g("", !0)], 8, ["to"])) : g("", !0),
|
|
2337
2709
|
e.$slots.source ? (C(), _("div", {
|
|
2338
2710
|
key: 8,
|
|
2339
2711
|
ref_key: "source",
|
|
2340
|
-
ref:
|
|
2712
|
+
ref: Pn,
|
|
2341
2713
|
dir: "auto"
|
|
2342
2714
|
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
2343
2715
|
Fe(O(Ze), {
|
|
2344
|
-
teleportTo:
|
|
2345
|
-
show:
|
|
2346
|
-
backgroundColor:
|
|
2347
|
-
color:
|
|
2348
|
-
borderRadius:
|
|
2349
|
-
borderColor:
|
|
2350
|
-
borderWidth:
|
|
2351
|
-
fontSize:
|
|
2352
|
-
backgroundOpacity:
|
|
2353
|
-
position:
|
|
2354
|
-
offsetX:
|
|
2355
|
-
offsetY:
|
|
2716
|
+
teleportTo: R.value.tooltipTeleportTo,
|
|
2717
|
+
show: Dr.value.showTooltip && F.value,
|
|
2718
|
+
backgroundColor: R.value.backgroundColor,
|
|
2719
|
+
color: R.value.color,
|
|
2720
|
+
borderRadius: R.value.tooltipBorderRadius,
|
|
2721
|
+
borderColor: R.value.tooltipBorderColor,
|
|
2722
|
+
borderWidth: R.value.tooltipBorderWidth,
|
|
2723
|
+
fontSize: R.value.tooltipFontSize,
|
|
2724
|
+
backgroundOpacity: R.value.tooltipBackgroundOpacity,
|
|
2725
|
+
position: R.value.tooltipPosition,
|
|
2726
|
+
offsetX: R.value.tooltipOffsetX,
|
|
2727
|
+
offsetY: R.value.tooltipOffsetY,
|
|
2356
2728
|
parent: N.value,
|
|
2357
|
-
content:
|
|
2358
|
-
isFullscreen:
|
|
2359
|
-
isCustom: O(r)(
|
|
2360
|
-
smooth:
|
|
2361
|
-
smoothForce:
|
|
2362
|
-
smoothSnapThreshold:
|
|
2363
|
-
backdropFilter:
|
|
2364
|
-
isA11yMode:
|
|
2365
|
-
a11yPosition:
|
|
2729
|
+
content: Nn.value,
|
|
2730
|
+
isFullscreen: Gi.value,
|
|
2731
|
+
isCustom: O(r)(R.value.tooltipCustomFormat),
|
|
2732
|
+
smooth: R.value.tooltipSmooth,
|
|
2733
|
+
smoothForce: R.value.tooltipSmoothForce,
|
|
2734
|
+
smoothSnapThreshold: R.value.tooltipSmoothSnapThreshold,
|
|
2735
|
+
backdropFilter: R.value.tooltipBackdropFilter,
|
|
2736
|
+
isA11yMode: V.value === "keyboard",
|
|
2737
|
+
a11yPosition: rr.value
|
|
2366
2738
|
}, {
|
|
2367
|
-
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...
|
|
2368
|
-
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...
|
|
2369
|
-
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...
|
|
2739
|
+
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Mn.value })), void 0, !0)]),
|
|
2740
|
+
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Mn.value })), void 0, !0)]),
|
|
2741
|
+
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...Mn.value })), void 0, !0)]),
|
|
2370
2742
|
_: 3
|
|
2371
2743
|
}, 8, [
|
|
2372
2744
|
"teleportTo",
|
|
@@ -2392,12 +2764,12 @@ var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it =
|
|
|
2392
2764
|
"isA11yMode",
|
|
2393
2765
|
"a11yPosition"
|
|
2394
2766
|
]),
|
|
2395
|
-
E(e.$slots, "skeleton", {}, () => [O(
|
|
2396
|
-
], 46, nt)) : (C(), _("div",
|
|
2767
|
+
E(e.$slots, "skeleton", {}, () => [O(or) ? (C(), Ne(ge, { key: 0 })) : g("", !0)], !0)
|
|
2768
|
+
], 46, nt)) : (C(), _("div", On, [Fe(O(qe), {
|
|
2397
2769
|
name: "circleCancel",
|
|
2398
2770
|
stroke: "red"
|
|
2399
|
-
}), n[
|
|
2771
|
+
}), n[4] ||= v("span", null, "Dataset is not processable", -1)]));
|
|
2400
2772
|
}
|
|
2401
|
-
}, [["__scopeId", "data-v-
|
|
2773
|
+
}, [["__scopeId", "data-v-6e6dae1f"]]);
|
|
2402
2774
|
//#endregion
|
|
2403
|
-
export { N as n,
|
|
2775
|
+
export { N as n, kn as t };
|