vue-data-ui 3.15.12 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,1647 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, computed as g, ref as h, toRefs as Ut, watch as ze, shallowRef as vt, onMounted as Et, onBeforeUnmount as Qt, openBlock as s, createElementBlock as r, unref as i, normalizeStyle as _, normalizeClass as O, createBlock as P, withCtx as f, renderSlot as p, normalizeProps as z, guardReactiveProps as A, createCommentVNode as y, createElementVNode as d, createSlots as ct, createVNode as he, Fragment as q, renderList as M, toDisplayString as k, mergeProps as dt, Teleport as Gt, resolveDynamicComponent as jt, createTextVNode as ht, nextTick as Ae } from "vue";
|
|
2
|
-
import { j as yt, t as Jt, m as Zt, p as We, o as Kt, q as J, n as el, s as tl, aj as ll, k as I, l as D, X as al, u as ye, v as ol, ak as ul, Z as sl, W as nl, a0 as rl, a1 as il, T as vl, U as cl } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { t as dl, u as hl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as yl } from "./useConfig-CIgyKZ6R.js";
|
|
5
|
-
import { u as bl, B as fl } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
-
import { u as pl } from "./usePrinter-DiK5R6k-.js";
|
|
7
|
-
import { u as gl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
-
import { u as ml } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
-
import { u as Xe } from "./useNestedProp-BBT0mbHh.js";
|
|
10
|
-
import { u as xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as $l } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
-
import kl from "./img-BYYzY_QU.js";
|
|
13
|
-
import Ll from "./Title-BfyrP-jp.js";
|
|
14
|
-
import { _ as bt } from "./Shape-CSyWYgXc.js";
|
|
15
|
-
import wl from "./vue_ui_quadrant-DjRs--Uz.js";
|
|
16
|
-
import Cl from "./Legend-1LMMsPxL.js";
|
|
17
|
-
import { B as Sl } from "./BaseLegendToggle-Y61xahI4.js";
|
|
18
|
-
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const ql = ["id"], Tl = ["id"], zl = ["xmlns", "viewBox", "id"], Al = ["x", "y", "width", "height"], Wl = ["id"], Xl = ["stop-color"], Yl = ["stop-color"], Ol = { key: 1 }, Pl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Ml = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Nl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Bl = { key: 2 }, Fl = ["points", "fill"], Rl = ["points", "fill"], Vl = ["points", "fill"], Il = ["points", "fill"], Dl = { key: 3 }, Hl = ["y", "fill", "font-size"], Ul = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Ql = ["y", "fill", "font-size"], Gl = { key: 4 }, jl = ["x", "y", "font-size", "fill"], Jl = ["x", "y", "font-size", "fill"], Zl = ["x", "y", "font-size", "fill"], Kl = ["id", "font-size", "transform", "fill"], ea = ["id", "font-size", "transform", "fill"], ta = ["id", "font-size", "transform", "fill"], la = { key: 5 }, aa = ["fill", "points"], oa = ["x", "y", "width", "height"], ua = ["x", "y", "width", "height"], sa = ["x", "y", "width", "height"], na = ["x", "y", "width", "height"], ra = ["x", "y", "onMouseenter", "onMouseleave", "onClick"], ia = {
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { "pointer-events": "none" }
|
|
22
|
-
}, va = ["x", "y", "font-size", "fill"], ca = ["x", "y", "font-size", "fill", "innerHTML"], da = { key: 0 }, ha = ["x", "y", "onMouseover", "onMouseleave", "onClick"], ya = {
|
|
23
|
-
key: 8,
|
|
24
|
-
class: "vue-ui-dna"
|
|
25
|
-
}, ba = ["points", "fill"], fa = ["points", "fill"], pa = ["points", "fill"], ga = ["points", "fill"], ma = { key: 9 }, xa = ["x", "y", "font-size", "fill", "font-weight"], $a = { key: 10 }, ka = ["x", "y", "fill"], La = ["x", "y", "fill"], wa = ["x", "y", "fill"], Ca = ["x", "y", "fill"], Sa = ["stroke", "d"], _a = ["stroke", "d"], qa = {
|
|
26
|
-
key: 4,
|
|
27
|
-
class: "vue-data-ui-watermark"
|
|
28
|
-
}, Ta = ["id"], za = ["onClick"], Aa = {
|
|
29
|
-
key: 0,
|
|
30
|
-
height: "14",
|
|
31
|
-
width: "14",
|
|
32
|
-
viewBox: "0 0 20 20"
|
|
33
|
-
}, Wa = ["innerHTML"], Xa = {
|
|
34
|
-
__name: "vue-ui-quadrant",
|
|
35
|
-
props: {
|
|
36
|
-
config: {
|
|
37
|
-
type: Object,
|
|
38
|
-
default() {
|
|
39
|
-
return {};
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
dataset: {
|
|
43
|
-
type: Array,
|
|
44
|
-
default() {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
emits: ["selectPlot", "selectSide", "selectLegend", "copyAlt"],
|
|
50
|
-
setup(ft, { expose: pt, emit: gt }) {
|
|
51
|
-
const mt = V(() => import("./Tooltip-DL3QgjZf.js")), xt = V(() => import("./BaseIcon-CNx8Tzl5.js")), $t = V(() => import("./vue-ui-accordion-BGHTqIBt.js")), kt = V(() => import("./DataTable-Bo1pmAqG.js")), Lt = V(() => import("./PenAndPaper-DWV1FMIi.js")), wt = V(() => import("./UserOptions-CrLqEimB.js")), Ct = V(() => import("./PackageVersion-DN9d0ME5.js")), St = V(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_quadrant: _t } = yl(), { isThemeValid: qt, warnInvalidTheme: Tt } = ml(), Y = ft, Ye = g(() => !!Y.dataset && Y.dataset.length), w = h(yt()), ae = gt, be = h(!1), fe = h(""), Oe = h(0), x = h(!1), N = h(null), Pe = h(null), Me = h(null), Ne = h(null), Be = h(null), Fe = h(0), Re = h(0), Ve = h(0), Ie = h(!1), Z = h(null), pe = h(null), oe = h(!1), ue = h(!1), e = h(xe()), W = g(() => e.value.userOptions.useCursorPointer), zt = g(() => ({
|
|
52
|
-
defaultConfig: {
|
|
53
|
-
userOptions: { show: !1 },
|
|
54
|
-
table: { show: !1 },
|
|
55
|
-
style: {
|
|
56
|
-
chart: {
|
|
57
|
-
backgroundColor: "#99999930",
|
|
58
|
-
layout: {
|
|
59
|
-
grid: {
|
|
60
|
-
stroke: "#6A6A6A",
|
|
61
|
-
graduations: {
|
|
62
|
-
stroke: "#6A6A6A",
|
|
63
|
-
color: "#6A6A6A90"
|
|
64
|
-
},
|
|
65
|
-
xAxis: {
|
|
66
|
-
auto: !0
|
|
67
|
-
},
|
|
68
|
-
yAxis: {
|
|
69
|
-
auto: !0
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
labels: {
|
|
73
|
-
quadrantLabels: { show: !1 },
|
|
74
|
-
plotLabels: { show: !1 },
|
|
75
|
-
axisLabels: { show: !1 }
|
|
76
|
-
},
|
|
77
|
-
plots: {
|
|
78
|
-
outlineColor: "#6A6A6A"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
legend: {
|
|
82
|
-
backgroundColor: "transparent"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
88
|
-
})), { loading: se, FINAL_DATASET: De } = bl({
|
|
89
|
-
...Ut(Y),
|
|
90
|
-
FINAL_CONFIG: e,
|
|
91
|
-
prepareConfig: xe,
|
|
92
|
-
callback: () => {
|
|
93
|
-
Promise.resolve().then(async () => {
|
|
94
|
-
await Ae(), $.value.showTable = e.value.table.show;
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
skeletonDataset: Y.config?.skeletonDataset ?? [
|
|
98
|
-
{
|
|
99
|
-
name: "_",
|
|
100
|
-
shape: "circle",
|
|
101
|
-
color: "#CACACA",
|
|
102
|
-
series: [
|
|
103
|
-
{ name: "_", x: -6, y: -4 },
|
|
104
|
-
{ name: "_", x: -5, y: -2 },
|
|
105
|
-
{ name: "_", x: -4, y: -1 },
|
|
106
|
-
{ name: "_", x: -3, y: -0.5 },
|
|
107
|
-
{ name: "_", x: -2, y: -0.25 },
|
|
108
|
-
{ name: "_", x: -1, y: -0.135 },
|
|
109
|
-
{ name: "_", x: 0, y: 0 },
|
|
110
|
-
{ name: "_", x: 1, y: 0.135 },
|
|
111
|
-
{ name: "_", x: 2, y: 0.25 },
|
|
112
|
-
{ name: "_", x: 3, y: 0.5 },
|
|
113
|
-
{ name: "_", x: 4, y: 1 },
|
|
114
|
-
{ name: "_", x: 5, y: 2 },
|
|
115
|
-
{ name: "_", x: 6, y: 4 }
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
skeletonConfig: Jt({
|
|
120
|
-
defaultConfig: e.value,
|
|
121
|
-
userConfig: zt.value
|
|
122
|
-
})
|
|
123
|
-
}), { userOptionsVisible: ge, setUserOptionsVisibility: He, keepUserOptionState: Ue } = xl({ config: e.value }), { svgRef: me } = $l({ config: e.value.style.chart.title });
|
|
124
|
-
function xe() {
|
|
125
|
-
const l = Xe({
|
|
126
|
-
userConfig: Y.config,
|
|
127
|
-
defaultConfig: _t
|
|
128
|
-
}), o = l.theme;
|
|
129
|
-
if (!o) return l;
|
|
130
|
-
if (!qt.value(l))
|
|
131
|
-
return Tt(l), l;
|
|
132
|
-
const a = Xe({
|
|
133
|
-
userConfig: wl[o] || Y.config,
|
|
134
|
-
defaultConfig: l
|
|
135
|
-
}), u = Xe({
|
|
136
|
-
userConfig: Y.config,
|
|
137
|
-
defaultConfig: a
|
|
138
|
-
});
|
|
139
|
-
return {
|
|
140
|
-
...u,
|
|
141
|
-
customPalette: u.customPalette.length ? u.customPalette : Zt[o] || We
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
ze(() => Y.config, (l) => {
|
|
145
|
-
e.value = xe(), ge.value = !e.value.userOptions.showOnChartHover, Ee(), Fe.value += 1, Re.value += 1, Ve.value += 1, $.value.plotLabels.show = e.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
146
|
-
}, { deep: !0 });
|
|
147
|
-
const F = vt(null), Q = vt(null), G = g(() => e.value.debug);
|
|
148
|
-
function Ee() {
|
|
149
|
-
if (Kt(Y.dataset) ? J({
|
|
150
|
-
componentName: "VueUiQuadrant",
|
|
151
|
-
type: "dataset",
|
|
152
|
-
debug: G.value
|
|
153
|
-
}) : Y.dataset.forEach((l, o) => {
|
|
154
|
-
[null, void 0].includes(l.name) && J({
|
|
155
|
-
componentName: "VueUiQuadrant",
|
|
156
|
-
type: "datasetSerieAttribute",
|
|
157
|
-
property: "name",
|
|
158
|
-
index: o,
|
|
159
|
-
debug: G.value
|
|
160
|
-
}), [null, void 0].includes(l.series) ? J({
|
|
161
|
-
componentName: "VueUiQuadrant",
|
|
162
|
-
type: "datasetSerieAttribute",
|
|
163
|
-
property: "series",
|
|
164
|
-
index: o,
|
|
165
|
-
debug: G.value
|
|
166
|
-
}) : l.series.forEach((a, u) => {
|
|
167
|
-
[null, void 0].includes(a.name) && J({
|
|
168
|
-
componentName: "VueUiQuadrant",
|
|
169
|
-
type: "datasetSerieAttribute",
|
|
170
|
-
property: "name",
|
|
171
|
-
key: "series",
|
|
172
|
-
index: u,
|
|
173
|
-
debug: G.value
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
}), e.value.responsive) {
|
|
177
|
-
const l = dl(() => {
|
|
178
|
-
const { width: o, height: a } = hl({
|
|
179
|
-
chart: N.value,
|
|
180
|
-
title: e.value.style.chart.title.text ? Pe.value : null,
|
|
181
|
-
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
182
|
-
source: Ne.value,
|
|
183
|
-
noTitle: Be.value
|
|
184
|
-
});
|
|
185
|
-
L.value = 48, requestAnimationFrame(() => {
|
|
186
|
-
t.value.height = a, t.value.usableHeight = a - L.value * 2, t.value.width = o, t.value.usableWidth = o - L.value * 2, t.value.top = L.value, t.value.left = L.value, t.value.right = o - L.value, t.value.bottom = a - L.value, t.value.centerX = o / 2, t.value.centerY = a - a / 2, t.value.padding = L.value;
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
F.value && (Q.value && F.value.unobserve(Q.value), F.value.disconnect()), F.value = new ResizeObserver(l), Q.value = N.value.parentNode, F.value.observe(Q.value);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
Et(() => {
|
|
193
|
-
Ie.value = !0, Ee();
|
|
194
|
-
}), Qt(() => {
|
|
195
|
-
F.value && (Q.value && F.value.unobserve(Q.value), F.value.disconnect());
|
|
196
|
-
});
|
|
197
|
-
const { isPrinting: $e, isImaging: ke, generatePdf: Qe, generateImage: Ge } = pl({
|
|
198
|
-
elementId: `vue-ui-quadrant_${w.value}`,
|
|
199
|
-
fileName: e.value.style.chart.title.text || "vue-ui-quadrant",
|
|
200
|
-
options: e.value.userOptions.print
|
|
201
|
-
}), At = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = g(() => el(e.value.customPalette)), $ = h({
|
|
202
|
-
plotLabels: {
|
|
203
|
-
show: e.value.style.chart.layout.labels.plotLabels.show
|
|
204
|
-
},
|
|
205
|
-
showTable: e.value.table.show,
|
|
206
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
207
|
-
}), L = h(48), t = h({
|
|
208
|
-
height: e.value.style.chart.height,
|
|
209
|
-
usableHeight: e.value.style.chart.height - L.value * 2,
|
|
210
|
-
width: e.value.style.chart.width,
|
|
211
|
-
usableWidth: e.value.style.chart.width - L.value * 2,
|
|
212
|
-
top: L.value,
|
|
213
|
-
left: L.value,
|
|
214
|
-
right: e.value.style.chart.width - L.value,
|
|
215
|
-
bottom: e.value.style.chart.height - L.value,
|
|
216
|
-
centerX: e.value.style.chart.width / 2,
|
|
217
|
-
centerY: e.value.style.chart.height - e.value.style.chart.height / 2,
|
|
218
|
-
padding: L.value
|
|
219
|
-
}), v = h({
|
|
220
|
-
...JSON.parse(JSON.stringify(t.value)),
|
|
221
|
-
startX: 0,
|
|
222
|
-
startY: 0
|
|
223
|
-
});
|
|
224
|
-
ze(() => t.value, (l) => {
|
|
225
|
-
l && (v.value = {
|
|
226
|
-
...JSON.parse(JSON.stringify(t.value)),
|
|
227
|
-
startX: 0,
|
|
228
|
-
startY: 0
|
|
229
|
-
});
|
|
230
|
-
}, { deep: !0 });
|
|
231
|
-
const c = h(null), H = g(() => {
|
|
232
|
-
switch (c.value) {
|
|
233
|
-
case "TL":
|
|
234
|
-
return {
|
|
235
|
-
x: v.value.startX + v.value.width / 2,
|
|
236
|
-
y: v.value.height,
|
|
237
|
-
text: e.value.style.chart.layout.labels.quadrantLabels.tl.text || "Top Left",
|
|
238
|
-
fontSize: e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
239
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
240
|
-
bold: e.value.style.chart.layout.labels.quadrantLabels.tl.bold
|
|
241
|
-
};
|
|
242
|
-
case "TR":
|
|
243
|
-
return {
|
|
244
|
-
x: v.value.startX + v.value.width / 2,
|
|
245
|
-
y: v.value.height,
|
|
246
|
-
text: e.value.style.chart.layout.labels.quadrantLabels.tr.text || "Top Right",
|
|
247
|
-
fontSize: e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
248
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
249
|
-
bold: e.value.style.chart.layout.labels.quadrantLabels.tr.bold
|
|
250
|
-
};
|
|
251
|
-
case "BR":
|
|
252
|
-
return {
|
|
253
|
-
x: v.value.startX + v.value.width / 2,
|
|
254
|
-
y: v.value.height * 1.678,
|
|
255
|
-
text: e.value.style.chart.layout.labels.quadrantLabels.br.text || "Bottom Right",
|
|
256
|
-
fontSize: e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
257
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
258
|
-
bold: e.value.style.chart.layout.labels.quadrantLabels.br.bold
|
|
259
|
-
};
|
|
260
|
-
case "BL":
|
|
261
|
-
return {
|
|
262
|
-
x: v.value.startX + v.value.width / 2,
|
|
263
|
-
y: v.value.height * 1.678,
|
|
264
|
-
text: e.value.style.chart.layout.labels.quadrantLabels.bl.text || "Bottom Left",
|
|
265
|
-
fontSize: e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
266
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
267
|
-
bold: e.value.style.chart.layout.labels.quadrantLabels.bl.bold
|
|
268
|
-
};
|
|
269
|
-
default:
|
|
270
|
-
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
271
|
-
}
|
|
272
|
-
}), Wt = h(null), ne = h(!1);
|
|
273
|
-
function K({ targetX: l, targetY: o, targetW: a, targetH: u, side: n }) {
|
|
274
|
-
c.value && te(n);
|
|
275
|
-
const b = {
|
|
276
|
-
x: l - v.value.startX,
|
|
277
|
-
y: o - v.value.startY,
|
|
278
|
-
w: a - v.value.width,
|
|
279
|
-
h: u - v.value.height
|
|
280
|
-
}, m = e.value.zoomAnimationFrames;
|
|
281
|
-
let B = 0;
|
|
282
|
-
function it() {
|
|
283
|
-
ne.value = !0, v.value.startX += b.x / m, v.value.startY += b.y / m, v.value.width += b.w / m, v.value.height += b.h / m, B += 1, B < m ? Wt.value = requestAnimationFrame(it) : ne.value = !1;
|
|
284
|
-
}
|
|
285
|
-
it();
|
|
286
|
-
}
|
|
287
|
-
function R(l) {
|
|
288
|
-
if (!ne.value)
|
|
289
|
-
if (x.value && c.value === l)
|
|
290
|
-
K({
|
|
291
|
-
targetX: 0,
|
|
292
|
-
targetY: 0,
|
|
293
|
-
targetW: t.value.width,
|
|
294
|
-
targetH: t.value.height
|
|
295
|
-
}), c.value = null, x.value = !1;
|
|
296
|
-
else {
|
|
297
|
-
switch (c.value = l, l) {
|
|
298
|
-
case "TL":
|
|
299
|
-
K({
|
|
300
|
-
targetX: 0,
|
|
301
|
-
targetY: 0,
|
|
302
|
-
targetW: t.value.width / 2 + t.value.left,
|
|
303
|
-
targetH: t.value.height / 2 + t.value.top,
|
|
304
|
-
side: "tl"
|
|
305
|
-
});
|
|
306
|
-
break;
|
|
307
|
-
case "TR":
|
|
308
|
-
K({
|
|
309
|
-
targetX: t.value.width / 2 - t.value.left,
|
|
310
|
-
targetY: 0,
|
|
311
|
-
targetW: t.value.width / 2 + t.value.left,
|
|
312
|
-
targetH: t.value.height / 2 + t.value.top,
|
|
313
|
-
side: "tr"
|
|
314
|
-
});
|
|
315
|
-
break;
|
|
316
|
-
case "BR":
|
|
317
|
-
K({
|
|
318
|
-
targetX: t.value.width / 2 - t.value.left,
|
|
319
|
-
targetY: t.value.height / 2 - t.value.top,
|
|
320
|
-
targetW: t.value.width / 2 + t.value.left,
|
|
321
|
-
targetH: t.value.height / 2 + t.value.top,
|
|
322
|
-
side: "br"
|
|
323
|
-
});
|
|
324
|
-
break;
|
|
325
|
-
case "BL":
|
|
326
|
-
K({
|
|
327
|
-
targetX: 0,
|
|
328
|
-
targetY: t.value.height / 2 - t.value.top,
|
|
329
|
-
targetW: t.value.width / 2 + t.value.left,
|
|
330
|
-
targetH: t.value.height / 2 + t.value.top,
|
|
331
|
-
side: "bl"
|
|
332
|
-
});
|
|
333
|
-
break;
|
|
334
|
-
default:
|
|
335
|
-
v.value.startX = 0, v.value.startY = 0, v.value.width = t.value.width, v.value.height = t.value.height;
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
x.value = !0;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
const Xt = g(() => {
|
|
342
|
-
const l = e.value.style.chart.layout.grid.graduations.steps, o = t.value.usableWidth / (l * 2), a = t.value.top, u = [];
|
|
343
|
-
for (let n = 0; n < l; n += 1)
|
|
344
|
-
u.push({
|
|
345
|
-
x: t.value.padding + o * n,
|
|
346
|
-
y: a + t.value.usableHeight * (n / l / 2),
|
|
347
|
-
height: t.value.usableHeight * (1 - n / l),
|
|
348
|
-
width: t.value.usableWidth * (1 - n / l),
|
|
349
|
-
opacity: Math.round((n + 1) / l * 20)
|
|
350
|
-
});
|
|
351
|
-
return u;
|
|
352
|
-
}), T = g(() => {
|
|
353
|
-
let l = e.value.style.chart.layout.grid.xAxis.max, o = e.value.style.chart.layout.grid.xAxis.min, a = e.value.style.chart.layout.grid.yAxis.max, u = e.value.style.chart.layout.grid.yAxis.min;
|
|
354
|
-
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...j.value.flatMap((n) => n.series.map((b) => b.x))), o = Math.min(...j.value.flatMap((n) => n.series.map((b) => b.x)))), e.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...j.value.flatMap((n) => n.series.map((b) => b.y))), u = Math.min(...j.value.flatMap((n) => n.series.map((b) => b.y)))), {
|
|
355
|
-
x: {
|
|
356
|
-
max: l,
|
|
357
|
-
min: o
|
|
358
|
-
},
|
|
359
|
-
y: {
|
|
360
|
-
max: a,
|
|
361
|
-
min: u
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
}), C = h([]), j = g(() => De.value.map((l, o) => ({
|
|
365
|
-
...l,
|
|
366
|
-
series: ll({
|
|
367
|
-
data: l.series,
|
|
368
|
-
threshold: e.value.downsample.threshold
|
|
369
|
-
}),
|
|
370
|
-
id: `cat_${o}_${w.value}`,
|
|
371
|
-
color: tl(l.color) || je.value[o] || We[o]
|
|
372
|
-
}))), Le = g(() => j.value.filter((l) => !C.value.includes(l.id))), Yt = g(() => j.value.map((l, o) => ({
|
|
373
|
-
...l,
|
|
374
|
-
shape: l.shape || "circle",
|
|
375
|
-
series: l.series.map((a) => ({
|
|
376
|
-
...a,
|
|
377
|
-
x: Je(a.x),
|
|
378
|
-
y: Ze(a.y),
|
|
379
|
-
xValue: a.x,
|
|
380
|
-
yValue: a.y,
|
|
381
|
-
quadrantSide: et({ x: a.x, y: a.y }),
|
|
382
|
-
categoryName: l.name,
|
|
383
|
-
shape: l.shape,
|
|
384
|
-
color: l.color
|
|
385
|
-
}))
|
|
386
|
-
}))), X = g(() => (De.value.forEach((l, o) => {
|
|
387
|
-
l.series.forEach((a, u) => {
|
|
388
|
-
[null, void 0].includes(a.x) && J({
|
|
389
|
-
componentName: "VueUiQuadrant",
|
|
390
|
-
type: "datasetSerieAttribute",
|
|
391
|
-
property: "x",
|
|
392
|
-
key: "series",
|
|
393
|
-
index: u,
|
|
394
|
-
debug: G.value
|
|
395
|
-
}), [null, void 0].includes(a.y) && J({
|
|
396
|
-
componentName: "VueUiQuadrant",
|
|
397
|
-
type: "datasetSerieAttribute",
|
|
398
|
-
property: "y",
|
|
399
|
-
key: "series",
|
|
400
|
-
index: u,
|
|
401
|
-
debug: G.value
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
}), Le.value.map((l, o) => ({
|
|
405
|
-
...l,
|
|
406
|
-
shape: l.shape || "circle",
|
|
407
|
-
color: l.color || je.value[o] || We[o],
|
|
408
|
-
series: l.series.map((a) => ({
|
|
409
|
-
...a,
|
|
410
|
-
x: Je(a.x),
|
|
411
|
-
y: Ze(a.y),
|
|
412
|
-
xValue: a.x,
|
|
413
|
-
yValue: a.y,
|
|
414
|
-
quadrantSide: et({ x: a.x, y: a.y }),
|
|
415
|
-
categoryName: l.name,
|
|
416
|
-
shape: l.shape,
|
|
417
|
-
color: l.color,
|
|
418
|
-
uid: yt()
|
|
419
|
-
}))
|
|
420
|
-
}))));
|
|
421
|
-
function Je(l) {
|
|
422
|
-
if (l >= 0) {
|
|
423
|
-
const o = l / T.value.x.max;
|
|
424
|
-
return t.value.centerX + t.value.usableWidth / 2 * o;
|
|
425
|
-
} else {
|
|
426
|
-
const o = Math.abs(l) / Math.abs(T.value.x.min);
|
|
427
|
-
return t.value.centerX - t.value.usableWidth / 2 * o;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
function Ze(l) {
|
|
431
|
-
if (l >= 0) {
|
|
432
|
-
const o = l / T.value.y.max;
|
|
433
|
-
return t.value.centerY + (1 - t.value.usableHeight / 2 * o);
|
|
434
|
-
} else {
|
|
435
|
-
const o = Math.abs(l) / Math.abs(T.value.y.min);
|
|
436
|
-
return t.value.centerY - (1 - t.value.usableHeight / 2 * o);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
const re = g(() => {
|
|
440
|
-
const l = X.value.flatMap((m) => m.series.map((B) => ({
|
|
441
|
-
x: B.xValue,
|
|
442
|
-
y: B.yValue,
|
|
443
|
-
name: B.name,
|
|
444
|
-
category: B.categoryName,
|
|
445
|
-
quadrantSide: B.quadrantSide,
|
|
446
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[B.quadrantSide].text,
|
|
447
|
-
color: m.color,
|
|
448
|
-
shape: m.shape
|
|
449
|
-
}))), o = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", u = [e.value.translations.category, e.value.translations.item, o, a, e.value.translations.side], n = l.map((m) => [m.category, m.name, m.x, m.y, m.sideName || m.quadrantSide]), b = l.map((m) => ({
|
|
450
|
-
shape: m.shape,
|
|
451
|
-
color: m.color
|
|
452
|
-
}));
|
|
453
|
-
return { head: u, body: n, itsShapes: b, tableData: l };
|
|
454
|
-
}), ie = g(() => {
|
|
455
|
-
const l = re.value.head, o = re.value.tableData.map((u) => [
|
|
456
|
-
{
|
|
457
|
-
shape: u.shape,
|
|
458
|
-
color: u.color,
|
|
459
|
-
name: u.category
|
|
460
|
-
},
|
|
461
|
-
u.name,
|
|
462
|
-
I(
|
|
463
|
-
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
464
|
-
u.x,
|
|
465
|
-
D({
|
|
466
|
-
v: u.x,
|
|
467
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
468
|
-
})
|
|
469
|
-
),
|
|
470
|
-
I(
|
|
471
|
-
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
472
|
-
u.y,
|
|
473
|
-
D({
|
|
474
|
-
v: u.y,
|
|
475
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
476
|
-
})
|
|
477
|
-
),
|
|
478
|
-
u.sideName || u.quadrantSide
|
|
479
|
-
]), a = {
|
|
480
|
-
th: {
|
|
481
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
482
|
-
color: e.value.table.th.color,
|
|
483
|
-
outline: e.value.table.th.outline
|
|
484
|
-
},
|
|
485
|
-
td: {
|
|
486
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
487
|
-
color: e.value.table.td.color,
|
|
488
|
-
outline: e.value.table.td.outline
|
|
489
|
-
},
|
|
490
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
491
|
-
};
|
|
492
|
-
return { head: l, body: o, config: a, colNames: l };
|
|
493
|
-
});
|
|
494
|
-
function Ot() {
|
|
495
|
-
C.value.length ? C.value = [] : U.value.forEach((l) => {
|
|
496
|
-
C.value.push(l.id);
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
function ee(l) {
|
|
500
|
-
C.value.includes(l) ? C.value = C.value.filter((a) => a !== l) : C.value.push(l);
|
|
501
|
-
const o = tt();
|
|
502
|
-
ae("selectLegend", o);
|
|
503
|
-
}
|
|
504
|
-
const U = g(() => Yt.value.map((l) => ({
|
|
505
|
-
name: l.name,
|
|
506
|
-
shape: l.shape,
|
|
507
|
-
color: l.color,
|
|
508
|
-
id: l.id,
|
|
509
|
-
opacity: C.value.includes(l.id) ? 0.5 : 1,
|
|
510
|
-
segregate: () => ee(l.id),
|
|
511
|
-
isSegregated: C.value.includes(l.id)
|
|
512
|
-
})));
|
|
513
|
-
function Ke(l) {
|
|
514
|
-
if (!U.value.length)
|
|
515
|
-
return e.value.debug && console.warn("VueUiQuadrant - There are no series to show."), null;
|
|
516
|
-
const o = U.value.find((a) => a.name === l);
|
|
517
|
-
return o || (e.value.debug && console.warn(`VueUiQuadrant - Series name not found "${l}"`), null);
|
|
518
|
-
}
|
|
519
|
-
function Pt(l) {
|
|
520
|
-
const o = Ke(l);
|
|
521
|
-
o !== null && C.value.includes(o.id) && ee(o.id);
|
|
522
|
-
}
|
|
523
|
-
function Mt(l) {
|
|
524
|
-
const o = Ke(l);
|
|
525
|
-
o !== null && (C.value.includes(o.id) || ee(o.id));
|
|
526
|
-
}
|
|
527
|
-
const Nt = g(() => ({
|
|
528
|
-
cy: "quadrant-div-legend",
|
|
529
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
530
|
-
color: e.value.style.chart.legend.color,
|
|
531
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
532
|
-
paddingBottom: 12,
|
|
533
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
534
|
-
}));
|
|
535
|
-
function et(l) {
|
|
536
|
-
switch (!0) {
|
|
537
|
-
case (l.x >= 0 && l.y >= 0):
|
|
538
|
-
return "tr";
|
|
539
|
-
case (l.x >= 0 && l.y < 0):
|
|
540
|
-
return "br";
|
|
541
|
-
case (l.x < 0 && l.y < 0):
|
|
542
|
-
return "bl";
|
|
543
|
-
case (l.x < 0 && l.y >= 0):
|
|
544
|
-
return "tl";
|
|
545
|
-
default:
|
|
546
|
-
return "";
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
const ve = h(null), ce = h(null), we = h(null);
|
|
550
|
-
function Ce(l, o, a) {
|
|
551
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: a }), ve.value = o.uid, ce.value = {
|
|
552
|
-
color: l.color,
|
|
553
|
-
shape: l.shape
|
|
554
|
-
}, we.value = {
|
|
555
|
-
datapoint: o,
|
|
556
|
-
seriesIndex: a,
|
|
557
|
-
series: X.value,
|
|
558
|
-
config: e.value
|
|
559
|
-
}, be.value = !0;
|
|
560
|
-
const u = e.value.style.chart.tooltip.customFormat;
|
|
561
|
-
if (vl(u) && cl(() => u({
|
|
562
|
-
seriesIndex: a,
|
|
563
|
-
datapoint: o,
|
|
564
|
-
series: X.value,
|
|
565
|
-
config: e.value
|
|
566
|
-
})))
|
|
567
|
-
fe.value = u({
|
|
568
|
-
seriesIndex: a,
|
|
569
|
-
datapoint: o,
|
|
570
|
-
series: X.value,
|
|
571
|
-
config: e.value
|
|
572
|
-
});
|
|
573
|
-
else {
|
|
574
|
-
let n = "";
|
|
575
|
-
o.quadrantSide && (n += `<div style="color:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].color};font-weight:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].bold ? "bold" : "400"}">${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text}</div>`), n += `<div>${l.name}</div>`, n += `<div style="padding-bottom:6px;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px">${o.name}</div>`, n += `<div>${e.value.style.chart.layout.grid.xAxis.name ? e.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${I(
|
|
576
|
-
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
577
|
-
o.xValue,
|
|
578
|
-
D({
|
|
579
|
-
v: o.xValue,
|
|
580
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
581
|
-
}),
|
|
582
|
-
{ datapoint: o, category: l, categoryIndex: a }
|
|
583
|
-
)}</b></div>`, n += `<div>${e.value.style.chart.layout.grid.yAxis.name ? e.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${I(
|
|
584
|
-
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
585
|
-
o.yValue,
|
|
586
|
-
D({
|
|
587
|
-
v: o.yValue,
|
|
588
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
589
|
-
}),
|
|
590
|
-
{ datapoint: o, category: l, categoryIndex: a }
|
|
591
|
-
)}</b></div>`, fe.value = `<div style="text-align:left;font-size:${e.value.style.chart.tooltip.fontSize}px">${n}</div>`;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
function Se(l, o) {
|
|
595
|
-
be.value = !1, ve.value = null, ce.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o });
|
|
596
|
-
}
|
|
597
|
-
function _e(l, o, a) {
|
|
598
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: a });
|
|
599
|
-
const u = {
|
|
600
|
-
category: l.name,
|
|
601
|
-
shape: l.shape,
|
|
602
|
-
itemName: o.name,
|
|
603
|
-
x: o.xValue,
|
|
604
|
-
y: o.yValue,
|
|
605
|
-
quadrantSide: o.quadrantSide,
|
|
606
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
|
|
607
|
-
};
|
|
608
|
-
ae("selectPlot", u);
|
|
609
|
-
}
|
|
610
|
-
function te(l) {
|
|
611
|
-
if (!l) return;
|
|
612
|
-
const o = X.value.flatMap((u) => u.series.filter((n) => n.quadrantSide === l).map((n) => ({
|
|
613
|
-
category: n.categoryName,
|
|
614
|
-
itemName: n.name,
|
|
615
|
-
x: n.xValue,
|
|
616
|
-
y: n.yValue
|
|
617
|
-
}))), a = {
|
|
618
|
-
quadrantSide: l,
|
|
619
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[l].text,
|
|
620
|
-
items: [...o]
|
|
621
|
-
};
|
|
622
|
-
ae("selectSide", a);
|
|
623
|
-
}
|
|
624
|
-
const S = g(() => ({
|
|
625
|
-
TL: {
|
|
626
|
-
tl: {
|
|
627
|
-
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
628
|
-
y: 0,
|
|
629
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
630
|
-
},
|
|
631
|
-
tr: {
|
|
632
|
-
x: t.value.left + t.value.usableWidth / 4,
|
|
633
|
-
y: 0,
|
|
634
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
635
|
-
},
|
|
636
|
-
br: {
|
|
637
|
-
x: t.value.left + t.value.usableWidth / 4,
|
|
638
|
-
y: 20,
|
|
639
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
640
|
-
},
|
|
641
|
-
bl: {
|
|
642
|
-
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
643
|
-
y: 20,
|
|
644
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
645
|
-
},
|
|
646
|
-
crosshairs: {
|
|
647
|
-
horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},20 ${t.value.left + t.value.usableWidth / 4 + 20},20`,
|
|
648
|
-
vertical: `M ${t.value.left + t.value.usableWidth / 4},0 ${t.value.left + t.value.usableWidth / 4},40`
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
TR: {
|
|
652
|
-
tl: {
|
|
653
|
-
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
654
|
-
y: 0,
|
|
655
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
656
|
-
},
|
|
657
|
-
tr: {
|
|
658
|
-
x: t.value.centerX + t.value.usableWidth / 4,
|
|
659
|
-
y: 0,
|
|
660
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
661
|
-
},
|
|
662
|
-
br: {
|
|
663
|
-
x: t.value.centerX + t.value.usableWidth / 4,
|
|
664
|
-
y: 20,
|
|
665
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
666
|
-
},
|
|
667
|
-
bl: {
|
|
668
|
-
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
669
|
-
y: 20,
|
|
670
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
671
|
-
},
|
|
672
|
-
crosshairs: {
|
|
673
|
-
horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},20 ${t.value.centerX + t.value.usableWidth / 4 + 20},20`,
|
|
674
|
-
vertical: `M ${t.value.centerX + t.value.usableWidth / 4},0 ${t.value.centerX + t.value.usableWidth / 4},40`
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
BR: {
|
|
678
|
-
tl: {
|
|
679
|
-
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
680
|
-
y: t.value.centerY - 48,
|
|
681
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
682
|
-
},
|
|
683
|
-
tr: {
|
|
684
|
-
x: t.value.centerX + t.value.usableWidth / 4,
|
|
685
|
-
y: t.value.centerY - 48,
|
|
686
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
687
|
-
},
|
|
688
|
-
br: {
|
|
689
|
-
x: t.value.centerX + t.value.usableWidth / 4,
|
|
690
|
-
y: t.value.centerY - 28,
|
|
691
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
692
|
-
},
|
|
693
|
-
bl: {
|
|
694
|
-
x: t.value.centerX + t.value.usableWidth / 4 - 20,
|
|
695
|
-
y: t.value.centerY - 28,
|
|
696
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
697
|
-
},
|
|
698
|
-
crosshairs: {
|
|
699
|
-
horizontal: `M ${t.value.centerX + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.centerX + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
|
|
700
|
-
vertical: `M ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.centerX + t.value.usableWidth / 4},${t.value.centerY - 8}`
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
BL: {
|
|
704
|
-
tl: {
|
|
705
|
-
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
706
|
-
y: t.value.centerY - 48,
|
|
707
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color
|
|
708
|
-
},
|
|
709
|
-
tr: {
|
|
710
|
-
x: t.value.left + t.value.usableWidth / 4,
|
|
711
|
-
y: t.value.centerY - 48,
|
|
712
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color
|
|
713
|
-
},
|
|
714
|
-
br: {
|
|
715
|
-
x: t.value.left + t.value.usableWidth / 4,
|
|
716
|
-
y: t.value.centerY - 28,
|
|
717
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color
|
|
718
|
-
},
|
|
719
|
-
bl: {
|
|
720
|
-
x: t.value.left + t.value.usableWidth / 4 - 20,
|
|
721
|
-
y: t.value.centerY - 28,
|
|
722
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color
|
|
723
|
-
},
|
|
724
|
-
crosshairs: {
|
|
725
|
-
horizontal: `M ${t.value.left + t.value.usableWidth / 4 - 20},${t.value.centerY - 28} ${t.value.left + t.value.usableWidth / 4 + 20},${t.value.centerY - 28}`,
|
|
726
|
-
vertical: `M ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 48} ${t.value.left + t.value.usableWidth / 4},${t.value.centerY - 8}`
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}));
|
|
730
|
-
function tt() {
|
|
731
|
-
return X.value.map((l) => ({
|
|
732
|
-
color: l.color,
|
|
733
|
-
name: l.name,
|
|
734
|
-
shape: l.shape,
|
|
735
|
-
series: l.series.map((o) => ({
|
|
736
|
-
name: o.name,
|
|
737
|
-
x: o.xValue,
|
|
738
|
-
y: o.yValue,
|
|
739
|
-
quadrantSide: o.quadrantSide,
|
|
740
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text
|
|
741
|
-
}))
|
|
742
|
-
}));
|
|
743
|
-
}
|
|
744
|
-
function qe(l = null) {
|
|
745
|
-
Ae(() => {
|
|
746
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = re.value.head, u = re.value.body, n = o.concat([a]).concat(u), b = rl(n);
|
|
747
|
-
l ? l(b) : il({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
const E = h(!1);
|
|
751
|
-
function lt(l) {
|
|
752
|
-
E.value = l, Oe.value += 1;
|
|
753
|
-
}
|
|
754
|
-
function at() {
|
|
755
|
-
$.value.showTable = !$.value.showTable;
|
|
756
|
-
}
|
|
757
|
-
function ot() {
|
|
758
|
-
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
759
|
-
}
|
|
760
|
-
function ut() {
|
|
761
|
-
$.value.showTooltip = !$.value.showTooltip;
|
|
762
|
-
}
|
|
763
|
-
const de = h(!1);
|
|
764
|
-
function Te() {
|
|
765
|
-
de.value = !de.value;
|
|
766
|
-
}
|
|
767
|
-
async function Bt({ scale: l = 2 } = {}) {
|
|
768
|
-
if (!N.value) return;
|
|
769
|
-
const { width: o, height: a } = N.value.getBoundingClientRect(), u = o / a, { imageUri: n, base64: b } = await kl({ domElement: N.value, base64: !0, img: !0, scale: l });
|
|
770
|
-
return {
|
|
771
|
-
imageUri: n,
|
|
772
|
-
base64: b,
|
|
773
|
-
title: e.value.style.chart.title.text,
|
|
774
|
-
width: o,
|
|
775
|
-
height: a,
|
|
776
|
-
aspectRatio: u
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
const le = g(() => {
|
|
780
|
-
const l = e.value.table.useDialog && !e.value.table.show, o = $.value.showTable;
|
|
781
|
-
return {
|
|
782
|
-
component: l ? St : $t,
|
|
783
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
784
|
-
props: l ? {
|
|
785
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
786
|
-
color: e.value.table.th.color,
|
|
787
|
-
headerColor: e.value.table.th.color,
|
|
788
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
789
|
-
isFullscreen: E.value,
|
|
790
|
-
fullscreenParent: N.value,
|
|
791
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
792
|
-
isCursorPointer: W.value
|
|
793
|
-
} : {
|
|
794
|
-
hideDetails: !0,
|
|
795
|
-
config: {
|
|
796
|
-
open: o,
|
|
797
|
-
maxHeight: 1e4,
|
|
798
|
-
body: {
|
|
799
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
800
|
-
color: e.value.style.chart.color
|
|
801
|
-
},
|
|
802
|
-
head: {
|
|
803
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
804
|
-
color: e.value.style.chart.color
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
});
|
|
810
|
-
ze(() => $.value.showTable, (l) => {
|
|
811
|
-
e.value.table.show || (l && e.value.table.useDialog && Z.value ? Z.value.open() : "close" in Z.value && Z.value.close());
|
|
812
|
-
});
|
|
813
|
-
function st() {
|
|
814
|
-
$.value.showTable = !1, pe.value && pe.value.setTableIconState(!1);
|
|
815
|
-
}
|
|
816
|
-
const Ft = g(() => e.value.style.chart.backgroundColor), Rt = g(() => e.value.style.chart.legend), Vt = g(() => e.value.style.chart.title), { exportSvg: It, getSvg: Dt } = gl({
|
|
817
|
-
svg: me,
|
|
818
|
-
title: Vt,
|
|
819
|
-
legend: Rt,
|
|
820
|
-
legendItems: U,
|
|
821
|
-
backgroundColor: Ft
|
|
822
|
-
});
|
|
823
|
-
async function nt({ isCb: l }) {
|
|
824
|
-
ue.value = !0, await Ae();
|
|
825
|
-
try {
|
|
826
|
-
if (l) {
|
|
827
|
-
const { blob: o, url: a, text: u, dataUrl: n } = await Dt();
|
|
828
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: u, dataUrl: n }));
|
|
829
|
-
} else
|
|
830
|
-
await Promise.resolve(It());
|
|
831
|
-
} finally {
|
|
832
|
-
ue.value = !1;
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
function Ht(l) {
|
|
836
|
-
if (l?.stage === "start") {
|
|
837
|
-
oe.value = !0;
|
|
838
|
-
return;
|
|
839
|
-
}
|
|
840
|
-
if (l?.stage === "end") {
|
|
841
|
-
oe.value = !1;
|
|
842
|
-
return;
|
|
843
|
-
}
|
|
844
|
-
Ge();
|
|
845
|
-
}
|
|
846
|
-
async function rt() {
|
|
847
|
-
if (ae("copyAlt", {
|
|
848
|
-
config: e.value,
|
|
849
|
-
dataset: Le.value
|
|
850
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
851
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
852
|
-
return;
|
|
853
|
-
}
|
|
854
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
855
|
-
config: e.value,
|
|
856
|
-
dataset: Le.value
|
|
857
|
-
}));
|
|
858
|
-
}
|
|
859
|
-
return pt({
|
|
860
|
-
getData: tt,
|
|
861
|
-
getImage: Bt,
|
|
862
|
-
generatePdf: Qe,
|
|
863
|
-
generateCsv: qe,
|
|
864
|
-
generateImage: Ge,
|
|
865
|
-
generateSvg: nt,
|
|
866
|
-
hideSeries: Mt,
|
|
867
|
-
showSeries: Pt,
|
|
868
|
-
toggleTable: at,
|
|
869
|
-
toggleLabels: ot,
|
|
870
|
-
toggleTooltip: ut,
|
|
871
|
-
toggleAnnotator: Te,
|
|
872
|
-
toggleFullscreen: lt,
|
|
873
|
-
copyAlt: rt
|
|
874
|
-
}), (l, o) => (s(), r("div", {
|
|
875
|
-
class: O(`vue-data-ui-component vue-ui-quadrant ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
876
|
-
ref_key: "quadrantChart",
|
|
877
|
-
ref: N,
|
|
878
|
-
id: `vue-ui-quadrant_${w.value}`,
|
|
879
|
-
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
880
|
-
onMouseenter: o[14] || (o[14] = () => i(He)(!0)),
|
|
881
|
-
onMouseleave: o[15] || (o[15] = () => i(He)(!1))
|
|
882
|
-
}, [
|
|
883
|
-
e.value.userOptions.buttons.annotator ? (s(), P(i(Lt), {
|
|
884
|
-
key: 0,
|
|
885
|
-
svgRef: i(me),
|
|
886
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
887
|
-
color: e.value.style.chart.color,
|
|
888
|
-
active: de.value,
|
|
889
|
-
isCursorPointer: W.value,
|
|
890
|
-
onClose: Te
|
|
891
|
-
}, {
|
|
892
|
-
"annotator-action-close": f(() => [
|
|
893
|
-
p(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
894
|
-
]),
|
|
895
|
-
"annotator-action-color": f(({ color: a }) => [
|
|
896
|
-
p(l.$slots, "annotator-action-color", z(A({ color: a })), void 0, !0)
|
|
897
|
-
]),
|
|
898
|
-
"annotator-action-draw": f(({ mode: a }) => [
|
|
899
|
-
p(l.$slots, "annotator-action-draw", z(A({ mode: a })), void 0, !0)
|
|
900
|
-
]),
|
|
901
|
-
"annotator-action-undo": f(({ disabled: a }) => [
|
|
902
|
-
p(l.$slots, "annotator-action-undo", z(A({ disabled: a })), void 0, !0)
|
|
903
|
-
]),
|
|
904
|
-
"annotator-action-redo": f(({ disabled: a }) => [
|
|
905
|
-
p(l.$slots, "annotator-action-redo", z(A({ disabled: a })), void 0, !0)
|
|
906
|
-
]),
|
|
907
|
-
"annotator-action-delete": f(({ disabled: a }) => [
|
|
908
|
-
p(l.$slots, "annotator-action-delete", z(A({ disabled: a })), void 0, !0)
|
|
909
|
-
]),
|
|
910
|
-
_: 3
|
|
911
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
|
|
912
|
-
At.value ? (s(), r("div", {
|
|
913
|
-
key: 1,
|
|
914
|
-
ref_key: "noTitle",
|
|
915
|
-
ref: Be,
|
|
916
|
-
class: "vue-data-ui-no-title-space",
|
|
917
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
918
|
-
}, null, 512)) : y("", !0),
|
|
919
|
-
e.value.style.chart.title.text ? (s(), r("div", {
|
|
920
|
-
key: 2,
|
|
921
|
-
ref_key: "chartTitle",
|
|
922
|
-
ref: Pe,
|
|
923
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
924
|
-
}, [
|
|
925
|
-
(s(), P(Ll, {
|
|
926
|
-
key: `table_${Fe.value}`,
|
|
927
|
-
config: {
|
|
928
|
-
title: {
|
|
929
|
-
cy: "quadrant-title",
|
|
930
|
-
...e.value.style.chart.title
|
|
931
|
-
},
|
|
932
|
-
subtitle: {
|
|
933
|
-
cy: "quadrant-subtitle",
|
|
934
|
-
...e.value.style.chart.title.subtitle
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
}, null, 8, ["config"]))
|
|
938
|
-
], 512)) : y("", !0),
|
|
939
|
-
d("div", {
|
|
940
|
-
id: `legend-top-${w.value}`
|
|
941
|
-
}, null, 8, Tl),
|
|
942
|
-
e.value.userOptions.show && Ye.value && (i(Ue) || i(ge)) ? (s(), P(i(wt), {
|
|
943
|
-
ref_key: "userOptionsRef",
|
|
944
|
-
ref: pe,
|
|
945
|
-
key: `user_options_${Oe.value}`,
|
|
946
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
947
|
-
color: e.value.style.chart.color,
|
|
948
|
-
isImaging: i(ke),
|
|
949
|
-
isPrinting: i($e),
|
|
950
|
-
uid: w.value,
|
|
951
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
952
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
953
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
954
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
955
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
956
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
957
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
958
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
959
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
960
|
-
isFullscreen: E.value,
|
|
961
|
-
isTooltip: $.value.showTooltip,
|
|
962
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
963
|
-
chartElement: N.value,
|
|
964
|
-
position: e.value.userOptions.position,
|
|
965
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
966
|
-
isAnnotation: de.value,
|
|
967
|
-
callbacks: e.value.userOptions.callbacks,
|
|
968
|
-
printScale: e.value.userOptions.print.scale,
|
|
969
|
-
tableDialog: e.value.table.useDialog,
|
|
970
|
-
isCursorPointer: W.value,
|
|
971
|
-
onToggleFullscreen: lt,
|
|
972
|
-
onGeneratePdf: i(Qe),
|
|
973
|
-
onGenerateCsv: qe,
|
|
974
|
-
onGenerateImage: Ht,
|
|
975
|
-
onGenerateSvg: nt,
|
|
976
|
-
onToggleTable: at,
|
|
977
|
-
onToggleLabels: ot,
|
|
978
|
-
onToggleTooltip: ut,
|
|
979
|
-
onToggleAnnotator: Te,
|
|
980
|
-
onCopyAlt: rt,
|
|
981
|
-
style: _({
|
|
982
|
-
visibility: i(Ue) ? i(ge) ? "visible" : "hidden" : "visible"
|
|
983
|
-
})
|
|
984
|
-
}, ct({ _: 2 }, [
|
|
985
|
-
l.$slots.menuIcon ? {
|
|
986
|
-
name: "menuIcon",
|
|
987
|
-
fn: f(({ isOpen: a, color: u }) => [
|
|
988
|
-
p(l.$slots, "menuIcon", z(A({ isOpen: a, color: u })), void 0, !0)
|
|
989
|
-
]),
|
|
990
|
-
key: "0"
|
|
991
|
-
} : void 0,
|
|
992
|
-
l.$slots.optionTooltip ? {
|
|
993
|
-
name: "optionTooltip",
|
|
994
|
-
fn: f(() => [
|
|
995
|
-
p(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
996
|
-
]),
|
|
997
|
-
key: "1"
|
|
998
|
-
} : void 0,
|
|
999
|
-
l.$slots.optionPdf ? {
|
|
1000
|
-
name: "optionPdf",
|
|
1001
|
-
fn: f(() => [
|
|
1002
|
-
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
1003
|
-
]),
|
|
1004
|
-
key: "2"
|
|
1005
|
-
} : void 0,
|
|
1006
|
-
l.$slots.optionCsv ? {
|
|
1007
|
-
name: "optionCsv",
|
|
1008
|
-
fn: f(() => [
|
|
1009
|
-
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
1010
|
-
]),
|
|
1011
|
-
key: "3"
|
|
1012
|
-
} : void 0,
|
|
1013
|
-
l.$slots.optionImg ? {
|
|
1014
|
-
name: "optionImg",
|
|
1015
|
-
fn: f(() => [
|
|
1016
|
-
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
1017
|
-
]),
|
|
1018
|
-
key: "4"
|
|
1019
|
-
} : void 0,
|
|
1020
|
-
l.$slots.optionSvg ? {
|
|
1021
|
-
name: "optionSvg",
|
|
1022
|
-
fn: f(() => [
|
|
1023
|
-
p(l.$slots, "optionSvg", {}, void 0, !0)
|
|
1024
|
-
]),
|
|
1025
|
-
key: "5"
|
|
1026
|
-
} : void 0,
|
|
1027
|
-
l.$slots.optionTable ? {
|
|
1028
|
-
name: "optionTable",
|
|
1029
|
-
fn: f(() => [
|
|
1030
|
-
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
1031
|
-
]),
|
|
1032
|
-
key: "6"
|
|
1033
|
-
} : void 0,
|
|
1034
|
-
l.$slots.optionLabels ? {
|
|
1035
|
-
name: "optionLabels",
|
|
1036
|
-
fn: f(() => [
|
|
1037
|
-
p(l.$slots, "optionLabels", {}, void 0, !0)
|
|
1038
|
-
]),
|
|
1039
|
-
key: "7"
|
|
1040
|
-
} : void 0,
|
|
1041
|
-
l.$slots.optionFullscreen ? {
|
|
1042
|
-
name: "optionFullscreen",
|
|
1043
|
-
fn: f(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
1044
|
-
p(l.$slots, "optionFullscreen", z(A({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
1045
|
-
]),
|
|
1046
|
-
key: "8"
|
|
1047
|
-
} : void 0,
|
|
1048
|
-
l.$slots.optionAnnotator ? {
|
|
1049
|
-
name: "optionAnnotator",
|
|
1050
|
-
fn: f(({ toggleAnnotator: a, isAnnotator: u }) => [
|
|
1051
|
-
p(l.$slots, "optionAnnotator", z(A({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
|
|
1052
|
-
]),
|
|
1053
|
-
key: "9"
|
|
1054
|
-
} : void 0,
|
|
1055
|
-
l.$slots.optionAltCopy ? {
|
|
1056
|
-
name: "optionAltCopy",
|
|
1057
|
-
fn: f(({ altCopy: a }) => [
|
|
1058
|
-
p(l.$slots, "optionAltCopy", z(A({ altCopy: a })), void 0, !0)
|
|
1059
|
-
]),
|
|
1060
|
-
key: "10"
|
|
1061
|
-
} : void 0
|
|
1062
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
|
|
1063
|
-
(s(), r("svg", {
|
|
1064
|
-
ref_key: "svgRef",
|
|
1065
|
-
ref: me,
|
|
1066
|
-
xmlns: i(al),
|
|
1067
|
-
class: O({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
1068
|
-
viewBox: `${v.value.startX} ${v.value.startY} ${v.value.width} ${v.value.height}`,
|
|
1069
|
-
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
1070
|
-
id: `svg_${w.value}`
|
|
1071
|
-
}, [
|
|
1072
|
-
he(i(Ct)),
|
|
1073
|
-
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
1074
|
-
key: 0,
|
|
1075
|
-
x: v.value.startX,
|
|
1076
|
-
y: v.value.startY,
|
|
1077
|
-
width: v.value.width,
|
|
1078
|
-
height: v.value.height,
|
|
1079
|
-
style: {
|
|
1080
|
-
pointerEvents: "none"
|
|
1081
|
-
}
|
|
1082
|
-
}, [
|
|
1083
|
-
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
1084
|
-
], 8, Al)) : y("", !0),
|
|
1085
|
-
d("defs", null, [
|
|
1086
|
-
(s(!0), r(q, null, M(X.value, (a, u) => (s(), r("radialGradient", {
|
|
1087
|
-
cx: "50%",
|
|
1088
|
-
cy: "50%",
|
|
1089
|
-
r: "50%",
|
|
1090
|
-
fx: "50%",
|
|
1091
|
-
fy: "50%",
|
|
1092
|
-
id: `quadrant_gradient_${w.value}_${u}`
|
|
1093
|
-
}, [
|
|
1094
|
-
d("stop", {
|
|
1095
|
-
offset: "0%",
|
|
1096
|
-
"stop-color": i(ye)(i(ol)(a.color, 0.05), e.value.style.chart.layout.areas.opacity)
|
|
1097
|
-
}, null, 8, Xl),
|
|
1098
|
-
d("stop", {
|
|
1099
|
-
offset: "100%",
|
|
1100
|
-
"stop-color": i(ye)(a.color, e.value.style.chart.layout.areas.opacity)
|
|
1101
|
-
}, null, 8, Yl)
|
|
1102
|
-
], 8, Wl))), 256))
|
|
1103
|
-
]),
|
|
1104
|
-
e.value.style.chart.layout.grid.graduations.show ? (s(), r("g", Ol, [
|
|
1105
|
-
(s(!0), r(q, null, M(Xt.value, (a) => (s(), r("rect", {
|
|
1106
|
-
fill: e.value.style.chart.layout.grid.graduations.fill ? i(ye)(e.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
1107
|
-
x: a.x,
|
|
1108
|
-
y: a.y,
|
|
1109
|
-
height: a.height <= 0 ? 1e-3 : a.height,
|
|
1110
|
-
width: a.width <= 0 ? 1e-3 : a.width,
|
|
1111
|
-
"stroke-width": e.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
1112
|
-
stroke: e.value.style.chart.layout.grid.graduations.stroke,
|
|
1113
|
-
rx: e.value.style.chart.layout.grid.graduations.roundingForce
|
|
1114
|
-
}, null, 8, Pl))), 256))
|
|
1115
|
-
])) : y("", !0),
|
|
1116
|
-
d("line", {
|
|
1117
|
-
x1: t.value.left,
|
|
1118
|
-
y1: t.value.centerY,
|
|
1119
|
-
x2: t.value.right,
|
|
1120
|
-
y2: t.value.centerY,
|
|
1121
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1122
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1123
|
-
}, null, 8, Ml),
|
|
1124
|
-
d("line", {
|
|
1125
|
-
x1: t.value.centerX,
|
|
1126
|
-
y1: t.value.top,
|
|
1127
|
-
x2: t.value.centerX,
|
|
1128
|
-
y2: t.value.bottom,
|
|
1129
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1130
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1131
|
-
}, null, 8, Nl),
|
|
1132
|
-
e.value.style.chart.layout.grid.showArrows ? (s(), r("g", Bl, [
|
|
1133
|
-
d("polygon", {
|
|
1134
|
-
points: `${t.value.right - 8},${t.value.centerY - 6} ${t.value.right},${t.value.centerY} ${t.value.right - 8},${t.value.centerY + 6}`,
|
|
1135
|
-
fill: e.value.style.chart.layout.grid.stroke,
|
|
1136
|
-
stroke: "none"
|
|
1137
|
-
}, null, 8, Fl),
|
|
1138
|
-
d("polygon", {
|
|
1139
|
-
points: `${t.value.left + 8},${t.value.centerY - 6} ${t.value.left},${t.value.centerY} ${t.value.left + 8},${t.value.centerY + 6}`,
|
|
1140
|
-
fill: e.value.style.chart.layout.grid.stroke,
|
|
1141
|
-
stroke: "none"
|
|
1142
|
-
}, null, 8, Rl),
|
|
1143
|
-
d("polygon", {
|
|
1144
|
-
points: `${t.value.centerX - 6},${t.value.top + 8} ${t.value.centerX},${t.value.top} ${t.value.centerX + 6},${t.value.top + 8}`,
|
|
1145
|
-
fill: e.value.style.chart.layout.grid.stroke,
|
|
1146
|
-
stroke: "none"
|
|
1147
|
-
}, null, 8, Vl),
|
|
1148
|
-
d("polygon", {
|
|
1149
|
-
points: `${t.value.centerX - 6},${t.value.bottom - 8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX + 6},${t.value.bottom - 8}`,
|
|
1150
|
-
fill: e.value.style.chart.layout.grid.stroke,
|
|
1151
|
-
stroke: "none"
|
|
1152
|
-
}, null, 8, Il)
|
|
1153
|
-
])) : y("", !0),
|
|
1154
|
-
e.value.style.chart.layout.labels.quadrantLabels.show && !x.value ? (s(), r("g", Dl, [
|
|
1155
|
-
e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (s(), r("text", {
|
|
1156
|
-
key: 0,
|
|
1157
|
-
x: 0,
|
|
1158
|
-
y: t.value.top - t.value.padding / 2,
|
|
1159
|
-
"text-anchor": "start",
|
|
1160
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1161
|
-
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1162
|
-
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1163
|
-
onClick: o[0] || (o[0] = (a) => te("tl"))
|
|
1164
|
-
}, k(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, Hl)) : y("", !0),
|
|
1165
|
-
e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (s(), r("text", {
|
|
1166
|
-
key: 1,
|
|
1167
|
-
x: t.value.width,
|
|
1168
|
-
y: t.value.top - t.value.padding / 2,
|
|
1169
|
-
"text-anchor": "end",
|
|
1170
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1171
|
-
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1172
|
-
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1173
|
-
onClick: o[1] || (o[1] = (a) => te("tr"))
|
|
1174
|
-
}, k(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, Ul)) : y("", !0),
|
|
1175
|
-
e.value.style.chart.layout.labels.quadrantLabels.br.text ? (s(), r("text", {
|
|
1176
|
-
key: 2,
|
|
1177
|
-
x: t.value.width,
|
|
1178
|
-
y: t.value.bottom + t.value.padding * 0.7,
|
|
1179
|
-
"text-anchor": "end",
|
|
1180
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1181
|
-
"font-size": e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1182
|
-
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1183
|
-
onClick: o[2] || (o[2] = (a) => te("br"))
|
|
1184
|
-
}, k(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13, El)) : y("", !0),
|
|
1185
|
-
e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (s(), r("text", {
|
|
1186
|
-
key: 3,
|
|
1187
|
-
x: 0,
|
|
1188
|
-
y: t.value.bottom + t.value.padding * 0.7,
|
|
1189
|
-
"text-anchor": "start",
|
|
1190
|
-
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1191
|
-
"font-size": e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1192
|
-
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1193
|
-
onClick: o[3] || (o[3] = (a) => te("bl"))
|
|
1194
|
-
}, k(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, Ql)) : y("", !0)
|
|
1195
|
-
])) : y("", !0),
|
|
1196
|
-
e.value.style.chart.layout.labels.axisLabels.show ? (s(), r("g", Gl, [
|
|
1197
|
-
d("text", {
|
|
1198
|
-
x: t.value.centerX,
|
|
1199
|
-
y: t.value.top - t.value.padding / 6,
|
|
1200
|
-
"text-anchor": "middle",
|
|
1201
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1202
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1203
|
-
}, k(i(I)(
|
|
1204
|
-
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1205
|
-
T.value.y.max,
|
|
1206
|
-
i(D)({
|
|
1207
|
-
v: T.value.y.max,
|
|
1208
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1209
|
-
})
|
|
1210
|
-
)), 9, jl),
|
|
1211
|
-
d("text", {
|
|
1212
|
-
x: t.value.centerX,
|
|
1213
|
-
y: t.value.top - t.value.padding / 2,
|
|
1214
|
-
"text-anchor": "middle",
|
|
1215
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1216
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1217
|
-
}, k(e.value.style.chart.layout.grid.yAxis.name), 9, Jl),
|
|
1218
|
-
d("text", {
|
|
1219
|
-
x: t.value.centerX,
|
|
1220
|
-
y: t.value.bottom + t.value.padding * 0.35,
|
|
1221
|
-
"text-anchor": "middle",
|
|
1222
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1223
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1224
|
-
}, k(i(I)(
|
|
1225
|
-
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1226
|
-
T.value.y.min,
|
|
1227
|
-
i(D)({
|
|
1228
|
-
v: T.value.y.min,
|
|
1229
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1230
|
-
})
|
|
1231
|
-
)), 9, Zl),
|
|
1232
|
-
d("text", {
|
|
1233
|
-
id: `xLabelMin_${w.value}`,
|
|
1234
|
-
"text-anchor": "middle",
|
|
1235
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1236
|
-
transform: `translate(${t.value.padding - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(-90)`,
|
|
1237
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1238
|
-
}, k(i(I)(
|
|
1239
|
-
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1240
|
-
T.value.x.min,
|
|
1241
|
-
i(D)({
|
|
1242
|
-
v: T.value.x.min,
|
|
1243
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1244
|
-
})
|
|
1245
|
-
)), 9, Kl),
|
|
1246
|
-
d("text", {
|
|
1247
|
-
id: `xLabelMax_${w.value}`,
|
|
1248
|
-
"text-anchor": "middle",
|
|
1249
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1250
|
-
transform: `translate(${t.value.width - t.value.padding + e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1251
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1252
|
-
}, k(i(I)(
|
|
1253
|
-
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1254
|
-
T.value.x.max,
|
|
1255
|
-
i(D)({
|
|
1256
|
-
v: T.value.x.max,
|
|
1257
|
-
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1258
|
-
})
|
|
1259
|
-
)), 9, ea),
|
|
1260
|
-
d("text", {
|
|
1261
|
-
id: `xLabelMaxName_${w.value}`,
|
|
1262
|
-
"text-anchor": "middle",
|
|
1263
|
-
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1264
|
-
transform: `translate(${t.value.width - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1265
|
-
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1266
|
-
}, k(e.value.style.chart.layout.grid.xAxis.name), 9, ta)
|
|
1267
|
-
])) : y("", !0),
|
|
1268
|
-
e.value.style.chart.layout.areas.show ? (s(), r("g", la, [
|
|
1269
|
-
(s(!0), r(q, null, M(X.value, (a, u) => (s(), r("g", null, [
|
|
1270
|
-
a.series.length > 2 ? (s(), r("polygon", {
|
|
1271
|
-
key: 0,
|
|
1272
|
-
"data-cy-quadrant-area": "",
|
|
1273
|
-
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${w.value}_${u})` : i(ye)(a.color, e.value.style.chart.layout.areas.opacity),
|
|
1274
|
-
points: i(ul)(a)
|
|
1275
|
-
}, null, 8, aa)) : y("", !0)
|
|
1276
|
-
]))), 256))
|
|
1277
|
-
])) : y("", !0),
|
|
1278
|
-
d("g", null, [
|
|
1279
|
-
d("rect", {
|
|
1280
|
-
onClick: o[4] || (o[4] = (a) => R("TL")),
|
|
1281
|
-
x: t.value.left,
|
|
1282
|
-
y: t.value.top,
|
|
1283
|
-
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1284
|
-
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1285
|
-
fill: "transparent",
|
|
1286
|
-
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1287
|
-
}, null, 10, oa),
|
|
1288
|
-
d("rect", {
|
|
1289
|
-
onClick: o[5] || (o[5] = (a) => R("TR")),
|
|
1290
|
-
x: t.value.centerX,
|
|
1291
|
-
y: t.value.top,
|
|
1292
|
-
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1293
|
-
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1294
|
-
fill: "transparent",
|
|
1295
|
-
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1296
|
-
}, null, 10, ua),
|
|
1297
|
-
d("rect", {
|
|
1298
|
-
onClick: o[6] || (o[6] = (a) => R("BR")),
|
|
1299
|
-
x: t.value.centerX,
|
|
1300
|
-
y: t.value.centerY,
|
|
1301
|
-
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1302
|
-
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1303
|
-
fill: "transparent",
|
|
1304
|
-
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1305
|
-
}, null, 10, sa),
|
|
1306
|
-
d("rect", {
|
|
1307
|
-
onClick: o[7] || (o[7] = (a) => R("BL")),
|
|
1308
|
-
x: t.value.left,
|
|
1309
|
-
y: t.value.centerY,
|
|
1310
|
-
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1311
|
-
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1312
|
-
fill: "transparent",
|
|
1313
|
-
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1314
|
-
}, null, 10, na)
|
|
1315
|
-
]),
|
|
1316
|
-
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (s(), r(q, { key: 7 }, [
|
|
1317
|
-
$.value.plotLabels.show ? (s(), r("g", da, [
|
|
1318
|
-
(s(!0), r(q, null, M(X.value, (a, u) => (s(), r(q, null, [
|
|
1319
|
-
(s(!0), r(q, null, M(a.series, (n) => (s(), r("foreignObject", {
|
|
1320
|
-
style: { overflow: "visible" },
|
|
1321
|
-
height: "10",
|
|
1322
|
-
width: "100",
|
|
1323
|
-
x: n.x - 50,
|
|
1324
|
-
y: n.y - e.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1325
|
-
onMouseover: (b) => Ce(a, n, u),
|
|
1326
|
-
onMouseleave: (b) => Se(n, u),
|
|
1327
|
-
onClick: (b) => _e(a, n, u)
|
|
1328
|
-
}, [
|
|
1329
|
-
d("div", {
|
|
1330
|
-
style: _(`color:${i(nl)(a.color)};margin: 0 auto; font-size:${e.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
|
|
1331
|
-
}, k(n.name), 5)
|
|
1332
|
-
], 40, ha))), 256))
|
|
1333
|
-
], 64))), 256))
|
|
1334
|
-
])) : y("", !0)
|
|
1335
|
-
], 64)) : (s(), r(q, { key: 6 }, [
|
|
1336
|
-
(s(!0), r(q, null, M(X.value, (a, u) => (s(), r("g", null, [
|
|
1337
|
-
l.$slots.datapoint && !i(se) ? (s(!0), r(q, { key: 0 }, M(a.series, (n) => (s(), r("foreignObject", {
|
|
1338
|
-
x: n.x - 1,
|
|
1339
|
-
y: n.y - 1,
|
|
1340
|
-
width: "2",
|
|
1341
|
-
height: "2",
|
|
1342
|
-
style: { overflow: "visible" },
|
|
1343
|
-
onMouseenter: (b) => Ce(a, n, u),
|
|
1344
|
-
onMouseleave: (b) => Se(n, u),
|
|
1345
|
-
onClick: (b) => _e(a, n, u)
|
|
1346
|
-
}, [
|
|
1347
|
-
p(l.$slots, "datapoint", dt({ ref_for: !0 }, { datapoint: n }), void 0, !0)
|
|
1348
|
-
], 40, ra))), 256)) : (s(!0), r(q, { key: 1 }, M(a.series, (n) => (s(), P(bt, {
|
|
1349
|
-
color: a.color,
|
|
1350
|
-
isSelected: ve.value && n.uid === ve.value,
|
|
1351
|
-
plot: n,
|
|
1352
|
-
radius: e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1),
|
|
1353
|
-
shape: a.shape,
|
|
1354
|
-
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1355
|
-
strokeWidth: e.value.style.chart.layout.plots.outlineWidth,
|
|
1356
|
-
onMouseenter: (b) => Ce(a, n, u),
|
|
1357
|
-
onMouseleave: (b) => Se(n, u),
|
|
1358
|
-
onClick: (b) => _e(a, n, u)
|
|
1359
|
-
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]))), 256))
|
|
1360
|
-
]))), 256)),
|
|
1361
|
-
$.value.plotLabels.show ? (s(), r("g", ia, [
|
|
1362
|
-
(s(!0), r(q, null, M(X.value, (a) => (s(), r("g", null, [
|
|
1363
|
-
(s(!0), r(q, null, M(a.series, (u) => (s(), r("g", null, [
|
|
1364
|
-
String(u.name).includes(`
|
|
1365
|
-
`) ? (s(), r("text", {
|
|
1366
|
-
key: 1,
|
|
1367
|
-
x: u.x,
|
|
1368
|
-
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1369
|
-
"text-anchor": "middle",
|
|
1370
|
-
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1371
|
-
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1372
|
-
innerHTML: i(sl)({
|
|
1373
|
-
content: String(u.name),
|
|
1374
|
-
fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1375
|
-
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1376
|
-
x: u.x,
|
|
1377
|
-
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius
|
|
1378
|
-
})
|
|
1379
|
-
}, null, 8, ca)) : (s(), r("text", {
|
|
1380
|
-
key: 0,
|
|
1381
|
-
x: u.x,
|
|
1382
|
-
y: u.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1383
|
-
"text-anchor": "middle",
|
|
1384
|
-
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1385
|
-
fill: e.value.style.chart.layout.labels.plotLabels.color
|
|
1386
|
-
}, k(u.name), 9, va))
|
|
1387
|
-
]))), 256))
|
|
1388
|
-
]))), 256))
|
|
1389
|
-
])) : y("", !0)
|
|
1390
|
-
], 64)),
|
|
1391
|
-
x.value ? (s(), r("g", ya, [
|
|
1392
|
-
c.value === "TL" ? (s(), r("polygon", {
|
|
1393
|
-
key: 0,
|
|
1394
|
-
points: `${t.value.left - 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top - 1} ${t.value.right},${t.value.top - 1} ${t.value.right},${t.value.bottom} ${t.value.left - 1},${t.value.bottom} ${t.value.left - 1},${t.value.centerY}`,
|
|
1395
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1396
|
-
style: { opacity: "1" }
|
|
1397
|
-
}, null, 8, ba)) : y("", !0),
|
|
1398
|
-
c.value === "TR" ? (s(), r("polygon", {
|
|
1399
|
-
key: 1,
|
|
1400
|
-
points: `${t.value.left},${t.value.top - 1} ${t.value.centerX},${t.value.top - 1} ${t.value.centerX},${t.value.centerY} ${t.value.right + 1},${t.value.centerY} ${t.value.right + 1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top - 1}`,
|
|
1401
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1402
|
-
style: { opacity: "1" }
|
|
1403
|
-
}, null, 8, fa)) : y("", !0),
|
|
1404
|
-
c.value === "BR" ? (s(), r("polygon", {
|
|
1405
|
-
key: 2,
|
|
1406
|
-
points: `${t.value.left},${t.value.top} ${t.value.right + 1},${t.value.top} ${t.value.right + 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom + 1} ${t.value.left},${t.value.bottom + 1} ${t.value.left},${t.value.top}`,
|
|
1407
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1408
|
-
style: { opacity: "1" }
|
|
1409
|
-
}, null, 8, pa)) : y("", !0),
|
|
1410
|
-
c.value === "BL" ? (s(), r("polygon", {
|
|
1411
|
-
key: 3,
|
|
1412
|
-
points: `${t.value.left - 1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom + 1} ${t.value.centerX},${t.value.bottom + 1} ${t.value.centerX},${t.value.centerY} ${t.value.left - 1},${t.value.centerY} ${t.value.left - 1},${t.value.top}`,
|
|
1413
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1414
|
-
style: { opacity: "1" }
|
|
1415
|
-
}, null, 8, ga)) : y("", !0)
|
|
1416
|
-
])) : y("", !0),
|
|
1417
|
-
c.value && !ne.value ? (s(), r("g", ma, [
|
|
1418
|
-
d("text", {
|
|
1419
|
-
x: H.value.x,
|
|
1420
|
-
y: H.value.y - H.value.fontSize / 1.5,
|
|
1421
|
-
"font-size": H.value.fontSize / 1.5,
|
|
1422
|
-
fill: H.value.fill,
|
|
1423
|
-
"text-anchor": "middle",
|
|
1424
|
-
"font-weight": H.value.bold ? "bold" : "normal"
|
|
1425
|
-
}, k(H.value.text), 9, xa)
|
|
1426
|
-
])) : y("", !0),
|
|
1427
|
-
x.value && c.value ? (s(), r("g", $a, [
|
|
1428
|
-
d("rect", {
|
|
1429
|
-
x: S.value[c.value].tl.x,
|
|
1430
|
-
y: S.value[c.value].tl.y,
|
|
1431
|
-
height: "20",
|
|
1432
|
-
width: "20",
|
|
1433
|
-
fill: S.value[c.value].tl.fill,
|
|
1434
|
-
style: _(`cursor: ${W.value ? "pointer" : "default"}; opacity: ${c.value === "TL" ? 1 : 0.2}`),
|
|
1435
|
-
onClick: o[8] || (o[8] = (a) => R("TL")),
|
|
1436
|
-
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "TL" })
|
|
1437
|
-
}, null, 14, ka),
|
|
1438
|
-
d("rect", {
|
|
1439
|
-
x: S.value[c.value].tr.x,
|
|
1440
|
-
y: S.value[c.value].tr.y,
|
|
1441
|
-
height: "20",
|
|
1442
|
-
width: "20",
|
|
1443
|
-
fill: S.value[c.value].tr.fill,
|
|
1444
|
-
style: _(`cursor: ${W.value ? "pointer" : "default"}; opacity: ${c.value === "TR" ? 1 : 0.2}`),
|
|
1445
|
-
onClick: o[9] || (o[9] = (a) => R("TR")),
|
|
1446
|
-
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "TR" })
|
|
1447
|
-
}, null, 14, La),
|
|
1448
|
-
d("rect", {
|
|
1449
|
-
x: S.value[c.value].br.x,
|
|
1450
|
-
y: S.value[c.value].br.y,
|
|
1451
|
-
height: "20",
|
|
1452
|
-
width: "20",
|
|
1453
|
-
fill: S.value[c.value].br.fill,
|
|
1454
|
-
style: _(`cursor: ${W.value ? "pointer" : "default"}; opacity: ${c.value === "BR" ? 1 : 0.2}`),
|
|
1455
|
-
onClick: o[10] || (o[10] = (a) => R("BR")),
|
|
1456
|
-
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "BR" })
|
|
1457
|
-
}, null, 14, wa),
|
|
1458
|
-
d("rect", {
|
|
1459
|
-
x: S.value[c.value].bl.x,
|
|
1460
|
-
y: S.value[c.value].bl.y,
|
|
1461
|
-
height: "20",
|
|
1462
|
-
width: "20",
|
|
1463
|
-
fill: S.value[c.value].bl.fill,
|
|
1464
|
-
style: _(`cursor: ${W.value ? "pointer" : "default"}; opacity: ${c.value === "BL" ? 1 : 0.2}`),
|
|
1465
|
-
onClick: o[11] || (o[11] = (a) => R("BL")),
|
|
1466
|
-
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": c.value !== "BL" })
|
|
1467
|
-
}, null, 14, Ca),
|
|
1468
|
-
d("path", {
|
|
1469
|
-
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1470
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1471
|
-
"stroke-width": 1,
|
|
1472
|
-
d: S.value[c.value].crosshairs.horizontal
|
|
1473
|
-
}, null, 8, Sa),
|
|
1474
|
-
d("path", {
|
|
1475
|
-
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1476
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1477
|
-
"stroke-width": 1,
|
|
1478
|
-
d: S.value[c.value].crosshairs.vertical
|
|
1479
|
-
}, null, 8, _a)
|
|
1480
|
-
])) : y("", !0),
|
|
1481
|
-
p(l.$slots, "svg", {
|
|
1482
|
-
svg: {
|
|
1483
|
-
...t.value,
|
|
1484
|
-
isPrintingImg: i($e) | i(ke) | oe.value,
|
|
1485
|
-
isPrintingSvg: ue.value
|
|
1486
|
-
}
|
|
1487
|
-
}, void 0, !0)
|
|
1488
|
-
], 14, zl)),
|
|
1489
|
-
l.$slots.watermark ? (s(), r("div", qa, [
|
|
1490
|
-
p(l.$slots, "watermark", z(A({ isPrinting: i($e) || i(ke) || oe.value || ue.value })), void 0, !0)
|
|
1491
|
-
])) : y("", !0),
|
|
1492
|
-
d("div", {
|
|
1493
|
-
id: `legend-bottom-${w.value}`
|
|
1494
|
-
}, null, 8, Ta),
|
|
1495
|
-
Ie.value ? (s(), P(Gt, {
|
|
1496
|
-
key: 5,
|
|
1497
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1498
|
-
}, [
|
|
1499
|
-
d("div", {
|
|
1500
|
-
ref_key: "chartLegend",
|
|
1501
|
-
ref: Me
|
|
1502
|
-
}, [
|
|
1503
|
-
e.value.style.chart.legend.show ? (s(), P(Cl, {
|
|
1504
|
-
key: `legend_${Ve.value}`,
|
|
1505
|
-
legendSet: U.value,
|
|
1506
|
-
config: Nt.value,
|
|
1507
|
-
isCursorPointer: W.value,
|
|
1508
|
-
onClickMarker: o[12] || (o[12] = ({ legend: a }) => ee(a.id))
|
|
1509
|
-
}, {
|
|
1510
|
-
item: f(({ legend: a }) => [
|
|
1511
|
-
i(se) ? y("", !0) : (s(), r("div", {
|
|
1512
|
-
key: 0,
|
|
1513
|
-
onClick: (u) => ee(a.id),
|
|
1514
|
-
style: _(`opacity:${C.value.includes(a.id) ? 0.5 : 1}`)
|
|
1515
|
-
}, k(a.name), 13, za))
|
|
1516
|
-
]),
|
|
1517
|
-
legendToggle: f(() => [
|
|
1518
|
-
U.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(se) ? (s(), P(Sl, {
|
|
1519
|
-
key: 0,
|
|
1520
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1521
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1522
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
1523
|
-
checked: C.value.length > 0,
|
|
1524
|
-
isCursorPointer: W.value,
|
|
1525
|
-
onToggle: Ot
|
|
1526
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : y("", !0)
|
|
1527
|
-
]),
|
|
1528
|
-
_: 1
|
|
1529
|
-
}, 8, ["legendSet", "config", "isCursorPointer"])) : p(l.$slots, "legend", {
|
|
1530
|
-
key: 1,
|
|
1531
|
-
legend: U.value
|
|
1532
|
-
}, void 0, !0)
|
|
1533
|
-
], 512)
|
|
1534
|
-
], 8, ["to"])) : y("", !0),
|
|
1535
|
-
l.$slots.source ? (s(), r("div", {
|
|
1536
|
-
key: 6,
|
|
1537
|
-
ref_key: "source",
|
|
1538
|
-
ref: Ne,
|
|
1539
|
-
dir: "auto"
|
|
1540
|
-
}, [
|
|
1541
|
-
p(l.$slots, "source", {}, void 0, !0)
|
|
1542
|
-
], 512)) : y("", !0),
|
|
1543
|
-
he(i(mt), {
|
|
1544
|
-
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1545
|
-
show: $.value.showTooltip && be.value,
|
|
1546
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1547
|
-
color: e.value.style.chart.tooltip.color,
|
|
1548
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1549
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1550
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1551
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1552
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1553
|
-
position: e.value.style.chart.tooltip.position,
|
|
1554
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1555
|
-
parent: N.value,
|
|
1556
|
-
content: fe.value,
|
|
1557
|
-
isFullscreen: E.value,
|
|
1558
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1559
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
1560
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1561
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1562
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1563
|
-
}, {
|
|
1564
|
-
"tooltip-before": f(() => [
|
|
1565
|
-
p(l.$slots, "tooltip-before", z(A({ ...we.value })), void 0, !0)
|
|
1566
|
-
]),
|
|
1567
|
-
"tooltip-after": f(() => [
|
|
1568
|
-
p(l.$slots, "tooltip-after", z(A({ ...we.value })), void 0, !0)
|
|
1569
|
-
]),
|
|
1570
|
-
default: f(() => [
|
|
1571
|
-
e.value.style.chart.tooltip.showShape ? (s(), r("svg", Aa, [
|
|
1572
|
-
he(bt, {
|
|
1573
|
-
plot: { x: 10, y: 10 },
|
|
1574
|
-
shape: ce.value.shape,
|
|
1575
|
-
color: ce.value.color,
|
|
1576
|
-
radius: 8,
|
|
1577
|
-
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1578
|
-
"stroke-width": e.value.style.chart.layout.plots.outlineWidth
|
|
1579
|
-
}, null, 8, ["shape", "color", "stroke", "stroke-width"])
|
|
1580
|
-
])) : y("", !0)
|
|
1581
|
-
]),
|
|
1582
|
-
_: 3
|
|
1583
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1584
|
-
Ye.value && e.value.userOptions.buttons.table ? (s(), P(jt(le.value.component), dt({ key: 7 }, le.value.props, {
|
|
1585
|
-
ref_key: "tableUnit",
|
|
1586
|
-
ref: Z,
|
|
1587
|
-
onClose: st
|
|
1588
|
-
}), ct({
|
|
1589
|
-
content: f(() => [
|
|
1590
|
-
(s(), P(i(kt), {
|
|
1591
|
-
key: `table_${Re.value}`,
|
|
1592
|
-
colNames: ie.value.colNames,
|
|
1593
|
-
head: ie.value.head,
|
|
1594
|
-
body: ie.value.body,
|
|
1595
|
-
config: ie.value.config,
|
|
1596
|
-
title: e.value.table.useDialog ? "" : le.value.title,
|
|
1597
|
-
withCloseButton: !e.value.table.useDialog,
|
|
1598
|
-
isCursorPointer: W.value,
|
|
1599
|
-
onClose: st
|
|
1600
|
-
}, {
|
|
1601
|
-
th: f(({ th: a }) => [
|
|
1602
|
-
ht(k(a), 1)
|
|
1603
|
-
]),
|
|
1604
|
-
td: f(({ td: a }) => [
|
|
1605
|
-
d("div", {
|
|
1606
|
-
innerHTML: a.name || a
|
|
1607
|
-
}, null, 8, Wa)
|
|
1608
|
-
]),
|
|
1609
|
-
_: 1
|
|
1610
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1611
|
-
]),
|
|
1612
|
-
_: 2
|
|
1613
|
-
}, [
|
|
1614
|
-
e.value.table.useDialog ? {
|
|
1615
|
-
name: "title",
|
|
1616
|
-
fn: f(() => [
|
|
1617
|
-
ht(k(le.value.title), 1)
|
|
1618
|
-
]),
|
|
1619
|
-
key: "0"
|
|
1620
|
-
} : void 0,
|
|
1621
|
-
e.value.table.useDialog ? {
|
|
1622
|
-
name: "actions",
|
|
1623
|
-
fn: f(() => [
|
|
1624
|
-
d("button", {
|
|
1625
|
-
tabindex: "0",
|
|
1626
|
-
class: "vue-ui-user-options-button",
|
|
1627
|
-
onClick: o[13] || (o[13] = (a) => qe(e.value.userOptions.callbacks.csv)),
|
|
1628
|
-
style: _({ cursor: W.value ? "pointer" : "default" })
|
|
1629
|
-
}, [
|
|
1630
|
-
he(i(xt), {
|
|
1631
|
-
name: "fileCsv",
|
|
1632
|
-
stroke: le.value.props.color
|
|
1633
|
-
}, null, 8, ["stroke"])
|
|
1634
|
-
], 4)
|
|
1635
|
-
]),
|
|
1636
|
-
key: "1"
|
|
1637
|
-
} : void 0
|
|
1638
|
-
]), 1040)) : y("", !0),
|
|
1639
|
-
p(l.$slots, "skeleton", {}, () => [
|
|
1640
|
-
i(se) ? (s(), P(fl, { key: 0 })) : y("", !0)
|
|
1641
|
-
], !0)
|
|
1642
|
-
], 46, ql));
|
|
1643
|
-
}
|
|
1644
|
-
}, Za = /* @__PURE__ */ _l(Xa, [["__scopeId", "data-v-2b3162a9"]]);
|
|
1645
|
-
export {
|
|
1646
|
-
Za as default
|
|
1647
|
-
};
|