vue-data-ui 3.9.11 → 3.9.13
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-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
- package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
- package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
- package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
- package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
- package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
- package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
- package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
- package/dist/{PackageVersion-DPLuuWzw.js → PackageVersion-D3cMhAlf.js} +1 -1
- package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
- package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
- package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
- package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
- package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
- package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
- package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
- package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.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-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
- package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
- package/dist/labelUtils-PMU3ZGCb.js +30 -0
- package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
- package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +20 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
- package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
- package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
- package/dist/{vue-data-ui-B2w3blNC.js → vue-data-ui-DE3O1T8n.js} +67 -67
- package/dist/vue-data-ui.js +83 -83
- package/dist/{vue-ui-3d-bar-Cpp-5jo0.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
- package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BH8z1r48.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
- package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
- package/dist/{vue-ui-bullet-CmLA4Lxs.js → vue-ui-bullet-DhpTML7L.js} +22 -22
- package/dist/{vue-ui-candlestick-IspjAN-a.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
- package/dist/{vue-ui-carousel-table-9mdO6mvP.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
- package/dist/{vue-ui-chestnut-CC1bTcaA.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
- package/dist/{vue-ui-chord-B0pp0mDm.js → vue-ui-chord-CB6w31Ex.js} +8 -8
- package/dist/{vue-ui-circle-pack-CWhq37at.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
- package/dist/{vue-ui-cursor-DOWNTk2K.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
- package/dist/{vue-ui-dag-DlLdvPIA.js → vue-ui-dag-Dq3hKon7.js} +7 -7
- package/dist/{vue-ui-dashboard-BRAyn8IO.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
- package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
- package/dist/vue-ui-donut-D3---CiY.js +2082 -0
- package/dist/{vue-ui-donut-evolution-C95OcKhs.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
- package/dist/{vue-ui-dumbbell-L8fXdkQm.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
- package/dist/{vue-ui-flow-CPnYumnP.js → vue-ui-flow-CgAIlvZF.js} +38 -38
- package/dist/{vue-ui-funnel-BPnUog47.js → vue-ui-funnel-CpgqO34n.js} +6 -6
- package/dist/{vue-ui-galaxy-BjtDkIAw.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
- package/dist/{vue-ui-gauge-CHqgIzG0.js → vue-ui-gauge-DY78U-uO.js} +7 -7
- package/dist/{vue-ui-geo-C3O4GHZF.js → vue-ui-geo-Befu6fkT.js} +20 -20
- package/dist/{vue-ui-gizmo-Dr0gsAOM.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
- package/dist/{vue-ui-heatmap-BBshmoO7.js → vue-ui-heatmap-C_ze3bzX.js} +80 -80
- package/dist/{vue-ui-history-plot-BiUyd40D.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
- package/dist/{vue-ui-horizontal-bar-BDtke67D.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
- package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
- package/dist/{vue-ui-molecule-DH-sHfQ-.js → vue-ui-molecule-N938wMMB.js} +5 -5
- package/dist/{vue-ui-mood-radar-BWASgbMe.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
- package/dist/{vue-ui-nested-donuts-4ey-UxN-.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
- package/dist/{vue-ui-onion-40DoblSj.js → vue-ui-onion-BwY998zT.js} +376 -332
- package/dist/{vue-ui-parallel-coordinate-plot-BIV0-SLG.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
- package/dist/{vue-ui-quadrant-Dvuwg4h7.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
- package/dist/{vue-ui-quick-chart-CZgZOWsW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
- package/dist/{vue-ui-radar-BfoE3AZN.js → vue-ui-radar-B15r4HoM.js} +57 -57
- package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
- package/dist/{vue-ui-relation-circle-EVMDQTCn.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
- package/dist/{vue-ui-ridgeline-BO-JV7Qz.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
- package/dist/{vue-ui-rings-B0wMY8Cu.js → vue-ui-rings-DNdUdKax.js} +270 -246
- package/dist/{vue-ui-scatter-CyjpTjlf.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
- package/dist/{vue-ui-skeleton-C8Aq8dTp.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
- package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
- package/dist/{vue-ui-spark-trend-B1pD2N9Z.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
- package/dist/{vue-ui-sparkbar-DFlGdgrX.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BMRbWZ_X.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
- package/dist/{vue-ui-sparkhistogram-jI9-0GyS.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
- package/dist/{vue-ui-sparkline-DLB7uHga.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-E8mYJ8eg.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
- package/dist/{vue-ui-stackbar-zhHYnvVo.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
- package/dist/{vue-ui-stackline-rFr4hLbc.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
- package/dist/{vue-ui-strip-plot-DA8uwUaL.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
- package/dist/{vue-ui-table-CldDVgkf.js → vue-ui-table-BHWwypkc.js} +27 -27
- package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
- package/dist/{vue-ui-table-sparkline-D3XfL4kK.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
- package/dist/{vue-ui-thermometer-CU86DLRC.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
- package/dist/{vue-ui-timer-CPZBXUbs.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
- package/dist/{vue-ui-tiremarks-CLiEtCKe.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
- package/dist/{vue-ui-treemap-Dht5s1nE.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
- package/dist/{vue-ui-waffle-BQM8XJln.js → vue-ui-waffle-CddfqNWD.js} +381 -352
- package/dist/{vue-ui-wheel-CX-gWpDL.js → vue-ui-wheel-CGYJA-33.js} +6 -6
- package/dist/{vue-ui-word-cloud-dolAsuyP.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
- package/dist/{vue-ui-world-su4gjhTo.js → vue-ui-world-DQjHEyKe.js} +31 -31
- package/dist/{vue-ui-xy-BSBAegJ1.js → vue-ui-xy-D5A8tR-O.js} +9 -9
- package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
- package/package.json +1 -1
- package/dist/vue-ui-donut-BjSuCwQE.js +0 -2078
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as pe, ref as d, computed as p, useSlots as Na, onMounted as $l, toRefs as _a, watch as
|
|
2
|
-
import { c as Wa, t as Ya, i as ja,
|
|
1
|
+
import { defineAsyncComponent as pe, ref as d, computed as p, useSlots as Na, onMounted as $l, toRefs as _a, watch as R, nextTick as be, onBeforeUnmount as Tl, shallowRef as je, createElementBlock as Te, openBlock as I, normalizeClass as Ha, normalizeStyle as xe, createCommentVNode as V, createElementVNode as J, createBlock as W, unref as C, createSlots as Il, withCtx as b, renderSlot as S, normalizeProps as Q, guardReactiveProps as ee, createVNode as El, Teleport as Xa, toDisplayString as qe, resolveDynamicComponent as Ua, mergeProps as Va, createTextVNode as Rl } from "vue";
|
|
2
|
+
import { c as Wa, t as Ya, i as ja, j as le, a1 as Ce, k as qa, N as Ge, a as se, d as ue, m as Ol, R as Ga, a7 as Za, T as Ja, o as Ka, g as Qa, y as Pl, s as Le, q as et, v as lt, r as at, _ as tt } from "./lib-BwysEpWI.js";
|
|
3
3
|
import { c as ot, a as Ze, d as rt, t as st, u as ut, l as k, r as Ie, b as Y, p as Bl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as nt, a as Ee } from "./useNestedProp-
|
|
4
|
+
import { u as nt, a as Ee } from "./useNestedProp--5lL-kf1.js";
|
|
5
5
|
import { u as it, B as ct } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
-
import { u as vt } from "./usePrinter-
|
|
6
|
+
import { u as vt } from "./usePrinter-BJzHDpYF.js";
|
|
7
7
|
import { u as dt, a as ht, l as ft } from "./useTimeLabels-DKoynYae.js";
|
|
8
8
|
import { u as yt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
9
|
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import pt from "./img-
|
|
12
|
-
import bt from "./Legend-
|
|
13
|
-
import xt from "./Title-
|
|
14
|
-
import Ct from "./BaseIcon-
|
|
15
|
-
import Lt from "./vue-ui-accordion-
|
|
16
|
-
import { S as kt } from "./SlicerPreview-
|
|
11
|
+
import pt from "./img-DKigoPDs.js";
|
|
12
|
+
import bt from "./Legend-D6z73edh.js";
|
|
13
|
+
import xt from "./Title-BhURirpm.js";
|
|
14
|
+
import Ct from "./BaseIcon-4i3dd7Ty.js";
|
|
15
|
+
import Lt from "./vue-ui-accordion-tQNKwbVi.js";
|
|
16
|
+
import { S as kt } from "./SlicerPreview-oV3dMuV1.js";
|
|
17
17
|
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, selector: { color: "#CCCCCC" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, grid: { y: { axisColor: "#5A5A5A", axisLabels: { color: "#CCCCCC" }, verticalLines: { color: "#4A4A4A" } }, x: { axisColor: "#5A5A5A", horizontalLines: { color: "#4A4A4A" }, timeLabels: { color: "#CCCCCC" } }, zeroLine: { color: "#5A5A5A" } }, dataLabels: { color: "#CCCCCC" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, _l = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, selector: { color: "#5D4037" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, grid: { y: { axisColor: "#5D4037", axisLabels: { color: "#424242" }, verticalLines: { show: !1 } }, x: { axisColor: "#5D4037", horizontalLines: { color: "#9A9A9A" }, timeLabels: { color: "#424242" } }, zeroLine: { color: "#424242" } }, dataLabels: { color: "#424242" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Hl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, selector: { color: "#BDBDBD" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, grid: { y: { axisColor: "#5D4037", axisLabels: { color: "#BDBDBD" }, verticalLines: { show: !1 } }, x: { axisColor: "#5D4037", horizontalLines: { color: "#3A3A3A" }, timeLabels: { color: "#BDBDBD" } }, zeroLine: { color: "#5D4037" } }, dataLabels: { color: "#BDBDBD" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Xl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, selector: { color: "#66CC66" }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66", borderRadius: 0 }, grid: { y: { axisColor: "#5F6A5F", axisLabels: { color: "#99AA99" }, verticalLines: { show: !1 } }, x: { axisColor: "#5F6A5F", horizontalLines: { color: "#3A3A3A" }, timeLabels: { color: "#99AA99" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#99AA99" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ul = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, selector: { color: "#8F837A" }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, grid: { y: { axisColor: "#8F837A", axisLabels: { color: "#8F837A" }, verticalLines: { show: !1 } }, x: { axisColor: "#8F837A", horizontalLines: { show: !1, alternate: !1 }, timeLabels: { color: "#8F837A" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#8F837A" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Vl = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, selector: { color: "#7DA9B5" }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, grid: { y: { axisColor: "#829C98", axisLabels: { color: "#50606C" }, verticalLines: { show: !1 } }, x: { axisColor: "#829C98", timeLabels: { color: "#50606C" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Wl = {
|
|
19
19
|
default: {},
|
|
@@ -32,10 +32,10 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
32
32
|
default: Wl,
|
|
33
33
|
hack: Xl,
|
|
34
34
|
zen: Ul
|
|
35
|
-
}, Symbol.toStringTag, { value: "Module" })), wt = ["id"], zt = ["id"], St = ["id"], Ft = ["onClick"],
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), wt = ["id"], zt = ["id"], St = ["id"], Ft = ["onClick"], Dt = {
|
|
36
36
|
key: 4,
|
|
37
37
|
class: "vue-data-ui-watermark"
|
|
38
|
-
},
|
|
38
|
+
}, Mt = ["innerHTML"], $t = {
|
|
39
39
|
__name: "vue-ui-xy-canvas",
|
|
40
40
|
props: {
|
|
41
41
|
dataset: {
|
|
@@ -57,7 +57,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
57
57
|
},
|
|
58
58
|
emits: ["selectLegend", "selectX"],
|
|
59
59
|
setup(Je, { expose: Yl, emit: jl }) {
|
|
60
|
-
const ql = pe(() => import("./Tooltip-
|
|
60
|
+
const ql = pe(() => import("./Tooltip-TDyKgLB6.js")), Gl = pe(() => import("./DataTable-WrXCJkfE.js")), Zl = pe(() => import("./UserOptions-CzJWRC4s.js")), Jl = pe(() => import("./NonSvgPenAndPaper-7clRuQVF.js")), Kl = pe(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_xy_canvas: Ql } = nt(), { isThemeValid: ea, warnInvalidTheme: la } = yt(), g = Je, K = d(Wa()), _ = d(null), ae = d(null), c = d(null), m = d(1), j = d(1), ne = d(!1), h = d(null), ke = d(""), Ke = d(null), F = d([]), te = d(1), O = d(!0), H = d(!0), Ae = d(null), Qe = d(0), ie = d(!1), el = d(null), ll = d(null), q = d(null), al = d(null), Re = d(0), Oe = d(0), Pe = d(0), P = d(null), tl = d(!1), ce = d(null), Be = d(null), ve = d(!1), ol = d(!1), we = d(!1), A = d(null), X = p(() => Array.isArray(He.value) && He.value.length > 0), Ne = jl, aa = Na();
|
|
61
61
|
$l(() => {
|
|
62
62
|
aa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
63
63
|
});
|
|
@@ -129,7 +129,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
129
129
|
function Ue() {
|
|
130
130
|
const e = Ee({
|
|
131
131
|
userConfig: g.config,
|
|
132
|
-
defaultConfig:
|
|
132
|
+
defaultConfig: Ql
|
|
133
133
|
});
|
|
134
134
|
let a = {};
|
|
135
135
|
const t = e.theme;
|
|
@@ -156,13 +156,13 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
156
156
|
userConfig: g.config.style.chart.grid.y.timeLabels
|
|
157
157
|
})), a;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
_e.value || (l.value = Ue()), Xe.value = !l.value.userOptions.showOnChartHover, Ll(),
|
|
161
|
-
}, { deep: !0 }),
|
|
162
|
-
!Array.isArray(e) || e.length === 0 || (await be(), w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })),
|
|
159
|
+
R(() => g.config, (e) => {
|
|
160
|
+
_e.value || (l.value = Ue()), Xe.value = !l.value.userOptions.showOnChartHover, Ll(), Re.value += 1, Oe.value += 1, Pe.value += 1, v.value.showTable = l.value.table.show, v.value.showDataLabels = l.value.style.chart.dataLabels.show, v.value.stacked = l.value.style.chart.stacked, v.value.showTooltip = l.value.style.chart.tooltip.show;
|
|
161
|
+
}, { deep: !0 }), R(() => g.dataset, async (e) => {
|
|
162
|
+
!Array.isArray(e) || e.length === 0 || (await be(), w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })), O.value = !0, H.value = !0, await he(), Se(), Re.value += 1, Oe.value += 1, Pe.value += 1);
|
|
163
163
|
}, { deep: !0 });
|
|
164
164
|
const ul = d(l.value.style.chart.aspectRatio), { isPrinting: nl, isImaging: il, generatePdf: cl, generateImage: vl } = vt({
|
|
165
|
-
elementId: `xy_canvas_${
|
|
165
|
+
elementId: `xy_canvas_${K.value}`,
|
|
166
166
|
fileName: l.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
167
167
|
options: l.value.userOptions.print
|
|
168
168
|
}), v = d({
|
|
@@ -172,7 +172,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
172
172
|
showTooltip: l.value.style.chart.tooltip.show
|
|
173
173
|
});
|
|
174
174
|
function dl(e) {
|
|
175
|
-
ie.value = e,
|
|
175
|
+
ie.value = e, Qe.value += 1;
|
|
176
176
|
}
|
|
177
177
|
const hl = p(() => qa(l.value.customPalette)), E = p(() => T.value ? Math.max(...T.value.filter((e, a) => !F.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
178
178
|
function sa(e) {
|
|
@@ -247,7 +247,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
247
247
|
threshold: l.value.downsample.threshold
|
|
248
248
|
}),
|
|
249
249
|
absoluteIndex: a,
|
|
250
|
-
color:
|
|
250
|
+
color: Ol(e.color || hl.value[a] || le[a] || le[a % le.length])
|
|
251
251
|
}))), ia = p(() => {
|
|
252
252
|
if (!l.value.style.chart.zoom.minimap.show) return [];
|
|
253
253
|
const e = T.value.filter((u) => !F.value.includes(u.absoluteIndex)), a = Math.max(...e.map((u) => u.series.length)), t = [];
|
|
@@ -259,7 +259,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
259
259
|
...a,
|
|
260
260
|
isVisible: !F.value.includes(a.absoluteIndex)
|
|
261
261
|
})) : []);
|
|
262
|
-
|
|
262
|
+
R(E, (e) => {
|
|
263
263
|
e && he();
|
|
264
264
|
});
|
|
265
265
|
const y = p(() => Ja(T.value.filter((e, a) => !F.value.includes(e.absoluteIndex))).map((e, a) => ({
|
|
@@ -306,7 +306,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
306
306
|
})), r = d({
|
|
307
307
|
start: 0,
|
|
308
308
|
end: E.value
|
|
309
|
-
}),
|
|
309
|
+
}), D = d({ start: 0, end: E.value }), de = d(null);
|
|
310
310
|
function va() {
|
|
311
311
|
return new Promise((e) => requestAnimationFrame(
|
|
312
312
|
() => requestAnimationFrame(() => e())
|
|
@@ -320,16 +320,16 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
320
320
|
await va(), ml();
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
const da = p(() => l.value.style.chart.zoom.preview.enable && (
|
|
323
|
+
const da = p(() => l.value.style.chart.zoom.preview.enable && (D.value.start !== r.value.start || D.value.end !== r.value.end));
|
|
324
324
|
function yl(e, a) {
|
|
325
|
-
|
|
325
|
+
D.value[e] = a;
|
|
326
326
|
}
|
|
327
327
|
async function ml() {
|
|
328
328
|
if (!ve.value) {
|
|
329
329
|
ve.value = !0;
|
|
330
330
|
try {
|
|
331
331
|
const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, t = Math.max(...T.value.map((i) => i.series.length)), s = e ?? 0, u = a != null ? Math.min(gl(a + 1), t) : t;
|
|
332
|
-
we.value = !0, r.value.start = s, r.value.end = u,
|
|
332
|
+
we.value = !0, r.value.start = s, r.value.end = u, D.value.start = s, D.value.end = u, Ve(), ol.value = !0, await be(), q.value && (q.value.setStartValue(r.value.start), q.value.setEndValue(r.value.end));
|
|
333
333
|
} finally {
|
|
334
334
|
queueMicrotask(() => {
|
|
335
335
|
we.value = !1;
|
|
@@ -338,12 +338,12 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function ha(e) {
|
|
341
|
-
ve.value || we.value || e !== r.value.start && (r.value.start = e,
|
|
341
|
+
ve.value || we.value || e !== r.value.start && (r.value.start = e, D.value.start = e, Ve());
|
|
342
342
|
}
|
|
343
343
|
function fa(e) {
|
|
344
344
|
if (ve.value || we.value) return;
|
|
345
345
|
const a = gl(e);
|
|
346
|
-
a !== r.value.end && (r.value.end = a,
|
|
346
|
+
a !== r.value.end && (r.value.end = a, D.value.end = a, Ve());
|
|
347
347
|
}
|
|
348
348
|
function gl(e) {
|
|
349
349
|
const a = E.value;
|
|
@@ -355,20 +355,20 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
355
355
|
Math.max(...T.value.map((s) => s.series.length))
|
|
356
356
|
);
|
|
357
357
|
let a = Math.max(0, Math.min(r.value.start ?? 0, e - 1)), t = Math.max(a + 1, Math.min(r.value.end ?? e, e));
|
|
358
|
-
(!Number.isFinite(a) || !Number.isFinite(t) || t <= a) && (a = 0, t = e), r.value = { start: a, end: t },
|
|
358
|
+
(!Number.isFinite(a) || !Number.isFinite(t) || t <= a) && (a = 0, t = e), r.value = { start: a, end: t }, D.value.start = a, D.value.end = t, q.value && (q.value.setStartValue(a), q.value.setEndValue(t));
|
|
359
359
|
}
|
|
360
|
-
const ya = p(() => y.value.filter((e) => ["line", "plot", void 0].includes(e.type))),
|
|
360
|
+
const ya = p(() => y.value.filter((e) => ["line", "plot", void 0].includes(e.type))), M = p(() => y.value.filter((e) => e.type === "bar"));
|
|
361
361
|
function Se() {
|
|
362
362
|
if (!w.value || !ae.value) return;
|
|
363
363
|
const e = ae.value.offsetWidth, a = ae.value.offsetHeight;
|
|
364
364
|
w.value.width = e * te.value * 2, w.value.height = a * te.value * 2, m.value = e * te.value * 2, j.value = a * te.value * 2, c.value?.scale(te.value, te.value), G();
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
R(X, async (e) => {
|
|
367
367
|
if (!e) {
|
|
368
368
|
Ae.value = null, ne.value = !1, h.value = null, P.value = null;
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
|
-
await be(), w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })),
|
|
371
|
+
await be(), w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })), O.value = !0, H.value = !0, await he(), Se(), G();
|
|
372
372
|
});
|
|
373
373
|
function ma() {
|
|
374
374
|
if (c.value && (c.value.clearRect(0, 0, 1e4, 1e4), c.value.fillStyle = l.value.style.chart.backgroundColor, c.value.fillRect(0, 0, o.value.canvasWidth, o.value.canvasHeight), !!X.value)) {
|
|
@@ -773,25 +773,25 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
773
773
|
);
|
|
774
774
|
}
|
|
775
775
|
function Aa() {
|
|
776
|
-
|
|
776
|
+
M.value.forEach((e, a) => {
|
|
777
777
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
778
778
|
Ie(
|
|
779
779
|
c.value,
|
|
780
780
|
[
|
|
781
781
|
{
|
|
782
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot /
|
|
782
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot / M.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * M.value.length) * a)),
|
|
783
783
|
y: v.value.stacked ? e.localZero : z.value.zero
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot /
|
|
786
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot / M.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * M.value.length) * a)) + o.value.slot * 0.8 / (v.value.stacked ? 1 : M.value.length),
|
|
787
787
|
y: v.value.stacked ? e.localZero : z.value.zero
|
|
788
788
|
},
|
|
789
789
|
{
|
|
790
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot /
|
|
790
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot / M.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * M.value.length) * a)) + o.value.slot * 0.8 / (v.value.stacked ? 1 : M.value.length),
|
|
791
791
|
y: e.coordinatesLine[t].y
|
|
792
792
|
},
|
|
793
793
|
{
|
|
794
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot /
|
|
794
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot / M.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * M.value.length) * a)),
|
|
795
795
|
y: e.coordinatesLine[t].y
|
|
796
796
|
}
|
|
797
797
|
],
|
|
@@ -826,7 +826,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
826
826
|
}),
|
|
827
827
|
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
828
828
|
),
|
|
829
|
-
o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot /
|
|
829
|
+
o.value.left + o.value.slot * t + o.value.slot / 10 + (v.value.stacked ? 0 : o.value.slot / M.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * M.value.length) * a)) + o.value.slot * 0.4 / (v.value.stacked ? 1 : M.value.length),
|
|
830
830
|
(e.coordinatesLine[t].value < 0 ? v.value.stacked ? e.localZero : z.value.zero : e.coordinatesLine[t].y) + l.value.style.chart.dataLabels.offsetY,
|
|
831
831
|
{
|
|
832
832
|
align: "center",
|
|
@@ -949,8 +949,8 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
949
949
|
);
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
const { left: e, top: a, width: t, height: s } = o.value, u = r.value.start, n = r.value.end - u, f = t / n, x =
|
|
952
|
+
function Da() {
|
|
953
|
+
const { left: e, top: a, width: t, height: s } = o.value, u = r.value.start, n = r.value.end - u, f = t / n, x = D.value.start - u, $ = D.value.end - u, L = Math.max(0, Math.min(n, x)), N = Math.max(0, Math.min(n, $));
|
|
954
954
|
Ie(
|
|
955
955
|
c.value,
|
|
956
956
|
[
|
|
@@ -968,7 +968,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
968
968
|
);
|
|
969
969
|
}
|
|
970
970
|
function G() {
|
|
971
|
-
!X.value || !w.value || !c.value || (ma(),
|
|
971
|
+
!X.value || !w.value || !c.value || (ma(), O.value ? ((h.value !== null || A.value !== null) && l.value.style.chart.selector.show && xl(), Aa(), v.value.stacked && l.value.style.chart.grid.x.showAxis && Fa(), ya.value.forEach((e) => {
|
|
972
972
|
(e.type === "line" || !e.type) && Sa(e), H.value && (ga(e), v.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && xa(e));
|
|
973
973
|
}), w.value && (Ae.value = ot(w.value))) : (Ae.value && (c.value.clearRect(0, 0, 1e4, 1e4), c.value.drawImage(Ae.value, 0, 0)), (h.value !== null || A.value !== null) && l.value.style.chart.selector.show && xl(), (h.value !== null || A.value !== null) && y.value.forEach((e) => {
|
|
974
974
|
const a = h.value ?? A.value, t = e.coordinatesLine[a];
|
|
@@ -981,7 +981,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
981
981
|
fillStyle: e.color
|
|
982
982
|
}
|
|
983
983
|
);
|
|
984
|
-
})), l.value.style.chart.grid.x.timeLabels.show && La(), l.value.style.chart.selector.show && l.value.style.chart.selector.showHorizontalSelector && ka(), ba(), pa(), l.value.style.chart.zoom.preview.enable && (r.value.start !==
|
|
984
|
+
})), l.value.style.chart.grid.x.timeLabels.show && La(), l.value.style.chart.selector.show && l.value.style.chart.selector.showHorizontalSelector && ka(), ba(), pa(), l.value.style.chart.zoom.preview.enable && (r.value.start !== D.value.start || r.value.end !== D.value.end) && Da(), O.value = !1);
|
|
985
985
|
}
|
|
986
986
|
const Fe = rt(() => {
|
|
987
987
|
H.value = !0, Se();
|
|
@@ -991,7 +991,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
991
991
|
const { y: a, value: t } = e.coordinatesLine[h.value ?? A.value];
|
|
992
992
|
return { y: a, value: t };
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function Ma(e) {
|
|
995
995
|
if (!X.value || !w.value) return;
|
|
996
996
|
const { left: a, top: t } = w.value.getBoundingClientRect(), s = e.clientX - a;
|
|
997
997
|
if (P.value = (e.clientY - t) * 2, (P.value < o.value.top || P.value > o.value.bottom) && (P.value = null), s * 2 < o.value.left || s * 2 > o.value.right) {
|
|
@@ -1028,27 +1028,27 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1028
1028
|
indexLabel: ""
|
|
1029
1029
|
});
|
|
1030
1030
|
}
|
|
1031
|
-
|
|
1031
|
+
R(() => g.selectedXIndex, (e) => {
|
|
1032
1032
|
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
1033
1033
|
h.value = null;
|
|
1034
1034
|
return;
|
|
1035
1035
|
}
|
|
1036
1036
|
const a = e - r.value.start;
|
|
1037
1037
|
a < 0 || e >= r.value.end ? h.value = null : h.value = a ?? null;
|
|
1038
|
-
}, { immediate: !0 }),
|
|
1038
|
+
}, { immediate: !0 }), R(() => h.value, (e) => {
|
|
1039
1039
|
Fe();
|
|
1040
|
-
}),
|
|
1041
|
-
|
|
1040
|
+
}), R(() => r.value, (e) => {
|
|
1041
|
+
O.value = !0, G();
|
|
1042
1042
|
}, {
|
|
1043
1043
|
deep: !0
|
|
1044
|
-
}),
|
|
1044
|
+
}), R(() => D.value, (e) => {
|
|
1045
1045
|
G();
|
|
1046
|
-
}, { deep: !0 }),
|
|
1047
|
-
|
|
1048
|
-
}),
|
|
1046
|
+
}, { deep: !0 }), R(() => v.value.showDataLabels, (e) => {
|
|
1047
|
+
O.value = !0, G();
|
|
1048
|
+
}), R(() => P.value, (e) => {
|
|
1049
1049
|
e && G();
|
|
1050
|
-
}),
|
|
1051
|
-
|
|
1050
|
+
}), R(() => v.value.stacked, (e) => {
|
|
1051
|
+
O.value = !0, H.value = !0, Fe();
|
|
1052
1052
|
});
|
|
1053
1053
|
function Ta() {
|
|
1054
1054
|
ne.value = !1, h.value = null, ke.value = "", P.value = null, G();
|
|
@@ -1058,8 +1058,8 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1058
1058
|
tl.value = !0, Ll();
|
|
1059
1059
|
});
|
|
1060
1060
|
function Ll() {
|
|
1061
|
-
if (
|
|
1062
|
-
w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })), c.value && X.value && (
|
|
1061
|
+
if (Ka(g.dataset) && ta.value && Qa({ componentName: "VueUiXyCanvas", type: "dataset" }), be(() => {
|
|
1062
|
+
w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })), c.value && X.value && (O.value = !0, H.value = !0, Se());
|
|
1063
1063
|
}), l.value.responsive) {
|
|
1064
1064
|
const e = st(() => {
|
|
1065
1065
|
const { width: a, height: t } = ut({
|
|
@@ -1077,14 +1077,14 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1077
1077
|
}
|
|
1078
1078
|
re.value && re.value.disconnect(), re.value = new ResizeObserver((e) => {
|
|
1079
1079
|
for (const a of e)
|
|
1080
|
-
a.contentBoxSize && ae.value && (
|
|
1080
|
+
a.contentBoxSize && ae.value && (O.value = !0, Fe());
|
|
1081
1081
|
}), re.value.observe(ae.value), he();
|
|
1082
1082
|
}
|
|
1083
1083
|
Tl(() => {
|
|
1084
1084
|
re.value && re.value.disconnect(), Z.value && (oe.value && Z.value.unobserve(oe.value), Z.value.disconnect());
|
|
1085
1085
|
});
|
|
1086
|
-
function
|
|
1087
|
-
Ne("selectLegend", y.value.find((a) => a.absoluteIndex === e)), F.value.includes(e) ? F.value = F.value.filter((a) => a !== e) : F.value.push(e),
|
|
1086
|
+
function De(e) {
|
|
1087
|
+
Ne("selectLegend", y.value.find((a) => a.absoluteIndex === e)), F.value.includes(e) ? F.value = F.value.filter((a) => a !== e) : F.value.push(e), O.value = !0, Fe();
|
|
1088
1088
|
}
|
|
1089
1089
|
function kl(e) {
|
|
1090
1090
|
if (!T.value.length)
|
|
@@ -1094,16 +1094,16 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1094
1094
|
}
|
|
1095
1095
|
function Ia(e) {
|
|
1096
1096
|
const a = kl(e);
|
|
1097
|
-
a !== null && F.value.includes(a.absoluteIndex) &&
|
|
1097
|
+
a !== null && F.value.includes(a.absoluteIndex) && De(a.absoluteIndex);
|
|
1098
1098
|
}
|
|
1099
1099
|
function Ea(e) {
|
|
1100
1100
|
const a = kl(e);
|
|
1101
|
-
a !== null && (F.value.includes(a.absoluteIndex) ||
|
|
1101
|
+
a !== null && (F.value.includes(a.absoluteIndex) || De(a.absoluteIndex));
|
|
1102
1102
|
}
|
|
1103
1103
|
const Al = p(() => T.value.map((e, a) => ({
|
|
1104
1104
|
...e,
|
|
1105
1105
|
name: e.name,
|
|
1106
|
-
color:
|
|
1106
|
+
color: Ol(e.color) || hl.value[a] || le[a] || le[a % le.length],
|
|
1107
1107
|
shape: e.shape || "circle",
|
|
1108
1108
|
prefix: e.prefix || "",
|
|
1109
1109
|
suffix: e.suffix || "",
|
|
@@ -1111,16 +1111,16 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1111
1111
|
})).map((e) => ({
|
|
1112
1112
|
...e,
|
|
1113
1113
|
opacity: F.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
1114
|
-
segregate: () =>
|
|
1114
|
+
segregate: () => De(e.absoluteIndex),
|
|
1115
1115
|
isSegregated: F.value.includes(e.absoluteIndex)
|
|
1116
|
-
}))),
|
|
1116
|
+
}))), Ra = p(() => ({
|
|
1117
1117
|
cy: "donut-div-legend",
|
|
1118
1118
|
backgroundColor: l.value.style.chart.legend.backgroundColor,
|
|
1119
1119
|
color: l.value.style.chart.legend.color,
|
|
1120
1120
|
fontSize: l.value.style.chart.legend.fontSize,
|
|
1121
1121
|
paddingBottom: 12,
|
|
1122
1122
|
fontWeight: l.value.style.chart.legend.bold ? "bold" : ""
|
|
1123
|
-
})),
|
|
1123
|
+
})), Me = p(() => {
|
|
1124
1124
|
const e = [""].concat(y.value.map((u) => u.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>');
|
|
1125
1125
|
let a = [];
|
|
1126
1126
|
for (let u = 0; u < E.value; u += 1) {
|
|
@@ -1160,7 +1160,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1160
1160
|
const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], t = ["", ...wl.value.head.map((n) => n.label)], s = wl.value.body, u = a.concat([t]).concat(s), i = lt(u);
|
|
1161
1161
|
e ? e(i) : at({ csvContent: i, title: l.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Oa() {
|
|
1164
1164
|
return y.value;
|
|
1165
1165
|
}
|
|
1166
1166
|
function zl() {
|
|
@@ -1172,7 +1172,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1172
1172
|
function Fl() {
|
|
1173
1173
|
v.value.stacked = !v.value.stacked;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Dl() {
|
|
1176
1176
|
v.value.showTooltip = !v.value.showTooltip;
|
|
1177
1177
|
}
|
|
1178
1178
|
const $e = d(!1);
|
|
@@ -1194,7 +1194,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1194
1194
|
const ye = p(() => {
|
|
1195
1195
|
const e = l.value.table.useDialog && !l.value.table.show, a = v.value.showTable;
|
|
1196
1196
|
return {
|
|
1197
|
-
component: e ?
|
|
1197
|
+
component: e ? Kl : Lt,
|
|
1198
1198
|
title: `${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text ? `: ${l.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1199
1199
|
props: e ? {
|
|
1200
1200
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
@@ -1221,14 +1221,14 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
1223
|
});
|
|
1224
|
-
|
|
1224
|
+
R(() => v.value.showTable, (e) => {
|
|
1225
1225
|
l.value.table.show || (e && l.value.table.useDialog && ce.value ? ce.value.open() : "close" in ce.value && ce.value.close());
|
|
1226
1226
|
});
|
|
1227
|
-
function
|
|
1227
|
+
function Ml() {
|
|
1228
1228
|
v.value.showTable = !1, Be.value && Be.value.setTableIconState(!1);
|
|
1229
1229
|
}
|
|
1230
1230
|
return Yl({
|
|
1231
|
-
getData:
|
|
1231
|
+
getData: Oa,
|
|
1232
1232
|
getImage: Pa,
|
|
1233
1233
|
generateCsv: We,
|
|
1234
1234
|
generatePdf: cl,
|
|
@@ -1238,14 +1238,14 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1238
1238
|
toggleTable: zl,
|
|
1239
1239
|
toggleLabels: Sl,
|
|
1240
1240
|
toggleStack: Fl,
|
|
1241
|
-
toggleTooltip:
|
|
1241
|
+
toggleTooltip: Dl,
|
|
1242
1242
|
toggleAnnotator: Ye,
|
|
1243
1243
|
toggleFullscreen: dl
|
|
1244
1244
|
}), (e, a) => (I(), Te("div", {
|
|
1245
1245
|
style: xe(`width:100%; position:relative; ${l.value.responsive ? "height: 100%" : ""}; background:${l.value.style.chart.backgroundColor};`),
|
|
1246
1246
|
ref_key: "xy",
|
|
1247
1247
|
ref: _,
|
|
1248
|
-
id: `xy_canvas_${
|
|
1248
|
+
id: `xy_canvas_${K.value}`,
|
|
1249
1249
|
class: Ha(`vue-data-ui-component vue-ui-xy-canvas ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1250
1250
|
onMouseenter: oa,
|
|
1251
1251
|
onMouseleave: ra
|
|
@@ -1257,7 +1257,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1257
1257
|
style: xe(`width:100%;background:${l.value.style.chart.backgroundColor};`)
|
|
1258
1258
|
}, [
|
|
1259
1259
|
(I(), W(xt, {
|
|
1260
|
-
key: `title_${
|
|
1260
|
+
key: `title_${Re.value}`,
|
|
1261
1261
|
config: {
|
|
1262
1262
|
title: {
|
|
1263
1263
|
cy: "xy-canvas-title",
|
|
@@ -1271,17 +1271,17 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1271
1271
|
}, null, 8, ["config"]))
|
|
1272
1272
|
], 4)) : V("", !0),
|
|
1273
1273
|
J("div", {
|
|
1274
|
-
id: `legend-top-${
|
|
1274
|
+
id: `legend-top-${K.value}`
|
|
1275
1275
|
}, null, 8, zt),
|
|
1276
1276
|
l.value.userOptions.show && X.value && (C(sl) || C(Xe)) ? (I(), W(C(Zl), {
|
|
1277
1277
|
ref_key: "userOptionsRef",
|
|
1278
1278
|
ref: Be,
|
|
1279
|
-
key: `user_option_${
|
|
1279
|
+
key: `user_option_${Qe.value}`,
|
|
1280
1280
|
backgroundColor: l.value.style.chart.backgroundColor,
|
|
1281
1281
|
color: l.value.style.chart.color,
|
|
1282
1282
|
isPrinting: C(nl),
|
|
1283
1283
|
isImaging: C(il),
|
|
1284
|
-
uid:
|
|
1284
|
+
uid: K.value,
|
|
1285
1285
|
hasTooltip: l.value.userOptions.buttons.tooltip && l.value.style.chart.tooltip.show,
|
|
1286
1286
|
hasPdf: l.value.userOptions.buttons.pdf,
|
|
1287
1287
|
hasImg: l.value.userOptions.buttons.img,
|
|
@@ -1308,7 +1308,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1308
1308
|
onToggleTable: zl,
|
|
1309
1309
|
onToggleLabels: Sl,
|
|
1310
1310
|
onToggleStack: Fl,
|
|
1311
|
-
onToggleTooltip:
|
|
1311
|
+
onToggleTooltip: Dl,
|
|
1312
1312
|
onToggleAnnotator: Ye,
|
|
1313
1313
|
style: xe({
|
|
1314
1314
|
visibility: C(sl) ? C(Xe) ? "visible" : "hidden" : "visible"
|
|
@@ -1317,7 +1317,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1317
1317
|
e.$slots.menuIcon ? {
|
|
1318
1318
|
name: "menuIcon",
|
|
1319
1319
|
fn: b(({ isOpen: t, color: s }) => [
|
|
1320
|
-
S(e.$slots, "menuIcon",
|
|
1320
|
+
S(e.$slots, "menuIcon", Q(ee({ isOpen: t, color: s })), void 0, !0)
|
|
1321
1321
|
]),
|
|
1322
1322
|
key: "0"
|
|
1323
1323
|
} : void 0,
|
|
@@ -1373,14 +1373,14 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1373
1373
|
e.$slots.optionFullscreen ? {
|
|
1374
1374
|
name: "optionFullscreen",
|
|
1375
1375
|
fn: b(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
1376
|
-
S(e.$slots, "optionFullscreen",
|
|
1376
|
+
S(e.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
1377
1377
|
]),
|
|
1378
1378
|
key: "8"
|
|
1379
1379
|
} : void 0,
|
|
1380
1380
|
e.$slots.optionAnnotator ? {
|
|
1381
1381
|
name: "optionAnnotator",
|
|
1382
1382
|
fn: b(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
1383
|
-
S(e.$slots, "optionAnnotator",
|
|
1383
|
+
S(e.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
1384
1384
|
]),
|
|
1385
1385
|
key: "9"
|
|
1386
1386
|
} : void 0
|
|
@@ -1395,7 +1395,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1395
1395
|
ref_key: "canvas",
|
|
1396
1396
|
ref: w,
|
|
1397
1397
|
style: { width: "100%", height: "100%" },
|
|
1398
|
-
onMousemove: a[0] || (a[0] = (t) =>
|
|
1398
|
+
onMousemove: a[0] || (a[0] = (t) => Ma(t)),
|
|
1399
1399
|
onMouseleave: Ta
|
|
1400
1400
|
}, null, 544),
|
|
1401
1401
|
C(_e) ? (I(), W(ct, { key: 0 })) : V("", !0),
|
|
@@ -1420,10 +1420,10 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1420
1420
|
smoothSnapThreshold: l.value.style.chart.tooltip.smoothSnapThreshold
|
|
1421
1421
|
}, {
|
|
1422
1422
|
"tooltip-before": b(() => [
|
|
1423
|
-
S(e.$slots, "tooltip-before",
|
|
1423
|
+
S(e.$slots, "tooltip-before", Q(ee({ ...Ke.value })), void 0, !0)
|
|
1424
1424
|
]),
|
|
1425
1425
|
"tooltip-after": b(() => [
|
|
1426
|
-
S(e.$slots, "tooltip-after",
|
|
1426
|
+
S(e.$slots, "tooltip-after", Q(ee({ ...Ke.value })), void 0, !0)
|
|
1427
1427
|
]),
|
|
1428
1428
|
_: 3
|
|
1429
1429
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"])
|
|
@@ -1482,16 +1482,16 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1482
1482
|
"onUpdate:start": ha
|
|
1483
1483
|
}, {
|
|
1484
1484
|
"reset-action": b(({ reset: t }) => [
|
|
1485
|
-
S(e.$slots, "reset-action",
|
|
1485
|
+
S(e.$slots, "reset-action", Q(ee({ reset: t })), void 0, !0)
|
|
1486
1486
|
]),
|
|
1487
1487
|
_: 3
|
|
1488
1488
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "timeLabels", "usePreciseLabels", "textColor", "useResetSlot", "valueEnd", "valueStart", "verticalHandles"])) : V("", !0),
|
|
1489
1489
|
J("div", {
|
|
1490
|
-
id: `legend-bottom-${
|
|
1490
|
+
id: `legend-bottom-${K.value}`
|
|
1491
1491
|
}, null, 8, St),
|
|
1492
1492
|
tl.value ? (I(), W(Xa, {
|
|
1493
1493
|
key: 3,
|
|
1494
|
-
to: l.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1494
|
+
to: l.value.style.chart.legend.position === "top" ? `#legend-top-${K.value}` : `#legend-bottom-${K.value}`
|
|
1495
1495
|
}, [
|
|
1496
1496
|
J("div", {
|
|
1497
1497
|
ref_key: "chartLegend",
|
|
@@ -1499,9 +1499,9 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1499
1499
|
}, [
|
|
1500
1500
|
l.value.style.chart.legend.show && X.value ? (I(), W(bt, {
|
|
1501
1501
|
legendSet: Al.value,
|
|
1502
|
-
config:
|
|
1502
|
+
config: Ra.value,
|
|
1503
1503
|
key: `legend_${Pe.value}`,
|
|
1504
|
-
onClickMarker: a[3] || (a[3] = ({ i: t }) =>
|
|
1504
|
+
onClickMarker: a[3] || (a[3] = ({ i: t }) => De(t))
|
|
1505
1505
|
}, {
|
|
1506
1506
|
item: b(({ legend: t, index: s }) => [
|
|
1507
1507
|
J("div", {
|
|
@@ -1516,8 +1516,8 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1516
1516
|
}, void 0, !0)
|
|
1517
1517
|
], 512)
|
|
1518
1518
|
], 8, ["to"])) : V("", !0),
|
|
1519
|
-
e.$slots.watermark ? (I(), Te("div",
|
|
1520
|
-
S(e.$slots, "watermark",
|
|
1519
|
+
e.$slots.watermark ? (I(), Te("div", Dt, [
|
|
1520
|
+
S(e.$slots, "watermark", Q(ee({ isPrinting: C(nl) || C(il) })), void 0, !0)
|
|
1521
1521
|
])) : V("", !0),
|
|
1522
1522
|
e.$slots.source ? (I(), Te("div", {
|
|
1523
1523
|
key: 5,
|
|
@@ -1530,24 +1530,24 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1530
1530
|
X.value && l.value.userOptions.buttons.table ? (I(), W(Ua(ye.value.component), Va({ key: 6 }, ye.value.props, {
|
|
1531
1531
|
ref_key: "tableUnit",
|
|
1532
1532
|
ref: ce,
|
|
1533
|
-
onClose:
|
|
1533
|
+
onClose: Ml
|
|
1534
1534
|
}), Il({
|
|
1535
1535
|
content: b(() => [
|
|
1536
1536
|
(I(), W(C(Gl), {
|
|
1537
|
-
key: `table_${
|
|
1538
|
-
colNames:
|
|
1539
|
-
head:
|
|
1540
|
-
body:
|
|
1541
|
-
config:
|
|
1537
|
+
key: `table_${Oe.value}`,
|
|
1538
|
+
colNames: Me.value.colNames,
|
|
1539
|
+
head: Me.value.head,
|
|
1540
|
+
body: Me.value.body,
|
|
1541
|
+
config: Me.value.config,
|
|
1542
1542
|
title: l.value.table.useDialog ? "" : ye.value.title,
|
|
1543
1543
|
withCloseButton: !l.value.table.useDialog,
|
|
1544
|
-
onClose:
|
|
1544
|
+
onClose: Ml
|
|
1545
1545
|
}, {
|
|
1546
1546
|
th: b(({ th: t }) => [
|
|
1547
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1547
|
+
J("div", { innerHTML: t }, null, 8, Mt)
|
|
1548
1548
|
]),
|
|
1549
1549
|
td: b(({ td: t }) => [
|
|
1550
|
-
|
|
1550
|
+
Rl(qe(t), 1)
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 1
|
|
1553
1553
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1557,7 +1557,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1557
1557
|
l.value.table.useDialog ? {
|
|
1558
1558
|
name: "title",
|
|
1559
1559
|
fn: b(() => [
|
|
1560
|
-
|
|
1560
|
+
Rl(qe(ye.value.title), 1)
|
|
1561
1561
|
]),
|
|
1562
1562
|
key: "0"
|
|
1563
1563
|
} : void 0,
|
package/package.json
CHANGED