vue-data-ui 3.7.15 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.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 +5 -0
- 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-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-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -1,41 +1,41 @@
|
|
|
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
|
|
1
|
+
import { defineAsyncComponent as pe, ref as d, computed as p, useSlots as Na, onMounted as $l, toRefs as _a, watch as O, 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 K, guardReactiveProps as ee, createVNode as El, Teleport as Xa, toDisplayString as qe, resolveDynamicComponent as Ua, mergeProps as Va, createTextVNode as Ol } from "vue";
|
|
2
|
+
import { c as Wa, t as Ya, i as ja, p as le, a0 as Ce, j as qa, M as Ge, a as se, d as ue, l as Rl, Q as Ga, aa as Za, S as Ja, o as Qa, g as Ka, x as Pl, s as Le, n as et, u as lt, q as at, Z as tt } from "./lib-qMPkcvmh.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-DOOBu_sL.js";
|
|
5
5
|
import { u as it, B as ct } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as vt } from "./usePrinter-
|
|
6
|
+
import { u as vt } from "./usePrinter-CjGh4mFJ.js";
|
|
7
7
|
import { u as dt, a as ht, l as ft } from "./useTimeLabels-C5qMhpbe.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-CwrkWkkl.js";
|
|
12
|
+
import bt from "./Legend-Djkw4FGq.js";
|
|
13
|
+
import xt from "./Title-CgkWUXeV.js";
|
|
14
|
+
import Ct from "./BaseIcon-CALhpING.js";
|
|
15
|
+
import Lt from "./vue-ui-accordion-BWfQ8Imt.js";
|
|
16
|
+
import { S as kt } from "./SlicerPreview-Bk-h_ANq.js";
|
|
17
17
|
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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" } } },
|
|
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: {},
|
|
20
20
|
dark: Nl,
|
|
21
21
|
celebration: _l,
|
|
22
22
|
celebrationNight: Hl,
|
|
23
23
|
hack: Xl,
|
|
24
24
|
zen: Ul,
|
|
25
|
-
concrete:
|
|
25
|
+
concrete: Vl
|
|
26
26
|
}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
27
|
__proto__: null,
|
|
28
28
|
celebration: _l,
|
|
29
29
|
celebrationNight: Hl,
|
|
30
|
-
concrete:
|
|
30
|
+
concrete: Vl,
|
|
31
31
|
dark: Nl,
|
|
32
|
-
default:
|
|
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"], Mt = {
|
|
36
36
|
key: 4,
|
|
37
37
|
class: "vue-data-ui-watermark"
|
|
38
|
-
},
|
|
38
|
+
}, Dt = ["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-OHx7yHlS.js")), Gl = pe(() => import("./DataTable-Ca1twcf7.js")), Zl = pe(() => import("./UserOptions-ChRXLqps.js")), Jl = pe(() => import("./NonSvgPenAndPaper-DCQPVA4M.js")), Ql = pe(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_xy_canvas: Kl } = nt(), { isThemeValid: ea, warnInvalidTheme: la } = yt(), g = Je, Q = d(Wa()), _ = d(null), ae = d(null), c = d(null), m = d(1), j = d(1), ne = d(!1), h = d(null), ke = d(""), Qe = d(null), F = d([]), te = d(1), R = d(!0), H = d(!0), Ae = d(null), Ke = d(0), ie = d(!1), el = d(null), ll = d(null), q = d(null), al = d(null), Oe = d(0), Re = 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: Kl
|
|
133
133
|
});
|
|
134
134
|
let a = {};
|
|
135
135
|
const t = e.theme;
|
|
@@ -138,7 +138,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
138
138
|
la(e), a = e;
|
|
139
139
|
else {
|
|
140
140
|
const s = Ee({
|
|
141
|
-
userConfig:
|
|
141
|
+
userConfig: Wl[t] || g.config,
|
|
142
142
|
defaultConfig: e
|
|
143
143
|
});
|
|
144
144
|
a = {
|
|
@@ -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
|
+
O(() => g.config, (e) => {
|
|
160
|
+
_e.value || (l.value = Ue()), Xe.value = !l.value.userOptions.showOnChartHover, Ll(), Oe.value += 1, Re.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 }), O(() => 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 })), R.value = !0, H.value = !0, await he(), Se(), Oe.value += 1, Re.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_${Q.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, Ke.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: Rl(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
|
+
O(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
|
+
}), M = 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 && (M.value.start !== r.value.start || M.value.end !== r.value.end));
|
|
324
324
|
function yl(e, a) {
|
|
325
|
-
|
|
325
|
+
M.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, M.value.start = s, M.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,37 +338,37 @@ 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, M.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, M.value.end = a, Ve());
|
|
347
347
|
}
|
|
348
348
|
function gl(e) {
|
|
349
349
|
const a = E.value;
|
|
350
350
|
return e > a ? a : e < 0 || e < r.value.start ? l.value.style.chart.zoom.startIndex !== null ? l.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ve() {
|
|
353
353
|
const e = Math.max(
|
|
354
354
|
1,
|
|
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 }, M.value.start = a, M.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))), D = 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
|
+
O(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 })), R.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
|
+
D.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 / D.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * D.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 / D.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * D.value.length) * a)) + o.value.slot * 0.8 / (v.value.stacked ? 1 : D.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 / D.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * D.value.length) * a)) + o.value.slot * 0.8 / (v.value.stacked ? 1 : D.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 / D.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * D.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 / D.value.length * a - (a === 0 ? 0 : o.value.slot / (5 * D.value.length) * a)) + o.value.slot * 0.4 / (v.value.stacked ? 1 : D.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 Ma() {
|
|
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 = M.value.start - u, $ = M.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(), R.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 !== M.value.start || r.value.end !== M.value.end) && Ma(), R.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 Da(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
|
+
O(() => 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 }), O(() => h.value, (e) => {
|
|
1039
1039
|
Fe();
|
|
1040
|
-
}),
|
|
1041
|
-
|
|
1040
|
+
}), O(() => r.value, (e) => {
|
|
1041
|
+
R.value = !0, G();
|
|
1042
1042
|
}, {
|
|
1043
1043
|
deep: !0
|
|
1044
|
-
}),
|
|
1044
|
+
}), O(() => M.value, (e) => {
|
|
1045
1045
|
G();
|
|
1046
|
-
}, { deep: !0 }),
|
|
1047
|
-
|
|
1048
|
-
}),
|
|
1046
|
+
}, { deep: !0 }), O(() => v.value.showDataLabels, (e) => {
|
|
1047
|
+
R.value = !0, G();
|
|
1048
|
+
}), O(() => P.value, (e) => {
|
|
1049
1049
|
e && G();
|
|
1050
|
-
}),
|
|
1051
|
-
|
|
1050
|
+
}), O(() => v.value.stacked, (e) => {
|
|
1051
|
+
R.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 (Qa(g.dataset) && ta.value && Ka({ componentName: "VueUiXyCanvas", type: "dataset" }), be(() => {
|
|
1062
|
+
w.value && !c.value && (c.value = w.value.getContext("2d", { willReadFrequently: !0 })), c.value && X.value && (R.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 && (R.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 Me(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), R.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) && Me(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) || Me(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: Rl(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: () => Me(e.absoluteIndex),
|
|
1115
1115
|
isSegregated: F.value.includes(e.absoluteIndex)
|
|
1116
|
-
}))),
|
|
1116
|
+
}))), Oa = 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
|
+
})), De = 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) {
|
|
@@ -1156,11 +1156,11 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1156
1156
|
}
|
|
1157
1157
|
return { head: e, body: a };
|
|
1158
1158
|
});
|
|
1159
|
-
function
|
|
1159
|
+
function We(e = null) {
|
|
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 Ra() {
|
|
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 Ml() {
|
|
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 ? Ql : 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,16 +1221,16 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
1223
|
});
|
|
1224
|
-
|
|
1224
|
+
O(() => 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 Dl() {
|
|
1228
1228
|
v.value.showTable = !1, Be.value && Be.value.setTableIconState(!1);
|
|
1229
1229
|
}
|
|
1230
1230
|
return Yl({
|
|
1231
|
-
getData:
|
|
1231
|
+
getData: Ra,
|
|
1232
1232
|
getImage: Pa,
|
|
1233
|
-
generateCsv:
|
|
1233
|
+
generateCsv: We,
|
|
1234
1234
|
generatePdf: cl,
|
|
1235
1235
|
generateImage: vl,
|
|
1236
1236
|
hideSeries: Ea,
|
|
@@ -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: Ml,
|
|
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_${Q.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
|
|
@@ -1256,8 +1256,8 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1256
1256
|
ref: el,
|
|
1257
1257
|
style: xe(`width:100%;background:${l.value.style.chart.backgroundColor};`)
|
|
1258
1258
|
}, [
|
|
1259
|
-
(I(),
|
|
1260
|
-
key: `title_${
|
|
1259
|
+
(I(), W(xt, {
|
|
1260
|
+
key: `title_${Oe.value}`,
|
|
1261
1261
|
config: {
|
|
1262
1262
|
title: {
|
|
1263
1263
|
cy: "xy-canvas-title",
|
|
@@ -1269,19 +1269,19 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
}, null, 8, ["config"]))
|
|
1272
|
-
], 4)) :
|
|
1272
|
+
], 4)) : V("", !0),
|
|
1273
1273
|
J("div", {
|
|
1274
|
-
id: `legend-top-${
|
|
1274
|
+
id: `legend-top-${Q.value}`
|
|
1275
1275
|
}, null, 8, zt),
|
|
1276
|
-
l.value.userOptions.show && X.value && (C(sl) || C(Xe)) ? (I(),
|
|
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_${Ke.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: Q.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,
|
|
@@ -1303,12 +1303,12 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1303
1303
|
tableDialog: l.value.table.useDialog,
|
|
1304
1304
|
onToggleFullscreen: dl,
|
|
1305
1305
|
onGeneratePdf: C(cl),
|
|
1306
|
-
onGenerateCsv:
|
|
1306
|
+
onGenerateCsv: We,
|
|
1307
1307
|
onGenerateImage: C(vl),
|
|
1308
1308
|
onToggleTable: zl,
|
|
1309
1309
|
onToggleLabels: Sl,
|
|
1310
1310
|
onToggleStack: Fl,
|
|
1311
|
-
onToggleTooltip:
|
|
1311
|
+
onToggleTooltip: Ml,
|
|
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", K(ee({ isOpen: t, color: s })), void 0, !0)
|
|
1321
1321
|
]),
|
|
1322
1322
|
key: "0"
|
|
1323
1323
|
} : void 0,
|
|
@@ -1373,18 +1373,18 @@ 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", K(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", K(ee({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
1384
1384
|
]),
|
|
1385
1385
|
key: "9"
|
|
1386
1386
|
} : void 0
|
|
1387
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
1387
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : V("", !0),
|
|
1388
1388
|
J("div", {
|
|
1389
1389
|
class: "vue-ui-xy-canvas",
|
|
1390
1390
|
style: xe(`position: relative; aspect-ratio: ${ul.value}`),
|
|
@@ -1395,10 +1395,10 @@ 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) => Da(t)),
|
|
1399
1399
|
onMouseleave: Ta
|
|
1400
1400
|
}, null, 544),
|
|
1401
|
-
C(_e) ? (I(),
|
|
1401
|
+
C(_e) ? (I(), W(ct, { key: 0 })) : V("", !0),
|
|
1402
1402
|
El(C(ql), {
|
|
1403
1403
|
show: v.value.showTooltip && ne.value,
|
|
1404
1404
|
backgroundColor: l.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1420,15 +1420,15 @@ 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", K(ee({ ...Qe.value })), void 0, !0)
|
|
1424
1424
|
]),
|
|
1425
1425
|
"tooltip-after": b(() => [
|
|
1426
|
-
S(e.$slots, "tooltip-after",
|
|
1426
|
+
S(e.$slots, "tooltip-after", K(ee({ ...Qe.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"])
|
|
1430
1430
|
], 4),
|
|
1431
|
-
l.value.style.chart.zoom.show && E.value > 6 && X.value && ol.value && !C(_e) ? (I(),
|
|
1431
|
+
l.value.style.chart.zoom.show && E.value > 6 && X.value && ol.value && !C(_e) ? (I(), W(kt, {
|
|
1432
1432
|
key: 2,
|
|
1433
1433
|
ref_key: "chartSlicer",
|
|
1434
1434
|
ref: q,
|
|
@@ -1482,26 +1482,26 @@ 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", K(ee({ reset: t })), void 0, !0)
|
|
1486
1486
|
]),
|
|
1487
1487
|
_: 3
|
|
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"])) :
|
|
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-${Q.value}`
|
|
1491
1491
|
}, null, 8, St),
|
|
1492
|
-
tl.value ? (I(),
|
|
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-${Q.value}` : `#legend-bottom-${Q.value}`
|
|
1495
1495
|
}, [
|
|
1496
1496
|
J("div", {
|
|
1497
1497
|
ref_key: "chartLegend",
|
|
1498
1498
|
ref: ll
|
|
1499
1499
|
}, [
|
|
1500
|
-
l.value.style.chart.legend.show && X.value ? (I(),
|
|
1500
|
+
l.value.style.chart.legend.show && X.value ? (I(), W(bt, {
|
|
1501
1501
|
legendSet: Al.value,
|
|
1502
|
-
config:
|
|
1502
|
+
config: Oa.value,
|
|
1503
1503
|
key: `legend_${Pe.value}`,
|
|
1504
|
-
onClickMarker: a[3] || (a[3] = ({ i: t }) =>
|
|
1504
|
+
onClickMarker: a[3] || (a[3] = ({ i: t }) => Me(t))
|
|
1505
1505
|
}, {
|
|
1506
1506
|
item: b(({ legend: t, index: s }) => [
|
|
1507
1507
|
J("div", {
|
|
@@ -1515,10 +1515,10 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1515
1515
|
legend: Al.value
|
|
1516
1516
|
}, void 0, !0)
|
|
1517
1517
|
], 512)
|
|
1518
|
-
], 8, ["to"])) :
|
|
1519
|
-
e.$slots.watermark ? (I(), Te("div",
|
|
1520
|
-
S(e.$slots, "watermark",
|
|
1521
|
-
])) :
|
|
1518
|
+
], 8, ["to"])) : V("", !0),
|
|
1519
|
+
e.$slots.watermark ? (I(), Te("div", Mt, [
|
|
1520
|
+
S(e.$slots, "watermark", K(ee({ isPrinting: C(nl) || C(il) })), void 0, !0)
|
|
1521
|
+
])) : V("", !0),
|
|
1522
1522
|
e.$slots.source ? (I(), Te("div", {
|
|
1523
1523
|
key: 5,
|
|
1524
1524
|
ref_key: "source",
|
|
@@ -1526,28 +1526,28 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1526
1526
|
dir: "auto"
|
|
1527
1527
|
}, [
|
|
1528
1528
|
S(e.$slots, "source", {}, void 0, !0)
|
|
1529
|
-
], 512)) :
|
|
1530
|
-
X.value && l.value.userOptions.buttons.table ? (I(),
|
|
1529
|
+
], 512)) : V("", !0),
|
|
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: Dl
|
|
1534
1534
|
}), Il({
|
|
1535
1535
|
content: b(() => [
|
|
1536
|
-
(I(),
|
|
1537
|
-
key: `table_${
|
|
1538
|
-
colNames:
|
|
1539
|
-
head:
|
|
1540
|
-
body:
|
|
1541
|
-
config:
|
|
1536
|
+
(I(), W(C(Gl), {
|
|
1537
|
+
key: `table_${Re.value}`,
|
|
1538
|
+
colNames: De.value.colNames,
|
|
1539
|
+
head: De.value.head,
|
|
1540
|
+
body: De.value.body,
|
|
1541
|
+
config: De.value.config,
|
|
1542
1542
|
title: l.value.table.useDialog ? "" : ye.value.title,
|
|
1543
1543
|
withCloseButton: !l.value.table.useDialog,
|
|
1544
|
-
onClose:
|
|
1544
|
+
onClose: Dl
|
|
1545
1545
|
}, {
|
|
1546
1546
|
th: b(({ th: t }) => [
|
|
1547
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1547
|
+
J("div", { innerHTML: t }, null, 8, Dt)
|
|
1548
1548
|
]),
|
|
1549
1549
|
td: b(({ td: t }) => [
|
|
1550
|
-
|
|
1550
|
+
Ol(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
|
+
Ol(qe(ye.value.title), 1)
|
|
1561
1561
|
]),
|
|
1562
1562
|
key: "0"
|
|
1563
1563
|
} : void 0,
|
|
@@ -1567,7 +1567,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1567
1567
|
J("button", {
|
|
1568
1568
|
tabindex: "0",
|
|
1569
1569
|
class: "vue-ui-user-options-button",
|
|
1570
|
-
onClick: a[4] || (a[4] = (t) =>
|
|
1570
|
+
onClick: a[4] || (a[4] = (t) => We(l.value.userOptions.callbacks.csv))
|
|
1571
1571
|
}, [
|
|
1572
1572
|
El(Ct, {
|
|
1573
1573
|
name: "excel",
|
|
@@ -1577,15 +1577,15 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1577
1577
|
]),
|
|
1578
1578
|
key: "1"
|
|
1579
1579
|
} : void 0
|
|
1580
|
-
]), 1040)) :
|
|
1581
|
-
l.value.userOptions.buttons.annotator && y.value.length ? (I(),
|
|
1580
|
+
]), 1040)) : V("", !0),
|
|
1581
|
+
l.value.userOptions.buttons.annotator && y.value.length ? (I(), W(C(Jl), {
|
|
1582
1582
|
key: 7,
|
|
1583
1583
|
parent: _.value,
|
|
1584
1584
|
backgroundColor: l.value.style.chart.backgroundColor,
|
|
1585
1585
|
color: l.value.style.chart.color,
|
|
1586
1586
|
active: $e.value,
|
|
1587
1587
|
onClose: Ye
|
|
1588
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1588
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : V("", !0)
|
|
1589
1589
|
], 46, wt));
|
|
1590
1590
|
}
|
|
1591
1591
|
}, Tt = /* @__PURE__ */ At($t, [["__scopeId", "data-v-74a619ec"]]), Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|