vue-data-ui 3.6.0 → 3.7.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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as $, computed as h, ref as i, toRefs as Ht, watch as q, shallowRef as Xe, onMounted as Ut, onBeforeUnmount as Ye, watchEffect as Vt, createElementBlock as u, openBlock as r, unref as c, normalizeStyle as J, normalizeClass as R, createBlock as O, createCommentVNode as f, createVNode as ge, withCtx as v, renderSlot as d, normalizeProps as m, guardReactiveProps as C, createSlots as qe, createElementVNode as k, Fragment as x, renderList as T, toDisplayString as S, mergeProps as Je, resolveDynamicComponent as jt, createTextVNode as Ke, nextTick as Xt } from "vue";
|
|
2
|
+
import { c as me, t as Yt, i as qt, p as P, o as Qe, g as Ce, k as Ze, j as Jt, l as et, M as Kt, F as Qt, d as K, X as Zt, a as ke, U as el, ao as tl, n as ll, r as al, x as tt, Y as ol, u as sl, q as rl, R as nl } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as lt, u as ul } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as il, a as xe } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as cl, B as vl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as dl } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as hl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as bl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as yl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import gl from "./img-DUzJeMlr.js";
|
|
13
|
+
import { _ as ml } from "./Shape-DE6X_t31.js";
|
|
14
|
+
import Cl from "./Title-DfFUb9hd.js";
|
|
15
|
+
import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", grid: { stroke: "#5A5A5A", horizontalGrid: { stroke: "#4A4A4A" }, verticalGrid: { stroke: "#4A4A4A" } }, plots: { stroke: "#1A1A1A" }, labels: { bestPlotLabel: { color: "#CCCCCC" }, axis: { color: "#CCCCCC" }, xAxisLabels: { color: "#CCCCCC" }, yAxisLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, ot = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", grid: { stroke: "#5D4037", horizontalGrid: { show: !1 }, verticalGrid: { show: !1 } }, plots: { stroke: "#FFF8E1" }, labels: { bestPlotLabel: { color: "#424242" }, axis: { color: "#424242" }, xAxisLabels: { color: "#424242" }, yAxisLabels: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, st = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", grid: { stroke: "#5D4037", horizontalGrid: { show: !1 }, verticalGrid: { show: !1 } }, plots: { stroke: "#1E1E1E" }, labels: { bestPlotLabel: { color: "#BDBDBD" }, axis: { color: "#BDBDBD" }, xAxisLabels: { color: "#BDBDBD" }, yAxisLabels: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", grid: { stroke: "#5F6A5F", horizontalGrid: { show: !1 }, verticalGrid: { show: !1 } }, plots: { stroke: "#00FF00" }, labels: { bestPlotLabel: { color: "#AACCAA" }, axis: { color: "#99CC99" }, xAxisLabels: { color: "#99CC99" }, yAxisLabels: { color: "#99CC99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, nt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", grid: { show: !1, horizontalGrid: { show: !1 }, verticalGrid: { show: !1 } }, plots: { stroke: "#fbfafa" }, labels: { bestPlotLabel: { color: "#A0AC94" }, axis: { color: "#A0AC94" }, xAxisLabels: { color: "#A0AC94" }, yAxisLabels: { show: !1, color: "#A0AC94" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, ut = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", grid: { stroke: "#829C98", horizontalGrid: { stroke: "#829C98" }, verticalGrid: { stroke: "#829C98" } }, plots: { stroke: "#404C5A" }, labels: { bestPlotLabel: { color: "#61747E" }, axis: { color: "#61747E" }, xAxisLabels: { color: "#61747E" }, yAxisLabels: { color: "#61747E" } }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, it = {
|
|
17
|
+
default: {},
|
|
18
|
+
dark: at,
|
|
19
|
+
celebration: ot,
|
|
20
|
+
celebrationNight: st,
|
|
21
|
+
hack: rt,
|
|
22
|
+
zen: nt,
|
|
23
|
+
concrete: ut
|
|
24
|
+
}, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: ot,
|
|
27
|
+
celebrationNight: st,
|
|
28
|
+
concrete: ut,
|
|
29
|
+
dark: at,
|
|
30
|
+
default: it,
|
|
31
|
+
hack: rt,
|
|
32
|
+
zen: nt
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), xl = ["id"], Al = ["xmlns", "viewBox"], wl = ["x", "y", "width", "height"], Ll = { key: 1 }, _l = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Tl = { key: 1 }, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x", "y", "fill", "font-size"], Pl = ["transform", "font-size", "fill", "text-anchor"], zl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], Bl = ["fill", "font-size", "transform"], El = ["fill", "font-size", "x", "y"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Ml = ["cx", "cy", "fill"], Gl = ["cx", "cy", "fill"], Il = ["id"], Rl = ["stop-color"], Wl = ["stop-color"], Hl = ["stop-color"], Ul = { key: 0 }, Vl = ["x", "y", "font-size", "fill"], jl = {
|
|
17
34
|
key: 4,
|
|
18
35
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
36
|
+
}, Xl = ["innerHTML"], Yl = {
|
|
20
37
|
__name: "vue-ui-strip-plot",
|
|
21
38
|
props: {
|
|
22
39
|
config: {
|
|
@@ -33,16 +50,16 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
33
50
|
}
|
|
34
51
|
},
|
|
35
52
|
emits: ["selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
53
|
+
setup(ct, { expose: vt, emit: dt }) {
|
|
54
|
+
const ht = $(() => import("./Tooltip-WD0Ros6G.js")), bt = $(() => import("./BaseIcon-CofSxalQ.js")), ft = $(() => import("./vue-ui-accordion-DSdZUn2C.js")), pt = $(() => import("./DataTable-CHaOCmsE.js")), yt = $(() => import("./UserOptions-B3I-s3Lw.js")), gt = $(() => import("./PenAndPaper-HCZQTkqi.js")), mt = $(() => import("./PackageVersion-Bq_mtsqr.js")), Ct = $(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_strip_plot: kt } = il(), { isThemeValid: xt, warnInvalidTheme: At } = bl(), g = ct, wt = dt, W = h({
|
|
38
55
|
get() {
|
|
39
|
-
return !!
|
|
56
|
+
return !!g.dataset && g.dataset.length;
|
|
40
57
|
},
|
|
41
58
|
set(t) {
|
|
42
59
|
return t;
|
|
43
60
|
}
|
|
44
|
-
}),
|
|
45
|
-
...
|
|
61
|
+
}), Q = i(me()), Ae = i(0), Z = i(!1), ee = i(""), w = i(null), we = i(null), Le = i(null), _e = i(null), $e = i(!1), Te = i(0), Se = i(0), N = i(null), te = i(null), le = i(null), ae = i(null), H = i(null), oe = i(null), e = i(ce()), { loading: se, FINAL_DATASET: re, manualLoading: ne } = cl({
|
|
62
|
+
...Ht(g),
|
|
46
63
|
FINAL_CONFIG: e,
|
|
47
64
|
prepareConfig: ce,
|
|
48
65
|
skeletonDataset: [
|
|
@@ -92,7 +109,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
92
109
|
]
|
|
93
110
|
}
|
|
94
111
|
],
|
|
95
|
-
skeletonConfig:
|
|
112
|
+
skeletonConfig: Yt({
|
|
96
113
|
defaultConfig: e.value,
|
|
97
114
|
userConfig: {
|
|
98
115
|
userOptions: { show: !1 },
|
|
@@ -131,41 +148,48 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
131
148
|
}
|
|
132
149
|
}
|
|
133
150
|
})
|
|
134
|
-
}), { userOptionsVisible: ue, setUserOptionsVisibility:
|
|
151
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: De, keepUserOptionState: Fe } = fl({ config: e.value }), { svgRef: ie } = pl({ config: e.value.style.chart.title });
|
|
135
152
|
function ce() {
|
|
136
|
-
const t =
|
|
137
|
-
userConfig:
|
|
138
|
-
defaultConfig:
|
|
153
|
+
const t = xe({
|
|
154
|
+
userConfig: g.config,
|
|
155
|
+
defaultConfig: kt
|
|
156
|
+
}), a = t.theme;
|
|
157
|
+
if (!a) return t;
|
|
158
|
+
if (!xt.value(t))
|
|
159
|
+
return At(t), t;
|
|
160
|
+
const l = xe({
|
|
161
|
+
userConfig: it[a] || g.config,
|
|
162
|
+
defaultConfig: t
|
|
163
|
+
}), o = xe({
|
|
164
|
+
userConfig: g.config,
|
|
165
|
+
defaultConfig: l
|
|
139
166
|
});
|
|
140
|
-
return
|
|
141
|
-
...
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}),
|
|
145
|
-
customPalette: Wt[t.theme] || D
|
|
146
|
-
} : t;
|
|
167
|
+
return {
|
|
168
|
+
...o,
|
|
169
|
+
customPalette: o.customPalette.length ? o.customPalette : qt[a] || P
|
|
170
|
+
};
|
|
147
171
|
}
|
|
148
|
-
q(() =>
|
|
149
|
-
se.value || (e.value = ce()), ue.value = !e.value.userOptions.showOnChartHover,
|
|
150
|
-
}, { deep: !0 }), q(() =>
|
|
172
|
+
q(() => g.config, async (t) => {
|
|
173
|
+
se.value || (e.value = ce()), ue.value = !e.value.userOptions.showOnChartHover, Oe(), Te.value += 1, Se.value += 1, p.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, B.value = e.value.style.chart.width, _.value = e.value.style.chart.height, G.value = e.value.style.chart.plots.radius;
|
|
174
|
+
}, { deep: !0 }), q(() => g.dataset, (t) => {
|
|
151
175
|
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
152
176
|
}, { deep: !0 });
|
|
153
|
-
const L = Xe(null),
|
|
154
|
-
|
|
155
|
-
|
|
177
|
+
const L = Xe(null), z = Xe(null);
|
|
178
|
+
Ut(() => {
|
|
179
|
+
Oe();
|
|
156
180
|
});
|
|
157
|
-
const ve =
|
|
158
|
-
function
|
|
159
|
-
if (Qe(
|
|
181
|
+
const ve = h(() => !!e.value.debug);
|
|
182
|
+
function Oe() {
|
|
183
|
+
if (Qe(g.dataset) ? (Ce({
|
|
160
184
|
componentName: "VueUiStripPlot",
|
|
161
185
|
type: "dataset",
|
|
162
186
|
debug: ve.value
|
|
163
|
-
}), ne.value = !0) :
|
|
164
|
-
|
|
187
|
+
}), ne.value = !0) : g.dataset.forEach((t, a) => {
|
|
188
|
+
Ze({
|
|
165
189
|
datasetObject: t,
|
|
166
190
|
requiredAttributes: ["name", "plots"]
|
|
167
191
|
}).forEach((l) => {
|
|
168
|
-
|
|
192
|
+
W.value = !1, Ce({
|
|
169
193
|
componentName: "VueUiStripPlot",
|
|
170
194
|
type: "datasetSerieAttribute",
|
|
171
195
|
property: l,
|
|
@@ -173,11 +197,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
173
197
|
debug: ve.value
|
|
174
198
|
});
|
|
175
199
|
}), t.plots && t.plots.forEach((l, o) => {
|
|
176
|
-
|
|
200
|
+
Ze({
|
|
177
201
|
datasetObject: l,
|
|
178
202
|
requiredAttributes: ["name", "value"]
|
|
179
203
|
}).forEach((n) => {
|
|
180
|
-
|
|
204
|
+
W.value = !1, Ce({
|
|
181
205
|
componentName: "VueUiStripPlot",
|
|
182
206
|
type: "datasetSerieAttribute",
|
|
183
207
|
property: n,
|
|
@@ -186,43 +210,43 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
186
210
|
});
|
|
187
211
|
});
|
|
188
212
|
});
|
|
189
|
-
}), Qe(
|
|
190
|
-
const t =
|
|
191
|
-
const { width: a, height: l } =
|
|
192
|
-
chart:
|
|
193
|
-
title: e.value.style.chart.title.text ?
|
|
194
|
-
source:
|
|
195
|
-
noTitle:
|
|
213
|
+
}), Qe(g.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
214
|
+
const t = lt(() => {
|
|
215
|
+
const { width: a, height: l } = ul({
|
|
216
|
+
chart: w.value,
|
|
217
|
+
title: e.value.style.chart.title.text ? we.value : null,
|
|
218
|
+
source: Le.value,
|
|
219
|
+
noTitle: _e.value
|
|
196
220
|
});
|
|
197
221
|
requestAnimationFrame(() => {
|
|
198
|
-
|
|
222
|
+
_t.value = l, B.value = Math.max(0.1, a), _.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? G.value = ol({
|
|
199
223
|
relator: Math.min(l, a),
|
|
200
224
|
adjuster: 600,
|
|
201
225
|
source: e.value.style.chart.plots.radius,
|
|
202
226
|
threshold: 6,
|
|
203
227
|
fallback: 6
|
|
204
|
-
}) :
|
|
228
|
+
}) : G.value = e.value.style.chart.plots.radius;
|
|
205
229
|
});
|
|
206
230
|
});
|
|
207
|
-
L.value && (
|
|
231
|
+
L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect()), L.value = new ResizeObserver(t), z.value = w.value.parentNode, L.value.observe(z.value);
|
|
208
232
|
}
|
|
209
233
|
$e.value = !0, setTimeout(() => {
|
|
210
|
-
|
|
211
|
-
},
|
|
234
|
+
M.value = !1;
|
|
235
|
+
}, Dt.value * 50);
|
|
212
236
|
}
|
|
213
237
|
Ye(() => {
|
|
214
|
-
L.value && (
|
|
238
|
+
L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect());
|
|
215
239
|
});
|
|
216
|
-
const { isPrinting:
|
|
217
|
-
elementId: `strip-plot_${
|
|
240
|
+
const { isPrinting: Pe, isImaging: ze, generatePdf: Be, generateImage: Ee } = dl({
|
|
241
|
+
elementId: `strip-plot_${Q.value}`,
|
|
218
242
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
219
243
|
options: e.value.userOptions.print
|
|
220
|
-
}),
|
|
244
|
+
}), Lt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = h(() => Jt(e.value.customPalette)), M = i(e.value.useCssAnimation), U = i({
|
|
221
245
|
top: e.value.style.chart.padding.top,
|
|
222
246
|
bottom: e.value.style.chart.padding.bottom,
|
|
223
247
|
left: e.value.style.chart.padding.left,
|
|
224
248
|
right: e.value.style.chart.padding.right
|
|
225
|
-
}),
|
|
249
|
+
}), B = i(e.value.style.chart.width), _ = i(e.value.style.chart.height), _t = i(e.value.style.chart.height), G = i(e.value.style.chart.plots.radius), p = i({
|
|
226
250
|
showTable: e.value.table.show,
|
|
227
251
|
dataLabels: {
|
|
228
252
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -230,105 +254,105 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
230
254
|
showTooltip: e.value.style.chart.tooltip.show
|
|
231
255
|
});
|
|
232
256
|
q(e, () => {
|
|
233
|
-
|
|
257
|
+
p.value = {
|
|
234
258
|
showTable: e.value.table.show,
|
|
235
259
|
dataLabels: {
|
|
236
260
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
237
261
|
},
|
|
238
262
|
showTooltip: e.value.style.chart.tooltip.show
|
|
239
|
-
},
|
|
263
|
+
}, B.value = e.value.style.chart.width, _.value = e.value.style.chart.height, G.value = e.value.style.chart.plots.radius;
|
|
240
264
|
}, { immediate: !0 });
|
|
241
|
-
const
|
|
242
|
-
function
|
|
265
|
+
const de = h(() => Math.min(G.value, s.value.stripWidth / 2 * 0.9));
|
|
266
|
+
function $t() {
|
|
243
267
|
let t = 0;
|
|
244
268
|
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o, n) => {
|
|
245
|
-
const
|
|
246
|
-
return
|
|
269
|
+
const b = n.getComputedTextLength();
|
|
270
|
+
return b > o ? b : o;
|
|
247
271
|
}, 0));
|
|
248
272
|
const a = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
249
273
|
return t + a + (a ? 24 : 0);
|
|
250
274
|
}
|
|
251
|
-
const
|
|
252
|
-
|
|
275
|
+
const he = i(0), Tt = lt((t) => {
|
|
276
|
+
he.value = t;
|
|
253
277
|
}, 100);
|
|
254
|
-
|
|
278
|
+
Vt((t) => {
|
|
255
279
|
const a = H.value;
|
|
256
280
|
if (!a) return;
|
|
257
281
|
const l = new ResizeObserver((o) => {
|
|
258
|
-
|
|
282
|
+
Tt(o[0].contentRect.height);
|
|
259
283
|
});
|
|
260
284
|
l.observe(a), t(() => l.disconnect());
|
|
261
285
|
}), Ye(() => {
|
|
262
|
-
|
|
286
|
+
he.value = 0;
|
|
263
287
|
});
|
|
264
|
-
const
|
|
288
|
+
const St = h(() => {
|
|
265
289
|
let t = 0;
|
|
266
290
|
le.value && (t = le.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
|
|
267
291
|
let a = 0;
|
|
268
|
-
return H.value && (a =
|
|
269
|
-
}), s =
|
|
270
|
-
const t =
|
|
292
|
+
return H.value && (a = he.value + 12), t + a;
|
|
293
|
+
}), s = h(() => {
|
|
294
|
+
const t = $t(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = B.value - U.value.right, o = Math.max(0, l - a), n = U.value.top + e.value.style.chart.plots.radius + e.value.style.chart.labels.bestPlotLabel.fontSize, b = _.value - U.value.bottom - St.value, E = Math.max(0, b - n), je = Array.isArray(re.value) ? re.value.length : 0, Wt = je > 0 ? o / je : 0;
|
|
271
295
|
return {
|
|
272
296
|
left: a,
|
|
273
297
|
right: l,
|
|
274
298
|
top: n,
|
|
275
|
-
bottom:
|
|
299
|
+
bottom: b,
|
|
276
300
|
width: o,
|
|
277
|
-
height:
|
|
278
|
-
stripWidth:
|
|
279
|
-
absoluteHeight:
|
|
301
|
+
height: E,
|
|
302
|
+
stripWidth: Wt,
|
|
303
|
+
absoluteHeight: _.value
|
|
280
304
|
};
|
|
281
|
-
}), V =
|
|
282
|
-
const l =
|
|
305
|
+
}), V = h(() => re.value.map((t, a) => {
|
|
306
|
+
const l = me();
|
|
283
307
|
return {
|
|
284
308
|
...t,
|
|
285
309
|
id: l,
|
|
286
|
-
color: t.color ?
|
|
310
|
+
color: t.color ? et(t.color) : Ne.value[a] || P[a] || P[a % P.length],
|
|
287
311
|
plots: t.plots.map((o, n) => ({
|
|
288
312
|
...o,
|
|
289
|
-
value:
|
|
313
|
+
value: Kt(o.value),
|
|
290
314
|
parentId: l,
|
|
291
315
|
parentName: t.name,
|
|
292
316
|
parentIndex: a,
|
|
293
317
|
plotIndex: n,
|
|
294
|
-
color: t.color ?
|
|
295
|
-
id:
|
|
318
|
+
color: t.color ? et(t.color) : Ne.value[a] || P[a] || P[a % P.length],
|
|
319
|
+
id: me()
|
|
296
320
|
})).sort((o, n) => o.value - n.value)
|
|
297
321
|
};
|
|
298
|
-
})),
|
|
322
|
+
})), A = h(() => (V.value || []).map((t, a) => ({
|
|
299
323
|
...t,
|
|
300
324
|
plots: t.plots.map((l) => ({
|
|
301
325
|
...l,
|
|
302
326
|
x: s.value.left + (a + 1) * s.value.stripWidth - s.value.stripWidth / 2
|
|
303
327
|
}))
|
|
304
|
-
}))),
|
|
305
|
-
const t =
|
|
328
|
+
}))), Dt = h(() => Math.max(...A.value.map((t) => t.plots.length))), be = h(() => {
|
|
329
|
+
const t = A.value.flatMap((a) => a.plots.map((l) => l.value));
|
|
306
330
|
return {
|
|
307
331
|
max: Math.max(...t),
|
|
308
332
|
min: Math.min(...t)
|
|
309
333
|
};
|
|
310
|
-
}),
|
|
334
|
+
}), D = h(() => Qt(be.value.min < 0 ? be.value.min : 0, be.value.max, e.value.style.chart.grid.scaleSteps)), Ft = h(() => (A.value || []).map((t, a) => ({
|
|
311
335
|
...t,
|
|
312
336
|
plots: t.plots.map((l) => ({
|
|
313
337
|
...l,
|
|
314
|
-
y: s.value.bottom - (l.value + Math.abs(
|
|
338
|
+
y: s.value.bottom - (l.value + Math.abs(D.value.min)) / (D.value.max + Math.abs(D.value.min)) * s.value.height
|
|
315
339
|
}))
|
|
316
|
-
}))),
|
|
317
|
-
y: s.value.bottom - s.value.height * ((t + Math.abs(
|
|
340
|
+
}))), Me = h(() => D.value.ticks.map((t) => ({
|
|
341
|
+
y: s.value.bottom - s.value.height * ((t + Math.abs(D.value.min)) / (D.value.max + Math.abs(D.value.min))),
|
|
318
342
|
x1: s.value.left,
|
|
319
343
|
x2: s.value.right,
|
|
320
344
|
value: t
|
|
321
345
|
}))), fe = i(null), y = i(null);
|
|
322
|
-
function
|
|
346
|
+
function Ot({ datapoint: t, seriesIndex: a }) {
|
|
323
347
|
Z.value = !1, y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
324
348
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
349
|
+
function Pt({ datapoint: t, seriesIndex: a }) {
|
|
350
|
+
wt("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
327
351
|
}
|
|
328
|
-
function
|
|
352
|
+
function zt({ datapoint: t, seriesIndex: a }) {
|
|
329
353
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), fe.value = { datapoint: t, seriesIndex: a, config: e.value, series: V.value }, Z.value = !0, y.value = t;
|
|
330
354
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
331
|
-
if (
|
|
355
|
+
if (tt(l) && nl(() => l({
|
|
332
356
|
seriesIndex: a,
|
|
333
357
|
datapoint: t,
|
|
334
358
|
series: V.value,
|
|
@@ -345,7 +369,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
345
369
|
o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, o += `<div>${ke(
|
|
346
370
|
e.value.style.chart.labels.formatter,
|
|
347
371
|
t.value,
|
|
348
|
-
|
|
372
|
+
K({
|
|
349
373
|
p: e.value.style.chart.labels.prefix,
|
|
350
374
|
v: t.value,
|
|
351
375
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -355,29 +379,29 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
355
379
|
)}</div>`, ee.value = `<div>${o}</div>`;
|
|
356
380
|
}
|
|
357
381
|
}
|
|
358
|
-
const
|
|
359
|
-
const t =
|
|
382
|
+
const j = h(() => {
|
|
383
|
+
const t = A.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
|
|
360
384
|
name: `${l.name} - ${o.name}`,
|
|
361
385
|
color: o.color
|
|
362
|
-
}))), a =
|
|
386
|
+
}))), a = A.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
|
|
363
387
|
return { head: t, body: a };
|
|
364
388
|
});
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
const a =
|
|
389
|
+
function pe(t = null) {
|
|
390
|
+
Xt(() => {
|
|
391
|
+
const a = j.value.head.map((n, b) => [[
|
|
368
392
|
n.name
|
|
369
|
-
], [
|
|
370
|
-
t ? t(o) :
|
|
393
|
+
], [j.value.body[b]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o = sl(l);
|
|
394
|
+
t ? t(o) : rl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
371
395
|
});
|
|
372
396
|
}
|
|
373
|
-
const
|
|
397
|
+
const X = h(() => {
|
|
374
398
|
const t = [
|
|
375
399
|
e.value.table.columnNames.series,
|
|
376
400
|
e.value.table.columnNames.value
|
|
377
|
-
], a =
|
|
378
|
-
const
|
|
401
|
+
], a = j.value.head.map((n, b) => {
|
|
402
|
+
const E = K({
|
|
379
403
|
p: e.value.style.chart.labels.prefix,
|
|
380
|
-
v:
|
|
404
|
+
v: j.value.body[b],
|
|
381
405
|
s: e.value.style.chart.labels.suffix,
|
|
382
406
|
r: e.value.table.td.roundingValue
|
|
383
407
|
});
|
|
@@ -386,7 +410,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
386
410
|
color: n.color,
|
|
387
411
|
name: n.name
|
|
388
412
|
},
|
|
389
|
-
|
|
413
|
+
E
|
|
390
414
|
];
|
|
391
415
|
}), l = {
|
|
392
416
|
th: {
|
|
@@ -410,64 +434,64 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
410
434
|
body: a,
|
|
411
435
|
config: l
|
|
412
436
|
};
|
|
413
|
-
}),
|
|
414
|
-
function
|
|
415
|
-
|
|
437
|
+
}), F = i(!1);
|
|
438
|
+
function Ge(t) {
|
|
439
|
+
F.value = t, Ae.value += 1;
|
|
416
440
|
}
|
|
417
|
-
function
|
|
418
|
-
return
|
|
441
|
+
function Bt() {
|
|
442
|
+
return A.value;
|
|
419
443
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
444
|
+
function Ie() {
|
|
445
|
+
p.value.showTable = !p.value.showTable;
|
|
422
446
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
447
|
+
function Re() {
|
|
448
|
+
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
425
449
|
}
|
|
426
|
-
function
|
|
427
|
-
|
|
450
|
+
function We() {
|
|
451
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
428
452
|
}
|
|
429
|
-
const
|
|
453
|
+
const Y = i(!1);
|
|
430
454
|
function ye() {
|
|
431
|
-
|
|
455
|
+
Y.value = !Y.value;
|
|
432
456
|
}
|
|
433
|
-
async function
|
|
434
|
-
if (!
|
|
435
|
-
const { width: a, height: l } =
|
|
457
|
+
async function Et({ scale: t = 2 } = {}) {
|
|
458
|
+
if (!w.value) return;
|
|
459
|
+
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: b } = await gl({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
436
460
|
return {
|
|
437
461
|
imageUri: n,
|
|
438
|
-
base64:
|
|
462
|
+
base64: b,
|
|
439
463
|
title: e.value.style.chart.title.text,
|
|
440
464
|
width: a,
|
|
441
465
|
height: l,
|
|
442
466
|
aspectRatio: o
|
|
443
467
|
};
|
|
444
468
|
}
|
|
445
|
-
const
|
|
446
|
-
|
|
469
|
+
const He = h(() => A.value.map((t) => t.name)), Nt = i({ start: 0, end: A.value.length });
|
|
470
|
+
yl({
|
|
447
471
|
timeLabelsEls: H,
|
|
448
|
-
timeLabels:
|
|
449
|
-
slicer:
|
|
472
|
+
timeLabels: He,
|
|
473
|
+
slicer: Nt,
|
|
450
474
|
configRef: e,
|
|
451
475
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
452
476
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
453
477
|
isAutoSize: !1,
|
|
454
|
-
width:
|
|
455
|
-
height:
|
|
478
|
+
width: B,
|
|
479
|
+
height: _,
|
|
456
480
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
457
481
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
458
482
|
});
|
|
459
|
-
const
|
|
460
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
483
|
+
const I = h(() => {
|
|
484
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
461
485
|
return {
|
|
462
|
-
component: t ?
|
|
486
|
+
component: t ? Ct : ft,
|
|
463
487
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
464
488
|
props: t ? {
|
|
465
489
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
466
490
|
color: e.value.table.th.color,
|
|
467
491
|
headerColor: e.value.table.th.color,
|
|
468
492
|
headerBg: e.value.table.th.backgroundColor,
|
|
469
|
-
isFullscreen:
|
|
470
|
-
fullscreenParent:
|
|
493
|
+
isFullscreen: F.value,
|
|
494
|
+
fullscreenParent: w.value,
|
|
471
495
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
472
496
|
} : {
|
|
473
497
|
hideDetails: !0,
|
|
@@ -486,88 +510,88 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
486
510
|
}
|
|
487
511
|
};
|
|
488
512
|
});
|
|
489
|
-
q(() =>
|
|
490
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
513
|
+
q(() => p.value.showTable, (t) => {
|
|
514
|
+
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
491
515
|
});
|
|
492
|
-
function
|
|
493
|
-
|
|
516
|
+
function Ue() {
|
|
517
|
+
p.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
494
518
|
}
|
|
495
|
-
const
|
|
519
|
+
const Mt = h(() => e.value.style.chart.backgroundColor), Gt = h(() => e.value.style.chart.title), { exportSvg: It, getSvg: Rt } = hl({
|
|
496
520
|
svg: ie,
|
|
497
|
-
title:
|
|
498
|
-
backgroundColor:
|
|
521
|
+
title: Gt,
|
|
522
|
+
backgroundColor: Mt
|
|
499
523
|
});
|
|
500
|
-
async function
|
|
524
|
+
async function Ve({ isCb: t }) {
|
|
501
525
|
if (t) {
|
|
502
|
-
const { blob: a, url: l, text: o, dataUrl: n } = await
|
|
526
|
+
const { blob: a, url: l, text: o, dataUrl: n } = await Rt();
|
|
503
527
|
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: n });
|
|
504
528
|
} else
|
|
505
|
-
|
|
529
|
+
It();
|
|
506
530
|
}
|
|
507
|
-
return
|
|
508
|
-
getData:
|
|
509
|
-
getImage:
|
|
510
|
-
generatePdf:
|
|
511
|
-
generateCsv:
|
|
512
|
-
generateImage:
|
|
513
|
-
generateSvg:
|
|
514
|
-
toggleTable:
|
|
515
|
-
toggleLabels:
|
|
516
|
-
toggleTooltip:
|
|
531
|
+
return vt({
|
|
532
|
+
getData: Bt,
|
|
533
|
+
getImage: Et,
|
|
534
|
+
generatePdf: Be,
|
|
535
|
+
generateCsv: pe,
|
|
536
|
+
generateImage: Ee,
|
|
537
|
+
generateSvg: Ve,
|
|
538
|
+
toggleTable: Ie,
|
|
539
|
+
toggleLabels: Re,
|
|
540
|
+
toggleTooltip: We,
|
|
517
541
|
toggleAnnotator: ye,
|
|
518
|
-
toggleFullscreen:
|
|
542
|
+
toggleFullscreen: Ge
|
|
519
543
|
}), (t, a) => (r(), u("div", {
|
|
520
544
|
ref_key: "stripPlotChart",
|
|
521
|
-
ref:
|
|
522
|
-
class:
|
|
545
|
+
ref: w,
|
|
546
|
+
class: R(`vue-data-ui-component vue-ui-strip-plot ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
523
547
|
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
524
|
-
id: `strip-plot_${
|
|
525
|
-
onMouseenter: a[1] || (a[1] = () => c(
|
|
526
|
-
onMouseleave: a[2] || (a[2] = () => c(
|
|
548
|
+
id: `strip-plot_${Q.value}`,
|
|
549
|
+
onMouseenter: a[1] || (a[1] = () => c(De)(!0)),
|
|
550
|
+
onMouseleave: a[2] || (a[2] = () => c(De)(!1))
|
|
527
551
|
}, [
|
|
528
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
552
|
+
e.value.userOptions.buttons.annotator ? (r(), O(c(gt), {
|
|
529
553
|
key: 0,
|
|
530
554
|
svgRef: c(ie),
|
|
531
555
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
556
|
color: e.value.style.chart.color,
|
|
533
|
-
active:
|
|
557
|
+
active: Y.value,
|
|
534
558
|
onClose: ye
|
|
535
559
|
}, {
|
|
536
560
|
"annotator-action-close": v(() => [
|
|
537
|
-
|
|
561
|
+
d(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
538
562
|
]),
|
|
539
563
|
"annotator-action-color": v(({ color: l }) => [
|
|
540
|
-
|
|
564
|
+
d(t.$slots, "annotator-action-color", m(C({ color: l })), void 0, !0)
|
|
541
565
|
]),
|
|
542
566
|
"annotator-action-draw": v(({ mode: l }) => [
|
|
543
|
-
|
|
567
|
+
d(t.$slots, "annotator-action-draw", m(C({ mode: l })), void 0, !0)
|
|
544
568
|
]),
|
|
545
569
|
"annotator-action-undo": v(({ disabled: l }) => [
|
|
546
|
-
|
|
570
|
+
d(t.$slots, "annotator-action-undo", m(C({ disabled: l })), void 0, !0)
|
|
547
571
|
]),
|
|
548
572
|
"annotator-action-redo": v(({ disabled: l }) => [
|
|
549
|
-
|
|
573
|
+
d(t.$slots, "annotator-action-redo", m(C({ disabled: l })), void 0, !0)
|
|
550
574
|
]),
|
|
551
575
|
"annotator-action-delete": v(({ disabled: l }) => [
|
|
552
|
-
|
|
576
|
+
d(t.$slots, "annotator-action-delete", m(C({ disabled: l })), void 0, !0)
|
|
553
577
|
]),
|
|
554
578
|
_: 3
|
|
555
579
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
556
|
-
|
|
580
|
+
Lt.value ? (r(), u("div", {
|
|
557
581
|
key: 1,
|
|
558
582
|
ref_key: "noTitle",
|
|
559
|
-
ref:
|
|
583
|
+
ref: _e,
|
|
560
584
|
class: "vue-data-ui-no-title-space",
|
|
561
585
|
style: "height:36px; width: 100%;background:transparent"
|
|
562
586
|
}, null, 512)) : f("", !0),
|
|
563
587
|
e.value.style.chart.title.text ? (r(), u("div", {
|
|
564
588
|
key: 2,
|
|
565
589
|
ref_key: "chartTitle",
|
|
566
|
-
ref:
|
|
590
|
+
ref: we,
|
|
567
591
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
568
592
|
}, [
|
|
569
|
-
(r(),
|
|
570
|
-
key: `title_${
|
|
593
|
+
(r(), O(Cl, {
|
|
594
|
+
key: `title_${Te.value}`,
|
|
571
595
|
config: {
|
|
572
596
|
title: {
|
|
573
597
|
cy: "donut-div-title",
|
|
@@ -580,15 +604,15 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
580
604
|
}
|
|
581
605
|
}, null, 8, ["config"]))
|
|
582
606
|
], 512)) : f("", !0),
|
|
583
|
-
e.value.userOptions.show &&
|
|
607
|
+
e.value.userOptions.show && W.value && (c(Fe) || c(ue)) ? (r(), O(c(yt), {
|
|
584
608
|
ref_key: "userOptionsRef",
|
|
585
609
|
ref: te,
|
|
586
|
-
key: `user_option_${
|
|
610
|
+
key: `user_option_${Ae.value}`,
|
|
587
611
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
588
612
|
color: e.value.style.chart.color,
|
|
589
|
-
isPrinting: c(
|
|
590
|
-
isImaging: c(
|
|
591
|
-
uid:
|
|
613
|
+
isPrinting: c(Pe),
|
|
614
|
+
isImaging: c(ze),
|
|
615
|
+
uid: Q.value,
|
|
592
616
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
593
617
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
594
618
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -597,96 +621,96 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
597
621
|
hasTable: e.value.userOptions.buttons.table,
|
|
598
622
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
599
623
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
600
|
-
isTooltip:
|
|
601
|
-
isFullscreen:
|
|
624
|
+
isTooltip: p.value.showTooltip,
|
|
625
|
+
isFullscreen: F.value,
|
|
602
626
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
603
|
-
chartElement:
|
|
627
|
+
chartElement: w.value,
|
|
604
628
|
position: e.value.userOptions.position,
|
|
605
629
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
606
|
-
isAnnotation:
|
|
630
|
+
isAnnotation: Y.value,
|
|
607
631
|
callbacks: e.value.userOptions.callbacks,
|
|
608
632
|
printScale: e.value.userOptions.print.scale,
|
|
609
633
|
tableDialog: e.value.table.useDialog,
|
|
610
|
-
onToggleFullscreen:
|
|
611
|
-
onGeneratePdf: c(
|
|
612
|
-
onGenerateCsv:
|
|
613
|
-
onGenerateImage: c(
|
|
614
|
-
onGenerateSvg:
|
|
615
|
-
onToggleTable:
|
|
616
|
-
onToggleLabels:
|
|
617
|
-
onToggleTooltip:
|
|
634
|
+
onToggleFullscreen: Ge,
|
|
635
|
+
onGeneratePdf: c(Be),
|
|
636
|
+
onGenerateCsv: pe,
|
|
637
|
+
onGenerateImage: c(Ee),
|
|
638
|
+
onGenerateSvg: Ve,
|
|
639
|
+
onToggleTable: Ie,
|
|
640
|
+
onToggleLabels: Re,
|
|
641
|
+
onToggleTooltip: We,
|
|
618
642
|
onToggleAnnotator: ye,
|
|
619
643
|
style: J({
|
|
620
|
-
visibility: c(
|
|
644
|
+
visibility: c(Fe) ? c(ue) ? "visible" : "hidden" : "visible"
|
|
621
645
|
})
|
|
622
|
-
},
|
|
646
|
+
}, qe({ _: 2 }, [
|
|
623
647
|
t.$slots.menuIcon ? {
|
|
624
648
|
name: "menuIcon",
|
|
625
649
|
fn: v(({ isOpen: l, color: o }) => [
|
|
626
|
-
|
|
650
|
+
d(t.$slots, "menuIcon", m(C({ isOpen: l, color: o })), void 0, !0)
|
|
627
651
|
]),
|
|
628
652
|
key: "0"
|
|
629
653
|
} : void 0,
|
|
630
654
|
t.$slots.optionTooltip ? {
|
|
631
655
|
name: "optionTooltip",
|
|
632
656
|
fn: v(() => [
|
|
633
|
-
|
|
657
|
+
d(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
634
658
|
]),
|
|
635
659
|
key: "1"
|
|
636
660
|
} : void 0,
|
|
637
661
|
t.$slots.optionPdf ? {
|
|
638
662
|
name: "optionPdf",
|
|
639
663
|
fn: v(() => [
|
|
640
|
-
|
|
664
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
641
665
|
]),
|
|
642
666
|
key: "2"
|
|
643
667
|
} : void 0,
|
|
644
668
|
t.$slots.optionCsv ? {
|
|
645
669
|
name: "optionCsv",
|
|
646
670
|
fn: v(() => [
|
|
647
|
-
|
|
671
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
648
672
|
]),
|
|
649
673
|
key: "3"
|
|
650
674
|
} : void 0,
|
|
651
675
|
t.$slots.optionImg ? {
|
|
652
676
|
name: "optionImg",
|
|
653
677
|
fn: v(() => [
|
|
654
|
-
|
|
678
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
655
679
|
]),
|
|
656
680
|
key: "4"
|
|
657
681
|
} : void 0,
|
|
658
682
|
t.$slots.optionSvg ? {
|
|
659
683
|
name: "optionSvg",
|
|
660
684
|
fn: v(() => [
|
|
661
|
-
|
|
685
|
+
d(t.$slots, "optionSvg", {}, void 0, !0)
|
|
662
686
|
]),
|
|
663
687
|
key: "5"
|
|
664
688
|
} : void 0,
|
|
665
689
|
t.$slots.optionTable ? {
|
|
666
690
|
name: "optionTable",
|
|
667
691
|
fn: v(() => [
|
|
668
|
-
|
|
692
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
669
693
|
]),
|
|
670
694
|
key: "6"
|
|
671
695
|
} : void 0,
|
|
672
696
|
t.$slots.optionLabels ? {
|
|
673
697
|
name: "optionLabels",
|
|
674
698
|
fn: v(() => [
|
|
675
|
-
|
|
699
|
+
d(t.$slots, "optionLabels", {}, void 0, !0)
|
|
676
700
|
]),
|
|
677
701
|
key: "7"
|
|
678
702
|
} : void 0,
|
|
679
703
|
t.$slots.optionFullscreen ? {
|
|
680
704
|
name: "optionFullscreen",
|
|
681
705
|
fn: v(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
682
|
-
|
|
706
|
+
d(t.$slots, "optionFullscreen", m(C({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
683
707
|
]),
|
|
684
708
|
key: "8"
|
|
685
709
|
} : void 0,
|
|
686
710
|
t.$slots.optionAnnotator ? {
|
|
687
711
|
name: "optionAnnotator",
|
|
688
712
|
fn: v(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
689
|
-
|
|
713
|
+
d(t.$slots, "optionAnnotator", m(C({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
690
714
|
]),
|
|
691
715
|
key: "9"
|
|
692
716
|
} : void 0
|
|
@@ -694,12 +718,12 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
694
718
|
(r(), u("svg", {
|
|
695
719
|
ref_key: "svgRef",
|
|
696
720
|
ref: ie,
|
|
697
|
-
xmlns: c(
|
|
698
|
-
class:
|
|
699
|
-
viewBox: `0 0 ${
|
|
721
|
+
xmlns: c(Zt),
|
|
722
|
+
class: R({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
723
|
+
viewBox: `0 0 ${B.value} ${_.value}`,
|
|
700
724
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
701
725
|
}, [
|
|
702
|
-
|
|
726
|
+
ge(c(mt)),
|
|
703
727
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
704
728
|
key: 0,
|
|
705
729
|
x: s.value.left,
|
|
@@ -710,11 +734,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
710
734
|
pointerEvents: "none"
|
|
711
735
|
}
|
|
712
736
|
}, [
|
|
713
|
-
|
|
714
|
-
], 8,
|
|
715
|
-
e.value.style.chart.grid.show ? (r(), u("g",
|
|
716
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g",
|
|
717
|
-
(r(!0), u(
|
|
737
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
738
|
+
], 8, wl)) : f("", !0),
|
|
739
|
+
e.value.style.chart.grid.show ? (r(), u("g", Ll, [
|
|
740
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", _l, [
|
|
741
|
+
(r(!0), u(x, null, T(Me.value, (l) => (r(), u("line", {
|
|
718
742
|
x1: l.x1,
|
|
719
743
|
x2: l.x2,
|
|
720
744
|
y1: l.y,
|
|
@@ -723,10 +747,10 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
723
747
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
724
748
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
725
749
|
"stroke-linecap": "round"
|
|
726
|
-
}, null, 8,
|
|
750
|
+
}, null, 8, $l))), 256))
|
|
727
751
|
])) : f("", !0),
|
|
728
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g",
|
|
729
|
-
(r(!0), u(
|
|
752
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Tl, [
|
|
753
|
+
(r(!0), u(x, null, T(A.value, (l, o) => (r(), u("line", {
|
|
730
754
|
x1: s.value.left + (o + 1) * s.value.stripWidth,
|
|
731
755
|
x2: s.value.left + (o + 1) * s.value.stripWidth,
|
|
732
756
|
y1: s.value.top,
|
|
@@ -735,9 +759,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
735
759
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
736
760
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
737
761
|
"stroke-linecap": "round"
|
|
738
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, Sl))), 256))
|
|
739
763
|
])) : f("", !0),
|
|
740
|
-
|
|
764
|
+
k("line", {
|
|
741
765
|
x1: s.value.left,
|
|
742
766
|
x2: s.value.left,
|
|
743
767
|
y1: s.value.top,
|
|
@@ -745,8 +769,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
745
769
|
stroke: e.value.style.chart.grid.stroke,
|
|
746
770
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
747
771
|
"stroke-linecap": "round"
|
|
748
|
-
}, null, 8,
|
|
749
|
-
|
|
772
|
+
}, null, 8, Dl),
|
|
773
|
+
k("line", {
|
|
750
774
|
x1: s.value.left,
|
|
751
775
|
x2: s.value.right,
|
|
752
776
|
y1: s.value.bottom,
|
|
@@ -754,14 +778,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
754
778
|
stroke: e.value.style.chart.grid.stroke,
|
|
755
779
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
756
780
|
"stroke-linecap": "round"
|
|
757
|
-
}, null, 8,
|
|
781
|
+
}, null, 8, Fl)
|
|
758
782
|
])) : f("", !0),
|
|
759
783
|
e.value.style.chart.labels.yAxisLabels.show ? (r(), u("g", {
|
|
760
784
|
key: 2,
|
|
761
785
|
ref_key: "scaleLabels",
|
|
762
786
|
ref: oe
|
|
763
787
|
}, [
|
|
764
|
-
(r(!0), u(
|
|
788
|
+
(r(!0), u(x, null, T(Me.value, (l, o) => (r(), u("text", {
|
|
765
789
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
766
790
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
767
791
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
@@ -770,21 +794,21 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
770
794
|
}, S(c(ke)(
|
|
771
795
|
e.value.style.chart.labels.formatter,
|
|
772
796
|
l.value,
|
|
773
|
-
c(
|
|
797
|
+
c(K)({
|
|
774
798
|
p: e.value.style.chart.labels.prefix,
|
|
775
799
|
v: l.value,
|
|
776
800
|
s: e.value.style.chart.labels.suffix,
|
|
777
801
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
778
802
|
}),
|
|
779
803
|
{ datapoint: l, seriesIndex: o }
|
|
780
|
-
)), 9,
|
|
804
|
+
)), 9, Ol))), 256))
|
|
781
805
|
], 512)) : f("", !0),
|
|
782
806
|
e.value.style.chart.labels.xAxisLabels.show ? (r(), u("g", {
|
|
783
807
|
key: 3,
|
|
784
808
|
ref_key: "timeLabelsEls",
|
|
785
809
|
ref: H
|
|
786
810
|
}, [
|
|
787
|
-
(r(!0), u(
|
|
811
|
+
(r(!0), u(x, null, T(He.value, (l, o) => (r(), u("g", null, [
|
|
788
812
|
String(l).includes(`
|
|
789
813
|
`) ? (r(), u("text", {
|
|
790
814
|
key: 1,
|
|
@@ -793,21 +817,21 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
793
817
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
794
818
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
795
819
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
796
|
-
innerHTML: c(
|
|
797
|
-
content: c(
|
|
820
|
+
innerHTML: c(el)({
|
|
821
|
+
content: c(tl)(String(l)),
|
|
798
822
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
799
823
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
800
824
|
x: 0,
|
|
801
825
|
y: 0
|
|
802
826
|
})
|
|
803
|
-
}, null, 8,
|
|
827
|
+
}, null, 8, zl)) : (r(), u("text", {
|
|
804
828
|
key: 0,
|
|
805
829
|
class: "vue-ui-strip-plot-category-name",
|
|
806
830
|
transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
807
831
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
808
832
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
809
833
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
810
|
-
}, S(String(l)), 9,
|
|
834
|
+
}, S(String(l)), 9, Pl))
|
|
811
835
|
]))), 256))
|
|
812
836
|
], 512)) : f("", !0),
|
|
813
837
|
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
@@ -818,7 +842,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
818
842
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
819
843
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
820
844
|
"text-anchor": "middle"
|
|
821
|
-
}, S(e.value.style.chart.labels.axis.yLabel), 9,
|
|
845
|
+
}, S(e.value.style.chart.labels.axis.yLabel), 9, Bl)) : f("", !0),
|
|
822
846
|
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
823
847
|
key: 5,
|
|
824
848
|
ref_key: "xAxisLabel",
|
|
@@ -826,106 +850,106 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
826
850
|
fill: e.value.style.chart.labels.axis.color,
|
|
827
851
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
828
852
|
x: s.value.left + s.value.width / 2,
|
|
829
|
-
y:
|
|
853
|
+
y: _.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
830
854
|
"text-anchor": "middle"
|
|
831
|
-
}, S(e.value.style.chart.labels.axis.xLabel), 9,
|
|
832
|
-
y.value ? (r(), u(
|
|
833
|
-
|
|
855
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, El)) : f("", !0),
|
|
856
|
+
y.value ? (r(), u(x, { key: 6 }, [
|
|
857
|
+
k("line", {
|
|
834
858
|
x1: s.value.left,
|
|
835
859
|
x2: s.value.right,
|
|
836
860
|
y1: y.value.y,
|
|
837
861
|
y2: y.value.y,
|
|
838
862
|
stroke: y.value.color,
|
|
839
863
|
"stroke-width": 1,
|
|
840
|
-
class:
|
|
841
|
-
}, null, 10,
|
|
842
|
-
|
|
864
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
865
|
+
}, null, 10, Nl),
|
|
866
|
+
k("circle", {
|
|
843
867
|
cx: s.value.left,
|
|
844
868
|
cy: y.value.y,
|
|
845
869
|
r: 3,
|
|
846
870
|
fill: y.value.color,
|
|
847
|
-
class:
|
|
848
|
-
}, null, 10,
|
|
849
|
-
|
|
871
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
872
|
+
}, null, 10, Ml),
|
|
873
|
+
k("circle", {
|
|
850
874
|
cx: s.value.right,
|
|
851
875
|
cy: y.value.y,
|
|
852
876
|
r: 3,
|
|
853
877
|
fill: y.value.color,
|
|
854
|
-
class:
|
|
855
|
-
}, null, 10,
|
|
878
|
+
class: R({ "select-circle": e.value.useCssAnimation })
|
|
879
|
+
}, null, 10, Gl)
|
|
856
880
|
], 64)) : f("", !0),
|
|
857
|
-
|
|
858
|
-
(r(!0), u(
|
|
881
|
+
k("defs", null, [
|
|
882
|
+
(r(!0), u(x, null, T(A.value, (l) => (r(), u("radialGradient", {
|
|
859
883
|
id: l.id,
|
|
860
884
|
fy: "30%"
|
|
861
885
|
}, [
|
|
862
|
-
|
|
886
|
+
k("stop", {
|
|
863
887
|
offset: "10%",
|
|
864
|
-
"stop-color": c(
|
|
865
|
-
}, null, 8,
|
|
866
|
-
|
|
888
|
+
"stop-color": c(ll)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
889
|
+
}, null, 8, Rl),
|
|
890
|
+
k("stop", {
|
|
867
891
|
offset: "90%",
|
|
868
|
-
"stop-color": c(
|
|
869
|
-
}, null, 8,
|
|
870
|
-
|
|
892
|
+
"stop-color": c(al)(l.color, 0.1)
|
|
893
|
+
}, null, 8, Wl),
|
|
894
|
+
k("stop", {
|
|
871
895
|
offset: "100%",
|
|
872
896
|
"stop-color": l.color
|
|
873
|
-
}, null, 8,
|
|
874
|
-
], 8,
|
|
897
|
+
}, null, 8, Hl)
|
|
898
|
+
], 8, Il))), 256))
|
|
875
899
|
]),
|
|
876
|
-
(r(!0), u(
|
|
877
|
-
(r(!0), u(
|
|
900
|
+
(r(!0), u(x, null, T(Ft.value, (l, o) => (r(), u(x, null, [
|
|
901
|
+
(r(!0), u(x, null, T(l.plots, (n, b) => (r(), O(ml, Je({ ref_for: !0 }, t.$attrs, {
|
|
878
902
|
plot: { x: n.x, y: $e.value ? n.y : s.value.top },
|
|
879
|
-
radius: y.value && y.value.id === n.id ?
|
|
903
|
+
radius: y.value && y.value.id === n.id ? de.value * 1.5 : de.value,
|
|
880
904
|
shape: e.value.style.chart.plots.shape,
|
|
881
905
|
stroke: e.value.style.chart.plots.stroke,
|
|
882
906
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
883
907
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
884
|
-
style: `transition: all 0.2s ease-in-out; opacity:${y.value ? y.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${
|
|
885
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
886
|
-
onMouseenter: (
|
|
887
|
-
onMouseleave: (
|
|
888
|
-
onClick: (
|
|
908
|
+
style: `transition: all 0.2s ease-in-out; opacity:${y.value ? y.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${M.value ? `transition-delay:${b * 50}ms` : ""}`,
|
|
909
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && M.value && !c(se), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !M.value },
|
|
910
|
+
onMouseenter: (E) => zt({ datapoint: n, seriesIndex: b }),
|
|
911
|
+
onMouseleave: (E) => Ot({ datapoint: n, seriesIndex: b }),
|
|
912
|
+
onClick: (E) => Pt({ datapoint: n, seriesIndex: b })
|
|
889
913
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
890
|
-
|
|
891
|
-
(r(!0), u(
|
|
892
|
-
|
|
914
|
+
p.value.dataLabels.show ? (r(), u("g", Ul, [
|
|
915
|
+
(r(!0), u(x, null, T(l.plots, (n, b) => (r(), u(x, null, [
|
|
916
|
+
b === l.plots.length - 1 || y.value && y.value.id === n.id && !p.value.showTooltip ? (r(), u("text", {
|
|
893
917
|
key: 0,
|
|
894
918
|
x: n.x,
|
|
895
|
-
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY -
|
|
919
|
+
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - de.value * (y.value && y.value.id === n.id && !p.value.showTooltip ? 2 : 1.5),
|
|
896
920
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
897
921
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
898
922
|
"text-anchor": "middle",
|
|
899
|
-
style: J(`opacity:${e.value.useCssAnimation &&
|
|
923
|
+
style: J(`opacity:${e.value.useCssAnimation && M.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
900
924
|
}, S(n.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? c(ke)(
|
|
901
925
|
e.value.style.chart.labels.formatter,
|
|
902
926
|
n.value,
|
|
903
|
-
c(
|
|
927
|
+
c(K)({
|
|
904
928
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
905
929
|
v: n.value,
|
|
906
930
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
907
931
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
908
932
|
}),
|
|
909
|
-
{ datapoint: n, seriesIndex:
|
|
910
|
-
) : ""), 13,
|
|
933
|
+
{ datapoint: n, seriesIndex: b }
|
|
934
|
+
) : ""), 13, Vl)) : f("", !0)
|
|
911
935
|
], 64))), 256))
|
|
912
936
|
])) : f("", !0)
|
|
913
937
|
], 64))), 256)),
|
|
914
|
-
|
|
915
|
-
], 14,
|
|
916
|
-
t.$slots.watermark ? (r(), u("div",
|
|
917
|
-
|
|
938
|
+
d(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
939
|
+
], 14, Al)),
|
|
940
|
+
t.$slots.watermark ? (r(), u("div", jl, [
|
|
941
|
+
d(t.$slots, "watermark", m(C({ isPrinting: c(Pe) || c(ze) })), void 0, !0)
|
|
918
942
|
])) : f("", !0),
|
|
919
943
|
t.$slots.source ? (r(), u("div", {
|
|
920
944
|
key: 5,
|
|
921
945
|
ref_key: "source",
|
|
922
|
-
ref:
|
|
946
|
+
ref: Le,
|
|
923
947
|
dir: "auto"
|
|
924
948
|
}, [
|
|
925
|
-
|
|
949
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
926
950
|
], 512)) : f("", !0),
|
|
927
|
-
|
|
928
|
-
show:
|
|
951
|
+
ge(c(ht), {
|
|
952
|
+
show: p.value.showTooltip && Z.value,
|
|
929
953
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
930
954
|
color: e.value.style.chart.tooltip.color,
|
|
931
955
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -935,47 +959,47 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
935
959
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
936
960
|
position: e.value.style.chart.tooltip.position,
|
|
937
961
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
938
|
-
parent:
|
|
962
|
+
parent: w.value,
|
|
939
963
|
content: ee.value,
|
|
940
|
-
isFullscreen:
|
|
941
|
-
isCustom: c(
|
|
964
|
+
isFullscreen: F.value,
|
|
965
|
+
isCustom: c(tt)(e.value.style.chart.tooltip.customFormat),
|
|
942
966
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
943
967
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
944
968
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
945
969
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
946
970
|
}, {
|
|
947
971
|
"tooltip-before": v(() => [
|
|
948
|
-
|
|
972
|
+
d(t.$slots, "tooltip-before", m(C({ ...fe.value })), void 0, !0)
|
|
949
973
|
]),
|
|
950
974
|
"tooltip-after": v(() => [
|
|
951
|
-
|
|
975
|
+
d(t.$slots, "tooltip-after", m(C({ ...fe.value })), void 0, !0)
|
|
952
976
|
]),
|
|
953
977
|
_: 3
|
|
954
978
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
955
|
-
|
|
979
|
+
W.value && e.value.userOptions.buttons.table ? (r(), O(jt(I.value.component), Je({ key: 6 }, I.value.props, {
|
|
956
980
|
ref_key: "tableUnit",
|
|
957
|
-
ref:
|
|
958
|
-
onClose:
|
|
959
|
-
}),
|
|
981
|
+
ref: N,
|
|
982
|
+
onClose: Ue
|
|
983
|
+
}), qe({
|
|
960
984
|
content: v(() => [
|
|
961
|
-
(r(),
|
|
962
|
-
key: `table_${
|
|
963
|
-
colNames:
|
|
964
|
-
head:
|
|
965
|
-
body:
|
|
966
|
-
config:
|
|
967
|
-
title: e.value.table.useDialog ? "" :
|
|
985
|
+
(r(), O(c(pt), {
|
|
986
|
+
key: `table_${Se.value}`,
|
|
987
|
+
colNames: X.value.colNames,
|
|
988
|
+
head: X.value.head,
|
|
989
|
+
body: X.value.body,
|
|
990
|
+
config: X.value.config,
|
|
991
|
+
title: e.value.table.useDialog ? "" : I.value.title,
|
|
968
992
|
withCloseButton: !e.value.table.useDialog,
|
|
969
|
-
onClose:
|
|
993
|
+
onClose: Ue
|
|
970
994
|
}, {
|
|
971
995
|
th: v(({ th: l }) => [
|
|
972
|
-
|
|
996
|
+
k("div", {
|
|
973
997
|
innerHTML: l,
|
|
974
998
|
style: { display: "flex", "align-items": "center" }
|
|
975
|
-
}, null, 8,
|
|
999
|
+
}, null, 8, Xl)
|
|
976
1000
|
]),
|
|
977
1001
|
td: v(({ td: l }) => [
|
|
978
|
-
|
|
1002
|
+
Ke(S(l.name || l), 1)
|
|
979
1003
|
]),
|
|
980
1004
|
_: 1
|
|
981
1005
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -985,31 +1009,36 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
985
1009
|
e.value.table.useDialog ? {
|
|
986
1010
|
name: "title",
|
|
987
1011
|
fn: v(() => [
|
|
988
|
-
|
|
1012
|
+
Ke(S(I.value.title), 1)
|
|
989
1013
|
]),
|
|
990
1014
|
key: "0"
|
|
991
1015
|
} : void 0,
|
|
992
1016
|
e.value.table.useDialog ? {
|
|
993
1017
|
name: "actions",
|
|
994
1018
|
fn: v(() => [
|
|
995
|
-
|
|
1019
|
+
k("button", {
|
|
996
1020
|
tabindex: "0",
|
|
997
1021
|
class: "vue-ui-user-options-button",
|
|
998
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
1022
|
+
onClick: a[0] || (a[0] = (l) => pe(e.value.userOptions.callbacks.csv))
|
|
999
1023
|
}, [
|
|
1000
|
-
|
|
1024
|
+
ge(c(bt), {
|
|
1001
1025
|
name: "excel",
|
|
1002
|
-
stroke:
|
|
1026
|
+
stroke: I.value.props.color
|
|
1003
1027
|
}, null, 8, ["stroke"])
|
|
1004
1028
|
])
|
|
1005
1029
|
]),
|
|
1006
1030
|
key: "1"
|
|
1007
1031
|
} : void 0
|
|
1008
1032
|
]), 1040)) : f("", !0),
|
|
1009
|
-
c(se) ? (r(),
|
|
1010
|
-
], 46,
|
|
1033
|
+
c(se) ? (r(), O(vl, { key: 7 })) : f("", !0)
|
|
1034
|
+
], 46, xl));
|
|
1011
1035
|
}
|
|
1012
|
-
},
|
|
1036
|
+
}, ql = /* @__PURE__ */ kl(Yl, [["__scopeId", "data-v-19aa5bb8"]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
|
+
__proto__: null,
|
|
1038
|
+
default: ql
|
|
1039
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1013
1040
|
export {
|
|
1014
|
-
|
|
1041
|
+
va as a,
|
|
1042
|
+
da as b,
|
|
1043
|
+
ql as v
|
|
1015
1044
|
};
|