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 F, computed as y, ref as d, toRefs as
|
|
2
|
-
import { c as Xe, t as
|
|
3
|
-
import { t as Je, 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
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } },
|
|
1
|
+
import { defineAsyncComponent as F, computed as y, ref as d, toRefs as Vt, onMounted as Wt, watch as Z, shallowRef as Re, onBeforeUnmount as Ne, watchEffect as Ut, createElementBlock as c, openBlock as u, normalizeStyle as L, normalizeClass as Ve, createBlock as N, createCommentVNode as g, renderSlot as b, unref as h, withCtx as p, normalizeProps as x, guardReactiveProps as $, createSlots as We, createVNode as ye, Fragment as k, renderList as S, createElementVNode as ee, toDisplayString as V, mergeProps as be, resolveDynamicComponent as Xt, createTextVNode as Ue } from "vue";
|
|
2
|
+
import { c as Xe, t as jt, i as Yt, j as te, k as Gt, o as je, g as Ye, l as qt, m as Ge, a as Jt, d as Kt, x as qe, E as W, A as Qt, C as Zt, S as el, X as tl, $ as me, v as ll, r as ol } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as Je, u as al } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as nl, a as pe } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as sl, B as ul } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as rl } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as il } from "./useThemeCheck-D1ZYXUwG.js";
|
|
8
|
+
import { u as cl } from "./useTimeLabels-DKoynYae.js";
|
|
9
|
+
import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as dl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import fl from "./Title-NgeRXqRA.js";
|
|
13
|
+
import yl from "./BaseDraggableDialog-BQYfVNu8.js";
|
|
14
|
+
import { u as bl } from "./useSvgExport-ByUukOZt.js";
|
|
15
|
+
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ke = { userOptions: { show: !1 } }, Qe = { userOptions: { show: !1 }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Ze = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, et = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { lines: { coatingColor: "#FFF8E1" }, nameLabels: { color: "#424242" }, plots: { stroke: "#FFF8E1" }, timeLabels: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, tt = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { lines: { coatingColor: "#1E1E1E" }, nameLabels: { color: "#BDBDBD" }, plots: { stroke: "#1E1E1E" }, timeLabels: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, lt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#99AA99" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#99AA99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, ot = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { lines: { coatingColor: "#fbfafa" }, nameLabels: { color: "#8A9892" }, plots: { stroke: "#fbfafa" }, timeLabels: { color: "#8A9892" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, at = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { lines: { coatingColor: "#f6f6fb" }, nameLabels: { color: "#50606C" }, plots: { stroke: "#f6f6fb" }, timeLabels: { color: "#50606C" } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, nt = {
|
|
17
17
|
default: {},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
minimal: Ke,
|
|
19
|
+
minimalDark: Qe,
|
|
20
|
+
dark: Ze,
|
|
21
|
+
celebration: et,
|
|
22
|
+
celebrationNight: tt,
|
|
23
|
+
hack: lt,
|
|
24
|
+
zen: ot,
|
|
25
|
+
concrete: at
|
|
26
|
+
}, Ql = /* @__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: et,
|
|
29
|
+
celebrationNight: tt,
|
|
30
|
+
concrete: at,
|
|
31
|
+
dark: Ze,
|
|
32
|
+
default: nt,
|
|
33
|
+
hack: lt,
|
|
34
|
+
minimal: Ke,
|
|
35
|
+
minimalDark: Qe,
|
|
36
|
+
zen: ot
|
|
37
|
+
}, Symbol.toStringTag, { value: "Module" })), pl = ["id"], gl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], kl = ["d", "stroke", "stroke-width", "onMouseenter"], Al = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ll = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], wl = ["x", "y", "fill", "font-size"], xl = ["onMouseenter", "onMouseleave", "onClick"], $l = ["x", "y", "fill", "font-size"], Sl = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Tl = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Ml = { key: 0 }, zl = { key: 1 }, Dl = ["text-anchor", "font-size", "font-weight", "fill", "transform"], El = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ol = {
|
|
34
38
|
key: 4,
|
|
35
39
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
40
|
+
}, Il = ["innerHTML"], Pl = {
|
|
37
41
|
__name: "vue-ui-bump",
|
|
38
42
|
props: {
|
|
39
43
|
config: {
|
|
@@ -49,16 +53,16 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
|
-
setup(
|
|
53
|
-
const
|
|
56
|
+
setup(st, { expose: ut }) {
|
|
57
|
+
const rt = F(() => import("./BaseIcon-4uOct8re.js")), it = F(() => import("./vue-ui-accordion-DFKaB_05.js")), ct = F(() => import("./DataTable-DyoDzNNY.js")), vt = F(() => import("./PenAndPaper-LTuSTmWE.js")), ht = F(() => import("./UserOptions-CX7Xsusk.js")), dt = F(() => import("./PackageVersion-CQxJyGQr.js")), { vue_ui_bump: ft } = nl(), { isThemeValid: yt, warnInvalidTheme: bt } = il(), A = st, U = y({
|
|
54
58
|
get() {
|
|
55
59
|
return !!A.dataset && A.dataset.length;
|
|
56
60
|
},
|
|
57
61
|
set(l) {
|
|
58
62
|
return l;
|
|
59
63
|
}
|
|
60
|
-
}), T = d(null), le = d(Xe()), ge = d(0), Ce = d(null), ke = d(null), Ae = d(null), X = d(!1),
|
|
61
|
-
...
|
|
64
|
+
}), T = d(null), le = d(Xe()), ge = d(0), Ce = d(null), ke = d(null), Ae = d(null), X = d(!1), oe = d(!1), Le = d(0), mt = d(0), _ = d(null), ae = d(null), we = d(!1), ne = d(null), se = d(null), j = d(null), f = d(null), e = d(ue()), { loading: Y, FINAL_DATASET: pt, manualLoading: G } = sl({
|
|
65
|
+
...Vt(A),
|
|
62
66
|
FINAL_CONFIG: e,
|
|
63
67
|
prepareConfig: ue,
|
|
64
68
|
skeletonDataset: [
|
|
@@ -66,7 +70,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
66
70
|
{ name: "————", values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3], color: "#6A6A6A" },
|
|
67
71
|
{ name: "————", values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1], color: "#8A8A8A" }
|
|
68
72
|
],
|
|
69
|
-
skeletonConfig:
|
|
73
|
+
skeletonConfig: jt({
|
|
70
74
|
defaultConfig: e.value,
|
|
71
75
|
userConfig: {
|
|
72
76
|
userOptions: { show: !1 },
|
|
@@ -94,50 +98,50 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
94
98
|
}
|
|
95
99
|
})
|
|
96
100
|
});
|
|
97
|
-
|
|
101
|
+
Wt(Oe);
|
|
98
102
|
function ue() {
|
|
99
103
|
const l = pe({
|
|
100
104
|
userConfig: A.config,
|
|
101
|
-
defaultConfig:
|
|
105
|
+
defaultConfig: ft
|
|
102
106
|
});
|
|
103
|
-
let
|
|
107
|
+
let o = {};
|
|
104
108
|
const t = l.theme;
|
|
105
109
|
if (t)
|
|
106
|
-
if (!
|
|
107
|
-
|
|
110
|
+
if (!yt.value(l))
|
|
111
|
+
bt(l), o = l;
|
|
108
112
|
else {
|
|
109
|
-
const
|
|
110
|
-
userConfig:
|
|
113
|
+
const a = pe({
|
|
114
|
+
userConfig: nt[t] || A.config,
|
|
111
115
|
defaultConfig: l
|
|
112
116
|
});
|
|
113
|
-
|
|
117
|
+
o = {
|
|
114
118
|
...pe({
|
|
115
119
|
userConfig: A.config,
|
|
116
|
-
defaultConfig:
|
|
120
|
+
defaultConfig: a
|
|
117
121
|
}),
|
|
118
|
-
customPalette: l.customPalette.length ? l.customPalette :
|
|
122
|
+
customPalette: l.customPalette.length ? l.customPalette : Yt[t] || te
|
|
119
123
|
};
|
|
120
124
|
}
|
|
121
125
|
else
|
|
122
|
-
|
|
123
|
-
return
|
|
126
|
+
o = l;
|
|
127
|
+
return o;
|
|
124
128
|
}
|
|
125
|
-
const { userOptionsVisible: re, setUserOptionsVisibility: xe, keepUserOptionState: $e } =
|
|
126
|
-
function
|
|
129
|
+
const { userOptionsVisible: re, setUserOptionsVisibility: xe, keepUserOptionState: $e } = vl({ config: e.value }), { svgRef: ie } = hl({ config: e.value.style.chart.title });
|
|
130
|
+
function gt() {
|
|
127
131
|
we.value = !0, xe(!0);
|
|
128
132
|
}
|
|
129
|
-
function
|
|
133
|
+
function Ct() {
|
|
130
134
|
xe(!1), we.value = !1;
|
|
131
135
|
}
|
|
132
|
-
const
|
|
136
|
+
const D = d({
|
|
133
137
|
showTable: e.value.table.show
|
|
134
138
|
});
|
|
135
139
|
Z(e, () => {
|
|
136
|
-
|
|
140
|
+
D.value = {
|
|
137
141
|
showTable: e.value.table.show
|
|
138
142
|
};
|
|
139
143
|
}, { immediate: !0 }), Z(() => A.config, (l) => {
|
|
140
|
-
Y.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover,
|
|
144
|
+
Y.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover, Oe(), Le.value += 1, mt.value += 1, D.value.showTable = e.value.table.show, w.value.width = e.value.style.chart.width, w.value.height = e.value.style.chart.height, w.value.paddingRatio = {
|
|
141
145
|
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
142
146
|
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
143
147
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
@@ -146,11 +150,11 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
146
150
|
}), Z(() => A.dataset, (l) => {
|
|
147
151
|
Array.isArray(l) && l.length > 0 && (G.value = !1);
|
|
148
152
|
}, { deep: !0 });
|
|
149
|
-
const { isPrinting: Se, isImaging: Te, generatePdf: Me, generateImage: ze } =
|
|
153
|
+
const { isPrinting: Se, isImaging: Te, generatePdf: Me, generateImage: ze } = rl({
|
|
150
154
|
elementId: `bump_${le.value}`,
|
|
151
155
|
fileName: e.value.style.chart.title.text || "vue-ui-bump",
|
|
152
156
|
options: e.value.userOptions.print
|
|
153
|
-
}),
|
|
157
|
+
}), kt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), w = d({
|
|
154
158
|
width: e.value.style.chart.width,
|
|
155
159
|
height: e.value.style.chart.height,
|
|
156
160
|
paddingRatio: {
|
|
@@ -159,14 +163,14 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
159
163
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
160
164
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
161
165
|
}
|
|
162
|
-
}),
|
|
163
|
-
function
|
|
166
|
+
}), At = y(() => Gt(e.value.customPalette)), M = Re(null), I = Re(null), De = d(null), Ee = y(() => !!e.value.debug);
|
|
167
|
+
function Oe() {
|
|
164
168
|
if (je(A.dataset) ? (Ye({
|
|
165
169
|
componentName: "VueUiBump",
|
|
166
170
|
type: "dataset",
|
|
167
|
-
debug:
|
|
168
|
-
}), G.value = !0) : A.dataset.forEach((l,
|
|
169
|
-
|
|
171
|
+
debug: Ee.value
|
|
172
|
+
}), G.value = !0) : A.dataset.forEach((l, o) => {
|
|
173
|
+
qt({
|
|
170
174
|
datasetObject: l,
|
|
171
175
|
requiredAttributes: ["name", "values"]
|
|
172
176
|
}).forEach((t) => {
|
|
@@ -174,16 +178,16 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
174
178
|
componentName: "VueUiBump",
|
|
175
179
|
type: "datasetSerieAttribute",
|
|
176
180
|
property: t,
|
|
177
|
-
index:
|
|
178
|
-
debug:
|
|
181
|
+
index: o,
|
|
182
|
+
debug: Ee.value
|
|
179
183
|
}), G.value = !0;
|
|
180
184
|
});
|
|
181
185
|
}), je(A.dataset) || (G.value = e.value.loading), setTimeout(() => {
|
|
182
|
-
|
|
186
|
+
oe.value = !0;
|
|
183
187
|
}, 10), e.value.responsive) {
|
|
184
188
|
const l = Je(() => {
|
|
185
|
-
|
|
186
|
-
const { width:
|
|
189
|
+
oe.value = !1;
|
|
190
|
+
const { width: o, height: t } = al({
|
|
187
191
|
chart: T.value,
|
|
188
192
|
noTitle: ke.value,
|
|
189
193
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
@@ -192,79 +196,79 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
192
196
|
source: Ae.value
|
|
193
197
|
});
|
|
194
198
|
requestAnimationFrame(() => {
|
|
195
|
-
w.value.width =
|
|
196
|
-
|
|
199
|
+
w.value.width = o, w.value.height = t - 12, clearTimeout(De.value), De.value = setTimeout(() => {
|
|
200
|
+
oe.value = !0;
|
|
197
201
|
}, 10);
|
|
198
202
|
});
|
|
199
203
|
});
|
|
200
|
-
M.value && (
|
|
204
|
+
M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect()), M.value = new ResizeObserver(l), I.value = T.value.parentNode, M.value.observe(I.value);
|
|
201
205
|
}
|
|
202
206
|
}
|
|
203
207
|
Ne(() => {
|
|
204
|
-
M.value && (
|
|
208
|
+
M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect());
|
|
205
209
|
});
|
|
206
|
-
const q = y(() =>
|
|
207
|
-
const t = Ge(l.color) ||
|
|
210
|
+
const q = y(() => pt.value.map((l, o) => {
|
|
211
|
+
const t = Ge(l.color) || At.value[o] || te[o] || te[o % te.length];
|
|
208
212
|
return {
|
|
209
213
|
...l,
|
|
210
|
-
absoluteIndex:
|
|
214
|
+
absoluteIndex: o,
|
|
211
215
|
id: Xe(),
|
|
212
216
|
color: t
|
|
213
217
|
};
|
|
214
|
-
})),
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
for (let t = 0; t <
|
|
218
|
-
const
|
|
218
|
+
})), E = y(() => Math.max(...q.value.map((l) => l.values.length)));
|
|
219
|
+
function Lt(l) {
|
|
220
|
+
const o = l.map(() => Array(E.value).fill(null));
|
|
221
|
+
for (let t = 0; t < E.value; t += 1) {
|
|
222
|
+
const a = l.map((n, i) => ({
|
|
219
223
|
seriesIndex: i,
|
|
220
224
|
value: n.values?.[t],
|
|
221
|
-
previousPosition: t > 0 ?
|
|
225
|
+
previousPosition: t > 0 ? o[i][t - 1] : i
|
|
222
226
|
})).filter((n) => Number.isFinite(n.value));
|
|
223
|
-
|
|
224
|
-
for (let n = 0; n <
|
|
225
|
-
const i =
|
|
226
|
-
|
|
227
|
+
a.sort((n, i) => i.value !== n.value ? i.value - n.value : n.previousPosition - i.previousPosition);
|
|
228
|
+
for (let n = 0; n < a.length; n += 1) {
|
|
229
|
+
const i = a[n];
|
|
230
|
+
o[i.seriesIndex][t] = n;
|
|
227
231
|
}
|
|
228
232
|
}
|
|
229
|
-
return
|
|
233
|
+
return o;
|
|
230
234
|
}
|
|
231
|
-
function
|
|
235
|
+
function wt() {
|
|
232
236
|
let l = 0;
|
|
233
|
-
return ne.value && (l = Array.from(ne.value.querySelectorAll("tspan")).reduce((t,
|
|
234
|
-
const n =
|
|
237
|
+
return ne.value && (l = Array.from(ne.value.querySelectorAll("tspan")).reduce((t, a) => {
|
|
238
|
+
const n = a.getComputedTextLength();
|
|
235
239
|
return n > t ? n : t;
|
|
236
240
|
}, 0)), l;
|
|
237
241
|
}
|
|
238
|
-
function
|
|
242
|
+
function xt() {
|
|
239
243
|
let l = 0;
|
|
240
|
-
return se.value && (l = Array.from(se.value.querySelectorAll("tspan")).reduce((t,
|
|
241
|
-
const n =
|
|
244
|
+
return se.value && (l = Array.from(se.value.querySelectorAll("tspan")).reduce((t, a) => {
|
|
245
|
+
const n = a.getComputedTextLength();
|
|
242
246
|
return n > t ? n : t;
|
|
243
247
|
}, 0)), l;
|
|
244
248
|
}
|
|
245
|
-
const ce = d(0),
|
|
249
|
+
const ce = d(0), $t = Je((l) => {
|
|
246
250
|
ce.value = l;
|
|
247
251
|
}, 100);
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
251
|
-
const t = new ResizeObserver((
|
|
252
|
-
|
|
252
|
+
Ut((l) => {
|
|
253
|
+
const o = j.value;
|
|
254
|
+
if (!o) return;
|
|
255
|
+
const t = new ResizeObserver((a) => {
|
|
256
|
+
$t(a[0].contentRect.height);
|
|
253
257
|
});
|
|
254
|
-
t.observe(
|
|
258
|
+
t.observe(o), l(() => t.disconnect());
|
|
255
259
|
}), Ne(() => {
|
|
256
260
|
ce.value = 0;
|
|
257
261
|
});
|
|
258
|
-
const
|
|
262
|
+
const St = y(() => {
|
|
259
263
|
let l = 0;
|
|
260
264
|
return j.value && (l = ce.value), l;
|
|
261
265
|
}), s = y(() => {
|
|
262
|
-
const { height: l, width:
|
|
263
|
-
let n =
|
|
264
|
-
const r = e.value.style.chart.padding.top, v =
|
|
266
|
+
const { height: l, width: o } = w.value, { right: t, left: a } = w.value.paddingRatio;
|
|
267
|
+
let n = wt(), i = xt();
|
|
268
|
+
const r = e.value.style.chart.padding.top, v = o - o * t - i, m = o * a + n, C = o - o * t - o * a - n - i, P = l - r - e.value.style.chart.padding.bottom - St.value, fe = r + P, Ht = r + P, Rt = Math.max(0, l), Nt = Math.max(0, o);
|
|
265
269
|
return {
|
|
266
|
-
chartHeight:
|
|
267
|
-
chartWidth:
|
|
270
|
+
chartHeight: Ht,
|
|
271
|
+
chartWidth: Nt,
|
|
268
272
|
top: r,
|
|
269
273
|
right: Math.max(0, v),
|
|
270
274
|
bottom: Math.max(0, fe),
|
|
@@ -272,58 +276,58 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
272
276
|
width: Math.max(0, C),
|
|
273
277
|
height: Math.max(0, P),
|
|
274
278
|
unitH: Math.max(0, P) / q.value.length,
|
|
275
|
-
unitW: Math.max(0, C) /
|
|
276
|
-
svgHeight:
|
|
279
|
+
unitW: Math.max(0, C) / E.value,
|
|
280
|
+
svgHeight: Rt
|
|
277
281
|
};
|
|
278
282
|
}), z = y(() => {
|
|
279
283
|
if (!U.value && !Y.value) return [];
|
|
280
|
-
const l =
|
|
281
|
-
return q.value.map((
|
|
282
|
-
...
|
|
284
|
+
const l = Lt(q.value);
|
|
285
|
+
return q.value.map((o, t) => ({
|
|
286
|
+
...o,
|
|
283
287
|
positions: l[t]
|
|
284
|
-
})).map((
|
|
285
|
-
const t =
|
|
286
|
-
const v =
|
|
288
|
+
})).map((o) => {
|
|
289
|
+
const t = o.positions.map((i, r) => {
|
|
290
|
+
const v = Jt(
|
|
287
291
|
e.value.style.chart.layout.plots.labels.formatter,
|
|
288
|
-
|
|
289
|
-
|
|
292
|
+
o.values[r],
|
|
293
|
+
Kt({
|
|
290
294
|
p: e.value.style.chart.layout.plots.labels.prefix,
|
|
291
|
-
v:
|
|
295
|
+
v: o.values[r],
|
|
292
296
|
s: e.value.style.chart.layout.plots.labels.suffix,
|
|
293
297
|
r: e.value.style.chart.layout.plots.labels.rounding
|
|
294
298
|
})
|
|
295
299
|
);
|
|
296
300
|
return {
|
|
297
|
-
name:
|
|
298
|
-
id:
|
|
301
|
+
name: o.name,
|
|
302
|
+
id: o.id,
|
|
299
303
|
x: s.value.left + r * s.value.unitW + s.value.unitW / 2,
|
|
300
304
|
y: s.value.top + i * s.value.unitH + s.value.unitH / 2,
|
|
301
|
-
value:
|
|
305
|
+
value: o.values[r],
|
|
302
306
|
displayValue: v,
|
|
303
|
-
rank:
|
|
304
|
-
color:
|
|
305
|
-
labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? qe(
|
|
307
|
+
rank: o.positions[r] + 1,
|
|
308
|
+
color: o.color,
|
|
309
|
+
labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? qe(o.color) : Ge(e.value.style.chart.layout.plots.labels.color) ?? qe(o.color)
|
|
306
310
|
};
|
|
307
|
-
}),
|
|
311
|
+
}), a = t.filter((i) => W(i.value)), n = e.value.style.chart.layout.lines.smooth ? Qt(a) : Zt(a);
|
|
308
312
|
return {
|
|
309
|
-
...
|
|
313
|
+
...o,
|
|
310
314
|
coordinates: t,
|
|
311
315
|
path: n
|
|
312
316
|
};
|
|
313
317
|
});
|
|
314
318
|
});
|
|
315
|
-
function
|
|
319
|
+
function Ie(l, o, t, a) {
|
|
316
320
|
const n = l.toSorted((r, v) => r.y - v.y);
|
|
317
321
|
for (let r = 1; r < n.length; r += 1) {
|
|
318
322
|
const v = n[r - 1], m = n[r];
|
|
319
|
-
m.y < v.y +
|
|
323
|
+
m.y < v.y + o && (m.y = v.y + o);
|
|
320
324
|
}
|
|
321
325
|
const i = n.length - 1;
|
|
322
|
-
if (i >= 0 && n[i].y >
|
|
323
|
-
n[i].y =
|
|
326
|
+
if (i >= 0 && n[i].y > a) {
|
|
327
|
+
n[i].y = a;
|
|
324
328
|
for (let r = i - 1; r >= 0; r -= 1) {
|
|
325
329
|
const v = n[r + 1], m = n[r];
|
|
326
|
-
m.y > v.y -
|
|
330
|
+
m.y > v.y - o && (m.y = v.y - o);
|
|
327
331
|
}
|
|
328
332
|
}
|
|
329
333
|
if (n.length && n[0].y < t) {
|
|
@@ -334,32 +338,32 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
334
338
|
return n;
|
|
335
339
|
}
|
|
336
340
|
const Pe = y(() => {
|
|
337
|
-
const l = [],
|
|
341
|
+
const l = [], o = [];
|
|
338
342
|
z.value.forEach((m) => {
|
|
339
343
|
const C = m.coordinates.filter((fe) => Number.isFinite(fe.rank));
|
|
340
344
|
if (!C.length) return;
|
|
341
345
|
l.push({ ...C[0] });
|
|
342
346
|
const P = C[C.length - 1];
|
|
343
|
-
|
|
347
|
+
o.push({ ...P });
|
|
344
348
|
});
|
|
345
|
-
const t = e.value.style.chart.layout.nameLabels.fontSize,
|
|
346
|
-
a,
|
|
349
|
+
const t = e.value.style.chart.layout.nameLabels.fontSize, a = t * 1.4, n = s.value.top + t, i = s.value.bottom - t, r = Ie(
|
|
347
350
|
o,
|
|
351
|
+
a,
|
|
348
352
|
n,
|
|
349
353
|
i
|
|
350
354
|
);
|
|
351
355
|
return {
|
|
352
|
-
left:
|
|
356
|
+
left: Ie(
|
|
353
357
|
l,
|
|
354
|
-
|
|
358
|
+
a,
|
|
355
359
|
n,
|
|
356
360
|
i
|
|
357
361
|
),
|
|
358
362
|
right: r
|
|
359
363
|
};
|
|
360
364
|
});
|
|
361
|
-
function
|
|
362
|
-
const
|
|
365
|
+
function Tt(l) {
|
|
366
|
+
const o = e.value.style.chart.layout.plots.labels.fontSize * 0.4, t = l.displayValue, a = t.length * (e.value.style.chart.layout.plots.labels.fontSize * (t.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, i = a + o * 2, r = n + o * 2, v = l.x - i / 2, m = l.y - r / 2, C = e.value.style.chart.layout.plots.strokeWidth;
|
|
363
367
|
return {
|
|
364
368
|
x: v - C / 2,
|
|
365
369
|
y: m - C / 2,
|
|
@@ -371,41 +375,41 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
371
375
|
rx: r / 2
|
|
372
376
|
};
|
|
373
377
|
}
|
|
374
|
-
const B = y(() =>
|
|
378
|
+
const B = y(() => cl({
|
|
375
379
|
values: e.value.style.chart.layout.timeLabels.values,
|
|
376
|
-
maxDatapoints:
|
|
380
|
+
maxDatapoints: E.value,
|
|
377
381
|
formatter: e.value.style.chart.layout.timeLabels.datetimeFormatter,
|
|
378
382
|
start: 0,
|
|
379
|
-
end:
|
|
380
|
-
})),
|
|
383
|
+
end: E.value
|
|
384
|
+
})), Mt = y(() => {
|
|
381
385
|
const l = e.value.style.chart.layout.timeLabels.modulo;
|
|
382
|
-
return B.value.length ? Math.min(l, [...new Set(B.value.map((
|
|
386
|
+
return B.value.length ? Math.min(l, [...new Set(B.value.map((o) => o.text))].length) : l;
|
|
383
387
|
}), J = y(() => {
|
|
384
|
-
const l = e.value.style.chart.layout.timeLabels,
|
|
385
|
-
return
|
|
388
|
+
const l = e.value.style.chart.layout.timeLabels, o = B.value || [], t = B.value || [], a = 0, n = null, i = E.value, r = o.map((m) => m?.text ?? ""), v = t.map((m) => m?.text ?? "");
|
|
389
|
+
return el(
|
|
386
390
|
!!l.showOnlyFirstAndLast,
|
|
387
391
|
!!l.showOnlyAtModulo,
|
|
388
|
-
Math.max(1,
|
|
392
|
+
Math.max(1, Mt.value || 1),
|
|
389
393
|
r,
|
|
390
394
|
v,
|
|
391
|
-
|
|
395
|
+
a,
|
|
392
396
|
n,
|
|
393
397
|
i
|
|
394
398
|
);
|
|
395
|
-
}),
|
|
399
|
+
}), zt = y(() => w.value.width), Dt = y(() => w.value.height), Et = y(() => ({
|
|
396
400
|
start: 0,
|
|
397
|
-
end:
|
|
401
|
+
end: E.value
|
|
398
402
|
}));
|
|
399
|
-
|
|
403
|
+
dl({
|
|
400
404
|
timeLabelsEls: j,
|
|
401
405
|
timeLabels: B,
|
|
402
|
-
slicer:
|
|
406
|
+
slicer: Et,
|
|
403
407
|
configRef: e,
|
|
404
408
|
rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
|
|
405
409
|
autoRotatePath: ["style", "chart", "layout", "timeLabels", "autoRotate", "enable"],
|
|
406
410
|
isAutoSize: !1,
|
|
407
|
-
width:
|
|
408
|
-
height:
|
|
411
|
+
width: zt,
|
|
412
|
+
height: Dt,
|
|
409
413
|
rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
|
|
410
414
|
});
|
|
411
415
|
const K = d(!1);
|
|
@@ -416,31 +420,31 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
416
420
|
X.value = l, ge.value += 1;
|
|
417
421
|
}
|
|
418
422
|
function _e() {
|
|
419
|
-
|
|
423
|
+
D.value.showTable = !D.value.showTable;
|
|
420
424
|
}
|
|
421
|
-
Z(() =>
|
|
425
|
+
Z(() => D.value.showTable, (l) => {
|
|
422
426
|
e.value.table.show || (l && e.value.table.useDialog && _.value ? _.value.open() : "close" in _.value && _.value.close());
|
|
423
427
|
});
|
|
424
428
|
function Be() {
|
|
425
|
-
|
|
429
|
+
D.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
426
430
|
}
|
|
427
|
-
function
|
|
431
|
+
function Ot() {
|
|
428
432
|
return z.value;
|
|
429
433
|
}
|
|
430
434
|
function he(l = null) {
|
|
431
|
-
const
|
|
435
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...J.value.map((v) => v?.text ?? "")], a = z.value.map((v) => [
|
|
432
436
|
v.name,
|
|
433
437
|
...v.coordinates.map((m) => `${m.displayValue}`)
|
|
434
438
|
]), n = z.value.map((v) => [
|
|
435
439
|
v.name,
|
|
436
440
|
...v.coordinates.map((m) => `${m.rank}`)
|
|
437
|
-
]), i =
|
|
438
|
-
l ? l(r) :
|
|
441
|
+
]), i = o.concat([[e.value.table.columnNames.values]]).concat([t]).concat(a).concat([[""], [e.value.table.columnNames.ranking], [t]]).concat(n), r = ll(i);
|
|
442
|
+
l ? l(r) : ol({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-bump" });
|
|
439
443
|
}
|
|
440
444
|
const H = y(() => {
|
|
441
|
-
const l = e.value.table.useDialog && !e.value.table.show,
|
|
445
|
+
const l = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
442
446
|
return {
|
|
443
|
-
component: l ?
|
|
447
|
+
component: l ? yl : it,
|
|
444
448
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
445
449
|
props: l ? {
|
|
446
450
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -453,7 +457,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
453
457
|
} : {
|
|
454
458
|
hideDetails: !0,
|
|
455
459
|
config: {
|
|
456
|
-
open:
|
|
460
|
+
open: o,
|
|
457
461
|
maxHeight: 1e4,
|
|
458
462
|
body: {
|
|
459
463
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -467,7 +471,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
467
471
|
}
|
|
468
472
|
};
|
|
469
473
|
}), Q = y(() => {
|
|
470
|
-
const l = [""].concat(J.value.map((n) => n.text)),
|
|
474
|
+
const l = [""].concat(J.value.map((n) => n.text)), o = z.value.map((n, i) => [
|
|
471
475
|
n.name,
|
|
472
476
|
...n.coordinates.map((r) => `${r.displayValue} (${r.rank})`)
|
|
473
477
|
]), t = {
|
|
@@ -482,55 +486,55 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
482
486
|
outline: e.value.table.td.outline
|
|
483
487
|
},
|
|
484
488
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
485
|
-
},
|
|
486
|
-
return { head: l, body:
|
|
487
|
-
}),
|
|
489
|
+
}, a = [e.value.table.columnNames.series];
|
|
490
|
+
return { head: l, body: o, config: t, colNames: a };
|
|
491
|
+
}), It = y(() => e.value.style.chart.backgroundColor), Pt = y(() => e.value.style.chart.title), { exportSvg: Ft, getSvg: _t } = bl({
|
|
488
492
|
svg: ie,
|
|
489
|
-
title:
|
|
493
|
+
title: Pt,
|
|
490
494
|
legend: null,
|
|
491
495
|
legendItems: null,
|
|
492
|
-
backgroundColor:
|
|
496
|
+
backgroundColor: It
|
|
493
497
|
});
|
|
494
498
|
async function He({ isCb: l }) {
|
|
495
499
|
if (l) {
|
|
496
|
-
const { blob:
|
|
497
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
500
|
+
const { blob: o, url: t, text: a, dataUrl: n } = await _t();
|
|
501
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: n });
|
|
498
502
|
} else
|
|
499
|
-
|
|
503
|
+
Ft();
|
|
500
504
|
}
|
|
501
|
-
async function
|
|
505
|
+
async function Bt({ scale: l = 2 } = {}) {
|
|
502
506
|
if (!T.value) return;
|
|
503
|
-
const { width:
|
|
507
|
+
const { width: o, height: t } = T.value.getBoundingClientRect(), a = o / t, { imageUri: n, base64: i } = await img({ domElement: T.value, base64: !0, img: !0, scale: l });
|
|
504
508
|
return {
|
|
505
509
|
imageUri: n,
|
|
506
510
|
base64: i,
|
|
507
511
|
title: e.value.style.chart.title.text,
|
|
508
|
-
width:
|
|
512
|
+
width: o,
|
|
509
513
|
height: t,
|
|
510
|
-
aspectRatio:
|
|
514
|
+
aspectRatio: a
|
|
511
515
|
};
|
|
512
516
|
}
|
|
513
|
-
function
|
|
514
|
-
f.value =
|
|
517
|
+
function O(l, o) {
|
|
518
|
+
f.value = o.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
515
519
|
datapoint: l,
|
|
516
520
|
seriesIndex: l?.pointIndex ?? null
|
|
517
521
|
});
|
|
518
522
|
}
|
|
519
|
-
function R(l,
|
|
523
|
+
function R(l, o) {
|
|
520
524
|
f.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
521
525
|
datapoint: l,
|
|
522
526
|
seriesIndex: l?.pointIndex ?? null
|
|
523
527
|
});
|
|
524
528
|
}
|
|
525
|
-
function de(l,
|
|
529
|
+
function de(l, o) {
|
|
526
530
|
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
527
531
|
datapoint: l,
|
|
528
532
|
seriesIndex: l?.pointIndex ?? null
|
|
529
533
|
});
|
|
530
534
|
}
|
|
531
|
-
return
|
|
532
|
-
getData:
|
|
533
|
-
getImage:
|
|
535
|
+
return ut({
|
|
536
|
+
getData: Ot,
|
|
537
|
+
getImage: Bt,
|
|
534
538
|
generatePdf: Me,
|
|
535
539
|
generateCsv: he,
|
|
536
540
|
generateImage: ze,
|
|
@@ -538,16 +542,16 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
538
542
|
toggleTable: _e,
|
|
539
543
|
toggleAnnotator: ve,
|
|
540
544
|
toggleFullscreen: Fe
|
|
541
|
-
}), (l,
|
|
545
|
+
}), (l, o) => (u(), c("div", {
|
|
542
546
|
id: `bump_${le.value}`,
|
|
543
547
|
ref_key: "bumpChart",
|
|
544
548
|
ref: T,
|
|
545
549
|
class: Ve({ "vue-data-ui-component": !0, "vue-ui-bump": !0, "vue-data-ui-wrapper-fullscreen": X.value }),
|
|
546
550
|
style: L(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
547
|
-
onMouseenter:
|
|
548
|
-
onMouseleave:
|
|
551
|
+
onMouseenter: gt,
|
|
552
|
+
onMouseleave: Ct
|
|
549
553
|
}, [
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (u(), N(h(
|
|
554
|
+
e.value.userOptions.buttons.annotator ? (u(), N(h(vt), {
|
|
551
555
|
key: 0,
|
|
552
556
|
svgRef: h(ie),
|
|
553
557
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -576,7 +580,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
576
580
|
_: 3
|
|
577
581
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
578
582
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
579
|
-
|
|
583
|
+
kt.value ? (u(), c("div", {
|
|
580
584
|
key: 1,
|
|
581
585
|
ref_key: "noTitle",
|
|
582
586
|
ref: ke,
|
|
@@ -589,7 +593,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
589
593
|
ref: Ce,
|
|
590
594
|
style: "width:100%;background:transparent;"
|
|
591
595
|
}, [
|
|
592
|
-
(u(), N(
|
|
596
|
+
(u(), N(fl, {
|
|
593
597
|
key: `title_${Le.value}`,
|
|
594
598
|
config: {
|
|
595
599
|
title: {
|
|
@@ -603,9 +607,9 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
603
607
|
}
|
|
604
608
|
}, null, 8, ["config"]))
|
|
605
609
|
], 512)) : g("", !0),
|
|
606
|
-
e.value.userOptions.show && U.value && (h($e) || h(re)) ? (u(), N(h(
|
|
610
|
+
e.value.userOptions.show && U.value && (h($e) || h(re)) ? (u(), N(h(ht), {
|
|
607
611
|
ref_key: "userOptionsRef",
|
|
608
|
-
ref:
|
|
612
|
+
ref: ae,
|
|
609
613
|
key: `user_option_${ge.value}`,
|
|
610
614
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
611
615
|
color: e.value.style.chart.color,
|
|
@@ -642,8 +646,8 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
642
646
|
}, We({ _: 2 }, [
|
|
643
647
|
l.$slots.menuIcon ? {
|
|
644
648
|
name: "menuIcon",
|
|
645
|
-
fn: p(({ isOpen: t, color:
|
|
646
|
-
b(l.$slots, "menuIcon", x($({ isOpen: t, color:
|
|
649
|
+
fn: p(({ isOpen: t, color: a }) => [
|
|
650
|
+
b(l.$slots, "menuIcon", x($({ isOpen: t, color: a })), void 0, !0)
|
|
647
651
|
]),
|
|
648
652
|
key: "0"
|
|
649
653
|
} : void 0,
|
|
@@ -684,15 +688,15 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
684
688
|
} : void 0,
|
|
685
689
|
l.$slots.optionFullscreen ? {
|
|
686
690
|
name: "optionFullscreen",
|
|
687
|
-
fn: p(({ toggleFullscreen: t, isFullscreen:
|
|
688
|
-
b(l.$slots, "optionFullscreen", x($({ toggleFullscreen: t, isFullscreen:
|
|
691
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
692
|
+
b(l.$slots, "optionFullscreen", x($({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
689
693
|
]),
|
|
690
694
|
key: "6"
|
|
691
695
|
} : void 0,
|
|
692
696
|
l.$slots.optionAnnotator ? {
|
|
693
697
|
name: "optionAnnotator",
|
|
694
|
-
fn: p(({ toggleAnnotator: t, isAnnotator:
|
|
695
|
-
b(l.$slots, "optionAnnotator", x($({ toggleAnnotator: t, isAnnotator:
|
|
698
|
+
fn: p(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
699
|
+
b(l.$slots, "optionAnnotator", x($({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
696
700
|
]),
|
|
697
701
|
key: "7"
|
|
698
702
|
} : void 0
|
|
@@ -700,7 +704,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
700
704
|
(u(), c("svg", {
|
|
701
705
|
ref_key: "svgRef",
|
|
702
706
|
ref: ie,
|
|
703
|
-
xmlns: h(
|
|
707
|
+
xmlns: h(tl),
|
|
704
708
|
viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.svgHeight <= 0 ? 10 : s.value.svgHeight}`,
|
|
705
709
|
class: Ve({ "vue-data-ui-loading": h(Y), "no-transition": !e.value.useCssAnimation, "with-transition": e.value.useCssAnimation }),
|
|
706
710
|
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
@@ -708,7 +712,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
708
712
|
"aria-live": "polite",
|
|
709
713
|
preserveAspectRatio: "xMidYMid"
|
|
710
714
|
}, [
|
|
711
|
-
ye(h(
|
|
715
|
+
ye(h(dt)),
|
|
712
716
|
l.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
713
717
|
key: 0,
|
|
714
718
|
x: s.value.left,
|
|
@@ -720,7 +724,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
720
724
|
}
|
|
721
725
|
}, [
|
|
722
726
|
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
723
|
-
], 8,
|
|
727
|
+
], 8, Cl)) : g("", !0),
|
|
724
728
|
(u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
|
|
725
729
|
ee("path", {
|
|
726
730
|
class: "transition-opacity",
|
|
@@ -733,9 +737,9 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
733
737
|
style: L({
|
|
734
738
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
735
739
|
}),
|
|
736
|
-
onMouseenter: (
|
|
737
|
-
onMouseleave:
|
|
738
|
-
}, null, 44,
|
|
740
|
+
onMouseenter: (a) => f.value = t.id,
|
|
741
|
+
onMouseleave: o[0] || (o[0] = (a) => f.value = null)
|
|
742
|
+
}, null, 44, kl),
|
|
739
743
|
ee("path", {
|
|
740
744
|
class: "transition-opacity",
|
|
741
745
|
d: `M${t.path}`,
|
|
@@ -747,16 +751,16 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
747
751
|
style: L({
|
|
748
752
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
749
753
|
}),
|
|
750
|
-
onMouseenter: (
|
|
751
|
-
onMouseleave: (
|
|
752
|
-
onClick: (
|
|
753
|
-
}, null, 44,
|
|
754
|
+
onMouseenter: (a) => O(t, t),
|
|
755
|
+
onMouseleave: (a) => R(t),
|
|
756
|
+
onClick: (a) => de(t)
|
|
757
|
+
}, null, 44, Al)
|
|
754
758
|
], 64))), 256)),
|
|
755
759
|
(u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
|
|
756
|
-
e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 0 }, S(t.coordinates, (
|
|
760
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 0 }, S(t.coordinates, (a, n) => (u(), c("circle", {
|
|
757
761
|
class: "transition-opacity",
|
|
758
|
-
cx:
|
|
759
|
-
cy:
|
|
762
|
+
cx: a.x,
|
|
763
|
+
cy: a.y,
|
|
760
764
|
r: e.value.style.chart.layout.plots.radius,
|
|
761
765
|
fill: t.color,
|
|
762
766
|
stroke: e.value.style.chart.layout.plots.stroke,
|
|
@@ -764,15 +768,15 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
764
768
|
style: L({
|
|
765
769
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
766
770
|
}),
|
|
767
|
-
onMouseenter: (i) =>
|
|
768
|
-
onMouseleave: (i) => R({ ...
|
|
769
|
-
onClick: (i) =>
|
|
770
|
-
}, null, 44,
|
|
771
|
-
e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 1 }, S(t.coordinates, (
|
|
771
|
+
onMouseenter: (i) => O({ ...a, pointIndex: n }, t),
|
|
772
|
+
onMouseleave: (i) => R({ ...a, pointIndex: n }),
|
|
773
|
+
onClick: (i) => O({ ...a, pointIndex: n }, t)
|
|
774
|
+
}, null, 44, Ll))), 256)) : g("", !0),
|
|
775
|
+
e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 1 }, S(t.coordinates, (a) => (u(), c("text", {
|
|
772
776
|
class: "transition-opacity",
|
|
773
|
-
x:
|
|
774
|
-
y:
|
|
775
|
-
fill:
|
|
777
|
+
x: a.x,
|
|
778
|
+
y: a.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
779
|
+
fill: a.labelColor,
|
|
776
780
|
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
777
781
|
"text-anchor": "middle",
|
|
778
782
|
style: L({
|
|
@@ -780,25 +784,25 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
780
784
|
pointerEvents: "none",
|
|
781
785
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
782
786
|
})
|
|
783
|
-
}, V(
|
|
784
|
-
e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (u(!0), c(k, { key: 2 }, S(t.coordinates, (
|
|
785
|
-
h(W)(
|
|
787
|
+
}, V(a.rank), 13, wl))), 256)) : g("", !0),
|
|
788
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (u(!0), c(k, { key: 2 }, S(t.coordinates, (a) => (u(), c(k, null, [
|
|
789
|
+
h(W)(a.value) ? (u(), c("rect", be({
|
|
786
790
|
key: 0,
|
|
787
791
|
class: "transition-opacity"
|
|
788
|
-
}, { ref_for: !0 },
|
|
792
|
+
}, { ref_for: !0 }, Tt(a), {
|
|
789
793
|
style: {
|
|
790
794
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
791
795
|
},
|
|
792
|
-
onMouseenter: (n) =>
|
|
796
|
+
onMouseenter: (n) => O({ ...l.point, pointIndex: l.i }, t),
|
|
793
797
|
onMouseleave: (n) => R({ ...l.point, pointIndex: l.i }),
|
|
794
|
-
onClick: (n) =>
|
|
795
|
-
}), null, 16,
|
|
796
|
-
h(W)(
|
|
798
|
+
onClick: (n) => O({ ...l.point, pointIndex: l.i }, t)
|
|
799
|
+
}), null, 16, xl)) : g("", !0),
|
|
800
|
+
h(W)(a.value) && e.value.style.chart.layout.plots.labels.show ? (u(), c("text", {
|
|
797
801
|
key: 1,
|
|
798
802
|
class: "transition-opacity",
|
|
799
|
-
x:
|
|
800
|
-
y:
|
|
801
|
-
fill:
|
|
803
|
+
x: a.x,
|
|
804
|
+
y: a.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
805
|
+
fill: a.labelColor,
|
|
802
806
|
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
803
807
|
"text-anchor": "middle",
|
|
804
808
|
style: L({
|
|
@@ -806,7 +810,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
806
810
|
pointerEvents: "none",
|
|
807
811
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
808
812
|
})
|
|
809
|
-
}, V(
|
|
813
|
+
}, V(a.displayValue), 13, $l)) : g("", !0)
|
|
810
814
|
], 64))), 256)) : g("", !0)
|
|
811
815
|
], 64))), 256)),
|
|
812
816
|
e.value.style.chart.layout.nameLabels.leftLabels.show ? (u(), c("g", {
|
|
@@ -814,7 +818,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
814
818
|
ref_key: "labelsLeft",
|
|
815
819
|
ref: ne
|
|
816
820
|
}, [
|
|
817
|
-
(u(!0), c(k, null, S(Pe.value.left.filter((t) => h(W)(t.value)), (t,
|
|
821
|
+
(u(!0), c(k, null, S(Pe.value.left.filter((t) => h(W)(t.value)), (t, a) => (u(), c("text", {
|
|
818
822
|
class: "transition-opacity",
|
|
819
823
|
x: s.value.left,
|
|
820
824
|
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
@@ -833,17 +837,17 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
833
837
|
style: L({
|
|
834
838
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
835
839
|
}),
|
|
836
|
-
onMouseenter: (n) =>
|
|
840
|
+
onMouseenter: (n) => O(t, t),
|
|
837
841
|
onMouseleave: (n) => R(t),
|
|
838
842
|
onClick: (n) => de(t)
|
|
839
|
-
}, null, 44,
|
|
843
|
+
}, null, 44, Sl))), 256))
|
|
840
844
|
], 512)) : g("", !0),
|
|
841
845
|
e.value.style.chart.layout.nameLabels.rightLabels.show ? (u(), c("g", {
|
|
842
846
|
key: 2,
|
|
843
847
|
ref_key: "labelsRight",
|
|
844
848
|
ref: se
|
|
845
849
|
}, [
|
|
846
|
-
(u(!0), c(k, null, S(Pe.value.right.filter((t) => h(W)(t.value)), (t,
|
|
850
|
+
(u(!0), c(k, null, S(Pe.value.right.filter((t) => h(W)(t.value)), (t, a) => (u(), c("text", {
|
|
847
851
|
class: "transition-opacity",
|
|
848
852
|
x: s.value.right,
|
|
849
853
|
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
@@ -862,41 +866,41 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
862
866
|
style: L({
|
|
863
867
|
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
864
868
|
}),
|
|
865
|
-
onMouseenter: (n) =>
|
|
869
|
+
onMouseenter: (n) => O(t, t),
|
|
866
870
|
onMouseleave: (n) => R(t),
|
|
867
871
|
onClick: (n) => de(t)
|
|
868
|
-
}, null, 44,
|
|
872
|
+
}, null, 44, Tl))), 256))
|
|
869
873
|
], 512)) : g("", !0),
|
|
870
874
|
e.value.style.chart.layout.timeLabels.show ? (u(), c("g", {
|
|
871
875
|
key: 3,
|
|
872
876
|
ref_key: "timeLabelsEls",
|
|
873
877
|
ref: j
|
|
874
878
|
}, [
|
|
875
|
-
l.$slots["time-label"] ? (u(), c("g",
|
|
876
|
-
(u(!0), c(k, null, S(J.value, (t,
|
|
879
|
+
l.$slots["time-label"] ? (u(), c("g", Ml, [
|
|
880
|
+
(u(!0), c(k, null, S(J.value, (t, a) => (u(), c("g", null, [
|
|
877
881
|
b(l.$slots, "time-label", be({ ref_for: !0 }, {
|
|
878
|
-
x: s.value.unitW *
|
|
882
|
+
x: s.value.unitW * a + s.value.unitW / 2 + s.value.left,
|
|
879
883
|
y: s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
|
|
880
884
|
fontSize: e.value.style.chart.layout.timeLabels.fontSize,
|
|
881
885
|
fill: e.value.style.chart.layout.timeLabels.color,
|
|
882
|
-
transform: `translate(${s.value.unitW *
|
|
886
|
+
transform: `translate(${s.value.unitW * a + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
|
|
883
887
|
absoluteIndex: t.absoluteIndex,
|
|
884
888
|
content: t.text,
|
|
885
889
|
textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
886
890
|
show: !0
|
|
887
891
|
}), void 0, !0)
|
|
888
892
|
]))), 256))
|
|
889
|
-
])) : (u(), c("g",
|
|
890
|
-
(u(!0), c(k, null, S(J.value, (t,
|
|
893
|
+
])) : (u(), c("g", zl, [
|
|
894
|
+
(u(!0), c(k, null, S(J.value, (t, a) => (u(), c("g", null, [
|
|
891
895
|
String(t.text).includes(`
|
|
892
896
|
`) ? (u(), c("text", {
|
|
893
|
-
key:
|
|
897
|
+
key: a + "-multi",
|
|
894
898
|
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
895
899
|
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
896
900
|
fill: e.value.style.chart.layout.timeLabels.color,
|
|
897
901
|
transform: `
|
|
898
902
|
translate(
|
|
899
|
-
${s.value.unitW *
|
|
903
|
+
${s.value.unitW * a + s.value.unitW / 2 + s.value.left},
|
|
900
904
|
${s.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
|
|
901
905
|
),
|
|
902
906
|
rotate(${e.value.style.chart.layout.timeLabels.rotation})
|
|
@@ -908,15 +912,15 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
908
912
|
x: 0,
|
|
909
913
|
y: 0
|
|
910
914
|
})
|
|
911
|
-
}, null, 8,
|
|
915
|
+
}, null, 8, El)) : (u(), c("text", {
|
|
912
916
|
class: "vue-data-ui-time-label",
|
|
913
|
-
key:
|
|
917
|
+
key: a,
|
|
914
918
|
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
915
919
|
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
916
920
|
"font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
|
|
917
921
|
fill: e.value.style.chart.layout.timeLabels.color,
|
|
918
|
-
transform: `translate(${s.value.unitW *
|
|
919
|
-
}, V(t.text), 9,
|
|
922
|
+
transform: `translate(${s.value.unitW * a + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
|
|
923
|
+
}, V(t.text), 9, Dl))
|
|
920
924
|
]))), 256))
|
|
921
925
|
]))
|
|
922
926
|
], 512)) : g("", !0),
|
|
@@ -926,17 +930,17 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
926
930
|
data: z.value
|
|
927
931
|
}
|
|
928
932
|
}, void 0, !0)
|
|
929
|
-
], 14,
|
|
930
|
-
l.$slots.watermark ? (u(), c("div",
|
|
933
|
+
], 14, gl)),
|
|
934
|
+
l.$slots.watermark ? (u(), c("div", Ol, [
|
|
931
935
|
b(l.$slots, "watermark", x($({ isPrinting: h(Se) || h(Te) })), void 0, !0)
|
|
932
936
|
])) : g("", !0),
|
|
933
|
-
U.value && e.value.userOptions.buttons.table ? (u(), N(
|
|
937
|
+
U.value && e.value.userOptions.buttons.table ? (u(), N(Xt(H.value.component), be({ key: 5 }, H.value.props, {
|
|
934
938
|
ref_key: "tableUnit",
|
|
935
939
|
ref: _,
|
|
936
940
|
onClose: Be
|
|
937
941
|
}), We({
|
|
938
942
|
content: p(() => [
|
|
939
|
-
ye(h(
|
|
943
|
+
ye(h(ct), {
|
|
940
944
|
colNames: Q.value.colNames,
|
|
941
945
|
head: Q.value.head,
|
|
942
946
|
body: Q.value.body,
|
|
@@ -946,7 +950,7 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
946
950
|
onClose: Be
|
|
947
951
|
}, {
|
|
948
952
|
th: p(({ th: t }) => [
|
|
949
|
-
ee("div", { innerHTML: t }, null, 8,
|
|
953
|
+
ee("div", { innerHTML: t }, null, 8, Il)
|
|
950
954
|
]),
|
|
951
955
|
td: p(({ td: t }) => [
|
|
952
956
|
Ue(V(t), 1)
|
|
@@ -969,9 +973,9 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
969
973
|
ee("button", {
|
|
970
974
|
tabindex: "0",
|
|
971
975
|
class: "vue-ui-user-options-button",
|
|
972
|
-
onClick:
|
|
976
|
+
onClick: o[1] || (o[1] = (t) => he(e.value.userOptions.callbacks.csv))
|
|
973
977
|
}, [
|
|
974
|
-
ye(h(
|
|
978
|
+
ye(h(rt), {
|
|
975
979
|
name: "excel",
|
|
976
980
|
stroke: H.value.props.color
|
|
977
981
|
}, null, 8, ["stroke"])
|
|
@@ -988,15 +992,15 @@ const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
988
992
|
}, [
|
|
989
993
|
b(l.$slots, "source", {}, void 0, !0)
|
|
990
994
|
], 512)) : g("", !0),
|
|
991
|
-
h(Y) ? (u(), N(
|
|
992
|
-
], 46,
|
|
995
|
+
h(Y) ? (u(), N(ul, { key: 7 })) : g("", !0)
|
|
996
|
+
], 46, pl));
|
|
993
997
|
}
|
|
994
|
-
},
|
|
998
|
+
}, Fl = /* @__PURE__ */ ml(Pl, [["__scopeId", "data-v-94c30780"]]), Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
995
999
|
__proto__: null,
|
|
996
|
-
default:
|
|
1000
|
+
default: Fl
|
|
997
1001
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
998
1002
|
export {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1003
|
+
Ql as a,
|
|
1004
|
+
Zl as b,
|
|
1005
|
+
Fl as v
|
|
1002
1006
|
};
|