vue-data-ui 3.23.13 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -13
- package/dist/{Arrow-DrF4NNJO.js → Arrow-CJuuMivt.js} +1 -1
- package/dist/{BaseDraggableDialog-Dr_Q6Yt5.js → BaseDraggableDialog-9RMU4zIz.js} +2 -2
- package/dist/{BaseIcon-BbElSC8_.js → BaseIcon-U0y1Y7dC.js} +1 -1
- package/dist/{BaseLegendToggle-CtEdLr4R.js → BaseLegendToggle-B_wibe7d.js} +1 -1
- package/dist/{BaseZoomControls-Cvq4UmNG.js → BaseZoomControls-DXDTBATh.js} +2 -2
- package/dist/{ColorPicker-ChOgAmCi.js → ColorPicker-Diee0Pe9.js} +2 -2
- package/dist/{DataTable-CmyEubtT.js → DataTable-1Lsn9w61.js} +2 -2
- package/dist/{HillActions-3HneGJhS.js → HillActions-DntqVj-0.js} +1 -1
- package/dist/{Legend-BJtY2RA9.js → Legend-Cg1jtWxv.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DmxzHJtV.js → NonSvgPenAndPaper-aCu8CNkj.js} +4 -4
- package/dist/{PackageVersion-DH9mKo1i.js → PackageVersion-CrLLZ567.js} +1 -1
- package/dist/{PenAndPaper-CIa1F5Jq.js → PenAndPaper-ktbpEc-t.js} +4 -4
- package/dist/{Shape-BAL5bQmA.js → Shape-BV_BCG2F.js} +1 -1
- package/dist/{SlicerPreview-lCGvUNUH.js → SlicerPreview-CsFT236o.js} +8 -8
- package/dist/{SparkTooltip-Bou05CV_.js → SparkTooltip-BqzJa3h2.js} +1 -1
- package/dist/{Title-CaVA8EIw.js → Title-C5ytqOnj.js} +1 -1
- package/dist/{Tooltip-CVxJe3UW.js → Tooltip-CTgk02J6.js} +1 -1
- package/dist/{UserOptions-WH7-49V0.js → UserOptions-DJt-e5q0.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +2 -0
- 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-COvyU2SG.js → dom-to-png-K9hvrmBm.js} +1 -1
- package/dist/{exposedLib-DrUEXSyf.js → exposedLib-CNHCqGuG.js} +1 -1
- package/dist/{img-Bkzj3lDD.js → img-DRq3Equ5.js} +1 -1
- package/dist/{labelUtils-iX76cA2-.js → labelUtils-CSh956Gz.js} +1 -1
- package/dist/{lib-Dqr_-I6Y.js → lib-DfMn_3jf.js} +6 -5
- package/dist/{package-LqzHoybL.js → package-DwX5gXIb.js} +1 -1
- package/dist/{pdf-Bk_9lTdQ.js → pdf-CglSdC4O.js} +1 -1
- package/dist/{render-common-w-CDlMO6.js → render-common-DruozHP7.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 +153 -3
- package/dist/types/vue-ui-label.d.ts +50 -0
- package/dist/{useChartExport-DNiwdPmb.js → useChartExport-iwOqiIWX.js} +9 -8
- package/dist/{useConfig-DwdGsXTx.js → useConfig-BtJSJ6AK.js} +69 -1
- package/dist/{useNestedProp-CulPqtou.js → useNestedProp-CLEe1P5W.js} +1 -1
- package/dist/{useObjectBindings-BKkmFRiI.js → useObjectBindings-CgRKOMSB.js} +3 -2
- package/dist/{usePrinter-CEiH1b6R.js → usePrinter-Daqyj6c7.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-D9mXY0al.js → vue-data-ui-C37q2rbt.js} +78 -76
- package/dist/vue-data-ui.js +76 -75
- package/dist/{vue-ui-3d-bar-DRPuSQ4e.js → vue-ui-3d-bar-B_z643_d.js} +8 -8
- package/dist/{vue-ui-accordion-C6L7glHU.js → vue-ui-accordion-BhOSscZB.js} +4 -4
- package/dist/{vue-ui-age-pyramid-B8vOvI_t.js → vue-ui-age-pyramid-CS1J-mHZ.js} +8 -8
- package/dist/{vue-ui-annotator-BwIu0JUV.js → vue-ui-annotator-DmTbmRrw.js} +7 -7
- package/dist/{vue-ui-bullet-DVNmzl4P.js → vue-ui-bullet-BUuF_-rE.js} +9 -9
- package/dist/{vue-ui-bump-DWh2Z5YJ.js → vue-ui-bump-Dt13LCR2.js} +24 -23
- package/dist/{vue-ui-candlestick-CsNB1k8H.js → vue-ui-candlestick-CgvK082R.js} +22 -21
- package/dist/{vue-ui-carousel-table-CoVW5Fdg.js → vue-ui-carousel-table-C6IZZLpG.js} +5 -5
- package/dist/{vue-ui-chestnut-HfJunSSz.js → vue-ui-chestnut-B03dTYpe.js} +7 -7
- package/dist/{vue-ui-chord-BN8GOPjO.js → vue-ui-chord-R7YLYkOS.js} +10 -10
- package/dist/{vue-ui-circle-pack-CADmtvmt.js → vue-ui-circle-pack-CxIJbXSK.js} +8 -8
- package/dist/{vue-ui-cursor-BBTOC9ZH.js → vue-ui-cursor-Bqm8zbqD.js} +4 -4
- package/dist/{vue-ui-dag-CwscLfEg.js → vue-ui-dag-TqlqeLgZ.js} +9 -9
- package/dist/{vue-ui-dashboard-Cp7LV9rM.js → vue-ui-dashboard-W0PV1gGV.js} +70 -70
- package/dist/{vue-ui-digits-C1ZVKDGy.js → vue-ui-digits-D3VKW9O0.js} +4 -4
- package/dist/{vue-ui-donut-CqRDChWd.js → vue-ui-donut-8W7ZV_hU.js} +3 -3
- package/dist/{vue-ui-donut-DCWdRYf0.js → vue-ui-donut-C_CUqRdv.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DXxpjREd.js → vue-ui-donut-evolution-CHQHSkpq.js} +27 -26
- package/dist/{vue-ui-dumbbell-MghLKpiu.js → vue-ui-dumbbell-D3G5uL-P.js} +9 -9
- package/dist/{vue-ui-flow-DXzy_ciZ.js → vue-ui-flow-CjvO8Fsp.js} +25 -24
- package/dist/{vue-ui-funnel-BwDy1TQS.js → vue-ui-funnel-eHR9hTpj.js} +8 -8
- package/dist/{vue-ui-galaxy-yv4i3B6M.js → vue-ui-galaxy-DBarvxFP.js} +11 -11
- package/dist/{vue-ui-gauge-BL4r7lrw.js → vue-ui-gauge-Cz6PC_H5.js} +8 -8
- package/dist/{vue-ui-geo-BRAAm6-Y.js → vue-ui-geo-BmjzP6NK.js} +9 -9
- package/dist/{vue-ui-gizmo-D_jY1FrX.js → vue-ui-gizmo-BChwImvX.js} +4 -4
- package/dist/{vue-ui-heatmap-DVDTivK7.js → vue-ui-heatmap-h0_V5jv6.js} +22 -21
- package/dist/{vue-ui-hill-DAvWt1UH.js → vue-ui-hill-D_2DFdNy.js} +8 -8
- package/dist/{vue-ui-history-plot-DZWZLj6d.js → vue-ui-history-plot-Bis3f9Ub.js} +26 -25
- package/dist/{vue-ui-horizontal-bar-BWJ0Dj9K.js → vue-ui-horizontal-bar-2AOgQ694.js} +28 -27
- package/dist/{vue-ui-kpi-BNHQb-0T.js → vue-ui-kpi-k0yLSsqF.js} +4 -4
- package/dist/vue-ui-label-aHnVFvfK.js +1455 -0
- package/dist/{vue-ui-mini-loader-BVSIAFYi.js → vue-ui-mini-loader-DUsSEO5b.js} +3 -3
- package/dist/{vue-ui-molecule-2eqpaNzM.js → vue-ui-molecule--1J4__BY.js} +7 -7
- package/dist/{vue-ui-mood-radar-9UgxqJAM.js → vue-ui-mood-radar-BEruKK_i.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DT37jVnx.js → vue-ui-nested-donuts-MBeHoc-t.js} +27 -26
- package/dist/{vue-ui-onion-DFYQimLN.js → vue-ui-onion-j0eEGvru.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DMMp9SSg.js → vue-ui-parallel-coordinate-plot-BvuYSu3N.js} +11 -11
- package/dist/{vue-ui-quadrant-CLQkz37n.js → vue-ui-quadrant-DWtwr7JT.js} +59 -57
- package/dist/{vue-ui-quick-chart-BHURITQ2.js → vue-ui-quick-chart-vhICAvQe.js} +25 -24
- package/dist/{vue-ui-radar-BQDSBbBl.js → vue-ui-radar-e9eoRxOC.js} +10 -10
- package/dist/{vue-ui-rating-dBCk6ECe.js → vue-ui-rating-WsMfVsJN.js} +3 -3
- package/dist/{vue-ui-relation-circle-D7Jomt1J.js → vue-ui-relation-circle-NgJ8121q.js} +8 -8
- package/dist/{vue-ui-ridgeline-OnHk7xFR.js → vue-ui-ridgeline-BZ1Czz8V.js} +11 -11
- package/dist/{vue-ui-rings-BysAPudl.js → vue-ui-rings-grgJPuxE.js} +12 -12
- package/dist/{vue-ui-scatter-DyxIiCT5.js → vue-ui-scatter-DuqZxbZD.js} +13 -13
- package/dist/{vue-ui-skeleton-BQSKB3hE.js → vue-ui-skeleton-CnexlOV6.js} +4 -4
- package/dist/{vue-ui-smiley-D1pW2Fdy.js → vue-ui-smiley-Bvs5RJtM.js} +3 -3
- package/dist/{vue-ui-spark-trend-RxPrDIxb.js → vue-ui-spark-trend-C2knAS0F.js} +4 -4
- package/dist/{vue-ui-sparkbar-BocQ3skK.js → vue-ui-sparkbar-Daxkni2h.js} +4 -4
- package/dist/{vue-ui-sparkgauge-YrGOiB_b.js → vue-ui-sparkgauge-CCkcq4Wh.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BlyPOiWe.js → vue-ui-sparkhistogram-B-fzheQo.js} +5 -5
- package/dist/{vue-ui-sparkline-DSXRUonI.js → vue-ui-sparkline-DVYlqELY.js} +27 -24
- package/dist/{vue-ui-sparkstackbar-CKhn03L6.js → vue-ui-sparkstackbar-pip0BOeZ.js} +5 -5
- package/dist/{vue-ui-stackbar-Cf9sJP68.js → vue-ui-stackbar-CIUS0xkc.js} +28 -27
- package/dist/{vue-ui-stackline-Tcfr3gJO.js → vue-ui-stackline-Dy4tIQwk.js} +28 -27
- package/dist/{vue-ui-strip-plot-CrDJXSM_.js → vue-ui-strip-plot-Sshmlk9v.js} +9 -9
- package/dist/{vue-ui-table-iheXH88R.js → vue-ui-table-DSUvcqI9.js} +6 -6
- package/dist/{vue-ui-table-heatmap-CglQqfWH.js → vue-ui-table-heatmap-btnDozZ-.js} +6 -6
- package/dist/{vue-ui-table-sparkline-LEjMz8F4.js → vue-ui-table-sparkline-C12IgrZG.js} +5 -5
- package/dist/{vue-ui-thermometer-D8TwvkuL.js → vue-ui-thermometer-3ZSPCE1q.js} +8 -8
- package/dist/{vue-ui-timer-CmWhKatt.js → vue-ui-timer-Birf1RVz.js} +6 -6
- package/dist/{vue-ui-tiremarks-DQS-i-Sx.js → vue-ui-tiremarks-BuzKLW5l.js} +8 -8
- package/dist/{vue-ui-treemap-CjxYVEzN.js → vue-ui-treemap-DMwq5MYv.js} +11 -11
- package/dist/{vue-ui-waffle-BxMdiOcp.js → vue-ui-waffle-wjn4e1mz.js} +12 -12
- package/dist/{vue-ui-wheel-CLyRoRSt.js → vue-ui-wheel-BS6f8xC-.js} +8 -8
- package/dist/{vue-ui-word-cloud-CqP1ohPS.js → vue-ui-word-cloud-BH1JB5hg.js} +9 -9
- package/dist/{vue-ui-world-TUOWS-qf.js → vue-ui-world-DtNML6Oz.js} +9 -9
- package/dist/{vue-ui-xy-zgQAxUgJ.js → vue-ui-xy-B9S7cAhC.js} +249 -240
- package/dist/{vue-ui-xy-DwiTsq1m.js → vue-ui-xy-DNvRGCN_.js} +3 -3
- package/dist/{vue-ui-xy-canvas-D0ox__3z.js → vue-ui-xy-canvas-Hk0x8dd_.js} +28 -27
- package/dist/vue_ui_label-B0QoxQrJ.js +115 -0
- package/package.json +2 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, A as n, B as r, Ct as i, D as a, Dt as o, G as s, H as c, Ht as l, I as u, It as d, Jt as ee, L as te, M as f, N as ne, Nt as re, P as ie, S as ae, St as oe, U as se, Ut as ce, V as le, Vt as ue, W as de, X as p, Xt as fe, Yt as pe, _ as m, b as h, c as me, d as he, ft as ge, i as g, k as _e, l as ve, n as ye, nt as be, o as xe, q as Se, qt as Ce, r as we, st as _, v as Te, w as Ee, wt as v, yt as De, z as Oe, zt as ke } from "./lib-
|
|
2
|
+
import { $ as t, A as n, B as r, Ct as i, D as a, Dt as o, G as s, H as c, Ht as l, I as u, It as d, Jt as ee, L as te, M as f, N as ne, Nt as re, P as ie, S as ae, St as oe, U as se, Ut as ce, V as le, Vt as ue, W as de, X as p, Xt as fe, Yt as pe, _ as m, b as h, c as me, d as he, ft as ge, i as g, k as _e, l as ve, n as ye, nt as be, o as xe, q as Se, qt as Ce, r as we, st as _, v as Te, w as Ee, wt as v, yt as De, z as Oe, zt as ke } from "./lib-DfMn_3jf.js";
|
|
3
3
|
import { n as Ae, t as je } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as Me, r as Ne, t as Pe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as Fe } from "./useConfig-
|
|
6
|
-
import { t as Ie } from "./usePrinter-
|
|
5
|
+
import { t as Fe } from "./useConfig-BtJSJ6AK.js";
|
|
6
|
+
import { t as Ie } from "./usePrinter-Daqyj6c7.js";
|
|
7
7
|
import { n as Le, t as Re } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as ze } from "./useNestedProp-
|
|
8
|
+
import { t as ze } from "./useNestedProp-CLEe1P5W.js";
|
|
9
9
|
import { t as Be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Ve } from "./useChartExport-
|
|
10
|
+
import { t as Ve } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as He } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as Ue } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as We } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Ge } from "./img-
|
|
15
|
-
import { n as Ke } from "./Title-
|
|
14
|
+
import { t as Ge } from "./img-DRq3Equ5.js";
|
|
15
|
+
import { n as Ke } from "./Title-C5ytqOnj.js";
|
|
16
16
|
import { t as qe } from "./vue_ui_xy-BA3-_LCx.js";
|
|
17
|
-
import { t as Je } from "./Shape-
|
|
17
|
+
import { t as Je } from "./Shape-BV_BCG2F.js";
|
|
18
18
|
import { t as Ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
19
19
|
import { t as Xe } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
-
import { t as Ze } from "./SlicerPreview-
|
|
21
|
-
import { t as Qe } from "./vue-ui-accordion-
|
|
22
|
-
import { t as $e } from "./BaseLegendToggle-
|
|
20
|
+
import { t as Ze } from "./SlicerPreview-CsFT236o.js";
|
|
21
|
+
import { t as Qe } from "./vue-ui-accordion-BhOSscZB.js";
|
|
22
|
+
import { t as $e } from "./BaseLegendToggle-B_wibe7d.js";
|
|
23
23
|
import { t as et } from "./A11yDataTable-DdRsVULz.js";
|
|
24
24
|
import { Fragment as y, Teleport as tt, computed as b, createBlock as nt, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as rt, createTextVNode as it, createVNode as at, defineAsyncComponent as ot, getCurrentInstance as st, guardReactiveProps as ct, mergeProps as lt, nextTick as ut, normalizeClass as w, normalizeProps as dt, normalizeStyle as T, onBeforeUnmount as ft, onMounted as pt, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as mt, shallowRef as ht, toDisplayString as A, toRefs as gt, unref as j, useSlots as _t, vModelCheckbox as vt, watch as yt, watchEffect as bt, withCtx as M, withDirectives as xt } from "vue";
|
|
25
25
|
//#region src/utils/xy.js
|
|
@@ -568,7 +568,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
568
568
|
"copyAlt"
|
|
569
569
|
],
|
|
570
570
|
setup(e, { expose: Ye, emit: jt }) {
|
|
571
|
-
let N = e, ui = ot(() => import("./DataTable-
|
|
571
|
+
let N = e, ui = ot(() => import("./DataTable-1Lsn9w61.js")), di = ot(() => import("./Tooltip-CTgk02J6.js")), fi = ot(() => import("./UserOptions-DJt-e5q0.js").then((e) => e.n)), pi = ot(() => import("./BaseIcon-U0y1Y7dC.js").then((e) => e.n)), mi = ot(() => import("./vue-ui-table-sparkline-C12IgrZG.js").then((e) => e.n)), hi = ot(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), gi = ot(() => import("./PenAndPaper-ktbpEc-t.js").then((e) => e.t)), _i = ot(() => import("./BaseDraggableDialog-9RMU4zIz.js").then((e) => e.n)), vi = jt, yi = _t(), bi = st(), { vue_ui_xy: xi } = Fe(), { isThemeValid: Si, warnInvalidTheme: Ci } = Be(), wi = D(null), Ti = D(null), Ei = D(null), Di = D(null), Oi = D(null), ki = D(null), Ai = D(null), ji = D(null), Mi = D(null), Ni = D(null), Pi = D(null), Fi = D(null), Ii = D(null), Li = D(null), Ri = D(0), P = D(null), zi = D(!0), Bi = D(600), F = D(1e3), Vi = D("0 0 1000 600"), Hi = D({
|
|
572
572
|
x: 0,
|
|
573
573
|
y: 0
|
|
574
574
|
}), Ui = D({
|
|
@@ -1095,13 +1095,15 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
1095
1095
|
let X = b(() => {
|
|
1096
1096
|
_a.value;
|
|
1097
1097
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1098
|
-
if (H.value.chart.grid.labels.show)
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1098
|
+
if (H.value.chart.grid.labels.show) {
|
|
1099
|
+
if (U.value.useIndividualScale && !U.value.isStacked) Y.value ? t = (Va.value.length - Ji.value.length) * Mo() : e = (Va.value.length - Ji.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
1100
|
+
else if (U.value.useIndividualScale && U.value.isStacked) {
|
|
1101
|
+
let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
|
|
1102
|
+
Y.value ? t = n : e = n;
|
|
1103
|
+
} else {
|
|
1104
|
+
let i = wo();
|
|
1105
|
+
e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
|
|
1106
|
+
}
|
|
1105
1107
|
}
|
|
1106
1108
|
let i = H.value.chart.labels.fontSize * 1.1, a = jo.value ? 24 : 6;
|
|
1107
1109
|
Ni.value && Oo.value < 0 && (e += Math.abs(Oo.value));
|
|
@@ -1532,15 +1534,15 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
1532
1534
|
return;
|
|
1533
1535
|
}
|
|
1534
1536
|
if (q.value) {
|
|
1535
|
-
To(t.x),
|
|
1537
|
+
To(t.x), tu(!0, z.value ?? 0);
|
|
1536
1538
|
return;
|
|
1537
1539
|
}
|
|
1538
1540
|
let o = xc(t.x);
|
|
1539
|
-
o == null ? Xs() : Bs.value !== o && (Bs.value = o,
|
|
1541
|
+
o == null ? Xs() : Bs.value !== o && (Bs.value = o, tu(!0, o));
|
|
1540
1542
|
}));
|
|
1541
1543
|
}
|
|
1542
1544
|
function Xs() {
|
|
1543
|
-
Js &&= (cancelAnimationFrame(Js), 0), Bs.value = null, L.value = null, ca.value = null,
|
|
1545
|
+
Js &&= (cancelAnimationFrame(Js), 0), Bs.value = null, L.value = null, ca.value = null, tu(!1, null), Vs.value = [], Hs.value = null;
|
|
1544
1546
|
}
|
|
1545
1547
|
function Zs(e) {
|
|
1546
1548
|
let t = qs(e);
|
|
@@ -1677,7 +1679,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
1677
1679
|
fontFamily: H.value.chart.fontFamily,
|
|
1678
1680
|
prefix: H.value.chart.labels.prefix,
|
|
1679
1681
|
suffix: H.value.chart.labels.suffix,
|
|
1680
|
-
colNames: Z.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text :
|
|
1682
|
+
colNames: Z.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Ll.value(t + W.value.start, H.value.table.timeFormat)),
|
|
1681
1683
|
thead: {
|
|
1682
1684
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
1683
1685
|
color: H.value.table.th.color,
|
|
@@ -2355,7 +2357,18 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2355
2357
|
groupId: oe.groupId
|
|
2356
2358
|
};
|
|
2357
2359
|
});
|
|
2358
|
-
}), Al = b(() =>
|
|
2360
|
+
}), Al = b(() => [
|
|
2361
|
+
...$.value,
|
|
2362
|
+
...Ol.value.map((e) => ({
|
|
2363
|
+
...e,
|
|
2364
|
+
plots: e.plots.map((e) => ({
|
|
2365
|
+
...e,
|
|
2366
|
+
x: h(Ls(e)),
|
|
2367
|
+
y: h(e.y)
|
|
2368
|
+
}))
|
|
2369
|
+
})),
|
|
2370
|
+
...kl.value
|
|
2371
|
+
]), jl = b(() => {
|
|
2359
2372
|
let e = Object.entries(Pc.value).reduce((e, [t, n]) => (e[t] = {
|
|
2360
2373
|
...n,
|
|
2361
2374
|
scaleLabel: t
|
|
@@ -2370,7 +2383,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2370
2383
|
...t.scaleGroup
|
|
2371
2384
|
});
|
|
2372
2385
|
}), e;
|
|
2373
|
-
}),
|
|
2386
|
+
}), Ml = b(() => {
|
|
2374
2387
|
let e = $.value.map((e) => ({
|
|
2375
2388
|
name: e.name,
|
|
2376
2389
|
color: e.color,
|
|
@@ -2405,7 +2418,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2405
2418
|
id: e.id,
|
|
2406
2419
|
yOffset: e.yOffset || 0,
|
|
2407
2420
|
individualHeight: e.individualHeight || X.value.height
|
|
2408
|
-
})), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(
|
|
2421
|
+
})), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(jl.value) : [
|
|
2409
2422
|
...e,
|
|
2410
2423
|
...t,
|
|
2411
2424
|
...n
|
|
@@ -2437,7 +2450,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2437
2450
|
}))
|
|
2438
2451
|
};
|
|
2439
2452
|
});
|
|
2440
|
-
}),
|
|
2453
|
+
}), Nl = b(() => {
|
|
2441
2454
|
let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2442
2455
|
if (!t.length) return [];
|
|
2443
2456
|
let r = [];
|
|
@@ -2465,7 +2478,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2465
2478
|
});
|
|
2466
2479
|
});
|
|
2467
2480
|
}), r;
|
|
2468
|
-
}),
|
|
2481
|
+
}), Pl = b(() => {
|
|
2469
2482
|
let e = Vs.value[0]?.index ?? null, t = q.value ? e : z.value;
|
|
2470
2483
|
return {
|
|
2471
2484
|
timeLabel: q.value ? {
|
|
@@ -2482,34 +2495,34 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2482
2495
|
plots: kl.value,
|
|
2483
2496
|
config: H.value
|
|
2484
2497
|
};
|
|
2485
|
-
}),
|
|
2498
|
+
}), Fl = D({
|
|
2486
2499
|
months: [],
|
|
2487
2500
|
shortMonths: [],
|
|
2488
2501
|
days: [],
|
|
2489
2502
|
shortDays: []
|
|
2490
|
-
}),
|
|
2503
|
+
}), Il = 0;
|
|
2491
2504
|
bt(() => {
|
|
2492
|
-
let e = ++
|
|
2505
|
+
let e = ++Il, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2493
2506
|
(async () => {
|
|
2494
2507
|
let n = await Ne(t.locale).catch(() => Ne("en"));
|
|
2495
|
-
e ===
|
|
2508
|
+
e === Il && (Fl.value = n.data);
|
|
2496
2509
|
})();
|
|
2497
2510
|
});
|
|
2498
|
-
let
|
|
2511
|
+
let Ll = b(() => {
|
|
2499
2512
|
let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Me({
|
|
2500
2513
|
useUTC: e.useUTC,
|
|
2501
|
-
locale:
|
|
2514
|
+
locale: Fl.value,
|
|
2502
2515
|
januaryAsYear: e.januaryAsYear
|
|
2503
2516
|
});
|
|
2504
2517
|
return (e, n) => {
|
|
2505
2518
|
let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2506
2519
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2507
2520
|
};
|
|
2508
|
-
}),
|
|
2509
|
-
text:
|
|
2521
|
+
}), Rl = b(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2522
|
+
text: Ll.value(t, H.value.chart.zoom.timeFormat),
|
|
2510
2523
|
absoluteIndex: t
|
|
2511
|
-
}))),
|
|
2512
|
-
function
|
|
2524
|
+
}))), zl = /* @__PURE__ */ new Map();
|
|
2525
|
+
function Bl(e) {
|
|
2513
2526
|
return {
|
|
2514
2527
|
absoluteIndex: z.value + W.value.start,
|
|
2515
2528
|
seriesIndex: z.value,
|
|
@@ -2522,7 +2535,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2522
2535
|
dateLabel: e
|
|
2523
2536
|
};
|
|
2524
2537
|
}
|
|
2525
|
-
function
|
|
2538
|
+
function Vl(e) {
|
|
2526
2539
|
return [
|
|
2527
2540
|
Ui.value[e.type],
|
|
2528
2541
|
e.shape || "",
|
|
@@ -2533,9 +2546,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2533
2546
|
e.slotAbsoluteIndex
|
|
2534
2547
|
].join("|");
|
|
2535
2548
|
}
|
|
2536
|
-
function
|
|
2537
|
-
let t =
|
|
2538
|
-
if (
|
|
2549
|
+
function Hl(e) {
|
|
2550
|
+
let t = Vl(e);
|
|
2551
|
+
if (zl.has(t)) return zl.get(t);
|
|
2539
2552
|
let n = H.value.chart.tooltip.backgroundColor, r = "", i = "";
|
|
2540
2553
|
switch (Ui.value[e.type]) {
|
|
2541
2554
|
case "bar":
|
|
@@ -2680,9 +2693,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2680
2693
|
break;
|
|
2681
2694
|
}
|
|
2682
2695
|
}
|
|
2683
|
-
return
|
|
2696
|
+
return zl.set(t, r), r;
|
|
2684
2697
|
}
|
|
2685
|
-
let
|
|
2698
|
+
let Ul = b(() => {
|
|
2686
2699
|
let e = "", t = $c.value.map((e) => e.value).filter((e) => i(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: g(H.value.chart.grid.labels.xAxis.formatter, Vs.value[0]?.point.raw?.x ?? Vs.value[0]?.point.x, p({
|
|
2687
2700
|
v: Vs.value[0]?.point.raw?.x ?? Vs.value[0]?.point.x,
|
|
2688
2701
|
r: H.value.chart.tooltip.roundingValue
|
|
@@ -2691,18 +2704,18 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2691
2704
|
serriesIndex: null
|
|
2692
2705
|
}) } : Z.value[z.value], r = H.value.chart.tooltip.customFormat;
|
|
2693
2706
|
if (oe(r)) try {
|
|
2694
|
-
let e = r(
|
|
2707
|
+
let e = r(Bl(n));
|
|
2695
2708
|
if (typeof e == "string") return e;
|
|
2696
2709
|
} catch (e) {
|
|
2697
2710
|
console.warn("Vue Data UI - VueUiXy: custom tooltip formatter failed.", e);
|
|
2698
2711
|
}
|
|
2699
2712
|
if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
|
|
2700
|
-
let t =
|
|
2713
|
+
let t = Ll.value(z.value + W.value.start, H.value.chart.tooltip.timeFormat);
|
|
2701
2714
|
q.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2702
2715
|
}
|
|
2703
2716
|
return $c.value.forEach((r) => {
|
|
2704
2717
|
if (i(r.value)) {
|
|
2705
|
-
let i =
|
|
2718
|
+
let i = Hl(r), a = H.value.chart.tooltip.showValue ? g(r.type === "line" ? H.value.line.labels.formatter : r.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, r.value, p({
|
|
2706
2719
|
p: r.prefix,
|
|
2707
2720
|
v: r.value,
|
|
2708
2721
|
s: r.suffix,
|
|
@@ -2732,7 +2745,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2732
2745
|
H.value.chart.comments.showInTooltip && c && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${c}</div>`);
|
|
2733
2746
|
}
|
|
2734
2747
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
|
|
2735
|
-
}),
|
|
2748
|
+
}), Wl = b(() => {
|
|
2736
2749
|
if (!q.value) return [];
|
|
2737
2750
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2738
2751
|
return J.value.forEach((n) => {
|
|
@@ -2744,7 +2757,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2744
2757
|
});
|
|
2745
2758
|
}), t.sort((e, t) => Ds.value ? t - e : e - t);
|
|
2746
2759
|
});
|
|
2747
|
-
function
|
|
2760
|
+
function Gl(e) {
|
|
2748
2761
|
let t = Number(e);
|
|
2749
2762
|
return Number.isFinite(t) ? g(H.value.chart.grid.labels.xAxis.formatter, t, p({
|
|
2750
2763
|
v: t,
|
|
@@ -2754,22 +2767,22 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2754
2767
|
seriesIndex: null
|
|
2755
2768
|
}) : "-";
|
|
2756
2769
|
}
|
|
2757
|
-
function
|
|
2758
|
-
return q.value ?
|
|
2770
|
+
function Kl(e) {
|
|
2771
|
+
return q.value ? Gl(e) : H.value.table.useDefaultTimeFormat ? Z.value[e]?.text ?? "-" : Ll.value(e + W.value.start, H.value.table.timeFormat);
|
|
2759
2772
|
}
|
|
2760
|
-
function
|
|
2773
|
+
function ql(e, t) {
|
|
2761
2774
|
if (q.value) {
|
|
2762
2775
|
let n = Number(t);
|
|
2763
2776
|
return Number.isFinite(n) ? e.series.find((e) => Number(e?.x) === n)?.y ?? null : null;
|
|
2764
2777
|
}
|
|
2765
2778
|
return e.absoluteValues[t];
|
|
2766
2779
|
}
|
|
2767
|
-
function
|
|
2768
|
-
let n =
|
|
2780
|
+
function Jl(e, t) {
|
|
2781
|
+
let n = ql(e, t);
|
|
2769
2782
|
return St(n) ? Number(n.toFixed(H.value.table.rounding)) : "";
|
|
2770
2783
|
}
|
|
2771
|
-
function
|
|
2772
|
-
let n =
|
|
2784
|
+
function Yl(e, t) {
|
|
2785
|
+
let n = ql(e, t);
|
|
2773
2786
|
return St(n) ? g(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n, p({
|
|
2774
2787
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
2775
2788
|
v: n,
|
|
@@ -2777,33 +2790,33 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2777
2790
|
r: H.value.table.rounding
|
|
2778
2791
|
})) : "";
|
|
2779
2792
|
}
|
|
2780
|
-
function
|
|
2781
|
-
return J.value.map((t) =>
|
|
2793
|
+
function Xl(e) {
|
|
2794
|
+
return J.value.map((t) => ql(t, e) ?? 0).reduce((e, t) => e + t, 0);
|
|
2782
2795
|
}
|
|
2783
|
-
let
|
|
2784
|
-
if (q.value) return
|
|
2785
|
-
let t =
|
|
2796
|
+
let Zl = b(() => {
|
|
2797
|
+
if (q.value) return Wl.value.map((e) => {
|
|
2798
|
+
let t = Xl(e);
|
|
2786
2799
|
return {
|
|
2787
|
-
period:
|
|
2788
|
-
csvValues: J.value.map((t) =>
|
|
2789
|
-
formattedValues: J.value.map((t) =>
|
|
2800
|
+
period: Kl(e),
|
|
2801
|
+
csvValues: J.value.map((t) => Jl(t, e)),
|
|
2802
|
+
formattedValues: J.value.map((t) => Yl(t, e)),
|
|
2790
2803
|
sum: t,
|
|
2791
2804
|
formattedSum: t.toFixed(H.value.table.rounding)
|
|
2792
2805
|
};
|
|
2793
2806
|
});
|
|
2794
2807
|
let e = [];
|
|
2795
2808
|
for (let t = 0; t < Q.value; t += 1) {
|
|
2796
|
-
let n =
|
|
2809
|
+
let n = Xl(t);
|
|
2797
2810
|
e.push({
|
|
2798
|
-
period:
|
|
2799
|
-
csvValues: J.value.map((e) =>
|
|
2800
|
-
formattedValues: J.value.map((e) =>
|
|
2811
|
+
period: Kl(t),
|
|
2812
|
+
csvValues: J.value.map((e) => Jl(e, t)),
|
|
2813
|
+
formattedValues: J.value.map((e) => Yl(e, t)),
|
|
2801
2814
|
sum: n,
|
|
2802
2815
|
formattedSum: n.toFixed(H.value.table.rounding)
|
|
2803
2816
|
});
|
|
2804
2817
|
}
|
|
2805
2818
|
return e;
|
|
2806
|
-
}),
|
|
2819
|
+
}), Ql = b(() => xo.value.length === 0 ? {
|
|
2807
2820
|
head: [],
|
|
2808
2821
|
body: [],
|
|
2809
2822
|
config: {},
|
|
@@ -2814,11 +2827,11 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2814
2827
|
color: e.color,
|
|
2815
2828
|
type: e.type
|
|
2816
2829
|
})),
|
|
2817
|
-
body:
|
|
2818
|
-
}),
|
|
2830
|
+
body: Zl.value.map((e) => [e.period].concat(e.csvValues))
|
|
2831
|
+
}), $l = b(() => {
|
|
2819
2832
|
let e = H.value.table.showSum, t = [q.value ? H.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(J.value.map((e) => e.name));
|
|
2820
2833
|
e && (t = t.concat("__SUM__"));
|
|
2821
|
-
let n =
|
|
2834
|
+
let n = Zl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
|
|
2822
2835
|
th: {
|
|
2823
2836
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
2824
2837
|
color: H.value.table.th.color,
|
|
@@ -2838,18 +2851,18 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2838
2851
|
colNames: i
|
|
2839
2852
|
};
|
|
2840
2853
|
});
|
|
2841
|
-
function
|
|
2854
|
+
function eu(e = null) {
|
|
2842
2855
|
let n = [
|
|
2843
2856
|
[H.value.chart.title.text],
|
|
2844
2857
|
[H.value.chart.title.subtitle.text],
|
|
2845
2858
|
[""]
|
|
2846
|
-
], r = [q.value ? H.value.chart.grid.labels.axis.xLabel || "X" : H.value.table.columnNames.period, ...
|
|
2859
|
+
], r = [q.value ? H.value.chart.grid.labels.axis.xLabel || "X" : H.value.table.columnNames.period, ...Ql.value.head.map((e) => e.label)], i = Ql.value.body, o = n.concat([r]).concat(i), s = a(o);
|
|
2847
2860
|
e ? e(s) : t({
|
|
2848
2861
|
csvContent: s,
|
|
2849
2862
|
title: H.value.chart.title.text || "vue-ui-xy"
|
|
2850
2863
|
});
|
|
2851
2864
|
}
|
|
2852
|
-
function
|
|
2865
|
+
function tu(e, t = null) {
|
|
2853
2866
|
if (Co.value) return;
|
|
2854
2867
|
Ki.value = e;
|
|
2855
2868
|
let n = J.value.map((e) => ({
|
|
@@ -2871,19 +2884,19 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2871
2884
|
seriesIndex: t + W.value.start
|
|
2872
2885
|
}));
|
|
2873
2886
|
}
|
|
2874
|
-
function
|
|
2887
|
+
function nu() {
|
|
2875
2888
|
U.value.showTable = !U.value.showTable;
|
|
2876
2889
|
}
|
|
2877
|
-
function
|
|
2890
|
+
function ru() {
|
|
2878
2891
|
U.value.dataLabels.show = !U.value.dataLabels.show;
|
|
2879
2892
|
}
|
|
2880
|
-
function
|
|
2893
|
+
function iu() {
|
|
2881
2894
|
U.value.showTooltip = !U.value.showTooltip;
|
|
2882
2895
|
}
|
|
2883
|
-
function
|
|
2896
|
+
function au(e) {
|
|
2884
2897
|
Gi.value = e, Xi.value += 1;
|
|
2885
2898
|
}
|
|
2886
|
-
function
|
|
2899
|
+
function ou() {
|
|
2887
2900
|
if (!H.value.responsiveProportionalSizing) {
|
|
2888
2901
|
V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ka.value.plot = H.value.plot.radius, ka.value.line = H.value.line.radius, ka.value.selectedLine = H.value.line.dot.selectedRadius;
|
|
2889
2902
|
return;
|
|
@@ -2932,7 +2945,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2932
2945
|
fallback: 0
|
|
2933
2946
|
});
|
|
2934
2947
|
}
|
|
2935
|
-
function
|
|
2948
|
+
function su() {
|
|
2936
2949
|
if (re(N.dataset) ? (be({
|
|
2937
2950
|
componentName: "VueUiXy",
|
|
2938
2951
|
type: "dataset",
|
|
@@ -2961,26 +2974,26 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
2961
2974
|
let l = 0;
|
|
2962
2975
|
Oi.value && (l = Oi.value.getBoundingClientRect().height);
|
|
2963
2976
|
let u = 0;
|
|
2964
|
-
ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, F.value = n, Vi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${Bi.value < 0 ? 10 : Bi.value}`,
|
|
2977
|
+
ki.value && (u = ki.value.getBoundingClientRect().height), Bi.value = t - i - c - o - l - u - 12, F.value = n, Vi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${Bi.value < 0 ? 10 : Bi.value}`, ou();
|
|
2965
2978
|
let d = new ResizeObserver((e) => {
|
|
2966
2979
|
for (let t of e) i = H.value.chart.title.show && Ti.value ? Ti.value.getBoundingClientRect().height : 0, o = Ei.value && Ei.value.$el ? Ei.value.$el.getBoundingClientRect().height : 0, c = Di.value ? Di.value.getBoundingClientRect().height : 0, l = Oi.value ? Oi.value.getBoundingClientRect().height : 0, u = ki.value ? ki.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2967
|
-
Bi.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${Bi.value < 0 ? 10 : Bi.value}`,
|
|
2980
|
+
Bi.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Vi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${Bi.value < 0 ? 10 : Bi.value}`, ou(), wa();
|
|
2968
2981
|
});
|
|
2969
2982
|
});
|
|
2970
2983
|
Ii.value = d, Li.value = e, d.observe(e);
|
|
2971
2984
|
} else Bi.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ka.value.plot = H.value.plot.radius, ka.value.line = H.value.line.radius, ka.value.selectedLine = H.value.line.dot.selectedRadius, Vi.value = `0 0 ${F.value} ${Bi.value}`;
|
|
2972
2985
|
wa();
|
|
2973
2986
|
}
|
|
2974
|
-
function
|
|
2987
|
+
function cu(e) {
|
|
2975
2988
|
Hi.value = {
|
|
2976
2989
|
x: e.clientX,
|
|
2977
2990
|
y: e.clientY
|
|
2978
2991
|
};
|
|
2979
2992
|
}
|
|
2980
2993
|
pt(() => {
|
|
2981
|
-
|
|
2994
|
+
su(), ss(), document.addEventListener("mousemove", cu, { passive: !0 }), document.addEventListener("scroll", Lo, { passive: !0 });
|
|
2982
2995
|
}), ft(() => {
|
|
2983
|
-
document.removeEventListener("scroll", Lo, { passive: !0 }), document.removeEventListener("mousemove",
|
|
2996
|
+
document.removeEventListener("scroll", Lo, { passive: !0 }), document.removeEventListener("mousemove", cu, { passive: !0 }), Ii.value && (Li.value && Ii.value.unobserve(Li.value), Ii.value.disconnect(), Ii.value = null, Li.value = null), gu(), ms();
|
|
2984
2997
|
}), We({
|
|
2985
2998
|
timeLabelsEls: Ni,
|
|
2986
2999
|
timeLabels: Z,
|
|
@@ -3006,55 +3019,55 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3006
3019
|
width: F,
|
|
3007
3020
|
rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
3008
3021
|
});
|
|
3009
|
-
let
|
|
3022
|
+
let lu = D(!1), uu = D(null), du = D(200), fu = b(() => z.value ?? L.value ?? 0), pu = b(() => {
|
|
3010
3023
|
if (!q.value) return null;
|
|
3011
3024
|
if (v(ca.value)) return Number(ca.value);
|
|
3012
3025
|
let e = Vs.value[0];
|
|
3013
3026
|
return v(e?.point?.x) ? Number(e.point.x) : null;
|
|
3014
3027
|
});
|
|
3015
|
-
function
|
|
3016
|
-
let e = Math.ceil(
|
|
3028
|
+
function mu() {
|
|
3029
|
+
let e = Math.ceil(du.value || 200);
|
|
3017
3030
|
return Math.min(Math.max(e, 1), 200);
|
|
3018
3031
|
}
|
|
3019
|
-
function
|
|
3020
|
-
let e =
|
|
3032
|
+
function hu() {
|
|
3033
|
+
let e = mu(), t = (q.value && v(pu.value) ? pl({ x: pu.value }) : _c(fu.value)) - e / 2 - (200 - e) / 2, n = X.value?.left - (200 - e) / 2, r = X.value?.right - (200 + e) / 2;
|
|
3021
3034
|
return h(Math.max(n, Math.min(t, r)));
|
|
3022
3035
|
}
|
|
3023
|
-
function
|
|
3036
|
+
function gu() {
|
|
3024
3037
|
pa.value !== null && (cancelAnimationFrame(pa.value), pa.value = null), fa.value && B.value && fa.value.unobserve(B.value), fa.value &&= (fa.value.disconnect(), null), ma.value &&= (ma.value(), null), B.value = null;
|
|
3025
3038
|
}
|
|
3026
|
-
function
|
|
3039
|
+
function _u(e) {
|
|
3027
3040
|
pa.value !== null && cancelAnimationFrame(pa.value), pa.value = requestAnimationFrame(() => {
|
|
3028
|
-
|
|
3041
|
+
du.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200), pa.value = null;
|
|
3029
3042
|
});
|
|
3030
3043
|
}
|
|
3031
|
-
function
|
|
3044
|
+
function vu(e) {
|
|
3032
3045
|
!fa.value || !e || (B.value && B.value !== e && (fa.value.unobserve(B.value), B.value = null), e !== B.value && (ut(() => {
|
|
3033
|
-
e.offsetParent !== null &&
|
|
3046
|
+
e.offsetParent !== null && _u(e.offsetWidth || e.getBoundingClientRect().width || 200);
|
|
3034
3047
|
}), fa.value.observe(e), B.value = e));
|
|
3035
3048
|
}
|
|
3036
3049
|
pt(() => {
|
|
3037
3050
|
fa.value = new ResizeObserver((e) => {
|
|
3038
3051
|
let t = e.find((e) => e.target === B.value) || e[0];
|
|
3039
|
-
t &&
|
|
3052
|
+
t && _u(t.contentRect.width || 200);
|
|
3040
3053
|
}), ma.value = bt((e) => {
|
|
3041
|
-
let t =
|
|
3054
|
+
let t = uu.value;
|
|
3042
3055
|
if (!t) {
|
|
3043
3056
|
fa.value && B.value && (fa.value.unobserve(B.value), B.value = null);
|
|
3044
3057
|
return;
|
|
3045
3058
|
}
|
|
3046
|
-
|
|
3047
|
-
fa.value && B.value && B.value !==
|
|
3059
|
+
vu(t), e(() => {
|
|
3060
|
+
fa.value && B.value && B.value !== uu.value && (fa.value.unobserve(B.value), B.value = null);
|
|
3048
3061
|
});
|
|
3049
3062
|
});
|
|
3050
3063
|
});
|
|
3051
|
-
let
|
|
3064
|
+
let yu = b(() => {
|
|
3052
3065
|
if (q.value) {
|
|
3053
|
-
if (!Number.isFinite(Number(
|
|
3066
|
+
if (!Number.isFinite(Number(pu.value))) return "";
|
|
3054
3067
|
} else if ([null, void 0].includes(z.value) && [null, void 0].includes(L.value)) return "";
|
|
3055
3068
|
let e = (z.value == null ? 0 : z.value) || (L.value == null ? 0 : L.value), t = H.value.chart.timeTag.customFormat;
|
|
3056
|
-
if (
|
|
3057
|
-
let e =
|
|
3069
|
+
if (lu.value = !1, q.value) {
|
|
3070
|
+
let e = pu.value;
|
|
3058
3071
|
if (oe(t)) try {
|
|
3059
3072
|
let n = t({
|
|
3060
3073
|
absoluteIndex: e,
|
|
@@ -3065,9 +3078,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3065
3078
|
plots: kl.value,
|
|
3066
3079
|
config: H.value
|
|
3067
3080
|
});
|
|
3068
|
-
if (typeof n == "string") return
|
|
3081
|
+
if (typeof n == "string") return lu.value = !0, n;
|
|
3069
3082
|
} catch {
|
|
3070
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
3083
|
+
console.warn("Custom format cannot be applied on timeTag."), lu.value = !1;
|
|
3071
3084
|
}
|
|
3072
3085
|
return p({
|
|
3073
3086
|
v: e,
|
|
@@ -3084,13 +3097,13 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3084
3097
|
plots: kl.value,
|
|
3085
3098
|
config: H.value
|
|
3086
3099
|
});
|
|
3087
|
-
if (typeof n == "string") return
|
|
3100
|
+
if (typeof n == "string") return lu.value = !0, n;
|
|
3088
3101
|
} catch {
|
|
3089
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
3102
|
+
console.warn("Custom format cannot be applied on timeTag."), lu.value = !1;
|
|
3090
3103
|
}
|
|
3091
|
-
if (!
|
|
3104
|
+
if (!lu.value) return [null, void 0].includes(Z.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Ll.value(e + W.value.start, H.value.chart.timeTag.timeFormat) : Z.value[e].text;
|
|
3092
3105
|
});
|
|
3093
|
-
function
|
|
3106
|
+
function bu({ serie: e, plot: t, type: n }) {
|
|
3094
3107
|
if (!St(t.value)) return "";
|
|
3095
3108
|
let r = p({
|
|
3096
3109
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
@@ -3112,44 +3125,44 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3112
3125
|
y: 0
|
|
3113
3126
|
});
|
|
3114
3127
|
}
|
|
3115
|
-
function
|
|
3128
|
+
function xu({ plot: e }) {
|
|
3116
3129
|
let t = H.value.bar.labels.offsetY, n = Math.abs(Ns(e)), r = e.value < 0, i = {
|
|
3117
3130
|
x: Ls(e) + H.value.bar.labels.offsetX,
|
|
3118
3131
|
y: h(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3119
3132
|
};
|
|
3120
3133
|
return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
|
|
3121
3134
|
}
|
|
3122
|
-
function
|
|
3135
|
+
function Su({ plot: e, type: t }) {
|
|
3123
3136
|
let n = H.value[t].labels.offsetY, r = {
|
|
3124
3137
|
x: e.x + H.value[t].labels.offsetX,
|
|
3125
3138
|
y: h(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3126
3139
|
};
|
|
3127
3140
|
return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
|
|
3128
3141
|
}
|
|
3129
|
-
function
|
|
3142
|
+
function Cu({ plot: e, type: t }) {
|
|
3130
3143
|
if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
|
|
3131
3144
|
let n = e.value >= 0;
|
|
3132
3145
|
return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3133
3146
|
}
|
|
3134
|
-
let
|
|
3147
|
+
let wu = b(() => q.value ? v(ca.value) ? pl({ x: Number(ca.value) }) : v(Hs.value) ? Hs.value : null : _c(z.value ?? L.value ?? 0)), Tu = b(() => H.value.chart.highlighter.crosshairs.show && $o.value), Eu = b(() => [
|
|
3135
3148
|
...$.value,
|
|
3136
3149
|
...kl.value,
|
|
3137
3150
|
...Ol.value
|
|
3138
3151
|
].flatMap((e) => (e.plots || []).map((e, t) => ({
|
|
3139
3152
|
plot: e,
|
|
3140
3153
|
index: t
|
|
3141
|
-
})).filter(({ plot: t, index: n }) =>
|
|
3154
|
+
})).filter(({ plot: t, index: n }) => ku(e, t, n)).filter(({ plot: e }) => St(e.value)).map(({ plot: t, index: n }) => ({
|
|
3142
3155
|
...t,
|
|
3143
3156
|
index: t.index ?? n,
|
|
3144
3157
|
serie: e,
|
|
3145
3158
|
x: h(e.type === "bar" ? Ls(t) : t.x),
|
|
3146
3159
|
y: h(t.y)
|
|
3147
|
-
})))),
|
|
3148
|
-
if (!
|
|
3160
|
+
})))), Du = b(() => {
|
|
3161
|
+
if (!Tu.value) return null;
|
|
3149
3162
|
if (q.value) {
|
|
3150
3163
|
let e = Vs.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3151
3164
|
return v(t) ? {
|
|
3152
|
-
x:
|
|
3165
|
+
x: wu.value,
|
|
3153
3166
|
text: g(H.value.chart.grid.labels.xAxis.formatter, t, p({
|
|
3154
3167
|
v: t,
|
|
3155
3168
|
r: H.value.chart.tooltip.roundingValue
|
|
@@ -3162,20 +3175,20 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3162
3175
|
text: Z.value[e]?.text ?? ""
|
|
3163
3176
|
};
|
|
3164
3177
|
});
|
|
3165
|
-
function
|
|
3178
|
+
function Ou(e) {
|
|
3166
3179
|
return H.value.chart.grid.labels.yAxis.position === "right" ? X.value.right : X.value.left;
|
|
3167
3180
|
}
|
|
3168
|
-
function
|
|
3181
|
+
function ku(e, t, n) {
|
|
3169
3182
|
return q.value ? Vs.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : z.value !== null && z.value === n || L.value !== null && L.value === n;
|
|
3170
3183
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return !t || !St(t.value) || !H.value[r].labels.show || !U.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3184
|
+
function Au({ serie: e, plot: t, index: n, type: r }) {
|
|
3185
|
+
return !t || !St(t.value) || !H.value[r].labels.show || !U.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || ku(e, t, n);
|
|
3173
3186
|
}
|
|
3174
|
-
function
|
|
3187
|
+
function ju(e, t) {
|
|
3175
3188
|
let n = [];
|
|
3176
3189
|
return e.forEach((e, r) => {
|
|
3177
3190
|
(Array.isArray(e.plots) ? e.plots : []).forEach((i, a) => {
|
|
3178
|
-
|
|
3191
|
+
Au({
|
|
3179
3192
|
serie: e,
|
|
3180
3193
|
plot: i,
|
|
3181
3194
|
index: a,
|
|
@@ -3190,7 +3203,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3190
3203
|
});
|
|
3191
3204
|
}), n;
|
|
3192
3205
|
}
|
|
3193
|
-
let
|
|
3206
|
+
let Mu = b(() => ju(Ol.value, "bar")), Nu = b(() => ju(kl.value, "plot")), Pu = b(() => ju($.value, "line"));
|
|
3194
3207
|
yt(() => N.dataset, (e) => {
|
|
3195
3208
|
if (Array.isArray(e) && e.length > 0 && (Ha.value = !1), H.value.chart.zoom.keepState) {
|
|
3196
3209
|
let e = Ja.value;
|
|
@@ -3214,29 +3227,29 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3214
3227
|
};
|
|
3215
3228
|
Ri.value += 1, ea.value += 1, wa(), $a();
|
|
3216
3229
|
}, { deep: !0 }), yt(() => N.config, (e) => {
|
|
3217
|
-
Ba.value || (H.value = ja()),
|
|
3230
|
+
Ba.value || (H.value = ja()), su(), Qi.value += 1, Zi.value += 1, Ia(), H.value.chart.zoom.keepState && Ja.value > 0 && (!is.value || W.value.start === 0 && W.value.end === 0) && ss(), $a();
|
|
3218
3231
|
}, { deep: !0 });
|
|
3219
|
-
let
|
|
3220
|
-
function
|
|
3232
|
+
let Fu = D(!1), Iu = D(!1);
|
|
3233
|
+
function Lu() {
|
|
3221
3234
|
let e = wi.value?.parentNode;
|
|
3222
3235
|
if (!e) {
|
|
3223
|
-
|
|
3236
|
+
Iu.value = Fu.value, Fu.value = !1;
|
|
3224
3237
|
return;
|
|
3225
3238
|
}
|
|
3226
3239
|
let t = e.getBoundingClientRect();
|
|
3227
|
-
|
|
3240
|
+
Iu.value = Fu.value, Fu.value = t.width > 0 && t.height > 0;
|
|
3228
3241
|
}
|
|
3229
|
-
function
|
|
3230
|
-
return !
|
|
3242
|
+
function Ru() {
|
|
3243
|
+
return !Fu.value || Iu.value || is.value ? !1 : W.value.start === 0 && W.value.end === 0;
|
|
3231
3244
|
}
|
|
3232
3245
|
pt(() => {
|
|
3233
|
-
|
|
3234
|
-
|
|
3246
|
+
Lu(), da.value = new ResizeObserver(() => {
|
|
3247
|
+
Lu(), Fu.value && (su(), $a(), Ru() && ss());
|
|
3235
3248
|
}), wi.value?.parentNode && da.value.observe(wi.value.parentNode);
|
|
3236
3249
|
}), yt(H, () => {
|
|
3237
3250
|
Ia();
|
|
3238
3251
|
}, { immediate: !0 });
|
|
3239
|
-
let
|
|
3252
|
+
let zu = b(() => {
|
|
3240
3253
|
let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
|
|
3241
3254
|
return {
|
|
3242
3255
|
component: e ? _i : Qe,
|
|
@@ -3269,23 +3282,23 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3269
3282
|
yt(() => U.value.showTable, (e) => {
|
|
3270
3283
|
H.value.showTable || (e && H.value.table.useDialog && sa.value ? sa.value.open() : sa.value && sa.value.close && sa.value.close());
|
|
3271
3284
|
});
|
|
3272
|
-
function
|
|
3285
|
+
function Bu() {
|
|
3273
3286
|
U.value.showTable = !1, Fi.value && Fi.value.setTableIconState(!1);
|
|
3274
3287
|
}
|
|
3275
|
-
let
|
|
3288
|
+
let Vu = b(() => So.value.map((e) => ({
|
|
3276
3289
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
3277
3290
|
color: e.color,
|
|
3278
3291
|
name: e.name
|
|
3279
|
-
}))),
|
|
3292
|
+
}))), Hu = b(() => H.value.chart.backgroundColor), Uu = b(() => H.value.chart.legend), Wu = b(() => H.value.chart.title), { isCallbackImaging: Gu, isCallbackSvg: Ku, generateSvg: qu, onGenerateImage: Ju } = Ve({
|
|
3280
3293
|
svg: R,
|
|
3281
|
-
title:
|
|
3282
|
-
legend:
|
|
3283
|
-
legendItems:
|
|
3284
|
-
backgroundColor:
|
|
3294
|
+
title: Wu,
|
|
3295
|
+
legend: Uu,
|
|
3296
|
+
legendItems: Vu,
|
|
3297
|
+
backgroundColor: Hu,
|
|
3285
3298
|
getSvgCallback: () => H.value.chart.userOptions.callbacks.svg,
|
|
3286
3299
|
generateImage: io
|
|
3287
3300
|
});
|
|
3288
|
-
async function
|
|
3301
|
+
async function Yu() {
|
|
3289
3302
|
if (vi("copyAlt", {
|
|
3290
3303
|
config: {
|
|
3291
3304
|
...H.value,
|
|
@@ -3312,14 +3325,14 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3312
3325
|
}
|
|
3313
3326
|
}));
|
|
3314
3327
|
}
|
|
3315
|
-
let
|
|
3316
|
-
function Xu() {
|
|
3317
|
-
W.value.end > W.value.start && (la.value = null), zo.value = !0, Yu.value = !0;
|
|
3318
|
-
}
|
|
3328
|
+
let Xu = D(!1);
|
|
3319
3329
|
function Zu() {
|
|
3320
|
-
la.value = null
|
|
3330
|
+
W.value.end > W.value.start && (la.value = null), zo.value = !0, Xu.value = !0;
|
|
3331
|
+
}
|
|
3332
|
+
function Qu() {
|
|
3333
|
+
la.value = null, Xs(), Xu.value = !1, zo.value = !1;
|
|
3321
3334
|
}
|
|
3322
|
-
function
|
|
3335
|
+
function $u(e) {
|
|
3323
3336
|
if (!R.value || Wi.value || document.activeElement !== R.value) return;
|
|
3324
3337
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
3325
3338
|
if (!t && !n || !W.value.end && W.value.end !== 0) return;
|
|
@@ -3333,20 +3346,20 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3333
3346
|
return;
|
|
3334
3347
|
}
|
|
3335
3348
|
let i = la.value, a = Bs.value;
|
|
3336
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, la.value = i,
|
|
3349
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, la.value = i, ed(i), tu(!0, i);
|
|
3337
3350
|
}
|
|
3338
|
-
function
|
|
3351
|
+
function ed(e) {
|
|
3339
3352
|
let t = W.value.end - W.value.start;
|
|
3340
3353
|
if (t <= 0) return;
|
|
3341
3354
|
let n = X.value.width / t, r = X.value.left + n * e + n / 2, i = X.value.top + X.value.height / 2, a = Ce(r, i, R.value);
|
|
3342
3355
|
a && (ua.value = a);
|
|
3343
3356
|
}
|
|
3344
|
-
let
|
|
3345
|
-
if (
|
|
3357
|
+
let td = b(() => {
|
|
3358
|
+
if (!$l.value) return null;
|
|
3346
3359
|
let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(J.value.map((e) => e.name));
|
|
3347
3360
|
return e && (t = t.concat(H.value.table.columnNames.total)), {
|
|
3348
3361
|
headers: t,
|
|
3349
|
-
rows:
|
|
3362
|
+
rows: $l.value.body
|
|
3350
3363
|
};
|
|
3351
3364
|
});
|
|
3352
3365
|
return Ye({
|
|
@@ -3354,17 +3367,17 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3354
3367
|
getImage: ec,
|
|
3355
3368
|
generatePdf: ro,
|
|
3356
3369
|
generateImage: io,
|
|
3357
|
-
generateSvg:
|
|
3358
|
-
generateCsv:
|
|
3370
|
+
generateSvg: qu,
|
|
3371
|
+
generateCsv: eu,
|
|
3359
3372
|
hideSeries: sc,
|
|
3360
3373
|
showSeries: oc,
|
|
3361
3374
|
toggleStack: es,
|
|
3362
|
-
toggleTable:
|
|
3363
|
-
toggleLabels:
|
|
3364
|
-
toggleTooltip:
|
|
3375
|
+
toggleTable: nu,
|
|
3376
|
+
toggleLabels: ru,
|
|
3377
|
+
toggleTooltip: iu,
|
|
3365
3378
|
toggleAnnotator: Uo,
|
|
3366
|
-
toggleFullscreen:
|
|
3367
|
-
copyAlt:
|
|
3379
|
+
toggleFullscreen: au,
|
|
3380
|
+
copyAlt: Yu,
|
|
3368
3381
|
resetZoom: bs
|
|
3369
3382
|
}), (t, n) => (E(), S("div", {
|
|
3370
3383
|
id: `vue-ui-xy_${I.value}`,
|
|
@@ -3379,11 +3392,11 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3379
3392
|
id: `chart-instructions-${I.value}`,
|
|
3380
3393
|
class: "sr-only"
|
|
3381
3394
|
}, [C("p", null, A(H.value.a11y.translations.keyboardNavigation), 1)], 8, Nt),
|
|
3382
|
-
|
|
3395
|
+
td.value?.rows?.length ? (E(), nt(et, {
|
|
3383
3396
|
key: 0,
|
|
3384
3397
|
uid: I.value,
|
|
3385
|
-
head:
|
|
3386
|
-
body:
|
|
3398
|
+
head: td.value.headers,
|
|
3399
|
+
body: td.value.rows,
|
|
3387
3400
|
notice: H.value.a11y.translations.tableAvailable,
|
|
3388
3401
|
caption: H.value.a11y.translations.tableCaption
|
|
3389
3402
|
}, null, 8, [
|
|
@@ -3474,17 +3487,17 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3474
3487
|
tableDialog: H.value.table.useDialog,
|
|
3475
3488
|
printScale: H.value.chart.userOptions.print.scale,
|
|
3476
3489
|
isCursorPointer: Fa.value,
|
|
3477
|
-
onToggleFullscreen:
|
|
3490
|
+
onToggleFullscreen: au,
|
|
3478
3491
|
onGeneratePdf: j(ro),
|
|
3479
|
-
onGenerateCsv:
|
|
3480
|
-
onGenerateImage: j(
|
|
3481
|
-
onGenerateSvg: j(
|
|
3482
|
-
onToggleTable:
|
|
3483
|
-
onToggleLabels:
|
|
3492
|
+
onGenerateCsv: eu,
|
|
3493
|
+
onGenerateImage: j(Ju),
|
|
3494
|
+
onGenerateSvg: j(qu),
|
|
3495
|
+
onToggleTable: nu,
|
|
3496
|
+
onToggleLabels: ru,
|
|
3484
3497
|
onToggleStack: es,
|
|
3485
|
-
onToggleTooltip:
|
|
3498
|
+
onToggleTooltip: iu,
|
|
3486
3499
|
onToggleAnnotator: Uo,
|
|
3487
|
-
onCopyAlt:
|
|
3500
|
+
onCopyAlt: Yu,
|
|
3488
3501
|
style: T({ visibility: na.value ? ra.value ? "visible" : "hidden" : "visible" })
|
|
3489
3502
|
}, rt({ _: 2 }, [
|
|
3490
3503
|
t.$slots.menuIcon ? {
|
|
@@ -3592,9 +3605,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3592
3605
|
onMousemove: Ys,
|
|
3593
3606
|
onMouseleave: Xs,
|
|
3594
3607
|
onClick: Zs,
|
|
3595
|
-
onFocus:
|
|
3596
|
-
onBlur:
|
|
3597
|
-
onKeydown:
|
|
3608
|
+
onFocus: Zu,
|
|
3609
|
+
onBlur: Qu,
|
|
3610
|
+
onKeydown: $u
|
|
3598
3611
|
}, [C("g", {
|
|
3599
3612
|
ref_key: "G",
|
|
3600
3613
|
ref: Ai,
|
|
@@ -3622,7 +3635,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3622
3635
|
"stroke-linecap": "round",
|
|
3623
3636
|
style: { animation: "none !important" }
|
|
3624
3637
|
}, null, 8, Bt)) : x("", !0),
|
|
3625
|
-
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (E(!0), S(y, { key: 2 }, O(
|
|
3638
|
+
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (E(!0), S(y, { key: 2 }, O(Ml.value, (e) => (E(), S("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === P.value && e.yLabels.length ? (E(!0), S(y, { key: 0 }, O(e.yLabels, (t) => (E(), S("line", {
|
|
3626
3639
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3627
3640
|
x1: X.value?.left,
|
|
3628
3641
|
x2: X.value?.right,
|
|
@@ -3882,8 +3895,8 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3882
3895
|
style: { animation: "none !important" }
|
|
3883
3896
|
}, null, 8, sn)) : x("", !0),
|
|
3884
3897
|
!H.value.chart.highlighter.crosshairs.show && (H.value.chart.highlighter.useLine || q.value) && $o.value ? (E(), S("g", cn, [C("line", {
|
|
3885
|
-
x1:
|
|
3886
|
-
x2:
|
|
3898
|
+
x1: wu.value,
|
|
3899
|
+
x2: wu.value,
|
|
3887
3900
|
y1: j(_)(X.value?.top),
|
|
3888
3901
|
y2: j(_)(X.value?.bottom),
|
|
3889
3902
|
stroke: H.value.chart.highlighter.color,
|
|
@@ -3896,10 +3909,10 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3896
3909
|
"pointer-events": "none"
|
|
3897
3910
|
}
|
|
3898
3911
|
}, null, 8, ln)])) : x("", !0),
|
|
3899
|
-
|
|
3912
|
+
Tu.value ? (E(), S("g", un, [(E(!0), S(y, null, O(Eu.value, (e) => (E(), S("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3900
3913
|
C("line", {
|
|
3901
3914
|
x1: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(_)(e.x) : X.value.left,
|
|
3902
|
-
x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(_)(
|
|
3915
|
+
x2: H.value.chart.highlighter.crosshairs.stopOnPoint ? j(_)(Ou(e.x)) : X.value.right,
|
|
3903
3916
|
y1: j(_)(e.y),
|
|
3904
3917
|
y2: j(_)(e.y),
|
|
3905
3918
|
stroke: H.value.chart.highlighter.crosshairs.stroke,
|
|
@@ -3920,7 +3933,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3920
3933
|
style: { "pointer-events": "none" }
|
|
3921
3934
|
}, null, 8, fn),
|
|
3922
3935
|
C("circle", {
|
|
3923
|
-
cx: j(_)(
|
|
3936
|
+
cx: j(_)(Ou(e.x)),
|
|
3924
3937
|
cy: j(_)(e.y),
|
|
3925
3938
|
r: H.value.chart.highlighter.crosshairs.dot.radius,
|
|
3926
3939
|
fill: H.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -3951,9 +3964,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3951
3964
|
key: 6,
|
|
3952
3965
|
ref_key: "scaleLabels",
|
|
3953
3966
|
ref: Pi,
|
|
3954
|
-
opacity:
|
|
3967
|
+
opacity: Tu.value ? .2 : 1,
|
|
3955
3968
|
style: { transition: "opacity 0.2s" }
|
|
3956
|
-
}, [U.value.useIndividualScale ? (E(), S(y, { key: 0 }, [(E(!0), S(y, null, O(
|
|
3969
|
+
}, [U.value.useIndividualScale ? (E(), S(y, { key: 0 }, [(E(!0), S(y, null, O(Ml.value, (e) => (E(), S("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [C("line", {
|
|
3957
3970
|
x1: U.value.isStacked ? Y.value ? X.value.right : X.value.left : Y.value ? e.x : e.x - X.value.individualOffsetX,
|
|
3958
3971
|
x2: U.value.isStacked ? Y.value ? X.value.right : X.value.left : Y.value ? e.x : e.x - X.value.individualOffsetX,
|
|
3959
3972
|
y1: U.value.isStacked ? j(_)(X.value?.bottom - e.yOffset - e.individualHeight) : j(_)(X.value?.top),
|
|
@@ -3962,7 +3975,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
3962
3975
|
"stroke-width": H.value.chart.grid.stroke,
|
|
3963
3976
|
"stroke-linecap": "round",
|
|
3964
3977
|
style: T(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3965
|
-
}, null, 12, gn)]))), 128)), (E(!0), S(y, null, O(
|
|
3978
|
+
}, null, 12, gn)]))), 128)), (E(!0), S(y, null, O(Ml.value, (e) => (E(), S("g", {
|
|
3966
3979
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3967
3980
|
style: T(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3968
3981
|
}, [
|
|
@@ -4023,7 +4036,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4023
4036
|
s: e.suffix,
|
|
4024
4037
|
r: H.value.chart.grid.labels.yAxis.rounding
|
|
4025
4038
|
})) : ""), 11, xn)) : x("", !0)]))), 128))], 8, hn)) : x("", !0),
|
|
4026
|
-
|
|
4039
|
+
Tu.value ? (E(), S("g", Sn, [(E(!0), S(y, null, O(Eu.value, (e) => (E(), S("text", {
|
|
4027
4040
|
class: w({ "vue-data-ui-transition": j(Pa) }),
|
|
4028
4041
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
4029
4042
|
transform: `translate(${Y.value ? X.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : X.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(_)(e.y) + V.value.dataLabels / 3})`,
|
|
@@ -4044,8 +4057,8 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4044
4057
|
datapoint: e.serie,
|
|
4045
4058
|
seriesIndex: e.index
|
|
4046
4059
|
})), 11, Cn))), 128))])) : x("", !0),
|
|
4047
|
-
|
|
4048
|
-
cx:
|
|
4060
|
+
Du.value ? (E(), S("g", wn, [C("circle", {
|
|
4061
|
+
cx: wu.value,
|
|
4049
4062
|
cy: j(_)(X.value?.bottom),
|
|
4050
4063
|
r: H.value.chart.highlighter.crosshairs.dot.radius,
|
|
4051
4064
|
fill: H.value.chart.highlighter.crosshairs.dot.fill,
|
|
@@ -4076,7 +4089,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4076
4089
|
x: j(h)(r.x),
|
|
4077
4090
|
y: j(h)(r.y)
|
|
4078
4091
|
},
|
|
4079
|
-
radius:
|
|
4092
|
+
radius: ku(e, r, i) ? (ka.value.plot || 6) * 1.5 : (nl(e.plots, i), ka.value.plot || 6),
|
|
4080
4093
|
stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
4081
4094
|
strokeWidth: H.value.plot.dot.strokeWidth,
|
|
4082
4095
|
transition: j(Ba) || ls.value || !H.value.plot.showTransition ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`,
|
|
@@ -4153,7 +4166,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4153
4166
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4154
4167
|
patternId: `pattern_${I.value}_${n}`
|
|
4155
4168
|
}), void 0, !0)), 128))])) : x("", !0),
|
|
4156
|
-
|
|
4169
|
+
Nl.value.length && !U.value.isStacked ? (E(), S("g", Nn, [(E(!0), S(y, null, O(Nl.value, (e) => (E(), S("path", {
|
|
4157
4170
|
key: e.key,
|
|
4158
4171
|
d: e.d,
|
|
4159
4172
|
fill: e.color,
|
|
@@ -4243,7 +4256,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4243
4256
|
x: j(h)(r.x),
|
|
4244
4257
|
y: j(h)(r.y)
|
|
4245
4258
|
},
|
|
4246
|
-
radius:
|
|
4259
|
+
radius: ku(e, r, i) ? Aa.value || 0 : (nl(e.plots, i), ka.value.line || 0),
|
|
4247
4260
|
stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
4248
4261
|
strokeWidth: H.value.line.dot.strokeWidth,
|
|
4249
4262
|
transition: j(Ba) || ls.value || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`,
|
|
@@ -4271,20 +4284,20 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4271
4284
|
datapointIndex: i
|
|
4272
4285
|
} }, void 0, !0)])], 8, Wn)) : x("", !0)], 64))), 128))
|
|
4273
4286
|
], 6))), 128)),
|
|
4274
|
-
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (E(), S("g", Kn, [(E(!0), S(y, null, O(
|
|
4287
|
+
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (E(), S("g", Kn, [(E(!0), S(y, null, O(Mu.value, (e) => (E(), S("text", {
|
|
4275
4288
|
key: e.key,
|
|
4276
4289
|
class: w({ "vue-data-ui-transition": j(Pa) }),
|
|
4277
|
-
"text-anchor":
|
|
4290
|
+
"text-anchor": Cu({
|
|
4278
4291
|
plot: e.plot,
|
|
4279
4292
|
type: "bar"
|
|
4280
4293
|
}),
|
|
4281
4294
|
"font-size": V.value.plotLabels,
|
|
4282
|
-
transform:
|
|
4295
|
+
transform: xu({ plot: e.plot }),
|
|
4283
4296
|
fill: H.value.bar.labels.color,
|
|
4284
4297
|
stroke: H.value.chart.backgroundColor,
|
|
4285
4298
|
"paint-order": "stroke",
|
|
4286
4299
|
style: T(`opacity:${P.value ? P.value === e.serie.groupId ? 1 : .2 : 1};`),
|
|
4287
|
-
innerHTML:
|
|
4300
|
+
innerHTML: bu({
|
|
4288
4301
|
serie: e.serie,
|
|
4289
4302
|
plot: e.plot,
|
|
4290
4303
|
type: "bar"
|
|
@@ -4302,14 +4315,14 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4302
4315
|
source: e.name,
|
|
4303
4316
|
length: H.value.bar.serieName.abbreviationSize
|
|
4304
4317
|
}) : e.name), 15, Jn)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
|
|
4305
|
-
H.value.plot.labels.show && U.value.dataLabels.show ? (E(), S("g", Yn, [(E(!0), S(y, null, O(
|
|
4318
|
+
H.value.plot.labels.show && U.value.dataLabels.show ? (E(), S("g", Yn, [(E(!0), S(y, null, O(Nu.value, (e) => (E(), S("text", {
|
|
4306
4319
|
key: e.key,
|
|
4307
4320
|
class: w({ "vue-data-ui-transition": j(Pa) }),
|
|
4308
|
-
transform:
|
|
4321
|
+
transform: Su({
|
|
4309
4322
|
plot: e.plot,
|
|
4310
4323
|
type: "plot"
|
|
4311
4324
|
}),
|
|
4312
|
-
"text-anchor":
|
|
4325
|
+
"text-anchor": Cu({
|
|
4313
4326
|
plot: e.plot,
|
|
4314
4327
|
type: "plot"
|
|
4315
4328
|
}),
|
|
@@ -4318,7 +4331,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4318
4331
|
stroke: H.value.chart.backgroundColor,
|
|
4319
4332
|
"paint-order": "stroke",
|
|
4320
4333
|
style: T(`opacity:${P.value ? P.value === e.serie.groupId ? 1 : .2 : 1}`),
|
|
4321
|
-
innerHTML:
|
|
4334
|
+
innerHTML: bu({
|
|
4322
4335
|
serie: e.serie,
|
|
4323
4336
|
plot: e.plot,
|
|
4324
4337
|
type: "plot"
|
|
@@ -4367,14 +4380,14 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4367
4380
|
serieName: e.name
|
|
4368
4381
|
})
|
|
4369
4382
|
}, null, 12, tr)], 12, er)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4370
|
-
H.value.line.labels.show && U.value.dataLabels.show ? (E(), S("g", rr, [(E(!0), S(y, null, O(
|
|
4383
|
+
H.value.line.labels.show && U.value.dataLabels.show ? (E(), S("g", rr, [(E(!0), S(y, null, O(Pu.value, (e) => (E(), S("text", {
|
|
4371
4384
|
key: e.key,
|
|
4372
4385
|
class: w({ "vue-data-ui-transition": j(Pa) }),
|
|
4373
|
-
transform:
|
|
4386
|
+
transform: Su({
|
|
4374
4387
|
plot: e.plot,
|
|
4375
4388
|
type: "line"
|
|
4376
4389
|
}),
|
|
4377
|
-
"text-anchor":
|
|
4390
|
+
"text-anchor": Cu({
|
|
4378
4391
|
plot: e.plot,
|
|
4379
4392
|
type: "line"
|
|
4380
4393
|
}),
|
|
@@ -4383,7 +4396,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4383
4396
|
stroke: H.value.chart.backgroundColor,
|
|
4384
4397
|
"paint-order": "stroke",
|
|
4385
4398
|
style: T(`opacity:${P.value ? P.value === e.serie.groupId ? 1 : .2 : 1};`),
|
|
4386
|
-
innerHTML:
|
|
4399
|
+
innerHTML: bu({
|
|
4387
4400
|
serie: e.serie,
|
|
4388
4401
|
plot: e.plot,
|
|
4389
4402
|
type: "line"
|
|
@@ -4564,7 +4577,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4564
4577
|
r: 2
|
|
4565
4578
|
})), 11, br)) : x("", !0)
|
|
4566
4579
|
])) : x("", !0)], 64))), 128)),
|
|
4567
|
-
U.value.useIndividualScale && !U.value.isStacked ? (E(), S(y, { key: 16 }, [C("defs", null, [(E(!0), S(y, null, O(
|
|
4580
|
+
U.value.useIndividualScale && !U.value.isStacked ? (E(), S(y, { key: 16 }, [C("defs", null, [(E(!0), S(y, null, O(Ml.value, (e, t) => (E(), nt(Xe, {
|
|
4568
4581
|
t: "linear",
|
|
4569
4582
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4570
4583
|
id: `individual_scale_gradient_${I.value}_${t}`,
|
|
@@ -4586,7 +4599,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4586
4599
|
"x1",
|
|
4587
4600
|
"x2",
|
|
4588
4601
|
"stops"
|
|
4589
|
-
]))), 128))]), (E(!0), S(y, null, O(
|
|
4602
|
+
]))), 128))]), (E(!0), S(y, null, O(Ml.value, (e, t) => (E(), S("rect", {
|
|
4590
4603
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4591
4604
|
x: Y.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - X.value.individualOffsetX,
|
|
4592
4605
|
y: X.value?.top,
|
|
@@ -4619,7 +4632,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4619
4632
|
key: 17,
|
|
4620
4633
|
ref_key: "timeLabelsEls",
|
|
4621
4634
|
ref: Ni,
|
|
4622
|
-
opacity:
|
|
4635
|
+
opacity: Tu.value ? .1 : 1,
|
|
4623
4636
|
style: { transition: "opacity 0.2s" }
|
|
4624
4637
|
}, [t.$slots["time-label"] ? (E(!0), S(y, { key: 0 }, O(dl.value, (e, n) => k(t.$slots, "time-label", lt({ ref_for: !0 }, {
|
|
4625
4638
|
x: fl(e, n),
|
|
@@ -4657,12 +4670,12 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4657
4670
|
style: T({ cursor: Fo() && Fa.value ? "pointer" : "default" }),
|
|
4658
4671
|
onClick: (n) => Xo(e, t)
|
|
4659
4672
|
}, A(e.text || ""), 13, Tr))], 64)) : x("", !0)]))), 128))], 8, wr)) : x("", !0),
|
|
4660
|
-
|
|
4673
|
+
Du.value ? (E(), S("g", Dr, [C("text", {
|
|
4661
4674
|
class: "vue-data-ui-time-label",
|
|
4662
4675
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4663
4676
|
"font-size": V.value.xAxis,
|
|
4664
4677
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4665
|
-
transform: `translate(${
|
|
4678
|
+
transform: `translate(${Du.value.x}, ${X.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4666
4679
|
"font-weight": "bold",
|
|
4667
4680
|
style: {
|
|
4668
4681
|
transition: "none !important",
|
|
@@ -4670,7 +4683,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4670
4683
|
"pointer-events": "none"
|
|
4671
4684
|
},
|
|
4672
4685
|
innerHTML: j(s)({
|
|
4673
|
-
content: String(
|
|
4686
|
+
content: String(Du.value.text),
|
|
4674
4687
|
fontSize: V.value.xAxis,
|
|
4675
4688
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
4676
4689
|
x: 0,
|
|
@@ -4728,20 +4741,20 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4728
4741
|
"text-anchor": e.config.label.textAnchor
|
|
4729
4742
|
}, A(e.config.label.text), 11, Nr)) : x("", !0)
|
|
4730
4743
|
]))), 128))])) : x("", !0),
|
|
4731
|
-
!
|
|
4732
|
-
x:
|
|
4744
|
+
!Tu.value && H.value.chart.timeTag.show && (q.value ? j(v)(pu.value) : ![null, void 0].includes(z.value) || ![null, void 0].includes(L.value)) ? (E(), S("g", Pr, [(E(), S("foreignObject", {
|
|
4745
|
+
x: hu(),
|
|
4733
4746
|
y: X.value?.bottom,
|
|
4734
4747
|
width: "200",
|
|
4735
4748
|
height: "40",
|
|
4736
4749
|
style: { overflow: "visible !important" }
|
|
4737
4750
|
}, [C("div", {
|
|
4738
4751
|
ref_key: "timeTagEl",
|
|
4739
|
-
ref:
|
|
4752
|
+
ref: uu,
|
|
4740
4753
|
class: "vue-ui-xy-time-tag",
|
|
4741
4754
|
style: T(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
|
|
4742
|
-
innerHTML:
|
|
4755
|
+
innerHTML: yu.value
|
|
4743
4756
|
}, null, 12, Ir)], 8, Fr)), C("circle", {
|
|
4744
|
-
cx: q.value && j(v)(
|
|
4757
|
+
cx: q.value && j(v)(pu.value) ? pl({ x: pu.value }) : _c((z.value === null ? 0 : z.value) || (L.value === null ? 0 : L.value)),
|
|
4745
4758
|
cy: X.value?.bottom,
|
|
4746
4759
|
r: H.value.chart.timeTag.circleMarker.radius,
|
|
4747
4760
|
fill: H.value.chart.timeTag.circleMarker.color
|
|
@@ -4754,20 +4767,16 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4754
4767
|
k(t.$slots, "svg", { svg: {
|
|
4755
4768
|
...Ta.value,
|
|
4756
4769
|
slicer: W.value,
|
|
4757
|
-
isPrintingImg: j(to) || j(no) || j(
|
|
4758
|
-
isPrintingSvg: j(
|
|
4759
|
-
data:
|
|
4760
|
-
...$.value,
|
|
4761
|
-
...Ol.value,
|
|
4762
|
-
...kl.value
|
|
4763
|
-
],
|
|
4770
|
+
isPrintingImg: j(to) || j(no) || j(Gu),
|
|
4771
|
+
isPrintingSvg: j(Ku),
|
|
4772
|
+
data: Al.value,
|
|
4764
4773
|
drawingArea: X.value
|
|
4765
4774
|
} }, void 0, !0)
|
|
4766
4775
|
], 512)], 46, It)), t.$slots.hint ? (E(), S("div", zr, [k(t.$slots, "hint", dt(ct({
|
|
4767
4776
|
hint: H.value.a11y.translations.keyboardNavigation,
|
|
4768
|
-
isVisible:
|
|
4777
|
+
isVisible: Xu.value
|
|
4769
4778
|
})), void 0, !0)])) : x("", !0)]),
|
|
4770
|
-
t.$slots.watermark ? (E(), S("div", Br, [k(t.$slots, "watermark", dt(ct({ isPrinting: j(to) || j(no) || j(
|
|
4779
|
+
t.$slots.watermark ? (E(), S("div", Br, [k(t.$slots, "watermark", dt(ct({ isPrinting: j(to) || j(no) || j(Gu) || j(Ku) })), void 0, !0)])) : x("", !0),
|
|
4771
4780
|
(E(!0), S(y, null, O($.value, (e, t) => (E(), S(y, { key: `tag_line_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `tag_line_${t}_${r}` }, [[
|
|
4772
4781
|
L.value,
|
|
4773
4782
|
z.value,
|
|
@@ -4986,7 +4995,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
4986
4995
|
minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4987
4996
|
minimapSelectedIndex: q.value ? Jc.value : z.value ?? L.value,
|
|
4988
4997
|
minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
|
|
4989
|
-
preciseLabels:
|
|
4998
|
+
preciseLabels: Rl.value.length ? Rl.value : Wo.value,
|
|
4990
4999
|
refreshStartPoint: q.value ? Wc.value : H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
|
|
4991
5000
|
refreshEndPoint: q.value ? Gc.value : H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Wa(e.series).length)) : H.value.chart.zoom.endIndex + 1,
|
|
4992
5001
|
selectColor: H.value.chart.zoom.highlightColor,
|
|
@@ -5142,7 +5151,7 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
5142
5151
|
offsetX: H.value.chart.tooltip.offsetX,
|
|
5143
5152
|
offsetY: H.value.chart.tooltip.offsetY,
|
|
5144
5153
|
parent: t.$refs.chart,
|
|
5145
|
-
content:
|
|
5154
|
+
content: Ul.value,
|
|
5146
5155
|
isFullscreen: Gi.value,
|
|
5147
5156
|
isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
|
|
5148
5157
|
smooth: H.value.chart.tooltip.smooth,
|
|
@@ -5152,9 +5161,9 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
5152
5161
|
isA11yMode: la.value != null,
|
|
5153
5162
|
a11yPosition: ua.value
|
|
5154
5163
|
}, {
|
|
5155
|
-
"tooltip-before": M(() => [k(t.$slots, "tooltip-before", dt(ct({ ...
|
|
5156
|
-
tooltip: M(() => [k(t.$slots, "tooltip", dt(ct({ ...
|
|
5157
|
-
"tooltip-after": M(() => [k(t.$slots, "tooltip-after", dt(ct({ ...
|
|
5164
|
+
"tooltip-before": M(() => [k(t.$slots, "tooltip-before", dt(ct({ ...Pl.value })), void 0, !0)]),
|
|
5165
|
+
tooltip: M(() => [k(t.$slots, "tooltip", dt(ct({ ...Pl.value })), void 0, !0)]),
|
|
5166
|
+
"tooltip-after": M(() => [k(t.$slots, "tooltip-after", dt(ct({ ...Pl.value })), void 0, !0)]),
|
|
5158
5167
|
_: 3
|
|
5159
5168
|
}, 8, [
|
|
5160
5169
|
"teleportTo",
|
|
@@ -5180,10 +5189,10 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
5180
5189
|
"isA11yMode",
|
|
5181
5190
|
"a11yPosition"
|
|
5182
5191
|
]),
|
|
5183
|
-
Na.value && H.value.chart.userOptions.buttons.table ? (E(), nt(mt(
|
|
5192
|
+
Na.value && H.value.chart.userOptions.buttons.table ? (E(), nt(mt(zu.value.component), lt({ key: 9 }, zu.value.props, {
|
|
5184
5193
|
ref_key: "tableUnit",
|
|
5185
5194
|
ref: sa,
|
|
5186
|
-
onClose:
|
|
5195
|
+
onClose: Bu
|
|
5187
5196
|
}), rt({
|
|
5188
5197
|
content: M(() => [C("div", { style: T(`${j(to) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", si, [xt(C("input", {
|
|
5189
5198
|
type: "checkbox",
|
|
@@ -5201,17 +5210,17 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
5201
5210
|
config: mc.value
|
|
5202
5211
|
}, null, 8, ["dataset", "config"])) : (E(), nt(j(ui), {
|
|
5203
5212
|
key: `table_${Zi.value}`,
|
|
5204
|
-
colNames:
|
|
5205
|
-
head:
|
|
5206
|
-
body:
|
|
5207
|
-
config:
|
|
5208
|
-
title: H.value.table.useDialog ? "" :
|
|
5213
|
+
colNames: $l.value.colNames,
|
|
5214
|
+
head: $l.value.head,
|
|
5215
|
+
body: $l.value.body,
|
|
5216
|
+
config: $l.value.config,
|
|
5217
|
+
title: H.value.table.useDialog ? "" : zu.value.title,
|
|
5209
5218
|
withCloseButton: !H.value.table.useDialog,
|
|
5210
|
-
onClose:
|
|
5219
|
+
onClose: Bu
|
|
5211
5220
|
}, {
|
|
5212
5221
|
th: M(({ th: e }) => [e === "__SUM__" ? (E(), S("div", ci, [at(j(pi), {
|
|
5213
5222
|
name: "sigma",
|
|
5214
|
-
stroke:
|
|
5223
|
+
stroke: $l.value.config.th.color,
|
|
5215
5224
|
size: 16
|
|
5216
5225
|
}, null, 8, ["stroke"])])) : (E(), S("div", li, A(e), 1))]),
|
|
5217
5226
|
td: M(({ td: e }) => [it(A(isNaN(Number(e)) ? e : j(p)({
|
|
@@ -5232,23 +5241,23 @@ var jt = /* @__PURE__ */ e({ default: () => N }), Mt = ["id"], Nt = ["id"], Pt =
|
|
|
5232
5241
|
_: 2
|
|
5233
5242
|
}, [H.value.table.useDialog ? {
|
|
5234
5243
|
name: "title",
|
|
5235
|
-
fn: M(() => [it(A(
|
|
5244
|
+
fn: M(() => [it(A(zu.value.title), 1)]),
|
|
5236
5245
|
key: "0"
|
|
5237
5246
|
} : void 0, H.value.table.useDialog ? {
|
|
5238
5247
|
name: "actions",
|
|
5239
5248
|
fn: M(() => [C("button", {
|
|
5240
5249
|
tabindex: "0",
|
|
5241
5250
|
class: "vue-ui-user-options-button",
|
|
5242
|
-
onClick: n[3] ||= (e) =>
|
|
5251
|
+
onClick: n[3] ||= (e) => eu(H.value.chart.userOptions.callbacks.csv)
|
|
5243
5252
|
}, [at(j(pi), {
|
|
5244
5253
|
name: "fileCsv",
|
|
5245
|
-
stroke:
|
|
5254
|
+
stroke: zu.value.props.color
|
|
5246
5255
|
}, null, 8, ["stroke"])])]),
|
|
5247
5256
|
key: "1"
|
|
5248
5257
|
} : void 0]), 1040)) : x("", !0),
|
|
5249
5258
|
k(t.$slots, "skeleton", {}, () => [j(Ba) ? (E(), nt(Re, { key: 0 })) : x("", !0)], !0)
|
|
5250
5259
|
], 46, Mt));
|
|
5251
5260
|
}
|
|
5252
|
-
}, [["__scopeId", "data-v-
|
|
5261
|
+
}, [["__scopeId", "data-v-cce012bf"]]);
|
|
5253
5262
|
//#endregion
|
|
5254
5263
|
export { jt as n, N as t };
|