vue-data-ui 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
import { defineAsyncComponent as T, computed as h, ref as
|
|
2
|
-
import { c as me, t as
|
|
3
|
-
import { t as lt, u 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 { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
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" } } },
|
|
1
|
+
import { defineAsyncComponent as T, computed as h, ref as u, toRefs as Vt, watch as q, shallowRef as Xe, onMounted as jt, onBeforeUnmount as Ye, watchEffect as Xt, createElementBlock as i, 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 A, renderList as $, toDisplayString as S, mergeProps as Je, resolveDynamicComponent as Yt, createTextVNode as Ke, nextTick as qt } from "vue";
|
|
2
|
+
import { c as me, t as Jt, i as Kt, j as P, o as Qe, g as Ce, l as Ze, k as Qt, m as et, U as Zt, N as el, d as K, X as tl, a as ke, $ as ll, au as ol, q as al, u as sl, y as tt, a2 as rl, v as nl, r as il, _ as ul } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as lt, u as cl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vl, a as Ae } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as dl, B as hl } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as bl } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as fl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as pl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
+
import { u as yl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as ml } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Cl from "./img-6fNF_rG0.js";
|
|
13
|
+
import { _ as kl } from "./Shape-PzdCMGsP.js";
|
|
14
|
+
import Al from "./Title-NgeRXqRA.js";
|
|
15
|
+
import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ot = { userOptions: { show: !1 }, style: { chart: { grid: { horizontalGrid: { show: !1 }, verticalGrid: { show: !1 } }, plots: { gradient: { show: !1 } } } } }, at = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", grid: { stroke: "#5A5A5A", horizontalGrid: { show: !1, stroke: "#4A4A4A" }, verticalGrid: { show: !1, stroke: "#4A4A4A" } }, plots: { stroke: "#1A1A1A", gradient: { show: !1 } }, 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: "#3A3A3A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, st = { 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" } } }, rt = { 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" } } }, nt = { 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" } } }, it = { 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" } } }, ut = { 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" } } }, ct = { 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" } } }, vt = {
|
|
17
17
|
default: {},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
minimal: ot,
|
|
19
|
+
minimalDark: at,
|
|
20
|
+
dark: st,
|
|
21
|
+
celebration: rt,
|
|
22
|
+
celebrationNight: nt,
|
|
23
|
+
hack: it,
|
|
24
|
+
zen: ut,
|
|
25
|
+
concrete: ct
|
|
26
|
+
}, bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
27
|
__proto__: null,
|
|
26
|
-
celebration:
|
|
27
|
-
celebrationNight:
|
|
28
|
-
concrete:
|
|
29
|
-
dark:
|
|
30
|
-
default:
|
|
31
|
-
hack:
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
celebration: rt,
|
|
29
|
+
celebrationNight: nt,
|
|
30
|
+
concrete: ct,
|
|
31
|
+
dark: st,
|
|
32
|
+
default: vt,
|
|
33
|
+
hack: it,
|
|
34
|
+
minimal: ot,
|
|
35
|
+
minimalDark: at,
|
|
36
|
+
zen: ut
|
|
37
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = ["id"], Ll = ["xmlns", "viewBox"], _l = ["x", "y", "width", "height"], Tl = { key: 1 }, $l = { key: 0 }, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Dl = { key: 1 }, Fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x", "y", "fill", "font-size"], Bl = ["transform", "font-size", "fill", "text-anchor"], El = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], Nl = ["fill", "font-size", "transform"], Gl = ["fill", "font-size", "x", "y"], Ml = ["x1", "x2", "y1", "y2", "stroke"], Il = ["cx", "cy", "fill"], Rl = ["cx", "cy", "fill"], Wl = ["id"], Hl = ["stop-color"], Ul = ["stop-color"], Vl = ["stop-color"], jl = { key: 0 }, Xl = ["x", "y", "font-size", "fill"], Yl = {
|
|
34
38
|
key: 4,
|
|
35
39
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
40
|
+
}, ql = ["innerHTML"], Jl = {
|
|
37
41
|
__name: "vue-ui-strip-plot",
|
|
38
42
|
props: {
|
|
39
43
|
config: {
|
|
@@ -50,16 +54,16 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
emits: ["selectDatapoint"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
57
|
+
setup(dt, { expose: ht, emit: bt }) {
|
|
58
|
+
const ft = T(() => import("./Tooltip-B6qvABDL.js")), pt = T(() => import("./BaseIcon-4uOct8re.js")), yt = T(() => import("./vue-ui-accordion-DFKaB_05.js")), gt = T(() => import("./DataTable-DyoDzNNY.js")), mt = T(() => import("./UserOptions-CX7Xsusk.js")), Ct = T(() => import("./PenAndPaper-LTuSTmWE.js")), kt = T(() => import("./PackageVersion-CQxJyGQr.js")), At = T(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_strip_plot: xt } = vl(), { isThemeValid: wt, warnInvalidTheme: Lt } = pl(), g = dt, _t = bt, W = h({
|
|
55
59
|
get() {
|
|
56
60
|
return !!g.dataset && g.dataset.length;
|
|
57
61
|
},
|
|
58
62
|
set(t) {
|
|
59
63
|
return t;
|
|
60
64
|
}
|
|
61
|
-
}), Q =
|
|
62
|
-
...
|
|
65
|
+
}), Q = u(me()), xe = u(0), Z = u(!1), ee = u(""), w = u(null), we = u(null), Le = u(null), _e = u(null), Te = u(!1), $e = u(0), Se = u(0), N = u(null), te = u(null), le = u(null), oe = u(null), H = u(null), ae = u(null), e = u(ce()), { loading: se, FINAL_DATASET: re, manualLoading: ne } = dl({
|
|
66
|
+
...Vt(g),
|
|
63
67
|
FINAL_CONFIG: e,
|
|
64
68
|
prepareConfig: ce,
|
|
65
69
|
skeletonDataset: [
|
|
@@ -109,7 +113,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
109
113
|
]
|
|
110
114
|
}
|
|
111
115
|
],
|
|
112
|
-
skeletonConfig:
|
|
116
|
+
skeletonConfig: Jt({
|
|
113
117
|
defaultConfig: e.value,
|
|
114
118
|
userConfig: {
|
|
115
119
|
userOptions: { show: !1 },
|
|
@@ -148,34 +152,34 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
154
|
})
|
|
151
|
-
}), { userOptionsVisible:
|
|
155
|
+
}), { userOptionsVisible: ie, setUserOptionsVisibility: De, keepUserOptionState: Fe } = yl({ config: e.value }), { svgRef: ue } = gl({ config: e.value.style.chart.title });
|
|
152
156
|
function ce() {
|
|
153
|
-
const t =
|
|
157
|
+
const t = Ae({
|
|
154
158
|
userConfig: g.config,
|
|
155
|
-
defaultConfig:
|
|
156
|
-
}),
|
|
157
|
-
if (!
|
|
158
|
-
if (!
|
|
159
|
-
return
|
|
160
|
-
const l =
|
|
161
|
-
userConfig:
|
|
159
|
+
defaultConfig: xt
|
|
160
|
+
}), o = t.theme;
|
|
161
|
+
if (!o) return t;
|
|
162
|
+
if (!wt.value(t))
|
|
163
|
+
return Lt(t), t;
|
|
164
|
+
const l = Ae({
|
|
165
|
+
userConfig: vt[o] || g.config,
|
|
162
166
|
defaultConfig: t
|
|
163
|
-
}),
|
|
167
|
+
}), a = Ae({
|
|
164
168
|
userConfig: g.config,
|
|
165
169
|
defaultConfig: l
|
|
166
170
|
});
|
|
167
171
|
return {
|
|
168
|
-
...
|
|
169
|
-
customPalette:
|
|
172
|
+
...a,
|
|
173
|
+
customPalette: a.customPalette.length ? a.customPalette : Kt[o] || P
|
|
170
174
|
};
|
|
171
175
|
}
|
|
172
176
|
q(() => g.config, async (t) => {
|
|
173
|
-
se.value || (e.value = ce()),
|
|
177
|
+
se.value || (e.value = ce()), ie.value = !e.value.userOptions.showOnChartHover, Oe(), $e.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, M.value = e.value.style.chart.plots.radius;
|
|
174
178
|
}, { deep: !0 }), q(() => g.dataset, (t) => {
|
|
175
179
|
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
176
180
|
}, { deep: !0 });
|
|
177
181
|
const L = Xe(null), z = Xe(null);
|
|
178
|
-
|
|
182
|
+
jt(() => {
|
|
179
183
|
Oe();
|
|
180
184
|
});
|
|
181
185
|
const ve = h(() => !!e.value.debug);
|
|
@@ -184,7 +188,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
184
188
|
componentName: "VueUiStripPlot",
|
|
185
189
|
type: "dataset",
|
|
186
190
|
debug: ve.value
|
|
187
|
-
}), ne.value = !0) : g.dataset.forEach((t,
|
|
191
|
+
}), ne.value = !0) : g.dataset.forEach((t, o) => {
|
|
188
192
|
Ze({
|
|
189
193
|
datasetObject: t,
|
|
190
194
|
requiredAttributes: ["name", "plots"]
|
|
@@ -193,10 +197,10 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
193
197
|
componentName: "VueUiStripPlot",
|
|
194
198
|
type: "datasetSerieAttribute",
|
|
195
199
|
property: l,
|
|
196
|
-
index:
|
|
200
|
+
index: o,
|
|
197
201
|
debug: ve.value
|
|
198
202
|
});
|
|
199
|
-
}), t.plots && t.plots.forEach((l,
|
|
203
|
+
}), t.plots && t.plots.forEach((l, a) => {
|
|
200
204
|
Ze({
|
|
201
205
|
datasetObject: l,
|
|
202
206
|
requiredAttributes: ["name", "value"]
|
|
@@ -205,48 +209,48 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
205
209
|
componentName: "VueUiStripPlot",
|
|
206
210
|
type: "datasetSerieAttribute",
|
|
207
211
|
property: n,
|
|
208
|
-
index: `${
|
|
212
|
+
index: `${o},${a}`,
|
|
209
213
|
debug: ve.value
|
|
210
214
|
});
|
|
211
215
|
});
|
|
212
216
|
});
|
|
213
217
|
}), Qe(g.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
214
218
|
const t = lt(() => {
|
|
215
|
-
const { width:
|
|
219
|
+
const { width: o, height: l } = cl({
|
|
216
220
|
chart: w.value,
|
|
217
221
|
title: e.value.style.chart.title.text ? we.value : null,
|
|
218
222
|
source: Le.value,
|
|
219
223
|
noTitle: _e.value
|
|
220
224
|
});
|
|
221
225
|
requestAnimationFrame(() => {
|
|
222
|
-
|
|
223
|
-
relator: Math.min(l,
|
|
226
|
+
$t.value = l, B.value = Math.max(0.1, o), _.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? M.value = rl({
|
|
227
|
+
relator: Math.min(l, o),
|
|
224
228
|
adjuster: 600,
|
|
225
229
|
source: e.value.style.chart.plots.radius,
|
|
226
230
|
threshold: 6,
|
|
227
231
|
fallback: 6
|
|
228
|
-
}) :
|
|
232
|
+
}) : M.value = e.value.style.chart.plots.radius;
|
|
229
233
|
});
|
|
230
234
|
});
|
|
231
235
|
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);
|
|
232
236
|
}
|
|
233
237
|
Te.value = !0, setTimeout(() => {
|
|
234
|
-
|
|
235
|
-
},
|
|
238
|
+
G.value = !1;
|
|
239
|
+
}, Ot.value * 50);
|
|
236
240
|
}
|
|
237
241
|
Ye(() => {
|
|
238
242
|
L.value && (z.value && L.value.unobserve(z.value), L.value.disconnect());
|
|
239
243
|
});
|
|
240
|
-
const { isPrinting: Pe, isImaging: ze, generatePdf: Be, generateImage: Ee } =
|
|
244
|
+
const { isPrinting: Pe, isImaging: ze, generatePdf: Be, generateImage: Ee } = bl({
|
|
241
245
|
elementId: `strip-plot_${Q.value}`,
|
|
242
246
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
243
247
|
options: e.value.userOptions.print
|
|
244
|
-
}),
|
|
248
|
+
}), Tt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = h(() => Qt(e.value.customPalette)), G = u(e.value.useCssAnimation), U = u({
|
|
245
249
|
top: e.value.style.chart.padding.top,
|
|
246
250
|
bottom: e.value.style.chart.padding.bottom,
|
|
247
251
|
left: e.value.style.chart.padding.left,
|
|
248
252
|
right: e.value.style.chart.padding.right
|
|
249
|
-
}), B =
|
|
253
|
+
}), B = u(e.value.style.chart.width), _ = u(e.value.style.chart.height), $t = u(e.value.style.chart.height), M = u(e.value.style.chart.plots.radius), p = u({
|
|
250
254
|
showTable: e.value.table.show,
|
|
251
255
|
dataLabels: {
|
|
252
256
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -260,113 +264,113 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
260
264
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
261
265
|
},
|
|
262
266
|
showTooltip: e.value.style.chart.tooltip.show
|
|
263
|
-
}, B.value = e.value.style.chart.width, _.value = e.value.style.chart.height,
|
|
267
|
+
}, B.value = e.value.style.chart.width, _.value = e.value.style.chart.height, M.value = e.value.style.chart.plots.radius;
|
|
264
268
|
}, { immediate: !0 });
|
|
265
|
-
const de = h(() => Math.min(
|
|
266
|
-
function
|
|
269
|
+
const de = h(() => Math.min(M.value, s.value.stripWidth / 2 * 0.9));
|
|
270
|
+
function St() {
|
|
267
271
|
let t = 0;
|
|
268
|
-
|
|
272
|
+
ae.value && (t = Array.from(ae.value.querySelectorAll("text")).reduce((a, n) => {
|
|
269
273
|
const b = n.getComputedTextLength();
|
|
270
|
-
return b >
|
|
274
|
+
return b > a ? b : a;
|
|
271
275
|
}, 0));
|
|
272
|
-
const
|
|
273
|
-
return t +
|
|
276
|
+
const o = oe.value ? oe.value.getBoundingClientRect().width : 0;
|
|
277
|
+
return t + o + (o ? 24 : 0);
|
|
274
278
|
}
|
|
275
|
-
const he =
|
|
279
|
+
const he = u(0), Dt = lt((t) => {
|
|
276
280
|
he.value = t;
|
|
277
281
|
}, 100);
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
if (!
|
|
281
|
-
const l = new ResizeObserver((
|
|
282
|
-
|
|
282
|
+
Xt((t) => {
|
|
283
|
+
const o = H.value;
|
|
284
|
+
if (!o) return;
|
|
285
|
+
const l = new ResizeObserver((a) => {
|
|
286
|
+
Dt(a[0].contentRect.height);
|
|
283
287
|
});
|
|
284
|
-
l.observe(
|
|
288
|
+
l.observe(o), t(() => l.disconnect());
|
|
285
289
|
}), Ye(() => {
|
|
286
290
|
he.value = 0;
|
|
287
291
|
});
|
|
288
|
-
const
|
|
292
|
+
const Ft = h(() => {
|
|
289
293
|
let t = 0;
|
|
290
294
|
le.value && (t = le.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
|
|
291
|
-
let
|
|
292
|
-
return H.value && (
|
|
295
|
+
let o = 0;
|
|
296
|
+
return H.value && (o = he.value + 12), t + o;
|
|
293
297
|
}), s = h(() => {
|
|
294
|
-
const t =
|
|
298
|
+
const t = St(), o = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = B.value - U.value.right, a = Math.max(0, l - o), n = U.value.top + e.value.style.chart.plots.radius + e.value.style.chart.labels.bestPlotLabel.fontSize, b = _.value - U.value.bottom - Ft.value, E = Math.max(0, b - n), je = Array.isArray(re.value) ? re.value.length : 0, Ut = je > 0 ? a / je : 0;
|
|
295
299
|
return {
|
|
296
|
-
left:
|
|
300
|
+
left: o,
|
|
297
301
|
right: l,
|
|
298
302
|
top: n,
|
|
299
303
|
bottom: b,
|
|
300
|
-
width:
|
|
304
|
+
width: a,
|
|
301
305
|
height: E,
|
|
302
|
-
stripWidth:
|
|
306
|
+
stripWidth: Ut,
|
|
303
307
|
absoluteHeight: _.value
|
|
304
308
|
};
|
|
305
|
-
}), V = h(() => re.value.map((t,
|
|
309
|
+
}), V = h(() => re.value.map((t, o) => {
|
|
306
310
|
const l = me();
|
|
307
311
|
return {
|
|
308
312
|
...t,
|
|
309
313
|
id: l,
|
|
310
|
-
color: t.color ? et(t.color) : Ne.value[
|
|
311
|
-
plots: t.plots.map((
|
|
312
|
-
...
|
|
313
|
-
value:
|
|
314
|
+
color: t.color ? et(t.color) : Ne.value[o] || P[o] || P[o % P.length],
|
|
315
|
+
plots: t.plots.map((a, n) => ({
|
|
316
|
+
...a,
|
|
317
|
+
value: Zt(a.value),
|
|
314
318
|
parentId: l,
|
|
315
319
|
parentName: t.name,
|
|
316
|
-
parentIndex:
|
|
320
|
+
parentIndex: o,
|
|
317
321
|
plotIndex: n,
|
|
318
|
-
color: t.color ? et(t.color) : Ne.value[
|
|
322
|
+
color: t.color ? et(t.color) : Ne.value[o] || P[o] || P[o % P.length],
|
|
319
323
|
id: me()
|
|
320
|
-
})).sort((
|
|
324
|
+
})).sort((a, n) => a.value - n.value)
|
|
321
325
|
};
|
|
322
|
-
})),
|
|
326
|
+
})), x = h(() => (V.value || []).map((t, o) => ({
|
|
323
327
|
...t,
|
|
324
328
|
plots: t.plots.map((l) => ({
|
|
325
329
|
...l,
|
|
326
|
-
x: s.value.left + (
|
|
330
|
+
x: s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2
|
|
327
331
|
}))
|
|
328
|
-
}))),
|
|
329
|
-
const t =
|
|
332
|
+
}))), Ot = h(() => Math.max(...x.value.map((t) => t.plots.length))), be = h(() => {
|
|
333
|
+
const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
330
334
|
return {
|
|
331
335
|
max: Math.max(...t),
|
|
332
336
|
min: Math.min(...t)
|
|
333
337
|
};
|
|
334
|
-
}), D = h(() =>
|
|
338
|
+
}), D = h(() => el(be.value.min < 0 ? be.value.min : 0, be.value.max, e.value.style.chart.grid.scaleSteps)), Pt = h(() => (x.value || []).map((t, o) => ({
|
|
335
339
|
...t,
|
|
336
340
|
plots: t.plots.map((l) => ({
|
|
337
341
|
...l,
|
|
338
342
|
y: s.value.bottom - (l.value + Math.abs(D.value.min)) / (D.value.max + Math.abs(D.value.min)) * s.value.height
|
|
339
343
|
}))
|
|
340
|
-
}))),
|
|
344
|
+
}))), Ge = h(() => D.value.ticks.map((t) => ({
|
|
341
345
|
y: s.value.bottom - s.value.height * ((t + Math.abs(D.value.min)) / (D.value.max + Math.abs(D.value.min))),
|
|
342
346
|
x1: s.value.left,
|
|
343
347
|
x2: s.value.right,
|
|
344
348
|
value: t
|
|
345
|
-
}))), fe =
|
|
346
|
-
function
|
|
347
|
-
Z.value = !1, y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
349
|
+
}))), fe = u(null), y = u(null);
|
|
350
|
+
function zt({ datapoint: t, seriesIndex: o }) {
|
|
351
|
+
Z.value = !1, y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
348
352
|
}
|
|
349
|
-
function
|
|
350
|
-
|
|
353
|
+
function Bt({ datapoint: t, seriesIndex: o }) {
|
|
354
|
+
_t("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
351
355
|
}
|
|
352
|
-
function
|
|
353
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
356
|
+
function Et({ datapoint: t, seriesIndex: o }) {
|
|
357
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), fe.value = { datapoint: t, seriesIndex: o, config: e.value, series: V.value }, Z.value = !0, y.value = t;
|
|
354
358
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
355
|
-
if (tt(l) &&
|
|
356
|
-
seriesIndex:
|
|
359
|
+
if (tt(l) && ul(() => l({
|
|
360
|
+
seriesIndex: o,
|
|
357
361
|
datapoint: t,
|
|
358
362
|
series: V.value,
|
|
359
363
|
config: e.value
|
|
360
364
|
})))
|
|
361
365
|
ee.value = l({
|
|
362
|
-
seriesIndex:
|
|
366
|
+
seriesIndex: o,
|
|
363
367
|
datapoint: t,
|
|
364
368
|
series: V.value,
|
|
365
369
|
config: e.value
|
|
366
370
|
});
|
|
367
371
|
else {
|
|
368
|
-
let
|
|
369
|
-
|
|
372
|
+
let a = "";
|
|
373
|
+
a += `<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>`, a += `<div>${ke(
|
|
370
374
|
e.value.style.chart.labels.formatter,
|
|
371
375
|
t.value,
|
|
372
376
|
K({
|
|
@@ -375,30 +379,30 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
375
379
|
s: e.value.style.chart.labels.suffix,
|
|
376
380
|
r: e.value.style.chart.tooltip.roundingValue
|
|
377
381
|
}),
|
|
378
|
-
{ datapoint: t, seriesIndex:
|
|
379
|
-
)}</div>`, ee.value = `<div>${
|
|
382
|
+
{ datapoint: t, seriesIndex: o }
|
|
383
|
+
)}</div>`, ee.value = `<div>${a}</div>`;
|
|
380
384
|
}
|
|
381
385
|
}
|
|
382
386
|
const j = h(() => {
|
|
383
|
-
const t =
|
|
384
|
-
name: `${l.name} - ${
|
|
385
|
-
color:
|
|
386
|
-
}))),
|
|
387
|
-
return { head: t, body:
|
|
387
|
+
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((a, n) => n.value - a.value).map((a) => ({
|
|
388
|
+
name: `${l.name} - ${a.name}`,
|
|
389
|
+
color: a.color
|
|
390
|
+
}))), o = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((a, n) => n.value - a.value).map((a) => a.value));
|
|
391
|
+
return { head: t, body: o };
|
|
388
392
|
});
|
|
389
393
|
function pe(t = null) {
|
|
390
|
-
|
|
391
|
-
const
|
|
394
|
+
qt(() => {
|
|
395
|
+
const o = j.value.head.map((n, b) => [[
|
|
392
396
|
n.name
|
|
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(
|
|
394
|
-
t ? t(
|
|
397
|
+
], [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(o), a = nl(l);
|
|
398
|
+
t ? t(a) : il({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
395
399
|
});
|
|
396
400
|
}
|
|
397
401
|
const X = h(() => {
|
|
398
402
|
const t = [
|
|
399
403
|
e.value.table.columnNames.series,
|
|
400
404
|
e.value.table.columnNames.value
|
|
401
|
-
],
|
|
405
|
+
], o = j.value.head.map((n, b) => {
|
|
402
406
|
const E = K({
|
|
403
407
|
p: e.value.style.chart.labels.prefix,
|
|
404
408
|
v: j.value.body[b],
|
|
@@ -431,15 +435,15 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
431
435
|
e.value.table.columnNames.value
|
|
432
436
|
],
|
|
433
437
|
head: t,
|
|
434
|
-
body:
|
|
438
|
+
body: o,
|
|
435
439
|
config: l
|
|
436
440
|
};
|
|
437
|
-
}), F =
|
|
438
|
-
function
|
|
439
|
-
F.value = t,
|
|
441
|
+
}), F = u(!1);
|
|
442
|
+
function Me(t) {
|
|
443
|
+
F.value = t, xe.value += 1;
|
|
440
444
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
445
|
+
function Nt() {
|
|
446
|
+
return x.value;
|
|
443
447
|
}
|
|
444
448
|
function Ie() {
|
|
445
449
|
p.value.showTable = !p.value.showTable;
|
|
@@ -450,27 +454,27 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
450
454
|
function We() {
|
|
451
455
|
p.value.showTooltip = !p.value.showTooltip;
|
|
452
456
|
}
|
|
453
|
-
const Y =
|
|
457
|
+
const Y = u(!1);
|
|
454
458
|
function ye() {
|
|
455
459
|
Y.value = !Y.value;
|
|
456
460
|
}
|
|
457
|
-
async function
|
|
461
|
+
async function Gt({ scale: t = 2 } = {}) {
|
|
458
462
|
if (!w.value) return;
|
|
459
|
-
const { width:
|
|
463
|
+
const { width: o, height: l } = w.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: b } = await Cl({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
460
464
|
return {
|
|
461
465
|
imageUri: n,
|
|
462
466
|
base64: b,
|
|
463
467
|
title: e.value.style.chart.title.text,
|
|
464
|
-
width:
|
|
468
|
+
width: o,
|
|
465
469
|
height: l,
|
|
466
|
-
aspectRatio:
|
|
470
|
+
aspectRatio: a
|
|
467
471
|
};
|
|
468
472
|
}
|
|
469
|
-
const He = h(() =>
|
|
470
|
-
|
|
473
|
+
const He = h(() => x.value.map((t) => t.name)), Mt = u({ start: 0, end: x.value.length });
|
|
474
|
+
ml({
|
|
471
475
|
timeLabelsEls: H,
|
|
472
476
|
timeLabels: He,
|
|
473
|
-
slicer:
|
|
477
|
+
slicer: Mt,
|
|
474
478
|
configRef: e,
|
|
475
479
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
476
480
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
@@ -481,9 +485,9 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
481
485
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
482
486
|
});
|
|
483
487
|
const I = h(() => {
|
|
484
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
488
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = p.value.showTable;
|
|
485
489
|
return {
|
|
486
|
-
component: t ?
|
|
490
|
+
component: t ? At : yt,
|
|
487
491
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
488
492
|
props: t ? {
|
|
489
493
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -496,7 +500,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
496
500
|
} : {
|
|
497
501
|
hideDetails: !0,
|
|
498
502
|
config: {
|
|
499
|
-
open:
|
|
503
|
+
open: o,
|
|
500
504
|
maxHeight: 1e4,
|
|
501
505
|
body: {
|
|
502
506
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -516,21 +520,21 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
516
520
|
function Ue() {
|
|
517
521
|
p.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
518
522
|
}
|
|
519
|
-
const
|
|
520
|
-
svg:
|
|
521
|
-
title:
|
|
522
|
-
backgroundColor:
|
|
523
|
+
const It = h(() => e.value.style.chart.backgroundColor), Rt = h(() => e.value.style.chart.title), { exportSvg: Wt, getSvg: Ht } = fl({
|
|
524
|
+
svg: ue,
|
|
525
|
+
title: Rt,
|
|
526
|
+
backgroundColor: It
|
|
523
527
|
});
|
|
524
528
|
async function Ve({ isCb: t }) {
|
|
525
529
|
if (t) {
|
|
526
|
-
const { blob:
|
|
527
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
530
|
+
const { blob: o, url: l, text: a, dataUrl: n } = await Ht();
|
|
531
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: n });
|
|
528
532
|
} else
|
|
529
|
-
|
|
533
|
+
Wt();
|
|
530
534
|
}
|
|
531
|
-
return
|
|
532
|
-
getData:
|
|
533
|
-
getImage:
|
|
535
|
+
return ht({
|
|
536
|
+
getData: Nt,
|
|
537
|
+
getImage: Gt,
|
|
534
538
|
generatePdf: Be,
|
|
535
539
|
generateCsv: pe,
|
|
536
540
|
generateImage: Ee,
|
|
@@ -539,19 +543,19 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
539
543
|
toggleLabels: Re,
|
|
540
544
|
toggleTooltip: We,
|
|
541
545
|
toggleAnnotator: ye,
|
|
542
|
-
toggleFullscreen:
|
|
543
|
-
}), (t,
|
|
546
|
+
toggleFullscreen: Me
|
|
547
|
+
}), (t, o) => (r(), i("div", {
|
|
544
548
|
ref_key: "stripPlotChart",
|
|
545
549
|
ref: w,
|
|
546
550
|
class: R(`vue-data-ui-component vue-ui-strip-plot ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
547
551
|
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
548
552
|
id: `strip-plot_${Q.value}`,
|
|
549
|
-
onMouseenter:
|
|
550
|
-
onMouseleave:
|
|
553
|
+
onMouseenter: o[1] || (o[1] = () => c(De)(!0)),
|
|
554
|
+
onMouseleave: o[2] || (o[2] = () => c(De)(!1))
|
|
551
555
|
}, [
|
|
552
|
-
e.value.userOptions.buttons.annotator ? (r(), O(c(
|
|
556
|
+
e.value.userOptions.buttons.annotator ? (r(), O(c(Ct), {
|
|
553
557
|
key: 0,
|
|
554
|
-
svgRef: c(
|
|
558
|
+
svgRef: c(ue),
|
|
555
559
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
556
560
|
color: e.value.style.chart.color,
|
|
557
561
|
active: Y.value,
|
|
@@ -577,20 +581,20 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
577
581
|
]),
|
|
578
582
|
_: 3
|
|
579
583
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
580
|
-
|
|
584
|
+
Tt.value ? (r(), i("div", {
|
|
581
585
|
key: 1,
|
|
582
586
|
ref_key: "noTitle",
|
|
583
587
|
ref: _e,
|
|
584
588
|
class: "vue-data-ui-no-title-space",
|
|
585
589
|
style: "height:36px; width: 100%;background:transparent"
|
|
586
590
|
}, null, 512)) : f("", !0),
|
|
587
|
-
e.value.style.chart.title.text ? (r(),
|
|
591
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
588
592
|
key: 2,
|
|
589
593
|
ref_key: "chartTitle",
|
|
590
594
|
ref: we,
|
|
591
595
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
592
596
|
}, [
|
|
593
|
-
(r(), O(
|
|
597
|
+
(r(), O(Al, {
|
|
594
598
|
key: `title_${$e.value}`,
|
|
595
599
|
config: {
|
|
596
600
|
title: {
|
|
@@ -604,10 +608,10 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
604
608
|
}
|
|
605
609
|
}, null, 8, ["config"]))
|
|
606
610
|
], 512)) : f("", !0),
|
|
607
|
-
e.value.userOptions.show && W.value && (c(Fe) || c(
|
|
611
|
+
e.value.userOptions.show && W.value && (c(Fe) || c(ie)) ? (r(), O(c(mt), {
|
|
608
612
|
ref_key: "userOptionsRef",
|
|
609
613
|
ref: te,
|
|
610
|
-
key: `user_option_${
|
|
614
|
+
key: `user_option_${xe.value}`,
|
|
611
615
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
612
616
|
color: e.value.style.chart.color,
|
|
613
617
|
isPrinting: c(Pe),
|
|
@@ -631,7 +635,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
631
635
|
callbacks: e.value.userOptions.callbacks,
|
|
632
636
|
printScale: e.value.userOptions.print.scale,
|
|
633
637
|
tableDialog: e.value.table.useDialog,
|
|
634
|
-
onToggleFullscreen:
|
|
638
|
+
onToggleFullscreen: Me,
|
|
635
639
|
onGeneratePdf: c(Be),
|
|
636
640
|
onGenerateCsv: pe,
|
|
637
641
|
onGenerateImage: c(Ee),
|
|
@@ -641,13 +645,13 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
641
645
|
onToggleTooltip: We,
|
|
642
646
|
onToggleAnnotator: ye,
|
|
643
647
|
style: J({
|
|
644
|
-
visibility: c(Fe) ? c(
|
|
648
|
+
visibility: c(Fe) ? c(ie) ? "visible" : "hidden" : "visible"
|
|
645
649
|
})
|
|
646
650
|
}, qe({ _: 2 }, [
|
|
647
651
|
t.$slots.menuIcon ? {
|
|
648
652
|
name: "menuIcon",
|
|
649
|
-
fn: v(({ isOpen: l, color:
|
|
650
|
-
d(t.$slots, "menuIcon", m(C({ isOpen: l, color:
|
|
653
|
+
fn: v(({ isOpen: l, color: a }) => [
|
|
654
|
+
d(t.$slots, "menuIcon", m(C({ isOpen: l, color: a })), void 0, !0)
|
|
651
655
|
]),
|
|
652
656
|
key: "0"
|
|
653
657
|
} : void 0,
|
|
@@ -702,29 +706,29 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
702
706
|
} : void 0,
|
|
703
707
|
t.$slots.optionFullscreen ? {
|
|
704
708
|
name: "optionFullscreen",
|
|
705
|
-
fn: v(({ toggleFullscreen: l, isFullscreen:
|
|
706
|
-
d(t.$slots, "optionFullscreen", m(C({ toggleFullscreen: l, isFullscreen:
|
|
709
|
+
fn: v(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
710
|
+
d(t.$slots, "optionFullscreen", m(C({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
707
711
|
]),
|
|
708
712
|
key: "8"
|
|
709
713
|
} : void 0,
|
|
710
714
|
t.$slots.optionAnnotator ? {
|
|
711
715
|
name: "optionAnnotator",
|
|
712
|
-
fn: v(({ toggleAnnotator: l, isAnnotator:
|
|
713
|
-
d(t.$slots, "optionAnnotator", m(C({ toggleAnnotator: l, isAnnotator:
|
|
716
|
+
fn: v(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
717
|
+
d(t.$slots, "optionAnnotator", m(C({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
714
718
|
]),
|
|
715
719
|
key: "9"
|
|
716
720
|
} : void 0
|
|
717
721
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
718
|
-
(r(),
|
|
722
|
+
(r(), i("svg", {
|
|
719
723
|
ref_key: "svgRef",
|
|
720
|
-
ref:
|
|
721
|
-
xmlns: c(
|
|
724
|
+
ref: ue,
|
|
725
|
+
xmlns: c(tl),
|
|
722
726
|
class: R({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
723
727
|
viewBox: `0 0 ${B.value} ${_.value}`,
|
|
724
728
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
725
729
|
}, [
|
|
726
|
-
ge(c(
|
|
727
|
-
t.$slots["chart-background"] ? (r(),
|
|
730
|
+
ge(c(kt)),
|
|
731
|
+
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
728
732
|
key: 0,
|
|
729
733
|
x: s.value.left,
|
|
730
734
|
y: s.value.top,
|
|
@@ -735,10 +739,10 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
735
739
|
}
|
|
736
740
|
}, [
|
|
737
741
|
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
738
|
-
], 8,
|
|
739
|
-
e.value.style.chart.grid.show ? (r(),
|
|
740
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(),
|
|
741
|
-
(r(!0),
|
|
742
|
+
], 8, _l)) : f("", !0),
|
|
743
|
+
e.value.style.chart.grid.show ? (r(), i("g", Tl, [
|
|
744
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), i("g", $l, [
|
|
745
|
+
(r(!0), i(A, null, $(Ge.value, (l) => (r(), i("line", {
|
|
742
746
|
x1: l.x1,
|
|
743
747
|
x2: l.x2,
|
|
744
748
|
y1: l.y,
|
|
@@ -747,19 +751,19 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
747
751
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
748
752
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
749
753
|
"stroke-linecap": "round"
|
|
750
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, Sl))), 256))
|
|
751
755
|
])) : f("", !0),
|
|
752
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(),
|
|
753
|
-
(r(!0),
|
|
754
|
-
x1: s.value.left + (
|
|
755
|
-
x2: s.value.left + (
|
|
756
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), i("g", Dl, [
|
|
757
|
+
(r(!0), i(A, null, $(x.value, (l, a) => (r(), i("line", {
|
|
758
|
+
x1: s.value.left + (a + 1) * s.value.stripWidth,
|
|
759
|
+
x2: s.value.left + (a + 1) * s.value.stripWidth,
|
|
756
760
|
y1: s.value.top,
|
|
757
761
|
y2: s.value.bottom,
|
|
758
762
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
759
763
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
760
764
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
761
765
|
"stroke-linecap": "round"
|
|
762
|
-
}, null, 8,
|
|
766
|
+
}, null, 8, Fl))), 256))
|
|
763
767
|
])) : f("", !0),
|
|
764
768
|
k("line", {
|
|
765
769
|
x1: s.value.left,
|
|
@@ -769,7 +773,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
769
773
|
stroke: e.value.style.chart.grid.stroke,
|
|
770
774
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
771
775
|
"stroke-linecap": "round"
|
|
772
|
-
}, null, 8,
|
|
776
|
+
}, null, 8, Ol),
|
|
773
777
|
k("line", {
|
|
774
778
|
x1: s.value.left,
|
|
775
779
|
x2: s.value.right,
|
|
@@ -778,14 +782,14 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
778
782
|
stroke: e.value.style.chart.grid.stroke,
|
|
779
783
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
780
784
|
"stroke-linecap": "round"
|
|
781
|
-
}, null, 8,
|
|
785
|
+
}, null, 8, Pl)
|
|
782
786
|
])) : f("", !0),
|
|
783
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(),
|
|
787
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(), i("g", {
|
|
784
788
|
key: 2,
|
|
785
789
|
ref_key: "scaleLabels",
|
|
786
|
-
ref:
|
|
790
|
+
ref: ae
|
|
787
791
|
}, [
|
|
788
|
-
(r(!0),
|
|
792
|
+
(r(!0), i(A, null, $(Ge.value, (l, a) => (r(), i("text", {
|
|
789
793
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
790
794
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
791
795
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
@@ -800,50 +804,50 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
800
804
|
s: e.value.style.chart.labels.suffix,
|
|
801
805
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
802
806
|
}),
|
|
803
|
-
{ datapoint: l, seriesIndex:
|
|
804
|
-
)), 9,
|
|
807
|
+
{ datapoint: l, seriesIndex: a }
|
|
808
|
+
)), 9, zl))), 256))
|
|
805
809
|
], 512)) : f("", !0),
|
|
806
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(),
|
|
810
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(), i("g", {
|
|
807
811
|
key: 3,
|
|
808
812
|
ref_key: "timeLabelsEls",
|
|
809
813
|
ref: H
|
|
810
814
|
}, [
|
|
811
|
-
(r(!0),
|
|
815
|
+
(r(!0), i(A, null, $(He.value, (l, a) => (r(), i("g", null, [
|
|
812
816
|
String(l).includes(`
|
|
813
|
-
`) ? (r(),
|
|
817
|
+
`) ? (r(), i("text", {
|
|
814
818
|
key: 1,
|
|
815
819
|
class: "vue-ui-strip-plot-category-name",
|
|
816
|
-
transform: `translate(${s.value.left + (
|
|
820
|
+
transform: `translate(${s.value.left + (a + 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})`,
|
|
817
821
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
818
822
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
819
823
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
820
|
-
innerHTML: c(
|
|
821
|
-
content: c(
|
|
824
|
+
innerHTML: c(ll)({
|
|
825
|
+
content: c(ol)(String(l)),
|
|
822
826
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
823
827
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
824
828
|
x: 0,
|
|
825
829
|
y: 0
|
|
826
830
|
})
|
|
827
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, El)) : (r(), i("text", {
|
|
828
832
|
key: 0,
|
|
829
833
|
class: "vue-ui-strip-plot-category-name",
|
|
830
|
-
transform: `translate(${s.value.left + (
|
|
834
|
+
transform: `translate(${s.value.left + (a + 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})`,
|
|
831
835
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
832
836
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
833
837
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
834
|
-
}, S(String(l)), 9,
|
|
838
|
+
}, S(String(l)), 9, Bl))
|
|
835
839
|
]))), 256))
|
|
836
840
|
], 512)) : f("", !0),
|
|
837
|
-
e.value.style.chart.labels.axis.yLabel ? (r(),
|
|
841
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), i("text", {
|
|
838
842
|
key: 4,
|
|
839
843
|
ref_key: "yAxisLabel",
|
|
840
|
-
ref:
|
|
844
|
+
ref: oe,
|
|
841
845
|
fill: e.value.style.chart.labels.axis.color,
|
|
842
846
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
843
847
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
844
848
|
"text-anchor": "middle"
|
|
845
|
-
}, S(e.value.style.chart.labels.axis.yLabel), 9,
|
|
846
|
-
e.value.style.chart.labels.axis.xLabel ? (r(),
|
|
849
|
+
}, S(e.value.style.chart.labels.axis.yLabel), 9, Nl)) : f("", !0),
|
|
850
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), i("text", {
|
|
847
851
|
key: 5,
|
|
848
852
|
ref_key: "xAxisLabel",
|
|
849
853
|
ref: le,
|
|
@@ -852,8 +856,8 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
852
856
|
x: s.value.left + s.value.width / 2,
|
|
853
857
|
y: _.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
854
858
|
"text-anchor": "middle"
|
|
855
|
-
}, S(e.value.style.chart.labels.axis.xLabel), 9,
|
|
856
|
-
y.value ? (r(),
|
|
859
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, Gl)) : f("", !0),
|
|
860
|
+
y.value ? (r(), i(A, { key: 6 }, [
|
|
857
861
|
k("line", {
|
|
858
862
|
x1: s.value.left,
|
|
859
863
|
x2: s.value.right,
|
|
@@ -862,65 +866,65 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
862
866
|
stroke: y.value.color,
|
|
863
867
|
"stroke-width": 1,
|
|
864
868
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
865
|
-
}, null, 10,
|
|
869
|
+
}, null, 10, Ml),
|
|
866
870
|
k("circle", {
|
|
867
871
|
cx: s.value.left,
|
|
868
872
|
cy: y.value.y,
|
|
869
873
|
r: 3,
|
|
870
874
|
fill: y.value.color,
|
|
871
875
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
872
|
-
}, null, 10,
|
|
876
|
+
}, null, 10, Il),
|
|
873
877
|
k("circle", {
|
|
874
878
|
cx: s.value.right,
|
|
875
879
|
cy: y.value.y,
|
|
876
880
|
r: 3,
|
|
877
881
|
fill: y.value.color,
|
|
878
882
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
879
|
-
}, null, 10,
|
|
883
|
+
}, null, 10, Rl)
|
|
880
884
|
], 64)) : f("", !0),
|
|
881
885
|
k("defs", null, [
|
|
882
|
-
(r(!0),
|
|
886
|
+
(r(!0), i(A, null, $(x.value, (l) => (r(), i("radialGradient", {
|
|
883
887
|
id: l.id,
|
|
884
888
|
fy: "30%"
|
|
885
889
|
}, [
|
|
886
890
|
k("stop", {
|
|
887
891
|
offset: "10%",
|
|
888
|
-
"stop-color": c(
|
|
889
|
-
}, null, 8,
|
|
892
|
+
"stop-color": c(al)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
893
|
+
}, null, 8, Hl),
|
|
890
894
|
k("stop", {
|
|
891
895
|
offset: "90%",
|
|
892
|
-
"stop-color": c(
|
|
893
|
-
}, null, 8,
|
|
896
|
+
"stop-color": c(sl)(l.color, 0.1)
|
|
897
|
+
}, null, 8, Ul),
|
|
894
898
|
k("stop", {
|
|
895
899
|
offset: "100%",
|
|
896
900
|
"stop-color": l.color
|
|
897
|
-
}, null, 8,
|
|
898
|
-
], 8,
|
|
901
|
+
}, null, 8, Vl)
|
|
902
|
+
], 8, Wl))), 256))
|
|
899
903
|
]),
|
|
900
|
-
(r(!0),
|
|
901
|
-
(r(!0),
|
|
904
|
+
(r(!0), i(A, null, $(Pt.value, (l, a) => (r(), i(A, null, [
|
|
905
|
+
(r(!0), i(A, null, $(l.plots, (n, b) => (r(), O(kl, Je({ ref_for: !0 }, t.$attrs, {
|
|
902
906
|
plot: { x: n.x, y: Te.value ? n.y : s.value.top },
|
|
903
907
|
radius: y.value && y.value.id === n.id ? de.value * 1.5 : de.value,
|
|
904
908
|
shape: e.value.style.chart.plots.shape,
|
|
905
909
|
stroke: e.value.style.chart.plots.stroke,
|
|
906
910
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
907
911
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
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};${
|
|
909
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
910
|
-
onMouseenter: (E) =>
|
|
911
|
-
onMouseleave: (E) =>
|
|
912
|
-
onClick: (E) =>
|
|
912
|
+
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};${G.value ? `transition-delay:${b * 50}ms` : ""}`,
|
|
913
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && G.value && !c(se), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !G.value },
|
|
914
|
+
onMouseenter: (E) => Et({ datapoint: n, seriesIndex: b }),
|
|
915
|
+
onMouseleave: (E) => zt({ datapoint: n, seriesIndex: b }),
|
|
916
|
+
onClick: (E) => Bt({ datapoint: n, seriesIndex: b })
|
|
913
917
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
914
|
-
p.value.dataLabels.show ? (r(),
|
|
915
|
-
(r(!0),
|
|
916
|
-
b === l.plots.length - 1 || y.value && y.value.id === n.id && !p.value.showTooltip ? (r(),
|
|
918
|
+
p.value.dataLabels.show ? (r(), i("g", jl, [
|
|
919
|
+
(r(!0), i(A, null, $(l.plots, (n, b) => (r(), i(A, null, [
|
|
920
|
+
b === l.plots.length - 1 || y.value && y.value.id === n.id && !p.value.showTooltip ? (r(), i("text", {
|
|
917
921
|
key: 0,
|
|
918
922
|
x: n.x,
|
|
919
923
|
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),
|
|
920
924
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
921
925
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
922
926
|
"text-anchor": "middle",
|
|
923
|
-
style: J(`opacity:${e.value.useCssAnimation &&
|
|
927
|
+
style: J(`opacity:${e.value.useCssAnimation && G.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
924
928
|
}, S(n.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? c(ke)(
|
|
925
929
|
e.value.style.chart.labels.formatter,
|
|
926
930
|
n.value,
|
|
@@ -931,16 +935,16 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
931
935
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
932
936
|
}),
|
|
933
937
|
{ datapoint: n, seriesIndex: b }
|
|
934
|
-
) : ""), 13,
|
|
938
|
+
) : ""), 13, Xl)) : f("", !0)
|
|
935
939
|
], 64))), 256))
|
|
936
940
|
])) : f("", !0)
|
|
937
941
|
], 64))), 256)),
|
|
938
942
|
d(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
939
|
-
], 14,
|
|
940
|
-
t.$slots.watermark ? (r(),
|
|
943
|
+
], 14, Ll)),
|
|
944
|
+
t.$slots.watermark ? (r(), i("div", Yl, [
|
|
941
945
|
d(t.$slots, "watermark", m(C({ isPrinting: c(Pe) || c(ze) })), void 0, !0)
|
|
942
946
|
])) : f("", !0),
|
|
943
|
-
t.$slots.source ? (r(),
|
|
947
|
+
t.$slots.source ? (r(), i("div", {
|
|
944
948
|
key: 5,
|
|
945
949
|
ref_key: "source",
|
|
946
950
|
ref: Le,
|
|
@@ -948,7 +952,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
948
952
|
}, [
|
|
949
953
|
d(t.$slots, "source", {}, void 0, !0)
|
|
950
954
|
], 512)) : f("", !0),
|
|
951
|
-
ge(c(
|
|
955
|
+
ge(c(ft), {
|
|
952
956
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
953
957
|
show: p.value.showTooltip && Z.value,
|
|
954
958
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -977,13 +981,13 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
977
981
|
]),
|
|
978
982
|
_: 3
|
|
979
983
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
980
|
-
W.value && e.value.userOptions.buttons.table ? (r(), O(
|
|
984
|
+
W.value && e.value.userOptions.buttons.table ? (r(), O(Yt(I.value.component), Je({ key: 6 }, I.value.props, {
|
|
981
985
|
ref_key: "tableUnit",
|
|
982
986
|
ref: N,
|
|
983
987
|
onClose: Ue
|
|
984
988
|
}), qe({
|
|
985
989
|
content: v(() => [
|
|
986
|
-
(r(), O(c(
|
|
990
|
+
(r(), O(c(gt), {
|
|
987
991
|
key: `table_${Se.value}`,
|
|
988
992
|
colNames: X.value.colNames,
|
|
989
993
|
head: X.value.head,
|
|
@@ -997,7 +1001,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
997
1001
|
k("div", {
|
|
998
1002
|
innerHTML: l,
|
|
999
1003
|
style: { display: "flex", "align-items": "center" }
|
|
1000
|
-
}, null, 8,
|
|
1004
|
+
}, null, 8, ql)
|
|
1001
1005
|
]),
|
|
1002
1006
|
td: v(({ td: l }) => [
|
|
1003
1007
|
Ke(S(l.name || l), 1)
|
|
@@ -1020,9 +1024,9 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
1020
1024
|
k("button", {
|
|
1021
1025
|
tabindex: "0",
|
|
1022
1026
|
class: "vue-ui-user-options-button",
|
|
1023
|
-
onClick:
|
|
1027
|
+
onClick: o[0] || (o[0] = (l) => pe(e.value.userOptions.callbacks.csv))
|
|
1024
1028
|
}, [
|
|
1025
|
-
ge(c(
|
|
1029
|
+
ge(c(pt), {
|
|
1026
1030
|
name: "excel",
|
|
1027
1031
|
stroke: I.value.props.color
|
|
1028
1032
|
}, null, 8, ["stroke"])
|
|
@@ -1031,15 +1035,15 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", gri
|
|
|
1031
1035
|
key: "1"
|
|
1032
1036
|
} : void 0
|
|
1033
1037
|
]), 1040)) : f("", !0),
|
|
1034
|
-
c(se) ? (r(), O(
|
|
1035
|
-
], 46,
|
|
1038
|
+
c(se) ? (r(), O(hl, { key: 7 })) : f("", !0)
|
|
1039
|
+
], 46, wl));
|
|
1036
1040
|
}
|
|
1037
|
-
},
|
|
1041
|
+
}, Kl = /* @__PURE__ */ xl(Jl, [["__scopeId", "data-v-9134dd49"]]), fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1038
1042
|
__proto__: null,
|
|
1039
|
-
default:
|
|
1043
|
+
default: Kl
|
|
1040
1044
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1041
1045
|
export {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1046
|
+
bo as a,
|
|
1047
|
+
fo as b,
|
|
1048
|
+
Kl as v
|
|
1045
1049
|
};
|