vue-data-ui 3.22.2 → 3.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BGhJI-qh.js → Arrow-Ct8T_Lyp.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DLuXvUbs.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-CX_ChMz-.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-qL0O9ooF.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-BI5sLb6d.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-CwyWzPx_.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-KEMekOVu.js} +2 -2
- package/dist/{Legend-BVDhEEsC.js → Legend--t7Mbp9Z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-CeNJtWON.js} +3 -3
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-D-_GVhxY.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-DkZYRnrW.js} +3 -3
- package/dist/{Shape-C5OvuwII.js → Shape-S-7v8SAE.js} +1 -1
- package/dist/{Slicer-ClR833cP.js → Slicer-CpBaahpI.js} +2 -2
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-Co-V9YBf.js} +2 -2
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-D2BBjZKc.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-Cxgd_JyY.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BqdN_ZBE.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-WIxTs7Xf.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-rjAIVHxa.js → dom-to-png-DsEPQbU1.js} +1 -1
- package/dist/{exposedLib-CffbQxjN.js → exposedLib-BkRxoSB9.js} +1 -1
- package/dist/{img-BCAOkqfM.js → img-CyjhDDaM.js} +1 -1
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-WDjGa7EP.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-NmjQazSn.js} +1 -1
- package/dist/{package-CILLITOI.js → package-KQdsc0if.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-BVocBz-Y.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-BUbY65H0.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 +10 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DBv7sw1h.js} +1 -1
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-C9viY7oU.js} +1 -1
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-DRYgV-XS.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-CDgunUso.js} +68 -68
- package/dist/vue-data-ui.js +71 -71
- package/dist/{vue-ui-3d-bar-DxfNdF2e.js → vue-ui-3d-bar-BrSoUZQ_.js} +6 -6
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-vYLqcJJd.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-CCAcpoA2.js} +6 -6
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CmjcPCRy.js} +6 -6
- package/dist/{vue-ui-bullet-9gtGJaGb.js → vue-ui-bullet-BYrQAbvp.js} +7 -7
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-UWs3Fols.js} +6 -6
- package/dist/{vue-ui-candlestick-CJ_VVYbJ.js → vue-ui-candlestick-CJw3R21J.js} +7 -7
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-DiPXX1eV.js} +4 -4
- package/dist/{vue-ui-chestnut-D3-ck2h2.js → vue-ui-chestnut-DJkyr3uK.js} +5 -5
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-MB6BktFk.js} +8 -8
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-D4n5rKtA.js} +6 -6
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-Cu_HGeoy.js} +3 -3
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-DQlbTBPB.js} +7 -7
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BD-M8q8G.js} +69 -69
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-C21SWRDQ.js} +3 -3
- package/dist/{vue-ui-donut-NHjQzFO5.js → vue-ui-donut-BPOS4Aoe.js} +10 -10
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-Djiw7Rz1.js} +2 -2
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BkI06V1N.js} +9 -9
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Yn79Apx7.js} +7 -7
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-DfWx60DS.js} +7 -7
- package/dist/{vue-ui-funnel-B_bK0jJB.js → vue-ui-funnel-hsmCJgE5.js} +6 -6
- package/dist/{vue-ui-galaxy-WVCUzcYc.js → vue-ui-galaxy-BC-D8ZZ6.js} +9 -9
- package/dist/{vue-ui-gauge-Cqeko0wA.js → vue-ui-gauge-CnDTR46T.js} +7 -7
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DdB-gJBh.js} +7 -7
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-AMWvrL1N.js} +3 -3
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-8cmpKIN5.js} +7 -7
- package/dist/{vue-ui-history-plot-BGmcDg2w.js → vue-ui-history-plot-ZcraxoDy.js} +8 -8
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-D32lWjQJ.js} +10 -10
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-B3FdCV-T.js} +3 -3
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-Bk-5TDbT.js} +2 -2
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-B4fNC1Bk.js} +5 -5
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-_mw9D1wg.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DPhDz07R.js} +9 -9
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-Cob0y2FO.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-ColST3Jj.js → vue-ui-parallel-coordinate-plot-BPyfEQEf.js} +9 -9
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-D6wv44Hs.js} +9 -9
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-EeT-lzAq.js} +7 -7
- package/dist/{vue-ui-radar-DqDn14DL.js → vue-ui-radar-DNid-gVu.js} +9 -9
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-DlMTyra_.js} +2 -2
- package/dist/{vue-ui-relation-circle-BvfZqcK0.js → vue-ui-relation-circle-DALWYwuI.js} +7 -7
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-VO2-zPGd.js} +9 -9
- package/dist/{vue-ui-rings-Ds-sgNPK.js → vue-ui-rings-CGU8bnut.js} +10 -10
- package/dist/{vue-ui-scatter-BgOVUzQ3.js → vue-ui-scatter-CDy2LLD_.js} +9 -9
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-ImkpUdwJ.js} +3 -3
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-Ct3ijoOw.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-_b2gVafQ.js} +3 -3
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-CRH8b1fM.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-Z_lgEp7i.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DgruLf33.js → vue-ui-sparkhistogram-DzukoeRA.js} +4 -4
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-B-QS62r4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-DICmDZrB.js} +4 -4
- package/dist/vue-ui-stackbar-BRqqDp3a.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-DVY_4Fmh.js} +406 -388
- package/dist/{vue-ui-strip-plot-DSKOrJZX.js → vue-ui-strip-plot-DUv9SsML.js} +7 -7
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-ByFPF5fJ.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-DfLfYJiR.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-Gi1MQO-E.js} +4 -4
- package/dist/{vue-ui-thermometer-w3eeJv9s.js → vue-ui-thermometer-MfzmVt9N.js} +7 -7
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-CrIq3NmZ.js} +5 -5
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BB3VV4tK.js} +6 -6
- package/dist/{vue-ui-treemap-BaOMXTR1.js → vue-ui-treemap-CeE1TT6j.js} +9 -9
- package/dist/{vue-ui-waffle-Bo22Ph8n.js → vue-ui-waffle-KDOR3fMN.js} +10 -10
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-DZq3C6wh.js} +6 -6
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-BNK1nfDn.js} +7 -7
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-D3F772fb.js} +7 -7
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-DOnq4Na2.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-OajdJbzS.js} +11 -11
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-f56XjeNS.js} +2 -2
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t, Ct as n, D as r, Et as i, Ft as a, G as o, H as s, I as c, J as l, P as u, S as d, Ut as f, Vt as p, X as m, _t as h, ct as g, g as _, gt as ee, h as v, i as y, it as te, k as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { c as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { Fragment as
|
|
2
|
+
import { Bt as t, Ct as n, D as r, Et as i, Ft as a, G as o, H as s, I as c, J as l, P as u, S as d, Ut as f, Vt as p, X as m, _t as h, ct as g, g as _, gt as ee, h as v, i as y, it as te, k as b, kt as ne, nt as re, s as ie, t as ae, v as oe, x as se, y as ce, zt as le } from "./lib-NmjQazSn.js";
|
|
3
|
+
import { n as ue, r as de, t as fe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as pe } from "./useConfig-Bf_EBbe3.js";
|
|
5
|
+
import { t as me } from "./usePrinter-DRYgV-XS.js";
|
|
6
|
+
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as ve } from "./useNestedProp-C9viY7oU.js";
|
|
9
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as be } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Se } from "./img-CyjhDDaM.js";
|
|
13
|
+
import { n as Ce } from "./Title-Cxgd_JyY.js";
|
|
14
|
+
import { t as we } from "./Shape-S-7v8SAE.js";
|
|
15
|
+
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { c as Ee } from "./canvas-lib-BOP_HS11.js";
|
|
17
|
+
import { t as De } from "./useResponsive-BfnK0KxU.js";
|
|
18
|
+
import { t as Oe } from "./SlicerPreview-Co-V9YBf.js";
|
|
19
|
+
import { t as ke } from "./BaseLegendToggle-qL0O9ooF.js";
|
|
20
|
+
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
+
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
22
|
+
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
23
|
+
import { t as Ne } from "./Legend--t7Mbp9Z.js";
|
|
24
|
+
import { t as Pe } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
25
|
+
import { Fragment as x, Teleport as Fe, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as ze, guardReactiveProps as D, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as O, normalizeStyle as Ue, onBeforeUnmount as We, onMounted as Ge, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as Je, toRefs as Ye, unref as N, useSlots as Xe, watch as Ze, watchEffect as Qe, withCtx as P } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-stackline.vue
|
|
27
27
|
var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
|
|
28
28
|
"aria-describedby",
|
|
@@ -158,7 +158,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
158
158
|
}, Pt = {
|
|
159
159
|
key: 5,
|
|
160
160
|
class: "vue-data-ui-watermark"
|
|
161
|
-
}, Ft = ["onClick"], It = ["innerHTML"], Lt = ["innerHTML"], Rt = ["id"], zt = /*#__PURE__*/
|
|
161
|
+
}, Ft = ["onClick"], It = ["innerHTML"], Lt = ["innerHTML"], Rt = ["id"], zt = /*#__PURE__*/ Te({
|
|
162
162
|
__name: "vue-ui-stackline",
|
|
163
163
|
props: {
|
|
164
164
|
config: {
|
|
@@ -185,19 +185,19 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
185
185
|
"selectX",
|
|
186
186
|
"copyAlt"
|
|
187
187
|
],
|
|
188
|
-
setup(e, { expose:
|
|
189
|
-
let zt =
|
|
188
|
+
setup(e, { expose: Te, emit: $e }) {
|
|
189
|
+
let zt = ze(() => import("./Tooltip-BqdN_ZBE.js")), Bt = ze(() => import("./BaseIcon-CX_ChMz-.js").then((e) => e.n)), Vt = ze(() => import("./vue-ui-accordion-vYLqcJJd.js").then((e) => e.n)), Ht = ze(() => import("./DataTable-KEMekOVu.js")), Ut = ze(() => import("./PenAndPaper-DkZYRnrW.js").then((e) => e.t)), Wt = ze(() => import("./UserOptions-WIxTs7Xf.js").then((e) => e.n)), Gt = ze(() => import("./PackageVersion-D-_GVhxY.js").then((e) => e.t)), Kt = ze(() => import("./BaseDraggableDialog-DLuXvUbs.js").then((e) => e.n)), { vue_ui_stackline: qt } = pe(), { isThemeValid: Jt, warnInvalidTheme: Yt } = ye(), Xt = Xe(), F = e, I = $e, Zt = S({
|
|
190
190
|
get() {
|
|
191
191
|
return !!F.dataset && F.dataset.length;
|
|
192
192
|
},
|
|
193
193
|
set(e) {
|
|
194
194
|
return e;
|
|
195
195
|
}
|
|
196
|
-
}),
|
|
196
|
+
}), Qt = A(null), L = A(s()), $t = A(!1), R = A([]), en = A(0), tn = A(null), nn = A(null), rn = A(null), an = A(null), on = A(null), sn = A(!1), cn = A(!1), ln = A(0), un = A(0), dn = A(0), fn = A(!1), pn = A(null), mn = A(null), hn = A(!1), gn = A(!1), _n = A(!1), vn = A(null), yn = A(null), bn = A(null), xn = A(null), Sn = A(null), Cn = qe(null), wn = A(!1), Tn = A(0), En = A(0), z = A(null), Dn = A({
|
|
197
197
|
x: 0,
|
|
198
198
|
y: 0
|
|
199
|
-
}), On =
|
|
200
|
-
elementRef:
|
|
199
|
+
}), On = A("pointer"), kn = be({
|
|
200
|
+
elementRef: Cn,
|
|
201
201
|
minimumWidth: 2,
|
|
202
202
|
minimumHeight: 2,
|
|
203
203
|
stableFramesRequired: 2,
|
|
@@ -207,7 +207,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
function An() {
|
|
210
|
-
|
|
210
|
+
Cn.value = Qt.value?.parentNode ?? null;
|
|
211
211
|
}
|
|
212
212
|
function jn() {
|
|
213
213
|
return new Promise((e) => {
|
|
@@ -217,17 +217,17 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
async function Mn() {
|
|
220
|
-
let e = ++
|
|
221
|
-
|
|
220
|
+
let e = ++En.value;
|
|
221
|
+
wn.value = !1, await Ve(), await jn(), await jn(), e === En.value && (Tn.value += 1, wn.value = !0);
|
|
222
222
|
}
|
|
223
|
-
let Nn =
|
|
223
|
+
let Nn = A(null), Pn = A(!1);
|
|
224
224
|
function Fn() {
|
|
225
225
|
Pn.value = !Pn.value;
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
An(), kn.start(),
|
|
227
|
+
Ge(() => {
|
|
228
|
+
An(), kn.start(), fn.value = !0, ar(), Mn();
|
|
229
229
|
});
|
|
230
|
-
let B =
|
|
230
|
+
let B = A(Kn()), V = S(() => B.value.userOptions.useCursorPointer), In = S(() => f({
|
|
231
231
|
defaultConfig: {
|
|
232
232
|
userOptions: { show: !1 },
|
|
233
233
|
useCssAnimation: !1,
|
|
@@ -273,7 +273,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
273
273
|
} }
|
|
274
274
|
},
|
|
275
275
|
userConfig: B.value.skeletonConfig ?? {}
|
|
276
|
-
})), { loading:
|
|
276
|
+
})), { loading: Ln, FINAL_DATASET: Rn, manualLoading: zn } = he({
|
|
277
277
|
...Ye(F),
|
|
278
278
|
FINAL_CONFIG: B,
|
|
279
279
|
prepareConfig: Kn,
|
|
@@ -315,53 +315,53 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
315
315
|
}],
|
|
316
316
|
skeletonConfig: f({
|
|
317
317
|
defaultConfig: B.value,
|
|
318
|
-
userConfig:
|
|
318
|
+
userConfig: In.value
|
|
319
319
|
})
|
|
320
|
-
}), { userOptionsVisible:
|
|
320
|
+
}), { userOptionsVisible: Bn, setUserOptionsVisibility: Vn, keepUserOptionState: Hn } = je({ config: B.value }), { svgRef: Un } = Me({ config: B.value.style.chart.title });
|
|
321
321
|
function Wn() {
|
|
322
|
-
|
|
322
|
+
hn.value = !0, Vn(!0);
|
|
323
323
|
}
|
|
324
324
|
function Gn() {
|
|
325
|
-
|
|
325
|
+
Vn(!1), hn.value = !1, z.value = null, On.value = "pointer", $t.value = !1, $.value = null, I("selectX", {
|
|
326
326
|
index: null,
|
|
327
327
|
indexLabel: null,
|
|
328
328
|
dataset: null
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
function Kn() {
|
|
332
|
-
let e =
|
|
332
|
+
let e = ve({
|
|
333
333
|
userConfig: F.config,
|
|
334
334
|
defaultConfig: qt
|
|
335
335
|
}), t = {}, n = e.theme;
|
|
336
336
|
if (n) if (!Jt.value(e)) Yt(e), t = e;
|
|
337
337
|
else {
|
|
338
|
-
let r =
|
|
339
|
-
userConfig:
|
|
338
|
+
let r = ve({
|
|
339
|
+
userConfig: Pe[n] || F.config,
|
|
340
340
|
defaultConfig: e
|
|
341
341
|
});
|
|
342
342
|
t = {
|
|
343
|
-
...
|
|
343
|
+
...ve({
|
|
344
344
|
userConfig: F.config,
|
|
345
345
|
defaultConfig: r
|
|
346
346
|
}),
|
|
347
|
-
customPalette: e.customPalette.length ? e.customPalette : p[n] ||
|
|
347
|
+
customPalette: e.customPalette.length ? e.customPalette : p[n] || ne
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
else t = e;
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
|
-
let qn =
|
|
353
|
+
let qn = S(() => B.value.style.chart.lines.dataLabels.hideUnderValue !== null), Jn = S(() => B.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
354
354
|
Ze(() => F.config, (e) => {
|
|
355
|
-
|
|
355
|
+
Ln.value || (B.value = Kn()), Bn.value = !B.value.userOptions.showOnChartHover, ar({ resetSlicer: !B.value.style.chart.zoom.keepState }), ln.value += 1, un.value += 1, dn.value += 1, H.value.dataLabels.show = B.value.style.chart.lines.dataLabels.show, H.value.showTable = B.value.table.show, H.value.showTooltip = B.value.style.chart.tooltip.show, U.value.width = B.value.style.chart.width, U.value.height = B.value.style.chart.height, U.value.paddingRatio = {
|
|
356
356
|
top: B.value.style.chart.padding.top / B.value.style.chart.height,
|
|
357
357
|
right: B.value.style.chart.padding.right / B.value.style.chart.width,
|
|
358
358
|
bottom: B.value.style.chart.padding.bottom / B.value.style.chart.height,
|
|
359
359
|
left: B.value.style.chart.padding.left / B.value.style.chart.width
|
|
360
360
|
}, An(), Mn(), !B.value.style.chart.zoom.keepState || !Zr.value || q.value.start === 0 && q.value.end === 0 ? $r() : xr();
|
|
361
361
|
}, { deep: !0 }), Ze(() => F.dataset, (e) => {
|
|
362
|
-
Array.isArray(e) && e.length > 0 && (
|
|
362
|
+
Array.isArray(e) && e.length > 0 && (zn.value = !1), B.value.style.chart.zoom.keepState ? xr() : wr(), An(), Mn();
|
|
363
363
|
}, { deep: !0 });
|
|
364
|
-
let H =
|
|
364
|
+
let H = A({
|
|
365
365
|
dataLabels: { show: B.value.style.chart.lines.dataLabels.show },
|
|
366
366
|
showTable: B.value.table.show,
|
|
367
367
|
showTooltip: B.value.style.chart.tooltip.show
|
|
@@ -373,11 +373,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
373
373
|
showTooltip: B.value.style.chart.tooltip.show
|
|
374
374
|
};
|
|
375
375
|
}, { immediate: !0 });
|
|
376
|
-
let { isPrinting: Yn, isImaging: Xn, generatePdf: Zn, generateImage: Qn } =
|
|
377
|
-
elementId: `stackline_${
|
|
376
|
+
let { isPrinting: Yn, isImaging: Xn, generatePdf: Zn, generateImage: Qn } = me({
|
|
377
|
+
elementId: `stackline_${L.value}`,
|
|
378
378
|
fileName: B.value.style.chart.title.text || "vue-ui-stackline",
|
|
379
379
|
options: B.value.userOptions.print
|
|
380
|
-
}), $n =
|
|
380
|
+
}), $n = S(() => B.value.userOptions.show && !B.value.style.chart.title.text), U = A({
|
|
381
381
|
width: B.value.style.chart.width,
|
|
382
382
|
height: B.value.style.chart.height,
|
|
383
383
|
paddingRatio: {
|
|
@@ -386,13 +386,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
386
386
|
bottom: B.value.style.chart.padding.bottom / B.value.style.chart.height,
|
|
387
387
|
left: B.value.style.chart.padding.left / B.value.style.chart.width
|
|
388
388
|
}
|
|
389
|
-
}), er =
|
|
389
|
+
}), er = S(() => se(B.value.customPalette)), tr = qe(null), nr = qe(null), rr = A(null), ir = S(() => !!B.value.debug);
|
|
390
390
|
function ar({ resetSlicer: e = !0 } = {}) {
|
|
391
391
|
if (i(F.dataset) ? (m({
|
|
392
392
|
componentName: "VueUiStackline",
|
|
393
393
|
type: "dataset",
|
|
394
394
|
debug: ir.value
|
|
395
|
-
}),
|
|
395
|
+
}), zn.value = !0) : F.dataset.forEach((e, t) => {
|
|
396
396
|
g({
|
|
397
397
|
datasetObject: e,
|
|
398
398
|
requiredAttributes: ["name", "series"]
|
|
@@ -403,42 +403,42 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
403
403
|
property: e,
|
|
404
404
|
index: t,
|
|
405
405
|
debug: ir.value
|
|
406
|
-
}),
|
|
406
|
+
}), zn.value = !0;
|
|
407
407
|
});
|
|
408
|
-
}), i(F.dataset) || (
|
|
409
|
-
|
|
408
|
+
}), i(F.dataset) || (zn.value = B.value.loading), setTimeout(() => {
|
|
409
|
+
cn.value = !0;
|
|
410
410
|
}, 10), B.value.responsive) {
|
|
411
|
-
let e =
|
|
412
|
-
|
|
413
|
-
let { width: e, height: t } =
|
|
414
|
-
chart:
|
|
415
|
-
noTitle:
|
|
416
|
-
title: B.value.style.chart.title.text ?
|
|
417
|
-
legend: B.value.style.chart.legend.show ?
|
|
418
|
-
slicer: B.value.style.chart.zoom.show && K.value > 6 ?
|
|
419
|
-
source:
|
|
411
|
+
let e = Ee(() => {
|
|
412
|
+
cn.value = !1;
|
|
413
|
+
let { width: e, height: t } = De({
|
|
414
|
+
chart: Qt.value,
|
|
415
|
+
noTitle: an.value,
|
|
416
|
+
title: B.value.style.chart.title.text ? tn.value : null,
|
|
417
|
+
legend: B.value.style.chart.legend.show ? nn.value : null,
|
|
418
|
+
slicer: B.value.style.chart.zoom.show && K.value > 6 ? rn.value.$el : null,
|
|
419
|
+
source: on.value
|
|
420
420
|
});
|
|
421
421
|
requestAnimationFrame(() => {
|
|
422
422
|
U.value.width = e, U.value.height = t - 12, clearTimeout(rr.value), rr.value = setTimeout(() => {
|
|
423
|
-
|
|
423
|
+
cn.value = !0;
|
|
424
424
|
}, 10);
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
|
-
tr.value && (nr.value && tr.value.unobserve(nr.value), tr.value.disconnect()), tr.value = new ResizeObserver(e), nr.value =
|
|
427
|
+
tr.value && (nr.value && tr.value.unobserve(nr.value), tr.value.disconnect()), tr.value = new ResizeObserver(e), nr.value = Qt.value.parentNode, tr.value.observe(nr.value);
|
|
428
428
|
}
|
|
429
429
|
e && $r();
|
|
430
430
|
}
|
|
431
|
-
|
|
431
|
+
We(() => {
|
|
432
432
|
kn.stop(), tr.value && (nr.value && tr.value.unobserve(nr.value), tr.value.disconnect());
|
|
433
433
|
});
|
|
434
|
-
let or =
|
|
434
|
+
let or = S(() => B.value.style.chart.grid.y.position === "right");
|
|
435
435
|
function sr() {
|
|
436
436
|
let e = 0;
|
|
437
|
-
|
|
437
|
+
bn.value && (e = Array.from(bn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
438
438
|
let n = t.getComputedTextLength();
|
|
439
439
|
return n > e ? n : e;
|
|
440
440
|
}, 0));
|
|
441
|
-
let t =
|
|
441
|
+
let t = yn.value ? yn.value.getBoundingClientRect().width + B.value.style.chart.grid.y.axisName.fontSize + B.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
442
442
|
return {
|
|
443
443
|
left: or.value ? 0 : e + t,
|
|
444
444
|
right: or.value ? e + t : 0,
|
|
@@ -446,9 +446,9 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
446
446
|
yAxisLabelWidth: t
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
let cr =
|
|
449
|
+
let cr = A(0), lr = A(0), ur = A(0);
|
|
450
450
|
function dr() {
|
|
451
|
-
let e =
|
|
451
|
+
let e = xn.value;
|
|
452
452
|
if (!e) {
|
|
453
453
|
lr.value = 0;
|
|
454
454
|
return;
|
|
@@ -467,20 +467,20 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
467
467
|
});
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
We(() => {
|
|
471
471
|
ur.value && cancelAnimationFrame(ur.value), lr.value = 0, cr.value = 0;
|
|
472
472
|
});
|
|
473
|
-
let pr =
|
|
473
|
+
let pr = S(() => {
|
|
474
474
|
let e = 0;
|
|
475
|
-
if (
|
|
476
|
-
e =
|
|
475
|
+
if (vn.value) try {
|
|
476
|
+
e = vn.value.getBBox().height;
|
|
477
477
|
} catch {
|
|
478
478
|
e = 0;
|
|
479
479
|
}
|
|
480
480
|
let t = B.value.style.chart.grid.x.timeLabels.show ? lr.value : 0;
|
|
481
481
|
return e + t;
|
|
482
|
-
}), W =
|
|
483
|
-
|
|
482
|
+
}), W = S(() => {
|
|
483
|
+
Tn.value;
|
|
484
484
|
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = B.value.style.chart.lines.totalValues.show && F.dataset && F.dataset.length > 1 ? B.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
485
485
|
if (B.value.style.chart.grid.y.axisLabels.show) {
|
|
486
486
|
let e = sr();
|
|
@@ -501,7 +501,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
501
501
|
scaleLabelsWidth: o,
|
|
502
502
|
yAxisLabelWidth: s
|
|
503
503
|
};
|
|
504
|
-
}), mr =
|
|
504
|
+
}), mr = S(() => {
|
|
505
505
|
let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
506
506
|
fill: B.value.style.chart.zoom.preview.fill,
|
|
507
507
|
stroke: B.value.style.chart.zoom.preview.stroke,
|
|
@@ -522,8 +522,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
522
522
|
height: r,
|
|
523
523
|
...u
|
|
524
524
|
};
|
|
525
|
-
}), G =
|
|
526
|
-
let n = `stackline_serie_${t}`, r =
|
|
525
|
+
}), G = S(() => Rn.value.map((e, t) => {
|
|
526
|
+
let n = `stackline_serie_${t}`, r = ce(e.color) || er.value[t] || ne[t] || ne[t % ne.length];
|
|
527
527
|
return {
|
|
528
528
|
...e,
|
|
529
529
|
shape: e.shape || "circle",
|
|
@@ -535,36 +535,36 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
535
535
|
id: n,
|
|
536
536
|
color: r
|
|
537
537
|
};
|
|
538
|
-
})), hr =
|
|
539
|
-
let e = Math.max(...G.value.filter((e) => !
|
|
538
|
+
})), hr = S(() => G.value.filter((e) => !R.value.includes(e.id) && !e.standalone)), gr = S(() => G.value.filter((e) => !R.value.includes(e.id) && e.standalone)), K = S(() => {
|
|
539
|
+
let e = Math.max(...G.value.filter((e) => !R.value.includes(e.id)).map((e) => e.series.length));
|
|
540
540
|
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
541
541
|
});
|
|
542
542
|
function _r(e) {
|
|
543
543
|
Nn.value = e;
|
|
544
544
|
}
|
|
545
|
-
let q =
|
|
545
|
+
let q = A({
|
|
546
546
|
start: 0,
|
|
547
|
-
end: Math.max(...
|
|
548
|
-
}), J =
|
|
547
|
+
end: Math.max(...Rn.value.map((e) => e.series.length))
|
|
548
|
+
}), J = A({
|
|
549
549
|
start: 0,
|
|
550
|
-
end: Math.max(...
|
|
550
|
+
end: Math.max(...Rn.value.map((e) => e.series.length))
|
|
551
551
|
});
|
|
552
552
|
function vr(e) {
|
|
553
553
|
return (q.value.start ?? 0) + (e ?? 0);
|
|
554
554
|
}
|
|
555
|
-
let yr =
|
|
555
|
+
let yr = S(() => B.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
556
556
|
function br(e, t) {
|
|
557
557
|
J.value[e] = t;
|
|
558
558
|
}
|
|
559
559
|
function xr() {
|
|
560
560
|
let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
|
|
561
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n,
|
|
561
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, rn.value && (rn.value.setStartValue(t), rn.value.setEndValue(n));
|
|
562
562
|
}
|
|
563
|
-
let Sr =
|
|
563
|
+
let Sr = A(null);
|
|
564
564
|
function Cr() {
|
|
565
565
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
We(() => {
|
|
568
568
|
Sr.value && cancelAnimationFrame(Sr.value);
|
|
569
569
|
});
|
|
570
570
|
async function wr({ force: e = !1 } = {}) {
|
|
@@ -572,17 +572,17 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
572
572
|
xr();
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
$r(), await
|
|
575
|
+
$r(), await Ve(), Sr.value && cancelAnimationFrame(Sr.value), Sr.value = requestAnimationFrame(async () => {
|
|
576
576
|
await Cr(), $r();
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
let Tr =
|
|
579
|
+
let Tr = S(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Er = S(() => le(hr.value.map((e) => ({
|
|
580
580
|
...e,
|
|
581
581
|
series: e.series.map((e) => e ?? 0)
|
|
582
|
-
}))).slice(q.value.start, q.value.end)), Dr =
|
|
582
|
+
}))).slice(q.value.start, q.value.end)), Dr = S(() => R.value.length === G.value.length), Or = S(() => {
|
|
583
583
|
if (!B.value.style.chart.zoom.minimap.show) return [];
|
|
584
|
-
let e = G.value.filter((e) => Dr.value ? !0 : !
|
|
585
|
-
if (e.length) return
|
|
584
|
+
let e = G.value.filter((e) => Dr.value ? !0 : !R.value.includes(e.id) && !e.standalone);
|
|
585
|
+
if (e.length) return le(e.map((e) => ({
|
|
586
586
|
...e,
|
|
587
587
|
series: (e.series || []).map((e) => e ?? 0)
|
|
588
588
|
})));
|
|
@@ -590,9 +590,9 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
590
590
|
if (!t.length) return [];
|
|
591
591
|
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
592
592
|
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
593
|
-
}), kr =
|
|
593
|
+
}), kr = S(() => {
|
|
594
594
|
if (!B.value.style.chart.zoom.minimap.show) return [];
|
|
595
|
-
let e = G.value.filter((e) => Dr.value ? !0 : !
|
|
595
|
+
let e = G.value.filter((e) => Dr.value ? !0 : !R.value.includes(e.id) && !e.standalone), t = gr.value, n = e.length ? [{
|
|
596
596
|
name: "",
|
|
597
597
|
series: Or.value,
|
|
598
598
|
color: "#000000",
|
|
@@ -604,25 +604,25 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
604
604
|
isVisible: !0
|
|
605
605
|
}));
|
|
606
606
|
return n.concat(r);
|
|
607
|
-
}), Ar =
|
|
607
|
+
}), Ar = S(() => le(hr.value.filter((e) => !R.value.includes(e.id)).map((e) => ({
|
|
608
608
|
...e,
|
|
609
609
|
series: e.series.map((t, n) => {
|
|
610
610
|
let r = t ?? 0;
|
|
611
611
|
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
612
612
|
})
|
|
613
|
-
}))).slice(q.value.start, q.value.end)), jr =
|
|
614
|
-
let e = hr.value.filter((e) => !
|
|
613
|
+
}))).slice(q.value.start, q.value.end)), jr = S(() => {
|
|
614
|
+
let e = hr.value.filter((e) => !R.value.includes(e.id));
|
|
615
615
|
return {
|
|
616
|
-
positive:
|
|
616
|
+
positive: le(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
618
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
|
|
619
619
|
}))),
|
|
620
|
-
negative:
|
|
620
|
+
negative: le(e.map((e) => ({
|
|
621
621
|
...e,
|
|
622
622
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
623
623
|
})))
|
|
624
624
|
};
|
|
625
|
-
}), Mr =
|
|
625
|
+
}), Mr = S(() => {
|
|
626
626
|
let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
627
627
|
return gr.value.forEach((r) => {
|
|
628
628
|
for (let i = 0; i < e; i += 1) {
|
|
@@ -633,7 +633,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
633
633
|
positive: t,
|
|
634
634
|
negative: n
|
|
635
635
|
};
|
|
636
|
-
}), Nr =
|
|
636
|
+
}), Nr = S(() => Ar.value.map((e, t) => ({
|
|
637
637
|
value: e,
|
|
638
638
|
sign: e >= 0 ? 1 : -1
|
|
639
639
|
})));
|
|
@@ -658,7 +658,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
658
658
|
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + B.value.style.chart.lines.totalValues.offsetY);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
let Ir =
|
|
661
|
+
let Ir = S(() => {
|
|
662
662
|
let e = Math.max(...jr.value.positive, 0), t = Math.min(...jr.value.negative, 0), n = Math.max(...Mr.value.positive, 0), r = Math.min(...Mr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
663
663
|
-Infinity,
|
|
664
664
|
Infinity,
|
|
@@ -675,11 +675,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
675
675
|
value: t
|
|
676
676
|
};
|
|
677
677
|
});
|
|
678
|
-
}), Lr =
|
|
678
|
+
}), Lr = A([]), Rr = A([]), zr = 0;
|
|
679
679
|
Qe(() => {
|
|
680
680
|
let e = ++zr;
|
|
681
681
|
(async () => {
|
|
682
|
-
let t = await
|
|
682
|
+
let t = await fe({
|
|
683
683
|
values: B.value.style.chart.grid.x.timeLabels.values,
|
|
684
684
|
maxDatapoints: K.value,
|
|
685
685
|
formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -693,7 +693,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
693
693
|
Qe(() => {
|
|
694
694
|
let e = ++Br;
|
|
695
695
|
(async () => {
|
|
696
|
-
let t = await
|
|
696
|
+
let t = await fe({
|
|
697
697
|
values: B.value.style.chart.grid.x.timeLabels.values,
|
|
698
698
|
maxDatapoints: K.value,
|
|
699
699
|
formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -703,17 +703,17 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
703
703
|
e === Br && (Rr.value = t);
|
|
704
704
|
})();
|
|
705
705
|
});
|
|
706
|
-
let Vr =
|
|
706
|
+
let Vr = S(() => {
|
|
707
707
|
let e = B.value.style.chart.grid.x.timeLabels.modulo;
|
|
708
708
|
return Lr.value.length ? Math.min(e, [...new Set(Lr.value.map((e) => e.text))].length) : e;
|
|
709
|
-
}), Hr =
|
|
709
|
+
}), Hr = S(() => {
|
|
710
710
|
let e = B.value.style.chart.grid.x.timeLabels, t = Lr.value || [], n = Rr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
711
|
-
return
|
|
711
|
+
return ie(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Vr.value || 1), o, s, r, i, a);
|
|
712
712
|
});
|
|
713
713
|
Qe(() => {
|
|
714
|
-
B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.fontSize, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, (Hr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height,
|
|
714
|
+
B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.fontSize, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, (Hr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, xn.value, vn.value, fr();
|
|
715
715
|
}, { flush: "post" });
|
|
716
|
-
let Ur =
|
|
716
|
+
let Ur = A({
|
|
717
717
|
months: [],
|
|
718
718
|
shortMonths: [],
|
|
719
719
|
days: [],
|
|
@@ -722,12 +722,12 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
722
722
|
Qe(() => {
|
|
723
723
|
let e = ++Wr, t = B.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
724
724
|
(async () => {
|
|
725
|
-
let n = await
|
|
725
|
+
let n = await de(t.locale).catch(() => de("en"));
|
|
726
726
|
e === Wr && (Ur.value = n.data);
|
|
727
727
|
})();
|
|
728
728
|
});
|
|
729
|
-
let Gr =
|
|
730
|
-
let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
729
|
+
let Gr = S(() => {
|
|
730
|
+
let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = ue({
|
|
731
731
|
useUTC: e.useUTC,
|
|
732
732
|
locale: Ur.value,
|
|
733
733
|
januaryAsYear: e.januaryAsYear
|
|
@@ -736,16 +736,16 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
736
736
|
let r = B.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
737
737
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
738
738
|
};
|
|
739
|
-
}), Kr =
|
|
739
|
+
}), Kr = S(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
740
740
|
text: Gr.value(t, B.value.style.chart.zoom.timeFormat),
|
|
741
741
|
absoluteIndex: t
|
|
742
|
-
}))), qr =
|
|
742
|
+
}))), qr = S(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
743
743
|
text: Gr.value(t, B.value.style.chart.tooltip.timeFormat),
|
|
744
744
|
absoluteIndex: t
|
|
745
|
-
}))), Jr =
|
|
746
|
-
if (!Zt.value && !
|
|
745
|
+
}))), Jr = S(() => {
|
|
746
|
+
if (!Zt.value && !Ln.value) return [];
|
|
747
747
|
let e = W.value.height, t = Ir.value[0] ? Ir.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...jr.value.positive, 0), o = Math.min(...jr.value.negative, 0), s = Math.max(...Mr.value.positive, 0), c = Math.min(...Mr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !B.value.style.chart.lines.distributed && (B.value.style.chart.grid.scale.scaleMax !== null || B.value.style.chart.grid.scale.scaleMin !== null) ? _(B.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks) : v(B.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), g = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
748
|
-
return G.value.filter((e) => !
|
|
748
|
+
return G.value.filter((e) => !R.value.includes(e.id)).map((r) => {
|
|
749
749
|
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
750
750
|
for (let u = 0; u < i; u += 1) {
|
|
751
751
|
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : B.value.style.chart.lines.distributed ? g / (Er.value[u] || 1) : g / p;
|
|
@@ -789,7 +789,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
789
789
|
fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
|
|
790
790
|
};
|
|
791
791
|
});
|
|
792
|
-
}), Y =
|
|
792
|
+
}), Y = S(() => {
|
|
793
793
|
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...jr.value.positive, 0), n = Math.min(...jr.value.negative, 0), r = Math.max(...Mr.value.positive, 0), i = Math.min(...Mr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !B.value.style.chart.lines.distributed && (B.value.style.chart.grid.scale.scaleMax !== null || B.value.style.chart.grid.scale.scaleMin !== null) ? _(B.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks) : v(B.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks), l = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(l), f = u + d || 1, p = (e) => {
|
|
794
794
|
if (B.value.style.chart.lines.distributed) {
|
|
795
795
|
let t = Math.max(0, Math.min(1, e));
|
|
@@ -823,9 +823,9 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
823
823
|
})), l = t.x.map((e, n) => ({
|
|
824
824
|
x: e,
|
|
825
825
|
y: t.baseY[n]
|
|
826
|
-
})), u = n >= 2 ?
|
|
826
|
+
})), u = n >= 2 ? b(s) : `M${s[0].x},${s[0].y}`, d = n >= 2 ? c(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(u)}` : u, m = n >= 2 ? `M${e(d)}` : d, h = "", g = "";
|
|
827
827
|
if (B.value.style.chart.lines.useArea && n >= 2) {
|
|
828
|
-
let t =
|
|
828
|
+
let t = b([...l].reverse()), n = c([...l].reverse()), r = l[l.length - 1];
|
|
829
829
|
h = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, g = `M${s[0].x},${s[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
|
|
830
830
|
}
|
|
831
831
|
return {
|
|
@@ -840,14 +840,14 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
840
840
|
yMinimapBase: o
|
|
841
841
|
};
|
|
842
842
|
});
|
|
843
|
-
}), Yr =
|
|
843
|
+
}), Yr = S(() => $.value === null || $.value === void 0 ? null : {
|
|
844
844
|
timeLabel: pi($.value),
|
|
845
845
|
absoluteIndex: $.value + q.value.start,
|
|
846
846
|
seriesIndex: $.value,
|
|
847
847
|
datapoint: fi.value,
|
|
848
848
|
series: Y.value,
|
|
849
849
|
config: B.value
|
|
850
|
-
}), Xr =
|
|
850
|
+
}), Xr = A(!1), Zr = A(!1);
|
|
851
851
|
function Qr(e) {
|
|
852
852
|
let t = K.value;
|
|
853
853
|
return e > t ? t : e < 0 || e < q.value.start ? B.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
@@ -875,13 +875,31 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
875
875
|
let t = Qr(e);
|
|
876
876
|
t !== q.value.end && (q.value.end = t, J.value.end = t, xr());
|
|
877
877
|
}
|
|
878
|
-
let X =
|
|
878
|
+
let X = S(() => ({
|
|
879
879
|
left: W.value.left,
|
|
880
880
|
right: W.value.right,
|
|
881
881
|
width: W.value.width
|
|
882
|
-
}))
|
|
883
|
-
|
|
884
|
-
|
|
882
|
+
}));
|
|
883
|
+
Ze([
|
|
884
|
+
S(() => {
|
|
885
|
+
let e = B.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = B.value.style.chart.lines.dataLabels;
|
|
886
|
+
return Ir.value.map((r) => String(y(e.formatter, r.value, o({
|
|
887
|
+
p: t,
|
|
888
|
+
v: r.value,
|
|
889
|
+
s: n,
|
|
890
|
+
r: e.rounding
|
|
891
|
+
}), { datapoint: r }) ?? "")).join("|");
|
|
892
|
+
}),
|
|
893
|
+
() => B.value.style.chart.grid.y.axisLabels.show,
|
|
894
|
+
() => B.value.style.chart.grid.y.axisLabels.fontSize,
|
|
895
|
+
() => B.value.style.chart.grid.y.axisLabels.bold,
|
|
896
|
+
() => B.value.style.chart.grid.y.position
|
|
897
|
+
], () => {
|
|
898
|
+
B.value.style.chart.grid.y.axisLabels.show && Mn();
|
|
899
|
+
}, { flush: "post" });
|
|
900
|
+
let ni = A(!1);
|
|
901
|
+
xe({
|
|
902
|
+
timeLabelsEls: xn,
|
|
885
903
|
timeLabels: Lr,
|
|
886
904
|
slicer: q,
|
|
887
905
|
configRef: B,
|
|
@@ -903,13 +921,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
903
921
|
"enable"
|
|
904
922
|
],
|
|
905
923
|
isAutoSize: !1,
|
|
906
|
-
width:
|
|
907
|
-
height:
|
|
924
|
+
width: S(() => U.value.width),
|
|
925
|
+
height: S(() => U.value.height),
|
|
908
926
|
rotation: B.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
909
927
|
});
|
|
910
|
-
let ri =
|
|
928
|
+
let ri = A(null);
|
|
911
929
|
function ii(e) {
|
|
912
|
-
let t =
|
|
930
|
+
let t = Un.value;
|
|
913
931
|
if (!t) return null;
|
|
914
932
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
915
933
|
let n = t.createSVGPoint();
|
|
@@ -936,7 +954,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
936
954
|
ok: !0
|
|
937
955
|
};
|
|
938
956
|
}
|
|
939
|
-
let ai = 0, Z =
|
|
957
|
+
let ai = 0, Z = S(() => Math.max(1, q.value.end - q.value.start)), oi = S(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
|
|
940
958
|
function Q(e) {
|
|
941
959
|
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * oi.value;
|
|
942
960
|
}
|
|
@@ -955,7 +973,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
955
973
|
Pn.value || (ai && cancelAnimationFrame(ai), ai = requestAnimationFrame(() => {
|
|
956
974
|
ai = 0;
|
|
957
975
|
let t = ii(e);
|
|
958
|
-
if (!t || !
|
|
976
|
+
if (!t || !Un.value) {
|
|
959
977
|
di();
|
|
960
978
|
return;
|
|
961
979
|
}
|
|
@@ -974,7 +992,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
974
992
|
}
|
|
975
993
|
function li(e) {
|
|
976
994
|
let t = ii(e);
|
|
977
|
-
if (!t || !
|
|
995
|
+
if (!t || !Un.value) return;
|
|
978
996
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
979
997
|
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
980
998
|
let o = 0;
|
|
@@ -1020,7 +1038,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1020
1038
|
function di() {
|
|
1021
1039
|
ai &&= (cancelAnimationFrame(ai), 0), ri.value = null, hi(!1, null);
|
|
1022
1040
|
}
|
|
1023
|
-
let $ =
|
|
1041
|
+
let $ = A(null), fi = S(() => {
|
|
1024
1042
|
let e = $.value, t = e == null ? null : vr(e);
|
|
1025
1043
|
return Y.value.map((n) => ({
|
|
1026
1044
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
@@ -1039,7 +1057,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1039
1057
|
let t = Lr.value?.[e]?.text || null, n = qr.value?.[e]?.text || null, r = Rr.value?.[e]?.text || null;
|
|
1040
1058
|
return B.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1041
1059
|
}
|
|
1042
|
-
let mi =
|
|
1060
|
+
let mi = S(() => {
|
|
1043
1061
|
let e = B.value.style.chart.tooltip.customFormat, t = [...fi.value].reverse(), n = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = n.map((e) => e.value).filter((e) => h(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1044
1062
|
if (ee(e) && te(() => e({
|
|
1045
1063
|
absoluteIndex: $.value + q.value.start,
|
|
@@ -1125,17 +1143,17 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1125
1143
|
}, { datapoint: e })) : ""} ${r}${n}${i}
|
|
1126
1144
|
</div>
|
|
1127
1145
|
`;
|
|
1128
|
-
}, v = "",
|
|
1129
|
-
return
|
|
1146
|
+
}, v = "", b = pi($.value);
|
|
1147
|
+
return b && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${f};padding-bottom:6px;margin-bottom:3px;">${b}</div>`), c && n.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1130
1148
|
<span>${l}:</span>
|
|
1131
|
-
<span>${y(B.value.style.chart.lines.dataLabels.formatter,
|
|
1149
|
+
<span>${y(B.value.style.chart.lines.dataLabels.formatter, re(a), o({
|
|
1132
1150
|
p: B.value.style.chart.lines.dataLabels.prefix,
|
|
1133
|
-
v:
|
|
1151
|
+
v: re(a),
|
|
1134
1152
|
s: B.value.style.chart.lines.dataLabels.suffix,
|
|
1135
1153
|
r: p
|
|
1136
1154
|
}), { datapoint: {
|
|
1137
1155
|
name: l,
|
|
1138
|
-
value:
|
|
1156
|
+
value: re(a)
|
|
1139
1157
|
} })}</span>
|
|
1140
1158
|
</div>`), n.forEach((e) => {
|
|
1141
1159
|
v += _(e, d);
|
|
@@ -1145,7 +1163,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1145
1163
|
});
|
|
1146
1164
|
function hi(e, t = null, n = "pointer") {
|
|
1147
1165
|
if (Dr.value) return;
|
|
1148
|
-
On.value = n,
|
|
1166
|
+
On.value = n, $t.value = e;
|
|
1149
1167
|
let r = Y.value.map((e) => ({
|
|
1150
1168
|
name: e.name,
|
|
1151
1169
|
value: [
|
|
@@ -1155,13 +1173,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1155
1173
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1156
1174
|
color: e.color
|
|
1157
1175
|
}));
|
|
1158
|
-
e ? (
|
|
1176
|
+
e ? (z.value = t, $.value = t, Ji({
|
|
1159
1177
|
seriesIndex: t,
|
|
1160
1178
|
datapoint: r
|
|
1161
1179
|
}), B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
1162
1180
|
datapoint: r,
|
|
1163
1181
|
seriesIndex: t + q.value.start
|
|
1164
|
-
})) : (
|
|
1182
|
+
})) : (z.value = null, $.value = null, I("selectX", {
|
|
1165
1183
|
index: null,
|
|
1166
1184
|
indexLabel: null,
|
|
1167
1185
|
dataset: null
|
|
@@ -1184,24 +1202,24 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1184
1202
|
});
|
|
1185
1203
|
}
|
|
1186
1204
|
function _i() {
|
|
1187
|
-
|
|
1188
|
-
|
|
1205
|
+
R.value.length ? R.value = [] : yi.value.forEach((e) => {
|
|
1206
|
+
R.value.push(e.id);
|
|
1189
1207
|
}), I("selectLegend", Y.value);
|
|
1190
1208
|
}
|
|
1191
1209
|
function vi(e) {
|
|
1192
|
-
if (
|
|
1210
|
+
if (R.value.includes(e.id)) R.value = R.value.filter((t) => t !== e.id);
|
|
1193
1211
|
else {
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1212
|
+
if (R.value.length === G.value.length - 1) return;
|
|
1213
|
+
R.value.push(e.id);
|
|
1196
1214
|
}
|
|
1197
1215
|
I("selectLegend", Y.value);
|
|
1198
1216
|
}
|
|
1199
|
-
let yi =
|
|
1217
|
+
let yi = S(() => G.value.map((e) => ({
|
|
1200
1218
|
...e,
|
|
1201
|
-
opacity:
|
|
1219
|
+
opacity: R.value.includes(e.id) ? .5 : 1,
|
|
1202
1220
|
segregate: () => vi(e),
|
|
1203
|
-
isSegregated:
|
|
1204
|
-
}))), bi =
|
|
1221
|
+
isSegregated: R.value.includes(e.id)
|
|
1222
|
+
}))), bi = S(() => ({
|
|
1205
1223
|
cy: "stackline-legend",
|
|
1206
1224
|
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
1207
1225
|
color: B.value.style.chart.legend.color,
|
|
@@ -1214,13 +1232,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1214
1232
|
}
|
|
1215
1233
|
function Si(e) {
|
|
1216
1234
|
let t = xi(e);
|
|
1217
|
-
t !== null &&
|
|
1235
|
+
t !== null && R.value.includes(t.id) && vi({ id: t.id });
|
|
1218
1236
|
}
|
|
1219
1237
|
function Ci(e) {
|
|
1220
1238
|
let t = xi(e);
|
|
1221
|
-
t !== null && (
|
|
1239
|
+
t !== null && (R.value.includes(t.id) || vi({ id: t.id }));
|
|
1222
1240
|
}
|
|
1223
|
-
let wi =
|
|
1241
|
+
let wi = S(() => {
|
|
1224
1242
|
if (Y.value.length === 0) return {
|
|
1225
1243
|
head: [],
|
|
1226
1244
|
body: [],
|
|
@@ -1253,7 +1271,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1253
1271
|
title: B.value.style.chart.title.text || "vue-ui-stackline"
|
|
1254
1272
|
});
|
|
1255
1273
|
}
|
|
1256
|
-
let Ei =
|
|
1274
|
+
let Ei = S(() => {
|
|
1257
1275
|
let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0, q.value.end - q.value.start);
|
|
1258
1276
|
for (let e = 0; e < n; e += 1) {
|
|
1259
1277
|
let n = vr(e), r = B.value.style.chart.grid.x.timeLabels.values?.[n] ? Lr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
|
|
@@ -1280,15 +1298,15 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1280
1298
|
},
|
|
1281
1299
|
colNames: [B.value.table.columnNames.period].concat(Y.value.map((e) => e.name), B.value.table.columnNames.total)
|
|
1282
1300
|
};
|
|
1283
|
-
}), Di =
|
|
1284
|
-
svg:
|
|
1285
|
-
title:
|
|
1301
|
+
}), Di = S(() => B.value.style.chart.backgroundColor), Oi = S(() => B.value.style.chart.legend), { exportSvg: ki, getSvg: Ai } = _e({
|
|
1302
|
+
svg: Un,
|
|
1303
|
+
title: S(() => B.value.style.chart.title),
|
|
1286
1304
|
legend: Oi,
|
|
1287
1305
|
legendItems: yi,
|
|
1288
1306
|
backgroundColor: Di
|
|
1289
1307
|
});
|
|
1290
1308
|
async function ji({ isCb: e }) {
|
|
1291
|
-
|
|
1309
|
+
_n.value = !0, await Ve();
|
|
1292
1310
|
try {
|
|
1293
1311
|
if (e) {
|
|
1294
1312
|
let { blob: e, url: t, text: n, dataUrl: r } = await Ai();
|
|
@@ -1300,13 +1318,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1300
1318
|
}));
|
|
1301
1319
|
} else await Promise.resolve(ki());
|
|
1302
1320
|
} finally {
|
|
1303
|
-
|
|
1321
|
+
_n.value = !1;
|
|
1304
1322
|
}
|
|
1305
1323
|
}
|
|
1306
1324
|
async function Mi({ scale: e = 2 } = {}) {
|
|
1307
|
-
if (!
|
|
1308
|
-
let { width: t, height: n } =
|
|
1309
|
-
domElement:
|
|
1325
|
+
if (!Qt.value) return;
|
|
1326
|
+
let { width: t, height: n } = Qt.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
1327
|
+
domElement: Qt.value,
|
|
1310
1328
|
base64: !0,
|
|
1311
1329
|
img: !0,
|
|
1312
1330
|
scale: e
|
|
@@ -1320,7 +1338,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1320
1338
|
aspectRatio: r
|
|
1321
1339
|
};
|
|
1322
1340
|
}
|
|
1323
|
-
let Ni =
|
|
1341
|
+
let Ni = S(() => {
|
|
1324
1342
|
let e = B.value.table.useDialog && !B.value.table.show, t = H.value.showTable;
|
|
1325
1343
|
return {
|
|
1326
1344
|
component: e ? Kt : Vt,
|
|
@@ -1330,10 +1348,10 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1330
1348
|
color: B.value.table.th.color,
|
|
1331
1349
|
headerColor: B.value.table.th.color,
|
|
1332
1350
|
headerBg: B.value.table.th.backgroundColor,
|
|
1333
|
-
isFullscreen:
|
|
1334
|
-
fullscreenParent:
|
|
1351
|
+
isFullscreen: sn.value,
|
|
1352
|
+
fullscreenParent: Qt.value,
|
|
1335
1353
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1336
|
-
isCursorPointer:
|
|
1354
|
+
isCursorPointer: V.value
|
|
1337
1355
|
} : {
|
|
1338
1356
|
hideDetails: !0,
|
|
1339
1357
|
config: {
|
|
@@ -1352,13 +1370,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1352
1370
|
};
|
|
1353
1371
|
});
|
|
1354
1372
|
Ze(() => H.value.showTable, (e) => {
|
|
1355
|
-
B.value.table.show || (e && B.value.table.useDialog &&
|
|
1373
|
+
B.value.table.show || (e && B.value.table.useDialog && pn.value ? pn.value.open() : "close" in pn.value && pn.value.close());
|
|
1356
1374
|
});
|
|
1357
1375
|
function Pi() {
|
|
1358
|
-
H.value.showTable = !1,
|
|
1376
|
+
H.value.showTable = !1, mn.value && mn.value.setTableIconState(!1);
|
|
1359
1377
|
}
|
|
1360
1378
|
function Fi(e) {
|
|
1361
|
-
|
|
1379
|
+
sn.value = e, en.value += 1;
|
|
1362
1380
|
}
|
|
1363
1381
|
function Ii() {
|
|
1364
1382
|
H.value.showTable = !H.value.showTable;
|
|
@@ -1387,7 +1405,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1387
1405
|
};
|
|
1388
1406
|
});
|
|
1389
1407
|
}
|
|
1390
|
-
let Vi =
|
|
1408
|
+
let Vi = S(() => Array(K.value).fill(0).map((e, t) => Bi(t)));
|
|
1391
1409
|
Ze(() => F.selectedXIndex, (e) => {
|
|
1392
1410
|
if ([null, void 0].includes(F.selectedXIndex)) {
|
|
1393
1411
|
$.value = null;
|
|
@@ -1396,7 +1414,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1396
1414
|
let t = e - q.value.start;
|
|
1397
1415
|
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1398
1416
|
}, { immediate: !0 });
|
|
1399
|
-
let Hi =
|
|
1417
|
+
let Hi = S(() => {
|
|
1400
1418
|
if (B.value.style.chart.lines.distributed) return {
|
|
1401
1419
|
min: -1,
|
|
1402
1420
|
max: 1
|
|
@@ -1447,11 +1465,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1447
1465
|
})), h = o.map((e, t) => ({
|
|
1448
1466
|
x: e,
|
|
1449
1467
|
y: p[t]
|
|
1450
|
-
})), g =
|
|
1468
|
+
})), g = b(m), _ = b([...h].reverse()), ee = c(m), v = c([...h].reverse()), y = h[h.length - 1];
|
|
1451
1469
|
if (B.value.style.chart.lines.useArea) {
|
|
1452
1470
|
let t = B.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)} L${y.x},${y.y} ${n(_)} Z` : `M${m[0].x},${m[0].y} ${n(ee)} L${y.x},${y.y} ${n(v)} Z`;
|
|
1453
1471
|
l.push(`<path d="${t}"
|
|
1454
|
-
fill="${Xt.pattern ? `url(#pattern_${
|
|
1472
|
+
fill="${Xt.pattern ? `url(#pattern_${L.value}_${e.absoluteIndex})` : (B.value.style.chart.lines.gradient.show, e.color)}"
|
|
1455
1473
|
opacity="${B.value.style.chart.lines.areaOpacity}"
|
|
1456
1474
|
stroke="none" />`);
|
|
1457
1475
|
}
|
|
@@ -1465,7 +1483,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1465
1483
|
let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
|
|
1466
1484
|
x: e,
|
|
1467
1485
|
y: i[t]
|
|
1468
|
-
})), d =
|
|
1486
|
+
})), d = b(u), f = c(u), p = B.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
|
|
1469
1487
|
l.push(`<path d="${p}"
|
|
1470
1488
|
fill="none"
|
|
1471
1489
|
stroke="${e.color}"
|
|
@@ -1488,11 +1506,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1488
1506
|
})), h = o.map((e, t) => ({
|
|
1489
1507
|
x: e,
|
|
1490
1508
|
y: d[t]
|
|
1491
|
-
})), g =
|
|
1509
|
+
})), g = b(f), _ = b([...h].reverse()), ee = c(f), v = c([...h].reverse()), y = h[h.length - 1];
|
|
1492
1510
|
if (B.value.style.chart.lines.useArea) {
|
|
1493
1511
|
let e = B.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)} L${y.x},${y.y} ${n(_)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${y.x},${y.y} ${n(v)} Z`;
|
|
1494
1512
|
m.push(`<path d="${e}"
|
|
1495
|
-
fill="${Xt.pattern ? `url(#pattern_${
|
|
1513
|
+
fill="${Xt.pattern ? `url(#pattern_${L.value}_${r.absoluteIndex})` : (B.value.style.chart.lines.gradient.show, r.color)}"
|
|
1496
1514
|
opacity="${B.value.style.chart.lines.areaOpacity}"
|
|
1497
1515
|
stroke="none" />`);
|
|
1498
1516
|
}
|
|
@@ -1508,7 +1526,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1508
1526
|
let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
|
|
1509
1527
|
x: e,
|
|
1510
1528
|
y: t[n]
|
|
1511
|
-
})), i =
|
|
1529
|
+
})), i = b(r), a = c(r), s = B.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
|
|
1512
1530
|
m.push(`<path d="${s}"
|
|
1513
1531
|
fill="none"
|
|
1514
1532
|
stroke="${e.color}"
|
|
@@ -1520,7 +1538,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1520
1538
|
let n = B.value.style.chart.lines, r = n.dataLabels;
|
|
1521
1539
|
return n.showDistributedPercentage && n.distributed ? Jn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : r.hideEmptyPercentages ? Math.abs(t) > 0 : !0 : Jn.value ? (qn.value && ir.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > Gi.value * r.hideUnderPercentage / 100) : qn.value ? Math.abs(e) >= r.hideUnderValue : r.hideEmptyValues ? e !== 0 : !0;
|
|
1522
1540
|
}
|
|
1523
|
-
let Gi =
|
|
1541
|
+
let Gi = S(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1524
1542
|
function Ki(e, t, n, r, i) {
|
|
1525
1543
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1526
1544
|
return y(B.value.style.chart.lines.dataLabels.formatter, a, o({
|
|
@@ -1555,11 +1573,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1555
1573
|
}
|
|
1556
1574
|
function Yi(e) {
|
|
1557
1575
|
if (e?.stage === "start") {
|
|
1558
|
-
|
|
1576
|
+
gn.value = !0;
|
|
1559
1577
|
return;
|
|
1560
1578
|
}
|
|
1561
1579
|
if (e?.stage === "end") {
|
|
1562
|
-
|
|
1580
|
+
gn.value = !1;
|
|
1563
1581
|
return;
|
|
1564
1582
|
}
|
|
1565
1583
|
Qn();
|
|
@@ -1577,23 +1595,23 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1577
1595
|
dataset: Y.value
|
|
1578
1596
|
}));
|
|
1579
1597
|
}
|
|
1580
|
-
let Zi =
|
|
1598
|
+
let Zi = A(!1);
|
|
1581
1599
|
function Qi() {
|
|
1582
|
-
|
|
1600
|
+
z.value = null, Zi.value = !0;
|
|
1583
1601
|
}
|
|
1584
1602
|
function $i() {
|
|
1585
|
-
|
|
1603
|
+
z.value = null, On.value = "pointer", $t.value = !1, $.value = null, I("selectX", {
|
|
1586
1604
|
index: null,
|
|
1587
1605
|
indexLabel: null,
|
|
1588
1606
|
dataset: null
|
|
1589
1607
|
}), Zi.value = !1;
|
|
1590
1608
|
}
|
|
1591
1609
|
function ea(e) {
|
|
1592
|
-
if (!
|
|
1610
|
+
if (!Un.value || Pn.value || document.activeElement !== Un.value || Dr.value || !Z.value) return;
|
|
1593
1611
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1594
1612
|
if (!t && !n && !r && !i) return;
|
|
1595
1613
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1596
|
-
|
|
1614
|
+
z.value = null, On.value = "pointer", $t.value = !1, $.value = null, I("selectX", {
|
|
1597
1615
|
index: null,
|
|
1598
1616
|
indexLabel: null,
|
|
1599
1617
|
dataset: null
|
|
@@ -1601,23 +1619,23 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1601
1619
|
return;
|
|
1602
1620
|
}
|
|
1603
1621
|
if (r) {
|
|
1604
|
-
if (
|
|
1605
|
-
ui(
|
|
1622
|
+
if (z.value === null) return;
|
|
1623
|
+
ui(z.value);
|
|
1606
1624
|
return;
|
|
1607
1625
|
}
|
|
1608
|
-
let a =
|
|
1609
|
-
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1,
|
|
1626
|
+
let a = z.value, o = ri.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
|
|
1627
|
+
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, z.value = a, ta(a), hi(!0, a, "keyboard");
|
|
1610
1628
|
}
|
|
1611
1629
|
function ta(e) {
|
|
1612
|
-
if (!Number.isFinite(e) || !
|
|
1613
|
-
let n = t(W.value.left + e * oi.value, W.value.top + W.value.height / 2,
|
|
1630
|
+
if (!Number.isFinite(e) || !Un.value) return;
|
|
1631
|
+
let n = t(W.value.left + e * oi.value, W.value.top + W.value.height / 2, Un.value);
|
|
1614
1632
|
n && (Dn.value = n);
|
|
1615
1633
|
}
|
|
1616
|
-
let na =
|
|
1634
|
+
let na = S(() => ({
|
|
1617
1635
|
headers: Ei.value?.colNames ?? [],
|
|
1618
1636
|
rows: Ei.value?.body ?? []
|
|
1619
1637
|
}));
|
|
1620
|
-
return
|
|
1638
|
+
return Te({
|
|
1621
1639
|
getData: zi,
|
|
1622
1640
|
getImage: Mi,
|
|
1623
1641
|
generatePdf: Zn,
|
|
@@ -1632,26 +1650,26 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1632
1650
|
toggleAnnotator: Fn,
|
|
1633
1651
|
toggleFullscreen: Fi,
|
|
1634
1652
|
copyAlt: Xi
|
|
1635
|
-
}), (t, r) => (
|
|
1636
|
-
id: `stackline_${
|
|
1653
|
+
}), (t, r) => (k(), T("div", {
|
|
1654
|
+
id: `stackline_${L.value}`,
|
|
1637
1655
|
ref_key: "stacklineChart",
|
|
1638
|
-
ref:
|
|
1639
|
-
class:
|
|
1656
|
+
ref: Qt,
|
|
1657
|
+
class: He({
|
|
1640
1658
|
"vue-data-ui-component": !0,
|
|
1641
1659
|
"vue-ui-stackline": !0,
|
|
1642
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1660
|
+
"vue-data-ui-wrapper-fullscreen": sn.value
|
|
1643
1661
|
}),
|
|
1644
|
-
style:
|
|
1662
|
+
style: Ue(`background:${B.value.style.chart.backgroundColor};color:${B.value.style.chart.color};font-family:${B.value.style.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1645
1663
|
onMouseenter: Wn,
|
|
1646
1664
|
onMouseleave: Gn
|
|
1647
1665
|
}, [
|
|
1648
|
-
|
|
1649
|
-
id: `chart-instructions-${
|
|
1666
|
+
E("div", {
|
|
1667
|
+
id: `chart-instructions-${L.value}`,
|
|
1650
1668
|
class: "sr-only"
|
|
1651
|
-
}, [
|
|
1652
|
-
na.value?.rows?.length ? (
|
|
1669
|
+
}, [E("p", null, Je(B.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
1670
|
+
na.value?.rows?.length ? (k(), C(Ae, {
|
|
1653
1671
|
key: 0,
|
|
1654
|
-
uid:
|
|
1672
|
+
uid: L.value,
|
|
1655
1673
|
head: na.value.headers,
|
|
1656
1674
|
body: na.value.rows,
|
|
1657
1675
|
notice: B.value.a11y.translations.tableAvailable,
|
|
@@ -1662,22 +1680,22 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1662
1680
|
"body",
|
|
1663
1681
|
"notice",
|
|
1664
1682
|
"caption"
|
|
1665
|
-
])) :
|
|
1666
|
-
B.value.userOptions.buttons.annotator ? (
|
|
1683
|
+
])) : w("", !0),
|
|
1684
|
+
B.value.userOptions.buttons.annotator ? (k(), C(N(Ut), {
|
|
1667
1685
|
key: 1,
|
|
1668
|
-
svgRef: N(
|
|
1686
|
+
svgRef: N(Un),
|
|
1669
1687
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1670
1688
|
color: B.value.style.chart.color,
|
|
1671
1689
|
active: Pn.value,
|
|
1672
|
-
isCursorPointer:
|
|
1690
|
+
isCursorPointer: V.value,
|
|
1673
1691
|
onClose: Fn
|
|
1674
1692
|
}, {
|
|
1675
|
-
"annotator-action-close": P(() => [
|
|
1676
|
-
"annotator-action-color": P(({ color: e }) => [
|
|
1677
|
-
"annotator-action-draw": P(({ mode: e }) => [
|
|
1678
|
-
"annotator-action-undo": P(({ disabled: e }) => [
|
|
1679
|
-
"annotator-action-redo": P(({ disabled: e }) => [
|
|
1680
|
-
"annotator-action-delete": P(({ disabled: e }) => [
|
|
1693
|
+
"annotator-action-close": P(() => [M(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1694
|
+
"annotator-action-color": P(({ color: e }) => [M(t.$slots, "annotator-action-color", O(D({ color: e })), void 0, !0)]),
|
|
1695
|
+
"annotator-action-draw": P(({ mode: e }) => [M(t.$slots, "annotator-action-draw", O(D({ mode: e })), void 0, !0)]),
|
|
1696
|
+
"annotator-action-undo": P(({ disabled: e }) => [M(t.$slots, "annotator-action-undo", O(D({ disabled: e })), void 0, !0)]),
|
|
1697
|
+
"annotator-action-redo": P(({ disabled: e }) => [M(t.$slots, "annotator-action-redo", O(D({ disabled: e })), void 0, !0)]),
|
|
1698
|
+
"annotator-action-delete": P(({ disabled: e }) => [M(t.$slots, "annotator-action-delete", O(D({ disabled: e })), void 0, !0)]),
|
|
1681
1699
|
_: 3
|
|
1682
1700
|
}, 8, [
|
|
1683
1701
|
"svgRef",
|
|
@@ -1685,22 +1703,22 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1685
1703
|
"color",
|
|
1686
1704
|
"active",
|
|
1687
1705
|
"isCursorPointer"
|
|
1688
|
-
])) :
|
|
1689
|
-
|
|
1690
|
-
$n.value ? (
|
|
1706
|
+
])) : w("", !0),
|
|
1707
|
+
M(t.$slots, "userConfig", {}, void 0, !0),
|
|
1708
|
+
$n.value ? (k(), T("div", {
|
|
1691
1709
|
key: 2,
|
|
1692
1710
|
ref_key: "noTitle",
|
|
1693
|
-
ref:
|
|
1711
|
+
ref: an,
|
|
1694
1712
|
class: "vue-data-ui-no-title-space",
|
|
1695
1713
|
style: "height:36px; width: 100%;background:transparent"
|
|
1696
|
-
}, null, 512)) :
|
|
1697
|
-
B.value.style.chart.title.text ? (
|
|
1714
|
+
}, null, 512)) : w("", !0),
|
|
1715
|
+
B.value.style.chart.title.text ? (k(), T("div", {
|
|
1698
1716
|
key: 3,
|
|
1699
1717
|
ref_key: "chartTitle",
|
|
1700
|
-
ref:
|
|
1718
|
+
ref: tn,
|
|
1701
1719
|
style: "width:100%;background:transparent;"
|
|
1702
|
-
}, [(
|
|
1703
|
-
key: `title_${
|
|
1720
|
+
}, [(k(), C(Ce, {
|
|
1721
|
+
key: `title_${ln.value}`,
|
|
1704
1722
|
config: {
|
|
1705
1723
|
title: {
|
|
1706
1724
|
cy: "stackline-title",
|
|
@@ -1711,17 +1729,17 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1711
1729
|
...B.value.style.chart.title.subtitle
|
|
1712
1730
|
}
|
|
1713
1731
|
}
|
|
1714
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1715
|
-
|
|
1716
|
-
B.value.userOptions.show && Zt.value && (N(
|
|
1732
|
+
}, null, 8, ["config"]))], 512)) : w("", !0),
|
|
1733
|
+
E("div", { id: `legend-top-${L.value}` }, null, 8, nt),
|
|
1734
|
+
B.value.userOptions.show && Zt.value && (N(Hn) || N(Bn)) ? (k(), C(N(Wt), {
|
|
1717
1735
|
ref_key: "userOptionsRef",
|
|
1718
|
-
ref:
|
|
1719
|
-
key: `user_option_${
|
|
1736
|
+
ref: mn,
|
|
1737
|
+
key: `user_option_${en.value}`,
|
|
1720
1738
|
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1721
1739
|
color: B.value.style.chart.color,
|
|
1722
1740
|
isPrinting: N(Yn),
|
|
1723
1741
|
isImaging: N(Xn),
|
|
1724
|
-
uid:
|
|
1742
|
+
uid: L.value,
|
|
1725
1743
|
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1726
1744
|
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1727
1745
|
hasImg: B.value.userOptions.buttons.img,
|
|
@@ -1731,8 +1749,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1731
1749
|
hasLabel: B.value.userOptions.buttons.labels,
|
|
1732
1750
|
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1733
1751
|
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1734
|
-
isFullscreen:
|
|
1735
|
-
chartElement:
|
|
1752
|
+
isFullscreen: sn.value,
|
|
1753
|
+
chartElement: Qt.value,
|
|
1736
1754
|
position: B.value.userOptions.position,
|
|
1737
1755
|
isTooltip: H.value.showTooltip,
|
|
1738
1756
|
titles: { ...B.value.userOptions.buttonTitles },
|
|
@@ -1741,7 +1759,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1741
1759
|
callbacks: B.value.userOptions.callbacks,
|
|
1742
1760
|
printScale: B.value.userOptions.print.scale,
|
|
1743
1761
|
tableDialog: B.value.table.useDialog,
|
|
1744
|
-
isCursorPointer:
|
|
1762
|
+
isCursorPointer: V.value,
|
|
1745
1763
|
onToggleFullscreen: Fi,
|
|
1746
1764
|
onGeneratePdf: N(Zn),
|
|
1747
1765
|
onGenerateCsv: Ti,
|
|
@@ -1752,11 +1770,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1752
1770
|
onToggleTooltip: Ri,
|
|
1753
1771
|
onToggleAnnotator: Fn,
|
|
1754
1772
|
onCopyAlt: Xi,
|
|
1755
|
-
style:
|
|
1756
|
-
},
|
|
1773
|
+
style: Ue({ visibility: N(Hn) ? N(Bn) ? "visible" : "hidden" : "visible" })
|
|
1774
|
+
}, Ie({ _: 2 }, [
|
|
1757
1775
|
t.$slots.menuIcon ? {
|
|
1758
1776
|
name: "menuIcon",
|
|
1759
|
-
fn: P(({ isOpen: e, color: n }) => [
|
|
1777
|
+
fn: P(({ isOpen: e, color: n }) => [M(t.$slots, "menuIcon", O(D({
|
|
1760
1778
|
isOpen: e,
|
|
1761
1779
|
color: n
|
|
1762
1780
|
})), void 0, !0)]),
|
|
@@ -1764,42 +1782,42 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1764
1782
|
} : void 0,
|
|
1765
1783
|
t.$slots.optionTooltip ? {
|
|
1766
1784
|
name: "optionTooltip",
|
|
1767
|
-
fn: P(() => [
|
|
1785
|
+
fn: P(() => [M(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1768
1786
|
key: "1"
|
|
1769
1787
|
} : void 0,
|
|
1770
1788
|
t.$slots.optionPdf ? {
|
|
1771
1789
|
name: "optionPdf",
|
|
1772
|
-
fn: P(() => [
|
|
1790
|
+
fn: P(() => [M(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1773
1791
|
key: "2"
|
|
1774
1792
|
} : void 0,
|
|
1775
1793
|
t.$slots.optionCsv ? {
|
|
1776
1794
|
name: "optionCsv",
|
|
1777
|
-
fn: P(() => [
|
|
1795
|
+
fn: P(() => [M(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1778
1796
|
key: "3"
|
|
1779
1797
|
} : void 0,
|
|
1780
1798
|
t.$slots.optionImg ? {
|
|
1781
1799
|
name: "optionImg",
|
|
1782
|
-
fn: P(() => [
|
|
1800
|
+
fn: P(() => [M(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1783
1801
|
key: "4"
|
|
1784
1802
|
} : void 0,
|
|
1785
1803
|
t.$slots.optionSvg ? {
|
|
1786
1804
|
name: "optionSvg",
|
|
1787
|
-
fn: P(() => [
|
|
1805
|
+
fn: P(() => [M(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1788
1806
|
key: "5"
|
|
1789
1807
|
} : void 0,
|
|
1790
1808
|
t.$slots.optionTable ? {
|
|
1791
1809
|
name: "optionTable",
|
|
1792
|
-
fn: P(() => [
|
|
1810
|
+
fn: P(() => [M(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1793
1811
|
key: "6"
|
|
1794
1812
|
} : void 0,
|
|
1795
1813
|
t.$slots.optionLabels ? {
|
|
1796
1814
|
name: "optionLabels",
|
|
1797
|
-
fn: P(() => [
|
|
1815
|
+
fn: P(() => [M(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1798
1816
|
key: "7"
|
|
1799
1817
|
} : void 0,
|
|
1800
1818
|
t.$slots.optionFullscreen ? {
|
|
1801
1819
|
name: "optionFullscreen",
|
|
1802
|
-
fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
1820
|
+
fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [M(t.$slots, "optionFullscreen", O(D({
|
|
1803
1821
|
toggleFullscreen: e,
|
|
1804
1822
|
isFullscreen: n
|
|
1805
1823
|
})), void 0, !0)]),
|
|
@@ -1807,7 +1825,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1807
1825
|
} : void 0,
|
|
1808
1826
|
t.$slots.optionAnnotator ? {
|
|
1809
1827
|
name: "optionAnnotator",
|
|
1810
|
-
fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
1828
|
+
fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [M(t.$slots, "optionAnnotator", O(D({
|
|
1811
1829
|
toggleAnnotator: e,
|
|
1812
1830
|
isAnnotator: n
|
|
1813
1831
|
})), void 0, !0)]),
|
|
@@ -1815,31 +1833,31 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1815
1833
|
} : void 0,
|
|
1816
1834
|
t.$slots.optionAltCopy ? {
|
|
1817
1835
|
name: "optionAltCopy",
|
|
1818
|
-
fn: P(({ altCopy: e }) => [
|
|
1836
|
+
fn: P(({ altCopy: e }) => [M(t.$slots, "optionAltCopy", O(D({ altCopy: e })), void 0, !0)]),
|
|
1819
1837
|
key: "10"
|
|
1820
1838
|
} : void 0,
|
|
1821
1839
|
t.$slots["custom-menu-before"] ? {
|
|
1822
1840
|
name: "custom-menu-before",
|
|
1823
|
-
fn: P(() => [
|
|
1841
|
+
fn: P(() => [M(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1824
1842
|
key: "11"
|
|
1825
1843
|
} : void 0,
|
|
1826
1844
|
t.$slots["custom-menu-after"] ? {
|
|
1827
1845
|
name: "custom-menu-after",
|
|
1828
|
-
fn: P(() => [
|
|
1846
|
+
fn: P(() => [M(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1829
1847
|
key: "12"
|
|
1830
1848
|
} : void 0
|
|
1831
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1832
|
-
|
|
1849
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : w("", !0),
|
|
1850
|
+
E("div", rt, [(k(), T("svg", {
|
|
1833
1851
|
ref_key: "svgRef",
|
|
1834
|
-
ref:
|
|
1835
|
-
"aria-describedby": `chart-instructions-${
|
|
1836
|
-
xmlns: N(
|
|
1852
|
+
ref: Un,
|
|
1853
|
+
"aria-describedby": `chart-instructions-${L.value}`,
|
|
1854
|
+
xmlns: N(ae),
|
|
1837
1855
|
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1838
|
-
class:
|
|
1839
|
-
"vue-data-ui-loading": N(
|
|
1856
|
+
class: He({
|
|
1857
|
+
"vue-data-ui-loading": N(Ln),
|
|
1840
1858
|
"no-transition": !B.value.useCssAnimation
|
|
1841
1859
|
}),
|
|
1842
|
-
style:
|
|
1860
|
+
style: Ue(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
|
|
1843
1861
|
role: "img",
|
|
1844
1862
|
"aria-live": "polite",
|
|
1845
1863
|
tabindex: "0",
|
|
@@ -1851,33 +1869,33 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1851
1869
|
onBlur: $i,
|
|
1852
1870
|
onKeydown: ea
|
|
1853
1871
|
}, [
|
|
1854
|
-
|
|
1855
|
-
(
|
|
1872
|
+
Re(N(Gt)),
|
|
1873
|
+
(k(!0), T(x, null, j(hr.value, (e) => (k(), T(x, null, [t.$slots.pattern ? (k(), T("defs", at, [M(t.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1856
1874
|
seriesIndex: e.absoluteIndex,
|
|
1857
|
-
patternId: `pattern_${
|
|
1858
|
-
}), void 0, !0)])) :
|
|
1859
|
-
t.$slots["chart-background"] ? (
|
|
1875
|
+
patternId: `pattern_${L.value}_${e.absoluteIndex}`
|
|
1876
|
+
}), void 0, !0)])) : w("", !0)], 64))), 256)),
|
|
1877
|
+
t.$slots["chart-background"] ? (k(), T("foreignObject", {
|
|
1860
1878
|
key: 0,
|
|
1861
1879
|
x: X.value.left,
|
|
1862
1880
|
y: W.value.top,
|
|
1863
1881
|
width: X.value.width,
|
|
1864
1882
|
height: W.value.height,
|
|
1865
1883
|
style: { pointerEvents: "none" }
|
|
1866
|
-
}, [
|
|
1867
|
-
B.value.style.chart.lines.gradient.show ? (
|
|
1884
|
+
}, [M(t.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : w("", !0),
|
|
1885
|
+
B.value.style.chart.lines.gradient.show ? (k(), T("defs", st, [(k(!0), T(x, null, j(Y.value, (e, t) => (k(), T("linearGradient", {
|
|
1868
1886
|
id: `gradient_${e.id}`,
|
|
1869
1887
|
x1: "0%",
|
|
1870
1888
|
y1: "0%",
|
|
1871
1889
|
x2: "0%",
|
|
1872
1890
|
y2: "100%"
|
|
1873
|
-
}, [
|
|
1891
|
+
}, [E("stop", {
|
|
1874
1892
|
offset: "0%",
|
|
1875
1893
|
"stop-color": e.color
|
|
1876
|
-
}, null, 8, lt),
|
|
1894
|
+
}, null, 8, lt), E("stop", {
|
|
1877
1895
|
offset: "100%",
|
|
1878
1896
|
"stop-color": N(n)(e.color, B.value.style.chart.lines.gradient.intensity / 100)
|
|
1879
|
-
}, null, 8, ut)], 8, ct))), 256))])) :
|
|
1880
|
-
B.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1897
|
+
}, null, 8, ut)], 8, ct))), 256))])) : w("", !0),
|
|
1898
|
+
B.value.style.chart.grid.x.showHorizontalLines ? (k(!0), T(x, { key: 2 }, j(Ir.value, (e, t) => (k(), T("line", {
|
|
1881
1899
|
x1: X.value.left,
|
|
1882
1900
|
x2: X.value.right,
|
|
1883
1901
|
y1: e.y,
|
|
@@ -1886,8 +1904,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1886
1904
|
"stroke-width": B.value.style.chart.grid.x.linesThickness,
|
|
1887
1905
|
"stroke-dasharray": B.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1888
1906
|
"stroke-linecap": "round"
|
|
1889
|
-
}, null, 8, dt))), 256)) :
|
|
1890
|
-
B.value.style.chart.grid.y.showVerticalLines ? (
|
|
1907
|
+
}, null, 8, dt))), 256)) : w("", !0),
|
|
1908
|
+
B.value.style.chart.grid.y.showVerticalLines ? (k(!0), T(x, { key: 3 }, j(q.value.end - q.value.start, (e, t) => (k(), T("line", {
|
|
1891
1909
|
x1: Q(t),
|
|
1892
1910
|
x2: Q(t),
|
|
1893
1911
|
y1: W.value.top,
|
|
@@ -1896,8 +1914,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1896
1914
|
"stroke-width": B.value.style.chart.grid.y.linesThickness,
|
|
1897
1915
|
"stroke-dasharray": B.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1898
1916
|
"stroke-linecap": "round"
|
|
1899
|
-
}, null, 8, ft))), 256)) :
|
|
1900
|
-
B.value.style.chart.grid.x.showAxis ? (
|
|
1917
|
+
}, null, 8, ft))), 256)) : w("", !0),
|
|
1918
|
+
B.value.style.chart.grid.x.showAxis ? (k(), T("line", {
|
|
1901
1919
|
key: 4,
|
|
1902
1920
|
x1: X.value.left,
|
|
1903
1921
|
x2: X.value.right,
|
|
@@ -1907,8 +1925,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1907
1925
|
"stroke-width": B.value.style.chart.grid.x.axisThickness,
|
|
1908
1926
|
"stroke-linecap": "round",
|
|
1909
1927
|
"stroke-linejoin": "round"
|
|
1910
|
-
}, null, 8, pt)) :
|
|
1911
|
-
B.value.style.chart.grid.y.showAxis && !B.value.style.chart.lines.distributed ? (
|
|
1928
|
+
}, null, 8, pt)) : w("", !0),
|
|
1929
|
+
B.value.style.chart.grid.y.showAxis && !B.value.style.chart.lines.distributed ? (k(), T("line", {
|
|
1912
1930
|
key: 5,
|
|
1913
1931
|
x1: or.value ? X.value.right : X.value.left,
|
|
1914
1932
|
x2: or.value ? X.value.right : X.value.left,
|
|
@@ -1918,29 +1936,29 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1918
1936
|
"stroke-width": B.value.style.chart.grid.y.axisThickness,
|
|
1919
1937
|
"stroke-linecap": "round",
|
|
1920
1938
|
"stroke-linejoin": "round"
|
|
1921
|
-
}, null, 8, mt)) :
|
|
1922
|
-
B.value.style.chart.grid.x.axisName.show && B.value.style.chart.grid.x.axisName.text ? (
|
|
1939
|
+
}, null, 8, mt)) : w("", !0),
|
|
1940
|
+
B.value.style.chart.grid.x.axisName.show && B.value.style.chart.grid.x.axisName.text ? (k(), T("text", {
|
|
1923
1941
|
key: 6,
|
|
1924
1942
|
ref_key: "xAxisLabel",
|
|
1925
|
-
ref:
|
|
1943
|
+
ref: vn,
|
|
1926
1944
|
x: W.value.left + W.value.width / 2,
|
|
1927
1945
|
y: W.value.chartHeight - 3,
|
|
1928
1946
|
"font-size": B.value.style.chart.grid.x.axisName.fontSize,
|
|
1929
1947
|
fill: B.value.style.chart.grid.x.axisName.color,
|
|
1930
1948
|
"font-weight": B.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1931
1949
|
"text-anchor": "middle"
|
|
1932
|
-
},
|
|
1933
|
-
B.value.style.chart.grid.y.axisName.show && B.value.style.chart.grid.y.axisName.text ? (
|
|
1950
|
+
}, Je(B.value.style.chart.grid.x.axisName.text), 9, ht)) : w("", !0),
|
|
1951
|
+
B.value.style.chart.grid.y.axisName.show && B.value.style.chart.grid.y.axisName.text ? (k(), T("text", {
|
|
1934
1952
|
key: 7,
|
|
1935
1953
|
ref_key: "yAxisLabel",
|
|
1936
|
-
ref:
|
|
1954
|
+
ref: yn,
|
|
1937
1955
|
transform: `translate(${or.value ? W.value.chartWidth - B.value.style.chart.grid.y.axisName.fontSize / 2 - B.value.style.chart.grid.y.axisName.offsetX : B.value.style.chart.grid.y.axisName.fontSize + B.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1938
1956
|
"font-size": B.value.style.chart.grid.y.axisName.fontSize,
|
|
1939
1957
|
fill: B.value.style.chart.grid.y.axisName.color,
|
|
1940
1958
|
"font-weight": B.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1941
1959
|
"text-anchor": "middle"
|
|
1942
|
-
},
|
|
1943
|
-
B.value.style.chart.grid.frame.show ? (
|
|
1960
|
+
}, Je(B.value.style.chart.grid.y.axisName.text), 9, gt)) : w("", !0),
|
|
1961
|
+
B.value.style.chart.grid.frame.show ? (k(), T("rect", {
|
|
1944
1962
|
key: 8,
|
|
1945
1963
|
style: {
|
|
1946
1964
|
pointerEvents: "none",
|
|
@@ -1957,51 +1975,51 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
1957
1975
|
"stroke-linecap": B.value.style.chart.grid.frame.strokeLinecap,
|
|
1958
1976
|
"stroke-linejoin": B.value.style.chart.grid.frame.strokeLinejoin,
|
|
1959
1977
|
"stroke-dasharray": B.value.style.chart.grid.frame.strokeDasharray
|
|
1960
|
-
}, null, 8, _t)) :
|
|
1961
|
-
(
|
|
1978
|
+
}, null, 8, _t)) : w("", !0),
|
|
1979
|
+
(k(!0), T(x, null, j(Y.value, (e) => (k(), T(x, null, [B.value.style.chart.lines.useArea && !e.standalone ? (k(), T("path", {
|
|
1962
1980
|
key: 0,
|
|
1963
1981
|
d: B.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
1964
|
-
fill: t.$slots.pattern ? `url(#pattern_${
|
|
1982
|
+
fill: t.$slots.pattern ? `url(#pattern_${L.value}_${e.absoluteIndex})` : B.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1965
1983
|
opacity: B.value.style.chart.lines.areaOpacity,
|
|
1966
|
-
style:
|
|
1967
|
-
}, null, 12, vt)) :
|
|
1968
|
-
(
|
|
1984
|
+
style: Ue({ transition: N(Ln) || !B.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1985
|
+
}, null, 12, vt)) : w("", !0)], 64))), 256)),
|
|
1986
|
+
(k(!0), T(x, null, j(Y.value, (e) => (k(), T("path", {
|
|
1969
1987
|
d: B.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
1970
1988
|
stroke: B.value.style.chart.lines.path.useSerieColor ? e.color : B.value.style.chart.lines.path.stroke,
|
|
1971
1989
|
"stroke-width": B.value.style.chart.lines.strokeWidth,
|
|
1972
1990
|
fill: "none",
|
|
1973
1991
|
"stroke-linecap": "round",
|
|
1974
|
-
style:
|
|
1992
|
+
style: Ue({ transition: N(Ln) || !B.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
|
|
1975
1993
|
}, null, 12, yt))), 256)),
|
|
1976
|
-
B.value.style.chart.grid.y.axisLabels.show && !B.value.style.chart.lines.distributed ? (
|
|
1994
|
+
B.value.style.chart.grid.y.axisLabels.show && !B.value.style.chart.lines.distributed ? (k(), T("g", {
|
|
1977
1995
|
key: 9,
|
|
1978
1996
|
ref_key: "scaleLabels",
|
|
1979
|
-
ref:
|
|
1980
|
-
}, [(
|
|
1997
|
+
ref: bn
|
|
1998
|
+
}, [(k(!0), T(x, null, j(Ir.value, (e, t) => (k(), T("line", {
|
|
1981
1999
|
x1: or.value ? X.value.right : X.value.left,
|
|
1982
2000
|
x2: or.value ? X.value.right + 6 : X.value.left - 6,
|
|
1983
2001
|
y1: e.y,
|
|
1984
2002
|
y2: e.y,
|
|
1985
2003
|
stroke: B.value.style.chart.grid.x.axisColor,
|
|
1986
2004
|
"stroke-width": 1
|
|
1987
|
-
}, null, 8, bt))), 256)), (
|
|
2005
|
+
}, null, 8, bt))), 256)), (k(!0), T(x, null, j(Ir.value, (e, t) => (k(), T("text", {
|
|
1988
2006
|
x: e.x,
|
|
1989
2007
|
y: e.y + B.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1990
2008
|
"font-size": B.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1991
2009
|
"font-weight": B.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1992
2010
|
fill: B.value.style.chart.grid.y.axisLabels.color,
|
|
1993
2011
|
"text-anchor": or.value ? "start" : "end"
|
|
1994
|
-
},
|
|
2012
|
+
}, Je(N(y)(B.value.style.chart.grid.y.axisLabels.formatter, e.value, N(o)({
|
|
1995
2013
|
p: B.value.style.chart.lines.dataLabels.prefix,
|
|
1996
2014
|
v: e.value,
|
|
1997
2015
|
s: B.value.style.chart.lines.dataLabels.suffix,
|
|
1998
2016
|
r: B.value.style.chart.grid.y.axisLabels.rounding
|
|
1999
|
-
}), { datapoint: e })), 9, xt))), 256))], 512)) :
|
|
2000
|
-
B.value.style.chart.grid.x.timeLabels.show ? (
|
|
2017
|
+
}), { datapoint: e })), 9, xt))), 256))], 512)) : w("", !0),
|
|
2018
|
+
B.value.style.chart.grid.x.timeLabels.show ? (k(), T("g", {
|
|
2001
2019
|
key: 10,
|
|
2002
2020
|
ref_key: "timeLabelsEls",
|
|
2003
|
-
ref:
|
|
2004
|
-
}, [t.$slots["time-label"] ? (
|
|
2021
|
+
ref: xn
|
|
2022
|
+
}, [t.$slots["time-label"] ? (k(), T("g", St, [(k(!0), T(x, null, j(Hr.value, (e, n) => (k(), T("g", null, [M(t.$slots, "time-label", Be({ ref_for: !0 }, {
|
|
2005
2023
|
x: W.value.left + Tr.value * n + Tr.value / 2,
|
|
2006
2024
|
y: W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2007
2025
|
fontSize: B.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2011,7 +2029,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2011
2029
|
content: e.text,
|
|
2012
2030
|
textAnchor: B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2013
2031
|
show: !0
|
|
2014
|
-
}), void 0, !0)]))), 256))])) : (
|
|
2032
|
+
}), void 0, !0)]))), 256))])) : (k(), T("g", Ct, [(k(!0), T(x, null, j(Hr.value, (e, n) => (k(), T("g", null, [String(e.text).includes("\n") ? (k(), T("text", {
|
|
2015
2033
|
key: n + "-multi",
|
|
2016
2034
|
"text-anchor": B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2017
2035
|
"font-size": B.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2023,7 +2041,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2023
2041
|
),
|
|
2024
2042
|
rotate(${B.value.style.chart.grid.x.timeLabels.rotation})
|
|
2025
2043
|
`,
|
|
2026
|
-
style:
|
|
2044
|
+
style: Ue({ cursor: V.value ? "pointer" : "default" }),
|
|
2027
2045
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2028
2046
|
content: String(e.text),
|
|
2029
2047
|
fontSize: B.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2032,7 +2050,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2032
2050
|
y: 0
|
|
2033
2051
|
}),
|
|
2034
2052
|
onClick: () => gi(e, n)
|
|
2035
|
-
}, null, 12, Tt)) : (
|
|
2053
|
+
}, null, 12, Tt)) : (k(), T("text", {
|
|
2036
2054
|
class: "vue-data-ui-time-label",
|
|
2037
2055
|
key: n,
|
|
2038
2056
|
"text-anchor": B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2040,10 +2058,10 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2040
2058
|
"font-weight": B.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2041
2059
|
fill: B.value.style.chart.grid.x.timeLabels.color,
|
|
2042
2060
|
transform: `translate(${Q(n)}, ${W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${B.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2043
|
-
style:
|
|
2061
|
+
style: Ue({ cursor: V.value ? "pointer" : "default" }),
|
|
2044
2062
|
onClick: () => gi(e, n)
|
|
2045
|
-
},
|
|
2046
|
-
(
|
|
2063
|
+
}, Je(e.text), 13, wt))]))), 256))]))], 512)) : w("", !0),
|
|
2064
|
+
(hn.value || ![null, void 0].includes($.value)) && !B.value.style.chart.highlighter.useLine ? (k(!0), T(x, { key: 11 }, j(q.value.end - q.value.start, (e, t) => (k(), T("g", { key: `tooltip_trap_highlighter_${t}` }, [E("rect", {
|
|
2047
2065
|
x: si(t).x,
|
|
2048
2066
|
y: W.value.top,
|
|
2049
2067
|
height: W.value.height,
|
|
@@ -2053,12 +2071,12 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2053
2071
|
transition: "none !important",
|
|
2054
2072
|
animation: "none !important"
|
|
2055
2073
|
}
|
|
2056
|
-
}, null, 8, Et)]))), 128)) :
|
|
2057
|
-
(
|
|
2074
|
+
}, null, 8, Et)]))), 128)) : w("", !0),
|
|
2075
|
+
(hn.value || ![null, void 0].includes($.value)) && B.value.style.chart.highlighter.useLine ? (k(), T(x, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Nn.value) ? (k(), T("g", Dt, [E("line", {
|
|
2058
2076
|
x1: Q(($.value ?? Nn.value) || 0),
|
|
2059
2077
|
x2: Q(($.value ?? Nn.value) || 0),
|
|
2060
|
-
y1: N(
|
|
2061
|
-
y2: N(
|
|
2078
|
+
y1: N(re)(W.value.top),
|
|
2079
|
+
y2: N(re)(W.value.bottom),
|
|
2062
2080
|
stroke: B.value.style.chart.highlighter.color,
|
|
2063
2081
|
"stroke-width": B.value.style.chart.highlighter.lineWidth,
|
|
2064
2082
|
"stroke-dasharray": B.value.style.chart.highlighter.lineDasharray,
|
|
@@ -2068,8 +2086,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2068
2086
|
animation: "none !important",
|
|
2069
2087
|
"pointer-events": "none"
|
|
2070
2088
|
}
|
|
2071
|
-
}, null, 8, Ot)])) :
|
|
2072
|
-
(
|
|
2089
|
+
}, null, 8, Ot)])) : w("", !0)], 64)) : w("", !0),
|
|
2090
|
+
(k(!0), T(x, null, j(Y.value, (e) => (k(), T(x, null, [hn.value && q.value.end - q.value.start > B.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (k(), T("g", kt, [$.value == null ? w("", !0) : (k(), T(x, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (k(), C(we, {
|
|
2073
2091
|
key: 0,
|
|
2074
2092
|
shape: [
|
|
2075
2093
|
"triangle",
|
|
@@ -2081,13 +2099,13 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2081
2099
|
].includes(e.shape) ? e.shape : "circle",
|
|
2082
2100
|
color: B.value.style.chart.lines.dot.useSerieColor ? e.color : B.value.style.chart.lines.dot.fill,
|
|
2083
2101
|
plot: {
|
|
2084
|
-
x: N(
|
|
2085
|
-
y: N(
|
|
2102
|
+
x: N(oe)(e.points[e.rel.indexOf($.value)].x),
|
|
2103
|
+
y: N(oe)(e.points[e.rel.indexOf($.value)].y)
|
|
2086
2104
|
},
|
|
2087
2105
|
radius: B.value.style.chart.lines.dot.radius * 1.3,
|
|
2088
2106
|
stroke: B.value.style.chart.lines.dot.useSerieColor ? B.value.style.chart.lines.dot.stroke : e.color,
|
|
2089
2107
|
strokeWidth: B.value.style.chart.lines.dot.strokeWidth,
|
|
2090
|
-
transition: N(
|
|
2108
|
+
transition: N(Ln) ? void 0 : `all ${B.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
2091
2109
|
}, null, 8, [
|
|
2092
2110
|
"shape",
|
|
2093
2111
|
"color",
|
|
@@ -2096,8 +2114,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2096
2114
|
"stroke",
|
|
2097
2115
|
"strokeWidth",
|
|
2098
2116
|
"transition"
|
|
2099
|
-
])) :
|
|
2100
|
-
(
|
|
2117
|
+
])) : w("", !0)], 64))])) : w("", !0)], 64))), 256)),
|
|
2118
|
+
(k(!0), T(x, null, j(Y.value, (e) => (k(), T(x, null, [q.value.end - q.value.start < B.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (k(!0), T(x, { key: 0 }, j(e.points, (t, n) => (k(), T("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (k(), C(we, {
|
|
2101
2119
|
key: 0,
|
|
2102
2120
|
shape: [
|
|
2103
2121
|
"triangle",
|
|
@@ -2112,10 +2130,10 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2112
2130
|
x: t.x,
|
|
2113
2131
|
y: t.y
|
|
2114
2132
|
},
|
|
2115
|
-
radius:
|
|
2133
|
+
radius: hn.value && $.value === e.rel[n] ? B.value.style.chart.lines.dot.radius * 1.3 : B.value.style.chart.lines.dot.radius,
|
|
2116
2134
|
stroke: B.value.style.chart.lines.dot.useSerieColor ? B.value.style.chart.lines.dot.stroke : e.color,
|
|
2117
2135
|
strokeWidth: B.value.style.chart.lines.dot.strokeWidth,
|
|
2118
|
-
transition: N(
|
|
2136
|
+
transition: N(Ln) ? void 0 : `all ${B.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
|
|
2119
2137
|
}, null, 8, [
|
|
2120
2138
|
"shape",
|
|
2121
2139
|
"color",
|
|
@@ -2124,8 +2142,8 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2124
2142
|
"stroke",
|
|
2125
2143
|
"strokeWidth",
|
|
2126
2144
|
"transition"
|
|
2127
|
-
])) :
|
|
2128
|
-
H.value.dataLabels.show && B.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (
|
|
2145
|
+
])) : w("", !0)]))), 128)) : w("", !0)], 64))), 256)),
|
|
2146
|
+
H.value.dataLabels.show && B.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (k(), T(x, { key: 13 }, [(k(!0), T(x, null, j(Y.value, (e, t) => (k(), T("g", { key: t }, [(k(!0), T(x, null, j(e.points, (n, r) => (k(), T(x, { key: r }, [Wi(e.series[r], e.proportions[r]) ? (k(), T("text", {
|
|
2129
2147
|
key: 0,
|
|
2130
2148
|
x: n.x,
|
|
2131
2149
|
y: n.y + (e.series[r] >= 0 ? -B.value.style.chart.lines.dataLabels.fontSize / 2 + B.value.style.chart.lines.dataLabels.offsetY : B.value.style.chart.lines.dataLabels.fontSize * 1.2 - B.value.style.chart.lines.dataLabels.offsetY),
|
|
@@ -2133,11 +2151,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2133
2151
|
fill: B.value.style.chart.lines.dataLabels.color,
|
|
2134
2152
|
"font-weight": B.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2135
2153
|
"text-anchor": "middle"
|
|
2136
|
-
},
|
|
2154
|
+
}, Je(B.value.style.chart.lines.showDistributedPercentage && B.value.style.chart.lines.distributed ? qi(e.proportions[r] * 100, e, t, e.rel[r]) : Ki(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 9, At)) : w("", !0)], 64))), 128))]))), 128)), B.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (k(), T("g", {
|
|
2137
2155
|
key: 0,
|
|
2138
2156
|
ref_key: "sumTop",
|
|
2139
|
-
ref:
|
|
2140
|
-
}, [(
|
|
2157
|
+
ref: Sn
|
|
2158
|
+
}, [(k(!0), T(x, null, j(Nr.value, (e, t) => (k(), T(x, null, [!B.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (k(), T("text", {
|
|
2141
2159
|
key: 0,
|
|
2142
2160
|
x: Q(t),
|
|
2143
2161
|
y: Fr(t),
|
|
@@ -2145,47 +2163,47 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2145
2163
|
"font-size": B.value.style.chart.lines.totalValues.fontSize,
|
|
2146
2164
|
"font-weight": B.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2147
2165
|
fill: B.value.style.chart.lines.totalValues.color
|
|
2148
|
-
},
|
|
2149
|
-
yr.value ? (
|
|
2166
|
+
}, Je(Ki(e.value, e, t, t, e.sign)), 9, jt)) : w("", !0)], 64))), 256))], 512)) : w("", !0)], 64)) : w("", !0),
|
|
2167
|
+
yr.value ? (k(), T("rect", Be({ key: 14 }, mr.value, {
|
|
2150
2168
|
"data-start": q.value.start,
|
|
2151
2169
|
"data-end": q.value.end
|
|
2152
|
-
}), null, 16, Mt)) :
|
|
2153
|
-
|
|
2170
|
+
}), null, 16, Mt)) : w("", !0),
|
|
2171
|
+
M(t.$slots, "svg", { svg: {
|
|
2154
2172
|
drawingArea: W.value,
|
|
2155
2173
|
data: Y.value,
|
|
2156
|
-
isPrintingImg: N(Yn) || N(Xn) ||
|
|
2157
|
-
isPrintingSvg:
|
|
2174
|
+
isPrintingImg: N(Yn) || N(Xn) || gn.value,
|
|
2175
|
+
isPrintingSvg: _n.value
|
|
2158
2176
|
} }, void 0, !0)
|
|
2159
|
-
], 46, it)), t.$slots.hint ? (
|
|
2177
|
+
], 46, it)), t.$slots.hint ? (k(), T("div", Nt, [M(t.$slots, "hint", O(D({
|
|
2160
2178
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
2161
2179
|
isVisible: Zi.value
|
|
2162
|
-
})), void 0, !0)])) :
|
|
2163
|
-
t.$slots.watermark ? (
|
|
2164
|
-
|
|
2180
|
+
})), void 0, !0)])) : w("", !0)]),
|
|
2181
|
+
t.$slots.watermark ? (k(), T("div", Pt, [M(t.$slots, "watermark", O(D({ isPrinting: N(Yn) || N(Xn) || gn.value || _n.value })), void 0, !0)])) : w("", !0),
|
|
2182
|
+
fn.value && (B.value.style.chart.legend.show || t.$slots.legend) ? (k(), C(Fe, {
|
|
2165
2183
|
key: 6,
|
|
2166
|
-
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
2167
|
-
}, [
|
|
2184
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
|
|
2185
|
+
}, [E("div", {
|
|
2168
2186
|
ref_key: "chartLegend",
|
|
2169
|
-
ref:
|
|
2170
|
-
}, [
|
|
2187
|
+
ref: nn
|
|
2188
|
+
}, [M(t.$slots, "legend", { legend: yi.value }, () => [B.value.style.chart.legend.show ? (k(), C(Ne, {
|
|
2171
2189
|
key: 0,
|
|
2172
2190
|
legendSet: yi.value,
|
|
2173
2191
|
config: bi.value,
|
|
2174
|
-
isCursorPointer:
|
|
2192
|
+
isCursorPointer: V.value,
|
|
2175
2193
|
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2176
|
-
},
|
|
2177
|
-
item: P(({ legend: e }) => [N(
|
|
2194
|
+
}, Ie({
|
|
2195
|
+
item: P(({ legend: e }) => [N(Ln) ? w("", !0) : (k(), T("div", {
|
|
2178
2196
|
key: 0,
|
|
2179
2197
|
onClick: (t) => e.segregate(),
|
|
2180
|
-
style:
|
|
2181
|
-
},
|
|
2182
|
-
legendToggle: P(() => [yi.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !N(
|
|
2198
|
+
style: Ue(`opacity:${R.value.includes(e.id) ? .5 : 1}`)
|
|
2199
|
+
}, Je(e.name), 13, Ft))]),
|
|
2200
|
+
legendToggle: P(() => [yi.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !N(Ln) ? (k(), C(ke, {
|
|
2183
2201
|
key: 0,
|
|
2184
2202
|
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2185
2203
|
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
2186
2204
|
fontSize: B.value.style.chart.legend.fontSize,
|
|
2187
|
-
checked:
|
|
2188
|
-
isCursorPointer:
|
|
2205
|
+
checked: R.value.length > 0,
|
|
2206
|
+
isCursorPointer: V.value,
|
|
2189
2207
|
onToggle: _i
|
|
2190
2208
|
}, null, 8, [
|
|
2191
2209
|
"backgroundColor",
|
|
@@ -2193,11 +2211,11 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2193
2211
|
"fontSize",
|
|
2194
2212
|
"checked",
|
|
2195
2213
|
"isCursorPointer"
|
|
2196
|
-
])) :
|
|
2214
|
+
])) : w("", !0)]),
|
|
2197
2215
|
_: 2
|
|
2198
2216
|
}, [t.$slots.pattern ? {
|
|
2199
2217
|
name: "legend-pattern",
|
|
2200
|
-
fn: P(({ legend: e, index: t }) => [
|
|
2218
|
+
fn: P(({ legend: e, index: t }) => [Re(we, {
|
|
2201
2219
|
shape: e.shape,
|
|
2202
2220
|
radius: 30,
|
|
2203
2221
|
stroke: "none",
|
|
@@ -2205,31 +2223,31 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2205
2223
|
x: 30,
|
|
2206
2224
|
y: 30
|
|
2207
2225
|
},
|
|
2208
|
-
fill: `url(#pattern_${
|
|
2226
|
+
fill: `url(#pattern_${L.value}_${t})`
|
|
2209
2227
|
}, null, 8, ["shape", "fill"])]),
|
|
2210
2228
|
key: "0"
|
|
2211
2229
|
} : void 0]), 1032, [
|
|
2212
2230
|
"legendSet",
|
|
2213
2231
|
"config",
|
|
2214
2232
|
"isCursorPointer"
|
|
2215
|
-
])) :
|
|
2216
|
-
Zt.value && B.value.userOptions.buttons.table ? (
|
|
2233
|
+
])) : w("", !0)], !0)], 512)], 8, ["to"])) : w("", !0),
|
|
2234
|
+
Zt.value && B.value.userOptions.buttons.table ? (k(), C(Ke(Ni.value.component), Be({ key: 7 }, Ni.value.props, {
|
|
2217
2235
|
ref_key: "tableUnit",
|
|
2218
|
-
ref:
|
|
2236
|
+
ref: pn,
|
|
2219
2237
|
onClose: Pi
|
|
2220
|
-
}),
|
|
2221
|
-
content: P(() => [
|
|
2238
|
+
}), Ie({
|
|
2239
|
+
content: P(() => [Re(N(Ht), {
|
|
2222
2240
|
colNames: Ei.value.colNames,
|
|
2223
2241
|
head: Ei.value.head,
|
|
2224
2242
|
body: Ei.value.body,
|
|
2225
2243
|
config: Ei.value.config,
|
|
2226
2244
|
title: B.value.table.useDialog ? "" : Ni.value.title,
|
|
2227
2245
|
withCloseButton: !B.value.table.useDialog,
|
|
2228
|
-
isCursorPointer:
|
|
2246
|
+
isCursorPointer: V.value,
|
|
2229
2247
|
onClose: Pi
|
|
2230
2248
|
}, {
|
|
2231
|
-
th: P(({ th: e }) => [
|
|
2232
|
-
td: P(({ td: e }) => [
|
|
2249
|
+
th: P(({ th: e }) => [E("div", { innerHTML: e }, null, 8, It)]),
|
|
2250
|
+
td: P(({ td: e }) => [Le(Je(isNaN(Number(e)) ? e : N(o)({
|
|
2233
2251
|
p: B.value.style.chart.lines.dataLabels.prefix,
|
|
2234
2252
|
v: e,
|
|
2235
2253
|
s: B.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2248,25 +2266,25 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2248
2266
|
_: 2
|
|
2249
2267
|
}, [B.value.table.useDialog ? {
|
|
2250
2268
|
name: "title",
|
|
2251
|
-
fn: P(() => [
|
|
2269
|
+
fn: P(() => [Le(Je(Ni.value.title), 1)]),
|
|
2252
2270
|
key: "0"
|
|
2253
2271
|
} : void 0, B.value.table.useDialog ? {
|
|
2254
2272
|
name: "actions",
|
|
2255
|
-
fn: P(() => [
|
|
2273
|
+
fn: P(() => [E("button", {
|
|
2256
2274
|
tabindex: "0",
|
|
2257
2275
|
class: "vue-ui-user-options-button",
|
|
2258
2276
|
onClick: r[1] ||= (e) => Ti(B.value.userOptions.callbacks.csv),
|
|
2259
|
-
style:
|
|
2260
|
-
}, [
|
|
2277
|
+
style: Ue({ cursor: V.value ? "pointer" : "default" })
|
|
2278
|
+
}, [Re(N(Bt), {
|
|
2261
2279
|
name: "fileCsv",
|
|
2262
2280
|
stroke: Ni.value.props.color
|
|
2263
2281
|
}, null, 8, ["stroke"])], 4)]),
|
|
2264
2282
|
key: "1"
|
|
2265
|
-
} : void 0]), 1040)) :
|
|
2266
|
-
B.value.style.chart.zoom.show && Zt.value && Zr.value && K.value > 6 ? (
|
|
2283
|
+
} : void 0]), 1040)) : w("", !0),
|
|
2284
|
+
B.value.style.chart.zoom.show && Zt.value && Zr.value && K.value > 6 ? (k(), C(Oe, {
|
|
2267
2285
|
key: 8,
|
|
2268
2286
|
ref_key: "chartSlicer",
|
|
2269
|
-
ref:
|
|
2287
|
+
ref: rn,
|
|
2270
2288
|
allMinimaps: kr.value,
|
|
2271
2289
|
background: B.value.style.chart.zoom.color,
|
|
2272
2290
|
borderColor: B.value.style.chart.backgroundColor,
|
|
@@ -2308,7 +2326,7 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2308
2326
|
valueStart: q.value.start,
|
|
2309
2327
|
verticalHandles: B.value.style.chart.zoom.minimap.verticalHandles,
|
|
2310
2328
|
maxWidth: B.value.style.chart.zoom.maxWidth,
|
|
2311
|
-
isCursorPointer:
|
|
2329
|
+
isCursorPointer: V.value,
|
|
2312
2330
|
additionalMinimapHeight: B.value.style.chart.zoom.minimap.additionalHeight,
|
|
2313
2331
|
handleType: B.value.style.chart.zoom.minimap.handleType,
|
|
2314
2332
|
handleIconColor: B.value.style.chart.zoom.minimap.handleIconColor,
|
|
@@ -2323,18 +2341,18 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2323
2341
|
onFutureEnd: r[3] ||= (e) => br("end", e),
|
|
2324
2342
|
onFutureStart: r[4] ||= (e) => br("start", e)
|
|
2325
2343
|
}, {
|
|
2326
|
-
"reset-action": P(({ reset: e }) => [
|
|
2327
|
-
slotMap: P(({ width: e, height: t, unitW: n }) => [
|
|
2344
|
+
"reset-action": P(({ reset: e }) => [M(t.$slots, "reset-action", O(D({ reset: e })), void 0, !0)]),
|
|
2345
|
+
slotMap: P(({ width: e, height: t, unitW: n }) => [E("g", { innerHTML: Ui({
|
|
2328
2346
|
minimapW: e,
|
|
2329
2347
|
minimapH: t,
|
|
2330
2348
|
unitW: n
|
|
2331
2349
|
}) }, null, 8, Lt)]),
|
|
2332
2350
|
_: 3
|
|
2333
|
-
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
2334
|
-
|
|
2335
|
-
|
|
2351
|
+
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : w("", !0),
|
|
2352
|
+
E("div", { id: `legend-bottom-${L.value}` }, null, 8, Rt),
|
|
2353
|
+
Re(N(zt), {
|
|
2336
2354
|
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
2337
|
-
show: H.value.showTooltip &&
|
|
2355
|
+
show: H.value.showTooltip && $t.value,
|
|
2338
2356
|
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
2339
2357
|
color: B.value.style.chart.tooltip.color,
|
|
2340
2358
|
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
@@ -2345,9 +2363,9 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2345
2363
|
position: B.value.style.chart.tooltip.position,
|
|
2346
2364
|
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
2347
2365
|
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
2348
|
-
parent:
|
|
2366
|
+
parent: Qt.value,
|
|
2349
2367
|
content: mi.value,
|
|
2350
|
-
isFullscreen:
|
|
2368
|
+
isFullscreen: sn.value,
|
|
2351
2369
|
isCustom: B.value.style.chart.tooltip.customFormat && typeof B.value.style.chart.tooltip.customFormat == "function",
|
|
2352
2370
|
smooth: B.value.style.chart.tooltip.smooth,
|
|
2353
2371
|
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
@@ -2356,9 +2374,9 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2356
2374
|
isA11yMode: On.value === "keyboard",
|
|
2357
2375
|
a11yPosition: Dn.value
|
|
2358
2376
|
}, {
|
|
2359
|
-
"tooltip-before": P(() => [
|
|
2360
|
-
tooltip: P(() => [
|
|
2361
|
-
"tooltip-after": P(() => [
|
|
2377
|
+
"tooltip-before": P(() => [M(t.$slots, "tooltip-before", O(D({ ...Yr.value })), void 0, !0)]),
|
|
2378
|
+
tooltip: P(() => [M(t.$slots, "tooltip", O(D({ ...Yr.value })), void 0, !0)]),
|
|
2379
|
+
"tooltip-after": P(() => [M(t.$slots, "tooltip-after", O(D({ ...Yr.value })), void 0, !0)]),
|
|
2362
2380
|
_: 3
|
|
2363
2381
|
}, 8, [
|
|
2364
2382
|
"teleportTo",
|
|
@@ -2384,15 +2402,15 @@ var $e = /* @__PURE__ */ e({ default: () => zt }), et = ["id"], tt = ["id"], nt
|
|
|
2384
2402
|
"isA11yMode",
|
|
2385
2403
|
"a11yPosition"
|
|
2386
2404
|
]),
|
|
2387
|
-
t.$slots.source ? (
|
|
2405
|
+
t.$slots.source ? (k(), T("div", {
|
|
2388
2406
|
key: 9,
|
|
2389
2407
|
ref_key: "source",
|
|
2390
|
-
ref:
|
|
2408
|
+
ref: on,
|
|
2391
2409
|
dir: "auto"
|
|
2392
|
-
}, [
|
|
2393
|
-
|
|
2410
|
+
}, [M(t.$slots, "source", {}, void 0, !0)], 512)) : w("", !0),
|
|
2411
|
+
M(t.$slots, "skeleton", {}, () => [N(Ln) ? (k(), C(ge, { key: 0 })) : w("", !0)], !0)
|
|
2394
2412
|
], 46, et));
|
|
2395
2413
|
}
|
|
2396
|
-
}, [["__scopeId", "data-v-
|
|
2414
|
+
}, [["__scopeId", "data-v-3de8d18e"]]);
|
|
2397
2415
|
//#endregion
|
|
2398
2416
|
export { $e as n, zt as t };
|