vue-data-ui 3.1.18 → 3.1.19-next.1
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-BC5klzOh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CkjMZyIs.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-BPiT94Lb.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-bx5e2RB2.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-CywujQw9.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-h35dp0Qf.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CvnlQ378.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-BzGzkGiC.js → PackageVersion-B6W-zkH-.js} +3 -3
- package/dist/{PenAndPaper-Deh70G9d.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-sVxD_SDm.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-CQB967He.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-DFRSPT3_.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-B_WMW2Bp.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-Db9jy0Iu.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CtECQwBN.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-BHpS3cMi.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-BArHHegM.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D1L3r23x.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DeqXeTNw.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-nFj0xF0a.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/{vue-data-ui-DcBYykse.js → vue-data-ui-DfcfqSDl.js} +64 -64
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-DKkCWxob.js} +58 -57
- package/dist/{vue-ui-accordion-7cfJUVx5.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BXMIUNB_.js → vue-ui-age-pyramid-gGF4DSOi.js} +28 -27
- package/dist/{vue-ui-annotator-aCDhQ-m2.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-Cd_iix-z.js → vue-ui-bullet-Coqi_swO.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-C78EYmhY.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-B7i_eOe9.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-QzsKNF-J.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-BxiWe3MD.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-C3TZdbF1.js} +75 -74
- package/dist/{vue-ui-cursor-DJQWAIj8.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CIACUYB-.js → vue-ui-dashboard-Dh0EyLe8.js} +68 -68
- package/dist/{vue-ui-digits-CLV8h-P8.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-sO6G5oor.js → vue-ui-donut-DTJCIEig.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DYJmrFDC.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-COm32YHr.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-BD2XeR-d.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-Cy9J1JpW.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-KyUZ5tNb.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-BpXYJd5z.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-DM3wSOOe.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-B2NzGPtL.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BTnau6bc.js} +105 -104
- package/dist/{vue-ui-kpi-CfX-zUDS.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-C1nANuMy.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-BU7T1ysb.js → vue-ui-molecule-8oQQTCN2.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-B3ZrQSqP.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BoUb_OX8.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-xprTPjVq.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-Cpzi3BO0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-BC99Cua7.js → vue-ui-quadrant-CHTnDwZ7.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-zJyIT4di.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-B5QRDHJ1.js} +90 -89
- package/dist/{vue-ui-rating-BNCKLcCa.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-CYFQcAgc.js → vue-ui-relation-circle-DStHH_sz.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-VI1I1k9W.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-D26TgYmU.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-9CX5JEVI.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-0yto3ZRt.js} +5 -5
- package/dist/{vue-ui-smiley-t16dEIoQ.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/{vue-ui-spark-trend-DskdjYw4.js → vue-ui-spark-trend-13xDAi4U.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DBMeKvSW.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-febkbzOk.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-rc9uWj4C.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BpZKuk92.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-DuOsScHl.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-BsdEyuPC.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-Dem6Qr7N.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-Dds0EE_Q.js} +9 -8
- package/dist/{vue-ui-table-heatmap-BfXe_f0K.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DyrnPNGv.js → vue-ui-table-sparkline-DcHLIhbA.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-DZwSnX7w.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-BVmo70Ts.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-Cr6Fy7Sq.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-DiKGxMUR.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-D3_W8WLN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CoVrrxzt.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-Cwl-WsK2.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-L-58-uVD.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-CaA-eKMJ.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-Bm2SYaTT.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-2Vg9eVqi.js} +166 -165
- package/package.json +14 -11
- package/dist/index-smzxfsyV.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DeKmJzsE.js +0 -13
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as ea, onMounted as dl, watch as D, nextTick as hl, shallowRef as Me, onBeforeUnmount as la, createElementBlock as de, openBlock as S, unref as p, normalizeClass as aa, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as F, createSlots as
|
|
2
|
-
import {
|
|
3
|
-
import { d as
|
|
4
|
-
import { u as Ll } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as ea, onMounted as dl, watch as D, nextTick as hl, shallowRef as Me, onBeforeUnmount as la, createElementBlock as de, openBlock as S, unref as p, normalizeClass as aa, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as F, createSlots as fl, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as Z, createVNode as yl, Teleport as ta, toDisplayString as Oe, resolveDynamicComponent as oa, mergeProps as ua, createTextVNode as gl } from "vue";
|
|
2
|
+
import { c as ra, b as sa, p as G, D as xe, e as na, E as Re, a as ae, d as te, h as pl, a0 as ia, L as va, a8 as ca, o as da, f as ha, z as ml, x as fa, y as ya, A as ga, s as he, m as pa } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { d as ma, t as ba, u as xa, c as La, a as bl, l as C, r as De, b as P, p as xl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ka, a as Ll } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as Ca } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as wa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Sa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { t as za } from "./themes-D3cUNuKw.js";
|
|
9
|
+
import $a from "./Legend-_Rv594VS.js";
|
|
10
|
+
import Ta from "./Title-pI68ZJsq.js";
|
|
11
|
+
import { S as Ia } from "./Slicer-BgpOhmb6.js";
|
|
12
|
+
import Ma from "./vue-ui-accordion-D-L73-T2.js";
|
|
12
13
|
import { u as Oa } from "./useTimeLabels-BGFjWgrv.js";
|
|
13
|
-
import Ra from "./img-
|
|
14
|
-
import Da from "./BaseIcon-
|
|
14
|
+
import Ra from "./img-CH7J0fYg.js";
|
|
15
|
+
import Da from "./BaseIcon-D2f9w5Z5.js";
|
|
15
16
|
import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
17
|
const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
17
18
|
key: 3,
|
|
@@ -34,14 +35,14 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectLegend"],
|
|
36
37
|
setup(Fe, { expose: kl, emit: Cl }) {
|
|
37
|
-
const wl = ee(() => import("./DataTable-
|
|
38
|
+
const wl = ee(() => import("./DataTable-xISHA7Pu.js")), Sl = ee(() => import("./NonSvgPenAndPaper-DiM4-9ju.js")), zl = ee(() => import("./vue-ui-skeleton-0yto3ZRt.js")), $l = ee(() => import("./Tooltip-Clf2K3CF.js")), Tl = ee(() => import("./UserOptions-Bn3u4JQu.js")), Il = ee(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_xy_canvas: Ml } = ka(), g = Fe, _ = c(ra()), I = c(null), oe = c(null), n = c(null), f = c(1), E = c(1), fe = c(!1), d = c(null), ye = c(""), Pe = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ee = c(0), Ae = c(0), ue = c(!1), Ne = c(null), He = c(null), Ye = c(null), _e = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Be = c(!1), re = c(null), Se = c(null), ge = L(() => !!g.dataset && g.dataset.length), Ol = Cl, Rl = ea();
|
|
38
39
|
dl(() => {
|
|
39
40
|
Rl["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
40
41
|
});
|
|
41
42
|
const l = L({
|
|
42
43
|
get: () => Xe(),
|
|
43
44
|
set: (e) => e
|
|
44
|
-
}), { userOptionsVisible: ze, setUserOptionsVisibility: Ue, keepUserOptionState: We } =
|
|
45
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: Ue, keepUserOptionState: We } = wa({ config: l.value }), { svgRef: O } = Sa({ config: l.value.style.chart.title });
|
|
45
46
|
function Xe() {
|
|
46
47
|
const e = Ll({
|
|
47
48
|
userConfig: g.config,
|
|
@@ -50,22 +51,22 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
50
51
|
let a = {};
|
|
51
52
|
return e.theme ? a = {
|
|
52
53
|
...Ll({
|
|
53
|
-
userConfig:
|
|
54
|
+
userConfig: za.vue_ui_xy_canvas[e.theme] || g.config,
|
|
54
55
|
defaultConfig: e
|
|
55
56
|
}),
|
|
56
|
-
customPalette:
|
|
57
|
+
customPalette: sa[e.theme] || G
|
|
57
58
|
} : a = e, g.config && xe(g.config, "style.chart.scale.min") ? a.style.chart.scale.min = g.config.style.chart.scale.min : a.style.chart.scale.min = null, g.config && xe(g.config, "style.chart.scale.max") ? a.style.chart.scale.max = g.config.style.chart.scale.max : a.style.chart.scale.max = null, g.config && xe(g.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, g.config && xe(g.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
58
59
|
}
|
|
59
60
|
D(() => g.config, (e) => {
|
|
60
|
-
l.value = Xe(), ze.value = !l.value.userOptions.showOnChartHover, $e(), ke.value += 1, Ce.value += 1, we.value += 1,
|
|
61
|
+
l.value = Xe(), ze.value = !l.value.userOptions.showOnChartHover, $e(), ke.value += 1, Ce.value += 1, we.value += 1, r.value.showTable = l.value.table.show, r.value.showDataLabels = l.value.style.chart.dataLabels.show, r.value.stacked = l.value.style.chart.stacked, r.value.showTooltip = l.value.style.chart.tooltip.show;
|
|
61
62
|
}, { deep: !0 }), D(() => g.dataset, () => {
|
|
62
63
|
$e(), ke.value += 1, Ce.value += 1, we.value += 1;
|
|
63
64
|
}, { deep: !0 });
|
|
64
|
-
const Ve = c(l.value.style.chart.aspectRatio), { isPrinting:
|
|
65
|
+
const Ve = c(l.value.style.chart.aspectRatio), { isPrinting: Ze, isImaging: Ge, generatePdf: je, generateImage: qe } = Ca({
|
|
65
66
|
elementId: `xy_canvas_${_.value}`,
|
|
66
67
|
fileName: l.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
67
68
|
options: l.value.userOptions.print
|
|
68
|
-
}),
|
|
69
|
+
}), r = c({
|
|
69
70
|
showTable: l.value.table.show,
|
|
70
71
|
showDataLabels: l.value.style.chart.dataLabels.show,
|
|
71
72
|
stacked: l.value.style.chart.stacked,
|
|
@@ -74,14 +75,14 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
74
75
|
function Je(e) {
|
|
75
76
|
ue.value = e, Ae.value += 1;
|
|
76
77
|
}
|
|
77
|
-
const Ke = L(() =>
|
|
78
|
-
const e =
|
|
78
|
+
const Ke = L(() => na(l.value.customPalette)), T = L(() => J.value ? Math.max(...J.value.filter((e, a) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
|
|
79
|
+
const e = f.value - f.value * (l.value.style.chart.paddingProportions.left + l.value.style.chart.paddingProportions.right);
|
|
79
80
|
return {
|
|
80
|
-
canvasWidth:
|
|
81
|
+
canvasWidth: f.value,
|
|
81
82
|
canvasHeight: E.value,
|
|
82
|
-
left:
|
|
83
|
+
left: f.value * l.value.style.chart.paddingProportions.left,
|
|
83
84
|
top: E.value * l.value.style.chart.paddingProportions.top,
|
|
84
|
-
right:
|
|
85
|
+
right: f.value - f.value * l.value.style.chart.paddingProportions.right,
|
|
85
86
|
bottom: E.value - E.value * l.value.style.chart.paddingProportions.bottom,
|
|
86
87
|
width: e,
|
|
87
88
|
height: E.value - E.value * (l.value.style.chart.paddingProportions.top + l.value.style.chart.paddingProportions.bottom),
|
|
@@ -91,13 +92,13 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
91
92
|
function Qe(e, a) {
|
|
92
93
|
return e / a;
|
|
93
94
|
}
|
|
94
|
-
function Dl({ hasAutoScale: e, series: a, min: o, max:
|
|
95
|
+
function Dl({ hasAutoScale: e, series: a, min: o, max: s, scale: i, yOffset: x, individualHeight: v, stackIndex: y = null }) {
|
|
95
96
|
return a.map((W, z) => {
|
|
96
97
|
const N = i.min < 0 ? Math.abs(i.min) : 0, X = Qe(W + N, N + i.max);
|
|
97
98
|
let ve, ce;
|
|
98
99
|
e && (ve = i.min, ce = Qe(W - ve, i.max - ve));
|
|
99
100
|
let R = 0;
|
|
100
|
-
return
|
|
101
|
+
return y === null ? R = t.value.bottom - t.value.height * (e ? ce : X) : R = t.value.bottom - x - v * (e ? ce : X), {
|
|
101
102
|
x: t.value.left + t.value.slot * z + t.value.slot / 2,
|
|
102
103
|
y: R,
|
|
103
104
|
value: W
|
|
@@ -105,13 +106,13 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
const b = L(() => {
|
|
108
|
-
const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v,
|
|
109
|
-
y: t.value.bottom - t.value.height * ((v +
|
|
109
|
+
const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v, y) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), a = l.value.style.chart.scale.max !== null ? l.value.style.chart.scale.max : Math.max(...J.value.filter((v, y) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), o = Re(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, l.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), x = o.ticks.map((v) => ({
|
|
110
|
+
y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
|
|
110
111
|
x: t.value.left - 8,
|
|
111
112
|
value: v
|
|
112
113
|
}));
|
|
113
114
|
return {
|
|
114
|
-
absoluteMin:
|
|
115
|
+
absoluteMin: s,
|
|
115
116
|
max: a,
|
|
116
117
|
min: e,
|
|
117
118
|
scale: o,
|
|
@@ -138,55 +139,55 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
138
139
|
</div>
|
|
139
140
|
`)), J = L(() => g.dataset.map((e, a) => ({
|
|
140
141
|
...e,
|
|
141
|
-
series:
|
|
142
|
-
data:
|
|
142
|
+
series: ia({
|
|
143
|
+
data: va(e.series),
|
|
143
144
|
threshold: l.value.downsample.threshold
|
|
144
145
|
}),
|
|
145
146
|
absoluteIndex: a,
|
|
146
|
-
color: pl(e.color || Ke.value[a] ||
|
|
147
|
+
color: pl(e.color || Ke.value[a] || G[a] || G[a % G.length])
|
|
147
148
|
})));
|
|
148
149
|
D(T, (e) => {
|
|
149
150
|
e && el();
|
|
150
151
|
});
|
|
151
|
-
const h = L(() =>
|
|
152
|
+
const h = L(() => ca(J.value.filter((e, a) => !$.value.includes(e.absoluteIndex))).map((e, a) => ({
|
|
152
153
|
...e,
|
|
153
154
|
series: e.series.slice(u.value.start, u.value.end)
|
|
154
155
|
})).map((e, a) => {
|
|
155
|
-
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin,
|
|
156
|
-
o ===
|
|
156
|
+
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, s = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
157
|
+
o === s && (o = o >= 0 ? s - 1 : o, s = s >= 0 ? s : o + 1), e.series.filter((R) => ![null, void 0].includes(R)).map((R) => (R - o) / (s - o));
|
|
157
158
|
const i = {
|
|
158
159
|
valueMin: o,
|
|
159
|
-
valueMax:
|
|
160
|
+
valueMax: s
|
|
160
161
|
}, x = e.scaleSteps || l.value.style.chart.scale.ticks;
|
|
161
162
|
let v;
|
|
162
163
|
e.autoScaling ? v = Re(i.valueMin, i.valueMax, x) : v = Re(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, x);
|
|
163
|
-
const
|
|
164
|
+
const y = r.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = r.value.stacked ? t.value.height / l.value.style.chart.stackGap : 0, z = r.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, N = v.min < 0 ? Math.abs(v.min) : 0;
|
|
164
165
|
let X;
|
|
165
|
-
e.autoScaling &&
|
|
166
|
+
e.autoScaling && r.value.stacked && s <= 0 ? X = t.value.bottom - y - z : X = t.value.bottom - y - z * (N / (v.max + N));
|
|
166
167
|
const ve = v.ticks.map((R, Ql) => ({
|
|
167
|
-
y: t.value.bottom -
|
|
168
|
+
y: t.value.bottom - y - z * (Ql / (v.ticks.length - 1)),
|
|
168
169
|
x: t.value.left - 8,
|
|
169
170
|
value: R
|
|
170
171
|
})), ce = Dl({
|
|
171
|
-
hasAutoScale:
|
|
172
|
+
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
172
173
|
series: e.series,
|
|
173
|
-
min:
|
|
174
|
-
max:
|
|
175
|
-
scale:
|
|
176
|
-
yOffset:
|
|
174
|
+
min: r.value.stacked ? o : b.value.min,
|
|
175
|
+
max: r.value.stacked ? s : b.value.max,
|
|
176
|
+
scale: r.value.stacked ? v : b.value.scale,
|
|
177
|
+
yOffset: y,
|
|
177
178
|
individualHeight: z,
|
|
178
|
-
stackIndex:
|
|
179
|
+
stackIndex: r.value.stacked ? a : null
|
|
179
180
|
});
|
|
180
181
|
return {
|
|
181
182
|
...e,
|
|
182
183
|
coordinatesLine: ce,
|
|
183
184
|
min: o,
|
|
184
|
-
max:
|
|
185
|
+
max: s,
|
|
185
186
|
localScale: v,
|
|
186
187
|
localZero: X,
|
|
187
188
|
localMin: N,
|
|
188
189
|
localYLabels: ve,
|
|
189
|
-
yOffset:
|
|
190
|
+
yOffset: y,
|
|
190
191
|
individualHeight: z
|
|
191
192
|
};
|
|
192
193
|
})), u = c({
|
|
@@ -199,8 +200,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
199
200
|
const ll = c(null);
|
|
200
201
|
async function al() {
|
|
201
202
|
await hl(), await hl();
|
|
202
|
-
const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = ll.value,
|
|
203
|
-
u.value = { start: 0, end:
|
|
203
|
+
const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = ll.value, s = T.value;
|
|
204
|
+
u.value = { start: 0, end: s }, (e != null || a != null) && o ? (e != null ? o.setStartValue(e) : (u.value.start = 0, o.setStartValue(0)), a != null ? o.setEndValue(Pl(a + 1)) : (u.value.end = s, o.setEndValue(s))) : (u.value = { start: 0, end: s }, Ee.value += 1);
|
|
204
205
|
}
|
|
205
206
|
function Pl(e) {
|
|
206
207
|
const a = T.value;
|
|
@@ -211,10 +212,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
211
212
|
if (!O.value)
|
|
212
213
|
return;
|
|
213
214
|
const e = oe.value.offsetWidth, a = oe.value.offsetHeight;
|
|
214
|
-
O.value.width = e * j.value * 2, O.value.height = a * j.value * 2,
|
|
215
|
+
O.value.width = e * j.value * 2, O.value.height = a * j.value * 2, f.value = e * j.value * 2, E.value = a * j.value * 2, n.value.scale(j.value, j.value), se();
|
|
215
216
|
}
|
|
216
217
|
function Nl() {
|
|
217
|
-
if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = l.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight),
|
|
218
|
+
if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = l.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), r.value.stacked)
|
|
218
219
|
l.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < l.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
|
|
219
220
|
for (let a = 0; a < u.value.end - u.value.start + 1; a += 1)
|
|
220
221
|
C(
|
|
@@ -316,13 +317,13 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
316
317
|
P(
|
|
317
318
|
n.value,
|
|
318
319
|
e.name,
|
|
319
|
-
|
|
320
|
+
f.value / 35,
|
|
320
321
|
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
321
322
|
{
|
|
322
323
|
align: "center",
|
|
323
324
|
rotation: -90,
|
|
324
325
|
color: e.color,
|
|
325
|
-
font: `${Math.round(
|
|
326
|
+
font: `${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`
|
|
326
327
|
}
|
|
327
328
|
);
|
|
328
329
|
});
|
|
@@ -411,10 +412,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
411
412
|
l.value.style.chart.grid.y.axisName && P(
|
|
412
413
|
n.value,
|
|
413
414
|
l.value.style.chart.grid.y.axisName,
|
|
414
|
-
|
|
415
|
+
f.value - f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
415
416
|
t.value.bottom - t.value.height / 2,
|
|
416
417
|
{
|
|
417
|
-
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(
|
|
418
|
+
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
418
419
|
color: l.value.style.chart.color,
|
|
419
420
|
align: "center",
|
|
420
421
|
rotation: 90
|
|
@@ -422,10 +423,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
422
423
|
), l.value.style.chart.grid.x.axisName && P(
|
|
423
424
|
n.value,
|
|
424
425
|
l.value.style.chart.grid.x.axisName,
|
|
425
|
-
|
|
426
|
+
f.value / 2,
|
|
426
427
|
E.value,
|
|
427
428
|
{
|
|
428
|
-
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(
|
|
429
|
+
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
429
430
|
color: l.value.style.chart.color,
|
|
430
431
|
align: "center"
|
|
431
432
|
}
|
|
@@ -433,7 +434,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
433
434
|
}
|
|
434
435
|
function Hl(e) {
|
|
435
436
|
for (let a = 0; a < e.coordinatesLine.length; a += 1) {
|
|
436
|
-
const o = (d.value === a ?
|
|
437
|
+
const o = (d.value === a ? f.value / 150 : l.value.style.chart.line.plots.show ? f.value / 200 : 0) * l.value.style.chart.line.plots.radiusRatio;
|
|
437
438
|
bl(
|
|
438
439
|
n.value,
|
|
439
440
|
{ x: e.coordinatesLine[a].x, y: e.coordinatesLine[a].y },
|
|
@@ -464,14 +465,14 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
464
465
|
ne(e).y,
|
|
465
466
|
{
|
|
466
467
|
align: "right",
|
|
467
|
-
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(
|
|
468
|
+
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
468
469
|
color: e.color
|
|
469
470
|
}
|
|
470
471
|
);
|
|
471
472
|
});
|
|
472
473
|
}
|
|
473
474
|
function _l() {
|
|
474
|
-
l.value.style.chart.grid.y.axisLabels.show && (
|
|
475
|
+
l.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
|
|
475
476
|
e.localYLabels.forEach((a, o) => {
|
|
476
477
|
P(
|
|
477
478
|
n.value,
|
|
@@ -490,7 +491,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
490
491
|
a.y,
|
|
491
492
|
{
|
|
492
493
|
align: "right",
|
|
493
|
-
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(
|
|
494
|
+
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
494
495
|
color: e.color,
|
|
495
496
|
globalAlpha: e.showYMarker && ![null, void 0].includes(d.value) ? 0.2 : 1
|
|
496
497
|
}
|
|
@@ -514,7 +515,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
514
515
|
e.y,
|
|
515
516
|
{
|
|
516
517
|
align: "right",
|
|
517
|
-
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(
|
|
518
|
+
font: `${l.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
518
519
|
color: l.value.style.chart.grid.y.axisLabels.color,
|
|
519
520
|
globalAlpha: h.value.some((o) => o.showYMarker) && ![null, void 0].includes(d.value) ? 0.2 : 1
|
|
520
521
|
}
|
|
@@ -540,7 +541,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
540
541
|
e.coordinatesLine[a].y + l.value.style.chart.dataLabels.offsetY,
|
|
541
542
|
{
|
|
542
543
|
align: "center",
|
|
543
|
-
font: `${l.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(
|
|
544
|
+
font: `${l.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.dataLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
544
545
|
color: l.value.style.chart.dataLabels.useSerieColor ? e.color : l.value.style.chart.dataLabels.color
|
|
545
546
|
}
|
|
546
547
|
);
|
|
@@ -558,10 +559,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
558
559
|
n.value,
|
|
559
560
|
U.value[e] ? U.value[e].text : e + 1,
|
|
560
561
|
t.value.left + t.value.slot * (e - u.value.start) + t.value.slot / 2,
|
|
561
|
-
t.value.bottom +
|
|
562
|
+
t.value.bottom + f.value / l.value.style.chart.grid.y.timeLabels.offsetY,
|
|
562
563
|
{
|
|
563
564
|
align: l.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : l.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
564
|
-
font: `${l.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(
|
|
565
|
+
font: `${l.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(f.value / 40 * l.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
565
566
|
color: l.value.style.chart.grid.y.timeLabels.showMarker ? he(l.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100) : l.value.style.chart.grid.y.timeLabels.color,
|
|
566
567
|
rotation: l.value.style.chart.grid.y.timeLabels.rotation
|
|
567
568
|
}
|
|
@@ -602,19 +603,19 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
602
603
|
n.value,
|
|
603
604
|
[
|
|
604
605
|
{
|
|
605
|
-
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (
|
|
606
|
-
y:
|
|
606
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
|
|
607
|
+
y: r.value.stacked ? e.localZero : b.value.zero
|
|
607
608
|
},
|
|
608
609
|
{
|
|
609
|
-
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (
|
|
610
|
-
y:
|
|
610
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
|
|
611
|
+
y: r.value.stacked ? e.localZero : b.value.zero
|
|
611
612
|
},
|
|
612
613
|
{
|
|
613
|
-
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (
|
|
614
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
|
|
614
615
|
y: e.coordinatesLine[o].y
|
|
615
616
|
},
|
|
616
617
|
{
|
|
617
|
-
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (
|
|
618
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
|
|
618
619
|
y: e.coordinatesLine[o].y
|
|
619
620
|
}
|
|
620
621
|
],
|
|
@@ -628,15 +629,15 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
628
629
|
},
|
|
629
630
|
end: {
|
|
630
631
|
x: e.coordinatesLine[o].x,
|
|
631
|
-
y:
|
|
632
|
+
y: r.value.stacked ? e.localZero : b.value.zero
|
|
632
633
|
},
|
|
633
634
|
stops: [
|
|
634
635
|
{ offset: 0, color: e.color },
|
|
635
|
-
{ offset: 1, color: l.value.style.chart.bar.gradient.show ?
|
|
636
|
+
{ offset: 1, color: l.value.style.chart.bar.gradient.show ? pa(e.color, 0.5) : e.color }
|
|
636
637
|
]
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
|
-
),
|
|
640
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
|
|
640
641
|
n.value,
|
|
641
642
|
ae(
|
|
642
643
|
l.value.style.chart.dataLabels.formatter,
|
|
@@ -649,11 +650,11 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
649
650
|
}),
|
|
650
651
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
651
652
|
),
|
|
652
|
-
t.value.left + t.value.slot * o + t.value.slot / 10 + (
|
|
653
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
653
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.4 / (r.value.stacked ? 1 : w.value.length),
|
|
654
|
+
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : b.value.zero : e.coordinatesLine[o].y) + l.value.style.chart.dataLabels.offsetY,
|
|
654
655
|
{
|
|
655
656
|
align: "center",
|
|
656
|
-
font: `${Math.round(
|
|
657
|
+
font: `${Math.round(f.value / 40 * l.value.style.chart.dataLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
|
|
657
658
|
color: l.value.style.chart.dataLabels.useSerieColor ? e.color : l.value.style.chart.dataLabels.color,
|
|
658
659
|
strokeColor: l.value.style.chart.backgroundColor,
|
|
659
660
|
lineWidth: 0.8
|
|
@@ -662,7 +663,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
662
663
|
});
|
|
663
664
|
}
|
|
664
665
|
function Vl(e) {
|
|
665
|
-
e.useArea ?
|
|
666
|
+
e.useArea ? r.value.stacked ? xl(
|
|
666
667
|
n.value,
|
|
667
668
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
668
669
|
{
|
|
@@ -681,7 +682,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
681
682
|
lineWidth: 3
|
|
682
683
|
});
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function Zl() {
|
|
685
686
|
h.value.forEach((e, a) => {
|
|
686
687
|
C(
|
|
687
688
|
n.value,
|
|
@@ -696,10 +697,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
696
697
|
);
|
|
697
698
|
});
|
|
698
699
|
}
|
|
699
|
-
function
|
|
700
|
-
Nl(), B.value ? (d.value !== null && l.value.style.chart.selector.show && tl(), Xl(),
|
|
701
|
-
(e.type === "line" || !e.type) && Vl(e), q.value && (Hl(e),
|
|
702
|
-
}), Le.value =
|
|
700
|
+
function se() {
|
|
701
|
+
Nl(), B.value ? (d.value !== null && l.value.style.chart.selector.show && tl(), Xl(), r.value.stacked && l.value.style.chart.grid.x.showAxis && Zl(), El.value.forEach((e) => {
|
|
702
|
+
(e.type === "line" || !e.type) && Vl(e), q.value && (Hl(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Bl(e));
|
|
703
|
+
}), Le.value = La(O.value)) : (Le.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(Le.value, 0, 0)), d.value !== null && l.value.style.chart.selector.show && tl(), d.value !== null && h.value.forEach((e) => {
|
|
703
704
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
704
705
|
if (!e.coordinatesLine[d.value]) return;
|
|
705
706
|
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && bl(
|
|
@@ -708,7 +709,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
708
709
|
x: e.coordinatesLine[d.value].x,
|
|
709
710
|
y: e.coordinatesLine[d.value].y
|
|
710
711
|
},
|
|
711
|
-
|
|
712
|
+
f.value / 150 * l.value.style.chart.line.plots.radiusRatio,
|
|
712
713
|
{
|
|
713
714
|
color: l.value.style.chart.backgroundColor,
|
|
714
715
|
fillStyle: e.color
|
|
@@ -717,7 +718,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
717
718
|
}
|
|
718
719
|
})), l.value.style.chart.grid.y.timeLabels.show && Ul(), l.value.style.chart.selector.show && l.value.style.chart.selector.showHorizontalSelector && Wl(), _l(), Yl(), B.value = !1;
|
|
719
720
|
}
|
|
720
|
-
const pe =
|
|
721
|
+
const pe = ma(() => {
|
|
721
722
|
q.value = !0, Al();
|
|
722
723
|
}, T.value > 200 ? 10 : 1, !q.value);
|
|
723
724
|
function ne(e) {
|
|
@@ -725,67 +726,67 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
725
726
|
const { y: a, value: o } = e.coordinatesLine[d.value];
|
|
726
727
|
return { y: a, value: o };
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
-
const { left: a, top: o } = O.value.getBoundingClientRect(),
|
|
730
|
-
if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null),
|
|
731
|
-
|
|
729
|
+
function Gl(e) {
|
|
730
|
+
const { left: a, top: o } = O.value.getBoundingClientRect(), s = e.clientX - a;
|
|
731
|
+
if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), s * 2 < t.value.left || s * 2 > t.value.right) {
|
|
732
|
+
fe.value = !1, d.value = null;
|
|
732
733
|
return;
|
|
733
734
|
}
|
|
734
|
-
const i =
|
|
735
|
-
if (d.value = Math.floor(i / t.value.slot),
|
|
735
|
+
const i = s * 2 - t.value.left;
|
|
736
|
+
if (d.value = Math.floor(i / t.value.slot), fe.value = !0, !q.value) return;
|
|
736
737
|
let x = "";
|
|
737
738
|
const v = l.value.style.chart.tooltip.customFormat;
|
|
738
|
-
ml(v) &&
|
|
739
|
+
ml(v) && ga(() => v({
|
|
739
740
|
seriesIndex: d.value,
|
|
740
|
-
datapoint: h.value.map((
|
|
741
|
-
shape:
|
|
742
|
-
name:
|
|
743
|
-
color:
|
|
744
|
-
type:
|
|
745
|
-
value:
|
|
741
|
+
datapoint: h.value.map((y) => ({
|
|
742
|
+
shape: y.shape || null,
|
|
743
|
+
name: y.name,
|
|
744
|
+
color: y.color,
|
|
745
|
+
type: y.type || "line",
|
|
746
|
+
value: y.series.find((W, z) => z === d.value)
|
|
746
747
|
})),
|
|
747
748
|
series: h.value,
|
|
748
749
|
config: l.value
|
|
749
|
-
})) ?
|
|
750
|
+
})) ? ye.value = v({
|
|
750
751
|
seriesIndex: d.value,
|
|
751
|
-
datapoint: h.value.map((
|
|
752
|
-
shape:
|
|
753
|
-
name:
|
|
754
|
-
color:
|
|
755
|
-
type:
|
|
756
|
-
value:
|
|
752
|
+
datapoint: h.value.map((y) => ({
|
|
753
|
+
shape: y.shape || null,
|
|
754
|
+
name: y.name,
|
|
755
|
+
color: y.color,
|
|
756
|
+
type: y.type || "line",
|
|
757
|
+
value: y.series.find((W, z) => z === d.value)
|
|
757
758
|
})),
|
|
758
759
|
series: h.value,
|
|
759
760
|
config: l.value
|
|
760
|
-
}) : (l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (x += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.style.chart.tooltip.borderColor}; width:100%">${U.value.slice(u.value.start, u.value.end)[d.value].text}</div>`), x += Fl.value.join(""),
|
|
761
|
+
}) : (l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (x += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.style.chart.tooltip.borderColor}; width:100%">${U.value.slice(u.value.start, u.value.end)[d.value].text}</div>`), x += Fl.value.join(""), ye.value = x), q.value = !1;
|
|
761
762
|
}
|
|
762
763
|
D(() => d.value, (e) => {
|
|
763
764
|
pe();
|
|
764
765
|
}), D(() => u.value, (e) => {
|
|
765
|
-
B.value = !0,
|
|
766
|
+
B.value = !0, se();
|
|
766
767
|
}, {
|
|
767
768
|
deep: !0
|
|
768
|
-
}), D(() =>
|
|
769
|
-
B.value = !0,
|
|
769
|
+
}), D(() => r.value.showDataLabels, (e) => {
|
|
770
|
+
B.value = !0, se();
|
|
770
771
|
}), D(() => M.value, (e) => {
|
|
771
|
-
e &&
|
|
772
|
-
}), D(() =>
|
|
772
|
+
e && se();
|
|
773
|
+
}), D(() => r.value.stacked, (e) => {
|
|
773
774
|
B.value = !0, q.value = !0, pe();
|
|
774
775
|
});
|
|
775
776
|
function jl() {
|
|
776
|
-
|
|
777
|
+
fe.value = !1, d.value = null, ye.value = "", M.value = null, se();
|
|
777
778
|
}
|
|
778
779
|
const A = Me(null), K = Me(null), Q = Me(null);
|
|
779
780
|
dl(() => {
|
|
780
781
|
Be.value = !0, $e();
|
|
781
782
|
});
|
|
782
783
|
function $e() {
|
|
783
|
-
if (
|
|
784
|
+
if (da(g.dataset) ? ha({
|
|
784
785
|
componentName: "VueUiXyCanvas",
|
|
785
786
|
type: "dataset"
|
|
786
787
|
}) : O.value && (n.value = O.value.getContext("2d", { willReadFrequently: !0 })), l.value.responsive) {
|
|
787
|
-
const e =
|
|
788
|
-
const { width: a, height: o } =
|
|
788
|
+
const e = ba(() => {
|
|
789
|
+
const { width: a, height: o } = xa({
|
|
789
790
|
chart: I.value,
|
|
790
791
|
title: l.value.style.chart.title.text ? Ne.value : null,
|
|
791
792
|
legend: l.value.style.chart.legend.show ? He.value : null,
|
|
@@ -812,7 +813,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
812
813
|
const ul = L(() => J.value.map((e, a) => ({
|
|
813
814
|
...e,
|
|
814
815
|
name: e.name,
|
|
815
|
-
color: pl(e.color) || Ke.value[a] ||
|
|
816
|
+
color: pl(e.color) || Ke.value[a] || G[a] || G[a % G.length],
|
|
816
817
|
shape: e.shape || "circle",
|
|
817
818
|
prefix: e.prefix || "",
|
|
818
819
|
suffix: e.suffix || "",
|
|
@@ -833,7 +834,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
833
834
|
const e = [""].concat(h.value.map((i) => i.name)).concat(' <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>');
|
|
834
835
|
let a = [];
|
|
835
836
|
for (let i = 0; i < T.value; i += 1) {
|
|
836
|
-
const x = h.value.map((v) => v.series[i] ?? 0).reduce((v,
|
|
837
|
+
const x = h.value.map((v) => v.series[i] ?? 0).reduce((v, y) => v + y, 0);
|
|
837
838
|
a.push([l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[i] ? U.value.slice(u.value.start, u.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(l.value.table.rounding))).concat((x ?? 0).toFixed(l.value.table.rounding)));
|
|
838
839
|
}
|
|
839
840
|
const o = {
|
|
@@ -848,9 +849,9 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
848
849
|
outline: l.value.table.td.outline
|
|
849
850
|
},
|
|
850
851
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
851
|
-
},
|
|
852
|
-
return { head: e, body: a.slice(0, u.value.end - u.value.start), config: o, colNames:
|
|
853
|
-
}),
|
|
852
|
+
}, s = [l.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
|
|
853
|
+
return { head: e, body: a.slice(0, u.value.end - u.value.start), config: o, colNames: s };
|
|
854
|
+
}), rl = L(() => {
|
|
854
855
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
855
856
|
const e = h.value.map((o) => ({
|
|
856
857
|
label: o.name,
|
|
@@ -858,31 +859,31 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
858
859
|
type: o.type
|
|
859
860
|
})), a = [];
|
|
860
861
|
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
861
|
-
const
|
|
862
|
+
const s = [l.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
|
|
862
863
|
h.value.forEach((i) => {
|
|
863
|
-
|
|
864
|
-
}), a.push(
|
|
864
|
+
s.push(Number((i.series[o] || 0).toFixed(l.value.table.rounding)));
|
|
865
|
+
}), a.push(s);
|
|
865
866
|
}
|
|
866
867
|
return { head: e, body: a };
|
|
867
868
|
});
|
|
868
869
|
function Te(e = null) {
|
|
869
|
-
const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...
|
|
870
|
-
e ? e(x) :
|
|
870
|
+
const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...rl.value.head.map((v) => v.label)], s = rl.value.body, i = a.concat([o]).concat(s), x = fa(i);
|
|
871
|
+
e ? e(x) : ya({ csvContent: x, title: l.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
871
872
|
}
|
|
872
873
|
function Jl() {
|
|
873
874
|
return h.value;
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
-
|
|
876
|
+
function sl() {
|
|
877
|
+
r.value.showTable = !r.value.showTable;
|
|
877
878
|
}
|
|
878
879
|
function nl() {
|
|
879
|
-
|
|
880
|
+
r.value.showDataLabels = !r.value.showDataLabels;
|
|
880
881
|
}
|
|
881
882
|
function il() {
|
|
882
|
-
|
|
883
|
+
r.value.stacked = !r.value.stacked;
|
|
883
884
|
}
|
|
884
885
|
function vl() {
|
|
885
|
-
|
|
886
|
+
r.value.showTooltip = !r.value.showTooltip;
|
|
886
887
|
}
|
|
887
888
|
const be = c(!1);
|
|
888
889
|
function Ie() {
|
|
@@ -890,18 +891,18 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
890
891
|
}
|
|
891
892
|
async function Kl({ scale: e = 2 } = {}) {
|
|
892
893
|
if (!I.value) return;
|
|
893
|
-
const { width: a, height: o } = I.value.getBoundingClientRect(),
|
|
894
|
+
const { width: a, height: o } = I.value.getBoundingClientRect(), s = a / o, { imageUri: i, base64: x } = await Ra({ domElement: I.value, base64: !0, img: !0, scale: e });
|
|
894
895
|
return {
|
|
895
896
|
imageUri: i,
|
|
896
897
|
base64: x,
|
|
897
898
|
title: l.value.style.chart.title.text,
|
|
898
899
|
width: a,
|
|
899
900
|
height: o,
|
|
900
|
-
aspectRatio:
|
|
901
|
+
aspectRatio: s
|
|
901
902
|
};
|
|
902
903
|
}
|
|
903
904
|
const ie = L(() => {
|
|
904
|
-
const e = l.value.table.useDialog && !l.value.table.show, a =
|
|
905
|
+
const e = l.value.table.useDialog && !l.value.table.show, a = r.value.showTable;
|
|
905
906
|
return {
|
|
906
907
|
component: e ? Il : Ma,
|
|
907
908
|
title: `${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text ? `: ${l.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -930,11 +931,11 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
930
931
|
}
|
|
931
932
|
};
|
|
932
933
|
});
|
|
933
|
-
D(() =>
|
|
934
|
-
l.value.table.show || (e && l.value.table.useDialog &&
|
|
934
|
+
D(() => r.value.showTable, (e) => {
|
|
935
|
+
l.value.table.show || (e && l.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
|
|
935
936
|
});
|
|
936
937
|
function cl() {
|
|
937
|
-
|
|
938
|
+
r.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
|
|
938
939
|
}
|
|
939
940
|
return kl({
|
|
940
941
|
getData: Jl,
|
|
@@ -942,7 +943,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
942
943
|
generateCsv: Te,
|
|
943
944
|
generatePdf: je,
|
|
944
945
|
generateImage: qe,
|
|
945
|
-
toggleTable:
|
|
946
|
+
toggleTable: sl,
|
|
946
947
|
toggleLabels: nl,
|
|
947
948
|
toggleStack: il,
|
|
948
949
|
toggleTooltip: vl,
|
|
@@ -986,8 +987,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
986
987
|
key: `user_option_${Ae.value}`,
|
|
987
988
|
backgroundColor: l.value.style.chart.backgroundColor,
|
|
988
989
|
color: l.value.style.chart.color,
|
|
989
|
-
isPrinting: p(
|
|
990
|
-
isImaging: p(
|
|
990
|
+
isPrinting: p(Ze),
|
|
991
|
+
isImaging: p(Ge),
|
|
991
992
|
uid: _.value,
|
|
992
993
|
hasTooltip: l.value.userOptions.buttons.tooltip && l.value.style.chart.tooltip.show,
|
|
993
994
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
@@ -998,8 +999,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
998
999
|
hasFullscreen: l.value.userOptions.buttons.fullscreen,
|
|
999
1000
|
hasTable: u.value.end - u.value.start <= 730 && l.value.userOptions.buttons.table,
|
|
1000
1001
|
isFullscreen: ue.value,
|
|
1001
|
-
isTooltip:
|
|
1002
|
-
isStacked:
|
|
1002
|
+
isTooltip: r.value.showTooltip,
|
|
1003
|
+
isStacked: r.value.stacked,
|
|
1003
1004
|
titles: { ...l.value.userOptions.buttonTitles },
|
|
1004
1005
|
chartElement: I.value,
|
|
1005
1006
|
position: l.value.userOptions.position,
|
|
@@ -1012,7 +1013,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1012
1013
|
onGeneratePdf: p(je),
|
|
1013
1014
|
onGenerateCsv: Te,
|
|
1014
1015
|
onGenerateImage: p(qe),
|
|
1015
|
-
onToggleTable:
|
|
1016
|
+
onToggleTable: sl,
|
|
1016
1017
|
onToggleLabels: nl,
|
|
1017
1018
|
onToggleStack: il,
|
|
1018
1019
|
onToggleTooltip: vl,
|
|
@@ -1020,11 +1021,11 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1020
1021
|
style: le({
|
|
1021
1022
|
visibility: p(We) ? p(ze) ? "visible" : "hidden" : "visible"
|
|
1022
1023
|
})
|
|
1023
|
-
},
|
|
1024
|
+
}, fl({ _: 2 }, [
|
|
1024
1025
|
e.$slots.menuIcon ? {
|
|
1025
1026
|
name: "menuIcon",
|
|
1026
|
-
fn: m(({ isOpen: o, color:
|
|
1027
|
-
k(e.$slots, "menuIcon", V(
|
|
1027
|
+
fn: m(({ isOpen: o, color: s }) => [
|
|
1028
|
+
k(e.$slots, "menuIcon", V(Z({ isOpen: o, color: s })), void 0, !0)
|
|
1028
1029
|
]),
|
|
1029
1030
|
key: "0"
|
|
1030
1031
|
} : void 0,
|
|
@@ -1079,15 +1080,15 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1079
1080
|
} : void 0,
|
|
1080
1081
|
e.$slots.optionFullscreen ? {
|
|
1081
1082
|
name: "optionFullscreen",
|
|
1082
|
-
fn: m(({ toggleFullscreen: o, isFullscreen:
|
|
1083
|
-
k(e.$slots, "optionFullscreen", V(
|
|
1083
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
1084
|
+
k(e.$slots, "optionFullscreen", V(Z({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
1084
1085
|
]),
|
|
1085
1086
|
key: "8"
|
|
1086
1087
|
} : void 0,
|
|
1087
1088
|
e.$slots.optionAnnotator ? {
|
|
1088
1089
|
name: "optionAnnotator",
|
|
1089
|
-
fn: m(({ toggleAnnotator: o, isAnnotator:
|
|
1090
|
-
k(e.$slots, "optionAnnotator", V(
|
|
1090
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
1091
|
+
k(e.$slots, "optionAnnotator", V(Z({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
1091
1092
|
]),
|
|
1092
1093
|
key: "9"
|
|
1093
1094
|
} : void 0
|
|
@@ -1103,7 +1104,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1103
1104
|
ref_key: "canvas",
|
|
1104
1105
|
ref: O,
|
|
1105
1106
|
style: { width: "100%", height: "100%" },
|
|
1106
|
-
onMousemove: a[0] || (a[0] = (o) =>
|
|
1107
|
+
onMousemove: a[0] || (a[0] = (o) => Gl(o)),
|
|
1107
1108
|
onMouseleave: jl
|
|
1108
1109
|
}, null, 544)) : (S(), F(p(zl), {
|
|
1109
1110
|
key: 1,
|
|
@@ -1123,8 +1124,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
1126
|
}, null, 8, ["config"])),
|
|
1126
|
-
|
|
1127
|
-
show:
|
|
1127
|
+
yl(p($l), {
|
|
1128
|
+
show: r.value.showTooltip && fe.value,
|
|
1128
1129
|
backgroundColor: l.value.style.chart.tooltip.backgroundColor,
|
|
1129
1130
|
color: l.value.style.chart.tooltip.color,
|
|
1130
1131
|
fontSize: l.value.style.chart.tooltip.fontSize,
|
|
@@ -1134,7 +1135,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1134
1135
|
position: l.value.style.chart.tooltip.position,
|
|
1135
1136
|
offsetY: l.value.style.chart.tooltip.offsetY,
|
|
1136
1137
|
parent: p(O),
|
|
1137
|
-
content:
|
|
1138
|
+
content: ye.value,
|
|
1138
1139
|
isFullscreen: ue.value,
|
|
1139
1140
|
backgroundOpacity: l.value.style.chart.tooltip.backgroundOpacity,
|
|
1140
1141
|
isCustom: p(ml)(l.value.style.chart.tooltip.customFormat),
|
|
@@ -1144,10 +1145,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1144
1145
|
smoothSnapThreshold: l.value.style.chart.tooltip.smoothSnapThreshold
|
|
1145
1146
|
}, {
|
|
1146
1147
|
"tooltip-before": m(() => [
|
|
1147
|
-
k(e.$slots, "tooltip-before", V(
|
|
1148
|
+
k(e.$slots, "tooltip-before", V(Z({ ...Pe.value })), void 0, !0)
|
|
1148
1149
|
]),
|
|
1149
1150
|
"tooltip-after": m(() => [
|
|
1150
|
-
k(e.$slots, "tooltip-after", V(
|
|
1151
|
+
k(e.$slots, "tooltip-after", V(Z({ ...Pe.value })), void 0, !0)
|
|
1151
1152
|
]),
|
|
1152
1153
|
_: 3
|
|
1153
1154
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"])
|
|
@@ -1188,7 +1189,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1188
1189
|
onReset: el
|
|
1189
1190
|
}, {
|
|
1190
1191
|
"reset-action": m(({ reset: o }) => [
|
|
1191
|
-
k(e.$slots, "reset-action", V(
|
|
1192
|
+
k(e.$slots, "reset-action", V(Z({ reset: o })), void 0, !0)
|
|
1192
1193
|
]),
|
|
1193
1194
|
_: 3
|
|
1194
1195
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : H("", !0)
|
|
@@ -1210,10 +1211,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1210
1211
|
key: `legend_${we.value}`,
|
|
1211
1212
|
onClickMarker: a[3] || (a[3] = ({ i: o }) => ol(o))
|
|
1212
1213
|
}, {
|
|
1213
|
-
item: m(({ legend: o, index:
|
|
1214
|
+
item: m(({ legend: o, index: s }) => [
|
|
1214
1215
|
Y("div", {
|
|
1215
1216
|
onClick: (i) => o.segregate(),
|
|
1216
|
-
style: le(`opacity:${$.value.includes(
|
|
1217
|
+
style: le(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
|
|
1217
1218
|
}, Oe(o.name), 13, Na)
|
|
1218
1219
|
]),
|
|
1219
1220
|
_: 1
|
|
@@ -1224,7 +1225,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1224
1225
|
], 512)
|
|
1225
1226
|
], 8, ["to"])) : H("", !0),
|
|
1226
1227
|
e.$slots.watermark ? (S(), de("div", Ha, [
|
|
1227
|
-
k(e.$slots, "watermark", V(
|
|
1228
|
+
k(e.$slots, "watermark", V(Z({ isPrinting: p(Ze) || p(Ge) })), void 0, !0)
|
|
1228
1229
|
])) : H("", !0),
|
|
1229
1230
|
e.$slots.source ? (S(), de("div", {
|
|
1230
1231
|
key: 4,
|
|
@@ -1236,9 +1237,9 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1236
1237
|
], 512)) : H("", !0),
|
|
1237
1238
|
ge.value && l.value.userOptions.buttons.table ? (S(), F(oa(ie.value.component), ua({ key: 5 }, ie.value.props, {
|
|
1238
1239
|
ref_key: "tableUnit",
|
|
1239
|
-
ref:
|
|
1240
|
+
ref: re,
|
|
1240
1241
|
onClose: cl
|
|
1241
|
-
}),
|
|
1242
|
+
}), fl({
|
|
1242
1243
|
content: m(() => [
|
|
1243
1244
|
(S(), F(p(wl), {
|
|
1244
1245
|
key: `table_${Ce.value}`,
|
|
@@ -1276,7 +1277,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1276
1277
|
class: "vue-ui-user-options-button",
|
|
1277
1278
|
onClick: a[4] || (a[4] = (o) => Te(l.value.userOptions.callbacks.csv))
|
|
1278
1279
|
}, [
|
|
1279
|
-
|
|
1280
|
+
yl(Da, {
|
|
1280
1281
|
name: "excel",
|
|
1281
1282
|
stroke: ie.value.props.color
|
|
1282
1283
|
}, null, 8, ["stroke"])
|
|
@@ -1295,7 +1296,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
|
|
|
1295
1296
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
|
|
1296
1297
|
], 46, Pa));
|
|
1297
1298
|
}
|
|
1298
|
-
},
|
|
1299
|
+
}, ot = /* @__PURE__ */ Fa(_a, [["__scopeId", "data-v-c6565152"]]);
|
|
1299
1300
|
export {
|
|
1300
|
-
|
|
1301
|
+
ot as default
|
|
1301
1302
|
};
|