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,31 +1,35 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CCCCCC" }, valueLabel: { color: "#CCCCCC" }, timeLabel: { color: "#CCCCCC" } }, selector: { stroke: "#5A5A5A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } },
|
|
1
|
+
import { useCssVars as Se, computed as A, defineAsyncComponent as ze, ref as h, toRefs as Fe, onMounted as X, watch as G, nextTick as P, createElementBlock as o, openBlock as a, normalizeStyle as F, createCommentVNode as d, createBlock as q, createElementVNode as f, createTextVNode as De, toDisplayString as g, unref as r, createVNode as Be, renderSlot as Y, Fragment as y, renderList as b, normalizeClass as J } from "vue";
|
|
2
|
+
import { c as Ee, t as Me, o as Te, g as K, l as Ie, s as p, a as Q, d as Z, X as Ne, h as N } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as He, u as Oe } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ve, a as H } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as We, B as je } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as Re } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
|
+
import { u as Ue } from "./useThemeCheck-D1ZYXUwG.js";
|
|
8
|
+
import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { _ as Ge } from "./Shape-PzdCMGsP.js";
|
|
10
|
+
import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ee = {}, te = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CCCCCC" }, valueLabel: { color: "#CCCCCC" }, timeLabel: { color: "#CCCCCC" } }, selector: { stroke: "#5A5A5A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, le = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CCCCCC" }, valueLabel: { color: "#CCCCCC" }, timeLabel: { color: "#CCCCCC" } }, selector: { stroke: "#5A5A5A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, ae = { style: { backgroundColor: "#FFF8E1", bars: { colors: { positive: "#D32F2F", negative: "#F57C00" } }, labels: { value: { color: "#424242" }, valueLabel: { color: "#424242" }, timeLabel: { color: "#757575" } }, selector: { stroke: "#D32F2F" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, oe = { style: { backgroundColor: "#1E1E1E", bars: { colors: { positive: "#D32F2F", negative: "#F57C00" } }, labels: { value: { color: "#BDBDBD" }, valueLabel: { color: "#BDBDBD" }, timeLabel: { color: "#BDBDBD" } }, selector: { stroke: "#D32F2F" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, se = { style: { backgroundColor: "#1A1A1A", bars: { colors: { positive: "#66CC66" } }, labels: { value: { color: "#AACCAA" }, valueLabel: { color: "#99CC99" }, timeLabel: { color: "#99AA99" } }, selector: { stroke: "#00FF00" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, ie = { style: { backgroundColor: "#fbfafa", bars: { colors: { positive: "#B9B99D", negative: "#C09E85" } }, labels: { value: { color: "#A0AC94" }, valueLabel: { color: "#A0AC94" }, timeLabel: { color: "#8A9892" } }, selector: { stroke: "#BBC4D3" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, ue = { style: { backgroundColor: "#f6f6fb", bars: { colors: { positive: "#4A6A75" } }, labels: { value: { color: "#61747E" }, valueLabel: { color: "#8A9892" }, timeLabel: { color: "#50606C" } }, selector: { stroke: "#404C4D" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, re = {
|
|
12
12
|
default: {},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
minimal: ee,
|
|
14
|
+
minimalDark: te,
|
|
15
|
+
dark: le,
|
|
16
|
+
celebration: ae,
|
|
17
|
+
celebrationNight: oe,
|
|
18
|
+
hack: se,
|
|
19
|
+
zen: ie,
|
|
20
|
+
concrete: ue
|
|
21
|
+
}, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
22
|
__proto__: null,
|
|
21
|
-
celebration:
|
|
22
|
-
celebrationNight:
|
|
23
|
-
concrete:
|
|
24
|
-
dark:
|
|
25
|
-
default:
|
|
26
|
-
hack:
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
celebration: ae,
|
|
24
|
+
celebrationNight: oe,
|
|
25
|
+
concrete: ue,
|
|
26
|
+
dark: le,
|
|
27
|
+
default: re,
|
|
28
|
+
hack: se,
|
|
29
|
+
minimal: ee,
|
|
30
|
+
minimalDark: te,
|
|
31
|
+
zen: ie
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = { key: 0 }, Ye = { key: 1 }, Je = ["xmlns", "viewBox"], Ke = ["width", "height"], Qe = ["id"], Ze = ["stop-color"], et = ["stop-color"], tt = ["id"], lt = ["stop-color"], at = ["stop-color"], ot = ["id"], st = ["stop-color"], it = ["stop-color"], ut = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], rt = { key: 1 }, nt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], vt = { key: 2 }, ct = ["x", "y", "font-size", "font-weight", "fill"], dt = ["x", "y", "font-size", "fill"], yt = ["x", "y", "font-size", "fill"], ht = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], bt = {
|
|
29
33
|
__name: "vue-ui-sparkhistogram",
|
|
30
34
|
props: {
|
|
31
35
|
config: {
|
|
@@ -42,12 +46,12 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
48
|
emits: ["selectDatapoint"],
|
|
45
|
-
setup(
|
|
46
|
-
|
|
47
|
-
v47f58673:
|
|
49
|
+
setup(ne, { emit: ve }) {
|
|
50
|
+
Se((l) => ({
|
|
51
|
+
v47f58673: Ae.value
|
|
48
52
|
}));
|
|
49
|
-
const
|
|
50
|
-
...
|
|
53
|
+
const ce = ze(() => import("./PackageVersion-CQxJyGQr.js")), { vue_ui_sparkhistogram: de } = Ve(), { isThemeValid: ye, warnInvalidTheme: he } = Ue(), C = ne, m = h(Ee()), O = h(null), V = h(null), D = h(null), k = h(null), w = h(null), e = h(M()), { loading: W, FINAL_DATASET: x } = We({
|
|
54
|
+
...Fe(C),
|
|
51
55
|
FINAL_CONFIG: e,
|
|
52
56
|
prepareConfig: M,
|
|
53
57
|
skeletonDataset: [
|
|
@@ -65,7 +69,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
65
69
|
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
66
70
|
{ value: 1, intensity: 0.2, color: "#CACACA" }
|
|
67
71
|
],
|
|
68
|
-
skeletonConfig:
|
|
72
|
+
skeletonConfig: Me({
|
|
69
73
|
defaultConfig: e.value,
|
|
70
74
|
userConfig: {
|
|
71
75
|
style: {
|
|
@@ -74,35 +78,35 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
80
|
})
|
|
77
|
-
}), B = h(e.value.style.layout.width), E = h(e.value.style.layout.height), { svgRef: j } =
|
|
81
|
+
}), B = h(e.value.style.layout.width), E = h(e.value.style.layout.height), { svgRef: j } = Xe({ config: e.value.style.title });
|
|
78
82
|
function M() {
|
|
79
83
|
const l = H({
|
|
80
|
-
userConfig:
|
|
81
|
-
defaultConfig:
|
|
84
|
+
userConfig: C.config,
|
|
85
|
+
defaultConfig: de
|
|
82
86
|
}), s = l.theme;
|
|
83
87
|
if (!s) return l;
|
|
84
|
-
if (!
|
|
85
|
-
return
|
|
88
|
+
if (!ye.value(l))
|
|
89
|
+
return he(l), l;
|
|
86
90
|
const t = H({
|
|
87
|
-
userConfig:
|
|
91
|
+
userConfig: re[s] || C.config,
|
|
88
92
|
defaultConfig: l
|
|
89
93
|
});
|
|
90
94
|
return H({
|
|
91
|
-
userConfig:
|
|
95
|
+
userConfig: C.config,
|
|
92
96
|
defaultConfig: t
|
|
93
97
|
});
|
|
94
98
|
}
|
|
95
99
|
X(() => {
|
|
96
100
|
U();
|
|
97
101
|
});
|
|
98
|
-
const R =
|
|
102
|
+
const R = A(() => !!e.value.debug);
|
|
99
103
|
function U() {
|
|
100
|
-
if (
|
|
104
|
+
if (Te(C.dataset) ? K({
|
|
101
105
|
componentName: "VueUiSparkHistogram",
|
|
102
106
|
type: "dataset",
|
|
103
107
|
debug: R.value
|
|
104
|
-
}) :
|
|
105
|
-
|
|
108
|
+
}) : C.dataset.forEach((l, s) => {
|
|
109
|
+
Ie({
|
|
106
110
|
datasetObject: l,
|
|
107
111
|
requiredAttributes: ["value"]
|
|
108
112
|
}).forEach((t) => {
|
|
@@ -115,8 +119,8 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
115
119
|
});
|
|
116
120
|
});
|
|
117
121
|
}), e.value.responsive) {
|
|
118
|
-
const l =
|
|
119
|
-
const { width: s, height: t } =
|
|
122
|
+
const l = He(() => {
|
|
123
|
+
const { width: s, height: t } = Oe({
|
|
120
124
|
chart: D.value,
|
|
121
125
|
title: e.value.style.title.text ? V.value : null,
|
|
122
126
|
source: O.value
|
|
@@ -125,40 +129,40 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
125
129
|
B.value = Math.max(10, s), E.value = Math.max(10, t - 12 - i - c);
|
|
126
130
|
});
|
|
127
131
|
});
|
|
128
|
-
|
|
132
|
+
k.value && (w.value && k.value.unobserve(w.value), k.value.disconnect()), k.value = new ResizeObserver(l), w.value = D.value.parentNode, k.value.observe(w.value);
|
|
129
133
|
}
|
|
130
134
|
}
|
|
131
|
-
G(() =>
|
|
135
|
+
G(() => C.config, (l) => {
|
|
132
136
|
e.value = M(), U();
|
|
133
137
|
}, { deep: !0 });
|
|
134
|
-
const v =
|
|
135
|
-
const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, s = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = E.value + l + s, i = B.value, c = e.value.style.layout.padding.top, $ = t - e.value.style.layout.padding.bottom, S = e.value.style.layout.padding.left, T = i - e.value.style.layout.padding.right, z = c + (t - c - e.value.style.layout.padding.bottom) / 2, I = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - s,
|
|
138
|
+
const v = A(() => {
|
|
139
|
+
const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, s = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = E.value + l + s, i = B.value, c = e.value.style.layout.padding.top, $ = t - e.value.style.layout.padding.bottom, S = e.value.style.layout.padding.left, T = i - e.value.style.layout.padding.right, z = c + (t - c - e.value.style.layout.padding.bottom) / 2, I = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - s, L = i - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
136
140
|
return {
|
|
137
141
|
bottom: $,
|
|
138
142
|
centerY: z,
|
|
139
143
|
drawingHeight: I,
|
|
140
|
-
drawingWidth:
|
|
144
|
+
drawingWidth: L,
|
|
141
145
|
height: t,
|
|
142
146
|
left: S,
|
|
143
147
|
right: T,
|
|
144
148
|
top: c,
|
|
145
149
|
width: i
|
|
146
150
|
};
|
|
147
|
-
}),
|
|
148
|
-
function
|
|
149
|
-
return Math.abs(l) /
|
|
151
|
+
}), be = A(() => Math.max(...x.value.map((l) => Math.abs(l.value || 0))));
|
|
152
|
+
function fe(l) {
|
|
153
|
+
return Math.abs(l) / be.value;
|
|
150
154
|
}
|
|
151
|
-
const u =
|
|
152
|
-
const t =
|
|
155
|
+
const u = A(() => x.value.map((l, s) => {
|
|
156
|
+
const t = fe(l.value || 0), i = v.value.drawingHeight * t, c = v.value.drawingWidth / x.value.length, $ = c * (e.value.style.bars.gap / 100), S = c - $, T = v.value.centerY - i / 2, z = v.value.left + ($ / 2 + s * c), I = v.value.left + s * c, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), xe = l.color ? l.color : l.value >= 0 ? p(e.value.style.bars.colors.positive, L) : p(e.value.style.bars.colors.negative, L), Le = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, we = l.color ? `url(#gradient_datapoint_${s}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${s}_${m.value})` : `url(#gradient_negative_${s}_${m.value})`, $e = z + S / 2;
|
|
153
157
|
return {
|
|
154
158
|
...l,
|
|
155
|
-
color:
|
|
156
|
-
gradient:
|
|
159
|
+
color: xe,
|
|
160
|
+
gradient: we,
|
|
157
161
|
height: i,
|
|
158
|
-
intensity:
|
|
162
|
+
intensity: L,
|
|
159
163
|
proportion: t,
|
|
160
|
-
stroke:
|
|
161
|
-
textAnchor:
|
|
164
|
+
stroke: Le,
|
|
165
|
+
textAnchor: $e,
|
|
162
166
|
trapX: I,
|
|
163
167
|
unitWidth: c,
|
|
164
168
|
width: S,
|
|
@@ -166,7 +170,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
166
170
|
y: T
|
|
167
171
|
};
|
|
168
172
|
}));
|
|
169
|
-
function
|
|
173
|
+
function ge(l, s) {
|
|
170
174
|
return Q(
|
|
171
175
|
e.value.style.labels.value.formatter,
|
|
172
176
|
l.value,
|
|
@@ -179,19 +183,19 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
179
183
|
{ datapoint: l, seriesIndex: s }
|
|
180
184
|
);
|
|
181
185
|
}
|
|
182
|
-
const n = h(null),
|
|
183
|
-
function
|
|
184
|
-
|
|
186
|
+
const n = h(null), pe = ve;
|
|
187
|
+
function Ce(l, s) {
|
|
188
|
+
pe("selectDatapoint", { datapoint: l, index: s }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
185
189
|
}
|
|
186
|
-
function
|
|
190
|
+
function me(l, s) {
|
|
187
191
|
n.value = s, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
|
|
188
192
|
}
|
|
189
|
-
function
|
|
193
|
+
function _e(l, s) {
|
|
190
194
|
n.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
|
|
191
195
|
}
|
|
192
|
-
const
|
|
196
|
+
const Ae = A(() => `${e.value.style.animation.speedMs}ms`), ke = A(() => v.value.drawingWidth / x.value.length * 0.9), { fitText: _ } = Re({
|
|
193
197
|
svgRef: j,
|
|
194
|
-
unitWidth:
|
|
198
|
+
unitWidth: ke
|
|
195
199
|
});
|
|
196
200
|
return X(async () => {
|
|
197
201
|
await P(), _(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), _(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), _(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
@@ -213,8 +217,8 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
213
217
|
f("div", {
|
|
214
218
|
style: F(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
215
219
|
}, [
|
|
216
|
-
|
|
217
|
-
n.value !== null ? (a(), o("span",
|
|
220
|
+
De(g(e.value.style.title.text) + " ", 1),
|
|
221
|
+
n.value !== null ? (a(), o("span", qe, "- " + g(u.value[n.value].timeLabel || "") + " " + g(r(Q)(
|
|
218
222
|
e.value.style.labels.value.formatter,
|
|
219
223
|
u.value[n.value].value,
|
|
220
224
|
r(Z)({
|
|
@@ -225,7 +229,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
225
229
|
}),
|
|
226
230
|
{ datapoint: u.value[n.value], seriesIndex: n.value }
|
|
227
231
|
)), 1)) : d("", !0),
|
|
228
|
-
![void 0, null].includes(n.value) && ![null, void 0].includes(u.value[n.value].valueLabel) ? (a(), o("span",
|
|
232
|
+
![void 0, null].includes(n.value) && ![null, void 0].includes(u.value[n.value].valueLabel) ? (a(), o("span", Ye, g(` (${u.value[n.value].valueLabel || 0})`), 1)) : d("", !0)
|
|
229
233
|
], 4),
|
|
230
234
|
e.value.style.title.subtitle.text ? (a(), o("div", {
|
|
231
235
|
key: 0,
|
|
@@ -235,11 +239,11 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
235
239
|
(a(), o("svg", {
|
|
236
240
|
ref_key: "svgRef",
|
|
237
241
|
ref: j,
|
|
238
|
-
xmlns: r(
|
|
242
|
+
xmlns: r(Ne),
|
|
239
243
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
240
244
|
style: { overflow: "visible" }
|
|
241
245
|
}, [
|
|
242
|
-
|
|
246
|
+
Be(r(ce)),
|
|
243
247
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
244
248
|
key: 0,
|
|
245
249
|
x: 0,
|
|
@@ -251,10 +255,10 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
251
255
|
}
|
|
252
256
|
}, [
|
|
253
257
|
Y(l.$slots, "chart-background", {}, void 0, !0)
|
|
254
|
-
], 8,
|
|
258
|
+
], 8, Ke)) : d("", !0),
|
|
255
259
|
f("defs", null, [
|
|
256
260
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("radialGradient", {
|
|
257
|
-
id: `gradient_positive_${i}_${
|
|
261
|
+
id: `gradient_positive_${i}_${m.value}`,
|
|
258
262
|
cy: "50%",
|
|
259
263
|
cx: "50%",
|
|
260
264
|
r: "50%",
|
|
@@ -264,14 +268,14 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
264
268
|
f("stop", {
|
|
265
269
|
offset: "0%",
|
|
266
270
|
"stop-color": r(p)(r(N)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
267
|
-
}, null, 8,
|
|
271
|
+
}, null, 8, Ze),
|
|
268
272
|
f("stop", {
|
|
269
273
|
offset: "100%",
|
|
270
274
|
"stop-color": r(p)(e.value.style.bars.colors.positive, t.intensity)
|
|
271
|
-
}, null, 8,
|
|
272
|
-
], 8,
|
|
275
|
+
}, null, 8, et)
|
|
276
|
+
], 8, Qe))), 256)),
|
|
273
277
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("radialGradient", {
|
|
274
|
-
id: `gradient_negative_${i}_${
|
|
278
|
+
id: `gradient_negative_${i}_${m.value}`,
|
|
275
279
|
cy: "50%",
|
|
276
280
|
cx: "50%",
|
|
277
281
|
r: "50%",
|
|
@@ -281,14 +285,14 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
281
285
|
f("stop", {
|
|
282
286
|
offset: "0%",
|
|
283
287
|
"stop-color": r(p)(r(N)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
284
|
-
}, null, 8,
|
|
288
|
+
}, null, 8, lt),
|
|
285
289
|
f("stop", {
|
|
286
290
|
offset: "100%",
|
|
287
291
|
"stop-color": r(p)(e.value.style.bars.colors.negative, t.intensity)
|
|
288
|
-
}, null, 8,
|
|
289
|
-
], 8,
|
|
292
|
+
}, null, 8, at)
|
|
293
|
+
], 8, tt))), 256)),
|
|
290
294
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("radialGradient", {
|
|
291
|
-
id: `gradient_datapoint_${i}_${
|
|
295
|
+
id: `gradient_datapoint_${i}_${m.value}`,
|
|
292
296
|
cy: "50%",
|
|
293
297
|
cx: "50%",
|
|
294
298
|
r: "50%",
|
|
@@ -298,12 +302,12 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
298
302
|
f("stop", {
|
|
299
303
|
offset: "0%",
|
|
300
304
|
"stop-color": r(p)(r(N)(t.color, 0.05), t.intensity)
|
|
301
|
-
}, null, 8,
|
|
305
|
+
}, null, 8, st),
|
|
302
306
|
f("stop", {
|
|
303
307
|
offset: "100%",
|
|
304
308
|
"stop-color": r(p)(t.color, t.intensity)
|
|
305
|
-
}, null, 8,
|
|
306
|
-
], 8,
|
|
309
|
+
}, null, 8, it)
|
|
310
|
+
], 8, ot))), 256))
|
|
307
311
|
]),
|
|
308
312
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("g", null, [
|
|
309
313
|
n.value !== null && n.value === i ? (a(), o("rect", {
|
|
@@ -317,9 +321,9 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
317
321
|
"stroke-width": e.value.style.selector.strokeWidth,
|
|
318
322
|
rx: e.value.style.selector.borderRadius,
|
|
319
323
|
"stroke-dasharray": e.value.style.selector.strokeDasharray
|
|
320
|
-
}, null, 8,
|
|
324
|
+
}, null, 8, ut)) : d("", !0)
|
|
321
325
|
]))), 256)),
|
|
322
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), o("g",
|
|
326
|
+
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), o("g", rt, [
|
|
323
327
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("rect", {
|
|
324
328
|
x: t.x,
|
|
325
329
|
y: t.y,
|
|
@@ -330,9 +334,9 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
330
334
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
331
335
|
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
332
336
|
class: J({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
333
|
-
}, null, 10,
|
|
334
|
-
])) : (a(), o("g",
|
|
335
|
-
(a(!0), o(y, null, b(u.value, (t, i) => (a(), q(
|
|
337
|
+
}, null, 10, nt))), 256))
|
|
338
|
+
])) : (a(), o("g", vt, [
|
|
339
|
+
(a(!0), o(y, null, b(u.value, (t, i) => (a(), q(Ge, {
|
|
336
340
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
337
341
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
338
342
|
shape: e.value.style.bars.shape,
|
|
@@ -351,7 +355,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
351
355
|
"font-size": e.value.style.labels.value.fontSize,
|
|
352
356
|
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
353
357
|
fill: e.value.style.labels.value.color
|
|
354
|
-
}, g(
|
|
358
|
+
}, g(ge(t, i)), 9, ct)) : d("", !0)
|
|
355
359
|
]))), 256)),
|
|
356
360
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("g", null, [
|
|
357
361
|
t.valueLabel && e.value.style.labels.valueLabel.show ? (a(), o("text", {
|
|
@@ -362,7 +366,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
362
366
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
363
367
|
"text-anchor": "middle",
|
|
364
368
|
fill: e.value.style.labels.valueLabel.color
|
|
365
|
-
}, g(t.valueLabel), 9,
|
|
369
|
+
}, g(t.valueLabel), 9, dt)) : d("", !0)
|
|
366
370
|
]))), 256)),
|
|
367
371
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("g", null, [
|
|
368
372
|
t.timeLabel && e.value.style.labels.timeLabel.show ? (a(), o("text", {
|
|
@@ -373,7 +377,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
373
377
|
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
374
378
|
fill: e.value.style.labels.timeLabel.color,
|
|
375
379
|
"text-anchor": "middle"
|
|
376
|
-
}, g(t.timeLabel), 9,
|
|
380
|
+
}, g(t.timeLabel), 9, yt)) : d("", !0)
|
|
377
381
|
]))), 256))
|
|
378
382
|
], 64)),
|
|
379
383
|
(a(!0), o(y, null, b(u.value, (t, i) => (a(), o("g", null, [
|
|
@@ -383,12 +387,12 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
383
387
|
fill: "transparent",
|
|
384
388
|
x: t.trapX,
|
|
385
389
|
y: 0,
|
|
386
|
-
onMouseover: (c) =>
|
|
387
|
-
onMouseleave: (c) =>
|
|
388
|
-
onClick: () =>
|
|
389
|
-
}, null, 40,
|
|
390
|
+
onMouseover: (c) => me(t, i),
|
|
391
|
+
onMouseleave: (c) => _e(t, i),
|
|
392
|
+
onClick: () => Ce(t, i)
|
|
393
|
+
}, null, 40, ht)
|
|
390
394
|
]))), 256))
|
|
391
|
-
], 8,
|
|
395
|
+
], 8, Je)),
|
|
392
396
|
l.$slots.source ? (a(), o("div", {
|
|
393
397
|
key: 1,
|
|
394
398
|
ref_key: "source",
|
|
@@ -397,15 +401,15 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
|
|
|
397
401
|
}, [
|
|
398
402
|
Y(l.$slots, "source", {}, void 0, !0)
|
|
399
403
|
], 512)) : d("", !0),
|
|
400
|
-
r(W) ? (a(), q(
|
|
404
|
+
r(W) ? (a(), q(je, { key: 2 })) : d("", !0)
|
|
401
405
|
], 36));
|
|
402
406
|
}
|
|
403
|
-
},
|
|
407
|
+
}, ft = /* @__PURE__ */ Pe(bt, [["__scopeId", "data-v-3b5d52bb"]]), St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
404
408
|
__proto__: null,
|
|
405
|
-
default:
|
|
409
|
+
default: ft
|
|
406
410
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
407
411
|
export {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
412
|
+
$t as a,
|
|
413
|
+
St as b,
|
|
414
|
+
ft as v
|
|
411
415
|
};
|